allyhub 0.18.0 → 0.20.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/bin/allyhub.js +10 -0
- package/dist/args.js +1 -1
- package/dist/command.js +1 -1
- package/dist/commands/add.js +1 -1
- package/dist/commands/align.js +1 -1
- package/dist/commands/auth.js +1 -1
- package/dist/commands/check.js +1 -1
- package/dist/commands/cloud-tools.js +2 -2
- package/dist/commands/cloud.js +1 -1
- package/dist/commands/contributed.js +1 -1
- package/dist/commands/dev.js +5 -5
- package/dist/commands/export.js +3 -0
- package/dist/commands/found-extensions.js +2 -0
- package/dist/commands/frames/common.js +1 -1
- package/dist/commands/frames/doc.js +1 -1
- 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 +1 -1
- package/dist/commands/inspect/common.js +3 -3
- package/dist/commands/inspect/facts.js +2 -2
- package/dist/commands/inspect/index.js +1 -1
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/inspect/views.js +1 -1
- package/dist/commands/list.js +2 -0
- package/dist/commands/mail.js +1 -1
- package/dist/commands/migrate.js +3 -0
- package/dist/commands/run-context.js +2 -0
- package/dist/commands/skills.js +3 -3
- package/dist/commands/upgrade.js +5 -0
- package/dist/commands.json +1 -0
- package/dist/fields.js +1 -1
- package/dist/help.js +3 -3
- package/dist/main.js +8 -7
- package/dist/node_modules/@allyhub/3d-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/3d-extension/dist/scenery-build.js +1 -1
- package/dist/node_modules/@allyhub/3d-extension/package.json +4 -3
- package/dist/node_modules/@allyhub/audio/package.json +1 -1
- package/dist/node_modules/@allyhub/blocks/LICENSE +241 -0
- package/dist/node_modules/@allyhub/blocks/dist/alt.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/elements.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/flow-resolve.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/flow-table.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/format.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/gantt.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/grids.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/html.js +75 -0
- package/dist/node_modules/@allyhub/blocks/dist/icons.generated.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/icons.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/index.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/layout.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/look.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/measure.js +3 -0
- package/dist/node_modules/@allyhub/blocks/dist/model.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/page.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/palette.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/path.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/resolve.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/samples.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/sankey.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/svg.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/tidy.js +2 -0
- package/dist/node_modules/@allyhub/blocks/dist/trees.js +2 -0
- package/dist/node_modules/@allyhub/blocks/package.json +19 -0
- package/dist/node_modules/@allyhub/browser/dist/html.js +1 -1
- package/dist/node_modules/@allyhub/browser/package.json +1 -1
- package/dist/node_modules/@allyhub/build/dist/build-plugins.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/fonts.js +9 -3
- package/dist/node_modules/@allyhub/build/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/inspect-view.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/meta-worker.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/migrate.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/plugin.js +9 -9
- package/dist/node_modules/@allyhub/build/dist/prepare.js +3 -3
- package/dist/node_modules/@allyhub/build/dist/project-root.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/scan.js +1 -1
- package/dist/node_modules/@allyhub/build/dist/sdk-parts.js +2 -0
- package/dist/node_modules/@allyhub/build/dist/vite.js +2 -2
- package/dist/node_modules/@allyhub/build/dist/work.js +3 -3
- package/dist/node_modules/@allyhub/build/package.json +13 -1
- package/dist/node_modules/@allyhub/canvas-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/canvas-model/package.json +1 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-file.js +2 -1
- package/dist/node_modules/@allyhub/chart/dist/chart-xml.js +4 -3
- package/dist/node_modules/@allyhub/chart/dist/chart.js +4 -2
- package/dist/node_modules/@allyhub/chart/dist/chartex-xml.js +4 -0
- package/dist/node_modules/@allyhub/chart/dist/classic.js +2 -0
- package/dist/node_modules/@allyhub/chart/dist/embedded.js +2 -2
- package/dist/node_modules/@allyhub/chart/dist/extended.js +2 -0
- package/dist/node_modules/@allyhub/chart/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/svg.js +1 -1
- package/dist/node_modules/@allyhub/chart/dist/tree.js +2 -0
- package/dist/node_modules/@allyhub/chart/package.json +1 -1
- package/dist/node_modules/@allyhub/check/dist/check.js +2 -2
- package/dist/node_modules/@allyhub/check/package.json +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/blobs.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/call.js +4 -4
- package/dist/node_modules/@allyhub/cloud/dist/catalog.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/config.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/credentials.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/device.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/loopback.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/mail.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/records.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/signin.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/sites.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/storage.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/token.js +1 -1
- package/dist/node_modules/@allyhub/cloud/dist/tools.js +2 -0
- package/dist/node_modules/@allyhub/cloud/dist/uploads.js +2 -2
- package/dist/node_modules/@allyhub/cloud/dist/voice.js +1 -1
- package/dist/node_modules/@allyhub/cloud/package.json +5 -1
- package/dist/node_modules/@allyhub/components/package.json +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/background.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/item-process.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/item-worker.js +2 -0
- package/dist/node_modules/@allyhub/dev-server/dist/live.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/pages.js +20 -1
- package/dist/node_modules/@allyhub/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/record.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/server.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/dev-server/dist/validate.js +2 -2
- package/dist/node_modules/@allyhub/dev-server/dist/writer.js +3 -3
- package/dist/node_modules/@allyhub/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub/diagnostics/dist/rules.js +1 -1
- package/dist/node_modules/@allyhub/diagnostics/package.json +1 -1
- package/dist/node_modules/@allyhub/doc/dist/blocks.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/color.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/docx-read.js +12 -0
- package/dist/node_modules/@allyhub/doc/dist/docx.js +5 -4
- package/dist/node_modules/@allyhub/doc/dist/html.js +83 -48
- 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/merges.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/model.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/numbering.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/omml.js +3 -0
- package/dist/node_modules/@allyhub/doc/dist/page.js +2 -1
- package/dist/node_modules/@allyhub/doc/dist/paper.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/parse.js +5 -4
- package/dist/node_modules/@allyhub/doc/dist/redline.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/revisions.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/shapes.js +4 -0
- package/dist/node_modules/@allyhub/doc/dist/styles.js +2 -0
- package/dist/node_modules/@allyhub/doc/dist/table.js +1 -1
- package/dist/node_modules/@allyhub/doc/dist/write.js +65 -39
- package/dist/node_modules/@allyhub/doc/package.json +5 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/build.js +2 -2
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/find.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/import.js +3 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/index.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/cli/styles.js +4 -0
- package/dist/node_modules/@allyhub/doc-extension/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/project-tools.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/dist/workspace.js +1 -1
- package/dist/node_modules/@allyhub/doc-extension/package.json +22 -2
- package/dist/node_modules/@allyhub/doc-print/dist/drawn.js +4 -4
- package/dist/node_modules/@allyhub/doc-print/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/doc-print/dist/layout.js +8 -7
- package/dist/node_modules/@allyhub/doc-print/dist/print.js +22 -16
- package/dist/node_modules/@allyhub/doc-print/package.json +1 -1
- package/dist/node_modules/@allyhub/export/dist/export.js +1 -1
- package/dist/node_modules/@allyhub/export/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-api/package.json +1 -1
- package/dist/node_modules/@allyhub/extension-host/dist/points.js +1 -1
- package/dist/node_modules/@allyhub/extension-host/package.json +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/blocks-flow.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/blocks.d.ts +146 -0
- package/dist/node_modules/@allyhub/formats/dist/data/blocks.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.d.ts +9 -0
- package/dist/node_modules/@allyhub/formats/dist/data/cell-styles.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/deck-code.d.ts +47 -40
- package/dist/node_modules/@allyhub/formats/dist/data/deck-code.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.d.ts +6 -0
- package/dist/node_modules/@allyhub/formats/dist/data/diagram-kinds.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/diagrams.d.ts +29 -0
- package/dist/node_modules/@allyhub/formats/dist/data/diagrams.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.d.ts +18 -0
- package/dist/node_modules/@allyhub/formats/dist/data/faces.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/page-data.d.ts +59 -0
- package/dist/node_modules/@allyhub/formats/dist/data/page-data.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/reference.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.d.ts +698 -258
- package/dist/node_modules/@allyhub/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/slides.d.ts +14104 -2167
- package/dist/node_modules/@allyhub/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/data/themes.d.ts +82 -0
- package/dist/node_modules/@allyhub/formats/dist/data/themes.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/tokens.d.ts +67 -0
- package/dist/node_modules/@allyhub/formats/dist/data/tokens.js +2 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.d.ts +42 -0
- package/dist/node_modules/@allyhub/formats/dist/data/work.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/index.d.ts +7 -0
- package/dist/node_modules/@allyhub/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/items.d.ts +36 -10
- package/dist/node_modules/@allyhub/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/note-shape.d.ts +1 -1
- package/dist/node_modules/@allyhub/formats/dist/schemas.d.ts +3260 -290
- package/dist/node_modules/@allyhub/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub/formats/dist/tolerant.d.ts +45 -0
- package/dist/node_modules/@allyhub/formats/dist/tolerant.js +2 -0
- package/dist/node_modules/@allyhub/formats/package.json +25 -1
- package/dist/node_modules/@allyhub/html-extension/dist/project-tools.js +21 -9
- package/dist/node_modules/@allyhub/html-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/html-extension/markup/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/html-extension/markup/markup.json +14 -4
- package/dist/node_modules/@allyhub/html-extension/markup/pages/budget.html +22 -1
- package/dist/node_modules/@allyhub/html-extension/package.json +9 -1
- package/dist/node_modules/@allyhub/i18n/package.json +1 -1
- package/dist/node_modules/@allyhub/image-draw/dist/fonts.js +1 -1
- package/dist/node_modules/@allyhub/image-draw/dist/inspect.js +2 -2
- package/dist/node_modules/@allyhub/image-draw/package.json +1 -1
- package/dist/node_modules/@allyhub/image-extension/dist/build-plugins.js +1 -1
- package/dist/node_modules/@allyhub/image-extension/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/image-extension/package.json +2 -2
- package/dist/node_modules/@allyhub/image-extension/skills/allyhub/references/images.md +1 -1
- package/dist/node_modules/@allyhub/image-measure/dist/layout.js +2 -2
- package/dist/node_modules/@allyhub/image-measure/package.json +1 -1
- package/dist/node_modules/@allyhub/image-psd/package.json +1 -1
- package/dist/node_modules/@allyhub/image-render/package.json +1 -1
- package/dist/node_modules/@allyhub/image-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/image-sdk/dist/block.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/blocks.js +2 -0
- package/dist/node_modules/@allyhub/image-sdk/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/image-sdk/package.json +1 -1
- package/dist/node_modules/@allyhub/jobs/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-extension/package.json +1 -3
- package/dist/node_modules/@allyhub/linkedin-extension/skills/allyhub/references/linkedin.md +3 -3
- package/dist/node_modules/@allyhub/linkedin-model/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-view/package.json +1 -1
- package/dist/node_modules/@allyhub/linkedin-view/src/style.css +1 -600
- package/dist/node_modules/@allyhub/measure/package.json +1 -1
- package/dist/node_modules/@allyhub/media/package.json +5 -1
- package/dist/node_modules/@allyhub/media-extension/dist/analyses/faces.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/asr/hear.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/asr/transcribe.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/ocr/text.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/vision/faces.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/dist/vision/index-media.js +3 -2
- package/dist/node_modules/@allyhub/media-extension/dist/vision/track.js +1 -1
- package/dist/node_modules/@allyhub/media-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/model/package.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/markup/csv/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/csv/markup.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/markup/document/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/presentation/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/workbook/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/office-extension/markup/workbook/markup.json +1 -1
- package/dist/node_modules/@allyhub/office-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/ext.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/mce.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/node.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/ns.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/dist/opc.js +1 -1
- package/dist/node_modules/@allyhub/ooxml/package.json +1 -1
- package/dist/node_modules/@allyhub/piece/dist/export.d.ts +1 -1
- package/dist/node_modules/@allyhub/piece/dist/layer.d.ts +1 -2
- package/dist/node_modules/@allyhub/piece/dist/layout.d.ts +2 -0
- package/dist/node_modules/@allyhub/piece/dist/look.d.ts +10 -2
- package/dist/node_modules/@allyhub/piece/dist/look.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/media.d.ts +9 -3
- package/dist/node_modules/@allyhub/piece/dist/script.js +1 -1
- package/dist/node_modules/@allyhub/piece/dist/source.d.ts +5 -2
- package/dist/node_modules/@allyhub/piece/dist/stage.d.ts +2 -2
- package/dist/node_modules/@allyhub/piece/package.json +1 -1
- package/dist/node_modules/@allyhub/project/dist/media-index.js +1 -1
- package/dist/node_modules/@allyhub/project/package.json +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/blobs.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cli.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/events.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/kinds.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/mail.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/page-frame.js +2 -0
- package/dist/node_modules/@allyhub/protocol/dist/paywall.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/purposes.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/registry.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/sites.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/teams.js +1 -1
- package/dist/node_modules/@allyhub/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/protocol/package.json +41 -1
- package/dist/node_modules/@allyhub/registry/package.json +1 -1
- package/dist/node_modules/@allyhub/render/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub/render/dist/post-probe.js +1 -1
- package/dist/node_modules/@allyhub/render/package.json +9 -1
- package/dist/node_modules/@allyhub/runtime/dist/footage.js +1 -1
- package/dist/node_modules/@allyhub/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/bundled.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/declared.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/manifest.js +1 -1
- package/dist/node_modules/@allyhub/runtimes/dist/packages.js +2 -2
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.js +3 -3
- package/dist/node_modules/@allyhub/runtimes/package.json +9 -1
- package/dist/node_modules/@allyhub/scaffold/dist/index.js +12 -8
- package/dist/node_modules/@allyhub/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/bundle.js +3 -3
- package/dist/node_modules/@allyhub/scenery-host/dist/fact.d.ts +1 -1
- package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.js +2 -2
- package/dist/node_modules/@allyhub/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/annotations.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/capabilities.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/api/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/arrange.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/calc/server.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/cell-styles.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/check.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/file.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/filter.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/generated.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/heatmap.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/html.js +9 -9
- package/dist/node_modules/@allyhub/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/paginate.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/printed.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/sdk.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/sparklines.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/table-style.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/table-styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/theme.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/tiles.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/units.js +2 -0
- package/dist/node_modules/@allyhub/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/write.js +14 -14
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/read.js +2 -2
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/theme.js +1 -1
- package/dist/node_modules/@allyhub/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/open.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/cli/sheet.js +7 -7
- package/dist/node_modules/@allyhub/sheet-extension/dist/code.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/evaluate.js +2 -2
- package/dist/node_modules/@allyhub/sheet-extension/dist/export.js +2 -2
- package/dist/node_modules/@allyhub/sheet-extension/dist/inspect.js +2 -2
- package/dist/node_modules/@allyhub/sheet-extension/dist/migrations.js +4 -0
- package/dist/node_modules/@allyhub/sheet-extension/dist/project-tools.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub/sheet-extension/package.json +7 -3
- package/dist/node_modules/@allyhub/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/blocks.js +2 -0
- 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/code.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/file.js +3 -3
- 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/model.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/office-layouts.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/office.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/script.js +2 -2
- package/dist/node_modules/@allyhub/slides-core/dist/styles/brief.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/editorial.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/index.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/kit.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/layouts.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/pitch.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/stage.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/styles/tiles.js +2 -0
- package/dist/node_modules/@allyhub/slides-core/dist/theme.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/check.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/cli/slides.js +2 -2
- package/dist/node_modules/@allyhub/slides-extension/dist/deck-fonts.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/dist/project-tools.js +1 -1
- package/dist/node_modules/@allyhub/slides-extension/package.json +24 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/charts.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/fonts.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/image-size.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/code.js +3 -3
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/index.js +7 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/names.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/import/script.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/mtx.js +2 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/chart.js +3 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/chartex.js +3 -0
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/common.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/index.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/table.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/read/timing.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/shapes.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/text.js +1 -1
- package/dist/node_modules/@allyhub/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub/slides-pptx/dist/xml.js +3 -2
- package/dist/node_modules/@allyhub/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub/slides-runtime/dist/load.js +1 -1
- package/dist/node_modules/@allyhub/slides-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/stage/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/files/archivo-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/files/archivo-black-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/archivo-black/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/400.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/700.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/arimo/arial.css +1 -316
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400-italic.css +1 -19
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/400.css +1 -19
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700-italic.css +1 -19
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/700.css +1 -19
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/caladea/cambria.css +1 -76
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400-italic.css +1 -69
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/400.css +1 -69
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700-italic.css +1 -69
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/700.css +1 -69
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/carlito/calibri.css +1 -276
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/400.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/700.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/cousine/courier-new.css +1 -316
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/files/ibm-plex-sans-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/ibm-plex-sans/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/files/inter-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/inter-static/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/files/newsreader-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/newsreader/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-color-emoji/emoji.css +1 -8
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/400.css +1 -1009
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/700.css +1 -1009
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/noto-sans-sc/microsoft-yahei.css +1 -2018
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/LICENSE +93 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-400-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-italic.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/files/plus-jakarta-sans-latin-ext-700-normal.woff2 +0 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-400.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700-italic.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/plus-jakarta-sans/latin-ext-700.css +1 -0
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/400.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700-italic.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/700.css +1 -79
- package/dist/node_modules/@allyhub/stage-page/dist/fonts/tinos/times-new-roman.css +1 -316
- package/dist/node_modules/@allyhub/stage-page/dist/host.js +1 -1
- package/dist/node_modules/@allyhub/stage-page/dist/runtime/stage.html +42 -0
- package/dist/node_modules/@allyhub/stage-page/dist/style-faces.js +2 -0
- package/dist/node_modules/@allyhub/stage-page/package.json +1 -1
- package/dist/node_modules/@allyhub/stage-runtime/dist/runtime.js +96 -92
- package/dist/node_modules/@allyhub/stage-runtime/package.json +1 -1
- package/dist/node_modules/@allyhub/telemetry/dist/doc.js +1 -1
- package/dist/node_modules/@allyhub/telemetry/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub/telemetry/dist/limit.js +2 -0
- package/dist/node_modules/@allyhub/telemetry/dist/telemetry.js +2 -2
- package/dist/node_modules/@allyhub/telemetry/package.json +5 -1
- package/dist/node_modules/@allyhub/text-extension/markup/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/text-extension/markup-file/allyhub.yaml +2 -0
- package/dist/node_modules/@allyhub/text-extension/package.json +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/footage-motion.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub/video-core/dist/seams.js +1 -1
- package/dist/node_modules/@allyhub/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/build-plugins.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/cli/reference-text.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/index.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/joins.js +1 -1
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/loop.js +3 -0
- package/dist/node_modules/@allyhub/video-extension/package.json +7 -26
- package/dist/node_modules/@allyhub/video-measure/dist/check.js +2 -2
- package/dist/node_modules/@allyhub/video-measure/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/dist/plans.js +2 -2
- package/dist/node_modules/@allyhub/video-measure/dist/reference/video.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/dist/seams.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/dist/version.js +1 -1
- package/dist/node_modules/@allyhub/video-measure/package.json +5 -1
- package/dist/node_modules/@allyhub/video-sdk/dist/config.js +2 -0
- package/dist/node_modules/@allyhub/video-sdk/dist/free.js +1 -1
- package/dist/node_modules/@allyhub/video-sdk/dist/piece.js +1 -1
- package/dist/node_modules/@allyhub/video-sdk/package.json +5 -1
- package/dist/node_modules/@allyhub/website/dist/index.js +1 -1
- package/dist/node_modules/@allyhub/website/dist/website.js +2 -2
- package/dist/node_modules/@allyhub/website/package.json +1 -1
- package/dist/node_modules/@allyhub/website-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/website-extension/package.json +6 -6
- package/dist/node_modules/@allyhub/x-extension/dist/build.js +1 -1
- package/dist/node_modules/@allyhub/x-extension/package.json +8 -4
- package/dist/node_modules/@allyhub/x-extension/skills/allyhub/references/x.md +3 -3
- package/dist/node_modules/@allyhub/x-model/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/package.json +1 -1
- package/dist/node_modules/@allyhub/x-view/src/style.css +1 -709
- package/dist/package.json +14 -14
- package/dist/project.js +1 -1
- package/dist/resources.js +1 -1
- package/dist/sdk-docs.js +1 -1
- package/dist/self-upgrade.js +2 -0
- package/dist/slot.js +4 -0
- package/dist/telemetry.js +1 -1
- package/dist/text/batch-text.js +1 -1
- package/dist/text/facts-text.js +5 -5
- package/dist/text/format.js +2 -2
- package/dist/update-notice.js +3 -0
- package/dist/version.js +1 -1
- package/dist/works.js +1 -1
- package/editor-web/assets/{abnfDiagram-WEYOIA3C-Hy4-O0wN.js → abnfDiagram-WEYOIA3C-BkVJMd53.js} +1 -1
- package/editor-web/assets/{architecture-WOLXFQ4H-43JEVxqz.js → architecture-WOLXFQ4H-C6rnaynZ.js} +1 -1
- package/editor-web/assets/{architectureDiagram-ZHVYKT53-7bFTl41n.js → architectureDiagram-ZHVYKT53-D3vrh8LK.js} +1 -1
- package/editor-web/assets/arrow-down-D-QZrqcz.js +1 -0
- package/editor-web/assets/arrow-up-B1zjKUHX.js +1 -0
- package/editor-web/assets/article-DHf6mOY_.js +7 -0
- package/editor-web/assets/article-Dns1-Xh-.js +3 -0
- package/editor-web/assets/{audio-lines-PZj77e7t.js → audio-lines-BFoW_IeO.js} +1 -1
- package/editor-web/assets/bar-button-CKPfx2AB.js +1 -0
- package/editor-web/assets/{blockDiagram-RJAE7QA3-DcoNo1WH.js → blockDiagram-RJAE7QA3-BKngt8H7.js} +1 -1
- package/editor-web/assets/{browser-C9NP0ZYz.js → browser-DEGNhKTV.js} +1 -1
- package/editor-web/assets/{c4Diagram-XDPPPE54-CsMt61gx.js → c4Diagram-XDPPPE54-j7sUELqF.js} +1 -1
- package/editor-web/assets/calc-worker-Cr4a0xmt.js +168 -0
- package/editor-web/assets/channel-CVWSV3su.js +1 -0
- package/editor-web/assets/{chart-no-axes-column-Be0lFcGF.js → chart-no-axes-column-Dyy25XZ_.js} +1 -1
- package/editor-web/assets/chip-Bn_9JRRG.js +1 -0
- package/editor-web/assets/{chunk-2E7WHVMD-fj-TJIRG.js → chunk-2E7WHVMD-BXa-uRSi.js} +1 -1
- package/editor-web/assets/{chunk-4EMNKR2T-Du5cRy-Y.js → chunk-4EMNKR2T-B3ntcsZN.js} +1 -1
- package/editor-web/assets/{chunk-55XCU76K-BHXxBBtm.js → chunk-55XCU76K-AMvnFwUg.js} +1 -1
- package/editor-web/assets/{chunk-7S6XSTFO-R5HW6X5I.js → chunk-7S6XSTFO-BA6esfFu.js} +1 -1
- package/editor-web/assets/{chunk-AQDTSKZB-C98F2BUb.js → chunk-AQDTSKZB-BT_vANXs.js} +1 -1
- package/editor-web/assets/{chunk-DSNLSHJZ-NIGsJ2cK.js → chunk-DSNLSHJZ-DoUgmzGB.js} +1 -1
- package/editor-web/assets/{chunk-HAGFOTED-BtHxtfW5.js → chunk-HAGFOTED-DtnIrCZb.js} +1 -1
- package/editor-web/assets/{chunk-HNE4Q36P-BI8i7Vkk.js → chunk-HNE4Q36P-BlPwQx3_.js} +1 -1
- package/editor-web/assets/{chunk-NQOKRVIF-DP_Z_zEA.js → chunk-NQOKRVIF-D2r7jp2r.js} +1 -1
- package/editor-web/assets/{chunk-UHW7PFBP-C_8bui28.js → chunk-UHW7PFBP-Cmc0_F5o.js} +1 -1
- package/editor-web/assets/{chunk-VQ5W62QI-CKZgzWB2.js → chunk-VQ5W62QI-nJSMqAr0.js} +1 -1
- package/editor-web/assets/{chunk-WQQL4CDK-Ff4DgCht.js → chunk-WQQL4CDK-Btq2nbF6.js} +1 -1
- package/editor-web/assets/{chunk-YZO67HFG-Csbx1-pi.js → chunk-YZO67HFG-DTbcCoGt.js} +1 -1
- package/editor-web/assets/{chunk-ZAUX2LTX-BO1kcV3w.js → chunk-ZAUX2LTX-DVwkg-2N.js} +1 -1
- package/editor-web/assets/{chunk-ZCHMQSOR-CxeNZYZG.js → chunk-ZCHMQSOR-BV39jOOE.js} +1 -1
- package/editor-web/assets/{classDiagram-v2-4MYWR3UA-D8eHQa5i.js → classDiagram-v2-4MYWR3UA-Cj74-fhM.js} +1 -1
- package/editor-web/assets/code-Ch6AB5bZ.js +1 -0
- package/editor-web/assets/collaborator-XiHOxwGM.js +1 -0
- package/editor-web/assets/{copy-CuJSs0nI.js → copy-SoaMYqsN.js} +1 -1
- package/editor-web/assets/{createLucideIcon-lm_6n8YT.js → createLucideIcon-euu7Wcd9.js} +1 -1
- package/editor-web/assets/{cynefin-EF2NZ3EQ-lIUY3WQQ.js → cynefin-EF2NZ3EQ-C0CkiipV.js} +1 -1
- package/editor-web/assets/{cynefinDiagram-WF24UDRP-CFOOhEEs.js → cynefinDiagram-WF24UDRP-hdsnJ4cI.js} +1 -1
- package/editor-web/assets/{dagre-NK4GIZVX-DdHVup2I.js → dagre-NK4GIZVX-CC7WSgaK.js} +1 -1
- package/editor-web/assets/deck-DQpNIS2p.js +1 -0
- package/editor-web/assets/{diagram-CBK3MWTC-CFAD9Y2B.js → diagram-CBK3MWTC-DmaVm13J.js} +1 -1
- package/editor-web/assets/{diagram-I5XIIV2D-DZJAn95A.js → diagram-I5XIIV2D-De8jqp7b.js} +1 -1
- package/editor-web/assets/{diagram-ODIL2UCW-BcIeYTaY.js → diagram-ODIL2UCW-B5pBTulX.js} +1 -1
- package/editor-web/assets/{diagram-PFBEJUXE-CnZmh_fl.js → diagram-PFBEJUXE-BYsXg5_w.js} +1 -1
- package/editor-web/assets/{diagram-RJA3I4VV-DpDd9rGx.js → diagram-RJA3I4VV-DZ8f6bYe.js} +1 -1
- package/editor-web/assets/{diagram-TYUNFSNR-ouGiUQcR.js → diagram-TYUNFSNR-qXHUsauD.js} +1 -1
- package/editor-web/assets/dist--z0ZHp4T.js +16 -0
- package/editor-web/assets/dist-9kuRjUTN.js +41 -0
- package/editor-web/assets/dist-B3rd02Cg.js +6 -0
- package/editor-web/assets/dist-B5GOGGEe.js +1 -0
- package/editor-web/assets/dist-Bx6q9kCu.js +1 -0
- package/editor-web/assets/dist-C4hHtrJr.js +1 -0
- package/editor-web/assets/dist-CCXJewsi.js +19 -0
- package/editor-web/assets/dist-CfK2BLl8.js +4 -0
- package/editor-web/assets/dist-Cmux3oJ_.js +1 -0
- package/editor-web/assets/dist-Cspf85KV.js +6 -0
- package/editor-web/assets/dist-DA72-4WB.js +82 -0
- package/editor-web/assets/{dist-DruvDNQe.js → dist-DAhe-kFC.js} +5 -5
- package/editor-web/assets/dist-DIJnhQFK.js +9 -0
- package/editor-web/assets/dist-DOrGo1GD.js +19 -0
- package/editor-web/assets/{dist-Bd8IxQPP.js → dist-DQ6RpEJD.js} +2 -2
- package/editor-web/assets/dist-DjiCHlSu.js +35 -0
- package/editor-web/assets/dist-Do4a40Wn.js +19 -0
- package/editor-web/assets/dist-FKEWS3Co.js +547 -0
- package/editor-web/assets/dist-QKd2i6kG.js +5 -0
- package/editor-web/assets/dist-SGnOfLhx.js +24 -0
- package/editor-web/assets/dist-VmVB7tl4.js +3 -0
- package/editor-web/assets/{docx-draw-C4aiB8HI.js → docx-draw-L54blreB.js} +1 -1
- package/editor-web/assets/{ebnfDiagram-V4P3TTPT-HRjVlbUf.js → ebnfDiagram-V4P3TTPT-B7-IfVI-.js} +1 -1
- package/editor-web/assets/{elk-QONTBCTQ-BFmtKyOf.js → elk-QONTBCTQ-Gj_WaeBn.js} +1 -1
- package/editor-web/assets/{erDiagram-KYQIGQAA-C9gcGEgK.js → erDiagram-KYQIGQAA-BDF6Qoqx.js} +1 -1
- package/editor-web/assets/esm-PQD5Pn8a.js +21 -0
- package/editor-web/assets/{eventmodeling-K75KTNOO-Bpma5Bdb.js → eventmodeling-K75KTNOO-elxVXXEe.js} +1 -1
- package/editor-web/assets/{file-question-mark-DlIjUK37.js → file-question-mark-PeZgyqkK.js} +1 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-B-25n8zE.js +1 -0
- package/editor-web/assets/{ganttDiagram-R7GPNTJY-CE5ut4C3.js → ganttDiagram-R7GPNTJY-CEogW3jW.js} +1 -1
- package/editor-web/assets/{gitGraph-VSP46ZUC-Dva3iGx2.js → gitGraph-VSP46ZUC-Bh9cRWFa.js} +1 -1
- package/editor-web/assets/{gitGraphDiagram-PDYL7XHY-CJXFsAWp.js → gitGraphDiagram-PDYL7XHY-BQAvdM_V.js} +1 -1
- package/editor-web/assets/{group-BdrTp7gi.js → group-DwM2yqU8.js} +1 -1
- package/editor-web/assets/hint-CbwoSBMw.js +1 -0
- package/editor-web/assets/index-CXisi0Cj.css +2 -0
- package/editor-web/assets/index-wMlfx8aT.js +28 -0
- package/editor-web/assets/{info-OHQRW6UA-BY0AOfex.js → info-OHQRW6UA-CdPrqere.js} +1 -1
- package/editor-web/assets/{infoDiagram-MVDRKAX5-4Up1gMvC.js → infoDiagram-MVDRKAX5-uwIMeP44.js} +1 -1
- package/editor-web/assets/{ishikawaDiagram-HPEHV2GE-BkvB9Qbn.js → ishikawaDiagram-HPEHV2GE-rtfvqK7E.js} +1 -1
- package/editor-web/assets/iso-UwGLGD3F.js +1 -0
- package/editor-web/assets/{italic-zw4_eUNF.js → italic-BV7iHxoP.js} +1 -1
- package/editor-web/assets/{journeyDiagram-BOSHW7O7-BxV09WdR.js → journeyDiagram-BOSHW7O7-mmhfIyVG.js} +1 -1
- package/editor-web/assets/{kanban-definition-FNSA4HC5-zTJtIDPG.js → kanban-definition-FNSA4HC5-Fe7jBsi-.js} +1 -1
- package/editor-web/assets/{link-DopSU3aa.js → link-CFOv3nz-.js} +1 -1
- package/editor-web/assets/{mermaid-parser.core-BWT9UQh_.js → mermaid-parser.core-BxOSjBH9.js} +3 -3
- package/editor-web/assets/{mermaid.core-DFf_Vg5X.js → mermaid.core-BOln9YdH.js} +4 -4
- package/editor-web/assets/{mindmap-definition-6OY57UG3-BYexiugS.js → mindmap-definition-6OY57UG3-M3Q1LOtO.js} +1 -1
- package/editor-web/assets/minus-ngE8owxs.js +1 -0
- package/editor-web/assets/{packet-JDAUHWVQ-DX_kSrI6.js → packet-JDAUHWVQ-Dbb0TUG6.js} +1 -1
- package/editor-web/assets/{pegDiagram-ECIUJNBX-I3SrcMLp.js → pegDiagram-ECIUJNBX-BZMRpSFC.js} +1 -1
- package/editor-web/assets/{pie-XZMESJXO-BmAFSw3E.js → pie-XZMESJXO-Ctm9XdKp.js} +1 -1
- package/editor-web/assets/{pieDiagram-GNMPY74T-DIZKcme5.js → pieDiagram-GNMPY74T-cGbs5ZTl.js} +1 -1
- package/editor-web/assets/progress-DZQTiRLv.js +6 -0
- package/editor-web/assets/{quadrantDiagram-D57K4MC3-CO3oSqpQ.js → quadrantDiagram-D57K4MC3-BUe_zsxT.js} +1 -1
- package/editor-web/assets/{radar-ABXABTNO-D5CkFrrb.js → radar-ABXABTNO-CCmKtqLs.js} +1 -1
- package/editor-web/assets/{railroad-I3PHUGI6-BeKY1p0K.js → railroad-I3PHUGI6-k-yhjhjA.js} +1 -1
- package/editor-web/assets/{railroad-abnf-LNEFI6M7-CIYV9_3-.js → railroad-abnf-LNEFI6M7-B-PvntB3.js} +1 -1
- package/editor-web/assets/{railroad-ebnf-DWYD2UWJ-DN0zDl6d.js → railroad-ebnf-DWYD2UWJ-Ds2rua1h.js} +1 -1
- package/editor-web/assets/{railroad-peg-JR7BVNR7-Bd_GcO24.js → railroad-peg-JR7BVNR7-jNZ2wEp2.js} +1 -1
- package/editor-web/assets/{railroadDiagram-Y72NRBL7-DlFoiMhb.js → railroadDiagram-Y72NRBL7-CTqSQ15w.js} +1 -1
- package/editor-web/assets/react-Byupo4pA.js +1 -0
- package/editor-web/assets/replace-CLLMtF4e.js +1 -0
- package/editor-web/assets/{requirementDiagram-EQYSW5RA-LWAEz8Gy.js → requirementDiagram-EQYSW5RA-CUblhR5M.js} +1 -1
- package/editor-web/assets/ribbon-DajdQ_Ya.js +1 -0
- package/editor-web/assets/row-Bei9HNEe.js +1 -0
- package/editor-web/assets/{sankeyDiagram-SY24JHO5-B_pZGwUK.js → sankeyDiagram-SY24JHO5-nSz6zDX3.js} +1 -1
- package/editor-web/assets/schemas-C21MyseF.js +1 -0
- package/editor-web/assets/{iso-ahTwmFwH.js → schemas-DlRAoVtq.js} +1 -1
- package/editor-web/assets/{scissors-B_xOiUhd.js → scissors-m6QcoEf2.js} +1 -1
- package/editor-web/assets/search-D75Bi2GU.js +1 -0
- package/editor-web/assets/{sequenceDiagram-BLEHNHQU-bNhyCq0C.js → sequenceDiagram-BLEHNHQU-DxTpOYuo.js} +1 -1
- package/editor-web/assets/{session-Beijw9EK.js → session-BhClkDyr.js} +1 -1
- package/editor-web/assets/{sigma-DSUsJhMn.js → sigma-B4AWtnVA.js} +1 -1
- package/editor-web/assets/snapshots-DwGHDN3t.js +1 -0
- package/editor-web/assets/sound-DkR3qxSt.js +1 -0
- package/editor-web/assets/split-DBAbwPZ5.js +3 -0
- package/editor-web/assets/{square-arrow-out-up-right-DF5dvsSp.js → square-arrow-out-up-right-1NqFsNDe.js} +1 -1
- package/editor-web/assets/{stateDiagram-v2-A6IESKWZ-DI-oM3qz.js → stateDiagram-v2-A6IESKWZ-C3e14iHY.js} +1 -1
- package/editor-web/assets/{sticky-note-BdkIu5_D.js → sticky-note-s4QfzaBB.js} +1 -1
- package/editor-web/assets/surface-CIF0Ae0z.js +1 -0
- package/editor-web/assets/swatch-BUzr_XmH.js +1 -0
- package/editor-web/assets/{swimlanes-B3ENRKFQ-awDmoLdW.js → swimlanes-B3ENRKFQ-DPPdzNzu.js} +1 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-B8n3zOw_.js +8 -0
- package/editor-web/assets/switch-DrZxoPQS.js +1 -0
- package/editor-web/assets/{syntax-CU_WPKxt.js → syntax-emXV4DnN.js} +1 -1
- package/editor-web/assets/table-BW43XXVd.js +1 -0
- package/editor-web/assets/tabs-BwU2E7bU.js +1 -0
- package/editor-web/assets/text-wrap-Baus6l-V.js +1 -0
- package/editor-web/assets/textarea-BX_ax3X8.js +1 -0
- package/editor-web/assets/{timeline-definition-JXYKGLGB-CayduPvL.js → timeline-definition-JXYKGLGB-DRTJ1_Er.js} +1 -1
- package/editor-web/assets/tolerant-DM9s0Mt1.js +1 -0
- package/editor-web/assets/{treeView-D4JQ5SDB-BVEuNzCO.js → treeView-D4JQ5SDB-BYJ_m-i5.js} +1 -1
- package/editor-web/assets/{treemap-SAJKECNS-BOB14HP3.js → treemap-SAJKECNS-BcU6I6Rg.js} +1 -1
- package/editor-web/assets/type-CvZ0HZsV.js +41 -0
- package/editor-web/assets/{undo-2-C47jrRp5.js → undo-2-DCbMWoug.js} +1 -1
- package/editor-web/assets/{usecaseDiagram-WPOLBNNX-DxT99uaq.js → usecaseDiagram-WPOLBNNX-YV92pS4o.js} +1 -1
- package/editor-web/assets/{vennDiagram-Q3Y3IDCW-CWUKom-r.js → vennDiagram-Q3Y3IDCW-oAvfHZtf.js} +1 -1
- package/editor-web/assets/video-SJvDRCJK.js +1 -0
- package/editor-web/assets/{wardley-7MLQ67FV-BAQyTneD.js → wardley-7MLQ67FV-BLNiqxtt.js} +1 -1
- package/editor-web/assets/{wardleyDiagram-IVAIDKWA-CiIYz4lZ.js → wardleyDiagram-IVAIDKWA-SppgC6xW.js} +1 -1
- package/editor-web/assets/{whole-word-D3ZAtnkw.js → whole-word-C9TkGBCY.js} +1 -1
- package/editor-web/assets/{words-0Ww2RyT4.js → words-BUlNNuH2.js} +3 -3
- package/editor-web/assets/words-zMedmPWc.js +3 -0
- package/editor-web/assets/workbook-BZKYx4WB.js +41 -0
- package/editor-web/assets/{xychartDiagram-4URNHDU4-D_D5IGmd.js → xychartDiagram-4URNHDU4-BHMn_jwJ.js} +1 -1
- package/editor-web/assets/{zoom-in-PgsC94hP.js → zoom-in-yAGKspfC.js} +1 -1
- package/editor-web/index.html +9 -8
- package/package.json +3 -3
- package/CHANGELOG.md +0 -243
- package/dist/commands/render.js +0 -3
- package/dist/node_modules/@allyhub/browser/dist/browser.d.ts +0 -24
- package/dist/node_modules/@allyhub/browser/dist/capture.d.ts +0 -61
- package/dist/node_modules/@allyhub/browser/dist/cdp.d.ts +0 -51
- package/dist/node_modules/@allyhub/browser/dist/emoji.d.ts +0 -29
- package/dist/node_modules/@allyhub/browser/dist/flags.d.ts +0 -13
- package/dist/node_modules/@allyhub/browser/dist/frames.d.ts +0 -35
- package/dist/node_modules/@allyhub/browser/dist/html.d.ts +0 -19
- package/dist/node_modules/@allyhub/browser/dist/index.d.ts +0 -10
- package/dist/node_modules/@allyhub/browser/dist/launch.d.ts +0 -35
- package/dist/node_modules/@allyhub/browser/dist/page.d.ts +0 -74
- package/dist/node_modules/@allyhub/browser/dist/picture.d.ts +0 -18
- package/dist/node_modules/@allyhub/browser/dist/server.d.ts +0 -26
- package/dist/node_modules/@allyhub/build/dist/build-plugins.d.ts +0 -91
- package/dist/node_modules/@allyhub/build/dist/cli-command.d.ts +0 -84
- package/dist/node_modules/@allyhub/build/dist/code.d.ts +0 -26
- package/dist/node_modules/@allyhub/build/dist/content.d.ts +0 -64
- package/dist/node_modules/@allyhub/build/dist/data.d.ts +0 -11
- package/dist/node_modules/@allyhub/build/dist/evaluate.d.ts +0 -44
- package/dist/node_modules/@allyhub/build/dist/file-check.d.ts +0 -35
- package/dist/node_modules/@allyhub/build/dist/files.d.ts +0 -4
- package/dist/node_modules/@allyhub/build/dist/fonts.d.ts +0 -26
- package/dist/node_modules/@allyhub/build/dist/generated.d.ts +0 -29
- package/dist/node_modules/@allyhub/build/dist/imports.d.ts +0 -17
- package/dist/node_modules/@allyhub/build/dist/index.d.ts +0 -37
- package/dist/node_modules/@allyhub/build/dist/inspect-view.d.ts +0 -119
- package/dist/node_modules/@allyhub/build/dist/kind-build.d.ts +0 -530
- package/dist/node_modules/@allyhub/build/dist/made-notes.d.ts +0 -9
- package/dist/node_modules/@allyhub/build/dist/matrix.d.ts +0 -19
- package/dist/node_modules/@allyhub/build/dist/media.d.ts +0 -10
- package/dist/node_modules/@allyhub/build/dist/messages.d.ts +0 -60
- package/dist/node_modules/@allyhub/build/dist/meta-worker.d.ts +0 -59
- package/dist/node_modules/@allyhub/build/dist/meta.d.ts +0 -24
- package/dist/node_modules/@allyhub/build/dist/model-info.d.ts +0 -6
- package/dist/node_modules/@allyhub/build/dist/move-refs.d.ts +0 -16
- package/dist/node_modules/@allyhub/build/dist/places.d.ts +0 -23
- package/dist/node_modules/@allyhub/build/dist/plugin.d.ts +0 -50
- package/dist/node_modules/@allyhub/build/dist/prepare.d.ts +0 -138
- package/dist/node_modules/@allyhub/build/dist/project-root.d.ts +0 -19
- package/dist/node_modules/@allyhub/build/dist/project-tool.d.ts +0 -136
- package/dist/node_modules/@allyhub/build/dist/references.d.ts +0 -6
- package/dist/node_modules/@allyhub/build/dist/scan.d.ts +0 -45
- package/dist/node_modules/@allyhub/build/dist/stage-route.d.ts +0 -80
- package/dist/node_modules/@allyhub/build/dist/takes.d.ts +0 -9
- package/dist/node_modules/@allyhub/build/dist/types.d.ts +0 -11
- package/dist/node_modules/@allyhub/build/dist/uses.d.ts +0 -44
- package/dist/node_modules/@allyhub/build/dist/version.d.ts +0 -56
- package/dist/node_modules/@allyhub/build/dist/vite.d.ts +0 -115
- package/dist/node_modules/@allyhub/build/dist/work.d.ts +0 -38
- package/dist/node_modules/@allyhub/cloud/dist/blobs.d.ts +0 -48
- package/dist/node_modules/@allyhub/cloud/dist/call.d.ts +0 -91
- package/dist/node_modules/@allyhub/cloud/dist/catalog.d.ts +0 -12
- package/dist/node_modules/@allyhub/cloud/dist/client.d.ts +0 -64
- package/dist/node_modules/@allyhub/cloud/dist/config.d.ts +0 -40
- package/dist/node_modules/@allyhub/cloud/dist/credentials.d.ts +0 -76
- package/dist/node_modules/@allyhub/cloud/dist/device.d.ts +0 -14
- package/dist/node_modules/@allyhub/cloud/dist/errors.d.ts +0 -24
- package/dist/node_modules/@allyhub/cloud/dist/hashes.d.ts +0 -43
- package/dist/node_modules/@allyhub/cloud/dist/index.d.ts +0 -19
- package/dist/node_modules/@allyhub/cloud/dist/keychain.d.ts +0 -18
- package/dist/node_modules/@allyhub/cloud/dist/loopback.d.ts +0 -22
- package/dist/node_modules/@allyhub/cloud/dist/mail.d.ts +0 -16
- package/dist/node_modules/@allyhub/cloud/dist/pkce.d.ts +0 -11
- package/dist/node_modules/@allyhub/cloud/dist/records.d.ts +0 -42
- package/dist/node_modules/@allyhub/cloud/dist/signin-worker.d.ts +0 -2
- package/dist/node_modules/@allyhub/cloud/dist/signin.d.ts +0 -48
- package/dist/node_modules/@allyhub/cloud/dist/sites.d.ts +0 -20
- package/dist/node_modules/@allyhub/cloud/dist/token.d.ts +0 -20
- package/dist/node_modules/@allyhub/cloud/dist/uploads.d.ts +0 -58
- package/dist/node_modules/@allyhub/cloud/dist/voice.d.ts +0 -22
- package/dist/node_modules/@allyhub/jobs/dist/index.d.ts +0 -3
- package/dist/node_modules/@allyhub/jobs/dist/jobs.d.ts +0 -139
- package/dist/node_modules/@allyhub/jobs/dist/show.d.ts +0 -41
- package/dist/node_modules/@allyhub/measure/dist/compare.d.ts +0 -195
- package/dist/node_modules/@allyhub/measure/dist/grain.d.ts +0 -8
- package/dist/node_modules/@allyhub/measure/dist/image.d.ts +0 -16
- package/dist/node_modules/@allyhub/measure/dist/index.d.ts +0 -4
- package/dist/node_modules/@allyhub/media/dist/analysis.d.ts +0 -25
- package/dist/node_modules/@allyhub/media/dist/audio.d.ts +0 -16
- package/dist/node_modules/@allyhub/media/dist/beats.d.ts +0 -100
- package/dist/node_modules/@allyhub/media/dist/cache.d.ts +0 -26
- package/dist/node_modules/@allyhub/media/dist/errors.d.ts +0 -34
- package/dist/node_modules/@allyhub/media/dist/fetch.d.ts +0 -11
- package/dist/node_modules/@allyhub/media/dist/grid.d.ts +0 -101
- package/dist/node_modules/@allyhub/media/dist/index.d.ts +0 -21
- package/dist/node_modules/@allyhub/media/dist/picture.d.ts +0 -130
- package/dist/node_modules/@allyhub/media/dist/probe.d.ts +0 -52
- package/dist/node_modules/@allyhub/media/dist/progress.d.ts +0 -16
- package/dist/node_modules/@allyhub/media/dist/run.d.ts +0 -25
- package/dist/node_modules/@allyhub/media/dist/sheet.d.ts +0 -67
- package/dist/node_modules/@allyhub/media/dist/shots.d.ts +0 -110
- package/dist/node_modules/@allyhub/media/dist/sync.d.ts +0 -156
- package/dist/node_modules/@allyhub/media/dist/tools.d.ts +0 -25
- package/dist/node_modules/@allyhub/media/dist/video.d.ts +0 -35
- package/dist/node_modules/@allyhub/media/dist/vision/cache.d.ts +0 -42
- package/dist/node_modules/@allyhub/media/dist/vision/probe.d.ts +0 -39
- package/dist/node_modules/@allyhub/media/dist/vision/types.d.ts +0 -2
- package/dist/node_modules/@allyhub/media/dist/voice-shape.d.ts +0 -51
- package/dist/node_modules/@allyhub/model/dist/authoring.d.ts +0 -48
- package/dist/node_modules/@allyhub/model/dist/bevel-attributes.d.ts +0 -19
- package/dist/node_modules/@allyhub/model/dist/bevel-collapse.d.ts +0 -12
- package/dist/node_modules/@allyhub/model/dist/bevel-corner-plan.d.ts +0 -24
- package/dist/node_modules/@allyhub/model/dist/bevel-deform.d.ts +0 -5
- package/dist/node_modules/@allyhub/model/dist/bevel-fans.d.ts +0 -12
- package/dist/node_modules/@allyhub/model/dist/bevel-junction.d.ts +0 -16
- package/dist/node_modules/@allyhub/model/dist/bevel-marks.d.ts +0 -14
- package/dist/node_modules/@allyhub/model/dist/bevel-metric.d.ts +0 -4
- package/dist/node_modules/@allyhub/model/dist/bevel-mixed.d.ts +0 -12
- package/dist/node_modules/@allyhub/model/dist/bevel-offsets.d.ts +0 -22
- package/dist/node_modules/@allyhub/model/dist/bevel-patch.d.ts +0 -45
- package/dist/node_modules/@allyhub/model/dist/bevel-profile.d.ts +0 -13
- package/dist/node_modules/@allyhub/model/dist/bevel-projection.d.ts +0 -10
- package/dist/node_modules/@allyhub/model/dist/bevel-reflex.d.ts +0 -10
- package/dist/node_modules/@allyhub/model/dist/bevel-square-out.d.ts +0 -18
- package/dist/node_modules/@allyhub/model/dist/bevel-strips.d.ts +0 -8
- package/dist/node_modules/@allyhub/model/dist/bmesh-cycles.d.ts +0 -52
- package/dist/node_modules/@allyhub/model/dist/build-cache.d.ts +0 -42
- package/dist/node_modules/@allyhub/model/dist/build-job.d.ts +0 -34
- package/dist/node_modules/@allyhub/model/dist/build-worker.d.ts +0 -2
- package/dist/node_modules/@allyhub/model/dist/build.d.ts +0 -67
- package/dist/node_modules/@allyhub/model/dist/cancel.d.ts +0 -8
- package/dist/node_modules/@allyhub/model/dist/curve-math.d.ts +0 -21
- package/dist/node_modules/@allyhub/model/dist/curve-mesh.d.ts +0 -30
- package/dist/node_modules/@allyhub/model/dist/evaluation-guard.d.ts +0 -11
- package/dist/node_modules/@allyhub/model/dist/export.d.ts +0 -12
- package/dist/node_modules/@allyhub/model/dist/mesh-queries.d.ts +0 -34
- package/dist/node_modules/@allyhub/model/dist/names.d.ts +0 -9
- package/dist/node_modules/@allyhub/model/dist/png.d.ts +0 -12
- package/dist/node_modules/@allyhub/model/dist/polygon-triangulation.d.ts +0 -4
- package/dist/node_modules/@allyhub/model/dist/program-location.d.ts +0 -7
- package/dist/node_modules/@allyhub/model/dist/report.d.ts +0 -70
- package/dist/node_modules/@allyhub/piece/dist/page/console.d.ts +0 -21
- package/dist/node_modules/@allyhub/piece/dist/page/index.d.ts +0 -4
- package/dist/node_modules/@allyhub/piece/dist/page/locate.d.ts +0 -17
- package/dist/node_modules/@allyhub/piece/dist/page/runtimes.d.ts +0 -9
- package/dist/node_modules/@allyhub/protocol/dist/account.d.ts +0 -661
- package/dist/node_modules/@allyhub/protocol/dist/account.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/app.d.ts +0 -30
- package/dist/node_modules/@allyhub/protocol/dist/auth.d.ts +0 -200
- package/dist/node_modules/@allyhub/protocol/dist/blobs.d.ts +0 -44
- package/dist/node_modules/@allyhub/protocol/dist/cli.d.ts +0 -68
- package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.d.ts +0 -77
- package/dist/node_modules/@allyhub/protocol/dist/cloud-computer.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/cloud.d.ts +0 -577
- package/dist/node_modules/@allyhub/protocol/dist/editor.d.ts +0 -674
- package/dist/node_modules/@allyhub/protocol/dist/errors.d.ts +0 -7
- package/dist/node_modules/@allyhub/protocol/dist/events.d.ts +0 -803
- package/dist/node_modules/@allyhub/protocol/dist/files.d.ts +0 -103
- package/dist/node_modules/@allyhub/protocol/dist/frame.d.ts +0 -247
- package/dist/node_modules/@allyhub/protocol/dist/image.d.ts +0 -8
- package/dist/node_modules/@allyhub/protocol/dist/index.d.ts +0 -38
- package/dist/node_modules/@allyhub/protocol/dist/jobs.d.ts +0 -91
- package/dist/node_modules/@allyhub/protocol/dist/jsonrpc.d.ts +0 -83
- package/dist/node_modules/@allyhub/protocol/dist/kinds.d.ts +0 -144
- package/dist/node_modules/@allyhub/protocol/dist/mail.d.ts +0 -274
- package/dist/node_modules/@allyhub/protocol/dist/notes.d.ts +0 -211
- package/dist/node_modules/@allyhub/protocol/dist/open.d.ts +0 -13
- package/dist/node_modules/@allyhub/protocol/dist/paywall.d.ts +0 -134
- package/dist/node_modules/@allyhub/protocol/dist/peer.d.ts +0 -59
- package/dist/node_modules/@allyhub/protocol/dist/peer.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/place.d.ts +0 -21
- package/dist/node_modules/@allyhub/protocol/dist/presence.d.ts +0 -125
- package/dist/node_modules/@allyhub/protocol/dist/purposes.d.ts +0 -47
- package/dist/node_modules/@allyhub/protocol/dist/registry.d.ts +0 -191
- package/dist/node_modules/@allyhub/protocol/dist/routes.d.ts +0 -14
- package/dist/node_modules/@allyhub/protocol/dist/routes.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/runtimes.d.ts +0 -96
- package/dist/node_modules/@allyhub/protocol/dist/shape.d.ts +0 -35
- package/dist/node_modules/@allyhub/protocol/dist/shape.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/shares.d.ts +0 -156
- package/dist/node_modules/@allyhub/protocol/dist/shares.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.d.ts +0 -34
- package/dist/node_modules/@allyhub/protocol/dist/sidebar-deletion.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/sites.d.ts +0 -298
- package/dist/node_modules/@allyhub/protocol/dist/snapshots.d.ts +0 -503
- package/dist/node_modules/@allyhub/protocol/dist/sources.d.ts +0 -14
- package/dist/node_modules/@allyhub/protocol/dist/studio-server.d.ts +0 -264
- package/dist/node_modules/@allyhub/protocol/dist/studio-server.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.d.ts +0 -18
- package/dist/node_modules/@allyhub/protocol/dist/studio-tool-calls.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.d.ts +0 -97
- package/dist/node_modules/@allyhub/protocol/dist/studio-window-requests.js +0 -2
- package/dist/node_modules/@allyhub/protocol/dist/teams.d.ts +0 -196
- package/dist/node_modules/@allyhub/protocol/dist/tools.d.ts +0 -578
- package/dist/node_modules/@allyhub/protocol/dist/turns.d.ts +0 -71
- package/dist/node_modules/@allyhub/protocol/dist/turns.js +0 -2
- package/dist/node_modules/@allyhub/runtimes/dist/bundled.d.ts +0 -10
- package/dist/node_modules/@allyhub/runtimes/dist/declared.d.ts +0 -14
- package/dist/node_modules/@allyhub/runtimes/dist/download.d.ts +0 -38
- package/dist/node_modules/@allyhub/runtimes/dist/errors.d.ts +0 -20
- package/dist/node_modules/@allyhub/runtimes/dist/ffmpeg.d.ts +0 -15
- package/dist/node_modules/@allyhub/runtimes/dist/home.d.ts +0 -2
- package/dist/node_modules/@allyhub/runtimes/dist/index.d.ts +0 -12
- package/dist/node_modules/@allyhub/runtimes/dist/lock.d.ts +0 -14
- package/dist/node_modules/@allyhub/runtimes/dist/manifest.d.ts +0 -3
- package/dist/node_modules/@allyhub/runtimes/dist/node-program.d.ts +0 -12
- package/dist/node_modules/@allyhub/runtimes/dist/packages.d.ts +0 -101
- package/dist/node_modules/@allyhub/runtimes/dist/runtimes.d.ts +0 -73
- package/dist/node_modules/@allyhub/runtimes/dist/unpack.d.ts +0 -14
- package/dist/node_modules/@allyhub/scenery-host/dist/allyhub.d.ts +0 -20
- package/dist/node_modules/@allyhub/scenery-host/dist/bake/digest.d.ts +0 -14
- package/dist/node_modules/@allyhub/scenery-host/dist/bake/envmap.d.ts +0 -21
- package/dist/node_modules/@allyhub/scenery-host/dist/bake/run.d.ts +0 -63
- package/dist/node_modules/@allyhub/scenery-host/dist/budget.d.ts +0 -40
- package/dist/node_modules/@allyhub/scenery-host/dist/bundle.d.ts +0 -92
- package/dist/node_modules/@allyhub/scenery-host/dist/commands.d.ts +0 -54
- package/dist/node_modules/@allyhub/scenery-host/dist/draw2d.d.ts +0 -47
- package/dist/node_modules/@allyhub/scenery-host/dist/glass.d.ts +0 -39
- package/dist/node_modules/@allyhub/scenery-host/dist/index.d.ts +0 -25
- package/dist/node_modules/@allyhub/scenery-host/dist/inventory.d.ts +0 -18
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/fidelity.d.ts +0 -70
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/grade.d.ts +0 -7
- package/dist/node_modules/@allyhub/scenery-host/dist/layer/moire.d.ts +0 -6
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/contacts.d.ts +0 -45
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/health.d.ts +0 -10
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/index.d.ts +0 -110
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/relations.d.ts +0 -17
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/solid.d.ts +0 -32
- package/dist/node_modules/@allyhub/scenery-host/dist/measure/support.d.ts +0 -11
- package/dist/node_modules/@allyhub/scenery-host/dist/model-stage.d.ts +0 -32
- package/dist/node_modules/@allyhub/scenery-host/dist/queries/inventory.d.ts +0 -5
- package/dist/node_modules/@allyhub/scenery-host/dist/queries/map.d.ts +0 -5
- package/dist/node_modules/@allyhub/scenery-host/dist/queries/view.d.ts +0 -10
- package/dist/node_modules/@allyhub/scenery-host/dist/scene.d.ts +0 -35
- package/dist/node_modules/@allyhub/scenery-host/dist/screen-dom.d.ts +0 -24
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/bakes.d.ts +0 -42
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/index.d.ts +0 -6
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/page.d.ts +0 -70
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/solve.d.ts +0 -49
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/version.d.ts +0 -73
- package/dist/node_modules/@allyhub/scenery-host/dist/stage/view.d.ts +0 -18
- package/dist/node_modules/@allyhub/scenery-host/dist/steady.d.ts +0 -4
- package/dist/node_modules/@allyhub/scenery-host/dist/viewer.d.ts +0 -134
- package/dist/node_modules/@allyhub/video-extension/dist/inspect/motion.js +0 -4
- package/dist/node_modules/@allyhub/video-measure/dist/still.js +0 -2
- package/editor-web/assets/arrow-down-B8VUPCGi.js +0 -1
- package/editor-web/assets/arrow-up-Ds4juY8X.js +0 -1
- package/editor-web/assets/article-CS48wwvk.js +0 -3
- package/editor-web/assets/article-Cyle57uq.js +0 -7
- package/editor-web/assets/bar-button-J9vbfzTx.js +0 -1
- package/editor-web/assets/calc-worker-BdHh5LXM.js +0 -45
- package/editor-web/assets/channel-HUlo15J7.js +0 -1
- package/editor-web/assets/chart-amT4lgX3.js +0 -2
- package/editor-web/assets/chart-file-CfbWK9l1.js +0 -1
- package/editor-web/assets/code-CD-CbJG9.js +0 -1
- package/editor-web/assets/collaborator-BU4qU7O3.js +0 -1
- package/editor-web/assets/deck-CtEtDHo2.js +0 -1
- package/editor-web/assets/dist-BBshIz1Q.js +0 -5
- package/editor-web/assets/dist-BI8QjOsV.js +0 -1
- package/editor-web/assets/dist-BajH5QfK.js +0 -24
- package/editor-web/assets/dist-Bl74xqMW.js +0 -19
- package/editor-web/assets/dist-BrUtQth3.js +0 -18
- package/editor-web/assets/dist-CN5A7Au2.js +0 -1
- package/editor-web/assets/dist-CcL6r6l3.js +0 -1
- package/editor-web/assets/dist-D2E3cgRP.js +0 -4
- package/editor-web/assets/dist-D3C6FyrO.js +0 -82
- package/editor-web/assets/dist-DGKjn59H.js +0 -16
- package/editor-web/assets/dist-NQNQ5HqZ.js +0 -17
- package/editor-web/assets/dist-SV0sOVIC.js +0 -43
- package/editor-web/assets/dist-YW8hS4IM.js +0 -9
- package/editor-web/assets/dist-Y_XZZa8q.js +0 -531
- package/editor-web/assets/dist-ZrBAbqyJ.js +0 -3
- package/editor-web/assets/dist-d4dayaWE.js +0 -17
- package/editor-web/assets/dist-elglzHMT.js +0 -6
- package/editor-web/assets/dist-hHcrvNn9.js +0 -1
- package/editor-web/assets/esm-DzxAod8Q.js +0 -21
- package/editor-web/assets/file-exclamation-point-_L3ElCJ5.js +0 -1
- package/editor-web/assets/flowDiagram-IUGLLWBU-tz5ewhC5.js +0 -1
- package/editor-web/assets/hint-rlht0uxG.js +0 -1
- package/editor-web/assets/index-Dvh1t1om.css +0 -2
- package/editor-web/assets/index-q7X6hdHp.js +0 -28
- package/editor-web/assets/minus-CbPnUIOy.js +0 -1
- package/editor-web/assets/progress-CwKcXARv.js +0 -6
- package/editor-web/assets/props-form-DUFxM5eb.js +0 -1
- package/editor-web/assets/react-Edyoga_4.js +0 -1
- package/editor-web/assets/row-C_svyL8o.js +0 -1
- package/editor-web/assets/schemas-moE_A7Nj.js +0 -1
- package/editor-web/assets/search-Ba2BbT6T.js +0 -1
- package/editor-web/assets/slides-oQ_C0SVJ.js +0 -1
- package/editor-web/assets/snapshots-Dd0Wd_qM.js +0 -1
- package/editor-web/assets/sound-bTlco_K3.js +0 -1
- package/editor-web/assets/split-zARio3J8.js +0 -3
- package/editor-web/assets/strikethrough-BwXWi4zg.js +0 -1
- package/editor-web/assets/surface-DtCjIlrq.js +0 -1
- package/editor-web/assets/svg-CWIBMIQ9.js +0 -1
- package/editor-web/assets/swatch-DhztHwPU.js +0 -1
- package/editor-web/assets/swimlanesDiagram-AYQRV4AK-X35m3xN6.js +0 -8
- package/editor-web/assets/switch-8MU4Nfxe.js +0 -1
- package/editor-web/assets/table-DRbddzx0.js +0 -1
- package/editor-web/assets/tabs-BHBvbekZ.js +0 -1
- package/editor-web/assets/tag-CIfWT8B_.js +0 -1
- package/editor-web/assets/text-align-start-Cic2-TLh.js +0 -1
- package/editor-web/assets/textarea-D7TnPwv1.js +0 -1
- package/editor-web/assets/video-oJ3qa1Qv.js +0 -1
- package/editor-web/assets/words-XlXG79Ur.js +0 -3
- package/editor-web/assets/workbook-DznVDqoE.js +0 -45
- package/editor-web/assets/x-DlhyIKuu.js +0 -41
- /package/dist/node_modules/@allyhub/{protocol/dist/runtimes.js → runtimes/dist/schema.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{CAPS as Ae,colorOfFile as fe,groupLevels as ze,SHOW_JUMPS as Te,showJumpOf as je,slideLinkOf as Ee,UNDERLINES as Fe}from"@allyhub/formats";import{readMarks as Ne,markRuns as Me}from"@allyhub/piece";import{shownPath as Le}from"@allyhub/formats";import{chartOfFile as Ce}from"@allyhub/chart";import{AUTOSHAPE_STYLE as D,SHADOW_DEFAULTS as W,PATTERN_DEFAULTS as ce,TILE_DEFAULTS as H,INNER_SHADOW_DEFAULTS as G,GLOW_DEFAULTS as ee,REFLECTION_DEFAULTS as K,CONNECTOR_STYLE as ue,DRAWN_TEXTBOX_FRAME as pe,TEXT_FALLBACK as he,TEXT_INSETS as J,isConnectorGeometry as Pe,placeholderFrame as Re,styleKindOf as De}from"./office.js";import{resolveAnimation as Ue,resolveTransition as Ie,unitsAcross as We,EFFECT_OPTIONS as He,TRANSITION_OPTIONS as Ge}from"./animation.js";import{glued as Xe}from"./connect.js";import{pathSteps as Be}from"./path.js";import{CHART_AXIS_WORDS as Ke}from"./script.js";import{cellLook as Je,tableStyleOf as ne}from"./table-style.js";import{masterPlaceholder as Ye}from"./placeholders.js";import{DECK_FONTS as Ve,OFFICE_THEME as Ze,themeOver as qe}from"./theme.js";import{Pt as v}from"./units.js";export function joinPath(i,t){if(t.startsWith("/"))return t.slice(1);const d=[];for(const a of[...i.split("/"),...t.split("/")])a===""||a==="."||(a===".."?d.pop():d.push(a));return d.join("/")}const me={left:0,top:0,width:0,height:0};function Qe(i,t){const d={...i.color_map,...t.color_map};return Object.keys(d).length>0?{color_map:d}:{}}const Y=()=>Array.from({length:9},()=>({...he,font:{...he.font},margin_left:0}));export function levelsOver(i,...t){return i.map((d,a)=>{let o={...d,font:{...d.font}};for(const g of t){const r=g?.[a];r&&(o={...o,...r.alignment===void 0?{}:{alignment:r.alignment},...r.line_spacing===void 0?{}:{line_spacing:r.line_spacing},...r.space_before===void 0?{}:{space_before:r.space_before},...r.space_after===void 0?{}:{space_after:r.space_after},...r.margin_left===void 0?{}:{margin_left:r.margin_left},...r.indent===void 0?{}:{indent:r.indent},font:{...o.font,...r.font}},r.numbered!==void 0&&(o.numbered=r.numbered,delete o.bullet),r.bullet===null?(delete o.bullet,delete o.numbered):r.bullet!==void 0?(delete o.numbered,o.bullet={char:r.bullet,...r.bullet_font===void 0?{}:{font:r.bullet_font}}):r.bullet_font!==void 0&&o.bullet&&(o.bullet={...o.bullet,font:r.bullet_font}),o=bulletLookOver(o,r))}return o})}export function bulletLookOver(i,t){const d={...i};return t.bullet_color===null?delete d.bullet_color:t.bullet_color!==void 0&&(d.bullet_color=t.bullet_color),t.bullet_size===null?delete d.bullet_size:t.bullet_size!==void 0&&(d.bullet_size=t.bullet_size),t.start_at!==void 0&&(d.start_at=t.start_at),d}function te(i,...t){const d=t.filter(o=>o!==void 0),a=o=>{for(let g=d.length-1;g>=0;g--){const r=d[g]?.[o];if(r!==void 0)return r}};return{vertical_anchor:a("vertical_anchor")??i.vertical_anchor,orientation:a("orientation")??"horz",auto_size:a("auto_size")??i.auto_size,word_wrap:a("word_wrap")??i.word_wrap,margins:{left:a("margin_left")??J.left,top:a("margin_top")??J.top,right:a("margin_right")??J.right,bottom:a("margin_bottom")??J.bottom}}}const _e={vertical_anchor:"t",auto_size:"none",word_wrap:!0};export const plainLevels=i=>levelsOver(Y(),i.text_styles.other);function ie(i,t){return{...te(_e,t),levels:levelsOver(Y(),i.text_styles.other,t.levels)}}function en(i,t,...d){return{...te(Re(t),...d),levels:levelsOver(Y(),i.text_styles[De(t)],...d.map(a=>a?.levels))}}const nn=Array.from({length:9},()=>({font:{color:D.font_color}})),ge={vertical_anchor:D.vertical_anchor};function be(i,t){return{...te(_e,t),levels:levelsOver(Y(),i.text_styles.other,nn,t.levels)}}const V=i=>{const t={...i};return delete t.paragraphs,t},Z=i=>({paragraphs:[],levels:[],...i}),P=i=>i==="none"?null:colorOfFile(i),tn=/<span((?:\s+(?:color|font|size|bold|italic|underline|link|highlight|baseline|strike|spacing|caps)="[^"\n]*")+)\s*>(.*?)<\/span>/gu,on=/(color|font|size|bold|italic|underline|link|highlight|baseline|strike|spacing|caps)="([^"\n]*)"/gu,q=57344,an=256,ye="",rn=/[\ue000-\ue100]|[^\ue000-\ue100]+/gu;export const spaceOfFile=i=>typeof i=="number"?v(i):{lines:i.lines},colorOfFile=i=>fe(i)??"dk1";function oe(i){const{shadow:t,gradient:d,inner_shadow:a,glow:o,reflection:g}=i;return{...a?{inner_shadow:{color:a.color===void 0?G.color:colorOfFile(a.color),blur:a.blur===void 0?G.blur:v(a.blur),distance:a.distance===void 0?G.distance:v(a.distance),angle:a.angle??G.angle,transparency:a.transparency??G.transparency}}:{},...o?{glow:{color:o.color===void 0?ee.color:colorOfFile(o.color),size:o.size===void 0?ee.size:v(o.size),transparency:o.transparency??ee.transparency}}:{},...i.soft_edges===void 0?{}:{soft_edges:v(i.soft_edges)},...g?{reflection:{transparency:g.transparency??K.transparency,size:g.size??K.size,distance:g.distance===void 0?K.distance:v(g.distance),blur:g.blur===void 0?K.blur:v(g.blur)}}:{},...i.fill_transparency===void 0?{}:{fill_transparency:i.fill_transparency},...d?{gradient:{angle:d.angle??0,...d.path===void 0?{}:{path:d.path},...d.focus===void 0?{}:{focus:{left:d.focus.left??.5,top:d.focus.top??.5,right:d.focus.right??.5,bottom:d.focus.bottom??.5}},stops:d.stops.map(r=>({at:r.at,color:colorOfFile(r.color),...r.transparency===void 0?{}:{transparency:r.transparency}}))}}:{},...t?{shadow:{color:t.color===void 0?W.color:colorOfFile(t.color),blur:t.blur===void 0?W.blur:v(t.blur),distance:t.distance===void 0?W.distance:v(t.distance),angle:t.angle??W.angle,transparency:t.transparency??W.transparency}}:{}}}const dn=i=>({...i.tile?{tile:{...i.tile}}:{},...i.transparency===void 0?{}:{transparency:i.transparency}});function $e(i,t){const{pattern:d,picture_fill:a}=i;return{...d?{pattern:{preset:d.preset,fg:colorOfFile(d.fg??ce.fg),bg:colorOfFile(d.bg??ce.bg)}}:{},...a?{picture_fill:{path:joinPath(t,a.path),...a.tile?{tile:{scale_x:a.tile.scale_x??H.scale_x,scale_y:a.tile.scale_y??H.scale_y,offset_x:a.tile.x===void 0?H.offset_x:v(a.tile.x),offset_y:a.tile.y===void 0?H.offset_y:v(a.tile.y),align:a.tile.align??H.align}}:{},...a.transparency===void 0?{}:{transparency:a.transparency}}}:{}}}function ke(i,t,d=[]){const a=ne(i.style);return{...i,rows:i.rows.map((o,g)=>({height:o.height,cells:o.cells.map((r,j)=>{const N=d[g],_=a?Je(a,i,g,j,i.rows.length,i.columns.length,g+(r.span_height??1)-1,j+(r.span_width??1)-1):void 0,E=ie(t,r.text),C=_&&(_.bold!==void 0||_.text!==void 0)?{...E,levels:E.levels.map(R=>({...R,font:{...R.font,..._.bold===void 0?{}:{bold:_.bold},..._.text===void 0?{}:{color:_.text}}}))}:E;return{...r,text:{paragraphs:r.text.paragraphs,style:Q({...C,auto_size:"shape"},N),own:V(r.text),empty:!1},...N?{fileText:N}:{}}})}))}}function Q(i,t){return t?{...i,...t.anchor===void 0?{}:{vertical_anchor:t.anchor},...t.orientation===void 0?{}:{orientation:t.orientation},levels:i.levels.map(d=>{const a={...d.font,...t.size===void 0?{}:{size:v(t.size)},...t.bold===void 0?{}:{bold:t.bold},...t.italic===void 0?{}:{italic:t.italic},...t.underline===void 0?{}:{underline:t.underline},...t.strike===void 0?{}:{strike:t.strike},...t.caps===void 0?{}:{caps:t.caps},...t.font===void 0?{}:{name:t.font}};t.color!==void 0&&(a.color=colorOfFile(t.color));const o={...d,font:a,...t.align===void 0?{}:{alignment:t.align},...t.line_spacing===void 0?{}:{line_spacing:{lines:t.line_spacing}},...t.space_before===void 0?{}:{space_before:spaceOfFile(t.space_before)},...t.space_after===void 0?{}:{space_after:spaceOfFile(t.space_after)}};return t.bullet_color!==void 0&&(o.bullet_color=colorOfFile(t.bullet_color)),t.bullet_size!==void 0&&(o.bullet_size=t.bullet_size),t.start_at!==void 0&&(o.start_at=t.start_at),t.numbered!==void 0?(o.numbered=t.numbered,delete o.bullet):t.bullet===!1?(delete o.bullet,delete o.numbered):t.bullet!==void 0&&(o.bullet={char:t.bullet},delete o.numbered),(t.numbered!==void 0||t.bullet!==void 0&&t.bullet!==!1)&&d.margin_left===0?{...o,margin_left:we,indent:-we}:o})}:i}function ln(i,t){if(!t)return[...i];const d=t.numbered!==void 0||t.bullet!==void 0;return i.map(a=>{const o={...a};return t.align!==void 0&&delete o.alignment,t.line_spacing!==void 0&&delete o.line_spacing,t.space_before!==void 0&&delete o.space_before,t.space_after!==void 0&&delete o.space_after,t.bullet_color!==void 0&&delete o.bullet_color,t.bullet_size!==void 0&&delete o.bullet_size,t.start_at!==void 0&&delete o.start_at,d&&(delete o.bullet,delete o.bullet_font,delete o.numbered),o})}const sn=i=>Fe.includes(i),fn=i=>Ae.includes(i);function cn(i){const t={};for(const[,d,a=""]of i.matchAll(on))if(d==="font")t.name=a.trim();else if(d==="link")t.link=a.trim();else if(d==="highlight")t.highlight=a.trim().toUpperCase();else if(d==="bold")t.bold=a.trim()!=="false";else if(d==="italic")t.italic=a.trim()!=="false";else if(d==="strike"){const o=a.trim();t.strike=o==="dblStrike"?o:o!=="false"}else if(d==="underline"){const o=a.trim();t.underline=sn(o)&&o!=="sng"?o:o!=="false"}else if(d==="caps"){const o=a.trim();fn(o)&&(t.caps=o)}else if(d==="size"){const o=Number(a);Number.isFinite(o)&&o>0&&(t.size=v(o))}else if(d==="baseline"){const o=Number(a);Number.isFinite(o)&&(t.baseline=o)}else if(d==="spacing"){const o=Number(a);Number.isFinite(o)&&(t.spacing=v(o))}else{const o=fe(a.trim());o!==void 0&&(t.color=o)}return t}const we=342900;export function paragraphsOfWords(i,t=0,d=Ve.code){return i===void 0?[]:typeof i=="string"?i.split(/\r?\n/u).map(a=>{const o=[],g=a.replace(tn,(_,E,C)=>(o.push(cn(E)),`${String.fromCharCode(q+o.length-1)}${C}${ye}`)),r=Ne(g);let j;const N=Me(r.text,r.marks).flatMap(_=>{const E=_.kinds.includes("code"),C={..._.kinds.includes("strong")?{bold:!0}:{},..._.kinds.includes("em")?{italic:!0}:{},...E?{name:d}:{}};return[..._.text.matchAll(rn)].flatMap(R=>{const U=R[0],I=U.charCodeAt(0);if(U===ye)return j=void 0,[];if(I>=q&&I<q+an)return j=o[I-q],[];const X={...j,...C};return[{text:U,...Object.keys(X).length>0?{font:X}:{},...E?{code:!0}:{}}]})});return{runs:N.length>0?N:[{text:""}],level:t}}):i.flatMap(a=>paragraphsOfWords(a,Array.isArray(a)?Math.min(t+1,8):t,d))}const xe=i=>({left:v(i.x),top:v(i.y),width:v(i.w),height:v(i.h)}),un=new Set(["dt","ftr","sldNum"]),Se=i=>({...i.locked?{locked:!0}:{},...i.link===void 0?{}:{link:i.link},...i.rotation===void 0||i.rotation===0?{}:{rotation:i.rotation},...i.flip_h||i.flip_v?{flip:{...i.flip_h?{h:!0}:{},...i.flip_v?{v:!0}:{}}}:{}});function Oe(i,t,d){if(!t)return;t.fill!==void 0&&(i.background=colorOfFile(t.fill));const a=t.gradient&&oe({gradient:t.gradient}).gradient;a&&(i.background_gradient=a),t.picture!==void 0&&(i.background_picture=joinPath(d,t.picture))}function pn(i,t,d){if(i.data===void 0)return;let a;try{const _=t(Le(i.data));a=Array.isArray(_)?_:t(i.data)}catch(_){d(`${i.data} cannot be read: ${_ instanceof Error?_.message:String(_)}`);return}if(!Array.isArray(a)||a.length===0){d(`${i.data} holds no rows.`);return}const o=a,g=Object.keys(o[0]??{}),r=i.fields??g,j=r.filter(_=>!g.includes(_));if(j.length>0){d(`${i.data} has no column ${j.join(", ")} (it has ${g.join(", ")}).`);return}const N=_=>typeof _=="string"||typeof _=="number"||typeof _=="boolean"?String(_):"";return[...i.head===!1?[]:[[...r]],...o.map(_=>r.map(E=>N(_[E])))]}const hn=i=>{const t=ne(i.style);return{...t?{style:t.id}:{},...i.first_row===void 0?{}:{first_row:i.first_row},...i.last_row===void 0?{}:{last_row:i.last_row},...i.first_col===void 0?{}:{first_col:i.first_col},...i.last_col===void 0?{}:{last_col:i.last_col},...i.horz_banding===void 0?{}:{horz_banding:i.horz_banding},...i.vert_banding===void 0?{}:{vert_banding:i.vert_banding}}},ve=i=>i===void 0?void 0:{left:i.left??0,top:i.top??0,right:i.right??0,bottom:i.bottom??0};export function resolveDeck(i){const{code:t,file:d,words:a,prefix:o,base:g}=i,r=[],j=qe(i.theme??Ze,t.theme),N=new Map;for(const e of t.masters)for(const n of e.layouts)N.set(n.name,{layout:n,master:e});const _=[],E=(e,n,l)=>{const m=Ge[n.type];return n.direction!==void 0&&!m.directions.includes(n.direction)&&r.push({slide:e,path:`${l}.transition.direction`,message:m.directions.length===0?`A ${n.type} transition has no direction (${n.direction}).`:`A ${n.type} transition goes ${m.directions.join(", ")}, not ${n.direction}.`}),n.through_black===!0&&!m.throughBlack&&r.push({slide:e,path:`${l}.transition.through_black`,message:`A ${n.type} transition does not go through black: only a fade, a cut and a reveal do.`}),Ie(n)},C=(e,n,l)=>({name:e.name,kind:e.kind,frame:{...e.frame??me},...e.flip?{flip:{...e.flip}}:{},...e.connect?{connect:{...e.connect.begin?{begin:{...e.connect.begin}}:{},...e.connect.end?{end:{...e.connect.end}}:{}}}:{},...e.rotation===void 0?{}:{rotation:e.rotation},level:n,...e.text?{text:{paragraphs:e.text.paragraphs,style:e.kind==="autoshape"?be(l,e.text):ie(l,e.text),own:V(e.text),empty:!1}}:{},...e.fill===void 0?{}:{fill:e.fill},...e.fill_transparency===void 0?{}:{fill_transparency:e.fill_transparency},...e.gradient?{gradient:e.gradient}:{},...e.pattern?{pattern:e.pattern}:{},...e.picture_fill?{picture_fill:{...dn(e.picture_fill),path:joinPath(e.picture_fill.base,e.picture_fill.path)}}:{},...e.shadow===void 0?{}:{shadow:e.shadow},...e.inner_shadow?{inner_shadow:e.inner_shadow}:{},...e.glow?{glow:e.glow}:{},...e.soft_edges===void 0?{}:{soft_edges:e.soft_edges},...e.reflection?{reflection:e.reflection}:{},...e.line===void 0?{}:{line:e.line},...e.line_width===void 0?{}:{line_width:e.line_width},...e.line_dash===void 0?{}:{line_dash:e.line_dash},...e.line_cap===void 0?{}:{line_cap:e.line_cap},...e.line_join===void 0?{}:{line_join:e.line_join},...e.line_compound===void 0?{}:{line_compound:e.line_compound},...e.line_begin===void 0?{}:{line_begin:e.line_begin},...e.line_end===void 0?{}:{line_end:e.line_end},...e.line_begin_size===void 0?{}:{line_begin_size:e.line_begin_size},...e.line_end_size===void 0?{}:{line_end_size:e.line_end_size},...e.path?{path:e.path}:{},...e.table?{table:ke(e.table,l)}:{},...e.chart?{chart:e.chart}:{},...e.link===void 0?{}:{link:e.link},...e.group===void 0?{}:{group:e.group},...e.geometry?{geometry:e.geometry}:{},...e.adjustments?{adjustments:[...e.adjustments]}:{},...e.media?{media:{path:joinPath(e.media.base,e.media.path),...e.media.poster===void 0?{}:{poster:e.media.poster},...e.media.playback?{playback:e.media.playback}:{}}}:{},...e.component?{component:{...e.component}}:{},sources:{frame:{from:n}}}),R=(e,n)=>{const l=e.placeholder?.type??"body",m=Ye(n,l),b=e.frame??m?.frame??me;return{name:e.name,kind:"placeholder",frame:{...b},level:"slide",...e.placeholder?{placeholder:{...e.placeholder}}:{},text:{paragraphs:[],style:en(n,l,m?.text,e.text),empty:!0},...e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},sources:{frame:{from:e.frame||!m?"layout":"master"},text:{from:"layout"}}}},U=(e,n,l,m)=>{const b=t.components[e];if(!b){r.push({...l,message:/\.[cm]?[jt]sx?(?:#|$)/u.test(e)?`${e} names no component: its module has no such export, or the export is not made with defineComponent.`:`There is no component ${e} in the deck's module (it has ${Object.keys(t.components).join(", ")||"none"}).`});return}for(const w of Object.keys(n??{}))Object.hasOwn(b.props,w)||r.push({...l,message:`Component ${e} has no prop ${w} a person sets (it has ${Object.keys(b.props).join(", ")||"none"}).`});return{name:e,props:{...n??{}},...m===void 0?{}:{dur:m}}},I=(e,n,l,m,b)=>{const w={slide:m,shape:e,path:l};if(!n.frame){r.push({...w,message:`Shape ${e} is the slide's own: it needs a frame { x, y, w, h } in points.`});return}const z=xe(n.frame),c={frame:{from:"slide",path:`${l}.frame`}},S={name:e,frame:z,level:"slide",...n.fill===void 0?{}:{fill:P(n.fill)},...oe(n),...$e(n,g),...n.line===void 0?{}:{line:P(n.line)},...n.line_dash===void 0?{}:{line_dash:n.line_dash},...n.line_cap===void 0?{}:{line_cap:n.line_cap},...n.line_join===void 0?{}:{line_join:n.line_join},...n.line_compound===void 0?{}:{line_compound:n.line_compound},...n.line_begin===void 0?{}:{line_begin:n.line_begin},...n.line_end===void 0?{}:{line_end:n.line_end},...n.line_begin_size===void 0?{}:{line_begin_size:n.line_begin_size},...n.line_end_size===void 0?{}:{line_end_size:n.line_end_size},...n.group===void 0?{}:{group:n.group},...Se(n)};if(n.textbox)return{...S,kind:"textbox",text:{paragraphs:paragraphsOfWords(a(`${o}.${m}.${e}`),0,j.fonts.code),style:Q(ie(b,Z(pe)),n.text),own:V(Z(pe)),empty:!1},...n.text?{fileText:{...n.text}}:{},sources:{...c,text:{from:"slide",path:`${l}.text`}}};if(n.picture!==void 0){const u=ve(n.crop);return{...S,kind:"picture",media:{path:joinPath(g,n.picture),...u?{crop:u}:{}},sources:{...c,media:{from:"slide",path:`${l}.picture`}}}}if(n.item!==void 0)return{...S,kind:"item",item:{path:joinPath(g,n.item),...n.playback?{playback:n.playback}:{}},sources:{...c,media:{from:"slide",path:`${l}.item`}}};if(n.movie!==void 0)return{...S,kind:"movie",media:{path:joinPath(g,n.movie),...n.poster===void 0?{}:{poster:n.poster},...n.playback?{playback:n.playback}:{}},sources:{...c,media:{from:"slide",path:`${l}.movie`}}};if(n.audio!==void 0)return{...S,kind:"audio",media:{path:joinPath(g,n.audio),...n.playback?{playback:n.playback}:{}},sources:{...c,media:{from:"slide",path:`${l}.audio`}}};if(n.chart){const u=`${o}.${m}.${e}`,A=p=>typeof p=="string"?p:void 0,x=Object.fromEntries(Ke.flatMap(p=>{const s=A(a(`${u}.${p}`));return s===void 0?[]:[[p,s]]})),T=Ce(n.chart,{title:A(a(u))??A(a(`${u}.title`)),axisTitles:x,base:g,rows:p=>i.data?.(p),problem:p=>{r.push({...w,message:`Chart ${e}: ${p}`})}});return T?{...S,kind:"chart",chart:T,sources:c}:void 0}if(n.table){const u=n.table;u.style!==void 0&&!ne(u.style)&&r.push({...w,message:`Table ${e}'s style ${u.style} is none of PowerPoint's built-in table styles: name one as its gallery does (Medium Style 2 - Accent 1, Light Style 1, No Style, Table Grid) or by its id.`});const A=u.data===void 0?void 0:pn(u,f=>i.data?.(f),f=>{r.push({...w,message:`Table ${e}: ${f}`})});if(u.data!==void 0&&A===void 0)return;const x=A===void 0?u.rows:A.map((f,y)=>u.rows[Math.min(y,u.rows.length-1)]??u.rows[0]),T=z.width/u.columns.reduce((f,y)=>f+y,0),p=z.height/x.reduce((f,y)=>f+(y?.height??0),0),s=a(`${o}.${m}.${e}`),h=A??(Array.isArray(s)?s:[]),k=new Map;for(const f of u.merged??[]){const y=f.rows??1,O=f.columns??1;for(let M=f.row;M<f.row+y;M++)for(let F=f.column;F<f.column+O;F++)k.set(`${String(M)},${String(F)}`,"under");k.set(`${String(f.row)},${String(f.column)}`,{w:O,h:y})}return A===void 0&&h.length>u.rows.length&&r.push({...w,message:`Table ${e} has ${String(u.rows.length)} rows and its words ${String(h.length)}.`}),{...S,kind:"table",table:ke({...hn(u),columns:u.columns.map(f=>Math.round(f*T)),rows:x.flatMap((f,y)=>{if(!f)return[];const O=h[y],M=Array.isArray(O)?O:O===void 0?[]:[O];return{height:Math.round(f.height*p),cells:u.columns.map((F,B)=>{const L=k.get(`${String(y)},${String(B)}`);return{text:{levels:[],paragraphs:L==="under"?[]:paragraphsOfWords(M[B],0,j.fonts.code)},...L==="under"?{spanned:!0}:{},...L!==void 0&&L!=="under"&&L.w>1?{span_width:L.w}:{},...L!==void 0&&L!=="under"&&L.h>1?{span_height:L.h}:{},...f.fill===void 0?{}:{fill:colorOfFile(f.fill)},...f.line===void 0?{}:{borders:{bottom:{color:colorOfFile(f.line),width:v(1)}}}}})}})},b,x.map(f=>f?.text)),sources:c}}const $=n.path&&Be(n.path.d);if(n.path&&!$){r.push({...w,message:`Shape ${e}'s path starts with M and says only M, L, C and Z, absolute.`});return}if(n.geometry!==void 0||n.path&&$){const u=!n.path&&Pe(n.geometry);return{...S,kind:"autoshape",...n.path&&$?{path:{w:n.path.w,h:n.path.h,steps:$}}:n.geometry===void 0?{}:{geometry:n.geometry,...n.adjustments?{adjustments:[...n.adjustments]}:{}},...u?{line:n.line===void 0?ue.line:P(n.line),line_width:n.line_width===void 0?ue.line_width:v(n.line_width)}:{fill:n.fill===void 0?D.fill:P(n.fill),line:n.line===void 0?D.line:P(n.line),line_width:n.line_width===void 0?D.line_width:v(n.line_width)},...n.text&&!u?{fileText:{...n.text}}:{},...u?{}:{text:{paragraphs:paragraphsOfWords(a(`${o}.${m}.${e}`)).map(A=>n.text?.align===void 0?{alignment:D.alignment,...A}:A),style:Q(be(b,Z(ge)),n.text),own:V(Z(ge)),empty:!1}},sources:{...c,fill:{from:"slide",path:`${l}.fill`}}}}if(n.component!==void 0){const u=U(n.component,n.props,w,n.dur);return u?{...S,kind:"component",component:u,sources:c}:void 0}},X=(e,n,l)=>{if(n.frame&&(e.frame=xe(n.frame),e.sources.frame={from:"slide",path:`${l}.frame`}),Object.assign(e,Se(n)),n.dur!==void 0&&e.component&&(e.component={...e.component,dur:n.dur}),n.text&&e.text&&(e.text.style=Q(e.text.style,n.text),e.text.paragraphs=ln(e.text.paragraphs,n.text),e.fileText={...n.text},e.sources.text={from:"slide",path:`${l}.text`}),n.line!==void 0&&(e.line=P(n.line),e.sources.line={from:"slide",path:`${l}.line`}),n.line_width!==void 0&&(e.line_width=v(n.line_width)),n.line_dash!==void 0&&(e.line_dash=n.line_dash),n.line_cap!==void 0&&(e.line_cap=n.line_cap),n.line_join!==void 0&&(e.line_join=n.line_join),n.line_compound!==void 0&&(e.line_compound=n.line_compound),n.line_begin!==void 0&&(e.line_begin=n.line_begin),n.line_end!==void 0&&(e.line_end=n.line_end),n.line_begin_size!==void 0&&(e.line_begin_size=n.line_begin_size),n.line_end_size!==void 0&&(e.line_end_size=n.line_end_size),(n.fill!==void 0||n.gradient!==void 0||n.pattern!==void 0||n.picture_fill!==void 0)&&(delete e.gradient,delete e.pattern,delete e.picture_fill),n.fill!==void 0&&(e.fill=P(n.fill),e.sources.fill={from:"slide",path:`${l}.fill`}),Object.assign(e,oe(n),$e(n,g)),(n.picture!==void 0||n.movie!==void 0)&&(e.placeholder?.type==="pic"||e.placeholder?.type==="media"||e.placeholder?.type==="obj")){const m=ve(n.crop);e.kind=n.picture!==void 0?"picture":"movie",e.media={path:joinPath(g,n.picture??n.movie??""),...m?{crop:m}:{},...n.poster===void 0?{}:{poster:n.poster},...n.playback&&n.movie!==void 0?{playback:n.playback}:{}},e.sources.media={from:"slide",path:`${l}.${n.picture!==void 0?"picture":"movie"}`},delete e.text}else n.playback&&e.media&&(e.kind==="movie"||e.kind==="audio")&&(e.media={...e.media,playback:{...e.media.playback,...n.playback}})},ae=(e,n,l,m,b)=>{const w=N.get(n);if(!w){r.push({slide:e,path:`slides.${String(l)}.layout`,message:`Slide ${e} is on the layout "${n}", which the deck's module does not have (it has ${[...N.keys()].join(", ")||"none"}).`});return}const{layout:z,master:c}=w,S=[...(z.display_master_shapes===!1?[]:c.shapes).filter(u=>u.kind!=="placeholder").map(u=>C(u,"master",c)),...z.shapes.filter(u=>u.kind!=="placeholder").map(u=>C(u,"layout",c))],$=z.shapes.filter(u=>u.kind==="placeholder").map((u,A)=>({shape:R(u,c),order:A}));return{slide:{id:e,layout:z.name,master:c.name,hidden:m,background:z.background??c.background,...Qe(c,z),shapes:S,animations:[],file:{index:l,...b===void 0?{}:{generate:b}}},placed:$,master:c}},re=(e,n,l)=>{if(!n)return;const m=z=>{const c=n[z];if(c===void 0)return e.connect?.[z];const S=c==="none"?void 0:l(c.shape);return c==="none"||S===void 0?void 0:{shape:S,site:c.site}},b=m("begin"),w=m("end");b||w?e.connect={...b?{begin:b}:{},...w?{end:w}:{}}:delete e.connect},de=(e,n,l,m,b,w,z,c,S,$=()=>{})=>{const u=new Set(l.map(p=>p.shape.name));let A=l.length;for(const[p,s]of Object.entries(m??{})){const h=w(p);if(h===void 0)continue;const k=`${b}.shapes.${p}`,f=s.textbox!==void 0||s.geometry!==void 0||s.path!==void 0||s.table!==void 0||s.chart!==void 0||s.component!==void 0||s.audio!==void 0||s.item!==void 0||(s.picture!==void 0||s.movie!==void 0)&&!u.has(h),y=l.find(M=>M.shape.name===h);if(y&&!f){X(y.shape,s,k),re(y.shape,s.connect,w),y.shown=!0,s.z!==void 0&&(y.z=s.z);continue}if(y){r.push({slide:e.id,shape:h,path:k,message:`Slide ${e.id} has a ${y.shape.kind} ${h} already: a shape of its own needs another name.`});continue}if(!f){r.push({slide:e.id,shape:h,path:k,message:`Slide ${e.id} has no shape ${h} to change (its layout's placeholders and its own shapes are ${[...u].join(", ")||"none"}).`});continue}const O=I(h,s,k,e.id,n);O&&re(O,s.connect,w),O&&(l.push({shape:O,order:A++,...s.z===void 0?{}:{z:s.z}}),u.add(h))}const x=l.filter(p=>p.shown===!0||!un.has(p.shape.placeholder?.type??"")||z(p.shape)!==void 0);l.splice(0,l.length,...x),l.sort((p,s)=>(p.z??0)-(s.z??0)||p.order-s.order);const T=(p,s)=>{const h=f=>{const y=f.shape.group;return y===void 0?void 0:ze(y)[s]},k=new Map(p.flatMap((f,y)=>{const O=h(f);return O===void 0?[]:[[O,y]]}));return p.flatMap((f,y)=>{const O=h(f);return O===void 0?[f]:k.get(O)===y?T(p.filter(M=>h(M)===O),s+1):[]})};l.splice(0,l.length,...T(l,0));for(const p of l){const s=$(p.shape);s!==void 0&&(p.shape.alt=s);const h=p.shape.text;if(p.shape.kind==="placeholder"&&h){const k=z(p.shape);h.paragraphs=paragraphsOfWords(k,0,j.fonts.code),h.empty=h.paragraphs.length===0||h.paragraphs.every(f=>f.runs.every(y=>y.text===""))}}e.shapes.push(...l.map(p=>p.shape));for(const p of e.shapes){const s=p.connect;if(!s)continue;const h=Xe(p,k=>e.shapes.find(f=>f.name===k&&f.level===p.level&&f!==p));p.frame=h.frame,h.flip?p.flip=h.flip:delete p.flip;for(const k of h.lost){const f=s[k];f&&p.level==="slide"&&r.push({slide:e.id,shape:p.name,message:`Connector ${p.name}'s ${k} is glued to site ${String(f.site)} of ${f.shape}, which slide ${e.id} has not: it stays where it is.`})}}c!==void 0&&c.trim()!==""&&(e.notes=c);for(const[p,s]of(S??[]).entries()){const h=w(s.shape);if(h===void 0)continue;const k={slide:e.id,shape:h,path:`${b}.animations.${String(p)}`},f=e.shapes.find(F=>F.name===h&&F.level==="slide");if(!f){r.push({...k,message:`Slide ${e.id} has no shape ${h} to animate (it has ${e.shapes.filter(F=>F.level==="slide").map(F=>F.name).join(", ")}).`});continue}if(s.paragraph!==void 0&&s.paragraph>=(f.text?.paragraphs.length??0)){r.push({...k,message:`Shape ${h} has no paragraph ${String(s.paragraph)} to animate (it has ${String(f.text?.paragraphs.length??0)}).`});continue}const y=He[s.effect];s.direction!==void 0&&!y.directions.includes(s.direction)&&r.push({...k,path:`${k.path}.direction`,message:y.directions.length===0?`${h}'s ${s.effect} has no direction (${s.direction}).`:`${h}'s ${s.effect} goes ${y.directions.join(", ")}, not ${s.direction}.`}),s.amount!==void 0&&y.amount===void 0?r.push({...k,path:`${k.path}.amount`,message:`${h}'s ${s.effect} has no amount: only a Grow/Shrink, a spin and a Transparency do.`}):s.effect==="transparency"&&(s.amount??0)>1&&r.push({...k,path:`${k.path}.amount`,message:`${h}'s transparency is a share, at most 1 (it is ${String(s.amount)}).`}),s.animate_text!==void 0&&!f.text&&r.push({...k,path:`${k.path}.animate_text`,message:`${h} has no text to animate by ${s.animate_text}: it plays as one.`});const O=s.animate_text,M=Ue({...s,shape:h,...f.text?{}:{animate_text:void 0}},O===void 0?1:(s.paragraph===void 0?f.text?.paragraphs??[]:[f.text?.paragraphs[s.paragraph]]).reduce((F,B)=>F+We(B?.runs.map(L=>L.text)??[],O).length,0));M?e.animations.push(M):r.push({...k,message:`The animation of ${h} needs a path that starts with M and says only M, L and C, absolute.`})}},le=new Set;d.slides.forEach((e,n)=>{const l=`slides.${String(n)}`;if(e.layout!==void 0){const c=ae(e.id,e.layout,n,e.hidden===!0);if(!c)return;const S=a(`${o}.${e.id}.notes`);e.transition&&(c.slide.transition=E(e.id,e.transition,l)),e.advance_after!==void 0&&(c.slide.advance=e.advance_after),e.section!==void 0&&(c.slide.section=e.section),Oe(c.slide,e.background,g),de(c.slide,c.master,c.placed,e.shapes,l,$=>$,$=>a(`${o}.${e.id}.${$.name}`),typeof S=="string"?S:void 0,e.animations,$=>{const u=a(`${o}.${e.id}.alt.${$.name}`);return typeof u=="string"?u:void 0}),_.push(c.slide),le.add(e.id);return}const m=e.generate??"",b=t.generators[m];if(b===void 0){r.push({slide:e.id,path:`${l}.generate`,message:`There is no generator ${m} in the deck's module (it has ${Object.keys(t.generators).join(", ")||"none"}).`});return}if(!Array.isArray(b)){r.push({slide:e.id,path:`${l}.generate`,message:`Generator ${m} threw: ${b.error}`,...b.stack===void 0?{}:{stack:b.stack}});return}const w=b,z=new Set(Array.isArray(e.hidden)?e.hidden:[]);for(const c of w){const S=`${e.id}/${c.id}`,$=ae(S,c.layout,n,z.has(c.id),m);if(!$)continue;for(const x of c.shapes){const T=x.placeholder?$.placed.find(p=>p.shape.placeholder?.idx===x.placeholder?.idx):void 0;if(T)x.frame&&(T.shape.frame={...x.frame}),T.shape.sources.frame={from:"code"},T.shown=!0;else{const p=C(x,"layout",$.master);$.placed.push({shape:{...p,level:"slide",sources:{frame:{from:"code"}}},order:$.placed.length})}}const u=`${c.id}/`,A=c.transition??(c===w[0]?e.transition:void 0);Oe($.slide,e.background,g),A&&($.slide.transition=E($.slide.id,A,l)),c===w[0]&&e.section!==void 0&&($.slide.section=e.section),de($.slide,$.master,$.placed,e.shapes,l,x=>x.startsWith(u)?x.slice(u.length):void 0,x=>{const T=x.placeholder===void 0?void 0:c.text[x.placeholder.idx];return T===void 0?void 0:T.map(p=>p.runs.map(s=>s.text).join(""))},c.notes,[...(c.animations??[]).map(x=>({...x,shape:`${u}${x.shape}`})),...e.animations??[]]);for(const x of $.slide.shapes){const T=x.placeholder===void 0?void 0:c.text[x.placeholder.idx];T&&x.text&&(x.text.paragraphs=T,x.text.empty=!1)}_.push($.slide),le.add(S)}for(const c of Object.keys(e.shapes??{})){const[S]=c.split("/");S!==void 0&&!w.some($=>$.id===S)&&r.push({slide:e.id,path:`${l}.shapes.${c}`,message:`Generator ${m} makes no slide ${S}: ${c} changes nothing.`})}});const se=new Set(_.map(e=>e.id));for(const e of _)for(const n of e.shapes){if(n.level!=="slide")continue;const l=[...n.link===void 0?[]:[n.link],...(n.text?.paragraphs??[]).flatMap(m=>m.runs.flatMap(b=>b.font?.link===void 0?[]:[b.font.link]))];for(const m of new Set(l)){const b=Ee(m);(b!==void 0?!se.has(b):m.startsWith("ppaction://")&&je(m)===void 0)&&r.push({slide:e.id,shape:n.name,message:b!==void 0?`Shape ${n.name} links to slide ${b}, which the deck has not (it has ${[...se].join(", ")}).`:`Shape ${n.name} links to ${m}: a show jump is ppaction://hlinkshowjump?jump= and ${Te.join(", ")}.`})}}return _.forEach((e,n)=>{for(const l of e.shapes)l.placeholder?.type==="sldNum"&&l.text&&(l.text.paragraphs=[{level:0,runs:[{text:String(n+1),field:"slidenum"}]}],l.text.empty=!1)}),{deck:{width:t.slide_width,height:t.slide_height,theme:j,slides:_},problems:r}}
|
|
2
|
+
import{CAPS as Ve,columnWidth as qe,colorOfFile as Oe,groupLevels as Qe,SHOW_JUMPS as en,showJumpOf as nn,slideLinkOf as tn,UNDERLINES as on}from"@allyhub/formats";import{readMarks as rn,markRuns as dn}from"@allyhub/piece";import{DECK_BLOCK_KINDS as pe,isDeckTable as ve,shownPath as ie}from"@allyhub/formats";import{blockAlt as an,blockFromFile as me,luminance as Ae}from"@allyhub/blocks";import{blockParts as ln,tableParts as sn}from"./blocks.js";import{chartOfFile as fn,colorRgb as je,mappedColors as un}from"@allyhub/chart";import{AUTOSHAPE_STYLE as J,SHADOW_DEFAULTS as Q,PATTERN_DEFAULTS as Ee,TILE_DEFAULTS as ee,INNER_SHADOW_DEFAULTS as ne,GLOW_DEFAULTS as he,REFLECTION_DEFAULTS as oe,CONNECTOR_STYLE as Te,DRAWN_TEXTBOX_FRAME as Fe,TEXT_FALLBACK as Ne,TEXT_INSETS as re,BULLET_HANG as cn,NUMBER_HANG as pn,isConnectorGeometry as mn,placeholderFrame as hn,styleKindOf as gn}from"./office.js";import{resolveAnimation as _n,resolveTransition as bn,unitsAcross as yn,EFFECT_OPTIONS as kn,TRANSITION_OPTIONS as $n}from"./animation.js";import{glued as wn}from"./connect.js";import{hasBackgroundFill as Le}from"./model.js";import{pathSteps as xn}from"./path.js";import{CHART_AXIS_WORDS as Sn}from"./script.js";import{cellLook as zn,tableStyleOf as ge}from"./table-style.js";import{masterPlaceholder as On}from"./placeholders.js";import{DECK_FONTS as vn,OFFICE_THEME as An,themeOver as jn}from"./theme.js";import{EMU_PER_PT as Y,Pt as v}from"./units.js";import{DECK_STYLES as En,isStyleName as Tn,styledChart as Fn}from"./styles/index.js";export function sectionWords(n,i,r){const o=new Map;let d=0,a;const l=g=>typeof g=="string"?g:g?.[0]===void 0?void 0:l(g[0]);for(const g of n)g!==void 0&&(g.layout==="Section Header"?(d++,o.set(`${r}.${g.id}.number`,String(d).padStart(2,"0")),a=l(i(`${r}.${g.id}.title`))?.replace(/\*/gu,"")):a!==void 0&&o.set(`${r}.${g.id}.tracker`,a));return o}export function joinPath(n,i){if(i.startsWith("/"))return i.slice(1);const r=[];for(const o of[...n.split("/"),...i.split("/")])o===""||o==="."||(o===".."?r.pop():r.push(o));return r.join("/")}const Me={left:0,top:0,width:0,height:0};function Nn(n,i){const r={...n.color_map,...i.color_map};return Object.keys(r).length>0?{color_map:r}:{}}const de=()=>Array.from({length:9},()=>({...Ne,font:{...Ne.font},margin_left:0}));export function levelsOver(n,...i){return n.map((r,o)=>{let d={...r,font:{...r.font}};for(const a of i){const l=a?.[o];l&&(d={...d,...l.alignment===void 0?{}:{alignment:l.alignment},...l.line_spacing===void 0?{}:{line_spacing:l.line_spacing},...l.space_before===void 0?{}:{space_before:l.space_before},...l.space_after===void 0?{}:{space_after:l.space_after},...l.margin_left===void 0?{}:{margin_left:l.margin_left},...l.indent===void 0?{}:{indent:l.indent},font:{...d.font,...l.font}},l.numbered!==void 0&&(d.numbered=l.numbered,delete d.bullet),l.bullet===null?(delete d.bullet,delete d.numbered):l.bullet!==void 0?(delete d.numbered,d.bullet={char:l.bullet,...l.bullet_font===void 0?{}:{font:l.bullet_font}}):l.bullet_font!==void 0&&d.bullet&&(d.bullet={...d.bullet,font:l.bullet_font}),d=bulletLookOver(d,l))}return d})}export function bulletLookOver(n,i){const r={...n};return i.bullet_color===null?delete r.bullet_color:i.bullet_color!==void 0&&(r.bullet_color=i.bullet_color),i.bullet_size===null?delete r.bullet_size:i.bullet_size!==void 0&&(r.bullet_size=i.bullet_size),i.start_at!==void 0&&(r.start_at=i.start_at),r}function _e(n,...i){const r=i.filter(d=>d!==void 0),o=d=>{for(let a=r.length-1;a>=0;a--){const l=r[a]?.[d];if(l!==void 0)return l}};return{vertical_anchor:o("vertical_anchor")??n.vertical_anchor,orientation:o("orientation")??"horz",auto_size:o("auto_size")??n.auto_size,word_wrap:o("word_wrap")??n.word_wrap,margins:{left:o("margin_left")??re.left,top:o("margin_top")??re.top,right:o("margin_right")??re.right,bottom:o("margin_bottom")??re.bottom},...o("columns")===void 0&&o("column_spacing")===void 0?{}:{columns:{count:o("columns")??1,spacing:o("column_spacing")??0}}}}const Pe={vertical_anchor:"t",auto_size:"none",word_wrap:!0};export const plainLevels=n=>levelsOver(de(),n.text_styles.other);function be(n,i){return{..._e(Pe,i),levels:levelsOver(de(),n.text_styles.other,i.levels)}}function Ln(n,i,...r){return{..._e(hn(i),...r),levels:levelsOver(de(),n.text_styles[gn(i)],...r.map(o=>o?.levels))}}const Mn=Array.from({length:9},()=>({font:{color:J.font_color}})),Ce={vertical_anchor:J.vertical_anchor};function Re(n,i){return{..._e(Pe,i),levels:levelsOver(de(),n.text_styles.other,Mn,i.levels)}}const ae=n=>{const i={...n};return delete i.paragraphs,i},le=n=>({paragraphs:[],levels:[],...n}),K=n=>n==="none"?null:colorOfFile(n),Pn=/<span((?:\s+(?:color|font|size|bold|italic|underline|link|highlight|baseline|strike|spacing|caps)="[^"\n]*")+)\s*>(.*?)<\/span>/gu,Cn=/(color|font|size|bold|italic|underline|link|highlight|baseline|strike|spacing|caps)="([^"\n]*)"/gu,Rn=/<br\s*\/?>/giu,se=57344,Dn=256,De="",Un=/[\ue000-\ue100]|[^\ue000-\ue100]+/gu;export const spaceOfFile=n=>typeof n=="number"?v(n):{lines:n.lines},SEPIA=["#000000","#D9C3A5 tint 50% satMod 180%"];export function pictureLookOf(n){const i=n.recolor,r=i==="washout",o={...n.brightness!==void 0?{brightness:n.brightness}:r?{brightness:.7}:{},...n.contrast!==void 0?{contrast:n.contrast}:r?{contrast:-.7}:{},...i==="grayscale"?{grayscale:!0}:{},...i==="sepia"?{duotone:[colorOfFile(SEPIA[0]),colorOfFile(SEPIA[1])]}:{},...i==="black_white"?{black_white:.5}:{},...typeof i=="object"&&"duotone"in i?{duotone:[colorOfFile(i.duotone[0]),colorOfFile(i.duotone[1])]}:{},...typeof i=="object"&&"black_white"in i?{black_white:i.black_white}:{},...n.transparency===void 0?{}:{transparency:n.transparency}};return Object.keys(o).length>0?{look:o}:{}}export const lineSpacingOfFile=n=>typeof n=="number"?{lines:n}:"points"in n?{fixed:v(n.points)}:{lines:n.lines};export function paragraphLookAt(n,i){const r=(n?.paragraphs??[]).filter(d=>i>=d.paragraph&&i<d.paragraph+(d.paragraphs??1));if(r.length===0)return;const o=r.reduce((d,a)=>({...d,...a}),{});return delete o.paragraph,delete o.paragraphs,o}export function paragraphEntries(n){const i=[];let r;return n.forEach((o,d)=>{if(o===void 0||Object.keys(o).length===0){r=void 0;return}const a=JSON.stringify(o);if(r?.look===a){r.entry.paragraphs=(r.entry.paragraphs??1)+1;return}r={look:a,entry:{paragraph:d,...o}},i.push(r.entry)}),i}export function formatOfLook(n){return{...n.align===void 0?{}:{alignment:n.align},...n.line_spacing===void 0?{}:{line_spacing:lineSpacingOfFile(n.line_spacing)},...n.space_before===void 0?{}:{space_before:spaceOfFile(n.space_before)},...n.space_after===void 0?{}:{space_after:spaceOfFile(n.space_after)},...n.numbered!==void 0?{numbered:n.numbered}:n.bullet===void 0?{}:{bullet:n.bullet===!1?null:n.bullet},...n.bullet_color===void 0?{}:{bullet_color:colorOfFile(n.bullet_color)},...n.bullet_size===void 0?{}:{bullet_size:n.bullet_size},...n.start_at===void 0?{}:{start_at:n.start_at},...n.margin_left===void 0?{}:{margin_left:v(n.margin_left)},...n.indent===void 0?{}:{indent:v(n.indent)}}}export function paragraphLookKeys(n,i){const r=paragraphLookAt(n,i);if(!r)return[];const o=Object.keys(formatOfLook(r));return o.includes("numbered")&&o.push("bullet","bullet_font"),o.includes("bullet")&&o.push("numbered","bullet_font"),(r.bullet!==void 0||r.numbered!==void 0)&&o.push("margin_left","indent"),[...new Set(o)]}export function withParagraphLooks(n,i,r){return i?.paragraphs?.length?n.map((o,d)=>{const a=paragraphLookAt(i,d);if(!a)return o;const l={...o,...formatOfLook(a)};a.numbered!==void 0?(delete l.bullet,delete l.bullet_font):a.bullet!==void 0&&(delete l.numbered,delete l.bullet_font);const g=(a.numbered!==void 0||typeof a.bullet=="string")&&a.margin_left===void 0&&a.indent===void 0,$=r[o.level],u=$&&{margin_left:o.margin_left??$.margin_left,indent:o.indent??$.indent};if(g&&u&&u.indent>=0){const L=hungLevel(u,l.numbered!==void 0);l.margin_left=L.margin_left,l.indent=L.indent}return l}):[...n]}export const colorOfFile=n=>Oe(n)??"dk1";function ye(n){const{shadow:i,gradient:r,inner_shadow:o,glow:d,reflection:a}=n;return{...o?{inner_shadow:{color:o.color===void 0?ne.color:colorOfFile(o.color),blur:o.blur===void 0?ne.blur:v(o.blur),distance:o.distance===void 0?ne.distance:v(o.distance),angle:o.angle??ne.angle,transparency:o.transparency??ne.transparency}}:{},...d?{glow:{color:d.color===void 0?he.color:colorOfFile(d.color),size:d.size===void 0?he.size:v(d.size),transparency:d.transparency??he.transparency}}:{},...n.soft_edges===void 0?{}:{soft_edges:v(n.soft_edges)},...a?{reflection:{transparency:a.transparency??oe.transparency,size:a.size??oe.size,distance:a.distance===void 0?oe.distance:v(a.distance),blur:a.blur===void 0?oe.blur:v(a.blur)}}:{},...n.fill_transparency===void 0?{}:{fill_transparency:n.fill_transparency},...r?{gradient:{angle:r.angle??0,...r.path===void 0?{}:{path:r.path},...r.focus===void 0?{}:{focus:{left:r.focus.left??.5,top:r.focus.top??.5,right:r.focus.right??.5,bottom:r.focus.bottom??.5}},stops:r.stops.map(l=>({at:l.at,color:colorOfFile(l.color),...l.transparency===void 0?{}:{transparency:l.transparency}}))}}:{},...i?{shadow:{color:i.color===void 0?Q.color:colorOfFile(i.color),blur:i.blur===void 0?Q.blur:v(i.blur),distance:i.distance===void 0?Q.distance:v(i.distance),angle:i.angle??Q.angle,transparency:i.transparency??Q.transparency}}:{}}}const Ue=n=>({...n.tile?{tile:{...n.tile}}:{},...n.transparency===void 0?{}:{transparency:n.transparency}});function ke(n,i){const{pattern:r,picture_fill:o}=n;return{...r?{pattern:{preset:r.preset,fg:colorOfFile(r.fg??Ee.fg),bg:colorOfFile(r.bg??Ee.bg)}}:{},...o?{picture_fill:{path:joinPath(i,o.path),...o.tile?{tile:{scale_x:o.tile.scale_x??ee.scale_x,scale_y:o.tile.scale_y??ee.scale_y,offset_x:o.tile.x===void 0?ee.offset_x:v(o.tile.x),offset_y:o.tile.y===void 0?ee.offset_y:v(o.tile.y),align:o.tile.align??ee.align}}:{},...o.transparency===void 0?{}:{transparency:o.transparency}}}:{}}}function We(n,i,r,o){const d=n.columns[o];return[i?{...i.fill===void 0?{}:{fill:i.fill},...i.text===void 0?{}:{text:i.text},...i.borders===void 0?{}:{borders:i.borders},...i.line===void 0?{}:{borders:{bottom:{color:i.line,...i.line_width===void 0?{}:{width:i.line_width}},...i.borders}}}:{},...d===void 0||typeof d=="number"?[]:[d],...(n.cells??[]).filter(l=>r>=l.row&&r<l.row+(l.rows??1)&&o>=l.column&&o<l.column+(l.columns??1))]}function Wn(n,i,r,o){const d=We(n,i,r,o).flatMap(a=>a.text?[a.text]:[]);return d.length===0?void 0:d.reduce((a,l)=>({...a,...l}),{})}const Ie=["left","right","top","bottom"];function He(n,i){const r=typeof n=="string"?n:n.color;if(r==="none")return null;const o=typeof n=="string"?i:n.width??i;return{color:colorOfFile(r),width:v(o??1)}}function In(n,i,r,o){let d;const a={};for(const l of We(n,i,r,o)){if(l.fill!==void 0&&(d=l.fill==="none"?null:colorOfFile(l.fill)),l.line!==void 0)for(const g of Ie)a[g]=He(l.line,l.line_width);for(const g of Ie){const $=l.borders?.[g];$!==void 0&&(a[g]=He($,l.line_width))}}return{...d===void 0?{}:{fill:d},...Object.keys(a).length>0?{borders:a}:{}}}function Ge(n,i,r=[]){const o=ge(n.style);return{...n,rows:n.rows.map((d,a)=>({height:d.height,cells:d.cells.map((l,g)=>{const $=r[a]?.[g],u=o?zn(o,n,a,g,n.rows.length,n.columns.length,a+(l.span_height??1)-1,g+(l.span_width??1)-1):void 0,L=be(i,l.text),D=u&&(u.bold!==void 0||u.text!==void 0)?{...L,levels:L.levels.map(U=>({...U,font:{...U.font,...u.bold===void 0?{}:{bold:u.bold},...u.text===void 0?{}:{color:u.text}}}))}:L,I=ue({...D,auto_size:"shape"},$);return{...l,text:{paragraphs:withParagraphLooks(l.text.paragraphs,$,I.levels),style:I,own:ae(l.text),empty:!1},...$?{fileText:$}:{}}})}))}}const Hn={none:"none",shrink:"text",grow:"shape"};export function marginsOfFile(n){const i=n.margin,r=o=>{const a=n[`margin_${o}`]??(typeof i=="number"?i:i?.[o]);return a===void 0?{}:{[o]:v(a)}};return{...r("left"),...r("top"),...r("right"),...r("bottom")}}export function bodyOfFile(n){if(!n)return{};const i=marginsOfFile(n);return{...n.anchor===void 0?{}:{vertical_anchor:n.anchor},...n.orientation===void 0?{}:{orientation:n.orientation},...n.autofit===void 0?{}:{auto_size:Hn[n.autofit]},...n.wrap===void 0?{}:{word_wrap:n.wrap},...i.left===void 0?{}:{margin_left:i.left},...i.top===void 0?{}:{margin_top:i.top},...i.right===void 0?{}:{margin_right:i.right},...i.bottom===void 0?{}:{margin_bottom:i.bottom},...n.columns===void 0?{}:{columns:n.columns},...n.column_spacing===void 0?{}:{column_spacing:v(n.column_spacing)}}}export function hungLevel(n,i){if(n.indent<0)return n;const r=i?pn:cn;return{...n,margin_left:n.margin_left+r,indent:-r}}function fe(n){if(n?.numbered!==void 0)return{numbered:n.numbered};if(n?.bullet!==void 0)return{bullet:n.bullet}}function ue(n,i){if(!i)return n;const r=bodyOfFile(i);return{...n,...r.vertical_anchor===void 0?{}:{vertical_anchor:r.vertical_anchor},...r.orientation===void 0?{}:{orientation:r.orientation},...r.auto_size===void 0?{}:{auto_size:r.auto_size},...r.word_wrap===void 0?{}:{word_wrap:r.word_wrap},margins:{left:r.margin_left??n.margins.left,top:r.margin_top??n.margins.top,right:r.margin_right??n.margins.right,bottom:r.margin_bottom??n.margins.bottom},...r.columns===void 0&&r.column_spacing===void 0?{}:{columns:{count:r.columns??n.columns?.count??1,spacing:r.column_spacing??n.columns?.spacing??0}},levels:n.levels.map((o,d)=>{const a=i.levels?.[d],l={...o.font,...i.size===void 0?{}:{size:v(i.size)},...i.bold===void 0?{}:{bold:i.bold},...i.italic===void 0?{}:{italic:i.italic},...i.underline===void 0?{}:{underline:i.underline},...i.strike===void 0?{}:{strike:i.strike},...i.caps===void 0?{}:{caps:i.caps},...i.spacing===void 0?{}:{spacing:v(i.spacing)},...i.font===void 0?{}:{name:i.font},...a?.size===void 0?{}:{size:v(a.size)},...a?.bold===void 0?{}:{bold:a.bold},...a?.italic===void 0?{}:{italic:a.italic}},g=a?.color??i.color;g!==void 0&&(l.color=colorOfFile(g));const $={...o,font:l,...i.align===void 0?{}:{alignment:i.align},...i.line_spacing===void 0?{}:{line_spacing:lineSpacingOfFile(i.line_spacing)},...i.space_before===void 0?{}:{space_before:spaceOfFile(i.space_before)},...i.space_after===void 0?{}:{space_after:spaceOfFile(i.space_after)}};i.bullet_color!==void 0&&($.bullet_color=colorOfFile(i.bullet_color)),i.bullet_size!==void 0&&($.bullet_size=i.bullet_size),i.start_at!==void 0&&($.start_at=i.start_at);const u=fe(a)??fe(i);return u?.numbered!==void 0?($.numbered=u.numbered,delete $.bullet):u?.bullet===!1?(delete $.bullet,delete $.numbered):u?.bullet!==void 0&&($.bullet={char:u.bullet},delete $.numbered),{...u!==void 0&&($.bullet!==void 0||$.numbered!==void 0)?hungLevel($,$.numbered!==void 0):$,...a?.margin_left===void 0?{}:{margin_left:v(a.margin_left)},...a?.indent===void 0?{}:{indent:v(a.indent)}}})}}function Gn(n,i){return i?n.map(r=>{const o=i.levels?.[r.level],d=fe(o)!==void 0||fe(i)!==void 0,a={...r};return o?.margin_left!==void 0&&delete a.margin_left,o?.indent!==void 0&&delete a.indent,i.align!==void 0&&delete a.alignment,i.line_spacing!==void 0&&delete a.line_spacing,i.space_before!==void 0&&delete a.space_before,i.space_after!==void 0&&delete a.space_after,i.bullet_color!==void 0&&delete a.bullet_color,i.bullet_size!==void 0&&delete a.bullet_size,i.start_at!==void 0&&delete a.start_at,d&&(delete a.bullet,delete a.bullet_font,delete a.numbered),a}):[...n]}const Kn=n=>on.includes(n),Bn=n=>Ve.includes(n);function Xn(n){const i={};for(const[,r,o=""]of n.matchAll(Cn))if(r==="font")i.name=o.trim();else if(r==="link")i.link=o.trim();else if(r==="highlight")i.highlight=o.trim().toUpperCase();else if(r==="bold")i.bold=o.trim()!=="false";else if(r==="italic")i.italic=o.trim()!=="false";else if(r==="strike"){const d=o.trim();i.strike=d==="dblStrike"?d:d!=="false"}else if(r==="underline"){const d=o.trim();i.underline=Kn(d)&&d!=="sng"?d:d!=="false"}else if(r==="caps"){const d=o.trim();Bn(d)&&(i.caps=d)}else if(r==="size"){const d=Number(o);Number.isFinite(d)&&d>0&&(i.size=v(d))}else if(r==="baseline"){const d=Number(o);Number.isFinite(d)&&(i.baseline=d)}else if(r==="spacing"){const d=Number(o);Number.isFinite(d)&&(i.spacing=v(d))}else{const d=Oe(o.trim());d!==void 0&&(i.color=d)}return i}export function paragraphsOfWords(n,i=0,r=vn.code){if(n===void 0)return[];if(typeof n=="string")return n.split(/\r?\n/u).map(l=>{const g=l.replace(Rn,"\v"),$=[],u=g.replace(Pn,(U,W,B)=>($.push(Xn(W)),`${String.fromCharCode(se+$.length-1)}${B}${De}`)),L=rn(u);let D;const I=dn(L.text,L.marks).flatMap(U=>{const W=U.kinds.includes("code"),B={...U.kinds.includes("strong")?{bold:!0}:{},...U.kinds.includes("em")?{italic:!0}:{},...W?{name:r}:{}};return[...U.text.matchAll(Un)].flatMap(Z=>{const V=Z[0],q=V.charCodeAt(0);if(V===De)return D=void 0,[];if(q>=se&&q<se+Dn)return D=$[q-se],[];const G={...D,...B};return[{text:V,...Object.keys(G).length>0?{font:G}:{},...W?{code:!0}:{}}]})});return{runs:I.length>0?I:[{text:""}],level:i}});const o=/^(\*\*)?(\d{1,2})(?:[.)]\s+|\s{2,})/u,d=n.filter(l=>typeof l=="string"),a=d.length>=2&&d.every((l,g)=>Number(o.exec(l)?.[2])===g+1);return n.flatMap(l=>{const g=paragraphsOfWords(l,Array.isArray(l)?Math.min(i+1,8):i,r);if(!a||typeof l!="string")return g;const $=g[0]?.runs[0];return $&&($.text=$.text.replace(/^(\d{1,2})(?:[.)]\s+|\s{2,})/u,"")),g.map((u,L)=>L===0?{...u,numbered:"arabicPeriod"}:u)})}const Ke=n=>({left:v(n.x),top:v(n.y),width:v(n.w),height:v(n.h)}),Be=n=>({...n.locked?{locked:!0}:{},...n.decorative?{decorative:!0}:{},...n.link===void 0?{}:{link:n.link},...n.rotation===void 0||n.rotation===0?{}:{rotation:n.rotation},...n.flip_h||n.flip_v?{flip:{...n.flip_h?{h:!0}:{},...n.flip_v?{v:!0}:{}}}:{}}),Jn={bg1:"lt1",tx1:"dk1",bg2:"lt2",tx2:"dk2"},Yn={bg1:"dk1",tx1:"lt1",bg2:"dk2",tx2:"lt2"};function Zn(n,i){if(n.background_own!==!0)return;const r=un(i.colors,n.color_map),o=Ae(je(n.background,r))<.4,d=Ae(je("tx1",r))<.4;o===d&&(n.color_map={...n.color_map,...o?Yn:Jn},n.color_map_own=!0)}function Xe(n,i,r){if(!i)return;for(const l of["background_gradient","background_pattern","background_picture","background_tile","background_transparency","background_inherited"])Reflect.deleteProperty(n,l);i.fill!==void 0&&(n.background=colorOfFile(i.fill),n.background_own=!0);const o=i.gradient&&ye({gradient:i.gradient}).gradient;o&&(n.background_gradient=o),i.picture!==void 0&&(n.background_picture=joinPath(r,i.picture));const{pattern:d,picture_fill:a}=ke({...i.pattern?{pattern:i.pattern}:{},...i.picture_fill?{picture_fill:i.picture_fill}:{}},r);d&&(n.background_pattern=d),a&&Object.assign(n,Je(a))}const Je=n=>({background_picture:n.path,...n.tile?{background_tile:{...n.tile}}:{},...n.transparency===void 0?{}:{background_transparency:n.transparency}});export function inheritedBackground(n,i){const o=i.background!==void 0||Le(i.background_fill)?i.background_fill:n.background_fill;return!o||!Le(o)?{}:{background_inherited:!0,...o.gradient?{background_gradient:o.gradient}:{},...o.pattern?{background_pattern:o.pattern}:{},...o.picture_fill?Je({...Ue(o.picture_fill),path:joinPath(o.picture_fill.base,o.picture_fill.path)}):{}}}function Vn(n,i,r){if(n.data===void 0)return;let o;try{const u=i(ie(n.data));o=Array.isArray(u)?u:i(n.data)}catch(u){r(`${n.data} cannot be read: ${u instanceof Error?u.message:String(u)}`);return}if(!Array.isArray(o)||o.length===0){r(`${n.data} holds no rows.`);return}const d=o,a=Object.keys(d[0]??{}),l=n.fields??a,g=l.filter(u=>!a.includes(u));if(g.length>0){r(`${n.data} has no column ${g.join(", ")} (it has ${a.join(", ")}).`);return}const $=u=>typeof u=="string"||typeof u=="number"||typeof u=="boolean"?String(u):"";return[...n.head===!1?[]:[[...l]],...d.map(u=>l.map(L=>$(u[L])))]}const qn=n=>{const i=ge(n.style);return{...i?{style:i.id}:{},...n.first_row===void 0?{}:{first_row:n.first_row},...n.last_row===void 0?{}:{last_row:n.last_row},...n.first_col===void 0?{}:{first_col:n.first_col},...n.last_col===void 0?{}:{last_col:n.last_col},...n.horz_banding===void 0?{}:{horz_banding:n.horz_banding},...n.vert_banding===void 0?{}:{vert_banding:n.vert_banding}}},Ye=n=>n===void 0?void 0:{left:n.left??0,top:n.top??0,right:n.right??0,bottom:n.bottom??0},Qn=new Set(["dt","ftr","sldNum"]);export function placeholdersANewSlideNames(n){return n.shapes.filter(i=>i.kind==="placeholder"&&!Qn.has(i.placeholder?.type??"")).map(i=>i.name)}export function resolveDeck(n){const{code:i,file:r,prefix:o,base:d}=n,a=new Map,l=n.sections??sectionWords(r.slides,n.words,o),g=e=>a.has(e)?a.get(e):n.words(e)??l.get(e),$=(e,t)=>{const[f,...b]=t,x=f==="items"?["items","people","stats","steps","milestones","entries",""]:[f];for(const A of x){const F=g([e,A,...b].filter(c=>c!=="").join("."));if(typeof F=="string")return F}},u=[],L=jn(n.theme??An,i.theme),D=i.style!==void 0&&Tn(i.style.name)?En[i.style.name]:void 0,I=D?.blocks,U=new Map;for(const e of i.masters)for(const t of e.layouts)U.set(t.name,{layout:t,master:e});const W=[],B=(e,t,f)=>{const b=$n[t.type];return t.direction!==void 0&&!b.directions.includes(t.direction)&&u.push({slide:e,path:`${f}.transition.direction`,message:b.directions.length===0?`A ${t.type} transition has no direction (${t.direction}).`:`A ${t.type} transition goes ${b.directions.join(", ")}, not ${t.direction}.`}),t.through_black===!0&&!b.throughBlack&&u.push({slide:e,path:`${f}.transition.through_black`,message:`A ${t.type} transition does not go through black: only a fade, a cut and a reveal do.`}),bn(t)},Z=(e,t,f)=>({name:e.name,kind:e.kind,frame:{...e.frame??Me},...e.flip?{flip:{...e.flip}}:{},...e.connect?{connect:{...e.connect.begin?{begin:{...e.connect.begin}}:{},...e.connect.end?{end:{...e.connect.end}}:{}}}:{},...e.rotation===void 0?{}:{rotation:e.rotation},...e.decorative?{decorative:!0}:{},level:t,...e.text?{text:{paragraphs:e.text.paragraphs,style:e.kind==="autoshape"?Re(f,e.text):be(f,e.text),own:ae(e.text),empty:!1}}:{},...e.fill===void 0?{}:{fill:e.fill},...e.fill_transparency===void 0?{}:{fill_transparency:e.fill_transparency},...e.gradient?{gradient:e.gradient}:{},...e.pattern?{pattern:e.pattern}:{},...e.picture_fill?{picture_fill:{...Ue(e.picture_fill),path:joinPath(e.picture_fill.base,e.picture_fill.path)}}:{},...e.shadow===void 0?{}:{shadow:e.shadow},...e.inner_shadow?{inner_shadow:e.inner_shadow}:{},...e.glow?{glow:e.glow}:{},...e.soft_edges===void 0?{}:{soft_edges:e.soft_edges},...e.reflection?{reflection:e.reflection}:{},...e.line===void 0?{}:{line:e.line},...e.line_width===void 0?{}:{line_width:e.line_width},...e.line_dash===void 0?{}:{line_dash:e.line_dash},...e.line_cap===void 0?{}:{line_cap:e.line_cap},...e.line_join===void 0?{}:{line_join:e.line_join},...e.line_compound===void 0?{}:{line_compound:e.line_compound},...e.line_begin===void 0?{}:{line_begin:e.line_begin},...e.line_end===void 0?{}:{line_end:e.line_end},...e.line_begin_size===void 0?{}:{line_begin_size:e.line_begin_size},...e.line_end_size===void 0?{}:{line_end_size:e.line_end_size},...e.path?{path:e.path}:{},...e.table?{table:Ge(e.table,f)}:{},...e.chart?{chart:e.chart}:{},...e.link===void 0?{}:{link:e.link},...e.group===void 0?{}:{group:e.group},...e.geometry?{geometry:e.geometry}:{},...e.adjustments?{adjustments:[...e.adjustments]}:{},...e.media?{media:{path:joinPath(e.media.base,e.media.path),...e.media.poster===void 0?{}:{poster:e.media.poster},...e.media.playback?{playback:e.media.playback}:{},...e.media.look?{look:{...e.media.look}}:{}}}:{},...e.component?{component:{...e.component}}:{},sources:{frame:{from:t}}}),V=(e,t)=>{const f=e.placeholder?.type??"body",b=On(t,f),x=e.frame??b?.frame??Me;return{name:e.name,kind:"placeholder",frame:{...x},level:"slide",...e.placeholder?{placeholder:{...e.placeholder}}:{},text:{paragraphs:[],style:Ln(t,f,b?.text,e.text),empty:!0},...e.fill===void 0?{}:{fill:e.fill},...e.line===void 0?{}:{line:e.line},...e.geometry===void 0||e.geometry==="rect"?{}:{geometry:e.geometry,...e.adjustments?{adjustments:[...e.adjustments]}:{}},sources:{frame:{from:e.frame||!b?"layout":"master"},text:{from:"layout"}}}},q=(e,t,f,b)=>{const x=i.components[e];if(!x){u.push({...f,message:/\.[cm]?[jt]sx?(?:#|$)/u.test(e)?`${e} names no component: its module has no such export, or the export is not made with defineComponent.`:`There is no component ${e} in the deck's module (it has ${Object.keys(i.components).join(", ")||"none"}).`});return}for(const A of Object.keys(t??{}))Object.hasOwn(x.props,A)||u.push({...f,message:`Component ${e} has no prop ${A} a person sets (it has ${Object.keys(x.props).join(", ")||"none"}).`});return{name:e,props:{...t??{}},...b===void 0?{}:{dur:b}}},G=(e,t,f,b,x)=>{const A={slide:b,shape:e,path:f};if(!t.frame){u.push({...A,message:`Shape ${e} is the slide's own: it needs a frame { x, y, w, h } in points.`});return}const F=Ke(t.frame),c={frame:{from:"slide",path:`${f}.frame`}},j={name:e,frame:F,level:"slide",...t.fill===void 0?{}:{fill:K(t.fill)},...ye(t),...ke(t,d),...t.line===void 0?{}:{line:K(t.line)},...t.line_width===void 0?{}:{line_width:v(t.line_width)},...t.line_dash===void 0?{}:{line_dash:t.line_dash},...t.line_cap===void 0?{}:{line_cap:t.line_cap},...t.line_join===void 0?{}:{line_join:t.line_join},...t.line_compound===void 0?{}:{line_compound:t.line_compound},...t.line_begin===void 0?{}:{line_begin:t.line_begin},...t.line_end===void 0?{}:{line_end:t.line_end},...t.line_begin_size===void 0?{}:{line_begin_size:t.line_begin_size},...t.line_end_size===void 0?{}:{line_end_size:t.line_end_size},...t.group===void 0?{}:{group:t.group},...Be(t)};if(t.textbox){const m=ue(be(x,le(Fe)),t.text);return{...j,kind:"textbox",text:{paragraphs:withParagraphLooks(paragraphsOfWords(g(`${o}.${b}.${e}`),0,L.fonts.code),t.text,m.levels),style:m,own:ae(le(Fe)),empty:!1},...t.text?{fileText:{...t.text}}:{},sources:{...c,text:{from:"slide",path:`${f}.text`}}}}if(t.picture!==void 0){const m=Ye(t.crop);return{...j,kind:"picture",...t.geometry===void 0||t.geometry==="rect"?{}:{geometry:t.geometry},...t.adjustments?{adjustments:t.adjustments}:{},media:{path:joinPath(d,t.picture),...m?{crop:m}:{},...t.fit===void 0?{}:{fit:t.fit},...pictureLookOf(t)},sources:{...c,media:{from:"slide",path:`${f}.picture`}}}}if(t.item!==void 0)return{...j,kind:"item",item:{path:joinPath(d,t.item),...t.playback?{playback:t.playback}:{}},sources:{...c,media:{from:"slide",path:`${f}.item`}}};if(t.movie!==void 0)return{...j,kind:"movie",media:{path:joinPath(d,t.movie),...t.poster===void 0?{}:{poster:t.poster},...t.playback?{playback:t.playback}:{}},sources:{...c,media:{from:"slide",path:`${f}.movie`}}};if(t.audio!==void 0)return{...j,kind:"audio",media:{path:joinPath(d,t.audio),...t.playback?{playback:t.playback}:{}},sources:{...c,media:{from:"slide",path:`${f}.audio`}}};if(t.chart){const m=`${o}.${b}.${e}`,k=s=>typeof s=="string"?s:void 0,N=Object.fromEntries(Sn.flatMap(s=>{const h=k(g(`${m}.${s}`));return h===void 0?[]:[[s,h]]})),p=(s,h,w)=>k(g(`${m}.points.${h}.${s}`))??(w?k(g(`${m}.points.${s}`)):void 0),y=fn(D===void 0||t.group!==void 0?t.chart:Fn(t.chart,D.chart),{title:k(g(m))??k(g(`${m}.title`)),axisTitles:N,pointText:p,size:{width:F.width/Y,height:F.height/Y},base:d,rows:s=>n.data?.(s),problem:s=>{u.push({...A,message:`Chart ${e}: ${s}`})}});return y?{...j,kind:"chart",chart:y,sources:c}:void 0}const O=pe.find(m=>t[m]!==void 0);if(O!==void 0){const m=`${o}.${b}.${e}`,k=me(O,t[O],{wordsElsewhere:!0,words:p=>$(m,p),data:p=>n.data?.(p),shown:p=>n.data?.(ie(p)),picture:p=>joinPath(d,p),base:d}),N=O.charAt(0).toUpperCase()+O.slice(1);for(const p of k.problems)u.push({...A,message:`${N} ${e}${p.path.length>0?` (${p.path.join(".")})`:""}: ${p.message}`});return k.block?{...j,alt:an(k.block),kind:"block",block:k.block,sources:c}:void 0}if(t.table&&ve(t.table)){const m=t.table;m.style!==void 0&&!ge(m.style)&&u.push({...A,message:`Table ${e}'s style ${m.style} is none of PowerPoint's built-in table styles: name one as its gallery does (Medium Style 2 - Accent 1, Light Style 1, No Style, Table Grid) or by its id.`});const k=m.data===void 0?void 0:Vn(m,_=>n.data?.(_),_=>{u.push({...A,message:`Table ${e}: ${_}`})});if(m.data!==void 0&&k===void 0)return;const N=k===void 0?m.rows:k.map((_,E)=>m.rows[Math.min(E,m.rows.length-1)]??m.rows[0]),p=m.columns.map(qe),y=F.width/p.reduce((_,E)=>_+E,0),s=F.height/N.reduce((_,E)=>_+(E?.height??0),0),h=g(`${o}.${b}.${e}`),w=k??(Array.isArray(h)?h:[]),P=new Map;for(const _ of m.merged??[]){const E=_.rows??1,M=_.columns??1;for(let T=_.row;T<_.row+E;T++)for(let R=_.column;R<_.column+M;R++)P.set(`${String(T)},${String(R)}`,"under");P.set(`${String(_.row)},${String(_.column)}`,{w:M,h:E})}return k===void 0&&w.length>m.rows.length&&u.push({...A,message:`Table ${e} has ${String(m.rows.length)} rows and its words ${String(w.length)}.`}),{...j,kind:"table",table:Ge({...qn(m),columns:p.map(_=>Math.round(_*y)),rows:N.flatMap((_,E)=>{if(!_)return[];const M=w[E],T=Array.isArray(M)?M:M===void 0?[]:[M];return{height:Math.round(_.height*s),cells:m.columns.map((R,H)=>{const z=P.get(`${String(E)},${String(H)}`);return{text:{levels:[],paragraphs:z==="under"?[]:paragraphsOfWords(T[H],0,L.fonts.code)},...z==="under"?{spanned:!0}:{},...z!==void 0&&z!=="under"&&z.w>1?{span_width:z.w}:{},...z!==void 0&&z!=="under"&&z.h>1?{span_height:z.h}:{},...In(m,_,E,H)}})}})},x,N.map((_,E)=>m.columns.map((M,T)=>Wn(m,_,E,T)))),sources:c}}const S=t.path&&xn(t.path.d);if(t.path&&!S){u.push({...A,message:`Shape ${e}'s path starts with M and says only M, L, C and Z, absolute.`});return}if(t.geometry!==void 0||t.path&&S){const m=!t.path&&mn(t.geometry),k=ue(Re(x,le(Ce)),t.text);return{...j,kind:"autoshape",...t.path&&S?{path:{w:t.path.w,h:t.path.h,steps:S}}:t.geometry===void 0?{}:{geometry:t.geometry,...t.adjustments?{adjustments:[...t.adjustments]}:{}},...m?{line:t.line===void 0?Te.line:K(t.line),line_width:t.line_width===void 0?Te.line_width:v(t.line_width)}:{fill:t.fill===void 0?J.fill:K(t.fill),line:t.line===void 0?J.line:K(t.line),line_width:t.line_width===void 0?J.line_width:v(t.line_width)},...t.text&&!m?{fileText:{...t.text}}:{},...m?{}:{text:{paragraphs:withParagraphLooks(paragraphsOfWords(g(`${o}.${b}.${e}`)).map(N=>t.text?.align===void 0?{alignment:J.alignment,...N}:N),t.text,k.levels),style:k,own:ae(le(Ce)),empty:!1}},sources:{...c,fill:{from:"slide",path:`${f}.fill`}}}}if(t.component!==void 0){const m=q(t.component,t.props,A,t.dur);return m?{...j,kind:"component",component:m,sources:c}:void 0}},Ze=(e,t,f)=>{if(t.frame&&(e.frame=Ke(t.frame),e.sources.frame={from:"slide",path:`${f}.frame`}),Object.assign(e,Be(t)),t.dur!==void 0&&e.component&&(e.component={...e.component,dur:t.dur}),t.text&&e.text&&(e.text.style=ue(e.text.style,t.text),e.text.paragraphs=withParagraphLooks(Gn(e.text.paragraphs,t.text),t.text,e.text.style.levels),e.fileText={...t.text},e.sources.text={from:"slide",path:`${f}.text`}),t.line!==void 0&&(e.line=K(t.line),e.sources.line={from:"slide",path:`${f}.line`}),e.kind==="placeholder"&&t.geometry!==void 0&&(t.geometry==="rect"?delete e.geometry:e.geometry=t.geometry,t.adjustments?e.adjustments=[...t.adjustments]:delete e.adjustments,e.sources.geometry={from:"slide",path:`${f}.geometry`}),t.line_width!==void 0&&(e.line_width=v(t.line_width)),t.line_dash!==void 0&&(e.line_dash=t.line_dash),t.line_cap!==void 0&&(e.line_cap=t.line_cap),t.line_join!==void 0&&(e.line_join=t.line_join),t.line_compound!==void 0&&(e.line_compound=t.line_compound),t.line_begin!==void 0&&(e.line_begin=t.line_begin),t.line_end!==void 0&&(e.line_end=t.line_end),t.line_begin_size!==void 0&&(e.line_begin_size=t.line_begin_size),t.line_end_size!==void 0&&(e.line_end_size=t.line_end_size),(t.fill!==void 0||t.gradient!==void 0||t.pattern!==void 0||t.picture_fill!==void 0)&&(delete e.gradient,delete e.pattern,delete e.picture_fill),t.fill!==void 0&&(e.fill=K(t.fill),e.sources.fill={from:"slide",path:`${f}.fill`}),Object.assign(e,ye(t),ke(t,d)),(t.picture!==void 0||t.movie!==void 0)&&(e.placeholder?.type==="pic"||e.placeholder?.type==="media"||e.placeholder?.type==="obj"||e.placeholder?.type==="body")){const b=Ye(t.crop);e.kind=t.picture!==void 0?"picture":"movie",e.media={path:joinPath(d,t.picture??t.movie??""),...b?{crop:b}:{},...t.fit===void 0||t.picture===void 0?{}:{fit:t.fit},...t.poster===void 0?{}:{poster:t.poster},...t.playback&&t.movie!==void 0?{playback:t.playback}:{},...t.picture===void 0?{}:pictureLookOf(t)},e.sources.media={from:"slide",path:`${f}.${t.picture!==void 0?"picture":"movie"}`},delete e.text}else t.playback&&e.media&&(e.kind==="movie"||e.kind==="audio")&&(e.media={...e.media,playback:{...e.media.playback,...t.playback}})},$e=(e,t,f,b,x)=>{const A=U.get(t);if(!A){u.push({slide:e,path:`slides.${String(f)}.layout`,message:`Slide ${e} is on the layout "${t}", which the deck's module does not have (it has ${[...U.keys()].join(", ")||"none"}).`});return}const{layout:F,master:c}=A,j=[...(F.display_master_shapes===!1?[]:c.shapes).filter(S=>S.kind!=="placeholder").map(S=>Z(S,"master",c)),...F.shapes.filter(S=>S.kind!=="placeholder").map(S=>Z(S,"layout",c))],O=F.shapes.filter(S=>S.kind==="placeholder").map((S,m)=>({shape:V(S,c),order:m}));return{slide:{id:e,layout:F.name,master:c.name,hidden:b,background:F.background??c.background,...inheritedBackground(c,F),...Nn(c,F),shapes:j,animations:[],file:{index:f,...x===void 0?{}:{generate:x}}},placed:O,master:c}},ce=(e,t,f)=>{if(!t)return;const b=F=>{const c=t[F];if(c===void 0)return e.connect?.[F];const j=c==="none"?void 0:f(c.shape);return c==="none"||j===void 0?void 0:{shape:j,site:c.site}},x=b("begin"),A=b("end");x||A?e.connect={...x?{begin:x}:{},...A?{end:A}:{}}:delete e.connect},we=(e,t,f,b,x,A,F,c,j,O=()=>{})=>{const S=new Set(f.map(p=>p.shape.name));let m=f.length;for(const[p,y]of Object.entries(b??{})){let s=y;const h=A(p);if(h===void 0)continue;const w=`${x}.shapes.${p}`,P=s.textbox!==void 0||s.geometry!==void 0&&!S.has(h)||s.path!==void 0||s.table!==void 0||s.chart!==void 0||pe.some(T=>s[T]!==void 0)||s.component!==void 0||s.audio!==void 0||s.item!==void 0||(s.picture!==void 0||s.movie!==void 0)&&!S.has(h),_=f.find(T=>T.shape.name===h);if(_&&!P){Ze(_.shape,s,w),ce(_.shape,s.connect,A),_.shown=!0,s.z!==void 0&&(_.z=s.z);continue}if(_?.shape.kind==="placeholder"&&s.frame===void 0&&_.shape.level==="slide"){const T=_.shape.frame;s={...s,frame:{x:T.left/Y,y:T.top/Y,w:T.width/Y,h:T.height/Y}},f.splice(f.indexOf(_),1),S.delete(h)}else if(_){u.push({slide:e.id,shape:h,path:w,message:`Slide ${e.id} has a ${_.shape.kind} ${h} already: a shape of its own needs another name.`});continue}if(!P){u.push({slide:e.id,shape:h,path:w,message:`Slide ${e.id} has no shape ${h} to change (its layout's placeholders and its own shapes are ${[...S].join(", ")||"none"}).`});continue}if(s.table&&!ve(s.table)&&s.frame!==void 0){const T=`${o}.${e.id}.${h}`,R=me("table",s.table,{wordsElsewhere:!0,words:C=>$(T,C),data:C=>n.data?.(C),shown:C=>n.data?.(ie(C)),base:d});for(const C of R.problems)u.push({slide:e.id,shape:h,path:w,message:`Table ${h}${C.path.length>0?` (${C.path.join(".")})`:""}: ${C.message}`});if(R.block?.kind!=="table")continue;const H=sn(h,R.block,s.frame,L.colors,{...s.text?.size===void 0?{}:{size:s.text.size},...I===void 0?{}:{look:I},...D?.dark===!0?{dark:!0}:{}}),z=s.z===void 0?{}:{z:s.z};for(const C of H.parts){C.words!==void 0&&a.set(`${o}.${e.id}.${C.name}`,C.words);const ze=G(C.name,{...C.file,...z},w,e.id,t);ze&&(f.push({shape:ze,order:m++,...z}),S.add(C.name))}a.set(T,H.words);const X={...s};delete X.table;const te=G(h,{...X,table:H.table,frame:H.frame,group:h},w,e.id,t);te&&(f.push({shape:te,order:m++,...z}),S.add(h));continue}const E=pe.find(T=>s[T]!==void 0);if(E!==void 0&&s.frame!==void 0){const T=`${o}.${e.id}.${h}`,R=me(E,s[E],{wordsElsewhere:!0,words:z=>$(T,z),data:z=>n.data?.(z),shown:z=>n.data?.(ie(z)),base:d}),H=E.charAt(0).toUpperCase()+E.slice(1);for(const z of R.problems)u.push({slide:e.id,shape:h,path:w,message:`${H} ${h}${z.path.length>0?` (${z.path.join(".")})`:""}: ${z.message}`});if(R.block===void 0)continue;for(const z of ln(h,R.block,s.frame,L.colors,{...s.text?.autofit==="shrink"?{fit:"shrink"}:{},...s.text?.anchor==="t"?{anchor:"top-left"}:{},...s.text?.size===void 0?{}:{size:s.text.size},...I===void 0?{}:{look:I},...D?.dark===!0?{dark:!0}:{}})){z.words!==void 0&&a.set(`${o}.${e.id}.${z.name}`,z.words);const X=G(z.name,{...z.file,...s.z===void 0?{}:{z:s.z}},w,e.id,t);X&&(z.file.connect&&ce(X,z.file.connect,te=>te),f.push({shape:X,order:m++,...s.z===void 0?{}:{z:s.z}}),S.add(z.name))}S.add(h);continue}const M=G(h,s,w,e.id,t);M&&ce(M,s.connect,A),M&&(f.push({shape:M,order:m++,...s.z===void 0?{}:{z:s.z}}),S.add(h))}const k=f.filter(p=>p.shape.kind!=="placeholder"||p.shown===!0||F(p.shape)!==void 0);f.splice(0,f.length,...k),f.sort((p,y)=>(p.z??0)-(y.z??0)||p.order-y.order);const N=(p,y)=>{const s=w=>{const P=w.shape.group;return P===void 0?void 0:Qe(P)[y]},h=new Map(p.flatMap((w,P)=>{const _=s(w);return _===void 0?[]:[[_,P]]}));return p.flatMap((w,P)=>{const _=s(w);return _===void 0?[w]:h.get(_)===P?N(p.filter(E=>s(E)===_),y+1):[]})};f.splice(0,f.length,...N(f,0));for(const p of f){const y=O(p.shape);y!==void 0&&(p.shape.alt=y);const s=p.shape.text;if(p.shape.kind==="placeholder"&&s){const h=F(p.shape);s.paragraphs=withParagraphLooks(paragraphsOfWords(h,0,L.fonts.code),p.shape.fileText,s.style.levels),s.empty=s.paragraphs.length===0||s.paragraphs.every(w=>w.runs.every(P=>P.text===""))}}e.shapes.push(...f.map(p=>p.shape));for(const p of e.shapes){const y=p.connect;if(!y)continue;const s=wn(p,h=>e.shapes.find(w=>w.name===h&&w.level===p.level&&w!==p));p.frame=s.frame,s.flip?p.flip=s.flip:delete p.flip;for(const h of s.lost){const w=y[h];w&&p.level==="slide"&&u.push({slide:e.id,shape:p.name,message:`Connector ${p.name}'s ${h} is glued to site ${String(w.site)} of ${w.shape}, which slide ${e.id} has not: it stays where it is.`})}}c!==void 0&&c.trim()!==""&&(e.notes=c);for(const[p,y]of(j??[]).entries()){const s=A(y.shape);if(s===void 0)continue;const h={slide:e.id,shape:s,path:`${x}.animations.${String(p)}`},w=e.shapes.find(M=>M.name===s&&M.level==="slide");if(!w){u.push({...h,message:`Slide ${e.id} has no shape ${s} to animate (it has ${e.shapes.filter(M=>M.level==="slide").map(M=>M.name).join(", ")}).`});continue}if(y.paragraph!==void 0&&y.paragraph>=(w.text?.paragraphs.length??0)){u.push({...h,message:`Shape ${s} has no paragraph ${String(y.paragraph)} to animate (it has ${String(w.text?.paragraphs.length??0)}).`});continue}const P=kn[y.effect];y.direction!==void 0&&!P.directions.includes(y.direction)&&u.push({...h,path:`${h.path}.direction`,message:P.directions.length===0?`${s}'s ${y.effect} has no direction (${y.direction}).`:`${s}'s ${y.effect} goes ${P.directions.join(", ")}, not ${y.direction}.`}),y.amount!==void 0&&P.amount===void 0?u.push({...h,path:`${h.path}.amount`,message:`${s}'s ${y.effect} has no amount: only a Grow/Shrink, a spin and a Transparency do.`}):y.effect==="transparency"&&(y.amount??0)>1&&u.push({...h,path:`${h.path}.amount`,message:`${s}'s transparency is a share, at most 1 (it is ${String(y.amount)}).`}),y.animate_text!==void 0&&!w.text&&u.push({...h,path:`${h.path}.animate_text`,message:`${s} has no text to animate by ${y.animate_text}: it plays as one.`});const _=y.animate_text,E=_n({...y,shape:s,...w.text?{}:{animate_text:void 0}},_===void 0?1:(y.paragraph===void 0?w.text?.paragraphs??[]:[w.text?.paragraphs[y.paragraph]]).reduce((M,T)=>M+yn(T?.runs.map(R=>R.text)??[],_).length,0));E?e.animations.push(E):u.push({...h,message:`The animation of ${s} needs a path that starts with M and says only M, L and C, absolute.`})}},xe=new Set;r.slides.forEach((e,t)=>{const f=`slides.${String(t)}`;if(e.layout!==void 0){const c=$e(e.id,e.layout,t,e.hidden===!0);if(!c)return;const j=g(`${o}.${e.id}.notes`);e.transition&&(c.slide.transition=B(e.id,e.transition,f)),e.advance_after!==void 0&&(c.slide.advance=e.advance_after),e.section!==void 0&&(c.slide.section=e.section),Xe(c.slide,e.background,d),Zn(c.slide,L),we(c.slide,c.master,c.placed,e.shapes,f,O=>O,O=>g(`${o}.${e.id}.${O.name}`),typeof j=="string"?j:void 0,e.animations,O=>{const S=g(`${o}.${e.id}.alt.${O.name}`);return typeof S=="string"?S:void 0}),W.push(c.slide),xe.add(e.id);return}const b=e.generate??"",x=i.generators[b];if(x===void 0){u.push({slide:e.id,path:`${f}.generate`,message:`There is no generator ${b} in the deck's module (it has ${Object.keys(i.generators).join(", ")||"none"}).`});return}if(!Array.isArray(x)){u.push({slide:e.id,path:`${f}.generate`,message:`Generator ${b} threw: ${x.error}`,...x.stack===void 0?{}:{stack:x.stack}});return}const A=x,F=new Set(Array.isArray(e.hidden)?e.hidden:[]);for(const c of A){const j=`${e.id}/${c.id}`,O=$e(j,c.layout,t,F.has(c.id),b);if(!O)continue;for(const k of c.shapes){const N=k.placeholder?O.placed.find(p=>p.shape.placeholder?.idx===k.placeholder?.idx):void 0;if(N)k.frame&&(N.shape.frame={...k.frame}),N.shape.sources.frame={from:"code"},N.shown=!0;else{const p=Z(k,"layout",O.master);O.placed.push({shape:{...p,level:"slide",sources:{frame:{from:"code"}}},order:O.placed.length})}}const S=`${c.id}/`,m=c.transition??(c===A[0]?e.transition:void 0);Xe(O.slide,e.background,d),m&&(O.slide.transition=B(O.slide.id,m,f)),c===A[0]&&e.section!==void 0&&(O.slide.section=e.section),we(O.slide,O.master,O.placed,e.shapes,f,k=>k.startsWith(S)?k.slice(S.length):void 0,k=>{const N=k.placeholder===void 0?void 0:c.text[k.placeholder.idx];return N===void 0?void 0:N.map(p=>p.runs.map(y=>y.text).join(""))},c.notes,[...(c.animations??[]).map(k=>({...k,shape:`${S}${k.shape}`})),...e.animations??[]]);for(const k of O.slide.shapes){const N=k.placeholder===void 0?void 0:c.text[k.placeholder.idx];N&&k.text&&(k.text.paragraphs=N,k.text.empty=!1)}W.push(O.slide),xe.add(j)}for(const c of Object.keys(e.shapes??{})){const[j]=c.split("/");j!==void 0&&!A.some(O=>O.id===j)&&u.push({slide:e.id,path:`${f}.shapes.${c}`,message:`Generator ${b} makes no slide ${j}: ${c} changes nothing.`})}});const Se=new Set(W.map(e=>e.id));for(const e of W)for(const t of e.shapes){if(t.level!=="slide")continue;const f=[...t.link===void 0?[]:[t.link],...(t.text?.paragraphs??[]).flatMap(b=>b.runs.flatMap(x=>x.font?.link===void 0?[]:[x.font.link]))];for(const b of new Set(f)){const x=tn(b);(x!==void 0?!Se.has(x):b.startsWith("ppaction://")&&nn(b)===void 0)&&u.push({slide:e.id,shape:t.name,message:x!==void 0?`Shape ${t.name} links to slide ${x}, which the deck has not (it has ${[...Se].join(", ")}).`:`Shape ${t.name} links to ${b}: a show jump is ppaction://hlinkshowjump?jump= and ${en.join(", ")}.`})}}return W.forEach((e,t)=>{for(const f of e.shapes)f.placeholder?.type==="sldNum"&&f.text&&(f.text.paragraphs=[{level:0,runs:[{text:String(t+1),field:"slidenum"}]}],f.text.empty=!1)}),{deck:{width:i.slide_width,height:i.slide_height,theme:L,slides:W},problems:u}}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{
|
|
3
|
-
`:t);if(s.errors.length>0)throw new Error("The script is not YAML: it is mended by hand first.");return editDeckScriptDocument(s,e),s.toString()}export function editDeckScriptDocument(t,e){const s=
|
|
2
|
+
import{readDataFileAsWritten as w}from"@allyhub/formats";import{parseScript as S}from"@allyhub/piece";import{isCollection as m,isMap as u,isSeq as g,parseDocument as y}from"yaml";export function scriptWords(t,e){const s=new Map(t.slides.map(i=>[i.id,i])),o=i=>typeof i=="string"?i:Array.isArray(i)?i.map(o).filter(n=>n!==void 0):void 0;return i=>{if(!i.startsWith(`${e}.`))return;const[n="",...r]=i.slice(e.length+1).split("."),c=s.get(n);if(r.length===1&&r[0]==="notes")return typeof c?.notes=="string"?c.notes:void 0;if(r.length===2&&r[0]==="alt")return c?.alt?.[r[1]??""];let f=c?.text;for(const a of r)f=Array.isArray(f)?/^\d+$/u.test(a)?f[Number(a)]:void 0:typeof f=="object"&&f!==null?f[a]:void 0;return o(f)}}export const CHART_AXIS_WORDS=["category_axis","value_axis","secondary_axis"];export function chartWordsOf(t){if(typeof t=="string")return{title:t};if(typeof t!="object"||Array.isArray(t))return{};const e={};for(const s of["title",...CHART_AXIS_WORDS]){const o=t[s];typeof o=="string"&&(e[s]=o)}return e}export function chartScriptText(t){const e=Object.fromEntries(Object.entries(t).filter(([,o])=>o!==void 0&&o!=="")),s=Object.keys(e);if(s.length!==0)return s.length===1&&e.title!==void 0?e.title:e}export function readScript(t){const e=y(t);if(e.errors.length>0)return;const s=S(e.toJS()??{});if("problems"in s)return;const o=w("script",s.script);return o.ok?o.value:void 0}function b(t){let e=t.get("slides",!0);if(g(e)||(u(t.contents)?t.set("slides",t.createNode([])):t.contents=t.createNode({slides:[]}),e=t.get("slides",!0)),!g(e))throw new Error("The script has no slides list.");return e.flow===!0&&(e.flow=!1),e}function x(t,e){!m(t)||!m(e)||(e.flow===!0&&(t.flow=!0),t.items.forEach((s,o)=>{x(s,e.items[o])}))}export function editDeckScript(t,e){const s=y(t===void 0||t.trim()===""?`slides: []
|
|
3
|
+
`:t);if(s.errors.length>0)throw new Error("The script is not YAML: it is mended by hand first.");return editDeckScriptDocument(s,e),s.toString()}export function editDeckScriptDocument(t,e){const s=b(t),o=s.items.findIndex(r=>u(r)&&r.get("id")===e.slide);if(e.op==="remove"){o>=0&&s.items.splice(o,1);return}const i=e.op==="text"?e.words===void 0:e.op==="alt"?e.alt===void 0:e.notes===void 0;if(o<0&&i)return;let n=s.items[o];if(u(n)||(s.items.push(t.createNode({id:e.slide})),n=s.items.at(-1)),!!u(n)){if(e.op==="notes")e.notes===void 0?n.delete("notes"):n.set("notes",t.createNode(e.notes));else if(e.op==="alt")if(e.alt===void 0){n.deleteIn(["alt",e.shape]);const r=n.get("alt",!0);u(r)&&r.items.length===0&&n.delete("alt")}else n.setIn(["alt",e.shape],e.alt);else if(e.words===void 0){n.deleteIn(["text",e.shape]);const r=n.get("text",!0);u(r)&&r.items.length===0&&n.delete("text")}else{const r=t.createNode(e.words);x(r,n.getIn(["text",e.shape],!0)),n.setIn(["text",e.shape],r)}n.items.length===1&&s.items.splice(s.items.indexOf(n),1)}}const p=t=>JSON.stringify(t);export function deckScriptEdits(t,e){const s=[],o=new Map(t.slides.map(n=>[n.id,n])),i=new Map(e.slides.map(n=>[n.id,n]));for(const n of o.keys())i.has(n)||s.push({op:"remove",slide:n});for(const[n,r]of i){const c=o.get(n),f=c?.text??{},a=r.text??{};for(const l of new Set([...Object.keys(f),...Object.keys(a)]))p(f[l])!==p(a[l])&&s.push({op:"text",slide:n,shape:l,words:a[l]});const h=c?.alt??{},d=r.alt??{};for(const l of new Set([...Object.keys(h),...Object.keys(d)]))h[l]!==d[l]&&s.push({op:"alt",slide:n,shape:l,alt:d[l]});p(c?.notes)!==p(r.notes)&&s.push({op:"notes",slide:n,notes:r.notes})}return s}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{PP_PLACEHOLDER as r}from"../enums.js";import{styleMaster as s}from"./layouts.js";const d=[48,138,864,338];export const BRIEF={name:"brief",purpose:"a decision from evidence, as a consulting page: white, a title over a hairline, sources",fonts:{major:"IBM Plex Sans",minor:"IBM Plex Sans",system:{major:"Arial",minor:"Arial"}},blocks:{tile:"rule",radius:0,rule:{paint:"deep",width:2,stub:!1},figure:{face:"display",weight:700,paint:"deep",scale:.92},heading:{face:"display",weight:700},label:{caps:!1,tracking:0,weight:600},icon:"plain",callout:"bar",tag:"outline",marker:"square",band:"line",displayWidth:1.02,textWidth:1},chart:{file:{size:10,gap_width:60,value_axis:{gridline_color:"tx1 lighter 88%"}},series:["accent1","tx2","tx1 lighter 60%","accent1 lighter 45%"],lineWidth:2,waterfall:{increase:"accent1",decrease:"#B3362C",total:"tx2"}},master:t=>s(t,{name:"AllyHub Brief",background:"bg1",title:{box:[48,34,864,70],words:{size:23,bold:!0,color:"tx2",face:"display",tracking:-.2,leading:1.02,anchor:"bottom"}},body:{words:{size:16,color:"tx1",leading:1.18,face:"text"},level2:{size:14,color:"tx1 lighter 30%",leading:1.18},bullet:"■",bullet2:"–",bulletColor:"tx2",indent:16},grid:{body:d,gap:24},footer:{footer:[48,490,720,26],date:[560,490,280,26],number:[852,490,60,26],words:{size:9,color:"tx1 lighter 45%"},numberWords:{bold:!0,color:"tx2"}},heading:{size:15,bold:!0,color:"tx2",face:"display"},content:(e,a,o)=>{if(t.line(e,48,116,912,116,"tx1 lighter 75%",.75),t.rect(e,[48,114.5,56,3],"accent1"),t.line(e,48,484,912,484,"tx1 lighter 85%",.5),o==="Comparison")for(const i of a){const[l,c,n]=i.box;t.line(e,l,c+44,l+n,c+44,"tx2",1.25)}for(const i of a)i.role==="picture"&&t.rect(e,i.box,"bg2");(o==="Content with Caption"||o==="Picture with Caption")&&t.line(e,624,138,624,476,"tx1 lighter 75%",.75)},cover:e=>{t.ground(e,"tx2"),t.rect(e,[0,528,960,12],"accent1"),t.rect(e,[48,48,12,12],"accent1 lighter 25%"),t.ph(e,r.CENTER_TITLE,[48,176,540,190],{words:{size:38,bold:!0,color:"bg1",face:"display",tracking:-.6,leading:1.02,anchor:"bottom"}}),t.line(e,48,382,588,382,"tx2 lighter 30%",.75),t.ph(e,r.SUBTITLE,[48,398,540,100],{words:{size:14,color:"bg2",leading:1.35,plain:!0}})},section:e=>{t.ground(e,"bg1"),t.rect(e,[0,0,336,540],"tx2"),t.rect(e,[48,64,12,12],"accent1 lighter 25%"),t.line(e,48,476,288,476,"tx2 lighter 30%",.75),t.ph(e,r.BODY,[48,96,240,110],{name:"number",words:{size:84,bold:!0,color:"bg1",face:"display",tracking:-2,leading:.9,plain:!0}}),t.ph(e,r.TITLE,[384,120,528,200],{words:{size:32,bold:!0,color:"tx2",face:"display",tracking:-.4,leading:1.04,anchor:"bottom"}}),t.line(e,384,336,912,336,"tx1 lighter 75%",.75),t.ph(e,r.BODY,[384,352,528,120],{words:{size:15,color:"tx1 lighter 25%",plain:!0}})},tracker:{box:[48,14,600,18],words:{size:9,bold:!0,color:"accent1",caps:!0,tracking:1}},captioned:{title:[48,34,864,70],object:[48,138,552,338],caption:[648,138,264,338],titleWords:{size:23,bold:!0,color:"tx2",face:"display",anchor:"bottom"},captionWords:{size:13,color:"tx1 lighter 15%"}}})};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{PP_PLACEHOLDER as r}from"../enums.js";import{styleMaster as g}from"./layouts.js";const p=[56,164,848,306],i="tx1";export const EDITORIAL={name:"editorial",purpose:"a story people read (brand, culture, reviews): a magazine page, serif titles, hairlines",fonts:{major:"Newsreader",minor:"Inter",system:{major:"Georgia",minor:"Arial"}},blocks:{tile:"rule",rule:{paint:"text",width:.75,stub:!1},radius:0,figure:{face:"display",weight:400,paint:"text",scale:1.25},heading:{face:"display",weight:400},label:{caps:!0,tracking:.08,weight:700},icon:"plain",callout:"rules",tag:"text",marker:"square",band:"line",displayWidth:.9,textWidth:1.1},chart:{file:{size:10,gap_width:80,value_axis:{gridlines:!1,line_color:"tx1"}},series:["accent1","tx1 lighter 65%","tx2","accent1 lighter 50%"],lineWidth:1.75,waterfall:{increase:"accent1",decrease:"tx1 lighter 60%",total:"tx1"}},master:t=>g(t,{name:"AllyHub Editorial",background:"bg1",title:{box:[56,60,760,88],words:{size:34,color:i,face:"display",tracking:-.6,leading:1.02,anchor:"top"}},body:{words:{size:16,color:"tx1 lighter 15%",leading:1.4,face:"text"},level2:{size:14,color:"tx1 lighter 35%",leading:1.4},bullet:"–",bullet2:"·",bulletColor:"tx1",indent:16},grid:{body:p,gap:32},footer:{footer:[56,488,640,28],date:[560,20,230,16],number:[804,20,100,16],words:{size:9,color:"tx1 lighter 40%"},numberWords:{bold:!0,color:i,tracking:1}},heading:{size:22,color:i,face:"display"},content:(e,l,o)=>{t.line(e,56,42,904,42,i,.75),o==="Two Content"&&t.line(e,480,164,480,470,"tx1 lighter 70%",.5),o==="Comparison"&&l.forEach((a,n)=>{const[c,s,d]=a.box;t.line(e,c,s,c+d,s,n===0?i:"accent1",n===0?.75:2)});for(const a of l)a.role==="picture"&&t.rect(e,a.box,"bg2");(o==="Content with Caption"||o==="Picture with Caption")&&t.line(e,436,64,436,470,"tx1 lighter 70%",.5)},cover:e=>{t.ground(e,"bg1"),t.line(e,56,56,616,56,i,1.5),t.line(e,56,61,616,61,i,.5),t.rect(e,[672,0,288,540],"accent1"),t.rect(e,[700,28,232,484],"none",{line:"bg1",width:.75}),t.ph(e,r.CENTER_TITLE,[56,110,570,370],{words:{size:66,color:i,face:"display",tracking:-1.8,leading:.98,anchor:"bottom"}}),t.line(e,56,496,616,496,i,.5),t.ph(e,r.SUBTITLE,[724,200,184,288],{words:{size:18,color:"bg1",face:"display",leading:1.22,plain:!0,anchor:"bottom"}})},section:e=>{t.ground(e,"bg1"),t.line(e,56,42,904,42,i,.75),t.ph(e,r.BODY,[48,36,520,236],{name:"number",words:{size:210,color:"accent1 lighter 60%",face:"display",tracking:-6,leading:.9,plain:!0}}),t.ph(e,r.TITLE,[56,280,720,130],{words:{size:50,color:i,face:"display",tracking:-1.2,leading:1,anchor:"bottom"}}),t.ph(e,r.BODY,[56,424,560,64],{words:{size:15,color:"tx1 lighter 25%",plain:!0}}),t.line(e,904,64,904,476,"tx1 lighter 70%",.5)},tracker:{box:[56,20,480,16],words:{size:9,bold:!0,color:i,caps:!0,tracking:1}},captioned:{title:[56,64,352,160],object:[464,64,440,406],caption:[56,240,352,230],titleWords:{size:30,color:i,face:"display",leading:1.04,anchor:"top"},captionWords:{size:13,color:"tx1 lighter 20%"}}})};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{kitOf as u,flush as p}from"./kit.js";import{BRIEF as c}from"./brief.js";import{EDITORIAL as m}from"./editorial.js";import{PITCH as g}from"./pitch.js";import{STAGE as w}from"./stage.js";import{TILES as E}from"./tiles.js";export const STYLE_NAMES=["brief","pitch","stage","editorial","tiles"],DECK_STYLES={brief:c,pitch:g,stage:w,editorial:m,tiles:E},isStyleName=e=>STYLE_NAMES.includes(e);export function addStyleMaster(e,i){const n=i.master(u(e));return p(n),n}export function styledChart(e,i){const n=i.file,d=t=>n[t]===void 0&&e[t]===void 0?{}:{[t]:{...n[t],...e[t]}},l=e.legend===void 0&&n.legend===void 0&&e.series.length>1&&!["pie","doughnut"].includes(e.type)?{legend:"top"}:{},o=e.type==="waterfall"?S(e,i):{},s={...l,...n,...o,...e,...d("value_axis"),...d("category_axis"),series:(o.series??e.series).map((t,f)=>{if(typeof t=="string")return t;const r=t.line_width===void 0&&(e.type.startsWith("line")||t.type?.startsWith("line")===!0)?{line_width:i.lineWidth}:{};return t.color===void 0?{...t,...r,color:i.series[f%i.series.length]??"accent1"}:{...t,...r}})};return o.series!==void 0&&e.legend===void 0&&delete s.legend,s}function S(e,i){const[n,...d]=e.series,l=e.categories;if(typeof n!="object"||n.values===void 0||n.points!==void 0||!Array.isArray(l))return{};const o=new Set(e.totals??[]),s={};return l.forEach((t,f)=>{const r=Array.isArray(t)?t.at(-1):t,a=n.values?.[f];r===void 0||a===void 0||a===null||(s[r]={color:o.has(r)?i.waterfall.total:a<0?i.waterfall.decrease:i.waterfall.increase})}),{series:[{...n,points:s},...d]}}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{colorOfFile as I}from"@allyhub/formats";import{MSO_ANCHOR as R,MSO_SHAPE as M,PP_ALIGN as O,PP_PLACEHOLDER as T}from"../enums.js";import{Emu as f,Pt as l}from"../units.js";const _=m=>{const g=I(m);if(g===void 0)throw new Error(`A style's colour ${m} is not one.`);return g};export function kitOf(m){const g=m.slide_width/l(960),d=m.slide_height/l(540),c=e=>[f(Math.round(l(e[0])*g)),f(Math.round(l(e[1])*d)),f(Math.round(l(e[2])*g)),f(Math.round(l(e[3])*d))],A=(e,t)=>{if(e.font.size=l(t.size),e.font.bold=t.bold===!0,t.italic===!0&&(e.font.italic=!0),t.face!==void 0&&(e.font.name=t.face==="display"?"+mj-lt":"+mn-lt"),t.tracking!==void 0&&(e.font.spacing=l(t.tracking)),t.leading!==void 0&&(e.line_spacing=t.leading),t.caps===!0&&(e.font.caps="all"),t.color!==void 0){const n=_(t.color);typeof n=="string"?e.font.color.theme_color=n:"rgb"in n?e.font.color.rgb=n.rgb:(e.font.color.theme_color=n.theme_color,"brightness"in n?e.font.color.brightness=n.brightness:e.font.color.transforms=n.transforms)}t.plain===!0&&(e.bullet=null,e.margin_left=f(0),e.indent=f(0)),t.align==="center"&&(e.alignment=O.CENTER),t.align==="right"&&(e.alignment=O.RIGHT)},x=(e,t)=>{const n=e.text_frame.list_style[0];return A(n,t),e.text_frame.vertical_anchor=t.anchor==="bottom"?R.BOTTOM:t.anchor==="middle"?R.MIDDLE:R.TOP,e},L=(e,t,n,o={})=>{const r=n===void 0?e.placeholders.add(t):e.placeholders.add(t,...c(n),...o.name===void 0?[]:[{name:o.name}]);return o.words&&x(r,o.words),r},b=(e,t,n,o=1)=>(e._def.decorative=!0,e._def.fill=t==="none"?null:_(t),n===void 0?e._def.line=null:(e._def.line=_(n),e._def.line_width=l(o)),e._def.shadow=null,e);return{prs:m,at:c,ph:L,words:x,level:A,rect:(e,t,n,o={})=>{const r=o.radius??0,i=e.shapes.add_shape(r>0?M.ROUNDED_RECTANGLE:M.RECTANGLE,...c(t));return o.name!==void 0&&(i.name=o.name),r>0&&(i._def.adjustments=[Math.min(.5,r/Math.min(t[2],t[3]))]),b(i,n,o.line,o.width)},ellipse:(e,t,n,o={})=>{const r=e.shapes.add_shape(M.OVAL,...c(t));return o.name!==void 0&&(r.name=o.name),b(r,n,o.line,o.width)},line:(e,t,n,o,r,i,a)=>{const s=e.shapes.add_shape(M.RECTANGLE,...c([Math.min(t,o),Math.min(n,r),Math.abs(o-t),Math.abs(r-n)]));return s._def.geometry="line",b(s,"none",i,a),s},quarter:(e,t,n,o,r,i)=>{const a=.5523*r,s=t==="tl"||t==="bl"?n:n-r,h=t==="tl"||t==="tr"?o:o-r,[N,P]=c([s,h,0,0]),C=E=>Math.round(l(E)*g),v=E=>Math.round(l(E)*d),u=(E,H)=>[C(E-s),v(H-h)],p={x:t==="tl"||t==="bl"?1:-1,y:t==="tl"||t==="tr"?1:-1},D=u(n+p.x*r,o),G=u(n,o+p.y*r),k=e.shapes.build_freeform(...u(n,o),1);k.add_line_segments([D],!1),k.add_curve_segment(...u(n+p.x*r,o+p.y*a),...u(n+p.x*a,o+p.y*r),...G),k.add_line_segments([u(n,o)],!0);const S=k.convert_to_shape(N,P);return b(S,i)},glow:(e,t,n,o,r)=>{const i=Math.max(t[2],t[3]),[a,s]=[t[0]+t[2]/2,t[1]+t[3]/2],h=e.shapes.add_shape(M.RECTANGLE,...c([a-i/2,s-i/2,i,i]));return b(h,"none"),delete h._def.fill,h._def.gradient={angle:0,path:"circle",stops:[{at:0,color:_(`${n} darker ${String(Math.round((1-o)*100))}%`)},{at:.25,color:_(`${n} darker ${String(Math.round((1-o*.45)*100))}%`)},{at:.62,color:_(r)},{at:1,color:_(r)}]},h},text:(e,t,n,o)=>{const r=e.shapes.add_textbox(...c(t));r._def.decorative=!0,r.text_frame.text=n,r.text_frame.margin_left=f(0),r.text_frame.margin_right=f(0),r.text_frame.margin_top=f(0),r.text_frame.margin_bottom=f(0),r.text_frame.word_wrap=!1;for(const i of r.text_frame.paragraphs){const a=i.font;if(a.size=l(o.size),a.bold=o.bold===!0,a.name=o.face==="display"?"+mj-lt":"+mn-lt",o.tracking!==void 0&&(a.spacing=l(o.tracking)),o.color!==void 0){const s=_(o.color);typeof s=="string"?a.color.theme_color=s:"rgb"in s?a.color.rgb=s.rgb:(a.color.theme_color=s.theme_color,"brightness"in s?a.color.brightness=s.brightness:a.color.transforms=s.transforms)}o.align==="right"&&(i.alignment=O.RIGHT),o.align==="center"&&(i.alignment=O.CENTER),o.leading!==void 0&&(i.line_spacing=o.leading)}return r},ground:(e,t)=>{e.background.fill.solid();const n=_(t);typeof n=="string"?e.background.fill.fore_color.theme_color=n:"rgb"in n?e.background.fill.fore_color.rgb=n.rgb:(e.background.fill.fore_color.theme_color=n.theme_color,"brightness"in n?e.background.fill.fore_color.brightness=n.brightness:e.background.fill.fore_color.transforms=n.transforms)},footers:e=>{e.placeholders.add(T.DATE),e.placeholders.add(T.FOOTER),e.placeholders.add(T.SLIDE_NUMBER)}}}export function flush(m){const g=d=>{d.text_frame.margin_left=f(0),d.text_frame.margin_right=f(0)};for(const d of m.placeholders)g(d);for(const d of m.slide_layouts)for(const c of d.placeholders)g(c)}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{PP_PLACEHOLDER as d}from"../enums.js";export function styleMaster(e,T){const o={...T,content:(t,r,n)=>{T.content(t,r,n),T.tracker&&e.ph(t,d.BODY,T.tracker.box,{name:"tracker",words:{...T.tracker.words,plain:!0,anchor:"bottom"}})}},s=e.prs.slide_masters.add(o.name);e.ground(s,o.background),o.dark===!0&&(s.color_map={bg1:"dk1",tx1:"lt1",bg2:"dk2",tx2:"lt2"});const m=s.text_styles;for(const t of m.title_style)e.level(t,o.title.words);for(const[t,r]of[...m.body_style].entries()){const n=t===0?o.body.words:o.body.level2;e.level(r,n),r.bullet=t===0?o.body.bullet:o.body.bullet2,r.bullet_color=t===0?o.body.bulletColor:"tx1",r.margin_left=e.at([o.body.indent*(t+1),0,0,0])[0],r.indent=e.at([-o.body.indent,0,0,0])[0]}e.ph(s,d.TITLE,o.title.box,{words:o.title.words}),e.ph(s,d.BODY,o.grid.body);const h=o.footer;e.ph(s,d.FOOTER,h.footer,{words:{...h.words,plain:!0,anchor:"bottom"}}),e.ph(s,d.DATE,h.date,{words:{...h.words,plain:!0,align:"right",anchor:"bottom"}}),e.ph(s,d.SLIDE_NUMBER,h.number,{words:{...h.words,...h.numberWords,plain:!0,align:"right",anchor:"bottom"}});const a=s.slide_layouts,[y,l,x,p]=o.grid.body,u=o.grid.gap,b=(x-u)/2,i=o.grid.inset??0,f=([t,r,n,c])=>[t+i,r+i,n-2*i,c-2*i],w=(t,r,n,c=d.OBJECT)=>e.ph(t,c,r,{name:n}),g=t=>{t.placeholders.add(d.TITLE)};a.add("Title Slide",t=>{o.cover(t),e.footers(t)}),a.add("Title and Content",t=>{o.content(t,[{box:o.grid.body,role:"object"}],"Title and Content"),g(t),w(t,f(o.grid.body),"content"),e.footers(t)}),a.add("Section Header",t=>{o.section(t),e.footers(t)}),a.add("Two Content",t=>{const r=[y,l,b,p],n=[y+b+u,l,b,p];o.content(t,[{box:r,role:"object"},{box:n,role:"object"}],"Two Content"),g(t),w(t,f(r),"left"),w(t,f(n),"right"),e.footers(t)}),a.add("Comparison",t=>{const r=Math.round(o.heading.size*1.25+14),n=[y,l,b,p],c=[y+b+u,l,b,p];o.content(t,[{box:n,role:"heading"},{box:c,role:"heading"}],"Comparison"),g(t);for(const[O,[E]]of[["left",n],["right",c]])e.ph(t,d.BODY,[E+i,l+i,b-2*i,r],{name:`${O}_heading`,words:{...o.heading,plain:!0,anchor:"bottom"}}),w(t,[E+i,l+i+r+12,b-2*i,p-r-12-2*i],O);e.footers(t)}),a.add("Title Only",t=>{if(o.titleOnly){o.titleOnly(t);return}o.content(t,[],"Title Only"),g(t),e.footers(t)}),a.add("Blank",t=>{o.blank?.(t),e.footers(t)});const C=(t,r)=>{const n=o.captioned;o.content(t,[{box:n.object,role:r?"picture":"object"},{box:n.caption,role:"caption"}],r?"Picture with Caption":"Content with Caption"),e.ph(t,d.TITLE,n.title,{words:n.titleWords}),e.ph(t,d.BODY,f(n.caption),{name:"caption",words:{...n.captionWords,plain:!0}}),w(t,r?n.object:f(n.object),r?"picture":"content",r?d.PICTURE:d.OBJECT),e.footers(t)};return a.add("Content with Caption",t=>{C(t,!1)}),a.add("Picture with Caption",t=>{C(t,!0)}),a.add("Title and Vertical Text",t=>{o.content(t,[{box:o.grid.body,role:"body"}],"Title and Vertical Text"),g(t),e.ph(t,d.BODY,f(o.grid.body)),e.footers(t)}),a.add("Vertical Title and Text",t=>{const[,n]=o.title.box,c=[y,n,x-140-u,l+p-n];o.content(t,[{box:c,role:"body"}],"Vertical Title and Text"),e.ph(t,d.TITLE,[y+x-140,n,140,l+p-n]),e.ph(t,d.BODY,f(c)),e.footers(t)}),s}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{PP_PLACEHOLDER as r}from"../enums.js";import{styleMaster as g}from"./layouts.js";const i=132,h=[56,160,848,324];export const PITCH={name:"pitch",purpose:"to persuade fast (fundraising, sales): a colour panel with a heavy title, big figures",fonts:{major:"Archivo Black",minor:"Archivo",system:{major:"Arial Black",minor:"Arial"}},blocks:{tile:"well",ground:"accent1~tint",radius:0,featured:"accent-ground",figure:{face:"display",weight:400,paint:"accent1",scale:1.1},heading:{face:"text",weight:700},label:{caps:!1,tracking:0,weight:700},icon:"plain",callout:"tint",tag:"pill",marker:"dot",band:"solid",displayWidth:1.28,textWidth:1.04},chart:{file:{size:12,gap_width:40,value_axis:{gridline_color:"tx1 lighter 92%"}},series:["accent1","tx1 lighter 72%","tx2","accent1 lighter 45%"],lineWidth:3.5,waterfall:{increase:"accent1 lighter 35%",decrease:"tx1 lighter 60%",total:"accent1"}},master:t=>g(t,{name:"AllyHub Pitch",background:"bg1",title:{box:[56,28,740,84],words:{size:28,color:"bg1",face:"display",tracking:-.4,leading:1.02,anchor:"bottom"}},body:{words:{size:18,color:"tx1",leading:1.22,face:"text"},level2:{size:15,color:"tx1 lighter 35%",leading:1.22},bullet:"■",bullet2:"–",bulletColor:"accent1",indent:18},grid:{body:h,gap:16},footer:{footer:[56,492,760,26],date:[560,492,280,26],number:[852,492,60,26],words:{size:9,color:"tx1 lighter 45%"},numberWords:{size:13,bold:!0,color:"accent1"}},heading:{size:19,bold:!0,color:"tx1"},content:(e,a,c)=>{t.rect(e,[0,0,960,i],"accent1"),t.quarter(e,"tr",960,0,i,"accent1 darker 18%");for(const o of a)o.role==="picture"&&t.rect(e,o.box,"bg2");c==="Comparison"&&a.forEach((o,l)=>{const[n,s,d]=o.box;t.rect(e,[n,s+40,d,4],l===0?"tx1 lighter 75%":"accent1")})},cover:e=>{t.ground(e,"accent1"),t.quarter(e,"br",960,540,400,"accent1 darker 18%"),t.ph(e,r.CENTER_TITLE,[56,130,640,240],{words:{size:62,color:"bg1",face:"display",tracking:-1.5,leading:.98,anchor:"bottom"}}),t.ph(e,r.SUBTITLE,[56,392,560,110],{words:{size:17,color:"accent1 lighter 65%",leading:1.3,plain:!0}})},section:e=>{t.ground(e,"tx2"),t.quarter(e,"br",960,540,320,"tx2 lighter 12%"),t.ph(e,r.BODY,[56,40,420,130],{name:"number",words:{size:110,color:"accent1 lighter 25%",face:"display",tracking:-3,leading:.9,plain:!0}}),t.ph(e,r.TITLE,[56,150,720,230],{words:{size:50,color:"bg1",face:"display",tracking:-1,leading:1,anchor:"bottom"}}),t.ph(e,r.BODY,[56,400,600,90],{words:{size:18,color:"bg2",plain:!0}})},captioned:{title:[56,28,740,84],object:[344,160,560,324],caption:[56,160,256,324],titleWords:{size:28,color:"bg1",face:"display",leading:1.02,anchor:"bottom"},captionWords:{size:15,color:"tx1 lighter 20%"}},blank:()=>{}})};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{PP_PLACEHOLDER as o}from"../enums.js";import{styleMaster as h}from"./layouts.js";const r="dk2 darker 72%",b=[64,168,832,304],l="lt1 darker 14%",g="lt1 darker 38%";export const STAGE={name:"stage",purpose:"to inspire a room (keynotes, launches): dark, a soft light of the accent, very large type",fonts:{major:"Inter",minor:"Inter",system:{major:"Arial",minor:"Arial"}},dark:!0,blocks:{tile:"rule",rule:{paint:"accent1",width:2,stub:!0},radius:10,figure:{face:"display",weight:700,paint:"text",scale:1.2},heading:{face:"display",weight:700},label:{caps:!1,tracking:0,weight:500},icon:"plain",callout:"outline",tag:"outline",marker:"dot",band:"line",displayWidth:1.02,textWidth:1.08},chart:{file:{size:13,gap_width:50,value_axis:{gridline_color:"lt1 darker 78%",line_color:"lt1 darker 70%"},category_axis:{line_color:"lt1 darker 70%"}},series:["accent1 lighter 30%","lt1 darker 45%","accent2 lighter 30%","accent3 lighter 30%"],lineWidth:3.5,waterfall:{increase:"accent1 lighter 30%",decrease:"#F28B82",total:"lt1 darker 30%"}},master:t=>h(t,{name:"AllyHub Stage",background:r,dark:!0,title:{box:[64,44,832,104],words:{size:34,bold:!0,color:"lt1",face:"display",tracking:-1,leading:1,anchor:"top"}},body:{words:{size:22,color:l,leading:1.25,face:"text"},level2:{size:18,color:g,leading:1.25},bullet:"•",bullet2:"–",bulletColor:"accent1 lighter 30%",indent:20},grid:{body:b,gap:32},footer:{footer:[64,490,720,26],date:[560,490,280,26],number:[836,490,60,26],words:{size:10,color:g}},heading:{size:22,bold:!0,color:"lt1",face:"display"},content:(e,c,i)=>{const n=i==="Title Only"||i==="Title and Content";t.glow(e,n?[520,-420,900,760]:[480,-380,960,760],"accent1",n?.32:.42,r);for(const a of c)a.role==="picture"&&t.rect(e,a.box,"dk2 darker 45%",{radius:10,line:"dk2 lighter 10%",width:.75});i==="Comparison"&&c.forEach((a,p)=>{const[d,s,u]=a.box;t.line(e,d,s+44,d+u,s+44,p===0?"lt1 darker 60%":"accent1 lighter 25%",1)})},cover:e=>{t.ground(e,r),t.glow(e,[-360,220,1300,800],"accent1",.62,r),t.ph(e,o.CENTER_TITLE,[64,112,760,220],{words:{size:64,bold:!0,color:"lt1",face:"display",tracking:-2,leading:.98,anchor:"bottom"}}),t.ph(e,o.SUBTITLE,[64,348,640,100],{words:{size:18,color:l,leading:1.35,plain:!0}})},section:e=>{t.ground(e,r),t.glow(e,[-460,-170,900,880],"accent1",.5,r),t.ph(e,o.BODY,[64,112,300,26],{name:"number",words:{size:15,bold:!0,color:"accent1 lighter 45%",tracking:1,plain:!0}}),t.ph(e,o.TITLE,[64,150,780,190],{words:{size:52,bold:!0,color:"lt1",face:"display",tracking:-1.5,leading:1,anchor:"bottom"}}),t.ph(e,o.BODY,[64,356,700,80],{words:{size:20,color:l,plain:!0}})},captioned:{title:[64,64,300,160],object:[396,64,500,408],caption:[64,240,300,232],titleWords:{size:28,bold:!0,color:"lt1",face:"display",leading:1.02},captionWords:{size:15,color:l}}})};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{PP_PLACEHOLDER as n}from"../enums.js";import{styleMaster as h}from"./layouts.js";const p="bg1 darker 5%",b=16,u=[40,110,880,376],m=16;function f(t,o,[e,a,i,r]){const c=Math.min(i,r)*.62,g=e+i*.58,l=a+r*.56;t.ellipse(o,[g-c/2,l-c/2,c,c],"accent1 lighter 22%");const s=c*.62;t.quarter(o,"br",e+i-22,a+r-22,s,"accent1 darker 25%"),t.ellipse(o,[e+28,a+28,22,22],"bg1")}export const TILES={name:"tiles",purpose:"a team's update, plan or review: grey canvas, white rounded tiles, icons on chips",fonts:{major:"Plus Jakarta Sans",minor:"Plus Jakarta Sans",system:{major:"Arial",minor:"Arial"}},blocks:{tile:"well",ground:"surface",radius:b,figure:{face:"display",weight:700,paint:"text",scale:1},heading:{face:"display",weight:700},label:{caps:!1,tracking:0,weight:600},icon:"chip",callout:"tint",tag:"pill",marker:"dot",band:"solid",displayWidth:1.04,textWidth:1.06},chart:{file:{size:11,gap_width:60,value_axis:{gridline_color:"tx1 lighter 88%"}},series:["accent1","accent2","accent3","accent4","accent5"],lineWidth:2.5,waterfall:{increase:"#2E7D4F",decrease:"#B3362C",total:"tx2"}},master:t=>{const o=(e,a,i="bg1")=>t.rect(e,a,i,{radius:b});return h(t,{name:"AllyHub Tiles",background:p,title:{box:[40,28,880,66],words:{size:26,bold:!0,color:"tx1",face:"display",tracking:-.3,leading:.98,anchor:"bottom"}},body:{words:{size:16,color:"tx1 lighter 15%",leading:1.2,face:"text"},level2:{size:14,color:"tx1 lighter 40%",leading:1.2},bullet:"•",bullet2:"–",bulletColor:"accent1",indent:18},grid:{body:u,gap:m,inset:20},footer:{footer:[40,492,760,26],date:[620,492,220,26],number:[856,492,64,26],words:{size:9,color:"tx1 lighter 45%"},numberWords:{bold:!0}},heading:{size:18,bold:!0,color:"tx1",face:"display"},content:(e,a,i)=>{i==="Title Only"&&o(e,u);for(const r of a)if(o(e,r.box,r.role==="caption"||r.role==="picture"?"bg2":"bg1"),r.role==="picture"){const[c,g,l,s]=r.box,d=Math.min(l,s)*.5;t.ellipse(e,[c+l/2-d/2,g+s/2-d/2,d,d],"bg2 darker 7%")}},cover:e=>{t.ground(e,p),o(e,[40,40,600,460],"tx2"),t.ellipse(e,[76,76,14,14],"accent1 lighter 30%"),t.ph(e,n.CENTER_TITLE,[76,120,528,340],{words:{size:46,bold:!0,color:"bg1",face:"display",tracking:-1,leading:.95,anchor:"bottom"}}),o(e,[656,40,264,236],"accent1"),f(t,e,[656,40,264,236]),o(e,[656,292,264,208],"bg1"),t.ph(e,n.SUBTITLE,[680,316,216,160],{words:{size:14,color:"tx1",leading:1.3,plain:!0,anchor:"bottom"}})},section:e=>{t.ground(e,p),o(e,[40,40,300,460],"accent1"),t.quarter(e,"tr",316,64,120,"accent1 lighter 22%"),t.ph(e,n.BODY,[72,280,236,190],{name:"number",words:{size:120,bold:!0,color:"bg1",face:"display",tracking:-3,leading:.9,anchor:"bottom",plain:!0}}),o(e,[356,40,564,460]),t.ph(e,n.TITLE,[396,80,484,260],{words:{size:40,bold:!0,color:"tx1",face:"display",tracking:-.8,leading:.98,anchor:"bottom"}}),t.ph(e,n.BODY,[396,356,484,110],{words:{size:16,color:"tx1 lighter 35%",plain:!0}})},captioned:{title:[40,28,880,66],object:[40,110,576,376],caption:[632,110,288,376],titleWords:{size:26,bold:!0,face:"display",anchor:"bottom"},captionWords:{size:14,color:"tx2"}}})}};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
export const DECK_FONTS={major:"Arial",minor:"Arial",major_east_asian:"Microsoft YaHei",minor_east_asian:"Microsoft YaHei",code:"Courier New"},STANDARD_FONTS=["Arial","Arial Black","Calibri","Cambria","Courier New","Georgia","Impact","Tahoma","Times New Roman","Trebuchet MS","Verdana","Microsoft YaHei","Microsoft JhengHei"],EAST_ASIAN_FONT=DECK_FONTS.minor_east_asian,OFFICE_THEME={name:"Office",colors:{dk1:"#000000",lt1:"#FFFFFF",dk2:"#44546A",lt2:"#E7E6E6",accent1:"#4472C4",accent2:"#ED7D31",accent3:"#A5A5A5",accent4:"#FFC000",accent5:"#5B9BD5",accent6:"#70AD47",hlink:"#0563C1",folHlink:"#954F72"},fonts:{major:"Calibri Light",minor:"Calibri",major_east_asian:EAST_ASIAN_FONT,minor_east_asian:EAST_ASIAN_FONT,code:DECK_FONTS.code}};export function themeOfLook(
|
|
2
|
+
import{colorsOfTheme as a,themeColorsNamed as c,themeTitle as t}from"@allyhub/formats";export const DECK_FONTS={major:"Arial",minor:"Arial",major_east_asian:"Microsoft YaHei",minor_east_asian:"Microsoft YaHei",code:"Courier New"},STANDARD_FONTS=["Arial","Arial Black","Calibri","Cambria","Courier New","Georgia","Impact","Tahoma","Times New Roman","Trebuchet MS","Verdana","Microsoft YaHei","Microsoft JhengHei"],EAST_ASIAN_FONT=DECK_FONTS.minor_east_asian,OFFICE_THEME={name:"Office",colors:{dk1:"#000000",lt1:"#FFFFFF",dk2:"#44546A",lt2:"#E7E6E6",accent1:"#4472C4",accent2:"#ED7D31",accent3:"#A5A5A5",accent4:"#FFC000",accent5:"#5B9BD5",accent6:"#70AD47",hlink:"#0563C1",folHlink:"#954F72"},fonts:{major:"Calibri Light",minor:"Calibri",major_east_asian:EAST_ASIAN_FONT,minor_east_asian:EAST_ASIAN_FONT,code:DECK_FONTS.code}};export function themeOfLook(e,r){return r!==void 0?{name:t(r),colors:{...a(r),dk1:e.color.fg,lt1:e.color.bg,lt2:e.color.surface,accent1:e.color.accent},fonts:{...DECK_FONTS}}:{name:e.name??"look",colors:{...OFFICE_THEME.colors,dk1:e.color.fg,lt1:e.color.bg,dk2:e.color.muted,lt2:e.color.surface,accent1:e.color.accent},fonts:{...DECK_FONTS}}}export function themeOver(e,r){if(!r)return e;const o=r.name===void 0?void 0:c(r.name);return{name:r.name??e.name,colors:{...e.colors,...o,...r.colors},fonts:{...e.fonts,...r.fonts}}}export const fontFace=e=>(e.split(",")[0]??e).trim().replace(/^["']|["']$/gu,"").replace(/ Variable$/u,"");
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
class o extends Number{get emu(){return this.valueOf()}get inches(){return this.valueOf()/EMU_PER_INCH}get cm(){return this.valueOf()/EMU_PER_CM}get mm(){return this.valueOf()/EMU_PER_MM}get pt(){return this.valueOf()/EMU_PER_PT}get centipoints(){return Math.trunc(this.valueOf()/EMU_PER_CENTIPOINT)}get twips(){return Math.trunc(this.valueOf()/(EMU_PER_PT/20))}}const r=new Map;export function length(t){const n=Math.trunc(t);let e=r.get(n);return e||(e=new o(n),r.set(n,e)),e}export const lengthOr=t=>t===void 0?void 0:length(t),held=t=>t instanceof Number||t instanceof String?t.valueOf():t,LENGTH_UNITS={Emu:t=>length(t),Inches:t=>length(t*EMU_PER_INCH),Pt:t=>length(t*EMU_PER_PT),Cm:t=>length(t*EMU_PER_CM),Mm:t=>length(t*EMU_PER_MM),Centipoints:t=>length(t*EMU_PER_CENTIPOINT)},EMU_PER_INCH=914400,EMU_PER_PT=12700,EMU_PER_CM=36e4,EMU_PER_MM=36e3,EMU_PER_CENTIPOINT=127,Emu=t=>Math.trunc(t),Inches=t=>Math.trunc(t*EMU_PER_INCH),Pt=t=>Math.trunc(t*EMU_PER_PT),Cm=t=>Math.trunc(t*EMU_PER_CM),Mm=t=>Math.trunc(t*EMU_PER_MM),Centipoints=t=>Math.trunc(t*EMU_PER_CENTIPOINT),toPt=t=>Math.round(t/EMU_PER_PT*100)/100,SLIDE_SIZES={"16:9":[Emu(12192e3),Emu(6858e3)],"16:10":[Emu(9144e3),Emu(5715e3)],"4:3":[Emu(9144e3),Emu(6858e3)],a4:[Mm(297),Mm(210)],"a4-portrait":[Mm(210),Mm(297)],letter:[Inches(11),Inches(8.5)],"letter-portrait":[Inches(8.5),Inches(11)]};
|
|
2
|
+
class o extends Number{get emu(){return this.valueOf()}get inches(){return this.valueOf()/EMU_PER_INCH}get cm(){return this.valueOf()/EMU_PER_CM}get mm(){return this.valueOf()/EMU_PER_MM}get pt(){return this.valueOf()/EMU_PER_PT}get centipoints(){return Math.trunc(this.valueOf()/EMU_PER_CENTIPOINT)}get twips(){return Math.trunc(this.valueOf()/(EMU_PER_PT/20))}}const r=new Map;export function length(t){const n=Math.trunc(t);let e=r.get(n);return e||(e=new o(n),r.set(n,e)),e}export const lengthOr=t=>t===void 0?void 0:length(t),held=t=>t instanceof Number||t instanceof String?t.valueOf():t,LENGTH_UNITS={Emu:t=>length(t),Inches:t=>length(t*EMU_PER_INCH),Pt:t=>length(t*EMU_PER_PT),Cm:t=>length(t*EMU_PER_CM),Mm:t=>length(t*EMU_PER_MM),Centipoints:t=>length(t*EMU_PER_CENTIPOINT)},EMU_PER_INCH=914400,EMU_PER_PT=12700,EMU_PER_CM=36e4,EMU_PER_MM=36e3,EMU_PER_CENTIPOINT=127,Emu=t=>Math.trunc(t),Inches=t=>Math.trunc(t*EMU_PER_INCH),Pt=t=>Math.trunc(t*EMU_PER_PT),Cm=t=>Math.trunc(t*EMU_PER_CM),Mm=t=>Math.trunc(t*EMU_PER_MM),Centipoints=t=>Math.trunc(t*EMU_PER_CENTIPOINT),toPt=t=>Math.round(t/EMU_PER_PT*100)/100||0,SLIDE_SIZES={"16:9":[Emu(12192e3),Emu(6858e3)],"16:10":[Emu(9144e3),Emu(5715e3)],"4:3":[Emu(9144e3),Emu(6858e3)],a4:[Mm(297),Mm(210)],"a4-portrait":[Mm(210),Mm(297)],letter:[Inches(11),Inches(8.5)],"letter-portrait":[Inches(8.5),Inches(11)]};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{problem as
|
|
2
|
+
import{STYLE_FACES as m}from"@allyhub/stage-page";import{problem as f}from"@allyhub/diagnostics";import{STANDARD_FONTS as $,deckFacts as x}from"@allyhub/slides-core";import{cutThroughout as w}from"@allyhub/video-core";import{generatedPagedFact as b,matrixFacts as k,mismatchFacts as g}from"@allyhub/video-measure";export function offSlideProblems(d,i){const a=d.deck;if(!a)return[];const n=s=>Math.round(s/a.pxPerPt*10)/10,c=l(a);return w(d).flatMap(s=>{if(c.has(`${s.part}/${s.text.layer}`))return[];const p=`"${s.text.text.length>40?`${s.text.text.slice(0,40)}…`:s.text.text}"`;return f("AK-L002",`Text goes off the slide: the slide's edge cuts ${p} of ${s.text.layer} on slide ${s.part} at every build that shows it; its letters reach ${s.worst.edges.map(t=>`${String(n(t.px))} pt past the ${t.side} edge`).join(" and ")} (${String(Math.round(s.worst.share*100))}% of them outside). allyhub inspect --kind text-off-slide has it.`,{piece:i.piece,output:i.output,combo:i.combo,format:i.format,part:s.part,level:"error"})})}function l(d){return new Set(d.slides.flatMap(i=>i.shapes.filter(a=>a.decorative===!0).map(a=>`${i.slide}/${a.name}`)))}export function collisionProblems(d,i,a){const n=d.deck;if(!n)return[];const c=l(n),s={piece:a.piece,output:a.output,combo:a.combo,format:a.format},p=new Set,t=[];for(const r of i){const o=r.part;if(o!==void 0){if(r.kind==="text-over-text"){const e=r.data;if(e.decorative!==void 0)continue;const h=`L007 ${o} ${[e.a,e.b].sort().join(" ")}`;if(p.has(h))continue;p.add(h),t.push(f("AK-L007",`Text over text: the words of ${e.a} and ${e.b} on slide ${o} are drawn over each other (${String(e.area)} square points of their lines); a shape marked \`decorative: true\` is not reported. allyhub inspect --kind text-over-text has it.`,{...s,part:o}))}else if(r.kind==="text-across-shape"){const e=r.data;if(e.decorative!==void 0)continue;const h=`L009 ${o} ${e.text} ${e.shape}`;if(p.has(h))continue;p.add(h),t.push(f("AK-L009",`Text across a shape: ${String(Math.round(e.share*100))}% of the words of ${e.text} on slide ${o} are over ${e.shape}${e.level==="slide"?"":` (the ${e.level}'s)`}, the rest beside it; a shape marked \`decorative: true\` is not reported. allyhub inspect --kind text-across-shape has it.`,{...s,part:o}))}else if(r.kind==="text-overflow"){const e=r.data;if(c.has(`${o}/${e.shape}`))continue;const h=`L008 ${o} ${e.shape}`;if(p.has(h))continue;p.add(h),t.push(f("AK-L008",`Text past its box: ${String(e.past)} of the ${String(e.lines)} lines of ${e.shape} on slide ${o} reach ${e.edges.map(u=>`${String(u.pt)} pt past its ${u.side}`).join(" and ")}. allyhub inspect --kind text-overflow has it.`,{...s,part:o}))}}}return t}export function deckFontProblems(d,i){const a=new Set($);return(d.deck?.fonts??[]).filter(n=>n.drawn===!1).map(n=>f("AK-L006",a.has(n.name)?`"${n.name}" (the deck's ${n.where==="theme"?"theme":"text"}) is not a font the stage has: its text is drawn in another font here; every PowerPoint, Keynote and Google Slides has it. The stage draws a font whose files allyhub.config.ts \`fonts\` names.`:`"${n.name}" (the deck's ${n.where==="theme"?"theme":"text"}) has no file in the project: its text is drawn in another font here, and the PowerPoint file cannot carry it, so it shows another font wherever it is opened. The stage draws a font whose files allyhub.config.ts \`fonts\` names, and ${m.map(c=>c.family).join(", ")}, which the PowerPoint file carries.`,{piece:i.piece,output:i.output,combo:i.combo,format:i.format}))}export async function checkDeck(d){const{piece:i,prepared:a}=d,n=[...k(i)],c=await d.versions({layout:async(t,r,o)=>{const e=await o.layout();if(r.problems.push(...offSlideProblems(e,o.target)),r.problems.push(...deckFontProblems(e,o.target)),e.deck){const h=x(e.deck,{width:e.width,height:e.height},{piece:o.target.piece,output:o.target.output,combo:o.target.combo,format:o.target.format});r.facts.push(...h),r.problems.push(...collisionProblems(e,h,o.target))}}}),s=[...c.problems];n.push(...c.facts);for(const t of c.loaded){const r=b(t,a.media);r&&n.push(r)}n.push(...g({piece:i.id},c.media,a.media));const p=c.loaded.map(t=>({piece:t.piece,output:t.output,combo:t.combo,...t.id===void 0?{}:{id:t.id},format:t.format,duration:t.timeline.duration,media:[...new Set((t.reads?.media??[]).map(r=>r.path))].sort(),speaks:(t.timeline.audio.speech?.length??0)>0,estimated:!1}));return{problems:s,facts:n,wholes:p}}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{existsSync as
|
|
3
|
-
`)}}});const
|
|
2
|
+
import{existsSync as v}from"node:fs";import{mkdir as I,readFile as T,stat as O,writeFile as S}from"node:fs/promises";import{basename as y,dirname as z,join as c,posix as b,resolve as P}from"node:path";import{z as s}from"zod";import{ZIP_LIMITS as C,itemIdOf as D}from"@allyhub/formats";import{PROJECT_DIR as E,defineCliCommand as g,listFonts as F,listWork as R,projectRoot as L}from"@allyhub/build";import{CommandError as p,EXIT as f}from"@allyhub/protocol";import{CAPABILITIES as $}from"@allyhub/slides-core";import{groupReport as N}from"@allyhub/ooxml";import{importDeck as q,nameOf as A,readPptx as M}from"@allyhub/slides-pptx";export const slidesCapabilities=g({input:s.strictObject({}),output:s.looseObject({}),examples:["allyhub slides capabilities"],run:()=>Promise.resolve({value:{...$},text:JSON.stringify($,null,2)})});const U=s.string().transform(e=>e.replace(/^\/+/gu,"")).refine(e=>e.endsWith(".ts")&&!e.split("/").some(o=>o===""||o==="."||o===".."),{message:"a .ts file from the project's root, such as reviews/q3.ts"});export const slidesImport=g({input:s.strictObject({file:s.string().describe("The .pptx to make a deck of"),to:U.optional().describe("The deck's module, from the project's root (default <the file's name>.ts); its slides are <name>.yaml beside it, its script <name>.<lang>.yaml, its pictures and videos beside them under names no file there has"),maxUnzipped:s.number().positive().default(C.bytes/1024/1024).describe("The most MB the file may unzip to"),lang:s.string().regex(/^[a-z]{2,3}(-[a-z0-9]+)*$/u).default("en").describe("The language of its words: its script is <name>.<lang>.yaml"),dir:E}),positional:["file"],output:s.looseObject({}),examples:["allyhub slides import ~/Downloads/q3-review.pptx --to reviews/q3.ts","allyhub slides import 培训.pptx --to training/onboarding.ts --lang zh-cn"],run:async(e,o)=>{const n=await L(o.cwd,e.dir),a=P(o.cwd,e.file),x=await T(a).catch(()=>{throw new p("not-found",`There is no file ${a}.`,{exit:f.notFound})}),l=e.to??`${A(y(a).replace(/\.pptx$/iu,""),new Set,"deck")}.ts`,h=b.dirname(l),r=i=>h==="."?i:`${h}/${i}`;let t;try{t=q(M(new Uint8Array(x),{bytes:e.maxUnzipped*1024*1024}),{lang:e.lang,source:y(a),name:b.basename(l,".ts"),taken:i=>v(c(n,r(i)))})}catch(i){throw new p("bad-file",`${a} is not a PowerPoint file this can read: ${i.message}`,{exit:f.usage})}const d=[...t.files.keys()].map(r);for(const i of d)if(await O(c(n,i)).catch(()=>{}))throw new p("place-taken",`${i} is already there.`,{exit:f.conflict,hint:"Name another module with --to."});for(const[i,j]of t.files){const w=c(n,r(i));await I(z(w),{recursive:!0}),await S(w,j,{flag:"wx"})}await R(n,{kind:"slides",file:l},o.kinds(n));const k=t.stylesheet===void 0?void 0:await F(n,r(t.stylesheet)),m=D(l),u=N(t.report);return{value:{id:m,files:d,report:t.report,skipped:Object.fromEntries(t.reasons)},text:[`Made ${d.join(", ")}; listed in allyhub.yaml as ${m}.`,...t.stylesheet===void 0?[]:[k===!0?`The fonts the file carried are in ${r(t.stylesheet)}, listed in allyhub.config.ts's fonts.`:`The fonts the file carried are in ${r(t.stylesheet)}: add "./${r(t.stylesheet)}" to allyhub.config's fonts to draw and export them.`],...u.length>0?[`Not carried over as it is (${String(t.report.length)}, grouped; all with --json):`,...u.map(_)]:[],`allyhub check, then allyhub frames ${m}, to see it.`].join(`
|
|
3
|
+
`)}}});const W={unread:"not read",extension:"an extension not read",part:"a part not read","cannot-hold":"cannot hold",approximated:"approximated",missing:"missing"};function _(e){const o=e.where.length>3?`${e.where.slice(0,3).join("; ")} and ${String(e.where.length-3)} more`:e.where.join("; ");return` ${W[e.kind]}: ${e.what}${e.detail===void 0?"":` (${e.detail})`}${e.count>1?` ×${String(e.count)}`:""} at ${o}`}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{readFile as x}from"node:fs/promises";import{dirname as M,isAbsolute as
|
|
2
|
+
import{readFile as x}from"node:fs/promises";import{dirname as M,isAbsolute as F,join as O,resolve as N}from"node:path";import{fontStyles as j}from"@allyhub/build";import{styleFontSheets as _}from"@allyhub/stage-page";import{STANDARD_FONTS as $,fontFace as A}from"@allyhub/slides-core";import{fontInfo as k,refusedEmbedding as v}from"@allyhub/slides-pptx";import{decompress as C}from"wawoff2";const m=(n,e)=>new RegExp(`${e}\\s*:\\s*([^;]+)`,"iu").exec(n)?.[1]?.trim();export function facesOf(n,e){return[...n.matchAll(/@font-face\s*\{([^}]*)\}/giu)].flatMap(s=>{const o=s[1]??"",f=m(o,"font-family")?.replace(/^["']|["']$/gu,""),a=/url\(\s*["']?([^"')]+)["']?\s*\)/iu.exec(o)?.[1];if(f===void 0||a===void 0)return[];const r=m(o,"font-weight")??"400";return[{family:f,italic:/italic|oblique/iu.test(m(o,"font-style")??""),weight:r==="bold"?700:Number.parseInt(r,10)||400,file:F(a)?a:N(e,a.split(/[?#]/u)[0]??a),range:(m(o,"unicode-range")??"").split(",").flatMap(t=>{const i=/U\+([0-9A-F?]+)(?:-([0-9A-F]+))?/iu.exec(t.trim());if(!i?.[1])return[];const c=Number.parseInt(i[1].replaceAll("?","0"),16),p=i[2]?Number.parseInt(i[2],16):Number.parseInt(i[1].replaceAll("?","F"),16);return[[c,p]]})}]})}const g=(n,e)=>n.range.some(([s,o])=>s<=e&&e<=o);function d(n,e,s,o){const f=n.filter(t=>t.italic===e&&t.weight>=o),a=Math.min(...f.map(t=>Math.abs(t.weight-s))),r=f.filter(t=>Math.abs(t.weight-s)===a);return r.find(t=>t.range.length===0||g(t,65))??r[0]}async function D(n){const e=new Uint8Array(await x(n)),s=String.fromCharCode(...e.subarray(0,4));if(s==="wOF2")return(await C(e)).slice();if(s!=="wOFF")return e}const S=n=>[...n.text?[n.text]:[],...n.table?.rows.flatMap(e=>e.cells.map(s=>s.text))??[]];function E(n){const e=new Set;for(const s of n.slides)for(const o of s.shapes)for(const f of S(o))for(const a of f.paragraphs)for(const r of a.runs)for(const t of r.text)e.add(t.codePointAt(0)??0);for(const s of n.slides)for(const{chart:o}of s.shapes)if(o)for(const f of[o.title??"",...o.categories,...o.series.map(a=>a.name),"0123456789.,-%"].join(""))e.add(f.codePointAt(0)??0);return e}function P(n){const e=n.theme.fonts,s=new Set([e.major,e.minor,e.major_east_asian,e.minor_east_asian].map(A)),o=f=>{f!==void 0&&!f.startsWith("+")&&s.add(A(f))};for(const f of n.slides)for(const a of f.shapes)for(const r of S(a)){for(const t of r.style.levels)o(t.font.name);for(const t of r.paragraphs){o(t.font?.name);for(const i of t.runs)o(i.font?.name)}}return s}export async function deckFonts(n,e,s){const o=[];for(const t of[...j(e,s).styles,..._()]){const i=F(t)?t:O(e,t),c=await x(i,"utf8").catch(()=>"");o.push(...facesOf(c,M(i)))}const f=new Set($),a=E(n),r={fonts:[],left:[]};for(const t of P(n)){if(f.has(t))continue;const i=o.filter(l=>l.family===t);if(i.length===0){r.left.push({font:t,why:"the project has no file of it"});continue}const c={typeface:t},p=[["regular",d(i,!1,400,0)],["bold",d(i,!1,700,600)],["italic",d(i,!0,400,0)],["boldItalic",d(i,!0,700,600)]];for(const[l,u]of p){if(!u)continue;const h=await D(u.file).catch(()=>{}),y=h&&k(h);if(!h||!y){r.left.push({font:t,why:`${u.file} is not a font this reads`});continue}const b=v(y);b!==void 0?r.left.push({font:t,why:b}):c[l]=h}(c.regular??c.bold??c.italic??c.boldItalic)&&r.fonts.push(c);const I=p.flatMap(([,l])=>l??[]),w=[...a].filter(l=>i.some(u=>g(u,l))&&!I.some(u=>u.range.length===0||g(u,l)));w.length>0&&r.left.push({font:t,why:`${String(w.length)} of the deck's characters are in slices of its files that do not go in`})}return r}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{join as
|
|
2
|
+
import{join as m}from"node:path";import{defineProjectTool as d,projectTheme as p,sourceOf as u}from"@allyhub/build";import{LOCALE_MARK as O}from"@allyhub/formats";import{CLEAN_LOOK as k,looksOf as g,messagePrefix as w}from"@allyhub/piece";import{SNAPSHOT_TREE as E}from"@allyhub/protocol";import{themeOfLook as h}from"@allyhub/slides-core";import{fontFaces as L}from"./font-faces.js";import{SLIDES_TOOLS as f}from"./tools.js";import{deckOf as l}from"./deck-info.js";const y={"slides/deck":d(f["slides/deck"],async({item:r},t)=>{const{prepared:i,piece:o}=await t.target(r),e=l(o),{script:a}=o;if(!e||a===void 0)throw new Error(`${r} is a video, not a deck.`);const n=p(i.root),s=g(i.config,n).looks;return{piece:o.id,file:e.slides,script:a,prefix:w(o.id),layouts:e.layouts,components:e.components,generators:e.generators,code:e.code,data:e.data,theme:h(s?.clean??k,n),scripts:Object.fromEntries(i.messages.locales.map(c=>[c,a.replace(O,c)]))}}),"slides/fonts":d(f["slides/fonts"],async({item:r},t)=>{const{prepared:i,piece:o}=await t.target(r);if(!l(o))throw new Error(`${r} is a video, not a deck.`);const e=[...t.stageStyles()],a=u(i,o).styles??[],n=[...e,...a.map(s=>({file:m(t.buildDir,s.slice(E.build.length)),url:t.served(s)}))];return{faces:(await Promise.all(n.map(s=>L(s)))).flat()}})};export default y;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allyhub/slides-extension",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./tools": {
|
|
@@ -143,6 +143,21 @@
|
|
|
143
143
|
"code": "AK-K003",
|
|
144
144
|
"level": "error",
|
|
145
145
|
"rule": "The output has no parts"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"code": "AK-L007",
|
|
149
|
+
"level": "warn",
|
|
150
|
+
"rule": "A deck: two shapes' words drawn over each other, neither marked decorative"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"code": "AK-L008",
|
|
154
|
+
"level": "warn",
|
|
155
|
+
"rule": "A deck: a shape's words past its box, not marked decorative"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"code": "AK-L009",
|
|
159
|
+
"level": "warn",
|
|
160
|
+
"rule": "A deck: a shape's words partly over a filled shape or a picture, across its edge, neither marked decorative"
|
|
146
161
|
}
|
|
147
162
|
],
|
|
148
163
|
"facts": [
|
|
@@ -162,6 +177,14 @@
|
|
|
162
177
|
"kind": "shape-overlap",
|
|
163
178
|
"about": "A deck: two shapes of a slide over each other (not a master's or a layout's own under another), and by how much"
|
|
164
179
|
},
|
|
180
|
+
{
|
|
181
|
+
"kind": "text-over-text",
|
|
182
|
+
"about": "A deck: two shapes' words over each other on a slide, their lines' glyphs meeting, and by how much; which is marked decorative"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
"kind": "text-across-shape",
|
|
186
|
+
"about": "A deck: a shape's words partly over a filled shape or a picture (the slide's, its layout's or its master's), across its edge: the share of their lines over it; which is marked decorative"
|
|
187
|
+
},
|
|
165
188
|
{
|
|
166
189
|
"kind": "near-alignment",
|
|
167
190
|
"about": "A deck: edges and centres of two shapes, or of a shape and the slide, nearly in line and not: each line, and the x or y that aligns them"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{EMU_PER_PT as
|
|
2
|
+
import{EMU_PER_PT as r,embeddedChartExXml as m,embeddedChartXml as o}from"@allyhub/slides-core";export{chartBook}from"@allyhub/slides-core";export const chartXml=(e,t,h)=>o(e,{width:t.width/r,height:t.height/r},h,{frameless:!0}),chartExXml=(e,t)=>m(e,t,{frameless:!0});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
const O=t=>{let e="";for(let n=0;n+1<t.length;n+=2)e+=String.fromCharCode((t[n]??0)<<8|(t[n+1]??0));return e},S=t=>{const e=new Uint8Array(t.length*2);for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);e[n*2]=s>>8,e[n*2+1]=s&255}return e};export function fontInfo(t){if(t.length<12)return;const e=new DataView(t.buffer,t.byteOffset,t.byteLength),n=e.getUint32(0),s=n===65536||n===1953658213;if(!s&&n!==1330926671)return;const u=new Map,l=e.getUint16(4);if(12+l*16>t.length)return;for(let h=0;h<l;h++){const U=12+h*16,b=String.fromCharCode(...t.subarray(U,U+4));u.set(b,{offset:e.getUint32(U+8),length:e.getUint32(U+12)})}const r=u.get("OS/2"),f=u.get("head"),a=u.get("name");if(!r||!f||!a||r.offset+78>t.length||f.offset+12>t.length)return;const i=h=>{const U=e.getUint16(a.offset+2),b=a.offset+e.getUint16(a.offset+4);let o="";for(let g=0;g<U;g++){const c=a.offset+6+g*12;if(e.getUint16(c+6)!==h)continue;const x=e.getUint16(c),w=b+e.getUint16(c+10),p=t.subarray(w,w+e.getUint16(c+8));if(x===3)return O(p);o===""&&(o=String.fromCharCode(...p))}return o},d=h=>e.getUint32(r.offset+h);return{family:i(16)||i(1),style:i(17)||i(2),name1:i(1),name2:i(2),version:i(5),fullName:i(4),fsType:e.getUint16(r.offset+8),panose:t.subarray(r.offset+32,r.offset+42),italic:(e.getUint16(r.offset+62)&1)===1,weight:e.getUint16(r.offset+4),unicodeRange:[d(42),d(46),d(50),d(54)],codePageRange:e.getUint16(r.offset)>=1&&r.length>=86?[d(78),d(82)]:[0,0],checkSumAdjustment:e.getUint32(f.offset+8),variable:u.has("fvar"),trueType:s}}export function refusedEmbedding(t){if((t.fsType&15)===2)return"its licence restricts embedding (fsType)";if((t.fsType&512)!==0)return"its licence embeds only bitmaps (fsType)";if(t.variable)return"it is a variable font; a static one embeds";if(!t.trueType)return"its outlines are not TrueType's"}function V(t){const e=new DataView(t.buffer,t.byteOffset,t.byteLength);let n=0;for(let l=0;l+4<=t.length;l+=4)n=n+e.getUint32(l)>>>0;let s=0;for(let l=t.length-t.length%4;l<t.length;l++)s=s<<8|(t[l]??0);const u=t.length%4;return u===0?n:n+(s<<(4-u)*8)>>>0}function v(t,e,n){const s=new DataView(t.buffer,t.byteOffset,t.byteLength),u=s.getUint16(4),l=Array.from({length:s.getUint16(2)},(o,g)=>{const c=6+g*12,x=u+s.getUint16(c+10);return{platform:s.getUint16(c),encoding:s.getUint16(c+2),language:s.getUint16(c+4),id:s.getUint16(c+6),bytes:t.subarray(x,x+s.getUint16(c+8))}}).filter(o=>![1,2,3,4,6,16,17,21,22].includes(o.id)),r=`${e} ${n}`,f=[[1,e],[2,n],[3,r],[4,r],[6,r.replace(/[^\x21-\x7e]|[[\]{}<>/%()]/gu,"")]].map(([o,g])=>({platform:3,encoding:1,language:1033,id:o,bytes:S(g)})),a=[...l,...f].sort((o,g)=>o.platform-g.platform||o.encoding-g.encoding||o.language-g.language||o.id-g.id),i=6+a.length*12,d=a.reduce((o,g)=>o+g.bytes.length,0),h=new Uint8Array(i+d),U=new DataView(h.buffer);U.setUint16(2,a.length),U.setUint16(4,i);let b=0;return a.forEach((o,g)=>{const c=6+g*12;U.setUint16(c,o.platform),U.setUint16(c+2,o.encoding),U.setUint16(c+4,o.language),U.setUint16(c+6,o.id),U.setUint16(c+8,o.bytes.length),U.setUint16(c+10,b),h.set(o.bytes,i+b),b+=o.bytes.length}),h}export function asFace(t,e,n){const s=fontInfo(t);if(!s)return t;const u=n.includes("Bold"),l=n.includes("Italic"),r=new DataView(t.buffer,t.byteOffset,t.byteLength),f=r.getUint16(4),a=Array.from({length:f},(y,A)=>{const m=12+A*16,D=r.getUint32(m+8);return{tag:String.fromCharCode(...t.subarray(m,m+4)),bytes:t.slice(D,D+r.getUint32(m+12))}}),i=a.find(y=>y.tag==="name"),d=a.find(y=>y.tag==="OS/2"),h=a.find(y=>y.tag==="head");if(!i||!d||!h||s.name1===e&&s.name2===n&&s.weight===(u?700:400)&&s.italic===l)return t;i.bytes=v(i.bytes,e,n);const b=new DataView(d.bytes.buffer);b.setUint16(4,u?700:400);const o=b.getUint16(62)&-98;b.setUint16(62,o|(l?1:0)|(u?32:0)|(u||l?0:64));const g=new DataView(h.bytes.buffer);g.setUint16(44,g.getUint16(44)&-4|(u?1:0)|(l?2:0)),g.setUint32(8,0);const c=12+f*16,x=a.reduce((y,A)=>y+(A.bytes.length+3&-4),c),w=new Uint8Array(x),p=new DataView(w.buffer);w.set(t.subarray(0,12));let
|
|
2
|
+
const O=t=>{let e="";for(let n=0;n+1<t.length;n+=2)e+=String.fromCharCode((t[n]??0)<<8|(t[n+1]??0));return e},S=t=>{const e=new Uint8Array(t.length*2);for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);e[n*2]=s>>8,e[n*2+1]=s&255}return e};export function fontInfo(t){if(t.length<12)return;const e=new DataView(t.buffer,t.byteOffset,t.byteLength),n=e.getUint32(0),s=n===65536||n===1953658213;if(!s&&n!==1330926671)return;const u=new Map,l=e.getUint16(4);if(12+l*16>t.length)return;for(let h=0;h<l;h++){const U=12+h*16,b=String.fromCharCode(...t.subarray(U,U+4));u.set(b,{offset:e.getUint32(U+8),length:e.getUint32(U+12)})}const r=u.get("OS/2"),f=u.get("head"),a=u.get("name");if(!r||!f||!a||r.offset+78>t.length||f.offset+12>t.length)return;const i=h=>{const U=e.getUint16(a.offset+2),b=a.offset+e.getUint16(a.offset+4);let o="";for(let g=0;g<U;g++){const c=a.offset+6+g*12;if(e.getUint16(c+6)!==h)continue;const x=e.getUint16(c),w=b+e.getUint16(c+10),p=t.subarray(w,w+e.getUint16(c+8));if(x===3)return O(p);o===""&&(o=String.fromCharCode(...p))}return o},d=h=>e.getUint32(r.offset+h);return{family:i(16)||i(1),style:i(17)||i(2),name1:i(1),name2:i(2),version:i(5),fullName:i(4),fsType:e.getUint16(r.offset+8),panose:t.subarray(r.offset+32,r.offset+42),familyClass:e.getInt16(r.offset+30),italic:(e.getUint16(r.offset+62)&1)===1,weight:e.getUint16(r.offset+4),unicodeRange:[d(42),d(46),d(50),d(54)],codePageRange:e.getUint16(r.offset)>=1&&r.length>=86?[d(78),d(82)]:[0,0],checkSumAdjustment:e.getUint32(f.offset+8),variable:u.has("fvar"),trueType:s}}export function refusedEmbedding(t){if((t.fsType&15)===2)return"its licence restricts embedding (fsType)";if((t.fsType&512)!==0)return"its licence embeds only bitmaps (fsType)";if(t.variable)return"it is a variable font; a static one embeds";if(!t.trueType)return"its outlines are not TrueType's"}function V(t){const e=new DataView(t.buffer,t.byteOffset,t.byteLength);let n=0;for(let l=0;l+4<=t.length;l+=4)n=n+e.getUint32(l)>>>0;let s=0;for(let l=t.length-t.length%4;l<t.length;l++)s=s<<8|(t[l]??0);const u=t.length%4;return u===0?n:n+(s<<(4-u)*8)>>>0}function v(t,e,n){const s=new DataView(t.buffer,t.byteOffset,t.byteLength),u=s.getUint16(4),l=Array.from({length:s.getUint16(2)},(o,g)=>{const c=6+g*12,x=u+s.getUint16(c+10);return{platform:s.getUint16(c),encoding:s.getUint16(c+2),language:s.getUint16(c+4),id:s.getUint16(c+6),bytes:t.subarray(x,x+s.getUint16(c+8))}}).filter(o=>![1,2,3,4,6,16,17,21,22].includes(o.id)),r=`${e} ${n}`,f=[[1,e],[2,n],[3,r],[4,r],[6,r.replace(/[^\x21-\x7e]|[[\]{}<>/%()]/gu,"")]].map(([o,g])=>({platform:3,encoding:1,language:1033,id:o,bytes:S(g)})),a=[...l,...f].sort((o,g)=>o.platform-g.platform||o.encoding-g.encoding||o.language-g.language||o.id-g.id),i=6+a.length*12,d=a.reduce((o,g)=>o+g.bytes.length,0),h=new Uint8Array(i+d),U=new DataView(h.buffer);U.setUint16(2,a.length),U.setUint16(4,i);let b=0;return a.forEach((o,g)=>{const c=6+g*12;U.setUint16(c,o.platform),U.setUint16(c+2,o.encoding),U.setUint16(c+4,o.language),U.setUint16(c+6,o.id),U.setUint16(c+8,o.bytes.length),U.setUint16(c+10,b),h.set(o.bytes,i+b),b+=o.bytes.length}),h}export function asFace(t,e,n){const s=fontInfo(t);if(!s)return t;const u=n.includes("Bold"),l=n.includes("Italic"),r=new DataView(t.buffer,t.byteOffset,t.byteLength),f=r.getUint16(4),a=Array.from({length:f},(y,A)=>{const m=12+A*16,D=r.getUint32(m+8);return{tag:String.fromCharCode(...t.subarray(m,m+4)),bytes:t.slice(D,D+r.getUint32(m+12))}}),i=a.find(y=>y.tag==="name"),d=a.find(y=>y.tag==="OS/2"),h=a.find(y=>y.tag==="head");if(!i||!d||!h||s.name1===e&&s.name2===n&&s.weight===(u?700:400)&&s.italic===l)return t;i.bytes=v(i.bytes,e,n);const b=new DataView(d.bytes.buffer);b.setUint16(4,u?700:400);const o=b.getUint16(62)&-98;b.setUint16(62,o|(l?1:0)|(u?32:0)|(u||l?0:64));const g=new DataView(h.bytes.buffer);g.setUint16(44,g.getUint16(44)&-4|(u?1:0)|(l?2:0)),g.setUint32(8,0);const c=12+f*16,x=a.reduce((y,A)=>y+(A.bytes.length+3&-4),c),w=new Uint8Array(x),p=new DataView(w.buffer);w.set(t.subarray(0,12));let C=c,T=0;return a.forEach((y,A)=>{const m=12+A*16;w.set(t.subarray(12+A*16,m+4),m),p.setUint32(m+4,V(y.bytes)),p.setUint32(m+8,C),p.setUint32(m+12,y.bytes.length),w.set(y.bytes,C),y===h&&(T=C),C+=y.bytes.length+3&-4}),p.setUint32(T+8,2981146554-V(w)>>>0),w}const E=t=>{const e=new Uint8Array(t.length*2);for(let n=0;n<t.length;n++){const s=t.charCodeAt(n);e[n*2]=s&255,e[n*2+1]=s>>8}return e};export function eotOf(t,e,n,s){const u=[n,s,e.version,`${n} ${s}`,""].map(E),l=80+u.reduce((i,d)=>i+4+d.length,0),r=new Uint8Array(l+t.length),f=new DataView(r.buffer);f.setUint32(0,r.length,!0),f.setUint32(4,t.length,!0),f.setUint32(8,131073,!0),f.setUint32(12,0,!0),r.set(e.panose,16),r[26]=1,r[27]=e.italic?1:0,f.setUint32(28,e.weight,!0),f.setUint16(32,e.fsType,!0),f.setUint16(34,20556,!0),e.unicodeRange.forEach((i,d)=>{f.setUint32(36+d*4,i,!0)}),e.codePageRange.forEach((i,d)=>{f.setUint32(52+d*4,i,!0)}),f.setUint32(60,e.checkSumAdjustment,!0);let a=80;for(const i of u)f.setUint16(a+2,i.length,!0),r.set(i,a+4),a+=4+i.length;return r.set(t,a),r}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
export function imageSize(h){const e=t=>h[t]??0,n=t=>e(t)<<8|e(t+1),d=t=>(n(t)<<16>>>0)+n(t+2);if(e(0)===137&&e(1)===80&&e(2)===78&&e(3)===71)return{width:d(16),height:d(20)};if(e(0)===71&&e(1)===73&&e(2)===70)return{width:e(6)|e(7)<<8,height:e(8)|e(9)<<8};if(e(0)===255&&e(1)===216){let t=2;for(;t+9<h.length;){if(e(t)!==255)return;const i=e(t+1),r=n(t+2);if(i>=192&&i<=207&&i!==196&&i!==200&&i!==204)return{width:n(t+7),height:n(t+5)};t+=2+r}}}export function fitCrop(h,e,n){const d={left:0,top:0,right:0,bottom:0};if(h.width<=0||h.height<=0||e.width<=0||e.height<=0)return d;const t=h.width/h.height,i=e.width/e.height,r=t>i;if(n==="fill"===r){const o=(1-i/t)/2;return{...d,left:o,right:o}}const u=(1-t/i)/2;return{...d,top:u,bottom:u}}export function svgSize(h){const e=new TextDecoder().decode(h.subarray(0,4096)),n=/<svg\b[^>]*>/iu.exec(e)?.[0];if(n===void 0)return;const d=/\bviewBox\s*=\s*["']\s*[-\d.]+[\s,]+[-\d.]+[\s,]+([\d.]+)[\s,]+([\d.]+)/iu.exec(n);if(d?.[1]!==void 0&&d[2]!==void 0)return{width:Number(d[1]),height:Number(d[2])};const t=/\bwidth\s*=\s*["']\s*([\d.]+)/iu.exec(n)?.[1],i=/\bheight\s*=\s*["']\s*([\d.]+)/iu.exec(n)?.[1];return t!==void 0&&i!==void 0?{width:Number(t),height:Number(i)}:void 0}
|