reactive-md 0.9.1 → 0.9.3

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 (428) hide show
  1. package/CHANGELOG-ch.md +44 -0
  2. package/CHANGELOG.md +44 -0
  3. package/README-ch.md +7 -7
  4. package/README-en.md +6 -6
  5. package/README.md +7 -7
  6. package/cli/init.mjs +1 -1
  7. package/dist-library/LocalDocumentView-D6zQkTkt.js +112 -0
  8. package/dist-library/{LocalDocumentViewCore-GiWV3bey.js → LocalDocumentViewCore-CmJhemcA.js} +387 -9471
  9. package/dist-library/LocalReactiveDocumentCore-lAKOGAZ7.js +283 -0
  10. package/dist-library/LocalStaticDocumentView-2J7w0sKm.js +143 -0
  11. package/dist-library/{authoring-Dsune4Hy.js → authoring-B14SsOXZ.js} +68 -67
  12. package/dist-library/chart-B1TUtzm-.js +3 -0
  13. package/dist-library/color-values-r8Wf7ALn.js +6 -0
  14. package/dist-library/{compile-wUv8KEge.js → compile-D50B5_Ww.js} +32 -32
  15. package/dist-library/compile-cache-key-6GgpETz_.js +28 -0
  16. package/dist-library/compiler-DLkKUK4t.js +98 -0
  17. package/dist-library/{compiler-core-As_m-MNm.js → compiler-core-Niqhp9wV.js} +2963 -3283
  18. package/dist-library/{registry-core-Bbad9Bm2.js → component-kernel-IG4wOO0i.js} +72 -195
  19. package/dist-library/component-state-CwKX_SN5.js +763 -0
  20. package/dist-library/{component-state-C52ZFJGl.js → component-state-Ht-hOK0W.js} +15 -14
  21. package/dist-library/component-utils-eSj5IdG4.js +338 -0
  22. package/dist-library/computations-CffoW7Ff.js +340 -0
  23. package/dist-library/config-validation-Cpol91_M.js +456 -0
  24. package/dist-library/controls-B-CLSK8Q.js +5927 -0
  25. package/dist-library/controls-DWlx-AQl.js +3 -0
  26. package/dist-library/{coordinate-CWS9p5q_.js → coordinate-PyLPMIQK.js} +85 -85
  27. package/dist-library/data-BtFlkJzp.js +3 -0
  28. package/dist-library/{data-table-Bgccxd7h.js → data-table-Kv_ZA2Z2.js} +14 -13
  29. package/dist-library/data-visuals-_Z7QqYTk.js +384 -0
  30. package/dist-library/{default-components-BwQf0oP-.js → default-components-jugH7Ubr.js} +333 -331
  31. package/dist-library/{config-BadfhjdP.js → default-config-DIrRpuQz.js} +96 -79
  32. package/dist-library/default-options-DU5dxuU6.js +125 -0
  33. package/dist-library/{registry-B9NGct4d.js → default-registry-BlloaZi7.js} +4 -4
  34. package/dist-library/default-schema-Ch-Vznpm.js +33 -0
  35. package/dist-library/diagram-BLepzI8l.js +3 -0
  36. package/dist-library/{display-B-VhqVND.js → display-y4v9v0Qd.js} +1 -1
  37. package/dist-library/dist-Cueh1Psp.js +4761 -0
  38. package/dist-library/{config-validation-F47AcE6o.js → document-theme-DBAfnk7y.js} +248 -731
  39. package/dist-library/{export-BqVmTXm8.js → export-heVBqgxA.js} +46 -44
  40. package/dist-library/gallery-BC6FYTqw.js +3 -0
  41. package/dist-library/{gallery-CY6mTx8i.js → gallery-Q6VPS2ep.js} +1 -1
  42. package/dist-library/{html-CNT4KD-2.js → html-CCnvzan1.js} +56 -54
  43. package/dist-library/identity-BUx0Q_-d.js +40 -0
  44. package/dist-library/{incremental-Dv0FSp_U.js → incremental-Bzvh8_lB.js} +529 -380
  45. package/dist-library/{layout-C0YlEPGr.js → layout-BfUzzO2b.js} +147 -156
  46. package/dist-library/layout-BnfDeUNy.js +3 -0
  47. package/dist-library/limits-CFERRrlC.js +10 -0
  48. package/dist-library/localization-COdJ6lw2.js +6 -0
  49. package/dist-library/mafs-CnzDC5CR.js +3 -0
  50. package/dist-library/math-view-B0jthpRw.js +20 -0
  51. package/dist-library/motion-tokens-Czk0RDmS.js +283 -0
  52. package/dist-library/mount-preset-C_i37FvY.js +24 -0
  53. package/dist-library/numeric-sliders-CkWS0-ja.js +542 -0
  54. package/dist-library/observability-CYLuvFfL.js +502 -0
  55. package/dist-library/observability-core-Bcu7vpnl.js +24 -0
  56. package/dist-library/{package-core-WFK1RhAZ.js → package-core-9UK5ZdqB.js} +57 -46
  57. package/dist-library/parser-9yNJxGip.js +8 -0
  58. package/dist-library/parser-standard-BPIy4HOu.js +4872 -0
  59. package/dist-library/plugin-packs-CZb46nuv.js +19 -0
  60. package/dist-library/preset-core-BW3NWZJ9.js +1300 -0
  61. package/dist-library/props-pJRrfDc6.js +179 -0
  62. package/dist-library/react-BSo0o998.js +32 -0
  63. package/dist-library/reactive-md-authoring.js +274 -263
  64. package/dist-library/reactive-md-build.js +55 -20
  65. package/dist-library/reactive-md-compiler-session.js +4 -0
  66. package/dist-library/reactive-md-compiler-standard.js +6 -6
  67. package/dist-library/reactive-md-compiler.js +3 -3
  68. package/dist-library/reactive-md-contracts.js +6 -0
  69. package/dist-library/reactive-md-default-packs.js +31 -14
  70. package/dist-library/reactive-md-default-preset.js +7 -6
  71. package/dist-library/reactive-md-export.js +6 -5
  72. package/dist-library/reactive-md-minimal-preset.js +2 -2
  73. package/dist-library/reactive-md-minimal-react-preset.js +22 -20
  74. package/dist-library/reactive-md-minimal.css +1 -1
  75. package/dist-library/reactive-md-observability.js +126 -0
  76. package/dist-library/reactive-md-pack-style-manifest.js +797 -0
  77. package/dist-library/reactive-md-plugin-chart.js +6 -5
  78. package/dist-library/reactive-md-plugin-data.js +8 -8
  79. package/dist-library/reactive-md-plugin-diagram.js +7 -6
  80. package/dist-library/reactive-md-plugin-forms.js +14 -13
  81. package/dist-library/reactive-md-plugin-gallery.js +6 -5
  82. package/dist-library/reactive-md-plugin-navigation.js +9 -9
  83. package/dist-library/reactive-md-plugin-network.js +13 -12
  84. package/dist-library/reactive-md-plugin-plot.js +7 -6
  85. package/dist-library/reactive-md-react-component-accordion.js +10 -0
  86. package/dist-library/reactive-md-react-component-alert.js +10 -0
  87. package/dist-library/reactive-md-react-component-anchor.js +10 -0
  88. package/dist-library/reactive-md-react-component-badge.js +10 -0
  89. package/dist-library/reactive-md-react-component-card.js +10 -0
  90. package/dist-library/reactive-md-react-component-chart.js +22 -0
  91. package/dist-library/reactive-md-react-component-checkbox.js +10 -0
  92. package/dist-library/reactive-md-react-component-checklist.js +10 -0
  93. package/dist-library/reactive-md-react-component-choices.js +10 -0
  94. package/dist-library/reactive-md-react-component-column.js +6 -0
  95. package/dist-library/reactive-md-react-component-coordinate.js +21 -0
  96. package/dist-library/reactive-md-react-component-counter.js +10 -0
  97. package/dist-library/reactive-md-react-component-data-table.js +14 -0
  98. package/dist-library/reactive-md-react-component-date.js +10 -0
  99. package/dist-library/reactive-md-react-component-diagram.js +22 -0
  100. package/dist-library/reactive-md-react-component-disclosure.js +10 -0
  101. package/dist-library/reactive-md-react-component-edge.js +22 -0
  102. package/dist-library/reactive-md-react-component-gallery-item.js +10 -0
  103. package/dist-library/reactive-md-react-component-gallery.js +10 -0
  104. package/dist-library/reactive-md-react-component-grid.js +10 -0
  105. package/dist-library/reactive-md-react-component-if.js +10 -0
  106. package/dist-library/reactive-md-react-component-input.js +10 -0
  107. package/dist-library/reactive-md-react-component-jump.js +10 -0
  108. package/dist-library/reactive-md-react-component-multi-select.js +10 -0
  109. package/dist-library/reactive-md-react-component-node.js +22 -0
  110. package/dist-library/reactive-md-react-component-number.js +10 -0
  111. package/dist-library/reactive-md-react-component-option.js +10 -0
  112. package/dist-library/reactive-md-react-component-panel.js +10 -0
  113. package/dist-library/reactive-md-react-component-plot.js +26 -0
  114. package/dist-library/reactive-md-react-component-progress.js +10 -0
  115. package/dist-library/reactive-md-react-component-quiz.js +10 -0
  116. package/dist-library/reactive-md-react-component-radio-group.js +10 -0
  117. package/dist-library/reactive-md-react-component-range-slider.js +10 -0
  118. package/dist-library/reactive-md-react-component-section.js +10 -0
  119. package/dist-library/reactive-md-react-component-select.js +10 -0
  120. package/dist-library/reactive-md-react-component-slider.js +10 -0
  121. package/dist-library/reactive-md-react-component-step.js +10 -0
  122. package/dist-library/reactive-md-react-component-steps.js +10 -0
  123. package/dist-library/reactive-md-react-component-tab.js +10 -0
  124. package/dist-library/reactive-md-react-component-table.js +14 -0
  125. package/dist-library/reactive-md-react-component-tabs.js +10 -0
  126. package/dist-library/reactive-md-react-component-text.js +10 -0
  127. package/dist-library/reactive-md-react-component-textarea.js +10 -0
  128. package/dist-library/reactive-md-react-component-timeline.js +14 -0
  129. package/dist-library/reactive-md-react-component-timer.js +10 -0
  130. package/dist-library/reactive-md-react-component-toggle.js +10 -0
  131. package/dist-library/reactive-md-react-component-tooltip.js +10 -0
  132. package/dist-library/reactive-md-react-component-validation.js +10 -0
  133. package/dist-library/reactive-md-react-minimal.js +4 -4
  134. package/dist-library/reactive-md-react-pack-controls.js +44 -0
  135. package/dist-library/reactive-md-react-pack-data.js +21 -0
  136. package/dist-library/reactive-md-react-pack-layout.js +36 -0
  137. package/dist-library/reactive-md-react-pack-visuals.js +43 -0
  138. package/dist-library/reactive-md-react-packed.js +50 -0
  139. package/dist-library/reactive-md-react-server.js +26 -25
  140. package/dist-library/reactive-md-react-static-server.js +24 -0
  141. package/dist-library/reactive-md-react-static.js +1 -0
  142. package/dist-library/reactive-md-react-unstyled.js +15 -12
  143. package/dist-library/reactive-md-react.js +15 -12
  144. package/dist-library/reactive-md-runtime-browser.js +2 -1
  145. package/dist-library/reactive-md-runtime.js +4 -3
  146. package/dist-library/reactive-md-scan.js +1 -0
  147. package/dist-library/reactive-md-sdk.js +9 -8
  148. package/dist-library/reactive-md-standalone-configured.js +2 -2
  149. package/dist-library/reactive-md-standalone-host.js +2 -2
  150. package/dist-library/reactive-md-testing-browser.js +2 -2
  151. package/dist-library/reactive-md-testing-react.js +32 -32
  152. package/dist-library/reactive-md-testing.js +12 -12
  153. package/dist-library/reactive-md-worker-pool.js +401 -0
  154. package/dist-library/reactive-md.css +1 -1
  155. package/dist-library/reactive-md.js +84 -1361
  156. package/dist-library/registry-core-CziAIP5P.js +125 -0
  157. package/dist-library/render-nodes-DKjg_TR1.js +9369 -0
  158. package/dist-library/{resources-D2GDQS0p.js → requirements-DhIkxAbl.js} +37 -84
  159. package/dist-library/resources-B_nbROgj.js +74 -0
  160. package/dist-library/rmd-pack-controls.css +1032 -0
  161. package/dist-library/rmd-pack-data.css +724 -0
  162. package/dist-library/rmd-pack-layout.css +1825 -0
  163. package/dist-library/rmd-pack-resource-chart.css +300 -0
  164. package/dist-library/rmd-pack-resource-controls.css +781 -0
  165. package/dist-library/rmd-pack-resource-data-visuals.css +501 -0
  166. package/dist-library/rmd-pack-resource-diagram.css +106 -0
  167. package/dist-library/rmd-pack-resource-gallery.css +346 -0
  168. package/dist-library/rmd-pack-resource-graphics.css +516 -0
  169. package/dist-library/rmd-pack-resource-layout.css +1480 -0
  170. package/dist-library/rmd-pack-resource-mafs-core.css +124 -0
  171. package/dist-library/rmd-pack-resource-mafs.css +129 -0
  172. package/dist-library/rmd-pack-resource-visual-base.css +224 -0
  173. package/dist-library/rmd-pack-visuals.css +1394 -0
  174. package/dist-library/{runtime-B2fxeveq.js → runtime-BDnnimPA.js} +17 -16
  175. package/dist-library/{runtime-kcA7bG7G.js → runtime-CuJndKqK.js} +320 -313
  176. package/dist-library/runtime-requirement-C4-vNcf5.js +769 -0
  177. package/dist-library/schema-core-4sd1Vu7V.js +132 -0
  178. package/dist-library/{sdk-core-BoJT1SIt.js → sdk-core-BLsW9cCy.js} +494 -520
  179. package/dist-library/{session-core-nmJHuR9c.js → session-core-DLBRPV7f.js} +33 -31
  180. package/dist-library/{shareable-DpbE-59H.js → shareable-C6mUerpQ.js} +215 -209
  181. package/dist-library/shared-bTzN-F4g.js +3 -0
  182. package/dist-library/structural-views-30-YD_TJ.js +11 -0
  183. package/dist-library/table-surface-CfZn_tk-.js +13 -0
  184. package/dist-library/types/assemblies/compile-cache-key.d.ts +11 -0
  185. package/dist-library/types/assemblies/default-config.d.ts +35 -0
  186. package/dist-library/types/{local/configuration/options.d.ts → assemblies/default-options.d.ts} +4 -4
  187. package/dist-library/types/assemblies/default-registry.d.ts +18 -0
  188. package/dist-library/types/{local/configuration/schema.d.ts → assemblies/default-schema.d.ts} +4 -4
  189. package/dist-library/types/authoring/catalog.d.ts +11 -1
  190. package/dist-library/types/authoring/extensions.d.ts +1 -1
  191. package/dist-library/types/authoring/index.d.ts +3 -3
  192. package/dist-library/types/authoring/templates.d.ts +1 -1
  193. package/dist-library/types/build/diagnostics.d.ts +1 -1
  194. package/dist-library/types/compiler/index.d.ts +1 -0
  195. package/dist-library/types/compiler/session.d.ts +19 -0
  196. package/dist-library/types/compiler/standard.d.ts +1 -0
  197. package/dist-library/types/components/entries/accordion.d.ts +3 -0
  198. package/dist-library/types/components/entries/alert.d.ts +3 -0
  199. package/dist-library/types/components/entries/anchor.d.ts +3 -0
  200. package/dist-library/types/components/entries/badge.d.ts +3 -0
  201. package/dist-library/types/components/entries/card.d.ts +3 -0
  202. package/dist-library/types/components/entries/chart.d.ts +3 -0
  203. package/dist-library/types/components/entries/checkbox.d.ts +3 -0
  204. package/dist-library/types/components/entries/checklist.d.ts +3 -0
  205. package/dist-library/types/components/entries/choices.d.ts +3 -0
  206. package/dist-library/types/components/entries/column.d.ts +3 -0
  207. package/dist-library/types/components/entries/coordinate.d.ts +3 -0
  208. package/dist-library/types/components/entries/counter.d.ts +3 -0
  209. package/dist-library/types/components/entries/data-table.d.ts +3 -0
  210. package/dist-library/types/components/entries/date.d.ts +3 -0
  211. package/dist-library/types/components/entries/diagram.d.ts +3 -0
  212. package/dist-library/types/components/entries/disclosure.d.ts +3 -0
  213. package/dist-library/types/components/entries/edge.d.ts +3 -0
  214. package/dist-library/types/components/entries/gallery-item.d.ts +3 -0
  215. package/dist-library/types/components/entries/gallery.d.ts +3 -0
  216. package/dist-library/types/components/entries/grid.d.ts +3 -0
  217. package/dist-library/types/components/entries/if.d.ts +3 -0
  218. package/dist-library/types/components/entries/input.d.ts +3 -0
  219. package/dist-library/types/components/entries/jump.d.ts +3 -0
  220. package/dist-library/types/components/entries/multi-select.d.ts +3 -0
  221. package/dist-library/types/components/entries/node.d.ts +3 -0
  222. package/dist-library/types/components/entries/number.d.ts +3 -0
  223. package/dist-library/types/components/entries/option.d.ts +3 -0
  224. package/dist-library/types/components/entries/panel.d.ts +3 -0
  225. package/dist-library/types/components/entries/plot.d.ts +3 -0
  226. package/dist-library/types/components/entries/progress.d.ts +3 -0
  227. package/dist-library/types/components/entries/quiz.d.ts +3 -0
  228. package/dist-library/types/components/entries/radio-group.d.ts +3 -0
  229. package/dist-library/types/components/entries/range-slider.d.ts +3 -0
  230. package/dist-library/types/components/entries/section.d.ts +3 -0
  231. package/dist-library/types/components/entries/select.d.ts +3 -0
  232. package/dist-library/types/components/entries/slider.d.ts +3 -0
  233. package/dist-library/types/components/entries/step.d.ts +3 -0
  234. package/dist-library/types/components/entries/steps.d.ts +3 -0
  235. package/dist-library/types/components/entries/tab.d.ts +3 -0
  236. package/dist-library/types/components/entries/table.d.ts +3 -0
  237. package/dist-library/types/components/entries/tabs.d.ts +3 -0
  238. package/dist-library/types/components/entries/text.d.ts +3 -0
  239. package/dist-library/types/components/entries/textarea.d.ts +3 -0
  240. package/dist-library/types/components/entries/timeline.d.ts +3 -0
  241. package/dist-library/types/components/entries/timer.d.ts +3 -0
  242. package/dist-library/types/components/entries/toggle.d.ts +3 -0
  243. package/dist-library/types/components/entries/tooltip.d.ts +3 -0
  244. package/dist-library/types/components/entries/validation.d.ts +3 -0
  245. package/dist-library/types/components/layout/layout.d.ts +1 -3
  246. package/dist-library/types/components/layout/structural-views.d.ts +3 -0
  247. package/dist-library/types/components/mount-preset.d.ts +2 -0
  248. package/dist-library/types/components/packs/controls.d.ts +2 -0
  249. package/dist-library/types/components/packs/data.d.ts +2 -0
  250. package/dist-library/types/components/packs/layout.d.ts +2 -0
  251. package/dist-library/types/components/packs/visuals.d.ts +2 -0
  252. package/dist-library/types/components/shared/data-visuals.d.ts +3 -0
  253. package/dist-library/types/components/shared/table-surface.d.ts +10 -0
  254. package/dist-library/types/components/shared/visual-helpers.d.ts +24 -0
  255. package/dist-library/types/components/shared/visuals.d.ts +0 -2
  256. package/dist-library/types/components/table/data-table-model.d.ts +48 -0
  257. package/dist-library/types/components/table/data-table.d.ts +1 -48
  258. package/dist-library/types/{local/configuration → contracts}/component-kernel.d.ts +4 -2
  259. package/dist-library/types/contracts/index.d.ts +8 -0
  260. package/dist-library/types/{local/configuration → contracts}/limits.d.ts +9 -1
  261. package/dist-library/types/contracts/localization.d.ts +6 -0
  262. package/dist-library/types/contracts/runtime-types.d.ts +19 -0
  263. package/dist-library/types/local/compilation/cache-version.d.ts +1 -0
  264. package/dist-library/types/local/compilation/compile-status.d.ts +2 -0
  265. package/dist-library/types/local/compilation/compiler-bindings.d.ts +1 -1
  266. package/dist-library/types/local/compilation/compiler-capabilities.d.ts +4 -1
  267. package/dist-library/types/local/compilation/compiler-core.d.ts +1 -1
  268. package/dist-library/types/local/compilation/compiler-embedding.d.ts +20 -0
  269. package/dist-library/types/local/compilation/compiler-expressions.d.ts +5 -4
  270. package/dist-library/types/local/compilation/compiler-structure.d.ts +1 -1
  271. package/dist-library/types/local/compilation/compiler-tables.d.ts +3 -2
  272. package/dist-library/types/local/compilation/compiler-validation.d.ts +5 -9
  273. package/dist-library/types/local/compilation/compiler-values.d.ts +1 -1
  274. package/dist-library/types/local/compilation/compiler.d.ts +1 -1
  275. package/dist-library/types/local/compilation/component-usage.d.ts +2 -0
  276. package/dist-library/types/local/compilation/runtime-requirement.d.ts +3 -0
  277. package/dist-library/types/local/compilation/session/incremental.d.ts +5 -1
  278. package/dist-library/types/local/compilation/streaming.d.ts +1 -1
  279. package/dist-library/types/local/configuration/diagnostic-messages.d.ts +55 -0
  280. package/dist-library/types/local/configuration/embedding.d.ts +4 -0
  281. package/dist-library/types/local/configuration/kernel-value-rules.d.ts +1 -1
  282. package/dist-library/types/local/configuration/options-core.d.ts +8 -2
  283. package/dist-library/types/local/index.d.ts +12 -1
  284. package/dist-library/types/local/observability-codes.d.ts +2 -0
  285. package/dist-library/types/local/observability-core.d.ts +44 -0
  286. package/dist-library/types/local/observability-messages.d.ts +6 -0
  287. package/dist-library/types/local/observability.d.ts +45 -0
  288. package/dist-library/types/local/parsing/parse-budget.d.ts +18 -2
  289. package/dist-library/types/local/parsing/parser-internals.d.ts +2 -1
  290. package/dist-library/types/local/parsing/parser-region.d.ts +13 -2
  291. package/dist-library/types/local/parsing/parser-tags.d.ts +6 -1
  292. package/dist-library/types/local/parsing/rmd-recovery.d.ts +8 -0
  293. package/dist-library/types/local/performance-report.d.ts +70 -0
  294. package/dist-library/types/local/runtime/runtime-pool.d.ts +14 -0
  295. package/dist-library/types/local/transport/worker-handler.d.ts +3 -0
  296. package/dist-library/types/local/transport/worker-job.d.ts +12 -2
  297. package/dist-library/types/local/transport/worker-pool.d.ts +68 -0
  298. package/dist-library/types/local/transport/worker.d.ts +66 -1
  299. package/dist-library/types/local/types.d.ts +45 -25
  300. package/dist-library/types/observability.d.ts +8 -0
  301. package/dist-library/types/presets/default-semantics.d.ts +1 -1
  302. package/dist-library/types/presets/identity.d.ts +1 -8
  303. package/dist-library/types/presets/pack-style-entry.d.ts +3 -0
  304. package/dist-library/types/presets/pack-style-manifest.d.ts +11 -0
  305. package/dist-library/types/react/component-api.d.ts +3 -2
  306. package/dist-library/types/react/component-loader.d.ts +61 -0
  307. package/dist-library/types/react/component-primitives.d.ts +5 -5
  308. package/dist-library/types/react/index.d.ts +9 -5
  309. package/dist-library/types/react/localization.d.ts +5 -6
  310. package/dist-library/types/react/minimal.d.ts +2 -2
  311. package/dist-library/types/react/package-core.d.ts +3 -0
  312. package/dist-library/types/react/packed.d.ts +17 -0
  313. package/dist-library/types/react/render-lifecycle.d.ts +9 -0
  314. package/dist-library/types/{local → react}/rendering/document/ExtendedHtmlFragment.d.ts +1 -1
  315. package/dist-library/types/{local → react}/rendering/document/LocalDocumentViewCore.d.ts +11 -4
  316. package/dist-library/types/react/rendering/document/LocalPooledDocumentView.d.ts +8 -0
  317. package/dist-library/types/react/rendering/document/LocalReactiveDocumentCore.d.ts +6 -0
  318. package/dist-library/types/react/rendering/document/LocalStaticDocumentView.d.ts +18 -0
  319. package/dist-library/types/react/rendering/document/StaticExternalSlot.d.ts +25 -0
  320. package/dist-library/types/react/rendering/document/StaticHostData.d.ts +14 -0
  321. package/dist-library/types/{local → react}/rendering/document/render-nodes.d.ts +8 -8
  322. package/dist-library/types/react/rendering/document/static-runtime.d.ts +11 -0
  323. package/dist-library/types/{local → react}/rendering/document/use-author-script.d.ts +2 -2
  324. package/dist-library/types/{local → react}/rendering/document/validation-state.d.ts +2 -2
  325. package/dist-library/types/{local → react}/rendering/document/view-render-context.d.ts +40 -8
  326. package/dist-library/types/{local → react}/rendering/document/view-revision.d.ts +2 -2
  327. package/dist-library/types/{local → react}/rendering/render-types.d.ts +5 -5
  328. package/dist-library/types/react/rendering/table/data-table.d.ts +5 -0
  329. package/dist-library/types/{local → react}/rendering/table/table-numeric-columns.d.ts +3 -3
  330. package/dist-library/types/react/sdk-core.d.ts +12 -3
  331. package/dist-library/types/react/sdk.d.ts +2 -1
  332. package/dist-library/types/react/server.d.ts +3 -10
  333. package/dist-library/types/react/static-server.d.ts +12 -0
  334. package/dist-library/types/scan/index.d.ts +15 -0
  335. package/dist-library/types/sdk/config.d.ts +2 -35
  336. package/dist-library/types/sdk/default-identity.d.ts +3 -0
  337. package/dist-library/types/sdk/index.d.ts +1 -1
  338. package/dist-library/types/sdk/preset.d.ts +9 -0
  339. package/dist-library/types/sdk/props.d.ts +8 -3
  340. package/dist-library/types/sdk/registry-core.d.ts +2 -2
  341. package/dist-library/types/sdk/registry.d.ts +2 -18
  342. package/dist-library/types/sdk/types.d.ts +2 -2
  343. package/dist-library/types/sdk/version.d.ts +2 -0
  344. package/dist-library/types/standalone/session-core.d.ts +1 -1
  345. package/dist-library/{types-BeNtPqdY.js → types-Bza88SGK.js} +1 -1
  346. package/dist-library/types-daDo2c_w.js +3 -0
  347. package/dist-library/use-hydrated-W-laKPhY.js +22975 -0
  348. package/dist-library/validation-XXlb-spV.js +860 -0
  349. package/dist-library/version-B0G1699c.js +138 -0
  350. package/dist-library/visual-frame-y5RFhJ0_.js +19 -0
  351. package/dist-library/visual-helpers-CRmaqCHX.js +75 -0
  352. package/dist-library/visuals-CdHezgh5.js +3 -0
  353. package/dist-library/visuals-CoVSjVD8.js +49159 -0
  354. package/dist-library/worker-D6WMV8xJ.js +1632 -0
  355. package/dist-standalone/reactive-md-standalone.css +1 -1
  356. package/dist-standalone/reactive-md-standalone.js +119 -118
  357. package/docs/README-ch.md +8 -1
  358. package/docs/README.md +8 -1
  359. package/docs/compatibility/api-stability-ch.md +25 -0
  360. package/docs/compatibility/api-stability-en.md +25 -0
  361. package/docs/compatibility/compatibility-ch.md +32 -15
  362. package/docs/compatibility/compatibility-en.md +32 -15
  363. package/docs/compatibility/compatibility-manifest.schema.json +161 -0
  364. package/docs/compatibility/deprecation-ch.md +21 -0
  365. package/docs/compatibility/deprecation-en.md +21 -0
  366. package/docs/compatibility/source-versioning-ch.md +1 -1
  367. package/docs/compatibility/source-versioning-en.md +1 -1
  368. package/docs/compatibility/support-matrix-ch.md +108 -0
  369. package/docs/compatibility/support-matrix-en.md +108 -0
  370. package/docs/development/component-development-ch.md +2 -2
  371. package/docs/development/component-development-en.md +2 -2
  372. package/docs/development/component-development-reference-ch.md +16 -0
  373. package/docs/development/component-development-reference-en.md +16 -0
  374. package/docs/development/component-protocol-ch.md +31 -11
  375. package/docs/development/component-protocol-en.md +31 -11
  376. package/docs/integration/author-tools-ch.md +3 -1
  377. package/docs/integration/author-tools-en.md +3 -1
  378. package/docs/integration/compiler-ch.md +42 -1
  379. package/docs/integration/compiler-en.md +42 -1
  380. package/docs/integration/editor-ch.md +2 -2
  381. package/docs/integration/editor-en.md +2 -2
  382. package/docs/integration/extension-sdk-ch.md +6 -2
  383. package/docs/integration/extension-sdk-en.md +6 -2
  384. package/docs/integration/local-integration-ch.md +4 -2
  385. package/docs/integration/local-integration-en.md +4 -2
  386. package/docs/reference/public-api-ch.md +143 -7
  387. package/docs/reference/public-api-en.md +143 -7
  388. package/docs/releases/release-0.9.2-ch.md +33 -0
  389. package/docs/releases/release-0.9.2-en.md +33 -0
  390. package/docs/releases/release-0.9.3-ch.md +45 -0
  391. package/docs/releases/release-0.9.3-en.md +45 -0
  392. package/examples/integration/README-ch.md +36 -4
  393. package/examples/integration/README.md +36 -4
  394. package/examples/integration/chat-session/index.mjs +91 -0
  395. package/examples/integration/chat-session/package.json +10 -0
  396. package/examples/integration/static-embed/embed.mjs +44 -0
  397. package/examples/integration/static-embed/index.html +12 -0
  398. package/examples/integration/static-embed/main.mjs +24 -0
  399. package/examples/integration/static-embed/references.mjs +5 -0
  400. package/examples/integration/static-embed/render.mjs +10 -0
  401. package/package.json +67 -2
  402. package/dist-library/LocalDocumentView-sthUP0ct.js +0 -109
  403. package/dist-library/LocalReactiveDocumentCore-ZjQSGyHE.js +0 -275
  404. package/dist-library/compiler-eOfcinZs.js +0 -62
  405. package/dist-library/component-state-BoLCGee4.js +0 -801
  406. package/dist-library/controls-CcT6n7k_.js +0 -6740
  407. package/dist-library/mount-preset-KxvtKgJb.js +0 -13
  408. package/dist-library/options-1aDLK7JY.js +0 -121
  409. package/dist-library/parser-standard-Yuf3A_VI.js +0 -9630
  410. package/dist-library/plugin-packs-B1XPWcFs.js +0 -18
  411. package/dist-library/preset-core-CKc5YXSM.js +0 -1443
  412. package/dist-library/props-sJ8vk0cr.js +0 -183
  413. package/dist-library/react-D5iGiUdL.js +0 -7
  414. package/dist-library/schema-BufhKUSM.js +0 -40
  415. package/dist-library/types/local/rendering/document/LocalReactiveDocumentCore.d.ts +0 -6
  416. package/dist-library/types/local/rendering/table/data-table.d.ts +0 -13
  417. package/dist-library/validation-BEBA_HvS.js +0 -1121
  418. package/dist-library/visual-frame-CyV1FXzs.js +0 -48
  419. package/dist-library/visuals-BZbZYA7w.js +0 -72572
  420. /package/dist-library/types/{local/configuration → contracts}/color-values.d.ts +0 -0
  421. /package/dist-library/types/{local/html → contracts}/html-names.d.ts +0 -0
  422. /package/dist-library/types/{local/configuration → contracts}/schema-core.d.ts +0 -0
  423. /package/dist-library/types/{local → react}/rendering/code/code-block.d.ts +0 -0
  424. /package/dist-library/types/{local → react}/rendering/code/code-languages.d.ts +0 -0
  425. /package/dist-library/types/{local → react}/rendering/document/LocalDocumentView.d.ts +0 -0
  426. /package/dist-library/types/{local → react}/rendering/document/use-color-scheme.d.ts +0 -0
  427. /package/dist-library/types/{local → react}/rendering/image/image-view.d.ts +0 -0
  428. /package/dist-library/types/{local → react}/rendering/math-view.d.ts +0 -0
@@ -1,6 +1,6 @@
1
- import { B as e, F as t, G as n, I as r, J as i, K as a, M as o, N as s, O as c, U as l, it as u, j as d, k as f, n as p, r as m } from "./preset-core-CKc5YXSM.js";
1
+ import { f as e } from "./limits-CFERRrlC.js";
2
2
  // src/local/source/source-context.ts
3
- function ee(e, t) {
3
+ function t(e, t) {
4
4
  let n = e[t];
5
5
  if (n !== "`" && n !== "~") return;
6
6
  let r = 0;
@@ -10,98 +10,98 @@ function ee(e, t) {
10
10
  length: r
11
11
  } : void 0;
12
12
  }
13
- function h(e) {
13
+ function n(e) {
14
14
  if (!e.length) return {
15
15
  lines: [],
16
16
  maxMarkdownDepth: 0,
17
17
  potentialDepth: 0,
18
18
  fenceSpans: []
19
19
  };
20
- let t = [0];
21
- for (let n = 0; n < e.length; n++) {
22
- let r = e[n];
23
- r === "\r" ? (e[n + 1] === "\n" && n++, t.push(n + 1)) : r === "\n" && t.push(n + 1);
20
+ let n = [0];
21
+ for (let t = 0; t < e.length; t++) {
22
+ let r = e[t];
23
+ r === "\r" ? (e[t + 1] === "\n" && t++, n.push(t + 1)) : r === "\n" && n.push(t + 1);
24
24
  }
25
- let n = [], r = [], i = [], a = null, o = !1, s = 0, c = 0;
26
- for (let l = 0; l < t.length; l++) {
27
- let u = t[l], d = l + 1 < t.length ? t[l + 1] : e.length;
28
- for (; d > u && (e[d - 1] === "\r" || e[d - 1] === "\n");) d--;
29
- let f = e.slice(u, d), p = u, m = 0;
30
- for (; p < d;) {
31
- for (; e[p] === " " || e[p] === " ";) m += e[p] === " " ? 4 : 1, p++;
32
- if (e[p] === ">") {
33
- m++, p++;
25
+ let r = [], i = [], a = [], o = null, s = !1, c = 0, l = 0;
26
+ for (let u = 0; u < n.length; u++) {
27
+ let d = n[u], f = u + 1 < n.length ? n[u + 1] : e.length;
28
+ for (; f > d && (e[f - 1] === "\r" || e[f - 1] === "\n");) f--;
29
+ let p = e.slice(d, f), m = d, h = 0;
30
+ for (; m < f;) {
31
+ for (; e[m] === " " || e[m] === " ";) h += e[m] === " " ? 4 : 1, m++;
32
+ if (e[m] === ">") {
33
+ h++, m++;
34
34
  continue;
35
35
  }
36
- let t = /^(?:[-+*]|\d{1,9}[.)])(?=[ \t])/.exec(e.slice(p, d));
37
- if (t) m++, p += t[0].length;
36
+ let t = /^(?:[-+*]|\d{1,9}[.)])(?=[ \t])/.exec(e.slice(m, f));
37
+ if (t) h++, m += t[0].length;
38
38
  else break;
39
39
  }
40
- c = Math.max(c, m);
41
- let h = l === 0 && e.charCodeAt(0) === 65279 ? u + 1 : u, g = 0;
42
- for (; e[h + g] === " " || e[h + g] === " ";) g++;
43
- let _ = /^[ \t]*$/.test(e.slice(h, d)), v = h;
44
- for (let t = 0; t < 3 && e[v] === " "; t++) v++;
45
- let y = !1;
46
- if (a) {
47
- let t = e.slice(v, d), n = ee(t, 0);
48
- if (n && n.char === a.char && n.length >= a.length && /^[ \t]*$/.test(t.slice(n.length))) {
49
- a = null;
50
- let e = r[r.length - 1];
51
- e && (e.to = d);
40
+ l = Math.max(l, h);
41
+ let g = u === 0 && e.charCodeAt(0) === 65279 ? d + 1 : d, _ = 0;
42
+ for (; e[g + _] === " " || e[g + _] === " ";) _++;
43
+ let v = /^[ \t]*$/.test(e.slice(g, f)), y = g;
44
+ for (let t = 0; t < 3 && e[y] === " "; t++) y++;
45
+ let b = !1;
46
+ if (o) {
47
+ let n = e.slice(y, f), r = t(n, 0);
48
+ if (r && r.char === o.char && r.length >= o.length && /^[ \t]*$/.test(n.slice(r.length))) {
49
+ o = null;
50
+ let e = i[i.length - 1];
51
+ e && (e.to = f);
52
52
  }
53
- y = !0;
53
+ b = !0;
54
54
  } else {
55
- let t = e.slice(v, d), n = ee(t, 0);
56
- n && (n.char !== "`" || t.indexOf("`", n.length) < 0) && (a = {
57
- char: n.char,
58
- length: n.length
59
- }, y = !0, r.push({
60
- from: u,
55
+ let n = e.slice(y, f), r = t(n, 0);
56
+ r && (r.char !== "`" || n.indexOf("`", r.length) < 0) && (o = {
57
+ char: r.char,
58
+ length: r.length
59
+ }, b = !0, i.push({
60
+ from: d,
61
61
  to: e.length
62
62
  }));
63
63
  }
64
- let b = 0, x = 0;
65
- if (!y && !_) {
66
- let t = h;
64
+ let x = 0, S = 0;
65
+ if (!b && !v) {
66
+ let t = g;
67
67
  for (;;) {
68
68
  let n = t;
69
69
  for (let t = 0; t < 3 && e[n] === " "; t++) n++;
70
70
  if (e[n] !== ">") break;
71
- t = n + 1, e[t] === " " && t++, b++;
71
+ t = n + 1, e[t] === " " && t++, x++;
72
72
  }
73
73
  let n = t;
74
- for (; n < d && (e[n] === " " || e[n] === " ");) n++;
75
- let r = /^([-+*]|\d{1,9}[.)])(?=[ \t]|$)/.exec(e.slice(n, d)), a = n - t >= 4 && i.length === 0;
76
- if (r && !a) {
77
- let e = n - h;
78
- for (; i.length && i[i.length - 1] >= e;) i.pop();
79
- i.push(e);
74
+ for (; n < f && (e[n] === " " || e[n] === " ");) n++;
75
+ let r = /^([-+*]|\d{1,9}[.)])(?=[ \t]|$)/.exec(e.slice(n, f)), i = n - t >= 4 && a.length === 0;
76
+ if (r && !i) {
77
+ let e = n - g;
78
+ for (; a.length && a[a.length - 1] >= e;) a.pop();
79
+ a.push(e);
80
80
  } else {
81
81
  let e = n - t;
82
- for (; i.length && (e < i[i.length - 1] || o && e <= i[i.length - 1]);) i.pop();
82
+ for (; a.length && (e < a[a.length - 1] || s && e <= a[a.length - 1]);) a.pop();
83
83
  }
84
- x = b + i.length, x > s && (s = x);
84
+ S = x + a.length, S > c && (c = S);
85
85
  }
86
- o = !y && (_ || /^[ \t]*(?:>[ \t]*)*$/.test(f)), n.push({
87
- from: u,
88
- to: d,
89
- text: f,
90
- blank: _,
91
- indent: g,
92
- quoteDepth: b,
93
- fenced: y,
94
- depth: x
86
+ s = !b && (v || /^[ \t]*(?:>[ \t]*)*$/.test(p)), r.push({
87
+ from: d,
88
+ to: f,
89
+ text: p,
90
+ blank: v,
91
+ indent: _,
92
+ quoteDepth: x,
93
+ fenced: b,
94
+ depth: S
95
95
  });
96
96
  }
97
97
  return {
98
- lines: n,
99
- maxMarkdownDepth: s,
100
- potentialDepth: c,
101
- fenceSpans: r
98
+ lines: r,
99
+ maxMarkdownDepth: c,
100
+ potentialDepth: l,
101
+ fenceSpans: i
102
102
  };
103
103
  }
104
- var g = class {
104
+ var r = class {
105
105
  source;
106
106
  lineStarts = [0];
107
107
  logicalLines;
@@ -117,7 +117,7 @@ var g = class {
117
117
  return this.logicalLines = e;
118
118
  }
119
119
  get facts() {
120
- return this.factsValue ??= h(this.source);
120
+ return this.factsValue ??= n(this.source);
121
121
  }
122
122
  lineIndexAt(e) {
123
123
  let t = 0, n = this.lineStarts.length - 1;
@@ -130,7 +130,7 @@ var g = class {
130
130
  lineStartAt(e) {
131
131
  return this.lineStarts[this.lineIndexAt(e)];
132
132
  }
133
- }, _ = class {
133
+ }, i = class {
134
134
  context;
135
135
  chunks = [];
136
136
  segments = [];
@@ -192,17 +192,17 @@ var g = class {
192
192
  return n ? n.source + (e - n.from) * n.step : t;
193
193
  }
194
194
  };
195
- function v(e) {
195
+ function a(e) {
196
196
  if (typeof e != "string") return 0;
197
197
  let t = 0;
198
198
  for (let n of e) t += 1;
199
199
  return t;
200
200
  }
201
- function y(e, t) {
201
+ function o(e, t) {
202
202
  let n = e.slice(0, Math.max(0, t)), r = n.charCodeAt(n.length - 1);
203
203
  return r >= 55296 && r <= 56319 ? n.slice(0, -1) : n;
204
204
  }
205
- function* b(e, t = !1) {
205
+ function* s(e, t = !1) {
206
206
  let n = [{
207
207
  nodes: e,
208
208
  index: 0
@@ -221,8 +221,82 @@ function* b(e, t = !1) {
221
221
  }) : t && (yield r);
222
222
  }
223
223
  }
224
+ // src/local/observability-messages.ts
225
+ var c = Object.freeze({
226
+ "local.worker.timeout": {
227
+ en: "The background compilation request timed out after {timeoutMs} ms.",
228
+ zh: "编译 Worker 请求在 {timeoutMs} 毫秒后超时。"
229
+ },
230
+ "local.worker.error": {
231
+ en: "The background compiler failed while processing the request.",
232
+ zh: "编译 Worker 处理请求时失败。"
233
+ },
234
+ "local.worker.compile": {
235
+ en: "The background compiler could not complete this request.",
236
+ zh: "编译 Worker 无法完成此请求。"
237
+ },
238
+ "local.worker.compile.detail": {
239
+ en: "The background compiler could not complete this request: {detail}",
240
+ zh: "编译 Worker 无法完成此请求:{detail}"
241
+ },
242
+ "local.worker.stale-response": {
243
+ en: "The background compiler returned a response for an older source revision.",
244
+ zh: "编译 Worker 返回了较旧源码版本的响应。"
245
+ },
246
+ "local.export.failure": {
247
+ en: "The {stage} stage of export failed.",
248
+ zh: "导出流程的 {stage} 阶段失败。"
249
+ },
250
+ "local.resource.budget": {
251
+ en: "Resource {budget} used {actual} {unit}, exceeding the limit of {limit}.",
252
+ zh: "资源 {budget} 已使用 {actual} {unit},超过上限 {limit}。"
253
+ }
254
+ });
255
+ function l(e, t, n = {}) {
256
+ return c[e][t].replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g, (e, t) => String(n[t] ?? ""));
257
+ }
224
258
  // src/local/configuration/diagnostic-messages.ts
225
- var x = {
259
+ var u = {
260
+ "local.options.invalid.embedding": {
261
+ en: "Invalid embedding compile options.",
262
+ zh: "嵌入编译选项无效。"
263
+ },
264
+ "local.embedding.image": {
265
+ en: "Images are disabled for this document.",
266
+ zh: "此文档已禁用图片。"
267
+ },
268
+ "local.embedding.interactive": {
269
+ en: "Interactive content is disabled for this document.",
270
+ zh: "此文档已禁用交互内容。"
271
+ },
272
+ "local.embedding.attribute": {
273
+ en: "This component has an unsupported attribute or attribute value.",
274
+ zh: "此组件含有不支持的属性或属性值。"
275
+ },
276
+ "local.embedding.external-slot": {
277
+ en: "An external slot requires one valid slot name.",
278
+ zh: "静态宿主槽位需要一个有效的 slot 名称。"
279
+ },
280
+ "local.embedding.declaration": {
281
+ en: "This declaration requires expression evaluation.",
282
+ zh: "此声明需要表达式求值。"
283
+ },
284
+ "local.budget.embedding": {
285
+ en: "Recovering invalid components exceeded {limit} semantic passes.",
286
+ zh: "恢复无效组件所需的语义检查轮次超过 {limit}。"
287
+ },
288
+ "local.render.runtime-required": {
289
+ en: "This document requires a runtime to render.",
290
+ zh: "此文档需要运行时才能渲染。"
291
+ },
292
+ "local.extension.load": {
293
+ en: "Loading component…",
294
+ zh: "正在加载组件…"
295
+ },
296
+ "local.extension.load-failed": {
297
+ en: "The component could not be loaded.",
298
+ zh: "组件加载失败。"
299
+ },
226
300
  "local.version.unsupported": {
227
301
  en: "This reader accepts {supported}; migrate {declared} or use a compatible reader.",
228
302
  zh: "此阅读器支持 {supported};请迁移 {declared} 或使用兼容的阅读器。"
@@ -299,6 +373,10 @@ var x = {
299
373
  en: "Markdown nesting exceeds the {limit}-level limit.",
300
374
  zh: "Markdown 嵌套超过 {limit} 层上限。"
301
375
  },
376
+ "budget.raw": {
377
+ en: "Raw body of <{name}> exceeds the {limit}-character limit.",
378
+ zh: "组件 <{name}> 的原始正文超过 {limit} 个字符的上限。"
379
+ },
302
380
  "budget.nesting": {
303
381
  en: "Component nesting exceeds the {limit}-level limit.",
304
382
  zh: "组件嵌套超过 {limit} 层上限。"
@@ -323,6 +401,14 @@ var x = {
323
401
  en: "Compile option limits.maxMarkdownDepth must be a positive safe integer.",
324
402
  zh: "编译选项 limits.maxMarkdownDepth 必须是正安全整数。"
325
403
  },
404
+ "options.maxRawBodyChars": {
405
+ en: "Compile option limits.maxRawBodyChars must be a positive safe integer no greater than 1000000.",
406
+ zh: "编译选项 limits.maxRawBodyChars 必须是正安全整数,且不能超过 1000000。"
407
+ },
408
+ "options.hostBody": {
409
+ en: "Compile option hostComponents body must be \"markdown\" or \"raw\", and only containers accept it.",
410
+ zh: "编译选项 hostComponents 的 body 只能是 \"markdown\" 或 \"raw\",且仅容器组件可声明。"
411
+ },
326
412
  "options.unknownLimit": {
327
413
  en: "Compile option limits.{detail} is not supported.",
328
414
  zh: "编译选项 limits.{detail} 不受支持。"
@@ -1679,18 +1765,21 @@ var x = {
1679
1765
  en: "Dynamic {attribute} date bound for parameter {name} is not a valid YYYY-MM-DD value.",
1680
1766
  zh: "参数 {name} 的动态 {attribute} 日期边界不是合法的 YYYY-MM-DD。"
1681
1767
  }
1682
- }, S = {
1768
+ }, d = {
1683
1769
  "local.options.invalid.object": "options.notObject",
1684
1770
  "local.options.invalid.limits": "options.limitsNotObject",
1685
1771
  "local.options.invalid.max-syntax-nodes": "options.maxSyntaxNodes",
1686
1772
  "local.options.invalid.max-parse-work": "options.maxParseWork",
1687
1773
  "local.options.invalid.max-markdown-depth": "options.maxMarkdownDepth",
1774
+ "local.options.invalid.max-raw-body-chars": "options.maxRawBodyChars",
1775
+ "local.options.invalid.host-body": "options.hostBody",
1688
1776
  "local.options.invalid.limits-unknown": "options.unknownLimit",
1689
1777
  "local.options.invalid.host-components": "options.hostComponents",
1690
1778
  "local.budget.document": "budget.document",
1691
1779
  "local.budget.nodes": "budget.syntaxNodes",
1692
1780
  "local.budget.parse-work": "budget.parseWork",
1693
1781
  "local.budget.markdown-depth": "budget.markdownDepth",
1782
+ "local.budget.raw": "budget.raw",
1694
1783
  "local.budget.nesting": "budget.nesting",
1695
1784
  "local.budget.name.attribute": "budget.attributeName",
1696
1785
  "local.budget.name.tag": "budget.tagName",
@@ -1972,57 +2061,57 @@ var x = {
1972
2061
  "local.runtime.value.option": "runtime.option",
1973
2062
  "local.runtime.value.budget": "runtime.budget",
1974
2063
  "local.runtime.value.range-order": "runtime.rangeOrder"
1975
- }, te = 16, C = 256, ne = 2e3;
1976
- function re(e) {
1977
- if (typeof e == "string") return e.length > C ? `${y(e, 255)}…` : e;
2064
+ }, f = 16, p = 256, m = 2e3;
2065
+ function h(e) {
2066
+ if (typeof e == "string") return e.length > p ? `${o(e, 255)}…` : e;
1978
2067
  if (typeof e == "number") return Number.isFinite(e) ? e : String(e);
1979
2068
  if (typeof e == "boolean" || e === null) return e;
1980
2069
  if (e === void 0) return "";
1981
2070
  try {
1982
2071
  let t = JSON.stringify(e) ?? String(e);
1983
- return t.length > C ? `${y(t, 255)}…` : t;
2072
+ return t.length > p ? `${o(t, 255)}…` : t;
1984
2073
  } catch {
1985
- return y(String(e), C);
2074
+ return o(String(e), p);
1986
2075
  }
1987
2076
  }
1988
- function ie(e) {
2077
+ function g(e) {
1989
2078
  let t = Object.entries(e);
1990
2079
  if (t.length === 0) return;
1991
2080
  let n = {}, r = 0, i = 0;
1992
2081
  for (let [e, a] of t) {
1993
- if (i >= te) break;
2082
+ if (i >= f) break;
1994
2083
  if (!/^[A-Za-z_][A-Za-z0-9_]*$/.test(e)) continue;
1995
2084
  let t;
1996
2085
  try {
1997
- t = re(a);
2086
+ t = h(a);
1998
2087
  } catch {
1999
2088
  t = "";
2000
2089
  }
2001
2090
  let o = typeof t == "string" ? t.length : String(t).length;
2002
- if (r + o > ne) break;
2091
+ if (r + o > m) break;
2003
2092
  n[e] = t, r += o, i += 1;
2004
2093
  }
2005
2094
  return i > 0 ? n : void 0;
2006
2095
  }
2007
- function w(e, t) {
2008
- let n = t ? ie(t) : void 0;
2096
+ function _(e, t) {
2097
+ let n = t ? g(t) : void 0;
2009
2098
  return n ? {
2010
2099
  key: e,
2011
2100
  params: n
2012
2101
  } : { key: e };
2013
2102
  }
2014
- var ae = /* @__PURE__ */ "local.parse,local.budget,local.options.invalid,local.theme.expression,local.theme.name,local.theme.attribute,local.theme.malformed,local.theme.duplicate,local.theme.late,local.theme.nested,local.attribute,local.attribute.name,local.attribute.duplicate,local.budget.name,local.budget.math,local.tag.unclosed,local.tag.closing,local.tag.name,local.tag.mismatch,local.tag.shape,local.footnote.unsupported,local.interpolation,local.math.unclosed,local.math.whitespace,local.component.unknown,local.html,local.html.fallback,local.html.table,local.html.repair,local.html.literal,local.author.placement,local.author.unclosed,local.author.css-placement,local.author.script-placement,local.author.component-conflict,local.recovery.unclosed,local.recovery.mismatch,local.recovery.stray-close".split(","), oe = /* @__PURE__ */ "local.budget.data-table.cells,local.budget.data-table.columns,local.budget.data-table.rows,local.computation.budget,local.computation.const,local.computation.cycle,local.computation.duplicate,local.computation.expression,local.computation.name,local.computation.placement,local.computation.reserved,local.computation.unknown,local.external.placement,local.external.name,local.external.reserved,local.external.duplicate,local.external.conflict,local.external.type,local.host.structure,local.computation.value,local.data-table.column,local.data-table.key,local.data-table.rows,local.data-table.value,local.validation.budget,local.validation.expression,local.validation.failed,local.validation.fields,local.validation.placement,local.validation.when,local.parse,local.legacy,local.component.unknown,local.host.attribute,local.attribute.unknown,local.budget.attribute,local.attribute.color,local.attribute.required,local.label.required,local.attribute.static,local.expression.empty,local.expression.invalid,local.attribute.type,local.attribute.range,local.constraint,local.selection.key,local.structure.parent,local.structure.children,local.budget.array,local.option.value,local.tab.value,local.step.value,local.quiz.answer,local.diagram.node,local.diagram.edge,local.checklist.body,local.budget.identifier,local.binding.name,local.binding.reserved,local.binding.type,local.binding.exclusive,local.binding.constraint,local.binding.option,local.initial.duplicate,local.initial.length,local.initial.email,local.initial.range,local.initial.option,local.initial.type,local.initial.date,local.initial,local.initial.step,local.binding.unknown,local.type,local.interpolation,local.attribute.interpolation,local.anchor.id,local.anchor.duplicate,local.jump.target,local.budget.plot.curves,local.budget.plot.points,local.math.formula,local.math,local.math.display,local.math.binding,local.table.header,local.table.row,local.chart.numeric,local.chart.column,local.chart.negative,local.timeline.header,local.timeline.value,local.html.extended,local.html.attribute,local.html.unsafe-url,local.html.capability,local.capability.html,local.capability.plot".split(","), se = [
2103
+ var v = /* @__PURE__ */ "local.parse,local.budget,local.options.invalid,local.embedding.image,local.embedding.interactive,local.embedding.attribute,local.embedding.external-slot,local.embedding.declaration,local.render.runtime-required,local.extension.load,local.extension.load-failed,local.theme.expression,local.theme.name,local.theme.attribute,local.theme.malformed,local.theme.duplicate,local.theme.late,local.theme.nested,local.attribute,local.attribute.name,local.attribute.duplicate,local.budget.name,local.budget.math,local.tag.unclosed,local.tag.closing,local.tag.name,local.tag.mismatch,local.tag.shape,local.footnote.unsupported,local.interpolation,local.math.unclosed,local.math.whitespace,local.component.unknown,local.html,local.html.fallback,local.html.table,local.html.repair,local.html.literal,local.author.placement,local.author.unclosed,local.author.css-placement,local.author.script-placement,local.author.component-conflict,local.recovery.unclosed,local.recovery.mismatch,local.recovery.stray-close".split(","), y = /* @__PURE__ */ "local.budget.data-table.cells,local.budget.data-table.columns,local.budget.data-table.rows,local.computation.budget,local.computation.const,local.computation.cycle,local.computation.duplicate,local.computation.expression,local.computation.name,local.computation.placement,local.computation.reserved,local.computation.unknown,local.external.placement,local.external.name,local.external.reserved,local.external.duplicate,local.external.conflict,local.external.type,local.host.structure,local.computation.value,local.data-table.column,local.data-table.key,local.data-table.rows,local.data-table.value,local.validation.budget,local.validation.expression,local.validation.failed,local.validation.fields,local.validation.placement,local.validation.when,local.parse,local.legacy,local.component.unknown,local.host.attribute,local.attribute.unknown,local.budget.attribute,local.attribute.color,local.attribute.required,local.label.required,local.attribute.static,local.expression.empty,local.expression.invalid,local.attribute.type,local.attribute.range,local.constraint,local.selection.key,local.structure.parent,local.structure.children,local.budget.array,local.option.value,local.tab.value,local.step.value,local.quiz.answer,local.diagram.node,local.diagram.edge,local.checklist.body,local.budget.identifier,local.binding.name,local.binding.reserved,local.binding.type,local.binding.exclusive,local.binding.constraint,local.binding.option,local.initial.duplicate,local.initial.length,local.initial.email,local.initial.range,local.initial.option,local.initial.type,local.initial.date,local.initial,local.initial.step,local.binding.unknown,local.type,local.interpolation,local.attribute.interpolation,local.anchor.id,local.anchor.duplicate,local.jump.target,local.budget.plot.curves,local.budget.plot.points,local.budget.embedding,local.math.formula,local.math,local.math.display,local.math.binding,local.table.header,local.table.row,local.chart.numeric,local.chart.column,local.chart.negative,local.timeline.header,local.timeline.value,local.html.extended,local.html.attribute,local.html.unsafe-url,local.html.capability,local.capability.html,local.capability.plot".split(","), b = [
2015
2104
  "local.runtime.binding",
2016
2105
  "local.runtime.value",
2017
2106
  "local.runtime.external"
2018
- ], ce = [
2107
+ ], x = [
2019
2108
  "local.theme.name",
2020
2109
  "local.theme.missing",
2021
2110
  "local.theme.manifest",
2022
2111
  "local.theme.duplicate",
2023
2112
  "local.theme.protocol",
2024
2113
  "local.theme.modes"
2025
- ], T = [
2114
+ ], S = [
2026
2115
  "expression-index",
2027
2116
  "expression-cycle",
2028
2117
  "expression-syntax",
@@ -2042,7 +2131,7 @@ var ae = /* @__PURE__ */ "local.parse,local.budget,local.options.invalid,local.t
2042
2131
  "expression-domain",
2043
2132
  "expression-divide-by-zero",
2044
2133
  "expression-interpolation"
2045
- ], le = [
2134
+ ], C = [
2046
2135
  "latex-budget",
2047
2136
  "latex-syntax",
2048
2137
  "latex-empty",
@@ -2057,7 +2146,13 @@ var ae = /* @__PURE__ */ "local.parse,local.budget,local.options.invalid,local.t
2057
2146
  "latex-undefined",
2058
2147
  "latex-plot-range",
2059
2148
  "latex-plot-samples"
2060
- ], ue = [
2149
+ ], w = [
2150
+ ...Object.keys(c),
2151
+ "local.worker.compile",
2152
+ "local.build.resource-budget",
2153
+ "local.extension.resource-budget",
2154
+ "local.extension.resource-conflict",
2155
+ "local.extension.resource-invalid",
2061
2156
  "local.version.unsupported",
2062
2157
  "local.version.malformed",
2063
2158
  "local.version.duplicate",
@@ -2068,101 +2163,76 @@ var ae = /* @__PURE__ */ "local.parse,local.budget,local.options.invalid,local.t
2068
2163
  "local.upgrade.text-length",
2069
2164
  "local.upgrade.expression",
2070
2165
  "local.upgrade.version-missing",
2071
- ...ae,
2072
- ...oe,
2073
- ...se,
2074
- ...ce
2075
- ], E = Object.freeze(Array.from(/* @__PURE__ */ new Set([
2076
- ...ue,
2077
- ...T,
2078
- ...T.map((e) => `local.expression.${e}`),
2079
- ...le
2080
- ]))), de = Object.freeze([...Object.keys(S), ...Object.keys(x).filter((e) => e.startsWith("error."))].sort());
2166
+ ...v,
2167
+ ...y,
2168
+ ...b,
2169
+ ...x
2170
+ ], T = Object.freeze(Array.from(/* @__PURE__ */ new Set([
2171
+ ...w,
2172
+ ...S,
2173
+ ...S.map((e) => `local.expression.${e}`),
2174
+ ...C
2175
+ ]))), E = Object.freeze([
2176
+ ...Object.keys(d),
2177
+ ...Object.keys(u).filter((e) => e.startsWith("error.")),
2178
+ ...Object.keys(c)
2179
+ ].sort());
2081
2180
  function D(e) {
2082
- if (Object.hasOwn(S, e)) return S[e];
2083
- if (Object.hasOwn(x, e)) return e;
2181
+ if (Object.hasOwn(d, e)) return d[e];
2182
+ if (Object.hasOwn(u, e)) return e;
2084
2183
  }
2085
2184
  function O(e, t = "en") {
2185
+ if (Object.hasOwn(c, e)) return c[e][t === "zh" ? "zh" : "en"];
2086
2186
  let n = D(e);
2087
- if (n) return x[n][t === "zh" ? "zh" : "en"];
2187
+ if (n) return u[n][t === "zh" ? "zh" : "en"];
2088
2188
  }
2089
- function fe(e) {
2090
- return typeof e == "string" && E.includes(e);
2189
+ function k(e) {
2190
+ return typeof e == "string" && T.includes(e);
2091
2191
  }
2092
- function k(e, t) {
2192
+ function A(e, t) {
2093
2193
  return t ? e.replace(/\{([A-Za-z_][A-Za-z0-9_]*)\}/g, (e, n) => {
2094
2194
  let r = t[n];
2095
2195
  return r === void 0 ? "" : String(r);
2096
2196
  }) : e;
2097
2197
  }
2098
- function A(e, t = "en", n) {
2198
+ function j(e, t = "en", n) {
2099
2199
  let r = O(e, t);
2100
- return r === void 0 ? "" : k(r, n);
2200
+ return r === void 0 ? "" : A(r, n);
2101
2201
  }
2102
- function j(e) {
2103
- return A(e.key, "en", e.params);
2202
+ function M(e) {
2203
+ return j(e.key, "en", e.params);
2104
2204
  }
2105
- function pe(e, t = "en") {
2106
- let n = typeof e.messageKey == "string" ? e.messageKey : void 0, r = n === void 0 ? void 0 : O(n, t), i = e.params;
2107
- if (t === "zh" && i) {
2108
- let e = n === void 0 ? void 0 : D(n);
2205
+ function N(t, n = "en") {
2206
+ let r = typeof t.messageKey == "string" ? t.messageKey : void 0, i = r === void 0 ? void 0 : O(r, n), a = t.params ?? t.details;
2207
+ if (n === "zh" && a) {
2208
+ let e = r === void 0 ? void 0 : D(r);
2109
2209
  if (e === "expression.error" || e === "math.computeFailed") {
2110
- let e = typeof i.code == "string" ? O(`error.${i.code}`, "zh") : void 0;
2210
+ let e = typeof a.code == "string" ? O(`error.${a.code}`, "zh") : void 0;
2111
2211
  if (e) {
2112
- let t = typeof i.near == "string" && i.near ? ` 相关源码:${i.near}` : "";
2113
- i = {
2114
- ...i,
2212
+ let t = typeof a.near == "string" && a.near ? ` 相关源码:${a.near}` : "";
2213
+ a = {
2214
+ ...a,
2115
2215
  detail: e + t
2116
2216
  };
2117
2217
  }
2118
- } else if (e === "runtime.budget" && typeof i.detailKey == "string") {
2119
- let e = O(i.detailKey, "zh");
2120
- e && (i = {
2121
- ...i,
2122
- detail: k(e, i)
2218
+ } else if (e === "runtime.budget" && typeof a.detailKey == "string") {
2219
+ let e = O(a.detailKey, "zh");
2220
+ e && (a = {
2221
+ ...a,
2222
+ detail: A(e, a)
2123
2223
  });
2124
2224
  }
2125
2225
  }
2126
- let a = r === void 0 ? typeof e.message == "string" ? e.message : String(e.message ?? "") : k(r, i), o = typeof a == "string" ? a : String(a ?? "");
2127
- return o.length > 2e3 ? `${y(o, u - 1)}…` : o;
2128
- }
2129
- // src/local/html/html-names.ts
2130
- var M = /* @__PURE__ */ new Set(/* @__PURE__ */ "b.strong.i.em.s.del.u.mark.sup.sub.br.hr.img.p.h1.h2.h3.h4.h5.h6.div.span.details.summary.blockquote.code.pre.ul.ol.li.a".split(".")), me = /* @__PURE__ */ new Set([
2131
- "div",
2132
- "p",
2133
- "h1",
2134
- "h2",
2135
- "h3",
2136
- "h4",
2137
- "h5",
2138
- "h6"
2139
- ]);
2140
- function he(e) {
2141
- let t = e.trim().toLowerCase();
2142
- return t === "left" || t === "center" || t === "right" || t === "justify" ? t : null;
2143
- }
2144
- var ge = /* @__PURE__ */ new Set([
2145
- "href",
2146
- "target",
2147
- "rel"
2148
- ]);
2149
- function _e(e, t) {
2150
- if (t?.toLowerCase() !== "_blank") return e;
2151
- let n = [], r = /* @__PURE__ */ new Set();
2152
- for (let t of (e ?? "").split(/[\t\n\f\r ]+/)) {
2153
- let e = t.toLowerCase();
2154
- t && e !== "opener" && !r.has(e) && (r.add(e), n.push(t));
2155
- }
2156
- for (let e of ["noopener", "noreferrer"]) r.has(e) || n.push(e);
2157
- return n.join(" ");
2226
+ let s = i === void 0 ? typeof t.message == "string" ? t.message : String(t.message ?? "") : A(i, a), c = typeof s == "string" ? s : String(s ?? "");
2227
+ return c.length > 2e3 ? `${o(c, e - 1)}…` : c;
2158
2228
  }
2159
2229
  // src/themes/document-theme.ts
2160
- var N = "reactive-md-theme-1", P = Object.freeze({
2230
+ var P = "reactive-md-theme-1", F = Object.freeze({
2161
2231
  name: "default",
2162
- protocol: N,
2232
+ protocol: P,
2163
2233
  colorSchemes: Object.freeze(["light", "dark"])
2164
2234
  });
2165
- function ve(e, t) {
2235
+ function I(e, t) {
2166
2236
  let n = typeof t == "string" ? t.length : Infinity;
2167
2237
  if (!e || typeof e.start != "number" || typeof e.end != "number" || !Number.isFinite(e.start) || !Number.isFinite(e.end)) return {
2168
2238
  start: 0,
@@ -2174,7 +2244,7 @@ function ve(e, t) {
2174
2244
  end: Math.max(r, Math.min(n, Math.floor(e.end)))
2175
2245
  };
2176
2246
  }
2177
- function ye(e, t) {
2247
+ function L(e, t) {
2178
2248
  if (typeof e != "string" || e.length === 0) return {
2179
2249
  line: 1,
2180
2250
  column: 1
@@ -2186,11 +2256,11 @@ function ye(e, t) {
2186
2256
  column: t - i + 1
2187
2257
  };
2188
2258
  }
2189
- function be(e, t, n, r) {
2190
- let i = ve(n, r), { line: a, column: o } = ye(r, i.start);
2259
+ function R(e, t, n, r) {
2260
+ let i = I(n, r), { line: a, column: o } = L(r, i.start);
2191
2261
  return {
2192
2262
  code: e,
2193
- message: j(t),
2263
+ message: M(t),
2194
2264
  severity: "warning",
2195
2265
  range: i,
2196
2266
  line: a,
@@ -2199,605 +2269,52 @@ function be(e, t, n, r) {
2199
2269
  ...t.params ? { params: t.params } : {}
2200
2270
  };
2201
2271
  }
2202
- function xe(e, t, n, r) {
2272
+ function z(e, t, n, r) {
2203
2273
  let i = (e, t) => ({
2204
- name: P.name,
2205
- diagnostics: [be(e, t, n, r)]
2274
+ name: F.name,
2275
+ diagnostics: [R(e, t, n, r)]
2206
2276
  }), a = e;
2207
2277
  if (a == null || a === "") return {
2208
- name: P.name,
2278
+ name: F.name,
2209
2279
  diagnostics: []
2210
2280
  };
2211
- if (!F(a)) return i("local.theme.name", w("local.theme.name", {
2281
+ if (!V(a)) return i("local.theme.name", _("local.theme.name", {
2212
2282
  name: String(a),
2213
2283
  limit: 64
2214
2284
  }));
2215
2285
  let o = a;
2216
- if (o === P.name) return {
2217
- name: P.name,
2286
+ if (o === F.name) return {
2287
+ name: F.name,
2218
2288
  diagnostics: []
2219
2289
  };
2220
- if (!Array.isArray(t)) return i("local.theme.missing", w("local.theme.missing", { name: o }));
2290
+ if (!Array.isArray(t)) return i("local.theme.missing", _("local.theme.missing", { name: o }));
2221
2291
  let s = 0, c = null;
2222
2292
  try {
2223
2293
  for (let e of t) typeof e == "object" && e && !Array.isArray(e) && e.name === o && (s += 1, c = e);
2224
2294
  } catch {
2225
- return i("local.theme.manifest", w("local.theme.manifest.unreadable"));
2295
+ return i("local.theme.manifest", _("local.theme.manifest.unreadable"));
2226
2296
  }
2227
- if (s === 0) return i("local.theme.missing", w("local.theme.missing", { name: o }));
2228
- if (s > 1) return i("local.theme.duplicate", w("local.theme.duplicate", { name: o }));
2297
+ if (s === 0) return i("local.theme.missing", _("local.theme.missing", { name: o }));
2298
+ if (s > 1) return i("local.theme.duplicate", _("local.theme.duplicate", { name: o }));
2229
2299
  try {
2230
2300
  let e = c;
2231
- if (!e || typeof e != "object") return i("local.theme.manifest", w("local.theme.manifest.definition", { name: o }));
2232
- if (e.protocol !== "reactive-md-theme-1") return i("local.theme.protocol", w("local.theme.protocol", {
2301
+ if (!e || typeof e != "object") return i("local.theme.manifest", _("local.theme.manifest.definition", { name: o }));
2302
+ if (e.protocol !== "reactive-md-theme-1") return i("local.theme.protocol", _("local.theme.protocol", {
2233
2303
  name: o,
2234
- protocol: N
2304
+ protocol: P
2235
2305
  }));
2236
2306
  let t = e.colorSchemes;
2237
- if (!Array.isArray(t) || !t.includes("light") || !t.includes("dark")) return i("local.theme.modes", w("local.theme.modes", { name: o }));
2307
+ if (!Array.isArray(t) || !t.includes("light") || !t.includes("dark")) return i("local.theme.modes", _("local.theme.modes", { name: o }));
2238
2308
  } catch {
2239
- return i("local.theme.manifest", w("local.theme.manifest.selected", { name: o }));
2309
+ return i("local.theme.manifest", _("local.theme.manifest.selected", { name: o }));
2240
2310
  }
2241
2311
  return {
2242
2312
  name: o,
2243
2313
  diagnostics: []
2244
2314
  };
2245
2315
  }
2246
- var Se = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/;
2247
- function F(e) {
2248
- return typeof e == "string" && e.length > 0 && e.length <= 64 && Se.test(e);
2249
- }
2250
- var I = Object.freeze([
2251
- Object.freeze({
2252
- name: "computed",
2253
- form: "leaf",
2254
- childRule: "none",
2255
- label: "none",
2256
- props: {
2257
- name: {
2258
- kind: "string",
2259
- static: !0,
2260
- required: !0
2261
- },
2262
- value: {
2263
- kind: "string",
2264
- required: !0
2265
- }
2266
- },
2267
- structure: {
2268
- rule: "none",
2269
- label: "none"
2270
- },
2271
- rules: [{
2272
- kind: "require-full-interpolation",
2273
- attributes: ["value"]
2274
- }]
2275
- }),
2276
- Object.freeze({
2277
- name: "const",
2278
- form: "leaf",
2279
- childRule: "none",
2280
- label: "none",
2281
- props: {
2282
- name: {
2283
- kind: "string",
2284
- static: !0,
2285
- required: !0
2286
- },
2287
- value: {
2288
- kind: "string",
2289
- required: !0
2290
- }
2291
- },
2292
- structure: {
2293
- rule: "none",
2294
- label: "none"
2295
- },
2296
- rules: [{
2297
- kind: "require-full-interpolation",
2298
- attributes: ["value"]
2299
- }]
2300
- }),
2301
- Object.freeze({
2302
- name: "external",
2303
- form: "leaf",
2304
- childRule: "none",
2305
- label: "none",
2306
- props: {
2307
- name: {
2308
- kind: "string",
2309
- static: !0,
2310
- required: !0
2311
- },
2312
- type: {
2313
- kind: "enum",
2314
- static: !0,
2315
- required: !0,
2316
- values: [
2317
- "string",
2318
- "number",
2319
- "boolean",
2320
- "string-array",
2321
- "number-array"
2322
- ]
2323
- }
2324
- },
2325
- structure: {
2326
- rule: "none",
2327
- label: "none"
2328
- }
2329
- })
2330
- ]);
2331
- function Ce(e, t) {
2332
- let n = Array.from({ length: t.length + 1 }, (e, t) => t);
2333
- for (let r = 1; r <= e.length; r++) {
2334
- let i = n[0];
2335
- n[0] = r;
2336
- for (let a = 1; a <= t.length; a++) {
2337
- let o = n[a];
2338
- n[a] = Math.min(n[a] + 1, n[a - 1] + 1, i + (e[r - 1] === t[a - 1] ? 0 : 1)), i = o;
2339
- }
2340
- }
2341
- return n[t.length];
2342
- }
2343
- function we(e, t) {
2344
- let n, r = Infinity;
2345
- for (let i of t) {
2346
- let t = Ce(e, i);
2347
- t < r && (n = i, r = t);
2348
- }
2349
- return r <= 2 ? n : void 0;
2350
- }
2351
- // src/sdk/compat-profile.ts
2352
- var L = Object.freeze([Object.freeze({
2353
- name: "reactive-md-config/v1@0.7.0",
2354
- protocol: t,
2355
- sdkRange: "0.7.0",
2356
- targetProtocol: r,
2357
- targetSdkRange: "0.7.0",
2358
- preset: Object.freeze({
2359
- id: "reactive-md/default",
2360
- version: "0.7.0"
2361
- }),
2362
- legacyKeys: Object.freeze([Object.freeze({
2363
- profile: t,
2364
- algorithm: "external-components/v1"
2365
- })]),
2366
- source: "git tag v0.7.0:src/presets/default.ts and src/sdk/config.ts; docs/compatibility/compatibility-ch.md"
2367
- })]);
2368
- function R(e, t = L) {
2369
- for (let n of t) if (n.preset.id === e.id && n.preset.version === e.version) return n;
2370
- }
2371
- function Te(e = []) {
2372
- return e.length === 0 ? L : Object.freeze([...L, ...e]);
2373
- }
2374
- // src/sdk/assembly.ts
2375
- var Ee = /* @__PURE__ */ new Set([
2376
- "protocol",
2377
- "presets",
2378
- "components",
2379
- "replacementPolicy",
2380
- "themes"
2381
- ]), z = 32, B = 256, V = 32;
2382
- function H(e, t) {
2383
- throw Error(`Invalid local SDK config (${e}): ${t}`);
2384
- }
2385
- function U(e, t) {
2386
- return e < t ? -1 : +(e > t);
2387
- }
2388
- function W(e, t) {
2389
- return [...e].sort((e, n) => U(t(e), t(n)));
2390
- }
2391
- function G(e) {
2392
- if (typeof e != "object" || !e || Array.isArray(e)) return !1;
2393
- let t = Object.getPrototypeOf(e);
2394
- return t === Object.prototype || t === null;
2395
- }
2396
- function K(e) {
2397
- if (Array.isArray(e)) return e.map(K);
2398
- if (G(e)) {
2399
- let t = {};
2400
- for (let n of Object.keys(e).sort(U)) t[n] = K(e[n]);
2401
- return t;
2402
- }
2403
- return e;
2404
- }
2405
- function q(e, t) {
2406
- return JSON.stringify(K(e)) === JSON.stringify(K(t));
2407
- }
2408
- function De(e) {
2409
- Array.isArray(e) || H("assembly.presets", "must be an array."), e.length > z && H("assembly.presets", `accepts at most ${z} packages.`);
2410
- let t = W(e.map((e, t) => {
2411
- try {
2412
- return m(e);
2413
- } catch (e) {
2414
- H(`assembly.presets[${t}]`, e instanceof Error ? e.message : String(e));
2415
- }
2416
- }), (e) => e.id), n = /* @__PURE__ */ new Set();
2417
- for (let e of t) n.has(e.id) && H("assembly.presets", `preset "${e.id}" is selected more than once.`), n.add(e.id);
2418
- return Object.freeze(t);
2419
- }
2420
- function Oe(e) {
2421
- Array.isArray(e) || H("assembly.components", "must be an array."), e.length > B && H("assembly.components", `accepts at most ${B} components.`);
2422
- let t = W(e.map((e, t) => {
2423
- try {
2424
- return o(e);
2425
- } catch (e) {
2426
- H(`assembly.components[${t}]`, e instanceof Error ? e.message : String(e));
2427
- }
2428
- }), (e) => e.id);
2429
- return Object.freeze(t);
2430
- }
2431
- function ke(e) {
2432
- Array.isArray(e) || H("assembly.themes", "must be an array."), e.length > V && H("assembly.themes", `accepts at most ${V} themes.`);
2433
- let t = /* @__PURE__ */ new Set();
2434
- return Object.freeze(W(e.map((e, n) => {
2435
- G(e) || H(`assembly.themes[${n}]`, "must be an object.");
2436
- let r = e.id, i = e.name, a = e.version;
2437
- return (typeof r != "string" || r.length === 0) && H(`assembly.themes[${n}].id`, "must be a non-empty string."), (typeof i != "string" || i.length === 0) && H(`assembly.themes[${n}].name`, "must be a non-empty string."), typeof a == "string" && l(a) || H(`assembly.themes[${n}].version`, "must be a semantic version."), t.has(r) && H("assembly.themes", `theme id "${r}" is declared more than once.`), t.add(r), Object.freeze({ ...e });
2438
- }), (e) => e.id));
2439
- }
2440
- function Ae(e) {
2441
- G(e) || H("assembly", "must be an object.");
2442
- for (let t of Object.keys(e)) Ee.has(t) || H("assembly", `unknown field "${t}".`);
2443
- e.protocol !== "reactive-md-assembly/v1" && H("assembly.protocol", `must be "${s}".`);
2444
- let t = e.replacementPolicy;
2445
- return t !== "allow" && t !== "forbid" && H("assembly.replacementPolicy", "must be \"allow\" or \"forbid\"."), Object.freeze({
2446
- protocol: s,
2447
- presets: De(e.presets),
2448
- components: Oe(e.components),
2449
- replacementPolicy: t,
2450
- themes: ke(e.themes)
2451
- });
2452
- }
2453
- function je(e) {
2454
- let t = new Map(e.map((e) => [e.id, e])), n = /* @__PURE__ */ new Map(), r = [], i = (e) => {
2455
- let a = n.get(e);
2456
- if (a === "done") return;
2457
- a === "visiting" && H("assembly.presets", `preset dependency cycle at "${e}".`);
2458
- let o = t.get(e);
2459
- o || H("assembly.presets", `missing preset dependency "${e}".`), n.set(e, "visiting");
2460
- for (let e of W(o.dependencies ?? [], (e) => e.id)) {
2461
- let n = t.get(e.id);
2462
- n || H("assembly.presets", `preset "${o.id}" requires missing preset "${e.id}".`), l(e.version) || H("assembly.presets", `preset dependency "${e.id}" must use an exact version.`), n.version !== e.version && H("assembly.presets", `preset "${o.id}" requires "${e.id}" ${e.version}, but ${n.version} is installed.`), i(e.id);
2463
- }
2464
- n.set(e, "done"), r.push(o);
2465
- };
2466
- for (let e of [...t.keys()].sort(U)) i(e);
2467
- return Object.freeze(r);
2468
- }
2469
- function J(e) {
2470
- let { description: t, ...n } = e;
2471
- return n;
2472
- }
2473
- function Y(e) {
2474
- return e.structure ?? d(e.children) ?? null;
2475
- }
2476
- function Me(e, t) {
2477
- for (let n of [
2478
- "interactive",
2479
- "static",
2480
- "ssr",
2481
- "offline"
2482
- ]) if (t.capabilities[n] && !e.capabilities[n]) return !1;
2483
- return !0;
2484
- }
2485
- function Ne(e, t) {
2486
- let n = e.definition, r = t.definition, i = `assembly.replacements["${n.id}"]`;
2487
- (n.id !== r.id || n.name !== r.name) && H(i, "the replacement must keep the target id and tag name."), n.form !== r.form && H(i, "the replacement must keep the target form.");
2488
- for (let e of Object.keys(n.props)) {
2489
- let t = n.props[e], a = r.props[e];
2490
- a || H(i, `the replacement removed prop "${e}".`), q(J(t), J(a)) || H(i, `the replacement changed the semantics of prop "${e}".`);
2491
- }
2492
- for (let e of Object.keys(r.props)) Object.hasOwn(n.props, e) || r.props[e].required === !0 && H(i, `the replacement added required prop "${e}".`);
2493
- let a = n.bindings ?? {}, o = r.bindings ?? {}, s = Object.keys(a).sort(U);
2494
- q(s, Object.keys(o).sort(U)) || H(i, "the replacement must keep the target binding slots unchanged.");
2495
- for (let e of s) q(a[e], o[e]) || H(i, `the replacement changed binding slot "${e}".`);
2496
- q(Y(n), Y(r)) || H(i, "the replacement changed the target child structure."), q(n.rules ?? [], r.rules ?? []) || H(i, "the replacement changed semantic rules."), q(n.slotRelations ?? [], r.slotRelations ?? []) || H(i, "the replacement changed slot relations."), n.legacyHost === !0 != (r.legacyHost === !0) && H(i, "the replacement changed legacyHost."), Me(r, n) || H(i, "the replacement downgraded a declared capability.");
2497
- }
2498
- function Pe(e, t) {
2499
- return e.id === t.id ? t.version === void 0 || a(t.version) !== null && n(e.version, t.version) : !1;
2500
- }
2501
- function Fe(e, t) {
2502
- return Object.freeze({
2503
- id: e.definition.id,
2504
- name: e.definition.name,
2505
- fromVersion: e.definition.version,
2506
- toVersion: t.definition.version,
2507
- fromDigest: c(e.definition),
2508
- toDigest: c(t.definition),
2509
- ...e.origin.kind === "preset" ? { fromPreset: e.origin.id } : {},
2510
- ...t.origin.kind === "preset" ? { toPreset: t.origin.id } : {}
2511
- });
2512
- }
2513
- function Ie(e, t) {
2514
- let n = [], r = 0;
2515
- for (let t of e) for (let e of t.components) n.push({
2516
- definition: e,
2517
- origin: {
2518
- kind: "preset",
2519
- id: t.id
2520
- },
2521
- index: r
2522
- }), r += 1;
2523
- for (let e of W(t, (e) => e.id)) n.push({
2524
- definition: e,
2525
- origin: { kind: "external" },
2526
- index: r
2527
- }), r += 1;
2528
- return n;
2529
- }
2530
- function Le(e) {
2531
- let t = /* @__PURE__ */ new Map();
2532
- for (let n of e) n.authoring !== void 0 && n.authoring.length !== 0 && t.set(n.id, new Map(n.authoring.map((e) => [e.componentId, e.authoring])));
2533
- return t;
2534
- }
2535
- function X(e, t) {
2536
- return t === void 0 ? e : e === void 0 ? t : Object.freeze({
2537
- ...e.title === void 0 ? {} : { title: e.title },
2538
- ...e.description === void 0 ? {} : { description: e.description },
2539
- ...e.category === void 0 ? {} : { category: e.category },
2540
- ...e.insertText === void 0 ? {} : { insertText: e.insertText },
2541
- ...t.title === void 0 ? {} : { title: t.title },
2542
- ...t.description === void 0 ? {} : { description: t.description },
2543
- ...t.category === void 0 ? {} : { category: t.category },
2544
- ...t.insertText === void 0 ? {} : { insertText: t.insertText }
2545
- });
2546
- }
2547
- function Z(e, t) {
2548
- let n = e.origin.kind === "preset" ? t.get(e.origin.id)?.get(e.definition.id) : void 0;
2549
- return X(e.definition.authoring, n);
2550
- }
2551
- function Re(e, t) {
2552
- return t === void 0 || t === e.authoring ? e : o({
2553
- ...e,
2554
- authoring: t
2555
- });
2556
- }
2557
- function ze(e, t, n) {
2558
- let r = /* @__PURE__ */ new Map();
2559
- for (let t of e) {
2560
- let e = r.get(t.definition.id);
2561
- e ? e.push(t) : r.set(t.definition.id, [t]);
2562
- }
2563
- let i = [], a = [];
2564
- for (let e of r.values()) {
2565
- if (e.length === 1) {
2566
- let r = e[0];
2567
- r.definition.replaces !== void 0 && (t === "forbid" && H("assembly.replacements", `replacement for "${r.definition.id}" is forbidden.`), H("assembly.replacements", `replacement for "${r.definition.id}" has no base contribution.`));
2568
- let a = Z(r, n);
2569
- i.push({
2570
- ...r,
2571
- position: r.index,
2572
- ...a === void 0 ? {} : { authoring: a }
2573
- });
2574
- continue;
2575
- }
2576
- let r = e.filter((e) => e.definition.replaces !== void 0);
2577
- t === "forbid" && r.length > 0 && H("assembly.replacements", `replacement for "${e[0].definition.id}" is forbidden.`), r.length === 0 && H("assembly.components", `component id "${e[0].definition.id}" is declared more than once.`), r.length > 1 && H("assembly.replacements", `component id "${e[0].definition.id}" has more than one replacement.`), e.length > 2 && H("assembly.replacements", `component id "${e[0].definition.id}" has ambiguous base contributions.`);
2578
- let o = r[0], s = e.filter((e) => e !== o);
2579
- s.length !== 1 && H("assembly.replacements", `component id "${e[0].definition.id}" must have exactly one base.`);
2580
- let c = s[0];
2581
- c.definition.replaces !== void 0 && H("assembly.replacements", `component id "${e[0].definition.id}" uses a replacement chain.`);
2582
- let l = o.definition.replaces;
2583
- Pe(c.definition, l) || H("assembly.replacements", `replacement for "${c.definition.id}" does not match base version ${c.definition.version}.`), Ne(c, o);
2584
- let u = X(Z(c, n), Z(o, n));
2585
- i.push({
2586
- ...o,
2587
- position: c.index,
2588
- ...u === void 0 ? {} : { authoring: u }
2589
- }), a.push(Fe(c, o));
2590
- }
2591
- return i.sort((e, t) => e.position - t.position), {
2592
- active: Object.freeze(i),
2593
- replacements: Object.freeze(W(a, (e) => e.id))
2594
- };
2595
- }
2596
- function Be(t) {
2597
- let r = /* @__PURE__ */ new Map(), i = new Map(t.map((e) => [e.definition.id, e.definition]));
2598
- for (let a of t) {
2599
- let t = a.definition, o = r.get(t.name);
2600
- o !== void 0 && ((o.origin.kind === "preset" || a.origin.kind === "preset") && H("assembly.components", `name "${t.name}" conflicts with a built-in component "${o.definition.id}".`), H("assembly.components", `component name "${t.name}" is declared more than once by "${o.definition.id}" and "${t.id}".`)), r.set(t.name, a);
2601
- let s = t.requires?.kernel;
2602
- s !== void 0 && !n("0.7.0", s) && H("assembly.components", `component "${t.id}" requires kernel ${s}, but ${e} is installed.`);
2603
- for (let e of t.dependencies ?? []) {
2604
- let r = i.get(e.id);
2605
- r || H("assembly.dependencies", `component "${t.id}" requires missing component "${e.id}".`), e.version !== void 0 && !n(r.version, e.version) && H("assembly.dependencies", `component "${t.id}" requires "${e.id}" ${e.version}, but version ${r.version} is installed.`);
2606
- }
2607
- }
2608
- let a = /* @__PURE__ */ new Map(), o = (e, t) => {
2609
- let n = a.get(e);
2610
- if (n !== "done") {
2611
- n === "visiting" && H("assembly.dependencies", `dependency cycle: ${[...t, e].join(" -> ")}.`), a.set(e, "visiting");
2612
- for (let n of i.get(e)?.dependencies ?? []) i.has(n.id) && o(n.id, [...t, e]);
2613
- a.set(e, "done");
2614
- }
2615
- };
2616
- for (let e of [...i.keys()].sort(U)) o(e, []);
2617
- }
2618
- function Ve(e, t) {
2619
- let n = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = (e, t) => {
2620
- n.get(e.id) && H("assembly.themes", `theme id "${e.id}" is declared by both ${t} and another source.`), r.get(e.name) && H("assembly.themes", `theme name "${e.name}" is declared by both ${t} and another source.`), n.set(e.id, e), r.set(e.name, e);
2621
- };
2622
- for (let t of e) for (let e of t.themes ?? []) i(e, `preset:${t.id}`);
2623
- for (let e of t) i(e, "external");
2624
- return Object.freeze(W([...n.values()], (e) => e.id));
2625
- }
2626
- function He(e) {
2627
- return Object.freeze(W(e.map((e) => ({
2628
- id: e.id,
2629
- version: e.version,
2630
- digest: p(e)
2631
- })), (e) => e.id));
2632
- }
2633
- function Ue(e, t, n) {
2634
- let a = JSON.stringify({
2635
- protocol: r,
2636
- presets: W(e, (e) => e.id),
2637
- registry: [...t].map((e) => ({
2638
- id: e.id,
2639
- name: e.name,
2640
- version: e.version,
2641
- digest: c(e)
2642
- })).sort((e, t) => U(e.id, t.id)),
2643
- replacements: W(n, (e) => e.id)
2644
- });
2645
- return i(a);
2646
- }
2647
- function Q(e, n) {
2648
- let r = JSON.stringify({
2649
- protocol: t,
2650
- presets: [{
2651
- id: e.id,
2652
- version: e.version
2653
- }],
2654
- components: [...n].map((e) => ({
2655
- id: e.id,
2656
- version: e.version,
2657
- digest: c(e)
2658
- })).sort((e, t) => U(e.id, t.id))
2659
- });
2660
- return i(r);
2661
- }
2662
- function We(e, t = {}) {
2663
- let n = je(e.presets), r = ze(Ie(n, e.components), e.replacementPolicy, Le(n));
2664
- Be(r.active);
2665
- let i = Object.freeze(r.active.map((e) => Re(e.definition, e.authoring))), a = Object.freeze(W(r.active.filter((e) => e.origin.kind === "external").map((e) => e.definition), (e) => e.id)), o = He(n), s = Ve(n, e.themes), c = Ue(o, i, r.replacements), l = [], u = t.legacyProfiles === void 0 || n.length !== 1 || r.replacements.length !== 0 ? void 0 : R({
2666
- id: n[0].id,
2667
- version: n[0].version
2668
- }, t.legacyProfiles), d = u?.legacyKeys[0];
2669
- return u !== void 0 && d !== void 0 && l.push(Object.freeze({
2670
- profile: d.profile,
2671
- key: Q(u.preset, a)
2672
- })), Object.freeze({
2673
- presets: o,
2674
- components: a,
2675
- replacements: r.replacements,
2676
- registry: i,
2677
- themes: s,
2678
- key: c,
2679
- legacyKeys: Object.freeze(l)
2680
- });
2681
- }
2682
- function Ge(e, t, n = t.legacyKeys) {
2683
- return Object.freeze({
2684
- protocol: r,
2685
- assembly: e,
2686
- key: t.key,
2687
- presets: t.presets,
2688
- components: t.components,
2689
- replacements: t.replacements,
2690
- registry: t.registry,
2691
- themes: t.themes,
2692
- legacyKeys: Object.freeze(n)
2693
- });
2694
- }
2695
- function Ke(e) {
2696
- return Object.freeze({
2697
- protocol: "reactive-md-assembly-seal/v1",
2698
- configKey: e.key,
2699
- presets: Object.freeze(W(e.presets, (e) => e.id)),
2700
- components: Object.freeze(W(e.registry.map(f), (e) => e.id)),
2701
- replacements: Object.freeze(W(e.replacements, (e) => e.id)),
2702
- legacyKeys: Object.freeze(W(e.legacyKeys, (e) => e.key))
2703
- });
2704
- }
2705
- function qe(e) {
2706
- return i(JSON.stringify(Ke(e)));
2707
- }
2708
- function Je(e, t) {
2709
- return e.key === t || e.legacyKeys.some((e) => e.key === t);
2710
- }
2711
- // src/sdk/config-validation.ts
2712
- var Ye = 16777216, Xe = /* @__PURE__ */ new Set([
2713
- "__proto__",
2714
- "constructor",
2715
- "prototype"
2716
- ]), Ze = /* @__PURE__ */ new Set([
2717
- "protocol",
2718
- "key",
2719
- "assembly",
2720
- "presets",
2721
- "components",
2722
- "replacements",
2723
- "registry",
2724
- "themes",
2725
- "legacyKeys"
2726
- ]);
2727
- function $(e, t) {
2728
- throw Error(`Invalid local SDK config (${e}): ${t}`);
2729
- }
2730
- function Qe(e) {
2731
- if (typeof e != "object" || !e || Array.isArray(e)) return !1;
2732
- let t = Object.getPrototypeOf(e);
2733
- return t === Object.prototype || t === null;
2734
- }
2735
- function $e(e, t, n) {
2736
- for (let r of Object.keys(e)) Xe.has(r) && $(n, `field "${r}" is not allowed.`), t.has(r) || $(n, `unknown field "${r}".`);
2737
- }
2738
- function et(e, t, n = []) {
2739
- if (e === void 0) return Object.freeze([t]);
2740
- Array.isArray(e) || $("presets", "must be an array."), e.length === 0 && $("presets", "must select at least the default preset.");
2741
- let r = [];
2742
- for (let e of [t, ...n.map((e) => e.preset)]) r.some((t) => t.id === e.id && t.version === e.version) || r.push(e);
2743
- let i = /* @__PURE__ */ new Set(), a = [];
2744
- for (let n = 0; n < e.length; n += 1) {
2745
- let o = e[n], s, c;
2746
- typeof o == "string" ? s = o : Qe(o) ? ((o.id === void 0 || typeof o.id != "string") && $(`presets[${n}].id`, "must be a string."), s = o.id, o.version !== void 0 && (typeof o.version != "string" && $(`presets[${n}].version`, "must be a string."), c = o.version)) : $(`presets[${n}]`, "must be a preset id or preset reference.");
2747
- let l = s === "default" ? t.id : s, u = r.filter((e) => e.id === l);
2748
- u.length === 0 && $(`presets[${n}]`, `unsupported preset "${s}"; local.config.migration-unsupported: no compatibility profile matches this identity.`);
2749
- let d = c === void 0 ? u.length === 1 ? u[0] : void 0 : u.find((e) => e.version === c);
2750
- d === void 0 && $(`presets[${n}]`, `unsupported preset "${s}"${c === void 0 ? "" : ` version "${c}"`}; local.config.migration-unsupported: no compatibility profile matches this identity.`), i.has(d.id) && $("presets", `"${d.id}" is selected more than once.`), a.length > 0 && a[0].id !== d.id && $("presets", "reactive-md-config/v1 selects exactly one default preset identity."), i.add(d.id), a.push(d);
2751
- }
2752
- return Object.freeze(a);
2753
- }
2754
- function tt(e, t) {
2755
- if (e.components === void 0) return;
2756
- let n = new Map(t.map((e) => [e.id, e]));
2757
- for (let t of e.components) {
2758
- let r = n.get(t.id);
2759
- r && r.name === t.name && r.version === t.version && c(r) === t.digest || $("presets", `local.config.migration-unsupported: profile "${e.name}" cannot map legacy component "${t.id}".`);
2760
- }
2761
- }
2762
- function nt(e) {
2763
- let t = /* @__PURE__ */ new Set();
2764
- for (let n of e) t.add(n.name), t.add(n.id);
2765
- return t;
2766
- }
2767
- function rt(t, r) {
2768
- let i = new Map(t.map((e) => [e.id, e])), a = nt(r);
2769
- for (let r of t) {
2770
- let t = r.requires?.kernel;
2771
- t !== void 0 && !n("0.7.0", t) && $("requires", `component "${r.id}" requires kernel ${t}, but ${e} is installed.`);
2772
- for (let e of r.dependencies ?? []) {
2773
- let t = i.get(e.id)?.version ?? (a.has(e.id) ? "0.7.0" : null);
2774
- t === null && $("dependencies", `component "${r.id}" requires missing component "${e.id}".`), e.version !== void 0 && !n(t, e.version) && $("dependencies", `component "${r.id}" requires "${e.id}" ${e.version}, but version ${t} is installed.`);
2775
- }
2776
- }
2777
- let o = /* @__PURE__ */ new Map(), s = (e, t) => {
2778
- let n = o.get(e);
2779
- if (n === "done") return;
2780
- n === "visiting" && $("dependencies", `dependency cycle: ${[...t, e].join(" -> ")}.`), o.set(e, "visiting");
2781
- let r = i.get(e);
2782
- for (let n of r?.dependencies ?? []) i.has(n.id) && s(n.id, [...t, e]);
2783
- o.set(e, "done");
2784
- };
2785
- for (let e of i.keys()) s(e, []);
2786
- }
2787
- function it(e, t) {
2788
- if (e === void 0) return Object.freeze([]);
2789
- Array.isArray(e) || $("components", "must be an array."), e.length > 64 && $("components", "accepts at most 64 external components.");
2790
- let n = new Set([
2791
- ...t.map((e) => e.name),
2792
- ...I.map((e) => e.name),
2793
- ...M
2794
- ].map((e) => e.toLowerCase()));
2795
- n.add("theme");
2796
- let r = new Set(t.map((e) => e.id)), i = /* @__PURE__ */ new Set(), a = [];
2797
- for (let t = 0; t < e.length; t += 1) {
2798
- let s = o(e[t]);
2799
- n.has(s.name.toLowerCase()) && $(`components[${t}]`, `name "${s.name}" conflicts with a built-in component, HTML tag or theme declaration.`), r.has(s.id) && $("components", `component id "${s.id}" is declared more than once.`), i.has(s.name) && $("components", `component name "${s.name}" is declared more than once.`), r.add(s.id), i.add(s.name), a.push(s);
2800
- }
2801
- return rt(a, t), Object.freeze(a);
2316
+ var B = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/;
2317
+ function V(e) {
2318
+ return typeof e == "string" && e.length > 0 && e.length <= 64 && B.test(e);
2802
2319
  }
2803
- export { E as A, v as B, F as C, M as D, ge as E, O as F, b as H, de as I, A as L, pe as M, fe as N, he as O, w as P, _ as R, N as S, me as T, y as V, R as _, Qe as a, we as b, tt as c, Ge as d, Je as f, L as g, We as h, $ as i, j, _e as k, Ke as l, Ae as m, Ye as n, it as o, Q as p, $e as r, et as s, Ze as t, qe as u, Te as v, xe as w, P as x, I as y, g as z };
2320
+ export { a as _, T as a, k as c, E as d, j as f, r as g, i as h, z as i, _ as l, l as m, P as n, M as o, c as p, V as r, N as s, F as t, O as u, o as v, s as y };