@harbour-enterprises/superdoc 0.28.2 → 0.28.4
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/chunks/{PdfViewer-lAbA0-lT.cjs → PdfViewer-CfUwzBbx.cjs} +1 -1
- package/dist/chunks/{PdfViewer-DpWYWlWj.es.js → PdfViewer-FhoWTpo9.es.js} +1 -1
- package/dist/chunks/{index-ByVhw_G0.cjs → index-C3gwy96O.cjs} +3 -3
- package/dist/chunks/{index-Dz5_CDAf-B9kc0ArX.es.js → index-CEL3ujoV-BXzhXCnT.es.js} +1 -1
- package/dist/chunks/{index-Dz5_CDAf-C5D7BTD6.cjs → index-CEL3ujoV-C85AsK84.cjs} +1 -1
- package/dist/chunks/{index-Dw2T2UIP.es.js → index-CQbyD7vC.es.js} +3 -3
- package/dist/chunks/{super-editor.es-7iRvcDFc.cjs → super-editor.es-BQCukgDh.cjs} +805 -742
- package/dist/chunks/{super-editor.es-DnZ5Ru-q.es.js → super-editor.es-rFPLjn7D.es.js} +805 -742
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/super-editor/ai-writer.es.js +2 -2
- package/dist/super-editor/chunks/{converter-C5g1OhUM.js → converter-BkMCDOKg.js} +429 -385
- package/dist/super-editor/chunks/{docx-zipper-D9LLIDXC.js → docx-zipper-CPrVIeS5.js} +1 -1
- package/dist/super-editor/chunks/{editor-CD7hiFDo.js → editor-D2rTPB17.js} +29 -10
- package/dist/super-editor/chunks/{index-Dz5_CDAf.js → index-CEL3ujoV.js} +1 -1
- package/dist/super-editor/chunks/{toolbar-BC_z_xMq.js → toolbar-EGiGMLTV.js} +2 -2
- package/dist/super-editor/converter.es.js +1 -1
- package/dist/super-editor/docx-zipper.es.js +2 -2
- package/dist/super-editor/editor.es.js +3 -3
- package/dist/super-editor/file-zipper.es.js +1 -1
- package/dist/super-editor/super-editor/src/core/super-converter/relationship-helpers.d.ts +2 -0
- package/dist/super-editor/super-editor.es.js +6 -6
- package/dist/super-editor/toolbar.es.js +2 -2
- package/dist/super-editor.cjs +1 -1
- package/dist/super-editor.es.js +1 -1
- package/dist/superdoc.cjs +2 -2
- package/dist/superdoc.es.js +2 -2
- package/dist/superdoc.umd.js +569 -506
- package/dist/superdoc.umd.js.map +1 -1
- package/package.json +2 -5
|
@@ -416,17 +416,17 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
|
|
|
416
416
|
);
|
|
417
417
|
}
|
|
418
418
|
if (a === b2) return 0;
|
|
419
|
-
let
|
|
419
|
+
let x2 = a.length;
|
|
420
420
|
let y2 = b2.length;
|
|
421
|
-
for (let i = 0, len = Math.min(
|
|
421
|
+
for (let i = 0, len = Math.min(x2, y2); i < len; ++i) {
|
|
422
422
|
if (a[i] !== b2[i]) {
|
|
423
|
-
|
|
423
|
+
x2 = a[i];
|
|
424
424
|
y2 = b2[i];
|
|
425
425
|
break;
|
|
426
426
|
}
|
|
427
427
|
}
|
|
428
|
-
if (
|
|
429
|
-
if (y2 <
|
|
428
|
+
if (x2 < y2) return -1;
|
|
429
|
+
if (y2 < x2) return 1;
|
|
430
430
|
return 0;
|
|
431
431
|
};
|
|
432
432
|
Buffer3.isEncoding = function isEncoding(encoding) {
|
|
@@ -675,20 +675,20 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
|
|
|
675
675
|
thisStart >>>= 0;
|
|
676
676
|
thisEnd >>>= 0;
|
|
677
677
|
if (this === target) return 0;
|
|
678
|
-
let
|
|
678
|
+
let x2 = thisEnd - thisStart;
|
|
679
679
|
let y2 = end2 - start2;
|
|
680
|
-
const len = Math.min(
|
|
680
|
+
const len = Math.min(x2, y2);
|
|
681
681
|
const thisCopy = this.slice(thisStart, thisEnd);
|
|
682
682
|
const targetCopy = target.slice(start2, end2);
|
|
683
683
|
for (let i = 0; i < len; ++i) {
|
|
684
684
|
if (thisCopy[i] !== targetCopy[i]) {
|
|
685
|
-
|
|
685
|
+
x2 = thisCopy[i];
|
|
686
686
|
y2 = targetCopy[i];
|
|
687
687
|
break;
|
|
688
688
|
}
|
|
689
689
|
}
|
|
690
|
-
if (
|
|
691
|
-
if (y2 <
|
|
690
|
+
if (x2 < y2) return -1;
|
|
691
|
+
if (y2 < x2) return 1;
|
|
692
692
|
return 0;
|
|
693
693
|
};
|
|
694
694
|
function bidirectionalIndexOf(buffer2, val, byteOffset, encoding, dir) {
|
|
@@ -1778,8 +1778,8 @@ ieee754.write = function(buffer2, value, offset2, isLE, mLen, nBytes) {
|
|
|
1778
1778
|
})(buffer);
|
|
1779
1779
|
const Buffer2 = buffer.Buffer;
|
|
1780
1780
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global$2 !== "undefined" ? global$2 : typeof self !== "undefined" ? self : {};
|
|
1781
|
-
function getDefaultExportFromCjs$2(
|
|
1782
|
-
return
|
|
1781
|
+
function getDefaultExportFromCjs$2(x2) {
|
|
1782
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
1783
1783
|
}
|
|
1784
1784
|
var sax = {};
|
|
1785
1785
|
var events$1 = { exports: {} };
|
|
@@ -1787,13 +1787,13 @@ var hasRequiredEvents;
|
|
|
1787
1787
|
function requireEvents() {
|
|
1788
1788
|
if (hasRequiredEvents) return events$1.exports;
|
|
1789
1789
|
hasRequiredEvents = 1;
|
|
1790
|
-
var
|
|
1791
|
-
var ReflectApply =
|
|
1790
|
+
var R = typeof Reflect === "object" ? Reflect : null;
|
|
1791
|
+
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
|
|
1792
1792
|
return Function.prototype.apply.call(target, receiver, args);
|
|
1793
1793
|
};
|
|
1794
1794
|
var ReflectOwnKeys;
|
|
1795
|
-
if (
|
|
1796
|
-
ReflectOwnKeys =
|
|
1795
|
+
if (R && typeof R.ownKeys === "function") {
|
|
1796
|
+
ReflectOwnKeys = R.ownKeys;
|
|
1797
1797
|
} else if (Object.getOwnPropertySymbols) {
|
|
1798
1798
|
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
1799
1799
|
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
@@ -2183,8 +2183,8 @@ function requireInherits_browser() {
|
|
|
2183
2183
|
}
|
|
2184
2184
|
return inherits_browser.exports;
|
|
2185
2185
|
}
|
|
2186
|
-
function getDefaultExportFromCjs$1(
|
|
2187
|
-
return
|
|
2186
|
+
function getDefaultExportFromCjs$1(x2) {
|
|
2187
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
2188
2188
|
}
|
|
2189
2189
|
var browser$1 = { exports: {} };
|
|
2190
2190
|
var process$1 = browser$1.exports = {};
|
|
@@ -2765,17 +2765,17 @@ function requireDist() {
|
|
|
2765
2765
|
);
|
|
2766
2766
|
}
|
|
2767
2767
|
if (a === b2) return 0;
|
|
2768
|
-
let
|
|
2768
|
+
let x2 = a.length;
|
|
2769
2769
|
let y2 = b2.length;
|
|
2770
|
-
for (let i2 = 0, len2 = Math.min(
|
|
2770
|
+
for (let i2 = 0, len2 = Math.min(x2, y2); i2 < len2; ++i2) {
|
|
2771
2771
|
if (a[i2] !== b2[i2]) {
|
|
2772
|
-
|
|
2772
|
+
x2 = a[i2];
|
|
2773
2773
|
y2 = b2[i2];
|
|
2774
2774
|
break;
|
|
2775
2775
|
}
|
|
2776
2776
|
}
|
|
2777
|
-
if (
|
|
2778
|
-
if (y2 <
|
|
2777
|
+
if (x2 < y2) return -1;
|
|
2778
|
+
if (y2 < x2) return 1;
|
|
2779
2779
|
return 0;
|
|
2780
2780
|
};
|
|
2781
2781
|
Buffer4.isEncoding = function isEncoding(encoding) {
|
|
@@ -3024,20 +3024,20 @@ function requireDist() {
|
|
|
3024
3024
|
thisStart >>>= 0;
|
|
3025
3025
|
thisEnd >>>= 0;
|
|
3026
3026
|
if (this === target) return 0;
|
|
3027
|
-
let
|
|
3027
|
+
let x2 = thisEnd - thisStart;
|
|
3028
3028
|
let y2 = end2 - start2;
|
|
3029
|
-
const len2 = Math.min(
|
|
3029
|
+
const len2 = Math.min(x2, y2);
|
|
3030
3030
|
const thisCopy = this.slice(thisStart, thisEnd);
|
|
3031
3031
|
const targetCopy = target.slice(start2, end2);
|
|
3032
3032
|
for (let i2 = 0; i2 < len2; ++i2) {
|
|
3033
3033
|
if (thisCopy[i2] !== targetCopy[i2]) {
|
|
3034
|
-
|
|
3034
|
+
x2 = thisCopy[i2];
|
|
3035
3035
|
y2 = targetCopy[i2];
|
|
3036
3036
|
break;
|
|
3037
3037
|
}
|
|
3038
3038
|
}
|
|
3039
|
-
if (
|
|
3040
|
-
if (y2 <
|
|
3039
|
+
if (x2 < y2) return -1;
|
|
3040
|
+
if (y2 < x2) return 1;
|
|
3041
3041
|
return 0;
|
|
3042
3042
|
};
|
|
3043
3043
|
function bidirectionalIndexOf(buffer3, val, byteOffset, encoding, dir) {
|
|
@@ -4609,15 +4609,15 @@ function requireGetProto() {
|
|
|
4609
4609
|
var reflectGetProto = requireReflect_getPrototypeOf();
|
|
4610
4610
|
var originalGetProto = requireObject_getPrototypeOf();
|
|
4611
4611
|
var getDunderProto = /* @__PURE__ */ requireGet();
|
|
4612
|
-
getProto = reflectGetProto ? function getProto2(
|
|
4613
|
-
return reflectGetProto(
|
|
4614
|
-
} : originalGetProto ? function getProto2(
|
|
4615
|
-
if (!
|
|
4612
|
+
getProto = reflectGetProto ? function getProto2(O) {
|
|
4613
|
+
return reflectGetProto(O);
|
|
4614
|
+
} : originalGetProto ? function getProto2(O) {
|
|
4615
|
+
if (!O || typeof O !== "object" && typeof O !== "function") {
|
|
4616
4616
|
throw new TypeError("getProto: not an object");
|
|
4617
4617
|
}
|
|
4618
|
-
return originalGetProto(
|
|
4619
|
-
} : getDunderProto ? function getProto2(
|
|
4620
|
-
return getDunderProto(
|
|
4618
|
+
return originalGetProto(O);
|
|
4619
|
+
} : getDunderProto ? function getProto2(O) {
|
|
4620
|
+
return getDunderProto(O);
|
|
4621
4621
|
} : null;
|
|
4622
4622
|
return getProto;
|
|
4623
4623
|
}
|
|
@@ -5295,8 +5295,8 @@ function requireForEach() {
|
|
|
5295
5295
|
}
|
|
5296
5296
|
}
|
|
5297
5297
|
};
|
|
5298
|
-
function isArray2(
|
|
5299
|
-
return toStr.call(
|
|
5298
|
+
function isArray2(x2) {
|
|
5299
|
+
return toStr.call(x2) === "[object Array]";
|
|
5300
5300
|
}
|
|
5301
5301
|
forEach = function forEach22(list, iterator, thisArg) {
|
|
5302
5302
|
if (!isCallable2(iterator)) {
|
|
@@ -5905,10 +5905,10 @@ function requireUtil() {
|
|
|
5905
5905
|
var i = 1;
|
|
5906
5906
|
var args = arguments;
|
|
5907
5907
|
var len = args.length;
|
|
5908
|
-
var str = String(f2).replace(formatRegExp, function(
|
|
5909
|
-
if (
|
|
5910
|
-
if (i >= len) return
|
|
5911
|
-
switch (
|
|
5908
|
+
var str = String(f2).replace(formatRegExp, function(x3) {
|
|
5909
|
+
if (x3 === "%%") return "%";
|
|
5910
|
+
if (i >= len) return x3;
|
|
5911
|
+
switch (x3) {
|
|
5912
5912
|
case "%s":
|
|
5913
5913
|
return String(args[i++]);
|
|
5914
5914
|
case "%d":
|
|
@@ -5920,14 +5920,14 @@ function requireUtil() {
|
|
|
5920
5920
|
return "[Circular]";
|
|
5921
5921
|
}
|
|
5922
5922
|
default:
|
|
5923
|
-
return
|
|
5923
|
+
return x3;
|
|
5924
5924
|
}
|
|
5925
5925
|
});
|
|
5926
|
-
for (var
|
|
5927
|
-
if (isNull(
|
|
5928
|
-
str += " " +
|
|
5926
|
+
for (var x2 = args[i]; i < len; x2 = args[++i]) {
|
|
5927
|
+
if (isNull(x2) || !isObject2(x2)) {
|
|
5928
|
+
str += " " + x2;
|
|
5929
5929
|
} else {
|
|
5930
|
-
str += " " + inspect(
|
|
5930
|
+
str += " " + inspect(x2);
|
|
5931
5931
|
}
|
|
5932
5932
|
}
|
|
5933
5933
|
return str;
|
|
@@ -6140,7 +6140,7 @@ function requireUtil() {
|
|
|
6140
6140
|
}
|
|
6141
6141
|
function formatArray(ctx2, value, recurseTimes, visibleKeys, keys2) {
|
|
6142
6142
|
var output = [];
|
|
6143
|
-
for (var i = 0,
|
|
6143
|
+
for (var i = 0, l = value.length; i < l; ++i) {
|
|
6144
6144
|
if (hasOwnProperty2(value, String(i))) {
|
|
6145
6145
|
output.push(formatProperty(
|
|
6146
6146
|
ctx2,
|
|
@@ -7239,8 +7239,8 @@ function require_stream_writable() {
|
|
|
7239
7239
|
state2.bufferProcessing = true;
|
|
7240
7240
|
var entry = state2.bufferedRequest;
|
|
7241
7241
|
if (stream._writev && entry && entry.next) {
|
|
7242
|
-
var
|
|
7243
|
-
var buffer2 = new Array(
|
|
7242
|
+
var l = state2.bufferedRequestCount;
|
|
7243
|
+
var buffer2 = new Array(l);
|
|
7244
7244
|
var holder = state2.corkedRequestsFree;
|
|
7245
7245
|
holder.entry = entry;
|
|
7246
7246
|
var count = 0;
|
|
@@ -8790,9 +8790,9 @@ function require_stream_readable() {
|
|
|
8790
8790
|
return from2(Readable, iterable, opts);
|
|
8791
8791
|
};
|
|
8792
8792
|
}
|
|
8793
|
-
function indexOf(xs,
|
|
8794
|
-
for (var i = 0,
|
|
8795
|
-
if (xs[i] ===
|
|
8793
|
+
function indexOf(xs, x2) {
|
|
8794
|
+
for (var i = 0, l = xs.length; i < l; i++) {
|
|
8795
|
+
if (xs[i] === x2) return i;
|
|
8796
8796
|
}
|
|
8797
8797
|
return -1;
|
|
8798
8798
|
}
|
|
@@ -9171,7 +9171,7 @@ function requireSax() {
|
|
|
9171
9171
|
function checkBufferLength(parser) {
|
|
9172
9172
|
var maxAllowed = Math.max(sax2.MAX_BUFFER_LENGTH, 10);
|
|
9173
9173
|
var maxActual = 0;
|
|
9174
|
-
for (var i = 0,
|
|
9174
|
+
for (var i = 0, l = buffers.length; i < l; i++) {
|
|
9175
9175
|
var len = parser[buffers[i]].length;
|
|
9176
9176
|
if (len > maxAllowed) {
|
|
9177
9177
|
switch (buffers[i]) {
|
|
@@ -9196,7 +9196,7 @@ function requireSax() {
|
|
|
9196
9196
|
parser.bufferCheckPosition = m2 + parser.position;
|
|
9197
9197
|
}
|
|
9198
9198
|
function clearBuffers(parser) {
|
|
9199
|
-
for (var i = 0,
|
|
9199
|
+
for (var i = 0, l = buffers.length; i < l; i++) {
|
|
9200
9200
|
parser[buffers[i]] = "";
|
|
9201
9201
|
}
|
|
9202
9202
|
}
|
|
@@ -9250,27 +9250,27 @@ function requireSax() {
|
|
|
9250
9250
|
this._parser = new SAXParser(strict, opt);
|
|
9251
9251
|
this.writable = true;
|
|
9252
9252
|
this.readable = true;
|
|
9253
|
-
var
|
|
9253
|
+
var me2 = this;
|
|
9254
9254
|
this._parser.onend = function() {
|
|
9255
|
-
|
|
9255
|
+
me2.emit("end");
|
|
9256
9256
|
};
|
|
9257
9257
|
this._parser.onerror = function(er) {
|
|
9258
|
-
|
|
9259
|
-
|
|
9258
|
+
me2.emit("error", er);
|
|
9259
|
+
me2._parser.error = null;
|
|
9260
9260
|
};
|
|
9261
9261
|
this._decoder = null;
|
|
9262
9262
|
streamWraps.forEach(function(ev) {
|
|
9263
|
-
Object.defineProperty(
|
|
9263
|
+
Object.defineProperty(me2, "on" + ev, {
|
|
9264
9264
|
get: function() {
|
|
9265
|
-
return
|
|
9265
|
+
return me2._parser["on" + ev];
|
|
9266
9266
|
},
|
|
9267
9267
|
set: function(h2) {
|
|
9268
9268
|
if (!h2) {
|
|
9269
|
-
|
|
9270
|
-
|
|
9269
|
+
me2.removeAllListeners(ev);
|
|
9270
|
+
me2._parser["on" + ev] = h2;
|
|
9271
9271
|
return h2;
|
|
9272
9272
|
}
|
|
9273
|
-
|
|
9273
|
+
me2.on(ev, h2);
|
|
9274
9274
|
},
|
|
9275
9275
|
enumerable: true,
|
|
9276
9276
|
configurable: false
|
|
@@ -9302,15 +9302,15 @@ function requireSax() {
|
|
|
9302
9302
|
return true;
|
|
9303
9303
|
};
|
|
9304
9304
|
SAXStream.prototype.on = function(ev, handler2) {
|
|
9305
|
-
var
|
|
9306
|
-
if (!
|
|
9307
|
-
|
|
9305
|
+
var me2 = this;
|
|
9306
|
+
if (!me2._parser["on" + ev] && streamWraps.indexOf(ev) !== -1) {
|
|
9307
|
+
me2._parser["on" + ev] = function() {
|
|
9308
9308
|
var args = arguments.length === 1 ? [arguments[0]] : Array.apply(null, arguments);
|
|
9309
9309
|
args.splice(0, 0, ev);
|
|
9310
|
-
|
|
9310
|
+
me2.emit.apply(me2, args);
|
|
9311
9311
|
};
|
|
9312
9312
|
}
|
|
9313
|
-
return Stream.prototype.on.call(
|
|
9313
|
+
return Stream.prototype.on.call(me2, ev, handler2);
|
|
9314
9314
|
};
|
|
9315
9315
|
var CDATA = "[CDATA[";
|
|
9316
9316
|
var DOCTYPE = "DOCTYPE";
|
|
@@ -9816,7 +9816,7 @@ function requireSax() {
|
|
|
9816
9816
|
});
|
|
9817
9817
|
});
|
|
9818
9818
|
}
|
|
9819
|
-
for (var i = 0,
|
|
9819
|
+
for (var i = 0, l = parser.attribList.length; i < l; i++) {
|
|
9820
9820
|
var nv = parser.attribList[i];
|
|
9821
9821
|
var name = nv[0];
|
|
9822
9822
|
var value = nv[1];
|
|
@@ -9902,9 +9902,9 @@ function requireSax() {
|
|
|
9902
9902
|
var tag = parser.tag = parser.tags.pop();
|
|
9903
9903
|
parser.tagName = parser.tag.name;
|
|
9904
9904
|
emitNode(parser, "onclosetag", parser.tagName);
|
|
9905
|
-
var
|
|
9905
|
+
var x2 = {};
|
|
9906
9906
|
for (var i in tag.ns) {
|
|
9907
|
-
|
|
9907
|
+
x2[i] = tag.ns[i];
|
|
9908
9908
|
}
|
|
9909
9909
|
var parent = parser.tags[parser.tags.length - 1] || parser;
|
|
9910
9910
|
if (parser.opt.xmlns && tag.ns !== parent.ns) {
|
|
@@ -11384,8 +11384,8 @@ function v4(options, buf, offset2) {
|
|
|
11384
11384
|
rnds[8] = rnds[8] & 63 | 128;
|
|
11385
11385
|
return unsafeStringify(rnds);
|
|
11386
11386
|
}
|
|
11387
|
-
function getDefaultExportFromCjs(
|
|
11388
|
-
return
|
|
11387
|
+
function getDefaultExportFromCjs(x2) {
|
|
11388
|
+
return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
|
|
11389
11389
|
}
|
|
11390
11390
|
const CRC_TABLE = new Int32Array([
|
|
11391
11391
|
0,
|
|
@@ -15201,8 +15201,8 @@ function polygonToObj(polygonNode) {
|
|
|
15201
15201
|
const points = [];
|
|
15202
15202
|
polygonNode.elements.forEach((element) => {
|
|
15203
15203
|
if (["wp:start", "wp:lineTo"].includes(element.name)) {
|
|
15204
|
-
const { x, y: y2 } = element.attributes;
|
|
15205
|
-
points.push([polygonUnitsToPixels(
|
|
15204
|
+
const { x: x2, y: y2 } = element.attributes;
|
|
15205
|
+
points.push([polygonUnitsToPixels(x2), polygonUnitsToPixels(y2)]);
|
|
15206
15206
|
}
|
|
15207
15207
|
});
|
|
15208
15208
|
if (points.length > 1) {
|
|
@@ -15225,13 +15225,13 @@ function objToPolygon(points) {
|
|
|
15225
15225
|
elements: []
|
|
15226
15226
|
};
|
|
15227
15227
|
points.forEach((point, index2) => {
|
|
15228
|
-
const [
|
|
15228
|
+
const [x2, y2] = point;
|
|
15229
15229
|
const tagName = index2 === 0 ? "wp:start" : "wp:lineTo";
|
|
15230
15230
|
const pointNode = {
|
|
15231
15231
|
name: tagName,
|
|
15232
15232
|
type: tagName,
|
|
15233
15233
|
attributes: {
|
|
15234
|
-
x: pixelsToPolygonUnits(
|
|
15234
|
+
x: pixelsToPolygonUnits(x2),
|
|
15235
15235
|
y: pixelsToPolygonUnits(y2)
|
|
15236
15236
|
}
|
|
15237
15237
|
};
|
|
@@ -22858,7 +22858,7 @@ function posToDOMRect(view, from2, to) {
|
|
|
22858
22858
|
const right2 = Math.max(start2.right, end2.right);
|
|
22859
22859
|
const width = right2 - left2;
|
|
22860
22860
|
const height = bottom2 - top2;
|
|
22861
|
-
const
|
|
22861
|
+
const x2 = left2;
|
|
22862
22862
|
const y2 = top2;
|
|
22863
22863
|
const data = {
|
|
22864
22864
|
top: top2,
|
|
@@ -22867,7 +22867,7 @@ function posToDOMRect(view, from2, to) {
|
|
|
22867
22867
|
right: right2,
|
|
22868
22868
|
width,
|
|
22869
22869
|
height,
|
|
22870
|
-
x,
|
|
22870
|
+
x: x2,
|
|
22871
22871
|
y: y2
|
|
22872
22872
|
};
|
|
22873
22873
|
return {
|
|
@@ -22956,39 +22956,39 @@ function createDocFromHTML(content, schema, options = {}) {
|
|
|
22956
22956
|
function L() {
|
|
22957
22957
|
return { async: false, breaks: false, extensions: null, gfm: true, hooks: null, pedantic: false, renderer: null, silent: false, tokenizer: null, walkTokens: null };
|
|
22958
22958
|
}
|
|
22959
|
-
var
|
|
22960
|
-
function G(
|
|
22961
|
-
|
|
22959
|
+
var T = L();
|
|
22960
|
+
function G(u3) {
|
|
22961
|
+
T = u3;
|
|
22962
22962
|
}
|
|
22963
|
-
var
|
|
22964
|
-
function h(
|
|
22965
|
-
let t = typeof
|
|
22963
|
+
var I = { exec: () => null };
|
|
22964
|
+
function h(u3, e = "") {
|
|
22965
|
+
let t = typeof u3 == "string" ? u3 : u3.source, n = { replace: (r2, i) => {
|
|
22966
22966
|
let s2 = typeof i == "string" ? i : i.source;
|
|
22967
22967
|
return s2 = s2.replace(m.caret, "$1"), t = t.replace(r2, s2), n;
|
|
22968
22968
|
}, getRegex: () => new RegExp(t, e) };
|
|
22969
22969
|
return n;
|
|
22970
22970
|
}
|
|
22971
|
-
var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (
|
|
22972
|
-
]`).replace("lheading",
|
|
22973
|
-
var
|
|
22974
|
-
function w(
|
|
22971
|
+
var m = { codeRemoveIndent: /^(?: {1,4}| {0,3}\t)/gm, outputLinkReplace: /\\([\[\]])/g, indentCodeCompensation: /^(\s+)(?:```)/, beginningSpace: /^\s+/, endingHash: /#$/, startingSpaceChar: /^ /, endingSpaceChar: / $/, nonSpaceChar: /[^ ]/, newLineCharGlobal: /\n/g, tabCharGlobal: /\t/g, multipleSpaceGlobal: /\s+/g, blankLine: /^[ \t]*$/, doubleBlankLine: /\n[ \t]*\n[ \t]*$/, blockquoteStart: /^ {0,3}>/, blockquoteSetextReplace: /\n {0,3}((?:=+|-+) *)(?=\n|$)/g, blockquoteSetextReplace2: /^ {0,3}>[ \t]?/gm, listReplaceTabs: /^\t+/, listReplaceNesting: /^ {1,4}(?=( {4})*[^ ])/g, listIsTask: /^\[[ xX]\] /, listReplaceTask: /^\[[ xX]\] +/, anyLine: /\n.*\n/, hrefBrackets: /^<(.*)>$/, tableDelimiter: /[:|]/, tableAlignChars: /^\||\| *$/g, tableRowBlankLine: /\n[ \t]*$/, tableAlignRight: /^ *-+: *$/, tableAlignCenter: /^ *:-+: *$/, tableAlignLeft: /^ *:-+ *$/, startATag: /^<a /i, endATag: /^<\/a>/i, startPreScriptTag: /^<(pre|code|kbd|script)(\s|>)/i, endPreScriptTag: /^<\/(pre|code|kbd|script)(\s|>)/i, startAngleBracket: /^</, endAngleBracket: />$/, pedanticHrefTitle: /^([^'"]*[^\s])\s+(['"])(.*)\2/, unicodeAlphaNumeric: /[\p{L}\p{N}]/u, escapeTest: /[&<>"']/, escapeReplace: /[&<>"']/g, escapeTestNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, escapeReplaceNoEncode: /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g, unescapeTest: /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig, caret: /(^|[^\[])\^/g, percentDecode: /%25/g, findPipe: /\|/g, splitPipe: / \|/, slashPipe: /\\\|/g, carriageReturn: /\r\n|\r/g, spaceLine: /^ +$/gm, notSpaceStart: /^\S*/, endingNewline: /\n$/, listItemRegex: (u3) => new RegExp(`^( {0,3}${u3})((?:[ ][^\\n]*)?(?:\\n|$))`), nextBulletRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), hrRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), fencesBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}(?:\`\`\`|~~~)`), headingBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}#`), htmlBeginRegex: (u3) => new RegExp(`^ {0,${Math.min(3, u3 - 1)}}<(?:[a-z].*>|!--)`, "i") }, be = /^(?:[ \t]*(?:\n|$))+/, Re = /^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/, Te = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, E = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, Oe = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, F = /(?:[*+-]|\d{1,9}[.)])/, ie$2 = /^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/, oe = h(ie$2).replace(/bull/g, F).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/\|table/g, "").getRegex(), we = h(ie$2).replace(/bull/g, F).replace(/blockCode/g, /(?: {4}| {0,3}\t)/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).replace(/table/g, / {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(), j = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ye = /^[^\n]+/, Q = /(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/, Pe = h(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label", Q).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), Se = h(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, F).getRegex(), v = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", U = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, $e = h("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))", "i").replace("comment", U).replace("tag", v).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), ae = h(j).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), _e = h(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", ae).getRegex(), K$1 = { blockquote: _e, code: Re, def: Pe, fences: Te, heading: Oe, hr: E, html: $e, lheading: oe, list: Se, newline: be, paragraph: ae, table: I, text: ye }, re = h("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", "(?: {4}| {0,3} )[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex(), Le = { ...K$1, lheading: we, table: re, paragraph: h(j).replace("hr", E).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", re).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", v).getRegex() }, Me = { ...K$1, html: h(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", U).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(), def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/, heading: /^(#{1,6})(.*)(?:\n+|$)/, fences: I, lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/, paragraph: h(j).replace("hr", E).replace("heading", ` *#{1,6} *[^
|
|
22972
|
+
]`).replace("lheading", oe).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex() }, ze = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, Ae = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, le = /^( {2,}|\\)\n(?!\s*$)/, Ie = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, D = /[\p{P}\p{S}]/u, W = /[\s\p{P}\p{S}]/u, ue = /[^\s\p{P}\p{S}]/u, Ee = h(/^((?![*_])punctSpace)/, "u").replace(/punctSpace/g, W).getRegex(), pe = /(?!~)[\p{P}\p{S}]/u, Ce = /(?!~)[\s\p{P}\p{S}]/u, Be = /(?:[^\s\p{P}\p{S}]|~)/u, qe = h(/link|code|html/, "g").replace("link", /\[(?:[^\[\]`]|(?<!`)(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("code", /(?<!`)(?<b>`+)[^`]+\k<b>(?!`)/).replace("html", /<(?! )[^<>]*?>/).getRegex(), ce = /^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/, ve = h(ce, "u").replace(/punct/g, D).getRegex(), De = h(ce, "u").replace(/punct/g, pe).getRegex(), he$3 = "^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)", He = h(he$3, "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ze = h(he$3, "gu").replace(/notPunctSpace/g, Be).replace(/punctSpace/g, Ce).replace(/punct/g, pe).getRegex(), Ge = h("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)", "gu").replace(/notPunctSpace/g, ue).replace(/punctSpace/g, W).replace(/punct/g, D).getRegex(), Ne = h(/\\(punct)/, "gu").replace(/punct/g, D).getRegex(), Fe = h(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), je = h(U).replace("(?:-->|$)", "-->").getRegex(), Qe = h("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", je).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), q = /(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/, Ue = h(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label", q).replace("href", /<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), de = h(/^!?\[(label)\]\[(ref)\]/).replace("label", q).replace("ref", Q).getRegex(), ke = h(/^!?\[(ref)\](?:\[\])?/).replace("ref", Q).getRegex(), Ke = h("reflink|nolink(?!\\()", "g").replace("reflink", de).replace("nolink", ke).getRegex(), se = /[hH][tT][tT][pP][sS]?|[fF][tT][pP]/, X = { _backpedal: I, anyPunctuation: Ne, autolink: Fe, blockSkip: qe, br: le, code: Ae, del: I, emStrongLDelim: ve, emStrongRDelimAst: He, emStrongRDelimUnd: Ge, escape: ze, link: Ue, nolink: ke, punctuation: Ee, reflink: de, reflinkSearch: Ke, tag: Qe, text: Ie, url: I }, We = { ...X, link: h(/^!?\[(label)\]\((.*?)\)/).replace("label", q).getRegex(), reflink: h(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", q).getRegex() }, N = { ...X, emStrongRDelimAst: Ze, emStrongLDelim: De, url: h(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol", se).replace("email", /[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(), _backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/, del: /^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/, text: h(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol", se).getRegex() }, Xe = { ...N, br: h(le).replace("{2,}", "*").getRegex(), text: h(N.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex() }, C = { normal: K$1, gfm: Le, pedantic: Me }, M$1 = { normal: X, gfm: N, breaks: Xe, pedantic: We };
|
|
22973
|
+
var Je = { "&": "&", "<": "<", ">": ">", '"': """, "'": "'" }, ge = (u3) => Je[u3];
|
|
22974
|
+
function w(u3, e) {
|
|
22975
22975
|
if (e) {
|
|
22976
|
-
if (m.escapeTest.test(
|
|
22977
|
-
} else if (m.escapeTestNoEncode.test(
|
|
22978
|
-
return
|
|
22976
|
+
if (m.escapeTest.test(u3)) return u3.replace(m.escapeReplace, ge);
|
|
22977
|
+
} else if (m.escapeTestNoEncode.test(u3)) return u3.replace(m.escapeReplaceNoEncode, ge);
|
|
22978
|
+
return u3;
|
|
22979
22979
|
}
|
|
22980
|
-
function J(
|
|
22980
|
+
function J(u3) {
|
|
22981
22981
|
try {
|
|
22982
|
-
|
|
22982
|
+
u3 = encodeURI(u3).replace(m.percentDecode, "%");
|
|
22983
22983
|
} catch {
|
|
22984
22984
|
return null;
|
|
22985
22985
|
}
|
|
22986
|
-
return
|
|
22986
|
+
return u3;
|
|
22987
22987
|
}
|
|
22988
|
-
function V(
|
|
22989
|
-
let t =
|
|
22990
|
-
let a = false,
|
|
22991
|
-
for (; --
|
|
22988
|
+
function V(u3, e) {
|
|
22989
|
+
let t = u3.replace(m.findPipe, (i, s2, o) => {
|
|
22990
|
+
let a = false, l = s2;
|
|
22991
|
+
for (; --l >= 0 && o[l] === "\\"; ) a = !a;
|
|
22992
22992
|
return a ? "|" : " |";
|
|
22993
22993
|
}), n = t.split(m.splitPipe), r2 = 0;
|
|
22994
22994
|
if (n[0].trim() || n.shift(), n.length > 0 && !n.at(-1)?.trim() && n.pop(), e) if (n.length > e) n.splice(e);
|
|
@@ -22996,33 +22996,33 @@ function V(l3, e) {
|
|
|
22996
22996
|
for (; r2 < n.length; r2++) n[r2] = n[r2].trim().replace(m.slashPipe, "|");
|
|
22997
22997
|
return n;
|
|
22998
22998
|
}
|
|
22999
|
-
function z(
|
|
23000
|
-
let n =
|
|
22999
|
+
function z(u3, e, t) {
|
|
23000
|
+
let n = u3.length;
|
|
23001
23001
|
if (n === 0) return "";
|
|
23002
23002
|
let r2 = 0;
|
|
23003
23003
|
for (; r2 < n; ) {
|
|
23004
|
-
let i =
|
|
23004
|
+
let i = u3.charAt(n - r2 - 1);
|
|
23005
23005
|
if (i === e && true) r2++;
|
|
23006
23006
|
else break;
|
|
23007
23007
|
}
|
|
23008
|
-
return
|
|
23008
|
+
return u3.slice(0, n - r2);
|
|
23009
23009
|
}
|
|
23010
|
-
function
|
|
23011
|
-
if (
|
|
23010
|
+
function fe(u3, e) {
|
|
23011
|
+
if (u3.indexOf(e[1]) === -1) return -1;
|
|
23012
23012
|
let t = 0;
|
|
23013
|
-
for (let n = 0; n <
|
|
23014
|
-
else if (
|
|
23015
|
-
else if (
|
|
23013
|
+
for (let n = 0; n < u3.length; n++) if (u3[n] === "\\") n++;
|
|
23014
|
+
else if (u3[n] === e[0]) t++;
|
|
23015
|
+
else if (u3[n] === e[1] && (t--, t < 0)) return n;
|
|
23016
23016
|
return t > 0 ? -2 : -1;
|
|
23017
23017
|
}
|
|
23018
|
-
function
|
|
23019
|
-
let i = e.href, s2 = e.title || null, o =
|
|
23018
|
+
function me(u3, e, t, n, r2) {
|
|
23019
|
+
let i = e.href, s2 = e.title || null, o = u3[1].replace(r2.other.outputLinkReplace, "$1");
|
|
23020
23020
|
n.state.inLink = true;
|
|
23021
|
-
let a = { type:
|
|
23021
|
+
let a = { type: u3[0].charAt(0) === "!" ? "image" : "link", raw: t, href: i, title: s2, text: o, tokens: n.inlineTokens(o) };
|
|
23022
23022
|
return n.state.inLink = false, a;
|
|
23023
23023
|
}
|
|
23024
|
-
function
|
|
23025
|
-
let n =
|
|
23024
|
+
function Ve(u3, e, t) {
|
|
23025
|
+
let n = u3.match(t.other.indentCodeCompensation);
|
|
23026
23026
|
if (n === null) return e;
|
|
23027
23027
|
let r2 = n[1];
|
|
23028
23028
|
return e.split(`
|
|
@@ -23039,7 +23039,7 @@ var y = class {
|
|
|
23039
23039
|
__publicField$2(this, "options");
|
|
23040
23040
|
__publicField$2(this, "rules");
|
|
23041
23041
|
__publicField$2(this, "lexer");
|
|
23042
|
-
this.options = e ||
|
|
23042
|
+
this.options = e || T;
|
|
23043
23043
|
}
|
|
23044
23044
|
space(e) {
|
|
23045
23045
|
let t = this.rules.block.newline.exec(e);
|
|
@@ -23056,7 +23056,7 @@ var y = class {
|
|
|
23056
23056
|
fences(e) {
|
|
23057
23057
|
let t = this.rules.block.fences.exec(e);
|
|
23058
23058
|
if (t) {
|
|
23059
|
-
let n = t[0], r2 =
|
|
23059
|
+
let n = t[0], r2 = Ve(n, t[3] || "", this.rules);
|
|
23060
23060
|
return { type: "code", raw: n, lang: t[2] ? t[2].trim().replace(this.rules.inline.anyPunctuation, "$1") : t[2], text: r2 };
|
|
23061
23061
|
}
|
|
23062
23062
|
}
|
|
@@ -23083,32 +23083,32 @@ var y = class {
|
|
|
23083
23083
|
`).split(`
|
|
23084
23084
|
`), r2 = "", i = "", s2 = [];
|
|
23085
23085
|
for (; n.length > 0; ) {
|
|
23086
|
-
let o = false, a = [],
|
|
23087
|
-
for (
|
|
23088
|
-
else if (!o) a.push(n[
|
|
23086
|
+
let o = false, a = [], l;
|
|
23087
|
+
for (l = 0; l < n.length; l++) if (this.rules.other.blockquoteStart.test(n[l])) a.push(n[l]), o = true;
|
|
23088
|
+
else if (!o) a.push(n[l]);
|
|
23089
23089
|
else break;
|
|
23090
|
-
n = n.slice(
|
|
23091
|
-
let
|
|
23092
|
-
`),
|
|
23090
|
+
n = n.slice(l);
|
|
23091
|
+
let c2 = a.join(`
|
|
23092
|
+
`), p = c2.replace(this.rules.other.blockquoteSetextReplace, `
|
|
23093
23093
|
$1`).replace(this.rules.other.blockquoteSetextReplace2, "");
|
|
23094
23094
|
r2 = r2 ? `${r2}
|
|
23095
|
-
${
|
|
23096
|
-
${
|
|
23097
|
-
let
|
|
23098
|
-
if (this.lexer.state.top = true, this.lexer.blockTokens(
|
|
23099
|
-
let
|
|
23100
|
-
if (
|
|
23101
|
-
if (
|
|
23102
|
-
let
|
|
23095
|
+
${c2}` : c2, i = i ? `${i}
|
|
23096
|
+
${p}` : p;
|
|
23097
|
+
let g = this.lexer.state.top;
|
|
23098
|
+
if (this.lexer.state.top = true, this.lexer.blockTokens(p, s2, true), this.lexer.state.top = g, n.length === 0) break;
|
|
23099
|
+
let d2 = s2.at(-1);
|
|
23100
|
+
if (d2?.type === "code") break;
|
|
23101
|
+
if (d2?.type === "blockquote") {
|
|
23102
|
+
let R = d2, f2 = R.raw + `
|
|
23103
23103
|
` + n.join(`
|
|
23104
|
-
`),
|
|
23105
|
-
s2[s2.length - 1] =
|
|
23104
|
+
`), O = this.blockquote(f2);
|
|
23105
|
+
s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - R.raw.length) + O.raw, i = i.substring(0, i.length - R.text.length) + O.text;
|
|
23106
23106
|
break;
|
|
23107
|
-
} else if (
|
|
23108
|
-
let
|
|
23107
|
+
} else if (d2?.type === "list") {
|
|
23108
|
+
let R = d2, f2 = R.raw + `
|
|
23109
23109
|
` + n.join(`
|
|
23110
|
-
`),
|
|
23111
|
-
s2[s2.length - 1] =
|
|
23110
|
+
`), O = this.list(f2);
|
|
23111
|
+
s2[s2.length - 1] = O, r2 = r2.substring(0, r2.length - d2.raw.length) + O.raw, i = i.substring(0, i.length - R.raw.length) + O.raw, n = f2.substring(s2.at(-1).raw.length).split(`
|
|
23112
23112
|
`);
|
|
23113
23113
|
continue;
|
|
23114
23114
|
}
|
|
@@ -23123,43 +23123,43 @@ ${c2}` : c2;
|
|
|
23123
23123
|
n = r2 ? `\\d{1,9}\\${n.slice(-1)}` : `\\${n}`, this.options.pedantic && (n = r2 ? n : "[*+-]");
|
|
23124
23124
|
let s2 = this.rules.other.listItemRegex(n), o = false;
|
|
23125
23125
|
for (; e; ) {
|
|
23126
|
-
let
|
|
23126
|
+
let l = false, c2 = "", p = "";
|
|
23127
23127
|
if (!(t = s2.exec(e)) || this.rules.block.hr.test(e)) break;
|
|
23128
|
-
|
|
23129
|
-
let
|
|
23130
|
-
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)),
|
|
23131
|
-
`, 1)[0],
|
|
23132
|
-
if (this.options.pedantic ? (
|
|
23133
|
-
`, e = e.substring(
|
|
23134
|
-
let H = this.rules.other.nextBulletRegex(
|
|
23128
|
+
c2 = t[0], e = e.substring(c2.length);
|
|
23129
|
+
let g = t[2].split(`
|
|
23130
|
+
`, 1)[0].replace(this.rules.other.listReplaceTabs, (H) => " ".repeat(3 * H.length)), d2 = e.split(`
|
|
23131
|
+
`, 1)[0], R = !g.trim(), f2 = 0;
|
|
23132
|
+
if (this.options.pedantic ? (f2 = 2, p = g.trimStart()) : R ? f2 = t[1].length + 1 : (f2 = t[2].search(this.rules.other.nonSpaceChar), f2 = f2 > 4 ? 1 : f2, p = g.slice(f2), f2 += t[1].length), R && this.rules.other.blankLine.test(d2) && (c2 += d2 + `
|
|
23133
|
+
`, e = e.substring(d2.length + 1), l = true), !l) {
|
|
23134
|
+
let H = this.rules.other.nextBulletRegex(f2), ee = this.rules.other.hrRegex(f2), te = this.rules.other.fencesBeginRegex(f2), ne = this.rules.other.headingBeginRegex(f2), xe = this.rules.other.htmlBeginRegex(f2);
|
|
23135
23135
|
for (; e; ) {
|
|
23136
23136
|
let Z = e.split(`
|
|
23137
23137
|
`, 1)[0], A2;
|
|
23138
|
-
if (
|
|
23139
|
-
if (A2.search(this.rules.other.nonSpaceChar) >=
|
|
23140
|
-
` + A2.slice(
|
|
23138
|
+
if (d2 = Z, this.options.pedantic ? (d2 = d2.replace(this.rules.other.listReplaceNesting, " "), A2 = d2) : A2 = d2.replace(this.rules.other.tabCharGlobal, " "), te.test(d2) || ne.test(d2) || xe.test(d2) || H.test(d2) || ee.test(d2)) break;
|
|
23139
|
+
if (A2.search(this.rules.other.nonSpaceChar) >= f2 || !d2.trim()) p += `
|
|
23140
|
+
` + A2.slice(f2);
|
|
23141
23141
|
else {
|
|
23142
|
-
if (
|
|
23143
|
-
|
|
23144
|
-
` +
|
|
23142
|
+
if (R || g.replace(this.rules.other.tabCharGlobal, " ").search(this.rules.other.nonSpaceChar) >= 4 || te.test(g) || ne.test(g) || ee.test(g)) break;
|
|
23143
|
+
p += `
|
|
23144
|
+
` + d2;
|
|
23145
23145
|
}
|
|
23146
|
-
!
|
|
23147
|
-
`, e = e.substring(Z.length + 1),
|
|
23146
|
+
!R && !d2.trim() && (R = true), c2 += Z + `
|
|
23147
|
+
`, e = e.substring(Z.length + 1), g = A2.slice(f2);
|
|
23148
23148
|
}
|
|
23149
23149
|
}
|
|
23150
|
-
i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(
|
|
23151
|
-
let
|
|
23152
|
-
this.options.gfm && (
|
|
23150
|
+
i.loose || (o ? i.loose = true : this.rules.other.doubleBlankLine.test(c2) && (o = true));
|
|
23151
|
+
let O = null, Y2;
|
|
23152
|
+
this.options.gfm && (O = this.rules.other.listIsTask.exec(p), O && (Y2 = O[0] !== "[ ] ", p = p.replace(this.rules.other.listReplaceTask, ""))), i.items.push({ type: "list_item", raw: c2, task: !!O, checked: Y2, loose: false, text: p, tokens: [] }), i.raw += c2;
|
|
23153
23153
|
}
|
|
23154
23154
|
let a = i.items.at(-1);
|
|
23155
23155
|
if (a) a.raw = a.raw.trimEnd(), a.text = a.text.trimEnd();
|
|
23156
23156
|
else return;
|
|
23157
23157
|
i.raw = i.raw.trimEnd();
|
|
23158
|
-
for (let
|
|
23159
|
-
let
|
|
23160
|
-
i.loose =
|
|
23158
|
+
for (let l = 0; l < i.items.length; l++) if (this.lexer.state.top = false, i.items[l].tokens = this.lexer.blockTokens(i.items[l].text, []), !i.loose) {
|
|
23159
|
+
let c2 = i.items[l].tokens.filter((g) => g.type === "space"), p = c2.length > 0 && c2.some((g) => this.rules.other.anyLine.test(g.raw));
|
|
23160
|
+
i.loose = p;
|
|
23161
23161
|
}
|
|
23162
|
-
if (i.loose) for (let
|
|
23162
|
+
if (i.loose) for (let l = 0; l < i.items.length; l++) i.items[l].loose = true;
|
|
23163
23163
|
return i;
|
|
23164
23164
|
}
|
|
23165
23165
|
}
|
|
@@ -23182,7 +23182,7 @@ ${c2}` : c2;
|
|
|
23182
23182
|
if (n.length === r2.length) {
|
|
23183
23183
|
for (let o of r2) this.rules.other.tableAlignRight.test(o) ? s2.align.push("right") : this.rules.other.tableAlignCenter.test(o) ? s2.align.push("center") : this.rules.other.tableAlignLeft.test(o) ? s2.align.push("left") : s2.align.push(null);
|
|
23184
23184
|
for (let o = 0; o < n.length; o++) s2.header.push({ text: n[o], tokens: this.lexer.inline(n[o]), header: true, align: s2.align[o] });
|
|
23185
|
-
for (let o of i) s2.rows.push(V(o, s2.header.length).map((a,
|
|
23185
|
+
for (let o of i) s2.rows.push(V(o, s2.header.length).map((a, l) => ({ text: a, tokens: this.lexer.inline(a), header: false, align: s2.align[l] })));
|
|
23186
23186
|
return s2;
|
|
23187
23187
|
}
|
|
23188
23188
|
}
|
|
@@ -23219,7 +23219,7 @@ ${c2}` : c2;
|
|
|
23219
23219
|
let s2 = z(n.slice(0, -1), "\\");
|
|
23220
23220
|
if ((n.length - s2.length) % 2 === 0) return;
|
|
23221
23221
|
} else {
|
|
23222
|
-
let s2 =
|
|
23222
|
+
let s2 = fe(t[2], "()");
|
|
23223
23223
|
if (s2 === -2) return;
|
|
23224
23224
|
if (s2 > -1) {
|
|
23225
23225
|
let a = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + s2;
|
|
@@ -23231,7 +23231,7 @@ ${c2}` : c2;
|
|
|
23231
23231
|
let s2 = this.rules.other.pedanticHrefTitle.exec(r2);
|
|
23232
23232
|
s2 && (r2 = s2[1], i = s2[3]);
|
|
23233
23233
|
} else i = t[3] ? t[3].slice(1, -1) : "";
|
|
23234
|
-
return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)),
|
|
23234
|
+
return r2 = r2.trim(), this.rules.other.startAngleBracket.test(r2) && (this.options.pedantic && !this.rules.other.endAngleBracket.test(n) ? r2 = r2.slice(1) : r2 = r2.slice(1, -1)), me(t, { href: r2 && r2.replace(this.rules.inline.anyPunctuation, "$1"), title: i && i.replace(this.rules.inline.anyPunctuation, "$1") }, t[0], this.lexer, this.rules);
|
|
23235
23235
|
}
|
|
23236
23236
|
}
|
|
23237
23237
|
reflink(e, t) {
|
|
@@ -23242,32 +23242,32 @@ ${c2}` : c2;
|
|
|
23242
23242
|
let s2 = n[0].charAt(0);
|
|
23243
23243
|
return { type: "text", raw: s2, text: s2 };
|
|
23244
23244
|
}
|
|
23245
|
-
return
|
|
23245
|
+
return me(n, i, n[0], this.lexer, this.rules);
|
|
23246
23246
|
}
|
|
23247
23247
|
}
|
|
23248
23248
|
emStrong(e, t, n = "") {
|
|
23249
23249
|
let r2 = this.rules.inline.emStrongLDelim.exec(e);
|
|
23250
23250
|
if (!r2 || r2[3] && n.match(this.rules.other.unicodeAlphaNumeric)) return;
|
|
23251
23251
|
if (!(r2[1] || r2[2] || "") || !n || this.rules.inline.punctuation.exec(n)) {
|
|
23252
|
-
let s2 = [...r2[0]].length - 1, o, a,
|
|
23253
|
-
for (
|
|
23252
|
+
let s2 = [...r2[0]].length - 1, o, a, l = s2, c2 = 0, p = r2[0][0] === "*" ? this.rules.inline.emStrongRDelimAst : this.rules.inline.emStrongRDelimUnd;
|
|
23253
|
+
for (p.lastIndex = 0, t = t.slice(-1 * e.length + s2); (r2 = p.exec(t)) != null; ) {
|
|
23254
23254
|
if (o = r2[1] || r2[2] || r2[3] || r2[4] || r2[5] || r2[6], !o) continue;
|
|
23255
23255
|
if (a = [...o].length, r2[3] || r2[4]) {
|
|
23256
|
-
|
|
23256
|
+
l += a;
|
|
23257
23257
|
continue;
|
|
23258
23258
|
} else if ((r2[5] || r2[6]) && s2 % 3 && !((s2 + a) % 3)) {
|
|
23259
|
-
|
|
23259
|
+
c2 += a;
|
|
23260
23260
|
continue;
|
|
23261
23261
|
}
|
|
23262
|
-
if (
|
|
23263
|
-
a = Math.min(a, a +
|
|
23264
|
-
let
|
|
23262
|
+
if (l -= a, l > 0) continue;
|
|
23263
|
+
a = Math.min(a, a + l + c2);
|
|
23264
|
+
let g = [...r2[0]][0].length, d2 = e.slice(0, s2 + r2.index + g + a);
|
|
23265
23265
|
if (Math.min(s2, a) % 2) {
|
|
23266
|
-
let
|
|
23267
|
-
return { type: "em", raw:
|
|
23266
|
+
let f2 = d2.slice(1, -1);
|
|
23267
|
+
return { type: "em", raw: d2, text: f2, tokens: this.lexer.inlineTokens(f2) };
|
|
23268
23268
|
}
|
|
23269
|
-
let
|
|
23270
|
-
return { type: "strong", raw:
|
|
23269
|
+
let R = d2.slice(2, -2);
|
|
23270
|
+
return { type: "strong", raw: d2, text: R, tokens: this.lexer.inlineTokens(R) };
|
|
23271
23271
|
}
|
|
23272
23272
|
}
|
|
23273
23273
|
}
|
|
@@ -23316,25 +23316,25 @@ ${c2}` : c2;
|
|
|
23316
23316
|
}
|
|
23317
23317
|
}
|
|
23318
23318
|
};
|
|
23319
|
-
var
|
|
23319
|
+
var x = class u {
|
|
23320
23320
|
constructor(e) {
|
|
23321
23321
|
__publicField$2(this, "tokens");
|
|
23322
23322
|
__publicField$2(this, "options");
|
|
23323
23323
|
__publicField$2(this, "state");
|
|
23324
23324
|
__publicField$2(this, "tokenizer");
|
|
23325
23325
|
__publicField$2(this, "inlineQueue");
|
|
23326
|
-
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e ||
|
|
23327
|
-
let t = { other: m, block:
|
|
23328
|
-
this.options.pedantic ? (t.block =
|
|
23326
|
+
this.tokens = [], this.tokens.links = /* @__PURE__ */ Object.create(null), this.options = e || T, this.options.tokenizer = this.options.tokenizer || new y(), this.tokenizer = this.options.tokenizer, this.tokenizer.options = this.options, this.tokenizer.lexer = this, this.inlineQueue = [], this.state = { inLink: false, inRawBlock: false, top: true };
|
|
23327
|
+
let t = { other: m, block: C.normal, inline: M$1.normal };
|
|
23328
|
+
this.options.pedantic ? (t.block = C.pedantic, t.inline = M$1.pedantic) : this.options.gfm && (t.block = C.gfm, this.options.breaks ? t.inline = M$1.breaks : t.inline = M$1.gfm), this.tokenizer.rules = t;
|
|
23329
23329
|
}
|
|
23330
23330
|
static get rules() {
|
|
23331
|
-
return { block:
|
|
23331
|
+
return { block: C, inline: M$1 };
|
|
23332
23332
|
}
|
|
23333
23333
|
static lex(e, t) {
|
|
23334
|
-
return new
|
|
23334
|
+
return new u(t).lex(e);
|
|
23335
23335
|
}
|
|
23336
23336
|
static lexInline(e, t) {
|
|
23337
|
-
return new
|
|
23337
|
+
return new u(t).inlineTokens(e);
|
|
23338
23338
|
}
|
|
23339
23339
|
lex(e) {
|
|
23340
23340
|
e = e.replace(m.carriageReturn, `
|
|
@@ -23409,8 +23409,8 @@ var b = class l {
|
|
|
23409
23409
|
let i = e;
|
|
23410
23410
|
if (this.options.extensions?.startBlock) {
|
|
23411
23411
|
let s2 = 1 / 0, o = e.slice(1), a;
|
|
23412
|
-
this.options.extensions.startBlock.forEach((
|
|
23413
|
-
a =
|
|
23412
|
+
this.options.extensions.startBlock.forEach((l) => {
|
|
23413
|
+
a = l.call({ lexer: this }, o), typeof a == "number" && a >= 0 && (s2 = Math.min(s2, a));
|
|
23414
23414
|
}), s2 < 1 / 0 && s2 >= 0 && (i = e.substring(0, s2 + 1));
|
|
23415
23415
|
}
|
|
23416
23416
|
if (this.state.top && (r2 = this.tokenizer.paragraph(i))) {
|
|
@@ -23456,7 +23456,7 @@ var b = class l {
|
|
|
23456
23456
|
for (; e; ) {
|
|
23457
23457
|
i || (s2 = ""), i = false;
|
|
23458
23458
|
let o;
|
|
23459
|
-
if (this.options.extensions?.inline?.some((
|
|
23459
|
+
if (this.options.extensions?.inline?.some((l) => (o = l.call({ lexer: this }, e, t)) ? (e = e.substring(o.raw.length), t.push(o), true) : false)) continue;
|
|
23460
23460
|
if (o = this.tokenizer.escape(e)) {
|
|
23461
23461
|
e = e.substring(o.raw.length), t.push(o);
|
|
23462
23462
|
continue;
|
|
@@ -23471,8 +23471,8 @@ var b = class l {
|
|
|
23471
23471
|
}
|
|
23472
23472
|
if (o = this.tokenizer.reflink(e, this.tokens.links)) {
|
|
23473
23473
|
e = e.substring(o.raw.length);
|
|
23474
|
-
let
|
|
23475
|
-
o.type === "text" &&
|
|
23474
|
+
let l = t.at(-1);
|
|
23475
|
+
o.type === "text" && l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
|
|
23476
23476
|
continue;
|
|
23477
23477
|
}
|
|
23478
23478
|
if (o = this.tokenizer.emStrong(e, n, s2)) {
|
|
@@ -23501,23 +23501,23 @@ var b = class l {
|
|
|
23501
23501
|
}
|
|
23502
23502
|
let a = e;
|
|
23503
23503
|
if (this.options.extensions?.startInline) {
|
|
23504
|
-
let
|
|
23505
|
-
this.options.extensions.startInline.forEach((
|
|
23506
|
-
|
|
23507
|
-
}),
|
|
23504
|
+
let l = 1 / 0, c2 = e.slice(1), p;
|
|
23505
|
+
this.options.extensions.startInline.forEach((g) => {
|
|
23506
|
+
p = g.call({ lexer: this }, c2), typeof p == "number" && p >= 0 && (l = Math.min(l, p));
|
|
23507
|
+
}), l < 1 / 0 && l >= 0 && (a = e.substring(0, l + 1));
|
|
23508
23508
|
}
|
|
23509
23509
|
if (o = this.tokenizer.inlineText(a)) {
|
|
23510
23510
|
e = e.substring(o.raw.length), o.raw.slice(-1) !== "_" && (s2 = o.raw.slice(-1)), i = true;
|
|
23511
|
-
let
|
|
23512
|
-
|
|
23511
|
+
let l = t.at(-1);
|
|
23512
|
+
l?.type === "text" ? (l.raw += o.raw, l.text += o.text) : t.push(o);
|
|
23513
23513
|
continue;
|
|
23514
23514
|
}
|
|
23515
23515
|
if (e) {
|
|
23516
|
-
let
|
|
23516
|
+
let l = "Infinite loop on byte: " + e.charCodeAt(0);
|
|
23517
23517
|
if (this.options.silent) {
|
|
23518
|
-
console.error(
|
|
23518
|
+
console.error(l);
|
|
23519
23519
|
break;
|
|
23520
|
-
} else throw new Error(
|
|
23520
|
+
} else throw new Error(l);
|
|
23521
23521
|
}
|
|
23522
23522
|
}
|
|
23523
23523
|
return t;
|
|
@@ -23527,7 +23527,7 @@ var P = class {
|
|
|
23527
23527
|
constructor(e) {
|
|
23528
23528
|
__publicField$2(this, "options");
|
|
23529
23529
|
__publicField$2(this, "parser");
|
|
23530
|
-
this.options = e ||
|
|
23530
|
+
this.options = e || T;
|
|
23531
23531
|
}
|
|
23532
23532
|
space(e) {
|
|
23533
23533
|
return "";
|
|
@@ -23675,18 +23675,18 @@ var $ = class {
|
|
|
23675
23675
|
return "";
|
|
23676
23676
|
}
|
|
23677
23677
|
};
|
|
23678
|
-
var
|
|
23678
|
+
var b = class u2 {
|
|
23679
23679
|
constructor(e) {
|
|
23680
23680
|
__publicField$2(this, "options");
|
|
23681
23681
|
__publicField$2(this, "renderer");
|
|
23682
23682
|
__publicField$2(this, "textRenderer");
|
|
23683
|
-
this.options = e ||
|
|
23683
|
+
this.options = e || T, this.options.renderer = this.options.renderer || new P(), this.renderer = this.options.renderer, this.renderer.options = this.options, this.renderer.parser = this, this.textRenderer = new $();
|
|
23684
23684
|
}
|
|
23685
23685
|
static parse(e, t) {
|
|
23686
|
-
return new
|
|
23686
|
+
return new u2(t).parse(e);
|
|
23687
23687
|
}
|
|
23688
23688
|
static parseInline(e, t) {
|
|
23689
|
-
return new
|
|
23689
|
+
return new u2(t).parseInline(e);
|
|
23690
23690
|
}
|
|
23691
23691
|
parse(e, t = true) {
|
|
23692
23692
|
let n = "";
|
|
@@ -23824,7 +23824,7 @@ var S = (_a = class {
|
|
|
23824
23824
|
constructor(e) {
|
|
23825
23825
|
__publicField$2(this, "options");
|
|
23826
23826
|
__publicField$2(this, "block");
|
|
23827
|
-
this.options = e ||
|
|
23827
|
+
this.options = e || T;
|
|
23828
23828
|
}
|
|
23829
23829
|
preprocess(e) {
|
|
23830
23830
|
return e;
|
|
@@ -23839,10 +23839,10 @@ var S = (_a = class {
|
|
|
23839
23839
|
return e;
|
|
23840
23840
|
}
|
|
23841
23841
|
provideLexer() {
|
|
23842
|
-
return this.block ?
|
|
23842
|
+
return this.block ? x.lex : x.lexInline;
|
|
23843
23843
|
}
|
|
23844
23844
|
provideParser() {
|
|
23845
|
-
return this.block ?
|
|
23845
|
+
return this.block ? b.parse : b.parseInline;
|
|
23846
23846
|
}
|
|
23847
23847
|
}, __publicField$2(_a, "passThroughHooks", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens", "emStrongMask"])), __publicField$2(_a, "passThroughHooksRespectAsync", /* @__PURE__ */ new Set(["preprocess", "postprocess", "processAllTokens"])), _a);
|
|
23848
23848
|
var B = class {
|
|
@@ -23851,10 +23851,10 @@ var B = class {
|
|
|
23851
23851
|
__publicField$2(this, "options", this.setOptions);
|
|
23852
23852
|
__publicField$2(this, "parse", this.parseMarkdown(true));
|
|
23853
23853
|
__publicField$2(this, "parseInline", this.parseMarkdown(false));
|
|
23854
|
-
__publicField$2(this, "Parser",
|
|
23854
|
+
__publicField$2(this, "Parser", b);
|
|
23855
23855
|
__publicField$2(this, "Renderer", P);
|
|
23856
23856
|
__publicField$2(this, "TextRenderer", $);
|
|
23857
|
-
__publicField$2(this, "Lexer",
|
|
23857
|
+
__publicField$2(this, "Lexer", x);
|
|
23858
23858
|
__publicField$2(this, "Tokenizer", y);
|
|
23859
23859
|
__publicField$2(this, "Hooks", S);
|
|
23860
23860
|
this.use(...e);
|
|
@@ -23907,10 +23907,10 @@ var B = class {
|
|
|
23907
23907
|
for (let s2 in n.renderer) {
|
|
23908
23908
|
if (!(s2 in i)) throw new Error(`renderer '${s2}' does not exist`);
|
|
23909
23909
|
if (["options", "parser"].includes(s2)) continue;
|
|
23910
|
-
let o = s2, a = n.renderer[o],
|
|
23911
|
-
i[o] = (...
|
|
23912
|
-
let
|
|
23913
|
-
return
|
|
23910
|
+
let o = s2, a = n.renderer[o], l = i[o];
|
|
23911
|
+
i[o] = (...c2) => {
|
|
23912
|
+
let p = a.apply(i, c2);
|
|
23913
|
+
return p === false && (p = l.apply(i, c2)), p || "";
|
|
23914
23914
|
};
|
|
23915
23915
|
}
|
|
23916
23916
|
r2.renderer = i;
|
|
@@ -23920,10 +23920,10 @@ var B = class {
|
|
|
23920
23920
|
for (let s2 in n.tokenizer) {
|
|
23921
23921
|
if (!(s2 in i)) throw new Error(`tokenizer '${s2}' does not exist`);
|
|
23922
23922
|
if (["options", "rules", "lexer"].includes(s2)) continue;
|
|
23923
|
-
let o = s2, a = n.tokenizer[o],
|
|
23924
|
-
i[o] = (...
|
|
23925
|
-
let
|
|
23926
|
-
return
|
|
23923
|
+
let o = s2, a = n.tokenizer[o], l = i[o];
|
|
23924
|
+
i[o] = (...c2) => {
|
|
23925
|
+
let p = a.apply(i, c2);
|
|
23926
|
+
return p === false && (p = l.apply(i, c2)), p;
|
|
23927
23927
|
};
|
|
23928
23928
|
}
|
|
23929
23929
|
r2.tokenizer = i;
|
|
@@ -23933,14 +23933,21 @@ var B = class {
|
|
|
23933
23933
|
for (let s2 in n.hooks) {
|
|
23934
23934
|
if (!(s2 in i)) throw new Error(`hook '${s2}' does not exist`);
|
|
23935
23935
|
if (["options", "block"].includes(s2)) continue;
|
|
23936
|
-
let o = s2, a = n.hooks[o],
|
|
23937
|
-
S.passThroughHooks.has(s2) ? i[o] = (
|
|
23938
|
-
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return
|
|
23939
|
-
|
|
23940
|
-
|
|
23941
|
-
|
|
23942
|
-
let
|
|
23943
|
-
return
|
|
23936
|
+
let o = s2, a = n.hooks[o], l = i[o];
|
|
23937
|
+
S.passThroughHooks.has(s2) ? i[o] = (c2) => {
|
|
23938
|
+
if (this.defaults.async && S.passThroughHooksRespectAsync.has(s2)) return (async () => {
|
|
23939
|
+
let g = await a.call(i, c2);
|
|
23940
|
+
return l.call(i, g);
|
|
23941
|
+
})();
|
|
23942
|
+
let p = a.call(i, c2);
|
|
23943
|
+
return l.call(i, p);
|
|
23944
|
+
} : i[o] = (...c2) => {
|
|
23945
|
+
if (this.defaults.async) return (async () => {
|
|
23946
|
+
let g = await a.apply(i, c2);
|
|
23947
|
+
return g === false && (g = await l.apply(i, c2)), g;
|
|
23948
|
+
})();
|
|
23949
|
+
let p = a.apply(i, c2);
|
|
23950
|
+
return p === false && (p = l.apply(i, c2)), p;
|
|
23944
23951
|
};
|
|
23945
23952
|
}
|
|
23946
23953
|
r2.hooks = i;
|
|
@@ -23959,10 +23966,10 @@ var B = class {
|
|
|
23959
23966
|
return this.defaults = { ...this.defaults, ...e }, this;
|
|
23960
23967
|
}
|
|
23961
23968
|
lexer(e, t) {
|
|
23962
|
-
return
|
|
23969
|
+
return x.lex(e, t ?? this.defaults);
|
|
23963
23970
|
}
|
|
23964
23971
|
parser(e, t) {
|
|
23965
|
-
return
|
|
23972
|
+
return b.parse(e, t ?? this.defaults);
|
|
23966
23973
|
}
|
|
23967
23974
|
parseMarkdown(e) {
|
|
23968
23975
|
return (n, r2) => {
|
|
@@ -23970,17 +23977,20 @@ var B = class {
|
|
|
23970
23977
|
if (this.defaults.async === true && i.async === false) return o(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));
|
|
23971
23978
|
if (typeof n > "u" || n === null) return o(new Error("marked(): input parameter is undefined or null"));
|
|
23972
23979
|
if (typeof n != "string") return o(new Error("marked(): input parameter is of type " + Object.prototype.toString.call(n) + ", string expected"));
|
|
23973
|
-
s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e)
|
|
23974
|
-
|
|
23975
|
-
|
|
23980
|
+
if (s2.hooks && (s2.hooks.options = s2, s2.hooks.block = e), s2.async) return (async () => {
|
|
23981
|
+
let a = s2.hooks ? await s2.hooks.preprocess(n) : n, c2 = await (s2.hooks ? await s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(a, s2), p = s2.hooks ? await s2.hooks.processAllTokens(c2) : c2;
|
|
23982
|
+
s2.walkTokens && await Promise.all(this.walkTokens(p, s2.walkTokens));
|
|
23983
|
+
let d2 = await (s2.hooks ? await s2.hooks.provideParser() : e ? b.parse : b.parseInline)(p, s2);
|
|
23984
|
+
return s2.hooks ? await s2.hooks.postprocess(d2) : d2;
|
|
23985
|
+
})().catch(o);
|
|
23976
23986
|
try {
|
|
23977
23987
|
s2.hooks && (n = s2.hooks.preprocess(n));
|
|
23978
|
-
let
|
|
23979
|
-
s2.hooks && (
|
|
23980
|
-
let
|
|
23981
|
-
return s2.hooks && (
|
|
23982
|
-
} catch (
|
|
23983
|
-
return o(
|
|
23988
|
+
let l = (s2.hooks ? s2.hooks.provideLexer() : e ? x.lex : x.lexInline)(n, s2);
|
|
23989
|
+
s2.hooks && (l = s2.hooks.processAllTokens(l)), s2.walkTokens && this.walkTokens(l, s2.walkTokens);
|
|
23990
|
+
let p = (s2.hooks ? s2.hooks.provideParser() : e ? b.parse : b.parseInline)(l, s2);
|
|
23991
|
+
return s2.hooks && (p = s2.hooks.postprocess(p)), p;
|
|
23992
|
+
} catch (a) {
|
|
23993
|
+
return o(a);
|
|
23984
23994
|
}
|
|
23985
23995
|
};
|
|
23986
23996
|
}
|
|
@@ -23997,38 +24007,38 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
|
23997
24007
|
}
|
|
23998
24008
|
};
|
|
23999
24009
|
var _ = new B();
|
|
24000
|
-
function
|
|
24001
|
-
return _.parse(
|
|
24002
|
-
}
|
|
24003
|
-
|
|
24004
|
-
return _.setOptions(
|
|
24005
|
-
};
|
|
24006
|
-
|
|
24007
|
-
|
|
24008
|
-
|
|
24009
|
-
return _.use(...
|
|
24010
|
-
};
|
|
24011
|
-
|
|
24012
|
-
return _.walkTokens(
|
|
24013
|
-
};
|
|
24014
|
-
|
|
24015
|
-
|
|
24016
|
-
|
|
24017
|
-
|
|
24018
|
-
|
|
24019
|
-
|
|
24020
|
-
|
|
24021
|
-
|
|
24022
|
-
|
|
24023
|
-
|
|
24024
|
-
|
|
24025
|
-
|
|
24026
|
-
|
|
24027
|
-
|
|
24028
|
-
|
|
24029
|
-
|
|
24030
|
-
|
|
24031
|
-
|
|
24010
|
+
function k$1(u3, e) {
|
|
24011
|
+
return _.parse(u3, e);
|
|
24012
|
+
}
|
|
24013
|
+
k$1.options = k$1.setOptions = function(u3) {
|
|
24014
|
+
return _.setOptions(u3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
|
|
24015
|
+
};
|
|
24016
|
+
k$1.getDefaults = L;
|
|
24017
|
+
k$1.defaults = T;
|
|
24018
|
+
k$1.use = function(...u3) {
|
|
24019
|
+
return _.use(...u3), k$1.defaults = _.defaults, G(k$1.defaults), k$1;
|
|
24020
|
+
};
|
|
24021
|
+
k$1.walkTokens = function(u3, e) {
|
|
24022
|
+
return _.walkTokens(u3, e);
|
|
24023
|
+
};
|
|
24024
|
+
k$1.parseInline = _.parseInline;
|
|
24025
|
+
k$1.Parser = b;
|
|
24026
|
+
k$1.parser = b.parse;
|
|
24027
|
+
k$1.Renderer = P;
|
|
24028
|
+
k$1.TextRenderer = $;
|
|
24029
|
+
k$1.Lexer = x;
|
|
24030
|
+
k$1.lexer = x.lex;
|
|
24031
|
+
k$1.Tokenizer = y;
|
|
24032
|
+
k$1.Hooks = S;
|
|
24033
|
+
k$1.parse = k$1;
|
|
24034
|
+
k$1.options;
|
|
24035
|
+
k$1.setOptions;
|
|
24036
|
+
k$1.use;
|
|
24037
|
+
k$1.walkTokens;
|
|
24038
|
+
k$1.parseInline;
|
|
24039
|
+
b.parse;
|
|
24040
|
+
x.lex;
|
|
24041
|
+
k$1.use({
|
|
24032
24042
|
breaks: false,
|
|
24033
24043
|
// Use proper paragraphs, not <br> tags
|
|
24034
24044
|
gfm: true
|
|
@@ -24039,7 +24049,7 @@ function createDocFromMarkdown(markdown, schema, options = {}) {
|
|
|
24039
24049
|
return createDocFromHTML(html, schema, options);
|
|
24040
24050
|
}
|
|
24041
24051
|
function convertMarkdownToHTML(markdown) {
|
|
24042
|
-
let html =
|
|
24052
|
+
let html = k$1.parse(markdown, { async: false });
|
|
24043
24053
|
return html.replace(/<\/p>\n<ul>/g, "</p>\n<p> </p>\n<ul>").replace(/<\/p>\n<ol>/g, "</p>\n<p> </p>\n<ol>").replace(/<\/ul>\n<h/g, "</ul>\n<p> </p>\n<h").replace(/<\/ol>\n<h/g, "</ol>\n<p> </p>\n<h");
|
|
24044
24054
|
}
|
|
24045
24055
|
function processContent({ content, type: type2, schema }) {
|
|
@@ -28786,7 +28796,16 @@ const translateImageNode = (params2) => {
|
|
|
28786
28796
|
const { width: w2, height: h2 } = resizeKeepAspectRatio(size2.w, size2.h, maxWidthEmu);
|
|
28787
28797
|
if (w2 && h2) size2 = { w: w2, h: h2 };
|
|
28788
28798
|
}
|
|
28789
|
-
if (
|
|
28799
|
+
if (imageId) {
|
|
28800
|
+
const docx = params2.converter?.convertedXml || {};
|
|
28801
|
+
const rels = docx["word/_rels/document.xml.rels"];
|
|
28802
|
+
const relsTag = rels?.elements?.find((el) => el.name === "Relationships");
|
|
28803
|
+
const hasRelation = relsTag?.elements.find((el) => el.attributes.Id === imageId);
|
|
28804
|
+
const path = src?.split("word/")[1];
|
|
28805
|
+
if (!hasRelation) {
|
|
28806
|
+
addImageRelationshipForId(params2, imageId, path);
|
|
28807
|
+
}
|
|
28808
|
+
} else if (params2.node.type === "image" && !imageId) {
|
|
28790
28809
|
const path = src?.split("word/")[1];
|
|
28791
28810
|
imageId = addNewImageRelationship(params2, path);
|
|
28792
28811
|
} else if (params2.node.type === "fieldAnnotation" && !imageId) {
|
|
@@ -29010,6 +29029,18 @@ function addNewImageRelationship(params2, imagePath) {
|
|
|
29010
29029
|
params2.relationships.push(newRel);
|
|
29011
29030
|
return newId;
|
|
29012
29031
|
}
|
|
29032
|
+
function addImageRelationshipForId(params2, id, imagePath) {
|
|
29033
|
+
const newRel = {
|
|
29034
|
+
type: "element",
|
|
29035
|
+
name: "Relationship",
|
|
29036
|
+
attributes: {
|
|
29037
|
+
Id: id,
|
|
29038
|
+
Type: "http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",
|
|
29039
|
+
Target: imagePath
|
|
29040
|
+
}
|
|
29041
|
+
};
|
|
29042
|
+
params2.relationships.push(newRel);
|
|
29043
|
+
}
|
|
29013
29044
|
function translateVectorShape(params2) {
|
|
29014
29045
|
const { node } = params2;
|
|
29015
29046
|
const { drawingContent } = node.attrs;
|
|
@@ -35299,6 +35330,35 @@ const prepareCommentsXmlFilesForExport = ({ convertedXml, defs, commentsWithPara
|
|
|
35299
35330
|
};
|
|
35300
35331
|
const HYPERLINK_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink";
|
|
35301
35332
|
const HEADER_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/header";
|
|
35333
|
+
const FOOTER_RELATIONSHIP_TYPE = "http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer";
|
|
35334
|
+
const REL_ID_NUMERIC_PATTERN = /rId|mi/g;
|
|
35335
|
+
const getLargestRelationshipId = (relationships = []) => {
|
|
35336
|
+
const numericIds = relationships.map((rel) => Number(String(rel?.attributes?.Id ?? "").replace(REL_ID_NUMERIC_PATTERN, ""))).filter((value) => Number.isFinite(value));
|
|
35337
|
+
return numericIds.length ? Math.max(...numericIds) : 0;
|
|
35338
|
+
};
|
|
35339
|
+
const mergeRelationshipElements = (existingRelationships = [], newRelationships = []) => {
|
|
35340
|
+
if (!newRelationships?.length) return existingRelationships;
|
|
35341
|
+
let largestId = getLargestRelationshipId(existingRelationships);
|
|
35342
|
+
const seenIds = new Set(existingRelationships.map((rel) => rel?.attributes?.Id).filter(Boolean));
|
|
35343
|
+
const additions = [];
|
|
35344
|
+
newRelationships.forEach((rel) => {
|
|
35345
|
+
if (!rel?.attributes) return;
|
|
35346
|
+
const attributes = rel.attributes;
|
|
35347
|
+
const currentId = attributes.Id || "";
|
|
35348
|
+
attributes.Target = attributes?.Target?.replace(/&/g, "&");
|
|
35349
|
+
const existingTarget = existingRelationships.find((el) => el.attributes.Target === attributes.Target);
|
|
35350
|
+
const isMedia = attributes.Target?.startsWith("media/");
|
|
35351
|
+
const isNewHyperlink = attributes.Type === HYPERLINK_RELATIONSHIP_TYPE && currentId.length > 6;
|
|
35352
|
+
const isNewHeadFoot = (attributes.Type === HEADER_RELATIONSHIP_TYPE || attributes.Type === FOOTER_RELATIONSHIP_TYPE) && currentId.length > 6;
|
|
35353
|
+
const hasSeenId = currentId && seenIds.has(currentId);
|
|
35354
|
+
const shouldSkip = !isNewHyperlink && !isNewHeadFoot && (hasSeenId || existingTarget);
|
|
35355
|
+
if (shouldSkip) return;
|
|
35356
|
+
attributes.Id = currentId.length > 6 || isMedia ? currentId : `rId${++largestId}`;
|
|
35357
|
+
seenIds.add(attributes.Id);
|
|
35358
|
+
additions.push(rel);
|
|
35359
|
+
});
|
|
35360
|
+
return additions.length ? [...existingRelationships, ...additions] : existingRelationships;
|
|
35361
|
+
};
|
|
35302
35362
|
const FONT_FAMILY_FALLBACKS = Object.freeze({
|
|
35303
35363
|
swiss: "Arial, sans-serif",
|
|
35304
35364
|
roman: "Times New Roman, serif",
|
|
@@ -35507,7 +35567,7 @@ const _SuperConverter = class _SuperConverter2 {
|
|
|
35507
35567
|
static getStoredSuperdocVersion(docx) {
|
|
35508
35568
|
return _SuperConverter2.getStoredCustomProperty(docx, "SuperdocVersion");
|
|
35509
35569
|
}
|
|
35510
|
-
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.28.
|
|
35570
|
+
static setStoredSuperdocVersion(docx = this.convertedXml, version2 = "0.28.4") {
|
|
35511
35571
|
return _SuperConverter2.setStoredCustomProperty(docx, "SuperdocVersion", version2, false);
|
|
35512
35572
|
}
|
|
35513
35573
|
/**
|
|
@@ -35898,7 +35958,7 @@ prepareCommentsXmlFilesForExport_fn = function({ defs, exportType, commentsWithP
|
|
|
35898
35958
|
};
|
|
35899
35959
|
exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
35900
35960
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
35901
|
-
const relationships = relsData.elements.find((
|
|
35961
|
+
const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
|
|
35902
35962
|
const newDocRels = [];
|
|
35903
35963
|
Object.entries(this.headers).forEach(([id, header], index2) => {
|
|
35904
35964
|
const fileName = relationships.elements.find((el) => el.attributes.Id === id)?.attributes.Target || `header${index2 + 1}.xml`;
|
|
@@ -35939,7 +35999,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
35939
35999
|
}
|
|
35940
36000
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
35941
36001
|
if (params2.relationships.length) {
|
|
35942
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
36002
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
|
|
35943
36003
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
35944
36004
|
declaration: this.initialJSON?.declaration,
|
|
35945
36005
|
elements: [
|
|
@@ -35993,7 +36053,7 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
35993
36053
|
}
|
|
35994
36054
|
this.convertedXml[`word/${fileName}`].elements[0].elements = bodyContent;
|
|
35995
36055
|
if (params2.relationships.length) {
|
|
35996
|
-
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((
|
|
36056
|
+
const relationships2 = this.convertedXml[`word/_rels/${fileName}.rels`]?.elements?.find((x2) => x2.name === "Relationships")?.elements || [];
|
|
35997
36057
|
this.convertedXml[`word/_rels/${fileName}.rels`] = {
|
|
35998
36058
|
declaration: this.initialJSON?.declaration,
|
|
35999
36059
|
elements: [
|
|
@@ -36012,24 +36072,8 @@ exportProcessHeadersFooters_fn = function({ isFinalDoc = false }) {
|
|
|
36012
36072
|
};
|
|
36013
36073
|
exportProcessNewRelationships_fn = function(rels = []) {
|
|
36014
36074
|
const relsData = this.convertedXml["word/_rels/document.xml.rels"];
|
|
36015
|
-
const relationships = relsData.elements.find((
|
|
36016
|
-
|
|
36017
|
-
const regex = /rId|mi/g;
|
|
36018
|
-
let largestId = Math.max(...relationships.elements.map((el) => Number(el.attributes.Id.replace(regex, ""))));
|
|
36019
|
-
rels.forEach((rel) => {
|
|
36020
|
-
const existingId = rel.attributes.Id;
|
|
36021
|
-
const existingTarget = relationships.elements.find((el) => el.attributes.Target === rel.attributes.Target);
|
|
36022
|
-
const isNewMedia = rel.attributes.Target?.startsWith("media/") && existingId.length > 6;
|
|
36023
|
-
const isNewHyperlink = rel.attributes.Type === HYPERLINK_RELATIONSHIP_TYPE && existingId.length > 6;
|
|
36024
|
-
const isNewHeadFoot = rel.attributes.Type === HEADER_RELATIONSHIP_TYPE && existingId.length > 6;
|
|
36025
|
-
if (existingTarget && !isNewMedia && !isNewHyperlink && !isNewHeadFoot) {
|
|
36026
|
-
return;
|
|
36027
|
-
}
|
|
36028
|
-
rel.attributes.Target = rel.attributes?.Target?.replace(/&/g, "&");
|
|
36029
|
-
rel.attributes.Id = existingId.length > 6 ? existingId : `rId${++largestId}`;
|
|
36030
|
-
newRels.push(rel);
|
|
36031
|
-
});
|
|
36032
|
-
relationships.elements = [...relationships.elements, ...newRels];
|
|
36075
|
+
const relationships = relsData.elements.find((x2) => x2.name === "Relationships");
|
|
36076
|
+
relationships.elements = mergeRelationshipElements(relationships.elements, rels);
|
|
36033
36077
|
};
|
|
36034
36078
|
exportProcessMediaFiles_fn = async function(media = {}) {
|
|
36035
36079
|
const processedData = {
|
|
@@ -36113,37 +36157,37 @@ function requireJszip_min() {
|
|
|
36113
36157
|
module2.exports = e();
|
|
36114
36158
|
})(function() {
|
|
36115
36159
|
return (function s2(a, o, h2) {
|
|
36116
|
-
function
|
|
36160
|
+
function u3(r2, e2) {
|
|
36117
36161
|
if (!o[r2]) {
|
|
36118
36162
|
if (!a[r2]) {
|
|
36119
36163
|
var t = "function" == typeof commonjsRequire && commonjsRequire;
|
|
36120
36164
|
if (!e2 && t) return t(r2, true);
|
|
36121
|
-
if (
|
|
36165
|
+
if (l) return l(r2, true);
|
|
36122
36166
|
var n = new Error("Cannot find module '" + r2 + "'");
|
|
36123
36167
|
throw n.code = "MODULE_NOT_FOUND", n;
|
|
36124
36168
|
}
|
|
36125
36169
|
var i = o[r2] = { exports: {} };
|
|
36126
36170
|
a[r2][0].call(i.exports, function(e3) {
|
|
36127
36171
|
var t2 = a[r2][1][e3];
|
|
36128
|
-
return
|
|
36172
|
+
return u3(t2 || e3);
|
|
36129
36173
|
}, i, i.exports, s2, a, o, h2);
|
|
36130
36174
|
}
|
|
36131
36175
|
return o[r2].exports;
|
|
36132
36176
|
}
|
|
36133
|
-
for (var
|
|
36134
|
-
return
|
|
36177
|
+
for (var l = "function" == typeof commonjsRequire && commonjsRequire, e = 0; e < h2.length; e++) u3(h2[e]);
|
|
36178
|
+
return u3;
|
|
36135
36179
|
})({ 1: [function(e, t, r2) {
|
|
36136
36180
|
var d2 = e("./utils"), c2 = e("./support"), p = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
36137
36181
|
r2.encode = function(e2) {
|
|
36138
|
-
for (var t2, r22, n, i, s2, a, o, h2 = [],
|
|
36182
|
+
for (var t2, r22, n, i, s2, a, o, h2 = [], u3 = 0, l = e2.length, f2 = l, c22 = "string" !== d2.getTypeOf(e2); u3 < e2.length; ) f2 = l - u3, n = c22 ? (t2 = e2[u3++], r22 = u3 < l ? e2[u3++] : 0, u3 < l ? e2[u3++] : 0) : (t2 = e2.charCodeAt(u3++), r22 = u3 < l ? e2.charCodeAt(u3++) : 0, u3 < l ? e2.charCodeAt(u3++) : 0), i = t2 >> 2, s2 = (3 & t2) << 4 | r22 >> 4, a = 1 < f2 ? (15 & r22) << 2 | n >> 6 : 64, o = 2 < f2 ? 63 & n : 64, h2.push(p.charAt(i) + p.charAt(s2) + p.charAt(a) + p.charAt(o));
|
|
36139
36183
|
return h2.join("");
|
|
36140
36184
|
}, r2.decode = function(e2) {
|
|
36141
|
-
var t2, r22, n, i, s2, a, o = 0, h2 = 0,
|
|
36142
|
-
if (e2.substr(0,
|
|
36143
|
-
var
|
|
36185
|
+
var t2, r22, n, i, s2, a, o = 0, h2 = 0, u3 = "data:";
|
|
36186
|
+
if (e2.substr(0, u3.length) === u3) throw new Error("Invalid base64 input, it looks like a data url.");
|
|
36187
|
+
var l, f2 = 3 * (e2 = e2.replace(/[^A-Za-z0-9+/=]/g, "")).length / 4;
|
|
36144
36188
|
if (e2.charAt(e2.length - 1) === p.charAt(64) && f2--, e2.charAt(e2.length - 2) === p.charAt(64) && f2--, f2 % 1 != 0) throw new Error("Invalid base64 input, bad content length.");
|
|
36145
|
-
for (
|
|
36146
|
-
return
|
|
36189
|
+
for (l = c2.uint8array ? new Uint8Array(0 | f2) : new Array(0 | f2); o < e2.length; ) t2 = p.indexOf(e2.charAt(o++)) << 2 | (i = p.indexOf(e2.charAt(o++))) >> 4, r22 = (15 & i) << 4 | (s2 = p.indexOf(e2.charAt(o++))) >> 2, n = (3 & s2) << 6 | (a = p.indexOf(e2.charAt(o++))), l[h2++] = t2, 64 !== s2 && (l[h2++] = r22), 64 !== a && (l[h2++] = n);
|
|
36190
|
+
return l;
|
|
36147
36191
|
};
|
|
36148
36192
|
}, { "./support": 30, "./utils": 32 }], 2: [function(e, t, r2) {
|
|
36149
36193
|
var n = e("./external"), i = e("./stream/DataWorker"), s2 = e("./stream/Crc32Probe"), a = e("./stream/DataLengthProbe");
|
|
@@ -36224,10 +36268,10 @@ function requireJszip_min() {
|
|
|
36224
36268
|
return n2;
|
|
36225
36269
|
}
|
|
36226
36270
|
function n(e2, t2, r22, n2, i2, s22) {
|
|
36227
|
-
var a, o, h2 = e2.file,
|
|
36228
|
-
t2 && !r22 || (
|
|
36271
|
+
var a, o, h2 = e2.file, u3 = e2.compression, l = s22 !== O.utf8encode, f2 = I2.transformTo("string", s22(h2.name)), c2 = I2.transformTo("string", O.utf8encode(h2.name)), d2 = h2.comment, p = I2.transformTo("string", s22(d2)), m2 = I2.transformTo("string", O.utf8encode(d2)), _2 = c2.length !== h2.name.length, g = m2.length !== d2.length, b2 = "", v2 = "", y2 = "", w2 = h2.dir, k2 = h2.date, x2 = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
36272
|
+
t2 && !r22 || (x2.crc32 = e2.crc32, x2.compressedSize = e2.compressedSize, x2.uncompressedSize = e2.uncompressedSize);
|
|
36229
36273
|
var S2 = 0;
|
|
36230
|
-
t2 && (S2 |= 8),
|
|
36274
|
+
t2 && (S2 |= 8), l || !_2 && !g || (S2 |= 2048);
|
|
36231
36275
|
var z2 = 0, C2 = 0;
|
|
36232
36276
|
w2 && (z2 |= 16), "UNIX" === i2 ? (C2 = 798, z2 |= (function(e3, t3) {
|
|
36233
36277
|
var r3 = e3;
|
|
@@ -36236,9 +36280,9 @@ function requireJszip_min() {
|
|
|
36236
36280
|
return 63 & (e3 || 0);
|
|
36237
36281
|
})(h2.dosPermissions)), a = k2.getUTCHours(), a <<= 6, a |= k2.getUTCMinutes(), a <<= 5, a |= k2.getUTCSeconds() / 2, o = k2.getUTCFullYear() - 1980, o <<= 4, o |= k2.getUTCMonth() + 1, o <<= 5, o |= k2.getUTCDate(), _2 && (v2 = A2(1, 1) + A2(B2(f2), 4) + c2, b2 += "up" + A2(v2.length, 2) + v2), g && (y2 = A2(1, 1) + A2(B2(p), 4) + m2, b2 += "uc" + A2(y2.length, 2) + y2);
|
|
36238
36282
|
var E2 = "";
|
|
36239
|
-
return E2 += "\n\0", E2 += A2(S2, 2), E2 +=
|
|
36283
|
+
return E2 += "\n\0", E2 += A2(S2, 2), E2 += u3.magic, E2 += A2(a, 2), E2 += A2(o, 2), E2 += A2(x2.crc32, 4), E2 += A2(x2.compressedSize, 4), E2 += A2(x2.uncompressedSize, 4), E2 += A2(f2.length, 2), E2 += A2(b2.length, 2), { fileRecord: R.LOCAL_FILE_HEADER + E2 + f2 + b2, dirRecord: R.CENTRAL_FILE_HEADER + A2(C2, 2) + E2 + A2(p.length, 2) + "\0\0\0\0" + A2(z2, 4) + A2(n2, 4) + f2 + b2 + p };
|
|
36240
36284
|
}
|
|
36241
|
-
var I2 = e("../utils"), i = e("../stream/GenericWorker"),
|
|
36285
|
+
var I2 = e("../utils"), i = e("../stream/GenericWorker"), O = e("../utf8"), B2 = e("../crc32"), R = e("../signature");
|
|
36242
36286
|
function s2(e2, t2, r22, n2) {
|
|
36243
36287
|
i.call(this, "ZipFileWorker"), this.bytesWritten = 0, this.zipComment = t2, this.zipPlatform = r22, this.encodeFileName = n2, this.streamFiles = e2, this.accumulate = false, this.contentBuffer = [], this.dirRecords = [], this.currentSourceOffset = 0, this.entriesCount = 0, this.currentFile = null, this._sources = [];
|
|
36244
36288
|
}
|
|
@@ -36256,7 +36300,7 @@ function requireJszip_min() {
|
|
|
36256
36300
|
this.accumulate = false;
|
|
36257
36301
|
var t2 = this.streamFiles && !e2.file.dir, r22 = n(e2, t2, true, this.currentSourceOffset, this.zipPlatform, this.encodeFileName);
|
|
36258
36302
|
if (this.dirRecords.push(r22.dirRecord), t2) this.push({ data: (function(e3) {
|
|
36259
|
-
return
|
|
36303
|
+
return R.DATA_DESCRIPTOR + A2(e3.crc32, 4) + A2(e3.compressedSize, 4) + A2(e3.uncompressedSize, 4);
|
|
36260
36304
|
})(e2), meta: { percent: 100 } });
|
|
36261
36305
|
else for (this.push({ data: r22.fileRecord, meta: { percent: 0 } }); this.contentBuffer.length; ) this.push(this.contentBuffer.shift());
|
|
36262
36306
|
this.currentFile = null;
|
|
@@ -36264,7 +36308,7 @@ function requireJszip_min() {
|
|
|
36264
36308
|
for (var e2 = this.bytesWritten, t2 = 0; t2 < this.dirRecords.length; t2++) this.push({ data: this.dirRecords[t2], meta: { percent: 100 } });
|
|
36265
36309
|
var r22 = this.bytesWritten - e2, n2 = (function(e3, t3, r3, n3, i2) {
|
|
36266
36310
|
var s22 = I2.transformTo("string", i2(n3));
|
|
36267
|
-
return
|
|
36311
|
+
return R.CENTRAL_DIRECTORY_END + "\0\0\0\0" + A2(e3, 2) + A2(e3, 2) + A2(t3, 4) + A2(r3, 4) + A2(s22.length, 2) + s22;
|
|
36268
36312
|
})(this.dirRecords.length, r22, e2, this.zipComment, this.encodeFileName);
|
|
36269
36313
|
this.push({ data: n2, meta: { percent: 100 } });
|
|
36270
36314
|
}, s2.prototype.prepareNextSource = function() {
|
|
@@ -36294,14 +36338,14 @@ function requireJszip_min() {
|
|
|
36294
36338
|
for (var e2 = this._sources, t2 = 0; t2 < e2.length; t2++) e2[t2].lock();
|
|
36295
36339
|
}, t.exports = s2;
|
|
36296
36340
|
}, { "../crc32": 4, "../signature": 23, "../stream/GenericWorker": 28, "../utf8": 31, "../utils": 32 }], 9: [function(e, t, r2) {
|
|
36297
|
-
var
|
|
36341
|
+
var u3 = e("../compressions"), n = e("./ZipFileWorker");
|
|
36298
36342
|
r2.generateWorker = function(e2, a, t2) {
|
|
36299
36343
|
var o = new n(a.streamFiles, t2, a.platform, a.encodeFileName), h2 = 0;
|
|
36300
36344
|
try {
|
|
36301
36345
|
e2.forEach(function(e3, t3) {
|
|
36302
36346
|
h2++;
|
|
36303
36347
|
var r22 = (function(e4, t4) {
|
|
36304
|
-
var r3 = e4 || t4, n3 =
|
|
36348
|
+
var r3 = e4 || t4, n3 = u3[r3];
|
|
36305
36349
|
if (!n3) throw new Error(r3 + " is not a valid compression method !");
|
|
36306
36350
|
return n3;
|
|
36307
36351
|
})(t3.options.compression, a.compression), n2 = t3.options.compressionOptions || a.compressionOptions || {}, i = t3.dir, s2 = t3.date;
|
|
@@ -36326,7 +36370,7 @@ function requireJszip_min() {
|
|
|
36326
36370
|
return new n().loadAsync(e2, t2);
|
|
36327
36371
|
}, n.external = e("./external"), t.exports = n;
|
|
36328
36372
|
}, { "./defaults": 5, "./external": 6, "./load": 11, "./object": 15, "./support": 30 }], 11: [function(e, t, r2) {
|
|
36329
|
-
var
|
|
36373
|
+
var u3 = e("./utils"), i = e("./external"), n = e("./utf8"), s2 = e("./zipEntries"), a = e("./stream/Crc32Probe"), l = e("./nodejsUtils");
|
|
36330
36374
|
function f2(n2) {
|
|
36331
36375
|
return new i.Promise(function(e2, t2) {
|
|
36332
36376
|
var r22 = n2.decompressed.getContentWorker().pipe(new a());
|
|
@@ -36339,7 +36383,7 @@ function requireJszip_min() {
|
|
|
36339
36383
|
}
|
|
36340
36384
|
t.exports = function(e2, o) {
|
|
36341
36385
|
var h2 = this;
|
|
36342
|
-
return o =
|
|
36386
|
+
return o = u3.extend(o || {}, { base64: false, checkCRC32: false, optimizedBinaryString: false, createFolders: false, decodeFileName: n.utf8decode }), l.isNode && l.isStream(e2) ? i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")) : u3.prepareContent("the loaded zip file", e2, true, o.optimizedBinaryString, o.base64).then(function(e3) {
|
|
36343
36387
|
var t2 = new s2(o);
|
|
36344
36388
|
return t2.load(e3), t2;
|
|
36345
36389
|
}).then(function(e3) {
|
|
@@ -36348,7 +36392,7 @@ function requireJszip_min() {
|
|
|
36348
36392
|
return i.Promise.all(t2);
|
|
36349
36393
|
}).then(function(e3) {
|
|
36350
36394
|
for (var t2 = e3.shift(), r22 = t2.files, n2 = 0; n2 < r22.length; n2++) {
|
|
36351
|
-
var i2 = r22[n2], s22 = i2.fileNameStr, a2 =
|
|
36395
|
+
var i2 = r22[n2], s22 = i2.fileNameStr, a2 = u3.resolve(i2.fileNameStr);
|
|
36352
36396
|
h2.file(a2, i2.decompressed, { binary: true, optimizedBinaryString: true, date: i2.date, dir: i2.dir, comment: i2.fileCommentStr.length ? i2.fileCommentStr : null, unixPermissions: i2.unixPermissions, dosPermissions: i2.dosPermissions, createFolders: o.createFolders }), i2.dir || (h2.file(a2).unsafeOriginalName = s22);
|
|
36353
36397
|
}
|
|
36354
36398
|
return t2.zipComment.length && (h2.comment = t2.zipComment), h2;
|
|
@@ -36405,16 +36449,16 @@ function requireJszip_min() {
|
|
|
36405
36449
|
} };
|
|
36406
36450
|
}, {}], 15: [function(e, t, r2) {
|
|
36407
36451
|
function s2(e2, t2, r22) {
|
|
36408
|
-
var n2, i2 =
|
|
36452
|
+
var n2, i2 = u3.getTypeOf(t2), s22 = u3.extend(r22 || {}, f2);
|
|
36409
36453
|
s22.date = s22.date || /* @__PURE__ */ new Date(), null !== s22.compression && (s22.compression = s22.compression.toUpperCase()), "string" == typeof s22.unixPermissions && (s22.unixPermissions = parseInt(s22.unixPermissions, 8)), s22.unixPermissions && 16384 & s22.unixPermissions && (s22.dir = true), s22.dosPermissions && 16 & s22.dosPermissions && (s22.dir = true), s22.dir && (e2 = g(e2)), s22.createFolders && (n2 = _2(e2)) && b2.call(this, n2, true);
|
|
36410
36454
|
var a2 = "string" === i2 && false === s22.binary && false === s22.base64;
|
|
36411
36455
|
r22 && void 0 !== r22.binary || (s22.binary = !a2), (t2 instanceof c2 && 0 === t2.uncompressedSize || s22.dir || !t2 || 0 === t2.length) && (s22.base64 = false, s22.binary = true, t2 = "", s22.compression = "STORE", i2 = "string");
|
|
36412
36456
|
var o2 = null;
|
|
36413
|
-
o2 = t2 instanceof c2 || t2 instanceof
|
|
36457
|
+
o2 = t2 instanceof c2 || t2 instanceof l ? t2 : p.isNode && p.isStream(t2) ? new m2(e2, t2) : u3.prepareContent(e2, t2, s22.binary, s22.optimizedBinaryString, s22.base64);
|
|
36414
36458
|
var h22 = new d2(e2, o2, s22);
|
|
36415
36459
|
this.files[e2] = h22;
|
|
36416
36460
|
}
|
|
36417
|
-
var i = e("./utf8"),
|
|
36461
|
+
var i = e("./utf8"), u3 = e("./utils"), l = e("./stream/GenericWorker"), a = e("./stream/StreamHelper"), f2 = e("./defaults"), c2 = e("./compressedObject"), d2 = e("./zipObject"), o = e("./generate"), p = e("./nodejsUtils"), m2 = e("./nodejs/NodejsStreamInputAdapter"), _2 = function(e2) {
|
|
36418
36462
|
"/" === e2.slice(-1) && (e2 = e2.substring(0, e2.length - 1));
|
|
36419
36463
|
var t2 = e2.lastIndexOf("/");
|
|
36420
36464
|
return 0 < t2 ? e2.substring(0, t2) : "";
|
|
@@ -36466,12 +36510,12 @@ function requireJszip_min() {
|
|
|
36466
36510
|
}, generateInternalStream: function(e2) {
|
|
36467
36511
|
var t2, r22 = {};
|
|
36468
36512
|
try {
|
|
36469
|
-
if ((r22 =
|
|
36470
|
-
|
|
36513
|
+
if ((r22 = u3.extend(e2 || {}, { streamFiles: false, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: i.utf8encode })).type = r22.type.toLowerCase(), r22.compression = r22.compression.toUpperCase(), "binarystring" === r22.type && (r22.type = "string"), !r22.type) throw new Error("No output type specified.");
|
|
36514
|
+
u3.checkSupport(r22.type), "darwin" !== r22.platform && "freebsd" !== r22.platform && "linux" !== r22.platform && "sunos" !== r22.platform || (r22.platform = "UNIX"), "win32" === r22.platform && (r22.platform = "DOS");
|
|
36471
36515
|
var n2 = r22.comment || this.comment || "";
|
|
36472
36516
|
t2 = o.generateWorker(this, r22, n2);
|
|
36473
36517
|
} catch (e3) {
|
|
36474
|
-
(t2 = new
|
|
36518
|
+
(t2 = new l("error")).error(e3);
|
|
36475
36519
|
}
|
|
36476
36520
|
return new a(t2, r22.type || "string", r22.mimeType);
|
|
36477
36521
|
}, generateAsync: function(e2, t2) {
|
|
@@ -36691,12 +36735,12 @@ function requireJszip_min() {
|
|
|
36691
36735
|
return this.previous ? this.previous + " -> " + e2 : e2;
|
|
36692
36736
|
} }, t.exports = n;
|
|
36693
36737
|
}, {}], 29: [function(e, t, r2) {
|
|
36694
|
-
var h2 = e("../utils"), i = e("./ConvertWorker"), s2 = e("./GenericWorker"),
|
|
36738
|
+
var h2 = e("../utils"), i = e("./ConvertWorker"), s2 = e("./GenericWorker"), u3 = e("../base64"), n = e("../support"), a = e("../external"), o = null;
|
|
36695
36739
|
if (n.nodestream) try {
|
|
36696
36740
|
o = e("../nodejs/NodejsStreamOutputAdapter");
|
|
36697
36741
|
} catch (e2) {
|
|
36698
36742
|
}
|
|
36699
|
-
function
|
|
36743
|
+
function l(e2, o2) {
|
|
36700
36744
|
return new a.Promise(function(t2, r22) {
|
|
36701
36745
|
var n2 = [], i2 = e2._internalType, s22 = e2._outputType, a2 = e2._mimeType;
|
|
36702
36746
|
e2.on("data", function(e3, t3) {
|
|
@@ -36710,7 +36754,7 @@ function requireJszip_min() {
|
|
|
36710
36754
|
case "blob":
|
|
36711
36755
|
return h2.newBlob(h2.transformTo("arraybuffer", t3), r3);
|
|
36712
36756
|
case "base64":
|
|
36713
|
-
return
|
|
36757
|
+
return u3.encode(t3);
|
|
36714
36758
|
default:
|
|
36715
36759
|
return h2.transformTo(e4, t3);
|
|
36716
36760
|
}
|
|
@@ -36756,7 +36800,7 @@ function requireJszip_min() {
|
|
|
36756
36800
|
}
|
|
36757
36801
|
}
|
|
36758
36802
|
f2.prototype = { accumulate: function(e2) {
|
|
36759
|
-
return
|
|
36803
|
+
return l(this, e2);
|
|
36760
36804
|
}, on: function(e2, t2) {
|
|
36761
36805
|
var r22 = this;
|
|
36762
36806
|
return "data" === e2 ? this._worker.on(e2, function(e3) {
|
|
@@ -36793,12 +36837,12 @@ function requireJszip_min() {
|
|
|
36793
36837
|
r2.nodestream = false;
|
|
36794
36838
|
}
|
|
36795
36839
|
}, { "readable-stream": 16 }], 31: [function(e, t, s2) {
|
|
36796
|
-
for (var o = e("./utils"), h2 = e("./support"), r2 = e("./nodejsUtils"), n = e("./stream/GenericWorker"),
|
|
36797
|
-
|
|
36840
|
+
for (var o = e("./utils"), h2 = e("./support"), r2 = e("./nodejsUtils"), n = e("./stream/GenericWorker"), u3 = new Array(256), i = 0; i < 256; i++) u3[i] = 252 <= i ? 6 : 248 <= i ? 5 : 240 <= i ? 4 : 224 <= i ? 3 : 192 <= i ? 2 : 1;
|
|
36841
|
+
u3[254] = u3[254] = 1;
|
|
36798
36842
|
function a() {
|
|
36799
36843
|
n.call(this, "utf-8 decode"), this.leftOver = null;
|
|
36800
36844
|
}
|
|
36801
|
-
function
|
|
36845
|
+
function l() {
|
|
36802
36846
|
n.call(this, "utf-8 encode");
|
|
36803
36847
|
}
|
|
36804
36848
|
s2.utf8encode = function(e2) {
|
|
@@ -36812,7 +36856,7 @@ function requireJszip_min() {
|
|
|
36812
36856
|
return h2.nodebuffer ? o.transformTo("nodebuffer", e2).toString("utf-8") : (function(e3) {
|
|
36813
36857
|
var t2, r22, n2, i2, s22 = e3.length, a2 = new Array(2 * s22);
|
|
36814
36858
|
for (t2 = r22 = 0; t2 < s22; ) if ((n2 = e3[t2++]) < 128) a2[r22++] = n2;
|
|
36815
|
-
else if (4 < (i2 =
|
|
36859
|
+
else if (4 < (i2 = u3[n2])) a2[r22++] = 65533, t2 += i2 - 1;
|
|
36816
36860
|
else {
|
|
36817
36861
|
for (n2 &= 2 === i2 ? 31 : 3 === i2 ? 15 : 7; 1 < i2 && t2 < s22; ) n2 = n2 << 6 | 63 & e3[t2++], i2--;
|
|
36818
36862
|
1 < i2 ? a2[r22++] = 65533 : n2 < 65536 ? a2[r22++] = n2 : (n2 -= 65536, a2[r22++] = 55296 | n2 >> 10 & 1023, a2[r22++] = 56320 | 1023 & n2);
|
|
@@ -36831,20 +36875,20 @@ function requireJszip_min() {
|
|
|
36831
36875
|
var n2 = (function(e3, t3) {
|
|
36832
36876
|
var r3;
|
|
36833
36877
|
for ((t3 = t3 || e3.length) > e3.length && (t3 = e3.length), r3 = t3 - 1; 0 <= r3 && 128 == (192 & e3[r3]); ) r3--;
|
|
36834
|
-
return r3 < 0 ? t3 : 0 === r3 ? t3 : r3 +
|
|
36878
|
+
return r3 < 0 ? t3 : 0 === r3 ? t3 : r3 + u3[e3[r3]] > t3 ? r3 : t3;
|
|
36835
36879
|
})(t2), i2 = t2;
|
|
36836
36880
|
n2 !== t2.length && (h2.uint8array ? (i2 = t2.subarray(0, n2), this.leftOver = t2.subarray(n2, t2.length)) : (i2 = t2.slice(0, n2), this.leftOver = t2.slice(n2, t2.length))), this.push({ data: s2.utf8decode(i2), meta: e2.meta });
|
|
36837
36881
|
}, a.prototype.flush = function() {
|
|
36838
36882
|
this.leftOver && this.leftOver.length && (this.push({ data: s2.utf8decode(this.leftOver), meta: {} }), this.leftOver = null);
|
|
36839
|
-
}, s2.Utf8DecodeWorker = a, o.inherits(
|
|
36883
|
+
}, s2.Utf8DecodeWorker = a, o.inherits(l, n), l.prototype.processChunk = function(e2) {
|
|
36840
36884
|
this.push({ data: s2.utf8encode(e2.data), meta: e2.meta });
|
|
36841
|
-
}, s2.Utf8EncodeWorker =
|
|
36885
|
+
}, s2.Utf8EncodeWorker = l;
|
|
36842
36886
|
}, { "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./support": 30, "./utils": 32 }], 32: [function(e, t, a) {
|
|
36843
|
-
var o = e("./support"), h2 = e("./base64"), r2 = e("./nodejsUtils"),
|
|
36887
|
+
var o = e("./support"), h2 = e("./base64"), r2 = e("./nodejsUtils"), u3 = e("./external");
|
|
36844
36888
|
function n(e2) {
|
|
36845
36889
|
return e2;
|
|
36846
36890
|
}
|
|
36847
|
-
function
|
|
36891
|
+
function l(e2, t2) {
|
|
36848
36892
|
for (var r22 = 0; r22 < e2.length; ++r22) t2[r22] = 255 & e2.charCodeAt(r22);
|
|
36849
36893
|
return t2;
|
|
36850
36894
|
}
|
|
@@ -36898,13 +36942,13 @@ function requireJszip_min() {
|
|
|
36898
36942
|
a.applyFromCharCode = s2;
|
|
36899
36943
|
var c2 = {};
|
|
36900
36944
|
c2.string = { string: n, array: function(e2) {
|
|
36901
|
-
return
|
|
36945
|
+
return l(e2, new Array(e2.length));
|
|
36902
36946
|
}, arraybuffer: function(e2) {
|
|
36903
36947
|
return c2.string.uint8array(e2).buffer;
|
|
36904
36948
|
}, uint8array: function(e2) {
|
|
36905
|
-
return
|
|
36949
|
+
return l(e2, new Uint8Array(e2.length));
|
|
36906
36950
|
}, nodebuffer: function(e2) {
|
|
36907
|
-
return
|
|
36951
|
+
return l(e2, r2.allocBuffer(e2.length));
|
|
36908
36952
|
} }, c2.array = { string: s2, array: n, arraybuffer: function(e2) {
|
|
36909
36953
|
return new Uint8Array(e2).buffer;
|
|
36910
36954
|
}, uint8array: function(e2) {
|
|
@@ -36963,8 +37007,8 @@ function requireJszip_min() {
|
|
|
36963
37007
|
for (e2 = 0; e2 < arguments.length; e2++) for (t2 in arguments[e2]) Object.prototype.hasOwnProperty.call(arguments[e2], t2) && void 0 === r22[t2] && (r22[t2] = arguments[e2][t2]);
|
|
36964
37008
|
return r22;
|
|
36965
37009
|
}, a.prepareContent = function(r22, e2, n2, i2, s22) {
|
|
36966
|
-
return
|
|
36967
|
-
return o.blob && (n3 instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(n3))) && "undefined" != typeof FileReader ? new
|
|
37010
|
+
return u3.Promise.resolve(e2).then(function(n3) {
|
|
37011
|
+
return o.blob && (n3 instanceof Blob || -1 !== ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(n3))) && "undefined" != typeof FileReader ? new u3.Promise(function(t2, r3) {
|
|
36968
37012
|
var e3 = new FileReader();
|
|
36969
37013
|
e3.onload = function(e4) {
|
|
36970
37014
|
t2(e4.target.result);
|
|
@@ -36975,8 +37019,8 @@ function requireJszip_min() {
|
|
|
36975
37019
|
}).then(function(e3) {
|
|
36976
37020
|
var t2 = a.getTypeOf(e3);
|
|
36977
37021
|
return t2 ? ("arraybuffer" === t2 ? e3 = a.transformTo("uint8array", e3) : "string" === t2 && (s22 ? e3 = h2.decode(e3) : n2 && true !== i2 && (e3 = (function(e4) {
|
|
36978
|
-
return
|
|
36979
|
-
})(e3))), e3) :
|
|
37022
|
+
return l(e4, o.uint8array ? new Uint8Array(e4.length) : new Array(e4.length));
|
|
37023
|
+
})(e3))), e3) : u3.Promise.reject(new Error("Can't read the data of '" + r22 + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
36980
37024
|
});
|
|
36981
37025
|
};
|
|
36982
37026
|
}, { "./base64": 1, "./external": 6, "./nodejsUtils": 14, "./support": 30, setimmediate: 54 }], 33: [function(e, t, r2) {
|
|
@@ -37032,11 +37076,11 @@ function requireJszip_min() {
|
|
|
37032
37076
|
this.prepareReader(e2), this.readEndOfCentral(), this.readCentralDir(), this.readLocalFiles();
|
|
37033
37077
|
} }, t.exports = h2;
|
|
37034
37078
|
}, { "./reader/readerFor": 22, "./signature": 23, "./support": 30, "./utils": 32, "./zipEntry": 34 }], 34: [function(e, t, r2) {
|
|
37035
|
-
var n = e("./reader/readerFor"), s2 = e("./utils"), i = e("./compressedObject"), a = e("./crc32"), o = e("./utf8"), h2 = e("./compressions"),
|
|
37036
|
-
function
|
|
37079
|
+
var n = e("./reader/readerFor"), s2 = e("./utils"), i = e("./compressedObject"), a = e("./crc32"), o = e("./utf8"), h2 = e("./compressions"), u3 = e("./support");
|
|
37080
|
+
function l(e2, t2) {
|
|
37037
37081
|
this.options = e2, this.loadOptions = t2;
|
|
37038
37082
|
}
|
|
37039
|
-
|
|
37083
|
+
l.prototype = { isEncrypted: function() {
|
|
37040
37084
|
return 1 == (1 & this.bitFlag);
|
|
37041
37085
|
}, useUTF8: function() {
|
|
37042
37086
|
return 2048 == (2048 & this.bitFlag);
|
|
@@ -37067,7 +37111,7 @@ function requireJszip_min() {
|
|
|
37067
37111
|
for (this.extraFields || (this.extraFields = {}); e2.index + 4 < i2; ) t2 = e2.readInt(2), r22 = e2.readInt(2), n2 = e2.readData(r22), this.extraFields[t2] = { id: t2, length: r22, value: n2 };
|
|
37068
37112
|
e2.setIndex(i2);
|
|
37069
37113
|
}, handleUTF8: function() {
|
|
37070
|
-
var e2 =
|
|
37114
|
+
var e2 = u3.uint8array ? "uint8array" : "array";
|
|
37071
37115
|
if (this.useUTF8()) this.fileNameStr = o.utf8decode(this.fileName), this.fileCommentStr = o.utf8decode(this.fileComment);
|
|
37072
37116
|
else {
|
|
37073
37117
|
var t2 = this.findExtraFieldUnicodePath();
|
|
@@ -37097,7 +37141,7 @@ function requireJszip_min() {
|
|
|
37097
37141
|
return 1 !== t2.readInt(1) ? null : a(this.fileComment) !== t2.readInt(4) ? null : o.utf8decode(t2.readData(e2.length - 5));
|
|
37098
37142
|
}
|
|
37099
37143
|
return null;
|
|
37100
|
-
} }, t.exports =
|
|
37144
|
+
} }, t.exports = l;
|
|
37101
37145
|
}, { "./compressedObject": 2, "./compressions": 3, "./crc32": 4, "./reader/readerFor": 22, "./support": 30, "./utf8": 31, "./utils": 32 }], 35: [function(e, t, r2) {
|
|
37102
37146
|
function n(e2, t2, r22) {
|
|
37103
37147
|
this.name = e2, this.dir = r22.dir, this.date = r22.date, this.comment = r22.comment, this.unixPermissions = r22.unixPermissions, this.dosPermissions = r22.dosPermissions, this._data = t2, this._dataBinary = r22.binary, this.options = { compression: r22.compression, compressionOptions: r22.compressionOptions };
|
|
@@ -37126,34 +37170,34 @@ function requireJszip_min() {
|
|
|
37126
37170
|
}, _decompressWorker: function() {
|
|
37127
37171
|
return this._data instanceof o ? this._data.getContentWorker() : this._data instanceof h2 ? this._data : new i(this._data);
|
|
37128
37172
|
} };
|
|
37129
|
-
for (var
|
|
37173
|
+
for (var u3 = ["asText", "asBinary", "asNodeBuffer", "asUint8Array", "asArrayBuffer"], l = function() {
|
|
37130
37174
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
37131
|
-
}, f2 = 0; f2 <
|
|
37175
|
+
}, f2 = 0; f2 < u3.length; f2++) n.prototype[u3[f2]] = l;
|
|
37132
37176
|
t.exports = n;
|
|
37133
|
-
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e,
|
|
37177
|
+
}, { "./compressedObject": 2, "./stream/DataWorker": 27, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31 }], 36: [function(e, l, t) {
|
|
37134
37178
|
(function(t2) {
|
|
37135
37179
|
var r2, n, e2 = t2.MutationObserver || t2.WebKitMutationObserver;
|
|
37136
37180
|
if (e2) {
|
|
37137
|
-
var i = 0, s2 = new e2(
|
|
37181
|
+
var i = 0, s2 = new e2(u3), a = t2.document.createTextNode("");
|
|
37138
37182
|
s2.observe(a, { characterData: true }), r2 = function() {
|
|
37139
37183
|
a.data = i = ++i % 2;
|
|
37140
37184
|
};
|
|
37141
37185
|
} else if (t2.setImmediate || void 0 === t2.MessageChannel) r2 = "document" in t2 && "onreadystatechange" in t2.document.createElement("script") ? function() {
|
|
37142
37186
|
var e3 = t2.document.createElement("script");
|
|
37143
37187
|
e3.onreadystatechange = function() {
|
|
37144
|
-
|
|
37188
|
+
u3(), e3.onreadystatechange = null, e3.parentNode.removeChild(e3), e3 = null;
|
|
37145
37189
|
}, t2.document.documentElement.appendChild(e3);
|
|
37146
37190
|
} : function() {
|
|
37147
|
-
setTimeout(
|
|
37191
|
+
setTimeout(u3, 0);
|
|
37148
37192
|
};
|
|
37149
37193
|
else {
|
|
37150
37194
|
var o = new t2.MessageChannel();
|
|
37151
|
-
o.port1.onmessage =
|
|
37195
|
+
o.port1.onmessage = u3, r2 = function() {
|
|
37152
37196
|
o.port2.postMessage(0);
|
|
37153
37197
|
};
|
|
37154
37198
|
}
|
|
37155
37199
|
var h2 = [];
|
|
37156
|
-
function
|
|
37200
|
+
function u3() {
|
|
37157
37201
|
var e3, t3;
|
|
37158
37202
|
n = true;
|
|
37159
37203
|
for (var r22 = h2.length; r22; ) {
|
|
@@ -37162,18 +37206,18 @@ function requireJszip_min() {
|
|
|
37162
37206
|
}
|
|
37163
37207
|
n = false;
|
|
37164
37208
|
}
|
|
37165
|
-
|
|
37209
|
+
l.exports = function(e3) {
|
|
37166
37210
|
1 !== h2.push(e3) || n || r2();
|
|
37167
37211
|
};
|
|
37168
37212
|
}).call(this, "undefined" != typeof commonjsGlobal ? commonjsGlobal : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {});
|
|
37169
37213
|
}, {}], 37: [function(e, t, r2) {
|
|
37170
37214
|
var i = e("immediate");
|
|
37171
|
-
function
|
|
37215
|
+
function u3() {
|
|
37172
37216
|
}
|
|
37173
|
-
var
|
|
37217
|
+
var l = {}, s2 = ["REJECTED"], a = ["FULFILLED"], n = ["PENDING"];
|
|
37174
37218
|
function o(e2) {
|
|
37175
37219
|
if ("function" != typeof e2) throw new TypeError("resolver must be a function");
|
|
37176
|
-
this.state = n, this.queue = [], this.outcome = void 0, e2 !==
|
|
37220
|
+
this.state = n, this.queue = [], this.outcome = void 0, e2 !== u3 && d2(this, e2);
|
|
37177
37221
|
}
|
|
37178
37222
|
function h2(e2, t2, r22) {
|
|
37179
37223
|
this.promise = e2, "function" == typeof t2 && (this.onFulfilled = t2, this.callFulfilled = this.otherCallFulfilled), "function" == typeof r22 && (this.onRejected = r22, this.callRejected = this.otherCallRejected);
|
|
@@ -37184,9 +37228,9 @@ function requireJszip_min() {
|
|
|
37184
37228
|
try {
|
|
37185
37229
|
e2 = r22(n2);
|
|
37186
37230
|
} catch (e3) {
|
|
37187
|
-
return
|
|
37231
|
+
return l.reject(t2, e3);
|
|
37188
37232
|
}
|
|
37189
|
-
e2 === t2 ?
|
|
37233
|
+
e2 === t2 ? l.reject(t2, new TypeError("Cannot resolve promise with itself")) : l.resolve(t2, e2);
|
|
37190
37234
|
});
|
|
37191
37235
|
}
|
|
37192
37236
|
function c2(e2) {
|
|
@@ -37198,10 +37242,10 @@ function requireJszip_min() {
|
|
|
37198
37242
|
function d2(t2, e2) {
|
|
37199
37243
|
var r22 = false;
|
|
37200
37244
|
function n2(e3) {
|
|
37201
|
-
r22 || (r22 = true,
|
|
37245
|
+
r22 || (r22 = true, l.reject(t2, e3));
|
|
37202
37246
|
}
|
|
37203
37247
|
function i2(e3) {
|
|
37204
|
-
r22 || (r22 = true,
|
|
37248
|
+
r22 || (r22 = true, l.resolve(t2, e3));
|
|
37205
37249
|
}
|
|
37206
37250
|
var s22 = p(function() {
|
|
37207
37251
|
e2(i2, n2);
|
|
@@ -37233,20 +37277,20 @@ function requireJszip_min() {
|
|
|
37233
37277
|
return this.then(null, e2);
|
|
37234
37278
|
}, o.prototype.then = function(e2, t2) {
|
|
37235
37279
|
if ("function" != typeof e2 && this.state === a || "function" != typeof t2 && this.state === s2) return this;
|
|
37236
|
-
var r22 = new this.constructor(
|
|
37280
|
+
var r22 = new this.constructor(u3);
|
|
37237
37281
|
this.state !== n ? f2(r22, this.state === a ? e2 : t2, this.outcome) : this.queue.push(new h2(r22, e2, t2));
|
|
37238
37282
|
return r22;
|
|
37239
37283
|
}, h2.prototype.callFulfilled = function(e2) {
|
|
37240
|
-
|
|
37284
|
+
l.resolve(this.promise, e2);
|
|
37241
37285
|
}, h2.prototype.otherCallFulfilled = function(e2) {
|
|
37242
37286
|
f2(this.promise, this.onFulfilled, e2);
|
|
37243
37287
|
}, h2.prototype.callRejected = function(e2) {
|
|
37244
|
-
|
|
37288
|
+
l.reject(this.promise, e2);
|
|
37245
37289
|
}, h2.prototype.otherCallRejected = function(e2) {
|
|
37246
37290
|
f2(this.promise, this.onRejected, e2);
|
|
37247
|
-
},
|
|
37291
|
+
}, l.resolve = function(e2, t2) {
|
|
37248
37292
|
var r22 = p(c2, t2);
|
|
37249
|
-
if ("error" === r22.status) return
|
|
37293
|
+
if ("error" === r22.status) return l.reject(e2, r22.value);
|
|
37250
37294
|
var n2 = r22.value;
|
|
37251
37295
|
if (n2) d2(e2, n2);
|
|
37252
37296
|
else {
|
|
@@ -37254,29 +37298,29 @@ function requireJszip_min() {
|
|
|
37254
37298
|
for (var i2 = -1, s22 = e2.queue.length; ++i2 < s22; ) e2.queue[i2].callFulfilled(t2);
|
|
37255
37299
|
}
|
|
37256
37300
|
return e2;
|
|
37257
|
-
},
|
|
37301
|
+
}, l.reject = function(e2, t2) {
|
|
37258
37302
|
e2.state = s2, e2.outcome = t2;
|
|
37259
37303
|
for (var r22 = -1, n2 = e2.queue.length; ++r22 < n2; ) e2.queue[r22].callRejected(t2);
|
|
37260
37304
|
return e2;
|
|
37261
37305
|
}, o.resolve = function(e2) {
|
|
37262
37306
|
if (e2 instanceof this) return e2;
|
|
37263
|
-
return
|
|
37307
|
+
return l.resolve(new this(u3), e2);
|
|
37264
37308
|
}, o.reject = function(e2) {
|
|
37265
|
-
var t2 = new this(
|
|
37266
|
-
return
|
|
37309
|
+
var t2 = new this(u3);
|
|
37310
|
+
return l.reject(t2, e2);
|
|
37267
37311
|
}, o.all = function(e2) {
|
|
37268
37312
|
var r22 = this;
|
|
37269
37313
|
if ("[object Array]" !== Object.prototype.toString.call(e2)) return this.reject(new TypeError("must be an array"));
|
|
37270
37314
|
var n2 = e2.length, i2 = false;
|
|
37271
37315
|
if (!n2) return this.resolve([]);
|
|
37272
|
-
var s22 = new Array(n2), a2 = 0, t2 = -1, o2 = new this(
|
|
37316
|
+
var s22 = new Array(n2), a2 = 0, t2 = -1, o2 = new this(u3);
|
|
37273
37317
|
for (; ++t2 < n2; ) h22(e2[t2], t2);
|
|
37274
37318
|
return o2;
|
|
37275
37319
|
function h22(e3, t3) {
|
|
37276
37320
|
r22.resolve(e3).then(function(e4) {
|
|
37277
|
-
s22[t3] = e4, ++a2 !== n2 || i2 || (i2 = true,
|
|
37321
|
+
s22[t3] = e4, ++a2 !== n2 || i2 || (i2 = true, l.resolve(o2, s22));
|
|
37278
37322
|
}, function(e4) {
|
|
37279
|
-
i2 || (i2 = true,
|
|
37323
|
+
i2 || (i2 = true, l.reject(o2, e4));
|
|
37280
37324
|
});
|
|
37281
37325
|
}
|
|
37282
37326
|
}, o.race = function(e2) {
|
|
@@ -37284,11 +37328,11 @@ function requireJszip_min() {
|
|
|
37284
37328
|
if ("[object Array]" !== Object.prototype.toString.call(e2)) return this.reject(new TypeError("must be an array"));
|
|
37285
37329
|
var r22 = e2.length, n2 = false;
|
|
37286
37330
|
if (!r22) return this.resolve([]);
|
|
37287
|
-
var i2 = -1, s22 = new this(
|
|
37331
|
+
var i2 = -1, s22 = new this(u3);
|
|
37288
37332
|
for (; ++i2 < r22; ) a2 = e2[i2], t2.resolve(a2).then(function(e3) {
|
|
37289
|
-
n2 || (n2 = true,
|
|
37333
|
+
n2 || (n2 = true, l.resolve(s22, e3));
|
|
37290
37334
|
}, function(e3) {
|
|
37291
|
-
n2 || (n2 = true,
|
|
37335
|
+
n2 || (n2 = true, l.reject(s22, e3));
|
|
37292
37336
|
});
|
|
37293
37337
|
var a2;
|
|
37294
37338
|
return s22;
|
|
@@ -37297,17 +37341,17 @@ function requireJszip_min() {
|
|
|
37297
37341
|
var n = {};
|
|
37298
37342
|
(0, e("./lib/utils/common").assign)(n, e("./lib/deflate"), e("./lib/inflate"), e("./lib/zlib/constants")), t.exports = n;
|
|
37299
37343
|
}, { "./lib/deflate": 39, "./lib/inflate": 40, "./lib/utils/common": 41, "./lib/zlib/constants": 44 }], 39: [function(e, t, r2) {
|
|
37300
|
-
var a = e("./zlib/deflate"), o = e("./utils/common"), h2 = e("./utils/strings"), i = e("./zlib/messages"), s2 = e("./zlib/zstream"),
|
|
37344
|
+
var a = e("./zlib/deflate"), o = e("./utils/common"), h2 = e("./utils/strings"), i = e("./zlib/messages"), s2 = e("./zlib/zstream"), u3 = Object.prototype.toString, l = 0, f2 = -1, c2 = 0, d2 = 8;
|
|
37301
37345
|
function p(e2) {
|
|
37302
37346
|
if (!(this instanceof p)) return new p(e2);
|
|
37303
37347
|
this.options = o.assign({ level: f2, method: d2, chunkSize: 16384, windowBits: 15, memLevel: 8, strategy: c2, to: "" }, e2 || {});
|
|
37304
37348
|
var t2 = this.options;
|
|
37305
37349
|
t2.raw && 0 < t2.windowBits ? t2.windowBits = -t2.windowBits : t2.gzip && 0 < t2.windowBits && t2.windowBits < 16 && (t2.windowBits += 16), this.err = 0, this.msg = "", this.ended = false, this.chunks = [], this.strm = new s2(), this.strm.avail_out = 0;
|
|
37306
37350
|
var r22 = a.deflateInit2(this.strm, t2.level, t2.method, t2.windowBits, t2.memLevel, t2.strategy);
|
|
37307
|
-
if (r22 !==
|
|
37351
|
+
if (r22 !== l) throw new Error(i[r22]);
|
|
37308
37352
|
if (t2.header && a.deflateSetHeader(this.strm, t2.header), t2.dictionary) {
|
|
37309
37353
|
var n2;
|
|
37310
|
-
if (n2 = "string" == typeof t2.dictionary ? h2.string2buf(t2.dictionary) : "[object ArrayBuffer]" ===
|
|
37354
|
+
if (n2 = "string" == typeof t2.dictionary ? h2.string2buf(t2.dictionary) : "[object ArrayBuffer]" === u3.call(t2.dictionary) ? new Uint8Array(t2.dictionary) : t2.dictionary, (r22 = a.deflateSetDictionary(this.strm, n2)) !== l) throw new Error(i[r22]);
|
|
37311
37355
|
this._dict_set = true;
|
|
37312
37356
|
}
|
|
37313
37357
|
}
|
|
@@ -37319,16 +37363,16 @@ function requireJszip_min() {
|
|
|
37319
37363
|
p.prototype.push = function(e2, t2) {
|
|
37320
37364
|
var r22, n2, i2 = this.strm, s22 = this.options.chunkSize;
|
|
37321
37365
|
if (this.ended) return false;
|
|
37322
|
-
n2 = t2 === ~~t2 ? t2 : true === t2 ? 4 : 0, "string" == typeof e2 ? i2.input = h2.string2buf(e2) : "[object ArrayBuffer]" ===
|
|
37366
|
+
n2 = t2 === ~~t2 ? t2 : true === t2 ? 4 : 0, "string" == typeof e2 ? i2.input = h2.string2buf(e2) : "[object ArrayBuffer]" === u3.call(e2) ? i2.input = new Uint8Array(e2) : i2.input = e2, i2.next_in = 0, i2.avail_in = i2.input.length;
|
|
37323
37367
|
do {
|
|
37324
|
-
if (0 === i2.avail_out && (i2.output = new o.Buf8(s22), i2.next_out = 0, i2.avail_out = s22), 1 !== (r22 = a.deflate(i2, n2)) && r22 !==
|
|
37368
|
+
if (0 === i2.avail_out && (i2.output = new o.Buf8(s22), i2.next_out = 0, i2.avail_out = s22), 1 !== (r22 = a.deflate(i2, n2)) && r22 !== l) return this.onEnd(r22), !(this.ended = true);
|
|
37325
37369
|
0 !== i2.avail_out && (0 !== i2.avail_in || 4 !== n2 && 2 !== n2) || ("string" === this.options.to ? this.onData(h2.buf2binstring(o.shrinkBuf(i2.output, i2.next_out))) : this.onData(o.shrinkBuf(i2.output, i2.next_out)));
|
|
37326
37370
|
} while ((0 < i2.avail_in || 0 === i2.avail_out) && 1 !== r22);
|
|
37327
|
-
return 4 === n2 ? (r22 = a.deflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 ===
|
|
37371
|
+
return 4 === n2 ? (r22 = a.deflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 === l) : 2 !== n2 || (this.onEnd(l), !(i2.avail_out = 0));
|
|
37328
37372
|
}, p.prototype.onData = function(e2) {
|
|
37329
37373
|
this.chunks.push(e2);
|
|
37330
37374
|
}, p.prototype.onEnd = function(e2) {
|
|
37331
|
-
e2 ===
|
|
37375
|
+
e2 === l && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = o.flattenChunks(this.chunks)), this.chunks = [], this.err = e2, this.msg = this.strm.msg;
|
|
37332
37376
|
}, r2.Deflate = p, r2.deflate = n, r2.deflateRaw = function(e2, t2) {
|
|
37333
37377
|
return (t2 = t2 || {}).raw = true, n(e2, t2);
|
|
37334
37378
|
}, r2.gzip = function(e2, t2) {
|
|
@@ -37351,12 +37395,12 @@ function requireJszip_min() {
|
|
|
37351
37395
|
return r22.result;
|
|
37352
37396
|
}
|
|
37353
37397
|
a.prototype.push = function(e2, t2) {
|
|
37354
|
-
var r22, n2, i2, s22, a2, o2, h2 = this.strm,
|
|
37398
|
+
var r22, n2, i2, s22, a2, o2, h2 = this.strm, u3 = this.options.chunkSize, l = this.options.dictionary, f2 = false;
|
|
37355
37399
|
if (this.ended) return false;
|
|
37356
37400
|
n2 = t2 === ~~t2 ? t2 : true === t2 ? m2.Z_FINISH : m2.Z_NO_FLUSH, "string" == typeof e2 ? h2.input = p.binstring2buf(e2) : "[object ArrayBuffer]" === _2.call(e2) ? h2.input = new Uint8Array(e2) : h2.input = e2, h2.next_in = 0, h2.avail_in = h2.input.length;
|
|
37357
37401
|
do {
|
|
37358
|
-
if (0 === h2.avail_out && (h2.output = new d2.Buf8(
|
|
37359
|
-
h2.next_out && (0 !== h2.avail_out && r22 !== m2.Z_STREAM_END && (0 !== h2.avail_in || n2 !== m2.Z_FINISH && n2 !== m2.Z_SYNC_FLUSH) || ("string" === this.options.to ? (i2 = p.utf8border(h2.output, h2.next_out), s22 = h2.next_out - i2, a2 = p.buf2string(h2.output, i2), h2.next_out = s22, h2.avail_out =
|
|
37402
|
+
if (0 === h2.avail_out && (h2.output = new d2.Buf8(u3), h2.next_out = 0, h2.avail_out = u3), (r22 = c2.inflate(h2, m2.Z_NO_FLUSH)) === m2.Z_NEED_DICT && l && (o2 = "string" == typeof l ? p.string2buf(l) : "[object ArrayBuffer]" === _2.call(l) ? new Uint8Array(l) : l, r22 = c2.inflateSetDictionary(this.strm, o2)), r22 === m2.Z_BUF_ERROR && true === f2 && (r22 = m2.Z_OK, f2 = false), r22 !== m2.Z_STREAM_END && r22 !== m2.Z_OK) return this.onEnd(r22), !(this.ended = true);
|
|
37403
|
+
h2.next_out && (0 !== h2.avail_out && r22 !== m2.Z_STREAM_END && (0 !== h2.avail_in || n2 !== m2.Z_FINISH && n2 !== m2.Z_SYNC_FLUSH) || ("string" === this.options.to ? (i2 = p.utf8border(h2.output, h2.next_out), s22 = h2.next_out - i2, a2 = p.buf2string(h2.output, i2), h2.next_out = s22, h2.avail_out = u3 - s22, s22 && d2.arraySet(h2.output, h2.output, i2, s22, 0), this.onData(a2)) : this.onData(d2.shrinkBuf(h2.output, h2.next_out)))), 0 === h2.avail_in && 0 === h2.avail_out && (f2 = true);
|
|
37360
37404
|
} while ((0 < h2.avail_in || 0 === h2.avail_out) && r22 !== m2.Z_STREAM_END);
|
|
37361
37405
|
return r22 === m2.Z_STREAM_END && (n2 = m2.Z_FINISH), n2 === m2.Z_FINISH ? (r22 = c2.inflateEnd(this.strm), this.onEnd(r22), this.ended = true, r22 === m2.Z_OK) : n2 !== m2.Z_SYNC_FLUSH || (this.onEnd(m2.Z_OK), !(h2.avail_out = 0));
|
|
37362
37406
|
}, a.prototype.onData = function(e2) {
|
|
@@ -37408,35 +37452,35 @@ function requireJszip_min() {
|
|
|
37408
37452
|
} catch (e2) {
|
|
37409
37453
|
s2 = false;
|
|
37410
37454
|
}
|
|
37411
|
-
for (var
|
|
37412
|
-
function
|
|
37455
|
+
for (var u3 = new h2.Buf8(256), n = 0; n < 256; n++) u3[n] = 252 <= n ? 6 : 248 <= n ? 5 : 240 <= n ? 4 : 224 <= n ? 3 : 192 <= n ? 2 : 1;
|
|
37456
|
+
function l(e2, t2) {
|
|
37413
37457
|
if (t2 < 65537 && (e2.subarray && s2 || !e2.subarray && i)) return String.fromCharCode.apply(null, h2.shrinkBuf(e2, t2));
|
|
37414
37458
|
for (var r22 = "", n2 = 0; n2 < t2; n2++) r22 += String.fromCharCode(e2[n2]);
|
|
37415
37459
|
return r22;
|
|
37416
37460
|
}
|
|
37417
|
-
|
|
37461
|
+
u3[254] = u3[254] = 1, r2.string2buf = function(e2) {
|
|
37418
37462
|
var t2, r22, n2, i2, s22, a = e2.length, o = 0;
|
|
37419
37463
|
for (i2 = 0; i2 < a; i2++) 55296 == (64512 & (r22 = e2.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n2 = e2.charCodeAt(i2 + 1))) && (r22 = 65536 + (r22 - 55296 << 10) + (n2 - 56320), i2++), o += r22 < 128 ? 1 : r22 < 2048 ? 2 : r22 < 65536 ? 3 : 4;
|
|
37420
37464
|
for (t2 = new h2.Buf8(o), i2 = s22 = 0; s22 < o; i2++) 55296 == (64512 & (r22 = e2.charCodeAt(i2))) && i2 + 1 < a && 56320 == (64512 & (n2 = e2.charCodeAt(i2 + 1))) && (r22 = 65536 + (r22 - 55296 << 10) + (n2 - 56320), i2++), r22 < 128 ? t2[s22++] = r22 : (r22 < 2048 ? t2[s22++] = 192 | r22 >>> 6 : (r22 < 65536 ? t2[s22++] = 224 | r22 >>> 12 : (t2[s22++] = 240 | r22 >>> 18, t2[s22++] = 128 | r22 >>> 12 & 63), t2[s22++] = 128 | r22 >>> 6 & 63), t2[s22++] = 128 | 63 & r22);
|
|
37421
37465
|
return t2;
|
|
37422
37466
|
}, r2.buf2binstring = function(e2) {
|
|
37423
|
-
return
|
|
37467
|
+
return l(e2, e2.length);
|
|
37424
37468
|
}, r2.binstring2buf = function(e2) {
|
|
37425
37469
|
for (var t2 = new h2.Buf8(e2.length), r22 = 0, n2 = t2.length; r22 < n2; r22++) t2[r22] = e2.charCodeAt(r22);
|
|
37426
37470
|
return t2;
|
|
37427
37471
|
}, r2.buf2string = function(e2, t2) {
|
|
37428
37472
|
var r22, n2, i2, s22, a = t2 || e2.length, o = new Array(2 * a);
|
|
37429
37473
|
for (r22 = n2 = 0; r22 < a; ) if ((i2 = e2[r22++]) < 128) o[n2++] = i2;
|
|
37430
|
-
else if (4 < (s22 =
|
|
37474
|
+
else if (4 < (s22 = u3[i2])) o[n2++] = 65533, r22 += s22 - 1;
|
|
37431
37475
|
else {
|
|
37432
37476
|
for (i2 &= 2 === s22 ? 31 : 3 === s22 ? 15 : 7; 1 < s22 && r22 < a; ) i2 = i2 << 6 | 63 & e2[r22++], s22--;
|
|
37433
37477
|
1 < s22 ? o[n2++] = 65533 : i2 < 65536 ? o[n2++] = i2 : (i2 -= 65536, o[n2++] = 55296 | i2 >> 10 & 1023, o[n2++] = 56320 | 1023 & i2);
|
|
37434
37478
|
}
|
|
37435
|
-
return
|
|
37479
|
+
return l(o, n2);
|
|
37436
37480
|
}, r2.utf8border = function(e2, t2) {
|
|
37437
37481
|
var r22;
|
|
37438
37482
|
for ((t2 = t2 || e2.length) > e2.length && (t2 = e2.length), r22 = t2 - 1; 0 <= r22 && 128 == (192 & e2[r22]); ) r22--;
|
|
37439
|
-
return r22 < 0 ? t2 : 0 === r22 ? t2 : r22 +
|
|
37483
|
+
return r22 < 0 ? t2 : 0 === r22 ? t2 : r22 + u3[e2[r22]] > t2 ? r22 : t2;
|
|
37440
37484
|
};
|
|
37441
37485
|
}, { "./common": 41 }], 43: [function(e, t, r2) {
|
|
37442
37486
|
t.exports = function(e2, t2, r22, n) {
|
|
@@ -37464,11 +37508,11 @@ function requireJszip_min() {
|
|
|
37464
37508
|
return -1 ^ e2;
|
|
37465
37509
|
};
|
|
37466
37510
|
}, {}], 46: [function(e, t, r2) {
|
|
37467
|
-
var h2, c2 = e("../utils/common"),
|
|
37468
|
-
function
|
|
37511
|
+
var h2, c2 = e("../utils/common"), u3 = e("./trees"), d2 = e("./adler32"), p = e("./crc32"), n = e("./messages"), l = 0, f2 = 4, m2 = 0, _2 = -2, g = -1, b2 = 4, i = 2, v2 = 8, y2 = 9, s2 = 286, a = 30, o = 19, w2 = 2 * s2 + 1, k2 = 15, x2 = 3, S2 = 258, z2 = S2 + x2 + 1, C2 = 42, E2 = 113, A2 = 1, I2 = 2, O = 3, B2 = 4;
|
|
37512
|
+
function R(e2, t2) {
|
|
37469
37513
|
return e2.msg = n[t2], t2;
|
|
37470
37514
|
}
|
|
37471
|
-
function
|
|
37515
|
+
function T2(e2) {
|
|
37472
37516
|
return (e2 << 1) - (4 < e2 ? 9 : 0);
|
|
37473
37517
|
}
|
|
37474
37518
|
function D2(e2) {
|
|
@@ -37479,7 +37523,7 @@ function requireJszip_min() {
|
|
|
37479
37523
|
r22 > e2.avail_out && (r22 = e2.avail_out), 0 !== r22 && (c2.arraySet(e2.output, t2.pending_buf, t2.pending_out, r22, e2.next_out), e2.next_out += r22, t2.pending_out += r22, e2.total_out += r22, e2.avail_out -= r22, t2.pending -= r22, 0 === t2.pending && (t2.pending_out = 0));
|
|
37480
37524
|
}
|
|
37481
37525
|
function N2(e2, t2) {
|
|
37482
|
-
|
|
37526
|
+
u3._tr_flush_block(e2, 0 <= e2.block_start ? e2.block_start : -1, e2.strstart - e2.block_start, t2), e2.block_start = e2.strstart, F2(e2.strm);
|
|
37483
37527
|
}
|
|
37484
37528
|
function U2(e2, t2) {
|
|
37485
37529
|
e2.pending_buf[e2.pending++] = t2;
|
|
@@ -37488,23 +37532,23 @@ function requireJszip_min() {
|
|
|
37488
37532
|
e2.pending_buf[e2.pending++] = t2 >>> 8 & 255, e2.pending_buf[e2.pending++] = 255 & t2;
|
|
37489
37533
|
}
|
|
37490
37534
|
function L2(e2, t2) {
|
|
37491
|
-
var r22, n2, i2 = e2.max_chain_length, s22 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h22 = e2.strstart > e2.w_size - z2 ? e2.strstart - (e2.w_size - z2) : 0,
|
|
37535
|
+
var r22, n2, i2 = e2.max_chain_length, s22 = e2.strstart, a2 = e2.prev_length, o2 = e2.nice_match, h22 = e2.strstart > e2.w_size - z2 ? e2.strstart - (e2.w_size - z2) : 0, u22 = e2.window, l2 = e2.w_mask, f22 = e2.prev, c22 = e2.strstart + S2, d22 = u22[s22 + a2 - 1], p2 = u22[s22 + a2];
|
|
37492
37536
|
e2.prev_length >= e2.good_match && (i2 >>= 2), o2 > e2.lookahead && (o2 = e2.lookahead);
|
|
37493
37537
|
do {
|
|
37494
|
-
if (
|
|
37538
|
+
if (u22[(r22 = t2) + a2] === p2 && u22[r22 + a2 - 1] === d22 && u22[r22] === u22[s22] && u22[++r22] === u22[s22 + 1]) {
|
|
37495
37539
|
s22 += 2, r22++;
|
|
37496
37540
|
do {
|
|
37497
|
-
} while (
|
|
37541
|
+
} while (u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && u22[++s22] === u22[++r22] && s22 < c22);
|
|
37498
37542
|
if (n2 = S2 - (c22 - s22), s22 = c22 - S2, a2 < n2) {
|
|
37499
37543
|
if (e2.match_start = t2, o2 <= (a2 = n2)) break;
|
|
37500
|
-
d22 =
|
|
37544
|
+
d22 = u22[s22 + a2 - 1], p2 = u22[s22 + a2];
|
|
37501
37545
|
}
|
|
37502
37546
|
}
|
|
37503
|
-
} while ((t2 = f22[t2 &
|
|
37547
|
+
} while ((t2 = f22[t2 & l2]) > h22 && 0 != --i2);
|
|
37504
37548
|
return a2 <= e2.lookahead ? a2 : e2.lookahead;
|
|
37505
37549
|
}
|
|
37506
37550
|
function j2(e2) {
|
|
37507
|
-
var t2, r22, n2, i2, s22, a2, o2, h22,
|
|
37551
|
+
var t2, r22, n2, i2, s22, a2, o2, h22, u22, l2, f22 = e2.w_size;
|
|
37508
37552
|
do {
|
|
37509
37553
|
if (i2 = e2.window_size - e2.lookahead - e2.strstart, e2.strstart >= f22 + (f22 - z2)) {
|
|
37510
37554
|
for (c2.arraySet(e2.window, e2.window, f22, f22, 0), e2.match_start -= f22, e2.strstart -= f22, e2.block_start -= f22, t2 = r22 = e2.hash_size; n2 = e2.head[--t2], e2.head[t2] = f22 <= n2 ? n2 - f22 : 0, --r22; ) ;
|
|
@@ -37512,38 +37556,38 @@ function requireJszip_min() {
|
|
|
37512
37556
|
i2 += f22;
|
|
37513
37557
|
}
|
|
37514
37558
|
if (0 === e2.strm.avail_in) break;
|
|
37515
|
-
if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead,
|
|
37559
|
+
if (a2 = e2.strm, o2 = e2.window, h22 = e2.strstart + e2.lookahead, u22 = i2, l2 = void 0, l2 = a2.avail_in, u22 < l2 && (l2 = u22), r22 = 0 === l2 ? 0 : (a2.avail_in -= l2, c2.arraySet(o2, a2.input, a2.next_in, l2, h22), 1 === a2.state.wrap ? a2.adler = d2(a2.adler, o2, l2, h22) : 2 === a2.state.wrap && (a2.adler = p(a2.adler, o2, l2, h22)), a2.next_in += l2, a2.total_in += l2, l2), e2.lookahead += r22, e2.lookahead + e2.insert >= x2) for (s22 = e2.strstart - e2.insert, e2.ins_h = e2.window[s22], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + 1]) & e2.hash_mask; e2.insert && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[s22 + x2 - 1]) & e2.hash_mask, e2.prev[s22 & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = s22, s22++, e2.insert--, !(e2.lookahead + e2.insert < x2)); ) ;
|
|
37516
37560
|
} while (e2.lookahead < z2 && 0 !== e2.strm.avail_in);
|
|
37517
37561
|
}
|
|
37518
37562
|
function Z(e2, t2) {
|
|
37519
37563
|
for (var r22, n2; ; ) {
|
|
37520
37564
|
if (e2.lookahead < z2) {
|
|
37521
|
-
if (j2(e2), e2.lookahead < z2 && t2 ===
|
|
37565
|
+
if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
|
|
37522
37566
|
if (0 === e2.lookahead) break;
|
|
37523
37567
|
}
|
|
37524
|
-
if (r22 = 0, e2.lookahead >=
|
|
37525
|
-
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart +
|
|
37568
|
+
if (r22 = 0, e2.lookahead >= x2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 !== r22 && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22)), e2.match_length >= x2) if (n2 = u3._tr_tally(e2, e2.strstart - e2.match_start, e2.match_length - x2), e2.lookahead -= e2.match_length, e2.match_length <= e2.max_lazy_match && e2.lookahead >= x2) {
|
|
37569
|
+
for (e2.match_length--; e2.strstart++, e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart, 0 != --e2.match_length; ) ;
|
|
37526
37570
|
e2.strstart++;
|
|
37527
37571
|
} else e2.strstart += e2.match_length, e2.match_length = 0, e2.ins_h = e2.window[e2.strstart], e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + 1]) & e2.hash_mask;
|
|
37528
|
-
else n2 =
|
|
37572
|
+
else n2 = u3._tr_tally(e2, 0, e2.window[e2.strstart]), e2.lookahead--, e2.strstart++;
|
|
37529
37573
|
if (n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37530
37574
|
}
|
|
37531
|
-
return e2.insert = e2.strstart <
|
|
37575
|
+
return e2.insert = e2.strstart < x2 - 1 ? e2.strstart : x2 - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
37532
37576
|
}
|
|
37533
37577
|
function W2(e2, t2) {
|
|
37534
37578
|
for (var r22, n2, i2; ; ) {
|
|
37535
37579
|
if (e2.lookahead < z2) {
|
|
37536
|
-
if (j2(e2), e2.lookahead < z2 && t2 ===
|
|
37580
|
+
if (j2(e2), e2.lookahead < z2 && t2 === l) return A2;
|
|
37537
37581
|
if (0 === e2.lookahead) break;
|
|
37538
37582
|
}
|
|
37539
|
-
if (r22 = 0, e2.lookahead >=
|
|
37540
|
-
for (i2 = e2.strstart + e2.lookahead -
|
|
37541
|
-
if (e2.match_available = 0, e2.match_length =
|
|
37583
|
+
if (r22 = 0, e2.lookahead >= x2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), e2.prev_length = e2.match_length, e2.prev_match = e2.match_start, e2.match_length = x2 - 1, 0 !== r22 && e2.prev_length < e2.max_lazy_match && e2.strstart - r22 <= e2.w_size - z2 && (e2.match_length = L2(e2, r22), e2.match_length <= 5 && (1 === e2.strategy || e2.match_length === x2 && 4096 < e2.strstart - e2.match_start) && (e2.match_length = x2 - 1)), e2.prev_length >= x2 && e2.match_length <= e2.prev_length) {
|
|
37584
|
+
for (i2 = e2.strstart + e2.lookahead - x2, n2 = u3._tr_tally(e2, e2.strstart - 1 - e2.prev_match, e2.prev_length - x2), e2.lookahead -= e2.prev_length - 1, e2.prev_length -= 2; ++e2.strstart <= i2 && (e2.ins_h = (e2.ins_h << e2.hash_shift ^ e2.window[e2.strstart + x2 - 1]) & e2.hash_mask, r22 = e2.prev[e2.strstart & e2.w_mask] = e2.head[e2.ins_h], e2.head[e2.ins_h] = e2.strstart), 0 != --e2.prev_length; ) ;
|
|
37585
|
+
if (e2.match_available = 0, e2.match_length = x2 - 1, e2.strstart++, n2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37542
37586
|
} else if (e2.match_available) {
|
|
37543
|
-
if ((n2 =
|
|
37587
|
+
if ((n2 = u3._tr_tally(e2, 0, e2.window[e2.strstart - 1])) && N2(e2, false), e2.strstart++, e2.lookahead--, 0 === e2.strm.avail_out) return A2;
|
|
37544
37588
|
} else e2.match_available = 1, e2.strstart++, e2.lookahead--;
|
|
37545
37589
|
}
|
|
37546
|
-
return e2.match_available && (n2 =
|
|
37590
|
+
return e2.match_available && (n2 = u3._tr_tally(e2, 0, e2.window[e2.strstart - 1]), e2.match_available = 0), e2.insert = e2.strstart < x2 - 1 ? e2.strstart : x2 - 1, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : e2.last_lit && (N2(e2, false), 0 === e2.strm.avail_out) ? A2 : I2;
|
|
37547
37591
|
}
|
|
37548
37592
|
function M2(e2, t2, r22, n2, i2) {
|
|
37549
37593
|
this.good_length = e2, this.max_lazy = t2, this.nice_length = r22, this.max_chain = n2, this.func = i2;
|
|
@@ -37553,27 +37597,27 @@ function requireJszip_min() {
|
|
|
37553
37597
|
}
|
|
37554
37598
|
function G2(e2) {
|
|
37555
37599
|
var t2;
|
|
37556
|
-
return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush =
|
|
37600
|
+
return e2 && e2.state ? (e2.total_in = e2.total_out = 0, e2.data_type = i, (t2 = e2.state).pending = 0, t2.pending_out = 0, t2.wrap < 0 && (t2.wrap = -t2.wrap), t2.status = t2.wrap ? C2 : E2, e2.adler = 2 === t2.wrap ? 0 : 1, t2.last_flush = l, u3._tr_init(t2), m2) : R(e2, _2);
|
|
37557
37601
|
}
|
|
37558
37602
|
function K2(e2) {
|
|
37559
37603
|
var t2 = G2(e2);
|
|
37560
37604
|
return t2 === m2 && (function(e3) {
|
|
37561
|
-
e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h2[e3.level].max_lazy, e3.good_match = h2[e3.level].good_length, e3.nice_match = h2[e3.level].nice_length, e3.max_chain_length = h2[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length =
|
|
37605
|
+
e3.window_size = 2 * e3.w_size, D2(e3.head), e3.max_lazy_match = h2[e3.level].max_lazy, e3.good_match = h2[e3.level].good_length, e3.nice_match = h2[e3.level].nice_length, e3.max_chain_length = h2[e3.level].max_chain, e3.strstart = 0, e3.block_start = 0, e3.lookahead = 0, e3.insert = 0, e3.match_length = e3.prev_length = x2 - 1, e3.match_available = 0, e3.ins_h = 0;
|
|
37562
37606
|
})(e2.state), t2;
|
|
37563
37607
|
}
|
|
37564
37608
|
function Y2(e2, t2, r22, n2, i2, s22) {
|
|
37565
37609
|
if (!e2) return _2;
|
|
37566
37610
|
var a2 = 1;
|
|
37567
|
-
if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y2 < i2 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return
|
|
37611
|
+
if (t2 === g && (t2 = 6), n2 < 0 ? (a2 = 0, n2 = -n2) : 15 < n2 && (a2 = 2, n2 -= 16), i2 < 1 || y2 < i2 || r22 !== v2 || n2 < 8 || 15 < n2 || t2 < 0 || 9 < t2 || s22 < 0 || b2 < s22) return R(e2, _2);
|
|
37568
37612
|
8 === n2 && (n2 = 9);
|
|
37569
37613
|
var o2 = new H();
|
|
37570
|
-
return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits +
|
|
37614
|
+
return (e2.state = o2).strm = e2, o2.wrap = a2, o2.gzhead = null, o2.w_bits = n2, o2.w_size = 1 << o2.w_bits, o2.w_mask = o2.w_size - 1, o2.hash_bits = i2 + 7, o2.hash_size = 1 << o2.hash_bits, o2.hash_mask = o2.hash_size - 1, o2.hash_shift = ~~((o2.hash_bits + x2 - 1) / x2), o2.window = new c2.Buf8(2 * o2.w_size), o2.head = new c2.Buf16(o2.hash_size), o2.prev = new c2.Buf16(o2.w_size), o2.lit_bufsize = 1 << i2 + 6, o2.pending_buf_size = 4 * o2.lit_bufsize, o2.pending_buf = new c2.Buf8(o2.pending_buf_size), o2.d_buf = 1 * o2.lit_bufsize, o2.l_buf = 3 * o2.lit_bufsize, o2.level = t2, o2.strategy = s22, o2.method = r22, K2(e2);
|
|
37571
37615
|
}
|
|
37572
37616
|
h2 = [new M2(0, 0, 0, 0, function(e2, t2) {
|
|
37573
37617
|
var r22 = 65535;
|
|
37574
37618
|
for (r22 > e2.pending_buf_size - 5 && (r22 = e2.pending_buf_size - 5); ; ) {
|
|
37575
37619
|
if (e2.lookahead <= 1) {
|
|
37576
|
-
if (j2(e2), 0 === e2.lookahead && t2 ===
|
|
37620
|
+
if (j2(e2), 0 === e2.lookahead && t2 === l) return A2;
|
|
37577
37621
|
if (0 === e2.lookahead) break;
|
|
37578
37622
|
}
|
|
37579
37623
|
e2.strstart += e2.lookahead, e2.lookahead = 0;
|
|
@@ -37581,15 +37625,15 @@ function requireJszip_min() {
|
|
|
37581
37625
|
if ((0 === e2.strstart || e2.strstart >= n2) && (e2.lookahead = e2.strstart - n2, e2.strstart = n2, N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37582
37626
|
if (e2.strstart - e2.block_start >= e2.w_size - z2 && (N2(e2, false), 0 === e2.strm.avail_out)) return A2;
|
|
37583
37627
|
}
|
|
37584
|
-
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ?
|
|
37628
|
+
return e2.insert = 0, t2 === f2 ? (N2(e2, true), 0 === e2.strm.avail_out ? O : B2) : (e2.strstart > e2.block_start && (N2(e2, false), e2.strm.avail_out), A2);
|
|
37585
37629
|
}), new M2(4, 4, 8, 4, Z), new M2(4, 5, 16, 8, Z), new M2(4, 6, 32, 32, Z), new M2(4, 4, 16, 16, W2), new M2(8, 16, 32, 32, W2), new M2(8, 16, 128, 128, W2), new M2(8, 32, 128, 256, W2), new M2(32, 128, 258, 1024, W2), new M2(32, 258, 258, 4096, W2)], r2.deflateInit = function(e2, t2) {
|
|
37586
37630
|
return Y2(e2, t2, v2, 15, 8, 0);
|
|
37587
37631
|
}, r2.deflateInit2 = Y2, r2.deflateReset = K2, r2.deflateResetKeep = G2, r2.deflateSetHeader = function(e2, t2) {
|
|
37588
37632
|
return e2 && e2.state ? 2 !== e2.state.wrap ? _2 : (e2.state.gzhead = t2, m2) : _2;
|
|
37589
37633
|
}, r2.deflate = function(e2, t2) {
|
|
37590
37634
|
var r22, n2, i2, s22;
|
|
37591
|
-
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ?
|
|
37592
|
-
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return
|
|
37635
|
+
if (!e2 || !e2.state || 5 < t2 || t2 < 0) return e2 ? R(e2, _2) : _2;
|
|
37636
|
+
if (n2 = e2.state, !e2.output || !e2.input && 0 !== e2.avail_in || 666 === n2.status && t2 !== f2) return R(e2, 0 === e2.avail_out ? -5 : _2);
|
|
37593
37637
|
if (n2.strm = e2, r22 = n2.last_flush, n2.last_flush = t2, n2.status === C2) if (2 === n2.wrap) e2.adler = 0, U2(n2, 31), U2(n2, 139), U2(n2, 8), n2.gzhead ? (U2(n2, (n2.gzhead.text ? 1 : 0) + (n2.gzhead.hcrc ? 2 : 0) + (n2.gzhead.extra ? 4 : 0) + (n2.gzhead.name ? 8 : 0) + (n2.gzhead.comment ? 16 : 0)), U2(n2, 255 & n2.gzhead.time), U2(n2, n2.gzhead.time >> 8 & 255), U2(n2, n2.gzhead.time >> 16 & 255), U2(n2, n2.gzhead.time >> 24 & 255), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 255 & n2.gzhead.os), n2.gzhead.extra && n2.gzhead.extra.length && (U2(n2, 255 & n2.gzhead.extra.length), U2(n2, n2.gzhead.extra.length >> 8 & 255)), n2.gzhead.hcrc && (e2.adler = p(e2.adler, n2.pending_buf, n2.pending, 0)), n2.gzindex = 0, n2.status = 69) : (U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 0), U2(n2, 9 === n2.level ? 2 : 2 <= n2.strategy || n2.level < 2 ? 4 : 0), U2(n2, 3), n2.status = E2);
|
|
37594
37638
|
else {
|
|
37595
37639
|
var a2 = v2 + (n2.w_bits - 8 << 4) << 8;
|
|
@@ -37623,50 +37667,50 @@ function requireJszip_min() {
|
|
|
37623
37667
|
} else n2.status = 103;
|
|
37624
37668
|
if (103 === n2.status && (n2.gzhead.hcrc ? (n2.pending + 2 > n2.pending_buf_size && F2(e2), n2.pending + 2 <= n2.pending_buf_size && (U2(n2, 255 & e2.adler), U2(n2, e2.adler >> 8 & 255), e2.adler = 0, n2.status = E2)) : n2.status = E2), 0 !== n2.pending) {
|
|
37625
37669
|
if (F2(e2), 0 === e2.avail_out) return n2.last_flush = -1, m2;
|
|
37626
|
-
} else if (0 === e2.avail_in &&
|
|
37627
|
-
if (666 === n2.status && 0 !== e2.avail_in) return
|
|
37628
|
-
if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !==
|
|
37670
|
+
} else if (0 === e2.avail_in && T2(t2) <= T2(r22) && t2 !== f2) return R(e2, -5);
|
|
37671
|
+
if (666 === n2.status && 0 !== e2.avail_in) return R(e2, -5);
|
|
37672
|
+
if (0 !== e2.avail_in || 0 !== n2.lookahead || t2 !== l && 666 !== n2.status) {
|
|
37629
37673
|
var o2 = 2 === n2.strategy ? (function(e3, t3) {
|
|
37630
37674
|
for (var r3; ; ) {
|
|
37631
37675
|
if (0 === e3.lookahead && (j2(e3), 0 === e3.lookahead)) {
|
|
37632
|
-
if (t3 ===
|
|
37676
|
+
if (t3 === l) return A2;
|
|
37633
37677
|
break;
|
|
37634
37678
|
}
|
|
37635
|
-
if (e3.match_length = 0, r3 =
|
|
37679
|
+
if (e3.match_length = 0, r3 = u3._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++, r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
|
|
37636
37680
|
}
|
|
37637
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
37681
|
+
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
|
|
37638
37682
|
})(n2, t2) : 3 === n2.strategy ? (function(e3, t3) {
|
|
37639
37683
|
for (var r3, n3, i3, s3, a3 = e3.window; ; ) {
|
|
37640
37684
|
if (e3.lookahead <= S2) {
|
|
37641
|
-
if (j2(e3), e3.lookahead <= S2 && t3 ===
|
|
37685
|
+
if (j2(e3), e3.lookahead <= S2 && t3 === l) return A2;
|
|
37642
37686
|
if (0 === e3.lookahead) break;
|
|
37643
37687
|
}
|
|
37644
|
-
if (e3.match_length = 0, e3.lookahead >=
|
|
37688
|
+
if (e3.match_length = 0, e3.lookahead >= x2 && 0 < e3.strstart && (n3 = a3[i3 = e3.strstart - 1]) === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3]) {
|
|
37645
37689
|
s3 = e3.strstart + S2;
|
|
37646
37690
|
do {
|
|
37647
37691
|
} while (n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && n3 === a3[++i3] && i3 < s3);
|
|
37648
37692
|
e3.match_length = S2 - (s3 - i3), e3.match_length > e3.lookahead && (e3.match_length = e3.lookahead);
|
|
37649
37693
|
}
|
|
37650
|
-
if (e3.match_length >=
|
|
37694
|
+
if (e3.match_length >= x2 ? (r3 = u3._tr_tally(e3, 1, e3.match_length - x2), e3.lookahead -= e3.match_length, e3.strstart += e3.match_length, e3.match_length = 0) : (r3 = u3._tr_tally(e3, 0, e3.window[e3.strstart]), e3.lookahead--, e3.strstart++), r3 && (N2(e3, false), 0 === e3.strm.avail_out)) return A2;
|
|
37651
37695
|
}
|
|
37652
|
-
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ?
|
|
37696
|
+
return e3.insert = 0, t3 === f2 ? (N2(e3, true), 0 === e3.strm.avail_out ? O : B2) : e3.last_lit && (N2(e3, false), 0 === e3.strm.avail_out) ? A2 : I2;
|
|
37653
37697
|
})(n2, t2) : h2[n2.level].func(n2, t2);
|
|
37654
|
-
if (o2 !==
|
|
37655
|
-
if (o2 === I2 && (1 === t2 ?
|
|
37698
|
+
if (o2 !== O && o2 !== B2 || (n2.status = 666), o2 === A2 || o2 === O) return 0 === e2.avail_out && (n2.last_flush = -1), m2;
|
|
37699
|
+
if (o2 === I2 && (1 === t2 ? u3._tr_align(n2) : 5 !== t2 && (u3._tr_stored_block(n2, 0, 0, false), 3 === t2 && (D2(n2.head), 0 === n2.lookahead && (n2.strstart = 0, n2.block_start = 0, n2.insert = 0))), F2(e2), 0 === e2.avail_out)) return n2.last_flush = -1, m2;
|
|
37656
37700
|
}
|
|
37657
37701
|
return t2 !== f2 ? m2 : n2.wrap <= 0 ? 1 : (2 === n2.wrap ? (U2(n2, 255 & e2.adler), U2(n2, e2.adler >> 8 & 255), U2(n2, e2.adler >> 16 & 255), U2(n2, e2.adler >> 24 & 255), U2(n2, 255 & e2.total_in), U2(n2, e2.total_in >> 8 & 255), U2(n2, e2.total_in >> 16 & 255), U2(n2, e2.total_in >> 24 & 255)) : (P2(n2, e2.adler >>> 16), P2(n2, 65535 & e2.adler)), F2(e2), 0 < n2.wrap && (n2.wrap = -n2.wrap), 0 !== n2.pending ? m2 : 1);
|
|
37658
37702
|
}, r2.deflateEnd = function(e2) {
|
|
37659
37703
|
var t2;
|
|
37660
|
-
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ?
|
|
37704
|
+
return e2 && e2.state ? (t2 = e2.state.status) !== C2 && 69 !== t2 && 73 !== t2 && 91 !== t2 && 103 !== t2 && t2 !== E2 && 666 !== t2 ? R(e2, _2) : (e2.state = null, t2 === E2 ? R(e2, -3) : m2) : _2;
|
|
37661
37705
|
}, r2.deflateSetDictionary = function(e2, t2) {
|
|
37662
|
-
var r22, n2, i2, s22, a2, o2, h22,
|
|
37706
|
+
var r22, n2, i2, s22, a2, o2, h22, u22, l2 = t2.length;
|
|
37663
37707
|
if (!e2 || !e2.state) return _2;
|
|
37664
37708
|
if (2 === (s22 = (r22 = e2.state).wrap) || 1 === s22 && r22.status !== C2 || r22.lookahead) return _2;
|
|
37665
|
-
for (1 === s22 && (e2.adler = d2(e2.adler, t2,
|
|
37666
|
-
for (n2 = r22.strstart, i2 = r22.lookahead - (
|
|
37667
|
-
r22.strstart = n2, r22.lookahead =
|
|
37709
|
+
for (1 === s22 && (e2.adler = d2(e2.adler, t2, l2, 0)), r22.wrap = 0, l2 >= r22.w_size && (0 === s22 && (D2(r22.head), r22.strstart = 0, r22.block_start = 0, r22.insert = 0), u22 = new c2.Buf8(r22.w_size), c2.arraySet(u22, t2, l2 - r22.w_size, r22.w_size, 0), t2 = u22, l2 = r22.w_size), a2 = e2.avail_in, o2 = e2.next_in, h22 = e2.input, e2.avail_in = l2, e2.next_in = 0, e2.input = t2, j2(r22); r22.lookahead >= x2; ) {
|
|
37710
|
+
for (n2 = r22.strstart, i2 = r22.lookahead - (x2 - 1); r22.ins_h = (r22.ins_h << r22.hash_shift ^ r22.window[n2 + x2 - 1]) & r22.hash_mask, r22.prev[n2 & r22.w_mask] = r22.head[r22.ins_h], r22.head[r22.ins_h] = n2, n2++, --i2; ) ;
|
|
37711
|
+
r22.strstart = n2, r22.lookahead = x2 - 1, j2(r22);
|
|
37668
37712
|
}
|
|
37669
|
-
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length =
|
|
37713
|
+
return r22.strstart += r22.lookahead, r22.block_start = r22.strstart, r22.insert = r22.lookahead, r22.lookahead = 0, r22.match_length = r22.prev_length = x2 - 1, r22.match_available = 0, e2.next_in = o2, e2.input = h22, e2.avail_in = a2, r22.wrap = s22, m2;
|
|
37670
37714
|
}, r2.deflateInfo = "pako deflate (from Nodeca project)";
|
|
37671
37715
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./messages": 51, "./trees": 52 }], 47: [function(e, t, r2) {
|
|
37672
37716
|
t.exports = function() {
|
|
@@ -37674,8 +37718,8 @@ function requireJszip_min() {
|
|
|
37674
37718
|
};
|
|
37675
37719
|
}, {}], 48: [function(e, t, r2) {
|
|
37676
37720
|
t.exports = function(e2, t2) {
|
|
37677
|
-
var r22, n, i, s2, a, o, h2,
|
|
37678
|
-
r22 = e2.state, n = e2.next_in, z2 = e2.input, i = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h2 = r22.dmax,
|
|
37721
|
+
var r22, n, i, s2, a, o, h2, u3, l, f2, c2, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2;
|
|
37722
|
+
r22 = e2.state, n = e2.next_in, z2 = e2.input, i = n + (e2.avail_in - 5), s2 = e2.next_out, C2 = e2.output, a = s2 - (t2 - e2.avail_out), o = s2 + (e2.avail_out - 257), h2 = r22.dmax, u3 = r22.wsize, l = r22.whave, f2 = r22.wnext, c2 = r22.window, d2 = r22.hold, p = r22.bits, m2 = r22.lencode, _2 = r22.distcode, g = (1 << r22.lenbits) - 1, b2 = (1 << r22.distbits) - 1;
|
|
37679
37723
|
e: do {
|
|
37680
37724
|
p < 15 && (d2 += z2[n++] << p, p += 8, d2 += z2[n++] << p, p += 8), v2 = m2[d2 & g];
|
|
37681
37725
|
t: for (; ; ) {
|
|
@@ -37708,32 +37752,32 @@ function requireJszip_min() {
|
|
|
37708
37752
|
break e;
|
|
37709
37753
|
}
|
|
37710
37754
|
if (d2 >>>= y2, p -= y2, (y2 = s2 - a) < k2) {
|
|
37711
|
-
if (
|
|
37755
|
+
if (l < (y2 = k2 - y2) && r22.sane) {
|
|
37712
37756
|
e2.msg = "invalid distance too far back", r22.mode = 30;
|
|
37713
37757
|
break e;
|
|
37714
37758
|
}
|
|
37715
|
-
if (S2 = c2, (
|
|
37716
|
-
if (
|
|
37717
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37718
|
-
|
|
37759
|
+
if (S2 = c2, (x2 = 0) === f2) {
|
|
37760
|
+
if (x2 += u3 - y2, y2 < w2) {
|
|
37761
|
+
for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37762
|
+
x2 = s2 - k2, S2 = C2;
|
|
37719
37763
|
}
|
|
37720
37764
|
} else if (f2 < y2) {
|
|
37721
|
-
if (
|
|
37722
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37723
|
-
if (
|
|
37724
|
-
for (w2 -= y2 = f2; C2[s2++] = c2[
|
|
37725
|
-
|
|
37765
|
+
if (x2 += u3 + f2 - y2, (y2 -= f2) < w2) {
|
|
37766
|
+
for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37767
|
+
if (x2 = 0, f2 < w2) {
|
|
37768
|
+
for (w2 -= y2 = f2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37769
|
+
x2 = s2 - k2, S2 = C2;
|
|
37726
37770
|
}
|
|
37727
37771
|
}
|
|
37728
|
-
} else if (
|
|
37729
|
-
for (w2 -= y2; C2[s2++] = c2[
|
|
37730
|
-
|
|
37772
|
+
} else if (x2 += f2 - y2, y2 < w2) {
|
|
37773
|
+
for (w2 -= y2; C2[s2++] = c2[x2++], --y2; ) ;
|
|
37774
|
+
x2 = s2 - k2, S2 = C2;
|
|
37731
37775
|
}
|
|
37732
|
-
for (; 2 < w2; ) C2[s2++] = S2[
|
|
37733
|
-
w2 && (C2[s2++] = S2[
|
|
37776
|
+
for (; 2 < w2; ) C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], C2[s2++] = S2[x2++], w2 -= 3;
|
|
37777
|
+
w2 && (C2[s2++] = S2[x2++], 1 < w2 && (C2[s2++] = S2[x2++]));
|
|
37734
37778
|
} else {
|
|
37735
|
-
for (
|
|
37736
|
-
w2 && (C2[s2++] = C2[
|
|
37779
|
+
for (x2 = s2 - k2; C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], C2[s2++] = C2[x2++], 2 < (w2 -= 3); ) ;
|
|
37780
|
+
w2 && (C2[s2++] = C2[x2++], 1 < w2 && (C2[s2++] = C2[x2++]));
|
|
37737
37781
|
}
|
|
37738
37782
|
break;
|
|
37739
37783
|
}
|
|
@@ -37744,7 +37788,7 @@ function requireJszip_min() {
|
|
|
37744
37788
|
n -= w2 = p >> 3, d2 &= (1 << (p -= w2 << 3)) - 1, e2.next_in = n, e2.next_out = s2, e2.avail_in = n < i ? i - n + 5 : 5 - (n - i), e2.avail_out = s2 < o ? o - s2 + 257 : 257 - (s2 - o), r22.hold = d2, r22.bits = p;
|
|
37745
37789
|
};
|
|
37746
37790
|
}, {}], 49: [function(e, t, r2) {
|
|
37747
|
-
var I2 = e("../utils/common"),
|
|
37791
|
+
var I2 = e("../utils/common"), O = e("./adler32"), B2 = e("./crc32"), R = e("./inffast"), T2 = e("./inftrees"), D2 = 1, F2 = 2, N2 = 0, U2 = -2, P2 = 1, n = 852, i = 592;
|
|
37748
37792
|
function L2(e2) {
|
|
37749
37793
|
return (e2 >>> 24 & 255) + (e2 >>> 8 & 65280) + ((65280 & e2) << 8) + ((255 & e2) << 24);
|
|
37750
37794
|
}
|
|
@@ -37763,68 +37807,68 @@ function requireJszip_min() {
|
|
|
37763
37807
|
var r22, n2;
|
|
37764
37808
|
return e2 && e2.state ? (n2 = e2.state, t2 < 0 ? (r22 = 0, t2 = -t2) : (r22 = 1 + (t2 >> 4), t2 < 48 && (t2 &= 15)), t2 && (t2 < 8 || 15 < t2) ? U2 : (null !== n2.window && n2.wbits !== t2 && (n2.window = null), n2.wrap = r22, n2.wbits = t2, o(e2))) : U2;
|
|
37765
37809
|
}
|
|
37766
|
-
function
|
|
37810
|
+
function u3(e2, t2) {
|
|
37767
37811
|
var r22, n2;
|
|
37768
37812
|
return e2 ? (n2 = new s2(), (e2.state = n2).window = null, (r22 = h2(e2, t2)) !== N2 && (e2.state = null), r22) : U2;
|
|
37769
37813
|
}
|
|
37770
|
-
var
|
|
37814
|
+
var l, f2, c2 = true;
|
|
37771
37815
|
function j2(e2) {
|
|
37772
37816
|
if (c2) {
|
|
37773
37817
|
var t2;
|
|
37774
|
-
for (
|
|
37818
|
+
for (l = new I2.Buf32(512), f2 = new I2.Buf32(32), t2 = 0; t2 < 144; ) e2.lens[t2++] = 8;
|
|
37775
37819
|
for (; t2 < 256; ) e2.lens[t2++] = 9;
|
|
37776
37820
|
for (; t2 < 280; ) e2.lens[t2++] = 7;
|
|
37777
37821
|
for (; t2 < 288; ) e2.lens[t2++] = 8;
|
|
37778
|
-
for (
|
|
37779
|
-
|
|
37822
|
+
for (T2(D2, e2.lens, 0, 288, l, 0, e2.work, { bits: 9 }), t2 = 0; t2 < 32; ) e2.lens[t2++] = 5;
|
|
37823
|
+
T2(F2, e2.lens, 0, 32, f2, 0, e2.work, { bits: 5 }), c2 = false;
|
|
37780
37824
|
}
|
|
37781
|
-
e2.lencode =
|
|
37825
|
+
e2.lencode = l, e2.lenbits = 9, e2.distcode = f2, e2.distbits = 5;
|
|
37782
37826
|
}
|
|
37783
37827
|
function Z(e2, t2, r22, n2) {
|
|
37784
37828
|
var i2, s22 = e2.state;
|
|
37785
37829
|
return null === s22.window && (s22.wsize = 1 << s22.wbits, s22.wnext = 0, s22.whave = 0, s22.window = new I2.Buf8(s22.wsize)), n2 >= s22.wsize ? (I2.arraySet(s22.window, t2, r22 - s22.wsize, s22.wsize, 0), s22.wnext = 0, s22.whave = s22.wsize) : (n2 < (i2 = s22.wsize - s22.wnext) && (i2 = n2), I2.arraySet(s22.window, t2, r22 - n2, i2, s22.wnext), (n2 -= i2) ? (I2.arraySet(s22.window, t2, r22 - n2, n2, 0), s22.wnext = n2, s22.whave = s22.wsize) : (s22.wnext += i2, s22.wnext === s22.wsize && (s22.wnext = 0), s22.whave < s22.wsize && (s22.whave += i2))), 0;
|
|
37786
37830
|
}
|
|
37787
37831
|
r2.inflateReset = o, r2.inflateReset2 = h2, r2.inflateResetKeep = a, r2.inflateInit = function(e2) {
|
|
37788
|
-
return
|
|
37789
|
-
}, r2.inflateInit2 =
|
|
37790
|
-
var r22, n2, i2, s22, a2, o2, h22,
|
|
37832
|
+
return u3(e2, 15);
|
|
37833
|
+
}, r2.inflateInit2 = u3, r2.inflate = function(e2, t2) {
|
|
37834
|
+
var r22, n2, i2, s22, a2, o2, h22, u22, l2, f22, c22, d2, p, m2, _2, g, b2, v2, y2, w2, k2, x2, S2, z2, C2 = 0, E2 = new I2.Buf8(4), A2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
37791
37835
|
if (!e2 || !e2.state || !e2.output || !e2.input && 0 !== e2.avail_in) return U2;
|
|
37792
|
-
12 === (r22 = e2.state).mode && (r22.mode = 13), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in,
|
|
37836
|
+
12 === (r22 = e2.state).mode && (r22.mode = 13), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u22 = r22.hold, l2 = r22.bits, f22 = o2, c22 = h22, x2 = N2;
|
|
37793
37837
|
e: for (; ; ) switch (r22.mode) {
|
|
37794
37838
|
case P2:
|
|
37795
37839
|
if (0 === r22.wrap) {
|
|
37796
37840
|
r22.mode = 13;
|
|
37797
37841
|
break;
|
|
37798
37842
|
}
|
|
37799
|
-
for (;
|
|
37843
|
+
for (; l2 < 16; ) {
|
|
37800
37844
|
if (0 === o2) break e;
|
|
37801
|
-
o2--,
|
|
37845
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37802
37846
|
}
|
|
37803
|
-
if (2 & r22.wrap && 35615 ===
|
|
37804
|
-
E2[r22.check = 0] = 255 &
|
|
37847
|
+
if (2 & r22.wrap && 35615 === u22) {
|
|
37848
|
+
E2[r22.check = 0] = 255 & u22, E2[1] = u22 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0), l2 = u22 = 0, r22.mode = 2;
|
|
37805
37849
|
break;
|
|
37806
37850
|
}
|
|
37807
|
-
if (r22.flags = 0, r22.head && (r22.head.done = false), !(1 & r22.wrap) || (((255 &
|
|
37851
|
+
if (r22.flags = 0, r22.head && (r22.head.done = false), !(1 & r22.wrap) || (((255 & u22) << 8) + (u22 >> 8)) % 31) {
|
|
37808
37852
|
e2.msg = "incorrect header check", r22.mode = 30;
|
|
37809
37853
|
break;
|
|
37810
37854
|
}
|
|
37811
|
-
if (8 != (15 &
|
|
37855
|
+
if (8 != (15 & u22)) {
|
|
37812
37856
|
e2.msg = "unknown compression method", r22.mode = 30;
|
|
37813
37857
|
break;
|
|
37814
37858
|
}
|
|
37815
|
-
if (
|
|
37859
|
+
if (l2 -= 4, k2 = 8 + (15 & (u22 >>>= 4)), 0 === r22.wbits) r22.wbits = k2;
|
|
37816
37860
|
else if (k2 > r22.wbits) {
|
|
37817
37861
|
e2.msg = "invalid window size", r22.mode = 30;
|
|
37818
37862
|
break;
|
|
37819
37863
|
}
|
|
37820
|
-
r22.dmax = 1 << k2, e2.adler = r22.check = 1, r22.mode = 512 &
|
|
37864
|
+
r22.dmax = 1 << k2, e2.adler = r22.check = 1, r22.mode = 512 & u22 ? 10 : 12, l2 = u22 = 0;
|
|
37821
37865
|
break;
|
|
37822
37866
|
case 2:
|
|
37823
|
-
for (;
|
|
37867
|
+
for (; l2 < 16; ) {
|
|
37824
37868
|
if (0 === o2) break e;
|
|
37825
|
-
o2--,
|
|
37869
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37826
37870
|
}
|
|
37827
|
-
if (r22.flags =
|
|
37871
|
+
if (r22.flags = u22, 8 != (255 & r22.flags)) {
|
|
37828
37872
|
e2.msg = "unknown compression method", r22.mode = 30;
|
|
37829
37873
|
break;
|
|
37830
37874
|
}
|
|
@@ -37832,26 +37876,26 @@ function requireJszip_min() {
|
|
|
37832
37876
|
e2.msg = "unknown header flags set", r22.mode = 30;
|
|
37833
37877
|
break;
|
|
37834
37878
|
}
|
|
37835
|
-
r22.head && (r22.head.text =
|
|
37879
|
+
r22.head && (r22.head.text = u22 >> 8 & 1), 512 & r22.flags && (E2[0] = 255 & u22, E2[1] = u22 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l2 = u22 = 0, r22.mode = 3;
|
|
37836
37880
|
case 3:
|
|
37837
|
-
for (;
|
|
37881
|
+
for (; l2 < 32; ) {
|
|
37838
37882
|
if (0 === o2) break e;
|
|
37839
|
-
o2--,
|
|
37883
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37840
37884
|
}
|
|
37841
|
-
r22.head && (r22.head.time =
|
|
37885
|
+
r22.head && (r22.head.time = u22), 512 & r22.flags && (E2[0] = 255 & u22, E2[1] = u22 >>> 8 & 255, E2[2] = u22 >>> 16 & 255, E2[3] = u22 >>> 24 & 255, r22.check = B2(r22.check, E2, 4, 0)), l2 = u22 = 0, r22.mode = 4;
|
|
37842
37886
|
case 4:
|
|
37843
|
-
for (;
|
|
37887
|
+
for (; l2 < 16; ) {
|
|
37844
37888
|
if (0 === o2) break e;
|
|
37845
|
-
o2--,
|
|
37889
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37846
37890
|
}
|
|
37847
|
-
r22.head && (r22.head.xflags = 255 &
|
|
37891
|
+
r22.head && (r22.head.xflags = 255 & u22, r22.head.os = u22 >> 8), 512 & r22.flags && (E2[0] = 255 & u22, E2[1] = u22 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l2 = u22 = 0, r22.mode = 5;
|
|
37848
37892
|
case 5:
|
|
37849
37893
|
if (1024 & r22.flags) {
|
|
37850
|
-
for (;
|
|
37894
|
+
for (; l2 < 16; ) {
|
|
37851
37895
|
if (0 === o2) break e;
|
|
37852
|
-
o2--,
|
|
37896
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37853
37897
|
}
|
|
37854
|
-
r22.length =
|
|
37898
|
+
r22.length = u22, r22.head && (r22.head.extra_len = u22), 512 & r22.flags && (E2[0] = 255 & u22, E2[1] = u22 >>> 8 & 255, r22.check = B2(r22.check, E2, 2, 0)), l2 = u22 = 0;
|
|
37855
37899
|
} else r22.head && (r22.head.extra = null);
|
|
37856
37900
|
r22.mode = 6;
|
|
37857
37901
|
case 6:
|
|
@@ -37873,45 +37917,45 @@ function requireJszip_min() {
|
|
|
37873
37917
|
r22.mode = 9;
|
|
37874
37918
|
case 9:
|
|
37875
37919
|
if (512 & r22.flags) {
|
|
37876
|
-
for (;
|
|
37920
|
+
for (; l2 < 16; ) {
|
|
37877
37921
|
if (0 === o2) break e;
|
|
37878
|
-
o2--,
|
|
37922
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37879
37923
|
}
|
|
37880
|
-
if (
|
|
37924
|
+
if (u22 !== (65535 & r22.check)) {
|
|
37881
37925
|
e2.msg = "header crc mismatch", r22.mode = 30;
|
|
37882
37926
|
break;
|
|
37883
37927
|
}
|
|
37884
|
-
|
|
37928
|
+
l2 = u22 = 0;
|
|
37885
37929
|
}
|
|
37886
37930
|
r22.head && (r22.head.hcrc = r22.flags >> 9 & 1, r22.head.done = true), e2.adler = r22.check = 0, r22.mode = 12;
|
|
37887
37931
|
break;
|
|
37888
37932
|
case 10:
|
|
37889
|
-
for (;
|
|
37933
|
+
for (; l2 < 32; ) {
|
|
37890
37934
|
if (0 === o2) break e;
|
|
37891
|
-
o2--,
|
|
37935
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37892
37936
|
}
|
|
37893
|
-
e2.adler = r22.check = L2(
|
|
37937
|
+
e2.adler = r22.check = L2(u22), l2 = u22 = 0, r22.mode = 11;
|
|
37894
37938
|
case 11:
|
|
37895
|
-
if (0 === r22.havedict) return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold =
|
|
37939
|
+
if (0 === r22.havedict) return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u22, r22.bits = l2, 2;
|
|
37896
37940
|
e2.adler = r22.check = 1, r22.mode = 12;
|
|
37897
37941
|
case 12:
|
|
37898
37942
|
if (5 === t2 || 6 === t2) break e;
|
|
37899
37943
|
case 13:
|
|
37900
37944
|
if (r22.last) {
|
|
37901
|
-
|
|
37945
|
+
u22 >>>= 7 & l2, l2 -= 7 & l2, r22.mode = 27;
|
|
37902
37946
|
break;
|
|
37903
37947
|
}
|
|
37904
|
-
for (;
|
|
37948
|
+
for (; l2 < 3; ) {
|
|
37905
37949
|
if (0 === o2) break e;
|
|
37906
|
-
o2--,
|
|
37950
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37907
37951
|
}
|
|
37908
|
-
switch (r22.last = 1 &
|
|
37952
|
+
switch (r22.last = 1 & u22, l2 -= 1, 3 & (u22 >>>= 1)) {
|
|
37909
37953
|
case 0:
|
|
37910
37954
|
r22.mode = 14;
|
|
37911
37955
|
break;
|
|
37912
37956
|
case 1:
|
|
37913
37957
|
if (j2(r22), r22.mode = 20, 6 !== t2) break;
|
|
37914
|
-
|
|
37958
|
+
u22 >>>= 2, l2 -= 2;
|
|
37915
37959
|
break e;
|
|
37916
37960
|
case 2:
|
|
37917
37961
|
r22.mode = 17;
|
|
@@ -37919,18 +37963,18 @@ function requireJszip_min() {
|
|
|
37919
37963
|
case 3:
|
|
37920
37964
|
e2.msg = "invalid block type", r22.mode = 30;
|
|
37921
37965
|
}
|
|
37922
|
-
|
|
37966
|
+
u22 >>>= 2, l2 -= 2;
|
|
37923
37967
|
break;
|
|
37924
37968
|
case 14:
|
|
37925
|
-
for (
|
|
37969
|
+
for (u22 >>>= 7 & l2, l2 -= 7 & l2; l2 < 32; ) {
|
|
37926
37970
|
if (0 === o2) break e;
|
|
37927
|
-
o2--,
|
|
37971
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37928
37972
|
}
|
|
37929
|
-
if ((65535 &
|
|
37973
|
+
if ((65535 & u22) != (u22 >>> 16 ^ 65535)) {
|
|
37930
37974
|
e2.msg = "invalid stored block lengths", r22.mode = 30;
|
|
37931
37975
|
break;
|
|
37932
37976
|
}
|
|
37933
|
-
if (r22.length = 65535 &
|
|
37977
|
+
if (r22.length = 65535 & u22, l2 = u22 = 0, r22.mode = 15, 6 === t2) break e;
|
|
37934
37978
|
case 15:
|
|
37935
37979
|
r22.mode = 16;
|
|
37936
37980
|
case 16:
|
|
@@ -37942,59 +37986,59 @@ function requireJszip_min() {
|
|
|
37942
37986
|
r22.mode = 12;
|
|
37943
37987
|
break;
|
|
37944
37988
|
case 17:
|
|
37945
|
-
for (;
|
|
37989
|
+
for (; l2 < 14; ) {
|
|
37946
37990
|
if (0 === o2) break e;
|
|
37947
|
-
o2--,
|
|
37991
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37948
37992
|
}
|
|
37949
|
-
if (r22.nlen = 257 + (31 &
|
|
37993
|
+
if (r22.nlen = 257 + (31 & u22), u22 >>>= 5, l2 -= 5, r22.ndist = 1 + (31 & u22), u22 >>>= 5, l2 -= 5, r22.ncode = 4 + (15 & u22), u22 >>>= 4, l2 -= 4, 286 < r22.nlen || 30 < r22.ndist) {
|
|
37950
37994
|
e2.msg = "too many length or distance symbols", r22.mode = 30;
|
|
37951
37995
|
break;
|
|
37952
37996
|
}
|
|
37953
37997
|
r22.have = 0, r22.mode = 18;
|
|
37954
37998
|
case 18:
|
|
37955
37999
|
for (; r22.have < r22.ncode; ) {
|
|
37956
|
-
for (;
|
|
38000
|
+
for (; l2 < 3; ) {
|
|
37957
38001
|
if (0 === o2) break e;
|
|
37958
|
-
o2--,
|
|
38002
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37959
38003
|
}
|
|
37960
|
-
r22.lens[A2[r22.have++]] = 7 &
|
|
38004
|
+
r22.lens[A2[r22.have++]] = 7 & u22, u22 >>>= 3, l2 -= 3;
|
|
37961
38005
|
}
|
|
37962
38006
|
for (; r22.have < 19; ) r22.lens[A2[r22.have++]] = 0;
|
|
37963
|
-
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits },
|
|
38007
|
+
if (r22.lencode = r22.lendyn, r22.lenbits = 7, S2 = { bits: r22.lenbits }, x2 = T2(0, r22.lens, 0, 19, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x2) {
|
|
37964
38008
|
e2.msg = "invalid code lengths set", r22.mode = 30;
|
|
37965
38009
|
break;
|
|
37966
38010
|
}
|
|
37967
38011
|
r22.have = 0, r22.mode = 19;
|
|
37968
38012
|
case 19:
|
|
37969
38013
|
for (; r22.have < r22.nlen + r22.ndist; ) {
|
|
37970
|
-
for (; g = (C2 = r22.lencode[
|
|
38014
|
+
for (; g = (C2 = r22.lencode[u22 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
|
|
37971
38015
|
if (0 === o2) break e;
|
|
37972
|
-
o2--,
|
|
38016
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37973
38017
|
}
|
|
37974
|
-
if (b2 < 16)
|
|
38018
|
+
if (b2 < 16) u22 >>>= _2, l2 -= _2, r22.lens[r22.have++] = b2;
|
|
37975
38019
|
else {
|
|
37976
38020
|
if (16 === b2) {
|
|
37977
|
-
for (z2 = _2 + 2;
|
|
38021
|
+
for (z2 = _2 + 2; l2 < z2; ) {
|
|
37978
38022
|
if (0 === o2) break e;
|
|
37979
|
-
o2--,
|
|
38023
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37980
38024
|
}
|
|
37981
|
-
if (
|
|
38025
|
+
if (u22 >>>= _2, l2 -= _2, 0 === r22.have) {
|
|
37982
38026
|
e2.msg = "invalid bit length repeat", r22.mode = 30;
|
|
37983
38027
|
break;
|
|
37984
38028
|
}
|
|
37985
|
-
k2 = r22.lens[r22.have - 1], d2 = 3 + (3 &
|
|
38029
|
+
k2 = r22.lens[r22.have - 1], d2 = 3 + (3 & u22), u22 >>>= 2, l2 -= 2;
|
|
37986
38030
|
} else if (17 === b2) {
|
|
37987
|
-
for (z2 = _2 + 3;
|
|
38031
|
+
for (z2 = _2 + 3; l2 < z2; ) {
|
|
37988
38032
|
if (0 === o2) break e;
|
|
37989
|
-
o2--,
|
|
38033
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37990
38034
|
}
|
|
37991
|
-
|
|
38035
|
+
l2 -= _2, k2 = 0, d2 = 3 + (7 & (u22 >>>= _2)), u22 >>>= 3, l2 -= 3;
|
|
37992
38036
|
} else {
|
|
37993
|
-
for (z2 = _2 + 7;
|
|
38037
|
+
for (z2 = _2 + 7; l2 < z2; ) {
|
|
37994
38038
|
if (0 === o2) break e;
|
|
37995
|
-
o2--,
|
|
38039
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
37996
38040
|
}
|
|
37997
|
-
|
|
38041
|
+
l2 -= _2, k2 = 0, d2 = 11 + (127 & (u22 >>>= _2)), u22 >>>= 7, l2 -= 7;
|
|
37998
38042
|
}
|
|
37999
38043
|
if (r22.have + d2 > r22.nlen + r22.ndist) {
|
|
38000
38044
|
e2.msg = "invalid bit length repeat", r22.mode = 30;
|
|
@@ -38008,11 +38052,11 @@ function requireJszip_min() {
|
|
|
38008
38052
|
e2.msg = "invalid code -- missing end-of-block", r22.mode = 30;
|
|
38009
38053
|
break;
|
|
38010
38054
|
}
|
|
38011
|
-
if (r22.lenbits = 9, S2 = { bits: r22.lenbits },
|
|
38055
|
+
if (r22.lenbits = 9, S2 = { bits: r22.lenbits }, x2 = T2(D2, r22.lens, 0, r22.nlen, r22.lencode, 0, r22.work, S2), r22.lenbits = S2.bits, x2) {
|
|
38012
38056
|
e2.msg = "invalid literal/lengths set", r22.mode = 30;
|
|
38013
38057
|
break;
|
|
38014
38058
|
}
|
|
38015
|
-
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits },
|
|
38059
|
+
if (r22.distbits = 6, r22.distcode = r22.distdyn, S2 = { bits: r22.distbits }, x2 = T2(F2, r22.lens, r22.nlen, r22.ndist, r22.distcode, 0, r22.work, S2), r22.distbits = S2.bits, x2) {
|
|
38016
38060
|
e2.msg = "invalid distances set", r22.mode = 30;
|
|
38017
38061
|
break;
|
|
38018
38062
|
}
|
|
@@ -38021,21 +38065,21 @@ function requireJszip_min() {
|
|
|
38021
38065
|
r22.mode = 21;
|
|
38022
38066
|
case 21:
|
|
38023
38067
|
if (6 <= o2 && 258 <= h22) {
|
|
38024
|
-
e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold =
|
|
38068
|
+
e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u22, r22.bits = l2, R(e2, c22), a2 = e2.next_out, i2 = e2.output, h22 = e2.avail_out, s22 = e2.next_in, n2 = e2.input, o2 = e2.avail_in, u22 = r22.hold, l2 = r22.bits, 12 === r22.mode && (r22.back = -1);
|
|
38025
38069
|
break;
|
|
38026
38070
|
}
|
|
38027
|
-
for (r22.back = 0; g = (C2 = r22.lencode[
|
|
38071
|
+
for (r22.back = 0; g = (C2 = r22.lencode[u22 & (1 << r22.lenbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
|
|
38028
38072
|
if (0 === o2) break e;
|
|
38029
|
-
o2--,
|
|
38073
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
38030
38074
|
}
|
|
38031
38075
|
if (g && 0 == (240 & g)) {
|
|
38032
|
-
for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.lencode[w2 + ((
|
|
38076
|
+
for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.lencode[w2 + ((u22 & (1 << v2 + y2) - 1) >> v2)]) >>> 16 & 255, b2 = 65535 & C2, !(v2 + (_2 = C2 >>> 24) <= l2); ) {
|
|
38033
38077
|
if (0 === o2) break e;
|
|
38034
|
-
o2--,
|
|
38078
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
38035
38079
|
}
|
|
38036
|
-
|
|
38080
|
+
u22 >>>= v2, l2 -= v2, r22.back += v2;
|
|
38037
38081
|
}
|
|
38038
|
-
if (
|
|
38082
|
+
if (u22 >>>= _2, l2 -= _2, r22.back += _2, r22.length = b2, 0 === g) {
|
|
38039
38083
|
r22.mode = 26;
|
|
38040
38084
|
break;
|
|
38041
38085
|
}
|
|
@@ -38050,37 +38094,37 @@ function requireJszip_min() {
|
|
|
38050
38094
|
r22.extra = 15 & g, r22.mode = 22;
|
|
38051
38095
|
case 22:
|
|
38052
38096
|
if (r22.extra) {
|
|
38053
|
-
for (z2 = r22.extra;
|
|
38097
|
+
for (z2 = r22.extra; l2 < z2; ) {
|
|
38054
38098
|
if (0 === o2) break e;
|
|
38055
|
-
o2--,
|
|
38099
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
38056
38100
|
}
|
|
38057
|
-
r22.length +=
|
|
38101
|
+
r22.length += u22 & (1 << r22.extra) - 1, u22 >>>= r22.extra, l2 -= r22.extra, r22.back += r22.extra;
|
|
38058
38102
|
}
|
|
38059
38103
|
r22.was = r22.length, r22.mode = 23;
|
|
38060
38104
|
case 23:
|
|
38061
|
-
for (; g = (C2 = r22.distcode[
|
|
38105
|
+
for (; g = (C2 = r22.distcode[u22 & (1 << r22.distbits) - 1]) >>> 16 & 255, b2 = 65535 & C2, !((_2 = C2 >>> 24) <= l2); ) {
|
|
38062
38106
|
if (0 === o2) break e;
|
|
38063
|
-
o2--,
|
|
38107
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
38064
38108
|
}
|
|
38065
38109
|
if (0 == (240 & g)) {
|
|
38066
|
-
for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.distcode[w2 + ((
|
|
38110
|
+
for (v2 = _2, y2 = g, w2 = b2; g = (C2 = r22.distcode[w2 + ((u22 & (1 << v2 + y2) - 1) >> v2)]) >>> 16 & 255, b2 = 65535 & C2, !(v2 + (_2 = C2 >>> 24) <= l2); ) {
|
|
38067
38111
|
if (0 === o2) break e;
|
|
38068
|
-
o2--,
|
|
38112
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
38069
38113
|
}
|
|
38070
|
-
|
|
38114
|
+
u22 >>>= v2, l2 -= v2, r22.back += v2;
|
|
38071
38115
|
}
|
|
38072
|
-
if (
|
|
38116
|
+
if (u22 >>>= _2, l2 -= _2, r22.back += _2, 64 & g) {
|
|
38073
38117
|
e2.msg = "invalid distance code", r22.mode = 30;
|
|
38074
38118
|
break;
|
|
38075
38119
|
}
|
|
38076
38120
|
r22.offset = b2, r22.extra = 15 & g, r22.mode = 24;
|
|
38077
38121
|
case 24:
|
|
38078
38122
|
if (r22.extra) {
|
|
38079
|
-
for (z2 = r22.extra;
|
|
38123
|
+
for (z2 = r22.extra; l2 < z2; ) {
|
|
38080
38124
|
if (0 === o2) break e;
|
|
38081
|
-
o2--,
|
|
38125
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
38082
38126
|
}
|
|
38083
|
-
r22.offset +=
|
|
38127
|
+
r22.offset += u22 & (1 << r22.extra) - 1, u22 >>>= r22.extra, l2 -= r22.extra, r22.back += r22.extra;
|
|
38084
38128
|
}
|
|
38085
38129
|
if (r22.offset > r22.dmax) {
|
|
38086
38130
|
e2.msg = "invalid distance too far back", r22.mode = 30;
|
|
@@ -38105,35 +38149,35 @@ function requireJszip_min() {
|
|
|
38105
38149
|
break;
|
|
38106
38150
|
case 27:
|
|
38107
38151
|
if (r22.wrap) {
|
|
38108
|
-
for (;
|
|
38152
|
+
for (; l2 < 32; ) {
|
|
38109
38153
|
if (0 === o2) break e;
|
|
38110
|
-
o2--,
|
|
38154
|
+
o2--, u22 |= n2[s22++] << l2, l2 += 8;
|
|
38111
38155
|
}
|
|
38112
|
-
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) :
|
|
38156
|
+
if (c22 -= h22, e2.total_out += c22, r22.total += c22, c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, a2 - c22) : O(r22.check, i2, c22, a2 - c22)), c22 = h22, (r22.flags ? u22 : L2(u22)) !== r22.check) {
|
|
38113
38157
|
e2.msg = "incorrect data check", r22.mode = 30;
|
|
38114
38158
|
break;
|
|
38115
38159
|
}
|
|
38116
|
-
|
|
38160
|
+
l2 = u22 = 0;
|
|
38117
38161
|
}
|
|
38118
38162
|
r22.mode = 28;
|
|
38119
38163
|
case 28:
|
|
38120
38164
|
if (r22.wrap && r22.flags) {
|
|
38121
|
-
for (;
|
|
38165
|
+
for (; l2 < 32; ) {
|
|
38122
38166
|
if (0 === o2) break e;
|
|
38123
|
-
o2--,
|
|
38167
|
+
o2--, u22 += n2[s22++] << l2, l2 += 8;
|
|
38124
38168
|
}
|
|
38125
|
-
if (
|
|
38169
|
+
if (u22 !== (4294967295 & r22.total)) {
|
|
38126
38170
|
e2.msg = "incorrect length check", r22.mode = 30;
|
|
38127
38171
|
break;
|
|
38128
38172
|
}
|
|
38129
|
-
|
|
38173
|
+
l2 = u22 = 0;
|
|
38130
38174
|
}
|
|
38131
38175
|
r22.mode = 29;
|
|
38132
38176
|
case 29:
|
|
38133
|
-
|
|
38177
|
+
x2 = 1;
|
|
38134
38178
|
break e;
|
|
38135
38179
|
case 30:
|
|
38136
|
-
|
|
38180
|
+
x2 = -3;
|
|
38137
38181
|
break e;
|
|
38138
38182
|
case 31:
|
|
38139
38183
|
return -4;
|
|
@@ -38141,7 +38185,7 @@ function requireJszip_min() {
|
|
|
38141
38185
|
default:
|
|
38142
38186
|
return U2;
|
|
38143
38187
|
}
|
|
38144
|
-
return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold =
|
|
38188
|
+
return e2.next_out = a2, e2.avail_out = h22, e2.next_in = s22, e2.avail_in = o2, r22.hold = u22, r22.bits = l2, (r22.wsize || c22 !== e2.avail_out && r22.mode < 30 && (r22.mode < 27 || 4 !== t2)) && Z(e2, e2.output, e2.next_out, c22 - e2.avail_out) ? (r22.mode = 31, -4) : (f22 -= e2.avail_in, c22 -= e2.avail_out, e2.total_in += f22, e2.total_out += c22, r22.total += c22, r22.wrap && c22 && (e2.adler = r22.check = r22.flags ? B2(r22.check, i2, c22, e2.next_out - c22) : O(r22.check, i2, c22, e2.next_out - c22)), e2.data_type = r22.bits + (r22.last ? 64 : 0) + (12 === r22.mode ? 128 : 0) + (20 === r22.mode || 15 === r22.mode ? 256 : 0), (0 == f22 && 0 === c22 || 4 === t2) && x2 === N2 && (x2 = -5), x2);
|
|
38145
38189
|
}, r2.inflateEnd = function(e2) {
|
|
38146
38190
|
if (!e2 || !e2.state) return U2;
|
|
38147
38191
|
var t2 = e2.state;
|
|
@@ -38151,33 +38195,33 @@ function requireJszip_min() {
|
|
|
38151
38195
|
return e2 && e2.state ? 0 == (2 & (r22 = e2.state).wrap) ? U2 : ((r22.head = t2).done = false, N2) : U2;
|
|
38152
38196
|
}, r2.inflateSetDictionary = function(e2, t2) {
|
|
38153
38197
|
var r22, n2 = t2.length;
|
|
38154
|
-
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode &&
|
|
38198
|
+
return e2 && e2.state ? 0 !== (r22 = e2.state).wrap && 11 !== r22.mode ? U2 : 11 === r22.mode && O(1, t2, n2, 0) !== r22.check ? -3 : Z(e2, t2, n2, n2) ? (r22.mode = 31, -4) : (r22.havedict = 1, N2) : U2;
|
|
38155
38199
|
}, r2.inflateInfo = "pako inflate (from Nodeca project)";
|
|
38156
38200
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(e, t, r2) {
|
|
38157
38201
|
var D2 = e("../utils/common"), F2 = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], N2 = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], U2 = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], P2 = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
38158
38202
|
t.exports = function(e2, t2, r22, n, i, s2, a, o) {
|
|
38159
|
-
var h2,
|
|
38160
|
-
for (b2 = 0; b2 <= 15; b2++)
|
|
38161
|
-
for (v2 = 0; v2 < n; v2++)
|
|
38162
|
-
for (k2 = g, w2 = 15; 1 <= w2 && 0 ===
|
|
38203
|
+
var h2, u3, l, f2, c2, d2, p, m2, _2, g = o.bits, b2 = 0, v2 = 0, y2 = 0, w2 = 0, k2 = 0, x2 = 0, S2 = 0, z2 = 0, C2 = 0, E2 = 0, A2 = null, I2 = 0, O = new D2.Buf16(16), B2 = new D2.Buf16(16), R = null, T2 = 0;
|
|
38204
|
+
for (b2 = 0; b2 <= 15; b2++) O[b2] = 0;
|
|
38205
|
+
for (v2 = 0; v2 < n; v2++) O[t2[r22 + v2]]++;
|
|
38206
|
+
for (k2 = g, w2 = 15; 1 <= w2 && 0 === O[w2]; w2--) ;
|
|
38163
38207
|
if (w2 < k2 && (k2 = w2), 0 === w2) return i[s2++] = 20971520, i[s2++] = 20971520, o.bits = 1, 0;
|
|
38164
|
-
for (y2 = 1; y2 < w2 && 0 ===
|
|
38165
|
-
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -=
|
|
38208
|
+
for (y2 = 1; y2 < w2 && 0 === O[y2]; y2++) ;
|
|
38209
|
+
for (k2 < y2 && (k2 = y2), b2 = z2 = 1; b2 <= 15; b2++) if (z2 <<= 1, (z2 -= O[b2]) < 0) return -1;
|
|
38166
38210
|
if (0 < z2 && (0 === e2 || 1 !== w2)) return -1;
|
|
38167
|
-
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] +
|
|
38211
|
+
for (B2[1] = 0, b2 = 1; b2 < 15; b2++) B2[b2 + 1] = B2[b2] + O[b2];
|
|
38168
38212
|
for (v2 = 0; v2 < n; v2++) 0 !== t2[r22 + v2] && (a[B2[t2[r22 + v2]]++] = v2);
|
|
38169
|
-
if (d2 = 0 === e2 ? (A2 =
|
|
38213
|
+
if (d2 = 0 === e2 ? (A2 = R = a, 19) : 1 === e2 ? (A2 = F2, I2 -= 257, R = N2, T2 -= 257, 256) : (A2 = U2, R = P2, -1), b2 = y2, c2 = s2, S2 = v2 = E2 = 0, l = -1, f2 = (C2 = 1 << (x2 = k2)) - 1, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
38170
38214
|
for (; ; ) {
|
|
38171
|
-
for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 =
|
|
38215
|
+
for (p = b2 - S2, _2 = a[v2] < d2 ? (m2 = 0, a[v2]) : a[v2] > d2 ? (m2 = R[T2 + a[v2]], A2[I2 + a[v2]]) : (m2 = 96, 0), h2 = 1 << b2 - S2, y2 = u3 = 1 << x2; i[c2 + (E2 >> S2) + (u3 -= h2)] = p << 24 | m2 << 16 | _2 | 0, 0 !== u3; ) ;
|
|
38172
38216
|
for (h2 = 1 << b2 - 1; E2 & h2; ) h2 >>= 1;
|
|
38173
|
-
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --
|
|
38217
|
+
if (0 !== h2 ? (E2 &= h2 - 1, E2 += h2) : E2 = 0, v2++, 0 == --O[b2]) {
|
|
38174
38218
|
if (b2 === w2) break;
|
|
38175
38219
|
b2 = t2[r22 + a[v2]];
|
|
38176
38220
|
}
|
|
38177
|
-
if (k2 < b2 && (E2 & f2) !==
|
|
38178
|
-
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (
|
|
38179
|
-
if (C2 += 1 <<
|
|
38180
|
-
i[
|
|
38221
|
+
if (k2 < b2 && (E2 & f2) !== l) {
|
|
38222
|
+
for (0 === S2 && (S2 = k2), c2 += y2, z2 = 1 << (x2 = b2 - S2); x2 + S2 < w2 && !((z2 -= O[x2 + S2]) <= 0); ) x2++, z2 <<= 1;
|
|
38223
|
+
if (C2 += 1 << x2, 1 === e2 && 852 < C2 || 2 === e2 && 592 < C2) return 1;
|
|
38224
|
+
i[l = E2 & f2] = k2 << 24 | x2 << 16 | c2 - s2 | 0;
|
|
38181
38225
|
}
|
|
38182
38226
|
}
|
|
38183
38227
|
return 0 !== E2 && (i[c2 + E2] = b2 - S2 << 24 | 64 << 16 | 0), o.bits = k2, 0;
|
|
@@ -38189,7 +38233,7 @@ function requireJszip_min() {
|
|
|
38189
38233
|
function n(e2) {
|
|
38190
38234
|
for (var t2 = e2.length; 0 <= --t2; ) e2[t2] = 0;
|
|
38191
38235
|
}
|
|
38192
|
-
var s2 = 0, a = 29,
|
|
38236
|
+
var s2 = 0, a = 29, u3 = 256, l = u3 + 1 + a, f2 = 30, c2 = 19, _2 = 2 * l + 1, g = 15, d2 = 16, p = 7, m2 = 256, b2 = 16, v2 = 17, y2 = 18, w2 = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], k2 = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], x2 = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], S2 = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], z2 = new Array(2 * (l + 2));
|
|
38193
38237
|
n(z2);
|
|
38194
38238
|
var C2 = new Array(2 * f2);
|
|
38195
38239
|
n(C2);
|
|
@@ -38199,7 +38243,7 @@ function requireJszip_min() {
|
|
|
38199
38243
|
n(A2);
|
|
38200
38244
|
var I2 = new Array(a);
|
|
38201
38245
|
n(I2);
|
|
38202
|
-
var
|
|
38246
|
+
var O, B2, R, T2 = new Array(f2);
|
|
38203
38247
|
function D2(e2, t2, r22, n2, i2) {
|
|
38204
38248
|
this.static_tree = e2, this.extra_bits = t2, this.extra_base = r22, this.elems = n2, this.max_length = i2, this.has_stree = e2 && e2.length;
|
|
38205
38249
|
}
|
|
@@ -38232,7 +38276,7 @@ function requireJszip_min() {
|
|
|
38232
38276
|
}
|
|
38233
38277
|
function W2(e2) {
|
|
38234
38278
|
var t2;
|
|
38235
|
-
for (t2 = 0; t2 <
|
|
38279
|
+
for (t2 = 0; t2 < l; t2++) e2.dyn_ltree[2 * t2] = 0;
|
|
38236
38280
|
for (t2 = 0; t2 < f2; t2++) e2.dyn_dtree[2 * t2] = 0;
|
|
38237
38281
|
for (t2 = 0; t2 < c2; t2++) e2.bl_tree[2 * t2] = 0;
|
|
38238
38282
|
e2.dyn_ltree[2 * m2] = 1, e2.opt_len = e2.static_len = 0, e2.last_lit = e2.matches = 0;
|
|
@@ -38250,41 +38294,41 @@ function requireJszip_min() {
|
|
|
38250
38294
|
}
|
|
38251
38295
|
function K2(e2, t2, r22) {
|
|
38252
38296
|
var n2, i2, s22, a2, o2 = 0;
|
|
38253
|
-
if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i2, t2) : (L2(e2, (s22 = A2[i2]) +
|
|
38297
|
+
if (0 !== e2.last_lit) for (; n2 = e2.pending_buf[e2.d_buf + 2 * o2] << 8 | e2.pending_buf[e2.d_buf + 2 * o2 + 1], i2 = e2.pending_buf[e2.l_buf + o2], o2++, 0 === n2 ? L2(e2, i2, t2) : (L2(e2, (s22 = A2[i2]) + u3 + 1, t2), 0 !== (a2 = w2[s22]) && P2(e2, i2 -= I2[s22], a2), L2(e2, s22 = N2(--n2), r22), 0 !== (a2 = k2[s22]) && P2(e2, n2 -= T2[s22], a2)), o2 < e2.last_lit; ) ;
|
|
38254
38298
|
L2(e2, m2, t2);
|
|
38255
38299
|
}
|
|
38256
38300
|
function Y2(e2, t2) {
|
|
38257
|
-
var r22, n2, i2, s22 = t2.dyn_tree, a2 = t2.stat_desc.static_tree, o2 = t2.stat_desc.has_stree, h22 = t2.stat_desc.elems,
|
|
38258
|
-
for (e2.heap_len = 0, e2.heap_max = _2, r22 = 0; r22 < h22; r22++) 0 !== s22[2 * r22] ? (e2.heap[++e2.heap_len] =
|
|
38259
|
-
for (; e2.heap_len < 2; ) s22[2 * (i2 = e2.heap[++e2.heap_len] =
|
|
38260
|
-
for (t2.max_code =
|
|
38301
|
+
var r22, n2, i2, s22 = t2.dyn_tree, a2 = t2.stat_desc.static_tree, o2 = t2.stat_desc.has_stree, h22 = t2.stat_desc.elems, u22 = -1;
|
|
38302
|
+
for (e2.heap_len = 0, e2.heap_max = _2, r22 = 0; r22 < h22; r22++) 0 !== s22[2 * r22] ? (e2.heap[++e2.heap_len] = u22 = r22, e2.depth[r22] = 0) : s22[2 * r22 + 1] = 0;
|
|
38303
|
+
for (; e2.heap_len < 2; ) s22[2 * (i2 = e2.heap[++e2.heap_len] = u22 < 2 ? ++u22 : 0)] = 1, e2.depth[i2] = 0, e2.opt_len--, o2 && (e2.static_len -= a2[2 * i2 + 1]);
|
|
38304
|
+
for (t2.max_code = u22, r22 = e2.heap_len >> 1; 1 <= r22; r22--) G2(e2, s22, r22);
|
|
38261
38305
|
for (i2 = h22; r22 = e2.heap[1], e2.heap[1] = e2.heap[e2.heap_len--], G2(e2, s22, 1), n2 = e2.heap[1], e2.heap[--e2.heap_max] = r22, e2.heap[--e2.heap_max] = n2, s22[2 * i2] = s22[2 * r22] + s22[2 * n2], e2.depth[i2] = (e2.depth[r22] >= e2.depth[n2] ? e2.depth[r22] : e2.depth[n2]) + 1, s22[2 * r22 + 1] = s22[2 * n2 + 1] = i2, e2.heap[1] = i2++, G2(e2, s22, 1), 2 <= e2.heap_len; ) ;
|
|
38262
38306
|
e2.heap[--e2.heap_max] = e2.heap[1], (function(e3, t3) {
|
|
38263
|
-
var r3, n3, i3, s3, a3, o3, h3 = t3.dyn_tree,
|
|
38307
|
+
var r3, n3, i3, s3, a3, o3, h3 = t3.dyn_tree, u32 = t3.max_code, l2 = t3.stat_desc.static_tree, f22 = t3.stat_desc.has_stree, c22 = t3.stat_desc.extra_bits, d22 = t3.stat_desc.extra_base, p2 = t3.stat_desc.max_length, m22 = 0;
|
|
38264
38308
|
for (s3 = 0; s3 <= g; s3++) e3.bl_count[s3] = 0;
|
|
38265
|
-
for (h3[2 * e3.heap[e3.heap_max] + 1] = 0, r3 = e3.heap_max + 1; r3 < _2; r3++) p2 < (s3 = h3[2 * h3[2 * (n3 = e3.heap[r3]) + 1] + 1] + 1) && (s3 = p2, m22++), h3[2 * n3 + 1] = s3,
|
|
38309
|
+
for (h3[2 * e3.heap[e3.heap_max] + 1] = 0, r3 = e3.heap_max + 1; r3 < _2; r3++) p2 < (s3 = h3[2 * h3[2 * (n3 = e3.heap[r3]) + 1] + 1] + 1) && (s3 = p2, m22++), h3[2 * n3 + 1] = s3, u32 < n3 || (e3.bl_count[s3]++, a3 = 0, d22 <= n3 && (a3 = c22[n3 - d22]), o3 = h3[2 * n3], e3.opt_len += o3 * (s3 + a3), f22 && (e3.static_len += o3 * (l2[2 * n3 + 1] + a3)));
|
|
38266
38310
|
if (0 !== m22) {
|
|
38267
38311
|
do {
|
|
38268
38312
|
for (s3 = p2 - 1; 0 === e3.bl_count[s3]; ) s3--;
|
|
38269
38313
|
e3.bl_count[s3]--, e3.bl_count[s3 + 1] += 2, e3.bl_count[p2]--, m22 -= 2;
|
|
38270
38314
|
} while (0 < m22);
|
|
38271
|
-
for (s3 = p2; 0 !== s3; s3--) for (n3 = e3.bl_count[s3]; 0 !== n3; )
|
|
38315
|
+
for (s3 = p2; 0 !== s3; s3--) for (n3 = e3.bl_count[s3]; 0 !== n3; ) u32 < (i3 = e3.heap[--r3]) || (h3[2 * i3 + 1] !== s3 && (e3.opt_len += (s3 - h3[2 * i3 + 1]) * h3[2 * i3], h3[2 * i3 + 1] = s3), n3--);
|
|
38272
38316
|
}
|
|
38273
|
-
})(e2, t2), Z(s22,
|
|
38317
|
+
})(e2, t2), Z(s22, u22, e2.bl_count);
|
|
38274
38318
|
}
|
|
38275
38319
|
function X2(e2, t2, r22) {
|
|
38276
|
-
var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7,
|
|
38277
|
-
for (0 === a2 && (h22 = 138,
|
|
38320
|
+
var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u22 = 4;
|
|
38321
|
+
for (0 === a2 && (h22 = 138, u22 = 3), t2[2 * (r22 + 1) + 1] = 65535, n2 = 0; n2 <= r22; n2++) i2 = a2, a2 = t2[2 * (n2 + 1) + 1], ++o2 < h22 && i2 === a2 || (o2 < u22 ? e2.bl_tree[2 * i2] += o2 : 0 !== i2 ? (i2 !== s22 && e2.bl_tree[2 * i2]++, e2.bl_tree[2 * b2]++) : o2 <= 10 ? e2.bl_tree[2 * v2]++ : e2.bl_tree[2 * y2]++, s22 = i2, u22 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4));
|
|
38278
38322
|
}
|
|
38279
38323
|
function V2(e2, t2, r22) {
|
|
38280
|
-
var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7,
|
|
38281
|
-
for (0 === a2 && (h22 = 138,
|
|
38282
|
-
if (o2 <
|
|
38324
|
+
var n2, i2, s22 = -1, a2 = t2[1], o2 = 0, h22 = 7, u22 = 4;
|
|
38325
|
+
for (0 === a2 && (h22 = 138, u22 = 3), n2 = 0; n2 <= r22; n2++) if (i2 = a2, a2 = t2[2 * (n2 + 1) + 1], !(++o2 < h22 && i2 === a2)) {
|
|
38326
|
+
if (o2 < u22) for (; L2(e2, i2, e2.bl_tree), 0 != --o2; ) ;
|
|
38283
38327
|
else 0 !== i2 ? (i2 !== s22 && (L2(e2, i2, e2.bl_tree), o2--), L2(e2, b2, e2.bl_tree), P2(e2, o2 - 3, 2)) : o2 <= 10 ? (L2(e2, v2, e2.bl_tree), P2(e2, o2 - 3, 3)) : (L2(e2, y2, e2.bl_tree), P2(e2, o2 - 11, 7));
|
|
38284
|
-
s22 = i2,
|
|
38328
|
+
s22 = i2, u22 = (o2 = 0) === a2 ? (h22 = 138, 3) : i2 === a2 ? (h22 = 6, 3) : (h22 = 7, 4);
|
|
38285
38329
|
}
|
|
38286
38330
|
}
|
|
38287
|
-
n(
|
|
38331
|
+
n(T2);
|
|
38288
38332
|
var q2 = false;
|
|
38289
38333
|
function J2(e2, t2, r22, n2) {
|
|
38290
38334
|
P2(e2, (s2 << 1) + (n2 ? 1 : 0), 3), (function(e3, t3, r3, n3) {
|
|
@@ -38295,23 +38339,23 @@ function requireJszip_min() {
|
|
|
38295
38339
|
q2 || ((function() {
|
|
38296
38340
|
var e3, t2, r22, n2, i2, s22 = new Array(g + 1);
|
|
38297
38341
|
for (n2 = r22 = 0; n2 < a - 1; n2++) for (I2[n2] = r22, e3 = 0; e3 < 1 << w2[n2]; e3++) A2[r22++] = n2;
|
|
38298
|
-
for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (
|
|
38299
|
-
for (i2 >>= 7; n2 < f2; n2++) for (
|
|
38342
|
+
for (A2[r22 - 1] = n2, n2 = i2 = 0; n2 < 16; n2++) for (T2[n2] = i2, e3 = 0; e3 < 1 << k2[n2]; e3++) E2[i2++] = n2;
|
|
38343
|
+
for (i2 >>= 7; n2 < f2; n2++) for (T2[n2] = i2 << 7, e3 = 0; e3 < 1 << k2[n2] - 7; e3++) E2[256 + i2++] = n2;
|
|
38300
38344
|
for (t2 = 0; t2 <= g; t2++) s22[t2] = 0;
|
|
38301
38345
|
for (e3 = 0; e3 <= 143; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38302
38346
|
for (; e3 <= 255; ) z2[2 * e3 + 1] = 9, e3++, s22[9]++;
|
|
38303
38347
|
for (; e3 <= 279; ) z2[2 * e3 + 1] = 7, e3++, s22[7]++;
|
|
38304
38348
|
for (; e3 <= 287; ) z2[2 * e3 + 1] = 8, e3++, s22[8]++;
|
|
38305
|
-
for (Z(z2,
|
|
38306
|
-
|
|
38307
|
-
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree,
|
|
38349
|
+
for (Z(z2, l + 1, s22), e3 = 0; e3 < f2; e3++) C2[2 * e3 + 1] = 5, C2[2 * e3] = j2(e3, 5);
|
|
38350
|
+
O = new D2(z2, w2, u3 + 1, l, g), B2 = new D2(C2, k2, 0, f2, g), R = new D2(new Array(0), x2, 0, c2, p);
|
|
38351
|
+
})(), q2 = true), e2.l_desc = new F2(e2.dyn_ltree, O), e2.d_desc = new F2(e2.dyn_dtree, B2), e2.bl_desc = new F2(e2.bl_tree, R), e2.bi_buf = 0, e2.bi_valid = 0, W2(e2);
|
|
38308
38352
|
}, r2._tr_stored_block = J2, r2._tr_flush_block = function(e2, t2, r22, n2) {
|
|
38309
38353
|
var i2, s22, a2 = 0;
|
|
38310
38354
|
0 < e2.level ? (2 === e2.strm.data_type && (e2.strm.data_type = (function(e3) {
|
|
38311
38355
|
var t3, r3 = 4093624447;
|
|
38312
38356
|
for (t3 = 0; t3 <= 31; t3++, r3 >>>= 1) if (1 & r3 && 0 !== e3.dyn_ltree[2 * t3]) return o;
|
|
38313
38357
|
if (0 !== e3.dyn_ltree[18] || 0 !== e3.dyn_ltree[20] || 0 !== e3.dyn_ltree[26]) return h2;
|
|
38314
|
-
for (t3 = 32; t3 <
|
|
38358
|
+
for (t3 = 32; t3 < u3; t3++) if (0 !== e3.dyn_ltree[2 * t3]) return h2;
|
|
38315
38359
|
return o;
|
|
38316
38360
|
})(e2)), Y2(e2, e2.l_desc), Y2(e2, e2.d_desc), a2 = (function(e3) {
|
|
38317
38361
|
var t3;
|
|
@@ -38323,7 +38367,7 @@ function requireJszip_min() {
|
|
|
38323
38367
|
V2(e3, e3.dyn_ltree, t3 - 1), V2(e3, e3.dyn_dtree, r3 - 1);
|
|
38324
38368
|
})(e2, e2.l_desc.max_code + 1, e2.d_desc.max_code + 1, a2 + 1), K2(e2, e2.dyn_ltree, e2.dyn_dtree)), W2(e2), n2 && M2(e2);
|
|
38325
38369
|
}, r2._tr_tally = function(e2, t2, r22) {
|
|
38326
|
-
return e2.pending_buf[e2.d_buf + 2 * e2.last_lit] = t2 >>> 8 & 255, e2.pending_buf[e2.d_buf + 2 * e2.last_lit + 1] = 255 & t2, e2.pending_buf[e2.l_buf + e2.last_lit] = 255 & r22, e2.last_lit++, 0 === t2 ? e2.dyn_ltree[2 * r22]++ : (e2.matches++, t2--, e2.dyn_ltree[2 * (A2[r22] +
|
|
38370
|
+
return e2.pending_buf[e2.d_buf + 2 * e2.last_lit] = t2 >>> 8 & 255, e2.pending_buf[e2.d_buf + 2 * e2.last_lit + 1] = 255 & t2, e2.pending_buf[e2.l_buf + e2.last_lit] = 255 & r22, e2.last_lit++, 0 === t2 ? e2.dyn_ltree[2 * r22]++ : (e2.matches++, t2--, e2.dyn_ltree[2 * (A2[r22] + u3 + 1)]++, e2.dyn_dtree[2 * N2(t2)]++), e2.last_lit === e2.lit_bufsize - 1;
|
|
38327
38371
|
}, r2._tr_align = function(e2) {
|
|
38328
38372
|
P2(e2, 2, 3), L2(e2, m2, z2), (function(e3) {
|
|
38329
38373
|
16 === e3.bi_valid ? (U2(e3, e3.bi_buf), e3.bi_buf = 0, e3.bi_valid = 0) : 8 <= e3.bi_valid && (e3.pending_buf[e3.pending++] = 255 & e3.bi_buf, e3.bi_buf >>= 8, e3.bi_valid -= 8);
|
|
@@ -38337,7 +38381,7 @@ function requireJszip_min() {
|
|
|
38337
38381
|
(function(e2) {
|
|
38338
38382
|
!(function(r22, n) {
|
|
38339
38383
|
if (!r22.setImmediate) {
|
|
38340
|
-
var i, s2, t2, a, o = 1, h2 = {},
|
|
38384
|
+
var i, s2, t2, a, o = 1, h2 = {}, u3 = false, l = r22.document, e3 = Object.getPrototypeOf && Object.getPrototypeOf(r22);
|
|
38341
38385
|
e3 = e3 && e3.setTimeout ? e3 : r22, i = "[object process]" === {}.toString.call(r22.process) ? function(e4) {
|
|
38342
38386
|
process$1$1.nextTick(function() {
|
|
38343
38387
|
c2(e4);
|
|
@@ -38355,8 +38399,8 @@ function requireJszip_min() {
|
|
|
38355
38399
|
c2(e4.data);
|
|
38356
38400
|
}, function(e4) {
|
|
38357
38401
|
t2.port2.postMessage(e4);
|
|
38358
|
-
}) :
|
|
38359
|
-
var t3 =
|
|
38402
|
+
}) : l && "onreadystatechange" in l.createElement("script") ? (s2 = l.documentElement, function(e4) {
|
|
38403
|
+
var t3 = l.createElement("script");
|
|
38360
38404
|
t3.onreadystatechange = function() {
|
|
38361
38405
|
c2(e4), t3.onreadystatechange = null, s2.removeChild(t3), t3 = null;
|
|
38362
38406
|
}, s2.appendChild(t3);
|
|
@@ -38373,11 +38417,11 @@ function requireJszip_min() {
|
|
|
38373
38417
|
delete h2[e4];
|
|
38374
38418
|
}
|
|
38375
38419
|
function c2(e4) {
|
|
38376
|
-
if (
|
|
38420
|
+
if (u3) setTimeout(c2, 0, e4);
|
|
38377
38421
|
else {
|
|
38378
38422
|
var t3 = h2[e4];
|
|
38379
38423
|
if (t3) {
|
|
38380
|
-
|
|
38424
|
+
u3 = true;
|
|
38381
38425
|
try {
|
|
38382
38426
|
!(function(e5) {
|
|
38383
38427
|
var t4 = e5.callback, r3 = e5.args;
|
|
@@ -38399,7 +38443,7 @@ function requireJszip_min() {
|
|
|
38399
38443
|
}
|
|
38400
38444
|
})(t3);
|
|
38401
38445
|
} finally {
|
|
38402
|
-
f2(e4),
|
|
38446
|
+
f2(e4), u3 = false;
|
|
38403
38447
|
}
|
|
38404
38448
|
}
|
|
38405
38449
|
}
|
|
@@ -39380,17 +39424,17 @@ function deepActiveElement(doc2) {
|
|
|
39380
39424
|
elt = elt.shadowRoot.activeElement;
|
|
39381
39425
|
return elt;
|
|
39382
39426
|
}
|
|
39383
|
-
function caretFromPoint(doc2,
|
|
39427
|
+
function caretFromPoint(doc2, x2, y2) {
|
|
39384
39428
|
if (doc2.caretPositionFromPoint) {
|
|
39385
39429
|
try {
|
|
39386
|
-
let pos = doc2.caretPositionFromPoint(
|
|
39430
|
+
let pos = doc2.caretPositionFromPoint(x2, y2);
|
|
39387
39431
|
if (pos)
|
|
39388
39432
|
return { node: pos.offsetNode, offset: Math.min(nodeSize(pos.offsetNode), pos.offset) };
|
|
39389
39433
|
} catch (_2) {
|
|
39390
39434
|
}
|
|
39391
39435
|
}
|
|
39392
39436
|
if (doc2.caretRangeFromPoint) {
|
|
39393
|
-
let range2 = doc2.caretRangeFromPoint(
|
|
39437
|
+
let range2 = doc2.caretRangeFromPoint(x2, y2);
|
|
39394
39438
|
if (range2)
|
|
39395
39439
|
return { node: range2.startContainer, offset: Math.min(nodeSize(range2.startContainer), range2.startOffset) };
|
|
39396
39440
|
}
|
|
@@ -39489,8 +39533,8 @@ function scrollRectIntoView(view, rect, startDOM) {
|
|
|
39489
39533
|
function storeScrollPos(view) {
|
|
39490
39534
|
let rect = view.dom.getBoundingClientRect(), startY = Math.max(0, rect.top);
|
|
39491
39535
|
let refDOM, refTop;
|
|
39492
|
-
for (let
|
|
39493
|
-
let dom = view.root.elementFromPoint(
|
|
39536
|
+
for (let x2 = (rect.left + rect.right) / 2, y2 = startY + 1; y2 < Math.min(innerHeight, rect.bottom); y2 += 5) {
|
|
39537
|
+
let dom = view.root.elementFromPoint(x2, y2);
|
|
39494
39538
|
if (!dom || dom == view.dom || !view.dom.contains(dom))
|
|
39495
39539
|
continue;
|
|
39496
39540
|
let localRect = dom.getBoundingClientRect();
|
|
@@ -39786,8 +39830,8 @@ function coordsAtPos(view, pos, side) {
|
|
|
39786
39830
|
function flattenV(rect, left2) {
|
|
39787
39831
|
if (rect.width == 0)
|
|
39788
39832
|
return rect;
|
|
39789
|
-
let
|
|
39790
|
-
return { top: rect.top, bottom: rect.bottom, left:
|
|
39833
|
+
let x2 = left2 ? rect.left : rect.right;
|
|
39834
|
+
return { top: rect.top, bottom: rect.bottom, left: x2, right: x2 };
|
|
39791
39835
|
}
|
|
39792
39836
|
function flattenH(rect, top2) {
|
|
39793
39837
|
if (rect.height == 0)
|
|
@@ -44794,10 +44838,10 @@ const createTimeoutClass = (clearFunction) => class TT {
|
|
|
44794
44838
|
const Timeout = createTimeoutClass(clearTimeout);
|
|
44795
44839
|
const timeout = (timeout2, callback) => new Timeout(setTimeout(callback, timeout2));
|
|
44796
44840
|
const rotr = (w2, shift2) => w2 >>> shift2 | w2 << 32 - shift2;
|
|
44797
|
-
const sum0to256 = (
|
|
44798
|
-
const sum1to256 = (
|
|
44799
|
-
const sigma0to256 = (
|
|
44800
|
-
const sigma1to256 = (
|
|
44841
|
+
const sum0to256 = (x2) => rotr(x2, 2) ^ rotr(x2, 13) ^ rotr(x2, 22);
|
|
44842
|
+
const sum1to256 = (x2) => rotr(x2, 6) ^ rotr(x2, 11) ^ rotr(x2, 25);
|
|
44843
|
+
const sigma0to256 = (x2) => rotr(x2, 7) ^ rotr(x2, 18) ^ x2 >>> 3;
|
|
44844
|
+
const sigma1to256 = (x2) => rotr(x2, 17) ^ rotr(x2, 19) ^ x2 >>> 10;
|
|
44801
44845
|
const K = new Uint32Array([
|
|
44802
44846
|
1116352408,
|
|
44803
44847
|
1899447441,
|
|
@@ -45626,9 +45670,9 @@ const equalAttrs = (pattrs, yattrs) => {
|
|
|
45626
45670
|
let eq2 = keys2.length === (yattrs == null ? 0 : Object.keys(yattrs).filter((key2) => yattrs[key2] !== null).length);
|
|
45627
45671
|
for (let i = 0; i < keys2.length && eq2; i++) {
|
|
45628
45672
|
const key2 = keys2[i];
|
|
45629
|
-
const
|
|
45673
|
+
const l = pattrs[key2];
|
|
45630
45674
|
const r2 = yattrs[key2];
|
|
45631
|
-
eq2 = key2 === "ychange" ||
|
|
45675
|
+
eq2 = key2 === "ychange" || l === r2 || isObject$1(l) && isObject$1(r2) && equalAttrs(l, r2);
|
|
45632
45676
|
}
|
|
45633
45677
|
return eq2;
|
|
45634
45678
|
};
|
|
@@ -50349,6 +50393,7 @@ const getHighlightColor = ({ activeThreadId, threadId, isInternal, editor }) =>
|
|
|
50349
50393
|
const updateYdocDocxData = async (editor, ydoc) => {
|
|
50350
50394
|
ydoc = ydoc || editor.options.ydoc;
|
|
50351
50395
|
if (!ydoc) return;
|
|
50396
|
+
if (!editor || editor.isDestroyed) return;
|
|
50352
50397
|
const metaMap = ydoc.getMap("meta");
|
|
50353
50398
|
const docxValue = metaMap.get("docx");
|
|
50354
50399
|
let docx = [];
|
|
@@ -50793,9 +50838,10 @@ const CommentsPlugin = Extension.create({
|
|
|
50793
50838
|
}
|
|
50794
50839
|
},
|
|
50795
50840
|
view() {
|
|
50796
|
-
let prevDoc;
|
|
50797
|
-
let prevActiveThreadId;
|
|
50841
|
+
let prevDoc = null;
|
|
50842
|
+
let prevActiveThreadId = null;
|
|
50798
50843
|
let prevAllCommentPositions = {};
|
|
50844
|
+
let hasEverEmitted = false;
|
|
50799
50845
|
return {
|
|
50800
50846
|
update(view) {
|
|
50801
50847
|
const { state: state2 } = view;
|
|
@@ -50806,14 +50852,15 @@ const CommentsPlugin = Extension.create({
|
|
|
50806
50852
|
if (meta?.type === "setActiveComment" || meta?.forceUpdate) {
|
|
50807
50853
|
shouldUpdate = true;
|
|
50808
50854
|
}
|
|
50809
|
-
const docChanged = prevDoc
|
|
50855
|
+
const docChanged = !prevDoc || !prevDoc.eq(doc2);
|
|
50810
50856
|
if (docChanged) shouldUpdate = true;
|
|
50811
50857
|
const activeThreadChanged = prevActiveThreadId !== currentActiveThreadId;
|
|
50812
50858
|
if (activeThreadChanged) {
|
|
50813
50859
|
shouldUpdate = true;
|
|
50814
50860
|
prevActiveThreadId = currentActiveThreadId;
|
|
50815
50861
|
}
|
|
50816
|
-
const
|
|
50862
|
+
const isInitialLoad = prevDoc === null;
|
|
50863
|
+
const onlyActiveThreadChanged = !isInitialLoad && !docChanged && activeThreadChanged;
|
|
50817
50864
|
if (!shouldUpdate) return;
|
|
50818
50865
|
prevDoc = doc2;
|
|
50819
50866
|
shouldUpdate = false;
|
|
@@ -50893,8 +50940,11 @@ const CommentsPlugin = Extension.create({
|
|
|
50893
50940
|
}
|
|
50894
50941
|
if (!onlyActiveThreadChanged) {
|
|
50895
50942
|
const positionsChanged = hasPositionsChanged(prevAllCommentPositions, allCommentPositions);
|
|
50896
|
-
|
|
50943
|
+
const hasComments = Object.keys(allCommentPositions).length > 0;
|
|
50944
|
+
const shouldEmitPositions = positionsChanged || !hasEverEmitted && hasComments;
|
|
50945
|
+
if (shouldEmitPositions) {
|
|
50897
50946
|
prevAllCommentPositions = allCommentPositions;
|
|
50947
|
+
hasEverEmitted = true;
|
|
50898
50948
|
editor.emit("comment-positions", { allCommentPositions });
|
|
50899
50949
|
}
|
|
50900
50950
|
}
|
|
@@ -50912,7 +50962,10 @@ const hasPositionsChanged = (prevPositions, currPositions) => {
|
|
|
50912
50962
|
for (const key2 of currKeys) {
|
|
50913
50963
|
const prev = prevPositions[key2];
|
|
50914
50964
|
const curr = currPositions[key2];
|
|
50915
|
-
if (!prev || prev.
|
|
50965
|
+
if (!prev || !prev.bounds || !curr.bounds) {
|
|
50966
|
+
return true;
|
|
50967
|
+
}
|
|
50968
|
+
if (prev.bounds.top !== curr.bounds.top || prev.bounds.left !== curr.bounds.left) {
|
|
50916
50969
|
return true;
|
|
50917
50970
|
}
|
|
50918
50971
|
}
|
|
@@ -51832,6 +51885,16 @@ const Collaboration = Extension.create({
|
|
|
51832
51885
|
});
|
|
51833
51886
|
});
|
|
51834
51887
|
return [syncPlugin];
|
|
51888
|
+
},
|
|
51889
|
+
addCommands() {
|
|
51890
|
+
return {
|
|
51891
|
+
addImageToCollaboration: ({ mediaPath, fileData }) => () => {
|
|
51892
|
+
if (!this.options.ydoc || !mediaPath || !fileData) return false;
|
|
51893
|
+
const mediaMap = this.options.ydoc.getMap("media");
|
|
51894
|
+
mediaMap.set(mediaPath, fileData);
|
|
51895
|
+
return true;
|
|
51896
|
+
}
|
|
51897
|
+
};
|
|
51835
51898
|
}
|
|
51836
51899
|
});
|
|
51837
51900
|
const createSyncPlugin = (ydoc, editor) => {
|
|
@@ -53684,7 +53747,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
53684
53747
|
{ default: remarkStringify },
|
|
53685
53748
|
{ default: remarkGfm }
|
|
53686
53749
|
] = await Promise.all([
|
|
53687
|
-
import("./index-
|
|
53750
|
+
import("./index-CEL3ujoV-BXzhXCnT.es.js"),
|
|
53688
53751
|
import("./index-DRCvimau-Cw339678.es.js"),
|
|
53689
53752
|
import("./index-C_x_N6Uh-DJn8hIEt.es.js"),
|
|
53690
53753
|
import("./index-D_sWOSiG-DE96TaT5.es.js"),
|
|
@@ -53902,7 +53965,7 @@ const _Editor = class _Editor2 extends EventEmitter$1 {
|
|
|
53902
53965
|
* @returns {Object | void} Migration results
|
|
53903
53966
|
*/
|
|
53904
53967
|
processCollaborationMigrations() {
|
|
53905
|
-
console.debug("[checkVersionMigrations] Current editor version", "0.28.
|
|
53968
|
+
console.debug("[checkVersionMigrations] Current editor version", "0.28.4");
|
|
53906
53969
|
if (!this.options.ydoc) return;
|
|
53907
53970
|
const metaMap = this.options.ydoc.getMap("meta");
|
|
53908
53971
|
let docVersion = metaMap.get("version");
|
|
@@ -55771,16 +55834,16 @@ function getCursorPositionRelativeToContainer(view, eventLocation) {
|
|
|
55771
55834
|
const { state: state2, dom } = view;
|
|
55772
55835
|
const { selection } = state2;
|
|
55773
55836
|
const containerRect = dom.getBoundingClientRect();
|
|
55774
|
-
let
|
|
55837
|
+
let x2, y2;
|
|
55775
55838
|
if (typeof eventLocation.clientX === "number" && typeof eventLocation.clientY === "number") {
|
|
55776
|
-
|
|
55839
|
+
x2 = eventLocation.clientX - containerRect.left;
|
|
55777
55840
|
y2 = eventLocation.clientY - containerRect.top;
|
|
55778
55841
|
} else {
|
|
55779
55842
|
const cursorCoords = view.coordsAtPos(selection.from);
|
|
55780
|
-
|
|
55843
|
+
x2 = cursorCoords.left - containerRect.left;
|
|
55781
55844
|
y2 = cursorCoords.top - containerRect.top;
|
|
55782
55845
|
}
|
|
55783
|
-
return { left:
|
|
55846
|
+
return { left: x2, top: y2 };
|
|
55784
55847
|
}
|
|
55785
55848
|
const SlashMenuPluginKey = new PluginKey("slashMenu");
|
|
55786
55849
|
const SlashMenu = Extension.create({
|
|
@@ -56059,17 +56122,17 @@ class StructuredContentViewBase {
|
|
|
56059
56122
|
if (!this.dom || this.contentDOM?.contains(target) || !dragHandle) {
|
|
56060
56123
|
return;
|
|
56061
56124
|
}
|
|
56062
|
-
let
|
|
56125
|
+
let x2 = 0;
|
|
56063
56126
|
let y2 = 0;
|
|
56064
56127
|
if (this.dom !== dragHandle) {
|
|
56065
56128
|
const domBox = this.dom.getBoundingClientRect();
|
|
56066
56129
|
const handleBox = dragHandle.getBoundingClientRect();
|
|
56067
56130
|
const offsetX = event.offsetX ?? event.nativeEvent?.offsetX;
|
|
56068
56131
|
const offsetY = event.offsetY ?? event.nativeEvent?.offsetY;
|
|
56069
|
-
|
|
56132
|
+
x2 = handleBox.x - domBox.x + offsetX;
|
|
56070
56133
|
y2 = handleBox.y - domBox.y + offsetY;
|
|
56071
56134
|
}
|
|
56072
|
-
event.dataTransfer?.setDragImage(this.dom,
|
|
56135
|
+
event.dataTransfer?.setDragImage(this.dom, x2, y2);
|
|
56073
56136
|
const pos = this.getPos();
|
|
56074
56137
|
if (typeof pos !== "number") {
|
|
56075
56138
|
return;
|
|
@@ -64155,24 +64218,24 @@ function parseToRgba(color) {
|
|
|
64155
64218
|
const reducedHexMatch = reducedHexRegex.exec(normalizedColor);
|
|
64156
64219
|
if (reducedHexMatch) {
|
|
64157
64220
|
const arr = Array.from(reducedHexMatch).slice(1);
|
|
64158
|
-
return [...arr.slice(0, 3).map((
|
|
64221
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(r$1(x2, 2), 16)), parseInt(r$1(arr[3] || "f", 2), 16) / 255];
|
|
64159
64222
|
}
|
|
64160
64223
|
const hexMatch = hexRegex$1.exec(normalizedColor);
|
|
64161
64224
|
if (hexMatch) {
|
|
64162
64225
|
const arr = Array.from(hexMatch).slice(1);
|
|
64163
|
-
return [...arr.slice(0, 3).map((
|
|
64226
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(x2, 16)), parseInt(arr[3] || "ff", 16) / 255];
|
|
64164
64227
|
}
|
|
64165
64228
|
const rgbaMatch = rgbaRegex$1.exec(normalizedColor);
|
|
64166
64229
|
if (rgbaMatch) {
|
|
64167
64230
|
const arr = Array.from(rgbaMatch).slice(1);
|
|
64168
|
-
return [...arr.slice(0, 3).map((
|
|
64231
|
+
return [...arr.slice(0, 3).map((x2) => parseInt(x2, 10)), parseFloat(arr[3] || "1")];
|
|
64169
64232
|
}
|
|
64170
64233
|
const hslaMatch = hslaRegex$1.exec(normalizedColor);
|
|
64171
64234
|
if (hslaMatch) {
|
|
64172
|
-
const [h2, s2,
|
|
64235
|
+
const [h2, s2, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);
|
|
64173
64236
|
if (guard(0, 100, s2) !== s2) throw new ColorError$1(color);
|
|
64174
|
-
if (guard(0, 100,
|
|
64175
|
-
return [...hslToRgb(h2, s2,
|
|
64237
|
+
if (guard(0, 100, l) !== l) throw new ColorError$1(color);
|
|
64238
|
+
return [...hslToRgb(h2, s2, l), Number.isNaN(a) ? 1 : a];
|
|
64176
64239
|
}
|
|
64177
64240
|
throw new ColorError$1(color);
|
|
64178
64241
|
}
|
|
@@ -64184,7 +64247,7 @@ function hash$2(str) {
|
|
|
64184
64247
|
}
|
|
64185
64248
|
return (hash2 >>> 0) % 2341;
|
|
64186
64249
|
}
|
|
64187
|
-
const colorToInt = (
|
|
64250
|
+
const colorToInt = (x2) => parseInt(x2.replace(/_/g, ""), 36);
|
|
64188
64251
|
const compressedColorMap = "1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((acc, next) => {
|
|
64189
64252
|
const key2 = colorToInt(next.substring(0, 3));
|
|
64190
64253
|
const hex2 = colorToInt(next.substring(3)).toString(16);
|
|
@@ -64211,12 +64274,12 @@ const roundColor = (color) => {
|
|
|
64211
64274
|
return Math.round(color * 255);
|
|
64212
64275
|
};
|
|
64213
64276
|
const hslToRgb = (hue, saturation, lightness) => {
|
|
64214
|
-
let
|
|
64277
|
+
let l = lightness / 100;
|
|
64215
64278
|
if (saturation === 0) {
|
|
64216
|
-
return [
|
|
64279
|
+
return [l, l, l].map(roundColor);
|
|
64217
64280
|
}
|
|
64218
64281
|
const huePrime = (hue % 360 + 360) % 360 / 60;
|
|
64219
|
-
const chroma = (1 - Math.abs(2 *
|
|
64282
|
+
const chroma = (1 - Math.abs(2 * l - 1)) * (saturation / 100);
|
|
64220
64283
|
const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));
|
|
64221
64284
|
let red = 0;
|
|
64222
64285
|
let green = 0;
|
|
@@ -64240,7 +64303,7 @@ const hslToRgb = (hue, saturation, lightness) => {
|
|
|
64240
64303
|
red = chroma;
|
|
64241
64304
|
blue = secondComponent;
|
|
64242
64305
|
}
|
|
64243
|
-
const lightnessModification =
|
|
64306
|
+
const lightnessModification = l - chroma / 2;
|
|
64244
64307
|
const finalRed = red + lightnessModification;
|
|
64245
64308
|
const finalGreen = green + lightnessModification;
|
|
64246
64309
|
const finalBlue = blue + lightnessModification;
|
|
@@ -64248,8 +64311,8 @@ const hslToRgb = (hue, saturation, lightness) => {
|
|
|
64248
64311
|
};
|
|
64249
64312
|
function toHex(color) {
|
|
64250
64313
|
const [r2, g, b2, a] = parseToRgba(color);
|
|
64251
|
-
let hex2 = (
|
|
64252
|
-
const h2 = guard(0, 255,
|
|
64314
|
+
let hex2 = (x2) => {
|
|
64315
|
+
const h2 = guard(0, 255, x2).toString(16);
|
|
64253
64316
|
return h2.length === 1 ? `0${h2}` : h2;
|
|
64254
64317
|
};
|
|
64255
64318
|
return `#${hex2(r2)}${hex2(g)}${hex2(b2)}${a < 1 ? hex2(Math.round(a * 255)) : ""}`;
|
|
@@ -66353,10 +66416,10 @@ const Image = Node$1.create({
|
|
|
66353
66416
|
let minX = 0;
|
|
66354
66417
|
let minY = 0;
|
|
66355
66418
|
let maxY = 0;
|
|
66356
|
-
attrs.polygon.forEach(([
|
|
66357
|
-
if (floatRight &&
|
|
66358
|
-
if (
|
|
66359
|
-
if (
|
|
66419
|
+
attrs.polygon.forEach(([x2, y2]) => {
|
|
66420
|
+
if (floatRight && x2 < horizontalOffset) horizontalOffset = x2;
|
|
66421
|
+
if (x2 > maxX) maxX = x2;
|
|
66422
|
+
if (x2 < minX) minX = x2;
|
|
66360
66423
|
if (y2 > maxY) maxY = y2;
|
|
66361
66424
|
if (y2 < minY) minY = y2;
|
|
66362
66425
|
});
|
|
@@ -66365,7 +66428,7 @@ const Image = Node$1.create({
|
|
|
66365
66428
|
const scaleWidth = Math.min(1, size2.width / originalWidth);
|
|
66366
66429
|
const scaleHeight = Math.min(1, size2.height / originalHeight);
|
|
66367
66430
|
const verticalOffset = Math.max(0, marginOffset.top);
|
|
66368
|
-
const points = attrs.polygon.map(([
|
|
66431
|
+
const points = attrs.polygon.map(([x2, y2]) => `${horizontalOffset + x2 * scaleWidth}px ${verticalOffset + y2 * scaleHeight}px`).join(", ");
|
|
66369
66432
|
style2 += `shape-outside: polygon(${points});`;
|
|
66370
66433
|
}
|
|
66371
66434
|
break;
|
|
@@ -69730,42 +69793,42 @@ var M = ["fill", "stroke", "strokeWidth", "fillRule", "clipRule"], d = s;
|
|
|
69730
69793
|
function r(t) {
|
|
69731
69794
|
if (!t) return null;
|
|
69732
69795
|
let e = {};
|
|
69733
|
-
return M.forEach((
|
|
69734
|
-
let L2 = t[
|
|
69796
|
+
return M.forEach((l) => {
|
|
69797
|
+
let L2 = t[l];
|
|
69735
69798
|
if (L2 !== void 0)
|
|
69736
|
-
if (
|
|
69799
|
+
if (l === "strokeWidth") {
|
|
69737
69800
|
if (typeof L2 == "number") e.strokeWidth = L2;
|
|
69738
69801
|
else if (typeof L2 == "string") {
|
|
69739
69802
|
let o = Number(L2);
|
|
69740
69803
|
Number.isFinite(o) && (e.strokeWidth = o);
|
|
69741
69804
|
}
|
|
69742
|
-
} else typeof L2 == "string" && (e[
|
|
69805
|
+
} else typeof L2 == "string" && (e[l] = L2);
|
|
69743
69806
|
}), Object.keys(e).length ? e : null;
|
|
69744
69807
|
}
|
|
69745
69808
|
function A(t, e) {
|
|
69746
|
-
let
|
|
69747
|
-
if (!e) return
|
|
69809
|
+
let l = t.map((o) => ({ ...o }));
|
|
69810
|
+
if (!e) return l;
|
|
69748
69811
|
let L2 = (o, i) => typeof e == "function" ? r(e(o, i)) : Array.isArray(e) ? r(e[i]) : r(e);
|
|
69749
|
-
return
|
|
69812
|
+
return l.map((o, i) => {
|
|
69750
69813
|
let n = L2(o, i);
|
|
69751
69814
|
return n ? { ...o, ...n } : o;
|
|
69752
69815
|
});
|
|
69753
69816
|
}
|
|
69754
69817
|
function f(t) {
|
|
69755
|
-
let { preset: e, styleOverrides:
|
|
69818
|
+
let { preset: e, styleOverrides: l } = t;
|
|
69756
69819
|
if (!e) throw new Error("createPresetShape requires a preset name.");
|
|
69757
69820
|
let L2 = d[e];
|
|
69758
69821
|
if (!L2) throw new Error(`Unknown preset shape: ${e}`);
|
|
69759
|
-
return { preset: e, viewBox: L2.viewBox, paths: A(L2.paths,
|
|
69822
|
+
return { preset: e, viewBox: L2.viewBox, paths: A(L2.paths, l) };
|
|
69760
69823
|
}
|
|
69761
69824
|
function k(t) {
|
|
69762
|
-
let e = f(t),
|
|
69825
|
+
let e = f(t), l = e.paths.map((L2) => {
|
|
69763
69826
|
let o = [`d="${L2.d}"`];
|
|
69764
69827
|
return L2.fill !== void 0 && o.push(`fill="${L2.fill}"`), L2.stroke !== void 0 && o.push(`stroke="${L2.stroke}"`), L2.strokeWidth !== void 0 && o.push(`stroke-width="${L2.strokeWidth}"`), L2.fillRule !== void 0 && o.push(`fill-rule="${L2.fillRule}"`), L2.clipRule !== void 0 && o.push(`clip-rule="${L2.clipRule}"`), ` <path ${o.join(" ")} />`;
|
|
69765
69828
|
}).join(`
|
|
69766
69829
|
`);
|
|
69767
69830
|
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="${e.viewBox}" preserveAspectRatio="none">
|
|
69768
|
-
${
|
|
69831
|
+
${l}
|
|
69769
69832
|
</svg>`;
|
|
69770
69833
|
}
|
|
69771
69834
|
class VectorShapeView {
|
|
@@ -71499,7 +71562,7 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
|
|
|
71499
71562
|
}
|
|
71500
71563
|
var _ref = isElement$2(element) ? getWindow$1(element) : window, visualViewport = _ref.visualViewport;
|
|
71501
71564
|
var addVisualOffsets = !isLayoutViewport() && isFixedStrategy;
|
|
71502
|
-
var
|
|
71565
|
+
var x2 = (clientRect2.left + (addVisualOffsets && visualViewport ? visualViewport.offsetLeft : 0)) / scaleX;
|
|
71503
71566
|
var y2 = (clientRect2.top + (addVisualOffsets && visualViewport ? visualViewport.offsetTop : 0)) / scaleY;
|
|
71504
71567
|
var width = clientRect2.width / scaleX;
|
|
71505
71568
|
var height = clientRect2.height / scaleY;
|
|
@@ -71507,10 +71570,10 @@ function getBoundingClientRect$1(element, includeScale, isFixedStrategy) {
|
|
|
71507
71570
|
width,
|
|
71508
71571
|
height,
|
|
71509
71572
|
top: y2,
|
|
71510
|
-
right:
|
|
71573
|
+
right: x2 + width,
|
|
71511
71574
|
bottom: y2 + height,
|
|
71512
|
-
left:
|
|
71513
|
-
x,
|
|
71575
|
+
left: x2,
|
|
71576
|
+
x: x2,
|
|
71514
71577
|
y: y2
|
|
71515
71578
|
};
|
|
71516
71579
|
}
|
|
@@ -71711,25 +71774,25 @@ var unsetSides = {
|
|
|
71711
71774
|
left: "auto"
|
|
71712
71775
|
};
|
|
71713
71776
|
function roundOffsetsByDPR(_ref, win) {
|
|
71714
|
-
var
|
|
71777
|
+
var x2 = _ref.x, y2 = _ref.y;
|
|
71715
71778
|
var dpr = win.devicePixelRatio || 1;
|
|
71716
71779
|
return {
|
|
71717
|
-
x: round$1(
|
|
71780
|
+
x: round$1(x2 * dpr) / dpr || 0,
|
|
71718
71781
|
y: round$1(y2 * dpr) / dpr || 0
|
|
71719
71782
|
};
|
|
71720
71783
|
}
|
|
71721
71784
|
function mapToStyles(_ref2) {
|
|
71722
71785
|
var _Object$assign2;
|
|
71723
71786
|
var popper2 = _ref2.popper, popperRect = _ref2.popperRect, placement = _ref2.placement, variation = _ref2.variation, offsets = _ref2.offsets, position = _ref2.position, gpuAcceleration = _ref2.gpuAcceleration, adaptive = _ref2.adaptive, roundOffsets = _ref2.roundOffsets, isFixed = _ref2.isFixed;
|
|
71724
|
-
var _offsets$x = offsets.x,
|
|
71787
|
+
var _offsets$x = offsets.x, x2 = _offsets$x === void 0 ? 0 : _offsets$x, _offsets$y = offsets.y, y2 = _offsets$y === void 0 ? 0 : _offsets$y;
|
|
71725
71788
|
var _ref3 = typeof roundOffsets === "function" ? roundOffsets({
|
|
71726
|
-
x,
|
|
71789
|
+
x: x2,
|
|
71727
71790
|
y: y2
|
|
71728
71791
|
}) : {
|
|
71729
|
-
x,
|
|
71792
|
+
x: x2,
|
|
71730
71793
|
y: y2
|
|
71731
71794
|
};
|
|
71732
|
-
|
|
71795
|
+
x2 = _ref3.x;
|
|
71733
71796
|
y2 = _ref3.y;
|
|
71734
71797
|
var hasX = offsets.hasOwnProperty("x");
|
|
71735
71798
|
var hasY = offsets.hasOwnProperty("y");
|
|
@@ -71763,27 +71826,27 @@ function mapToStyles(_ref2) {
|
|
|
71763
71826
|
// $FlowFixMe[prop-missing]
|
|
71764
71827
|
offsetParent[widthProp]
|
|
71765
71828
|
);
|
|
71766
|
-
|
|
71767
|
-
|
|
71829
|
+
x2 -= offsetX - popperRect.width;
|
|
71830
|
+
x2 *= gpuAcceleration ? 1 : -1;
|
|
71768
71831
|
}
|
|
71769
71832
|
}
|
|
71770
71833
|
var commonStyles = Object.assign({
|
|
71771
71834
|
position
|
|
71772
71835
|
}, adaptive && unsetSides);
|
|
71773
71836
|
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
|
71774
|
-
x,
|
|
71837
|
+
x: x2,
|
|
71775
71838
|
y: y2
|
|
71776
71839
|
}, getWindow$1(popper2)) : {
|
|
71777
|
-
x,
|
|
71840
|
+
x: x2,
|
|
71778
71841
|
y: y2
|
|
71779
71842
|
};
|
|
71780
|
-
|
|
71843
|
+
x2 = _ref4.x;
|
|
71781
71844
|
y2 = _ref4.y;
|
|
71782
71845
|
if (gpuAcceleration) {
|
|
71783
71846
|
var _Object$assign;
|
|
71784
|
-
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" +
|
|
71847
|
+
return Object.assign({}, commonStyles, (_Object$assign = {}, _Object$assign[sideY] = hasY ? "0" : "", _Object$assign[sideX] = hasX ? "0" : "", _Object$assign.transform = (win.devicePixelRatio || 1) <= 1 ? "translate(" + x2 + "px, " + y2 + "px)" : "translate3d(" + x2 + "px, " + y2 + "px, 0)", _Object$assign));
|
|
71785
71848
|
}
|
|
71786
|
-
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ?
|
|
71849
|
+
return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y2 + "px" : "", _Object$assign2[sideX] = hasX ? x2 + "px" : "", _Object$assign2.transform = "", _Object$assign2));
|
|
71787
71850
|
}
|
|
71788
71851
|
function computeStyles(_ref5) {
|
|
71789
71852
|
var state2 = _ref5.state, options = _ref5.options;
|
|
@@ -71897,21 +71960,21 @@ function getViewportRect$1(element, strategy) {
|
|
|
71897
71960
|
var visualViewport = win.visualViewport;
|
|
71898
71961
|
var width = html.clientWidth;
|
|
71899
71962
|
var height = html.clientHeight;
|
|
71900
|
-
var
|
|
71963
|
+
var x2 = 0;
|
|
71901
71964
|
var y2 = 0;
|
|
71902
71965
|
if (visualViewport) {
|
|
71903
71966
|
width = visualViewport.width;
|
|
71904
71967
|
height = visualViewport.height;
|
|
71905
71968
|
var layoutViewport = isLayoutViewport();
|
|
71906
71969
|
if (layoutViewport || !layoutViewport && strategy === "fixed") {
|
|
71907
|
-
|
|
71970
|
+
x2 = visualViewport.offsetLeft;
|
|
71908
71971
|
y2 = visualViewport.offsetTop;
|
|
71909
71972
|
}
|
|
71910
71973
|
}
|
|
71911
71974
|
return {
|
|
71912
71975
|
width,
|
|
71913
71976
|
height,
|
|
71914
|
-
x:
|
|
71977
|
+
x: x2 + getWindowScrollBarX$1(element),
|
|
71915
71978
|
y: y2
|
|
71916
71979
|
};
|
|
71917
71980
|
}
|
|
@@ -71922,15 +71985,15 @@ function getDocumentRect$1(element) {
|
|
|
71922
71985
|
var body = (_element$ownerDocumen = element.ownerDocument) == null ? void 0 : _element$ownerDocumen.body;
|
|
71923
71986
|
var width = max$1(html.scrollWidth, html.clientWidth, body ? body.scrollWidth : 0, body ? body.clientWidth : 0);
|
|
71924
71987
|
var height = max$1(html.scrollHeight, html.clientHeight, body ? body.scrollHeight : 0, body ? body.clientHeight : 0);
|
|
71925
|
-
var
|
|
71988
|
+
var x2 = -winScroll.scrollLeft + getWindowScrollBarX$1(element);
|
|
71926
71989
|
var y2 = -winScroll.scrollTop;
|
|
71927
71990
|
if (getComputedStyle$2(body || html).direction === "rtl") {
|
|
71928
|
-
|
|
71991
|
+
x2 += max$1(html.clientWidth, body ? body.clientWidth : 0) - width;
|
|
71929
71992
|
}
|
|
71930
71993
|
return {
|
|
71931
71994
|
width,
|
|
71932
71995
|
height,
|
|
71933
|
-
x,
|
|
71996
|
+
x: x2,
|
|
71934
71997
|
y: y2
|
|
71935
71998
|
};
|
|
71936
71999
|
}
|
|
@@ -72307,9 +72370,9 @@ function offset(_ref2) {
|
|
|
72307
72370
|
acc[placement] = distanceAndSkiddingToXY(placement, state2.rects, offset2);
|
|
72308
72371
|
return acc;
|
|
72309
72372
|
}, {});
|
|
72310
|
-
var _data$state$placement = data[state2.placement],
|
|
72373
|
+
var _data$state$placement = data[state2.placement], x2 = _data$state$placement.x, y2 = _data$state$placement.y;
|
|
72311
72374
|
if (state2.modifiersData.popperOffsets != null) {
|
|
72312
|
-
state2.modifiersData.popperOffsets.x +=
|
|
72375
|
+
state2.modifiersData.popperOffsets.x += x2;
|
|
72313
72376
|
state2.modifiersData.popperOffsets.y += y2;
|
|
72314
72377
|
}
|
|
72315
72378
|
state2.modifiersData[name] = data;
|
|
@@ -74259,7 +74322,7 @@ function getPaddingObject(padding) {
|
|
|
74259
74322
|
}
|
|
74260
74323
|
function rectToClientRect(rect) {
|
|
74261
74324
|
const {
|
|
74262
|
-
x,
|
|
74325
|
+
x: x2,
|
|
74263
74326
|
y: y2,
|
|
74264
74327
|
width,
|
|
74265
74328
|
height
|
|
@@ -74268,10 +74331,10 @@ function rectToClientRect(rect) {
|
|
|
74268
74331
|
width,
|
|
74269
74332
|
height,
|
|
74270
74333
|
top: y2,
|
|
74271
|
-
left:
|
|
74272
|
-
right:
|
|
74334
|
+
left: x2,
|
|
74335
|
+
right: x2 + width,
|
|
74273
74336
|
bottom: y2 + height,
|
|
74274
|
-
x,
|
|
74337
|
+
x: x2,
|
|
74275
74338
|
y: y2
|
|
74276
74339
|
};
|
|
74277
74340
|
}
|
|
@@ -74345,7 +74408,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
74345
74408
|
strategy
|
|
74346
74409
|
});
|
|
74347
74410
|
let {
|
|
74348
|
-
x,
|
|
74411
|
+
x: x2,
|
|
74349
74412
|
y: y2
|
|
74350
74413
|
} = computeCoordsFromPlacement(rects, placement, rtl);
|
|
74351
74414
|
let statefulPlacement = placement;
|
|
@@ -74362,7 +74425,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
74362
74425
|
data,
|
|
74363
74426
|
reset
|
|
74364
74427
|
} = await fn2({
|
|
74365
|
-
x,
|
|
74428
|
+
x: x2,
|
|
74366
74429
|
y: y2,
|
|
74367
74430
|
initialPlacement: placement,
|
|
74368
74431
|
placement: statefulPlacement,
|
|
@@ -74375,7 +74438,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
74375
74438
|
floating
|
|
74376
74439
|
}
|
|
74377
74440
|
});
|
|
74378
|
-
|
|
74441
|
+
x2 = nextX != null ? nextX : x2;
|
|
74379
74442
|
y2 = nextY != null ? nextY : y2;
|
|
74380
74443
|
middlewareData = {
|
|
74381
74444
|
...middlewareData,
|
|
@@ -74398,7 +74461,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
74398
74461
|
}) : reset.rects;
|
|
74399
74462
|
}
|
|
74400
74463
|
({
|
|
74401
|
-
x,
|
|
74464
|
+
x: x2,
|
|
74402
74465
|
y: y2
|
|
74403
74466
|
} = computeCoordsFromPlacement(rects, statefulPlacement, rtl));
|
|
74404
74467
|
}
|
|
@@ -74406,7 +74469,7 @@ const computePosition$1 = async (reference2, floating, config2) => {
|
|
|
74406
74469
|
}
|
|
74407
74470
|
}
|
|
74408
74471
|
return {
|
|
74409
|
-
x,
|
|
74472
|
+
x: x2,
|
|
74410
74473
|
y: y2,
|
|
74411
74474
|
placement: statefulPlacement,
|
|
74412
74475
|
strategy,
|
|
@@ -74419,7 +74482,7 @@ async function detectOverflow(state2, options) {
|
|
|
74419
74482
|
options = {};
|
|
74420
74483
|
}
|
|
74421
74484
|
const {
|
|
74422
|
-
x,
|
|
74485
|
+
x: x2,
|
|
74423
74486
|
y: y2,
|
|
74424
74487
|
platform: platform2,
|
|
74425
74488
|
rects,
|
|
@@ -74443,7 +74506,7 @@ async function detectOverflow(state2, options) {
|
|
|
74443
74506
|
strategy
|
|
74444
74507
|
}));
|
|
74445
74508
|
const rect = elementContext === "floating" ? {
|
|
74446
|
-
x,
|
|
74509
|
+
x: x2,
|
|
74447
74510
|
y: y2,
|
|
74448
74511
|
width: rects.floating.width,
|
|
74449
74512
|
height: rects.floating.height
|
|
@@ -74712,16 +74775,16 @@ function getScale(element) {
|
|
|
74712
74775
|
height,
|
|
74713
74776
|
$: $2
|
|
74714
74777
|
} = getCssDimensions(domElement);
|
|
74715
|
-
let
|
|
74778
|
+
let x2 = ($2 ? round(rect.width) : rect.width) / width;
|
|
74716
74779
|
let y2 = ($2 ? round(rect.height) : rect.height) / height;
|
|
74717
|
-
if (!
|
|
74718
|
-
|
|
74780
|
+
if (!x2 || !Number.isFinite(x2)) {
|
|
74781
|
+
x2 = 1;
|
|
74719
74782
|
}
|
|
74720
74783
|
if (!y2 || !Number.isFinite(y2)) {
|
|
74721
74784
|
y2 = 1;
|
|
74722
74785
|
}
|
|
74723
74786
|
return {
|
|
74724
|
-
x,
|
|
74787
|
+
x: x2,
|
|
74725
74788
|
y: y2
|
|
74726
74789
|
};
|
|
74727
74790
|
}
|
|
@@ -74765,7 +74828,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
74765
74828
|
}
|
|
74766
74829
|
}
|
|
74767
74830
|
const visualOffsets = shouldAddVisualOffsets(domElement, isFixedStrategy, offsetParent) ? getVisualOffsets(domElement) : createCoords(0);
|
|
74768
|
-
let
|
|
74831
|
+
let x2 = (clientRect2.left + visualOffsets.x) / scale.x;
|
|
74769
74832
|
let y2 = (clientRect2.top + visualOffsets.y) / scale.y;
|
|
74770
74833
|
let width = clientRect2.width / scale.x;
|
|
74771
74834
|
let height = clientRect2.height / scale.y;
|
|
@@ -74780,11 +74843,11 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
74780
74843
|
const css = getComputedStyle$1(currentIFrame);
|
|
74781
74844
|
const left2 = iframeRect.left + (currentIFrame.clientLeft + parseFloat(css.paddingLeft)) * iframeScale.x;
|
|
74782
74845
|
const top2 = iframeRect.top + (currentIFrame.clientTop + parseFloat(css.paddingTop)) * iframeScale.y;
|
|
74783
|
-
|
|
74846
|
+
x2 *= iframeScale.x;
|
|
74784
74847
|
y2 *= iframeScale.y;
|
|
74785
74848
|
width *= iframeScale.x;
|
|
74786
74849
|
height *= iframeScale.y;
|
|
74787
|
-
|
|
74850
|
+
x2 += left2;
|
|
74788
74851
|
y2 += top2;
|
|
74789
74852
|
currentWin = getWindow(currentIFrame);
|
|
74790
74853
|
currentIFrame = getFrameElement(currentWin);
|
|
@@ -74793,7 +74856,7 @@ function getBoundingClientRect(element, includeScale, isFixedStrategy, offsetPar
|
|
|
74793
74856
|
return rectToClientRect({
|
|
74794
74857
|
width,
|
|
74795
74858
|
height,
|
|
74796
|
-
x,
|
|
74859
|
+
x: x2,
|
|
74797
74860
|
y: y2
|
|
74798
74861
|
});
|
|
74799
74862
|
}
|
|
@@ -74806,10 +74869,10 @@ function getWindowScrollBarX(element, rect) {
|
|
|
74806
74869
|
}
|
|
74807
74870
|
function getHTMLOffset(documentElement, scroll) {
|
|
74808
74871
|
const htmlRect = documentElement.getBoundingClientRect();
|
|
74809
|
-
const
|
|
74872
|
+
const x2 = htmlRect.left + scroll.scrollLeft - getWindowScrollBarX(documentElement, htmlRect);
|
|
74810
74873
|
const y2 = htmlRect.top + scroll.scrollTop;
|
|
74811
74874
|
return {
|
|
74812
|
-
x,
|
|
74875
|
+
x: x2,
|
|
74813
74876
|
y: y2
|
|
74814
74877
|
};
|
|
74815
74878
|
}
|
|
@@ -74861,15 +74924,15 @@ function getDocumentRect(element) {
|
|
|
74861
74924
|
const body = element.ownerDocument.body;
|
|
74862
74925
|
const width = max(html.scrollWidth, html.clientWidth, body.scrollWidth, body.clientWidth);
|
|
74863
74926
|
const height = max(html.scrollHeight, html.clientHeight, body.scrollHeight, body.clientHeight);
|
|
74864
|
-
let
|
|
74927
|
+
let x2 = -scroll.scrollLeft + getWindowScrollBarX(element);
|
|
74865
74928
|
const y2 = -scroll.scrollTop;
|
|
74866
74929
|
if (getComputedStyle$1(body).direction === "rtl") {
|
|
74867
|
-
|
|
74930
|
+
x2 += max(html.clientWidth, body.clientWidth) - width;
|
|
74868
74931
|
}
|
|
74869
74932
|
return {
|
|
74870
74933
|
width,
|
|
74871
74934
|
height,
|
|
74872
|
-
x,
|
|
74935
|
+
x: x2,
|
|
74873
74936
|
y: y2
|
|
74874
74937
|
};
|
|
74875
74938
|
}
|
|
@@ -74880,14 +74943,14 @@ function getViewportRect(element, strategy) {
|
|
|
74880
74943
|
const visualViewport = win.visualViewport;
|
|
74881
74944
|
let width = html.clientWidth;
|
|
74882
74945
|
let height = html.clientHeight;
|
|
74883
|
-
let
|
|
74946
|
+
let x2 = 0;
|
|
74884
74947
|
let y2 = 0;
|
|
74885
74948
|
if (visualViewport) {
|
|
74886
74949
|
width = visualViewport.width;
|
|
74887
74950
|
height = visualViewport.height;
|
|
74888
74951
|
const visualViewportBased = isWebKit();
|
|
74889
74952
|
if (!visualViewportBased || visualViewportBased && strategy === "fixed") {
|
|
74890
|
-
|
|
74953
|
+
x2 = visualViewport.offsetLeft;
|
|
74891
74954
|
y2 = visualViewport.offsetTop;
|
|
74892
74955
|
}
|
|
74893
74956
|
}
|
|
@@ -74907,7 +74970,7 @@ function getViewportRect(element, strategy) {
|
|
|
74907
74970
|
return {
|
|
74908
74971
|
width,
|
|
74909
74972
|
height,
|
|
74910
|
-
x,
|
|
74973
|
+
x: x2,
|
|
74911
74974
|
y: y2
|
|
74912
74975
|
};
|
|
74913
74976
|
}
|
|
@@ -74919,12 +74982,12 @@ function getInnerBoundingClientRect(element, strategy) {
|
|
|
74919
74982
|
const scale = isHTMLElement$2(element) ? getScale(element) : createCoords(1);
|
|
74920
74983
|
const width = element.clientWidth * scale.x;
|
|
74921
74984
|
const height = element.clientHeight * scale.y;
|
|
74922
|
-
const
|
|
74985
|
+
const x2 = left2 * scale.x;
|
|
74923
74986
|
const y2 = top2 * scale.y;
|
|
74924
74987
|
return {
|
|
74925
74988
|
width,
|
|
74926
74989
|
height,
|
|
74927
|
-
x,
|
|
74990
|
+
x: x2,
|
|
74928
74991
|
y: y2
|
|
74929
74992
|
};
|
|
74930
74993
|
}
|
|
@@ -75044,10 +75107,10 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
75044
75107
|
setLeftRTLScrollbarOffset();
|
|
75045
75108
|
}
|
|
75046
75109
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
75047
|
-
const
|
|
75110
|
+
const x2 = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
75048
75111
|
const y2 = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
75049
75112
|
return {
|
|
75050
|
-
x,
|
|
75113
|
+
x: x2,
|
|
75051
75114
|
y: y2,
|
|
75052
75115
|
width: rect.width,
|
|
75053
75116
|
height: rect.height
|
|
@@ -75909,22 +75972,22 @@ function createFloatingSeparator(separator, editor) {
|
|
|
75909
75972
|
const rect = elements.reference.getBoundingClientRect();
|
|
75910
75973
|
const containerRect = editorElement.getBoundingClientRect();
|
|
75911
75974
|
const scaleFactor = getScaleFactor(editorElement);
|
|
75912
|
-
const
|
|
75975
|
+
const x2 = Math.round((rect.left - containerRect.left) / scaleFactor);
|
|
75913
75976
|
const y2 = Math.round((rect.top - containerRect.top) / scaleFactor);
|
|
75914
75977
|
const width = Math.round(rect.width / scaleFactor);
|
|
75915
75978
|
const height = Math.round(rect.height / scaleFactor);
|
|
75916
75979
|
return {
|
|
75917
|
-
x,
|
|
75980
|
+
x: x2,
|
|
75918
75981
|
y: y2,
|
|
75919
75982
|
data: { width, height }
|
|
75920
75983
|
};
|
|
75921
75984
|
}
|
|
75922
75985
|
}
|
|
75923
75986
|
]
|
|
75924
|
-
}).then(({ x, y: y2, middlewareData }) => {
|
|
75987
|
+
}).then(({ x: x2, y: y2, middlewareData }) => {
|
|
75925
75988
|
Object.assign(floatingSeparator.style, {
|
|
75926
75989
|
top: `${y2}px`,
|
|
75927
|
-
left: `${
|
|
75990
|
+
left: `${x2}px`,
|
|
75928
75991
|
width: `${middlewareData.copy.width}px`,
|
|
75929
75992
|
height: `${middlewareData.copy.height}px`,
|
|
75930
75993
|
visibility: middlewareData.hide?.referenceHidden ? "hidden" : "visible"
|
|
@@ -78017,11 +78080,11 @@ function hsv2rgb(h2, s2, v2) {
|
|
|
78017
78080
|
let f2 = (n, k2 = (n + h2 / 60) % 6) => v2 - v2 * s2 * Math.max(Math.min(k2, 4 - k2, 1), 0);
|
|
78018
78081
|
return [f2(5) * 255, f2(3) * 255, f2(1) * 255];
|
|
78019
78082
|
}
|
|
78020
|
-
function hsl2rgb(h2, s2,
|
|
78083
|
+
function hsl2rgb(h2, s2, l) {
|
|
78021
78084
|
s2 /= 100;
|
|
78022
|
-
|
|
78023
|
-
let a = s2 * Math.min(
|
|
78024
|
-
let f2 = (n, k2 = (n + h2 / 30) % 12) =>
|
|
78085
|
+
l /= 100;
|
|
78086
|
+
let a = s2 * Math.min(l, 1 - l);
|
|
78087
|
+
let f2 = (n, k2 = (n + h2 / 30) % 12) => l - a * Math.max(Math.min(k2 - 3, 9 - k2, 1), -1);
|
|
78025
78088
|
return [f2(0) * 255, f2(8) * 255, f2(4) * 255];
|
|
78026
78089
|
}
|
|
78027
78090
|
const prefix = "^\\s*";
|
|
@@ -78117,8 +78180,8 @@ function rgba(color) {
|
|
|
78117
78180
|
} else if (color in colors) {
|
|
78118
78181
|
return rgba(colors[color]);
|
|
78119
78182
|
} else if (hslRegex.test(color) || hslaRegex.test(color)) {
|
|
78120
|
-
const [h2, s2,
|
|
78121
|
-
return [...hsl2rgb(h2, s2,
|
|
78183
|
+
const [h2, s2, l, a] = hsla(color);
|
|
78184
|
+
return [...hsl2rgb(h2, s2, l), a];
|
|
78122
78185
|
} else if (hsvRegex.test(color) || hsvaRegex.test(color)) {
|
|
78123
78186
|
const [h2, s2, v2, a] = hsva(color);
|
|
78124
78187
|
return [...hsv2rgb(h2, s2, v2), a];
|
|
@@ -78917,14 +78980,14 @@ function ensureViewBoundingRect() {
|
|
|
78917
78980
|
}
|
|
78918
78981
|
return viewMeasurer.getBoundingClientRect();
|
|
78919
78982
|
}
|
|
78920
|
-
function getPointRect(
|
|
78983
|
+
function getPointRect(x2, y2) {
|
|
78921
78984
|
const viewRect = ensureViewBoundingRect();
|
|
78922
78985
|
return {
|
|
78923
78986
|
top: y2,
|
|
78924
|
-
left:
|
|
78987
|
+
left: x2,
|
|
78925
78988
|
height: 0,
|
|
78926
78989
|
width: 0,
|
|
78927
|
-
right: viewRect.width -
|
|
78990
|
+
right: viewRect.width - x2,
|
|
78928
78991
|
bottom: viewRect.height - y2
|
|
78929
78992
|
};
|
|
78930
78993
|
}
|
|
@@ -79762,8 +79825,8 @@ const VFollower = defineComponent({
|
|
|
79762
79825
|
if (follower === null)
|
|
79763
79826
|
return;
|
|
79764
79827
|
const target = VBinder.targetRef;
|
|
79765
|
-
const { x, y: y2, overlap } = props;
|
|
79766
|
-
const targetRect =
|
|
79828
|
+
const { x: x2, y: y2, overlap } = props;
|
|
79829
|
+
const targetRect = x2 !== void 0 && y2 !== void 0 ? getPointRect(x2, y2) : getRect(target);
|
|
79767
79830
|
follower.style.setProperty("--v-target-width", `${Math.round(targetRect.width)}px`);
|
|
79768
79831
|
follower.style.setProperty("--v-target-height", `${Math.round(targetRect.height)}px`);
|
|
79769
79832
|
const { width, minWidth, placement, internalShift, flip: flip2 } = props;
|
|
@@ -79933,8 +79996,8 @@ var ResizeObserverSize = /* @__PURE__ */ (function() {
|
|
|
79933
79996
|
return ResizeObserverSize2;
|
|
79934
79997
|
})();
|
|
79935
79998
|
var DOMRectReadOnly = (function() {
|
|
79936
|
-
function DOMRectReadOnly2(
|
|
79937
|
-
this.x =
|
|
79999
|
+
function DOMRectReadOnly2(x2, y2, width, height) {
|
|
80000
|
+
this.x = x2;
|
|
79938
80001
|
this.y = y2;
|
|
79939
80002
|
this.width = width;
|
|
79940
80003
|
this.height = height;
|
|
@@ -79945,8 +80008,8 @@ var DOMRectReadOnly = (function() {
|
|
|
79945
80008
|
return freeze(this);
|
|
79946
80009
|
}
|
|
79947
80010
|
DOMRectReadOnly2.prototype.toJSON = function() {
|
|
79948
|
-
var _a2 = this,
|
|
79949
|
-
return { x, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
80011
|
+
var _a2 = this, x2 = _a2.x, y2 = _a2.y, top2 = _a2.top, right2 = _a2.right, bottom2 = _a2.bottom, left2 = _a2.left, width = _a2.width, height = _a2.height;
|
|
80012
|
+
return { x: x2, y: y2, top: top2, right: right2, bottom: bottom2, left: left2, width, height };
|
|
79950
80013
|
};
|
|
79951
80014
|
DOMRectReadOnly2.fromRect = function(rectangle) {
|
|
79952
80015
|
return new DOMRectReadOnly2(rectangle.x, rectangle.y, rectangle.width, rectangle.height);
|
|
@@ -83780,10 +83843,10 @@ function getFirstAvailableNode(nodes) {
|
|
|
83780
83843
|
}
|
|
83781
83844
|
function rawGetNext(node, loop) {
|
|
83782
83845
|
const sibs = node.siblings;
|
|
83783
|
-
const
|
|
83846
|
+
const l = sibs.length;
|
|
83784
83847
|
const { index: index2 } = node;
|
|
83785
83848
|
if (loop) {
|
|
83786
|
-
return sibs[(index2 + 1) %
|
|
83849
|
+
return sibs[(index2 + 1) % l];
|
|
83787
83850
|
} else {
|
|
83788
83851
|
if (index2 === sibs.length - 1)
|
|
83789
83852
|
return null;
|
|
@@ -83839,10 +83902,10 @@ function move(fromNode, dir, { loop = false, includeDisabled = false } = {}) {
|
|
|
83839
83902
|
}
|
|
83840
83903
|
function rawGetPrev(node, loop) {
|
|
83841
83904
|
const sibs = node.siblings;
|
|
83842
|
-
const
|
|
83905
|
+
const l = sibs.length;
|
|
83843
83906
|
const { index: index2 } = node;
|
|
83844
83907
|
if (loop) {
|
|
83845
|
-
return sibs[(index2 - 1 +
|
|
83908
|
+
return sibs[(index2 - 1 + l) % l];
|
|
83846
83909
|
} else {
|
|
83847
83910
|
if (index2 === 0)
|
|
83848
83911
|
return null;
|
|
@@ -87566,7 +87629,7 @@ function requireEventemitter3() {
|
|
|
87566
87629
|
var evt = prefix2 ? prefix2 + event : event, handlers2 = this._events[evt];
|
|
87567
87630
|
if (!handlers2) return [];
|
|
87568
87631
|
if (handlers2.fn) return [handlers2.fn];
|
|
87569
|
-
for (var i2 = 0,
|
|
87632
|
+
for (var i2 = 0, l = handlers2.length, ee = new Array(l); i2 < l; i2++) {
|
|
87570
87633
|
ee[i2] = handlers2[i2].fn;
|
|
87571
87634
|
}
|
|
87572
87635
|
return ee;
|