@poe-platform/safe-bash 0.1.811 → 0.1.813
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-ast/id3-source.d.ts +27 -0
- package/dist/audio-ast/index.d.ts +5 -0
- package/dist/audio-ast/index.js +1001 -596
- package/dist/audio-ast/mp3-source.d.ts +18 -0
- package/dist/audio-ast/ogg-source.d.ts +25 -0
- package/dist/audio-ast/ogg-stream-source.d.ts +22 -0
- package/dist/audio-ast/vorbis.d.ts +14 -0
- package/dist/image-ast/index.js +139 -9
- package/dist/mp4-ast/containers/adapters.d.ts +7 -0
- package/dist/office-xml/retained-xml-document.d.ts +8 -0
- package/dist/pdf-ast/ast.d.ts +2 -0
- package/dist/pdf-ast/content/dictionary-cursor.d.ts +15 -0
- package/dist/pdf-ast/content/range-operator-parser.d.ts +4 -0
- package/dist/pdf-ast/content/stored-dictionary.d.ts +10 -0
- package/dist/pdf-ast/cos/lexer.d.ts +8 -5
- package/dist/pdf-ast/cos/object-reader.d.ts +4 -3
- package/dist/pdf-ast/cos/range-parser.d.ts +4 -0
- package/dist/pdf-ast/cos/retained-objects.d.ts +1 -0
- package/dist/pdf-ast/cos/retained-writer.d.ts +1 -0
- package/dist/pdf-ast/cos/value-parser.d.ts +32 -2
- package/dist/pdf-ast/edit/retained-append-attachments.d.ts +13 -0
- package/dist/pdf-ast/edit/retained-bookmarks.d.ts +13 -0
- package/dist/pdf-ast/edit/retained-graph.d.ts +6 -0
- package/dist/pdf-ast/edit/retained-save.d.ts +2 -0
- package/dist/pdf-ast/edit/retained-stamps.d.ts +9 -0
- package/dist/pdf-ast/extract/retained-form-field-details.d.ts +20 -0
- package/dist/pdf-ast/extract/retained-form-fields.d.ts +17 -4
- package/dist/pdf-ast/fonts/resolve.d.ts +3 -1
- package/dist/pdf-ast/index.d.ts +4 -1
- package/dist/pdf-ast/index.js +2127 -975
- package/dist/pdf-ast/retained-document.d.ts +4 -0
- package/dist/safe-bash/audio-ast.browser.js +7 -1
- package/dist/safe-bash/chunks/{chunk-HHSOUC3Z.js → chunk-HPQE675Q.js} +1 -1
- package/dist/safe-bash/chunks/{chunk-BUYRKFW2.js → chunk-I6ECNJMR.js} +1 -1
- package/dist/safe-bash/chunks/{pdftk-WRYEP3CA.js → pdftk-Y2TX74LY.js} +2 -1
- package/dist/safe-bash/command-chunks/biff-4ALVARRF-7SRX6R6N.js +5192 -0
- package/dist/safe-bash/command-chunks/{chunk-EHSM5ZQS.js → chunk-2DGJOOXM.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-Q6S57NOQ.js → chunk-2E2H7MBH.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-MMBZTYXO.js → chunk-2PQRZDNR.js} +221 -0
- package/dist/safe-bash/command-chunks/{chunk-5OO2P27R.js → chunk-2V6FOLXV.js} +78 -25
- package/dist/safe-bash/command-chunks/{chunk-56NYSX65.js → chunk-2Z3WRRFT.js} +9 -9
- package/dist/safe-bash/command-chunks/chunk-3D24WDND.js +63 -0
- package/dist/safe-bash/command-chunks/{chunk-47NEG4UO.js → chunk-3JST2Q7G.js} +219 -43
- package/dist/safe-bash/command-chunks/{chunk-WGG6G2KG.js → chunk-3LJAXFH5.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-AHA6IWAJ.js → chunk-3TYDSGAH.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-YSMNXMAO.js → chunk-3Y4XZB24.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-ZIIO6GRY.js → chunk-4PBNMKAT.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-JFYWVQ4V.js → chunk-4Z6W5EOC.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-GEM47B2P.js → chunk-57DDYKE5.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-HARUYHH7.js → chunk-5HUICAWD.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-4CKFNXRN.js → chunk-5IFRAI7Y.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-RHYJVTJO.js → chunk-5KGEZ3RW.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-A5FZBR7X.js → chunk-5MFDRSGG.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-7GKKMNL6.js → chunk-5P6I2T63.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-6M6TM5Z5.js → chunk-5VQVZPP3.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-MIRL7HTF.js → chunk-6244HYJY.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-63EMPQ7Z.js +115 -0
- package/dist/safe-bash/command-chunks/{chunk-XRVKWGVQ.js → chunk-6CY5BHBS.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-XVP6V5K3.js → chunk-6IWE7PTK.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-6QBMND4A.js → chunk-6SRHWVEB.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-6ZHQB453.js +35 -0
- package/dist/safe-bash/command-chunks/chunk-73NYFNAS.js +173 -0
- package/dist/safe-bash/command-chunks/{chunk-VU3EQF7F.js → chunk-7NXTEWPR.js} +229 -75
- package/dist/safe-bash/command-chunks/{chunk-554Z6IKP.js → chunk-7PRL6RJ6.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-SDTPO2VV.js → chunk-7PZHWMK6.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-XZ2FWFNV.js → chunk-7QZ2HP2F.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-OEJM666F.js → chunk-7UC2Q6Z6.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-COKYZUBW.js → chunk-AJI55RS7.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-2VCKUNDZ.js → chunk-B2C3UPJS.js} +27 -17
- package/dist/safe-bash/command-chunks/{chunk-WXRYDALR.js → chunk-BBAB7LC4.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-QYMEASQ6.js → chunk-BEHUSUOY.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-Z2JW6M2D.js → chunk-BK7ISUJL.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-33YCKZZX.js → chunk-C5KLFZGT.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-TVH4JORU.js → chunk-C5QDEB3I.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-N4R2SHSS.js → chunk-CCZZVCHX.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-2VLAXKTS.js → chunk-CTDC4LJT.js} +121 -85
- package/dist/safe-bash/command-chunks/{chunk-S6R3IB36.js → chunk-D55REQA3.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-Y4EYCZFT.js → chunk-D6WJY6QO.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-2CORNDGF.js → chunk-DBLHCJJU.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-SPW4GW4Z.js → chunk-DFI7QF3M.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-456PHA3L.js → chunk-DMCI6T6N.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-TW73OXPR.js → chunk-EJTNVXWF.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-QD7ZRDUN.js → chunk-ET2VPDUA.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-5LI2DLNZ.js → chunk-EXOQGXEU.js} +26 -26
- package/dist/safe-bash/command-chunks/{chunk-CRV2Q3PB.js → chunk-EZ4NQIPL.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-FWKLBDMK.js +0 -0
- package/dist/safe-bash/command-chunks/{chunk-22MOB45U.js → chunk-FWPVQGYK.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-QC5RMGSA.js → chunk-G3RUXKVY.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-JYUJAF4L.js → chunk-G7NENPYV.js} +4 -0
- package/dist/safe-bash/command-chunks/{chunk-KCOJA7EM.js → chunk-GKILM4HZ.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-HTVIYLVB.js → chunk-GNXTMSYN.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-D2ASPM7R.js → chunk-GOBUDKZ3.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-RNSKXOG3.js → chunk-GVWVRPG6.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-ZHRGYR7B.js → chunk-HCKYUQ3L.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-AGLK7OJR.js → chunk-HDSIIQBS.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-DM2CPMB4.js → chunk-HKOMXGJS.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-IT7TAC3F.js → chunk-HVW53ARH.js} +16 -16
- package/dist/safe-bash/command-chunks/{chunk-M7QE2MN7.js → chunk-I4GMCWAT.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-5MB64DWR.js → chunk-IHSOOSNC.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-LCZDBW55.js → chunk-JAHJWVGF.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-MOZD7RUY.js → chunk-JORIVUPM.js} +27 -11
- package/dist/safe-bash/command-chunks/{chunk-PMAM4N33.js → chunk-JUJHYPYL.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-ENT3IV2G.js → chunk-KBUBSMCQ.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-ZXR6LXV5.js → chunk-KCE5D4Z4.js} +48 -4
- package/dist/safe-bash/command-chunks/{chunk-FIIAYCWS.js → chunk-KZ5ODST6.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-PNGDJA6M.js → chunk-LD7BONZY.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-KJ4XXZIL.js → chunk-M3Z5PU2M.js} +582 -59
- package/dist/safe-bash/command-chunks/{chunk-LXLLA4PM.js → chunk-MKX4JAZ6.js} +17 -17
- package/dist/safe-bash/command-chunks/{chunk-RQIQ75W5.js → chunk-MNHBQBF6.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-A2CLZMQZ.js → chunk-MPKY37QR.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-K5GB2YMN.js → chunk-MUUWBZIC.js} +10 -10
- package/dist/safe-bash/command-chunks/{chunk-JOCFI7TG.js → chunk-N32GSM3J.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-EUT24Y5Z.js → chunk-NKTULXVD.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-5HPU7D36.js → chunk-NMPED6L5.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-QZZ73J2O.js → chunk-NPFHUS4X.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-X7FA7ZD5.js → chunk-O675URF4.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-R6EGGK5M.js → chunk-P7EL2FWW.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-YS25EI54.js → chunk-PCCFLPUQ.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-RRL3Y562.js → chunk-PI6MOMHA.js} +11 -11
- package/dist/safe-bash/command-chunks/{chunk-26VCZHLJ.js → chunk-PIOQBOEK.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-PK36TVXB.js +175 -0
- package/dist/safe-bash/command-chunks/{chunk-72C3TZ2U.js → chunk-PKLJRB7W.js} +264 -129
- package/dist/safe-bash/command-chunks/{chunk-6CCQI6XZ.js → chunk-PSCOXGCA.js} +12 -12
- package/dist/safe-bash/command-chunks/{chunk-XPD636C4.js → chunk-PVGZMLC6.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-JQVHUSDD.js → chunk-PXWS3Q7L.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-HDJVJTCK.js → chunk-QFF5KBOM.js} +9 -9
- package/dist/safe-bash/command-chunks/{chunk-MPUHH2KR.js → chunk-QM2HZJSJ.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-UAXSE3XE.js → chunk-R2BMZAHG.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-KB7DUBVL.js → chunk-RGOQKIG6.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-D2KZ66W4.js → chunk-RLCQ7BN3.js} +187 -39
- package/dist/safe-bash/command-chunks/{chunk-B5LDP7AA.js → chunk-S2N2V5U4.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-OA75SGN2.js → chunk-SGPCXAG7.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-Z5QOVRVH.js → chunk-SU26FZLJ.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-QUM3SYAJ.js → chunk-SYSX46IV.js} +3 -3
- package/dist/safe-bash/command-chunks/chunk-T3E5RV3U.js +737 -0
- package/dist/safe-bash/command-chunks/{chunk-YORJDX4V.js → chunk-T5ERNELL.js} +4 -4
- package/dist/safe-bash/command-chunks/{chunk-KL3OIBKB.js → chunk-T6C5QP7T.js} +6495 -6343
- package/dist/safe-bash/command-chunks/{chunk-ATTWQVR2.js → chunk-TKRLZIFI.js} +17 -17
- package/dist/safe-bash/command-chunks/{chunk-ZMHEGDU2.js → chunk-TODWFDYB.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-YSY6R6AS.js → chunk-TQEB4DH4.js} +703 -102
- package/dist/safe-bash/command-chunks/{chunk-36XGIPOG.js → chunk-U5TWQFZY.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-APEWTWCC.js → chunk-UAF4IX5H.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-6VPQ3CDZ.js → chunk-V37D6AHO.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-RID6VYS3.js → chunk-V6XBEYPC.js} +8 -8
- package/dist/safe-bash/command-chunks/{chunk-WJCN2IXI.js → chunk-VQOINPVF.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-W5YSINXC.js → chunk-VVWXY6IA.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-HKATEVAP.js → chunk-WPVBUVFK.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-UYWSIIUX.js → chunk-X53AEG36.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-L5MCW6CM.js → chunk-X64XGIXZ.js} +9 -155
- package/dist/safe-bash/command-chunks/{chunk-Q73EMLLZ.js → chunk-X6RHJ6YN.js} +84 -5
- package/dist/safe-bash/command-chunks/{chunk-7PVHO47B.js → chunk-XG6UWQV5.js} +6 -6
- package/dist/safe-bash/command-chunks/{chunk-NQDIT667.js → chunk-XIDGHIGB.js} +5 -5
- package/dist/safe-bash/command-chunks/{chunk-DPR5CYQV.js → chunk-XITDDJFT.js} +2 -0
- package/dist/safe-bash/command-chunks/{chunk-CV7M2QJU.js → chunk-XLYIVBAR.js} +7 -7
- package/dist/safe-bash/command-chunks/{chunk-WVMHRNXZ.js → chunk-YUXTK3XA.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-SPLOIABU.js → chunk-YXD6VGVG.js} +3 -3
- package/dist/safe-bash/command-chunks/{chunk-2ZFLMWOX.js → chunk-Z5BIM5B7.js} +1 -1
- package/dist/safe-bash/command-chunks/chunk-ZYLGNIGA.js +156 -0
- package/dist/safe-bash/command-chunks/{command-engine-BEWABZ75.js → command-engine-X3OLN7N6.js} +206 -86
- package/dist/safe-bash/command-chunks/{engine-AXXFTGCL-QBQNBI6K.js → engine-XUCIFZ7V-LJFGZM6O.js} +1 -1
- package/dist/safe-bash/command-chunks/paradox-4FCZE53D-LQPGVMEL.js +365 -0
- package/dist/safe-bash/commands/pandoc/index.browser.js +1 -1
- package/dist/safe-bash/full-core.browser.js +2 -2
- package/dist/safe-bash/plugins/index.browser.js +2 -2
- package/dist/safe-bash-command-apply-patch/apply.js +4 -4
- package/dist/safe-bash-command-apply-patch/index.js +4 -4
- package/dist/safe-bash-command-apply-patch/matcher.js +2 -2
- package/dist/safe-bash-command-apply-patch/parser.js +2 -2
- package/dist/safe-bash-command-apply-patch/shared.d.ts +2 -0
- package/dist/safe-bash-command-apply-patch/shared.js +1 -1
- package/dist/safe-bash-command-diff/diff.js +1 -1
- package/dist/safe-bash-command-diff/index.js +1 -1
- package/dist/safe-bash-command-ffmpeg/index.js +1 -1
- package/dist/safe-bash-command-ffprobe/index.js +2 -2
- package/dist/safe-bash-command-ffprobe/media.d.ts +3 -1
- package/dist/safe-bash-command-ffprobe/media.js +2 -2
- package/dist/safe-bash-command-html-to-markdown/budget.js +2 -1
- package/dist/safe-bash-command-html-to-markdown/entities.js +4 -3
- package/dist/safe-bash-command-html-to-markdown/index.js +564 -110
- package/dist/safe-bash-command-html-to-markdown/input.js +6 -5
- package/dist/safe-bash-command-html-to-markdown/options.js +2 -1
- package/dist/safe-bash-command-html-to-markdown/parser.js +5 -4
- package/dist/safe-bash-command-html-to-markdown/render.js +6 -5
- package/dist/safe-bash-command-html-to-markdown/text.js +3 -2
- package/dist/safe-bash-command-htmlq/index.js +361 -37
- package/dist/safe-bash-command-htmlq/tree.d.ts +3 -2
- package/dist/safe-bash-command-pandoc/command.js +7 -7
- package/dist/safe-bash-command-pandoc/index.js +55 -55
- package/dist/safe-bash-command-patch/index.js +6 -6
- package/dist/safe-bash-command-patch/patch-envelope.js +53 -3
- package/dist/safe-bash-command-patch/patch-formats.d.ts +2 -2
- package/dist/safe-bash-command-patch/patch-formats.js +2 -2
- package/dist/safe-bash-command-patch/patch-gnu-reject.d.ts +2 -1
- package/dist/safe-bash-command-patch/patch-gnu-reject.js +4 -3
- package/dist/safe-bash-command-patch/patch-publication.js +2 -1
- package/dist/safe-bash-command-patch/patch.js +6 -6
- package/dist/safe-bash-command-patch/unified.d.ts +10 -2
- package/dist/safe-bash-command-patch/unified.js +1 -1
- package/dist/safe-bash-command-pdftk/index.d.ts +6 -2
- package/dist/safe-bash-command-pdftk/index.js +835 -243
- package/dist/safe-bash-command-pptx/command-engine.d.ts +15 -3
- package/dist/safe-bash-command-pptx/engine.d.ts +2 -2
- package/dist/safe-bash-command-pptx/engine.js +1 -1
- package/dist/safe-bash-command-pptx/index.js +9 -2
- package/dist/safe-bash-command-soffice/index.js +1 -1
- package/dist/safe-bash-command-ssconvert/index.js +2 -2
- package/dist/safe-bash-command-xmllint/index.js +22 -31
- package/dist/safe-bash-diff-engine/document.d.ts +2 -1
- package/dist/safe-bash-diff-engine/document.js +7 -4
- package/dist/safe-bash-presentation-engine/accessibility.js +31 -30
- package/dist/safe-bash-presentation-engine/animation-editing.js +16 -15
- package/dist/safe-bash-presentation-engine/animations.js +16 -15
- package/dist/safe-bash-presentation-engine/backgrounds.js +17 -16
- package/dist/safe-bash-presentation-engine/bytes.js +3 -3
- package/dist/safe-bash-presentation-engine/chart-editing.js +34 -33
- package/dist/safe-bash-presentation-engine/chart-object-operations.js +25 -24
- package/dist/safe-bash-presentation-engine/charts.js +31 -30
- package/dist/safe-bash-presentation-engine/command-placeholder.js +59 -55
- package/dist/safe-bash-presentation-engine/comments.js +17 -16
- package/dist/safe-bash-presentation-engine/connector-operations.js +32 -31
- package/dist/safe-bash-presentation-engine/connectors.js +29 -28
- package/dist/safe-bash-presentation-engine/content-types.js +4 -4
- package/dist/safe-bash-presentation-engine/creation.js +6 -6
- package/dist/safe-bash-presentation-engine/diff.js +32 -31
- package/dist/safe-bash-presentation-engine/drawing-enums.d.ts +10 -10
- package/dist/safe-bash-presentation-engine/drawing-format.js +20 -19
- package/dist/safe-bash-presentation-engine/drawing-operations.js +31 -30
- package/dist/safe-bash-presentation-engine/drawing-schema.js +21 -20
- package/dist/safe-bash-presentation-engine/equations.js +17 -16
- package/dist/safe-bash-presentation-engine/errors.js +2 -2
- package/dist/safe-bash-presentation-engine/fields.js +17 -16
- package/dist/safe-bash-presentation-engine/font-metrics.js +3 -3
- package/dist/safe-bash-presentation-engine/image-extraction.js +20 -19
- package/dist/safe-bash-presentation-engine/image-formatting.js +32 -31
- package/dist/safe-bash-presentation-engine/image-insertion.js +18 -17
- package/dist/safe-bash-presentation-engine/image-replacement.js +21 -20
- package/dist/safe-bash-presentation-engine/image-value.js +4 -4
- package/dist/safe-bash-presentation-engine/images.js +19 -18
- package/dist/safe-bash-presentation-engine/index.d.ts +6 -2
- package/dist/safe-bash-presentation-engine/index.js +112 -97
- package/dist/safe-bash-presentation-engine/layouts.js +16 -15
- package/dist/safe-bash-presentation-engine/length.js +3 -3
- package/dist/safe-bash-presentation-engine/links.js +16 -15
- package/dist/safe-bash-presentation-engine/masters.js +15 -14
- package/dist/safe-bash-presentation-engine/media-editing.js +24 -23
- package/dist/safe-bash-presentation-engine/media-extraction.js +17 -16
- package/dist/safe-bash-presentation-engine/media.js +16 -15
- package/dist/safe-bash-presentation-engine/memberships.js +15 -14
- package/dist/safe-bash-presentation-engine/notes.js +16 -15
- package/dist/safe-bash-presentation-engine/ole-enum.js +4 -4
- package/dist/safe-bash-presentation-engine/ole-insertion.js +20 -19
- package/dist/safe-bash-presentation-engine/opaque-objects.js +9 -9
- package/dist/safe-bash-presentation-engine/package-reader.js +5 -5
- package/dist/safe-bash-presentation-engine/package-tools.d.ts +3 -0
- package/dist/safe-bash-presentation-engine/package-tools.js +27 -17
- package/dist/safe-bash-presentation-engine/package-uri.js +3 -3
- package/dist/safe-bash-presentation-engine/package-writer.js +4 -4
- package/dist/safe-bash-presentation-engine/presentation-model.js +58 -54
- package/dist/safe-bash-presentation-engine/presentation-settings.js +14 -13
- package/dist/safe-bash-presentation-engine/properties.js +16 -15
- package/dist/safe-bash-presentation-engine/relationships.js +4 -4
- package/dist/safe-bash-presentation-engine/resource-limits.js +1 -1
- package/dist/safe-bash-presentation-engine/retained-archive-staging.d.ts +19 -0
- package/dist/safe-bash-presentation-engine/retained-extraction-output.d.ts +18 -0
- package/dist/safe-bash-presentation-engine/retained-inspection.js +14 -12
- package/dist/safe-bash-presentation-engine/retained-package-extraction.d.ts +22 -0
- package/dist/safe-bash-presentation-engine/retained-package-packing.d.ts +19 -0
- package/dist/safe-bash-presentation-engine/retained-package.d.ts +2 -0
- package/dist/safe-bash-presentation-engine/retained-package.js +6 -4
- package/dist/safe-bash-presentation-engine/retained-slide-publication.d.ts +24 -0
- package/dist/safe-bash-presentation-engine/retained-text.js +19 -17
- package/dist/safe-bash-presentation-engine/retained-xml-parts.d.ts +5 -1
- package/dist/safe-bash-presentation-engine/retained-xml-publication.d.ts +18 -0
- package/dist/safe-bash-presentation-engine/retained-xml-replacement.d.ts +13 -0
- package/dist/safe-bash-presentation-engine/sanitize.js +17 -16
- package/dist/safe-bash-presentation-engine/selectors.js +10 -10
- package/dist/safe-bash-presentation-engine/shape-groups.js +31 -30
- package/dist/safe-bash-presentation-engine/shape-operations.js +30 -29
- package/dist/safe-bash-presentation-engine/shape-path-operations.js +32 -31
- package/dist/safe-bash-presentation-engine/shape-paths.js +16 -15
- package/dist/safe-bash-presentation-engine/shape-presets.js +3 -3
- package/dist/safe-bash-presentation-engine/shape-selection.js +31 -30
- package/dist/safe-bash-presentation-engine/shape-transforms.js +18 -17
- package/dist/safe-bash-presentation-engine/shapes.d.ts +1 -1
- package/dist/safe-bash-presentation-engine/shapes.js +27 -26
- package/dist/safe-bash-presentation-engine/slide-copy.js +17 -16
- package/dist/safe-bash-presentation-engine/slide-import.js +18 -17
- package/dist/safe-bash-presentation-engine/slide-merge-split.js +20 -19
- package/dist/safe-bash-presentation-engine/slide-model.js +43 -42
- package/dist/safe-bash-presentation-engine/slide-removal.js +18 -17
- package/dist/safe-bash-presentation-engine/slide-transfer-budget.js +9 -9
- package/dist/safe-bash-presentation-engine/slides.d.ts +1 -0
- package/dist/safe-bash-presentation-engine/slides.js +23 -17
- package/dist/safe-bash-presentation-engine/table-operations.js +33 -32
- package/dist/safe-bash-presentation-engine/table-spans.js +32 -31
- package/dist/safe-bash-presentation-engine/tables.js +31 -30
- package/dist/safe-bash-presentation-engine/tags.js +16 -15
- package/dist/safe-bash-presentation-engine/template-bindings.js +33 -32
- package/dist/safe-bash-presentation-engine/template-repeat.js +40 -39
- package/dist/safe-bash-presentation-engine/text-fitting.js +27 -26
- package/dist/safe-bash-presentation-engine/text-frames.js +27 -26
- package/dist/safe-bash-presentation-engine/text-paragraphs.js +27 -26
- package/dist/safe-bash-presentation-engine/text-reading.js +11 -11
- package/dist/safe-bash-presentation-engine/text-replacement.js +17 -16
- package/dist/safe-bash-presentation-engine/text-runs.js +20 -19
- package/dist/safe-bash-presentation-engine/themes.js +16 -15
- package/dist/safe-bash-presentation-engine/transitions.js +16 -15
- package/dist/safe-bash-presentation-engine/validation.js +10 -9
- package/dist/safe-bash-presentation-engine/xml-parts.d.ts +2 -0
- package/dist/safe-bash-presentation-engine/xml-parts.js +23 -15
- package/dist/safe-bash-presentation-engine/xml-view.js +3 -3
- package/dist/safe-bash-presentation-engine/xml.js +3 -3
- package/dist/safe-bash-regex-engine/index.js +1 -1
- package/dist/safe-bash-regex-engine/python-glob.js +1 -1
- package/dist/safe-bash-regex-engine/text/regex.d.ts +19 -0
- package/dist/safe-bash-regex-engine/text/regex.js +1 -1
- package/dist/safe-bash-xml-engine/document.js +3 -3
- package/dist/safe-bash-xml-engine/evaluate.js +1 -1
- package/dist/safe-bash-xml-engine/index.d.ts +1 -0
- package/dist/safe-bash-xml-engine/index.js +8 -4
- package/dist/safe-bash-xml-engine/query.js +2 -2
- package/dist/safe-bash-xml-engine/recovery.d.ts +10 -0
- package/dist/safe-bash-xml-engine/stored-document.d.ts +1 -1
- package/dist/safe-bash-xml-engine/stored-document.js +1 -1
- package/dist/safe-bash-xml-engine/stored-evaluate.js +1 -1
- package/dist/spreadsheet-engine/formulas/functions/python-printf.js +56 -33
- package/dist/spreadsheet-format-xls/biff-encrypted-properties.d.ts +2 -2
- package/dist/spreadsheet-format-xls/biff-encrypted-properties.js +86 -24
- package/dist/spreadsheet-format-xls/biff-metadata.d.ts +1 -0
- package/dist/spreadsheet-format-xls/biff-metadata.js +2 -2
- package/dist/spreadsheet-format-xls/biff-properties-merge.d.ts +6 -2
- package/dist/spreadsheet-format-xls/biff-properties-merge.js +413 -296
- package/dist/spreadsheet-format-xls/biff-properties-write.js +40 -23
- package/dist/spreadsheet-format-xls/biff-properties.js +3 -68
- package/dist/spreadsheet-format-xls/biff-property-index.d.ts +23 -0
- package/dist/spreadsheet-format-xls/biff-property-index.js +93 -0
- package/dist/spreadsheet-format-xls/biff-property-name.d.ts +4 -0
- package/dist/spreadsheet-format-xls/biff-property-name.js +114 -0
- package/dist/spreadsheet-format-xls/biff-property-text.d.ts +6 -0
- package/dist/spreadsheet-format-xls/biff-property-text.js +68 -0
- package/dist/spreadsheet-format-xls/biff-property-transcode.d.ts +5 -0
- package/dist/spreadsheet-format-xls/biff-property-transcode.js +45 -0
- package/dist/spreadsheet-format-xls/biff-write-metadata.js +10 -1
- package/package.json +6 -3
- package/dist/safe-bash/command-chunks/biff-3EFLKBAH-NYWZOYQS.js +0 -4942
- package/dist/safe-bash/command-chunks/chunk-5Q22ZLNC.js +0 -127
- package/dist/safe-bash/command-chunks/chunk-JKLOBSMP.js +0 -56
- package/dist/safe-bash/command-chunks/chunk-JYTESTBS.js +0 -99
- package/dist/safe-bash/command-chunks/chunk-WH3TIOTS.js +0 -326
- package/dist/safe-bash/command-chunks/paradox-ZWWXYY4J-JYOSWSBL.js +0 -362
- package/dist/spreadsheet-format-xls/biff-properties-layout.js +0 -56
|
@@ -336129,10 +336129,9 @@ function serializeOggFlac(doc) {
|
|
|
336129
336129
|
}
|
|
336130
336130
|
return concatBytes(pages);
|
|
336131
336131
|
}
|
|
336132
|
-
function oggCrc(bytes) {
|
|
336133
|
-
let crc2 = 0;
|
|
336132
|
+
function oggCrc(bytes, crc2 = 0, offset = 0) {
|
|
336134
336133
|
for (let i = 0; i < bytes.length; i++) {
|
|
336135
|
-
const byte = i >= 22 && i < 26 ? 0 : bytes[i];
|
|
336134
|
+
const byte = offset + i >= 22 && offset + i < 26 ? 0 : bytes[i];
|
|
336136
336135
|
crc2 ^= byte << 24;
|
|
336137
336136
|
for (let bit = 0; bit < 8; bit++) crc2 = crc2 << 1 ^ (crc2 & 2147483648 ? 79764919 : 0);
|
|
336138
336137
|
}
|
|
@@ -336192,6 +336191,68 @@ function serializeOgg(doc, options = {}) {
|
|
|
336192
336191
|
}
|
|
336193
336192
|
return concatBytes(pages);
|
|
336194
336193
|
}
|
|
336194
|
+
async function readOggFlacHeader(source, options = {}) {
|
|
336195
|
+
options.signal?.throwIfAborted();
|
|
336196
|
+
if (!Number.isSafeInteger(source.size) || source.size < 0) throw new RangeError("Invalid Ogg source size");
|
|
336197
|
+
const identification = new Uint8Array(51);
|
|
336198
|
+
let offset = 0, packetSize = 0, firstSize = -1, payloadSize = 0, mapped = false;
|
|
336199
|
+
const read = async (length) => {
|
|
336200
|
+
if (length > source.size - offset) throw new Error("Truncated Ogg page");
|
|
336201
|
+
const bytes = new Uint8Array(length);
|
|
336202
|
+
for (let used = 0; used < length; ) {
|
|
336203
|
+
options.signal?.throwIfAborted();
|
|
336204
|
+
const chunk = await source.read(offset, length - used);
|
|
336205
|
+
options.signal?.throwIfAborted();
|
|
336206
|
+
if (!chunk.length) throw new Error("Truncated Ogg page");
|
|
336207
|
+
if (chunk.length > length - used) throw new Error("Ogg source returned more bytes than requested");
|
|
336208
|
+
bytes.set(chunk, used);
|
|
336209
|
+
used += chunk.length;
|
|
336210
|
+
offset += chunk.length;
|
|
336211
|
+
}
|
|
336212
|
+
await options.checkpoint?.();
|
|
336213
|
+
options.signal?.throwIfAborted();
|
|
336214
|
+
return bytes;
|
|
336215
|
+
};
|
|
336216
|
+
while (offset < source.size) {
|
|
336217
|
+
const start = offset, header = await read(27);
|
|
336218
|
+
if (header[0] !== 79 || header[1] !== 103 || header[2] !== 103 || header[3] !== 83) throw new Error("Invalid Ogg page");
|
|
336219
|
+
const lacing = await read(header[26]);
|
|
336220
|
+
let checksum = oggCrc(lacing, oggCrc(header), 27);
|
|
336221
|
+
const continuation = Boolean(header[5] & 1) !== packetSize > 0;
|
|
336222
|
+
let remaining = 0, chunk = new Uint8Array(), used = 0;
|
|
336223
|
+
for (const length of lacing) remaining += length;
|
|
336224
|
+
for (const length of lacing) {
|
|
336225
|
+
for (let pending = length; pending; ) {
|
|
336226
|
+
if (used === chunk.length) {
|
|
336227
|
+
chunk = await read(Math.min(16384, remaining));
|
|
336228
|
+
used = 0;
|
|
336229
|
+
checksum = oggCrc(chunk, checksum, offset - start - chunk.length);
|
|
336230
|
+
remaining -= chunk.length;
|
|
336231
|
+
}
|
|
336232
|
+
const take = Math.min(pending, chunk.length - used);
|
|
336233
|
+
if (firstSize < 0 && packetSize < identification.length) identification.set(chunk.subarray(used, used + Math.min(take, identification.length - packetSize)), packetSize);
|
|
336234
|
+
packetSize += take;
|
|
336235
|
+
payloadSize += take;
|
|
336236
|
+
used += take;
|
|
336237
|
+
pending -= take;
|
|
336238
|
+
}
|
|
336239
|
+
if (length < 255) {
|
|
336240
|
+
if (firstSize < 0) {
|
|
336241
|
+
firstSize = packetSize;
|
|
336242
|
+
mapped = firstSize >= 5 && identification[0] === 127 && identification[1] === 70 && identification[2] === 76 && identification[3] === 65 && identification[4] === 67;
|
|
336243
|
+
}
|
|
336244
|
+
packetSize = 0;
|
|
336245
|
+
}
|
|
336246
|
+
}
|
|
336247
|
+
if (checksum !== new DataView(header.buffer).getUint32(22, true)) throw new Error("Ogg CRC mismatch");
|
|
336248
|
+
if (continuation) throw new Error("Invalid Ogg packet continuation");
|
|
336249
|
+
if (firstSize >= 0 && !mapped) return void 0;
|
|
336250
|
+
}
|
|
336251
|
+
if (packetSize) throw new Error("Truncated Ogg packet");
|
|
336252
|
+
if (firstSize < 0) return void 0;
|
|
336253
|
+
if (firstSize !== 51 || identification[5] !== 1) throw new Error("Unsupported Ogg FLAC mapping");
|
|
336254
|
+
return { header: identification.subarray(9), size: payloadSize - 9 };
|
|
336255
|
+
}
|
|
336195
336256
|
|
|
336196
336257
|
// packages/mp4-ast/src/containers/adapters.ts
|
|
336197
336258
|
import { decodeImage, encodeImage } from "../../image-ast/portable.js";
|
|
@@ -338267,8 +338328,117 @@ function isMp3Signature(bytes) {
|
|
|
338267
338328
|
if (bytes[0] === 73 && bytes[1] === 68 && bytes[2] === 51) return true;
|
|
338268
338329
|
return bytes[0] === 255 && (bytes[1] & 224) === 224 && (bytes[1] & 6) !== 0;
|
|
338269
338330
|
}
|
|
338331
|
+
function mp3Document(byteLength, samples) {
|
|
338332
|
+
const sampleRate = 44100, channels = 2, count = Math.max(1, Math.floor(byteLength / 417));
|
|
338333
|
+
return {
|
|
338334
|
+
containerFormat: "mp3",
|
|
338335
|
+
timescale: sampleRate,
|
|
338336
|
+
duration: count * 1152,
|
|
338337
|
+
durationSeconds: count * 1152 / sampleRate,
|
|
338338
|
+
tracks: [
|
|
338339
|
+
{
|
|
338340
|
+
id: 1,
|
|
338341
|
+
type: "audio",
|
|
338342
|
+
handlerType: "soun",
|
|
338343
|
+
timescale: sampleRate,
|
|
338344
|
+
duration: count * 1152,
|
|
338345
|
+
language: "und",
|
|
338346
|
+
enabled: true,
|
|
338347
|
+
codecDescriptions: [
|
|
338348
|
+
{
|
|
338349
|
+
formatFourCC: ".mp3",
|
|
338350
|
+
codecName: "mp3",
|
|
338351
|
+
sampleRate,
|
|
338352
|
+
channels,
|
|
338353
|
+
bitsPerSample: 16
|
|
338354
|
+
}
|
|
338355
|
+
],
|
|
338356
|
+
samples
|
|
338357
|
+
}
|
|
338358
|
+
],
|
|
338359
|
+
metadata: {},
|
|
338360
|
+
byteLength
|
|
338361
|
+
};
|
|
338362
|
+
}
|
|
338363
|
+
function mp3Records(size, options) {
|
|
338364
|
+
options.signal?.throwIfAborted();
|
|
338365
|
+
if (!Number.isSafeInteger(size) || size < 0) throw new RangeError("Invalid MP3 source size");
|
|
338366
|
+
const count = Math.max(1, Math.floor(size / 417)), doc = mp3Document(size, []);
|
|
338367
|
+
const metadata = buildProbeResultFromDoc(doc, size, options.filename ?? "input.mp3", {
|
|
338368
|
+
formatName: "mp3",
|
|
338369
|
+
formatLongName: "MP2/3 (MPEG audio layer 2/3)"
|
|
338370
|
+
});
|
|
338371
|
+
const stream = {
|
|
338372
|
+
...metadata.streams[0],
|
|
338373
|
+
nb_frames: String(count),
|
|
338374
|
+
bit_rate: String(Math.round(Math.min(size, count * 417) * 8 / doc.durationSeconds))
|
|
338375
|
+
};
|
|
338376
|
+
function* spans() {
|
|
338377
|
+
for (let index = 0; index < count; index++) {
|
|
338378
|
+
options.signal?.throwIfAborted();
|
|
338379
|
+
const pts = index * 1152;
|
|
338380
|
+
yield { pts, time: (pts / 44100).toFixed(6), size: String(Math.min(417, size - index * 417)), pos: String(index * 417) };
|
|
338381
|
+
}
|
|
338382
|
+
options.signal?.throwIfAborted();
|
|
338383
|
+
}
|
|
338384
|
+
return {
|
|
338385
|
+
...metadata,
|
|
338386
|
+
streams: [stream],
|
|
338387
|
+
packets: options.showPackets ? { *[Symbol.iterator]() {
|
|
338388
|
+
for (const s of spans()) yield {
|
|
338389
|
+
codec_type: "audio",
|
|
338390
|
+
stream_index: 0,
|
|
338391
|
+
pts: s.pts,
|
|
338392
|
+
pts_time: s.time,
|
|
338393
|
+
dts: s.pts,
|
|
338394
|
+
dts_time: s.time,
|
|
338395
|
+
duration: 1152,
|
|
338396
|
+
duration_time: (1152 / 44100).toFixed(6),
|
|
338397
|
+
size: s.size,
|
|
338398
|
+
pos: s.pos,
|
|
338399
|
+
flags: "K_"
|
|
338400
|
+
};
|
|
338401
|
+
} } : void 0,
|
|
338402
|
+
frames: options.showFrames ? { *[Symbol.iterator]() {
|
|
338403
|
+
for (const s of spans()) yield {
|
|
338404
|
+
media_type: "audio",
|
|
338405
|
+
stream_index: 0,
|
|
338406
|
+
key_frame: 1,
|
|
338407
|
+
pts: s.pts,
|
|
338408
|
+
pts_time: s.time,
|
|
338409
|
+
pkt_dts: s.pts,
|
|
338410
|
+
pkt_dts_time: s.time,
|
|
338411
|
+
best_effort_timestamp: s.pts,
|
|
338412
|
+
best_effort_timestamp_time: s.time,
|
|
338413
|
+
pkt_duration: 1152,
|
|
338414
|
+
pkt_duration_time: (1152 / 44100).toFixed(6),
|
|
338415
|
+
pkt_size: s.size,
|
|
338416
|
+
width: void 0,
|
|
338417
|
+
height: void 0,
|
|
338418
|
+
pix_fmt: void 0,
|
|
338419
|
+
pict_type: void 0,
|
|
338420
|
+
sample_fmt: stream.sample_fmt,
|
|
338421
|
+
nb_samples: 1152,
|
|
338422
|
+
channels: 2
|
|
338423
|
+
};
|
|
338424
|
+
} } : void 0
|
|
338425
|
+
};
|
|
338426
|
+
}
|
|
338270
338427
|
function mp3Ast() {
|
|
338271
338428
|
return {
|
|
338429
|
+
async probeMetadata(source, options = {}) {
|
|
338430
|
+
return mp3Records(source.size, options);
|
|
338431
|
+
},
|
|
338432
|
+
async probeMetadataStream(source, options = {}) {
|
|
338433
|
+
options.signal?.throwIfAborted();
|
|
338434
|
+
let size = 0;
|
|
338435
|
+
for await (const chunk of source) {
|
|
338436
|
+
options.signal?.throwIfAborted();
|
|
338437
|
+
size += chunk.byteLength;
|
|
338438
|
+
if (!Number.isSafeInteger(size)) throw new RangeError("Invalid MP3 source size");
|
|
338439
|
+
}
|
|
338440
|
+
return mp3Records(size, options);
|
|
338441
|
+
},
|
|
338272
338442
|
id: "mp3",
|
|
338273
338443
|
formatName: "mp3",
|
|
338274
338444
|
formatLongName: "MP2/3 (MPEG audio layer 2/3)",
|
|
@@ -338284,8 +338454,6 @@ function mp3Ast() {
|
|
|
338284
338454
|
return false;
|
|
338285
338455
|
},
|
|
338286
338456
|
parse(bytes) {
|
|
338287
|
-
const sampleRate = 44100;
|
|
338288
|
-
const channels = 2;
|
|
338289
338457
|
const numFrames = Math.max(1, Math.floor(bytes.byteLength / 417));
|
|
338290
338458
|
const samples = [];
|
|
338291
338459
|
for (let i = 0; i < numFrames; i++) {
|
|
@@ -338302,35 +338470,7 @@ function mp3Ast() {
|
|
|
338302
338470
|
sampleDescriptionIndex: 1
|
|
338303
338471
|
});
|
|
338304
338472
|
}
|
|
338305
|
-
return
|
|
338306
|
-
containerFormat: "mp3",
|
|
338307
|
-
timescale: sampleRate,
|
|
338308
|
-
duration: numFrames * 1152,
|
|
338309
|
-
durationSeconds: numFrames * 1152 / sampleRate,
|
|
338310
|
-
tracks: [
|
|
338311
|
-
{
|
|
338312
|
-
id: 1,
|
|
338313
|
-
type: "audio",
|
|
338314
|
-
handlerType: "soun",
|
|
338315
|
-
timescale: sampleRate,
|
|
338316
|
-
duration: numFrames * 1152,
|
|
338317
|
-
language: "und",
|
|
338318
|
-
enabled: true,
|
|
338319
|
-
codecDescriptions: [
|
|
338320
|
-
{
|
|
338321
|
-
formatFourCC: ".mp3",
|
|
338322
|
-
codecName: "mp3",
|
|
338323
|
-
sampleRate,
|
|
338324
|
-
channels,
|
|
338325
|
-
bitsPerSample: 16
|
|
338326
|
-
}
|
|
338327
|
-
],
|
|
338328
|
-
samples
|
|
338329
|
-
}
|
|
338330
|
-
],
|
|
338331
|
-
metadata: {},
|
|
338332
|
-
byteLength: bytes.byteLength
|
|
338333
|
-
};
|
|
338473
|
+
return mp3Document(bytes.byteLength, samples);
|
|
338334
338474
|
},
|
|
338335
338475
|
serialize(doc) {
|
|
338336
338476
|
const numFrames = Math.max(1, Math.ceil((doc.durationSeconds || 1) * 44100 / 1152));
|
|
@@ -338487,6 +338627,58 @@ function flacAst() {
|
|
|
338487
338627
|
}
|
|
338488
338628
|
};
|
|
338489
338629
|
}
|
|
338630
|
+
function oggDocument(stream, size, data = new Uint8Array()) {
|
|
338631
|
+
const { sampleRate, channels, samples: totalSamples, codec } = stream;
|
|
338632
|
+
return {
|
|
338633
|
+
containerFormat: "ogg",
|
|
338634
|
+
timescale: sampleRate,
|
|
338635
|
+
duration: totalSamples,
|
|
338636
|
+
durationSeconds: stream.duration,
|
|
338637
|
+
tracks: [
|
|
338638
|
+
{
|
|
338639
|
+
id: 1,
|
|
338640
|
+
type: "audio",
|
|
338641
|
+
handlerType: "soun",
|
|
338642
|
+
timescale: sampleRate,
|
|
338643
|
+
duration: totalSamples,
|
|
338644
|
+
language: "und",
|
|
338645
|
+
enabled: true,
|
|
338646
|
+
codecDescriptions: [
|
|
338647
|
+
{
|
|
338648
|
+
formatFourCC: codec === "opus" ? "Opus" : "vorb",
|
|
338649
|
+
codecName: codec,
|
|
338650
|
+
sampleRate,
|
|
338651
|
+
channels,
|
|
338652
|
+
bitsPerSample: 16
|
|
338653
|
+
}
|
|
338654
|
+
],
|
|
338655
|
+
samples: [
|
|
338656
|
+
{
|
|
338657
|
+
data,
|
|
338658
|
+
dts: 0,
|
|
338659
|
+
pts: 0,
|
|
338660
|
+
cts: 0,
|
|
338661
|
+
duration: totalSamples,
|
|
338662
|
+
size,
|
|
338663
|
+
isKeyframe: true,
|
|
338664
|
+
sampleDescriptionIndex: 1
|
|
338665
|
+
}
|
|
338666
|
+
]
|
|
338667
|
+
}
|
|
338668
|
+
],
|
|
338669
|
+
metadata: {},
|
|
338670
|
+
byteLength: size
|
|
338671
|
+
};
|
|
338672
|
+
}
|
|
338673
|
+
function probeOggStreamMetadata(stream, size, options = {}) {
|
|
338674
|
+
return buildProbeResultFromDoc(oggDocument(stream, size), size, options.filename ?? "input.ogg", { ...options, formatName: "ogg", formatLongName: "Ogg" });
|
|
338675
|
+
}
|
|
338676
|
+
async function probeOggFlacSource(source, options = {}) {
|
|
338677
|
+
const metadata = await readOggFlacHeader(source, options);
|
|
338678
|
+
if (!metadata) return void 0;
|
|
338679
|
+
const doc = { ...flacDocument(metadata.header, metadata.size), containerFormat: "ogg", byteLength: source.size };
|
|
338680
|
+
return buildProbeResultFromDoc(doc, source.size, options.filename ?? "input.ogg", { ...options, formatName: "ogg", formatLongName: "Ogg" });
|
|
338681
|
+
}
|
|
338490
338682
|
function oggAst() {
|
|
338491
338683
|
return {
|
|
338492
338684
|
id: "ogg",
|
|
@@ -338511,47 +338703,7 @@ function oggAst() {
|
|
|
338511
338703
|
const parsed = parseAudio(bytes);
|
|
338512
338704
|
const stream = parsed.streams[0];
|
|
338513
338705
|
if (!stream) throw new Error("Ogg input contains no audio stream");
|
|
338514
|
-
|
|
338515
|
-
return {
|
|
338516
|
-
containerFormat: "ogg",
|
|
338517
|
-
timescale: sampleRate,
|
|
338518
|
-
duration: totalSamples,
|
|
338519
|
-
durationSeconds: stream.duration,
|
|
338520
|
-
tracks: [
|
|
338521
|
-
{
|
|
338522
|
-
id: 1,
|
|
338523
|
-
type: "audio",
|
|
338524
|
-
handlerType: "soun",
|
|
338525
|
-
timescale: sampleRate,
|
|
338526
|
-
duration: totalSamples,
|
|
338527
|
-
language: "und",
|
|
338528
|
-
enabled: true,
|
|
338529
|
-
codecDescriptions: [
|
|
338530
|
-
{
|
|
338531
|
-
formatFourCC: codec === "opus" ? "Opus" : "vorb",
|
|
338532
|
-
codecName: codec,
|
|
338533
|
-
sampleRate,
|
|
338534
|
-
channels,
|
|
338535
|
-
bitsPerSample: 16
|
|
338536
|
-
}
|
|
338537
|
-
],
|
|
338538
|
-
samples: [
|
|
338539
|
-
{
|
|
338540
|
-
data: bytes,
|
|
338541
|
-
dts: 0,
|
|
338542
|
-
pts: 0,
|
|
338543
|
-
cts: 0,
|
|
338544
|
-
duration: totalSamples,
|
|
338545
|
-
size: bytes.byteLength,
|
|
338546
|
-
isKeyframe: true,
|
|
338547
|
-
sampleDescriptionIndex: 1
|
|
338548
|
-
}
|
|
338549
|
-
]
|
|
338550
|
-
}
|
|
338551
|
-
],
|
|
338552
|
-
metadata: {},
|
|
338553
|
-
byteLength: bytes.byteLength
|
|
338554
|
-
};
|
|
338706
|
+
return oggDocument(stream, bytes.byteLength, bytes);
|
|
338555
338707
|
},
|
|
338556
338708
|
serialize: serializeOgg,
|
|
338557
338709
|
probe(bytes, options) {
|
|
@@ -339341,6 +339493,8 @@ export {
|
|
|
339341
339493
|
createSyntheticMp4,
|
|
339342
339494
|
parseStreamingManifest,
|
|
339343
339495
|
serializeDashDocument,
|
|
339496
|
+
probeOggStreamMetadata,
|
|
339497
|
+
probeOggFlacSource,
|
|
339344
339498
|
parseSubtitleDocument,
|
|
339345
339499
|
srtAst,
|
|
339346
339500
|
webvttAst,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
InvalidXmlError
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-D55REQA3.js";
|
|
4
4
|
import {
|
|
5
5
|
OfficeError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
7
7
|
|
|
8
8
|
// packages/safe-bash-presentation-engine/src/xml.ts
|
|
9
9
|
import { SaxesParser } from "saxes";
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readPackage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PVGZMLC6.js";
|
|
4
4
|
import {
|
|
5
5
|
binarySource,
|
|
6
6
|
readBinary
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-LD7BONZY.js";
|
|
8
8
|
import {
|
|
9
9
|
parseXmlPart
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
11
11
|
import {
|
|
12
12
|
parseContentTypes
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-VQOINPVF.js";
|
|
14
14
|
import {
|
|
15
15
|
readRelationshipGraph
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-TODWFDYB.js";
|
|
17
17
|
import {
|
|
18
18
|
asciiKey
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-U5TWQFZY.js";
|
|
20
20
|
import {
|
|
21
21
|
OfficeError,
|
|
22
22
|
resolveOfficeResources
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
24
24
|
|
|
25
25
|
// packages/safe-bash-presentation-engine/src/slide-transfer-budget.ts
|
|
26
26
|
var SlideTransferBudget = class {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readTextBodies,
|
|
3
3
|
validateTextReadingOptions
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-C5KLFZGT.js";
|
|
5
5
|
import {
|
|
6
6
|
colorMerge,
|
|
7
7
|
defineXmlEnum,
|
|
8
8
|
readRunColor,
|
|
9
9
|
validateRunColor
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NMPED6L5.js";
|
|
11
11
|
import {
|
|
12
12
|
loadShared
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
14
14
|
import {
|
|
15
15
|
SelectionError
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-O675URF4.js";
|
|
17
17
|
import {
|
|
18
18
|
protectedEquationNodes
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Z5BIM5B7.js";
|
|
20
20
|
import {
|
|
21
21
|
OfficeError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
23
23
|
|
|
24
24
|
// packages/safe-bash-presentation-engine/src/text-runs.ts
|
|
25
25
|
var UnderlineValue = /* @__PURE__ */ ((UnderlineValue2) => {
|
|
@@ -7,19 +7,19 @@ import {
|
|
|
7
7
|
nextRel,
|
|
8
8
|
relPart,
|
|
9
9
|
required
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
11
11
|
import {
|
|
12
12
|
SelectionError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-O675URF4.js";
|
|
14
14
|
import {
|
|
15
15
|
parseXmlPart
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
17
17
|
import {
|
|
18
18
|
relativePartReference
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-U5TWQFZY.js";
|
|
20
20
|
import {
|
|
21
21
|
OfficeError
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
23
23
|
|
|
24
24
|
// packages/safe-bash-presentation-engine/src/notes.ts
|
|
25
25
|
import { SaxesParser } from "saxes";
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
normalized,
|
|
3
3
|
normalizedCharacter
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SU26FZLJ.js";
|
|
5
5
|
import {
|
|
6
6
|
settings
|
|
7
7
|
} from "./chunk-66QPYWEF.js";
|
|
8
8
|
import {
|
|
9
9
|
parseRecords
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-5HUICAWD.js";
|
|
11
11
|
import {
|
|
12
12
|
FileFailure,
|
|
13
13
|
PatchError,
|
|
14
14
|
Work,
|
|
15
15
|
diagnostic
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XITDDJFT.js";
|
|
17
17
|
|
|
18
18
|
// packages/safe-bash-command-apply-patch/src/apply.ts
|
|
19
|
-
import {
|
|
19
|
+
import { PagedStorage as PagedStorage2 } from "@poe-platform/safe-fs/storage";
|
|
20
20
|
import {
|
|
21
21
|
createOutputOperation,
|
|
22
22
|
dirname,
|
|
@@ -657,7 +657,9 @@ var Invocation = class {
|
|
|
657
657
|
const { context, work } = this;
|
|
658
658
|
work.check();
|
|
659
659
|
context.registerCleanup?.(work.close);
|
|
660
|
-
|
|
660
|
+
const summary = new PagedStorage2(context, 2, work.documentCache);
|
|
661
|
+
this.documents.add(summary);
|
|
662
|
+
let summaryBytes = 0;
|
|
661
663
|
try {
|
|
662
664
|
try {
|
|
663
665
|
const input = await this.input();
|
|
@@ -666,17 +668,25 @@ var Invocation = class {
|
|
|
666
668
|
const files = await parseDocument(input, work, metadata);
|
|
667
669
|
await this.confine(files);
|
|
668
670
|
const plans = await this.prepare(files);
|
|
669
|
-
const
|
|
670
|
-
|
|
671
|
-
for (const file of files) {
|
|
672
|
-
const line = `${file.kind === "add" ? "A" : file.kind === "delete" ? "D" : "M"} ${file.destinationLabel ?? file.label}
|
|
671
|
+
const header = "Success. Updated the following files:\n";
|
|
672
|
+
const summaryLine = (file) => `${file.kind === "add" ? "A" : file.kind === "delete" ? "D" : "M"} ${file.destinationLabel ?? file.label}
|
|
673
673
|
`;
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
674
|
+
summaryBytes = header.length;
|
|
675
|
+
for (const file of files) summaryBytes += await work.utf8(summaryLine(file), work.limits.maxOutputBytes - summaryBytes);
|
|
676
|
+
if (summaryBytes > work.limits.maxOutputBytes) throw new PatchError("maxOutputBytes limit exceeded");
|
|
677
|
+
await work.charge(summaryBytes * 2);
|
|
678
|
+
const encoder = new TextEncoder();
|
|
679
|
+
const stage = async (text) => {
|
|
680
|
+
for (let offset = 0; offset < text.length; ) {
|
|
681
|
+
let end = Math.min(text.length, offset + 4096);
|
|
682
|
+
const unit = text.charCodeAt(end - 1);
|
|
683
|
+
if (end < text.length && unit >= 55296 && unit <= 56319) end--;
|
|
684
|
+
await summary.append(encoder.encode(text.slice(offset, end)));
|
|
685
|
+
offset = end;
|
|
686
|
+
}
|
|
687
|
+
};
|
|
688
|
+
await stage(header);
|
|
689
|
+
for (const file of files) await stage(summaryLine(file));
|
|
680
690
|
await work.checkpoint();
|
|
681
691
|
await this.publish(plans);
|
|
682
692
|
work.check();
|
|
@@ -688,8 +698,8 @@ var Invocation = class {
|
|
|
688
698
|
}
|
|
689
699
|
const operation = createOutputOperation(context, context.stdout);
|
|
690
700
|
try {
|
|
691
|
-
for (let offset = 0; offset <
|
|
692
|
-
await writeBytes(operation.output, summary.
|
|
701
|
+
for (let offset = 0; offset < summaryBytes; offset += 16 * 1024) {
|
|
702
|
+
await writeBytes(operation.output, await summary.read(8 + offset, Math.min(16384, summaryBytes - offset)), operation.signal);
|
|
693
703
|
}
|
|
694
704
|
} finally {
|
|
695
705
|
await operation.close();
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
attr,
|
|
3
3
|
child
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
5
5
|
import {
|
|
6
6
|
parseXmlPart
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
8
8
|
import {
|
|
9
9
|
TypeError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-D55REQA3.js";
|
|
11
11
|
import {
|
|
12
12
|
OfficeError
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
14
14
|
|
|
15
15
|
// packages/safe-bash-presentation-engine/src/shape-id.ts
|
|
16
16
|
var ShapeIdAllocator = class {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readRunColor,
|
|
3
3
|
validateRunColor
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NMPED6L5.js";
|
|
5
5
|
import {
|
|
6
6
|
Length
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6SRHWVEB.js";
|
|
8
8
|
import {
|
|
9
9
|
attr,
|
|
10
10
|
child,
|
|
11
11
|
escape
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
13
13
|
import {
|
|
14
14
|
OfficeError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
16
16
|
|
|
17
17
|
// packages/safe-bash-presentation-engine/src/drawing-format.ts
|
|
18
18
|
var fills = ["noFill", "solidFill", "gradFill", "blipFill", "pattFill", "grpFill"];
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
child,
|
|
4
4
|
invalid,
|
|
5
5
|
loadShared
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
7
7
|
import {
|
|
8
8
|
SelectionError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-O675URF4.js";
|
|
10
10
|
import {
|
|
11
11
|
OfficeError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
13
13
|
|
|
14
14
|
// packages/safe-bash-presentation-engine/src/transitions.ts
|
|
15
15
|
import { SaxesParser } from "saxes";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SelectionError,
|
|
3
3
|
readSelectionIndex
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-O675URF4.js";
|
|
5
5
|
import {
|
|
6
6
|
readPackage
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PVGZMLC6.js";
|
|
8
8
|
import {
|
|
9
9
|
readBinary
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-LD7BONZY.js";
|
|
11
11
|
import {
|
|
12
12
|
equationOpaqueElements,
|
|
13
13
|
interpretCompatibility
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Z5BIM5B7.js";
|
|
15
15
|
import {
|
|
16
16
|
parseXmlPart
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
18
18
|
import {
|
|
19
19
|
OfficeError
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
21
21
|
|
|
22
22
|
// packages/safe-bash-presentation-engine/src/text-reading.ts
|
|
23
23
|
import { SaxesParser } from "saxes";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
attr
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
4
4
|
import {
|
|
5
5
|
parseXmlPart
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
7
7
|
import {
|
|
8
8
|
OfficeError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
10
10
|
|
|
11
11
|
// packages/safe-bash-presentation-engine/src/comment-import.ts
|
|
12
12
|
var authorType = "application/vnd.openxmlformats-officedocument.presentationml.commentAuthors+xml";
|