Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/embedpre.../assets/pdf/build
File: pdf.worker.js
c >>= 8;
[7500] Fix | Delete
}
[7501] Fix | Delete
}
[7502] Fix | Delete
const MAX_NUM_SIZE = 16;
[7503] Fix | Delete
const MAX_ENCODED_NUM_SIZE = 19;
[7504] Fix | Delete
class BinaryCMapStream {
[7505] Fix | Delete
constructor(data) {
[7506] Fix | Delete
this.buffer = data;
[7507] Fix | Delete
this.pos = 0;
[7508] Fix | Delete
this.end = data.length;
[7509] Fix | Delete
this.tmpBuf = new Uint8Array(MAX_ENCODED_NUM_SIZE);
[7510] Fix | Delete
}
[7511] Fix | Delete
readByte() {
[7512] Fix | Delete
if (this.pos >= this.end) {
[7513] Fix | Delete
return -1;
[7514] Fix | Delete
}
[7515] Fix | Delete
return this.buffer[this.pos++];
[7516] Fix | Delete
}
[7517] Fix | Delete
readNumber() {
[7518] Fix | Delete
let n = 0;
[7519] Fix | Delete
let last;
[7520] Fix | Delete
do {
[7521] Fix | Delete
const b = this.readByte();
[7522] Fix | Delete
if (b < 0) {
[7523] Fix | Delete
throw new FormatError("unexpected EOF in bcmap");
[7524] Fix | Delete
}
[7525] Fix | Delete
last = !(b & 0x80);
[7526] Fix | Delete
n = n << 7 | b & 0x7f;
[7527] Fix | Delete
} while (!last);
[7528] Fix | Delete
return n;
[7529] Fix | Delete
}
[7530] Fix | Delete
readSigned() {
[7531] Fix | Delete
const n = this.readNumber();
[7532] Fix | Delete
return n & 1 ? ~(n >>> 1) : n >>> 1;
[7533] Fix | Delete
}
[7534] Fix | Delete
readHex(num, size) {
[7535] Fix | Delete
num.set(this.buffer.subarray(this.pos, this.pos + size + 1));
[7536] Fix | Delete
this.pos += size + 1;
[7537] Fix | Delete
}
[7538] Fix | Delete
readHexNumber(num, size) {
[7539] Fix | Delete
let last;
[7540] Fix | Delete
const stack = this.tmpBuf;
[7541] Fix | Delete
let sp = 0;
[7542] Fix | Delete
do {
[7543] Fix | Delete
const b = this.readByte();
[7544] Fix | Delete
if (b < 0) {
[7545] Fix | Delete
throw new FormatError("unexpected EOF in bcmap");
[7546] Fix | Delete
}
[7547] Fix | Delete
last = !(b & 0x80);
[7548] Fix | Delete
stack[sp++] = b & 0x7f;
[7549] Fix | Delete
} while (!last);
[7550] Fix | Delete
let i = size,
[7551] Fix | Delete
buffer = 0,
[7552] Fix | Delete
bufferSize = 0;
[7553] Fix | Delete
while (i >= 0) {
[7554] Fix | Delete
while (bufferSize < 8 && stack.length > 0) {
[7555] Fix | Delete
buffer |= stack[--sp] << bufferSize;
[7556] Fix | Delete
bufferSize += 7;
[7557] Fix | Delete
}
[7558] Fix | Delete
num[i] = buffer & 255;
[7559] Fix | Delete
i--;
[7560] Fix | Delete
buffer >>= 8;
[7561] Fix | Delete
bufferSize -= 8;
[7562] Fix | Delete
}
[7563] Fix | Delete
}
[7564] Fix | Delete
readHexSigned(num, size) {
[7565] Fix | Delete
this.readHexNumber(num, size);
[7566] Fix | Delete
const sign = num[size] & 1 ? 255 : 0;
[7567] Fix | Delete
let c = 0;
[7568] Fix | Delete
for (let i = 0; i <= size; i++) {
[7569] Fix | Delete
c = (c & 1) << 8 | num[i];
[7570] Fix | Delete
num[i] = c >> 1 ^ sign;
[7571] Fix | Delete
}
[7572] Fix | Delete
}
[7573] Fix | Delete
readString() {
[7574] Fix | Delete
const len = this.readNumber(),
[7575] Fix | Delete
buf = new Array(len);
[7576] Fix | Delete
for (let i = 0; i < len; i++) {
[7577] Fix | Delete
buf[i] = this.readNumber();
[7578] Fix | Delete
}
[7579] Fix | Delete
return String.fromCharCode(...buf);
[7580] Fix | Delete
}
[7581] Fix | Delete
}
[7582] Fix | Delete
class BinaryCMapReader {
[7583] Fix | Delete
async process(data, cMap, extend) {
[7584] Fix | Delete
const stream = new BinaryCMapStream(data);
[7585] Fix | Delete
const header = stream.readByte();
[7586] Fix | Delete
cMap.vertical = !!(header & 1);
[7587] Fix | Delete
let useCMap = null;
[7588] Fix | Delete
const start = new Uint8Array(MAX_NUM_SIZE);
[7589] Fix | Delete
const end = new Uint8Array(MAX_NUM_SIZE);
[7590] Fix | Delete
const char = new Uint8Array(MAX_NUM_SIZE);
[7591] Fix | Delete
const charCode = new Uint8Array(MAX_NUM_SIZE);
[7592] Fix | Delete
const tmp = new Uint8Array(MAX_NUM_SIZE);
[7593] Fix | Delete
let code;
[7594] Fix | Delete
let b;
[7595] Fix | Delete
while ((b = stream.readByte()) >= 0) {
[7596] Fix | Delete
const type = b >> 5;
[7597] Fix | Delete
if (type === 7) {
[7598] Fix | Delete
switch (b & 0x1f) {
[7599] Fix | Delete
case 0:
[7600] Fix | Delete
stream.readString();
[7601] Fix | Delete
break;
[7602] Fix | Delete
case 1:
[7603] Fix | Delete
useCMap = stream.readString();
[7604] Fix | Delete
break;
[7605] Fix | Delete
}
[7606] Fix | Delete
continue;
[7607] Fix | Delete
}
[7608] Fix | Delete
const sequence = !!(b & 0x10);
[7609] Fix | Delete
const dataSize = b & 15;
[7610] Fix | Delete
if (dataSize + 1 > MAX_NUM_SIZE) {
[7611] Fix | Delete
throw new Error("BinaryCMapReader.process: Invalid dataSize.");
[7612] Fix | Delete
}
[7613] Fix | Delete
const ucs2DataSize = 1;
[7614] Fix | Delete
const subitemsCount = stream.readNumber();
[7615] Fix | Delete
switch (type) {
[7616] Fix | Delete
case 0:
[7617] Fix | Delete
stream.readHex(start, dataSize);
[7618] Fix | Delete
stream.readHexNumber(end, dataSize);
[7619] Fix | Delete
addHex(end, start, dataSize);
[7620] Fix | Delete
cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize), hexToInt(end, dataSize));
[7621] Fix | Delete
for (let i = 1; i < subitemsCount; i++) {
[7622] Fix | Delete
incHex(end, dataSize);
[7623] Fix | Delete
stream.readHexNumber(start, dataSize);
[7624] Fix | Delete
addHex(start, end, dataSize);
[7625] Fix | Delete
stream.readHexNumber(end, dataSize);
[7626] Fix | Delete
addHex(end, start, dataSize);
[7627] Fix | Delete
cMap.addCodespaceRange(dataSize + 1, hexToInt(start, dataSize), hexToInt(end, dataSize));
[7628] Fix | Delete
}
[7629] Fix | Delete
break;
[7630] Fix | Delete
case 1:
[7631] Fix | Delete
stream.readHex(start, dataSize);
[7632] Fix | Delete
stream.readHexNumber(end, dataSize);
[7633] Fix | Delete
addHex(end, start, dataSize);
[7634] Fix | Delete
stream.readNumber();
[7635] Fix | Delete
for (let i = 1; i < subitemsCount; i++) {
[7636] Fix | Delete
incHex(end, dataSize);
[7637] Fix | Delete
stream.readHexNumber(start, dataSize);
[7638] Fix | Delete
addHex(start, end, dataSize);
[7639] Fix | Delete
stream.readHexNumber(end, dataSize);
[7640] Fix | Delete
addHex(end, start, dataSize);
[7641] Fix | Delete
stream.readNumber();
[7642] Fix | Delete
}
[7643] Fix | Delete
break;
[7644] Fix | Delete
case 2:
[7645] Fix | Delete
stream.readHex(char, dataSize);
[7646] Fix | Delete
code = stream.readNumber();
[7647] Fix | Delete
cMap.mapOne(hexToInt(char, dataSize), code);
[7648] Fix | Delete
for (let i = 1; i < subitemsCount; i++) {
[7649] Fix | Delete
incHex(char, dataSize);
[7650] Fix | Delete
if (!sequence) {
[7651] Fix | Delete
stream.readHexNumber(tmp, dataSize);
[7652] Fix | Delete
addHex(char, tmp, dataSize);
[7653] Fix | Delete
}
[7654] Fix | Delete
code = stream.readSigned() + (code + 1);
[7655] Fix | Delete
cMap.mapOne(hexToInt(char, dataSize), code);
[7656] Fix | Delete
}
[7657] Fix | Delete
break;
[7658] Fix | Delete
case 3:
[7659] Fix | Delete
stream.readHex(start, dataSize);
[7660] Fix | Delete
stream.readHexNumber(end, dataSize);
[7661] Fix | Delete
addHex(end, start, dataSize);
[7662] Fix | Delete
code = stream.readNumber();
[7663] Fix | Delete
cMap.mapCidRange(hexToInt(start, dataSize), hexToInt(end, dataSize), code);
[7664] Fix | Delete
for (let i = 1; i < subitemsCount; i++) {
[7665] Fix | Delete
incHex(end, dataSize);
[7666] Fix | Delete
if (!sequence) {
[7667] Fix | Delete
stream.readHexNumber(start, dataSize);
[7668] Fix | Delete
addHex(start, end, dataSize);
[7669] Fix | Delete
} else {
[7670] Fix | Delete
start.set(end);
[7671] Fix | Delete
}
[7672] Fix | Delete
stream.readHexNumber(end, dataSize);
[7673] Fix | Delete
addHex(end, start, dataSize);
[7674] Fix | Delete
code = stream.readNumber();
[7675] Fix | Delete
cMap.mapCidRange(hexToInt(start, dataSize), hexToInt(end, dataSize), code);
[7676] Fix | Delete
}
[7677] Fix | Delete
break;
[7678] Fix | Delete
case 4:
[7679] Fix | Delete
stream.readHex(char, ucs2DataSize);
[7680] Fix | Delete
stream.readHex(charCode, dataSize);
[7681] Fix | Delete
cMap.mapOne(hexToInt(char, ucs2DataSize), hexToStr(charCode, dataSize));
[7682] Fix | Delete
for (let i = 1; i < subitemsCount; i++) {
[7683] Fix | Delete
incHex(char, ucs2DataSize);
[7684] Fix | Delete
if (!sequence) {
[7685] Fix | Delete
stream.readHexNumber(tmp, ucs2DataSize);
[7686] Fix | Delete
addHex(char, tmp, ucs2DataSize);
[7687] Fix | Delete
}
[7688] Fix | Delete
incHex(charCode, dataSize);
[7689] Fix | Delete
stream.readHexSigned(tmp, dataSize);
[7690] Fix | Delete
addHex(charCode, tmp, dataSize);
[7691] Fix | Delete
cMap.mapOne(hexToInt(char, ucs2DataSize), hexToStr(charCode, dataSize));
[7692] Fix | Delete
}
[7693] Fix | Delete
break;
[7694] Fix | Delete
case 5:
[7695] Fix | Delete
stream.readHex(start, ucs2DataSize);
[7696] Fix | Delete
stream.readHexNumber(end, ucs2DataSize);
[7697] Fix | Delete
addHex(end, start, ucs2DataSize);
[7698] Fix | Delete
stream.readHex(charCode, dataSize);
[7699] Fix | Delete
cMap.mapBfRange(hexToInt(start, ucs2DataSize), hexToInt(end, ucs2DataSize), hexToStr(charCode, dataSize));
[7700] Fix | Delete
for (let i = 1; i < subitemsCount; i++) {
[7701] Fix | Delete
incHex(end, ucs2DataSize);
[7702] Fix | Delete
if (!sequence) {
[7703] Fix | Delete
stream.readHexNumber(start, ucs2DataSize);
[7704] Fix | Delete
addHex(start, end, ucs2DataSize);
[7705] Fix | Delete
} else {
[7706] Fix | Delete
start.set(end);
[7707] Fix | Delete
}
[7708] Fix | Delete
stream.readHexNumber(end, ucs2DataSize);
[7709] Fix | Delete
addHex(end, start, ucs2DataSize);
[7710] Fix | Delete
stream.readHex(charCode, dataSize);
[7711] Fix | Delete
cMap.mapBfRange(hexToInt(start, ucs2DataSize), hexToInt(end, ucs2DataSize), hexToStr(charCode, dataSize));
[7712] Fix | Delete
}
[7713] Fix | Delete
break;
[7714] Fix | Delete
default:
[7715] Fix | Delete
throw new Error(`BinaryCMapReader.process - unknown type: ${type}`);
[7716] Fix | Delete
}
[7717] Fix | Delete
}
[7718] Fix | Delete
if (useCMap) {
[7719] Fix | Delete
return extend(useCMap);
[7720] Fix | Delete
}
[7721] Fix | Delete
return cMap;
[7722] Fix | Delete
}
[7723] Fix | Delete
}
[7724] Fix | Delete
[7725] Fix | Delete
;// CONCATENATED MODULE: ./src/core/decode_stream.js
[7726] Fix | Delete
[7727] Fix | Delete
[7728] Fix | Delete
[7729] Fix | Delete
[7730] Fix | Delete
[7731] Fix | Delete
[7732] Fix | Delete
[7733] Fix | Delete
[7734] Fix | Delete
[7735] Fix | Delete
const emptyBuffer = new Uint8Array(0);
[7736] Fix | Delete
class DecodeStream extends BaseStream {
[7737] Fix | Delete
constructor(maybeMinBufferLength) {
[7738] Fix | Delete
super();
[7739] Fix | Delete
this._rawMinBufferLength = maybeMinBufferLength || 0;
[7740] Fix | Delete
this.pos = 0;
[7741] Fix | Delete
this.bufferLength = 0;
[7742] Fix | Delete
this.eof = false;
[7743] Fix | Delete
this.buffer = emptyBuffer;
[7744] Fix | Delete
this.minBufferLength = 512;
[7745] Fix | Delete
if (maybeMinBufferLength) {
[7746] Fix | Delete
while (this.minBufferLength < maybeMinBufferLength) {
[7747] Fix | Delete
this.minBufferLength *= 2;
[7748] Fix | Delete
}
[7749] Fix | Delete
}
[7750] Fix | Delete
}
[7751] Fix | Delete
get isEmpty() {
[7752] Fix | Delete
while (!this.eof && this.bufferLength === 0) {
[7753] Fix | Delete
this.readBlock();
[7754] Fix | Delete
}
[7755] Fix | Delete
return this.bufferLength === 0;
[7756] Fix | Delete
}
[7757] Fix | Delete
ensureBuffer(requested) {
[7758] Fix | Delete
const buffer = this.buffer;
[7759] Fix | Delete
if (requested <= buffer.byteLength) {
[7760] Fix | Delete
return buffer;
[7761] Fix | Delete
}
[7762] Fix | Delete
let size = this.minBufferLength;
[7763] Fix | Delete
while (size < requested) {
[7764] Fix | Delete
size *= 2;
[7765] Fix | Delete
}
[7766] Fix | Delete
const buffer2 = new Uint8Array(size);
[7767] Fix | Delete
buffer2.set(buffer);
[7768] Fix | Delete
return this.buffer = buffer2;
[7769] Fix | Delete
}
[7770] Fix | Delete
getByte() {
[7771] Fix | Delete
const pos = this.pos;
[7772] Fix | Delete
while (this.bufferLength <= pos) {
[7773] Fix | Delete
if (this.eof) {
[7774] Fix | Delete
return -1;
[7775] Fix | Delete
}
[7776] Fix | Delete
this.readBlock();
[7777] Fix | Delete
}
[7778] Fix | Delete
return this.buffer[this.pos++];
[7779] Fix | Delete
}
[7780] Fix | Delete
getBytes(length, ignoreColorSpace = false) {
[7781] Fix | Delete
const pos = this.pos;
[7782] Fix | Delete
let end;
[7783] Fix | Delete
if (length) {
[7784] Fix | Delete
this.ensureBuffer(pos + length);
[7785] Fix | Delete
end = pos + length;
[7786] Fix | Delete
while (!this.eof && this.bufferLength < end) {
[7787] Fix | Delete
this.readBlock(ignoreColorSpace);
[7788] Fix | Delete
}
[7789] Fix | Delete
const bufEnd = this.bufferLength;
[7790] Fix | Delete
if (end > bufEnd) {
[7791] Fix | Delete
end = bufEnd;
[7792] Fix | Delete
}
[7793] Fix | Delete
} else {
[7794] Fix | Delete
while (!this.eof) {
[7795] Fix | Delete
this.readBlock(ignoreColorSpace);
[7796] Fix | Delete
}
[7797] Fix | Delete
end = this.bufferLength;
[7798] Fix | Delete
}
[7799] Fix | Delete
this.pos = end;
[7800] Fix | Delete
return this.buffer.subarray(pos, end);
[7801] Fix | Delete
}
[7802] Fix | Delete
reset() {
[7803] Fix | Delete
this.pos = 0;
[7804] Fix | Delete
}
[7805] Fix | Delete
makeSubStream(start, length, dict = null) {
[7806] Fix | Delete
if (length === undefined) {
[7807] Fix | Delete
while (!this.eof) {
[7808] Fix | Delete
this.readBlock();
[7809] Fix | Delete
}
[7810] Fix | Delete
} else {
[7811] Fix | Delete
const end = start + length;
[7812] Fix | Delete
while (this.bufferLength <= end && !this.eof) {
[7813] Fix | Delete
this.readBlock();
[7814] Fix | Delete
}
[7815] Fix | Delete
}
[7816] Fix | Delete
return new Stream(this.buffer, start, length, dict);
[7817] Fix | Delete
}
[7818] Fix | Delete
getBaseStreams() {
[7819] Fix | Delete
return this.str ? this.str.getBaseStreams() : null;
[7820] Fix | Delete
}
[7821] Fix | Delete
}
[7822] Fix | Delete
class StreamsSequenceStream extends DecodeStream {
[7823] Fix | Delete
constructor(streams, onError = null) {
[7824] Fix | Delete
let maybeLength = 0;
[7825] Fix | Delete
for (const stream of streams) {
[7826] Fix | Delete
maybeLength += stream instanceof DecodeStream ? stream._rawMinBufferLength : stream.length;
[7827] Fix | Delete
}
[7828] Fix | Delete
super(maybeLength);
[7829] Fix | Delete
this.streams = streams;
[7830] Fix | Delete
this._onError = onError;
[7831] Fix | Delete
}
[7832] Fix | Delete
readBlock() {
[7833] Fix | Delete
const streams = this.streams;
[7834] Fix | Delete
if (streams.length === 0) {
[7835] Fix | Delete
this.eof = true;
[7836] Fix | Delete
return;
[7837] Fix | Delete
}
[7838] Fix | Delete
const stream = streams.shift();
[7839] Fix | Delete
let chunk;
[7840] Fix | Delete
try {
[7841] Fix | Delete
chunk = stream.getBytes();
[7842] Fix | Delete
} catch (reason) {
[7843] Fix | Delete
if (this._onError) {
[7844] Fix | Delete
this._onError(reason, stream.dict?.objId);
[7845] Fix | Delete
return;
[7846] Fix | Delete
}
[7847] Fix | Delete
throw reason;
[7848] Fix | Delete
}
[7849] Fix | Delete
const bufferLength = this.bufferLength;
[7850] Fix | Delete
const newLength = bufferLength + chunk.length;
[7851] Fix | Delete
const buffer = this.ensureBuffer(newLength);
[7852] Fix | Delete
buffer.set(chunk, bufferLength);
[7853] Fix | Delete
this.bufferLength = newLength;
[7854] Fix | Delete
}
[7855] Fix | Delete
getBaseStreams() {
[7856] Fix | Delete
const baseStreamsBuf = [];
[7857] Fix | Delete
for (const stream of this.streams) {
[7858] Fix | Delete
const baseStreams = stream.getBaseStreams();
[7859] Fix | Delete
if (baseStreams) {
[7860] Fix | Delete
baseStreamsBuf.push(...baseStreams);
[7861] Fix | Delete
}
[7862] Fix | Delete
}
[7863] Fix | Delete
return baseStreamsBuf.length > 0 ? baseStreamsBuf : null;
[7864] Fix | Delete
}
[7865] Fix | Delete
}
[7866] Fix | Delete
[7867] Fix | Delete
;// CONCATENATED MODULE: ./src/core/ascii_85_stream.js
[7868] Fix | Delete
[7869] Fix | Delete
[7870] Fix | Delete
[7871] Fix | Delete
[7872] Fix | Delete
[7873] Fix | Delete
[7874] Fix | Delete
[7875] Fix | Delete
[7876] Fix | Delete
class Ascii85Stream extends DecodeStream {
[7877] Fix | Delete
constructor(str, maybeLength) {
[7878] Fix | Delete
if (maybeLength) {
[7879] Fix | Delete
maybeLength *= 0.8;
[7880] Fix | Delete
}
[7881] Fix | Delete
super(maybeLength);
[7882] Fix | Delete
this.str = str;
[7883] Fix | Delete
this.dict = str.dict;
[7884] Fix | Delete
this.input = new Uint8Array(5);
[7885] Fix | Delete
}
[7886] Fix | Delete
readBlock() {
[7887] Fix | Delete
const TILDA_CHAR = 0x7e;
[7888] Fix | Delete
const Z_LOWER_CHAR = 0x7a;
[7889] Fix | Delete
const EOF = -1;
[7890] Fix | Delete
const str = this.str;
[7891] Fix | Delete
let c = str.getByte();
[7892] Fix | Delete
while (isWhiteSpace(c)) {
[7893] Fix | Delete
c = str.getByte();
[7894] Fix | Delete
}
[7895] Fix | Delete
if (c === EOF || c === TILDA_CHAR) {
[7896] Fix | Delete
this.eof = true;
[7897] Fix | Delete
return;
[7898] Fix | Delete
}
[7899] Fix | Delete
const bufferLength = this.bufferLength;
[7900] Fix | Delete
let buffer, i;
[7901] Fix | Delete
if (c === Z_LOWER_CHAR) {
[7902] Fix | Delete
buffer = this.ensureBuffer(bufferLength + 4);
[7903] Fix | Delete
for (i = 0; i < 4; ++i) {
[7904] Fix | Delete
buffer[bufferLength + i] = 0;
[7905] Fix | Delete
}
[7906] Fix | Delete
this.bufferLength += 4;
[7907] Fix | Delete
} else {
[7908] Fix | Delete
const input = this.input;
[7909] Fix | Delete
input[0] = c;
[7910] Fix | Delete
for (i = 1; i < 5; ++i) {
[7911] Fix | Delete
c = str.getByte();
[7912] Fix | Delete
while (isWhiteSpace(c)) {
[7913] Fix | Delete
c = str.getByte();
[7914] Fix | Delete
}
[7915] Fix | Delete
input[i] = c;
[7916] Fix | Delete
if (c === EOF || c === TILDA_CHAR) {
[7917] Fix | Delete
break;
[7918] Fix | Delete
}
[7919] Fix | Delete
}
[7920] Fix | Delete
buffer = this.ensureBuffer(bufferLength + i - 1);
[7921] Fix | Delete
this.bufferLength += i - 1;
[7922] Fix | Delete
if (i < 5) {
[7923] Fix | Delete
for (; i < 5; ++i) {
[7924] Fix | Delete
input[i] = 0x21 + 84;
[7925] Fix | Delete
}
[7926] Fix | Delete
this.eof = true;
[7927] Fix | Delete
}
[7928] Fix | Delete
let t = 0;
[7929] Fix | Delete
for (i = 0; i < 5; ++i) {
[7930] Fix | Delete
t = t * 85 + (input[i] - 0x21);
[7931] Fix | Delete
}
[7932] Fix | Delete
for (i = 3; i >= 0; --i) {
[7933] Fix | Delete
buffer[bufferLength + i] = t & 0xff;
[7934] Fix | Delete
t >>= 8;
[7935] Fix | Delete
}
[7936] Fix | Delete
}
[7937] Fix | Delete
}
[7938] Fix | Delete
}
[7939] Fix | Delete
[7940] Fix | Delete
;// CONCATENATED MODULE: ./src/core/ascii_hex_stream.js
[7941] Fix | Delete
[7942] Fix | Delete
class AsciiHexStream extends DecodeStream {
[7943] Fix | Delete
constructor(str, maybeLength) {
[7944] Fix | Delete
if (maybeLength) {
[7945] Fix | Delete
maybeLength *= 0.5;
[7946] Fix | Delete
}
[7947] Fix | Delete
super(maybeLength);
[7948] Fix | Delete
this.str = str;
[7949] Fix | Delete
this.dict = str.dict;
[7950] Fix | Delete
this.firstDigit = -1;
[7951] Fix | Delete
}
[7952] Fix | Delete
readBlock() {
[7953] Fix | Delete
const UPSTREAM_BLOCK_SIZE = 8000;
[7954] Fix | Delete
const bytes = this.str.getBytes(UPSTREAM_BLOCK_SIZE);
[7955] Fix | Delete
if (!bytes.length) {
[7956] Fix | Delete
this.eof = true;
[7957] Fix | Delete
return;
[7958] Fix | Delete
}
[7959] Fix | Delete
const maxDecodeLength = bytes.length + 1 >> 1;
[7960] Fix | Delete
const buffer = this.ensureBuffer(this.bufferLength + maxDecodeLength);
[7961] Fix | Delete
let bufferLength = this.bufferLength;
[7962] Fix | Delete
let firstDigit = this.firstDigit;
[7963] Fix | Delete
for (const ch of bytes) {
[7964] Fix | Delete
let digit;
[7965] Fix | Delete
if (ch >= 0x30 && ch <= 0x39) {
[7966] Fix | Delete
digit = ch & 0x0f;
[7967] Fix | Delete
} else if (ch >= 0x41 && ch <= 0x46 || ch >= 0x61 && ch <= 0x66) {
[7968] Fix | Delete
digit = (ch & 0x0f) + 9;
[7969] Fix | Delete
} else if (ch === 0x3e) {
[7970] Fix | Delete
this.eof = true;
[7971] Fix | Delete
break;
[7972] Fix | Delete
} else {
[7973] Fix | Delete
continue;
[7974] Fix | Delete
}
[7975] Fix | Delete
if (firstDigit < 0) {
[7976] Fix | Delete
firstDigit = digit;
[7977] Fix | Delete
} else {
[7978] Fix | Delete
buffer[bufferLength++] = firstDigit << 4 | digit;
[7979] Fix | Delete
firstDigit = -1;
[7980] Fix | Delete
}
[7981] Fix | Delete
}
[7982] Fix | Delete
if (firstDigit >= 0 && this.eof) {
[7983] Fix | Delete
buffer[bufferLength++] = firstDigit << 4;
[7984] Fix | Delete
firstDigit = -1;
[7985] Fix | Delete
}
[7986] Fix | Delete
this.firstDigit = firstDigit;
[7987] Fix | Delete
this.bufferLength = bufferLength;
[7988] Fix | Delete
}
[7989] Fix | Delete
}
[7990] Fix | Delete
[7991] Fix | Delete
;// CONCATENATED MODULE: ./src/core/ccitt.js
[7992] Fix | Delete
[7993] Fix | Delete
[7994] Fix | Delete
[7995] Fix | Delete
[7996] Fix | Delete
[7997] Fix | Delete
[7998] Fix | Delete
[7999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function