@sheetxl/studio-vanilla 0.1.98
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/LICENSE.md +11 -0
- package/README.md +100 -0
- package/build/browser/cjs/1q6_3-jGNZllbF3R.cjs +6 -0
- package/build/browser/cjs/5KDindu3wyLVvG7F.cjs +6 -0
- package/build/browser/cjs/87m5i_TKPbDn6tke.cjs +30 -0
- package/build/browser/cjs/B0L2YQ9agsyHWOu2.cjs +6 -0
- package/build/browser/cjs/B3HvYH5kqySWdJ0f.cjs +6 -0
- package/build/browser/cjs/B6AOUko0HYRy2MPw.cjs +6 -0
- package/build/browser/cjs/BC5MKXBhHGdPeiJ3.cjs +21 -0
- package/build/browser/cjs/BG0RxkPyZY6Be7Lk.cjs +6 -0
- package/build/browser/cjs/BJsJYwvFiJBFxTov.cjs +6 -0
- package/build/browser/cjs/BMVMyi5NiMBuQrl9.cjs +52 -0
- package/build/browser/cjs/BS_QXQWoKRl_7MiR.cjs +17 -0
- package/build/browser/cjs/BZPhmHWsFBTIA3BQ.cjs +210 -0
- package/build/browser/cjs/B_5ro-VEKfZDMSn_.cjs +6 -0
- package/build/browser/cjs/B_c3i0fXSlX7dH12.cjs +1521 -0
- package/build/browser/cjs/BarieqwSecnaFn0d.cjs +6 -0
- package/build/browser/cjs/BfNo_1u55uW2HhAa.cjs +6 -0
- package/build/browser/cjs/Bl6FyLoMkFiQqhvc.cjs +7 -0
- package/build/browser/cjs/Bsyzteo6tD31A45e.cjs +11 -0
- package/build/browser/cjs/Btzizuqo7zQ_grdS.cjs +16 -0
- package/build/browser/cjs/BxBOlXY9P3Ymi6oT.cjs +6 -0
- package/build/browser/cjs/C0AP85yKTJU5XzPW.cjs +6 -0
- package/build/browser/cjs/C0Pjx18ua-OCdtpy.cjs +6 -0
- package/build/browser/cjs/CA2wSX6txFrM5nXD.cjs +6 -0
- package/build/browser/cjs/CB3jEtNo5ZsjfE5p.cjs +6 -0
- package/build/browser/cjs/CDiYZ1cSoLW8U5Mz.cjs +6 -0
- package/build/browser/cjs/CHD5c5FdcMm6vLyG.cjs +155 -0
- package/build/browser/cjs/COCpf8tSdkj2O19V.cjs +134 -0
- package/build/browser/cjs/CTV1KRGhkieiY4Rf.cjs +42 -0
- package/build/browser/cjs/CUw8AoM-rVbp1W3s.cjs +6 -0
- package/build/browser/cjs/CVTydWBioXRZeoNf.cjs +6 -0
- package/build/browser/cjs/C_uXPPlfjY68-QA8.cjs +6 -0
- package/build/browser/cjs/CaNR-X0TWW9OF1S0.cjs +33 -0
- package/build/browser/cjs/CiySKEsfDr8XnkZh.cjs +6 -0
- package/build/browser/cjs/CtBikymnhpcCzP3X.cjs +6 -0
- package/build/browser/cjs/CyF7bxA0DO13ETpx.cjs +30 -0
- package/build/browser/cjs/D-vkFAlNHXwUvmUT.cjs +16 -0
- package/build/browser/cjs/D2OU29-ZPOAWFVJB.cjs +22 -0
- package/build/browser/cjs/DFX31uXp449or-Xs.cjs +6 -0
- package/build/browser/cjs/DLqNXuHYff_kQuj1.cjs +6 -0
- package/build/browser/cjs/DMKZDMHHXLePvLy3.cjs +524 -0
- package/build/browser/cjs/DP8biA0GQqyPKLyq.cjs +6 -0
- package/build/browser/cjs/DcYrNx0uy99yQNMl.cjs +21 -0
- package/build/browser/cjs/Dcyg_YxTfBgi_6cp.cjs +26 -0
- package/build/browser/cjs/DeR9YbwO2xDBKVWN.cjs +21 -0
- package/build/browser/cjs/DfNbgyjaLMn81dqP.cjs +6 -0
- package/build/browser/cjs/DirazCTz5IsFWrUv.cjs +22 -0
- package/build/browser/cjs/Dix4vuDuOzj4WGCJ.cjs +19 -0
- package/build/browser/cjs/DqbTRjj97q78RuGC.cjs +6 -0
- package/build/browser/cjs/Dy28YI90qj65PHFO.cjs +17 -0
- package/build/browser/cjs/Nkl33Tt1_oEy9kjk.cjs +6 -0
- package/build/browser/cjs/S1S-AvD0w8s-LV8O.cjs +6 -0
- package/build/browser/cjs/bnPgbgGBTq7DESzd.cjs +6 -0
- package/build/browser/cjs/d9tJGmGw-3KZjpAx.cjs +17 -0
- package/build/browser/cjs/dke2gbIUS44QXwEl.cjs +6 -0
- package/build/browser/cjs/index.cjs +6 -0
- package/build/browser/cjs/mPpQR06-jf99r2jM.cjs +6 -0
- package/build/browser/cjs/wq0Sm3fu9rxt43OK.cjs +6 -0
- package/build/browser/cjs/xM54FRmGddZFVTTI.cjs +6 -0
- package/build/browser/cjs/xgGpGg5b8fu3GAnL.cjs +33 -0
- package/build/browser/esm/1Jl9rrRJdbPsUP_1.mjs +13222 -0
- package/build/browser/esm/3RX6dP_O-47yXKHQ.mjs +1492 -0
- package/build/browser/esm/5F5MTh8R-sIiPq0h.mjs +22 -0
- package/build/browser/esm/B3_l6_TLa9ImyRmW.mjs +5572 -0
- package/build/browser/esm/B7odLLxNfEmKGWX6.mjs +49 -0
- package/build/browser/esm/BAjCWyggrIkCz6wr.mjs +22 -0
- package/build/browser/esm/BE4io65W825i_dzC.mjs +58 -0
- package/build/browser/esm/BEZ41ST3hkC4W-_9.mjs +22 -0
- package/build/browser/esm/BKkD05hqNTBap4Oc.mjs +22 -0
- package/build/browser/esm/BOiR2dTlvcgYjz8P.mjs +402 -0
- package/build/browser/esm/BOjAZRs_NVerYv4t.mjs +22 -0
- package/build/browser/esm/BRkMPyIUXMixnL8d.mjs +22 -0
- package/build/browser/esm/BSS_RvWzDRX8_EJd.mjs +1684 -0
- package/build/browser/esm/BXC9rQVV2gq5x8br.mjs +22 -0
- package/build/browser/esm/BYmMkbrRTsNuR3aY.mjs +1358 -0
- package/build/browser/esm/BaSzK17p3_gCvNVV.mjs +24 -0
- package/build/browser/esm/BdtlmF31h4Y7RgUj.mjs +22 -0
- package/build/browser/esm/Be3zRnYQ13HUcsRW.mjs +150 -0
- package/build/browser/esm/BiSk8LRROMF0Bl4-.mjs +92 -0
- package/build/browser/esm/BlfHOASL_bJ6Hy0y.mjs +40 -0
- package/build/browser/esm/C-jC-wgAoMOxrVvv.mjs +1377 -0
- package/build/browser/esm/C0Lw5hMgKbooA6Jl.mjs +22 -0
- package/build/browser/esm/C32FpMEFLbDnBtO3.mjs +22 -0
- package/build/browser/esm/C9uN8RnLjnGSimTA.mjs +439 -0
- package/build/browser/esm/CB0UHheTgg0735hj.mjs +52 -0
- package/build/browser/esm/CU55zbw8Xbwap6Tl.mjs +22 -0
- package/build/browser/esm/CWRCdxOg103AFis3.mjs +3926 -0
- package/build/browser/esm/CpJdzwQYkBw7IPnN.mjs +22 -0
- package/build/browser/esm/CprFmxuwGvaUtLG2.mjs +22 -0
- package/build/browser/esm/CtZxtE4tRmMGFT5o.mjs +22 -0
- package/build/browser/esm/D-Oj36iQScXAKSMA.mjs +53 -0
- package/build/browser/esm/D2yyUr4KbJEFsxKC.mjs +21 -0
- package/build/browser/esm/D8HF2X8hvAkV29oq.mjs +55 -0
- package/build/browser/esm/DCauh523moR7slpq.mjs +22 -0
- package/build/browser/esm/DIA-Gy5mdjefjUaA.mjs +22 -0
- package/build/browser/esm/DJjdfX9aUyVGMkri.mjs +47 -0
- package/build/browser/esm/DMWb8cCaNVRcm-tT.mjs +2352 -0
- package/build/browser/esm/DP7HVKT0w_4L2vMQ.mjs +844 -0
- package/build/browser/esm/DToiYU1jffn1g7TH.mjs +639 -0
- package/build/browser/esm/DgSuz0WKGy36a2cp.mjs +22 -0
- package/build/browser/esm/Dgw3FTbNKuo2CIxP.mjs +22 -0
- package/build/browser/esm/DnV_Y9xoMPSav0-o.mjs +56 -0
- package/build/browser/esm/Do7pHqmnwO45_ymt.mjs +22 -0
- package/build/browser/esm/DqvZDTDIyX-qv4r9.mjs +29 -0
- package/build/browser/esm/Ds8V__cRAClpmjZn.mjs +1714 -0
- package/build/browser/esm/DtQdtXJDZgNEIz9d.mjs +440 -0
- package/build/browser/esm/DtpBQqwK7XXBMTB-.mjs +1598 -0
- package/build/browser/esm/DuzJ1k0LbZ29l8oN.mjs +945 -0
- package/build/browser/esm/Dxl4WJXcEhDAw_yE.mjs +42 -0
- package/build/browser/esm/LblYfFi1ns9H1ueN.mjs +28 -0
- package/build/browser/esm/NBkvFJzfLU32Pkup.mjs +496 -0
- package/build/browser/esm/SrBQAOpMKiDW0mGB.mjs +22 -0
- package/build/browser/esm/VLa1cYMb7h6UD253.mjs +64 -0
- package/build/browser/esm/YOEDF-U1QTzbXeMV.mjs +3826 -0
- package/build/browser/esm/a3tuiJ83MwzLMWaL.mjs +22 -0
- package/build/browser/esm/ai2Jw3PRL29E1T8h.mjs +22 -0
- package/build/browser/esm/ajBoEmoL9hCBQYYm.mjs +2175 -0
- package/build/browser/esm/index.mjs +13 -0
- package/build/browser/esm/k9kWmEk0ZT8y9Gii.mjs +48740 -0
- package/build/cdn/assets/1Jl9rrRJdbPsUP_1.js +13222 -0
- package/build/cdn/assets/4u46flV9M6Bwb7d3.js +29 -0
- package/build/cdn/assets/5F5MTh8R-sIiPq0h.js +22 -0
- package/build/cdn/assets/B3oMCEEls1lRVrGd.js +5572 -0
- package/build/cdn/assets/B4QYfmNd300iFLAx.js +945 -0
- package/build/cdn/assets/BAjCWyggrIkCz6wr.js +22 -0
- package/build/cdn/assets/BEZ41ST3hkC4W-_9.js +22 -0
- package/build/cdn/assets/BJIsFTUdHtUKsFJs.js +28 -0
- package/build/cdn/assets/BKkD05hqNTBap4Oc.js +22 -0
- package/build/cdn/assets/BOiR2dTlvcgYjz8P.js +402 -0
- package/build/cdn/assets/BOjAZRs_NVerYv4t.js +22 -0
- package/build/cdn/assets/BPFW3UexkNNh1lLK.js +2352 -0
- package/build/cdn/assets/BRkMPyIUXMixnL8d.js +22 -0
- package/build/cdn/assets/BSS_RvWzDRX8_EJd.js +1684 -0
- package/build/cdn/assets/BXC9rQVV2gq5x8br.js +22 -0
- package/build/cdn/assets/BY2sO3ExW1ShzKnX.js +1714 -0
- package/build/cdn/assets/BYmMkbrRTsNuR3aY.js +1358 -0
- package/build/cdn/assets/BaSzK17p3_gCvNVV.js +24 -0
- package/build/cdn/assets/BbpmcI-KEp3PqrdL.js +496 -0
- package/build/cdn/assets/BdtlmF31h4Y7RgUj.js +22 -0
- package/build/cdn/assets/BjgtkLR9U00HgSRn.js +58 -0
- package/build/cdn/assets/BlfHOASL_bJ6Hy0y.js +40 -0
- package/build/cdn/assets/C-jC-wgAoMOxrVvv.js +1377 -0
- package/build/cdn/assets/C0Lw5hMgKbooA6Jl.js +22 -0
- package/build/cdn/assets/C32FpMEFLbDnBtO3.js +22 -0
- package/build/cdn/assets/C7CDwp-nhN2WFzUs.js +844 -0
- package/build/cdn/assets/C9uN8RnLjnGSimTA.js +439 -0
- package/build/cdn/assets/CEq_C1Sim0pQ6fj0.js +56 -0
- package/build/cdn/assets/CLdcRW7BQK3JCguC.js +48587 -0
- package/build/cdn/assets/CU55zbw8Xbwap6Tl.js +22 -0
- package/build/cdn/assets/C_L_pvQemfhI00iS.js +150 -0
- package/build/cdn/assets/CkhSGQneqlTRflfQ.js +47 -0
- package/build/cdn/assets/CpJdzwQYkBw7IPnN.js +22 -0
- package/build/cdn/assets/CprFmxuwGvaUtLG2.js +22 -0
- package/build/cdn/assets/CtZxtE4tRmMGFT5o.js +22 -0
- package/build/cdn/assets/CvbyGDitUPabmYBl.js +64 -0
- package/build/cdn/assets/D06aHumWZLILF489.js +3926 -0
- package/build/cdn/assets/D2pceTwrS_dagByu.js +21 -0
- package/build/cdn/assets/D4ZBjoUG2QO1RO3t.js +1492 -0
- package/build/cdn/assets/DARyg_kqL8Eu81Fa.js +2175 -0
- package/build/cdn/assets/DCauh523moR7slpq.js +22 -0
- package/build/cdn/assets/DIA-Gy5mdjefjUaA.js +22 -0
- package/build/cdn/assets/DLHK1pMyNN3B2g-j.js +52 -0
- package/build/cdn/assets/DMoEzt3UKZedfext.js +1598 -0
- package/build/cdn/assets/DMwOymY267-LxmJ_.js +49 -0
- package/build/cdn/assets/DToiYU1jffn1g7TH.js +639 -0
- package/build/cdn/assets/DUUO52IRQCve_iCM.js +440 -0
- package/build/cdn/assets/DgSuz0WKGy36a2cp.js +22 -0
- package/build/cdn/assets/Dgw3FTbNKuo2CIxP.js +22 -0
- package/build/cdn/assets/Do7pHqmnwO45_ymt.js +22 -0
- package/build/cdn/assets/Dxl4WJXcEhDAw_yE.js +42 -0
- package/build/cdn/assets/QXzPuadwi3BBJC2-.js +53 -0
- package/build/cdn/assets/SrBQAOpMKiDW0mGB.js +22 -0
- package/build/cdn/assets/W3SqjN4yIzwYTvvj.js +55 -0
- package/build/cdn/assets/YOEDF-U1QTzbXeMV.js +3826 -0
- package/build/cdn/assets/a3tuiJ83MwzLMWaL.js +22 -0
- package/build/cdn/assets/ai2Jw3PRL29E1T8h.js +22 -0
- package/build/cdn/assets/fWcbv7BXhriCYeod.js +92 -0
- package/build/cdn/index.js +171 -0
- package/build/cdn/loader.js +6 -0
- package/build/licenses/dependencies.txt +1 -0
- package/build/package.json +61 -0
- package/build/types/index.d.ts +151 -0
- package/package.json +92 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.0.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.0
|
|
9
|
+
*
|
|
10
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @license @sheetxl/sdk - A high-performance, embeddable spreadsheet engine. - v0.0.0
|
|
15
|
+
*
|
|
16
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
17
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
18
|
+
*/
|
|
19
|
+
async function t() {
|
|
20
|
+
return window.crypto;
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
t as getCrypto
|
|
24
|
+
};
|
|
@@ -0,0 +1,496 @@
|
|
|
1
|
+
import { $ as he } from "./C7CDwp-nhN2WFzUs.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.0.0
|
|
4
|
+
*
|
|
5
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.0
|
|
10
|
+
*
|
|
11
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
12
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @license @sheetxl/sdk - A high-performance, embeddable spreadsheet engine. - v0.0.0
|
|
16
|
+
*
|
|
17
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
18
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* @license @sheetxl/scripting - SheetXL scripting utilities including TypeScript compilation. - v0.0.0
|
|
22
|
+
*
|
|
23
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
24
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
25
|
+
*/
|
|
26
|
+
/**
|
|
27
|
+
* @license @sheetxl/primitives - Primitive - Base types for SheetXL functions. - v0.0.0
|
|
28
|
+
*
|
|
29
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
30
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
31
|
+
*/
|
|
32
|
+
var se, q, r;
|
|
33
|
+
(q = se || (se = {})).Orientation = { Column: "column", Row: "row" }, q.Orientations = { ...q.Orientation, Both: "both" }, q.Direction = { Up: "up", Down: "down", Left: "left", Right: "right" }, ((e) => {
|
|
34
|
+
e.Code = { Parse: 0, Null: 1, Div0: 2, Value: 3, Ref: 4, Name: 5, Num: 6, NA: 7, GettingData: 8, Spill: 9, Connect: 10, Blocked: 11, Unknown: 12, Field: 13, Calc: 14, Busy: 16, Python: 19, Timeout: 20 }, e.Label = { Parse: "#PARSE!", Null: "#NULL!", Div0: "#DIV/0!", Value: "#VALUE!", Ref: "#REF!", Name: "#NAME?", Num: "#NUM!", NA: "#N/A", GettingData: "#GETTING_DATA", Spill: "#SPILL!", Connect: "#CONNECT!", Blocked: "#BLOCKED!", Unknown: "#UNKNOWN!", Field: "#FIELD!", Calc: "#CALC!", Busy: "#BUSY!", Python: "#PYTHON!", Timeout: "#TIMEOUT!" };
|
|
35
|
+
class a extends Error {
|
|
36
|
+
constructor(n, i, S, J) {
|
|
37
|
+
super(S, J), this._label = i, this._code = n, this.details = J;
|
|
38
|
+
}
|
|
39
|
+
static {
|
|
40
|
+
this.code = e.Code.Unknown;
|
|
41
|
+
}
|
|
42
|
+
get isFormulaError() {
|
|
43
|
+
return !0;
|
|
44
|
+
}
|
|
45
|
+
getLabel() {
|
|
46
|
+
return this._label;
|
|
47
|
+
}
|
|
48
|
+
getCode() {
|
|
49
|
+
return this._code;
|
|
50
|
+
}
|
|
51
|
+
equals(n) {
|
|
52
|
+
return !!n && (this._code === n._code || this._code === n.code);
|
|
53
|
+
}
|
|
54
|
+
get [Symbol.toStringTag]() {
|
|
55
|
+
return "[FormulaError]";
|
|
56
|
+
}
|
|
57
|
+
toString() {
|
|
58
|
+
return this.message || this._label;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
e.Known = a;
|
|
62
|
+
class T extends a {
|
|
63
|
+
constructor(n, i) {
|
|
64
|
+
super(e.Code.Parse, e.Label.Parse, n, i);
|
|
65
|
+
}
|
|
66
|
+
static {
|
|
67
|
+
this.code = e.Code.Parse;
|
|
68
|
+
}
|
|
69
|
+
getDetails() {
|
|
70
|
+
const n = this.details;
|
|
71
|
+
return { line: n?.line ?? 1, column: n?.column ?? 1, offset: n?.offset ?? 0, length: n?.length ?? 0 };
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
e.Parse = T;
|
|
75
|
+
class x extends a {
|
|
76
|
+
constructor(n, i) {
|
|
77
|
+
super(e.Code.Null, e.Label.Null, n, i);
|
|
78
|
+
}
|
|
79
|
+
static {
|
|
80
|
+
this.code = e.Code.Null;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
e.Null = x;
|
|
84
|
+
class j extends a {
|
|
85
|
+
constructor(n, i) {
|
|
86
|
+
super(e.Code.Div0, e.Label.Div0, n, i);
|
|
87
|
+
}
|
|
88
|
+
static {
|
|
89
|
+
this.code = e.Code.Div0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
e.Div0 = j;
|
|
93
|
+
class X extends a {
|
|
94
|
+
constructor(n, i) {
|
|
95
|
+
super(e.Code.Value, e.Label.Value, n, i);
|
|
96
|
+
}
|
|
97
|
+
static {
|
|
98
|
+
this.code = e.Code.Value;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
e.Value = X;
|
|
102
|
+
class s extends a {
|
|
103
|
+
constructor(n, i) {
|
|
104
|
+
super(e.Code.Ref, e.Label.Ref, n, i);
|
|
105
|
+
}
|
|
106
|
+
static {
|
|
107
|
+
this.code = e.Code.Ref;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
e.Ref = s;
|
|
111
|
+
class K extends a {
|
|
112
|
+
constructor(n, i) {
|
|
113
|
+
super(e.Code.Name, e.Label.Name, n, i);
|
|
114
|
+
}
|
|
115
|
+
static {
|
|
116
|
+
this.code = e.Code.Name;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
e.Name = K;
|
|
120
|
+
class U extends a {
|
|
121
|
+
constructor(n, i) {
|
|
122
|
+
super(e.Code.Num, e.Label.Num, n, i);
|
|
123
|
+
}
|
|
124
|
+
static {
|
|
125
|
+
this.code = e.Code.Num;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
e.Num = U;
|
|
129
|
+
class z extends a {
|
|
130
|
+
constructor(n, i) {
|
|
131
|
+
super(e.Code.NA, e.Label.NA, n, i);
|
|
132
|
+
}
|
|
133
|
+
static {
|
|
134
|
+
this.code = e.Code.NA;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
e.NA = z;
|
|
138
|
+
class Y extends a {
|
|
139
|
+
constructor(n, i) {
|
|
140
|
+
super(e.Code.GettingData, e.Label.GettingData, n, i);
|
|
141
|
+
}
|
|
142
|
+
static {
|
|
143
|
+
this.code = e.Code.GettingData;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
e.GettingData = Y;
|
|
147
|
+
class M extends a {
|
|
148
|
+
constructor(n, i) {
|
|
149
|
+
super(e.Code.Spill, e.Label.Spill, n, i);
|
|
150
|
+
}
|
|
151
|
+
static {
|
|
152
|
+
this.code = e.Code.Spill;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
e.Spill = M;
|
|
156
|
+
class I extends a {
|
|
157
|
+
constructor(n, i) {
|
|
158
|
+
super(e.Code.Connect, e.Label.Connect, n, i);
|
|
159
|
+
}
|
|
160
|
+
static {
|
|
161
|
+
this.code = e.Code.Connect;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
e.Connect = I;
|
|
165
|
+
class G extends a {
|
|
166
|
+
constructor(n, i) {
|
|
167
|
+
super(e.Code.Blocked, e.Label.Blocked, n, i);
|
|
168
|
+
}
|
|
169
|
+
static {
|
|
170
|
+
this.code = e.Code.Blocked;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
e.Blocked = G;
|
|
174
|
+
class _ extends a {
|
|
175
|
+
constructor(n, i) {
|
|
176
|
+
super(e.Code.Unknown, e.Label.Unknown, n, i);
|
|
177
|
+
}
|
|
178
|
+
static {
|
|
179
|
+
this.code = e.Code.Unknown;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
e.Unknown = _;
|
|
183
|
+
class F extends a {
|
|
184
|
+
constructor(n, i) {
|
|
185
|
+
super(e.Code.Field, e.Label.Field, n, i);
|
|
186
|
+
}
|
|
187
|
+
static {
|
|
188
|
+
this.code = e.Code.Field;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
e.Field = F;
|
|
192
|
+
class Q extends a {
|
|
193
|
+
constructor(n, i) {
|
|
194
|
+
super(e.Code.Calc, e.Label.Calc, n, i);
|
|
195
|
+
}
|
|
196
|
+
static {
|
|
197
|
+
this.code = e.Code.Calc;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
e.Calc = Q;
|
|
201
|
+
class O extends a {
|
|
202
|
+
constructor(n, i) {
|
|
203
|
+
super(e.Code.Busy, e.Label.Busy, n, i);
|
|
204
|
+
}
|
|
205
|
+
static {
|
|
206
|
+
this.code = e.Code.Busy;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
e.Busy = O;
|
|
210
|
+
class P extends a {
|
|
211
|
+
constructor(n, i) {
|
|
212
|
+
super(e.Code.Python, e.Label.Python, n, i);
|
|
213
|
+
}
|
|
214
|
+
static {
|
|
215
|
+
this.code = e.Code.Python;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
e.Python = P;
|
|
219
|
+
class Z extends a {
|
|
220
|
+
constructor(n, i) {
|
|
221
|
+
super(e.Code.Timeout, e.Label.Timeout, n, i);
|
|
222
|
+
}
|
|
223
|
+
static {
|
|
224
|
+
this.code = e.Code.Timeout;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
e.Timeout = Z;
|
|
228
|
+
})(r || (r = {}));
|
|
229
|
+
const f = {};
|
|
230
|
+
f[r.Code.Parse] = r.Parse, f[r.Code.Null] = r.Null, f[r.Code.Div0] = r.Div0, f[r.Code.Value] = r.Value, f[r.Code.Ref] = r.Ref, f[r.Code.Name] = r.Name, f[r.Code.Num] = r.Num, f[r.Code.NA] = r.NA, f[r.Code.GettingData] = r.GettingData, f[r.Code.Spill] = r.Spill, f[r.Code.Connect] = r.Connect, f[r.Code.Blocked] = r.Blocked, f[r.Code.Unknown] = r.Unknown, f[r.Code.Field] = r.Field, f[r.Code.Calc] = r.Calc, f[r.Code.Busy] = r.Busy, f[r.Code.Python] = r.Python, f[r.Code.Timeout] = r.Timeout;
|
|
231
|
+
const ce = /* @__PURE__ */ new Map(), ie = /* @__PURE__ */ new Map(), de = /* @__PURE__ */ new Map(), ue = /* @__PURE__ */ new Map(), le = Object.keys(f);
|
|
232
|
+
for (let e = 0; e < le.length; e++) {
|
|
233
|
+
const a = le[e], T = f[a];
|
|
234
|
+
de.set(r.Label[a], T), ue.set(r.Code[a], T);
|
|
235
|
+
const x = new T();
|
|
236
|
+
ce.set(x.getLabel(), x), ie.set(x.getCode(), x);
|
|
237
|
+
}
|
|
238
|
+
const ge = ie.get(r.Code.Unknown);
|
|
239
|
+
var p;
|
|
240
|
+
(p = r || (r = {})).BuiltIn = { Parse: new p.Parse(), Null: new p.Null(), Div0: new p.Div0(), Value: new p.Value(), Ref: new p.Ref(), Name: new p.Name(), Num: new p.Num(), NA: new p.NA(), GettingData: new p.GettingData(), Spill: new p.Spill(), Connect: new p.Connect(), Blocked: new p.Blocked(), Unknown: new p.Unknown(), Field: new p.Field(), Calc: new p.Calc(), Busy: new p.Busy(), Python: new p.Python(), Timeout: new p.Timeout() }, p.getBuiltInByLabel = (e) => ce.get(e), p.newTypedError = (e, a, T) => {
|
|
241
|
+
let x;
|
|
242
|
+
return x = typeof e == "string" ? de.get(e) : ue.get(e), x || (x = p.Unknown), new x(a, T);
|
|
243
|
+
}, p.getBuiltInById = (e) => ie.get(e) || ge;
|
|
244
|
+
let A = null, H = null;
|
|
245
|
+
const we = { compilerOptions: { target: "esnext" } }, Ce = async () => `
|
|
246
|
+
interface FirstTest {
|
|
247
|
+
isTrue?: boolean;
|
|
248
|
+
}
|
|
249
|
+
`, pe = /* @__PURE__ */ new Map([["IReferenceRange", "r"], ["IRange", "l"]]), me = /* @__PURE__ */ new Map([["IWorkbook", "workbook"], ["ISheet", "sheet"], ["ICellRanges", "ranges"], ["ICellRange", "range"], ["IFormulaContext", "context"]]), ne = (e, a) => {
|
|
250
|
+
Array.from(a.keys()).forEach((T) => {
|
|
251
|
+
const x = a.get(T);
|
|
252
|
+
a.set(`${e}.${T}`, x);
|
|
253
|
+
});
|
|
254
|
+
}, xe = /* @__PURE__ */ new Map([["Scalar", "*"], ["FormulaError.Known", "e"], ["Date", "Date"], ["JSON", "JSON"]]), be = /* @__PURE__ */ new Map([]), oe = "SheetXL";
|
|
255
|
+
ne(oe, pe), ne(oe, me), ne(oe, be);
|
|
256
|
+
const ke = /* @__PURE__ */ new Map([["Promise", () => ({ async: !0 })], ["Observable", () => ({ stream: !0 })]]);
|
|
257
|
+
let W = null;
|
|
258
|
+
async function Te() {
|
|
259
|
+
if (W) return W;
|
|
260
|
+
try {
|
|
261
|
+
return await (await import("./BlfHOASL_bJ6Hy0y.js")).initialize();
|
|
262
|
+
} catch (e) {
|
|
263
|
+
throw W = null, e;
|
|
264
|
+
} finally {
|
|
265
|
+
W = null;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
async function Se(e) {
|
|
269
|
+
const a = e?.source ?? null;
|
|
270
|
+
if (!a) return null;
|
|
271
|
+
const T = (e.disableBundle || e.declarationsOnly) ?? !1, x = [Ce(), Te()], j = await Promise.all(x), X = j[0], s = j[1];
|
|
272
|
+
let K = "", U = null;
|
|
273
|
+
const z = [], Y = { allowJs: !0, declaration: !1, sourceMap: !1, inlineSourceMap: !1, inlineSources: !1, isolatedModules: !0, preserveConstEnums: !1, module: 99, noResolve: !0, emitDeclarationOnly: !1, target: s.ScriptTarget.ES2020 }, M = "script", I = `${M}.ts`, G = "lib.d.ts", _ = "global.d.ts", F = { [I]: a, [G]: `
|
|
274
|
+
/**
|
|
275
|
+
* Represents the completion of an asynchronous operation
|
|
276
|
+
*/
|
|
277
|
+
interface Promise<T> {
|
|
278
|
+
/**
|
|
279
|
+
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
280
|
+
* resolved value cannot be modified from the callback.
|
|
281
|
+
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
282
|
+
* @returns A Promise for the completion of the callback.
|
|
283
|
+
*/
|
|
284
|
+
finally(onfinally?: (() => void) | undefined | null): Promise<T>;
|
|
285
|
+
}
|
|
286
|
+
`, [_]: X }, Q = { getSourceFile: (t, d, E, l) => s.createSourceFile(t, F[t], s.ScriptTarget.Latest, !0), fileExists: (t) => F[t] !== void 0, readFile: (t) => F[t], writeFile: (t, d) => {
|
|
287
|
+
F[t] = d;
|
|
288
|
+
}, getCurrentDirectory: () => "./", getCanonicalFileName: (t) => t, useCaseSensitiveFileNames: () => !0, getDefaultLibFileName: (t) => G, getNewLine: () => `
|
|
289
|
+
` }, O = s.createProgram([I, _], Y, Q), P = O.getTypeChecker(), Z = O.getSourceFile(I), y = O.emit();
|
|
290
|
+
y.diagnostics.length > 0 && console.warn(y.diagnostics), K = F[`${M}.js`];
|
|
291
|
+
const n = (t, d, E, l) => {
|
|
292
|
+
if (t) {
|
|
293
|
+
if (t.kind === s.SyntaxKind.NumberKeyword) d.scalar = "n";
|
|
294
|
+
else if (t.kind === s.SyntaxKind.StringKeyword) d.scalar = "s";
|
|
295
|
+
else if (t.kind === s.SyntaxKind.BooleanKeyword) d.scalar = "b";
|
|
296
|
+
else if (t.kind === s.SyntaxKind.UndefinedKeyword || t.kind === s.SyntaxKind.NullKeyword || t.kind === s.SyntaxKind.VoidKeyword) {
|
|
297
|
+
if (l) return void S(t, new Error(`'undefined' is not a valid type for input: '${t?.parent?.name?.escapedText}'.`));
|
|
298
|
+
d.scalar = "z";
|
|
299
|
+
} else if (t.kind === s.SyntaxKind.BigIntKeyword) d.scalar = "n";
|
|
300
|
+
else if (t.kind === s.SyntaxKind.AnyKeyword) d.scalar = "z";
|
|
301
|
+
else if (t.kind === s.SyntaxKind.ArrayType) {
|
|
302
|
+
const c = t.elementType;
|
|
303
|
+
if (!c) return void S(t, new Error(`'Array' must be typed: '${t?.parent?.name?.escapedText}'.`));
|
|
304
|
+
d.arrayDepth = (d.arrayDepth ?? 0) + 1, n(c, d, E, l);
|
|
305
|
+
} else if (t.kind !== s.SyntaxKind.TupleType && t.kind === s.SyntaxKind.TypeReference) {
|
|
306
|
+
const c = t.typeName?.getText?.() ?? null, N = pe.get(c);
|
|
307
|
+
let k = !1;
|
|
308
|
+
N && (d.range = N, k = !0);
|
|
309
|
+
const D = xe.get(c);
|
|
310
|
+
if (D && (d.scalar = D), D !== void 0 && (k = !0), l) {
|
|
311
|
+
const g = me.get(c);
|
|
312
|
+
if (g) return g;
|
|
313
|
+
} else {
|
|
314
|
+
const g = ke.get(c);
|
|
315
|
+
if (g) {
|
|
316
|
+
const m = { ...d, ...g() };
|
|
317
|
+
let o = 0;
|
|
318
|
+
if (m.async && o++, m.stream && o++, o > 1) return void S(t, new Error(`'${c}' cannot have multiple modifiers: '${t?.parent?.name?.escapedText}'.`));
|
|
319
|
+
d = m, k = !0;
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
if (!k) return void S("node", new Error(`'${c}' is not a valid type: '${t?.parent?.name?.escapedText}'.`));
|
|
323
|
+
const b = t.typeArguments;
|
|
324
|
+
if (b) {
|
|
325
|
+
if (b.length !== 1) return void S(t, new Error(`'${c}' must be typed with exactly 1 type: '${t?.parent?.name?.escapedText}'.`));
|
|
326
|
+
n(b[0], d, E, l);
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
} else S(t, new Error(`Type is not defined for '${d?.name ?? "return"}'.`));
|
|
330
|
+
}, i = [], S = (t, d) => {
|
|
331
|
+
i.push(d);
|
|
332
|
+
};
|
|
333
|
+
if (s.forEachChild(Z, (t) => {
|
|
334
|
+
if (E = t, (s.getCombinedModifierFlags(E) & s.ModifierFlags.Export) !== 0 && s.isFunctionDeclaration(t)) {
|
|
335
|
+
const l = {}, c = { parameters: {} }, N = t?.name?.getText();
|
|
336
|
+
try {
|
|
337
|
+
l.name = N;
|
|
338
|
+
const k = P.getSymbolAtLocation(t.name).getDocumentationComment(P);
|
|
339
|
+
if (k && k.length > 0 && k[0].text) {
|
|
340
|
+
let m = k[0].text;
|
|
341
|
+
m = m.replace(/[\r\n]+/g, "\\n").trim(), c.summary = m;
|
|
342
|
+
}
|
|
343
|
+
const D = {};
|
|
344
|
+
n(t.type, D, l, !1), l.returnType = D;
|
|
345
|
+
const b = {};
|
|
346
|
+
d = t, (s.getCombinedModifierFlags(d) & s.ModifierFlags.Default) !== 0 && (b.default = !0, U = N), Object.keys(b).length > 0 && (l.behavior = b), l.parameters = [];
|
|
347
|
+
const g = /* @__PURE__ */ new Map();
|
|
348
|
+
for (let m = 0; m < t.parameters.length; m++) {
|
|
349
|
+
const o = t.parameters[m], h = {};
|
|
350
|
+
h.name = o.name?.getText();
|
|
351
|
+
const $ = n(o.type, h, l, !0);
|
|
352
|
+
if ($) {
|
|
353
|
+
if (l.parameters.length !== 0) {
|
|
354
|
+
const B = t?.parent, C = B?.name?.getText();
|
|
355
|
+
return void S(t, new Error(`'${l.name}' contexts must be the first parameter: '${C}'.`));
|
|
356
|
+
}
|
|
357
|
+
l.context = $;
|
|
358
|
+
continue;
|
|
359
|
+
}
|
|
360
|
+
let L;
|
|
361
|
+
if ((o.initializer !== void 0 && o.initializer !== null || o.questionToken !== void 0 && o.questionToken !== null) && (h.optional = !0, o.initializer)) try {
|
|
362
|
+
L = o.initializer.kind === s.SyntaxKind.StringLiteral ? o.initializer.text : o.initializer.kind === s.SyntaxKind.NumericLiteral ? parseFloat(o.initializer.text) : o.initializer.kind === s.SyntaxKind.TrueKeyword || o.initializer.kind === s.SyntaxKind.FalseKeyword ? o.initializer.kind === s.SyntaxKind.TrueKeyword : o.initializer.kind === s.SyntaxKind.NullKeyword ? null : o.initializer.kind === s.SyntaxKind.ObjectLiteralExpression || o.initializer.kind === s.SyntaxKind.ArrayLiteralExpression ? o.initializer.getText() : o.initializer.getText?.();
|
|
363
|
+
} catch (B) {
|
|
364
|
+
console.warn(`Couldn't extract default value for parameter '${h.name}'`, B);
|
|
365
|
+
}
|
|
366
|
+
o.dotDotDotToken && (h.rest = !0), l.parameters.push(h);
|
|
367
|
+
const w = { description: "" };
|
|
368
|
+
c.parameters[h.name] = w;
|
|
369
|
+
const u = P.getSymbolAtLocation(o.name).getDocumentationComment(P);
|
|
370
|
+
u && u.length > 0 && u[0].text && (w.description = u[0].text), L !== void 0 && (w.defaultValue = L), g.set(h.name, h);
|
|
371
|
+
}
|
|
372
|
+
if (t.jsDoc && t.jsDoc.length > 0) {
|
|
373
|
+
const m = t.jsDoc;
|
|
374
|
+
for (let o = 0; o < m.length; o++) {
|
|
375
|
+
const h = m[o]?.tags;
|
|
376
|
+
if (h) for (let $ = 0; $ < h.length; $++) {
|
|
377
|
+
const L = h[$];
|
|
378
|
+
let w = L?.tagName?.text;
|
|
379
|
+
if (!w) continue;
|
|
380
|
+
w = w.toLowerCase();
|
|
381
|
+
let u = L.comment;
|
|
382
|
+
const B = w === "hidden";
|
|
383
|
+
if ((typeof u == "string" || B) && (typeof u == "string" && (u = u.replace(/[\r\n]+/g, "\\n").trim()), B || !u || (u = u.split(/\\n/)[0], u && u.length !== 0))) {
|
|
384
|
+
if (u && typeof u == "string") {
|
|
385
|
+
const C = /\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;
|
|
386
|
+
let v, R = u, V = [];
|
|
387
|
+
for (; (v = C.exec(u)) !== null; ) {
|
|
388
|
+
const [ee, te, ye, ae] = v, fe = [ye.trim()];
|
|
389
|
+
ae && fe.push(ae.trim());
|
|
390
|
+
}
|
|
391
|
+
u = R, V.length > 0 && w === "see" && (c.links || (c.links = []), c.links.push(...V));
|
|
392
|
+
}
|
|
393
|
+
if (w === "name") {
|
|
394
|
+
const C = u;
|
|
395
|
+
C !== N && (c.name = C);
|
|
396
|
+
} else if (w !== "description") {
|
|
397
|
+
if (w === "summary") {
|
|
398
|
+
const C = u;
|
|
399
|
+
C && (c.summary = C);
|
|
400
|
+
} else if (w === "param") {
|
|
401
|
+
const C = L.name?.text, v = g.get(C);
|
|
402
|
+
if (!v) {
|
|
403
|
+
i.push(new Error(`Parameter '${C}' not found in function '${N}'.`));
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
if (L.typeExpression && L.typeExpression.type) try {
|
|
407
|
+
const R = L.typeExpression.type;
|
|
408
|
+
if (R.kind === s.SyntaxKind.UnionType) {
|
|
409
|
+
const V = [];
|
|
410
|
+
v.enums = V, R.types.forEach((ee) => {
|
|
411
|
+
if (ee.kind === s.SyntaxKind.LiteralType) {
|
|
412
|
+
const te = ee.literal.text;
|
|
413
|
+
te && V.push(te);
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
} catch (R) {
|
|
418
|
+
console.warn("Error parsing JSDoc type expression:", R);
|
|
419
|
+
}
|
|
420
|
+
} else if (w === "returns" || w === "return") l.returnType.description = u;
|
|
421
|
+
else if (w === "category") c.category = u;
|
|
422
|
+
else if (w === "hidden") {
|
|
423
|
+
let C = !0;
|
|
424
|
+
const v = u?.toLowerCase();
|
|
425
|
+
v === "false" ? C = !1 : v !== "true" && (C = u), C !== !1 && (c.hidden = C ?? !0);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
Object.keys(l.returnType).length === 0 && delete l.returnType, z.push([l, c]);
|
|
433
|
+
} catch (k) {
|
|
434
|
+
S(t, new Error(`'${N}': ${k.message}`));
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
var d, E;
|
|
438
|
+
}), i.length > 0) throw console.warn(i), new Error("There were compilation errors.", { cause: i });
|
|
439
|
+
if (z.length === 0) throw new Error("No exported functions.");
|
|
440
|
+
const J = `${he.uuidV4()}-script`;
|
|
441
|
+
try {
|
|
442
|
+
T || i.length !== 0 || (K = await async function(t, d, E = "/script.js", l = "__SHEETXL") {
|
|
443
|
+
try {
|
|
444
|
+
const c = await async function() {
|
|
445
|
+
if (A) return A;
|
|
446
|
+
if (H) {
|
|
447
|
+
if (await H, !A) throw new Error("ESBuild initialization promise resolved, but instance is not available.");
|
|
448
|
+
return A;
|
|
449
|
+
}
|
|
450
|
+
let g, m;
|
|
451
|
+
H = new Promise((o, h) => {
|
|
452
|
+
g = o, m = h;
|
|
453
|
+
});
|
|
454
|
+
try {
|
|
455
|
+
const { initialize: o } = await import("./Dxl4WJXcEhDAw_yE.js");
|
|
456
|
+
return A = await o(), g(), A;
|
|
457
|
+
} catch (o) {
|
|
458
|
+
throw console.error("Failed to import or initialize esbuild:", o), H = null, m(o), o;
|
|
459
|
+
}
|
|
460
|
+
}(), N = "@sheetxl/primitives", k = `
|
|
461
|
+
export const FormulaContext = globalThis.${l}?.FormulaContext;
|
|
462
|
+
export const ScalarType = globalThis.${l}?.ScalarType;
|
|
463
|
+
export const Observable = globalThis.${l}?.Observable;
|
|
464
|
+
export const IRange = globalThis.${l}?.IRange;
|
|
465
|
+
export const FormulaError = globalThis.${l}?.FormulaError;
|
|
466
|
+
// Add more exports as needed
|
|
467
|
+
`, D = { name: "sheetxl-esbuild-in-memory", setup(g) {
|
|
468
|
+
const m = "sheetxl-" + (/* @__PURE__ */ new Date()).getTime();
|
|
469
|
+
g.onResolve({ filter: new RegExp(`^(${E.replace("/", "\\/")}|${N})$`) }, (o) => ({ path: o.path, namespace: m })), g.onResolve({ filter: /.*/ }, (o) => {
|
|
470
|
+
if (o.namespace !== m) return console.warn(`esbuild: Treating import "${o.path}" as external.`), { path: o.path, external: !0 };
|
|
471
|
+
}), g.onLoad({ filter: /.*/, namespace: m }, (o) => {
|
|
472
|
+
let h;
|
|
473
|
+
if (o.path === E) h = d;
|
|
474
|
+
else {
|
|
475
|
+
if (o.path !== N) return { errors: [{ text: `Cannot load unknown path in ${m}: ${o.path}` }] };
|
|
476
|
+
h = k;
|
|
477
|
+
}
|
|
478
|
+
return { contents: h, loader: "ts" };
|
|
479
|
+
});
|
|
480
|
+
} }, b = await c.build({ entryPoints: [E], bundle: !0, write: !1, format: "esm", plugins: [D], sourcemap: "inline", tsconfigRaw: we, minify: !0, platform: "neutral" });
|
|
481
|
+
if (b.outputFiles && b.outputFiles.length > 0) return b.outputFiles[0].text;
|
|
482
|
+
throw b.errors && b.errors.length > 0 ? new Error(`esbuild bundling failed: ${b.errors.map((g) => g.text).join(`
|
|
483
|
+
`)}`) : new Error("esbuild did not produce an output file.");
|
|
484
|
+
} catch (c) {
|
|
485
|
+
throw console.error("esbuild bundling process failed:", c), c;
|
|
486
|
+
}
|
|
487
|
+
}(0, K, M));
|
|
488
|
+
} catch {
|
|
489
|
+
console.warn("Error bundling script");
|
|
490
|
+
}
|
|
491
|
+
const re = { functions: z, commitId: J, source: a, name: "Script", language: "typescript", compiled: K };
|
|
492
|
+
return U && (re.autoRun = U), re;
|
|
493
|
+
}
|
|
494
|
+
export {
|
|
495
|
+
Se as compileModule
|
|
496
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.0.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.0
|
|
9
|
+
*
|
|
10
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @license @sheetxl/sdk - A high-performance, embeddable spreadsheet engine. - v0.0.0
|
|
15
|
+
*
|
|
16
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
17
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
18
|
+
*/
|
|
19
|
+
const t = { FILTERXML: { s: "Returns specific data from XML content using the specified XPath.", p: { xml: { d: "is a string in valid XML format." }, xpath: { d: "is a string in standard XPath format." } } } };
|
|
20
|
+
export {
|
|
21
|
+
t as default
|
|
22
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { i as y, q as C } from "./CLdcRW7BQK3JCguC.js";
|
|
2
|
+
/**
|
|
3
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.0.0
|
|
4
|
+
*
|
|
5
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
6
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.0
|
|
10
|
+
*
|
|
11
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
12
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
13
|
+
*/
|
|
14
|
+
/**
|
|
15
|
+
* @license @sheetxl/io - IO - Import/Export Libraries for SheetXL. - v0.0.0
|
|
16
|
+
*
|
|
17
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
18
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
19
|
+
*/
|
|
20
|
+
const B = async (a, p) => {
|
|
21
|
+
const { trimLeadingBlankRow: i = !0, trimLeadingBlankColumn: u = !0, excludeHidden: h = !1, sheetKey: o = null, papaParseConfig: m = {} } = p || {}, f = await import("./C9uN8RnLjnGSimTA.js").then((s) => s.p);
|
|
22
|
+
if (!a) throw new Error("workbook must be specified");
|
|
23
|
+
let t = null;
|
|
24
|
+
if (o === null ? t = a.getSelectedSheet() : typeof o == "number" ? t = a.getSheets().search()[o] : typeof o == "string" && (t = a.getSheets().getByName(o)), !t) throw new Error("invalid sheetKey specified");
|
|
25
|
+
let c = null;
|
|
26
|
+
const d = [];
|
|
27
|
+
let e = null, n = t.getUsedRange({ excludeHidden: h });
|
|
28
|
+
if (!n) throw new Error("Nothing to export");
|
|
29
|
+
if (!i || !u) {
|
|
30
|
+
const s = i ? n.getRowStart() : 0, l = u ? n.getColumnStart() : 0;
|
|
31
|
+
n = n.getOffsetTo(s, l);
|
|
32
|
+
}
|
|
33
|
+
n.forEach((s, l) => {
|
|
34
|
+
const w = l.getCoords(), x = l.getCell();
|
|
35
|
+
c !== w.rowIndex && (e && d.push(e), e = [], c = w.rowIndex);
|
|
36
|
+
const S = x.toTextUnformatted() ?? "";
|
|
37
|
+
e.push(S);
|
|
38
|
+
}, { includeEmpty: !0, address: null }), e && d.push(e);
|
|
39
|
+
const r = { ...m }, g = f.unparse(d, r);
|
|
40
|
+
return new TextEncoder().encode(g);
|
|
41
|
+
}, R = async (a, p) => {
|
|
42
|
+
const { papaParseConfig: i, setValuesOptions: u, constructorOptions: h } = p ?? {}, o = await import("./C9uN8RnLjnGSimTA.js").then((r) => r.p), m = new TextDecoder().decode(a);
|
|
43
|
+
let f = -1;
|
|
44
|
+
const t = new y(h), c = t.getSelectedSheet().getEntireRange().startIncrementalUpdates({ orientation: C.Orientation.Row }), d = p?.onProgress;
|
|
45
|
+
let e = 0;
|
|
46
|
+
const n = { ...i, transform: (r, g) => {
|
|
47
|
+
i?.transform && (r = i.transform(r, g));
|
|
48
|
+
const s = g;
|
|
49
|
+
s === 0 && f++;
|
|
50
|
+
let l = r ?? "";
|
|
51
|
+
return c.pushAt(f, s, l), e++, e % 1e5 == 0 && d?.(e), r;
|
|
52
|
+
} };
|
|
53
|
+
return o.parse(m, n).data, c.apply({ textParser: !0, ...u }), t;
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
R as fromBufferCSV,
|
|
57
|
+
B as toBufferCSV
|
|
58
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.0.0
|
|
3
|
+
*
|
|
4
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
5
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.0.0
|
|
9
|
+
*
|
|
10
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
11
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* @license @sheetxl/sdk - A high-performance, embeddable spreadsheet engine. - v0.0.0
|
|
15
|
+
*
|
|
16
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
17
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
18
|
+
*/
|
|
19
|
+
/**
|
|
20
|
+
* @license @sheetxl/scripting - SheetXL scripting utilities including TypeScript compilation. - v0.0.0
|
|
21
|
+
*
|
|
22
|
+
* (C) 2025-present SheetXL Inc. & Michael T. Ford
|
|
23
|
+
* License: The license can be found at https://www.sheetxl.com/license.
|
|
24
|
+
*/
|
|
25
|
+
let e = null;
|
|
26
|
+
async function n() {
|
|
27
|
+
return e || (e = new Promise(async (r, o) => {
|
|
28
|
+
console.log("🔄 Initializing Browser TypeScript module...");
|
|
29
|
+
let i = null;
|
|
30
|
+
try {
|
|
31
|
+
i = await import("https://esm.sh/typescript@5.7.2");
|
|
32
|
+
} catch (l) {
|
|
33
|
+
console.error("Error initializing Browser TypeScript module:", l);
|
|
34
|
+
}
|
|
35
|
+
i || console.log("use script fallback"), r(i);
|
|
36
|
+
}), e);
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
n as initialize
|
|
40
|
+
};
|