@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
|
@@ -3,27 +3,27 @@ import {
|
|
|
3
3
|
} from "./chunk-UPXFSGQG.js";
|
|
4
4
|
import {
|
|
5
5
|
readShapeGeometry
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-3Y4XZB24.js";
|
|
7
7
|
import {
|
|
8
8
|
attr,
|
|
9
9
|
child
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
11
11
|
import {
|
|
12
12
|
SelectionError,
|
|
13
13
|
readSelectionIndex
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-O675URF4.js";
|
|
15
15
|
import {
|
|
16
16
|
readPackage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PVGZMLC6.js";
|
|
18
18
|
import {
|
|
19
19
|
readBinary
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-LD7BONZY.js";
|
|
21
21
|
import {
|
|
22
22
|
parseXmlPart
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
24
24
|
import {
|
|
25
25
|
OfficeError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
27
27
|
|
|
28
28
|
// packages/safe-bash-presentation-engine/src/images.ts
|
|
29
29
|
import { sha1 } from "@noble/hashes/legacy.js";
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
loadShared,
|
|
7
7
|
required,
|
|
8
8
|
unique
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2Z3WRRFT.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/themes.ts
|
|
15
15
|
var themeColorSlots = [
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readMedia
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-X53AEG36.js";
|
|
4
4
|
import {
|
|
5
5
|
readPackage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PVGZMLC6.js";
|
|
7
7
|
import {
|
|
8
8
|
readBinary
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-LD7BONZY.js";
|
|
10
10
|
import {
|
|
11
11
|
OfficeError,
|
|
12
12
|
resolveOfficeResources
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
14
14
|
|
|
15
15
|
// packages/safe-bash-presentation-engine/src/media-extraction.ts
|
|
16
16
|
var extensions = /* @__PURE__ */ new Map([
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addImage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GKILM4HZ.js";
|
|
4
4
|
import {
|
|
5
5
|
readMedia
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-X53AEG36.js";
|
|
7
7
|
import {
|
|
8
8
|
readImages
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-57DDYKE5.js";
|
|
10
10
|
import {
|
|
11
11
|
admitImage
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-ET2VPDUA.js";
|
|
13
13
|
import {
|
|
14
14
|
attr,
|
|
15
15
|
child,
|
|
@@ -19,17 +19,17 @@ import {
|
|
|
19
19
|
nextRel,
|
|
20
20
|
relPart,
|
|
21
21
|
required
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
23
23
|
import {
|
|
24
24
|
SelectionError
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-O675URF4.js";
|
|
26
26
|
import {
|
|
27
27
|
packageUri,
|
|
28
28
|
relativePartReference
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-U5TWQFZY.js";
|
|
30
30
|
import {
|
|
31
31
|
OfficeError
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
33
33
|
|
|
34
34
|
// packages/safe-bash-presentation-engine/src/media-editing.ts
|
|
35
35
|
var mediaNs = "http://schemas.microsoft.com/office/powerpoint/2010/main";
|
|
@@ -4,13 +4,13 @@ import {
|
|
|
4
4
|
invalid,
|
|
5
5
|
loadShared,
|
|
6
6
|
nextRel
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
8
8
|
import {
|
|
9
9
|
parseXmlPart
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-7PRL6RJ6.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/properties.ts
|
|
16
16
|
import { SaxesParser } from "saxes";
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import {
|
|
2
|
+
targetBytes
|
|
3
|
+
} from "./chunk-73NYFNAS.js";
|
|
4
|
+
|
|
5
|
+
// packages/safe-bash-command-patch/src/patch-gnu-reject.ts
|
|
6
|
+
function timestamp(header) {
|
|
7
|
+
if (!header) return "";
|
|
8
|
+
const separator = header.indexOf(" ");
|
|
9
|
+
return separator < 0 ? "" : header.slice(separator);
|
|
10
|
+
}
|
|
11
|
+
function unifiedRange(start, count, offset) {
|
|
12
|
+
return `${start + offset}${count === 1 ? "" : `,${count}`}`;
|
|
13
|
+
}
|
|
14
|
+
function contextRange(start, count, offset) {
|
|
15
|
+
return count === 0 ? "0" : count === 1 ? `${start + offset}` : `${start + offset},${start + offset + count - 1}`;
|
|
16
|
+
}
|
|
17
|
+
async function* rejectBytes(patch, outcomes, oldName, newName, indexName, reverse, budget, format) {
|
|
18
|
+
const normal = patch.format === "normal";
|
|
19
|
+
const context = format === void 0 ? patch.format === "context" || normal : format === "context";
|
|
20
|
+
const names = [normal ? "/dev/null" : oldName ?? "/dev/null", normal ? "/dev/null" : newName ?? "/dev/null"];
|
|
21
|
+
const times = normal ? ["", ""] : [timestamp(patch.oldHeader), timestamp(patch.newHeader)];
|
|
22
|
+
if (reverse) {
|
|
23
|
+
names.reverse();
|
|
24
|
+
times.reverse();
|
|
25
|
+
}
|
|
26
|
+
const add = async function* (text) {
|
|
27
|
+
budget.output(text);
|
|
28
|
+
yield* targetBytes(text);
|
|
29
|
+
};
|
|
30
|
+
if (indexName !== void 0) yield* add(`Index: ${indexName}
|
|
31
|
+
`);
|
|
32
|
+
yield* add(`${context ? "***" : "---"} ${names[0]}${times[0]}
|
|
33
|
+
${context ? "---" : "+++"} ${names[1]}${times[1]}
|
|
34
|
+
`);
|
|
35
|
+
for (const outcome of outcomes) {
|
|
36
|
+
if (!outcome.failed) continue;
|
|
37
|
+
budget.step();
|
|
38
|
+
{
|
|
39
|
+
const c = budget.checkpoint();
|
|
40
|
+
if (c) await c;
|
|
41
|
+
}
|
|
42
|
+
const { hunk, outputOffset } = outcome;
|
|
43
|
+
if (!context) {
|
|
44
|
+
yield* add(`@@ -${unifiedRange(hunk.oldStart, hunk.oldCount, outputOffset)} +${unifiedRange(hunk.newStart, hunk.newCount, outputOffset)} @@${hunk.section ?? ""}
|
|
45
|
+
`);
|
|
46
|
+
for (let start = 0; start < hunk.lines.length; ) {
|
|
47
|
+
budget.step();
|
|
48
|
+
{
|
|
49
|
+
const c = budget.checkpoint();
|
|
50
|
+
if (c) await c;
|
|
51
|
+
}
|
|
52
|
+
const line = hunk.lines[start];
|
|
53
|
+
if (line.kind === " ") {
|
|
54
|
+
yield* add(" ");
|
|
55
|
+
yield* add(line.text);
|
|
56
|
+
start++;
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
let end = start;
|
|
60
|
+
while (end < hunk.lines.length && hunk.lines[end].kind !== " ") {
|
|
61
|
+
end++;
|
|
62
|
+
budget.step();
|
|
63
|
+
const c = budget.checkpoint();
|
|
64
|
+
if (c) await c;
|
|
65
|
+
}
|
|
66
|
+
for (const kind of ["-", "+"]) for (let index = start; index < end; index++) {
|
|
67
|
+
const line2 = hunk.lines[index];
|
|
68
|
+
if (line2.kind === kind) {
|
|
69
|
+
yield* add(kind);
|
|
70
|
+
yield* add(line2.text);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
start = end;
|
|
74
|
+
}
|
|
75
|
+
} else {
|
|
76
|
+
yield* add(`***************${hunk.section ?? ""}
|
|
77
|
+
*** ${contextRange(hunk.oldStart, hunk.oldCount, outputOffset)}${normal ? "" : " ****"}
|
|
78
|
+
`);
|
|
79
|
+
for (const kind of ["-", "+"]) {
|
|
80
|
+
if (kind === "+") yield* add(`--- ${contextRange(hunk.newStart, hunk.newCount, outputOffset)}${normal ? " -----" : " ----"}
|
|
81
|
+
`);
|
|
82
|
+
for (let start = 0; start < hunk.lines.length; ) {
|
|
83
|
+
budget.step();
|
|
84
|
+
const c = budget.checkpoint();
|
|
85
|
+
if (c) await c;
|
|
86
|
+
const line = hunk.lines[start];
|
|
87
|
+
if (line.kind === " ") {
|
|
88
|
+
yield* add(" ");
|
|
89
|
+
yield* add(line.text);
|
|
90
|
+
start++;
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
let end = start, removed = false, added = false;
|
|
94
|
+
while (end < hunk.lines.length && hunk.lines[end].kind !== " ") {
|
|
95
|
+
removed ||= hunk.lines[end].kind === "-";
|
|
96
|
+
added ||= hunk.lines[end].kind === "+";
|
|
97
|
+
end++;
|
|
98
|
+
budget.step();
|
|
99
|
+
const c2 = budget.checkpoint();
|
|
100
|
+
if (c2) await c2;
|
|
101
|
+
}
|
|
102
|
+
for (let index = start; index < end; index++) if (hunk.lines[index].kind === kind) {
|
|
103
|
+
yield* add(`${!normal && removed && added ? "!" : kind} `);
|
|
104
|
+
yield* add(hunk.lines[index].text);
|
|
105
|
+
}
|
|
106
|
+
start = end;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export {
|
|
114
|
+
rejectBytes
|
|
115
|
+
};
|
|
@@ -4,26 +4,26 @@ import {
|
|
|
4
4
|
readConnector,
|
|
5
5
|
removeDrawingObjects,
|
|
6
6
|
validateConnectorUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4PBNMKAT.js";
|
|
8
8
|
import {
|
|
9
9
|
nodeFor,
|
|
10
10
|
selected,
|
|
11
11
|
validateSelection
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-EJTNVXWF.js";
|
|
13
13
|
import {
|
|
14
14
|
ShapeIdAllocator
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-BBAB7LC4.js";
|
|
16
16
|
import {
|
|
17
17
|
child,
|
|
18
18
|
loadShared,
|
|
19
19
|
required
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
21
21
|
import {
|
|
22
22
|
SelectionError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-O675URF4.js";
|
|
24
24
|
import {
|
|
25
25
|
OfficeError
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
27
27
|
|
|
28
28
|
// packages/safe-bash-presentation-engine/src/connector-operations.ts
|
|
29
29
|
function optionsFor(options, action) {
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readTextBodies,
|
|
3
3
|
validateTextReadingOptions
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-C5KLFZGT.js";
|
|
5
5
|
import {
|
|
6
6
|
loadShared
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2Z3WRRFT.js";
|
|
8
8
|
import {
|
|
9
9
|
SelectionError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-O675URF4.js";
|
|
11
11
|
import {
|
|
12
12
|
protectedEquationNodes
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-Z5BIM5B7.js";
|
|
14
14
|
import {
|
|
15
15
|
parseXmlPart
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7PRL6RJ6.js";
|
|
17
17
|
import {
|
|
18
18
|
OfficeError
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-X6RHJ6YN.js";
|
|
20
20
|
|
|
21
21
|
// packages/safe-bash-presentation-engine/src/text-replacement.ts
|
|
22
22
|
function authored(value, maximum) {
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// packages/safe-bash-command-html-to-markdown/dist/chunk-TRTQSARU.js
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
9
|
+
try {
|
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
+
} catch (e) {
|
|
12
|
+
throw mod = 0, e;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
var __copyProps = (to, from, except, desc) => {
|
|
16
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
17
|
+
for (let key of __getOwnPropNames(from))
|
|
18
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
19
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
24
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
25
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
26
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
27
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
28
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
29
|
+
mod
|
|
30
|
+
));
|
|
31
|
+
|
|
32
|
+
export {
|
|
33
|
+
__commonJS,
|
|
34
|
+
__toESM
|
|
35
|
+
};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
// packages/safe-bash-command-patch/src/stored-target.ts
|
|
2
|
+
import { PagedStorage, PagedStorageCache } from "@poe-platform/safe-fs/storage";
|
|
3
|
+
import { IndexedDocument, closeDocumentResources } from "../../safe-bash-diff-engine/document.js";
|
|
4
|
+
import { ToolError, host } from "../../safe-bash-diff-engine/shared.js";
|
|
5
|
+
async function* targetBytes(line) {
|
|
6
|
+
if (typeof line !== "string") {
|
|
7
|
+
const range = await line.document.line(line.index);
|
|
8
|
+
yield* line.document.range(range.start, range.end);
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
for (let start = 0; start < line.length; ) {
|
|
12
|
+
let end = Math.min(start + 4096, line.length);
|
|
13
|
+
const last = line.charCodeAt(end - 1);
|
|
14
|
+
if (end < line.length && last >= 55296 && last <= 56319) end--;
|
|
15
|
+
yield new TextEncoder().encode(line.slice(start, end));
|
|
16
|
+
start = end;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
async function* normalized(line, whitespace) {
|
|
20
|
+
if (!whitespace) {
|
|
21
|
+
yield* targetBytes(line);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
let pending = false, cr = false;
|
|
25
|
+
let output = [];
|
|
26
|
+
for await (const block of targetBytes(line)) {
|
|
27
|
+
for (const byte of block) {
|
|
28
|
+
if (cr) {
|
|
29
|
+
if (byte !== 10 && pending) output.push(32);
|
|
30
|
+
output.push(13);
|
|
31
|
+
cr = false;
|
|
32
|
+
pending = false;
|
|
33
|
+
}
|
|
34
|
+
if (byte === 32 || byte === 9) pending = true;
|
|
35
|
+
else if (byte === 13 && pending) cr = true;
|
|
36
|
+
else {
|
|
37
|
+
if (pending && byte !== 10) output.push(32);
|
|
38
|
+
pending = false;
|
|
39
|
+
output.push(byte);
|
|
40
|
+
}
|
|
41
|
+
if (output.length >= 4096) {
|
|
42
|
+
yield Uint8Array.from(output);
|
|
43
|
+
output = [];
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (cr) output.push(32, 13);
|
|
48
|
+
if (output.length) yield Uint8Array.from(output);
|
|
49
|
+
}
|
|
50
|
+
async function equalTargetLines(left, right, budget, whitespace = false) {
|
|
51
|
+
const a = normalized(left, whitespace)[Symbol.asyncIterator]();
|
|
52
|
+
const b = normalized(right, whitespace)[Symbol.asyncIterator]();
|
|
53
|
+
try {
|
|
54
|
+
let x = await a.next(), y = await b.next(), i = 0, j = 0;
|
|
55
|
+
while (!x.done && !y.done) {
|
|
56
|
+
const count = Math.min(x.value.length - i, y.value.length - j);
|
|
57
|
+
budget.step(count);
|
|
58
|
+
for (let k = 0; k < count; k++) if (x.value[i + k] !== y.value[j + k]) return false;
|
|
59
|
+
i += count;
|
|
60
|
+
j += count;
|
|
61
|
+
if (i === x.value.length) {
|
|
62
|
+
x = await a.next();
|
|
63
|
+
i = 0;
|
|
64
|
+
}
|
|
65
|
+
if (j === y.value.length) {
|
|
66
|
+
y = await b.next();
|
|
67
|
+
j = 0;
|
|
68
|
+
}
|
|
69
|
+
const checkpoint = budget.checkpoint();
|
|
70
|
+
if (checkpoint) await checkpoint;
|
|
71
|
+
}
|
|
72
|
+
return !!x.done && !!y.done;
|
|
73
|
+
} finally {
|
|
74
|
+
await a.return?.();
|
|
75
|
+
await b.return?.();
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
var TargetDocuments = class {
|
|
79
|
+
constructor(budget) {
|
|
80
|
+
this.budget = budget;
|
|
81
|
+
this.documentBudget = {
|
|
82
|
+
context: budget.context,
|
|
83
|
+
documentCache: this.cache,
|
|
84
|
+
step: budget.step.bind(budget),
|
|
85
|
+
checkpoint: budget.checkpoint.bind(budget)
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
budget;
|
|
89
|
+
cache = new PagedStorageCache(16);
|
|
90
|
+
documents = /* @__PURE__ */ new Set();
|
|
91
|
+
documentBudget;
|
|
92
|
+
async load(source) {
|
|
93
|
+
const document = new IndexedDocument(this.documentBudget, 2);
|
|
94
|
+
this.documents.add(document);
|
|
95
|
+
await document.load(source);
|
|
96
|
+
if (document.binary) throw new ToolError("binary input is unsupported (NUL byte)");
|
|
97
|
+
if (!document.validUtf8) throw new ToolError("binary input is unsupported (invalid UTF-8)");
|
|
98
|
+
return document;
|
|
99
|
+
}
|
|
100
|
+
async read(path) {
|
|
101
|
+
const iterator = this.budget.diffSource(path);
|
|
102
|
+
const context = this.budget.context;
|
|
103
|
+
return this.load({ async *[Symbol.asyncIterator]() {
|
|
104
|
+
try {
|
|
105
|
+
for (; ; ) {
|
|
106
|
+
const next = await host(context, () => iterator.next());
|
|
107
|
+
if (next.done) break;
|
|
108
|
+
yield next.value;
|
|
109
|
+
}
|
|
110
|
+
} finally {
|
|
111
|
+
const closed = iterator.return(void 0);
|
|
112
|
+
if (context.signal.aborted) void closed.catch(() => {
|
|
113
|
+
});
|
|
114
|
+
else await closed;
|
|
115
|
+
}
|
|
116
|
+
} });
|
|
117
|
+
}
|
|
118
|
+
async concat(left, right) {
|
|
119
|
+
return this.load({ async *[Symbol.asyncIterator]() {
|
|
120
|
+
yield* left.range(0, left.size);
|
|
121
|
+
yield* right.range(0, right.size);
|
|
122
|
+
} });
|
|
123
|
+
}
|
|
124
|
+
async release(document) {
|
|
125
|
+
await document.close();
|
|
126
|
+
this.documents.delete(document);
|
|
127
|
+
}
|
|
128
|
+
close() {
|
|
129
|
+
return closeDocumentResources([...this.documents]);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
var TargetOutput = class {
|
|
133
|
+
constructor(documents) {
|
|
134
|
+
this.documents = documents;
|
|
135
|
+
this.data = new PagedStorage(documents.budget.context, 2);
|
|
136
|
+
}
|
|
137
|
+
documents;
|
|
138
|
+
data;
|
|
139
|
+
size = 0;
|
|
140
|
+
unterminated = false;
|
|
141
|
+
length = 0;
|
|
142
|
+
async append(line) {
|
|
143
|
+
if (this.unterminated) await this.write(new Uint8Array([10]));
|
|
144
|
+
this.unterminated = false;
|
|
145
|
+
for await (const bytes of targetBytes(line)) {
|
|
146
|
+
await this.write(bytes);
|
|
147
|
+
this.unterminated = bytes.at(-1) !== 10;
|
|
148
|
+
}
|
|
149
|
+
this.length++;
|
|
150
|
+
}
|
|
151
|
+
async write(bytes) {
|
|
152
|
+
this.size += bytes.length;
|
|
153
|
+
if (this.size > this.documents.budget.limits.maxOutputBytes) throw new ToolError("output byte limit exceeded");
|
|
154
|
+
await this.data.append(bytes);
|
|
155
|
+
}
|
|
156
|
+
async finish() {
|
|
157
|
+
const data = this.data, size = this.size;
|
|
158
|
+
this.documents.budget.outputLength(size);
|
|
159
|
+
return this.documents.load({ async *[Symbol.asyncIterator]() {
|
|
160
|
+
for (let offset = 0; offset < size; offset += 16384) yield await data.read(8 + offset, Math.min(16384, size - offset));
|
|
161
|
+
} });
|
|
162
|
+
}
|
|
163
|
+
close() {
|
|
164
|
+
return this.data.close();
|
|
165
|
+
}
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
export {
|
|
169
|
+
targetBytes,
|
|
170
|
+
equalTargetLines,
|
|
171
|
+
TargetDocuments,
|
|
172
|
+
TargetOutput
|
|
173
|
+
};
|