@sheetxl/studio-mui 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.
Files changed (178) hide show
  1. package/LICENSE.md +11 -0
  2. package/README.md +24 -0
  3. package/build/browser/cjs/4XrhSt2xtUIXkiCt.cjs +1516 -0
  4. package/build/browser/cjs/B3EvhaQf456RMc1Q.cjs +6 -0
  5. package/build/browser/cjs/B3kl467PN2cpvrfz.cjs +12 -0
  6. package/build/browser/cjs/B5LCoenQbQmzic16.cjs +314 -0
  7. package/build/browser/cjs/BBuyHZwFlDRvHzBH.cjs +7 -0
  8. package/build/browser/cjs/BGoG_ROASNB2owBR.cjs +28 -0
  9. package/build/browser/cjs/BJ6Da8vZLjAl44pz.cjs +6 -0
  10. package/build/browser/cjs/BL_UVvG75SFsFaT3.cjs +6 -0
  11. package/build/browser/cjs/BNDoTytIOGtVh5l9.cjs +6 -0
  12. package/build/browser/cjs/BQOyVCuOdwDja_VV.cjs +42 -0
  13. package/build/browser/cjs/BRiPktKUmeJipjaa.cjs +6 -0
  14. package/build/browser/cjs/BabbNVs5iKg49rfk.cjs +6 -0
  15. package/build/browser/cjs/BcOX5vODdThWbKrR.cjs +6 -0
  16. package/build/browser/cjs/BchlMljYmXDs0Ol2.cjs +6 -0
  17. package/build/browser/cjs/BmYZvm13acvbFhOu.cjs +6 -0
  18. package/build/browser/cjs/BmbsW1n0-CkF3ITF.cjs +6 -0
  19. package/build/browser/cjs/BnCUyGP_ERKmL3ZR.cjs +6 -0
  20. package/build/browser/cjs/BtP4E1_yhMjpfbr5.cjs +6 -0
  21. package/build/browser/cjs/C3E9wmSfmgYmXfJN.cjs +205 -0
  22. package/build/browser/cjs/C3Hl78e9qfEHxJYc.cjs +6 -0
  23. package/build/browser/cjs/CEvRH8aOx3etutK_.cjs +17 -0
  24. package/build/browser/cjs/CLZSdaBnKDfb142R.cjs +6 -0
  25. package/build/browser/cjs/CN1cS39WcNrcPVqS.cjs +129 -0
  26. package/build/browser/cjs/CSH1hUnHovjo8Lb8.cjs +6 -0
  27. package/build/browser/cjs/CTNt3asYQRA-MROc.cjs +47 -0
  28. package/build/browser/cjs/C_JZEtvgcli6T7Wg.cjs +11 -0
  29. package/build/browser/cjs/CbaYZmvS8u-p_Z8Z.cjs +6 -0
  30. package/build/browser/cjs/Cc-4c3DRm96wq5rj.cjs +12 -0
  31. package/build/browser/cjs/CnY6DbatGmPyylfU.cjs +20 -0
  32. package/build/browser/cjs/CqkQGfzNax6GmZFo.cjs +6 -0
  33. package/build/browser/cjs/D2AF0a4vbNKzFxzA.cjs +21 -0
  34. package/build/browser/cjs/D4y1iYdx8sdwQ50T.cjs +6 -0
  35. package/build/browser/cjs/D5cF1EnyvnPY2IxS.cjs +150 -0
  36. package/build/browser/cjs/DA1-OPTYQTepGKEg.cjs +11 -0
  37. package/build/browser/cjs/DJDMVDpUqlEKYLjt.cjs +6 -0
  38. package/build/browser/cjs/DLXLJ8SNNjwM5C-P.cjs +6 -0
  39. package/build/browser/cjs/DV8lOsZBgyx7MTBW.cjs +6 -0
  40. package/build/browser/cjs/DZAPn_d9mpvfRzsb.cjs +6 -0
  41. package/build/browser/cjs/DaicqO_9d1hYzyB_.cjs +11 -0
  42. package/build/browser/cjs/Dfh6eMCbAjW14fdh.cjs +6 -0
  43. package/build/browser/cjs/DhI2lgDZL8GqBejN.cjs +6 -0
  44. package/build/browser/cjs/Ds6s8fpzOZsd2m1r.cjs +6 -0
  45. package/build/browser/cjs/DvIWGmDT5uBVQ5zH.cjs +16 -0
  46. package/build/browser/cjs/DvLgu20RiaayrJcW.cjs +7 -0
  47. package/build/browser/cjs/Dvhwt25gyHzxQLrp.cjs +6 -0
  48. package/build/browser/cjs/DvwApJM_CVrlpLxn.cjs +6 -0
  49. package/build/browser/cjs/DwVYzo4a05DMfta_.cjs +28 -0
  50. package/build/browser/cjs/NYdqUauA5i2q33UZ.cjs +6 -0
  51. package/build/browser/cjs/S2Xfq-KDgoT7ipPC.cjs +25 -0
  52. package/build/browser/cjs/TOZQZr9ZZ_Q-jdQZ.cjs +6 -0
  53. package/build/browser/cjs/bJuLOalXTwrshZL3.cjs +16 -0
  54. package/build/browser/cjs/eh9refYW4Gm25cmW.cjs +6 -0
  55. package/build/browser/cjs/hKqcVeb_8_4M79xj.cjs +6 -0
  56. package/build/browser/cjs/index.cjs +7 -0
  57. package/build/browser/cjs/is17hbP-kpOIBRP3.cjs +6 -0
  58. package/build/browser/cjs/pNY789kHWwRQXqse.cjs +17 -0
  59. package/build/browser/cjs/qJcc3ALtLWml32LU.cjs +18 -0
  60. package/build/browser/cjs/vWgVoELLfZ2ff1xL.cjs +6 -0
  61. package/build/browser/esm/2kwF7RVUWBY1zsgG.mjs +16 -0
  62. package/build/browser/esm/7Imk0owJj7oNHR7v.mjs +48 -0
  63. package/build/browser/esm/AuNwPf0DXe0twn35.mjs +1592 -0
  64. package/build/browser/esm/B1Kw9U_AxCk0Aq9f.mjs +59 -0
  65. package/build/browser/esm/B9l1_Tfw_tMhKCNB.mjs +437 -0
  66. package/build/browser/esm/B9winT3ff8rc4sbn.mjs +490 -0
  67. package/build/browser/esm/BEo9XX1sHmVjScSm.mjs +16 -0
  68. package/build/browser/esm/BGTcOBCyrTTlov_i.mjs +13399 -0
  69. package/build/browser/esm/BMGddfMXtKQ9AXQS.mjs +16 -0
  70. package/build/browser/esm/BQSa7N7QMGysdZdU.mjs +3932 -0
  71. package/build/browser/esm/BVEuc_3fLG2GN34k.mjs +16 -0
  72. package/build/browser/esm/BVh9YUwiSov8wcyY.mjs +1708 -0
  73. package/build/browser/esm/BZt5yM_TvoPXqdeA.mjs +3867 -0
  74. package/build/browser/esm/BfU8KdaB9wrEPWM-.mjs +16 -0
  75. package/build/browser/esm/BjUaiSvRZnas-HJW.mjs +16 -0
  76. package/build/browser/esm/BqiVaoAYJJqPrCUZ.mjs +16 -0
  77. package/build/browser/esm/BtMqJ5CRpKuAC4UQ.mjs +1486 -0
  78. package/build/browser/esm/BwvMR2cgGwFn8hAL.mjs +36 -0
  79. package/build/browser/esm/BxU3eVA-Adrnq7ZJ.mjs +1372 -0
  80. package/build/browser/esm/C00coampLNiXjWJJ.mjs +436 -0
  81. package/build/browser/esm/C6nh1rvYnAg2w2V2.mjs +838 -0
  82. package/build/browser/esm/C8gc149K34Zi2lP2.mjs +16 -0
  83. package/build/browser/esm/CGSkuCZY1EmTUNlQ.mjs +52 -0
  84. package/build/browser/esm/CKXzosgZX8Xe3l59.mjs +16 -0
  85. package/build/browser/esm/CNYANG0Z7mhGYo00.mjs +859 -0
  86. package/build/browser/esm/CV_FNw2i_aEc5nwA.mjs +16 -0
  87. package/build/browser/esm/CYSj0-zys2FKWgnb.mjs +18 -0
  88. package/build/browser/esm/CbTs5cvVaP1vPCYD.mjs +2248 -0
  89. package/build/browser/esm/CfAob8gGydmX1xQu.mjs +16 -0
  90. package/build/browser/esm/ChGigf2OPu7d44Km.mjs +16 -0
  91. package/build/browser/esm/CnzGN0S6zOfL_3SS.mjs +1358 -0
  92. package/build/browser/esm/CpyeUtXgDmrcMESB.mjs +52 -0
  93. package/build/browser/esm/CrEGjvQKhAcdw5sY.mjs +16 -0
  94. package/build/browser/esm/CtrrmHx9YbrOithw.mjs +152 -0
  95. package/build/browser/esm/CzAM0pDdZ7sjGgn9.mjs +86 -0
  96. package/build/browser/esm/D0oVDcgRUMZ9MHzu.mjs +41 -0
  97. package/build/browser/esm/D54Fpmnd9MzCzp-Z.mjs +16 -0
  98. package/build/browser/esm/D78-3ghInxscHLVq.mjs +23 -0
  99. package/build/browser/esm/DEpR6b4DMs-va6RS.mjs +43734 -0
  100. package/build/browser/esm/DEsqE49cIQZ8AqCe.mjs +398 -0
  101. package/build/browser/esm/DGe70xvBhc62ZVZz.mjs +2410 -0
  102. package/build/browser/esm/DXapJ5_yR4E8vDaK.mjs +1685 -0
  103. package/build/browser/esm/DjAZeDxBIBZsRTm3.mjs +24 -0
  104. package/build/browser/esm/DttdPwwDTcRX4uwL.mjs +44 -0
  105. package/build/browser/esm/FXcO0MVElhw9cc3v.mjs +49 -0
  106. package/build/browser/esm/GpycqJcrwTRtjEqA.mjs +16 -0
  107. package/build/browser/esm/HCE-tMxyVd0m-PgN.mjs +16 -0
  108. package/build/browser/esm/OCdyQRicV8KxUwMt.mjs +16 -0
  109. package/build/browser/esm/UukTgmLv7or2mhlB.mjs +16 -0
  110. package/build/browser/esm/_cuE13TWr3oEoKGP.mjs +34 -0
  111. package/build/browser/esm/aIlK3Ybu-1T4WHPv.mjs +640 -0
  112. package/build/browser/esm/bFSkTthAEOn7gv5x.mjs +16 -0
  113. package/build/browser/esm/bOhN6up-rdLRp82s.mjs +5588 -0
  114. package/build/browser/esm/index.mjs +85 -0
  115. package/build/browser/esm/ng3JdG4_hi9SgtHk.mjs +16 -0
  116. package/build/browser/esm/o6U2z4gZ7GE4QKZD.mjs +16 -0
  117. package/build/browser/esm/psav3cvsBQQczhPL.mjs +16 -0
  118. package/build/browser/esm/vn0iS301yg2hAbYd.mjs +51 -0
  119. package/build/licenses/dependencies.txt +1341 -0
  120. package/build/node/assets/style.css +1 -0
  121. package/build/node/esm/2kwF7RVUWBY1zsgG.mjs +16 -0
  122. package/build/node/esm/B-Xlyl81h27-bnvO.mjs +16 -0
  123. package/build/node/esm/B1_NYsn5D8x9QedP.mjs +307 -0
  124. package/build/node/esm/BCA5bxOeDA8k1Bm1.mjs +16 -0
  125. package/build/node/esm/BEo9XX1sHmVjScSm.mjs +16 -0
  126. package/build/node/esm/BIfdVpnJR1TZwCPR.mjs +1378 -0
  127. package/build/node/esm/BIqDzNJtkm-dyH0v.mjs +154 -0
  128. package/build/node/esm/BMGddfMXtKQ9AXQS.mjs +16 -0
  129. package/build/node/esm/BUOdfqhtCh8lhOhm.mjs +4000 -0
  130. package/build/node/esm/BYbE15S73xgn7S5E.mjs +88 -0
  131. package/build/node/esm/BfU8KdaB9wrEPWM-.mjs +16 -0
  132. package/build/node/esm/BkyivirgeiDKFSjk.mjs +16 -0
  133. package/build/node/esm/Bm1RqNJ-XvHpJW9z.mjs +831 -0
  134. package/build/node/esm/BqiVaoAYJJqPrCUZ.mjs +16 -0
  135. package/build/node/esm/Bx-30HInllXS7M_J.mjs +41 -0
  136. package/build/node/esm/Bx3lQBEvcqhxffT-.mjs +1726 -0
  137. package/build/node/esm/BxsKlaBFnb5wNq6R.mjs +53 -0
  138. package/build/node/esm/C4PMhNAV0KpPsKFj.mjs +24 -0
  139. package/build/node/esm/C7x3L6HtPhZjSrrZ.mjs +471 -0
  140. package/build/node/esm/C8gc149K34Zi2lP2.mjs +16 -0
  141. package/build/node/esm/CK-kn1p9NGRVM_h7.mjs +16 -0
  142. package/build/node/esm/CKR6snAwSONs7kfL.mjs +19 -0
  143. package/build/node/esm/CKXzosgZX8Xe3l59.mjs +16 -0
  144. package/build/node/esm/CLE_RHHvsDeoZ9Zd.mjs +561 -0
  145. package/build/node/esm/CMKci_5THkcJ-w9a.mjs +80 -0
  146. package/build/node/esm/CVU9bu6AnxcgkEwq.mjs +13466 -0
  147. package/build/node/esm/CfAob8gGydmX1xQu.mjs +16 -0
  148. package/build/node/esm/ChGigf2OPu7d44Km.mjs +16 -0
  149. package/build/node/esm/CkvkuPSf4R_DqArg.mjs +5648 -0
  150. package/build/node/esm/CnBMj0oJAyr9ZbjP.mjs +23 -0
  151. package/build/node/esm/CrEGjvQKhAcdw5sY.mjs +16 -0
  152. package/build/node/esm/Crx9i_8dm3OQsk_T.mjs +28 -0
  153. package/build/node/esm/CwUulbiMQH11aF4x.mjs +16 -0
  154. package/build/node/esm/D0Lh0V1tkdJPxZnI.mjs +392 -0
  155. package/build/node/esm/D54Fpmnd9MzCzp-Z.mjs +16 -0
  156. package/build/node/esm/D5bg3v_W8K9MVp0j.mjs +1711 -0
  157. package/build/node/esm/D8F08tiG98tM_voL.mjs +16 -0
  158. package/build/node/esm/DR7o1DOIK9zdiBgS.mjs +50 -0
  159. package/build/node/esm/DYEgm2kd3haV-Ml8.mjs +1246 -0
  160. package/build/node/esm/DfzhmhZ4I0Zurcqn.mjs +44 -0
  161. package/build/node/esm/Dg_ERnlsy5hwbzMA.mjs +1498 -0
  162. package/build/node/esm/Dt4cj_0sWgvt4FGj.mjs +92 -0
  163. package/build/node/esm/GpycqJcrwTRtjEqA.mjs +16 -0
  164. package/build/node/esm/LlkIFFfAjLiQ5Or6.mjs +3840 -0
  165. package/build/node/esm/OCdyQRicV8KxUwMt.mjs +16 -0
  166. package/build/node/esm/QATDL2FGAYcVnd33.mjs +49 -0
  167. package/build/node/esm/SvgA2TyqJYOzheuf.mjs +26 -0
  168. package/build/node/esm/VZ150KIUh5JVRqpk.mjs +52 -0
  169. package/build/node/esm/XRLHatWlgABiuBDS.mjs +52 -0
  170. package/build/node/esm/bFSkTthAEOn7gv5x.mjs +16 -0
  171. package/build/node/esm/index.mjs +44754 -0
  172. package/build/node/esm/lgtVRbg712G5Ba-x.mjs +60 -0
  173. package/build/node/esm/ng3JdG4_hi9SgtHk.mjs +16 -0
  174. package/build/node/esm/psav3cvsBQQczhPL.mjs +16 -0
  175. package/build/node/esm/zWnN2OzbhzCc6T7u.mjs +86 -0
  176. package/build/package.json +84 -0
  177. package/build/types/index.d.ts +1848 -0
  178. package/package.json +100 -0
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - 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/sdk - A high-performance, embeddable spreadsheet engine. - 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
+ const e = { DAVERAGE: { s: "Averages the values in a column in a list or database that match conditions you specify", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DCOUNT: { s: "Counts the cells containing numbers in the field (column) of records in the database that match the conditions you specify", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DCOUNTA: { s: "Counts nonblank cells in the field (column) of records in the database that match the conditions you specify", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DGET: { s: "Extracts from a database a single record that matches the conditions you specify", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DMAX: { s: "Returns the largest number in the field (column) of records in the database that match the conditions you specify", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DMIN: { s: "Returns the smallest number in the field (column) of records in the database that match the conditions you specify", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DPRODUCT: { s: "Multiplies the values in the field (column) of records in the database that match the conditions you specify", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DSTDEV: { s: "Estimates the standard deviation based on a sample from selected database entries", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DSTDEVP: { s: "Calculates the standard deviation based on the entire population of selected database entries", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DSUM: { s: "Adds the numbers in the field (column) of records in the database that match the conditions you specify", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DVAR: { s: "Estimates variance based on a sample from selected database entries", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" }, DVARP: { s: "Calculates variance based on the entire population of selected database entries", p: { database: { d: "is the range of cells that makes up the list or database. A database is a list of related data" }, field: { d: "is either the label of the column in double quotation marks or a number that represents the column's position in the list" }, criteria: { d: "is the range of cells that contains the conditions you specify. The range includes a column label and one cell below the label for a condition" } }, h: "Unimplemented" } };
14
+ export {
15
+ e as default
16
+ };
@@ -0,0 +1,561 @@
1
+ /**
2
+ * @license @sheetxl/studio-mui - Studio - Spreadsheet UI built with SheetXL SDK using React & MUI. - 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
+ import { g as e } from "./index.mjs";
8
+ import t from "stream";
9
+ function i(e3, t2) {
10
+ for (var i2 = 0; i2 < t2.length; i2++) {
11
+ const r2 = t2[i2];
12
+ if ("string" != typeof r2 && !Array.isArray(r2)) {
13
+ for (const t3 in r2) if ("default" !== t3 && !(t3 in e3)) {
14
+ const i3 = Object.getOwnPropertyDescriptor(r2, t3);
15
+ i3 && Object.defineProperty(e3, t3, i3.get ? i3 : { enumerable: true, get: () => r2[t3] });
16
+ }
17
+ }
18
+ }
19
+ return Object.freeze(Object.defineProperty(e3, Symbol.toStringTag, { value: "Module" }));
20
+ }
21
+ var r, n = { exports: {} };
22
+ /* @license
23
+ Papa Parse
24
+ v5.5.3
25
+ https://github.com/mholt/PapaParse
26
+ License: MIT
27
+ */
28
+ var s = (r || (r = 1, n.exports = function e2() {
29
+ var i2 = "undefined" != typeof self ? self : "undefined" != typeof window ? window : void 0 !== i2 ? i2 : {};
30
+ function r2() {
31
+ var t2 = i2.URL || i2.webkitURL || null, r3 = e2.toString();
32
+ return h.BLOB_URL || (h.BLOB_URL = t2.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; ", "(", r3, ")();"], { type: "text/javascript" })));
33
+ }
34
+ var n2 = !i2.document && !!i2.postMessage, s2 = i2.IS_PAPA_WORKER || false, a2 = {}, o = 0, h = {};
35
+ if (h.parse = f, h.unparse = d, h.RECORD_SEP = String.fromCharCode(30), h.UNIT_SEP = String.fromCharCode(31), h.BYTE_ORDER_MARK = "\uFEFF", h.BAD_DELIMITERS = ["\r", "\n", '"', h.BYTE_ORDER_MARK], h.WORKERS_SUPPORTED = !n2 && !!i2.Worker, h.NODE_STREAM_INPUT = 1, h.LocalChunkSize = 10485760, h.RemoteChunkSize = 5242880, h.DefaultDelimiter = ",", h.Parser = k, h.ParserHandle = y, h.NetworkStreamer = c, h.FileStreamer = p, h.StringStreamer = _, h.ReadableStreamStreamer = g, "undefined" == typeof PAPA_BROWSER_CONTEXT && (h.DuplexStreamStreamer = m), i2.jQuery) {
36
+ var u = i2.jQuery;
37
+ u.fn.parse = function(e3) {
38
+ var t2 = e3.config || {}, r3 = [];
39
+ return this.each(function(e4) {
40
+ if ("INPUT" !== u(this).prop("tagName").toUpperCase() || "file" !== u(this).attr("type").toLowerCase() || !i2.FileReader || !this.files || 0 === this.files.length) return true;
41
+ for (var n4 = 0; n4 < this.files.length; n4++) r3.push({ file: this.files[n4], inputElem: this, instanceConfig: u.extend({}, t2) });
42
+ }), n3(), this;
43
+ function n3() {
44
+ if (0 !== r3.length) {
45
+ var t3 = r3[0];
46
+ if (x(e3.before)) {
47
+ var i3 = e3.before(t3.file, t3.inputElem);
48
+ if ("object" == typeof i3) {
49
+ if ("abort" === i3.action) return void s3("AbortError", t3.file, t3.inputElem, i3.reason);
50
+ if ("skip" === i3.action) return void a3();
51
+ "object" == typeof i3.config && (t3.instanceConfig = u.extend(t3.instanceConfig, i3.config));
52
+ } else if ("skip" === i3) return void a3();
53
+ }
54
+ var n4 = t3.instanceConfig.complete;
55
+ t3.instanceConfig.complete = function(e4) {
56
+ x(n4) && n4(e4, t3.file, t3.inputElem), a3();
57
+ }, h.parse(t3.file, t3.instanceConfig);
58
+ } else x(e3.complete) && e3.complete();
59
+ }
60
+ function s3(t3, i3, r4, n4) {
61
+ x(e3.error) && e3.error({ name: t3 }, i3, r4, n4);
62
+ }
63
+ function a3() {
64
+ r3.splice(0, 1), n3();
65
+ }
66
+ };
67
+ }
68
+ function f(e3, t2) {
69
+ var r3 = (t2 = t2 || {}).dynamicTyping || false;
70
+ if (x(r3) && (t2.dynamicTypingFunction = r3, r3 = {}), t2.dynamicTyping = r3, t2.transform = !!x(t2.transform) && t2.transform, t2.worker && h.WORKERS_SUPPORTED) {
71
+ var n3 = b();
72
+ return n3.userStep = t2.step, n3.userChunk = t2.chunk, n3.userComplete = t2.complete, n3.userError = t2.error, t2.step = x(t2.step), t2.chunk = x(t2.chunk), t2.complete = x(t2.complete), t2.error = x(t2.error), delete t2.worker, void n3.postMessage({ input: e3, config: t2, workerId: n3.id });
73
+ }
74
+ var s3 = null;
75
+ return e3 === h.NODE_STREAM_INPUT && "undefined" == typeof PAPA_BROWSER_CONTEXT ? (s3 = new m(t2)).getStream() : ("string" == typeof e3 ? (e3 = a3(e3), s3 = t2.download ? new c(t2) : new _(t2)) : true === e3.readable && x(e3.read) && x(e3.on) ? s3 = new g(t2) : (i2.File && e3 instanceof File || e3 instanceof Object) && (s3 = new p(t2)), s3.stream(e3));
76
+ function a3(e4) {
77
+ return 65279 === e4.charCodeAt(0) ? e4.slice(1) : e4;
78
+ }
79
+ }
80
+ function d(e3, t2) {
81
+ var i3 = false, r3 = true, n3 = ",", s3 = "\r\n", a3 = '"', o2 = a3 + a3, u2 = false, f2 = null, d2 = false;
82
+ c2();
83
+ var l2 = new RegExp(v(a3), "g");
84
+ if ("string" == typeof e3 && (e3 = JSON.parse(e3)), Array.isArray(e3)) {
85
+ if (!e3.length || Array.isArray(e3[0])) return p2(null, e3, u2);
86
+ if ("object" == typeof e3[0]) return p2(f2 || Object.keys(e3[0]), e3, u2);
87
+ } else if ("object" == typeof e3) return "string" == typeof e3.data && (e3.data = JSON.parse(e3.data)), Array.isArray(e3.data) && (e3.fields || (e3.fields = e3.meta && e3.meta.fields || f2), e3.fields || (e3.fields = Array.isArray(e3.data[0]) ? e3.fields : "object" == typeof e3.data[0] ? Object.keys(e3.data[0]) : []), Array.isArray(e3.data[0]) || "object" == typeof e3.data[0] || (e3.data = [e3.data])), p2(e3.fields || [], e3.data || [], u2);
88
+ throw new Error("Unable to serialize unrecognized input");
89
+ function c2() {
90
+ if ("object" == typeof t2) {
91
+ if ("string" != typeof t2.delimiter || h.BAD_DELIMITERS.filter(function(e4) {
92
+ return -1 !== t2.delimiter.indexOf(e4);
93
+ }).length || (n3 = t2.delimiter), ("boolean" == typeof t2.quotes || "function" == typeof t2.quotes || Array.isArray(t2.quotes)) && (i3 = t2.quotes), "boolean" != typeof t2.skipEmptyLines && "string" != typeof t2.skipEmptyLines || (u2 = t2.skipEmptyLines), "string" == typeof t2.newline && (s3 = t2.newline), "string" == typeof t2.quoteChar && (a3 = t2.quoteChar), "boolean" == typeof t2.header && (r3 = t2.header), Array.isArray(t2.columns)) {
94
+ if (0 === t2.columns.length) throw new Error("Option columns is empty");
95
+ f2 = t2.columns;
96
+ }
97
+ void 0 !== t2.escapeChar && (o2 = t2.escapeChar + a3), t2.escapeFormulae instanceof RegExp ? d2 = t2.escapeFormulae : "boolean" == typeof t2.escapeFormulae && t2.escapeFormulae && (d2 = /^[=+\-@\t\r].*$/);
98
+ }
99
+ }
100
+ function p2(e4, t3, i4) {
101
+ var a4 = "";
102
+ "string" == typeof e4 && (e4 = JSON.parse(e4)), "string" == typeof t3 && (t3 = JSON.parse(t3));
103
+ var o3 = Array.isArray(e4) && e4.length > 0, h2 = !Array.isArray(t3[0]);
104
+ if (o3 && r3) {
105
+ for (var u3 = 0; u3 < e4.length; u3++) u3 > 0 && (a4 += n3), a4 += _2(e4[u3], u3);
106
+ t3.length > 0 && (a4 += s3);
107
+ }
108
+ for (var f3 = 0; f3 < t3.length; f3++) {
109
+ var d3 = o3 ? e4.length : t3[f3].length, l3 = false, c3 = o3 ? 0 === Object.keys(t3[f3]).length : 0 === t3[f3].length;
110
+ if (i4 && !o3 && (l3 = "greedy" === i4 ? "" === t3[f3].join("").trim() : 1 === t3[f3].length && 0 === t3[f3][0].length), "greedy" === i4 && o3) {
111
+ for (var p3 = [], g3 = 0; g3 < d3; g3++) {
112
+ var m2 = h2 ? e4[g3] : g3;
113
+ p3.push(t3[f3][m2]);
114
+ }
115
+ l3 = "" === p3.join("").trim();
116
+ }
117
+ if (!l3) {
118
+ for (var y2 = 0; y2 < d3; y2++) {
119
+ y2 > 0 && !c3 && (a4 += n3);
120
+ var v2 = o3 && h2 ? e4[y2] : y2;
121
+ a4 += _2(t3[f3][v2], y2);
122
+ }
123
+ f3 < t3.length - 1 && (!i4 || d3 > 0 && !c3) && (a4 += s3);
124
+ }
125
+ }
126
+ return a4;
127
+ }
128
+ function _2(e4, t3) {
129
+ if (null == e4) return "";
130
+ if (e4.constructor === Date) return JSON.stringify(e4).slice(1, 25);
131
+ var r4 = false;
132
+ d2 && "string" == typeof e4 && d2.test(e4) && (e4 = "'" + e4, r4 = true);
133
+ var s4 = e4.toString().replace(l2, o2);
134
+ return (r4 = r4 || true === i3 || "function" == typeof i3 && i3(e4, t3) || Array.isArray(i3) && i3[t3] || g2(s4, h.BAD_DELIMITERS) || s4.indexOf(n3) > -1 || " " === s4.charAt(0) || " " === s4.charAt(s4.length - 1)) ? a3 + s4 + a3 : s4;
135
+ }
136
+ function g2(e4, t3) {
137
+ for (var i4 = 0; i4 < t3.length; i4++) if (e4.indexOf(t3[i4]) > -1) return true;
138
+ return false;
139
+ }
140
+ }
141
+ function l(e3) {
142
+ function t2(e4) {
143
+ var t3 = S(e4);
144
+ t3.chunkSize = parseInt(t3.chunkSize), e4.step || e4.chunk || (t3.chunkSize = null), this._handle = new y(t3), this._handle.streamer = this, this._config = t3;
145
+ }
146
+ this._handle = null, this._finished = false, this._completed = false, this._halted = false, this._input = null, this._baseIndex = 0, this._partialLine = "", this._rowCount = 0, this._start = 0, this._nextChunk = null, this.isFirstChunk = true, this._completeResults = { data: [], errors: [], meta: {} }, t2.call(this, e3), this.parseChunk = function(e4, t3) {
147
+ const r3 = parseInt(this._config.skipFirstNLines) || 0;
148
+ if (this.isFirstChunk && r3 > 0) {
149
+ let t4 = this._config.newline;
150
+ if (!t4) {
151
+ const i4 = this._config.quoteChar || '"';
152
+ t4 = this._handle.guessLineEndings(e4, i4);
153
+ }
154
+ const i3 = e4.split(t4);
155
+ e4 = [...i3.slice(r3)].join(t4);
156
+ }
157
+ if (this.isFirstChunk && x(this._config.beforeFirstChunk)) {
158
+ var n3 = this._config.beforeFirstChunk(e4);
159
+ void 0 !== n3 && (e4 = n3);
160
+ }
161
+ this.isFirstChunk = false, this._halted = false;
162
+ var a3 = this._partialLine + e4;
163
+ this._partialLine = "";
164
+ var o2 = this._handle.parse(a3, this._baseIndex, !this._finished);
165
+ if (!this._handle.paused() && !this._handle.aborted()) {
166
+ var u2 = o2.meta.cursor;
167
+ this._finished || (this._partialLine = a3.substring(u2 - this._baseIndex), this._baseIndex = u2), o2 && o2.data && (this._rowCount += o2.data.length);
168
+ var f2 = this._finished || this._config.preview && this._rowCount >= this._config.preview;
169
+ if (s2) i2.postMessage({ results: o2, workerId: h.WORKER_ID, finished: f2 });
170
+ else if (x(this._config.chunk) && !t3) {
171
+ if (this._config.chunk(o2, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = true);
172
+ o2 = void 0, this._completeResults = void 0;
173
+ }
174
+ return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(o2.data), this._completeResults.errors = this._completeResults.errors.concat(o2.errors), this._completeResults.meta = o2.meta), this._completed || !f2 || !x(this._config.complete) || o2 && o2.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = true), f2 || o2 && o2.meta.paused || this._nextChunk(), o2;
175
+ }
176
+ this._halted = true;
177
+ }, this._sendError = function(e4) {
178
+ x(this._config.error) ? this._config.error(e4) : s2 && this._config.error && i2.postMessage({ workerId: h.WORKER_ID, error: e4, finished: false });
179
+ };
180
+ }
181
+ function c(e3) {
182
+ var t2;
183
+ function i3(e4) {
184
+ var t3 = e4.getResponseHeader("Content-Range");
185
+ return null === t3 ? -1 : parseInt(t3.substring(t3.lastIndexOf("/") + 1));
186
+ }
187
+ (e3 = e3 || {}).chunkSize || (e3.chunkSize = h.RemoteChunkSize), l.call(this, e3), this._nextChunk = n2 ? function() {
188
+ this._readChunk(), this._chunkLoaded();
189
+ } : function() {
190
+ this._readChunk();
191
+ }, this.stream = function(e4) {
192
+ this._input = e4, this._nextChunk();
193
+ }, this._readChunk = function() {
194
+ if (this._finished) this._chunkLoaded();
195
+ else {
196
+ if (t2 = new XMLHttpRequest(), this._config.withCredentials && (t2.withCredentials = this._config.withCredentials), n2 || (t2.onload = O(this._chunkLoaded, this), t2.onerror = O(this._chunkError, this)), t2.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !n2), this._config.downloadRequestHeaders) {
197
+ var e4 = this._config.downloadRequestHeaders;
198
+ for (var i4 in e4) t2.setRequestHeader(i4, e4[i4]);
199
+ }
200
+ if (this._config.chunkSize) {
201
+ var r3 = this._start + this._config.chunkSize - 1;
202
+ t2.setRequestHeader("Range", "bytes=" + this._start + "-" + r3);
203
+ }
204
+ try {
205
+ t2.send(this._config.downloadRequestBody);
206
+ } catch (e5) {
207
+ this._chunkError(e5.message);
208
+ }
209
+ n2 && 0 === t2.status && this._chunkError();
210
+ }
211
+ }, this._chunkLoaded = function() {
212
+ 4 === t2.readyState && (t2.status < 200 || t2.status >= 400 ? this._chunkError() : (this._start += this._config.chunkSize ? this._config.chunkSize : t2.responseText.length, this._finished = !this._config.chunkSize || this._start >= i3(t2), this.parseChunk(t2.responseText)));
213
+ }, this._chunkError = function(e4) {
214
+ var i4 = t2.statusText || e4;
215
+ this._sendError(new Error(i4));
216
+ };
217
+ }
218
+ function p(e3) {
219
+ var t2, i3;
220
+ (e3 = e3 || {}).chunkSize || (e3.chunkSize = h.LocalChunkSize), l.call(this, e3);
221
+ var r3 = "undefined" != typeof FileReader;
222
+ this.stream = function(e4) {
223
+ this._input = e4, i3 = e4.slice || e4.webkitSlice || e4.mozSlice, r3 ? ((t2 = new FileReader()).onload = O(this._chunkLoaded, this), t2.onerror = O(this._chunkError, this)) : t2 = new FileReaderSync(), this._nextChunk();
224
+ }, this._nextChunk = function() {
225
+ this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
226
+ }, this._readChunk = function() {
227
+ var e4 = this._input;
228
+ if (this._config.chunkSize) {
229
+ var n3 = Math.min(this._start + this._config.chunkSize, this._input.size);
230
+ e4 = i3.call(e4, this._start, n3);
231
+ }
232
+ var s3 = t2.readAsText(e4, this._config.encoding);
233
+ r3 || this._chunkLoaded({ target: { result: s3 } });
234
+ }, this._chunkLoaded = function(e4) {
235
+ this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(e4.target.result);
236
+ }, this._chunkError = function() {
237
+ this._sendError(t2.error);
238
+ };
239
+ }
240
+ function _(e3) {
241
+ var t2;
242
+ e3 = e3 || {}, l.call(this, e3), this.stream = function(e4) {
243
+ return t2 = e4, this._nextChunk();
244
+ }, this._nextChunk = function() {
245
+ if (!this._finished) {
246
+ var e4, i3 = this._config.chunkSize;
247
+ return i3 ? (e4 = t2.substring(0, i3), t2 = t2.substring(i3)) : (e4 = t2, t2 = ""), this._finished = !t2, this.parseChunk(e4);
248
+ }
249
+ };
250
+ }
251
+ function g(e3) {
252
+ e3 = e3 || {}, l.call(this, e3);
253
+ var t2 = [], i3 = true, r3 = false;
254
+ this.pause = function() {
255
+ l.prototype.pause.apply(this, arguments), this._input.pause();
256
+ }, this.resume = function() {
257
+ l.prototype.resume.apply(this, arguments), this._input.resume();
258
+ }, this.stream = function(e4) {
259
+ this._input = e4, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
260
+ }, this._checkIsFinished = function() {
261
+ r3 && 1 === t2.length && (this._finished = true);
262
+ }, this._nextChunk = function() {
263
+ this._checkIsFinished(), t2.length ? this.parseChunk(t2.shift()) : i3 = true;
264
+ }, this._streamData = O(function(e4) {
265
+ try {
266
+ t2.push("string" == typeof e4 ? e4 : e4.toString(this._config.encoding)), i3 && (i3 = false, this._checkIsFinished(), this.parseChunk(t2.shift()));
267
+ } catch (e5) {
268
+ this._streamError(e5);
269
+ }
270
+ }, this), this._streamError = O(function(e4) {
271
+ this._streamCleanUp(), this._sendError(e4);
272
+ }, this), this._streamEnd = O(function() {
273
+ this._streamCleanUp(), r3 = true, this._streamData("");
274
+ }, this), this._streamCleanUp = O(function() {
275
+ this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
276
+ }, this);
277
+ }
278
+ function m(e3) {
279
+ var i3 = t.Duplex, r3 = S(e3), n3 = true, s3 = false, a3 = [], o2 = null;
280
+ this._onCsvData = function(e4) {
281
+ var t2 = e4.data;
282
+ o2.push(t2) || this._handle.paused() || this._handle.pause();
283
+ }, this._onCsvComplete = function() {
284
+ o2.push(null);
285
+ }, r3.step = O(this._onCsvData, this), r3.complete = O(this._onCsvComplete, this), l.call(this, r3), this._nextChunk = function() {
286
+ s3 && 1 === a3.length && (this._finished = true), a3.length ? a3.shift()() : n3 = true;
287
+ }, this._addToParseQueue = function(e4, t2) {
288
+ a3.push(O(function() {
289
+ if (this.parseChunk("string" == typeof e4 ? e4 : e4.toString(r3.encoding)), x(t2)) return t2();
290
+ }, this)), n3 && (n3 = false, this._nextChunk());
291
+ }, this._onRead = function() {
292
+ this._handle.paused() && this._handle.resume();
293
+ }, this._onWrite = function(e4, t2, i4) {
294
+ this._addToParseQueue(e4, i4);
295
+ }, this._onWriteComplete = function() {
296
+ s3 = true, this._addToParseQueue("");
297
+ }, this.getStream = function() {
298
+ return o2;
299
+ }, (o2 = new i3({ readableObjectMode: true, decodeStrings: false, read: O(this._onRead, this), write: O(this._onWrite, this) })).once("finish", O(this._onWriteComplete, this));
300
+ }
301
+ function y(e3) {
302
+ var t2, i3, r3, n3 = Math.pow(2, 53), s3 = -n3, a3 = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, o2 = /^((\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)))$/, u2 = this, f2 = 0, d2 = 0, l2 = false, c2 = false, p2 = [], _2 = { data: [], errors: [], meta: {} };
303
+ if (x(e3.step)) {
304
+ var g2 = e3.step;
305
+ e3.step = function(t3) {
306
+ if (_2 = t3, E2()) b2();
307
+ else {
308
+ if (b2(), 0 === _2.data.length) return;
309
+ f2 += t3.data.length, e3.preview && f2 > e3.preview ? i3.abort() : (_2.data = _2.data[0], g2(_2, u2));
310
+ }
311
+ };
312
+ }
313
+ function m2(t3) {
314
+ return "greedy" === e3.skipEmptyLines ? "" === t3.join("").trim() : 1 === t3.length && 0 === t3[0].length;
315
+ }
316
+ function y2(e4) {
317
+ if (a3.test(e4)) {
318
+ var t3 = parseFloat(e4);
319
+ if (t3 > s3 && t3 < n3) return true;
320
+ }
321
+ return false;
322
+ }
323
+ function b2() {
324
+ return _2 && r3 && (A("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + h.DefaultDelimiter + "'"), r3 = false), e3.skipEmptyLines && (_2.data = _2.data.filter(function(e4) {
325
+ return !m2(e4);
326
+ })), E2() && w2(), O2();
327
+ }
328
+ function E2() {
329
+ return e3.header && 0 === p2.length;
330
+ }
331
+ function w2() {
332
+ if (_2) if (Array.isArray(_2.data[0])) {
333
+ for (var t3 = 0; E2() && t3 < _2.data.length; t3++) _2.data[t3].forEach(i4);
334
+ _2.data.splice(0, 1);
335
+ } else _2.data.forEach(i4);
336
+ function i4(t4, i5) {
337
+ x(e3.transformHeader) && (t4 = e3.transformHeader(t4, i5)), p2.push(t4);
338
+ }
339
+ }
340
+ function C2(t3) {
341
+ return e3.dynamicTypingFunction && void 0 === e3.dynamicTyping[t3] && (e3.dynamicTyping[t3] = e3.dynamicTypingFunction(t3)), true === (e3.dynamicTyping[t3] || e3.dynamicTyping);
342
+ }
343
+ function R2(e4, t3) {
344
+ return C2(e4) ? "true" === t3 || "TRUE" === t3 || "false" !== t3 && "FALSE" !== t3 && (y2(t3) ? parseFloat(t3) : o2.test(t3) ? new Date(t3) : "" === t3 ? null : t3) : t3;
345
+ }
346
+ function O2() {
347
+ if (!_2 || !e3.header && !e3.dynamicTyping && !e3.transform) return _2;
348
+ function t3(t4, i5) {
349
+ var r4, n4 = e3.header ? {} : [];
350
+ for (r4 = 0; r4 < t4.length; r4++) {
351
+ var s4 = r4, a4 = t4[r4];
352
+ e3.header && (s4 = r4 >= p2.length ? "__parsed_extra" : p2[r4]), e3.transform && (a4 = e3.transform(a4, s4)), a4 = R2(s4, a4), "__parsed_extra" === s4 ? (n4[s4] = n4[s4] || [], n4[s4].push(a4)) : n4[s4] = a4;
353
+ }
354
+ return e3.header && (r4 > p2.length ? A("FieldMismatch", "TooManyFields", "Too many fields: expected " + p2.length + " fields but parsed " + r4, d2 + i5) : r4 < p2.length && A("FieldMismatch", "TooFewFields", "Too few fields: expected " + p2.length + " fields but parsed " + r4, d2 + i5)), n4;
355
+ }
356
+ var i4 = 1;
357
+ return !_2.data.length || Array.isArray(_2.data[0]) ? (_2.data = _2.data.map(t3), i4 = _2.data.length) : _2.data = t3(_2.data, 0), e3.header && _2.meta && (_2.meta.fields = p2), d2 += i4, _2;
358
+ }
359
+ function T(t3, i4, r4, n4, s4) {
360
+ var a4, o3, u3, f3;
361
+ s4 = s4 || [",", " ", "|", ";", h.RECORD_SEP, h.UNIT_SEP];
362
+ for (var d3 = 0; d3 < s4.length; d3++) {
363
+ var l3 = s4[d3], c3 = 0, p3 = 0, _3 = 0;
364
+ u3 = void 0;
365
+ for (var g3 = new k({ comments: n4, delimiter: l3, newline: i4, preview: 10 }).parse(t3), y3 = 0; y3 < g3.data.length; y3++) if (r4 && m2(g3.data[y3])) _3++;
366
+ else {
367
+ var v2 = g3.data[y3].length;
368
+ p3 += v2, void 0 !== u3 ? v2 > 0 && (c3 += Math.abs(v2 - u3), u3 = v2) : u3 = v2;
369
+ }
370
+ g3.data.length > 0 && (p3 /= g3.data.length - _3), (void 0 === o3 || c3 <= o3) && (void 0 === f3 || p3 > f3) && p3 > 1.99 && (o3 = c3, a4 = l3, f3 = p3);
371
+ }
372
+ return e3.delimiter = a4, { successful: !!a4, bestDelimiter: a4 };
373
+ }
374
+ function A(e4, t3, i4, r4) {
375
+ var n4 = { type: e4, code: t3, message: i4 };
376
+ void 0 !== r4 && (n4.row = r4), _2.errors.push(n4);
377
+ }
378
+ this.parse = function(n4, s4, a4) {
379
+ var o3 = e3.quoteChar || '"';
380
+ if (e3.newline || (e3.newline = this.guessLineEndings(n4, o3)), r3 = false, e3.delimiter) x(e3.delimiter) && (e3.delimiter = e3.delimiter(n4), _2.meta.delimiter = e3.delimiter);
381
+ else {
382
+ var u3 = T(n4, e3.newline, e3.skipEmptyLines, e3.comments, e3.delimitersToGuess);
383
+ u3.successful ? e3.delimiter = u3.bestDelimiter : (r3 = true, e3.delimiter = h.DefaultDelimiter), _2.meta.delimiter = e3.delimiter;
384
+ }
385
+ var f3 = S(e3);
386
+ return e3.preview && e3.header && f3.preview++, t2 = n4, i3 = new k(f3), _2 = i3.parse(t2, s4, a4), b2(), l2 ? { meta: { paused: true } } : _2 || { meta: { paused: false } };
387
+ }, this.paused = function() {
388
+ return l2;
389
+ }, this.pause = function() {
390
+ l2 = true, i3.abort(), t2 = x(e3.chunk) ? "" : t2.substring(i3.getCharIndex());
391
+ }, this.resume = function() {
392
+ u2.streamer._halted ? (l2 = false, u2.streamer.parseChunk(t2, true)) : setTimeout(u2.resume, 3);
393
+ }, this.aborted = function() {
394
+ return c2;
395
+ }, this.abort = function() {
396
+ c2 = true, i3.abort(), _2.meta.aborted = true, x(e3.complete) && e3.complete(_2), t2 = "";
397
+ }, this.guessLineEndings = function(e4, t3) {
398
+ e4 = e4.substring(0, 1048576);
399
+ var i4 = new RegExp(v(t3) + "([^]*?)" + v(t3), "gm"), r4 = (e4 = e4.replace(i4, "")).split("\r"), n4 = e4.split("\n"), s4 = n4.length > 1 && n4[0].length < r4[0].length;
400
+ if (1 === r4.length || s4) return "\n";
401
+ for (var a4 = 0, o3 = 0; o3 < r4.length; o3++) "\n" === r4[o3][0] && a4++;
402
+ return a4 >= r4.length / 2 ? "\r\n" : "\r";
403
+ };
404
+ }
405
+ function v(e3) {
406
+ return e3.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
407
+ }
408
+ function k(e3) {
409
+ var t2, i3 = (e3 = e3 || {}).delimiter, r3 = e3.newline, n3 = e3.comments, s3 = e3.step, a3 = e3.preview, o2 = e3.fastMode, u2 = null, f2 = false, d2 = t2 = void 0 === e3.quoteChar || null === e3.quoteChar ? '"' : e3.quoteChar;
410
+ if (void 0 !== e3.escapeChar && (d2 = e3.escapeChar), ("string" != typeof i3 || h.BAD_DELIMITERS.indexOf(i3) > -1) && (i3 = ","), n3 === i3) throw new Error("Comment character same as delimiter");
411
+ true === n3 ? n3 = "#" : ("string" != typeof n3 || h.BAD_DELIMITERS.indexOf(n3) > -1) && (n3 = false), "\n" !== r3 && "\r" !== r3 && "\r\n" !== r3 && (r3 = "\n");
412
+ var l2 = 0, c2 = false;
413
+ this.parse = function(h2, p2, _2) {
414
+ if ("string" != typeof h2) throw new Error("Input must be a string");
415
+ var g2 = h2.length, m2 = i3.length, y2 = r3.length, k2 = n3.length, b2 = x(s3);
416
+ l2 = 0;
417
+ var E2 = [], w2 = [], C2 = [], R2 = 0;
418
+ if (!h2) return U();
419
+ if (o2 || false !== o2 && -1 === h2.indexOf(t2)) {
420
+ for (var S2 = h2.split(r3), O2 = 0; O2 < S2.length; O2++) {
421
+ if (C2 = S2[O2], l2 += C2.length, O2 !== S2.length - 1) l2 += r3.length;
422
+ else if (_2) return U();
423
+ if (!n3 || C2.substring(0, k2) !== n3) {
424
+ if (b2) {
425
+ if (E2 = [], j(C2.split(i3)), q(), c2) return U();
426
+ } else j(C2.split(i3));
427
+ if (a3 && O2 >= a3) return E2 = E2.slice(0, a3), U(true);
428
+ }
429
+ }
430
+ return U();
431
+ }
432
+ for (var T = h2.indexOf(i3, l2), A = h2.indexOf(r3, l2), D = new RegExp(v(d2) + v(t2), "g"), I = h2.indexOf(t2, l2); ; ) if (h2[l2] !== t2) if (n3 && 0 === C2.length && h2.substring(l2, l2 + k2) === n3) {
433
+ if (-1 === A) return U();
434
+ l2 = A + y2, A = h2.indexOf(r3, l2), T = h2.indexOf(i3, l2);
435
+ } else if (-1 !== T && (T < A || -1 === A)) C2.push(h2.substring(l2, T)), l2 = T + m2, T = h2.indexOf(i3, l2);
436
+ else {
437
+ if (-1 === A) break;
438
+ if (C2.push(h2.substring(l2, A)), M(A + y2), b2 && (q(), c2)) return U();
439
+ if (a3 && E2.length >= a3) return U(true);
440
+ }
441
+ else for (I = l2, l2++; ; ) {
442
+ if (-1 === (I = h2.indexOf(t2, I + 1))) return _2 || w2.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: E2.length, index: l2 }), z();
443
+ if (I === g2 - 1) return z(h2.substring(l2, I).replace(D, t2));
444
+ if (t2 !== d2 || h2[I + 1] !== d2) {
445
+ if (t2 === d2 || 0 === I || h2[I - 1] !== d2) {
446
+ -1 !== T && T < I + 1 && (T = h2.indexOf(i3, I + 1)), -1 !== A && A < I + 1 && (A = h2.indexOf(r3, I + 1));
447
+ var L = P(-1 === A ? T : Math.min(T, A));
448
+ if (h2.substr(I + 1 + L, m2) === i3) {
449
+ C2.push(h2.substring(l2, I).replace(D, t2)), l2 = I + 1 + L + m2, h2[I + 1 + L + m2] !== t2 && (I = h2.indexOf(t2, l2)), T = h2.indexOf(i3, l2), A = h2.indexOf(r3, l2);
450
+ break;
451
+ }
452
+ var F = P(A);
453
+ if (h2.substring(I + 1 + F, I + 1 + F + y2) === r3) {
454
+ if (C2.push(h2.substring(l2, I).replace(D, t2)), M(I + 1 + F + y2), T = h2.indexOf(i3, l2), I = h2.indexOf(t2, l2), b2 && (q(), c2)) return U();
455
+ if (a3 && E2.length >= a3) return U(true);
456
+ break;
457
+ }
458
+ w2.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: E2.length, index: l2 }), I++;
459
+ }
460
+ } else I++;
461
+ }
462
+ return z();
463
+ function j(e4) {
464
+ E2.push(e4), R2 = l2;
465
+ }
466
+ function P(e4) {
467
+ var t3 = 0;
468
+ if (-1 !== e4) {
469
+ var i4 = h2.substring(I + 1, e4);
470
+ i4 && "" === i4.trim() && (t3 = i4.length);
471
+ }
472
+ return t3;
473
+ }
474
+ function z(e4) {
475
+ return _2 || (void 0 === e4 && (e4 = h2.substring(l2)), C2.push(e4), l2 = g2, j(C2), b2 && q()), U();
476
+ }
477
+ function M(e4) {
478
+ l2 = e4, j(C2), C2 = [], A = h2.indexOf(r3, l2);
479
+ }
480
+ function U(t3) {
481
+ if (e3.header && !p2 && E2.length && !f2) {
482
+ const t4 = E2[0], i4 = /* @__PURE__ */ Object.create(null), r4 = new Set(t4);
483
+ let n4 = false;
484
+ for (let s4 = 0; s4 < t4.length; s4++) {
485
+ let a4 = t4[s4];
486
+ if (x(e3.transformHeader) && (a4 = e3.transformHeader(a4, s4)), i4[a4]) {
487
+ let e4, o3 = i4[a4];
488
+ do {
489
+ e4 = `${a4}_${o3}`, o3++;
490
+ } while (r4.has(e4));
491
+ r4.add(e4), t4[s4] = e4, i4[a4]++, n4 = true, null === u2 && (u2 = {}), u2[e4] = a4;
492
+ } else i4[a4] = 1, t4[s4] = a4;
493
+ r4.add(a4);
494
+ }
495
+ n4 && console.warn("Duplicate headers found and renamed."), f2 = true;
496
+ }
497
+ return { data: E2, errors: w2, meta: { delimiter: i3, linebreak: r3, aborted: c2, truncated: !!t3, cursor: R2 + (p2 || 0), renamedHeaders: u2 } };
498
+ }
499
+ function q() {
500
+ s3(U()), E2 = [], w2 = [];
501
+ }
502
+ }, this.abort = function() {
503
+ c2 = true;
504
+ }, this.getCharIndex = function() {
505
+ return l2;
506
+ };
507
+ }
508
+ function b() {
509
+ if (!h.WORKERS_SUPPORTED) return false;
510
+ var e3 = r2(), t2 = new i2.Worker(e3);
511
+ return t2.onmessage = E, t2.id = o++, a2[t2.id] = t2, t2;
512
+ }
513
+ function E(e3) {
514
+ var t2 = e3.data, i3 = a2[t2.workerId], r3 = false;
515
+ if (t2.error) i3.userError(t2.error, t2.file);
516
+ else if (t2.results && t2.results.data) {
517
+ var n3 = { abort: function() {
518
+ r3 = true, w(t2.workerId, { data: [], errors: [], meta: { aborted: true } });
519
+ }, pause: C, resume: C };
520
+ if (x(i3.userStep)) {
521
+ for (var s3 = 0; s3 < t2.results.data.length && (i3.userStep({ data: t2.results.data[s3], errors: t2.results.errors, meta: t2.results.meta }, n3), !r3); s3++) ;
522
+ delete t2.results;
523
+ } else x(i3.userChunk) && (i3.userChunk(t2.results, n3, t2.file), delete t2.results);
524
+ }
525
+ t2.finished && !r3 && w(t2.workerId, t2.results);
526
+ }
527
+ function w(e3, t2) {
528
+ var i3 = a2[e3];
529
+ x(i3.userComplete) && i3.userComplete(t2), i3.terminate(), delete a2[e3];
530
+ }
531
+ function C() {
532
+ throw new Error("Not implemented.");
533
+ }
534
+ function R(e3) {
535
+ var t2 = e3.data;
536
+ if (void 0 === h.WORKER_ID && t2 && (h.WORKER_ID = t2.workerId), "string" == typeof t2.input) i2.postMessage({ workerId: h.WORKER_ID, results: h.parse(t2.input, t2.config), finished: true });
537
+ else if (i2.File && t2.input instanceof File || t2.input instanceof Object) {
538
+ var r3 = h.parse(t2.input, t2.config);
539
+ r3 && i2.postMessage({ workerId: h.WORKER_ID, results: r3, finished: true });
540
+ }
541
+ }
542
+ function S(e3) {
543
+ if ("object" != typeof e3 || null === e3) return e3;
544
+ var t2 = Array.isArray(e3) ? [] : {};
545
+ for (var i3 in e3) t2[i3] = S(e3[i3]);
546
+ return t2;
547
+ }
548
+ function O(e3, t2) {
549
+ return function() {
550
+ e3.apply(t2, arguments);
551
+ };
552
+ }
553
+ function x(e3) {
554
+ return "function" == typeof e3;
555
+ }
556
+ return s2 && (i2.onmessage = R), c.prototype = Object.create(l.prototype), c.prototype.constructor = c, p.prototype = Object.create(l.prototype), p.prototype.constructor = p, _.prototype = Object.create(_.prototype), _.prototype.constructor = _, g.prototype = Object.create(l.prototype), g.prototype.constructor = g, "undefined" == typeof PAPA_BROWSER_CONTEXT && (m.prototype = Object.create(l.prototype), m.prototype.constructor = m), h;
557
+ }()), n.exports);
558
+ const a = i({ __proto__: null, default: e(s) }, [s]);
559
+ export {
560
+ a as p
561
+ };