@iota-uz/sdk 0.45.0 → 0.47.0
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/README.md +5 -0
- package/dist/client-host/identity.d.ts +4 -4
- package/dist/client-host/identity.js +2 -2
- package/dist/lens/{CascadePanel-bXr7ekeZ.js → CascadePanel-BlYJd18G.js} +1 -1
- package/dist/lens/{ChartDataEquivalent-ZsncHfTF.js → ChartDataEquivalent-B6xSOdzC.js} +1 -1
- package/dist/lens/{ChartPanel-Cku9c87t.js → ChartPanel-BIJjrs5D.js} +159 -159
- package/dist/lens/{CoveragePanel-DE3fi5c7.js → CoveragePanel-CHtXDMtt.js} +1 -1
- package/dist/lens/{GaugePanel-DwR4zylR.js → GaugePanel-By0TOJPa.js} +1 -1
- package/dist/lens/LensDashboard.d.ts +13 -0
- package/dist/lens/LensDashboard.d.ts.map +1 -1
- package/dist/lens/{MapPanel-DJSiLZSz.js → MapPanel-Cw4ELCiM.js} +3 -3
- package/dist/lens/{MetricFlowPanel-Dsp_ntas.js → MetricFlowPanel-Gr5wi3nI.js} +2 -2
- package/dist/lens/{MetricHierarchyPanel-BYcy4FNw.js → MetricHierarchyPanel-VLA_5LXX.js} +2 -2
- package/dist/lens/{MetricRelationshipPanel-Gh5RKIu1.js → MetricRelationshipPanel-DFP566_c.js} +2 -2
- package/dist/lens/{PrintReport-RnKpLle9.js → PrintReport-C0OV1iHP.js} +5 -5
- package/dist/lens/{QualityChip-BxAn3wh6.js → QualityChip-DTi-0jdh.js} +1 -1
- package/dist/lens/SaveInvestigation-CX1Abyl8.js +309 -0
- package/dist/lens/TablePanel-BusKU7cU.js +994 -0
- package/dist/lens/{adapter-CZZIKpwb.js → adapter-CQg4-M7p.js} +7 -7
- package/dist/lens/contract/schemas.d.ts +2 -0
- package/dist/lens/contract/schemas.d.ts.map +1 -1
- package/dist/lens/contract/types.d.ts +14 -0
- package/dist/lens/contract/types.d.ts.map +1 -1
- package/dist/lens/{dashboardEdit-BLzL02OH.js → dashboardEdit-CJgCVfi_.js} +1 -1
- package/dist/lens/explore/DrillOverlay.d.ts +38 -0
- package/dist/lens/explore/DrillOverlay.d.ts.map +1 -1
- package/dist/lens/explore/ExplorePanel.d.ts.map +1 -1
- package/dist/lens/explore/SaveInvestigation.d.ts +21 -0
- package/dist/lens/explore/SaveInvestigation.d.ts.map +1 -0
- package/dist/lens/explore/drillHost.d.ts +25 -0
- package/dist/lens/explore/drillHost.d.ts.map +1 -0
- package/dist/lens/explore/investigation.d.ts +174 -0
- package/dist/lens/explore/investigation.d.ts.map +1 -0
- package/dist/lens/explore/provenanceLabels.d.ts +10 -0
- package/dist/lens/explore/provenanceLabels.d.ts.map +1 -0
- package/dist/lens/formula/FormulaTip.d.ts +5 -0
- package/dist/lens/formula/FormulaTip.d.ts.map +1 -1
- package/dist/lens/formula/FormulaView.d.ts.map +1 -1
- package/dist/lens/formula/PanelFormula.d.ts +2 -0
- package/dist/lens/formula/PanelFormula.d.ts.map +1 -1
- package/dist/lens/formula/element.d.ts.map +1 -1
- package/dist/lens/formula/values.d.ts +10 -1
- package/dist/lens/formula/values.d.ts.map +1 -1
- package/dist/lens/index-DR7Hf8Km.js +19805 -0
- package/dist/lens/{index-Dm3Y4NDq.js → index-DZFw4cqF.js} +1 -1
- package/dist/lens/index.d.ts +7 -1
- package/dist/lens/index.d.ts.map +1 -1
- package/dist/lens/index.js +67 -53
- package/dist/lens/{install-DCaRpfvv.js → install-B2lTK6uo.js} +1 -1
- package/dist/lens/{install-pvJpTP1f.js → install-BXr4Mnc0.js} +1 -1
- package/dist/lens/{install-C48hgC9S.js → install-CicNQ_ks.js} +1 -1
- package/dist/lens/{install-DB0eod1K.js → install-d8A0WPiw.js} +1 -1
- package/dist/lens/{keys-BAkGzg_y.js → keys-C-Akc9lZ.js} +2 -2
- package/dist/lens/panels/ChartPanel.d.ts.map +1 -1
- package/dist/lens/panels/TablePanel.d.ts.map +1 -1
- package/dist/lens/panels/actions.d.ts.map +1 -1
- package/dist/lens/panels/panelFailure.d.ts.map +1 -1
- package/dist/lens/{prefetch-j8VKR0tY.js → prefetch-C9kxuIs8.js} +2 -2
- package/dist/lens/{prefetchPanels-vwQqxrs4.js → prefetchPanels-gbY9RIqL.js} +1 -1
- package/dist/lens/{print-CuBcYmVF.js → print-CllsAP3d.js} +1 -1
- package/dist/lens/reports/ReportCompositionEditor.d.ts +8 -2
- package/dist/lens/reports/ReportCompositionEditor.d.ts.map +1 -1
- package/dist/lens/reports/ReportDefinitionEditor.d.ts +54 -0
- package/dist/lens/reports/ReportDefinitionEditor.d.ts.map +1 -0
- package/dist/lens/reports/ReportPicker.d.ts +6 -0
- package/dist/lens/reports/ReportPicker.d.ts.map +1 -1
- package/dist/lens/reports/dashboardEdit.d.ts +3 -0
- package/dist/lens/reports/dashboardEdit.d.ts.map +1 -1
- package/dist/lens/reports/editing.d.ts +35 -0
- package/dist/lens/reports/editing.d.ts.map +1 -1
- package/dist/lens/reports/picker.d.ts +4 -1
- package/dist/lens/reports/picker.d.ts.map +1 -1
- package/dist/lens/runtime/index.d.ts +0 -1
- package/dist/lens/runtime/index.d.ts.map +1 -1
- package/dist/lens/runtime/messages.d.ts +2 -2
- package/dist/lens/runtime/messages.d.ts.map +1 -1
- package/dist/lens/runtime/provider.d.ts +5 -1
- package/dist/lens/runtime/provider.d.ts.map +1 -1
- package/dist/lens/runtime/returnContext.d.ts +62 -0
- package/dist/lens/runtime/returnContext.d.ts.map +1 -0
- package/dist/lens/runtime/tableSummary.d.ts +9 -0
- package/dist/lens/runtime/tableSummary.d.ts.map +1 -0
- package/dist/lens/{scales-BSDq-uby.js → scales-CO6Q9RtG.js} +1 -1
- package/dist/lens/style.css +1 -1
- package/dist/runtime/README.md +24 -0
- package/dist/runtime/assert.d.ts +51 -0
- package/dist/runtime/assert.js +172 -0
- package/dist/runtime/build/README.txt +1 -0
- package/dist/runtime/build/extract.mjs +342 -0
- package/dist/runtime/build/shared-exports.json +388 -0
- package/dist/runtime/build/test-child.mjs +136 -0
- package/dist/runtime/build/theme/tailwind.config.js +121 -0
- package/dist/runtime/build/theme/theme.css +462 -0
- package/dist/runtime/build/theme/utilities.css +1 -0
- package/dist/runtime/build/vendor/lib/lib.d.ts +22 -0
- package/dist/runtime/build/vendor/lib/lib.decorators.d.ts +384 -0
- package/dist/runtime/build/vendor/lib/lib.decorators.legacy.d.ts +22 -0
- package/dist/runtime/build/vendor/lib/lib.dom.asynciterable.d.ts +41 -0
- package/dist/runtime/build/vendor/lib/lib.dom.d.ts +28983 -0
- package/dist/runtime/build/vendor/lib/lib.dom.iterable.d.ts +491 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.collection.d.ts +147 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.core.d.ts +597 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.d.ts +28 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.generator.d.ts +77 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.iterable.d.ts +590 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.promise.d.ts +81 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.proxy.d.ts +128 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.reflect.d.ts +144 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.symbol.d.ts +46 -0
- package/dist/runtime/build/vendor/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
- package/dist/runtime/build/vendor/lib/lib.es2016.array.include.d.ts +116 -0
- package/dist/runtime/build/vendor/lib/lib.es2016.d.ts +21 -0
- package/dist/runtime/build/vendor/lib/lib.es2016.full.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.es2016.intl.d.ts +31 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.arraybuffer.d.ts +21 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.d.ts +26 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.date.d.ts +31 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.full.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.intl.d.ts +44 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.object.d.ts +49 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.sharedmemory.d.ts +135 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.string.d.ts +45 -0
- package/dist/runtime/build/vendor/lib/lib.es2017.typedarrays.d.ts +53 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.asyncgenerator.d.ts +77 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.asynciterable.d.ts +53 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.intl.d.ts +83 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.promise.d.ts +30 -0
- package/dist/runtime/build/vendor/lib/lib.es2018.regexp.d.ts +37 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.array.d.ts +79 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.intl.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.object.d.ts +33 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.string.d.ts +37 -0
- package/dist/runtime/build/vendor/lib/lib.es2019.symbol.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.bigint.d.ts +731 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.d.ts +27 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.date.d.ts +42 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.intl.d.ts +474 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.number.d.ts +28 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.promise.d.ts +47 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.sharedmemory.d.ts +99 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.string.d.ts +44 -0
- package/dist/runtime/build/vendor/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.intl.d.ts +166 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.promise.d.ts +48 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.string.d.ts +33 -0
- package/dist/runtime/build/vendor/lib/lib.es2021.weakref.d.ts +78 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.array.d.ts +121 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.d.ts +25 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.error.d.ts +75 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.intl.d.ts +121 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.object.d.ts +26 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.regexp.d.ts +39 -0
- package/dist/runtime/build/vendor/lib/lib.es2022.string.d.ts +25 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.array.d.ts +924 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.collection.d.ts +21 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.d.ts +22 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2023.intl.d.ts +56 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.arraybuffer.d.ts +65 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.collection.d.ts +29 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.d.ts +26 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.object.d.ts +29 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.promise.d.ts +35 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.regexp.d.ts +25 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.sharedmemory.d.ts +68 -0
- package/dist/runtime/build/vendor/lib/lib.es2024.string.d.ts +29 -0
- package/dist/runtime/build/vendor/lib/lib.es5.d.ts +4585 -0
- package/dist/runtime/build/vendor/lib/lib.es6.d.ts +23 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.array.d.ts +35 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.collection.d.ts +96 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.d.ts +25 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.decorators.d.ts +28 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.disposable.d.ts +193 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.full.d.ts +24 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.intl.d.ts +21 -0
- package/dist/runtime/build/vendor/lib/lib.esnext.iterator.d.ts +148 -0
- package/dist/runtime/build/vendor/node-types/assert/strict.d.ts +111 -0
- package/dist/runtime/build/vendor/node-types/assert.d.ts +1115 -0
- package/dist/runtime/build/vendor/node-types/async_hooks.d.ts +619 -0
- package/dist/runtime/build/vendor/node-types/buffer.buffer.d.ts +477 -0
- package/dist/runtime/build/vendor/node-types/buffer.d.ts +1941 -0
- package/dist/runtime/build/vendor/node-types/child_process.d.ts +1480 -0
- package/dist/runtime/build/vendor/node-types/cluster.d.ts +578 -0
- package/dist/runtime/build/vendor/node-types/compatibility/iterators.d.ts +21 -0
- package/dist/runtime/build/vendor/node-types/console.d.ts +453 -0
- package/dist/runtime/build/vendor/node-types/constants.d.ts +21 -0
- package/dist/runtime/build/vendor/node-types/crypto.d.ts +5484 -0
- package/dist/runtime/build/vendor/node-types/dgram.d.ts +715 -0
- package/dist/runtime/build/vendor/node-types/diagnostics_channel.d.ts +576 -0
- package/dist/runtime/build/vendor/node-types/dns/promises.d.ts +503 -0
- package/dist/runtime/build/vendor/node-types/dns.d.ts +923 -0
- package/dist/runtime/build/vendor/node-types/domain.d.ts +166 -0
- package/dist/runtime/build/vendor/node-types/events.d.ts +967 -0
- package/dist/runtime/build/vendor/node-types/fs/promises.d.ts +1354 -0
- package/dist/runtime/build/vendor/node-types/fs.d.ts +4777 -0
- package/dist/runtime/build/vendor/node-types/globals.d.ts +170 -0
- package/dist/runtime/build/vendor/node-types/globals.typedarray.d.ts +41 -0
- package/dist/runtime/build/vendor/node-types/http.d.ts +2246 -0
- package/dist/runtime/build/vendor/node-types/http2.d.ts +2882 -0
- package/dist/runtime/build/vendor/node-types/https.d.ts +585 -0
- package/dist/runtime/build/vendor/node-types/index.d.ts +101 -0
- package/dist/runtime/build/vendor/node-types/inspector.d.ts +323 -0
- package/dist/runtime/build/vendor/node-types/inspector.generated.d.ts +4406 -0
- package/dist/runtime/build/vendor/node-types/module.d.ts +844 -0
- package/dist/runtime/build/vendor/node-types/net.d.ts +1197 -0
- package/dist/runtime/build/vendor/node-types/os.d.ts +507 -0
- package/dist/runtime/build/vendor/node-types/package.json +140 -0
- package/dist/runtime/build/vendor/node-types/path.d.ts +200 -0
- package/dist/runtime/build/vendor/node-types/perf_hooks.d.ts +1054 -0
- package/dist/runtime/build/vendor/node-types/process.d.ts +2101 -0
- package/dist/runtime/build/vendor/node-types/punycode.d.ts +117 -0
- package/dist/runtime/build/vendor/node-types/querystring.d.ts +152 -0
- package/dist/runtime/build/vendor/node-types/readline/promises.d.ts +161 -0
- package/dist/runtime/build/vendor/node-types/readline.d.ts +600 -0
- package/dist/runtime/build/vendor/node-types/repl.d.ts +438 -0
- package/dist/runtime/build/vendor/node-types/sea.d.ts +162 -0
- package/dist/runtime/build/vendor/node-types/sqlite.d.ts +1182 -0
- package/dist/runtime/build/vendor/node-types/stream/consumers.d.ts +45 -0
- package/dist/runtime/build/vendor/node-types/stream/promises.d.ts +90 -0
- package/dist/runtime/build/vendor/node-types/stream/web.d.ts +596 -0
- package/dist/runtime/build/vendor/node-types/stream.d.ts +1707 -0
- package/dist/runtime/build/vendor/node-types/string_decoder.d.ts +67 -0
- package/dist/runtime/build/vendor/node-types/test.d.ts +2656 -0
- package/dist/runtime/build/vendor/node-types/timers/promises.d.ts +108 -0
- package/dist/runtime/build/vendor/node-types/timers.d.ts +285 -0
- package/dist/runtime/build/vendor/node-types/tls.d.ts +1314 -0
- package/dist/runtime/build/vendor/node-types/trace_events.d.ts +197 -0
- package/dist/runtime/build/vendor/node-types/ts5.6/buffer.buffer.d.ts +473 -0
- package/dist/runtime/build/vendor/node-types/ts5.6/compatibility/float16array.d.ts +71 -0
- package/dist/runtime/build/vendor/node-types/ts5.6/globals.typedarray.d.ts +36 -0
- package/dist/runtime/build/vendor/node-types/ts5.6/index.d.ts +103 -0
- package/dist/runtime/build/vendor/node-types/ts5.7/compatibility/float16array.d.ts +72 -0
- package/dist/runtime/build/vendor/node-types/ts5.7/index.d.ts +103 -0
- package/dist/runtime/build/vendor/node-types/tty.d.ts +209 -0
- package/dist/runtime/build/vendor/node-types/url.d.ts +1103 -0
- package/dist/runtime/build/vendor/node-types/util.d.ts +2379 -0
- package/dist/runtime/build/vendor/node-types/v8.d.ts +1010 -0
- package/dist/runtime/build/vendor/node-types/vm.d.ts +1160 -0
- package/dist/runtime/build/vendor/node-types/wasi.d.ts +202 -0
- package/dist/runtime/build/vendor/node-types/web-globals/abortcontroller.d.ts +34 -0
- package/dist/runtime/build/vendor/node-types/web-globals/crypto.d.ts +32 -0
- package/dist/runtime/build/vendor/node-types/web-globals/domexception.d.ts +68 -0
- package/dist/runtime/build/vendor/node-types/web-globals/events.d.ts +97 -0
- package/dist/runtime/build/vendor/node-types/web-globals/fetch.d.ts +62 -0
- package/dist/runtime/build/vendor/node-types/web-globals/navigator.d.ts +25 -0
- package/dist/runtime/build/vendor/node-types/web-globals/storage.d.ts +24 -0
- package/dist/runtime/build/vendor/node-types/web-globals/streams.d.ts +22 -0
- package/dist/runtime/build/vendor/node-types/worker_threads.d.ts +894 -0
- package/dist/runtime/build/vendor/node-types/zlib.d.ts +768 -0
- package/dist/runtime/build/vendor/node_modules/csstype/LICENSE +19 -0
- package/dist/runtime/build/vendor/node_modules/csstype/index.d.ts +22569 -0
- package/dist/runtime/build/vendor/node_modules/csstype/index.js.flow +6863 -0
- package/dist/runtime/build/vendor/node_modules/csstype/package.json +70 -0
- package/dist/runtime/build/vendor/node_modules/seroval/LICENSE +7 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/cjs/development/index.cjs +4232 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/cjs/production/index.cjs +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/esm/development/index.mjs +4209 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/esm/production/index.mjs +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/Serializer.d.ts +28 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/base-primitives.d.ts +28 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/compat.d.ts +15 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/constants.d.ts +105 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/constructors.d.ts +50 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/async-parser.d.ts +20 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/deserializer.d.ts +52 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/parser.d.ts +62 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/serializer.d.ts +103 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/context/sync-parser.d.ts +61 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/cross/index.d.ts +24 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/errors.d.ts +47 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/function-string.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/keys.d.ts +4 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/literals.d.ts +10 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/node.d.ts +8 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/opaque-reference.d.ts +9 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/plugin.d.ts +52 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/reference.d.ts +6 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/sequence.d.ts +11 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/special-reference.d.ts +16 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/stream.d.ts +17 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/string.d.ts +4 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/symbols.d.ts +14 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/tree/index.d.ts +21 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/types.d.ts +233 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/error.d.ts +6 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/get-identifier.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/get-object-flag.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/is-valid-identifier.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/promise-to-result.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/typed-array.d.ts +6 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/core/utils/valid-properties.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval/dist/types/index.d.ts +18 -0
- package/dist/runtime/build/vendor/node_modules/seroval/package.json +67 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/Serializer.ts +119 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/base-primitives.ts +537 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/compat.ts +23 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/constants.ts +202 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/constructors.ts +265 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/async-parser.ts +666 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/deserializer.ts +832 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/parser.ts +335 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/serializer.ts +1524 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/context/sync-parser.ts +943 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/cross/index.ts +190 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/errors.ts +196 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/function-string.ts +31 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/keys.ts +17 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/literals.ts +43 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/node.ts +40 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/opaque-reference.ts +9 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/plugin.ts +105 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/reference.ts +66 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/sequence.ts +59 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/special-reference.ts +42 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/stream.ts +71 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/string.ts +86 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/symbols.ts +20 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/tree/index.ts +134 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/types.ts +377 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/error.ts +73 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/get-identifier.ts +18 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/get-object-flag.ts +14 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/is-valid-identifier.ts +12 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/promise-to-result.ts +9 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/typed-array.ts +56 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/core/utils/valid-properties.ts +34 -0
- package/dist/runtime/build/vendor/node_modules/seroval/src/index.ts +36 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/LICENSE +7 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/cjs/development/web.cjs +826 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/cjs/production/web.cjs +1 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/esm/development/web.mjs +803 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/esm/production/web.mjs +1 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/abort-signal.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/blob.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/custom-event.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/dom-exception.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/event.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/file.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/form-data.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/headers.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/image-data.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/index.d.ts +15 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/readable-stream.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/request.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/response.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/url-search-params.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/dist/types/web/url.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/package.json +70 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/abort-signal.ts +131 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/blob.ts +41 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/custom-event.ts +66 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/dom-exception.ts +57 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/event.ts +62 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/file.ts +50 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/form-data.ts +105 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/headers.ts +49 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/image-data.ts +74 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/index.ts +14 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/readable-stream.ts +148 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/request.ts +82 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/response.ts +65 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/url-search-params.ts +40 -0
- package/dist/runtime/build/vendor/node_modules/seroval-plugins/web/url.ts +37 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/dist/server.cjs +824 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/dist/server.js +770 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/dist/solid.cjs +1808 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/dist/solid.js +1753 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/jsx-runtime.d.ts +1 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/package.json +243 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/server.cjs +133 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/server.js +121 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/store.cjs +463 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/dist/store.js +454 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/package.json +46 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/index.d.ts +12 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/modifiers.d.ts +6 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/mutable.d.ts +5 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/server.d.ts +17 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/store/types/store.d.ts +108 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/index.d.ts +23 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/jsx.d.ts +4253 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/array.d.ts +44 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/observable.d.ts +36 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/scheduler.d.ts +10 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/reactive/signal.d.ts +581 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/Suspense.d.ts +26 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/component.d.ts +111 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/flow.d.ts +118 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/hydration.d.ts +24 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/render/index.d.ts +4 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/server/index.d.ts +3 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/server/reactive.d.ts +98 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/types/server/rendering.d.ts +160 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/server.cjs +900 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/server.js +786 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/web.cjs +884 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/dist/web.js +772 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/package.json +46 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/dist/storage.cjs +12 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/dist/storage.js +10 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/package.json +15 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/storage/types/index.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/client.d.ts +93 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/core.d.ts +2 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/index.d.ts +50 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/jsx.d.ts +1 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/server-mock.d.ts +65 -0
- package/dist/runtime/build/vendor/node_modules/solid-js/web/types/server.d.ts +187 -0
- package/dist/runtime/build/worker.mjs +293415 -0
- package/dist/runtime/catalog/sdk-natives.json +655 -0
- package/dist/runtime/cli/iota-ext.mjs +1028 -0
- package/dist/runtime/client-host/entry.d.ts +10 -0
- package/dist/runtime/client-host/entry.js +124 -0
- package/dist/runtime/client-host/hooks.d.ts +43 -0
- package/dist/runtime/client-host/hooks.js +94 -0
- package/dist/runtime/client-host/index.d.ts +9 -0
- package/dist/runtime/client-host/index.js +9 -0
- package/dist/runtime/client-host/islands.d.ts +44 -0
- package/dist/runtime/client-host/islands.js +165 -0
- package/dist/runtime/client-host/kit.d.ts +10 -0
- package/dist/runtime/client-host/kit.js +37 -0
- package/dist/runtime/client-host/page.d.ts +53 -0
- package/dist/runtime/client-host/page.js +217 -0
- package/dist/runtime/client-host/params.d.ts +8 -0
- package/dist/runtime/client-host/params.js +36 -0
- package/dist/runtime/client-host/protocol.d.ts +78 -0
- package/dist/runtime/client-host/protocol.js +26 -0
- package/dist/runtime/client-host/shared.d.ts +12 -0
- package/dist/runtime/client-host/shared.js +49 -0
- package/dist/runtime/client-host/shell.d.ts +88 -0
- package/dist/runtime/client-host/shell.js +195 -0
- package/dist/runtime/client-host/slots.d.ts +54 -0
- package/dist/runtime/client-host/slots.js +90 -0
- package/dist/runtime/client-host/styles.d.ts +7 -0
- package/dist/runtime/client-host/styles.js +61 -0
- package/dist/runtime/client-host/transport.d.ts +45 -0
- package/dist/runtime/client-host/transport.js +115 -0
- package/dist/runtime/client.d.ts +226 -0
- package/dist/runtime/client.js +121 -0
- package/dist/runtime/contracts.d.ts +204 -0
- package/dist/runtime/contracts.js +195 -0
- package/dist/runtime/docs/authoring.md +1609 -0
- package/dist/runtime/docs/example/docs/en/admin/limits.md +10 -0
- package/dist/runtime/docs/example/docs/en/getting-started.md +13 -0
- package/dist/runtime/docs/example/docs/en/points.md +9 -0
- package/dist/runtime/docs/example/docs/ru/getting-started.md +12 -0
- package/dist/runtime/docs/example/package.json +27 -0
- package/dist/runtime/docs/example/src/ClientScreen.tsx +10 -0
- package/dist/runtime/docs/example/src/RedemptionScreen.tsx +7 -0
- package/dist/runtime/docs/example/src/RewardsScreen.module.css +13 -0
- package/dist/runtime/docs/example/src/RewardsScreen.tsx +51 -0
- package/dist/runtime/docs/example/src/client.tsx +40 -0
- package/dist/runtime/docs/example/src/contracts.ts +132 -0
- package/dist/runtime/docs/example/src/css-modules.d.ts +5 -0
- package/dist/runtime/docs/example/src/server.test.ts +156 -0
- package/dist/runtime/docs/example/src/server.ts +188 -0
- package/dist/runtime/docs/example/tsconfig.json +16 -0
- package/dist/runtime/entity.d.ts +237 -0
- package/dist/runtime/entity.js +201 -0
- package/dist/runtime/fakes.d.ts +80 -0
- package/dist/runtime/fakes.js +88 -0
- package/dist/runtime/fixtures.d.ts +34 -0
- package/dist/runtime/fixtures.js +60 -0
- package/dist/runtime/help.d.ts +22 -0
- package/dist/runtime/help.js +51 -0
- package/dist/runtime/host/context.mjs +392 -0
- package/dist/runtime/host/errors.mjs +64 -0
- package/dist/runtime/host/loader.mjs +28 -0
- package/dist/runtime/host/protocol.mjs +4 -0
- package/dist/runtime/host/register.mjs +8 -0
- package/dist/runtime/host/sdk/assert.mjs +153 -0
- package/dist/runtime/host/sdk/client-host/hooks.mjs +86 -0
- package/dist/runtime/host/sdk/client-host/protocol.mjs +30 -0
- package/dist/runtime/host/sdk/client-host/slots.mjs +82 -0
- package/dist/runtime/host/sdk/client-host/styles.mjs +45 -0
- package/dist/runtime/host/sdk/client-host/transport.mjs +102 -0
- package/dist/runtime/host/sdk/client.mjs +115 -0
- package/dist/runtime/host/sdk/contracts.mjs +185 -0
- package/dist/runtime/host/sdk/entity.mjs +183 -0
- package/dist/runtime/host/sdk/fakes.mjs +88 -0
- package/dist/runtime/host/sdk/fixtures.mjs +56 -0
- package/dist/runtime/host/sdk/help.mjs +37 -0
- package/dist/runtime/host/sdk/index.mjs +83 -0
- package/dist/runtime/host/sdk/kit.mjs +11 -0
- package/dist/runtime/host/sdk/manifest.mjs +276 -0
- package/dist/runtime/host/sdk/model.mjs +4 -0
- package/dist/runtime/host/sdk/resource.mjs +34 -0
- package/dist/runtime/host/sdk/schema.mjs +75 -0
- package/dist/runtime/host/sdk/server.mjs +43 -0
- package/dist/runtime/host/sdk/testhost.mjs +992 -0
- package/dist/runtime/host/sdk/testing.mjs +21 -0
- package/dist/runtime/host/sdk/wire.mjs +207 -0
- package/dist/runtime/host/worker.mjs +252 -0
- package/dist/runtime/index.d.ts +10 -0
- package/dist/runtime/index.js +5 -0
- package/dist/runtime/kit.d.ts +5 -0
- package/dist/runtime/kit.js +14 -0
- package/dist/runtime/manifest.d.ts +17 -0
- package/dist/runtime/manifest.js +323 -0
- package/dist/runtime/model.d.ts +224 -0
- package/dist/runtime/model.js +3 -0
- package/dist/runtime/resource.d.ts +31 -0
- package/dist/runtime/resource.js +35 -0
- package/dist/runtime/schema.d.ts +97 -0
- package/dist/runtime/schema.js +73 -0
- package/dist/runtime/server.d.ts +445 -0
- package/dist/runtime/server.js +41 -0
- package/dist/runtime/testhost.d.ts +216 -0
- package/dist/runtime/testhost.js +1146 -0
- package/dist/runtime/testing.d.ts +10 -0
- package/dist/runtime/testing.js +7 -0
- package/dist/runtime/wire.d.ts +26 -0
- package/dist/runtime/wire.js +236 -0
- package/dist/sdk-identity.cjs +3 -3
- package/dist/sdk-identity.js +3 -3
- package/dist/sdk-identity.json +2 -2
- package/dist/solid-ui/embedded-css.d.ts +2 -0
- package/dist/solid-ui/embedded-css.js +1 -0
- package/dist/solid-ui/embedded.css +2 -0
- package/dist/testing/components.d.ts +73 -0
- package/dist/testing/components.js +96 -0
- package/dist/testing/htmx.d.ts +44 -0
- package/dist/testing/htmx.js +284 -0
- package/dist/testing/index.d.ts +4 -41
- package/dist/testing/index.js +3 -206
- package/dist/testing/scenarios.d.ts +83 -0
- package/dist/testing/scenarios.js +74 -0
- package/dist/testing/wait.d.ts +7 -0
- package/dist/testing/wait.js +19 -0
- package/package.json +33 -2
- package/dist/lens/TablePanel-DU_ydQ1x.js +0 -980
- package/dist/lens/index-BJIuggdQ.js +0 -18403
- package/dist/lens/runtime/recovery.d.ts +0 -26
- package/dist/lens/runtime/recovery.d.ts.map +0 -1
|
@@ -0,0 +1,824 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const equalFn = (a, b) => a === b;
|
|
4
|
+
const $PROXY = Symbol("solid-proxy");
|
|
5
|
+
const $TRACK = Symbol("solid-track");
|
|
6
|
+
const $DEVCOMP = Symbol("solid-dev-component");
|
|
7
|
+
const DEV = undefined;
|
|
8
|
+
const ERROR = Symbol("error");
|
|
9
|
+
function castError(err) {
|
|
10
|
+
if (err instanceof Error) return err;
|
|
11
|
+
return new Error(typeof err === "string" ? err : "Unknown error", {
|
|
12
|
+
cause: err
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function handleError(err, owner = Owner) {
|
|
16
|
+
const fns = owner && owner.context && owner.context[ERROR];
|
|
17
|
+
const error = castError(err);
|
|
18
|
+
if (!fns) throw error;
|
|
19
|
+
try {
|
|
20
|
+
for (const f of fns) f(error);
|
|
21
|
+
} catch (e) {
|
|
22
|
+
handleError(e, owner && owner.owner || null);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
const UNOWNED = {
|
|
26
|
+
context: null,
|
|
27
|
+
owner: null,
|
|
28
|
+
owned: null,
|
|
29
|
+
cleanups: null
|
|
30
|
+
};
|
|
31
|
+
let Owner = null;
|
|
32
|
+
function createOwner() {
|
|
33
|
+
const o = {
|
|
34
|
+
owner: Owner,
|
|
35
|
+
context: Owner ? Owner.context : null,
|
|
36
|
+
owned: null,
|
|
37
|
+
cleanups: null
|
|
38
|
+
};
|
|
39
|
+
if (Owner) {
|
|
40
|
+
if (!Owner.owned) Owner.owned = [o];else Owner.owned.push(o);
|
|
41
|
+
}
|
|
42
|
+
return o;
|
|
43
|
+
}
|
|
44
|
+
function createRoot(fn, detachedOwner) {
|
|
45
|
+
const owner = Owner,
|
|
46
|
+
current = detachedOwner === undefined ? owner : detachedOwner,
|
|
47
|
+
root = fn.length === 0 ? UNOWNED : {
|
|
48
|
+
context: current ? current.context : null,
|
|
49
|
+
owner: current,
|
|
50
|
+
owned: null,
|
|
51
|
+
cleanups: null
|
|
52
|
+
};
|
|
53
|
+
Owner = root;
|
|
54
|
+
let result;
|
|
55
|
+
try {
|
|
56
|
+
result = fn(fn.length === 0 ? () => {} : () => cleanNode(root));
|
|
57
|
+
} catch (err) {
|
|
58
|
+
handleError(err);
|
|
59
|
+
} finally {
|
|
60
|
+
Owner = owner;
|
|
61
|
+
}
|
|
62
|
+
return result;
|
|
63
|
+
}
|
|
64
|
+
function createSignal(value, options) {
|
|
65
|
+
return [() => value, v => {
|
|
66
|
+
return value = typeof v === "function" ? v(value) : v;
|
|
67
|
+
}];
|
|
68
|
+
}
|
|
69
|
+
function createComputed(fn, value) {
|
|
70
|
+
Owner = createOwner();
|
|
71
|
+
try {
|
|
72
|
+
fn(value);
|
|
73
|
+
} catch (err) {
|
|
74
|
+
handleError(err);
|
|
75
|
+
} finally {
|
|
76
|
+
Owner = Owner.owner;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const createRenderEffect = createComputed;
|
|
80
|
+
function createEffect(fn, value) {}
|
|
81
|
+
function createReaction(fn) {
|
|
82
|
+
return fn => {
|
|
83
|
+
fn();
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function createMemo(fn, value) {
|
|
87
|
+
Owner = createOwner();
|
|
88
|
+
let v;
|
|
89
|
+
try {
|
|
90
|
+
v = fn(value);
|
|
91
|
+
} catch (err) {
|
|
92
|
+
handleError(err);
|
|
93
|
+
} finally {
|
|
94
|
+
Owner = Owner.owner;
|
|
95
|
+
}
|
|
96
|
+
return () => v;
|
|
97
|
+
}
|
|
98
|
+
function createDeferred(source) {
|
|
99
|
+
return source;
|
|
100
|
+
}
|
|
101
|
+
function createSelector(source, fn = equalFn) {
|
|
102
|
+
return k => fn(k, source());
|
|
103
|
+
}
|
|
104
|
+
function batch(fn) {
|
|
105
|
+
return fn();
|
|
106
|
+
}
|
|
107
|
+
const untrack = batch;
|
|
108
|
+
function on(deps, fn, options = {}) {
|
|
109
|
+
const isArray = Array.isArray(deps);
|
|
110
|
+
const defer = options.defer;
|
|
111
|
+
return () => {
|
|
112
|
+
if (defer) return undefined;
|
|
113
|
+
let value;
|
|
114
|
+
if (isArray) {
|
|
115
|
+
value = [];
|
|
116
|
+
for (let i = 0; i < deps.length; i++) value.push(deps[i]());
|
|
117
|
+
} else value = deps();
|
|
118
|
+
return fn(value);
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
function onMount(fn) {}
|
|
122
|
+
function onCleanup(fn) {
|
|
123
|
+
if (Owner) {
|
|
124
|
+
if (!Owner.cleanups) Owner.cleanups = [fn];else Owner.cleanups.push(fn);
|
|
125
|
+
}
|
|
126
|
+
return fn;
|
|
127
|
+
}
|
|
128
|
+
function cleanNode(node) {
|
|
129
|
+
if (node.owned) {
|
|
130
|
+
for (let i = 0; i < node.owned.length; i++) cleanNode(node.owned[i]);
|
|
131
|
+
node.owned = null;
|
|
132
|
+
}
|
|
133
|
+
if (node.cleanups) {
|
|
134
|
+
for (let i = 0; i < node.cleanups.length; i++) node.cleanups[i]();
|
|
135
|
+
node.cleanups = null;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function catchError(fn, handler) {
|
|
139
|
+
const owner = createOwner();
|
|
140
|
+
owner.context = {
|
|
141
|
+
...owner.context,
|
|
142
|
+
[ERROR]: [handler]
|
|
143
|
+
};
|
|
144
|
+
Owner = owner;
|
|
145
|
+
try {
|
|
146
|
+
return fn();
|
|
147
|
+
} catch (err) {
|
|
148
|
+
handleError(err);
|
|
149
|
+
} finally {
|
|
150
|
+
Owner = Owner.owner;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
function getListener() {
|
|
154
|
+
return null;
|
|
155
|
+
}
|
|
156
|
+
function createContext(defaultValue) {
|
|
157
|
+
const id = Symbol("context");
|
|
158
|
+
return {
|
|
159
|
+
id,
|
|
160
|
+
Provider: createProvider(id),
|
|
161
|
+
defaultValue
|
|
162
|
+
};
|
|
163
|
+
}
|
|
164
|
+
function useContext(context) {
|
|
165
|
+
return Owner && Owner.context && Owner.context[context.id] !== undefined ? Owner.context[context.id] : context.defaultValue;
|
|
166
|
+
}
|
|
167
|
+
function getOwner() {
|
|
168
|
+
return Owner;
|
|
169
|
+
}
|
|
170
|
+
function children(fn) {
|
|
171
|
+
const memo = createMemo(() => resolveChildren(fn()));
|
|
172
|
+
memo.toArray = () => {
|
|
173
|
+
const c = memo();
|
|
174
|
+
return Array.isArray(c) ? c : c != null ? [c] : [];
|
|
175
|
+
};
|
|
176
|
+
return memo;
|
|
177
|
+
}
|
|
178
|
+
function runWithOwner(o, fn) {
|
|
179
|
+
const prev = Owner;
|
|
180
|
+
Owner = o;
|
|
181
|
+
try {
|
|
182
|
+
return fn();
|
|
183
|
+
} catch (err) {
|
|
184
|
+
handleError(err);
|
|
185
|
+
} finally {
|
|
186
|
+
Owner = prev;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
function resolveChildren(children) {
|
|
190
|
+
if (typeof children === "function" && !children.length) return resolveChildren(children());
|
|
191
|
+
if (Array.isArray(children)) {
|
|
192
|
+
const results = [];
|
|
193
|
+
for (let i = 0; i < children.length; i++) {
|
|
194
|
+
const result = resolveChildren(children[i]);
|
|
195
|
+
if (Array.isArray(result)) {
|
|
196
|
+
if (result.length < 32768) results.push.apply(results, result);else for (let j = 0; j < result.length; j++) results.push(result[j]);
|
|
197
|
+
} else {
|
|
198
|
+
results.push(result);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
return results;
|
|
202
|
+
}
|
|
203
|
+
return children;
|
|
204
|
+
}
|
|
205
|
+
function createProvider(id) {
|
|
206
|
+
return function provider(props) {
|
|
207
|
+
return createMemo(() => {
|
|
208
|
+
Owner.context = {
|
|
209
|
+
...Owner.context,
|
|
210
|
+
[id]: props.value
|
|
211
|
+
};
|
|
212
|
+
return children(() => props.children);
|
|
213
|
+
});
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
function requestCallback(fn, options) {
|
|
217
|
+
return {
|
|
218
|
+
id: 0,
|
|
219
|
+
fn: () => {},
|
|
220
|
+
startTime: 0,
|
|
221
|
+
expirationTime: 0
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
function mapArray(list, mapFn, options = {}) {
|
|
225
|
+
const items = list();
|
|
226
|
+
let s = [];
|
|
227
|
+
if (items && items.length) {
|
|
228
|
+
for (let i = 0, len = items.length; i < len; i++) s.push(mapFn(items[i], () => i));
|
|
229
|
+
} else if (options.fallback) s = [options.fallback()];
|
|
230
|
+
return () => s;
|
|
231
|
+
}
|
|
232
|
+
function indexArray(list, mapFn, options = {}) {
|
|
233
|
+
const items = list();
|
|
234
|
+
let s = [];
|
|
235
|
+
if (items && items.length) {
|
|
236
|
+
for (let i = 0, len = items.length; i < len; i++) s.push(mapFn(() => items[i], i));
|
|
237
|
+
} else if (options.fallback) s = [options.fallback()];
|
|
238
|
+
return () => s;
|
|
239
|
+
}
|
|
240
|
+
function observable(input) {
|
|
241
|
+
return {
|
|
242
|
+
subscribe(observer) {
|
|
243
|
+
if (!(observer instanceof Object) || observer == null) {
|
|
244
|
+
throw new TypeError("Expected the observer to be an object.");
|
|
245
|
+
}
|
|
246
|
+
const handler = typeof observer === "function" ? observer : observer.next && observer.next.bind(observer);
|
|
247
|
+
if (!handler) {
|
|
248
|
+
return {
|
|
249
|
+
unsubscribe() {}
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
const dispose = createRoot(disposer => {
|
|
253
|
+
createEffect(() => {
|
|
254
|
+
const v = input();
|
|
255
|
+
untrack(() => handler(v));
|
|
256
|
+
});
|
|
257
|
+
return disposer;
|
|
258
|
+
});
|
|
259
|
+
if (getOwner()) onCleanup(dispose);
|
|
260
|
+
return {
|
|
261
|
+
unsubscribe() {
|
|
262
|
+
dispose();
|
|
263
|
+
}
|
|
264
|
+
};
|
|
265
|
+
},
|
|
266
|
+
[Symbol.observable || "@@observable"]() {
|
|
267
|
+
return this;
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
}
|
|
271
|
+
function from(producer) {
|
|
272
|
+
const [s, set] = createSignal(undefined);
|
|
273
|
+
if ("subscribe" in producer) {
|
|
274
|
+
const unsub = producer.subscribe(v => set(() => v));
|
|
275
|
+
onCleanup(() => "unsubscribe" in unsub ? unsub.unsubscribe() : unsub());
|
|
276
|
+
} else {
|
|
277
|
+
const clean = producer(set);
|
|
278
|
+
onCleanup(clean);
|
|
279
|
+
}
|
|
280
|
+
return s;
|
|
281
|
+
}
|
|
282
|
+
function enableExternalSource(factory) {}
|
|
283
|
+
function onError(fn) {
|
|
284
|
+
if (Owner) {
|
|
285
|
+
if (Owner.context === null || !Owner.context[ERROR]) {
|
|
286
|
+
Owner.context = {
|
|
287
|
+
...Owner.context,
|
|
288
|
+
[ERROR]: [fn]
|
|
289
|
+
};
|
|
290
|
+
mutateContext(Owner, ERROR, [fn]);
|
|
291
|
+
} else Owner.context[ERROR].push(fn);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
function mutateContext(o, key, value) {
|
|
295
|
+
if (o.owned) {
|
|
296
|
+
for (let i = 0; i < o.owned.length; i++) {
|
|
297
|
+
if (o.owned[i].context === o.context) mutateContext(o.owned[i], key, value);
|
|
298
|
+
if (!o.owned[i].context) {
|
|
299
|
+
o.owned[i].context = o.context;
|
|
300
|
+
mutateContext(o.owned[i], key, value);
|
|
301
|
+
} else if (!o.owned[i].context[key]) {
|
|
302
|
+
o.owned[i].context[key] = value;
|
|
303
|
+
mutateContext(o.owned[i], key, value);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
function escape(s, attr) {
|
|
310
|
+
const t = typeof s;
|
|
311
|
+
if (t !== "string") {
|
|
312
|
+
if (t === "function") return escape(s());
|
|
313
|
+
if (Array.isArray(s)) {
|
|
314
|
+
for (let i = 0; i < s.length; i++) s[i] = escape(s[i]);
|
|
315
|
+
return s;
|
|
316
|
+
}
|
|
317
|
+
return s;
|
|
318
|
+
}
|
|
319
|
+
const delim = "<";
|
|
320
|
+
const escDelim = "<";
|
|
321
|
+
let iDelim = s.indexOf(delim);
|
|
322
|
+
let iAmp = s.indexOf("&");
|
|
323
|
+
if (iDelim < 0 && iAmp < 0) return s;
|
|
324
|
+
let left = 0,
|
|
325
|
+
out = "";
|
|
326
|
+
while (iDelim >= 0 && iAmp >= 0) {
|
|
327
|
+
if (iDelim < iAmp) {
|
|
328
|
+
if (left < iDelim) out += s.substring(left, iDelim);
|
|
329
|
+
out += escDelim;
|
|
330
|
+
left = iDelim + 1;
|
|
331
|
+
iDelim = s.indexOf(delim, left);
|
|
332
|
+
} else {
|
|
333
|
+
if (left < iAmp) out += s.substring(left, iAmp);
|
|
334
|
+
out += "&";
|
|
335
|
+
left = iAmp + 1;
|
|
336
|
+
iAmp = s.indexOf("&", left);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
if (iDelim >= 0) {
|
|
340
|
+
do {
|
|
341
|
+
if (left < iDelim) out += s.substring(left, iDelim);
|
|
342
|
+
out += escDelim;
|
|
343
|
+
left = iDelim + 1;
|
|
344
|
+
iDelim = s.indexOf(delim, left);
|
|
345
|
+
} while (iDelim >= 0);
|
|
346
|
+
} else while (iAmp >= 0) {
|
|
347
|
+
if (left < iAmp) out += s.substring(left, iAmp);
|
|
348
|
+
out += "&";
|
|
349
|
+
left = iAmp + 1;
|
|
350
|
+
iAmp = s.indexOf("&", left);
|
|
351
|
+
}
|
|
352
|
+
return left < s.length ? out + s.substring(left) : out;
|
|
353
|
+
}
|
|
354
|
+
function resolveSSRNode(node) {
|
|
355
|
+
const t = typeof node;
|
|
356
|
+
if (t === "string") return node;
|
|
357
|
+
if (node == null || t === "boolean") return "";
|
|
358
|
+
if (Array.isArray(node)) {
|
|
359
|
+
let prev = {};
|
|
360
|
+
let mapped = "";
|
|
361
|
+
for (let i = 0, len = node.length; i < len; i++) {
|
|
362
|
+
if (typeof prev !== "object" && typeof node[i] !== "object") mapped += `<!--!$-->`;
|
|
363
|
+
mapped += resolveSSRNode(prev = node[i]);
|
|
364
|
+
}
|
|
365
|
+
return mapped;
|
|
366
|
+
}
|
|
367
|
+
if (t === "object") return node.t;
|
|
368
|
+
if (t === "function") return resolveSSRNode(node());
|
|
369
|
+
return String(node);
|
|
370
|
+
}
|
|
371
|
+
const sharedConfig = {
|
|
372
|
+
context: undefined,
|
|
373
|
+
getContextId() {
|
|
374
|
+
if (!this.context) throw new Error(`getContextId cannot be used under non-hydrating context`);
|
|
375
|
+
return getContextId(this.context.count);
|
|
376
|
+
},
|
|
377
|
+
getNextContextId() {
|
|
378
|
+
if (!this.context) throw new Error(`getNextContextId cannot be used under non-hydrating context`);
|
|
379
|
+
return getContextId(this.context.count++);
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
function getContextId(count) {
|
|
383
|
+
const num = String(count),
|
|
384
|
+
len = num.length - 1;
|
|
385
|
+
return sharedConfig.context.id + (len ? String.fromCharCode(96 + len) : "") + num;
|
|
386
|
+
}
|
|
387
|
+
function setHydrateContext(context) {
|
|
388
|
+
sharedConfig.context = context;
|
|
389
|
+
}
|
|
390
|
+
function nextHydrateContext() {
|
|
391
|
+
return sharedConfig.context ? {
|
|
392
|
+
...sharedConfig.context,
|
|
393
|
+
id: sharedConfig.getNextContextId(),
|
|
394
|
+
count: 0
|
|
395
|
+
} : undefined;
|
|
396
|
+
}
|
|
397
|
+
function createUniqueId() {
|
|
398
|
+
return sharedConfig.getNextContextId();
|
|
399
|
+
}
|
|
400
|
+
function createComponent(Comp, props) {
|
|
401
|
+
if (sharedConfig.context && !sharedConfig.context.noHydrate) {
|
|
402
|
+
const c = sharedConfig.context;
|
|
403
|
+
setHydrateContext(nextHydrateContext());
|
|
404
|
+
const r = Comp(props || {});
|
|
405
|
+
setHydrateContext(c);
|
|
406
|
+
return r;
|
|
407
|
+
}
|
|
408
|
+
return Comp(props || {});
|
|
409
|
+
}
|
|
410
|
+
function mergeProps(...sources) {
|
|
411
|
+
const target = {};
|
|
412
|
+
for (let i = 0; i < sources.length; i++) {
|
|
413
|
+
let source = sources[i];
|
|
414
|
+
if (typeof source === "function") source = source();
|
|
415
|
+
if (source) {
|
|
416
|
+
const descriptors = Object.getOwnPropertyDescriptors(source);
|
|
417
|
+
for (const key in descriptors) {
|
|
418
|
+
if (key === "__proto__" || key === "constructor" || Object.prototype.hasOwnProperty.call(target, key)) continue;
|
|
419
|
+
Object.defineProperty(target, key, {
|
|
420
|
+
enumerable: true,
|
|
421
|
+
get() {
|
|
422
|
+
for (let i = sources.length - 1; i >= 0; i--) {
|
|
423
|
+
let v,
|
|
424
|
+
s = sources[i];
|
|
425
|
+
if (typeof s === "function") s = s();
|
|
426
|
+
v = (s || {})[key];
|
|
427
|
+
if (v !== undefined) return v;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
return target;
|
|
435
|
+
}
|
|
436
|
+
function splitProps(props, ...keys) {
|
|
437
|
+
const descriptors = Object.getOwnPropertyDescriptors(props),
|
|
438
|
+
split = k => {
|
|
439
|
+
const clone = {};
|
|
440
|
+
for (let i = 0; i < k.length; i++) {
|
|
441
|
+
const key = k[i];
|
|
442
|
+
if (descriptors[key]) {
|
|
443
|
+
Object.defineProperty(clone, key, descriptors[key]);
|
|
444
|
+
delete descriptors[key];
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
return clone;
|
|
448
|
+
};
|
|
449
|
+
return keys.map(split).concat(split(Object.keys(descriptors)));
|
|
450
|
+
}
|
|
451
|
+
function simpleMap(props, wrap) {
|
|
452
|
+
const list = props.each || [],
|
|
453
|
+
len = list.length,
|
|
454
|
+
fn = props.children;
|
|
455
|
+
if (len) {
|
|
456
|
+
let mapped = Array(len);
|
|
457
|
+
for (let i = 0; i < len; i++) mapped[i] = wrap(fn, list[i], i);
|
|
458
|
+
return mapped;
|
|
459
|
+
}
|
|
460
|
+
return props.fallback;
|
|
461
|
+
}
|
|
462
|
+
function For(props) {
|
|
463
|
+
return simpleMap(props, (fn, item, i) => fn(item, () => i));
|
|
464
|
+
}
|
|
465
|
+
function Index(props) {
|
|
466
|
+
return simpleMap(props, (fn, item, i) => fn(() => item, i));
|
|
467
|
+
}
|
|
468
|
+
function Show(props) {
|
|
469
|
+
let c;
|
|
470
|
+
return props.when ? typeof (c = props.children) === "function" && c.length > 0 ? c(props.keyed ? props.when : () => props.when) : c : props.fallback || "";
|
|
471
|
+
}
|
|
472
|
+
function Switch(props) {
|
|
473
|
+
let conditions = props.children;
|
|
474
|
+
Array.isArray(conditions) || (conditions = [conditions]);
|
|
475
|
+
for (let i = 0; i < conditions.length; i++) {
|
|
476
|
+
const w = conditions[i].when;
|
|
477
|
+
if (w) {
|
|
478
|
+
const c = conditions[i].children;
|
|
479
|
+
return typeof c === "function" && c.length > 0 ? c(conditions[i].keyed ? w : () => w) : c;
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
return props.fallback || "";
|
|
483
|
+
}
|
|
484
|
+
function Match(props) {
|
|
485
|
+
return props;
|
|
486
|
+
}
|
|
487
|
+
function resetErrorBoundaries() {}
|
|
488
|
+
function ErrorBoundary(props) {
|
|
489
|
+
let error,
|
|
490
|
+
res,
|
|
491
|
+
clean,
|
|
492
|
+
sync = true;
|
|
493
|
+
const ctx = sharedConfig.context;
|
|
494
|
+
const id = sharedConfig.getContextId();
|
|
495
|
+
function displayFallback() {
|
|
496
|
+
cleanNode(clean);
|
|
497
|
+
ctx.serialize(id, error);
|
|
498
|
+
setHydrateContext({
|
|
499
|
+
...ctx,
|
|
500
|
+
count: 0
|
|
501
|
+
});
|
|
502
|
+
const f = props.fallback;
|
|
503
|
+
return typeof f === "function" && f.length ? f(error, () => {}) : f;
|
|
504
|
+
}
|
|
505
|
+
createMemo(() => {
|
|
506
|
+
clean = Owner;
|
|
507
|
+
return catchError(() => res = props.children, err => {
|
|
508
|
+
error = err;
|
|
509
|
+
!sync && ctx.replace("e" + id, displayFallback);
|
|
510
|
+
sync = true;
|
|
511
|
+
});
|
|
512
|
+
});
|
|
513
|
+
if (error) return displayFallback();
|
|
514
|
+
sync = false;
|
|
515
|
+
return {
|
|
516
|
+
t: `<!--!$e${id}-->${resolveSSRNode(escape(res))}<!--!$/e${id}-->`
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
const SuspenseContext = createContext();
|
|
520
|
+
let resourceContext = null;
|
|
521
|
+
function createResource(source, fetcher, options = {}) {
|
|
522
|
+
if (typeof fetcher !== "function") {
|
|
523
|
+
options = fetcher || {};
|
|
524
|
+
fetcher = source;
|
|
525
|
+
source = true;
|
|
526
|
+
}
|
|
527
|
+
const contexts = new Set();
|
|
528
|
+
const id = sharedConfig.getNextContextId();
|
|
529
|
+
let resource = {};
|
|
530
|
+
let value = options.storage ? options.storage(options.initialValue)[0]() : options.initialValue;
|
|
531
|
+
let p;
|
|
532
|
+
let error;
|
|
533
|
+
if (sharedConfig.context.async && options.ssrLoadFrom !== "initial") {
|
|
534
|
+
resource = sharedConfig.context.resources[id] || (sharedConfig.context.resources[id] = {});
|
|
535
|
+
if (resource.ref) {
|
|
536
|
+
if (!resource.data && !resource.ref[0]._loading && !resource.ref[0].error) resource.ref[1].refetch();
|
|
537
|
+
return resource.ref;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
const prepareResource = () => {
|
|
541
|
+
if (error) throw error;
|
|
542
|
+
const resolved = options.ssrLoadFrom !== "initial" && sharedConfig.context.async && "data" in sharedConfig.context.resources[id];
|
|
543
|
+
if (!resolved && resourceContext) resourceContext.push(id);
|
|
544
|
+
if (!resolved && read._loading) {
|
|
545
|
+
const ctx = useContext(SuspenseContext);
|
|
546
|
+
if (ctx) {
|
|
547
|
+
ctx.resources.set(id, read);
|
|
548
|
+
contexts.add(ctx);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
return resolved;
|
|
552
|
+
};
|
|
553
|
+
const read = () => {
|
|
554
|
+
return prepareResource() ? sharedConfig.context.resources[id].data : value;
|
|
555
|
+
};
|
|
556
|
+
const loading = () => {
|
|
557
|
+
prepareResource();
|
|
558
|
+
return read._loading;
|
|
559
|
+
};
|
|
560
|
+
read._loading = false;
|
|
561
|
+
read.error = undefined;
|
|
562
|
+
read.state = "initialValue" in options ? "ready" : "unresolved";
|
|
563
|
+
Object.defineProperties(read, {
|
|
564
|
+
latest: {
|
|
565
|
+
get() {
|
|
566
|
+
return read();
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
loading: {
|
|
570
|
+
get() {
|
|
571
|
+
return loading();
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
function load() {
|
|
576
|
+
const ctx = sharedConfig.context;
|
|
577
|
+
if (!ctx.async) return read._loading = !!(typeof source === "function" ? source() : source);
|
|
578
|
+
if (ctx.resources && id in ctx.resources && "data" in ctx.resources[id]) {
|
|
579
|
+
value = ctx.resources[id].data;
|
|
580
|
+
return;
|
|
581
|
+
}
|
|
582
|
+
let lookup;
|
|
583
|
+
try {
|
|
584
|
+
resourceContext = [];
|
|
585
|
+
lookup = typeof source === "function" ? source() : source;
|
|
586
|
+
if (resourceContext.length) return;
|
|
587
|
+
} finally {
|
|
588
|
+
resourceContext = null;
|
|
589
|
+
}
|
|
590
|
+
if (!p) {
|
|
591
|
+
if (lookup == null || lookup === false) return;
|
|
592
|
+
p = fetcher(lookup, {
|
|
593
|
+
value
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
if (p != undefined && typeof p === "object" && "then" in p) {
|
|
597
|
+
read._loading = true;
|
|
598
|
+
read.state = "pending";
|
|
599
|
+
p = p.then(res => {
|
|
600
|
+
read._loading = false;
|
|
601
|
+
read.state = "ready";
|
|
602
|
+
ctx.resources[id].data = res;
|
|
603
|
+
p = null;
|
|
604
|
+
notifySuspense(contexts);
|
|
605
|
+
return res;
|
|
606
|
+
}).catch(err => {
|
|
607
|
+
read._loading = false;
|
|
608
|
+
read.state = "errored";
|
|
609
|
+
read.error = error = castError(err);
|
|
610
|
+
p = null;
|
|
611
|
+
notifySuspense(contexts);
|
|
612
|
+
throw error;
|
|
613
|
+
});
|
|
614
|
+
if (ctx.serialize) ctx.serialize(id, p, options.deferStream);
|
|
615
|
+
return p;
|
|
616
|
+
}
|
|
617
|
+
ctx.resources[id].data = p;
|
|
618
|
+
if (ctx.serialize) ctx.serialize(id, p);
|
|
619
|
+
p = null;
|
|
620
|
+
return ctx.resources[id].data;
|
|
621
|
+
}
|
|
622
|
+
if (options.ssrLoadFrom !== "initial") load();
|
|
623
|
+
const ref = [read, {
|
|
624
|
+
refetch: load,
|
|
625
|
+
mutate: v => value = v
|
|
626
|
+
}];
|
|
627
|
+
if (p) resource.ref = ref;
|
|
628
|
+
return ref;
|
|
629
|
+
}
|
|
630
|
+
function lazy(fn) {
|
|
631
|
+
let p;
|
|
632
|
+
let load = id => {
|
|
633
|
+
if (!p) {
|
|
634
|
+
const cur = p = fn();
|
|
635
|
+
cur.then(mod => cur.resolved = mod.default, err => {
|
|
636
|
+
cur.error = castError(err);
|
|
637
|
+
if (p === cur) p = undefined;
|
|
638
|
+
});
|
|
639
|
+
if (id) sharedConfig.context.lazy[id] = cur;
|
|
640
|
+
}
|
|
641
|
+
return p;
|
|
642
|
+
};
|
|
643
|
+
const contexts = new Set();
|
|
644
|
+
const wrap = props => {
|
|
645
|
+
const id = sharedConfig.context.id;
|
|
646
|
+
const current = sharedConfig.context.lazy[id] || load(id);
|
|
647
|
+
if (current.resolved) return current.resolved(props);
|
|
648
|
+
if (current.error) throw current.error;
|
|
649
|
+
const ctx = useContext(SuspenseContext);
|
|
650
|
+
const track = {
|
|
651
|
+
_loading: true,
|
|
652
|
+
error: undefined
|
|
653
|
+
};
|
|
654
|
+
if (ctx) {
|
|
655
|
+
ctx.resources.set(id, track);
|
|
656
|
+
contexts.add(ctx);
|
|
657
|
+
}
|
|
658
|
+
if (sharedConfig.context.async) {
|
|
659
|
+
sharedConfig.context.block(current.then(() => {
|
|
660
|
+
track._loading = false;
|
|
661
|
+
notifySuspense(contexts);
|
|
662
|
+
}, err => {
|
|
663
|
+
track._loading = false;
|
|
664
|
+
track.error = castError(err);
|
|
665
|
+
notifySuspense(contexts);
|
|
666
|
+
}));
|
|
667
|
+
}
|
|
668
|
+
return "";
|
|
669
|
+
};
|
|
670
|
+
wrap.preload = load;
|
|
671
|
+
return wrap;
|
|
672
|
+
}
|
|
673
|
+
function suspenseComplete(c) {
|
|
674
|
+
for (const r of c.resources.values()) {
|
|
675
|
+
if (r._loading) return false;
|
|
676
|
+
}
|
|
677
|
+
return true;
|
|
678
|
+
}
|
|
679
|
+
function notifySuspense(contexts) {
|
|
680
|
+
for (const c of contexts) {
|
|
681
|
+
if (!suspenseComplete(c)) {
|
|
682
|
+
continue;
|
|
683
|
+
}
|
|
684
|
+
c.completed();
|
|
685
|
+
contexts.delete(c);
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
function enableScheduling() {}
|
|
689
|
+
function enableHydration() {}
|
|
690
|
+
function startTransition(fn) {
|
|
691
|
+
fn();
|
|
692
|
+
}
|
|
693
|
+
function useTransition() {
|
|
694
|
+
return [() => false, fn => {
|
|
695
|
+
fn();
|
|
696
|
+
}];
|
|
697
|
+
}
|
|
698
|
+
function SuspenseList(props) {
|
|
699
|
+
if (sharedConfig.context && !sharedConfig.context.noHydrate) {
|
|
700
|
+
const c = sharedConfig.context;
|
|
701
|
+
setHydrateContext(nextHydrateContext());
|
|
702
|
+
const result = props.children;
|
|
703
|
+
setHydrateContext(c);
|
|
704
|
+
return result;
|
|
705
|
+
}
|
|
706
|
+
return props.children;
|
|
707
|
+
}
|
|
708
|
+
function Suspense(props) {
|
|
709
|
+
let done;
|
|
710
|
+
const ctx = sharedConfig.context;
|
|
711
|
+
const id = sharedConfig.getContextId();
|
|
712
|
+
const o = createOwner();
|
|
713
|
+
const value = ctx.suspense[id] || (ctx.suspense[id] = {
|
|
714
|
+
resources: new Map(),
|
|
715
|
+
completed: () => {
|
|
716
|
+
const res = runSuspense();
|
|
717
|
+
if (suspenseComplete(value)) {
|
|
718
|
+
done(resolveSSRNode(escape(res)));
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
});
|
|
722
|
+
function suspenseError(err) {
|
|
723
|
+
if (!done || !done(undefined, err)) {
|
|
724
|
+
runWithOwner(o.owner, () => {
|
|
725
|
+
throw err;
|
|
726
|
+
});
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
function runSuspense() {
|
|
730
|
+
setHydrateContext({
|
|
731
|
+
...ctx,
|
|
732
|
+
count: 0
|
|
733
|
+
});
|
|
734
|
+
cleanNode(o);
|
|
735
|
+
return runWithOwner(o, () => createComponent(SuspenseContext.Provider, {
|
|
736
|
+
value,
|
|
737
|
+
get children() {
|
|
738
|
+
return catchError(() => props.children, suspenseError);
|
|
739
|
+
}
|
|
740
|
+
}));
|
|
741
|
+
}
|
|
742
|
+
const res = runSuspense();
|
|
743
|
+
if (suspenseComplete(value)) {
|
|
744
|
+
delete ctx.suspense[id];
|
|
745
|
+
return res;
|
|
746
|
+
}
|
|
747
|
+
done = ctx.async ? ctx.registerFragment(id) : undefined;
|
|
748
|
+
return catchError(() => {
|
|
749
|
+
if (ctx.async) {
|
|
750
|
+
setHydrateContext({
|
|
751
|
+
...ctx,
|
|
752
|
+
count: 0,
|
|
753
|
+
id: ctx.id + "0F",
|
|
754
|
+
noHydrate: true
|
|
755
|
+
});
|
|
756
|
+
const res = {
|
|
757
|
+
t: `<template id="pl-${id}"></template>${resolveSSRNode(escape(props.fallback))}<!--pl-${id}-->`
|
|
758
|
+
};
|
|
759
|
+
setHydrateContext(ctx);
|
|
760
|
+
return res;
|
|
761
|
+
}
|
|
762
|
+
setHydrateContext({
|
|
763
|
+
...ctx,
|
|
764
|
+
count: 0,
|
|
765
|
+
id: ctx.id + "0F"
|
|
766
|
+
});
|
|
767
|
+
ctx.serialize(id, "$$f");
|
|
768
|
+
return props.fallback;
|
|
769
|
+
}, suspenseError);
|
|
770
|
+
}
|
|
771
|
+
|
|
772
|
+
exports.$DEVCOMP = $DEVCOMP;
|
|
773
|
+
exports.$PROXY = $PROXY;
|
|
774
|
+
exports.$TRACK = $TRACK;
|
|
775
|
+
exports.DEV = DEV;
|
|
776
|
+
exports.ErrorBoundary = ErrorBoundary;
|
|
777
|
+
exports.For = For;
|
|
778
|
+
exports.Index = Index;
|
|
779
|
+
exports.Match = Match;
|
|
780
|
+
exports.Show = Show;
|
|
781
|
+
exports.Suspense = Suspense;
|
|
782
|
+
exports.SuspenseList = SuspenseList;
|
|
783
|
+
exports.Switch = Switch;
|
|
784
|
+
exports.batch = batch;
|
|
785
|
+
exports.catchError = catchError;
|
|
786
|
+
exports.children = children;
|
|
787
|
+
exports.createComponent = createComponent;
|
|
788
|
+
exports.createComputed = createComputed;
|
|
789
|
+
exports.createContext = createContext;
|
|
790
|
+
exports.createDeferred = createDeferred;
|
|
791
|
+
exports.createEffect = createEffect;
|
|
792
|
+
exports.createMemo = createMemo;
|
|
793
|
+
exports.createReaction = createReaction;
|
|
794
|
+
exports.createRenderEffect = createRenderEffect;
|
|
795
|
+
exports.createResource = createResource;
|
|
796
|
+
exports.createRoot = createRoot;
|
|
797
|
+
exports.createSelector = createSelector;
|
|
798
|
+
exports.createSignal = createSignal;
|
|
799
|
+
exports.createUniqueId = createUniqueId;
|
|
800
|
+
exports.enableExternalSource = enableExternalSource;
|
|
801
|
+
exports.enableHydration = enableHydration;
|
|
802
|
+
exports.enableScheduling = enableScheduling;
|
|
803
|
+
exports.equalFn = equalFn;
|
|
804
|
+
exports.from = from;
|
|
805
|
+
exports.getListener = getListener;
|
|
806
|
+
exports.getOwner = getOwner;
|
|
807
|
+
exports.indexArray = indexArray;
|
|
808
|
+
exports.lazy = lazy;
|
|
809
|
+
exports.mapArray = mapArray;
|
|
810
|
+
exports.mergeProps = mergeProps;
|
|
811
|
+
exports.observable = observable;
|
|
812
|
+
exports.on = on;
|
|
813
|
+
exports.onCleanup = onCleanup;
|
|
814
|
+
exports.onError = onError;
|
|
815
|
+
exports.onMount = onMount;
|
|
816
|
+
exports.requestCallback = requestCallback;
|
|
817
|
+
exports.resetErrorBoundaries = resetErrorBoundaries;
|
|
818
|
+
exports.runWithOwner = runWithOwner;
|
|
819
|
+
exports.sharedConfig = sharedConfig;
|
|
820
|
+
exports.splitProps = splitProps;
|
|
821
|
+
exports.startTransition = startTransition;
|
|
822
|
+
exports.untrack = untrack;
|
|
823
|
+
exports.useContext = useContext;
|
|
824
|
+
exports.useTransition = useTransition;
|