@allyhub/sdk 0.8.0 → 0.10.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/CHANGELOG.md +19 -0
- package/NOTICE +46 -49
- package/dist/dom.d.ts +1 -209
- package/dist/dom.js +1 -1
- package/dist/image.d.ts +2 -0
- package/dist/image.js +2 -0
- package/dist/index.d.ts +1 -21
- package/dist/index.js +1 -1
- package/dist/media.d.ts +1 -5
- package/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/levels.d.ts +4 -5
- package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.d.ts +1 -6
- package/dist/node_modules/@allyhub/audio/dist/node/ffmpeg.js +1 -1
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +4 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +22 -0
- package/dist/node_modules/@allyhub/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/LICENSE +241 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.d.ts +37 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.d.ts +43 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/problem.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.d.ts +30 -0
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +2 -0
- package/dist/node_modules/@allyhub/diagnostics/package.json +14 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.d.ts +126 -0
- package/dist/node_modules/@allyhub/formats/dist/contributed.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +7 -12
- package/dist/node_modules/@allyhub/formats/dist/data/reference.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/script.d.ts +9 -4
- package/dist/node_modules/@allyhub/formats/dist/data/script.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +107 -83
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +185 -8
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.d.ts +2 -1
- package/dist/node_modules/@allyhub/formats/dist/data/website.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.d.ts +91 -0
- package/dist/node_modules/@allyhub/formats/dist/extension.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/files.d.ts +51 -0
- package/dist/node_modules/@allyhub/formats/dist/files.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/index.d.ts +5 -1
- package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +226 -90
- package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.d.ts +7 -1
- package/dist/node_modules/@allyhub/formats/dist/layout.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +96 -42
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.d.ts +5 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/contrast.d.ts +13 -0
- package/dist/node_modules/@allyhub/image-draw/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.d.ts +112 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.d.ts +20 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.d.ts +110 -0
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/guards.d.ts +32 -0
- package/dist/node_modules/@allyhub/image-draw/dist/guards.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.d.ts +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.d.ts +113 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.d.ts +151 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.d.ts +29 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/pictures.d.ts +39 -0
- package/dist/node_modules/@allyhub/image-draw/dist/pictures.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.d.ts +52 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.d.ts +145 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.d.ts +26 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.d.ts +56 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/styles.d.ts +35 -0
- package/dist/node_modules/@allyhub/image-draw/dist/styles.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/tone.d.ts +53 -0
- package/dist/node_modules/@allyhub/image-draw/dist/tone.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/package.json +14 -0
- package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.d.ts +43 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -0
- package/dist/node_modules/@allyhub/image-measure/dist/layout.d.ts +186 -0
- package/dist/node_modules/@allyhub/image-measure/dist/layout.js +5 -0
- package/dist/node_modules/@allyhub/image-measure/package.json +14 -0
- package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.d.ts +13 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
- package/dist/{define.d.ts → node_modules/@allyhub/image-sdk/dist/define.d.ts} +21 -4
- package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.d.ts +210 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.d.ts +21 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.d.ts +17 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.d.ts +166 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.d.ts +6 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
- package/dist/{messages.d.ts → node_modules/@allyhub/image-sdk/dist/messages.d.ts} +1 -1
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.d.ts +59 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
- package/dist/{props.d.ts → node_modules/@allyhub/image-sdk/dist/props.d.ts} +4 -4
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.d.ts +34 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.d.ts +16 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.d.ts +38 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
- package/dist/{written.js → node_modules/@allyhub/image-sdk/dist/written.js} +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
- package/dist/node_modules/@allyhub/measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +8 -0
- package/dist/node_modules/@allyhub/measure/dist/grain.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/image.d.ts +16 -0
- package/dist/node_modules/@allyhub/measure/dist/image.js +2 -0
- package/dist/node_modules/@allyhub/measure/dist/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/measure/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/measure/package.json +13 -0
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +4 -1
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +15 -1
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/LICENSE +241 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.d.ts +1 -9
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/context.d.ts +39 -0
- package/dist/node_modules/@allyhub/piece/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.d.ts +2 -2
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/export.d.ts +27 -10
- package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/formats.d.ts +12 -68
- package/dist/node_modules/@allyhub/piece/dist/formats.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/gen.d.ts +104 -0
- package/dist/node_modules/@allyhub/piece/dist/index.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.d.ts +1558 -0
- package/dist/node_modules/@allyhub/piece/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +389 -0
- package/dist/node_modules/@allyhub/piece/dist/layer.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +437 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.d.ts +1 -1
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.d.ts +39 -9
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.d.ts +6 -0
- package/dist/node_modules/@allyhub/piece/dist/names.d.ts +26 -0
- package/dist/node_modules/@allyhub/piece/dist/names.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +21 -0
- package/dist/node_modules/@allyhub/piece/dist/page/console.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +3 -0
- package/dist/node_modules/@allyhub/piece/dist/page/index.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +4 -0
- package/dist/node_modules/@allyhub/piece/dist/page/locate.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.d.ts +62 -0
- package/dist/node_modules/@allyhub/piece/dist/picture.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/script.d.ts +9 -4
- package/dist/node_modules/@allyhub/piece/dist/script.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +131 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +291 -0
- package/dist/node_modules/@allyhub/piece/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/version.d.ts +15 -0
- package/dist/node_modules/@allyhub/piece/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.d.ts +1 -20
- package/dist/node_modules/@allyhub/piece/package.json +18 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +271 -0
- package/dist/node_modules/@allyhub/protocol/dist/account.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +3 -10
- package/dist/node_modules/@allyhub/protocol/dist/app.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +19 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.d.ts +337 -0
- package/dist/node_modules/@allyhub/protocol/dist/browser-bridge.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +12 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +155 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +235 -133
- package/dist/node_modules/@allyhub/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/files.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +65 -197
- package/dist/node_modules/@allyhub/protocol/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +8 -0
- package/dist/node_modules/@allyhub/protocol/dist/image.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +6 -0
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +6 -6
- package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +98 -0
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +274 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +77 -91
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +59 -0
- package/dist/node_modules/@allyhub/protocol/dist/peer.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +21 -0
- package/dist/node_modules/@allyhub/protocol/dist/place.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +125 -0
- package/dist/node_modules/@allyhub/protocol/dist/presence.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +35 -0
- package/dist/node_modules/@allyhub/protocol/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +2 -8
- package/dist/node_modules/@allyhub/protocol/dist/shares.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +70 -40
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +224 -177
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +5 -1
- package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +14 -0
- package/dist/node_modules/@allyhub/runtimes/dist/declared.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +15 -0
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.js +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +2 -0
- package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/packages.js +3 -3
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +1 -0
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/manifest.json +0 -82
- package/dist/node_modules/@allyhub/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/define.d.ts +2 -0
- package/dist/node_modules/@allyhub/scenery/dist/define.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/index.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery/dist/moire.d.ts +45 -5
- package/dist/node_modules/@allyhub/scenery/dist/moire.js +2 -2
- package/dist/node_modules/@allyhub/scenery/dist/phone.d.ts +4 -3
- package/dist/node_modules/@allyhub/scenery/dist/phone.js +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +4 -4
- package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +15 -11
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +70 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +6 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +9 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +6 -0
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +9 -0
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +5 -0
- package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +12 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +5 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/parse.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/formula/print.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +5 -19
- package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +5 -5
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +88 -3
- package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/printed.d.ts +19 -0
- package/dist/node_modules/@allyhub/sheet/dist/printed.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/sdk.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +8 -6
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/write.js +15 -15
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +6 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +2 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +7 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.js +3 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +6 -0
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +12 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.js +3 -2
- package/dist/node_modules/@allyhub/sheet/package.json +5 -1
- package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +23 -7
- package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +101 -11
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +18 -1
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/connect.d.ts +62 -0
- package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +24 -0
- package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/fact.d.ts +223 -0
- package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +4 -4
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +4 -2
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +5 -5
- package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +25 -4
- package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +20 -11
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.d.ts +18 -0
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +28 -11
- package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +3 -6
- package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +5 -1
- package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +1 -2
- package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +1 -10
- package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/check.d.ts +62 -0
- package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +3 -3
- package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +21 -762
- package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +3 -2
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/index.d.ts +3 -17
- package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +72 -423
- package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.d.ts +44 -0
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +24 -432
- package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/placement.d.ts +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +8 -14
- package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +11 -6
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +2 -3
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +2 -4
- package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/stage.d.ts +52 -0
- package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +18 -136
- package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +3 -3
- package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/transcript.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
- package/dist/{free.d.ts → node_modules/@allyhub/video-sdk/dist/free.d.ts} +14 -10
- package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.d.ts +28 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
- package/dist/{input.d.ts → node_modules/@allyhub/video-sdk/dist/input.d.ts} +76 -22
- package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
- package/dist/{module.d.ts → node_modules/@allyhub/video-sdk/dist/module.d.ts} +6 -4
- package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
- package/dist/{parts.d.ts → node_modules/@allyhub/video-sdk/dist/parts.d.ts} +15 -6
- package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
- package/dist/{phone.d.ts → node_modules/@allyhub/video-sdk/dist/phone.d.ts} +12 -5
- package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
- package/dist/{piece.d.ts → node_modules/@allyhub/video-sdk/dist/piece.d.ts} +26 -16
- package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.d.ts +46 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/scenery.d.ts +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/scenery.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/package.json +19 -0
- package/dist/scenery.d.ts +1 -1
- package/dist/scenery.js +1 -1
- package/dist/sheets.d.ts +1 -1
- package/dist/sheets.js +1 -1
- package/dist/slides.d.ts +1 -9
- package/dist/slides.js +1 -1
- package/docs/README.md +10 -6
- package/docs/batches.md +5 -5
- package/docs/canvas.md +28 -0
- package/docs/contract.md +2 -2
- package/docs/defaults.md +298 -22
- package/docs/docs.md +80 -66
- package/docs/footage.md +7 -7
- package/docs/image.md +165 -0
- package/docs/layers.md +22 -13
- package/docs/modeling.md +4 -4
- package/docs/pictures.md +65 -0
- package/docs/project.md +51 -31
- package/docs/scenery.md +14 -15
- package/docs/sheets.md +46 -28
- package/docs/slides.md +121 -67
- package/docs/sound.md +3 -3
- package/docs/speech.md +8 -8
- package/docs/video.md +16 -13
- package/docs/websites.md +4 -4
- package/docs/x.md +73 -0
- package/package.json +7 -2
- package/dist/define.js +0 -2
- package/dist/free.js +0 -2
- package/dist/input.js +0 -2
- package/dist/module.js +0 -2
- package/dist/node_modules/@allyhub/formats/dist/data/comments.d.ts +0 -94
- package/dist/node_modules/@allyhub/formats/dist/data/comments.js +0 -2
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package-lock.json +0 -227
- package/dist/node_modules/@allyhub/runtimes/pins/onnxruntime-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package-lock.json +0 -105
- package/dist/node_modules/@allyhub/runtimes/pins/sherpa-onnx-node/package.json +0 -8
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package-lock.json +0 -128
- package/dist/node_modules/@allyhub/runtimes/pins/tesseract.js/package.json +0 -9
- package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/formats.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/gen.d.ts +0 -37
- package/dist/node_modules/@allyhub/video-core/dist/problem.d.ts +0 -278
- package/dist/node_modules/@allyhub/video-core/dist/problem.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
- package/dist/parts.js +0 -2
- package/dist/phone.js +0 -2
- package/dist/piece.js +0 -2
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{sheet → formats}/dist/csv.js +0 -0
- /package/dist/{fit.d.ts → node_modules/@allyhub/image-sdk/dist/fit.d.ts} +0 -0
- /package/dist/{fit.js → node_modules/@allyhub/image-sdk/dist/fit.js} +0 -0
- /package/dist/{messages.js → node_modules/@allyhub/image-sdk/dist/messages.js} +0 -0
- /package/dist/{props.js → node_modules/@allyhub/image-sdk/dist/props.js} +0 -0
- /package/dist/{text.d.ts → node_modules/@allyhub/image-sdk/dist/text.d.ts} +0 -0
- /package/dist/{text.js → node_modules/@allyhub/image-sdk/dist/text.js} +0 -0
- /package/dist/{written.d.ts → node_modules/@allyhub/image-sdk/dist/written.d.ts} +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/anchors.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/component.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/console.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/contrast.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/gen.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/look.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/marks.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/matrix.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/messages.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/source.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/voice.js +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.d.ts +0 -0
- /package/dist/node_modules/@allyhub/{video-core → piece}/dist/words.js +0 -0
- /package/dist/{anim.d.ts → node_modules/@allyhub/video-sdk/dist/anim.d.ts} +0 -0
- /package/dist/{anim.js → node_modules/@allyhub/video-sdk/dist/anim.js} +0 -0
- /package/dist/{noise.d.ts → node_modules/@allyhub/video-sdk/dist/noise.d.ts} +0 -0
- /package/dist/{noise.js → node_modules/@allyhub/video-sdk/dist/noise.js} +0 -0
- /package/dist/{paths.d.ts → node_modules/@allyhub/video-sdk/dist/paths.d.ts} +0 -0
- /package/dist/{paths.js → node_modules/@allyhub/video-sdk/dist/paths.js} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{z as r}from"zod";import{
|
|
2
|
+
import{z as r}from"zod";import{ConfigSchema as m}from"./data/config.js";import{DeckCodeSchema as n}from"./data/deck-code.js";import{EditsFileSchema as c}from"./data/edits.js";import{ElementsFileSchema as h}from"./data/elements.js";import{GenFileSchema as l}from"./data/gen.js";import{MessagesFileSchema as f}from"./data/messages.js";import{InterpretationSchema as d}from"./data/reference.js";import{ScriptFileSchema as p}from"./data/script.js";import{SheetFileSchema as u}from"./data/sheet.js";import{SlidesFileSchema as b}from"./data/slides.js";import{WebsiteFileSchema as g}from"./data/website.js";import{WORK_FILE as S,WorkFileSchema as w}from"./data/work.js";import{WordsFileSchema as k}from"./data/words.js";export const DATA_FILES={work:{schema:w,files:[S],about:"The work a person sees of the project: each piece's kind, file and title, in groups."},words:{schema:k,files:["**/*.words.json"],about:"The words said in an audio or video file, with their times."},edits:{schema:c,files:["**/edits/*.json"],about:"A recording's cut list."},elements:{schema:h,files:["**/*.elements.json"],about:"A page screenshot's named elements, each its box in the picture's pixels."},gen:{schema:l,files:["**/*.gen.json"],about:"How a media file was made, and where it came from."},script:{schema:p,files:[],about:"An item's words in one language."},messages:{schema:f,files:["assets/text/*.json"],about:"Words several items share, in one language."},sheet:{schema:u,files:[],about:"A workbook: its sheets, cells, formulas, formats, names, checks and scenarios."},slides:{schema:b,files:[],about:"A deck's pages: their order, layouts, values and what was placed on them."},website:{schema:g,files:[],about:"A website: how it is served while it is made, how it is built, and where the built site is."},interpretation:{schema:d,files:["**/reference/*/interpretation.json"],about:"What the agent concludes of a reference video: its sections, captions, watermarks and labels."},"deck-code":{schema:n,files:[],about:"What a deck's module and its generators made, as data: what its code host sends the editor."},config:{schema:m,files:[],about:"allyhub.config.ts's settings."}};export function jsonSchemaOf(e){const{schema:t,about:s}=DATA_FILES[e];return{$schema:"https://json-schema.org/draft/2020-12/schema",$id:`https://allyhub.com/schemas/${e}.schema.json`,title:e,description:s,...r.toJSONSchema(t,{io:"input",unrepresentable:"any"})}}function o(e){if(e.code!=="invalid_union")return e.message;const t=e.errors.flatMap(s=>s.slice(0,1).map(a=>{const i=a.path.map(String).join(".");return i===""?o(a):`${i}: ${o(a)}`}));return t.length===0?e.message:`Fits none of its forms: ${[...new Set(t)].join("; ")}`}export function readDataFile(e,t){const s=DATA_FILES[e].schema.safeParse(t);return s.success?{ok:!0,value:s.data}:{ok:!1,problems:s.error.issues.map(a=>({path:a.path.map(String).join("."),message:o(a)}))}}
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
AllyHub Software License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 AllyHub, Inc. ("AllyHub"). All rights reserved.
|
|
4
|
+
|
|
5
|
+
This software (the AllyHub command-line tool, its SDK, runtime and the
|
|
6
|
+
packages they depend on) is proprietary. It is not open source.
|
|
7
|
+
|
|
8
|
+
1. Permitted use. You may install and run the software, unmodified, to make,
|
|
9
|
+
check, preview and render videos and decks, including for commercial
|
|
10
|
+
purposes. What you make with it is yours.
|
|
11
|
+
|
|
12
|
+
2. Restrictions. Except as this license permits or applicable law requires,
|
|
13
|
+
you may not copy, modify, adapt, translate, sublicense, sell, rent, lease,
|
|
14
|
+
publish or otherwise distribute the software, create derivative works of
|
|
15
|
+
it, or reverse engineer, decompile or disassemble it.
|
|
16
|
+
|
|
17
|
+
3. Cloud services. AllyHub's cloud tools (sign-in, research, images, voice,
|
|
18
|
+
video) are separate services governed by AllyHub's terms of service.
|
|
19
|
+
|
|
20
|
+
4. Trademarks. This license grants no right to use the name "AllyHub" or its
|
|
21
|
+
logos.
|
|
22
|
+
|
|
23
|
+
5. No warranty. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
|
|
24
|
+
KIND, EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY,
|
|
25
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
|
|
26
|
+
ALLYHUB BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM,
|
|
27
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR ITS USE.
|
|
28
|
+
|
|
29
|
+
6. Third-party code. Parts of the software are adapted from HyperFrames,
|
|
30
|
+
licensed under the Apache License, Version 2.0 (see NOTICE). Those parts
|
|
31
|
+
remain under that license, reproduced below, and nothing in this license
|
|
32
|
+
limits your rights under it.
|
|
33
|
+
|
|
34
|
+
7. Starter components. The starter components in the "components" folder,
|
|
35
|
+
which "allyhub add" copies into your workspace, are licensed under the MIT
|
|
36
|
+
License (see components/LICENSE): once copied, you may change, use and
|
|
37
|
+
share them freely.
|
|
38
|
+
|
|
39
|
+
--------------------------------------------------------------------------------
|
|
40
|
+
|
|
41
|
+
Apache License
|
|
42
|
+
Version 2.0, January 2004
|
|
43
|
+
http://www.apache.org/licenses/
|
|
44
|
+
|
|
45
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
46
|
+
|
|
47
|
+
1. Definitions.
|
|
48
|
+
|
|
49
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
50
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
51
|
+
|
|
52
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
53
|
+
the copyright owner that is granting the License.
|
|
54
|
+
|
|
55
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
56
|
+
other entities that control, are controlled by, or are under common
|
|
57
|
+
control with that entity. For the purposes of this definition,
|
|
58
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
59
|
+
direction or management of such entity, whether by contract or
|
|
60
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
61
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
62
|
+
|
|
63
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
64
|
+
exercising permissions granted by this License.
|
|
65
|
+
|
|
66
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
67
|
+
including but not limited to software source code, documentation
|
|
68
|
+
source, and configuration files.
|
|
69
|
+
|
|
70
|
+
"Object" form shall mean any form resulting from mechanical
|
|
71
|
+
transformation or translation of a Source form, including but
|
|
72
|
+
not limited to compiled object code, generated documentation,
|
|
73
|
+
and conversions to other media types.
|
|
74
|
+
|
|
75
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
76
|
+
Object form, made available under the License, as indicated by a
|
|
77
|
+
copyright notice that is included in or attached to the work
|
|
78
|
+
(an example is provided in the Appendix below).
|
|
79
|
+
|
|
80
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
81
|
+
form, that is based on (or derived from) the Work and for which the
|
|
82
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
83
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
84
|
+
of this License, Derivative Works shall not include works that remain
|
|
85
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
86
|
+
the Work and Derivative Works thereof.
|
|
87
|
+
|
|
88
|
+
"Contribution" shall mean any work of authorship, including
|
|
89
|
+
the original version of the Work and any modifications or additions
|
|
90
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
91
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
92
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
93
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
94
|
+
means any form of electronic, verbal, or written communication sent
|
|
95
|
+
to the Licensor or its representatives, including but not limited to
|
|
96
|
+
communication on electronic mailing lists, source code control systems,
|
|
97
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
98
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
99
|
+
excluding communication that is conspicuously marked or otherwise
|
|
100
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
101
|
+
|
|
102
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
103
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
104
|
+
subsequently incorporated within the Work.
|
|
105
|
+
|
|
106
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
107
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
108
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
109
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
110
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
111
|
+
Work and such Derivative Works in Source or Object form.
|
|
112
|
+
|
|
113
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
114
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
115
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
116
|
+
(except as stated in this section) patent license to make, have made,
|
|
117
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
118
|
+
where such license applies only to those patent claims licensable
|
|
119
|
+
by such Contributor that are necessarily infringed by their
|
|
120
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
121
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
122
|
+
institute patent litigation against any entity (including a
|
|
123
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
124
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
125
|
+
or contributory patent infringement, then any patent licenses
|
|
126
|
+
granted to You under this License for that Work shall terminate
|
|
127
|
+
as of the date such litigation is filed.
|
|
128
|
+
|
|
129
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
130
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
131
|
+
modifications, and in Source or Object form, provided that You
|
|
132
|
+
meet the following conditions:
|
|
133
|
+
|
|
134
|
+
(a) You must give any other recipients of the Work or
|
|
135
|
+
Derivative Works a copy of this License; and
|
|
136
|
+
|
|
137
|
+
(b) You must cause any modified files to carry prominent notices
|
|
138
|
+
stating that You changed the files; and
|
|
139
|
+
|
|
140
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
141
|
+
that You distribute, all copyright, patent, trademark, and
|
|
142
|
+
attribution notices from the Source form of the Work,
|
|
143
|
+
excluding those notices that do not pertain to any part of
|
|
144
|
+
the Derivative Works; and
|
|
145
|
+
|
|
146
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
147
|
+
distribution, then any Derivative Works that You distribute must
|
|
148
|
+
include a readable copy of the attribution notices contained
|
|
149
|
+
within such NOTICE file, excluding those notices that do not
|
|
150
|
+
pertain to any part of the Derivative Works, in at least one
|
|
151
|
+
of the following places: within a NOTICE text file distributed
|
|
152
|
+
as part of the Derivative Works; within the Source form or
|
|
153
|
+
documentation, if provided along with the Derivative Works; or,
|
|
154
|
+
within a display generated by the Derivative Works, if and
|
|
155
|
+
wherever such third-party notices normally appear. The contents
|
|
156
|
+
of the NOTICE file are for informational purposes only and
|
|
157
|
+
do not modify the License. You may add Your own attribution
|
|
158
|
+
notices within Derivative Works that You distribute, alongside
|
|
159
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
160
|
+
that such additional attribution notices cannot be construed
|
|
161
|
+
as modifying the License.
|
|
162
|
+
|
|
163
|
+
You may add Your own copyright statement to Your modifications and
|
|
164
|
+
may provide additional or different license terms and conditions
|
|
165
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
166
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
167
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
168
|
+
the conditions stated in this License.
|
|
169
|
+
|
|
170
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
171
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
172
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
173
|
+
this License, without any additional terms or conditions.
|
|
174
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
175
|
+
the terms of any separate license agreement you may have executed
|
|
176
|
+
with Licensor regarding such Contributions.
|
|
177
|
+
|
|
178
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
179
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
180
|
+
except as required for reasonable and customary use in describing the
|
|
181
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
182
|
+
|
|
183
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
184
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
185
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
186
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
187
|
+
implied, including, without limitation, any warranties or conditions
|
|
188
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
189
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
190
|
+
appropriateness of using or redistributing the Work and assume any
|
|
191
|
+
risks associated with Your exercise of permissions under this License.
|
|
192
|
+
|
|
193
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
194
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
195
|
+
unless required by applicable law (such as deliberate and grossly
|
|
196
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
197
|
+
liable to You for damages, including any direct, indirect, special,
|
|
198
|
+
incidental, or consequential damages of any character arising as a
|
|
199
|
+
result of this License or out of the use or inability to use the
|
|
200
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
201
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
202
|
+
other commercial damages or losses), even if such Contributor
|
|
203
|
+
has been advised of the possibility of such damages.
|
|
204
|
+
|
|
205
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
206
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
207
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
208
|
+
or other liability obligations and/or rights consistent with this
|
|
209
|
+
License. However, in accepting such obligations, You may act only
|
|
210
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
211
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
212
|
+
defend, and hold each Contributor harmless for any liability
|
|
213
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
214
|
+
of your accepting any such warranty or additional liability.
|
|
215
|
+
|
|
216
|
+
END OF TERMS AND CONDITIONS
|
|
217
|
+
|
|
218
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
219
|
+
|
|
220
|
+
To apply the Apache License to your work, attach the following
|
|
221
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
222
|
+
replaced with your own identifying information. (Don't include
|
|
223
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
224
|
+
comment syntax for the file format. We also recommend that a
|
|
225
|
+
file or class name and description of purpose be included on the
|
|
226
|
+
same "printed page" as the copyright notice for easier
|
|
227
|
+
identification within third-party archives.
|
|
228
|
+
|
|
229
|
+
Copyright [yyyy] [name of copyright owner]
|
|
230
|
+
|
|
231
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
232
|
+
you may not use this file except in compliance with the License.
|
|
233
|
+
You may obtain a copy of the License at
|
|
234
|
+
|
|
235
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
236
|
+
|
|
237
|
+
Unless required by applicable law or agreed to in writing, software
|
|
238
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
239
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
240
|
+
See the License for the specific language governing permissions and
|
|
241
|
+
limitations under the License.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { BuildContext } from "@allyhub/piece";
|
|
2
|
+
import type { Env } from "./env.js";
|
|
3
|
+
/** What a kind's build function receives (a video's parts function, an image's boards function). */
|
|
4
|
+
export declare function buildContext(env: Env): BuildContext;
|
|
5
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{LoadFailure as c}from"./errors.js";export function buildContext(a){const{log:i,combo:n,space:s}=a,l=Object.assign((o,e)=>i.s(o,e),{list:(o,e)=>i.list(o,e),with:(o,e,t)=>i.with(o,e,t)});return{combo:n,pool:o=>{const e=s?.slots[o]?.find(t=>t.name===n[o]);if(e?.file===void 0)throw new c("bad_pool",`ctx.pool("${o}"): ${o} is not a pool slot of this piece${s?` (pool slots: ${Object.entries(s.slots).filter(([,t])=>t.some(r=>r.file!==void 0)).map(([t])=>t).join(", ")||"none"})`:""}. Declare it as matrix.slots.${o} = { pool: "./folder" }.`);return`/${e.file}`},s:l,asset:o=>i.asset(o),data:o=>i.readData(o)}}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { InkLine, Rgba } from "@allyhub/piece";
|
|
2
|
+
import type { TextBlock } from "./inspect.js";
|
|
3
|
+
/** A CSS colour as sRGB (any syntax the browser reads: rgb, hex, oklch, color()). */
|
|
4
|
+
export declare function rgbaOf(css: string): Rgba | undefined;
|
|
5
|
+
/** A block's lines with their fills, and its type. `k` is frame pixels per CSS pixel. */
|
|
6
|
+
export declare function inkOfBlock(block: TextBlock, k: number): {
|
|
7
|
+
lines: InkLine[];
|
|
8
|
+
size: number;
|
|
9
|
+
weight: number;
|
|
10
|
+
shadow?: true;
|
|
11
|
+
stroke?: true;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=contrast.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
let r;const c=new Map;export function rgbaOf(t){const e=c.get(t);if(e||c.has(t))return e;r??=Object.assign(document.createElement("canvas"),{width:1,height:1}).getContext("2d",{willReadFrequently:!0});let o;if(r){r.clearRect(0,0,1,1),r.fillStyle="rgba(0,0,0,0)",r.fillStyle=t,r.fillRect(0,0,1,1);const[l=0,n=0,i=0,s=0]=r.getImageData(0,0,1,1).data;o=[l,n,i,Math.round(s/255*1e3)/1e3]}return c.set(t,o),o}function p(t){const e=getComputedStyle(t),l=t instanceof SVGElement?e.fill.startsWith("url(")||e.fill==="none"?"":e.fill:e.webkitTextFillColor||e.color;if(!l)return;const n=rgbaOf(l);return n&&n[3]>0?n:void 0}export function inkOfBlock(t,e){const o=[];let l=!1,n=!1;for(const a of t.runs){const g=p(a.el);for(const d of a.glyphs)o.push({box:d,...g?{fill:g}:{},opacity:Math.round(a.opacity*1e3)/1e3});const f=getComputedStyle(a.el);f.textShadow!=="none"&&f.textShadow!==""&&(l=!0),parseFloat(f.webkitTextStrokeWidth||"0")>0&&(n=!0)}const i=t.runs[0]?.el??t.el,s=getComputedStyle(i),u=i.getBoundingClientRect(),h=i.offsetHeight>0&&u.height>0?u.height/i.offsetHeight:1;return{lines:o,size:Math.round(parseFloat(s.fontSize)*h*e*10)/10,weight:Number(s.fontWeight)||400,...l?{shadow:!0}:{},...n?{stroke:!0}:{}}}
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { type Fact, type Problem } from "@allyhub/diagnostics";
|
|
2
|
+
import { type BuildSource, type Combo, type LoadOptions, type MatrixSpace, type MediaInfo, type ShownIn, type SizeInfo } from "@allyhub/piece";
|
|
3
|
+
import { type Guards } from "./guards.js";
|
|
4
|
+
import { ReadLog } from "./reads.js";
|
|
5
|
+
/** Media named by its project path, or as imported. */
|
|
6
|
+
export type MediaRef = string | MediaInfo;
|
|
7
|
+
/** The most different run-time problems one page keeps. */
|
|
8
|
+
export declare const RUN_PROBLEMS = 200;
|
|
9
|
+
/**
|
|
10
|
+
* A video loaded inside another output (a part's video take, a footage of
|
|
11
|
+
* a video item, a scenery's screen): the piece the outer one imported. It
|
|
12
|
+
* shares the page with the outer output: the clock's guards, the console
|
|
13
|
+
* and the read log's media are the outer's, nothing outside its own
|
|
14
|
+
* element is touched, and it draws its graphic layers over its background
|
|
15
|
+
* (no footage yet).
|
|
16
|
+
*/
|
|
17
|
+
export interface Embed {
|
|
18
|
+
/** The piece's definition, as its kind's runtime reads it. */
|
|
19
|
+
def: unknown;
|
|
20
|
+
/** The cameras its scenery layers are drawn from, by layer name ("*": every one); absent: their own. */
|
|
21
|
+
cameras?: Readonly<Record<string, unknown>>;
|
|
22
|
+
/** The pieces it is inside, outermost first: a piece that reaches itself is refused. */
|
|
23
|
+
chain: readonly string[];
|
|
24
|
+
/** Where the outer video shows it, filled in once the outer one is timed. */
|
|
25
|
+
shown?: ShownIn;
|
|
26
|
+
/** The drawing scale its scenery layers take, in place of their own. */
|
|
27
|
+
sceneryScale?: number;
|
|
28
|
+
/**
|
|
29
|
+
* The frame it is laid out and drawn at, in place of its format's: any
|
|
30
|
+
* pixels, with its safe zone (an image's board, its own size).
|
|
31
|
+
*/
|
|
32
|
+
frame?: SizeInfo;
|
|
33
|
+
}
|
|
34
|
+
/** Where piece code runs now: the layer mounting or drawing, its part and moment (film seconds). */
|
|
35
|
+
export interface Running {
|
|
36
|
+
part?: string;
|
|
37
|
+
layer?: string;
|
|
38
|
+
index?: number;
|
|
39
|
+
t?: number;
|
|
40
|
+
/** In words, for a message: "chart (layer 2) in part intro at 1.20 s". */
|
|
41
|
+
what: string;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* What every module reports into: the problems found while loading, the
|
|
45
|
+
* facts, what goes wrong at run time (for the page's whole life: a layer
|
|
46
|
+
* that throws, work that fails or never settles, what a layer reports),
|
|
47
|
+
* who is running, the work layers wait for, and what loading took.
|
|
48
|
+
*/
|
|
49
|
+
export declare class Ledger {
|
|
50
|
+
readonly problems: Problem[];
|
|
51
|
+
readonly facts: Fact[];
|
|
52
|
+
readonly run: Problem[];
|
|
53
|
+
/** What loading spent its time on, for AK-P002. */
|
|
54
|
+
readonly times: {
|
|
55
|
+
what: string;
|
|
56
|
+
ms: number;
|
|
57
|
+
}[];
|
|
58
|
+
running: Running | undefined;
|
|
59
|
+
/** Loading: the work a layer waits for counts in its time. */
|
|
60
|
+
loading: boolean;
|
|
61
|
+
/** What loading is doing now, in words. */
|
|
62
|
+
doing: string | undefined;
|
|
63
|
+
private readonly waiting;
|
|
64
|
+
/** A run-time problem, once: the same one at every frame is one. */
|
|
65
|
+
ran(p: Problem): void;
|
|
66
|
+
/** Runs `run`, adding what it took to the load's times. */
|
|
67
|
+
timed<T>(what: string, run: () => Promise<T>): Promise<T>;
|
|
68
|
+
/** Work a layer asks to finish before a frame is drawn (StageContext.wait). */
|
|
69
|
+
wait(work: Promise<unknown>): void;
|
|
70
|
+
/**
|
|
71
|
+
* Waits for the work layers asked to wait for, at most `limit` ms in
|
|
72
|
+
* all, and reports what failed under its rule with the layer, part and
|
|
73
|
+
* moment that asked. What is still pending at the limit is not waited
|
|
74
|
+
* for again: it is returned, for AK-P003.
|
|
75
|
+
*/
|
|
76
|
+
settle(limit: number): Promise<string[]>;
|
|
77
|
+
}
|
|
78
|
+
export interface Env {
|
|
79
|
+
readonly source: BuildSource;
|
|
80
|
+
readonly options: LoadOptions;
|
|
81
|
+
readonly embed: Embed | undefined;
|
|
82
|
+
readonly combo: Combo;
|
|
83
|
+
readonly lang: string | undefined;
|
|
84
|
+
readonly defaultLang: string | undefined;
|
|
85
|
+
/** The piece's one output, named by its item's kind (`video`, `slides`), as the runtime that loads it says. */
|
|
86
|
+
readonly output: string;
|
|
87
|
+
/** Seeds the whole output: piece id, output, the combo key with the format. */
|
|
88
|
+
readonly seedBase: string;
|
|
89
|
+
/**
|
|
90
|
+
* A part's seed: piece id, output, the dimensions with the format, the
|
|
91
|
+
* part's key and the frame in the part. The same part draws the same
|
|
92
|
+
* frames in every combo that has it.
|
|
93
|
+
*/
|
|
94
|
+
readonly partSeed: (key: string, frame: number) => string;
|
|
95
|
+
/** The combo's slot picks (and structure): a part may read its own only. */
|
|
96
|
+
readonly picked: ReadonlySet<string>;
|
|
97
|
+
readonly space: MatrixSpace | undefined;
|
|
98
|
+
readonly guards: Guards;
|
|
99
|
+
readonly log: ReadLog;
|
|
100
|
+
readonly ledger: Ledger;
|
|
101
|
+
/** When loading began, on the real clock. */
|
|
102
|
+
readonly start: number;
|
|
103
|
+
/**
|
|
104
|
+
* Media named by a path (relative to `base`, the file the code that
|
|
105
|
+
* named it was written in, else the piece's) or an imported value.
|
|
106
|
+
*/
|
|
107
|
+
readonly mediaOf: (ref: MediaRef, base?: string) => MediaInfo;
|
|
108
|
+
}
|
|
109
|
+
export declare function createEnv(source: BuildSource, options: LoadOptions, embed?: Embed,
|
|
110
|
+
/** The output's name, which seeds it: its item's kind, as the runtime that loads it says. */
|
|
111
|
+
kind?: string): Env;
|
|
112
|
+
//# sourceMappingURL=env.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{problem as x}from"@allyhub/diagnostics";import{comboKey as y,dimsCombo as k,messagePrefix as j,seedKey as g,STRUCTURE as L,validCombo as O}from"@allyhub/piece";import{installConsole as C,resetConsole as S}from"@allyhub/piece/page";import{codeOf as R,LoadFailure as v}from"./errors.js";import{installGuards as E,realNow as m,within as T}from"./guards.js";import{ReadLog as K}from"./reads.js";export const RUN_PROBLEMS=200;export class Ledger{problems=[];facts=[];run=[];times=[];running;loading=!0;doing;waiting=[];ran(e){this.run.length>=RUN_PROBLEMS||this.run.some(i=>i.code===e.code&&i.message===e.message&&i.part===e.part)||this.run.push(e)}async timed(e,i){const a=m();try{return await i()}finally{this.times.push({what:e,ms:m()-a})}}wait(e){const i=this.running;if(!this.loading){this.waiting.push({work:e,who:i});return}const a=this.doing??"a layer",d=m();this.waiting.push({work:e.finally(()=>{this.times.push({what:`the work ${a} waited for (ctx.wait)`,ms:m()-d})}),who:i})}async settle(e){const i=m()+e,a=[];for(;this.waiting.length>0;){const d=this.waiting.splice(0);if((await T(d.map(n=>n.work),i-m())).forEach((n,s)=>{const o=d[s]?.who;if(n===void 0){a.push(`the work ${$(o)} waits for (ctx.wait)`);return}if(n.status==="fulfilled")return;const c=n.reason;this.ran(x(R(n.reason),`${$(o)}: the work it waits for (ctx.wait) failed: ${String(c.message??n.reason)}`,{...o?.part===void 0?{}:{part:o.part},...o?.t===void 0?{}:{t:o.t}}))}),a.length>0)break}return a}}const $=t=>t?.what??"A layer";function P(t,e){const i=t.dims,a=t.matrix?.space;if(O(a,i,t.matrix?.rules??[],e.combo))return;const d=a?`; slots: ${Object.entries(a.slots).map(([r,n])=>`${r}=${n.map(s=>s.name).join("|")}`).join(", ")}${a.declared?`; structures: ${Object.keys(a.structures).join("|")}`:""}; and the matrix's rules`:"";throw new v("bad_combo",`Piece ${t.piece} has no combo ${y(e.combo)} (dimensions: ${Object.entries(i).map(([r,n])=>`${r}=${n.join("|")}`).join(", ")||"none"}${d}).`)}export function createEnv(t,e,i,a="video"){const d=m();P(t,e);const r={...e.combo},n=r.lang,s=t.locales[0],o=i?"video":a,c=`${t.piece}:${o}:${g(r,t.format)}`,u=g(k(t.dims,r),t.format),h=t.matrix?.space,b=new Set(h?[...Object.keys(h.slots),...h.declared?[L]:[]]:[]),w=E();w.setMoment(0,`${c}:load`),i||(C(),S({...e.consoleLimit===void 0?{}:{limit:e.consoleLimit},passThrough:e.purpose==="play"}));const f=new K({lang:n,defaultLang:s,...t.text===void 0?{}:{text:t.text},...t.script===void 0?{}:{script:t.script,prefix:`${j(t.piece)}.`},own:n===void 0?{}:t.messages[n]??{},fallback:s===void 0?{}:t.messages[s]??{},...t.anchors?{anchors:{...n!==void 0&&t.anchors[n]?{own:t.anchors[n]}:{},...s!==void 0&&t.anchors[s]?{fallback:t.anchors[s]}:{}}}:{},media:t.media,file:t.file,...t.data?{data:t.data}:{}});return{source:t,options:e,embed:i,combo:r,lang:n,defaultLang:s,output:o,seedBase:c,partSeed:(l,p)=>`${t.piece}:${o}:${u}:${l}:${String(p)}`,picked:b,space:h,guards:w,log:f,ledger:new Ledger,start:d,mediaOf:(l,p)=>typeof l=="string"?f.asset(l,p):f.mediaAt(l.path)??f.asset(`/${l.path}`)}}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Why a piece cannot load at all (no default export, no parts, a combo it
|
|
3
|
+
* does not have): `load()` rejects with it. Its message starts with its
|
|
4
|
+
* code, `bad_combo: …`, so a host that reads only the text the page threw
|
|
5
|
+
* still has it.
|
|
6
|
+
*/
|
|
7
|
+
export declare class LoadFailure extends Error {
|
|
8
|
+
readonly code: string;
|
|
9
|
+
readonly text: string;
|
|
10
|
+
constructor(code: string, text: string);
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The rule an error carries: its `code` when that is a rule's, else a
|
|
14
|
+
* rule named in its message (a scenery's AK-W003 inside another's, an
|
|
15
|
+
* embedded video reaching itself), else AK-R001.
|
|
16
|
+
*/
|
|
17
|
+
export declare function codeOf(e: unknown): string;
|
|
18
|
+
/** An error's message, whatever was thrown. */
|
|
19
|
+
export declare const messageOf: (e: unknown) => string;
|
|
20
|
+
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{isRule as o}from"@allyhub/diagnostics";export class LoadFailure extends Error{code;text;constructor(e,r){super(`${e}: ${r}`),this.name="LoadFailure",this.code=e,this.text=r}}export function codeOf(s){const e=s??{};if(typeof e.code=="string"&&o(e.code))return e.code;const r=typeof e.message=="string"?e.message:"",t=/\bAK-[A-Z]\d{3}\b/.exec(r)?.[0];return t!==void 0&&o(t)?t:"AK-R001"}export const messageOf=s=>s instanceof Error?s.message:String(s);
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export declare const isGeneric: (family: string) => boolean;
|
|
2
|
+
/** The families of a computed font-family, unquoted, in order. */
|
|
3
|
+
export declare function families(fontFamily: string): string[];
|
|
4
|
+
/** A FontFace's unicode-range as code point intervals ("U+4??" included). */
|
|
5
|
+
export declare function unicodeRanges(range: string): [number, number][];
|
|
6
|
+
/** A FontFace weight ("400", "100 900", "bold") as a range. */
|
|
7
|
+
export declare function weightRange(weight: string): [number, number];
|
|
8
|
+
/**
|
|
9
|
+
* The weight CSS font matching picks among faces for a wanted weight
|
|
10
|
+
* (CSS Fonts 4, 5.2): within a face's range it is exact; otherwise below
|
|
11
|
+
* 400 it looks lighter first, above 500 heavier first, and between them up
|
|
12
|
+
* to 500, then lighter, then heavier.
|
|
13
|
+
*/
|
|
14
|
+
export declare function matchWeight(want: number, faces: readonly [number, number][]): number | undefined;
|
|
15
|
+
/** Bold is faked when 600 or more is asked of faces that stop below 600. */
|
|
16
|
+
export declare const BOLD = 600;
|
|
17
|
+
export interface FaceInfo {
|
|
18
|
+
family: string;
|
|
19
|
+
weight: [number, number];
|
|
20
|
+
/** Whether the face is italic or oblique. */
|
|
21
|
+
slanted: boolean;
|
|
22
|
+
status: FontFaceLoadStatus;
|
|
23
|
+
ranges: [number, number][];
|
|
24
|
+
}
|
|
25
|
+
export interface FontWant {
|
|
26
|
+
families: string[];
|
|
27
|
+
weight: number;
|
|
28
|
+
italic: boolean;
|
|
29
|
+
/** Chrome may fake bold / italic (font-synthesis). */
|
|
30
|
+
synthBold: boolean;
|
|
31
|
+
synthItalic: boolean;
|
|
32
|
+
}
|
|
33
|
+
/** What went wrong with the font of some text, if anything. */
|
|
34
|
+
export type FontIssue = {
|
|
35
|
+
kind: "fallback";
|
|
36
|
+
family: string;
|
|
37
|
+
failed: boolean;
|
|
38
|
+
usedFamily: string;
|
|
39
|
+
} | {
|
|
40
|
+
kind: "bold";
|
|
41
|
+
family: string;
|
|
42
|
+
weight: number;
|
|
43
|
+
drawn: number;
|
|
44
|
+
faked: boolean;
|
|
45
|
+
} | {
|
|
46
|
+
kind: "italic";
|
|
47
|
+
family: string;
|
|
48
|
+
faked: boolean;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Decides, from the declared faces, how text asks for its font:
|
|
52
|
+
* `local(family)` says whether a family without faces is on this computer.
|
|
53
|
+
*/
|
|
54
|
+
export declare function fontIssue(want: FontWant, cps: readonly number[], faces: readonly FaceInfo[], local: (family: string) => boolean): FontIssue | undefined;
|
|
55
|
+
/**
|
|
56
|
+
* The families a text is drawn in, in the order they first draw one of its
|
|
57
|
+
* characters: for each, as the browser picks it, the first family of its
|
|
58
|
+
* font stack with a loaded face whose range covers it, a family on this
|
|
59
|
+
* computer (`local`; whether it has the character is not known), or a
|
|
60
|
+
* generic one; what none of them draws, the browser's default font.
|
|
61
|
+
*/
|
|
62
|
+
export declare function drawnFamilies(want: FontWant, cps: readonly number[], faces: readonly FaceInfo[], local: (family: string) => boolean): string[];
|
|
63
|
+
/** One sentence about an issue, with the fix. */
|
|
64
|
+
export declare function fontIssueText(issue: FontIssue): string;
|
|
65
|
+
/** Every string in a value (props: nested objects and arrays), at most `max`. */
|
|
66
|
+
export declare function stringsOf(v: unknown, max?: number): string[];
|
|
67
|
+
/**
|
|
68
|
+
* The emoji characters of some texts, each once, with the joiners and
|
|
69
|
+
* selectors that build sequences: what to load of the emoji font. Digits,
|
|
70
|
+
* `#` and `*` (also keycap bases) are left to the text fonts.
|
|
71
|
+
*/
|
|
72
|
+
export declare function emojiOf(texts: readonly string[]): string;
|
|
73
|
+
/** The faces of the page (read once per checked frame). */
|
|
74
|
+
export declare function pageFaces(): FaceInfo[];
|
|
75
|
+
/**
|
|
76
|
+
* Whether a family without @font-face is installed on this computer: text
|
|
77
|
+
* in it measures differently from the generic fonts it would fall back to.
|
|
78
|
+
*/
|
|
79
|
+
export declare function localFamily(family: string): boolean;
|
|
80
|
+
/** What text in el asks of its font. */
|
|
81
|
+
export declare function fontWant(cs: CSSStyleDeclaration): FontWant;
|
|
82
|
+
/** The code points of some texts, each once. */
|
|
83
|
+
export declare function codePoints(texts: readonly string[]): Set<number>;
|
|
84
|
+
/** Whether a face's unicode-range has one of these code points. */
|
|
85
|
+
export declare function coversAny(ranges: readonly [number, number][], cps: ReadonlySet<number>): boolean;
|
|
86
|
+
/**
|
|
87
|
+
* The families a font-family value names, generic ones and variables
|
|
88
|
+
* left out, in lower case: what a declaration can draw with.
|
|
89
|
+
*/
|
|
90
|
+
export declare function namedFamilies(fontFamily: string): string[];
|
|
91
|
+
/** The families the page's stylesheets name in font-family (lower case). */
|
|
92
|
+
export declare function styleSheetFamilies(): Set<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The declared families (lower case) a layer's props name: a component
|
|
95
|
+
* given a font as a prop sets it on its own elements when it mounts, and
|
|
96
|
+
* measures in it, so its faces load before mount as the look's do.
|
|
97
|
+
*/
|
|
98
|
+
export declare function propFamilies(props: readonly string[]): Set<string>;
|
|
99
|
+
/**
|
|
100
|
+
* Loads every face of these families (lower case) that has one of the
|
|
101
|
+
* code points, whatever its weight and style. A face that fails is the
|
|
102
|
+
* check's to report (AK-L006).
|
|
103
|
+
*/
|
|
104
|
+
export declare function loadFaces(wanted: ReadonlySet<string>, cps: ReadonlySet<number>): Promise<void>;
|
|
105
|
+
/**
|
|
106
|
+
* Loads the faces the text under `root` asks for, as Chrome would to draw
|
|
107
|
+
* it: per font (style, weight and families), the characters set in it.
|
|
108
|
+
*/
|
|
109
|
+
export declare function loadTextFonts(root: Element): Promise<void>;
|
|
110
|
+
//# sourceMappingURL=fonts.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
const y=new Set(["serif","sans-serif","monospace","cursive","fantasy","system-ui","math","emoji","fangsong","ui-serif","ui-sans-serif","ui-monospace","ui-rounded","-apple-system","blinkmacsystemfont","inherit","initial"]);export const isGeneric=t=>y.has(t.toLowerCase());export function families(t){const e=[];let r="",i="";for(const n of t)i?n===i?i="":r+=n:n==='"'||n==="'"?i=n:n===","?(e.push(r.trim()),r=""):r+=n;return e.push(r.trim()),e.filter(Boolean)}export function unicodeRanges(t){const e=[];for(const r of t.split(",")){const i=/^\s*u\+([0-9a-f?]+)(?:-([0-9a-f]+))?\s*$/i.exec(r),n=i?.[1];if(n)if(n.includes("?"))e.push([parseInt(n.replace(/\?/g,"0"),16),parseInt(n.replace(/\?/g,"f"),16)]);else{const o=parseInt(n,16);e.push([o,i[2]?parseInt(i[2],16):o])}}return e}export function weightRange(t){const e=s=>s==="bold"?700:s==="normal"?400:Number(s),[r="400",i]=t.trim().split(/\s+/),n=e(r),o=i===void 0?n:e(i);return Number.isFinite(n)&&Number.isFinite(o)?[n,o]:[400,400]}export function matchWeight(t,e){if(e.length===0)return;if(e.some(([s,a])=>t>=s&&t<=a))return t;const r=e.filter(([s])=>s>t).map(([s])=>s),i=e.filter(([,s])=>s<t).map(([,s])=>s),n=r.length?Math.min(...r):void 0,o=i.length?Math.max(...i):void 0;return t>500?n??o:t<400?o??n:n!==void 0&&n<=500?n:o??n}export const BOLD=600;const m=(t,e)=>t.ranges.length===0||e.some(r=>t.ranges.some(([i,n])=>r>=i&&r<=n));export function fontIssue(t,e,r,i){const n=t.families[0];if(n===void 0||isGeneric(n))return;let o;for(const s of t.families){if(isGeneric(s))return o&&{kind:"fallback",...o,usedFamily:s};const a=r.filter(l=>l.family.toLowerCase()===s.toLowerCase());if(a.length===0){if(i(s))return o&&{kind:"fallback",...o,usedFamily:s};o??={family:s,failed:!1};continue}const c=a.filter(l=>m(l,e));if(c.length===0)continue;const f=c.filter(l=>l.status==="loaded");if(f.length===0){if(c.every(l=>l.status==="error")){o??={family:s,failed:!0};continue}return}if(o)return{kind:"fallback",...o,usedFamily:s};const u=matchWeight(t.weight,f.map(l=>l.weight)),d=Math.max(...f.map(l=>l.weight[1]));return t.weight>=BOLD&&d<BOLD?{kind:"bold",family:s,weight:t.weight,drawn:u??d,faked:t.synthBold}:t.italic&&!f.some(l=>l.slanted)?{kind:"italic",family:s,faked:t.synthItalic}:void 0}return o&&{kind:"fallback",...o,usedFamily:"the browser's default font"}}export function drawnFamilies(t,e,r,i){const n=[];for(const o of new Set(e)){let s="the browser's default font";for(const a of t.families){if(isGeneric(a)){s=a;break}const c=r.filter(f=>f.family.toLowerCase()===a.toLowerCase());if(c.length===0?i(a):c.some(f=>f.status==="loaded"&&m(f,[o]))){s=a;break}}n.includes(s)||n.push(s)}return n}export function fontIssueText(t){switch(t.kind){case"fallback":return t.failed?`the font "${t.family}" failed to load, so it is drawn in ${h(t.usedFamily)}. Check the @font-face url and that the file is in the workspace.`:`the font "${t.family}" is not loaded, so it is drawn in ${h(t.usedFamily)}. Import its stylesheet in the piece (import "@fontsource/<id>/400.css" after npm install @fontsource/<id>, or a .css of @font-face rules), or list it in allyhub.config.ts's fonts for every stage, or use a font the look has (var(--ak-font-display), var(--ak-font-body)).`;case"bold":return t.faked?`"${t.family}" has no face for weight ${String(t.weight)} (the loaded faces stop below ${String(BOLD)}), so Chrome fakes the bold by thickening weight ${String(t.drawn)}. Load a bold face of the font, or use a weight it has.`:`"${t.family}" has no face for weight ${String(t.weight)}, so it is drawn at weight ${String(t.drawn)}. Load a bold face of the font, or use a weight it has.`;case"italic":return t.faked?`"${t.family}" has no italic face, so Chrome fakes the italic by slanting the upright letters. Load an italic face of the font, or drop font-style: italic.`:`"${t.family}" has no italic face, so it is drawn upright. Load an italic face of the font, or drop font-style: italic.`}}const h=t=>isGeneric(t)?`the browser's ${t} font`:t.startsWith("the ")?t:`"${t}"`;export function stringsOf(t,e=2e3){const r=[],i=new Set,n=o=>{if(!(r.length>=e)){if(typeof o=="string")r.push(o);else if(typeof o=="object"&&o!==null&&!i.has(o)){i.add(o);for(const s of Array.isArray(o)?o:Object.values(o))n(s)}}};return n(t),r}export function emojiOf(t){const e=/\p{Extended_Pictographic}|\p{Regional_Indicator}|[\u{1F3FB}-\u{1F3FF}\u{E0020}-\u{E007F}]|\u200d|\ufe0f|\u20e3/gu,r=new Set;for(const i of t)for(const n of i.matchAll(e))r.add(n[0]);return[...r].join("")}const p=new Map;let g;export function pageFaces(){const t=[];return document.fonts.forEach(e=>{t.push({family:families(e.family)[0]??e.family,weight:weightRange(e.weight),slanted:e.style!=="normal",status:e.status,ranges:unicodeRanges(e.unicodeRange)})}),t}export function localFamily(t){const e=p.get(t);if(e!==void 0)return e;g??=document.createElement("canvas").getContext("2d");const r=g;if(!r)return!0;const i="mmmmmmmmmmlli10WQ@#ƌ",n=a=>(r.font=a,r.measureText(i).width),o=JSON.stringify(t),s=["monospace","serif","sans-serif"].some(a=>n(`40px ${o}, ${a}`)!==n(`40px ${a}`));return p.set(t,s),s}export function fontWant(t){const e=Number(t.fontWeight);return{families:families(t.fontFamily),weight:Number.isFinite(e)?e:400,italic:t.fontStyle!=="normal",synthBold:t.getPropertyValue("font-synthesis-weight")!=="none",synthItalic:t.getPropertyValue("font-synthesis-style")!=="none"}}export function codePoints(t){const e=new Set;for(const r of t)for(const i of r)e.add(i.codePointAt(0)??0);return e}export function coversAny(t,e){if(t.length===0)return!0;for(const r of e)if(t.some(([i,n])=>r>=i&&r<=n))return!0;return!1}export function namedFamilies(t){return families(t).filter(e=>!isGeneric(e)&&!e.startsWith("var(")).map(e=>e.toLowerCase())}export function styleSheetFamilies(){const t=new Set,e=r=>{for(const i of Array.from(r))if(i instanceof CSSStyleRule){const n=i.style.getPropertyValue("font-family");if(n)for(const o of namedFamilies(n))t.add(o)}else i instanceof CSSGroupingRule&&e(i.cssRules)};for(const r of Array.from(document.styleSheets))try{e(r.cssRules)}catch{}return t}export function propFamilies(t){const e=new Set;document.fonts.forEach(n=>{e.add((families(n.family)[0]??n.family).toLowerCase())});const r=t.map(n=>n.toLowerCase()),i=new Set;for(const n of e)n&&r.some(o=>o.includes(n))&&i.add(n);return i}export async function loadFaces(t,e){const r=[];document.fonts.forEach(i=>{if(i.status!=="unloaded")return;const n=(families(i.family)[0]??i.family).toLowerCase();t.has(n)&&coversAny(unicodeRanges(i.unicodeRange),e)&&r.push(i.load().catch(()=>{}))}),await Promise.all(r)}export async function loadTextFonts(t){const e=new Map,r=new Map,i=document.createTreeWalker(t,NodeFilter.SHOW_TEXT);for(let o=i.nextNode();o;o=i.nextNode()){const s=o.nodeValue??"",a=o.parentElement;if(!a||!s.trim())continue;let c=r.get(a);if(c===void 0){const u=getComputedStyle(a);c=`${u.fontStyle==="normal"?"":"italic "}${u.fontWeight} 40px ${u.fontFamily}`,r.set(a,c)}let f=e.get(c);f||(f=new Set,e.set(c,f));for(const u of s)u.trim()&&f.add(u)}const n=[...e].map(([o,s])=>[o,[...s].join("")]).filter(([o,s])=>!document.fonts.check(o,s));n.length!==0&&await Promise.all(n.map(([o,s])=>document.fonts.load(o,s).catch(()=>[])))}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { RealTimers } from "@allyhub/piece";
|
|
2
|
+
/** Time 0 of a piece as a wall-clock date: 2026-01-01T00:00:00Z. */
|
|
3
|
+
export declare const EPOCH_MS: number;
|
|
4
|
+
export declare function hashString(s: string): number;
|
|
5
|
+
export declare function mulberry32(seed: number): () => number;
|
|
6
|
+
/** The real clock, captured before the guards replace it (for timing frames). */
|
|
7
|
+
export declare const realNow: () => number;
|
|
8
|
+
/** The real timer, for waits the runtime itself bounds (a clip's seek). */
|
|
9
|
+
export declare const realTimeout: (cb: () => void, ms: number) => unknown;
|
|
10
|
+
/** The real clearTimeout, captured before anything replaces the global one. */
|
|
11
|
+
export declare const realClearTimeout: (id: unknown) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Waits for promises at most `ms` (on the real clock): each one's result,
|
|
14
|
+
* or undefined for one still pending then.
|
|
15
|
+
*/
|
|
16
|
+
export declare function within<T>(list: readonly Promise<T>[], ms: number): Promise<(PromiseSettledResult<T> | undefined)[]>;
|
|
17
|
+
/** The real frame callback, for the player's playback loop. */
|
|
18
|
+
export declare const realRaf: (cb: FrameRequestCallback) => number;
|
|
19
|
+
export interface Guards {
|
|
20
|
+
/** Sets the virtual moment and reseeds randomness for it. */
|
|
21
|
+
setMoment(t: number, seed: string): void;
|
|
22
|
+
/** Runs the requestAnimationFrame callbacks queued so far, at the virtual time. */
|
|
23
|
+
flushFrames(): void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The page's own clock and timers, captured before the guards replace
|
|
27
|
+
* them: a layer gets them as ctx.realTimers (a scenery's loaders while it
|
|
28
|
+
* builds), never for what a frame shows.
|
|
29
|
+
*/
|
|
30
|
+
export declare const realTimers: RealTimers;
|
|
31
|
+
export declare function installGuards(): Guards;
|
|
32
|
+
//# sourceMappingURL=guards.d.ts.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export const EPOCH_MS=Date.UTC(2026,0,1);export function hashString(t){let o=2166136261;for(let e=0;e<t.length;e++)o^=t.charCodeAt(e),o=Math.imul(o,16777619);return o>>>0}export function mulberry32(t){let o=t>>>0;return()=>{o=o+1831565813|0;let e=Math.imul(o^o>>>15,1|o);return e=e+Math.imul(e^e>>>7,61|e)^e,((e^e>>>14)>>>0)/4294967296}}export const realNow=performance.now.bind(performance),realTimeout=setTimeout.bind(globalThis);const f=clearTimeout.bind(globalThis);export const realClearTimeout=t=>{f(t)};export function within(t,o){const e=t.map(()=>{});return t.length===0?Promise.resolve(e):new Promise(l=>{let i=t.length;const m=realTimeout(()=>{l([...e])},Math.max(0,o));t.forEach((a,s)=>{a.then(n=>{e[s]={status:"fulfilled",value:n}},n=>{e[s]={status:"rejected",reason:n}}).finally(()=>{i--,i===0&&(realClearTimeout(m),l([...e]))})})})}export const realRaf=typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(globalThis):t=>Number(setTimeout(()=>{t(realNow())},16)),realTimers={now:realNow,setTimeout:realTimeout,clearTimeout:realClearTimeout};let u;export function installGuards(){if(u)return u;const t=globalThis,o=Date;let e=0,l=mulberry32(1);class i extends o{constructor(...r){r.length===0?super(EPOCH_MS+e):super(...r)}static now(){return EPOCH_MS+e}}t.Date=i,Math.random=()=>l(),performance.now=()=>e;const m=n=>{if(n){const r=new Uint8Array(n.buffer,n.byteOffset,n.byteLength);for(let c=0;c<r.length;c++)r[c]=Math.floor(l()*256)}return n};crypto.getRandomValues=m;let a=[],s=1;return t.requestAnimationFrame=n=>{const r=s++;return a.push([r,n]),r},t.cancelAnimationFrame=n=>{a=a.filter(([r])=>r!==n)},t.setTimeout=()=>0,t.setInterval=()=>0,u={setMoment(n,r){e=n*1e3,l=mulberry32(hashString(r))},flushFrames(){const n=a;a=[];for(const[,r]of n)r(e)}},u}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export function domHash(t){let n=2166136261,e=5381;for(let o=0;o<t.length;o++){const r=t.charCodeAt(o);n=Math.imul(n^r,16777619)>>>0,e=Math.imul(e,33)+r>>>0}return`${n.toString(16)}${e.toString(16)}:${String(t.length)}`}
|