@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,4195 +0,0 @@
1
- import { i as __name } from "./chunk-CGdGNDIi.js";
2
- import { $ as arrayMap, A as baseKeys, B as baseRest, C as baseFlatten, D as castPath, E as toKey, F as baseUnary, G as arrayEach, H as eq, I as isBuffer, J as constant, K as setToString, L as isArguments, M as arrayLikeKeys, N as isTypedArray, O as toString, P as nodeUtil, Q as isArray, R as isPrototype, S as Stack, T as baseGet, U as isIndex, V as overRest, W as baseFindIndex, X as identity, Y as isFunction, Z as isObject, _ as _getTag_default, a as filter, b as getSymbols, c as isArrayLikeObject, d as baseFor, et as isSymbol, f as baseIteratee, g as Uint8Array, h as hasPath, i as values, it as root, j as overArg, k as keys, l as baseEach, m as hasIn, n as reduce, nt as baseGetTag, o as forEach, p as baseProperty, q as defineProperty, r as isUndefined, rt as Symbol, s as castFunction, t as Graph, tt as isObjectLike, u as baseForOwn, v as getAllKeys, w as arrayPush, x as stubArray, y as baseGetAllKeys, z as isArrayLike } from "./graphlib-qkaQhadO.js";
3
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_trimmedEndIndex.js
4
- /** Used to match a single whitespace character. */
5
- var reWhitespace = /\s/;
6
- /**
7
- * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace
8
- * character of `string`.
9
- *
10
- * @private
11
- * @param {string} string The string to inspect.
12
- * @returns {number} Returns the index of the last non-whitespace character.
13
- */
14
- function trimmedEndIndex(string) {
15
- var index = string.length;
16
- while (index-- && reWhitespace.test(string.charAt(index)));
17
- return index;
18
- }
19
- //#endregion
20
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseTrim.js
21
- /** Used to match leading whitespace. */
22
- var reTrimStart = /^\s+/;
23
- /**
24
- * The base implementation of `_.trim`.
25
- *
26
- * @private
27
- * @param {string} string The string to trim.
28
- * @returns {string} Returns the trimmed string.
29
- */
30
- function baseTrim(string) {
31
- return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
32
- }
33
- //#endregion
34
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toNumber.js
35
- /** Used as references for various `Number` constants. */
36
- var NAN = NaN;
37
- /** Used to detect bad signed hexadecimal string values. */
38
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
39
- /** Used to detect binary string values. */
40
- var reIsBinary = /^0b[01]+$/i;
41
- /** Used to detect octal string values. */
42
- var reIsOctal = /^0o[0-7]+$/i;
43
- /** Built-in method references without a dependency on `root`. */
44
- var freeParseInt = parseInt;
45
- /**
46
- * Converts `value` to a number.
47
- *
48
- * @static
49
- * @memberOf _
50
- * @since 4.0.0
51
- * @category Lang
52
- * @param {*} value The value to process.
53
- * @returns {number} Returns the number.
54
- * @example
55
- *
56
- * _.toNumber(3.2);
57
- * // => 3.2
58
- *
59
- * _.toNumber(Number.MIN_VALUE);
60
- * // => 5e-324
61
- *
62
- * _.toNumber(Infinity);
63
- * // => Infinity
64
- *
65
- * _.toNumber('3.2');
66
- * // => 3.2
67
- */
68
- function toNumber(value) {
69
- if (typeof value == "number") return value;
70
- if (isSymbol(value)) return NAN;
71
- if (isObject(value)) {
72
- var other = typeof value.valueOf == "function" ? value.valueOf() : value;
73
- value = isObject(other) ? other + "" : other;
74
- }
75
- if (typeof value != "string") return value === 0 ? value : +value;
76
- value = baseTrim(value);
77
- var isBinary = reIsBinary.test(value);
78
- return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
79
- }
80
- //#endregion
81
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toFinite.js
82
- var INFINITY = Infinity;
83
- var MAX_INTEGER = 17976931348623157e292;
84
- /**
85
- * Converts `value` to a finite number.
86
- *
87
- * @static
88
- * @memberOf _
89
- * @since 4.12.0
90
- * @category Lang
91
- * @param {*} value The value to convert.
92
- * @returns {number} Returns the converted number.
93
- * @example
94
- *
95
- * _.toFinite(3.2);
96
- * // => 3.2
97
- *
98
- * _.toFinite(Number.MIN_VALUE);
99
- * // => 5e-324
100
- *
101
- * _.toFinite(Infinity);
102
- * // => 1.7976931348623157e+308
103
- *
104
- * _.toFinite('3.2');
105
- * // => 3.2
106
- */
107
- function toFinite(value) {
108
- if (!value) return value === 0 ? value : 0;
109
- value = toNumber(value);
110
- if (value === INFINITY || value === -INFINITY) return (value < 0 ? -1 : 1) * MAX_INTEGER;
111
- return value === value ? value : 0;
112
- }
113
- //#endregion
114
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toInteger.js
115
- /**
116
- * Converts `value` to an integer.
117
- *
118
- * **Note:** This method is loosely based on
119
- * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).
120
- *
121
- * @static
122
- * @memberOf _
123
- * @since 4.0.0
124
- * @category Lang
125
- * @param {*} value The value to convert.
126
- * @returns {number} Returns the converted integer.
127
- * @example
128
- *
129
- * _.toInteger(3.2);
130
- * // => 3
131
- *
132
- * _.toInteger(Number.MIN_VALUE);
133
- * // => 0
134
- *
135
- * _.toInteger(Infinity);
136
- * // => 1.7976931348623157e+308
137
- *
138
- * _.toInteger('3.2');
139
- * // => 3
140
- */
141
- function toInteger(value) {
142
- var result = toFinite(value);
143
- var remainder = result % 1;
144
- return result === result ? remainder ? result - remainder : result : 0;
145
- }
146
- //#endregion
147
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js
148
- /** Built-in value references. */
149
- var objectCreate = Object.create;
150
- /**
151
- * The base implementation of `_.create` without support for assigning
152
- * properties to the created object.
153
- *
154
- * @private
155
- * @param {Object} proto The object to inherit from.
156
- * @returns {Object} Returns the new object.
157
- */
158
- var baseCreate = function() {
159
- function object() {}
160
- return function(proto) {
161
- if (!isObject(proto)) return {};
162
- if (objectCreate) return objectCreate(proto);
163
- object.prototype = proto;
164
- var result = new object();
165
- object.prototype = void 0;
166
- return result;
167
- };
168
- }();
169
- //#endregion
170
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js
171
- /**
172
- * Copies the values of `source` to `array`.
173
- *
174
- * @private
175
- * @param {Array} source The array to copy values from.
176
- * @param {Array} [array=[]] The array to copy values to.
177
- * @returns {Array} Returns `array`.
178
- */
179
- function copyArray(source, array) {
180
- var index = -1;
181
- var length = source.length;
182
- array || (array = Array(length));
183
- while (++index < length) array[index] = source[index];
184
- return array;
185
- }
186
- //#endregion
187
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js
188
- /**
189
- * The base implementation of `assignValue` and `assignMergeValue` without
190
- * value checks.
191
- *
192
- * @private
193
- * @param {Object} object The object to modify.
194
- * @param {string} key The key of the property to assign.
195
- * @param {*} value The value to assign.
196
- */
197
- function baseAssignValue(object, key, value) {
198
- if (key == "__proto__" && defineProperty) defineProperty(object, key, {
199
- "configurable": true,
200
- "enumerable": true,
201
- "value": value,
202
- "writable": true
203
- });
204
- else object[key] = value;
205
- }
206
- //#endregion
207
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js
208
- /** Used to check objects for own properties. */
209
- var hasOwnProperty$5 = Object.prototype.hasOwnProperty;
210
- /**
211
- * Assigns `value` to `key` of `object` if the existing value is not equivalent
212
- * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)
213
- * for equality comparisons.
214
- *
215
- * @private
216
- * @param {Object} object The object to modify.
217
- * @param {string} key The key of the property to assign.
218
- * @param {*} value The value to assign.
219
- */
220
- function assignValue(object, key, value) {
221
- var objValue = object[key];
222
- if (!(hasOwnProperty$5.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
223
- }
224
- //#endregion
225
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js
226
- /**
227
- * Copies properties of `source` to `object`.
228
- *
229
- * @private
230
- * @param {Object} source The object to copy properties from.
231
- * @param {Array} props The property identifiers to copy.
232
- * @param {Object} [object={}] The object to copy properties to.
233
- * @param {Function} [customizer] The function to customize copied values.
234
- * @returns {Object} Returns `object`.
235
- */
236
- function copyObject(source, props, object, customizer) {
237
- var isNew = !object;
238
- object || (object = {});
239
- var index = -1;
240
- var length = props.length;
241
- while (++index < length) {
242
- var key = props[index];
243
- var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
244
- if (newValue === void 0) newValue = source[key];
245
- if (isNew) baseAssignValue(object, key, newValue);
246
- else assignValue(object, key, newValue);
247
- }
248
- return object;
249
- }
250
- //#endregion
251
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js
252
- /**
253
- * Checks if the given arguments are from an iteratee call.
254
- *
255
- * @private
256
- * @param {*} value The potential iteratee value argument.
257
- * @param {*} index The potential iteratee index or key argument.
258
- * @param {*} object The potential iteratee object argument.
259
- * @returns {boolean} Returns `true` if the arguments are from an iteratee call,
260
- * else `false`.
261
- */
262
- function isIterateeCall(value, index, object) {
263
- if (!isObject(object)) return false;
264
- var type = typeof index;
265
- if (type == "number" ? isArrayLike(object) && isIndex(index, object.length) : type == "string" && index in object) return eq(object[index], value);
266
- return false;
267
- }
268
- //#endregion
269
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createAssigner.js
270
- /**
271
- * Creates a function like `_.assign`.
272
- *
273
- * @private
274
- * @param {Function} assigner The function to assign values.
275
- * @returns {Function} Returns the new assigner function.
276
- */
277
- function createAssigner(assigner) {
278
- return baseRest(function(object, sources) {
279
- var index = -1;
280
- var length = sources.length;
281
- var customizer = length > 1 ? sources[length - 1] : void 0;
282
- var guard = length > 2 ? sources[2] : void 0;
283
- customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
284
- if (guard && isIterateeCall(sources[0], sources[1], guard)) {
285
- customizer = length < 3 ? void 0 : customizer;
286
- length = 1;
287
- }
288
- object = Object(object);
289
- while (++index < length) {
290
- var source = sources[index];
291
- if (source) assigner(object, source, index, customizer);
292
- }
293
- return object;
294
- });
295
- }
296
- //#endregion
297
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js
298
- /**
299
- * This function is like
300
- * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)
301
- * except that it includes inherited enumerable properties.
302
- *
303
- * @private
304
- * @param {Object} object The object to query.
305
- * @returns {Array} Returns the array of property names.
306
- */
307
- function nativeKeysIn(object) {
308
- var result = [];
309
- if (object != null) for (var key in Object(object)) result.push(key);
310
- return result;
311
- }
312
- //#endregion
313
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js
314
- /** Used to check objects for own properties. */
315
- var hasOwnProperty$4 = Object.prototype.hasOwnProperty;
316
- /**
317
- * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense.
318
- *
319
- * @private
320
- * @param {Object} object The object to query.
321
- * @returns {Array} Returns the array of property names.
322
- */
323
- function baseKeysIn(object) {
324
- if (!isObject(object)) return nativeKeysIn(object);
325
- var isProto = isPrototype(object);
326
- var result = [];
327
- for (var key in object) if (!(key == "constructor" && (isProto || !hasOwnProperty$4.call(object, key)))) result.push(key);
328
- return result;
329
- }
330
- //#endregion
331
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js
332
- /**
333
- * Creates an array of the own and inherited enumerable property names of `object`.
334
- *
335
- * **Note:** Non-object values are coerced to objects.
336
- *
337
- * @static
338
- * @memberOf _
339
- * @since 3.0.0
340
- * @category Object
341
- * @param {Object} object The object to query.
342
- * @returns {Array} Returns the array of property names.
343
- * @example
344
- *
345
- * function Foo() {
346
- * this.a = 1;
347
- * this.b = 2;
348
- * }
349
- *
350
- * Foo.prototype.c = 3;
351
- *
352
- * _.keysIn(new Foo);
353
- * // => ['a', 'b', 'c'] (iteration order is not guaranteed)
354
- */
355
- function keysIn(object) {
356
- return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
357
- }
358
- //#endregion
359
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/flatten.js
360
- /**
361
- * Flattens `array` a single level deep.
362
- *
363
- * @static
364
- * @memberOf _
365
- * @since 0.1.0
366
- * @category Array
367
- * @param {Array} array The array to flatten.
368
- * @returns {Array} Returns the new flattened array.
369
- * @example
370
- *
371
- * _.flatten([1, [2, [3, [4]], 5]]);
372
- * // => [1, 2, [3, [4]], 5]
373
- */
374
- function flatten(array) {
375
- return (array == null ? 0 : array.length) ? baseFlatten(array, 1) : [];
376
- }
377
- //#endregion
378
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_flatRest.js
379
- /**
380
- * A specialized version of `baseRest` which flattens the rest array.
381
- *
382
- * @private
383
- * @param {Function} func The function to apply a rest parameter to.
384
- * @returns {Function} Returns the new function.
385
- */
386
- function flatRest(func) {
387
- return setToString(overRest(func, void 0, flatten), func + "");
388
- }
389
- //#endregion
390
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js
391
- /** Built-in value references. */
392
- var getPrototype = overArg(Object.getPrototypeOf, Object);
393
- //#endregion
394
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isPlainObject.js
395
- /** `Object#toString` result references. */
396
- var objectTag$1 = "[object Object]";
397
- var funcProto = Function.prototype;
398
- var objectProto$1 = Object.prototype;
399
- /** Used to resolve the decompiled source of functions. */
400
- var funcToString = funcProto.toString;
401
- /** Used to check objects for own properties. */
402
- var hasOwnProperty$3 = objectProto$1.hasOwnProperty;
403
- /** Used to infer the `Object` constructor. */
404
- var objectCtorString = funcToString.call(Object);
405
- /**
406
- * Checks if `value` is a plain object, that is, an object created by the
407
- * `Object` constructor or one with a `[[Prototype]]` of `null`.
408
- *
409
- * @static
410
- * @memberOf _
411
- * @since 0.8.0
412
- * @category Lang
413
- * @param {*} value The value to check.
414
- * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
415
- * @example
416
- *
417
- * function Foo() {
418
- * this.a = 1;
419
- * }
420
- *
421
- * _.isPlainObject(new Foo);
422
- * // => false
423
- *
424
- * _.isPlainObject([1, 2, 3]);
425
- * // => false
426
- *
427
- * _.isPlainObject({ 'x': 0, 'y': 0 });
428
- * // => true
429
- *
430
- * _.isPlainObject(Object.create(null));
431
- * // => true
432
- */
433
- function isPlainObject(value) {
434
- if (!isObjectLike(value) || baseGetTag(value) != objectTag$1) return false;
435
- var proto = getPrototype(value);
436
- if (proto === null) return true;
437
- var Ctor = hasOwnProperty$3.call(proto, "constructor") && proto.constructor;
438
- return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString;
439
- }
440
- //#endregion
441
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_hasUnicode.js
442
- /** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */
443
- var reHasUnicode = RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");
444
- /**
445
- * Checks if `string` contains Unicode symbols.
446
- *
447
- * @private
448
- * @param {string} string The string to inspect.
449
- * @returns {boolean} Returns `true` if a symbol is found, else `false`.
450
- */
451
- function hasUnicode(string) {
452
- return reHasUnicode.test(string);
453
- }
454
- //#endregion
455
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js
456
- /**
457
- * The base implementation of `_.assign` without support for multiple sources
458
- * or `customizer` functions.
459
- *
460
- * @private
461
- * @param {Object} object The destination object.
462
- * @param {Object} source The source object.
463
- * @returns {Object} Returns `object`.
464
- */
465
- function baseAssign(object, source) {
466
- return object && copyObject(source, keys(source), object);
467
- }
468
- //#endregion
469
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js
470
- /**
471
- * The base implementation of `_.assignIn` without support for multiple sources
472
- * or `customizer` functions.
473
- *
474
- * @private
475
- * @param {Object} object The destination object.
476
- * @param {Object} source The source object.
477
- * @returns {Object} Returns `object`.
478
- */
479
- function baseAssignIn(object, source) {
480
- return object && copyObject(source, keysIn(source), object);
481
- }
482
- //#endregion
483
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js
484
- /** Detect free variable `exports`. */
485
- var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
486
- /** Detect free variable `module`. */
487
- var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
488
- var Buffer = freeModule && freeModule.exports === freeExports ? root.Buffer : void 0;
489
- var allocUnsafe = Buffer ? Buffer.allocUnsafe : void 0;
490
- /**
491
- * Creates a clone of `buffer`.
492
- *
493
- * @private
494
- * @param {Buffer} buffer The buffer to clone.
495
- * @param {boolean} [isDeep] Specify a deep clone.
496
- * @returns {Buffer} Returns the cloned buffer.
497
- */
498
- function cloneBuffer(buffer, isDeep) {
499
- if (isDeep) return buffer.slice();
500
- var length = buffer.length;
501
- var result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
502
- buffer.copy(result);
503
- return result;
504
- }
505
- //#endregion
506
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js
507
- /**
508
- * Copies own symbols of `source` to `object`.
509
- *
510
- * @private
511
- * @param {Object} source The object to copy symbols from.
512
- * @param {Object} [object={}] The object to copy symbols to.
513
- * @returns {Object} Returns `object`.
514
- */
515
- function copySymbols(source, object) {
516
- return copyObject(source, getSymbols(source), object);
517
- }
518
- //#endregion
519
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js
520
- /**
521
- * Creates an array of the own and inherited enumerable symbols of `object`.
522
- *
523
- * @private
524
- * @param {Object} object The object to query.
525
- * @returns {Array} Returns the array of symbols.
526
- */
527
- var getSymbolsIn = !Object.getOwnPropertySymbols ? stubArray : function(object) {
528
- var result = [];
529
- while (object) {
530
- arrayPush(result, getSymbols(object));
531
- object = getPrototype(object);
532
- }
533
- return result;
534
- };
535
- //#endregion
536
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js
537
- /**
538
- * Copies own and inherited symbols of `source` to `object`.
539
- *
540
- * @private
541
- * @param {Object} source The object to copy symbols from.
542
- * @param {Object} [object={}] The object to copy symbols to.
543
- * @returns {Object} Returns `object`.
544
- */
545
- function copySymbolsIn(source, object) {
546
- return copyObject(source, getSymbolsIn(source), object);
547
- }
548
- //#endregion
549
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js
550
- /**
551
- * Creates an array of own and inherited enumerable property names and
552
- * symbols of `object`.
553
- *
554
- * @private
555
- * @param {Object} object The object to query.
556
- * @returns {Array} Returns the array of property names and symbols.
557
- */
558
- function getAllKeysIn(object) {
559
- return baseGetAllKeys(object, keysIn, getSymbolsIn);
560
- }
561
- //#endregion
562
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js
563
- /** Used to check objects for own properties. */
564
- var hasOwnProperty$2 = Object.prototype.hasOwnProperty;
565
- /**
566
- * Initializes an array clone.
567
- *
568
- * @private
569
- * @param {Array} array The array to clone.
570
- * @returns {Array} Returns the initialized clone.
571
- */
572
- function initCloneArray(array) {
573
- var length = array.length;
574
- var result = new array.constructor(length);
575
- if (length && typeof array[0] == "string" && hasOwnProperty$2.call(array, "index")) {
576
- result.index = array.index;
577
- result.input = array.input;
578
- }
579
- return result;
580
- }
581
- //#endregion
582
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js
583
- /**
584
- * Creates a clone of `arrayBuffer`.
585
- *
586
- * @private
587
- * @param {ArrayBuffer} arrayBuffer The array buffer to clone.
588
- * @returns {ArrayBuffer} Returns the cloned array buffer.
589
- */
590
- function cloneArrayBuffer(arrayBuffer) {
591
- var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
592
- new Uint8Array(result).set(new Uint8Array(arrayBuffer));
593
- return result;
594
- }
595
- //#endregion
596
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js
597
- /**
598
- * Creates a clone of `dataView`.
599
- *
600
- * @private
601
- * @param {Object} dataView The data view to clone.
602
- * @param {boolean} [isDeep] Specify a deep clone.
603
- * @returns {Object} Returns the cloned data view.
604
- */
605
- function cloneDataView(dataView, isDeep) {
606
- var buffer = isDeep ? cloneArrayBuffer(dataView.buffer) : dataView.buffer;
607
- return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
608
- }
609
- //#endregion
610
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js
611
- /** Used to match `RegExp` flags from their coerced string values. */
612
- var reFlags = /\w*$/;
613
- /**
614
- * Creates a clone of `regexp`.
615
- *
616
- * @private
617
- * @param {Object} regexp The regexp to clone.
618
- * @returns {Object} Returns the cloned regexp.
619
- */
620
- function cloneRegExp(regexp) {
621
- var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
622
- result.lastIndex = regexp.lastIndex;
623
- return result;
624
- }
625
- //#endregion
626
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js
627
- var symbolProto = Symbol ? Symbol.prototype : void 0;
628
- var symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
629
- /**
630
- * Creates a clone of the `symbol` object.
631
- *
632
- * @private
633
- * @param {Object} symbol The symbol object to clone.
634
- * @returns {Object} Returns the cloned symbol object.
635
- */
636
- function cloneSymbol(symbol) {
637
- return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
638
- }
639
- //#endregion
640
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js
641
- /**
642
- * Creates a clone of `typedArray`.
643
- *
644
- * @private
645
- * @param {Object} typedArray The typed array to clone.
646
- * @param {boolean} [isDeep] Specify a deep clone.
647
- * @returns {Object} Returns the cloned typed array.
648
- */
649
- function cloneTypedArray(typedArray, isDeep) {
650
- var buffer = isDeep ? cloneArrayBuffer(typedArray.buffer) : typedArray.buffer;
651
- return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
652
- }
653
- //#endregion
654
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js
655
- var boolTag$1 = "[object Boolean]";
656
- var dateTag$1 = "[object Date]";
657
- var mapTag$3 = "[object Map]";
658
- var numberTag$1 = "[object Number]";
659
- var regexpTag$1 = "[object RegExp]";
660
- var setTag$3 = "[object Set]";
661
- var stringTag$2 = "[object String]";
662
- var symbolTag$1 = "[object Symbol]";
663
- var arrayBufferTag$1 = "[object ArrayBuffer]";
664
- var dataViewTag$1 = "[object DataView]";
665
- var float32Tag$1 = "[object Float32Array]";
666
- var float64Tag$1 = "[object Float64Array]";
667
- var int8Tag$1 = "[object Int8Array]";
668
- var int16Tag$1 = "[object Int16Array]";
669
- var int32Tag$1 = "[object Int32Array]";
670
- var uint8Tag$1 = "[object Uint8Array]";
671
- var uint8ClampedTag$1 = "[object Uint8ClampedArray]";
672
- var uint16Tag$1 = "[object Uint16Array]";
673
- var uint32Tag$1 = "[object Uint32Array]";
674
- /**
675
- * Initializes an object clone based on its `toStringTag`.
676
- *
677
- * **Note:** This function only supports cloning values with tags of
678
- * `Boolean`, `Date`, `Error`, `Map`, `Number`, `RegExp`, `Set`, or `String`.
679
- *
680
- * @private
681
- * @param {Object} object The object to clone.
682
- * @param {string} tag The `toStringTag` of the object to clone.
683
- * @param {boolean} [isDeep] Specify a deep clone.
684
- * @returns {Object} Returns the initialized clone.
685
- */
686
- function initCloneByTag(object, tag, isDeep) {
687
- var Ctor = object.constructor;
688
- switch (tag) {
689
- case arrayBufferTag$1: return cloneArrayBuffer(object);
690
- case boolTag$1:
691
- case dateTag$1: return new Ctor(+object);
692
- case dataViewTag$1: return cloneDataView(object, isDeep);
693
- case float32Tag$1:
694
- case float64Tag$1:
695
- case int8Tag$1:
696
- case int16Tag$1:
697
- case int32Tag$1:
698
- case uint8Tag$1:
699
- case uint8ClampedTag$1:
700
- case uint16Tag$1:
701
- case uint32Tag$1: return cloneTypedArray(object, isDeep);
702
- case mapTag$3: return new Ctor();
703
- case numberTag$1:
704
- case stringTag$2: return new Ctor(object);
705
- case regexpTag$1: return cloneRegExp(object);
706
- case setTag$3: return new Ctor();
707
- case symbolTag$1: return cloneSymbol(object);
708
- }
709
- }
710
- //#endregion
711
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js
712
- /**
713
- * Initializes an object clone.
714
- *
715
- * @private
716
- * @param {Object} object The object to clone.
717
- * @returns {Object} Returns the initialized clone.
718
- */
719
- function initCloneObject(object) {
720
- return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
721
- }
722
- //#endregion
723
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js
724
- /** `Object#toString` result references. */
725
- var mapTag$2 = "[object Map]";
726
- /**
727
- * The base implementation of `_.isMap` without Node.js optimizations.
728
- *
729
- * @private
730
- * @param {*} value The value to check.
731
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
732
- */
733
- function baseIsMap(value) {
734
- return isObjectLike(value) && _getTag_default(value) == mapTag$2;
735
- }
736
- //#endregion
737
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isMap.js
738
- var nodeIsMap = nodeUtil && nodeUtil.isMap;
739
- /**
740
- * Checks if `value` is classified as a `Map` object.
741
- *
742
- * @static
743
- * @memberOf _
744
- * @since 4.3.0
745
- * @category Lang
746
- * @param {*} value The value to check.
747
- * @returns {boolean} Returns `true` if `value` is a map, else `false`.
748
- * @example
749
- *
750
- * _.isMap(new Map);
751
- * // => true
752
- *
753
- * _.isMap(new WeakMap);
754
- * // => false
755
- */
756
- var isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;
757
- //#endregion
758
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js
759
- /** `Object#toString` result references. */
760
- var setTag$2 = "[object Set]";
761
- /**
762
- * The base implementation of `_.isSet` without Node.js optimizations.
763
- *
764
- * @private
765
- * @param {*} value The value to check.
766
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
767
- */
768
- function baseIsSet(value) {
769
- return isObjectLike(value) && _getTag_default(value) == setTag$2;
770
- }
771
- //#endregion
772
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isSet.js
773
- var nodeIsSet = nodeUtil && nodeUtil.isSet;
774
- /**
775
- * Checks if `value` is classified as a `Set` object.
776
- *
777
- * @static
778
- * @memberOf _
779
- * @since 4.3.0
780
- * @category Lang
781
- * @param {*} value The value to check.
782
- * @returns {boolean} Returns `true` if `value` is a set, else `false`.
783
- * @example
784
- *
785
- * _.isSet(new Set);
786
- * // => true
787
- *
788
- * _.isSet(new WeakSet);
789
- * // => false
790
- */
791
- var isSet = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
792
- //#endregion
793
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js
794
- var CLONE_DEEP_FLAG$1 = 1;
795
- var CLONE_FLAT_FLAG = 2;
796
- var CLONE_SYMBOLS_FLAG$1 = 4;
797
- var argsTag = "[object Arguments]";
798
- var arrayTag = "[object Array]";
799
- var boolTag = "[object Boolean]";
800
- var dateTag = "[object Date]";
801
- var errorTag = "[object Error]";
802
- var funcTag = "[object Function]";
803
- var genTag = "[object GeneratorFunction]";
804
- var mapTag$1 = "[object Map]";
805
- var numberTag = "[object Number]";
806
- var objectTag = "[object Object]";
807
- var regexpTag = "[object RegExp]";
808
- var setTag$1 = "[object Set]";
809
- var stringTag$1 = "[object String]";
810
- var symbolTag = "[object Symbol]";
811
- var weakMapTag = "[object WeakMap]";
812
- var arrayBufferTag = "[object ArrayBuffer]";
813
- var dataViewTag = "[object DataView]";
814
- var float32Tag = "[object Float32Array]";
815
- var float64Tag = "[object Float64Array]";
816
- var int8Tag = "[object Int8Array]";
817
- var int16Tag = "[object Int16Array]";
818
- var int32Tag = "[object Int32Array]";
819
- var uint8Tag = "[object Uint8Array]";
820
- var uint8ClampedTag = "[object Uint8ClampedArray]";
821
- var uint16Tag = "[object Uint16Array]";
822
- var uint32Tag = "[object Uint32Array]";
823
- /** Used to identify `toStringTag` values supported by `_.clone`. */
824
- var cloneableTags = {};
825
- cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag$1] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag$1] = cloneableTags[stringTag$1] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
826
- cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
827
- /**
828
- * The base implementation of `_.clone` and `_.cloneDeep` which tracks
829
- * traversed objects.
830
- *
831
- * @private
832
- * @param {*} value The value to clone.
833
- * @param {boolean} bitmask The bitmask flags.
834
- * 1 - Deep clone
835
- * 2 - Flatten inherited properties
836
- * 4 - Clone symbols
837
- * @param {Function} [customizer] The function to customize cloning.
838
- * @param {string} [key] The key of `value`.
839
- * @param {Object} [object] The parent object of `value`.
840
- * @param {Object} [stack] Tracks traversed objects and their clone counterparts.
841
- * @returns {*} Returns the cloned value.
842
- */
843
- function baseClone(value, bitmask, customizer, key, object, stack) {
844
- var result;
845
- var isDeep = bitmask & CLONE_DEEP_FLAG$1;
846
- var isFlat = bitmask & CLONE_FLAT_FLAG;
847
- var isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
848
- if (customizer) result = object ? customizer(value, key, object, stack) : customizer(value);
849
- if (result !== void 0) return result;
850
- if (!isObject(value)) return value;
851
- var isArr = isArray(value);
852
- if (isArr) {
853
- result = initCloneArray(value);
854
- if (!isDeep) return copyArray(value, result);
855
- } else {
856
- var tag = _getTag_default(value);
857
- var isFunc = tag == funcTag || tag == genTag;
858
- if (isBuffer(value)) return cloneBuffer(value, isDeep);
859
- if (tag == objectTag || tag == argsTag || isFunc && !object) {
860
- result = isFlat || isFunc ? {} : initCloneObject(value);
861
- if (!isDeep) return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
862
- } else {
863
- if (!cloneableTags[tag]) return object ? value : {};
864
- result = initCloneByTag(value, tag, isDeep);
865
- }
866
- }
867
- stack || (stack = new Stack());
868
- var stacked = stack.get(value);
869
- if (stacked) return stacked;
870
- stack.set(value, result);
871
- if (isSet(value)) value.forEach(function(subValue) {
872
- result.add(baseClone(subValue, bitmask, customizer, subValue, value, stack));
873
- });
874
- else if (isMap(value)) value.forEach(function(subValue, key) {
875
- result.set(key, baseClone(subValue, bitmask, customizer, key, value, stack));
876
- });
877
- var props = isArr ? void 0 : (isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys)(value);
878
- arrayEach(props || value, function(subValue, key) {
879
- if (props) {
880
- key = subValue;
881
- subValue = value[key];
882
- }
883
- assignValue(result, key, baseClone(subValue, bitmask, customizer, key, value, stack));
884
- });
885
- return result;
886
- }
887
- //#endregion
888
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js
889
- var CLONE_DEEP_FLAG = 1;
890
- var CLONE_SYMBOLS_FLAG = 4;
891
- /**
892
- * This method is like `_.clone` except that it recursively clones `value`.
893
- *
894
- * @static
895
- * @memberOf _
896
- * @since 1.0.0
897
- * @category Lang
898
- * @param {*} value The value to recursively clone.
899
- * @returns {*} Returns the deep cloned value.
900
- * @see _.clone
901
- * @example
902
- *
903
- * var objects = [{ 'a': 1 }, { 'b': 2 }];
904
- *
905
- * var deep = _.cloneDeep(objects);
906
- * console.log(deep[0] === objects[0]);
907
- * // => false
908
- */
909
- function cloneDeep(value) {
910
- return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
911
- }
912
- //#endregion
913
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/now.js
914
- /**
915
- * Gets the timestamp of the number of milliseconds that have elapsed since
916
- * the Unix epoch (1 January 1970 00:00:00 UTC).
917
- *
918
- * @static
919
- * @memberOf _
920
- * @since 2.4.0
921
- * @category Date
922
- * @returns {number} Returns the timestamp.
923
- * @example
924
- *
925
- * _.defer(function(stamp) {
926
- * console.log(_.now() - stamp);
927
- * }, _.now());
928
- * // => Logs the number of milliseconds it took for the deferred invocation.
929
- */
930
- var now = function() {
931
- return root.Date.now();
932
- };
933
- //#endregion
934
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/defaults.js
935
- /** Used for built-in method references. */
936
- var objectProto = Object.prototype;
937
- /** Used to check objects for own properties. */
938
- var hasOwnProperty$1 = objectProto.hasOwnProperty;
939
- /**
940
- * Assigns own and inherited enumerable string keyed properties of source
941
- * objects to the destination object for all destination properties that
942
- * resolve to `undefined`. Source objects are applied from left to right.
943
- * Once a property is set, additional values of the same property are ignored.
944
- *
945
- * **Note:** This method mutates `object`.
946
- *
947
- * @static
948
- * @since 0.1.0
949
- * @memberOf _
950
- * @category Object
951
- * @param {Object} object The destination object.
952
- * @param {...Object} [sources] The source objects.
953
- * @returns {Object} Returns `object`.
954
- * @see _.defaultsDeep
955
- * @example
956
- *
957
- * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
958
- * // => { 'a': 1, 'b': 2 }
959
- */
960
- var defaults = baseRest(function(object, sources) {
961
- object = Object(object);
962
- var index = -1;
963
- var length = sources.length;
964
- var guard = length > 2 ? sources[2] : void 0;
965
- if (guard && isIterateeCall(sources[0], sources[1], guard)) length = 1;
966
- while (++index < length) {
967
- var source = sources[index];
968
- var props = keysIn(source);
969
- var propsIndex = -1;
970
- var propsLength = props.length;
971
- while (++propsIndex < propsLength) {
972
- var key = props[propsIndex];
973
- var value = object[key];
974
- if (value === void 0 || eq(value, objectProto[key]) && !hasOwnProperty$1.call(object, key)) object[key] = source[key];
975
- }
976
- }
977
- return object;
978
- });
979
- //#endregion
980
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_assignMergeValue.js
981
- /**
982
- * This function is like `assignValue` except that it doesn't assign
983
- * `undefined` values.
984
- *
985
- * @private
986
- * @param {Object} object The object to modify.
987
- * @param {string} key The key of the property to assign.
988
- * @param {*} value The value to assign.
989
- */
990
- function assignMergeValue(object, key, value) {
991
- if (value !== void 0 && !eq(object[key], value) || value === void 0 && !(key in object)) baseAssignValue(object, key, value);
992
- }
993
- //#endregion
994
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_safeGet.js
995
- /**
996
- * Gets the value at `key`, unless `key` is "__proto__" or "constructor".
997
- *
998
- * @private
999
- * @param {Object} object The object to query.
1000
- * @param {string} key The key of the property to get.
1001
- * @returns {*} Returns the property value.
1002
- */
1003
- function safeGet(object, key) {
1004
- if (key === "constructor" && typeof object[key] === "function") return;
1005
- if (key == "__proto__") return;
1006
- return object[key];
1007
- }
1008
- //#endregion
1009
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/toPlainObject.js
1010
- /**
1011
- * Converts `value` to a plain object flattening inherited enumerable string
1012
- * keyed properties of `value` to own properties of the plain object.
1013
- *
1014
- * @static
1015
- * @memberOf _
1016
- * @since 3.0.0
1017
- * @category Lang
1018
- * @param {*} value The value to convert.
1019
- * @returns {Object} Returns the converted plain object.
1020
- * @example
1021
- *
1022
- * function Foo() {
1023
- * this.b = 2;
1024
- * }
1025
- *
1026
- * Foo.prototype.c = 3;
1027
- *
1028
- * _.assign({ 'a': 1 }, new Foo);
1029
- * // => { 'a': 1, 'b': 2 }
1030
- *
1031
- * _.assign({ 'a': 1 }, _.toPlainObject(new Foo));
1032
- * // => { 'a': 1, 'b': 2, 'c': 3 }
1033
- */
1034
- function toPlainObject(value) {
1035
- return copyObject(value, keysIn(value));
1036
- }
1037
- //#endregion
1038
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMergeDeep.js
1039
- /**
1040
- * A specialized version of `baseMerge` for arrays and objects which performs
1041
- * deep merges and tracks traversed objects enabling objects with circular
1042
- * references to be merged.
1043
- *
1044
- * @private
1045
- * @param {Object} object The destination object.
1046
- * @param {Object} source The source object.
1047
- * @param {string} key The key of the value to merge.
1048
- * @param {number} srcIndex The index of `source`.
1049
- * @param {Function} mergeFunc The function to merge values.
1050
- * @param {Function} [customizer] The function to customize assigned values.
1051
- * @param {Object} [stack] Tracks traversed source values and their merged
1052
- * counterparts.
1053
- */
1054
- function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
1055
- var objValue = safeGet(object, key);
1056
- var srcValue = safeGet(source, key);
1057
- var stacked = stack.get(srcValue);
1058
- if (stacked) {
1059
- assignMergeValue(object, key, stacked);
1060
- return;
1061
- }
1062
- var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
1063
- var isCommon = newValue === void 0;
1064
- if (isCommon) {
1065
- var isArr = isArray(srcValue);
1066
- var isBuff = !isArr && isBuffer(srcValue);
1067
- var isTyped = !isArr && !isBuff && isTypedArray(srcValue);
1068
- newValue = srcValue;
1069
- if (isArr || isBuff || isTyped) if (isArray(objValue)) newValue = objValue;
1070
- else if (isArrayLikeObject(objValue)) newValue = copyArray(objValue);
1071
- else if (isBuff) {
1072
- isCommon = false;
1073
- newValue = cloneBuffer(srcValue, true);
1074
- } else if (isTyped) {
1075
- isCommon = false;
1076
- newValue = cloneTypedArray(srcValue, true);
1077
- } else newValue = [];
1078
- else if (isPlainObject(srcValue) || isArguments(srcValue)) {
1079
- newValue = objValue;
1080
- if (isArguments(objValue)) newValue = toPlainObject(objValue);
1081
- else if (!isObject(objValue) || isFunction(objValue)) newValue = initCloneObject(srcValue);
1082
- } else isCommon = false;
1083
- }
1084
- if (isCommon) {
1085
- stack.set(srcValue, newValue);
1086
- mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
1087
- stack["delete"](srcValue);
1088
- }
1089
- assignMergeValue(object, key, newValue);
1090
- }
1091
- //#endregion
1092
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMerge.js
1093
- /**
1094
- * The base implementation of `_.merge` without support for multiple sources.
1095
- *
1096
- * @private
1097
- * @param {Object} object The destination object.
1098
- * @param {Object} source The source object.
1099
- * @param {number} srcIndex The index of `source`.
1100
- * @param {Function} [customizer] The function to customize merged values.
1101
- * @param {Object} [stack] Tracks traversed source values and their merged
1102
- * counterparts.
1103
- */
1104
- function baseMerge(object, source, srcIndex, customizer, stack) {
1105
- if (object === source) return;
1106
- baseFor(source, function(srcValue, key) {
1107
- stack || (stack = new Stack());
1108
- if (isObject(srcValue)) baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
1109
- else {
1110
- var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
1111
- if (newValue === void 0) newValue = srcValue;
1112
- assignMergeValue(object, key, newValue);
1113
- }
1114
- }, keysIn);
1115
- }
1116
- //#endregion
1117
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/last.js
1118
- /**
1119
- * Gets the last element of `array`.
1120
- *
1121
- * @static
1122
- * @memberOf _
1123
- * @since 0.1.0
1124
- * @category Array
1125
- * @param {Array} array The array to query.
1126
- * @returns {*} Returns the last element of `array`.
1127
- * @example
1128
- *
1129
- * _.last([1, 2, 3]);
1130
- * // => 3
1131
- */
1132
- function last(array) {
1133
- var length = array == null ? 0 : array.length;
1134
- return length ? array[length - 1] : void 0;
1135
- }
1136
- //#endregion
1137
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createFind.js
1138
- /**
1139
- * Creates a `_.find` or `_.findLast` function.
1140
- *
1141
- * @private
1142
- * @param {Function} findIndexFunc The function to find the collection index.
1143
- * @returns {Function} Returns the new find function.
1144
- */
1145
- function createFind(findIndexFunc) {
1146
- return function(collection, predicate, fromIndex) {
1147
- var iterable = Object(collection);
1148
- if (!isArrayLike(collection)) {
1149
- var iteratee = baseIteratee(predicate, 3);
1150
- collection = keys(collection);
1151
- predicate = function(key) {
1152
- return iteratee(iterable[key], key, iterable);
1153
- };
1154
- }
1155
- var index = findIndexFunc(collection, predicate, fromIndex);
1156
- return index > -1 ? iterable[iteratee ? collection[index] : index] : void 0;
1157
- };
1158
- }
1159
- //#endregion
1160
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/findIndex.js
1161
- var nativeMax$1 = Math.max;
1162
- /**
1163
- * This method is like `_.find` except that it returns the index of the first
1164
- * element `predicate` returns truthy for instead of the element itself.
1165
- *
1166
- * @static
1167
- * @memberOf _
1168
- * @since 1.1.0
1169
- * @category Array
1170
- * @param {Array} array The array to inspect.
1171
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
1172
- * @param {number} [fromIndex=0] The index to search from.
1173
- * @returns {number} Returns the index of the found element, else `-1`.
1174
- * @example
1175
- *
1176
- * var users = [
1177
- * { 'user': 'barney', 'active': false },
1178
- * { 'user': 'fred', 'active': false },
1179
- * { 'user': 'pebbles', 'active': true }
1180
- * ];
1181
- *
1182
- * _.findIndex(users, function(o) { return o.user == 'barney'; });
1183
- * // => 0
1184
- *
1185
- * // The `_.matches` iteratee shorthand.
1186
- * _.findIndex(users, { 'user': 'fred', 'active': false });
1187
- * // => 1
1188
- *
1189
- * // The `_.matchesProperty` iteratee shorthand.
1190
- * _.findIndex(users, ['active', false]);
1191
- * // => 0
1192
- *
1193
- * // The `_.property` iteratee shorthand.
1194
- * _.findIndex(users, 'active');
1195
- * // => 2
1196
- */
1197
- function findIndex(array, predicate, fromIndex) {
1198
- var length = array == null ? 0 : array.length;
1199
- if (!length) return -1;
1200
- var index = fromIndex == null ? 0 : toInteger(fromIndex);
1201
- if (index < 0) index = nativeMax$1(length + index, 0);
1202
- return baseFindIndex(array, baseIteratee(predicate, 3), index);
1203
- }
1204
- //#endregion
1205
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/find.js
1206
- /**
1207
- * Iterates over elements of `collection`, returning the first element
1208
- * `predicate` returns truthy for. The predicate is invoked with three
1209
- * arguments: (value, index|key, collection).
1210
- *
1211
- * @static
1212
- * @memberOf _
1213
- * @since 0.1.0
1214
- * @category Collection
1215
- * @param {Array|Object} collection The collection to inspect.
1216
- * @param {Function} [predicate=_.identity] The function invoked per iteration.
1217
- * @param {number} [fromIndex=0] The index to search from.
1218
- * @returns {*} Returns the matched element, else `undefined`.
1219
- * @example
1220
- *
1221
- * var users = [
1222
- * { 'user': 'barney', 'age': 36, 'active': true },
1223
- * { 'user': 'fred', 'age': 40, 'active': false },
1224
- * { 'user': 'pebbles', 'age': 1, 'active': true }
1225
- * ];
1226
- *
1227
- * _.find(users, function(o) { return o.age < 40; });
1228
- * // => object for 'barney'
1229
- *
1230
- * // The `_.matches` iteratee shorthand.
1231
- * _.find(users, { 'age': 1, 'active': true });
1232
- * // => object for 'pebbles'
1233
- *
1234
- * // The `_.matchesProperty` iteratee shorthand.
1235
- * _.find(users, ['active', false]);
1236
- * // => object for 'fred'
1237
- *
1238
- * // The `_.property` iteratee shorthand.
1239
- * _.find(users, 'active');
1240
- * // => object for 'barney'
1241
- */
1242
- var find = createFind(findIndex);
1243
- //#endregion
1244
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseMap.js
1245
- /**
1246
- * The base implementation of `_.map` without support for iteratee shorthands.
1247
- *
1248
- * @private
1249
- * @param {Array|Object} collection The collection to iterate over.
1250
- * @param {Function} iteratee The function invoked per iteration.
1251
- * @returns {Array} Returns the new mapped array.
1252
- */
1253
- function baseMap(collection, iteratee) {
1254
- var index = -1;
1255
- var result = isArrayLike(collection) ? Array(collection.length) : [];
1256
- baseEach(collection, function(value, key, collection) {
1257
- result[++index] = iteratee(value, key, collection);
1258
- });
1259
- return result;
1260
- }
1261
- //#endregion
1262
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/map.js
1263
- /**
1264
- * Creates an array of values by running each element in `collection` thru
1265
- * `iteratee`. The iteratee is invoked with three arguments:
1266
- * (value, index|key, collection).
1267
- *
1268
- * Many lodash methods are guarded to work as iteratees for methods like
1269
- * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.
1270
- *
1271
- * The guarded methods are:
1272
- * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,
1273
- * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,
1274
- * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,
1275
- * `template`, `trim`, `trimEnd`, `trimStart`, and `words`
1276
- *
1277
- * @static
1278
- * @memberOf _
1279
- * @since 0.1.0
1280
- * @category Collection
1281
- * @param {Array|Object} collection The collection to iterate over.
1282
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
1283
- * @returns {Array} Returns the new mapped array.
1284
- * @example
1285
- *
1286
- * function square(n) {
1287
- * return n * n;
1288
- * }
1289
- *
1290
- * _.map([4, 8], square);
1291
- * // => [16, 64]
1292
- *
1293
- * _.map({ 'a': 4, 'b': 8 }, square);
1294
- * // => [16, 64] (iteration order is not guaranteed)
1295
- *
1296
- * var users = [
1297
- * { 'user': 'barney' },
1298
- * { 'user': 'fred' }
1299
- * ];
1300
- *
1301
- * // The `_.property` iteratee shorthand.
1302
- * _.map(users, 'user');
1303
- * // => ['barney', 'fred']
1304
- */
1305
- function map(collection, iteratee) {
1306
- return (isArray(collection) ? arrayMap : baseMap)(collection, baseIteratee(iteratee, 3));
1307
- }
1308
- //#endregion
1309
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/forIn.js
1310
- /**
1311
- * Iterates over own and inherited enumerable string keyed properties of an
1312
- * object and invokes `iteratee` for each property. The iteratee is invoked
1313
- * with three arguments: (value, key, object). Iteratee functions may exit
1314
- * iteration early by explicitly returning `false`.
1315
- *
1316
- * @static
1317
- * @memberOf _
1318
- * @since 0.3.0
1319
- * @category Object
1320
- * @param {Object} object The object to iterate over.
1321
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
1322
- * @returns {Object} Returns `object`.
1323
- * @see _.forInRight
1324
- * @example
1325
- *
1326
- * function Foo() {
1327
- * this.a = 1;
1328
- * this.b = 2;
1329
- * }
1330
- *
1331
- * Foo.prototype.c = 3;
1332
- *
1333
- * _.forIn(new Foo, function(value, key) {
1334
- * console.log(key);
1335
- * });
1336
- * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).
1337
- */
1338
- function forIn(object, iteratee) {
1339
- return object == null ? object : baseFor(object, castFunction(iteratee), keysIn);
1340
- }
1341
- //#endregion
1342
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/forOwn.js
1343
- /**
1344
- * Iterates over own enumerable string keyed properties of an object and
1345
- * invokes `iteratee` for each property. The iteratee is invoked with three
1346
- * arguments: (value, key, object). Iteratee functions may exit iteration
1347
- * early by explicitly returning `false`.
1348
- *
1349
- * @static
1350
- * @memberOf _
1351
- * @since 0.3.0
1352
- * @category Object
1353
- * @param {Object} object The object to iterate over.
1354
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
1355
- * @returns {Object} Returns `object`.
1356
- * @see _.forOwnRight
1357
- * @example
1358
- *
1359
- * function Foo() {
1360
- * this.a = 1;
1361
- * this.b = 2;
1362
- * }
1363
- *
1364
- * Foo.prototype.c = 3;
1365
- *
1366
- * _.forOwn(new Foo, function(value, key) {
1367
- * console.log(key);
1368
- * });
1369
- * // => Logs 'a' then 'b' (iteration order is not guaranteed).
1370
- */
1371
- function forOwn(object, iteratee) {
1372
- return object && baseForOwn(object, castFunction(iteratee));
1373
- }
1374
- //#endregion
1375
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseGt.js
1376
- /**
1377
- * The base implementation of `_.gt` which doesn't coerce arguments.
1378
- *
1379
- * @private
1380
- * @param {*} value The value to compare.
1381
- * @param {*} other The other value to compare.
1382
- * @returns {boolean} Returns `true` if `value` is greater than `other`,
1383
- * else `false`.
1384
- */
1385
- function baseGt(value, other) {
1386
- return value > other;
1387
- }
1388
- //#endregion
1389
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseHas.js
1390
- /** Used to check objects for own properties. */
1391
- var hasOwnProperty = Object.prototype.hasOwnProperty;
1392
- /**
1393
- * The base implementation of `_.has` without support for deep paths.
1394
- *
1395
- * @private
1396
- * @param {Object} [object] The object to query.
1397
- * @param {Array|string} key The key to check.
1398
- * @returns {boolean} Returns `true` if `key` exists, else `false`.
1399
- */
1400
- function baseHas(object, key) {
1401
- return object != null && hasOwnProperty.call(object, key);
1402
- }
1403
- //#endregion
1404
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/has.js
1405
- /**
1406
- * Checks if `path` is a direct property of `object`.
1407
- *
1408
- * @static
1409
- * @since 0.1.0
1410
- * @memberOf _
1411
- * @category Object
1412
- * @param {Object} object The object to query.
1413
- * @param {Array|string} path The path to check.
1414
- * @returns {boolean} Returns `true` if `path` exists, else `false`.
1415
- * @example
1416
- *
1417
- * var object = { 'a': { 'b': 2 } };
1418
- * var other = _.create({ 'a': _.create({ 'b': 2 }) });
1419
- *
1420
- * _.has(object, 'a');
1421
- * // => true
1422
- *
1423
- * _.has(object, 'a.b');
1424
- * // => true
1425
- *
1426
- * _.has(object, ['a', 'b']);
1427
- * // => true
1428
- *
1429
- * _.has(other, 'a');
1430
- * // => false
1431
- */
1432
- function has(object, path) {
1433
- return object != null && hasPath(object, path, baseHas);
1434
- }
1435
- //#endregion
1436
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/isString.js
1437
- /** `Object#toString` result references. */
1438
- var stringTag = "[object String]";
1439
- /**
1440
- * Checks if `value` is classified as a `String` primitive or object.
1441
- *
1442
- * @static
1443
- * @since 0.1.0
1444
- * @memberOf _
1445
- * @category Lang
1446
- * @param {*} value The value to check.
1447
- * @returns {boolean} Returns `true` if `value` is a string, else `false`.
1448
- * @example
1449
- *
1450
- * _.isString('abc');
1451
- * // => true
1452
- *
1453
- * _.isString(1);
1454
- * // => false
1455
- */
1456
- function isString(value) {
1457
- return typeof value == "string" || !isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag;
1458
- }
1459
- //#endregion
1460
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseLt.js
1461
- /**
1462
- * The base implementation of `_.lt` which doesn't coerce arguments.
1463
- *
1464
- * @private
1465
- * @param {*} value The value to compare.
1466
- * @param {*} other The other value to compare.
1467
- * @returns {boolean} Returns `true` if `value` is less than `other`,
1468
- * else `false`.
1469
- */
1470
- function baseLt(value, other) {
1471
- return value < other;
1472
- }
1473
- //#endregion
1474
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/mapValues.js
1475
- /**
1476
- * Creates an object with the same keys as `object` and values generated
1477
- * by running each own enumerable string keyed property of `object` thru
1478
- * `iteratee`. The iteratee is invoked with three arguments:
1479
- * (value, key, object).
1480
- *
1481
- * @static
1482
- * @memberOf _
1483
- * @since 2.4.0
1484
- * @category Object
1485
- * @param {Object} object The object to iterate over.
1486
- * @param {Function} [iteratee=_.identity] The function invoked per iteration.
1487
- * @returns {Object} Returns the new mapped object.
1488
- * @see _.mapKeys
1489
- * @example
1490
- *
1491
- * var users = {
1492
- * 'fred': { 'user': 'fred', 'age': 40 },
1493
- * 'pebbles': { 'user': 'pebbles', 'age': 1 }
1494
- * };
1495
- *
1496
- * _.mapValues(users, function(o) { return o.age; });
1497
- * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
1498
- *
1499
- * // The `_.property` iteratee shorthand.
1500
- * _.mapValues(users, 'age');
1501
- * // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
1502
- */
1503
- function mapValues(object, iteratee) {
1504
- var result = {};
1505
- iteratee = baseIteratee(iteratee, 3);
1506
- baseForOwn(object, function(value, key, object) {
1507
- baseAssignValue(result, key, iteratee(value, key, object));
1508
- });
1509
- return result;
1510
- }
1511
- //#endregion
1512
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseExtremum.js
1513
- /**
1514
- * The base implementation of methods like `_.max` and `_.min` which accepts a
1515
- * `comparator` to determine the extremum value.
1516
- *
1517
- * @private
1518
- * @param {Array} array The array to iterate over.
1519
- * @param {Function} iteratee The iteratee invoked per iteration.
1520
- * @param {Function} comparator The comparator used to compare values.
1521
- * @returns {*} Returns the extremum value.
1522
- */
1523
- function baseExtremum(array, iteratee, comparator) {
1524
- var index = -1;
1525
- var length = array.length;
1526
- while (++index < length) {
1527
- var value = array[index];
1528
- var current = iteratee(value);
1529
- if (current != null && (computed === void 0 ? current === current && !isSymbol(current) : comparator(current, computed))) {
1530
- var computed = current;
1531
- var result = value;
1532
- }
1533
- }
1534
- return result;
1535
- }
1536
- //#endregion
1537
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/max.js
1538
- /**
1539
- * Computes the maximum value of `array`. If `array` is empty or falsey,
1540
- * `undefined` is returned.
1541
- *
1542
- * @static
1543
- * @since 0.1.0
1544
- * @memberOf _
1545
- * @category Math
1546
- * @param {Array} array The array to iterate over.
1547
- * @returns {*} Returns the maximum value.
1548
- * @example
1549
- *
1550
- * _.max([4, 2, 8, 6]);
1551
- * // => 8
1552
- *
1553
- * _.max([]);
1554
- * // => undefined
1555
- */
1556
- function max(array) {
1557
- return array && array.length ? baseExtremum(array, identity, baseGt) : void 0;
1558
- }
1559
- //#endregion
1560
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/merge.js
1561
- /**
1562
- * This method is like `_.assign` except that it recursively merges own and
1563
- * inherited enumerable string keyed properties of source objects into the
1564
- * destination object. Source properties that resolve to `undefined` are
1565
- * skipped if a destination value exists. Array and plain object properties
1566
- * are merged recursively. Other objects and value types are overridden by
1567
- * assignment. Source objects are applied from left to right. Subsequent
1568
- * sources overwrite property assignments of previous sources.
1569
- *
1570
- * **Note:** This method mutates `object`.
1571
- *
1572
- * @static
1573
- * @memberOf _
1574
- * @since 0.5.0
1575
- * @category Object
1576
- * @param {Object} object The destination object.
1577
- * @param {...Object} [sources] The source objects.
1578
- * @returns {Object} Returns `object`.
1579
- * @example
1580
- *
1581
- * var object = {
1582
- * 'a': [{ 'b': 2 }, { 'd': 4 }]
1583
- * };
1584
- *
1585
- * var other = {
1586
- * 'a': [{ 'c': 3 }, { 'e': 5 }]
1587
- * };
1588
- *
1589
- * _.merge(object, other);
1590
- * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }
1591
- */
1592
- var merge = createAssigner(function(object, source, srcIndex) {
1593
- baseMerge(object, source, srcIndex);
1594
- });
1595
- //#endregion
1596
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/min.js
1597
- /**
1598
- * Computes the minimum value of `array`. If `array` is empty or falsey,
1599
- * `undefined` is returned.
1600
- *
1601
- * @static
1602
- * @since 0.1.0
1603
- * @memberOf _
1604
- * @category Math
1605
- * @param {Array} array The array to iterate over.
1606
- * @returns {*} Returns the minimum value.
1607
- * @example
1608
- *
1609
- * _.min([4, 2, 8, 6]);
1610
- * // => 2
1611
- *
1612
- * _.min([]);
1613
- * // => undefined
1614
- */
1615
- function min(array) {
1616
- return array && array.length ? baseExtremum(array, identity, baseLt) : void 0;
1617
- }
1618
- //#endregion
1619
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/minBy.js
1620
- /**
1621
- * This method is like `_.min` except that it accepts `iteratee` which is
1622
- * invoked for each element in `array` to generate the criterion by which
1623
- * the value is ranked. The iteratee is invoked with one argument: (value).
1624
- *
1625
- * @static
1626
- * @memberOf _
1627
- * @since 4.0.0
1628
- * @category Math
1629
- * @param {Array} array The array to iterate over.
1630
- * @param {Function} [iteratee=_.identity] The iteratee invoked per element.
1631
- * @returns {*} Returns the minimum value.
1632
- * @example
1633
- *
1634
- * var objects = [{ 'n': 1 }, { 'n': 2 }];
1635
- *
1636
- * _.minBy(objects, function(o) { return o.n; });
1637
- * // => { 'n': 1 }
1638
- *
1639
- * // The `_.property` iteratee shorthand.
1640
- * _.minBy(objects, 'n');
1641
- * // => { 'n': 1 }
1642
- */
1643
- function minBy(array, iteratee) {
1644
- return array && array.length ? baseExtremum(array, baseIteratee(iteratee, 2), baseLt) : void 0;
1645
- }
1646
- //#endregion
1647
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSet.js
1648
- /**
1649
- * The base implementation of `_.set`.
1650
- *
1651
- * @private
1652
- * @param {Object} object The object to modify.
1653
- * @param {Array|string} path The path of the property to set.
1654
- * @param {*} value The value to set.
1655
- * @param {Function} [customizer] The function to customize path creation.
1656
- * @returns {Object} Returns `object`.
1657
- */
1658
- function baseSet(object, path, value, customizer) {
1659
- if (!isObject(object)) return object;
1660
- path = castPath(path, object);
1661
- var index = -1;
1662
- var length = path.length;
1663
- var lastIndex = length - 1;
1664
- var nested = object;
1665
- while (nested != null && ++index < length) {
1666
- var key = toKey(path[index]);
1667
- var newValue = value;
1668
- if (key === "__proto__" || key === "constructor" || key === "prototype") return object;
1669
- if (index != lastIndex) {
1670
- var objValue = nested[key];
1671
- newValue = customizer ? customizer(objValue, key, nested) : void 0;
1672
- if (newValue === void 0) newValue = isObject(objValue) ? objValue : isIndex(path[index + 1]) ? [] : {};
1673
- }
1674
- assignValue(nested, key, newValue);
1675
- nested = nested[key];
1676
- }
1677
- return object;
1678
- }
1679
- //#endregion
1680
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePickBy.js
1681
- /**
1682
- * The base implementation of `_.pickBy` without support for iteratee shorthands.
1683
- *
1684
- * @private
1685
- * @param {Object} object The source object.
1686
- * @param {string[]} paths The property paths to pick.
1687
- * @param {Function} predicate The function invoked per property.
1688
- * @returns {Object} Returns the new object.
1689
- */
1690
- function basePickBy(object, paths, predicate) {
1691
- var index = -1;
1692
- var length = paths.length;
1693
- var result = {};
1694
- while (++index < length) {
1695
- var path = paths[index];
1696
- var value = baseGet(object, path);
1697
- if (predicate(value, path)) baseSet(result, castPath(path, object), value);
1698
- }
1699
- return result;
1700
- }
1701
- //#endregion
1702
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseSortBy.js
1703
- /**
1704
- * The base implementation of `_.sortBy` which uses `comparer` to define the
1705
- * sort order of `array` and replaces criteria objects with their corresponding
1706
- * values.
1707
- *
1708
- * @private
1709
- * @param {Array} array The array to sort.
1710
- * @param {Function} comparer The function to define sort order.
1711
- * @returns {Array} Returns `array`.
1712
- */
1713
- function baseSortBy(array, comparer) {
1714
- var length = array.length;
1715
- array.sort(comparer);
1716
- while (length--) array[length] = array[length].value;
1717
- return array;
1718
- }
1719
- //#endregion
1720
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_compareAscending.js
1721
- /**
1722
- * Compares values to sort them in ascending order.
1723
- *
1724
- * @private
1725
- * @param {*} value The value to compare.
1726
- * @param {*} other The other value to compare.
1727
- * @returns {number} Returns the sort order indicator for `value`.
1728
- */
1729
- function compareAscending(value, other) {
1730
- if (value !== other) {
1731
- var valIsDefined = value !== void 0;
1732
- var valIsNull = value === null;
1733
- var valIsReflexive = value === value;
1734
- var valIsSymbol = isSymbol(value);
1735
- var othIsDefined = other !== void 0;
1736
- var othIsNull = other === null;
1737
- var othIsReflexive = other === other;
1738
- var othIsSymbol = isSymbol(other);
1739
- if (!othIsNull && !othIsSymbol && !valIsSymbol && value > other || valIsSymbol && othIsDefined && othIsReflexive && !othIsNull && !othIsSymbol || valIsNull && othIsDefined && othIsReflexive || !valIsDefined && othIsReflexive || !valIsReflexive) return 1;
1740
- if (!valIsNull && !valIsSymbol && !othIsSymbol && value < other || othIsSymbol && valIsDefined && valIsReflexive && !valIsNull && !valIsSymbol || othIsNull && valIsDefined && valIsReflexive || !othIsDefined && valIsReflexive || !othIsReflexive) return -1;
1741
- }
1742
- return 0;
1743
- }
1744
- //#endregion
1745
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_compareMultiple.js
1746
- /**
1747
- * Used by `_.orderBy` to compare multiple properties of a value to another
1748
- * and stable sort them.
1749
- *
1750
- * If `orders` is unspecified, all values are sorted in ascending order. Otherwise,
1751
- * specify an order of "desc" for descending or "asc" for ascending sort order
1752
- * of corresponding values.
1753
- *
1754
- * @private
1755
- * @param {Object} object The object to compare.
1756
- * @param {Object} other The other object to compare.
1757
- * @param {boolean[]|string[]} orders The order to sort by for each property.
1758
- * @returns {number} Returns the sort order indicator for `object`.
1759
- */
1760
- function compareMultiple(object, other, orders) {
1761
- var index = -1;
1762
- var objCriteria = object.criteria;
1763
- var othCriteria = other.criteria;
1764
- var length = objCriteria.length;
1765
- var ordersLength = orders.length;
1766
- while (++index < length) {
1767
- var result = compareAscending(objCriteria[index], othCriteria[index]);
1768
- if (result) {
1769
- if (index >= ordersLength) return result;
1770
- return result * (orders[index] == "desc" ? -1 : 1);
1771
- }
1772
- }
1773
- return object.index - other.index;
1774
- }
1775
- //#endregion
1776
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseOrderBy.js
1777
- /**
1778
- * The base implementation of `_.orderBy` without param guards.
1779
- *
1780
- * @private
1781
- * @param {Array|Object} collection The collection to iterate over.
1782
- * @param {Function[]|Object[]|string[]} iteratees The iteratees to sort by.
1783
- * @param {string[]} orders The sort orders of `iteratees`.
1784
- * @returns {Array} Returns the new sorted array.
1785
- */
1786
- function baseOrderBy(collection, iteratees, orders) {
1787
- if (iteratees.length) iteratees = arrayMap(iteratees, function(iteratee) {
1788
- if (isArray(iteratee)) return function(value) {
1789
- return baseGet(value, iteratee.length === 1 ? iteratee[0] : iteratee);
1790
- };
1791
- return iteratee;
1792
- });
1793
- else iteratees = [identity];
1794
- var index = -1;
1795
- iteratees = arrayMap(iteratees, baseUnary(baseIteratee));
1796
- return baseSortBy(baseMap(collection, function(value, key, collection) {
1797
- return {
1798
- "criteria": arrayMap(iteratees, function(iteratee) {
1799
- return iteratee(value);
1800
- }),
1801
- "index": ++index,
1802
- "value": value
1803
- };
1804
- }), function(object, other) {
1805
- return compareMultiple(object, other, orders);
1806
- });
1807
- }
1808
- //#endregion
1809
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_asciiSize.js
1810
- /**
1811
- * Gets the size of an ASCII `string`.
1812
- *
1813
- * @private
1814
- * @param {string} string The string inspect.
1815
- * @returns {number} Returns the string size.
1816
- */
1817
- var asciiSize = baseProperty("length");
1818
- //#endregion
1819
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_unicodeSize.js
1820
- var rsAstralRange = "\\ud800-\\udfff";
1821
- var rsComboRange = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff";
1822
- var rsVarRange = "\\ufe0e\\ufe0f";
1823
- var rsAstral = "[" + rsAstralRange + "]";
1824
- var rsCombo = "[" + rsComboRange + "]";
1825
- var rsFitz = "\\ud83c[\\udffb-\\udfff]";
1826
- var rsModifier = "(?:" + rsCombo + "|" + rsFitz + ")";
1827
- var rsNonAstral = "[^" + rsAstralRange + "]";
1828
- var rsRegional = "(?:\\ud83c[\\udde6-\\uddff]){2}";
1829
- var rsSurrPair = "[\\ud800-\\udbff][\\udc00-\\udfff]";
1830
- var rsZWJ = "\\u200d";
1831
- var reOptMod = rsModifier + "?";
1832
- var rsOptVar = "[" + rsVarRange + "]?";
1833
- var rsOptJoin = "(?:" + rsZWJ + "(?:" + [
1834
- rsNonAstral,
1835
- rsRegional,
1836
- rsSurrPair
1837
- ].join("|") + ")" + rsOptVar + reOptMod + ")*";
1838
- var rsSeq = rsOptVar + reOptMod + rsOptJoin;
1839
- var rsSymbol = "(?:" + [
1840
- rsNonAstral + rsCombo + "?",
1841
- rsCombo,
1842
- rsRegional,
1843
- rsSurrPair,
1844
- rsAstral
1845
- ].join("|") + ")";
1846
- /** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */
1847
- var reUnicode = RegExp(rsFitz + "(?=" + rsFitz + ")|" + rsSymbol + rsSeq, "g");
1848
- /**
1849
- * Gets the size of a Unicode `string`.
1850
- *
1851
- * @private
1852
- * @param {string} string The string inspect.
1853
- * @returns {number} Returns the string size.
1854
- */
1855
- function unicodeSize(string) {
1856
- var result = reUnicode.lastIndex = 0;
1857
- while (reUnicode.test(string)) ++result;
1858
- return result;
1859
- }
1860
- //#endregion
1861
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_stringSize.js
1862
- /**
1863
- * Gets the number of symbols in `string`.
1864
- *
1865
- * @private
1866
- * @param {string} string The string to inspect.
1867
- * @returns {number} Returns the string size.
1868
- */
1869
- function stringSize(string) {
1870
- return hasUnicode(string) ? unicodeSize(string) : asciiSize(string);
1871
- }
1872
- //#endregion
1873
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_basePick.js
1874
- /**
1875
- * The base implementation of `_.pick` without support for individual
1876
- * property identifiers.
1877
- *
1878
- * @private
1879
- * @param {Object} object The source object.
1880
- * @param {string[]} paths The property paths to pick.
1881
- * @returns {Object} Returns the new object.
1882
- */
1883
- function basePick(object, paths) {
1884
- return basePickBy(object, paths, function(value, path) {
1885
- return hasIn(object, path);
1886
- });
1887
- }
1888
- //#endregion
1889
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/pick.js
1890
- /**
1891
- * Creates an object composed of the picked `object` properties.
1892
- *
1893
- * @static
1894
- * @since 0.1.0
1895
- * @memberOf _
1896
- * @category Object
1897
- * @param {Object} object The source object.
1898
- * @param {...(string|string[])} [paths] The property paths to pick.
1899
- * @returns {Object} Returns the new object.
1900
- * @example
1901
- *
1902
- * var object = { 'a': 1, 'b': '2', 'c': 3 };
1903
- *
1904
- * _.pick(object, ['a', 'c']);
1905
- * // => { 'a': 1, 'c': 3 }
1906
- */
1907
- var pick = flatRest(function(object, paths) {
1908
- return object == null ? {} : basePick(object, paths);
1909
- });
1910
- //#endregion
1911
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseRange.js
1912
- var nativeCeil = Math.ceil;
1913
- var nativeMax = Math.max;
1914
- /**
1915
- * The base implementation of `_.range` and `_.rangeRight` which doesn't
1916
- * coerce arguments.
1917
- *
1918
- * @private
1919
- * @param {number} start The start of the range.
1920
- * @param {number} end The end of the range.
1921
- * @param {number} step The value to increment or decrement by.
1922
- * @param {boolean} [fromRight] Specify iterating from right to left.
1923
- * @returns {Array} Returns the range of numbers.
1924
- */
1925
- function baseRange(start, end, step, fromRight) {
1926
- var index = -1;
1927
- var length = nativeMax(nativeCeil((end - start) / (step || 1)), 0);
1928
- var result = Array(length);
1929
- while (length--) {
1930
- result[fromRight ? length : ++index] = start;
1931
- start += step;
1932
- }
1933
- return result;
1934
- }
1935
- //#endregion
1936
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_createRange.js
1937
- /**
1938
- * Creates a `_.range` or `_.rangeRight` function.
1939
- *
1940
- * @private
1941
- * @param {boolean} [fromRight] Specify iterating from right to left.
1942
- * @returns {Function} Returns the new range function.
1943
- */
1944
- function createRange(fromRight) {
1945
- return function(start, end, step) {
1946
- if (step && typeof step != "number" && isIterateeCall(start, end, step)) end = step = void 0;
1947
- start = toFinite(start);
1948
- if (end === void 0) {
1949
- end = start;
1950
- start = 0;
1951
- } else end = toFinite(end);
1952
- step = step === void 0 ? start < end ? 1 : -1 : toFinite(step);
1953
- return baseRange(start, end, step, fromRight);
1954
- };
1955
- }
1956
- //#endregion
1957
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/range.js
1958
- /**
1959
- * Creates an array of numbers (positive and/or negative) progressing from
1960
- * `start` up to, but not including, `end`. A step of `-1` is used if a negative
1961
- * `start` is specified without an `end` or `step`. If `end` is not specified,
1962
- * it's set to `start` with `start` then set to `0`.
1963
- *
1964
- * **Note:** JavaScript follows the IEEE-754 standard for resolving
1965
- * floating-point values which can produce unexpected results.
1966
- *
1967
- * @static
1968
- * @since 0.1.0
1969
- * @memberOf _
1970
- * @category Util
1971
- * @param {number} [start=0] The start of the range.
1972
- * @param {number} end The end of the range.
1973
- * @param {number} [step=1] The value to increment or decrement by.
1974
- * @returns {Array} Returns the range of numbers.
1975
- * @see _.inRange, _.rangeRight
1976
- * @example
1977
- *
1978
- * _.range(4);
1979
- * // => [0, 1, 2, 3]
1980
- *
1981
- * _.range(-4);
1982
- * // => [0, -1, -2, -3]
1983
- *
1984
- * _.range(1, 5);
1985
- * // => [1, 2, 3, 4]
1986
- *
1987
- * _.range(0, 20, 5);
1988
- * // => [0, 5, 10, 15]
1989
- *
1990
- * _.range(0, -4, -1);
1991
- * // => [0, -1, -2, -3]
1992
- *
1993
- * _.range(1, 4, 0);
1994
- * // => [1, 1, 1]
1995
- *
1996
- * _.range(0);
1997
- * // => []
1998
- */
1999
- var range = createRange();
2000
- //#endregion
2001
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/size.js
2002
- var mapTag = "[object Map]";
2003
- var setTag = "[object Set]";
2004
- /**
2005
- * Gets the size of `collection` by returning its length for array-like
2006
- * values or the number of own enumerable string keyed properties for objects.
2007
- *
2008
- * @static
2009
- * @memberOf _
2010
- * @since 0.1.0
2011
- * @category Collection
2012
- * @param {Array|Object|string} collection The collection to inspect.
2013
- * @returns {number} Returns the collection size.
2014
- * @example
2015
- *
2016
- * _.size([1, 2, 3]);
2017
- * // => 3
2018
- *
2019
- * _.size({ 'a': 1, 'b': 2 });
2020
- * // => 2
2021
- *
2022
- * _.size('pebbles');
2023
- * // => 7
2024
- */
2025
- function size(collection) {
2026
- if (collection == null) return 0;
2027
- if (isArrayLike(collection)) return isString(collection) ? stringSize(collection) : collection.length;
2028
- var tag = _getTag_default(collection);
2029
- if (tag == mapTag || tag == setTag) return collection.size;
2030
- return baseKeys(collection).length;
2031
- }
2032
- //#endregion
2033
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/sortBy.js
2034
- /**
2035
- * Creates an array of elements, sorted in ascending order by the results of
2036
- * running each element in a collection thru each iteratee. This method
2037
- * performs a stable sort, that is, it preserves the original sort order of
2038
- * equal elements. The iteratees are invoked with one argument: (value).
2039
- *
2040
- * @static
2041
- * @memberOf _
2042
- * @since 0.1.0
2043
- * @category Collection
2044
- * @param {Array|Object} collection The collection to iterate over.
2045
- * @param {...(Function|Function[])} [iteratees=[_.identity]]
2046
- * The iteratees to sort by.
2047
- * @returns {Array} Returns the new sorted array.
2048
- * @example
2049
- *
2050
- * var users = [
2051
- * { 'user': 'fred', 'age': 48 },
2052
- * { 'user': 'barney', 'age': 36 },
2053
- * { 'user': 'fred', 'age': 30 },
2054
- * { 'user': 'barney', 'age': 34 }
2055
- * ];
2056
- *
2057
- * _.sortBy(users, [function(o) { return o.user; }]);
2058
- * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 30]]
2059
- *
2060
- * _.sortBy(users, ['user', 'age']);
2061
- * // => objects for [['barney', 34], ['barney', 36], ['fred', 30], ['fred', 48]]
2062
- */
2063
- var sortBy = baseRest(function(collection, iteratees) {
2064
- if (collection == null) return [];
2065
- var length = iteratees.length;
2066
- if (length > 1 && isIterateeCall(collection, iteratees[0], iteratees[1])) iteratees = [];
2067
- else if (length > 2 && isIterateeCall(iteratees[0], iteratees[1], iteratees[2])) iteratees = [iteratees[0]];
2068
- return baseOrderBy(collection, baseFlatten(iteratees, 1), []);
2069
- });
2070
- //#endregion
2071
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/uniqueId.js
2072
- /** Used to generate unique IDs. */
2073
- var idCounter = 0;
2074
- /**
2075
- * Generates a unique ID. If `prefix` is given, the ID is appended to it.
2076
- *
2077
- * @static
2078
- * @since 0.1.0
2079
- * @memberOf _
2080
- * @category Util
2081
- * @param {string} [prefix=''] The value to prefix the ID with.
2082
- * @returns {string} Returns the unique ID.
2083
- * @example
2084
- *
2085
- * _.uniqueId('contact_');
2086
- * // => 'contact_104'
2087
- *
2088
- * _.uniqueId();
2089
- * // => '105'
2090
- */
2091
- function uniqueId(prefix) {
2092
- var id = ++idCounter;
2093
- return toString(prefix) + id;
2094
- }
2095
- //#endregion
2096
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/_baseZipObject.js
2097
- /**
2098
- * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
2099
- *
2100
- * @private
2101
- * @param {Array} props The property identifiers.
2102
- * @param {Array} values The property values.
2103
- * @param {Function} assignFunc The function to assign values.
2104
- * @returns {Object} Returns the new object.
2105
- */
2106
- function baseZipObject(props, values, assignFunc) {
2107
- var index = -1;
2108
- var length = props.length;
2109
- var valsLength = values.length;
2110
- var result = {};
2111
- while (++index < length) {
2112
- var value = index < valsLength ? values[index] : void 0;
2113
- assignFunc(result, props[index], value);
2114
- }
2115
- return result;
2116
- }
2117
- //#endregion
2118
- //#region ../../node_modules/.pnpm/lodash-es@4.18.1/node_modules/lodash-es/zipObject.js
2119
- /**
2120
- * This method is like `_.fromPairs` except that it accepts two arrays,
2121
- * one of property identifiers and one of corresponding values.
2122
- *
2123
- * @static
2124
- * @memberOf _
2125
- * @since 0.4.0
2126
- * @category Array
2127
- * @param {Array} [props=[]] The property identifiers.
2128
- * @param {Array} [values=[]] The property values.
2129
- * @returns {Object} Returns the new object.
2130
- * @example
2131
- *
2132
- * _.zipObject(['a', 'b'], [1, 2]);
2133
- * // => { 'a': 1, 'b': 2 }
2134
- */
2135
- function zipObject(props, values) {
2136
- return baseZipObject(props || [], values || [], assignValue);
2137
- }
2138
- //#endregion
2139
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/data/list.js
2140
- var List = class {
2141
- constructor() {
2142
- var sentinel = {};
2143
- sentinel._next = sentinel._prev = sentinel;
2144
- this._sentinel = sentinel;
2145
- }
2146
- dequeue() {
2147
- var sentinel = this._sentinel;
2148
- var entry = sentinel._prev;
2149
- if (entry !== sentinel) {
2150
- unlink(entry);
2151
- return entry;
2152
- }
2153
- }
2154
- enqueue(entry) {
2155
- var sentinel = this._sentinel;
2156
- if (entry._prev && entry._next) unlink(entry);
2157
- entry._next = sentinel._next;
2158
- sentinel._next._prev = entry;
2159
- sentinel._next = entry;
2160
- entry._prev = sentinel;
2161
- }
2162
- toString() {
2163
- var strs = [];
2164
- var sentinel = this._sentinel;
2165
- var curr = sentinel._prev;
2166
- while (curr !== sentinel) {
2167
- strs.push(JSON.stringify(curr, filterOutLinks));
2168
- curr = curr._prev;
2169
- }
2170
- return "[" + strs.join(", ") + "]";
2171
- }
2172
- };
2173
- function unlink(entry) {
2174
- entry._prev._next = entry._next;
2175
- entry._next._prev = entry._prev;
2176
- delete entry._next;
2177
- delete entry._prev;
2178
- }
2179
- function filterOutLinks(k, v) {
2180
- if (k !== "_next" && k !== "_prev") return v;
2181
- }
2182
- //#endregion
2183
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/greedy-fas.js
2184
- var DEFAULT_WEIGHT_FN = constant(1);
2185
- function greedyFAS(g, weightFn) {
2186
- if (g.nodeCount() <= 1) return [];
2187
- var state = buildState(g, weightFn || DEFAULT_WEIGHT_FN);
2188
- return flatten(map(doGreedyFAS(state.graph, state.buckets, state.zeroIdx), function(e) {
2189
- return g.outEdges(e.v, e.w);
2190
- }));
2191
- }
2192
- function doGreedyFAS(g, buckets, zeroIdx) {
2193
- var results = [];
2194
- var sources = buckets[buckets.length - 1];
2195
- var sinks = buckets[0];
2196
- var entry;
2197
- while (g.nodeCount()) {
2198
- while (entry = sinks.dequeue()) removeNode(g, buckets, zeroIdx, entry);
2199
- while (entry = sources.dequeue()) removeNode(g, buckets, zeroIdx, entry);
2200
- if (g.nodeCount()) for (var i = buckets.length - 2; i > 0; --i) {
2201
- entry = buckets[i].dequeue();
2202
- if (entry) {
2203
- results = results.concat(removeNode(g, buckets, zeroIdx, entry, true));
2204
- break;
2205
- }
2206
- }
2207
- }
2208
- return results;
2209
- }
2210
- function removeNode(g, buckets, zeroIdx, entry, collectPredecessors) {
2211
- var results = collectPredecessors ? [] : void 0;
2212
- forEach(g.inEdges(entry.v), function(edge) {
2213
- var weight = g.edge(edge);
2214
- var uEntry = g.node(edge.v);
2215
- if (collectPredecessors) results.push({
2216
- v: edge.v,
2217
- w: edge.w
2218
- });
2219
- uEntry.out -= weight;
2220
- assignBucket(buckets, zeroIdx, uEntry);
2221
- });
2222
- forEach(g.outEdges(entry.v), function(edge) {
2223
- var weight = g.edge(edge);
2224
- var w = edge.w;
2225
- var wEntry = g.node(w);
2226
- wEntry["in"] -= weight;
2227
- assignBucket(buckets, zeroIdx, wEntry);
2228
- });
2229
- g.removeNode(entry.v);
2230
- return results;
2231
- }
2232
- function buildState(g, weightFn) {
2233
- var fasGraph = new Graph();
2234
- var maxIn = 0;
2235
- var maxOut = 0;
2236
- forEach(g.nodes(), function(v) {
2237
- fasGraph.setNode(v, {
2238
- v,
2239
- in: 0,
2240
- out: 0
2241
- });
2242
- });
2243
- forEach(g.edges(), function(e) {
2244
- var prevWeight = fasGraph.edge(e.v, e.w) || 0;
2245
- var weight = weightFn(e);
2246
- var edgeWeight = prevWeight + weight;
2247
- fasGraph.setEdge(e.v, e.w, edgeWeight);
2248
- maxOut = Math.max(maxOut, fasGraph.node(e.v).out += weight);
2249
- maxIn = Math.max(maxIn, fasGraph.node(e.w)["in"] += weight);
2250
- });
2251
- var buckets = range(maxOut + maxIn + 3).map(function() {
2252
- return new List();
2253
- });
2254
- var zeroIdx = maxIn + 1;
2255
- forEach(fasGraph.nodes(), function(v) {
2256
- assignBucket(buckets, zeroIdx, fasGraph.node(v));
2257
- });
2258
- return {
2259
- graph: fasGraph,
2260
- buckets,
2261
- zeroIdx
2262
- };
2263
- }
2264
- function assignBucket(buckets, zeroIdx, entry) {
2265
- if (!entry.out) buckets[0].enqueue(entry);
2266
- else if (!entry["in"]) buckets[buckets.length - 1].enqueue(entry);
2267
- else buckets[entry.out - entry["in"] + zeroIdx].enqueue(entry);
2268
- }
2269
- //#endregion
2270
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/acyclic.js
2271
- function run$2(g) {
2272
- forEach(g.graph().acyclicer === "greedy" ? greedyFAS(g, weightFn(g)) : dfsFAS(g), function(e) {
2273
- var label = g.edge(e);
2274
- g.removeEdge(e);
2275
- label.forwardName = e.name;
2276
- label.reversed = true;
2277
- g.setEdge(e.w, e.v, label, uniqueId("rev"));
2278
- });
2279
- function weightFn(g) {
2280
- return function(e) {
2281
- return g.edge(e).weight;
2282
- };
2283
- }
2284
- }
2285
- __name(run$2, "run");
2286
- function dfsFAS(g) {
2287
- var fas = [];
2288
- var stack = {};
2289
- var visited = {};
2290
- function dfs(v) {
2291
- if (Object.prototype.hasOwnProperty.call(visited, v)) return;
2292
- visited[v] = true;
2293
- stack[v] = true;
2294
- forEach(g.outEdges(v), function(e) {
2295
- if (Object.prototype.hasOwnProperty.call(stack, e.w)) fas.push(e);
2296
- else dfs(e.w);
2297
- });
2298
- delete stack[v];
2299
- }
2300
- forEach(g.nodes(), dfs);
2301
- return fas;
2302
- }
2303
- function undo$2(g) {
2304
- forEach(g.edges(), function(e) {
2305
- var label = g.edge(e);
2306
- if (label.reversed) {
2307
- g.removeEdge(e);
2308
- var forwardName = label.forwardName;
2309
- delete label.reversed;
2310
- delete label.forwardName;
2311
- g.setEdge(e.w, e.v, label, forwardName);
2312
- }
2313
- });
2314
- }
2315
- __name(undo$2, "undo");
2316
- //#endregion
2317
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/util.js
2318
- function addDummyNode(g, type, attrs, name) {
2319
- var v;
2320
- do
2321
- v = uniqueId(name);
2322
- while (g.hasNode(v));
2323
- attrs.dummy = type;
2324
- g.setNode(v, attrs);
2325
- return v;
2326
- }
2327
- function simplify(g) {
2328
- var simplified = new Graph().setGraph(g.graph());
2329
- forEach(g.nodes(), function(v) {
2330
- simplified.setNode(v, g.node(v));
2331
- });
2332
- forEach(g.edges(), function(e) {
2333
- var simpleLabel = simplified.edge(e.v, e.w) || {
2334
- weight: 0,
2335
- minlen: 1
2336
- };
2337
- var label = g.edge(e);
2338
- simplified.setEdge(e.v, e.w, {
2339
- weight: simpleLabel.weight + label.weight,
2340
- minlen: Math.max(simpleLabel.minlen, label.minlen)
2341
- });
2342
- });
2343
- return simplified;
2344
- }
2345
- function asNonCompoundGraph(g) {
2346
- var simplified = new Graph({ multigraph: g.isMultigraph() }).setGraph(g.graph());
2347
- forEach(g.nodes(), function(v) {
2348
- if (!g.children(v).length) simplified.setNode(v, g.node(v));
2349
- });
2350
- forEach(g.edges(), function(e) {
2351
- simplified.setEdge(e, g.edge(e));
2352
- });
2353
- return simplified;
2354
- }
2355
- function intersectRect(rect, point) {
2356
- var x = rect.x;
2357
- var y = rect.y;
2358
- var dx = point.x - x;
2359
- var dy = point.y - y;
2360
- var w = rect.width / 2;
2361
- var h = rect.height / 2;
2362
- if (!dx && !dy) throw new Error("Not possible to find intersection inside of the rectangle");
2363
- var sx;
2364
- var sy;
2365
- if (Math.abs(dy) * w > Math.abs(dx) * h) {
2366
- if (dy < 0) h = -h;
2367
- sx = h * dx / dy;
2368
- sy = h;
2369
- } else {
2370
- if (dx < 0) w = -w;
2371
- sx = w;
2372
- sy = w * dy / dx;
2373
- }
2374
- return {
2375
- x: x + sx,
2376
- y: y + sy
2377
- };
2378
- }
2379
- function buildLayerMatrix(g) {
2380
- var layering = map(range(maxRank(g) + 1), function() {
2381
- return [];
2382
- });
2383
- forEach(g.nodes(), function(v) {
2384
- var node = g.node(v);
2385
- var rank = node.rank;
2386
- if (!isUndefined(rank)) layering[rank][node.order] = v;
2387
- });
2388
- return layering;
2389
- }
2390
- function normalizeRanks(g) {
2391
- var min$1 = min(map(g.nodes(), function(v) {
2392
- return g.node(v).rank;
2393
- }));
2394
- forEach(g.nodes(), function(v) {
2395
- var node = g.node(v);
2396
- if (has(node, "rank")) node.rank -= min$1;
2397
- });
2398
- }
2399
- function removeEmptyRanks(g) {
2400
- var offset = min(map(g.nodes(), function(v) {
2401
- return g.node(v).rank;
2402
- }));
2403
- var layers = [];
2404
- forEach(g.nodes(), function(v) {
2405
- var rank = g.node(v).rank - offset;
2406
- if (!layers[rank]) layers[rank] = [];
2407
- layers[rank].push(v);
2408
- });
2409
- var delta = 0;
2410
- var nodeRankFactor = g.graph().nodeRankFactor;
2411
- forEach(layers, function(vs, i) {
2412
- if (isUndefined(vs) && i % nodeRankFactor !== 0) --delta;
2413
- else if (delta) forEach(vs, function(v) {
2414
- g.node(v).rank += delta;
2415
- });
2416
- });
2417
- }
2418
- function addBorderNode$1(g, prefix, rank, order) {
2419
- var node = {
2420
- width: 0,
2421
- height: 0
2422
- };
2423
- if (arguments.length >= 4) {
2424
- node.rank = rank;
2425
- node.order = order;
2426
- }
2427
- return addDummyNode(g, "border", node, prefix);
2428
- }
2429
- __name(addBorderNode$1, "addBorderNode");
2430
- function maxRank(g) {
2431
- return max(map(g.nodes(), function(v) {
2432
- var rank = g.node(v).rank;
2433
- if (!isUndefined(rank)) return rank;
2434
- }));
2435
- }
2436
- function partition(collection, fn) {
2437
- var result = {
2438
- lhs: [],
2439
- rhs: []
2440
- };
2441
- forEach(collection, function(value) {
2442
- if (fn(value)) result.lhs.push(value);
2443
- else result.rhs.push(value);
2444
- });
2445
- return result;
2446
- }
2447
- function time(name, fn) {
2448
- var start = now();
2449
- try {
2450
- return fn();
2451
- } finally {
2452
- console.log(name + " time: " + (now() - start) + "ms");
2453
- }
2454
- }
2455
- function notime(name, fn) {
2456
- return fn();
2457
- }
2458
- //#endregion
2459
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/add-border-segments.js
2460
- function addBorderSegments(g) {
2461
- function dfs(v) {
2462
- var children = g.children(v);
2463
- var node = g.node(v);
2464
- if (children.length) forEach(children, dfs);
2465
- if (Object.prototype.hasOwnProperty.call(node, "minRank")) {
2466
- node.borderLeft = [];
2467
- node.borderRight = [];
2468
- for (var rank = node.minRank, maxRank = node.maxRank + 1; rank < maxRank; ++rank) {
2469
- addBorderNode(g, "borderLeft", "_bl", v, node, rank);
2470
- addBorderNode(g, "borderRight", "_br", v, node, rank);
2471
- }
2472
- }
2473
- }
2474
- forEach(g.children(), dfs);
2475
- }
2476
- function addBorderNode(g, prop, prefix, sg, sgNode, rank) {
2477
- var label = {
2478
- width: 0,
2479
- height: 0,
2480
- rank,
2481
- borderType: prop
2482
- };
2483
- var prev = sgNode[prop][rank - 1];
2484
- var curr = addDummyNode(g, "border", label, prefix);
2485
- sgNode[prop][rank] = curr;
2486
- g.setParent(curr, sg);
2487
- if (prev) g.setEdge(prev, curr, { weight: 1 });
2488
- }
2489
- //#endregion
2490
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/coordinate-system.js
2491
- function adjust(g) {
2492
- var rankDir = g.graph().rankdir.toLowerCase();
2493
- if (rankDir === "lr" || rankDir === "rl") swapWidthHeight(g);
2494
- }
2495
- function undo$1(g) {
2496
- var rankDir = g.graph().rankdir.toLowerCase();
2497
- if (rankDir === "bt" || rankDir === "rl") reverseY(g);
2498
- if (rankDir === "lr" || rankDir === "rl") {
2499
- swapXY(g);
2500
- swapWidthHeight(g);
2501
- }
2502
- }
2503
- __name(undo$1, "undo");
2504
- function swapWidthHeight(g) {
2505
- forEach(g.nodes(), function(v) {
2506
- swapWidthHeightOne(g.node(v));
2507
- });
2508
- forEach(g.edges(), function(e) {
2509
- swapWidthHeightOne(g.edge(e));
2510
- });
2511
- }
2512
- function swapWidthHeightOne(attrs) {
2513
- var w = attrs.width;
2514
- attrs.width = attrs.height;
2515
- attrs.height = w;
2516
- }
2517
- function reverseY(g) {
2518
- forEach(g.nodes(), function(v) {
2519
- reverseYOne(g.node(v));
2520
- });
2521
- forEach(g.edges(), function(e) {
2522
- var edge = g.edge(e);
2523
- forEach(edge.points, reverseYOne);
2524
- if (Object.prototype.hasOwnProperty.call(edge, "y")) reverseYOne(edge);
2525
- });
2526
- }
2527
- function reverseYOne(attrs) {
2528
- attrs.y = -attrs.y;
2529
- }
2530
- function swapXY(g) {
2531
- forEach(g.nodes(), function(v) {
2532
- swapXYOne(g.node(v));
2533
- });
2534
- forEach(g.edges(), function(e) {
2535
- var edge = g.edge(e);
2536
- forEach(edge.points, swapXYOne);
2537
- if (Object.prototype.hasOwnProperty.call(edge, "x")) swapXYOne(edge);
2538
- });
2539
- }
2540
- function swapXYOne(attrs) {
2541
- var x = attrs.x;
2542
- attrs.x = attrs.y;
2543
- attrs.y = x;
2544
- }
2545
- //#endregion
2546
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/normalize.js
2547
- /**
2548
- * TypeScript type imports:
2549
- *
2550
- * @import { Graph } from '../graphlib/graph.js';
2551
- */
2552
- function run$1(g) {
2553
- g.graph().dummyChains = [];
2554
- forEach(g.edges(), function(edge) {
2555
- normalizeEdge(g, edge);
2556
- });
2557
- }
2558
- __name(run$1, "run");
2559
- /**
2560
- * @param {Graph} g
2561
- */
2562
- function normalizeEdge(g, e) {
2563
- var v = e.v;
2564
- var vRank = g.node(v).rank;
2565
- var w = e.w;
2566
- var wRank = g.node(w).rank;
2567
- var name = e.name;
2568
- var edgeLabel = g.edge(e);
2569
- var labelRank = edgeLabel.labelRank;
2570
- if (wRank === vRank + 1) return;
2571
- g.removeEdge(e);
2572
- /**
2573
- * @typedef {Object} Attrs
2574
- * @property {number} width
2575
- * @property {number} height
2576
- * @property {ReturnType<Graph["node"]>} edgeLabel
2577
- * @property {any} edgeObj
2578
- * @property {ReturnType<Graph["node"]>["rank"]} rank
2579
- * @property {string} [dummy]
2580
- * @property {ReturnType<Graph["node"]>["labelpos"]} [labelpos]
2581
- */
2582
- /** @type {Attrs | undefined} */
2583
- var attrs = void 0;
2584
- var dummy;
2585
- var i;
2586
- for (i = 0, ++vRank; vRank < wRank; ++i, ++vRank) {
2587
- edgeLabel.points = [];
2588
- attrs = {
2589
- width: 0,
2590
- height: 0,
2591
- edgeLabel,
2592
- edgeObj: e,
2593
- rank: vRank
2594
- };
2595
- dummy = addDummyNode(g, "edge", attrs, "_d");
2596
- if (vRank === labelRank) {
2597
- attrs.width = edgeLabel.width;
2598
- attrs.height = edgeLabel.height;
2599
- attrs.dummy = "edge-label";
2600
- attrs.labelpos = edgeLabel.labelpos;
2601
- }
2602
- g.setEdge(v, dummy, { weight: edgeLabel.weight }, name);
2603
- if (i === 0) g.graph().dummyChains.push(dummy);
2604
- v = dummy;
2605
- }
2606
- g.setEdge(v, w, { weight: edgeLabel.weight }, name);
2607
- }
2608
- function undo(g) {
2609
- forEach(g.graph().dummyChains, function(v) {
2610
- var node = g.node(v);
2611
- var origLabel = node.edgeLabel;
2612
- var w;
2613
- g.setEdge(node.edgeObj, origLabel);
2614
- while (node.dummy) {
2615
- w = g.successors(v)[0];
2616
- g.removeNode(v);
2617
- origLabel.points.push({
2618
- x: node.x,
2619
- y: node.y
2620
- });
2621
- if (node.dummy === "edge-label") {
2622
- origLabel.x = node.x;
2623
- origLabel.y = node.y;
2624
- origLabel.width = node.width;
2625
- origLabel.height = node.height;
2626
- }
2627
- v = w;
2628
- node = g.node(v);
2629
- }
2630
- });
2631
- }
2632
- //#endregion
2633
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/rank/util.js
2634
- function longestPath(g) {
2635
- var visited = {};
2636
- function dfs(v) {
2637
- var label = g.node(v);
2638
- if (Object.prototype.hasOwnProperty.call(visited, v)) return label.rank;
2639
- visited[v] = true;
2640
- var rank = min(map(g.outEdges(v), function(e) {
2641
- return dfs(e.w) - g.edge(e).minlen;
2642
- }));
2643
- if (rank === Number.POSITIVE_INFINITY || rank === void 0 || rank === null) rank = 0;
2644
- return label.rank = rank;
2645
- }
2646
- forEach(g.sources(), dfs);
2647
- }
2648
- function slack(g, e) {
2649
- return g.node(e.w).rank - g.node(e.v).rank - g.edge(e).minlen;
2650
- }
2651
- //#endregion
2652
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/rank/feasible-tree.js
2653
- function feasibleTree(g) {
2654
- var t = new Graph({ directed: false });
2655
- var start = g.nodes()[0];
2656
- var size = g.nodeCount();
2657
- t.setNode(start, {});
2658
- var edge;
2659
- var delta;
2660
- while (tightTree(t, g) < size) {
2661
- edge = findMinSlackEdge(t, g);
2662
- delta = t.hasNode(edge.v) ? slack(g, edge) : -slack(g, edge);
2663
- shiftRanks(t, g, delta);
2664
- }
2665
- return t;
2666
- }
2667
- function tightTree(t, g) {
2668
- function dfs(v) {
2669
- forEach(g.nodeEdges(v), function(e) {
2670
- var edgeV = e.v;
2671
- var w = v === edgeV ? e.w : edgeV;
2672
- if (!t.hasNode(w) && !slack(g, e)) {
2673
- t.setNode(w, {});
2674
- t.setEdge(v, w, {});
2675
- dfs(w);
2676
- }
2677
- });
2678
- }
2679
- forEach(t.nodes(), dfs);
2680
- return t.nodeCount();
2681
- }
2682
- function findMinSlackEdge(t, g) {
2683
- return minBy(g.edges(), function(e) {
2684
- if (t.hasNode(e.v) !== t.hasNode(e.w)) return slack(g, e);
2685
- });
2686
- }
2687
- function shiftRanks(t, g, delta) {
2688
- forEach(t.nodes(), function(v) {
2689
- g.node(v).rank += delta;
2690
- });
2691
- }
2692
- constant(1);
2693
- constant(1);
2694
- //#endregion
2695
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/graphlib/alg/topsort.js
2696
- topsort.CycleException = CycleException;
2697
- /**
2698
- * An implementation of [topological sorting](https://en.wikipedia.org/wiki/Topological_sorting).
2699
- *
2700
- * @remarks Takes `O(|V| + |E|)` time.
2701
- *
2702
- * @example
2703
- *
2704
- * ![](https://github.com/dagrejs/graphlib/wiki/images/topsort.png)
2705
- *
2706
- * ```js
2707
- * graphlib.alg.topsort(g)
2708
- * // [ '1', '2', '3', '4' ] or [ '1', '3', '2', '4' ]
2709
- * ```
2710
- *
2711
- * @param {Graph} g - The graph to sort.
2712
- * @returns {NodeID[]} an array of nodes
2713
- * such that for each edge `u -> v`, `u` appears before `v` in the array.
2714
- * @throws {CycleException} If the graph has a cycle so that it is impossible
2715
- * to generate a topological sort.
2716
- */
2717
- function topsort(g) {
2718
- /** @type {Record<NodeID, true>} */
2719
- var visited = {};
2720
- /** @type {Record<NodeID, true>} */
2721
- var stack = {};
2722
- /** @type {NodeID[]} */
2723
- var results = [];
2724
- /**
2725
- * @param {NodeID} node - Node to recursively visit.
2726
- */
2727
- function visit(node) {
2728
- if (Object.prototype.hasOwnProperty.call(stack, node)) throw new CycleException();
2729
- if (!Object.prototype.hasOwnProperty.call(visited, node)) {
2730
- stack[node] = true;
2731
- visited[node] = true;
2732
- forEach(g.predecessors(node), visit);
2733
- delete stack[node];
2734
- results.push(node);
2735
- }
2736
- }
2737
- forEach(g.sinks(), visit);
2738
- if (size(visited) !== g.nodeCount()) throw new CycleException();
2739
- return results;
2740
- }
2741
- /**
2742
- * @class
2743
- */
2744
- function CycleException() {}
2745
- CycleException.prototype = /* @__PURE__ */ new Error();
2746
- //#endregion
2747
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/graphlib/alg/dfs.js
2748
- /**
2749
- * A helper that preforms a pre- or post-order traversal on the input graph
2750
- * and returns the nodes in the order they were visited. If the graph is
2751
- * undirected then this algorithm will navigate using neighbors. If the graph
2752
- * is directed then this algorithm will navigate using successors.
2753
- *
2754
- * @param {Graph} g - Input graph.
2755
- * @param {NodeID[] | NodeID} vs - Starting node or array of nodes.
2756
- * @param {'post' | 'pre'} order - The order to use. Must be one of "pre" or "post".
2757
- * @returns {NodeID[]} The nodes in the order they were visited.
2758
- */
2759
- function dfs$1(g, vs, order) {
2760
- if (!isArray(vs)) vs = [vs];
2761
- /** @type {Parameters<typeof doDfs>[4]} */
2762
- var navigation = (g.isDirected() ? g.successors : g.neighbors).bind(g);
2763
- /** @type {Parameters<typeof doDfs>[5]} */
2764
- var acc = [];
2765
- /** @type {Parameters<typeof doDfs>[3]} */
2766
- var visited = {};
2767
- forEach(vs, function(v) {
2768
- if (!g.hasNode(v)) throw new Error("Graph does not have node: " + v);
2769
- doDfs(g, v, order === "post", visited, navigation, acc);
2770
- });
2771
- return acc;
2772
- }
2773
- __name(dfs$1, "dfs");
2774
- /**
2775
- * @param {Graph} g - Input graph.
2776
- * @param {NodeID} v - The node to visit.
2777
- * @param {boolean} postorder - Whether to do postorder traversal.
2778
- * @param {Record<NodeID, true>} visited - Visited nodes.
2779
- * @param {(node: NodeID) => (NodeID[] | undefined)} navigation - Function to get
2780
- * neighbors/successors.
2781
- * @param {NodeID[]} acc - Accumulator for visited nodes.
2782
- */
2783
- function doDfs(g, v, postorder, visited, navigation, acc) {
2784
- if (!Object.prototype.hasOwnProperty.call(visited, v)) {
2785
- visited[v] = true;
2786
- if (!postorder) acc.push(v);
2787
- forEach(navigation(v), function(w) {
2788
- doDfs(g, w, postorder, visited, navigation, acc);
2789
- });
2790
- if (postorder) acc.push(v);
2791
- }
2792
- }
2793
- //#endregion
2794
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/graphlib/alg/postorder.js
2795
- /**
2796
- * This function performs a [postorder traversal][] of the graph `g` starting
2797
- * at the nodes `vs`. For each node visited, `v`, the function `callback(v)`
2798
- * is called.
2799
- *
2800
- * [postorder traversal]: https://en.wikipedia.org/wiki/Tree_traversal#Depth-first
2801
- *
2802
- * @example
2803
- *
2804
- * ![](https://github.com/dagrejs/graphlib/wiki/images/preorder.png)
2805
- *
2806
- * ```js
2807
- * graphlib.alg.postorder(g, "A");
2808
- * // => One of:
2809
- * // [ "B", "D", "E", C", "A" ]
2810
- * // [ "B", "E", "D", C", "A" ]
2811
- * // [ "D", "E", "C", B", "A" ]
2812
- * // [ "E", "D", "C", B", "A" ]
2813
- * ```
2814
- *
2815
- * @param {Parameters<typeof dfs>[0]} g - The graph to traverse.
2816
- * @param {Parameters<typeof dfs>[1]} vs - Nodes to start the traversal from.
2817
- * @returns {ReturnType<typeof dfs>} The nodes in the order they were visited.
2818
- */
2819
- function postorder$1(g, vs) {
2820
- return dfs$1(g, vs, "post");
2821
- }
2822
- __name(postorder$1, "postorder");
2823
- //#endregion
2824
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/graphlib/alg/preorder.js
2825
- /**
2826
- * This function performs a [preorder traversal][] of the graph `g` starting
2827
- * at the nodes `vs`. For each node visited, `v`, the function `callback(v)`
2828
- * is called.
2829
- *
2830
- * [preorder traversal]: https://en.wikipedia.org/wiki/Tree_traversal#Depth-first
2831
- *
2832
- * @example
2833
- *
2834
- * ![](https://github.com/dagrejs/graphlib/wiki/images/preorder.png)
2835
- * <!-- SOURCE:
2836
- * http://dagrejs.github.io/project/dagre-d3/latest/demo/interactive-demo.html?graph=digraph%20%7B%0Anode%20%5Bshape%3Dcircle%2C%20style%3D%22fill%3Awhite%3Bstroke%3A%23333%3Bstroke-width%3A1.5px%22%5D%0Aedge%20%5Blabeloffset%3D2%20labelpos%3Dr%5D%0Arankdir%3Dlr%0A%20%20A%20-%3E%20B%0A%20%20A%20-%3E%20C%0A%20%20C%20-%3E%20D%0A%20%20C%20-%3E%20E%0A%7D
2837
- * -->
2838
- *
2839
- * ```js
2840
- * graphlib.alg.preorder(g, "A");
2841
- * // => One of:
2842
- * // [ "A", "B", "C", "D", "E" ]
2843
- * // [ "A", "B", "C", "E", "D" ]
2844
- * // [ "A", "C", "D", "E", "B" ]
2845
- * // [ "A", "C", "E", "D", "B" ]
2846
- * ```
2847
- *
2848
- * @param {Parameters<typeof dfs>[0]} g - The graph to traverse.
2849
- * @param {Parameters<typeof dfs>[1]} vs - Nodes to start the traversal from.
2850
- * @returns {ReturnType<typeof dfs>} The nodes in the order they were visited.
2851
- */
2852
- function preorder(g, vs) {
2853
- return dfs$1(g, vs, "pre");
2854
- }
2855
- //#endregion
2856
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/rank/network-simplex.js
2857
- networkSimplex.initLowLimValues = initLowLimValues;
2858
- networkSimplex.initCutValues = initCutValues;
2859
- networkSimplex.calcCutValue = calcCutValue;
2860
- networkSimplex.leaveEdge = leaveEdge;
2861
- networkSimplex.enterEdge = enterEdge;
2862
- networkSimplex.exchangeEdges = exchangeEdges;
2863
- function networkSimplex(g) {
2864
- g = simplify(g);
2865
- longestPath(g);
2866
- var t = feasibleTree(g);
2867
- initLowLimValues(t);
2868
- initCutValues(t, g);
2869
- var e;
2870
- var f;
2871
- while (e = leaveEdge(t)) {
2872
- f = enterEdge(t, g, e);
2873
- exchangeEdges(t, g, e, f);
2874
- }
2875
- }
2876
- function initCutValues(t, g) {
2877
- var vs = postorder$1(t, t.nodes());
2878
- vs = vs.slice(0, vs.length - 1);
2879
- forEach(vs, function(v) {
2880
- assignCutValue(t, g, v);
2881
- });
2882
- }
2883
- function assignCutValue(t, g, child) {
2884
- var parent = t.node(child).parent;
2885
- t.edge(child, parent).cutvalue = calcCutValue(t, g, child);
2886
- }
2887
- function calcCutValue(t, g, child) {
2888
- var parent = t.node(child).parent;
2889
- var childIsTail = true;
2890
- var graphEdge = g.edge(child, parent);
2891
- var cutValue = 0;
2892
- if (!graphEdge) {
2893
- childIsTail = false;
2894
- graphEdge = g.edge(parent, child);
2895
- }
2896
- cutValue = graphEdge.weight;
2897
- forEach(g.nodeEdges(child), function(e) {
2898
- var isOutEdge = e.v === child;
2899
- var other = isOutEdge ? e.w : e.v;
2900
- if (other !== parent) {
2901
- var pointsToHead = isOutEdge === childIsTail;
2902
- var otherWeight = g.edge(e).weight;
2903
- cutValue += pointsToHead ? otherWeight : -otherWeight;
2904
- if (isTreeEdge(t, child, other)) {
2905
- var otherCutValue = t.edge(child, other).cutvalue;
2906
- cutValue += pointsToHead ? -otherCutValue : otherCutValue;
2907
- }
2908
- }
2909
- });
2910
- return cutValue;
2911
- }
2912
- function initLowLimValues(tree, root) {
2913
- if (arguments.length < 2) root = tree.nodes()[0];
2914
- dfsAssignLowLim(tree, {}, 1, root);
2915
- }
2916
- function dfsAssignLowLim(tree, visited, nextLim, v, parent) {
2917
- var low = nextLim;
2918
- var label = tree.node(v);
2919
- visited[v] = true;
2920
- forEach(tree.neighbors(v), function(w) {
2921
- if (!Object.prototype.hasOwnProperty.call(visited, w)) nextLim = dfsAssignLowLim(tree, visited, nextLim, w, v);
2922
- });
2923
- label.low = low;
2924
- label.lim = nextLim++;
2925
- if (parent) label.parent = parent;
2926
- else delete label.parent;
2927
- return nextLim;
2928
- }
2929
- function leaveEdge(tree) {
2930
- return find(tree.edges(), function(e) {
2931
- return tree.edge(e).cutvalue < 0;
2932
- });
2933
- }
2934
- function enterEdge(t, g, edge) {
2935
- var v = edge.v;
2936
- var w = edge.w;
2937
- if (!g.hasEdge(v, w)) {
2938
- v = edge.w;
2939
- w = edge.v;
2940
- }
2941
- var vLabel = t.node(v);
2942
- var wLabel = t.node(w);
2943
- var tailLabel = vLabel;
2944
- var flip = false;
2945
- if (vLabel.lim > wLabel.lim) {
2946
- tailLabel = wLabel;
2947
- flip = true;
2948
- }
2949
- return minBy(filter(g.edges(), function(edge) {
2950
- return flip === isDescendant(t, t.node(edge.v), tailLabel) && flip !== isDescendant(t, t.node(edge.w), tailLabel);
2951
- }), function(edge) {
2952
- return slack(g, edge);
2953
- });
2954
- }
2955
- function exchangeEdges(t, g, e, f) {
2956
- var v = e.v;
2957
- var w = e.w;
2958
- t.removeEdge(v, w);
2959
- t.setEdge(f.v, f.w, {});
2960
- initLowLimValues(t);
2961
- initCutValues(t, g);
2962
- updateRanks(t, g);
2963
- }
2964
- function updateRanks(t, g) {
2965
- var vs = preorder(t, find(t.nodes(), function(v) {
2966
- return !g.node(v).parent;
2967
- }));
2968
- vs = vs.slice(1);
2969
- forEach(vs, function(v) {
2970
- var parent = t.node(v).parent;
2971
- var edge = g.edge(v, parent);
2972
- var flipped = false;
2973
- if (!edge) {
2974
- edge = g.edge(parent, v);
2975
- flipped = true;
2976
- }
2977
- g.node(v).rank = g.node(parent).rank + (flipped ? edge.minlen : -edge.minlen);
2978
- });
2979
- }
2980
- function isTreeEdge(tree, u, v) {
2981
- return tree.hasEdge(u, v);
2982
- }
2983
- function isDescendant(tree, vLabel, rootLabel) {
2984
- return rootLabel.low <= vLabel.lim && vLabel.lim <= rootLabel.lim;
2985
- }
2986
- //#endregion
2987
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/rank/index.js
2988
- function rank(g) {
2989
- switch (g.graph().ranker) {
2990
- case "network-simplex":
2991
- networkSimplexRanker(g);
2992
- break;
2993
- case "tight-tree":
2994
- tightTreeRanker(g);
2995
- break;
2996
- case "longest-path":
2997
- longestPathRanker(g);
2998
- break;
2999
- default: networkSimplexRanker(g);
3000
- }
3001
- }
3002
- var longestPathRanker = longestPath;
3003
- function tightTreeRanker(g) {
3004
- longestPath(g);
3005
- feasibleTree(g);
3006
- }
3007
- function networkSimplexRanker(g) {
3008
- networkSimplex(g);
3009
- }
3010
- //#endregion
3011
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/nesting-graph.js
3012
- function run(g) {
3013
- var root = addDummyNode(g, "root", {}, "_root");
3014
- var depths = treeDepths(g);
3015
- var height = max(values(depths)) - 1;
3016
- var nodeSep = 2 * height + 1;
3017
- g.graph().nestingRoot = root;
3018
- forEach(g.edges(), function(e) {
3019
- g.edge(e).minlen *= nodeSep;
3020
- });
3021
- var weight = sumWeights(g) + 1;
3022
- forEach(g.children(), function(child) {
3023
- dfs(g, root, nodeSep, weight, height, depths, child);
3024
- });
3025
- g.graph().nodeRankFactor = nodeSep;
3026
- }
3027
- function dfs(g, root, nodeSep, weight, height, depths, v) {
3028
- var children = g.children(v);
3029
- if (!children.length) {
3030
- if (v !== root) g.setEdge(root, v, {
3031
- weight: 0,
3032
- minlen: nodeSep
3033
- });
3034
- return;
3035
- }
3036
- var top = addBorderNode$1(g, "_bt");
3037
- var bottom = addBorderNode$1(g, "_bb");
3038
- var label = g.node(v);
3039
- g.setParent(top, v);
3040
- label.borderTop = top;
3041
- g.setParent(bottom, v);
3042
- label.borderBottom = bottom;
3043
- forEach(children, function(child) {
3044
- dfs(g, root, nodeSep, weight, height, depths, child);
3045
- var childNode = g.node(child);
3046
- var childTop = childNode.borderTop ? childNode.borderTop : child;
3047
- var childBottom = childNode.borderBottom ? childNode.borderBottom : child;
3048
- var thisWeight = childNode.borderTop ? weight : 2 * weight;
3049
- var minlen = childTop !== childBottom ? 1 : height - depths[v] + 1;
3050
- g.setEdge(top, childTop, {
3051
- weight: thisWeight,
3052
- minlen,
3053
- nestingEdge: true
3054
- });
3055
- g.setEdge(childBottom, bottom, {
3056
- weight: thisWeight,
3057
- minlen,
3058
- nestingEdge: true
3059
- });
3060
- });
3061
- if (!g.parent(v)) g.setEdge(root, top, {
3062
- weight: 0,
3063
- minlen: height + depths[v]
3064
- });
3065
- }
3066
- function treeDepths(g) {
3067
- var depths = {};
3068
- function dfs(v, depth) {
3069
- var children = g.children(v);
3070
- if (children && children.length) forEach(children, function(child) {
3071
- dfs(child, depth + 1);
3072
- });
3073
- depths[v] = depth;
3074
- }
3075
- forEach(g.children(), function(v) {
3076
- dfs(v, 1);
3077
- });
3078
- return depths;
3079
- }
3080
- function sumWeights(g) {
3081
- return reduce(g.edges(), function(acc, e) {
3082
- return acc + g.edge(e).weight;
3083
- }, 0);
3084
- }
3085
- function cleanup(g) {
3086
- var graphLabel = g.graph();
3087
- g.removeNode(graphLabel.nestingRoot);
3088
- delete graphLabel.nestingRoot;
3089
- forEach(g.edges(), function(e) {
3090
- if (g.edge(e).nestingEdge) g.removeEdge(e);
3091
- });
3092
- }
3093
- //#endregion
3094
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/order/add-subgraph-constraints.js
3095
- function addSubgraphConstraints(g, cg, vs) {
3096
- var prev = {};
3097
- var rootPrev;
3098
- forEach(vs, function(v) {
3099
- var child = g.parent(v);
3100
- var parent;
3101
- var prevChild;
3102
- while (child) {
3103
- parent = g.parent(child);
3104
- if (parent) {
3105
- prevChild = prev[parent];
3106
- prev[parent] = child;
3107
- } else {
3108
- prevChild = rootPrev;
3109
- rootPrev = child;
3110
- }
3111
- if (prevChild && prevChild !== child) {
3112
- cg.setEdge(prevChild, child);
3113
- return;
3114
- }
3115
- child = parent;
3116
- }
3117
- });
3118
- }
3119
- //#endregion
3120
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/order/build-layer-graph.js
3121
- function buildLayerGraph(g, rank, relationship) {
3122
- var root = createRootNode(g);
3123
- var result = new Graph({ compound: true }).setGraph({ root }).setDefaultNodeLabel(function(v) {
3124
- return g.node(v);
3125
- });
3126
- forEach(g.nodes(), function(v) {
3127
- var node = g.node(v);
3128
- var parent = g.parent(v);
3129
- if (node.rank === rank || node.minRank <= rank && rank <= node.maxRank) {
3130
- result.setNode(v);
3131
- result.setParent(v, parent || root);
3132
- forEach(g[relationship](v), function(e) {
3133
- var u = e.v === v ? e.w : e.v;
3134
- var edge = result.edge(u, v);
3135
- var weight = !isUndefined(edge) ? edge.weight : 0;
3136
- result.setEdge(u, v, { weight: g.edge(e).weight + weight });
3137
- });
3138
- if (Object.prototype.hasOwnProperty.call(node, "minRank")) result.setNode(v, {
3139
- borderLeft: node.borderLeft[rank],
3140
- borderRight: node.borderRight[rank]
3141
- });
3142
- }
3143
- });
3144
- return result;
3145
- }
3146
- function createRootNode(g) {
3147
- var v;
3148
- while (g.hasNode(v = uniqueId("_root")));
3149
- return v;
3150
- }
3151
- //#endregion
3152
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/order/cross-count.js
3153
- function crossCount(g, layering) {
3154
- var cc = 0;
3155
- for (var i = 1; i < layering.length; ++i) cc += twoLayerCrossCount(g, layering[i - 1], layering[i]);
3156
- return cc;
3157
- }
3158
- function twoLayerCrossCount(g, northLayer, southLayer) {
3159
- var southPos = zipObject(southLayer, map(southLayer, function(v, i) {
3160
- return i;
3161
- }));
3162
- var southEntries = flatten(map(northLayer, function(v) {
3163
- return sortBy(map(g.outEdges(v), function(e) {
3164
- return {
3165
- pos: southPos[e.w],
3166
- weight: g.edge(e).weight
3167
- };
3168
- }), "pos");
3169
- }));
3170
- var firstIndex = 1;
3171
- while (firstIndex < southLayer.length) firstIndex <<= 1;
3172
- var treeSize = 2 * firstIndex - 1;
3173
- firstIndex -= 1;
3174
- var tree = map(new Array(treeSize), function() {
3175
- return 0;
3176
- });
3177
- var cc = 0;
3178
- forEach(southEntries.forEach(function(entry) {
3179
- var index = entry.pos + firstIndex;
3180
- tree[index] += entry.weight;
3181
- var weightSum = 0;
3182
- while (index > 0) {
3183
- if (index % 2) weightSum += tree[index + 1];
3184
- index = index - 1 >> 1;
3185
- tree[index] += entry.weight;
3186
- }
3187
- cc += entry.weight * weightSum;
3188
- }));
3189
- return cc;
3190
- }
3191
- //#endregion
3192
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/order/init-order.js
3193
- function initOrder(g) {
3194
- var visited = {};
3195
- var simpleNodes = filter(g.nodes(), function(v) {
3196
- return !g.children(v).length;
3197
- });
3198
- var layers = map(range(max(map(simpleNodes, function(v) {
3199
- return g.node(v).rank;
3200
- })) + 1), function() {
3201
- return [];
3202
- });
3203
- function dfs(v) {
3204
- if (has(visited, v)) return;
3205
- visited[v] = true;
3206
- layers[g.node(v).rank].push(v);
3207
- forEach(g.successors(v), dfs);
3208
- }
3209
- forEach(sortBy(simpleNodes, function(v) {
3210
- return g.node(v).rank;
3211
- }), dfs);
3212
- return layers;
3213
- }
3214
- //#endregion
3215
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/order/barycenter.js
3216
- function barycenter(g, movable) {
3217
- return map(movable, function(v) {
3218
- var inV = g.inEdges(v);
3219
- if (!inV.length) return { v };
3220
- else {
3221
- var result = reduce(inV, function(acc, e) {
3222
- var edge = g.edge(e);
3223
- var nodeU = g.node(e.v);
3224
- return {
3225
- sum: acc.sum + edge.weight * nodeU.order,
3226
- weight: acc.weight + edge.weight
3227
- };
3228
- }, {
3229
- sum: 0,
3230
- weight: 0
3231
- });
3232
- return {
3233
- v,
3234
- barycenter: result.sum / result.weight,
3235
- weight: result.weight
3236
- };
3237
- }
3238
- });
3239
- }
3240
- //#endregion
3241
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/order/resolve-conflicts.js
3242
- function resolveConflicts(entries, cg) {
3243
- var mappedEntries = {};
3244
- forEach(entries, function(entry, i) {
3245
- var tmp = mappedEntries[entry.v] = {
3246
- indegree: 0,
3247
- in: [],
3248
- out: [],
3249
- vs: [entry.v],
3250
- i
3251
- };
3252
- if (!isUndefined(entry.barycenter)) {
3253
- tmp.barycenter = entry.barycenter;
3254
- tmp.weight = entry.weight;
3255
- }
3256
- });
3257
- forEach(cg.edges(), function(e) {
3258
- var entryV = mappedEntries[e.v];
3259
- var entryW = mappedEntries[e.w];
3260
- if (!isUndefined(entryV) && !isUndefined(entryW)) {
3261
- entryW.indegree++;
3262
- entryV.out.push(mappedEntries[e.w]);
3263
- }
3264
- });
3265
- return doResolveConflicts(filter(mappedEntries, function(entry) {
3266
- return !entry.indegree;
3267
- }));
3268
- }
3269
- function doResolveConflicts(sourceSet) {
3270
- var entries = [];
3271
- function handleIn(vEntry) {
3272
- return function(uEntry) {
3273
- if (uEntry.merged) return;
3274
- if (isUndefined(uEntry.barycenter) || isUndefined(vEntry.barycenter) || uEntry.barycenter >= vEntry.barycenter) mergeEntries(vEntry, uEntry);
3275
- };
3276
- }
3277
- function handleOut(vEntry) {
3278
- return function(wEntry) {
3279
- wEntry["in"].push(vEntry);
3280
- if (--wEntry.indegree === 0) sourceSet.push(wEntry);
3281
- };
3282
- }
3283
- while (sourceSet.length) {
3284
- var entry = sourceSet.pop();
3285
- entries.push(entry);
3286
- forEach(entry["in"].reverse(), handleIn(entry));
3287
- forEach(entry.out, handleOut(entry));
3288
- }
3289
- return map(filter(entries, function(entry) {
3290
- return !entry.merged;
3291
- }), function(entry) {
3292
- return pick(entry, [
3293
- "vs",
3294
- "i",
3295
- "barycenter",
3296
- "weight"
3297
- ]);
3298
- });
3299
- }
3300
- function mergeEntries(target, source) {
3301
- var sum = 0;
3302
- var weight = 0;
3303
- if (target.weight) {
3304
- sum += target.barycenter * target.weight;
3305
- weight += target.weight;
3306
- }
3307
- if (source.weight) {
3308
- sum += source.barycenter * source.weight;
3309
- weight += source.weight;
3310
- }
3311
- target.vs = source.vs.concat(target.vs);
3312
- target.barycenter = sum / weight;
3313
- target.weight = weight;
3314
- target.i = Math.min(source.i, target.i);
3315
- source.merged = true;
3316
- }
3317
- //#endregion
3318
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/order/sort.js
3319
- function sort(entries, biasRight) {
3320
- var parts = partition(entries, function(entry) {
3321
- return Object.prototype.hasOwnProperty.call(entry, "barycenter");
3322
- });
3323
- var sortable = parts.lhs;
3324
- var unsortable = sortBy(parts.rhs, function(entry) {
3325
- return -entry.i;
3326
- });
3327
- var vs = [];
3328
- var sum = 0;
3329
- var weight = 0;
3330
- var vsIndex = 0;
3331
- sortable.sort(compareWithBias(!!biasRight));
3332
- vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
3333
- forEach(sortable, function(entry) {
3334
- vsIndex += entry.vs.length;
3335
- vs.push(entry.vs);
3336
- sum += entry.barycenter * entry.weight;
3337
- weight += entry.weight;
3338
- vsIndex = consumeUnsortable(vs, unsortable, vsIndex);
3339
- });
3340
- var result = { vs: flatten(vs) };
3341
- if (weight) {
3342
- result.barycenter = sum / weight;
3343
- result.weight = weight;
3344
- }
3345
- return result;
3346
- }
3347
- function consumeUnsortable(vs, unsortable, index) {
3348
- var last$1;
3349
- while (unsortable.length && (last$1 = last(unsortable)).i <= index) {
3350
- unsortable.pop();
3351
- vs.push(last$1.vs);
3352
- index++;
3353
- }
3354
- return index;
3355
- }
3356
- function compareWithBias(bias) {
3357
- return function(entryV, entryW) {
3358
- if (entryV.barycenter < entryW.barycenter) return -1;
3359
- else if (entryV.barycenter > entryW.barycenter) return 1;
3360
- return !bias ? entryV.i - entryW.i : entryW.i - entryV.i;
3361
- };
3362
- }
3363
- //#endregion
3364
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/order/sort-subgraph.js
3365
- function sortSubgraph(g, v, cg, biasRight) {
3366
- var movable = g.children(v);
3367
- var node = g.node(v);
3368
- var bl = node ? node.borderLeft : void 0;
3369
- var br = node ? node.borderRight : void 0;
3370
- var subgraphs = {};
3371
- if (bl) movable = filter(movable, function(w) {
3372
- return w !== bl && w !== br;
3373
- });
3374
- var barycenters = barycenter(g, movable);
3375
- forEach(barycenters, function(entry) {
3376
- if (g.children(entry.v).length) {
3377
- var subgraphResult = sortSubgraph(g, entry.v, cg, biasRight);
3378
- subgraphs[entry.v] = subgraphResult;
3379
- if (Object.prototype.hasOwnProperty.call(subgraphResult, "barycenter")) mergeBarycenters(entry, subgraphResult);
3380
- }
3381
- });
3382
- var entries = resolveConflicts(barycenters, cg);
3383
- expandSubgraphs(entries, subgraphs);
3384
- var result = sort(entries, biasRight);
3385
- if (bl) {
3386
- result.vs = flatten([
3387
- bl,
3388
- result.vs,
3389
- br
3390
- ]);
3391
- if (g.predecessors(bl).length) {
3392
- var blPred = g.node(g.predecessors(bl)[0]);
3393
- var brPred = g.node(g.predecessors(br)[0]);
3394
- if (!Object.prototype.hasOwnProperty.call(result, "barycenter")) {
3395
- result.barycenter = 0;
3396
- result.weight = 0;
3397
- }
3398
- result.barycenter = (result.barycenter * result.weight + blPred.order + brPred.order) / (result.weight + 2);
3399
- result.weight += 2;
3400
- }
3401
- }
3402
- return result;
3403
- }
3404
- function expandSubgraphs(entries, subgraphs) {
3405
- forEach(entries, function(entry) {
3406
- entry.vs = flatten(entry.vs.map(function(v) {
3407
- if (subgraphs[v]) return subgraphs[v].vs;
3408
- return v;
3409
- }));
3410
- });
3411
- }
3412
- function mergeBarycenters(target, other) {
3413
- if (!isUndefined(target.barycenter)) {
3414
- target.barycenter = (target.barycenter * target.weight + other.barycenter * other.weight) / (target.weight + other.weight);
3415
- target.weight += other.weight;
3416
- } else {
3417
- target.barycenter = other.barycenter;
3418
- target.weight = other.weight;
3419
- }
3420
- }
3421
- //#endregion
3422
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/order/index.js
3423
- function order(g) {
3424
- var maxRank$1 = maxRank(g);
3425
- var downLayerGraphs = buildLayerGraphs(g, range(1, maxRank$1 + 1), "inEdges");
3426
- var upLayerGraphs = buildLayerGraphs(g, range(maxRank$1 - 1, -1, -1), "outEdges");
3427
- var layering = initOrder(g);
3428
- assignOrder(g, layering);
3429
- var bestCC = Number.POSITIVE_INFINITY;
3430
- var best;
3431
- for (var i = 0, lastBest = 0; lastBest < 4; ++i, ++lastBest) {
3432
- sweepLayerGraphs(i % 2 ? downLayerGraphs : upLayerGraphs, i % 4 >= 2);
3433
- layering = buildLayerMatrix(g);
3434
- var cc = crossCount(g, layering);
3435
- if (cc < bestCC) {
3436
- lastBest = 0;
3437
- best = cloneDeep(layering);
3438
- bestCC = cc;
3439
- }
3440
- }
3441
- assignOrder(g, best);
3442
- }
3443
- function buildLayerGraphs(g, ranks, relationship) {
3444
- return map(ranks, function(rank) {
3445
- return buildLayerGraph(g, rank, relationship);
3446
- });
3447
- }
3448
- function sweepLayerGraphs(layerGraphs, biasRight) {
3449
- var cg = new Graph();
3450
- forEach(layerGraphs, function(lg) {
3451
- var root = lg.graph().root;
3452
- var sorted = sortSubgraph(lg, root, cg, biasRight);
3453
- forEach(sorted.vs, function(v, i) {
3454
- lg.node(v).order = i;
3455
- });
3456
- addSubgraphConstraints(lg, cg, sorted.vs);
3457
- });
3458
- }
3459
- function assignOrder(g, layering) {
3460
- forEach(layering, function(layer) {
3461
- forEach(layer, function(v, i) {
3462
- g.node(v).order = i;
3463
- });
3464
- });
3465
- }
3466
- //#endregion
3467
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/parent-dummy-chains.js
3468
- function parentDummyChains(g) {
3469
- var postorderNums = postorder(g);
3470
- forEach(g.graph().dummyChains, function(v) {
3471
- var node = g.node(v);
3472
- var edgeObj = node.edgeObj;
3473
- var pathData = findPath(g, postorderNums, edgeObj.v, edgeObj.w);
3474
- var path = pathData.path;
3475
- var lca = pathData.lca;
3476
- var pathIdx = 0;
3477
- var pathV = path[pathIdx];
3478
- var ascending = true;
3479
- while (v !== edgeObj.w) {
3480
- node = g.node(v);
3481
- if (ascending) {
3482
- while ((pathV = path[pathIdx]) !== lca && g.node(pathV).maxRank < node.rank) pathIdx++;
3483
- if (pathV === lca) ascending = false;
3484
- }
3485
- if (!ascending) {
3486
- while (pathIdx < path.length - 1 && g.node(pathV = path[pathIdx + 1]).minRank <= node.rank) pathIdx++;
3487
- pathV = path[pathIdx];
3488
- }
3489
- g.setParent(v, pathV);
3490
- v = g.successors(v)[0];
3491
- }
3492
- });
3493
- }
3494
- function findPath(g, postorderNums, v, w) {
3495
- var vPath = [];
3496
- var wPath = [];
3497
- var low = Math.min(postorderNums[v].low, postorderNums[w].low);
3498
- var lim = Math.max(postorderNums[v].lim, postorderNums[w].lim);
3499
- var parent;
3500
- var lca;
3501
- parent = v;
3502
- do {
3503
- parent = g.parent(parent);
3504
- vPath.push(parent);
3505
- } while (parent && (postorderNums[parent].low > low || lim > postorderNums[parent].lim));
3506
- lca = parent;
3507
- parent = w;
3508
- while ((parent = g.parent(parent)) !== lca) wPath.push(parent);
3509
- return {
3510
- path: vPath.concat(wPath.reverse()),
3511
- lca
3512
- };
3513
- }
3514
- function postorder(g) {
3515
- var result = {};
3516
- var lim = 0;
3517
- function dfs(v) {
3518
- var low = lim;
3519
- forEach(g.children(v), dfs);
3520
- result[v] = {
3521
- low,
3522
- lim: lim++
3523
- };
3524
- }
3525
- forEach(g.children(), dfs);
3526
- return result;
3527
- }
3528
- //#endregion
3529
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/position/bk.js
3530
- function findType1Conflicts(g, layering) {
3531
- /** @type {{[nodeId: string | number]: {[nodeId: string | number]: true}}} */
3532
- var conflicts = {};
3533
- function visitLayer(prevLayer, layer) {
3534
- var k0 = 0;
3535
- var scanPos = 0;
3536
- var prevLayerLength = prevLayer.length;
3537
- var lastNode = last(layer);
3538
- forEach(layer, function(v, i) {
3539
- var w = findOtherInnerSegmentNode(g, v);
3540
- var k1 = w ? g.node(w).order : prevLayerLength;
3541
- if (w || v === lastNode) {
3542
- forEach(layer.slice(scanPos, i + 1), function(scanNode) {
3543
- forEach(g.predecessors(scanNode), function(u) {
3544
- var uLabel = g.node(u);
3545
- var uPos = uLabel.order;
3546
- if ((uPos < k0 || k1 < uPos) && !(uLabel.dummy && g.node(scanNode).dummy)) addConflict(conflicts, u, scanNode);
3547
- });
3548
- });
3549
- scanPos = i + 1;
3550
- k0 = k1;
3551
- }
3552
- });
3553
- return layer;
3554
- }
3555
- reduce(layering, visitLayer);
3556
- return conflicts;
3557
- }
3558
- function findType2Conflicts(g, layering) {
3559
- /** @type {{[nodeId: string | number]: {[nodeId: string | number]: true}}} */
3560
- var conflicts = {};
3561
- function scan(south, southPos, southEnd, prevNorthBorder, nextNorthBorder) {
3562
- var v;
3563
- forEach(range(southPos, southEnd), function(i) {
3564
- v = south[i];
3565
- if (g.node(v).dummy) forEach(g.predecessors(v), function(u) {
3566
- var uNode = g.node(u);
3567
- if (uNode.dummy && (uNode.order < prevNorthBorder || uNode.order > nextNorthBorder)) addConflict(conflicts, u, v);
3568
- });
3569
- });
3570
- }
3571
- function visitLayer(north, south) {
3572
- var prevNorthPos = -1;
3573
- var nextNorthPos;
3574
- var southPos = 0;
3575
- forEach(south, function(v, southLookahead) {
3576
- if (g.node(v).dummy === "border") {
3577
- var predecessors = g.predecessors(v);
3578
- if (predecessors.length) {
3579
- nextNorthPos = g.node(predecessors[0]).order;
3580
- scan(south, southPos, southLookahead, prevNorthPos, nextNorthPos);
3581
- southPos = southLookahead;
3582
- prevNorthPos = nextNorthPos;
3583
- }
3584
- }
3585
- scan(south, southPos, south.length, nextNorthPos, north.length);
3586
- });
3587
- return south;
3588
- }
3589
- reduce(layering, visitLayer);
3590
- return conflicts;
3591
- }
3592
- function findOtherInnerSegmentNode(g, v) {
3593
- if (g.node(v).dummy) return find(g.predecessors(v), function(u) {
3594
- return g.node(u).dummy;
3595
- });
3596
- }
3597
- /**
3598
- * Sets `conflicts[v][w] = true`, creating objects if needed.
3599
- *
3600
- * @param {{[nodeId: string | number]: {[nodeId: string | number]: true}}} conflicts - Object to set.
3601
- * @param {string | number} v - First Node ID
3602
- * @param {string | number} w - Second Node ID
3603
- */
3604
- function addConflict(conflicts, v, w) {
3605
- if (v > w) {
3606
- var tmp = v;
3607
- v = w;
3608
- w = tmp;
3609
- }
3610
- if (!Object.prototype.hasOwnProperty.call(conflicts, v)) Object.defineProperty(conflicts, v, {
3611
- enumerable: true,
3612
- configurable: true,
3613
- value: {},
3614
- writable: true
3615
- });
3616
- var conflictsV = conflicts[v];
3617
- Object.defineProperty(conflictsV, w, {
3618
- enumerable: true,
3619
- configurable: true,
3620
- value: true,
3621
- writable: true
3622
- });
3623
- }
3624
- function hasConflict(conflicts, v, w) {
3625
- if (v > w) {
3626
- var tmp = v;
3627
- v = w;
3628
- w = tmp;
3629
- }
3630
- return !!conflicts[v] && Object.prototype.hasOwnProperty.call(conflicts[v], w);
3631
- }
3632
- function verticalAlignment(g, layering, conflicts, neighborFn) {
3633
- var root = {};
3634
- var align = {};
3635
- var pos = {};
3636
- forEach(layering, function(layer) {
3637
- forEach(layer, function(v, order) {
3638
- root[v] = v;
3639
- align[v] = v;
3640
- pos[v] = order;
3641
- });
3642
- });
3643
- forEach(layering, function(layer) {
3644
- var prevIdx = -1;
3645
- forEach(layer, function(v) {
3646
- var ws = neighborFn(v);
3647
- if (ws.length) {
3648
- ws = sortBy(ws, function(w) {
3649
- return pos[w];
3650
- });
3651
- var mp = (ws.length - 1) / 2;
3652
- for (var i = Math.floor(mp), il = Math.ceil(mp); i <= il; ++i) {
3653
- var w = ws[i];
3654
- if (align[v] === v && prevIdx < pos[w] && !hasConflict(conflicts, v, w)) {
3655
- align[w] = v;
3656
- align[v] = root[v] = root[w];
3657
- prevIdx = pos[w];
3658
- }
3659
- }
3660
- }
3661
- });
3662
- });
3663
- return {
3664
- root,
3665
- align
3666
- };
3667
- }
3668
- function horizontalCompaction(g, layering, root, align, reverseSep) {
3669
- var xs = {};
3670
- var blockG = buildBlockGraph(g, layering, root, reverseSep);
3671
- var borderType = reverseSep ? "borderLeft" : "borderRight";
3672
- function iterate(setXsFunc, nextNodesFunc) {
3673
- var stack = blockG.nodes();
3674
- var elem = stack.pop();
3675
- var visited = {};
3676
- while (elem) {
3677
- if (visited[elem]) setXsFunc(elem);
3678
- else {
3679
- visited[elem] = true;
3680
- stack.push(elem);
3681
- stack = stack.concat(nextNodesFunc(elem));
3682
- }
3683
- elem = stack.pop();
3684
- }
3685
- }
3686
- function pass1(elem) {
3687
- xs[elem] = blockG.inEdges(elem).reduce(function(acc, e) {
3688
- return Math.max(acc, xs[e.v] + blockG.edge(e));
3689
- }, 0);
3690
- }
3691
- function pass2(elem) {
3692
- var min = blockG.outEdges(elem).reduce(function(acc, e) {
3693
- return Math.min(acc, xs[e.w] - blockG.edge(e));
3694
- }, Number.POSITIVE_INFINITY);
3695
- var node = g.node(elem);
3696
- if (min !== Number.POSITIVE_INFINITY && node.borderType !== borderType) xs[elem] = Math.max(xs[elem], min);
3697
- }
3698
- iterate(pass1, blockG.predecessors.bind(blockG));
3699
- iterate(pass2, blockG.successors.bind(blockG));
3700
- forEach(align, function(v) {
3701
- xs[v] = xs[root[v]];
3702
- });
3703
- return xs;
3704
- }
3705
- function buildBlockGraph(g, layering, root, reverseSep) {
3706
- var blockGraph = new Graph();
3707
- var graphLabel = g.graph();
3708
- var sepFn = sep(graphLabel.nodesep, graphLabel.edgesep, reverseSep);
3709
- forEach(layering, function(layer) {
3710
- var u;
3711
- forEach(layer, function(v) {
3712
- var vRoot = root[v];
3713
- blockGraph.setNode(vRoot);
3714
- if (u) {
3715
- var uRoot = root[u];
3716
- var prevMax = blockGraph.edge(uRoot, vRoot);
3717
- blockGraph.setEdge(uRoot, vRoot, Math.max(sepFn(g, v, u), prevMax || 0));
3718
- }
3719
- u = v;
3720
- });
3721
- });
3722
- return blockGraph;
3723
- }
3724
- function findSmallestWidthAlignment(g, xss) {
3725
- return minBy(values(xss), function(xs) {
3726
- var max = Number.NEGATIVE_INFINITY;
3727
- var min = Number.POSITIVE_INFINITY;
3728
- forIn(xs, function(x, v) {
3729
- var halfWidth = width(g, v) / 2;
3730
- max = Math.max(x + halfWidth, max);
3731
- min = Math.min(x - halfWidth, min);
3732
- });
3733
- return max - min;
3734
- });
3735
- }
3736
- function alignCoordinates(xss, alignTo) {
3737
- var alignToVals = values(alignTo);
3738
- var alignToMin = min(alignToVals);
3739
- var alignToMax = max(alignToVals);
3740
- forEach(["u", "d"], function(vert) {
3741
- forEach(["l", "r"], function(horiz) {
3742
- var alignment = vert + horiz;
3743
- var xs = xss[alignment];
3744
- var delta;
3745
- if (xs === alignTo) return;
3746
- var xsVals = values(xs);
3747
- delta = horiz === "l" ? alignToMin - min(xsVals) : alignToMax - max(xsVals);
3748
- if (delta) xss[alignment] = mapValues(xs, function(x) {
3749
- return x + delta;
3750
- });
3751
- });
3752
- });
3753
- }
3754
- function balance(xss, align) {
3755
- return mapValues(xss.ul, function(ignore, v) {
3756
- if (align) return xss[align.toLowerCase()][v];
3757
- else {
3758
- var xs = sortBy(map(xss, v));
3759
- return (xs[1] + xs[2]) / 2;
3760
- }
3761
- });
3762
- }
3763
- function positionX(g) {
3764
- var layering = buildLayerMatrix(g);
3765
- var conflicts = merge(findType1Conflicts(g, layering), findType2Conflicts(g, layering));
3766
- var xss = {};
3767
- var adjustedLayering;
3768
- forEach(["u", "d"], function(vert) {
3769
- adjustedLayering = vert === "u" ? layering : values(layering).reverse();
3770
- forEach(["l", "r"], function(horiz) {
3771
- if (horiz === "r") adjustedLayering = map(adjustedLayering, function(inner) {
3772
- return values(inner).reverse();
3773
- });
3774
- var neighborFn = (vert === "u" ? g.predecessors : g.successors).bind(g);
3775
- var align = verticalAlignment(g, adjustedLayering, conflicts, neighborFn);
3776
- var xs = horizontalCompaction(g, adjustedLayering, align.root, align.align, horiz === "r");
3777
- if (horiz === "r") xs = mapValues(xs, function(x) {
3778
- return -x;
3779
- });
3780
- xss[vert + horiz] = xs;
3781
- });
3782
- });
3783
- alignCoordinates(xss, findSmallestWidthAlignment(g, xss));
3784
- return balance(xss, g.graph().align);
3785
- }
3786
- function sep(nodeSep, edgeSep, reverseSep) {
3787
- return function(g, v, w) {
3788
- var vLabel = g.node(v);
3789
- var wLabel = g.node(w);
3790
- var sum = 0;
3791
- var delta;
3792
- sum += vLabel.width / 2;
3793
- if (Object.prototype.hasOwnProperty.call(vLabel, "labelpos")) switch (vLabel.labelpos.toLowerCase()) {
3794
- case "l":
3795
- delta = -vLabel.width / 2;
3796
- break;
3797
- case "r":
3798
- delta = vLabel.width / 2;
3799
- break;
3800
- }
3801
- if (delta) sum += reverseSep ? delta : -delta;
3802
- delta = 0;
3803
- sum += (vLabel.dummy ? edgeSep : nodeSep) / 2;
3804
- sum += (wLabel.dummy ? edgeSep : nodeSep) / 2;
3805
- sum += wLabel.width / 2;
3806
- if (Object.prototype.hasOwnProperty.call(wLabel, "labelpos")) switch (wLabel.labelpos.toLowerCase()) {
3807
- case "l":
3808
- delta = wLabel.width / 2;
3809
- break;
3810
- case "r":
3811
- delta = -wLabel.width / 2;
3812
- break;
3813
- }
3814
- if (delta) sum += reverseSep ? delta : -delta;
3815
- delta = 0;
3816
- return sum;
3817
- };
3818
- }
3819
- function width(g, v) {
3820
- return g.node(v).width;
3821
- }
3822
- //#endregion
3823
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/position/index.js
3824
- function position(g) {
3825
- g = asNonCompoundGraph(g);
3826
- positionY(g);
3827
- forOwn(positionX(g), function(x, v) {
3828
- g.node(v).x = x;
3829
- });
3830
- }
3831
- function positionY(g) {
3832
- var layering = buildLayerMatrix(g);
3833
- var rankSep = g.graph().ranksep;
3834
- var prevY = 0;
3835
- forEach(layering, function(layer) {
3836
- var maxHeight = max(map(layer, function(v) {
3837
- return g.node(v).height;
3838
- }));
3839
- forEach(layer, function(v) {
3840
- g.node(v).y = prevY + maxHeight / 2;
3841
- });
3842
- prevY += maxHeight + rankSep;
3843
- });
3844
- }
3845
- //#endregion
3846
- //#region ../../node_modules/.pnpm/dagre-d3-es@7.0.14/node_modules/dagre-d3-es/src/dagre/layout.js
3847
- function layout(g, opts) {
3848
- var time$1 = opts && opts.debugTiming ? time : notime;
3849
- time$1("layout", () => {
3850
- var layoutGraph = time$1(" buildLayoutGraph", () => buildLayoutGraph(g));
3851
- time$1(" runLayout", () => runLayout(layoutGraph, time$1));
3852
- time$1(" updateInputGraph", () => updateInputGraph(g, layoutGraph));
3853
- });
3854
- }
3855
- function runLayout(g, time) {
3856
- time(" makeSpaceForEdgeLabels", () => makeSpaceForEdgeLabels(g));
3857
- time(" removeSelfEdges", () => removeSelfEdges(g));
3858
- time(" acyclic", () => run$2(g));
3859
- time(" nestingGraph.run", () => run(g));
3860
- time(" rank", () => rank(asNonCompoundGraph(g)));
3861
- time(" injectEdgeLabelProxies", () => injectEdgeLabelProxies(g));
3862
- time(" removeEmptyRanks", () => removeEmptyRanks(g));
3863
- time(" nestingGraph.cleanup", () => cleanup(g));
3864
- time(" normalizeRanks", () => normalizeRanks(g));
3865
- time(" assignRankMinMax", () => assignRankMinMax(g));
3866
- time(" removeEdgeLabelProxies", () => removeEdgeLabelProxies(g));
3867
- time(" normalize.run", () => run$1(g));
3868
- time(" parentDummyChains", () => parentDummyChains(g));
3869
- time(" addBorderSegments", () => addBorderSegments(g));
3870
- time(" order", () => order(g));
3871
- time(" insertSelfEdges", () => insertSelfEdges(g));
3872
- time(" adjustCoordinateSystem", () => adjust(g));
3873
- time(" position", () => position(g));
3874
- time(" positionSelfEdges", () => positionSelfEdges(g));
3875
- time(" removeBorderNodes", () => removeBorderNodes(g));
3876
- time(" normalize.undo", () => undo(g));
3877
- time(" fixupEdgeLabelCoords", () => fixupEdgeLabelCoords(g));
3878
- time(" undoCoordinateSystem", () => undo$1(g));
3879
- time(" translateGraph", () => translateGraph(g));
3880
- time(" assignNodeIntersects", () => assignNodeIntersects(g));
3881
- time(" reversePoints", () => reversePointsForReversedEdges(g));
3882
- time(" acyclic.undo", () => undo$2(g));
3883
- }
3884
- function updateInputGraph(inputGraph, layoutGraph) {
3885
- forEach(inputGraph.nodes(), function(v) {
3886
- var inputLabel = inputGraph.node(v);
3887
- var layoutLabel = layoutGraph.node(v);
3888
- if (inputLabel) {
3889
- inputLabel.x = layoutLabel.x;
3890
- inputLabel.y = layoutLabel.y;
3891
- if (layoutGraph.children(v).length) {
3892
- inputLabel.width = layoutLabel.width;
3893
- inputLabel.height = layoutLabel.height;
3894
- }
3895
- }
3896
- });
3897
- forEach(inputGraph.edges(), function(e) {
3898
- var inputLabel = inputGraph.edge(e);
3899
- var layoutLabel = layoutGraph.edge(e);
3900
- inputLabel.points = layoutLabel.points;
3901
- if (Object.prototype.hasOwnProperty.call(layoutLabel, "x")) {
3902
- inputLabel.x = layoutLabel.x;
3903
- inputLabel.y = layoutLabel.y;
3904
- }
3905
- });
3906
- inputGraph.graph().width = layoutGraph.graph().width;
3907
- inputGraph.graph().height = layoutGraph.graph().height;
3908
- }
3909
- var graphNumAttrs = [
3910
- "nodesep",
3911
- "edgesep",
3912
- "ranksep",
3913
- "marginx",
3914
- "marginy"
3915
- ];
3916
- var graphDefaults = {
3917
- ranksep: 50,
3918
- edgesep: 20,
3919
- nodesep: 50,
3920
- rankdir: "tb"
3921
- };
3922
- var graphAttrs = [
3923
- "acyclicer",
3924
- "ranker",
3925
- "rankdir",
3926
- "align"
3927
- ];
3928
- var nodeNumAttrs = ["width", "height"];
3929
- var nodeDefaults = {
3930
- width: 0,
3931
- height: 0
3932
- };
3933
- var edgeNumAttrs = [
3934
- "minlen",
3935
- "weight",
3936
- "width",
3937
- "height",
3938
- "labeloffset"
3939
- ];
3940
- var edgeDefaults = {
3941
- minlen: 1,
3942
- weight: 1,
3943
- width: 0,
3944
- height: 0,
3945
- labeloffset: 10,
3946
- labelpos: "r"
3947
- };
3948
- var edgeAttrs = ["labelpos"];
3949
- function buildLayoutGraph(inputGraph) {
3950
- var g = new Graph({
3951
- multigraph: true,
3952
- compound: true
3953
- });
3954
- var graph = canonicalize(inputGraph.graph());
3955
- g.setGraph(merge({}, graphDefaults, selectNumberAttrs(graph, graphNumAttrs), pick(graph, graphAttrs)));
3956
- forEach(inputGraph.nodes(), function(v) {
3957
- var node = canonicalize(inputGraph.node(v));
3958
- g.setNode(v, defaults(selectNumberAttrs(node, nodeNumAttrs), nodeDefaults));
3959
- g.setParent(v, inputGraph.parent(v));
3960
- });
3961
- forEach(inputGraph.edges(), function(e) {
3962
- var edge = canonicalize(inputGraph.edge(e));
3963
- g.setEdge(e, merge({}, edgeDefaults, selectNumberAttrs(edge, edgeNumAttrs), pick(edge, edgeAttrs)));
3964
- });
3965
- return g;
3966
- }
3967
- function makeSpaceForEdgeLabels(g) {
3968
- var graph = g.graph();
3969
- graph.ranksep /= 2;
3970
- forEach(g.edges(), function(e) {
3971
- var edge = g.edge(e);
3972
- edge.minlen *= 2;
3973
- if (edge.labelpos.toLowerCase() !== "c") if (graph.rankdir === "TB" || graph.rankdir === "BT") edge.width += edge.labeloffset;
3974
- else edge.height += edge.labeloffset;
3975
- });
3976
- }
3977
- function injectEdgeLabelProxies(g) {
3978
- forEach(g.edges(), function(e) {
3979
- var edge = g.edge(e);
3980
- if (edge.width && edge.height) {
3981
- var v = g.node(e.v);
3982
- addDummyNode(g, "edge-proxy", {
3983
- rank: (g.node(e.w).rank - v.rank) / 2 + v.rank,
3984
- e
3985
- }, "_ep");
3986
- }
3987
- });
3988
- }
3989
- function assignRankMinMax(g) {
3990
- var maxRank = 0;
3991
- forEach(g.nodes(), function(v) {
3992
- var node = g.node(v);
3993
- if (node.borderTop) {
3994
- node.minRank = g.node(node.borderTop).rank;
3995
- node.maxRank = g.node(node.borderBottom).rank;
3996
- maxRank = max(maxRank, node.maxRank);
3997
- }
3998
- });
3999
- g.graph().maxRank = maxRank;
4000
- }
4001
- function removeEdgeLabelProxies(g) {
4002
- forEach(g.nodes(), function(v) {
4003
- var node = g.node(v);
4004
- if (node.dummy === "edge-proxy") {
4005
- g.edge(node.e).labelRank = node.rank;
4006
- g.removeNode(v);
4007
- }
4008
- });
4009
- }
4010
- function translateGraph(g) {
4011
- var minX = Number.POSITIVE_INFINITY;
4012
- var maxX = 0;
4013
- var minY = Number.POSITIVE_INFINITY;
4014
- var maxY = 0;
4015
- var graphLabel = g.graph();
4016
- var marginX = graphLabel.marginx || 0;
4017
- var marginY = graphLabel.marginy || 0;
4018
- function getExtremes(attrs) {
4019
- var x = attrs.x;
4020
- var y = attrs.y;
4021
- var w = attrs.width;
4022
- var h = attrs.height;
4023
- minX = Math.min(minX, x - w / 2);
4024
- maxX = Math.max(maxX, x + w / 2);
4025
- minY = Math.min(minY, y - h / 2);
4026
- maxY = Math.max(maxY, y + h / 2);
4027
- }
4028
- forEach(g.nodes(), function(v) {
4029
- getExtremes(g.node(v));
4030
- });
4031
- forEach(g.edges(), function(e) {
4032
- var edge = g.edge(e);
4033
- if (Object.prototype.hasOwnProperty.call(edge, "x")) getExtremes(edge);
4034
- });
4035
- minX -= marginX;
4036
- minY -= marginY;
4037
- forEach(g.nodes(), function(v) {
4038
- var node = g.node(v);
4039
- node.x -= minX;
4040
- node.y -= minY;
4041
- });
4042
- forEach(g.edges(), function(e) {
4043
- var edge = g.edge(e);
4044
- forEach(edge.points, function(p) {
4045
- p.x -= minX;
4046
- p.y -= minY;
4047
- });
4048
- if (Object.prototype.hasOwnProperty.call(edge, "x")) edge.x -= minX;
4049
- if (Object.prototype.hasOwnProperty.call(edge, "y")) edge.y -= minY;
4050
- });
4051
- graphLabel.width = maxX - minX + marginX;
4052
- graphLabel.height = maxY - minY + marginY;
4053
- }
4054
- function assignNodeIntersects(g) {
4055
- forEach(g.edges(), function(e) {
4056
- var edge = g.edge(e);
4057
- var nodeV = g.node(e.v);
4058
- var nodeW = g.node(e.w);
4059
- var p1;
4060
- var p2;
4061
- if (!edge.points) {
4062
- edge.points = [];
4063
- p1 = nodeW;
4064
- p2 = nodeV;
4065
- } else {
4066
- p1 = edge.points[0];
4067
- p2 = edge.points[edge.points.length - 1];
4068
- }
4069
- edge.points.unshift(intersectRect(nodeV, p1));
4070
- edge.points.push(intersectRect(nodeW, p2));
4071
- });
4072
- }
4073
- function fixupEdgeLabelCoords(g) {
4074
- forEach(g.edges(), function(e) {
4075
- var edge = g.edge(e);
4076
- if (Object.prototype.hasOwnProperty.call(edge, "x")) {
4077
- if (edge.labelpos === "l" || edge.labelpos === "r") edge.width -= edge.labeloffset;
4078
- switch (edge.labelpos) {
4079
- case "l":
4080
- edge.x -= edge.width / 2 + edge.labeloffset;
4081
- break;
4082
- case "r":
4083
- edge.x += edge.width / 2 + edge.labeloffset;
4084
- break;
4085
- }
4086
- }
4087
- });
4088
- }
4089
- function reversePointsForReversedEdges(g) {
4090
- forEach(g.edges(), function(e) {
4091
- var edge = g.edge(e);
4092
- if (edge.reversed) edge.points.reverse();
4093
- });
4094
- }
4095
- function removeBorderNodes(g) {
4096
- forEach(g.nodes(), function(v) {
4097
- if (g.children(v).length) {
4098
- var node = g.node(v);
4099
- var t = g.node(node.borderTop);
4100
- var b = g.node(node.borderBottom);
4101
- var l = g.node(last(node.borderLeft));
4102
- var r = g.node(last(node.borderRight));
4103
- node.width = Math.abs(r.x - l.x);
4104
- node.height = Math.abs(b.y - t.y);
4105
- node.x = l.x + node.width / 2;
4106
- node.y = t.y + node.height / 2;
4107
- }
4108
- });
4109
- forEach(g.nodes(), function(v) {
4110
- if (g.node(v).dummy === "border") g.removeNode(v);
4111
- });
4112
- }
4113
- function removeSelfEdges(g) {
4114
- forEach(g.edges(), function(e) {
4115
- if (e.v === e.w) {
4116
- var node = g.node(e.v);
4117
- if (!node.selfEdges) node.selfEdges = [];
4118
- node.selfEdges.push({
4119
- e,
4120
- label: g.edge(e)
4121
- });
4122
- g.removeEdge(e);
4123
- }
4124
- });
4125
- }
4126
- function insertSelfEdges(g) {
4127
- forEach(buildLayerMatrix(g), function(layer) {
4128
- var orderShift = 0;
4129
- forEach(layer, function(v, i) {
4130
- var node = g.node(v);
4131
- node.order = i + orderShift;
4132
- forEach(node.selfEdges, function(selfEdge) {
4133
- addDummyNode(g, "selfedge", {
4134
- width: selfEdge.label.width,
4135
- height: selfEdge.label.height,
4136
- rank: node.rank,
4137
- order: i + ++orderShift,
4138
- e: selfEdge.e,
4139
- label: selfEdge.label
4140
- }, "_se");
4141
- });
4142
- delete node.selfEdges;
4143
- });
4144
- });
4145
- }
4146
- function positionSelfEdges(g) {
4147
- forEach(g.nodes(), function(v) {
4148
- var node = g.node(v);
4149
- if (node.dummy === "selfedge") {
4150
- var selfNode = g.node(node.e.v);
4151
- var x = selfNode.x + selfNode.width / 2;
4152
- var y = selfNode.y;
4153
- var dx = node.x - x;
4154
- var dy = selfNode.height / 2;
4155
- g.setEdge(node.e, node.label);
4156
- g.removeNode(v);
4157
- node.label.points = [
4158
- {
4159
- x: x + 2 * dx / 3,
4160
- y: y - dy
4161
- },
4162
- {
4163
- x: x + 5 * dx / 6,
4164
- y: y - dy
4165
- },
4166
- {
4167
- x: x + dx,
4168
- y
4169
- },
4170
- {
4171
- x: x + 5 * dx / 6,
4172
- y: y + dy
4173
- },
4174
- {
4175
- x: x + 2 * dx / 3,
4176
- y: y + dy
4177
- }
4178
- ];
4179
- node.label.x = node.x;
4180
- node.label.y = node.y;
4181
- }
4182
- });
4183
- }
4184
- function selectNumberAttrs(obj, attrs) {
4185
- return mapValues(pick(obj, attrs), Number);
4186
- }
4187
- function canonicalize(attrs) {
4188
- var newAttrs = {};
4189
- forEach(attrs, function(v, k) {
4190
- newAttrs[k.toLowerCase()] = v;
4191
- });
4192
- return newAttrs;
4193
- }
4194
- //#endregion
4195
- export { map as n, baseClone as r, layout as t };