@poe-platform/safe-bash 0.1.769 → 0.1.771
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/image-ast/index.browser.js +1 -1
- package/dist/image-ast/index.js +1 -1
- package/dist/pdf-ast/index.js +1 -1
- package/dist/safe-bash/command-chunks/{chunk-2JQONXIY.js → chunk-C4AAJTXF.js} +1 -1
- package/dist/safe-bash/command-chunks/{chunk-G55GHZV2.js → chunk-M2XU2YCK.js} +2 -2
- package/dist/safe-bash/command-chunks/{chunk-A5S6M37L.js → chunk-NBENXODJ.js} +1 -1
- package/dist/safe-bash/core.browser.js +12 -10
- package/dist/safe-bash/shell/runtime.js +21 -10
- package/dist/safe-bash-command-ffmpeg/index.js +1 -1
- package/dist/safe-bash-command-git/git_rust.wasm +0 -0
- package/dist/safe-bash-command-git/wasm.generated.js +1 -1
- package/dist/safe-bash-command-imagemagick/index.js +2 -2
- package/dist/safe-bash-command-pandoc/command.js +3 -3
- package/dist/safe-bash-command-pandoc/index.js +3 -3
- package/dist/safe-bash-command-pdfimages/index.js +1 -1
- package/dist/safe-bash-command-pdfinfo/index.js +1 -1
- package/dist/safe-bash-command-pdftk/index.js +1 -1
- package/dist/safe-bash-command-pdftoppm/index.js +1 -1
- package/dist/safe-bash-command-pdftotext/index.js +1 -1
- package/dist/safe-bash-command-qpdf/index.js +1 -1
- package/dist/safe-bash-command-sips/index.js +2 -2
- package/dist/safe-bash-command-soffice/index.js +1 -1
- package/dist/safe-bash-command-ssconvert/index.js +1 -1
- package/dist/safe-bash-command-wkhtmltopdf/index.js +1 -1
- package/package.json +2 -2
|
@@ -43899,7 +43899,7 @@ function evaluateContentStreamToDisplayList(params) {
|
|
|
43899
43899
|
const groupType = group ? params.cosDoc.resolve(dictGet(group, "S")) : void 0;
|
|
43900
43900
|
const isolation = group ? params.cosDoc.resolve(dictGet(group, "I")) : void 0;
|
|
43901
43901
|
const isolated = isolation?.kind === "boolean" && isolation.value;
|
|
43902
|
-
const compositeGroup = !maskGroup && groupType?.kind === "name" && groupType.decoded === "Transparency" && (isolated || st.fillAlpha !== 1 || !!st.softMask || st.blendMode !== "Normal" && st.blendMode !== "Compatible");
|
|
43902
|
+
const compositeGroup = !maskGroup && groupType?.kind === "name" && groupType.decoded === "Transparency" && (isolated || st.fillAlpha !== 1 || !!st.softMask || !!st.blendMode && st.blendMode !== "Normal" && st.blendMode !== "Compatible");
|
|
43903
43903
|
const formStreamBytes = params.cosDoc.decodeStream(form);
|
|
43904
43904
|
const formNodes = parseContentStream(formStreamBytes);
|
|
43905
43905
|
const formResDict = params.cosDoc.resolveDict(dictGet(form.dict, "Resources")) ?? activeResources;
|
package/dist/image-ast/index.js
CHANGED
|
@@ -43899,7 +43899,7 @@ function evaluateContentStreamToDisplayList(params) {
|
|
|
43899
43899
|
const groupType = group ? params.cosDoc.resolve(dictGet(group, "S")) : void 0;
|
|
43900
43900
|
const isolation = group ? params.cosDoc.resolve(dictGet(group, "I")) : void 0;
|
|
43901
43901
|
const isolated = isolation?.kind === "boolean" && isolation.value;
|
|
43902
|
-
const compositeGroup = !maskGroup && groupType?.kind === "name" && groupType.decoded === "Transparency" && (isolated || st.fillAlpha !== 1 || !!st.softMask || st.blendMode !== "Normal" && st.blendMode !== "Compatible");
|
|
43902
|
+
const compositeGroup = !maskGroup && groupType?.kind === "name" && groupType.decoded === "Transparency" && (isolated || st.fillAlpha !== 1 || !!st.softMask || !!st.blendMode && st.blendMode !== "Normal" && st.blendMode !== "Compatible");
|
|
43903
43903
|
const formStreamBytes = params.cosDoc.decodeStream(form);
|
|
43904
43904
|
const formNodes = parseContentStream(formStreamBytes);
|
|
43905
43905
|
const formResDict = params.cosDoc.resolveDict(dictGet(form.dict, "Resources")) ?? activeResources;
|
package/dist/pdf-ast/index.js
CHANGED
|
@@ -36613,7 +36613,7 @@ function evaluateContentStreamToDisplayList(params) {
|
|
|
36613
36613
|
const groupType = group ? params.cosDoc.resolve(dictGet(group, "S")) : void 0;
|
|
36614
36614
|
const isolation = group ? params.cosDoc.resolve(dictGet(group, "I")) : void 0;
|
|
36615
36615
|
const isolated = isolation?.kind === "boolean" && isolation.value;
|
|
36616
|
-
const compositeGroup = !maskGroup && groupType?.kind === "name" && groupType.decoded === "Transparency" && (isolated || st.fillAlpha !== 1 || !!st.softMask || st.blendMode !== "Normal" && st.blendMode !== "Compatible");
|
|
36616
|
+
const compositeGroup = !maskGroup && groupType?.kind === "name" && groupType.decoded === "Transparency" && (isolated || st.fillAlpha !== 1 || !!st.softMask || !!st.blendMode && st.blendMode !== "Normal" && st.blendMode !== "Compatible");
|
|
36617
36617
|
const formStreamBytes = params.cosDoc.decodeStream(form);
|
|
36618
36618
|
const formNodes = parseContentStream(formStreamBytes);
|
|
36619
36619
|
const formResDict = params.cosDoc.resolveDict(dictGet(form.dict, "Resources")) ?? activeResources;
|
|
@@ -32408,7 +32408,7 @@ function evaluateContentStreamToDisplayList(params) {
|
|
|
32408
32408
|
const groupType = group ? params.cosDoc.resolve(dictGet(group, "S")) : void 0;
|
|
32409
32409
|
const isolation = group ? params.cosDoc.resolve(dictGet(group, "I")) : void 0;
|
|
32410
32410
|
const isolated = isolation?.kind === "boolean" && isolation.value;
|
|
32411
|
-
const compositeGroup = !maskGroup && groupType?.kind === "name" && groupType.decoded === "Transparency" && (isolated || st.fillAlpha !== 1 || !!st.softMask || st.blendMode !== "Normal" && st.blendMode !== "Compatible");
|
|
32411
|
+
const compositeGroup = !maskGroup && groupType?.kind === "name" && groupType.decoded === "Transparency" && (isolated || st.fillAlpha !== 1 || !!st.softMask || !!st.blendMode && st.blendMode !== "Normal" && st.blendMode !== "Compatible");
|
|
32412
32412
|
const formStreamBytes = params.cosDoc.decodeStream(form);
|
|
32413
32413
|
const formNodes = parseContentStream(formStreamBytes);
|
|
32414
32414
|
const formResDict = params.cosDoc.resolveDict(dictGet(form.dict, "Resources")) ?? activeResources;
|
|
@@ -48,11 +48,11 @@ import {
|
|
|
48
48
|
trimImage,
|
|
49
49
|
unflattenImage,
|
|
50
50
|
unpremultiplyRgbaImage
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-NBENXODJ.js";
|
|
52
52
|
import {
|
|
53
53
|
PdfDocument,
|
|
54
54
|
encodePng
|
|
55
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-C4AAJTXF.js";
|
|
56
56
|
import {
|
|
57
57
|
createLuaFilterCapability
|
|
58
58
|
} from "./chunk-Y2KHC6TZ.js";
|
|
@@ -70469,14 +70469,11 @@ var Runtime = class _Runtime {
|
|
|
70469
70469
|
if (p.commands.some((c) => c.kind === "simple" && (c.words[0]?.plain === "envsubst" || c.words[0]?.plain === "uname" || c.words[0]?.plain === "id" || c.words[0]?.plain === "whoami" || c.words[0]?.plain === "hostname" || c.words[0]?.plain === "nproc" || c.words[0]?.plain === "locale" || c.words[0]?.plain === "getopt" || c.words[0]?.plain === "cal" || c.words[0]?.plain === "ncal" || c.words[0]?.plain === "date" || c.words[0]?.plain === "printenv" || c.words[0]?.plain === "env" || c.words[0]?.plain === "df" || c.words[0]?.plain === "du" || c.words[0]?.plain === "stat" || c.words[0]?.plain === "which")) && (rawState.allexport || [...assigned].some((v) => rawState.exported.has(v)))) {
|
|
70470
70470
|
return false;
|
|
70471
70471
|
}
|
|
70472
|
+
if (usesInduction) return false;
|
|
70472
70473
|
const savedBytes = this.budget.bytes;
|
|
70473
70474
|
const savedCmds = this.budget.commands;
|
|
70474
70475
|
const savedStatus = rawState.status;
|
|
70475
70476
|
const savedSubStatus = rawState.substitutionStatus;
|
|
70476
|
-
const savedIndVal = indName !== void 0 ? rawState.variables[indName] : void 0;
|
|
70477
|
-
if (usesInduction && indName !== void 0 && savedIndVal === void 0) {
|
|
70478
|
-
rawState.variables[indName] = "1";
|
|
70479
|
-
}
|
|
70480
70477
|
if (this._activeSyncLoopHasFileMutations || p.commands.some((c) => c.kind === "simple" && (c.words[0]?.plain === "mktemp" || c.words[0]?.plain === "shuf" || c.words[0]?.plain === "sponge" || c.words[0]?.plain === "truncate" || c.words[0]?.plain === "install" || c.words[0]?.plain === "apply_patch" || c.words[0]?.plain === "split" || c.words[0]?.plain === "csplit" || c.words[0]?.plain === "tee" || c.words[0]?.plain === "touch" || c.words[0]?.plain === "cp" || c.words[0]?.plain === "mv" || c.words[0]?.plain === "rmdir" || c.words[0]?.plain === "chmod" || c.words[0]?.plain === "patch" || c.words[0]?.plain === "mkdir" || c.words[0]?.plain === "rm" || c.words[0]?.plain === "ln" || c.words[0]?.plain === "soffice" || c.words[0]?.plain === "libreoffice" || c.words[0]?.plain === "mmdc" || c.words[0]?.plain === "sips" || c.words[0]?.plain === "qpdf" || c.words[0]?.plain === "pdftk" || c.words[0]?.plain === "pdftotext" || c.words[0]?.plain === "pdftohtml" || c.words[0]?.plain === "pdfimages" || c.words[0]?.plain === "pdfdetach" || c.words[0]?.plain === "pdftoppm" || c.words[0]?.plain === "pdftocairo" || c.words[0]?.plain === "sqlite3" || c.words[0]?.plain === "openssl" || c.words[0]?.plain === "tar" || c.words[0]?.plain === "unzip" || c.words[0]?.plain === "zip" || c.words[0]?.plain === "dd" || c.words[0]?.plain === "magick" || c.words[0]?.plain === "convert" || c.words[0]?.plain === "mogrify" || c.words[0]?.plain === "composite" || c.words[0]?.plain === "montage" || c.words[0]?.plain === "compare" || c.words[0]?.plain === "exiftool" || c.words[0]?.plain === "pandoc" || c.words[0]?.plain === "wkhtmltopdf" || c.words[0]?.plain === "gpg" || c.words[0]?.plain === "ssh-keygen" || c.words[0]?.plain === "ffmpeg" || c.words[0]?.plain === "git" || c.words[0]?.plain === "gh" || c.words[0]?.plain === "ssconvert" || c.words[0]?.plain === "op"))) {
|
|
70481
70478
|
usesInduction = true;
|
|
70482
70479
|
}
|
|
@@ -70489,9 +70486,6 @@ var Runtime = class _Runtime {
|
|
|
70489
70486
|
res = void 0;
|
|
70490
70487
|
} finally {
|
|
70491
70488
|
this._inSyncLoopPreflight = prevPreflight;
|
|
70492
|
-
if (usesInduction && indName !== void 0 && savedIndVal === void 0) {
|
|
70493
|
-
delete rawState.variables[indName];
|
|
70494
|
-
}
|
|
70495
70489
|
}
|
|
70496
70490
|
const outBytes = this.budget.bytes - savedBytes;
|
|
70497
70491
|
const exitStatus = rawState.status;
|
|
@@ -85672,6 +85666,10 @@ ${prefix2} line ${offset + line}: \`${source.split("\n")[line - 1] ?? ""}'
|
|
|
85672
85666
|
}
|
|
85673
85667
|
}
|
|
85674
85668
|
if (files.length === 0) files.push("-");
|
|
85669
|
+
if (rawLines === void 0) {
|
|
85670
|
+
if (files.includes("-")) return void 0;
|
|
85671
|
+
rawLines = [];
|
|
85672
|
+
}
|
|
85675
85673
|
if (!files.every((f) => f === "-")) {
|
|
85676
85674
|
if (cwd === void 0) return rawLines.length === 0 ? [] : void 0;
|
|
85677
85675
|
const stdinCount = files.filter((f) => f === "-").length;
|
|
@@ -86942,7 +86940,7 @@ ${prefix2} line ${offset + line}: \`${source.split("\n")[line - 1] ?? ""}'
|
|
|
86942
86940
|
const absVal = neg2 ? -v.c : v.c;
|
|
86943
86941
|
return (neg2 && v.c !== 0n ? "-" : "") + absVal.toString(obase).toUpperCase();
|
|
86944
86942
|
}
|
|
86945
|
-
if (v.s === 0) return v.c.toString();
|
|
86943
|
+
if (v.c === 0n || v.s === 0) return v.c.toString();
|
|
86946
86944
|
const neg = v.c < 0n;
|
|
86947
86945
|
const absStr = (neg ? -v.c : v.c).toString().padStart(v.s + 1, "0");
|
|
86948
86946
|
const intStr = absStr.slice(0, absStr.length - v.s);
|
|
@@ -87761,12 +87759,16 @@ unsigned int ${ident}_len = ${view.byteLength};
|
|
|
87761
87759
|
else if (a === "-A" && i + 1 < opArgs.length && ["o", "x", "d", "n"].includes(opArgs[i + 1])) {
|
|
87762
87760
|
addrRadix = opArgs[++i];
|
|
87763
87761
|
} else if (a === "-tx1" || a === "-tu1" || a === "-to1" || a === "-tc") {
|
|
87762
|
+
if (typeSpec !== void 0) return void 0;
|
|
87764
87763
|
typeSpec = a.slice(2);
|
|
87765
87764
|
} else if (a === "-c") {
|
|
87765
|
+
if (typeSpec !== void 0) return void 0;
|
|
87766
87766
|
typeSpec = "c";
|
|
87767
87767
|
} else if (a === "-b") {
|
|
87768
|
+
if (typeSpec !== void 0) return void 0;
|
|
87768
87769
|
typeSpec = "o1";
|
|
87769
87770
|
} else if (a === "-t" && i + 1 < opArgs.length && ["x1", "u1", "o1", "c"].includes(opArgs[i + 1])) {
|
|
87771
|
+
if (typeSpec !== void 0) return void 0;
|
|
87770
87772
|
typeSpec = opArgs[++i];
|
|
87771
87773
|
} else if (a === "-v" || a === "--output-duplicates") verbose2 = true;
|
|
87772
87774
|
else if (a === "-w" && i + 1 < opArgs.length && /^[1-9][0-9]{0,3}$/.test(opArgs[i + 1])) width = Number(opArgs[++i]);
|
|
@@ -90452,7 +90454,7 @@ unsigned int ${ident}_len = ${view.byteLength};
|
|
|
90452
90454
|
let cjLines;
|
|
90453
90455
|
if (w0Plain === "comm") cjLines = this.evalSyncComm(stdinLines, allArgs, rawState.cwd);
|
|
90454
90456
|
else if (w0Plain === "join") cjLines = this.evalSyncJoin(stdinLines, allArgs, rawState.cwd);
|
|
90455
|
-
else if (w0Plain === "paste") cjLines = this.evalSyncPaste(stdinLines
|
|
90457
|
+
else if (w0Plain === "paste") cjLines = this.evalSyncPaste(stdinLines, allArgs, rawState.cwd);
|
|
90456
90458
|
else if (w0Plain === "factor") cjLines = this.evalSyncFactor(stdinLines, allArgs);
|
|
90457
90459
|
else if (w0Plain === "tsort") cjLines = this.evalSyncTsort(stdinLines, allArgs, rawState.cwd);
|
|
90458
90460
|
else if (w0Plain === "jq") cjLines = this.evalSyncJq(void 0, allArgs, rawState.cwd);
|
|
@@ -90609,7 +90611,7 @@ unsigned int ${ident}_len = ${view.byteLength};
|
|
|
90609
90611
|
const nlRes = !hasSingleHereStringRedir && !hasSingleStdinRedir && opArgs.some((a) => !a.startsWith("-")) ? this.evalSyncNl([], allArgs, rawState.cwd) : this.evalSyncNl(rawLines, opArgs, rawState.cwd);
|
|
90610
90612
|
if (nlRes !== void 0) fileRes = renderLines(nlRes);
|
|
90611
90613
|
} else if (w0Plain === "paste") {
|
|
90612
|
-
const pasteRes = hasSingleHereStringRedir || hasSingleStdinRedir ? this.evalSyncPaste(rawLines, opArgs, rawState.cwd) : this.evalSyncPaste(
|
|
90614
|
+
const pasteRes = hasSingleHereStringRedir || hasSingleStdinRedir ? this.evalSyncPaste(rawLines, opArgs, rawState.cwd) : this.evalSyncPaste(void 0, allArgs, rawState.cwd);
|
|
90613
90615
|
if (pasteRes !== void 0) fileRes = renderLines(pasteRes);
|
|
90614
90616
|
} else if (w0Plain === "comm") {
|
|
90615
90617
|
const commRes = hasSingleHereStringRedir || hasSingleStdinRedir ? this.evalSyncComm(rawLines, opArgs, rawState.cwd) : this.evalSyncComm([], allArgs, rawState.cwd);
|
|
@@ -13907,14 +13907,15 @@ export class Runtime {
|
|
|
13907
13907
|
if (p.commands.some(c => c.kind === "simple" && (c.words[0]?.plain === "envsubst" || c.words[0]?.plain === "uname" || c.words[0]?.plain === "id" || c.words[0]?.plain === "whoami" || c.words[0]?.plain === "hostname" || c.words[0]?.plain === "nproc" || c.words[0]?.plain === "locale" || c.words[0]?.plain === "getopt" || c.words[0]?.plain === "cal" || c.words[0]?.plain === "ncal" || c.words[0]?.plain === "date" || c.words[0]?.plain === "printenv" || c.words[0]?.plain === "env" || c.words[0]?.plain === "df" || c.words[0]?.plain === "du" || c.words[0]?.plain === "stat" || c.words[0]?.plain === "which")) && (rawState.allexport || [...assigned].some(v => rawState.exported.has(v)))) {
|
|
13908
13908
|
return false;
|
|
13909
13909
|
}
|
|
13910
|
+
// A successful probe cannot prove totality for later induction values.
|
|
13911
|
+
// The loop steps cannot resume a declined expansion after earlier effects.
|
|
13912
|
+
// Leave dynamic words to the separately checked path or normal execution.
|
|
13913
|
+
if (usesInduction)
|
|
13914
|
+
return false;
|
|
13910
13915
|
const savedBytes = this.budget.bytes;
|
|
13911
13916
|
const savedCmds = this.budget.commands;
|
|
13912
13917
|
const savedStatus = rawState.status;
|
|
13913
13918
|
const savedSubStatus = rawState.substitutionStatus;
|
|
13914
|
-
const savedIndVal = indName !== undefined ? rawState.variables[indName] : undefined;
|
|
13915
|
-
if (usesInduction && indName !== undefined && savedIndVal === undefined) {
|
|
13916
|
-
rawState.variables[indName] = "1";
|
|
13917
|
-
}
|
|
13918
13919
|
if (this._activeSyncLoopHasFileMutations || p.commands.some(c => c.kind === "simple" && (c.words[0]?.plain === "mktemp" || c.words[0]?.plain === "shuf" || c.words[0]?.plain === "sponge" || c.words[0]?.plain === "truncate" || c.words[0]?.plain === "install" || c.words[0]?.plain === "apply_patch" || c.words[0]?.plain === "split" || c.words[0]?.plain === "csplit" || c.words[0]?.plain === "tee" || c.words[0]?.plain === "touch" || c.words[0]?.plain === "cp" || c.words[0]?.plain === "mv" || c.words[0]?.plain === "rmdir" || c.words[0]?.plain === "chmod" || c.words[0]?.plain === "patch" || c.words[0]?.plain === "mkdir" || c.words[0]?.plain === "rm" || c.words[0]?.plain === "ln" || c.words[0]?.plain === "soffice" || c.words[0]?.plain === "libreoffice" || c.words[0]?.plain === "mmdc" || c.words[0]?.plain === "sips" || c.words[0]?.plain === "qpdf" || c.words[0]?.plain === "pdftk" || c.words[0]?.plain === "pdftotext" || c.words[0]?.plain === "pdftohtml" || c.words[0]?.plain === "pdfimages" || c.words[0]?.plain === "pdfdetach" || c.words[0]?.plain === "pdftoppm" || c.words[0]?.plain === "pdftocairo" || c.words[0]?.plain === "sqlite3" || c.words[0]?.plain === "openssl" || c.words[0]?.plain === "tar" || c.words[0]?.plain === "unzip" || c.words[0]?.plain === "zip" || c.words[0]?.plain === "dd" || c.words[0]?.plain === "magick" || c.words[0]?.plain === "convert" || c.words[0]?.plain === "mogrify" || c.words[0]?.plain === "composite" || c.words[0]?.plain === "montage" || c.words[0]?.plain === "compare" || c.words[0]?.plain === "exiftool" || c.words[0]?.plain === "pandoc" || c.words[0]?.plain === "wkhtmltopdf" || c.words[0]?.plain === "gpg" || c.words[0]?.plain === "ssh-keygen" || c.words[0]?.plain === "ffmpeg" || c.words[0]?.plain === "git" || c.words[0]?.plain === "gh" || c.words[0]?.plain === "ssconvert" || c.words[0]?.plain === "op"))) {
|
|
13919
13920
|
usesInduction = true;
|
|
13920
13921
|
}
|
|
@@ -13929,9 +13930,6 @@ export class Runtime {
|
|
|
13929
13930
|
}
|
|
13930
13931
|
finally {
|
|
13931
13932
|
this._inSyncLoopPreflight = prevPreflight;
|
|
13932
|
-
if (usesInduction && indName !== undefined && savedIndVal === undefined) {
|
|
13933
|
-
delete rawState.variables[indName];
|
|
13934
|
-
}
|
|
13935
13933
|
}
|
|
13936
13934
|
const outBytes = this.budget.bytes - savedBytes;
|
|
13937
13935
|
const exitStatus = rawState.status;
|
|
@@ -31990,6 +31988,11 @@ export class Runtime {
|
|
|
31990
31988
|
}
|
|
31991
31989
|
if (files.length === 0)
|
|
31992
31990
|
files.push("-");
|
|
31991
|
+
if (rawLines === undefined) {
|
|
31992
|
+
if (files.includes("-"))
|
|
31993
|
+
return undefined;
|
|
31994
|
+
rawLines = [];
|
|
31995
|
+
}
|
|
31993
31996
|
if (!files.every(f => f === "-")) {
|
|
31994
31997
|
if (cwd === undefined)
|
|
31995
31998
|
return rawLines.length === 0 ? [] : undefined;
|
|
@@ -33538,7 +33541,7 @@ export class Runtime {
|
|
|
33538
33541
|
const absVal = neg ? -v.c : v.c;
|
|
33539
33542
|
return (neg && v.c !== 0n ? "-" : "") + absVal.toString(obase).toUpperCase();
|
|
33540
33543
|
}
|
|
33541
|
-
if (v.s === 0)
|
|
33544
|
+
if (v.c === 0n || v.s === 0)
|
|
33542
33545
|
return v.c.toString();
|
|
33543
33546
|
const neg = v.c < 0n;
|
|
33544
33547
|
const absStr = (neg ? -v.c : v.c).toString().padStart(v.s + 1, "0");
|
|
@@ -34494,15 +34497,23 @@ export class Runtime {
|
|
|
34494
34497
|
addrRadix = opArgs[++i];
|
|
34495
34498
|
}
|
|
34496
34499
|
else if (a === "-tx1" || a === "-tu1" || a === "-to1" || a === "-tc") {
|
|
34500
|
+
if (typeSpec !== undefined)
|
|
34501
|
+
return undefined;
|
|
34497
34502
|
typeSpec = a.slice(2);
|
|
34498
34503
|
}
|
|
34499
34504
|
else if (a === "-c") {
|
|
34505
|
+
if (typeSpec !== undefined)
|
|
34506
|
+
return undefined;
|
|
34500
34507
|
typeSpec = "c";
|
|
34501
34508
|
}
|
|
34502
34509
|
else if (a === "-b") {
|
|
34510
|
+
if (typeSpec !== undefined)
|
|
34511
|
+
return undefined;
|
|
34503
34512
|
typeSpec = "o1";
|
|
34504
34513
|
}
|
|
34505
34514
|
else if (a === "-t" && i + 1 < opArgs.length && ["x1", "u1", "o1", "c"].includes(opArgs[i + 1])) {
|
|
34515
|
+
if (typeSpec !== undefined)
|
|
34516
|
+
return undefined;
|
|
34506
34517
|
typeSpec = opArgs[++i];
|
|
34507
34518
|
}
|
|
34508
34519
|
else if (a === "-v" || a === "--output-duplicates")
|
|
@@ -38408,7 +38419,7 @@ export class Runtime {
|
|
|
38408
38419
|
else if (w0Plain === "join")
|
|
38409
38420
|
cjLines = this.evalSyncJoin(stdinLines, allArgs, rawState.cwd);
|
|
38410
38421
|
else if (w0Plain === "paste")
|
|
38411
|
-
cjLines = this.evalSyncPaste(stdinLines
|
|
38422
|
+
cjLines = this.evalSyncPaste(stdinLines, allArgs, rawState.cwd);
|
|
38412
38423
|
else if (w0Plain === "factor")
|
|
38413
38424
|
cjLines = this.evalSyncFactor(stdinLines, allArgs);
|
|
38414
38425
|
else if (w0Plain === "tsort")
|
|
@@ -38631,7 +38642,7 @@ export class Runtime {
|
|
|
38631
38642
|
fileRes = renderLines(nlRes);
|
|
38632
38643
|
}
|
|
38633
38644
|
else if (w0Plain === "paste") {
|
|
38634
|
-
const pasteRes = (hasSingleHereStringRedir || hasSingleStdinRedir) ? this.evalSyncPaste(rawLines, opArgs, rawState.cwd) : this.evalSyncPaste(
|
|
38645
|
+
const pasteRes = (hasSingleHereStringRedir || hasSingleStdinRedir) ? this.evalSyncPaste(rawLines, opArgs, rawState.cwd) : this.evalSyncPaste(undefined, allArgs, rawState.cwd);
|
|
38635
38646
|
if (pasteRes !== undefined)
|
|
38636
38647
|
fileRes = renderLines(pasteRes);
|
|
38637
38648
|
}
|
|
@@ -13607,7 +13607,7 @@ function is(e) {
|
|
|
13607
13607
|
let P = h();
|
|
13608
13608
|
f.push({ ...P, clipImages: [...P.clipImages ?? [], B] }), x([{ kind: "path-op", paint: "f", segments: [{ kind: "rect", x: 0, y: 0, width: 1, height: 1 }] }], void 0, void 0, k, C, H), f.pop();
|
|
13609
13609
|
}, w = (B, y, k, C, H, P, E = false) => {
|
|
13610
|
-
let F = h(), G = e.cosDoc.resolveDict(O(B.dict, "Group")), M = G ? e.cosDoc.resolve(O(G, "S")) : void 0, D = G ? e.cosDoc.resolve(O(G, "I")) : void 0, I = D?.kind === "boolean" && D.value, S = !E && M?.kind === "name" && M.decoded === "Transparency" && (I || F.fillAlpha !== 1 || !!F.softMask || F.blendMode !== "Normal" && F.blendMode !== "Compatible"), T = e.cosDoc.decodeStream(B), K = Ca(T), L = e.cosDoc.resolveDict(O(B.dict, "Resources")) ?? y, z = new Map(k);
|
|
13610
|
+
let F = h(), G = e.cosDoc.resolveDict(O(B.dict, "Group")), M = G ? e.cosDoc.resolve(O(G, "S")) : void 0, D = G ? e.cosDoc.resolve(O(G, "I")) : void 0, I = D?.kind === "boolean" && D.value, S = !E && M?.kind === "name" && M.decoded === "Transparency" && (I || F.fillAlpha !== 1 || !!F.softMask || !!F.blendMode && F.blendMode !== "Normal" && F.blendMode !== "Compatible"), T = e.cosDoc.decodeStream(B), K = Ca(T), L = e.cosDoc.resolveDict(O(B.dict, "Resources")) ?? y, z = new Map(k);
|
|
13611
13611
|
for (let [j, Q] of qr(e.cosDoc, L).entries()) z.set(j, Q);
|
|
13612
13612
|
let V = [...F.ctm], q = e.cosDoc.resolveArray(O(B.dict, "Matrix"));
|
|
13613
13613
|
if (q && q.items.length >= 6) {
|
|
Binary file
|