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.
- package/CHANGELOG-ch.md +44 -0
- package/CHANGELOG.md +44 -0
- package/README-ch.md +7 -7
- package/README-en.md +6 -6
- package/README.md +7 -7
- package/cli/init.mjs +1 -1
- package/dist-library/LocalDocumentView-D6zQkTkt.js +112 -0
- package/dist-library/{LocalDocumentViewCore-GiWV3bey.js → LocalDocumentViewCore-CmJhemcA.js} +387 -9471
- package/dist-library/LocalReactiveDocumentCore-lAKOGAZ7.js +283 -0
- package/dist-library/LocalStaticDocumentView-2J7w0sKm.js +143 -0
- package/dist-library/{authoring-Dsune4Hy.js → authoring-B14SsOXZ.js} +68 -67
- package/dist-library/chart-B1TUtzm-.js +3 -0
- package/dist-library/color-values-r8Wf7ALn.js +6 -0
- package/dist-library/{compile-wUv8KEge.js → compile-D50B5_Ww.js} +32 -32
- package/dist-library/compile-cache-key-6GgpETz_.js +28 -0
- package/dist-library/compiler-DLkKUK4t.js +98 -0
- package/dist-library/{compiler-core-As_m-MNm.js → compiler-core-Niqhp9wV.js} +2963 -3283
- package/dist-library/{registry-core-Bbad9Bm2.js → component-kernel-IG4wOO0i.js} +72 -195
- package/dist-library/component-state-CwKX_SN5.js +763 -0
- package/dist-library/{component-state-C52ZFJGl.js → component-state-Ht-hOK0W.js} +15 -14
- package/dist-library/component-utils-eSj5IdG4.js +338 -0
- package/dist-library/computations-CffoW7Ff.js +340 -0
- package/dist-library/config-validation-Cpol91_M.js +456 -0
- package/dist-library/controls-B-CLSK8Q.js +5927 -0
- package/dist-library/controls-DWlx-AQl.js +3 -0
- package/dist-library/{coordinate-CWS9p5q_.js → coordinate-PyLPMIQK.js} +85 -85
- package/dist-library/data-BtFlkJzp.js +3 -0
- package/dist-library/{data-table-Bgccxd7h.js → data-table-Kv_ZA2Z2.js} +14 -13
- package/dist-library/data-visuals-_Z7QqYTk.js +384 -0
- package/dist-library/{default-components-BwQf0oP-.js → default-components-jugH7Ubr.js} +333 -331
- package/dist-library/{config-BadfhjdP.js → default-config-DIrRpuQz.js} +96 -79
- package/dist-library/default-options-DU5dxuU6.js +125 -0
- package/dist-library/{registry-B9NGct4d.js → default-registry-BlloaZi7.js} +4 -4
- package/dist-library/default-schema-Ch-Vznpm.js +33 -0
- package/dist-library/diagram-BLepzI8l.js +3 -0
- package/dist-library/{display-B-VhqVND.js → display-y4v9v0Qd.js} +1 -1
- package/dist-library/dist-Cueh1Psp.js +4761 -0
- package/dist-library/{config-validation-F47AcE6o.js → document-theme-DBAfnk7y.js} +248 -731
- package/dist-library/{export-BqVmTXm8.js → export-heVBqgxA.js} +46 -44
- package/dist-library/gallery-BC6FYTqw.js +3 -0
- package/dist-library/{gallery-CY6mTx8i.js → gallery-Q6VPS2ep.js} +1 -1
- package/dist-library/{html-CNT4KD-2.js → html-CCnvzan1.js} +56 -54
- package/dist-library/identity-BUx0Q_-d.js +40 -0
- package/dist-library/{incremental-Dv0FSp_U.js → incremental-Bzvh8_lB.js} +529 -380
- package/dist-library/{layout-C0YlEPGr.js → layout-BfUzzO2b.js} +147 -156
- package/dist-library/layout-BnfDeUNy.js +3 -0
- package/dist-library/limits-CFERRrlC.js +10 -0
- package/dist-library/localization-COdJ6lw2.js +6 -0
- package/dist-library/mafs-CnzDC5CR.js +3 -0
- package/dist-library/math-view-B0jthpRw.js +20 -0
- package/dist-library/motion-tokens-Czk0RDmS.js +283 -0
- package/dist-library/mount-preset-C_i37FvY.js +24 -0
- package/dist-library/numeric-sliders-CkWS0-ja.js +542 -0
- package/dist-library/observability-CYLuvFfL.js +502 -0
- package/dist-library/observability-core-Bcu7vpnl.js +24 -0
- package/dist-library/{package-core-WFK1RhAZ.js → package-core-9UK5ZdqB.js} +57 -46
- package/dist-library/parser-9yNJxGip.js +8 -0
- package/dist-library/parser-standard-BPIy4HOu.js +4872 -0
- package/dist-library/plugin-packs-CZb46nuv.js +19 -0
- package/dist-library/preset-core-BW3NWZJ9.js +1300 -0
- package/dist-library/props-pJRrfDc6.js +179 -0
- package/dist-library/react-BSo0o998.js +32 -0
- package/dist-library/reactive-md-authoring.js +274 -263
- package/dist-library/reactive-md-build.js +55 -20
- package/dist-library/reactive-md-compiler-session.js +4 -0
- package/dist-library/reactive-md-compiler-standard.js +6 -6
- package/dist-library/reactive-md-compiler.js +3 -3
- package/dist-library/reactive-md-contracts.js +6 -0
- package/dist-library/reactive-md-default-packs.js +31 -14
- package/dist-library/reactive-md-default-preset.js +7 -6
- package/dist-library/reactive-md-export.js +6 -5
- package/dist-library/reactive-md-minimal-preset.js +2 -2
- package/dist-library/reactive-md-minimal-react-preset.js +22 -20
- package/dist-library/reactive-md-minimal.css +1 -1
- package/dist-library/reactive-md-observability.js +126 -0
- package/dist-library/reactive-md-pack-style-manifest.js +797 -0
- package/dist-library/reactive-md-plugin-chart.js +6 -5
- package/dist-library/reactive-md-plugin-data.js +8 -8
- package/dist-library/reactive-md-plugin-diagram.js +7 -6
- package/dist-library/reactive-md-plugin-forms.js +14 -13
- package/dist-library/reactive-md-plugin-gallery.js +6 -5
- package/dist-library/reactive-md-plugin-navigation.js +9 -9
- package/dist-library/reactive-md-plugin-network.js +13 -12
- package/dist-library/reactive-md-plugin-plot.js +7 -6
- package/dist-library/reactive-md-react-component-accordion.js +10 -0
- package/dist-library/reactive-md-react-component-alert.js +10 -0
- package/dist-library/reactive-md-react-component-anchor.js +10 -0
- package/dist-library/reactive-md-react-component-badge.js +10 -0
- package/dist-library/reactive-md-react-component-card.js +10 -0
- package/dist-library/reactive-md-react-component-chart.js +22 -0
- package/dist-library/reactive-md-react-component-checkbox.js +10 -0
- package/dist-library/reactive-md-react-component-checklist.js +10 -0
- package/dist-library/reactive-md-react-component-choices.js +10 -0
- package/dist-library/reactive-md-react-component-column.js +6 -0
- package/dist-library/reactive-md-react-component-coordinate.js +21 -0
- package/dist-library/reactive-md-react-component-counter.js +10 -0
- package/dist-library/reactive-md-react-component-data-table.js +14 -0
- package/dist-library/reactive-md-react-component-date.js +10 -0
- package/dist-library/reactive-md-react-component-diagram.js +22 -0
- package/dist-library/reactive-md-react-component-disclosure.js +10 -0
- package/dist-library/reactive-md-react-component-edge.js +22 -0
- package/dist-library/reactive-md-react-component-gallery-item.js +10 -0
- package/dist-library/reactive-md-react-component-gallery.js +10 -0
- package/dist-library/reactive-md-react-component-grid.js +10 -0
- package/dist-library/reactive-md-react-component-if.js +10 -0
- package/dist-library/reactive-md-react-component-input.js +10 -0
- package/dist-library/reactive-md-react-component-jump.js +10 -0
- package/dist-library/reactive-md-react-component-multi-select.js +10 -0
- package/dist-library/reactive-md-react-component-node.js +22 -0
- package/dist-library/reactive-md-react-component-number.js +10 -0
- package/dist-library/reactive-md-react-component-option.js +10 -0
- package/dist-library/reactive-md-react-component-panel.js +10 -0
- package/dist-library/reactive-md-react-component-plot.js +26 -0
- package/dist-library/reactive-md-react-component-progress.js +10 -0
- package/dist-library/reactive-md-react-component-quiz.js +10 -0
- package/dist-library/reactive-md-react-component-radio-group.js +10 -0
- package/dist-library/reactive-md-react-component-range-slider.js +10 -0
- package/dist-library/reactive-md-react-component-section.js +10 -0
- package/dist-library/reactive-md-react-component-select.js +10 -0
- package/dist-library/reactive-md-react-component-slider.js +10 -0
- package/dist-library/reactive-md-react-component-step.js +10 -0
- package/dist-library/reactive-md-react-component-steps.js +10 -0
- package/dist-library/reactive-md-react-component-tab.js +10 -0
- package/dist-library/reactive-md-react-component-table.js +14 -0
- package/dist-library/reactive-md-react-component-tabs.js +10 -0
- package/dist-library/reactive-md-react-component-text.js +10 -0
- package/dist-library/reactive-md-react-component-textarea.js +10 -0
- package/dist-library/reactive-md-react-component-timeline.js +14 -0
- package/dist-library/reactive-md-react-component-timer.js +10 -0
- package/dist-library/reactive-md-react-component-toggle.js +10 -0
- package/dist-library/reactive-md-react-component-tooltip.js +10 -0
- package/dist-library/reactive-md-react-component-validation.js +10 -0
- package/dist-library/reactive-md-react-minimal.js +4 -4
- package/dist-library/reactive-md-react-pack-controls.js +44 -0
- package/dist-library/reactive-md-react-pack-data.js +21 -0
- package/dist-library/reactive-md-react-pack-layout.js +36 -0
- package/dist-library/reactive-md-react-pack-visuals.js +43 -0
- package/dist-library/reactive-md-react-packed.js +50 -0
- package/dist-library/reactive-md-react-server.js +26 -25
- package/dist-library/reactive-md-react-static-server.js +24 -0
- package/dist-library/reactive-md-react-static.js +1 -0
- package/dist-library/reactive-md-react-unstyled.js +15 -12
- package/dist-library/reactive-md-react.js +15 -12
- package/dist-library/reactive-md-runtime-browser.js +2 -1
- package/dist-library/reactive-md-runtime.js +4 -3
- package/dist-library/reactive-md-scan.js +1 -0
- package/dist-library/reactive-md-sdk.js +9 -8
- package/dist-library/reactive-md-standalone-configured.js +2 -2
- package/dist-library/reactive-md-standalone-host.js +2 -2
- package/dist-library/reactive-md-testing-browser.js +2 -2
- package/dist-library/reactive-md-testing-react.js +32 -32
- package/dist-library/reactive-md-testing.js +12 -12
- package/dist-library/reactive-md-worker-pool.js +401 -0
- package/dist-library/reactive-md.css +1 -1
- package/dist-library/reactive-md.js +84 -1361
- package/dist-library/registry-core-CziAIP5P.js +125 -0
- package/dist-library/render-nodes-DKjg_TR1.js +9369 -0
- package/dist-library/{resources-D2GDQS0p.js → requirements-DhIkxAbl.js} +37 -84
- package/dist-library/resources-B_nbROgj.js +74 -0
- package/dist-library/rmd-pack-controls.css +1032 -0
- package/dist-library/rmd-pack-data.css +724 -0
- package/dist-library/rmd-pack-layout.css +1825 -0
- package/dist-library/rmd-pack-resource-chart.css +300 -0
- package/dist-library/rmd-pack-resource-controls.css +781 -0
- package/dist-library/rmd-pack-resource-data-visuals.css +501 -0
- package/dist-library/rmd-pack-resource-diagram.css +106 -0
- package/dist-library/rmd-pack-resource-gallery.css +346 -0
- package/dist-library/rmd-pack-resource-graphics.css +516 -0
- package/dist-library/rmd-pack-resource-layout.css +1480 -0
- package/dist-library/rmd-pack-resource-mafs-core.css +124 -0
- package/dist-library/rmd-pack-resource-mafs.css +129 -0
- package/dist-library/rmd-pack-resource-visual-base.css +224 -0
- package/dist-library/rmd-pack-visuals.css +1394 -0
- package/dist-library/{runtime-B2fxeveq.js → runtime-BDnnimPA.js} +17 -16
- package/dist-library/{runtime-kcA7bG7G.js → runtime-CuJndKqK.js} +320 -313
- package/dist-library/runtime-requirement-C4-vNcf5.js +769 -0
- package/dist-library/schema-core-4sd1Vu7V.js +132 -0
- package/dist-library/{sdk-core-BoJT1SIt.js → sdk-core-BLsW9cCy.js} +494 -520
- package/dist-library/{session-core-nmJHuR9c.js → session-core-DLBRPV7f.js} +33 -31
- package/dist-library/{shareable-DpbE-59H.js → shareable-C6mUerpQ.js} +215 -209
- package/dist-library/shared-bTzN-F4g.js +3 -0
- package/dist-library/structural-views-30-YD_TJ.js +11 -0
- package/dist-library/table-surface-CfZn_tk-.js +13 -0
- package/dist-library/types/assemblies/compile-cache-key.d.ts +11 -0
- package/dist-library/types/assemblies/default-config.d.ts +35 -0
- package/dist-library/types/{local/configuration/options.d.ts → assemblies/default-options.d.ts} +4 -4
- package/dist-library/types/assemblies/default-registry.d.ts +18 -0
- package/dist-library/types/{local/configuration/schema.d.ts → assemblies/default-schema.d.ts} +4 -4
- package/dist-library/types/authoring/catalog.d.ts +11 -1
- package/dist-library/types/authoring/extensions.d.ts +1 -1
- package/dist-library/types/authoring/index.d.ts +3 -3
- package/dist-library/types/authoring/templates.d.ts +1 -1
- package/dist-library/types/build/diagnostics.d.ts +1 -1
- package/dist-library/types/compiler/index.d.ts +1 -0
- package/dist-library/types/compiler/session.d.ts +19 -0
- package/dist-library/types/compiler/standard.d.ts +1 -0
- package/dist-library/types/components/entries/accordion.d.ts +3 -0
- package/dist-library/types/components/entries/alert.d.ts +3 -0
- package/dist-library/types/components/entries/anchor.d.ts +3 -0
- package/dist-library/types/components/entries/badge.d.ts +3 -0
- package/dist-library/types/components/entries/card.d.ts +3 -0
- package/dist-library/types/components/entries/chart.d.ts +3 -0
- package/dist-library/types/components/entries/checkbox.d.ts +3 -0
- package/dist-library/types/components/entries/checklist.d.ts +3 -0
- package/dist-library/types/components/entries/choices.d.ts +3 -0
- package/dist-library/types/components/entries/column.d.ts +3 -0
- package/dist-library/types/components/entries/coordinate.d.ts +3 -0
- package/dist-library/types/components/entries/counter.d.ts +3 -0
- package/dist-library/types/components/entries/data-table.d.ts +3 -0
- package/dist-library/types/components/entries/date.d.ts +3 -0
- package/dist-library/types/components/entries/diagram.d.ts +3 -0
- package/dist-library/types/components/entries/disclosure.d.ts +3 -0
- package/dist-library/types/components/entries/edge.d.ts +3 -0
- package/dist-library/types/components/entries/gallery-item.d.ts +3 -0
- package/dist-library/types/components/entries/gallery.d.ts +3 -0
- package/dist-library/types/components/entries/grid.d.ts +3 -0
- package/dist-library/types/components/entries/if.d.ts +3 -0
- package/dist-library/types/components/entries/input.d.ts +3 -0
- package/dist-library/types/components/entries/jump.d.ts +3 -0
- package/dist-library/types/components/entries/multi-select.d.ts +3 -0
- package/dist-library/types/components/entries/node.d.ts +3 -0
- package/dist-library/types/components/entries/number.d.ts +3 -0
- package/dist-library/types/components/entries/option.d.ts +3 -0
- package/dist-library/types/components/entries/panel.d.ts +3 -0
- package/dist-library/types/components/entries/plot.d.ts +3 -0
- package/dist-library/types/components/entries/progress.d.ts +3 -0
- package/dist-library/types/components/entries/quiz.d.ts +3 -0
- package/dist-library/types/components/entries/radio-group.d.ts +3 -0
- package/dist-library/types/components/entries/range-slider.d.ts +3 -0
- package/dist-library/types/components/entries/section.d.ts +3 -0
- package/dist-library/types/components/entries/select.d.ts +3 -0
- package/dist-library/types/components/entries/slider.d.ts +3 -0
- package/dist-library/types/components/entries/step.d.ts +3 -0
- package/dist-library/types/components/entries/steps.d.ts +3 -0
- package/dist-library/types/components/entries/tab.d.ts +3 -0
- package/dist-library/types/components/entries/table.d.ts +3 -0
- package/dist-library/types/components/entries/tabs.d.ts +3 -0
- package/dist-library/types/components/entries/text.d.ts +3 -0
- package/dist-library/types/components/entries/textarea.d.ts +3 -0
- package/dist-library/types/components/entries/timeline.d.ts +3 -0
- package/dist-library/types/components/entries/timer.d.ts +3 -0
- package/dist-library/types/components/entries/toggle.d.ts +3 -0
- package/dist-library/types/components/entries/tooltip.d.ts +3 -0
- package/dist-library/types/components/entries/validation.d.ts +3 -0
- package/dist-library/types/components/layout/layout.d.ts +1 -3
- package/dist-library/types/components/layout/structural-views.d.ts +3 -0
- package/dist-library/types/components/mount-preset.d.ts +2 -0
- package/dist-library/types/components/packs/controls.d.ts +2 -0
- package/dist-library/types/components/packs/data.d.ts +2 -0
- package/dist-library/types/components/packs/layout.d.ts +2 -0
- package/dist-library/types/components/packs/visuals.d.ts +2 -0
- package/dist-library/types/components/shared/data-visuals.d.ts +3 -0
- package/dist-library/types/components/shared/table-surface.d.ts +10 -0
- package/dist-library/types/components/shared/visual-helpers.d.ts +24 -0
- package/dist-library/types/components/shared/visuals.d.ts +0 -2
- package/dist-library/types/components/table/data-table-model.d.ts +48 -0
- package/dist-library/types/components/table/data-table.d.ts +1 -48
- package/dist-library/types/{local/configuration → contracts}/component-kernel.d.ts +4 -2
- package/dist-library/types/contracts/index.d.ts +8 -0
- package/dist-library/types/{local/configuration → contracts}/limits.d.ts +9 -1
- package/dist-library/types/contracts/localization.d.ts +6 -0
- package/dist-library/types/contracts/runtime-types.d.ts +19 -0
- package/dist-library/types/local/compilation/cache-version.d.ts +1 -0
- package/dist-library/types/local/compilation/compile-status.d.ts +2 -0
- package/dist-library/types/local/compilation/compiler-bindings.d.ts +1 -1
- package/dist-library/types/local/compilation/compiler-capabilities.d.ts +4 -1
- package/dist-library/types/local/compilation/compiler-core.d.ts +1 -1
- package/dist-library/types/local/compilation/compiler-embedding.d.ts +20 -0
- package/dist-library/types/local/compilation/compiler-expressions.d.ts +5 -4
- package/dist-library/types/local/compilation/compiler-structure.d.ts +1 -1
- package/dist-library/types/local/compilation/compiler-tables.d.ts +3 -2
- package/dist-library/types/local/compilation/compiler-validation.d.ts +5 -9
- package/dist-library/types/local/compilation/compiler-values.d.ts +1 -1
- package/dist-library/types/local/compilation/compiler.d.ts +1 -1
- package/dist-library/types/local/compilation/component-usage.d.ts +2 -0
- package/dist-library/types/local/compilation/runtime-requirement.d.ts +3 -0
- package/dist-library/types/local/compilation/session/incremental.d.ts +5 -1
- package/dist-library/types/local/compilation/streaming.d.ts +1 -1
- package/dist-library/types/local/configuration/diagnostic-messages.d.ts +55 -0
- package/dist-library/types/local/configuration/embedding.d.ts +4 -0
- package/dist-library/types/local/configuration/kernel-value-rules.d.ts +1 -1
- package/dist-library/types/local/configuration/options-core.d.ts +8 -2
- package/dist-library/types/local/index.d.ts +12 -1
- package/dist-library/types/local/observability-codes.d.ts +2 -0
- package/dist-library/types/local/observability-core.d.ts +44 -0
- package/dist-library/types/local/observability-messages.d.ts +6 -0
- package/dist-library/types/local/observability.d.ts +45 -0
- package/dist-library/types/local/parsing/parse-budget.d.ts +18 -2
- package/dist-library/types/local/parsing/parser-internals.d.ts +2 -1
- package/dist-library/types/local/parsing/parser-region.d.ts +13 -2
- package/dist-library/types/local/parsing/parser-tags.d.ts +6 -1
- package/dist-library/types/local/parsing/rmd-recovery.d.ts +8 -0
- package/dist-library/types/local/performance-report.d.ts +70 -0
- package/dist-library/types/local/runtime/runtime-pool.d.ts +14 -0
- package/dist-library/types/local/transport/worker-handler.d.ts +3 -0
- package/dist-library/types/local/transport/worker-job.d.ts +12 -2
- package/dist-library/types/local/transport/worker-pool.d.ts +68 -0
- package/dist-library/types/local/transport/worker.d.ts +66 -1
- package/dist-library/types/local/types.d.ts +45 -25
- package/dist-library/types/observability.d.ts +8 -0
- package/dist-library/types/presets/default-semantics.d.ts +1 -1
- package/dist-library/types/presets/identity.d.ts +1 -8
- package/dist-library/types/presets/pack-style-entry.d.ts +3 -0
- package/dist-library/types/presets/pack-style-manifest.d.ts +11 -0
- package/dist-library/types/react/component-api.d.ts +3 -2
- package/dist-library/types/react/component-loader.d.ts +61 -0
- package/dist-library/types/react/component-primitives.d.ts +5 -5
- package/dist-library/types/react/index.d.ts +9 -5
- package/dist-library/types/react/localization.d.ts +5 -6
- package/dist-library/types/react/minimal.d.ts +2 -2
- package/dist-library/types/react/package-core.d.ts +3 -0
- package/dist-library/types/react/packed.d.ts +17 -0
- package/dist-library/types/react/render-lifecycle.d.ts +9 -0
- package/dist-library/types/{local → react}/rendering/document/ExtendedHtmlFragment.d.ts +1 -1
- package/dist-library/types/{local → react}/rendering/document/LocalDocumentViewCore.d.ts +11 -4
- package/dist-library/types/react/rendering/document/LocalPooledDocumentView.d.ts +8 -0
- package/dist-library/types/react/rendering/document/LocalReactiveDocumentCore.d.ts +6 -0
- package/dist-library/types/react/rendering/document/LocalStaticDocumentView.d.ts +18 -0
- package/dist-library/types/react/rendering/document/StaticExternalSlot.d.ts +25 -0
- package/dist-library/types/react/rendering/document/StaticHostData.d.ts +14 -0
- package/dist-library/types/{local → react}/rendering/document/render-nodes.d.ts +8 -8
- package/dist-library/types/react/rendering/document/static-runtime.d.ts +11 -0
- package/dist-library/types/{local → react}/rendering/document/use-author-script.d.ts +2 -2
- package/dist-library/types/{local → react}/rendering/document/validation-state.d.ts +2 -2
- package/dist-library/types/{local → react}/rendering/document/view-render-context.d.ts +40 -8
- package/dist-library/types/{local → react}/rendering/document/view-revision.d.ts +2 -2
- package/dist-library/types/{local → react}/rendering/render-types.d.ts +5 -5
- package/dist-library/types/react/rendering/table/data-table.d.ts +5 -0
- package/dist-library/types/{local → react}/rendering/table/table-numeric-columns.d.ts +3 -3
- package/dist-library/types/react/sdk-core.d.ts +12 -3
- package/dist-library/types/react/sdk.d.ts +2 -1
- package/dist-library/types/react/server.d.ts +3 -10
- package/dist-library/types/react/static-server.d.ts +12 -0
- package/dist-library/types/scan/index.d.ts +15 -0
- package/dist-library/types/sdk/config.d.ts +2 -35
- package/dist-library/types/sdk/default-identity.d.ts +3 -0
- package/dist-library/types/sdk/index.d.ts +1 -1
- package/dist-library/types/sdk/preset.d.ts +9 -0
- package/dist-library/types/sdk/props.d.ts +8 -3
- package/dist-library/types/sdk/registry-core.d.ts +2 -2
- package/dist-library/types/sdk/registry.d.ts +2 -18
- package/dist-library/types/sdk/types.d.ts +2 -2
- package/dist-library/types/sdk/version.d.ts +2 -0
- package/dist-library/types/standalone/session-core.d.ts +1 -1
- package/dist-library/{types-BeNtPqdY.js → types-Bza88SGK.js} +1 -1
- package/dist-library/types-daDo2c_w.js +3 -0
- package/dist-library/use-hydrated-W-laKPhY.js +22975 -0
- package/dist-library/validation-XXlb-spV.js +860 -0
- package/dist-library/version-B0G1699c.js +138 -0
- package/dist-library/visual-frame-y5RFhJ0_.js +19 -0
- package/dist-library/visual-helpers-CRmaqCHX.js +75 -0
- package/dist-library/visuals-CdHezgh5.js +3 -0
- package/dist-library/visuals-CoVSjVD8.js +49159 -0
- package/dist-library/worker-D6WMV8xJ.js +1632 -0
- package/dist-standalone/reactive-md-standalone.css +1 -1
- package/dist-standalone/reactive-md-standalone.js +119 -118
- package/docs/README-ch.md +8 -1
- package/docs/README.md +8 -1
- package/docs/compatibility/api-stability-ch.md +25 -0
- package/docs/compatibility/api-stability-en.md +25 -0
- package/docs/compatibility/compatibility-ch.md +32 -15
- package/docs/compatibility/compatibility-en.md +32 -15
- package/docs/compatibility/compatibility-manifest.schema.json +161 -0
- package/docs/compatibility/deprecation-ch.md +21 -0
- package/docs/compatibility/deprecation-en.md +21 -0
- package/docs/compatibility/source-versioning-ch.md +1 -1
- package/docs/compatibility/source-versioning-en.md +1 -1
- package/docs/compatibility/support-matrix-ch.md +108 -0
- package/docs/compatibility/support-matrix-en.md +108 -0
- package/docs/development/component-development-ch.md +2 -2
- package/docs/development/component-development-en.md +2 -2
- package/docs/development/component-development-reference-ch.md +16 -0
- package/docs/development/component-development-reference-en.md +16 -0
- package/docs/development/component-protocol-ch.md +31 -11
- package/docs/development/component-protocol-en.md +31 -11
- package/docs/integration/author-tools-ch.md +3 -1
- package/docs/integration/author-tools-en.md +3 -1
- package/docs/integration/compiler-ch.md +42 -1
- package/docs/integration/compiler-en.md +42 -1
- package/docs/integration/editor-ch.md +2 -2
- package/docs/integration/editor-en.md +2 -2
- package/docs/integration/extension-sdk-ch.md +6 -2
- package/docs/integration/extension-sdk-en.md +6 -2
- package/docs/integration/local-integration-ch.md +4 -2
- package/docs/integration/local-integration-en.md +4 -2
- package/docs/reference/public-api-ch.md +143 -7
- package/docs/reference/public-api-en.md +143 -7
- package/docs/releases/release-0.9.2-ch.md +33 -0
- package/docs/releases/release-0.9.2-en.md +33 -0
- package/docs/releases/release-0.9.3-ch.md +45 -0
- package/docs/releases/release-0.9.3-en.md +45 -0
- package/examples/integration/README-ch.md +36 -4
- package/examples/integration/README.md +36 -4
- package/examples/integration/chat-session/index.mjs +91 -0
- package/examples/integration/chat-session/package.json +10 -0
- package/examples/integration/static-embed/embed.mjs +44 -0
- package/examples/integration/static-embed/index.html +12 -0
- package/examples/integration/static-embed/main.mjs +24 -0
- package/examples/integration/static-embed/references.mjs +5 -0
- package/examples/integration/static-embed/render.mjs +10 -0
- package/package.json +67 -2
- package/dist-library/LocalDocumentView-sthUP0ct.js +0 -109
- package/dist-library/LocalReactiveDocumentCore-ZjQSGyHE.js +0 -275
- package/dist-library/compiler-eOfcinZs.js +0 -62
- package/dist-library/component-state-BoLCGee4.js +0 -801
- package/dist-library/controls-CcT6n7k_.js +0 -6740
- package/dist-library/mount-preset-KxvtKgJb.js +0 -13
- package/dist-library/options-1aDLK7JY.js +0 -121
- package/dist-library/parser-standard-Yuf3A_VI.js +0 -9630
- package/dist-library/plugin-packs-B1XPWcFs.js +0 -18
- package/dist-library/preset-core-CKc5YXSM.js +0 -1443
- package/dist-library/props-sJ8vk0cr.js +0 -183
- package/dist-library/react-D5iGiUdL.js +0 -7
- package/dist-library/schema-BufhKUSM.js +0 -40
- package/dist-library/types/local/rendering/document/LocalReactiveDocumentCore.d.ts +0 -6
- package/dist-library/types/local/rendering/table/data-table.d.ts +0 -13
- package/dist-library/validation-BEBA_HvS.js +0 -1121
- package/dist-library/visual-frame-CyV1FXzs.js +0 -48
- package/dist-library/visuals-BZbZYA7w.js +0 -72572
- /package/dist-library/types/{local/configuration → contracts}/color-values.d.ts +0 -0
- /package/dist-library/types/{local/html → contracts}/html-names.d.ts +0 -0
- /package/dist-library/types/{local/configuration → contracts}/schema-core.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/code/code-block.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/code/code-languages.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/document/LocalDocumentView.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/document/use-color-scheme.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/image/image-view.d.ts +0 -0
- /package/dist-library/types/{local → react}/rendering/math-view.d.ts +0 -0
|
@@ -1,801 +0,0 @@
|
|
|
1
|
-
// src/runtime-services/network.ts
|
|
2
|
-
var e = 65536, t = Object.freeze({
|
|
3
|
-
code: "unavailable",
|
|
4
|
-
message: "This channel operation is unavailable."
|
|
5
|
-
}), n = Object.freeze({
|
|
6
|
-
code: "cancelled",
|
|
7
|
-
message: "The operation was cancelled."
|
|
8
|
-
}), r = Object.freeze({
|
|
9
|
-
code: "invalid-data",
|
|
10
|
-
message: "The channel data is invalid."
|
|
11
|
-
}), i = Object.freeze({
|
|
12
|
-
code: "transport",
|
|
13
|
-
message: "The channel could not communicate with its endpoint."
|
|
14
|
-
}), a = Object.freeze({
|
|
15
|
-
code: "rejected",
|
|
16
|
-
message: "A channel listener failed."
|
|
17
|
-
}), o = 0;
|
|
18
|
-
function s(e) {
|
|
19
|
-
return {
|
|
20
|
-
ok: !1,
|
|
21
|
-
error: e
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
var c = Object.freeze({
|
|
25
|
-
supports: () => !1,
|
|
26
|
-
submit: async () => s(t),
|
|
27
|
-
subscribe(e, n) {
|
|
28
|
-
let r = !0;
|
|
29
|
-
return queueMicrotask(() => {
|
|
30
|
-
if (r) try {
|
|
31
|
-
n({
|
|
32
|
-
type: "error",
|
|
33
|
-
error: t
|
|
34
|
-
});
|
|
35
|
-
} catch {}
|
|
36
|
-
}), () => {
|
|
37
|
-
r = !1;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
function l(t = e) {
|
|
42
|
-
if (!Number.isSafeInteger(t) || t < 1) throw TypeError("A channel byte budget must be a positive integer.");
|
|
43
|
-
return t;
|
|
44
|
-
}
|
|
45
|
-
function u(e, t) {
|
|
46
|
-
let n = t;
|
|
47
|
-
function r(e) {
|
|
48
|
-
if (n -= e, n < 0) throw RangeError();
|
|
49
|
-
}
|
|
50
|
-
function i(e, t) {
|
|
51
|
-
if (r(1), t > 64) throw RangeError();
|
|
52
|
-
if (e === null || typeof e == "boolean") return e;
|
|
53
|
-
if (typeof e == "string") return r(e.length), e;
|
|
54
|
-
if (typeof e == "number" && Number.isFinite(e)) return e;
|
|
55
|
-
if (Array.isArray(e)) {
|
|
56
|
-
if (e.length > n) throw RangeError();
|
|
57
|
-
let r = [];
|
|
58
|
-
for (let n = 0; n < e.length; n += 1) {
|
|
59
|
-
let a = Object.getOwnPropertyDescriptor(e, String(n));
|
|
60
|
-
if (!a || !("value" in a)) throw TypeError();
|
|
61
|
-
r.push(i(a.value, t + 1));
|
|
62
|
-
}
|
|
63
|
-
return Object.freeze(r);
|
|
64
|
-
}
|
|
65
|
-
if (typeof e != "object" || !e) throw TypeError();
|
|
66
|
-
let a = Object.getPrototypeOf(e);
|
|
67
|
-
if (a !== Object.prototype && a !== null) throw TypeError();
|
|
68
|
-
let o = Object.create(null);
|
|
69
|
-
for (let n of Object.keys(e)) {
|
|
70
|
-
r(n.length);
|
|
71
|
-
let a = Object.getOwnPropertyDescriptor(e, n);
|
|
72
|
-
if (!a || !("value" in a)) throw TypeError();
|
|
73
|
-
o[n] = i(a.value, t + 1);
|
|
74
|
-
}
|
|
75
|
-
return Object.freeze(o);
|
|
76
|
-
}
|
|
77
|
-
let a = i(e, 0);
|
|
78
|
-
if (new TextEncoder().encode(JSON.stringify(a)).length > t) throw RangeError();
|
|
79
|
-
return a;
|
|
80
|
-
}
|
|
81
|
-
function d(t) {
|
|
82
|
-
if (!t.ok) return t;
|
|
83
|
-
try {
|
|
84
|
-
let n = Object.getOwnPropertyDescriptor(t, "data");
|
|
85
|
-
if (n && "value" in n && n.value !== void 0) return {
|
|
86
|
-
ok: !0,
|
|
87
|
-
data: u(n.value, e)
|
|
88
|
-
};
|
|
89
|
-
} catch {}
|
|
90
|
-
return { ok: !0 };
|
|
91
|
-
}
|
|
92
|
-
function f(e, t) {
|
|
93
|
-
let n = t(e);
|
|
94
|
-
if (n !== !0) return typeof n == "string" && n.trim() ? Object.freeze({
|
|
95
|
-
code: "invalid-data",
|
|
96
|
-
message: n
|
|
97
|
-
}) : r;
|
|
98
|
-
}
|
|
99
|
-
function p(e) {
|
|
100
|
-
if (!e) return {
|
|
101
|
-
network: c,
|
|
102
|
-
bindExternalValues: () => void 0,
|
|
103
|
-
dispose() {}
|
|
104
|
-
};
|
|
105
|
-
let p = /* @__PURE__ */ new Map(), m = /* @__PURE__ */ new Map();
|
|
106
|
-
for (let [t, n] of Object.entries(e.channels)) {
|
|
107
|
-
let { submit: e, subscribe: r, mapExternalValues: i } = n;
|
|
108
|
-
if (e && (typeof e.validate != "function" || typeof e.send != "function")) throw TypeError("A submit channel requires a validator and a send function.");
|
|
109
|
-
if (r && (typeof r.validate != "function" || typeof r.open != "function")) throw TypeError("A subscription channel requires a validator and an open function.");
|
|
110
|
-
if (i !== void 0) {
|
|
111
|
-
if (!r || typeof i != "function") throw TypeError("Mapping external values requires a subscription and a mapper function.");
|
|
112
|
-
m.set(t, i.bind(n));
|
|
113
|
-
}
|
|
114
|
-
p.set(t, {
|
|
115
|
-
...e && { submit: {
|
|
116
|
-
maxBytes: l(e.maxBytes),
|
|
117
|
-
validate: e.validate.bind(e),
|
|
118
|
-
send: e.send.bind(e)
|
|
119
|
-
} },
|
|
120
|
-
...r && { subscribe: {
|
|
121
|
-
maxBytes: l(r.maxBytes),
|
|
122
|
-
validate: r.validate.bind(r),
|
|
123
|
-
open: r.open.bind(r)
|
|
124
|
-
} }
|
|
125
|
-
});
|
|
126
|
-
}
|
|
127
|
-
let h = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Set(), _ = /* @__PURE__ */ new Map(), v = !1;
|
|
128
|
-
function y(e) {
|
|
129
|
-
let t = h.get(e);
|
|
130
|
-
return t || h.set(e, t = new AbortController()), t.signal;
|
|
131
|
-
}
|
|
132
|
-
function b(t, n) {
|
|
133
|
-
try {
|
|
134
|
-
t.notify(Object.freeze(n));
|
|
135
|
-
} catch {
|
|
136
|
-
try {
|
|
137
|
-
e?.onListenerError?.(a);
|
|
138
|
-
} catch {}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
function x(e) {
|
|
142
|
-
try {
|
|
143
|
-
e?.();
|
|
144
|
-
} catch {}
|
|
145
|
-
}
|
|
146
|
-
function S(e, t) {
|
|
147
|
-
_.delete(e), t.listeners.clear(), t.events.length = 0, t.controller.abort(), x(t.release);
|
|
148
|
-
}
|
|
149
|
-
function C(e, t) {
|
|
150
|
-
if (!(v || e.controller.signal.aborted) && (e.events.push({
|
|
151
|
-
event: t,
|
|
152
|
-
recipients: [...e.listeners],
|
|
153
|
-
status: e.status
|
|
154
|
-
}), !e.dispatching)) {
|
|
155
|
-
e.dispatching = !0;
|
|
156
|
-
try {
|
|
157
|
-
for (let t = 0; t < e.events.length; t += 1) {
|
|
158
|
-
let { event: n, recipients: r, status: i } = e.events[t];
|
|
159
|
-
for (let t of r) e.listeners.has(t) && (t.initial || (t.initial = !0, n.type !== "status" && b(t, {
|
|
160
|
-
type: "status",
|
|
161
|
-
state: i
|
|
162
|
-
})), e.listeners.has(t) && b(t, n));
|
|
163
|
-
}
|
|
164
|
-
} finally {
|
|
165
|
-
e.events.length = 0, e.dispatching = !1;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
function w(e, t, n) {
|
|
170
|
-
let a = t.controller.signal;
|
|
171
|
-
if (a.aborted) return;
|
|
172
|
-
let o = (e) => {
|
|
173
|
-
a.aborted || t.status === e || (t.status = e, C(t, {
|
|
174
|
-
type: "status",
|
|
175
|
-
state: e
|
|
176
|
-
}));
|
|
177
|
-
}, s = (e) => {
|
|
178
|
-
C(t, {
|
|
179
|
-
type: "error",
|
|
180
|
-
error: Object.freeze({ ...e })
|
|
181
|
-
});
|
|
182
|
-
}, c = (e) => {
|
|
183
|
-
if (a.aborted) return;
|
|
184
|
-
let i, o;
|
|
185
|
-
try {
|
|
186
|
-
i = u(e, n.maxBytes ?? 65536), o = f(i, n.validate);
|
|
187
|
-
} catch {
|
|
188
|
-
s(r);
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
o ? s(o) : C(t, {
|
|
192
|
-
type: "data",
|
|
193
|
-
value: i
|
|
194
|
-
});
|
|
195
|
-
}, l = () => {
|
|
196
|
-
a.aborted || (s(i), o("closed"));
|
|
197
|
-
}, d = (e) => {
|
|
198
|
-
a.aborted ? x(e) : t.release = e;
|
|
199
|
-
};
|
|
200
|
-
try {
|
|
201
|
-
let t = n.open({
|
|
202
|
-
signal: a,
|
|
203
|
-
sessionSignal: y(e),
|
|
204
|
-
status: o,
|
|
205
|
-
error: s,
|
|
206
|
-
data: c
|
|
207
|
-
});
|
|
208
|
-
typeof t == "function" ? d(t) : Promise.resolve(t).then(d, l);
|
|
209
|
-
} catch {
|
|
210
|
-
l();
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
let T = {
|
|
214
|
-
supports(e, t) {
|
|
215
|
-
return !v && (t === "submit" || t === "subscribe") && p.get(e)?.[t] !== void 0;
|
|
216
|
-
},
|
|
217
|
-
async submit(e, a, c) {
|
|
218
|
-
let l = v ? void 0 : p.get(e)?.submit;
|
|
219
|
-
if (!l) return s(t);
|
|
220
|
-
if (c?.signal?.aborted) return s(n);
|
|
221
|
-
let m;
|
|
222
|
-
try {
|
|
223
|
-
let e = u(a, l.maxBytes ?? 65536);
|
|
224
|
-
if (typeof e != "object" || !e || Array.isArray(e)) return s(r);
|
|
225
|
-
m = e;
|
|
226
|
-
let t = f(m, l.validate);
|
|
227
|
-
if (t) return s(t);
|
|
228
|
-
} catch {
|
|
229
|
-
return s(r);
|
|
230
|
-
}
|
|
231
|
-
let h = c?.signal;
|
|
232
|
-
if (v || h?.aborted) return s(n);
|
|
233
|
-
let _ = new AbortController();
|
|
234
|
-
return new Promise((t) => {
|
|
235
|
-
let r = !1, a = (e) => {
|
|
236
|
-
r || (r = !0, h?.removeEventListener("abort", u), g.delete(u), t(d(e)));
|
|
237
|
-
}, u = () => {
|
|
238
|
-
a(s(n)), _.abort();
|
|
239
|
-
};
|
|
240
|
-
g.add(u), h?.addEventListener("abort", u, { once: !0 });
|
|
241
|
-
try {
|
|
242
|
-
let t = l.send(m, {
|
|
243
|
-
signal: _.signal,
|
|
244
|
-
sessionSignal: y(e),
|
|
245
|
-
requestId: String(++o),
|
|
246
|
-
...c?.idempotencyKey === void 0 ? {} : { idempotencyKey: c.idempotencyKey }
|
|
247
|
-
});
|
|
248
|
-
Promise.resolve(t).then(a, () => a(s(i)));
|
|
249
|
-
} catch {
|
|
250
|
-
a(s(i));
|
|
251
|
-
}
|
|
252
|
-
});
|
|
253
|
-
},
|
|
254
|
-
subscribe(e, n) {
|
|
255
|
-
if (v) return c.subscribe(e, n);
|
|
256
|
-
let r = {
|
|
257
|
-
notify: n,
|
|
258
|
-
initial: !1
|
|
259
|
-
}, i = p.get(e)?.subscribe;
|
|
260
|
-
if (!i) {
|
|
261
|
-
let e = !0;
|
|
262
|
-
return queueMicrotask(() => {
|
|
263
|
-
e && !v && b(r, {
|
|
264
|
-
type: "error",
|
|
265
|
-
error: t
|
|
266
|
-
});
|
|
267
|
-
}), () => {
|
|
268
|
-
e = !1;
|
|
269
|
-
};
|
|
270
|
-
}
|
|
271
|
-
let a = _.get(e), o = a ?? {
|
|
272
|
-
controller: new AbortController(),
|
|
273
|
-
listeners: /* @__PURE__ */ new Set(),
|
|
274
|
-
events: [],
|
|
275
|
-
status: "connecting",
|
|
276
|
-
dispatching: !1
|
|
277
|
-
};
|
|
278
|
-
return o.listeners.add(r), a || _.set(e, o), queueMicrotask(() => {
|
|
279
|
-
o.listeners.has(r) && !r.initial && (r.initial = !0, b(r, {
|
|
280
|
-
type: "status",
|
|
281
|
-
state: o.status
|
|
282
|
-
})), a || w(e, o, i);
|
|
283
|
-
}), () => {
|
|
284
|
-
o.listeners.delete(r) && o.listeners.size === 0 && S(e, o);
|
|
285
|
-
};
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
return {
|
|
289
|
-
network: Object.freeze(T),
|
|
290
|
-
bindExternalValues(e) {
|
|
291
|
-
if (v || m.size === 0) return;
|
|
292
|
-
let t = [...m].map(([t, n]) => T.subscribe(t, (t) => {
|
|
293
|
-
if (t.type !== "data") return;
|
|
294
|
-
let r = n(t.value);
|
|
295
|
-
r !== void 0 && e(r);
|
|
296
|
-
}));
|
|
297
|
-
return () => {
|
|
298
|
-
for (let e of t) e();
|
|
299
|
-
};
|
|
300
|
-
},
|
|
301
|
-
dispose() {
|
|
302
|
-
if (!v) {
|
|
303
|
-
v = !0;
|
|
304
|
-
for (let e of g) e();
|
|
305
|
-
for (let [e, t] of _) S(e, t);
|
|
306
|
-
for (let e of h.values()) e.abort();
|
|
307
|
-
h.clear(), p.clear(), m.clear();
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
// src/runtime-services/identity.ts
|
|
313
|
-
var m = 2166136261, h = 16777619, g = new TextEncoder(), _ = /^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/, v = /^[^\u0000-\u001f\u007f]{1,256}$/;
|
|
314
|
-
function y(e) {
|
|
315
|
-
let t = g.encode(e), n = m;
|
|
316
|
-
for (let e = 0; e < t.length; e += 1) n ^= t[e], n = Math.imul(n, h) >>> 0;
|
|
317
|
-
return n >>> 0;
|
|
318
|
-
}
|
|
319
|
-
function b(e) {
|
|
320
|
-
if (typeof e != "string") throw TypeError("localSourceDigest requires a source string.");
|
|
321
|
-
return `fnv1a32:${y(e).toString(16).padStart(8, "0")}`;
|
|
322
|
-
}
|
|
323
|
-
function x(e) {
|
|
324
|
-
if (typeof e != "string") return;
|
|
325
|
-
let t = e.trim();
|
|
326
|
-
return v.test(t) ? t : void 0;
|
|
327
|
-
}
|
|
328
|
-
function S(e) {
|
|
329
|
-
if (typeof e != "string") return;
|
|
330
|
-
let t = e.trim();
|
|
331
|
-
return _.test(t) ? t : void 0;
|
|
332
|
-
}
|
|
333
|
-
function C(e) {
|
|
334
|
-
return x(e.documentId) ?? e.sourceDigest;
|
|
335
|
-
}
|
|
336
|
-
function w(e) {
|
|
337
|
-
let t = C(e), n = S(e.stateKey), r = n === void 0 ? `node:${e.nodeId}` : `state:${n}`, i = encodeURIComponent(t);
|
|
338
|
-
return `doc:${i.length <= 256 ? i : `h${y(t).toString(16).padStart(8, "0")}`}:${r}`;
|
|
339
|
-
}
|
|
340
|
-
function T(e, t) {
|
|
341
|
-
return y(`${e >>> 0}:${t}`);
|
|
342
|
-
}
|
|
343
|
-
function ee(e) {
|
|
344
|
-
if (typeof e.explicitSeed == "number" && Number.isFinite(e.explicitSeed)) return Math.trunc(e.explicitSeed) >>> 0;
|
|
345
|
-
let t = S(e.stateKey), n = t === void 0 ? `node:${e.nodeId}` : `state:${t}`;
|
|
346
|
-
return T(e.documentSeed, `${e.componentId}|${n}`);
|
|
347
|
-
}
|
|
348
|
-
function E(e) {
|
|
349
|
-
return Number.isFinite(e) ? Math.trunc(e) >>> 0 : 0;
|
|
350
|
-
}
|
|
351
|
-
// src/runtime-services/random.ts
|
|
352
|
-
var D = "mulberry32", te = 1;
|
|
353
|
-
function O(e) {
|
|
354
|
-
return Object.freeze({
|
|
355
|
-
algorithm: D,
|
|
356
|
-
version: 1,
|
|
357
|
-
state: E(e)
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
function k(e) {
|
|
361
|
-
if (typeof e != "object" || !e || Array.isArray(e)) return null;
|
|
362
|
-
let t = e;
|
|
363
|
-
if (t.algorithm !== "mulberry32" || t.version !== 1 || typeof t.state != "number" || !Number.isFinite(t.state)) return null;
|
|
364
|
-
let n = E(t.state);
|
|
365
|
-
return n === t.state ? Object.freeze({
|
|
366
|
-
algorithm: D,
|
|
367
|
-
version: 1,
|
|
368
|
-
state: n
|
|
369
|
-
}) : null;
|
|
370
|
-
}
|
|
371
|
-
function A(e) {
|
|
372
|
-
let t = E(e.state + 1831565813), n = Math.imul(t ^ t >>> 15, t | 1);
|
|
373
|
-
return n ^= n + Math.imul(n ^ n >>> 7, n | 61), {
|
|
374
|
-
value: ((n ^ n >>> 14) >>> 0) / 4294967296,
|
|
375
|
-
state: Object.freeze({
|
|
376
|
-
algorithm: D,
|
|
377
|
-
version: 1,
|
|
378
|
-
state: t
|
|
379
|
-
})
|
|
380
|
-
};
|
|
381
|
-
}
|
|
382
|
-
function j(e, t, n) {
|
|
383
|
-
let r = A(e);
|
|
384
|
-
if (!Number.isFinite(t) || !Number.isFinite(n)) return {
|
|
385
|
-
value: 0,
|
|
386
|
-
state: r.state
|
|
387
|
-
};
|
|
388
|
-
let i = Math.ceil(Math.min(t, n)), a = Math.floor(Math.max(t, n));
|
|
389
|
-
return a < i ? {
|
|
390
|
-
value: i,
|
|
391
|
-
state: r.state
|
|
392
|
-
} : {
|
|
393
|
-
value: i + Math.floor(r.value * (a - i + 1)),
|
|
394
|
-
state: r.state
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
|
-
function ne(e, t) {
|
|
398
|
-
let n = t.slice(), r = e;
|
|
399
|
-
for (let e = n.length - 1; e > 0; --e) {
|
|
400
|
-
let t = j(r, 0, e);
|
|
401
|
-
r = t.state;
|
|
402
|
-
let i = n[e];
|
|
403
|
-
n[e] = n[t.value], n[t.value] = i;
|
|
404
|
-
}
|
|
405
|
-
return {
|
|
406
|
-
items: n,
|
|
407
|
-
state: r
|
|
408
|
-
};
|
|
409
|
-
}
|
|
410
|
-
function M(e, t) {
|
|
411
|
-
return O(T(e, t));
|
|
412
|
-
}
|
|
413
|
-
function re(e, t = .5) {
|
|
414
|
-
let n = A(e);
|
|
415
|
-
return {
|
|
416
|
-
value: n.value < t,
|
|
417
|
-
state: n.state
|
|
418
|
-
};
|
|
419
|
-
}
|
|
420
|
-
// src/runtime-services/component-state.ts
|
|
421
|
-
var N = "reactive-md-component-state/v1", P = "reactive-md-component-state-document/v1", F = 16384, I = 262144, ie = 16, L = 1e4, R = 1e5, z = 1048576, B = 128, V = 64, H = 512, U = 1e6, W = 128, ae = /[\u0000-\u001f\u007f-\u009f]/, G = new TextEncoder();
|
|
422
|
-
function K(e, t, n = "error") {
|
|
423
|
-
return {
|
|
424
|
-
code: e,
|
|
425
|
-
message: t,
|
|
426
|
-
severity: n,
|
|
427
|
-
range: {
|
|
428
|
-
start: 0,
|
|
429
|
-
end: 0
|
|
430
|
-
},
|
|
431
|
-
line: 1,
|
|
432
|
-
column: 1
|
|
433
|
-
};
|
|
434
|
-
}
|
|
435
|
-
function q(e) {
|
|
436
|
-
if (typeof e != "object" || !e || Array.isArray(e)) return !1;
|
|
437
|
-
let t = Object.getPrototypeOf(e);
|
|
438
|
-
return t === Object.prototype || t === null;
|
|
439
|
-
}
|
|
440
|
-
function J(e) {
|
|
441
|
-
for (let t = 0; t < e.length; t += 1) {
|
|
442
|
-
let n = e.charCodeAt(t);
|
|
443
|
-
if (n >= 55296 && n <= 56319) {
|
|
444
|
-
let n = e.charCodeAt(t + 1);
|
|
445
|
-
if (n >= 56320 && n <= 57343) {
|
|
446
|
-
t += 1;
|
|
447
|
-
continue;
|
|
448
|
-
}
|
|
449
|
-
return !1;
|
|
450
|
-
}
|
|
451
|
-
if (n >= 56320 && n <= 57343) return !1;
|
|
452
|
-
}
|
|
453
|
-
return !0;
|
|
454
|
-
}
|
|
455
|
-
function Y(e) {
|
|
456
|
-
return typeof e == "string" && e.length > 0 && e.length <= W && !ae.test(e) && J(e);
|
|
457
|
-
}
|
|
458
|
-
function oe(e, t, n) {
|
|
459
|
-
return t === void 0 || e === t || n.includes(e);
|
|
460
|
-
}
|
|
461
|
-
function X(e, t) {
|
|
462
|
-
if (e === null) return null;
|
|
463
|
-
if (typeof e == "boolean") return e;
|
|
464
|
-
if (typeof e == "number") {
|
|
465
|
-
if (!Number.isFinite(e)) throw TypeError("numbers must be finite");
|
|
466
|
-
return e;
|
|
467
|
-
}
|
|
468
|
-
if (typeof e == "string") {
|
|
469
|
-
if (e.length > 1e5) throw RangeError(`strings exceed ${R} characters`);
|
|
470
|
-
if (!J(e)) throw TypeError("strings must be well-formed Unicode");
|
|
471
|
-
return e;
|
|
472
|
-
}
|
|
473
|
-
if (t >= 16) throw RangeError("nesting exceeds 16 levels");
|
|
474
|
-
if (Array.isArray(e)) {
|
|
475
|
-
if (e.length > 1e4) throw RangeError(`arrays exceed ${L} items`);
|
|
476
|
-
if (Object.getOwnPropertySymbols(e).length > 0) throw TypeError("arrays cannot use symbol keys");
|
|
477
|
-
return e.map((e) => X(e, t + 1));
|
|
478
|
-
}
|
|
479
|
-
if (q(e)) {
|
|
480
|
-
if (Object.getOwnPropertySymbols(e).length > 0) throw TypeError("objects cannot use symbol keys");
|
|
481
|
-
let n = Object.keys(e);
|
|
482
|
-
if (n.length > 1e4) throw RangeError(`objects exceed ${L} keys`);
|
|
483
|
-
let r = {};
|
|
484
|
-
for (let i of n) {
|
|
485
|
-
if (i === "__proto__") throw TypeError("the key \"__proto__\" is not allowed");
|
|
486
|
-
if (i.length > 1e5) throw RangeError(`keys exceed ${R} characters`);
|
|
487
|
-
if (!J(i)) throw TypeError("keys must be well-formed Unicode");
|
|
488
|
-
r[i] = X(e[i], t + 1);
|
|
489
|
-
}
|
|
490
|
-
return r;
|
|
491
|
-
}
|
|
492
|
-
throw TypeError("values must be JSON-safe primitives, arrays or plain objects");
|
|
493
|
-
}
|
|
494
|
-
function se(e) {
|
|
495
|
-
return X(e, 0);
|
|
496
|
-
}
|
|
497
|
-
function Z(e) {
|
|
498
|
-
return Object.freeze({
|
|
499
|
-
...e,
|
|
500
|
-
data: X(e.data, 0),
|
|
501
|
-
...e.random === void 0 ? {} : { random: k(e.random) ?? e.random }
|
|
502
|
-
});
|
|
503
|
-
}
|
|
504
|
-
function Q(e) {
|
|
505
|
-
if (!q(e)) return {
|
|
506
|
-
ok: !1,
|
|
507
|
-
diagnostics: [K("local.runtime.state.shape", "A component state record must be a plain object.")]
|
|
508
|
-
};
|
|
509
|
-
let t = /* @__PURE__ */ new Set([
|
|
510
|
-
"format",
|
|
511
|
-
"component",
|
|
512
|
-
"componentVersion",
|
|
513
|
-
"stateVersion",
|
|
514
|
-
"key",
|
|
515
|
-
"documentId",
|
|
516
|
-
"data",
|
|
517
|
-
"random"
|
|
518
|
-
]);
|
|
519
|
-
for (let n of Object.keys(e)) if (!t.has(n)) return {
|
|
520
|
-
ok: !1,
|
|
521
|
-
diagnostics: [K("local.runtime.state.key", `Unknown component state key "${n}".`)]
|
|
522
|
-
};
|
|
523
|
-
if (e.format !== "reactive-md-component-state/v1") return {
|
|
524
|
-
ok: !1,
|
|
525
|
-
diagnostics: [K("local.runtime.state.format", `Unsupported component state format; expected "${N}".`)]
|
|
526
|
-
};
|
|
527
|
-
let n = e.component;
|
|
528
|
-
if (typeof n != "string" || n.trim() === "" || n.length > B) return {
|
|
529
|
-
ok: !1,
|
|
530
|
-
diagnostics: [K("local.runtime.state.component", "Component name must be a non-empty string.")]
|
|
531
|
-
};
|
|
532
|
-
let r = e.componentVersion;
|
|
533
|
-
if (typeof r != "string" || r.trim() === "" || r.length > V) return {
|
|
534
|
-
ok: !1,
|
|
535
|
-
diagnostics: [K("local.runtime.state.component-version", "Component version must be a non-empty string.")]
|
|
536
|
-
};
|
|
537
|
-
let i = e.stateVersion;
|
|
538
|
-
if (typeof i != "number" || !Number.isInteger(i) || i < 0 || i > U) return {
|
|
539
|
-
ok: !1,
|
|
540
|
-
diagnostics: [K("local.runtime.state.version", "State version must be a non-negative integer.")]
|
|
541
|
-
};
|
|
542
|
-
let a = e.key;
|
|
543
|
-
if (typeof a != "string" || a.trim() === "" || a.length > H) return {
|
|
544
|
-
ok: !1,
|
|
545
|
-
diagnostics: [K("local.runtime.state.key-name", "State key must be a non-empty string.")]
|
|
546
|
-
};
|
|
547
|
-
let o = e.documentId;
|
|
548
|
-
if (o !== void 0 && (typeof o != "string" || o.trim() === "" || o.length > 256)) return {
|
|
549
|
-
ok: !1,
|
|
550
|
-
diagnostics: [K("local.runtime.state.document", "State documentId must be a non-empty string.")]
|
|
551
|
-
};
|
|
552
|
-
let s;
|
|
553
|
-
try {
|
|
554
|
-
s = se(e.data);
|
|
555
|
-
} catch (e) {
|
|
556
|
-
return {
|
|
557
|
-
ok: !1,
|
|
558
|
-
diagnostics: [K("local.runtime.state.data", `Invalid component state data: ${e instanceof Error ? e.message : String(e)}.`)]
|
|
559
|
-
};
|
|
560
|
-
}
|
|
561
|
-
let c;
|
|
562
|
-
if (e.random !== void 0 && (c = k(e.random) ?? void 0, c === void 0)) return {
|
|
563
|
-
ok: !1,
|
|
564
|
-
diagnostics: [K("local.runtime.state.random", "Invalid random state.")]
|
|
565
|
-
};
|
|
566
|
-
let l = {
|
|
567
|
-
format: N,
|
|
568
|
-
component: n,
|
|
569
|
-
componentVersion: r,
|
|
570
|
-
stateVersion: i,
|
|
571
|
-
key: a,
|
|
572
|
-
...o === void 0 ? {} : { documentId: o },
|
|
573
|
-
data: s,
|
|
574
|
-
...c === void 0 ? {} : { random: c }
|
|
575
|
-
};
|
|
576
|
-
return G.encode(JSON.stringify(l)).length > 16384 ? {
|
|
577
|
-
ok: !1,
|
|
578
|
-
diagnostics: [K("local.runtime.state.size", `Component state exceeds the ${F}-byte limit.`)]
|
|
579
|
-
} : {
|
|
580
|
-
ok: !0,
|
|
581
|
-
record: Object.freeze(l)
|
|
582
|
-
};
|
|
583
|
-
}
|
|
584
|
-
function $(e) {
|
|
585
|
-
let t = e;
|
|
586
|
-
if (typeof e == "string") {
|
|
587
|
-
if (e.length > 1048576) return {
|
|
588
|
-
ok: !1,
|
|
589
|
-
diagnostics: [K("local.runtime.state.size", "The component state payload is too large.")]
|
|
590
|
-
};
|
|
591
|
-
try {
|
|
592
|
-
t = JSON.parse(e);
|
|
593
|
-
} catch {
|
|
594
|
-
return {
|
|
595
|
-
ok: !1,
|
|
596
|
-
diagnostics: [K("local.runtime.state.json", "The component state payload is not valid JSON.")]
|
|
597
|
-
};
|
|
598
|
-
}
|
|
599
|
-
}
|
|
600
|
-
if (!q(t)) return {
|
|
601
|
-
ok: !1,
|
|
602
|
-
diagnostics: [K("local.runtime.state.shape", "The component state document must be a plain object.")]
|
|
603
|
-
};
|
|
604
|
-
if (t.format !== "reactive-md-component-state-document/v1") return {
|
|
605
|
-
ok: !1,
|
|
606
|
-
diagnostics: [K("local.runtime.state.document-format", `Unsupported component state document format; expected "${P}".`)]
|
|
607
|
-
};
|
|
608
|
-
let n = t.configKey;
|
|
609
|
-
if (n !== void 0 && !Y(n)) return {
|
|
610
|
-
ok: !1,
|
|
611
|
-
diagnostics: [K("local.runtime.state.config-key", "The component state configKey must be a non-empty bounded string.")]
|
|
612
|
-
};
|
|
613
|
-
if (!q(t.records)) return {
|
|
614
|
-
ok: !1,
|
|
615
|
-
diagnostics: [K("local.runtime.state.records", "Component state records must be a plain object.")]
|
|
616
|
-
};
|
|
617
|
-
let r = {}, i = [], a = [], o = 0;
|
|
618
|
-
for (let e of Object.keys(t.records)) {
|
|
619
|
-
let n = Q(t.records[e]);
|
|
620
|
-
n.ok ? n.record.key === e ? (o += G.encode(JSON.stringify(n.record)).length, o > 262144 ? (a.push(e), i.push(K("local.runtime.state.total-size", `Component state exceeds the ${I}-byte document limit.`))) : r[e] = n.record) : (a.push(e), i.push(K("local.runtime.state.key-mismatch", `Component state record "${e}" declares a different key "${n.record.key}".`))) : (a.push(e), i.push(...n.diagnostics));
|
|
621
|
-
}
|
|
622
|
-
return {
|
|
623
|
-
ok: !0,
|
|
624
|
-
...n === void 0 ? {} : { configKey: n },
|
|
625
|
-
records: r,
|
|
626
|
-
diagnostics: i,
|
|
627
|
-
skipped: a
|
|
628
|
-
};
|
|
629
|
-
}
|
|
630
|
-
function ce(e) {
|
|
631
|
-
let t = $(e);
|
|
632
|
-
if (!t.ok) return t;
|
|
633
|
-
let n = {};
|
|
634
|
-
for (let [e, r] of Object.entries(t.records)) n[e] = r;
|
|
635
|
-
return {
|
|
636
|
-
ok: !0,
|
|
637
|
-
document: Object.freeze({
|
|
638
|
-
format: P,
|
|
639
|
-
...t.configKey === void 0 ? {} : { configKey: t.configKey },
|
|
640
|
-
records: Object.freeze(n)
|
|
641
|
-
}),
|
|
642
|
-
records: Object.freeze(n),
|
|
643
|
-
diagnostics: t.diagnostics,
|
|
644
|
-
skipped: t.skipped
|
|
645
|
-
};
|
|
646
|
-
}
|
|
647
|
-
function le(e) {
|
|
648
|
-
let t = C(e), n = e.sourceDigest, r = e.knownKeys, i = e.configKey;
|
|
649
|
-
if (i !== void 0 && !Y(i)) throw TypeError("configKey must be a non-empty bounded string.");
|
|
650
|
-
let a = Object.freeze((e.legacyConfigKeys ?? []).filter(Y)), o = e.writeDelayMs ?? 0;
|
|
651
|
-
if (typeof o != "number" || !Number.isFinite(o) || o < 0) throw TypeError("writeDelayMs must be a non-negative finite number.");
|
|
652
|
-
let s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new Map(), l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set(), d = [], f = e.storage, p = null, m = null, h = !1, g = () => {
|
|
653
|
-
for (let e of u) e();
|
|
654
|
-
};
|
|
655
|
-
function _() {
|
|
656
|
-
if (f === void 0) return !0;
|
|
657
|
-
try {
|
|
658
|
-
let e = S.snapshot();
|
|
659
|
-
return Object.keys(e.records).length === 0 ? f.remove() : f.write(e), p = null, !0;
|
|
660
|
-
} catch (e) {
|
|
661
|
-
let t = e instanceof Error ? e.message : String(e);
|
|
662
|
-
return t !== p && (p = t, d.push(K("local.runtime.state.storage", `The component state could not be persisted: ${t}`, "warning"))), !1;
|
|
663
|
-
}
|
|
664
|
-
}
|
|
665
|
-
let v = () => {
|
|
666
|
-
m !== null && (clearTimeout(m), m = null);
|
|
667
|
-
};
|
|
668
|
-
function y() {
|
|
669
|
-
h && (v(), _() && (h = !1));
|
|
670
|
-
}
|
|
671
|
-
let b = () => {
|
|
672
|
-
f !== void 0 && (o <= 0 ? _() : (h = !0, m === null && (m = setTimeout(() => {
|
|
673
|
-
m = null, y();
|
|
674
|
-
}, Math.min(o, 2147483647)))));
|
|
675
|
-
}, x = (e) => {
|
|
676
|
-
let t = 0;
|
|
677
|
-
for (let [n, r] of s) n !== e && (t += G.encode(JSON.stringify(r)).length);
|
|
678
|
-
return t;
|
|
679
|
-
}, S = {
|
|
680
|
-
documentId: t,
|
|
681
|
-
sourceDigest: n,
|
|
682
|
-
key(e) {
|
|
683
|
-
return w({
|
|
684
|
-
documentId: t,
|
|
685
|
-
sourceDigest: n,
|
|
686
|
-
nodeId: e.nodeId,
|
|
687
|
-
stateKey: e.stateKey
|
|
688
|
-
});
|
|
689
|
-
},
|
|
690
|
-
handle(e) {
|
|
691
|
-
let n = S.key({
|
|
692
|
-
nodeId: e.nodeId,
|
|
693
|
-
stateKey: e.stateKey
|
|
694
|
-
}), r = c.get(n), i = !1;
|
|
695
|
-
r !== void 0 && r !== e.nodeId ? (i = !0, l.has(n) || (l.add(n), d.push(K("local.runtime.state.duplicate-key", `Component state key "${n}" is used by more than one component instance.`)))) : c.set(n, e.nodeId);
|
|
696
|
-
let a = {
|
|
697
|
-
key: n,
|
|
698
|
-
component: e.component,
|
|
699
|
-
componentVersion: e.componentVersion,
|
|
700
|
-
duplicate: i,
|
|
701
|
-
load() {
|
|
702
|
-
if (i) return null;
|
|
703
|
-
let e = s.get(n);
|
|
704
|
-
return e === void 0 ? null : Z(e);
|
|
705
|
-
},
|
|
706
|
-
save(r, a) {
|
|
707
|
-
if (i) return {
|
|
708
|
-
ok: !1,
|
|
709
|
-
diagnostics: [K("local.runtime.state.duplicate-key", `Component state key "${n}" is used by more than one component instance.`)]
|
|
710
|
-
};
|
|
711
|
-
let o = a?.version ?? e.stateVersion ?? 0, c = Q({
|
|
712
|
-
format: N,
|
|
713
|
-
component: e.component,
|
|
714
|
-
componentVersion: e.componentVersion,
|
|
715
|
-
stateVersion: o,
|
|
716
|
-
key: n,
|
|
717
|
-
documentId: t,
|
|
718
|
-
data: r,
|
|
719
|
-
...a?.random === void 0 ? {} : { random: a.random }
|
|
720
|
-
});
|
|
721
|
-
if (!c.ok) return {
|
|
722
|
-
ok: !1,
|
|
723
|
-
diagnostics: c.diagnostics
|
|
724
|
-
};
|
|
725
|
-
let l = G.encode(JSON.stringify(c.record)).length;
|
|
726
|
-
return x(n) + l > 262144 ? {
|
|
727
|
-
ok: !1,
|
|
728
|
-
diagnostics: [K("local.runtime.state.total-size", `Component state exceeds the ${I}-byte document limit.`)]
|
|
729
|
-
} : (s.set(n, c.record), b(), g(), {
|
|
730
|
-
ok: !0,
|
|
731
|
-
diagnostics: [],
|
|
732
|
-
record: Z(c.record)
|
|
733
|
-
});
|
|
734
|
-
},
|
|
735
|
-
clear() {
|
|
736
|
-
i || s.delete(n) && (b(), g());
|
|
737
|
-
}
|
|
738
|
-
};
|
|
739
|
-
return Object.freeze(a);
|
|
740
|
-
},
|
|
741
|
-
load(e) {
|
|
742
|
-
let t = s.get(e);
|
|
743
|
-
return t === void 0 ? null : Z(t);
|
|
744
|
-
},
|
|
745
|
-
clear(e) {
|
|
746
|
-
s.delete(e) && (b(), g());
|
|
747
|
-
},
|
|
748
|
-
snapshot() {
|
|
749
|
-
let e = {};
|
|
750
|
-
for (let [t, n] of s) e[t] = Z(n);
|
|
751
|
-
return Object.freeze({
|
|
752
|
-
format: P,
|
|
753
|
-
...i === void 0 ? {} : { configKey: i },
|
|
754
|
-
records: Object.freeze(e)
|
|
755
|
-
});
|
|
756
|
-
},
|
|
757
|
-
restore(e) {
|
|
758
|
-
let n = $(e);
|
|
759
|
-
if (!n.ok) return d.push(...n.diagnostics), {
|
|
760
|
-
accepted: [],
|
|
761
|
-
skipped: [],
|
|
762
|
-
diagnostics: n.diagnostics
|
|
763
|
-
};
|
|
764
|
-
if (n.configKey !== void 0 && !oe(n.configKey, i, a)) {
|
|
765
|
-
let e = [.../* @__PURE__ */ new Set([...n.skipped, ...Object.keys(n.records)])];
|
|
766
|
-
return n.diagnostics.push(K("local.runtime.state.config-mismatch", `Saved component state belongs to configuration "${n.configKey}", not "${i}".`, "warning")), d.push(...n.diagnostics), {
|
|
767
|
-
accepted: [],
|
|
768
|
-
skipped: e,
|
|
769
|
-
diagnostics: n.diagnostics
|
|
770
|
-
};
|
|
771
|
-
}
|
|
772
|
-
let o = [], c = typeof r == "function" ? r() : r;
|
|
773
|
-
for (let [e, r] of Object.entries(n.records)) r.documentId !== void 0 && r.documentId !== t ? (n.skipped.push(e), n.diagnostics.push(K("local.runtime.state.document-mismatch", `Saved state key "${e}" belongs to a different document.`))) : c !== void 0 && !c.has(e) ? (n.skipped.push(e), n.diagnostics.push(K("local.runtime.state.unknown-component", `Saved state key "${e}" does not match any component in this document.`))) : (s.set(e, r), o.push(e));
|
|
774
|
-
return n.diagnostics.length && d.push(...n.diagnostics), o.length && g(), {
|
|
775
|
-
accepted: o,
|
|
776
|
-
skipped: n.skipped,
|
|
777
|
-
diagnostics: n.diagnostics
|
|
778
|
-
};
|
|
779
|
-
},
|
|
780
|
-
flush() {
|
|
781
|
-
y();
|
|
782
|
-
},
|
|
783
|
-
diagnostics() {
|
|
784
|
-
return Object.freeze([...d]);
|
|
785
|
-
},
|
|
786
|
-
subscribe(e) {
|
|
787
|
-
return u.add(e), () => {
|
|
788
|
-
u.delete(e);
|
|
789
|
-
};
|
|
790
|
-
}
|
|
791
|
-
}, T = e.initial;
|
|
792
|
-
if (T === void 0 && f !== void 0) try {
|
|
793
|
-
let e = f.read();
|
|
794
|
-
e !== null && (T = e);
|
|
795
|
-
} catch (e) {
|
|
796
|
-
let t = e instanceof Error ? e.message : String(e);
|
|
797
|
-
d.push(K("local.runtime.state.storage", `The component state could not be read: ${t}`, "warning"));
|
|
798
|
-
}
|
|
799
|
-
return T !== void 0 && S.restore(T), Object.freeze(S);
|
|
800
|
-
}
|
|
801
|
-
export { p as A, b as C, C as D, ee as E, E as O, y as S, S as T, re as _, z as a, w as b, I as c, D as d, te as f, k as g, A as h, ie as i, c as j, e as k, le as l, M as m, N as n, L as o, O as p, F as r, R as s, P as t, ce as u, j as v, x as w, T as x, ne as y };
|