@classytic/labs 0.4.0 → 0.5.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 +32 -7
- package/dist/algorithms/GraphAlgorithmLab.d.mts +18 -4
- package/dist/algorithms/GraphAlgorithmLab.mjs +476 -109
- package/dist/algorithms/GraphView.d.mts +83 -3
- package/dist/algorithms/GraphView.mjs +386 -55
- package/dist/algorithms/GridPathLab.d.mts +24 -1
- package/dist/algorithms/GridPathLab.mjs +438 -115
- package/dist/algorithms/GrowthLab.d.mts +30 -2
- package/dist/algorithms/GrowthLab.mjs +239 -117
- package/dist/algorithms/HashLab.d.mts +12 -3
- package/dist/algorithms/HashLab.mjs +194 -61
- package/dist/algorithms/HeapDualView.d.mts +20 -2
- package/dist/algorithms/HeapDualView.mjs +91 -29
- package/dist/algorithms/HeapQuestLab.d.mts +27 -3
- package/dist/algorithms/HeapQuestLab.mjs +170 -40
- package/dist/algorithms/ListLab.d.mts +46 -5
- package/dist/algorithms/ListLab.mjs +551 -69
- package/dist/algorithms/SearchLab.d.mts +9 -1
- package/dist/algorithms/SearchLab.mjs +154 -47
- package/dist/algorithms/SortingLab.d.mts +12 -2
- package/dist/algorithms/SortingLab.mjs +271 -81
- package/dist/algorithms/TreeQuestLab.d.mts +26 -4
- package/dist/algorithms/TreeQuestLab.mjs +297 -140
- package/dist/algorithms/TreeScene.d.mts +3 -1
- package/dist/algorithms/TreeScene.mjs +26 -9
- package/dist/algorithms/contract.d.mts +131 -2
- package/dist/algorithms/core/index.d.mts +17 -13
- package/dist/algorithms/core/index.mjs +13 -10
- package/dist/algorithms/cost-derivation/core.d.mts +22 -5
- package/dist/algorithms/cost-derivation/core.mjs +181 -7
- package/dist/algorithms/cost-derivation/index.d.mts +1 -1
- package/dist/algorithms/cost-derivation/preset.d.mts +13 -3
- package/dist/algorithms/cost-derivation/preset.mjs +376 -21
- package/dist/algorithms/dp/CoinChangeLab.mjs +375 -0
- package/dist/algorithms/dp/ValueEntry.mjs +49 -0
- package/dist/algorithms/dp/coin-change.d.mts +90 -0
- package/dist/algorithms/dp/coin-change.mjs +213 -0
- package/dist/algorithms/dp/index.d.mts +3 -2
- package/dist/algorithms/dp/index.mjs +3 -2
- package/dist/algorithms/dp.d.mts +138 -2
- package/dist/algorithms/dp.mjs +748 -1
- package/dist/algorithms/graph/index.d.mts +3 -3
- package/dist/algorithms/graph/index.mjs +2 -2
- package/dist/algorithms/graph.d.mts +117 -4
- package/dist/algorithms/graph.mjs +1050 -24
- package/dist/algorithms/growth.d.mts +74 -2
- package/dist/algorithms/growth.mjs +146 -3
- package/dist/algorithms/hashing.d.mts +75 -12
- package/dist/algorithms/hashing.mjs +210 -49
- package/dist/algorithms/heap/index.d.mts +2 -2
- package/dist/algorithms/heap/index.mjs +2 -2
- package/dist/algorithms/heap.d.mts +81 -5
- package/dist/algorithms/heap.mjs +321 -112
- package/dist/algorithms/index.d.mts +21 -21
- package/dist/algorithms/index.mjs +16 -16
- package/dist/algorithms/lists.d.mts +46 -2
- package/dist/algorithms/lists.mjs +335 -37
- package/dist/algorithms/react/index.d.mts +6 -6
- package/dist/algorithms/react/index.mjs +5 -5
- package/dist/algorithms/recursion.d.mts +133 -0
- package/dist/algorithms/recursion.mjs +392 -0
- package/dist/algorithms/search.d.mts +19 -5
- package/dist/algorithms/search.mjs +47 -5
- package/dist/algorithms/sequence-contract.d.mts +2 -1
- package/dist/algorithms/sorting.d.mts +88 -7
- package/dist/algorithms/sorting.mjs +293 -41
- package/dist/algorithms/tree/index.d.mts +4 -4
- package/dist/algorithms/tree/index.mjs +2 -2
- package/dist/algorithms/tree-builder.d.mts +10 -3
- package/dist/algorithms/tree-builder.mjs +33 -12
- package/dist/algorithms/tree-contract.d.mts +41 -3
- package/dist/algorithms/tree.d.mts +15 -4
- package/dist/algorithms/tree.mjs +265 -20
- package/dist/algorithms/worlds/delivery/dispatch.mjs +192 -0
- package/dist/algorithms/worlds/delivery/keys.mjs +73 -0
- package/dist/algorithms/worlds/delivery/orders.mjs +169 -0
- package/dist/algorithms/worlds/delivery/roads.mjs +562 -0
- package/dist/algorithms/worlds/delivery/stops.mjs +106 -0
- package/dist/algorithms/worlds/index.d.mts +12 -0
- package/dist/algorithms/worlds/index.mjs +31 -0
- package/dist/algorithms/worlds/types.d.mts +33 -0
- package/dist/biology/cell-division/meiosis-scene.mjs +7 -3
- package/dist/biology/cell-division/preset.mjs +7 -5
- package/dist/biology/cell-sample-investigator.mjs +1 -1
- package/dist/biology/enzyme-rate/preset.mjs +24 -17
- package/dist/biology/photosynthesis-factors/preset.mjs +1 -1
- package/dist/blocks/catalog.d.mts +1 -1
- package/dist/build/CircuitEditor.mjs +19 -60
- package/dist/build/CircuitScene.mjs +33 -44
- package/dist/build/CircuitWorldScene.d.mts +15 -0
- package/dist/build/CircuitWorldScene.mjs +32 -0
- package/dist/build/ElectronicsWorkbenchEditor.d.mts +12 -0
- package/dist/build/ElectronicsWorkbenchEditor.mjs +120 -0
- package/dist/build/ElectronicsWorkbenchPlayer.d.mts +13 -0
- package/dist/build/ElectronicsWorkbenchPlayer.mjs +21 -0
- package/dist/build/contract.d.mts +2 -29
- package/dist/build/editor/index.d.mts +3 -4
- package/dist/build/editor/index.mjs +3 -3
- package/dist/build/editor-ops.mjs +1 -42
- package/dist/build/index.d.mts +7 -8
- package/dist/build/index.mjs +5 -7
- package/dist/build/part-state.mjs +40 -0
- package/dist/build/parts/ammeter.mjs +0 -7
- package/dist/build/parts/bulb.mjs +1 -7
- package/dist/build/parts/capacitor.mjs +1 -2
- package/dist/build/parts/cell.mjs +0 -7
- package/dist/build/parts/diode.mjs +0 -7
- package/dist/build/parts/index.mjs +3 -5
- package/dist/build/parts/mosfet.mjs +0 -12
- package/dist/build/parts/node.mjs +0 -1
- package/dist/build/parts/resistor.mjs +0 -6
- package/dist/build/parts/shared.mjs +9 -7
- package/dist/build/parts/switch.mjs +0 -7
- package/dist/build/runtime/index.d.mts +5 -6
- package/dist/build/runtime/index.mjs +3 -5
- package/dist/build/world-adapter.d.mts +15 -0
- package/dist/build/world-adapter.mjs +118 -0
- package/dist/build/world-editor-ops.d.mts +8 -0
- package/dist/build/world-editor-ops.mjs +200 -0
- package/dist/build/world-solution.mjs +30 -0
- package/dist/catalog/registry.d.mts +4 -3
- package/dist/catalog/templates.mjs +2 -2
- package/dist/chem/air-composition.mjs +28 -0
- package/dist/chem/battery.mjs +38 -337
- package/dist/chem/bohr-atom.d.mts +3 -11
- package/dist/chem/bohr-atom.mjs +2 -259
- package/dist/chem/crystal-lattice/activity.d.mts +1 -0
- package/dist/chem/crystal-lattice/activity.mjs +220 -1
- package/dist/chem/crystal-lattice/core.mjs +14 -4
- package/dist/chem/crystal-lattice/index.d.mts +2 -1
- package/dist/chem/crystal-lattice/preset.d.mts +6 -12
- package/dist/chem/crystal-lattice/preset.mjs +143 -214
- package/dist/chem/crystal-lattice/scene.d.mts +27 -0
- package/dist/chem/crystal-lattice/scene.mjs +405 -0
- package/dist/chem/diffusion/asset.mjs +1 -1
- package/dist/chem/diffusion/preset.mjs +1 -1
- package/dist/chem/electrochem/index.d.mts +2 -1
- package/dist/chem/electrochem/preset.mjs +43 -31
- package/dist/chem/electrochem/scene.d.mts +40 -1
- package/dist/chem/electrochem/scene.mjs +33 -57
- package/dist/chem/electrochem/world.d.mts +40 -0
- package/dist/chem/electrochem/world.mjs +155 -0
- package/dist/chem/equation-conservation-desk.mjs +2 -2
- package/dist/chem/equilibrium/preset.mjs +122 -325
- package/dist/chem/equilibrium/scene.mjs +234 -0
- package/dist/chem/equilibrium/world.mjs +230 -0
- package/dist/chem/evidence-scenes.mjs +198 -1
- package/dist/chem/formula-forge.d.mts +2 -2
- package/dist/chem/formula-forge.mjs +19 -129
- package/dist/chem/gas-box/activity.d.mts +5 -0
- package/dist/chem/gas-box/activity.mjs +213 -0
- package/dist/chem/gas-box/preset.d.mts +7 -3
- package/dist/chem/gas-box/preset.mjs +244 -422
- package/dist/chem/gas-box/scene.mjs +178 -0
- package/dist/chem/gas-box/world.d.mts +5 -0
- package/dist/chem/gas-box/world.mjs +219 -0
- package/dist/chem/index.d.mts +19 -10
- package/dist/chem/index.mjs +3 -2
- package/dist/chem/industrial-process-lab.d.mts +26 -2
- package/dist/chem/industrial-process-lab.mjs +51 -18
- package/dist/chem/kinetics/preset.d.mts +4 -2
- package/dist/chem/kinetics/preset.mjs +198 -351
- package/dist/chem/kinetics/scene.mjs +163 -0
- package/dist/chem/kinetics/world.d.mts +5 -0
- package/dist/chem/kinetics/world.mjs +309 -0
- package/dist/chem/metal-acid.d.mts +25 -0
- package/dist/chem/metal-acid.mjs +164 -0
- package/dist/chem/mole-factory.d.mts +2 -2
- package/dist/chem/mole-factory.mjs +43 -86
- package/dist/chem/molecular-geometry/activity.mjs +6 -6
- package/dist/chem/molecular-geometry/preset.mjs +49 -24
- package/dist/chem/o-level-concepts.d.mts +48 -5
- package/dist/chem/o-level-concepts.mjs +417 -121
- package/dist/chem/orbital-overlap/activity.mjs +2 -1
- package/dist/chem/orbital-overlap/preset.mjs +54 -24
- package/dist/chem/orbitals/activity.mjs +5 -5
- package/dist/chem/orbitals/core.mjs +2 -2
- package/dist/chem/orbitals/preset.mjs +87 -63
- package/dist/chem/particle-theatre.d.mts +5 -3
- package/dist/chem/particle-theatre.mjs +169 -327
- package/dist/chem/periodic-trends/preset.d.mts +16 -2
- package/dist/chem/periodic-trends/preset.mjs +18 -9
- package/dist/chem/ratio-normalizer/preset.mjs +2 -2
- package/dist/chem/reaction-lab/index.d.mts +2 -0
- package/dist/chem/reaction-lab/model.mjs +83 -0
- package/dist/chem/reaction-lab/preset.d.mts +14 -0
- package/dist/chem/reaction-lab/preset.mjs +152 -0
- package/dist/chem/reaction-lab/scene.mjs +139 -0
- package/dist/chem/reaction-lab/world.mjs +96 -0
- package/dist/chem/reaction-profile.mjs +7 -3
- package/dist/chem/solubility-kitchen.d.mts +2 -2
- package/dist/chem/solubility-kitchen.mjs +55 -107
- package/dist/chem/solution/field.mjs +1 -1
- package/dist/chem/solution-mixer.d.mts +2 -2
- package/dist/chem/solution-mixer.mjs +54 -110
- package/dist/chem/species-workshop.d.mts +2 -2
- package/dist/chem/species-workshop.mjs +16 -44
- package/dist/chem/stereochemistry/preset.mjs +22 -18
- package/dist/chem/stoichiometry/preset.mjs +1 -1
- package/dist/chem/structure-detective.d.mts +2 -3
- package/dist/chem/structure-detective.mjs +46 -158
- package/dist/chem/titration/preset.mjs +152 -128
- package/dist/chem/visual/atom.mjs +8 -9
- package/dist/circuits/ac-dc/asset.mjs +59 -40
- package/dist/circuits/ac-dc/index.d.mts +1 -0
- package/dist/circuits/ac-dc/model.d.mts +1 -0
- package/dist/circuits/ac-dc/model.mjs +26 -0
- package/dist/circuits/ac-dc/preset.mjs +77 -66
- package/dist/circuits/ac-response/preset.mjs +41 -13
- package/dist/circuits/bjt-amplifier/activity-plan.mjs +84 -0
- package/dist/circuits/bjt-amplifier/index.d.mts +2 -0
- package/dist/circuits/bjt-amplifier/preset.d.mts +16 -0
- package/dist/circuits/bjt-amplifier/preset.mjs +271 -0
- package/dist/circuits/brownout/preset.mjs +17 -64
- package/dist/circuits/capacitor-energy/index.d.mts +2 -0
- package/dist/circuits/capacitor-energy/preset.d.mts +11 -0
- package/dist/circuits/capacitor-energy/preset.mjs +185 -0
- package/dist/circuits/capacitor-leak/preset.mjs +101 -168
- package/dist/circuits/cell-combination/preset.mjs +1 -1
- package/dist/circuits/circuit/index.d.mts +2 -3
- package/dist/circuits/circuit/preset.d.mts +3 -6
- package/dist/circuits/circuit/preset.mjs +188 -202
- package/dist/circuits/circuit-lab.mjs +56 -237
- package/dist/circuits/cmos-gate/inverter.mjs +5 -5
- package/dist/circuits/cmos-gate/model.mjs +261 -181
- package/dist/circuits/cmos-gate/nand.mjs +4 -4
- package/dist/circuits/cmos-gate/nor.mjs +4 -4
- package/dist/circuits/cmos-gate/rnmos-not.mjs +4 -4
- package/dist/circuits/diode/preset.mjs +44 -104
- package/dist/circuits/energy-cost/preset.mjs +1 -1
- package/dist/circuits/energy-flow/preset.mjs +156 -0
- package/dist/circuits/first-order/preset.mjs +196 -0
- package/dist/circuits/index.d.mts +10 -3
- package/dist/circuits/index.mjs +6 -3
- package/dist/circuits/kirchhoff/core.d.mts +1 -9
- package/dist/circuits/kirchhoff/core.mjs +70 -62
- package/dist/circuits/kirchhoff/preset.d.mts +1 -16
- package/dist/circuits/kirchhoff/preset.mjs +112 -237
- package/dist/circuits/meter-conversion/preset.mjs +13 -22
- package/dist/circuits/network-reduction/preset.mjs +1 -1
- package/dist/circuits/null-balance/core.mjs +1 -13
- package/dist/circuits/null-balance/preset.mjs +26 -19
- package/dist/circuits/op-amp-comparator/activity-plan.mjs +83 -0
- package/dist/circuits/op-amp-comparator/index.d.mts +2 -0
- package/dist/circuits/op-amp-comparator/preset.d.mts +13 -0
- package/dist/circuits/op-amp-comparator/preset.mjs +183 -0
- package/dist/circuits/op-amp-feedback/activity-plan.mjs +81 -0
- package/dist/circuits/op-amp-feedback/index.d.mts +2 -0
- package/dist/circuits/op-amp-feedback/preset.d.mts +16 -0
- package/dist/circuits/op-amp-feedback/preset.mjs +251 -0
- package/dist/circuits/potential-divider/core.d.mts +1 -13
- package/dist/circuits/potential-divider/core.mjs +75 -18
- package/dist/circuits/potential-divider/preset.mjs +103 -175
- package/dist/circuits/rc-charging/preset.d.mts +3 -2
- package/dist/circuits/rc-charging/preset.mjs +27 -566
- package/dist/circuits/rectifier/preset.mjs +184 -0
- package/dist/circuits/regulated-supply/preset.mjs +196 -0
- package/dist/circuits/semiconductor/bjt-inside.mjs +16 -10
- package/dist/circuits/semiconductor/conduction.mjs +20 -11
- package/dist/circuits/semiconductor/diode-world.mjs +62 -0
- package/dist/circuits/semiconductor/hall-effect.mjs +40 -27
- package/dist/circuits/semiconductor/mosfet-inside.mjs +22 -66
- package/dist/circuits/semiconductor/pn-junction.mjs +20 -38
- package/dist/circuits/semiconductor/shared.mjs +15 -12
- package/dist/circuits/semiconductor/silicon-lattice.mjs +12 -9
- package/dist/circuits/smoothing/preset.mjs +178 -0
- package/dist/circuits/transistor/activity-plan.mjs +16 -36
- package/dist/circuits/transistor/preset.d.mts +0 -1
- package/dist/circuits/transistor/preset.mjs +168 -353
- package/dist/commerce/accounting/balance-off/balance-figure.mjs +289 -0
- package/dist/commerce/accounting/balance-off/core.mjs +316 -0
- package/dist/commerce/accounting/balance-off/preset.mjs +717 -0
- package/dist/commerce/accounting/books/chart.d.mts +14 -0
- package/dist/commerce/accounting/books/chart.mjs +184 -0
- package/dist/commerce/accounting/books/entry.d.mts +26 -0
- package/dist/commerce/accounting/books/entry.mjs +161 -0
- package/dist/commerce/accounting/books/errors.mjs +214 -0
- package/dist/commerce/accounting/books/ledger.d.mts +23 -0
- package/dist/commerce/accounting/books/ledger.mjs +165 -0
- package/dist/commerce/accounting/books/world.d.mts +16 -0
- package/dist/commerce/accounting/books/world.mjs +53 -0
- package/dist/commerce/accounting/books/worlds/kalam.mjs +566 -0
- package/dist/commerce/accounting/debit-credit-sprint/core.mjs +148 -0
- package/dist/commerce/accounting/debit-credit-sprint/preset.mjs +298 -0
- package/dist/commerce/accounting/entry-desk/core.mjs +59 -0
- package/dist/commerce/accounting/entry-desk/preset.mjs +317 -0
- package/dist/commerce/accounting/equation-balance.mjs +1 -1
- package/dist/commerce/accounting/journal-poster.d.mts +2 -1
- package/dist/commerce/accounting/journal-poster.mjs +19 -16
- package/dist/commerce/accounting/ledger-detective/core.mjs +306 -0
- package/dist/commerce/accounting/ledger-detective/preset.mjs +741 -0
- package/dist/commerce/economics/demand-shift-vs-move.mjs +1 -1
- package/dist/commerce/economics/elasticity-revenue.mjs +1 -1
- package/dist/commerce/economics/market-equilibrium.mjs +1 -1
- package/dist/commerce/finance/apportion.d.mts +3 -1
- package/dist/commerce/finance/apportion.mjs +15 -15
- package/dist/commerce/finance/break-even.mjs +1 -1
- package/dist/commerce/finance/club-subscriptions/preset.mjs +1 -1
- package/dist/commerce/finance/compound-interest.mjs +1 -1
- package/dist/commerce/finance/depreciation.mjs +1 -1
- package/dist/commerce/finance/limited-company.mjs +1 -1
- package/dist/commerce/finance/supply-chain.mjs +1 -1
- package/dist/core/index.d.mts +1 -2
- package/dist/core/index.mjs +1 -2
- package/dist/core/rng.d.mts +2 -21
- package/dist/core/rng.mjs +2 -38
- package/dist/core/tex.mjs +1 -1
- package/dist/databases/visuals/index-detective-board.d.mts +0 -2
- package/dist/deep-learning/core/attention.d.mts +46 -5
- package/dist/deep-learning/core/attention.mjs +45 -20
- package/dist/deep-learning/core/backprop-graph.d.mts +31 -0
- package/dist/deep-learning/core/backprop-graph.mjs +162 -0
- package/dist/deep-learning/core/bpe.d.mts +11 -0
- package/dist/deep-learning/core/bpe.mjs +25 -0
- package/dist/deep-learning/core/causal-mask.d.mts +54 -2
- package/dist/deep-learning/core/causal-mask.mjs +63 -18
- package/dist/deep-learning/core/char-run.d.mts +156 -0
- package/dist/deep-learning/core/char-run.mjs +318 -0
- package/dist/deep-learning/core/context-window.d.mts +31 -3
- package/dist/deep-learning/core/context-window.mjs +40 -10
- package/dist/deep-learning/core/convolution.d.mts +50 -5
- package/dist/deep-learning/core/convolution.mjs +83 -11
- package/dist/deep-learning/core/dense-layer.d.mts +38 -7
- package/dist/deep-learning/core/dense-layer.mjs +101 -24
- package/dist/deep-learning/core/embedding-neighborhood.d.mts +57 -2
- package/dist/deep-learning/core/embedding-neighborhood.mjs +54 -9
- package/dist/deep-learning/core/encoder-decoder.d.mts +28 -2
- package/dist/deep-learning/core/encoder-decoder.mjs +43 -12
- package/dist/deep-learning/core/feed-forward-network.d.mts +43 -2
- package/dist/deep-learning/core/feed-forward-network.mjs +58 -14
- package/dist/deep-learning/core/gradient-run.d.mts +17 -1
- package/dist/deep-learning/core/gradient-run.mjs +7 -1
- package/dist/deep-learning/core/gradient-step.d.mts +16 -1
- package/dist/deep-learning/core/gradient-step.mjs +34 -2
- package/dist/deep-learning/core/layer-normalization.d.mts +28 -1
- package/dist/deep-learning/core/layer-normalization.mjs +48 -13
- package/dist/deep-learning/core/learning-loop.d.mts +14 -1
- package/dist/deep-learning/core/learning-loop.mjs +20 -1
- package/dist/deep-learning/core/linear-algebra.d.mts +27 -2
- package/dist/deep-learning/core/linear-algebra.mjs +27 -9
- package/dist/deep-learning/core/linear-fit.d.mts +20 -1
- package/dist/deep-learning/core/linear-fit.mjs +36 -10
- package/dist/deep-learning/core/loss.d.mts +22 -1
- package/dist/deep-learning/core/loss.mjs +15 -2
- package/dist/deep-learning/core/memory-relay.d.mts +60 -2
- package/dist/deep-learning/core/memory-relay.mjs +202 -13
- package/dist/deep-learning/core/multi-head-attention.d.mts +58 -5
- package/dist/deep-learning/core/multi-head-attention.mjs +87 -18
- package/dist/deep-learning/core/multimodal-alignment.d.mts +46 -5
- package/dist/deep-learning/core/multimodal-alignment.mjs +57 -14
- package/dist/deep-learning/core/neural-trace.d.mts +24 -1
- package/dist/deep-learning/core/neural-trace.mjs +37 -9
- package/dist/deep-learning/core/overfit-gap.d.mts +28 -0
- package/dist/deep-learning/core/overfit-gap.mjs +197 -0
- package/dist/deep-learning/core/position.d.mts +43 -4
- package/dist/deep-learning/core/position.mjs +66 -28
- package/dist/deep-learning/core/query-key-value.d.mts +53 -16
- package/dist/deep-learning/core/query-key-value.mjs +44 -11
- package/dist/deep-learning/core/residual-stream.d.mts +22 -1
- package/dist/deep-learning/core/residual-stream.mjs +22 -2
- package/dist/deep-learning/core/reward-groups.d.mts +19 -0
- package/dist/deep-learning/core/reward-groups.mjs +110 -0
- package/dist/deep-learning/core/scaled-dot-product-attention.d.mts +49 -2
- package/dist/deep-learning/core/scaled-dot-product-attention.mjs +105 -18
- package/dist/deep-learning/core/tiny-network.d.mts +28 -0
- package/dist/deep-learning/core/tiny-network.mjs +32 -0
- package/dist/deep-learning/core/token-generation.d.mts +52 -3
- package/dist/deep-learning/core/token-generation.mjs +77 -5
- package/dist/deep-learning/core/transformer-block.d.mts +25 -8
- package/dist/deep-learning/core/transformer-block.mjs +47 -2
- package/dist/deep-learning/core/unembedding.d.mts +31 -3
- package/dist/deep-learning/core/unembedding.mjs +110 -8
- package/dist/deep-learning/foundation/activation-gates.d.mts +13 -3
- package/dist/deep-learning/foundation/activation-gates.mjs +126 -41
- package/dist/deep-learning/foundation/affine-neuron.d.mts +16 -3
- package/dist/deep-learning/foundation/affine-neuron.mjs +115 -43
- package/dist/deep-learning/foundation/anomaly-detector.d.mts +29 -3
- package/dist/deep-learning/foundation/anomaly-detector.mjs +240 -50
- package/dist/deep-learning/foundation/attention-routing.d.mts +14 -3
- package/dist/deep-learning/foundation/attention-routing.mjs +103 -30
- package/dist/deep-learning/foundation/autoencoder.d.mts +30 -3
- package/dist/deep-learning/foundation/autoencoder.mjs +115 -35
- package/dist/deep-learning/foundation/backprop-tracer.d.mts +38 -0
- package/dist/deep-learning/foundation/backprop-tracer.mjs +462 -0
- package/dist/deep-learning/foundation/causal-mask.d.mts +15 -3
- package/dist/deep-learning/foundation/causal-mask.mjs +128 -33
- package/dist/deep-learning/foundation/char-model.d.mts +49 -0
- package/dist/deep-learning/foundation/char-model.mjs +717 -0
- package/dist/deep-learning/foundation/context-window.d.mts +22 -3
- package/dist/deep-learning/foundation/context-window.mjs +113 -27
- package/dist/deep-learning/foundation/denoising.d.mts +29 -3
- package/dist/deep-learning/foundation/denoising.mjs +116 -31
- package/dist/deep-learning/foundation/embedding-neighborhood.d.mts +15 -3
- package/dist/deep-learning/foundation/embedding-neighborhood.mjs +107 -31
- package/dist/deep-learning/foundation/encoder-decoder.d.mts +27 -3
- package/dist/deep-learning/foundation/encoder-decoder.mjs +192 -29
- package/dist/deep-learning/foundation/feature-map.d.mts +29 -4
- package/dist/deep-learning/foundation/feature-map.mjs +168 -53
- package/dist/deep-learning/foundation/feed-forward-network.d.mts +17 -2
- package/dist/deep-learning/foundation/feed-forward-network.mjs +146 -56
- package/dist/deep-learning/foundation/fit-evidence.d.mts +11 -3
- package/dist/deep-learning/foundation/fit-evidence.mjs +116 -44
- package/dist/deep-learning/foundation/foundation-support.mjs +29 -0
- package/dist/deep-learning/foundation/gradient-step.d.mts +11 -2
- package/dist/deep-learning/foundation/gradient-step.mjs +114 -45
- package/dist/deep-learning/foundation/lab-goal.mjs +136 -0
- package/dist/deep-learning/foundation/latent-space.d.mts +26 -3
- package/dist/deep-learning/foundation/latent-space.mjs +138 -30
- package/dist/deep-learning/foundation/layer-normalization.d.mts +10 -1
- package/dist/deep-learning/foundation/layer-normalization.mjs +125 -48
- package/dist/deep-learning/foundation/learning-loop.d.mts +11 -2
- package/dist/deep-learning/foundation/learning-loop.mjs +112 -34
- package/dist/deep-learning/foundation/loss-error.d.mts +12 -2
- package/dist/deep-learning/foundation/loss-error.mjs +90 -35
- package/dist/deep-learning/foundation/matrix-vector.d.mts +16 -4
- package/dist/deep-learning/foundation/matrix-vector.mjs +99 -47
- package/dist/deep-learning/foundation/memory-relay.d.mts +28 -3
- package/dist/deep-learning/foundation/memory-relay.mjs +159 -28
- package/dist/deep-learning/foundation/multi-head-attention.d.mts +15 -3
- package/dist/deep-learning/foundation/multi-head-attention.mjs +131 -47
- package/dist/deep-learning/foundation/multimodal-alignment.d.mts +38 -3
- package/dist/deep-learning/foundation/multimodal-alignment.mjs +179 -38
- package/dist/deep-learning/foundation/overfit-gap.d.mts +36 -0
- package/dist/deep-learning/foundation/overfit-gap.mjs +651 -0
- package/dist/deep-learning/foundation/pixel-filter.d.mts +30 -3
- package/dist/deep-learning/foundation/pixel-filter.mjs +213 -26
- package/dist/deep-learning/foundation/position.d.mts +16 -3
- package/dist/deep-learning/foundation/position.mjs +131 -30
- package/dist/deep-learning/foundation/query-key-value.d.mts +15 -3
- package/dist/deep-learning/foundation/query-key-value.mjs +131 -37
- package/dist/deep-learning/foundation/residual-stream.d.mts +11 -2
- package/dist/deep-learning/foundation/residual-stream.mjs +104 -25
- package/dist/deep-learning/foundation/reward-groups.d.mts +53 -0
- package/dist/deep-learning/foundation/reward-groups.mjs +808 -0
- package/dist/deep-learning/foundation/scaled-dot-product-attention.d.mts +16 -2
- package/dist/deep-learning/foundation/scaled-dot-product-attention.mjs +135 -110
- package/dist/deep-learning/foundation/tiny-network.d.mts +26 -4
- package/dist/deep-learning/foundation/tiny-network.mjs +221 -30
- package/dist/deep-learning/foundation/token-generation.d.mts +26 -3
- package/dist/deep-learning/foundation/token-generation.mjs +186 -32
- package/dist/deep-learning/foundation/tokenizer-bpe.d.mts +38 -0
- package/dist/deep-learning/foundation/tokenizer-bpe.mjs +395 -0
- package/dist/deep-learning/foundation/training-loop.d.mts +12 -2
- package/dist/deep-learning/foundation/training-loop.mjs +110 -42
- package/dist/deep-learning/foundation/transformer-block.d.mts +16 -1
- package/dist/deep-learning/foundation/transformer-block.mjs +179 -60
- package/dist/deep-learning/foundation/typed-number.mjs +80 -0
- package/dist/deep-learning/foundation/unembedding.d.mts +22 -3
- package/dist/deep-learning/foundation/unembedding.mjs +156 -101
- package/dist/deep-learning/index.d.mts +39 -27
- package/dist/deep-learning/index.mjs +32 -20
- package/dist/deep-learning/schema-parts.mjs +26 -0
- package/dist/deep-learning/visuals/anomaly-diagram.d.mts +5 -3
- package/dist/deep-learning/visuals/anomaly-diagram.mjs +44 -9
- package/dist/deep-learning/visuals/attention-roles.mjs +21 -0
- package/dist/deep-learning/visuals/attention-routing-diagram.mjs +42 -43
- package/dist/deep-learning/visuals/autoencoder-diagram.d.mts +6 -3
- package/dist/deep-learning/visuals/autoencoder-diagram.mjs +17 -7
- package/dist/deep-learning/visuals/backprop-graph-diagram.d.mts +23 -0
- package/dist/deep-learning/visuals/backprop-graph-diagram.mjs +156 -0
- package/dist/deep-learning/visuals/causal-mask-diagram.d.mts +4 -1
- package/dist/deep-learning/visuals/causal-mask-diagram.mjs +101 -71
- package/dist/deep-learning/visuals/context-window-diagram.d.mts +5 -1
- package/dist/deep-learning/visuals/context-window-diagram.mjs +43 -38
- package/dist/deep-learning/visuals/convolution-diagram.d.mts +8 -3
- package/dist/deep-learning/visuals/convolution-diagram.mjs +17 -11
- package/dist/deep-learning/visuals/denoising-diagram.d.mts +4 -2
- package/dist/deep-learning/visuals/denoising-diagram.mjs +8 -4
- package/dist/deep-learning/visuals/embedding-neighborhood-diagram.d.mts +4 -2
- package/dist/deep-learning/visuals/embedding-neighborhood-diagram.mjs +16 -7
- package/dist/deep-learning/visuals/encoder-decoder-diagram.d.mts +13 -4
- package/dist/deep-learning/visuals/encoder-decoder-diagram.mjs +243 -183
- package/dist/deep-learning/visuals/feature-map-diagram.d.mts +7 -2
- package/dist/deep-learning/visuals/feature-map-diagram.mjs +60 -39
- package/dist/deep-learning/visuals/feed-forward-workshop-diagram.d.mts +2 -2
- package/dist/deep-learning/visuals/feed-forward-workshop-diagram.mjs +9 -5
- package/dist/deep-learning/visuals/latent-space-diagram.d.mts +10 -2
- package/dist/deep-learning/visuals/latent-space-diagram.mjs +56 -31
- package/dist/deep-learning/visuals/layer-normalization-diagram.d.mts +2 -2
- package/dist/deep-learning/visuals/layer-normalization-diagram.mjs +21 -25
- package/dist/deep-learning/visuals/learning-loop-diagram.mjs +4 -4
- package/dist/deep-learning/visuals/memory-relay-diagram.d.mts +4 -3
- package/dist/deep-learning/visuals/memory-relay-diagram.mjs +125 -62
- package/dist/deep-learning/visuals/multi-head-attention-diagram.d.mts +3 -2
- package/dist/deep-learning/visuals/multi-head-attention-diagram.mjs +52 -46
- package/dist/deep-learning/visuals/multimodal-alignment-diagram.d.mts +4 -3
- package/dist/deep-learning/visuals/multimodal-alignment-diagram.mjs +71 -37
- package/dist/deep-learning/visuals/neuron-diagram.d.mts +8 -0
- package/dist/deep-learning/visuals/neuron-diagram.mjs +245 -147
- package/dist/deep-learning/visuals/pixel-window-diagram.mjs +69 -0
- package/dist/deep-learning/visuals/position-diagram.d.mts +5 -1
- package/dist/deep-learning/visuals/position-diagram.mjs +48 -27
- package/dist/deep-learning/visuals/query-key-value-diagram.mjs +54 -50
- package/dist/deep-learning/visuals/residual-stream-diagram.d.mts +3 -1
- package/dist/deep-learning/visuals/residual-stream-diagram.mjs +16 -11
- package/dist/deep-learning/visuals/scaled-attention-mixer.mjs +21 -24
- package/dist/deep-learning/visuals/token-generation-diagram.d.mts +7 -1
- package/dist/deep-learning/visuals/token-generation-diagram.mjs +7 -5
- package/dist/deep-learning/visuals/training-trail-diagram.mjs +100 -12
- package/dist/deep-learning/visuals/transformer-block-diagram.d.mts +4 -1
- package/dist/deep-learning/visuals/transformer-block-diagram.mjs +20 -20
- package/dist/deep-learning/visuals/unembedding-diagram.d.mts +5 -2
- package/dist/deep-learning/visuals/unembedding-diagram.mjs +19 -14
- package/dist/deep-learning/worlds/word-list-ids.d.mts +9 -0
- package/dist/deep-learning/worlds/word-list-ids.mjs +9 -0
- package/dist/deep-learning/worlds/word-lists.d.mts +12 -0
- package/dist/deep-learning/worlds/word-lists.mjs +221 -0
- package/dist/diagrams/graph/GraphDiagram.mjs +266 -0
- package/dist/diagrams/graph/core.mjs +52 -0
- package/dist/diagrams/graph/schema.mjs +78 -0
- package/dist/diagrams/graph/spec.d.mts +88 -0
- package/dist/diagrams/index.d.mts +8 -0
- package/dist/diagrams/index.mjs +18 -0
- package/dist/diagrams/magnetism/MagnetismDiagram.d.mts +1 -0
- package/dist/diagrams/magnetism/MagnetismDiagram.mjs +1702 -0
- package/dist/diagrams/magnetism/core.mjs +586 -0
- package/dist/diagrams/magnetism/schema.mjs +236 -0
- package/dist/diagrams/magnetism/spec.d.mts +295 -0
- package/dist/diagrams/rich.mjs +27 -0
- package/dist/diagrams/schema.mjs +11 -0
- package/dist/discrete/arrangements/preset.mjs +3 -3
- package/dist/discrete/bayes/preset.d.mts +18 -2
- package/dist/discrete/bayes/preset.mjs +87 -24
- package/dist/discrete/binomial/preset.mjs +68 -28
- package/dist/discrete/combination-studio/figure.mjs +13 -9
- package/dist/discrete/combination-studio/preset.mjs +25 -39
- package/dist/discrete/core/enumerate.d.mts +34 -0
- package/dist/discrete/core/enumerate.mjs +128 -0
- package/dist/discrete/core/exact.d.mts +24 -0
- package/dist/discrete/core/exact.mjs +60 -0
- package/dist/discrete/core/index.d.mts +12 -0
- package/dist/discrete/core/rng.d.mts +2 -0
- package/dist/discrete/core/rng.mjs +3 -0
- package/dist/discrete/core/solve.d.mts +59 -0
- package/dist/discrete/core/solve.mjs +296 -0
- package/dist/discrete/core/special.d.mts +32 -0
- package/dist/discrete/core/special.mjs +101 -0
- package/dist/discrete/core/twelvefold.d.mts +33 -0
- package/dist/discrete/core/twelvefold.mjs +136 -0
- package/dist/discrete/counting-slots/preset.d.mts +7 -1
- package/dist/discrete/counting-slots/preset.mjs +48 -16
- package/dist/discrete/counting-tree/preset.mjs +1 -1
- package/dist/discrete/expected-value/preset.mjs +2 -2
- package/dist/discrete/graded-ask.mjs +184 -0
- package/dist/discrete/hypergeometric/preset.mjs +75 -25
- package/dist/discrete/index.d.mts +8 -2
- package/dist/discrete/index.mjs +7 -2
- package/dist/discrete/karnaugh/preset.mjs +64 -52
- package/dist/discrete/lln/asset.mjs +32 -35
- package/dist/discrete/lln/preset.mjs +4 -6
- package/dist/discrete/monte-carlo/preset.d.mts +22 -3
- package/dist/discrete/monte-carlo/preset.mjs +59 -13
- package/dist/discrete/monty-hall/preset.mjs +40 -124
- package/dist/discrete/monty-hall/world.mjs +234 -0
- package/dist/discrete/outcome-builder/preset.mjs +1 -1
- package/dist/discrete/pascal/preset.mjs +43 -24
- package/dist/discrete/proof-builder/preset.mjs +1 -1
- package/dist/discrete/sample-space/preset.mjs +1 -1
- package/dist/discrete/selection/preset.mjs +11 -11
- package/dist/discrete/statement-logic/core.d.mts +15 -1
- package/dist/discrete/statement-logic/preset.mjs +136 -3
- package/dist/discrete/truth-table/preset.mjs +3 -2
- package/dist/discrete/venn/preset.d.mts +1 -0
- package/dist/discrete/venn/preset.mjs +44 -20
- package/dist/distributed-systems/visuals/shard-key-board.d.mts +0 -2
- package/dist/domains/accounting/apportion/manifest.mjs +1 -0
- package/dist/domains/accounting/balance-off/manifest.mjs +87 -0
- package/dist/domains/accounting/balance-off/runtime.mjs +5 -0
- package/dist/domains/accounting/bank-reconciliation/runtime.mjs +1 -5
- package/dist/domains/accounting/bank-reconciliation/scene.mjs +52 -40
- package/dist/domains/accounting/debit-credit-sprint/manifest.mjs +105 -0
- package/dist/domains/accounting/debit-credit-sprint/runtime.mjs +5 -0
- package/dist/domains/accounting/entry-desk/manifest.mjs +110 -0
- package/dist/domains/accounting/entry-desk/runtime.mjs +5 -0
- package/dist/domains/accounting/integrated-budget-mission/activity.mjs +3 -3
- package/dist/domains/accounting/integrated-budget-mission/manifest.mjs +5 -2
- package/dist/domains/accounting/integrated-budget-mission/runtime.mjs +60 -2
- package/dist/domains/accounting/inventory-costing/activity.mjs +2 -2
- package/dist/domains/accounting/inventory-costing/manifest.mjs +10 -5
- package/dist/domains/accounting/inventory-costing/runtime.mjs +42 -24
- package/dist/domains/accounting/inventory-costing/scene.mjs +2 -2
- package/dist/domains/accounting/journal-poster/manifest.mjs +1 -0
- package/dist/domains/accounting/journal-poster/runtime.mjs +1 -0
- package/dist/domains/accounting/ledger-detective/manifest.mjs +166 -0
- package/dist/domains/accounting/ledger-detective/runtime.mjs +12 -0
- package/dist/domains/accounting/variance-detective/manifest.mjs +7 -1
- package/dist/domains/accounting/variance-detective/runtime.mjs +84 -20
- package/dist/domains/activity-map.mjs +59 -53
- package/dist/domains/block-loaders.mjs +1 -0
- package/dist/domains/block-sets/accounting.mjs +43 -35
- package/dist/domains/block-sets/chem.mjs +89 -75
- package/dist/domains/block-sets/circuits.mjs +31 -27
- package/dist/domains/block-sets/exam.mjs +2 -1
- package/dist/domains/block-sets/ict.mjs +26 -20
- package/dist/domains/block-sets/math.mjs +174 -66
- package/dist/domains/block-sets/ml.mjs +51 -35
- package/dist/domains/block-sets/physics.mjs +247 -103
- package/dist/domains/block-sets/revision.mjs +21 -0
- package/dist/domains/catalog-map.mjs +8511 -4242
- package/dist/domains/chem/acid-base/titration/manifest.mjs +62 -0
- package/dist/domains/chem/acid-base/titration/runtime.mjs +5 -0
- package/dist/domains/chem/acid-base/titration-run/activity.mjs +54 -0
- package/dist/domains/chem/acid-base/titration-run/live-scene.mjs +161 -0
- package/dist/domains/chem/acid-base/titration-run/manifest.mjs +87 -0
- package/dist/domains/chem/acid-base/titration-run/model.mjs +344 -0
- package/dist/domains/chem/acid-base/titration-run/runtime.mjs +274 -0
- package/dist/domains/chem/acid-base/titration-run/scene.mjs +191 -0
- package/dist/domains/chem/analysis/apparatus-builder/manifest.mjs +101 -0
- package/dist/domains/chem/analysis/apparatus-builder/model.mjs +411 -0
- package/dist/domains/chem/analysis/apparatus-builder/runtime.mjs +221 -0
- package/dist/domains/chem/analysis/apparatus-builder/scene.mjs +834 -0
- package/dist/domains/chem/analysis/apparatus-choice/manifest.mjs +64 -0
- package/dist/domains/chem/analysis/apparatus-choice/runtime.mjs +5 -0
- package/dist/domains/chem/analysis/change-detective/activity.mjs +81 -0
- package/dist/domains/chem/analysis/change-detective/manifest.mjs +46 -0
- package/dist/domains/chem/analysis/change-detective/model.mjs +65 -0
- package/dist/domains/chem/analysis/change-detective/runtime.mjs +73 -0
- package/dist/domains/chem/analysis/change-detective/scene.mjs +415 -0
- package/dist/domains/chem/analysis/chem-qualitative-analysis/activity.mjs +95 -0
- package/dist/domains/chem/analysis/chem-qualitative-analysis/manifest.mjs +68 -0
- package/dist/domains/chem/analysis/chem-qualitative-analysis/runtime.mjs +303 -0
- package/dist/domains/chem/analysis/chromatography-plate/activity.mjs +87 -0
- package/dist/domains/chem/analysis/chromatography-plate/manifest.mjs +59 -0
- package/dist/domains/chem/analysis/chromatography-plate/model.mjs +180 -0
- package/dist/domains/chem/analysis/chromatography-plate/runtime.mjs +200 -0
- package/dist/domains/chem/analysis/chromatography-plate/scene.mjs +292 -0
- package/dist/domains/chem/analysis/complex-colour/activity.mjs +94 -0
- package/dist/domains/chem/analysis/complex-colour/manifest.mjs +53 -0
- package/dist/domains/chem/analysis/complex-colour/model.mjs +243 -0
- package/dist/domains/chem/analysis/complex-colour/runtime.mjs +179 -0
- package/dist/domains/chem/analysis/complex-colour/scene.mjs +283 -0
- package/dist/domains/chem/analysis/composition-evidence/activity.mjs +94 -0
- package/dist/domains/chem/analysis/composition-evidence/manifest.mjs +71 -0
- package/dist/domains/chem/analysis/composition-evidence/model.mjs +60 -0
- package/dist/domains/chem/analysis/composition-evidence/runtime.mjs +127 -0
- package/dist/domains/chem/analysis/composition-evidence/scene.mjs +308 -0
- package/dist/domains/chem/analysis/conductivity-bench/activity.mjs +95 -0
- package/dist/domains/chem/analysis/conductivity-bench/manifest.mjs +69 -0
- package/dist/domains/chem/analysis/conductivity-bench/material-scene.mjs +162 -0
- package/dist/domains/chem/analysis/conductivity-bench/model.mjs +257 -0
- package/dist/domains/chem/analysis/conductivity-bench/runtime.mjs +212 -0
- package/dist/domains/chem/analysis/conductivity-bench/scene.mjs +305 -0
- package/dist/domains/chem/analysis/conductivity-bench/world.mjs +182 -0
- package/dist/domains/chem/analysis/flame-test/activity.mjs +66 -0
- package/dist/domains/chem/analysis/flame-test/manifest.mjs +85 -0
- package/dist/domains/chem/analysis/flame-test/model.mjs +171 -0
- package/dist/domains/chem/analysis/flame-test/runtime.mjs +221 -0
- package/dist/domains/chem/analysis/flame-test/scene.mjs +173 -0
- package/dist/domains/chem/analysis/paper-chromatogram/manifest.mjs +119 -0
- package/dist/domains/chem/analysis/paper-chromatogram/model.mjs +177 -0
- package/dist/domains/chem/analysis/paper-chromatogram/runtime.mjs +268 -0
- package/dist/domains/chem/analysis/paper-chromatogram/scene.mjs +310 -0
- package/dist/domains/chem/analysis/practical-observation/activity.mjs +66 -0
- package/dist/domains/chem/analysis/practical-observation/manifest.mjs +50 -0
- package/dist/domains/chem/analysis/practical-observation/model.mjs +487 -0
- package/dist/domains/chem/analysis/practical-observation/runtime.mjs +113 -0
- package/dist/domains/chem/analysis/practical-observation/scene.mjs +663 -0
- package/dist/domains/chem/analysis/precipitation-bench/activity.mjs +65 -0
- package/dist/domains/chem/analysis/precipitation-bench/manifest.mjs +61 -0
- package/dist/domains/chem/analysis/precipitation-bench/model.mjs +72 -0
- package/dist/domains/chem/analysis/precipitation-bench/runtime.mjs +117 -0
- package/dist/domains/chem/analysis/precipitation-bench/scene.mjs +170 -0
- package/dist/domains/chem/analysis/precipitation-bench/world.mjs +130 -0
- package/dist/domains/chem/analysis/reaction-evidence/manifest.mjs +63 -0
- package/dist/domains/chem/analysis/reaction-evidence/runtime.mjs +5 -0
- package/dist/domains/chem/analysis/species-workshop/activity.mjs +55 -0
- package/dist/domains/chem/analysis/species-workshop/manifest.mjs +66 -0
- package/dist/domains/chem/analysis/species-workshop/runtime.mjs +6 -0
- package/dist/domains/chem/analysis/species-workshop/world.d.mts +5 -0
- package/dist/domains/chem/analysis/species-workshop/world.mjs +124 -0
- package/dist/domains/chem/analysis/specimen-row/activity.mjs +70 -0
- package/dist/domains/chem/analysis/specimen-row/manifest.mjs +57 -0
- package/dist/domains/chem/analysis/specimen-row/model.mjs +122 -0
- package/dist/domains/chem/analysis/specimen-row/runtime.mjs +109 -0
- package/dist/domains/chem/analysis/specimen-row/scene.mjs +234 -0
- package/dist/domains/chem/analysis/structure-detective/activity.mjs +67 -0
- package/dist/domains/chem/analysis/structure-detective/manifest.mjs +59 -0
- package/dist/domains/chem/analysis/structure-detective/model.d.mts +5 -0
- package/dist/domains/chem/analysis/structure-detective/model.mjs +119 -0
- package/dist/domains/chem/analysis/structure-detective/runtime.mjs +6 -0
- package/dist/domains/chem/analysis/structure-detective/world.mjs +105 -0
- package/dist/domains/chem/electrochemistry/battery/manifest.mjs +55 -0
- package/dist/domains/chem/electrochemistry/battery/model.d.mts +18 -0
- package/dist/domains/chem/electrochemistry/battery/model.mjs +63 -0
- package/dist/domains/chem/electrochemistry/battery/runtime.mjs +15 -0
- package/dist/domains/chem/electrochemistry/battery/scene.d.mts +9 -0
- package/dist/domains/chem/electrochemistry/battery/scene.mjs +367 -0
- package/dist/domains/chem/electrochemistry/battery/world.d.mts +11 -0
- package/dist/domains/chem/electrochemistry/battery/world.mjs +92 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/activity.mjs +67 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/manifest.mjs +87 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/runtime.mjs +261 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/scene.d.mts +9 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/scene.mjs +186 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/tubes.mjs +64 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/world.d.mts +43 -0
- package/dist/domains/chem/electrochemistry/corrosion-cell/world.mjs +189 -0
- package/dist/domains/chem/electrochemistry/electrochem/manifest.mjs +72 -0
- package/dist/domains/chem/electrochemistry/electrochem/runtime.mjs +5 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/activity.mjs +92 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/manifest.mjs +117 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/model.mjs +255 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/runtime.mjs +209 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/scene.mjs +295 -0
- package/dist/domains/chem/electrochemistry/electrolysis-bench/world.mjs +96 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/activity.mjs +51 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/manifest.mjs +65 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/model.mjs +193 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/runtime.mjs +120 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/scene.mjs +271 -0
- package/dist/domains/chem/electrochemistry/faraday-bench/world.mjs +84 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/activity.mjs +81 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/manifest.mjs +49 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/model.mjs +63 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/runtime.mjs +143 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/scene.mjs +245 -0
- package/dist/domains/chem/electrochemistry/fuel-cell-flow/world.mjs +72 -0
- package/dist/domains/chem/electrochemistry/redox-balancer/activity.mjs +86 -0
- package/dist/domains/chem/electrochemistry/redox-balancer/manifest.mjs +52 -0
- package/dist/domains/chem/electrochemistry/redox-balancer/model.mjs +215 -0
- package/dist/domains/chem/electrochemistry/redox-balancer/runtime.mjs +177 -0
- package/dist/domains/chem/electrochemistry/redox-balancer/scene.mjs +267 -0
- package/dist/domains/chem/energetics/bond-energy-ledger/activity.mjs +67 -0
- package/dist/domains/chem/energetics/bond-energy-ledger/manifest.mjs +67 -0
- package/dist/domains/chem/energetics/bond-energy-ledger/model.mjs +79 -0
- package/dist/domains/chem/energetics/bond-energy-ledger/runtime.mjs +141 -0
- package/dist/domains/chem/energetics/bond-energy-ledger/scene.mjs +149 -0
- package/dist/domains/chem/energetics/energy-cycle/activity.mjs +86 -0
- package/dist/domains/chem/energetics/energy-cycle/manifest.mjs +52 -0
- package/dist/domains/chem/energetics/energy-cycle/model.mjs +249 -0
- package/dist/domains/chem/energetics/energy-cycle/runtime.mjs +176 -0
- package/dist/domains/chem/energetics/energy-cycle/scene.mjs +277 -0
- package/dist/domains/chem/energetics/hydrate-cycle/activity.mjs +96 -0
- package/dist/domains/chem/energetics/hydrate-cycle/manifest.mjs +56 -0
- package/dist/domains/chem/energetics/hydrate-cycle/model.mjs +99 -0
- package/dist/domains/chem/energetics/hydrate-cycle/runtime.mjs +187 -0
- package/dist/domains/chem/energetics/hydrate-cycle/scene.mjs +268 -0
- package/dist/domains/chem/gases-and-states/air-composition/manifest.mjs +51 -0
- package/dist/domains/chem/gases-and-states/air-composition/runtime.mjs +5 -0
- package/dist/domains/chem/gases-and-states/gas-box/manifest.mjs +89 -0
- package/dist/domains/chem/gases-and-states/gas-box/runtime.mjs +5 -0
- package/dist/domains/chem/gases-and-states/particle-theatre/manifest.mjs +72 -0
- package/dist/domains/chem/gases-and-states/particle-theatre/runtime.mjs +5 -0
- package/dist/domains/chem/gases-and-states/particle-theatre/scene.mjs +102 -0
- package/dist/domains/chem/gases-and-states/particle-theatre/world.d.mts +5 -0
- package/dist/domains/chem/gases-and-states/particle-theatre/world.mjs +203 -0
- package/dist/domains/chem/industrial/applied-chemistry/manifest.mjs +62 -0
- package/dist/domains/chem/industrial/applied-chemistry/runtime.mjs +5 -0
- package/dist/domains/chem/industrial/contact-process-control/activity.mjs +75 -0
- package/dist/domains/chem/industrial/contact-process-control/manifest.mjs +48 -0
- package/dist/domains/chem/industrial/contact-process-control/model.mjs +106 -0
- package/dist/domains/chem/industrial/contact-process-control/runtime.mjs +65 -0
- package/dist/domains/chem/industrial/contact-process-control/scene.mjs +694 -0
- package/dist/domains/chem/industrial/industrial-process/manifest.mjs +65 -0
- package/dist/domains/chem/industrial/industrial-process/runtime.mjs +5 -0
- package/dist/domains/chem/kinetics-equilibrium/catalytic-cycle/activity.mjs +36 -0
- package/dist/domains/chem/kinetics-equilibrium/catalytic-cycle/manifest.mjs +44 -0
- package/dist/domains/chem/kinetics-equilibrium/catalytic-cycle/model.mjs +61 -0
- package/dist/domains/chem/kinetics-equilibrium/catalytic-cycle/runtime.mjs +61 -0
- package/dist/domains/chem/kinetics-equilibrium/catalytic-cycle/scene.mjs +28 -0
- package/dist/domains/chem/kinetics-equilibrium/kinetics/manifest.mjs +69 -0
- package/dist/domains/chem/kinetics-equilibrium/kinetics/runtime.mjs +5 -0
- package/dist/domains/chem/kinetics-equilibrium/le-chatelier/manifest.mjs +57 -0
- package/dist/domains/chem/kinetics-equilibrium/le-chatelier/runtime.mjs +5 -0
- package/dist/domains/chem/kinetics-equilibrium/mechanism-walk/activity.mjs +53 -0
- package/dist/domains/chem/kinetics-equilibrium/mechanism-walk/manifest.mjs +53 -0
- package/dist/domains/chem/kinetics-equilibrium/mechanism-walk/model.mjs +431 -0
- package/dist/domains/chem/kinetics-equilibrium/mechanism-walk/runtime.mjs +76 -0
- package/dist/domains/chem/kinetics-equilibrium/mechanism-walk/scene.mjs +36 -0
- package/dist/domains/chem/kinetics-equilibrium/reaction-lab/manifest.mjs +56 -0
- package/dist/domains/chem/kinetics-equilibrium/reaction-lab/runtime.mjs +18 -0
- package/dist/domains/chem/kinetics-equilibrium/reaction-profile/manifest.mjs +57 -0
- package/dist/domains/chem/kinetics-equilibrium/reaction-profile/runtime.mjs +17 -0
- package/dist/domains/chem/metals/metal-reactivity-bench/manifest.mjs +97 -0
- package/dist/domains/chem/metals/metal-reactivity-bench/model.mjs +213 -0
- package/dist/domains/chem/metals/metal-reactivity-bench/runtime.mjs +242 -0
- package/dist/domains/chem/metals/metal-reactivity-bench/scene.mjs +657 -0
- package/dist/domains/chem/organic/alkene-geometry/activity.mjs +73 -0
- package/dist/domains/chem/organic/alkene-geometry/manifest.mjs +58 -0
- package/dist/domains/chem/organic/alkene-geometry/model.d.mts +131 -0
- package/dist/domains/chem/organic/alkene-geometry/model.mjs +204 -0
- package/dist/domains/chem/organic/alkene-geometry/runtime.mjs +118 -0
- package/dist/domains/chem/organic/alkene-geometry/scene.d.mts +8 -0
- package/dist/domains/chem/organic/alkene-geometry/scene.mjs +170 -0
- package/dist/domains/chem/organic/arene-evidence/activity.mjs +86 -0
- package/dist/domains/chem/organic/arene-evidence/manifest.mjs +51 -0
- package/dist/domains/chem/organic/arene-evidence/model.d.mts +71 -0
- package/dist/domains/chem/organic/arene-evidence/model.mjs +116 -0
- package/dist/domains/chem/organic/arene-evidence/runtime.mjs +140 -0
- package/dist/domains/chem/organic/arene-evidence/scene.d.mts +8 -0
- package/dist/domains/chem/organic/arene-evidence/scene.mjs +208 -0
- package/dist/domains/chem/organic/functional-group-lens/activity.mjs +86 -0
- package/dist/domains/chem/organic/functional-group-lens/manifest.mjs +54 -0
- package/dist/domains/chem/organic/functional-group-lens/model.d.mts +128 -0
- package/dist/domains/chem/organic/functional-group-lens/model.mjs +250 -0
- package/dist/domains/chem/organic/functional-group-lens/runtime.d.mts +16 -0
- package/dist/domains/chem/organic/functional-group-lens/runtime.mjs +140 -0
- package/dist/domains/chem/organic/functional-group-lens/scene.d.mts +10 -0
- package/dist/domains/chem/organic/functional-group-lens/scene.mjs +388 -0
- package/dist/domains/chem/organic/isomer-builder/activity.mjs +86 -0
- package/dist/domains/chem/organic/isomer-builder/manifest.mjs +52 -0
- package/dist/domains/chem/organic/isomer-builder/model.mjs +345 -0
- package/dist/domains/chem/organic/isomer-builder/runtime.mjs +186 -0
- package/dist/domains/chem/organic/isomer-builder/scene.mjs +216 -0
- package/dist/domains/chem/organic/isomer-builder/world.mjs +81 -0
- package/dist/domains/chem/organic/nmr-reader/activity.mjs +88 -0
- package/dist/domains/chem/organic/nmr-reader/manifest.mjs +59 -0
- package/dist/domains/chem/organic/nmr-reader/model.mjs +200 -0
- package/dist/domains/chem/organic/nmr-reader/runtime.mjs +169 -0
- package/dist/domains/chem/organic/nmr-reader/scene.mjs +30 -0
- package/dist/domains/chem/organic/organic-formula-studio/activity.mjs +128 -0
- package/dist/domains/chem/organic/organic-formula-studio/manifest.mjs +67 -0
- package/dist/domains/chem/organic/organic-formula-studio/model.mjs +47 -0
- package/dist/domains/chem/organic/organic-formula-studio/pattern-scene.mjs +344 -0
- package/dist/domains/chem/organic/organic-formula-studio/runtime.mjs +233 -0
- package/dist/domains/chem/organic/organic-formula-studio/scene.mjs +354 -0
- package/dist/domains/chem/organic/organic-formula-studio/topics.mjs +186 -0
- package/dist/domains/chem/organic/organic-reaction-map/manifest.mjs +67 -0
- package/dist/domains/chem/organic/organic-reaction-map/runtime.mjs +5 -0
- package/dist/domains/chem/organic/polymer-builder/activity.mjs +88 -0
- package/dist/domains/chem/organic/polymer-builder/manifest.mjs +63 -0
- package/dist/domains/chem/organic/polymer-builder/model.mjs +200 -0
- package/dist/domains/chem/organic/polymer-builder/runtime.mjs +182 -0
- package/dist/domains/chem/organic/polymer-builder/scene.mjs +153 -0
- package/dist/domains/chem/organic/polymer-builder/world.mjs +84 -0
- package/dist/domains/chem/organic/spectrum-reader/activity.mjs +36 -0
- package/dist/domains/chem/organic/spectrum-reader/manifest.mjs +47 -0
- package/dist/domains/chem/organic/spectrum-reader/model.mjs +244 -0
- package/dist/domains/chem/organic/spectrum-reader/runtime.mjs +62 -0
- package/dist/domains/chem/organic/spectrum-reader/scene.mjs +37 -0
- package/dist/domains/chem/organic/stereochemistry/activity.mjs +3 -0
- package/dist/domains/chem/organic/stereochemistry/manifest.mjs +65 -0
- package/dist/domains/chem/organic/stereochemistry/runtime.mjs +21 -0
- package/dist/domains/chem/organic/synthesis-route/activity.mjs +36 -0
- package/dist/domains/chem/organic/synthesis-route/manifest.mjs +45 -0
- package/dist/domains/chem/organic/synthesis-route/model.mjs +165 -0
- package/dist/domains/chem/organic/synthesis-route/runtime.mjs +75 -0
- package/dist/domains/chem/organic/synthesis-route/scene.mjs +229 -0
- package/dist/domains/chem/organic/synthesis-route/world.mjs +78 -0
- package/dist/domains/chem/quantitative/dilution/manifest.mjs +57 -0
- package/dist/domains/chem/quantitative/dilution/runtime.mjs +5 -0
- package/dist/domains/chem/quantitative/equation-conservation-desk/activity.mjs +55 -0
- package/dist/domains/chem/quantitative/equation-conservation-desk/manifest.mjs +61 -0
- package/dist/domains/chem/quantitative/equation-conservation-desk/runtime.mjs +6 -0
- package/dist/domains/chem/quantitative/formula-forge/activity.mjs +55 -0
- package/dist/domains/chem/quantitative/formula-forge/manifest.mjs +66 -0
- package/dist/domains/chem/quantitative/formula-forge/runtime.mjs +6 -0
- package/dist/domains/chem/quantitative/formula-forge/world.d.mts +5 -0
- package/dist/domains/chem/quantitative/formula-forge/world.mjs +206 -0
- package/dist/domains/chem/quantitative/formula-workbench/activity.mjs +92 -0
- package/dist/domains/chem/quantitative/formula-workbench/manifest.mjs +73 -0
- package/dist/domains/chem/quantitative/formula-workbench/model.mjs +89 -0
- package/dist/domains/chem/quantitative/formula-workbench/runtime.mjs +131 -0
- package/dist/domains/chem/quantitative/formula-workbench/scene.mjs +276 -0
- package/dist/domains/chem/quantitative/formula-workbench/world.mjs +111 -0
- package/dist/domains/chem/quantitative/mole-factory/activity.mjs +55 -0
- package/dist/domains/chem/quantitative/mole-factory/manifest.mjs +62 -0
- package/dist/domains/chem/quantitative/mole-factory/model.d.mts +5 -0
- package/dist/domains/chem/quantitative/mole-factory/model.mjs +70 -0
- package/dist/domains/chem/quantitative/mole-factory/runtime.mjs +6 -0
- package/dist/domains/chem/quantitative/mole-factory/world.mjs +90 -0
- package/dist/domains/chem/quantitative/percent-lens/activity.mjs +119 -0
- package/dist/domains/chem/quantitative/percent-lens/manifest.mjs +65 -0
- package/dist/domains/chem/quantitative/percent-lens/model.mjs +84 -0
- package/dist/domains/chem/quantitative/percent-lens/runtime.mjs +114 -0
- package/dist/domains/chem/quantitative/percent-lens/scene.mjs +278 -0
- package/dist/domains/chem/quantitative/percentage-purity-lab/activity.mjs +85 -0
- package/dist/domains/chem/quantitative/percentage-purity-lab/manifest.mjs +51 -0
- package/dist/domains/chem/quantitative/percentage-purity-lab/model.mjs +101 -0
- package/dist/domains/chem/quantitative/percentage-purity-lab/runtime.mjs +146 -0
- package/dist/domains/chem/quantitative/percentage-purity-lab/scene.mjs +306 -0
- package/dist/domains/chem/quantitative/percentage-yield-lab/activity.mjs +54 -0
- package/dist/domains/chem/quantitative/percentage-yield-lab/manifest.mjs +60 -0
- package/dist/domains/chem/quantitative/percentage-yield-lab/model.mjs +96 -0
- package/dist/domains/chem/quantitative/percentage-yield-lab/runtime.mjs +124 -0
- package/dist/domains/chem/quantitative/percentage-yield-lab/scene.mjs +153 -0
- package/dist/domains/chem/quantitative/quantity-route/manifest.mjs +133 -0
- package/dist/domains/chem/quantitative/quantity-route/runtime.mjs +5 -0
- package/dist/domains/chem/quantitative/ratio-normalizer/manifest.mjs +61 -0
- package/dist/domains/chem/quantitative/ratio-normalizer/runtime.mjs +5 -0
- package/dist/domains/chem/quantitative/relation-origin/activity.mjs +42 -0
- package/dist/domains/chem/quantitative/relation-origin/manifest.mjs +61 -0
- package/dist/domains/chem/quantitative/relation-origin/model.mjs +185 -0
- package/dist/domains/chem/quantitative/relation-origin/runtime.mjs +110 -0
- package/dist/domains/chem/quantitative/relation-origin/scene.mjs +197 -0
- package/dist/domains/chem/quantitative/solution-box/manifest.mjs +57 -0
- package/dist/domains/chem/quantitative/solution-box/runtime.mjs +5 -0
- package/dist/domains/chem/quantitative/solution-mixer/activity.mjs +54 -0
- package/dist/domains/chem/quantitative/solution-mixer/manifest.mjs +58 -0
- package/dist/domains/chem/quantitative/solution-mixer/model.d.mts +4 -0
- package/dist/domains/chem/quantitative/solution-mixer/model.mjs +32 -0
- package/dist/domains/chem/quantitative/solution-mixer/runtime.mjs +6 -0
- package/dist/domains/chem/quantitative/solution-mixer/world.mjs +92 -0
- package/dist/domains/chem/quantitative/stoichiometry/manifest.mjs +61 -0
- package/dist/domains/chem/quantitative/stoichiometry/runtime.mjs +5 -0
- package/dist/domains/chem/salts-and-solubility/reagent-ladder/activity.mjs +85 -0
- package/dist/domains/chem/salts-and-solubility/reagent-ladder/manifest.mjs +58 -0
- package/dist/domains/chem/salts-and-solubility/reagent-ladder/model.mjs +120 -0
- package/dist/domains/chem/salts-and-solubility/reagent-ladder/runtime.mjs +107 -0
- package/dist/domains/chem/salts-and-solubility/reagent-ladder/scene.mjs +174 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/activity.mjs +54 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/manifest.mjs +66 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/model.d.mts +4 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/model.mjs +68 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/runtime.mjs +6 -0
- package/dist/domains/chem/salts-and-solubility/solubility-kitchen/world.mjs +101 -0
- package/dist/domains/chem/salts-and-solubility/soluble-salt-workshop/activity.mjs +115 -0
- package/dist/domains/chem/salts-and-solubility/soluble-salt-workshop/manifest.mjs +50 -0
- package/dist/domains/chem/salts-and-solubility/soluble-salt-workshop/model.mjs +187 -0
- package/dist/domains/chem/salts-and-solubility/soluble-salt-workshop/runtime.mjs +118 -0
- package/dist/domains/chem/salts-and-solubility/soluble-salt-workshop/scene.mjs +700 -0
- package/dist/domains/chem/structure/atomic-orbital/activity.mjs +3 -0
- package/dist/domains/chem/structure/atomic-orbital/manifest.mjs +71 -0
- package/dist/domains/chem/structure/atomic-orbital/runtime.mjs +20 -0
- package/dist/domains/chem/structure/atomic-orbital/world.d.mts +20 -0
- package/dist/domains/chem/structure/atomic-orbital/world.mjs +103 -0
- package/dist/domains/chem/structure/bohr-atom/activity.mjs +58 -0
- package/dist/domains/chem/structure/bohr-atom/manifest.mjs +55 -0
- package/dist/domains/chem/structure/bohr-atom/model.d.mts +28 -0
- package/dist/domains/chem/structure/bohr-atom/model.mjs +66 -0
- package/dist/domains/chem/structure/bohr-atom/runtime.d.mts +12 -0
- package/dist/domains/chem/structure/bohr-atom/runtime.mjs +89 -0
- package/dist/domains/chem/structure/bohr-atom/scene.d.mts +8 -0
- package/dist/domains/chem/structure/bohr-atom/scene.mjs +125 -0
- package/dist/domains/chem/structure/bohr-atom/world.d.mts +9 -0
- package/dist/domains/chem/structure/bohr-atom/world.mjs +52 -0
- package/dist/domains/chem/structure/complex-shape/activity.mjs +86 -0
- package/dist/domains/chem/structure/complex-shape/manifest.mjs +52 -0
- package/dist/domains/chem/structure/complex-shape/model.mjs +182 -0
- package/dist/domains/chem/structure/complex-shape/runtime.mjs +165 -0
- package/dist/domains/chem/structure/complex-shape/scene.mjs +270 -0
- package/dist/domains/chem/structure/covalent-bond-builder/activity.mjs +58 -0
- package/dist/domains/chem/structure/covalent-bond-builder/manifest.mjs +63 -0
- package/dist/domains/chem/structure/covalent-bond-builder/model.d.mts +42 -0
- package/dist/domains/chem/structure/covalent-bond-builder/model.mjs +116 -0
- package/dist/domains/chem/structure/covalent-bond-builder/runtime.mjs +82 -0
- package/dist/domains/chem/structure/covalent-bond-builder/scene.d.mts +10 -0
- package/dist/domains/chem/structure/covalent-bond-builder/scene.mjs +229 -0
- package/dist/domains/chem/structure/covalent-bond-builder/world.d.mts +9 -0
- package/dist/domains/chem/structure/covalent-bond-builder/world.mjs +52 -0
- package/dist/domains/chem/structure/crystal-lattice/activity.mjs +3 -0
- package/dist/domains/chem/structure/crystal-lattice/manifest.mjs +82 -0
- package/dist/domains/chem/structure/crystal-lattice/runtime.mjs +21 -0
- package/dist/domains/chem/structure/crystal-lattice/world.d.mts +24 -0
- package/dist/domains/chem/structure/crystal-lattice/world.mjs +131 -0
- package/dist/domains/chem/structure/electron-configuration/activity.mjs +63 -0
- package/dist/domains/chem/structure/electron-configuration/manifest.mjs +58 -0
- package/dist/domains/chem/structure/electron-configuration/model.d.mts +50 -0
- package/dist/domains/chem/structure/electron-configuration/model.mjs +243 -0
- package/dist/domains/chem/structure/electron-configuration/runtime.mjs +93 -0
- package/dist/domains/chem/structure/electron-configuration/scene.d.mts +9 -0
- package/dist/domains/chem/structure/electron-configuration/scene.mjs +151 -0
- package/dist/domains/chem/structure/electron-configuration/world.d.mts +9 -0
- package/dist/domains/chem/structure/electron-configuration/world.mjs +58 -0
- package/dist/domains/chem/structure/ionic-bond-builder/activity.mjs +58 -0
- package/dist/domains/chem/structure/ionic-bond-builder/manifest.mjs +52 -0
- package/dist/domains/chem/structure/ionic-bond-builder/model.d.mts +39 -0
- package/dist/domains/chem/structure/ionic-bond-builder/model.mjs +104 -0
- package/dist/domains/chem/structure/ionic-bond-builder/runtime.mjs +88 -0
- package/dist/domains/chem/structure/ionic-bond-builder/scene.d.mts +10 -0
- package/dist/domains/chem/structure/ionic-bond-builder/scene.mjs +183 -0
- package/dist/domains/chem/structure/ionic-bond-builder/world.d.mts +9 -0
- package/dist/domains/chem/structure/ionic-bond-builder/world.mjs +52 -0
- package/dist/domains/chem/structure/molecular-geometry/activity.mjs +3 -0
- package/dist/domains/chem/structure/molecular-geometry/manifest.mjs +74 -0
- package/dist/domains/chem/structure/molecular-geometry/runtime.mjs +22 -0
- package/dist/domains/chem/structure/molecular-geometry/world.d.mts +24 -0
- package/dist/domains/chem/structure/molecular-geometry/world.mjs +99 -0
- package/dist/domains/chem/structure/orbital-diagram/activity.mjs +74 -0
- package/dist/domains/chem/structure/orbital-diagram/manifest.mjs +58 -0
- package/dist/domains/chem/structure/orbital-diagram/model.d.mts +92 -0
- package/dist/domains/chem/structure/orbital-diagram/model.mjs +189 -0
- package/dist/domains/chem/structure/orbital-diagram/runtime.mjs +108 -0
- package/dist/domains/chem/structure/orbital-diagram/scene.mjs +289 -0
- package/dist/domains/chem/structure/orbital-diagram/world.d.mts +9 -0
- package/dist/domains/chem/structure/orbital-diagram/world.mjs +59 -0
- package/dist/domains/chem/structure/orbital-overlap/activity.mjs +3 -0
- package/dist/domains/chem/structure/orbital-overlap/manifest.mjs +60 -0
- package/dist/domains/chem/structure/orbital-overlap/runtime.mjs +18 -0
- package/dist/domains/chem/structure/orbital-overlap/world.d.mts +20 -0
- package/dist/domains/chem/structure/orbital-overlap/world.mjs +101 -0
- package/dist/domains/chem/structure/periodic-trends/manifest.mjs +60 -0
- package/dist/domains/chem/structure/periodic-trends/runtime.mjs +5 -0
- package/dist/domains/chem/structure/periodic-trends/world.d.mts +17 -0
- package/dist/domains/chem/structure/periodic-trends/world.mjs +85 -0
- package/dist/domains/chem/structure/trend-axis/activity.mjs +52 -0
- package/dist/domains/chem/structure/trend-axis/manifest.mjs +57 -0
- package/dist/domains/chem/structure/trend-axis/model.d.mts +8 -0
- package/dist/domains/chem/structure/trend-axis/model.mjs +487 -0
- package/dist/domains/chem/structure/trend-axis/runtime.mjs +84 -0
- package/dist/domains/chem/structure/trend-axis/scene.mjs +244 -0
- package/dist/domains/chem/structure/trend-axis/world.d.mts +21 -0
- package/dist/domains/chem/structure/trend-axis/world.mjs +76 -0
- package/dist/domains/circuits/ac-response/manifest.mjs +3 -1
- package/dist/domains/circuits/bjt-amplifier/manifest.mjs +67 -0
- package/dist/domains/circuits/bjt-amplifier/runtime.mjs +5 -0
- package/dist/domains/circuits/circuit-scene/authoring.mjs +9 -13
- package/dist/domains/circuits/circuit-scene/manifest.mjs +57 -34
- package/dist/domains/circuits/circuit-scene/runtime.mjs +8 -11
- package/dist/domains/circuits/op-amp-comparator/manifest.mjs +65 -0
- package/dist/domains/circuits/op-amp-comparator/runtime.mjs +5 -0
- package/dist/domains/circuits/rc-charging/manifest.mjs +4 -4
- package/dist/domains/discrete/bayes/manifest.mjs +7 -0
- package/dist/domains/discrete/counting-slots/manifest.mjs +26 -0
- package/dist/domains/discrete/monte-carlo/manifest.mjs +26 -0
- package/dist/domains/discrete/rule-card/manifest.mjs +4 -1
- package/dist/domains/discrete/rule-card/runtime.mjs +9 -2
- package/dist/domains/domain-map.mjs +318 -4
- package/dist/domains/exam/exam-question/manifest.mjs +4 -1
- package/dist/domains/exam/practice-set/manifest.mjs +116 -0
- package/dist/domains/exam/practice-set/runtime.mjs +5 -0
- package/dist/domains/geometry/geometry-board/runtime.mjs +15 -1
- package/dist/domains/ict/array-vs-list/manifest.mjs +20 -12
- package/dist/domains/ict/binary-search/manifest.mjs +18 -12
- package/dist/domains/ict/bound-prover/manifest.mjs +75 -0
- package/dist/domains/ict/bound-prover/model.mjs +163 -0
- package/dist/domains/ict/bound-prover/runtime.mjs +396 -0
- package/dist/domains/ict/coin-change/manifest.mjs +83 -0
- package/dist/domains/ict/coin-change/runtime.mjs +5 -0
- package/dist/domains/ict/complexity-growth/manifest.mjs +44 -5
- package/dist/domains/ict/cost-derivation/manifest.mjs +19 -6
- package/dist/domains/ict/graph-algorithm/authoring.mjs +116 -42
- package/dist/domains/ict/graph-algorithm/manifest.mjs +41 -15
- package/dist/domains/ict/grid-path-dp/authoring.mjs +9 -2
- package/dist/domains/ict/grid-path-dp/manifest.mjs +70 -10
- package/dist/domains/ict/hash-table/manifest.mjs +21 -11
- package/dist/domains/ict/heap-quest/authoring.mjs +101 -29
- package/dist/domains/ict/heap-quest/manifest.mjs +26 -14
- package/dist/domains/ict/recursion-tree/manifest.mjs +75 -0
- package/dist/domains/ict/recursion-tree/runtime.mjs +300 -0
- package/dist/domains/ict/sorting-quest/manifest.mjs +31 -13
- package/dist/domains/ict/tree-quest/authoring.mjs +80 -18
- package/dist/domains/ict/tree-quest/manifest.mjs +23 -18
- package/dist/domains/ict/wire-a-chip/runtime.mjs +106 -29
- package/dist/domains/manifests.mjs +815 -501
- package/dist/domains/math/alligation-mix/manifest.mjs +64 -0
- package/dist/domains/math/alligation-mix/runtime.mjs +5 -0
- package/dist/domains/math/angle-between-lines/manifest.mjs +56 -0
- package/dist/domains/math/angle-between-lines/runtime.mjs +5 -0
- package/dist/domains/math/angle-chase/manifest.mjs +103 -0
- package/dist/domains/math/angle-chase/runtime.mjs +5 -0
- package/dist/domains/math/associated-angle-wheel/manifest.mjs +75 -0
- package/dist/domains/math/associated-angle-wheel/runtime.mjs +5 -0
- package/dist/domains/math/bearings/manifest.mjs +34 -2
- package/dist/domains/math/broken-tree/manifest.mjs +32 -2
- package/dist/domains/math/chord-bisection/manifest.mjs +61 -0
- package/dist/domains/math/chord-bisection/runtime.mjs +5 -0
- package/dist/domains/math/chord-given-midpoint/manifest.mjs +56 -0
- package/dist/domains/math/chord-given-midpoint/runtime.mjs +5 -0
- package/dist/domains/math/chord-of-contact/manifest.mjs +56 -0
- package/dist/domains/math/chord-of-contact/runtime.mjs +5 -0
- package/dist/domains/math/circle-diameter-endpoints/manifest.mjs +60 -0
- package/dist/domains/math/circle-diameter-endpoints/runtime.mjs +5 -0
- package/dist/domains/math/circle-geometry/runtime.mjs +1 -1
- package/dist/domains/math/circle-intersection-angle/manifest.mjs +57 -0
- package/dist/domains/math/circle-intersection-angle/runtime.mjs +5 -0
- package/dist/domains/math/circle-line-tangency/manifest.mjs +61 -0
- package/dist/domains/math/circle-line-tangency/runtime.mjs +5 -0
- package/dist/domains/math/circle-through-points/manifest.mjs +56 -0
- package/dist/domains/math/circle-through-points/runtime.mjs +5 -0
- package/dist/domains/math/clock-hand-angle/manifest.mjs +57 -0
- package/dist/domains/math/clock-hand-angle/runtime.mjs +305 -0
- package/dist/domains/math/common-tangents-count/manifest.mjs +61 -0
- package/dist/domains/math/common-tangents-count/runtime.mjs +5 -0
- package/dist/domains/math/composite-functions/manifest.mjs +79 -0
- package/dist/domains/math/composite-functions/runtime.mjs +5 -0
- package/dist/domains/math/compound-angle-proof/manifest.mjs +59 -0
- package/dist/domains/math/compound-angle-proof/runtime.mjs +510 -0
- package/dist/domains/math/coord-point/manifest.mjs +64 -0
- package/dist/domains/math/coord-point/runtime.mjs +5 -0
- package/dist/domains/math/derivation/authoring.mjs +67 -48
- package/dist/domains/math/derivation/manifest.mjs +8 -4
- package/dist/domains/math/derivation/runtime.mjs +5 -2
- package/dist/domains/math/discriminant-radar/manifest.mjs +78 -0
- package/dist/domains/math/discriminant-radar/runtime.mjs +23 -0
- package/dist/domains/math/distribute-strip/manifest.mjs +61 -0
- package/dist/domains/math/distribute-strip/runtime.mjs +5 -0
- package/dist/domains/math/exact-triangle/manifest.mjs +38 -8
- package/dist/domains/math/exact-triangle/runtime.mjs +2 -3
- package/dist/domains/math/family-tree/manifest.mjs +118 -0
- package/dist/domains/math/family-tree/runtime.mjs +5 -0
- package/dist/domains/math/geometry-foundations/manifest.mjs +6 -1
- package/dist/domains/math/graph-transform/manifest.mjs +65 -0
- package/dist/domains/math/graph-transform/runtime.mjs +5 -0
- package/dist/domains/math/implicit-parametric-derivative/manifest.mjs +62 -0
- package/dist/domains/math/implicit-parametric-derivative/runtime.mjs +26 -0
- package/dist/domains/math/inequality-line/manifest.mjs +63 -0
- package/dist/domains/math/inequality-line/runtime.mjs +5 -0
- package/dist/domains/math/inequality-solver/manifest.mjs +69 -0
- package/dist/domains/math/inequality-solver/runtime.mjs +5 -0
- package/dist/domains/math/injective-classifier/manifest.mjs +60 -0
- package/dist/domains/math/injective-classifier/runtime.mjs +5 -0
- package/dist/domains/math/integration-workbench/manifest.mjs +58 -0
- package/dist/domains/math/integration-workbench/runtime.mjs +23 -0
- package/dist/domains/math/inverse-functions/manifest.mjs +55 -0
- package/dist/domains/math/inverse-functions/runtime.mjs +5 -0
- package/dist/domains/math/line-concurrency/manifest.mjs +59 -0
- package/dist/domains/math/line-concurrency/runtime.mjs +5 -0
- package/dist/domains/math/line-family/manifest.mjs +57 -0
- package/dist/domains/math/line-family/runtime.mjs +5 -0
- package/dist/domains/math/linear-map/manifest.mjs +59 -0
- package/dist/domains/math/linear-map/runtime.mjs +12 -0
- package/dist/domains/math/linearisation/activity.mjs +4 -2
- package/dist/domains/math/linearisation/runtime.mjs +25 -15
- package/dist/domains/math/modulus-function/manifest.mjs +58 -0
- package/dist/domains/math/modulus-function/runtime.mjs +5 -0
- package/dist/domains/math/modulus-inequality/manifest.mjs +66 -0
- package/dist/domains/math/modulus-inequality/runtime.mjs +5 -0
- package/dist/domains/math/multiple-angle-wheel/manifest.mjs +66 -0
- package/dist/domains/math/multiple-angle-wheel/runtime.mjs +5 -0
- package/dist/domains/math/oblique-triangle/manifest.mjs +86 -3
- package/dist/domains/math/point-line-distance/manifest.mjs +55 -0
- package/dist/domains/math/point-line-distance/runtime.mjs +5 -0
- package/dist/domains/math/point-reflection/manifest.mjs +55 -0
- package/dist/domains/math/point-reflection/runtime.mjs +5 -0
- package/dist/domains/math/polar-cartesian/manifest.mjs +53 -0
- package/dist/domains/math/polar-cartesian/runtime.mjs +5 -0
- package/dist/domains/math/polynomial-solver/manifest.mjs +29 -11
- package/dist/domains/math/price-chain/manifest.mjs +68 -0
- package/dist/domains/math/price-chain/runtime.mjs +5 -0
- package/dist/domains/math/pythagoras-dissection/manifest.mjs +89 -0
- package/dist/domains/math/pythagoras-dissection/runtime.mjs +3 -0
- package/dist/domains/math/radical-axis/manifest.mjs +61 -0
- package/dist/domains/math/radical-axis/runtime.mjs +5 -0
- package/dist/domains/math/ratio-share/manifest.mjs +3 -1
- package/dist/domains/math/relative-speed-track/manifest.mjs +68 -0
- package/dist/domains/math/relative-speed-track/runtime.mjs +5 -0
- package/dist/domains/math/root-fingerprint/manifest.mjs +63 -0
- package/dist/domains/math/root-fingerprint/runtime.mjs +27 -0
- package/dist/domains/math/root-mover/manifest.mjs +57 -0
- package/dist/domains/math/root-mover/runtime.mjs +23 -0
- package/dist/domains/math/section-formula/manifest.mjs +54 -0
- package/dist/domains/math/section-formula/runtime.mjs +5 -0
- package/dist/domains/math/sequence-predict/manifest.mjs +27 -5
- package/dist/domains/math/solids-of-revolution/manifest.mjs +79 -0
- package/dist/domains/math/solids-of-revolution/runtime.mjs +61 -0
- package/dist/domains/math/special-triangles/manifest.mjs +74 -0
- package/dist/domains/math/special-triangles/runtime.mjs +3 -0
- package/dist/domains/math/stationary-point-classifier/manifest.mjs +55 -0
- package/dist/domains/math/stationary-point-classifier/runtime.mjs +19 -0
- package/dist/domains/math/story-scene/manifest.mjs +41 -0
- package/dist/domains/math/story-scene/runtime.mjs +5 -0
- package/dist/domains/math/straight-line/runtime.mjs +1 -1
- package/dist/domains/math/substitute-value/manifest.mjs +61 -0
- package/dist/domains/math/substitute-value/runtime.mjs +5 -0
- package/dist/domains/math/sum-to-product-waves/manifest.mjs +61 -0
- package/dist/domains/math/sum-to-product-waves/runtime.mjs +5 -0
- package/dist/domains/math/tangent-length-power-of-point/manifest.mjs +56 -0
- package/dist/domains/math/tangent-length-power-of-point/runtime.mjs +5 -0
- package/dist/domains/math/tangent-normal/manifest.mjs +56 -0
- package/dist/domains/math/tangent-normal/runtime.mjs +20 -0
- package/dist/domains/math/tangent-rule-triangle/manifest.mjs +59 -0
- package/dist/domains/math/tangent-rule-triangle/runtime.mjs +5 -0
- package/dist/domains/math/triangle-area/manifest.mjs +81 -0
- package/dist/domains/math/triangle-area/runtime.mjs +5 -0
- package/dist/domains/math/triangle-trig/manifest.mjs +47 -4
- package/dist/domains/math/triangle-trig/runtime.mjs +1 -1
- package/dist/domains/math/trig-equation-solver/manifest.mjs +66 -0
- package/dist/domains/math/trig-equation-solver/runtime.mjs +5 -0
- package/dist/domains/math/trig-general-solution/manifest.mjs +59 -0
- package/dist/domains/math/trig-general-solution/runtime.mjs +5 -0
- package/dist/domains/ml/activation-gates/manifest.mjs +53 -10
- package/dist/domains/ml/affine-neuron/manifest.mjs +58 -9
- package/dist/domains/ml/anomaly-detector/manifest.mjs +34 -5
- package/dist/domains/ml/attention-fields.mjs +28 -0
- package/dist/domains/ml/attention-routing/manifest.mjs +67 -4
- package/dist/domains/ml/autoencoder/manifest.mjs +31 -4
- package/dist/domains/ml/backprop-tracer/manifest.mjs +147 -0
- package/dist/domains/ml/backprop-tracer/runtime.mjs +3 -0
- package/dist/domains/ml/causal-mask/manifest.mjs +29 -4
- package/dist/domains/ml/char-model/manifest.mjs +134 -0
- package/dist/domains/ml/char-model/runtime.mjs +3 -0
- package/dist/domains/ml/classifier-threshold/manifest.mjs +63 -6
- package/dist/domains/ml/classifier-threshold/runtime.d.mts +33 -2
- package/dist/domains/ml/classifier-threshold/runtime.mjs +518 -186
- package/dist/domains/ml/classifier-threshold/scores-setup.mjs +30 -0
- package/dist/domains/ml/context-window/manifest.mjs +56 -3
- package/dist/domains/ml/decision-boundary/manifest.mjs +7 -6
- package/dist/domains/ml/decision-boundary/runtime.d.mts +18 -3
- package/dist/domains/ml/decision-boundary/runtime.mjs +176 -162
- package/dist/domains/ml/denoising/manifest.mjs +30 -4
- package/dist/domains/ml/embedding-neighborhood/manifest.mjs +47 -4
- package/dist/domains/ml/embedding-space/manifest.mjs +28 -9
- package/dist/domains/ml/embedding-space/runtime.mjs +99 -49
- package/dist/domains/ml/encoder-decoder/manifest.mjs +55 -4
- package/dist/domains/ml/feature-map/manifest.mjs +38 -3
- package/dist/domains/ml/feed-forward-network/manifest.mjs +86 -8
- package/dist/domains/ml/fit-evidence/manifest.mjs +29 -9
- package/dist/domains/ml/gradient-step/manifest.mjs +27 -9
- package/dist/domains/ml/kmeans/manifest.mjs +32 -12
- package/dist/domains/ml/kmeans/runtime.d.mts +20 -1
- package/dist/domains/ml/kmeans/runtime.mjs +248 -69
- package/dist/domains/ml/knn/axis-caption.mjs +37 -0
- package/dist/domains/ml/knn/class-plane.mjs +133 -0
- package/dist/domains/ml/knn/manifest.mjs +10 -6
- package/dist/domains/ml/knn/question-schema.d.mts +21 -0
- package/dist/domains/ml/knn/question-schema.mjs +40 -0
- package/dist/domains/ml/knn/questions.d.mts +3 -0
- package/dist/domains/ml/knn/questions.mjs +85 -0
- package/dist/domains/ml/knn/runtime.d.mts +25 -3
- package/dist/domains/ml/knn/runtime.mjs +223 -131
- package/dist/domains/ml/knn/typed-check.mjs +53 -0
- package/dist/domains/ml/latent-space/manifest.mjs +46 -4
- package/dist/domains/ml/layer-normalization/manifest.mjs +33 -10
- package/dist/domains/ml/learning-loop/manifest.mjs +23 -9
- package/dist/domains/ml/logistic-fit/manifest.mjs +104 -0
- package/dist/domains/ml/logistic-fit/runtime.mjs +638 -0
- package/dist/domains/ml/loss-error/manifest.mjs +31 -6
- package/dist/domains/ml/matrix-vector/manifest.mjs +47 -7
- package/dist/domains/ml/memory-relay/manifest.mjs +47 -4
- package/dist/domains/ml/model-complexity/manifest.mjs +101 -0
- package/dist/domains/ml/model-complexity/runtime.mjs +466 -0
- package/dist/domains/ml/multi-head-attention/manifest.mjs +68 -4
- package/dist/domains/ml/multimodal-alignment/manifest.mjs +58 -4
- package/dist/domains/ml/next-token/manifest.mjs +24 -3
- package/dist/domains/ml/next-token/runtime.mjs +116 -39
- package/dist/domains/ml/overfit-gap/manifest.mjs +105 -0
- package/dist/domains/ml/overfit-gap/runtime.mjs +3 -0
- package/dist/domains/ml/pixel-filter/manifest.mjs +50 -5
- package/dist/domains/ml/position-signals/manifest.mjs +47 -4
- package/dist/domains/ml/query-key-value/manifest.mjs +49 -4
- package/dist/domains/ml/regression/manifest.mjs +90 -15
- package/dist/domains/ml/regression/points-setup.d.mts +14 -0
- package/dist/domains/ml/regression/points-setup.mjs +73 -0
- package/dist/domains/ml/regression/runtime.d.mts +36 -2
- package/dist/domains/ml/regression/runtime.mjs +550 -176
- package/dist/domains/ml/residual-stream/manifest.mjs +15 -4
- package/dist/domains/ml/reward-groups/manifest.mjs +149 -0
- package/dist/domains/ml/reward-groups/runtime.mjs +3 -0
- package/dist/domains/ml/scaled-dot-product-attention/manifest.mjs +61 -7
- package/dist/domains/ml/split-and-leak/manifest.mjs +154 -0
- package/dist/domains/ml/split-and-leak/runtime.mjs +618 -0
- package/dist/domains/ml/tiny-network/manifest.mjs +60 -6
- package/dist/domains/ml/token-generation/manifest.mjs +61 -4
- package/dist/domains/ml/tokenizer-bpe/manifest.mjs +126 -0
- package/dist/domains/ml/tokenizer-bpe/runtime.mjs +3 -0
- package/dist/domains/ml/training-loop/manifest.mjs +30 -10
- package/dist/domains/ml/transformer-block/manifest.mjs +47 -6
- package/dist/domains/ml/unembedding/manifest.mjs +75 -9
- package/dist/domains/networking/_shared/decision-scene.mjs +74 -12
- package/dist/domains/networking/data-recovery-planner/scene.mjs +11 -7
- package/dist/domains/networking/packet-journey/runtime.mjs +19 -7
- package/dist/domains/networking/packet-journey/world.mjs +73 -0
- package/dist/domains/networking/server-deployment/scene.mjs +41 -35
- package/dist/domains/networking/slo-incident-console/scene.mjs +45 -34
- package/dist/domains/networking/vpc-route-planner/scene.mjs +32 -8
- package/dist/domains/physics/ac-generator/manifest.mjs +5 -0
- package/dist/domains/physics/acoustic-boundary/manifest.mjs +58 -0
- package/dist/domains/physics/acoustic-boundary/runtime.mjs +5 -0
- package/dist/domains/physics/alternating-current/manifest.mjs +9 -1
- package/dist/domains/physics/beam-reactions/manifest.mjs +67 -0
- package/dist/domains/physics/beam-reactions/runtime.mjs +12 -0
- package/dist/domains/physics/buoyancy/manifest.mjs +58 -0
- package/dist/domains/physics/buoyancy/runtime.mjs +5 -0
- package/dist/domains/physics/capacitor-energy/manifest.mjs +65 -0
- package/dist/domains/physics/capacitor-energy/runtime.mjs +3 -0
- package/dist/domains/physics/carnot/manifest.mjs +5 -1
- package/dist/domains/physics/circuit-energy-flow/manifest.mjs +65 -0
- package/dist/domains/physics/circuit-energy-flow/runtime.mjs +5 -0
- package/dist/domains/physics/circuit-fault-detective/runtime.mjs +3 -3
- package/dist/domains/physics/circuit-iv-investigation/runtime.mjs +2 -2
- package/dist/domains/physics/circular-motion/manifest.mjs +12 -1
- package/dist/domains/physics/coherence/manifest.mjs +57 -0
- package/dist/domains/physics/coherence/runtime.mjs +5 -0
- package/dist/domains/physics/contact-pressure/manifest.mjs +63 -0
- package/dist/domains/physics/contact-pressure/runtime.mjs +5 -0
- package/dist/domains/physics/cooling-insulation-investigation/runtime.mjs +1 -1
- package/dist/domains/physics/cosmic-expansion/manifest.mjs +58 -0
- package/dist/domains/physics/cosmic-expansion/runtime.mjs +3 -0
- package/dist/domains/physics/data-table-clinic/manifest.mjs +75 -0
- package/dist/domains/physics/data-table-clinic/runtime.mjs +137 -0
- package/dist/domains/physics/dc-motor/manifest.mjs +6 -1
- package/dist/domains/physics/density-displacement/activity.mjs +3 -3
- package/dist/domains/physics/density-displacement/runtime.mjs +84 -86
- package/dist/domains/physics/diffraction-grating/manifest.mjs +51 -0
- package/dist/domains/physics/diffraction-grating/runtime.mjs +5 -0
- package/dist/domains/physics/echo-ranging/manifest.mjs +58 -0
- package/dist/domains/physics/echo-ranging/runtime.mjs +5 -0
- package/dist/domains/physics/energy-resource-grid/runtime.mjs +1 -1
- package/dist/domains/physics/evaluation-clinic/manifest.mjs +73 -0
- package/dist/domains/physics/evaluation-clinic/runtime.mjs +322 -0
- package/dist/domains/physics/evaporation/manifest.mjs +56 -0
- package/dist/domains/physics/evaporation/runtime.mjs +5 -0
- package/dist/domains/physics/eye-correction/manifest.mjs +62 -0
- package/dist/domains/physics/eye-correction/runtime.mjs +5 -0
- package/dist/domains/physics/fibre-pulse/manifest.mjs +64 -0
- package/dist/domains/physics/fibre-pulse/runtime.mjs +5 -0
- package/dist/domains/physics/field-geometry/manifest.mjs +82 -0
- package/dist/domains/physics/field-geometry/runtime.mjs +5 -0
- package/dist/domains/physics/fluid-pressure/manifest.mjs +2 -2
- package/dist/domains/physics/gap-diffraction/manifest.mjs +58 -0
- package/dist/domains/physics/gap-diffraction/runtime.mjs +5 -0
- package/dist/domains/physics/gas-process/manifest.mjs +5 -1
- package/dist/domains/physics/gas-theory/manifest.mjs +70 -0
- package/dist/domains/physics/gas-theory/runtime.mjs +5 -0
- package/dist/domains/physics/generator-grid-mission/manifest.mjs +1 -1
- package/dist/domains/physics/generator-grid-mission/model.mjs +26 -0
- package/dist/domains/physics/generator-grid-mission/runtime.mjs +4 -3
- package/dist/domains/physics/glass-block-refraction/runtime.mjs +15 -4
- package/dist/domains/physics/graph-craft/manifest.mjs +67 -0
- package/dist/domains/physics/graph-craft/runtime.mjs +161 -0
- package/dist/domains/physics/harmonic-modes/manifest.mjs +60 -0
- package/dist/domains/physics/harmonic-modes/runtime.mjs +5 -0
- package/dist/domains/physics/heat-transfer/manifest.mjs +1 -0
- package/dist/domains/physics/heat-transfer-cases/manifest.mjs +45 -0
- package/dist/domains/physics/heat-transfer-cases/runtime.mjs +3 -0
- package/dist/domains/physics/heating-curve/manifest.mjs +6 -0
- package/dist/domains/physics/hydrogen-spectrum/manifest.mjs +55 -0
- package/dist/domains/physics/hydrogen-spectrum/runtime.mjs +5 -0
- package/dist/domains/physics/induction-bench/manifest.mjs +58 -0
- package/dist/domains/physics/induction-bench/runtime.mjs +5 -0
- package/dist/domains/physics/inductor-energy/manifest.mjs +59 -0
- package/dist/domains/physics/inductor-energy/runtime.mjs +5 -0
- package/dist/domains/physics/intensity-amplitude/manifest.mjs +53 -0
- package/dist/domains/physics/intensity-amplitude/runtime.mjs +5 -0
- package/dist/domains/physics/lens-focal-investigation/runtime.mjs +1 -1
- package/dist/domains/physics/lens-geometry/manifest.mjs +81 -0
- package/dist/domains/physics/lens-geometry/runtime.mjs +5 -0
- package/dist/domains/physics/lens-mission/manifest.mjs +61 -0
- package/dist/domains/physics/lens-mission/runtime.mjs +151 -0
- package/dist/domains/physics/lorentz/manifest.mjs +7 -1
- package/dist/domains/physics/magnet-pair/manifest.mjs +58 -0
- package/dist/domains/physics/magnet-pair/runtime.mjs +5 -0
- package/dist/domains/physics/magnetism/manifest.mjs +25 -1
- package/dist/domains/physics/magnetism-diagram/manifest.mjs +50 -0
- package/dist/domains/physics/magnetism-diagram/runtime.mjs +19 -0
- package/dist/domains/physics/mutual-induction/manifest.mjs +59 -0
- package/dist/domains/physics/mutual-induction/runtime.mjs +5 -0
- package/dist/domains/physics/newton-first-law/manifest.mjs +75 -0
- package/dist/domains/physics/newton-first-law/runtime.mjs +113 -0
- package/dist/domains/physics/optics-mission/manifest.mjs +62 -0
- package/dist/domains/physics/optics-mission/runtime.mjs +486 -0
- package/dist/domains/physics/paper5-analysis-lab/runtime.mjs +123 -32
- package/dist/domains/physics/particle-wave-motion/manifest.mjs +58 -0
- package/dist/domains/physics/particle-wave-motion/runtime.mjs +5 -0
- package/dist/domains/physics/phase-path/manifest.mjs +49 -0
- package/dist/domains/physics/phase-path/runtime.mjs +5 -0
- package/dist/domains/physics/physics-practical-studio/runtime.mjs +1 -1
- package/dist/domains/physics/plane-mirror/manifest.mjs +56 -0
- package/dist/domains/physics/plane-mirror/runtime.mjs +5 -0
- package/dist/domains/physics/plug-safety-inspector/runtime.mjs +2 -2
- package/dist/domains/physics/polarisation/manifest.mjs +55 -0
- package/dist/domains/physics/polarisation/runtime.mjs +5 -0
- package/dist/domains/physics/precision-measurement-lab/activity.mjs +13 -13
- package/dist/domains/physics/precision-measurement-lab/manifest.mjs +3 -3
- package/dist/domains/physics/precision-measurement-lab/palette.mjs +22 -1
- package/dist/domains/physics/precision-measurement-lab/runtime.mjs +390 -371
- package/dist/domains/physics/prism-dispersion/manifest.mjs +58 -0
- package/dist/domains/physics/prism-dispersion/runtime.mjs +5 -0
- package/dist/domains/physics/progressive-stationary/manifest.mjs +59 -0
- package/dist/domains/physics/progressive-stationary/runtime.mjs +5 -0
- package/dist/domains/physics/projectile-lab/core/model.mjs +30 -18
- package/dist/domains/physics/projectile-lab/runtime/index.mjs +10 -21
- package/dist/domains/physics/projectile-lab/runtime/svg.mjs +36 -124
- package/dist/domains/physics/pulse-echo/manifest.mjs +66 -0
- package/dist/domains/physics/pulse-echo/runtime.mjs +5 -0
- package/dist/domains/physics/radiation-half-life-investigation/runtime.mjs +1 -1
- package/dist/domains/physics/radioactive-decay/manifest.mjs +55 -0
- package/dist/domains/physics/radioactive-decay/runtime.mjs +5 -0
- package/dist/domains/physics/rc-step-response/manifest.mjs +54 -0
- package/dist/domains/physics/rc-step-response/runtime.mjs +5 -0
- package/dist/domains/physics/reading-spread/manifest.mjs +77 -0
- package/dist/domains/physics/reading-spread/runtime.mjs +183 -0
- package/dist/domains/physics/rectifier/manifest.mjs +69 -0
- package/dist/domains/physics/rectifier/runtime.mjs +5 -0
- package/dist/domains/physics/regulated-supply/manifest.mjs +61 -0
- package/dist/domains/physics/regulated-supply/runtime.mjs +5 -0
- package/dist/domains/physics/relay-bench/manifest.mjs +55 -0
- package/dist/domains/physics/relay-bench/runtime.mjs +5 -0
- package/dist/domains/physics/rl-step-response/manifest.mjs +54 -0
- package/dist/domains/physics/rl-step-response/runtime.mjs +5 -0
- package/dist/domains/physics/rocket-flight/manifest.mjs +81 -0
- package/dist/domains/physics/rocket-flight/runtime.mjs +5 -0
- package/dist/domains/physics/scale-reading/manifest.mjs +91 -0
- package/dist/domains/physics/scale-reading/model.mjs +212 -0
- package/dist/domains/physics/scale-reading/runtime.mjs +190 -0
- package/dist/domains/physics/scale-reading/scene.mjs +691 -0
- package/dist/domains/physics/shm/manifest.mjs +7 -0
- package/dist/domains/physics/shm-energy/manifest.mjs +6 -0
- package/dist/domains/physics/shm-graphs/manifest.mjs +1 -0
- package/dist/domains/physics/smoothing/manifest.mjs +62 -0
- package/dist/domains/physics/smoothing/runtime.mjs +5 -0
- package/dist/domains/physics/soft-iron-steel/activity.mjs +3 -0
- package/dist/domains/physics/soft-iron-steel/manifest.mjs +72 -0
- package/dist/domains/physics/soft-iron-steel/runtime.mjs +3 -0
- package/dist/domains/physics/solenoid-bench/manifest.mjs +57 -0
- package/dist/domains/physics/solenoid-bench/runtime.mjs +5 -0
- package/dist/domains/physics/sound-air/manifest.mjs +59 -0
- package/dist/domains/physics/sound-air/runtime.mjs +5 -0
- package/dist/domains/physics/sound-medium/manifest.mjs +64 -0
- package/dist/domains/physics/sound-medium/runtime.mjs +5 -0
- package/dist/domains/physics/sound-mission/manifest.mjs +66 -0
- package/dist/domains/physics/sound-mission/runtime.mjs +321 -0
- package/dist/domains/physics/specific-heat/manifest.mjs +59 -0
- package/dist/domains/physics/specific-heat/runtime.mjs +5 -0
- package/dist/domains/physics/spectral-resolver/manifest.mjs +50 -0
- package/dist/domains/physics/spectral-resolver/runtime.mjs +5 -0
- package/dist/domains/physics/spectrum-mission/manifest.mjs +60 -0
- package/dist/domains/physics/spectrum-mission/runtime.mjs +320 -0
- package/dist/domains/physics/stability/manifest.mjs +55 -0
- package/dist/domains/physics/stability/runtime.mjs +5 -0
- package/dist/domains/physics/stellar-distance/manifest.mjs +58 -0
- package/dist/domains/physics/stellar-distance/runtime.mjs +3 -0
- package/dist/domains/physics/stellar-evolution/manifest.mjs +49 -0
- package/dist/domains/physics/stellar-evolution/runtime.mjs +3 -0
- package/dist/domains/physics/stellar-radiation/manifest.mjs +58 -0
- package/dist/domains/physics/stellar-radiation/runtime.mjs +3 -0
- package/dist/domains/physics/stress-strain/manifest.mjs +8 -0
- package/dist/domains/physics/thermal-equilibrium/manifest.mjs +49 -0
- package/dist/domains/physics/thermal-equilibrium/runtime.mjs +5 -0
- package/dist/domains/physics/timbre/manifest.mjs +62 -0
- package/dist/domains/physics/timbre/runtime.mjs +5 -0
- package/dist/domains/physics/tomography/manifest.mjs +62 -0
- package/dist/domains/physics/tomography/runtime.mjs +3 -0
- package/dist/domains/physics/transformer-bench/manifest.mjs +57 -0
- package/dist/domains/physics/transformer-bench/runtime.mjs +5 -0
- package/dist/domains/physics/trolley-acceleration-investigation/runtime.mjs +1 -1
- package/dist/domains/physics/ultrasound-frequency/manifest.mjs +51 -0
- package/dist/domains/physics/ultrasound-frequency/runtime.mjs +5 -0
- package/dist/domains/physics/uncertainty-budget/manifest.mjs +68 -0
- package/dist/domains/physics/uncertainty-budget/runtime.mjs +111 -0
- package/dist/domains/physics/unit-machine/manifest.mjs +63 -0
- package/dist/domains/physics/unit-machine/runtime.mjs +149 -0
- package/dist/domains/physics/velocity-gradient/manifest.mjs +67 -0
- package/dist/domains/physics/velocity-gradient/runtime.mjs +144 -0
- package/dist/domains/physics/water-wave-refraction/manifest.mjs +60 -0
- package/dist/domains/physics/water-wave-refraction/runtime.mjs +5 -0
- package/dist/domains/physics/wave-graphs/manifest.mjs +60 -0
- package/dist/domains/physics/wave-graphs/runtime.mjs +5 -0
- package/dist/domains/physics/wave-lab/manifest.mjs +7 -0
- package/dist/domains/physics/wave-speed/manifest.mjs +63 -0
- package/dist/domains/physics/wave-speed/runtime.mjs +5 -0
- package/dist/domains/physics/wire-force-angle/activity.mjs +3 -0
- package/dist/domains/physics/wire-force-angle/manifest.mjs +69 -0
- package/dist/domains/physics/wire-force-angle/runtime.mjs +3 -0
- package/dist/domains/physics/xray-attenuation/manifest.mjs +7 -1
- package/dist/domains/physics/xray-tube-spectrum/manifest.mjs +8 -1
- package/dist/domains/physics/young-double-slit/manifest.mjs +61 -0
- package/dist/domains/physics/young-double-slit/runtime.mjs +5 -0
- package/dist/domains/render-map.mjs +393 -79
- package/dist/domains/revision/chapter-summary/manifest.mjs +67 -0
- package/dist/domains/revision/chapter-summary/runtime.mjs +16 -0
- package/dist/domains/revision/concept-sprint/manifest.mjs +149 -0
- package/dist/domains/revision/concept-sprint/runtime.mjs +5 -0
- package/dist/domains/revision/flashcard/manifest.mjs +61 -0
- package/dist/domains/revision/flashcard/runtime.mjs +18 -0
- package/dist/domains/revision/flashcard-deck/manifest.mjs +83 -0
- package/dist/domains/revision/flashcard-deck/runtime.mjs +16 -0
- package/dist/domains/revision/spot-the-error/manifest.mjs +70 -0
- package/dist/domains/revision/spot-the-error/runtime.mjs +16 -0
- package/dist/domains/revision/step-order-puzzle/manifest.mjs +67 -0
- package/dist/domains/revision/step-order-puzzle/runtime.mjs +15 -0
- package/dist/domains/statistics/sampling/manifest.mjs +11 -0
- package/dist/exam/exam-question/core.d.mts +10 -2
- package/dist/exam/exam-question/core.mjs +7 -12
- package/dist/exam/exam-question/preset.d.mts +8 -1
- package/dist/exam/exam-question/preset.mjs +138 -133
- package/dist/exam/practice-set/preset.mjs +270 -0
- package/dist/geography/cycle-lab/preset.mjs +10 -7
- package/dist/geometry/board/preset.mjs +1 -1
- package/dist/geometry/builder.mjs +1 -1
- package/dist/ict/number-systems/base-odometer.mjs +1 -1
- package/dist/ict/number-systems/wheel.mjs +27 -22
- package/dist/illustrations/story-scene/accounting/cash-credit-flow.mjs +104 -0
- package/dist/illustrations/story-scene/accounting/club-evening.mjs +202 -0
- package/dist/illustrations/story-scene/accounting/delivery-van.mjs +119 -0
- package/dist/illustrations/story-scene/accounting/electricity-meter-bill.mjs +185 -0
- package/dist/illustrations/story-scene/accounting/factory-floor.mjs +217 -0
- package/dist/illustrations/story-scene/accounting/registry.mjs +222 -0
- package/dist/illustrations/story-scene/accounting/rival-shops.mjs +127 -0
- package/dist/illustrations/story-scene/accounting/shop-counter-till.mjs +151 -0
- package/dist/illustrations/story-scene/accounting/stocktake-shelves.mjs +154 -0
- package/dist/illustrations/story-scene/accounting/supplier-delivery.mjs +128 -0
- package/dist/illustrations/story-scene/accounting/tea-stall.mjs +187 -0
- package/dist/illustrations/story-scene/accounting/van.mjs +101 -0
- package/dist/illustrations/story-scene/accounting/workshop-machine.mjs +166 -0
- package/dist/illustrations/story-scene/chemistry/acid-rain.mjs +263 -0
- package/dist/illustrations/story-scene/chemistry/aluminium-cell.mjs +211 -0
- package/dist/illustrations/story-scene/chemistry/blast-furnace.mjs +322 -0
- package/dist/illustrations/story-scene/chemistry/car-exhaust.mjs +132 -0
- package/dist/illustrations/story-scene/chemistry/fertiliser-field.mjs +149 -0
- package/dist/illustrations/story-scene/chemistry/fractionating-tower.mjs +289 -0
- package/dist/illustrations/story-scene/chemistry/galvanised-roof.mjs +216 -0
- package/dist/illustrations/story-scene/chemistry/gas-stove.mjs +142 -0
- package/dist/illustrations/story-scene/chemistry/greenhouse-earth.mjs +239 -0
- package/dist/illustrations/story-scene/chemistry/lime-kiln.mjs +145 -0
- package/dist/illustrations/story-scene/chemistry/magnesium-ribbon.mjs +211 -0
- package/dist/illustrations/story-scene/chemistry/registry.mjs +150 -0
- package/dist/illustrations/story-scene/chemistry/rusty-bike.mjs +171 -0
- package/dist/illustrations/story-scene/chemistry/water-treatment.mjs +370 -0
- package/dist/illustrations/story-scene/everyday/bicycle-wheel.mjs +130 -0
- package/dist/illustrations/story-scene/everyday/cake-slices.mjs +117 -0
- package/dist/illustrations/story-scene/everyday/car-road.mjs +175 -0
- package/dist/illustrations/story-scene/everyday/dial.mjs +129 -0
- package/dist/illustrations/story-scene/everyday/phone-battery.mjs +125 -0
- package/dist/illustrations/story-scene/everyday/pond-path.mjs +113 -0
- package/dist/illustrations/story-scene/everyday/registry.mjs +111 -0
- package/dist/illustrations/story-scene/everyday/speedometer.mjs +22 -0
- package/dist/illustrations/story-scene/everyday/train-speedometer.mjs +208 -0
- package/dist/illustrations/story-scene/index.d.mts +6 -0
- package/dist/illustrations/story-scene/index.mjs +6 -0
- package/dist/illustrations/story-scene/math/bag-of-counters.mjs +147 -0
- package/dist/illustrations/story-scene/math/bank-savings.mjs +111 -0
- package/dist/illustrations/story-scene/math/bearing.mjs +145 -0
- package/dist/illustrations/story-scene/math/building-shadow.mjs +149 -0
- package/dist/illustrations/story-scene/math/bus-timetable.mjs +212 -0
- package/dist/illustrations/story-scene/math/code-lock.mjs +146 -0
- package/dist/illustrations/story-scene/math/counting.mjs +31 -0
- package/dist/illustrations/story-scene/math/cricket-area.mjs +119 -0
- package/dist/illustrations/story-scene/math/cylinder-tank.mjs +118 -0
- package/dist/illustrations/story-scene/math/drone-field.mjs +237 -0
- package/dist/illustrations/story-scene/math/elevation.mjs +242 -0
- package/dist/illustrations/story-scene/math/fenced-garden.mjs +129 -0
- package/dist/illustrations/story-scene/math/flag-pole.mjs +78 -0
- package/dist/illustrations/story-scene/math/football-goal.mjs +155 -0
- package/dist/illustrations/story-scene/math/ice-cream-cone.mjs +143 -0
- package/dist/illustrations/story-scene/math/kite-string.mjs +154 -0
- package/dist/illustrations/story-scene/math/ladder-wall.mjs +154 -0
- package/dist/illustrations/story-scene/math/lighthouse-boats.mjs +321 -0
- package/dist/illustrations/story-scene/math/map-scale.mjs +172 -0
- package/dist/illustrations/story-scene/math/phone-tower.mjs +132 -0
- package/dist/illustrations/story-scene/math/photo-line-up.mjs +130 -0
- package/dist/illustrations/story-scene/math/population-town.mjs +173 -0
- package/dist/illustrations/story-scene/math/pyramid-tent.mjs +227 -0
- package/dist/illustrations/story-scene/math/ramp.mjs +202 -0
- package/dist/illustrations/story-scene/math/registry.mjs +414 -0
- package/dist/illustrations/story-scene/math/river-boat.mjs +173 -0
- package/dist/illustrations/story-scene/math/shop-price-tag.mjs +107 -0
- package/dist/illustrations/story-scene/math/snapped-tree.mjs +125 -0
- package/dist/illustrations/story-scene/math/storeroom-box.mjs +222 -0
- package/dist/illustrations/story-scene/math/tank-tap.mjs +166 -0
- package/dist/illustrations/story-scene/math/taxi-fare.mjs +120 -0
- package/dist/illustrations/story-scene/math/team-pick.mjs +120 -0
- package/dist/illustrations/story-scene/model.d.mts +50 -0
- package/dist/illustrations/story-scene/model.mjs +154 -0
- package/dist/illustrations/story-scene/parts.mjs +310 -0
- package/dist/illustrations/story-scene/physics/car-bend.mjs +142 -0
- package/dist/illustrations/story-scene/physics/car-crash.mjs +117 -0
- package/dist/illustrations/story-scene/physics/cliff-throw.mjs +110 -0
- package/dist/illustrations/story-scene/physics/curved-slide.mjs +202 -0
- package/dist/illustrations/story-scene/physics/diver-depth.mjs +237 -0
- package/dist/illustrations/story-scene/physics/electric-kettle.mjs +195 -0
- package/dist/illustrations/story-scene/physics/hot-drink.mjs +124 -0
- package/dist/illustrations/story-scene/physics/lift-shaft.mjs +207 -0
- package/dist/illustrations/story-scene/physics/pendulum.mjs +112 -0
- package/dist/illustrations/story-scene/physics/registry.mjs +192 -0
- package/dist/illustrations/story-scene/physics/sealed-syringe.mjs +155 -0
- package/dist/illustrations/story-scene/physics/see-saw.mjs +162 -0
- package/dist/illustrations/story-scene/physics/thermometer.mjs +194 -0
- package/dist/illustrations/story-scene/physics/trolley-pull.mjs +186 -0
- package/dist/illustrations/story-scene/registry.d.mts +9 -0
- package/dist/illustrations/story-scene/registry.mjs +31 -0
- package/dist/illustrations/story-scene/schema.mjs +82 -0
- package/dist/illustrations/story-scene/spec-kit.d.mts +58 -0
- package/dist/illustrations/story-scene/spec-kit.mjs +81 -0
- package/dist/illustrations/story-scene/specs.d.mts +18 -0
- package/dist/illustrations/story-scene/specs.mjs +48 -0
- package/dist/illustrations/story-scene/story-scene.d.mts +25 -0
- package/dist/illustrations/story-scene/story-scene.mjs +138 -0
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +1 -2
- package/dist/kit/active-recall.d.mts +65 -0
- package/dist/kit/active-recall.mjs +581 -0
- package/dist/kit/activity.d.mts +7 -21
- package/dist/kit/activity.mjs +13 -6
- package/dist/kit/annotate.mjs +33 -29
- package/dist/kit/authored-activity-runtime.mjs +10 -5
- package/dist/kit/authored-response.mjs +20 -17
- package/dist/kit/bar-strip.mjs +1 -1
- package/dist/kit/chemistry/cycle.mjs +2 -2
- package/dist/kit/chemistry/glassware.d.mts +50 -2
- package/dist/kit/chemistry/glassware.mjs +396 -5
- package/dist/kit/chemistry/index.d.mts +3 -2
- package/dist/kit/chemistry/mechanism.mjs +30 -6
- package/dist/kit/chemistry/observation.d.mts +1 -1
- package/dist/kit/chemistry/observation.mjs +1 -0
- package/dist/kit/chemistry/reaction.mjs +198 -16
- package/dist/kit/chemistry/spectrum.mjs +5 -2
- package/dist/kit/chemistry/tool-icons.d.mts +12 -0
- package/dist/kit/chemistry/tool-icons.mjs +51 -0
- package/dist/kit/choice-order.mjs +29 -0
- package/dist/kit/clue-scene.mjs +14 -10
- package/dist/kit/cluster.mjs +17 -13
- package/dist/kit/commerce/books.d.mts +66 -0
- package/dist/kit/commerce/books.mjs +281 -0
- package/dist/kit/commerce/index.d.mts +2 -1
- package/dist/kit/commerce/ledger.mjs +5 -1
- package/dist/kit/controls.mjs +3 -2
- package/dist/kit/coords.mjs +1 -1
- package/dist/kit/cycle.mjs +90 -34
- package/dist/kit/data-scene.mjs +19 -22
- package/dist/kit/diagram/annotations.mjs +74 -16
- package/dist/kit/diagram/circuit-box.mjs +3 -40
- package/dist/kit/electronics/icons.mjs +4 -4
- package/dist/kit/electronics/op-amp.mjs +72 -0
- package/dist/kit/electronics/rectifier.mjs +153 -0
- package/dist/kit/electronics/semiconductor.mjs +92 -1
- package/dist/kit/engine-trace.mjs +257 -0
- package/dist/kit/ensure-asset.mjs +21 -0
- package/dist/kit/figure/figure.d.mts +14 -3
- package/dist/kit/figure/figure.mjs +11 -3
- package/dist/kit/figure/index.d.mts +3 -3
- package/dist/kit/figure/plot.d.mts +13 -1
- package/dist/kit/figure/text.d.mts +12 -3
- package/dist/kit/figure/text.mjs +18 -7
- package/dist/kit/figure-drag.mjs +93 -0
- package/dist/kit/frame.mjs +18 -1
- package/dist/kit/freq-tree.d.mts +22 -0
- package/dist/kit/freq-tree.mjs +15 -10
- package/dist/kit/gameshow.mjs +16 -14
- package/dist/kit/goal-activity.mjs +38 -0
- package/dist/kit/index.d.mts +14 -7
- package/dist/kit/index.mjs +20 -14
- package/dist/kit/instruments.mjs +2 -1
- package/dist/kit/learning-sequence.mjs +13 -6
- package/dist/kit/logic-gates/_shared.mjs +1 -2
- package/dist/kit/logic-gates/display.mjs +17 -19
- package/dist/kit/logic-gates/gate.mjs +46 -22
- package/dist/kit/magnetism/glyphs.d.mts +46 -1
- package/dist/kit/magnetism/glyphs.mjs +72 -1
- package/dist/kit/magnetism/index.d.mts +2 -2
- package/dist/kit/molecules.mjs +37 -24
- package/dist/kit/networking/glyphs.d.mts +2 -1
- package/dist/kit/networking/glyphs.mjs +9 -6
- package/dist/kit/networking/primitives.d.mts +1 -1
- package/dist/kit/networking/primitives.mjs +276 -3
- package/dist/kit/palette.mjs +62 -1
- package/dist/kit/pedagogy.d.mts +12 -1
- package/dist/kit/pedagogy.mjs +64 -19
- package/dist/kit/play.mjs +1 -1
- package/dist/kit/predict-gate.d.mts +7 -1
- package/dist/kit/predict-gate.mjs +99 -13
- package/dist/kit/predict.mjs +1 -1
- package/dist/kit/probability.mjs +10 -7
- package/dist/kit/proportion.mjs +34 -35
- package/dist/kit/reaction.mjs +31 -37
- package/dist/kit/recall-schedule.d.mts +12 -0
- package/dist/kit/recall-schedule.mjs +35 -0
- package/dist/kit/rich.mjs +1 -1
- package/dist/kit/rule.d.mts +7 -1
- package/dist/kit/rule.mjs +4 -4
- package/dist/kit/scale.mjs +1 -1
- package/dist/kit/scene-studio.mjs +7 -5
- package/dist/kit/scenes.mjs +51 -67
- package/dist/kit/space-glyphs.mjs +1 -1
- package/dist/kit/streak.mjs +156 -0
- package/dist/kit/thermal.mjs +25 -33
- package/dist/kit/vessel.mjs +30 -34
- package/dist/kit/world/index.d.mts +4 -0
- package/dist/kit/world/runtime.d.mts +42 -0
- package/dist/kit/world/runtime.mjs +103 -0
- package/dist/kit/world/skin-registry.d.mts +21 -0
- package/dist/kit/world/skin-registry.mjs +16 -0
- package/dist/kit/world/world-scene.d.mts +22 -0
- package/dist/kit/world/world-scene.mjs +176 -0
- package/dist/lab-def/define-lab.d.mts +9 -1
- package/dist/lab-def/define-lab.mjs +3 -1
- package/dist/lab-def/lab-runtime.mjs +3 -3
- package/dist/lab-def/to-block.mjs +2 -2
- package/dist/language/ui.mjs +2 -1
- package/dist/language/word-match/preset.mjs +2 -2
- package/dist/logic/ChipScene.mjs +7 -6
- package/dist/logic/LatchScene.mjs +1 -1
- package/dist/logic/LogicBuildLab.mjs +2 -2
- package/dist/logic/LogicEditScene.mjs +12 -12
- package/dist/logic/LogicEditor.mjs +1 -1
- package/dist/logic/LogicScene.mjs +28 -25
- package/dist/logic/contract.d.mts +4 -86
- package/dist/logic/counter.d.mts +4 -1
- package/dist/logic/counter.mjs +49 -4
- package/dist/logic/display.mjs +29 -27
- package/dist/logic/evaluate.d.mts +2 -17
- package/dist/logic/evaluate.mjs +2 -169
- package/dist/logic/gates.d.mts +1 -6
- package/dist/logic/gates.mjs +21 -62
- package/dist/logic/ic.d.mts +2 -58
- package/dist/logic/ic.mjs +4 -234
- package/dist/logic/index.d.mts +2 -2
- package/dist/logic/index.mjs +2 -2
- package/dist/logic/netlist.d.mts +2 -26
- package/dist/logic/netlist.mjs +1 -27
- package/dist/logic/registry.d.mts +0 -1
- package/dist/logic/registry.mjs +16 -8
- package/dist/logic/runtime/index.d.mts +1 -1
- package/dist/logic/sequential.d.mts +2 -123
- package/dist/logic/sequential.mjs +1 -185
- package/dist/math/alligation-mix/preset.mjs +239 -0
- package/dist/math/angle-chase/index.d.mts +4 -0
- package/dist/math/angle-chase/model.d.mts +14 -0
- package/dist/math/angle-chase/model.mjs +355 -0
- package/dist/math/angle-chase/preset.d.mts +26 -0
- package/dist/math/angle-chase/preset.mjs +438 -0
- package/dist/math/angle-chase/presets.d.mts +6 -0
- package/dist/math/angle-chase/presets.mjs +766 -0
- package/dist/math/angle-chase/scene.mjs +228 -0
- package/dist/math/answer-accuracy/core.d.mts +24 -0
- package/dist/math/answer-accuracy/core.mjs +99 -0
- package/dist/math/answer-accuracy/entry.mjs +81 -0
- package/dist/math/answer-accuracy/schema.mjs +15 -0
- package/dist/math/area-model/asset.mjs +34 -27
- package/dist/math/area-model/preset.mjs +87 -35
- package/dist/math/area-rearrange/preset.mjs +1 -1
- package/dist/math/balance-algebra/asset.mjs +1 -1
- package/dist/math/balance-algebra/preset.mjs +3 -2
- package/dist/math/bearings/index.d.mts +1 -1
- package/dist/math/bearings/preset.d.mts +40 -2
- package/dist/math/bearings/preset.mjs +169 -59
- package/dist/math/bounds-window/preset.mjs +1 -1
- package/dist/math/broken-tree/index.d.mts +1 -1
- package/dist/math/broken-tree/preset.d.mts +30 -2
- package/dist/math/broken-tree/preset.mjs +127 -44
- package/dist/math/complex/preset.mjs +1 -1
- package/dist/math/complex/rule-figures.mjs +1 -1
- package/dist/math/cone-frustum/preset.mjs +1 -1
- package/dist/math/conic/preset.mjs +1 -1
- package/dist/math/coord-point/preset.mjs +136 -0
- package/dist/math/coordinate-geometry/angle-between-lines/core.mjs +29 -0
- package/dist/math/coordinate-geometry/angle-between-lines/preset.mjs +279 -0
- package/dist/math/coordinate-geometry/chord-bisection/core.mjs +52 -0
- package/dist/math/coordinate-geometry/chord-bisection/preset.mjs +244 -0
- package/dist/math/coordinate-geometry/chord-given-midpoint/core.mjs +39 -0
- package/dist/math/coordinate-geometry/chord-given-midpoint/preset.mjs +206 -0
- package/dist/math/coordinate-geometry/chord-of-contact/core.mjs +33 -0
- package/dist/math/coordinate-geometry/chord-of-contact/preset.mjs +248 -0
- package/dist/math/coordinate-geometry/circle/preset.d.mts +30 -0
- package/dist/math/coordinate-geometry/circle/preset.mjs +216 -0
- package/dist/math/coordinate-geometry/circle-diameter-endpoints/core.mjs +54 -0
- package/dist/math/coordinate-geometry/circle-diameter-endpoints/preset.mjs +272 -0
- package/dist/math/coordinate-geometry/circle-intersection-angle/core.mjs +48 -0
- package/dist/math/coordinate-geometry/circle-intersection-angle/preset.mjs +249 -0
- package/dist/math/coordinate-geometry/circle-line-tangency/core.mjs +50 -0
- package/dist/math/coordinate-geometry/circle-line-tangency/preset.mjs +254 -0
- package/dist/math/coordinate-geometry/circle-through-points/core.mjs +77 -0
- package/dist/math/coordinate-geometry/circle-through-points/preset.mjs +241 -0
- package/dist/math/coordinate-geometry/common-tangents-count/core.mjs +99 -0
- package/dist/math/coordinate-geometry/common-tangents-count/preset.mjs +236 -0
- package/dist/math/coordinate-geometry/line-concurrency/core.mjs +62 -0
- package/dist/math/coordinate-geometry/line-concurrency/preset.mjs +264 -0
- package/dist/math/coordinate-geometry/line-family/core.mjs +26 -0
- package/dist/math/coordinate-geometry/line-family/preset.mjs +298 -0
- package/dist/math/coordinate-geometry/point-line-distance/core.mjs +47 -0
- package/dist/math/coordinate-geometry/point-line-distance/preset.mjs +285 -0
- package/dist/math/coordinate-geometry/point-reflection/preset.mjs +291 -0
- package/dist/math/coordinate-geometry/polar-cartesian/core.mjs +20 -0
- package/dist/math/coordinate-geometry/polar-cartesian/preset.mjs +254 -0
- package/dist/math/coordinate-geometry/radical-axis/core.mjs +57 -0
- package/dist/math/coordinate-geometry/radical-axis/preset.mjs +268 -0
- package/dist/math/coordinate-geometry/section-formula/core.mjs +16 -0
- package/dist/math/coordinate-geometry/section-formula/preset.mjs +286 -0
- package/dist/math/coordinate-geometry/straight-line/preset.d.mts +36 -0
- package/dist/math/coordinate-geometry/straight-line/preset.mjs +420 -0
- package/dist/math/coordinate-geometry/tangent-length-power-of-point/core.mjs +49 -0
- package/dist/math/coordinate-geometry/tangent-length-power-of-point/preset.mjs +250 -0
- package/dist/math/coordinate-geometry/triangle-area/core.mjs +23 -0
- package/dist/math/coordinate-geometry/triangle-area/preset.mjs +458 -0
- package/dist/math/derivation.d.mts +19 -10
- package/dist/math/derivation.mjs +79 -62
- package/dist/math/derivative-explorer/preset.mjs +87 -11
- package/dist/math/differential-equation/preset.mjs +1 -1
- package/dist/math/discriminant-radar/index.d.mts +2 -0
- package/dist/math/discriminant-radar/model.d.mts +5 -0
- package/dist/math/discriminant-radar/model.mjs +440 -0
- package/dist/math/discriminant-radar/preset.d.mts +29 -0
- package/dist/math/discriminant-radar/preset.mjs +625 -0
- package/dist/math/distribute-strip/preset.mjs +203 -0
- package/dist/math/domain-range/preset.mjs +2 -29
- package/dist/math/exact-triangle/preset.mjs +172 -42
- package/dist/math/fraction-bar/preset.mjs +1 -1
- package/dist/math/function-machine/preset.mjs +1 -1
- package/dist/math/functions/composite/model.d.mts +15 -0
- package/dist/math/functions/composite/model.mjs +452 -0
- package/dist/math/functions/composite/rounds-lab.d.mts +17 -0
- package/dist/math/functions/composite/rounds-lab.mjs +501 -0
- package/dist/math/functions/composite/scenes.mjs +451 -0
- package/dist/math/functions/composite-functions.d.mts +34 -0
- package/dist/math/functions/composite-functions.mjs +640 -0
- package/dist/math/functions/family-tree/lab.d.mts +24 -0
- package/dist/math/functions/family-tree/lab.mjs +602 -0
- package/dist/math/functions/family-tree/layout.mjs +188 -0
- package/dist/math/functions/family-tree/model.d.mts +64 -0
- package/dist/math/functions/family-tree/model.mjs +742 -0
- package/dist/math/functions/family-tree/scenes.mjs +608 -0
- package/dist/math/functions/graph-transform.d.mts +31 -0
- package/dist/math/functions/graph-transform.mjs +439 -0
- package/dist/math/functions/index.d.mts +7 -0
- package/dist/math/functions/injective-classifier.d.mts +16 -0
- package/dist/math/functions/injective-classifier.mjs +300 -0
- package/dist/math/functions/inverse-functions.d.mts +16 -0
- package/dist/math/functions/inverse-functions.mjs +366 -0
- package/dist/math/functions/modulus-function.d.mts +18 -0
- package/dist/math/functions/modulus-function.mjs +426 -0
- package/dist/math/fundamental-theorem/preset.mjs +1 -1
- package/dist/math/geometry-foundations/activity.mjs +6 -3
- package/dist/math/geometry-foundations/core.mjs +1 -1
- package/dist/math/geometry-foundations/preset.d.mts +8 -1
- package/dist/math/geometry-foundations/preset.mjs +196 -114
- package/dist/math/gradient-descent.mjs +50 -12
- package/dist/math/grapher/preset.mjs +1 -1
- package/dist/math/harmonic-form/preset.mjs +3 -3
- package/dist/math/implicit-parametric-derivative/contour.mjs +170 -0
- package/dist/math/implicit-parametric-derivative/index.d.mts +2 -0
- package/dist/math/implicit-parametric-derivative/preset.d.mts +23 -0
- package/dist/math/implicit-parametric-derivative/preset.mjs +753 -0
- package/dist/math/index.d.mts +50 -6
- package/dist/math/index.mjs +32 -4
- package/dist/math/inequalities/index.d.mts +3 -0
- package/dist/math/inequalities/inequality-solver.d.mts +21 -0
- package/dist/math/inequalities/inequality-solver.mjs +477 -0
- package/dist/math/inequalities/modulus-inequality.d.mts +17 -0
- package/dist/math/inequalities/modulus-inequality.mjs +366 -0
- package/dist/math/inequality-line/preset.mjs +196 -0
- package/dist/math/integral-explorer/preset.mjs +1 -1
- package/dist/math/integration-workbench/index.d.mts +2 -0
- package/dist/math/integration-workbench/model.mjs +578 -0
- package/dist/math/integration-workbench/preset.d.mts +20 -0
- package/dist/math/integration-workbench/preset.mjs +489 -0
- package/dist/math/interactive/preset.mjs +1 -1
- package/dist/math/iteration/preset.mjs +1 -1
- package/dist/math/limit-explorer/preset.mjs +84 -6
- package/dist/math/linear-map/index.d.mts +2 -0
- package/dist/math/linear-map/preset.d.mts +19 -0
- package/dist/math/linear-map/preset.mjs +433 -0
- package/dist/math/linear-model/preset.mjs +2 -1
- package/dist/math/linear-system/preset.mjs +72 -16
- package/dist/math/linearisation/chart.mjs +106 -0
- package/dist/math/linearisation/core.mjs +27 -0
- package/dist/math/lines-in-space/preset.mjs +240 -54
- package/dist/math/measurement/preset.mjs +83 -66
- package/dist/math/mystery-bucket/asset.mjs +1 -1
- package/dist/math/mystery-bucket/preset.mjs +3 -2
- package/dist/math/newton-method/preset.mjs +1 -1
- package/dist/math/number-line/preset.mjs +1 -1
- package/dist/math/oblique-triangle/core.d.mts +3 -1
- package/dist/math/oblique-triangle/core.mjs +131 -4
- package/dist/math/oblique-triangle/index.d.mts +2 -2
- package/dist/math/oblique-triangle/preset.d.mts +50 -4
- package/dist/math/oblique-triangle/preset.mjs +270 -72
- package/dist/math/parabola/preset.mjs +1 -1
- package/dist/math/partial-fractions/core.d.mts +2 -68
- package/dist/math/partial-fractions/core.mjs +2 -221
- package/dist/math/partial-fractions/index.d.mts +1 -1
- package/dist/math/partial-fractions/preset.mjs +1 -1
- package/dist/math/pattern/asset.mjs +11 -8
- package/dist/math/pattern/preset.mjs +3 -2
- package/dist/math/percent-bar/preset.mjs +3 -9
- package/dist/math/phase-portrait/preset.mjs +1 -1
- package/dist/math/poly/guided.mjs +1064 -0
- package/dist/math/poly/index.d.mts +2 -2
- package/dist/math/poly/index.mjs +2 -2
- package/dist/math/poly/model.mjs +378 -0
- package/dist/math/poly/preset.d.mts +13 -3
- package/dist/math/poly/preset.mjs +226 -103
- package/dist/math/poly/scenes.mjs +370 -0
- package/dist/math/poly/trace-renderers.mjs +178 -0
- package/dist/math/poly-roots/exact.mjs +179 -0
- package/dist/math/poly-roots/one-question.mjs +16 -0
- package/dist/math/poly-roots/typed-answer.mjs +92 -0
- package/dist/math/price-chain/preset.mjs +243 -0
- package/dist/math/radian-wrap/preset.mjs +11 -7
- package/dist/math/rate-machine/preset.mjs +3 -2
- package/dist/math/ratio-share/preset.d.mts +4 -0
- package/dist/math/ratio-share/preset.mjs +49 -7
- package/dist/math/relative-speed-track/preset.mjs +231 -0
- package/dist/math/right-triangle/dissection-board.d.mts +5 -0
- package/dist/math/right-triangle/dissection-board.mjs +143 -0
- package/dist/math/right-triangle/exact-entry.d.mts +2 -0
- package/dist/math/right-triangle/exact-entry.mjs +79 -0
- package/dist/math/right-triangle/index.d.mts +5 -0
- package/dist/math/right-triangle/pythagoras-dissection.d.mts +35 -0
- package/dist/math/right-triangle/pythagoras-dissection.mjs +481 -0
- package/dist/math/right-triangle/special-triangles.d.mts +34 -0
- package/dist/math/right-triangle/special-triangles.mjs +499 -0
- package/dist/math/root-fingerprint/index.d.mts +2 -0
- package/dist/math/root-fingerprint/model.mjs +336 -0
- package/dist/math/root-fingerprint/preset.d.mts +32 -0
- package/dist/math/root-fingerprint/preset.mjs +566 -0
- package/dist/math/root-fingerprint/scene.mjs +753 -0
- package/dist/math/root-mover/index.d.mts +2 -0
- package/dist/math/root-mover/model.mjs +458 -0
- package/dist/math/root-mover/preset.d.mts +23 -0
- package/dist/math/root-mover/preset.mjs +361 -0
- package/dist/math/root-mover/scene.mjs +221 -0
- package/dist/math/sequence-predict/index.d.mts +2 -1
- package/dist/math/sequence-predict/model.d.mts +13 -0
- package/dist/math/sequence-predict/model.mjs +57 -0
- package/dist/math/sequence-predict/preset.d.mts +8 -4
- package/dist/math/sequence-predict/preset.mjs +89 -32
- package/dist/math/slide-rule/preset.mjs +1 -1
- package/dist/math/solid-net/preset.mjs +1 -1
- package/dist/math/solid-slice/preset.mjs +1 -1
- package/dist/math/solids-of-revolution/index.d.mts +4 -0
- package/dist/math/solids-of-revolution/model.d.mts +71 -0
- package/dist/math/solids-of-revolution/model.mjs +379 -0
- package/dist/math/solids-of-revolution/preset.d.mts +33 -0
- package/dist/math/solids-of-revolution/preset.mjs +411 -0
- package/dist/math/solids-of-revolution/scene.d.mts +20 -0
- package/dist/math/solids-of-revolution/scene.mjs +330 -0
- package/dist/math/stationary-point-classifier/index.d.mts +2 -0
- package/dist/math/stationary-point-classifier/preset.d.mts +14 -0
- package/dist/math/stationary-point-classifier/preset.mjs +263 -0
- package/dist/math/substitute-value/preset.mjs +184 -0
- package/dist/math/system-solve/preset.mjs +143 -29
- package/dist/math/tangent-normal/index.d.mts +2 -0
- package/dist/math/tangent-normal/preset.d.mts +15 -0
- package/dist/math/tangent-normal/preset.mjs +335 -0
- package/dist/math/tangent-rule-triangle/core.d.mts +13 -0
- package/dist/math/tangent-rule-triangle/core.mjs +42 -0
- package/dist/math/tangent-rule-triangle/index.d.mts +4 -0
- package/dist/math/tangent-rule-triangle/preset.d.mts +16 -0
- package/dist/math/tangent-rule-triangle/preset.mjs +306 -0
- package/dist/math/tank-design/preset.mjs +2 -2
- package/dist/math/taylor-series/preset.mjs +1 -1
- package/dist/math/transform/preset.mjs +2 -2
- package/dist/math/triangle-trig/core.d.mts +19 -0
- package/dist/math/triangle-trig/core.mjs +71 -0
- package/dist/math/triangle-trig/index.d.mts +2 -1
- package/dist/math/triangle-trig/preset.d.mts +52 -7
- package/dist/math/triangle-trig/preset.mjs +224 -69
- package/dist/math/trig/associated-angle.d.mts +16 -0
- package/dist/math/trig/associated-angle.mjs +355 -0
- package/dist/math/trig/diagrams.mjs +1 -1
- package/dist/math/trig/equation-solver.d.mts +28 -0
- package/dist/math/trig/equation-solver.mjs +702 -0
- package/dist/math/trig/general-solution.d.mts +16 -0
- package/dist/math/trig/general-solution.mjs +353 -0
- package/dist/math/trig/index.d.mts +6 -1
- package/dist/math/trig/multiple-angle.d.mts +20 -0
- package/dist/math/trig/multiple-angle.mjs +338 -0
- package/dist/math/trig/preset.mjs +1 -1
- package/dist/math/trig/sum-to-product.d.mts +16 -0
- package/dist/math/trig/sum-to-product.mjs +317 -0
- package/dist/math/trig-explorer.mjs +1 -1
- package/dist/ml/core/embedding.d.mts +34 -0
- package/dist/ml/core/embedding.mjs +148 -0
- package/dist/ml/core/index.d.mts +11 -0
- package/dist/ml/core/index.mjs +20 -0
- package/dist/ml/core/next-token.d.mts +20 -0
- package/dist/ml/core/next-token.mjs +69 -0
- package/dist/ml/core/polyfit.d.mts +12 -0
- package/dist/ml/core/polyfit.mjs +62 -0
- package/dist/ml/core/regression.d.mts +99 -0
- package/dist/ml/core/regression.mjs +171 -0
- package/dist/ml/core/split-leak.d.mts +137 -0
- package/dist/ml/core/split-leak.mjs +488 -0
- package/dist/ml/core/threshold-metrics.d.mts +14 -0
- package/dist/ml/core/threshold-metrics.mjs +11 -0
- package/dist/ml/index.d.mts +4 -1
- package/dist/ml/index.mjs +3 -1
- package/dist/ml/worlds/bakery/records.mjs +96 -0
- package/dist/ml/worlds/bakery/sets.mjs +619 -0
- package/dist/ml/worlds/index.d.mts +12 -0
- package/dist/ml/worlds/index.mjs +22 -0
- package/dist/ml/worlds/synthetic.d.mts +10 -0
- package/dist/ml/worlds/synthetic.mjs +83 -0
- package/dist/ml/worlds/types.d.mts +84 -0
- package/dist/networking/AirtimeScene.mjs +6 -15
- package/dist/networking/CellularScene.mjs +247 -36
- package/dist/networking/HandoverScene.mjs +15 -3
- package/dist/networking/HandshakeScene.mjs +266 -47
- package/dist/networking/MediaScene.mjs +7 -31
- package/dist/networking/NetworkScene.d.mts +3 -1
- package/dist/networking/NetworkScene.mjs +16 -4
- package/dist/networking/PlugScene.mjs +4 -30
- package/dist/networking/PrivacyScene.mjs +7 -26
- package/dist/networking/SatelliteScene.mjs +4 -3
- package/dist/networking/SpectrumScene.mjs +21 -28
- package/dist/networking/SubnetScene.mjs +7 -15
- package/dist/networking/SwitchScene.mjs +27 -195
- package/dist/networking/VlanScene.mjs +19 -32
- package/dist/networking/VpnScene.mjs +22 -35
- package/dist/networking/WifiScene.mjs +38 -40
- package/dist/pedagogy/concept-sprint/clock.mjs +25 -0
- package/dist/pedagogy/concept-sprint/core.mjs +206 -0
- package/dist/pedagogy/concept-sprint/preset.mjs +329 -0
- package/dist/physics/alternating-current/preset.d.mts +5 -1
- package/dist/physics/alternating-current/preset.mjs +47 -16
- package/dist/physics/astronomy/cosmic-expansion.d.mts +16 -0
- package/dist/physics/astronomy/cosmic-expansion.mjs +356 -0
- package/dist/physics/astronomy/stellar-distance.d.mts +16 -0
- package/dist/physics/astronomy/stellar-distance.mjs +291 -0
- package/dist/physics/astronomy/stellar-evolution.d.mts +15 -0
- package/dist/physics/astronomy/stellar-evolution.mjs +314 -0
- package/dist/physics/astronomy/stellar-radiation.d.mts +16 -0
- package/dist/physics/astronomy/stellar-radiation.mjs +239 -0
- package/dist/physics/atwood/preset.mjs +43 -47
- package/dist/physics/beam-reactions/index.d.mts +2 -0
- package/dist/physics/beam-reactions/preset.d.mts +21 -0
- package/dist/physics/beam-reactions/preset.mjs +360 -0
- package/dist/physics/biot-savart/activity.mjs +71 -2
- package/dist/physics/biot-savart/preset.mjs +84 -42
- package/dist/physics/biot-savart/presets.mjs +111 -28
- package/dist/physics/biot-savart/torque-activity.mjs +30 -2
- package/dist/physics/biot-savart/torque-preset.mjs +79 -31
- package/dist/physics/bullet-walls/preset.mjs +2 -2
- package/dist/physics/buoyancy/index.d.mts +2 -0
- package/dist/physics/buoyancy/preset.d.mts +16 -0
- package/dist/physics/buoyancy/preset.mjs +365 -0
- package/dist/physics/carnot/preset.d.mts +1 -1
- package/dist/physics/carnot/preset.mjs +58 -60
- package/dist/physics/circular-motion/preset.d.mts +5 -1
- package/dist/physics/circular-motion/preset.mjs +136 -69
- package/dist/physics/collision-track/preset.mjs +65 -77
- package/dist/physics/constants.mjs +4 -4
- package/dist/physics/couple-torque/preset.mjs +50 -20
- package/dist/physics/efficiency/preset.mjs +30 -37
- package/dist/physics/electric-field/preset.mjs +20 -21
- package/dist/physics/electric-flux/preset.mjs +10 -3
- package/dist/physics/electrostatics/coulomb-preset.mjs +1 -1
- package/dist/physics/energy/core.d.mts +3 -89
- package/dist/physics/energy/core.mjs +4 -125
- package/dist/physics/energy-skate/preset.mjs +3 -3
- package/dist/physics/entropy/preset.mjs +62 -59
- package/dist/physics/expansion/preset.mjs +53 -61
- package/dist/physics/exponential/asset.mjs +28 -28
- package/dist/physics/exponential/preset.mjs +1 -1
- package/dist/physics/field-geometry/flux-geometry.mjs +53 -0
- package/dist/physics/field-geometry/index.d.mts +2 -0
- package/dist/physics/field-geometry/preset.d.mts +19 -0
- package/dist/physics/field-geometry/preset.mjs +440 -0
- package/dist/physics/fields/spatial-preset.mjs +6 -5
- package/dist/physics/fluid-pressure/preset.mjs +60 -57
- package/dist/physics/force-pairs/preset.mjs +105 -59
- package/dist/physics/gas-process/preset.d.mts +1 -1
- package/dist/physics/gas-process/preset.mjs +34 -36
- package/dist/physics/gas-theory/index.d.mts +2 -0
- package/dist/physics/gas-theory/preset.d.mts +13 -0
- package/dist/physics/gas-theory/preset.mjs +302 -0
- package/dist/physics/gauss-law/preset.mjs +77 -66
- package/dist/physics/geomagnetism/preset.mjs +1 -1
- package/dist/physics/gravitation/preset.mjs +1 -1
- package/dist/physics/gravity-drop.mjs +40 -13
- package/dist/physics/gravity-profile/preset.mjs +2 -2
- package/dist/physics/heat-transfer/cases.d.mts +9 -0
- package/dist/physics/heat-transfer/cases.mjs +319 -0
- package/dist/physics/heat-transfer/index.d.mts +2 -1
- package/dist/physics/heat-transfer/preset.d.mts +3 -1
- package/dist/physics/heat-transfer/preset.mjs +243 -180
- package/dist/physics/impulse/preset.mjs +33 -45
- package/dist/physics/index.d.mts +59 -8
- package/dist/physics/index.mjs +53 -8
- package/dist/physics/intercept/animals.mjs +10 -6
- package/dist/physics/intercept/preset.mjs +4 -3
- package/dist/physics/investigation/circuit.d.mts +3 -5
- package/dist/physics/investigation/energy-resource.mjs +2 -2
- package/dist/physics/investigation/measurement.mjs +9 -12
- package/dist/physics/investigation-activity.d.mts +2 -0
- package/dist/physics/investigation-activity.mjs +20 -36
- package/dist/physics/kepler/period.d.mts +5 -0
- package/dist/physics/kepler/period.mjs +9 -0
- package/dist/physics/kepler/preset.mjs +2 -2
- package/dist/physics/lever/asset.mjs +10 -8
- package/dist/physics/lever/preset.mjs +36 -6
- package/dist/physics/lift-weight/preset.mjs +1 -1
- package/dist/physics/lifting-work/preset.mjs +1 -1
- package/dist/physics/linear-pursuit/preset.mjs +2 -2
- package/dist/physics/lorentz/activity.d.mts +26 -0
- package/dist/physics/lorentz/activity.mjs +85 -0
- package/dist/physics/lorentz/core.d.mts +1 -5
- package/dist/physics/lorentz/core.mjs +1 -29
- package/dist/physics/lorentz/index.d.mts +1 -1
- package/dist/physics/lorentz/preset.d.mts +9 -2
- package/dist/physics/lorentz/preset.mjs +289 -111
- package/dist/physics/machines/ac-generator/core.d.mts +2 -38
- package/dist/physics/machines/ac-generator/core.mjs +2 -49
- package/dist/physics/machines/ac-generator/index.d.mts +2 -2
- package/dist/physics/machines/ac-generator/preset.d.mts +2 -1
- package/dist/physics/machines/ac-generator/preset.mjs +164 -186
- package/dist/physics/machines/dc-motor/core.d.mts +2 -28
- package/dist/physics/machines/dc-motor/core.mjs +2 -56
- package/dist/physics/machines/dc-motor/index.d.mts +2 -2
- package/dist/physics/machines/dc-motor/preset.d.mts +3 -1
- package/dist/physics/machines/dc-motor/preset.mjs +92 -85
- package/dist/physics/magnetisation/activity.mjs +187 -0
- package/dist/physics/magnetisation/core.mjs +180 -0
- package/dist/physics/magnetisation/preset.mjs +715 -0
- package/dist/physics/magnetism/compass-core.d.mts +8 -0
- package/dist/physics/magnetism/compass-core.mjs +184 -0
- package/dist/physics/magnetism/electromagnet-bench.d.mts +19 -0
- package/dist/physics/magnetism/electromagnet-bench.mjs +342 -0
- package/dist/physics/magnetism/formula-core.d.mts +1 -1
- package/dist/physics/magnetism/formula-core.mjs +3 -6
- package/dist/physics/magnetism/index.d.mts +9 -1
- package/dist/physics/magnetism/induction-bench.d.mts +19 -0
- package/dist/physics/magnetism/induction-bench.mjs +232 -0
- package/dist/physics/magnetism/inductor-energy.d.mts +1 -0
- package/dist/physics/magnetism/inductor-energy.mjs +168 -0
- package/dist/physics/magnetism/mutual-induction-core.mjs +32 -0
- package/dist/physics/magnetism/mutual-induction.d.mts +1 -0
- package/dist/physics/magnetism/mutual-induction.mjs +163 -0
- package/dist/physics/magnetism/pair-core.d.mts +1 -0
- package/dist/physics/magnetism/pair-core.mjs +117 -0
- package/dist/physics/magnetism/pair-preset.d.mts +3 -0
- package/dist/physics/magnetism/pair-preset.mjs +377 -0
- package/dist/physics/magnetism/preset.d.mts +18 -1
- package/dist/physics/magnetism/preset.mjs +174 -256
- package/dist/physics/magnetism/transformer-bench.d.mts +14 -0
- package/dist/physics/magnetism/transformer-bench.mjs +246 -0
- package/dist/physics/magnetism/world-glyphs.d.mts +2 -0
- package/dist/physics/mechanics/activity.mjs +1 -1
- package/dist/physics/mechanics/contact-pressure.d.mts +16 -0
- package/dist/physics/mechanics/contact-pressure.mjs +180 -0
- package/dist/physics/mechanics/core.d.mts +3 -15
- package/dist/physics/mechanics/core.mjs +3 -22
- package/dist/physics/mechanics/force-balance-scene.mjs +108 -0
- package/dist/physics/mechanics/glyphs.mjs +121 -29
- package/dist/physics/mechanics/presentation.mjs +2 -1
- package/dist/physics/mechanics/stability.d.mts +16 -0
- package/dist/physics/mechanics/stability.mjs +183 -0
- package/dist/physics/modern/imaging/index.d.mts +2 -3
- package/dist/physics/modern/imaging/pet-activity.d.mts +4 -1
- package/dist/physics/modern/imaging/pet-activity.mjs +94 -49
- package/dist/physics/modern/imaging/pet-preset.d.mts +4 -2
- package/dist/physics/modern/imaging/pet-preset.mjs +23 -18
- package/dist/physics/modern/imaging/pet-scene.d.mts +3 -2
- package/dist/physics/modern/imaging/pet-scene.mjs +124 -116
- package/dist/physics/modern/imaging/preset.d.mts +3 -2
- package/dist/physics/modern/imaging/preset.mjs +30 -8
- package/dist/physics/modern/imaging/spectrum-preset.d.mts +3 -2
- package/dist/physics/modern/imaging/spectrum-preset.mjs +30 -8
- package/dist/physics/modern/imaging/tomography-preset.mjs +238 -0
- package/dist/physics/modern/index.d.mts +7 -3
- package/dist/physics/modern/index.mjs +7 -3
- package/dist/physics/modern/nuclear/core.d.mts +33 -51
- package/dist/physics/modern/nuclear/core.mjs +30 -60
- package/dist/physics/modern/nuclear/decay-activity.d.mts +5 -0
- package/dist/physics/modern/nuclear/decay-activity.mjs +102 -0
- package/dist/physics/modern/nuclear/decay-core.d.mts +57 -0
- package/dist/physics/modern/nuclear/decay-core.mjs +65 -0
- package/dist/physics/modern/nuclear/decay-preset.d.mts +16 -0
- package/dist/physics/modern/nuclear/decay-preset.mjs +307 -0
- package/dist/physics/modern/nuclear/index.d.mts +4 -1
- package/dist/physics/modern/nuclear/preset.mjs +150 -25
- package/dist/physics/modern/quantum/bloch-preset.mjs +1 -1
- package/dist/physics/modern/quantum/double-slit-preset.mjs +1 -1
- package/dist/physics/modern/quantum/index.d.mts +3 -1
- package/dist/physics/modern/quantum/preset.mjs +1 -1
- package/dist/physics/modern/quantum/spectra-activity.d.mts +5 -0
- package/dist/physics/modern/quantum/spectra-activity.mjs +102 -0
- package/dist/physics/modern/quantum/spectra-preset.d.mts +16 -0
- package/dist/physics/modern/quantum/spectra-preset.mjs +335 -0
- package/dist/physics/modern/quantum/uncertainty-preset.mjs +1 -1
- package/dist/physics/modern/relativity/explorer-preset.mjs +1 -1
- package/dist/physics/modern/relativity/length-preset.mjs +1 -1
- package/dist/physics/modern/relativity/simultaneity-preset.mjs +1 -1
- package/dist/physics/modern/shared/experiment-transport.mjs +1 -1
- package/dist/physics/optics/activity.mjs +27 -0
- package/dist/physics/optics/asset.mjs +53 -28
- package/dist/physics/optics/diffraction-grating.d.mts +15 -0
- package/dist/physics/optics/diffraction-grating.mjs +307 -0
- package/dist/physics/optics/eye-correction.d.mts +16 -0
- package/dist/physics/optics/eye-correction.mjs +272 -0
- package/dist/physics/optics/guided-light.d.mts +19 -0
- package/dist/physics/optics/guided-light.mjs +334 -0
- package/dist/physics/optics/imaging-activity.mjs +3 -14
- package/dist/physics/optics/imaging-world-scene.mjs +564 -0
- package/dist/physics/optics/index.d.mts +8 -1
- package/dist/physics/optics/laser-emitter-glyph.mjs +46 -0
- package/dist/physics/optics/lens-geometry-scene.mjs +266 -0
- package/dist/physics/optics/lens-geometry.d.mts +14 -0
- package/dist/physics/optics/lens-geometry.mjs +122 -0
- package/dist/physics/optics/lens.d.mts +1 -1
- package/dist/physics/optics/lens.mjs +59 -334
- package/dist/physics/optics/light-path-world-scene.mjs +219 -0
- package/dist/physics/optics/mirror.d.mts +1 -1
- package/dist/physics/optics/mirror.mjs +66 -333
- package/dist/physics/optics/polarisation.d.mts +15 -0
- package/dist/physics/optics/polarisation.mjs +264 -0
- package/dist/physics/optics/preset.mjs +6 -4
- package/dist/physics/optics/prism-dispersion.d.mts +15 -0
- package/dist/physics/optics/prism-dispersion.mjs +91 -0
- package/dist/physics/optics/refraction-world-scene.mjs +275 -0
- package/dist/physics/optics/refraction.d.mts +1 -5
- package/dist/physics/optics/refraction.mjs +161 -365
- package/dist/physics/optics/spectral-resolver.d.mts +13 -0
- package/dist/physics/optics/spectral-resolver.mjs +207 -0
- package/dist/physics/orbit-lab.mjs +66 -53
- package/dist/physics/orbital/model.d.mts +3 -3
- package/dist/physics/orbital/model.mjs +32 -9
- package/dist/physics/power/preset.mjs +45 -40
- package/dist/physics/practical-data/scale.mjs +47 -0
- package/dist/physics/projectiles/falling-target.mjs +22 -4
- package/dist/physics/projectiles/moving-launcher.mjs +5 -5
- package/dist/physics/rain-relative/preset.mjs +28 -20
- package/dist/physics/ramp-forces/preset.mjs +4 -4
- package/dist/physics/river-boat.mjs +7 -6
- package/dist/physics/rocket-flight/index.d.mts +2 -0
- package/dist/physics/rocket-flight/preset.d.mts +14 -0
- package/dist/physics/rocket-flight/preset.mjs +200 -0
- package/dist/physics/rolling-race/index.d.mts +2 -0
- package/dist/physics/rolling-race/preset.d.mts +15 -0
- package/dist/physics/rolling-race/preset.mjs +193 -0
- package/dist/physics/shm/energy.d.mts +5 -2
- package/dist/physics/shm/energy.mjs +5 -5
- package/dist/physics/shm/graphs.d.mts +3 -1
- package/dist/physics/shm/graphs.mjs +4 -4
- package/dist/physics/shm/index.d.mts +2 -2
- package/dist/physics/shm/pendulum-worlds.mjs +1 -1
- package/dist/physics/shm/preset.d.mts +5 -2
- package/dist/physics/shm/preset.mjs +50 -24
- package/dist/physics/shm/springs.mjs +1 -1
- package/dist/physics/spin-studio/preset.mjs +28 -24
- package/dist/physics/stopping-distance/preset.mjs +8 -8
- package/dist/physics/stress-strain/core.d.mts +2 -127
- package/dist/physics/stress-strain/core.mjs +2 -160
- package/dist/physics/stress-strain/index.d.mts +3 -3
- package/dist/physics/stress-strain/preset.d.mts +5 -2
- package/dist/physics/stress-strain/preset.mjs +45 -16
- package/dist/physics/suspension/preset.mjs +181 -128
- package/dist/physics/temperature-scales/preset.mjs +26 -29
- package/dist/physics/terminal-velocity/model.mjs +38 -12
- package/dist/physics/terminal-velocity/preset.mjs +58 -50
- package/dist/physics/thermal/activity.mjs +1 -1
- package/dist/physics/thermal/equilibrium.d.mts +14 -0
- package/dist/physics/thermal/equilibrium.mjs +168 -0
- package/dist/physics/thermal/evaporation.d.mts +16 -0
- package/dist/physics/thermal/evaporation.mjs +177 -0
- package/dist/physics/thermal/index.d.mts +1 -1
- package/dist/physics/thermal/preset.d.mts +5 -2
- package/dist/physics/thermal/preset.mjs +138 -48
- package/dist/physics/thermal/specific-heat.d.mts +16 -0
- package/dist/physics/thermal/specific-heat.mjs +181 -0
- package/dist/physics/vector-board/preset.mjs +1 -1
- package/dist/physics/vector-types/preset.mjs +1 -1
- package/dist/physics/venturi/preset.mjs +2 -2
- package/dist/physics/water-density/preset.mjs +53 -57
- package/dist/physics/waves/acoustic-boundary.d.mts +16 -0
- package/dist/physics/waves/acoustic-boundary.mjs +215 -0
- package/dist/physics/waves/coherence.d.mts +13 -0
- package/dist/physics/waves/coherence.mjs +104 -0
- package/dist/physics/waves/diffraction-scene.mjs +23 -0
- package/dist/physics/waves/diffraction-skin.mjs +109 -0
- package/dist/physics/waves/doppler.mjs +4 -5
- package/dist/physics/waves/echo-ranging.d.mts +16 -0
- package/dist/physics/waves/echo-ranging.mjs +189 -0
- package/dist/physics/waves/gap-diffraction.d.mts +15 -0
- package/dist/physics/waves/gap-diffraction.mjs +83 -0
- package/dist/physics/waves/guitar.mjs +1 -1
- package/dist/physics/waves/harmonic-modes.d.mts +15 -0
- package/dist/physics/waves/harmonic-modes.mjs +91 -0
- package/dist/physics/waves/index.d.mts +22 -2
- package/dist/physics/waves/intensity-amplitude.d.mts +12 -0
- package/dist/physics/waves/intensity-amplitude.mjs +209 -0
- package/dist/physics/waves/interference-core.mjs +10 -2
- package/dist/physics/waves/particle-motion.d.mts +17 -0
- package/dist/physics/waves/particle-motion.mjs +178 -0
- package/dist/physics/waves/phase-path.d.mts +12 -0
- package/dist/physics/waves/phase-path.mjs +69 -0
- package/dist/physics/waves/preset.d.mts +4 -2
- package/dist/physics/waves/preset.mjs +43 -22
- package/dist/physics/waves/progressive-stationary.d.mts +14 -0
- package/dist/physics/waves/progressive-stationary.mjs +88 -0
- package/dist/physics/waves/pulse-echo.d.mts +18 -0
- package/dist/physics/waves/pulse-echo.mjs +435 -0
- package/dist/physics/waves/ripple.mjs +5 -3
- package/dist/physics/waves/sound-air.d.mts +18 -0
- package/dist/physics/waves/sound-air.mjs +187 -0
- package/dist/physics/waves/sound-medium.d.mts +19 -0
- package/dist/physics/waves/sound-medium.mjs +178 -0
- package/dist/physics/waves/standing-wave-scene.mjs +22 -0
- package/dist/physics/waves/string.mjs +3 -4
- package/dist/physics/waves/timbre.d.mts +17 -0
- package/dist/physics/waves/timbre.mjs +161 -0
- package/dist/physics/waves/travelling-wave-scene.d.mts +10 -0
- package/dist/physics/waves/travelling-wave-scene.mjs +22 -0
- package/dist/physics/waves/ultrasound-frequency.d.mts +13 -0
- package/dist/physics/waves/ultrasound-frequency.mjs +196 -0
- package/dist/physics/waves/water-refraction.d.mts +18 -0
- package/dist/physics/waves/water-refraction.mjs +196 -0
- package/dist/physics/waves/wave-activity.mjs +6 -4
- package/dist/physics/waves/wave-bench-scene.d.mts +9 -0
- package/dist/physics/waves/wave-bench-scene.mjs +22 -0
- package/dist/physics/waves/wave-bench-skins.mjs +513 -0
- package/dist/physics/waves/wave-graphs.d.mts +14 -0
- package/dist/physics/waves/wave-graphs.mjs +88 -0
- package/dist/physics/waves/wave-speed.d.mts +14 -0
- package/dist/physics/waves/wave-speed.mjs +75 -0
- package/dist/physics/waves/young-double-slit.d.mts +15 -0
- package/dist/physics/waves/young-double-slit.mjs +271 -0
- package/dist/physics/wire-force/activity.mjs +169 -0
- package/dist/physics/wire-force/core.mjs +108 -0
- package/dist/physics/wire-force/preset.mjs +698 -0
- package/dist/physics/work-energy/preset.mjs +25 -32
- package/dist/physics/work-potential/preset.mjs +14 -11
- package/dist/statistics/center-spread/preset.mjs +29 -30
- package/dist/statistics/frequency-density/preset.mjs +1 -1
- package/dist/statistics/galton/preset.mjs +3 -5
- package/dist/statistics/histogram/preset.mjs +44 -44
- package/dist/statistics/normal/preset.mjs +43 -23
- package/dist/statistics/ogive/preset.mjs +1 -1
- package/dist/statistics/sampling/preset.d.mts +20 -2
- package/dist/statistics/sampling/preset.mjs +67 -16
- package/dist/statistics/sequence/preset.mjs +49 -56
- package/dist/statistics/z-table/preset.mjs +32 -17
- package/dist/three/chemistry/crystal-lattice.d.mts +2 -1
- package/dist/three/chemistry/crystal-lattice.mjs +2 -1
- package/dist/three/index.d.mts +3 -1
- package/dist/three/index.mjs +2 -1
- package/dist/three/math/index.d.mts +2 -0
- package/dist/three/math/index.mjs +3 -0
- package/dist/three/math/solids-of-revolution.d.mts +10 -0
- package/dist/three/math/solids-of-revolution.mjs +345 -0
- package/dist/three/palette.d.mts +2 -0
- package/dist/three/palette.mjs +4 -2
- package/package.json +82 -57
- package/styles/core.css +3952 -4083
- package/styles/domains/algorithms.css +1 -0
- package/styles/domains/chemistry.css +5 -2
- package/styles/domains/commerce.css +5 -0
- package/styles/domains/exam.css +4 -0
- package/styles/domains/geometry.css +5 -0
- package/styles/domains/language.css +2 -0
- package/styles/domains/math.css +1 -1
- package/styles/domains/ml.css +1 -0
- package/styles/domains/parts/algorithms-0.css +63 -95
- package/styles/domains/parts/algorithms-1.css +53 -69
- package/styles/domains/parts/algorithms-2.css +12 -12
- package/styles/domains/parts/algorithms-3.css +10 -0
- package/styles/domains/parts/algorithms-4.css +756 -0
- package/styles/domains/parts/chemistry-concepts.css +1032 -0
- package/styles/domains/parts/chemistry-workshops.css +809 -0
- package/styles/domains/parts/circuits.css +305 -0
- package/styles/domains/parts/commerce-books.css +268 -0
- package/styles/domains/parts/commerce-entry-practice.css +244 -0
- package/styles/domains/parts/commerce-foundation.css +832 -0
- package/styles/domains/parts/commerce-ledger-practice.css +489 -0
- package/styles/domains/parts/discrete-4.css +15 -0
- package/styles/domains/parts/discrete-5.css +201 -0
- package/styles/domains/parts/exam-paper.css +258 -0
- package/styles/domains/parts/exam-practice.css +105 -0
- package/styles/domains/parts/exam-proof.css +74 -0
- package/styles/domains/parts/geometry-1.css +363 -0
- package/styles/domains/parts/ict.css +9 -0
- package/styles/domains/parts/language.css +663 -0
- package/styles/domains/parts/math-1.css +11 -2
- package/styles/domains/parts/math-2.css +0 -55
- package/styles/domains/parts/math-3.css +50 -48
- package/styles/domains/parts/math-5.css +76 -305
- package/styles/domains/parts/math-6.css +66 -35
- package/styles/domains/parts/math-7.css +592 -0
- package/styles/domains/parts/ml-2.css +775 -0
- package/styles/domains/parts/ml.css +6 -0
- package/styles/domains/parts/networking.css +18 -0
- package/styles/domains/parts/physics-foundations.css +672 -0
- package/styles/domains/parts/physics-investigations.css +757 -0
- package/styles/domains/parts/physics-refinements.css +446 -0
- package/styles/domains/parts/probability-2.css +19 -0
- package/styles/domains/parts/probability-3.css +9 -0
- package/styles/domains/parts/revision-1.css +711 -0
- package/styles/domains/parts/revision-2.css +312 -0
- package/styles/domains/parts/statistics.css +6 -0
- package/styles/domains/physics.css +3 -3
- package/styles/domains/revision.css +5 -0
- package/styles/domains.css +21 -7
- package/styles/figure.css +42 -16
- package/styles/runtime.css +16 -0
- package/styles.css +11 -20
- package/tailwind.css +17 -0
- package/dist/build/CircuitEditor.d.mts +0 -10
- package/dist/build/CircuitPlayer.d.mts +0 -13
- package/dist/build/CircuitPlayer.mjs +0 -53
- package/dist/build/CircuitScene.d.mts +0 -59
- package/dist/build/editor-ops.d.mts +0 -64
- package/dist/build/flow.d.mts +0 -13
- package/dist/build/flow.mjs +0 -119
- package/dist/build/solve.d.mts +0 -7
- package/dist/build/solve.mjs +0 -0
- package/dist/chem/reaction-lab.d.mts +0 -14
- package/dist/chem/reaction-lab.mjs +0 -266
- package/dist/circuits/circuit/asset.d.mts +0 -5
- package/dist/circuits/circuit/asset.mjs +0 -312
- package/dist/core/embedding.d.mts +0 -14
- package/dist/core/embedding.mjs +0 -107
- package/dist/core/next-token.d.mts +0 -9
- package/dist/core/next-token.mjs +0 -88
- package/dist/domains/chem/air-composition/manifest.mjs +0 -45
- package/dist/domains/chem/air-composition/runtime.mjs +0 -5
- package/dist/domains/chem/alkene-geometry/activity.mjs +0 -73
- package/dist/domains/chem/alkene-geometry/manifest.mjs +0 -58
- package/dist/domains/chem/alkene-geometry/model.mjs +0 -204
- package/dist/domains/chem/alkene-geometry/runtime.mjs +0 -122
- package/dist/domains/chem/alkene-geometry/scene.mjs +0 -170
- package/dist/domains/chem/apparatus-choice/manifest.mjs +0 -51
- package/dist/domains/chem/apparatus-choice/runtime.mjs +0 -5
- package/dist/domains/chem/applied-chemistry/manifest.mjs +0 -62
- package/dist/domains/chem/applied-chemistry/runtime.mjs +0 -5
- package/dist/domains/chem/arene-evidence/activity.mjs +0 -86
- package/dist/domains/chem/arene-evidence/manifest.mjs +0 -51
- package/dist/domains/chem/arene-evidence/model.d.mts +0 -71
- package/dist/domains/chem/arene-evidence/model.mjs +0 -116
- package/dist/domains/chem/arene-evidence/runtime.mjs +0 -138
- package/dist/domains/chem/arene-evidence/scene.d.mts +0 -8
- package/dist/domains/chem/arene-evidence/scene.mjs +0 -208
- package/dist/domains/chem/atomic-orbital/activity.mjs +0 -3
- package/dist/domains/chem/atomic-orbital/manifest.mjs +0 -71
- package/dist/domains/chem/atomic-orbital/runtime.mjs +0 -20
- package/dist/domains/chem/battery/manifest.mjs +0 -55
- package/dist/domains/chem/battery/runtime.mjs +0 -15
- package/dist/domains/chem/bohr-atom/manifest.mjs +0 -55
- package/dist/domains/chem/bohr-atom/runtime.mjs +0 -15
- package/dist/domains/chem/catalytic-cycle/activity.mjs +0 -36
- package/dist/domains/chem/catalytic-cycle/manifest.mjs +0 -44
- package/dist/domains/chem/catalytic-cycle/model.mjs +0 -61
- package/dist/domains/chem/catalytic-cycle/runtime.mjs +0 -61
- package/dist/domains/chem/catalytic-cycle/scene.mjs +0 -27
- package/dist/domains/chem/change-detective/activity.mjs +0 -81
- package/dist/domains/chem/change-detective/manifest.mjs +0 -46
- package/dist/domains/chem/change-detective/model.mjs +0 -65
- package/dist/domains/chem/change-detective/runtime.mjs +0 -73
- package/dist/domains/chem/change-detective/scene.mjs +0 -415
- package/dist/domains/chem/chem-qualitative-analysis/activity.mjs +0 -95
- package/dist/domains/chem/chem-qualitative-analysis/manifest.mjs +0 -68
- package/dist/domains/chem/chem-qualitative-analysis/runtime.mjs +0 -303
- package/dist/domains/chem/chromatography-plate/activity.mjs +0 -87
- package/dist/domains/chem/chromatography-plate/manifest.mjs +0 -59
- package/dist/domains/chem/chromatography-plate/model.mjs +0 -180
- package/dist/domains/chem/chromatography-plate/runtime.mjs +0 -200
- package/dist/domains/chem/chromatography-plate/scene.mjs +0 -292
- package/dist/domains/chem/complex-colour/activity.mjs +0 -94
- package/dist/domains/chem/complex-colour/manifest.mjs +0 -53
- package/dist/domains/chem/complex-colour/model.mjs +0 -243
- package/dist/domains/chem/complex-colour/runtime.mjs +0 -168
- package/dist/domains/chem/complex-colour/scene.mjs +0 -283
- package/dist/domains/chem/complex-shape/activity.mjs +0 -86
- package/dist/domains/chem/complex-shape/manifest.mjs +0 -52
- package/dist/domains/chem/complex-shape/model.mjs +0 -182
- package/dist/domains/chem/complex-shape/runtime.mjs +0 -162
- package/dist/domains/chem/complex-shape/scene.mjs +0 -270
- package/dist/domains/chem/composition-evidence/activity.mjs +0 -94
- package/dist/domains/chem/composition-evidence/manifest.mjs +0 -71
- package/dist/domains/chem/composition-evidence/model.mjs +0 -60
- package/dist/domains/chem/composition-evidence/runtime.mjs +0 -127
- package/dist/domains/chem/composition-evidence/scene.mjs +0 -308
- package/dist/domains/chem/conductivity-bench/activity.mjs +0 -71
- package/dist/domains/chem/conductivity-bench/manifest.mjs +0 -58
- package/dist/domains/chem/conductivity-bench/model.mjs +0 -257
- package/dist/domains/chem/conductivity-bench/runtime.mjs +0 -136
- package/dist/domains/chem/conductivity-bench/scene.mjs +0 -305
- package/dist/domains/chem/contact-process-control/activity.mjs +0 -75
- package/dist/domains/chem/contact-process-control/manifest.mjs +0 -48
- package/dist/domains/chem/contact-process-control/model.mjs +0 -106
- package/dist/domains/chem/contact-process-control/runtime.mjs +0 -65
- package/dist/domains/chem/contact-process-control/scene.mjs +0 -694
- package/dist/domains/chem/crystal-lattice/activity.mjs +0 -3
- package/dist/domains/chem/crystal-lattice/manifest.mjs +0 -68
- package/dist/domains/chem/crystal-lattice/runtime.mjs +0 -20
- package/dist/domains/chem/dilution/manifest.mjs +0 -57
- package/dist/domains/chem/dilution/runtime.mjs +0 -5
- package/dist/domains/chem/electrochem/manifest.mjs +0 -72
- package/dist/domains/chem/electrochem/runtime.mjs +0 -5
- package/dist/domains/chem/electrolysis-bench/activity.mjs +0 -72
- package/dist/domains/chem/electrolysis-bench/manifest.mjs +0 -71
- package/dist/domains/chem/electrolysis-bench/model.mjs +0 -174
- package/dist/domains/chem/electrolysis-bench/runtime.mjs +0 -169
- package/dist/domains/chem/electrolysis-bench/scene.mjs +0 -291
- package/dist/domains/chem/energy-cycle/activity.mjs +0 -86
- package/dist/domains/chem/energy-cycle/manifest.mjs +0 -52
- package/dist/domains/chem/energy-cycle/model.mjs +0 -249
- package/dist/domains/chem/energy-cycle/runtime.mjs +0 -181
- package/dist/domains/chem/energy-cycle/scene.mjs +0 -277
- package/dist/domains/chem/equation-conservation-desk/activity.mjs +0 -55
- package/dist/domains/chem/equation-conservation-desk/manifest.mjs +0 -61
- package/dist/domains/chem/equation-conservation-desk/runtime.mjs +0 -6
- package/dist/domains/chem/faraday-bench/activity.mjs +0 -51
- package/dist/domains/chem/faraday-bench/manifest.mjs +0 -65
- package/dist/domains/chem/faraday-bench/model.mjs +0 -193
- package/dist/domains/chem/faraday-bench/runtime.mjs +0 -99
- package/dist/domains/chem/faraday-bench/scene.mjs +0 -254
- package/dist/domains/chem/flame-test/activity.mjs +0 -66
- package/dist/domains/chem/flame-test/manifest.mjs +0 -66
- package/dist/domains/chem/flame-test/model.mjs +0 -149
- package/dist/domains/chem/flame-test/runtime.mjs +0 -120
- package/dist/domains/chem/flame-test/scene.mjs +0 -172
- package/dist/domains/chem/formula-forge/activity.mjs +0 -55
- package/dist/domains/chem/formula-forge/manifest.mjs +0 -66
- package/dist/domains/chem/formula-forge/runtime.mjs +0 -6
- package/dist/domains/chem/formula-workbench/activity.mjs +0 -92
- package/dist/domains/chem/formula-workbench/manifest.mjs +0 -73
- package/dist/domains/chem/formula-workbench/model.mjs +0 -89
- package/dist/domains/chem/formula-workbench/runtime.mjs +0 -135
- package/dist/domains/chem/formula-workbench/scene.mjs +0 -275
- package/dist/domains/chem/fuel-cell-flow/activity.mjs +0 -81
- package/dist/domains/chem/fuel-cell-flow/manifest.mjs +0 -49
- package/dist/domains/chem/fuel-cell-flow/model.mjs +0 -63
- package/dist/domains/chem/fuel-cell-flow/runtime.mjs +0 -134
- package/dist/domains/chem/fuel-cell-flow/scene.mjs +0 -245
- package/dist/domains/chem/functional-group-lens/activity.mjs +0 -86
- package/dist/domains/chem/functional-group-lens/manifest.mjs +0 -54
- package/dist/domains/chem/functional-group-lens/model.d.mts +0 -128
- package/dist/domains/chem/functional-group-lens/model.mjs +0 -250
- package/dist/domains/chem/functional-group-lens/runtime.d.mts +0 -16
- package/dist/domains/chem/functional-group-lens/runtime.mjs +0 -135
- package/dist/domains/chem/functional-group-lens/scene.d.mts +0 -8
- package/dist/domains/chem/functional-group-lens/scene.mjs +0 -389
- package/dist/domains/chem/gas-box/manifest.mjs +0 -79
- package/dist/domains/chem/gas-box/runtime.mjs +0 -5
- package/dist/domains/chem/hydrate-cycle/activity.mjs +0 -78
- package/dist/domains/chem/hydrate-cycle/manifest.mjs +0 -47
- package/dist/domains/chem/hydrate-cycle/model.mjs +0 -66
- package/dist/domains/chem/hydrate-cycle/runtime.mjs +0 -72
- package/dist/domains/chem/hydrate-cycle/scene.mjs +0 -187
- package/dist/domains/chem/industrial-process/manifest.mjs +0 -51
- package/dist/domains/chem/industrial-process/runtime.mjs +0 -5
- package/dist/domains/chem/ionic-bond-builder/manifest.mjs +0 -47
- package/dist/domains/chem/ionic-bond-builder/runtime.mjs +0 -5
- package/dist/domains/chem/isomer-builder/activity.mjs +0 -86
- package/dist/domains/chem/isomer-builder/manifest.mjs +0 -52
- package/dist/domains/chem/isomer-builder/model.mjs +0 -345
- package/dist/domains/chem/isomer-builder/runtime.mjs +0 -174
- package/dist/domains/chem/isomer-builder/scene.mjs +0 -216
- package/dist/domains/chem/kinetics/manifest.mjs +0 -59
- package/dist/domains/chem/kinetics/runtime.mjs +0 -5
- package/dist/domains/chem/le-chatelier/manifest.mjs +0 -57
- package/dist/domains/chem/le-chatelier/runtime.mjs +0 -5
- package/dist/domains/chem/mechanism-walk/activity.mjs +0 -53
- package/dist/domains/chem/mechanism-walk/manifest.mjs +0 -53
- package/dist/domains/chem/mechanism-walk/model.mjs +0 -429
- package/dist/domains/chem/mechanism-walk/runtime.mjs +0 -76
- package/dist/domains/chem/mechanism-walk/scene.mjs +0 -36
- package/dist/domains/chem/mole-factory/activity.mjs +0 -55
- package/dist/domains/chem/mole-factory/manifest.mjs +0 -62
- package/dist/domains/chem/mole-factory/runtime.mjs +0 -6
- package/dist/domains/chem/molecular-geometry/activity.mjs +0 -3
- package/dist/domains/chem/molecular-geometry/manifest.mjs +0 -74
- package/dist/domains/chem/molecular-geometry/runtime.mjs +0 -22
- package/dist/domains/chem/nmr-reader/activity.mjs +0 -88
- package/dist/domains/chem/nmr-reader/manifest.mjs +0 -59
- package/dist/domains/chem/nmr-reader/model.mjs +0 -200
- package/dist/domains/chem/nmr-reader/runtime.mjs +0 -167
- package/dist/domains/chem/nmr-reader/scene.mjs +0 -30
- package/dist/domains/chem/orbital-diagram/activity.mjs +0 -74
- package/dist/domains/chem/orbital-diagram/manifest.mjs +0 -58
- package/dist/domains/chem/orbital-diagram/model.mjs +0 -182
- package/dist/domains/chem/orbital-diagram/runtime.mjs +0 -98
- package/dist/domains/chem/orbital-diagram/scene.mjs +0 -289
- package/dist/domains/chem/orbital-overlap/activity.mjs +0 -3
- package/dist/domains/chem/orbital-overlap/manifest.mjs +0 -60
- package/dist/domains/chem/orbital-overlap/runtime.mjs +0 -18
- package/dist/domains/chem/organic-formula-studio/activity.mjs +0 -128
- package/dist/domains/chem/organic-formula-studio/manifest.mjs +0 -67
- package/dist/domains/chem/organic-formula-studio/model.mjs +0 -47
- package/dist/domains/chem/organic-formula-studio/pattern-scene.mjs +0 -344
- package/dist/domains/chem/organic-formula-studio/runtime.mjs +0 -221
- package/dist/domains/chem/organic-formula-studio/scene.mjs +0 -354
- package/dist/domains/chem/organic-formula-studio/topics.mjs +0 -186
- package/dist/domains/chem/organic-reaction-map/manifest.mjs +0 -67
- package/dist/domains/chem/organic-reaction-map/runtime.mjs +0 -5
- package/dist/domains/chem/particle-theatre/manifest.mjs +0 -66
- package/dist/domains/chem/particle-theatre/runtime.mjs +0 -5
- package/dist/domains/chem/percent-lens/activity.mjs +0 -119
- package/dist/domains/chem/percent-lens/manifest.mjs +0 -65
- package/dist/domains/chem/percent-lens/model.mjs +0 -84
- package/dist/domains/chem/percent-lens/runtime.mjs +0 -114
- package/dist/domains/chem/percent-lens/scene.mjs +0 -278
- package/dist/domains/chem/percentage-purity-lab/activity.mjs +0 -85
- package/dist/domains/chem/percentage-purity-lab/manifest.mjs +0 -51
- package/dist/domains/chem/percentage-purity-lab/model.mjs +0 -101
- package/dist/domains/chem/percentage-purity-lab/runtime.mjs +0 -146
- package/dist/domains/chem/percentage-purity-lab/scene.mjs +0 -309
- package/dist/domains/chem/percentage-yield-lab/activity.mjs +0 -54
- package/dist/domains/chem/percentage-yield-lab/manifest.mjs +0 -60
- package/dist/domains/chem/percentage-yield-lab/model.mjs +0 -96
- package/dist/domains/chem/percentage-yield-lab/runtime.mjs +0 -124
- package/dist/domains/chem/percentage-yield-lab/scene.mjs +0 -152
- package/dist/domains/chem/periodic-trends/manifest.mjs +0 -60
- package/dist/domains/chem/periodic-trends/runtime.mjs +0 -5
- package/dist/domains/chem/polymer-builder/activity.mjs +0 -88
- package/dist/domains/chem/polymer-builder/manifest.mjs +0 -63
- package/dist/domains/chem/polymer-builder/model.mjs +0 -200
- package/dist/domains/chem/polymer-builder/runtime.mjs +0 -175
- package/dist/domains/chem/polymer-builder/scene.mjs +0 -170
- package/dist/domains/chem/practical-observation/activity.mjs +0 -66
- package/dist/domains/chem/practical-observation/manifest.mjs +0 -50
- package/dist/domains/chem/practical-observation/model.mjs +0 -487
- package/dist/domains/chem/practical-observation/runtime.mjs +0 -113
- package/dist/domains/chem/practical-observation/scene.mjs +0 -662
- package/dist/domains/chem/precipitation-bench/activity.mjs +0 -65
- package/dist/domains/chem/precipitation-bench/manifest.mjs +0 -61
- package/dist/domains/chem/precipitation-bench/model.mjs +0 -119
- package/dist/domains/chem/precipitation-bench/runtime.mjs +0 -90
- package/dist/domains/chem/precipitation-bench/scene.mjs +0 -215
- package/dist/domains/chem/quantity-route/manifest.mjs +0 -133
- package/dist/domains/chem/quantity-route/runtime.mjs +0 -5
- package/dist/domains/chem/ratio-normalizer/manifest.mjs +0 -61
- package/dist/domains/chem/ratio-normalizer/runtime.mjs +0 -5
- package/dist/domains/chem/reaction-evidence/manifest.mjs +0 -51
- package/dist/domains/chem/reaction-evidence/runtime.mjs +0 -5
- package/dist/domains/chem/reaction-lab/manifest.mjs +0 -56
- package/dist/domains/chem/reaction-lab/runtime.mjs +0 -18
- package/dist/domains/chem/reaction-profile/manifest.mjs +0 -57
- package/dist/domains/chem/reaction-profile/runtime.mjs +0 -17
- package/dist/domains/chem/reagent-ladder/activity.mjs +0 -85
- package/dist/domains/chem/reagent-ladder/manifest.mjs +0 -58
- package/dist/domains/chem/reagent-ladder/model.mjs +0 -120
- package/dist/domains/chem/reagent-ladder/runtime.mjs +0 -107
- package/dist/domains/chem/reagent-ladder/scene.mjs +0 -174
- package/dist/domains/chem/redox-balancer/activity.mjs +0 -86
- package/dist/domains/chem/redox-balancer/manifest.mjs +0 -52
- package/dist/domains/chem/redox-balancer/model.mjs +0 -191
- package/dist/domains/chem/redox-balancer/runtime.mjs +0 -175
- package/dist/domains/chem/redox-balancer/scene.mjs +0 -159
- package/dist/domains/chem/relation-origin/activity.mjs +0 -42
- package/dist/domains/chem/relation-origin/manifest.mjs +0 -61
- package/dist/domains/chem/relation-origin/model.mjs +0 -172
- package/dist/domains/chem/relation-origin/runtime.mjs +0 -114
- package/dist/domains/chem/relation-origin/scene.mjs +0 -195
- package/dist/domains/chem/solubility-kitchen/activity.mjs +0 -54
- package/dist/domains/chem/solubility-kitchen/manifest.mjs +0 -66
- package/dist/domains/chem/solubility-kitchen/runtime.mjs +0 -6
- package/dist/domains/chem/soluble-salt-workshop/activity.mjs +0 -115
- package/dist/domains/chem/soluble-salt-workshop/manifest.mjs +0 -50
- package/dist/domains/chem/soluble-salt-workshop/model.mjs +0 -187
- package/dist/domains/chem/soluble-salt-workshop/runtime.mjs +0 -118
- package/dist/domains/chem/soluble-salt-workshop/scene.mjs +0 -700
- package/dist/domains/chem/solution-box/manifest.mjs +0 -57
- package/dist/domains/chem/solution-box/runtime.mjs +0 -5
- package/dist/domains/chem/solution-mixer/activity.mjs +0 -54
- package/dist/domains/chem/solution-mixer/manifest.mjs +0 -58
- package/dist/domains/chem/solution-mixer/runtime.mjs +0 -6
- package/dist/domains/chem/species-workshop/activity.mjs +0 -55
- package/dist/domains/chem/species-workshop/manifest.mjs +0 -66
- package/dist/domains/chem/species-workshop/runtime.mjs +0 -6
- package/dist/domains/chem/specimen-row/activity.mjs +0 -70
- package/dist/domains/chem/specimen-row/manifest.mjs +0 -57
- package/dist/domains/chem/specimen-row/model.mjs +0 -122
- package/dist/domains/chem/specimen-row/runtime.mjs +0 -105
- package/dist/domains/chem/specimen-row/scene.mjs +0 -230
- package/dist/domains/chem/spectrum-reader/activity.mjs +0 -36
- package/dist/domains/chem/spectrum-reader/manifest.mjs +0 -47
- package/dist/domains/chem/spectrum-reader/model.mjs +0 -244
- package/dist/domains/chem/spectrum-reader/runtime.mjs +0 -62
- package/dist/domains/chem/spectrum-reader/scene.mjs +0 -37
- package/dist/domains/chem/stereochemistry/activity.mjs +0 -3
- package/dist/domains/chem/stereochemistry/manifest.mjs +0 -65
- package/dist/domains/chem/stereochemistry/runtime.mjs +0 -21
- package/dist/domains/chem/stoichiometry/manifest.mjs +0 -61
- package/dist/domains/chem/stoichiometry/runtime.mjs +0 -5
- package/dist/domains/chem/structure-detective/activity.mjs +0 -67
- package/dist/domains/chem/structure-detective/manifest.mjs +0 -59
- package/dist/domains/chem/structure-detective/runtime.mjs +0 -6
- package/dist/domains/chem/synthesis-route/activity.mjs +0 -36
- package/dist/domains/chem/synthesis-route/manifest.mjs +0 -45
- package/dist/domains/chem/synthesis-route/model.mjs +0 -165
- package/dist/domains/chem/synthesis-route/runtime.mjs +0 -67
- package/dist/domains/chem/synthesis-route/scene.mjs +0 -152
- package/dist/domains/chem/titration/manifest.mjs +0 -62
- package/dist/domains/chem/titration/runtime.mjs +0 -5
- package/dist/domains/chem/titration-run/activity.mjs +0 -54
- package/dist/domains/chem/titration-run/manifest.mjs +0 -61
- package/dist/domains/chem/titration-run/model.mjs +0 -174
- package/dist/domains/chem/titration-run/runtime.mjs +0 -113
- package/dist/domains/chem/titration-run/scene.mjs +0 -166
- package/dist/domains/chem/trend-axis/activity.mjs +0 -52
- package/dist/domains/chem/trend-axis/manifest.mjs +0 -57
- package/dist/domains/chem/trend-axis/model.mjs +0 -487
- package/dist/domains/chem/trend-axis/runtime.mjs +0 -87
- package/dist/domains/chem/trend-axis/scene.mjs +0 -246
- package/dist/domains/physics/magnetic-field-mission/activity.mjs +0 -120
- package/dist/domains/physics/magnetic-field-mission/manifest.mjs +0 -73
- package/dist/domains/physics/magnetic-field-mission/palette.mjs +0 -40
- package/dist/domains/physics/magnetic-field-mission/runtime.mjs +0 -547
- package/dist/domains/physics/projectile-lab/core/formulas.mjs +0 -26
- package/dist/domains/physics/space-evidence-mission/activity.mjs +0 -148
- package/dist/domains/physics/space-evidence-mission/manifest.mjs +0 -88
- package/dist/domains/physics/space-evidence-mission/runtime.mjs +0 -624
- package/dist/kit/guide.d.mts +0 -41
- package/dist/kit/guide.mjs +0 -53
- package/dist/kit/steps.d.mts +0 -22
- package/dist/kit/steps.mjs +0 -57
- package/dist/math/circle/preset.d.mts +0 -30
- package/dist/math/circle/preset.mjs +0 -216
- package/dist/math/straight-line/preset.d.mts +0 -36
- package/dist/math/straight-line/preset.mjs +0 -420
- package/dist/physics/astronomy/core.d.mts +0 -111
- package/dist/physics/astronomy/core.mjs +0 -147
- package/dist/physics/circular-motion/model.mjs +0 -46
- package/dist/physics/collision-track/model.mjs +0 -62
- package/dist/physics/investigation/space.mjs +0 -191
- package/dist/physics/modern/imaging/pet-core.d.mts +0 -296
- package/dist/physics/modern/imaging/pet-core.mjs +0 -389
- package/dist/physics/orbital/core.d.mts +0 -69
- package/dist/physics/orbital/core.mjs +0 -93
- package/dist/physics/ultrasound/core.d.mts +0 -221
- package/dist/physics/ultrasound/core.mjs +0 -235
- package/styles/commerce.css +0 -826
- package/styles/domains/parts/chemistry.css +0 -1698
- package/styles/domains/parts/math-4.css +0 -75
- package/styles/domains/parts/physics-1.css +0 -483
- package/styles/domains/parts/physics-2.css +0 -664
- package/styles/domains/parts/physics-3.css +0 -433
- package/styles/exam.css +0 -206
- /package/dist/math/{circle → coordinate-geometry/circle}/index.d.mts +0 -0
- /package/dist/math/{straight-line → coordinate-geometry/straight-line}/index.d.mts +0 -0
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
import { AssessedChoiceGroup } from "../kit/controls.mjs";
|
|
4
4
|
import { Activity } from "../kit/activity.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { choiceDisplayOrder } from "../kit/choice-order.mjs";
|
|
6
|
+
import { useCheckpoint } from "../kit/pedagogy.mjs";
|
|
7
|
+
import { deleteBST, insertAVL, insertBST, searchBST, traverseTree, treeNodeName } from "./tree.mjs";
|
|
6
8
|
import { buildTeachingTree } from "./tree-builder.mjs";
|
|
7
9
|
import { CLASSIC_BST } from "./tree-presets.mjs";
|
|
10
|
+
import { resolveDataset } from "./worlds/index.mjs";
|
|
8
11
|
import { TraceTransport } from "./TraceTransport.mjs";
|
|
9
12
|
import { BinaryTransferCheck } from "./LearningChecks.mjs";
|
|
10
13
|
import { TreeScene } from "./TreeScene.mjs";
|
|
11
|
-
import { useEffect, useMemo, useState } from "react";
|
|
14
|
+
import { useEffect, useMemo, useRef, useState } from "react";
|
|
12
15
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
13
16
|
import { Check } from "lucide-react";
|
|
14
17
|
|
|
@@ -25,80 +28,245 @@ const DEFAULT_TREE_VALUES = [
|
|
|
25
28
|
7,
|
|
26
29
|
13
|
|
27
30
|
];
|
|
28
|
-
|
|
29
|
-
|
|
31
|
+
const ROTATIONS = [
|
|
32
|
+
{
|
|
33
|
+
value: "LL",
|
|
34
|
+
label: "Left, left",
|
|
35
|
+
path: "left → left"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
value: "RR",
|
|
39
|
+
label: "Right, right",
|
|
40
|
+
path: "right → right"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
value: "LR",
|
|
44
|
+
label: "Left, right",
|
|
45
|
+
path: "left → right"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
value: "RL",
|
|
49
|
+
label: "Right, left",
|
|
50
|
+
path: "right → left"
|
|
51
|
+
}
|
|
52
|
+
];
|
|
53
|
+
const CASES = [
|
|
54
|
+
{
|
|
55
|
+
value: "leaf",
|
|
56
|
+
label: "Case 1 · a leaf"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
value: "one-child",
|
|
60
|
+
label: "Case 2 · one child"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
value: "two-children",
|
|
64
|
+
label: "Case 3 · two children"
|
|
65
|
+
}
|
|
66
|
+
];
|
|
67
|
+
/** Tree snapshot the learner sees at a step (structural operations change the tree mid-trace). */
|
|
68
|
+
function treeAt(trace, base, step) {
|
|
69
|
+
if (trace.operation !== "insert" && trace.operation !== "avl-insert" && trace.operation !== "delete") return base;
|
|
70
|
+
if (trace.events[step]?.type === "complete") return trace.tree;
|
|
71
|
+
for (let index = step; index >= 0; index--) {
|
|
72
|
+
const event = trace.events[index];
|
|
73
|
+
if ((event.type === "insert" || event.type === "rotate" || event.type === "remove") && event.tree) return event.tree;
|
|
74
|
+
}
|
|
75
|
+
return base;
|
|
76
|
+
}
|
|
77
|
+
/** The prediction the learner commits to at this step, or undefined when the step just plays. */
|
|
78
|
+
function treeQuestionAt(trace, base, step) {
|
|
79
|
+
const event = trace.events[step];
|
|
80
|
+
if (!event) return void 0;
|
|
81
|
+
const shown = treeAt(trace, base, step);
|
|
82
|
+
const nodes = new Map([...base.nodes, ...shown.nodes].map((node) => [node.id, node]));
|
|
83
|
+
const name = (id) => treeNodeName(id ? nodes.get(id) : void 0) || "?";
|
|
84
|
+
if (event.type === "compare") {
|
|
85
|
+
const answer = event.relation === "less" ? "left" : event.relation === "greater" ? "right" : "equal";
|
|
86
|
+
return {
|
|
87
|
+
prompt: `Which way should ${event.target} go at ${name(event.nodeId)}?`,
|
|
88
|
+
answer,
|
|
89
|
+
options: [
|
|
90
|
+
{
|
|
91
|
+
value: "left",
|
|
92
|
+
label: "Left"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
value: "equal",
|
|
96
|
+
label: "Found"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
value: "right",
|
|
100
|
+
label: "Right"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
retry: `Not this branch. Compare ${event.target} with ${nodes.get(event.nodeId)?.value ?? ""} again.`,
|
|
104
|
+
aria: `Predict where ${event.target} belongs`
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
if (event.type === "balance" && event.rotation) return {
|
|
108
|
+
prompt: `Follow the heavy path from ${name(event.nodeId)}. Which case is it?`,
|
|
109
|
+
answer: event.rotation,
|
|
110
|
+
options: ROTATIONS.map((choice) => ({
|
|
111
|
+
value: choice.value,
|
|
112
|
+
label: `${choice.value} · ${choice.path}`
|
|
113
|
+
})),
|
|
114
|
+
retry: `Trace the child directions from ${nodes.get(event.nodeId)?.value}; name those two turns in order.`,
|
|
115
|
+
aria: "Predict the AVL rotation case"
|
|
116
|
+
};
|
|
117
|
+
if (event.type === "delete-case") return {
|
|
118
|
+
prompt: `${name(event.nodeId)} is found. Which delete case applies?`,
|
|
119
|
+
answer: event.deleteCase,
|
|
120
|
+
options: CASES,
|
|
121
|
+
retry: "Count the children of the node you found: none, one, or two.",
|
|
122
|
+
aria: "Predict the delete case"
|
|
123
|
+
};
|
|
124
|
+
if (event.type === "successor" && event.candidates.length >= 2) {
|
|
125
|
+
const options = event.candidates.map((id) => ({
|
|
126
|
+
value: id,
|
|
127
|
+
label: name(id)
|
|
128
|
+
}));
|
|
129
|
+
return {
|
|
130
|
+
prompt: `Which node takes ${name(event.targetId)}'s place?`,
|
|
131
|
+
answer: event.nodeId,
|
|
132
|
+
options: choiceDisplayOrder(options, event.nodeId, `tree-successor-${step}`),
|
|
133
|
+
retry: "The in-order successor is the SMALLEST key in the right subtree: step right once, then left as far as you can.",
|
|
134
|
+
aria: "Predict the replacement node"
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
const next = trace.events[step + 1];
|
|
138
|
+
if (trace.operation === "traversal" && next?.type === "visit") {
|
|
139
|
+
const visited = new Set(trace.events.slice(0, step + 1).flatMap((item) => item.type === "visit" ? [item.nodeId] : []));
|
|
140
|
+
const answer = next.nodeId;
|
|
141
|
+
const here = "nodeId" in event ? event.nodeId : event.type === "base-case" ? event.parentId : void 0;
|
|
142
|
+
const node = here ? nodes.get(here) : void 0;
|
|
143
|
+
const parent = here ? shown.nodes.find((item) => item.left === here || item.right === here)?.id : void 0;
|
|
144
|
+
const nearby = [
|
|
145
|
+
...event.type === "enqueue" ? event.queue : [],
|
|
146
|
+
here,
|
|
147
|
+
node?.left,
|
|
148
|
+
node?.right,
|
|
149
|
+
parent,
|
|
150
|
+
...shown.nodes.map((item) => item.id)
|
|
151
|
+
];
|
|
152
|
+
const distractors = [...new Set(nearby.filter((id) => Boolean(id) && id !== answer && !visited.has(id) && nodes.has(id)))].slice(0, 3);
|
|
153
|
+
if (!distractors.length) return void 0;
|
|
154
|
+
const options = [answer, ...distractors].map((id) => ({
|
|
155
|
+
value: id,
|
|
156
|
+
label: name(id)
|
|
157
|
+
}));
|
|
158
|
+
return {
|
|
159
|
+
prompt: "Which node is visited next?",
|
|
160
|
+
answer,
|
|
161
|
+
options: choiceDisplayOrder(options, answer, `tree-visit-${step}`),
|
|
162
|
+
retry: trace.events.some((item) => item.type === "enqueue") ? "Level-order always visits the node at the FRONT of the queue." : "Say the rule for this order out loud (node, left, right and so on) at the current call.",
|
|
163
|
+
aria: "Predict the next node visited"
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
function TreeQuestLab({ operation = "traversal", order = "inorder", target = 13, label, tree, values, items, dataset, strategy = "insertion-order", title, prompt, predict = true }) {
|
|
168
|
+
const resolved = resolveDataset(dataset, "items");
|
|
169
|
+
const keys = items?.length ? items : values?.length ? values : resolved?.items ?? DEFAULT_TREE_VALUES;
|
|
170
|
+
const keysKey = keys.map((entry) => typeof entry === "number" ? entry : `${entry.value}:${entry.label ?? ""}`).join(",");
|
|
171
|
+
const lessonTree = useMemo(() => tree ?? buildTeachingTree(keys, strategy), [
|
|
30
172
|
strategy,
|
|
31
173
|
tree,
|
|
32
|
-
|
|
174
|
+
keysKey
|
|
33
175
|
]);
|
|
34
176
|
const safeTree = lessonTree.rootId ? lessonTree : CLASSIC_BST;
|
|
35
|
-
const trace = useMemo(() => operation === "traversal" ? traverseTree(safeTree, order) : operation === "search" ? searchBST(safeTree, target) : operation === "avl-insert" ? insertAVL(safeTree, target) : insertBST(safeTree, target), [
|
|
177
|
+
const trace = useMemo(() => operation === "traversal" ? traverseTree(safeTree, order) : operation === "search" ? searchBST(safeTree, target) : operation === "avl-insert" ? insertAVL(safeTree, target, label) : operation === "delete" ? deleteBST(safeTree, target) : insertBST(safeTree, target, label), [
|
|
36
178
|
operation,
|
|
37
179
|
order,
|
|
38
180
|
target,
|
|
181
|
+
label,
|
|
39
182
|
safeTree
|
|
40
183
|
]);
|
|
41
184
|
const [step, setStep] = useState(0);
|
|
42
185
|
const [guess, setGuess] = useState();
|
|
43
|
-
const [
|
|
186
|
+
const [firstTry, setFirstTry] = useState({});
|
|
44
187
|
const [transferAnswer, setTransferAnswer] = useState();
|
|
188
|
+
const attempt = useRef(0);
|
|
189
|
+
const [attemptKey, setAttemptKey] = useState(0);
|
|
45
190
|
useEffect(() => {
|
|
46
191
|
setStep(0);
|
|
47
192
|
setGuess(void 0);
|
|
48
|
-
|
|
193
|
+
setFirstTry({});
|
|
49
194
|
setTransferAnswer(void 0);
|
|
195
|
+
attempt.current += 1;
|
|
196
|
+
setAttemptKey(attempt.current);
|
|
50
197
|
}, [trace]);
|
|
51
|
-
useEffect(() =>
|
|
52
|
-
setGuess(void 0);
|
|
53
|
-
setRotationGuess(void 0);
|
|
54
|
-
}, [step]);
|
|
198
|
+
useEffect(() => setGuess(void 0), [step]);
|
|
55
199
|
const event = trace.events[step];
|
|
56
200
|
const visible = trace.events.slice(0, step + 1);
|
|
57
201
|
const visited = new Set(visible.flatMap((item) => item.type === "visit" ? [item.nodeId] : []));
|
|
58
202
|
const output = [...visible].reverse().find((item) => item.type === "visit" || item.type === "complete")?.output ?? [];
|
|
59
|
-
const
|
|
60
|
-
const
|
|
61
|
-
const
|
|
62
|
-
const
|
|
63
|
-
const nodeMap = new Map(visibleTree.nodes.map((node) => [node.id, node]));
|
|
203
|
+
const levelOrder = operation === "traversal" && order === "level-order";
|
|
204
|
+
const queue = [...visible].reverse().map((item) => item.type === "enqueue" ? item.queue : item.type === "visit" ? item.queue : void 0).find((item) => Array.isArray(item)) ?? [];
|
|
205
|
+
const visibleTree = treeAt(trace, safeTree, step);
|
|
206
|
+
const nodeMap = new Map([...safeTree.nodes, ...visibleTree.nodes].map((node) => [node.id, node]));
|
|
64
207
|
const stack = eventStack(event);
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
208
|
+
const questions = useMemo(() => predict ? trace.events.map((_event, index) => treeQuestionAt(trace, safeTree, index)) : [], [
|
|
209
|
+
predict,
|
|
210
|
+
trace,
|
|
211
|
+
safeTree
|
|
212
|
+
]);
|
|
213
|
+
const question = questions[step];
|
|
214
|
+
const questionCount = questions.filter(Boolean).length;
|
|
215
|
+
const pending = Boolean(question && guess !== question.answer);
|
|
216
|
+
const pick = (next) => {
|
|
217
|
+
setGuess(next);
|
|
218
|
+
if (question && firstTry[step] === void 0) setFirstTry((current) => ({
|
|
219
|
+
...current,
|
|
220
|
+
[step]: next === question.answer
|
|
221
|
+
}));
|
|
222
|
+
};
|
|
223
|
+
const complete = step === trace.events.length - 1;
|
|
224
|
+
const firstTryRight = Object.values(firstTry).filter(Boolean).length;
|
|
225
|
+
const finalEvent = trace.events.at(-1);
|
|
226
|
+
useCheckpoint({
|
|
227
|
+
solved: complete,
|
|
228
|
+
activity: `tree-quest:${operation}:${operation === "traversal" ? order : target}:${items?.length || values?.length || tree ? "custom" : resolved?.id ?? "default"}`,
|
|
229
|
+
score: questionCount ? {
|
|
230
|
+
raw: firstTryRight,
|
|
231
|
+
max: questionCount
|
|
232
|
+
} : void 0,
|
|
233
|
+
response: `${finalEvent?.message ?? ""} ${firstTryRight} of ${questionCount} predictions right first time.`.trim(),
|
|
234
|
+
attemptKey
|
|
235
|
+
});
|
|
236
|
+
const heightOf = (id, guard = 0) => {
|
|
237
|
+
const found = id ? visibleTree.nodes.find((node) => node.id === id) : void 0;
|
|
238
|
+
return found && guard <= visibleTree.nodes.length ? 1 + Math.max(heightOf(found.left, guard + 1), heightOf(found.right, guard + 1)) : 0;
|
|
68
239
|
};
|
|
69
240
|
const nodeCount = visibleTree.nodes.length;
|
|
70
241
|
const levels = heightOf(visibleTree.rootId);
|
|
71
242
|
const balancedLevels = nodeCount ? Math.ceil(Math.log2(nodeCount + 1)) : 0;
|
|
72
243
|
const shapeBalanced = nodeCount === 0 || Math.abs(levels - balancedLevels) <= Math.abs(levels - nodeCount);
|
|
73
|
-
const
|
|
74
|
-
const
|
|
75
|
-
const
|
|
76
|
-
const
|
|
77
|
-
const
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
const heading = operation === "traversal" ? `${order[0].toUpperCase()}${order.slice(1)} traversal` : operation === "search" ? `Find ${target} in a BST` : operation === "avl-insert" ? `Balance the tree after inserting ${target}` : `Insert ${target} into a BST`;
|
|
100
|
-
const inspectorLabel = event.type === "balance" ? `AVL evidence · balance ${event.factor > 0 ? "+" : ""}${event.factor}${event.rotation ? ` · ${event.rotation}` : ""}` : operation === "traversal" ? "Recursion and output" : operation === "avl-insert" ? "AVL evidence" : "Decision evidence";
|
|
101
|
-
const transferPrompt = operation === "avl-insert" ? "After an AVL rotation, must the binary-search ordering still hold?" : "Can inserting sorted values into an unbalanced BST make lookup degrade to O(n)?";
|
|
244
|
+
const targetNode = safeTree.nodes.find((node) => node.value === target);
|
|
245
|
+
const targetName = targetNode ? treeNodeName(targetNode) : String(target);
|
|
246
|
+
const heading = operation === "traversal" ? levelOrder ? "Level-order traversal" : `${order[0].toUpperCase()}${order.slice(1)} traversal` : operation === "search" ? `Find ${targetName} in a BST` : operation === "avl-insert" ? `Balance the tree after inserting ${target}` : operation === "delete" ? `Delete ${targetName} from a BST` : `Insert ${target} into a BST`;
|
|
247
|
+
const inspectorLabel = event.type === "balance" ? `AVL evidence · balance ${event.factor > 0 ? "+" : ""}${event.factor}${event.rotation ? ` · ${event.rotation}` : ""}` : operation === "traversal" ? levelOrder ? "Queue and output" : "Recursion and output" : operation === "avl-insert" ? "AVL evidence" : "Decision evidence";
|
|
248
|
+
const transfer = operation === "avl-insert" ? {
|
|
249
|
+
prompt: "After an AVL rotation, must the binary-search ordering still hold?",
|
|
250
|
+
correct: "yes",
|
|
251
|
+
right: "Exactly. Rotation repairs height while preserving in-order key order.",
|
|
252
|
+
retry: "Rotation may change the root, but it cannot violate the BST invariant."
|
|
253
|
+
} : operation === "delete" ? {
|
|
254
|
+
prompt: "For a node with two children, would its in-order PREDECESSOR (largest key on the left) also keep the tree a valid BST?",
|
|
255
|
+
correct: "yes",
|
|
256
|
+
right: "Exactly. The predecessor is larger than everything else on the left and smaller than everything on the right, so either neighbour works; this lab always uses the successor.",
|
|
257
|
+
retry: "List the keys in order: the predecessor and the successor sit on either side of the deleted key."
|
|
258
|
+
} : levelOrder ? {
|
|
259
|
+
prompt: "Does level-order need a call stack the way preorder does?",
|
|
260
|
+
correct: "no",
|
|
261
|
+
right: "Exactly. A first-in first-out queue replaces the call stack, so the walk goes level by level.",
|
|
262
|
+
retry: "Watch the inspector: level-order only ever used the queue."
|
|
263
|
+
} : {
|
|
264
|
+
prompt: "Can inserting sorted values into an unbalanced BST make lookup degrade to O(n)?",
|
|
265
|
+
correct: "yes",
|
|
266
|
+
right: "Exactly. A sorted insertion sequence can create a chain, so depth and lookup become linear.",
|
|
267
|
+
retry: "Compare a chain-shaped tree with a balanced tree containing the same keys."
|
|
268
|
+
};
|
|
269
|
+
const message = pending && question ? `Predict first: ${question.prompt}` : event.message;
|
|
102
270
|
return /* @__PURE__ */ jsxs(Activity.Root, {
|
|
103
271
|
className: "tree-quest algorithm-activity",
|
|
104
272
|
focusLayout: "immersive",
|
|
@@ -106,90 +274,72 @@ function TreeQuestLab({ operation = "traversal", order = "inorder", target = 13,
|
|
|
106
274
|
/* @__PURE__ */ jsxs(Activity.Header, { children: [/* @__PURE__ */ jsx(Activity.Heading, {
|
|
107
275
|
eyebrow: "Tree quest",
|
|
108
276
|
title: title ?? heading,
|
|
109
|
-
description: prompt ?? (operation === "traversal" ? "Follow the recursive calls and collect each node in the correct order." : "Use the BST invariant to choose a branch at every comparison.")
|
|
277
|
+
description: prompt ?? resolved?.note ?? (operation === "traversal" ? levelOrder ? "Take nodes from the front of the queue and add their children to the back." : "Follow the recursive calls and collect each node in the correct order." : "Use the BST invariant to choose a branch at every comparison.")
|
|
110
278
|
}), /* @__PURE__ */ jsx(Activity.FocusButton, {})] }),
|
|
111
|
-
/* @__PURE__ */ jsxs(Activity.Status, { children: [
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
279
|
+
/* @__PURE__ */ jsxs(Activity.Status, { children: [
|
|
280
|
+
/* @__PURE__ */ jsxs("span", {
|
|
281
|
+
className: "lab-chip",
|
|
282
|
+
children: ["Mission ", /* @__PURE__ */ jsx("strong", { children: operation })]
|
|
283
|
+
}),
|
|
284
|
+
operation === "traversal" ? /* @__PURE__ */ jsxs("span", {
|
|
285
|
+
className: "lab-chip",
|
|
286
|
+
children: ["Order ", /* @__PURE__ */ jsx("strong", { children: order })]
|
|
287
|
+
}) : /* @__PURE__ */ jsxs("span", {
|
|
288
|
+
className: "lab-chip",
|
|
289
|
+
children: [
|
|
290
|
+
operation === "delete" ? "Delete" : "Target",
|
|
291
|
+
" ",
|
|
292
|
+
/* @__PURE__ */ jsx("strong", { children: target })
|
|
293
|
+
]
|
|
294
|
+
}),
|
|
295
|
+
questionCount > 0 && /* @__PURE__ */ jsxs("span", {
|
|
296
|
+
className: "lab-chip",
|
|
297
|
+
children: ["First try ", /* @__PURE__ */ jsxs("strong", { children: [
|
|
298
|
+
firstTryRight,
|
|
299
|
+
"/",
|
|
300
|
+
questionCount
|
|
301
|
+
] })]
|
|
302
|
+
})
|
|
303
|
+
] }),
|
|
121
304
|
/* @__PURE__ */ jsxs(Activity.Workspace, { children: [/* @__PURE__ */ jsxs(Activity.Canvas, {
|
|
122
305
|
label: "Binary tree quest",
|
|
123
|
-
children: [
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
children:
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
tone: guess === choice ? choice === correct ? "correct" : "wrong" : void 0
|
|
149
|
-
}))
|
|
150
|
-
}),
|
|
151
|
-
guess && /* @__PURE__ */ jsx("small", {
|
|
152
|
-
"aria-live": "polite",
|
|
153
|
-
children: guess === correct ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Check, { "aria-hidden": "true" }), " Exactly—now watch that decision happen."] }) : `Not this branch. Compare ${target} with ${event.nodeId ? nodeMap.get(event.nodeId)?.value : ""} again.`
|
|
154
|
-
})
|
|
155
|
-
]
|
|
156
|
-
}),
|
|
157
|
-
rotationPrediction && /* @__PURE__ */ jsxs("div", {
|
|
158
|
-
className: "tree-prediction tree-rotation-prediction",
|
|
159
|
-
children: [
|
|
160
|
-
/* @__PURE__ */ jsxs("span", { children: [
|
|
161
|
-
"Follow the heavy path from ",
|
|
162
|
-
nodeMap.get(event.nodeId)?.value,
|
|
163
|
-
". Which case is it?"
|
|
164
|
-
] }),
|
|
165
|
-
/* @__PURE__ */ jsx(AssessedChoiceGroup, {
|
|
166
|
-
value: rotationGuess,
|
|
167
|
-
onChange: setRotationGuess,
|
|
168
|
-
ariaLabel: "Predict the AVL rotation case",
|
|
169
|
-
options: rotationChoices.map((choice) => ({
|
|
170
|
-
value: choice.value,
|
|
171
|
-
label: `${choice.value} · ${choice.path}`,
|
|
172
|
-
tone: rotationGuess === choice.value ? choice.value === correctRotation ? "correct" : "wrong" : void 0
|
|
173
|
-
}))
|
|
174
|
-
}),
|
|
175
|
-
rotationGuess && /* @__PURE__ */ jsx("small", {
|
|
176
|
-
"aria-live": "polite",
|
|
177
|
-
children: rotationGuess === correctRotation ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
178
|
-
/* @__PURE__ */ jsx(Check, { "aria-hidden": "true" }),
|
|
179
|
-
" Correct—",
|
|
180
|
-
rotationChoices.find((choice) => choice.value === correctRotation)?.label,
|
|
181
|
-
". Advance to watch the repair."
|
|
182
|
-
] }) : `Trace the child directions from ${nodeMap.get(event.nodeId)?.value}; name those two turns in order.`
|
|
183
|
-
})
|
|
184
|
-
]
|
|
185
|
-
})
|
|
186
|
-
]
|
|
306
|
+
children: [/* @__PURE__ */ jsx(TreeScene, {
|
|
307
|
+
tree: visibleTree,
|
|
308
|
+
event,
|
|
309
|
+
visited,
|
|
310
|
+
queued: levelOrder ? new Set(queue) : void 0
|
|
311
|
+
}), question && /* @__PURE__ */ jsxs("div", {
|
|
312
|
+
className: "tree-prediction",
|
|
313
|
+
children: [
|
|
314
|
+
/* @__PURE__ */ jsx("span", { children: question.prompt }),
|
|
315
|
+
/* @__PURE__ */ jsx(AssessedChoiceGroup, {
|
|
316
|
+
value: guess,
|
|
317
|
+
onChange: pick,
|
|
318
|
+
ariaLabel: question.aria,
|
|
319
|
+
options: question.options.map((choice) => ({
|
|
320
|
+
value: choice.value,
|
|
321
|
+
label: choice.label,
|
|
322
|
+
tone: guess === choice.value ? choice.value === question.answer ? "correct" : "wrong" : void 0
|
|
323
|
+
}))
|
|
324
|
+
}),
|
|
325
|
+
guess && /* @__PURE__ */ jsx("small", {
|
|
326
|
+
"aria-live": "polite",
|
|
327
|
+
children: guess === question.answer ? /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsx(Check, { "aria-hidden": "true" }), " Exactly. Now watch that decision happen."] }) : question.retry
|
|
328
|
+
})
|
|
329
|
+
]
|
|
330
|
+
})]
|
|
187
331
|
}), /* @__PURE__ */ jsx(Activity.Inspector, {
|
|
188
332
|
label: inspectorLabel,
|
|
189
333
|
children: /* @__PURE__ */ jsxs("div", {
|
|
190
334
|
className: "tree-inspector",
|
|
191
335
|
children: [
|
|
192
|
-
/* @__PURE__ */ jsxs("section", { children: [/* @__PURE__ */ jsx("h4", { children:
|
|
336
|
+
levelOrder ? /* @__PURE__ */ jsxs("section", { children: [/* @__PURE__ */ jsx("h4", { children: "Queue (front first)" }), /* @__PURE__ */ jsx("div", {
|
|
337
|
+
className: "tree-stack tree-queue",
|
|
338
|
+
children: queue.length ? queue.map((id, index) => /* @__PURE__ */ jsx("span", {
|
|
339
|
+
"data-top": index === 0 || void 0,
|
|
340
|
+
children: treeNodeName(nodeMap.get(id)) || id
|
|
341
|
+
}, id)) : /* @__PURE__ */ jsx("em", { children: "queue empty" })
|
|
342
|
+
})] }) : /* @__PURE__ */ jsxs("section", { children: [/* @__PURE__ */ jsx("h4", { children: operation === "traversal" ? "Call stack" : "Decision path" }), /* @__PURE__ */ jsx("div", {
|
|
193
343
|
className: "tree-stack",
|
|
194
344
|
children: stack.length ? [...stack].reverse().map((id, index) => /* @__PURE__ */ jsxs("span", {
|
|
195
345
|
"data-top": index === 0 || void 0,
|
|
@@ -216,15 +366,22 @@ function TreeQuestLab({ operation = "traversal", order = "inorder", target = 13,
|
|
|
216
366
|
/* @__PURE__ */ jsx("small", { children: event.rotation ? `${event.rotation}: follow the two heavy-child directions shown in the tree.` : "−1, 0, or 1 means this node is still AVL-balanced." })
|
|
217
367
|
]
|
|
218
368
|
}),
|
|
369
|
+
operation === "delete" && /* @__PURE__ */ jsxs("section", {
|
|
370
|
+
className: "tree-delete-cases",
|
|
371
|
+
children: [/* @__PURE__ */ jsx("h4", { children: "Three delete cases" }), /* @__PURE__ */ jsx("ol", { children: CASES.map((item) => /* @__PURE__ */ jsx("li", {
|
|
372
|
+
"data-here": visible.some((seen) => seen.type === "delete-case" && seen.deleteCase === item.value) && !pending ? true : void 0,
|
|
373
|
+
children: item.label
|
|
374
|
+
}, item.value)) })]
|
|
375
|
+
}),
|
|
219
376
|
operation === "traversal" && /* @__PURE__ */ jsxs("section", { children: [/* @__PURE__ */ jsx("h4", { children: "Visited output" }), /* @__PURE__ */ jsx("div", {
|
|
220
377
|
className: "tree-output",
|
|
221
|
-
children: output.length ? output.map((id) => /* @__PURE__ */ jsx("span", { children: nodeMap.get(id)
|
|
378
|
+
children: output.length ? output.map((id) => /* @__PURE__ */ jsx("span", { children: treeNodeName(nodeMap.get(id)) || id }, id)) : /* @__PURE__ */ jsx("em", { children: "no node visited yet" })
|
|
222
379
|
})] }),
|
|
223
380
|
/* @__PURE__ */ jsxs("section", {
|
|
224
381
|
className: "tree-invariant",
|
|
225
|
-
children: [/* @__PURE__ */ jsx("h4", { children: "Rule to preserve" }), /* @__PURE__ */ jsx("p", { children: operation === "traversal" ? `${order}: ${order === "preorder" ? "node, left, right" : order === "inorder" ? "left, node, right" : "left, right, node"}` : operation === "avl-insert" ? "BST order, and every node has |left height − right height| ≤ 1" : "every left value is smaller; every right value is larger" })]
|
|
382
|
+
children: [/* @__PURE__ */ jsx("h4", { children: "Rule to preserve" }), /* @__PURE__ */ jsx("p", { children: operation === "traversal" ? `${order}: ${order === "preorder" ? "node, left, right" : order === "inorder" ? "left, node, right" : order === "postorder" ? "left, right, node" : "visit the front of the queue, then enqueue its left and right children"}` : operation === "avl-insert" ? "BST order, and every node has |left height − right height| ≤ 1" : operation === "delete" ? "after the delete, every left key is still smaller and every right key larger" : "every left value is smaller; every right value is larger" })]
|
|
226
383
|
}),
|
|
227
|
-
(
|
|
384
|
+
(complete || event.type === "start") && /* @__PURE__ */ jsxs("section", {
|
|
228
385
|
className: "tree-complexity",
|
|
229
386
|
children: [
|
|
230
387
|
/* @__PURE__ */ jsx("h4", { children: operation === "traversal" ? "Tree depth" : "Why balance matters" }),
|
|
@@ -255,35 +412,35 @@ function TreeQuestLab({ operation = "traversal", order = "inorder", target = 13,
|
|
|
255
412
|
]
|
|
256
413
|
})
|
|
257
414
|
})] }),
|
|
258
|
-
|
|
415
|
+
complete && /* @__PURE__ */ jsx(BinaryTransferCheck, {
|
|
259
416
|
id: "tree-transfer-title",
|
|
260
|
-
prompt:
|
|
417
|
+
prompt: transfer.prompt,
|
|
261
418
|
answer: transferAnswer,
|
|
262
|
-
correct:
|
|
419
|
+
correct: transfer.correct,
|
|
263
420
|
onAnswer: setTransferAnswer,
|
|
264
|
-
correctFeedback:
|
|
265
|
-
retryFeedback:
|
|
421
|
+
correctFeedback: transfer.right,
|
|
422
|
+
retryFeedback: transfer.retry
|
|
266
423
|
}),
|
|
267
|
-
/* @__PURE__ */ jsxs(Activity.Feedback, { children: [/* @__PURE__ */ jsx("strong", { children: event.type === "balance" ? "Balance" : event.type === "compare" ? "Compare" : event.type === "rotate" ? "Repair" : event.type === "complete" ? "Result" : "Observe" }), /* @__PURE__ */ jsx("span", { children:
|
|
268
|
-
/* @__PURE__ */ jsx(Activity.Transcript, { children: /* @__PURE__ */ jsxs("ol", { children: [
|
|
424
|
+
/* @__PURE__ */ jsxs(Activity.Feedback, { children: [/* @__PURE__ */ jsx("strong", { children: pending ? "Predict" : event.type === "balance" ? "Balance" : event.type === "compare" ? "Compare" : event.type === "rotate" || event.type === "remove" ? "Repair" : event.type === "complete" ? "Result" : "Observe" }), /* @__PURE__ */ jsx("span", { children: message })] }),
|
|
425
|
+
/* @__PURE__ */ jsx(Activity.Transcript, { children: /* @__PURE__ */ jsxs("ol", { children: [visible.map((item, index) => /* @__PURE__ */ jsx("li", {
|
|
269
426
|
"data-current": index === step || void 0,
|
|
270
|
-
children: item.message
|
|
427
|
+
children: index === step ? message : item.message
|
|
271
428
|
}, index)), transferAnswer && /* @__PURE__ */ jsxs("li", { children: [
|
|
272
429
|
"Transfer answer:",
|
|
273
430
|
" ",
|
|
274
|
-
transferAnswer ===
|
|
431
|
+
transferAnswer === transfer.correct ? "the invariant applies in the changed case" : "reconsider the changed case",
|
|
275
432
|
"."
|
|
276
433
|
] })] }) }),
|
|
277
434
|
/* @__PURE__ */ jsx(TraceTransport, {
|
|
278
435
|
step,
|
|
279
436
|
count: trace.events.length,
|
|
280
|
-
message
|
|
437
|
+
message,
|
|
281
438
|
setStep,
|
|
282
|
-
canAdvance:
|
|
439
|
+
canAdvance: !pending
|
|
283
440
|
})
|
|
284
441
|
]
|
|
285
442
|
});
|
|
286
443
|
}
|
|
287
444
|
|
|
288
445
|
//#endregion
|
|
289
|
-
export { TreeQuestLab };
|
|
446
|
+
export { TreeQuestLab, treeQuestionAt };
|
|
@@ -4,8 +4,10 @@ interface TreeSceneProps {
|
|
|
4
4
|
tree: BinaryTree;
|
|
5
5
|
event: TreeEvent;
|
|
6
6
|
visited?: ReadonlySet<string>;
|
|
7
|
+
/** Level-order: nodes waiting in the queue. */
|
|
8
|
+
queued?: ReadonlySet<string>;
|
|
7
9
|
onNodeSelect?: (id: string) => void;
|
|
8
10
|
}
|
|
9
|
-
declare function TreeScene({ tree, event, visited, onNodeSelect }: TreeSceneProps): import("react").JSX.Element;
|
|
11
|
+
declare function TreeScene({ tree, event, visited, queued, onNodeSelect }: TreeSceneProps): import("react").JSX.Element;
|
|
10
12
|
//#endregion
|
|
11
13
|
export { TreeScene, TreeSceneProps };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { FigText } from "../kit/figure/text.mjs";
|
|
3
4
|
import { layoutBinaryTree } from "./tree-layout.mjs";
|
|
4
5
|
import { useEffect, useRef, useState } from "react";
|
|
5
6
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -9,15 +10,18 @@ import { Maximize2 } from "lucide-react";
|
|
|
9
10
|
//#region src/algorithms/TreeScene.tsx
|
|
10
11
|
const R_HALO = 22;
|
|
11
12
|
const R_FACE = 16;
|
|
12
|
-
const FONT = 10;
|
|
13
13
|
const PAD = 34;
|
|
14
14
|
const READABLE_W = 760;
|
|
15
15
|
const READABLE_H = 620;
|
|
16
|
-
|
|
16
|
+
const NO_IDS = /* @__PURE__ */ new Set();
|
|
17
|
+
const LABEL_CHARS = 10;
|
|
18
|
+
const treeLabel = (label) => !label ? void 0 : label.length > LABEL_CHARS ? `${label.slice(0, 9)}…` : label;
|
|
19
|
+
function TreeScene({ tree, event, visited = NO_IDS, queued = NO_IDS, onNodeSelect }) {
|
|
17
20
|
const positions = layoutBinaryTree(tree);
|
|
18
21
|
const at = new Map(positions.map((item) => [item.id, item]));
|
|
19
22
|
const nodes = new Map(tree.nodes.map((node) => [node.id, node]));
|
|
20
|
-
const current = "nodeId" in event ? event.nodeId : event.type === "descend" ? event.to ?? event.from : void 0;
|
|
23
|
+
const current = event.type === "remove" ? event.replacementId : "nodeId" in event ? event.nodeId : event.type === "descend" ? event.to ?? event.from : void 0;
|
|
24
|
+
const marked = event.type === "successor" ? event.targetId : event.type === "delete-case" ? event.nodeId : void 0;
|
|
21
25
|
const active = event.type === "descend" ? `${event.from}:${event.to}` : void 0;
|
|
22
26
|
const xs = positions.length ? positions.map((p) => p.x) : [0];
|
|
23
27
|
const ys = positions.length ? positions.map((p) => p.y) : [0];
|
|
@@ -157,9 +161,11 @@ function TreeScene({ tree, event, visited = /* @__PURE__ */ new Set(), onNodeSel
|
|
|
157
161
|
transform: `translate(${position.x} ${position.y})`,
|
|
158
162
|
"data-current": node.id === current || void 0,
|
|
159
163
|
"data-visited": visited.has(node.id) || void 0,
|
|
164
|
+
"data-queued": queued.has(node.id) || void 0,
|
|
165
|
+
"data-marked": node.id === marked || void 0,
|
|
160
166
|
role: onNodeSelect ? "treeitem" : void 0,
|
|
161
167
|
"aria-level": onNodeSelect ? position.depth + 1 : void 0,
|
|
162
|
-
"aria-label": `Node ${node.value}, depth ${position.depth}`,
|
|
168
|
+
"aria-label": `Node ${node.value}${node.label ? `, ${node.label}` : ""}, depth ${position.depth}`,
|
|
163
169
|
tabIndex: onNodeSelect ? node.id === focusId ? 0 : -1 : void 0,
|
|
164
170
|
onFocus: onNodeSelect ? () => setFocusId(node.id) : void 0,
|
|
165
171
|
onClick: onNodeSelect ? () => {
|
|
@@ -176,12 +182,23 @@ function TreeScene({ tree, event, visited = /* @__PURE__ */ new Set(), onNodeSel
|
|
|
176
182
|
className: "tree-node-face",
|
|
177
183
|
r: R_FACE
|
|
178
184
|
}),
|
|
179
|
-
/* @__PURE__ */ jsx(
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
185
|
+
/* @__PURE__ */ jsx(FigText, {
|
|
186
|
+
x: 0,
|
|
187
|
+
y: 0,
|
|
188
|
+
anchor: "middle",
|
|
189
|
+
baseline: "middle",
|
|
190
|
+
size: "label",
|
|
191
|
+
caps: false,
|
|
184
192
|
children: node.value
|
|
193
|
+
}),
|
|
194
|
+
node.label && /* @__PURE__ */ jsxs(FigText, {
|
|
195
|
+
x: 0,
|
|
196
|
+
y: 31,
|
|
197
|
+
className: "tree-node-label",
|
|
198
|
+
anchor: "middle",
|
|
199
|
+
size: "note",
|
|
200
|
+
caps: false,
|
|
201
|
+
children: [/* @__PURE__ */ jsx("title", { children: node.label }), treeLabel(node.label)]
|
|
185
202
|
})
|
|
186
203
|
]
|
|
187
204
|
}, node.id);
|