@sheetxl/studio-mui 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +11 -11
- package/README.md +24 -24
- package/browser/cjs/B1DCwLSJMTHSgdcP.cjs +6 -0
- package/browser/cjs/{BtYvPg1MnEyGWx8E.cjs → BHC1oqfBYh7Xmx_G.cjs} +1 -1
- package/browser/cjs/{BBJ57oaa6vu0zEjI.cjs → BMUOX4KpmBu6GH8Q.cjs} +1 -1
- package/browser/cjs/BsXtNRaOhnjlXTcA.cjs +6 -0
- package/browser/cjs/{sxA11AN6vr9fiHaa.cjs → Bwk2L5ydEvoRIisp.cjs} +1 -1
- package/browser/cjs/{CEjq7KQ0zHIi69or.cjs → C0hVi0a9d9Sh_FgO.cjs} +2 -2
- package/browser/cjs/{CgaWzlL_p5dgqA4f.cjs → C0sbobSHWURMB8m0.cjs} +3 -3
- package/browser/cjs/{CsvjAXVeoKH34aZc.cjs → C1GrJth6YhBZDgvq.cjs} +2 -2
- package/browser/cjs/{BZfQo-wrdJc4xy1p.cjs → CB6TEerfGxS24WUy.cjs} +2 -2
- package/browser/cjs/CBIj9rqxh2ze9ckF.cjs +6 -0
- package/browser/cjs/CkdT8JSum0WmJ7Tn.cjs +87 -0
- package/browser/cjs/CtKfykOLBwpCtsPd.cjs +11 -0
- package/browser/cjs/D9t4mfnS94EkWCXT.cjs +6 -0
- package/browser/cjs/{BTSVJlDxWgqbdgwJ.cjs → DEa9UMmpvbiH_Dxm.cjs} +1 -1
- package/browser/cjs/{CJFKRBbjz7X-rEau.cjs → DY0yxZSYTOZvtIkB.cjs} +1 -1
- package/browser/cjs/DbczL66CNJYzHHvr.cjs +12 -0
- package/browser/cjs/{DLeOkdGvdWl5tqCl.cjs → DfPqfTiRAZ9i5RVA.cjs} +2 -2
- package/browser/cjs/{C-4fmxJxBM8ThtN5.cjs → Dpc0lG73ekHkTPOA.cjs} +2 -2
- package/browser/cjs/{ByKQeaRgOfTOn4P6.cjs → DzdnNJvBx5lkLTW-.cjs} +1 -1
- package/browser/cjs/EPoWWLrVLfRMaxvD.cjs +6 -0
- package/browser/cjs/_JBLryXFRVS5vFVX.cjs +12 -0
- package/browser/cjs/{CX6yLHEdmP8SVEfH.cjs → edAxlEEqzjJ_PaBv.cjs} +2 -2
- package/browser/cjs/{CMTXA4puzeAnzQwq.cjs → f1m-IERoDbQdUMNJ.cjs} +1 -1
- package/browser/cjs/index.cjs +3 -3
- package/browser/cjs/{vEKDv57iikwYjhOc.cjs → j8ba84pFnKx2xWvW.cjs} +2 -2
- package/browser/cjs/{DLcyf5qNRNueXSur.cjs → xRKATlLPCXjQqLyR.cjs} +1 -1
- package/browser/esm/{Bt8Hem_KC6UibnGm.mjs → B3E24eA0KrqZGcc6.mjs} +6 -6
- package/browser/esm/{ZwbkuvbehTjluIzn.mjs → B7spDz0f3MErGle0.mjs} +21 -20
- package/browser/esm/{AkfGEQyMAKNp1Ktw.mjs → BQSJPoCxw_CbM_GB.mjs} +11 -10
- package/browser/esm/{Dq2nqH2znDzDq0no.mjs → C0HMqAubZ7789bne.mjs} +1 -1
- package/browser/esm/{DoCwq6ipapKirQSJ.mjs → C72RDqmHBctKx6yu.mjs} +1 -1
- package/browser/esm/{C3dyK-h3mgD7XzKl.mjs → CSEDlIO1VyJbsJUh.mjs} +8 -8
- package/browser/esm/{_zJv_HkelROSMajR.mjs → Ca8SXunZNcPT82kM.mjs} +1 -1
- package/browser/esm/{Dvi6qc2t9c_bRvzo.mjs → Cbj_GBiwqMbV7xNp.mjs} +44 -43
- package/browser/esm/Cdr3G0s5DSG6bX6w.mjs +52 -0
- package/browser/esm/{DudPyyE63O5X5Tij.mjs → CoPf1k9QR8u7c9dJ.mjs} +10 -10
- package/browser/esm/{CRByH9Wf2wJ94di-.mjs → CyUxX9cLgslryjv5.mjs} +1 -1
- package/browser/esm/{FhyoG4Gyhb7gVRPB.mjs → D7kxhKOLn3UAkGzE.mjs} +13 -13
- package/browser/esm/{9vaTrJzQjSFA2egn.mjs → DGIZQy_4rgYfRKUt.mjs} +10 -10
- package/browser/esm/{BRPqw1D9DgPK_A6V.mjs → DJmEZGVO4DnLsMSK.mjs} +7 -7
- package/browser/esm/{TFr0V-rb-KYQeRVW.mjs → DTY6o1fHyy7Ldm2E.mjs} +1 -1
- package/browser/esm/DhuuaOVgVDtHsSft.mjs +1467 -0
- package/browser/esm/{ByYn00uYUmHj9zvS.mjs → Dig0J4i2Urjl9Z--.mjs} +171 -170
- package/browser/esm/{CdUwERsyanWuNPx8.mjs → DmqNGi-j-G64Ah3R.mjs} +2 -2
- package/browser/esm/{B-DwCBC-vYtRKiGS.mjs → DnH6tB6PvfbWK92p.mjs} +13 -13
- package/browser/esm/{D_LHNgrCc-7V6FjT.mjs → Sg5ukHMhDKaJmwC5.mjs} +65 -65
- package/browser/esm/{D645MdIazDB-hc3d.mjs → TfEcJxbuvenMTWzb.mjs} +1 -1
- package/browser/esm/{s-R04_lOf8TuzWvo.mjs → buSI99ehYQ3RDGh9.mjs} +1 -1
- package/browser/esm/index.mjs +75 -74
- package/browser/esm/{BNbDRm5P-Ha3rBv4.mjs → n91lwJODGYpl_0sb.mjs} +1 -1
- package/browser/esm/{BVDNIiq2e_loYVfc.mjs → oJzTpcQBF382AsoK.mjs} +16 -16
- package/browser/esm/tEvhefgL1pPAbBne.mjs +19828 -0
- package/licenses/dependencies.txt +203 -225
- package/node/assets/style.css +1 -1
- package/node/esm/{CI9F84m6LzoOkVfK.mjs → B794OzAyQ2S3DUvE.mjs} +2 -2
- package/node/esm/{N2xFXdAPXckWbqvN.mjs → B9eTznHjWdKEfnmd.mjs} +13 -13
- package/node/esm/{DjLSO4d4T2JddYG_.mjs → BA_RIYlnXvTDRdhy.mjs} +9 -9
- package/node/esm/{CYcFo_OeyApoGTg3.mjs → BBUuSB5DBjPGuwXm.mjs} +2 -2
- package/node/esm/{CWRpbP9nAT2yR2r6.mjs → BPAWh9TN2AA_qg8Q.mjs} +13 -12
- package/node/esm/{DYOAGczbRXmskyrr.mjs → BWxdcvg2Tp0Ysth3.mjs} +1 -1
- package/node/esm/{BX8KUYAnQx1vI-cS.mjs → BX8ZbzM8Zfe_MtDJ.mjs} +22 -22
- package/node/esm/{DuboCcThig3p0wzs.mjs → BdXN9t5_NDfrKA2E.mjs} +29 -29
- package/node/esm/CaySzQgftaLFVU-a.mjs +25 -0
- package/node/esm/{B5jFauUSFpo_iDkW.mjs → CrwtN-27La5MZ9yI.mjs} +1 -1
- package/node/esm/{BjIAi3GfBAjiRIja.mjs → Cug20O7hGugaeSka.mjs} +276 -275
- package/node/esm/{Bth10k64kFkk36Hy.mjs → CwZUEv9f0ywDMV-Z.mjs} +12 -12
- package/node/esm/{Bk7aoxfQtGp8id7D.mjs → D0fA-N8eAJVD4a_b.mjs} +1 -1
- package/node/esm/{ZVae6CkvsUOXzMKw.mjs → D1aU9ydYjq7iFVAr.mjs} +1 -1
- package/node/esm/{D95MPCm8ObgZN5_j.mjs → D2gUK2WMUbCR0-Kw.mjs} +24 -23
- package/node/esm/{B2Y6U5_PvKIFVtAh.mjs → D4HUF8JC55LqF87u.mjs} +86 -85
- package/node/esm/DOC-LvGYDU9FpsDS.mjs +553 -0
- package/node/esm/{BsSGinAqat7R8x_O.mjs → DXNmGNM6ItcTOZyo.mjs} +1 -1
- package/node/esm/{DfXVaugDnucoDGYk.mjs → DY3eG9Mfo_-xsWGD.mjs} +2 -2
- package/node/esm/{CwIlFXgoa_xv0Doi.mjs → Djc-gCpBoXNpI6yL.mjs} +2 -2
- package/node/esm/{CS138m7XyLHvzDPV.mjs → ILfHRiSFod9A2fKN.mjs} +1 -1
- package/node/esm/Sc5EyWF8aAI0xzOO.mjs +308 -0
- package/node/esm/{CradKrxfiGQucTZ3.mjs → dasEgLXLO2WWGkUm.mjs} +8 -8
- package/node/esm/index.mjs +12873 -41672
- package/package.json +8 -8
- package/browser/cjs/1C6nE8JXbR1K_yhw.cjs +0 -6
- package/browser/cjs/6denMJxSAR1JnvVP.cjs +0 -15
- package/browser/cjs/B-N31rKSrvqkcxZP.cjs +0 -6
- package/browser/cjs/BLHCySywMnqptSI9.cjs +0 -32
- package/browser/cjs/BbEnQfoP4EOJK3YQ.cjs +0 -6
- package/browser/cjs/BjaD6jFpWrhKL2dz.cjs +0 -6
- package/browser/cjs/BnaQy4xZm6MUD5Sg.cjs +0 -13
- package/browser/cjs/BszSSdQItUM3BnN1.cjs +0 -6
- package/browser/cjs/C0vPGOmkrEmgMUC8.cjs +0 -6
- package/browser/cjs/C19mJZkF3zJRRDNw.cjs +0 -11
- package/browser/cjs/C2kX273f3kTe7viA.cjs +0 -6
- package/browser/cjs/C6MOXXmZPlw53ARk.cjs +0 -6
- package/browser/cjs/CGxAeOIqbsFk97UV.cjs +0 -6
- package/browser/cjs/CLeyzaTKMMR0Hcac.cjs +0 -6
- package/browser/cjs/CM1UZZ4gfAch7cju.cjs +0 -7
- package/browser/cjs/CSiwPeW0XIEaw5qn.cjs +0 -6
- package/browser/cjs/CaH2ZbfCFFqmTqKi.cjs +0 -6
- package/browser/cjs/Cbffh394PX-rgpbL.cjs +0 -6
- package/browser/cjs/Ce6nJl_bhnr51GJ3.cjs +0 -238
- package/browser/cjs/ChVT2EzsTJjDsozn.cjs +0 -6
- package/browser/cjs/Cjs836g7b_ipAS4X.cjs +0 -6
- package/browser/cjs/CkxuzW8FWE8vKkSL.cjs +0 -6
- package/browser/cjs/Clh_-4NLLHCW3c-r.cjs +0 -6
- package/browser/cjs/CsxexX1uKSMjAryZ.cjs +0 -6
- package/browser/cjs/CwgzXfkSX0s-h_0a.cjs +0 -6
- package/browser/cjs/CxIFTPLgMN5VgKh1.cjs +0 -12
- package/browser/cjs/D0ByNhICkrbUC74Z.cjs +0 -6
- package/browser/cjs/DAnQwP6m2P_AUhZh.cjs +0 -6
- package/browser/cjs/DFIMAvLgAQfQm3Bx.cjs +0 -6
- package/browser/cjs/DI-wbtkuZm7yx_ek.cjs +0 -6
- package/browser/cjs/DUUZT0ElQBBkt4qe.cjs +0 -6
- package/browser/cjs/DfrXQdrMzJWgyX4S.cjs +0 -6
- package/browser/cjs/DkOOlgNR-NXixaQX.cjs +0 -6
- package/browser/cjs/DmZIqrySryidgnRl.cjs +0 -6
- package/browser/cjs/DscIvkrfig_mffwY.cjs +0 -6
- package/browser/cjs/Dz8coNXp80TEXSyH.cjs +0 -6
- package/browser/cjs/IaiQe7d-LGA2611T.cjs +0 -1501
- package/browser/cjs/KNduwqq-J9uyLgsC.cjs +0 -6
- package/browser/cjs/LTnky81SCDfvEiub.cjs +0 -6
- package/browser/cjs/_EleKbbhQWfp8mqy.cjs +0 -124
- package/browser/cjs/sNpLX232YHzUxZOr.cjs +0 -12
- package/browser/esm/26ozZ2-vj7N8rpiB.mjs +0 -10
- package/browser/esm/B1BxGO2lBpSxSvw1.mjs +0 -10
- package/browser/esm/B7mPpY5DOxEGMbPk.mjs +0 -3934
- package/browser/esm/B8le6PM3dfy1qSHY.mjs +0 -10
- package/browser/esm/BCIwvhxFiDXGEwES.mjs +0 -10
- package/browser/esm/BFtFjxXyhdNH6yAV.mjs +0 -10
- package/browser/esm/BMsToxhQy4cSxlz-.mjs +0 -10
- package/browser/esm/BSv1o1DpwfEAWYSy.mjs +0 -51
- package/browser/esm/Be1UWt41K_Sp7nbQ.mjs +0 -10
- package/browser/esm/Bqmme9ilyvrHA-e_.mjs +0 -1575
- package/browser/esm/BvPUue2e8_ByeP7c.mjs +0 -10
- package/browser/esm/C9uQaKOaImv5o9c3.mjs +0 -10
- package/browser/esm/CBFDGZ_aqeLV3IIt.mjs +0 -10
- package/browser/esm/CNdA2-u6_d2tqz5J.mjs +0 -10
- package/browser/esm/CV-D1e318ShLCDie.mjs +0 -10
- package/browser/esm/CXKMDzYsDLhyK3SV.mjs +0 -10
- package/browser/esm/CaFxIFV4dLSI4zDW.mjs +0 -472
- package/browser/esm/CpD505ep5Z3oX287.mjs +0 -1466
- package/browser/esm/Cz9BPykuRu_5ay57.mjs +0 -425
- package/browser/esm/D2yV2gASA--bjve5.mjs +0 -10
- package/browser/esm/D6mAWXETxAqf416J.mjs +0 -10
- package/browser/esm/DPw7ErLvgq_9jYHE.mjs +0 -24
- package/browser/esm/DRVlO95U75R3eY27.mjs +0 -10
- package/browser/esm/DWoRF-U96vWLWF5Q.mjs +0 -5582
- package/browser/esm/DX8AE4p9fLlmEdTJ.mjs +0 -10
- package/browser/esm/DYvwKUBbWi2NWsyf.mjs +0 -10
- package/browser/esm/Dxl5GgDFgUsBkg-b.mjs +0 -10
- package/browser/esm/Qq233O5gbpRAP6un.mjs +0 -29
- package/browser/esm/UC5M3Z5HmOzupzqQ.mjs +0 -21
- package/browser/esm/VchKQpT2_B7Ca113.mjs +0 -820
- package/browser/esm/_5B66awyRsaDd_Hv.mjs +0 -10
- package/browser/esm/cOX4zBcY0-H_8kAj.mjs +0 -43654
- package/browser/esm/iIqrOkF_gUf_5m0C.mjs +0 -10
- package/browser/esm/kjRF87FSQwIzB1KD.mjs +0 -12
- package/browser/esm/ob7IFBy7DLC-iS-g.mjs +0 -10
- package/node/esm/8OtdJtJIKyA4POih.mjs +0 -14
- package/node/esm/B1BxGO2lBpSxSvw1.mjs +0 -10
- package/node/esm/B7bDAwgd6OSbVJh_.mjs +0 -10
- package/node/esm/B8le6PM3dfy1qSHY.mjs +0 -10
- package/node/esm/BCIwvhxFiDXGEwES.mjs +0 -10
- package/node/esm/BFtFjxXyhdNH6yAV.mjs +0 -10
- package/node/esm/BK9EmmFbROJ0rZqB.mjs +0 -4002
- package/node/esm/BMsToxhQy4cSxlz-.mjs +0 -10
- package/node/esm/Be1UWt41K_Sp7nbQ.mjs +0 -10
- package/node/esm/BeyDW_Yk6iu1JB4v.mjs +0 -453
- package/node/esm/BpdsRwlUAUyUdrlR.mjs +0 -813
- package/node/esm/BwnMNGZmp-FGW86J.mjs +0 -13
- package/node/esm/C9uQaKOaImv5o9c3.mjs +0 -10
- package/node/esm/CBFDGZ_aqeLV3IIt.mjs +0 -10
- package/node/esm/CJiY4Wz9eiX2B9nv.mjs +0 -10
- package/node/esm/CM9lgZdHfhhL2cv-.mjs +0 -10
- package/node/esm/CNdA2-u6_d2tqz5J.mjs +0 -10
- package/node/esm/CV-D1e318ShLCDie.mjs +0 -10
- package/node/esm/CV4Y5e_kU8o_sXoX.mjs +0 -10
- package/node/esm/CXKMDzYsDLhyK3SV.mjs +0 -10
- package/node/esm/CYsd2qqC_WxLTKE1.mjs +0 -555
- package/node/esm/D5uKz7a9v8FUVx0k.mjs +0 -80
- package/node/esm/D61UbOtLixUCDQce.mjs +0 -307
- package/node/esm/DRVlO95U75R3eY27.mjs +0 -10
- package/node/esm/DYvwKUBbWi2NWsyf.mjs +0 -10
- package/node/esm/DdDxTsQsLWNqX7ee.mjs +0 -16
- package/node/esm/Do5a0pvRN3hayzdD.mjs +0 -10
- package/node/esm/_5B66awyRsaDd_Hv.mjs +0 -10
- package/node/esm/_Wieg3dqzHo6_Crg.mjs +0 -29
- package/node/esm/iIqrOkF_gUf_5m0C.mjs +0 -10
- package/node/esm/kTEpzGO5dC1M9dbV.mjs +0 -24
- package/node/esm/ob7IFBy7DLC-iS-g.mjs +0 -10
- package/node/esm/pTSFPHHLPzmAcEKW.mjs +0 -10
- package/node/esm/rF9x01iQv2EpxorW.mjs +0 -5642
|
@@ -1,425 +0,0 @@
|
|
|
1
|
-
import { h as yt } from "./cOX4zBcY0-H_8kAj.mjs";
|
|
2
|
-
/**
|
|
3
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
|
|
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
|
-
var ct, pt = { exports: {} }, gt = (ct || (ct = 1, pt.exports = function Y() {
|
|
9
|
-
var Q, k = typeof self < "u" ? self : typeof window < "u" ? window : k !== void 0 ? k : {}, P = !k.document && !!k.postMessage, B = k.IS_PAPA_WORKER || !1, J = {}, mt = 0, a = {};
|
|
10
|
-
function K(t) {
|
|
11
|
-
this._handle = null, this._finished = !1, this._completed = !1, this._halted = !1, this._input = null, this._baseIndex = 0, this._partialLine = "", this._rowCount = 0, this._start = 0, this._nextChunk = null, this.isFirstChunk = !0, this._completeResults = { data: [], errors: [], meta: {} }, function(e) {
|
|
12
|
-
var i = at(e);
|
|
13
|
-
i.chunkSize = parseInt(i.chunkSize), e.step || e.chunk || (i.chunkSize = null), this._handle = new ht(i), (this._handle.streamer = this)._config = i;
|
|
14
|
-
}.call(this, t), this.parseChunk = function(e, i) {
|
|
15
|
-
var n = parseInt(this._config.skipFirstNLines) || 0;
|
|
16
|
-
if (this.isFirstChunk && 0 < n) {
|
|
17
|
-
let l = this._config.newline;
|
|
18
|
-
l || (r = this._config.quoteChar || '"', l = this._handle.guessLineEndings(e, r)), e = [...e.split(l).slice(n)].join(l);
|
|
19
|
-
}
|
|
20
|
-
this.isFirstChunk && _(this._config.beforeFirstChunk) && (r = this._config.beforeFirstChunk(e)) !== void 0 && (e = r), this.isFirstChunk = !1, this._halted = !1, n = this._partialLine + e;
|
|
21
|
-
var r = (this._partialLine = "", this._handle.parse(n, this._baseIndex, !this._finished));
|
|
22
|
-
if (!this._handle.paused() && !this._handle.aborted()) {
|
|
23
|
-
if (e = r.meta.cursor, this._finished || (this._partialLine = n.substring(e - this._baseIndex), this._baseIndex = e), r && r.data && (this._rowCount += r.data.length), n = this._finished || this._config.preview && this._rowCount >= this._config.preview, B) k.postMessage({ results: r, workerId: a.WORKER_ID, finished: n });
|
|
24
|
-
else if (_(this._config.chunk) && !i) {
|
|
25
|
-
if (this._config.chunk(r, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = !0);
|
|
26
|
-
this._completeResults = r = void 0;
|
|
27
|
-
}
|
|
28
|
-
return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(r.data), this._completeResults.errors = this._completeResults.errors.concat(r.errors), this._completeResults.meta = r.meta), this._completed || !n || !_(this._config.complete) || r && r.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = !0), n || r && r.meta.paused || this._nextChunk(), r;
|
|
29
|
-
}
|
|
30
|
-
this._halted = !0;
|
|
31
|
-
}, this._sendError = function(e) {
|
|
32
|
-
_(this._config.error) ? this._config.error(e) : B && this._config.error && k.postMessage({ workerId: a.WORKER_ID, error: e, finished: !1 });
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
function it(t) {
|
|
36
|
-
var e;
|
|
37
|
-
(t = t || {}).chunkSize || (t.chunkSize = a.RemoteChunkSize), K.call(this, t), this._nextChunk = P ? function() {
|
|
38
|
-
this._readChunk(), this._chunkLoaded();
|
|
39
|
-
} : function() {
|
|
40
|
-
this._readChunk();
|
|
41
|
-
}, this.stream = function(i) {
|
|
42
|
-
this._input = i, this._nextChunk();
|
|
43
|
-
}, this._readChunk = function() {
|
|
44
|
-
if (this._finished) this._chunkLoaded();
|
|
45
|
-
else {
|
|
46
|
-
if (e = new XMLHttpRequest(), this._config.withCredentials && (e.withCredentials = this._config.withCredentials), P || (e.onload = $(this._chunkLoaded, this), e.onerror = $(this._chunkError, this)), e.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !P), this._config.downloadRequestHeaders) {
|
|
47
|
-
var i, n = this._config.downloadRequestHeaders;
|
|
48
|
-
for (i in n) e.setRequestHeader(i, n[i]);
|
|
49
|
-
}
|
|
50
|
-
var r;
|
|
51
|
-
this._config.chunkSize && (r = this._start + this._config.chunkSize - 1, e.setRequestHeader("Range", "bytes=" + this._start + "-" + r));
|
|
52
|
-
try {
|
|
53
|
-
e.send(this._config.downloadRequestBody);
|
|
54
|
-
} catch (l) {
|
|
55
|
-
this._chunkError(l.message);
|
|
56
|
-
}
|
|
57
|
-
P && e.status === 0 && this._chunkError();
|
|
58
|
-
}
|
|
59
|
-
}, this._chunkLoaded = function() {
|
|
60
|
-
var i;
|
|
61
|
-
e.readyState === 4 && (e.status < 200 || 400 <= e.status ? this._chunkError() : (this._start += this._config.chunkSize || e.responseText.length, this._finished = !this._config.chunkSize || this._start >= ((i = (i = e).getResponseHeader("Content-Range")) !== null ? parseInt(i.substring(i.lastIndexOf("/") + 1)) : -1), this.parseChunk(e.responseText)));
|
|
62
|
-
}, this._chunkError = function(i) {
|
|
63
|
-
i = e.statusText || i, this._sendError(new Error(i));
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
function rt(t) {
|
|
67
|
-
(t = t || {}).chunkSize || (t.chunkSize = a.LocalChunkSize), K.call(this, t);
|
|
68
|
-
var e, i, n = typeof FileReader < "u";
|
|
69
|
-
this.stream = function(r) {
|
|
70
|
-
this._input = r, i = r.slice || r.webkitSlice || r.mozSlice, n ? ((e = new FileReader()).onload = $(this._chunkLoaded, this), e.onerror = $(this._chunkError, this)) : e = new FileReaderSync(), this._nextChunk();
|
|
71
|
-
}, this._nextChunk = function() {
|
|
72
|
-
this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
|
|
73
|
-
}, this._readChunk = function() {
|
|
74
|
-
var r = this._input, l = (this._config.chunkSize && (l = Math.min(this._start + this._config.chunkSize, this._input.size), r = i.call(r, this._start, l)), e.readAsText(r, this._config.encoding));
|
|
75
|
-
n || this._chunkLoaded({ target: { result: l } });
|
|
76
|
-
}, this._chunkLoaded = function(r) {
|
|
77
|
-
this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(r.target.result);
|
|
78
|
-
}, this._chunkError = function() {
|
|
79
|
-
this._sendError(e.error);
|
|
80
|
-
};
|
|
81
|
-
}
|
|
82
|
-
function X(t) {
|
|
83
|
-
var e;
|
|
84
|
-
K.call(this, t = t || {}), this.stream = function(i) {
|
|
85
|
-
return e = i, this._nextChunk();
|
|
86
|
-
}, this._nextChunk = function() {
|
|
87
|
-
var i, n;
|
|
88
|
-
if (!this._finished) return i = this._config.chunkSize, e = i ? (n = e.substring(0, i), e.substring(i)) : (n = e, ""), this._finished = !e, this.parseChunk(n);
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
function nt(t) {
|
|
92
|
-
K.call(this, t = t || {});
|
|
93
|
-
var e = [], i = !0, n = !1;
|
|
94
|
-
this.pause = function() {
|
|
95
|
-
K.prototype.pause.apply(this, arguments), this._input.pause();
|
|
96
|
-
}, this.resume = function() {
|
|
97
|
-
K.prototype.resume.apply(this, arguments), this._input.resume();
|
|
98
|
-
}, this.stream = function(r) {
|
|
99
|
-
this._input = r, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
|
|
100
|
-
}, this._checkIsFinished = function() {
|
|
101
|
-
n && e.length === 1 && (this._finished = !0);
|
|
102
|
-
}, this._nextChunk = function() {
|
|
103
|
-
this._checkIsFinished(), e.length ? this.parseChunk(e.shift()) : i = !0;
|
|
104
|
-
}, this._streamData = $(function(r) {
|
|
105
|
-
try {
|
|
106
|
-
e.push(typeof r == "string" ? r : r.toString(this._config.encoding)), i && (i = !1, this._checkIsFinished(), this.parseChunk(e.shift()));
|
|
107
|
-
} catch (l) {
|
|
108
|
-
this._streamError(l);
|
|
109
|
-
}
|
|
110
|
-
}, this), this._streamError = $(function(r) {
|
|
111
|
-
this._streamCleanUp(), this._sendError(r);
|
|
112
|
-
}, this), this._streamEnd = $(function() {
|
|
113
|
-
this._streamCleanUp(), n = !0, this._streamData("");
|
|
114
|
-
}, this), this._streamCleanUp = $(function() {
|
|
115
|
-
this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
|
|
116
|
-
}, this);
|
|
117
|
-
}
|
|
118
|
-
function ht(t) {
|
|
119
|
-
var e, i, n, r, l = Math.pow(2, 53), v = -l, z = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, w = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, m = this, T = 0, o = 0, I = !1, u = !1, p = [], s = { data: [], errors: [], meta: {} };
|
|
120
|
-
function C(h) {
|
|
121
|
-
return t.skipEmptyLines === "greedy" ? h.join("").trim() === "" : h.length === 1 && h[0].length === 0;
|
|
122
|
-
}
|
|
123
|
-
function R() {
|
|
124
|
-
if (s && n && (M("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + a.DefaultDelimiter + "'"), n = !1), t.skipEmptyLines && (s.data = s.data.filter(function(f) {
|
|
125
|
-
return !C(f);
|
|
126
|
-
})), L()) {
|
|
127
|
-
let f = function(O, A) {
|
|
128
|
-
_(t.transformHeader) && (O = t.transformHeader(O, A)), p.push(O);
|
|
129
|
-
};
|
|
130
|
-
if (s) if (Array.isArray(s.data[0])) {
|
|
131
|
-
for (var h = 0; L() && h < s.data.length; h++) s.data[h].forEach(f);
|
|
132
|
-
s.data.splice(0, 1);
|
|
133
|
-
} else s.data.forEach(f);
|
|
134
|
-
}
|
|
135
|
-
function c(f, O) {
|
|
136
|
-
for (var A = t.header ? {} : [], b = 0; b < f.length; b++) {
|
|
137
|
-
var y = b, g = f[b];
|
|
138
|
-
g = ((U, d) => {
|
|
139
|
-
return S = U, t.dynamicTypingFunction && t.dynamicTyping[S] === void 0 && (t.dynamicTyping[S] = t.dynamicTypingFunction(S)), (t.dynamicTyping[S] || t.dynamicTyping) === !0 ? d === "true" || d === "TRUE" || d !== "false" && d !== "FALSE" && (((j) => {
|
|
140
|
-
if (z.test(j) && (j = parseFloat(j), v < j && j < l)) return 1;
|
|
141
|
-
})(d) ? parseFloat(d) : w.test(d) ? new Date(d) : d === "" ? null : d) : d;
|
|
142
|
-
var S;
|
|
143
|
-
})(y = t.header ? b >= p.length ? "__parsed_extra" : p[b] : y, g = t.transform ? t.transform(g, y) : g), y === "__parsed_extra" ? (A[y] = A[y] || [], A[y].push(g)) : A[y] = g;
|
|
144
|
-
}
|
|
145
|
-
return t.header && (b > p.length ? M("FieldMismatch", "TooManyFields", "Too many fields: expected " + p.length + " fields but parsed " + b, o + O) : b < p.length && M("FieldMismatch", "TooFewFields", "Too few fields: expected " + p.length + " fields but parsed " + b, o + O)), A;
|
|
146
|
-
}
|
|
147
|
-
var E;
|
|
148
|
-
s && (t.header || t.dynamicTyping || t.transform) && (E = 1, !s.data.length || Array.isArray(s.data[0]) ? (s.data = s.data.map(c), E = s.data.length) : s.data = c(s.data, 0), t.header && s.meta && (s.meta.fields = p), o += E);
|
|
149
|
-
}
|
|
150
|
-
function L() {
|
|
151
|
-
return t.header && p.length === 0;
|
|
152
|
-
}
|
|
153
|
-
function M(h, c, E, f) {
|
|
154
|
-
h = { type: h, code: c, message: E }, f !== void 0 && (h.row = f), s.errors.push(h);
|
|
155
|
-
}
|
|
156
|
-
_(t.step) && (r = t.step, t.step = function(h) {
|
|
157
|
-
s = h, L() ? R() : (R(), s.data.length !== 0 && (T += h.data.length, t.preview && T > t.preview ? i.abort() : (s.data = s.data[0], r(s, m))));
|
|
158
|
-
}), this.parse = function(h, c, E) {
|
|
159
|
-
var f = t.quoteChar || '"';
|
|
160
|
-
return t.newline || (t.newline = this.guessLineEndings(h, f)), n = !1, t.delimiter ? _(t.delimiter) && (t.delimiter = t.delimiter(h), s.meta.delimiter = t.delimiter) : ((f = ((O, A, b, y, g) => {
|
|
161
|
-
var U, d, S, j;
|
|
162
|
-
g = g || [",", " ", "|", ";", a.RECORD_SEP, a.UNIT_SEP];
|
|
163
|
-
for (var Z = 0; Z < g.length; Z++) {
|
|
164
|
-
for (var W, tt = g[Z], F = 0, q = 0, x = 0, D = (S = void 0, new st({ comments: y, delimiter: tt, newline: A, preview: 10 }).parse(O)), H = 0; H < D.data.length; H++) b && C(D.data[H]) ? x++ : (q += W = D.data[H].length, S === void 0 ? S = W : 0 < W && (F += Math.abs(W - S), S = W));
|
|
165
|
-
0 < D.data.length && (q /= D.data.length - x), (d === void 0 || F <= d) && (j === void 0 || j < q) && 1.99 < q && (d = F, U = tt, j = q);
|
|
166
|
-
}
|
|
167
|
-
return { successful: !!(t.delimiter = U), bestDelimiter: U };
|
|
168
|
-
})(h, t.newline, t.skipEmptyLines, t.comments, t.delimitersToGuess)).successful ? t.delimiter = f.bestDelimiter : (n = !0, t.delimiter = a.DefaultDelimiter), s.meta.delimiter = t.delimiter), f = at(t), t.preview && t.header && f.preview++, e = h, i = new st(f), s = i.parse(e, c, E), R(), I ? { meta: { paused: !0 } } : s || { meta: { paused: !1 } };
|
|
169
|
-
}, this.paused = function() {
|
|
170
|
-
return I;
|
|
171
|
-
}, this.pause = function() {
|
|
172
|
-
I = !0, i.abort(), e = _(t.chunk) ? "" : e.substring(i.getCharIndex());
|
|
173
|
-
}, this.resume = function() {
|
|
174
|
-
m.streamer._halted ? (I = !1, m.streamer.parseChunk(e, !0)) : setTimeout(m.resume, 3);
|
|
175
|
-
}, this.aborted = function() {
|
|
176
|
-
return u;
|
|
177
|
-
}, this.abort = function() {
|
|
178
|
-
u = !0, i.abort(), s.meta.aborted = !0, _(t.complete) && t.complete(s), e = "";
|
|
179
|
-
}, this.guessLineEndings = function(h, c) {
|
|
180
|
-
h = h.substring(0, 1048576), c = new RegExp(V(c) + "([^]*?)" + V(c), "gm");
|
|
181
|
-
var E = (h = h.replace(c, "")).split("\r");
|
|
182
|
-
if (h = 1 < (c = h.split(`
|
|
183
|
-
`)).length && c[0].length < E[0].length, E.length === 1 || h) return `
|
|
184
|
-
`;
|
|
185
|
-
for (var f = 0, O = 0; O < E.length; O++) E[O][0] === `
|
|
186
|
-
` && f++;
|
|
187
|
-
return f >= E.length / 2 ? `\r
|
|
188
|
-
` : "\r";
|
|
189
|
-
};
|
|
190
|
-
}
|
|
191
|
-
function V(t) {
|
|
192
|
-
return t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
193
|
-
}
|
|
194
|
-
function st(t) {
|
|
195
|
-
var e = (t = t || {}).delimiter, i = t.newline, n = t.comments, r = t.step, l = t.preview, v = t.fastMode, z = null, w = !1, m = t.quoteChar == null ? '"' : t.quoteChar, T = m;
|
|
196
|
-
if (t.escapeChar !== void 0 && (T = t.escapeChar), (typeof e != "string" || -1 < a.BAD_DELIMITERS.indexOf(e)) && (e = ","), n === e) throw new Error("Comment character same as delimiter");
|
|
197
|
-
n === !0 ? n = "#" : (typeof n != "string" || -1 < a.BAD_DELIMITERS.indexOf(n)) && (n = !1), i !== `
|
|
198
|
-
` && i !== "\r" && i !== `\r
|
|
199
|
-
` && (i = `
|
|
200
|
-
`);
|
|
201
|
-
var o = 0, I = !1;
|
|
202
|
-
this.parse = function(u, p, s) {
|
|
203
|
-
if (typeof u != "string") throw new Error("Input must be a string");
|
|
204
|
-
var C = u.length, R = e.length, L = i.length, M = n.length, h = _(r), c = [], E = [], f = [], O = o = 0;
|
|
205
|
-
if (!u) return F();
|
|
206
|
-
if (v || v !== !1 && u.indexOf(m) === -1) {
|
|
207
|
-
for (var A = u.split(i), b = 0; b < A.length; b++) {
|
|
208
|
-
if (f = A[b], o += f.length, b !== A.length - 1) o += i.length;
|
|
209
|
-
else if (s) return F();
|
|
210
|
-
if (!n || f.substring(0, M) !== n) {
|
|
211
|
-
if (h) {
|
|
212
|
-
if (c = [], j(f.split(e)), q(), I) return F();
|
|
213
|
-
} else j(f.split(e));
|
|
214
|
-
if (l && l <= b) return c = c.slice(0, l), F(!0);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
return F();
|
|
218
|
-
}
|
|
219
|
-
for (var y = u.indexOf(e, o), g = u.indexOf(i, o), U = new RegExp(V(T) + V(m), "g"), d = u.indexOf(m, o); ; ) if (u[o] === m) for (d = o, o++; ; ) {
|
|
220
|
-
if ((d = u.indexOf(m, d + 1)) === -1) return s || E.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: c.length, index: o }), W();
|
|
221
|
-
if (d === C - 1) return W(u.substring(o, d).replace(U, m));
|
|
222
|
-
if (m === T && u[d + 1] === T) d++;
|
|
223
|
-
else if (m === T || d === 0 || u[d - 1] !== T) {
|
|
224
|
-
y !== -1 && y < d + 1 && (y = u.indexOf(e, d + 1));
|
|
225
|
-
var S = Z((g = g !== -1 && g < d + 1 ? u.indexOf(i, d + 1) : g) === -1 ? y : Math.min(y, g));
|
|
226
|
-
if (u.substr(d + 1 + S, R) === e) {
|
|
227
|
-
f.push(u.substring(o, d).replace(U, m)), u[o = d + 1 + S + R] !== m && (d = u.indexOf(m, o)), y = u.indexOf(e, o), g = u.indexOf(i, o);
|
|
228
|
-
break;
|
|
229
|
-
}
|
|
230
|
-
if (S = Z(g), u.substring(d + 1 + S, d + 1 + S + L) === i) {
|
|
231
|
-
if (f.push(u.substring(o, d).replace(U, m)), tt(d + 1 + S + L), y = u.indexOf(e, o), d = u.indexOf(m, o), h && (q(), I)) return F();
|
|
232
|
-
if (l && c.length >= l) return F(!0);
|
|
233
|
-
break;
|
|
234
|
-
}
|
|
235
|
-
E.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: c.length, index: o }), d++;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
else if (n && f.length === 0 && u.substring(o, o + M) === n) {
|
|
239
|
-
if (g === -1) return F();
|
|
240
|
-
o = g + L, g = u.indexOf(i, o), y = u.indexOf(e, o);
|
|
241
|
-
} else if (y !== -1 && (y < g || g === -1)) f.push(u.substring(o, y)), o = y + R, y = u.indexOf(e, o);
|
|
242
|
-
else {
|
|
243
|
-
if (g === -1) break;
|
|
244
|
-
if (f.push(u.substring(o, g)), tt(g + L), h && (q(), I)) return F();
|
|
245
|
-
if (l && c.length >= l) return F(!0);
|
|
246
|
-
}
|
|
247
|
-
return W();
|
|
248
|
-
function j(x) {
|
|
249
|
-
c.push(x), O = o;
|
|
250
|
-
}
|
|
251
|
-
function Z(x) {
|
|
252
|
-
return x !== -1 && (x = u.substring(d + 1, x)) && x.trim() === "" ? x.length : 0;
|
|
253
|
-
}
|
|
254
|
-
function W(x) {
|
|
255
|
-
return s || (x === void 0 && (x = u.substring(o)), f.push(x), o = C, j(f), h && q()), F();
|
|
256
|
-
}
|
|
257
|
-
function tt(x) {
|
|
258
|
-
o = x, j(f), f = [], g = u.indexOf(i, o);
|
|
259
|
-
}
|
|
260
|
-
function F(x) {
|
|
261
|
-
if (t.header && !p && c.length && !w) {
|
|
262
|
-
var D = c[0], H = /* @__PURE__ */ Object.create(null), ot = new Set(D);
|
|
263
|
-
let ft = !1;
|
|
264
|
-
for (let G = 0; G < D.length; G++) {
|
|
265
|
-
let N = D[G];
|
|
266
|
-
if (H[N = _(t.transformHeader) ? t.transformHeader(N, G) : N]) {
|
|
267
|
-
let et, lt = H[N];
|
|
268
|
-
for (; et = N + "_" + lt, lt++, ot.has(et); ) ;
|
|
269
|
-
ot.add(et), D[G] = et, H[N]++, ft = !0, (z = z === null ? {} : z)[et] = N;
|
|
270
|
-
} else H[N] = 1, D[G] = N;
|
|
271
|
-
ot.add(N);
|
|
272
|
-
}
|
|
273
|
-
ft && console.warn("Duplicate headers found and renamed."), w = !0;
|
|
274
|
-
}
|
|
275
|
-
return { data: c, errors: E, meta: { delimiter: e, linebreak: i, aborted: I, truncated: !!x, cursor: O + (p || 0), renamedHeaders: z } };
|
|
276
|
-
}
|
|
277
|
-
function q() {
|
|
278
|
-
r(F()), c = [], E = [];
|
|
279
|
-
}
|
|
280
|
-
}, this.abort = function() {
|
|
281
|
-
I = !0;
|
|
282
|
-
}, this.getCharIndex = function() {
|
|
283
|
-
return o;
|
|
284
|
-
};
|
|
285
|
-
}
|
|
286
|
-
function _t(t) {
|
|
287
|
-
var e = t.data, i = J[e.workerId], n = !1;
|
|
288
|
-
if (e.error) i.userError(e.error, e.file);
|
|
289
|
-
else if (e.results && e.results.data) {
|
|
290
|
-
var r = { abort: function() {
|
|
291
|
-
n = !0, ut(e.workerId, { data: [], errors: [], meta: { aborted: !0 } });
|
|
292
|
-
}, pause: dt, resume: dt };
|
|
293
|
-
if (_(i.userStep)) {
|
|
294
|
-
for (var l = 0; l < e.results.data.length && (i.userStep({ data: e.results.data[l], errors: e.results.errors, meta: e.results.meta }, r), !n); l++) ;
|
|
295
|
-
delete e.results;
|
|
296
|
-
} else _(i.userChunk) && (i.userChunk(e.results, r, e.file), delete e.results);
|
|
297
|
-
}
|
|
298
|
-
e.finished && !n && ut(e.workerId, e.results);
|
|
299
|
-
}
|
|
300
|
-
function ut(t, e) {
|
|
301
|
-
var i = J[t];
|
|
302
|
-
_(i.userComplete) && i.userComplete(e), i.terminate(), delete J[t];
|
|
303
|
-
}
|
|
304
|
-
function dt() {
|
|
305
|
-
throw new Error("Not implemented.");
|
|
306
|
-
}
|
|
307
|
-
function at(t) {
|
|
308
|
-
if (typeof t != "object" || t === null) return t;
|
|
309
|
-
var e, i = Array.isArray(t) ? [] : {};
|
|
310
|
-
for (e in t) i[e] = at(t[e]);
|
|
311
|
-
return i;
|
|
312
|
-
}
|
|
313
|
-
function $(t, e) {
|
|
314
|
-
return function() {
|
|
315
|
-
t.apply(e, arguments);
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
function _(t) {
|
|
319
|
-
return typeof t == "function";
|
|
320
|
-
}
|
|
321
|
-
return a.parse = function(t, e) {
|
|
322
|
-
var i, n = (e = e || {}).dynamicTyping || !1;
|
|
323
|
-
if (_(n) && (e.dynamicTypingFunction = n, n = {}), e.dynamicTyping = n, e.transform = !!_(e.transform) && e.transform, !e.worker || !a.WORKERS_SUPPORTED) return n = null, a.NODE_STREAM_INPUT, typeof t == "string" ? (t = (i = t).charCodeAt(0) !== 65279 ? i : i.slice(1), n = new (e.download ? it : X)(e)) : t.readable === !0 && _(t.read) && _(t.on) ? n = new nt(e) : (k.File && t instanceof File || t instanceof Object) && (n = new rt(e)), n.stream(t);
|
|
324
|
-
(n = (() => {
|
|
325
|
-
var r, l, v;
|
|
326
|
-
return !!a.WORKERS_SUPPORTED && (l = k.URL || k.webkitURL || null, v = Y.toString(), r = a.BLOB_URL || (a.BLOB_URL = l.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ", "(", v, ")();"], { type: "text/javascript" }))), (r = new k.Worker(r)).onmessage = _t, r.id = mt++, J[r.id] = r);
|
|
327
|
-
})()).userStep = e.step, n.userChunk = e.chunk, n.userComplete = e.complete, n.userError = e.error, e.step = _(e.step), e.chunk = _(e.chunk), e.complete = _(e.complete), e.error = _(e.error), delete e.worker, n.postMessage({ input: t, config: e, workerId: n.id });
|
|
328
|
-
}, a.unparse = function(t, e) {
|
|
329
|
-
var i = !1, n = !0, r = ",", l = `\r
|
|
330
|
-
`, v = '"', z = v + v, w = !1, m = null, T = !1, o = ((() => {
|
|
331
|
-
if (typeof e == "object") {
|
|
332
|
-
if (typeof e.delimiter != "string" || a.BAD_DELIMITERS.filter(function(p) {
|
|
333
|
-
return e.delimiter.indexOf(p) !== -1;
|
|
334
|
-
}).length || (r = e.delimiter), typeof e.quotes != "boolean" && typeof e.quotes != "function" && !Array.isArray(e.quotes) || (i = e.quotes), typeof e.skipEmptyLines != "boolean" && typeof e.skipEmptyLines != "string" || (w = e.skipEmptyLines), typeof e.newline == "string" && (l = e.newline), typeof e.quoteChar == "string" && (v = e.quoteChar), typeof e.header == "boolean" && (n = e.header), Array.isArray(e.columns)) {
|
|
335
|
-
if (e.columns.length === 0) throw new Error("Option columns is empty");
|
|
336
|
-
m = e.columns;
|
|
337
|
-
}
|
|
338
|
-
e.escapeChar !== void 0 && (z = e.escapeChar + v), e.escapeFormulae instanceof RegExp ? T = e.escapeFormulae : typeof e.escapeFormulae == "boolean" && e.escapeFormulae && (T = /^[=+\-@\t\r].*$/);
|
|
339
|
-
}
|
|
340
|
-
})(), new RegExp(V(v), "g"));
|
|
341
|
-
if (typeof t == "string" && (t = JSON.parse(t)), Array.isArray(t)) {
|
|
342
|
-
if (!t.length || Array.isArray(t[0])) return I(null, t, w);
|
|
343
|
-
if (typeof t[0] == "object") return I(m || Object.keys(t[0]), t, w);
|
|
344
|
-
} else if (typeof t == "object") return typeof t.data == "string" && (t.data = JSON.parse(t.data)), Array.isArray(t.data) && (t.fields || (t.fields = t.meta && t.meta.fields || m), t.fields || (t.fields = Array.isArray(t.data[0]) ? t.fields : typeof t.data[0] == "object" ? Object.keys(t.data[0]) : []), Array.isArray(t.data[0]) || typeof t.data[0] == "object" || (t.data = [t.data])), I(t.fields || [], t.data || [], w);
|
|
345
|
-
throw new Error("Unable to serialize unrecognized input");
|
|
346
|
-
function I(p, s, C) {
|
|
347
|
-
var R = "", L = (typeof p == "string" && (p = JSON.parse(p)), typeof s == "string" && (s = JSON.parse(s)), Array.isArray(p) && 0 < p.length), M = !Array.isArray(s[0]);
|
|
348
|
-
if (L && n) {
|
|
349
|
-
for (var h = 0; h < p.length; h++) 0 < h && (R += r), R += u(p[h], h);
|
|
350
|
-
0 < s.length && (R += l);
|
|
351
|
-
}
|
|
352
|
-
for (var c = 0; c < s.length; c++) {
|
|
353
|
-
var E = (L ? p : s[c]).length, f = !1, O = L ? Object.keys(s[c]).length === 0 : s[c].length === 0;
|
|
354
|
-
if (C && !L && (f = C === "greedy" ? s[c].join("").trim() === "" : s[c].length === 1 && s[c][0].length === 0), C === "greedy" && L) {
|
|
355
|
-
for (var A = [], b = 0; b < E; b++) {
|
|
356
|
-
var y = M ? p[b] : b;
|
|
357
|
-
A.push(s[c][y]);
|
|
358
|
-
}
|
|
359
|
-
f = A.join("").trim() === "";
|
|
360
|
-
}
|
|
361
|
-
if (!f) {
|
|
362
|
-
for (var g = 0; g < E; g++) {
|
|
363
|
-
0 < g && !O && (R += r);
|
|
364
|
-
var U = L && M ? p[g] : g;
|
|
365
|
-
R += u(s[c][U], g);
|
|
366
|
-
}
|
|
367
|
-
c < s.length - 1 && (!C || 0 < E && !O) && (R += l);
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
return R;
|
|
371
|
-
}
|
|
372
|
-
function u(p, s) {
|
|
373
|
-
var C, R;
|
|
374
|
-
return p == null ? "" : p.constructor === Date ? JSON.stringify(p).slice(1, 25) : (R = !1, T && typeof p == "string" && T.test(p) && (p = "'" + p, R = !0), C = p.toString().replace(o, z), (R = R || i === !0 || typeof i == "function" && i(p, s) || Array.isArray(i) && i[s] || ((L, M) => {
|
|
375
|
-
for (var h = 0; h < M.length; h++) if (-1 < L.indexOf(M[h])) return !0;
|
|
376
|
-
return !1;
|
|
377
|
-
})(C, a.BAD_DELIMITERS) || -1 < C.indexOf(r) || C.charAt(0) === " " || C.charAt(C.length - 1) === " ") ? v + C + v : C);
|
|
378
|
-
}
|
|
379
|
-
}, a.RECORD_SEP = "", a.UNIT_SEP = "", a.BYTE_ORDER_MARK = "\uFEFF", a.BAD_DELIMITERS = ["\r", `
|
|
380
|
-
`, '"', a.BYTE_ORDER_MARK], a.WORKERS_SUPPORTED = !P && !!k.Worker, a.NODE_STREAM_INPUT = 1, a.LocalChunkSize = 10485760, a.RemoteChunkSize = 5242880, a.DefaultDelimiter = ",", a.Parser = st, a.ParserHandle = ht, a.NetworkStreamer = it, a.FileStreamer = rt, a.StringStreamer = X, a.ReadableStreamStreamer = nt, k.jQuery && ((Q = k.jQuery).fn.parse = function(t) {
|
|
381
|
-
var e = t.config || {}, i = [];
|
|
382
|
-
return this.each(function(l) {
|
|
383
|
-
if (Q(this).prop("tagName").toUpperCase() !== "INPUT" || Q(this).attr("type").toLowerCase() !== "file" || !k.FileReader || !this.files || this.files.length === 0) return !0;
|
|
384
|
-
for (var v = 0; v < this.files.length; v++) i.push({ file: this.files[v], inputElem: this, instanceConfig: Q.extend({}, e) });
|
|
385
|
-
}), n(), this;
|
|
386
|
-
function n() {
|
|
387
|
-
if (i.length === 0) _(t.complete) && t.complete();
|
|
388
|
-
else {
|
|
389
|
-
var l, v, z, w = i[0];
|
|
390
|
-
if (_(t.before)) {
|
|
391
|
-
var m = t.before(w.file, w.inputElem);
|
|
392
|
-
if (typeof m == "object") {
|
|
393
|
-
if (m.action === "abort") return l = w.file, v = w.inputElem, z = m.reason, void (_(t.error) && t.error({ name: "AbortError" }, l, v, z));
|
|
394
|
-
if (m.action === "skip") return void r();
|
|
395
|
-
typeof m.config == "object" && (w.instanceConfig = Q.extend(w.instanceConfig, m.config));
|
|
396
|
-
} else if (m === "skip") return void r();
|
|
397
|
-
}
|
|
398
|
-
var T = w.instanceConfig.complete;
|
|
399
|
-
w.instanceConfig.complete = function(o) {
|
|
400
|
-
_(T) && T(o, w.file, w.inputElem), r();
|
|
401
|
-
}, a.parse(w.file, w.instanceConfig);
|
|
402
|
-
}
|
|
403
|
-
}
|
|
404
|
-
function r() {
|
|
405
|
-
i.splice(0, 1), n();
|
|
406
|
-
}
|
|
407
|
-
}), B && (k.onmessage = function(t) {
|
|
408
|
-
t = t.data, a.WORKER_ID === void 0 && t && (a.WORKER_ID = t.workerId), typeof t.input == "string" ? k.postMessage({ workerId: a.WORKER_ID, results: a.parse(t.input, t.config), finished: !0 }) : (k.File && t.input instanceof File || t.input instanceof Object) && (t = a.parse(t.input, t.config)) && k.postMessage({ workerId: a.WORKER_ID, results: t, finished: !0 });
|
|
409
|
-
}), (it.prototype = Object.create(K.prototype)).constructor = it, (rt.prototype = Object.create(K.prototype)).constructor = rt, (X.prototype = Object.create(X.prototype)).constructor = X, (nt.prototype = Object.create(K.prototype)).constructor = nt, a;
|
|
410
|
-
}()), pt.exports);
|
|
411
|
-
const bt = function(Y, Q) {
|
|
412
|
-
for (var k = 0; k < Q.length; k++) {
|
|
413
|
-
const P = Q[k];
|
|
414
|
-
if (typeof P != "string" && !Array.isArray(P)) {
|
|
415
|
-
for (const B in P) if (B !== "default" && !(B in Y)) {
|
|
416
|
-
const J = Object.getOwnPropertyDescriptor(P, B);
|
|
417
|
-
J && Object.defineProperty(Y, B, J.get ? J : { enumerable: !0, get: () => P[B] });
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
return Object.freeze(Object.defineProperty(Y, Symbol.toStringTag, { value: "Module" }));
|
|
422
|
-
}({ __proto__: null, default: yt(gt) }, [gt]);
|
|
423
|
-
export {
|
|
424
|
-
bt as p
|
|
425
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
|
|
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
|
-
const e = { DATE: { s: "Returns the number that represents the date in Microsoft Excel date-time code", p: { year: { d: "is a number from 1900 or 1904 (depending on the workbook's date system) to 9999" }, month: { d: "is a number from 1 to 12 representing the month of the year" }, day: { d: "is a number from 1 to 31 representing the day of the month" } } }, DATEDIF: { s: "Returns the number of days between two dates", p: { startDate: { d: "is a serial date number that represents the start date" }, endDate: { d: "is a serial date number that represents the end date" }, unit: { d: "is a string that specifies the unit of time to use" } }, h: "Legacy" }, DATESTRING: { s: "Returns NA.", p: { number: { d: "is a number that is ignored" } }, h: "Legacy" }, DATEVALUE: { s: "Converts a date in the form of text to a number that represents the date in Microsoft Excel date-time code", p: { dateText: { d: "is text that represents a date in a Microsoft Excel date format, between 1/1/1900 or 1/1/1904 (depending on the workbook's date system) and 12/31/9999" } } }, DAY: { s: "Returns the day of the month, a number from 1 to 31.", p: { serialOrString: { d: "is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM" } } }, DAYS: { s: "Returns the number of days between the two dates.", p: { endDate: { d: "start_date and end_date are the two dates between which you want to know the number of days" }, startDate: { d: "start_date and end_date are the two dates between which you want to know the number of days" } } }, DAYS360: { s: "Returns the number of days between two dates based on a 360-day year (twelve 30-day months)", p: { startDate: { d: "start_date and end_date are the two dates between which you want to know the number of days" }, endDate: { d: "start_date and end_date are the two dates between which you want to know the number of days" }, method: { d: "is a logical value specifying the calculation method: U.S. (NASD) = FALSE; European = TRUE.", v: !1 } } }, EDATE: { s: "Returns the serial number of the date that is the indicated number of months before or after the start date", p: { startDate: { d: "is a serial date number that represents the start date" }, months: { d: "is the number of months before or after start_date" } } }, EOMONTH: { s: "Returns the serial number of the last day of the month before or after a specified number of months", p: { startDate: { d: "is a serial date number that represents the start date" }, months: { d: "is the number of months before or after the start_date" } } }, HOUR: { s: "Returns the hour as a number from 0 (12:00 A.M.) to 23 (11:00 P.M.).", p: { serialOrString: { d: "is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM" } } }, ISOWEEKNUM: { s: "Returns the ISO week number in the year for a given date", p: { serialOrString: { d: "is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM" } } }, MINUTE: { s: "Returns the minute, a number from 0 to 59.", p: { serialOrString: { d: "is a number in the date-time code used by Excel or text in time format, such as 16:48:00 or 4:48:00 PM" } } }, MONTH: { s: "Returns the month, a number from 1 (January) to 12 (December).", p: { serialOrString: { d: "is a number in the date-time code used by Excel" } } }, NETWORKDAYS: { s: "Returns the number of whole workdays between two dates", p: { startDate: { d: "is a serial date number that represents the start date" }, endDate: { d: "is a serial date number that represents the end date" }, holidays: { d: "is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays", v: null } } }, "NETWORKDAYS.INTL": { s: "Returns the number of whole workdays between two dates with custom weekend parameters", p: { startDate: { d: "is a serial date number that represents the start date" }, endDate: { d: "is a serial date number that represents the end date" }, weekend: { d: "is a number or string specifying when weekends occur", v: 1 }, holidays: { d: "is an optional set of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays", v: null } } }, NOW: { s: "Returns the current date and time formatted as a date and time.", p: {} }, SECOND: { s: "Returns the second, a number from 0 to 59.", p: { serialOrString: { d: "is a number in the date-time code used by Excel or text in time format, such as 16:48:23 or 4:48:47 PM" } } }, TIME: { s: "Converts hours, minutes, and seconds given as numbers to an Excel serial number, formatted with a time format", p: { hour: { d: "is a number from 0 to 23 representing the hour" }, minute: { d: "is a number from 0 to 59 representing the minute" }, second: { d: "is a number from 0 to 59 representing the second" } } }, TIMEVALUE: { s: "Converts a text time to an Excel serial number for a time, a number from 0 (12:00:00 AM) to 0.999988426 (11:59:59 PM). Format the number with a time format after entering the formula", p: { timeText: { d: "is a text string that gives a time in any one of the Excel time formats (date information in the string is ignored)" } } }, TODAY: { s: "Returns the current date formatted as a date.", p: {} }, WEEKDAY: { s: "Returns a number from 1 to 7 identifying the day of the week of a date.", p: { serialOrString: { d: "is a number that represents a date" }, returnType: { d: "is a number: for Sunday=1 through Saturday=7, use 1; for Monday=1 through Sunday=7, use 2; for Monday=0 through Sunday=6, use 3", v: 1 } } }, WEEKNUM: { s: "Returns the week number in the year", p: { serialOrString: { d: "is the date-time code used by Excel for date and time calculation" }, returnType: { d: "is a number (1 or 2) that determines the type of the return value", v: 1 } } }, WORKDAY: { s: "Returns the serial number of the date before or after a specified number of workdays", p: { startDate: { d: "is a serial date number that represents the start date" }, days: { d: "is the number of nonweekend and non-holiday days before or after start_date" }, holidays: { d: "is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays", v: null } } }, "WORKDAY.INTL": { s: "Returns the serial number of the date before or after a specified number of workdays with custom weekend parameters", p: { startDate: { d: "is a serial date number that represents the start date" }, days: { d: "is the number of nonweekend and non-holiday days before or after start_date" }, weekend: { d: "is a number or string specifying when weekends occur", v: 1 }, holidays: { d: "is an optional array of one or more serial date numbers to exclude from the working calendar, such as state and federal holidays and floating holidays", v: null } } }, YEAR: { s: "Returns the year of a date, an integer in the range 1900 - 9999.", p: { serialOrString: { d: "is a number in the date-time code used by Excel" } } }, YEARFRAC: { s: "Returns the year fraction representing the number of whole days between start_date and end_date", p: { startDate: { d: "is a serial date number that represents the start date" }, endDate: { d: "is a serial date number that represents the end date" }, basis: { d: "is the type of day count basis to use", v: 0 } } } };
|
|
8
|
-
export {
|
|
9
|
-
e as default
|
|
10
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
|
|
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
|
-
const e = { ACCRINT: { p: { issue: { d: "is the security's issue date, expressed as a serial date number" }, firstInterest: { d: "is the security's first interest date, expressed as a serial date number" }, settlement: { d: "is the security's settlement date, expressed as a serial date number" }, rate: { d: "is the security's annual coupon rate" }, par: { d: "is the security's par value" }, frequency: { d: "is the number of coupon payments per year" }, basis: { d: "is the type of day count basis to use", v: 0 }, calcMethod: { d: "is a logical value: to accrued interest from issue date = TRUE; to calculate from last coupon payment date = FALSE", v: !0 } } }, ACCRINTM: { s: "Returns the accrued interest for a security that pays interest at maturity", p: { issue: { d: "is the security's issue date, expressed as a serial date number" }, settlement: { d: "is the security's maturity date, expressed as a serial date number" }, rate: { d: "is the security's annual coupon rate" }, par: { d: "is the security's par value" }, basis: { d: "is the type of day count basis to use", v: 0 } }, h: "Unimplemented" }, AMORLINC: { s: "Returns the prorated linear depreciation of an asset for each accounting period.", p: { cost: { d: "is the cost of the asset" }, datePurchased: { d: "is the date the asset is purchased" }, firstPeriod: { d: "is the date of the end of the first period" }, salvarge: { d: "is the salvage value at the end of life of the asset." }, period: { d: "is the period" }, rate: { d: "is the rate of depreciation" }, basis: { d: "year_basis : 0 for year of 360 days, 1 for actual, 3 for year of 365 days.", v: 0 } }, h: "Unimplemented" }, COUPDAYBS: { s: "Returns the number of days from the beginning of the coupon period to the settlement date", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, frequency: { d: "is the number of coupon payments per year" }, basis: { d: "is the type of day count basis to use", v: 0 } }, h: "Unimplemented" }, COUPDAYS: { s: "Returns the number of days from the beginning of the coupon period to the settlement date", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, frequency: { d: "is the number of coupon payments per year" }, basis: { d: "is the type of day count basis to use", v: 0 } } }, COUPNCD: { s: "Returns the next coupon date after the settlement date", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, frequency: { d: "is the number of coupon payments per year" }, basis: { d: "is the type of day count basis to use", v: 0 } }, h: "Unimplemented" }, COUPNUM: { s: "Returns the number of coupons payable between the settlement date and maturity date", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, frequency: { d: "is the number of coupon payments per year" }, basis: { d: "is the type of day count basis to use", v: 0 } }, h: "Unimplemented" }, COUPPCD: { s: "Returns the previous coupon date before the settlement date", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, frequency: { d: "is the number of coupon payments per year" }, basis: { d: "is the type of day count basis to use", v: 0 } }, h: "Unimplemented" }, CUMIPMT: { s: "Returns the cumulative interest paid between two periods", p: { rate: { d: "is the interest rate" }, nper: { d: "is the total number of payment periods" }, pv: { d: "is the present value of the investment" }, startPeriod: { d: "is the first period in the calculation" }, endPeriod: { d: "is the last period in the calculation" }, type: { d: "is the timing of the payment" } } }, CUMPRINC: { s: "Returns the cumulative principal paid on a loan between two periods", p: { rate: { d: "is the interest rate" }, nper: { d: "is the total number of payment periods" }, pv: { d: "is the present value of the investment" }, startPeriod: { d: "is the first period in the calculation" }, endPeriod: { d: "is the last period in the calculation" }, type: { d: "is the timing of the payment" } } }, DB: { s: "Returns the depreciation of an asset for a specified period using the fixed-declining balance method", p: { cost: { d: "is the initial cost of the asset" }, salvage: { d: "is the salvage value at the end of the life of the asset" }, life: { d: "is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)" }, period: { d: "is the period for which you want to calculate the depreciation. Period must use the same units as Life" }, month: { d: "is the number of months in the first year", v: 12 } } }, DDB: { s: "Returns the depreciation of an asset for a specified period using the double-declining balance method or some other method you specify", p: { cost: { d: "is the initial cost of the asset" }, salvage: { d: "is the salvage value at the end of the life of the asset" }, life: { d: "is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)" }, period: { d: "is the period for which you want to calculate the depreciation. Period must use the same units as Life" }, factor: { d: "is the rate at which the balance declines", v: 2 } } }, DISC: { s: "Returns the discount rate for a security", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, pr: { d: "is the security's price per $100 face value" }, redemption: { d: "is the security's redemption value per $100 face value" }, basis: { d: "is the type of day count basis to use", v: 0 } } }, DOLLARDE: { s: "Converts a dollar price, expressed as a fraction, into a dollar price, expressed as a decimal number", p: { fractionalDollar: { d: "is a number expressed as a fraction" }, fraction: { d: "is the integer to use in the denominator of the fraction" } } }, DOLLARFR: { s: "Converts a dollar price, expressed as a decimal number, into a dollar price, expressed as a fraction", p: { decimalDollar: { d: "is a decimal number" }, fraction: { d: "is the integer to use in the denominator of the fraction" } } }, DURATION: { s: "Returns the annual duration of a security with periodic interest payments", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, coupon: { d: "is the security's annual coupon rate" }, yld: { d: "is the security's annual yield" }, frequency: { d: "is the number of coupon payments per year" }, basis: { d: "is the type of day count basis to use", v: 0 } }, h: "Unimplemented" }, EFFECT: { s: "Returns the effective annual interest rate", p: { nominalRate: { d: "is the nominal interest rate" }, npery: { d: "is the number of compounding periods per year" } } }, FV: { s: "Returns the future value of an investment based on periodic, constant payments and a constant interest rate", p: { rate: { d: "is the interest rate" }, nper: { d: "is the total number of payment periods" }, pmt: { d: "is the payment made each period; it cannot change over the life of the investment" }, pv: { d: "is the present value of the investment", v: 0 }, type: { d: "Indicates when pmts are due.", v: 0 } } }, FVSCHEDULE: { s: "Returns the future value of an initial principal after applying a series of compound interest rates", p: { principal: { d: "is the present value" }, schedule: { d: "is an array of interest rates to apply" } } }, INTRATE: { s: "Returns the interest rate for a fully invested security", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, investment: { d: "is the amount invested in the security" }, redemption: { d: "is the amount to be received at maturity" }, basis: { d: "is the type of day count basis to use", v: 2 } }, h: "Unimplemented" }, IPMT: { s: "Returns the interest payment for a given period for an investment, based on periodic, constant payments and a constant interest rate", p: { rate: { d: "is the interest rate" }, per: { d: "is the period for which you want to find the interest and must be in the range 1 to Nper" }, nper: { d: "is the total number of payment periods" }, pv: { d: "is the present value of the investment" }, fv: { d: "is the future value, or a cash balance you want to attain after the last payment is made", v: 0 }, type: { d: "is a logical value representing the timing of payment: at the end of the period = 0, at the beginning of the period = 1", v: 0 } } }, IRR: { s: "Returns the internal rate of return for a series of cash flows", p: { values: { d: "is an array or a reference to cells that contain numbers for which you want to calculate the internal rate of return" }, guess: { d: "is a number that you guess is close to the result of IRR", v: 0.1 } }, h: "Unimplemented" }, ISPMT: { s: "Returns the interest paid during a specific period of an investment", p: { rate: { d: "is the interest rate" }, per: { d: "period for which you want to find the interest" }, nper: { d: "number of payment periods in an investment" }, pv: { d: "lump sum amount that a series of future payments is right now" } } }, MDURATION: { s: "Returns the Macauley modified duration for a security with an assumed par value of $100", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, coupon: { d: "is the security's annual coupon rate" }, yld: { d: "is the security's annual yield" }, frequency: { d: "is the number of coupon payments per year" }, basis: { d: "is the type of day count basis to use", v: 2 } }, h: "Unimplemented" }, MIRR: { s: "Returns the internal rate of return for a series of periodic cash flows, considering both cost of investment and interest on reinvestment of cash", p: { values: { d: "is an array or a reference to cells that contain numbers that represent a series of payments (negative) and income (positive) at regular periods" }, financeRate: { d: "is the interest rate you pay on the money used in the cash flows" }, reinvestRate: { d: "is the interest rate you receive on the cash flows as you reinvest them" } } }, NOMINAL: { s: "Returns the annual nominal interest rate", p: { effectiveRate: { d: "is the effective interest rate" }, npery: { d: "is the number of compounding periods per year@param npery" } } }, NPER: { s: "Returns the number of periods for an investment based on periodic, constant payments and a constant interest rate", p: { rate: { d: "is the interest rate per period. For example, use 6%/4 for quarterly payments at 6% APR" }, pmt: { d: "is the payment made each period; it cannot change over the life of the investment" }, pv: { d: "is the present value, or the lump-sum amount that a series of future payments is worth now" }, fv: { d: "is the future value, or a cash balance you want to attain after the last payment is made", v: 0 }, type: { d: "is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0", v: 0 } } }, NPV: { s: "Returns the net present value of an investment based on a discount rate and a series of future payments (negative values) and income (positive values)", p: { rate: { d: "is the rate of discount over the length of one period" }, value: { d: "value1,value2,... are 1 to 254 payments and income, equally spaced in time and occurring at the end of each period" } } }, ODDFPRICE: { s: "Returns the price per $100 face value of a security with an odd first period", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, issue: { d: "is the security's issue date, expressed as a serial date number" }, firstCoupon: { d: "is the security's first coupon date, expressed as a serial date number" }, yld: { d: "is the security's annual yield" }, redemption: { d: "is the security's redemption value per $100 face value" }, frequency: { d: "is the number of coupon payments per year" }, basis: { d: "is the type of day count basis to use", v: 0 } }, h: "Unimplemented" }, ODDFYIELD: { s: "Returns the yield of a security with an odd first period", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, issue: { d: "is the security's issue date, expressed as a serial date number" }, firstCoupon: { d: "is the security's first coupon date, expressed as a serial date number" }, yld: { d: "is the security's annual yield" }, redemption: { d: "is the amount to be received at maturity" }, frequency: { d: "is the number of coupon payments per year" }, basis: { d: "is the type of day count basis to use", v: 0 } }, h: "Unimplemented" }, ODDLPRICE: { s: "Returns the price per $100 face value of a security with an odd last period", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, lastInterest: { d: "is the security's last coupon date, expressed as a serial date number" }, rate: { d: "is the interest rate" }, yld: { d: "is the security's annual yield" }, redemption: { d: "is the amount to be received at maturity" }, frequency: { d: "is the number of coupon payments per year" }, basis: { d: "is the type of day count basis to use", v: 0 } }, h: "Unimplemented" }, ODDLYIELD: { s: "Returns the yield of a security with an odd last period", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, lastInterest: { d: "is the security's last coupon date, expressed as a serial date number" }, rate: { d: "is the interest rate" }, pr: { d: "is the security's price" }, redemption: { d: "is the amount to be received at maturity" }, frequency: { d: "is the number of coupon payments per year" }, basis: { d: "is the type of day count basis to use", v: 0 } }, h: "Unimplemented" }, PDURATION: { s: "Returns the number of periods required by an investment to reach a specified value", p: { rate: { d: "is the interest rate" }, pv: { d: "is the present value of the investment" }, fv: { d: "is the desired future value of the investment" } } }, PMT: { s: "Calculates the payment for a loan based on constant payments and a constant interest rate", p: { rate: { d: "is the interest rate" }, nper: { d: "is the total number of payment periods" }, pv: { d: "is the present value of the investment" }, fv: { d: "is the future value, or a cash balance you want to attain after the last payment is made", v: 0 }, type: { d: "is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0", v: 0 } } }, PRICE: { s: "Returns the price per $100 face value of a security that pays periodic interest", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, rate: { d: "is the interest rate" }, yld: { d: "is the security's annual yield" }, redemption: { d: "is the amount to be received at maturity" }, frequency: { d: "is the number of coupon payments per year" }, basis: { d: "is the type of day count basis to use", v: 0 } }, h: "Unimplemented" }, PRICEDISC: { s: "Returns the price per $100 face value of a discounted security", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, discount: { d: "is the security's discount rate" }, redemption: { d: "is the amount to be received at maturity" }, basis: { d: "is the type of day count basis to use", v: 0 } } }, PRICEMAT: { s: "Returns the price per $100 face value of a security that pays interest at maturity", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, issue: { d: "is the security's issue date, expressed as a serial date number" }, rate: { d: "is the interest rate" }, yld: { d: "is the security's annual yield" }, basis: { d: "is the type of day count basis to use", v: 0 } }, h: "Unimplemented" }, PV: { s: "Returns the present value of an investment: the total amount that a series of future payments is worth now", p: { rate: { d: "is the interest rate" }, nper: { d: "is the total number of payment periods in an investment" }, pmt: { d: "is the payment made each period and cannot change over the life of the investment" }, fv: { d: "is the future value, or a cash balance you want to attain after the last payment is made", v: 0 }, type: { d: "is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0", v: 0 } } }, RATE: { s: "Returns the interest rate per period of a loan or an investment. For example, use 6%/4 for quarterly payments at 6% APR", p: { nper: { d: "is the total number of payment periods" }, pmt: { d: "is the payment made each period and cannot change over the life of the loan or investment" }, pv: { d: "is the present value: the total amount that a series of future payments is worth now" }, fv: { d: "is the future value, or a cash balance you want to attain after the last payment is made", v: 0 }, type: { d: "is a logical value: payment at the beginning of the period = 1; payment at the end of the period = 0", v: 0 }, guess: { d: "is your guess for what the rate will be", v: 0.1 } } }, RECEIVED: { s: "Returns the amount received at maturity for a fully invested security", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, investment: { d: "is the amount invested in the security" }, discount: { d: "is the security's discount rate" }, basis: { d: "is the type of day count basis to use", v: 0 } }, h: "Unimplemented" }, RRI: { s: "Returns an equivalent interest rate for the growth of an investment", p: { nper: { d: "is the total number of payment periods" }, pv: { d: "is the present value of the investment" }, fv: { d: "is the future value of the investment" } } }, SLN: { s: "Returns the straight-line depreciation of an asset for one period", p: { cost: { d: "is the initial cost of the asset" }, salvage: { d: "is the salvage value at the end of the life of the asset" }, life: { d: "is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)" } } }, STOCKHISTORY: { s: "Returns an array of historical quote data for a symbol and date range you specify.", p: { stock: { d: "Symbol of financial instrument to be considered or a Stock data type." }, startDate: { d: "First date to return data from." }, endDate: { d: "Last date to return data from." }, interval: { d: "A number indicating the granularity of the data; 0 - Daily, 1 - Weekly, 2 - Monthly", v: 0 }, headers: { d: "A logical value to add column header data; 0 - No column header, 1 - Show column header, 2 - Show instrument identifier and column header", v: 1 }, properties: { d: "properties1,properties2,... A number indicating which column of data to return; 0 through 5", v: "[0, 1, 2, 3, 4]" } }, h: "Unimplemented" }, SYD: { s: "Returns the sum-of-years' digits depreciation of an asset for a specified period", p: { cost: { d: "is the initial cost of the asset" }, salvage: { d: "is the salvage value at the end of the life of the asset" }, life: { d: "is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)" }, per: { d: "is the period and must use the same units as Life" } } }, TBILLEQ: { s: "Returns the bond-equivalent yield for a treasury bill", p: { settlement: { d: "is the Treasury bill's settlement date, expressed as a serial date number" }, maturity: { d: "is the Treasury bill's maturity date, expressed as a serial date number" }, discount: { d: "is the Treasury bill's discount rate" } } }, TBILLPRICE: { s: "Returns the price per $100 face value for a treasury bill", p: { settlement: { d: "is the Treasury bill's settlement date, expressed as a serial date number" }, maturity: { d: "is the Treasury bill's maturity date, expressed as a serial date number" }, discount: { d: "is the Treasury bill's discount rate" } } }, TBILLYIELD: { s: "Returns the yield for a treasury bill", p: { settlement: { d: "is the Treasury bill's settlement date, expressed as a serial date number" }, maturity: { d: "is the Treasury bill's maturity date, expressed as a serial date number" }, pr: { d: "is the Treasury Bill's price per $100 face value" } } }, VDB: { s: "Returns the depreciation of an asset for any period you specify, including partial periods, using the double-declining balance method or some other method you specify", p: { cost: { d: "is the initial cost of the asset" }, salvage: { d: "is the salvage value at the end of the life of the asset" }, life: { d: "is the number of periods over which the asset is being depreciated (sometimes called the useful life of the asset)" }, startPeriod: { d: "is the first period in the calculation" }, endPeriod: { d: "is the last period in the calculation" }, factor: { d: "is the rate at which the balance declines", v: 2 }, noSwitch: { d: "switch to straight-line depreciation when depreciation is greater than the declining balance = FALSE; do not switch = TRUE", v: !1 } }, h: "Unimplemented" }, XIRR: { s: "Returns the internal rate of return for a schedule of cash flows", p: { values: { d: "is a series of cash flows that correspond to a schedule of payments in dates" }, dates: { d: "is a schedule of payment dates that corresponds to the cash flow payments" }, guess: { d: "is a number that you guess is close to the result of XIRR", v: 0.1 } }, h: "Unimplemented" }, XNPV: { s: "Returns the net present value for a schedule of cash flows", p: { rate: { d: "is the discount rate to apply to the cash flows" }, values: { d: "is a series of cash flows that correspond to a schedule of payments in dates" }, dates: { d: "is a schedule of payment dates that corresponds to the cash flow payments" } } }, YIELD: { s: "Returns the yield on a security that pays periodic interest", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, rate: { d: "is the security's annual coupon rate" }, pr: { d: "is the security's price per $100 face value" }, redemption: { d: "is the security's redemption value per $100 face value" }, frequency: { d: "is the number of coupon payments per year" }, basis: { d: "is the type of day count basis to use", v: 0 } }, h: "Unimplemented" }, YIELDDISC: { s: "Returns the annual yield for a discounted security. For example, a treasury bill", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, pr: { d: "is the security's price per $100 face value" }, redemption: { d: "is the security's redemption value per $100 face value" }, frequency: { d: "is the number of coupon payments per year" }, basis: { d: "is the type of day count basis to use", v: 0 } }, h: "Unimplemented" }, YIELDMAT: { s: "Returns the annual yield of a security that pays interest at maturity", p: { settlement: { d: "is the security's settlement date, expressed as a serial date number" }, maturity: { d: "is the security's maturity date, expressed as a serial date number" }, issue: { d: "is the security's issue date, expressed as a serial date number" }, rate: { d: "is the interest rate" }, pr: { d: "is the security's price per $100 face value" }, basis: { d: "is the type of day count basis to use", v: 0 } }, h: "Unimplemented" } };
|
|
8
|
-
export {
|
|
9
|
-
e as default
|
|
10
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
|
|
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
|
-
let s = null;
|
|
8
|
-
async function l() {
|
|
9
|
-
return s || (s = new Promise(async (e, a) => {
|
|
10
|
-
try {
|
|
11
|
-
const i = "0.20.2", r = `https://esm.sh/esbuild-wasm@${i}`, n = `https://esm.sh/esbuild-wasm@${i}/esbuild.wasm`, t = (await import(
|
|
12
|
-
/* webpackIgnore: true */
|
|
13
|
-
/* @vite-ignore */
|
|
14
|
-
r
|
|
15
|
-
)).default;
|
|
16
|
-
await t.initialize({ wasmURL: n, worker: !1 }), e(t);
|
|
17
|
-
} catch (i) {
|
|
18
|
-
console.error("Error initializing esbuild:", i), a(i);
|
|
19
|
-
}
|
|
20
|
-
}), s);
|
|
21
|
-
}
|
|
22
|
-
export {
|
|
23
|
-
l as initialize
|
|
24
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - v0.3.2
|
|
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
|
-
const e = { COMPLEX: { s: "Converts real and imaginary coefficients into a complex number", p: { realNum: { d: "is the real coefficient of the complex number" }, iNum: { d: "is the imaginary coefficient of the complex number" }, suffix: { d: "is the suffix for the imaginary component of the complex number", v: "i" } } }, IMABS: { s: "Returns the absolute value (modulus) of a complex number", p: { inumber: { d: "is a complex number for which you want the absolute value" } } }, IMAGINARY: { s: "Returns the imaginary coefficient of a complex number", p: { inumber: { d: "is a complex number for which you want the imaginary coefficient" } } }, IMARGUMENT: { s: "Returns the argument q, an angle expressed in radians", p: { inumber: { d: "is a complex number for which you want the argument" } } }, IMCONJUGATE: { s: "Returns the complex conjugate of a complex number", p: { inumber: { d: "is a complex number for which you want the conjugate" } } }, IMCOS: { s: "Returns the cosine of a complex number", p: { inumber: { d: "is a complex number for which you want the cosine" } } }, IMCOSH: { s: "Returns the hyperbolic cosine of a complex number", p: { inumber: { d: "is a complex number for which you want the hyperbolic cosine" } } }, IMCOT: { s: "Returns the cotangent of a complex number", p: { inumber: { d: "is a complex number for which you want the cotangent" } } }, IMCSC: { s: "Returns the cosecant of a complex number", p: { inumber: { d: "is a complex number for which you want the cosecant" } } }, IMCSCH: { s: "Returns the hyperbolic cosecant of a complex number", p: { inumber: { d: "is a complex number for which you want the hyperbolic cosecant" } } }, IMDIV: { s: "Returns the quotient of two complex numbers", p: { inumber1: { d: "is the complex numerator or dividend" }, inumber2: { d: "is the complex denominator or divisor" } } }, IMEXP: { s: "Returns the exponential of a complex number", p: { inumber: { d: "is a complex number for which you want the exponential" } } }, IMLN: { s: "Returns the exponential of a complex number", p: { inumber: { d: "is a complex number for which you want the exponential" } } }, IMLOG10: { s: "Returns the base-10 logarithm of a complex number", p: { inumber: { d: "is a complex number for which you want the common logarithm" } } }, IMLOG2: { s: "Returns the base-2 logarithm of a complex number", p: { inumber: { d: "is a complex number for which you want the base-2 logarithm" } } }, IMPOWER: { s: "Returns the base-2 logarithm of a complex number", p: { inumber: { d: "is a complex number for which you want the base-2 logarithm" }, number: {} } }, IMPRODUCT: { s: "Returns the product of 1 to 255 complex numbers", p: { inumber: { d: "inumber1,inumber2,... Inumber1, Inumber2,... are from 1 to 255 complex numbers to multiply." } } }, IMREAL: { s: "Returns the real coefficient of a complex number", p: { inumber: { d: "is a complex number for which you want the real coefficient" } } }, IMSEC: { s: "Returns the secant of a complex number", p: { inumber: { d: "is a complex number for which you want the secant" } } }, IMSECH: { s: "Returns the hyperbolic secant of a complex number", p: { inumber: { d: "is a complex number for which you want the hyperbolic secant" } } }, IMSIN: { s: "Returns the sine of a complex number", p: { inumber: { d: "is a complex number for which you want the sine" } } }, IMSINH: { s: "Returns the hyperbolic sine of a complex number", p: { inumber: { d: "is a complex number for which you want the hyperbolic sine" } } }, IMSQRT: { s: "Returns the square root of a complex number", p: { inumber: { d: "is a complex number for which you want the square root" } } }, IMSUB: { s: "Returns the difference of two complex numbers", p: { inumber1: { d: "is the complex number from which to subtract inumber2" }, inumber2: { d: "is the complex number to subtract from inumber1" } } }, IMSUM: { s: "Returns the sum of complex numbers", p: { inumber: { d: "inumber1,inumber2,... are from 1 to 255 complex numbers to add" } } }, IMTAN: { s: "Returns the tangent of a complex number", p: { inumber: { d: "is a complex number for which you want the tangent" } } } };
|
|
8
|
-
export {
|
|
9
|
-
e as default
|
|
10
|
-
};
|