allyhub 0.8.0 → 0.9.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 +11 -0
- package/NOTICE +122 -42
- package/client.d.ts +1 -1
- package/dist/command.js +1 -1
- package/dist/commands/add.js +4 -4
- package/dist/commands/check.js +1 -1
- package/dist/commands/cloud-tools.js +13 -7
- package/dist/commands/cloud.js +1 -1
- package/dist/commands/contributed.js +2 -0
- package/dist/commands/dev.js +2 -2
- package/dist/commands/doctor.js +4 -4
- package/dist/commands/extensions.js +3 -0
- package/dist/commands/frames/common.js +1 -1
- package/dist/commands/frames/compare.js +1 -1
- package/dist/commands/frames/cuts.js +1 -1
- package/dist/commands/frames/doc.js +1 -1
- package/dist/commands/frames/overlay.js +2 -0
- package/dist/commands/frames/piece.js +1 -1
- package/dist/commands/frames/sheet.js +1 -1
- package/dist/commands/frames.js +9 -9
- package/dist/commands/index.js +1 -1
- package/dist/commands/inspect/combos.js +2 -2
- package/dist/commands/inspect/common.js +2 -2
- package/dist/commands/inspect/facts.js +3 -3
- package/dist/commands/inspect/index.js +1 -1
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/inspect/views.js +2 -0
- package/dist/commands/mail.js +9 -0
- package/dist/commands/render.js +2 -2
- package/dist/fields.js +1 -1
- package/dist/help.js +4 -4
- package/dist/main.js +4 -4
- package/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/3d-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/lookup.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/model.js +3 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery-input.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/cli/scenery.js +7 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/read-view.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/stage-routes.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/title.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/tree.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/3d-extension/package.json +295 -0
- package/dist/node_modules/@allyhub/audio/dist/levels.js +1 -1
- 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/browser/dist/browser.d.ts +24 -0
- package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +61 -0
- package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +51 -0
- package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +13 -0
- package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +35 -0
- package/dist/node_modules/@allyhub/browser/dist/html.d.ts +19 -0
- package/dist/node_modules/@allyhub/browser/dist/index.d.ts +10 -0
- package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +35 -0
- package/dist/node_modules/@allyhub/browser/dist/page.d.ts +74 -0
- package/dist/node_modules/@allyhub/browser/dist/page.js +1 -1
- package/dist/node_modules/@allyhub/browser/dist/server.d.ts +26 -0
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +91 -0
- package/dist/node_modules/@allyhub/build/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +84 -0
- package/dist/node_modules/@allyhub/build/dist/cli-command.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/content.d.ts +12 -24
- package/dist/node_modules/@allyhub/build/dist/content.js +1 -2
- package/dist/node_modules/@allyhub/build/dist/data.d.ts +2 -4
- package/dist/node_modules/@allyhub/build/dist/data.js +2 -2
- package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +44 -0
- package/dist/node_modules/@allyhub/build/dist/evaluate.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +35 -0
- package/dist/node_modules/@allyhub/build/dist/file-check.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/files.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/generated.d.ts +29 -0
- package/dist/node_modules/@allyhub/build/dist/generated.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/index.d.ts +23 -9
- package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +119 -0
- package/dist/node_modules/@allyhub/build/dist/inspect-view.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +507 -0
- package/dist/node_modules/@allyhub/build/dist/kind-build.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +2 -1
- package/dist/node_modules/@allyhub/build/dist/matrix.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/media.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/media.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/messages.d.ts +27 -15
- package/dist/node_modules/@allyhub/build/dist/messages.js +2 -2
- package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +16 -19
- package/dist/node_modules/@allyhub/build/dist/meta-worker.js +2 -4
- package/dist/node_modules/@allyhub/build/dist/meta.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/meta.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/move-refs.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +16 -8
- package/dist/node_modules/@allyhub/build/dist/plugin.js +8 -9
- package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +58 -35
- package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
- package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +19 -0
- package/dist/node_modules/@allyhub/build/dist/project-root.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +116 -0
- package/dist/node_modules/@allyhub/build/dist/project-tool.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/references.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/references.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/scan.d.ts +7 -12
- package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +73 -0
- package/dist/node_modules/@allyhub/build/dist/takes.d.ts +2 -26
- package/dist/node_modules/@allyhub/build/dist/takes.js +1 -2
- package/dist/node_modules/@allyhub/build/dist/types.d.ts +1 -1
- package/dist/node_modules/@allyhub/build/dist/types.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/uses.d.ts +23 -0
- package/dist/node_modules/@allyhub/build/dist/uses.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/version.d.ts +56 -0
- package/dist/node_modules/@allyhub/build/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/work.d.ts +30 -0
- package/dist/node_modules/@allyhub/build/dist/work.js +4 -0
- package/dist/node_modules/@allyhub/build/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/canvas-extension/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/canvas-extension/dist/inspect.js +4 -0
- package/dist/node_modules/@allyhub/canvas-extension/package.json +106 -0
- package/dist/node_modules/@allyhub/canvas-extension/skills/allyhub/references/canvas.md +27 -0
- package/dist/node_modules/@allyhub/canvas-model/LICENSE +241 -0
- package/dist/node_modules/@allyhub/canvas-model/dist/canvas.js +8 -0
- package/dist/node_modules/@allyhub/canvas-model/dist/check.js +3 -0
- package/dist/node_modules/@allyhub/canvas-model/dist/edit.js +2 -0
- package/dist/node_modules/@allyhub/canvas-model/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/canvas-model/dist/merge.js +2 -0
- package/dist/node_modules/@allyhub/canvas-model/package.json +14 -0
- package/dist/node_modules/@allyhub/chart/dist/chart-file.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +2 -2
- 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/check/dist/cache.js +1 -1
- package/dist/node_modules/@allyhub/check/dist/check.js +2 -3
- package/dist/node_modules/@allyhub/check/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +29 -0
- package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +91 -0
- package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
- package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +12 -0
- package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +43 -0
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +25 -0
- package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +76 -0
- package/dist/node_modules/@allyhub/cloud/dist/credentials.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +24 -0
- package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +43 -0
- package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +19 -0
- package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +18 -0
- package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +22 -0
- package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +16 -0
- package/dist/node_modules/@allyhub/cloud/dist/mail.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +11 -0
- package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +42 -0
- package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +40 -0
- package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +20 -0
- package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +20 -0
- package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +58 -0
- package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +22 -0
- package/dist/node_modules/@allyhub/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/components/r/callout.json +2 -4
- package/dist/node_modules/@allyhub/components/r/caption-line.json +1 -3
- package/dist/node_modules/@allyhub/components/r/caption-subtitle.json +1 -3
- package/dist/node_modules/@allyhub/components/r/caption-word.json +1 -3
- package/dist/node_modules/@allyhub/components/r/chart.json +2 -4
- package/dist/node_modules/@allyhub/components/r/code-panel.json +2 -4
- package/dist/node_modules/@allyhub/components/r/connector.json +19 -0
- package/dist/node_modules/@allyhub/components/r/screen-demo.json +2 -4
- package/dist/node_modules/@allyhub/components/registry.json +6 -0
- package/dist/node_modules/@allyhub/components/src/callout.ts +80 -4
- package/dist/node_modules/@allyhub/components/src/chart.ts +14 -6
- package/dist/node_modules/@allyhub/components/src/code-panel.ts +10 -5
- package/dist/node_modules/@allyhub/components/src/connector.ts +295 -0
- package/dist/node_modules/@allyhub/components/src/index.ts +6 -0
- package/dist/node_modules/@allyhub/components/src/screen-demo.ts +47 -25
- package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/card.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/exports.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/kinds.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/presence.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/reach.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/routes.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/texts.js +4 -0
- package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/tree.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/watcher.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/writer.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/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/doc/dist/captions.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/cite.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/component.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/covers.js +61 -0
- package/dist/node_modules/@allyhub/doc/dist/docx.js +4 -4
- package/dist/node_modules/@allyhub/doc/dist/html.js +243 -56
- package/dist/node_modules/@allyhub/doc/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/markdown.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/page.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/parse.js +4 -4
- package/dist/node_modules/@allyhub/doc/dist/table.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/write.js +33 -28
- package/dist/node_modules/@allyhub/doc/package.json +1 -1
- package/dist/node_modules/@allyhub/doc-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/build.js +3 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/cover.js +4 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/pictures.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/doc-extension/package.json +187 -0
- package/dist/node_modules/@allyhub/doc-print/LICENSE +241 -0
- package/dist/node_modules/@allyhub/doc-print/dist/facts.js +2 -0
- package/dist/node_modules/@allyhub/doc-print/dist/fonts.js +4 -0
- package/dist/node_modules/@allyhub/doc-print/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/doc-print/dist/layout.js +116 -0
- package/dist/node_modules/@allyhub/doc-print/dist/pages.js +77 -0
- package/dist/node_modules/@allyhub/doc-print/dist/print.js +68 -0
- package/dist/node_modules/@allyhub/doc-print/package.json +13 -0
- package/dist/node_modules/@allyhub/export/dist/batch.js +1 -1
- package/dist/node_modules/@allyhub/export/dist/export.js +1 -6
- package/dist/node_modules/@allyhub/export/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/export/dist/names.js +1 -1
- package/dist/node_modules/@allyhub/export/dist/processors.js +2 -0
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/LICENSE +241 -0
- package/dist/node_modules/@allyhub/extension-api/dist/api.js +2 -0
- package/dist/node_modules/@allyhub/extension-api/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/extension-api/dist/lifecycle.js +2 -0
- package/dist/node_modules/@allyhub/extension-api/package.json +14 -0
- package/dist/node_modules/@allyhub/extension-host/LICENSE +241 -0
- package/dist/node_modules/@allyhub/extension-host/dist/host.js +2 -0
- package/dist/node_modules/@allyhub/extension-host/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/extension-host/dist/node.js +3 -0
- package/dist/node_modules/@allyhub/extension-host/dist/points.js +2 -0
- package/dist/node_modules/@allyhub/extension-host/dist/shell.js +2 -0
- package/dist/node_modules/@allyhub/extension-host/package.json +22 -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 +20 -82
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +96 -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 +46 -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/i18n/LICENSE +241 -0
- package/dist/node_modules/@allyhub/i18n/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/i18n/package.json +13 -0
- package/dist/node_modules/@allyhub/image-draw/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-draw/dist/context.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/env.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/errors.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/hash.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/image-draw/dist/layer-style.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/paint.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/plan.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/reads.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/shape-path.js +2 -0
- package/dist/node_modules/@allyhub/image-draw/dist/stage.js +2 -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-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/cli.js +3 -0
- package/dist/node_modules/@allyhub/image-extension/dist/evaluate.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/facts.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/sources.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/image-extension/package.json +276 -0
- package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +44 -0
- package/dist/node_modules/@allyhub/image-measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-measure/dist/contrast.js +2 -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-psd/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-psd/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/image-psd/dist/map.js +2 -0
- package/dist/node_modules/@allyhub/image-psd/dist/pixels.js +2 -0
- package/dist/node_modules/@allyhub/image-psd/dist/read.js +18 -0
- package/dist/node_modules/@allyhub/image-psd/dist/write.js +2 -0
- package/dist/node_modules/@allyhub/image-psd/package.json +14 -0
- package/dist/node_modules/@allyhub/image-render/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-render/dist/webp.js +2 -0
- package/dist/node_modules/@allyhub/image-render/package.json +14 -0
- package/dist/node_modules/@allyhub/image-runtime/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/board.js +2 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/layers.js +2 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/load.js +3 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/overset.js +2 -0
- package/dist/node_modules/@allyhub/image-runtime/dist/psd.js +2 -0
- package/dist/node_modules/@allyhub/image-runtime/package.json +18 -0
- package/dist/node_modules/@allyhub/image-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/adjustment.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/define.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/dom.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fill.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/fit.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/group.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/media.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/messages.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/picture.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/props.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/shape.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/stack.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text-layer.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/text.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/written.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/package.json +19 -0
- package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +3 -0
- package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +139 -0
- package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +41 -0
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +195 -0
- package/dist/node_modules/@allyhub/measure/dist/compare.js +1 -1
- 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/index.d.ts +4 -0
- package/dist/node_modules/@allyhub/measure/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/NOTICE +1 -42
- package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +25 -0
- package/dist/node_modules/@allyhub/media/dist/analysis.js +2 -0
- package/dist/node_modules/@allyhub/media/dist/audio.d.ts +2 -0
- package/dist/node_modules/@allyhub/media/dist/audio.js +1 -1
- package/dist/node_modules/@allyhub/media/dist/errors.d.ts +2 -2
- package/dist/node_modules/@allyhub/media/dist/index.d.ts +5 -21
- package/dist/node_modules/@allyhub/media/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/media/dist/tools.d.ts +2 -12
- package/dist/node_modules/@allyhub/media/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/media/dist/video.js +1 -1
- package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +2 -2
- package/dist/node_modules/@allyhub/media/package.json +1 -1
- package/dist/node_modules/@allyhub/media-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/analyses/matte.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/cloud.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/boxes.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/common.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/matte.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/mattes.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +2 -0
- package/dist/node_modules/@allyhub/media-extension/package.json +62 -0
- package/dist/node_modules/@allyhub/model/dist/data.d.ts +7 -2
- package/dist/node_modules/@allyhub/model/dist/data.js +1 -1
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.js +1 -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/piece/dist/anchors.d.ts +156 -0
- package/dist/node_modules/@allyhub/piece/dist/component.js +2 -0
- 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/piece/dist/contrast.d.ts +98 -0
- package/dist/node_modules/@allyhub/piece/dist/export.d.ts +114 -0
- package/dist/node_modules/@allyhub/piece/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/formats.d.ts +149 -0
- 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 +421 -0
- package/dist/node_modules/@allyhub/piece/dist/layout.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/look.d.ts +66 -0
- package/dist/node_modules/@allyhub/piece/dist/media.d.ts +256 -0
- package/dist/node_modules/@allyhub/piece/dist/media.js +2 -0
- package/dist/node_modules/@allyhub/piece/dist/messages.d.ts +94 -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/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/piece/dist/script.d.ts +81 -0
- 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 +285 -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/piece/dist/voice.d.ts +156 -0
- package/dist/node_modules/@allyhub/piece/package.json +18 -0
- package/dist/node_modules/@allyhub/project/dist/component-stills.js +11 -1
- package/dist/node_modules/@allyhub/project/dist/console.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/digest.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/ledger.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/page.js +2 -2
- package/dist/node_modules/@allyhub/project/dist/part-keys.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/part-measure.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/part-pool.js +2 -0
- package/dist/node_modules/@allyhub/project/dist/session.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/stills.js +1 -1
- package/dist/node_modules/@allyhub/project/dist/version.js +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +139 -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/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 +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +232 -132
- 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 +22 -9
- 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 +5 -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 +273 -0
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +26 -0
- 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 +1 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/dist/capture.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/composite.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/encode.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/exports.js +2 -2
- package/dist/node_modules/@allyhub/render/dist/ffmpeg.js +3 -3
- package/dist/node_modules/@allyhub/render/dist/footage.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/junction.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/parts.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/post.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/render.js +2 -2
- package/dist/node_modules/@allyhub/render/dist/sound.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/render/package.json +1 -5
- package/dist/node_modules/@allyhub/runtime/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/clock.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/compose.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/embed.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/facade.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/film.js +2 -0
- package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/frame.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/measure.js +2 -2
- package/dist/node_modules/@allyhub/runtime/dist/output.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/piece.js +2 -2
- package/dist/node_modules/@allyhub/runtime/dist/player/player.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/sound.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/speech.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/stage-kit.js +1 -1
- package/dist/node_modules/@allyhub/runtime/dist/takes.js +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -5
- 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/scaffold/dist/index.js +6 -5
- package/dist/node_modules/@allyhub/scaffold/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/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +2 -3
- package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +14 -7
- package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +4 -4
- package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +314 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/index.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/queries.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/screens.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/state.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/types.d.ts +2 -2
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/facts.d.ts +3 -3
- package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +42 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.js +4 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +6 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +70 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.js +12 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +49 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +73 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.js +3 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +18 -0
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.js +2 -0
- package/dist/node_modules/@allyhub/scenery-host/package.json +5 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/code.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/patch.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/sdk.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +5 -1
- package/dist/node_modules/@allyhub/sheet-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +8 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +3 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +7 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +3 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/sheet-extension/package.json +209 -0
- package/dist/node_modules/@allyhub/slides-core/dist/animation.js +1 -1
- 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.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/connect.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/fact.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/merge.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/sdk.js +2 -0
- 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/slides-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +3 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/deck-info.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/deck-pptx.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/evaluate.js +3 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/read-view.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/slides-extension/package.json +246 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/component.js +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +5 -5
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/dist/build-process.js +2 -2
- package/dist/node_modules/@allyhub/stage/dist/build-worker.js +1 -1
- package/dist/node_modules/@allyhub/stage/dist/identity.js +1 -1
- package/dist/node_modules/@allyhub/stage/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/stage/dist/page.js +2 -2
- package/dist/node_modules/@allyhub/stage/dist/server.js +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/install.js +2 -0
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.js +2 -2
- package/dist/node_modules/@allyhub/stage-page/dist/stage-module.js +2 -0
- package/dist/node_modules/@allyhub/stage-page/package.json +5 -1
- package/dist/node_modules/@allyhub/stage-runtime/LICENSE +241 -0
- package/dist/node_modules/@allyhub/stage-runtime/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +80 -0
- package/dist/node_modules/@allyhub/stage-runtime/dist/use.js +2 -0
- package/dist/node_modules/@allyhub/stage-runtime/package.json +17 -0
- package/dist/node_modules/@allyhub/video-core/dist/captions.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/edits.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/fact.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -4
- package/dist/node_modules/@allyhub/video-core/dist/mix-plan.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/piece.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/speech.js +2 -2
- package/dist/node_modules/@allyhub/video-core/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/video-core/dist/timeline.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/timing.js +1 -1
- 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-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/video-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/audio-text.js +6 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/audio.js +4 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/cloud.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/draw.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +5 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/reference.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/voice.js +3 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/words-text.js +6 -0
- package/dist/node_modules/@allyhub/video-extension/dist/cli/words.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/evaluate.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/export.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/common.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/contrast.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/fidelity.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +4 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline-text.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/timeline.js +3 -0
- package/dist/node_modules/@allyhub/video-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/read-view.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/sources.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/stage-routes.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/video-extension/package.json +454 -0
- package/dist/node_modules/@allyhub/video-measure/LICENSE +241 -0
- package/dist/node_modules/@allyhub/video-measure/dist/check.js +3 -0
- package/dist/node_modules/@allyhub/video-measure/dist/cuts.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/facts.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/generated.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/graphics.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/page.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/plans.js +3 -0
- package/dist/node_modules/@allyhub/video-measure/dist/recording-report.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/reference/piece.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/reference/sets.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/reference/text.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/says.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/sound-report.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/stretch.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/version.js +2 -0
- package/dist/node_modules/@allyhub/video-measure/dist/words.js +3 -0
- package/dist/node_modules/@allyhub/video-measure/package.json +13 -0
- package/dist/node_modules/@allyhub/video-sdk/LICENSE +241 -0
- package/dist/node_modules/@allyhub/video-sdk/NOTICE +118 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/anim.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/free.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/input.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/module.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/noise.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/parts.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/paths.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/phone.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/route.js +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/node_modules/@allyhub/website/dist/publish.js +2 -2
- package/dist/node_modules/@allyhub/website/dist/website.js +3 -3
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/website-extension/dist/build.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/cli/index.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/cli/site.js +4 -0
- package/dist/node_modules/@allyhub/website-extension/dist/hosting.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/preview.js +6 -0
- package/dist/node_modules/@allyhub/website-extension/dist/project-tools.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/website-extension/package.json +152 -0
- package/dist/node_modules/@allyhub/x-extension/LICENSE +241 -0
- package/dist/node_modules/@allyhub/x-extension/dist/article-build.js +4 -0
- package/dist/node_modules/@allyhub/x-extension/dist/article-kind.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/dist/build-plugins.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/dist/build.js +4 -0
- package/dist/node_modules/@allyhub/x-extension/dist/config.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/dist/media.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/dist/stage-module.js +67 -0
- package/dist/node_modules/@allyhub/x-extension/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/dist/workspace.js +2 -0
- package/dist/node_modules/@allyhub/x-extension/package.json +277 -0
- package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +67 -0
- package/dist/node_modules/@allyhub/x-model/LICENSE +241 -0
- package/dist/node_modules/@allyhub/x-model/dist/article-check.js +5 -0
- package/dist/node_modules/@allyhub/x-model/dist/article.js +3 -0
- package/dist/node_modules/@allyhub/x-model/dist/check.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/content-state.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/count.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/edit.js +3 -0
- package/dist/node_modules/@allyhub/x-model/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/limits.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/post.js +2 -0
- package/dist/node_modules/@allyhub/x-model/dist/requests.js +2 -0
- package/dist/node_modules/@allyhub/x-model/package.json +14 -0
- package/dist/node_modules/@allyhub/x-view/LICENSE +241 -0
- package/dist/node_modules/@allyhub/x-view/dist/article.js +2 -0
- package/dist/node_modules/@allyhub/x-view/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/x-view/dist/post.js +3 -0
- package/dist/node_modules/@allyhub/x-view/dist/stage.js +2 -0
- package/dist/node_modules/@allyhub/x-view/dist/text.js +2 -0
- package/dist/node_modules/@allyhub/x-view/package.json +21 -0
- package/dist/node_modules/@allyhub/x-view/src/style.css +709 -0
- package/dist/package.json +16 -0
- package/dist/parameters.js +1 -1
- package/dist/presence.js +2 -0
- package/dist/project.js +1 -1
- package/dist/sdk-docs.js +1 -1
- package/dist/text/batch-text.js +1 -1
- package/dist/text/console-text.js +1 -1
- package/dist/text/facts-text.js +5 -5
- package/dist/text/format.js +2 -2
- package/dist/text/index.js +1 -1
- package/dist/tool-options.js +1 -1
- package/dist/version.js +1 -1
- package/dist/works.js +1 -1
- package/editor-web/assets/abnfDiagram-WEYOIA3C-CN5PiJYY.js +1 -0
- package/editor-web/assets/alt-BOVao_9S.js +4 -0
- package/editor-web/assets/architecture-WOLXFQ4H-BnvZtQYk.js +1 -0
- package/editor-web/assets/architectureDiagram-ZHVYKT53-tkcEcFQ8.js +36 -0
- package/editor-web/assets/arrow-up-DTP2yVSU.js +1 -0
- package/editor-web/assets/article-B6YCzhj8.js +73 -0
- package/editor-web/assets/audio-lines-Ti8-m7H2.js +1 -0
- package/editor-web/assets/blockDiagram-RJAE7QA3-DhqEIpie.js +140 -0
- package/editor-web/assets/c4Diagram-XDPPPE54-Bg9G95tl.js +38 -0
- package/editor-web/assets/caladea-latin-400-italic-BXgumMrY.woff +0 -0
- package/editor-web/assets/caladea-latin-400-italic-LV4kG-PE.woff2 +0 -0
- package/editor-web/assets/caladea-latin-400-normal-BdRVtv9R.woff +0 -0
- package/editor-web/assets/caladea-latin-400-normal-CEHWF4nY.woff2 +0 -0
- package/editor-web/assets/caladea-latin-700-italic-ChDjCuPY.woff +0 -0
- package/editor-web/assets/caladea-latin-700-italic-DswTWW_F.woff2 +0 -0
- package/editor-web/assets/caladea-latin-700-normal-0s3Ufwiy.woff +0 -0
- package/editor-web/assets/caladea-latin-700-normal-Emkxzyyt.woff2 +0 -0
- package/editor-web/assets/caladea-latin-ext-400-italic-DaI5RAJ1.woff2 +0 -0
- package/editor-web/assets/caladea-latin-ext-400-italic-Ddrq60cI.woff +0 -0
- package/editor-web/assets/caladea-latin-ext-400-normal-BjxrNPcj.woff +0 -0
- package/editor-web/assets/caladea-latin-ext-400-normal-CyFL0oLC.woff2 +0 -0
- package/editor-web/assets/caladea-latin-ext-700-italic-BPwR0tp-.woff +0 -0
- package/editor-web/assets/caladea-latin-ext-700-italic-DKIXMnVd.woff2 +0 -0
- package/editor-web/assets/caladea-latin-ext-700-normal-jPPxbA1-.woff2 +0 -0
- package/editor-web/assets/caladea-latin-ext-700-normal-sbmkuTql.woff +0 -0
- package/editor-web/assets/calc-worker-B5-fDWnb.js +45 -0
- package/editor-web/assets/carlito-cyrillic-400-italic-BBq3u1wn.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-400-italic-DkiFjkCS.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-400-normal-BtG3bBmV.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-400-normal-Bzv-FGbj.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-700-italic-BWpxjWJ1.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-700-italic-CkpLb3ak.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-700-normal-Cj42L3Bs.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-700-normal-bxg6f20d.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-400-italic-BiZjW1hk.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-400-italic-DcD3cPwb.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-400-normal-DYs6OoL4.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-400-normal-UzWcrHdi.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-700-italic-ClXPMqhh.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-700-italic-DoehkTRC.woff +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-700-normal-BAPhAm-q.woff2 +0 -0
- package/editor-web/assets/carlito-cyrillic-ext-700-normal-C5O8kkCQ.woff +0 -0
- package/editor-web/assets/carlito-greek-400-italic-C1DqF7JR.woff2 +0 -0
- package/editor-web/assets/carlito-greek-400-italic-Cnl_RiK8.woff +0 -0
- package/editor-web/assets/carlito-greek-400-normal-Cv5gcxdy.woff2 +0 -0
- package/editor-web/assets/carlito-greek-400-normal-aOjZpsFX.woff +0 -0
- package/editor-web/assets/carlito-greek-700-italic-DfpwTZ8N.woff +0 -0
- package/editor-web/assets/carlito-greek-700-italic-VWqy950O.woff2 +0 -0
- package/editor-web/assets/carlito-greek-700-normal-B-Y_qvTa.woff +0 -0
- package/editor-web/assets/carlito-greek-700-normal-BXGaow7Z.woff2 +0 -0
- package/editor-web/assets/carlito-greek-ext-400-italic-BUNDIZnl.woff +0 -0
- package/editor-web/assets/carlito-greek-ext-400-italic-o-WxseCy.woff2 +0 -0
- package/editor-web/assets/carlito-greek-ext-400-normal-DnfnTswf.woff2 +0 -0
- package/editor-web/assets/carlito-greek-ext-400-normal-m-eDGcsW.woff +0 -0
- package/editor-web/assets/carlito-greek-ext-700-italic-DD0r8DLp.woff +0 -0
- package/editor-web/assets/carlito-greek-ext-700-italic-DiO5Rxw8.woff2 +0 -0
- package/editor-web/assets/carlito-greek-ext-700-normal-BGl1PQht.woff +0 -0
- package/editor-web/assets/carlito-greek-ext-700-normal-COKnZ-5a.woff2 +0 -0
- package/editor-web/assets/carlito-latin-400-italic-BiMes9J5.woff2 +0 -0
- package/editor-web/assets/carlito-latin-400-italic-DcRV6skQ.woff +0 -0
- package/editor-web/assets/carlito-latin-400-normal-R-CeALMm.woff2 +0 -0
- package/editor-web/assets/carlito-latin-400-normal-jEGHVXAP.woff +0 -0
- package/editor-web/assets/carlito-latin-700-italic-BkeTGILl.woff +0 -0
- package/editor-web/assets/carlito-latin-700-italic-Ckstd88m.woff2 +0 -0
- package/editor-web/assets/carlito-latin-700-normal-CjG3MLqY.woff +0 -0
- package/editor-web/assets/carlito-latin-700-normal-DQ6DOkPk.woff2 +0 -0
- package/editor-web/assets/carlito-latin-ext-400-italic-B7I2MSBC.woff +0 -0
- package/editor-web/assets/carlito-latin-ext-400-italic-CqQQuoTt.woff2 +0 -0
- package/editor-web/assets/carlito-latin-ext-400-normal-D112-ed2.woff +0 -0
- package/editor-web/assets/carlito-latin-ext-400-normal-DPZWia0-.woff2 +0 -0
- package/editor-web/assets/carlito-latin-ext-700-italic-BvVMpuZ3.woff2 +0 -0
- package/editor-web/assets/carlito-latin-ext-700-italic-Cocp2sK5.woff +0 -0
- package/editor-web/assets/carlito-latin-ext-700-normal-9QIvu-gI.woff +0 -0
- package/editor-web/assets/carlito-latin-ext-700-normal-D2WO8ap1.woff2 +0 -0
- package/editor-web/assets/carlito-vietnamese-400-italic-Dpe35oQb.woff +0 -0
- package/editor-web/assets/carlito-vietnamese-400-italic-vBbFSHZk.woff2 +0 -0
- package/editor-web/assets/carlito-vietnamese-400-normal-BA1ASEPx.woff2 +0 -0
- package/editor-web/assets/carlito-vietnamese-400-normal-D0HL2cT_.woff +0 -0
- package/editor-web/assets/carlito-vietnamese-700-italic-rWsihy0W.woff +0 -0
- package/editor-web/assets/carlito-vietnamese-700-italic-tiFMON_I.woff2 +0 -0
- package/editor-web/assets/carlito-vietnamese-700-normal-DIEsMQO6.woff +0 -0
- package/editor-web/assets/carlito-vietnamese-700-normal-gG8ns3Xg.woff2 +0 -0
- package/editor-web/assets/channel-C26aBI4o.js +1 -0
- package/editor-web/assets/chart-BOnxneyw.js +1 -0
- package/editor-web/assets/choice-O5nwc2N0.js +1 -0
- package/editor-web/assets/chunk-2E7WHVMD-C8Ve9lAa.js +88 -0
- package/editor-web/assets/chunk-4EMNKR2T-BDWwPUnT.js +1 -0
- package/editor-web/assets/chunk-55XCU76K-BQiNPKgx.js +1 -0
- package/editor-web/assets/chunk-7S6XSTFO-QoEt-6jf.js +2 -0
- package/editor-web/assets/chunk-AQDTSKZB-BeuwIv0-.js +72 -0
- package/editor-web/assets/chunk-DSNLSHJZ-BHW7sLAz.js +129 -0
- package/editor-web/assets/chunk-HAGFOTED-bbGED0hu.js +62 -0
- package/editor-web/assets/chunk-HNE4Q36P-FltWp8yo.js +1 -0
- package/editor-web/assets/chunk-NQOKRVIF-NeQzr6kH.js +213 -0
- package/editor-web/assets/chunk-UHW7PFBP-eA4-WUhn.js +1 -0
- package/editor-web/assets/chunk-VQ5W62QI-BPPv325z.js +1 -0
- package/editor-web/assets/chunk-WQQL4CDK-DOCIz7Te.js +10 -0
- package/editor-web/assets/chunk-YZO67HFG-Dc_ihQJi.js +1 -0
- package/editor-web/assets/chunk-ZAUX2LTX-CoqwCPSm.js +1 -0
- package/editor-web/assets/chunk-ZCHMQSOR-CZUQPkJx.js +2 -0
- package/editor-web/assets/classDiagram-v2-4MYWR3UA-DUh9c50k.js +217 -0
- package/editor-web/assets/collaborator-BJU5qwHd.js +1 -0
- package/editor-web/assets/cousine-cyrillic-400-normal-D7Mp9hmd.woff +0 -0
- package/editor-web/assets/cousine-cyrillic-400-normal-DaHhUWxZ.woff2 +0 -0
- package/editor-web/assets/cousine-cyrillic-700-normal-BEGCXyFC.woff +0 -0
- package/editor-web/assets/cousine-cyrillic-700-normal-BkkUdX_g.woff2 +0 -0
- package/editor-web/assets/cousine-cyrillic-ext-400-normal-CfRZlfI3.woff +0 -0
- package/editor-web/assets/cousine-cyrillic-ext-400-normal-DHXCUfGT.woff2 +0 -0
- package/editor-web/assets/cousine-cyrillic-ext-700-normal-C15KMCf5.woff2 +0 -0
- package/editor-web/assets/cousine-cyrillic-ext-700-normal-DhfE94aH.woff +0 -0
- package/editor-web/assets/cousine-greek-400-normal-CWPwwPBl.woff +0 -0
- package/editor-web/assets/cousine-greek-400-normal-D28eY3d7.woff2 +0 -0
- package/editor-web/assets/cousine-greek-700-normal-DsTT0TsI.woff2 +0 -0
- package/editor-web/assets/cousine-greek-700-normal-rpH_OJFi.woff +0 -0
- package/editor-web/assets/cousine-greek-ext-400-normal-n0k5mInY.woff +0 -0
- package/editor-web/assets/cousine-greek-ext-400-normal-qdX5ZLbv.woff2 +0 -0
- package/editor-web/assets/cousine-greek-ext-700-normal-CSy642Ya.woff +0 -0
- package/editor-web/assets/cousine-greek-ext-700-normal-DgHq_I2n.woff2 +0 -0
- package/editor-web/assets/cousine-hebrew-400-normal-COyK3YUR.woff2 +0 -0
- package/editor-web/assets/cousine-hebrew-400-normal-oCiNOOyc.woff +0 -0
- package/editor-web/assets/cousine-hebrew-700-normal-BCE0G3Nu.woff2 +0 -0
- package/editor-web/assets/cousine-hebrew-700-normal-Bf9jZ0p9.woff +0 -0
- package/editor-web/assets/cousine-latin-400-normal-BhCTjpdJ.woff2 +0 -0
- package/editor-web/assets/cousine-latin-400-normal-D0CzircV.woff +0 -0
- package/editor-web/assets/cousine-latin-700-normal-BO_dhHEP.woff +0 -0
- package/editor-web/assets/cousine-latin-700-normal-CwJ0o97b.woff2 +0 -0
- package/editor-web/assets/cousine-latin-ext-400-normal-B_NP9zZK.woff +0 -0
- package/editor-web/assets/cousine-latin-ext-400-normal-CGywThDL.woff2 +0 -0
- package/editor-web/assets/cousine-latin-ext-700-normal-DWTrZAet.woff2 +0 -0
- package/editor-web/assets/cousine-latin-ext-700-normal-NvcoPDWO.woff +0 -0
- package/editor-web/assets/cousine-vietnamese-400-normal-B4JqDdoh.woff2 +0 -0
- package/editor-web/assets/cousine-vietnamese-400-normal-Bfsm3lEf.woff +0 -0
- package/editor-web/assets/cousine-vietnamese-700-normal-B4DXCoMM.woff +0 -0
- package/editor-web/assets/cousine-vietnamese-700-normal-DLBKC3PH.woff2 +0 -0
- package/editor-web/assets/createLucideIcon-B3B95oX5.js +1 -0
- package/editor-web/assets/cynefin-EF2NZ3EQ-DUTZiog0.js +1 -0
- package/editor-web/assets/cynefinDiagram-WF24UDRP-oAjpfbrU.js +62 -0
- package/editor-web/assets/dagre-NK4GIZVX-BrKvKCvb.js +4 -0
- package/editor-web/assets/diagram-CBK3MWTC-GekVRnmm.js +24 -0
- package/editor-web/assets/diagram-I5XIIV2D-CDd1VFRT.js +24 -0
- package/editor-web/assets/diagram-ODIL2UCW-535RISTn.js +30 -0
- package/editor-web/assets/diagram-PFBEJUXE-MXzzKCGG.js +3 -0
- package/editor-web/assets/diagram-RJA3I4VV-vKVwkQxY.js +41 -0
- package/editor-web/assets/diagram-TYUNFSNR-UwGAiQLx.js +200 -0
- package/editor-web/assets/dist-9ymlIMhr.js +1 -0
- package/editor-web/assets/dist-C6NqUEG4.js +16 -0
- package/editor-web/assets/dist-C9UGmCG9.js +6 -0
- package/editor-web/assets/dist-CAk5bjBm.js +1 -0
- package/editor-web/assets/dist-CKyfo5RM.js +340 -0
- package/editor-web/assets/dist-CRaWqNwq.js +37 -0
- package/editor-web/assets/dist-CwIBc7HQ.js +1 -0
- package/editor-web/assets/dist-DXRmkezB.js +38 -0
- package/editor-web/assets/dist-EKK5i0dG.js +219 -0
- package/editor-web/assets/dist-YW8hS4IM.js +9 -0
- package/editor-web/assets/dist-hHJlpLWo.js +5 -0
- package/editor-web/assets/dist-oYKcwWUj.js +4 -0
- package/editor-web/assets/dist-shKo7XVN.js +2 -0
- package/editor-web/assets/dist-wrKxBrVu.js +24 -0
- package/editor-web/assets/ebnfDiagram-V4P3TTPT-73yGokYa.js +1 -0
- package/editor-web/assets/elk-QONTBCTQ-BW6V9y6a.js +27 -0
- package/editor-web/assets/erDiagram-KYQIGQAA-BPqIJ22h.js +99 -0
- package/editor-web/assets/eventmodeling-K75KTNOO-_VZ8jvuy.js +1 -0
- package/editor-web/assets/flowDiagram-IUGLLWBU-ouDQYiTr.js +1 -0
- package/editor-web/assets/ganttDiagram-R7GPNTJY-DZ157JN2.js +292 -0
- package/editor-web/assets/gitGraph-VSP46ZUC-fmcNL9bq.js +1 -0
- package/editor-web/assets/gitGraphDiagram-PDYL7XHY-DiZDyksR.js +106 -0
- package/editor-web/assets/hint-_AQWCDMj.js +1 -0
- package/editor-web/assets/index-BsstP-cI.js +28 -0
- package/editor-web/assets/index-DQRcmxBO.css +2 -0
- package/editor-web/assets/info-OHQRW6UA-V06620kN.js +1 -0
- package/editor-web/assets/infoDiagram-MVDRKAX5-CbIgheWX.js +2 -0
- package/editor-web/assets/ishikawaDiagram-HPEHV2GE-D5oJQPkG.js +70 -0
- package/editor-web/assets/italic-CDhZKo_q.js +1 -0
- package/editor-web/assets/journeyDiagram-BOSHW7O7-BZEv6JI4.js +139 -0
- package/editor-web/assets/jsx-runtime-DePvh3-m.js +1 -0
- package/editor-web/assets/kanban-definition-FNSA4HC5-CLG1R8y_.js +89 -0
- package/editor-web/assets/layout-SWqqA0yV.js +1 -0
- package/editor-web/assets/mermaid-parser.core-DxDwXM7z.js +7 -0
- package/editor-web/assets/mermaid.core-tU55ZwVG.js +44 -0
- package/editor-web/assets/mindmap-definition-6OY57UG3-CYf4zzAh.js +98 -0
- package/editor-web/assets/minus-Cgmm6ncD.js +1 -0
- package/editor-web/assets/packet-JDAUHWVQ-DsHeKYNL.js +1 -0
- package/editor-web/assets/pegDiagram-ECIUJNBX-CQyh6TTa.js +1 -0
- package/editor-web/assets/picture-B-I4V_JT.js +1 -0
- package/editor-web/assets/pie-XZMESJXO-3vCIvpNB.js +1 -0
- package/editor-web/assets/pieDiagram-GNMPY74T-DF5yGBLn.js +39 -0
- package/editor-web/assets/progress-0B_TVsPi.js +6 -0
- package/editor-web/assets/quadrantDiagram-D57K4MC3-B7pxlDYP.js +7 -0
- package/editor-web/assets/radar-ABXABTNO-cpEA41mL.js +1 -0
- package/editor-web/assets/railroad-I3PHUGI6-BLyy5R2c.js +1 -0
- package/editor-web/assets/railroad-abnf-LNEFI6M7-Y-oyol19.js +1 -0
- package/editor-web/assets/railroad-ebnf-DWYD2UWJ-o58wHZsr.js +1 -0
- package/editor-web/assets/railroad-peg-JR7BVNR7-CcD3PXZ8.js +1 -0
- package/editor-web/assets/railroadDiagram-Y72NRBL7-BuCC4eyy.js +1 -0
- package/editor-web/assets/react-BP46yLMB.js +1 -0
- package/editor-web/assets/react-pgBZqVxJ.js +96 -0
- package/editor-web/assets/read-view-DnCFmJFo.js +1 -0
- package/editor-web/assets/read-view-uW5LmuBT.js +1 -0
- package/editor-web/assets/read-view-v3cx-9XM.js +1 -0
- package/editor-web/assets/repeat-2-C5PCbNsg.js +1 -0
- package/editor-web/assets/requirementDiagram-EQYSW5RA-Dp-JFGn4.js +84 -0
- package/editor-web/assets/sankeyDiagram-SY24JHO5-rYuCqEvw.js +40 -0
- package/editor-web/assets/schemas-Ewwjtbf4.js +1 -0
- package/editor-web/assets/sequenceDiagram-BLEHNHQU-DryW8x6d.js +169 -0
- package/editor-web/assets/session-DiI9KYRI.js +1 -0
- package/editor-web/assets/slides-CCwgBcGH.js +1 -0
- package/editor-web/assets/sound-CqryteNl.js +1 -0
- package/editor-web/assets/stateDiagram-v2-A6IESKWZ-Bnp0XfpT.js +291 -0
- package/editor-web/assets/strikethrough-DJckA35o.js +1 -0
- package/editor-web/assets/svg-BjM9RazX.js +1 -0
- package/editor-web/assets/swatch-DL3HqIjW.js +1 -0
- package/editor-web/assets/swimlanes-B3ENRKFQ-BiRRhhbd.js +1 -0
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-BkOls8Tv.js +8 -0
- package/editor-web/assets/switch-DltnKqN-.js +1 -0
- package/editor-web/assets/syntax-C0iPON60.js +18 -0
- package/editor-web/assets/syntax-CC6QYhCz.js +1 -0
- package/editor-web/assets/tabs-C-re0Kxn.js +1 -0
- package/editor-web/assets/textarea-BGtPqZdB.js +105 -0
- package/editor-web/assets/timeline-definition-JXYKGLGB-D-Q5ZtDF.js +120 -0
- package/editor-web/assets/tinos-cyrillic-400-italic-CUXT6ECP.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-400-italic-D26KjN84.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-400-normal-BInRL8Bn.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-400-normal-kS2dpklR.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-700-italic-CUFPRiVR.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-700-italic-DU6-gZzV.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-700-normal-DGklj3DM.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-700-normal-HYhic5tl.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-400-italic-Bz6A2Xew.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-400-italic-CgiySoL2.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-400-normal-DdITlKdb.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-400-normal-l41d2z3M.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-700-italic-BQu9kgBz.woff +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-700-italic-Ceua-rFl.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-700-normal-CE86bzrR.woff2 +0 -0
- package/editor-web/assets/tinos-cyrillic-ext-700-normal-yBtNmQaZ.woff +0 -0
- package/editor-web/assets/tinos-greek-400-italic-CITkaQD8.woff2 +0 -0
- package/editor-web/assets/tinos-greek-400-italic-Dc-Zjc_Z.woff +0 -0
- package/editor-web/assets/tinos-greek-400-normal-BKmklotr.woff2 +0 -0
- package/editor-web/assets/tinos-greek-400-normal-D6DCdDEC.woff +0 -0
- package/editor-web/assets/tinos-greek-700-italic-C474ACqK.woff2 +0 -0
- package/editor-web/assets/tinos-greek-700-italic-VKIu6SKO.woff +0 -0
- package/editor-web/assets/tinos-greek-700-normal-CAsZoNo7.woff +0 -0
- package/editor-web/assets/tinos-greek-700-normal-DZiY5218.woff2 +0 -0
- package/editor-web/assets/tinos-greek-ext-400-italic-C7FWsVQN.woff +0 -0
- package/editor-web/assets/tinos-greek-ext-400-italic-QOcg_kQA.woff2 +0 -0
- package/editor-web/assets/tinos-greek-ext-400-normal-1tgngtmV.woff2 +0 -0
- package/editor-web/assets/tinos-greek-ext-400-normal-BY5Lx0CY.woff +0 -0
- package/editor-web/assets/tinos-greek-ext-700-italic-2QV0uNor.woff2 +0 -0
- package/editor-web/assets/tinos-greek-ext-700-italic-zoEBc9cL.woff +0 -0
- package/editor-web/assets/tinos-greek-ext-700-normal-Bu9AJavU.woff +0 -0
- package/editor-web/assets/tinos-greek-ext-700-normal-nVGGTb9r.woff2 +0 -0
- package/editor-web/assets/tinos-hebrew-400-italic-Cp89YzKh.woff2 +0 -0
- package/editor-web/assets/tinos-hebrew-400-italic-k5xAEjEk.woff +0 -0
- package/editor-web/assets/tinos-hebrew-400-normal-B17QmYDt.woff2 +0 -0
- package/editor-web/assets/tinos-hebrew-400-normal-DhGqnHb1.woff +0 -0
- package/editor-web/assets/tinos-hebrew-700-italic-BSdnwE5c.woff2 +0 -0
- package/editor-web/assets/tinos-hebrew-700-italic-DuNrcWBH.woff +0 -0
- package/editor-web/assets/tinos-hebrew-700-normal-B737la7J.woff +0 -0
- package/editor-web/assets/tinos-hebrew-700-normal-BNVAlJ0i.woff2 +0 -0
- package/editor-web/assets/tinos-latin-400-italic-BYAl0kbZ.woff2 +0 -0
- package/editor-web/assets/tinos-latin-400-italic-HcuZF3H0.woff +0 -0
- package/editor-web/assets/tinos-latin-400-normal-B05awSIM.woff +0 -0
- package/editor-web/assets/tinos-latin-400-normal-rilFpyjL.woff2 +0 -0
- package/editor-web/assets/tinos-latin-700-italic-M0H2aQ0O.woff +0 -0
- package/editor-web/assets/tinos-latin-700-italic-vJg8Axdx.woff2 +0 -0
- package/editor-web/assets/tinos-latin-700-normal-CjcRkLdR.woff +0 -0
- package/editor-web/assets/tinos-latin-700-normal-qGf2y18O.woff2 +0 -0
- package/editor-web/assets/tinos-latin-ext-400-italic-DKtLLJa2.woff +0 -0
- package/editor-web/assets/tinos-latin-ext-400-italic-WsHooD3r.woff2 +0 -0
- package/editor-web/assets/tinos-latin-ext-400-normal-BUQPNqi9.woff +0 -0
- package/editor-web/assets/tinos-latin-ext-400-normal-C68eX7xt.woff2 +0 -0
- package/editor-web/assets/tinos-latin-ext-700-italic-BtLLKPsV.woff2 +0 -0
- package/editor-web/assets/tinos-latin-ext-700-italic-Gmi35kWa.woff +0 -0
- package/editor-web/assets/tinos-latin-ext-700-normal-CesJqEpY.woff2 +0 -0
- package/editor-web/assets/tinos-latin-ext-700-normal-nLvPiDAe.woff +0 -0
- package/editor-web/assets/tinos-vietnamese-400-italic-BJdaJnTX.woff2 +0 -0
- package/editor-web/assets/tinos-vietnamese-400-italic-C0nreyLC.woff +0 -0
- package/editor-web/assets/tinos-vietnamese-400-normal-BYl6xqrz.woff +0 -0
- package/editor-web/assets/tinos-vietnamese-400-normal-CrJeqB3M.woff2 +0 -0
- package/editor-web/assets/tinos-vietnamese-700-italic-BPJuDXkI.woff2 +0 -0
- package/editor-web/assets/tinos-vietnamese-700-italic-Dl6iR3hy.woff +0 -0
- package/editor-web/assets/tinos-vietnamese-700-normal-CmLX0U_H.woff2 +0 -0
- package/editor-web/assets/tinos-vietnamese-700-normal-bKCZ5S7w.woff +0 -0
- package/editor-web/assets/trash-2-Bjj6cWzP.js +1 -0
- package/editor-web/assets/treeView-D4JQ5SDB-B6DDatXq.js +1 -0
- package/editor-web/assets/treemap-SAJKECNS-D7j5ZhiI.js +1 -0
- package/editor-web/assets/undo-2-yOSG766T.js +1 -0
- package/editor-web/assets/usecaseDiagram-WPOLBNNX-tkrdKUJB.js +328 -0
- package/editor-web/assets/vennDiagram-Q3Y3IDCW-Ch4XbSnD.js +34 -0
- package/editor-web/assets/video-DXFiCNGc.js +1 -0
- package/editor-web/assets/wardley-7MLQ67FV-Bynt7qNQ.js +1 -0
- package/editor-web/assets/wardleyDiagram-IVAIDKWA-DRuSgm_L.js +78 -0
- package/editor-web/assets/xychartDiagram-4URNHDU4-DctpvfkL.js +7 -0
- package/editor-web/index.html +7 -3
- package/package.json +21 -5
- package/dist/audio-text.js +0 -6
- package/dist/cloud-hearing.js +0 -2
- package/dist/commands/audio.js +0 -4
- package/dist/commands/inspect/contrast.js +0 -2
- package/dist/commands/inspect/fidelity.js +0 -2
- package/dist/commands/inspect/joins.js +0 -2
- package/dist/commands/inspect/motion.js +0 -4
- package/dist/commands/inspect/sheet.js +0 -3
- package/dist/commands/inspect/timeline.js +0 -3
- package/dist/commands/model.js +0 -3
- package/dist/commands/reference-text.js +0 -5
- package/dist/commands/reference.js +0 -2
- package/dist/commands/scenery-input.js +0 -2
- package/dist/commands/scenery.js +0 -7
- package/dist/commands/sheet.js +0 -8
- package/dist/commands/site.js +0 -4
- package/dist/commands/slides.js +0 -3
- package/dist/commands/voice.js +0 -3
- package/dist/commands/words-text.js +0 -6
- package/dist/commands/words.js +0 -2
- package/dist/node_modules/@allyhub/build/dist/sheet-code.d.ts +0 -34
- package/dist/node_modules/@allyhub/build/dist/sheet-code.js +0 -2
- package/dist/node_modules/@allyhub/chart/dist/chart-file.d.ts +0 -11
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.d.ts +0 -33
- package/dist/node_modules/@allyhub/chart/dist/chart.d.ts +0 -206
- package/dist/node_modules/@allyhub/chart/dist/embedded.d.ts +0 -15
- package/dist/node_modules/@allyhub/chart/dist/index.d.ts +0 -6
- package/dist/node_modules/@allyhub/chart/dist/svg.d.ts +0 -22
- package/dist/node_modules/@allyhub/check/dist/generated.js +0 -2
- package/dist/node_modules/@allyhub/check/dist/plans.js +0 -3
- package/dist/node_modules/@allyhub/check/dist/scenery.js +0 -2
- package/dist/node_modules/@allyhub/doc/dist/chart.d.ts +0 -65
- package/dist/node_modules/@allyhub/doc/dist/color.d.ts +0 -6
- package/dist/node_modules/@allyhub/doc/dist/columns.d.ts +0 -6
- package/dist/node_modules/@allyhub/doc/dist/component.d.ts +0 -27
- package/dist/node_modules/@allyhub/doc/dist/docx.d.ts +0 -39
- package/dist/node_modules/@allyhub/doc/dist/html.d.ts +0 -49
- package/dist/node_modules/@allyhub/doc/dist/index.d.ts +0 -13
- package/dist/node_modules/@allyhub/doc/dist/markdown.d.ts +0 -13
- package/dist/node_modules/@allyhub/doc/dist/math.d.ts +0 -11
- package/dist/node_modules/@allyhub/doc/dist/model.d.ts +0 -280
- package/dist/node_modules/@allyhub/doc/dist/paper.d.ts +0 -39
- package/dist/node_modules/@allyhub/doc/dist/parse.d.ts +0 -24
- package/dist/node_modules/@allyhub/doc/dist/patch.d.ts +0 -8
- package/dist/node_modules/@allyhub/doc/dist/title.d.ts +0 -23
- package/dist/node_modules/@allyhub/doc/dist/write.d.ts +0 -18
- package/dist/node_modules/@allyhub/export/dist/deck-pptx.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/measure/dist/contrast.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/cuts.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/facts.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/fidelity.js +0 -3
- package/dist/node_modules/@allyhub/measure/dist/overlay.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/recording-report.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/reference/piece.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/reference/sets.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/reference/text.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/reference/video.js +0 -2
- package/dist/node_modules/@allyhub/measure/dist/sound-report.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/hear.d.ts +0 -41
- package/dist/node_modules/@allyhub/media/dist/asr/hear.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/languages.d.ts +0 -9
- package/dist/node_modules/@allyhub/media/dist/asr/languages.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/parakeet.d.ts +0 -54
- package/dist/node_modules/@allyhub/media/dist/asr/parakeet.js +0 -7
- package/dist/node_modules/@allyhub/media/dist/asr/protocol.d.ts +0 -20
- package/dist/node_modules/@allyhub/media/dist/asr/protocol.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/transcribe.d.ts +0 -50
- package/dist/node_modules/@allyhub/media/dist/asr/transcribe.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/windows.d.ts +0 -34
- package/dist/node_modules/@allyhub/media/dist/asr/windows.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/words.d.ts +0 -7
- package/dist/node_modules/@allyhub/media/dist/asr/words.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/worker.d.ts +0 -2
- package/dist/node_modules/@allyhub/media/dist/asr/worker.js +0 -4
- package/dist/node_modules/@allyhub/media/dist/local.d.ts +0 -39
- package/dist/node_modules/@allyhub/media/dist/local.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/ocr/lines.d.ts +0 -36
- package/dist/node_modules/@allyhub/media/dist/ocr/lines.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/ocr/tesseract.d.ts +0 -62
- package/dist/node_modules/@allyhub/media/dist/ocr/tesseract.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/ocr/text.d.ts +0 -36
- package/dist/node_modules/@allyhub/media/dist/ocr/text.js +0 -4
- package/dist/node_modules/@allyhub/media/dist/ocr/worker.d.ts +0 -2
- package/dist/node_modules/@allyhub/media/dist/ocr/worker.js +0 -5
- package/dist/node_modules/@allyhub/media/dist/vision/common.d.ts +0 -32
- package/dist/node_modules/@allyhub/media/dist/vision/common.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/faces.d.ts +0 -18
- package/dist/node_modules/@allyhub/media/dist/vision/faces.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/index-media.d.ts +0 -48
- package/dist/node_modules/@allyhub/media/dist/vision/index-media.js +0 -3
- package/dist/node_modules/@allyhub/media/dist/vision/matte.d.ts +0 -16
- package/dist/node_modules/@allyhub/media/dist/vision/matte.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/mattes.d.ts +0 -109
- package/dist/node_modules/@allyhub/media/dist/vision/mattes.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/models.d.ts +0 -16
- package/dist/node_modules/@allyhub/media/dist/vision/models.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/protocol.d.ts +0 -51
- package/dist/node_modules/@allyhub/media/dist/vision/protocol.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/run.d.ts +0 -12
- package/dist/node_modules/@allyhub/media/dist/vision/run.js +0 -4
- package/dist/node_modules/@allyhub/media/dist/vision/runtime.d.ts +0 -16
- package/dist/node_modules/@allyhub/media/dist/vision/runtime.js +0 -8
- package/dist/node_modules/@allyhub/media/dist/vision/status.d.ts +0 -24
- package/dist/node_modules/@allyhub/media/dist/vision/status.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/track.d.ts +0 -54
- package/dist/node_modules/@allyhub/media/dist/vision/track.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/worker.d.ts +0 -2
- package/dist/node_modules/@allyhub/media/dist/vision/worker.js +0 -5
- package/dist/node_modules/@allyhub/media/dist/vision/yunet.d.ts +0 -35
- package/dist/node_modules/@allyhub/media/dist/vision/yunet.js +0 -2
- package/dist/node_modules/@allyhub/media/dist/worker-process.d.ts +0 -3
- package/dist/node_modules/@allyhub/media/dist/worker-process.js +0 -2
- package/dist/node_modules/@allyhub/ooxml/dist/brightness.d.ts +0 -31
- package/dist/node_modules/@allyhub/ooxml/dist/color.d.ts +0 -33
- package/dist/node_modules/@allyhub/ooxml/dist/enums.d.ts +0 -13
- package/dist/node_modules/@allyhub/ooxml/dist/ext.d.ts +0 -79
- package/dist/node_modules/@allyhub/ooxml/dist/generated/enums.d.ts +0 -132
- package/dist/node_modules/@allyhub/ooxml/dist/generated/presets.d.ts +0 -28
- package/dist/node_modules/@allyhub/ooxml/dist/generated/spec.d.ts +0 -4708
- package/dist/node_modules/@allyhub/ooxml/dist/geometry/index.d.ts +0 -57
- package/dist/node_modules/@allyhub/ooxml/dist/index.d.ts +0 -10
- package/dist/node_modules/@allyhub/ooxml/dist/mce.d.ts +0 -12
- package/dist/node_modules/@allyhub/ooxml/dist/node.d.ts +0 -111
- package/dist/node_modules/@allyhub/ooxml/dist/ns.d.ts +0 -45
- package/dist/node_modules/@allyhub/ooxml/dist/opc.d.ts +0 -48
- package/dist/node_modules/@allyhub/ooxml/dist/report.d.ts +0 -45
- package/dist/node_modules/@allyhub/ooxml/dist/xml.d.ts +0 -28
- package/dist/node_modules/@allyhub/project/dist/deck-keys.js +0 -2
- package/dist/node_modules/@allyhub/project/dist/deck-measure.js +0 -2
- package/dist/node_modules/@allyhub/project/dist/deck-pool.js +0 -2
- package/dist/node_modules/@allyhub/project/dist/says.js +0 -2
- package/dist/node_modules/@allyhub/project/dist/scenery.js +0 -2
- package/dist/node_modules/@allyhub/project/dist/stretch.js +0 -2
- package/dist/node_modules/@allyhub/render/dist/doc/fonts.js +0 -4
- package/dist/node_modules/@allyhub/render/dist/doc/index.js +0 -2
- package/dist/node_modules/@allyhub/render/dist/doc/pages.js +0 -32
- package/dist/node_modules/@allyhub/render/dist/doc/print.js +0 -41
- package/dist/node_modules/@allyhub/render/dist/webp.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/console.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/env.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/errors.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/inspect.js +0 -3
- package/dist/node_modules/@allyhub/runtime/dist/mix-plan.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/reads.js +0 -2
- package/dist/node_modules/@allyhub/runtime/dist/stage.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/sheet/dist/address.d.ts +0 -32
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.d.ts +0 -23
- package/dist/node_modules/@allyhub/sheet/dist/api/charts.d.ts +0 -204
- package/dist/node_modules/@allyhub/sheet/dist/api/code.d.ts +0 -19
- package/dist/node_modules/@allyhub/sheet/dist/api/hint.d.ts +0 -3
- package/dist/node_modules/@allyhub/sheet/dist/api/index.d.ts +0 -8
- package/dist/node_modules/@allyhub/sheet/dist/api/page.d.ts +0 -83
- package/dist/node_modules/@allyhub/sheet/dist/api/rectangles.d.ts +0 -4
- package/dist/node_modules/@allyhub/sheet/dist/api/rules.d.ts +0 -170
- package/dist/node_modules/@allyhub/sheet/dist/api/styles.d.ts +0 -117
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.d.ts +0 -362
- package/dist/node_modules/@allyhub/sheet/dist/arrange.d.ts +0 -68
- package/dist/node_modules/@allyhub/sheet/dist/calc/analyse.d.ts +0 -27
- package/dist/node_modules/@allyhub/sheet/dist/calc/coerce.d.ts +0 -23
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.d.ts +0 -199
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/aggregate.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/convert.d.ts +0 -4
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/criteria.d.ts +0 -15
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/database.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/date.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/define.d.ts +0 -95
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/delimiters.d.ts +0 -16
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/distributions.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/dynamic.d.ts +0 -19
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/finance.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/index.d.ts +0 -17
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/info.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/kernels.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/logical.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/lookup.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/maths.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/modern.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/special.d.ts +0 -29
- package/dist/node_modules/@allyhub/sheet/dist/calc/functions/text.d.ts +0 -2
- package/dist/node_modules/@allyhub/sheet/dist/calc/graph.d.ts +0 -38
- package/dist/node_modules/@allyhub/sheet/dist/calc/indexes.d.ts +0 -19
- package/dist/node_modules/@allyhub/sheet/dist/calc/remote.d.ts +0 -49
- package/dist/node_modules/@allyhub/sheet/dist/calc/server.d.ts +0 -82
- package/dist/node_modules/@allyhub/sheet/dist/calc/types.d.ts +0 -55
- package/dist/node_modules/@allyhub/sheet/dist/chart.d.ts +0 -52
- package/dist/node_modules/@allyhub/sheet/dist/check.d.ts +0 -15
- package/dist/node_modules/@allyhub/sheet/dist/diff.d.ts +0 -79
- package/dist/node_modules/@allyhub/sheet/dist/edit.d.ts +0 -154
- package/dist/node_modules/@allyhub/sheet/dist/export.d.ts +0 -32
- package/dist/node_modules/@allyhub/sheet/dist/file.d.ts +0 -19
- package/dist/node_modules/@allyhub/sheet/dist/files.d.ts +0 -24
- package/dist/node_modules/@allyhub/sheet/dist/fill.d.ts +0 -30
- package/dist/node_modules/@allyhub/sheet/dist/filter.d.ts +0 -29
- package/dist/node_modules/@allyhub/sheet/dist/format.d.ts +0 -15
- package/dist/node_modules/@allyhub/sheet/dist/formula/ast.d.ts +0 -113
- package/dist/node_modules/@allyhub/sheet/dist/formula/move.d.ts +0 -6
- package/dist/node_modules/@allyhub/sheet/dist/formula/parse.d.ts +0 -4
- package/dist/node_modules/@allyhub/sheet/dist/formula/print.d.ts +0 -6
- package/dist/node_modules/@allyhub/sheet/dist/formula/rewrite.d.ts +0 -65
- package/dist/node_modules/@allyhub/sheet/dist/formula/walk.d.ts +0 -6
- package/dist/node_modules/@allyhub/sheet/dist/generated.d.ts +0 -46
- package/dist/node_modules/@allyhub/sheet/dist/html.d.ts +0 -82
- package/dist/node_modules/@allyhub/sheet/dist/import.d.ts +0 -11
- package/dist/node_modules/@allyhub/sheet/dist/index.d.ts +0 -42
- package/dist/node_modules/@allyhub/sheet/dist/inspect.d.ts +0 -25
- package/dist/node_modules/@allyhub/sheet/dist/paginate.d.ts +0 -98
- package/dist/node_modules/@allyhub/sheet/dist/patch.d.ts +0 -4
- package/dist/node_modules/@allyhub/sheet/dist/profile.d.ts +0 -30
- package/dist/node_modules/@allyhub/sheet/dist/rules.d.ts +0 -56
- package/dist/node_modules/@allyhub/sheet/dist/scenario.d.ts +0 -42
- package/dist/node_modules/@allyhub/sheet/dist/series.d.ts +0 -10
- package/dist/node_modules/@allyhub/sheet/dist/sort.d.ts +0 -24
- package/dist/node_modules/@allyhub/sheet/dist/structure.d.ts +0 -38
- package/dist/node_modules/@allyhub/sheet/dist/table-style.d.ts +0 -32
- package/dist/node_modules/@allyhub/sheet/dist/table-styles.d.ts +0 -3
- package/dist/node_modules/@allyhub/sheet/dist/validate.d.ts +0 -26
- package/dist/node_modules/@allyhub/sheet/dist/values.d.ts +0 -67
- package/dist/node_modules/@allyhub/sheet/dist/workbook.d.ts +0 -324
- package/dist/node_modules/@allyhub/sheet/dist/write.d.ts +0 -5
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.d.ts +0 -53
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/colors.d.ts +0 -19
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/formula.d.ts +0 -31
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/functions.d.ts +0 -15
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.d.ts +0 -49
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/index.d.ts +0 -5
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/numfmt.d.ts +0 -8
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.d.ts +0 -159
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/sax.d.ts +0 -23
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.d.ts +0 -25
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.d.ts +0 -3
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.d.ts +0 -23
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/xml.d.ts +0 -28
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/zip.d.ts +0 -40
- package/dist/node_modules/@allyhub/slides-core/dist/animation.d.ts +0 -129
- package/dist/node_modules/@allyhub/slides-core/dist/api.d.ts +0 -730
- package/dist/node_modules/@allyhub/slides-core/dist/capabilities.d.ts +0 -18
- package/dist/node_modules/@allyhub/slides-core/dist/chart-api.d.ts +0 -202
- package/dist/node_modules/@allyhub/slides-core/dist/check.d.ts +0 -7
- package/dist/node_modules/@allyhub/slides-core/dist/code.d.ts +0 -33
- package/dist/node_modules/@allyhub/slides-core/dist/components.d.ts +0 -31
- package/dist/node_modules/@allyhub/slides-core/dist/enums.d.ts +0 -329
- package/dist/node_modules/@allyhub/slides-core/dist/file.d.ts +0 -131
- package/dist/node_modules/@allyhub/slides-core/dist/identity.d.ts +0 -17
- package/dist/node_modules/@allyhub/slides-core/dist/index.d.ts +0 -25
- package/dist/node_modules/@allyhub/slides-core/dist/lang.d.ts +0 -6
- package/dist/node_modules/@allyhub/slides-core/dist/measure.d.ts +0 -34
- package/dist/node_modules/@allyhub/slides-core/dist/merge.d.ts +0 -58
- package/dist/node_modules/@allyhub/slides-core/dist/model.d.ts +0 -293
- package/dist/node_modules/@allyhub/slides-core/dist/office.d.ts +0 -84
- package/dist/node_modules/@allyhub/slides-core/dist/path.d.ts +0 -6
- package/dist/node_modules/@allyhub/slides-core/dist/placeholders.d.ts +0 -7
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.d.ts +0 -202
- package/dist/node_modules/@allyhub/slides-core/dist/script.d.ts +0 -45
- package/dist/node_modules/@allyhub/slides-core/dist/stage.d.ts +0 -61
- package/dist/node_modules/@allyhub/slides-core/dist/strict.d.ts +0 -7
- package/dist/node_modules/@allyhub/slides-core/dist/theme.d.ts +0 -72
- package/dist/node_modules/@allyhub/slides-core/dist/units.d.ts +0 -62
- package/dist/node_modules/@allyhub/slides-core/dist/values.d.ts +0 -7
- package/dist/node_modules/@allyhub/stage/dist/bakes.js +0 -4
- package/dist/node_modules/@allyhub/stage/dist/graphics.js +0 -2
- package/dist/node_modules/@allyhub/stage/dist/scenery-page.js +0 -12
- package/dist/node_modules/@allyhub/stage/dist/scenery.js +0 -2
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/runtime.js +0 -79
- package/dist/node_modules/@allyhub/video-core/dist/anchors.d.ts +0 -164
- package/dist/node_modules/@allyhub/video-core/dist/audio-types.d.ts +0 -148
- package/dist/node_modules/@allyhub/video-core/dist/backdrop.d.ts +0 -87
- package/dist/node_modules/@allyhub/video-core/dist/captions.d.ts +0 -122
- package/dist/node_modules/@allyhub/video-core/dist/component.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/contrast.d.ts +0 -98
- package/dist/node_modules/@allyhub/video-core/dist/cut-report.d.ts +0 -77
- package/dist/node_modules/@allyhub/video-core/dist/edit.d.ts +0 -77
- package/dist/node_modules/@allyhub/video-core/dist/edits.d.ts +0 -163
- package/dist/node_modules/@allyhub/video-core/dist/export.d.ts +0 -97
- package/dist/node_modules/@allyhub/video-core/dist/export.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/fact.d.ts +0 -1179
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.d.ts +0 -168
- package/dist/node_modules/@allyhub/video-core/dist/formats.d.ts +0 -205
- 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/index.d.ts +0 -41
- package/dist/node_modules/@allyhub/video-core/dist/look.d.ts +0 -66
- package/dist/node_modules/@allyhub/video-core/dist/measure.d.ts +0 -563
- package/dist/node_modules/@allyhub/video-core/dist/media.d.ts +0 -226
- package/dist/node_modules/@allyhub/video-core/dist/media.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/messages.d.ts +0 -88
- package/dist/node_modules/@allyhub/video-core/dist/motion.d.ts +0 -56
- package/dist/node_modules/@allyhub/video-core/dist/music.d.ts +0 -111
- package/dist/node_modules/@allyhub/video-core/dist/piece.d.ts +0 -1154
- package/dist/node_modules/@allyhub/video-core/dist/placement.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/render-types.d.ts +0 -49
- package/dist/node_modules/@allyhub/video-core/dist/schema.d.ts +0 -350
- package/dist/node_modules/@allyhub/video-core/dist/script-edit.d.ts +0 -180
- package/dist/node_modules/@allyhub/video-core/dist/script.d.ts +0 -76
- package/dist/node_modules/@allyhub/video-core/dist/script.js +0 -2
- package/dist/node_modules/@allyhub/video-core/dist/seams.d.ts +0 -214
- package/dist/node_modules/@allyhub/video-core/dist/sound-under.d.ts +0 -72
- package/dist/node_modules/@allyhub/video-core/dist/source.d.ts +0 -7
- package/dist/node_modules/@allyhub/video-core/dist/speech.d.ts +0 -83
- package/dist/node_modules/@allyhub/video-core/dist/timeline.d.ts +0 -631
- package/dist/node_modules/@allyhub/video-core/dist/timing.d.ts +0 -88
- package/dist/node_modules/@allyhub/video-core/dist/transcript.d.ts +0 -288
- package/dist/node_modules/@allyhub/video-core/dist/transition.d.ts +0 -300
- package/dist/node_modules/@allyhub/video-core/dist/voice.d.ts +0 -175
- package/dist/text/timeline-text.js +0 -2
- package/editor-web/assets/abnfDiagram-WEYOIA3C-B9SmmTJt.js +0 -1
- package/editor-web/assets/architecture-WOLXFQ4H-m-T100yu.js +0 -1
- package/editor-web/assets/architectureDiagram-ZHVYKT53-B5nwfRgH.js +0 -36
- package/editor-web/assets/blockDiagram-RJAE7QA3-ClawtW7w.js +0 -140
- package/editor-web/assets/c4Diagram-XDPPPE54-CFHQpxmY.js +0 -38
- package/editor-web/assets/calc-worker-BTNuOUVJ.js +0 -158
- package/editor-web/assets/channel-hhT2g1yB.js +0 -1
- package/editor-web/assets/choice-BJc3Tv5F.js +0 -10
- package/editor-web/assets/chunk-2E7WHVMD-CoQrt8De.js +0 -88
- package/editor-web/assets/chunk-4EMNKR2T-Iy5ZP2hH.js +0 -1
- package/editor-web/assets/chunk-55XCU76K-DsS8sEfz.js +0 -1
- package/editor-web/assets/chunk-7S6XSTFO-Co220fFP.js +0 -2
- package/editor-web/assets/chunk-AQDTSKZB-JIGZAIpF.js +0 -72
- package/editor-web/assets/chunk-DSNLSHJZ-Ror_NzZx.js +0 -129
- package/editor-web/assets/chunk-HAGFOTED-C07qbJaC.js +0 -62
- package/editor-web/assets/chunk-HNE4Q36P-CM3bprQy.js +0 -1
- package/editor-web/assets/chunk-NQOKRVIF-ipM1cuU7.js +0 -213
- package/editor-web/assets/chunk-UHW7PFBP-CA8McMqW.js +0 -1
- package/editor-web/assets/chunk-VQ5W62QI-DEDvdgPj.js +0 -1
- package/editor-web/assets/chunk-WQQL4CDK-h5ZO7LF7.js +0 -10
- package/editor-web/assets/chunk-YZO67HFG-yC3xdjnt.js +0 -1
- package/editor-web/assets/chunk-ZAUX2LTX-3rRCWRvD.js +0 -1
- package/editor-web/assets/chunk-ZCHMQSOR-DK_PLi39.js +0 -2
- package/editor-web/assets/classDiagram-v2-4MYWR3UA-B9pB-HTm.js +0 -217
- package/editor-web/assets/cynefin-EF2NZ3EQ-CSd3PDdQ.js +0 -1
- package/editor-web/assets/cynefinDiagram-WF24UDRP-BBCequ3T.js +0 -62
- package/editor-web/assets/dagre-NK4GIZVX-C7ZOWX5t.js +0 -4
- package/editor-web/assets/diagram-CBK3MWTC-CQVvlSNo.js +0 -24
- package/editor-web/assets/diagram-I5XIIV2D-BCkke5x3.js +0 -24
- package/editor-web/assets/diagram-ODIL2UCW-DDWQXIlX.js +0 -30
- package/editor-web/assets/diagram-PFBEJUXE-C31QlFzr.js +0 -3
- package/editor-web/assets/diagram-RJA3I4VV-DUXAFmI_.js +0 -41
- package/editor-web/assets/diagram-TYUNFSNR-BCxuoEs9.js +0 -200
- package/editor-web/assets/dist-BRuoygB7.js +0 -2
- package/editor-web/assets/dist-CK42vCmN.js +0 -550
- package/editor-web/assets/dist-C_buDsM-.js +0 -36
- package/editor-web/assets/dist-DNcXHhzn.js +0 -37
- package/editor-web/assets/dist-HxiPpGXi.js +0 -10
- package/editor-web/assets/dist-PF3VMsK7.js +0 -1
- package/editor-web/assets/ebnfDiagram-V4P3TTPT-Drbe1R2R.js +0 -1
- package/editor-web/assets/elk-QONTBCTQ-Bqwuc5U-.js +0 -27
- package/editor-web/assets/erDiagram-KYQIGQAA-lUcyPgf3.js +0 -99
- package/editor-web/assets/eventmodeling-K75KTNOO-BfxFVok7.js +0 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-FJVml4lT.js +0 -1
- package/editor-web/assets/ganttDiagram-R7GPNTJY-AYc1JnE_.js +0 -292
- package/editor-web/assets/gitGraph-VSP46ZUC-Z_2ysYZF.js +0 -1
- package/editor-web/assets/gitGraphDiagram-PDYL7XHY-CB2O1LZ6.js +0 -106
- package/editor-web/assets/hint-BwGc32IE.js +0 -1
- package/editor-web/assets/index-BQKSbBSy.js +0 -69
- package/editor-web/assets/index-CfD80QPx.css +0 -2
- package/editor-web/assets/info-OHQRW6UA-BPePkERU.js +0 -1
- package/editor-web/assets/infoDiagram-MVDRKAX5-CNluCREj.js +0 -2
- package/editor-web/assets/ishikawaDiagram-HPEHV2GE-DIBDBol9.js +0 -70
- package/editor-web/assets/journeyDiagram-BOSHW7O7-C4Hc63C8.js +0 -139
- package/editor-web/assets/kanban-definition-FNSA4HC5-BShCYR9Q.js +0 -89
- package/editor-web/assets/mermaid-parser.core-KGVt2icR.js +0 -7
- package/editor-web/assets/mermaid.core-CVH2hRmI.js +0 -44
- package/editor-web/assets/mindmap-definition-6OY57UG3-C1mo9OeK.js +0 -98
- package/editor-web/assets/packet-JDAUHWVQ-B7YpYnvD.js +0 -1
- package/editor-web/assets/pegDiagram-ECIUJNBX-Es99bVEq.js +0 -1
- package/editor-web/assets/pie-XZMESJXO-xTUp8UcP.js +0 -1
- package/editor-web/assets/pieDiagram-GNMPY74T-CD91pLk4.js +0 -39
- package/editor-web/assets/quadrantDiagram-D57K4MC3-CSnvxc94.js +0 -7
- package/editor-web/assets/radar-ABXABTNO-Dj-t0L18.js +0 -1
- package/editor-web/assets/railroad-I3PHUGI6-BK32uCwU.js +0 -1
- package/editor-web/assets/railroad-abnf-LNEFI6M7-D5R8k6d0.js +0 -1
- package/editor-web/assets/railroad-ebnf-DWYD2UWJ-Crm1KEAC.js +0 -1
- package/editor-web/assets/railroad-peg-JR7BVNR7-BILXac49.js +0 -1
- package/editor-web/assets/railroadDiagram-Y72NRBL7-CevyjvbY.js +0 -1
- package/editor-web/assets/react-BSSSHUyV.js +0 -101
- package/editor-web/assets/requirementDiagram-EQYSW5RA-B5N8Q9VV.js +0 -84
- package/editor-web/assets/sankeyDiagram-SY24JHO5-bCTsxF1A.js +0 -40
- package/editor-web/assets/sequenceDiagram-BLEHNHQU-M37m0sEI.js +0 -169
- package/editor-web/assets/stateDiagram-v2-A6IESKWZ-BDIn7XwV.js +0 -291
- package/editor-web/assets/svg-BiObwMnL.js +0 -1
- package/editor-web/assets/swatch-CwskGSEY.js +0 -105
- package/editor-web/assets/swimlanes-B3ENRKFQ-DIU1TlDI.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-DPM008dB.js +0 -8
- package/editor-web/assets/tabs-uHwPMprC.js +0 -1
- package/editor-web/assets/timeline-definition-JXYKGLGB-C0x4clqy.js +0 -120
- package/editor-web/assets/treeView-D4JQ5SDB-C9lm0KTt.js +0 -1
- package/editor-web/assets/treemap-SAJKECNS-BMH4lQc7.js +0 -1
- package/editor-web/assets/usecaseDiagram-WPOLBNNX-BhltpBsJ.js +0 -328
- package/editor-web/assets/vennDiagram-Q3Y3IDCW-D3qN9Kpt.js +0 -34
- package/editor-web/assets/wardley-7MLQ67FV-C4k02DvU.js +0 -1
- package/editor-web/assets/wardleyDiagram-IVAIDKWA-dhpBDNqg.js +0 -78
- package/editor-web/assets/xychartDiagram-4URNHDU4-0yEarQ-o.js +0 -7
- /package/dist/{commands → node_modules/@allyhub/3d-extension/dist/cli}/scenery-text.js +0 -0
- /package/dist/node_modules/@allyhub/{check/dist/result.js → build/dist/stage-route.js} +0 -0
- /package/dist/node_modules/@allyhub/{render/dist/doc → doc-print/dist}/drawn.js +0 -0
- /package/dist/node_modules/@allyhub/{render/dist/doc → doc-print/dist}/pdf.js +0 -0
- /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/node_modules/@allyhub/{runtime → image-draw}/dist/contrast.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/fonts.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/guards.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/pictures.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime → image-draw}/dist/styles.js +0 -0
- /package/dist/node_modules/@allyhub/{runtime/dist/bridge.js → image-extension/dist/page.js} +0 -0
- /package/dist/node_modules/@allyhub/{render → image-render}/dist/pdf.js +0 -0
- /package/dist/node_modules/@allyhub/{render → image-render}/dist/png.js +0 -0
- /package/dist/node_modules/@allyhub/{render → measure}/dist/image.js +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/{runtime/dist → piece/dist/page}/locate.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/node_modules/@allyhub/{stage/dist/scenery-solve.js → scenery-host/dist/stage/solve.js} +0 -0
- /package/dist/node_modules/@allyhub/{export → slides-extension}/dist/deck-fonts.js +0 -0
- /package/dist/node_modules/@allyhub/{dev-server/dist/fonts.js → slides-extension/dist/font-faces.js} +0 -0
- /package/dist/node_modules/@allyhub/{dev-server → video-extension}/dist/sound.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/cut-sheet.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/flat.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/loop.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/compare.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/folder.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/interpret.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/reference/sections.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/seams.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/sound-measures.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/still.js +0 -0
- /package/dist/node_modules/@allyhub/{measure → video-measure}/dist/version-voice.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{SHAPE_TYPES as ee}from"@allyhub/ooxml/enums";import{evaluate as te,presetAdjustments as ne}from"@allyhub/ooxml/geometry";import{as as H,parseXml as oe}from"@allyhub/ooxml";import{strFromU8 as ae}from"fflate";import{isConnectorGeometry as ie,pathSteps as re}from"@allyhub/slides-core";import{fillOf as I,lineOf as B,say as b,shadowOf as W,styleOf as V}from"./common.js";import{chartOf as se}from"./chart.js";import{tableOf as ce}from"./table.js";import{BODY_DEFAULTS as de,bodyOf as le}from"./text.js";const Z=new Set(["title","ctrTitle","subTitle","body","pic","media","obj","dt","ftr","sldNum"]),pe=new Set(ee),q={place:e=>e};function z(e){const r=e?.one("a:off"),n=e?.one("a:ext");if(!(!e||!r||!n))return{frame:{left:r.attr("x")??0,top:r.attr("y")??0,width:n.attr("cx")??0,height:n.attr("cy")??0},rotation:e.attrOr("rot")/6e4%360,flip:{h:e.attrOr("flipH"),v:e.attrOr("flipV")}}}function D(e){if(!e)return{};const r=Math.round((e.rotation%360+360)%360*1e3)/1e3;return{frame:{left:Math.round(e.frame.left),top:Math.round(e.frame.top),width:Math.round(e.frame.width),height:Math.round(e.frame.height)},...r===0||r===360?{}:{rotation:r},...e.flip.h||e.flip.v?{flip:{...e.flip.h?{h:!0}:{},...e.flip.v?{v:!0}:{}}}:{}}}function fe(e,r){const n=(i,g)=>e?.one(i)?.attr(g)??0,o=(i,g)=>e?.one(i)?.attr(g)??0,d=o("a:chExt","cx")===0?1:o("a:ext","cx")/o("a:chExt","cx"),t=o("a:chExt","cy")===0?1:o("a:ext","cy")/o("a:chExt","cy"),s=(e?.attrOr("rot")??0)/6e4%360,h=e?.attrOr("flipH")??!1,l=e?.attrOr("flipV")??!1,w=n("a:off","x")+o("a:ext","cx")/2,c=n("a:off","y")+o("a:ext","cy")/2;return i=>{const g=i.frame.width*d,p=i.frame.height*t;let f=n("a:off","x")+(i.frame.left-n("a:chOff","x"))*d+g/2,u=n("a:off","y")+(i.frame.top-n("a:chOff","y"))*t+p/2,a=i.rotation;const y={...i.flip};if(h&&(f=2*w-f,a=-a,y.h=!y.h),l&&(u=2*c-u,a=-a,y.v=!y.v),s!==0){const v=s*Math.PI/180,[S,m]=[f-w,u-c];f=w+S*Math.cos(v)-m*Math.sin(v),u=c+S*Math.sin(v)+m*Math.cos(v),a+=s}return r.place({frame:{left:f-g/2,top:u-p/2,width:g,height:p},rotation:a,flip:y})}}function ue(e,r,n){const o=a=>(a?.all("a:gd")??[]).map(y=>[y.attr("name")??"",y.attr("fmla")??""]),d=o(e.one("a:avLst")),t=o(e.one("a:gdLst"));e.one("a:ahLst")?.skip("a freeform's handles: editing aids"),e.one("a:cxnLst")?.skip("a freeform's connection sites: editing aids"),e.one("a:rect")?.skip("a freeform's text rectangle: its text takes the shape's box");const s=a=>H(a).all("a:pt").flatMap(y=>[String(y.attr("x")??"0"),String(y.attr("y")??"0")]),h={"a:moveTo":"M","a:lnTo":"L","a:quadBezTo":"Q","a:cubicBezTo":"C","a:close":"Z","a:arcTo":"A"},l=(e.one("a:pathLst")?.all("a:path")??[]).map(a=>{const y=a.kids().map(m=>{if(m.use(),m.key==="a:arcTo"){const x=m;return["A",...["wR","hR","stAng","swAng"].map(j=>String(x.attr(j)??"0"))].join(" ")}return[h[m.key]??"Z",...s(m)].join(" ")}),v=a.attr("fill"),S=a.attr("stroke");return a.attr("extrusionOk"),{...a.attr("w")?{w:a.attr("w")}:{},...a.attr("h")?{h:a.attr("h")}:{},...v===void 0||v==="norm"?{}:{fill:v},...S===!1?{stroke:!1}:{},d:y.join(" ")}});if(l.length===0)return;l.some(a=>a.fill!==void 0||a.stroke===!1)&&b(n,"approximated","a:path@fill","a freeform's paths are drawn alike: filled and outlined");const w=l[0]?.w??0,c=l[0]?.h??0,i=w>0&&c>0&&l.every(a=>(a.w??0)===w&&(a.h??0)===c),g=i?w:r&&r.width>0?r.width:w>0?w:1,p=i?c:r&&r.height>0?r.height:c>0?c:1,f=te({av:d,gd:t,paths:l.map(a=>({d:a.d,...a.w?{w:a.w}:{},...a.h?{h:a.h}:{}}))},g,p),u=re(f.paths.map(a=>a.d).join(" "));return u?{w:g,h:p,steps:u}:void 0}function he(e,r,n){const o=new Map((r?.all("a:gd")??[]).map(s=>[s.attr("name")??"",s.attr("fmla")??""]));if(o.size===0)return;const d=ne(e);for(const s of o.keys())d.some(h=>h.name===s)||b(n,"unread","a:gd@name",`${e} has no adjustment ${s}`);return d.map(s=>{const h=o.get(s.name),l=h===void 0?NaN:Number(/^val\s+(-?[\d.]+)$/u.exec(h.trim())?.[1]);return h!==void 0&&Number.isNaN(l)&&b(n,"approximated","a:gd@fmla",`an adjustment by a formula (${h}) is the preset's own`),(Number.isNaN(l)?s.value:l)/1e5})}function E(e,r){const n=e?.attr("name")??"",o=e?.attr("id"),d=e?.attr("descr");e?.attr("hidden")===!0&&b(r,"cannot-hold","p:cNvPr@hidden","a shape hidden on its slide"),e?.attr("title")&&b(r,"cannot-hold","p:cNvPr@title","an alternative text's title");for(const s of["a:hlinkClick","a:hlinkHover"]){const h=e?.one(s);if(h?.attr("action")==="ppaction://media"){h.consume();continue}h&&(b(r,"cannot-hold",s,"a link on a whole shape"),h.consume())}return{name:n,...o===void 0?{}:{id:String(o)},...d?{alt:d}:{}}}export function shapesOf(e,r,n=q){const o=[];if(!e)return o;for(const d of e.kids())switch(d.key){case"p:nvGrpSpPr":case"p:grpSpPr":n===q&&d.consume();break;case"p:sp":o.push(...be(d,r,n));break;case"p:cxnSp":o.push(...we(d,r,n));break;case"p:pic":o.push(...K(d,r,n));break;case"p:graphicFrame":o.push(...ve(d,r,n));break;case"p:grpSp":o.push(...ke(d,r,n));break;case"p:contentPart":d.use(),b(r,"cannot-hold","p:contentPart","ink"),d.consume();break;default:break}return o}const C=(e,r,n)=>{const o=`${e.where} › "${n||"unnamed"}"`;return r.label(o),{...e,where:o}},me=["noGrp","noUngrp","noSelect","noChangeAspect","noEditPoints","noAdjustHandles","noChangeArrowheads","noChangeShapeType","noTextEdit","noCrop","noDrilldown"];function $(e,r){if(!e)return!1;const n=H(e),o=e.key!=="a:graphicFrameLocks",d=n.attr("noMove")===!0,t=n.attr("noResize")===!0,s=o&&n.attr("noRot")===!0;return n.ignore(me,"locks against editing in PowerPoint"),H(e).one("a:extLst")?.skip("a lock's extensions"),d&&t?!0:((d||t||s)&&b(r,"cannot-hold",`${e.key}@${[d&&"noMove",t&&"noResize",s&&"noRot"].filter(Boolean).join(",")}`,"a shape locked against some changes and not others: a deck locks moving, sizing and turning together"),!1)}const ge={};function be(e,r,n){e.use();const o=e.one("p:nvSpPr"),d=o?.one("p:cNvPr"),t=C(r,e,d?.el.attrs.find(P=>P.key==="name")?.value??""),s=E(d,t),h=o?.one("p:cNvSpPr");$(h?.one("a:spLocks"),t)&&(s.locked=!0);const l=h?.attr("txBox")===!0,w=o?.one("p:nvPr");w?.ignore(["isPhoto","userDrawn"],"a shape's origin in PowerPoint");const c=w?.one("p:ph"),i=e.one("p:spPr");i?.ignore(["bwMode"],"a shape's black and white printing mode");const g=z(i?.one("a:xfrm")),p=D(g&&n.place(g)),f=i?.one("a:prstGeom"),u=f?.attr("prst"),a=I(i,t),y=i?.one("a:ln"),v=B(y,t),S=W(i?.one("a:effectLst"),t),m=c||l?{}:V(e.one("p:style"),t);(c||l)&&e.one("p:style")?.skip("a placeholder's or a text box's style: its own properties are what it shows");const x=a?.group?n.fill:a;a?.group&&!n.fill&&b(t,"approximated","a:grpFill","a group's fill outside a group is none");const j=e.one("p:txBody"),G=c!==void 0&&!t.part.includes("/slides/")&&(c.attr("type")??"obj")!=="sldNum",_=j?le(j,c&&!t.part.includes("/slideMasters/")?ge:de,t,G):void 0,M={...s,kind:"autoshape",...p,...x?.fill!==void 0?{fill:x.fill}:x?.gradient?{}:c?{}:l?{fill:null}:m.fill!==void 0?{fill:m.fill}:m.gradient?{}:{fill:null},...(x?.fill_transparency??(x?void 0:m.fill_transparency))===void 0?{}:{fill_transparency:x?.fill_transparency??m.fill_transparency??0},...x?.gradient??(x?void 0:m.gradient)?{gradient:x?.gradient??m.gradient}:{},...S??m.shadow?{shadow:S??m.shadow}:{},...v.line!==void 0?{line:v.line}:c?{}:l?{}:{line:m.line??null},...(v.line_width??(c?void 0:m.line_width))===void 0?{}:{line_width:v.line_width??m.line_width},...(v.line_dash??m.line_dash)===void 0?{}:{line_dash:v.line_dash??m.line_dash},...(v.line_begin??m.line_begin)===void 0?{}:{line_begin:v.line_begin??m.line_begin},...(v.line_end??m.line_end)===void 0?{}:{line_end:v.line_end??m.line_end},...m.text_color===void 0?{}:{text_color:m.text_color},..._?{text:_}:{},...n.group===void 0?{}:{group:n.group}};if(c){const P=c.attr("type")??"obj",F=c.attr("idx")??0;if(c.ignore(["hasCustomPrompt"],"a placeholder's own prompt text"),c.attr("orient")==="vert"&&b(t,"cannot-hold","p:ph@orient","a vertical placeholder"),c.attr("sz"),P==="sldImg"||P==="hdr")return[];const N=Z.has(P)?P:P==="clipArt"||P==="chart"||P==="tbl"||P==="dgm"?"obj":"body";return Z.has(P)||b(t,"approximated","p:ph@type",`a ${P} placeholder is a${N==="obj"?"n object":" body"} placeholder`),u!==void 0&&u!=="rect"?[{...M,kind:"placeholder",placeholder:{type:N,idx:F},geometry:u,...U(u,f?.one("a:avLst"),t)}]:(f?.one("a:avLst"),[{...M,kind:"placeholder",placeholder:{type:N,idx:F}}])}const T=i?.one("a:custGeom"),L=T?ue(T,p.frame,t):void 0;T&&!L&&b(t,"approximated","a:custGeom","a freeform with no outline is a rectangle");const R=u!==void 0&&pe.has(u)?u:"rect";return[{...M,kind:l?"textbox":"autoshape",...L?{path:L}:{geometry:R},...u===void 0||L?{}:U(u,f?.one("a:avLst"),t)}]}const U=(e,r,n)=>{const o=he(e,r,n);return o?{adjustments:o}:{}};function we(e,r,n){e.use();const o=e.one("p:nvCxnSpPr"),d=o?.one("p:cNvPr"),t=C(r,e,d?.el.attrs.find(y=>y.key==="name")?.value??""),s=E(d,t),h=o?.one("p:cNvCxnSpPr");$(h?.one("a:cxnSpLocks"),t)&&(s.locked=!0);for(const y of["a:stCxn","a:endCxn"]){const v=h?.one(y);v&&(b(t,"cannot-hold",y,"a connector's end joined to a shape: it stays where it is"),v.consume())}o?.one("p:nvPr");const l=e.one("p:spPr");l?.ignore(["bwMode"],"a shape's black and white printing mode");const w=z(l?.one("a:xfrm")),c=l?.one("a:prstGeom"),i=c?.attr("prst")??"line",g=U(i,c?.one("a:avLst"),t),p=V(e.one("p:style"),t),f=B(l?.one("a:ln"),t),u=W(l?.one("a:effectLst"),t),a=ie(i);return a||b(t,"approximated","a:prstGeom@prst",`a connector of the ${i} preset is a shape of it with no fill`),[{...s,kind:"autoshape",geometry:i,...g,...D(w&&n.place(w)),...a?{}:{fill:null},line:f.line??p.line??null,...(f.line_width??p.line_width)===void 0?{}:{line_width:f.line_width??p.line_width},...(f.line_dash??p.line_dash)===void 0?{}:{line_dash:f.line_dash??p.line_dash},...(f.line_begin??p.line_begin)===void 0?{}:{line_begin:f.line_begin??p.line_begin},...(f.line_end??p.line_end)===void 0?{}:{line_end:f.line_end??p.line_end},...u??p.shadow?{shadow:u??p.shadow}:{},...n.group===void 0?{}:{group:n.group}}]}function K(e,r,n){e.use();const o=e.one("p:nvPicPr"),d=o?.one("p:cNvPr"),t=C(r,e,d?.el.attrs.find(k=>k.key==="name")?.value??""),s=E(d,t),h=o?.one("p:cNvPicPr");$(h?.one("a:picLocks"),t)&&(s.locked=!0),h?.attr("preferRelativeResize");const l=o?.one("p:nvPr");l?.ignore(["isPhoto","userDrawn"],"a shape's origin in PowerPoint");const w=l?.one("p:ph"),c=l?.one("a:videoFile"),i=l?.choice("a:audioFile","a:wavAudioFile","a:audioCd","a:quickTimeFile"),g=l?.one("p:extLst")?.all("p:ext").flatMap(k=>{const O=k.one("p14:media");return O?[O]:[]})[0],p=t.read.pkg,f=p.rel(t.part,g?.attr("r:embed"))??p.rel(t.part,c?.attr("r:link"));if(g){g.attr("r:link");for(const k of["p14:trim","p14:fade","p14:bmkLst"]){const O=g.one(k);O&&(b(t,"cannot-hold",k,k==="p14:trim"?"a video's trim":k==="p14:fade"?"a video's fade in and out":"a video's bookmarks"),O.consume())}}i&&(b(t,"cannot-hold",i.key,"a sound"),i.consume());const u=e.one("p:blipFill");u?.ignore(["dpi","rotWithShape"],"a picture's resolution and turning with its fill");const a=u?.one("a:blip");a?.ignore(["cstate"],"a picture's compression state");const y=a?.one("a:extLst")?.all("a:ext").flatMap(k=>{const O=k.one("asvg:svgBlip");return k.one("a14:useLocalDpi")?.skip("a picture kept at its own resolution"),O?[O]:[]})[0],v=p.rel(t.part,y?.attr("r:embed"))??p.rel(t.part,a?.attr("r:embed"));a?.attr("r:link")&&b(t,"missing","a:blip@r:link","a picture linked from outside the file");for(const k of a?.kids()??[])k.key!=="a:extLst"&&(k.use(),b(t,"cannot-hold",k.key,"a picture's own effect (transparency, recolouring, brightness)"),k.consume());const m=u?.one("a:srcRect"),x=k=>(m?.attr(k)??0)/1e5,j=m?{left:x("l"),top:x("t"),right:x("r"),bottom:x("b")}:void 0;u?.one("a:stretch")?.consume();const G=u?.one("a:tile");G&&(b(t,"cannot-hold","a:tile","a picture tiled in its frame"),G.consume());const _=e.one("p:spPr");_?.ignore(["bwMode"],"a shape's black and white printing mode");const M=z(_?.one("a:xfrm")),T=_?.one("a:prstGeom"),L=T?.attr("prst");T?.one("a:avLst"),L!==void 0&&L!=="rect"&&b(t,"cannot-hold","a:prstGeom@prst",`a picture cut to a ${L}`);const R=_?.one("a:ln");R&&B(R,t).line&&b(t,"cannot-hold","p:pic/a:ln","a picture's outline");const P=W(_?.one("a:effectLst"),t),F=I(_,t);(F?.fill||F?.gradient)&&b(t,"cannot-hold","p:pic/p:spPr","a fill behind a picture"),e.one("p:style")?.skip("a picture's style");const A=c!==void 0||g!==void 0&&!i,N=A?f:v;if(!N||N.external)return b(t,"missing","p:pic","a picture or a video whose file is not in the file"),[];p.bytes(N.target),A&&(v&&p.bytes(v.target),c?.attr("r:link"));const Y=s.alt!==void 0&&/^[^\s/\\]+\.[A-Za-z0-9]{2,5}$/u.test(s.alt);Y&&d?.ignore(["descr"],"a picture's file name as its description (python-pptx's habit)");const J=s.alt===void 0||Y?{}:{alt:s.alt};return[{name:s.name,...s.id===void 0?{}:{id:s.id},...s.locked?{locked:!0}:{},...J,kind:A?"movie":"picture",...w?{placeholder:{type:w.attr("type")??"pic",idx:w.attr("idx")??0}}:{},...D(M&&n.place(M)),part:N.target,...j&&!A?{crop:j}:{},...P?{shadow:P}:{},...n.group===void 0?{}:{group:n.group}}]}function ve(e,r,n){e.use();const o=e.one("p:nvGraphicFramePr"),d=o?.one("p:cNvPr"),t=C(r,e,d?.el.attrs.find(f=>f.key==="name")?.value??""),s=E(d,t);$(o?.one("p:cNvGraphicFramePr")?.one("a:graphicFrameLocks"),t)&&(s.locked=!0);const h=o?.one("p:nvPr")?.one("p:ph");h&&(b(t,"approximated","p:ph","a table, a chart or an object in a placeholder is the slide's own, its placeholder left empty"),h.consume()),e.ignore(["bwMode"],"a shape's black and white printing mode");const l=z(e.one("p:xfrm")),w=D(l&&n.place(l)),c=e.one("a:graphic")?.one("a:graphicData"),i=c?.attr("uri")??"",g={...s,...w,...n.group===void 0?{}:{group:n.group}};if(i.endsWith("/table")){const f=c?.one("a:tbl");if(f)return[{...g,kind:"table",table:ce(f.use(),t)}]}if(i.endsWith("/chart")){const f=c?.one("c:chart");f?.use();const u=t.read.pkg.rel(t.part,f?.attr("r:id")),a=u?se(u.target,t):"its chart is not in the file";return typeof a=="string"?(b(t,"cannot-hold","c:chart",a),[]):[{...g,kind:"chart",chart:a}]}if(i.endsWith("/diagram"))return b(t,"cannot-hold","dgm:relIds","SmartArt"),c?.consume(),[];const p=c?.one("p:oleObj");if(p){p.use(),b(t,"approximated","p:oleObj",`an embedded ${p.attr("progId")??"object"} is its picture`),p.ignore(["spid","name","showAsIcon","r:id","imgW","imgH","progId"],"an embedded object's program and size"),p.one("p:embed")?.consume(),p.one("p:link")?.consume();const f=p.one("p:pic");if(f){const[a]=K(f,r,n);return a?[{...a,...s,...w,kind:"picture"}]:[]}const u=ye(p.el.attrs.find(a=>a.key==="spid")?.value,t);return u?[{...g,kind:"picture",part:u}]:(b(t,"missing","p:oleObj","an embedded object whose picture is not in the file"),[])}return b(t,"cannot-hold","a:graphicData",i||"a graphic frame"),c?.consume(),[]}const Q="urn:schemas-microsoft-com:vml",X="urn:schemas-microsoft-com:office:office";function ye(e,r){const n=r.read.pkg,o=n.relOfType(r.part,"vmlDrawing")?.target,d=o===void 0?void 0:n.bytes(o);if(o===void 0||!d||e===void 0)return;let t;try{t=oe(ae(d))}catch{return}const s=(i,g,p)=>i.attrs.find(f=>f.uri===g&&f.local===p)?.value,h=i=>[i,...i.children.flatMap(h)],w=h(t).find(i=>i.uri===Q&&(s(i,"","id")===e||s(i,X,"spid")===e))?.children.find(i=>i.uri===Q&&i.local==="imagedata"),c=n.rel(o,w&&s(w,X,"relid"));if(!(!c||c.external||!n.bytes(c.target)))return c.target}function ke(e,r,n){e.use();const o=e.one("p:nvGrpSpPr"),d=o?.one("p:cNvPr"),t=C(r,e,d?.el.attrs.find(g=>g.key==="name")?.value??""),s=E(d,t),h=$(o?.one("p:cNvGrpSpPr")?.one("a:grpSpLocks"),t);o?.one("p:nvPr");const l=e.one("p:grpSpPr");l?.ignore(["bwMode"],"a shape's black and white printing mode");const w=I(l,t),c=l?.one("a:effectLst");c&&(b(t,"cannot-hold","p:grpSpPr/a:effectLst","a group's own effects"),c.consume()),n.group!==void 0&&b(t,"approximated","p:grpSp",`a group in a group is one group, ${n.group}`);const i=shapesOf(e,t,{...w?{fill:w}:n.fill?{fill:n.fill}:{},group:n.group??s.name,place:fe(l?.one("a:xfrm"),n)});return h?i.map(g=>({...g,locked:!0})):i}
|
|
2
|
+
import{SHAPE_TYPES as ee}from"@allyhub/ooxml/enums";import{evaluate as te,presetAdjustments as ne}from"@allyhub/ooxml/geometry";import{as as H,parseXml as oe}from"@allyhub/ooxml";import{strFromU8 as ae}from"fflate";import{isConnectorGeometry as ie,pathSteps as re}from"@allyhub/slides-core";import{fillOf as I,lineOf as B,say as b,shadowOf as W,styleOf as V}from"./common.js";import{chartOf as se}from"./chart.js";import{tableOf as ce}from"./table.js";import{BODY_DEFAULTS as de,bodyOf as le}from"./text.js";const Z=new Set(["title","ctrTitle","subTitle","body","pic","media","obj","dt","ftr","sldNum"]),pe=new Set(ee),q={place:e=>e};function z(e){const i=e?.one("a:off"),n=e?.one("a:ext");if(!(!e||!i||!n))return{frame:{left:i.attr("x")??0,top:i.attr("y")??0,width:n.attr("cx")??0,height:n.attr("cy")??0},rotation:e.attrOr("rot")/6e4%360,flip:{h:e.attrOr("flipH"),v:e.attrOr("flipV")}}}function D(e){if(!e)return{};const i=Math.round((e.rotation%360+360)%360*1e3)/1e3;return{frame:{left:Math.round(e.frame.left),top:Math.round(e.frame.top),width:Math.round(e.frame.width),height:Math.round(e.frame.height)},...i===0||i===360?{}:{rotation:i},...e.flip.h||e.flip.v?{flip:{...e.flip.h?{h:!0}:{},...e.flip.v?{v:!0}:{}}}:{}}}function fe(e,i){const n=(r,h)=>e?.one(r)?.attr(h)??0,o=(r,h)=>e?.one(r)?.attr(h)??0,d=o("a:chExt","cx")===0?1:o("a:ext","cx")/o("a:chExt","cx"),t=o("a:chExt","cy")===0?1:o("a:ext","cy")/o("a:chExt","cy"),s=(e?.attrOr("rot")??0)/6e4%360,m=e?.attrOr("flipH")??!1,f=e?.attrOr("flipV")??!1,g=n("a:off","x")+o("a:ext","cx")/2,c=n("a:off","y")+o("a:ext","cy")/2;return r=>{const h=r.frame.width*d,w=r.frame.height*t;let l=n("a:off","x")+(r.frame.left-n("a:chOff","x"))*d+h/2,p=n("a:off","y")+(r.frame.top-n("a:chOff","y"))*t+w/2,a=r.rotation;const y={...r.flip};if(m&&(l=2*g-l,a=-a,y.h=!y.h),f&&(p=2*c-p,a=-a,y.v=!y.v),s!==0){const v=s*Math.PI/180,[_,u]=[l-g,p-c];l=g+_*Math.cos(v)-u*Math.sin(v),p=c+_*Math.sin(v)+u*Math.cos(v),a+=s}return i.place({frame:{left:l-h/2,top:p-w/2,width:h,height:w},rotation:a,flip:y})}}function ue(e,i,n){const o=a=>(a?.all("a:gd")??[]).map(y=>[y.attr("name")??"",y.attr("fmla")??""]),d=o(e.one("a:avLst")),t=o(e.one("a:gdLst"));e.one("a:ahLst")?.skip("a freeform's handles: editing aids"),e.one("a:cxnLst")?.skip("a freeform's connection sites: editing aids"),e.one("a:rect")?.skip("a freeform's text rectangle: its text takes the shape's box");const s=a=>H(a).all("a:pt").flatMap(y=>[String(y.attr("x")??"0"),String(y.attr("y")??"0")]),m={"a:moveTo":"M","a:lnTo":"L","a:quadBezTo":"Q","a:cubicBezTo":"C","a:close":"Z","a:arcTo":"A"},f=(e.one("a:pathLst")?.all("a:path")??[]).map(a=>{const y=a.kids().map(u=>{if(u.use(),u.key==="a:arcTo"){const k=u;return["A",...["wR","hR","stAng","swAng"].map(S=>String(k.attr(S)??"0"))].join(" ")}return[m[u.key]??"Z",...s(u)].join(" ")}),v=a.attr("fill"),_=a.attr("stroke");return a.attr("extrusionOk"),{...a.attr("w")?{w:a.attr("w")}:{},...a.attr("h")?{h:a.attr("h")}:{},...v===void 0||v==="norm"?{}:{fill:v},..._===!1?{stroke:!1}:{},d:y.join(" ")}});if(f.length===0)return;f.some(a=>a.fill!==void 0||a.stroke===!1)&&b(n,"approximated","a:path@fill","a freeform's paths are drawn alike: filled and outlined");const g=f[0]?.w??0,c=f[0]?.h??0,r=g>0&&c>0&&f.every(a=>(a.w??0)===g&&(a.h??0)===c),h=r?g:i&&i.width>0?i.width:g>0?g:1,w=r?c:i&&i.height>0?i.height:c>0?c:1,l=te({av:d,gd:t,paths:f.map(a=>({d:a.d,...a.w?{w:a.w}:{},...a.h?{h:a.h}:{}}))},h,w),p=re(l.paths.map(a=>a.d).join(" "));return p?{w:h,h:w,steps:p}:void 0}function he(e,i,n){const o=new Map((i?.all("a:gd")??[]).map(s=>[s.attr("name")??"",s.attr("fmla")??""]));if(o.size===0)return;const d=ne(e);for(const s of o.keys())d.some(m=>m.name===s)||b(n,"unread","a:gd@name",`${e} has no adjustment ${s}`);return d.map(s=>{const m=o.get(s.name),f=m===void 0?NaN:Number(/^val\s+(-?[\d.]+)$/u.exec(m.trim())?.[1]);return m!==void 0&&Number.isNaN(f)&&b(n,"approximated","a:gd@fmla",`an adjustment by a formula (${m}) is the preset's own`),(Number.isNaN(f)?s.value:f)/1e5})}function E(e,i){const n=e?.attr("name")??"",o=e?.attr("id"),d=e?.attr("descr");e?.attr("hidden")===!0&&b(i,"cannot-hold","p:cNvPr@hidden","a shape hidden on its slide"),e?.attr("title")&&b(i,"cannot-hold","p:cNvPr@title","an alternative text's title");for(const s of["a:hlinkClick","a:hlinkHover"]){const m=e?.one(s);if(m?.attr("action")==="ppaction://media"){m.consume();continue}m&&(b(i,"cannot-hold",s,"a link on a whole shape"),m.consume())}return{name:n,...o===void 0?{}:{id:String(o)},...d?{alt:d}:{}}}export function shapesOf(e,i,n=q){const o=[];if(!e)return o;for(const d of e.kids())switch(d.key){case"p:nvGrpSpPr":case"p:grpSpPr":n===q&&d.consume();break;case"p:sp":o.push(...be(d,i,n));break;case"p:cxnSp":o.push(...we(d,i,n));break;case"p:pic":o.push(...K(d,i,n));break;case"p:graphicFrame":o.push(...ve(d,i,n));break;case"p:grpSp":o.push(...ke(d,i,n));break;case"p:contentPart":d.use(),b(i,"cannot-hold","p:contentPart","ink"),d.consume();break;default:break}return o}const C=(e,i,n)=>{const o=`${e.where} › "${n||"unnamed"}"`;return i.label(o),{...e,where:o}},me=["noGrp","noUngrp","noSelect","noChangeAspect","noEditPoints","noAdjustHandles","noChangeArrowheads","noChangeShapeType","noTextEdit","noCrop","noDrilldown"];function $(e,i){if(!e)return!1;const n=H(e),o=e.key!=="a:graphicFrameLocks",d=n.attr("noMove")===!0,t=n.attr("noResize")===!0,s=o&&n.attr("noRot")===!0;return n.ignore(me,"locks against editing in PowerPoint"),H(e).one("a:extLst")?.skip("a lock's extensions"),d&&t?!0:((d||t||s)&&b(i,"cannot-hold",`${e.key}@${[d&&"noMove",t&&"noResize",s&&"noRot"].filter(Boolean).join(",")}`,"a shape locked against some changes and not others: a deck locks moving, sizing and turning together"),!1)}const ge={};function be(e,i,n){e.use();const o=e.one("p:nvSpPr"),d=o?.one("p:cNvPr"),t=C(i,e,d?.el.attrs.find(P=>P.key==="name")?.value??""),s=E(d,t),m=o?.one("p:cNvSpPr");$(m?.one("a:spLocks"),t)&&(s.locked=!0);const f=m?.attr("txBox")===!0,g=o?.one("p:nvPr");g?.ignore(["isPhoto","userDrawn"],"a shape's origin in PowerPoint");const c=g?.one("p:ph"),r=e.one("p:spPr");r?.ignore(["bwMode"],"a shape's black and white printing mode");const h=z(r?.one("a:xfrm")),w=D(h&&n.place(h)),l=r?.one("a:prstGeom"),p=l?.attr("prst"),a=I(r,t),y=r?.one("a:ln"),v=B(y,t),_=W(r?.one("a:effectLst"),t),u=c||f?{}:V(e.one("p:style"),t);(c||f)&&e.one("p:style")?.skip("a placeholder's or a text box's style: its own properties are what it shows");const k=a?.group?n.fill:a;a?.group&&!n.fill&&b(t,"approximated","a:grpFill","a group's fill outside a group is none");const S=e.one("p:txBody"),G=c!==void 0&&!t.part.includes("/slides/")&&(c.attr("type")??"obj")!=="sldNum",L=S?le(S,c&&!t.part.includes("/slideMasters/")?ge:de,t,G):void 0,M={...s,kind:"autoshape",...w,...k?.fill!==void 0?{fill:k.fill}:k?.gradient?{}:c?{}:f?{fill:null}:u.fill!==void 0?{fill:u.fill}:u.gradient?{}:{fill:null},...(k?.fill_transparency??(k?void 0:u.fill_transparency))===void 0?{}:{fill_transparency:k?.fill_transparency??u.fill_transparency??0},...k?.gradient??(k?void 0:u.gradient)?{gradient:k?.gradient??u.gradient}:{},..._??u.shadow?{shadow:_??u.shadow}:{},...v.line!==void 0?{line:v.line}:c?{}:f?{}:{line:u.line??null},...(v.line_width??(c?void 0:u.line_width))===void 0?{}:{line_width:v.line_width??u.line_width},...(v.line_dash??u.line_dash)===void 0?{}:{line_dash:v.line_dash??u.line_dash},...(v.line_begin??u.line_begin)===void 0?{}:{line_begin:v.line_begin??u.line_begin},...(v.line_end??u.line_end)===void 0?{}:{line_end:v.line_end??u.line_end},...u.text_color===void 0?{}:{text_color:u.text_color},...L?{text:L}:{},...n.group===void 0?{}:{group:n.group}};if(c){const P=c.attr("type")??"obj",F=c.attr("idx")??0;if(c.ignore(["hasCustomPrompt"],"a placeholder's own prompt text"),c.attr("orient")==="vert"&&b(t,"cannot-hold","p:ph@orient","a vertical placeholder"),c.attr("sz"),P==="sldImg"||P==="hdr")return[];const O=Z.has(P)?P:P==="clipArt"||P==="chart"||P==="tbl"||P==="dgm"?"obj":"body";return Z.has(P)||b(t,"approximated","p:ph@type",`a ${P} placeholder is a${O==="obj"?"n object":" body"} placeholder`),p!==void 0&&p!=="rect"?[{...M,kind:"placeholder",placeholder:{type:O,idx:F},geometry:p,...U(p,l?.one("a:avLst"),t)}]:(l?.one("a:avLst"),[{...M,kind:"placeholder",placeholder:{type:O,idx:F}}])}const T=r?.one("a:custGeom"),N=T?ue(T,w.frame,t):void 0;T&&!N&&b(t,"approximated","a:custGeom","a freeform with no outline is a rectangle");const R=p!==void 0&&pe.has(p)?p:"rect";return[{...M,kind:f?"textbox":"autoshape",...N?{path:N}:{geometry:R},...p===void 0||N?{}:U(p,l?.one("a:avLst"),t)}]}const U=(e,i,n)=>{const o=he(e,i,n);return o?{adjustments:o}:{}};function we(e,i,n){e.use();const o=e.one("p:nvCxnSpPr"),d=o?.one("p:cNvPr"),t=C(i,e,d?.el.attrs.find(v=>v.key==="name")?.value??""),s=E(d,t),m=o?.one("p:cNvCxnSpPr");$(m?.one("a:cxnSpLocks"),t)&&(s.locked=!0);const f={};for(const[v,_]of[["begin","a:stCxn"],["end","a:endCxn"]]){const u=m?.one(_);if(!u)continue;const k=u.attr("id"),S=u.attr("idx");k!==void 0&&S!==void 0&&(f[v]={id:String(k),site:S}),u.consume()}o?.one("p:nvPr");const g=e.one("p:spPr");g?.ignore(["bwMode"],"a shape's black and white printing mode");const c=z(g?.one("a:xfrm")),r=g?.one("a:prstGeom"),h=r?.attr("prst")??"line",w=U(h,r?.one("a:avLst"),t),l=V(e.one("p:style"),t),p=B(g?.one("a:ln"),t),a=W(g?.one("a:effectLst"),t),y=ie(h);return y||b(t,"approximated","a:prstGeom@prst",`a connector of the ${h} preset is a shape of it with no fill`),[{...s,kind:"autoshape",geometry:h,...w,...D(c&&n.place(c)),...y?{}:{fill:null},line:p.line??l.line??null,...(p.line_width??l.line_width)===void 0?{}:{line_width:p.line_width??l.line_width},...(p.line_dash??l.line_dash)===void 0?{}:{line_dash:p.line_dash??l.line_dash},...(p.line_begin??l.line_begin)===void 0?{}:{line_begin:p.line_begin??l.line_begin},...(p.line_end??l.line_end)===void 0?{}:{line_end:p.line_end??l.line_end},...a??l.shadow?{shadow:a??l.shadow}:{},...n.group===void 0?{}:{group:n.group},...f.begin||f.end?{glue:f}:{}}]}function K(e,i,n){e.use();const o=e.one("p:nvPicPr"),d=o?.one("p:cNvPr"),t=C(i,e,d?.el.attrs.find(x=>x.key==="name")?.value??""),s=E(d,t),m=o?.one("p:cNvPicPr");$(m?.one("a:picLocks"),t)&&(s.locked=!0),m?.attr("preferRelativeResize");const f=o?.one("p:nvPr");f?.ignore(["isPhoto","userDrawn"],"a shape's origin in PowerPoint");const g=f?.one("p:ph"),c=f?.one("a:videoFile"),r=f?.choice("a:audioFile","a:wavAudioFile","a:audioCd","a:quickTimeFile"),h=f?.one("p:extLst")?.all("p:ext").flatMap(x=>{const j=x.one("p14:media");return j?[j]:[]})[0],w=t.read.pkg,l=w.rel(t.part,h?.attr("r:embed"))??w.rel(t.part,c?.attr("r:link"));if(h){h.attr("r:link");for(const x of["p14:trim","p14:fade","p14:bmkLst"]){const j=h.one(x);j&&(b(t,"cannot-hold",x,x==="p14:trim"?"a video's trim":x==="p14:fade"?"a video's fade in and out":"a video's bookmarks"),j.consume())}}r&&(b(t,"cannot-hold",r.key,"a sound"),r.consume());const p=e.one("p:blipFill");p?.ignore(["dpi","rotWithShape"],"a picture's resolution and turning with its fill");const a=p?.one("a:blip");a?.ignore(["cstate"],"a picture's compression state");const y=a?.one("a:extLst")?.all("a:ext").flatMap(x=>{const j=x.one("asvg:svgBlip");return x.one("a14:useLocalDpi")?.skip("a picture kept at its own resolution"),j?[j]:[]})[0],v=w.rel(t.part,y?.attr("r:embed"))??w.rel(t.part,a?.attr("r:embed"));a?.attr("r:link")&&b(t,"missing","a:blip@r:link","a picture linked from outside the file");for(const x of a?.kids()??[])x.key!=="a:extLst"&&(x.use(),b(t,"cannot-hold",x.key,"a picture's own effect (transparency, recolouring, brightness)"),x.consume());const u=p?.one("a:srcRect"),k=x=>(u?.attr(x)??0)/1e5,S=u?{left:k("l"),top:k("t"),right:k("r"),bottom:k("b")}:void 0;p?.one("a:stretch")?.consume();const G=p?.one("a:tile");G&&(b(t,"cannot-hold","a:tile","a picture tiled in its frame"),G.consume());const L=e.one("p:spPr");L?.ignore(["bwMode"],"a shape's black and white printing mode");const M=z(L?.one("a:xfrm")),T=L?.one("a:prstGeom"),N=T?.attr("prst");T?.one("a:avLst"),N!==void 0&&N!=="rect"&&b(t,"cannot-hold","a:prstGeom@prst",`a picture cut to a ${N}`);const R=L?.one("a:ln");R&&B(R,t).line&&b(t,"cannot-hold","p:pic/a:ln","a picture's outline");const P=W(L?.one("a:effectLst"),t),F=I(L,t);(F?.fill||F?.gradient)&&b(t,"cannot-hold","p:pic/p:spPr","a fill behind a picture"),e.one("p:style")?.skip("a picture's style");const A=c!==void 0||h!==void 0&&!r,O=A?l:v;if(!O||O.external)return b(t,"missing","p:pic","a picture or a video whose file is not in the file"),[];w.bytes(O.target),A&&(v&&w.bytes(v.target),c?.attr("r:link"));const Y=s.alt!==void 0&&/^[^\s/\\]+\.[A-Za-z0-9]{2,5}$/u.test(s.alt);Y&&d?.ignore(["descr"],"a picture's file name as its description (python-pptx's habit)");const J=s.alt===void 0||Y?{}:{alt:s.alt};return[{name:s.name,...s.id===void 0?{}:{id:s.id},...s.locked?{locked:!0}:{},...J,kind:A?"movie":"picture",...g?{placeholder:{type:g.attr("type")??"pic",idx:g.attr("idx")??0}}:{},...D(M&&n.place(M)),part:O.target,...S&&!A?{crop:S}:{},...P?{shadow:P}:{},...n.group===void 0?{}:{group:n.group}}]}function ve(e,i,n){e.use();const o=e.one("p:nvGraphicFramePr"),d=o?.one("p:cNvPr"),t=C(i,e,d?.el.attrs.find(l=>l.key==="name")?.value??""),s=E(d,t);$(o?.one("p:cNvGraphicFramePr")?.one("a:graphicFrameLocks"),t)&&(s.locked=!0);const m=o?.one("p:nvPr")?.one("p:ph");m&&(b(t,"approximated","p:ph","a table, a chart or an object in a placeholder is the slide's own, its placeholder left empty"),m.consume()),e.ignore(["bwMode"],"a shape's black and white printing mode");const f=z(e.one("p:xfrm")),g=D(f&&n.place(f)),c=e.one("a:graphic")?.one("a:graphicData"),r=c?.attr("uri")??"",h={...s,...g,...n.group===void 0?{}:{group:n.group}};if(r.endsWith("/table")){const l=c?.one("a:tbl");if(l)return[{...h,kind:"table",table:ce(l.use(),t)}]}if(r.endsWith("/chart")){const l=c?.one("c:chart");l?.use();const p=t.read.pkg.rel(t.part,l?.attr("r:id")),a=p?se(p.target,t):"its chart is not in the file";return typeof a=="string"?(b(t,"cannot-hold","c:chart",a),[]):[{...h,kind:"chart",chart:a}]}if(r.endsWith("/diagram"))return b(t,"cannot-hold","dgm:relIds","SmartArt"),c?.consume(),[];const w=c?.one("p:oleObj");if(w){w.use(),b(t,"approximated","p:oleObj",`an embedded ${w.attr("progId")??"object"} is its picture`),w.ignore(["spid","name","showAsIcon","r:id","imgW","imgH","progId"],"an embedded object's program and size"),w.one("p:embed")?.consume(),w.one("p:link")?.consume();const l=w.one("p:pic");if(l){const[a]=K(l,i,n);return a?[{...a,...s,...g,kind:"picture"}]:[]}const p=ye(w.el.attrs.find(a=>a.key==="spid")?.value,t);return p?[{...h,kind:"picture",part:p}]:(b(t,"missing","p:oleObj","an embedded object whose picture is not in the file"),[])}return b(t,"cannot-hold","a:graphicData",r||"a graphic frame"),c?.consume(),[]}const Q="urn:schemas-microsoft-com:vml",X="urn:schemas-microsoft-com:office:office";function ye(e,i){const n=i.read.pkg,o=n.relOfType(i.part,"vmlDrawing")?.target,d=o===void 0?void 0:n.bytes(o);if(o===void 0||!d||e===void 0)return;let t;try{t=oe(ae(d))}catch{return}const s=(r,h,w)=>r.attrs.find(l=>l.uri===h&&l.local===w)?.value,m=r=>[r,...r.children.flatMap(m)],g=m(t).find(r=>r.uri===Q&&(s(r,"","id")===e||s(r,X,"spid")===e))?.children.find(r=>r.uri===Q&&r.local==="imagedata"),c=n.rel(o,g&&s(g,X,"relid"));if(!(!c||c.external||!n.bytes(c.target)))return c.target}function ke(e,i,n){e.use();const o=e.one("p:nvGrpSpPr"),d=o?.one("p:cNvPr"),t=C(i,e,d?.el.attrs.find(h=>h.key==="name")?.value??""),s=E(d,t),m=$(o?.one("p:cNvGrpSpPr")?.one("a:grpSpLocks"),t);o?.one("p:nvPr");const f=e.one("p:grpSpPr");f?.ignore(["bwMode"],"a shape's black and white printing mode");const g=I(f,t),c=f?.one("a:effectLst");c&&(b(t,"cannot-hold","p:grpSpPr/a:effectLst","a group's own effects"),c.consume()),n.group!==void 0&&b(t,"approximated","p:grpSp",`a group in a group is one group, ${n.group}`);const r=shapesOf(e,t,{...g?{fill:g}:n.fill?{fill:n.fill}:{},group:n.group??s.name,place:fe(f?.one("a:xfrm"),n)});return m?r.map(h=>({...h,locked:!0})):r}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{presetAdjustments as k}from"@allyhub/ooxml/geometry";import{NS as x,effects as s,el as n,fill as g,gradientFill as
|
|
2
|
+
import{presetAdjustments as k}from"@allyhub/ooxml/geometry";import{NS as x,effects as s,el as n,fill as g,gradientFill as b}from"./xml.js";export const LOCKED={noMove:1,noResize:1,noRot:1};const m=e=>e.locked?LOCKED:{},h=(e,r={})=>n("a:xfrm",{rot:r.rotation===void 0?void 0:Math.round(r.rotation*6e4),flipH:r.flip?.h?1:void 0,flipV:r.flip?.v?1:void 0},n("a:off",{x:e.left,y:e.top}),n("a:ext",{cx:e.width,cy:e.height})),u=(e,r)=>{const a=k(e);return n("a:prstGeom",{prst:e},n("a:avLst",{},...(r??[]).flatMap((t,i)=>{const p=a[i]?.name;return p===void 0?[]:[n("a:gd",{name:p,fmla:`val ${String(Math.round(t*1e5))}`})]})))};function M(e){const r=(t,i)=>n("a:pt",{x:Math.round(t),y:Math.round(i)}),a=e.steps.map(t=>t.op==="close"?n("a:close"):t.op==="move"?n("a:moveTo",{},r(t.x,t.y)):t.op==="line"?n("a:lnTo",{},r(t.x,t.y)):n("a:cubicBezTo",{},r(t.x1,t.y1),r(t.x2,t.y2),r(t.x,t.y)));return n("a:custGeom",{},n("a:avLst"),n("a:gdLst"),n("a:ahLst"),n("a:cxnLst"),n("a:rect",{l:"l",t:"t",r:"r",b:"b"}),n("a:pathLst",{},n("a:path",{w:Math.round(e.w),h:Math.round(e.h)},...a)))}const v=e=>e.line===void 0&&e.lineWidth===void 0&&e.lineDash===void 0&&e.lineBegin===void 0&&e.lineEnd===void 0?"":n("a:ln",{w:e.lineWidth},e.line===void 0?"":g(e.line),e.lineDash===void 0?"":n("a:prstDash",{val:e.lineDash}),e.lineBegin===void 0?"":n("a:headEnd",{type:e.lineBegin}),e.lineEnd===void 0?"":n("a:tailEnd",{type:e.lineEnd})),d=(e,r,a)=>n(e,{idx:r},n("a:schemeClr",{val:a})),y={shape:n("p:style",{},d("a:lnRef",1,"accent1"),d("a:fillRef",3,"accent1"),d("a:effectRef",2,"accent1"),d("a:fontRef","minor","lt1")),connector:n("p:style",{},d("a:lnRef",2,"accent1"),d("a:fillRef",0,"accent1"),d("a:effectRef",1,"accent1"),d("a:fontRef","minor","tx1"))},w=e=>n("p:ph",{type:e.type==="obj"?void 0:e.type,idx:e.idx===0?void 0:e.idx,sz:e.sz}),P=(e,r="")=>n("p:nvPr",{},e.placeholder?w(e.placeholder):"",r);export function shapeXml(e){if(e.kind==="table"||e.kind==="chart")return n("p:graphicFrame",{},n("p:nvGraphicFramePr",{},n("p:cNvPr",{id:e.id,name:e.name,descr:e.descr}),n("p:cNvGraphicFramePr",{},n("a:graphicFrameLocks",{noGrp:1,...e.locked?{noMove:1,noResize:1}:{}})),n("p:nvPr")),n("p:xfrm",{},n("a:off",{x:e.frame?.left??0,y:e.frame?.top??0}),n("a:ext",{cx:e.frame?.width??0,cy:e.frame?.height??0})),n("a:graphic",{},n("a:graphicData",{uri:`http://schemas.openxmlformats.org/drawingml/2006/${e.kind}`},e.kind==="table"?e.table??"":n("c:chart",{"xmlns:c":"http://schemas.openxmlformats.org/drawingml/2006/chart","xmlns:r":x.r,"r:id":e.chart??""}))));if(e.kind==="cxn")return n("p:cxnSp",{},n("p:nvCxnSpPr",{},n("p:cNvPr",{id:e.id,name:e.name,descr:e.descr}),n("p:cNvCxnSpPr",{},e.locked?n("a:cxnSpLocks",m(e)):"",e.connect?.begin?n("a:stCxn",e.connect.begin):"",e.connect?.end?n("a:endCxn",e.connect.end):""),n("p:nvPr")),n("p:spPr",{},e.frame?h(e.frame,e):"",u(e.geometry??"line",e.adjustments),v(e),e.shadow?s(e.shadow):""),e.style?y[e.style]:"");if(e.kind==="pic"){const a=e.video;return n("p:pic",{},n("p:nvPicPr",{},n("p:cNvPr",{id:e.id,name:e.name,descr:e.descr},a?n("a:hlinkClick",{"r:id":"",action:"ppaction://media"}):""),n("p:cNvPicPr",{},n("a:picLocks",{noChangeAspect:1,...m(e)})),P(e,a?n("a:videoFile",{"r:link":a.link})+n("p:extLst",{},n("p:ext",{uri:"{DAA4B4D4-6D71-4841-9C94-3DE7FCFB9230}"},n("p14:media",{"xmlns:p14":x.p14,"r:embed":a.media}))):"")),n("p:blipFill",{},n("a:blip",{"r:embed":e.picture?.image}),e.picture?.crop?n("a:srcRect",{l:f(e.picture.crop.left),t:f(e.picture.crop.top),r:f(e.picture.crop.right),b:f(e.picture.crop.bottom)}):"",n("a:stretch",{},n("a:fillRect"))),n("p:spPr",{},e.frame?h(e.frame,e):"",u("rect"),e.shadow?s(e.shadow):""))}const r=e.placeholder||e.locked?n("a:spLocks",{...e.placeholder?{noGrp:1}:{},...m(e)}):"";return n("p:sp",{},n("p:nvSpPr",{},n("p:cNvPr",{id:e.id,name:e.name,descr:e.descr}),n("p:cNvSpPr",{txBox:e.textbox?1:void 0},r),P(e)),n("p:spPr",{},e.frame?h(e.frame,e):"",e.path?M(e.path):e.geometry?u(e.geometry,e.adjustments):"",e.gradient?b(e.gradient):e.fill===void 0?"":g(e.fill,e.fillTransparency),v(e),e.shadow?s(e.shadow):""),e.style?y[e.style]:"",e.text??"")}function R(e,r,a){const t=a.flatMap(c=>c.frame?[c.frame]:[]),i=Math.min(...t.map(c=>c.left)),p=Math.min(...t.map(c=>c.top)),l=Math.max(...t.map(c=>c.left+c.width))-i,o=Math.max(...t.map(c=>c.top+c.height))-p;return n("p:grpSp",{},n("p:nvGrpSpPr",{},n("p:cNvPr",{id:e,name:r}),n("p:cNvGrpSpPr"),n("p:nvPr")),n("p:grpSpPr",{},n("a:xfrm",{},n("a:off",{x:i,y:p}),n("a:ext",{cx:l,cy:o}),n("a:chOff",{x:i,y:p}),n("a:chExt",{cx:l,cy:o}))),...a.map(shapeXml))}export function treeXml(e){const r=[];let a=Math.max(0,...e.map(t=>t.id));for(let t=0;t<e.length;t++){const i=e[t];if(!i)continue;if(i.group===void 0){r.push(shapeXml(i));continue}const p=[i];for(;e[t+1]?.group===i.group;){const l=e[++t];l&&p.push(l)}r.push(R(++a,i.group,p))}return r}const f=e=>e===0?void 0:Math.round(e*1e5);export const NO_PARAGRAPHS=[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{createHash as $e}from"node:crypto";import{zipSync as Le}from"fflate";import{AUTOSHAPE_STYLE as De,colorOfFile as Te,CONNECTOR_STYLE as Ee,isConnectorGeometry as ne,joinPath as me,placeholderFrame as Ie,plainLevels as Oe,Pt as ae}from"@allyhub/slides-core";import{chartBook as Ce,chartXml as Re}from"./charts.js";import{asFace as Be,fontInfo as je,eotOf as Ne}from"./fonts.js";import{NO_PARAGRAPHS as Ae,shapeXml as ce,treeXml as oe}from"./shapes.js";import{bodyOfStyle as Fe,bodyProps as K,bodyUnder as ie,LINK as ze,SLIDE_NUMBER as He,levelOf as fe,listStyle as N,txBody as H}from"./text.js";import{themeXml as he}from"./theme.js";import{timingXml as Ge,transitionXml as Xe}from"./timing.js";import{HEAD as w,PML as I,color as Ue,el as n,esc as We,fill as ue,gradientFill as Je,unesc as Ye}from"./xml.js";const V={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",tif:"image/tiff",tiff:"image/tiff",emf:"image/x-emf",wmf:"image/x-wmf"},ge={mp4:"video/mp4",m4v:"video/mp4",mov:"video/quicktime"},D=e=>(e.split(".").pop()??"").toLowerCase(),Ze=[["regular","p:regular","Regular"],["bold","p:bold","Bold"],["italic","p:italic","Italic"],["boldItalic","p:boldItalic","Bold Italic"]],d={hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",chart:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",package:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/package",font:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",officeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",core:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",app:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",slideMaster:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster",slideLayout:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout",slide:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide",theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",notesMaster:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster",notesSlide:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide",image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",video:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video",media:"http://schemas.microsoft.com/office/2007/relationships/media",presProps:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps",viewProps:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps",tableStyles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles"},S={chart:"application/vnd.openxmlformats-officedocument.drawingml.chart+xml",workbook:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",presentation:"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml",slideMaster:"application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml",slideLayout:"application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml",slide:"application/vnd.openxmlformats-officedocument.presentationml.slide+xml",theme:"application/vnd.openxmlformats-officedocument.theme+xml",notesMaster:"application/vnd.openxmlformats-officedocument.presentationml.notesMaster+xml",notesSlide:"application/vnd.openxmlformats-officedocument.presentationml.notesSlide+xml",presProps:"application/vnd.openxmlformats-officedocument.presentationml.presProps+xml",viewProps:"application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml",tableStyles:"application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml",core:"application/vnd.openxmlformats-package.core-properties+xml",app:"application/vnd.openxmlformats-officedocument.extended-properties+xml"};class O{list=[];linked(t){return t.replaceAll(new RegExp(`r:id="${ze}([^"]*)"`,"gu"),(i,a)=>`r:id="${this.add(d.hyperlink,Ye(a),!0)}"`)}add(t,i,a=!1){const r=this.list.find(s=>s.type===t&&s.target===i);if(r)return r.id;const p=`rId${String(this.list.length+1)}`;return this.list.push({id:p,type:t,target:i,...a?{external:a}:{}}),p}xml(){return w+n("Relationships",{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},...this.list.map(t=>n("Relationship",{Id:t.id,Type:t.type,Target:t.target,TargetMode:t.external?"External":void 0})))}}class qe{list=[];add(t,i){return this.list.push({chart:t,frame:i}),`../charts/chart${String(this.list.length)}.xml`}}class Ke{parts=new Map;byHash=new Map;add(t,i,a,r){const p=$e("sha256").update(t).digest("hex"),s=this.byHash.get(`${a}:${p}`);if(s)return s;const m=r?.split("/").pop()?.replace(/\.[^.]*$/u,"").replace(/[^A-Za-z0-9_-]+/gu,"-").replace(/^-+|-+$/gu,""),u=m===void 0||m===""?void 0:m;let b=`${u??`${a}${String(this.parts.size+1)}`}.${i}`;for(let M=2;this.parts.has(`ppt/media/${b}`);M++)b=`${u??a}-${String(M)}.${i}`;return this.parts.set(`ppt/media/${b}`,t),this.byHash.set(`${a}:${p}`,`../media/${b}`),`../media/${b}`}}function xe(e){return e.kind==="component"||e.kind==="movie"?!1:e.kind==="picture"?V[D(e.media?.path??"")]!==void 0:!0}function re(e){return e.kind==="component"||e.kind==="movie"?!0:e.kind==="picture"?V[D(e.media?.path??"")]===void 0:!1}export function picturedShapes(e){return e.slides.flatMap(t=>t.shapes.filter(i=>re(i)).map(i=>({key:`${t.id}/${i.name}`,slide:t.id,shape:i.name,frame:i.frame})))}export function filesOf(e){const t=new Set;for(const i of e.masters)for(const a of[...i.shapes,...i.layouts.flatMap(r=>r.shapes)])a.media&&xe(a)&&t.add(me(a.media.base,a.media.path));for(const i of e.slides){i.background_picture!==void 0&&t.add(i.background_picture);for(const a of i.shapes)a.media&&(a.kind==="picture"||a.kind==="movie")&&t.add(a.media.path)}return[...t].sort()}const Ve=n("p:nvGrpSpPr",{},n("p:cNvPr",{id:1,name:""}),n("p:cNvGrpSpPr"),n("p:nvPr")),Qe=n("p:grpSpPr",{},n("a:xfrm",{},n("a:off",{x:0,y:0}),n("a:ext",{cx:0,cy:0}),n("a:chOff",{x:0,y:0}),n("a:chExt",{cx:0,cy:0}))),J=e=>n("p:spTree",{},Ve,Qe,...e),ye={bg1:"lt1",tx1:"dk1",bg2:"lt2",tx2:"dk2",accent1:"accent1",accent2:"accent2",accent3:"accent3",accent4:"accent4",accent5:"accent5",accent6:"accent6",hlink:"hlink",folHlink:"folHlink"},Q=e=>n("p:bg",{},n("p:bgPr",{},n("a:solidFill",{},Ue(e)),n("a:effectLst")));function et(e,t,i){if(e.background_picture!==void 0){const a=i(e.background_picture);if(a!==void 0)return n("p:bg",{},n("p:bgPr",{},n("a:blipFill",{dpi:0,rotWithShape:1},n("a:blip",{"r:embed":a}),n("a:srcRect"),n("a:stretch",{},n("a:fillRect"))),n("a:effectLst")))}return e.background_gradient?n("p:bg",{},n("p:bgPr",{},Je(e.background_gradient),n("a:effectLst"))):se(e.background,t)?"":Q(e.background)}const se=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function be(e){return{...e.fill_transparency===void 0?{}:{fillTransparency:e.fill_transparency,...e.fill===void 0?{}:{fill:e.fill}},...e.gradient?{gradient:e.gradient}:{},...e.shadow?{shadow:e.shadow}:{}}}function ee(e){const t=i=>({...e.fill===void 0||"fill"in i&&se(e.fill,i.fill)?{}:{fill:e.fill},...e.line===void 0||se(e.line,i.line)?{}:{line:e.line},...e.line_width===void 0||e.line_width===i.line_width?{}:{lineWidth:e.line_width}});return e.kind==="autoshape"?ne(e.geometry)?{style:"connector",...t(Ee)}:{style:"shape",...t(De)}:{...e.kind==="textbox"?{fill:e.fill??null}:e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},...e.line_width===void 0?{}:{lineWidth:e.line_width}}}const tt=(e,t)=>Array.from({length:Math.max(e.length,t.length)},(i,a)=>{const r=e[a]??{},p=t[a]??{},s={...r.font,...p.font};return{...r,...p,...Object.keys(s).length>0?{font:s}:{}}});function _e(e,t,i,a,r,p,s,m){const u=a!==void 0&&r!==void 0&&JSON.stringify(a.text_styles.other)!==JSON.stringify(r.text_styles.other);return H("p:txBody",K(ie(t,m),s,e==="autoshape"?{rtlCol:0}:{}),N(u?tt(a.text_styles.other,t.levels):t.levels),i,p,m)}const nt="{2D5ABB26-0587-4C30-8999-92F81FD0307C}",at=[["left","a:lnL"],["right","a:lnR"],["top","a:lnT"],["bottom","a:lnB"]];function Se(e,t){return n("a:tbl",{},n("a:tblPr",{firstRow:e.first_row?1:void 0,firstCol:e.first_col?1:void 0,lastRow:e.last_row?1:void 0,lastCol:e.last_col?1:void 0,bandRow:e.horz_banding?1:void 0,bandCol:e.vert_banding?1:void 0},n("a:tableStyleId",{},nt)),n("a:tblGrid",{},...e.columns.map(i=>n("a:gridCol",{w:i}))),...e.rows.map((i,a)=>n("a:tr",{h:i.height},...i.cells.map((r,p)=>{const s=r.text.own??r.text,m=we(r.fileText,r.text.style),u=i.cells[p-1],b=e.rows[a-1]?.cells[p];return n("a:tc",{gridSpan:r.span_width,rowSpan:r.span_height,hMerge:r.spanned&&u&&(u.spanned||u.span_width)?1:void 0,vMerge:r.spanned&&b&&(b.spanned||b.span_height)?1:void 0},H("a:txBody",n("a:bodyPr"),n("a:lstStyle"),r.text.paragraphs,t,m),n("a:tcPr",{marL:s.margin_left,marR:s.margin_right,marT:s.margin_top,marB:s.margin_bottom,anchor:ie(s,m).vertical_anchor},...at.map(([M,G])=>{const C=r.borders?.[M];return C?n(G,{w:C.width},ue(C.color)):""}),r.fill===void 0?"":ue(r.fill)))}))))}const le=e=>e.group===void 0?{}:{group:e.group},te=e=>({...e.line_dash===void 0?{}:{lineDash:e.line_dash},...e.line_begin===void 0?{}:{lineBegin:e.line_begin},...e.line_end===void 0?{}:{lineEnd:e.line_end}});function ke(e,t,i,a,r,p,s){const m={...be(e),id:t,name:e.name,...e.frame?{frame:e.frame}:{},...e.rotation===void 0?{}:{rotation:e.rotation},...e.flip?{flip:e.flip}:{}};if(e.kind==="placeholder"&&e.placeholder){const u=s.on==="master"?{...Ie(e.placeholder.type),...e.text}:e.text;return{...m,kind:"sp",placeholder:{...e.placeholder},...e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},...e.line_width===void 0?{}:{lineWidth:e.line_width},...e.fill===void 0&&e.line===void 0?{}:{geometry:e.geometry??"rect"},text:H("p:txBody",u?K(u):n("a:bodyPr"),N(u?.levels??[]),e.placeholder.type==="sldNum"?He:Ae,p)}}if(xe(e)){if(e.table)return{...m,kind:"table",table:Se(e.table,p)};if(e.kind==="picture"&&e.media){const u=r(me(e.media.base,e.media.path));return u?{...m,kind:"pic",picture:{image:i.add(d.image,a.add(u,D(e.media.path),"image",e.media.path))},descr:e.media.path.split("/").pop()??""}:void 0}return!e.path&&ne(e.geometry)?{...m,kind:"cxn",geometry:e.geometry??"line",...e.adjustments?{adjustments:e.adjustments}:{},...ee(e),...te(e)}:{...m,kind:"sp",...e.kind==="textbox"?{textbox:!0}:{},...e.path?{path:e.path}:{geometry:e.geometry??"rect"},...e.adjustments?{adjustments:e.adjustments}:{},...ee(e),...te(e),...e.text?{text:_e(e.kind,e.text,e.text.paragraphs,s.master,s.first,p)}:{}}}}function we(e,t){if(!e)return;const i=e.numbered!==void 0||e.bullet!==void 0&&e.bullet!==!1;return{font:{...e.size===void 0?{}:{size:ae(e.size)},...e.bold===void 0?{}:{bold:e.bold},...e.italic===void 0?{}:{italic:e.italic},...e.underline===void 0?{}:{underline:e.underline},...e.strike===void 0?{}:{strike:e.strike},...e.font===void 0?{}:{name:e.font},...e.color===void 0?{}:{color:Te(e.color)}},paragraph:{...e.align===void 0?{}:{alignment:e.align},...e.line_spacing===void 0?{}:{line_spacing:{lines:e.line_spacing}},...e.space_before===void 0?{}:{space_before:ae(e.space_before)},...e.space_after===void 0?{}:{space_after:ae(e.space_after)},...e.numbered!==void 0?{numbered:e.numbered}:e.bullet===void 0?{}:{bullet:e.bullet===!1?null:e.bullet}},...i&&t?{levels:t.levels.map(a=>({margin_left:a.margin_left,indent:a.indent}))}:{},...e.anchor===void 0?{}:{anchor:e.anchor}}}function ot(e,t,i,a,r,p,s,m,u){const b=`${e.id}/${t.name}`,M=p.deck.fitted[b];if(t.level!=="slide"&&!re(t))return;const G=t.level==="slide"&&t.placeholder?{placeholder:{...t.placeholder}}:{},X=!t.placeholder||t.sources.frame.from==="slide"||t.sources.frame.from==="code"?{frame:t.frame}:{},v={...be(t),id:i,name:t.name,...G,...X,...t.rotation===void 0?{}:{rotation:t.rotation},...t.flip?{flip:t.flip}:{},...t.alt===void 0?{}:{descr:t.alt},...t.locked?{locked:!0}:{}},Y=()=>{const x=p.pictures.get(b);return x?{image:a.add(d.image,r.add(x,"png","image"))}:void 0};if(t.table)return{...v,kind:"table",table:Se(t.table,s)};if(t.chart)return{...v,frame:t.frame,kind:"chart",chart:a.add(d.chart,u.add(t.chart,t.frame))};if(t.kind==="movie"&&t.media){const x=Y(),B=ge[D(t.media.path)]?p.file(t.media.path):void 0;if(!x)return;if(!B)return{...v,frame:t.frame,kind:"pic",picture:x};const L=r.add(B,D(t.media.path),"media",t.media.path);return m.push(i),{...v,frame:t.frame,kind:"pic",picture:{image:x.image},video:{link:a.add(d.video,L),media:a.add(d.media,L)}}}if(re(t)){const x=Y(),B=p.movies?.get(b);if(x&&B){const L=r.add(B.bytes,"mp4","media");return m.push(i),{...v,frame:t.frame,kind:"pic",picture:{image:x.image},video:{link:a.add(d.video,L),media:a.add(d.media,L)}}}return x?{...v,frame:t.frame,kind:"pic",picture:x}:void 0}if(t.kind==="picture"&&t.media){const x=p.file(t.media.path);return x?{...v,kind:"pic",picture:{image:a.add(d.image,r.add(x,D(t.media.path),"image",t.media.path)),...t.media.crop?{crop:t.media.crop}:{}},descr:t.alt??t.media.path.split("/").pop()??""}:void 0}if(!t.path&&ne(t.geometry))return{...v,kind:"cxn",geometry:t.geometry??"line",...t.adjustments?{adjustments:t.adjustments}:{},...ee(t),...te(t)};const P=t.text,Z=p.deck.masters.find(x=>x.name===e.master),A=we(t.fileText,P?.style),U=P?t.placeholder?H("p:txBody",K(ie({},A),M),n("a:lstStyle"),P.paragraphs,s,A):P.own?_e(t.kind,P.own,P.paragraphs,Z,p.deck.masters[0],s,M,A):H("p:txBody",K(Fe(P.style),M),N(P.style.levels.map(fe)),P.paragraphs,s):void 0,W=t.sources.frame.from==="code",R=t.fill!==void 0&&(W||t.sources.fill?.from==="slide"),F=t.line!==void 0&&(W||t.sources.line?.from==="slide");return{...v,kind:"sp",...t.kind==="textbox"?{textbox:!0}:{},...t.path?{path:t.path}:!t.placeholder||R||F?{geometry:t.geometry??"rect"}:{},...t.adjustments?{adjustments:t.adjustments}:{},...te(t),...t.placeholder?{...R?{fill:t.fill}:{},...F?{line:t.line}:{},...t.line_width===void 0?{}:{lineWidth:t.line_width}}:ee(t),...U?{text:U}:{}}}const it={cx:6858e3,cy:9144e3};function ve(e,t){const i=ce({id:2,name:"Slide Image Placeholder 1",kind:"sp",placeholder:{type:"sldImg",idx:2},...e===void 0?{frame:{left:1143e3,top:685800,width:4572e3,height:3429e3}}:{}}),a=ce({id:3,name:"Notes Placeholder 2",kind:"sp",placeholder:{type:"body",idx:3,sz:"quarter"},...e===void 0?{frame:{left:685800,top:4343400,width:5486400,height:4114800}}:{},text:H("p:txBody",n("a:bodyPr"),n("a:lstStyle"),(e??"").split(`
|
|
3
|
-
`).map(r=>({runs:[{text:r}],level:0})),t)});return[i,a]}export function pptxParts(e){const{deck:t}=e,i=t.lang?.split("-").map((o,
|
|
2
|
+
import{createHash as Te}from"node:crypto";import{zipSync as Ee}from"fflate";import{AUTOSHAPE_STYLE as Oe,colorOfFile as Ie,CONNECTOR_STYLE as Ce,isConnectorGeometry as ae,joinPath as fe,placeholderFrame as Re,plainLevels as Be,Pt as oe}from"@allyhub/slides-core";import{chartBook as je,chartXml as Ne}from"./charts.js";import{asFace as Ae,fontInfo as Fe,eotOf as ze}from"./fonts.js";import{NO_PARAGRAPHS as He,shapeXml as he,treeXml as ie}from"./shapes.js";import{bodyOfStyle as Ge,bodyProps as V,bodyUnder as re,LINK as Xe,SLIDE_NUMBER as Ue,levelOf as ue,listStyle as A,txBody as X}from"./text.js";import{themeXml as ge}from"./theme.js";import{timingXml as We,transitionXml as Je}from"./timing.js";import{HEAD as M,PML as E,color as Ye,el as n,esc as Ze,fill as xe,gradientFill as qe,unesc as Ke}from"./xml.js";const Q={png:"image/png",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",bmp:"image/bmp",tif:"image/tiff",tiff:"image/tiff",emf:"image/x-emf",wmf:"image/x-wmf"},ye={mp4:"video/mp4",m4v:"video/mp4",mov:"video/quicktime"},D=e=>(e.split(".").pop()??"").toLowerCase(),Ve=[["regular","p:regular","Regular"],["bold","p:bold","Bold"],["italic","p:italic","Italic"],["boldItalic","p:boldItalic","Bold Italic"]],c={hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",chart:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",package:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/package",font:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/font",officeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",core:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",app:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",slideMaster:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster",slideLayout:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout",slide:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slide",theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",notesMaster:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesMaster",notesSlide:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide",image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",video:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/video",media:"http://schemas.microsoft.com/office/2007/relationships/media",presProps:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/presProps",viewProps:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/viewProps",tableStyles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/tableStyles"},S={chart:"application/vnd.openxmlformats-officedocument.drawingml.chart+xml",workbook:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",presentation:"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml",slideMaster:"application/vnd.openxmlformats-officedocument.presentationml.slideMaster+xml",slideLayout:"application/vnd.openxmlformats-officedocument.presentationml.slideLayout+xml",slide:"application/vnd.openxmlformats-officedocument.presentationml.slide+xml",theme:"application/vnd.openxmlformats-officedocument.theme+xml",notesMaster:"application/vnd.openxmlformats-officedocument.presentationml.notesMaster+xml",notesSlide:"application/vnd.openxmlformats-officedocument.presentationml.notesSlide+xml",presProps:"application/vnd.openxmlformats-officedocument.presentationml.presProps+xml",viewProps:"application/vnd.openxmlformats-officedocument.presentationml.viewProps+xml",tableStyles:"application/vnd.openxmlformats-officedocument.presentationml.tableStyles+xml",core:"application/vnd.openxmlformats-package.core-properties+xml",app:"application/vnd.openxmlformats-officedocument.extended-properties+xml"};class O{list=[];linked(t){return t.replaceAll(new RegExp(`r:id="${Xe}([^"]*)"`,"gu"),(i,a)=>`r:id="${this.add(c.hyperlink,Ke(a),!0)}"`)}add(t,i,a=!1){const r=this.list.find(s=>s.type===t&&s.target===i);if(r)return r.id;const p=`rId${String(this.list.length+1)}`;return this.list.push({id:p,type:t,target:i,...a?{external:a}:{}}),p}xml(){return M+n("Relationships",{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},...this.list.map(t=>n("Relationship",{Id:t.id,Type:t.type,Target:t.target,TargetMode:t.external?"External":void 0})))}}class Qe{list=[];add(t,i){return this.list.push({chart:t,frame:i}),`../charts/chart${String(this.list.length)}.xml`}}class et{parts=new Map;byHash=new Map;add(t,i,a,r){const p=Te("sha256").update(t).digest("hex"),s=this.byHash.get(`${a}:${p}`);if(s)return s;const d=r?.split("/").pop()?.replace(/\.[^.]*$/u,"").replace(/[^A-Za-z0-9_-]+/gu,"-").replace(/^-+|-+$/gu,""),f=d===void 0||d===""?void 0:d;let u=`${f??`${a}${String(this.parts.size+1)}`}.${i}`;for(let P=2;this.parts.has(`ppt/media/${u}`);P++)u=`${f??a}-${String(P)}.${i}`;return this.parts.set(`ppt/media/${u}`,t),this.byHash.set(`${a}:${p}`,`../media/${u}`),`../media/${u}`}}function be(e){return e.kind==="component"||e.kind==="movie"?!1:e.kind==="picture"?Q[D(e.media?.path??"")]!==void 0:!0}function se(e){return e.kind==="component"||e.kind==="movie"?!0:e.kind==="picture"?Q[D(e.media?.path??"")]===void 0:!1}export function picturedShapes(e){return e.slides.flatMap(t=>t.shapes.filter(i=>se(i)).map(i=>({key:`${t.id}/${i.name}`,slide:t.id,shape:i.name,frame:i.frame})))}export function filesOf(e){const t=new Set;for(const i of e.masters)for(const a of[...i.shapes,...i.layouts.flatMap(r=>r.shapes)])a.media&&be(a)&&t.add(fe(a.media.base,a.media.path));for(const i of e.slides){i.background_picture!==void 0&&t.add(i.background_picture);for(const a of i.shapes)a.media&&(a.kind==="picture"||a.kind==="movie")&&t.add(a.media.path)}return[...t].sort()}const tt=n("p:nvGrpSpPr",{},n("p:cNvPr",{id:1,name:""}),n("p:cNvGrpSpPr"),n("p:nvPr")),nt=n("p:grpSpPr",{},n("a:xfrm",{},n("a:off",{x:0,y:0}),n("a:ext",{cx:0,cy:0}),n("a:chOff",{x:0,y:0}),n("a:chExt",{cx:0,cy:0}))),Z=e=>n("p:spTree",{},tt,nt,...e),_e={bg1:"lt1",tx1:"dk1",bg2:"lt2",tx2:"dk2",accent1:"accent1",accent2:"accent2",accent3:"accent3",accent4:"accent4",accent5:"accent5",accent6:"accent6",hlink:"hlink",folHlink:"folHlink"},ee=e=>n("p:bg",{},n("p:bgPr",{},n("a:solidFill",{},Ye(e)),n("a:effectLst")));function at(e,t,i){if(e.background_picture!==void 0){const a=i(e.background_picture);if(a!==void 0)return n("p:bg",{},n("p:bgPr",{},n("a:blipFill",{dpi:0,rotWithShape:1},n("a:blip",{"r:embed":a}),n("a:srcRect"),n("a:stretch",{},n("a:fillRect"))),n("a:effectLst")))}return e.background_gradient?n("p:bg",{},n("p:bgPr",{},qe(e.background_gradient),n("a:effectLst"))):le(e.background,t)?"":ee(e.background)}const le=(e,t)=>JSON.stringify(e)===JSON.stringify(t);function Se(e){return{...e.fill_transparency===void 0?{}:{fillTransparency:e.fill_transparency,...e.fill===void 0?{}:{fill:e.fill}},...e.gradient?{gradient:e.gradient}:{},...e.shadow?{shadow:e.shadow}:{}}}function te(e){const t=i=>({...e.fill===void 0||"fill"in i&&le(e.fill,i.fill)?{}:{fill:e.fill},...e.line===void 0||le(e.line,i.line)?{}:{line:e.line},...e.line_width===void 0||e.line_width===i.line_width?{}:{lineWidth:e.line_width}});return e.kind==="autoshape"?ae(e.geometry)?{style:"connector",...t(Ce)}:{style:"shape",...t(Oe)}:{...e.kind==="textbox"?{fill:e.fill??null}:e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},...e.line_width===void 0?{}:{lineWidth:e.line_width}}}const ot=(e,t)=>Array.from({length:Math.max(e.length,t.length)},(i,a)=>{const r=e[a]??{},p=t[a]??{},s={...r.font,...p.font};return{...r,...p,...Object.keys(s).length>0?{font:s}:{}}});function ke(e,t,i,a,r,p,s,d){const f=a!==void 0&&r!==void 0&&JSON.stringify(a.text_styles.other)!==JSON.stringify(r.text_styles.other);return X("p:txBody",V(re(t,d),s,e==="autoshape"?{rtlCol:0}:{}),A(f?ot(a.text_styles.other,t.levels):t.levels),i,p,d)}const it="{2D5ABB26-0587-4C30-8999-92F81FD0307C}",rt=[["left","a:lnL"],["right","a:lnR"],["top","a:lnT"],["bottom","a:lnB"]];function we(e,t){return n("a:tbl",{},n("a:tblPr",{firstRow:e.first_row?1:void 0,firstCol:e.first_col?1:void 0,lastRow:e.last_row?1:void 0,lastCol:e.last_col?1:void 0,bandRow:e.horz_banding?1:void 0,bandCol:e.vert_banding?1:void 0},n("a:tableStyleId",{},it)),n("a:tblGrid",{},...e.columns.map(i=>n("a:gridCol",{w:i}))),...e.rows.map((i,a)=>n("a:tr",{h:i.height},...i.cells.map((r,p)=>{const s=r.text.own??r.text,d=$e(r.fileText,r.text.style),f=i.cells[p-1],u=e.rows[a-1]?.cells[p];return n("a:tc",{gridSpan:r.span_width,rowSpan:r.span_height,hMerge:r.spanned&&f&&(f.spanned||f.span_width)?1:void 0,vMerge:r.spanned&&u&&(u.spanned||u.span_height)?1:void 0},X("a:txBody",n("a:bodyPr"),n("a:lstStyle"),r.text.paragraphs,t,d),n("a:tcPr",{marL:s.margin_left,marR:s.margin_right,marT:s.margin_top,marB:s.margin_bottom,anchor:re(s,d).vertical_anchor},...rt.map(([P,U])=>{const I=r.borders?.[P];return I?n(U,{w:I.width},xe(I.color)):""}),r.fill===void 0?"":xe(r.fill)))}))))}const de=e=>e.group===void 0?{}:{group:e.group},ne=e=>({...e.line_dash===void 0?{}:{lineDash:e.line_dash},...e.line_begin===void 0?{}:{lineBegin:e.line_begin},...e.line_end===void 0?{}:{lineEnd:e.line_end}});function pe(e,t,i){return e.map(a=>{const r=a.kind==="cxn"?t.get(a.id)?.connect:void 0;if(!r)return a;const p=f=>{const u=f&&i(f.shape);return f&&u!==void 0?{id:u,idx:f.site}:void 0},s=p(r.begin),d=p(r.end);return s||d?{...a,connect:{...s?{begin:s}:{},...d?{end:d}:{}}}:a})}const Me=e=>new Map(e.map((t,i)=>[i+2,t])),ve=e=>t=>e.find(i=>i.name===t)?.id;function Pe(e,t,i,a,r,p,s){const d={...Se(e),id:t,name:e.name,...e.frame?{frame:e.frame}:{},...e.rotation===void 0?{}:{rotation:e.rotation},...e.flip?{flip:e.flip}:{}};if(e.kind==="placeholder"&&e.placeholder){const f=s.on==="master"?{...Re(e.placeholder.type),...e.text}:e.text;return{...d,kind:"sp",placeholder:{...e.placeholder},...e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},...e.line_width===void 0?{}:{lineWidth:e.line_width},...e.fill===void 0&&e.line===void 0?{}:{geometry:e.geometry??"rect"},text:X("p:txBody",f?V(f):n("a:bodyPr"),A(f?.levels??[]),e.placeholder.type==="sldNum"?Ue:He,p)}}if(be(e)){if(e.table)return{...d,kind:"table",table:we(e.table,p)};if(e.kind==="picture"&&e.media){const f=r(fe(e.media.base,e.media.path));return f?{...d,kind:"pic",picture:{image:i.add(c.image,a.add(f,D(e.media.path),"image",e.media.path))},descr:e.media.path.split("/").pop()??""}:void 0}return!e.path&&ae(e.geometry)?{...d,kind:"cxn",geometry:e.geometry??"line",...e.adjustments?{adjustments:e.adjustments}:{},...te(e),...ne(e)}:{...d,kind:"sp",...e.kind==="textbox"?{textbox:!0}:{},...e.path?{path:e.path}:{geometry:e.geometry??"rect"},...e.adjustments?{adjustments:e.adjustments}:{},...te(e),...ne(e),...e.text?{text:ke(e.kind,e.text,e.text.paragraphs,s.master,s.first,p)}:{}}}}function $e(e,t){if(!e)return;const i=e.numbered!==void 0||e.bullet!==void 0&&e.bullet!==!1;return{font:{...e.size===void 0?{}:{size:oe(e.size)},...e.bold===void 0?{}:{bold:e.bold},...e.italic===void 0?{}:{italic:e.italic},...e.underline===void 0?{}:{underline:e.underline},...e.strike===void 0?{}:{strike:e.strike},...e.font===void 0?{}:{name:e.font},...e.color===void 0?{}:{color:Ie(e.color)}},paragraph:{...e.align===void 0?{}:{alignment:e.align},...e.line_spacing===void 0?{}:{line_spacing:{lines:e.line_spacing}},...e.space_before===void 0?{}:{space_before:oe(e.space_before)},...e.space_after===void 0?{}:{space_after:oe(e.space_after)},...e.numbered!==void 0?{numbered:e.numbered}:e.bullet===void 0?{}:{bullet:e.bullet===!1?null:e.bullet}},...i&&t?{levels:t.levels.map(a=>({margin_left:a.margin_left,indent:a.indent}))}:{},...e.anchor===void 0?{}:{anchor:e.anchor}}}function st(e,t,i,a,r,p,s,d,f){const u=`${e.id}/${t.name}`,P=p.deck.fitted[u];if(t.level!=="slide"&&!se(t))return;const U=t.level==="slide"&&t.placeholder?{placeholder:{...t.placeholder}}:{},W=!t.placeholder||t.sources.frame.from==="slide"||t.sources.frame.from==="code"?{frame:t.frame}:{},v={...Se(t),id:i,name:t.name,...U,...W,...t.rotation===void 0?{}:{rotation:t.rotation},...t.flip?{flip:t.flip}:{},...t.alt===void 0?{}:{descr:t.alt},...t.locked?{locked:!0}:{}},q=()=>{const y=p.pictures.get(u);return y?{image:a.add(c.image,r.add(y,"png","image"))}:void 0};if(t.table)return{...v,kind:"table",table:we(t.table,s)};if(t.chart)return{...v,frame:t.frame,kind:"chart",chart:a.add(c.chart,f.add(t.chart,t.frame))};if(t.kind==="movie"&&t.media){const y=q(),R=ye[D(t.media.path)]?p.file(t.media.path):void 0;if(!y)return;if(!R)return{...v,frame:t.frame,kind:"pic",picture:y};const L=r.add(R,D(t.media.path),"media",t.media.path);return d.push(i),{...v,frame:t.frame,kind:"pic",picture:{image:y.image},video:{link:a.add(c.video,L),media:a.add(c.media,L)}}}if(se(t)){const y=q(),R=p.movies?.get(u);if(y&&R){const L=r.add(R.bytes,"mp4","media");return d.push(i),{...v,frame:t.frame,kind:"pic",picture:{image:y.image},video:{link:a.add(c.video,L),media:a.add(c.media,L)}}}return y?{...v,frame:t.frame,kind:"pic",picture:y}:void 0}if(t.kind==="picture"&&t.media){const y=p.file(t.media.path);return y?{...v,kind:"pic",picture:{image:a.add(c.image,r.add(y,D(t.media.path),"image",t.media.path)),...t.media.crop?{crop:t.media.crop}:{}},descr:t.alt??t.media.path.split("/").pop()??""}:void 0}if(!t.path&&ae(t.geometry))return{...v,kind:"cxn",geometry:t.geometry??"line",...t.adjustments?{adjustments:t.adjustments}:{},...te(t),...ne(t)};const $=t.text,K=p.deck.masters.find(y=>y.name===e.master),F=$e(t.fileText,$?.style),J=$?t.placeholder?X("p:txBody",V(re({},F),P),n("a:lstStyle"),$.paragraphs,s,F):$.own?ke(t.kind,$.own,$.paragraphs,K,p.deck.masters[0],s,P,F):X("p:txBody",V(Ge($.style),P),A($.style.levels.map(ue)),$.paragraphs,s):void 0,Y=t.sources.frame.from==="code",C=t.fill!==void 0&&(Y||t.sources.fill?.from==="slide"),z=t.line!==void 0&&(Y||t.sources.line?.from==="slide");return{...v,kind:"sp",...t.kind==="textbox"?{textbox:!0}:{},...t.path?{path:t.path}:!t.placeholder||C||z?{geometry:t.geometry??"rect"}:{},...t.adjustments?{adjustments:t.adjustments}:{},...ne(t),...t.placeholder?{...C?{fill:t.fill}:{},...z?{line:t.line}:{},...t.line_width===void 0?{}:{lineWidth:t.line_width}}:te(t),...J?{text:J}:{}}}const lt={cx:6858e3,cy:9144e3};function Le(e,t){const i=he({id:2,name:"Slide Image Placeholder 1",kind:"sp",placeholder:{type:"sldImg",idx:2},...e===void 0?{frame:{left:1143e3,top:685800,width:4572e3,height:3429e3}}:{}}),a=he({id:3,name:"Notes Placeholder 2",kind:"sp",placeholder:{type:"body",idx:3,sz:"quarter"},...e===void 0?{frame:{left:685800,top:4343400,width:5486400,height:4114800}}:{},text:X("p:txBody",n("a:bodyPr"),n("a:lstStyle"),(e??"").split(`
|
|
3
|
+
`).map(r=>({runs:[{text:r}],level:0})),t)});return[i,a]}export function pptxParts(e){const{deck:t}=e,i=t.lang?.split("-").map((o,m)=>m===0?o.toLowerCase():o.toUpperCase()).join("-"),a=new Map,r=new et,p=new Qe,s=[],d=new O,f=[],u=new Map;let P=2147483648;t.masters.forEach((o,m)=>{const h=m+1,k=P++,x=`ppt/slideMasters/slideMaster${String(h)}.xml`,b=`ppt/theme/theme${String(h)}.xml`;a.set(b,ge(t.theme)),s.push([b,S.theme]);const _=new O,T=[];o.layouts.forEach(w=>{const j=u.size+1,l=`ppt/slideLayouts/slideLayout${String(j)}.xml`;u.set(w,l);const g=new O;g.add(c.slideMaster,`../slideMasters/slideMaster${String(h)}.xml`);const N=w.shapes.flatMap((ce,De)=>{const me=Pe(ce,De+2,g,r,e.file,i,{master:o,first:e.deck.masters[0],on:"layout"});return me?[{...me,...de(ce)}]:[]});a.set(l,M+n("p:sldLayout",{...E,...w.display_master_shapes===!1?{showMasterSp:0}:{},preserve:1},n("p:cSld",{name:w.name},w.background===void 0?"":ee(w.background),Z(ie(pe(N,Me(w.shapes),ve(N))))),n("p:clrMapOvr",{},n("a:masterClrMapping")))),a.set(`ppt/slideLayouts/_rels/slideLayout${String(j)}.xml.rels`,g.xml()),s.push([l,S.slideLayout]),T.push(n("p:sldLayoutId",{id:P++,"r:id":_.add(c.slideLayout,`../slideLayouts/slideLayout${String(j)}.xml`)}))}),_.add(c.theme,`../theme/theme${String(h)}.xml`);const H=o.shapes.flatMap((w,j)=>{const l=Pe(w,j+2,_,r,e.file,i,{master:o,first:e.deck.masters[0],on:"master"});return l?[{...l,...de(w)}]:[]}),G=o.text_styles;a.set(x,M+n("p:sldMaster",E,n("p:cSld",{name:o.name},ee(o.background),Z(ie(pe(H,Me(o.shapes),ve(H))))),n("p:clrMap",_e),n("p:sldLayoutIdLst",{},...T),n("p:txStyles",{},A(G.title,"p:titleStyle"),A(G.body,"p:bodyStyle"),A(G.other,"p:otherStyle")))),a.set(`ppt/slideMasters/_rels/slideMaster${String(h)}.xml.rels`,_.xml()),s.push([x,S.slideMaster]),f.push(n("p:sldMasterId",{id:k,"r:id":d.add(c.slideMaster,`slideMasters/slideMaster${String(h)}.xml`)}))});const U=t.slides.some(o=>o.notes!==void 0),I=`ppt/theme/theme${String(t.masters.length+1)}.xml`;let W="";if(U){a.set(I,ge(t.theme)),s.push([I,S.theme]);const o=new O;o.add(c.theme,`../theme/theme${String(t.masters.length+1)}.xml`),a.set("ppt/notesMasters/notesMaster1.xml",M+n("p:notesMaster",E,n("p:cSld",{},ee("lt1"),Z(Le(void 0,i))),n("p:clrMap",_e))),a.set("ppt/notesMasters/_rels/notesMaster1.xml.rels",o.xml()),s.push(["ppt/notesMasters/notesMaster1.xml",S.notesMaster]),W=d.add(c.notesMaster,"notesMasters/notesMaster1.xml")}const v=[],q=new Map(t.masters.flatMap(o=>o.layouts.map(m=>[m.name,m]))),$=o=>{const m=new Set,h=t.slides[o];for(const[k,x]of[[t.slides[o-1],h],[h,t.slides[o+1]]])if(k&&x&&x.transition?.type==="morph")for(const b of k.shapes)b.level==="slide"&&x.shapes.some(_=>_.name===b.name)&&m.add(b.name);return m};t.slides.forEach((o,m)=>{const h=m+1,k=`ppt/slides/slide${String(h)}.xml`,x=new O,b=q.get(o.layout),_=b?u.get(b):void 0;_&&x.add(c.slideLayout,`../${_.slice(4)}`);const T=[],H=new Map,G=new Map;let w=1;const j=o.shapes.flatMap(l=>{const g=st(o,l,++w,x,r,e,i,T,p);if(!g)return w--,[];H.set(l.name,g.id),G.set(g.id,l);const N=$(m).has(l.name)?{name:`!!${g.name}`}:{};return[{...g,...de(l),...N}]});if(o.notes!==void 0){const l=`ppt/notesSlides/notesSlide${String(h)}.xml`,g=new O;g.add(c.notesMaster,"../notesMasters/notesMaster1.xml"),g.add(c.slide,`../slides/slide${String(h)}.xml`),a.set(l,M+n("p:notes",E,n("p:cSld",{},Z(Le(o.notes,i))),n("p:clrMapOvr",{},n("a:masterClrMapping")))),a.set(`ppt/notesSlides/_rels/notesSlide${String(h)}.xml.rels`,g.xml()),s.push([l,S.notesSlide]),x.add(c.notesSlide,`../notesSlides/notesSlide${String(h)}.xml`)}a.set(k,M+n("p:sld",{...E,show:o.hidden?0:void 0},n("p:cSld",{name:o.id},at(o,b?.background??t.masters.find(l=>l.name===o.master)?.background,l=>{const g=e.file(l);return g&&Q[D(l)]!==void 0?x.add(c.image,r.add(g,D(l),"image",l)):void 0}),x.linked(Z(ie(pe(j,G,l=>H.get(l)))))),n("p:clrMapOvr",{},n("a:masterClrMapping")),Je(o.transition,o.advance),We(o.animations,T,l=>H.get(l),l=>o.shapes.find(g=>g.name===l)?.text!==void 0,t,new Map(o.shapes.flatMap(l=>{const g=e.movies?.get(`${o.id}/${l.name}`),N=l.kind==="movie"&&l.media?e.lengths?.get(l.media.path):g?.seconds;return N===void 0?[]:[[l.name,N]]}))))),a.set(`ppt/slides/_rels/slide${String(h)}.xml.rels`,x.xml()),s.push([k,S.slide]),v.push(n("p:sldId",{id:256+m,"r:id":d.add(c.slide,`slides/slide${String(h)}.xml`)}))}),d.add(c.theme,"theme/theme1.xml"),d.add(c.presProps,"presProps.xml"),d.add(c.viewProps,"viewProps.xml"),d.add(c.tableStyles,"tableStyles.xml");const K=new Map;let F=0;const J=(e.fonts??[]).flatMap(o=>{const m=Ve.flatMap(([h,k,x])=>{const b=o[h]&&Ae(o[h],o.typeface,x),_=b&&Fe(b);if(!b||!_)return[];const T=`fonts/font${String(++F)}.fntdata`;return K.set(`ppt/${T}`,ze(b,_,o.typeface,x)),[n(k,{"r:id":d.add(c.font,T)})]});return m.length===0?[]:[n("p:embeddedFont",{},n("p:font",{typeface:o.typeface}),...m)]}),Y=J.length===0?"":n("p:embeddedFontLst",{},...J);a.set("ppt/presentation.xml",M+n("p:presentation",{...E,...Y===""?{}:{embedTrueTypeFonts:1},saveSubsetFonts:1},n("p:sldMasterIdLst",{},...f),W===""?"":n("p:notesMasterIdLst",{},n("p:notesMasterId",{"r:id":W})),n("p:sldIdLst",{},...v),n("p:sldSz",{cx:t.width,cy:t.height}),n("p:notesSz",lt),Y,e.deck.masters[0]?A(Be(e.deck.masters[0]).map(ue),"p:defaultTextStyle"):"")),a.set("ppt/_rels/presentation.xml.rels",d.xml()),s.push(["ppt/presentation.xml",S.presentation]),a.set("ppt/presProps.xml",M+n("p:presentationPr",E)),a.set("ppt/viewProps.xml",M+n("p:viewPr",E)),a.set("ppt/tableStyles.xml",M+n("a:tblStyleLst",{"xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main",def:"{5C22544A-7EE6-4342-B048-85BDC9FD1C3A}"})),s.push(["ppt/presProps.xml",S.presProps]),s.push(["ppt/viewProps.xml",S.viewProps]),s.push(["ppt/tableStyles.xml",S.tableStyles]),a.set("docProps/core.xml",M+n("cp:coreProperties",{"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/"},e.title===void 0?"":`<dc:title>${Ze(e.title)}</dc:title>`)),a.set("docProps/app.xml",M+n("Properties",{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"},n("Application",{},"AllyHub"),n("Slides",{},String(t.slides.length)),n("Notes",{},String(t.slides.filter(o=>o.notes!==void 0).length)),n("HiddenSlides",{},String(t.slides.filter(o=>o.hidden).length)))),s.push(["docProps/core.xml",S.core]),s.push(["docProps/app.xml",S.app]);const C=new O;C.add(c.officeDocument,"ppt/presentation.xml"),C.add(c.core,"docProps/core.xml"),C.add(c.app,"docProps/app.xml");const z=new Map;p.list.forEach(({chart:o,frame:m},h)=>{const k=String(h+1),x=`ppt/charts/chart${k}.xml`,b=new O,_=`Microsoft_Excel_Sheet${k}.xlsx`;z.set(`ppt/embeddings/${_}`,je(o)),a.set(x,Ne(o,m,b.add(c.package,`../embeddings/${_}`))),a.set(`ppt/charts/_rels/chart${k}.xml.rels`,b.xml()),s.push([x,S.chart])});const y=new Set([...r.parts.keys(),...z.keys()].map(D)),R=M+n("Types",{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},n("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),n("Default",{Extension:"xml",ContentType:"application/xml"}),F>0?n("Default",{Extension:"fntdata",ContentType:"application/x-fontdata"}):"",...[...y].sort().map(o=>n("Default",{Extension:o,ContentType:o==="xlsx"?S.workbook:Q[o]??ye[o]??"application/octet-stream"})),...s.map(([o,m])=>n("Override",{PartName:`/${o}`,ContentType:m}))),L=new TextEncoder,B=new Map;B.set("[Content_Types].xml",L.encode(R)),B.set("_rels/.rels",L.encode(C.xml()));for(const[o,m]of a)B.set(o,L.encode(m));for(const[o,m]of r.parts)B.set(o,m);for(const[o,m]of z)B.set(o,m);for(const[o,m]of K)B.set(o,m);return B}const dt=new Date(1980,0,1);export function writePptx(e){const t={};for(const[i,a]of pptxParts(e))t[i]=[a,{level:/\.(png|jpe?g|gif|mp4|m4v|mov)$/u.test(i)?0:6,mtime:dt}];return Ee(t)}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{consoleAt as
|
|
2
|
+
import{consoleAt as m}from"@allyhub/piece/page";import{createEnv as k}from"@allyhub/image-draw/env";import{loadTextFonts as E}from"@allyhub/image-draw/fonts";import{pictureWaiter as $}from"@allyhub/image-draw/pictures";import{themeOver as v}from"@allyhub/slides-core";import{CLEAN_LOOK as S,SEEK_LIMIT as O,isGraphicLayer as j,lookCss as C,readPropsText as T}from"@allyhub/piece";import{themeCss as M}from"./draw.js";import{importDeck as L,loadStyles as P,lookTheme as A,moduleComponents as I,stageContext as K}from"./load.js";async function _(t){if(t.kind==="slides"){const o=await L(t);return{components:o.components,...o.theme===void 0?{}:{theme:o.theme}}}await P(t);const p=await import(t.module);return{components:I(p)}}export async function componentStage(t,p,o){const f=k(t,p,void 0,t.kind==="slides"?"slides":void 0),d=await _(t),u=t.looks?.clean??S,b={...C(u),...M(v(A(t),d.theme))};document.documentElement.style.background="transparent",document.body.style.background="transparent";let l=[];const w=()=>{for(const e of l)m({phase:"mount",layer:e.layer.component},()=>{e.layer.unmount?.(e.el,e.layer.props,e.ctx)});l=[],o.replaceChildren()};return{async draw(e){w();const s=d.components[e.name];if(!s)throw new Error(`There is no component ${e.name} in ${t.file} (it has ${Object.keys(d.components).join(", ")||"none"}).`);Object.assign(o.style,{position:"relative",width:`${String(e.width)}px`,height:`${String(e.height)}px`,overflow:"hidden",background:"transparent"});for(const[n,a]of Object.entries(b))o.style.setProperty(n,a);let y=e.props;if(t.kind==="doc"){const n=T(s,e.props);if(n.problems.length>0)throw new Error(n.problems.join("; "));y=n.props}const g=[],x=m({phase:"build"},()=>s.layers(y,{width:e.width,height:e.height,slide:""}));for(const[n,a]of x.entries()){if(!j(a))throw new Error(`${e.name}'s layers: item ${String(n+1)} is not a graphic layer (custom() or a component).`);const r=a,i=document.createElement("div");Object.assign(i.style,{position:"absolute",inset:"0px"}),o.append(i);const c=K({look:u,width:e.width,height:e.height,start:0,end:Math.max(e.t,0)+1,combo:f.combo,format:`${String(Math.round(e.width))}x${String(Math.round(e.height))}`,asset:h=>f.log.asset(h),wait:h=>g.push(h),report:()=>{}});l.push({layer:r,el:i,ctx:c}),m({phase:"mount",layer:r.component,index:n},()=>{r.mount(i,r.props,c)}),m({phase:"render",layer:r.component,index:n},()=>{r.render(i,Math.max(0,e.t),r.props,c)})}return await E(o),await Promise.all(g),await $(o)(O*1e3),{...s.label===void 0?{}:{label:s.label},props:s.props}},dispose:w}}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{adjustmentDefaults as z,chartDrawing as B,colorRgb as G,CONNECTOR_STYLE as U,DECK_FONTS as Z,EMU_PER_PT as
|
|
3
|
-
`),o)){if(!b.ea){g.append(b.text);continue}const p=document.createElement("span");p.style.fontFamily=m,p.textContent=b.text,g.append(p)}d.append(g)}e.append(d)})}export const isCjk=e=>e!==void 0&&/^(zh|ja|ko)(-|$)/iu.test(e);function k(e,t,i,r){const{style:n}=e,o=n.auto_size==="shape",s=document.createElement("div");s.dataset.akText="",s.dataset.akAutofit=n.auto_size,Object.assign(s.style,{position:o?"relative":"absolute",inset:o?"auto":"0px",minHeight:"100%",display:"flex",flexDirection:"column",justifyContent:V[n.vertical_anchor],padding:`${String(n.margins.top*t)}px ${String(n.margins.right*t)}px ${String(n.margins.bottom*t)}px ${String(n.margins.left*t)}px`,whiteSpace:n.word_wrap?"pre-wrap":"pre",overflowWrap:"break-word",boxSizing:"border-box"});const a=document.createElement("div");return a.dataset.akBody="",s.append(a),tt(a,e,t,i,r),i!==void 0&&(s.lang=i),isCjk(i)&&(s.dataset.akCjk=""),s}export function fitText(e){const t=e.querySelector("[data-ak-body]");if(!t||e.dataset.akAutofit!=="text")return 1;const i=e.clientHeight-parseFloat(getComputedStyle(e).paddingTop)-parseFloat(getComputedStyle(e).paddingBottom),r=s=>(e.style.setProperty("--ak-fit",String(s)),t.scrollHeight<=i+.5);if(r(1))return delete e.dataset.akFontScale,1;let n=MIN_FONT_SCALE,o=1;if(!r(n))return e.dataset.akFontScale=n.toFixed(2),n;for(;o-n>.01;){const s=(n+o)/2;r(s)?n=s:o=s}return r(n),e.dataset.akFontScale=n.toFixed(2),n}function et(e,t,i,r){const n=e.split(" "),o=[],s=a=>{const u=Number(n[a]),d=Number(n[a+1]);return[r?.h?t-u:u,r?.v?i-d:d]};for(let a=0;a<n.length;){const u=n[a++];u==="M"||u==="L"?(o.push({op:u,at:[s(a)]}),a+=2):u==="C"?(o.push({op:u,at:[s(a),s(a+2),s(a+4)]}),a+=6):u==="Z"&&o.push({op:u})}return o}const nt=e=>e.map(t=>t.op==="Z"?"Z":`${t.op}${t.at.map(([i,r])=>`${String(i)} ${String(r)}`).join(" ")}`).join(" ");function it(e,t){const i=e.flatMap(o=>o.op==="Z"?[]:o.at),r=t?[...i].reverse():i,n=r[0];if(n)for(const o of r.slice(1)){const s=Math.hypot(n[0]-o[0],n[1]-o[1]);if(s>1e-6)return{at:n,out:[(n[0]-o[0])/s,(n[1]-o[1])/s]}}}function ot(e,t,i,r){const n=e.filter(a=>a.op!=="Z"),o=t?n[n.length-1]:n[0];if(!o)return;const s=t?o.at.slice(o.op==="C"?-2:-1):[...o.at,...n[1]?.op==="C"?n[1].at.slice(0,1):[]];for(const a of s)a[0]+=i,a[1]+=r}function rt(e,t,i,r,n){if(t.line===null)return;const o=t.frame.width*i,s=t.frame.height*i,a=(F(t.geometry??"line",o,s,t.adjustments)?.paths??[]).filter(p=>p.stroke).map(p=>et(p.d,o,s,t.flip)),u=a[0],d=a[a.length-1];if(!u||!d)return;const f="http://www.w3.org/2000/svg",c=document.createElementNS(f,"svg");c.setAttribute("width",String(Math.max(o,1))),c.setAttribute("height",String(Math.max(s,1))),Object.assign(c.style,{position:"absolute",left:"0px",top:"0px",overflow:"visible"});const l=colorCss(t.line??U.line,n),g=Math.max(r,lt*i),m=p=>p===void 0||p==="none"||p==="arrow"?0:g*1.5,b=[];for(const[p,S,h]of[[t.line_begin,u,!1],[t.line_end,d,!0]]){const w=it(S,h);if(!w)continue;const[I,P]=w.at,[j,C]=w.out,O=at(p,I,P,j,C,r,g,l);O&&b.push(O);const $=m(p);$>0&&ot(S,h,-j*$,-C*$)}for(const p of a){const S=document.createElementNS(f,"path");S.setAttribute("d",nt(p)),S.setAttribute("fill","none"),S.setAttribute("stroke",l),S.setAttribute("stroke-width",String(r));const h=L(t.line_dash,r);h&&S.setAttribute("stroke-dasharray",h),c.append(S)}c.append(...b),e.append(c)}const st={sysDash:[3,1],sysDot:[1,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]},L=(e,t)=>e&&st[e]?.map(i=>String(i*t)).join(" "),lt=25200;function at(e,t,i,r,n,o,s,a){if(e===void 0||e==="none")return;const u="http://www.w3.org/2000/svg",d=s*(e==="arrow"?3.5:3),f=(m,b)=>`${String(t-r*m-n*b)},${String(i-n*m+r*b)}`;if(e==="oval"){const m=document.createElementNS(u,"circle");return m.setAttribute("cx",String(t)),m.setAttribute("cy",String(i)),m.setAttribute("r",String(d/2)),m.setAttribute("fill",a),m}const c=e==="arrow",l=document.createElementNS(u,c?"polyline":"polygon"),g={triangle:[f(0,0),f(d,d/2),f(d,-d/2)],stealth:[f(0,0),f(d,d/2),f(d*.7,0),f(d,-d/2)],diamond:[f(-d/2,0),f(0,d/2),f(d/2,0),f(0,-d/2)],arrow:[f(d,d/2),f(0,0),f(d,-d/2)]}[e];return l.setAttribute("points",g.join(" ")),c?(l.setAttribute("fill","none"),l.setAttribute("stroke",a),l.setAttribute("stroke-width",String(o))):l.setAttribute("fill",a),l}function ct(e,t,i,r,n,o){const s=t.frame.width*r,a=t.frame.height*r,u="http://www.w3.org/2000/svg",d=document.createElementNS(u,"svg");d.setAttribute("width",String(Math.max(s,1))),d.setAttribute("height",String(Math.max(a,1))),Object.assign(d.style,{position:"absolute",left:"0px",top:"0px",overflow:"visible"}),D(d,t);let f=colorCss(t.fill,o);if(t.gradient){const c=`ak-gradient-${String(gt++)}`;d.append(mt(u,c,t.gradient,t.frame,o)),f=`url(#${c})`}for(const c of i){const l=document.createElementNS(u,"path");if(l.setAttribute("d",c.d),l.setAttribute("fill-rule","evenodd"),l.setAttribute("fill",c.fill==="none"||t.fill===null||t.fill===void 0?c.fill==="none"||!t.gradient?"none":f:c.fill==="norm"?f:dt[c.fill](colorCss(t.fill,o))),t.fill_transparency!==void 0&&l.setAttribute("fill-opacity",String(1-t.fill_transparency)),c.stroke&&t.line!==void 0&&t.line!==null){l.setAttribute("stroke",colorCss(t.line,o)),l.setAttribute("stroke-width",String(n)),l.setAttribute("stroke-linejoin","round");const g=L(t.line_dash,n);g&&l.setAttribute("stroke-dasharray",g)}d.append(l)}e.append(d)}const dt={darken:e=>`color-mix(in srgb, ${e} 60%, black)`,darkenLess:e=>`color-mix(in srgb, ${e} 80%, black)`,lighten:e=>`color-mix(in srgb, ${e} 60%, white)`,lightenLess:e=>`color-mix(in srgb, ${e} 80%, white)`};function ut(e,t){const i=e.path;if(!i)return[];const r=i.w===0?0:e.frame.width*t/i.w,n=i.h===0?0:e.frame.height*t/i.h;return[{d:i.steps.map(s=>s.op==="close"?"Z":s.op==="move"?`M${String(s.x*r)} ${String(s.y*n)}`:s.op==="line"?`L${String(s.x*r)} ${String(s.y*n)}`:`C${String(s.x1*r)} ${String(s.y1*n)} ${String(s.x2*r)} ${String(s.y2*n)} ${String(s.x*r)} ${String(s.y*n)}`).join(""),fill:"norm",stroke:!0}]}function D(e,t){!t.flip?.h&&!t.flip?.v||(e.style.transform=`scale(${t.flip.h?"-1":"1"}, ${t.flip.v?"-1":"1"})`)}const ft=new Set(["rect","roundRect","ellipse"]),E=(e,t,i)=>t===void 0||t===0?colorCss(e,i):`color-mix(in srgb, ${colorCss(e,i)} ${String((1-t)*100)}%, transparent)`,T=(e,t)=>`linear-gradient(${String(e.angle+90)}deg, ${e.stops.map(i=>`${E(i.color,i.transparency,t)} ${String(i.at*100)}%`).join(", ")})`,H=(e,t)=>e.gradient?T(e.gradient,t):e.fill===null||e.fill===void 0?"transparent":E(e.fill,e.fill_transparency,t);let gt=0;function mt(e,t,i,r,n){const o=document.createElementNS(e,"linearGradient");o.id=t;const s=i.angle*Math.PI/180,a=Math.cos(s),u=Math.sin(s),d=(Math.abs(r.width*a)+Math.abs(r.height*u))/Math.max(r.width,r.height,1)/2;o.setAttribute("x1",String(.5-a*d)),o.setAttribute("y1",String(.5-u*d)),o.setAttribute("x2",String(.5+a*d)),o.setAttribute("y2",String(.5+u*d));for(const f of i.stops){const c=document.createElementNS(e,"stop");c.setAttribute("offset",String(f.at)),c.setAttribute("stop-color",colorCss(f.color,n)),f.transparency!==void 0&&c.setAttribute("stop-opacity",String(1-f.transparency)),o.append(c)}return o}function pt(e,t,i,r){const n=t.angle*Math.PI/180,o=t.distance*i;e.style.filter=`drop-shadow(${String(o*Math.cos(n))}px ${String(o*Math.sin(n))}px ${String(t.blur*i)}px ${E(t.color,t.transparency,r)})`}function bt(e,t,i){const r=t.geometry??"rect",n=t.frame.width*i,o=t.frame.height*i;r==="roundRect"?e.style.borderRadius=`${String(Math.min(n,o)*Math.min(.5,Math.max(0,t.adjustments?.[0]??z("roundRect")[0]??0)))}px`:r==="ellipse"&&(e.style.borderRadius="50%")}const St={left:"borderLeft",right:"borderRight",top:"borderTop",bottom:"borderBottom"},R="http://www.w3.org/2000/svg";function xt(e,t,i,r,n){const o=i.width/A,s=i.height/A,a=r*A,u=B(t,o,s),d=document.createElementNS(R,"svg");d.setAttribute("viewBox",`0 0 ${String(o)} ${String(s)}`),d.setAttribute("width","100%"),d.setAttribute("height","100%"),Object.assign(d.style,{position:"absolute",inset:"0px",overflow:"visible"});const f=(l,g)=>{const m=document.createElementNS(R,l);for(const[b,p]of Object.entries(g))m.setAttribute(b,String(p));d.append(m)},c=l=>{f("path",{d:l.d,fill:l.fill===void 0?"none":colorCss(l.fill,n),stroke:l.width>0?colorCss(l.color,n):"none","stroke-width":l.width,"stroke-linejoin":"round"})};for(const l of[...u.grid,...u.shapes])c(l);for(const l of[...u.boxes,...u.keys])f("rect",{x:l.x,y:l.y,width:l.width,height:l.height,fill:colorCss(l.color,n)});for(const l of[...u.axes,...u.lines])c(l);for(const l of u.dots)f("circle",{cx:l.x,cy:l.y,r:l.r,fill:colorCss(l.color,n)});e.append(d);for(const l of u.words){const g=document.createElement("div");g.textContent=l.text,Object.assign(g.style,{position:"absolute",left:`${String(l.x*a)}px`,top:`${String(l.y*a)}px`,transform:`translate(${{start:"0",middle:"-50%",end:"-100%"}[l.anchor]}, -50%)`,fontSize:`${String(l.size*a)}px`,lineHeight:"1",whiteSpace:"nowrap",color:colorCss(l.color,n),fontFamily:"var(--ak-theme-minor)"}),e.append(g)}}function ht(e,t,i,r,n){const o=document.createElement("table");Object.assign(o.style,{borderCollapse:"collapse",tableLayout:"fixed",width:`${String(t.columns.reduce((a,u)=>a+u,0)*i)}px`});const s=document.createElement("colgroup");for(const a of t.columns){const u=document.createElement("col");u.style.width=`${String(a*i)}px`,s.append(u)}o.append(s);for(const[a,u]of t.rows.entries()){const d=document.createElement("tr");d.style.height=`${String(u.height*i)}px`;for(const[f,c]of u.cells.entries()){if(c.spanned)continue;const l=document.createElement("td");l.dataset.akCell=`${String(a)},${String(f)}`,c.span_width&&(l.colSpan=c.span_width),c.span_height&&(l.rowSpan=c.span_height),l.style.padding="0px",l.style.verticalAlign={t:"top",ctr:"middle",b:"bottom"}[c.text.style.vertical_anchor],c.fill!==void 0&&(l.style.background=colorCss(c.fill,n));for(const[m,b]of Object.entries(St)){const p=c.borders?.[m];p&&(l.style[b]=`${String(p.width*i)}px solid ${colorCss(p.color,n)}`)}const g=k(c.text,i,r,n);g.style.minHeight="0px",l.append(g),d.append(l)}o.append(d)}e.style.height="auto",e.append(o)}export function drawShape(e,t,i){const{k:r,colors:n}=i;if(t.kind==="placeholder"&&t.text?.empty===!0&&!i.editing)return;const o=document.createElement("div");o.setAttribute(SHAPE_ATTR,`${e}/${t.name}`);const{left:s,top:a,width:u,height:d}=t.frame;Object.assign(o.style,{position:"absolute",left:`${String(s*r)}px`,top:`${String(a*r)}px`,width:`${String(u*r)}px`,height:`${String(d*r)}px`}),t.rotation!==void 0&&(o.style.transform=`rotate(${String(t.rotation)}deg)`);const f=(t.line_width??LINE_WIDTH)*r;if(t.chart)xt(o,t.chart,t.frame,r,n);else if(t.table)return ht(o,t.table,r,i.lang,n),o;if(t.shadow&&pt(o,t.shadow,r,n),t.alt!==void 0&&o.setAttribute("aria-label",t.alt),t.kind==="autoshape"){if(!t.path&&W(t.geometry))return rt(o,t,r,f,n),o;const c=t.path?ut(t,r):ft.has(t.geometry??"rect")?void 0:F(t.geometry??"rect",t.frame.width*r,t.frame.height*r,t.adjustments)?.paths;if(c)return ct(o,t,c,r,f,n),t.text&&o.append(k(t.text,r,i.lang,n)),o;o.style.background=H(t,n),bt(o,t,r)}else(t.fill!==void 0||t.gradient)&&(o.style.background=H(t,n));if(t.line!==void 0&&t.line!==null&&(o.style.outline=`${String(f)}px ${t.line_dash===void 0||t.line_dash==="solid"?"solid":"dashed"} ${colorCss(t.line,n)}`),t.text?.style.auto_size==="shape"&&(o.style.height="auto",o.style.minHeight="0px",t.text.style.word_wrap||(o.style.width="max-content")),t.kind==="picture"&&t.media){o.style.overflow="hidden";const c=document.createElement("img");c.alt=t.alt??"",c.src=i.url(t.media.path),D(c,t);const l=t.media.crop??{left:0,top:0,right:0,bottom:0},g=1-l.left-l.right,m=1-l.top-l.bottom;Object.assign(c.style,{position:"absolute",width:`${String(100/g)}%`,height:`${String(100/m)}%`,left:`${String(-l.left/g*100)}%`,top:`${String(-l.top/m*100)}%`,maxWidth:"none"}),t.flip&&(c.style.transformOrigin=`${String(50/g-l.left/g*100)}% ${String(50/m-l.top/m*100)}%`),o.append(c)}else if(t.kind==="movie"&&t.media&&!i.playing)o.dataset.akFilm="";else if(t.kind==="movie"&&t.media){const c=document.createElement("video");c.src=i.url(t.media.path),c.muted=!0,c.playsInline=!0,c.preload="auto",t.media.poster!==void 0&&(c.currentTime=t.media.poster),Object.assign(c.style,{width:"100%",height:"100%",objectFit:"fill"}),o.append(c)}return t.text&&o.append(k(t.text,r,i.lang,n)),o}export function drawSlide(e,t){const i=document.createElement("div");i.dataset.akSlide=e.id,Object.assign(i.style,{position:"absolute",inset:"0px",background:colorCss(e.background,t.colors),overflow:"hidden"}),e.background_gradient&&(i.style.background=T(e.background_gradient,t.colors)),e.background_picture!==void 0&&(i.style.background=`${colorCss(e.background,t.colors)} url(${JSON.stringify(t.url(e.background_picture))}) center / 100% 100% no-repeat`);for(const r of e.shapes){const n=drawShape(e.id,r,t);n&&i.append(n)}return i}
|
|
2
|
+
import{adjustmentDefaults as z,chartDrawing as B,colorRgb as G,CONNECTOR_STYLE as U,DECK_FONTS as Z,EMU_PER_PT as v,isConnectorGeometry as W,Pt as K,runLang as q}from"@allyhub/slides-core";import{presetOutline as F}from"@allyhub/ooxml/geometry";export const SHAPE_ATTR="data-ak-shape",LINE_WIDTH=K(.75),SINGLE_SPACING=1.2,MIN_FONT_SCALE=.25;export function themeCss(e){const t={};for(const[i,r]of Object.entries(e.colors))t[`--ak-theme-${i}`]=r;return t["--ak-theme-major"]=y(e.fonts.major,_),t["--ak-theme-minor"]=y(e.fonts.minor,_),t["--ak-theme-major-ea"]=y(e.fonts.major_east_asian,A),t["--ak-theme-minor-ea"]=y(e.fonts.minor_east_asian,A),t}const A='"Noto Sans SC", sans-serif',_=`"${Z.minor}", ${A}`,y=(e,t)=>e.includes(",")||e.includes('"')?e:`"${e}", ${t}`;export const colorCss=(e,t)=>e==null?"transparent":G(e,t);const N=e=>e===void 0?void 0:e==="+mj-lt"?"var(--ak-theme-major)":e==="+mn-lt"?"var(--ak-theme-minor)":y(e,_),J={l:"left",ctr:"center",r:"right",just:"justify"},V={t:"flex-start",ctr:"center",b:"flex-end"},Y=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}\p{Script=Hangul}\u2E80-\u2FDF\u3000-\u303F\uFF00-\uFFEF]/u,Q=/[\u2018\u2019\u201C\u201D\u2026\u2014\u2013\u2025\u00B7]/u;export function eastAsianRuns(e,t){const i=[];for(const r of e){const n=Y.test(r)||t&&Q.test(r),o=i.at(-1);o?.ea===n?o.text+=r:i.push({text:r,ea:n})}return i}const x=e=>`calc(${String(e)}px * var(--ak-fit, 1))`;function M(e,t,i,r){if(!t)return;const n=N(t.name);n&&(e.style.fontFamily=n),t.size!==void 0&&(e.style.fontSize=x(t.size*i)),t.bold!==void 0&&(e.style.fontWeight=t.bold?"700":"400"),t.italic!==void 0&&(e.style.fontStyle=t.italic?"italic":"normal"),(t.underline!==void 0||t.strike!==void 0||t.link)&&(e.style.textDecorationLine=[t.underline===!0||t.link!==void 0?"underline":"",t.strike===!0?"line-through":""].filter(o=>o!=="").join(" ")||"none"),t.highlight!==void 0&&(e.style.backgroundColor=t.highlight),t.baseline!==void 0&&t.baseline!==0&&(e.style.fontSize="0.66em",e.style.verticalAlign=`${String(t.baseline/.66)}em`),t.spacing!==void 0&&(e.style.letterSpacing=x(t.spacing*i)),t.link!==void 0?e.style.color=colorCss("hlink",r):t.color!==void 0&&(e.style.color=colorCss(t.color,r))}function X(){if(document.getElementById("ak-bullet-style"))return;const e=document.createElement("style");e.id="ak-bullet-style",e.textContent="[data-ak-bullet]::before{content:attr(data-ak-bullet)}",document.head.append(e)}export function paragraphStyle(e,t){const i=t[e.level]??t[0];if(!i)throw new Error("A text style has nine levels.");return{...i,...e.alignment===void 0?{}:{alignment:e.alignment},...e.line_spacing===void 0?{}:{line_spacing:e.line_spacing},...e.space_before===void 0?{}:{space_before:e.space_before},...e.space_after===void 0?{}:{space_after:e.space_after},...e.margin_left===void 0?{}:{margin_left:e.margin_left},...e.indent===void 0?{}:{indent:e.indent},...e.numbered===void 0?{}:{numbered:e.numbered},font:{...i.font,...e.font}}}export function numberText(e,t){const i=n=>(n>26?i(Math.floor((n-1)/26)):"")+String.fromCharCode(97+(n-1)%26),r=n=>{const o=[[1e3,"m"],[900,"cm"],[500,"d"],[400,"cd"],[100,"c"],[90,"xc"],[50,"l"],[40,"xl"],[10,"x"],[9,"ix"],[5,"v"],[4,"iv"],[1,"i"]];let s="",a=n;for(const[u,d]of o)for(;a>=u;)s+=d,a-=u;return s};return e==="arabicParenR"?`${String(t)})`:e==="alphaLcPeriod"?`${i(t)}.`:e==="alphaUcPeriod"?`${i(t).toUpperCase()}.`:e==="romanLcPeriod"?`${r(t)}.`:e==="romanUcPeriod"?`${r(t).toUpperCase()}.`:`${String(t)}.`}export function paragraphLabels(e,t){const i=[];return e.map(r=>{const n=paragraphStyle(r,t);i.length=r.level+1,n.numbered===void 0?i[r.level]=0:i[r.level]=(i[r.level]??0)+1;const o=r.runs.some(s=>s.text!==""&&s.text!=="\v");return n.numbered===void 0?o?n.bullet?.char:void 0:numberText(n.numbered,i[r.level]??1)})}export function paragraphElement(e,t,i,r,n,o){const s=paragraphStyle(e,i),a=document.createElement("div");a.dataset.akParagraph=String(t),a.dataset.akLevel=String(e.level);const u=s.font.size*n,d="lines"in s.line_spacing?String(s.line_spacing.lines*SINGLE_SPACING):x(s.line_spacing.fixed*n),f=s.numbered===void 0&&r!==void 0;if(Object.assign(a.style,{position:"relative",textAlign:J[s.alignment],paddingLeft:`${String(s.margin_left*n)}px`,textIndent:f?"0px":`${String(s.indent*n)}px`,marginTop:t===0?"0px":x(s.space_before*n),marginBottom:x(s.space_after*n),lineHeight:d,fontSize:x(u),minHeight:"lines"in s.line_spacing?x(u*s.line_spacing.lines*SINGLE_SPACING):d}),M(a,s.font,n,o),r!==void 0){X();const c=document.createElement("span");c.dataset.akBullet=r;const l=s.numbered===void 0?s.bullet?.font:void 0;Object.assign(c.style,{position:"absolute",left:`${String((s.margin_left+s.indent)*n)}px`,...l===void 0?{}:{fontFamily:N(l)}}),a.append(c)}return a}export const exactSpacing=(e,t)=>!("lines"in paragraphStyle(e,t).line_spacing);export function runElement(e,t,i,r=!1,n){const o=document.createElement("span");M(o,e.font,t,i);const s=e.text===void 0?n:q(e.text,n);return s!==void 0&&s!==n&&(o.lang=s),r&&(o.style.lineHeight="0"),e.font?.link!==void 0&&(o.dataset.akLink=e.font.link),o}export function eastAsianFace(e,t){return`var(--ak-theme-${(e.font?.name??t)==="+mj-lt"?"major":"minor"}-ea)`}function tt(e,t,i,r,n){const o=isCjk(r);e.replaceChildren();const s=paragraphLabels(t.paragraphs,t.style.levels);t.paragraphs.forEach((a,u)=>{const d=paragraphElement(a,u,t.style.levels,s[u],i,n),f=paragraphStyle(a,t.style.levels).font.name,c=exactSpacing(a,t.style.levels);for(const l of a.runs){const g=runElement(l,i,n,c,r),p=eastAsianFace(l,f);for(const b of eastAsianRuns(l.text.replaceAll("\v",`
|
|
3
|
+
`),o)){if(!b.ea){g.append(b.text);continue}const m=document.createElement("span");m.style.fontFamily=p,m.textContent=b.text,g.append(m)}d.append(g)}e.append(d)})}export const isCjk=e=>e!==void 0&&/^(zh|ja|ko)(-|$)/iu.test(e);function k(e,t,i,r){const{style:n}=e,o=n.auto_size==="shape",s=document.createElement("div");s.dataset.akText="",s.dataset.akAutofit=n.auto_size,Object.assign(s.style,{position:o?"relative":"absolute",inset:o?"auto":"0px",minHeight:"100%",display:"flex",flexDirection:"column",justifyContent:V[n.vertical_anchor],padding:`${String(n.margins.top*t)}px ${String(n.margins.right*t)}px ${String(n.margins.bottom*t)}px ${String(n.margins.left*t)}px`,whiteSpace:n.word_wrap?"pre-wrap":"pre",overflowWrap:"break-word",boxSizing:"border-box"});const a=document.createElement("div");return a.dataset.akBody="",s.append(a),tt(a,e,t,i,r),i!==void 0&&(s.lang=i),isCjk(i)&&(s.dataset.akCjk=""),s}export function fitText(e){const t=e.querySelector("[data-ak-body]");if(!t||e.dataset.akAutofit!=="text")return 1;const i=e.clientHeight-parseFloat(getComputedStyle(e).paddingTop)-parseFloat(getComputedStyle(e).paddingBottom),r=s=>(e.style.setProperty("--ak-fit",String(s)),t.scrollHeight<=i+.5);if(r(1))return delete e.dataset.akFontScale,1;let n=MIN_FONT_SCALE,o=1;if(!r(n))return e.dataset.akFontScale=n.toFixed(2),n;for(;o-n>.01;){const s=(n+o)/2;r(s)?n=s:o=s}return r(n),e.dataset.akFontScale=n.toFixed(2),n}function et(e,t,i,r){const n=e.split(" "),o=[],s=a=>{const u=Number(n[a]),d=Number(n[a+1]);return[r?.h?t-u:u,r?.v?i-d:d]};for(let a=0;a<n.length;){const u=n[a++];u==="M"||u==="L"?(o.push({op:u,at:[s(a)]}),a+=2):u==="C"?(o.push({op:u,at:[s(a),s(a+2),s(a+4)]}),a+=6):u==="Z"&&o.push({op:u})}return o}const nt=e=>e.map(t=>t.op==="Z"?"Z":`${t.op}${t.at.map(([i,r])=>`${String(i)} ${String(r)}`).join(" ")}`).join(" ");function it(e,t){const i=e.flatMap(o=>o.op==="Z"?[]:o.at),r=t?[...i].reverse():i,n=r[0];if(n)for(const o of r.slice(1)){const s=Math.hypot(n[0]-o[0],n[1]-o[1]);if(s>1e-6)return{at:n,out:[(n[0]-o[0])/s,(n[1]-o[1])/s]}}}function ot(e,t,i,r){const n=e.filter(a=>a.op!=="Z"),o=t?n[n.length-1]:n[0];if(!o)return;const s=t?o.at.slice(o.op==="C"?-2:-1):[...o.at,...n[1]?.op==="C"?n[1].at.slice(0,1):[]];for(const a of s)a[0]+=i,a[1]+=r}function rt(e,t,i,r,n){if(t.line===null)return;const o=t.frame.width*i,s=t.frame.height*i,a=(F(t.geometry??"line",o,s,t.adjustments)?.paths??[]).filter(m=>m.stroke).map(m=>et(m.d,o,s,t.flip)),u=a[0],d=a[a.length-1];if(!u||!d)return;const f="http://www.w3.org/2000/svg",c=document.createElementNS(f,"svg");c.setAttribute("width",String(Math.max(o,1))),c.setAttribute("height",String(Math.max(s,1))),Object.assign(c.style,{position:"absolute",left:"0px",top:"0px",overflow:"visible"});const l=colorCss(t.line??U.line,n),g=Math.max(r,lt*i),p=m=>m===void 0||m==="none"||m==="arrow"?0:g*1.5,b=[];for(const[m,S,h]of[[t.line_begin,u,!1],[t.line_end,d,!0]]){const w=it(S,h);if(!w)continue;const[I,P]=w.at,[j,C]=w.out,O=at(m,I,P,j,C,r,g,l);O&&b.push(O);const $=p(m);$>0&&ot(S,h,-j*$,-C*$)}for(const m of a){const S=document.createElementNS(f,"path");S.setAttribute("d",nt(m)),S.setAttribute("fill","none"),S.setAttribute("stroke",l),S.setAttribute("stroke-width",String(r));const h=L(t.line_dash,r);h&&S.setAttribute("stroke-dasharray",h),c.append(S)}c.append(...b),e.append(c)}const st={sysDash:[3,1],sysDot:[1,1],dash:[4,3],dashDot:[4,3,1,3],lgDash:[8,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3]},L=(e,t)=>e&&st[e]?.map(i=>String(i*t)).join(" "),lt=25200;function at(e,t,i,r,n,o,s,a){if(e===void 0||e==="none")return;const u="http://www.w3.org/2000/svg",d=s*(e==="arrow"?3.5:3),f=(p,b)=>`${String(t-r*p-n*b)},${String(i-n*p+r*b)}`;if(e==="oval"){const p=document.createElementNS(u,"circle");return p.setAttribute("cx",String(t)),p.setAttribute("cy",String(i)),p.setAttribute("r",String(d/2)),p.setAttribute("fill",a),p}const c=e==="arrow",l=document.createElementNS(u,c?"polyline":"polygon"),g={triangle:[f(0,0),f(d,d/2),f(d,-d/2)],stealth:[f(0,0),f(d,d/2),f(d*.7,0),f(d,-d/2)],diamond:[f(-d/2,0),f(0,d/2),f(d/2,0),f(0,-d/2)],arrow:[f(d,d/2),f(0,0),f(d,-d/2)]}[e];return l.setAttribute("points",g.join(" ")),c?(l.setAttribute("fill","none"),l.setAttribute("stroke",a),l.setAttribute("stroke-width",String(o))):l.setAttribute("fill",a),l}function ct(e,t,i,r,n,o){const s=t.frame.width*r,a=t.frame.height*r,u="http://www.w3.org/2000/svg",d=document.createElementNS(u,"svg");d.setAttribute("width",String(Math.max(s,1))),d.setAttribute("height",String(Math.max(a,1))),Object.assign(d.style,{position:"absolute",left:"0px",top:"0px",overflow:"visible"}),D(d,t);let f=colorCss(t.fill,o);if(t.gradient){const c=`ak-gradient-${String(gt++)}`;d.append(pt(u,c,t.gradient,t.frame,o)),f=`url(#${c})`}for(const c of i){const l=document.createElementNS(u,"path");if(l.setAttribute("d",c.d),l.setAttribute("fill-rule","evenodd"),l.setAttribute("fill",c.fill==="none"||t.fill===null||t.fill===void 0?c.fill==="none"||!t.gradient?"none":f:c.fill==="norm"?f:dt[c.fill](colorCss(t.fill,o))),t.fill_transparency!==void 0&&l.setAttribute("fill-opacity",String(1-t.fill_transparency)),c.stroke&&t.line!==void 0&&t.line!==null){l.setAttribute("stroke",colorCss(t.line,o)),l.setAttribute("stroke-width",String(n)),l.setAttribute("stroke-linejoin","round");const g=L(t.line_dash,n);g&&l.setAttribute("stroke-dasharray",g)}d.append(l)}e.append(d)}const dt={darken:e=>`color-mix(in srgb, ${e} 60%, black)`,darkenLess:e=>`color-mix(in srgb, ${e} 80%, black)`,lighten:e=>`color-mix(in srgb, ${e} 60%, white)`,lightenLess:e=>`color-mix(in srgb, ${e} 80%, white)`};function ut(e,t){const i=e.path;if(!i)return[];const r=i.w===0?0:e.frame.width*t/i.w,n=i.h===0?0:e.frame.height*t/i.h;return[{d:i.steps.map(s=>s.op==="close"?"Z":s.op==="move"?`M${String(s.x*r)} ${String(s.y*n)}`:s.op==="line"?`L${String(s.x*r)} ${String(s.y*n)}`:`C${String(s.x1*r)} ${String(s.y1*n)} ${String(s.x2*r)} ${String(s.y2*n)} ${String(s.x*r)} ${String(s.y*n)}`).join(""),fill:"norm",stroke:!0}]}function D(e,t){!t.flip?.h&&!t.flip?.v||(e.style.transform=`scale(${t.flip.h?"-1":"1"}, ${t.flip.v?"-1":"1"})`)}const ft=new Set(["rect","roundRect","ellipse"]),E=(e,t,i)=>t===void 0||t===0?colorCss(e,i):`color-mix(in srgb, ${colorCss(e,i)} ${String((1-t)*100)}%, transparent)`,T=(e,t)=>`linear-gradient(${String(e.angle+90)}deg, ${e.stops.map(i=>`${E(i.color,i.transparency,t)} ${String(i.at*100)}%`).join(", ")})`,H=(e,t)=>e.gradient?T(e.gradient,t):e.fill===null||e.fill===void 0?"transparent":E(e.fill,e.fill_transparency,t);let gt=0;function pt(e,t,i,r,n){const o=document.createElementNS(e,"linearGradient");o.id=t;const s=i.angle*Math.PI/180,a=Math.cos(s),u=Math.sin(s),d=(Math.abs(r.width*a)+Math.abs(r.height*u))/Math.max(r.width,r.height,1)/2;o.setAttribute("x1",String(.5-a*d)),o.setAttribute("y1",String(.5-u*d)),o.setAttribute("x2",String(.5+a*d)),o.setAttribute("y2",String(.5+u*d));for(const f of i.stops){const c=document.createElementNS(e,"stop");c.setAttribute("offset",String(f.at)),c.setAttribute("stop-color",colorCss(f.color,n)),f.transparency!==void 0&&c.setAttribute("stop-opacity",String(1-f.transparency)),o.append(c)}return o}function mt(e,t,i,r){const n=t.angle*Math.PI/180,o=t.distance*i;e.style.filter=`drop-shadow(${String(o*Math.cos(n))}px ${String(o*Math.sin(n))}px ${String(t.blur*i)}px ${E(t.color,t.transparency,r)})`}function bt(e,t,i){const r=t.geometry??"rect",n=t.frame.width*i,o=t.frame.height*i;r==="roundRect"?e.style.borderRadius=`${String(Math.min(n,o)*Math.min(.5,Math.max(0,t.adjustments?.[0]??z("roundRect")[0]??0)))}px`:r==="ellipse"&&(e.style.borderRadius="50%")}const St={left:"borderLeft",right:"borderRight",top:"borderTop",bottom:"borderBottom"},R="http://www.w3.org/2000/svg";function xt(e,t,i,r,n){const o=i.width/v,s=i.height/v,a=r*v,u=B(t,o,s),d=document.createElementNS(R,"svg");d.setAttribute("viewBox",`0 0 ${String(o)} ${String(s)}`),d.setAttribute("width","100%"),d.setAttribute("height","100%"),Object.assign(d.style,{position:"absolute",inset:"0px",overflow:"visible"});const f=(l,g)=>{const p=document.createElementNS(R,l);for(const[b,m]of Object.entries(g))p.setAttribute(b,String(m));d.append(p)},c=l=>{f("path",{d:l.d,fill:l.fill===void 0?"none":colorCss(l.fill,n),stroke:l.width>0?colorCss(l.color,n):"none","stroke-width":l.width,"stroke-linejoin":"round"})};for(const l of[...u.grid,...u.shapes])c(l);for(const l of[...u.boxes,...u.keys])f("rect",{x:l.x,y:l.y,width:l.width,height:l.height,fill:colorCss(l.color,n)});for(const l of[...u.axes,...u.lines])c(l);for(const l of u.dots)f("circle",{cx:l.x,cy:l.y,r:l.r,fill:colorCss(l.color,n)});e.append(d);for(const l of u.words){const g=document.createElement("div");g.textContent=l.text,Object.assign(g.style,{position:"absolute",left:`${String(l.x*a)}px`,top:`${String(l.y*a)}px`,transform:`translate(${{start:"0",middle:"-50%",end:"-100%"}[l.anchor]}, -50%)`,fontSize:`${String(l.size*a)}px`,lineHeight:"1",whiteSpace:"nowrap",color:colorCss(l.color,n),fontFamily:"var(--ak-theme-minor)"}),e.append(g)}}function ht(e,t,i,r,n){const o=document.createElement("table");Object.assign(o.style,{borderCollapse:"collapse",tableLayout:"fixed",width:`${String(t.columns.reduce((a,u)=>a+u,0)*i)}px`});const s=document.createElement("colgroup");for(const a of t.columns){const u=document.createElement("col");u.style.width=`${String(a*i)}px`,s.append(u)}o.append(s);for(const[a,u]of t.rows.entries()){const d=document.createElement("tr");d.style.height=`${String(u.height*i)}px`;for(const[f,c]of u.cells.entries()){if(c.spanned)continue;const l=document.createElement("td");l.dataset.akCell=`${String(a)},${String(f)}`,c.span_width&&(l.colSpan=c.span_width),c.span_height&&(l.rowSpan=c.span_height),l.style.padding="0px",l.style.verticalAlign={t:"top",ctr:"middle",b:"bottom"}[c.text.style.vertical_anchor],c.fill!==void 0&&(l.style.background=colorCss(c.fill,n));for(const[p,b]of Object.entries(St)){const m=c.borders?.[p];m&&(l.style[b]=`${String(m.width*i)}px solid ${colorCss(m.color,n)}`)}const g=k(c.text,i,r,n);g.style.minHeight="0px",l.append(g),d.append(l)}o.append(d)}e.style.height="auto",e.append(o)}export function drawShape(e,t,i){const{k:r,colors:n}=i;if(t.kind==="placeholder"&&t.text?.empty===!0&&!i.editing)return;const o=document.createElement("div");o.setAttribute(SHAPE_ATTR,`${e}/${t.name}`);const{left:s,top:a,width:u,height:d}=t.frame;Object.assign(o.style,{position:"absolute",left:`${String(s*r)}px`,top:`${String(a*r)}px`,width:`${String(u*r)}px`,height:`${String(d*r)}px`}),t.rotation!==void 0&&(o.style.transform=`rotate(${String(t.rotation)}deg)`);const f=(t.line_width??LINE_WIDTH)*r;if(t.chart)xt(o,t.chart,t.frame,r,n);else if(t.table)return ht(o,t.table,r,i.lang,n),o;if(t.shadow&&mt(o,t.shadow,r,n),t.alt!==void 0&&o.setAttribute("aria-label",t.alt),t.kind==="autoshape"){if(!t.path&&W(t.geometry))return rt(o,t,r,f,n),o;const c=t.path?ut(t,r):ft.has(t.geometry??"rect")?void 0:F(t.geometry??"rect",t.frame.width*r,t.frame.height*r,t.adjustments)?.paths;if(c)return ct(o,t,c,r,f,n),t.text&&o.append(k(t.text,r,i.lang,n)),o;o.style.background=H(t,n),bt(o,t,r)}else(t.fill!==void 0||t.gradient)&&(o.style.background=H(t,n));if(t.line!==void 0&&t.line!==null&&(o.style.outline=`${String(f)}px ${t.line_dash===void 0||t.line_dash==="solid"?"solid":"dashed"} ${colorCss(t.line,n)}`),t.text?.style.auto_size==="shape"&&(o.style.height="auto",o.style.minHeight="0px",t.text.style.word_wrap||(o.style.width="max-content")),t.kind==="picture"&&t.media){o.style.overflow="hidden";const c=document.createElement("img");c.alt=t.alt??"",c.src=i.url(t.media.path),D(c,t);const l=t.media.crop??{left:0,top:0,right:0,bottom:0},g=1-l.left-l.right,p=1-l.top-l.bottom;Object.assign(c.style,{position:"absolute",width:`${String(100/g)}%`,height:`${String(100/p)}%`,left:`${String(-l.left/g*100)}%`,top:`${String(-l.top/p*100)}%`,maxWidth:"none"}),t.flip&&(c.style.transformOrigin=`${String(50/g-l.left/g*100)}% ${String(50/p-l.top/p*100)}%`),o.append(c)}else if(t.kind==="movie"&&t.media&&!i.playing&&i.poster!==!0)o.dataset.akFilm="";else if(t.kind==="movie"&&t.media){const c=document.createElement("video");c.src=i.url(t.media.path),c.muted=!0,c.playsInline=!0,c.preload="auto",t.media.poster!==void 0&&(c.currentTime=t.media.poster),Object.assign(c.style,{width:"100%",height:"100%",objectFit:"fill",...i.playing?{}:{pointerEvents:"none"}}),o.append(c)}return t.text&&o.append(k(t.text,r,i.lang,n)),o}export function drawSlide(e,t){const i=document.createElement("div");i.dataset.akSlide=e.id,Object.assign(i.style,{position:"absolute",inset:"0px",background:colorCss(e.background,t.colors),overflow:"hidden"}),e.background_gradient&&(i.style.background=T(e.background_gradient,t.colors)),e.background_picture!==void 0&&(i.style.background=`${colorCss(e.background,t.colors)} url(${JSON.stringify(t.url(e.background_picture))}) center / 100% 100% no-repeat`);for(const r of e.shapes){const n=drawShape(e.id,r,t);n&&i.append(n)}return i}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{
|
|
3
|
-
${$.stack??""}`)}const h=y.default;if(!gt(h))throw new G("no_content",`The default export of ${i.file} is not a presentation({ … }) from @allyhub/sdk/slides.`);let w;try{w=R({phase:"build"},()=>ut(h))}catch(f){throw new G("load_failed",`The deck's code failed: ${f instanceof Error?f.message:String(f)}`)}for(const[f,$]of Object.entries(moduleComponents(y)))Object.hasOwn(w.components,f)||(w.components[f]=$);return w}export function moduleComponents(i){const y=i.components,h={};if(typeof y!="object"||y===null)return h;for(const[w,f]of Object.entries(y)){const $=vt(w,f);$&&(h[w]=$)}return h}export async function deckCodeOf(i,y){const{log:h}=Pe(i,y),w=await importDeck(i);return{code:R({phase:"build"},()=>Te(w,$=>h.readData($))),theme:lookTheme(i)}}export const lookTheme=i=>xt(i.looks?.clean??Le);export async function loadDeck(i,y,h){const w=Pe(i,y),{log:f,ledger:$,guards:Be}=w,[O,I]=i.format.split("x").map(Number);if(!(O>0&&I>0))throw new G("bad_format",`${i.piece} is drawn at ${i.format}: a deck's stage is WIDTHxHEIGHT pixels.`);const de=await importDeck(i),pe=yt(i.code)?i.code:R({phase:"build"},()=>Te(de,e=>f.readData(e))),fe=Ot(i.piece),he=i.looks?.clean??Le,Q=i.file.split("/").slice(0,-1).join("/"),me={file:`${Q===""?"":`${Q}/`}${At}`},{deck:We}=wt({code:pe,file:i.slides??{slides:[]},words:qt(f),prefix:fe,base:Q,theme:lookTheme(i),data:e=>f.readData(e)});let k=We;if(k.slides.length===0)throw new G("no_parts","The deck has no slides to draw (AK-K003).");const x=O/k.width;Object.assign(h.style,{position:"relative",width:`${String(O)}px`,height:`${String(I)}px`,overflow:"hidden"});const ue=()=>{for(const[e,t]of Object.entries({...$t(he),...Pt(k.theme)}))h.style.setProperty(e,t)};ue(),h.replaceChildren();const X=y.purpose==="play";y.purpose==="render"&&(document.documentElement.style.background="transparent",document.body.style.background="transparent");const ge=new Map,Z=e=>ge.get(e)??f.mediaAt(e),ze=e=>Z(e)?.url??"",ee=e=>Math.round(e*F)/F,J=w.combo.lang,Ke=(e,t,n)=>{const o=pt(e,t===0),{rests:s,comesOn:a,goesOff:c}=o,l=n+(s.at(-1)??0),g=e.shapes.flatMap(p=>p.kind!=="movie"||!p.media?[]:[{shape:p.name,from:a(p.name),poster:p.media.poster??0,length:Z(p.media.path)?.duration??0,rest:s.at(-1)??0}]),d=Math.max(l+1/F,...g.map(p=>n+p.from+p.length-p.poster)),m=[],r=[],M=new Map,u=[!1];for(const p of e.shapes){Ie(p)&&(M.set(p.name,u.length-1),u[u.length-1]=!0);const C=p.component&&Ie(p)?de.components[p.component.name]:void 0;if(C){const v=R({phase:"build",part:e.id},()=>C.layers(p.component?.props??{},{width:p.frame.width*x,height:p.frame.height*x,slide:e.id}));for(const j of v)Ft(j)?m.push({shape:p.name,layer:j}):$.problems.push(Ne("AK-M011",`Component ${C.name} on slide ${e.id} drew something that is not a graphic layer (custom(), a component): a footage layer is a movie shape on a slide.`,{part:e.id,where:me}))}if(p.kind==="movie"&&p.media&&!X&&Z(p.media.path)){const v=[p.frame.left*x,p.frame.top*x,p.frame.width*x,p.frame.height*x],j=ee(a(p.name)),T=c(p.name);r.push({part:e.id,file:p.media.path,start:n+j,end:T===void 0?d:n+ee(T),from:(p.media.poster??0)-((s.at(-1)??0)-j),speed:1,gainDb:0,audio:!1,fit:"cover",box:v,picture:v,over:u.length}),u.push(!1)}}for(;u.length>1&&u.at(-1)===!1;)u.pop();const _=u.length,ce=ee(l),Y=p=>m.filter(C=>C.shape===p).map(C=>C.layer.component);return{slide:e,sign:St(k,e),clock:o,movies:g,footage:r,planeOf:M,planes:_,made:m,part:{key:e.id,layers:[...new Set(m.map(p=>p.layer.component))],start:n,end:d,planes:Array.from({length:_},(p,C)=>({layers:[{component:SLIDE_LAYER,start:n,end:d},...e.shapes.filter(v=>M.get(v.name)===C).flatMap(v=>Y(v.name)).map(v=>({component:v,start:n,end:d}))]})),still:ce,...s.length>1?{steps:s.map(p=>Math.round((n+p)*F)/F)}:{},...Lt(e),...e.hidden?{hidden:!0}:{}}}},ye=e=>{let t=0;return e.slides.map((n,o)=>{const s=Ke(n,o,t);return t=s.part.end,s})};let b=ye(k);const te=b.at(-1)?.part.end??0,we={fps:F,width:O,height:I,paper:`${String(k.width/De)}in ${String(k.height/De)}in`,duration:te,background:k.theme.colors.lt1,parts:b.map(e=>e.part),cues:[],...b.some(e=>e.footage.length>0)?{footage:b.flatMap(e=>e.footage)}:{},audio:{}},A=new Map,ne=new Map;let H,B;const Ge=async e=>{const{slide:t,part:n}=e,o=Ct(t,{k:x,url:ze,editing:!1,playing:X,...J===void 0?{}:{lang:J},colors:k.theme.colors});o.style.visibility="hidden",h.append(o);const s=Array.from({length:e.planes},()=>[]),a=[],c=[];for(const l of t.shapes){const g=o.querySelector(`[${L}="${CSS.escape(`${t.id}/${l.name}`)}"]`);if(g){s[e.planeOf.get(l.name)??0]?.push(g);for(const[d,{layer:m}]of e.made.filter(r=>r.shape===l.name).entries()){const r=document.createElement("div");Object.assign(r.style,{position:"absolute",inset:"0px"}),g.append(r);const M=stageContext({look:he,width:l.frame.width*x,height:l.frame.height*x,start:n.start,end:n.end,combo:w.combo,format:i.format,asset:u=>f.asset(u),wait:u=>c.push(u),report:u=>$.problems.push(Ne(u.code,u.message,{part:t.id,where:me}))});a.push({layer:m,el:r,ctx:M,props:m.props,from:e.clock.comesOn(l.name)}),R({phase:"mount",part:t.id,layer:m.component,index:d},()=>{m.mount(r,m.props,M)})}}}await at(o),o.style.visibility="visible";for(const l of o.querySelectorAll("[data-ak-autofit='text']"))Et(l);return o.style.visibility="hidden",await Promise.all(c),{slide:t,slot:e,el:o,part:n,layers:a,targets:dt(e.clock.timed),lead:e.clock.lead,movies:e.movies,planes:s,pictures:ct(o)}},U=e=>{A.delete(e.slide.id);for(const[t,n]of e.layers.entries())R({phase:"mount",part:e.slide.id,layer:n.layer.component,index:t},()=>{n.layer.unmount?.(n.el,n.props,n.ctx)});e.el.remove(),H===e&&(H=void 0),B===e&&(B=void 0)},W=async e=>{const t=e.slide.id,n=A.get(t);if(n?.slot===e)return A.delete(t),A.set(t,n),n;n&&U(n);let o=ne.get(t);o||(o=Ge(e).finally(()=>ne.delete(t)),ne.set(t,o));const s=await o,a=se(t);return a&&a!==e?(s.el.remove(),W(a)):(A.set(t,s),s)},oe=()=>{for(const e of[...A.values()]){if(A.size<=SLIDES_KEPT)return;e!==H&&e!==B&&U(e)}},se=e=>b.find(t=>t.slide.id===e),Je=e=>{let t=0,n=b.length-1;for(;t<n;){const o=t+n>>1,s=b[o];s&&e<s.part.end-1e-6?n=o:t=o+1}return b[t]},Ue=e=>b.slice(0,b.indexOf(e)).reverse().find(t=>!t.slide.hidden),Se=new WeakMap,z=[],P=(e,t)=>{const n={...t};for(const o of Object.keys(t))n[o]=e.style[o];z.push(()=>{Object.assign(e.style,n)}),Object.assign(e.style,t)},ae=(e,t)=>e.el.querySelector(`[${L}="${CSS.escape(`${e.slide.id}/${t}`)}"]`);let xe;const be=(e,t)=>ae(e,t)?.querySelector("video")??void 0,ie=new Set,Ye=(e,t)=>{const n=xe;if(n&&n.m!==e){for(const s of n.m.movies)be(n.m,s.shape)?.pause();ie.clear()}const o=n?.m===e&&t>n.t&&t-n.t<jt;xe={m:e,t};for(const s of e.movies){const a=be(e,s.shape);if(!a)continue;const c=s.poster+Math.max(0,t-s.from);if(o&&t>=s.from&&c<s.length){Math.abs(a.currentTime-c)>Tt&&(a.currentTime=c),a.paused&&Dt(a);continue}a.pause(),o&&c>=s.length&&ie.add(s.shape);const l=ie.has(s.shape)?s.length:Math.max(0,s.poster-(s.rest-t));Math.abs(a.currentTime-l)>1/F&&(a.currentTime=l)}},Ve=(e,t)=>{const n=e.slide.transition;if(!n||t>=e.lead)return;const o=B;if(!o)return;ke(o,o.part.still-o.part.start),o.el.style.visibility="visible";const s=Math.min(1,t/e.lead);if(n.type!=="morph"){const d=mt(n,s),m=(M,u)=>`translate(${String(M*100)}%, ${String(u*100)}%)`,r=d.incoming.clip;P(e.el,{opacity:String(d.incoming.opacity),transform:m(d.incoming.x,d.incoming.y),...r?{clipPath:`inset(${String(r.top*100)}% ${String(r.right*100)}% ${String(r.bottom*100)}% ${String(r.left*100)}%)`}:{}}),P(o.el,{transform:m(d.outgoing.x,d.outgoing.y)});return}const a=new Map(o.slide.shapes.map(d=>[d.name,d]));P(e.el,{background:`color-mix(in srgb, ${getComputedStyle(e.el).backgroundColor} ${String(s*100)}%, transparent)`});const c=(d,m,r)=>{P(d,{left:`${String(r.left*x)}px`,top:`${String(r.top*x)}px`,width:`${String(r.width*x)}px`,height:`${String(r.height*x)}px`});const M=m.width>0?r.width/m.width:1,u=m.height>0?r.height/m.height:1;for(const _ of d.querySelectorAll(":scope > svg:not([viewBox])"))P(_,{transformOrigin:"0 0",transform:`scale(${String(M)}, ${String(u)})`})},l=d=>JSON.stringify({...d,frame:void 0,sources:void 0}),g=new Map;for(const d of e.slide.shapes){const m=ae(e,d.name);if(!m)continue;const r=a.get(d.name);if(!r){P(m,{opacity:String(s)});continue}const M=ht(r.frame,d.frame,s),u=l(r)===l(d);g.set(d.name,{frame:M,same:u}),c(m,d.frame,M),u||P(m,{opacity:String(s)})}for(const d of o.slide.shapes){const m=ae(o,d.name);if(!m)continue;const r=g.get(d.name);r?r.same?P(m,{visibility:"hidden"}):(c(m,d.frame,r.frame),P(m,{opacity:String(1-s)})):P(m,{opacity:String(1-s)})}},ke=(e,t)=>{for(const n of e.targets){const o=e.slide.shapes.find(m=>m.name===n.shape),s=e.el.querySelector(`[${L}="${CSS.escape(`${e.slide.id}/${n.shape}`)}"]`);if(!o||!s)continue;const a=n.paragraph===void 0?s:s.querySelector(`[data-ak-paragraph="${String(n.paragraph)}"]`);if(!a)continue;const c=Se.get(a)??{transform:a.style.transform,clipPath:a.style.clipPath};Se.set(a,c);const l=ft(n.animations,t,o.frame,{width:k.width,height:k.height});a.style.visibility=l.hidden?"hidden":"",a.style.opacity=l.opacity===1?"":String(l.opacity);const g=l.x!==0||l.y!==0?`translate(${String(l.x*x)}px, ${String(l.y*x)}px)`:"",d=l.scale===1?"":`scale(${String(l.scale)})`;a.style.transform=[g,d,c.transform].filter(m=>m!=="").join(" "),a.style.clipPath=l.clip?`inset(${String(l.clip.top*100)}% ${String(l.clip.right*100)}% ${String(l.clip.bottom*100)}% ${String(l.clip.left*100)}%)`:c.clipPath}},Qe=(e,t)=>{if(t>0){const n=e.el.style.background;e.el.style.background="none",z.push(()=>{e.el.style.background=n})}for(const[n,o]of e.planes.entries())for(const s of n===t?[]:o){const a=s.style.visibility;s.style.visibility="hidden",z.push(()=>{s.style.visibility=a})}};let K;const N=async(e,t)=>{K={t:e,plane:t};const n=Math.min(Math.max(0,e),te-1/F),o=Je(n);if(!o)return;const s=n-o.part.start,a=await W(o),c=o.slide.transition&&s<o.clock.lead?Ue(o):void 0,l=c?await W(c):void 0;if(K.t===e){for(const g of A.values())g.el.style.visibility=g===a?"visible":"hidden";for(H=a,B=l,Be.setMoment(n,`${w.seedBase}:${a.slide.id}`);z.length>0;)z.pop()?.();ke(a,s),Ve(a,s),Ye(a,s);for(const[g,d]of a.layers.entries())R({phase:"render",part:a.slide.id,layer:d.layer.component,index:g,t:s},()=>{d.layer.render(d.el,Math.max(0,s-d.from),d.props,d.ctx)});if(t!==void 0&&Qe(a,t),await Promise.all([a.pictures(le*1e3),...l?[l.pictures(le*1e3)]:[]]),oe(),X){const g=b[b.indexOf(o)+1];g&&!A.has(g.slide.id)&&W(g).then(oe,()=>{})}}},re=()=>H,ve=async e=>{await N(e);const t=re(),n=h.getBoundingClientRect(),o=n.width>0?O/n.width:1;return{m:t,blocks:t?je(t.el,h,O):[],scale:o}},Xe=()=>{const e=new Map,t=new Map,n=(c,l)=>{e.has(V(c))||e.set(V(c),l),t.set(V(c),(t.get(V(c))??new Set).add(c))},o=k.theme.fonts;for(const c of[o.major,o.minor,o.major_east_asian,o.minor_east_asian])n(c,"theme");for(const c of k.slides)for(const l of c.shapes){const g=[...l.text?.style.levels.map(d=>d.font.name)??[],...l.text?.paragraphs.flatMap(d=>[d.font?.name,...d.runs.map(m=>m.font?.name)])??[]];for(const d of g)d!==void 0&&!d.startsWith("+")&&n(d,"text")}const s=new Set(rt().map(c=>c.family)),a=c=>{const l=ot(c)[0]??c;return s.has(l)||it(l)};return[...e].map(([c,l])=>({name:c,where:l,drawn:[...t.get(c)??[]].some(a)}))},Ze=e=>{const t=e.text?.paragraphs[0],n=t?.alignment??e.text?.style.levels[t?.level??0]?.alignment;return n===void 0?{}:{align:n}},et=(e,t)=>{const n=h.getBoundingClientRect(),o=n.width>0?O/n.width:1,s=[],a=[],c=[],l=[],g=[],d=[],m=x*qe;return e.slide.shapes.forEach((r,M)=>{const u=e.el.querySelector(`[${L}="${CSS.escape(`${e.slide.id}/${r.name}`)}"]`);if(!u)return;const _=u.getBoundingClientRect(),ce=[Math.round((_.left-n.left)*o),Math.round((_.top-n.top)*o),Math.round(_.width*o),Math.round(_.height*o)],Y=getComputedStyle(u).visibility==="hidden",p=je(u,h,O).filter(S=>S.ink!==null&&S.runs.some(E=>getComputedStyle(E.el).visibility!=="hidden")),C=p.map(S=>_t([...new Set(S.runs.map(E=>E.el))],h,O));p.forEach((S,E)=>{const D=C[E]??[],q=Re(D);q&&(s.push({layer:r.name,z:"front",text:S.text,box:q,...S.opacity<1?{opacity:S.opacity}:{}}),a.push(M),c.push(S.containers),l.push(q),g.push(D))});const v={name:r.name,kind:Fe(r.geometry)?"line":r.kind,level:r.level,...r.placeholder?{placeholder:r.placeholder.type}:{},frame:[Math.round(r.frame.left*x),Math.round(r.frame.top*x),Math.round(r.frame.width*x),Math.round(r.frame.height*x)],box:ce,...Y?{hidden:Y}:{},opaque:r.kind==="picture"||r.kind==="movie"||!Fe(r.geometry)&&r.fill!==void 0&&r.fill!==null};if(r.chart){const S=r.chart.series.flatMap(E=>E.values.filter(D=>D!==null));v.chart={type:r.chart.type,categories:r.chart.categories.length,series:r.chart.series.length,...S.length>0?{low:Math.min(...S),high:Math.max(...S)}:{},...r.chart.source===void 0?{}:{source:r.chart.source}}}if(r.table){const S=[...u.querySelectorAll("tr")];v.rows=r.table.rows.map((E,D)=>({set:Math.round(E.height*x),drawn:Math.round((S[D]?.getBoundingClientRect().height??0)*o)}))}const j=C.flat();if(j.length>0){const S=new Map;for(const q of p)for(const tt of q.runs){const Oe=getComputedStyle(tt.el),Ae=Math.round(parseFloat(Oe.fontSize)/m*10)/10,Ce=parseInt(Oe.fontWeight,10)||400,Ee=`${String(Ae)}/${String(Ce)}`;S.has(Ee)||S.set(Ee,{size:Ae,weight:Ce,...q.xHeight===void 0?{}:{xHeight:Math.round(q.xHeight/m*10)/10}})}const E=p.map(q=>q.text).join(`
|
|
4
|
-
`),
|
|
5
|
-
`)]:[])})),reads:()=>f.reads(
|
|
6
|
-
`)),owners:[...new Set(n.made.map(s=>s.layer.component))]}},ask:()=>Promise.resolve([]),dispose(){for(const e of[...
|
|
2
|
+
import{consoleAt as L,consoleAtAsync as st}from"@allyhub/piece/page";import{inkOfBlock as at}from"@allyhub/image-draw/contrast";import{createEnv as Ee}from"@allyhub/image-draw/env";import{LoadFailure as J}from"@allyhub/image-draw/errors";import{families as it,loadTextFonts as rt,localFamily as ct,pageFaces as lt}from"@allyhub/image-draw/fonts";import{realTimers as dt}from"@allyhub/image-draw/guards";import{domHash as Te}from"@allyhub/image-draw/hash";import{textBlocks as je}from"@allyhub/image-draw/inspect";import{pictureWaiter as pt}from"@allyhub/image-draw/pictures";import{answerFilm as ft,playFilm as ht}from"@allyhub/runtime/stage";import{animationTargets as mt,clockOf as ut,DECK_FPS as q,deckCode as _e,drawnAt as gt,morphFrame as yt,inTransition as De,transitionAt as wt,EMU_PER_INCH as Fe,EMU_PER_PT as qe,evaluateDeck as xt,fontFace as X,isConnectorGeometry as Ne,isDeck as St,isDeckCode as bt,resolveDeck as kt,slideSign as vt,themeOfLook as $t}from"@allyhub/slides-core";import{problem as Re}from"@allyhub/diagnostics";import{CLEAN_LOOK as Le,LAYER_BRAND as Mt,SEEK_LIMIT as de,countWords as Ot,framedComponent as At,lookCss as Ct,measureMoment as Pt,messagePrefix as Et}from"@allyhub/piece";import{filmSummary as Tt}from"@allyhub/video-core";import{drawSlide as jt,fitText as _t,SHAPE_ATTR as N,themeCss as Dt}from"./draw.js";import{inkLines as Ft,union as He}from"./ink.js";export const SLIDE_LAYER="slide",SLIDES_KEPT=5;const qt=.5,Nt=.3,Be={top:0,bottom:0,left:0,right:0};async function Rt(i){i.muted=!1,await i.play().catch(async()=>{i.muted=!0,await i.play().catch(()=>{})})}function Lt(i){const y=h=>{if(i.peek(h)!==void 0)return i.s(h);const w=[...new Set(i.keysUnder(h).map(f=>f.slice(h.length+1).split(".")[0]).filter(f=>f!==void 0&&/^\d+$/u.test(f)))].sort((f,$)=>Number(f)-Number($));if(w.length!==0)return w.map(f=>y(`${h}.${f}`)).filter(f=>f!==void 0)};return y}const Ie=i=>!(i.kind==="placeholder"&&i.text?.empty===!0),Ht=i=>typeof i=="object"&&i!==null&&i[Mt]==="graphic";export async function loadStyles(i){for(const y of i.styles??[]){const h=document.createElement("link");h.rel="stylesheet",h.href=y;const w=new Promise(f=>{h.onload=f,h.onerror=f});document.head.append(h),await w}}export async function importDeck(i){await loadStyles(i);let y;try{y=await st({phase:"module"},()=>import(i.module))}catch(f){const $=f instanceof Error?f:new Error(String(f));throw new J("load_failed",`Failed to load the deck's module: ${$.message}
|
|
3
|
+
${$.stack??""}`)}const h=y.default;if(!St(h))throw new J("no_content",`The default export of ${i.file} is not a presentation({ … }) from @allyhub/sdk/slides.`);let w;try{w=L({phase:"build"},()=>xt(h))}catch(f){throw new J("load_failed",`The deck's code failed: ${f instanceof Error?f.message:String(f)}`)}for(const[f,$]of Object.entries(moduleComponents(y)))Object.hasOwn(w.components,f)||(w.components[f]=$);return w}export function moduleComponents(i){const y=i.components,h={};if(typeof y!="object"||y===null)return h;for(const[w,f]of Object.entries(y)){const $=At(w,f);$&&(h[w]=$)}return h}export async function deckCodeOf(i,y){const{log:h}=Ee(i,y,void 0,"slides"),w=await importDeck(i);return{code:L({phase:"build"},()=>_e(w,$=>h.readData($))),theme:lookTheme(i)}}export const lookTheme=i=>$t(i.looks?.clean??Le);export async function loadDeck(i,y,h){const w=Ee(i,y,void 0,"slides"),{log:f,ledger:$,guards:We}=w,[A,I]=i.format.split("x").map(Number);if(!(A>0&&I>0))throw new J("bad_format",`${i.piece} is drawn at ${i.format}: a deck's stage is WIDTHxHEIGHT pixels.`);const pe=await importDeck(i),U=i.kindData,fe=bt(U?.code)?U.code:L({phase:"build"},()=>_e(pe,e=>f.readData(e))),he=Et(i.piece),me=i.looks?.clean??Le,ze=i.file.split("/").slice(0,-1).join("/"),ue={file:U?.slidesFile??i.file},{deck:Ke}=kt({code:fe,file:U?.slides??{slides:[]},words:Lt(f),prefix:he,base:ze,theme:lookTheme(i),data:e=>f.readData(e)});let k=Ke;if(k.slides.length===0)throw new J("no_parts","The deck has no slides to draw (AK-K003).");const S=A/k.width;Object.assign(h.style,{position:"relative",width:`${String(A)}px`,height:`${String(I)}px`,overflow:"hidden"});const ge=()=>{for(const[e,t]of Object.entries({...Ct(me),...Dt(k.theme)}))h.style.setProperty(e,t)};ge(),h.replaceChildren();const Z=y.purpose==="play";y.purpose==="render"&&(document.documentElement.style.background="transparent",document.body.style.background="transparent");const ye=new Map,ee=e=>ye.get(e)??f.mediaAt(e),Ge=e=>ee(e)?.url??"",te=e=>Math.round(e*q)/q,Y=w.combo.lang,Je=(e,t,n)=>{const o=ut(e,t===0),{rests:s,comesOn:a,goesOff:d}=o,l=n+(s.at(-1)??0),g=e.shapes.flatMap(p=>p.kind!=="movie"||!p.media?[]:[{shape:p.name,from:a(p.name),poster:p.media.poster??0,length:ee(p.media.path)?.duration??0,rest:s.at(-1)??0}]),c=Math.max(l+1/q,...g.map(p=>n+p.from+p.length-p.poster)),m=[],r=[],M=new Map,u=[!1];for(const p of e.shapes){Ie(p)&&(M.set(p.name,u.length-1),u[u.length-1]=!0);const P=p.component&&Ie(p)?pe.components[p.component.name]:void 0;if(P){const v=L({phase:"build",part:e.id},()=>P.layers(p.component?.props??{},{width:p.frame.width*S,height:p.frame.height*S,slide:e.id}));for(const D of v)Ht(D)?m.push({shape:p.name,layer:D}):$.problems.push(Re("AK-M011",`Component ${P.name} on slide ${e.id} drew something that is not a graphic layer (custom(), a component): a footage layer is a movie shape on a slide.`,{part:e.id,where:ue}))}if(p.kind==="movie"&&p.media&&!Z&&ee(p.media.path)){const v=[p.frame.left*S,p.frame.top*S,p.frame.width*S,p.frame.height*S],D=te(a(p.name)),F=d(p.name);r.push({part:e.id,file:p.media.path,start:n+D,end:F===void 0?c:n+te(F),from:(p.media.poster??0)-((s.at(-1)??0)-D),speed:1,gainDb:0,audio:!1,fit:"cover",box:v,picture:v,over:u.length}),u.push(!1)}}for(;u.length>1&&u.at(-1)===!1;)u.pop();const _=u.length,le=te(l),Q=p=>m.filter(P=>P.shape===p).map(P=>P.layer.component);return{slide:e,sign:vt(k,e),clock:o,movies:g,footage:r,planeOf:M,planes:_,made:m,part:{key:e.id,layers:[...new Set(m.map(p=>p.layer.component))],start:n,end:c,planes:Array.from({length:_},(p,P)=>({layers:[{component:SLIDE_LAYER,start:n,end:c},...e.shapes.filter(v=>M.get(v.name)===P).flatMap(v=>Q(v.name)).map(v=>({component:v,start:n,end:c}))]})),still:le,...s.length>1?{steps:s.map(p=>Math.round((n+p)*q)/q)}:{},...Bt(e),...e.hidden?{hidden:!0}:{}}}},we=e=>{let t=0;return e.slides.map((n,o)=>{const s=Je(n,o,t);return t=s.part.end,s})};let b=we(k);const ne=b.at(-1)?.part.end??0,xe={fps:q,width:A,height:I,paper:`${String(k.width/Fe)}in ${String(k.height/Fe)}in`,duration:ne,background:k.theme.colors.lt1,parts:b.map(e=>e.part),cues:[],...b.some(e=>e.footage.length>0)?{footage:b.flatMap(e=>e.footage)}:{},audio:{}},C=new Map,oe=new Map;let H,W;const Ue=async e=>{const{slide:t,part:n}=e,o=jt(t,{k:S,url:Ge,editing:!1,playing:Z,...Y===void 0?{}:{lang:Y},colors:k.theme.colors});o.style.visibility="hidden",h.append(o);const s=Array.from({length:e.planes},()=>[]),a=[],d=[];for(const l of t.shapes){const g=o.querySelector(`[${N}="${CSS.escape(`${t.id}/${l.name}`)}"]`);if(g){s[e.planeOf.get(l.name)??0]?.push(g);for(const[c,{layer:m}]of e.made.filter(r=>r.shape===l.name).entries()){const r=document.createElement("div");Object.assign(r.style,{position:"absolute",inset:"0px"}),g.append(r);const M=stageContext({look:me,width:l.frame.width*S,height:l.frame.height*S,start:n.start,end:n.end,combo:w.combo,format:i.format,asset:u=>f.asset(u),wait:u=>d.push(u),report:u=>$.problems.push(Re(u.code,u.message,{part:t.id,where:ue}))});a.push({layer:m,el:r,ctx:M,props:m.props,from:e.clock.comesOn(l.name)}),L({phase:"mount",part:t.id,layer:m.component,index:c},()=>{m.mount(r,m.props,M)})}}}await rt(o),o.style.visibility="visible";for(const l of o.querySelectorAll("[data-ak-autofit='text']"))_t(l);return o.style.visibility="hidden",await Promise.all(d),{slide:t,slot:e,el:o,part:n,layers:a,targets:mt(e.clock.timed),lead:e.clock.lead,movies:e.movies,planes:s,pictures:pt(o)}},V=e=>{C.delete(e.slide.id);for(const[t,n]of e.layers.entries())L({phase:"mount",part:e.slide.id,layer:n.layer.component,index:t},()=>{n.layer.unmount?.(n.el,n.props,n.ctx)});e.el.remove(),H===e&&(H=void 0),W===e&&(W=void 0)},z=async e=>{const t=e.slide.id,n=C.get(t);if(n?.slot===e)return C.delete(t),C.set(t,n),n;n&&V(n);let o=oe.get(t);o||(o=Ue(e).finally(()=>oe.delete(t)),oe.set(t,o));const s=await o,a=ae(t);return a&&a!==e?(s.el.remove(),z(a)):(C.set(t,s),s)},se=()=>{for(const e of[...C.values()]){if(C.size<=SLIDES_KEPT)return;e!==H&&e!==W&&V(e)}},ae=e=>b.find(t=>t.slide.id===e),Ye=e=>{let t=0,n=b.length-1;for(;t<n;){const o=t+n>>1,s=b[o];s&&e<s.part.end-1e-6?n=o:t=o+1}return b[t]},Ve=e=>b.slice(0,b.indexOf(e)).reverse().find(t=>!t.slide.hidden),Se=new WeakMap,K=[],j=(e,t)=>{const n={...t};for(const o of Object.keys(t))n[o]=e.style[o];K.push(()=>{Object.assign(e.style,n)}),Object.assign(e.style,t)},ie=(e,t)=>e.el.querySelector(`[${N}="${CSS.escape(`${e.slide.id}/${t}`)}"]`);let be;const ke=(e,t)=>ie(e,t)?.querySelector("video")??void 0,re=new Set,Qe=(e,t)=>{const n=be;if(n&&n.m!==e){for(const s of n.m.movies)ke(n.m,s.shape)?.pause();re.clear()}const o=n?.m===e&&t>n.t&&t-n.t<qt;be={m:e,t};for(const s of e.movies){const a=ke(e,s.shape);if(!a)continue;const d=s.poster+Math.max(0,t-s.from);if(o&&t>=s.from&&d<s.length){Math.abs(a.currentTime-d)>Nt&&(a.currentTime=d),a.paused&&Rt(a);continue}a.pause(),o&&d>=s.length&&re.add(s.shape);const l=re.has(s.shape)?s.length:Math.max(0,s.poster-(s.rest-t));Math.abs(a.currentTime-l)>1/q&&(a.currentTime=l)}},Xe=(e,t)=>{const n=e.slide.transition;if(!n||!De(t,e.lead))return;const o=W;if(!o)return;ve(o,o.part.still-o.part.start),o.el.style.visibility="visible";const s=Math.min(1,t/e.lead);if(n.type!=="morph"){const c=wt(n,s),m=(M,u)=>`translate(${String(M*100)}%, ${String(u*100)}%)`,r=c.incoming.clip;j(e.el,{opacity:String(c.incoming.opacity),transform:m(c.incoming.x,c.incoming.y),...r?{clipPath:`inset(${String(r.top*100)}% ${String(r.right*100)}% ${String(r.bottom*100)}% ${String(r.left*100)}%)`}:{}}),j(o.el,{transform:m(c.outgoing.x,c.outgoing.y)});return}const a=new Map(o.slide.shapes.map(c=>[c.name,c]));j(e.el,{background:`color-mix(in srgb, ${getComputedStyle(e.el).backgroundColor} ${String(s*100)}%, transparent)`});const d=(c,m,r)=>{j(c,{left:`${String(r.left*S)}px`,top:`${String(r.top*S)}px`,width:`${String(r.width*S)}px`,height:`${String(r.height*S)}px`});const M=m.width>0?r.width/m.width:1,u=m.height>0?r.height/m.height:1;for(const _ of c.querySelectorAll(":scope > svg:not([viewBox])"))j(_,{transformOrigin:"0 0",transform:`scale(${String(M)}, ${String(u)})`})},l=c=>JSON.stringify({...c,frame:void 0,sources:void 0}),g=new Map;for(const c of e.slide.shapes){const m=ie(e,c.name);if(!m)continue;const r=a.get(c.name);if(!r){j(m,{opacity:String(s)});continue}const M=yt(r.frame,c.frame,s),u=l(r)===l(c);g.set(c.name,{frame:M,same:u}),d(m,c.frame,M),u||j(m,{opacity:String(s)})}for(const c of o.slide.shapes){const m=ie(o,c.name);if(!m)continue;const r=g.get(c.name);r?r.same?j(m,{visibility:"hidden"}):(d(m,c.frame,r.frame),j(m,{opacity:String(1-s)})):j(m,{opacity:String(1-s)})}},ve=(e,t)=>{for(const n of e.targets){const o=e.slide.shapes.find(m=>m.name===n.shape),s=e.el.querySelector(`[${N}="${CSS.escape(`${e.slide.id}/${n.shape}`)}"]`);if(!o||!s)continue;const a=n.paragraph===void 0?s:s.querySelector(`[data-ak-paragraph="${String(n.paragraph)}"]`);if(!a)continue;const d=Se.get(a)??{transform:a.style.transform,clipPath:a.style.clipPath};Se.set(a,d);const l=gt(n.animations,t,o.frame,{width:k.width,height:k.height});a.style.visibility=l.hidden?"hidden":"",a.style.opacity=l.opacity===1?"":String(l.opacity);const g=l.x!==0||l.y!==0?`translate(${String(l.x*S)}px, ${String(l.y*S)}px)`:"",c=l.scale===1?"":`scale(${String(l.scale)})`;a.style.transform=[g,c,d.transform].filter(m=>m!=="").join(" "),a.style.clipPath=l.clip?`inset(${String(l.clip.top*100)}% ${String(l.clip.right*100)}% ${String(l.clip.bottom*100)}% ${String(l.clip.left*100)}%)`:d.clipPath}},Ze=(e,t)=>{if(t>0){const n=e.el.style.background;e.el.style.background="none",K.push(()=>{e.el.style.background=n})}for(const[n,o]of e.planes.entries())for(const s of n===t?[]:o){const a=s.style.visibility;s.style.visibility="hidden",K.push(()=>{s.style.visibility=a})}};let G;const R=async(e,t)=>{G={t:e,plane:t};const n=Math.min(Math.max(0,e),ne-1/q),o=Ye(n);if(!o)return;const s=n-o.part.start,a=await z(o),d=o.slide.transition&&De(s,o.clock.lead)?Ve(o):void 0,l=d?await z(d):void 0;if(G.t===e){for(const g of C.values())g.el.style.visibility=g===a?"visible":"hidden";for(H=a,W=l,We.setMoment(n,`${w.seedBase}:${a.slide.id}`);K.length>0;)K.pop()?.();ve(a,s),Xe(a,s),Qe(a,s);for(const[g,c]of a.layers.entries())L({phase:"render",part:a.slide.id,layer:c.layer.component,index:g,t:s},()=>{c.layer.render(c.el,Math.max(0,s-c.from),c.props,c.ctx)});if(t!==void 0&&Ze(a,t),await Promise.all([a.pictures(de*1e3),...l?[l.pictures(de*1e3)]:[]]),se(),Z){const g=b[b.indexOf(o)+1];g&&!C.has(g.slide.id)&&z(g).then(se,()=>{})}}},ce=()=>H,$e=async e=>{await R(e);const t=ce(),n=h.getBoundingClientRect(),o=n.width>0?A/n.width:1;return{m:t,blocks:t?je(t.el,h,A):[],scale:o}},et=()=>{const e=new Map,t=new Map,n=(d,l)=>{e.has(X(d))||e.set(X(d),l),t.set(X(d),(t.get(X(d))??new Set).add(d))},o=k.theme.fonts;for(const d of[o.major,o.minor,o.major_east_asian,o.minor_east_asian])n(d,"theme");for(const d of k.slides)for(const l of d.shapes){const g=[...l.text?.style.levels.map(c=>c.font.name)??[],...l.text?.paragraphs.flatMap(c=>[c.font?.name,...c.runs.map(m=>m.font?.name)])??[]];for(const c of g)c!==void 0&&!c.startsWith("+")&&n(c,"text")}const s=new Set(lt().map(d=>d.family)),a=d=>{const l=it(d)[0]??d;return s.has(l)||ct(l)};return[...e].map(([d,l])=>({name:d,where:l,drawn:[...t.get(d)??[]].some(a)}))},tt=e=>{const t=e.text?.paragraphs[0],n=t?.alignment??e.text?.style.levels[t?.level??0]?.alignment;return n===void 0?{}:{align:n}},nt=(e,t)=>{const n=h.getBoundingClientRect(),o=n.width>0?A/n.width:1,s=[],a=[],d=[],l=[],g=[],c=[],m=S*qe;return e.slide.shapes.forEach((r,M)=>{const u=e.el.querySelector(`[${N}="${CSS.escape(`${e.slide.id}/${r.name}`)}"]`);if(!u)return;const _=u.getBoundingClientRect(),le=[Math.round((_.left-n.left)*o),Math.round((_.top-n.top)*o),Math.round(_.width*o),Math.round(_.height*o)],Q=getComputedStyle(u).visibility==="hidden",p=je(u,h,A).filter(x=>x.ink!==null&&x.runs.some(O=>getComputedStyle(O.el).visibility!=="hidden")),P=p.map(x=>Ft([...new Set(x.runs.map(O=>O.el))],h,A));p.forEach((x,O)=>{const E=P[O]??[],T=He(E);T&&(s.push({layer:r.name,z:"front",text:x.text,box:T,...x.opacity<1?{opacity:x.opacity}:{}}),a.push(M),d.push(x.containers),l.push(T),g.push(E))});const v={name:r.name,kind:Ne(r.geometry)?"line":r.kind,level:r.level,...r.placeholder?{placeholder:r.placeholder.type}:{},frame:[Math.round(r.frame.left*S),Math.round(r.frame.top*S),Math.round(r.frame.width*S),Math.round(r.frame.height*S)],box:le,...Q?{hidden:Q}:{},opaque:r.kind==="picture"||r.kind==="movie"||!Ne(r.geometry)&&r.fill!==void 0&&r.fill!==null};if(r.chart){const x=r.chart.series.flatMap(O=>O.values.filter(E=>E!==null));v.chart={type:r.chart.type,categories:r.chart.categories.length,series:r.chart.series.length,...x.length>0?{low:Math.min(...x),high:Math.max(...x)}:{},...r.chart.source===void 0?{}:{source:r.chart.source}}}if(r.table){const x=[...u.querySelectorAll("tr")];v.rows=r.table.rows.map((O,E)=>({set:Math.round(O.height*S),drawn:Math.round((x[E]?.getBoundingClientRect().height??0)*o)}))}const D=P.flat();if(D.length>0){const x=new Map;for(const T of p)for(const ot of T.runs){const Oe=getComputedStyle(ot.el),Ae=Math.round(parseFloat(Oe.fontSize)/m*10)/10,Ce=parseInt(Oe.fontWeight,10)||400,Pe=`${String(Ae)}/${String(Ce)}`;x.has(Pe)||x.set(Pe,{size:Ae,weight:Ce,...T.xHeight===void 0?{}:{xHeight:Math.round(T.xHeight/m*10)/10}})}const O=p.map(T=>T.text).join(`
|
|
4
|
+
`),E=u.querySelector("[data-ak-font-scale]")?.dataset.akFontScale;v.text={text:O,words:Ot(O).words,lines:D,glyphs:He(D),type:[...x.values()],...E===void 0?{}:{scale:Number(E)},...tt(r)}}const F=u.querySelector("img");if(F&&F.naturalWidth>0){const x=r.media?.crop??{left:0,top:0,right:0,bottom:0},O=(E,T)=>1-Math.max(0,E)-Math.max(0,T);v.picture={source:[F.naturalWidth,F.naturalHeight],shown:[Math.round(F.naturalWidth*O(x.left,x.right)),Math.round(F.naturalHeight*O(x.top,x.bottom))]}}c.push(v)}),{moment:Pt({t,part:e.slide.id,texts:s,safe:Be,width:A,height:I,owner:a,containers:d,seen:l,glyphs:g}),slide:{slide:e.slide.id,steps:e.part.steps?.length??1,t,layout:e.slide.layout,hidden:e.slide.hidden,...e.slide.notes===void 0?{}:{notes:e.slide.notes},shapes:c}}},Me=e=>JSON.stringify(e.map(t=>[t.part.key,t.part.start,t.part.end,t.part.still,t.part.steps,t.part.hidden,t.part.layers,t.footage])),B={kind:"slides",get timeline(){return xe},async ready(){await R(b[0]?.part.still??0)},summary:()=>Tt(B),seek:(e,t)=>R(e,t?.plane),async update(e,t){for(const[a,d]of Object.entries(t??{}))ye.set(a,d);const n=k;k=e;const o=we(e);if(e.width!==n.width||e.height!==n.height||Me(o)!==Me(b))return k=n,{redrawn:[],reload:!0};const s=[];b=o.map((a,d)=>{const l=b[d];return l?.sign===a.sign?l:(s.push(a.slide.id),a)}),xe.parts=b.map(a=>a.part),ge();for(const a of[...C.values()])ae(a.slide.id)!==a.slot&&V(a);return G&&s.length>0&&await R(G.t,G.plane),{redrawn:s}},sheet:()=>H?.el,words:()=>[],lines:()=>[],captionOptions:()=>null,setPlaying:()=>{},text:()=>b.map(({slide:e})=>({key:e.id,...e.notes===void 0?{}:{notes:e.notes},onScreen:e.shapes.flatMap(t=>t.text&&!t.text.empty?[t.text.paragraphs.map(n=>n.runs.map(o=>o.text).join("")).join(`
|
|
5
|
+
`)]:[])})),reads:()=>f.reads(he,b.map(e=>e.slide.id)),problems:()=>[...f.problems,...$.problems,...f.translationProblems()],stuck:()=>{},seekLimit:de,facts:()=>[],says:()=>[],signs:()=>Object.fromEntries(b.map(e=>[e.slide.id,JSON.stringify({slide:JSON.parse(e.sign),width:A})])),mixPlan:()=>({duration:ne,speech:[],footage:[],sfx:[]}),covers:()=>[],drawCover:()=>Promise.resolve(),async measure(e){const t=[],n=[];for(const o of e??b.flatMap(s=>s.part.steps??[s.part.still])){await R(o);const s=ce();if(!s)continue;const a=nt(s,o);t.push(a.moment),n.push(a.slide)}return{width:A,height:I,deck:{pxPerPt:S*qe,slides:n,fonts:et()},safe:Be,moments:t,footage:[]}},tracks:()=>Promise.resolve([]),async deck(){const e={};for(const t of b){const n=await z(t);for(const o of n.el.querySelectorAll("[data-ak-font-scale]")){const s=o.closest(`[${N}]`)?.getAttribute(N),a=Number(o.dataset.akFontScale);s&&a<1&&(e[s]=a)}se()}return{width:k.width,height:k.height,theme:k.theme,masters:fe.masters,slides:k.slides,fitted:e,...Y===void 0?{}:{lang:Y}}},async inks(e){const{blocks:t,scale:n}=await $e(e);return t.flatMap(o=>o.ink===null?[]:[{text:{layer:"slide",z:"front",text:o.text,box:o.box},...at(o,n)}])},async objects(e){const{m:t,blocks:n}=await $e(e),o=h.getBoundingClientRect(),s=o.width>0?A/o.width:1;return{t:e,elements:t?[...t.el.querySelectorAll(`[${N}]`)].map(a=>{const d=a.getBoundingClientRect();return{id:a.getAttribute(N)??"",box:[(d.left-o.left)*s,(d.top-o.top)*s,d.width*s,d.height*s]}}):[],texts:n.map(a=>({text:a.text,box:[a.box[0],a.box[1],a.box[2],a.box[3]],size:a.size,keys:f.keysShowing(a.text)}))}},signature:()=>{const e=ce();if(!(!e||e.el.querySelector("canvas, video, iframe")))return Te(JSON.stringify(k.theme)+e.el.outerHTML)},async signatureAt(e){return await R(e),B.signature()},async partSignature(e,t){const n=ae(e);if(!n)return{unknown:`no slide ${e}`};const o=[];for(const s of t){await R(s);const a=C.get(e);if(!a)return{unknown:`slide ${e} is not at ${String(s)}`};if(a.el.querySelector("canvas, video, iframe"))return{unknown:"a canvas, a video or a frame on the slide"};o.push(a.el.outerHTML)}return{sign:Te(o.join(`
|
|
6
|
+
`)),owners:[...new Set(n.made.map(s=>s.layer.component))]}},ask:()=>Promise.resolve([]),play:(e,t)=>ht(B,e,t),answer(e){return e.type!=="deck-update"?ft(B,e):B.update(e.deck,e.media).then(t=>({type:"deck-updated",...t}))},dispose(){for(const e of[...C.values()])V(e);h.replaceChildren()}};return B}const Bt=i=>{const y=It(i);return y===void 0?{}:{title:y}};function It(i){const h=i.shapes.find(w=>w.placeholder?.type==="title"||w.placeholder?.type==="ctrTitle")?.text?.paragraphs.map(w=>w.runs.map(f=>f.text).join("")).join(" ").trim();return h===void 0||h===""?void 0:h}export function stageContext(i){const y=h=>()=>{throw new Error(`${h} is a video's: a slide has no speech.`)};return{look:i.look,format:i.format,dims:{width:i.width,height:i.height,orient:i.width>i.height?"landscape":i.width<i.height?"portrait":"square",safe:{top:0,bottom:0,left:0,right:0}},combo:i.combo,dur:i.end-i.start,asset:i.asset,words:()=>[],at:y("ctx.at()"),layer:{start:0,end:i.end-i.start},wait:i.wait,report:i.report,captions:()=>[],face:()=>{},faces:()=>[],texts:()=>[],covered:[],content:[0,0,i.width,i.height],realTimers:dt}}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{spawn as
|
|
3
|
-
`).slice(-3).join(" ");
|
|
2
|
+
import{declaredRules as f}from"@allyhub/diagnostics";import{spawn as w}from"node:child_process";import{workerCommand as g}from"@allyhub/runtimes/node";const k=4e3;function u(o){const{command:t,args:n}=g(import.meta.url,"build-worker");return new Promise((a,p)=>{const r=w(t,n,{stdio:["ignore","pipe","pipe","ipc"],serialization:"json"});let c="";const l=i=>{c=(c+i.toString("utf8")).slice(-k)};r.stdout?.on("data",l),r.stderr?.on("data",l);let e;r.on("message",i=>{e=i}),r.on("error",p),r.on("close",(i,m)=>{if(e?.ok)a(e.value);else if(e){const s=new Error(e.error);e.stack&&(s.stack=e.stack),p(s)}else{const s=c.trim().split(`
|
|
3
|
+
`).slice(-3).join(" ");p(new Error(`The build stopped (${m??`exit code ${String(i)}`})${s?`: ${s}`:"."}`))}});const d={...o,rules:f()};r.send(d)})}export async function prepareStage(o,t,n){return await u({type:"prepare",root:o,buildDir:t,kinds:n})}export function viewStage(o,t,n,a){return u({type:"view",root:o,file:t,outDir:n,kinds:a})}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{
|
|
2
|
+
import{kindBuildOf as u,prepare as w,readWork as p}from"@allyhub/build";import{declareAll as k}from"@allyhub/diagnostics";import{itemsOf as m,WORK_FILE as f}from"@allyhub/formats";async function l(e,r,i,n){const{work:a}=await p(e),d=m(a,n).items.find(t=>t.entry===r),s=n.find(t=>t.id===d?.kind),o=await u(s);if(!o?.view)throw new Error(`${r} has no viewer: ${s?`the ${s.extension} extension's ${s.id} items are not viewed`:`${f} does not list it`}.`);return o.view({root:e,file:r,outDir:i})}function v(e){switch(e.type){case"prepare":return w(e.root,{kinds:e.kinds,buildDir:e.buildDir});case"view":return l(e.root,e.file,e.outDir,e.kinds)}}const c=(e,r)=>{process.send?.(e,()=>process.exit(r))};process.once("message",e=>{k(e.rules),v(e).then(r=>{c({ok:!0,value:r},0)},r=>{const i=r instanceof Error?r:new Error(String(r));c({ok:!1,error:i.message,...i.stack?{stack:i.stack}:{}},1)})}),process.on("disconnect",()=>process.exit(1));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{createHash as
|
|
2
|
+
import{createHash as s}from"node:crypto";import{readFileSync as r}from"node:fs";import{createRequire as a}from"node:module";import{stageFiles as n}from"@allyhub/stage-page";const u=a(import.meta.url),t=e=>{try{const i=JSON.parse(r(u.resolve(`${e}/package.json`),"utf8"));return`${e}@${i.version??"?"}`}catch{return`${e}@?`}};let o;export function stageIdentity(e){return o??=`runtime:${s("sha256").update(r(n().runtime)).digest("hex")}`,[o,t("@allyhub/stage-page"),t("@allyhub/sdk"),...e?[`fonts:${e}`]:[]]}
|