allyhub 0.6.0 → 0.7.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/dist/audio-text.js +1 -1
- package/dist/commands/add.js +2 -2
- package/dist/commands/cloud-tools.js +5 -5
- package/dist/commands/dev.js +1 -1
- package/dist/commands/frames/piece.js +1 -1
- package/dist/commands/frames/sheet.js +1 -1
- package/dist/commands/frames.js +8 -8
- package/dist/commands/index.js +1 -1
- package/dist/commands/inspect/common.js +1 -1
- package/dist/commands/inspect/layout.js +1 -1
- package/dist/commands/render.js +1 -1
- package/dist/commands/sheet.js +5 -5
- package/dist/commands/site.js +3 -2
- package/dist/commands/skills.js +3 -3
- package/dist/commands/slides.js +2 -2
- package/dist/node_modules/@allyhub-next/audio/dist/node/index.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/dist/node/master.js +1 -1
- package/dist/node_modules/@allyhub-next/audio/package.json +1 -1
- package/dist/node_modules/@allyhub-next/browser/dist/html.js +1 -1
- package/dist/node_modules/@allyhub-next/browser/package.json +1 -1
- package/dist/node_modules/@allyhub-next/build/dist/content.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/build/dist/content.js +1 -1
- package/dist/node_modules/@allyhub-next/build/dist/index.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/build/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/build/dist/meta-worker.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/build/dist/meta-worker.js +3 -3
- package/dist/node_modules/@allyhub-next/build/dist/move-refs.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/build/dist/move-refs.js +1 -1
- package/dist/node_modules/@allyhub-next/build/dist/plugin.d.ts +12 -3
- package/dist/node_modules/@allyhub-next/build/dist/plugin.js +7 -6
- package/dist/node_modules/@allyhub-next/build/dist/prepare.d.ts +9 -5
- package/dist/node_modules/@allyhub-next/build/dist/prepare.js +2 -2
- package/dist/node_modules/@allyhub-next/build/dist/vite.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/build/dist/vite.js +2 -2
- package/dist/node_modules/@allyhub-next/build/package.json +1 -1
- package/dist/node_modules/@allyhub-next/chart/dist/chart-xml.js +2 -2
- package/dist/node_modules/@allyhub-next/chart/dist/chart.d.ts +14 -5
- package/dist/node_modules/@allyhub-next/chart/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub-next/chart/package.json +1 -1
- package/dist/node_modules/@allyhub-next/check/dist/check.js +3 -3
- package/dist/node_modules/@allyhub-next/check/package.json +1 -1
- package/dist/node_modules/@allyhub-next/cloud/dist/blobs.js +2 -0
- package/dist/node_modules/@allyhub-next/cloud/dist/call.js +4 -2
- package/dist/node_modules/@allyhub-next/cloud/dist/client.js +1 -1
- package/dist/node_modules/@allyhub-next/cloud/dist/errors.js +1 -1
- package/dist/node_modules/@allyhub-next/cloud/dist/hashes.js +2 -0
- package/dist/node_modules/@allyhub-next/cloud/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/cloud/dist/sites.js +2 -0
- package/dist/node_modules/@allyhub-next/cloud/dist/voice.js +1 -1
- package/dist/node_modules/@allyhub-next/cloud/package.json +1 -1
- package/dist/node_modules/@allyhub-next/components/package.json +1 -1
- package/dist/node_modules/@allyhub-next/components/r/caption-subtitle.json +1 -1
- package/dist/node_modules/@allyhub-next/components/src/caption-subtitle.ts +54 -16
- package/dist/node_modules/@allyhub-next/dev-server/dist/background.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/fonts.js +2 -0
- package/dist/node_modules/@allyhub-next/dev-server/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/live.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/project.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/reach.js +2 -0
- package/dist/node_modules/@allyhub-next/dev-server/dist/record.js +2 -0
- package/dist/node_modules/@allyhub-next/dev-server/dist/server.js +2 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub-next/dev-server/dist/tree.js +2 -0
- package/dist/node_modules/@allyhub-next/dev-server/package.json +1 -1
- package/dist/node_modules/@allyhub-next/doc/package.json +1 -1
- package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.js +1 -1
- package/dist/node_modules/@allyhub-next/export/dist/export.js +5 -5
- package/dist/node_modules/@allyhub-next/export/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/export/package.json +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.d.ts +205 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/deck-code.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/script.d.ts +4 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/script.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.d.ts +69 -18
- package/dist/node_modules/@allyhub-next/formats/dist/data/sheet.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.d.ts +847 -116
- package/dist/node_modules/@allyhub-next/formats/dist/data/slides.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/data/website.d.ts +20 -0
- package/dist/node_modules/@allyhub-next/formats/dist/data/website.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/index.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/formats/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/items.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/media-type.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/formats/dist/media-type.js +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.d.ts +501 -38
- package/dist/node_modules/@allyhub-next/formats/dist/schemas.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/dist/strict.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/formats/dist/strict.js +1 -1
- package/dist/node_modules/@allyhub-next/formats/package.json +2 -1
- package/dist/node_modules/@allyhub-next/measure/package.json +1 -1
- package/dist/node_modules/@allyhub-next/media/dist/index.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/media/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/media/dist/sheet.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/media/dist/sheet.js +7 -7
- package/dist/node_modules/@allyhub-next/media/package.json +1 -1
- package/dist/node_modules/@allyhub-next/model/package.json +1 -1
- package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.d.ts +31 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/brightness.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/color.d.ts +33 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/color.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/enums.d.ts +13 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/enums.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ext.d.ts +79 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ext.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.d.ts +132 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/enums.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.d.ts +28 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/presets.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.d.ts +4708 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/generated/spec.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.d.ts +57 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/geometry/index.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/index.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/mce.d.ts +12 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/mce.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/node.d.ts +111 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/node.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ns.d.ts +45 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/ns.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/opc.d.ts +48 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/opc.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/report.d.ts +45 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/report.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/xml.d.ts +28 -0
- package/dist/node_modules/@allyhub-next/ooxml/dist/xml.js +2 -0
- package/dist/node_modules/@allyhub-next/ooxml/package.json +26 -0
- package/dist/node_modules/@allyhub-next/project/dist/deck-keys.js +2 -0
- package/dist/node_modules/@allyhub-next/project/dist/deck-measure.js +2 -0
- package/dist/node_modules/@allyhub-next/project/dist/deck-pool.js +2 -0
- package/dist/node_modules/@allyhub-next/project/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/project/dist/session.js +1 -1
- package/dist/node_modules/@allyhub-next/project/dist/stills.js +2 -0
- package/dist/node_modules/@allyhub-next/project/package.json +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/account.d.ts +338 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/account.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/auth.d.ts +12 -13
- package/dist/node_modules/@allyhub-next/protocol/dist/auth.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/blobs.d.ts +35 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/blobs.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/cloud.d.ts +101 -32
- package/dist/node_modules/@allyhub-next/protocol/dist/cloud.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.d.ts +79 -5
- package/dist/node_modules/@allyhub-next/protocol/dist/editor.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/files.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/protocol/dist/index.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.d.ts +21 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/notes.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/open.d.ts +13 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/open.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/registry.d.ts +73 -59
- package/dist/node_modules/@allyhub-next/protocol/dist/registry.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/routes.d.ts +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/routes.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/shares.d.ts +115 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/shares.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/sites.d.ts +293 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/sites.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.d.ts +377 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/snapshots.js +2 -0
- package/dist/node_modules/@allyhub-next/protocol/dist/teams.d.ts +27 -9
- package/dist/node_modules/@allyhub-next/protocol/dist/teams.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/dist/tools.d.ts +53 -14
- package/dist/node_modules/@allyhub-next/protocol/dist/tools.js +1 -1
- package/dist/node_modules/@allyhub-next/protocol/package.json +2 -1
- package/dist/node_modules/@allyhub-next/registry/package.json +1 -1
- package/dist/node_modules/@allyhub-next/render/dist/doc/fonts.js +3 -2
- package/dist/node_modules/@allyhub-next/render/dist/doc/index.js +1 -1
- package/dist/node_modules/@allyhub-next/render/dist/doc/pdf.js +34 -0
- package/dist/node_modules/@allyhub-next/render/dist/doc/print.js +4 -4
- package/dist/node_modules/@allyhub-next/render/dist/exports.js +2 -2
- package/dist/node_modules/@allyhub-next/render/dist/pdf.js +2 -0
- package/dist/node_modules/@allyhub-next/render/package.json +1 -1
- package/dist/node_modules/@allyhub-next/runtime/dist/fonts.js +1 -1
- package/dist/node_modules/@allyhub-next/runtime/dist/music.js +1 -1
- package/dist/node_modules/@allyhub-next/runtime/package.json +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/package.json +1 -1
- package/dist/node_modules/@allyhub-next/runtimes/schemas/runtimes.schema.json +25 -5
- package/dist/node_modules/@allyhub-next/scaffold/dist/index.js +4 -4
- package/dist/node_modules/@allyhub-next/scaffold/package.json +1 -1
- package/dist/node_modules/@allyhub-next/scenery/package.json +1 -1
- package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.d.ts +10 -0
- package/dist/node_modules/@allyhub-next/scenery-host/dist/bundle.js +3 -3
- package/dist/node_modules/@allyhub-next/scenery-host/package.json +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.d.ts +9 -3
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/analyse.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.d.ts +5 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/coerce.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.d.ts +60 -13
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/engine.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/aggregate.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/convert.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/criteria.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/database.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/date.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.d.ts +27 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/define.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.d.ts +16 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/delimiters.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.d.ts +18 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/dynamic.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/finance.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/index.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/info.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/kernels.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/logical.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/lookup.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/maths.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/modern.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/functions/text.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.d.ts +38 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/graph.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.d.ts +19 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/indexes.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.d.ts +49 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/remote.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.d.ts +82 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/server.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.d.ts +6 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/calc/types.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/chart.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/check.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.d.ts +15 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/diff.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/export.d.ts +29 -8
- package/dist/node_modules/@allyhub-next/sheet/dist/export.js +3 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/file.js +2 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/format.d.ts +8 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/format.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/html.d.ts +52 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/html.js +43 -11
- package/dist/node_modules/@allyhub-next/sheet/dist/index.d.ts +7 -3
- package/dist/node_modules/@allyhub-next/sheet/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/inspect.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/paginate.d.ts +98 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/paginate.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/structure.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/table-style.d.ts +32 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-style.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.d.ts +3 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/table-styles.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/values.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.d.ts +10 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/workbook.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.d.ts +10 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/charts.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.d.ts +14 -4
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/formula.js +2 -2
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.d.ts +11 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/functions.js +36 -16
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.d.ts +3 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/import.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.d.ts +42 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/read.js +2 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.d.ts +23 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/sax.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.d.ts +2 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/styles.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/write.js +1 -1
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.d.ts +40 -0
- package/dist/node_modules/@allyhub-next/sheet/dist/xlsx/zip.js +2 -0
- package/dist/node_modules/@allyhub-next/sheet/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/animation.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.d.ts +59 -39
- package/dist/node_modules/@allyhub-next/slides-core/dist/api.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/capabilities.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.d.ts +27 -13
- package/dist/node_modules/@allyhub-next/slides-core/dist/chart-api.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/check.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/code.d.ts +33 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/code.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/components.d.ts +31 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/components.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.d.ts +179 -16
- package/dist/node_modules/@allyhub-next/slides-core/dist/enums.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.d.ts +43 -21
- package/dist/node_modules/@allyhub-next/slides-core/dist/file.js +3 -3
- package/dist/node_modules/@allyhub-next/slides-core/dist/identity.d.ts +17 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/identity.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.d.ts +5 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/lang.d.ts +6 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/lang.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/measure.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/merge.d.ts +58 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/merge.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/model.d.ts +2 -4
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.d.ts +17 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/office.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.d.ts +21 -5
- package/dist/node_modules/@allyhub-next/slides-core/dist/resolve.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.d.ts +18 -16
- package/dist/node_modules/@allyhub-next/slides-core/dist/script.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-core/dist/stage.d.ts +51 -53
- package/dist/node_modules/@allyhub-next/slides-core/dist/strict.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/units.d.ts +27 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/units.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-core/dist/values.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/slides-core/dist/values.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-core/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/code.js +4 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/index.js +3 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/names.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import/script.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/chart.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/common.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/index.js +4 -0
- package/dist/{site.js → node_modules/@allyhub-next/slides-pptx/dist/read/model.js} +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/shapes.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/table.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/text.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read/timing.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/package.json +1 -1
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/component.js +2 -0
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.js +2 -2
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.js +5 -5
- package/dist/node_modules/@allyhub-next/slides-runtime/package.json +5 -1
- package/dist/node_modules/@allyhub-next/stage/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/stage/dist/page.js +22 -12
- package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.js +5 -5
- package/dist/node_modules/@allyhub-next/stage/dist/server.js +1 -1
- package/dist/node_modules/@allyhub-next/stage/package.json +1 -1
- package/dist/node_modules/@allyhub-next/stage-page/dist/host.js +1 -20
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/probe.html +8 -0
- package/dist/{astro.js → node_modules/@allyhub-next/stage-page/dist/runtime/probe.js} +1 -1
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/runtime.js +79 -0
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.html +21 -0
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/stage.js +3 -0
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/viewer.html +9 -0
- package/dist/node_modules/@allyhub-next/stage-page/dist/runtime/viewer.js +3 -0
- package/dist/node_modules/@allyhub-next/stage-page/package.json +2 -3
- package/dist/node_modules/@allyhub-next/video-core/dist/captions.js +6 -6
- package/dist/node_modules/@allyhub-next/video-core/dist/fact.d.ts +47 -8
- package/dist/node_modules/@allyhub-next/video-core/dist/fact.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/index.d.ts +1 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/index.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/marks.d.ts +14 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/marks.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/music.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/piece.d.ts +11 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.d.ts +4 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/problem.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/schema.d.ts +2 -2
- package/dist/node_modules/@allyhub-next/video-core/dist/schema.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/script.d.ts +2 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/script.js +1 -1
- package/dist/node_modules/@allyhub-next/video-core/dist/source.d.ts +7 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/source.js +2 -0
- package/dist/node_modules/@allyhub-next/video-core/dist/timeline.d.ts +10 -33
- package/dist/node_modules/@allyhub-next/video-core/package.json +1 -1
- package/dist/node_modules/@allyhub-next/website/LICENSE +241 -0
- package/dist/node_modules/@allyhub-next/website/dist/index.js +2 -0
- package/dist/node_modules/@allyhub-next/website/dist/publish.js +3 -0
- package/dist/node_modules/@allyhub-next/website/dist/rules.js +2 -0
- package/dist/node_modules/@allyhub-next/website/dist/website.js +4 -0
- package/dist/node_modules/@allyhub-next/website/package.json +13 -0
- package/dist/text/facts-text.js +4 -4
- package/dist/works.js +1 -1
- package/editor-web/assets/calc-worker-Bz9r26p1.js +158 -0
- package/editor-web/assets/dist-0emakyZE.js +36 -0
- package/editor-web/assets/dist-B3UoDUa5.js +37 -0
- package/editor-web/assets/dist-B6KzR3pN.js +10 -0
- package/editor-web/assets/dist-Bc5iA5k1.js +1 -0
- package/editor-web/assets/dist-CTQIm8Im.js +10 -0
- package/editor-web/assets/dist-CiHNHwyq.js +2 -0
- package/editor-web/assets/dist-DNZ8PQ-E.js +224 -0
- package/editor-web/assets/index-CFt3ovRY.js +69 -0
- package/editor-web/assets/index-ujKjdu_s.css +2 -0
- package/editor-web/assets/minus-BhoPZC5P.js +1 -0
- package/editor-web/assets/react-C_-rEEBU.js +101 -0
- package/editor-web/assets/tabs-Den4gHrU.js +105 -0
- package/editor-web/assets/text-align-start-CsW4nqqL.js +1 -0
- package/editor-web/index.html +5 -5
- package/package.json +8 -14
- package/dist/astro.d.ts +0 -2
- package/dist/node_modules/@allyhub-next/audio/dist/at-cut.d.ts +0 -52
- package/dist/node_modules/@allyhub-next/audio/dist/decode.d.ts +0 -33
- package/dist/node_modules/@allyhub-next/audio/dist/envelope.d.ts +0 -37
- package/dist/node_modules/@allyhub-next/audio/dist/index.d.ts +0 -17
- package/dist/node_modules/@allyhub-next/audio/dist/levels.d.ts +0 -97
- package/dist/node_modules/@allyhub-next/audio/dist/master.d.ts +0 -29
- package/dist/node_modules/@allyhub-next/audio/dist/music.d.ts +0 -11
- package/dist/node_modules/@allyhub-next/audio/dist/node/decode.d.ts +0 -39
- package/dist/node_modules/@allyhub-next/audio/dist/node/ebur128.d.ts +0 -25
- package/dist/node_modules/@allyhub-next/audio/dist/node/ffmpeg.d.ts +0 -31
- package/dist/node_modules/@allyhub-next/audio/dist/node/index.d.ts +0 -8
- package/dist/node_modules/@allyhub-next/audio/dist/node/loudness.d.ts +0 -18
- package/dist/node_modules/@allyhub-next/audio/dist/node/master.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/audio/dist/node/measure.d.ts +0 -60
- package/dist/node_modules/@allyhub-next/audio/dist/node/mix.d.ts +0 -31
- package/dist/node_modules/@allyhub-next/audio/dist/plan.d.ts +0 -143
- package/dist/node_modules/@allyhub-next/audio/dist/recorded.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/audio/dist/recording/bandwidth.d.ts +0 -47
- package/dist/node_modules/@allyhub-next/audio/dist/recording/chain.d.ts +0 -89
- package/dist/node_modules/@allyhub-next/audio/dist/recording/dynamics.d.ts +0 -64
- package/dist/node_modules/@allyhub-next/audio/dist/recording/fft.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/audio/dist/recording/filters.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/audio/dist/recording/fit.d.ts +0 -56
- package/dist/node_modules/@allyhub-next/audio/dist/recording/index.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/audio/dist/recording/loudness.d.ts +0 -12
- package/dist/node_modules/@allyhub-next/audio/dist/recording/measure.d.ts +0 -67
- package/dist/node_modules/@allyhub-next/audio/dist/recording/mic.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/audio/dist/recording/noise.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/audio/dist/recording/presets.d.ts +0 -64
- package/dist/node_modules/@allyhub-next/audio/dist/recording/room.d.ts +0 -78
- package/dist/node_modules/@allyhub-next/audio/dist/recording/setup.d.ts +0 -111
- package/dist/node_modules/@allyhub-next/audio/dist/recording/vec.d.ts +0 -3
- package/dist/node_modules/@allyhub-next/audio/dist/render.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/audio/dist/sfx.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/audio/dist/shape.d.ts +0 -118
- package/dist/node_modules/@allyhub-next/audio/dist/voice.d.ts +0 -45
- package/dist/node_modules/@allyhub-next/browser/dist/browser.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/browser/dist/capture.d.ts +0 -61
- package/dist/node_modules/@allyhub-next/browser/dist/cdp.d.ts +0 -51
- package/dist/node_modules/@allyhub-next/browser/dist/flags.d.ts +0 -13
- package/dist/node_modules/@allyhub-next/browser/dist/frames.d.ts +0 -35
- package/dist/node_modules/@allyhub-next/browser/dist/html.d.ts +0 -19
- package/dist/node_modules/@allyhub-next/browser/dist/index.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/browser/dist/launch.d.ts +0 -35
- package/dist/node_modules/@allyhub-next/browser/dist/page.d.ts +0 -67
- package/dist/node_modules/@allyhub-next/browser/dist/server.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/check/dist/cache.d.ts +0 -46
- package/dist/node_modules/@allyhub-next/check/dist/check.d.ts +0 -142
- package/dist/node_modules/@allyhub-next/check/dist/generated.d.ts +0 -22
- package/dist/node_modules/@allyhub-next/check/dist/index.d.ts +0 -7
- package/dist/node_modules/@allyhub-next/check/dist/plans.d.ts +0 -111
- package/dist/node_modules/@allyhub-next/check/dist/result.d.ts +0 -12
- package/dist/node_modules/@allyhub-next/check/dist/scenery.d.ts +0 -23
- package/dist/node_modules/@allyhub-next/dev-server/dist/background.d.ts +0 -50
- package/dist/node_modules/@allyhub-next/dev-server/dist/card.d.ts +0 -17
- package/dist/node_modules/@allyhub-next/dev-server/dist/exports.d.ts +0 -18
- package/dist/node_modules/@allyhub-next/dev-server/dist/index.d.ts +0 -11
- package/dist/node_modules/@allyhub-next/dev-server/dist/live.d.ts +0 -77
- package/dist/node_modules/@allyhub-next/dev-server/dist/mime.d.ts +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/mime.js +0 -2
- package/dist/node_modules/@allyhub-next/dev-server/dist/paths.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/dev-server/dist/project.d.ts +0 -153
- package/dist/node_modules/@allyhub-next/dev-server/dist/reveal.d.ts +0 -6
- package/dist/node_modules/@allyhub-next/dev-server/dist/server.d.ts +0 -47
- package/dist/node_modules/@allyhub-next/dev-server/dist/sound.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/dev-server/dist/stage.d.ts +0 -82
- package/dist/node_modules/@allyhub-next/dev-server/dist/stage.js +0 -121
- package/dist/node_modules/@allyhub-next/dev-server/dist/tools.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/dev-server/dist/validate.d.ts +0 -6
- package/dist/node_modules/@allyhub-next/dev-server/dist/watcher.d.ts +0 -47
- package/dist/node_modules/@allyhub-next/dev-server/dist/writer.d.ts +0 -51
- package/dist/node_modules/@allyhub-next/export/dist/batch.d.ts +0 -70
- package/dist/node_modules/@allyhub-next/export/dist/deck-fonts.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/export/dist/deck-pptx.d.ts +0 -12
- package/dist/node_modules/@allyhub-next/export/dist/export.d.ts +0 -123
- package/dist/node_modules/@allyhub-next/export/dist/index.d.ts +0 -5
- package/dist/node_modules/@allyhub-next/export/dist/names.d.ts +0 -36
- package/dist/node_modules/@allyhub-next/measure/dist/compare.d.ts +0 -195
- package/dist/node_modules/@allyhub-next/measure/dist/contrast.d.ts +0 -14
- package/dist/node_modules/@allyhub-next/measure/dist/cut-sheet.d.ts +0 -90
- package/dist/node_modules/@allyhub-next/measure/dist/cuts.d.ts +0 -108
- package/dist/node_modules/@allyhub-next/measure/dist/facts.d.ts +0 -60
- package/dist/node_modules/@allyhub-next/measure/dist/fidelity.d.ts +0 -40
- package/dist/node_modules/@allyhub-next/measure/dist/flat.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/measure/dist/index.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/measure/dist/loop.d.ts +0 -22
- package/dist/node_modules/@allyhub-next/measure/dist/overlay.d.ts +0 -57
- package/dist/node_modules/@allyhub-next/measure/dist/recording-report.d.ts +0 -66
- package/dist/node_modules/@allyhub-next/measure/dist/reference/compare.d.ts +0 -118
- package/dist/node_modules/@allyhub-next/measure/dist/reference/folder.d.ts +0 -75
- package/dist/node_modules/@allyhub-next/measure/dist/reference/interpret.d.ts +0 -39
- package/dist/node_modules/@allyhub-next/measure/dist/reference/piece.d.ts +0 -53
- package/dist/node_modules/@allyhub-next/measure/dist/reference/sections.d.ts +0 -53
- package/dist/node_modules/@allyhub-next/measure/dist/reference/sets.d.ts +0 -84
- package/dist/node_modules/@allyhub-next/measure/dist/reference/text.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/measure/dist/reference/video.d.ts +0 -55
- package/dist/node_modules/@allyhub-next/measure/dist/seams.d.ts +0 -46
- package/dist/node_modules/@allyhub-next/measure/dist/sound-measures.d.ts +0 -74
- package/dist/node_modules/@allyhub-next/measure/dist/sound-report.d.ts +0 -156
- package/dist/node_modules/@allyhub-next/measure/dist/still.d.ts +0 -58
- package/dist/node_modules/@allyhub-next/measure/dist/version-voice.d.ts +0 -12
- package/dist/node_modules/@allyhub-next/project/dist/console.d.ts +0 -34
- package/dist/node_modules/@allyhub-next/project/dist/digest.d.ts +0 -9
- package/dist/node_modules/@allyhub-next/project/dist/index.d.ts +0 -11
- package/dist/node_modules/@allyhub-next/project/dist/ledger.d.ts +0 -17
- package/dist/node_modules/@allyhub-next/project/dist/media-index.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/project/dist/page.d.ts +0 -119
- package/dist/node_modules/@allyhub-next/project/dist/says.d.ts +0 -15
- package/dist/node_modules/@allyhub-next/project/dist/scenery.d.ts +0 -35
- package/dist/node_modules/@allyhub-next/project/dist/session.d.ts +0 -37
- package/dist/node_modules/@allyhub-next/project/dist/stretch.d.ts +0 -38
- package/dist/node_modules/@allyhub-next/project/dist/version.d.ts +0 -114
- package/dist/node_modules/@allyhub-next/render/dist/cap.d.ts +0 -41
- package/dist/node_modules/@allyhub-next/render/dist/capture.d.ts +0 -78
- package/dist/node_modules/@allyhub-next/render/dist/clip.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/render/dist/composite.d.ts +0 -106
- package/dist/node_modules/@allyhub-next/render/dist/delivery.d.ts +0 -18
- package/dist/node_modules/@allyhub-next/render/dist/doc/fonts.d.ts +0 -3
- package/dist/node_modules/@allyhub-next/render/dist/doc/index.d.ts +0 -3
- package/dist/node_modules/@allyhub-next/render/dist/doc/print.d.ts +0 -51
- package/dist/node_modules/@allyhub-next/render/dist/encode.d.ts +0 -111
- package/dist/node_modules/@allyhub-next/render/dist/errors.d.ts +0 -15
- package/dist/node_modules/@allyhub-next/render/dist/exports.d.ts +0 -67
- package/dist/node_modules/@allyhub-next/render/dist/ffmpeg.d.ts +0 -75
- package/dist/node_modules/@allyhub-next/render/dist/footage.d.ts +0 -169
- package/dist/node_modules/@allyhub-next/render/dist/image.d.ts +0 -16
- package/dist/node_modules/@allyhub-next/render/dist/index.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/render/dist/junction.d.ts +0 -70
- package/dist/node_modules/@allyhub-next/render/dist/look.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/render/dist/page.d.ts +0 -178
- package/dist/node_modules/@allyhub-next/render/dist/parts.d.ts +0 -140
- package/dist/node_modules/@allyhub-next/render/dist/png.d.ts +0 -37
- package/dist/node_modules/@allyhub-next/render/dist/pool.d.ts +0 -54
- package/dist/node_modules/@allyhub-next/render/dist/post-probe.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/render/dist/post.d.ts +0 -27
- package/dist/node_modules/@allyhub-next/render/dist/render.d.ts +0 -151
- package/dist/node_modules/@allyhub-next/render/dist/segments.d.ts +0 -40
- package/dist/node_modules/@allyhub-next/render/dist/sound.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/render/dist/stills.d.ts +0 -41
- package/dist/node_modules/@allyhub-next/render/dist/tools.d.ts +0 -25
- package/dist/node_modules/@allyhub-next/render/dist/webp.d.ts +0 -17
- package/dist/node_modules/@allyhub-next/runtime/dist/bridge.d.ts +0 -211
- package/dist/node_modules/@allyhub-next/runtime/dist/captions.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/runtime/dist/clock.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/runtime/dist/compose.d.ts +0 -149
- package/dist/node_modules/@allyhub-next/runtime/dist/console.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/runtime/dist/contrast.d.ts +0 -13
- package/dist/node_modules/@allyhub-next/runtime/dist/embed.d.ts +0 -50
- package/dist/node_modules/@allyhub-next/runtime/dist/env.d.ts +0 -101
- package/dist/node_modules/@allyhub-next/runtime/dist/errors.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/runtime/dist/facade.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/runtime/dist/fonts.d.ts +0 -110
- package/dist/node_modules/@allyhub-next/runtime/dist/footage.d.ts +0 -52
- package/dist/node_modules/@allyhub-next/runtime/dist/frame.d.ts +0 -61
- package/dist/node_modules/@allyhub-next/runtime/dist/guards.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/runtime/dist/index.d.ts +0 -14
- package/dist/node_modules/@allyhub-next/runtime/dist/inspect.d.ts +0 -112
- package/dist/node_modules/@allyhub-next/runtime/dist/locate.d.ts +0 -11
- package/dist/node_modules/@allyhub-next/runtime/dist/measure.d.ts +0 -41
- package/dist/node_modules/@allyhub-next/runtime/dist/mix-plan.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/runtime/dist/music.d.ts +0 -29
- package/dist/node_modules/@allyhub-next/runtime/dist/output.d.ts +0 -5
- package/dist/node_modules/@allyhub-next/runtime/dist/pictures.d.ts +0 -39
- package/dist/node_modules/@allyhub-next/runtime/dist/piece.d.ts +0 -34
- package/dist/node_modules/@allyhub-next/runtime/dist/player/clips.d.ts +0 -41
- package/dist/node_modules/@allyhub-next/runtime/dist/player/cutout.d.ts +0 -57
- package/dist/node_modules/@allyhub-next/runtime/dist/player/player.d.ts +0 -78
- package/dist/node_modules/@allyhub-next/runtime/dist/reads.d.ts +0 -132
- package/dist/node_modules/@allyhub-next/runtime/dist/sound.d.ts +0 -22
- package/dist/node_modules/@allyhub-next/runtime/dist/speech.d.ts +0 -107
- package/dist/node_modules/@allyhub-next/runtime/dist/stage-kit.d.ts +0 -12
- package/dist/node_modules/@allyhub-next/runtime/dist/stage.d.ts +0 -34
- package/dist/node_modules/@allyhub-next/runtime/dist/styles.d.ts +0 -35
- package/dist/node_modules/@allyhub-next/runtime/dist/takes.d.ts +0 -72
- package/dist/node_modules/@allyhub-next/runtime/dist/titles.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/runtime/dist/transitions.d.ts +0 -26
- package/dist/node_modules/@allyhub-next/site/dist/assets.d.ts +0 -59
- package/dist/node_modules/@allyhub-next/site/dist/assets.js +0 -2
- package/dist/node_modules/@allyhub-next/site/dist/astro.d.ts +0 -22
- package/dist/node_modules/@allyhub-next/site/dist/astro.js +0 -3
- package/dist/node_modules/@allyhub-next/site/dist/lockfile.d.ts +0 -40
- package/dist/node_modules/@allyhub-next/site/dist/lockfile.js +0 -3
- package/dist/node_modules/@allyhub-next/site/dist/media.d.ts +0 -24
- package/dist/node_modules/@allyhub-next/site/dist/media.js +0 -4
- package/dist/node_modules/@allyhub-next/site/package.json +0 -25
- package/dist/node_modules/@allyhub-next/slides-core/dist/preset.d.ts +0 -5
- package/dist/node_modules/@allyhub-next/slides-core/dist/preset.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/charts.d.ts +0 -6
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/fonts.d.ts +0 -45
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.d.ts +0 -18
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/import.js +0 -3
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/index.d.ts +0 -5
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.d.ts +0 -56
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/read.js +0 -4
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/shapes.d.ts +0 -72
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/text.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/theme.d.ts +0 -4
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/timing.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/write.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/slides-pptx/dist/xml.d.ts +0 -32
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/draw.d.ts +0 -43
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.d.ts +0 -4
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/edit.js +0 -2
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/index.d.ts +0 -4
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/ink.d.ts +0 -10
- package/dist/node_modules/@allyhub-next/slides-runtime/dist/load.d.ts +0 -6
- package/dist/node_modules/@allyhub-next/stage/dist/bakes.d.ts +0 -42
- package/dist/node_modules/@allyhub-next/stage/dist/graphics.d.ts +0 -7
- package/dist/node_modules/@allyhub-next/stage/dist/identity.d.ts +0 -2
- package/dist/node_modules/@allyhub-next/stage/dist/index.d.ts +0 -9
- package/dist/node_modules/@allyhub-next/stage/dist/page.d.ts +0 -87
- package/dist/node_modules/@allyhub-next/stage/dist/scenery-page.d.ts +0 -69
- package/dist/node_modules/@allyhub-next/stage/dist/scenery-solve.d.ts +0 -49
- package/dist/node_modules/@allyhub-next/stage/dist/scenery.d.ts +0 -8
- package/dist/node_modules/@allyhub-next/stage/dist/server.d.ts +0 -21
- package/dist/node_modules/@allyhub-next/stage-page/dist/host.d.ts +0 -22
- package/dist/node_modules/@allyhub-next/stage-page/dist/page.js +0 -79
- package/dist/site.d.ts +0 -2
- package/editor-web/assets/dist-BW2s9FMO.js +0 -4
- package/editor-web/assets/dist-C-6JmebI.js +0 -233
- package/editor-web/assets/dist-CCYMLMKN.js +0 -6
- package/editor-web/assets/dist-CHzurjMx.js +0 -33
- package/editor-web/assets/dist-DF7H1dxw.js +0 -1
- package/editor-web/assets/dist-Da5AUSKX.js +0 -2
- package/editor-web/assets/index-B7S9RZhL.css +0 -2
- package/editor-web/assets/index-CovQYWvD.js +0 -69
- package/editor-web/assets/minus-BrvjaJyO.js +0 -1
- package/editor-web/assets/react-DV5fPdiH.js +0 -101
- package/editor-web/assets/textarea-B0vCGdZI.js +0 -105
- package/editor-web/assets/trash-2-B0dvc1cZ.js +0 -1
- package/editor-web/assets/undo-2-A1EPubPO.js +0 -1
- /package/dist/node_modules/@allyhub-next/{site → ooxml}/LICENSE +0 -0
package/dist/site.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{Bt as t,Ct as n,Dt as r,Ht as i,Lt as a,Mt as o,Ot as s,Pt as c,Tt as l,Ut as u,Vt as d,Wt as f,Xt as p,Yt as m,_ as h,a as g,bt as _,c as v,d as ee,f as y,g as b,gn as x,h as S,in as C,l as w,m as T,n as te,o as ne,p as re,r as ie,s as E,v as ae,y as oe,zt as D}from"./react-DV5fPdiH.js";import{a as se,b as O,c as ce,d as k,f as le,g as ue,h as A,i as j,m as de,n as fe,p as pe,r as me,s as M,t as he,u as ge,w as _e,y as N}from"./dist-CCYMLMKN.js";import{a as ve,c as ye,d as be,f as xe,i as Se,l as Ce,n as we,o as Te,r as Ee,s as De,u as Oe}from"./dist-Da5AUSKX.js";import{a as P,c as ke,d as Ae,f as F,l as je,n as Me,r as Ne,s as Pe,t as Fe,u as I}from"./textarea-B0vCGdZI.js";import{i as L,n as Ie,r as R,t as z}from"./trash-2-B0dvc1cZ.js";import{i as Le,n as Re,r as ze,t as Be}from"./undo-2-A1EPubPO.js";import{d as B,l as Ve,t as He}from"./index-CovQYWvD.js";var V=t(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),H=t(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),Ue=t(`bring-to-front`,[[`rect`,{x:`8`,y:`8`,width:`8`,height:`8`,rx:`2`,key:`yj20xf`}],[`path`,{d:`M4 10a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2`,key:`1ltk23`}],[`path`,{d:`M14 20a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2`,key:`1q24h9`}]]),U=t(`eye-off`,[[`path`,{d:`M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49`,key:`ct8e1f`}],[`path`,{d:`M14.084 14.158a3 3 0 0 1-4.242-4.242`,key:`151rxh`}],[`path`,{d:`M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143`,key:`13bj9a`}],[`path`,{d:`m2 2 20 20`,key:`1ooewy`}]]),W=t(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),We=t(`film`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M7 3v18`,key:`bbkbws`}],[`path`,{d:`M3 7.5h4`,key:`zfgn84`}],[`path`,{d:`M3 12h18`,key:`1i2n21`}],[`path`,{d:`M3 16.5h4`,key:`1230mu`}],[`path`,{d:`M17 3v18`,key:`in4fa5`}],[`path`,{d:`M17 7.5h4`,key:`myr1c1`}],[`path`,{d:`M17 16.5h4`,key:`go4c1d`}]]),Ge=t(`layout-template`,[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]]),Ke=t(`send-to-back`,[[`rect`,{x:`14`,y:`14`,width:`8`,height:`8`,rx:`2`,key:`1b0bso`}],[`rect`,{x:`2`,y:`2`,width:`8`,height:`8`,rx:`2`,key:`1x09vl`}],[`path`,{d:`M7 14v1a2 2 0 0 0 2 2h1`,key:`pao6x6`}],[`path`,{d:`M14 7h1a2 2 0 0 1 2 2v1`,key:`19tdru`}]]),qe=t(`shapes`,[[`path`,{d:`M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z`,key:`1bo67w`}],[`rect`,{x:`3`,y:`14`,width:`7`,height:`7`,rx:`1`,key:`1bkyp8`}],[`circle`,{cx:`17.5`,cy:`17.5`,r:`3.5`,key:`w3z12y`}]]),Je=t(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),Ye=t(`type`,[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),G=e(x(),1),K=d(),Xe=Object.defineProperty,Ze=(e,t)=>Xe(e,`name`,{value:t,configurable:!0}),Qe=`Toggle`,$e=G.forwardRef(Ze(function(e,t){let{pressed:r,defaultPressed:i,onPressedChange:a,...o}=e,[c,u]=n({prop:r,onChange:a,defaultProp:i??!1,caller:Qe});return(0,K.jsx)(s.button,{type:`button`,"aria-pressed":c,"data-state":c?`on`:`off`,"data-disabled":e.disabled?``:void 0,...o,ref:t,onClick:l(e.onClick,()=>{e.disabled||u(!c)})})},`Toggle`)),et=Object.defineProperty,q=(e,t)=>et(e,`name`,{value:t,configurable:!0}),J=`ToggleGroup`,tt={Single:`single`,Multiple:`multiple`},[nt,rt]=r(J,[oe]),it=oe(),at=G.forwardRef(q(function(e,t){let{type:n,...r}=e;if(n===tt.Single)return(0,K.jsx)(ct,{role:`radiogroup`,...r,ref:t});if(n===tt.Multiple)return(0,K.jsx)(lt,{role:`toolbar`,...r,ref:t});throw Error(`Missing prop \`type\` expected on \`${J}\``)},`ToggleGroup`)),[ot,st]=nt(J),ct=G.forwardRef(q(function(e,t){let{value:r,defaultValue:i,onValueChange:a=q(()=>{},`onValueChange`),...o}=e,[s,c]=n({prop:r,defaultProp:i??``,onChange:a,caller:J});return(0,K.jsx)(ot,{scope:e.__scopeToggleGroup,type:tt.Single,value:G.useMemo(()=>s?[s]:[],[s]),onItemActivate:c,onItemDeactivate:G.useCallback(()=>c(``),[c]),children:(0,K.jsx)(ft,{...o,ref:t})})},`ToggleGroupImplSingle`)),lt=G.forwardRef(q(function(e,t){let{value:r,defaultValue:i,onValueChange:a=q(()=>{},`onValueChange`),...o}=e,[s,c]=n({prop:r,defaultProp:i??[],onChange:a,caller:J}),l=G.useCallback(e=>c((t=[])=>[...t,e]),[c]),u=G.useCallback(e=>c((t=[])=>t.filter(t=>t!==e)),[c]);return(0,K.jsx)(ot,{scope:e.__scopeToggleGroup,type:tt.Multiple,value:s,onItemActivate:l,onItemDeactivate:u,children:(0,K.jsx)(ft,{...o,ref:t})})},`ToggleGroupImplMultiple`)),[ut,dt]=nt(J),ft=G.forwardRef(q(function(e,t){let{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:a,dir:o,loop:c=!0,...l}=e,u=it(n),d=_(o),f={dir:d,...l};return(0,K.jsx)(ut,{scope:n,rovingFocus:i,disabled:r,children:i?(0,K.jsx)(h,{asChild:!0,...u,orientation:a,dir:d,loop:c,children:(0,K.jsx)(s.div,{...f,ref:t})}):(0,K.jsx)(s.div,{...f,ref:t})})},`ToggleGroupImpl`)),pt=`ToggleGroupItem`,mt=G.forwardRef(q(function(e,t){let n=st(pt,e.__scopeToggleGroup),r=dt(pt,e.__scopeToggleGroup),i=it(e.__scopeToggleGroup),a=n.value.includes(e.value),o=r.disabled||e.disabled,s={...e,pressed:a,disabled:o},c=G.useRef(null);return r.rovingFocus?(0,K.jsx)(ae,{asChild:!0,...i,focusable:!o,active:a,ref:c,children:(0,K.jsx)(ht,{...s,ref:t})}):(0,K.jsx)(ht,{...s,ref:t})},`ToggleGroupItem`)),ht=G.forwardRef(q(function(e,t){let{__scopeToggleGroup:n,value:r,...i}=e,a=st(pt,n),o={role:`radio`,"aria-checked":e.pressed,"aria-pressed":void 0},s=a.type===tt.Single?o:void 0;return(0,K.jsx)($e,{...s,...i,ref:t,onPressedChange:e=>{e?a.onItemActivate(r):a.onItemDeactivate(r)}})},`ToggleGroupItemImpl`)),Y=914400,X=12700,Z=36e3,gt=e=>Math.trunc(e*Y),_t=e=>Math.trunc(e*Z);_t(297),_t(210),_t(210),_t(297),gt(11),gt(8.5),gt(8.5),gt(11);var vt={appear:0,fade:.5,wipe:.5,"fly-in":.5,zoom:.5,disappear:0,"fade-out":.5,"wipe-out":.5,"fly-out":.5,"zoom-out":.5,pulse:.5,path:2},yt={title:`title`,ctrTitle:`title`,subTitle:`body`,body:`body`,pic:`body`,media:`body`,obj:`body`,dt:`dt`,ftr:`ftr`,sldNum:`sldNum`};function bt(e,t){let n=yt[t];return e.shapes.find(e=>e.kind===`placeholder`&&e.placeholder?.type===n)}function xt(e){let t=new Ne,n=Me(e,{lineCounter:t}),r=e=>{let r=e===``?[]:e.split(`.`);for(let e=r.length;e>=0;e--){let i=n.getIn(r.slice(0,e).map(e=>/^\d+$/u.test(e)?Number(e):e),!0)?.range?.[0];if(i!==void 0)return t.linePos(i).line}};if(n.errors.length>0)return{problems:n.errors.map(e=>({path:``,line:t.linePos(e.pos[0]).line,message:`slides.yaml is not YAML: ${e.message.split(`
|
|
2
|
-
`)[0]??``}`})),lineOf:r};let i=C(`slides`,n.toJS()??{});return i.ok?{file:i.value,problems:[],lineOf:r}:{problems:i.problems.map(e=>{let t=r(e.path);return{path:e.path,...t===void 0?{}:{line:t},message:e.message}}),lineOf:r}}var St=`slides: []
|
|
3
|
-
`;function Ct(e){let t=e.get(`slides`,!0);if(Pe(t)||(P(e.contents)?e.set(`slides`,e.createNode([])):e.contents=e.createNode({slides:[]}),t=e.get(`slides`,!0)),!Pe(t))throw Error(`slides.yaml has no slides list.`);return t}var wt=(e,t)=>e.findIndex(e=>P(e)&&e.get(`id`)===t),Tt=[`frame`,`text`,`fill`,`line`,`z`,`crop`];function Et(e,t){let n=Me(e===void 0||e.trim()===``?St:e);if(n.errors.length>0)throw Error(`slides.yaml is not YAML: it is mended by hand first.`);let r=Ct(n),i=e=>{if(e===null)return 0;let t=e===void 0?-1:wt(r.items,e);return t<0?r.items.length:t+1};if(t.op===`add`)return wt(r.items,t.slide.id)>=0||(r.items.splice(i(t.after),0,n.createNode(t.slide)),r.flow===!0&&(r.flow=!1)),n.toString();let a=wt(r.items,t.slide),o=r.items[a];if(a<0||!P(o))return e??St;let s=e=>{let t=o.get(`shapes`,!0);return!P(t)&&e&&(o.set(`shapes`,n.createNode({})),t=o.get(`shapes`,!0)),P(t)?t:void 0},c=()=>{let e=s(!1);if(e){for(let t of[...e.items])P(t.value)&&t.value.items.length===0&&e.delete(t.key);e.items.length===0&&o.delete(`shapes`)}};switch(t.op){case`move`:if(t.after===t.slide)break;r.items.splice(a,1),r.items.splice(i(t.after),0,o);break;case`duplicate`:{let e=o.clone();e.set(`id`,t.id),r.items.splice(a+1,0,e);break}case`remove`:r.items.splice(a,1);break;case`layout`:o.set(`layout`,t.layout);break;case`hidden`:t.hidden===!1||Array.isArray(t.hidden)&&t.hidden.length===0?o.delete(`hidden`):o.set(`hidden`,n.createNode(t.hidden));break;case`shape`:{let e=s(!0);if(!e)break;let r=e.get(t.shape,!0);if(P(r)||(e.set(t.shape,n.createNode({})),r=e.get(t.shape,!0)),!P(r))break;for(let[e,i]of Object.entries(t.set)){let t=e.split(`.`);if(i===void 0){r.deleteIn(t);let e=t.length>1?r.getIn(t.slice(0,-1),!0):void 0;P(e)&&e.items.length===0&&r.deleteIn(t.slice(0,-1))}else r.setIn(t,n.createNode(i))}c();break}case`unplace`:s(!1)?.delete(t.shape),c();break;case`animations`:t.animations.length===0?o.delete(`animations`):o.set(`animations`,n.createNode(t.animations));break;case`transition`:t.transition===void 0?o.delete(`transition`):o.set(`transition`,n.createNode(t.transition));break;case`reset`:{let e=s(!1);if(!e)break;for(let n of e.items){let e=String(P(n.key)?``:n.key.value??n.key);if(t.shape!==void 0&&e!==t.shape)continue;let r=n.value;if(P(r)&&![`textbox`,`picture`,`movie`,`geometry`,`component`].some(e=>r.has(e)))for(let e of Tt)r.delete(e)}c();break}}return n.toString()}function Dt(e,t){let n=new Set(e),r=t.replace(/[^A-Za-z0-9_-]+/gu,`-`).replace(/^-+|-+$/gu,``)||`slide`;if(!n.has(r))return r;for(let e=2;;e++){let t=`${r}-${String(e)}`;if(!n.has(t))return t}}var Ot=new Set([`text`,`props`,`crop`]),kt=e=>Array.isArray(e)?e.map(kt):typeof e==`object`&&e?Object.fromEntries(Object.entries(e).sort(([e],[t])=>e<t?-1:+(e>t)).map(([e,t])=>[e,kt(t)])):e,At=(e,t)=>JSON.stringify(kt(e))===JSON.stringify(kt(t));function jt(e){let t=new Map;for(let[n,r]of Object.entries(e??{}))if(Ot.has(n)&&typeof r==`object`&&!Array.isArray(r))for(let[e,i]of Object.entries(r))t.set(`${n}.${e}`,i);else t.set(n,r);return t}function Mt(e,t){let n=e.length,r=t.length,i=Array.from({length:n+1},()=>Array(r+1).fill(0));for(let a=n-1;a>=0;a--)for(let n=r-1;n>=0;n--){let r=i[a],o=i[a+1];r&&o&&(r[n]=e[a]===t[n]?(o[n+1]??0)+1:Math.max(o[n]??0,r[n+1]??0))}let a=new Set;for(let o=0,s=0;o<n&&s<r;)e[o]===t[s]?(a.add(e[o]??``),o++,s++):(i[o+1]?.[s]??0)>=(i[o]?.[s+1]??0)?o++:s++;return a}function Nt(e,t){let n=[],r=t.id;t.layout!==void 0&&t.layout!==e.layout&&n.push({op:`layout`,slide:r,layout:t.layout}),At(e.hidden,t.hidden)||n.push({op:`hidden`,slide:r,hidden:t.hidden??!1}),At(e.animations??[],t.animations??[])||n.push({op:`animations`,slide:r,animations:t.animations??[]}),At(e.transition,t.transition)||n.push({op:`transition`,slide:r,...t.transition?{transition:t.transition}:{}});let i=e.shapes??{},a=t.shapes??{};for(let e of Object.keys(i))e in a||n.push({op:`unplace`,slide:r,shape:e});for(let[e,t]of Object.entries(a)){let a=jt(i[e]),o=jt(t),s={};for(let e of new Set([...a.keys(),...o.keys()]))At(a.get(e),o.get(e))||(s[e]=o.get(e));Object.keys(s).length>0&&n.push({op:`shape`,slide:r,shape:e,set:s})}return n}function Pt(e,t){let n=[],r=new Map(e.slides.map(e=>[e.id,e])),i=new Set(t.slides.map(e=>e.id));for(let t of e.slides)i.has(t.id)||n.push({op:`remove`,slide:t.id});let a=Mt(e.slides.map(e=>e.id).filter(e=>i.has(e)),t.slides.map(e=>e.id).filter(e=>r.has(e)));return t.slides.forEach((e,i)=>{let o=i===0?null:t.slides[i-1]?.id??null,s=r.get(e.id);!s||s.generate!==e.generate?(s&&n.push({op:`remove`,slide:e.id}),n.push({op:`add`,slide:e,after:o})):(a.has(e.id)||n.push({op:`move`,slide:e.id,after:o}),n.push(...Nt(s,e)))}),n}var Ft=(e,t,n)=>JSON.stringify([e,t,n]);function It(e){let t=new Map;switch(e.op){case`layout`:t.set(Ft(e.slide,``,`layout`),e.layout);break;case`hidden`:t.set(Ft(e.slide,``,`hidden`),e.hidden);break;case`animations`:t.set(Ft(e.slide,``,`animations`),e.animations);break;case`transition`:t.set(Ft(e.slide,``,`transition`),e.transition);break;case`shape`:for(let[n,r]of Object.entries(e.set))t.set(Ft(e.slide,e.shape,n),r);break;case`unplace`:t.set(Ft(e.slide,e.shape,``),void 0);break;case`remove`:t.set(Ft(e.slide,``,``),void 0)}return t}function Lt(e,t,n){let r=xt(e).file??{slides:[]},i=xt(n).file;if(!i)return;let a=Pt(r,t),o=n;for(let e of a)o=Et(o,e);let s=new Map;for(let e of Pt(r,i))for(let[t,n]of It(e))s.set(t,n);let c=new Set(r.slides.map(e=>e.id).filter(e=>!i.slides.some(t=>t.id===e))),l=[];for(let e of a)if(`slide`in e&&typeof e.slide==`string`&&c.has(e.slide)&&e.op!==`remove`)l.push({slide:e.slide});else for(let[t,n]of It(e)){if(!s.has(t)||At(s.get(t),n))continue;let[e=``,r=``,i=``]=JSON.parse(t);l.push({slide:e,...r===``?{}:{shape:r},...i===``?{}:{field:i}})}return{text:o,conflicts:l}}function Rt(e){let t=Me(e);if(t.errors.length>0)return;let n=C(`script`,t.toJS()??{});return n.ok?n.value:void 0}function zt(e){let t=e.get(`slides`,!0);if(Pe(t)||(P(e.contents)?e.set(`slides`,e.createNode([])):e.contents=e.createNode({slides:[]}),t=e.get(`slides`,!0)),!Pe(t))throw Error(`The script has no slides list.`);return t.flow===!0&&(t.flow=!1),t}function Bt(e,t){let n=Me(e===void 0||e.trim()===``?`slides: []
|
|
4
|
-
`:e);if(n.errors.length>0)throw Error(`The script is not YAML: it is mended by hand first.`);let r=zt(n),i=r.items.findIndex(e=>P(e)&&e.get(`id`)===t.slide);if(t.op===`remove`)return i>=0&&r.items.splice(i,1),n.toString();let a=t.op===`text`?t.words===void 0:t.notes===void 0;if(i<0&&a)return n.toString();let o=r.items[i];if(P(o)||(r.items.push(n.createNode({id:t.slide})),o=r.items.at(-1)),!P(o))return n.toString();if(t.op===`notes`)t.notes===void 0?o.delete(`notes`):o.set(`notes`,n.createNode(t.notes));else if(t.words===void 0){o.deleteIn([`text`,t.shape]);let e=o.get(`text`,!0);P(e)&&e.items.length===0&&o.delete(`text`)}else o.setIn([`text`,t.shape],n.createNode(t.words));return o.items.length===1&&r.items.splice(r.items.indexOf(o),1),n.toString()}var Vt=e=>JSON.stringify(e);function Ht(e,t){let n=[],r=new Map(e.slides.map(e=>[e.id,e])),i=new Map(t.slides.map(e=>[e.id,e]));for(let e of r.keys())i.has(e)||n.push({op:`remove`,slide:e});for(let[e,t]of i){let i=r.get(e),a=i?.text??{},o=t.text??{};for(let t of new Set([...Object.keys(a),...Object.keys(o)]))Vt(a[t])!==Vt(o[t])&&n.push({op:`text`,slide:e,shape:t,words:o[t]});Vt(i?.notes)!==Vt(t.notes)&&n.push({op:`notes`,slide:e,notes:t.notes})}return n}function Ut(e,t,n){let r=Rt(e)??{parts:[],slides:[]},i=Rt(n);if(!i)return;let a=Ht(r,t),o=n;for(let e of a)o=Bt(o,e);let s=e=>`${e.slide}\u0000${e.op===`text`?e.shape:e.op}`,c=new Map(Ht(r,i).map(e=>[s(e),e])),l=[];for(let e of a){let t=c.get(s(e));t&&Vt(t)!==Vt(e)&&l.push({slide:e.slide,...e.op===`text`?{shape:e.shape}:{}})}return{text:o,conflicts:l}}var Wt=u({en:{loading:`Loading the deck`,noDeck:`This is not a deck`,version:`Language`,slides:`Slides`,skipped:`Skipped`,slideCount:e=>e===1?`1 slide`:`${String(e)} slides`,slideOf:(e,t)=>`Slide ${String(e)} of ${String(t)}`,present:`Present`,exportTitle:`Export`,notes:`Speaker notes`,slide:`Slide`,presenting:`Presenting`,presentHelp:`← → steps · N notes · Esc stop`,noNotes:`No notes for this slide`,next:`Next`,addTitle:`Click to add title`,addSubtitle:`Click to add subtitle`,addText:`Click to add text`,addNotes:`Click to add notes`,newSlide:`New Slide`,layout:`Layout`,insert:`Insert`,textBox:`Text Box`,picture:`Pictures`,video:`Video`,shape:`Shapes`,shapes:{rect:`Rectangle`,roundRect:`Rounded Rectangle`,ellipse:`Oval`,triangle:`Triangle`,rightArrow:`Arrow`,line:`Line`},slideMenu:e=>`Slide ${String(e)} actions`,duplicate:`Duplicate`,remove:`Delete`,hide:`Hide Slide`,show:`Show Slide`,fill:`Shape Fill`,textColor:`Font Color`,size:`Font Size`,bold:`Bold`,cut:`Cut`,copy:`Copy`,paste:`Paste`,italic:`Italic`,growFont:`Increase Font Size`,shrinkFont:`Decrease Font Size`,arrange:`Arrange`,arrangeTo:{front:`Bring to Front`,forward:`Bring Forward`,backward:`Send Backward`,back:`Send to Back`},preview:`Preview`,duration:`Duration`,noAnimation:`None`,alignment:`Alignment`,align:{l:`Align Left`,ctr:`Center`,r:`Align Right`,just:`Justify`},resetLayout:`Reset`,animations:`Animations`,animationEffects:`Effect`,animationStarts:`Start`,fromLayout:`Part of the layout`,animationHint:`Select a shape to animate it`,animationEarlier:`Move Earlier`,animationLater:`Move Later`,animationRemove:`Remove animation`,animationStart:{"on-click":`On Click`,"with-previous":`With Previous`,"after-previous":`After Previous`},animationEffect:{appear:`Appear`,fade:`Fade`,wipe:`Wipe`,"fly-in":`Fly In`,zoom:`Zoom`,disappear:`Disappear`,"fade-out":`Fade Out`,"wipe-out":`Wipe Out`,"fly-out":`Fly Out`,"zoom-out":`Zoom Out`,pulse:`Pulse`,path:`Motion Path`},codeWords:`Its words are the deck's code's`,changed:(e,t)=>t===1?`${e} changed 1 thing`:`${e} changed ${String(t)} things`,changedElsewhere:e=>e===1?`1 change made outside`:`${String(e)} changes made outside`,keep:`Keep`,undo:`Undo`,redo:`Redo`,keepAll:`Keep all`,undoAll:`Undo all`,previous:`Previous`,bothChanged:e=>`You and ${e} changed the same thing: yours stands.`,unreadable:e=>`${e} cannot be read. It is not edited until it is mended.`},"zh-cn":{loading:`正在加载演示文稿`,noDeck:`这不是演示文稿`,version:`语言`,slides:`幻灯片`,skipped:`已跳过`,slideCount:e=>`${String(e)} 张幻灯片`,slideOf:(e,t)=>`第 ${String(e)} 张,共 ${String(t)} 张`,present:`放映`,exportTitle:`导出`,notes:`演讲者备注`,slide:`幻灯片`,presenting:`正在放映`,presentHelp:`← → 步骤 · N 备注 · Esc 结束`,noNotes:`此幻灯片没有备注`,next:`下一页`,addTitle:`单击此处添加标题`,addSubtitle:`单击此处添加副标题`,addText:`单击此处添加文本`,addNotes:`单击此处添加备注`,newSlide:`新建幻灯片`,layout:`版式`,insert:`插入`,textBox:`文本框`,picture:`图片`,video:`视频`,shape:`形状`,shapes:{rect:`矩形`,roundRect:`圆角矩形`,ellipse:`椭圆`,triangle:`三角形`,rightArrow:`箭头`,line:`直线`},slideMenu:e=>`第 ${String(e)} 张幻灯片的操作`,duplicate:`复制`,remove:`删除`,hide:`隐藏幻灯片`,show:`取消隐藏幻灯片`,fill:`形状填充`,textColor:`字体颜色`,size:`字号`,bold:`加粗`,cut:`剪切`,copy:`复制`,paste:`粘贴`,italic:`倾斜`,growFont:`增大字号`,shrinkFont:`减小字号`,arrange:`排列`,arrangeTo:{front:`置于顶层`,forward:`上移一层`,backward:`下移一层`,back:`置于底层`},preview:`预览`,duration:`持续时间`,noAnimation:`无`,alignment:`对齐方式`,align:{l:`左对齐`,ctr:`居中`,r:`右对齐`,just:`两端对齐`},resetLayout:`重置`,animations:`动画`,animationEffects:`效果`,animationStarts:`开始`,fromLayout:`属于版式`,animationHint:`选中形状后可为它添加动画`,animationEarlier:`向前移动`,animationLater:`向后移动`,animationRemove:`删除动画`,animationStart:{"on-click":`单击时`,"with-previous":`与上一动画同时`,"after-previous":`上一动画之后`},animationEffect:{appear:`出现`,fade:`淡入`,wipe:`擦除`,"fly-in":`飞入`,zoom:`缩放`,disappear:`消失`,"fade-out":`淡出`,"wipe-out":`擦除退出`,"fly-out":`飞出`,"zoom-out":`缩放退出`,pulse:`脉冲`,path:`动作路径`},codeWords:`文字来自演示文稿的代码`,changed:(e,t)=>`${e} 改了 ${String(t)} 处`,changedElsewhere:e=>`外部改了 ${String(e)} 处`,keep:`保留`,undo:`撤销`,redo:`重做`,keepAll:`全部保留`,undoAll:`全部撤销`,previous:`上一个`,bothChanged:e=>`你和 ${e} 改了同一处:保留你的。`,unreadable:e=>`无法读取 ${e},修好之前不能编辑。`},"zh-tw":{loading:`正在載入簡報`,noDeck:`這不是簡報`,version:`語言`,slides:`投影片`,skipped:`已略過`,slideCount:e=>`${String(e)} 張投影片`,slideOf:(e,t)=>`第 ${String(e)} 張,共 ${String(t)} 張`,present:`放映`,exportTitle:`匯出`,notes:`演講者備忘稿`,slide:`投影片`,presenting:`正在放映`,presentHelp:`← → 步驟 · N 備忘稿 · Esc 結束`,noNotes:`此投影片沒有備忘稿`,next:`下一頁`,addTitle:`按一下以新增標題`,addSubtitle:`按一下以新增副標題`,addText:`按一下以新增文字`,addNotes:`按一下以新增備忘稿`,newSlide:`新增投影片`,layout:`版面配置`,insert:`插入`,textBox:`文字方塊`,picture:`圖片`,video:`視訊`,shape:`圖案`,shapes:{rect:`矩形`,roundRect:`圓角矩形`,ellipse:`橢圓形`,triangle:`三角形`,rightArrow:`箭號`,line:`直線`},slideMenu:e=>`第 ${String(e)} 張投影片的動作`,duplicate:`複製`,remove:`刪除`,hide:`隱藏投影片`,show:`取消隱藏投影片`,fill:`填滿`,textColor:`文字色彩`,size:`大小`,bold:`粗體`,cut:`剪下`,copy:`複製`,paste:`貼上`,italic:`斜體`,growFont:`放大字型`,shrinkFont:`縮小字型`,arrange:`排列`,arrangeTo:{front:`移到最上層`,forward:`上移一層`,backward:`下移一層`,back:`移到最下層`},preview:`預覽`,duration:`期間`,noAnimation:`無`,alignment:`對齊`,align:{l:`靠左對齊`,ctr:`置中`,r:`靠右對齊`,just:`左右對齊`},resetLayout:`重設為版面配置`,animations:`動畫`,animationEffects:`效果`,animationStarts:`開始`,fromLayout:`屬於版面配置`,animationHint:`選取圖形即可為它加上動畫`,animationEarlier:`提前`,animationLater:`延後`,animationRemove:`移除動畫`,animationStart:{"on-click":`按一下時`,"with-previous":`與前動畫同時`,"after-previous":`前動畫之後`},animationEffect:{appear:`出現`,fade:`淡化`,wipe:`擦去`,"fly-in":`飛入`,zoom:`縮放`,disappear:`消失`,"fade-out":`淡出`,"wipe-out":`擦去退出`,"fly-out":`飛出`,"zoom-out":`縮放退出`,pulse:`脈衝`,path:`移動路徑`},codeWords:`文字來自簡報的程式碼`,changed:(e,t)=>`${e} 改了 ${String(t)} 處`,changedElsewhere:e=>`外部改了 ${String(e)} 處`,keep:`保留`,undo:`復原`,redo:`重做`,keepAll:`全部保留`,undoAll:`全部復原`,previous:`上一個`,bothChanged:e=>`你和 ${e} 改了同一處:保留你的。`,unreadable:e=>`無法讀取 ${e},修好之前無法編輯。`},ja:{loading:`スライドを読み込み中`,noDeck:`これはスライドではありません`,version:`言語`,slides:`スライド`,skipped:`スキップ`,slideCount:e=>`${String(e)} 枚のスライド`,slideOf:(e,t)=>`スライド ${String(e)} / ${String(t)}`,present:`発表`,exportTitle:`書き出し`,notes:`発表者ノート`,slide:`スライド`,presenting:`発表中`,presentHelp:`← → ステップ · N ノート · Esc 終了`,noNotes:`このスライドにノートはありません`,next:`次へ`,addTitle:`クリックしてタイトルを入力`,addSubtitle:`クリックしてサブタイトルを入力`,addText:`クリックしてテキストを入力`,addNotes:`クリックしてノートを入力`,newSlide:`新しいスライド`,layout:`レイアウト`,insert:`挿入`,textBox:`テキスト ボックス`,picture:`画像`,video:`ビデオ`,shape:`図形`,shapes:{rect:`長方形`,roundRect:`角丸四角形`,ellipse:`楕円`,triangle:`三角形`,rightArrow:`矢印`,line:`直線`},slideMenu:e=>`スライド ${String(e)} の操作`,duplicate:`複製`,remove:`削除`,hide:`スライドを非表示`,show:`スライドを表示`,fill:`塗りつぶし`,textColor:`文字の色`,size:`サイズ`,bold:`太字`,cut:`切り取り`,copy:`コピー`,paste:`貼り付け`,italic:`斜体`,growFont:`フォント サイズの拡大`,shrinkFont:`フォント サイズの縮小`,arrange:`配置`,arrangeTo:{front:`最前面へ移動`,forward:`前面へ移動`,backward:`背面へ移動`,back:`最背面へ移動`},preview:`プレビュー`,duration:`継続時間`,noAnimation:`なし`,alignment:`配置`,align:{l:`左揃え`,ctr:`中央揃え`,r:`右揃え`,just:`両端揃え`},resetLayout:`レイアウトにリセット`,animations:`アニメーション`,animationEffects:`効果`,animationStarts:`開始`,fromLayout:`レイアウトの一部`,animationHint:`図形を選択するとアニメーションを追加できます`,animationEarlier:`前へ`,animationLater:`後へ`,animationRemove:`アニメーションを削除`,animationStart:{"on-click":`クリック時`,"with-previous":`直前の動作と同時`,"after-previous":`直前の動作の後`},animationEffect:{appear:`表示`,fade:`フェード`,wipe:`ワイプ`,"fly-in":`スライドイン`,zoom:`ズーム`,disappear:`非表示`,"fade-out":`フェードアウト`,"wipe-out":`ワイプアウト`,"fly-out":`スライドアウト`,"zoom-out":`ズームアウト`,pulse:`パルス`,path:`軌跡`},codeWords:`文字はスライドのコードから来ています`,changed:(e,t)=>`${e} が ${String(t)} か所を変更しました`,changedElsewhere:e=>`外部で ${String(e)} か所が変更されました`,keep:`保持`,undo:`元に戻す`,redo:`やり直し`,keepAll:`すべて保持`,undoAll:`すべて元に戻す`,previous:`前へ`,bothChanged:e=>`${e} と同じ箇所を変更しました。あなたの変更が残ります。`,unreadable:e=>`${e} を読み込めません。修正されるまで編集できません。`},ko:{loading:`슬라이드를 불러오는 중`,noDeck:`슬라이드가 아닙니다`,version:`언어`,slides:`슬라이드`,skipped:`건너뜀`,slideCount:e=>`슬라이드 ${String(e)}개`,slideOf:(e,t)=>`${String(t)}개 중 ${String(e)}번째 슬라이드`,present:`발표`,exportTitle:`내보내기`,notes:`발표자 노트`,slide:`슬라이드`,presenting:`발표 중`,presentHelp:`← → 단계 · N 노트 · Esc 종료`,noNotes:`이 슬라이드에는 노트가 없습니다`,next:`다음`,addTitle:`클릭하여 제목 추가`,addSubtitle:`클릭하여 부제목 추가`,addText:`클릭하여 텍스트 추가`,addNotes:`클릭하여 노트 추가`,newSlide:`새 슬라이드`,layout:`레이아웃`,insert:`삽입`,textBox:`텍스트 상자`,picture:`그림`,video:`비디오`,shape:`도형`,shapes:{rect:`직사각형`,roundRect:`모서리가 둥근 직사각형`,ellipse:`타원`,triangle:`삼각형`,rightArrow:`화살표`,line:`선`},slideMenu:e=>`슬라이드 ${String(e)} 작업`,duplicate:`복제`,remove:`삭제`,hide:`슬라이드 숨기기`,show:`슬라이드 표시`,fill:`채우기`,textColor:`글자 색`,size:`크기`,bold:`굵게`,cut:`잘라내기`,copy:`복사`,paste:`붙여넣기`,italic:`기울임꼴`,growFont:`글꼴 크기 크게`,shrinkFont:`글꼴 크기 작게`,arrange:`정렬`,arrangeTo:{front:`맨 앞으로 가져오기`,forward:`앞으로 가져오기`,backward:`뒤로 보내기`,back:`맨 뒤로 보내기`},preview:`미리 보기`,duration:`재생 시간`,noAnimation:`없음`,alignment:`맞춤`,align:{l:`왼쪽 맞춤`,ctr:`가운데`,r:`오른쪽 맞춤`,just:`양쪽 맞춤`},resetLayout:`레이아웃으로 다시 설정`,animations:`애니메이션`,animationEffects:`효과`,animationStarts:`시작`,fromLayout:`레이아웃의 일부`,animationHint:`도형을 선택하면 애니메이션을 추가할 수 있습니다`,animationEarlier:`앞으로`,animationLater:`뒤로`,animationRemove:`애니메이션 제거`,animationStart:{"on-click":`클릭할 때`,"with-previous":`이전 효과와 함께`,"after-previous":`이전 효과 다음에`},animationEffect:{appear:`나타내기`,fade:`페이드`,wipe:`닦아내기`,"fly-in":`날아오기`,zoom:`확대/축소`,disappear:`사라지기`,"fade-out":`페이드 아웃`,"wipe-out":`닦아내며 사라지기`,"fly-out":`날아가기`,"zoom-out":`축소하며 사라지기`,pulse:`펄스`,path:`이동 경로`},codeWords:`텍스트는 슬라이드 코드에서 옵니다`,changed:(e,t)=>`${e}이(가) ${String(t)}곳을 변경함`,changedElsewhere:e=>`외부에서 ${String(e)}곳 변경됨`,keep:`유지`,undo:`실행 취소`,redo:`다시 실행`,keepAll:`모두 유지`,undoAll:`모두 실행 취소`,previous:`이전`,bothChanged:e=>`${e}와(과) 같은 곳을 변경했습니다. 내 변경이 유지됩니다.`,unreadable:e=>`${e}을(를) 읽을 수 없습니다. 고쳐질 때까지 편집할 수 없습니다.`},es:{loading:`Cargando la presentación`,noDeck:`Esto no es una presentación`,version:`Idioma`,slides:`Diapositivas`,skipped:`Omitida`,slideCount:e=>`${String(e)} diapositivas`,slideOf:(e,t)=>`Diapositiva ${String(e)} de ${String(t)}`,present:`Presentar`,exportTitle:`Exportar`,notes:`Notas del orador`,slide:`Diapositiva`,presenting:`Presentando`,presentHelp:`← → pasos · N notas · Esc salir`,noNotes:`Esta diapositiva no tiene notas`,next:`Siguiente`,addTitle:`Haga clic para agregar título`,addSubtitle:`Haga clic para agregar subtítulo`,addText:`Haga clic para agregar texto`,addNotes:`Haga clic para agregar notas`,newSlide:`Nueva diapositiva`,layout:`Diseño`,insert:`Insertar`,textBox:`Cuadro de texto`,picture:`Imagen`,video:`Vídeo`,shape:`Forma`,shapes:{rect:`Rectángulo`,roundRect:`Rectángulo redondeado`,ellipse:`Óvalo`,triangle:`Triángulo`,rightArrow:`Flecha`,line:`Línea`},slideMenu:e=>`Acciones de la diapositiva ${String(e)}`,duplicate:`Duplicar`,remove:`Eliminar`,hide:`Ocultar diapositiva`,show:`Mostrar diapositiva`,fill:`Relleno`,textColor:`Color de texto`,size:`Tamaño`,bold:`Negrita`,cut:`Cortar`,copy:`Copiar`,paste:`Pegar`,italic:`Cursiva`,growFont:`Aumentar tamaño de fuente`,shrinkFont:`Disminuir tamaño de fuente`,arrange:`Organizar`,arrangeTo:{front:`Traer al frente`,forward:`Traer adelante`,backward:`Enviar atrás`,back:`Enviar al fondo`},preview:`Vista previa`,duration:`Duración`,noAnimation:`Ninguna`,alignment:`Alineación`,align:{l:`Alinear a la izquierda`,ctr:`Centrar`,r:`Alinear a la derecha`,just:`Justificar`},resetLayout:`Restablecer diseño`,animations:`Animaciones`,animationEffects:`Efecto`,animationStarts:`Inicio`,fromLayout:`Parte del diseño`,animationHint:`Selecciona una forma para animarla`,animationEarlier:`Antes`,animationLater:`Después`,animationRemove:`Quitar animación`,animationStart:{"on-click":`Al hacer clic`,"with-previous":`Con la anterior`,"after-previous":`Después de la anterior`},animationEffect:{appear:`Aparecer`,fade:`Desvanecer`,wipe:`Barrido`,"fly-in":`Entrar volando`,zoom:`Zoom`,disappear:`Desaparecer`,"fade-out":`Desvanecer al salir`,"wipe-out":`Barrido de salida`,"fly-out":`Salir volando`,"zoom-out":`Zoom de salida`,pulse:`Pulso`,path:`Trayectoria`},codeWords:`Su texto lo da el código de la presentación`,changed:(e,t)=>t===1?`${e} cambió 1 cosa`:`${e} cambió ${String(t)} cosas`,changedElsewhere:e=>e===1?`1 cambio hecho fuera`:`${String(e)} cambios hechos fuera`,keep:`Conservar`,undo:`Deshacer`,redo:`Rehacer`,keepAll:`Conservar todo`,undoAll:`Deshacer todo`,previous:`Anterior`,bothChanged:e=>`Tú y ${e} cambiaron lo mismo: queda lo tuyo.`,unreadable:e=>`No se puede leer ${e}. No se edita hasta que se repare.`},fr:{loading:`Chargement de la présentation`,noDeck:`Ce n'est pas une présentation`,version:`Langue`,slides:`Diapositives`,skipped:`Ignorée`,slideCount:e=>`${String(e)} diapositives`,slideOf:(e,t)=>`Diapositive ${String(e)} sur ${String(t)}`,present:`Présenter`,exportTitle:`Exporter`,notes:`Notes de l'orateur`,slide:`Diapositive`,presenting:`Présentation en cours`,presentHelp:`← → étapes · N notes · Échap arrêter`,noNotes:`Pas de notes pour cette diapositive`,next:`Suivante`,addTitle:`Cliquez pour ajouter un titre`,addSubtitle:`Cliquez pour ajouter un sous-titre`,addText:`Cliquez pour ajouter du texte`,addNotes:`Cliquez pour ajouter des notes`,newSlide:`Nouvelle diapositive`,layout:`Disposition`,insert:`Insérer`,textBox:`Zone de texte`,picture:`Image`,video:`Vidéo`,shape:`Forme`,shapes:{rect:`Rectangle`,roundRect:`Rectangle à coins arrondis`,ellipse:`Ellipse`,triangle:`Triangle`,rightArrow:`Flèche`,line:`Ligne`},slideMenu:e=>`Actions de la diapositive ${String(e)}`,duplicate:`Dupliquer`,remove:`Supprimer`,hide:`Masquer la diapositive`,show:`Afficher la diapositive`,fill:`Remplissage`,textColor:`Couleur du texte`,size:`Taille`,bold:`Gras`,cut:`Couper`,copy:`Copier`,paste:`Coller`,italic:`Italique`,growFont:`Augmenter la taille de police`,shrinkFont:`Réduire la taille de police`,arrange:`Organiser`,arrangeTo:{front:`Mettre au premier plan`,forward:`Avancer`,backward:`Reculer`,back:`Mettre à l'arrière-plan`},preview:`Aperçu`,duration:`Durée`,noAnimation:`Aucune`,alignment:`Alignement`,align:{l:`Aligner à gauche`,ctr:`Centrer`,r:`Aligner à droite`,just:`Justifier`},resetLayout:`Rétablir la disposition`,animations:`Animations`,animationEffects:`Effet`,animationStarts:`Début`,fromLayout:`Fait partie de la mise en page`,animationHint:`Sélectionnez une forme pour l’animer`,animationEarlier:`Plus tôt`,animationLater:`Plus tard`,animationRemove:`Supprimer l’animation`,animationStart:{"on-click":`Au clic`,"with-previous":`Avec la précédente`,"after-previous":`Après la précédente`},animationEffect:{appear:`Apparition`,fade:`Fondu`,wipe:`Balayage`,"fly-in":`Entrée en vol`,zoom:`Zoom`,disappear:`Disparition`,"fade-out":`Fondu de sortie`,"wipe-out":`Balayage de sortie`,"fly-out":`Sortie en vol`,"zoom-out":`Zoom de sortie`,pulse:`Impulsion`,path:`Trajectoire`},codeWords:`Son texte vient du code de la présentation`,changed:(e,t)=>t===1?`${e} a changé 1 élément`:`${e} a changé ${String(t)} éléments`,changedElsewhere:e=>e===1?`1 modification faite ailleurs`:`${String(e)} modifications faites ailleurs`,keep:`Garder`,undo:`Annuler`,redo:`Rétablir`,keepAll:`Tout garder`,undoAll:`Tout annuler`,previous:`Précédent`,bothChanged:e=>`Vous et ${e} avez changé la même chose : la vôtre est gardée.`,unreadable:e=>`Impossible de lire ${e}. Il n’est pas modifié tant qu’il n’est pas réparé.`},de:{loading:`Präsentation wird geladen`,noDeck:`Das ist keine Präsentation`,version:`Sprache`,slides:`Folien`,skipped:`Übersprungen`,slideCount:e=>`${String(e)} Folien`,slideOf:(e,t)=>`Folie ${String(e)} von ${String(t)}`,present:`Präsentieren`,exportTitle:`Exportieren`,notes:`Sprechernotizen`,slide:`Folie`,presenting:`Präsentation läuft`,presentHelp:`← → Schritte · N Notizen · Esc beenden`,noNotes:`Keine Notizen zu dieser Folie`,next:`Weiter`,addTitle:`Titel durch Klicken hinzufügen`,addSubtitle:`Untertitel durch Klicken hinzufügen`,addText:`Text durch Klicken hinzufügen`,addNotes:`Notizen durch Klicken hinzufügen`,newSlide:`Neue Folie`,layout:`Layout`,insert:`Einfügen`,textBox:`Textfeld`,picture:`Bild`,video:`Video`,shape:`Form`,shapes:{rect:`Rechteck`,roundRect:`Abgerundetes Rechteck`,ellipse:`Ellipse`,triangle:`Dreieck`,rightArrow:`Pfeil`,line:`Linie`},slideMenu:e=>`Aktionen für Folie ${String(e)}`,duplicate:`Duplizieren`,remove:`Löschen`,hide:`Folie ausblenden`,show:`Folie einblenden`,fill:`Füllung`,textColor:`Textfarbe`,size:`Größe`,bold:`Fett`,cut:`Ausschneiden`,copy:`Kopieren`,paste:`Einfügen`,italic:`Kursiv`,growFont:`Schriftgrad vergrößern`,shrinkFont:`Schriftgrad verkleinern`,arrange:`Anordnen`,arrangeTo:{front:`In den Vordergrund`,forward:`Eine Ebene nach vorne`,backward:`Eine Ebene nach hinten`,back:`In den Hintergrund`},preview:`Vorschau`,duration:`Dauer`,noAnimation:`Keine`,alignment:`Ausrichtung`,align:{l:`Linksbündig`,ctr:`Zentriert`,r:`Rechtsbündig`,just:`Blocksatz`},resetLayout:`Auf Layout zurücksetzen`,animations:`Animationen`,animationEffects:`Effekt`,animationStarts:`Start`,fromLayout:`Teil des Layouts`,animationHint:`Form auswählen, um sie zu animieren`,animationEarlier:`Früher`,animationLater:`Später`,animationRemove:`Animation entfernen`,animationStart:{"on-click":`Beim Klicken`,"with-previous":`Mit Vorherigen`,"after-previous":`Nach Vorherigen`},animationEffect:{appear:`Erscheinen`,fade:`Verblassen`,wipe:`Wischen`,"fly-in":`Hineinfliegen`,zoom:`Zoomen`,disappear:`Verschwinden`,"fade-out":`Ausblenden`,"wipe-out":`Herauswischen`,"fly-out":`Hinausfliegen`,"zoom-out":`Herauszoomen`,pulse:`Impuls`,path:`Animationspfad`},codeWords:`Der Text kommt aus dem Code der Präsentation`,changed:(e,t)=>t===1?`${e} hat 1 Sache geändert`:`${e} hat ${String(t)} Dinge geändert`,changedElsewhere:e=>e===1?`1 Änderung von außerhalb`:`${String(e)} Änderungen von außerhalb`,keep:`Behalten`,undo:`Rückgängig`,redo:`Wiederholen`,keepAll:`Alle behalten`,undoAll:`Alle rückgängig`,previous:`Zurück`,bothChanged:e=>`Du und ${e} habt dasselbe geändert: deine Änderung bleibt.`,unreadable:e=>`${e} kann nicht gelesen werden. Bis es repariert ist, wird es nicht bearbeitet.`},it:{loading:`Caricamento della presentazione`,noDeck:`Questa non è una presentazione`,version:`Lingua`,slides:`Diapositive`,skipped:`Saltata`,slideCount:e=>`${String(e)} diapositive`,slideOf:(e,t)=>`Diapositiva ${String(e)} di ${String(t)}`,present:`Presenta`,exportTitle:`Esporta`,notes:`Note del relatore`,slide:`Diapositiva`,presenting:`Presentazione in corso`,presentHelp:`← → passaggi · N note · Esc esci`,noNotes:`Nessuna nota per questa diapositiva`,next:`Successiva`,addTitle:`Fai clic per aggiungere un titolo`,addSubtitle:`Fai clic per aggiungere un sottotitolo`,addText:`Fai clic per aggiungere del testo`,addNotes:`Fai clic per aggiungere delle note`,newSlide:`Nuova diapositiva`,layout:`Layout`,insert:`Inserisci`,textBox:`Casella di testo`,picture:`Immagine`,video:`Video`,shape:`Forma`,shapes:{rect:`Rettangolo`,roundRect:`Rettangolo arrotondato`,ellipse:`Ovale`,triangle:`Triangolo`,rightArrow:`Freccia`,line:`Linea`},slideMenu:e=>`Azioni della diapositiva ${String(e)}`,duplicate:`Duplica`,remove:`Elimina`,hide:`Nascondi diapositiva`,show:`Mostra diapositiva`,fill:`Riempimento`,textColor:`Colore testo`,size:`Dimensione`,bold:`Grassetto`,cut:`Taglia`,copy:`Copia`,paste:`Incolla`,italic:`Corsivo`,growFont:`Aumenta dimensione carattere`,shrinkFont:`Riduci dimensione carattere`,arrange:`Disponi`,arrangeTo:{front:`Porta in primo piano`,forward:`Porta avanti`,backward:`Porta indietro`,back:`Porta in secondo piano`},preview:`Anteprima`,duration:`Durata`,noAnimation:`Nessuna`,alignment:`Allineamento`,align:{l:`Allinea a sinistra`,ctr:`Centra`,r:`Allinea a destra`,just:`Giustifica`},resetLayout:`Reimposta layout`,animations:`Animazioni`,animationEffects:`Effetto`,animationStarts:`Avvio`,fromLayout:`Parte del layout`,animationHint:`Seleziona una forma per animarla`,animationEarlier:`Prima`,animationLater:`Dopo`,animationRemove:`Rimuovi animazione`,animationStart:{"on-click":`Al clic`,"with-previous":`Con la precedente`,"after-previous":`Dopo la precedente`},animationEffect:{appear:`Comparsa`,fade:`Dissolvenza`,wipe:`Apertura`,"fly-in":`Entrata in volo`,zoom:`Zoom`,disappear:`Scomparsa`,"fade-out":`Dissolvenza in uscita`,"wipe-out":`Chiusura`,"fly-out":`Uscita in volo`,"zoom-out":`Zoom in uscita`,pulse:`Impulso`,path:`Percorso`},codeWords:`Il testo viene dal codice della presentazione`,changed:(e,t)=>t===1?`${e} ha cambiato 1 cosa`:`${e} ha cambiato ${String(t)} cose`,changedElsewhere:e=>e===1?`1 modifica fatta fuori`:`${String(e)} modifiche fatte fuori`,keep:`Mantieni`,undo:`Annulla`,redo:`Ripeti`,keepAll:`Mantieni tutto`,undoAll:`Annulla tutto`,previous:`Precedente`,bothChanged:e=>`Tu e ${e} avete cambiato la stessa cosa: resta la tua.`,unreadable:e=>`Impossibile leggere ${e}. Non viene modificato finché non è sistemato.`},pt:{loading:`A carregar a apresentação`,noDeck:`Isto não é uma apresentação`,version:`Idioma`,slides:`Diapositivos`,skipped:`Ignorada`,slideCount:e=>`${String(e)} slides`,slideOf:(e,t)=>`Diapositivo ${String(e)} de ${String(t)}`,present:`Apresentar`,exportTitle:`Exportar`,notes:`Notas do orador`,slide:`Diapositivo`,presenting:`A apresentar`,presentHelp:`← → passos · N notas · Esc sair`,noNotes:`Este diapositivo não tem notas`,next:`Seguinte`,addTitle:`Clique para adicionar um título`,addSubtitle:`Clique para adicionar um subtítulo`,addText:`Clique para adicionar texto`,addNotes:`Clique para adicionar notas`,newSlide:`Novo slide`,layout:`Layout`,insert:`Inserir`,textBox:`Caixa de texto`,picture:`Imagem`,video:`Vídeo`,shape:`Forma`,shapes:{rect:`Retângulo`,roundRect:`Retângulo arredondado`,ellipse:`Elipse`,triangle:`Triângulo`,rightArrow:`Seta`,line:`Linha`},slideMenu:e=>`Ações do slide ${String(e)}`,duplicate:`Duplicar`,remove:`Excluir`,hide:`Ocultar slide`,show:`Mostrar slide`,fill:`Preenchimento`,textColor:`Cor do texto`,size:`Tamanho`,bold:`Negrito`,cut:`Cortar`,copy:`Copiar`,paste:`Colar`,italic:`Itálico`,growFont:`Aumentar tamanho da fonte`,shrinkFont:`Diminuir tamanho da fonte`,arrange:`Organizar`,arrangeTo:{front:`Trazer para a frente`,forward:`Trazer para frente`,backward:`Enviar para trás`,back:`Enviar para trás`},preview:`Visualizar`,duration:`Duração`,noAnimation:`Nenhuma`,alignment:`Alinhamento`,align:{l:`Alinhar à esquerda`,ctr:`Centralizar`,r:`Alinhar à direita`,just:`Justificar`},resetLayout:`Redefinir layout`,animations:`Animações`,animationEffects:`Efeito`,animationStarts:`Início`,fromLayout:`Parte do layout`,animationHint:`Selecione uma forma para animá-la`,animationEarlier:`Antes`,animationLater:`Depois`,animationRemove:`Remover animação`,animationStart:{"on-click":`Ao clicar`,"with-previous":`Com a anterior`,"after-previous":`Após a anterior`},animationEffect:{appear:`Aparecer`,fade:`Esmaecer`,wipe:`Revelar`,"fly-in":`Entrar voando`,zoom:`Zoom`,disappear:`Desaparecer`,"fade-out":`Esmaecer ao sair`,"wipe-out":`Revelar ao sair`,"fly-out":`Sair voando`,"zoom-out":`Zoom de saída`,pulse:`Pulso`,path:`Trajetória`},codeWords:`O texto vem do código da apresentação`,changed:(e,t)=>t===1?`${e} mudou 1 coisa`:`${e} mudou ${String(t)} coisas`,changedElsewhere:e=>e===1?`1 mudança feita fora`:`${String(e)} mudanças feitas fora`,keep:`Manter`,undo:`Desfazer`,redo:`Refazer`,keepAll:`Manter tudo`,undoAll:`Desfazer tudo`,previous:`Anterior`,bothChanged:e=>`Você e ${e} mudaram a mesma coisa: a sua fica.`,unreadable:e=>`Não é possível ler ${e}. Ele não é editado até ser corrigido.`},ru:{loading:`Загрузка презентации`,noDeck:`Это не презентация`,version:`Язык`,slides:`Слайды`,skipped:`Пропущен`,slideCount:e=>`Слайдов: ${String(e)}`,slideOf:(e,t)=>`Слайд ${String(e)} из ${String(t)}`,present:`Показ`,exportTitle:`Экспорт`,notes:`Заметки докладчика`,slide:`Слайд`,presenting:`Идёт показ`,presentHelp:`← → шаги · N заметки · Esc выход`,noNotes:`У этого слайда нет заметок`,next:`Далее`,addTitle:`Щелкните, чтобы добавить заголовок`,addSubtitle:`Щелкните, чтобы добавить подзаголовок`,addText:`Щелкните, чтобы добавить текст`,addNotes:`Щелкните, чтобы добавить заметки`,newSlide:`Создать слайд`,layout:`Макет`,insert:`Вставить`,textBox:`Надпись`,picture:`Рисунок`,video:`Видео`,shape:`Фигура`,shapes:{rect:`Прямоугольник`,roundRect:`Скругленный прямоугольник`,ellipse:`Овал`,triangle:`Треугольник`,rightArrow:`Стрелка`,line:`Линия`},slideMenu:e=>`Действия со слайдом ${String(e)}`,duplicate:`Дублировать`,remove:`Удалить`,hide:`Скрыть слайд`,show:`Показать слайд`,fill:`Заливка`,textColor:`Цвет текста`,size:`Размер`,bold:`Полужирный`,cut:`Вырезать`,copy:`Копировать`,paste:`Вставить`,italic:`Курсив`,growFont:`Увеличить размер шрифта`,shrinkFont:`Уменьшить размер шрифта`,arrange:`Упорядочить`,arrangeTo:{front:`На передний план`,forward:`Переместить вперед`,backward:`Переместить назад`,back:`На задний план`},preview:`Просмотр`,duration:`Длительность`,noAnimation:`Нет`,alignment:`Выравнивание`,align:{l:`По левому краю`,ctr:`По центру`,r:`По правому краю`,just:`По ширине`},resetLayout:`Сбросить макет`,animations:`Анимация`,animationEffects:`Эффект`,animationStarts:`Начало`,fromLayout:`Часть макета`,animationHint:`Выберите фигуру, чтобы анимировать её`,animationEarlier:`Раньше`,animationLater:`Позже`,animationRemove:`Удалить анимацию`,animationStart:{"on-click":`По щелчку`,"with-previous":`С предыдущим`,"after-previous":`После предыдущего`},animationEffect:{appear:`Появление`,fade:`Выцветание`,wipe:`Стирание`,"fly-in":`Вылет`,zoom:`Масштабирование`,disappear:`Исчезновение`,"fade-out":`Угасание`,"wipe-out":`Стирание при выходе`,"fly-out":`Улет`,"zoom-out":`Масштабирование при выходе`,pulse:`Пульсация`,path:`Траектория`},codeWords:`Текст задан кодом презентации`,changed:(e,t)=>`${e}: изменений — ${String(t)}`,changedElsewhere:e=>`Изменений извне: ${String(e)}`,keep:`Оставить`,undo:`Отменить`,redo:`Повторить`,keepAll:`Оставить все`,undoAll:`Отменить все`,previous:`Назад`,bothChanged:e=>`Вы и ${e} изменили одно и то же: остается ваше.`,unreadable:e=>`Не удается прочитать ${e}. Он не редактируется, пока его не исправят.`},tr:{loading:`Sunu yükleniyor`,noDeck:`Bu bir sunu değil`,version:`Dil`,slides:`Slaytlar`,skipped:`Atlanıyor`,slideCount:e=>`${String(e)} slayt`,slideOf:(e,t)=>`Slayt ${String(e)} / ${String(t)}`,present:`Sun`,exportTitle:`Dışa aktar`,notes:`Konuşmacı notları`,slide:`Slayt`,presenting:`Sunuluyor`,presentHelp:`← → adımlar · N notlar · Esc bitir`,noNotes:`Bu slaytın notu yok`,next:`Sonraki`,addTitle:`Başlık eklemek için tıklayın`,addSubtitle:`Alt başlık eklemek için tıklayın`,addText:`Metin eklemek için tıklayın`,addNotes:`Not eklemek için tıklayın`,newSlide:`Yeni slayt`,layout:`Düzen`,insert:`Ekle`,textBox:`Metin kutusu`,picture:`Resim`,video:`Video`,shape:`Şekil`,shapes:{rect:`Dikdörtgen`,roundRect:`Yuvarlatılmış dikdörtgen`,ellipse:`Oval`,triangle:`Üçgen`,rightArrow:`Ok`,line:`Çizgi`},slideMenu:e=>`Slayt ${String(e)} eylemleri`,duplicate:`Çoğalt`,remove:`Sil`,hide:`Slaydı gizle`,show:`Slaydı göster`,fill:`Dolgu`,textColor:`Metin rengi`,size:`Boyut`,bold:`Kalın`,cut:`Kes`,copy:`Kopyala`,paste:`Yapıştır`,italic:`İtalik`,growFont:`Yazı Tipi Boyutunu Büyüt`,shrinkFont:`Yazı Tipi Boyutunu Küçült`,arrange:`Yerleştir`,arrangeTo:{front:`Öne Getir`,forward:`Öne getir`,backward:`Arkaya gönder`,back:`Arkaya Gönder`},preview:`Önizleme`,duration:`Süre`,noAnimation:`Yok`,alignment:`Hizalama`,align:{l:`Sola hizala`,ctr:`Ortala`,r:`Sağa hizala`,just:`İki yana yasla`},resetLayout:`Düzene sıfırla`,animations:`Animasyonlar`,animationEffects:`Efekt`,animationStarts:`Başlangıç`,fromLayout:`Düzenin parçası`,animationHint:`Animasyon eklemek için bir şekil seçin`,animationEarlier:`Daha önce`,animationLater:`Daha sonra`,animationRemove:`Animasyonu kaldır`,animationStart:{"on-click":`Tıklatınca`,"with-previous":`Öncekiyle birlikte`,"after-previous":`Öncekinden sonra`},animationEffect:{appear:`Belirme`,fade:`Soldurma`,wipe:`Silme`,"fly-in":`Uçarak gelme`,zoom:`Yakınlaştırma`,disappear:`Kaybolma`,"fade-out":`Solarak çıkma`,"wipe-out":`Silerek çıkma`,"fly-out":`Uçarak çıkma`,"zoom-out":`Uzaklaşarak çıkma`,pulse:`Darbe`,path:`Hareket yolu`},codeWords:`Metni sunumun kodundan gelir`,changed:(e,t)=>`${e} ${String(t)} şeyi değiştirdi`,changedElsewhere:e=>`Dışarıda ${String(e)} değişiklik yapıldı`,keep:`Tut`,undo:`Geri al`,redo:`Yinele`,keepAll:`Tümünü tut`,undoAll:`Tümünü geri al`,previous:`Önceki`,bothChanged:e=>`Sen ve ${e} aynı şeyi değiştirdiniz: seninki kalır.`,unreadable:e=>`${e} okunamıyor. Düzeltilene kadar düzenlenmez.`},vi:{loading:`Đang tải bản trình bày`,noDeck:`Đây không phải là bản trình bày`,version:`Ngôn ngữ`,slides:`Trang chiếu`,skipped:`Bỏ qua`,slideCount:e=>`${String(e)} trang chiếu`,slideOf:(e,t)=>`Trang chiếu ${String(e)}/${String(t)}`,present:`Trình chiếu`,exportTitle:`Xuất`,notes:`Ghi chú của người thuyết trình`,slide:`Trang chiếu`,presenting:`Đang trình chiếu`,presentHelp:`← → các bước · N ghi chú · Esc dừng`,noNotes:`Trang chiếu này không có ghi chú`,next:`Tiếp`,addTitle:`Bấm để thêm tiêu đề`,addSubtitle:`Bấm để thêm phụ đề`,addText:`Bấm để thêm văn bản`,addNotes:`Bấm để thêm ghi chú`,newSlide:`Trang chiếu mới`,layout:`Bố trí`,insert:`Chèn`,textBox:`Hộp văn bản`,picture:`Ảnh`,video:`Video`,shape:`Hình`,shapes:{rect:`Hình chữ nhật`,roundRect:`Hình chữ nhật bo góc`,ellipse:`Hình bầu dục`,triangle:`Tam giác`,rightArrow:`Mũi tên`,line:`Đường thẳng`},slideMenu:e=>`Thao tác với trang chiếu ${String(e)}`,duplicate:`Nhân bản`,remove:`Xóa`,hide:`Ẩn trang chiếu`,show:`Hiện trang chiếu`,fill:`Tô màu`,textColor:`Màu văn bản`,size:`Cỡ`,bold:`Đậm`,cut:`Cắt`,copy:`Sao chép`,paste:`Dán`,italic:`Nghiêng`,growFont:`Tăng cỡ phông`,shrinkFont:`Giảm cỡ phông`,arrange:`Sắp xếp`,arrangeTo:{front:`Đưa lên trước cùng`,forward:`Đưa lên trước`,backward:`Đưa ra sau`,back:`Đưa xuống sau cùng`},preview:`Xem trước`,duration:`Thời lượng`,noAnimation:`Không có`,alignment:`Căn chỉnh`,align:{l:`Căn trái`,ctr:`Căn giữa`,r:`Căn phải`,just:`Căn đều`},resetLayout:`Đặt lại theo bố trí`,animations:`Hoạt hình`,animationEffects:`Hiệu ứng`,animationStarts:`Bắt đầu`,fromLayout:`Thuộc bố cục`,animationHint:`Chọn một hình để tạo hoạt hình`,animationEarlier:`Sớm hơn`,animationLater:`Muộn hơn`,animationRemove:`Xóa hoạt hình`,animationStart:{"on-click":`Khi bấm`,"with-previous":`Cùng với trước đó`,"after-previous":`Sau trước đó`},animationEffect:{appear:`Xuất hiện`,fade:`Mờ dần`,wipe:`Xóa`,"fly-in":`Bay vào`,zoom:`Thu phóng`,disappear:`Biến mất`,"fade-out":`Mờ dần khi thoát`,"wipe-out":`Xóa khi thoát`,"fly-out":`Bay ra`,"zoom-out":`Thu nhỏ khi thoát`,pulse:`Nhịp đập`,path:`Đường chuyển động`},codeWords:`Văn bản do mã của bản trình bày tạo`,changed:(e,t)=>`${e} đã thay đổi ${String(t)} chỗ`,changedElsewhere:e=>`${String(e)} thay đổi từ bên ngoài`,keep:`Giữ`,undo:`Hoàn tác`,redo:`Làm lại`,keepAll:`Giữ tất cả`,undoAll:`Hoàn tác tất cả`,previous:`Trước`,bothChanged:e=>`Bạn và ${e} cùng thay đổi một chỗ: thay đổi của bạn được giữ.`,unreadable:e=>`Không đọc được ${e}. Tệp sẽ không được chỉnh sửa cho đến khi được sửa.`},th:{loading:`กำลังโหลดงานนำเสนอ`,noDeck:`นี่ไม่ใช่งานนำเสนอ`,version:`ภาษา`,slides:`สไลด์`,skipped:`ข้าม`,slideCount:e=>`${String(e)} สไลด์`,slideOf:(e,t)=>`สไลด์ ${String(e)} จาก ${String(t)}`,present:`นำเสนอ`,exportTitle:`ส่งออก`,notes:`บันทึกของผู้บรรยาย`,slide:`สไลด์`,presenting:`กำลังนำเสนอ`,presentHelp:`← → ขั้น · N บันทึก · Esc หยุด`,noNotes:`สไลด์นี้ไม่มีบันทึก`,next:`ถัดไป`,addTitle:`คลิกเพื่อเพิ่มชื่อเรื่อง`,addSubtitle:`คลิกเพื่อเพิ่มชื่อเรื่องรอง`,addText:`คลิกเพื่อเพิ่มข้อความ`,addNotes:`คลิกเพื่อเพิ่มบันทึก`,newSlide:`สไลด์ใหม่`,layout:`เค้าโครง`,insert:`แทรก`,textBox:`กล่องข้อความ`,picture:`รูปภาพ`,video:`วิดีโอ`,shape:`รูปร่าง`,shapes:{rect:`สี่เหลี่ยมผืนผ้า`,roundRect:`สี่เหลี่ยมผืนผ้ามุมมน`,ellipse:`วงรี`,triangle:`สามเหลี่ยม`,rightArrow:`ลูกศร`,line:`เส้น`},slideMenu:e=>`การทำงานของสไลด์ ${String(e)}`,duplicate:`ทำสำเนา`,remove:`ลบ`,hide:`ซ่อนสไลด์`,show:`แสดงสไลด์`,fill:`เติม`,textColor:`สีข้อความ`,size:`ขนาด`,bold:`ตัวหนา`,cut:`ตัด`,copy:`คัดลอก`,paste:`วาง`,italic:`ตัวเอียง`,growFont:`เพิ่มขนาดฟอนต์`,shrinkFont:`ลดขนาดฟอนต์`,arrange:`จัดเรียง`,arrangeTo:{front:`นำไปไว้ด้านหน้าสุด`,forward:`นำไปข้างหน้า`,backward:`ส่งไปข้างหลัง`,back:`ส่งไปไว้ด้านหลังสุด`},preview:`แสดงตัวอย่าง`,duration:`ระยะเวลา`,noAnimation:`ไม่มี`,alignment:`การจัดแนว`,align:{l:`จัดชิดซ้าย`,ctr:`กึ่งกลาง`,r:`จัดชิดขวา`,just:`เต็มแนว`},resetLayout:`รีเซ็ตเป็นเค้าโครง`,animations:`ภาพเคลื่อนไหว`,animationEffects:`เอฟเฟกต์`,animationStarts:`เริ่ม`,fromLayout:`เป็นส่วนหนึ่งของเลย์เอาต์`,animationHint:`เลือกรูปร่างเพื่อเพิ่มภาพเคลื่อนไหว`,animationEarlier:`ก่อนหน้า`,animationLater:`ภายหลัง`,animationRemove:`เอาภาพเคลื่อนไหวออก`,animationStart:{"on-click":`เมื่อคลิก`,"with-previous":`พร้อมกับก่อนหน้า`,"after-previous":`หลังจากก่อนหน้า`},animationEffect:{appear:`ปรากฏ`,fade:`จางเข้า`,wipe:`เช็ด`,"fly-in":`บินเข้า`,zoom:`ซูม`,disappear:`หายไป`,"fade-out":`จางออก`,"wipe-out":`เช็ดออก`,"fly-out":`บินออก`,"zoom-out":`ซูมออก`,pulse:`ชีพจร`,path:`เส้นทางการเคลื่อนไหว`},codeWords:`ข้อความมาจากโค้ดของงานนำเสนอ`,changed:(e,t)=>`${e} เปลี่ยน ${String(t)} จุด`,changedElsewhere:e=>`มีการเปลี่ยนจากภายนอก ${String(e)} จุด`,keep:`เก็บไว้`,undo:`เลิกทำ`,redo:`ทำซ้ำ`,keepAll:`เก็บทั้งหมด`,undoAll:`เลิกทำทั้งหมด`,previous:`ก่อนหน้า`,bothChanged:e=>`คุณและ ${e} เปลี่ยนจุดเดียวกัน: ใช้ของคุณ`,unreadable:e=>`อ่าน ${e} ไม่ได้ จะแก้ไขไม่ได้จนกว่าจะซ่อม`},hi:{loading:`प्रस्तुति लोड हो रही है`,noDeck:`यह प्रस्तुति नहीं है`,version:`भाषा`,slides:`स्लाइड`,skipped:`छोड़ा गया`,slideCount:e=>`${String(e)} स्लाइड`,slideOf:(e,t)=>`स्लाइड ${String(e)} / ${String(t)}`,present:`प्रस्तुत करें`,exportTitle:`निर्यात करें`,notes:`वक्ता के नोट्स`,slide:`स्लाइड`,presenting:`प्रस्तुति चल रही है`,presentHelp:`← → चरण · N नोट्स · Esc रोकें`,noNotes:`इस स्लाइड के लिए कोई नोट नहीं`,next:`अगला`,addTitle:`शीर्षक जोड़ने के लिए क्लिक करें`,addSubtitle:`उपशीर्षक जोड़ने के लिए क्लिक करें`,addText:`टेक्स्ट जोड़ने के लिए क्लिक करें`,addNotes:`नोट्स जोड़ने के लिए क्लिक करें`,newSlide:`नई स्लाइड`,layout:`लेआउट`,insert:`सम्मिलित करें`,textBox:`टेक्स्ट बॉक्स`,picture:`चित्र`,video:`वीडियो`,shape:`आकृति`,shapes:{rect:`आयत`,roundRect:`गोलाकार आयत`,ellipse:`अंडाकार`,triangle:`त्रिभुज`,rightArrow:`तीर`,line:`रेखा`},slideMenu:e=>`स्लाइड ${String(e)} की क्रियाएँ`,duplicate:`डुप्लिकेट`,remove:`हटाएँ`,hide:`स्लाइड छिपाएँ`,show:`स्लाइड दिखाएँ`,fill:`भरण`,textColor:`टेक्स्ट का रंग`,size:`आकार`,bold:`बोल्ड`,cut:`काटें`,copy:`कॉपी करें`,paste:`चिपकाएँ`,italic:`तिरछा`,growFont:`फ़ॉन्ट आकार बढ़ाएँ`,shrinkFont:`फ़ॉन्ट आकार घटाएँ`,arrange:`व्यवस्थित करें`,arrangeTo:{front:`सामने लाएँ`,forward:`आगे लाएँ`,backward:`पीछे भेजें`,back:`पीछे भेजें`},preview:`पूर्वावलोकन`,duration:`अवधि`,noAnimation:`कोई नहीं`,alignment:`संरेखण`,align:{l:`बाएँ संरेखित`,ctr:`बीच में`,r:`दाएँ संरेखित`,just:`जस्टिफ़ाई`},resetLayout:`लेआउट पर रीसेट करें`,animations:`एनिमेशन`,animationEffects:`प्रभाव`,animationStarts:`प्रारंभ`,fromLayout:`लेआउट का हिस्सा`,animationHint:`एनिमेट करने के लिए कोई आकृति चुनें`,animationEarlier:`पहले`,animationLater:`बाद में`,animationRemove:`एनिमेशन हटाएँ`,animationStart:{"on-click":`क्लिक करने पर`,"with-previous":`पिछले के साथ`,"after-previous":`पिछले के बाद`},animationEffect:{appear:`प्रकट होना`,fade:`फ़ेड`,wipe:`वाइप`,"fly-in":`उड़कर आना`,zoom:`ज़ूम`,disappear:`ग़ायब होना`,"fade-out":`फ़ेड आउट`,"wipe-out":`वाइप आउट`,"fly-out":`उड़कर जाना`,"zoom-out":`ज़ूम आउट`,pulse:`पल्स`,path:`गति पथ`},codeWords:`इसके शब्द प्रस्तुति के कोड से आते हैं`,changed:(e,t)=>t===1?`${e} ने 1 बदलाव किया`:`${e} ने ${String(t)} बदलाव किए`,changedElsewhere:e=>e===1?`बाहर 1 बदलाव हुआ`:`बाहर ${String(e)} बदलाव हुए`,keep:`रखें`,undo:`पूर्ववत करें`,redo:`फिर से करें`,keepAll:`सभी रखें`,undoAll:`सभी पूर्ववत करें`,previous:`पिछला`,bothChanged:e=>`आपने और ${e} ने एक ही चीज़ बदली: आपका बदलाव रहता है।`,unreadable:e=>`${e} पढ़ा नहीं जा सकता। ठीक होने तक इसे संपादित नहीं किया जाता।`}});function Q(){return Wt.of(ie()?.locale)}var Gt=`@max-[40rem]:hidden`;function Kt(e){let{deck:t,name:n}=e,r=t?.masters.find(e=>e.layouts.some(e=>e.name===n)),i=r?.layouts.find(e=>e.name===n);if(!t||!r||!i)return null;let a=i.shapes.flatMap(e=>{let t=e.placeholder?.type;if(t===void 0||t===`dt`||t===`ftr`||t===`sldNum`)return[];let n=e.frame??bt(r,t)?.frame;return n?[{type:t,frame:n}]:[]});return(0,K.jsx)(`svg`,{viewBox:`0 0 ${String(t.width)} ${String(t.height)}`,className:`bg-sheet text-lead border-rule size-auto w-full rounded-sm border`,style:{aspectRatio:`${String(t.width)} / ${String(t.height)}`},"data-testid":`deck-layout-picture`,"aria-hidden":!0,children:a.map(({type:e,frame:n},r)=>{let i=e===`title`||e===`ctrTitle`,a=i?1:Math.max(1,Math.min(5,Math.floor(n.height/(t.height/9)))),o=n.height/(a+1);return Array.from({length:a},(e,a)=>(0,K.jsx)(`rect`,{x:n.left,y:n.top+o*(a+1)-t.height*(i?.03:.012),width:n.width*(i?.7:.9-a*.12),height:t.height*(i?.06:.024),rx:t.height*.01,fill:`currentColor`,opacity:i?.7:.35},`${String(r)}-${String(a)}`))})})}var qt=[`rect`,`roundRect`,`ellipse`,`triangle`,`rightArrow`,`line`];function Jt(e){let t=Q(),n=(0,G.useRef)(null),r=(0,G.useRef)(null),i=(t,i)=>(0,K.jsx)(`input`,{ref:t===`picture`?n:r,type:`file`,accept:i,className:`hidden`,"data-testid":`deck-insert-${t}-file`,onChange:n=>{let r=n.target.files?.[0];n.target.value=``,r&&e.onInsert({kind:t,file:r})}}),a=(e.disabled??!1)||e.layouts.length===0,o=`grid w-96 grid-cols-2 gap-1 p-1.5 text-xs`,s=`flex-col items-stretch gap-1 p-1.5`;return(0,K.jsxs)(`div`,{className:`flex shrink-0 items-center gap-0.5`,"data-testid":`deck-bar`,children:[(0,K.jsx)(b,{size:`icon`,variant:`ghost`,className:`size-7`,"aria-label":t.undo,title:t.undo,"data-testid":`deck-undo`,disabled:!e.canUndo,onClick:e.onUndo,children:(0,K.jsx)(Be,{className:`size-3.5`})}),(0,K.jsx)(b,{size:`icon`,variant:`ghost`,className:`size-7`,"aria-label":t.redo,title:t.redo,"data-testid":`deck-redo`,disabled:!e.canRedo,onClick:e.onRedo,children:(0,K.jsx)(ke,{className:`size-3.5`})}),(0,K.jsx)(`span`,{className:`bg-rule mx-1 h-4 w-px shrink-0`}),(0,K.jsxs)(b,{size:`sm`,variant:`ghost`,className:`rounded-r-none pr-1.5`,"aria-label":t.newSlide,disabled:a,"data-testid":`deck-new`,onClick:()=>{let t=e.layout??e.layouts[0];t!==void 0&&e.onNew(t)},children:[(0,K.jsx)(Ve,{className:`size-3.5`}),(0,K.jsx)(`span`,{className:Gt,children:t.newSlide})]}),(0,K.jsxs)(E,{children:[(0,K.jsx)(S,{asChild:!0,children:(0,K.jsx)(b,{size:`icon`,variant:`ghost`,className:`-ml-0.5 h-7 w-5 rounded-l-none`,"aria-label":t.layout,disabled:a,"data-testid":`deck-new-more`,children:(0,K.jsx)(O,{className:`size-3`})})}),(0,K.jsx)(v,{align:`start`,className:o,children:e.layouts.map(t=>(0,K.jsxs)(w,{className:s,"data-testid":`deck-new-layout`,"data-layout":t,onSelect:()=>{e.onNew(t)},children:[(0,K.jsx)(Kt,{deck:e.deck,name:t}),(0,K.jsx)(`span`,{className:`truncate`,children:t})]},t))})]}),(0,K.jsxs)(E,{children:[(0,K.jsx)(S,{asChild:!0,children:(0,K.jsxs)(b,{size:`sm`,variant:`ghost`,disabled:(e.disabled??!1)||e.layout===void 0,"data-testid":`deck-layout`,children:[(0,K.jsx)(Ge,{className:`size-3.5`}),(0,K.jsx)(`span`,{className:Gt,children:t.layout}),(0,K.jsx)(O,{className:`size-3`})]})}),(0,K.jsx)(v,{align:`start`,className:o,children:e.layouts.map(t=>(0,K.jsxs)(w,{className:c(s,t===e.layout&&`bg-here`),"aria-current":t===e.layout?`true`:void 0,"data-testid":`deck-layout-item`,"data-layout":t,onSelect:()=>{e.onLayout(t)},children:[(0,K.jsx)(Kt,{deck:e.deck,name:t}),(0,K.jsx)(`span`,{className:`truncate`,children:t})]},t))})]}),(0,K.jsxs)(E,{children:[(0,K.jsx)(S,{asChild:!0,children:(0,K.jsxs)(b,{size:`sm`,variant:`ghost`,disabled:e.disabled,"data-testid":`deck-insert`,children:[(0,K.jsx)(`span`,{className:Gt,children:t.insert}),(0,K.jsx)(qe,{className:`hidden size-3.5 @max-[40rem]:block`}),(0,K.jsx)(O,{className:`size-3`})]})}),(0,K.jsxs)(v,{align:`start`,className:`text-xs`,children:[(0,K.jsxs)(w,{"data-testid":`deck-insert-picture`,onSelect:()=>{n.current?.click()},children:[(0,K.jsx)(R,{className:`size-3.5`}),t.picture]}),(0,K.jsxs)(y,{children:[(0,K.jsxs)(T,{"data-testid":`deck-insert-shape`,children:[(0,K.jsx)(qe,{className:`size-3.5`}),t.shape]}),(0,K.jsx)(re,{className:`text-xs`,children:qt.map(n=>(0,K.jsx)(w,{"data-testid":`deck-insert-geometry`,"data-geometry":n,onSelect:()=>{e.onInsert({kind:`shape`,geometry:n})},children:t.shapes[n]},n))})]}),(0,K.jsxs)(w,{"data-testid":`deck-insert-textbox`,onSelect:()=>{e.onInsert({kind:`textbox`})},children:[(0,K.jsx)(Ye,{className:`size-3.5`}),t.textBox]}),(0,K.jsxs)(w,{"data-testid":`deck-insert-movie`,onSelect:()=>{r.current?.click()},children:[(0,K.jsx)(We,{className:`size-3.5`}),t.video]})]})]}),i(`picture`,`image/png,image/jpeg,image/gif,image/webp,image/svg+xml`),i(`movie`,`video/mp4,video/quicktime,video/webm`)]})}var Yt=3,Xt=400,Zt=3e4;function Qt({item:e,version:t,revision:n,width:r,height:i,moment:a,playing:o=!1,bare:s,onLoaded:l,onObjects:u,overlay:d,className:f,edit:m=!1,onCommands:h,onEdit:g,hold:_=!1,interactive:v=!1}){let ee=Q(),y=te(),b=(0,G.useRef)(null),[x,S]=(0,G.useState)(),[C,w]=(0,G.useState)(),[T,re]=(0,G.useState)(),[ie,E]=(0,G.useState)(),[ae,oe]=(0,G.useState)(),D=ne(ae),se=(0,G.useRef)(1),O=(0,G.useRef)({shown:x,pending:C,moment:a,playing:o,onLoaded:l,onObjects:u,onEdit:g,hold:_});(0,G.useEffect)(()=>{O.current={shown:x,pending:C,moment:a,playing:o,onLoaded:l,onObjects:u,onEdit:g,hold:_}});let ce=e=>e===void 0?void 0:b.current?.querySelector(`iframe[data-frame="${String(e.id)}"]`)?.contentWindow,k=(e,t)=>{ce(e)?.postMessage({allyhub:!0,...t},`*`)};(0,G.useEffect)(()=>{h?.(x?e=>{k(O.current.shown,e)}:void 0)},[h,x]);let le=n=>p(y,`video/stage`,{item:e,version:t,start:{t:n},chrome:!1,...m?{edit:!0}:{},...O.current.playing?{play:!0}:{}}).then(e=>(oe(e.probe),e.url));(0,G.useEffect)(()=>{let e=!0;return le(O.current.moment??0).then(t=>{e&&(S({id:se.current++,src:t}),w(void 0),E(void 0))},t=>{e&&E(t instanceof Error?t.message:String(t))}),()=>{e=!1}},[e,t]);let ue=(0,G.useRef)(n),[A,j]=(0,G.useState)(0),[de,fe]=(0,G.useState)(),pe=(0,G.useRef)(0),me=()=>{pe.current>=Yt||(pe.current++,setTimeout(()=>{j(e=>e+1)},Xt*pe.current))};(0,G.useEffect)(()=>{if(n===ue.current&&A===0)return;n!==ue.current&&(pe.current=0),ue.current=n;let e=!0;return le(O.current.moment??0).then(t=>{e&&w({id:se.current++,src:t})},t=>{fe(`video/stage: ${t instanceof Error?t.message:String(t)}`),e&&me()}),()=>{e=!1}},[n,A]),(0,G.useEffect)(()=>{if(!C)return;let e=setTimeout(()=>{w(void 0)},Zt);return()=>{clearTimeout(e)}},[C]),(0,G.useEffect)(()=>{let e=e=>{let t=Ee(e.data);if(!t)return;let{shown:n,pending:r}=O.current,i=[n,r].find(t=>t!==void 0&&ce(t)===e.source);if(!i)return;let a=i.id===r?.id;if(t.type===`loaded`){if(i.loaded={kind:t.kind,timeline:t.timeline,text:t.text,reads:t.reads,problems:t.problems,mix:t.mix,...t.deck===void 0?{}:{deck:t.deck}},a)return;re(t.timeline),E(void 0),O.current.onLoaded?.(i.loaded)}else if(t.type===`error`)fe(`${a?`pending`:`shown`}: ${t.message}`),a?(w(void 0),me()):E(t.message);else if(t.type===`deck-text`||t.type===`deck-text-done`||t.type===`deck-selection`)a||O.current.onEdit?.(t);else if(t.type===`time`){if(a){if(!i.loaded||O.current.hold)return;S(i),w(void 0),re(i.loaded.timeline),O.current.shown=i,O.current.pending=void 0,O.current.onLoaded?.(i.loaded)}let e=O.current.moment;if(!O.current.playing&&e!==void 0&&Math.abs(t.t-e)>.001){k(i,{type:`seek`,t:e});return}t.playing||k(i,{type:`objects`,t:t.t})}else t.type===`objects`&&(a||O.current.onObjects?.(t))};return window.addEventListener(`message`,e),()=>{window.removeEventListener(`message`,e)}},[]),(0,G.useEffect)(()=>{!_&&C?.loaded&&k(C,{type:`seek`,t:O.current.moment??0})},[_]),(0,G.useEffect)(()=>{a!==void 0&&x&&(o||k(x,{type:`pause`}),k(x,{type:`seek`,t:a}),o&&k(x,{type:`play`}))},[a,o,x?.id]);let[M,he]=T?[T.width,T.height]:[r,i],ge=(e,t)=>(0,K.jsx)(`iframe`,{"data-frame":e.id,src:e.src,title:ee.slide,...D?{sandbox:`allow-scripts`}:{},allow:`autoplay`,"data-testid":t?`deck-stage-pending`:`deck-stage`,className:c(`absolute -inset-0.5 size-[calc(100%+4px)] border-0`,!v||t?`pointer-events-none`:``,`transition-opacity duration-(--allyhub-dur-set)`,(t||T===void 0)&&`opacity-0`)},e.id);return(0,K.jsx)(`div`,{className:c(`flex size-full min-h-0 items-center justify-center [container-type:size]`,f),"data-testid":`deck-canvas`,"data-shown":x?.id,"data-pending":C===void 0?void 0:`${String(C.id)}${C.loaded?` loaded`:``}`,"data-error":de,children:(0,K.jsxs)(`div`,{ref:b,className:c(`bg-background relative overflow-hidden [container-type:inline-size]`,s!==!0&&`shadow-sheet border`),style:{width:`min(100cqw - 2px, (100cqh - 2px) * ${String(M/he)})`,aspectRatio:`${String(M)} / ${String(he)}`},"data-testid":`deck-picture`,children:[x&&D!==void 0?ge(x,!1):null,C&&D!==void 0?ge(C,!0):null,T||ie!==void 0?null:(0,K.jsx)(`div`,{className:`animate-in fade-in fill-mode-both absolute inset-0 flex items-center justify-center delay-700`,children:(0,K.jsx)(be,{label:ee.loading})}),ie===void 0?null:(0,K.jsx)(`div`,{className:`bg-background/90 text-problem-text absolute inset-x-0 top-0 p-2 text-xs`,"data-testid":`deck-failed`,children:ie}),d]})})}function $t(e){let t=Q(),[n,r]=(0,G.useState)(0),i=e.changes.length;if(i===0)return null;let a=Math.min(n,i-1),o=e.changes[a];if(!o)return null;let s=t=>{let n=(a+t+i)%i;r(n);let o=e.changes[n];o&&e.onShow(o)};return(0,K.jsxs)(`div`,{className:`bg-sheet border-agent/40 flex items-center gap-1 rounded-md border px-2 py-1 text-xs shadow-sm`,"data-testid":`deck-changes`,children:[(0,K.jsx)(`span`,{className:`bg-agent size-1.5 rounded-full`}),(0,K.jsx)(`span`,{className:`text-agent-text mr-1`,"data-testid":`deck-changes-count`,children:e.agent===void 0?t.changedElsewhere(i):t.changed(e.agent,i)}),i>1?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b,{size:`icon`,variant:`ghost`,className:`size-6`,"aria-label":t.previous,onClick:()=>{s(-1)},children:(0,K.jsx)(N,{className:`size-3.5`})}),(0,K.jsx)(b,{size:`icon`,variant:`ghost`,className:`size-6`,"aria-label":t.next,onClick:()=>{s(1)},children:(0,K.jsx)(D,{className:`size-3.5`})})]}):null,(0,K.jsx)(b,{size:`sm`,variant:`ghost`,className:`h-6`,"data-testid":`deck-change-undo`,onClick:()=>{e.onUndo(o)},children:t.undo}),(0,K.jsx)(b,{size:`sm`,variant:`ghost`,className:`h-6`,"data-testid":`deck-change-keep`,onClick:()=>{e.onKeep(o)},children:t.keep}),i>1?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(b,{size:`sm`,variant:`ghost`,className:`h-6`,"data-testid":`deck-changes-undo`,onClick:()=>{e.onAll(`undo`)},children:t.undoAll}),(0,K.jsx)(b,{size:`sm`,variant:`ghost`,className:`h-6`,"data-testid":`deck-changes-keep`,onClick:()=>{e.onAll(`keep`)},children:t.keepAll})]}):null]})}function en(e){if(typeof e!=`object`||!e)return;let t=e;return Array.isArray(t.slides)&&typeof t.width==`number`?e:void 0}var tn=e=>e.file.generate===void 0?void 0:{block:e.id.split(`/`)[0]??e.id,slide:e.id.slice(e.id.indexOf(`/`)+1)};function nn(e){let t=tn(e);return e.shapes.filter(e=>e.level===`slide`).map(n=>({key:`${e.id}/${n.name}`,name:n.name,address:t?{slide:t.block,shape:`${t.slide}/${n.name}`}:{slide:e.id,shape:n.name},shape:n,own:n.placeholder===void 0&&n.sources.frame.from===`slide`,typed:t===void 0&&(n.kind===`table`&&n.sources.frame.from===`slide`||n.text!==void 0&&(n.kind===`placeholder`||n.kind===`textbox`||n.kind===`autoshape`))}))}var rn=e=>{let t=e=>Math.round(e/X*10)/10;return{x:t(e.left),y:t(e.top),w:t(e.width),h:t(e.height)}},an=e=>({left:e.x*X,top:e.y*X,width:e.w*X,height:e.h*X});function on(e,t){return e.slides.find(e=>e.id===t.slide)?.shapes?.[t.shape]}var sn=.008,cn=(e,t)=>[e,e+t/2,e+t];function ln(e,t,n){let r;for(let i of e)for(let e of t){let t=e-i;Math.abs(t)<=n&&(!r||Math.abs(t)<Math.abs(r.shift))&&(r={shift:t,at:e})}return r}function un(e,t,n,r){let i=[...cn(0,n.width),...t.flatMap(e=>cn(e.left,e.width))],a=[...cn(0,n.height),...t.flatMap(e=>cn(e.top,e.height))],o=ln(cn(e.left,e.width),i,r),s=ln(cn(e.top,e.height),a,r);return{frame:{...e,left:e.left+(o?.shift??0),top:e.top+(s?.shift??0)},guides:[...o?[{axis:`x`,at:o.at}]:[],...s?[{axis:`y`,at:s.at}]:[]]}}var dn=[`nw`,`n`,`ne`,`e`,`se`,`s`,`sw`,`w`],fn=X*2;function pn(e,t,n,r,i={}){let a=e.left,o=e.top,s=e.left+e.width,c=e.top+e.height;t.includes(`w`)&&(a+=n),t.includes(`e`)&&(s+=n),t.includes(`n`)&&(o+=r),t.includes(`s`)&&(c+=r);let l=[];if(i.snap){let{others:e,slide:n,tol:r}=i.snap,u=[0,n.width/2,n.width,...e.flatMap(e=>cn(e.left,e.width))],d=[0,n.height/2,n.height,...e.flatMap(e=>cn(e.top,e.height))],f=(e,t,n)=>{let i=ln([e],t,r);return i?(l.push({axis:n,at:i.at}),i.at):e};t.includes(`w`)&&(a=f(a,u,`x`)),t.includes(`e`)&&(s=f(s,u,`x`)),t.includes(`n`)&&(o=f(o,d,`y`)),t.includes(`s`)&&(c=f(c,d,`y`))}if(s-a<fn&&(t.includes(`w`)?a=s-fn:s=a+fn),c-o<fn&&(t.includes(`n`)?o=c-fn:c=o+fn),i.keep&&t.length===2&&e.width>0&&e.height>0){let n=e.width/e.height,r=s-a,i=c-o;if(r/n>=i){let e=r/n;t.includes(`n`)?o=c-e:c=o+e}else{let e=i*n;t.includes(`w`)?a=s-e:s=a+e}}return{frame:{left:a,top:o,width:s-a,height:c-o},guides:l}}function mn(e){let t=0;return e.map(e=>((e.start??`on-click`)===`on-click`&&(t+=1),t))}function hn(e){return(e.text?.paragraphs[0]?.runs??[]).map(e=>e.text).join(``).trim()}function gn(e,t,n){let r=n===`front`?Math.max(e,...t,0)+1:n===`back`?Math.min(e,...t,0)-1:e+(n===`forward`?1:-1);return r===0?void 0:r}function _n(e,t,n){let r=[...e],[i]=r.splice(t,1);return i&&r.splice(Math.max(0,Math.min(r.length,t+n)),0,i),r}function vn(e,[t,n],r){let i=(Array.isArray(e)?e:[]).map(e=>Array.isArray(e)?[...e]:[e]);for(;i.length<=t;)i.push([]);let a=i[t]??[];for(;a.length<=n;)a.push(``);return a[n]=r??``,i.some(e=>e.some(e=>e!==``))?i:void 0}function yn(e){let t=e.map(e=>({...e,text:e.text.replaceAll(`\v`,` `).replace(/\s+$/u,``)}));if(t.every(e=>e.text===``))return;let[n]=t;if(t.length===1&&n?.level===0)return n.text;let r=[],i=[r];for(let e of t){let t=Math.min(Math.max(0,e.level),i.length);for(;i.length-1>t;)i.pop();if(t===i.length){let e=[];i.at(-1)?.push(e),i.push(e)}i.at(-1)?.push(e.text)}return r}function bn(e){let t=e.edit.slide;return typeof t==`string`?t:t.id}function xn(e){let t=e.edit;if(t.op===`shape`||t.op===`unplace`||t.op===`text`)return t.shape}function Sn(e,t){let n=e;for(let e of t.split(`.`)){if(typeof n!=`object`||!n)return;n=n[e]}return n}function Cn(e,t){let n=e.op===`add`?e.slide.id:e.slide,r=t.slides.findIndex(e=>e.id===n),i=t.slides[r],a=r>0?t.slides[r-1]?.id??null:null;switch(e.op){case`add`:return[{op:`remove`,slide:e.slide.id}];case`remove`:return i?[{op:`add`,slide:i,after:a}]:[];case`move`:return[{op:`move`,slide:e.slide,after:a}];case`layout`:return i?.layout===void 0?[]:[{op:`layout`,slide:e.slide,layout:i.layout}];case`hidden`:return[{op:`hidden`,slide:e.slide,hidden:i?.hidden??!1}];case`shape`:{let t=i?.shapes?.[e.shape];return[{op:`shape`,slide:e.slide,shape:e.shape,set:Object.fromEntries(Object.keys(e.set).map(e=>[e,Sn(t,e)]))}]}case`unplace`:{let t=i?.shapes?.[e.shape];return t?[{op:`shape`,slide:e.slide,shape:e.shape,set:{...t}}]:[]}case`duplicate`:return[{op:`remove`,slide:e.id}];case`reset`:return[];case`animations`:return[{op:`animations`,slide:e.slide,animations:i?.animations??[]}];case`transition`:return[{op:`transition`,slide:e.slide,...i?.transition?{transition:i.transition}:{}}]}}function wn(e,t){let n=t.slides.find(t=>t.id===e.slide);switch(e.op){case`text`:return[{op:`text`,slide:e.slide,shape:e.shape,words:n?.text?.[e.shape]}];case`notes`:return[{op:`notes`,slide:e.slide,notes:n?.notes}];case`remove`:return n?[...Object.entries(n.text??{}).map(([t,n])=>({op:`text`,slide:e.slide,shape:t,words:n})),...n.notes===void 0?[]:[{op:`notes`,slide:e.slide,notes:n.notes}]]:[]}}function Tn(e){return e.file===`slides`?{slides:Cn(e.edit,e.before),script:[]}:{slides:[],script:wn(e.edit,e.before)}}var En=e=>JSON.stringify([e.file,e.edit.op,bn(e),xn(e)??``,e.edit.op===`shape`?Object.keys(e.edit.set).sort():[]]),Dn={read:e=>xt(e).file,edits:Pt,apply:Et,merge:Lt},On={read:Rt,edits:Ht,apply:Bt,merge:Ut},kn={slides:[]},An={parts:[],slides:[]},jn=class{text;value;problem;session;format;heard;constructor(e,t,n,r){this.session=e,this.format=t,this.heard=r,this.text=e.text;let i=t.read(e.text);this.value=i??n,this.problem=i===void 0?e.path:void 0,e.attach({save:()=>this.problem!==void 0||this.text===e.text?void 0:this.text,take:(n,r)=>{let i=t.read(r),a=t.read(n);if(a===void 0){this.problem=e.path,this.heard.updated();return}let o=i===void 0||this.problem!==void 0?{text:n,conflicts:[]}:t.merge(r,this.value,n);this.problem=void 0,this.text=o?.text??n,this.value=t.read(this.text)??a,o&&o.conflicts.length>0&&this.heard.conflicts(o.conflicts),i!==void 0&&this.heard.changed(t.edits(i,a),i),this.heard.updated()}})}edit(e){if(this.problem===void 0&&e.length!==0){for(let t of e)this.text=this.format.apply(this.text,t);this.value=this.format.read(this.text)??this.value,this.session.edited()}}},Mn=1500,Nn=`slides-editor.seen:`,Pn=new Set([`add`,`duplicate`,`remove`,`move`,`layout`,`hidden`]),Fn=300,In=[`error`,`saving`,`unsaved`,`saved`],Ln=class e{slides;script;changes=[];conflicts=[];snapshot;listeners=new Set;stops=[];done=[];undone=[];host;remembering;remembered={};static async open(t,n){let r=new e;r.host=t;let[i,a]=await Promise.all([m.open(t,n.slides),m.open(t,n.script)]),o=e=>({changed:(t,n)=>{r.noted(t.map(t=>e(t,n)))},conflicts:e=>{r.conflicts=e},updated:()=>{r.update()}});r.slides=new jn(i,Dn,kn,o((e,t)=>({file:`slides`,edit:e,before:t}))),r.script=new jn(a,On,An,o((e,t)=>({file:`script`,edit:e,before:t}))),r.stops=[i,a].map(e=>e.onState(()=>{r.update()}));let s=async e=>{let{value:n}=await t[`storage/get`]({key:Nn+e}).catch(()=>({value:null}));return typeof n==`string`?n:void 0},[c,l]=await Promise.all([s(n.slides),s(n.script)]);r.remembered={...c===void 0?{}:{slides:c},...l===void 0?{}:{script:l}};let u=c===void 0?void 0:Dn.read(c);u&&r.noted(Pt(u,r.slides.value).map(e=>({file:`slides`,edit:e,before:u})));let d=l===void 0?void 0:On.read(l);return d&&r.noted(Ht(d,r.script.value).map(e=>({file:`script`,edit:e,before:d}))),r.update(),r}subscribe=e=>(this.listeners.add(e),()=>this.listeners.delete(e));get=()=>(this.snapshot??={slides:this.slides.value,script:this.script.value,state:In.find(e=>this.slides.session.state===e||this.script.session.state===e)??`saved`,problem:this.slides.problem??this.script.problem,changes:this.changes,conflicts:this.conflicts,canUndo:this.done.length>0,canRedo:this.undone.length>0},this.snapshot);update(){this.snapshot=void 0;for(let e of this.listeners)e();clearTimeout(this.remembering),this.remembering=setTimeout(()=>{this.remember()},Fn)}remember(){let e=[...this.changes].reverse().map(e=>({c:e,undo:Tn(e)})),t=this.slides.text,n=this.script.text;for(let{undo:r}of e){for(let e of r.slides)t=Et(t,e);for(let e of r.script)n=Bt(n,e)}let r=(e,t,n)=>{t!==n&&this.host[`storage/set`]({key:Nn+e,value:n}).catch(()=>void 0)};r(this.slides.session.path,this.remembered.slides,t),r(this.script.session.path,this.remembered.script,n),this.remembered={slides:t,script:n}}copies(){return{slides:this.slides.value,script:this.script.value}}apply(e,t,n){let r=this.copies();this.slides.edit(e),this.script.edit(t);let i=this.copies();if(r.slides===i.slides&&r.script===i.script)return;let a=Date.now(),o=this.done.at(-1);n!==void 0&&o?.group===n&&a-o.at<Mn?(o.after=i,o.at=a):this.done.push({before:r,after:i,group:n,at:a}),this.undone=[]}replay(e,t){let n=Pt(e.slides,t.slides);this.slides.edit(n),this.script.edit(Ht(e.script,t.script)),this.update(),n.some(e=>Pn.has(e.op))&&this.flush()}undoStep(){let e=this.done.pop();e&&(this.undone.push(e),this.replay(e.after,e.before))}redoStep(){let e=this.undone.pop();e&&(this.done.push(e),this.replay(e.before,e.after))}noted(e){let t=new Set(this.changes.map(En));this.changes=[...this.changes,...e.filter(e=>!t.has(En(e)))]}edit(e,t){let n=new Set([...(e.slides??[]).map(e=>({file:`slides`,edit:e,before:kn})),...(e.script??[]).map(e=>({file:`script`,edit:e,before:An}))].map(e=>`${bn(e)}\u0000${xn(e)??``}`));this.changes=this.changes.filter(e=>!n.has(`${bn(e)}\u0000${xn(e)??``}`)),this.apply(e.slides??[],e.script??[],t),this.update(),e.slides?.some(e=>Pn.has(e.op))&&this.flush()}keep(e){this.changes=this.changes.filter(t=>t!==e),this.update()}undo(e){let t=Tn(e);this.changes=this.changes.filter(t=>t!==e),this.apply(t.slides,t.script),this.update()}all(e){for(let t of[...this.changes].reverse())e===`undo`?this[e](t):this.keep(t)}async flush(){await Promise.all([this.slides.session.flush(),this.script.session.flush()])}async close(){for(let e of this.stops.splice(0))e();clearTimeout(this.remembering),this.remember(),await Promise.all([this.slides.session.close(),this.script.session.close()])}};function Rn(e){return e.map(e=>({key:e.key,...e.title===void 0?{}:{title:e.title},steps:e.steps&&e.steps.length>0?e.steps:[e.still],still:e.still,hidden:e.hidden===!0}))}function zn(e,t){return t.length===0?e:t.flatMap(t=>{if(t.generate!==void 0)return e.filter(e=>e.key.startsWith(`${t.id}/`));let n=t.hidden===!0,r=e.find(e=>e.key===t.id);return[r?{...r,hidden:n}:{key:t.id,steps:[],still:0,hidden:n}]})}function Bn(e,t,n){let r=e.find(e=>e.key===t);if(r)return r.steps[Math.max(0,Math.min(n,r.steps.length-1))]}function Vn(e,t,n,r=!1){let i=r?e.filter(e=>!e.hidden):e,a=i.findIndex(e=>e.key===t.slide),o=i[a];if(!o)return i[0]?{slide:i[0].key,step:0}:t;let s=t.step+n;if(s>=0&&s<o.steps.length)return{slide:o.key,step:s};let c=i[a+n];return c?{slide:c.key,step:n>0?0:c.steps.length-1}:t}var Hn=(e,t)=>`${String(e/t*100)}%`,Un={n:`cursor-ns-resize`,s:`cursor-ns-resize`,e:`cursor-ew-resize`,w:`cursor-ew-resize`,ne:`cursor-nesw-resize`,sw:`cursor-nesw-resize`,nw:`cursor-nwse-resize`,se:`cursor-nwse-resize`},Wn={nw:[0,0],n:[.5,0],ne:[1,0],e:[1,.5],se:[1,1],s:[.5,1],sw:[0,1],w:[0,.5]};function Gn({onWords:e}){let t=(0,G.useRef)(null),[n,r]=(0,G.useState)(!1);(0,G.useEffect)(()=>{t.current?.focus({preventScroll:!0})},[]);let i=n=>{t.current&&(t.current.value=``),n&&e(n)};return(0,K.jsx)(`textarea`,{ref:t,"data-sink":!0,"data-testid":`deck-sink`,"aria-hidden":!0,tabIndex:-1,rows:1,className:c(`absolute top-full left-0 resize-none outline-none`,n?`bg-sheet border-pencil z-10 mt-1 w-48 rounded-sm border px-1 text-sm`:`pointer-events-none size-px opacity-0`),onCompositionStart:()=>{r(!0)},onCompositionEnd:e=>{r(!1),i(e.data)},onInput:e=>{n||i(e.currentTarget.value)}})}function Kn(e){let t=mn(e.animations??[]),n=Q(),r=(0,G.useRef)(null),i=(0,G.useRef)(void 0),[a,o]=(0,G.useState)(),[s,l]=(0,G.useState)([]),u=()=>{let t=r.current?.getBoundingClientRect().width??0;return t>0?e.width/t:1},d=e=>{let t=r.current?.getBoundingClientRect();return t?{x:(e.clientX-t.left)/t.width,y:(e.clientY-t.top)/t.height}:{x:0,y:0}},f=(t,n,r)=>{if(t.button!==0)return;if(t.stopPropagation(),t.shiftKey&&r===`move`){e.onSelect(e.selected.includes(n.key)?e.selected.filter(e=>e!==n.key):[...e.selected,n.key]);return}let a=e.selected.includes(n.key)&&r===`move`;e.selected.includes(n.key)||e.onSelect([n.key]);let o=e.frameOf(n);i.current={key:n.key,handle:r,start:{x:t.clientX,y:t.clientY},from:o,moved:!1,last:o,with:a?e.shapes.filter(t=>t.key!==n.key&&e.selected.includes(t.key)).map(t=>({key:t.key,from:e.frameOf(t)})):[]},t.currentTarget.setPointerCapture(t.pointerId)},p=e=>({[e.key]:e.last,...Object.fromEntries(e.with.map(t=>[t.key,{...t.from,left:t.from.left+e.last.left-e.from.left,top:t.from.top+e.last.top-e.from.top}]))}),m=()=>{let t=i.current;if(i.current=void 0,l([]),t?.moved&&e.onDrop(p(t)),a){let t=Math.min(a.from.x,a.to.x)*e.width,n=Math.max(a.from.x,a.to.x)*e.width,r=Math.min(a.from.y,a.to.y)*e.height,i=Math.max(a.from.y,a.to.y)*e.height;e.onSelect(e.shapes.filter(a=>{let o=e.frameOf(a);return o.left<n&&o.left+o.width>t&&o.top<i&&o.top+o.height>r}).map(e=>e.key)),o(void 0)}},h=t=>{if(a){o({...a,to:d(t)});return}let n=i.current;if(!n)return;if(!(t.buttons&1)){m();return}let r=u(),s=(t.clientX-n.start.x)*r,c=(t.clientY-n.start.y)*r;if(!n.moved&&Math.hypot(t.clientX-n.start.x,t.clientY-n.start.y)<3)return;n.moved=!0;let f=new Set([n.key,...n.with.map(e=>e.key)]),h=e.shapes.filter(e=>!f.has(e.key)).map(e.frameOf),g={width:e.width,height:e.height},_=t.altKey?void 0:{others:h,slide:g,tol:e.width*sn},v=n.handle===`move`?_?un({...n.from,left:n.from.left+s,top:n.from.top+c},h,g,_.tol):{frame:{...n.from,left:n.from.left+s,top:n.from.top+c},guides:[]}:pn(n.from,n.handle,s,c,{keep:t.shiftKey,..._?{snap:_}:{}});n.last=v.frame,l(v.guides),e.onDrag(p(n))},g=e=>e===`title`||e===`ctrTitle`?n.addTitle:e===`subTitle`?n.addSubtitle:n.addText;return(0,K.jsxs)(`div`,{ref:r,className:c(`absolute inset-0`,e.typing!==void 0&&`pointer-events-none`),"data-testid":`deck-overlay`,onPointerDown:t=>{if(t.target!==t.currentTarget||t.button!==0)return;t.currentTarget.setPointerCapture(t.pointerId),e.onSelect([]);let n=d(t);o({from:n,to:n})},onPointerMove:h,onPointerUp:m,onPointerCancel:m,onLostPointerCapture:m,children:[e.shapes.map(r=>{let i=e.frameOf(r),a=e.selected.includes(r.key),o=r.shape.kind===`placeholder`&&r.shape.text?.empty===!0,s=e.typing===r.key,l=t.filter((t,n)=>e.animations?.[n]?.shape===r.name);return(0,K.jsxs)(`div`,{"data-testid":`deck-shape`,"data-key":r.key,"data-selected":a?``:void 0,title:r.typed||!r.shape.text?void 0:n.codeWords,className:c(`absolute`,s?`outline-pencil pointer-events-none outline-1`:`cursor-move`,!a&&!s&&`hover:outline-pencil/60 hover:outline-1`,e.marked.has(r.key)&&!a&&`outline-agent outline-2`,o&&!s&&`outline-rule-strong outline-1 outline-dashed`),style:{left:Hn(i.left,e.width),top:Hn(i.top,e.height),width:Hn(i.width,e.width),height:Hn(i.height,e.height)},onPointerDown:e=>{f(e,r,`move`)},onDoubleClick:t=>{r.typed&&e.onType(r.key,d(t))},onContextMenu:t=>{t.preventDefault(),a||e.onSelect([r.key]),e.onMenu(r.key,{x:t.clientX,y:t.clientY})},children:[l.length>0?(0,K.jsx)(`span`,{className:`bg-pencil text-sheet pointer-events-none absolute top-0 left-0 z-10 -translate-x-full px-1 text-xs tabular-nums`,"data-testid":`deck-animation-number`,children:l.join(`, `)}):null,o&&!s?(0,K.jsx)(`span`,{className:`text-muted-foreground pointer-events-none absolute inset-0 flex items-center justify-center p-1 text-center text-[1.6cqw] leading-tight`,children:g(r.shape.placeholder?.type)}):null,a&&!s?(0,K.jsxs)(K.Fragment,{children:[r.typed&&e.selected.length===1?(0,K.jsx)(Gn,{onWords:t=>{e.onWords(r.key,t)}}):null,(0,K.jsx)(`div`,{className:`border-pencil animate-in fade-in pointer-events-none absolute inset-0 border`}),dn.map(e=>(0,K.jsx)(`span`,{"data-handle":e,className:c(`bg-sheet border-pencil animate-in fade-in absolute size-2 -translate-1/2 rounded-full border`,Un[e]),style:{left:`${String(Wn[e][0]*100)}%`,top:`${String(Wn[e][1]*100)}%`},onPointerDown:t=>{f(t,r,e)}},e))]}):null]},r.key)}),a?(0,K.jsx)(`div`,{"data-testid":`deck-marquee`,className:`border-pencil bg-pencil/10 pointer-events-none absolute border`,style:{left:`${String(Math.min(a.from.x,a.to.x)*100)}%`,top:`${String(Math.min(a.from.y,a.to.y)*100)}%`,width:`${String(Math.abs(a.to.x-a.from.x)*100)}%`,height:`${String(Math.abs(a.to.y-a.from.y)*100)}%`}}):null,s.map(t=>(0,K.jsx)(`div`,{"data-testid":`deck-guide`,className:`bg-pencil pointer-events-none absolute`,style:t.axis===`x`?{left:Hn(t.at,e.width),top:0,bottom:0,width:1}:{top:Hn(t.at,e.height),left:0,right:0,height:1}},`${t.axis}${String(t.at)}`))]})}var qn=3e3,Jn=160;function Yn(e){let t=Q(),n=(0,G.useRef)(null),[r,i]=(0,G.useState)(e.from),[a,o]=(0,G.useState)(!1),[s,l]=(0,G.useState)(()=>{let{slide:t,step:n}=e.from,r=e.slides.find(e=>e.key===t)?.steps[n];return r!==void 0&&e.plays(t)?{from:e.startOf(t)??r,to:r}:void 0}),[u,d]=(0,G.useState)(!1),f=(0,G.useRef)(()=>void 0);(0,G.useEffect)(()=>{let e;return f.current=()=>{d(!1),clearTimeout(e),e=setTimeout(()=>{d(!0)},qn)},f.current(),()=>{clearTimeout(e)}},[]);let[p,m]=(0,G.useState)(!1),h=(0,G.useRef)(!1),g=e=>{h.current||(h.current=!0,m(!0),setTimeout(()=>{_.current.props.onStop(e)},Jn))},_=(0,G.useRef)({at:r,props:e});(0,G.useEffect)(()=>{_.current={at:r,props:e}});let v=e.slides.find(e=>e.key===r.slide)?.steps[r.step],ee=(e,t)=>{let n=_.current.props.slides.find(t=>t.key===e.slide),r=n?.steps[e.step];if(i(e),!n||r===void 0)return;if(t<0){l(void 0);return}let a=e.step===0?_.current.props.startOf(n.key)??r:n.steps[e.step-1]??r;l({from:a,to:r})};(0,G.useEffect)(()=>{if(!s||e.plays(r.slide))return;let t=setTimeout(()=>{l(void 0)},Math.max(0,(s.to-s.from)*1e3));return()=>{clearTimeout(t)}},[s,r.slide,e]),(0,G.useEffect)(()=>{n.current?.requestFullscreen().catch(()=>void 0);let e=e=>{let{at:t,props:n}=_.current;e.key===`Escape`?(e.preventDefault(),document.fullscreenElement&&document.exitFullscreen().catch(()=>void 0),g(t)):[`ArrowRight`,` `,`PageDown`,`Enter`].includes(e.key)?(e.preventDefault(),ee(Vn(n.slides,t,1,!0),1)):[`ArrowLeft`,`PageUp`,`Backspace`].includes(e.key)?(e.preventDefault(),ee(Vn(n.slides,t,-1,!0),-1)):(e.key===`n`||e.key===`N`)&&o(e=>!e)},t=()=>{document.fullscreenElement||g(_.current.at)};return document.addEventListener(`fullscreenchange`,t),window.addEventListener(`keydown`,e),()=>{document.removeEventListener(`fullscreenchange`,t),window.removeEventListener(`keydown`,e)}},[]);let y=e.slides.filter(e=>!e.hidden),b=y.findIndex(e=>e.key===r.slide),x=y[b+1];return(0,K.jsxs)(`div`,{ref:n,className:c(`fixed inset-0 z-50 flex bg-media`,p?`animate-out fade-out pointer-events-none fill-mode-forwards`:`animate-in fade-in`,u&&`cursor-none`),role:`dialog`,"aria-label":t.presenting,"data-testid":`deck-present`,onPointerMove:()=>{f.current()},onClick:()=>{ee(Vn(e.slides,r,1,!0),1)},children:[(0,K.jsx)(Qt,{item:e.item,version:e.version,revision:e.revision,width:e.width,height:e.height,moment:s?s.from:v,playing:s!==void 0,bare:!0,className:`flex-1 bg-media`}),a?(0,K.jsxs)(`aside`,{className:`bg-background text-foreground flex w-80 shrink-0 flex-col gap-3 overflow-y-auto p-4`,"data-testid":`deck-present-notes`,onClick:e=>{e.stopPropagation()},children:[(0,K.jsx)(`p`,{className:`text-muted-foreground font-mono text-xs`,children:t.slideOf(b+1,y.length)}),(0,K.jsx)(`p`,{className:`text-read whitespace-pre-wrap`,children:e.notesOf(r.slide)??t.noNotes}),x?(0,K.jsxs)(`p`,{className:`text-muted-foreground text-xs`,children:[t.next,`: `,x.title??x.key]}):null]}):null,(0,K.jsx)(`p`,{"data-idle":u,className:`text-on-media/60 pointer-events-none absolute bottom-2 left-1/2 -translate-x-1/2 transition-opacity data-[idle=true]:opacity-0 text-xs`,children:t.presentHelp})]})}function Xn(e,t,n){return Array.from({length:10},(r,i)=>{let a=i%2==0?n:n*.45,o=Math.PI/5*i-Math.PI/2;return`${(e+a*Math.cos(o)).toFixed(2)},${(t+a*Math.sin(o)).toFixed(2)}`}).join(` `)}function Zn(e){return(0,K.jsx)(`svg`,{viewBox:`0 0 20 20`,width:e.size,height:e.size,fill:`none`,stroke:`currentColor`,strokeWidth:1.4,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":!0,children:e.children})}var Qn=Xn(10,10.5,8);function $n(){let e=(0,G.useId)();return(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`clipPath`,{id:e,children:(0,K.jsx)(`rect`,{x:`0`,y:`0`,width:`10`,height:`20`})}),(0,K.jsx)(`polygon`,{points:Qn}),(0,K.jsx)(`polygon`,{points:Qn,fill:`currentColor`,stroke:`none`,clipPath:`url(#${e})`})]})}var er={none:()=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`polygon`,{points:Qn,opacity:.45}),(0,K.jsx)(`line`,{x1:`3.5`,y1:`16.5`,x2:`16.5`,y2:`3.5`})]}),appear:()=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`polygon`,{points:Xn(10,10.5,5.5),fill:`currentColor`}),(0,K.jsx)(`path`,{d:`M10 1.5v1.6M2.6 6.6l1.4.8M17.4 6.6l-1.4.8M4.4 17l1.1-1.1M15.6 17l-1.1-1.1`})]}),fade:()=>(0,K.jsx)(`polygon`,{points:Qn,strokeDasharray:`1.6 1.9`}),wipe:()=>(0,K.jsx)($n,{}),"fly-in":()=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`polygon`,{points:Xn(10,7.5,6),fill:`currentColor`}),(0,K.jsx)(`path`,{d:`M6 15v3M10 15.5v3.5M14 15v3`})]}),zoom:()=>(0,K.jsxs)(K.Fragment,{children:[(0,K.jsx)(`polygon`,{points:Xn(10,10.5,4),fill:`currentColor`}),(0,K.jsx)(`path`,{d:`M2 6V2h4M14 2h4v4M18 14v4h-4M6 18H2v-4`})]})};function tr(e){return(0,K.jsx)(Zn,{size:e.size??20,children:er[e.effect]?.()??(0,K.jsx)(`polygon`,{points:Qn})})}function nr(e){return(0,K.jsxs)(Zn,{size:14,children:[(0,K.jsx)(`path`,{d:`M2 17 7.5 4 13 17M4 12.5h7`,strokeWidth:1.6}),(0,K.jsx)(`path`,{d:e.up?`M14.2 6 16.2 3.6 18.2 6`:`M14.2 3.6 16.2 6 18.2 3.6`,strokeWidth:1.6})]})}var rr=[`appear`,`fade`,`wipe`,`fly-in`,`zoom`],ir=[`on-click`,`with-previous`,`after-previous`],ar=`flex h-14 flex-col items-center justify-center gap-1 rounded-sm text-xs disabled:opacity-40 hover:bg-here aria-pressed:bg-here aria-pressed:ring-1 aria-pressed:ring-rule-strong`;function or(e){let t=Q(),n=e.animations.findIndex(t=>t.shape===e.shape),r=e.animations[n],i=mn(e.animations),o=t=>{e.onChange(e.animations.map((e,r)=>r===n?{...e,...t}:e))},s=t=>{let i=e.shape;i!==void 0&&(t===void 0?e.onChange(e.animations.filter((e,t)=>t!==n)):r?o({effect:t}):e.onChange([...e.animations,{shape:i,effect:t}]))};return(0,K.jsxs)(se,{open:e.open,onOpenChange:e.onOpenChange,children:[(0,K.jsx)(ce,{asChild:!0,children:(0,K.jsxs)(b,{size:`sm`,variant:`ghost`,"data-testid":`deck-animations-open`,"aria-label":t.animations,children:[(0,K.jsx)(Je,{className:`size-3.5`}),(0,K.jsx)(`span`,{className:`@max-[40rem]:hidden`,children:t.animations})]})}),(0,K.jsxs)(M,{align:`end`,className:`w-96 p-2`,"data-testid":`deck-animations`,onInteractOutside:e=>{let t=e.detail.originalEvent.target;t instanceof Element&&t.closest(`[data-testid="slides-editor"], [data-radix-popper-content-wrapper]`)&&e.preventDefault()},children:[(0,K.jsxs)(`div`,{className:`flex items-center justify-between gap-2 pb-1`,children:[(0,K.jsx)(`span`,{className:`min-w-0 truncate text-sm`,"data-testid":`deck-animation-shape`,children:e.shape===void 0?t.animationHint:e.nameOf(e.shape)}),(0,K.jsxs)(b,{size:`sm`,variant:`ghost`,className:`shrink-0`,disabled:e.animations.length===0,"data-testid":`deck-animation-preview`,onClick:e.onPreview,children:[(0,K.jsx)(xe,{className:`size-3.5`}),t.preview]})]}),(0,K.jsxs)(`div`,{className:`grid grid-cols-6 gap-1`,role:`radiogroup`,"aria-label":t.animationEffects,children:[(0,K.jsxs)(`button`,{type:`button`,className:ar,"aria-pressed":e.shape!==void 0&&!r,disabled:e.shape===void 0,"data-testid":`deck-animation-effect-none`,onClick:()=>{s(void 0)},children:[(0,K.jsx)(tr,{effect:`none`}),t.noAnimation]}),rr.map(n=>(0,K.jsxs)(`button`,{type:`button`,className:ar,"aria-pressed":r?.effect===n,disabled:e.shape===void 0,"data-testid":`deck-animation-effect-${n}`,onClick:()=>{s(n)},children:[(0,K.jsx)(tr,{effect:n}),t.animationEffect[n]]},n))]}),r?(0,K.jsxs)(`div`,{className:`flex items-center gap-2 pt-2 text-xs`,children:[(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:t.animationStarts}),(0,K.jsxs)(le,{value:r.start??`on-click`,onValueChange:e=>{o({start:e})},children:[(0,K.jsx)(A,{size:`sm`,className:`min-w-0 flex-1 text-xs`,"data-testid":`deck-animation-start`,children:(0,K.jsx)(ue,{})}),(0,K.jsx)(pe,{children:ir.map(e=>(0,K.jsx)(de,{value:e,className:`text-xs`,"data-testid":`deck-animation-start-${e}`,children:t.animationStart[e]},e))})]}),(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:t.duration}),(0,K.jsx)(He,{type:`number`,min:0,step:.25,"aria-label":t.duration,"data-testid":`deck-animation-duration`,className:`h-7 w-16 text-xs`,value:r.duration??vt[r.effect],onChange:e=>{let t=Number(e.target.value);Number.isFinite(t)&&t>=0&&o({duration:t})}})]}):null,e.animations.length>0?(0,K.jsx)(`ol`,{className:`mt-2 flex flex-col border-t pt-1`,children:e.animations.map((n,r)=>(0,K.jsxs)(`li`,{"data-testid":`deck-animation`,"data-shape":n.shape,className:c(`flex h-7 items-center gap-1 rounded-sm`,n.shape===e.shape&&`bg-here`),children:[(0,K.jsxs)(`button`,{type:`button`,className:`flex min-w-0 flex-1 items-center gap-2 px-1 text-left text-xs`,"data-testid":`deck-animation-pick`,onClick:()=>{e.onPick(n.shape)},children:[(0,K.jsx)(`span`,{className:`text-muted-foreground w-4 shrink-0 text-right tabular-nums`,children:i[r]}),(0,K.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.nameOf(n.shape)}),(0,K.jsx)(`span`,{className:`text-muted-foreground shrink-0`,children:t.animationEffect[n.effect]})]}),(0,K.jsx)(b,{size:`icon`,variant:`ghost`,className:`size-6 shrink-0`,"aria-label":t.animationEarlier,title:t.animationEarlier,"data-testid":`deck-animation-earlier`,disabled:r===0,onClick:()=>{e.onChange(_n(e.animations,r,-1))},children:(0,K.jsx)(H,{className:`size-3.5`})}),(0,K.jsx)(b,{size:`icon`,variant:`ghost`,className:`size-6 shrink-0`,"aria-label":t.animationLater,title:t.animationLater,"data-testid":`deck-animation-later`,disabled:r===e.animations.length-1,onClick:()=>{e.onChange(_n(e.animations,r,1))},children:(0,K.jsx)(V,{className:`size-3.5`})}),(0,K.jsx)(b,{size:`icon`,variant:`ghost`,className:`size-6 shrink-0`,"aria-label":t.animationRemove,title:t.animationRemove,"data-testid":`deck-animation-remove`,onClick:()=>{e.onChange(e.animations.filter((e,t)=>t!==r))},children:(0,K.jsx)(a,{className:`size-3.5`})})]},`${String(r)}:${n.shape}:${n.effect}`))}):null]})]})}var sr=6,cr=320,lr=e=>`slides-editor.pictures:${e}`;function ur(e){try{let t=localStorage.getItem(lr(e));return t===null?{}:JSON.parse(t)}catch{return{}}}async function dr(e){try{let t=new Image;t.src=e,await t.decode();let n=document.createElement(`canvas`);return n.width=cr,n.height=Math.round(cr*t.naturalHeight/t.naturalWidth),n.getContext(`2d`)?.drawImage(t,0,0,n.width,n.height),n.toDataURL(`image/webp`,.8)}catch{return}}function fr(e,t,n,r,i,a){let o=te(),[s,c]=(0,G.useState)(()=>ur(e)),[l,u]=(0,G.useState)(e);l!==e&&(u(e),c(ur(e)));let d=(0,G.useRef)(new Map),f=i.map(e=>`${e.key}@${String(e.still)}`).join(`,`);return(0,G.useEffect)(()=>{let r=new AbortController,s=()=>r.signal.aborted;return(async()=>{let r=Math.max(0,i.findIndex(e=>e.key===a)),l=i.map((e,t)=>({slide:e,far:Math.abs(t-r)})).sort((e,t)=>e.far-t.far).map(e=>e.slide),u={};for(let e=0;e<l.length;e+=sr){if(s())return;let r=l.slice(e,e+sr);try{let{stills:e}=await p(o,`video/stills`,{item:t,version:n,moments:r.map(e=>e.still)});if(s())return;let i=Object.fromEntries(r.flatMap((t,n)=>{let r=e[n]?.image;return r?[[t.key,`data:${r.mime};base64,${r.data}`]]:[]}));Object.assign(u,i),c(e=>({...e,...i}))}catch{}}let f={};for(let[e,t]of Object.entries(u)){let n=d.current.get(e),r=n?.of===t?n.picture:await dr(t);r!==void 0&&(d.current.set(e,{of:t,picture:r}),f[e]=r)}try{localStorage.setItem(lr(e),JSON.stringify(f))}catch{}})(),()=>{r.abort()}},[o,e,t,n,r,f]),s}function pr(e){let t=Q(),n=fr(`${e.project}|${e.item}|${e.version}`,e.item,e.version,e.revision,e.drawn,e.shown),r=(0,G.useRef)(void 0),[i,a]=(0,G.useState)(),[o,s]=(0,G.useState)(),[l,u]=(0,G.useState)(),d=(e,t)=>{let n=t.currentTarget.getBoundingClientRect();return{key:e,after:t.clientY>n.top+n.height/2}},f=(0,G.useCallback)(e=>{e?.scrollIntoView({block:`nearest`})},[]),p=t=>{let n=r.current;if(r.current=void 0,n!==void 0&&t!==void 0&&n!==t.key){let r=e.slides.findIndex(e=>e.key===t.key),i=t.after?t.key:e.slides[r-1]?.key??null;i!==n&&e.onMove?.(n,i)}a(void 0),u(void 0)};return(0,K.jsx)(`nav`,{className:`flex h-full w-44 shrink-0 flex-col border-r @max-[36rem]:w-28`,"aria-label":t.slides,"data-testid":`deck-rail`,children:(0,K.jsx)(`ol`,{className:`min-h-0 flex-1 space-y-2 overflow-y-auto p-2`,children:e.slides.map((m,h)=>{let g=n[m.key];return(0,K.jsxs)(`li`,{"data-testid":`deck-page`,"data-key":m.key,className:c(`group/slide relative flex gap-1.5`,i===m.key&&`opacity-40`),draggable:e.onMove!==void 0,onContextMenu:t=>{e.onAction&&(t.preventDefault(),s(m.key))},onDragStart:e=>{e.dataTransfer.effectAllowed=`move`,r.current=m.key,a(m.key)},onDragOver:e=>{r.current!==void 0&&(e.preventDefault(),u(d(m.key,e)))},onDrop:e=>{e.preventDefault(),p(d(m.key,e))},onDragEnd:()=>{p()},children:[l?.key===m.key&&i!==m.key?(0,K.jsx)(`span`,{className:c(`bg-pencil absolute inset-x-0 h-0.5`,l.after?`-bottom-1`:`-top-1`),"data-testid":`deck-drop`}):null,(0,K.jsx)(`span`,{className:`text-muted-foreground w-4 pt-1 text-right font-mono text-micro`,children:String(h+1)}),(0,K.jsxs)(`button`,{type:`button`,ref:m.key===e.shown?f:void 0,className:c(`bg-muted/40 relative min-w-0 flex-1 overflow-hidden rounded-sm border transition-colors`,m.key===e.shown?`border-pencil ring-pencil ring-1`:`hover:border-rule-strong`,m.hidden&&`opacity-50`),style:{aspectRatio:String(e.aspect)},onClick:()=>{e.onShow(m.key)},"aria-label":m.title??m.key,"aria-current":m.key===e.shown?`page`:void 0,children:[g?(0,K.jsx)(`img`,{src:g,alt:``,className:`animate-in fade-in size-full object-cover`,draggable:!1}):null,m.hidden?(0,K.jsx)(U,{className:`text-muted-foreground absolute right-1 bottom-1 size-3`,"aria-label":t.skipped}):null,e.marked?.has(m.key)?(0,K.jsx)(`span`,{className:`bg-agent absolute top-1 right-1 size-1.5 rounded-full`,"data-testid":`deck-page-marked`}):null]}),e.onAction?(0,K.jsxs)(E,{open:o===m.key,onOpenChange:e=>{s(e?m.key:void 0)},children:[(0,K.jsx)(S,{asChild:!0,children:(0,K.jsx)(`button`,{type:`button`,className:`bg-sheet/90 text-muted-foreground hover:text-foreground absolute top-1 right-1 rounded-sm opacity-0 transition-opacity group-hover/slide:opacity-100 focus:opacity-100 data-[state=open]:opacity-100`,"aria-label":t.slideMenu(h+1),"data-testid":`deck-page-menu`,children:(0,K.jsx)(B,{className:`size-3.5`})})}),(0,K.jsxs)(v,{align:`start`,className:`text-xs`,children:[(0,K.jsxs)(w,{"data-testid":`deck-page-new`,onSelect:()=>{e.onAction?.(m.key,`new`)},children:[(0,K.jsx)(Ve,{className:`size-3.5`}),t.newSlide]}),e.made?.(m.key)?null:(0,K.jsxs)(w,{"data-testid":`deck-page-duplicate`,onSelect:()=>{e.onAction?.(m.key,`duplicate`)},children:[(0,K.jsx)(L,{className:`size-3.5`}),t.duplicate]}),(0,K.jsxs)(w,{"data-testid":`deck-page-hide`,onSelect:()=>{e.onAction?.(m.key,`hide`)},children:[m.hidden?(0,K.jsx)(W,{className:`size-3.5`}):(0,K.jsx)(U,{className:`size-3.5`}),m.hidden?t.show:t.hide]}),e.made?.(m.key)?null:(0,K.jsxs)(w,{variant:`destructive`,"data-testid":`deck-page-remove`,onSelect:()=>{e.onAction?.(m.key,`remove`)},children:[(0,K.jsx)(z,{className:`size-3.5`}),t.remove]}),(0,K.jsx)(j,{})]})]}):null]},m.key)})})})}var mr=o(`inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium whitespace-nowrap transition-[color,box-shadow] outline-none hover:bg-muted hover:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,{variants:{variant:{default:`bg-transparent`,outline:`border border-input bg-transparent shadow-xs hover:bg-accent hover:text-accent-foreground`},size:{default:`h-9 min-w-9 px-2`,sm:`h-8 min-w-8 px-1.5`,lg:`h-10 min-w-10 px-2.5`}},defaultVariants:{variant:`default`,size:`default`}});function hr({className:e,variant:t,size:n,...r}){return(0,K.jsx)($e,{"data-slot":`toggle`,className:c(mr({variant:t,size:n,className:e})),...r})}var gr=G.createContext({size:`default`,variant:`default`,spacing:0});function _r({className:e,variant:t,size:n,spacing:r=0,children:i,...a}){return(0,K.jsx)(at,{"data-slot":`toggle-group`,"data-variant":t,"data-size":n,"data-spacing":r,style:{"--gap":r},className:c(`group/toggle-group flex w-fit items-center gap-[--spacing(var(--gap))] rounded-md data-[spacing=default]:data-[variant=outline]:shadow-xs`,e),...a,children:(0,K.jsx)(gr.Provider,{value:{variant:t,size:n,spacing:r},children:i})})}function vr({className:e,children:t,variant:n,size:r,...i}){let a=G.useContext(gr);return(0,K.jsx)(mt,{"data-slot":`toggle-group-item`,"data-variant":a.variant||n,"data-size":a.size||r,"data-spacing":a.spacing,className:c(mr({variant:a.variant||n,size:a.size||r}),`w-auto min-w-0 shrink-0 px-3 focus:z-10 focus-visible:z-10`,`data-[spacing=0]:rounded-none data-[spacing=0]:shadow-none data-[spacing=0]:first:rounded-l-md data-[spacing=0]:last:rounded-r-md data-[spacing=0]:data-[variant=outline]:border-l-0 data-[spacing=0]:data-[variant=outline]:first:border-l`,e),...i,children:t})}var yr=[8,9,10,10.5,11,12,14,16,18,20,24,28,32,36,40,44,48,54,60,66,72,80,88,96];function br(e,t){return(t>0?yr.find(t=>t>e):yr.findLast(t=>t<e))??Math.max(1,e+t*8)}var xr=[`lt1`,`dk1`,`lt2`,`dk2`,`accent1`,`accent2`,`accent3`,`accent4`,`accent5`,`accent6`],Sr=[`frame`,`text`,`fill`,`line`,`z`,`crop`],Cr={l:Re,ctr:Le,r:ze,just:Ie};function wr(e,t){if(e!=null)return typeof e==`string`?t.colors[e]:e.rgb}function Tr(e){let t=e.icon;return(0,K.jsxs)(se,{children:[(0,K.jsx)(ce,{asChild:!0,children:(0,K.jsxs)(b,{size:`icon`,variant:`ghost`,className:`relative size-7 shrink-0`,"aria-label":e.label,title:e.label,"data-testid":`${e.testid}-open`,children:[(0,K.jsx)(t,{className:`size-3.5`}),(0,K.jsx)(`span`,{className:`border-rule absolute inset-x-1.5 bottom-1 h-0.5 rounded-full border-0`,style:{background:e.shown}})]})}),(0,K.jsx)(M,{align:`start`,className:`w-auto p-2`,children:(0,K.jsx)(`div`,{className:`grid grid-cols-5 gap-1`,role:`radiogroup`,"aria-label":e.label,"data-testid":e.testid,children:xr.map(t=>(0,K.jsx)(`button`,{type:`button`,role:`radio`,"aria-checked":e.value===t,"aria-label":t,"data-color":t,className:c(`border-rule size-6 rounded-sm border`,e.value===t&&`ring-pencil ring-2 ring-offset-1`),style:{background:e.theme.colors[t]},onClick:()=>{e.onPick(t)}},t))})})]})}var Er=[{how:`front`,icon:Ue},{how:`forward`,icon:H},{how:`backward`,icon:V},{how:`back`,icon:Ke}];function Dr(e){let t=Q();return(0,K.jsxs)(`div`,{className:`relative shrink-0`,children:[(0,K.jsx)(He,{type:`number`,min:1,max:4e3,step:1,"aria-label":t.size,title:t.size,"data-testid":`deck-text-size`,className:`h-7 w-16 pr-6 text-xs [appearance:textfield] [&::-webkit-inner-spin-button]:appearance-none`,value:e.size??``,onChange:t=>{let n=Number(t.target.value);Number.isFinite(n)&&n>0&&e.onSize(n,!0)}}),(0,K.jsxs)(E,{children:[(0,K.jsx)(S,{asChild:!0,children:(0,K.jsx)(`button`,{type:`button`,"aria-label":t.size,"data-testid":`deck-text-size-open`,className:`text-muted-foreground hover:text-foreground absolute inset-y-0 right-0 flex w-6 items-center justify-center`,children:(0,K.jsx)(O,{className:`size-3`})})}),(0,K.jsx)(v,{align:`start`,className:`max-h-72 min-w-16 overflow-y-auto text-xs`,children:yr.map(t=>(0,K.jsx)(w,{"data-testid":`deck-text-size-item`,"data-size":t,onSelect:()=>{e.onSize(t,!1)},children:t},t))})]})]})}function Or(e){let t=Q(),n=e.shape.shape,r=n.text,i=r?.style.levels[0],a=e.entry?.text?.size??(i?Math.round(i.font.size/12700*10)/10:void 0),o=e.words?.bold??e.entry?.text?.bold??i?.font.bold===!0,s=e.words?.italic??e.entry?.text?.italic??i?.font.italic===!0,c=e.entry?.text?.align??r?.paragraphs[0]?.alignment??i?.alignment??`l`,l=(n.kind===`autoshape`||n.kind===`textbox`||n.kind===`placeholder`)&&n.geometry!==`line`,u=n.placeholder!==void 0&&Sr.some(t=>e.entry?.[t]!==void 0),d=e.entry?.text?.color??i?.font.rgb??i?.font.color,f=(t,n)=>{e.onSet({"text.size":t},n?`size:${e.shape.key}`:void 0)},p={"data-keeps-typing":``,onPointerDownCapture:e.onKeepTyping};return(0,K.jsxs)(fe,{testid:`deck-inspector`,className:`animate-in fade-in`,role:`toolbar`,"aria-label":e.shape.name,children:[r?(0,K.jsxs)(K.Fragment,{children:[(0,K.jsxs)(he,{children:[(0,K.jsx)(Dr,{size:a,onSize:f}),(0,K.jsx)(b,{size:`icon`,variant:`ghost`,className:`size-7 shrink-0`,"aria-label":t.growFont,title:t.growFont,"data-testid":`deck-text-grow`,onClick:()=>{a!==void 0&&f(br(a,1),!1)},children:(0,K.jsx)(nr,{up:!0})}),(0,K.jsx)(b,{size:`icon`,variant:`ghost`,className:`size-7 shrink-0`,"aria-label":t.shrinkFont,title:t.shrinkFont,"data-testid":`deck-text-shrink`,onClick:()=>{a!==void 0&&f(br(a,-1),!1)},children:(0,K.jsx)(nr,{up:!1})})]}),(0,K.jsxs)(he,{children:[(0,K.jsx)(hr,{size:`sm`,className:`size-7 min-w-7 shrink-0 p-0`,...p,"aria-label":t.bold,title:t.bold,"data-testid":`deck-text-bold`,pressed:o,onPressedChange:t=>{e.onSet({"text.bold":t})},children:(0,K.jsx)(Ae,{className:`size-3.5`})}),(0,K.jsx)(hr,{size:`sm`,className:`size-7 min-w-7 shrink-0 p-0`,...p,"aria-label":t.italic,title:t.italic,"data-testid":`deck-text-italic`,pressed:s,onPressedChange:t=>{e.onSet({"text.italic":t})},children:(0,K.jsx)(I,{className:`size-3.5`})}),(0,K.jsx)(`span`,{className:`contents`,...p,children:(0,K.jsx)(Tr,{label:t.textColor,icon:F,theme:e.theme,shown:wr(d,e.theme),value:e.entry?.text?.color,testid:`deck-text-color`,onPick:t=>{e.onSet({"text.color":t})}})})]}),(0,K.jsx)(he,{children:(0,K.jsx)(_r,{type:`single`,size:`sm`,"aria-label":t.alignment,"data-testid":`deck-text-align`,className:`shrink-0 gap-0.5`,value:c,onValueChange:t=>{t!==``&&e.onSet({"text.align":t})},children:Object.keys(Cr).map(e=>{let n=Cr[e];return(0,K.jsx)(vr,{value:e,className:`size-7 min-w-7 p-0`,"aria-label":t.align[e],title:t.align[e],"data-testid":`deck-text-align-${e}`,children:(0,K.jsx)(n,{className:`size-3.5`})},e)})})})]}):null,(0,K.jsxs)(he,{children:[l?(0,K.jsx)(Tr,{label:t.fill,icon:je,theme:e.theme,shown:e.entry?.fill===void 0?wr(n.fill,e.theme):wr(e.entry.fill,e.theme),value:e.entry?.fill,testid:`deck-fill`,onPick:t=>{e.onSet({fill:t})}}):null,(0,K.jsxs)(E,{children:[(0,K.jsx)(S,{asChild:!0,children:(0,K.jsxs)(b,{size:`sm`,variant:`ghost`,className:`shrink-0`,"data-testid":`deck-arrange`,children:[(0,K.jsx)(Ue,{className:`size-3.5`}),t.arrange,(0,K.jsx)(O,{className:`size-3`})]})}),(0,K.jsx)(v,{align:`start`,className:`text-xs`,children:Er.map(({how:n,icon:r})=>(0,K.jsxs)(w,{"data-testid":`deck-arrange-${n}`,onSelect:()=>{e.onArrange(n)},children:[(0,K.jsx)(r,{className:`size-3.5`}),t.arrangeTo[n]]},n))})]}),u?(0,K.jsx)(b,{size:`sm`,variant:`ghost`,className:`shrink-0`,"data-testid":`deck-reset`,onClick:e.onReset,children:t.resetLayout}):null]})]})}function kr(e){let t=Q();return(0,K.jsxs)(E,{open:!0,onOpenChange:t=>{t||e.onClose()},children:[(0,K.jsx)(S,{asChild:!0,children:(0,K.jsx)(`span`,{className:`fixed size-0`,style:{left:e.at.x,top:e.at.y},"aria-hidden":!0})}),(0,K.jsxs)(v,{align:`start`,className:`text-xs`,"data-testid":`deck-shape-menu`,children:[(0,K.jsx)(w,{"data-testid":`deck-shape-cut`,disabled:e.fixed!==void 0,onSelect:()=>{e.onAction(`cut`)},children:t.cut}),(0,K.jsx)(w,{"data-testid":`deck-shape-copy`,onSelect:()=>{e.onAction(`copy`)},children:t.copy}),(0,K.jsx)(w,{"data-testid":`deck-shape-paste`,disabled:!e.canPaste,onSelect:()=>{e.onAction(`paste`)},children:t.paste}),(0,K.jsx)(w,{"data-testid":`deck-shape-duplicate`,onSelect:()=>{e.onAction(`duplicate`)},children:t.duplicate}),(0,K.jsx)(ee,{}),(0,K.jsxs)(y,{children:[(0,K.jsxs)(T,{"data-testid":`deck-shape-arrange`,children:[(0,K.jsx)(Ue,{className:`size-3.5`}),t.arrange]}),(0,K.jsx)(re,{className:`text-xs`,children:Er.map(({how:n,icon:r})=>(0,K.jsxs)(w,{onSelect:()=>{e.onArrange(n)},children:[(0,K.jsx)(r,{className:`size-3.5`}),t.arrangeTo[n]]},n))})]}),(0,K.jsx)(ee,{}),(0,K.jsx)(`span`,{title:e.fixed,children:(0,K.jsx)(w,{"data-testid":`deck-shape-delete`,disabled:e.fixed!==void 0,onSelect:()=>{e.onAction(`delete`)},children:t.remove})}),(0,K.jsx)(j,{})]})]})}var Ar={textbox:{w:320,h:48},shape:{w:200,h:120},line:{w:240,h:0},movie:{w:480,h:270}},jr={textbox:`text-box`,picture:`picture`,movie:`video`,shape:`shape`};function Mr(e){let t=te(),[n,r]=(0,G.useState)(),i=e===void 0?``:`${e.slides}\u0000${e.script}`;return(0,G.useEffect)(()=>{if(e===void 0)return;let n=!0,i;return Ln.open(t,e).then(e=>{i=e,n?r(e):e.close()},()=>void 0),()=>{n=!1,r(void 0),i?.close()}},[t,i]),n}function Nr(e,t){let[n,r]=(0,G.useState)();return t!==void 0&&(n?.item!==e||n?.value!==t)&&r({item:e,value:t}),t??(n?.item===e?n?.value:void 0)}var $=1/0,Pr=1100,Fr=12*X,Ir=()=>()=>void 0,Lr=()=>void 0;function Rr(e){return new Promise(t=>{let n=URL.createObjectURL(e),r=new window.Image;r.onload=()=>{URL.revokeObjectURL(n),t(r.naturalHeight>0?r.naturalWidth/r.naturalHeight:4/3)},r.onerror=()=>{URL.revokeObjectURL(n),t(4/3)},r.src=n})}var zr=async e=>{let t=new Uint8Array(await e.arrayBuffer()),n=``;for(let e=0;e<t.length;e+=32768)n+=String.fromCharCode(...t.subarray(e,e+32768));return btoa(n)};function Br(){let e=Q(),t=te(),n=ie(),r=n?.item.dir,a=i[f(n?.locale)],o=De(),s=Ce(`video/versions`,r===void 0?void 0:{item:r},[o]),c=Nr(r,s.data),l=c===void 0?s.error:void 0,u=Nr(r,Ce(`slides/deck`,r===void 0?void 0:{item:r},[o]).data),[d,m]=ye(`slides-editor.version:${r??``}`,``),h=Te(),_=c?ve(c,d):void 0,[v,ee]=(0,G.useState)(),[y,b]=(0,G.useState)(),[x,S]=(0,G.useState)(!1),[C,w]=(0,G.useState)([]),[T,ne]=(0,G.useState)(),[re,E]=(0,G.useState)(),[ae,oe]=(0,G.useState)(!1),[D,se]=(0,G.useState)();(0,G.useEffect)(()=>{if(!D)return;let e=setTimeout(()=>{se(void 0)},Math.max(0,(D.to-D.from)*1e3));return()=>{clearTimeout(e)}},[D]);let[O,ce]=(0,G.useState)(),A=(0,G.useRef)(void 0);(0,G.useEffect)(()=>{if(T===void 0)return;let e=e=>{e.target instanceof Element&&e.target.closest(`[data-keeps-typing],[data-slot=popover-content]`)||A.current?.({type:`deck-stop`})};return document.addEventListener(`pointerdown`,e,!0),()=>{document.removeEventListener(`pointerdown`,e,!0)}},[T]);let[j,fe]=(0,G.useState)(),[M,he]=(0,G.useState)(),N=(0,G.useRef)([]),[Ee,P]=(0,G.useState)(!1),[ke,Ae]=(0,G.useState)(),F=(0,G.useRef)(null),[je,Me]=(0,G.useState)(!0);(0,G.useEffect)(()=>{let e=F.current;if(!e)return;let t=new ResizeObserver(()=>{Me(e.clientWidth>=Pr)});return t.observe(e),()=>{t.disconnect()}});let Ne=x;(0,G.useEffect)(()=>{if(Ne)return;let e=e=>{if(e.target!==document.body)return;F.current?.focus({preventScroll:!0});let t=new KeyboardEvent(`keydown`,{key:e.key,code:e.code,metaKey:e.metaKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,altKey:e.altKey,bubbles:!0,cancelable:!0});F.current?.dispatchEvent(t),t.defaultPrevented&&e.preventDefault()};return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[Ne]);let Pe=(0,G.useCallback)(e=>{A.current=e},[]),I=(0,G.useMemo)(()=>Rn(v?.timeline.parts??[]),[v]),L=en(v?.deck),Ie=_?.lang??Object.keys(u?.scripts??{})[0]??f(n?.locale),R=Mr(u&&r!==void 0?{slides:u.file,script:u.scripts[Ie]??`${r}/script.${Ie}.yaml`}:void 0),z=(0,G.useSyncExternalStore)(R?.subscribe??Ir,R?.get??Lr),Le=z?.conflicts,Re=Le&&Le.length>0&&Le!==ke?e.bothChanged(n?.agent?.name??``):void 0,[ze,Be]=(0,G.useState)(),B=[y?.slide,ze].find(e=>I.some(t=>t.key===e))??I[0]?.key;B!==ze&&Be(B);let Ve=I.find(e=>e.key===B)?.steps.length??1,He=Math.min(y!==void 0&&y.slide===B?y.step:$,Ve-1),V=L?.slides.find(e=>e.id===B),H=(0,G.useMemo)(()=>V?nn(V):[],[V]),Ue=e=>{ee(e);let t=en(e.deck)?.slides.some(e=>e.shapes.some(t=>`${e.id}/${t.name}`===j?.key));j&&t&&(w([j.key]),j.type&&(ne(j.key),A.current?.({type:`deck-edit`,shape:j.key})),fe(void 0))},U=(0,G.useCallback)((e,t)=>{R?.edit(e,t)},[R]),W=z?.slides??{slides:[]},We=(0,G.useMemo)(()=>zn(I,W.slides),[I,W.slides]),Ge=We.some(e=>e.key===y?.slide)?y?.slide:B,Ke=Ge!==B,qe=W.slides.find(e=>e.id===V?.id)?.animations??[],Je=e=>z?.script.slides.find(t=>t.id===e),Ye=()=>F.current?.querySelector(`[data-testid="deck-picture"]`)?.getBoundingClientRect();g({freeze:()=>Promise.resolve({key:`${r??``}@${_?.key??``}@${B??``}@${String(o)}`,what:`The deck ${r??``}, version ${_?.key??``}, slide ${String(I.findIndex(e=>e.key===B)+1)} of ${String(I.length)} (${B??``})`,...u?{source:{path:u.file}}:{}}),pictures:async()=>{let e=Ye(),n=Bn(I,B,He);if(!e||!_||r===void 0||n===void 0)return[];let i=await p(t,`video/still`,{item:r,version:_.key,t:n}).catch(()=>void 0);return i?[{rect:{x:e.x,y:e.y,width:e.width,height:e.height},mime:i.image.mime,data:i.image.data}]:[]},locate:e=>{let t=Ye();if(!t||!L)return Promise.resolve([]);let n=t.width/L.width,r=t.height/L.height;return Promise.resolve(H.filter(i=>{let a=Xe(i);return _e(e,{x:t.x+a.left*n,y:t.y+a.top*r,width:a.width*n,height:a.height*r})}).map(e=>{let t=hn(e.shape);return{name:`the shape ${JSON.stringify(e.name)} of slide ${B??``}`,...u?{source:{path:u.file}}:{},...t===``?{}:{text:t}}}))}});let Xe=e=>{let t=M?.[e.key];if(t)return t;let n=on(W,e.address)?.frame;return n?an(n):e.shape.frame},Ze=e=>{let t=L?.slides.find(t=>t.id===e),n=t?tn(t):void 0;return n?n.block:e},Qe=e=>{if(e.type===`deck-selection`){E({words:e.words,bold:e.bold,italic:e.italic});return}let t=H.find(t=>t.key===e.shape);t?.typed&&V&&U({script:[{op:`text`,slide:V.id,shape:t.name,words:e.cell?vn(Je(V.id)?.text?.[t.name],e.cell,yn(e.paragraphs)):yn(e.paragraphs)}]},`text:${t.key}`),e.type===`deck-text-done`&&(ne(t=>t===e.shape?void 0:t),E(void 0),F.current?.focus({preventScroll:!0}))},$e=e=>{if(!V)return;let t=[],n=[],r=new Set;for(let i of e){let e=H.find(e=>e.key===i);e&&(e.own&&t.push({op:`unplace`,slide:e.address.slide,shape:e.address.shape}),e.own&&r.add(e.name),e.typed&&n.push({op:`text`,slide:V.id,shape:e.name,words:void 0}))}qe.some(e=>r.has(e.shape))&&t.push({op:`animations`,slide:V.id,animations:qe.filter(e=>!r.has(e.shape))}),U({slides:t,script:n}),w([])},et=(e,t)=>{for(let n of C){let r=H.find(e=>e.key===n);if(!r)continue;let i=Xe(r),a={...i,left:i.left+e*X,top:i.top+t*X};A.current?.({type:`deck-frame`,shape:n,frame:a}),U({slides:[{op:`shape`,slide:r.address.slide,shape:r.address.shape,set:{frame:rn(a)}}]},`nudge:${n}`)}},q=()=>H.flatMap(e=>{let t=on(W,e.address);if(!e.own||!t||!C.includes(e.key))return[];let n=Je(e.address.slide)?.text?.[e.name];return[{name:e.name,set:t,frame:Xe(e),...n===void 0?{}:{words:n}}]}),J=e=>{if(!V||e.length===0)return;let t=V.shapes.map(e=>e.name),n=[],r=[],i=[];for(let a of e){let e=Dt(t,a.name.replace(/-\d+$/u,``));t.push(e),n.push({op:`shape`,slide:V.id,shape:e,set:{...a.set,frame:rn({...a.frame,left:a.frame.left+Fr,top:a.frame.top+Fr})}}),a.words!==void 0&&r.push({op:`text`,slide:V.id,shape:e,words:a.words}),i.push(`${V.id}/${e}`)}U({slides:n,...r.length>0?{script:r}:{}});let[a]=i;i.length===1&&a!==void 0?fe({key:a,type:!1}):w(i)},tt=e=>{let t=e.target instanceof HTMLTextAreaElement&&e.target.matches(`[data-sink]`);if(T!==void 0&&e.key===`Escape`){A.current?.({type:`deck-stop`});return}if(!F.current?.contains(e.target)||T!==void 0||e.nativeEvent.isComposing||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement&&!t)return;if((e.metaKey||e.ctrlKey)&&(e.key===`z`||e.key===`Z`||e.key===`y`)){e.key===`y`||e.shiftKey?R?.redoStep():R?.undoStep(),e.preventDefault();return}let n=e.metaKey||e.ctrlKey;if(n&&e.key===`d`){C.length>0?J(q()):B!==void 0&&Z&&rt(B,`duplicate`),e.preventDefault();return}if(n&&(e.key===`c`||e.key===`x`)&&C.length>0){N.current=q(),P(N.current.length>0),e.key===`x`&&N.current.length>0&&$e(C),e.preventDefault();return}if(n&&e.key===`v`&&N.current.length>0){J(N.current),e.preventDefault();return}if(n&&e.key===`a`){w(H.map(e=>e.key)),e.preventDefault();return}if(e.key===`Tab`&&H.length>0&&(t||e.target===F.current)){let t=H.findIndex(e=>e.key===C[0]),n=H.length,r=H[(t+(e.shiftKey?n-1:1)+n)%n];r&&w([r.key]),e.preventDefault();return}if(C.length===0){let t=e.key===`ArrowDown`||e.key===`PageDown`?1:e.key===`ArrowUp`||e.key===`PageUp`?-1:0,n=I[I.findIndex(e=>e.key===B)+t];t!==0&&n&&(b({slide:n.key,step:$}),e.preventDefault());return}let r=e.shiftKey?10:1;if(e.key===`Delete`||e.key===`Backspace`)$e(C);else if(e.key===`Escape`)w([]);else if(e.key===`ArrowLeft`)et(-r,0);else if(e.key===`ArrowRight`)et(r,0);else if(e.key===`ArrowUp`)et(0,-r);else if(e.key===`ArrowDown`)et(0,r);else if(e.key===`Enter`&&C.length===1){let e=H.find(e=>e.key===C[0]);e?.typed&&(ne(e.key),A.current?.({type:`deck-edit`,shape:e.key}))}else return;e.preventDefault()},nt=W.slides.map(e=>e.id),rt=(e,t)=>{let n=Ze(e),r=W.slides.find(e=>e.id===n);if(r){if(t===`new`){let e=r.layout??u?.layouts[0];if(e===void 0)return;let t=Dt(nt,`slide`);U({slides:[{op:`add`,slide:{id:t,layout:e},after:n}]}),b({slide:t,step:$})}else if(t===`duplicate`){let e=Dt(nt,n),t=Je(n);U({slides:[{op:`duplicate`,slide:n,id:e}],script:[...Object.entries(t?.text??{}).map(([t,n])=>({op:`text`,slide:e,shape:t,words:n})),...t?.notes===void 0?[]:[{op:`notes`,slide:e,notes:t.notes}]]}),b({slide:e,step:$})}else if(t===`hide`){let t=L?.slides.find(t=>t.id===e),i=t?tn(t):void 0;if(i){let e=Array.isArray(r.hidden)?r.hidden:[],t=e.includes(i.slide)?e.filter(e=>e!==i.slide):[...e,i.slide];U({slides:[{op:`hidden`,slide:n,hidden:t}]})}else U({slides:[{op:`hidden`,slide:n,hidden:r.hidden!==!0}]})}else if(U({slides:[{op:`remove`,slide:n}],script:[{op:`remove`,slide:n}]}),w([]),e===Ge){let t=We.findIndex(t=>t.key===e),n=We[t+1]??We[t-1];n&&b({slide:n.key,step:$})}}},it=async e=>{if(!V||!L||r===void 0||tn(V))return;let n=Dt(V.shapes.map(e=>e.name),e.kind===`shape`?jr.shape:jr[e.kind]),i=L.width/X,a=L.height/X,o=(e,t)=>({x:Math.round((i-e)/2*10)/10,y:Math.round((a-t)/2*10)/10,w:e,h:t}),s;if(e.kind===`textbox`)s={textbox:!0,frame:o(Ar.textbox.w,Ar.textbox.h)};else if(e.kind===`shape`){let t=e.geometry===`line`?Ar.line:Ar.shape;s={geometry:e.geometry,frame:o(t.w,t.h)}}else{let{path:n}=await t[`files/upload`]({dir:`${r}/media`,name:e.file.name,data:await zr(e.file)}),c=`./${n.slice(r.length+1)}`;if(e.kind===`picture`){let t=await Rr(e.file),n=Math.min(i*.5,a*.6*t);s={picture:c,frame:o(Math.round(n),Math.round(n/t))}}else s={movie:c,frame:o(Ar.movie.w,Ar.movie.h)}}U({slides:[{op:`shape`,slide:V.id,shape:n,set:s}]}),fe({key:`${V.id}/${n}`,type:e.kind===`textbox`})},at=z?.changes??[],ot=new Set,st=new Set;for(let e of at){let t=bn(e);for(let e of I)(e.key===t||e.key.startsWith(`${t}/`))&&ot.add(e.key);let n=xn(e);n!==void 0&&st.add(`${t}/${n}`)}let ct=e=>{let t=bn(e),n=I.find(e=>e.key===t||e.key.startsWith(`${t}/`));n&&b({slide:n.key,step:$})};if(r===void 0||!c&&!l)return(0,K.jsx)(`div`,{className:`flex h-full items-center justify-center`,children:(0,K.jsx)(be,{label:e.loading})});if(!c||!_||c.kind!==`slides`)return(0,K.jsx)(Oe,{title:e.noDeck,className:`h-full justify-center`,children:l?.message});let lt=Bn(I,B,He),ut=()=>{let e=v?.timeline.parts.find(e=>e.key===B)?.start,t=I.find(e=>e.key===B)?.steps.at(-1);e!==void 0&&t!==void 0&&se({from:e,to:t})},dt=e=>{if(!Y)return;let t=e=>on(W,e.address)?.z??0;U({slides:[{op:`shape`,slide:Y.address.slide,shape:Y.address.shape,set:{z:gn(t(Y),H.filter(e=>e.key!==Y.key).map(t),e)}}]})},ft=e=>{(e===`copy`||e===`cut`)&&(N.current=q(),P(N.current.length>0)),(e===`cut`||e===`delete`)&&$e(C),e===`paste`&&J(N.current),e===`duplicate`&&J(q())},pt=V&&!tn(V)?Je(V.id):void 0,mt=typeof pt?.notes==`string`?pt.notes:(v?.text??[]).find(e=>e.key===B)?.notes,ht=e=>e.lang===void 0?e.key:Se(e.lang,a),Y=C.length===1?H.find(e=>e.key===C[0]):void 0,Z=R!==void 0&&z?.problem===void 0,gt=(0,K.jsx)(Jt,{deck:L,canUndo:z?.canUndo??!1,canRedo:z?.canRedo??!1,onUndo:()=>{R?.undoStep()},onRedo:()=>{R?.redoStep()},layouts:u?.layouts??[],layout:V&&!tn(V)?V.layout:void 0,disabled:!Z,onNew:e=>{let t=Dt(nt,`slide`);U({slides:[{op:`add`,slide:{id:t,layout:e},...B===void 0?{}:{after:Ze(B)}}]}),b({slide:t,step:$})},onLayout:e=>{V&&U({slides:[{op:`layout`,slide:V.id,layout:e}]})},onInsert:e=>{it(e)}}),_t=Y&&L&&Z?(0,K.jsx)(Or,{shape:Y,entry:on(W,Y.address),theme:L.theme,words:re,onKeepTyping:()=>{T!==void 0&&A.current?.({type:`deck-hold`})},onSet:(e,t)=>{let n=e[`text.color`];T!==void 0&&e[`text.bold`]!==void 0?A.current?.({type:`deck-format`,bold:e[`text.bold`]===!0}):T!==void 0&&e[`text.italic`]!==void 0?A.current?.({type:`deck-format`,italic:e[`text.italic`]===!0}):T!==void 0&&typeof n==`string`?A.current?.({type:`deck-format`,color:n}):U({slides:[{op:`shape`,slide:Y.address.slide,shape:Y.address.shape,set:e}]},t)},onReset:()=>{U({slides:[{op:`shape`,slide:Y.address.slide,shape:Y.address.shape,set:Object.fromEntries(Sr.map(e=>[e,void 0]))}]})},onArrange:dt}):null,vt=(0,K.jsxs)(`div`,{className:`flex items-center gap-1`,"data-testid":`slides-editor-tools`,children:[c.versions.length>1?(0,K.jsxs)(le,{value:_.key,onValueChange:e=>{m(e)},children:[(0,K.jsx)(k,{"aria-label":e.version,className:`max-w-[16rem]`,"data-testid":`version`,children:(0,K.jsx)(ue,{})}),(0,K.jsx)(pe,{position:`popper`,align:`start`,children:c.versions.map(e=>(0,K.jsx)(de,{value:e.key,className:`text-xs`,children:ht(e)},e.key))})]}):null,V&&!tn(V)&&Z?(0,K.jsx)(or,{animations:qe,shape:C.length===1?Y?.name:void 0,nameOf:e=>{let t=H.find(t=>t.name===e),n=t?hn(t.shape):``;return n===``?e:n},open:ae&&D===void 0,onOpenChange:oe,onChange:e=>{U({slides:[{op:`animations`,slide:V.id,animations:e}]})},onPick:e=>{let t=H.find(t=>t.name===e);t&&w([t.key])},onPreview:ut}):null,(0,K.jsxs)(ge,{"data-testid":`deck-present-open`,"aria-label":e.present,disabled:I.length===0,onClick:()=>{S(!0)},children:[(0,K.jsx)(xe,{"aria-hidden":!0}),(0,K.jsx)(`span`,{className:`@max-[30rem]:hidden`,children:e.present})]})]});return(0,K.jsxs)(`div`,{className:`flex size-full min-h-0 flex-col outline-none`,ref:F,"data-testid":`slides-editor`,"data-typing":T,"data-steps":Ve,"data-live":M?Object.keys(M).join(` `):void 0,tabIndex:-1,onKeyDown:tt,onFocus:e=>{e.target===e.currentTarget&&e.currentTarget.querySelector(`[data-sink]`)?.focus({preventScroll:!0})},children:[(0,K.jsx)(me,{tight:!0,start:(0,K.jsxs)(`div`,{className:`@container flex min-w-0 flex-1 items-center gap-1`,children:[gt,(0,K.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center`,children:[je&&_t?(0,K.jsx)(`span`,{className:`bg-rule mx-1 h-4 w-px shrink-0`}):null,je?_t:null]}),vt]}),saved:{state:z?.state??`saved`},exports:{versions:c.versions.map(e=>({key:e.key,label:ht(e)})),shown:_.key,facts:[`${String(c.width)} × ${String(c.height)}`,e.slideCount(I.length)].join(` · `),check:{waiting:h?.status===`waiting`||h?.status===`running`,problems:e=>h?.status===`done`?we(h.problems,c,e):0}}}),je?null:(0,K.jsx)(`div`,{className:`flex h-9 shrink-0 items-center border-b px-1`,children:_t}),z?.problem===void 0?null:(0,K.jsx)(`div`,{className:`bg-problem/10 text-problem-text shrink-0 px-3 py-1 text-xs`,"data-testid":`deck-unreadable`,children:e.unreadable(z.problem)}),(0,K.jsxs)(`div`,{className:`@container flex min-h-0 flex-1`,children:[(0,K.jsx)(pr,{project:n?.project.name??``,item:r,version:_.key,revision:o,slides:We,drawn:I,shown:Ge,aspect:c.width/c.height,onShow:e=>{b({slide:e,step:$}),w([])},marked:ot,made:e=>e.includes(`/`),...Z?{onMove:(e,t)=>{let n=Ze(e),r=t===null?null:Ze(t);r!==n&&U({slides:[{op:`move`,slide:n,after:r}]})},onAction:rt}:{}}),(0,K.jsxs)(`main`,{className:`relative flex min-w-0 flex-1 flex-col`,onDragOver:e=>{Z&&e.dataTransfer.types.includes(`Files`)&&e.preventDefault()},onDrop:e=>{let t=e.dataTransfer.files[0];Z&&t&&(e.preventDefault(),t.type.startsWith(`image/`)?it({kind:`picture`,file:t}):t.type.startsWith(`video/`)&&it({kind:`movie`,file:t}))},children:[(0,K.jsx)(`div`,{className:`min-h-0 flex-1 p-4`,children:(0,K.jsx)(Qt,{item:r,version:_.key,revision:o,width:c.width,height:c.height,moment:D?.from??lt,playing:D!==void 0,onLoaded:Ue,edit:!0,onCommands:Pe,onEdit:Qe,hold:T!==void 0||M!==void 0,interactive:T!==void 0,overlay:Ke?(0,K.jsx)(`div`,{className:`bg-background absolute inset-0`,"data-testid":`deck-waiting`}):L&&Z&&D===void 0?(0,K.jsx)(Kn,{width:L.width,height:L.height,shapes:H,frameOf:Xe,selected:C,typing:T,marked:st,onSelect:w,onDrag:e=>{he(e);for(let[t,n]of Object.entries(e))A.current?.({type:`deck-frame`,shape:t,frame:n})},onDrop:e=>{he(void 0),U({slides:Object.entries(e).flatMap(([e,t])=>{let n=H.find(t=>t.key===e);return n?[{op:`shape`,slide:n.address.slide,shape:n.address.shape,set:{frame:rn(t)}}]:[]})})},animations:ae?qe:void 0,onMenu:(e,t)=>{ce(t)},onWords:(e,t)=>{ne(e),A.current?.({type:`deck-edit`,shape:e,text:t})},onType:(e,t)=>{w([e]),ne(e),A.current?.({type:`deck-edit`,shape:e,at:t,word:!0})}}):void 0})}),Re===void 0?null:(0,K.jsx)(`button`,{type:`button`,className:`text-muted-foreground mx-auto shrink-0 pb-1 text-xs`,"data-testid":`deck-conflict`,onClick:()=>{Ae(Le)},children:Re}),at.length>0&&R?(0,K.jsx)(`div`,{className:`absolute inset-x-0 bottom-24 flex justify-center`,children:(0,K.jsx)($t,{changes:at,agent:n?.agent?.name,onShow:ct,onKeep:e=>{R.keep(e)},onUndo:e=>{R.undo(e)},onAll:e=>{R.all(e)}})}):null,(0,K.jsx)(`section`,{className:`shrink-0 border-t`,"aria-label":e.notes,"data-testid":`deck-notes`,children:Z&&V&&!tn(V)&&!Ke?(0,K.jsx)(Fe,{className:`text-read h-16 min-h-0 resize-none rounded-none border-0 bg-transparent p-3 shadow-none focus-visible:ring-0 dark:bg-transparent`,placeholder:e.addNotes,"data-testid":`deck-notes-text`,value:mt??``,onChange:e=>{let t=e.target.value;U({script:[{op:`notes`,slide:V.id,notes:t===``?void 0:t}]},`notes:${V.id}`)}},V.id):(0,K.jsx)(`div`,{className:`text-read h-16 overflow-y-auto p-3 whitespace-pre-wrap`,children:L===void 0||Ke?null:mt??(0,K.jsx)(`span`,{className:`text-muted-foreground`,children:e.noNotes})})})]})]}),x&&B!==void 0?(0,K.jsx)(Yn,{item:r,version:_.key,revision:o,width:c.width,height:c.height,slides:I,from:{slide:B,step:0},startOf:e=>v?.timeline.parts.find(t=>t.key===e)?.start,plays:e=>L?.slides.find(t=>t.id===e)?.shapes.some(e=>e.kind===`movie`)===!0,notesOf:e=>(v?.text??[]).find(t=>t.key===e)?.notes,onStop:e=>{S(!1),b({slide:e.slide,step:$})}}):null,O&&C.length>0?(0,K.jsx)(kr,{at:O,canPaste:Ee,fixed:H.some(e=>C.includes(e.key)&&!(e.own||e.typed))?e.fromLayout:void 0,onAction:ft,onArrange:dt,onClose:()=>{ce(void 0)}}):null]})}export{Br as SlidesEditor};
|