builder-settings-types 0.0.445 → 0.0.447
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/builder-settings-types.cjs.js +39 -39
- package/dist/builder-settings-types.es.js +240 -220
- package/dist/index.css +1 -1
- package/package.json +1 -1
|
@@ -265,7 +265,7 @@ function Er(t) {
|
|
|
265
265
|
return t instanceof Le;
|
|
266
266
|
}
|
|
267
267
|
function Re(t) {
|
|
268
|
-
return t instanceof
|
|
268
|
+
return t instanceof sr;
|
|
269
269
|
}
|
|
270
270
|
function wi(t) {
|
|
271
271
|
return Er(t) || Re(t);
|
|
@@ -528,7 +528,7 @@ const rs = (t, e, r) => {
|
|
|
528
528
|
return s.length ? yr({ type: "radial", angle: 0, stops: s }) : null;
|
|
529
529
|
}
|
|
530
530
|
return null;
|
|
531
|
-
},
|
|
531
|
+
}, Zt = (t) => {
|
|
532
532
|
if (t.type === "solid") {
|
|
533
533
|
const r = t.stops[0], a = r.color;
|
|
534
534
|
if (a.startsWith("var(--"))
|
|
@@ -1196,7 +1196,7 @@ class mh {
|
|
|
1196
1196
|
this.initFromColor(e, r);
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
|
-
const
|
|
1199
|
+
const Qt = class Qt extends Le {
|
|
1200
1200
|
constructor(e = {}) {
|
|
1201
1201
|
const r = typeof e.default == "string" ? void 0 : e.default;
|
|
1202
1202
|
super({
|
|
@@ -1324,7 +1324,7 @@ const Zt = class Zt extends Le {
|
|
|
1324
1324
|
this.previewEl.style.background = Vi(a, r);
|
|
1325
1325
|
} else {
|
|
1326
1326
|
const e = this.resolveGradientGlobalVars(this.value);
|
|
1327
|
-
this.previewEl.style.background =
|
|
1327
|
+
this.previewEl.style.background = Zt(e);
|
|
1328
1328
|
}
|
|
1329
1329
|
if (this.inputEl && this.value && !this.isEditing)
|
|
1330
1330
|
if (this.isBoundToGlobal() && this.linkedGlobalVariable) {
|
|
@@ -1350,7 +1350,7 @@ const Zt = class Zt extends Le {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
cssForTextValue() {
|
|
1352
1352
|
return this.value ? {
|
|
1353
|
-
background:
|
|
1353
|
+
background: Zt(this.value),
|
|
1354
1354
|
"-webkit-background-clip": "text",
|
|
1355
1355
|
"background-clip": "text",
|
|
1356
1356
|
color: "transparent",
|
|
@@ -1374,7 +1374,7 @@ const Zt = class Zt extends Le {
|
|
|
1374
1374
|
e.appendChild(a);
|
|
1375
1375
|
}
|
|
1376
1376
|
const r = document.createElement("div");
|
|
1377
|
-
return r.className = "gradient-input-wrapper", this.previewEl = document.createElement("div"), this.previewEl.className = "gradient-mini-preview", this.previewEl.style.background = this.value ?
|
|
1377
|
+
return r.className = "gradient-input-wrapper", this.previewEl = document.createElement("div"), this.previewEl.className = "gradient-mini-preview", this.previewEl.style.background = this.value ? Zt(this.value) : "linear-gradient(90deg, #a84b4b 0%, #786666 100%)", this.previewEl.addEventListener("click", (a) => {
|
|
1378
1378
|
a.preventDefault(), a.stopPropagation(), this.openPopover();
|
|
1379
1379
|
}), 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", () => {
|
|
1380
1380
|
if (this.isEditing = !0, this.value)
|
|
@@ -1390,14 +1390,14 @@ const Zt = class Zt extends Le {
|
|
|
1390
1390
|
}
|
|
1391
1391
|
}
|
|
1392
1392
|
} else
|
|
1393
|
-
this.inputEl.value =
|
|
1393
|
+
this.inputEl.value = Zt(this.value);
|
|
1394
1394
|
}), this.inputEl.addEventListener("blur", () => {
|
|
1395
1395
|
this.isEditing = !1, this.value && (this.inputEl.value = Hn(this.value));
|
|
1396
1396
|
}), this.inputEl.addEventListener(
|
|
1397
1397
|
"paste",
|
|
1398
1398
|
(a) => this.handlePaste(a)
|
|
1399
1399
|
), this.inputEl.addEventListener("input", (a) => this.handleTextInput(a)), this.inputEl.addEventListener("keydown", (a) => {
|
|
1400
|
-
a.key === "Enter" && (this.handleTextInput(a), this.inputEl.blur()), a.key === "Escape" && (this.value && (this.inputEl.value =
|
|
1400
|
+
a.key === "Enter" && (this.handleTextInput(a), this.inputEl.blur()), a.key === "Escape" && (this.value && (this.inputEl.value = Zt(this.value)), this.inputEl.blur());
|
|
1401
1401
|
}), r.appendChild(this.previewEl), this.unlinkButton = document.createElement("button"), this.unlinkButton.type = "button", this.unlinkButton.className = "gradient-unlink-button", this.unlinkButton.innerHTML = dh, this.unlinkButton.title = "Break global color binding", this.unlinkButton.addEventListener("click", (a) => {
|
|
1402
1402
|
a.preventDefault(), a.stopPropagation(), this.breakGlobalBinding();
|
|
1403
1403
|
}), r.appendChild(this.unlinkButton), r.appendChild(this.inputEl), e.appendChild(r), this.createPopover(), this.element = e, this.updateUnlinkButtonVisibility(), e;
|
|
@@ -1672,7 +1672,7 @@ const Zt = class Zt extends Le {
|
|
|
1672
1672
|
const r = e || ((a = this.popoverEl) == null ? void 0 : a.querySelector(".gradient-preview"));
|
|
1673
1673
|
if (r && this.value)
|
|
1674
1674
|
if (this.value.type === "solid")
|
|
1675
|
-
r.style.background =
|
|
1675
|
+
r.style.background = Zt(this.value);
|
|
1676
1676
|
else {
|
|
1677
1677
|
const n = this.value.stops.map(
|
|
1678
1678
|
(i) => `${Vi(i.color, i.opacity ?? 100)} ${i.position}%`
|
|
@@ -1855,13 +1855,23 @@ const Zt = class Zt extends Le {
|
|
|
1855
1855
|
break;
|
|
1856
1856
|
}
|
|
1857
1857
|
let s, o;
|
|
1858
|
-
if (n === i || n.position === i.position)
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1858
|
+
if (n === i || n.position === i.position) {
|
|
1859
|
+
const c = this.resolveGlobalVarColor(n.color);
|
|
1860
|
+
s = /^#[0-9A-Fa-f]{6}$/.test(c) ? c : "#808080", o = n.opacity ?? 100;
|
|
1861
|
+
} else {
|
|
1862
|
+
const c = (r - n.position) / (i.position - n.position), h = Math.max(0, Math.min(1, c)), f = this.resolveGlobalVarColor(n.color), u = this.resolveGlobalVarColor(i.color), p = pt(f), m = pt(u), d = !Number.isNaN(p.r) && !Number.isNaN(p.g) && !Number.isNaN(p.b), g = !Number.isNaN(m.r) && !Number.isNaN(m.g) && !Number.isNaN(m.b);
|
|
1863
|
+
if (!d && !g)
|
|
1864
|
+
s = "#808080", o = 100;
|
|
1865
|
+
else if (!d)
|
|
1866
|
+
s = /^#[0-9A-Fa-f]{6}$/.test(u) ? u : "#808080", o = i.opacity ?? 100;
|
|
1867
|
+
else if (!g)
|
|
1868
|
+
s = /^#[0-9A-Fa-f]{6}$/.test(f) ? f : "#808080", o = n.opacity ?? 100;
|
|
1869
|
+
else {
|
|
1870
|
+
const x = Math.max(0, Math.min(255, Math.round(p.r + (m.r - p.r) * h))), w = Math.max(0, Math.min(255, Math.round(p.g + (m.g - p.g) * h))), v = Math.max(0, Math.min(255, Math.round(p.b + (m.b - p.b) * h)));
|
|
1871
|
+
s = `#${x.toString(16).padStart(2, "0")}${w.toString(16).padStart(2, "0")}${v.toString(16).padStart(2, "0")}`.toUpperCase(), o = Math.max(0, Math.min(100, Math.round(
|
|
1872
|
+
(n.opacity ?? 100) + ((i.opacity ?? 100) - (n.opacity ?? 100)) * h
|
|
1873
|
+
)));
|
|
1874
|
+
}
|
|
1865
1875
|
}
|
|
1866
1876
|
const l = {
|
|
1867
1877
|
position: Math.round(r),
|
|
@@ -1871,8 +1881,8 @@ const Zt = class Zt extends Le {
|
|
|
1871
1881
|
this.value.stops.push(l), this.value.stops.sort((c, h) => c.position - h.position);
|
|
1872
1882
|
}
|
|
1873
1883
|
openPopover() {
|
|
1874
|
-
if (this.popoverEl && (
|
|
1875
|
-
if (this.isPopoverOpen = !0,
|
|
1884
|
+
if (this.popoverEl && (Qt.openInstance && Qt.openInstance !== this && Qt.openInstance.closePopover(), !this.isPopoverOpen)) {
|
|
1885
|
+
if (this.isPopoverOpen = !0, Qt.openInstance = this, this.backdropEl && (this.backdropEl.style.display = "block", this.backdropEl.parentElement || document.body.appendChild(this.backdropEl)), this.popoverEl.style.display = "flex", this.refreshPopoverContent(), this.element) {
|
|
1876
1886
|
const e = this.element.getBoundingClientRect(), r = 306, a = window.innerWidth, n = window.innerHeight, i = 16;
|
|
1877
1887
|
this.popoverEl.style.position = "fixed", this.popoverEl.style.zIndex = "10000", this.popoverEl.style.left = "-9999px", this.popoverEl.style.top = "0px";
|
|
1878
1888
|
const s = this.popoverEl.offsetHeight;
|
|
@@ -1931,10 +1941,10 @@ const Zt = class Zt extends Le {
|
|
|
1931
1941
|
var e, r;
|
|
1932
1942
|
if (!(!this.popoverEl || !this.isPopoverOpen)) {
|
|
1933
1943
|
if (this.isPopoverOpen = !1, this.popoverPosition = null, (e = this.sharedStopColorPicker) != null && e.getIsOpen() && (this.sharedStopColorPicker.close(!0), this.colorPickerStopIndex = null), this.backdropEl && (this.backdropEl.style.display = "none"), this.popoverEl.style.display = "none", document.removeEventListener("click", this.onBackgroundClick, !0), document.removeEventListener("keydown", this.handlePopoverKeydown, !0), this.commitPendingSolidColor(), this.value && this.value.type !== "solid") {
|
|
1934
|
-
const a = this.resolveGradientGlobalVars(this.value), n =
|
|
1944
|
+
const a = this.resolveGradientGlobalVars(this.value), n = Zt(a);
|
|
1935
1945
|
ea.addColor(n, "gradient"), (r = this.recentGradientRefresh) == null || r.call(this);
|
|
1936
1946
|
}
|
|
1937
|
-
this.previewUpdateTimeout && (clearTimeout(this.previewUpdateTimeout), this.previewUpdateTimeout = null),
|
|
1947
|
+
this.previewUpdateTimeout && (clearTimeout(this.previewUpdateTimeout), this.previewUpdateTimeout = null), Qt.openInstance === this && (Qt.openInstance = null);
|
|
1938
1948
|
}
|
|
1939
1949
|
}
|
|
1940
1950
|
commitPendingSolidColor() {
|
|
@@ -1977,18 +1987,18 @@ const Zt = class Zt extends Le {
|
|
|
1977
1987
|
(r = this.onColorChange) == null || r.call(this, this.getValue()), e !== void 0 && (this.changeDebounceTimeout && clearTimeout(this.changeDebounceTimeout), this.changeDebounceTimeout = setTimeout(() => {
|
|
1978
1988
|
var a, n;
|
|
1979
1989
|
(a = this.onChange) == null || a.call(this, e), (n = this.detectChange) == null || n.call(this, e), this.changeDebounceTimeout = null;
|
|
1980
|
-
},
|
|
1990
|
+
}, Qt.CHANGE_DEBOUNCE_DELAY));
|
|
1981
1991
|
}
|
|
1982
1992
|
getElement() {
|
|
1983
1993
|
return this.element;
|
|
1984
1994
|
}
|
|
1985
1995
|
getValue() {
|
|
1986
1996
|
const e = this.getChangePayload();
|
|
1987
|
-
return e ? typeof e == "string" ? e :
|
|
1997
|
+
return e ? typeof e == "string" ? e : Zt(e) : "";
|
|
1988
1998
|
}
|
|
1989
1999
|
getCSSValue() {
|
|
1990
2000
|
const e = this.getChangePayload();
|
|
1991
|
-
return e ? typeof e == "string" ? e :
|
|
2001
|
+
return e ? typeof e == "string" ? e : Zt(e) : "";
|
|
1992
2002
|
}
|
|
1993
2003
|
getCSSForText() {
|
|
1994
2004
|
return this.value ? this.cssForTextValue() : {};
|
|
@@ -1997,8 +2007,8 @@ const Zt = class Zt extends Le {
|
|
|
1997
2007
|
return this.value;
|
|
1998
2008
|
}
|
|
1999
2009
|
};
|
|
2000
|
-
|
|
2001
|
-
let La =
|
|
2010
|
+
Qt.openInstance = null, Qt.CHANGE_DEBOUNCE_DELAY = 150;
|
|
2011
|
+
let La = Qt;
|
|
2002
2012
|
/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */
|
|
2003
2013
|
var Wn = {};
|
|
2004
2014
|
Wn.version = "0.18.5";
|
|
@@ -2069,11 +2079,11 @@ var _0 = 1252, gh = [874, 932, 936, 949, 950, 1250, 1251, 1252, 1253, 1254, 1255
|
|
|
2069
2079
|
function xh() {
|
|
2070
2080
|
is(1252);
|
|
2071
2081
|
}
|
|
2072
|
-
var
|
|
2082
|
+
var rr = function(t) {
|
|
2073
2083
|
is(t);
|
|
2074
2084
|
};
|
|
2075
2085
|
function ss() {
|
|
2076
|
-
|
|
2086
|
+
rr(1200), xh();
|
|
2077
2087
|
}
|
|
2078
2088
|
function to(t) {
|
|
2079
2089
|
for (var e = [], r = 0, a = t.length; r < a; ++r) e[r] = t.charCodeAt(r);
|
|
@@ -2094,17 +2104,17 @@ var $a = function(t) {
|
|
|
2094
2104
|
return String.fromCharCode(e);
|
|
2095
2105
|
}, ro = function(e) {
|
|
2096
2106
|
return String.fromCharCode(e);
|
|
2097
|
-
}, Hi,
|
|
2107
|
+
}, Hi, Pr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
|
|
2098
2108
|
function rn(t) {
|
|
2099
2109
|
for (var e = "", r = 0, a = 0, n = 0, i = 0, s = 0, o = 0, l = 0, c = 0; c < t.length; )
|
|
2100
|
-
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 +=
|
|
2110
|
+
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 += Pr.charAt(i) + Pr.charAt(s) + Pr.charAt(o) + Pr.charAt(l);
|
|
2101
2111
|
return e;
|
|
2102
2112
|
}
|
|
2103
2113
|
function Bt(t) {
|
|
2104
2114
|
var e = "", r = 0, a = 0, n = 0, i = 0, s = 0, o = 0, l = 0;
|
|
2105
2115
|
t = t.replace(/[^\w\+\/\=]/g, "");
|
|
2106
2116
|
for (var c = 0; c < t.length; )
|
|
2107
|
-
i =
|
|
2117
|
+
i = Pr.indexOf(t.charAt(c++)), s = Pr.indexOf(t.charAt(c++)), r = i << 2 | s >> 4, e += String.fromCharCode(r), o = Pr.indexOf(t.charAt(c++)), a = (s & 15) << 4 | o >> 2, o !== 64 && (e += String.fromCharCode(a)), l = Pr.indexOf(t.charAt(c++)), n = (o & 3) << 6 | l, l !== 64 && (e += String.fromCharCode(n));
|
|
2108
2118
|
return e;
|
|
2109
2119
|
}
|
|
2110
2120
|
var _e = /* @__PURE__ */ function() {
|
|
@@ -2124,7 +2134,7 @@ var _e = /* @__PURE__ */ function() {
|
|
|
2124
2134
|
return function() {
|
|
2125
2135
|
};
|
|
2126
2136
|
}();
|
|
2127
|
-
function
|
|
2137
|
+
function Rr(t) {
|
|
2128
2138
|
return _e ? Buffer.alloc ? Buffer.alloc(t) : new Buffer(t) : typeof Uint8Array < "u" ? new Uint8Array(t) : new Array(t);
|
|
2129
2139
|
}
|
|
2130
2140
|
function ao(t) {
|
|
@@ -2140,7 +2150,7 @@ function li(t) {
|
|
|
2140
2150
|
for (var e = new ArrayBuffer(t.length), r = new Uint8Array(e), a = 0; a != t.length; ++a) r[a] = t.charCodeAt(a) & 255;
|
|
2141
2151
|
return e;
|
|
2142
2152
|
}
|
|
2143
|
-
function
|
|
2153
|
+
function Ur(t) {
|
|
2144
2154
|
if (Array.isArray(t)) return t.map(function(a) {
|
|
2145
2155
|
return String.fromCharCode(a);
|
|
2146
2156
|
}).join("");
|
|
@@ -2180,7 +2190,7 @@ var ht = _e ? function(t) {
|
|
|
2180
2190
|
}));
|
|
2181
2191
|
};
|
|
2182
2192
|
function Eh(t) {
|
|
2183
|
-
for (var e = [], r = 0, a = t.length + 250, n =
|
|
2193
|
+
for (var e = [], r = 0, a = t.length + 250, n = Rr(t.length + 255), i = 0; i < t.length; ++i) {
|
|
2184
2194
|
var s = t.charCodeAt(i);
|
|
2185
2195
|
if (s < 128) n[r++] = s;
|
|
2186
2196
|
else if (s < 2048)
|
|
@@ -2191,7 +2201,7 @@ function Eh(t) {
|
|
|
2191
2201
|
n[r++] = 240 | s >> 8 & 7, n[r++] = 128 | s >> 2 & 63, n[r++] = 128 | o >> 6 & 15 | (s & 3) << 4, n[r++] = 128 | o & 63;
|
|
2192
2202
|
} else
|
|
2193
2203
|
n[r++] = 224 | s >> 12 & 15, n[r++] = 128 | s >> 6 & 63, n[r++] = 128 | s & 63;
|
|
2194
|
-
r > a && (e.push(n.slice(0, r)), r = 0, n =
|
|
2204
|
+
r > a && (e.push(n.slice(0, r)), r = 0, n = Rr(65535), a = 65530);
|
|
2195
2205
|
}
|
|
2196
2206
|
return e.push(n.slice(0, r)), ht(e);
|
|
2197
2207
|
}
|
|
@@ -2200,7 +2210,7 @@ function _a(t) {
|
|
|
2200
2210
|
for (var e = "", r = t.length - 1; r >= 0; ) e += t.charAt(r--);
|
|
2201
2211
|
return e;
|
|
2202
2212
|
}
|
|
2203
|
-
function
|
|
2213
|
+
function ar(t, e) {
|
|
2204
2214
|
var r = "" + t;
|
|
2205
2215
|
return r.length >= e ? r : Ke("0", e - r.length) + r;
|
|
2206
2216
|
}
|
|
@@ -2500,7 +2510,7 @@ function Ih(t, e, r, a) {
|
|
|
2500
2510
|
break;
|
|
2501
2511
|
case 115:
|
|
2502
2512
|
if (e != "s" && e != "ss" && e != ".0" && e != ".00" && e != ".000") throw "bad second format: " + e;
|
|
2503
|
-
return r.u === 0 && (e == "s" || e == "ss") ?
|
|
2513
|
+
return r.u === 0 && (e == "s" || e == "ss") ? ar(r.S, e.length) : (a >= 2 ? s = a === 3 ? 1e3 : 100 : s = a === 1 ? 10 : 1, i = Math.round(s * (r.S + r.u)), i >= 60 * s && (i = 0), e === "s" ? i === 0 ? "0" : "" + i / s : (n = ar(i, 2 + a), e === "ss" ? n.substr(0, 2) : "." + n.substr(2, e.length - 1)));
|
|
2504
2514
|
case 90:
|
|
2505
2515
|
switch (e) {
|
|
2506
2516
|
case "[h]":
|
|
@@ -2524,10 +2534,10 @@ function Ih(t, e, r, a) {
|
|
|
2524
2534
|
l = o, c = 1;
|
|
2525
2535
|
break;
|
|
2526
2536
|
}
|
|
2527
|
-
var h = c > 0 ?
|
|
2537
|
+
var h = c > 0 ? ar(l, c) : "";
|
|
2528
2538
|
return h;
|
|
2529
2539
|
}
|
|
2530
|
-
function
|
|
2540
|
+
function Dr(t) {
|
|
2531
2541
|
var e = 3;
|
|
2532
2542
|
if (t.length <= e) return t;
|
|
2533
2543
|
for (var r = t.length % e, a = t.substr(0, r); r != t.length; r += e) a += (a.length > 0 ? "," : "") + t.substr(r, e);
|
|
@@ -2565,7 +2575,7 @@ function F0(t, e) {
|
|
|
2565
2575
|
var A0 = /# (\?+)( ?)\/( ?)(\d+)/;
|
|
2566
2576
|
function Oh(t, e, r) {
|
|
2567
2577
|
var a = parseInt(t[4], 10), n = Math.round(e * a), i = Math.floor(n / a), s = n - i * a, o = a;
|
|
2568
|
-
return r + (i === 0 ? "" : "" + i) + " " + (s === 0 ? Ke(" ", t[1].length + 1 + t[4].length) : ls(s, t[1].length) + t[2] + "/" + t[3] +
|
|
2578
|
+
return r + (i === 0 ? "" : "" + i) + " " + (s === 0 ? Ke(" ", t[1].length + 1 + t[4].length) : ls(s, t[1].length) + t[2] + "/" + t[3] + ar(o, t[4].length));
|
|
2569
2579
|
}
|
|
2570
2580
|
function Ph(t, e, r) {
|
|
2571
2581
|
return r + (e === 0 ? "" : "" + e) + Ke(" ", t[1].length + 2 + t[4].length);
|
|
@@ -2624,9 +2634,9 @@ function $t(t, e, r) {
|
|
|
2624
2634
|
}), e.indexOf("0.") !== -1 ? n : n.replace(/^0\./, ".");
|
|
2625
2635
|
if (e = e.replace(/^#+([0.])/, "$1"), i = e.match(/^(0*)\.(#*)$/))
|
|
2626
2636
|
return c + oo(l, i[2].length).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, i[1].length ? "0." : ".");
|
|
2627
|
-
if (i = e.match(/^#{1,3},##0(\.?)$/)) return c +
|
|
2637
|
+
if (i = e.match(/^#{1,3},##0(\.?)$/)) return c + Dr(da(l, 0));
|
|
2628
2638
|
if (i = e.match(/^#,##0\.([#0]*0)$/))
|
|
2629
|
-
return r < 0 ? "-" + $t(t, e, -r) :
|
|
2639
|
+
return r < 0 ? "-" + $t(t, e, -r) : Dr("" + (Math.floor(r) + Dh(r, i[1].length))) + "." + ar(lo(r, i[1].length), i[1].length);
|
|
2630
2640
|
if (i = e.match(/^#,#*,#0/)) return $t(t, e.replace(/^#,#*,/, ""), r);
|
|
2631
2641
|
if (i = e.match(/^([0#]+)(\\?-([0#]+))+$/))
|
|
2632
2642
|
return n = _a($t(t, e.replace(/[\\-]/g, ""), r)), s = 0, _a(_a(e.replace(/\\/g, "")).replace(/[0#]/g, function(m) {
|
|
@@ -2658,16 +2668,16 @@ function $t(t, e, r) {
|
|
|
2658
2668
|
return bt(e.substr(0, f) + n + e.substr(e.length - u));
|
|
2659
2669
|
}
|
|
2660
2670
|
if (i = e.match(/^00,000\.([#0]*0)$/))
|
|
2661
|
-
return s = lo(r, i[1].length), r < 0 ? "-" + $t(t, e, -r) :
|
|
2662
|
-
return "00," + (m.length < 3 ?
|
|
2663
|
-
}) + "." +
|
|
2671
|
+
return s = lo(r, i[1].length), r < 0 ? "-" + $t(t, e, -r) : Dr(Rh(r)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(m) {
|
|
2672
|
+
return "00," + (m.length < 3 ? ar(0, 3 - m.length) : "") + m;
|
|
2673
|
+
}) + "." + ar(s, i[1].length);
|
|
2664
2674
|
switch (e) {
|
|
2665
2675
|
case "###,##0.00":
|
|
2666
2676
|
return $t(t, "#,##0.00", r);
|
|
2667
2677
|
case "###,###":
|
|
2668
2678
|
case "##,###":
|
|
2669
2679
|
case "#,###":
|
|
2670
|
-
var p =
|
|
2680
|
+
var p = Dr(da(l, 0));
|
|
2671
2681
|
return p !== "0" ? c + p : "";
|
|
2672
2682
|
case "###,###.00":
|
|
2673
2683
|
return $t(t, "###,##0.00", r).replace(/^0\./, ".");
|
|
@@ -2712,20 +2722,20 @@ function hr(t, e, r) {
|
|
|
2712
2722
|
if (e.indexOf("E") !== -1) return O0(e, r);
|
|
2713
2723
|
if (e.charCodeAt(0) === 36) return "$" + hr(t, e.substr(e.charAt(1) == " " ? 2 : 1), r);
|
|
2714
2724
|
var n, i, s, o, l = Math.abs(r), c = r < 0 ? "-" : "";
|
|
2715
|
-
if (e.match(/^00+$/)) return c +
|
|
2725
|
+
if (e.match(/^00+$/)) return c + ar(l, e.length);
|
|
2716
2726
|
if (e.match(/^[#?]+$/))
|
|
2717
2727
|
return n = "" + r, r === 0 && (n = ""), n.length > e.length ? n : bt(e.substr(0, e.length - n.length)) + n;
|
|
2718
2728
|
if (i = e.match(A0)) return Ph(i, l, c);
|
|
2719
|
-
if (e.match(/^#+0+$/)) return c +
|
|
2729
|
+
if (e.match(/^#+0+$/)) return c + ar(l, e.length - e.indexOf("0"));
|
|
2720
2730
|
if (i = e.match(I0))
|
|
2721
2731
|
return n = ("" + r).replace(/^([^\.]+)$/, "$1." + bt(i[1])).replace(/\.$/, "." + bt(i[1])), n = n.replace(/\.(\d*)$/, function(m, d) {
|
|
2722
2732
|
return "." + d + Ke("0", bt(i[1]).length - d.length);
|
|
2723
2733
|
}), e.indexOf("0.") !== -1 ? n : n.replace(/^0\./, ".");
|
|
2724
2734
|
if (e = e.replace(/^#+([0.])/, "$1"), i = e.match(/^(0*)\.(#*)$/))
|
|
2725
2735
|
return c + ("" + l).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, i[1].length ? "0." : ".");
|
|
2726
|
-
if (i = e.match(/^#{1,3},##0(\.?)$/)) return c +
|
|
2736
|
+
if (i = e.match(/^#{1,3},##0(\.?)$/)) return c + Dr("" + l);
|
|
2727
2737
|
if (i = e.match(/^#,##0\.([#0]*0)$/))
|
|
2728
|
-
return r < 0 ? "-" + hr(t, e, -r) :
|
|
2738
|
+
return r < 0 ? "-" + hr(t, e, -r) : Dr("" + r) + "." + Ke("0", i[1].length);
|
|
2729
2739
|
if (i = e.match(/^#,#*,#0/)) return hr(t, e.replace(/^#,#*,/, ""), r);
|
|
2730
2740
|
if (i = e.match(/^([0#]+)(\\?-([0#]+))+$/))
|
|
2731
2741
|
return n = _a(hr(t, e.replace(/[\\-]/g, ""), r)), s = 0, _a(_a(e.replace(/\\/g, "")).replace(/[0#]/g, function(m) {
|
|
@@ -2757,14 +2767,14 @@ function hr(t, e, r) {
|
|
|
2757
2767
|
return bt(e.substr(0, f) + n + e.substr(e.length - u));
|
|
2758
2768
|
}
|
|
2759
2769
|
if (i = e.match(/^00,000\.([#0]*0)$/))
|
|
2760
|
-
return r < 0 ? "-" + hr(t, e, -r) :
|
|
2761
|
-
return "00," + (m.length < 3 ?
|
|
2762
|
-
}) + "." +
|
|
2770
|
+
return r < 0 ? "-" + hr(t, e, -r) : Dr("" + r).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(m) {
|
|
2771
|
+
return "00," + (m.length < 3 ? ar(0, 3 - m.length) : "") + m;
|
|
2772
|
+
}) + "." + ar(0, i[1].length);
|
|
2763
2773
|
switch (e) {
|
|
2764
2774
|
case "###,###":
|
|
2765
2775
|
case "##,###":
|
|
2766
2776
|
case "#,###":
|
|
2767
|
-
var p =
|
|
2777
|
+
var p = Dr("" + l);
|
|
2768
2778
|
return p !== "0" ? c + p : "";
|
|
2769
2779
|
default:
|
|
2770
2780
|
if (e.match(/\.[0#?]*$/)) return hr(t, e.slice(0, e.lastIndexOf(".")), r) + bt(e.slice(e.lastIndexOf(".")));
|
|
@@ -3629,8 +3639,8 @@ var Xh = /* @__PURE__ */ function() {
|
|
|
3629
3639
|
ze > 0 && (ze < 4096 ? ee += ze + 63 >> 6 : fe += ze + 511 >> 9);
|
|
3630
3640
|
}
|
|
3631
3641
|
}
|
|
3632
|
-
for (var gt = ue.FullPaths.length + 3 >> 2, Ba = ee + 7 >> 3, Va = ee + 127 >> 7, Ha = Ba + fe + gt + Va,
|
|
3633
|
-
var wr = [1, vi,
|
|
3642
|
+
for (var gt = ue.FullPaths.length + 3 >> 2, Ba = ee + 7 >> 3, Va = ee + 127 >> 7, Ha = Ba + fe + gt + Va, zr = Ha + 127 >> 7, vi = zr <= 109 ? 0 : Math.ceil((zr - 109) / 127); Ha + zr + vi + 127 >> 7 > zr; ) vi = ++zr <= 109 ? 0 : Math.ceil((zr - 109) / 127);
|
|
3643
|
+
var wr = [1, vi, zr, Va, gt, fe, ee, 0];
|
|
3634
3644
|
return ue.FileIndex[0].size = ee << 6, wr[7] = (ue.FileIndex[0].start = wr[0] + wr[1] + wr[2] + wr[3] + wr[4] + wr[5]) + (wr[6] + 7 >> 3), wr;
|
|
3635
3645
|
}(E), S = X(k[7] << 9), b = 0, H = 0;
|
|
3636
3646
|
{
|
|
@@ -3806,7 +3816,7 @@ var Xh = /* @__PURE__ */ function() {
|
|
|
3806
3816
|
var k = T & 7, S = T >>> 3;
|
|
3807
3817
|
return k <= 5 ? E[S] |= (y & 7) << k : (E[S] |= y << k & 255, E[S + 1] = (y & 7) >> 8 - k), T + 3;
|
|
3808
3818
|
}
|
|
3809
|
-
function
|
|
3819
|
+
function or(E, T, y) {
|
|
3810
3820
|
var k = T & 7, S = T >>> 3;
|
|
3811
3821
|
return y = (y & 1) << k, E[S] |= y, T + 1;
|
|
3812
3822
|
}
|
|
@@ -3871,7 +3881,7 @@ var Xh = /* @__PURE__ */ function() {
|
|
|
3871
3881
|
for (; T <= 287; T++) y.push(8);
|
|
3872
3882
|
vr(y, Nr, 288);
|
|
3873
3883
|
})();
|
|
3874
|
-
var
|
|
3884
|
+
var lr = /* @__PURE__ */ function() {
|
|
3875
3885
|
for (var T = Q ? new Uint8Array(32768) : [], y = 0, k = 0; y < te.length - 1; ++y)
|
|
3876
3886
|
for (; k < te[y + 1]; ++k) T[k] = y;
|
|
3877
3887
|
for (; k < 32768; ++k) T[k] = 29;
|
|
@@ -3913,7 +3923,7 @@ var Xh = /* @__PURE__ */ function() {
|
|
|
3913
3923
|
Z[ue] = G & 32767, ue = (ue << 5 ^ j[G]) & 32767, ++G;
|
|
3914
3924
|
se -= Ee - 1;
|
|
3915
3925
|
} else
|
|
3916
|
-
ee <= 143 ? ee = ee + 48 : U =
|
|
3926
|
+
ee <= 143 ? ee = ee + 48 : U = or(V, U, 1), U = xr(V, U, J[ee]), Z[ue] = G & 32767, ++G;
|
|
3917
3927
|
}
|
|
3918
3928
|
U = xr(V, U, 0) - 1;
|
|
3919
3929
|
}
|
|
@@ -3924,10 +3934,10 @@ var Xh = /* @__PURE__ */ function() {
|
|
|
3924
3934
|
};
|
|
3925
3935
|
}();
|
|
3926
3936
|
function Te(E) {
|
|
3927
|
-
var T = X(50 + Math.floor(E.length * 1.1)), y =
|
|
3937
|
+
var T = X(50 + Math.floor(E.length * 1.1)), y = lr(E, T);
|
|
3928
3938
|
return T.slice(0, y);
|
|
3929
3939
|
}
|
|
3930
|
-
var Ze = Q ? new Uint16Array(32768) : Mt(32768), Ht = Q ? new Uint16Array(32768) : Mt(32768), it = Q ? new Uint16Array(128) : Mt(128),
|
|
3940
|
+
var Ze = Q ? new Uint16Array(32768) : Mt(32768), Ht = Q ? new Uint16Array(32768) : Mt(32768), it = Q ? new Uint16Array(128) : Mt(128), Gr = 1, js = 1;
|
|
3931
3941
|
function Rc(E, T) {
|
|
3932
3942
|
var y = be(E, T) + 257;
|
|
3933
3943
|
T += 5;
|
|
@@ -3965,14 +3975,14 @@ var Xh = /* @__PURE__ */ function() {
|
|
|
3965
3975
|
var Ge = Ee.slice(0, y), ze = Ee.slice(y);
|
|
3966
3976
|
for (se = y; se < 286; ++se) Ge[se] = 0;
|
|
3967
3977
|
for (se = k; se < 30; ++se) ze[se] = 0;
|
|
3968
|
-
return
|
|
3978
|
+
return Gr = vr(Ge, Ze, 286), js = vr(ze, Ht, 30), T;
|
|
3969
3979
|
}
|
|
3970
3980
|
function Bc(E, T) {
|
|
3971
3981
|
if (E[0] == 3 && !(E[1] & 3))
|
|
3972
|
-
return [
|
|
3982
|
+
return [Rr(T), 2];
|
|
3973
3983
|
for (var y = 0, k = 0, S = ao(T || 1 << 18), b = 0, H = S.length >>> 0, j = 0, V = 0; !(k & 1); ) {
|
|
3974
3984
|
if (k = Ae(E, y), y += 3, k >>> 1)
|
|
3975
|
-
k >> 1 == 1 ? (j = 9, V = 5) : (y = Rc(E, y), j =
|
|
3985
|
+
k >> 1 == 1 ? (j = 9, V = 5) : (y = Rc(E, y), j = Gr, V = js);
|
|
3976
3986
|
else {
|
|
3977
3987
|
y & 7 && (y += 8 - (y & 7));
|
|
3978
3988
|
var U = E[y >>> 3] | E[(y >>> 3) + 1] << 8;
|
|
@@ -4313,7 +4323,7 @@ function gn(t, e, r) {
|
|
|
4313
4323
|
}
|
|
4314
4324
|
if (typeof $ < "u" && typeof File < "u" && typeof Folder < "u") try {
|
|
4315
4325
|
var o = File(t);
|
|
4316
|
-
return o.open("w"), o.encoding = "binary", Array.isArray(e) && (e =
|
|
4326
|
+
return o.open("w"), o.encoding = "binary", Array.isArray(e) && (e = Ur(e)), o.write(e), o.close(), e;
|
|
4317
4327
|
} catch (l) {
|
|
4318
4328
|
if (!l.message || !l.message.match(/onstruct/)) throw l;
|
|
4319
4329
|
}
|
|
@@ -4459,7 +4469,7 @@ function Ke(t, e) {
|
|
|
4459
4469
|
for (var r = ""; r.length < e; ) r += t;
|
|
4460
4470
|
return r;
|
|
4461
4471
|
}
|
|
4462
|
-
function
|
|
4472
|
+
function nr(t) {
|
|
4463
4473
|
var e = Number(t);
|
|
4464
4474
|
if (!isNaN(e)) return isFinite(e) ? e : NaN;
|
|
4465
4475
|
if (!/\d/.test(t)) return e;
|
|
@@ -4690,7 +4700,7 @@ function Ci(t) {
|
|
|
4690
4700
|
return e;
|
|
4691
4701
|
}
|
|
4692
4702
|
function wo(t) {
|
|
4693
|
-
var e =
|
|
4703
|
+
var e = Rr(2 * t.length), r, a, n = 1, i = 0, s = 0, o;
|
|
4694
4704
|
for (a = 0; a < t.length; a += n)
|
|
4695
4705
|
n = 1, (o = t.charCodeAt(a)) < 128 ? r = o : o < 224 ? (r = (o & 31) * 64 + (t.charCodeAt(a + 1) & 63), n = 2) : o < 240 ? (r = (o & 15) * 4096 + (t.charCodeAt(a + 1) & 63) * 64 + (t.charCodeAt(a + 2) & 63), n = 3) : (n = 4, r = (o & 7) * 262144 + (t.charCodeAt(a + 1) & 63) * 4096 + (t.charCodeAt(a + 2) & 63) * 64 + (t.charCodeAt(a + 3) & 63), r -= 65536, s = 55296 + (r >>> 10 & 1023), r = 56320 + (r & 1023)), s !== 0 && (e[i++] = s & 255, e[i++] = s >>> 8, s = 0), e[i++] = r % 256, e[i++] = r >>> 8;
|
|
4696
4706
|
return e.slice(0, i).toString("ucs2");
|
|
@@ -4793,7 +4803,7 @@ function ms(t) {
|
|
|
4793
4803
|
if (_e && /*::typeof Buffer !== "undefined" && d != null && d instanceof Buffer &&*/
|
|
4794
4804
|
Buffer.isBuffer(t)) return t.toString("utf8");
|
|
4795
4805
|
if (typeof t == "string") return t;
|
|
4796
|
-
if (typeof Uint8Array < "u" && t instanceof Uint8Array) return Be(
|
|
4806
|
+
if (typeof Uint8Array < "u" && t instanceof Uint8Array) return Be(Ur(os(t)));
|
|
4797
4807
|
throw new Error("Bad input format: expected Buffer or string");
|
|
4798
4808
|
}
|
|
4799
4809
|
var on = /<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg, st = {
|
|
@@ -5068,7 +5078,7 @@ function kt(t, e) {
|
|
|
5068
5078
|
t.l += e;
|
|
5069
5079
|
}
|
|
5070
5080
|
function X(t) {
|
|
5071
|
-
var e =
|
|
5081
|
+
var e = Rr(t);
|
|
5072
5082
|
return dt(e, 0), e;
|
|
5073
5083
|
}
|
|
5074
5084
|
function Fr(t, e, r) {
|
|
@@ -5218,7 +5228,7 @@ function Lo(t, e) {
|
|
|
5218
5228
|
function br(t, e, r) {
|
|
5219
5229
|
return t == null || t.t == null || t.t == "z" ? "" : t.w !== void 0 ? t.w : (t.t == "d" && !t.z && r && r.dateNF && (t.z = r.dateNF), t.t == "e" ? Ar[t.v] || t.v : e == null ? Lo(t, t.v) : Lo(t, e));
|
|
5220
5230
|
}
|
|
5221
|
-
function
|
|
5231
|
+
function $r(t, e) {
|
|
5222
5232
|
var r = e && e.sheet ? e.sheet : "Sheet1", a = {};
|
|
5223
5233
|
return a[r] = t, { SheetNames: [r], Sheets: a };
|
|
5224
5234
|
}
|
|
@@ -5267,7 +5277,7 @@ function Oa(t, e) {
|
|
|
5267
5277
|
function Lf(t) {
|
|
5268
5278
|
return t.read_shift(4, "i");
|
|
5269
5279
|
}
|
|
5270
|
-
function
|
|
5280
|
+
function ir(t, e) {
|
|
5271
5281
|
return e || (e = X(4)), e.write_shift(4, t), e;
|
|
5272
5282
|
}
|
|
5273
5283
|
function yt(t) {
|
|
@@ -6736,13 +6746,13 @@ function Oo(t, e) {
|
|
|
6736
6746
|
case -536:
|
|
6737
6747
|
case 65001:
|
|
6738
6748
|
case -535:
|
|
6739
|
-
|
|
6749
|
+
rr(o = u[m.n] >>> 0 & 65535);
|
|
6740
6750
|
break;
|
|
6741
6751
|
default:
|
|
6742
6752
|
throw new Error("Unsupported CodePage: " + u[m.n]);
|
|
6743
6753
|
}
|
|
6744
6754
|
} else if (i[s][0] === 1) {
|
|
6745
|
-
if (o = u.CodePage = Zn(t, _s),
|
|
6755
|
+
if (o = u.CodePage = Zn(t, _s), rr(o), l !== -1) {
|
|
6746
6756
|
var d = t.l;
|
|
6747
6757
|
t.l = i[l][1], c = No(t, o), t.l = d;
|
|
6748
6758
|
}
|
|
@@ -7924,7 +7934,7 @@ var id = [2, 3, 48, 49, 131, 139, 140, 245], Ki = /* @__PURE__ */ function() {
|
|
|
7924
7934
|
0: 20127
|
|
7925
7935
|
});
|
|
7926
7936
|
function r(o, l) {
|
|
7927
|
-
var c = [], h =
|
|
7937
|
+
var c = [], h = Rr(1);
|
|
7928
7938
|
switch (l.type) {
|
|
7929
7939
|
case "base64":
|
|
7930
7940
|
h = Dt(Bt(o));
|
|
@@ -8114,7 +8124,7 @@ var id = [2, 3, 48, 49, 131, 139, 140, 245], Ki = /* @__PURE__ */ function() {
|
|
|
8114
8124
|
}
|
|
8115
8125
|
function n(o, l) {
|
|
8116
8126
|
try {
|
|
8117
|
-
return
|
|
8127
|
+
return $r(a(o, l), l);
|
|
8118
8128
|
} catch (c) {
|
|
8119
8129
|
if (l && l.WTF) throw c;
|
|
8120
8130
|
}
|
|
@@ -8123,7 +8133,7 @@ var id = [2, 3, 48, 49, 131, 139, 140, 245], Ki = /* @__PURE__ */ function() {
|
|
|
8123
8133
|
var i = { B: 8, C: 250, L: 1, D: 8, "?": 0, "": 0 };
|
|
8124
8134
|
function s(o, l) {
|
|
8125
8135
|
var c = l || {};
|
|
8126
|
-
if (+c.codepage >= 0 &&
|
|
8136
|
+
if (+c.codepage >= 0 && rr(+c.codepage), c.type == "string") throw new Error("Cannot write DBF to JS string");
|
|
8127
8137
|
var h = It(), f = ri(o, { header: 1, raw: !0, cellDates: !0 }), u = f[0], p = f.slice(1), m = o["!cols"] || [], d = 0, g = 0, x = 0, w = 1;
|
|
8128
8138
|
for (d = 0; d < u.length; ++d) {
|
|
8129
8139
|
if (((m[d] || {}).DBF || {}).name) {
|
|
@@ -8328,7 +8338,7 @@ var id = [2, 3, 48, 49, 131, 139, 140, 245], Ki = /* @__PURE__ */ function() {
|
|
|
8328
8338
|
case "binary":
|
|
8329
8339
|
return i(u, p);
|
|
8330
8340
|
case "buffer":
|
|
8331
|
-
return i(_e && Buffer.isBuffer(u) ? u.toString("binary") :
|
|
8341
|
+
return i(_e && Buffer.isBuffer(u) ? u.toString("binary") : Ur(u), p);
|
|
8332
8342
|
case "array":
|
|
8333
8343
|
return i(ra(u), p);
|
|
8334
8344
|
}
|
|
@@ -8336,7 +8346,7 @@ var id = [2, 3, 48, 49, 131, 139, 140, 245], Ki = /* @__PURE__ */ function() {
|
|
|
8336
8346
|
}
|
|
8337
8347
|
function i(u, p) {
|
|
8338
8348
|
var m = u.split(/[\n\r]+/), d = -1, g = -1, x = 0, w = 0, v = [], I = [], L = null, _ = {}, C = [], M = [], N = [], z = 0, B;
|
|
8339
|
-
for (+p.codepage >= 0 &&
|
|
8349
|
+
for (+p.codepage >= 0 && rr(+p.codepage); x !== m.length; ++x) {
|
|
8340
8350
|
z = 0;
|
|
8341
8351
|
var D = m[x].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g, a).replace(e, r), q = D.replace(/;;/g, "\0").split(";").map(function(P) {
|
|
8342
8352
|
return P.replace(/\u0000/g, ";");
|
|
@@ -8373,7 +8383,7 @@ var id = [2, 3, 48, 49, 131, 139, 140, 245], Ki = /* @__PURE__ */ function() {
|
|
|
8373
8383
|
for (d = parseInt(q[w].slice(1)) - 1, le || (g = 0), B = v.length; B <= d; ++B) v[B] = [];
|
|
8374
8384
|
break;
|
|
8375
8385
|
case "K":
|
|
8376
|
-
ie = q[w].slice(1), ie.charAt(0) === '"' ? ie = ie.slice(1, ie.length - 1) : ie === "TRUE" ? ie = !0 : ie === "FALSE" ? ie = !1 : isNaN(
|
|
8386
|
+
ie = q[w].slice(1), ie.charAt(0) === '"' ? ie = ie.slice(1, ie.length - 1) : ie === "TRUE" ? ie = !0 : ie === "FALSE" ? ie = !1 : isNaN(nr(ie)) ? isNaN(Fa(ie).getDate()) || (ie = $e(ie)) : (ie = nr(ie), L !== null && Na(L) && (ie = ui(ie))), he = !0;
|
|
8377
8387
|
break;
|
|
8378
8388
|
case "E":
|
|
8379
8389
|
W = !0;
|
|
@@ -8434,7 +8444,7 @@ var id = [2, 3, 48, 49, 131, 139, 140, 245], Ki = /* @__PURE__ */ function() {
|
|
|
8434
8444
|
/* font */
|
|
8435
8445
|
case "W":
|
|
8436
8446
|
for (N = q[w].slice(1).split(" "), B = parseInt(N[0], 10); B <= parseInt(N[1], 10); ++B)
|
|
8437
|
-
z = parseInt(N[2], 10), M[B - 1] = z === 0 ? { hidden: !0 } : { wch: z },
|
|
8447
|
+
z = parseInt(N[2], 10), M[B - 1] = z === 0 ? { hidden: !0 } : { wch: z }, Br(M[B - 1]);
|
|
8438
8448
|
break;
|
|
8439
8449
|
case "C":
|
|
8440
8450
|
g = parseInt(q[w].slice(1)) - 1, M[g] || (M[g] = {});
|
|
@@ -8460,7 +8470,7 @@ var id = [2, 3, 48, 49, 131, 139, 140, 245], Ki = /* @__PURE__ */ function() {
|
|
|
8460
8470
|
}), x;
|
|
8461
8471
|
}
|
|
8462
8472
|
function o(u, p) {
|
|
8463
|
-
return
|
|
8473
|
+
return $r(s(u, p), p);
|
|
8464
8474
|
}
|
|
8465
8475
|
function l(u, p, m, d) {
|
|
8466
8476
|
var g = "C;Y" + (m + 1) + ";X" + (d + 1) + ";K";
|
|
@@ -8519,7 +8529,7 @@ var id = [2, 3, 48, 49, 131, 139, 140, 245], Ki = /* @__PURE__ */ function() {
|
|
|
8519
8529
|
case "binary":
|
|
8520
8530
|
return e(i, s);
|
|
8521
8531
|
case "buffer":
|
|
8522
|
-
return e(_e && Buffer.isBuffer(i) ? i.toString("binary") :
|
|
8532
|
+
return e(_e && Buffer.isBuffer(i) ? i.toString("binary") : Ur(i), s);
|
|
8523
8533
|
case "array":
|
|
8524
8534
|
return e(ra(i), s);
|
|
8525
8535
|
}
|
|
@@ -8545,7 +8555,7 @@ var id = [2, 3, 48, 49, 131, 139, 140, 245], Ki = /* @__PURE__ */ function() {
|
|
|
8545
8555
|
} else if (d !== "EOD") throw new Error("Unrecognized DIF special command " + d);
|
|
8546
8556
|
break;
|
|
8547
8557
|
case 0:
|
|
8548
|
-
d === "TRUE" ? f[l][c] = !0 : d === "FALSE" ? f[l][c] = !1 : isNaN(
|
|
8558
|
+
d === "TRUE" ? f[l][c] = !0 : d === "FALSE" ? f[l][c] = !1 : isNaN(nr(m)) ? isNaN(Fa(m).getDate()) ? f[l][c] = m : f[l][c] = $e(m) : f[l][c] = nr(m), ++c;
|
|
8549
8559
|
break;
|
|
8550
8560
|
case 1:
|
|
8551
8561
|
d = d.slice(1, d.length - 1), d = d.replace(/""/g, '"'), d && d.match(/^=".*"$/) && (d = d.slice(2, -1)), f[l][c++] = d !== "" ? d : null;
|
|
@@ -8560,7 +8570,7 @@ var id = [2, 3, 48, 49, 131, 139, 140, 245], Ki = /* @__PURE__ */ function() {
|
|
|
8560
8570
|
return Oa(t(i, s), s);
|
|
8561
8571
|
}
|
|
8562
8572
|
function a(i, s) {
|
|
8563
|
-
return
|
|
8573
|
+
return $r(r(i, s), s);
|
|
8564
8574
|
}
|
|
8565
8575
|
var n = /* @__PURE__ */ function() {
|
|
8566
8576
|
var i = function(l, c, h, f, u) {
|
|
@@ -8653,7 +8663,7 @@ var id = [2, 3, 48, 49, 131, 139, 140, 245], Ki = /* @__PURE__ */ function() {
|
|
|
8653
8663
|
return Oa(r(f, u), u);
|
|
8654
8664
|
}
|
|
8655
8665
|
function n(f, u) {
|
|
8656
|
-
return
|
|
8666
|
+
return $r(a(f, u), u);
|
|
8657
8667
|
}
|
|
8658
8668
|
var i = [
|
|
8659
8669
|
"socialcalc:version:1.5",
|
|
@@ -8709,7 +8719,7 @@ var id = [2, 3, 48, 49, 131, 139, 140, 245], Ki = /* @__PURE__ */ function() {
|
|
|
8709
8719
|
};
|
|
8710
8720
|
}(), Aa = /* @__PURE__ */ function() {
|
|
8711
8721
|
function t(h, f, u, p, m) {
|
|
8712
|
-
m.raw ? f[u][p] = h : h === "" || (h === "TRUE" ? f[u][p] = !0 : h === "FALSE" ? f[u][p] = !1 : isNaN(
|
|
8722
|
+
m.raw ? f[u][p] = h : h === "" || (h === "TRUE" ? f[u][p] = !0 : h === "FALSE" ? f[u][p] = !1 : isNaN(nr(h)) ? isNaN(Fa(h).getDate()) ? f[u][p] = h : f[u][p] = $e(h) : f[u][p] = nr(h));
|
|
8713
8723
|
}
|
|
8714
8724
|
function e(h, f) {
|
|
8715
8725
|
var u = f || {}, p = [];
|
|
@@ -8777,7 +8787,7 @@ var id = [2, 3, 48, 49, 131, 139, 140, 245], Ki = /* @__PURE__ */ function() {
|
|
|
8777
8787
|
D.t = "b", D.v = !0;
|
|
8778
8788
|
else if (B == "FALSE")
|
|
8779
8789
|
D.t = "b", D.v = !1;
|
|
8780
|
-
else if (!isNaN(w =
|
|
8790
|
+
else if (!isNaN(w = nr(B)))
|
|
8781
8791
|
D.t = "n", u.cellText !== !1 && (D.w = B), D.v = w;
|
|
8782
8792
|
else if (!isNaN(Fa(B).getDate()) || N && B.match(N)) {
|
|
8783
8793
|
D.z = u.dateNF || ge[14];
|
|
@@ -8813,7 +8823,7 @@ var id = [2, 3, 48, 49, 131, 139, 140, 245], Ki = /* @__PURE__ */ function() {
|
|
|
8813
8823
|
u = h;
|
|
8814
8824
|
break;
|
|
8815
8825
|
case "buffer":
|
|
8816
|
-
f.codepage == 65001 ? u = h.toString("utf8") : (f.codepage, u = _e && Buffer.isBuffer(h) ? h.toString("binary") :
|
|
8826
|
+
f.codepage == 65001 ? u = h.toString("utf8") : (f.codepage, u = _e && Buffer.isBuffer(h) ? h.toString("binary") : Ur(h));
|
|
8817
8827
|
break;
|
|
8818
8828
|
case "array":
|
|
8819
8829
|
u = ra(h);
|
|
@@ -8827,7 +8837,7 @@ var id = [2, 3, 48, 49, 131, 139, 140, 245], Ki = /* @__PURE__ */ function() {
|
|
|
8827
8837
|
return p[0] == 239 && p[1] == 187 && p[2] == 191 ? u = Be(u.slice(3)) : f.type != "string" && f.type != "buffer" && f.codepage == 65001 ? u = Be(u) : f.type == "binary", u.slice(0, 19) == "socialcalc:version:" ? Bl.to_sheet(f.type == "string" ? u : Be(u), f) : s(u, f);
|
|
8828
8838
|
}
|
|
8829
8839
|
function l(h, f) {
|
|
8830
|
-
return
|
|
8840
|
+
return $r(o(h, f), f);
|
|
8831
8841
|
}
|
|
8832
8842
|
function c(h) {
|
|
8833
8843
|
for (var f = [], u = Ne(h["!ref"]), p, m = Array.isArray(h), d = u.s.r; d <= u.e.r; ++d) {
|
|
@@ -8918,9 +8928,9 @@ var Jr = /* @__PURE__ */ function() {
|
|
|
8918
8928
|
/* NUMBER */
|
|
8919
8929
|
case 16:
|
|
8920
8930
|
Vt == 14 && (ce[2] & 112) == 112 && (ce[2] & 15) > 1 && (ce[2] & 15) < 15 && (ce[1].z = O.dateNF || ge[14], O.cellDates && (ce[1].t = "d", ce[1].v = ui(ce[1].v))), O.qpro && ce[3] > re && (P["!ref"] = Ce(A), Q[K] = P, J.push(K), P = O.dense ? [] : {}, A = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } }, re = ce[3], K = te || "Sheet" + (re + 1), te = "");
|
|
8921
|
-
var
|
|
8922
|
-
if (
|
|
8923
|
-
|
|
8931
|
+
var or = O.dense ? (P[ce[0].r] || [])[ce[0].c] : P[xe(ce[0])];
|
|
8932
|
+
if (or) {
|
|
8933
|
+
or.t = ce[1].t, or.v = ce[1].v, ce[1].z != null && (or.z = ce[1].z), ce[1].f != null && (or.f = ce[1].f);
|
|
8924
8934
|
break;
|
|
8925
8935
|
}
|
|
8926
8936
|
O.dense ? (P[ce[0].r] || (P[ce[0].r] = []), P[ce[0].r][ce[0].c] = ce[1]) : P[xe(ce[0])] = ce[1];
|
|
@@ -8966,7 +8976,7 @@ var Jr = /* @__PURE__ */ function() {
|
|
|
8966
8976
|
}
|
|
8967
8977
|
function a(F, R) {
|
|
8968
8978
|
var O = R || {};
|
|
8969
|
-
if (+O.codepage >= 0 &&
|
|
8979
|
+
if (+O.codepage >= 0 && rr(+O.codepage), O.type == "string") throw new Error("Cannot write WK1 to JS string");
|
|
8970
8980
|
var P = It(), K = Ne(F["!ref"]), te = Array.isArray(F), re = [];
|
|
8971
8981
|
ne(P, 0, i(1030)), ne(P, 6, l(K));
|
|
8972
8982
|
for (var Q = Math.min(K.e.r, 8191), J = K.s.r; J <= Q; ++J)
|
|
@@ -8985,7 +8995,7 @@ var Jr = /* @__PURE__ */ function() {
|
|
|
8985
8995
|
}
|
|
8986
8996
|
function n(F, R) {
|
|
8987
8997
|
var O = R || {};
|
|
8988
|
-
if (+O.codepage >= 0 &&
|
|
8998
|
+
if (+O.codepage >= 0 && rr(+O.codepage), O.type == "string") throw new Error("Cannot write WK3 to JS string");
|
|
8989
8999
|
var P = It();
|
|
8990
9000
|
ne(P, 0, s(F));
|
|
8991
9001
|
for (var K = 0, te = 0; K < F.SheetNames.length; ++K) (F.Sheets[F.SheetNames[K]] || {})["!ref"] && ne(P, 27, W(F.SheetNames[K], te++));
|
|
@@ -10090,7 +10100,7 @@ function Od(t) {
|
|
|
10090
10100
|
}
|
|
10091
10101
|
function Fs(t) {
|
|
10092
10102
|
var e = 0, r, a = Hl(t), n = a.length + 1, i, s, o, l, c;
|
|
10093
|
-
for (r =
|
|
10103
|
+
for (r = Rr(n), r[0] = a.length, i = 1; i != n; ++i) r[i] = a[i - 1];
|
|
10094
10104
|
for (i = n - 1; i >= 0; --i)
|
|
10095
10105
|
s = r[i], o = e & 16384 ? 1 : 0, l = e << 1 & 32767, c = o | l, e = c ^ s;
|
|
10096
10106
|
return e ^ 52811;
|
|
@@ -10107,7 +10117,7 @@ var Wl = /* @__PURE__ */ function() {
|
|
|
10107
10117
|
return o;
|
|
10108
10118
|
};
|
|
10109
10119
|
return function(s) {
|
|
10110
|
-
for (var o = Hl(s), l = i(o), c = o.length, h =
|
|
10120
|
+
for (var o = Hl(s), l = i(o), c = o.length, h = Rr(16), f = 0; f != 16; ++f) h[f] = 0;
|
|
10111
10121
|
var u, p, m;
|
|
10112
10122
|
for ((c & 1) === 1 && (u = l >> 8, h[c] = n(t[0], u), --c, u = l & 255, p = o[o.length - 1], h[c] = n(p, u)); c > 0; )
|
|
10113
10123
|
--c, u = l >> 8, h[c] = n(o[c], u), --c, u = l & 255, h[c] = n(o[c], u);
|
|
@@ -10148,7 +10158,7 @@ var Gl = /* @__PURE__ */ function() {
|
|
|
10148
10158
|
case "binary":
|
|
10149
10159
|
return e(n, i);
|
|
10150
10160
|
case "buffer":
|
|
10151
|
-
return e(_e && Buffer.isBuffer(n) ? n.toString("binary") :
|
|
10161
|
+
return e(_e && Buffer.isBuffer(n) ? n.toString("binary") : Ur(n), i);
|
|
10152
10162
|
case "array":
|
|
10153
10163
|
return e(ra(n), i);
|
|
10154
10164
|
}
|
|
@@ -10176,7 +10186,7 @@ var Gl = /* @__PURE__ */ function() {
|
|
|
10176
10186
|
}), o["!ref"] = Ce(c), o;
|
|
10177
10187
|
}
|
|
10178
10188
|
function r(n, i) {
|
|
10179
|
-
return
|
|
10189
|
+
return $r(t(n, i), i);
|
|
10180
10190
|
}
|
|
10181
10191
|
function a(n) {
|
|
10182
10192
|
for (var i = ["{\\rtf1\\ansi"], s = Ne(n["!ref"]), o, l = Array.isArray(n), c = s.s.r; c <= s.e.r; ++c) {
|
|
@@ -10270,7 +10280,7 @@ function As(t) {
|
|
|
10270
10280
|
if (e > 5e-3) for (Et = Gd; Et < Wd; ++Et) Math.abs(t - Ti(t)) <= e && (e = Math.abs(t - Ti(t)), r = Et);
|
|
10271
10281
|
Et = r;
|
|
10272
10282
|
}
|
|
10273
|
-
function
|
|
10283
|
+
function Br(t) {
|
|
10274
10284
|
t.width ? (t.wpx = hn(t.width), t.wch = fn(t.wpx), t.MDW = Et) : t.wpx ? (t.wch = fn(t.wpx), t.width = ei(t.wch), t.MDW = Et) : typeof t.wch == "number" && (t.width = ei(t.wch), t.wpx = hn(t.width), t.MDW = Et), t.customWidth && delete t.customWidth;
|
|
10275
10285
|
}
|
|
10276
10286
|
var zd = 96, Xl = zd;
|
|
@@ -10956,7 +10966,7 @@ function dp(t, e) {
|
|
|
10956
10966
|
392
|
|
10957
10967
|
]].forEach(function(a) {
|
|
10958
10968
|
for (var n = a[0]; n <= a[1]; ++n) e[n] != null && ++r;
|
|
10959
|
-
}), r != 0 && (Y(t, 615,
|
|
10969
|
+
}), r != 0 && (Y(t, 615, ir(r)), [[5, 8], [23, 26], [41, 44], [
|
|
10960
10970
|
/*63*/
|
|
10961
10971
|
50,
|
|
10962
10972
|
/*66],[164,*/
|
|
@@ -10972,7 +10982,7 @@ function dp(t, e) {
|
|
|
10972
10982
|
}
|
|
10973
10983
|
function pp(t) {
|
|
10974
10984
|
var e = 1;
|
|
10975
|
-
Y(t, 611,
|
|
10985
|
+
Y(t, 611, ir(e)), Y(t, 43, np({
|
|
10976
10986
|
sz: 12,
|
|
10977
10987
|
color: { theme: 1 },
|
|
10978
10988
|
name: "Calibri",
|
|
@@ -10985,7 +10995,7 @@ function pp(t) {
|
|
|
10985
10995
|
}
|
|
10986
10996
|
function mp(t) {
|
|
10987
10997
|
var e = 2;
|
|
10988
|
-
Y(t, 603,
|
|
10998
|
+
Y(t, 603, ir(e)), Y(t, 45, jo({ patternType: "none" })), Y(t, 45, jo({ patternType: "gray125" })), Y(
|
|
10989
10999
|
t,
|
|
10990
11000
|
604
|
|
10991
11001
|
/* BrtEndFills */
|
|
@@ -10993,7 +11003,7 @@ function mp(t) {
|
|
|
10993
11003
|
}
|
|
10994
11004
|
function gp(t) {
|
|
10995
11005
|
var e = 1;
|
|
10996
|
-
Y(t, 613,
|
|
11006
|
+
Y(t, 613, ir(e)), Y(t, 46, cp()), Y(
|
|
10997
11007
|
t,
|
|
10998
11008
|
614
|
|
10999
11009
|
/* BrtEndBorders */
|
|
@@ -11001,7 +11011,7 @@ function gp(t) {
|
|
|
11001
11011
|
}
|
|
11002
11012
|
function xp(t) {
|
|
11003
11013
|
var e = 1;
|
|
11004
|
-
Y(t, 626,
|
|
11014
|
+
Y(t, 626, ir(e)), Y(t, 47, Kl({
|
|
11005
11015
|
numFmtId: 0
|
|
11006
11016
|
}, 65535)), Y(
|
|
11007
11017
|
t,
|
|
@@ -11010,7 +11020,7 @@ function xp(t) {
|
|
|
11010
11020
|
);
|
|
11011
11021
|
}
|
|
11012
11022
|
function vp(t, e) {
|
|
11013
|
-
Y(t, 617,
|
|
11023
|
+
Y(t, 617, ir(e.length)), e.forEach(function(r) {
|
|
11014
11024
|
Y(t, 47, Kl(r, 0));
|
|
11015
11025
|
}), Y(
|
|
11016
11026
|
t,
|
|
@@ -11020,7 +11030,7 @@ function vp(t, e) {
|
|
|
11020
11030
|
}
|
|
11021
11031
|
function wp(t) {
|
|
11022
11032
|
var e = 1;
|
|
11023
|
-
Y(t, 619,
|
|
11033
|
+
Y(t, 619, ir(e)), Y(t, 48, hp({
|
|
11024
11034
|
xfId: 0,
|
|
11025
11035
|
name: "Normal"
|
|
11026
11036
|
})), Y(
|
|
@@ -11031,7 +11041,7 @@ function wp(t) {
|
|
|
11031
11041
|
}
|
|
11032
11042
|
function Ep(t) {
|
|
11033
11043
|
var e = 0;
|
|
11034
|
-
Y(t, 505,
|
|
11044
|
+
Y(t, 505, ir(e)), Y(
|
|
11035
11045
|
t,
|
|
11036
11046
|
506
|
|
11037
11047
|
/* BrtEndDXFs */
|
|
@@ -11322,11 +11332,11 @@ function jp(t, e, r) {
|
|
|
11322
11332
|
}
|
|
11323
11333
|
function Kp() {
|
|
11324
11334
|
var t = It();
|
|
11325
|
-
return Y(t, 332), Y(t, 334,
|
|
11335
|
+
return Y(t, 332), Y(t, 334, ir(1)), Y(t, 335, Up({
|
|
11326
11336
|
name: "XLDAPR",
|
|
11327
11337
|
version: 12e4,
|
|
11328
11338
|
flags: 3496657072
|
|
11329
|
-
})), Y(t, 336), Y(t, 339, Gp(1, "XLDAPR")), Y(t, 52), Y(t, 35,
|
|
11339
|
+
})), Y(t, 336), Y(t, 339, Gp(1, "XLDAPR")), Y(t, 52), Y(t, 35, ir(514)), Y(t, 4096, ir(0)), Y(t, 4097, Xt(1)), Y(t, 36), Y(t, 53), Y(t, 340), Y(t, 337, Xp(1)), Y(t, 51, Wp([[1, 0]])), Y(t, 338), Y(t, 333), t.end();
|
|
11330
11340
|
}
|
|
11331
11341
|
function Yp(t, e, r) {
|
|
11332
11342
|
var a = { Types: [], Cell: [], Value: [] };
|
|
@@ -11930,7 +11940,7 @@ function Yo(t) {
|
|
|
11930
11940
|
function rt(t) {
|
|
11931
11941
|
t.l += 1;
|
|
11932
11942
|
}
|
|
11933
|
-
function
|
|
11943
|
+
function Vr(t, e) {
|
|
11934
11944
|
var r = t.read_shift(2);
|
|
11935
11945
|
return [r & 16383, r >> 14 & 1, r >> 15 & 1];
|
|
11936
11946
|
}
|
|
@@ -11940,25 +11950,25 @@ function tc(t, e, r) {
|
|
|
11940
11950
|
if (r.biff >= 2 && r.biff <= 5) return rc(t);
|
|
11941
11951
|
r.biff == 12 && (a = 4);
|
|
11942
11952
|
}
|
|
11943
|
-
var n = t.read_shift(a), i = t.read_shift(a), s =
|
|
11953
|
+
var n = t.read_shift(a), i = t.read_shift(a), s = Vr(t), o = Vr(t);
|
|
11944
11954
|
return { s: { r: n, c: s[0], cRel: s[1], rRel: s[2] }, e: { r: i, c: o[0], cRel: o[1], rRel: o[2] } };
|
|
11945
11955
|
}
|
|
11946
11956
|
function rc(t) {
|
|
11947
|
-
var e =
|
|
11957
|
+
var e = Vr(t), r = Vr(t), a = t.read_shift(1), n = t.read_shift(1);
|
|
11948
11958
|
return { s: { r: e[0], c: a, cRel: e[1], rRel: e[2] }, e: { r: r[0], c: n, cRel: r[1], rRel: r[2] } };
|
|
11949
11959
|
}
|
|
11950
11960
|
function Cm(t, e, r) {
|
|
11951
11961
|
if (r.biff < 8) return rc(t);
|
|
11952
|
-
var a = t.read_shift(r.biff == 12 ? 4 : 2), n = t.read_shift(r.biff == 12 ? 4 : 2), i =
|
|
11962
|
+
var a = t.read_shift(r.biff == 12 ? 4 : 2), n = t.read_shift(r.biff == 12 ? 4 : 2), i = Vr(t), s = Vr(t);
|
|
11953
11963
|
return { s: { r: a, c: i[0], cRel: i[1], rRel: i[2] }, e: { r: n, c: s[0], cRel: s[1], rRel: s[2] } };
|
|
11954
11964
|
}
|
|
11955
11965
|
function ac(t, e, r) {
|
|
11956
11966
|
if (r && r.biff >= 2 && r.biff <= 5) return ym(t);
|
|
11957
|
-
var a = t.read_shift(r && r.biff == 12 ? 4 : 2), n =
|
|
11967
|
+
var a = t.read_shift(r && r.biff == 12 ? 4 : 2), n = Vr(t);
|
|
11958
11968
|
return { r: a, c: n[0], cRel: n[1], rRel: n[2] };
|
|
11959
11969
|
}
|
|
11960
11970
|
function ym(t) {
|
|
11961
|
-
var e =
|
|
11971
|
+
var e = Vr(t), r = t.read_shift(1);
|
|
11962
11972
|
return { r: e[0], c: r, cRel: e[1], rRel: e[2] };
|
|
11963
11973
|
}
|
|
11964
11974
|
function km(t) {
|
|
@@ -14148,7 +14158,7 @@ function Zr(t, e) {
|
|
|
14148
14158
|
e == "xlml" && (r = [1, 1, 1, 1, 0.5, 0.5]), t.left == null && (t.left = r[0]), t.right == null && (t.right = r[1]), t.top == null && (t.top = r[2]), t.bottom == null && (t.bottom = r[3]), t.header == null && (t.header = r[4]), t.footer == null && (t.footer = r[5]);
|
|
14149
14159
|
}
|
|
14150
14160
|
}
|
|
14151
|
-
function
|
|
14161
|
+
function Wr(t, e, r) {
|
|
14152
14162
|
var a = r.revssf[e.z != null ? e.z : "General"], n = 60, i = t.length;
|
|
14153
14163
|
if (a == null && r.ssf) {
|
|
14154
14164
|
for (; n < 392; ++n) if (r.ssf[n] == null) {
|
|
@@ -14317,7 +14327,7 @@ function mg(t, e) {
|
|
|
14317
14327
|
var n = we(e[a], !0);
|
|
14318
14328
|
n.hidden && (n.hidden = Ue(n.hidden));
|
|
14319
14329
|
var i = parseInt(n.min, 10) - 1, s = parseInt(n.max, 10) - 1;
|
|
14320
|
-
for (n.outlineLevel && (n.level = +n.outlineLevel || 0), delete n.min, delete n.max, n.width = +n.width, !r && n.width && (r = !0, As(n.width)),
|
|
14330
|
+
for (n.outlineLevel && (n.level = +n.outlineLevel || 0), delete n.min, delete n.max, n.width = +n.width, !r && n.width && (r = !0, As(n.width)), Br(n); i <= s; ) t[i++] = We(n);
|
|
14321
14331
|
}
|
|
14322
14332
|
}
|
|
14323
14333
|
function gg(t, e) {
|
|
@@ -14374,7 +14384,7 @@ function yg(t, e, r, a) {
|
|
|
14374
14384
|
n = t.v;
|
|
14375
14385
|
break;
|
|
14376
14386
|
}
|
|
14377
|
-
var o = mt("v", De(n)), l = { r: e }, c =
|
|
14387
|
+
var o = mt("v", De(n)), l = { r: e }, c = Wr(a.cellXfs, t, a);
|
|
14378
14388
|
switch (c !== 0 && (l.s = c), t.t) {
|
|
14379
14389
|
case "n":
|
|
14380
14390
|
break;
|
|
@@ -14985,7 +14995,7 @@ function Lx(t, e, r, a, n, i, s) {
|
|
|
14985
14995
|
case 60:
|
|
14986
14996
|
if (!o.cellStyles) break;
|
|
14987
14997
|
for (; W.e >= W.s; )
|
|
14988
|
-
q[W.e--] = { width: W.w / 256, hidden: !!(W.flags & 1), level: W.level }, ie || (ie = !0, As(W.w / 256)),
|
|
14998
|
+
q[W.e--] = { width: W.w / 256, hidden: !!(W.flags & 1), level: W.level }, ie || (ie = !0, As(W.w / 256)), Br(q[W.e + 1]);
|
|
14989
14999
|
break;
|
|
14990
15000
|
case 161:
|
|
14991
15001
|
l["!autofilter"] = { ref: Ce(W) };
|
|
@@ -15150,7 +15160,7 @@ function Fx(t, e, r, a, n, i, s) {
|
|
|
15150
15160
|
break;
|
|
15151
15161
|
}
|
|
15152
15162
|
var l = { r, c: a };
|
|
15153
|
-
switch (l.s =
|
|
15163
|
+
switch (l.s = Wr(n.cellXfs, e, n), e.l && i["!links"].push([xe(l), e.l]), e.c && i["!comments"].push([xe(l), e.c]), e.t) {
|
|
15154
15164
|
case "s":
|
|
15155
15165
|
case "str":
|
|
15156
15166
|
return n.bookSST ? (o = Ps(n.Strings, e.v, n.revStrings), l.t = "s", l.v = o, s ? Y(t, 18, Kg(e, l)) : Y(t, 7, Xg(e, l))) : (l.t = "str", s ? Y(t, 17, sx(e, l)) : Y(t, 6, nx(e, l))), !0;
|
|
@@ -16193,9 +16203,9 @@ function Fi(t, e) {
|
|
|
16193
16203
|
"table") break;
|
|
16194
16204
|
if (le = qt(o[0]), le.Hidden && (le.hidden = !0, delete le.Hidden), le.Width && (le.wpx = parseInt(le.Width, 10)), !Fe && le.wpx > 10) {
|
|
16195
16205
|
Fe = !0, Et = zl;
|
|
16196
|
-
for (var J = 0; J < he.length; ++J) he[J] &&
|
|
16206
|
+
for (var J = 0; J < he.length; ++J) he[J] && Br(he[J]);
|
|
16197
16207
|
}
|
|
16198
|
-
Fe &&
|
|
16208
|
+
Fe && Br(le), he[le.Index - 1 || he.length] = le;
|
|
16199
16209
|
for (var ke = 0; ke < +le.Span; ++ke) he[he.length] = We(le);
|
|
16200
16210
|
break;
|
|
16201
16211
|
case "namedrange":
|
|
@@ -17036,7 +17046,7 @@ function Yi(t, e) {
|
|
|
17036
17046
|
case "file":
|
|
17037
17047
|
return Fi(t, e);
|
|
17038
17048
|
case "array":
|
|
17039
|
-
return Fi(
|
|
17049
|
+
return Fi(Ur(t), e);
|
|
17040
17050
|
}
|
|
17041
17051
|
}
|
|
17042
17052
|
function Rv(t, e) {
|
|
@@ -17144,7 +17154,7 @@ function Gv(t, e, r, a, n, i, s) {
|
|
|
17144
17154
|
f = "String", u = cf(t.v || "");
|
|
17145
17155
|
break;
|
|
17146
17156
|
}
|
|
17147
|
-
var p =
|
|
17157
|
+
var p = Wr(a.cellXfs, t, a);
|
|
17148
17158
|
o["ss:StyleID"] = "s" + (21 + p), o["ss:Index"] = s.c + 1;
|
|
17149
17159
|
var m = t.v != null ? u : "", d = t.t == "z" ? "" : '<Data ss:Type="' + f + '">' + m + "</Data>";
|
|
17150
17160
|
return (t.c || []).length > 0 && (d += Wv(t.c)), ae("Cell", d, o);
|
|
@@ -17157,7 +17167,7 @@ function Xv(t, e, r, a) {
|
|
|
17157
17167
|
if (!t["!ref"]) return "";
|
|
17158
17168
|
var n = Ne(t["!ref"]), i = t["!merges"] || [], s = 0, o = [];
|
|
17159
17169
|
t["!cols"] && t["!cols"].forEach(function(g, x) {
|
|
17160
|
-
|
|
17170
|
+
Br(g);
|
|
17161
17171
|
var w = !!g.width, v = gi(x, g), I = { "ss:Index": x + 1 };
|
|
17162
17172
|
w && (I["ss:Width"] = hn(v.width)), g.hidden && (I["ss:Hidden"] = "1"), o.push(ae("Column", null, I));
|
|
17163
17173
|
});
|
|
@@ -17183,7 +17193,7 @@ function jv(t, e, r) {
|
|
|
17183
17193
|
return s.length > 0 && a.push("<Names>" + s + "</Names>"), s = i ? Xv(i, e, t, r) : "", s.length > 0 && a.push("<Table>" + s + "</Table>"), a.push($v(i, e, t, r)), a.join("");
|
|
17184
17194
|
}
|
|
17185
17195
|
function Kv(t, e) {
|
|
17186
|
-
e || (e = {}), t.SSF || (t.SSF = We(ge)), t.SSF && (Ma(), ci(t.SSF), e.revssf = fi(t.SSF), e.revssf[t.SSF[65535]] = 0, e.ssf = t.SSF, e.cellXfs = [],
|
|
17196
|
+
e || (e = {}), t.SSF || (t.SSF = We(ge)), t.SSF && (Ma(), ci(t.SSF), e.revssf = fi(t.SSF), e.revssf[t.SSF[65535]] = 0, e.ssf = t.SSF, e.cellXfs = [], Wr(e.cellXfs, {}, { revssf: { General: 0 } }));
|
|
17187
17197
|
var r = [];
|
|
17188
17198
|
r.push(Rv(t, e)), r.push(Bv()), r.push(""), r.push("");
|
|
17189
17199
|
for (var a = 0; a < t.SheetNames.length; ++a)
|
|
@@ -17237,7 +17247,7 @@ function Jv(t, e, r, a, n) {
|
|
|
17237
17247
|
if (f.length < a) throw "XLS Record 0x" + t.toString(16) + " Truncated: " + f.length + " < " + a;
|
|
17238
17248
|
return e.f(f, f.length, n);
|
|
17239
17249
|
}
|
|
17240
|
-
function
|
|
17250
|
+
function cr(t, e, r) {
|
|
17241
17251
|
if (t.t !== "z" && t.XF) {
|
|
17242
17252
|
var a = 0;
|
|
17243
17253
|
try {
|
|
@@ -17266,8 +17276,8 @@ function Zv(t, e) {
|
|
|
17266
17276
|
var it = Ze.XF.data;
|
|
17267
17277
|
if (!(!it || !it.patternType || !Ht || !Ht.cellStyles)) {
|
|
17268
17278
|
Ze.s = {}, Ze.s.patternType = it.patternType;
|
|
17269
|
-
var
|
|
17270
|
-
(
|
|
17279
|
+
var Gr;
|
|
17280
|
+
(Gr = cn(N(it.icvFore))) && (Ze.s.fgColor = { rgb: Gr }), (Gr = cn(N(it.icvBack))) && (Ze.s.bgColor = { rgb: Gr });
|
|
17271
17281
|
}
|
|
17272
17282
|
}, B = function(Te, Ze, Ht) {
|
|
17273
17283
|
if (!(de > 1) && !(Ht.sheetRows && Te.r >= Ht.sheetRows)) {
|
|
@@ -17308,7 +17318,7 @@ function Zv(t, e) {
|
|
|
17308
17318
|
var q, oe = [], ie = [], he = [], le = [], Fe = !1, W = [];
|
|
17309
17319
|
W.SheetNames = D.snames, W.sharedf = D.sharedf, W.arrayf = D.arrayf, W.names = [], W.XTI = [];
|
|
17310
17320
|
var me = 0, de = 0, F = 0, R = [], O = [], P;
|
|
17311
|
-
D.codepage = 1200,
|
|
17321
|
+
D.codepage = 1200, rr(1200);
|
|
17312
17322
|
for (var K = !1; t.l < t.length - 1; ) {
|
|
17313
17323
|
var te = t.l, re = t.read_shift(2);
|
|
17314
17324
|
if (re === 0 && me === 10) break;
|
|
@@ -17353,7 +17363,7 @@ function Zv(t, e) {
|
|
|
17353
17363
|
He = 1252;
|
|
17354
17364
|
break;
|
|
17355
17365
|
}
|
|
17356
|
-
|
|
17366
|
+
rr(D.codepage = He), K = !0;
|
|
17357
17367
|
break;
|
|
17358
17368
|
case 317:
|
|
17359
17369
|
D.rrtabid = A;
|
|
@@ -17473,8 +17483,8 @@ function Zv(t, e) {
|
|
|
17473
17483
|
2: 2,
|
|
17474
17484
|
/*::[*/
|
|
17475
17485
|
7: 2
|
|
17476
|
-
}[A.BIFFVer] || 8), D.biffguess = A.BIFFVer == 0, A.BIFFVer == 0 && A.dt == 4096 && (D.biff = 5, K = !0,
|
|
17477
|
-
if (n = e.dense ? [] : {}, D.biff < 8 && !K && (K = !0,
|
|
17486
|
+
}[A.BIFFVer] || 8), D.biffguess = A.BIFFVer == 0, A.BIFFVer == 0 && A.dt == 4096 && (D.biff = 5, K = !0, rr(D.codepage = 28591)), D.biff == 8 && A.BIFFVer == 0 && A.dt == 16 && (D.biff = 2), de++) break;
|
|
17487
|
+
if (n = e.dense ? [] : {}, D.biff < 8 && !K && (K = !0, rr(D.codepage = e.codepage || 1252)), D.biff < 5 || A.BIFFVer == 0 && A.dt == 4096) {
|
|
17478
17488
|
c === "" && (c = "Sheet1"), s = { s: { r: 0, c: 0 }, e: { r: 0, c: 0 } };
|
|
17479
17489
|
var Ve = { pos: t.l - Q, name: c };
|
|
17480
17490
|
i[Ve.pos] = Ve, D.snames.push(c);
|
|
@@ -17485,19 +17495,19 @@ function Zv(t, e) {
|
|
|
17485
17495
|
case 515:
|
|
17486
17496
|
case 3:
|
|
17487
17497
|
case 2:
|
|
17488
|
-
n["!type"] == "chart" && (e.dense ? (n[A.r] || [])[A.c] : n[xe({ c: A.c, r: A.r })]) && ++A.c, v = { ixfe: A.ixfe, XF: L[A.ixfe] || {}, v: A.val, t: "n" }, F > 0 && (v.z = R[v.ixfe >> 8 & 63]),
|
|
17498
|
+
n["!type"] == "chart" && (e.dense ? (n[A.r] || [])[A.c] : n[xe({ c: A.c, r: A.r })]) && ++A.c, v = { ixfe: A.ixfe, XF: L[A.ixfe] || {}, v: A.val, t: "n" }, F > 0 && (v.z = R[v.ixfe >> 8 & 63]), cr(v, e, r.opts.Date1904), B({ c: A.c, r: A.r }, v, e);
|
|
17489
17499
|
break;
|
|
17490
17500
|
case 5:
|
|
17491
17501
|
case 517:
|
|
17492
|
-
v = { ixfe: A.ixfe, XF: L[A.ixfe], v: A.val, t: A.t }, F > 0 && (v.z = R[v.ixfe >> 8 & 63]),
|
|
17502
|
+
v = { ixfe: A.ixfe, XF: L[A.ixfe], v: A.val, t: A.t }, F > 0 && (v.z = R[v.ixfe >> 8 & 63]), cr(v, e, r.opts.Date1904), B({ c: A.c, r: A.r }, v, e);
|
|
17493
17503
|
break;
|
|
17494
17504
|
case 638:
|
|
17495
|
-
v = { ixfe: A.ixfe, XF: L[A.ixfe], v: A.rknum, t: "n" }, F > 0 && (v.z = R[v.ixfe >> 8 & 63]),
|
|
17505
|
+
v = { ixfe: A.ixfe, XF: L[A.ixfe], v: A.rknum, t: "n" }, F > 0 && (v.z = R[v.ixfe >> 8 & 63]), cr(v, e, r.opts.Date1904), B({ c: A.c, r: A.r }, v, e);
|
|
17496
17506
|
break;
|
|
17497
17507
|
case 189:
|
|
17498
17508
|
for (var be = A.c; be <= A.C; ++be) {
|
|
17499
17509
|
var ce = A.rkrec[be - A.c][0];
|
|
17500
|
-
v = { ixfe: ce, XF: L[ce], v: A.rkrec[be - A.c][1], t: "n" }, F > 0 && (v.z = R[v.ixfe >> 8 & 63]),
|
|
17510
|
+
v = { ixfe: ce, XF: L[ce], v: A.rkrec[be - A.c][1], t: "n" }, F > 0 && (v.z = R[v.ixfe >> 8 & 63]), cr(v, e, r.opts.Date1904), B({ c: be, r: A.r }, v, e);
|
|
17501
17511
|
}
|
|
17502
17512
|
break;
|
|
17503
17513
|
case 6:
|
|
@@ -17511,17 +17521,17 @@ function Zv(t, e) {
|
|
|
17511
17521
|
if (v = On(A.val, A.cell.ixfe, A.tt), v.XF = L[v.ixfe], e.cellFormula) {
|
|
17512
17522
|
var Je = A.formula;
|
|
17513
17523
|
if (Je && Je[0] && Je[0][0] && Je[0][0][0] == "PtgExp") {
|
|
17514
|
-
var Vt = Je[0][0][1][0],
|
|
17515
|
-
x[xr] ? v.f = "" + wt(A.formula, s, A.cell, W, D) : v.F = ((e.dense ? (n[Vt] || [])[
|
|
17524
|
+
var Vt = Je[0][0][1][0], or = Je[0][0][1][1], xr = xe({ r: Vt, c: or });
|
|
17525
|
+
x[xr] ? v.f = "" + wt(A.formula, s, A.cell, W, D) : v.F = ((e.dense ? (n[Vt] || [])[or] : n[xr]) || {}).F;
|
|
17516
17526
|
} else v.f = "" + wt(A.formula, s, A.cell, W, D);
|
|
17517
17527
|
}
|
|
17518
|
-
F > 0 && (v.z = R[v.ixfe >> 8 & 63]),
|
|
17528
|
+
F > 0 && (v.z = R[v.ixfe >> 8 & 63]), cr(v, e, r.opts.Date1904), B(A.cell, v, e), o = A;
|
|
17519
17529
|
}
|
|
17520
17530
|
break;
|
|
17521
17531
|
case 7:
|
|
17522
17532
|
case 519:
|
|
17523
17533
|
if (o)
|
|
17524
|
-
o.val = A, v = On(A, o.cell.ixfe, "s"), v.XF = L[v.ixfe], e.cellFormula && (v.f = "" + wt(o.formula, s, o.cell, W, D)), F > 0 && (v.z = R[v.ixfe >> 8 & 63]),
|
|
17534
|
+
o.val = A, v = On(A, o.cell.ixfe, "s"), v.XF = L[v.ixfe], e.cellFormula && (v.f = "" + wt(o.formula, s, o.cell, W, D)), F > 0 && (v.z = R[v.ixfe >> 8 & 63]), cr(v, e, r.opts.Date1904), B(o.cell, v, e), o = null;
|
|
17525
17535
|
else throw new Error("String record expects Formula");
|
|
17526
17536
|
break;
|
|
17527
17537
|
case 33:
|
|
@@ -17545,22 +17555,22 @@ function Zv(t, e) {
|
|
|
17545
17555
|
}
|
|
17546
17556
|
break;
|
|
17547
17557
|
case 253:
|
|
17548
|
-
v = On(l[A.isst].t, A.ixfe, "s"), l[A.isst].h && (v.h = l[A.isst].h), v.XF = L[v.ixfe], F > 0 && (v.z = R[v.ixfe >> 8 & 63]),
|
|
17558
|
+
v = On(l[A.isst].t, A.ixfe, "s"), l[A.isst].h && (v.h = l[A.isst].h), v.XF = L[v.ixfe], F > 0 && (v.z = R[v.ixfe >> 8 & 63]), cr(v, e, r.opts.Date1904), B({ c: A.c, r: A.r }, v, e);
|
|
17549
17559
|
break;
|
|
17550
17560
|
case 513:
|
|
17551
|
-
e.sheetStubs && (v = { ixfe: A.ixfe, XF: L[A.ixfe], t: "z" }, F > 0 && (v.z = R[v.ixfe >> 8 & 63]),
|
|
17561
|
+
e.sheetStubs && (v = { ixfe: A.ixfe, XF: L[A.ixfe], t: "z" }, F > 0 && (v.z = R[v.ixfe >> 8 & 63]), cr(v, e, r.opts.Date1904), B({ c: A.c, r: A.r }, v, e));
|
|
17552
17562
|
break;
|
|
17553
17563
|
case 190:
|
|
17554
17564
|
if (e.sheetStubs)
|
|
17555
17565
|
for (var Ir = A.c; Ir <= A.C; ++Ir) {
|
|
17556
17566
|
var Mt = A.ixfe[Ir - A.c];
|
|
17557
|
-
v = { ixfe: Mt, XF: L[Mt], t: "z" }, F > 0 && (v.z = R[v.ixfe >> 8 & 63]),
|
|
17567
|
+
v = { ixfe: Mt, XF: L[Mt], t: "z" }, F > 0 && (v.z = R[v.ixfe >> 8 & 63]), cr(v, e, r.opts.Date1904), B({ c: Ir, r: A.r }, v, e);
|
|
17558
17568
|
}
|
|
17559
17569
|
break;
|
|
17560
17570
|
case 214:
|
|
17561
17571
|
case 516:
|
|
17562
17572
|
case 4:
|
|
17563
|
-
v = On(A.val, A.ixfe, "s"), v.XF = L[v.ixfe], F > 0 && (v.z = R[v.ixfe >> 8 & 63]),
|
|
17573
|
+
v = On(A.val, A.ixfe, "s"), v.XF = L[v.ixfe], F > 0 && (v.z = R[v.ixfe >> 8 & 63]), cr(v, e, r.opts.Date1904), B({ c: A.c, r: A.r }, v, e);
|
|
17564
17574
|
break;
|
|
17565
17575
|
case 0:
|
|
17566
17576
|
case 512:
|
|
@@ -17620,7 +17630,7 @@ function Zv(t, e) {
|
|
|
17620
17630
|
{
|
|
17621
17631
|
if (!D.cellStyles) break;
|
|
17622
17632
|
for (; A.e >= A.s; )
|
|
17623
|
-
he[A.e--] = { width: A.w / 256, level: A.level || 0, hidden: !!(A.flags & 1) }, Fe || (Fe = !0, As(A.w / 256)),
|
|
17633
|
+
he[A.e--] = { width: A.w / 256, level: A.level || 0, hidden: !!(A.flags & 1) }, Fe || (Fe = !0, As(A.w / 256)), Br(he[A.e + 1]);
|
|
17624
17634
|
}
|
|
17625
17635
|
break;
|
|
17626
17636
|
case 520:
|
|
@@ -17657,12 +17667,12 @@ function Zv(t, e) {
|
|
|
17657
17667
|
} else
|
|
17658
17668
|
J || console.error("Missing Info for XLS Record 0x" + re.toString(16)), t.l += Q;
|
|
17659
17669
|
}
|
|
17660
|
-
return r.SheetNames = qe(i).sort(function(
|
|
17661
|
-
return Number(
|
|
17662
|
-
}).map(function(
|
|
17663
|
-
return i[
|
|
17664
|
-
}), e.bookSheets || (r.Sheets = a), !r.SheetNames.length && h["!ref"] ? (r.SheetNames.push("Sheet1"), r.Sheets && (r.Sheets.Sheet1 = h)) : r.Preamble = h, r.Sheets && O.forEach(function(
|
|
17665
|
-
r.Sheets[r.SheetNames[Te]]["!autofilter"] =
|
|
17670
|
+
return r.SheetNames = qe(i).sort(function(lr, Te) {
|
|
17671
|
+
return Number(lr) - Number(Te);
|
|
17672
|
+
}).map(function(lr) {
|
|
17673
|
+
return i[lr].name;
|
|
17674
|
+
}), e.bookSheets || (r.Sheets = a), !r.SheetNames.length && h["!ref"] ? (r.SheetNames.push("Sheet1"), r.Sheets && (r.Sheets.Sheet1 = h)) : r.Preamble = h, r.Sheets && O.forEach(function(lr, Te) {
|
|
17675
|
+
r.Sheets[r.SheetNames[Te]]["!autofilter"] = lr;
|
|
17666
17676
|
}), r.Strings = l, r.SSF = We(ge), D.enc && (r.Encryption = D.enc), q && (r.Themes = q), r.Metadata = {}, I !== void 0 && (r.Metadata.Country = I), W.names.length > 0 && (C.Names = W.names), r.Workbook = C, r;
|
|
17667
17677
|
}
|
|
17668
17678
|
var Qa = {
|
|
@@ -23831,7 +23841,7 @@ function d5(t, e) {
|
|
|
23831
23841
|
}
|
|
23832
23842
|
}
|
|
23833
23843
|
function p5(t, e, r, a, n) {
|
|
23834
|
-
var i = 16 +
|
|
23844
|
+
var i = 16 + Wr(n.cellXfs, e, n);
|
|
23835
23845
|
if (e.v == null && !e.bf) {
|
|
23836
23846
|
ne(t, 513, ia(r, a, i));
|
|
23837
23847
|
return;
|
|
@@ -23938,7 +23948,7 @@ function g5(t, e, r) {
|
|
|
23938
23948
|
function x5(t, e) {
|
|
23939
23949
|
var r = e || {}, a = [];
|
|
23940
23950
|
t && !t.SSF && (t.SSF = We(ge)), t && t.SSF && (Ma(), ci(t.SSF), r.revssf = fi(t.SSF), r.revssf[t.SSF[65535]] = 0, r.ssf = t.SSF), r.Strings = /*::((*/
|
|
23941
|
-
[], r.Strings.Count = 0, r.Strings.Unique = 0, Hs(r), r.cellXfs = [],
|
|
23951
|
+
[], r.Strings.Count = 0, r.Strings.Unique = 0, Hs(r), r.cellXfs = [], Wr(r.cellXfs, {}, { revssf: { General: 0 } }), t.Props || (t.Props = {});
|
|
23942
23952
|
for (var n = 0; n < t.SheetNames.length; ++n) a[a.length] = m5(n, r, t);
|
|
23943
23953
|
return a.unshift(g5(t, a, r)), ht(a);
|
|
23944
23954
|
}
|
|
@@ -24000,7 +24010,7 @@ function r0(t, e) {
|
|
|
24000
24010
|
continue;
|
|
24001
24011
|
}
|
|
24002
24012
|
var N = { t: "s", v };
|
|
24003
|
-
r.raw || !v.trim().length || M == "s" || (v === "TRUE" ? N = { t: "b", v: !0 } : v === "FALSE" ? N = { t: "b", v: !1 } : isNaN(
|
|
24013
|
+
r.raw || !v.trim().length || M == "s" || (v === "TRUE" ? N = { t: "b", v: !0 } : v === "FALSE" ? N = { t: "b", v: !1 } : isNaN(nr(v)) ? isNaN(Fa(v).getDate()) || (N = { t: "d", v: $e(v) }, r.cellDates || (N = { t: "n", v: ot(N.v) }), N.z = r.dateNF || ge[14]) : N = { t: "n", v: nr(v) }), r.dense ? (a[c] || (a[c] = []), a[c][h] = N) : a[xe({ r: c, c: h })] = N, h += u;
|
|
24004
24014
|
}
|
|
24005
24015
|
}
|
|
24006
24016
|
}
|
|
@@ -24030,7 +24040,7 @@ var w5 = '<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title>
|
|
|
24030
24040
|
function C5(t, e) {
|
|
24031
24041
|
var r = t.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);
|
|
24032
24042
|
if (!r || r.length == 0) throw new Error("Invalid HTML: could not find <table>");
|
|
24033
|
-
if (r.length == 1) return
|
|
24043
|
+
if (r.length == 1) return $r(r0(r[0], e), e);
|
|
24034
24044
|
var a = Ws();
|
|
24035
24045
|
return r.forEach(function(n, i) {
|
|
24036
24046
|
Gs(a, r0(n, e), "Sheet" + (i + 1));
|
|
@@ -24077,7 +24087,7 @@ function yc(t, e, r) {
|
|
|
24077
24087
|
}
|
|
24078
24088
|
v = +_.getAttribute("colspan") || 1, ((w = +_.getAttribute("rowspan") || 1) > 1 || v > 1) && f.push({ s: { r: d + n, c: x + i }, e: { r: d + n + (w || 1) - 1, c: x + i + (v || 1) - 1 } });
|
|
24079
24089
|
var z = { t: "s", v: C }, B = _.getAttribute("data-t") || _.getAttribute("t") || "";
|
|
24080
|
-
C != null && (C.length == 0 ? z.t = B || "z" : a.raw || C.trim().length == 0 || B == "s" || (C === "TRUE" ? z = { t: "b", v: !0 } : C === "FALSE" ? z = { t: "b", v: !1 } : isNaN(
|
|
24090
|
+
C != null && (C.length == 0 ? z.t = B || "z" : a.raw || C.trim().length == 0 || B == "s" || (C === "TRUE" ? z = { t: "b", v: !0 } : C === "FALSE" ? z = { t: "b", v: !1 } : isNaN(nr(C)) ? isNaN(Fa(C).getDate()) || (z = { t: "d", v: $e(C) }, a.cellDates || (z = { t: "n", v: ot(z.v) }), z.z = a.dateNF || ge[14]) : z = { t: "n", v: nr(C) })), z.z === void 0 && M != null && (z.z = M);
|
|
24081
24091
|
var D = "", q = _.getElementsByTagName("A");
|
|
24082
24092
|
if (q && q.length) for (var oe = 0; oe < q.length && !(q[oe].hasAttribute("href") && (D = q[oe].getAttribute("href"), D.charAt(0) != "#")); ++oe) ;
|
|
24083
24093
|
D && D.charAt(0) != "#" && (z.l = { Target: D }), a.dense ? (t[d + n] || (t[d + n] = []), t[d + n][x + i] = z) : t[xe({ c: x + i, r: d + n })] = z, c.e.c < x + i && (c.e.c = x + i), x += v;
|
|
@@ -24092,7 +24102,7 @@ function kc(t, e) {
|
|
|
24092
24102
|
return yc(a, t, e);
|
|
24093
24103
|
}
|
|
24094
24104
|
function k5(t, e) {
|
|
24095
|
-
return
|
|
24105
|
+
return $r(kc(t, e), e);
|
|
24096
24106
|
}
|
|
24097
24107
|
function a0(t) {
|
|
24098
24108
|
var e = "", r = _5(t);
|
|
@@ -24864,7 +24874,7 @@ var S5 = /* @__PURE__ */ function() {
|
|
|
24864
24874
|
for (var h = 0; h < c["!cols"].length; ++h) if (c["!cols"][h]) {
|
|
24865
24875
|
var f = c["!cols"][h];
|
|
24866
24876
|
if (f.width == null && f.wpx == null && f.wch == null) continue;
|
|
24867
|
-
|
|
24877
|
+
Br(f), f.ods = o;
|
|
24868
24878
|
var u = c["!cols"][h].wpx + "px";
|
|
24869
24879
|
i.push(' <style:style style:name="co' + o + `" style:family="table-column">
|
|
24870
24880
|
`), i.push(' <style:table-column-properties fo:break-before="auto" style:column-width="' + u + `"/>
|
|
@@ -24966,7 +24976,7 @@ function sa(t) {
|
|
|
24966
24976
|
return new DataView(t.buffer, t.byteOffset, t.byteLength);
|
|
24967
24977
|
}
|
|
24968
24978
|
function Ji(t) {
|
|
24969
|
-
return typeof TextDecoder < "u" ? new TextDecoder().decode(t) : Be(
|
|
24979
|
+
return typeof TextDecoder < "u" ? new TextDecoder().decode(t) : Be(Ur(t));
|
|
24970
24980
|
}
|
|
24971
24981
|
function b5(t) {
|
|
24972
24982
|
return typeof TextEncoder < "u" ? new TextEncoder().encode(t) : Dt(dr(t));
|
|
@@ -24981,7 +24991,7 @@ function L5(t, e) {
|
|
|
24981
24991
|
}
|
|
24982
24992
|
return !1;
|
|
24983
24993
|
}
|
|
24984
|
-
function
|
|
24994
|
+
function Hr(t) {
|
|
24985
24995
|
var e = t.reduce(function(n, i) {
|
|
24986
24996
|
return n + i.length;
|
|
24987
24997
|
}, 0), r = new Uint8Array(e), a = 0;
|
|
@@ -25073,7 +25083,7 @@ function ut(t) {
|
|
|
25073
25083
|
r.forEach(function(n) {
|
|
25074
25084
|
n.data && (e.push(Oe(a * 8 + n.type)), n.type == 2 && e.push(Oe(n.data.length)), e.push(n.data));
|
|
25075
25085
|
});
|
|
25076
|
-
}),
|
|
25086
|
+
}), Hr(e);
|
|
25077
25087
|
}
|
|
25078
25088
|
function Bs(t, e) {
|
|
25079
25089
|
return (t == null ? void 0 : t.map(function(r) {
|
|
@@ -25111,7 +25121,7 @@ function pa(t) {
|
|
|
25111
25121
|
e.push(Oe(i.length)), e.push(i), n.forEach(function(s) {
|
|
25112
25122
|
return e.push(s);
|
|
25113
25123
|
});
|
|
25114
|
-
}),
|
|
25124
|
+
}), Hr(e);
|
|
25115
25125
|
}
|
|
25116
25126
|
function I5(t, e) {
|
|
25117
25127
|
if (t != 0)
|
|
@@ -25130,7 +25140,7 @@ function I5(t, e) {
|
|
|
25130
25140
|
continue;
|
|
25131
25141
|
} else {
|
|
25132
25142
|
var l = 0, c = 0;
|
|
25133
|
-
if (i == 1 ? (c = (e[r[0]] >> 2 & 7) + 4, l = (e[r[0]++] & 224) << 3, l |= e[r[0]++]) : (c = (e[r[0]++] >> 2) + 1, i == 2 ? (l = e[r[0]] | e[r[0] + 1] << 8, r[0] += 2) : (l = (e[r[0]] | e[r[0] + 1] << 8 | e[r[0] + 2] << 16 | e[r[0] + 3] << 24) >>> 0, r[0] += 4)), n = [
|
|
25143
|
+
if (i == 1 ? (c = (e[r[0]] >> 2 & 7) + 4, l = (e[r[0]++] & 224) << 3, l |= e[r[0]++]) : (c = (e[r[0]++] >> 2) + 1, i == 2 ? (l = e[r[0]] | e[r[0] + 1] << 8, r[0] += 2) : (l = (e[r[0]] | e[r[0] + 1] << 8 | e[r[0] + 2] << 16 | e[r[0] + 3] << 24) >>> 0, r[0] += 4)), n = [Hr(n)], l == 0)
|
|
25134
25144
|
throw new Error("Invalid offset 0");
|
|
25135
25145
|
if (l > n[0].length)
|
|
25136
25146
|
throw new Error("Invalid offset beyond length");
|
|
@@ -25140,7 +25150,7 @@ function I5(t, e) {
|
|
|
25140
25150
|
n.push(n[0].slice(-l, -l + c));
|
|
25141
25151
|
}
|
|
25142
25152
|
}
|
|
25143
|
-
var h =
|
|
25153
|
+
var h = Hr(n);
|
|
25144
25154
|
if (h.length != a)
|
|
25145
25155
|
throw new Error("Unexpected length: ".concat(h.length, " != ").concat(a));
|
|
25146
25156
|
return h;
|
|
@@ -25152,7 +25162,7 @@ function Gt(t) {
|
|
|
25152
25162
|
}
|
|
25153
25163
|
if (r !== t.length)
|
|
25154
25164
|
throw new Error("data is not a valid framed stream!");
|
|
25155
|
-
return
|
|
25165
|
+
return Hr(e);
|
|
25156
25166
|
}
|
|
25157
25167
|
function ma(t) {
|
|
25158
25168
|
for (var e = [], r = 0; r < t.length; ) {
|
|
@@ -25161,7 +25171,7 @@ function ma(t) {
|
|
|
25161
25171
|
var i = Oe(a), s = i.length;
|
|
25162
25172
|
e.push(i), a <= 60 ? (s++, e.push(new Uint8Array([a - 1 << 2]))) : a <= 256 ? (s += 2, e.push(new Uint8Array([240, a - 1 & 255]))) : a <= 65536 ? (s += 3, e.push(new Uint8Array([244, a - 1 & 255, a - 1 >> 8 & 255]))) : a <= 16777216 ? (s += 4, e.push(new Uint8Array([248, a - 1 & 255, a - 1 >> 8 & 255, a - 1 >> 16 & 255]))) : a <= 4294967296 && (s += 5, e.push(new Uint8Array([252, a - 1 & 255, a - 1 >> 8 & 255, a - 1 >> 16 & 255, a - 1 >>> 24 & 255]))), e.push(t.slice(r, r + a)), s += a, n[0] = 0, n[1] = s & 255, n[2] = s >> 8 & 255, n[3] = s >> 16 & 255, r += a;
|
|
25163
25173
|
}
|
|
25164
|
-
return
|
|
25174
|
+
return Hr(e);
|
|
25165
25175
|
}
|
|
25166
25176
|
function N5(t, e, r, a) {
|
|
25167
25177
|
var n = sa(t), i = n.getUint32(4, !0), s = (a > 1 ? 12 : 8) + l0(i & (a > 1 ? 3470 : 398)) * 4, o = -1, l = -1, c = NaN, h = new Date(2001, 0, 1);
|
|
@@ -25478,7 +25488,7 @@ function U5(t, e, r) {
|
|
|
25478
25488
|
}
|
|
25479
25489
|
for (t[2][0].data = Oe(l); d < t[7][0].data.length / 2; ++d)
|
|
25480
25490
|
c.setUint16(d * 2, 65535, !0), u.setUint16(d * 2, 65535, !0);
|
|
25481
|
-
return t[6][0].data =
|
|
25491
|
+
return t[6][0].data = Hr(f), t[3][0].data = Hr(m), l;
|
|
25482
25492
|
}
|
|
25483
25493
|
function $5(t, e) {
|
|
25484
25494
|
if (!e || !e.numbers)
|
|
@@ -25883,7 +25893,7 @@ function Y5(t, e) {
|
|
|
25883
25893
|
var r = e.bookType == "xlsb" ? "bin" : "xml", a = Ql.indexOf(e.bookType) > -1, n = Ts();
|
|
25884
25894
|
Hs(e = e || {});
|
|
25885
25895
|
var i = fs(), s = "", o = 0;
|
|
25886
|
-
if (e.cellXfs = [],
|
|
25896
|
+
if (e.cellXfs = [], Wr(e.cellXfs, {}, { revssf: { General: 0 } }), t.Props || (t.Props = {}), s = "docProps/core.xml", ye(i, s, ml(t.Props, e)), n.coreprops.push(s), Pe(e.rels, 2, s, Se.CORE_PROPS), s = "docProps/app.xml", !(t.Props && t.Props.SheetNames)) if (!t.Workbook || !t.Workbook.Sheets) t.Props.SheetNames = t.SheetNames;
|
|
25887
25897
|
else {
|
|
25888
25898
|
for (var l = [], c = 0; c < t.SheetNames.length; ++c)
|
|
25889
25899
|
(t.Workbook.Sheets[c] || {}).Hidden != 2 && l.push(t.SheetNames[c]);
|
|
@@ -25911,7 +25921,7 @@ function q5(t, e) {
|
|
|
25911
25921
|
var r = "xml", a = Ql.indexOf(e.bookType) > -1, n = Ts();
|
|
25912
25922
|
Hs(e = e || {});
|
|
25913
25923
|
var i = fs(), s = "", o = 0;
|
|
25914
|
-
if (e.cellXfs = [],
|
|
25924
|
+
if (e.cellXfs = [], Wr(e.cellXfs, {}, { revssf: { General: 0 } }), t.Props || (t.Props = {}), s = "docProps/core.xml", ye(i, s, ml(t.Props, e)), n.coreprops.push(s), Pe(e.rels, 2, s, Se.CORE_PROPS), s = "docProps/app.xml", !(t.Props && t.Props.SheetNames)) if (!t.Workbook || !t.Workbook.Sheets) t.Props.SheetNames = t.SheetNames;
|
|
25915
25925
|
else {
|
|
25916
25926
|
for (var l = [], c = 0; c < t.SheetNames.length; ++c)
|
|
25917
25927
|
(t.Workbook.Sheets[c] || {}).Hidden != 2 && l.push(t.SheetNames[c]);
|
|
@@ -26515,7 +26525,7 @@ function g4(t, e, r, a) {
|
|
|
26515
26525
|
}
|
|
26516
26526
|
return t;
|
|
26517
26527
|
}
|
|
26518
|
-
var
|
|
26528
|
+
var tr = {
|
|
26519
26529
|
encode_col: Xe,
|
|
26520
26530
|
encode_row: et,
|
|
26521
26531
|
encode_cell: xe,
|
|
@@ -26579,20 +26589,20 @@ class Dn {
|
|
|
26579
26589
|
h.push(c.ruleTitle[f] || ""), h.push(c.ruleContent[f] || "");
|
|
26580
26590
|
}), n.push(h);
|
|
26581
26591
|
});
|
|
26582
|
-
const s =
|
|
26592
|
+
const s = tr.aoa_to_sheet(n), o = i.map(() => ({ wch: 30 }));
|
|
26583
26593
|
s["!cols"] = o;
|
|
26584
|
-
const l =
|
|
26585
|
-
|
|
26594
|
+
const l = tr.book_new();
|
|
26595
|
+
tr.book_append_sheet(l, s, "Rules"), Zi(l, a);
|
|
26586
26596
|
}
|
|
26587
26597
|
static downloadTemplate(e = [...Oi], r = "rules-template.xlsx") {
|
|
26588
26598
|
const a = [], n = [];
|
|
26589
26599
|
e.forEach((l) => {
|
|
26590
26600
|
n.push(`title_${l}`), n.push(`description_${l}`);
|
|
26591
26601
|
}), a.push(n), a.push(e.flatMap(() => ["", ""]));
|
|
26592
|
-
const i =
|
|
26602
|
+
const i = tr.aoa_to_sheet(a), s = n.map(() => ({ wch: 30 }));
|
|
26593
26603
|
i["!cols"] = s;
|
|
26594
|
-
const o =
|
|
26595
|
-
|
|
26604
|
+
const o = tr.book_new();
|
|
26605
|
+
tr.book_append_sheet(o, i, "Rules"), Zi(o, r);
|
|
26596
26606
|
}
|
|
26597
26607
|
static async importFromExcel(e, r = [...Oi]) {
|
|
26598
26608
|
return new Promise((a, n) => {
|
|
@@ -26600,7 +26610,7 @@ class Dn {
|
|
|
26600
26610
|
i.onload = (s) => {
|
|
26601
26611
|
var o;
|
|
26602
26612
|
try {
|
|
26603
|
-
const l = (o = s.target) == null ? void 0 : o.result, c = ti(l, { type: "binary" }), h = c.SheetNames[0], f = c.Sheets[h], u =
|
|
26613
|
+
const l = (o = s.target) == null ? void 0 : o.result, c = ti(l, { type: "binary" }), h = c.SheetNames[0], f = c.Sheets[h], u = tr.sheet_to_json(f, {
|
|
26604
26614
|
header: 1
|
|
26605
26615
|
});
|
|
26606
26616
|
if (u.length < 2) {
|
|
@@ -27485,7 +27495,7 @@ const si = class si {
|
|
|
27485
27495
|
if (s.includeGetJson !== !1)
|
|
27486
27496
|
if (i instanceof La) {
|
|
27487
27497
|
const o = i.getRawValue();
|
|
27488
|
-
a[n] = o ?
|
|
27498
|
+
a[n] = o ? Zt(o) : null;
|
|
27489
27499
|
} else
|
|
27490
27500
|
a[n] = s.value;
|
|
27491
27501
|
}
|
|
@@ -27501,7 +27511,7 @@ const si = class si {
|
|
|
27501
27511
|
if (n.includeGetJson === !1) return null;
|
|
27502
27512
|
if (a instanceof La) {
|
|
27503
27513
|
const i = a.getRawValue();
|
|
27504
|
-
return i ?
|
|
27514
|
+
return i ? Zt(i) : null;
|
|
27505
27515
|
}
|
|
27506
27516
|
return Qi(n.value);
|
|
27507
27517
|
}
|
|
@@ -27850,8 +27860,8 @@ const si = class si {
|
|
|
27850
27860
|
}
|
|
27851
27861
|
};
|
|
27852
27862
|
si.hiddenElements = /* @__PURE__ */ new Set();
|
|
27853
|
-
let
|
|
27854
|
-
class B3 extends
|
|
27863
|
+
let sr = si;
|
|
27864
|
+
class B3 extends sr {
|
|
27855
27865
|
constructor(e) {
|
|
27856
27866
|
super(e), this.isRootNode = !0;
|
|
27857
27867
|
}
|
|
@@ -27859,7 +27869,7 @@ class B3 extends ir {
|
|
|
27859
27869
|
function V3(t) {
|
|
27860
27870
|
return new x4(t);
|
|
27861
27871
|
}
|
|
27862
|
-
class x4 extends
|
|
27872
|
+
class x4 extends sr {
|
|
27863
27873
|
constructor(e) {
|
|
27864
27874
|
super(e);
|
|
27865
27875
|
const r = Object.keys(this.settings)[0];
|
|
@@ -27922,7 +27932,7 @@ class x4 extends ir {
|
|
|
27922
27932
|
}
|
|
27923
27933
|
}
|
|
27924
27934
|
function v4(t) {
|
|
27925
|
-
return new
|
|
27935
|
+
return new sr(t);
|
|
27926
27936
|
}
|
|
27927
27937
|
function H3(t) {
|
|
27928
27938
|
return t;
|
|
@@ -28935,7 +28945,7 @@ const ni = `
|
|
|
28935
28945
|
<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox="0 0 8 4" fill="none">
|
|
28936
28946
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M0 0L2.58579 2.58579C3.36684 3.36684 4.63317 3.36683 5.41421 2.58579L8 0L0 0Z" fill="#1C252E"/>
|
|
28937
28947
|
</svg>
|
|
28938
|
-
`,
|
|
28948
|
+
`, Or = 10, d0 = 5, U4 = 24, $4 = 50, W4 = 5e3, G4 = 800, z4 = 0.8, X4 = 700, j4 = [
|
|
28939
28949
|
"image/jpeg",
|
|
28940
28950
|
"image/jpg",
|
|
28941
28951
|
"image/png",
|
|
@@ -29283,7 +29293,7 @@ function i3() {
|
|
|
29283
29293
|
uploadBox: document.createElement("div")
|
|
29284
29294
|
};
|
|
29285
29295
|
}
|
|
29286
|
-
function
|
|
29296
|
+
function Jt(t, e) {
|
|
29287
29297
|
const r = e && e.imageUrl && e.imageUrl !== "", a = t.thumbnailEl.parentElement, n = a == null ? void 0 : a.parentElement;
|
|
29288
29298
|
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);
|
|
29289
29299
|
}
|
|
@@ -29399,7 +29409,7 @@ const u3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29399
29409
|
super(e), this.inputType = {
|
|
29400
29410
|
imageUrl: "text",
|
|
29401
29411
|
markers: "text"
|
|
29402
|
-
}, this.mainDisplayElements = null, this.popoverElements = null, this.imageElement = null, this.cursorTooltip = null, this.popoverPosition = null, this.isPopoverOpen = !1, this.confirmModal = new q4(), this.previousImageDimensions = null, this.draggingMarkerId = null, this.historyManager = new Z4(), this.isUndoRedoOperation = !1, this.initialValue = null, this.lastMouseX = 0, this.lastMouseY = 0, this.errorTooltipEl = null, this.errorTooltipTimeoutId = null, this.props.maxMarkers = this.props.maxMarkers ?? ((r = this.props.prizeMap) == null ? void 0 : r.length) ??
|
|
29412
|
+
}, this.mainDisplayElements = null, this.popoverElements = null, this.imageElement = null, this.cursorTooltip = null, this.popoverPosition = null, this.isPopoverOpen = !1, this.confirmModal = new q4(), this.previousImageDimensions = null, this.draggingMarkerId = null, this.historyManager = new Z4(), this.isUndoRedoOperation = !1, this.initialValue = null, this.lastMouseX = 0, this.lastMouseY = 0, this.errorTooltipEl = null, this.errorTooltipTimeoutId = null, this.props.maxMarkers = this.props.maxMarkers ?? ((r = this.props.prizeMap) == null ? void 0 : r.length) ?? Or, this.props.maxFileSizeMB = this.props.maxFileSizeMB ?? d0, this.props.markerSize = this.props.markerSize ?? U4, this.value || (this.value = { imageUrl: "", markers: [] }), g0.registerHandler(this.id, (a) => {
|
|
29403
29413
|
this.handleFileManagerImageSelected(a);
|
|
29404
29414
|
}), this.onBackgroundClick = (a) => {
|
|
29405
29415
|
if (this.isPopoverOpen && this.popoverElements && !this.popoverElements.popover.contains(a.target)) {
|
|
@@ -29449,7 +29459,7 @@ const u3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29449
29459
|
const i = s3(
|
|
29450
29460
|
this.mainDisplayElements.thumbnailEl,
|
|
29451
29461
|
() => {
|
|
29452
|
-
this.value = { imageUrl: "", markers: [] }, this.mainDisplayElements &&
|
|
29462
|
+
this.value = { imageUrl: "", markers: [] }, this.mainDisplayElements && Jt(this.mainDisplayElements, this.value), this.triggerChange();
|
|
29453
29463
|
}
|
|
29454
29464
|
), s = this.props.upload || "file-manager", o = o3(
|
|
29455
29465
|
s,
|
|
@@ -29463,7 +29473,7 @@ const u3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29463
29473
|
return c.className = "image-map-section-title", c.textContent = "Map Setup", l.appendChild(c), this.mainDisplayElements.configureButton.addEventListener("click", () => {
|
|
29464
29474
|
var h;
|
|
29465
29475
|
(h = this.mainDisplayElements) != null && h.configureButton.disabled || this.openPopover();
|
|
29466
|
-
}), l.appendChild(this.mainDisplayElements.configureButton), r.appendChild(l), e.appendChild(r), this.createPopoverElements(),
|
|
29476
|
+
}), l.appendChild(this.mainDisplayElements.configureButton), r.appendChild(l), e.appendChild(r), this.createPopoverElements(), Jt(this.mainDisplayElements, this.value), e;
|
|
29467
29477
|
}
|
|
29468
29478
|
createPopoverElements() {
|
|
29469
29479
|
this.popoverElements = c3(
|
|
@@ -29482,7 +29492,7 @@ const u3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29482
29492
|
}
|
|
29483
29493
|
hasAllMarkers() {
|
|
29484
29494
|
if (!this.value) return !1;
|
|
29485
|
-
const e = this.props.maxMarkers ||
|
|
29495
|
+
const e = this.props.maxMarkers || Or;
|
|
29486
29496
|
return this.value.markers.length === e;
|
|
29487
29497
|
}
|
|
29488
29498
|
hasChanges() {
|
|
@@ -29499,7 +29509,7 @@ const u3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29499
29509
|
return;
|
|
29500
29510
|
this.initialValue && (this.value = JSON.parse(
|
|
29501
29511
|
JSON.stringify(this.initialValue)
|
|
29502
|
-
), this.mainDisplayElements &&
|
|
29512
|
+
), this.mainDisplayElements && Jt(this.mainDisplayElements, this.value), this.triggerChange());
|
|
29503
29513
|
}
|
|
29504
29514
|
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), r && this.notifyPopoverState(!1);
|
|
29505
29515
|
}
|
|
@@ -29524,7 +29534,7 @@ const u3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29524
29534
|
canUndo: this.historyManager.canUndo(),
|
|
29525
29535
|
canRedo: this.historyManager.canRedo(),
|
|
29526
29536
|
markerCount: ((o = this.value) == null ? void 0 : o.markers.length) || 0,
|
|
29527
|
-
maxMarkers: this.props.maxMarkers ||
|
|
29537
|
+
maxMarkers: this.props.maxMarkers || Or
|
|
29528
29538
|
},
|
|
29529
29539
|
{
|
|
29530
29540
|
onUndo: () => this.undo(),
|
|
@@ -29558,7 +29568,7 @@ const u3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29558
29568
|
p.className = "prize-list-section";
|
|
29559
29569
|
const m = t3(
|
|
29560
29570
|
this.value.markers,
|
|
29561
|
-
this.props.maxMarkers ||
|
|
29571
|
+
this.props.maxMarkers || Or,
|
|
29562
29572
|
this.props.prizeMap
|
|
29563
29573
|
);
|
|
29564
29574
|
p.appendChild(m), c.appendChild(h), c.appendChild(p), e.appendChild(c);
|
|
@@ -29616,7 +29626,7 @@ const u3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29616
29626
|
this.value = {
|
|
29617
29627
|
imageUrl: e,
|
|
29618
29628
|
markers: i
|
|
29619
|
-
}, this.previousImageDimensions = n, this.historyManager.initialize(i), this.updateUndoRedoButtons(), this.mainDisplayElements &&
|
|
29629
|
+
}, this.previousImageDimensions = n, this.historyManager.initialize(i), this.updateUndoRedoButtons(), this.mainDisplayElements && Jt(this.mainDisplayElements, this.value), this.isPopoverOpen && this.refreshPopoverContent(), this.triggerChange();
|
|
29620
29630
|
}, a.onerror = () => {
|
|
29621
29631
|
Ea.show("Failed to load image from file manager.");
|
|
29622
29632
|
}, a.src = e;
|
|
@@ -29649,7 +29659,7 @@ const u3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29649
29659
|
this.value = {
|
|
29650
29660
|
imageUrl: s,
|
|
29651
29661
|
markers: h
|
|
29652
|
-
}, this.previousImageDimensions = c, this.historyManager.initialize(h), this.updateUndoRedoButtons(), this.mainDisplayElements &&
|
|
29662
|
+
}, this.previousImageDimensions = c, this.historyManager.initialize(h), this.updateUndoRedoButtons(), this.mainDisplayElements && Jt(this.mainDisplayElements, this.value), this.isPopoverOpen && this.refreshPopoverContent(), this.triggerChange();
|
|
29653
29663
|
}, l.onerror = () => {
|
|
29654
29664
|
Ea.show("Failed to read image file.");
|
|
29655
29665
|
}, l.src = s;
|
|
@@ -29660,8 +29670,8 @@ const u3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29660
29670
|
}
|
|
29661
29671
|
handleImageClick(e) {
|
|
29662
29672
|
if (this.draggingMarkerId !== null || !this.value || !this.imageElement) return;
|
|
29663
|
-
if (this.value.markers.length >= (this.props.maxMarkers ||
|
|
29664
|
-
const c = `Maximum of ${this.props.maxMarkers ||
|
|
29673
|
+
if (this.value.markers.length >= (this.props.maxMarkers || Or)) {
|
|
29674
|
+
const c = `Maximum of ${this.props.maxMarkers || Or} markers allowed.`;
|
|
29665
29675
|
this.showErrorTooltip(c, e.clientX, e.clientY);
|
|
29666
29676
|
return;
|
|
29667
29677
|
}
|
|
@@ -29675,7 +29685,7 @@ const u3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29675
29685
|
y: n,
|
|
29676
29686
|
prizeName: s
|
|
29677
29687
|
}, l = [...this.value.markers, o];
|
|
29678
|
-
this.setMarkers(l), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements &&
|
|
29688
|
+
this.setMarkers(l), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements && Jt(this.mainDisplayElements, this.value), this.triggerChange();
|
|
29679
29689
|
}
|
|
29680
29690
|
handleMarkerDrag(e) {
|
|
29681
29691
|
var o;
|
|
@@ -29713,14 +29723,14 @@ const u3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29713
29723
|
handleDeleteMarker(e) {
|
|
29714
29724
|
if (!this.value) return;
|
|
29715
29725
|
const r = this.value.markers.filter((a) => a.id !== e);
|
|
29716
|
-
this.setMarkers(r), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements &&
|
|
29726
|
+
this.setMarkers(r), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements && Jt(this.mainDisplayElements, this.value), this.triggerChange();
|
|
29717
29727
|
}
|
|
29718
29728
|
handleClearAllMarkers() {
|
|
29719
|
-
this.value && (this.setMarkers([]), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements &&
|
|
29729
|
+
this.value && (this.setMarkers([]), this.saveState(), this.refreshPopoverContent(), this.mainDisplayElements && Jt(this.mainDisplayElements, this.value), this.triggerChange());
|
|
29720
29730
|
}
|
|
29721
29731
|
updateCursorTooltipContent() {
|
|
29722
29732
|
if (!this.cursorTooltip || !this.value) return;
|
|
29723
|
-
const e = this.props.maxMarkers ||
|
|
29733
|
+
const e = this.props.maxMarkers || Or;
|
|
29724
29734
|
if (this.cursorTooltip.shouldShow(this.value.markers.length, e)) {
|
|
29725
29735
|
const r = Y4(
|
|
29726
29736
|
this.value.markers,
|
|
@@ -29735,12 +29745,12 @@ const u3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29735
29745
|
undo() {
|
|
29736
29746
|
if (!this.value) return;
|
|
29737
29747
|
const e = this.historyManager.undo();
|
|
29738
|
-
e !== null && (this.isUndoRedoOperation = !0, this.setMarkers(e), this.refreshPopoverContent(), this.mainDisplayElements &&
|
|
29748
|
+
e !== null && (this.isUndoRedoOperation = !0, this.setMarkers(e), this.refreshPopoverContent(), this.mainDisplayElements && Jt(this.mainDisplayElements, this.value), this.triggerChange(), this.isUndoRedoOperation = !1, this.updateUndoRedoButtons());
|
|
29739
29749
|
}
|
|
29740
29750
|
redo() {
|
|
29741
29751
|
if (!this.value) return;
|
|
29742
29752
|
const e = this.historyManager.redo();
|
|
29743
|
-
e !== null && (this.isUndoRedoOperation = !0, this.setMarkers(e), this.refreshPopoverContent(), this.mainDisplayElements &&
|
|
29753
|
+
e !== null && (this.isUndoRedoOperation = !0, this.setMarkers(e), this.refreshPopoverContent(), this.mainDisplayElements && Jt(this.mainDisplayElements, this.value), this.triggerChange(), this.isUndoRedoOperation = !1, this.updateUndoRedoButtons());
|
|
29744
29754
|
}
|
|
29745
29755
|
updateUndoRedoButtons() {
|
|
29746
29756
|
if (!this.popoverElements) return;
|
|
@@ -29816,7 +29826,17 @@ const u3 = `<svg xmlns="http://www.w3.org/2000/svg" width="8" height="4" viewBox
|
|
|
29816
29826
|
* Use this when the data source (e.g., selected journey path) changes.
|
|
29817
29827
|
*/
|
|
29818
29828
|
updatePrizeMap(e, r) {
|
|
29819
|
-
|
|
29829
|
+
var n;
|
|
29830
|
+
this.props.prizeMap = e, r !== void 0 && (this.props.maxMarkers = r);
|
|
29831
|
+
const a = this.props.maxMarkers ?? ((n = this.props.prizeMap) == null ? void 0 : n.length) ?? Or;
|
|
29832
|
+
if (this.value && this.value.markers.length > a) {
|
|
29833
|
+
const i = this.value.markers.filter((s) => s.index <= a).slice(0, a);
|
|
29834
|
+
this.value = {
|
|
29835
|
+
...this.value,
|
|
29836
|
+
markers: i
|
|
29837
|
+
}, this.triggerChange();
|
|
29838
|
+
}
|
|
29839
|
+
this.mainDisplayElements && Jt(this.mainDisplayElements, this.value), this.isPopoverOpen && this.refreshPopoverContent();
|
|
29820
29840
|
}
|
|
29821
29841
|
destroy() {
|
|
29822
29842
|
this.closePopover(), this.clearErrorTooltip(), this.popoverElements && (this.popoverElements.backdrop.parentElement && this.popoverElements.backdrop.parentElement.removeChild(
|
|
@@ -30400,7 +30420,7 @@ class w0 {
|
|
|
30400
30420
|
}), i.push(w);
|
|
30401
30421
|
});
|
|
30402
30422
|
});
|
|
30403
|
-
const l =
|
|
30423
|
+
const l = tr.aoa_to_sheet(i), c = [
|
|
30404
30424
|
{ wch: 35 },
|
|
30405
30425
|
// Key
|
|
30406
30426
|
{ wch: 20 },
|
|
@@ -30410,8 +30430,8 @@ class w0 {
|
|
|
30410
30430
|
...r.map(() => ({ wch: 25 }))
|
|
30411
30431
|
];
|
|
30412
30432
|
l["!cols"] = c;
|
|
30413
|
-
const h =
|
|
30414
|
-
|
|
30433
|
+
const h = tr.book_new();
|
|
30434
|
+
tr.book_append_sheet(h, l, "Translations"), Zi(h, a);
|
|
30415
30435
|
}
|
|
30416
30436
|
/**
|
|
30417
30437
|
* Extract the setting key from a nested path
|
|
@@ -30426,7 +30446,7 @@ class w0 {
|
|
|
30426
30446
|
i.onload = (s) => {
|
|
30427
30447
|
var o;
|
|
30428
30448
|
try {
|
|
30429
|
-
const l = (o = s.target) == null ? void 0 : o.result, c = ti(l, { type: "binary" }), h = c.SheetNames[0], f = c.Sheets[h], u =
|
|
30449
|
+
const l = (o = s.target) == null ? void 0 : o.result, c = ti(l, { type: "binary" }), h = c.SheetNames[0], f = c.Sheets[h], u = tr.sheet_to_json(f, {
|
|
30430
30450
|
header: 1
|
|
30431
30451
|
});
|
|
30432
30452
|
if (u.length < 2) {
|
|
@@ -30647,16 +30667,16 @@ class w0 {
|
|
|
30647
30667
|
return i;
|
|
30648
30668
|
}
|
|
30649
30669
|
}
|
|
30650
|
-
const
|
|
30670
|
+
const er = class er extends Le {
|
|
30651
30671
|
constructor(e) {
|
|
30652
30672
|
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 = tn(), this.componentPath = e.title || this.instanceId, e.default ? this.value = e.default : this.value || (this.value = {}), this.value.$id = this.$id = tn(), this.messageHandler = (n) => {
|
|
30653
30673
|
const { type: i, data: s } = n.data || {};
|
|
30654
30674
|
i === "TEXT_ELEMENT_CLICKED" && s.$id == this.$id && this.showPopup();
|
|
30655
30675
|
};
|
|
30656
|
-
const r =
|
|
30676
|
+
const r = er.messageListeners.get(
|
|
30657
30677
|
this.instanceId
|
|
30658
30678
|
);
|
|
30659
|
-
r && window.removeEventListener("message", r),
|
|
30679
|
+
r && window.removeEventListener("message", r), er.messageListeners.set(
|
|
30660
30680
|
this.instanceId,
|
|
30661
30681
|
this.messageHandler
|
|
30662
30682
|
), window.addEventListener("message", this.messageHandler), this.defaultLanguage = this.resolveDefaultLanguage();
|
|
@@ -30942,17 +30962,17 @@ const Qt = class Qt extends Le {
|
|
|
30942
30962
|
), i[0];
|
|
30943
30963
|
}
|
|
30944
30964
|
setComponentPath(e) {
|
|
30945
|
-
this.componentPath &&
|
|
30965
|
+
this.componentPath && er.instances.get(this.componentPath) === this && er.instances.delete(this.componentPath), this.componentPath = e, er.instances.set(e, this);
|
|
30946
30966
|
}
|
|
30947
30967
|
getComponentPath() {
|
|
30948
30968
|
return this.componentPath;
|
|
30949
30969
|
}
|
|
30950
30970
|
cleanup() {
|
|
30951
|
-
this.messageHandler && (window.removeEventListener("message", this.messageHandler), this.messageHandler = void 0), this.resizeHandler && (window.removeEventListener("resize", this.resizeHandler), this.resizeHandler = void 0), this.languageChangeUnsubscribe && (this.languageChangeUnsubscribe(), this.languageChangeUnsubscribe = void 0), this.closePopup(), this.instanceId && this.messageHandler && (
|
|
30971
|
+
this.messageHandler && (window.removeEventListener("message", this.messageHandler), this.messageHandler = void 0), this.resizeHandler && (window.removeEventListener("resize", this.resizeHandler), this.resizeHandler = void 0), this.languageChangeUnsubscribe && (this.languageChangeUnsubscribe(), this.languageChangeUnsubscribe = void 0), this.closePopup(), this.instanceId && this.messageHandler && (er.messageListeners.get(this.instanceId) === this.messageHandler && er.messageListeners.delete(this.instanceId), window.removeEventListener("message", this.messageHandler), this.messageHandler = void 0);
|
|
30952
30972
|
}
|
|
30953
30973
|
};
|
|
30954
|
-
|
|
30955
|
-
let Ca =
|
|
30974
|
+
er.instances = /* @__PURE__ */ new Map(), er.messageListeners = /* @__PURE__ */ new Map();
|
|
30975
|
+
let Ca = er;
|
|
30956
30976
|
class Y3 {
|
|
30957
30977
|
constructor(e = {}) {
|
|
30958
30978
|
this.container = null, this.options = e;
|
|
@@ -31054,7 +31074,7 @@ const L3 = `
|
|
|
31054
31074
|
<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"/>
|
|
31055
31075
|
</svg>
|
|
31056
31076
|
`, A3 = "<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>";
|
|
31057
|
-
class J3 extends
|
|
31077
|
+
class J3 extends sr {
|
|
31058
31078
|
constructor(e) {
|
|
31059
31079
|
super({
|
|
31060
31080
|
title: "Border",
|
|
@@ -31109,7 +31129,7 @@ const I3 = `
|
|
|
31109
31129
|
<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"/>
|
|
31110
31130
|
</svg>
|
|
31111
31131
|
`;
|
|
31112
|
-
class Z3 extends
|
|
31132
|
+
class Z3 extends sr {
|
|
31113
31133
|
constructor(e = {}) {
|
|
31114
31134
|
const { showAlign: r = e.showAlign ?? !0, ...a } = e;
|
|
31115
31135
|
super({
|
|
@@ -31258,7 +31278,7 @@ class Rn extends Le {
|
|
|
31258
31278
|
}), a;
|
|
31259
31279
|
}
|
|
31260
31280
|
}
|
|
31261
|
-
class Q3 extends
|
|
31281
|
+
class Q3 extends sr {
|
|
31262
31282
|
constructor(e) {
|
|
31263
31283
|
super({
|
|
31264
31284
|
title: "Margins",
|
|
@@ -31310,7 +31330,7 @@ const O3 = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewB
|
|
|
31310
31330
|
</svg>`, R3 = `<svg xmlns="http://www.w3.org/2000/svg" width="18" height="19" viewBox="0 0 18 19" fill="none">
|
|
31311
31331
|
<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"/>
|
|
31312
31332
|
</svg>`;
|
|
31313
|
-
class e6 extends
|
|
31333
|
+
class e6 extends sr {
|
|
31314
31334
|
constructor(e) {
|
|
31315
31335
|
super({
|
|
31316
31336
|
title: "Background Image",
|
|
@@ -31349,7 +31369,7 @@ class e6 extends ir {
|
|
|
31349
31369
|
`;
|
|
31350
31370
|
}
|
|
31351
31371
|
}
|
|
31352
|
-
class t6 extends
|
|
31372
|
+
class t6 extends sr {
|
|
31353
31373
|
constructor(e) {
|
|
31354
31374
|
super({
|
|
31355
31375
|
title: (e == null ? void 0 : e.title) ?? "Image",
|
|
@@ -31399,7 +31419,7 @@ export {
|
|
|
31399
31419
|
G3 as SelectApiSettings,
|
|
31400
31420
|
es as SelectSetting,
|
|
31401
31421
|
Le as Setting,
|
|
31402
|
-
|
|
31422
|
+
sr as SettingGroup,
|
|
31403
31423
|
w4 as StringSetting,
|
|
31404
31424
|
x4 as TabSettingGroup,
|
|
31405
31425
|
x4 as TabsSettingGroup,
|