builder-settings-types 0.0.415 → 0.0.417
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const qc = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
2
|
-
let
|
|
2
|
+
let en = (t = 21) => {
|
|
3
3
|
let e = "", r = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
4
4
|
for (; t--; )
|
|
5
5
|
e += qc[r[t] & 63];
|
|
@@ -11,14 +11,14 @@ function Zc(t) {
|
|
|
11
11
|
r.classList.contains("setting-group") && r !== t && e++, r = r.parentElement;
|
|
12
12
|
return e;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
14
|
+
function Bn(t, e) {
|
|
15
15
|
const r = Math.min(Math.max(e, 0), 5);
|
|
16
16
|
t.setAttribute("data-nesting-level", r.toString()), r > 0 ? t.style.setProperty("--visual-indent", `${r * 2}px`) : (t.style.removeProperty("--visual-indent"), t.style.marginLeft = "");
|
|
17
17
|
}
|
|
18
18
|
function Pi(t, e = 0) {
|
|
19
19
|
t.querySelectorAll(":scope > .setting-group-content > .setting-group").forEach((a) => {
|
|
20
20
|
const n = a, i = e + 1;
|
|
21
|
-
|
|
21
|
+
Bn(n, i), Pi(n, i);
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
const Qc = {
|
|
@@ -144,7 +144,7 @@ function tf(t) {
|
|
|
144
144
|
}
|
|
145
145
|
const lt = class lt {
|
|
146
146
|
constructor(e = {}) {
|
|
147
|
-
this.props = e, this.dataPropsPath = "", this.id = e.id ||
|
|
147
|
+
this.props = e, this.dataPropsPath = "", this.id = e.id || en(), this.value = this.props.default, this.desktop = this.props.default, this.title = e.title || "", this.includeGetJson = e.includeGetJson !== void 0 ? e.includeGetJson : !0;
|
|
148
148
|
}
|
|
149
149
|
static SetUploadUrl(e) {
|
|
150
150
|
globalThis.DefaultUploadUrl = e, lt.DefaultUploadUrl = e;
|
|
@@ -273,7 +273,7 @@ function Er(t) {
|
|
|
273
273
|
return t instanceof Ae;
|
|
274
274
|
}
|
|
275
275
|
function $e(t) {
|
|
276
|
-
return t instanceof
|
|
276
|
+
return t instanceof nr;
|
|
277
277
|
}
|
|
278
278
|
function vi(t) {
|
|
279
279
|
return Er(t) || $e(t);
|
|
@@ -298,7 +298,7 @@ const es = (t, e, r) => {
|
|
|
298
298
|
if (!t) return null;
|
|
299
299
|
let e = t.trim();
|
|
300
300
|
return !e.startsWith("#") || (e = e.slice(1), e.length === 3 && (e = e.split("").map((r) => r + r).join("")), !/^[0-9a-fA-F]{6}$/.test(e)) ? null : `#${e.toUpperCase()}`;
|
|
301
|
-
},
|
|
301
|
+
}, Vn = (t, e, r) => `#${[t, e, r].map((a) => Math.max(0, Math.min(255, a)).toString(16).padStart(2, "0")).join("")}`, dr = (t) => {
|
|
302
302
|
const e = t.replace("#", ""), r = e.length === 3 ? e.split("").map((a) => a + a).join("") : e;
|
|
303
303
|
return {
|
|
304
304
|
r: parseInt(r.slice(0, 2), 16),
|
|
@@ -306,7 +306,7 @@ const es = (t, e, r) => {
|
|
|
306
306
|
b: parseInt(r.slice(4, 6), 16)
|
|
307
307
|
};
|
|
308
308
|
}, ya = (t) => {
|
|
309
|
-
const { r: e, g: r, b: a } =
|
|
309
|
+
const { r: e, g: r, b: a } = dr(t), n = e / 255, i = r / 255, s = a / 255, o = Math.max(n, i, s), l = Math.min(n, i, s), c = o - l;
|
|
310
310
|
let f = 0;
|
|
311
311
|
c !== 0 && (o === n ? f = (i - s) / c % 6 : o === i ? f = (s - n) / c + 2 : f = (n - i) / c + 4), f < 0 && (f += 6);
|
|
312
312
|
const h = o === 0 ? 0 : c / o, u = o;
|
|
@@ -314,7 +314,7 @@ const es = (t, e, r) => {
|
|
|
314
314
|
}, ka = (t, e, r) => {
|
|
315
315
|
const a = (t % 360 + 360) % 360, n = r * e, i = n * (1 - Math.abs(a / 60 % 2 - 1)), s = r - n;
|
|
316
316
|
let o = 0, l = 0, c = 0;
|
|
317
|
-
return a < 60 ? (o = n, l = i, c = 0) : a < 120 ? (o = i, l = n, c = 0) : a < 180 ? (o = 0, l = n, c = i) : a < 240 ? (o = 0, l = i, c = n) : a < 300 ? (o = i, l = 0, c = n) : (o = n, l = 0, c = i),
|
|
317
|
+
return a < 60 ? (o = n, l = i, c = 0) : a < 120 ? (o = i, l = n, c = 0) : a < 180 ? (o = 0, l = n, c = i) : a < 240 ? (o = 0, l = i, c = n) : a < 300 ? (o = i, l = 0, c = n) : (o = n, l = 0, c = i), Vn(
|
|
318
318
|
Math.round((o + s) * 255),
|
|
319
319
|
Math.round((l + s) * 255),
|
|
320
320
|
Math.round((c + s) * 255)
|
|
@@ -333,7 +333,7 @@ const es = (t, e, r) => {
|
|
|
333
333
|
}, Ri = (t, e) => {
|
|
334
334
|
const r = Math.max(0, Math.min(100, e)) / 100;
|
|
335
335
|
if (t.startsWith("#")) {
|
|
336
|
-
const { r: n, g: i, b: s } =
|
|
336
|
+
const { r: n, g: i, b: s } = dr(t);
|
|
337
337
|
return `rgba(${n}, ${i}, ${s}, ${r})`;
|
|
338
338
|
}
|
|
339
339
|
if (t.startsWith("rgba("))
|
|
@@ -364,7 +364,7 @@ const es = (t, e, r) => {
|
|
|
364
364
|
}
|
|
365
365
|
const a = Qr(t);
|
|
366
366
|
if (a) {
|
|
367
|
-
const { r: n, g: i, b: s } =
|
|
367
|
+
const { r: n, g: i, b: s } = dr(a);
|
|
368
368
|
return `rgba(${n}, ${i}, ${s}, ${r})`;
|
|
369
369
|
}
|
|
370
370
|
return t;
|
|
@@ -407,7 +407,7 @@ const es = (t, e, r) => {
|
|
|
407
407
|
if (/^#[0-9A-Fa-f]{8}$/.test(e)) {
|
|
408
408
|
const i = e.slice(1), s = parseInt(i.slice(0, 2), 16), o = parseInt(i.slice(2, 4), 16), l = parseInt(i.slice(4, 6), 16), c = parseInt(i.slice(6, 8), 16);
|
|
409
409
|
return {
|
|
410
|
-
color:
|
|
410
|
+
color: Vn(s, o, l),
|
|
411
411
|
position: 0,
|
|
412
412
|
opacity: Math.round(c / 255 * 100)
|
|
413
413
|
};
|
|
@@ -418,7 +418,7 @@ const es = (t, e, r) => {
|
|
|
418
418
|
if (r) {
|
|
419
419
|
const i = parseInt(r[1]), s = parseInt(r[2]), o = parseInt(r[3]), l = r[4] ? parseFloat(r[4]) : 1;
|
|
420
420
|
return {
|
|
421
|
-
color:
|
|
421
|
+
color: Vn(i, s, o),
|
|
422
422
|
position: 0,
|
|
423
423
|
opacity: Math.round(l * 100)
|
|
424
424
|
};
|
|
@@ -433,7 +433,7 @@ const es = (t, e, r) => {
|
|
|
433
433
|
parseFloat(a[3]) / 100
|
|
434
434
|
), l = a[4] ? parseFloat(a[4]) : 1;
|
|
435
435
|
return {
|
|
436
|
-
color:
|
|
436
|
+
color: Vn(i, s, o),
|
|
437
437
|
position: 0,
|
|
438
438
|
opacity: Math.round(l * 100)
|
|
439
439
|
};
|
|
@@ -541,7 +541,7 @@ const es = (t, e, r) => {
|
|
|
541
541
|
(r) => `${Ri(r.color, r.opacity ?? 100)} ${r.position}%`
|
|
542
542
|
).join(", ");
|
|
543
543
|
return t.type === "radial" ? `radial-gradient(circle, ${e})` : `linear-gradient(${t.angle}deg, ${e})`;
|
|
544
|
-
}, sf = (t) => Math.round(t / 100 * 255).toString(16).toUpperCase().padStart(2, "0"),
|
|
544
|
+
}, sf = (t) => Math.round(t / 100 * 255).toString(16).toUpperCase().padStart(2, "0"), Hn = (t) => {
|
|
545
545
|
if (t.type === "solid") {
|
|
546
546
|
const e = t.stops[0];
|
|
547
547
|
if (e) {
|
|
@@ -680,10 +680,10 @@ const ts = (t, e) => {
|
|
|
680
680
|
}, of = (t) => {
|
|
681
681
|
const e = Nt(t);
|
|
682
682
|
if (e)
|
|
683
|
-
return
|
|
683
|
+
return Hn(e);
|
|
684
684
|
const r = Qr(t);
|
|
685
685
|
if (r) {
|
|
686
|
-
const a =
|
|
686
|
+
const a = dr(r);
|
|
687
687
|
return `${r} (RGB: ${a.r}, ${a.g}, ${a.b})`;
|
|
688
688
|
}
|
|
689
689
|
return t;
|
|
@@ -870,7 +870,7 @@ class pf {
|
|
|
870
870
|
const e = this.select.value, { h: r, s: a, v: n } = ya(this.currentColor);
|
|
871
871
|
if (e === "hex") this.input.value = this.currentColor;
|
|
872
872
|
else if (e === "rgb") {
|
|
873
|
-
const { r: i, g: s, b: o } =
|
|
873
|
+
const { r: i, g: s, b: o } = dr(this.currentColor);
|
|
874
874
|
this.input.value = `rgb(${i}, ${s}, ${o})`;
|
|
875
875
|
} else {
|
|
876
876
|
const { hue: i, sat: s, lightness: o } = v0(r, a, n);
|
|
@@ -899,7 +899,7 @@ class pf {
|
|
|
899
899
|
r && this.setColor(r);
|
|
900
900
|
}
|
|
901
901
|
updateOpacityBg() {
|
|
902
|
-
const { r: e, g: r, b: a } =
|
|
902
|
+
const { r: e, g: r, b: a } = dr(this.currentColor);
|
|
903
903
|
this.opacitySlider.style.setProperty(
|
|
904
904
|
"--base-color",
|
|
905
905
|
`rgb(${e}, ${r}, ${a})`
|
|
@@ -1080,7 +1080,7 @@ class mf {
|
|
|
1080
1080
|
if (e === "hex")
|
|
1081
1081
|
this.input.value = this.currentColor;
|
|
1082
1082
|
else if (e === "rgb") {
|
|
1083
|
-
const { r: i, g: s, b: o } =
|
|
1083
|
+
const { r: i, g: s, b: o } = dr(this.currentColor);
|
|
1084
1084
|
this.input.value = `rgb(${i}, ${s}, ${o})`;
|
|
1085
1085
|
} else {
|
|
1086
1086
|
const { hue: i, sat: s, lightness: o } = v0(r, a, n);
|
|
@@ -1110,7 +1110,7 @@ class mf {
|
|
|
1110
1110
|
r && (this.setColor(r), this.onColorChange(this.currentColor, this.currentOpacity));
|
|
1111
1111
|
}
|
|
1112
1112
|
updateOpacityBg() {
|
|
1113
|
-
const { r: e, g: r, b: a } =
|
|
1113
|
+
const { r: e, g: r, b: a } = dr(this.currentColor);
|
|
1114
1114
|
this.opacitySlider.style.setProperty(
|
|
1115
1115
|
"--base-color",
|
|
1116
1116
|
`rgb(${e}, ${r}, ${a})`
|
|
@@ -1284,7 +1284,7 @@ const qt = class qt extends Ae {
|
|
|
1284
1284
|
const r = this.linkedGlobalVariable.replace("var(--", "").replace(")", "").split("-").map((a) => a.charAt(0).toUpperCase() + a.slice(1)).join(" ");
|
|
1285
1285
|
this.inputEl.value = `Linked: ${r}`;
|
|
1286
1286
|
} else
|
|
1287
|
-
this.inputEl.value =
|
|
1287
|
+
this.inputEl.value = Hn(this.value);
|
|
1288
1288
|
this.updateUnlinkButtonVisibility();
|
|
1289
1289
|
}
|
|
1290
1290
|
resolveGradientGlobalVars(e) {
|
|
@@ -1321,7 +1321,7 @@ const qt = class qt extends Ae {
|
|
|
1321
1321
|
const r = document.createElement("div");
|
|
1322
1322
|
return r.className = "gradient-input-wrapper", this.previewEl = document.createElement("div"), this.previewEl.className = "gradient-mini-preview", this.previewEl.style.background = this.value ? Jt(this.value) : "linear-gradient(90deg, #a84b4b 0%, #786666 100%)", this.previewEl.addEventListener("click", (a) => {
|
|
1323
1323
|
a.preventDefault(), a.stopPropagation(), this.openPopover();
|
|
1324
|
-
}), this.inputEl = document.createElement("input"), this.inputEl.type = "text", this.inputEl.className = "gradient-text-input", this.inputEl.placeholder = "Enter gradient CSS or paste color...", this.inputEl.value = this.value ?
|
|
1324
|
+
}), this.inputEl = document.createElement("input"), this.inputEl.type = "text", this.inputEl.className = "gradient-text-input", this.inputEl.placeholder = "Enter gradient CSS or paste color...", this.inputEl.value = this.value ? Hn(this.value) : "", this.inputEl.readOnly = !1, this.inputEl.addEventListener("focus", () => {
|
|
1325
1325
|
if (this.isEditing = !0, this.value)
|
|
1326
1326
|
if (this.value.type === "solid") {
|
|
1327
1327
|
const a = this.value.stops[0];
|
|
@@ -1337,7 +1337,7 @@ const qt = class qt extends Ae {
|
|
|
1337
1337
|
} else
|
|
1338
1338
|
this.inputEl.value = Jt(this.value);
|
|
1339
1339
|
}), this.inputEl.addEventListener("blur", () => {
|
|
1340
|
-
this.isEditing = !1, this.value && (this.inputEl.value =
|
|
1340
|
+
this.isEditing = !1, this.value && (this.inputEl.value = Hn(this.value));
|
|
1341
1341
|
}), this.inputEl.addEventListener(
|
|
1342
1342
|
"paste",
|
|
1343
1343
|
(a) => this.handlePaste(a)
|
|
@@ -1703,7 +1703,7 @@ const qt = class qt extends Ae {
|
|
|
1703
1703
|
const m = document.createElement("input");
|
|
1704
1704
|
m.type = "text", m.className = "gstop-opacity-input", m.value = `${n.opacity ?? 100}%`, c.appendChild(h), c.appendChild(u), c.appendChild(p), c.appendChild(m);
|
|
1705
1705
|
const d = document.createElement("button");
|
|
1706
|
-
d.type = "button", d.className = "gstop-del", d.innerHTML = cf, d.disabled = (((v = (g = this.value) == null ? void 0 : g.stops) == null ? void 0 : v.length) || 0) <= 2, s.appendChild(o), s.appendChild(c), s.appendChild(d), r.appendChild(s),
|
|
1706
|
+
d.type = "button", d.className = "gstop-del", d.innerHTML = cf, d.disabled = (((v = (g = this.value) == null ? void 0 : g.stops) == null ? void 0 : v.length) || 0) <= 2, s.appendChild(o), s.appendChild(c), s.appendChild(d), r.appendChild(s), h.addEventListener("click", (w) => {
|
|
1707
1707
|
w.preventDefault(), w.stopPropagation();
|
|
1708
1708
|
const x = this.getSharedStopColorPicker();
|
|
1709
1709
|
x.getIsOpen() && x.close(!1), this.colorPickerStopIndex = i, x.setOnChange((I, L) => {
|
|
@@ -1713,7 +1713,7 @@ const qt = class qt extends Ae {
|
|
|
1713
1713
|
), this.updateUI(), this.triggerChange();
|
|
1714
1714
|
});
|
|
1715
1715
|
const b = this.resolveGlobalVarColor(n.color);
|
|
1716
|
-
x.open(b,
|
|
1716
|
+
x.open(b, h, n.opacity ?? 100);
|
|
1717
1717
|
}), u.addEventListener("input", () => {
|
|
1718
1718
|
this.clearGlobalBindingForCustomChange();
|
|
1719
1719
|
const w = u.value.trim(), x = w.startsWith("#") ? w : `#${w}`;
|
|
@@ -1794,7 +1794,7 @@ const qt = class qt extends Ae {
|
|
|
1794
1794
|
if (n === i || n.position === i.position)
|
|
1795
1795
|
s = n.color, o = n.opacity ?? 100;
|
|
1796
1796
|
else {
|
|
1797
|
-
const c = (r - n.position) / (i.position - n.position), f =
|
|
1797
|
+
const c = (r - n.position) / (i.position - n.position), f = dr(n.color), h = dr(i.color), u = Math.round(f.r + (h.r - f.r) * c), p = Math.round(f.g + (h.g - f.g) * c), m = Math.round(f.b + (h.b - f.b) * c);
|
|
1798
1798
|
s = `#${u.toString(16).padStart(2, "0")}${p.toString(16).padStart(2, "0")}${m.toString(16).padStart(2, "0")}`.toUpperCase(), o = Math.round(
|
|
1799
1799
|
(n.opacity ?? 100) + ((i.opacity ?? 100) - (n.opacity ?? 100)) * c
|
|
1800
1800
|
);
|
|
@@ -2008,12 +2008,12 @@ function _0(t) {
|
|
|
2008
2008
|
var Wa = function(t) {
|
|
2009
2009
|
var e = t.charCodeAt(0), r = t.charCodeAt(1);
|
|
2010
2010
|
return e == 255 && r == 254 ? vf(t.slice(2)) : e == 254 && r == 255 ? _0(t.slice(2)) : e == 65279 ? t.slice(1) : t;
|
|
2011
|
-
},
|
|
2011
|
+
}, _n = function(e) {
|
|
2012
2012
|
return String.fromCharCode(e);
|
|
2013
2013
|
}, eo = function(e) {
|
|
2014
2014
|
return String.fromCharCode(e);
|
|
2015
2015
|
}, Bi, Or = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
2016
|
-
function
|
|
2016
|
+
function tn(t) {
|
|
2017
2017
|
for (var e = "", r = 0, a = 0, n = 0, i = 0, s = 0, o = 0, l = 0, c = 0; c < t.length; )
|
|
2018
2018
|
r = t.charCodeAt(c++), i = r >> 2, a = t.charCodeAt(c++), s = (r & 3) << 4 | a >> 4, n = t.charCodeAt(c++), o = (a & 15) << 2 | n >> 6, l = n & 63, isNaN(a) ? o = l = 64 : isNaN(n) && (l = 64), e += Or.charAt(i) + Or.charAt(s) + Or.charAt(o) + Or.charAt(l);
|
|
2019
2019
|
return e;
|
|
@@ -2318,7 +2318,7 @@ function Lf(t) {
|
|
|
2318
2318
|
var e = os(t.toFixed(11));
|
|
2319
2319
|
return e.length > (t < 0 ? 12 : 11) || e === "0" || e === "-0" ? t.toPrecision(6) : e;
|
|
2320
2320
|
}
|
|
2321
|
-
function
|
|
2321
|
+
function rn(t) {
|
|
2322
2322
|
var e = Math.floor(Math.log(Math.abs(t)) * Math.LOG10E), r;
|
|
2323
2323
|
return e >= -4 && e <= -1 ? r = t.toPrecision(10 + e) : Math.abs(e) <= 9 ? r = Ff(t) : e === 10 ? r = t.toFixed(10).substr(0, 12) : r = Lf(t), os(bf(r.toUpperCase()));
|
|
2324
2324
|
}
|
|
@@ -2329,7 +2329,7 @@ function ta(t, e) {
|
|
|
2329
2329
|
case "boolean":
|
|
2330
2330
|
return t ? "TRUE" : "FALSE";
|
|
2331
2331
|
case "number":
|
|
2332
|
-
return (t | 0) === t ? t.toString(10) :
|
|
2332
|
+
return (t | 0) === t ? t.toString(10) : rn(t);
|
|
2333
2333
|
case "undefined":
|
|
2334
2334
|
return "";
|
|
2335
2335
|
case "object":
|
|
@@ -2620,15 +2620,15 @@ function M0(t, e) {
|
|
|
2620
2620
|
} else r = e.toExponential(a);
|
|
2621
2621
|
return t.match(/E\+00$/) && r.match(/e[+-]\d$/) && (r = r.substr(0, r.length - 1) + "0" + r.charAt(r.length - 1)), t.match(/E\-/) && r.match(/e\+/) && (r = r.replace(/e\+/, "e")), r.replace("e", "E");
|
|
2622
2622
|
}
|
|
2623
|
-
function
|
|
2623
|
+
function cr(t, e, r) {
|
|
2624
2624
|
if (t.charCodeAt(0) === 40 && !e.match(I0)) {
|
|
2625
2625
|
var a = e.replace(/\( */, "").replace(/ \)/, "").replace(/\)/, "");
|
|
2626
|
-
return r >= 0 ?
|
|
2626
|
+
return r >= 0 ? cr("n", a, r) : "(" + cr("n", a, -r) + ")";
|
|
2627
2627
|
}
|
|
2628
2628
|
if (e.charCodeAt(e.length - 1) === 44) return Bf(t, e, r);
|
|
2629
2629
|
if (e.indexOf("%") !== -1) return Vf(t, e, r);
|
|
2630
2630
|
if (e.indexOf("E") !== -1) return M0(e, r);
|
|
2631
|
-
if (e.charCodeAt(0) === 36) return "$" +
|
|
2631
|
+
if (e.charCodeAt(0) === 36) return "$" + cr(t, e.substr(e.charAt(1) == " " ? 2 : 1), r);
|
|
2632
2632
|
var n, i, s, o, l = Math.abs(r), c = r < 0 ? "-" : "";
|
|
2633
2633
|
if (e.match(/^00+$/)) return c + tr(l, e.length);
|
|
2634
2634
|
if (e.match(/^[#?]+$/))
|
|
@@ -2643,14 +2643,14 @@ function lr(t, e, r) {
|
|
|
2643
2643
|
return c + ("" + l).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, i[1].length ? "0." : ".");
|
|
2644
2644
|
if (i = e.match(/^#{1,3},##0(\.?)$/)) return c + Pr("" + l);
|
|
2645
2645
|
if (i = e.match(/^#,##0\.([#0]*0)$/))
|
|
2646
|
-
return r < 0 ? "-" +
|
|
2647
|
-
if (i = e.match(/^#,#*,#0/)) return
|
|
2646
|
+
return r < 0 ? "-" + cr(t, e, -r) : Pr("" + r) + "." + Ke("0", i[1].length);
|
|
2647
|
+
if (i = e.match(/^#,#*,#0/)) return cr(t, e.replace(/^#,#*,/, ""), r);
|
|
2648
2648
|
if (i = e.match(/^([0#]+)(\\?-([0#]+))+$/))
|
|
2649
|
-
return n = _a(
|
|
2649
|
+
return n = _a(cr(t, e.replace(/[\\-]/g, ""), r)), s = 0, _a(_a(e.replace(/\\/g, "")).replace(/[0#]/g, function(m) {
|
|
2650
2650
|
return s < n.length ? n.charAt(s++) : m === "0" ? "0" : "";
|
|
2651
2651
|
}));
|
|
2652
2652
|
if (e.match(N0))
|
|
2653
|
-
return n =
|
|
2653
|
+
return n = cr(t, "##########", r), "(" + n.substr(0, 3) + ") " + n.substr(3, 3) + "-" + n.substr(6);
|
|
2654
2654
|
var f = "";
|
|
2655
2655
|
if (i = e.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
|
|
2656
2656
|
return s = Math.min(
|
|
@@ -2675,7 +2675,7 @@ function lr(t, e, r) {
|
|
|
2675
2675
|
return Tt(e.substr(0, h) + n + e.substr(e.length - u));
|
|
2676
2676
|
}
|
|
2677
2677
|
if (i = e.match(/^00,000\.([#0]*0)$/))
|
|
2678
|
-
return r < 0 ? "-" +
|
|
2678
|
+
return r < 0 ? "-" + cr(t, e, -r) : Pr("" + r).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(m) {
|
|
2679
2679
|
return "00," + (m.length < 3 ? tr(0, 3 - m.length) : "") + m;
|
|
2680
2680
|
}) + "." + tr(0, i[1].length);
|
|
2681
2681
|
switch (e) {
|
|
@@ -2685,12 +2685,12 @@ function lr(t, e, r) {
|
|
|
2685
2685
|
var p = Pr("" + l);
|
|
2686
2686
|
return p !== "0" ? c + p : "";
|
|
2687
2687
|
default:
|
|
2688
|
-
if (e.match(/\.[0#?]*$/)) return
|
|
2688
|
+
if (e.match(/\.[0#?]*$/)) return cr(t, e.slice(0, e.lastIndexOf(".")), r) + Tt(e.slice(e.lastIndexOf(".")));
|
|
2689
2689
|
}
|
|
2690
2690
|
throw new Error("unsupported format |" + e + "|");
|
|
2691
2691
|
}
|
|
2692
2692
|
function _r(t, e, r) {
|
|
2693
|
-
return (r | 0) === r ?
|
|
2693
|
+
return (r | 0) === r ? cr(t, e, r) : Ut(t, e, r);
|
|
2694
2694
|
}
|
|
2695
2695
|
function Hf(t) {
|
|
2696
2696
|
for (var e = [], r = !1, a = 0, n = 0; a < t.length; ++a) switch (
|
|
@@ -3659,7 +3659,7 @@ var Xf = /* @__PURE__ */ function() {
|
|
|
3659
3659
|
case "binary":
|
|
3660
3660
|
return typeof C == "string" ? C : U(C);
|
|
3661
3661
|
case "base64":
|
|
3662
|
-
return
|
|
3662
|
+
return tn(typeof C == "string" ? C : U(C));
|
|
3663
3663
|
case "buffer":
|
|
3664
3664
|
if (_e) return Buffer.isBuffer(C) ? C : Fr(C);
|
|
3665
3665
|
/* falls through */
|
|
@@ -3724,7 +3724,7 @@ var Xf = /* @__PURE__ */ function() {
|
|
|
3724
3724
|
var k = _ & 7, T = _ >>> 3;
|
|
3725
3725
|
return k <= 5 ? E[T] |= (C & 7) << k : (E[T] |= C << k & 255, E[T + 1] = (C & 7) >> 8 - k), _ + 3;
|
|
3726
3726
|
}
|
|
3727
|
-
function
|
|
3727
|
+
function ir(E, _, C) {
|
|
3728
3728
|
var k = _ & 7, T = _ >>> 3;
|
|
3729
3729
|
return C = (C & 1) << k, E[T] |= C, _ + 1;
|
|
3730
3730
|
}
|
|
@@ -3789,7 +3789,7 @@ var Xf = /* @__PURE__ */ function() {
|
|
|
3789
3789
|
for (; _ <= 287; _++) C.push(8);
|
|
3790
3790
|
vr(C, Nr, 288);
|
|
3791
3791
|
})();
|
|
3792
|
-
var
|
|
3792
|
+
var sr = /* @__PURE__ */ function() {
|
|
3793
3793
|
for (var _ = Q ? new Uint8Array(32768) : [], C = 0, k = 0; C < te.length - 1; ++C)
|
|
3794
3794
|
for (; k < te[C + 1]; ++k) _[k] = C;
|
|
3795
3795
|
for (; k < 32768; ++k) _[k] = 29;
|
|
@@ -3831,7 +3831,7 @@ var Xf = /* @__PURE__ */ function() {
|
|
|
3831
3831
|
Z[ue] = G & 32767, ue = (ue << 5 ^ j[G]) & 32767, ++G;
|
|
3832
3832
|
se -= Ee - 1;
|
|
3833
3833
|
} else
|
|
3834
|
-
ee <= 143 ? ee = ee + 48 : W =
|
|
3834
|
+
ee <= 143 ? ee = ee + 48 : W = ir(V, W, 1), W = xr(V, W, q[ee]), Z[ue] = G & 32767, ++G;
|
|
3835
3835
|
}
|
|
3836
3836
|
W = xr(V, W, 0) - 1;
|
|
3837
3837
|
}
|
|
@@ -3842,7 +3842,7 @@ var Xf = /* @__PURE__ */ function() {
|
|
|
3842
3842
|
};
|
|
3843
3843
|
}();
|
|
3844
3844
|
function Te(E) {
|
|
3845
|
-
var _ = X(50 + Math.floor(E.length * 1.1)), C =
|
|
3845
|
+
var _ = X(50 + Math.floor(E.length * 1.1)), C = sr(E, _);
|
|
3846
3846
|
return _.slice(0, C);
|
|
3847
3847
|
}
|
|
3848
3848
|
var Ze = Q ? new Uint16Array(32768) : It(32768), Vt = Q ? new Uint16Array(32768) : It(32768), it = Q ? new Uint16Array(128) : It(128), $r = 1, zs = 1;
|
|
@@ -4010,7 +4010,7 @@ var Xf = /* @__PURE__ */ function() {
|
|
|
4010
4010
|
}
|
|
4011
4011
|
return S = X(22), S.write_shift(4, 101010256), S.write_shift(2, 0), S.write_shift(2, 0), S.write_shift(2, Z), S.write_shift(2, Z), S.write_shift(4, Ee), S.write_shift(4, G), S.write_shift(2, 0), ft([ft(k), ft(T), S]);
|
|
4012
4012
|
}
|
|
4013
|
-
var
|
|
4013
|
+
var kn = {
|
|
4014
4014
|
htm: "text/html",
|
|
4015
4015
|
xml: "text/xml",
|
|
4016
4016
|
gif: "image/gif",
|
|
@@ -4023,10 +4023,10 @@ var Xf = /* @__PURE__ */ function() {
|
|
|
4023
4023
|
function Hc(E, _) {
|
|
4024
4024
|
if (E.ctype) return E.ctype;
|
|
4025
4025
|
var C = E.name || "", k = C.match(/\.([^\.]+)$/);
|
|
4026
|
-
return k &&
|
|
4026
|
+
return k && kn[k[1]] || _ && (k = (C = _).match(/[\.\\]([^\.\\])+$/), k && kn[k[1]]) ? kn[k[1]] : "application/octet-stream";
|
|
4027
4027
|
}
|
|
4028
4028
|
function Uc(E) {
|
|
4029
|
-
for (var _ =
|
|
4029
|
+
for (var _ = tn(E), C = [], k = 0; k < _.length; k += 76) C.push(_.slice(k, k + 76));
|
|
4030
4030
|
return C.join(`\r
|
|
4031
4031
|
`) + `\r
|
|
4032
4032
|
`;
|
|
@@ -4195,7 +4195,7 @@ var Xf = /* @__PURE__ */ function() {
|
|
|
4195
4195
|
function jf(t) {
|
|
4196
4196
|
return typeof t == "string" ? oi(t) : Array.isArray(t) ? wf(t) : t;
|
|
4197
4197
|
}
|
|
4198
|
-
function
|
|
4198
|
+
function mn(t, e, r) {
|
|
4199
4199
|
if (typeof Deno < "u") {
|
|
4200
4200
|
if (r && typeof e == "string") switch (r) {
|
|
4201
4201
|
case "utf8":
|
|
@@ -4210,7 +4210,7 @@ function pn(t, e, r) {
|
|
|
4210
4210
|
}
|
|
4211
4211
|
return Deno.writeFileSync(t, e);
|
|
4212
4212
|
}
|
|
4213
|
-
var a = r == "utf8" ?
|
|
4213
|
+
var a = r == "utf8" ? ur(e) : e;
|
|
4214
4214
|
if (typeof IE_SaveFile < "u") return IE_SaveFile(a, t);
|
|
4215
4215
|
if (typeof Blob < "u") {
|
|
4216
4216
|
var n = new Blob([jf(a)], { type: "application/octet-stream" });
|
|
@@ -4318,15 +4318,15 @@ function Ue(t, e) {
|
|
|
4318
4318
|
function ra(t, e) {
|
|
4319
4319
|
if (_e && Buffer.isBuffer(t)) {
|
|
4320
4320
|
if (e) {
|
|
4321
|
-
if (t[0] == 255 && t[1] == 254) return
|
|
4322
|
-
if (t[1] == 254 && t[2] == 255) return
|
|
4321
|
+
if (t[0] == 255 && t[1] == 254) return ur(t.slice(2).toString("utf16le"));
|
|
4322
|
+
if (t[1] == 254 && t[2] == 255) return ur(_0(t.slice(2).toString("binary")));
|
|
4323
4323
|
}
|
|
4324
4324
|
return t.toString("binary");
|
|
4325
4325
|
}
|
|
4326
4326
|
if (typeof TextDecoder < "u") try {
|
|
4327
4327
|
if (e) {
|
|
4328
|
-
if (t[0] == 255 && t[1] == 254) return
|
|
4329
|
-
if (t[0] == 254 && t[1] == 255) return
|
|
4328
|
+
if (t[0] == 255 && t[1] == 254) return ur(new TextDecoder("utf-16le").decode(t.slice(2)));
|
|
4329
|
+
if (t[0] == 254 && t[1] == 255) return ur(new TextDecoder("utf-16be").decode(t.slice(2)));
|
|
4330
4330
|
}
|
|
4331
4331
|
var r = {
|
|
4332
4332
|
"€": "",
|
|
@@ -4616,7 +4616,7 @@ function xo(t) {
|
|
|
4616
4616
|
function vo(t) {
|
|
4617
4617
|
return Fr(t, "binary").toString("utf8");
|
|
4618
4618
|
}
|
|
4619
|
-
var
|
|
4619
|
+
var Tn = "foo bar bazâð£", Re = _e && (/* @__PURE__ */ vo(Tn) == /* @__PURE__ */ Ei(Tn) && vo || /* @__PURE__ */ xo(Tn) == /* @__PURE__ */ Ei(Tn) && xo) || Ei, ur = _e ? function(t) {
|
|
4620
4620
|
return Fr(t, "utf8").toString("binary");
|
|
4621
4621
|
} : function(t) {
|
|
4622
4622
|
for (var e = [], r = 0, a = 0, n = 0; r < t.length; )
|
|
@@ -4634,7 +4634,7 @@ var _n = "foo bar bazâð£", Re = _e && (/* @__PURE__ */ vo(_n) == /* @
|
|
|
4634
4634
|
e.push(String.fromCharCode(224 + (a >> 12))), e.push(String.fromCharCode(128 + (a >> 6 & 63))), e.push(String.fromCharCode(128 + (a & 63)));
|
|
4635
4635
|
}
|
|
4636
4636
|
return e.join("");
|
|
4637
|
-
},
|
|
4637
|
+
}, an = /* @__PURE__ */ function() {
|
|
4638
4638
|
var t = {};
|
|
4639
4639
|
return function(r, a) {
|
|
4640
4640
|
var n = r + "|" + (a || "");
|
|
@@ -4678,13 +4678,13 @@ var G0 = /(^\s|\s$|\n)/;
|
|
|
4678
4678
|
function pt(t, e) {
|
|
4679
4679
|
return "<" + t + (e.match(G0) ? ' xml:space="preserve"' : "") + ">" + e + "</" + t + ">";
|
|
4680
4680
|
}
|
|
4681
|
-
function
|
|
4681
|
+
function nn(t) {
|
|
4682
4682
|
return Je(t).map(function(e) {
|
|
4683
4683
|
return " " + e + '="' + t[e] + '"';
|
|
4684
4684
|
}).join("");
|
|
4685
4685
|
}
|
|
4686
4686
|
function ae(t, e, r) {
|
|
4687
|
-
return "<" + t + (r != null ?
|
|
4687
|
+
return "<" + t + (r != null ? nn(r) : "") + (e != null ? (e.match(G0) ? ' xml:space="preserve"' : "") + ">" + e + "</" + t : "/") + ">";
|
|
4688
4688
|
}
|
|
4689
4689
|
function Vi(t, e) {
|
|
4690
4690
|
try {
|
|
@@ -4714,7 +4714,7 @@ function ds(t) {
|
|
|
4714
4714
|
if (typeof Uint8Array < "u" && t instanceof Uint8Array) return Re(Hr(is(t)));
|
|
4715
4715
|
throw new Error("Bad input format: expected Buffer or string");
|
|
4716
4716
|
}
|
|
4717
|
-
var
|
|
4717
|
+
var sn = /<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg, st = {
|
|
4718
4718
|
CORE_PROPS: "http://schemas.openxmlformats.org/package/2006/metadata/core-properties",
|
|
4719
4719
|
CUST_PROPS: "http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",
|
|
4720
4720
|
EXT_PROPS: "http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",
|
|
@@ -4772,23 +4772,23 @@ var Eo = function(t) {
|
|
|
4772
4772
|
} : ko, _o = function(t, e, r) {
|
|
4773
4773
|
for (var a = [], n = e; n < r; n++) a.push(String.fromCharCode(xa(t, n)));
|
|
4774
4774
|
return a.join("");
|
|
4775
|
-
},
|
|
4775
|
+
}, gn = _e ? function(e, r, a) {
|
|
4776
4776
|
return Buffer.isBuffer(e) ? e.toString("utf8", r, a) : _o(e, r, a);
|
|
4777
4777
|
} : _o, X0 = function(t, e) {
|
|
4778
4778
|
var r = Ot(t, e);
|
|
4779
|
-
return r > 0 ?
|
|
4779
|
+
return r > 0 ? gn(t, e + 4, e + 4 + r - 1) : "";
|
|
4780
4780
|
}, j0 = X0, K0 = function(t, e) {
|
|
4781
4781
|
var r = Ot(t, e);
|
|
4782
|
-
return r > 0 ?
|
|
4782
|
+
return r > 0 ? gn(t, e + 4, e + 4 + r - 1) : "";
|
|
4783
4783
|
}, Y0 = K0, J0 = function(t, e) {
|
|
4784
4784
|
var r = 2 * Ot(t, e);
|
|
4785
|
-
return r > 0 ?
|
|
4785
|
+
return r > 0 ? gn(t, e + 4, e + 4 + r - 1) : "";
|
|
4786
4786
|
}, q0 = J0, Z0 = function(e, r) {
|
|
4787
4787
|
var a = Ot(e, r);
|
|
4788
4788
|
return a > 0 ? ps(e, r + 4, r + 4 + a) : "";
|
|
4789
4789
|
}, Q0 = Z0, el = function(t, e) {
|
|
4790
4790
|
var r = Ot(t, e);
|
|
4791
|
-
return r > 0 ?
|
|
4791
|
+
return r > 0 ? gn(t, e + 4, e + 4 + r) : "";
|
|
4792
4792
|
}, tl = el, rl = function(t, e) {
|
|
4793
4793
|
return ph(t, e);
|
|
4794
4794
|
}, Kn = rl, ms = function(e) {
|
|
@@ -4843,7 +4843,7 @@ function za(t, e) {
|
|
|
4843
4843
|
t *= 2;
|
|
4844
4844
|
break;
|
|
4845
4845
|
case "utf8":
|
|
4846
|
-
r =
|
|
4846
|
+
r = gn(this, this.l, this.l + t);
|
|
4847
4847
|
break;
|
|
4848
4848
|
case "utf16le":
|
|
4849
4849
|
t *= 2, r = ps(this, this.l, this.l + t);
|
|
@@ -4870,12 +4870,12 @@ function za(t, e) {
|
|
|
4870
4870
|
t = 4 + Ot(this, this.l), r = tl(this, this.l), t & 3 && (t += 4 - (t & 3));
|
|
4871
4871
|
break;
|
|
4872
4872
|
case "cstr":
|
|
4873
|
-
for (t = 0, r = ""; (s = xa(this, this.l + t++)) !== 0; ) i.push(
|
|
4873
|
+
for (t = 0, r = ""; (s = xa(this, this.l + t++)) !== 0; ) i.push(_n(s));
|
|
4874
4874
|
r = i.join("");
|
|
4875
4875
|
break;
|
|
4876
4876
|
case "_wstr":
|
|
4877
4877
|
for (t = 0, r = ""; (s = kr(this, this.l + t)) !== 0; )
|
|
4878
|
-
i.push(
|
|
4878
|
+
i.push(_n(s)), t += 2;
|
|
4879
4879
|
t += 2, r = i.join("");
|
|
4880
4880
|
break;
|
|
4881
4881
|
/* sbcs and dbcs support continue records in the SST way TODO codepages */
|
|
@@ -4883,7 +4883,7 @@ function za(t, e) {
|
|
|
4883
4883
|
for (r = "", c = this.l, l = 0; l < t; ++l) {
|
|
4884
4884
|
if (this.lens && this.lens.indexOf(c) !== -1)
|
|
4885
4885
|
return s = xa(this, c), this.l = c + 1, o = za.call(this, t - l, s ? "dbcs-cont" : "sbcs-cont"), i.join("") + o;
|
|
4886
|
-
i.push(
|
|
4886
|
+
i.push(_n(kr(this, c))), c += 2;
|
|
4887
4887
|
}
|
|
4888
4888
|
r = i.join(""), t *= 2;
|
|
4889
4889
|
break;
|
|
@@ -4893,7 +4893,7 @@ function za(t, e) {
|
|
|
4893
4893
|
for (r = "", c = this.l, l = 0; l != t; ++l) {
|
|
4894
4894
|
if (this.lens && this.lens.indexOf(c) !== -1)
|
|
4895
4895
|
return s = xa(this, c), this.l = c + 1, o = za.call(this, t - l, s ? "dbcs-cont" : "sbcs-cont"), i.join("") + o;
|
|
4896
|
-
i.push(
|
|
4896
|
+
i.push(_n(xa(this, c))), c += 1;
|
|
4897
4897
|
}
|
|
4898
4898
|
r = i.join("");
|
|
4899
4899
|
break;
|
|
@@ -4995,7 +4995,7 @@ function Lr(t, e, r) {
|
|
|
4995
4995
|
dt(t, t.l || 0);
|
|
4996
4996
|
for (var s = t.length, o = 0, l = 0; t.l < s; ) {
|
|
4997
4997
|
o = t.read_shift(1), o & 128 && (o = (o & 127) + ((t.read_shift(1) & 127) << 7));
|
|
4998
|
-
var c =
|
|
4998
|
+
var c = un[o] || un[65535];
|
|
4999
4999
|
for (a = t.read_shift(1), i = a & 127, n = 1; n < 4 && a & 128; ++n) i += ((a = t.read_shift(1)) & 127) << 7 * n;
|
|
5000
5000
|
l = t.l + i;
|
|
5001
5001
|
var f = c.f && c.f(t, i, r);
|
|
@@ -5021,7 +5021,7 @@ function Lt() {
|
|
|
5021
5021
|
function Y(t, e, r, a) {
|
|
5022
5022
|
var n = +e, i;
|
|
5023
5023
|
if (!isNaN(n)) {
|
|
5024
|
-
a || (a =
|
|
5024
|
+
a || (a = un[n].p || (r || []).length || 0), i = 1 + (n >= 128 ? 1 : 0) + 1, a >= 128 && ++i, a >= 16384 && ++i, a >= 2097152 && ++i;
|
|
5025
5025
|
var s = t.next(i);
|
|
5026
5026
|
n <= 127 ? s.write_shift(1, n) : (s.write_shift(1, (n & 127) + 128), s.write_shift(1, n >> 7));
|
|
5027
5027
|
for (var o = 0; o != 4; ++o)
|
|
@@ -5279,10 +5279,10 @@ function Dh(t) {
|
|
|
5279
5279
|
case 1:
|
|
5280
5280
|
e.index = n;
|
|
5281
5281
|
var c = Yr[n];
|
|
5282
|
-
c && (e.rgb =
|
|
5282
|
+
c && (e.rgb = ln(c));
|
|
5283
5283
|
break;
|
|
5284
5284
|
case 2:
|
|
5285
|
-
e.rgb =
|
|
5285
|
+
e.rgb = ln([s, o, l]);
|
|
5286
5286
|
break;
|
|
5287
5287
|
case 3:
|
|
5288
5288
|
e.theme = n;
|
|
@@ -5341,7 +5341,7 @@ function Vh(t) {
|
|
|
5341
5341
|
function Hh(t) {
|
|
5342
5342
|
return ll(t, 2);
|
|
5343
5343
|
}
|
|
5344
|
-
var ys = 2, Ft = 3,
|
|
5344
|
+
var ys = 2, Ft = 3, Sn = 11, bo = 12, qn = 19, bn = 64, Uh = 65, Wh = 71, $h = 4108, Gh = 4126, ct = 80, cl = 81, zh = [ct, cl], Ui = {
|
|
5345
5345
|
/*::[*/
|
|
5346
5346
|
1: { n: "CodePage", t: ys },
|
|
5347
5347
|
/*::[*/
|
|
@@ -5363,7 +5363,7 @@ var ys = 2, Ft = 3, Tn = 11, bo = 12, qn = 19, Sn = 64, Uh = 65, Wh = 71, $h = 4
|
|
|
5363
5363
|
/*::[*/
|
|
5364
5364
|
10: { n: "MultimediaClipCount", t: Ft },
|
|
5365
5365
|
/*::[*/
|
|
5366
|
-
11: { n: "ScaleCrop", t:
|
|
5366
|
+
11: { n: "ScaleCrop", t: Sn },
|
|
5367
5367
|
/*::[*/
|
|
5368
5368
|
12: {
|
|
5369
5369
|
n: "HeadingPairs",
|
|
@@ -5381,13 +5381,13 @@ var ys = 2, Ft = 3, Tn = 11, bo = 12, qn = 19, Sn = 64, Uh = 65, Wh = 71, $h = 4
|
|
|
5381
5381
|
/*::[*/
|
|
5382
5382
|
15: { n: "Company", t: ct },
|
|
5383
5383
|
/*::[*/
|
|
5384
|
-
16: { n: "LinksUpToDate", t:
|
|
5384
|
+
16: { n: "LinksUpToDate", t: Sn },
|
|
5385
5385
|
/*::[*/
|
|
5386
5386
|
17: { n: "CharacterCount", t: Ft },
|
|
5387
5387
|
/*::[*/
|
|
5388
|
-
19: { n: "SharedDoc", t:
|
|
5388
|
+
19: { n: "SharedDoc", t: Sn },
|
|
5389
5389
|
/*::[*/
|
|
5390
|
-
22: { n: "HyperlinksChanged", t:
|
|
5390
|
+
22: { n: "HyperlinksChanged", t: Sn },
|
|
5391
5391
|
/*::[*/
|
|
5392
5392
|
23: { n: "AppVersion", t: Ft, p: "version" },
|
|
5393
5393
|
/*::[*/
|
|
@@ -5429,13 +5429,13 @@ var ys = 2, Ft = 3, Tn = 11, bo = 12, qn = 19, Sn = 64, Uh = 65, Wh = 71, $h = 4
|
|
|
5429
5429
|
/*::[*/
|
|
5430
5430
|
9: { n: "RevNumber", t: ct },
|
|
5431
5431
|
/*::[*/
|
|
5432
|
-
10: { n: "EditTime", t:
|
|
5432
|
+
10: { n: "EditTime", t: bn },
|
|
5433
5433
|
/*::[*/
|
|
5434
|
-
11: { n: "LastPrinted", t:
|
|
5434
|
+
11: { n: "LastPrinted", t: bn },
|
|
5435
5435
|
/*::[*/
|
|
5436
|
-
12: { n: "CreatedDate", t:
|
|
5436
|
+
12: { n: "CreatedDate", t: bn },
|
|
5437
5437
|
/*::[*/
|
|
5438
|
-
13: { n: "ModifiedDate", t:
|
|
5438
|
+
13: { n: "ModifiedDate", t: bn },
|
|
5439
5439
|
/*::[*/
|
|
5440
5440
|
14: { n: "PageCount", t: Ft },
|
|
5441
5441
|
/*::[*/
|
|
@@ -5902,7 +5902,7 @@ var Kh = /* @__PURE__ */ jh([
|
|
|
5902
5902
|
/* Image */
|
|
5903
5903
|
"image/png": "TODO",
|
|
5904
5904
|
sheet: "js"
|
|
5905
|
-
},
|
|
5905
|
+
}, Fn = {
|
|
5906
5906
|
workbooks: {
|
|
5907
5907
|
xlsx: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",
|
|
5908
5908
|
xlsm: "application/vnd.ms-excel.sheet.macroEnabled.main+xml",
|
|
@@ -6028,13 +6028,13 @@ function hl(t, e) {
|
|
|
6028
6028
|
var i = function(l) {
|
|
6029
6029
|
t[l] && t[l].length > 0 && (n = t[l][0], a[a.length] = ae("Override", null, {
|
|
6030
6030
|
PartName: (n[0] == "/" ? "" : "/") + n,
|
|
6031
|
-
ContentType:
|
|
6031
|
+
ContentType: Fn[l][e.bookType] || Fn[l].xlsx
|
|
6032
6032
|
}));
|
|
6033
6033
|
}, s = function(l) {
|
|
6034
6034
|
(t[l] || []).forEach(function(c) {
|
|
6035
6035
|
a[a.length] = ae("Override", null, {
|
|
6036
6036
|
PartName: (c[0] == "/" ? "" : "/") + c,
|
|
6037
|
-
ContentType:
|
|
6037
|
+
ContentType: Fn[l][e.bookType] || Fn[l].xlsx
|
|
6038
6038
|
});
|
|
6039
6039
|
});
|
|
6040
6040
|
}, o = function(l) {
|
|
@@ -6073,7 +6073,7 @@ var Se = {
|
|
|
6073
6073
|
PEOPLE: "http://schemas.microsoft.com/office/2017/10/relationships/person",
|
|
6074
6074
|
VBA: "http://schemas.microsoft.com/office/2006/relationships/vbaProject"
|
|
6075
6075
|
};
|
|
6076
|
-
function
|
|
6076
|
+
function on(t) {
|
|
6077
6077
|
var e = t.lastIndexOf("/");
|
|
6078
6078
|
return t.slice(0, e + 1) + "_rels/" + t.slice(e + 1) + ".rels";
|
|
6079
6079
|
}
|
|
@@ -6109,7 +6109,7 @@ function Pe(t, e, r, a, n, i) {
|
|
|
6109
6109
|
}
|
|
6110
6110
|
var Jh = "application/vnd.oasis.opendocument.spreadsheet";
|
|
6111
6111
|
function qh(t, e) {
|
|
6112
|
-
for (var r = ds(t), a, n; a =
|
|
6112
|
+
for (var r = ds(t), a, n; a = sn.exec(r); ) switch (a[3]) {
|
|
6113
6113
|
case "manifest":
|
|
6114
6114
|
break;
|
|
6115
6115
|
// 4.2 <manifest:manifest>
|
|
@@ -6286,7 +6286,7 @@ function gl(t, e, r, a) {
|
|
|
6286
6286
|
function ru(t, e, r) {
|
|
6287
6287
|
var a = {};
|
|
6288
6288
|
return e || (e = {}), t = Re(t), Jr.forEach(function(n) {
|
|
6289
|
-
var i = (t.match(
|
|
6289
|
+
var i = (t.match(an(n[0])) || [])[1];
|
|
6290
6290
|
switch (n[2]) {
|
|
6291
6291
|
case "string":
|
|
6292
6292
|
i && (e[n[1]] = Ie(i));
|
|
@@ -6822,7 +6822,7 @@ function vu(t) {
|
|
|
6822
6822
|
function Tl(t, e, r) {
|
|
6823
6823
|
return r || (r = X(2)), r.write_shift(1, e == "e" ? +t : +!!t), r.write_shift(1, e == "e" ? 1 : 0), r;
|
|
6824
6824
|
}
|
|
6825
|
-
function
|
|
6825
|
+
function xn(t, e, r) {
|
|
6826
6826
|
var a = t.read_shift(r && r.biff >= 12 ? 2 : 1), n = "sbcs-cont";
|
|
6827
6827
|
if (r && r.biff >= 8, !r || r.biff == 8) {
|
|
6828
6828
|
var i = t.read_shift(1);
|
|
@@ -6855,12 +6855,12 @@ function na(t, e, r) {
|
|
|
6855
6855
|
var n = t.read_shift(1);
|
|
6856
6856
|
return n === 0 ? a = t.read_shift(e, "sbcs-cont") : a = t.read_shift(e, "dbcs-cont"), a;
|
|
6857
6857
|
}
|
|
6858
|
-
function
|
|
6858
|
+
function vn(t, e, r) {
|
|
6859
6859
|
var a = t.read_shift(r && r.biff == 2 ? 1 : 2);
|
|
6860
6860
|
return a === 0 ? (t.l++, "") : na(t, a, r);
|
|
6861
6861
|
}
|
|
6862
6862
|
function ua(t, e, r) {
|
|
6863
|
-
if (r.biff > 5) return
|
|
6863
|
+
if (r.biff > 5) return vn(t, e, r);
|
|
6864
6864
|
var a = t.read_shift(1);
|
|
6865
6865
|
return a === 0 ? (t.l++, "") : t.read_shift(a, r.biff <= 4 || !t.lens ? "cpstr" : "sbcs-cont");
|
|
6866
6866
|
}
|
|
@@ -6901,7 +6901,7 @@ function _u(t, e) {
|
|
|
6901
6901
|
throw new Error("Unsupported Moniker " + r);
|
|
6902
6902
|
}
|
|
6903
6903
|
}
|
|
6904
|
-
function
|
|
6904
|
+
function Ln(t) {
|
|
6905
6905
|
var e = t.read_shift(4), r = e > 0 ? t.read_shift(e, "utf16le").replace(bt, "") : "";
|
|
6906
6906
|
return r;
|
|
6907
6907
|
}
|
|
@@ -6916,7 +6916,7 @@ function Tu(t, e) {
|
|
|
6916
6916
|
var n = t.read_shift(2);
|
|
6917
6917
|
t.l += 2;
|
|
6918
6918
|
var i, s, o, l, c = "", f, h;
|
|
6919
|
-
n & 16 && (i =
|
|
6919
|
+
n & 16 && (i = Ln(t, r - t.l)), n & 128 && (s = Ln(t, r - t.l)), (n & 257) === 257 && (o = Ln(t, r - t.l)), (n & 257) === 1 && (l = _u(t, r - t.l)), n & 8 && (c = Ln(t, r - t.l)), n & 32 && (f = t.read_shift(16)), n & 64 && (h = _s(
|
|
6920
6920
|
t
|
|
6921
6921
|
/*, 8*/
|
|
6922
6922
|
)), t.l = r;
|
|
@@ -6987,7 +6987,7 @@ function Ll(t) {
|
|
|
6987
6987
|
}
|
|
6988
6988
|
function Au(t, e, r) {
|
|
6989
6989
|
t.l += 4, e -= 4;
|
|
6990
|
-
var a = t.l + e, n =
|
|
6990
|
+
var a = t.l + e, n = xn(t, e, r), i = t.read_shift(2);
|
|
6991
6991
|
if (a -= t.l, i !== a) throw new Error("Malformed AddinUdf: padding = " + a + " != " + i);
|
|
6992
6992
|
return t.l += i, n;
|
|
6993
6993
|
}
|
|
@@ -7089,7 +7089,7 @@ function Pu(t, e) {
|
|
|
7089
7089
|
}
|
|
7090
7090
|
return t.l != r && (t.l = r), a;
|
|
7091
7091
|
}
|
|
7092
|
-
function
|
|
7092
|
+
function An(t, e) {
|
|
7093
7093
|
var r = { BIFFVer: 0, dt: 0 };
|
|
7094
7094
|
switch (r.BIFFVer = t.read_shift(2), e -= 2, e >= 2 && (r.dt = t.read_shift(2), t.l -= 2), r.BIFFVer) {
|
|
7095
7095
|
case 1536:
|
|
@@ -7169,7 +7169,7 @@ function Hu(t, e, r) {
|
|
|
7169
7169
|
i = "VBAModule";
|
|
7170
7170
|
break;
|
|
7171
7171
|
}
|
|
7172
|
-
var s =
|
|
7172
|
+
var s = xn(t, 0, r);
|
|
7173
7173
|
return s.length === 0 && (s = "Sheet1"), { pos: a, hs: n, dt: i, name: s };
|
|
7174
7174
|
}
|
|
7175
7175
|
function Uu(t, e) {
|
|
@@ -7264,7 +7264,7 @@ function Qu(t, e, r) {
|
|
|
7264
7264
|
t.l += 10;
|
|
7265
7265
|
break;
|
|
7266
7266
|
}
|
|
7267
|
-
return a.name =
|
|
7267
|
+
return a.name = xn(t, 0, r), a;
|
|
7268
7268
|
}
|
|
7269
7269
|
function e1(t, e) {
|
|
7270
7270
|
var r = t.name || "Arial", a = e && e.biff == 5, n = a ? 15 + r.length : 16 + 2 * r.length, i = X(n);
|
|
@@ -7282,7 +7282,7 @@ function a1(t, e, r) {
|
|
|
7282
7282
|
r.biffguess && r.biff == 2 && (r.biff = 5);
|
|
7283
7283
|
var a = t.l + e, n = gr(t);
|
|
7284
7284
|
r.biff == 2 && t.l++;
|
|
7285
|
-
var i =
|
|
7285
|
+
var i = vn(t, a - t.l, r);
|
|
7286
7286
|
return n.val = i, n;
|
|
7287
7287
|
}
|
|
7288
7288
|
function n1(t, e, r, a, n) {
|
|
@@ -7374,7 +7374,7 @@ function w1(t, e, r) {
|
|
|
7374
7374
|
var a = t.l + e, n = t.read_shift(2), i = t.read_shift(2);
|
|
7375
7375
|
if (r.sbcch = i, i == 1025 || i == 14849) return [i, n];
|
|
7376
7376
|
if (i < 1 || i > 255) throw new Error("Unexpected SupBook type: " + i);
|
|
7377
|
-
for (var s = na(t, i), o = []; a > t.l; ) o.push(
|
|
7377
|
+
for (var s = na(t, i), o = []; a > t.l; ) o.push(vn(t));
|
|
7378
7378
|
return [i, n, s, o];
|
|
7379
7379
|
}
|
|
7380
7380
|
function Wo(t, e, r) {
|
|
@@ -7428,7 +7428,7 @@ function Ml(t, e, r) {
|
|
|
7428
7428
|
}
|
|
7429
7429
|
function C1(t, e, r) {
|
|
7430
7430
|
t[t.l + 1] == 3 && t[t.l]++;
|
|
7431
|
-
var a =
|
|
7431
|
+
var a = xn(t, e, r);
|
|
7432
7432
|
return a.charCodeAt(0) == 3 ? a.slice(1) : a;
|
|
7433
7433
|
}
|
|
7434
7434
|
function y1(t, e, r) {
|
|
@@ -7600,7 +7600,7 @@ function z1(t) {
|
|
|
7600
7600
|
for (var e = X(2 * t), r = 0; r < t; ++r) e.write_shift(2, r + 1);
|
|
7601
7601
|
return e;
|
|
7602
7602
|
}
|
|
7603
|
-
var X1 = gr, j1 = _l, K1 =
|
|
7603
|
+
var X1 = gr, j1 = _l, K1 = vn;
|
|
7604
7604
|
function Y1(t) {
|
|
7605
7605
|
var e = t.read_shift(2), r = t.read_shift(2), a = t.read_shift(4), n = { fmt: e, env: r, len: a, data: t.slice(t.l, t.l + a) };
|
|
7606
7606
|
return t.l += a, n;
|
|
@@ -7620,7 +7620,7 @@ function q1(t) {
|
|
|
7620
7620
|
}
|
|
7621
7621
|
function Z1(t, e, r) {
|
|
7622
7622
|
var a = X(15);
|
|
7623
|
-
return
|
|
7623
|
+
return yn(a, t, e), a.write_shift(8, r, "f"), a;
|
|
7624
7624
|
}
|
|
7625
7625
|
function Q1(t) {
|
|
7626
7626
|
var e = gr(t);
|
|
@@ -7630,7 +7630,7 @@ function Q1(t) {
|
|
|
7630
7630
|
}
|
|
7631
7631
|
function ed(t, e, r) {
|
|
7632
7632
|
var a = X(9);
|
|
7633
|
-
return
|
|
7633
|
+
return yn(a, t, e), a.write_shift(2, r), a;
|
|
7634
7634
|
}
|
|
7635
7635
|
function td(t) {
|
|
7636
7636
|
var e = t.read_shift(1);
|
|
@@ -8404,13 +8404,13 @@ var nd = [2, 3, 48, 49, 131, 139, 140, 245], Xi = /* @__PURE__ */ function() {
|
|
|
8404
8404
|
function c(u, p) {
|
|
8405
8405
|
p.forEach(function(m, d) {
|
|
8406
8406
|
var g = "F;W" + (d + 1) + " " + (d + 1) + " ";
|
|
8407
|
-
m.hidden ? g += "0" : (typeof m.width == "number" && !m.wpx && (m.wpx =
|
|
8407
|
+
m.hidden ? g += "0" : (typeof m.width == "number" && !m.wpx && (m.wpx = cn(m.width)), typeof m.wpx == "number" && !m.wch && (m.wch = fn(m.wpx)), typeof m.wch == "number" && (g += Math.round(m.wch))), g.charAt(g.length - 1) != " " && u.push(g);
|
|
8408
8408
|
});
|
|
8409
8409
|
}
|
|
8410
8410
|
function f(u, p) {
|
|
8411
8411
|
p.forEach(function(m, d) {
|
|
8412
8412
|
var g = "F;";
|
|
8413
|
-
m.hidden ? g += "M0;" : m.hpt ? g += "M" + 20 * m.hpt + ";" : m.hpx && (g += "M" + 20 *
|
|
8413
|
+
m.hidden ? g += "M0;" : m.hpt ? g += "M" + 20 * m.hpt + ";" : m.hpx && (g += "M" + 20 * hn(m.hpx) + ";"), g.length > 2 && u.push(g + "R" + (d + 1));
|
|
8414
8414
|
});
|
|
8415
8415
|
}
|
|
8416
8416
|
function h(u, p) {
|
|
@@ -8836,9 +8836,9 @@ var qr = /* @__PURE__ */ function() {
|
|
|
8836
8836
|
/* NUMBER */
|
|
8837
8837
|
case 16:
|
|
8838
8838
|
Bt == 14 && (ce[2] & 112) == 112 && (ce[2] & 15) > 1 && (ce[2] & 15) < 15 && (ce[1].z = M.dateNF || me[14], M.cellDates && (ce[1].t = "d", ce[1].v = hi(ce[1].v))), M.qpro && ce[3] > re && (O["!ref"] = Ce(F), Q[K] = O, q.push(K), O = M.dense ? [] : {}, F = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, re = ce[3], K = te || "Sheet" + (re + 1), te = "");
|
|
8839
|
-
var
|
|
8840
|
-
if (
|
|
8841
|
-
|
|
8839
|
+
var ir = M.dense ? (O[ce[0].r] || [])[ce[0].c] : O[ge(ce[0])];
|
|
8840
|
+
if (ir) {
|
|
8841
|
+
ir.t = ce[1].t, ir.v = ce[1].v, ce[1].z != null && (ir.z = ce[1].z), ce[1].f != null && (ir.f = ce[1].f);
|
|
8842
8842
|
break;
|
|
8843
8843
|
}
|
|
8844
8844
|
M.dense ? (O[ce[0].r] || (O[ce[0].r] = []), O[ce[0].r][ce[0].c] = ce[1]) : O[ge(ce[0])] = ce[1];
|
|
@@ -9762,7 +9762,7 @@ function sd(t) {
|
|
|
9762
9762
|
return e;
|
|
9763
9763
|
}
|
|
9764
9764
|
var od = /* @__PURE__ */ function() {
|
|
9765
|
-
var t =
|
|
9765
|
+
var t = an("t"), e = an("rPr");
|
|
9766
9766
|
function r(i) {
|
|
9767
9767
|
var s = i.match(t);
|
|
9768
9768
|
if (!s) return { t: "s", v: "" };
|
|
@@ -10118,7 +10118,7 @@ function Vd(t) {
|
|
|
10118
10118
|
var e = t.slice(t[0] === "#" ? 1 : 0).slice(0, 6);
|
|
10119
10119
|
return [parseInt(e.slice(0, 2), 16), parseInt(e.slice(2, 4), 16), parseInt(e.slice(4, 6), 16)];
|
|
10120
10120
|
}
|
|
10121
|
-
function
|
|
10121
|
+
function ln(t) {
|
|
10122
10122
|
for (var e = 0, r = 1; e != 3; ++e) r = r * 256 + (t[e] > 255 ? 255 : t[e] < 0 ? 0 : t[e]);
|
|
10123
10123
|
return r.toString(16).toUpperCase().slice(1);
|
|
10124
10124
|
}
|
|
@@ -10168,20 +10168,20 @@ function Ud(t) {
|
|
|
10168
10168
|
function Qn(t, e) {
|
|
10169
10169
|
if (e === 0) return t;
|
|
10170
10170
|
var r = Hd(Vd(t));
|
|
10171
|
-
return e < 0 ? r[2] = r[2] * (1 + e) : r[2] = 1 - (1 - r[2]) * (1 - e),
|
|
10171
|
+
return e < 0 ? r[2] = r[2] * (1 + e) : r[2] = 1 - (1 - r[2]) * (1 - e), ln(Ud(r));
|
|
10172
10172
|
}
|
|
10173
10173
|
var Gl = 6, Wd = 15, $d = 1, wt = Gl;
|
|
10174
|
-
function
|
|
10174
|
+
function cn(t) {
|
|
10175
10175
|
return Math.floor((t + Math.round(128 / wt) / 256) * wt);
|
|
10176
10176
|
}
|
|
10177
|
-
function
|
|
10177
|
+
function fn(t) {
|
|
10178
10178
|
return Math.floor((t - 5) / wt * 100 + 0.5) / 100;
|
|
10179
10179
|
}
|
|
10180
10180
|
function ei(t) {
|
|
10181
10181
|
return Math.round((t * wt + 5) / wt * 256) / 256;
|
|
10182
10182
|
}
|
|
10183
10183
|
function _i(t) {
|
|
10184
|
-
return ei(cn(
|
|
10184
|
+
return ei(fn(cn(t)));
|
|
10185
10185
|
}
|
|
10186
10186
|
function Fs(t) {
|
|
10187
10187
|
var e = Math.abs(t - _i(t)), r = wt;
|
|
@@ -10189,10 +10189,10 @@ function Fs(t) {
|
|
|
10189
10189
|
wt = r;
|
|
10190
10190
|
}
|
|
10191
10191
|
function Rr(t) {
|
|
10192
|
-
t.width ? (t.wpx =
|
|
10192
|
+
t.width ? (t.wpx = cn(t.width), t.wch = fn(t.wpx), t.MDW = wt) : t.wpx ? (t.wch = fn(t.wpx), t.width = ei(t.wch), t.MDW = wt) : typeof t.wch == "number" && (t.width = ei(t.wch), t.wpx = cn(t.width), t.MDW = wt), t.customWidth && delete t.customWidth;
|
|
10193
10193
|
}
|
|
10194
10194
|
var Gd = 96, zl = Gd;
|
|
10195
|
-
function
|
|
10195
|
+
function hn(t) {
|
|
10196
10196
|
return t * 96 / zl;
|
|
10197
10197
|
}
|
|
10198
10198
|
function Ia(t) {
|
|
@@ -10610,7 +10610,7 @@ function Jd(t) {
|
|
|
10610
10610
|
for (var a = r[0]; a <= r[1]; ++a) t[a] != null && (e[e.length] = ae("numFmt", null, { numFmtId: a, formatCode: De(t[a]) }));
|
|
10611
10611
|
}), e.length === 1 ? "" : (e[e.length] = "</numFmts>", e[0] = ae("numFmts", null, { count: e.length - 2 }).replace("/>", ">"), e.join(""));
|
|
10612
10612
|
}
|
|
10613
|
-
var
|
|
10613
|
+
var In = ["numFmtId", "fillId", "fontId", "borderId", "xfId"], Nn = ["applyAlignment", "applyBorder", "applyFill", "applyFont", "applyNumberFormat", "applyProtection", "pivotButton", "quotePrefix"];
|
|
10614
10614
|
function qd(t, e, r) {
|
|
10615
10615
|
e.CellXf = [];
|
|
10616
10616
|
var a, n = !1;
|
|
@@ -10625,8 +10625,8 @@ function qd(t, e, r) {
|
|
|
10625
10625
|
/* 18.8.45 xf CT_Xf */
|
|
10626
10626
|
case "<xf":
|
|
10627
10627
|
case "<xf/>":
|
|
10628
|
-
for (a = s, delete a[0], o = 0; o <
|
|
10629
|
-
for (o = 0; o <
|
|
10628
|
+
for (a = s, delete a[0], o = 0; o < In.length; ++o) a[In[o]] && (a[In[o]] = parseInt(a[In[o]], 10));
|
|
10629
|
+
for (o = 0; o < Nn.length; ++o) a[Nn[o]] && (a[Nn[o]] = He(a[Nn[o]]));
|
|
10630
10630
|
if (e.NumberFmt && a.numFmtId > 392) {
|
|
10631
10631
|
for (o = 392; o > 60; --o) if (e.NumberFmt[a.numFmtId] == e.NumberFmt[o]) {
|
|
10632
10632
|
a.numFmtId = o;
|
|
@@ -11463,7 +11463,7 @@ function Jl(t, e) {
|
|
|
11463
11463
|
o.type == "gradient" && (o.angle = "-180");
|
|
11464
11464
|
var l = o.type == "gradient" ? ae("o:fill", null, { type: "gradientUnscaled", "v:ext": "view" }) : null, c = ae("v:fill", l, o), f = { on: "t", obscured: "t" };
|
|
11465
11465
|
++va, n = n.concat([
|
|
11466
|
-
"<v:shape" +
|
|
11466
|
+
"<v:shape" + nn({
|
|
11467
11467
|
id: "_x0000_s" + va,
|
|
11468
11468
|
type: "#_x0000_t202",
|
|
11469
11469
|
style: "position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10" + (i[1].hidden ? ";visibility:hidden" : ""),
|
|
@@ -12025,7 +12025,7 @@ function Ym(t) {
|
|
|
12025
12025
|
return t.l++, Et(t);
|
|
12026
12026
|
}
|
|
12027
12027
|
function Jm(t, e, r) {
|
|
12028
|
-
return t.l++,
|
|
12028
|
+
return t.l++, xn(t, e - 1, r);
|
|
12029
12029
|
}
|
|
12030
12030
|
function qm(t, e) {
|
|
12031
12031
|
var r = [t.read_shift(1)];
|
|
@@ -12134,17 +12134,17 @@ function s2(t, e, r) {
|
|
|
12134
12134
|
return t.l += i, [a, n];
|
|
12135
12135
|
}
|
|
12136
12136
|
var o2 = yt, l2 = yt, c2 = yt;
|
|
12137
|
-
function
|
|
12137
|
+
function wn(t, e, r) {
|
|
12138
12138
|
return t.l += 2, [ym(t)];
|
|
12139
12139
|
}
|
|
12140
12140
|
function Ns(t) {
|
|
12141
12141
|
return t.l += 6, [];
|
|
12142
12142
|
}
|
|
12143
|
-
var f2 =
|
|
12143
|
+
var f2 = wn, h2 = Ns, u2 = Ns, d2 = wn;
|
|
12144
12144
|
function nc(t) {
|
|
12145
12145
|
return t.l += 2, [nt(t), t.read_shift(2) & 1];
|
|
12146
12146
|
}
|
|
12147
|
-
var p2 =
|
|
12147
|
+
var p2 = wn, m2 = nc, g2 = Ns, x2 = wn, v2 = wn, w2 = [
|
|
12148
12148
|
"Data",
|
|
12149
12149
|
"All",
|
|
12150
12150
|
"Headers",
|
|
@@ -12433,7 +12433,7 @@ var Yo = {
|
|
|
12433
12433
|
/*::[*/
|
|
12434
12434
|
255: {}
|
|
12435
12435
|
};
|
|
12436
|
-
function
|
|
12436
|
+
function En(t, e, r, a) {
|
|
12437
12437
|
if (a.biff < 8) return yt(t, e);
|
|
12438
12438
|
for (var n = t.l + e, i = [], s = 0; s !== r.length; ++s)
|
|
12439
12439
|
switch (r[s][0]) {
|
|
@@ -12457,7 +12457,7 @@ function wn(t, e, r, a) {
|
|
|
12457
12457
|
}
|
|
12458
12458
|
return e = n - t.l, e !== 0 && i.push(yt(t, e)), i;
|
|
12459
12459
|
}
|
|
12460
|
-
function
|
|
12460
|
+
function Cn(t, e, r) {
|
|
12461
12461
|
for (var a = t.l + e, n, i, s = []; a != t.l; )
|
|
12462
12462
|
e = a - t.l, i = t[t.l], n = Yo[i] || Yo[b2[i]], (i === 24 || i === 25) && (n = (i === 24 ? F2 : L2)[t[t.l + 1]]), !n || !n.f ? yt(t, e) : s.push([n.n, n.f(t, e, r)]);
|
|
12463
12463
|
return s;
|
|
@@ -12837,22 +12837,22 @@ function vt(t, e, r, a, n) {
|
|
|
12837
12837
|
function M2(t, e, r) {
|
|
12838
12838
|
var a = t.l + e, n = r.biff == 2 ? 1 : 2, i, s = t.read_shift(n);
|
|
12839
12839
|
if (s == 65535) return [[], yt(t, e - 2)];
|
|
12840
|
-
var o =
|
|
12841
|
-
return e !== s + n && (i =
|
|
12840
|
+
var o = Cn(t, s, r);
|
|
12841
|
+
return e !== s + n && (i = En(t, e - s - n, o, r)), t.l = a, [o, i];
|
|
12842
12842
|
}
|
|
12843
12843
|
function O2(t, e, r) {
|
|
12844
12844
|
var a = t.l + e, n = r.biff == 2 ? 1 : 2, i, s = t.read_shift(n);
|
|
12845
12845
|
if (s == 65535) return [[], yt(t, e - 2)];
|
|
12846
|
-
var o =
|
|
12847
|
-
return e !== s + n && (i =
|
|
12846
|
+
var o = Cn(t, s, r);
|
|
12847
|
+
return e !== s + n && (i = En(t, e - s - n, o, r)), t.l = a, [o, i];
|
|
12848
12848
|
}
|
|
12849
12849
|
function P2(t, e, r, a) {
|
|
12850
|
-
var n = t.l + e, i =
|
|
12851
|
-
return n !== t.l && (s =
|
|
12850
|
+
var n = t.l + e, i = Cn(t, a, r), s;
|
|
12851
|
+
return n !== t.l && (s = En(t, n - t.l, i, r)), [i, s];
|
|
12852
12852
|
}
|
|
12853
12853
|
function D2(t, e, r) {
|
|
12854
|
-
var a = t.l + e, n, i = t.read_shift(2), s =
|
|
12855
|
-
return i == 65535 ? [[], yt(t, e - 2)] : (e !== i + 2 && (n =
|
|
12854
|
+
var a = t.l + e, n, i = t.read_shift(2), s = Cn(t, i, r);
|
|
12855
|
+
return i == 65535 ? [[], yt(t, e - 2)] : (e !== i + 2 && (n = En(t, a - i - 2, s, r)), [s, n]);
|
|
12856
12856
|
}
|
|
12857
12857
|
function R2(t) {
|
|
12858
12858
|
var e;
|
|
@@ -12892,7 +12892,7 @@ function V2(t, e, r, a, n) {
|
|
|
12892
12892
|
return h;
|
|
12893
12893
|
}
|
|
12894
12894
|
function di(t, e, r) {
|
|
12895
|
-
var a = t.read_shift(4), n =
|
|
12895
|
+
var a = t.read_shift(4), n = Cn(t, a, r), i = t.read_shift(4), s = i > 0 ? En(t, i, n, r) : null;
|
|
12896
12896
|
return [n, s];
|
|
12897
12897
|
}
|
|
12898
12898
|
var H2 = di, pi = di, U2 = di, W2 = di, $2 = {
|
|
@@ -14058,7 +14058,7 @@ function Ms(t, e, r) {
|
|
|
14058
14058
|
}
|
|
14059
14059
|
function mi(t, e) {
|
|
14060
14060
|
var r = { min: t + 1, max: t + 1 }, a = -1;
|
|
14061
|
-
return e.MDW && (wt = e.MDW), e.width != null ? r.customWidth = 1 : e.wpx != null ? a =
|
|
14061
|
+
return e.MDW && (wt = e.MDW), e.width != null ? r.customWidth = 1 : e.wpx != null ? a = fn(e.wpx) : e.wch != null && (a = e.wch), a > -1 ? (r.width = ei(a), r.customWidth = 1) : e.width != null && (r.width = e.width), e.hidden && (r.hidden = !0), e.level != null && (r.outlineLevel = r.level = e.level), r;
|
|
14062
14062
|
}
|
|
14063
14063
|
function Zr(t, e) {
|
|
14064
14064
|
if (t) {
|
|
@@ -14095,10 +14095,10 @@ function oc(t, e, r, a, n, i) {
|
|
|
14095
14095
|
if (me[e] == null && Tr($f[e] || "General", e), t.t === "e") t.w = t.w || Ar[t.v];
|
|
14096
14096
|
else if (e === 0)
|
|
14097
14097
|
if (t.t === "n")
|
|
14098
|
-
(t.v | 0) === t.v ? t.w = t.v.toString(10) : t.w =
|
|
14098
|
+
(t.v | 0) === t.v ? t.w = t.v.toString(10) : t.w = rn(t.v);
|
|
14099
14099
|
else if (t.t === "d") {
|
|
14100
14100
|
var s = ot(t.v);
|
|
14101
|
-
(s | 0) === s ? t.w = s.toString(10) : t.w =
|
|
14101
|
+
(s | 0) === s ? t.w = s.toString(10) : t.w = rn(s);
|
|
14102
14102
|
} else {
|
|
14103
14103
|
if (t.v === void 0) return "";
|
|
14104
14104
|
t.w = ta(t.v, ba);
|
|
@@ -14180,7 +14180,7 @@ function og(t, e, r, a, n) {
|
|
|
14180
14180
|
e.Workbook && (l = e.Workbook.Sheets[r].CodeName || l);
|
|
14181
14181
|
} catch {
|
|
14182
14182
|
}
|
|
14183
|
-
i = !0, s.codeName =
|
|
14183
|
+
i = !0, s.codeName = ur(De(l));
|
|
14184
14184
|
}
|
|
14185
14185
|
if (t && t["!outline"]) {
|
|
14186
14186
|
var c = { summaryBelow: 1, summaryRight: 1 };
|
|
@@ -14327,7 +14327,7 @@ function Cg(t, e, r, a) {
|
|
|
14327
14327
|
return t.l && r["!links"].push([e, t.l]), t.D && (l.cm = 1), ae("c", o, l);
|
|
14328
14328
|
}
|
|
14329
14329
|
var yg = /* @__PURE__ */ function() {
|
|
14330
|
-
var t = /<(?:\w+:)?c[ \/>]/, e = /<\/(?:\w+:)?row>/, r = /r=["']([^"']*)["']/, a = /<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/, n = /ref=["']([^"']*)["']/, i =
|
|
14330
|
+
var t = /<(?:\w+:)?c[ \/>]/, e = /<\/(?:\w+:)?row>/, r = /r=["']([^"']*)["']/, a = /<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/, n = /ref=["']([^"']*)["']/, i = an("v"), s = an("f");
|
|
14331
14331
|
return function(l, c, f, h, u, p) {
|
|
14332
14332
|
for (var m = 0, d = "", g = [], v = [], w = 0, x = 0, b = 0, I = "", L, y, P = 0, N = 0, z, B, D = 0, J = 0, le = Array.isArray(p.CellXf), ne, he = [], oe = [], Fe = Array.isArray(c), U = [], de = {}, we = !1, A = !!f.sheetStubs, R = l.split(e), M = 0, O = R.length; M != O; ++M) {
|
|
14333
14333
|
d = R[M].trim();
|
|
@@ -14449,10 +14449,10 @@ function kg(t, e, r, a) {
|
|
|
14449
14449
|
var w = m ? (t[h] || [])[u] : t[l];
|
|
14450
14450
|
w !== void 0 && (o = Cg(w, l, t, e)) != null && i.push(o);
|
|
14451
14451
|
}
|
|
14452
|
-
(i.length > 0 || p && p[h]) && (d = { r: c }, p && p[h] && (g = p[h], g.hidden && (d.hidden = 1), v = -1, g.hpx ? v =
|
|
14452
|
+
(i.length > 0 || p && p[h]) && (d = { r: c }, p && p[h] && (g = p[h], g.hidden && (d.hidden = 1), v = -1, g.hpx ? v = hn(g.hpx) : g.hpt && (v = g.hpt), v > -1 && (d.ht = v, d.customHeight = 1), g.level && (d.outlineLevel = g.level)), n[n.length] = ae("row", i.join(""), d));
|
|
14453
14453
|
}
|
|
14454
14454
|
if (p) for (; h < p.length; ++h)
|
|
14455
|
-
p && p[h] && (d = { r: h + 1 }, g = p[h], g.hidden && (d.hidden = 1), v = -1, g.hpx ? v =
|
|
14455
|
+
p && p[h] && (d = { r: h + 1 }, g = p[h], g.hidden && (d.hidden = 1), v = -1, g.hpx ? v = hn(g.hpx) : g.hpt && (v = g.hpt), v > -1 && (d.ht = v, d.customHeight = 1), g.level && (d.outlineLevel = g.level), n[n.length] = ae("row", "", d));
|
|
14456
14456
|
return n.join("");
|
|
14457
14457
|
}
|
|
14458
14458
|
function cc(t, e, r, a) {
|
|
@@ -14493,7 +14493,7 @@ function Tg(t, e, r) {
|
|
|
14493
14493
|
var a = X(145), n = (r["!rows"] || [])[t] || {};
|
|
14494
14494
|
a.write_shift(4, t), a.write_shift(4, 0);
|
|
14495
14495
|
var i = 320;
|
|
14496
|
-
n.hpx ? i =
|
|
14496
|
+
n.hpx ? i = hn(n.hpx) * 20 : n.hpt && (i = n.hpt * 20), a.write_shift(2, i), a.write_shift(1, 0);
|
|
14497
14497
|
var s = 0;
|
|
14498
14498
|
n.level && (s |= n.level), n.hidden && (s |= 16), (n.hpx || n.hpt) && (s |= 32), a.write_shift(1, s), a.write_shift(1, 0);
|
|
14499
14499
|
var o = 0, l = a.l;
|
|
@@ -14797,7 +14797,7 @@ function bx(t, e, r, a, n, i, s) {
|
|
|
14797
14797
|
}), !o.supbooks && (o.supbooks = B, n.Names))
|
|
14798
14798
|
for (var D = 0; D < n.Names.length; ++D) B[0][D + 1] = n.Names[D];
|
|
14799
14799
|
var J = [], le = [], ne = !1;
|
|
14800
|
-
|
|
14800
|
+
un[16] = { n: "BrtShortReal", f: fc };
|
|
14801
14801
|
var he;
|
|
14802
14802
|
if (Lr(t, function(U, de, we) {
|
|
14803
14803
|
if (!u)
|
|
@@ -15683,7 +15683,7 @@ function iv(t, e) {
|
|
|
15683
15683
|
var r = { AppVersion: {}, WBProps: {}, WBView: [], Sheets: [], CalcPr: {}, xmlns: "" }, a = [], n = !1;
|
|
15684
15684
|
e || (e = {}), e.biff = 12;
|
|
15685
15685
|
var i = [], s = [[]];
|
|
15686
|
-
return s.SheetNames = [], s.XTI = [],
|
|
15686
|
+
return s.SheetNames = [], s.XTI = [], un[16] = { n: "BrtFRTArchID$", f: av }, Lr(t, function(l, c, f) {
|
|
15687
15687
|
switch (f) {
|
|
15688
15688
|
case 156:
|
|
15689
15689
|
s.SheetNames.push(l.name), r.Sheets.push(l);
|
|
@@ -15953,7 +15953,7 @@ function Iv(t, e, r, a) {
|
|
|
15953
15953
|
function Nv(t, e, r) {
|
|
15954
15954
|
if (t.t !== "z") {
|
|
15955
15955
|
if (!r || r.cellText !== !1) try {
|
|
15956
|
-
t.t === "e" ? t.w = t.w || Ar[t.v] : e === "General" ? t.t === "n" ? (t.v | 0) === t.v ? t.w = t.v.toString(10) : t.w =
|
|
15956
|
+
t.t === "e" ? t.w = t.w || Ar[t.v] : e === "General" ? t.t === "n" ? (t.v | 0) === t.v ? t.w = t.v.toString(10) : t.w = rn(t.v) : t.w = ta(t.v) : t.w = Av(e || "General", t.v);
|
|
15957
15957
|
} catch (i) {
|
|
15958
15958
|
if (r.WTF) throw i;
|
|
15959
15959
|
}
|
|
@@ -16049,8 +16049,8 @@ function Fi(t, e) {
|
|
|
16049
16049
|
"On/Off": '"Yes";"Yes";"No";@'
|
|
16050
16050
|
};
|
|
16051
16051
|
var o, l = [], c, f = {}, h = [], u = r.dense ? [] : {}, p = "", m = {}, d = {}, g = Yt('<Data ss:Type="String">'), v = 0, w = 0, x = 0, b = { s: { r: 2e6, c: 2e6 }, e: { r: 0, c: 0 } }, I = {}, L = {}, y = "", P = 0, N = [], z = {}, B = {}, D = 0, J = [], le = [], ne = {}, he = [], oe, Fe = !1, U = [], de = [], we = {}, A = 0, R = 0, M = { Sheets: [], WBProps: { date1904: !1 } }, O = {};
|
|
16052
|
-
|
|
16053
|
-
for (var K = ""; o =
|
|
16052
|
+
sn.lastIndex = 0, a = a.replace(/<!--([\s\S]*?)-->/mg, "");
|
|
16053
|
+
for (var K = ""; o = sn.exec(a); ) switch (o[3] = (K = o[3]).toLowerCase()) {
|
|
16054
16054
|
case "data":
|
|
16055
16055
|
if (K == "data") {
|
|
16056
16056
|
if (o[1] === "/") {
|
|
@@ -16076,7 +16076,7 @@ function Fi(t, e) {
|
|
|
16076
16076
|
m = Lv(o[0]), m.Index && (w = +m.Index - 1), w < b.s.c && (b.s.c = w), w > b.e.c && (b.e.c = w), o[0].slice(-2) === "/>" && ++w, le = [];
|
|
16077
16077
|
break;
|
|
16078
16078
|
case "row":
|
|
16079
|
-
o[1] === "/" || o[0].slice(-2) === "/>" ? (x < b.s.r && (b.s.r = x), x > b.e.r && (b.e.r = x), o[0].slice(-2) === "/>" && (d = Yt(o[0]), d.Index && (x = +d.Index - 1)), w = 0, ++x) : (d = Yt(o[0]), d.Index && (x = +d.Index - 1), we = {}, (d.AutoFitHeight == "0" || d.Height) && (we.hpx = parseInt(d.Height, 10), we.hpt =
|
|
16079
|
+
o[1] === "/" || o[0].slice(-2) === "/>" ? (x < b.s.r && (b.s.r = x), x > b.e.r && (b.e.r = x), o[0].slice(-2) === "/>" && (d = Yt(o[0]), d.Index && (x = +d.Index - 1)), w = 0, ++x) : (d = Yt(o[0]), d.Index && (x = +d.Index - 1), we = {}, (d.AutoFitHeight == "0" || d.Height) && (we.hpx = parseInt(d.Height, 10), we.hpt = hn(we.hpx), de[x] = we), d.Hidden == "1" && (we.hidden = !0, de[x] = we));
|
|
16080
16080
|
break;
|
|
16081
16081
|
case "worksheet":
|
|
16082
16082
|
if (o[1] === "/") {
|
|
@@ -17077,7 +17077,7 @@ function zv(t, e, r, a) {
|
|
|
17077
17077
|
t["!cols"] && t["!cols"].forEach(function(g, v) {
|
|
17078
17078
|
Rr(g);
|
|
17079
17079
|
var w = !!g.width, x = mi(v, g), b = { "ss:Index": v + 1 };
|
|
17080
|
-
w && (b["ss:Width"] =
|
|
17080
|
+
w && (b["ss:Width"] = cn(x.width)), g.hidden && (b["ss:Hidden"] = "1"), o.push(ae("Column", null, b));
|
|
17081
17081
|
});
|
|
17082
17082
|
for (var l = Array.isArray(t), c = n.s.r; c <= n.e.r; ++c) {
|
|
17083
17083
|
for (var f = [Gv(c, (t["!rows"] || [])[c])], h = n.s.c; h <= n.e.c; ++h) {
|
|
@@ -17155,7 +17155,7 @@ function Jv(t, e, r, a, n) {
|
|
|
17155
17155
|
if (h.length < a) throw "XLS Record 0x" + t.toString(16) + " Truncated: " + h.length + " < " + a;
|
|
17156
17156
|
return e.f(h, h.length, n);
|
|
17157
17157
|
}
|
|
17158
|
-
function
|
|
17158
|
+
function or(t, e, r) {
|
|
17159
17159
|
if (t.t !== "z" && t.XF) {
|
|
17160
17160
|
var a = 0;
|
|
17161
17161
|
try {
|
|
@@ -17164,7 +17164,7 @@ function sr(t, e, r) {
|
|
|
17164
17164
|
if (e.WTF) throw i;
|
|
17165
17165
|
}
|
|
17166
17166
|
if (!e || e.cellText !== !1) try {
|
|
17167
|
-
t.t === "e" ? t.w = t.w || Ar[t.v] : a === 0 || a == "General" ? t.t === "n" ? (t.v | 0) === t.v ? t.w = t.v.toString(10) : t.w =
|
|
17167
|
+
t.t === "e" ? t.w = t.w || Ar[t.v] : a === 0 || a == "General" ? t.t === "n" ? (t.v | 0) === t.v ? t.w = t.v.toString(10) : t.w = rn(t.v) : t.w = ta(t.v) : t.w = jt(a, t.v, { date1904: !!r, dateNF: e && e.dateNF });
|
|
17168
17168
|
} catch (i) {
|
|
17169
17169
|
if (e.WTF) throw i;
|
|
17170
17170
|
}
|
|
@@ -17174,7 +17174,7 @@ function sr(t, e, r) {
|
|
|
17174
17174
|
}
|
|
17175
17175
|
}
|
|
17176
17176
|
}
|
|
17177
|
-
function
|
|
17177
|
+
function Mn(t, e, r) {
|
|
17178
17178
|
return { v: t, ixfe: e, t: r };
|
|
17179
17179
|
}
|
|
17180
17180
|
function qv(t, e) {
|
|
@@ -17185,7 +17185,7 @@ function qv(t, e) {
|
|
|
17185
17185
|
if (!(!it || !it.patternType || !Vt || !Vt.cellStyles)) {
|
|
17186
17186
|
Ze.s = {}, Ze.s.patternType = it.patternType;
|
|
17187
17187
|
var $r;
|
|
17188
|
-
($r =
|
|
17188
|
+
($r = ln(N(it.icvFore))) && (Ze.s.fgColor = { rgb: $r }), ($r = ln(N(it.icvBack))) && (Ze.s.bgColor = { rgb: $r });
|
|
17189
17189
|
}
|
|
17190
17190
|
}, B = function(Te, Ze, Vt) {
|
|
17191
17191
|
if (!(we > 1) && !(Vt.sheetRows && Te.r >= Vt.sheetRows)) {
|
|
@@ -17403,19 +17403,19 @@ function qv(t, e) {
|
|
|
17403
17403
|
case 515:
|
|
17404
17404
|
case 3:
|
|
17405
17405
|
case 2:
|
|
17406
|
-
n["!type"] == "chart" && (e.dense ? (n[F.r] || [])[F.c] : n[ge({ c: F.c, r: F.r })]) && ++F.c, x = { ixfe: F.ixfe, XF: I[F.ixfe] || {}, v: F.val, t: "n" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]),
|
|
17406
|
+
n["!type"] == "chart" && (e.dense ? (n[F.r] || [])[F.c] : n[ge({ c: F.c, r: F.r })]) && ++F.c, x = { ixfe: F.ixfe, XF: I[F.ixfe] || {}, v: F.val, t: "n" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e);
|
|
17407
17407
|
break;
|
|
17408
17408
|
case 5:
|
|
17409
17409
|
case 517:
|
|
17410
|
-
x = { ixfe: F.ixfe, XF: I[F.ixfe], v: F.val, t: F.t }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]),
|
|
17410
|
+
x = { ixfe: F.ixfe, XF: I[F.ixfe], v: F.val, t: F.t }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e);
|
|
17411
17411
|
break;
|
|
17412
17412
|
case 638:
|
|
17413
|
-
x = { ixfe: F.ixfe, XF: I[F.ixfe], v: F.rknum, t: "n" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]),
|
|
17413
|
+
x = { ixfe: F.ixfe, XF: I[F.ixfe], v: F.rknum, t: "n" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e);
|
|
17414
17414
|
break;
|
|
17415
17415
|
case 189:
|
|
17416
17416
|
for (var be = F.c; be <= F.C; ++be) {
|
|
17417
17417
|
var ce = F.rkrec[be - F.c][0];
|
|
17418
|
-
x = { ixfe: ce, XF: I[ce], v: F.rkrec[be - F.c][1], t: "n" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]),
|
|
17418
|
+
x = { ixfe: ce, XF: I[ce], v: F.rkrec[be - F.c][1], t: "n" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B({ c: be, r: F.r }, x, e);
|
|
17419
17419
|
}
|
|
17420
17420
|
break;
|
|
17421
17421
|
case 6:
|
|
@@ -17426,20 +17426,20 @@ function qv(t, e) {
|
|
|
17426
17426
|
o = F;
|
|
17427
17427
|
break;
|
|
17428
17428
|
}
|
|
17429
|
-
if (x =
|
|
17429
|
+
if (x = Mn(F.val, F.cell.ixfe, F.tt), x.XF = I[x.ixfe], e.cellFormula) {
|
|
17430
17430
|
var qe = F.formula;
|
|
17431
17431
|
if (qe && qe[0] && qe[0][0] && qe[0][0][0] == "PtgExp") {
|
|
17432
|
-
var Bt = qe[0][0][1][0],
|
|
17433
|
-
v[xr] ? x.f = "" + vt(F.formula, s, F.cell, U, D) : x.F = ((e.dense ? (n[Bt] || [])[
|
|
17432
|
+
var Bt = qe[0][0][1][0], ir = qe[0][0][1][1], xr = ge({ r: Bt, c: ir });
|
|
17433
|
+
v[xr] ? x.f = "" + vt(F.formula, s, F.cell, U, D) : x.F = ((e.dense ? (n[Bt] || [])[ir] : n[xr]) || {}).F;
|
|
17434
17434
|
} else x.f = "" + vt(F.formula, s, F.cell, U, D);
|
|
17435
17435
|
}
|
|
17436
|
-
A > 0 && (x.z = R[x.ixfe >> 8 & 63]),
|
|
17436
|
+
A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B(F.cell, x, e), o = F;
|
|
17437
17437
|
}
|
|
17438
17438
|
break;
|
|
17439
17439
|
case 7:
|
|
17440
17440
|
case 519:
|
|
17441
17441
|
if (o)
|
|
17442
|
-
o.val = F, x =
|
|
17442
|
+
o.val = F, x = Mn(F, o.cell.ixfe, "s"), x.XF = I[x.ixfe], e.cellFormula && (x.f = "" + vt(o.formula, s, o.cell, U, D)), A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B(o.cell, x, e), o = null;
|
|
17443
17443
|
else throw new Error("String record expects Formula");
|
|
17444
17444
|
break;
|
|
17445
17445
|
case 33:
|
|
@@ -17463,22 +17463,22 @@ function qv(t, e) {
|
|
|
17463
17463
|
}
|
|
17464
17464
|
break;
|
|
17465
17465
|
case 253:
|
|
17466
|
-
x =
|
|
17466
|
+
x = Mn(l[F.isst].t, F.ixfe, "s"), l[F.isst].h && (x.h = l[F.isst].h), x.XF = I[x.ixfe], A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e);
|
|
17467
17467
|
break;
|
|
17468
17468
|
case 513:
|
|
17469
|
-
e.sheetStubs && (x = { ixfe: F.ixfe, XF: I[F.ixfe], t: "z" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]),
|
|
17469
|
+
e.sheetStubs && (x = { ixfe: F.ixfe, XF: I[F.ixfe], t: "z" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e));
|
|
17470
17470
|
break;
|
|
17471
17471
|
case 190:
|
|
17472
17472
|
if (e.sheetStubs)
|
|
17473
17473
|
for (var Ir = F.c; Ir <= F.C; ++Ir) {
|
|
17474
17474
|
var It = F.ixfe[Ir - F.c];
|
|
17475
|
-
x = { ixfe: It, XF: I[It], t: "z" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]),
|
|
17475
|
+
x = { ixfe: It, XF: I[It], t: "z" }, A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B({ c: Ir, r: F.r }, x, e);
|
|
17476
17476
|
}
|
|
17477
17477
|
break;
|
|
17478
17478
|
case 214:
|
|
17479
17479
|
case 516:
|
|
17480
17480
|
case 4:
|
|
17481
|
-
x =
|
|
17481
|
+
x = Mn(F.val, F.ixfe, "s"), x.XF = I[x.ixfe], A > 0 && (x.z = R[x.ixfe >> 8 & 63]), or(x, e, r.opts.Date1904), B({ c: F.c, r: F.r }, x, e);
|
|
17482
17482
|
break;
|
|
17483
17483
|
case 0:
|
|
17484
17484
|
case 512:
|
|
@@ -17575,12 +17575,12 @@ function qv(t, e) {
|
|
|
17575
17575
|
} else
|
|
17576
17576
|
q || console.error("Missing Info for XLS Record 0x" + re.toString(16)), t.l += Q;
|
|
17577
17577
|
}
|
|
17578
|
-
return r.SheetNames = Je(i).sort(function(
|
|
17579
|
-
return Number(
|
|
17580
|
-
}).map(function(
|
|
17581
|
-
return i[
|
|
17582
|
-
}), e.bookSheets || (r.Sheets = a), !r.SheetNames.length && f["!ref"] ? (r.SheetNames.push("Sheet1"), r.Sheets && (r.Sheets.Sheet1 = f)) : r.Preamble = f, r.Sheets && M.forEach(function(
|
|
17583
|
-
r.Sheets[r.SheetNames[Te]]["!autofilter"] =
|
|
17578
|
+
return r.SheetNames = Je(i).sort(function(sr, Te) {
|
|
17579
|
+
return Number(sr) - Number(Te);
|
|
17580
|
+
}).map(function(sr) {
|
|
17581
|
+
return i[sr].name;
|
|
17582
|
+
}), e.bookSheets || (r.Sheets = a), !r.SheetNames.length && f["!ref"] ? (r.SheetNames.push("Sheet1"), r.Sheets && (r.Sheets.Sheet1 = f)) : r.Preamble = f, r.Sheets && M.forEach(function(sr, Te) {
|
|
17583
|
+
r.Sheets[r.SheetNames[Te]]["!autofilter"] = sr;
|
|
17584
17584
|
}), r.Strings = l, r.SSF = We(me), D.enc && (r.Encryption = D.enc), J && (r.Themes = J), r.Metadata = {}, b !== void 0 && (r.Metadata.Country = b), U.names.length > 0 && (y.Names = U.names), r.Workbook = y, r;
|
|
17585
17585
|
}
|
|
17586
17586
|
var Za = {
|
|
@@ -17676,7 +17676,7 @@ function e5(t, e) {
|
|
|
17676
17676
|
}
|
|
17677
17677
|
return pe.utils.cfb_add(a, n, wc(t, r)), r.biff == 8 && (t.Props || t.Custprops) && Qv(t, a), r.biff == 8 && t.vbaraw && dm(a, pe.read(t.vbaraw, { type: typeof t.vbaraw == "string" ? "binary" : "buffer" })), a;
|
|
17678
17678
|
}
|
|
17679
|
-
var
|
|
17679
|
+
var un = {
|
|
17680
17680
|
/*::[*/
|
|
17681
17681
|
0: {
|
|
17682
17682
|
/* n:"BrtRowHdr", */
|
|
@@ -22552,7 +22552,7 @@ var hn = {
|
|
|
22552
22552
|
/*::[*/
|
|
22553
22553
|
442: {
|
|
22554
22554
|
/* n:"CodeName", */
|
|
22555
|
-
f:
|
|
22555
|
+
f: vn
|
|
22556
22556
|
},
|
|
22557
22557
|
/*::[*/
|
|
22558
22558
|
443: {
|
|
@@ -22712,7 +22712,7 @@ var hn = {
|
|
|
22712
22712
|
/*::[*/
|
|
22713
22713
|
2057: {
|
|
22714
22714
|
/* n:"BOF", */
|
|
22715
|
-
f:
|
|
22715
|
+
f: An
|
|
22716
22716
|
},
|
|
22717
22717
|
/*::[*/
|
|
22718
22718
|
2058: {
|
|
@@ -23335,7 +23335,7 @@ var hn = {
|
|
|
23335
23335
|
/*::[*/
|
|
23336
23336
|
9: {
|
|
23337
23337
|
/* n:"BOF", */
|
|
23338
|
-
f:
|
|
23338
|
+
f: An
|
|
23339
23339
|
},
|
|
23340
23340
|
/*::[*/
|
|
23341
23341
|
11: {
|
|
@@ -23532,7 +23532,7 @@ var hn = {
|
|
|
23532
23532
|
/*::[*/
|
|
23533
23533
|
521: {
|
|
23534
23534
|
/* n:"BOF", */
|
|
23535
|
-
f:
|
|
23535
|
+
f: An
|
|
23536
23536
|
},
|
|
23537
23537
|
/*::[*/
|
|
23538
23538
|
536: {
|
|
@@ -23560,7 +23560,7 @@ var hn = {
|
|
|
23560
23560
|
/*::[*/
|
|
23561
23561
|
1033: {
|
|
23562
23562
|
/* n:"BOF", */
|
|
23563
|
-
f:
|
|
23563
|
+
f: An
|
|
23564
23564
|
},
|
|
23565
23565
|
/*::[*/
|
|
23566
23566
|
1091: {
|
|
@@ -23657,16 +23657,16 @@ function t5(t, e, r, a) {
|
|
|
23657
23657
|
}
|
|
23658
23658
|
}
|
|
23659
23659
|
}
|
|
23660
|
-
function
|
|
23660
|
+
function yn(t, e, r) {
|
|
23661
23661
|
return t || (t = X(7)), t.write_shift(2, e), t.write_shift(2, r), t.write_shift(2, 0), t.write_shift(1, 0), t;
|
|
23662
23662
|
}
|
|
23663
23663
|
function r5(t, e, r, a) {
|
|
23664
23664
|
var n = X(9);
|
|
23665
|
-
return
|
|
23665
|
+
return yn(n, t, e), Tl(r, a || "b", n), n;
|
|
23666
23666
|
}
|
|
23667
23667
|
function a5(t, e, r) {
|
|
23668
23668
|
var a = X(8 + 2 * r.length);
|
|
23669
|
-
return
|
|
23669
|
+
return yn(a, t, e), a.write_shift(1, r.length), a.write_shift(r.length, r, "sbcs"), a.l < a.length ? a.slice(0, a.l) : a;
|
|
23670
23670
|
}
|
|
23671
23671
|
function n5(t, e, r, a) {
|
|
23672
23672
|
if (e.v != null) switch (e.t) {
|
|
@@ -23685,7 +23685,7 @@ function n5(t, e, r, a) {
|
|
|
23685
23685
|
ie(t, 4, a5(r, a, (e.v || "").slice(0, 255)));
|
|
23686
23686
|
return;
|
|
23687
23687
|
}
|
|
23688
|
-
ie(t, 1,
|
|
23688
|
+
ie(t, 1, yn(null, r, a));
|
|
23689
23689
|
}
|
|
23690
23690
|
function i5(t, e, r, a) {
|
|
23691
23691
|
var n = Array.isArray(e), i = Ne(e["!ref"] || "A1"), s, o = "", l = [];
|
|
@@ -24042,7 +24042,7 @@ var r0 = {
|
|
|
24042
24042
|
};
|
|
24043
24043
|
function kc(t, e) {
|
|
24044
24044
|
var r = e || {}, a = ds(t), n = [], i, s, o = { name: "" }, l = "", c = 0, f, h, u = {}, p = [], m = r.dense ? [] : {}, d, g, v = { value: "" }, w = "", x = 0, b = [], I = -1, L = -1, y = { s: { r: 1e6, c: 1e7 }, e: { r: 0, c: 0 } }, P = 0, N = {}, z = [], B = {}, D = 0, J = 0, le = [], ne = 1, he = 1, oe = [], Fe = { Names: [] }, U = {}, de = ["", ""], we = [], A = {}, R = "", M = 0, O = !1, K = !1, te = 0;
|
|
24045
|
-
for (
|
|
24045
|
+
for (sn.lastIndex = 0, a = a.replace(/<!--([\s\S]*?)-->/mg, "").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm, ""); d = sn.exec(a); ) switch (d[3] = d[3].replace(/_.*$/, "")) {
|
|
24046
24046
|
case "table":
|
|
24047
24047
|
case "工作表":
|
|
24048
24048
|
d[1] === "/" ? (y.e.c >= y.s.c && y.e.r >= y.s.r ? m["!ref"] = Ce(y) : m["!ref"] = "A1:A1", r.sheetRows > 0 && r.sheetRows <= y.e.r && (m["!fullref"] = m["!ref"], y.e.r = r.sheetRows - 1, m["!ref"] = Ce(y)), z.length && (m["!merges"] = z), le.length && (m["!rows"] = le), f.name = f.名称 || f.name, typeof JSON < "u" && JSON.stringify(f), p.push(f.name), u[f.name] = m, K = !1) : d[0].charAt(d[0].length - 2) !== "/" && (f = ve(d[0], !1), I = L = -1, y.s.r = y.s.c = 1e7, y.e.r = y.e.c = 0, m = r.dense ? [] : {}, z = [], le = [], K = !0);
|
|
@@ -24673,7 +24673,7 @@ var T5 = /* @__PURE__ */ function() {
|
|
|
24673
24673
|
'<style:footer-left style:display="false"/>',
|
|
24674
24674
|
"</style:master-page>",
|
|
24675
24675
|
"</office:master-styles>"
|
|
24676
|
-
].join(""), e = "<office:document-styles " +
|
|
24676
|
+
].join(""), e = "<office:document-styles " + nn({
|
|
24677
24677
|
"xmlns:office": "urn:oasis:names:tc:opendocument:xmlns:office:1.0",
|
|
24678
24678
|
"xmlns:table": "urn:oasis:names:tc:opendocument:xmlns:table:1.0",
|
|
24679
24679
|
"xmlns:style": "urn:oasis:names:tc:opendocument:xmlns:style:1.0",
|
|
@@ -24813,7 +24813,7 @@ var T5 = /* @__PURE__ */ function() {
|
|
|
24813
24813
|
`);
|
|
24814
24814
|
};
|
|
24815
24815
|
return function(s, o) {
|
|
24816
|
-
var l = [tt], c =
|
|
24816
|
+
var l = [tt], c = nn({
|
|
24817
24817
|
"xmlns:office": "urn:oasis:names:tc:opendocument:xmlns:office:1.0",
|
|
24818
24818
|
"xmlns:table": "urn:oasis:names:tc:opendocument:xmlns:table:1.0",
|
|
24819
24819
|
"xmlns:style": "urn:oasis:names:tc:opendocument:xmlns:style:1.0",
|
|
@@ -24851,7 +24851,7 @@ var T5 = /* @__PURE__ */ function() {
|
|
|
24851
24851
|
"xmlns:formx": "urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0",
|
|
24852
24852
|
"xmlns:css3t": "http://www.w3.org/TR/css3-text/",
|
|
24853
24853
|
"office:version": "1.2"
|
|
24854
|
-
}), f =
|
|
24854
|
+
}), f = nn({
|
|
24855
24855
|
"xmlns:config": "urn:oasis:names:tc:opendocument:xmlns:config:1.0",
|
|
24856
24856
|
"office:mimetype": "application/vnd.oasis.opendocument.spreadsheet"
|
|
24857
24857
|
});
|
|
@@ -24887,7 +24887,7 @@ function Yi(t) {
|
|
|
24887
24887
|
return typeof TextDecoder < "u" ? new TextDecoder().decode(t) : Re(Hr(t));
|
|
24888
24888
|
}
|
|
24889
24889
|
function S5(t) {
|
|
24890
|
-
return typeof TextEncoder < "u" ? new TextEncoder().encode(t) : Pt(
|
|
24890
|
+
return typeof TextEncoder < "u" ? new TextEncoder().encode(t) : Pt(ur(t));
|
|
24891
24891
|
}
|
|
24892
24892
|
function b5(t, e) {
|
|
24893
24893
|
e:
|
|
@@ -24922,7 +24922,7 @@ function L5(t, e, r) {
|
|
|
24922
24922
|
t[e + i] = n & 255;
|
|
24923
24923
|
t[e + 15] |= r >= 0 ? 0 : 128;
|
|
24924
24924
|
}
|
|
24925
|
-
function
|
|
24925
|
+
function dn(t, e) {
|
|
24926
24926
|
var r = e ? e[0] : 0, a = t[r] & 127;
|
|
24927
24927
|
e:
|
|
24928
24928
|
if (t[r++] >= 128 && (a |= (t[r] & 127) << 7, t[r++] < 128 || (a |= (t[r] & 127) << 14, t[r++] < 128) || (a |= (t[r] & 127) << 21, t[r++] < 128) || (a += (t[r] & 127) * Math.pow(2, 28), ++r, t[r++] < 128) || (a += (t[r] & 127) * Math.pow(2, 35), ++r, t[r++] < 128) || (a += (t[r] & 127) * Math.pow(2, 42), ++r, t[r++] < 128)))
|
|
@@ -24953,7 +24953,7 @@ function Ye(t) {
|
|
|
24953
24953
|
}
|
|
24954
24954
|
function Me(t) {
|
|
24955
24955
|
for (var e = [], r = [0]; r[0] < t.length; ) {
|
|
24956
|
-
var a = r[0], n =
|
|
24956
|
+
var a = r[0], n = dn(t, r), i = n & 7;
|
|
24957
24957
|
n = Math.floor(n / 8);
|
|
24958
24958
|
var s = 0, o;
|
|
24959
24959
|
if (n == 0)
|
|
@@ -24973,7 +24973,7 @@ function Me(t) {
|
|
|
24973
24973
|
s = 8, o = t.slice(r[0], r[0] + s), r[0] += s;
|
|
24974
24974
|
break;
|
|
24975
24975
|
case 2:
|
|
24976
|
-
s =
|
|
24976
|
+
s = dn(t, r), o = t.slice(r[0], r[0] + s), r[0] += s;
|
|
24977
24977
|
break;
|
|
24978
24978
|
case 3:
|
|
24979
24979
|
case 4:
|
|
@@ -25000,7 +25000,7 @@ function Ds(t, e) {
|
|
|
25000
25000
|
}
|
|
25001
25001
|
function Wt(t) {
|
|
25002
25002
|
for (var e, r = [], a = [0]; a[0] < t.length; ) {
|
|
25003
|
-
var n =
|
|
25003
|
+
var n = dn(t, a), i = Me(t.slice(a[0], a[0] + n));
|
|
25004
25004
|
a[0] += n;
|
|
25005
25005
|
var s = {
|
|
25006
25006
|
id: Ye(i[1][0].data),
|
|
@@ -25034,7 +25034,7 @@ function pa(t) {
|
|
|
25034
25034
|
function A5(t, e) {
|
|
25035
25035
|
if (t != 0)
|
|
25036
25036
|
throw new Error("Unexpected Snappy chunk type ".concat(t));
|
|
25037
|
-
for (var r = [0], a =
|
|
25037
|
+
for (var r = [0], a = dn(e, r), n = []; r[0] < e.length; ) {
|
|
25038
25038
|
var i = e[r[0]] & 3;
|
|
25039
25039
|
if (i == 0) {
|
|
25040
25040
|
var s = e[r[0]++] >> 2;
|
|
@@ -25213,7 +25213,7 @@ function M5(t, e, r) {
|
|
|
25213
25213
|
}
|
|
25214
25214
|
function xt(t) {
|
|
25215
25215
|
var e = Me(t);
|
|
25216
|
-
return
|
|
25216
|
+
return dn(e[1][0].data);
|
|
25217
25217
|
}
|
|
25218
25218
|
function o0(t, e) {
|
|
25219
25219
|
var r = Me(e.data), a = Ye(r[1][0].data), n = r[3], i = [];
|
|
@@ -25643,7 +25643,7 @@ function G5(t, e, r, a, n, i, s, o, l, c, f, h) {
|
|
|
25643
25643
|
break;
|
|
25644
25644
|
case "chart":
|
|
25645
25645
|
if (p = dv(u, e, n, l, i[a], c, f, h), !p || !p["!drawel"]) break;
|
|
25646
|
-
var m = Ga(p["!drawel"].Target, e), d =
|
|
25646
|
+
var m = Ga(p["!drawel"].Target, e), d = on(m), g = Qp(Dt(t, m, !0), Ka(Dt(t, d, !0), m)), v = Ga(g, m), w = on(v);
|
|
25647
25647
|
p = Hx(Dt(t, v, !0), v, l, Ka(Dt(t, w, !0), v), c, p);
|
|
25648
25648
|
break;
|
|
25649
25649
|
case "macro":
|
|
@@ -25706,7 +25706,7 @@ function z5(t, e) {
|
|
|
25706
25706
|
}
|
|
25707
25707
|
n.links.map(function(le) {
|
|
25708
25708
|
try {
|
|
25709
|
-
var ne = Ka(Dt(t,
|
|
25709
|
+
var ne = Ka(Dt(t, on(Ht(le))), le);
|
|
25710
25710
|
return Cv(at(t, Ht(le)), ne, le, e);
|
|
25711
25711
|
} catch {
|
|
25712
25712
|
}
|
|
@@ -25819,7 +25819,7 @@ function K5(t, e) {
|
|
|
25819
25819
|
var p = h["!comments"], m = !1, d = "";
|
|
25820
25820
|
p && p.length > 0 && (d = "xl/comments" + o + "." + r, ye(i, d, bv(p, d)), n.comments.push(d), Pe(f, -1, "../comments" + o + "." + r, Se.CMNT), m = !0), h["!legacy"] && m && ye(i, "xl/drawings/vmlDrawing" + o + ".vml", Jl(o, h["!comments"])), delete h["!comments"], delete h["!legacy"];
|
|
25821
25821
|
}
|
|
25822
|
-
f["!id"].rId1 && ye(i,
|
|
25822
|
+
f["!id"].rId1 && ye(i, on(s), Ta(f));
|
|
25823
25823
|
}
|
|
25824
25824
|
return e.Strings != null && e.Strings.length > 0 && (s = "xl/sharedStrings." + r, ye(i, s, Sv(e.Strings, s, e)), n.strs.push(s), Pe(e.wbrels, -1, "sharedStrings." + r, Se.SST)), s = "xl/workbook." + r, ye(i, s, kv(t, s)), n.workbooks.push(s), Pe(e.rels, 1, s, Se.WB), s = "xl/theme/theme1.xml", ye(i, s, Ls(t.Themes, e)), n.themes.push(s), Pe(e.wbrels, -1, "theme/theme1.xml", Se.THEME), s = "xl/styles." + r, ye(i, s, Tv(t, s, e)), n.styles.push(s), Pe(e.wbrels, -1, "styles." + r, Se.STY), t.vbaraw && a && (s = "xl/vbaProject.bin", ye(i, s, t.vbaraw), n.vba.push(s), Pe(e.wbrels, -1, "vbaProject.bin", Se.VBA)), s = "xl/metadata." + r, ye(i, s, Fv(s)), n.metadata.push(s), Pe(e.wbrels, -1, "metadata." + r, Se.XLMETA), ye(i, "[Content_Types].xml", hl(n, e)), ye(i, "_rels/.rels", Ta(e.rels)), ye(i, "xl/_rels/workbook." + r + ".rels", Ta(e.wbrels)), delete e.revssf, delete e.ssf, i;
|
|
25825
25825
|
}
|
|
@@ -25857,7 +25857,7 @@ function Y5(t, e) {
|
|
|
25857
25857
|
}
|
|
25858
25858
|
u["!legacy"] && d && ye(i, "xl/drawings/vmlDrawing" + o + ".vml", Jl(o, u["!comments"])), delete u["!comments"], delete u["!legacy"];
|
|
25859
25859
|
}
|
|
25860
|
-
h["!id"].rId1 && ye(i,
|
|
25860
|
+
h["!id"].rId1 && ye(i, on(s), Ta(h));
|
|
25861
25861
|
}
|
|
25862
25862
|
return e.Strings != null && e.Strings.length > 0 && (s = "xl/sharedStrings." + r, ye(i, s, Bl(e.Strings, e)), n.strs.push(s), Pe(e.wbrels, -1, "sharedStrings." + r, Se.SST)), s = "xl/workbook." + r, ye(i, s, pc(t)), n.workbooks.push(s), Pe(e.rels, 1, s, Se.WB), s = "xl/theme/theme1.xml", ye(i, s, Ls(t.Themes, e)), n.themes.push(s), Pe(e.wbrels, -1, "theme/theme1.xml", Se.THEME), s = "xl/styles." + r, ye(i, s, Xl(t, e)), n.styles.push(s), Pe(e.wbrels, -1, "styles." + r, Se.STY), t.vbaraw && a && (s = "xl/vbaProject.bin", ye(i, s, t.vbaraw), n.vba.push(s), Pe(e.wbrels, -1, "vbaProject.bin", Se.VBA)), s = "xl/metadata." + r, ye(i, s, Yl()), n.metadata.push(s), Pe(e.wbrels, -1, "metadata." + r, Se.XLMETA), f.length > 1 && (s = "xl/persons/person.xml", ye(i, s, nm(f)), n.people.push(s), Pe(e.wbrels, -1, "persons/person.xml", Se.PEOPLE)), ye(i, "[Content_Types].xml", hl(n, e)), ye(i, "_rels/.rels", Ta(e.rels)), ye(i, "xl/_rels/workbook." + r + ".rels", Ta(e.wbrels)), delete e.revssf, delete e.ssf, i;
|
|
25863
25863
|
}
|
|
@@ -25926,7 +25926,7 @@ function Q5(t, e) {
|
|
|
25926
25926
|
return e.type == "base64" && (r = Rt(r)), r = Bi.utils.decode(1200, r.slice(2), "str"), e.type = "binary", Sc(r, e);
|
|
25927
25927
|
}
|
|
25928
25928
|
function e4(t) {
|
|
25929
|
-
return t.match(/[^\x00-\x7F]/) ?
|
|
25929
|
+
return t.match(/[^\x00-\x7F]/) ? ur(t) : t;
|
|
25930
25930
|
}
|
|
25931
25931
|
function Ni(t, e, r, a) {
|
|
25932
25932
|
return a ? (r.type = "string", Aa.to_workbook(t, r)) : Aa.to_workbook(e, r);
|
|
@@ -25999,7 +25999,7 @@ function bc(t, e) {
|
|
|
25999
25999
|
e.type = "";
|
|
26000
26000
|
break;
|
|
26001
26001
|
case "file":
|
|
26002
|
-
return
|
|
26002
|
+
return mn(e.file, pe.write(t, { type: _e ? "buffer" : "" }));
|
|
26003
26003
|
case "string":
|
|
26004
26004
|
throw new Error("'string' output type invalid for '" + e.bookType + "' files");
|
|
26005
26005
|
default:
|
|
@@ -26038,7 +26038,7 @@ function r4(t, e) {
|
|
|
26038
26038
|
if (e.type == "binary" || e.type == "base64") return n;
|
|
26039
26039
|
n = new Uint8Array(oi(n));
|
|
26040
26040
|
}
|
|
26041
|
-
return e.password && typeof encrypt_agile < "u" ? bc(encrypt_agile(n, e.password), e) : e.type === "file" ?
|
|
26041
|
+
return e.password && typeof encrypt_agile < "u" ? bc(encrypt_agile(n, e.password), e) : e.type === "file" ? mn(e.file, n) : e.type == "string" ? Re(
|
|
26042
26042
|
/*::(*/
|
|
26043
26043
|
n
|
|
26044
26044
|
/*:: :any)*/
|
|
@@ -26048,20 +26048,20 @@ function a4(t, e) {
|
|
|
26048
26048
|
var r = e || {}, a = e5(t, r);
|
|
26049
26049
|
return bc(a, r);
|
|
26050
26050
|
}
|
|
26051
|
-
function
|
|
26051
|
+
function fr(t, e, r) {
|
|
26052
26052
|
r || (r = "");
|
|
26053
26053
|
var a = r + t;
|
|
26054
26054
|
switch (e.type) {
|
|
26055
26055
|
case "base64":
|
|
26056
|
-
return
|
|
26056
|
+
return tn(ur(a));
|
|
26057
26057
|
case "binary":
|
|
26058
|
-
return
|
|
26058
|
+
return ur(a);
|
|
26059
26059
|
case "string":
|
|
26060
26060
|
return t;
|
|
26061
26061
|
case "file":
|
|
26062
|
-
return
|
|
26062
|
+
return mn(e.file, a, "utf8");
|
|
26063
26063
|
case "buffer":
|
|
26064
|
-
return _e ? Fr(a, "utf8") : typeof TextEncoder < "u" ? new TextEncoder().encode(a) :
|
|
26064
|
+
return _e ? Fr(a, "utf8") : typeof TextEncoder < "u" ? new TextEncoder().encode(a) : fr(a, { type: "binary" }).split("").map(function(n) {
|
|
26065
26065
|
return n.charCodeAt(0);
|
|
26066
26066
|
});
|
|
26067
26067
|
}
|
|
@@ -26070,14 +26070,14 @@ function cr(t, e, r) {
|
|
|
26070
26070
|
function n4(t, e) {
|
|
26071
26071
|
switch (e.type) {
|
|
26072
26072
|
case "base64":
|
|
26073
|
-
return
|
|
26073
|
+
return tn(t);
|
|
26074
26074
|
case "binary":
|
|
26075
26075
|
return t;
|
|
26076
26076
|
case "string":
|
|
26077
26077
|
return t;
|
|
26078
26078
|
/* override in sheet_to_txt */
|
|
26079
26079
|
case "file":
|
|
26080
|
-
return
|
|
26080
|
+
return mn(e.file, t, "binary");
|
|
26081
26081
|
case "buffer":
|
|
26082
26082
|
return _e ? Fr(t, "binary") : t.split("").map(function(r) {
|
|
26083
26083
|
return r.charCodeAt(0);
|
|
@@ -26085,15 +26085,15 @@ function n4(t, e) {
|
|
|
26085
26085
|
}
|
|
26086
26086
|
throw new Error("Unrecognized type " + e.type);
|
|
26087
26087
|
}
|
|
26088
|
-
function
|
|
26088
|
+
function On(t, e) {
|
|
26089
26089
|
switch (e.type) {
|
|
26090
26090
|
case "string":
|
|
26091
26091
|
case "base64":
|
|
26092
26092
|
case "binary":
|
|
26093
26093
|
for (var r = "", a = 0; a < t.length; ++a) r += String.fromCharCode(t[a]);
|
|
26094
|
-
return e.type == "base64" ?
|
|
26094
|
+
return e.type == "base64" ? tn(r) : e.type == "string" ? Re(r) : r;
|
|
26095
26095
|
case "file":
|
|
26096
|
-
return
|
|
26096
|
+
return mn(e.file, t);
|
|
26097
26097
|
case "buffer":
|
|
26098
26098
|
return t;
|
|
26099
26099
|
default:
|
|
@@ -26114,33 +26114,33 @@ function Fc(t, e) {
|
|
|
26114
26114
|
switch (r.bookType || "xlsb") {
|
|
26115
26115
|
case "xml":
|
|
26116
26116
|
case "xlml":
|
|
26117
|
-
return
|
|
26117
|
+
return fr(jv(t, r), r);
|
|
26118
26118
|
case "slk":
|
|
26119
26119
|
case "sylk":
|
|
26120
|
-
return
|
|
26120
|
+
return fr(Pl.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
|
|
26121
26121
|
case "htm":
|
|
26122
26122
|
case "html":
|
|
26123
|
-
return
|
|
26123
|
+
return fr(Ec(t.Sheets[t.SheetNames[n]], r), r);
|
|
26124
26124
|
case "txt":
|
|
26125
26125
|
return n4(Lc(t.Sheets[t.SheetNames[n]], r), r);
|
|
26126
26126
|
case "csv":
|
|
26127
|
-
return
|
|
26127
|
+
return fr(Hs(t.Sheets[t.SheetNames[n]], r), r, "\uFEFF");
|
|
26128
26128
|
case "dif":
|
|
26129
|
-
return
|
|
26129
|
+
return fr(Dl.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
|
|
26130
26130
|
case "dbf":
|
|
26131
|
-
return
|
|
26131
|
+
return On(Xi.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
|
|
26132
26132
|
case "prn":
|
|
26133
|
-
return
|
|
26133
|
+
return fr(Aa.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
|
|
26134
26134
|
case "rtf":
|
|
26135
|
-
return
|
|
26135
|
+
return fr($l.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
|
|
26136
26136
|
case "eth":
|
|
26137
|
-
return
|
|
26137
|
+
return fr(Rl.from_sheet(t.Sheets[t.SheetNames[n]], r), r);
|
|
26138
26138
|
case "fods":
|
|
26139
|
-
return
|
|
26139
|
+
return fr(_c(t, r), r);
|
|
26140
26140
|
case "wk1":
|
|
26141
|
-
return
|
|
26141
|
+
return On(qr.sheet_to_wk1(t.Sheets[t.SheetNames[n]], r), r);
|
|
26142
26142
|
case "wk3":
|
|
26143
|
-
return
|
|
26143
|
+
return On(qr.book_to_wk3(t, r), r);
|
|
26144
26144
|
case "biff2":
|
|
26145
26145
|
r.biff || (r.biff = 2);
|
|
26146
26146
|
/* falls through */
|
|
@@ -26148,7 +26148,7 @@ function Fc(t, e) {
|
|
|
26148
26148
|
r.biff || (r.biff = 3);
|
|
26149
26149
|
/* falls through */
|
|
26150
26150
|
case "biff4":
|
|
26151
|
-
return r.biff || (r.biff = 4),
|
|
26151
|
+
return r.biff || (r.biff = 4), On(wc(t, r), r);
|
|
26152
26152
|
case "biff5":
|
|
26153
26153
|
r.biff || (r.biff = 5);
|
|
26154
26154
|
/* falls through */
|
|
@@ -26355,7 +26355,7 @@ function Ac(t, e, r) {
|
|
|
26355
26355
|
Je(d).forEach(function(v) {
|
|
26356
26356
|
(p = u.indexOf(v)) == -1 && (u[p = u.length] = v);
|
|
26357
26357
|
var w = d[v], x = "z", b = "", I = ge({ c: o + p, r: s + g + n });
|
|
26358
|
-
c =
|
|
26358
|
+
c = pn(i, I), w && typeof w == "object" && !(w instanceof Date) ? i[I] = w : (typeof w == "number" ? x = "n" : typeof w == "boolean" ? x = "b" : typeof w == "string" ? x = "s" : w instanceof Date ? (x = "d", a.cellDates || (x = "n", w = ot(w)), b = a.dateNF || me[14]) : w === null && a.nullError && (x = "e", w = 0), c ? (c.t = x, c.v = w, delete c.w, delete c.R, b && (c.z = b)) : i[I] = c = { t: x, v: w }, b && (c.z = b));
|
|
26359
26359
|
});
|
|
26360
26360
|
}), f.e.c = Math.max(f.e.c, o + u.length - 1);
|
|
26361
26361
|
var m = et(s);
|
|
@@ -26365,7 +26365,7 @@ function Ac(t, e, r) {
|
|
|
26365
26365
|
function c4(t, e) {
|
|
26366
26366
|
return Ac(null, t, e);
|
|
26367
26367
|
}
|
|
26368
|
-
function
|
|
26368
|
+
function pn(t, e, r) {
|
|
26369
26369
|
if (typeof e == "string") {
|
|
26370
26370
|
if (Array.isArray(t)) {
|
|
26371
26371
|
var a = je(e);
|
|
@@ -26373,7 +26373,7 @@ function dn(t, e, r) {
|
|
|
26373
26373
|
}
|
|
26374
26374
|
return t[e] || (t[e] = { t: "z" });
|
|
26375
26375
|
}
|
|
26376
|
-
return typeof e != "number" ?
|
|
26376
|
+
return typeof e != "number" ? pn(t, ge(e)) : pn(t, ge({ r: e, c: r || 0 }));
|
|
26377
26377
|
}
|
|
26378
26378
|
function f4(t, e) {
|
|
26379
26379
|
if (typeof e == "number") {
|
|
@@ -26428,7 +26428,7 @@ function p4(t, e, r) {
|
|
|
26428
26428
|
}
|
|
26429
26429
|
function m4(t, e, r, a) {
|
|
26430
26430
|
for (var n = typeof e != "string" ? e : Ne(e), i = typeof e == "string" ? e : Ce(e), s = n.s.r; s <= n.e.r; ++s) for (var o = n.s.c; o <= n.e.c; ++o) {
|
|
26431
|
-
var l =
|
|
26431
|
+
var l = pn(t, s, o);
|
|
26432
26432
|
l.t = "n", l.F = i, delete l.v, s == n.s.r && o == n.s.c && (l.f = r, a && (l.D = !0));
|
|
26433
26433
|
}
|
|
26434
26434
|
return t;
|
|
@@ -26457,7 +26457,7 @@ var Qt = {
|
|
|
26457
26457
|
sheet_to_html: Ec,
|
|
26458
26458
|
sheet_to_formulae: l4,
|
|
26459
26459
|
sheet_to_row_object_array: ri,
|
|
26460
|
-
sheet_get_cell:
|
|
26460
|
+
sheet_get_cell: pn,
|
|
26461
26461
|
book_new: Us,
|
|
26462
26462
|
book_append_sheet: Ws,
|
|
26463
26463
|
book_set_sheet_visibility: h4,
|
|
@@ -26472,7 +26472,7 @@ var Qt = {
|
|
|
26472
26472
|
SHEET_VERY_HIDDEN: 2
|
|
26473
26473
|
}
|
|
26474
26474
|
};
|
|
26475
|
-
const
|
|
26475
|
+
const Pn = ["en", "ka", "ru", "tr"], c0 = {
|
|
26476
26476
|
title: {
|
|
26477
26477
|
en: "Rule Title (EN)",
|
|
26478
26478
|
ka: "წესის სათაური (KA)",
|
|
@@ -26486,8 +26486,8 @@ const On = ["en", "ka", "ru", "tr"], c0 = {
|
|
|
26486
26486
|
tr: "Kural Açıklaması (TR)"
|
|
26487
26487
|
}
|
|
26488
26488
|
};
|
|
26489
|
-
class
|
|
26490
|
-
static exportToExcel(e, r = [...
|
|
26489
|
+
class Dn {
|
|
26490
|
+
static exportToExcel(e, r = [...Pn], a = "rules.xlsx") {
|
|
26491
26491
|
const n = [], i = [];
|
|
26492
26492
|
r.forEach((c) => {
|
|
26493
26493
|
i.push(`title_${c}`), i.push(`description_${c}`);
|
|
@@ -26502,7 +26502,7 @@ class Pn {
|
|
|
26502
26502
|
const l = Qt.book_new();
|
|
26503
26503
|
Qt.book_append_sheet(l, s, "Rules"), Ji(l, a);
|
|
26504
26504
|
}
|
|
26505
|
-
static downloadTemplate(e = [...
|
|
26505
|
+
static downloadTemplate(e = [...Pn], r = "rules-template.xlsx") {
|
|
26506
26506
|
const a = [], n = [];
|
|
26507
26507
|
e.forEach((l) => {
|
|
26508
26508
|
n.push(`title_${l}`), n.push(`description_${l}`);
|
|
@@ -26574,7 +26574,7 @@ class Pn {
|
|
|
26574
26574
|
return e.forEach((a, n) => {
|
|
26575
26575
|
var s, o;
|
|
26576
26576
|
const i = a.toLowerCase().replace(/[^a-z_]/g, "");
|
|
26577
|
-
for (const l of
|
|
26577
|
+
for (const l of Pn) {
|
|
26578
26578
|
if (i.includes(`title_${l}`) || i.includes(`title${l}`) || i.includes("title") && i.includes(l)) {
|
|
26579
26579
|
r.set(n, { type: "title", lang: l });
|
|
26580
26580
|
break;
|
|
@@ -26585,7 +26585,7 @@ class Pn {
|
|
|
26585
26585
|
}
|
|
26586
26586
|
}
|
|
26587
26587
|
if (!r.has(n))
|
|
26588
|
-
for (const l of
|
|
26588
|
+
for (const l of Pn) {
|
|
26589
26589
|
const c = ((s = c0.title[l]) == null ? void 0 : s.toLowerCase()) || "", f = ((o = c0.description[l]) == null ? void 0 : o.toLowerCase()) || "";
|
|
26590
26590
|
if (a.toLowerCase().includes(c.split("(")[0].trim())) {
|
|
26591
26591
|
r.set(n, { type: "title", lang: l });
|
|
@@ -26644,7 +26644,7 @@ function qi(t) {
|
|
|
26644
26644
|
if (typeof t == "object") {
|
|
26645
26645
|
const e = {};
|
|
26646
26646
|
for (const [r, a] of Object.entries(t))
|
|
26647
|
-
r !== "$id" && (e[r] = qi(a));
|
|
26647
|
+
r !== "disabled_removing_$id" && (e[r] = qi(a));
|
|
26648
26648
|
return e;
|
|
26649
26649
|
}
|
|
26650
26650
|
return t;
|
|
@@ -26652,7 +26652,7 @@ function qi(t) {
|
|
|
26652
26652
|
const si = class si {
|
|
26653
26653
|
constructor(e) {
|
|
26654
26654
|
this.elementRef = null, this.isHidden = !1, this.custom = !1, this.initialValues = {}, this.changeTimeout = null, this.isHandlingChange = !1, this.changeHandlers = /* @__PURE__ */ new Set(), this.blurTimeout = null, this.lastChangeTime = 0, this.handleBlur = () => {
|
|
26655
|
-
}, this.pendingBlurHandler = null, this.originalDefaultValues = {}, this.nestingLevel = 0, this.dataPropsPath = "", this.hide = !1, this.isSettingValue = !1, this.suppressOnChange = !1, this.suppressOnChange = !0, this.id = e.id ||
|
|
26655
|
+
}, this.pendingBlurHandler = null, this.originalDefaultValues = {}, this.nestingLevel = 0, this.dataPropsPath = "", this.hide = !1, this.isSettingValue = !1, this.suppressOnChange = !1, this.isRootNode = !1, this.$id = en(), this.suppressOnChange = !0, this.id = e.id || en(), this.title = e.title, this.settings = e.settings, this.isCollapsed = e.collapsed ?? !1, this.isMain = e.main ?? !1, this.custom = e.custom ?? !1, this.nestingLevel = 0, this.includeGetJson = e.includeGetJson ?? !0, this.addItemCfg = e.addItem, this.deleteItemCfg = e.deleteItem, this.dataProps = e.dataProps, this.dataPropsPath = e.dataProps || "", this.hide = e.hide ?? !1, Object.assign(this, e.settings), this.initialValues = this.getValues(), this.originalDefaultValues = this.getDefaultValues(), this.propagateNestingLevel(), this.propagateDataPropsPath(), this.propagateComponentPaths(), this.suppressOnChange = !1;
|
|
26656
26656
|
}
|
|
26657
26657
|
propagateNestingLevel() {
|
|
26658
26658
|
const e = this.nestingLevel + 1;
|
|
@@ -26699,7 +26699,7 @@ const si = class si {
|
|
|
26699
26699
|
});
|
|
26700
26700
|
}
|
|
26701
26701
|
updateNestingStyles() {
|
|
26702
|
-
this.elementRef && (
|
|
26702
|
+
this.elementRef && (Bn(this.elementRef, this.nestingLevel), Pi(this.elementRef, this.nestingLevel));
|
|
26703
26703
|
}
|
|
26704
26704
|
forceChildUIRefresh() {
|
|
26705
26705
|
Object.entries(this.settings).forEach(([e, r]) => {
|
|
@@ -26926,7 +26926,7 @@ const si = class si {
|
|
|
26926
26926
|
const u = s.querySelector(".sg-add-button-bottom");
|
|
26927
26927
|
u && u.parentElement === s ? s.insertBefore(l, u) : s.appendChild(l);
|
|
26928
26928
|
}
|
|
26929
|
-
Ys.trackElement(l),
|
|
26929
|
+
Ys.trackElement(l), Bn(l, this.nestingLevel + 1), Pi(l, this.nestingLevel + 1);
|
|
26930
26930
|
const h = l.style.display;
|
|
26931
26931
|
l.style.display = "none", l.offsetHeight, l.style.display = h, this.updateNestingStyles();
|
|
26932
26932
|
}
|
|
@@ -27293,7 +27293,7 @@ const si = class si {
|
|
|
27293
27293
|
}
|
|
27294
27294
|
getValues(e) {
|
|
27295
27295
|
if (e === void 0) {
|
|
27296
|
-
const r = {};
|
|
27296
|
+
const r = { $id: this.$id };
|
|
27297
27297
|
for (const a in this.settings)
|
|
27298
27298
|
if (Object.prototype.hasOwnProperty.call(this.settings, a)) {
|
|
27299
27299
|
const n = this.settings[a];
|
|
@@ -27376,7 +27376,7 @@ const si = class si {
|
|
|
27376
27376
|
draw() {
|
|
27377
27377
|
var f;
|
|
27378
27378
|
const e = document.createElement("div");
|
|
27379
|
-
e.className = "setting-group", e.id = `setting-group-${this.id}`, si.hiddenElements.add(e), this.hide && (e.style.display = "none"), this.isMain && e.classList.add("main-group"), this.custom && e.classList.add("custom_class"),
|
|
27379
|
+
e.className = "setting-group", e.id = `setting-group-${this.id}`, si.hiddenElements.add(e), this.hide && (e.style.display = "none"), this.isMain && e.classList.add("main-group"), this.custom && e.classList.add("custom_class"), Bn(e, this.nestingLevel);
|
|
27380
27380
|
const r = document.createElement("div");
|
|
27381
27381
|
r.className = "setting-group-title", this.isCollapsed && r.classList.add("collapsed-view"), r.setAttribute("role", "button"), r.setAttribute(
|
|
27382
27382
|
"aria-expanded",
|
|
@@ -27478,15 +27478,18 @@ const si = class si {
|
|
|
27478
27478
|
var P;
|
|
27479
27479
|
const L = (P = I.target.files) == null ? void 0 : P[0];
|
|
27480
27480
|
if (!L) return;
|
|
27481
|
-
const y =
|
|
27481
|
+
const y = Dn.validateFile(L);
|
|
27482
27482
|
if (!y.valid) {
|
|
27483
27483
|
this.showImportError(y.error || "Invalid file"), w.value = "";
|
|
27484
27484
|
return;
|
|
27485
27485
|
}
|
|
27486
27486
|
try {
|
|
27487
27487
|
g.disabled = !0, g.innerHTML = "<span>Importing...</span>";
|
|
27488
|
-
const N = await
|
|
27489
|
-
N.rules.length === 0 ? this.showImportError("No valid rules found in the Excel file") : this.showImportPreview(
|
|
27488
|
+
const N = await Dn.importFromExcel(L);
|
|
27489
|
+
N.rules.length === 0 ? this.showImportError("No valid rules found in the Excel file") : this.showImportPreview(
|
|
27490
|
+
N,
|
|
27491
|
+
m.languages || ["en", "ka", "ru", "tr"]
|
|
27492
|
+
);
|
|
27490
27493
|
} catch (N) {
|
|
27491
27494
|
this.showImportError(
|
|
27492
27495
|
N instanceof Error ? N.message : "Import failed"
|
|
@@ -27544,10 +27547,17 @@ const si = class si {
|
|
|
27544
27547
|
});
|
|
27545
27548
|
const P = m.languages || ["en", "ka", "ru", "tr"];
|
|
27546
27549
|
if (L.length === 0) {
|
|
27547
|
-
|
|
27550
|
+
Dn.downloadTemplate(
|
|
27551
|
+
P,
|
|
27552
|
+
"rules-template.xlsx"
|
|
27553
|
+
);
|
|
27548
27554
|
return;
|
|
27549
27555
|
}
|
|
27550
|
-
|
|
27556
|
+
Dn.exportToExcel(
|
|
27557
|
+
L,
|
|
27558
|
+
P,
|
|
27559
|
+
"rules-export.xlsx"
|
|
27560
|
+
);
|
|
27551
27561
|
}), x.addEventListener("mouseenter", () => {
|
|
27552
27562
|
x.style.background = "#dbeafe", x.style.borderColor = "#2563eb";
|
|
27553
27563
|
}), x.addEventListener("mouseleave", () => {
|
|
@@ -27599,11 +27609,16 @@ const si = class si {
|
|
|
27599
27609
|
}
|
|
27600
27610
|
};
|
|
27601
27611
|
si.hiddenElements = /* @__PURE__ */ new Set();
|
|
27602
|
-
let
|
|
27603
|
-
|
|
27612
|
+
let nr = si;
|
|
27613
|
+
class D3 extends nr {
|
|
27614
|
+
constructor(e) {
|
|
27615
|
+
super(e), this.isRootNode = !0;
|
|
27616
|
+
}
|
|
27617
|
+
}
|
|
27618
|
+
function R3(t) {
|
|
27604
27619
|
return new g4(t);
|
|
27605
27620
|
}
|
|
27606
|
-
class g4 extends
|
|
27621
|
+
class g4 extends nr {
|
|
27607
27622
|
constructor(e) {
|
|
27608
27623
|
super(e);
|
|
27609
27624
|
const r = Object.keys(this.settings)[0];
|
|
@@ -27664,9 +27679,9 @@ class g4 extends dr {
|
|
|
27664
27679
|
}
|
|
27665
27680
|
}
|
|
27666
27681
|
function x4(t) {
|
|
27667
|
-
return new
|
|
27682
|
+
return new nr(t);
|
|
27668
27683
|
}
|
|
27669
|
-
function
|
|
27684
|
+
function B3(t) {
|
|
27670
27685
|
return t;
|
|
27671
27686
|
}
|
|
27672
27687
|
class v4 extends Ae {
|
|
@@ -27690,17 +27705,17 @@ class v4 extends Ae {
|
|
|
27690
27705
|
}
|
|
27691
27706
|
}
|
|
27692
27707
|
const w4 = "<svg xmlns='http://www.w3.org/2000/svg' width='18' height='19' viewBox='0 0 18 19' fill='none'><path d='M8.99999 15.8542C9.79613 16.5667 10.8475 17 12 17C14.4853 17 16.5 14.9853 16.5 12.5C16.5 10.4248 15.0953 8.67769 13.1849 8.15763M4.81513 8.15762C2.9047 8.67768 1.5 10.4248 1.5 12.5C1.5 14.9853 3.51472 17 6 17C8.48528 17 10.5 14.9853 10.5 12.5C10.5 11.9146 10.3882 11.3554 10.1849 10.8424M13.5 6.5C13.5 8.98528 11.4853 11 9 11C6.51472 11 4.5 8.98528 4.5 6.5C4.5 4.01472 6.51472 2 9 2C11.4853 2 13.5 4.01472 13.5 6.5Z' stroke='#667085' strokeLinecap='round' strokeLinejoin='round'/></svg>";
|
|
27693
|
-
class
|
|
27708
|
+
class hr extends v4 {
|
|
27694
27709
|
constructor(e) {
|
|
27695
27710
|
super({
|
|
27696
27711
|
...e,
|
|
27697
27712
|
icon: e.icon || w4,
|
|
27698
27713
|
title: e.title || "Color",
|
|
27699
|
-
default: e.default ?
|
|
27714
|
+
default: e.default ? hr.normalizeColorValue(e.default) : "#000000"
|
|
27700
27715
|
}), this.inputType = "color", this.element = null, this.colorInputEl = null, this.textInputEl = null, this.detectChange = e.detectChange;
|
|
27701
27716
|
}
|
|
27702
27717
|
static normalizeColorValue(e) {
|
|
27703
|
-
return e.startsWith("var(--") ? e : e.startsWith("#") ?
|
|
27718
|
+
return e.startsWith("var(--") ? e : e.startsWith("#") ? hr.normalizeHexValue(e) : e.includes(",") ? hr.rgbToHexStatic(e) : hr.normalizeHexValue(e);
|
|
27704
27719
|
}
|
|
27705
27720
|
static normalizeHexValue(e) {
|
|
27706
27721
|
return e = e.replace("#", ""), e.length === 3 && (e = e.split("").map((r) => r + r).join("")), e.length !== 6 ? (console.warn(`Invalid hex value "${e}", using default "#000000"`), "#000000") : /^[0-9A-Fa-f]{6}$/.test(e) ? `#${e.toLowerCase()}` : (console.warn(`Invalid hex value "${e}", using default "#000000"`), "#000000");
|
|
@@ -27721,7 +27736,7 @@ class fr extends v4 {
|
|
|
27721
27736
|
return;
|
|
27722
27737
|
}
|
|
27723
27738
|
if (typeof e == "string") {
|
|
27724
|
-
const r =
|
|
27739
|
+
const r = hr.normalizeColorValue(e);
|
|
27725
27740
|
this.value = r, this.colorInputEl && (this.colorInputEl.value = r), this.textInputEl && (this.textInputEl.value = r), this.onChange && this.onChange(r), this.props.detectChange && this.props.detectChange(r);
|
|
27726
27741
|
} else
|
|
27727
27742
|
this.value = "#000000", this.colorInputEl && (this.colorInputEl.value = "#000000"), this.textInputEl && (this.textInputEl.value = "#000000"), this.onChange && this.onChange("#000000"), this.props.detectChange && this.props.detectChange("#000000");
|
|
@@ -27813,7 +27828,7 @@ class fr extends v4 {
|
|
|
27813
27828
|
var v, w;
|
|
27814
27829
|
let g = d.trim();
|
|
27815
27830
|
if (g && !g.startsWith("#") && !g.startsWith("var(") && /^[0-9A-Fa-f]{3}$|^[0-9A-Fa-f]{6}$/.test(g) && (g = "#" + g, this.textInputEl && (this.textInputEl.value = g)), this.textInputEl && c(this.textInputEl)) {
|
|
27816
|
-
const x =
|
|
27831
|
+
const x = hr.normalizeColorValue(g);
|
|
27817
27832
|
this.value = x, (v = this.onChange) == null || v.call(this, x), (w = this.detectChange) == null || w.call(this, x), this.colorInputEl && (this.colorInputEl.value = x), h.style.backgroundColor = x;
|
|
27818
27833
|
}
|
|
27819
27834
|
};
|
|
@@ -27830,11 +27845,11 @@ class fr extends v4 {
|
|
|
27830
27845
|
d.key === "Enter" && (d.preventDefault(), m(((g = this.textInputEl) == null ? void 0 : g.value) || ""), (v = this.textInputEl) == null || v.blur()), d.key === "Escape" && (this.textInputEl && this.value && (this.textInputEl.value = this.value), (w = this.textInputEl) == null || w.blur(), r.classList.remove("error"));
|
|
27831
27846
|
}), this.colorInputEl.addEventListener("input", (d) => {
|
|
27832
27847
|
var w, x;
|
|
27833
|
-
const g = d.target.value, v =
|
|
27848
|
+
const g = d.target.value, v = hr.normalizeColorValue(g);
|
|
27834
27849
|
this.value = v, (w = this.onChange) == null || w.call(this, v), (x = this.detectChange) == null || x.call(this, v), this.textInputEl && (this.textInputEl.value = v), h.style.backgroundColor = v, r.classList.remove("error");
|
|
27835
27850
|
}), this.colorInputEl.addEventListener("change", (d) => {
|
|
27836
27851
|
var w, x;
|
|
27837
|
-
const g = d.target.value, v =
|
|
27852
|
+
const g = d.target.value, v = hr.normalizeColorValue(g);
|
|
27838
27853
|
this.value = v, (w = this.onChange) == null || w.call(this, v), (x = this.detectChange) == null || x.call(this, v), this.textInputEl && (this.textInputEl.value = v), h.style.backgroundColor = v;
|
|
27839
27854
|
}), s.appendChild(f), s.appendChild(h), s.appendChild(p), r.appendChild(a), r.appendChild(s), r.appendChild(o), e.appendChild(r), this.element = e, e;
|
|
27840
27855
|
}
|
|
@@ -27843,7 +27858,7 @@ class fr extends v4 {
|
|
|
27843
27858
|
}
|
|
27844
27859
|
// Helper method to get normalized hex value
|
|
27845
27860
|
getNormalizedValue() {
|
|
27846
|
-
return this.value ?
|
|
27861
|
+
return this.value ? hr.normalizeColorValue(this.value) : "#000000";
|
|
27847
27862
|
}
|
|
27848
27863
|
// Helper method to check if current value is valid hex
|
|
27849
27864
|
isValidHex() {
|
|
@@ -27997,7 +28012,7 @@ class wa extends Ae {
|
|
|
27997
28012
|
};
|
|
27998
28013
|
}
|
|
27999
28014
|
}
|
|
28000
|
-
class
|
|
28015
|
+
class V3 extends Ae {
|
|
28001
28016
|
constructor(e = {}) {
|
|
28002
28017
|
super(e), this.inputType = "text", e.onChange && this.setOnChange(e.onChange);
|
|
28003
28018
|
}
|
|
@@ -28282,7 +28297,7 @@ class _4 extends Ae {
|
|
|
28282
28297
|
}), e.appendChild(a), e;
|
|
28283
28298
|
}
|
|
28284
28299
|
}
|
|
28285
|
-
class
|
|
28300
|
+
class H3 extends Ae {
|
|
28286
28301
|
constructor(e) {
|
|
28287
28302
|
super(e), this.inputType = "button", this.bgWithAlpha = "rgba(145, 158, 171, 0.08)";
|
|
28288
28303
|
}
|
|
@@ -28311,7 +28326,7 @@ class V3 extends Ae {
|
|
|
28311
28326
|
return s.className = "button-setting-wrapper " + (this.props.wrapperClassName || ""), s.appendChild(e), s;
|
|
28312
28327
|
}
|
|
28313
28328
|
}
|
|
28314
|
-
class
|
|
28329
|
+
class U3 extends Ae {
|
|
28315
28330
|
constructor(e = {}) {
|
|
28316
28331
|
super(e), this.inputType = { width: "number", height: "number" }, this.aspectRatio = 1, this.isUpdating = !1;
|
|
28317
28332
|
const r = e.width || 0, a = e.height || 0;
|
|
@@ -28985,7 +29000,7 @@ function n3() {
|
|
|
28985
29000
|
uploadBox: document.createElement("div")
|
|
28986
29001
|
};
|
|
28987
29002
|
}
|
|
28988
|
-
function
|
|
29003
|
+
function lr(t, e) {
|
|
28989
29004
|
const r = e && e.imageUrl && e.imageUrl !== "", a = t.thumbnailEl.parentElement, n = a == null ? void 0 : a.parentElement;
|
|
28990
29005
|
n && (r ? (n.classList.add("has-image"), t.thumbnailEl.src = e.imageUrl) : (n.classList.remove("has-image"), t.thumbnailEl.src = "")), t.configureButtonTextEl.textContent = "Configure Map", t.configureButton && (t.configureButton.disabled = !r);
|
|
28991
29006
|
}
|
|
@@ -29138,7 +29153,7 @@ const h3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29138
29153
|
const i = i3(
|
|
29139
29154
|
this.mainDisplayElements.thumbnailEl,
|
|
29140
29155
|
() => {
|
|
29141
|
-
this.value = { imageUrl: "", markers: [] }, this.mainDisplayElements &&
|
|
29156
|
+
this.value = { imageUrl: "", markers: [] }, this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.triggerChange();
|
|
29142
29157
|
}
|
|
29143
29158
|
), s = this.props.upload || "file-manager", o = s3(
|
|
29144
29159
|
s,
|
|
@@ -29152,7 +29167,7 @@ const h3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29152
29167
|
return c.className = "image-map-section-title", c.textContent = "Map Setup", l.appendChild(c), this.mainDisplayElements.configureButton.addEventListener("click", () => {
|
|
29153
29168
|
var f;
|
|
29154
29169
|
(f = this.mainDisplayElements) != null && f.configureButton.disabled || this.openPopover();
|
|
29155
|
-
}), l.appendChild(this.mainDisplayElements.configureButton), r.appendChild(l), e.appendChild(r), this.createPopoverElements(),
|
|
29170
|
+
}), l.appendChild(this.mainDisplayElements.configureButton), r.appendChild(l), e.appendChild(r), this.createPopoverElements(), lr(this.mainDisplayElements, this.value), e;
|
|
29156
29171
|
}
|
|
29157
29172
|
createPopoverElements() {
|
|
29158
29173
|
this.popoverElements = l3(
|
|
@@ -29187,7 +29202,7 @@ const h3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29187
29202
|
return;
|
|
29188
29203
|
this.initialValue && (this.value = JSON.parse(
|
|
29189
29204
|
JSON.stringify(this.initialValue)
|
|
29190
|
-
), this.mainDisplayElements &&
|
|
29205
|
+
), this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.triggerChange());
|
|
29191
29206
|
}
|
|
29192
29207
|
this.isPopoverOpen = !1, this.draggingMarkerId = null, this.clearErrorTooltip(), this.popoverElements && (this.popoverElements.backdrop.style.display = "none", this.popoverElements.popover.style.display = "none"), document.removeEventListener("click", this.onBackgroundClick, !0), document.removeEventListener("keydown", this.handlePopoverKeydown, !0), Cr.openInstance === this && (Cr.openInstance = null);
|
|
29193
29208
|
}
|
|
@@ -29305,7 +29320,7 @@ const h3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29305
29320
|
this.value = {
|
|
29306
29321
|
imageUrl: e,
|
|
29307
29322
|
markers: i
|
|
29308
|
-
}, this.previousImageDimensions = n, this.historyManager.initialize(i), this.updateUndoRedoButtons(), this.mainDisplayElements &&
|
|
29323
|
+
}, this.previousImageDimensions = n, this.historyManager.initialize(i), this.updateUndoRedoButtons(), this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.isPopoverOpen && this.refreshPopoverContent(), this.triggerChange();
|
|
29309
29324
|
}, a.onerror = () => {
|
|
29310
29325
|
Ea.show("Failed to load image from file manager.");
|
|
29311
29326
|
}, a.src = e;
|
|
@@ -29338,7 +29353,7 @@ const h3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29338
29353
|
this.value = {
|
|
29339
29354
|
imageUrl: s,
|
|
29340
29355
|
markers: f
|
|
29341
|
-
}, this.previousImageDimensions = c, this.historyManager.initialize(f), this.updateUndoRedoButtons(), this.mainDisplayElements &&
|
|
29356
|
+
}, this.previousImageDimensions = c, this.historyManager.initialize(f), this.updateUndoRedoButtons(), this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.isPopoverOpen && this.refreshPopoverContent(), this.triggerChange();
|
|
29342
29357
|
}, l.onerror = () => {
|
|
29343
29358
|
Ea.show("Failed to read image file.");
|
|
29344
29359
|
}, l.src = s;
|
|
@@ -29364,7 +29379,7 @@ const h3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29364
29379
|
y: n,
|
|
29365
29380
|
prizeName: s
|
|
29366
29381
|
}, l = [...this.value.markers, o];
|
|
29367
|
-
this.setMarkers(l), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements &&
|
|
29382
|
+
this.setMarkers(l), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.triggerChange();
|
|
29368
29383
|
}
|
|
29369
29384
|
handleMarkerDrag(e) {
|
|
29370
29385
|
var o;
|
|
@@ -29402,10 +29417,10 @@ const h3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29402
29417
|
handleDeleteMarker(e) {
|
|
29403
29418
|
if (!this.value) return;
|
|
29404
29419
|
const r = this.value.markers.filter((a) => a.id !== e);
|
|
29405
|
-
this.setMarkers(r), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements &&
|
|
29420
|
+
this.setMarkers(r), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.triggerChange();
|
|
29406
29421
|
}
|
|
29407
29422
|
handleClearAllMarkers() {
|
|
29408
|
-
this.value && (this.setMarkers([]), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements &&
|
|
29423
|
+
this.value && (this.setMarkers([]), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.triggerChange());
|
|
29409
29424
|
}
|
|
29410
29425
|
updateCursorTooltipContent() {
|
|
29411
29426
|
if (!this.cursorTooltip || !this.value) return;
|
|
@@ -29424,12 +29439,12 @@ const h3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29424
29439
|
undo() {
|
|
29425
29440
|
if (!this.value) return;
|
|
29426
29441
|
const e = this.historyManager.undo();
|
|
29427
|
-
e !== null && (this.isUndoRedoOperation = !0, this.setMarkers(e), this.refreshPopoverContent(), this.mainDisplayElements &&
|
|
29442
|
+
e !== null && (this.isUndoRedoOperation = !0, this.setMarkers(e), this.refreshPopoverContent(), this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.triggerChange(), this.isUndoRedoOperation = !1, this.updateUndoRedoButtons());
|
|
29428
29443
|
}
|
|
29429
29444
|
redo() {
|
|
29430
29445
|
if (!this.value) return;
|
|
29431
29446
|
const e = this.historyManager.redo();
|
|
29432
|
-
e !== null && (this.isUndoRedoOperation = !0, this.setMarkers(e), this.refreshPopoverContent(), this.mainDisplayElements &&
|
|
29447
|
+
e !== null && (this.isUndoRedoOperation = !0, this.setMarkers(e), this.refreshPopoverContent(), this.mainDisplayElements && lr(this.mainDisplayElements, this.value), this.triggerChange(), this.isUndoRedoOperation = !1, this.updateUndoRedoButtons());
|
|
29433
29448
|
}
|
|
29434
29449
|
updateUndoRedoButtons() {
|
|
29435
29450
|
if (!this.popoverElements) return;
|
|
@@ -29552,7 +29567,7 @@ const m3 = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewB
|
|
|
29552
29567
|
<polyline points="6 9 12 15 18 9"></polyline>
|
|
29553
29568
|
</svg>
|
|
29554
29569
|
`;
|
|
29555
|
-
class
|
|
29570
|
+
class W3 extends Ae {
|
|
29556
29571
|
constructor(e = {}) {
|
|
29557
29572
|
if (super(e), this.inputType = "select", this._options = [], this.isOpen = !1, this.selectedOptionIndex = null, this.optionsListEl = null, this.svgContainer = null, this.buttonEl = null, this.isLoading = !1, this.container = null, this.hasInitializedOptions = !1, this.selectedOptionIndex = null, e.default !== void 0 && (this.value = e.default), this.initializeOptions(e), !e.getOptionsAsync && this.value !== void 0) {
|
|
29558
29573
|
const r = this._options.findIndex(
|
|
@@ -29703,7 +29718,7 @@ class U3 extends Ae {
|
|
|
29703
29718
|
), this.updateButtonText(), this.updateOptionsList(), this.detectChangeCallback && this.detectChangeCallback !== this.props.detectChange && this.detectChangeCallback(e);
|
|
29704
29719
|
}
|
|
29705
29720
|
}
|
|
29706
|
-
class
|
|
29721
|
+
class $3 extends Ae {
|
|
29707
29722
|
constructor(e) {
|
|
29708
29723
|
var r, a;
|
|
29709
29724
|
super(e), this.inputType = "text", this.value = e.default ?? ((a = (r = e.options) == null ? void 0 : r[0]) == null ? void 0 : a.value) ?? "", this.detectChangeCallback = e.detectChange;
|
|
@@ -29756,7 +29771,7 @@ class W3 extends Ae {
|
|
|
29756
29771
|
const x3 = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
29757
29772
|
<path d="M13.3334 5.99996H2.66675M13.3334 9.99996H2.66675M5.33341 12.6666V3.33329M10.6667 12.6666V3.33329" stroke="#667085" strokeWidth="1.33333" strokeLinecap="round" strokeLinejoin="round"/>
|
|
29758
29773
|
</svg>`;
|
|
29759
|
-
class
|
|
29774
|
+
class G3 extends Ae {
|
|
29760
29775
|
// Store mobile value
|
|
29761
29776
|
constructor(e = {}) {
|
|
29762
29777
|
e.rowGap = e.rowGap ?? !0, e.columnGap = e.columnGap ?? !0, e.title = e.title ?? "Gap", e.icon = e.icon ?? x3, e.suffix = e.suffix ?? "px", e.minValue = e.minValue ?? 0, super(e), this.inputType = "number", this.inputValues = {}, this.mobileValue = e.mobile, this.value = this.validateValue(e.default ?? 0), e.rowGap && (this.inputValues.row = this.value), e.columnGap && (this.inputValues.column = this.value);
|
|
@@ -29813,7 +29828,7 @@ class $3 extends Ae {
|
|
|
29813
29828
|
const v3 = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
|
|
29814
29829
|
<path d="M2.25 11.75H15.75M5.85 2.75H12.15C13.4101 2.75 14.0402 2.75 14.5215 2.99524C14.9448 3.21095 15.289 3.55516 15.5048 3.97852C15.75 4.45982 15.75 5.08988 15.75 6.35V12.65C15.75 13.9101 15.75 14.5402 15.5048 15.0215C15.289 15.4448 14.9448 15.789 14.5215 16.0048C14.0402 16.25 13.4101 16.25 12.15 16.25H5.85C4.58988 16.25 3.95982 16.25 3.47852 16.0048C3.05516 15.789 2.71095 15.4448 2.49524 15.0215C2.25 14.5402 2.25 13.9101 2.25 12.65V6.35C2.25 5.08988 2.25 4.45982 2.49524 3.97852C2.71095 3.55516 3.05516 3.21095 3.47852 2.99524C3.95982 2.75 4.58988 2.75 5.85 2.75Z" stroke="#667085" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
|
|
29815
29830
|
</svg>`;
|
|
29816
|
-
class
|
|
29831
|
+
class z3 extends pr {
|
|
29817
29832
|
constructor(e = {}) {
|
|
29818
29833
|
super({
|
|
29819
29834
|
...e,
|
|
@@ -29830,7 +29845,7 @@ const w3 = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewB
|
|
|
29830
29845
|
<path d="M15.75 7.25H2.25m9.9 9h-6.3c-1.26 0-1.89 0-2.371-.245a2.25 2.25 0 0 1-.984-.983c-.245-.482-.245-1.112-.245-2.372v-6.3c0-1.26 0-1.89.245-2.371a2.25 2.25 0 0 1 .984-.984c.48-.245 1.11-.245 2.371-.245h6.3c1.26 0 1.89 0 2.371.245.424.216.768.56.984.984.245.48.245 1.11.245 2.371v6.3c0 1.26 0 1.89-.245 2.371-.216.424-.56.768-.984.984-.48.245-1.11.245-2.371.245"
|
|
29831
29846
|
stroke="#667085" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round"/>
|
|
29832
29847
|
</svg>`;
|
|
29833
|
-
class
|
|
29848
|
+
class X3 extends pr {
|
|
29834
29849
|
constructor(e = {}) {
|
|
29835
29850
|
super({
|
|
29836
29851
|
...e,
|
|
@@ -29905,7 +29920,7 @@ function Oc(t) {
|
|
|
29905
29920
|
const e = Mc[((r = t == null ? void 0 : t.toLowerCase) == null ? void 0 : r.call(t)) || ""];
|
|
29906
29921
|
return e != null && e.label ? e.label : ((a = t == null ? void 0 : t.toUpperCase) == null ? void 0 : a.call(t)) || String(t);
|
|
29907
29922
|
}
|
|
29908
|
-
function
|
|
29923
|
+
function Un(t, e = Qi) {
|
|
29909
29924
|
var n;
|
|
29910
29925
|
const r = Mc[((n = t == null ? void 0 : t.toLowerCase) == null ? void 0 : n.call(t)) || ""];
|
|
29911
29926
|
if (r != null && r.placeholder) return r.placeholder;
|
|
@@ -30024,7 +30039,7 @@ function S3(t) {
|
|
|
30024
30039
|
const s = document.createElement("div");
|
|
30025
30040
|
s.classList.add("multi-language-popup-content"), t.languages.forEach((c) => {
|
|
30026
30041
|
var d;
|
|
30027
|
-
const f = ((d = t.values) == null ? void 0 : d[c]) || "", h =
|
|
30042
|
+
const f = ((d = t.values) == null ? void 0 : d[c]) || "", h = Un(c, t.placeholder), u = t.uploadSettings.get(c), p = t.dataTestPath ? `${t.dataTestPath}_${c}` : void 0, m = Pc({
|
|
30028
30043
|
languageCode: c,
|
|
30029
30044
|
value: f,
|
|
30030
30045
|
placeholder: h,
|
|
@@ -30331,7 +30346,7 @@ class x0 {
|
|
|
30331
30346
|
}
|
|
30332
30347
|
const Zt = class Zt extends Ae {
|
|
30333
30348
|
constructor(e) {
|
|
30334
|
-
super(e), this.inputType = {}, this.container = null, this.defaultLanguage = "", this.uploadSettings = /* @__PURE__ */ new Map(), this.popup = null, this.componentPath = "", this.$id = "", this.isDerty = !1, this.instanceId =
|
|
30349
|
+
super(e), this.inputType = {}, this.container = null, this.defaultLanguage = "", this.uploadSettings = /* @__PURE__ */ new Map(), this.popup = null, this.componentPath = "", this.$id = "", this.isDerty = !1, this.instanceId = en(), this.componentPath = e.title || this.instanceId, e.default ? this.value = e.default : this.value || (this.value = {}), this.value.$id = this.$id = en(), this.messageHandler = (n) => {
|
|
30335
30350
|
const { type: i, data: s } = n.data || {};
|
|
30336
30351
|
i === "TEXT_ELEMENT_CLICKED" && s.$id == this.$id && this.showPopup();
|
|
30337
30352
|
};
|
|
@@ -30342,7 +30357,7 @@ const Zt = class Zt extends Ae {
|
|
|
30342
30357
|
this.instanceId,
|
|
30343
30358
|
this.messageHandler
|
|
30344
30359
|
), window.addEventListener("message", this.messageHandler), this.defaultLanguage = this.resolveDefaultLanguage();
|
|
30345
|
-
const a = e.multiImg ? e.defaultValue || "" : e.defaultValue ||
|
|
30360
|
+
const a = e.multiImg ? e.defaultValue || "" : e.defaultValue || Un(this.defaultLanguage);
|
|
30346
30361
|
e.languages.forEach((n) => {
|
|
30347
30362
|
var i, s;
|
|
30348
30363
|
n in (this.value || {}) || (this.value || (this.value = {}), n === this.defaultLanguage && a ? this.value[n] = ((i = e.default) == null ? void 0 : i[n]) || a : this.value[n] = ((s = e.default) == null ? void 0 : s[n]) || "");
|
|
@@ -30363,7 +30378,7 @@ const Zt = class Zt extends Ae {
|
|
|
30363
30378
|
}
|
|
30364
30379
|
createTextareaRowForLanguage(e, r = !1) {
|
|
30365
30380
|
var o;
|
|
30366
|
-
const a = ((o = this.value) == null ? void 0 : o[e]) || "", n =
|
|
30381
|
+
const a = ((o = this.value) == null ? void 0 : o[e]) || "", n = Un(
|
|
30367
30382
|
e,
|
|
30368
30383
|
this.props.placeholder || Qi
|
|
30369
30384
|
), i = this.uploadSettings.get(e);
|
|
@@ -30400,7 +30415,7 @@ const Zt = class Zt extends Ae {
|
|
|
30400
30415
|
updateOtherLanguagePlaceholders(e) {
|
|
30401
30416
|
!this.container && !this.popup || this.props.languages.forEach((r) => {
|
|
30402
30417
|
if (r === this.defaultLanguage) return;
|
|
30403
|
-
const a = e ||
|
|
30418
|
+
const a = e || Un(
|
|
30404
30419
|
r,
|
|
30405
30420
|
this.props.placeholder || Qi
|
|
30406
30421
|
);
|
|
@@ -30631,7 +30646,7 @@ const Zt = class Zt extends Ae {
|
|
|
30631
30646
|
};
|
|
30632
30647
|
Zt.instances = /* @__PURE__ */ new Map(), Zt.messageListeners = /* @__PURE__ */ new Map();
|
|
30633
30648
|
let Ca = Zt;
|
|
30634
|
-
class
|
|
30649
|
+
class j3 {
|
|
30635
30650
|
constructor(e = {}) {
|
|
30636
30651
|
this.container = null, this.options = e;
|
|
30637
30652
|
}
|
|
@@ -30696,7 +30711,7 @@ class X3 {
|
|
|
30696
30711
|
return Ca.getAllInstances().size;
|
|
30697
30712
|
}
|
|
30698
30713
|
}
|
|
30699
|
-
class
|
|
30714
|
+
class K3 extends Ae {
|
|
30700
30715
|
constructor(e = {}) {
|
|
30701
30716
|
super(e), this.inputType = "select";
|
|
30702
30717
|
const r = [
|
|
@@ -30732,7 +30747,7 @@ const b3 = `
|
|
|
30732
30747
|
<path d="M6 2.75H5.85C4.58988 2.75 3.95982 2.75 3.47852 2.99524C3.05516 3.21095 2.71095 3.55516 2.49524 3.97852C2.25 4.45982 2.25 5.08988 2.25 6.35V6.5M6 16.25H5.85C4.58988 16.25 3.95982 16.25 3.47852 16.0048C3.05516 15.789 2.71095 15.4448 2.49524 15.0215C2.25 14.5402 2.25 13.9101 2.25 12.65V12.5M15.75 6.5V6.35C15.75 5.08988 15.75 4.45982 15.5048 3.97852C15.289 3.55516 14.9448 3.21095 14.5215 2.99524C14.0402 2.75 13.4101 2.75 12.15 2.75H12M15.75 12.5V12.65C15.75 13.9101 15.75 14.5402 15.5048 15.0215C15.289 15.4448 14.9448 15.789 14.5215 16.0048C14.0402 16.25 13.4101 16.25 12.15 16.25H12" stroke="#667085" strokeLinecap="round" strokeLinejoin="round"/>
|
|
30733
30748
|
</svg>
|
|
30734
30749
|
`;
|
|
30735
|
-
class
|
|
30750
|
+
class Y3 extends nr {
|
|
30736
30751
|
constructor(e) {
|
|
30737
30752
|
super({
|
|
30738
30753
|
title: "Border",
|
|
@@ -30787,7 +30802,7 @@ const L3 = `
|
|
|
30787
30802
|
<path d="M6 5.75H12M9 5.75V13.25M5.85 16.25H12.15C13.4101 16.25 14.0402 16.25 14.5215 16.0048C14.9448 15.789 15.289 15.4448 15.5048 15.0215C15.75 14.5402 15.75 13.9101 15.75 12.65V6.35C15.75 5.08988 15.75 4.45982 15.5048 3.97852C15.289 3.55516 14.9448 3.21095 14.5215 2.99524C14.0402 2.75 13.4101 2.75 12.15 2.75H5.85C4.58988 2.75 3.95982 2.75 3.47852 2.99524C3.05516 3.21095 2.71095 3.55516 2.49524 3.97852C2.25 4.45982 2.25 5.08988 2.25 6.35V12.65C2.25 13.9101 2.25 14.5402 2.49524 15.0215C2.71095 15.4448 3.05516 15.789 3.47852 16.0048C3.95982 16.25 4.58988 16.25 5.85 16.25Z" stroke="#667085" strokeLinecap="round" strokeLinejoin="round"/>
|
|
30788
30803
|
</svg>
|
|
30789
30804
|
`;
|
|
30790
|
-
class
|
|
30805
|
+
class J3 extends nr {
|
|
30791
30806
|
constructor(e = {}) {
|
|
30792
30807
|
const { showAlign: r = e.showAlign ?? !0, ...a } = e;
|
|
30793
30808
|
super({
|
|
@@ -30866,7 +30881,7 @@ class Y3 extends dr {
|
|
|
30866
30881
|
`;
|
|
30867
30882
|
}
|
|
30868
30883
|
}
|
|
30869
|
-
class
|
|
30884
|
+
class Rn extends Ae {
|
|
30870
30885
|
constructor(e) {
|
|
30871
30886
|
super({
|
|
30872
30887
|
...e,
|
|
@@ -30912,31 +30927,31 @@ class Dn extends Ae {
|
|
|
30912
30927
|
}), a;
|
|
30913
30928
|
}
|
|
30914
30929
|
}
|
|
30915
|
-
class
|
|
30930
|
+
class q3 extends nr {
|
|
30916
30931
|
constructor(e) {
|
|
30917
30932
|
super({
|
|
30918
30933
|
title: "Margins",
|
|
30919
30934
|
collapsed: e == null ? void 0 : e.collapsed,
|
|
30920
30935
|
settings: {
|
|
30921
|
-
marginTop: new
|
|
30936
|
+
marginTop: new Rn({
|
|
30922
30937
|
title: "Top",
|
|
30923
30938
|
icon: N3,
|
|
30924
30939
|
suffix: "px",
|
|
30925
30940
|
default: (e == null ? void 0 : e.marginTop) ?? "auto"
|
|
30926
30941
|
}),
|
|
30927
|
-
marginRight: new
|
|
30942
|
+
marginRight: new Rn({
|
|
30928
30943
|
title: "Right",
|
|
30929
30944
|
icon: M3,
|
|
30930
30945
|
suffix: "px",
|
|
30931
30946
|
default: (e == null ? void 0 : e.marginRight) ?? 0
|
|
30932
30947
|
}),
|
|
30933
|
-
marginBottom: new
|
|
30948
|
+
marginBottom: new Rn({
|
|
30934
30949
|
title: "Bottom",
|
|
30935
30950
|
icon: O3,
|
|
30936
30951
|
suffix: "px",
|
|
30937
30952
|
default: (e == null ? void 0 : e.marginBottom) ?? 0
|
|
30938
30953
|
}),
|
|
30939
|
-
marginLeft: new
|
|
30954
|
+
marginLeft: new Rn({
|
|
30940
30955
|
title: "Left",
|
|
30941
30956
|
icon: P3,
|
|
30942
30957
|
suffix: "px",
|
|
@@ -30964,7 +30979,7 @@ const N3 = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewB
|
|
|
30964
30979
|
</svg>`, P3 = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
|
|
30965
30980
|
<path d="M5.625 2.75H5.6325M5.625 9.5H5.6325M5.625 16.25H5.6325M12.375 2.75H12.3825M12.375 9.5H12.3825M12.375 16.25H12.3825M9 2.75H9.0075M9 9.5H9.0075M9 16.25H9.0075M9 12.875H9.0075M9 6.125H9.0075M15.75 2.75H15.7575M15.75 9.5H15.7575M15.75 16.25H15.7575M15.75 12.875H15.7575M15.75 6.125H15.7575M2.25 16.25V2.75" stroke="#667085" strokeLinecap="round" strokeLinejoin="round"/>
|
|
30966
30981
|
</svg>`;
|
|
30967
|
-
class
|
|
30982
|
+
class Z3 extends nr {
|
|
30968
30983
|
constructor(e) {
|
|
30969
30984
|
super({
|
|
30970
30985
|
title: "Background Image",
|
|
@@ -31003,7 +31018,7 @@ class q3 extends dr {
|
|
|
31003
31018
|
`;
|
|
31004
31019
|
}
|
|
31005
31020
|
}
|
|
31006
|
-
class
|
|
31021
|
+
class Q3 extends nr {
|
|
31007
31022
|
constructor(e) {
|
|
31008
31023
|
super({
|
|
31009
31024
|
title: (e == null ? void 0 : e.title) ?? "Image",
|
|
@@ -31027,42 +31042,43 @@ class Z3 extends dr {
|
|
|
31027
31042
|
}
|
|
31028
31043
|
export {
|
|
31029
31044
|
_4 as AlignSetting,
|
|
31030
|
-
|
|
31031
|
-
|
|
31032
|
-
|
|
31033
|
-
|
|
31034
|
-
|
|
31045
|
+
K3 as AnimationSetting,
|
|
31046
|
+
Z3 as BackgroundSettingSet,
|
|
31047
|
+
Y3 as BorderSettingSet,
|
|
31048
|
+
H3 as ButtonSetting,
|
|
31049
|
+
hr as ColorSetting,
|
|
31035
31050
|
wa as ColorWithOpacitySetting,
|
|
31036
|
-
|
|
31037
|
-
|
|
31051
|
+
U3 as DimensionSetting,
|
|
31052
|
+
Dn as ExcelRulesService,
|
|
31038
31053
|
x0 as ExcelTranslationService,
|
|
31039
|
-
|
|
31054
|
+
G3 as GapSetting,
|
|
31040
31055
|
Fa as GradientSetting,
|
|
31041
|
-
|
|
31056
|
+
J3 as HeaderTypographySettingSet,
|
|
31042
31057
|
u3 as HeightSetting,
|
|
31043
|
-
|
|
31058
|
+
V3 as HtmlSetting,
|
|
31044
31059
|
m0 as ImageMapSetting,
|
|
31045
|
-
|
|
31046
|
-
|
|
31047
|
-
|
|
31048
|
-
|
|
31060
|
+
Q3 as ImageSettingSet,
|
|
31061
|
+
z3 as MarginBottomSetting,
|
|
31062
|
+
q3 as MarginSettingGroup,
|
|
31063
|
+
X3 as MarginTopSetting,
|
|
31049
31064
|
Ca as MultiLanguageSetting,
|
|
31050
31065
|
pr as NumberSetting,
|
|
31051
31066
|
y4 as OpacitySetting,
|
|
31052
|
-
|
|
31067
|
+
D3 as RootSettingGroup,
|
|
31068
|
+
W3 as SelectApiSettings,
|
|
31053
31069
|
Zi as SelectSetting,
|
|
31054
31070
|
Ae as Setting,
|
|
31055
|
-
|
|
31071
|
+
nr as SettingGroup,
|
|
31056
31072
|
v4 as StringSetting,
|
|
31057
31073
|
g4 as TabSettingGroup,
|
|
31058
31074
|
g4 as TabsSettingGroup,
|
|
31059
|
-
|
|
31060
|
-
|
|
31075
|
+
$3 as Toggle,
|
|
31076
|
+
j3 as TranslationManager,
|
|
31061
31077
|
ai as UploadSetting,
|
|
31062
31078
|
p3 as WidthSetting,
|
|
31063
|
-
|
|
31079
|
+
B3 as asSettingGroupWithSettings,
|
|
31064
31080
|
x4 as createSettingGroup,
|
|
31065
|
-
|
|
31081
|
+
R3 as createTabSettingGroup,
|
|
31066
31082
|
Er as isSetting,
|
|
31067
31083
|
vi as isSettingChild,
|
|
31068
31084
|
$e as isSettingGroup,
|