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,4 +1,4 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{mkdir as
|
|
3
|
-
`).slice(0,3).join(" ")}`,{}))}}const U=new Set;return{root:e,kinds:n.kinds,files:
|
|
4
|
-
`)),f}async function
|
|
2
|
+
import{mkdir as oe,readFile as ae,readdir as re,writeFile as ce}from"node:fs/promises";import{join as y}from"node:path";import{BAKE_DIR as q,CACHE_DIR as le,CONFIG_FILES as fe,ConfigSchema as F,TEXT_DIR as j,USE_FORMS as de,itemsOf as me,kindsUsed as ue,pointEntriesIn as he,WORK_FILE as h}from"@allyhub/formats";import{problem as p}from"@allyhub/diagnostics";import{looksOf as G,resolveDims as pe}from"@allyhub/piece";import{readData as ge}from"./data.js";import{dependenciesOf as we,listFiles as be}from"./files.js";import{projectTheme as V,readWork as ke}from"./work.js";import{behindIn as $e}from"./migrate.js";import{fontStyles as ye}from"./fonts.js";import{kindBuildOf as X}from"./kind-build.js";import{readMedia as xe}from"./media.js";import{readMessages as Se}from"./messages.js";import{MetaLoader as Oe}from"./meta.js";import{allyhubPlugin as je,mediaHref as z}from"./plugin.js";import{buildPluginModules as Me,stageAdditions as Ae}from"./build-plugins.js";import{checkImports as Ee,discover as ve,parse as Te}from"./scan.js";import{writeMessageTypes as De}from"./types.js";import{resolveUses as Fe}from"./uses.js";import{bundleForStage as Ke,loadUserVite as Ie}from"./vite.js";import{nodeStackPlace as Re}from"./places.js";export const inTime=(e,n)=>n.find(s=>s.id===e.kind)?.pages!==!0;export function itemProblem(e){switch(e.code){case"unknown-kind":return p("AK-M002",`${h} lists ${e.file} as a ${e.kind}, a kind no extension here contributes.`,{where:{file:h}});case"no-editor":return p("AK-M002",`${h} lists ${e.file} with no kind, and no editor here opens a file of its name. Name its kind, or take it out of the list.`,{where:{file:h}});case"missing":return p("AK-M002",`${h} lists ${e.file}, which is not in the project. Write it, or take it out of the list.`,{where:{file:h}});case"same-id":return p("AK-M003",`${h} lists ${e.files.join(" and ")}, one id (${e.id}) for two pieces, so only the first is shown: rename one, or list it once.`,{where:{file:h}})}}export function loadFailure(e,n,s){const a=s?`${n} (at ${s.file}:${String(s.line)}:${String(s.column)})`:n,f=/\b(window|document|navigator|self|HTMLElement|customElements) is not defined/u.test(n);return p("AK-R001",f?`${e} uses something at its top level that only exists in the browser (${a}). The top level of a piece module must load in Node: move it into the output's function, or import it inside a component.`:`Failed to load ${e}: ${a}`,{where:s?{file:s.file,line:s.line}:{file:e}})}export const issuesText=e=>e.issues.map(n=>`${n.path.map(String).join(".")||"(root)"}: ${n.message}`).join("; ");async function _e(e){return(await re(y(e,q)).catch(()=>[])).filter(s=>/^[0-9a-f]+\.[\w-]+\.bin$/u.test(s)).map(s=>`${q}/${s}`)}async function Pe(e,n,s){const a=o=>typeof s=="object"&&s!==null&&Object.hasOwn(s,o),f=[],i=new Set,l=new Set(ue(e,n));for(const o of e){if(!l.has(o)&&!(o.config??[]).some(a))continue;const r=await X(o)?.catch(()=>{});!r?.config||i.has(r)||(i.add(r),f.push(r.config))}return f}export async function prepare(e,n){const s=[],a=await be(e),f=await ke(e);for(const m of f.problems)s.push(p("AK-M002",m,{where:{file:h}}));if(a.includes(h)&&f.problems.length===0&&f.work.versions===void 0)s.push(p("AK-M002",`${h} records no versions (the format each kind's files are in), so its files are taken as each kind's first: allyhub migrate brings them to AllyHub's formats and records them, as Studio does when it opens the project.`,{where:{file:h}}));else for(const m of await $e(e,n.kinds))s.push(p("AK-M002",`The project's ${m.kind} files are in format ${String(m.at)}, and AllyHub's are in ${String(m.now)}: allyhub migrate brings them to it, as Studio does when it opens the project.`,{where:{file:h}}));const i=me(f.work,n.kinds,new Set(a));for(const m of i.problems)s.push(itemProblem(m));const l=await we(e),o=await xe(e,[...a,...await _e(e)]),r=await Ae(n.kinds,e,(m,w)=>{s.push(p("AK-R001",`The build plugins module ${m} did not load, so the stage's bundles go without it: ${w instanceof Error?w.message:String(w)}`,{}))}),b=new Oe({root:e,media:o,dependencies:[...l],user:!0,lent:{...r.lent},sdk:{...r.sdk},bound:{...r.bound},parts:{...r.parts},buildPlugins:Me(n.kinds)},n.metaTimeout);try{let m=F.parse({});const w=fe.find(t=>a.includes(t));if(w){const t=await b.request({type:"config",file:w});if(s.push(...t.problems),!t.ok)s.push(loadFailure(w,t.error??"",Re(t.stack,e)));else{const c=t.value??{},d=await Pe(n.kinds,i.items,c),u=new Set(d.flatMap(g=>Object.keys(g.shape??{}))),$=F.safeParse(Object.fromEntries(Object.entries(c).filter(([g])=>!u.has(g)||Object.hasOwn(F.shape,g)))),J=d.map(g=>g.safeParse(c)),W=[...$.success?[]:[issuesText($.error)],...J.flatMap(g=>g.success?[]:[issuesText(g.error)])];if($.success&&W.length===0){m=$.data;for(const g of J)g.success&&(m={...m,...g.data})}else s.push(p("AK-M001",`${w} is not valid: ${W.join("; ")}.`,{where:{file:w}}))}}const I=m.defaults?.format,R=typeof I=="string"?I:"16x9",M=ye(e,m);for(const t of M.missing)s.push(p("AK-A001",`allyhub.config's fonts name ${t}, which is not in the project or its packages.`,{where:{file:w??"allyhub.config.ts"}}));const x=await Se(e,a,{...m.locales?{locales:m.locales}:{},text:m.text??j});s.push(...x.problems);const Y=a.filter(t=>/\.(ts|tsx|js|jsx|mts|mjs)$/u.test(t)&&!t.endsWith(".d.ts")),A=new Map;for(const t of Y){const c=Te(t,await ae(y(e,t),"utf8"));A.set(t,c),s.push(...Ee(t,c,l,new Set(Object.keys(r.lent)),new Set(Object.keys(r.sdk))))}const _=[];for(const[t,c]of A){if(!ve(t,c).components)continue;const d=await b.request({type:"components",file:t});if(s.push(...d.problems),!!d.ok)for(const u of d.value??[])typeof u.name=="string"&&typeof u.export=="string"&&_.push({name:u.name,file:t,export:u.export,...typeof u.label=="string"||typeof u.label=="object"&&u.label!==null?{label:u.label}:{}})}const E=await Le(i.items,n.kinds,s),P=new Map,N=(t,c)=>({root:e,files:a,meta:b,media:o,messages:x,defaultFormat:R,config:m,lent:t,data:c,parsed:d=>A.get(d),items:i.items,claim:(d,u)=>{const $=P.get(d);return $===void 0&&P.set(d,u),$},contributionsTo:()=>[]}),L=(t,c)=>({...t,contributionsTo:d=>he(n.kinds,c.kind,d)}),k=[];let S={};const Z=N({},{}),v=new Map,T=new Map,B=(t,c)=>{v.set(t,[...v.get(t)??[],...c.files??[]]),c.uses&&c.uses.length>0&&T.set(t,[...T.get(t)??[],...c.uses])};for(const t of i.items){const c=await E.get(t)?.lend?.(t,L(Z,t));c&&(k.push(c),B(t,c),S={...S,...c.data})}const C={...await ge(e,a.filter(t=>!i.items.some(c=>c.entry===t)),m.text??j),...S},ee=N(S,C);for(const t of i.items){const c=await E.get(t)?.read?.(t,L(ee,t));c&&(k.push(c),B(t,c));const d=new Set([t.entry]);t.files=[{path:t.entry,role:"entry"},...(v.get(t)??[]).filter(u=>!d.has(u.path)&&!!d.add(u.path))]}for(const t of k)s.push(...t.problems??[]);const te=new Set(i.items.flatMap(t=>E.get(t)?.onStage?[t.kind]:[]));s.push(...Fe(i.items,n.kinds,T,{live:t=>te.has(t),lent:new Set(Object.keys(S))}));const se=k.flatMap(t=>t.piece?[t.piece]:[]),ne=k.flatMap(t=>t.doc?[t.doc]:[]),ie=k.flatMap(t=>t.sheet?[t.sheet]:[]),H=[...k.filter(t=>t.piece),...k.filter(t=>!t.piece)].flatMap(t=>t.stage?[t.stage]:[]),O=x.locales[0];await De(e,O===void 0?{}:x.messages[O]??{},O===void 0?void 0:x.files[O]);let D;if(n.buildDir&&H.length>0){const t=Object.fromEntries(await Promise.all(H.map(async d=>[d.name,await Ne(e,d)]))),c=await Ie(e);try{const d=await Ke({root:e,entries:t,outDir:n.buildDir,plugins:[je({root:e,media:o,dependencies:l,fonts:()=>M.styles,stageEntries:new Set(Object.values(t)),lent:r.lent,sdk:r.sdk,bound:r.bound,parts:r.parts}),...r.plugins],...c?{user:c}:{}}),u=await r.written(n.buildDir);D={dir:n.buildDir,chunks:d,beside:u}}catch(d){s.push(p("AK-R001",`The pieces could not be bundled for the stage: ${d.message.split(`
|
|
3
|
+
`).slice(0,3).join(" ")}`,{}))}}const U=new Set;return{root:e,kinds:n.kinds,files:a,items:i.items,config:m,defaultFormat:R,dependencies:[...l].sort(),messages:x,media:o,data:C,docs:ne,sheets:ie,pieces:se,components:_,fonts:M.styles,...D?{bundle:D}:{},problems:s.filter(t=>{const c=`${t.code}|${t.message}|${t.where?.file??""}|${String(t.where?.line??"")}`;return U.has(c)?!1:(U.add(c),!0)})}}finally{await b.close()}}export const BUILD_FOLDER="build/",stageName=e=>e.replaceAll("/","__"),stageId=e=>"components"in e?e.place:e.id;export function stageItem(e,n){return e.pieces.find(s=>s.id===n)??e.docs.find(s=>s.place===n&&s.components.length>0)}async function Ne(e,n){const s=(n.components??[]).filter(o=>o.item!==!0);if(s.length===0&&n.module!==void 0)return y(e,n.module);const a=y(e,le,"stage-entries");await oe(a,{recursive:!0});const f=y(a,`${n.name}.ts`),i=[...new Set(s.map(o=>o.module))],l=[`// The components ${n.of??n.module??n.name} shows by their module (generated by the build).`,...n.module===void 0?[]:[`export { default } from ${JSON.stringify(y(e,n.module))};`],...i.map((o,r)=>`import * as m${String(r)} from ${JSON.stringify(y(e,o))};`),"export const components = {",...s.map(o=>` ${JSON.stringify(o.of)}: m${String(i.indexOf(o.module))}[${JSON.stringify(o.name)}],`),"};",""];return await ce(f,l.join(`
|
|
4
|
+
`)),f}async function Le(e,n,s){const a=new Map,f=new Map;for(const i of e){if(!a.has(i.kind)){const o=n.find(r=>r.id===i.kind);a.set(i.kind,await X(o)?.catch(r=>{s.push(p("AK-R001",`The ${o?.extension??i.kind} extension's build module did not load, so its items are not read: ${r instanceof Error?r.message:String(r)}`,{}))}))}const l=a.get(i.kind);l&&f.set(i,l)}return f}function K(e,n){const s=[],a=new Set,f=new Set,i=l=>{if(f.has(l))return;f.add(l);const o=e.bundle?.chunks.chunks[l];if(o){l!==n&&s.push(`${BUILD_FOLDER}${l}`);for(const r of o.css)a.add(`${BUILD_FOLDER}${r}`);for(const r of o.imports)i(r)}};return i(n),{imports:s,styles:[...a]}}export function sourceOf(e,n){if("components"in n)return Ce(e,n);const s=n,a=BUILD_FOLDER,f=stageName(s.id),i=e.bundle?.chunks.entries[f];if(!i)throw new Error(`${s.id} was not bundled for the stage.`);const{imports:l,styles:o}=K(e,i.file);return{piece:s.id,file:s.file,module:`${a}${i.file}`,imports:l,styles:o,dims:s.dims,...s.matrix?{matrix:{space:s.matrix.space,rules:s.matrix.rules}}:{},format:s.format,locales:e.messages.locales,messages:e.messages.messages,anchors:e.messages.anchors,text:e.config.text??j,...s.script===void 0?{}:{script:s.script},media:Object.fromEntries(Object.entries(e.media).map(([r,b])=>[r,{...b,url:z(r)}])),data:e.data,kind:s.kind,...s.loads,...G(e.config,V(e.root)),pieces:Q(e,s.place)}}function Q(e,n){const s=new Map(e.items.map(i=>[i.id,i])),a=new Set,f=i=>{for(const l of s.get(i)?.uses??[])l.type!==de.live||a.has(l.item)||(a.add(l.item),f(l.item))};return f(n),Object.fromEntries(e.pieces.map(i=>{const l={file:i.file,dims:i.dims,format:i.format,...i.matrix?{matrix:{space:i.matrix.space,rules:i.matrix.rules}}:{}},o=e.bundle?.chunks.entries[stageName(i.id)];if(!a.has(i.place)||i.place===n||!o)return[i.id,l];const{imports:r,styles:b}=K(e,o.file);return[i.id,{...l,kind:i.kind,module:`${BUILD_FOLDER}${o.file}`,imports:r,styles:b,...i.script===void 0?{}:{script:i.script},...i.loads?.kindData===void 0?{}:{kindData:i.loads.kindData}}]}))}const Be="1920x1080";function Ce(e,n){const s=stageName(n.place),a=e.bundle?.chunks.entries[s];if(!a)throw new Error(`${n.place} shows no component: it has no stage bundle.`);const{imports:f,styles:i}=K(e,a.file);return{kind:"doc",piece:n.place,file:n.file,module:`${BUILD_FOLDER}${a.file}`,imports:f,styles:i,dims:pe(void 0,{locales:e.messages.locales}),format:Be,locales:e.messages.locales,messages:e.messages.messages,anchors:e.messages.anchors,text:e.config.text??j,media:Object.fromEntries(Object.entries(e.media).map(([l,o])=>[l,{...o,url:z(l)}])),data:e.data,...G(e.config,V(e.root)),pieces:Q(e,n.place)}}
|
|
@@ -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 c,realpath as
|
|
2
|
+
import{readFile as c,realpath as s,stat as d}from"node:fs/promises";import{dirname as a,join as u,resolve as i}from"node:path";import{CONFIG_FILES as p,PACKAGE_FILE as l}from"@allyhub/formats/layout";export const SDK="@allyhub/sdk";const h=["allyhub",SDK];async function y(t){const e=await c(u(t,l),"utf8").catch(()=>{});if(e!==void 0)try{const r=JSON.parse(e);for(const o of["dependencies","devDependencies"]){const n=r[o];if(typeof n=="object"&&n!==null&&h.some(f=>f in n))return!0}}catch{}for(const r of p)if(await d(u(t,r)).then(()=>!0,()=>!1))return!0;return!1}export async function projectRoot(t,e){const r=i(t,e??".");return await projectAt(r)??r}export async function projectAt(t){for(let e=i(t);;e=a(e)){if(await y(e))return e;if(a(e)===e)return}}export async function projectOfFile(t,e,r){if(r!==void 0)return{root:i(e,r),foundBy:"dir"};const o=await projectAt(e),n=await projectAt(a(i(e,t)));return n!==void 0?o!==void 0&&await s(n).catch(()=>n)===await s(o).catch(()=>o)?{root:n,foundBy:"file"}:{root:n,foundBy:"file",warning:`${t} is in the project ${n}, ${o===void 0?"and the current folder is in none":`not the current folder's (${o})`}: what is measured of it is kept there.`}:o!==void 0?{root:o,foundBy:"cwd"}:{root:i(e),foundBy:"none",warning:`No project above ${t} or the current folder: what is measured is kept in ${i(e)}.`}}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{builtinModules as
|
|
2
|
+
import{builtinModules as w}from"node:module";import{parseSync as K,visitorKeys as I}from"oxc-parser";import{problem as m}from"@allyhub/diagnostics";import{repoPath as j}from"@allyhub/piece";import{SDK as l}from"./project-root.js";export function parse(t,r){const e=K(t,r,{sourceType:"module"});return{program:e.program,errors:e.errors.map(o=>({message:o.message,...o.labels[0]?{start:o.labels[0].start}:{}})),source:r}}export function lineAt(t,r){let e=1;for(let o=0;o<r&&o<t.length;o++)t.charCodeAt(o)===10&&e++;return e}const h=t=>typeof t=="object"&&t!==null&&typeof t.type=="string",k=new Set(["typeAnnotation","typeParameters","typeArguments","returnType","superTypeArguments","implements"]);export function walk(t,r){const e=[],o=s=>{if(s.type.startsWith("TS")){const i=s.expression;h(i)&&(e.push(s),o(i),e.pop());return}if(!((s.type==="ImportDeclaration"||s.type==="ExportNamedDeclaration")&&s.importKind==="type")){r(s,e),e.push(s);for(const i of I[s.type]??Object.keys(s)){if(k.has(i))continue;const p=s[i];if(Array.isArray(p))for(const f of p)h(f)&&o(f);else h(p)&&o(p)}e.pop()}};o(t)}export{l as SDK};function S(t,r,e=l){const o=new Set;for(const s of t.body)if(!(s.type!=="ImportDeclaration"||s.source.value!==e))for(const p of s.specifiers??[]){if(p.type!=="ImportSpecifier")continue;const f=p.imported;(f.name??f.value)===r&&o.add(p.local.name)}return o}function x(t){let r=t;for(;["TSAsExpression","TSSatisfiesExpression","ParenthesizedExpression","TSNonNullExpression"].includes(r.type)&&h(r.expression);)r=r.expression;return r}const $=(t,r)=>{if(!t)return!1;const e=x(t);if(e.type!=="CallExpression")return!1;const o=e.callee;return o.type==="Identifier"&&r.has(o.name)},g=[["video",l],["presentation",`${l}/slides`]];export function discover(t,r){const e=[],{program:o,source:s}=r,i=new Set(g.flatMap(([c,d])=>[...S(o,c,d)])),p=S(o,"defineComponent").size>0,f=o.body,a=f.find(c=>c.type==="ExportDefaultDeclaration"),y=c=>({file:t,line:lineAt(s,c.start)});if(!a)return i.size>0&&/\bexport\s+\{[^}]*\bdefault\b/.test(s)&&e.push(m("AK-M001",`${t} imports ${[...i].join(" and ")}, but its default export is a re-export. An item's entry file writes export default video({ … }) (or presentation(…)) itself: AllyHub does not look in other files.`,{where:{file:t}})),{piece:!1,components:p,problems:e};const n=a.declaration;if($(n,i))return{piece:!0,components:p,problems:e};const u=x(n);if(u.type==="Identifier"){const c=u.name;for(const d of f)if(d.type==="VariableDeclaration")for(const b of d.declarations){const A=b.id;if(A.type==="Identifier"&&A.name===c&&$(b.init,i))return{piece:!0,components:p,problems:e}}}return i.size>0?e.push(m("AK-M001",`${t} imports ${[...i].join(" and ")}, but its default export is not a video(…) or presentation(…) call. Write export default video({ … }) (presentation(…) for a deck), or const film = video({ … }); export default film. AllyHub does not follow factory functions or conditional expressions.`,{where:y(a)})):$(n,new Set(g.map(([c])=>c)))&&e.push(m("AK-M001",`The ${String(x(n).callee.name)} that ${t} calls is not imported from ${l}. Write import { video } from "${l}" (import { presentation } from "${l}/slides" for a deck).`,{where:y(a)})),{piece:!1,components:p,problems:e}}const T=new Set([...w,...w.map(t=>`node:${t}`)]),E="@allyhub-next/";export function currentName(t){return t.startsWith(E)?`@allyhub/${t.slice(E.length)}`:t}export function packageName(t){const r=t.split("/");return t.startsWith("@")?r.slice(0,2).join("/"):r[0]??t}export function checkImports(t,r,e,o,s){const i=[],{program:p,source:f}=r;for(const a of p.body){if(!/^(Import|ExportNamed|ExportAll)Declaration$/.test(a.type)||a.importKind==="type"||a.exportKind==="type")continue;const n=a.source?.value;if(typeof n!="string")continue;const u={file:t,line:lineAt(f,a.start)};if(/^(https?:)?\/\//i.test(n)){i.push(m("AK-B005",`${t} imports the remote address ${n}. The build has no network: install it as an npm package, or put it in the project.`,{where:u}));continue}if(n.startsWith(".")||n.startsWith("/")){j(t,n)===void 0&&i.push(m("AK-B005",`${t} imports ${n}, a file outside the project. Put it in the project.`,{where:u}));continue}if(packageName(n)===l){s.has(n)||i.push(m("AK-B006",n===`${l}/components`?`${t} imports ${n}: the components are not part of the SDK. A project has its own copies: allyhub add lists the starter components and copies one in (allyhub add component/screen-demo).`:`${t} imports ${n}, which ${l} does not have. Its entry points: ${[...s].sort().join(", ")}.`,{where:u}));continue}if(T.has(n))continue;const c=packageName(currentName(n));o.has(c)||e.has(packageName(n))||i.push(m("AK-B005",`${t} imports ${n}, but package.json does not declare ${packageName(n)}. Add it with npm install ${packageName(n)}${n.startsWith("@fontsource/")?", or keep the font and a .css of @font-face rules under assets/fonts/":""}.`,{where:u}))}return i}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{parseSync as w}from"oxc-parser";export function partImports(u,r,o){const s=new Set(Object.values(o).map(t=>t.of));if(![...s].some(t=>r.includes(t)))return[];const i=w(u,r,{sourceType:"module"});if(i.errors.length>0)return[];const{staticImports:c,staticExports:p,dynamicImports:h}=i.module,a=[];for(const t of s){const l=c.filter(e=>e.moduleRequest.value===t);if(l.length===0)continue;const q=p.some(e=>e.entries.some(n=>n.moduleRequest?.value===t)),R=h.some(e=>r.slice(e.moduleRequest.start,e.moduleRequest.end).includes(t));if(q||R)continue;const f=new Set;let m=!1;for(const e of l){e.entries.length===0&&(m=!0);for(const n of e.entries)n.importName.name===null?m=!0:f.add(n.importName.name)}if(m)continue;const d=Object.entries(o).find(([,e])=>e.of===t&&[...f].every(n=>e.names.includes(n)));if(d)for(const e of l)a.push({start:e.moduleRequest.start,end:e.moduleRequest.end,to:d[0]})}return a}export function withParts(u,r){let o=u;for(const s of[...r].sort((i,c)=>c.start-i.start))o=`${o.slice(0,s.start)}${JSON.stringify(s.to)}${o.slice(s.end)}`;return o}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{join as
|
|
3
|
-
`)[0]??"",...s?{file:s.replace(/[?#].*$/,"")}:{},...
|
|
2
|
+
import{join as d}from"node:path";import{CACHE_DIR as m}from"@allyhub/formats";const l=()=>import("vite"),p=["plugins","resolve","css","define","json","assetsInclude","oxc"];export async function loadUserVite(e,t="production"){const{loadConfigFromFile:s}=await l(),i=await s({command:t==="production"?"build":"serve",mode:t},void 0,e,"silent",void 0,"runner");if(!i)return;const n={};for(const r of p)i.config[r]!==void 0&&Object.assign(n,{[r]:i.config[r]});return{file:i.path.startsWith(e)?i.path.slice(e.length+1):i.path,config:n}}const f=async(e,t,s,i=[])=>{const n={ssr:{noExternal:[...i]}},{plugins:r,...o}=s?.config??{},{mergeConfig:a}=await l(),c=a(n,o),u=r?[r]:[];return{...c,root:e,configFile:!1,envDir:!1,publicDir:!1,logLevel:"silent",clearScreen:!1,plugins:[...t,...u]}};export async function createModuleLoader(e,t,s={}){const{createServer:i,createServerModuleRunner:n}=await l(),r=await i({...await f(e,t,s.user,s.inline),mode:s.mode??"production",appType:"custom",server:{middlewareMode:!0,hmr:!1,ws:!1,watch:null},optimizeDeps:{noDiscovery:!0,include:[]}}),o=r.environments.ssr,a=n(o,{hmr:!1});return{async import(c){return a.import(c)},async close(){await a.close(),await r.close()}}}export function compileErrorOf(e){const t=e,s=t.loc?.file??t.id;return{message:(t.message??String(e)).split(`
|
|
3
|
+
`)[0]??"",...s?{file:s.replace(/[?#].*$/,"")}:{},...t.loc?.line===void 0?{}:{line:t.loc.line},...t.loc?.column===void 0?{}:{column:t.loc.column},...t.frame?{frame:t.frame}:{}}}export async function createStageDevServer(e){const{createServer:t}=await l(),s=await t({...await f(e.root,e.plugins,e.user),base:e.base,appType:"custom",mode:"development",cacheDir:d(e.root,m,"vite"),server:{middlewareMode:!0,hmr:!1,ws:!1,watch:null,fs:{strict:!0,allow:[e.root,...e.allow]}},optimizeDeps:{noDiscovery:!0,include:[]},build:{target:"es2022"}}),i=s.environments.client.moduleGraph;return{handle(n,r,o){s.middlewares(n,r,o)},changed(n){const r=new Set,o=a=>{const c=a.id??"";if(!r.has(c)){r.add(c);for(const u of a.importers)o(u)}};for(const a of n){for(const c of i.getModulesByFile(a)??[])o(c);i.onFileChange(a)}return r},invalidate(n){for(const r of n){const o=i.getModuleById(r);o&&i.invalidateModule(o)}},async close(){await s.close()}}}function h(e){const t=Array.isArray(e)?e:[e],s={entries:{},chunks:{},files:[]};for(const i of t)if("output"in i)for(const n of i.output){if(n.fileName.endsWith(".map")||s.files.push(n.fileName),n.type!=="chunk")continue;const r=n.viteMetadata,o={file:n.fileName,imports:[...n.imports],dynamicImports:[...n.dynamicImports],css:[...r?.importedCss??[]],assets:[...r?.importedAssets??[]],modules:[...n.moduleIds]};s.chunks[n.fileName]=o,n.isEntry&&(s.entries[n.name]=o)}return s}export async function bundleForStage(e){const{build:t}=await l(),s=await t({...await f(e.root,e.plugins,e.user),base:"./",mode:"production",build:{outDir:e.outDir,emptyOutDir:!1,write:!0,copyPublicDir:!1,minify:!1,sourcemap:"hidden",target:"es2022",modulePreload:!1,reportCompressedSize:!1,cssCodeSplit:!0,assetsDir:"assets",rolldownOptions:{input:e.entries,preserveEntrySignatures:"exports-only",output:{format:"es",entryFileNames:"pieces/[name].[hash].js",chunkFileNames:"chunks/[name].[hash].js",assetFileNames:"assets/[name].[hash][extname]"}}}});return h(s)}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{readFile as
|
|
3
|
-
`)[0]??""}`]}}const
|
|
4
|
-
`),
|
|
2
|
+
import{readFileSync as O,statSync as W}from"node:fs";import{readFile as k,writeFile as F}from"node:fs/promises";import{join as f}from"node:path";import{itemsOf as $,parseWork as h,WORK_FILE as c,WorkItemSchema as j}from"@allyhub/formats";import{isMap as g,isScalar as y,isSeq as E,parseDocument as S,parse as x,visit as v}from"yaml";import{listFiles as I}from"./files.js";export async function readWork(r){const t=await k(f(r,c),"utf8").catch(()=>{});if(t===void 0)return{work:{work:[]},problems:[]};let o;try{o=x(t)}catch(e){return{work:{work:[]},problems:[`${c} is not valid YAML: ${e.message.split(`
|
|
3
|
+
`)[0]??""}`]}}const n=h(o);return n.ok?{work:n.value,problems:[]}:{work:{work:[]},problems:n.problems.map(e=>`${c}: ${e}`)}}const M=new Map;export function projectTheme(r){const t=f(r,c);let o;try{o=W(t).mtimeMs}catch{return}const n=M.get(r);if(n?.at===o)return n.theme;let e;try{const s=h(x(O(t,"utf8")));e=s.ok?s.value.theme:void 0}catch{e=void 0}return M.set(r,{at:o,theme:e}),e}export async function projectItems(r,t,o,n){const{work:e,problems:s}=await readWork(r);return{...$(e,t,new Set(o??await I(r)),n),listProblems:s}}export function currentFormats(r){return Object.fromEntries(r.flatMap(t=>t.migrations===void 0?[]:[[t.id,t.migrations.format]]))}export async function listWork(r,t,o){const n=f(r,c),e=await k(n,"utf8").catch(()=>{}),s=S(e??`work: []
|
|
4
|
+
`);e===void 0&&s.set("versions",currentFormats(o));const i=s.toJS()?.work;if(JSON.stringify(i??[]).includes(JSON.stringify(t.file)))return;Array.isArray(i)||s.set("work",s.createNode([]));const a=s.get("work",!0);E(a)&&(a.flow=!1),s.addIn(["work"],t),await F(n,s.toString())}export function unlistedWork(r,t){const o=S(r),n=[],e=[];return v(o,{Map(s,i,p){if(!g(i))return;const a=i.get("file",!0);if(!y(a)||typeof a.value!="string")return;const d=a.value.replace(/^\.\//u,"");if(d!==t&&!d.startsWith(`${t}/`))return;const l=i.toJSON(),m=j.safeParse(l);m.success&&n.push(m.data);const b=p.flatMap(w=>{if(!g(w))return[];const u=w.get("group",!0);return y(u)&&typeof u.value=="string"?[u.value]:[]});return e.push({entry:l,groups:b}),v.REMOVE}}),e.length>0?{text:o.toString(),items:n,entries:e}:void 0}
|
|
@@ -1,11 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allyhub/build",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"default": "./dist/index.js"
|
|
9
|
+
},
|
|
10
|
+
"./migrate": {
|
|
11
|
+
"types": "./dist/migrate.d.ts",
|
|
12
|
+
"default": "./dist/migrate.js"
|
|
13
|
+
},
|
|
14
|
+
"./project-root": {
|
|
15
|
+
"types": "./dist/project-root.d.ts",
|
|
16
|
+
"default": "./dist/project-root.js"
|
|
17
|
+
},
|
|
18
|
+
"./inspect-view": {
|
|
19
|
+
"types": "./dist/inspect-view.d.ts",
|
|
20
|
+
"default": "./dist/inspect-view.js"
|
|
9
21
|
}
|
|
10
22
|
},
|
|
11
23
|
"private": true,
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{colorOfFile as
|
|
2
|
+
import{colorOfFile as te}from"@allyhub/formats";import{defaultLabels as ie,needsCategories as Y}from"./extended.js";import{isCombinable as oe,isScatter as se,labelPositionsOf as Z,pointLabelPosition as re}from"./chart.js";const O=e=>te(e)??"dk1";function ae(e,o){if(o.startsWith("/"))return o.slice(1);const n=e===""?[]:e.split("/");for(const y of o.split("/"))y===""||y==="."||(y===".."?n.pop():n.push(y));return n.join("/")}function J(e,o){if(e===void 0&&o===void 0)return;const n=e??{};return{...o===void 0?{}:{title:o},...n.min===void 0?{}:{minimum_scale:n.min},...n.max===void 0?{}:{maximum_scale:n.max},...n.major===void 0?{}:{major_unit:n.major},...n.gridlines===void 0?{}:{has_major_gridlines:n.gridlines},...n.visible===void 0?{}:{visible:n.visible},...n.format===void 0?{}:{number_format:n.format},...n.reverse===void 0?{}:{reverse_order:n.reverse},...n.gridline_color===void 0?{}:{gridline_color:O(n.gridline_color)},...n.line_color===void 0?{}:{line_color:O(n.line_color)},...n.labels===void 0?{}:{tick_label_position:n.labels},...n.tick_marks===void 0?{}:{major_tick_mark:n.tick_marks},...n.minor_tick_marks===void 0?{}:{minor_tick_mark:n.minor_tick_marks},...n.crosses===void 0?{}:{crosses:n.crosses},...n.crosses_at===void 0?{}:{crosses_at:n.crosses_at},...n.log_base===void 0?{}:{log_base:n.log_base},...n.units===void 0?{}:{display_units:n.units},...n.units_label===void 0?{}:{display_units_label:n.units_label},...n.minor===void 0?{}:{minor_unit:n.minor},...n.minor_gridlines===void 0?{}:{has_minor_gridlines:n.minor_gridlines},...n.label_angle===void 0?{}:{label_angle:n.label_angle},...n.label_every===void 0?{}:{label_interval:n.label_every}}}const W=(e,o)=>{if(e===void 0||e===!1)return;if(e===!0)return{show_value:!0};const n=o===void 0||e.first!==!0&&e.last!==!0?void 0:[...e.first===!0?[o.first]:[],...e.last===!0&&(e.first!==!0||o.last!==o.first)?[o.last]:[]];return{...e.bold===void 0?{}:{bold:e.bold},...n===void 0?{}:{points:n},...e.value===void 0?{}:{show_value:e.value},...e.percentage===void 0?{}:{show_percentage:e.percentage},...e.category===void 0?{}:{show_category_name:e.category},...e.series===void 0?{}:{show_series_name:e.series},...e.format===void 0?{}:{number_format:e.format},...e.position===void 0?{}:{position:e.position},...e.size===void 0?{}:{size:e.size},...e.color===void 0?{}:{color:O(e.color)}}};function B(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e==null)return null;if(typeof e!="string")return;const o=e.trim();if(o==="")return null;const n=Number(o);return Number.isFinite(n)?n:void 0}export function chartOfFile(e,o){const n=t=>{const r=t.flatMap((i,l)=>i===null?[]:[l]);return{first:r[0]??0,last:r.at(-1)??t.length-1}},y=typeof e.labels=="object"&&(e.labels.first===!0||e.labels.last===!0),k=ie(e.type),z=y?void 0:e.labels===void 0&&k?k:W(e.labels),c=se(e.type);let m,A;const T=t=>{const r=Math.max(1,...t.map(i=>i.length));return A=t.map(i=>Array.from({length:r},(l,u)=>i[u]??"")),t.map(i=>[...i].reverse().find(l=>l!=="")??"")};let g;const P=t=>({...t.color===void 0?{}:{color:O(t.color)},...t.format===void 0?{}:{number_format:t.format},...t.smooth===void 0?{}:{smooth:t.smooth},...t.line_width===void 0?{}:{line_width:t.line_width},...t.marker_size===void 0?{}:{marker_size:t.marker_size},...t.type===void 0?{}:{type:t.type},...t.secondary===void 0?{}:{secondary:t.secondary},...t.line_dash===void 0?{}:{line_dash:t.line_dash},...t.marker===void 0?{}:{marker_symbol:t.marker},...t.transparency===void 0?{}:{transparency:t.transparency},...t.fill==="none"?{no_fill:!0}:{}});if(e.data!==void 0){let t;try{t=o.rows(e.data)}catch(s){o.problem(`${e.data} cannot be read: ${s instanceof Error?s.message:String(s)}`);return}if(!Array.isArray(t)||t.length===0){o.problem(`${e.data} holds no rows.`);return}const r=t,i=e.categories,l=Array.isArray(i)?i.flatMap(s=>typeof s=="string"?[s]:s):void 0,u=typeof i=="string"?i:l?.[0];if(u===void 0){o.problem("with data, categories names its column.");return}const d=Object.keys(r[0]??{}),w=[...l??[u],...e.series.map(s=>typeof s=="string"?s:s.name)].filter(s=>!d.includes(s));if(w.length>0){o.problem(`${e.data} has no column ${w.join(", ")} (it has ${d.join(", ")}).`);return}const x=s=>typeof s=="string"||typeof s=="number"?String(s):"";m=l&&l.length>1?T(r.map(s=>l.map(b=>x(s[b])))):r.map(s=>x(s[u])),g=e.series.map(s=>{const b=typeof s=="string"?s:s.name,N=r.map(($,I)=>{const E=B($[b]);return E===void 0?(o.problem(`${String(e.data)} row ${String(I+1)}: ${JSON.stringify($[b])} in ${b} is not a number.`),null):E});return{name:b,values:N,...c?{x:r.map($=>B($[u])??null)}:{},...typeof s!="string"&&s.size!==void 0?{sizes:r.map($=>B($[s.size??""])??null)}:{},...typeof s=="string"?{}:P(s)}})}else{if(typeof e.categories=="string"){o.problem("categories names a column, and there is no data to read.");return}if(e.categories===void 0&&Y(e.type)){o.problem(`a ${e.type} chart has categories.`);return}const t=e.categories??[];m=t.some(i=>Array.isArray(i))?T(t.map(i=>Array.isArray(i)?i:[i])):t.map(i=>Array.isArray(i)?i.join(" "):i);const r=[];for(const i of e.series){if(typeof i=="string"||!i.values){const l=typeof i=="string"?i:i.name;o.problem(`series ${l} has no values, and there is no data to read.`);return}if(c){if(i.x?.length!==i.values.length){o.problem(`series ${i.name} has an x for each of its values.`);return}}else i.values.length!==m.length&&!(!Y(e.type)&&m.length===0)&&o.problem(`series ${i.name} has ${String(i.values.length)} values for ${String(m.length)} categories.`);e.type==="bubble"&&i.sizes?.length!==i.values.length&&o.problem(`series ${i.name} has a size for each of its values.`),r.push({name:i.name,values:i.values,...c&&i.x?{x:i.x}:{},...i.sizes?{sizes:i.sizes}:{},...P(i)})}g=r}e.series.forEach((t,r)=>{const i=g[r];if(!i)return;const l=typeof t=="string"?void 0:t.points;if(l){const d=[];for(const[p,w]of Object.entries(l)){const x=m.indexOf(p);if(x<0){o.problem(`series ${i.name} has no category ${p} for points (it has ${m.join(", ")}).`);continue}d[x]=O(w.color)}d.length>0&&(i.point_colors=Array.from(d,p=>p))}const u=typeof t=="string"?void 0:t.labels;if(u===!1)i.labels=null;else if(u!==void 0){const d=W(u,n(i.values));d&&(i.labels=d)}else if(y){const d=W(e.labels,n(i.values));d&&(i.labels=d)}}),!oe(e.type)&&e.series.some(t=>typeof t!="string"&&(t.type!==void 0||t.secondary===!0))&&o.problem(`a ${e.type} chart combines with no other kind and has no second axis: only columns, lines and areas do.`);const F=z?.position;F!==void 0&&!Z(e.type).includes(F)&&o.problem(`a ${e.type} chart has no label position ${F}, which PowerPoint would repair (it has ${Z(e.type).join(", ")||"none"}).`);for(const[t,r]of[["value_axis",e.value_axis],["secondary_axis",e.secondary_axis]])r?.log_base!==void 0&&r.min!==void 0&&r.min<=0&&o.problem(`${t}'s logarithmic scale starts over 0, not at ${String(r.min)}: PowerPoint would repair it.`);const j=(e.totals??[]).flatMap(t=>{const r=m.indexOf(t);return r<0&&o.problem(`totals names ${t}, which is no category (it has ${m.join(", ")}).`),r<0?[]:[r]});e.type!=="waterfall"&&e.totals!==void 0&&o.problem(`only a waterfall has totals, not a ${e.type} chart.`);const q=J(e.value_axis,o.axisTitles?.value_axis),C=J(e.category_axis,o.axisTitles?.category_axis),M=J(e.secondary_axis,o.axisTitles?.secondary_axis);return o.pointText&&!c&&g.forEach((t,r)=>{const i=m.flatMap((l,u)=>{const d=o.pointText?.(l,t.name,r===0);return d===void 0?[]:[{index:u,text:d,...o.size===void 0?{position:re(t.values,u)}:le(g,r,u,d,o.size,e.value_axis,e.size)}]});i.length>0&&(g[r]={...t,point_labels:i})}),{type:e.type,categories:m,series:g,...o.title===void 0?{}:{title:o.title},...e.legend===void 0||e.legend==="none"?{}:{legend:e.legend},...z?{labels:z}:{},...e.gap_width===void 0?{}:{gap_width:e.gap_width},...e.overlap===void 0?{}:{overlap:e.overlap},...e.vary_by_categories===void 0?{}:{vary_by_categories:e.vary_by_categories},...e.category_colors===void 0?{}:{category_colors:e.category_colors.map(O)},...e.hole_size===void 0?{}:{hole_size:e.hole_size},...q?{value_axis:q}:{},...C?{category_axis:C}:{},...M?{secondary_axis:M}:{},...e.size===void 0?{}:{font_size:e.size},...e.title_size===void 0?{}:{title_size:e.title_size},...e.color===void 0?{}:{font_color:O(e.color)},...e.data===void 0?{}:{source:ae(o.base,e.data)},...j.length===0?{}:{totals:j},...e.connector_lines===void 0?{}:{connector_lines:e.connector_lines},...e.quartiles===void 0?{}:{quartile_method:e.quartiles},...e.mean_markers===void 0?{}:{show_mean_markers:e.mean_markers},...e.mean_line===void 0?{}:{show_mean_line:e.mean_line},...e.outliers===void 0?{}:{show_outliers:e.outliers},...e.inner_points===void 0?{}:{show_inner_points:e.inner_points},...e.bin_count===void 0?{}:{bin_count:e.bin_count},...e.bin_width===void 0?{}:{bin_width:e.bin_width},...e.overflow===void 0?{}:{overflow:e.overflow},...e.underflow===void 0?{}:{underflow:e.underflow},...e.interval_closed===void 0?{}:{interval_closed:e.interval_closed},...A===void 0?{}:{category_levels:A},...e.parent_labels===void 0?{}:{parent_labels:e.parent_labels},...e.high_low_lines===void 0?{}:{high_low_lines:e.high_low_lines},...e.secondary_gap_width===void 0?{}:{secondary_gap_width:e.secondary_gap_width},...e.orientation===void 0?{}:{orientation:e.orientation}}}function le(e,o,n,y,k,z,c=12){const m=e.flatMap(a=>a.values.filter(f=>f!==null)),A=e[o]?.values[n];if(m.length===0||A===null||A===void 0)return{position:"t"};const T=Math.min(...m),g=Math.max(...m),P=g-T||1,F=10**Math.floor(Math.log10(P/5)),j=([1,2,2.5,5,10].find(a=>a*F>=P/5)??10)*F,q=z?.min??Math.floor(T/j)*j,C=z?.max??Math.ceil((g+P*.05)/j)*j,M=c*3.5,t=c*2.5,r=k.width-M-c,i=k.height-t-c*2,l=e[o]?.values.length??1,u=a=>M+(a+.5)/l*r,d=a=>t+(1-(a-q)/(C-q||1))*i,p=u(n),w=d(A),x=y.split(`
|
|
3
|
+
`),s=Math.max(...x.map(a=>a.length))*c*.55,b=x.length*c*1.2,N=c*.9,$=n===l-1,I=n===0,E=(a,f,v)=>{const h=a==="r"?p+N:a==="l"?p-N-s:$?p-s:I?p:p-s/2,_=a==="t"?w-N-b:a==="b"?w+N:w-c*.6;return[h+f,_+v,h+f+s,_+v+b]},D=[];for(const a of e)for(let f=0;f+1<a.values.length;f++){const v=a.values[f],h=a.values[f+1];if(!(v===null||h===null||v===void 0||h===void 0))for(let _=0;_<=1;_+=.04)D.push([u(f+_),d(v+(h-v)*_)])}const L=c*.3;let G={position:"t"},H=1/0;for(const a of["t","b","r","l"])for(const f of[0,1,2,3])for(const v of[0,-1,1]){const h=(a==="b"?1:-1)*f*b*.5,_=v*s*.35,[K,Q,R,S]=E(a,_,h),ee=D.filter(([V,X])=>V>=K-L&&V<=R+L&&X>=Q-L&&X<=S+L).length,ne=(K<M?1:0)+(R>M+r?1:0)+(Q<t?1:0)+(S>t+i?1:0),U=ee*20+ne*100+(Math.abs(_)+Math.abs(h))/c;U<H&&(H=U,G=_===0&&h===0?{position:a}:{position:a,dx:Number((_/k.width).toFixed(4)),dy:Number((h/k.height).toFixed(4))})}return G}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{colorXml as
|
|
3
|
-
`,
|
|
4
|
-
`).map(
|
|
2
|
+
import{colorXml as be}from"./color.js";import{ACROSS_TICK as he,acrossBase as _e,actualThickness as ye,isAcross as ge,isRadar as oe,isRecipe as xe,isStock as se,JOIN_WIDTH as we,recipeDef as ve,recipeOrder as Pe,TARGET_WIDTH as ke}from"./classic.js";import{accentOf as F,CHART_AXIS as G,CHART_DEFAULTS as w,CHART_GRID as ce,CHART_INK as Ce,chartDrawing as W,groupingOf as H,groupsOf as ae,hasLines as Se,hasMarkers as Ae,isArea as K,isBar as N,isHorizontal as le,isLine as O,isRound as T,isScatter as Z,labelPositionOf as Le,variesOf as j,seeThrough as M}from"./chart.js";const $e="http://schemas.openxmlformats.org/drawingml/2006/chart",ze="http://schemas.openxmlformats.org/drawingml/2006/main",Re="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Ie=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3
|
+
`,D="2118791784",X="2140495176",$="2118791785",z="2140495177",Te={"&":"&","<":"<",">":">",'"':"""},Me=e=>{const t=e.charCodeAt(0);return t<32&&t!==9&&t!==10&&t!==13||t===65534||t===65535},y=e=>Array.from(e,t=>Me(t)?"":Te[t]??t).join("");function r(e,t={},...o){const c=Object.entries(t).filter(([,s])=>s!==void 0).map(([s,a])=>` ${s}="${y(typeof a=="boolean"?a?"1":"0":String(a))}"`).join(""),l=o.join("");return l===""?`<${e}${c}/>`:`<${e}${c}>${l}</${e}>`}const Be=e=>be(e),g=e=>e===null?r("a:noFill"):r("a:solidFill",{},Be(e)),n=(e,t)=>r(e,{val:typeof t=="boolean"?t?1:0:t}),h=(e,t,o)=>r("a:ln",t===void 0?{}:{w:Math.round(t*12700)},g(e),o===void 0||o==="solid"?"":n("a:prstDash",o)),Y=(e,t,o)=>r("c:txPr",{},r("a:bodyPr"),r("a:lstStyle"),r("a:p",{},r("a:pPr",{},r("a:defRPr",{...e===void 0?{}:{sz:Math.round(e*100)},...o===void 0?{}:{b:o?1:0}},t===void 0?"":g(t))),r("a:endParaRPr",{lang:"en-US"}))),q=e=>r("c:strCache",{},n("c:ptCount",e.length),...e.map((t,o)=>r("c:pt",{idx:o},`<c:v>${y(t)}</c:v>`))),S=(e,t)=>r("c:numCache",{},`<c:formatCode>${y(e??"General")}</c:formatCode>`,n("c:ptCount",t.length),...t.flatMap((o,c)=>o===null?[]:[r("c:pt",{idx:c},`<c:v>${String(o)}</c:v>`)])),ie=(e,t)=>r("c:tx",{},t===void 0?`<c:v>${y(e.name)}</c:v>`:r("c:strRef",{},`<c:f>${y(t)}</c:f>`,q([e.name]))),Fe=(e,t)=>t===void 0?"":r("c:xVal",{},r("c:numRef",{},`<c:f>${y(t)}</c:f>`,S("General",e.x??[])));function Ge(e,t,o,c){const l=t.color??F(o),s=M(l,t.transparency),a=T(e.type),i=Z(e.type),u=e.type==="bubble",b=oe(e.type),_=se(e.type),p=!u&&(O(e.type)||i||_||b&&e.type!=="radar-filled"),v=t.marker_symbol===void 0?Ae(e.type)||e.type==="stock-hlc"&&o===2:t.marker_symbol!=="none",m=t.marker_symbol??(_?"dash":"circle"),P=p?r("c:spPr",{},Se(e.type)&&!_&&t.line_width!==0?h(s,t.line_width??w.lineWidth,t.line_dash):r("a:ln",{w:19050},g(null))):t.no_fill===!0?r("c:spPr",{},g(null),h(s,1.5,t.line_dash)):r("c:spPr",{},g(s),a?h("lt1",1):""),k=c.categories;return r("c:ser",{},n("c:idx",o),n("c:order",o),ie(t,c.name(o)),P,N(e.type)?n("c:invertIfNegative",!1):"",p?r("c:marker",{},n("c:symbol",v?m:"none"),v?n("c:size",t.marker_size??w.marker):"",v?r("c:spPr",{},g(s),h(s)):""):"",...j(e)&&!p&&!K(e.type)?e.categories.map((C,d)=>r("c:dPt",{},n("c:idx",d),N(e.type)?n("c:invertIfNegative",!1):"",n("c:bubble3D",!1),r("c:spPr",{},g(M(t.point_colors?.[d]??e.category_colors?.[d]??F(d),t.transparency)),a?h("lt1",1):""))):[],...Ne(e,t,p,a,s),Oe(e,t,s),i?Fe(t,c.x?.(o)):k===void 0?"":r("c:cat",{},c.numeric===!0?r("c:numRef",{},`<c:f>${y(k)}</c:f>`,S(c.categoryFormat??"General",c.categoryNumbers??e.categories.map(C=>{const d=Number(C);return C===""||!Number.isFinite(d)?null:d}))):r("c:strRef",{},`<c:f>${y(k)}</c:f>`,q(e.categories))),r(i?"c:yVal":"c:val",{},r("c:numRef",{},`<c:f>${y(c.values(o))}</c:f>`,S(t.number_format,t.values))),u?r("c:bubbleSize",{},c.sizes?.(o)===void 0?r("c:numLit",{},"<c:formatCode>General</c:formatCode>",n("c:ptCount",t.values.length),...t.values.map((C,d)=>r("c:pt",{idx:d},`<c:v>${String(t.sizes?.[d]??1)}</c:v>`))):r("c:numRef",{},`<c:f>${y(c.sizes(o)??"")}</c:f>`,S("General",t.sizes??[])))+n("c:bubble3D",!1):"",p&&!b?n("c:smooth",t.smooth===!0||e.type==="scatter-smooth"):"")}function Ne(e,t,o,c,l){if(j(e)&&!o&&!K(e.type))return[];const s=new Set(o?(t.point_labels??[]).map(i=>i.index):[]),a=new Set((t.point_colors??[]).flatMap((i,u)=>i==null?[]:[u]));return[...new Set([...a,...s])].sort((i,u)=>i-u).map(i=>{const u=t.point_colors?.[i]??void 0,b=u===void 0?l:M(u,t.transparency),_=s.has(i);return r("c:dPt",{},n("c:idx",i),N(e.type)?n("c:invertIfNegative",!1):"",o?r("c:marker",{},n("c:symbol",t.marker_symbol??"circle"),n("c:size",_?7:t.marker_size??w.marker),r("c:spPr",{},g(b),_?h("lt1",1.5):h(b))):"",n("c:bubble3D",!1),!o&&a.has(i)?r("c:spPr",{},t.no_fill===!0?g(null)+h(b,1.5):g(b),c?h("lt1",1):""):"")})}function J(e,t,o=!0){const c=t.show_percentage===!0,l=Le({type:e.type,labels:t});return o?[t.number_format===void 0?"":r("c:numFmt",{formatCode:t.number_format,sourceLinked:0}),t.size===void 0&&t.color===void 0&&t.bold===void 0&&!T(e.type)?"":Y(t.size,t.color??(T(e.type)?"lt1":void 0),t.bold),l===void 0?"":n("c:dLblPos",l),n("c:showLegendKey",!1),n("c:showVal",t.show_value??!c),n("c:showCatName",t.show_category_name===!0),n("c:showSerName",t.show_series_name===!0),n("c:showPercent",c),n("c:showBubbleSize",!1)]:[n("c:showLegendKey",!1),n("c:showVal",!1),n("c:showCatName",!1),n("c:showSerName",!1),n("c:showPercent",!1),n("c:showBubbleSize",!1)]}const de={show_value:!1,show_percentage:!1};function Oe(e,t,o){const c=t.point_labels??[],l=t.labels;if(c.length===0&&l===void 0&&e.labels?.points===void 0)return"";const a=(l===void 0?e.labels:l)??void 0,i=a?.points,u=a&&i===void 0?a:void 0,b=new Set(c.map(m=>m.index)),_=[...c.map(m=>({index:m.index,word:m})),...a&&i?i.filter(m=>!b.has(m)).map(m=>({index:m})):[]].sort((m,P)=>m.index-P.index),p=a?.size??e.labels?.size,v=a?.color??e.labels?.color;return r("c:dLbls",{},..._.map(m=>m.word?r("c:dLbl",{},n("c:idx",m.index),m.word.dx===void 0&&m.word.dy===void 0?"":r("c:layout",{},r("c:manualLayout",{},n("c:x",m.word.dx??0),n("c:y",m.word.dy??0))),r("c:tx",{},r("c:rich",{},r("a:bodyPr"),r("a:lstStyle"),...m.word.text.split(`
|
|
4
|
+
`).map((P,k)=>r("a:p",{},r("a:r",{},k===0?r("a:rPr",{lang:"en-US",b:1},g(o)):"",`<a:t>${y(P)}</a:t>`))))),p===void 0&&v===void 0?"":Y(p,v),n("c:dLblPos",m.word.position),n("c:showLegendKey",!1),n("c:showVal",!0),n("c:showCatName",!1),n("c:showSerName",!1),n("c:showPercent",!1),n("c:showBubbleSize",!1)):r("c:dLbl",{},n("c:idx",m.index),...J(e,a??de))),...J(e,u??de,u!==void 0))}function A(e){const t=e.labels;return t?r("c:dLbls",{},...J(e,t,t.points===void 0)):""}function je(e,t){const o=ae(e);return o.length<=1?E(e,e.series.map((c,l)=>l),t,!1):o.map(c=>E({...e,type:c.kind,...c.secondary&&e.secondary_gap_width!==void 0?{gap_width:e.secondary_gap_width}:{}},c.series,t,c.secondary)).join("")}function E(e,t,o,c){const l=t.map(i=>{const u=e.series[i];return u?Ge(e,u,i,o):""}).join(""),s=H(e.type),a=c?n("c:axId",$)+n("c:axId",z):n("c:axId",D)+n("c:axId",X);if(T(e.type)){const i=e.type==="pie";return r(i?"c:pieChart":"c:doughnutChart",{},n("c:varyColors",j(e)),l,A(e),n("c:firstSliceAng",0),i?"":n("c:holeSize",e.hole_size??50))}if(oe(e.type))return r("c:radarChart",{},n("c:radarStyle",e.type==="radar-filled"?"filled":"marker"),n("c:varyColors",!1),l,A(e),a);if(e.type==="bubble")return r("c:bubbleChart",{},n("c:varyColors",!1),l,A(e),n("c:bubbleScale",100),n("c:showNegBubbles",!1),a);if(se(e.type))return r("c:stockChart",{},l,A(e),r("c:hiLowLines",{},r("c:spPr",{},h(G,w.gridWidth*1.5))),e.type==="stock-ohlc"?r("c:upDownBars",{},n("c:gapWidth",150),r("c:upBars",{},r("c:spPr",{},g("bg1"),h("tx1",.75))),r("c:downBars",{},r("c:spPr",{},g("tx1"),h("tx1",.75)))):"",a);if(Z(e.type))return r("c:scatterChart",{},n("c:scatterStyle","lineMarker"),n("c:varyColors",!1),l,A(e),a);if(N(e.type)){const i=s!=="clustered";return r("c:barChart",{},n("c:barDir",le(e.type)?"bar":"col"),n("c:grouping",s),n("c:varyColors",j(e)),l,A(e),n("c:gapWidth",e.gap_width??150),e.overlap!==void 0||i?n("c:overlap",e.overlap??100):"",a)}return r(O(e.type)?"c:lineChart":"c:areaChart",{},n("c:grouping",s),n("c:varyColors",!1),l,A(e),O(e.type)&&e.high_low_lines===!0?r("c:hiLowLines",{},r("c:spPr",{},h(G,w.lineWidth))):"",O(e.type)?n("c:marker",!0):"",a)}const R=e=>r("c:scaling",{},e.log_base===void 0?"":n("c:logBase",e.log_base),n("c:orientation",e.reverse_order===!0?"maxMin":"minMax"),e.maximum_scale===void 0?"":n("c:max",e.maximum_scale),e.minimum_scale===void 0?"":n("c:min",e.minimum_scale)),Q=e=>r("c:spPr",{},h(e.line_color??G,w.gridWidth)),V=e=>(e.has_major_gridlines===!0?r("c:majorGridlines",{},r("c:spPr",{},h(e.gridline_color??ce,w.gridWidth))):"")+(e.has_minor_gridlines===!0?r("c:minorGridlines",{},r("c:spPr",{},h(e.gridline_color??ce,w.gridWidth/2))):""),ee=e=>e.crosses_at!==void 0?n("c:crossesAt",e.crosses_at):n("c:crosses",e.crosses??"autoZero"),ne=e=>(e.minor_unit===void 0?"":n("c:minorUnit",e.minor_unit))+(e.display_units===void 0?"":r("c:dispUnits",{},n("c:builtInUnit",e.display_units),e.display_units_label===!1?"":r("c:dispUnitsLbl"))),ue=(e,t)=>r("c:rich",{},r("a:bodyPr"),r("a:lstStyle"),...e.split(`
|
|
5
|
+
`).map(o=>r("a:p",{},r("a:pPr",{},r("a:defRPr",{sz:t,b:0})),r("a:r",{},r("a:rPr",{lang:"en-US",sz:t,b:0}),`<a:t>${y(o)}</a:t>`)))),U=(e,t)=>e===void 0||e===""?"":r("c:title",{},r("c:tx",{},ue(e,t)),n("c:overlay",!1)),te=(e,t)=>e.major_unit!==void 0?n("c:majorUnit",e.major_unit):(e.minimum_scale!==void 0||e.maximum_scale!==void 0)&&t?n("c:majorUnit",t.major):"",I=(e,t,o,c="none")=>t?[n("c:majorTickMark","none"),n("c:minorTickMark","none"),n("c:tickLblPos","none"),r("c:spPr",{},h(null))]:[n("c:majorTickMark",e.major_tick_mark??c),n("c:minorTickMark",e.minor_tick_mark??"none"),n("c:tickLblPos",e.tick_label_position??"nextTo"),o,e.label_angle===void 0||e.label_angle===0?"":r("c:txPr",{},r("a:bodyPr",{rot:Math.round(e.label_angle*6e4),vert:"horz"}),r("a:lstStyle"),r("a:p",{},r("a:pPr",{},r("a:defRPr")),r("a:endParaRPr",{lang:"en-US"})))];function De(e,t,o){if(T(e.type))return"";const c=Z(e.type),l=le(e.type),s=e.category_axis??{},a={has_major_gridlines:!0,...e.value_axis},i=H(e.type)==="percentStacked",u=a.number_format??(i?"0%":e.series[0]?.number_format??"General"),b=Math.round((e.font_size??w.fontSize)*100);return(c?r("c:valAx",{},n("c:axId",D),R(s),n("c:delete",s.visible===!1),n("c:axPos","b"),V(s),U(s.title,b),r("c:numFmt",{formatCode:s.number_format??"General",sourceLinked:s.number_format===void 0?1:0}),...I(s,s.visible===!1,Q(s)),n("c:crossAx",X),ee(a),n("c:crossBetween","midCat"),te(s,void 0),ne(s)):r("c:catAx",{},n("c:axId",D),R(s),n("c:delete",s.visible===!1),n("c:axPos",l?"l":"b"),V(s),U(s.title,b),t?.numeric===!0?r("c:numFmt",{formatCode:s.number_format??t.categoryFormat??"General",sourceLinked:s.number_format===void 0?1:0}):r("c:numFmt",{formatCode:"General",sourceLinked:0}),...I(s,s.visible===!1,Q(s)),n("c:crossAx",X),ee(a),n("c:auto",!0),n("c:lblAlgn","ctr"),n("c:lblOffset",100),s.label_interval===void 0?"":n("c:tickLblSkip",s.label_interval),n("c:noMultiLvlLbl",!1)))+r("c:valAx",{},n("c:axId",X),R(a),n("c:delete",a.visible===!1),n("c:axPos",l?"b":"l"),V(a),U(a.title,b),r("c:numFmt",{formatCode:u,sourceLinked:a.number_format===void 0&&!i?1:0}),...I(a,a.visible===!1,a.line_color===void 0?r("c:spPr",{},h(null)):Q(a)),n("c:crossAx",D),ee(s),n("c:crossBetween",K(e.type)||c?"midCat":"between"),te(a,c?void 0:o?.value),ne(a))+Xe(e,b,o?.secondary)}function Xe(e,t,o){const c=ae(e).find(i=>i.secondary);if(!c)return"";const l=e.secondary_axis??{},s=H(c.kind)==="percentStacked",a=l.number_format??(s?"0%":e.series[c.series[0]??0]?.number_format??"General");return r("c:catAx",{},n("c:axId",$),R({}),n("c:delete",!0),n("c:axPos","b"),r("c:numFmt",{formatCode:"General",sourceLinked:1}),...I({},!0,""),n("c:crossAx",z),n("c:crosses","autoZero"),n("c:auto",!0),n("c:lblAlgn","ctr"),n("c:lblOffset",100),n("c:noMultiLvlLbl",!1))+r("c:valAx",{},n("c:axId",z),R(l),n("c:delete",l.visible===!1),n("c:axPos","r"),V(l),U(l.title,t),r("c:numFmt",{formatCode:a,sourceLinked:l.number_format===void 0&&!s?1:0}),...I(l,l.visible===!1,r("c:spPr",{},h(null))),n("c:crossAx",$),n("c:crosses","max"),n("c:crossBetween","between"),te(l,o),ne(l))}const Ee={bottom:"b",top:"t",left:"l",right:"r"};function Ve(e,t){const o=t.width,c=t.height,{plot:l}=W(e,o,c),s=a=>Number(a.toFixed(5));return r("c:layout",{},r("c:manualLayout",{},n("c:layoutTarget","inner"),n("c:xMode","edge"),n("c:yMode","edge"),n("c:x",s(l.x/o)),n("c:y",s(l.y/c)),n("c:w",s(l.width/o)),n("c:h",s(l.height/c))))}const me=e=>r("c:numLit",{},"<c:formatCode>General</c:formatCode>",n("c:ptCount",e.length),...e.flatMap((t,o)=>t===null?[]:[r("c:pt",{idx:o},`<c:v>${String(t)}</c:v>`)])),Ue=/^(.*!)?\$?([A-Z]{1,3})\$?(\d+)(?::\$?([A-Z]{1,3})\$?(\d+))?$/;function We(e,t){const o=Ue.exec(e);if(!o)return;const[,c="",l="",s="",a,i]=o,u=Number(s)+t;if(!(a!==void 0&&a!==l||u>Number(i??s)))return`${c}$${l}$${String(u)}`}function He(e,t,o,c){const l=e.categories.length,s=e.categories.map((d,f)=>f+.5),a=(d,f,...x)=>r("c:ser",{},n("c:idx",d),n("c:order",d),f?ie(f,o.name(d)):"",...x,n("c:smooth",!1)),i=(d,f)=>r("c:xVal",{},r("c:numRef",{},`<c:f>${y(o.values(d))}</c:f>`,S(f.number_format,f.values))),u=d=>r("c:yVal",{},me(d)),b=r("c:spPr",{},r("a:ln",{w:19050},g(null))),_=r("c:marker",{},n("c:symbol","none")),p=(d,f)=>r("a:ln",{w:Math.round(f*12700),cap:"flat"},g(d)),v=(...d)=>r("c:scatterChart",{},n("c:scatterStyle","lineMarker"),n("c:varyColors",!1),...d,n("c:axId",$),n("c:axId",z));if(e.type==="bullet"){const d=Math.max(0,e.series.length-2),[f,x]=e.series,B=W(t,c?.width??360,c?.height??216),L=ye(t,B.plot.height);return E(t,Array.from({length:d},(re,pe)=>pe),o,!1)+v(f?a(d,f,b,_,r("c:errBars",{},n("c:errDir","x"),n("c:errBarType","minus"),n("c:errValType","cust"),n("c:noEndCap",!0),r("c:minus",{},r("c:numRef",{},`<c:f>${y(o.values(d))}</c:f>`,S(f.number_format,f.values))),r("c:spPr",{},p(M(f.color??F(0),f.transparency),L))),i(d,f),u(s)):"",x?a(d+1,x,b,_,r("c:errBars",{},n("c:errDir","y"),n("c:errBarType","both"),n("c:errValType","fixedVal"),n("c:noEndCap",!0),n("c:val",he),r("c:spPr",{},p(x.color??"tx1",ke))),i(d+1,x),u(s)):"")}const[m]=e.series,P=e.categories.map((d,f)=>{const x=e.series.map((L,re)=>We(o.values(re),f)),B=e.series.map(L=>L.values[f]??null);return a(1+f,void 0,r("c:spPr",{},p(G,we)),_,r("c:xVal",{},x.every(L=>L!==void 0)?r("c:numRef",{},`<c:f>${y(`(${x.join(",")})`)}</c:f>`,S(m?.number_format,B)):me(B)),u(e.series.map(()=>f+.5)))}),k=e.series.map((d,f)=>{const x=M(d.color??F(f),d.transparency);return a(1+l+f,d,b,r("c:marker",{},n("c:symbol",d.marker_symbol??"circle"),n("c:size",d.marker_size??9),r("c:spPr",{},g(x),h(x))),i(f,d),u(s))}),C={...t};return delete C.labels,(m?E({...C,series:[{...Ke(m),transparency:1}]},[0],o,!1):"")+v(...P,...k)}const Ke=e=>{const t={...e};return delete t.point_labels,t};function Ze(e){const t=(c,l,s,a)=>r("c:valAx",{},n("c:axId",c),R(a),n("c:delete",!0),n("c:axPos",s),r("c:numFmt",{formatCode:"General",sourceLinked:1}),...I({},!0,""),n("c:crossAx",l),n("c:crosses","autoZero"),n("c:crossBetween","midCat")),o=e.value_axis??{};return t($,z,"t",{...o.minimum_scale===void 0?{}:{minimum_scale:o.minimum_scale},...o.maximum_scale===void 0?{}:{maximum_scale:o.maximum_scale}})+t(z,$,"r",{minimum_scale:0,maximum_scale:Math.max(1,e.categories.length),reverse_order:!0})}const fe=r("c:spPr",{},r("a:noFill"),r("a:ln",{},r("a:noFill")));export function chartSpaceXml(e,t){if(xe(e.type)){const a=Pe(e),i=p=>a[p]??p,{x:u,sizes:b}=t.refs,_=ge(e);return chartSpaceXml(_?_e(e):ve(e,t.frame?.height??216),{...t,..._?{across:e}:{},refs:{...t.refs,name:p=>t.refs.name(i(p)),values:p=>t.refs.values(i(p)),...u?{x:p=>u(i(p))}:{},...b?{sizes:p=>b(i(p))}:{}}})}const o=e,c=o.title!==void 0&&o.title!==""?o.title:void 0,l=o.font_size??w.fontSize,s=Math.round((o.title_size??l*w.titleScale)*100);return Ie+r("c:chartSpace",{"xmlns:c":$e,"xmlns:a":ze,"xmlns:r":Re},n("c:date1904",!1),n("c:roundedCorners",!1),r("c:chart",{},c===void 0?"":r("c:title",{},r("c:tx",{},t.titleRef===void 0?ue(c,s):r("c:strRef",{},`<c:f>${y(t.titleRef)}</c:f>`,q([c]))),n("c:overlay",!1)),n("c:autoTitleDeleted",c===void 0),r("c:plotArea",{},t.frame?Ve(o,t.frame):r("c:layout"),t.across?He(t.across,o,t.refs,t.frame):je(o,t.refs),De(o,t.refs,W(o,t.frame?.width??360,t.frame?.height??216).scales),t.across?Ze(o):"",t.frameless===!0?fe:""),o.legend===void 0?"":r("c:legend",{},n("c:legendPos",Ee[o.legend]),...t.across?.type==="dumbbell"?Array.from({length:1+o.categories.length},(a,i)=>r("c:legendEntry",{},n("c:idx",i),n("c:delete",!0))):[],n("c:overlay",o.legend_overlay===!0)),n("c:plotVisOnly",t.plotVisible??!0),n("c:dispBlanksAs","gap")),t.frameless===!0?fe:"",Y(l,o.font_color??Ce),t.tail??"")}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
-
import{format as Zt,isValidFormat as Ut}from"numfmt";export const CHART_DEFAULTS={fontSize:12,titleScale:1.2,gapWidth:150,holeSize:50,margin:6,gridline:"#D9D9D9",axisLine:"#BFBFBF",letter:.55,lineWidth:2.25,gridWidth:.75,marker:5};const jt=["accent1","accent2","accent3","accent4","accent5","accent6"];export const accentOf=t=>jt[t%jt.length]??"accent1",isBar=t=>t.startsWith("column")||t.startsWith("bar"),isHorizontal=t=>t.startsWith("bar"),isLine=t=>t.startsWith("line"),isArea=t=>t.startsWith("area"),isRound=t=>t==="pie"||t==="doughnut",isScatter=t=>t.startsWith("scatter"),hasLines=t=>!isScatter(t)||t!=="scatter",hasMarkers=t=>t==="line-markers"||t==="scatter"||t==="scatter-lines",groupingOf=t=>t.endsWith("-100")?"percentStacked":t.endsWith("-stacked")?"stacked":isBar(t)?"clustered":"standard";export function labelPositionsOf(t){return isArea(t)||t==="doughnut"?[]:t==="pie"?["bestFit","outEnd","inEnd","ctr"]:isLine(t)||isScatter(t)?["t","b","l","r","ctr"]:groupingOf(t)==="clustered"?["outEnd","inEnd","ctr","inBase"]:["inEnd","ctr","inBase"]}export function labelPositionOf(t){const c=labelPositionsOf(t.type),h=t.labels?.position;if(h!==void 0&&c.includes(h))return h;if(c.length!==0)return t.type==="pie"?"ctr":isLine(t.type)||isScatter(t.type)?"t":groupingOf(t.type)==="clustered"?"outEnd":"ctr"}export const isCombinable=t=>t.startsWith("column")||isLine(t)||isArea(t);export function groupsOf(t){const c=isCombinable(t.type),h=[];if(t.series.forEach((n,i)=>{const o=n.type!==void 0&&c&&isCombinable(n.type)?n.type??t.type:t.type,S=c&&n.secondary===!0,_=h.find(A=>A.kind===o&&A.secondary===S);_?_.series.push(i):h.push({kind:o,secondary:S,series:[i]})}),h.every(n=>n.secondary))for(const n of h)n.secondary=!1;const r=n=>(n.secondary?3:0)+(isArea(n.kind)?0:isBar(n.kind)?1:2);return h.sort((n,i)=>r(n)-r(i))}export const variesOf=t=>t.vary_by_categories??isRound(t.type);export function formatValue(t,c="General"){return c==="General"||!Ut(c)?String(Number(t.toPrecision(10))):Zt(c,t)}const qt=[1,2,5,10];export function chartScale(t,c,h,r,n={}){const i=t>0&&(c-t)/c<.16666666666666666?t:Math.min(t,0),a=c<=0&&t<0?0:c,o=n.minimum_scale??i,S=n.maximum_scale??a,_=S>o?S-o:1,A=Math.max(1,Math.floor(h/r)),k=_/A,O=10**Math.floor(Math.log10(k)),T=n.major_unit??(qt.find(E=>E*O>=k)??10)*O,D=(E,P)=>Number((P(Number((E/T).toFixed(9)))*T).toPrecision(12)),U=a>0?a+_*.05:a===i?_:a,x=n.maximum_scale??D(U,Math.ceil),tt=i<0?i-_*.05:i,N=n.minimum_scale??D(tt,Math.floor),B=[],M=Math.round((x-N)/T);for(let E=0;E<=M;E++)B.push(Number((N+E*T).toPrecision(12)));return{min:N,max:x,major:T,ticks:B}}const Jt=[278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584],it=(t,c)=>{let h=0;for(const r of t){const n=r.codePointAt(0)??0,i=Jt[n-32];h+=i!==void 0?i/1e3:n>11903?1:CHART_DEFAULTS.letter}return h*c},m=t=>String(Number(t.toFixed(3)));function Nt(t){const c=h=>t[Math.max(0,Math.min(t.length-1,h))]??[0,0];return t.map(([h,r],n)=>{if(n===0)return`M${m(h)} ${m(r)}`;const[i,a]=c(n-2),[o,S]=c(n-1),[_,A]=c(n+1),k=`${m(o+(h-i)/6)} ${m(S+(r-a)/6)}`,O=`${m(h-(_-o)/6)} ${m(r-(A-S)/6)}`;return`C${k} ${O} ${m(h)} ${m(r)}`}).join(" ")}const xt=t=>t.map(([c,h],r)=>`${r===0?"M":"L"}${m(c)} ${m(h)}`).join(" ");function Kt(t,c,h,r,n,i){const a=(A,k)=>`${m(t+A*Math.sin(k))} ${m(c-A*Math.cos(k))}`,o=i-n>=Math.PI*2?n+Math.PI*2-1e-4:i,S=o-n>Math.PI?1:0,_=`M${a(h,n)} A${m(h)} ${m(h)} 0 ${String(S)} 1 ${a(h,o)}`;return r<=0?`${_} L${m(t)} ${m(c)} Z`:`${_} L${a(r,o)} A${m(r)} ${m(r)} 0 ${String(S)} 0 ${a(r,n)} Z`}function Tt(t,c,h,r){const n=r*1.5;return c!==void 0&&c!==""&&(t.bottom-=n),h!==void 0&&h!==""&&(t.left+=n),{x:t.left-n/2,y:t.bottom+n/2}}function Bt(t,c,h,r,n,i,a){r!==void 0&&r!==""&&t.words.push({x:c.x+c.width/2,y:h.y,text:r,size:i,anchor:"middle",color:a}),n!==void 0&&n!==""&&t.words.push({x:h.x,y:c.y+c.height/2,text:n,size:i,anchor:"middle",color:a,rotate:-90})}const yt=(t,c,h,r,n)=>{const i=t.labels;if(!i)return"";const a=isRound(t.type),o=[];return i.show_series_name&&o.push(r.name),i.show_category_name&&o.push(n),(i.show_value??!(i.show_percentage??!1))&&o.push(formatValue(c,i.number_format??r.number_format)),i.show_percentage&&a&&o.push(formatValue(h,i.number_format??"0%")),o.join(", ")};function Qt(t,c,h,r,n){const i=CHART_DEFAULTS,a=t.category_axis??{},o=t.value_axis??{},S=Tt(h,a.title,o.title,r),_=t.series.map(p=>p.values.flatMap((v,R)=>{const z=p.x?.[R]??(p.x?null:R+1);return z===null||v===null?[]:[[z,v]]})),A=_.flat().map(p=>p[0]),k=_.flat().map(p=>p[1]),O=p=>p.length>0?Math.min(...p):0,T=p=>p.length>0?Math.max(...p):1,D=o.number_format??t.series[0]?.number_format??"General",U=a.number_format??"General",x=r*.5,tt=chartScale(O(k),T(k),h.bottom-h.top,r*2.4,o),N=o.visible===!1?0:Math.max(0,...tt.ticks.map(p=>it(formatValue(p,D),r)))+x,B=a.visible===!1?0:r*1.2+x,M={x:h.left+N,y:h.top,width:h.right-h.left-N,height:h.bottom-h.top-B};c.plot=M,Bt(c,M,S,a.title,o.title,r,n);const E=chartScale(O(A),T(A),M.width,r*5,a),P=chartScale(O(k),T(k),M.height,r*2.4,o),H=p=>M.x+(Math.min(E.max,Math.max(E.min,p))-E.min)/(E.max-E.min)*M.width,C=p=>M.y+M.height-(Math.min(P.max,Math.max(P.min,p))-P.min)/(P.max-P.min)*M.height;for(const p of P.ticks){const v=C(p);(o.has_major_gridlines??!0)&&c.grid.push({d:`M${m(M.x)} ${m(v)} H${m(M.x+M.width)}`,color:o.gridline_color??{rgb:i.gridline},width:i.gridWidth}),o.visible!==!1&&c.words.push({x:M.x-x,y:v,text:formatValue(p,D),size:r,anchor:"end",color:n})}for(const p of E.ticks){const v=H(p);a.has_major_gridlines===!0&&c.grid.push({d:`M${m(v)} ${m(M.y)} V${m(M.y+M.height)}`,color:a.gridline_color??{rgb:i.gridline},width:i.gridWidth}),a.visible!==!1&&c.words.push({x:v,y:M.y+M.height+x+r*.6,text:formatValue(p,U),size:r,anchor:"middle",color:n})}c.axes.push({d:`M${m(M.x)} ${m(C(Math.max(P.min,Math.min(P.max,0))))} H${m(M.x+M.width)}`,color:a.line_color??{rgb:i.axisLine},width:i.gridWidth}),t.series.forEach((p,v)=>{const R=p.color??accentOf(v),z=(_[v]??[]).map(([Z,q])=>[H(Z),C(q)]);if(z.length!==0&&(hasLines(t.type)&&c.lines.push({d:t.type==="scatter-smooth"||p.smooth===!0?Nt(z):xt(z),color:R,width:p.line_width??i.lineWidth,series:v}),hasMarkers(t.type)))for(const[Z,q]of z)c.dots.push({x:Z,y:q,r:(p.marker_size??i.marker)/2,color:R})})}export function chartDrawing(t,c,h){const r=CHART_DEFAULTS,n=t.font_size??r.fontSize,i=t.font_color??"dk1",a={grid:[],shapes:[],boxes:[],lines:[],axes:[],dots:[],keys:[],words:[],plot:{x:0,y:0,width:0,height:0}},o={left:r.margin,top:r.margin,right:c-r.margin,bottom:h-r.margin};if(t.title!==void 0&&t.title!==""){const e=t.title_size??n*r.titleScale,s=t.title.split(`
|
|
3
|
-
`);s.forEach((g,l)=>{a.words.push({x:c/2,y:o.top+e*(.7+l*1.2),text:g,size:e,anchor:"middle",color:i})}),o.top+=e*(1.6+(s.length-1)*1.2)}const S=isRound(t.type),_=variesOf(t),A=(e,s)=>_?t.category_colors?.[s]??accentOf(s):t.series[e]?.color??accentOf(e);if(t.legend!==void 0){const e=_?t.categories:t.series.map(d=>d.name),s=n*.6,g=n*.4,l=n*1.5,y=e.map(d=>s+g+it(d,n)),j=(d,w,f)=>{a.keys.push({x:w,y:f-s/2,width:s,height:s,color:_?t.category_colors?.[d]??accentOf(d):t.series[d]?.color??accentOf(d),series:_?0:d,category:_?d:0}),a.words.push({x:w+s+g,y:f,text:e[d]??"",size:n,anchor:"start",color:i})};if(t.legend==="top"||t.legend==="bottom"){const d=y.reduce((W,b)=>W+b,0)+n*(e.length-1),w=t.legend==="top"?o.top+l/2:o.bottom-l/2;let f=(c-d)/2;e.forEach((W,b)=>{j(b,f,w),f+=(y[b]??0)+n}),t.legend_overlay!==!0&&(t.legend==="top"?o.top+=l:o.bottom-=l)}else{const d=Math.max(0,...y),w=t.legend==="left"?o.left:o.right-d,f=(o.top+o.bottom-l*e.length)/2+l/2;e.forEach((W,b)=>{j(b,w,f+b*l)}),t.legend_overlay!==!0&&(t.legend==="left"?o.left+=d+n:o.right-=d+n)}}const k=t.labels,O=k?.size??n,T=k?.color??i,D=(e,s,g,l,y=T)=>{g!==""&&a.words.push({x:e,y:s,text:g,size:O,anchor:l,color:y})};if(S){const e=t.series[0],s=(e?.values??[]).map(f=>Math.max(0,f??0)),g=s.reduce((f,W)=>f+W,0),l=Math.max(0,Math.min(o.right-o.left,o.bottom-o.top)/2),y=(o.left+o.right)/2,j=(o.top+o.bottom)/2,d=t.type==="doughnut"?l*((t.hole_size??r.holeSize)/100):0;a.plot={x:y-l,y:j-l,width:l*2,height:l*2};let w=0;return s.forEach((f,W)=>{const b=g>0?f/g:0,$=w+b*Math.PI*2;if(b>0){a.shapes.push({d:Kt(y,j,l,d,w,$),color:"lt1",width:1,fill:A(0,W),series:0,category:W});const I=(w+$)/2,V=d>0?(l+d)/2:labelPositionOf(t)==="inEnd"?l*.85:l*.6;e&&D(y+V*Math.sin(I),j-V*Math.cos(I),yt(t,f,b,e,t.categories[W]??""),"middle",k?.color??"lt1")}w=$}),a}if(isScatter(t.type))return Qt(t,a,o,n,i),a;const U=Math.max(1,t.categories.length),x=isHorizontal(t.type),tt=groupsOf(t),N=t.series.map(e=>t.categories.map((s,g)=>e.values[g]??null)),B=tt.map(e=>{const s=groupingOf(e.kind),g=s!=="clustered"&&s!=="standard",l=s==="percentStacked",y=t.categories.map((j,d)=>e.series.reduce((w,f)=>w+Math.abs(N[f]?.[d]??0),0));return{...e,stacked:g,percent:l,totals:y}}),M=(e,s,g)=>{const l=N[s]?.[g];if(l==null)return null;const y=e.totals[g]??0;return e.percent?y>0?l/y:0:l},E=e=>{let s=0,g=0,l=1/0,y=!1;for(const f of B)if(f.secondary===e&&(y||=f.percent,t.categories.forEach((W,b)=>{let $=0,I=0;for(const V of f.series){const L=M(f,V,b)??0;f.stacked?L>=0?$+=L:I+=L:($=Math.max($,L),I=Math.min(I,L))}g=Math.max(g,$),s=Math.min(s,I)}),!f.stacked))for(const W of f.series)for(const b of N[W]??[])b!==null&&(l=Math.min(l,b));B.every(f=>f.secondary!==e||!f.stacked)&&Number.isFinite(l)&&l>0&&(s=l),y&&(g=1,s=Math.min(s,0));const d=B.find(f=>f.secondary===e),w=d===void 0?void 0:d.series[0];return{low:s,high:g,percent:y,format:w===void 0?void 0:t.series[w]?.number_format}},P=E(!1),H=B.some(e=>e.secondary)?E(!0):void 0,C=t.value_axis??{},p=t.secondary_axis??{},v=t.category_axis??{},R=C.number_format??(P.percent?"0%":P.format??"General"),z=p.number_format??(H?.percent===!0?"0%":H?.format??"General"),Z=(e,s,g,l)=>chartScale(e.low,e.high,g,l,{...s,...e.percent?{maximum_scale:s.maximum_scale??1}:{}}),q=x?o.right-o.left:o.bottom-o.top,at=x?n*5:n*2.4,Dt=Z(P,C,q,at),bt=C.visible===!1?[]:Dt.ticks.map(e=>formatValue(e,R)),wt=Math.max(0,...bt.map(e=>it(e,n))),Mt=H===void 0||p.visible===!1?0:Math.max(0,...Z(H,p,q,at).ticks.map(e=>it(formatValue(e,z),n))),ct=v.visible!==!1,_t=ct?Math.max(0,...t.categories.map(e=>it(e,n))):0,G=n*.5,$t=x?C.title:v.title,kt=x?v.title:C.title,Ht=Tt(o,$t,kt,n),lt=H===void 0?void 0:p.title,vt=n*1.5,Wt=lt!==void 0&<!==""?(o.right-=vt)+vt/2:void 0,u=x?{x:o.left+(ct?_t+G:0),y:o.top,width:0,height:o.bottom-o.top-(C.visible===!1?0:n*1.2+G)}:{x:o.left+(C.visible===!1?0:wt+G),y:o.top,width:0,height:o.bottom-o.top-(ct?n*1.2+G:0)};u.width=o.right-u.x-(x&&bt.length>0?wt/2:0)-(Mt>0?Mt+G:0),a.plot=u,Bt(a,u,Ht,$t,kt,n,i),Wt!==void 0&<!==void 0&&a.words.push({x:Wt,y:u.y+u.height/2,text:lt,size:n,anchor:"middle",color:i,rotate:-90});const ut=x?u.width:u.height,et=Z(P,C,ut,at),nt=H===void 0?void 0:Z(H,p,ut,at),Et=(e,s)=>(Math.min(e.max,Math.max(e.min,s))-e.min)/(e.max-e.min)*ut,mt=(e,s)=>x?u.x+Et(e,s):u.y+u.height-Et(e,s),St=e=>mt(et,e),At=B.every(e=>isArea(e.kind)),Ot=v.reverse_order===!0,Pt=x?!Ot:Ot,pt=(x?u.height:u.width)/U,Ct=At?(x?u.height:u.width)/Math.max(1,U-1):pt,gt=e=>{const s=At?e*Ct:(e+.5)*pt,g=x?u.height:u.width,l=Pt?g-s:s;return(x?u.y:u.x)+l},It=St(Math.max(et.min,Math.min(et.max,0)));for(const e of et.ticks){const s=St(e);(C.has_major_gridlines??!0)&&a.grid.push({d:x?`M${m(s)} ${m(u.y)} V${m(u.y+u.height)}`:`M${m(u.x)} ${m(s)} H${m(u.x+u.width)}`,color:C.gridline_color??{rgb:r.gridline},width:r.gridWidth}),C.visible!==!1&&a.words.push(x?{x:s,y:u.y+u.height+G+n*.6,text:formatValue(e,R),size:n,anchor:"middle",color:i}:{x:u.x-G,y:s,text:formatValue(e,R),size:n,anchor:"end",color:i})}if(nt&&p.visible!==!1)for(const e of nt.ticks)a.words.push({x:u.x+u.width+G,y:mt(nt,e),text:formatValue(e,z),size:n,anchor:"start",color:i});if(a.axes.push({d:x?`M${m(It)} ${m(u.y)} V${m(u.y+u.height)}`:`M${m(u.x)} ${m(It)} H${m(u.x+u.width)}`,color:v.line_color??{rgb:r.axisLine},width:r.gridWidth}),ct){const e=x?n*1.3:_t+n,s=Math.max(1,Math.ceil(e/Math.max(1,Ct)));t.categories.forEach((g,l)=>{if(l%s!==0)return;const y=gt(l);a.words.push(x?{x:u.x-G,y,text:g,size:n,anchor:"end",color:i}:{x:y,y:u.y+u.height+G+n*.6,text:g,size:n,anchor:"middle",color:i})})}for(const e of B){const s=e.secondary&&nt?nt:et,g=y=>mt(s,y),l={type:e.kind,...t.labels===void 0?{}:{labels:t.labels}};isBar(e.kind)?zt(e,g,l):Gt(e,g,l)}return a;function zt(e,s,g){const l=(t.gap_width??r.gapWidth)/100,y=e.stacked?1:e.series.length,j=e.stacked?1:(t.overlap??0)/100,d=pt/(Math.max(1,y-(y-1)*j)+l),w=d*(1-j),f=d+w*(y-1);t.categories.forEach((W,b)=>{const $=gt(b);let I=0,V=0;e.series.forEach((L,ot)=>{const J=t.series[L],F=M(e,L,b);if(F===null||!J)return;const ht=e.stacked?F>=0?I:V:0,st=ht+F;e.stacked&&(F>=0?I=st:V=st);const K=s(ht),Q=s(st),dt=(e.stacked?$-d/2:$-f/2+ot*w)+(x&&Pt&&!e.stacked?f-d-2*ot*w:0),Vt=x?{x:Math.min(K,Q),y:dt,width:Math.abs(Q-K),height:d}:{x:dt,y:Math.min(K,Q),width:d,height:Math.abs(Q-K)};if(a.boxes.push({...Vt,color:A(L,b),series:L,category:b}),!k)return;const Lt=yt(t,N[L]?.[b]??0,0,J,t.categories[b]??""),ft=labelPositionOf(g),X=O*.8,Rt=F>=0?1:-1,Ft=(rt,Y)=>ft==="ctr"?(rt+Y)/2:ft==="inBase"?rt+(Y>rt?X:-X):ft==="inEnd"?Y-(Y>rt?X:-X):Y+(Y>=rt?X:-X);x?D(Ft(K,Q),dt+d/2,Lt,ft==="outEnd"?Rt>0?"start":"end":"middle"):D(dt+d/2,Ft(K,Q),Lt,"middle")})})}function Gt(e,s,g){const l=t.categories.map(()=>0),y=e.series.map(d=>{const w=t.series[d],f=[],W=[];return t.categories.forEach((b,$)=>{const I=M(e,d,$);if(I===null||!w)return;const V=e.stacked?l[$]??0:0,L=V+I;e.stacked&&(l[$]=L);const ot=gt($),J=F=>x?[s(F),ot]:[ot,s(F)];if(f.push(J(L)),W.push(J(V)),isLine(e.kind)&&k){const F=labelPositionOf(g),[ht,st]=J(L);D(ht+(F==="r"?O:F==="l"?-O:0),st+(F==="t"?-O:F==="b"?O:0),yt(t,N[d]?.[$]??0,0,w,t.categories[$]??""),F==="r"?"start":F==="l"?"end":"middle")}}),{series:w,s:d,points:f,base:W}}),j=[];for(const{series:d,s:w,points:f,base:W}of y){if(!d)continue;const b=d.color??accentOf(w);if(isArea(e.kind)&&f.length>0)j.push({d:`${xt([...f,...[...W].reverse()])} Z`,color:b,width:0,fill:b,series:w});else if(f.length>0&&(a.lines.push({d:d.smooth===!0?Nt(f):xt(f),color:b,width:d.line_width??r.lineWidth,series:w}),hasMarkers(e.kind)))for(const[$,I]of f)a.dots.push({x:$,y:I,r:(d.marker_size??r.marker)/2,color:b})}a.shapes.push(...j.reverse())}}
|
|
2
|
+
import{format as fe,isValidFormat as me}from"numfmt";import{acrossDrawing as pe,isAcross as ge,isRadar as xe,isRecipe as _e,isStock as ye,radarDrawing as be,recipeDef as Me,stockDrawing as we}from"./classic.js";import{categoryFrame as ke,extendedDrawing as $e,extendedLegend as ve,isExtended as re}from"./extended.js";export const DASH_ARRAYS={solid:[],dot:[1,3],dash:[4,3],lgDash:[8,3],dashDot:[4,3,1,3],lgDashDot:[8,3,1,3],lgDashDotDot:[8,3,1,3,1,3],sysDash:[3,1],sysDot:[1,1],sysDashDot:[3,1,1,1],sysDashDotDot:[3,1,1,1,1,1]};export function seeThrough(t,a){if(a===void 0||a<=0)return t;const l={name:"alpha",value:Math.max(0,1-a)};return typeof t=="string"?{theme_color:t,transforms:[l]}:"rgb"in t?{rgb:t.rgb,transforms:[...t.transforms??[],l]}:"transforms"in t?{theme_color:t.theme_color,transforms:[...t.transforms,l]}:t}export function markerPath(t,a,l,c){const o=n=>`M${n.map(([p,r])=>`${d(a+p*c)} ${d(l+r*c)}`).join(" L")} Z`;switch(t){case void 0:case"circle":case"none":return;case"square":return o([[-1,-1],[1,-1],[1,1],[-1,1]]);case"diamond":return o([[0,-1.2],[1.2,0],[0,1.2],[-1.2,0]]);case"triangle":return o([[0,-1.2],[1.1,.9],[-1.1,.9]]);case"dash":return o([[-1,-.25],[1,-.25],[1,.25],[-1,.25]]);case"dot":return o([[-.4,-.4],[.4,-.4],[.4,.4],[-.4,.4]]);case"plus":return o([[-.25,-1],[.25,-1],[.25,-.25],[1,-.25],[1,.25],[.25,.25],[.25,1],[-.25,1],[-.25,.25],[-1,.25],[-1,-.25],[-.25,-.25]]);case"x":return o([[-1,-.7],[-.7,-1],[0,-.3],[.7,-1],[1,-.7],[.3,0],[1,.7],[.7,1],[0,.3],[-.7,1],[-1,.7],[-.3,0]]);case"star":{const n=[];for(let p=0;p<10;p++){const r=-Math.PI/2+p*Math.PI/5,h=p%2===0?1.2:.5;n.push([Math.cos(r)*h,Math.sin(r)*h])}return o(n)}}}export function pointLabelPosition(t,a){const l=t[a];if(l==null)return"t";const c=t[a-1],o=t[a+1],n=p=>p!=null;return!n(c)||!n(o)?n(c)&&l<c||n(o)&&l<o?"b":"t":l<c&&l<o?"b":l>c&&l>o?"t":l>c?"l":"r"}export const DISPLAY_UNITS={hundreds:100,thousands:1e3,tenThousands:1e4,hundredThousands:1e5,millions:1e6,tenMillions:1e7,hundredMillions:1e8,billions:1e9,trillions:1e12},DISPLAY_UNIT_WORDS={hundreds:"Hundreds",thousands:"Thousands",tenThousands:"10000",hundredThousands:"100000",millions:"Millions",tenMillions:"10000000",hundredMillions:"100000000",billions:"Billions",trillions:"Trillions"};export function labelsAt(t,a,l){const c=a.labels===void 0?t.labels:a.labels;if(c)return c.points===void 0||c.points.includes(l)?c:void 0}export const CHART_INK="tx1",CHART_GRID={theme_color:"tx1",transforms:[{name:"alpha",value:.15}]},CHART_AXIS={theme_color:"tx1",transforms:[{name:"alpha",value:.25}]},CHART_DEFAULTS={fontSize:12,titleScale:1.2,gapWidth:150,holeSize:50,margin:6,gridline:"#D9D9D9",axisLine:"#BFBFBF",letter:.55,lineWidth:2.25,gridWidth:.75,marker:5};const ie=["accent1","accent2","accent3","accent4","accent5","accent6"];export const accentOf=t=>ie[t%ie.length]??"accent1",isBar=t=>t.startsWith("column")||t.startsWith("bar"),isHorizontal=t=>t.startsWith("bar"),isLine=t=>t.startsWith("line"),isArea=t=>t.startsWith("area"),isRound=t=>t==="pie"||t==="doughnut",isScatter=t=>t.startsWith("scatter")||t==="bubble",hasLines=t=>!isScatter(t)||t!=="scatter"&&t!=="bubble",hasMarkers=t=>t==="line-markers"||t==="scatter"||t==="scatter-lines"||t==="radar-markers",groupingOf=t=>t.endsWith("-100")?"percentStacked":t.endsWith("-stacked")?"stacked":isBar(t)?"clustered":"standard";export function labelPositionsOf(t){return isArea(t)||t==="doughnut"||t==="box-whisker"||t.startsWith("radar")||t.startsWith("stock")?[]:t==="waterfall"?["outEnd","inEnd","ctr","inBase"]:t==="pie"?["bestFit","outEnd","inEnd","ctr"]:isLine(t)||isScatter(t)?["t","b","l","r","ctr"]:groupingOf(t)==="clustered"?["outEnd","inEnd","ctr","inBase"]:["inEnd","ctr","inBase"]}export function labelPositionOf(t){const a=labelPositionsOf(t.type),l=t.labels?.position;if(l!==void 0&&a.includes(l))return l;if(a.length!==0)return t.type==="pie"?"ctr":t.type==="waterfall"?"outEnd":isLine(t.type)||isScatter(t.type)?"t":groupingOf(t.type)==="clustered"?"outEnd":"ctr"}export const isCombinable=t=>t.startsWith("column")||isLine(t)||isArea(t);export function groupsOf(t){const a=isCombinable(t.type),l=[];if(t.series.forEach((o,n)=>{const r=o.type!==void 0&&a&&isCombinable(o.type)?o.type??t.type:t.type,h=a&&o.secondary===!0,B=l.find(j=>j.kind===r&&j.secondary===h);B?B.series.push(n):l.push({kind:r,secondary:h,series:[n]})}),l.every(o=>o.secondary))for(const o of l)o.secondary=!1;const c=o=>(o.secondary?3:0)+(isArea(o.kind)?0:isBar(o.kind)?1:2);return l.sort((o,n)=>c(o)-c(n))}export const variesOf=t=>t.vary_by_categories??isRound(t.type);export function formatValue(t,a="General"){return a==="General"||!me(a)?String(Number(t.toPrecision(10))):fe(a,t)}export function scaleShare(t,a){const l=Math.min(t.max,Math.max(t.min,a));if(t.log!==void 0){const c=Math.log(t.min),o=Math.log(t.max);return o>c?(Math.log(Math.max(l,t.min))-c)/(o-c):0}return t.max>t.min?(l-t.min)/(t.max-t.min):0}const We=[1,2,5,10];export function chartScale(t,a,l,c,o={}){const n=o.log_base;if(n!==void 0&&n>=2){const F=t>0?t:a>0?Math.min(a,1):1,q=(it,mt)=>n**mt(Number((Math.log(it)/Math.log(n)).toFixed(9))),g=o.minimum_scale??q(F,Math.floor),C=Math.max(o.maximum_scale??q(Math.max(a,F),Math.ceil),g*n),S=[];for(let it=g;it<=C*(1+1e-9);it*=n)S.push(Number(it.toPrecision(12)));return{min:g,max:C,major:n,ticks:S,log:n}}const p=t>0&&(a-t)/a<1/6?t:Math.min(t,0),r=a<=0&&t<0?0:a,h=o.minimum_scale??p,B=o.maximum_scale??r,j=B>h?B-h:1,V=Math.max(1,Math.floor(l/c)),Q=j/V,L=10**Math.floor(Math.log10(Q)),st=(We.find(F=>F*L>=Q)??10)*L,G=o.major_unit,Y=G!==void 0&&G>0&&j/G<=1e3?G:st,tt=(F,q)=>Number((q(Number((F/Y).toFixed(9)))*Y).toPrecision(12)),M=r>0?r+j*.05:r===p?j:r,yt=o.maximum_scale??tt(M,Math.ceil),rt=p<0?p-j*.05:p,Z=o.minimum_scale??tt(rt,Math.floor),K=[],bt=Math.round((yt-Z)/Y);for(let F=0;F<=bt;F++)K.push(Number((Z+F*Y).toPrecision(12)));return{min:Z,max:yt,major:Y,ticks:K}}const Ee=[278,278,355,556,556,889,667,191,333,333,389,584,278,333,278,278,556,556,556,556,556,556,556,556,556,556,278,278,584,584,584,556,1015,667,667,722,722,667,611,778,722,278,500,667,556,833,722,778,667,778,722,667,611,722,667,944,667,667,611,278,278,278,469,556,333,556,556,500,556,556,278,556,556,222,222,500,222,833,556,556,556,556,333,500,278,556,500,722,500,500,500,334,260,334,584];export function wrapWords(t,a,l,c=textWidth){const o=[];let n="";for(const p of t.split(/\s+/u).filter(r=>r!=="")){const r=n===""?p:`${n} ${p}`;n!==""&&c(r,l)>a?(o.push(n),n=p):n=r}return o.push(n),o}export const textWidth=(t,a)=>{let l=0;for(const c of t){const o=c.codePointAt(0)??0,n=Ee[o-32];l+=n!==void 0?n/1e3:o>11903?1:CHART_DEFAULTS.letter}return l*a};const d=t=>String(Number(t.toFixed(3)));function ae(t){const a=l=>t[Math.max(0,Math.min(t.length-1,l))]??[0,0];return t.map(([l,c],o)=>{if(o===0)return`M${d(l)} ${d(c)}`;const[n,p]=a(o-2),[r,h]=a(o-1),[B,j]=a(o+1),V=`${d(r+(l-n)/6)} ${d(h+(c-p)/6)}`,Q=`${d(l-(B-r)/6)} ${d(c-(j-h)/6)}`;return`C${V} ${Q} ${d(l)} ${d(c)}`}).join(" ")}const zt=t=>t.map(([a,l],c)=>`${c===0?"M":"L"}${d(a)} ${d(l)}`).join(" ");function Se(t,a,l,c,o,n){const p=(j,V)=>`${d(t+j*Math.sin(V))} ${d(a-j*Math.cos(V))}`,r=n-o>=Math.PI*2?o+Math.PI*2-1e-4:n,h=r-o>Math.PI?1:0,B=`M${p(l,o)} A${d(l)} ${d(l)} 0 ${String(h)} 1 ${p(l,r)}`;return c<=0?`${B} L${d(t)} ${d(a)} Z`:`${B} L${p(c,r)} A${d(c)} ${d(c)} 0 ${String(h)} 0 ${p(c,o)} Z`}export function axisTitleRoom(t,a,l,c){const o=c*1.5;return a!==void 0&&a!==""&&(t.bottom-=o),l!==void 0&&l!==""&&(t.left+=o),{x:t.left-o/2,y:t.bottom+o/2}}export function axisTitleWords(t,a,l,c,o,n,p){c!==void 0&&c!==""&&t.words.push({x:a.x+a.width/2,y:l.y,text:c,size:n,anchor:"middle",color:p}),o!==void 0&&o!==""&&t.words.push({x:l.x,y:a.y+a.height/2,text:o,size:n,anchor:"middle",color:p,rotate:-90})}const Ot=(t,a,l,c,o,n)=>{if(!n)return"";const p=isRound(t.type),r=[];return n.show_series_name&&r.push(c.name),n.show_category_name&&r.push(o),(n.show_value??!(n.show_percentage??!1))&&r.push(formatValue(a,n.number_format??c.number_format)),n.show_percentage&&p&&r.push(formatValue(l,n.number_format??"0%")),r.join(", ")};function De(t,a,l,c,o,n=textWidth){const p=CHART_DEFAULTS,r=t.category_axis??{},h=t.value_axis??{},B=axisTitleRoom(l,r.title,h.title,c),j=Math.max(1e-9,...t.series.flatMap(b=>b.values.flatMap((T,et)=>{const X=b.x?.[et]??(b.x?null:et+1);return T===null||X===null?[]:[b.sizes?.[et]??1]}))),V=t.series.map(b=>b.values.flatMap((T,et)=>{const X=b.x?.[et]??(b.x?null:et+1);return X===null||T===null?[]:[[X,T]]})),Q=V.flat().map(b=>b[0]),L=V.flat().map(b=>b[1]),st=b=>b.length>0?Math.min(...b):0,G=b=>b.length>0?Math.max(...b):1,Y=h.number_format??t.series[0]?.number_format??"General",tt=r.number_format??"General",M=c*.5,yt=chartScale(st(L),G(L),l.bottom-l.top,c*2.4,h),rt=h.visible!==!1&&h.tick_label_position!=="none",Z=r.visible!==!1&&r.tick_label_position!=="none",K=rt?Math.max(0,...yt.ticks.map(b=>n(formatValue(b,Y),c)))+M:0,bt=Z?c*1.2+M:0,F=chartScale(st(Q),G(Q),l.right-l.left-K,c*5,r),q=Z?n(formatValue(F.max,tt),c)/2:0,g={x:l.left+K,y:l.top,width:l.right-l.left-K-q,height:l.bottom-l.top-bt};a.plot=g,axisTitleWords(a,g,B,r.title,h.title,c,o);const C=chartScale(st(Q),G(Q),g.width,c*5,r),S=chartScale(st(L),G(L),g.height,c*2.4,h),it=b=>g.x+(Math.min(C.max,Math.max(C.min,b))-C.min)/(C.max-C.min)*g.width,mt=b=>g.y+g.height-(Math.min(S.max,Math.max(S.min,b))-S.min)/(S.max-S.min)*g.height;for(const b of S.ticks){const T=mt(b);(h.has_major_gridlines??!0)&&a.grid.push({d:`M${d(g.x)} ${d(T)} H${d(g.x+g.width)}`,color:h.gridline_color??CHART_GRID,width:p.gridWidth}),rt&&a.words.push({x:g.x-M,y:T,text:formatValue(b,Y),size:c,anchor:"end",color:o})}for(const b of C.ticks){const T=it(b);r.has_major_gridlines===!0&&a.grid.push({d:`M${d(T)} ${d(g.y)} V${d(g.y+g.height)}`,color:r.gridline_color??CHART_GRID,width:p.gridWidth}),Z&&a.words.push({x:T,y:g.y+g.height+M+c*.6,text:formatValue(b,tt),size:c,anchor:"middle",color:o})}const xt=(b,T)=>b.crosses_at??(b.crosses==="min"?T.min:b.crosses==="max"?T.max:Math.max(T.min,Math.min(T.max,0)));a.axes.push({d:`M${d(g.x)} ${d(mt(xt(h,S)))} H${d(g.x+g.width)}`,color:r.line_color??CHART_AXIS,width:p.gridWidth}),(r.crosses_at!==void 0||r.crosses!==void 0)&&a.axes.push({d:`M${d(it(xt(r,C)))} ${d(g.y)} V${d(g.y+g.height)}`,color:h.line_color??CHART_AXIS,width:p.gridWidth}),t.series.forEach((b,T)=>{const et=b.color??accentOf(T),X=(V[T]??[]).map(([nt,A])=>[it(nt),mt(A)]);if(X.length!==0){if(hasLines(t.type)&&a.lines.push({d:t.type==="scatter-smooth"||b.smooth===!0?ae(X):zt(X),color:et,width:b.line_width??p.lineWidth,series:T}),hasMarkers(t.type))for(const[nt,A]of X)a.dots.push({x:nt,y:A,r:(b.marker_size??p.marker)/2,color:et});if(t.type==="bubble"){const nt=b.values.flatMap((A,at)=>{const U=b.x?.[at]??(b.x?null:at+1);return A===null||U===null?[]:[b.sizes?.[at]??1]});X.forEach(([A,at],U)=>{const pt=Math.max(0,nt[U]??0);a.dots.push({x:A,y:at,r:Math.sqrt(pt/j)*Math.min(g.width,g.height)/8,color:seeThrough(et,b.transparency??.25)})})}(V[T]??[]).forEach(([nt,A],at)=>{const U=labelsAt(t,b,at),pt=X[at];if(!U||!pt)return;const ct=Ot(t,A,0,b,String(nt),U);if(ct==="")return;const gt=U.size??c,ot=(b.marker_size??p.marker)/2+gt*.3,ut=U.position??"r";a.words.push({x:pt[0]+(ut==="r"?ot:ut==="l"?-ot:0),y:pt[1]+(ut==="t"?-ot-gt*.4:ut==="b"?ot+gt*.4:0),text:ct,size:gt,anchor:ut==="r"?"start":ut==="l"?"end":"middle",color:U.color??o,...U.bold===!0?{bold:!0}:{}})})}})}export function chartDrawing(t,a,l,c=textWidth){if(_e(t.type))return ge(t)?pe(t,a,l):chartDrawing(Me(t,l),a,l,c);const o=CHART_DEFAULTS,n=t.font_size??o.fontSize,p=t.font_color??CHART_INK,r={grid:[],shapes:[],boxes:[],lines:[],axes:[],dots:[],keys:[],words:[],plot:{x:0,y:0,width:0,height:0}},h={left:o.margin,top:o.margin,right:a-o.margin,bottom:l-o.margin};if(t.title!==void 0&&t.title!==""){const e=t.title_size??n*o.titleScale,s=(a-2*o.margin)*.92,x=t.title.split(`
|
|
3
|
+
`).flatMap(u=>wrapWords(u,s,e,c));x.forEach((u,k)=>{r.words.push({x:a/2,y:h.top+e*(.7+k*1.2),text:u,size:e,anchor:"middle",color:p})}),h.top+=e*(1.6+(x.length-1)*1.2)}const B=isRound(t.type),j=variesOf(t),V=(e,s)=>seeThrough(t.series[e]?.point_colors?.[s]??(j?t.category_colors?.[s]??accentOf(s):t.series[e]?.color??accentOf(e)),t.series[e]?.transparency);if(t.legend!==void 0){const e=re(t.type)?ve(t):void 0,s=e?e.map(f=>f.name):j?t.categories:t.series.map(f=>f.name),x=n*.6,u=n*.4,k=n*1.5,P=e||j?[]:groupsOf(t),w=f=>{const m=t.series[f],$=P.find(v=>v.series.includes(f))?.kind??t.type,D=isLine($)||isScatter($)&&$!=="bubble"||$==="radar"||$==="radar-markers";if(!m||!D)return;const W=Math.min(3,m.line_width??o.lineWidth),I=m.marker_symbol===void 0?hasMarkers($):m.marker_symbol!=="none";if(W<=0||$==="scatter"&&m.line_width===void 0)return I||$==="scatter"?{marker:!0}:void 0;const H=m.line_dash===void 0||m.line_dash==="solid"?void 0:DASH_ARRAYS[m.line_dash].map(v=>d(v*W)).join(" ");return{line:{width:W,...H===void 0?{}:{dash:H}},...I?{marker:!0}:{}}},_=f=>w(f)?.line?x*2.5:x,y=s.map((f,m)=>_(m)+u+c(f,n)),E=(f,m,$)=>{const D=w(f);r.keys.push({x:m,y:$-x/2,width:_(f),height:x,color:seeThrough(e?.[f]?.color??(j?t.category_colors?.[f]??accentOf(f):t.series[f]?.color??accentOf(f)),D?t.series[f]?.transparency:void 0),series:j?0:f,category:j?f:0,...D}),r.words.push({x:m+_(f)+u,y:$,text:s[f]??"",size:n,anchor:"start",color:p})};if(t.legend==="top"||t.legend==="bottom"){const f=Math.max(n*4,a-n*2),m=[[]];let $=0;s.forEach((W,I)=>{const H=y[I]??0,v=m[m.length-1]??[];v.length>0&&$+n+H>f?(m.push([I]),$=H):(v.push(I),$+=(v.length>1?n:0)+H)});const D=t.legend==="top"?h.top+k/2:h.bottom-k*m.length+k/2;m.forEach((W,I)=>{const H=W.reduce((N,R)=>N+(y[R]??0),0)+n*(W.length-1);let v=Math.max(n,(a-H)/2);for(const N of W)E(N,v,D+I*k),v+=(y[N]??0)+n}),t.legend_overlay!==!0&&(t.legend==="top"?h.top+=k*m.length:h.bottom-=k*m.length)}else{const f=Math.max(0,...y),m=t.legend==="left"?h.left:h.right-f,$=(h.top+h.bottom-k*s.length)/2+k/2;s.forEach((D,W)=>{E(W,m,$+W*k)}),t.legend_overlay!==!0&&(t.legend==="left"?h.left+=f+n:h.right-=f+n)}}const Q=t.labels,L=Q?.size??n,st=Q?.color??p,G=(e,s,x,u,k=st,P=!1,w=L)=>{x!==""&&r.words.push({x:e,y:s,text:x,size:w,anchor:u,color:k,...P?{bold:P}:{}})},Y=(e,s,x,u,k,P)=>{G(s,x,u,k,e.color??P??st,e.bold===!0,e.size??L)};if(B){const e=t.series[0],s=(e?.values??[]).map(y=>Math.max(0,y??0)),x=s.reduce((y,E)=>y+E,0),u=Math.max(0,Math.min(h.right-h.left,h.bottom-h.top)/2),k=(h.left+h.right)/2,P=(h.top+h.bottom)/2,w=t.type==="doughnut"?u*((t.hole_size??o.holeSize)/100):0;r.plot={x:k-u,y:P-u,width:u*2,height:u*2};let _=0;return s.forEach((y,E)=>{const f=x>0?y/x:0,m=_+f*Math.PI*2;if(f>0){r.shapes.push({d:Se(k,P,u,w,_,m),color:"lt1",width:1,fill:V(0,E),series:0,category:E});const $=(_+m)/2,D=w>0?(u+w)/2:labelPositionOf(t)==="inEnd"?u*.85:u*.6,W=e&&labelsAt(t,e,E);e&&W&&Y(W,k+D*Math.sin($),P-D*Math.cos($),Ot(t,y,f,e,t.categories[E]??"",W),"middle","lt1")}_=m}),r}if(isScatter(t.type))return De(t,r,h,n,p,c),r;if(re(t.type))return $e(t,r,h,n,p,c),r;if(xe(t.type))return be(t,r,h,n,p,c),r;if(ye(t.type))return we(t,r,(e,s)=>ke(t,r,h,n,p,e,s,t.categories,c)),r;const tt=Math.max(1,t.categories.length),M=isHorizontal(t.type),yt=groupsOf(t),rt=t.series.map(e=>t.categories.map((s,x)=>e.values[x]??null)),Z=yt.map(e=>{const s=groupingOf(e.kind),x=s!=="clustered"&&s!=="standard",u=s==="percentStacked",k=t.categories.map((P,w)=>e.series.reduce((_,y)=>_+Math.abs(rt[y]?.[w]??0),0));return{...e,stacked:x,percent:u,totals:k}}),K=(e,s,x)=>{const u=rt[s]?.[x];if(u==null)return null;const k=e.totals[x]??0;return e.percent?k>0?u/k:0:u},bt=e=>{let s=0,x=0,u=1/0,k=!1;for(const y of Z)if(y.secondary===e&&(k||=y.percent,t.categories.forEach((E,f)=>{let m=0,$=0;for(const D of y.series){const W=K(y,D,f)??0;y.stacked?W>=0?m+=W:$+=W:(m=Math.max(m,W),$=Math.min($,W))}x=Math.max(x,m),s=Math.min(s,$)}),!y.stacked))for(const E of y.series)for(const f of rt[E]??[])f!==null&&(u=Math.min(u,f));Z.every(y=>y.secondary!==e||!y.stacked)&&Number.isFinite(u)&&u>0&&(s=u),k&&(x=1,s=Math.min(s,0));const w=Z.find(y=>y.secondary===e),_=w===void 0?void 0:w.series[0];return{low:s,high:x,percent:k,format:_===void 0?void 0:t.series[_]?.number_format}},F=bt(!1),q=Z.some(e=>e.secondary)?bt(!0):void 0,g=t.value_axis??{},C=t.secondary_axis??{},S=t.category_axis??{},it=g.number_format??(F.percent?"0%":F.format??"General"),mt=C.number_format??(q?.percent===!0?"0%":q?.format??"General"),xt=(e,s,x,u)=>chartScale(e.low,e.high,x,u,{...s,...e.percent?{maximum_scale:s.maximum_scale??1}:{}}),b=M?h.right-h.left:h.bottom-h.top,T=M?n*5:n*2.4,et=xt(F,g,b,T),X=g.display_units===void 0?1:DISPLAY_UNITS[g.display_units],nt=e=>formatValue(e/X,it),A=g.visible===!1||g.tick_label_position==="none"?"none":g.tick_label_position==="high"||S.crosses==="max"!=(S.reverse_order===!0)?"high":"low",at=A==="none"?[]:et.ticks.map(e=>nt(e)),U=Math.max(0,...at.map(e=>c(e,n))),pt=q===void 0||C.visible===!1?0:Math.max(0,...xt(q,C,b,T).ticks.map(e=>c(formatValue(e,mt),n))),ct=S.visible!==!1&&S.tick_label_position!=="none",gt=ct?Math.max(0,...t.categories.map(e=>c(e,n))):0,ot=(S.label_angle??0)*Math.PI/180,ut=Math.abs(Math.sin(ot))*gt+Math.abs(Math.cos(ot))*n*1.2,z=n*.5,Ft=M?g.title:S.title,Vt=M?S.title:g.title,le=axisTitleRoom(h,Ft,Vt,n),Dt=q===void 0?void 0:C.title,Bt=n*1.5,Gt=Dt!==void 0&&Dt!==""?(h.right-=Bt)+Bt/2:void 0,At=S.tick_label_position==="high",Zt=A==="none"?0:n*1.2+z,qt=g.display_units!==void 0&&g.display_units_label!==!1&&A!=="none",Rt=qt&&!M?n*1.4:0,Ut=!M&&A!=="none"&&Rt===0&&!(ct&&At)&&h.top>o.margin?n*.6:0,i=M?{x:h.left+(ct&&!At?gt+z:0),y:h.top+(A==="high"?Zt:0),width:0,height:h.bottom-h.top-Zt}:{x:h.left+(A==="low"?U+z:0),y:h.top+Rt+Ut+(ct&&At?ut+z:0),width:0,height:h.bottom-h.top-Rt-Ut-(ct?ut+z:0)};i.width=h.right-i.x-(M&&at.length>0?U/2:0)-(!M&&A==="high"?U+z:0)-(M&&ct&&At?gt+z:0)-(pt>0?pt+z:0),r.plot=i,axisTitleWords(r,i,le,Ft,Vt,n,p),Gt!==void 0&&Dt!==void 0&&r.words.push({x:Gt,y:i.y+i.height/2,text:Dt,size:n,anchor:"middle",color:p,rotate:-90});const Ct=M?i.width:i.height,O=xt(F,g,Ct,T),_t=q===void 0?void 0:xt(q,C,Ct,T);r.scales={value:O,..._t?{secondary:_t}:{}};const Yt=(e,s)=>scaleShare(e,s)*Ct,Lt=(e,s)=>M?i.x+Yt(e,s):i.y+i.height-Yt(e,s),Nt=e=>Lt(O,e),Mt=Z.every(e=>isArea(e.kind)),Kt=S.reverse_order===!0,Tt=M?!Kt:Kt,Wt=(M?i.height:i.width)/tt,Pt=Mt?(M?i.height:i.width)/Math.max(1,tt-1):Wt,Et=e=>{const s=Mt?e*Pt:(e+.5)*Wt,x=M?i.height:i.width,u=Tt?x-s:s;return(M?i.y:i.x)+u},Xt=g.crosses_at??(g.crosses==="min"?O.min:g.crosses==="max"?O.max:O.log===void 0?0:O.min),St=Nt(Math.max(O.min,Math.min(O.max,Xt))),Jt=e=>M?`M${d(e)} ${d(i.y)} V${d(i.y+i.height)}`:`M${d(i.x)} ${d(e)} H${d(i.x+i.width)}`;if(g.has_minor_gridlines===!0){const e=[];if(O.log!==void 0)for(const x of O.ticks)for(let u=2;u<O.log;u++)x*u<O.max&&e.push(x*u);const s=g.minor_unit??O.major/5;if(O.log===void 0&&s>0)for(let x=O.min+s;x<O.max-s/2;x+=s)O.ticks.some(u=>Math.abs(u-x)<s/2)||e.push(x);for(const x of e)r.grid.push({d:Jt(Nt(x)),color:g.gridline_color??CHART_GRID,width:o.gridWidth/2})}if(S.has_major_gridlines===!0){const e=M?i.height:i.width;for(let s=0;s<=tt&&!(Mt&&s===tt);s++){const x=Mt?s*Pt:s*Wt,u=(M?i.y:i.x)+(Tt?e-x:x);r.grid.push({d:M?`M${d(i.x)} ${d(u)} H${d(i.x+i.width)}`:`M${d(u)} ${d(i.y)} V${d(i.y+i.height)}`,color:S.gridline_color??CHART_GRID,width:o.gridWidth})}}const It=(e,s,x,u,k)=>{if(e===void 0||e==="none")return;const P=n*.35,w=e==="in"?0:P,_=e==="out"?0:-P,[y,E]=[w*k,_*k];r.axes.push({d:u==="x"?`M${d(s+y)} ${d(x)} H${d(s+E)}`:`M${d(s)} ${d(x+y)} V${d(x+E)}`,color:g.line_color??CHART_AXIS,width:o.gridWidth})};for(const e of O.ticks){const s=Nt(e);(g.has_major_gridlines??!0)&&r.grid.push({d:Jt(s),color:g.gridline_color??CHART_GRID,width:o.gridWidth}),M?It(g.major_tick_mark,s,A==="high"?i.y:i.y+i.height,"y",A==="high"?-1:1):It(g.major_tick_mark,A==="high"?i.x+i.width:i.x,s,"x",A==="high"?1:-1),A!=="none"&&r.words.push(M?{x:s,y:A==="high"?i.y-z-n*.6:i.y+i.height+z+n*.6,text:nt(e),size:n,anchor:"middle",color:p}:A==="high"?{x:i.x+i.width+z,y:s,text:nt(e),size:n,anchor:"start",color:p}:{x:i.x-z,y:s,text:nt(e),size:n,anchor:"end",color:p})}if(qt&&g.display_units!==void 0&&r.words.push({x:M?i.x+i.width:A==="high"?h.right:h.left,y:M?i.y+i.height+z+n*1.8:i.y-n*.8,text:DISPLAY_UNIT_WORDS[g.display_units],size:n,anchor:M||A==="high"?"end":"start",color:p}),_t&&C.visible!==!1&&C.tick_label_position!=="none")for(const e of _t.ticks)r.words.push({x:i.x+i.width+z,y:Lt(_t,e),text:formatValue(e/(C.display_units===void 0?1:DISPLAY_UNITS[C.display_units]),mt),size:n,anchor:"start",color:p});S.visible!==!1&&r.axes.push({d:M?`M${d(St)} ${d(i.y)} V${d(i.y+i.height)}`:`M${d(i.x)} ${d(St)} H${d(i.x+i.width)}`,color:S.line_color??CHART_AXIS,width:o.gridWidth}),g.line_color!==void 0&&g.visible!==!1&&r.axes.push({d:M?`M${d(i.x)} ${d(i.y+i.height)} H${d(i.x+i.width)}`:`M${d(i.x)} ${d(i.y)} V${d(i.y+i.height)}`,color:g.line_color,width:o.gridWidth});for(let e=0;e<=tt&&S.visible!==!1;e++){const s=Mt?e*Pt:e*Wt;if(Mt&&e===tt)break;const x=M?i.height:i.width,u=(M?i.y:i.x)+(Tt?x-s:s);M?It(S.major_tick_mark,St,u,"x",-1):It(S.major_tick_mark,u,St,"y",1)}if(ct){const e=_=>M?n*1.3:Math.abs(Math.cos(ot))*c(_,n)+Math.abs(Math.sin(ot))*n,s=t.categories.map(e),x=_=>{for(let y=0;y+_<t.categories.length;y+=_)if(((s[y]??0)+(s[y+_]??0))/2+n>_*Pt)return!1;return!0};let u=S.label_interval??1;if(S.label_interval===void 0)for(;u<t.categories.length&&!x(u);)u++;const k=S.tick_label_position??"nextTo",P=M?i.x:i.y+i.height,w=k==="nextTo"?St:k==="high"?-1:P;t.categories.forEach((_,y)=>{if(y%u!==0)return;const E=Et(y),f=ot!==0&&!M;r.words.push(M?k==="high"?{x:i.x+i.width+z,y:E,text:_,size:n,anchor:"start",color:p}:{x:Math.min(w,i.x+i.width)-z,y:E,text:_,size:n,anchor:"end",color:p}:k==="high"?{x:E,y:i.y-z-n*.6,text:_,size:n,anchor:"middle",color:p}:{x:E,y:Math.max(w,i.y)+z+n*.6,text:_,size:n,anchor:f?ot>0?"start":"end":"middle",color:p,...f?{rotate:ot*180/Math.PI}:{}})})}for(const e of Z){const s=e.secondary&&_t?_t:O,x=k=>Lt(s,k),u={type:e.kind,...t.labels===void 0?{}:{labels:t.labels}};isBar(e.kind)?ce(e,x,u):de(e,x,u)}return r;function ce(e,s,x){const u=Math.max(O.min,Math.min(O.max,Xt)),k=((e.secondary?t.secondary_gap_width??t.gap_width:t.gap_width)??o.gapWidth)/100,P=e.stacked?1:e.series.length,w=e.stacked?1:(t.overlap??0)/100,_=Wt/(Math.max(1,P-(P-1)*w)+k),y=_*(1-w),E=_+y*(P-1);t.categories.forEach((f,m)=>{const $=Et(m);let D=0,W=0;e.series.forEach((I,H)=>{const v=t.series[I],N=K(e,I,m);if(N===null||!v)return;const R=e.stacked?N>=0?D:W:e.secondary?0:u,dt=e.stacked?R+N:N;e.stacked&&(N>=0?D=dt:W=dt);const ht=s(R),J=s(dt),wt=(e.stacked?$-_/2:$-E/2+H*y)+(M&&Tt&&!e.stacked?E-_-2*H*y:0),he=M?{x:Math.min(ht,J),y:wt,width:Math.abs(J-ht),height:_}:{x:wt,y:Math.min(ht,J),width:_,height:Math.abs(J-ht)};r.boxes.push({...he,color:V(I,m),series:I,category:m,...v.no_fill===!0?{hollow:!0}:{}});const Qt=v.point_labels?.find(lt=>lt.index===m);if(Qt!==void 0){const lt=Qt.text.split(`
|
|
4
|
+
`),ft=L*.9,ne=L*1.2,Ht=N>=0?1:-1;lt.forEach((oe,vt)=>{const se=vt===0?v.color??accentOf(I):st;M?G(J+Ht*ft,wt+_/2+(vt-(lt.length-1)/2)*ne,oe,Ht>0?"start":"end",se,vt===0):G(wt+_/2,J-Ht*(ft+L*.5)+(Ht>0?vt-(lt.length-1):vt)*ne,oe,"middle",se,vt===0)});return}const kt=labelsAt(t,v,m);if(!kt)return;const te=Ot(t,rt[I]?.[m]??0,0,v,t.categories[m]??"",kt),jt=labelPositionOf({...x,labels:kt}),$t=(kt.size??L)*.8,ue=N>=0?1:-1,ee=(lt,ft)=>jt==="ctr"?(lt+ft)/2:jt==="inBase"?lt+(ft>lt?$t:-$t):jt==="inEnd"?ft-(ft>lt?$t:-$t):ft+(ft>=lt?$t:-$t);M?Y(kt,ee(ht,J),wt+_/2,te,jt==="outEnd"?ue>0?"start":"end":"middle"):Y(kt,wt+_/2,ee(ht,J),te,"middle")})})}function de(e,s,x){const u=t.categories.map(()=>0),k=e.series.map(w=>{const _=t.series[w],y=[],E=[];t.categories.forEach((f,m)=>{const $=K(e,w,m);if($===null||!_)return;const D=e.stacked?u[m]??0:0,W=D+$;e.stacked&&(u[m]=W);const I=Et(m),H=R=>M?[s(R),I]:[I,s(R)];y.push(H(W)),E.push(H(D));const v=labelsAt(t,_,m),N=_.point_labels?.some(R=>R.index===m)===!0;if(isLine(e.kind)&&v&&!N){const R=v.position===void 0?pointLabelPosition(rt[w]??[],m)==="b"?"b":"t":labelPositionOf({...x,labels:v}),[dt,ht]=H(W),J=v.size??L;Y(v,dt+(R==="r"?J:R==="l"?-J:0),ht+(R==="t"?-J:R==="b"?J:0),Ot(t,rt[w]?.[m]??0,0,_,t.categories[m]??"",v),R==="r"?"start":R==="l"?"end":"middle")}});for(const f of _?.point_labels??[]){const m=K(e,w,f.index);if(m===null||!_||isArea(e.kind))continue;const $=0,D=Et(f.index),[W,I]=M?[s($+m),D]:[D,s($+m)];r.dots.push({x:W,y:I,r:Math.max(3,(_.line_width??o.lineWidth)*1.6),color:_.color??accentOf(w)});const H=f.text.split(`
|
|
5
|
+
`),v=L*.9,N=L*1.2;H.forEach((R,dt)=>{const ht=f.position==="t"?dt-(H.length-1):dt;G(W+(f.dx??0)*a+(f.position==="r"?v:f.position==="l"?-v:0),I+(f.position==="t"?-v-L*.5:f.position==="b"?v+L*.5:0)+(f.dy??0)*l+ht*N,R,f.position==="r"?"start":f.position==="l"||f.index===t.categories.length-1?"end":f.index===0?"start":"middle",dt===0?_.color??accentOf(w):st,dt===0)})}return{series:_,s:w,points:y,base:E}}),P=[];for(const{series:w,s:_,points:y,base:E}of k){if(!w)continue;const f=seeThrough(w.color??accentOf(_),w.transparency),m=w.line_width??o.lineWidth,$=w.line_dash===void 0||w.line_dash==="solid"?void 0:DASH_ARRAYS[w.line_dash].map(D=>d(D*m)).join(" ");if(isArea(e.kind)&&y.length>0)P.push({d:`${zt([...y,...[...E].reverse()])} Z`,color:f,width:w.no_fill===!0?m/2:0,...w.no_fill===!0?{}:{fill:f},series:_});else if(y.length>0&&(m>0&&r.lines.push({d:w.smooth===!0?ae(y):zt(y),color:f,width:m,...$===void 0?{}:{dash:$},series:_}),w.marker_symbol===void 0?hasMarkers(e.kind):w.marker_symbol!=="none")){const W=(w.marker_size??o.marker)/2,I=t.categories.flatMap((H,v)=>K(e,_,v)===null?[]:[v]);y.forEach(([H,v],N)=>{const R=markerPath(w.marker_symbol,H,v,W);r.dots.push({x:H,y:v,r:W,color:V(_,I[N]??N),...R===void 0?{}:{d:R}})})}}r.shapes.push(...P.reverse()),t.high_low_lines===!0&&isLine(e.kind)&&t.categories.forEach((w,_)=>{const y=e.series.flatMap($=>{const D=K(e,$,_);return D===null?[]:[D]});if(y.length<2)return;const E=Et(_),[f,m]=[s(Math.max(...y)),s(Math.min(...y))];r.grid.push({d:M?`M${d(f)} ${d(E)} H${d(m)}`:`M${d(E)} ${d(f)} V${d(m)}`,color:CHART_AXIS,width:o.lineWidth})})}}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! AllyHub. Copyright (c) 2026 AllyHub, Inc. All rights reserved. Use is subject to LICENSE.md. */
|
|
2
|
+
import{colorXml as C}from"./color.js";import{accentOf as T,CHART_AXIS as X,CHART_DEFAULTS as u,CHART_GRID as k,CHART_INK as I,labelPositionOf as $,seeThrough as h}from"./chart.js";import{FUNNEL_GAP as D}from"./tree.js";import{BOX_LOOK as y,HISTOGRAM_EDGE as O,isBinned as p,isHierarchical as H,PARETO_GAP as F,PARETO_LINE as M,WATERFALL_GAP as N,withTotals as U}from"./extended.js";const _="http://schemas.microsoft.com/office/drawing/2014/chartex",g="http://schemas.openxmlformats.org/drawingml/2006/main",P="http://schemas.openxmlformats.org/officeDocument/2006/relationships",b=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3
|
+
`,j={waterfall:"waterfall","box-whisker":"boxWhisker",histogram:"clusteredColumn",pareto:"clusteredColumn",treemap:"treemap",sunburst:"sunburst",funnel:"funnel"};export const CHARTEX_REQUIRES={prefix:"cx1",namespace:"http://schemas.microsoft.com/office/drawing/2015/9/8/chartex"},chartExRequires=t=>t==="funnel"?{prefix:"cx2",namespace:"http://schemas.microsoft.com/office/drawing/2015/10/21/chartex"}:CHARTEX_REQUIRES,CHARTEX_REL="http://schemas.microsoft.com/office/2014/relationships/chartEx",CHARTEX_TYPE="application/vnd.ms-office.chartex+xml",CHARTEX_URI=_,chartExReference=t=>`<cx:chart xmlns:cx="${_}" xmlns:r="${P}" r:id="${c(t)}"/>`;const W={"&":"&","<":"<",">":">",'"':"""},z=t=>{const n=t.charCodeAt(0);return n<32&&n!==9&&n!==10&&n!==13||n===65534||n===65535},c=t=>Array.from(t,n=>z(n)?"":W[n]??n).join("");function e(t,n={},...r){const a=Object.entries(n).filter(([,i])=>i!==void 0).map(([i,s])=>` ${i}="${c(typeof s=="boolean"?s?"1":"0":String(s))}"`).join(""),o=r.join("");return o===""?`<${t}${a}/>`:`<${t}${a}>${o}</${t}>`}const m=t=>t===null?e("a:noFill"):e("a:solidFill",{},C(t)),x=(t,n)=>e("a:ln",n===void 0?{}:{w:Math.round(n*12700)},m(t)),L=(t,n,r)=>e("cx:txPr",{},e("a:bodyPr"),e("a:lstStyle"),e("a:p",{},e("a:pPr",{},e("a:defRPr",{...t===void 0?{}:{sz:Math.round(t*100)},...r===void 0?{}:{b:r?1:0}},n===void 0?"":m(n))),e("a:endParaRPr",{lang:"en-US"}))),v=t=>`{00000000-0000-4000-8000-${String(t+1).padStart(12,"0")}}`,G=(t,n,r)=>e("cx:strDim",{type:"cat"},t===void 0?"":`<cx:f>${c(t)}</cx:f>`,...(r===void 0?[n]:Array.from({length:r[0]?.length??0},(a,o)=>r.map(i=>i[o]??"")).reverse()).map(a=>e("cx:lvl",{ptCount:a.length},...a.map((o,i)=>e("cx:pt",{idx:i},c(o)))))),Y=(t,n,r,a)=>e("cx:numDim",{type:t},`<cx:f>${c(n)}</cx:f>`,e("cx:lvl",{ptCount:a.length,formatCode:r??"General"},...a.flatMap((o,i)=>o===null?[]:[e("cx:pt",{idx:i},String(o))])));function q(t,n){if(!n)return"";const r=t.type==="waterfall"?n.position??"outEnd":t.type==="treemap"||t.type==="sunburst"||t.type==="funnel"?n.position??"ctr":n.position??$({type:"column-clustered",labels:n});return e("cx:dataLabels",{pos:r},n.number_format===void 0?"":e("cx:numFmt",{formatCode:n.number_format,sourceLinked:0}),n.size===void 0&&n.color===void 0&&n.bold===void 0?"":L(n.size,n.color,n.bold),e("cx:visibility",{seriesName:n.show_series_name===!0,categoryName:n.show_category_name===!0,value:n.show_value??!0}),...n.points===void 0?[]:t.categories.flatMap((a,o)=>n.points?.includes(o)===!0?[]:[e("cx:dataLabelHidden",{idx:o})]))}const B=t=>e("cx:binning",{intervalClosed:t.interval_closed==="left"?"l":"r",underflow:t.underflow,overflow:t.overflow},t.bin_width!==void 0?e("cx:binSize",{val:t.bin_width}):t.bin_count!==void 0?e("cx:binCount",{val:t.bin_count}):"");function K(t){return t.type==="treemap"?e("cx:layoutPr",{},e("cx:parentLabelLayout",{val:t.parent_labels??"banner"})):t.type==="sunburst"||t.type==="funnel"?"":t.type==="histogram"||t.type==="pareto"?e("cx:layoutPr",{},p(t)?B(t):e("cx:aggregation")):t.type==="waterfall"?e("cx:layoutPr",{},e("cx:visibility",{connectorLines:t.connector_lines!==!1}),e("cx:subtotals",{},...(t.totals??[]).map(n=>e("cx:idx",{val:n})))):e("cx:layoutPr",{},e("cx:visibility",{meanLine:t.show_mean_line===!0,meanMarker:t.show_mean_markers!==!1,nonoutliers:t.show_inner_points===!0,outliers:t.show_outliers!==!1}),e("cx:statistics",{quartileMethod:t.quartile_method??"exclusive"}))}function w(t,n,r){const a=t.series[n];if(!a)return"";const o=a.color??T(n),i=r.name(n),s=t.type==="box-whisker"?e("cx:spPr",{},m(h(o,a.transparency??y.fillTransparency)),x(o,y.lineWidth)):t.type==="histogram"||t.type==="pareto"?e("cx:spPr",{},m(h(o,a.transparency)),p(t)?x("lt1",O):""):"",d=(a.point_colors??[]).flatMap((l,S)=>l==null?[]:[e("cx:dataPt",{idx:S},e("cx:spPr",{},m(h(l,a.transparency))))]),f=a.labels===void 0?t.labels:a.labels;return e("cx:series",{layoutId:j[t.type],uniqueId:v(n),formatIdx:n},e("cx:tx",{},e("cx:txData",{},i===void 0?"":`<cx:f>${c(i)}</cx:f>`,`<cx:v>${c(a.name)}</cx:v>`)),s,...d,q(t,f),e("cx:dataId",{val:n}),K(t),t.type==="pareto"?e("cx:axisId",{val:1}):"")}const Q=t=>e("cx:series",{layoutId:"paretoLine",ownerIdx:0,uniqueId:v(t.series.length)},e("cx:spPr",{},x(M,u.lineWidth)),e("cx:axisId",{val:2})),A=(t,n)=>e("cx:rich",{},e("a:bodyPr"),e("a:lstStyle"),...t.split(`
|
|
4
|
+
`).map(r=>e("a:p",{},e("a:pPr",{},e("a:defRPr",{sz:n,b:0})),e("a:r",{},e("a:rPr",{lang:"en-US",sz:n,b:0}),`<a:t>${c(r)}</a:t>`)))),E=(t,n)=>t===void 0||t===""?"":e("cx:title",{},e("cx:tx",{},A(t,n)));function J(t,n,r){const a=t.category_axis??{},o=t.value_axis??{},i=t.gap_width!==void 0?t.gap_width/100:t.type==="waterfall"?N:t.type==="box-whisker"?y.gap:t.type==="pareto"&&!p(t)?F:t.type==="funnel"?D:0,s=d=>d.visible!==!1&&d.tick_label_position!=="none";return t.type==="treemap"||t.type==="sunburst"?"":t.type==="funnel"?e("cx:axis",{id:0,...a.visible===!1?{hidden:!0}:{}},e("cx:catScaling",{gapWidth:Number(i.toFixed(4))}),s(a)?e("cx:tickLabels"):""):e("cx:axis",{id:0,...a.visible===!1?{hidden:!0}:{}},e("cx:catScaling",{gapWidth:Number(i.toFixed(4))}),E(a.title,n),s(a)&&(r||p(t))?e("cx:tickLabels"):"",e("cx:spPr",{},x(a.line_color??X,u.gridWidth)))+e("cx:axis",{id:1,...o.visible===!1?{hidden:!0}:{}},e("cx:valScaling",{max:o.maximum_scale,min:o.minimum_scale,majorUnit:o.major_unit}),E(o.title,n),o.has_major_gridlines===!1?"":e("cx:majorGridlines",{},e("cx:spPr",{},x(o.gridline_color??k,u.gridWidth))),s(o)?e("cx:tickLabels"):"",o.number_format===void 0?"":e("cx:numFmt",{formatCode:o.number_format,sourceLinked:0}),e("cx:spPr",{},x(null)))+(t.type==="pareto"?e("cx:axis",{id:2},e("cx:valScaling",{max:1,min:0}),e("cx:units",{unit:"percentage"}),e("cx:tickLabels"),e("cx:spPr",{},x(null))):"")}const V={bottom:"b",top:"t",left:"l",right:"r"},Z=e("cx:spPr",{},e("a:noFill"),e("a:ln",{},e("a:noFill")));export function chartExXml(t,n){const r=U(t),a=r.font_size??u.fontSize,o=Math.round((r.title_size??a*u.titleScale)*100),i=r.categories.length>0&&n.refs.categories!==void 0,s=r.series.map((f,l)=>e("cx:data",{id:l},i?G(n.refs.categories,r.categories,r.category_levels):"",Y(H(r.type)?"size":"val",n.refs.values(l),f.number_format,f.values))),d=r.title!==void 0&&r.title!==""?r.title:void 0;return b+e("cx:chartSpace",{"xmlns:a":g,"xmlns:r":P,"xmlns:cx":_},e("cx:chartData",{},n.workbook===void 0?"":e("cx:externalData",{"r:id":n.workbook,"cx:autoUpdate":!1}),...s),e("cx:chart",{},d===void 0?"":e("cx:title",{pos:"t",align:"ctr",overlay:!1},e("cx:tx",{},A(d,o))),e("cx:plotArea",{},e("cx:plotAreaRegion",{},...r.type==="histogram"||r.type==="pareto"?[w(r,0,n.refs)]:r.series.map((f,l)=>w(r,l,n.refs)),r.type==="pareto"?Q(r):""),J(r,Math.round(a*100),i)),r.legend===void 0?"":e("cx:legend",{pos:V[r.legend],align:"ctr",overlay:r.legend_overlay===!0})),n.frameless===!0?Z:"",L(a,r.font_color??I))}const R="http://schemas.microsoft.com/office/drawing/2012/chartStyle";export const CHARTEX_STYLE_REL="http://schemas.microsoft.com/office/2011/relationships/chartStyle",CHARTEX_COLORS_REL="http://schemas.microsoft.com/office/2011/relationships/chartColorStyle",CHARTEX_STYLE_TYPE="application/vnd.ms-office.chartstyle+xml",CHARTEX_COLORS_TYPE="application/vnd.ms-office.chartcolorstyle+xml";const ee={waterfall:395,"box-whisker":406,histogram:366,pareto:366,treemap:381,sunburst:381,funnel:419},te=["axisTitle","categoryAxis","chartArea","dataLabel","dataPoint","dataPoint3D","dataPointLine","dataPointMarker","dataPointMarkerLayout","dataPointWireframe","dataTable","downBar","dropLine","errorBar","floor","gridlineMajor","gridlineMinor","hiLoLine","leaderLine","legend","plotArea","plotArea3D","seriesAxis","seriesLine","title","trendline","trendlineLabel","upBar","valueAxis","wall"];export function chartExStyleXml(t){const n=(a="")=>e("cs:lnRef",{idx:0})+e("cs:fillRef",{idx:0},a)+e("cs:effectRef",{idx:0}),r=a=>a==="dataPoint"?e("cs:dataPoint",{},n(e("cs:styleClr",{val:"auto"})),e("cs:fontRef",{idx:"minor"},e("cs:schemeClr",{val:"tx1"})),e("cs:spPr",{},e("a:solidFill",{},e("a:schemeClr",{val:"phClr"})))):a==="chartArea"?e("cs:chartArea",{mods:"allowNoFillOverride allowNoLineOverride"},n(),e("cs:fontRef",{idx:"minor"},e("a:schemeClr",{val:"tx1"}))):e(`cs:${a}`,{},n(),e("cs:fontRef",{idx:"minor"}));return b+e("cs:chartStyle",{"xmlns:cs":R,"xmlns:a":g,id:ee[t]},...te.map(r))}export function chartExColorsXml(){return b+e("cs:colorStyle",{"xmlns:cs":R,"xmlns:a":g,meth:"cycle",id:10},...[1,2,3,4,5,6].map(t=>e("a:schemeClr",{val:`accent${String(t)}`})))}
|