@sheetxl/sdk 0.4.11 → 0.4.13

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 (104) hide show
  1. package/browser/cjs/{2U_vaFrfcRohWzeU.cjs → 99FHKXLdlCef5nfT.cjs} +1 -1
  2. package/browser/cjs/{kyw6u7fpNVXpqgsI.cjs → B5eveWag0dzzgkgX.cjs} +1 -1
  3. package/browser/cjs/{DHpCAbHLYqvLP0Z6.cjs → BJA1_CndBCMNr53J.cjs} +2 -2
  4. package/browser/cjs/{Cv7d06asyk54h4qg.cjs → BVE8RsCx6dH-PJ3G.cjs} +1 -1
  5. package/browser/cjs/{BdTk8Nhw8G_OzMbe.cjs → BbvyF-KASTBWusEs.cjs} +1 -1
  6. package/browser/cjs/{C9wOzvC_v6DonctC.cjs → BfAJd561Nzaudhz_.cjs} +1 -1
  7. package/browser/cjs/{C06jNASkAfV7kAJt.cjs → BlgZLqYSIZleOo8h.cjs} +1 -1
  8. package/browser/cjs/{CaFJIY4BbuoM7WDD.cjs → BpoOeB751mnCS6V-.cjs} +2 -2
  9. package/browser/cjs/{Yi2_Rw5GDVzd_VxU.cjs → CE7l7CfFaLMonVMB.cjs} +1 -1
  10. package/browser/cjs/{BAsFktGxZpUGmZLe.cjs → CHBhqMbMhjW9YdAF.cjs} +1 -1
  11. package/browser/cjs/{2nOrVMTAGGx_9TGL.cjs → CIJiAsckzAZgx8n4.cjs} +1 -1
  12. package/browser/cjs/{trblZTDJ1nAz0rWR.cjs → CgOy3BgHFueAFAeL.cjs} +1 -1
  13. package/browser/cjs/{CVXGzVLWLx2CJQm9.cjs → Cl0gNER1w9A58kbc.cjs} +3 -3
  14. package/browser/cjs/CmBrJtijpbCUSPWR.cjs +10 -0
  15. package/browser/cjs/{BEsz-1T9Bb9AaMYL.cjs → CuYGUMy7ROX5G_sm.cjs} +1 -1
  16. package/browser/cjs/{Bo-zjba28_CWMlTu.cjs → Czqso66RMuDka4LC.cjs} +1 -1
  17. package/browser/cjs/{1aBi7EjSv7rlHImN.cjs → D-NvwNeGLHGiv00z.cjs} +2 -2
  18. package/browser/cjs/{B_NhkERIkAJotIbp.cjs → DHVBvApvjbLRsOju.cjs} +1 -1
  19. package/browser/cjs/{B73Zu8_s9vFWOh_O.cjs → DORshTQEHNF0VHvp.cjs} +2 -2
  20. package/browser/cjs/{CcEyzUYgzJ50PUJe.cjs → DOptrVmGD_5mAjIJ.cjs} +1 -1
  21. package/browser/cjs/{36TOhwWf_rpUol3H.cjs → DRKq7WhWW37UIj1Q.cjs} +1 -1
  22. package/browser/cjs/{nQY-7MdNrbTu3EmK.cjs → DhWK7BDP7ZhYYPga.cjs} +1 -1
  23. package/browser/cjs/{ZJKVquWhB5WR-iPJ.cjs → DpSwAPYhahtG5EKw.cjs} +1 -1
  24. package/browser/cjs/{CMCnH7IuCm_auikF.cjs → DvioTOgF2jNUKBcT.cjs} +2 -2
  25. package/browser/cjs/{5zykq8Nm9_DGD2DJ.cjs → DwSf7lami5Uh2Uh6.cjs} +1 -1
  26. package/browser/cjs/{uyHKBD07R0GGZXep.cjs → Dy6R4NfGavsHaUnQ.cjs} +1 -1
  27. package/browser/cjs/{DNv6ybWP5Fldgc2s.cjs → HEI6Q0oyMX2A1gth.cjs} +1 -1
  28. package/browser/cjs/{7sNFPxy75NuqCDQh.cjs → _Lz_D28ElE-H04r8.cjs} +1 -1
  29. package/browser/cjs/{DDRgvBqROJxESdD7.cjs → hONph4eRHAvmiEYv.cjs} +1 -1
  30. package/browser/cjs/index.cjs +2 -2
  31. package/browser/cjs/{EU56rWjRMrkea9af.cjs → nQYA0VPzyPNFcvaF.cjs} +1 -1
  32. package/browser/cjs/{ZcKbNkAX98aqbRl3.cjs → pPrxgr769sUGB5WL.cjs} +1 -1
  33. package/browser/cjs/{Dl3IO1DS4B5jgpKI.cjs → sqCd-isdKO-WsW_F.cjs} +2 -2
  34. package/browser/cjs/{Ch3tbUYQx16tKF7k.cjs → xobXrowL2Qx-kWv9.cjs} +1 -1
  35. package/browser/esm/{DyvAZkeumXN8GHi4.mjs → 4lHZjpF3_ugmKKui.mjs} +1 -1
  36. package/browser/esm/{iKCrpPPbOnKlkUDb.mjs → 67bnWHzYa5DZMY6A.mjs} +1 -1
  37. package/browser/esm/{DS7nkzMuzXOAIPF2.mjs → BDYJEEaksgeY1UaE.mjs} +1 -1
  38. package/browser/esm/{BuUARF4geX1QlFaV.mjs → BG0zhw4ripZzsL-w.mjs} +1 -1
  39. package/browser/esm/{COIpRrbH0PIAxGAv.mjs → BOfILXwwP1BW8Bsw.mjs} +1 -1
  40. package/browser/esm/{CuVRE_tWXcHiZiqD.mjs → BPEwv5xX4DLnd-8o.mjs} +1 -1
  41. package/browser/esm/{Bv47rNz3qnYylQjD.mjs → BUeaoQihd7nbjV5D.mjs} +1 -1
  42. package/browser/esm/{DoolQNF8KdKfxJym.mjs → Bb8asJ4COo3sy4Gt.mjs} +1 -1
  43. package/browser/esm/{BHc7eG4nZizeMBb5.mjs → BbJAEyq0pAF7biF-.mjs} +1 -1
  44. package/browser/esm/{CK55N2ZgYHqyYvC2.mjs → BuoPWoEzsXvQsZFU.mjs} +1 -1
  45. package/browser/esm/{Dk8xANVVmSj4hMfy.mjs → By_8JXNSh9nnHyBW.mjs} +1 -1
  46. package/browser/esm/{A8C5de6v1CBMgJZq.mjs → C4K5CBXvVExqCdpa.mjs} +1 -1
  47. package/browser/esm/{lfu13YaazVLqtmeU.mjs → CKUiTXSrn9Xg_ph1.mjs} +1 -1
  48. package/browser/esm/{5w39mZuW-sWnmmdV.mjs → CLP8NgXNjnLl-iMQ.mjs} +1 -1
  49. package/browser/esm/{BVi-ZLSVMKE-zvx4.mjs → CVGuaXPdnO65bXE5.mjs} +1 -1
  50. package/browser/esm/{ChEVz9V1woVRX6WL.mjs → ClgHaEbC8eHvV73x.mjs} +1 -1
  51. package/browser/esm/{BEs22-ynP5XGO3w2.mjs → CoZh7nD_zQLfTNcp.mjs} +2 -2
  52. package/browser/esm/{Y5czqevaHtgUcl4L.mjs → D2jQMy8XvCDNeRaM.mjs} +1 -1
  53. package/browser/esm/{BsDRByzxyMQ1n9k6.mjs → D3D_Ad9RkEvBe7Wz.mjs} +2 -2
  54. package/browser/esm/{PVTl6mvmxvLJIzh9.mjs → D5dJ7VFFZvIOU2As.mjs} +1 -1
  55. package/browser/esm/{DkBcYI5GMfGWjMpw.mjs → D8vW0N6EH97lDhnP.mjs} +1 -1
  56. package/browser/esm/{BQCIUvZDEabV77HK.mjs → DB9YIl5l53cTx_qf.mjs} +2 -2
  57. package/browser/esm/{CW0tmrVd5h3U4RZa.mjs → DFbUKmUyr8XjG6uR.mjs} +1 -1
  58. package/browser/esm/{CM_TdYA35a4ZBdwx.mjs → DQ6InIROOs1_L5ez.mjs} +1 -1
  59. package/browser/esm/{B9JgD2n0XcFJj3bo.mjs → DROuUTBh0ijsxsde.mjs} +2 -2
  60. package/browser/esm/{DTfK5ukJi2A2cG4a.mjs → Dq1V1gMAXsC87zqO.mjs} +3 -3
  61. package/browser/esm/{s7QvhDE2kJkgBcZ8.mjs → Ds_YxbxItIu7PKA-.mjs} +1 -1
  62. package/browser/esm/{BO0ncqgpx-62w_oX.mjs → Ho-V23ZRWrnAVftS.mjs} +2 -2
  63. package/browser/esm/{C-CL0OoNkb1zC70z.mjs → bC-pS6WlvqHBcNXl.mjs} +1 -1
  64. package/browser/esm/index.mjs +2 -2
  65. package/browser/esm/{Du5u3LhdTaqIps_D.mjs → j21djw_rEjBtpjRd.mjs} +1 -1
  66. package/browser/esm/kXWocze33jAxVJq6.mjs +10 -0
  67. package/browser/esm/{1RkwhM87R80gyTMd.mjs → qi0568hNwcdjIMy6.mjs} +2 -2
  68. package/browser/esm/{DCgtfzoZVReua9he.mjs → yVExwiZwWE8vLSFO.mjs} +1 -1
  69. package/licenses/dependencies.txt +3 -3
  70. package/node/esm/{CFWQqFvDJMGXn8Qq.mjs → B-cEaNMrVscFjP28.mjs} +1 -1
  71. package/node/esm/{COCgGLfPgG-NG4Ei.mjs → BZScF0z5mvap-tCk.mjs} +1 -1
  72. package/node/esm/{DUlT61b-CgdPCdu7.mjs → Bb5FApoZ10dDGlM-.mjs} +1 -1
  73. package/node/esm/{KATYAmh0NIiQ-uaD.mjs → BmkbBs1Yla2RsZ_s.mjs} +1 -1
  74. package/node/esm/{DRM7eoEZII5c6Rbr.mjs → Bq3GEYeFkbO3vHHx.mjs} +1 -1
  75. package/node/esm/{uUNVoKRRBhW28hYx.mjs → C6FEsnCdmUvcIDzA.mjs} +1 -1
  76. package/node/esm/{CFsZ2V-cxUHf5_Sy.mjs → CBdo244r3xwae4_o.mjs} +1 -1
  77. package/node/esm/{p6tOM2g4fibuTbKy.mjs → CKO3kzDC1TBjmP6a.mjs} +1 -1
  78. package/node/esm/{DWlgrg4IlFnKTR6y.mjs → CoowIrBw0vTXnosY.mjs} +1 -1
  79. package/node/esm/{D90o-RTQ6VATF0Rk.mjs → CsI4IQyunxqLyMWY.mjs} +1 -1
  80. package/node/esm/{C9U5rfU-8XoDc_V8.mjs → DHJoU9KsVtSXERyd.mjs} +4 -4
  81. package/node/esm/{DLdBwr1RlyAhJCV0.mjs → DLDt1F5JzQq5aKdG.mjs} +1 -1
  82. package/node/esm/{BmYqJNOwK3UJW3Xe.mjs → DMhTOGJLYCiHGnjP.mjs} +1 -1
  83. package/node/esm/{QvMgUimFvzdL6-mo.mjs → DNLKWsIB7wfMRm8a.mjs} +2 -2
  84. package/node/esm/{D8Hpg5A5WcmsFCPu.mjs → DNTdUrrAs4YsX782.mjs} +1 -1
  85. package/node/esm/{CW0oFlrKt5Uj6nuK.mjs → DOdqJUKquKrouyJg.mjs} +1 -1
  86. package/node/esm/{jqWzWUQAPXE6S4pP.mjs → DQvu2JlpO07Yqcvx.mjs} +1 -1
  87. package/node/esm/{DSPiPnJGbhnNKLaY.mjs → DZl6ZagrmdiXKi9x.mjs} +1 -1
  88. package/node/esm/{JIc401vM9srbtF9d.mjs → Dlftv7TykJRVk7Wx.mjs} +1 -1
  89. package/node/esm/{CXrQQnxTwsX0wNvN.mjs → Dxqu9uwKDQHBrAqJ.mjs} +2 -2
  90. package/node/esm/{Cn1RL1hYSYnF25uZ.mjs → G0slAplR6jB1csaY.mjs} +1 -1
  91. package/node/esm/{DbLo1yZBy3dKaDrf.mjs → L0bRh78pniyMZ_3v.mjs} +1 -1
  92. package/node/esm/{DpmEPBmhU3gneOpb.mjs → axtXmmwYm1aHBXjg.mjs} +1 -1
  93. package/node/esm/{Cuk6l5jbAp5qG99L.mjs → cWKERSoNy_Mo5gOQ.mjs} +1 -1
  94. package/node/esm/{CfeR1dXEw7Hep352.mjs → dRD2c-s3aQJNoK6m.mjs} +1 -1
  95. package/node/esm/index.mjs +13 -9
  96. package/node/esm/{BMXFtr-jXZGBZS1-.mjs → j5mlBPjSlgnHX9pH.mjs} +1 -1
  97. package/node/esm/{3LAM4nbl-SF93GnL.mjs → k3luU7uFD82_cpo4.mjs} +3 -3
  98. package/node/esm/{Ck1Jwm7rnsCLVeO1.mjs → moaVD3gybeaMfy_q.mjs} +1 -1
  99. package/node/esm/{VINTYbFQolKKX9Cn.mjs → n0CrIZcZCwIu-yiw.mjs} +1 -1
  100. package/node/esm/{sroYp2c6WrIr_3vO.mjs → o47K-SM01hvIUrc0.mjs} +2 -2
  101. package/node/esm/{CnhQwEj214g59Jgw.mjs → tw0tbG4pvPai6vfe.mjs} +1 -1
  102. package/package.json +4 -4
  103. package/browser/cjs/DtBxSbHruNTMTsh-.cjs +0 -10
  104. package/browser/esm/CV82qaLuZfxcBBSy.mjs +0 -10
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.13
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.13
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- import{$ as e}from"./B9JgD2n0XcFJj3bo.mjs";var t,n,o;(n=t||(t={})).Orientation={Column:"column",Row:"row"},n.Orientations={...n.Orientation,Both:"both"},n.Direction={Up:"up",Down:"down",Left:"left",Right:"right"},(e=>{e.Code={Parse:0,Null:1,Div0:2,Value:3,Ref:4,Name:5,Num:6,NA:7,GettingData:8,Spill:9,Connect:10,Blocked:11,Unknown:12,Field:13,Calc:14,Busy:16,Python:19,Timeout:20},e.Label={Parse:"#PARSE!",Null:"#NULL!",Div0:"#DIV/0!",Value:"#VALUE!",Ref:"#REF!",Name:"#NAME?",Num:"#NUM!",NA:"#N/A",GettingData:"#GETTING_DATA",Spill:"#SPILL!",Connect:"#CONNECT!",Blocked:"#BLOCKED!",Unknown:"#UNKNOWN!",Field:"#FIELD!",Calc:"#CALC!",Busy:"#BUSY!",Python:"#PYTHON!",Timeout:"#TIMEOUT!"};class t extends Error{constructor(e,t,n,o){super(n,o),this._label=t,this._code=e,this.details=o}static{this.code=e.Code.Unknown}get isFormulaError(){return!0}getLabel(){return this._label}getCode(){return this._code}equals(e){return!!e&&(this._code===e._code||this._code===e.code)}get[Symbol.toStringTag](){return"[FormulaError]"}toString(){return this.message||this._label}}e.Known=t;class n extends t{constructor(t,n){super(e.Code.Parse,e.Label.Parse,t,n)}static{this.code=e.Code.Parse}getDetails(){const e=this.details;return{line:e?.line??1,column:e?.column??1,offset:e?.offset??0,length:e?.length??0}}}e.Parse=n;class o extends t{constructor(t,n){super(e.Code.Null,e.Label.Null,t,n)}static{this.code=e.Code.Null}}e.Null=o;class i extends t{constructor(t,n){super(e.Code.Div0,e.Label.Div0,t,n)}static{this.code=e.Code.Div0}}e.Div0=i;class r extends t{constructor(t,n){super(e.Code.Value,e.Label.Value,t,n)}static{this.code=e.Code.Value}}e.Value=r;class a extends t{constructor(t,n){super(e.Code.Ref,e.Label.Ref,t,n)}static{this.code=e.Code.Ref}}e.Ref=a;class s extends t{constructor(t,n){super(e.Code.Name,e.Label.Name,t,n)}static{this.code=e.Code.Name}}e.Name=s;class l extends t{constructor(t,n){super(e.Code.Num,e.Label.Num,t,n)}static{this.code=e.Code.Num}}e.Num=l;class c extends t{constructor(t,n){super(e.Code.NA,e.Label.NA,t,n)}static{this.code=e.Code.NA}}e.NA=c;class d extends t{constructor(t,n){super(e.Code.GettingData,e.Label.GettingData,t,n)}static{this.code=e.Code.GettingData}}e.GettingData=d;class u extends t{constructor(t,n){super(e.Code.Spill,e.Label.Spill,t,n)}static{this.code=e.Code.Spill}}e.Spill=u;class p extends t{constructor(t,n){super(e.Code.Connect,e.Label.Connect,t,n)}static{this.code=e.Code.Connect}}e.Connect=p;class m extends t{constructor(t,n){super(e.Code.Blocked,e.Label.Blocked,t,n)}static{this.code=e.Code.Blocked}}e.Blocked=m;class y extends t{constructor(t,n){super(e.Code.Unknown,e.Label.Unknown,t,n)}static{this.code=e.Code.Unknown}}e.Unknown=y;class f extends t{constructor(t,n){super(e.Code.Field,e.Label.Field,t,n)}static{this.code=e.Code.Field}}e.Field=f;class h extends t{constructor(t,n){super(e.Code.Calc,e.Label.Calc,t,n)}static{this.code=e.Code.Calc}}e.Calc=h;class g extends t{constructor(t,n){super(e.Code.Busy,e.Label.Busy,t,n)}static{this.code=e.Code.Busy}}e.Busy=g;class w extends t{constructor(t,n){super(e.Code.Python,e.Label.Python,t,n)}static{this.code=e.Code.Python}}e.Python=w;class C extends t{constructor(t,n){super(e.Code.Timeout,e.Label.Timeout,t,n)}static{this.code=e.Code.Timeout}}e.Timeout=C})(o||(o={}));const i={};i[o.Code.Parse]=o.Parse,i[o.Code.Null]=o.Null,i[o.Code.Div0]=o.Div0,i[o.Code.Value]=o.Value,i[o.Code.Ref]=o.Ref,i[o.Code.Name]=o.Name,i[o.Code.Num]=o.Num,i[o.Code.NA]=o.NA,i[o.Code.GettingData]=o.GettingData,i[o.Code.Spill]=o.Spill,i[o.Code.Connect]=o.Connect,i[o.Code.Blocked]=o.Blocked,i[o.Code.Unknown]=o.Unknown,i[o.Code.Field]=o.Field,i[o.Code.Calc]=o.Calc,i[o.Code.Busy]=o.Busy,i[o.Code.Python]=o.Python,i[o.Code.Timeout]=o.Timeout;const r=new Map,a=new Map,s=new Map,l=new Map,c=Object.keys(i);for(let e=0;e<c.length;e++){const t=c[e],n=i[t];s.set(o.Label[t],n),l.set(o.Code[t],n);const d=new n;r.set(d.getLabel(),d),a.set(d.getCode(),d)}const d=a.get(o.Code.Unknown);var u;(u=o||(o={})).BuiltIn={Parse:new u.Parse,Null:new u.Null,Div0:new u.Div0,Value:new u.Value,Ref:new u.Ref,Name:new u.Name,Num:new u.Num,NA:new u.NA,GettingData:new u.GettingData,Spill:new u.Spill,Connect:new u.Connect,Blocked:new u.Blocked,Unknown:new u.Unknown,Field:new u.Field,Calc:new u.Calc,Busy:new u.Busy,Python:new u.Python,Timeout:new u.Timeout},u.getBuiltInByLabel=e=>r.get(e),u.newTypedError=(e,t,n)=>{let o;return o="string"==typeof e?s.get(e):l.get(e),o||(o=u.Unknown),new o(t,n)},u.getBuiltInById=e=>a.get(e)||d;let p=null,m=null;const y={compilerOptions:{target:"esnext"}};const f=async()=>"\n interface FirstTest {\n isTrue?: boolean;\n }\n",h=new Map([["IReferenceRange","r"],["IRange","l"]]),g=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),w=(e,t)=>{Array.from(t.keys()).forEach(n=>{const o=t.get(n);t.set(`${e}.${n}`,o)})},C=new Map([["Scalar","*"],["FormulaError.Known","e"],["Date","Date"],["JSON","JSON"]]),x=new Map([]),b="SheetXL";w(b,h),w(b,g),w(b,x);const T=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let k=null;async function N(){if(k)return k;try{return await(await import("./Y5czqevaHtgUcl4L.mjs")).initialize()}catch(e){throw k=null,e}finally{k=null}}async function S(t){const n=t?.source??null;if(!n)return null;const o=(t.disableBundle||t.declarationsOnly)??!1,i=[f(),N()],r=await Promise.all(i),a=r[0],s=r[1];let l="",c=null;const d=[],u={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:s.ScriptTarget.ES2020},w="script",x=`${w}.ts`,b="lib.d.ts",k="global.d.ts",S={[x]:n,[b]:"\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface Promise<T> {\n /**\n * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The\n * resolved value cannot be modified from the callback.\n * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).\n * @returns A Promise for the completion of the callback.\n */\n finally(onfinally?: (() => void) | undefined | null): Promise<T>;\n}\n",[k]:a},E={getSourceFile:(e,t,n,o)=>s.createSourceFile(e,S[e],s.ScriptTarget.Latest,!0),fileExists:e=>void 0!==S[e],readFile:e=>S[e],writeFile:(e,t)=>{S[e]=t},getCurrentDirectory:()=>"./",getCanonicalFileName:e=>e,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:e=>b,getNewLine:()=>"\n"},L=s.createProgram([x,k],u,E),D=L.getTypeChecker(),v=L.getSourceFile(x),F=L.emit();F.diagnostics.length>0&&console.warn(F.diagnostics),l=S[`${w}.js`];const K=(e,t,n,o)=>{if(e){if(e.kind===s.SyntaxKind.NumberKeyword)t.scalar="n";else if(e.kind===s.SyntaxKind.StringKeyword)t.scalar="s";else if(e.kind===s.SyntaxKind.BooleanKeyword)t.scalar="b";else if(e.kind===s.SyntaxKind.UndefinedKeyword||e.kind===s.SyntaxKind.NullKeyword||e.kind===s.SyntaxKind.VoidKeyword){if(o)return void $(e,new Error(`'undefined' is not a valid type for input: '${e?.parent?.name?.escapedText}'.`));t.scalar="z"}else if(e.kind===s.SyntaxKind.BigIntKeyword)t.scalar="n";else if(e.kind===s.SyntaxKind.AnyKeyword)t.scalar="z";else if(e.kind===s.SyntaxKind.ArrayType){const i=e.elementType;if(!i)return void $(e,new Error(`'Array' must be typed: '${e?.parent?.name?.escapedText}'.`));t.arrayDepth=(t.arrayDepth??0)+1,K(i,t,n,o)}else if(e.kind!==s.SyntaxKind.TupleType&&e.kind===s.SyntaxKind.TypeReference){const i=e.typeName?.getText?.()??null,r=h.get(i);let a=!1;r&&(t.range=r,a=!0);const s=C.get(i);if(s&&(t.scalar=s),void 0!==s&&(a=!0),o){const e=g.get(i);if(e)return e}else{const n=T.get(i);if(n){const o={...t,...n()};let r=0;if(o.async&&r++,o.stream&&r++,r>1)return void $(e,new Error(`'${i}' cannot have multiple modifiers: '${e?.parent?.name?.escapedText}'.`));t=o,a=!0}}if(!a)return void $("node",new Error(`'${i}' is not a valid type: '${e?.parent?.name?.escapedText}'.`));const l=e.typeArguments;if(l){if(1!==l.length)return void $(e,new Error(`'${i}' must be typed with exactly 1 type: '${e?.parent?.name?.escapedText}'.`));K(l[0],t,n,o)}}}else $(e,new Error(`Type is not defined for '${t?.name??"return"}'.`))},P=[],$=(e,t)=>{P.push(t)};if(s.forEachChild(v,e=>{if(n=e,0!==(s.getCombinedModifierFlags(n)&s.ModifierFlags.Export)&&s.isFunctionDeclaration(e)){const n={},o={parameters:{}},i=e?.name?.getText();try{n.name=i;const r=D.getSymbolAtLocation(e.name).getDocumentationComment(D);if(r&&r.length>0&&r[0].text){let e=r[0].text;e=e.replace(/[\r\n]+/g,"\\n").trim(),o.summary=e}const a={};K(e.type,a,n,!1),n.returnType=a;const l={};t=e,0!==(s.getCombinedModifierFlags(t)&s.ModifierFlags.Default)&&(l.default=!0,c=i),Object.keys(l).length>0&&(n.behavior=l),n.parameters=[];const u=new Map;for(let t=0;t<e.parameters.length;t++){const i=e.parameters[t],r={};r.name=i.name?.getText();const a=K(i.type,r,n,!0);if(a){if(0!==n.parameters.length){const t=e?.parent,o=t?.name?.getText();return void $(e,new Error(`'${n.name}' contexts must be the first parameter: '${o}'.`))}n.context=a;continue}let l;if((void 0!==i.initializer&&null!==i.initializer||void 0!==i.questionToken&&null!==i.questionToken)&&(r.optional=!0,i.initializer))try{l=i.initializer.kind===s.SyntaxKind.StringLiteral?i.initializer.text:i.initializer.kind===s.SyntaxKind.NumericLiteral?parseFloat(i.initializer.text):i.initializer.kind===s.SyntaxKind.TrueKeyword||i.initializer.kind===s.SyntaxKind.FalseKeyword?i.initializer.kind===s.SyntaxKind.TrueKeyword:i.initializer.kind===s.SyntaxKind.NullKeyword?null:i.initializer.kind===s.SyntaxKind.ObjectLiteralExpression||i.initializer.kind===s.SyntaxKind.ArrayLiteralExpression?i.initializer.getText():i.initializer.getText?.()}catch(e){console.warn(`Couldn't extract default value for parameter '${r.name}'`,e)}i.dotDotDotToken&&(r.rest=!0),n.parameters.push(r);const c={description:""};o.parameters[r.name]=c;const d=D.getSymbolAtLocation(i.name).getDocumentationComment(D);d&&d.length>0&&d[0].text&&(c.description=d[0].text),void 0!==l&&(c.defaultValue=l),u.set(r.name,r)}if(e.jsDoc&&e.jsDoc.length>0){const t=e.jsDoc;for(let e=0;e<t.length;e++){const r=t[e]?.tags;if(r)for(let e=0;e<r.length;e++){const t=r[e];let a=t?.tagName?.text;if(!a)continue;a=a.toLowerCase();let l=t.comment;const c="hidden"===a;if(("string"==typeof l||c)&&("string"==typeof l&&(l=l.replace(/[\r\n]+/g,"\\n").trim()),c||!l||(l=l.split(/\\n/)[0],l&&0!==l.length))){if(l&&"string"==typeof l){const e=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let t,n=l,i=[];for(;null!==(t=e.exec(l));){const[e,n,o,i]=t,r=[o.trim()];i&&r.push(i.trim())}l=n,i.length>0&&"see"===a&&(o.links||(o.links=[]),o.links.push(...i))}if("name"===a){const e=l;e!==i&&(o.name=e)}else if("description"!==a)if("summary"===a){const e=l;e&&(o.summary=e)}else if("param"===a){const e=t.name?.text,n=u.get(e);if(!n){P.push(new Error(`Parameter '${e}' not found in function '${i}'.`));continue}if(t.typeExpression&&t.typeExpression.type)try{const e=t.typeExpression.type;if(e.kind===s.SyntaxKind.UnionType){const t=[];n.enums=t,e.types.forEach(e=>{if(e.kind===s.SyntaxKind.LiteralType){const n=e.literal.text;n&&t.push(n)}})}}catch(e){console.warn("Error parsing JSDoc type expression:",e)}}else if("returns"===a||"return"===a)n.returnType.description=l;else if("category"===a)o.category=l;else if("hidden"===a){let e=!0;const t=l?.toLowerCase();"false"===t?e=!1:"true"!==t&&(e=l),!1!==e&&(o.hidden=e??!0)}}}}}0===Object.keys(n.returnType).length&&delete n.returnType,d.push([n,o])}catch(t){$(e,new Error(`'${i}': ${t.message}`))}}var t,n}),P.length>0)throw console.warn(P),new Error("There were compilation errors.",{cause:P});if(0===d.length)throw new Error("No exported functions.");const B=`${e.uuidV4()}-script`;try{o||0!==P.length||(l=await async function(e,t,n="/script.js",o="__SHEETXL"){try{const e=await async function(){if(p)return p;if(m){if(await m,!p)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return p}let e,t;m=new Promise((n,o)=>{e=n,t=o});try{const{initialize:t}=await import("./lfu13YaazVLqtmeU.mjs");return p=await t(),e(),p}catch(e){throw console.error("Failed to import or initialize esbuild:",e),m=null,t(e),e}}(),i="@sheetxl/primitives",r=`\n export const FormulaContext = globalThis.${o}?.FormulaContext;\n export const ScalarType = globalThis.${o}?.ScalarType;\n export const Observable = globalThis.${o}?.Observable;\n export const IRange = globalThis.${o}?.IRange;\n export const FormulaError = globalThis.${o}?.FormulaError;\n // Add more exports as needed\n `,a={name:"sheetxl-esbuild-in-memory",setup(e){const o="sheetxl-"+(new Date).getTime();e.onResolve({filter:new RegExp(`^(${n.replace("/","\\/")}|${i})$`)},e=>({path:e.path,namespace:o})),e.onResolve({filter:/.*/},e=>{if(e.namespace!==o)return console.warn(`esbuild: Treating import "${e.path}" as external.`),{path:e.path,external:!0}}),e.onLoad({filter:/.*/,namespace:o},e=>{let a;if(e.path===n)a=t;else{if(e.path!==i)return{errors:[{text:`Cannot load unknown path in ${o}: ${e.path}`}]};a=r}return{contents:a,loader:"ts"}})}},s=await e.build({entryPoints:[n],bundle:!0,write:!1,format:"esm",plugins:[a],sourcemap:"inline",tsconfigRaw:y,minify:!0,platform:"neutral"});if(s.outputFiles&&s.outputFiles.length>0)return s.outputFiles[0].text;throw s.errors&&s.errors.length>0?new Error(`esbuild bundling failed: ${s.errors.map(e=>e.text).join("\n")}`):new Error("esbuild did not produce an output file.")}catch(e){throw console.error("esbuild bundling process failed:",e),e}}(0,l,w))}catch{console.warn("Error bundling script")}const R={functions:d,commitId:B,source:n,name:"Script",language:"typescript",compiled:l};return c&&(R.autoRun=c),R}export{S as compileModule};
7
+ import{$ as e}from"./DROuUTBh0ijsxsde.mjs";var t,n,o;(n=t||(t={})).Orientation={Column:"column",Row:"row"},n.Orientations={...n.Orientation,Both:"both"},n.Direction={Up:"up",Down:"down",Left:"left",Right:"right"},(e=>{e.Code={Parse:0,Null:1,Div0:2,Value:3,Ref:4,Name:5,Num:6,NA:7,GettingData:8,Spill:9,Connect:10,Blocked:11,Unknown:12,Field:13,Calc:14,Busy:16,Python:19,Timeout:20},e.Label={Parse:"#PARSE!",Null:"#NULL!",Div0:"#DIV/0!",Value:"#VALUE!",Ref:"#REF!",Name:"#NAME?",Num:"#NUM!",NA:"#N/A",GettingData:"#GETTING_DATA",Spill:"#SPILL!",Connect:"#CONNECT!",Blocked:"#BLOCKED!",Unknown:"#UNKNOWN!",Field:"#FIELD!",Calc:"#CALC!",Busy:"#BUSY!",Python:"#PYTHON!",Timeout:"#TIMEOUT!"};class t extends Error{constructor(e,t,n,o){super(n,o),this._label=t,this._code=e,this.details=o}static{this.code=e.Code.Unknown}get isFormulaError(){return!0}getLabel(){return this._label}getCode(){return this._code}equals(e){return!!e&&(this._code===e._code||this._code===e.code)}get[Symbol.toStringTag](){return"[FormulaError]"}toString(){return this.message||this._label}}e.Known=t;class n extends t{constructor(t,n){super(e.Code.Parse,e.Label.Parse,t,n)}static{this.code=e.Code.Parse}getDetails(){const e=this.details;return{line:e?.line??1,column:e?.column??1,offset:e?.offset??0,length:e?.length??0}}}e.Parse=n;class o extends t{constructor(t,n){super(e.Code.Null,e.Label.Null,t,n)}static{this.code=e.Code.Null}}e.Null=o;class i extends t{constructor(t,n){super(e.Code.Div0,e.Label.Div0,t,n)}static{this.code=e.Code.Div0}}e.Div0=i;class r extends t{constructor(t,n){super(e.Code.Value,e.Label.Value,t,n)}static{this.code=e.Code.Value}}e.Value=r;class a extends t{constructor(t,n){super(e.Code.Ref,e.Label.Ref,t,n)}static{this.code=e.Code.Ref}}e.Ref=a;class s extends t{constructor(t,n){super(e.Code.Name,e.Label.Name,t,n)}static{this.code=e.Code.Name}}e.Name=s;class l extends t{constructor(t,n){super(e.Code.Num,e.Label.Num,t,n)}static{this.code=e.Code.Num}}e.Num=l;class c extends t{constructor(t,n){super(e.Code.NA,e.Label.NA,t,n)}static{this.code=e.Code.NA}}e.NA=c;class d extends t{constructor(t,n){super(e.Code.GettingData,e.Label.GettingData,t,n)}static{this.code=e.Code.GettingData}}e.GettingData=d;class u extends t{constructor(t,n){super(e.Code.Spill,e.Label.Spill,t,n)}static{this.code=e.Code.Spill}}e.Spill=u;class p extends t{constructor(t,n){super(e.Code.Connect,e.Label.Connect,t,n)}static{this.code=e.Code.Connect}}e.Connect=p;class m extends t{constructor(t,n){super(e.Code.Blocked,e.Label.Blocked,t,n)}static{this.code=e.Code.Blocked}}e.Blocked=m;class y extends t{constructor(t,n){super(e.Code.Unknown,e.Label.Unknown,t,n)}static{this.code=e.Code.Unknown}}e.Unknown=y;class f extends t{constructor(t,n){super(e.Code.Field,e.Label.Field,t,n)}static{this.code=e.Code.Field}}e.Field=f;class h extends t{constructor(t,n){super(e.Code.Calc,e.Label.Calc,t,n)}static{this.code=e.Code.Calc}}e.Calc=h;class g extends t{constructor(t,n){super(e.Code.Busy,e.Label.Busy,t,n)}static{this.code=e.Code.Busy}}e.Busy=g;class w extends t{constructor(t,n){super(e.Code.Python,e.Label.Python,t,n)}static{this.code=e.Code.Python}}e.Python=w;class C extends t{constructor(t,n){super(e.Code.Timeout,e.Label.Timeout,t,n)}static{this.code=e.Code.Timeout}}e.Timeout=C})(o||(o={}));const i={};i[o.Code.Parse]=o.Parse,i[o.Code.Null]=o.Null,i[o.Code.Div0]=o.Div0,i[o.Code.Value]=o.Value,i[o.Code.Ref]=o.Ref,i[o.Code.Name]=o.Name,i[o.Code.Num]=o.Num,i[o.Code.NA]=o.NA,i[o.Code.GettingData]=o.GettingData,i[o.Code.Spill]=o.Spill,i[o.Code.Connect]=o.Connect,i[o.Code.Blocked]=o.Blocked,i[o.Code.Unknown]=o.Unknown,i[o.Code.Field]=o.Field,i[o.Code.Calc]=o.Calc,i[o.Code.Busy]=o.Busy,i[o.Code.Python]=o.Python,i[o.Code.Timeout]=o.Timeout;const r=new Map,a=new Map,s=new Map,l=new Map,c=Object.keys(i);for(let e=0;e<c.length;e++){const t=c[e],n=i[t];s.set(o.Label[t],n),l.set(o.Code[t],n);const d=new n;r.set(d.getLabel(),d),a.set(d.getCode(),d)}const d=a.get(o.Code.Unknown);var u;(u=o||(o={})).BuiltIn={Parse:new u.Parse,Null:new u.Null,Div0:new u.Div0,Value:new u.Value,Ref:new u.Ref,Name:new u.Name,Num:new u.Num,NA:new u.NA,GettingData:new u.GettingData,Spill:new u.Spill,Connect:new u.Connect,Blocked:new u.Blocked,Unknown:new u.Unknown,Field:new u.Field,Calc:new u.Calc,Busy:new u.Busy,Python:new u.Python,Timeout:new u.Timeout},u.getBuiltInByLabel=e=>r.get(e),u.newTypedError=(e,t,n)=>{let o;return o="string"==typeof e?s.get(e):l.get(e),o||(o=u.Unknown),new o(t,n)},u.getBuiltInById=e=>a.get(e)||d;let p=null,m=null;const y={compilerOptions:{target:"esnext"}};const f=async()=>"\n interface FirstTest {\n isTrue?: boolean;\n }\n",h=new Map([["IReferenceRange","r"],["IRange","l"]]),g=new Map([["IWorkbook","workbook"],["ISheet","sheet"],["ICellRanges","ranges"],["ICellRange","range"],["IFormulaContext","context"]]),w=(e,t)=>{Array.from(t.keys()).forEach(n=>{const o=t.get(n);t.set(`${e}.${n}`,o)})},C=new Map([["Scalar","*"],["FormulaError.Known","e"],["Date","Date"],["JSON","JSON"]]),x=new Map([]),b="SheetXL";w(b,h),w(b,g),w(b,x);const T=new Map([["Promise",()=>({async:!0})],["Observable",()=>({stream:!0})]]);let k=null;async function N(){if(k)return k;try{return await(await import("./D2jQMy8XvCDNeRaM.mjs")).initialize()}catch(e){throw k=null,e}finally{k=null}}async function S(t){const n=t?.source??null;if(!n)return null;const o=(t.disableBundle||t.declarationsOnly)??!1,i=[f(),N()],r=await Promise.all(i),a=r[0],s=r[1];let l="",c=null;const d=[],u={allowJs:!0,declaration:!1,sourceMap:!1,inlineSourceMap:!1,inlineSources:!1,isolatedModules:!0,preserveConstEnums:!1,module:99,noResolve:!0,emitDeclarationOnly:!1,target:s.ScriptTarget.ES2020},w="script",x=`${w}.ts`,b="lib.d.ts",k="global.d.ts",S={[x]:n,[b]:"\n/**\n * Represents the completion of an asynchronous operation\n */\ninterface Promise<T> {\n /**\n * Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The\n * resolved value cannot be modified from the callback.\n * @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).\n * @returns A Promise for the completion of the callback.\n */\n finally(onfinally?: (() => void) | undefined | null): Promise<T>;\n}\n",[k]:a},E={getSourceFile:(e,t,n,o)=>s.createSourceFile(e,S[e],s.ScriptTarget.Latest,!0),fileExists:e=>void 0!==S[e],readFile:e=>S[e],writeFile:(e,t)=>{S[e]=t},getCurrentDirectory:()=>"./",getCanonicalFileName:e=>e,useCaseSensitiveFileNames:()=>!0,getDefaultLibFileName:e=>b,getNewLine:()=>"\n"},L=s.createProgram([x,k],u,E),D=L.getTypeChecker(),v=L.getSourceFile(x),F=L.emit();F.diagnostics.length>0&&console.warn(F.diagnostics),l=S[`${w}.js`];const K=(e,t,n,o)=>{if(e){if(e.kind===s.SyntaxKind.NumberKeyword)t.scalar="n";else if(e.kind===s.SyntaxKind.StringKeyword)t.scalar="s";else if(e.kind===s.SyntaxKind.BooleanKeyword)t.scalar="b";else if(e.kind===s.SyntaxKind.UndefinedKeyword||e.kind===s.SyntaxKind.NullKeyword||e.kind===s.SyntaxKind.VoidKeyword){if(o)return void $(e,new Error(`'undefined' is not a valid type for input: '${e?.parent?.name?.escapedText}'.`));t.scalar="z"}else if(e.kind===s.SyntaxKind.BigIntKeyword)t.scalar="n";else if(e.kind===s.SyntaxKind.AnyKeyword)t.scalar="z";else if(e.kind===s.SyntaxKind.ArrayType){const i=e.elementType;if(!i)return void $(e,new Error(`'Array' must be typed: '${e?.parent?.name?.escapedText}'.`));t.arrayDepth=(t.arrayDepth??0)+1,K(i,t,n,o)}else if(e.kind!==s.SyntaxKind.TupleType&&e.kind===s.SyntaxKind.TypeReference){const i=e.typeName?.getText?.()??null,r=h.get(i);let a=!1;r&&(t.range=r,a=!0);const s=C.get(i);if(s&&(t.scalar=s),void 0!==s&&(a=!0),o){const e=g.get(i);if(e)return e}else{const n=T.get(i);if(n){const o={...t,...n()};let r=0;if(o.async&&r++,o.stream&&r++,r>1)return void $(e,new Error(`'${i}' cannot have multiple modifiers: '${e?.parent?.name?.escapedText}'.`));t=o,a=!0}}if(!a)return void $("node",new Error(`'${i}' is not a valid type: '${e?.parent?.name?.escapedText}'.`));const l=e.typeArguments;if(l){if(1!==l.length)return void $(e,new Error(`'${i}' must be typed with exactly 1 type: '${e?.parent?.name?.escapedText}'.`));K(l[0],t,n,o)}}}else $(e,new Error(`Type is not defined for '${t?.name??"return"}'.`))},P=[],$=(e,t)=>{P.push(t)};if(s.forEachChild(v,e=>{if(n=e,0!==(s.getCombinedModifierFlags(n)&s.ModifierFlags.Export)&&s.isFunctionDeclaration(e)){const n={},o={parameters:{}},i=e?.name?.getText();try{n.name=i;const r=D.getSymbolAtLocation(e.name).getDocumentationComment(D);if(r&&r.length>0&&r[0].text){let e=r[0].text;e=e.replace(/[\r\n]+/g,"\\n").trim(),o.summary=e}const a={};K(e.type,a,n,!1),n.returnType=a;const l={};t=e,0!==(s.getCombinedModifierFlags(t)&s.ModifierFlags.Default)&&(l.default=!0,c=i),Object.keys(l).length>0&&(n.behavior=l),n.parameters=[];const u=new Map;for(let t=0;t<e.parameters.length;t++){const i=e.parameters[t],r={};r.name=i.name?.getText();const a=K(i.type,r,n,!0);if(a){if(0!==n.parameters.length){const t=e?.parent,o=t?.name?.getText();return void $(e,new Error(`'${n.name}' contexts must be the first parameter: '${o}'.`))}n.context=a;continue}let l;if((void 0!==i.initializer&&null!==i.initializer||void 0!==i.questionToken&&null!==i.questionToken)&&(r.optional=!0,i.initializer))try{l=i.initializer.kind===s.SyntaxKind.StringLiteral?i.initializer.text:i.initializer.kind===s.SyntaxKind.NumericLiteral?parseFloat(i.initializer.text):i.initializer.kind===s.SyntaxKind.TrueKeyword||i.initializer.kind===s.SyntaxKind.FalseKeyword?i.initializer.kind===s.SyntaxKind.TrueKeyword:i.initializer.kind===s.SyntaxKind.NullKeyword?null:i.initializer.kind===s.SyntaxKind.ObjectLiteralExpression||i.initializer.kind===s.SyntaxKind.ArrayLiteralExpression?i.initializer.getText():i.initializer.getText?.()}catch(e){console.warn(`Couldn't extract default value for parameter '${r.name}'`,e)}i.dotDotDotToken&&(r.rest=!0),n.parameters.push(r);const c={description:""};o.parameters[r.name]=c;const d=D.getSymbolAtLocation(i.name).getDocumentationComment(D);d&&d.length>0&&d[0].text&&(c.description=d[0].text),void 0!==l&&(c.defaultValue=l),u.set(r.name,r)}if(e.jsDoc&&e.jsDoc.length>0){const t=e.jsDoc;for(let e=0;e<t.length;e++){const r=t[e]?.tags;if(r)for(let e=0;e<r.length;e++){const t=r[e];let a=t?.tagName?.text;if(!a)continue;a=a.toLowerCase();let l=t.comment;const c="hidden"===a;if(("string"==typeof l||c)&&("string"==typeof l&&(l=l.replace(/[\r\n]+/g,"\\n").trim()),c||!l||(l=l.split(/\\n/)[0],l&&0!==l.length))){if(l&&"string"==typeof l){const e=/\{@link(code|plain)?\s+([^}|]+)(?:\s*\|\s*([^}]+))?\}/g;let t,n=l,i=[];for(;null!==(t=e.exec(l));){const[e,n,o,i]=t,r=[o.trim()];i&&r.push(i.trim())}l=n,i.length>0&&"see"===a&&(o.links||(o.links=[]),o.links.push(...i))}if("name"===a){const e=l;e!==i&&(o.name=e)}else if("description"!==a)if("summary"===a){const e=l;e&&(o.summary=e)}else if("param"===a){const e=t.name?.text,n=u.get(e);if(!n){P.push(new Error(`Parameter '${e}' not found in function '${i}'.`));continue}if(t.typeExpression&&t.typeExpression.type)try{const e=t.typeExpression.type;if(e.kind===s.SyntaxKind.UnionType){const t=[];n.enums=t,e.types.forEach(e=>{if(e.kind===s.SyntaxKind.LiteralType){const n=e.literal.text;n&&t.push(n)}})}}catch(e){console.warn("Error parsing JSDoc type expression:",e)}}else if("returns"===a||"return"===a)n.returnType.description=l;else if("category"===a)o.category=l;else if("hidden"===a){let e=!0;const t=l?.toLowerCase();"false"===t?e=!1:"true"!==t&&(e=l),!1!==e&&(o.hidden=e??!0)}}}}}0===Object.keys(n.returnType).length&&delete n.returnType,d.push([n,o])}catch(t){$(e,new Error(`'${i}': ${t.message}`))}}var t,n}),P.length>0)throw console.warn(P),new Error("There were compilation errors.",{cause:P});if(0===d.length)throw new Error("No exported functions.");const B=`${e.uuidV4()}-script`;try{o||0!==P.length||(l=await async function(e,t,n="/script.js",o="__SHEETXL"){try{const e=await async function(){if(p)return p;if(m){if(await m,!p)throw new Error("ESBuild initialization promise resolved, but instance is not available.");return p}let e,t;m=new Promise((n,o)=>{e=n,t=o});try{const{initialize:t}=await import("./CKUiTXSrn9Xg_ph1.mjs");return p=await t(),e(),p}catch(e){throw console.error("Failed to import or initialize esbuild:",e),m=null,t(e),e}}(),i="@sheetxl/primitives",r=`\n export const FormulaContext = globalThis.${o}?.FormulaContext;\n export const ScalarType = globalThis.${o}?.ScalarType;\n export const Observable = globalThis.${o}?.Observable;\n export const IRange = globalThis.${o}?.IRange;\n export const FormulaError = globalThis.${o}?.FormulaError;\n // Add more exports as needed\n `,a={name:"sheetxl-esbuild-in-memory",setup(e){const o="sheetxl-"+(new Date).getTime();e.onResolve({filter:new RegExp(`^(${n.replace("/","\\/")}|${i})$`)},e=>({path:e.path,namespace:o})),e.onResolve({filter:/.*/},e=>{if(e.namespace!==o)return console.warn(`esbuild: Treating import "${e.path}" as external.`),{path:e.path,external:!0}}),e.onLoad({filter:/.*/,namespace:o},e=>{let a;if(e.path===n)a=t;else{if(e.path!==i)return{errors:[{text:`Cannot load unknown path in ${o}: ${e.path}`}]};a=r}return{contents:a,loader:"ts"}})}},s=await e.build({entryPoints:[n],bundle:!0,write:!1,format:"esm",plugins:[a],sourcemap:"inline",tsconfigRaw:y,minify:!0,platform:"neutral"});if(s.outputFiles&&s.outputFiles.length>0)return s.outputFiles[0].text;throw s.errors&&s.errors.length>0?new Error(`esbuild bundling failed: ${s.errors.map(e=>e.text).join("\n")}`):new Error("esbuild did not produce an output file.")}catch(e){throw console.error("esbuild bundling process failed:",e),e}}(0,l,w))}catch{console.warn("Error bundling script")}const R={functions:d,commitId:B,source:n,name:"Script",language:"typescript",compiled:l};return c&&(R.autoRun=c),R}export{S as compileModule};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.13
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
@@ -1,7 +1,7 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.13
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.
6
6
  */
7
- export{ah as AddressUtils,q as AnchorLocation,W as AutoFill,s as BufferUtils,ag as Calculation,w as ChainedError,M as ClipboardUtils,a1 as Color,u as CommonMessages,a as CommonUtils,j as CoordUtils,v as Deferred,x as Direction,ay as ExternalRangeClipboardItem,o as FormulaContext,n as FormulaError,U as GeomUtils,ac as IAnchored,ao as IAutoFilter,a2 as IBorder,af as ICalculation,ai as ICell,ak as ICellHeaderRange,aj as ICellRange,a0 as IColor,ap as IConditionalFormat,$ as IFill,Z as IFont,Y as IFontCollection,al as IMovable,ad as IPicture,X as IPrint,l as IRange,az as ISheet,aw as ISheetView,am as ISort,a7 as IStyle,aq as ITableStyle,a4 as IText,a5 as ITextFrame,as as ITheme,at as IThemeCollection,y as ImageUtils,P as InternalClipboard,z as JSONStableStringify,R as LicenseManager,A as MimeType,E as NotImplementedError,B as NullNotAllowedError,a6 as NumberFormat,C as Observable,D as OutOfBoundsError,G as PartialError,ae as Picture,ax as RangeClipboardItem,H as RangeOrientation,I as RangeOrientations,a9 as Resource,aa as ResourceCollection,e as ScalarType,aA as Sheet,_ as SimpleFontFace,an as Sort,ab as StringCollection,p as StubbedFormulaContext,a8 as StyleCollection,ar as Table,a3 as TextUtils,au as Theme,av as ThemeCollection,O as TransactionStore,Q as TransactionUndoManager,V as Tuple,S as TypedError,J as TypedObject,K as TypesUtils,L as UndoManager,N as UserError,aC as Workbook,aB as WorkbookView}from"./CV82qaLuZfxcBBSy.mjs";
7
+ export{ah as AddressUtils,q as AnchorLocation,W as AutoFill,s as BufferUtils,ag as Calculation,w as ChainedError,M as ClipboardUtils,a1 as Color,u as CommonMessages,a as CommonUtils,j as CoordUtils,v as Deferred,x as Direction,ay as ExternalRangeClipboardItem,o as FormulaContext,n as FormulaError,U as GeomUtils,ac as IAnchored,ao as IAutoFilter,a2 as IBorder,af as ICalculation,ai as ICell,ak as ICellHeaderRange,aj as ICellRange,a0 as IColor,ap as IConditionalFormat,$ as IFill,Z as IFont,Y as IFontCollection,al as IMovable,ad as IPicture,X as IPrint,l as IRange,az as ISheet,aw as ISheetView,am as ISort,a7 as IStyle,aq as ITableStyle,a4 as IText,a5 as ITextFrame,as as ITheme,at as IThemeCollection,y as ImageUtils,P as InternalClipboard,z as JSONStableStringify,R as LicenseManager,A as MimeType,E as NotImplementedError,B as NullNotAllowedError,a6 as NumberFormat,C as Observable,D as OutOfBoundsError,G as PartialError,ae as Picture,ax as RangeClipboardItem,H as RangeOrientation,I as RangeOrientations,a9 as Resource,aa as ResourceCollection,e as ScalarType,aA as Sheet,_ as SimpleFontFace,an as Sort,ab as StringCollection,p as StubbedFormulaContext,a8 as StyleCollection,ar as Table,a3 as TextUtils,au as Theme,av as ThemeCollection,O as TransactionStore,Q as TransactionUndoManager,V as Tuple,S as TypedError,J as TypedObject,K as TypesUtils,L as UndoManager,N as UserError,aC as Workbook,aB as WorkbookView}from"./kXWocze33jAxVJq6.mjs";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.11
2
+ * @license @sheetxl/sdk - SDK - A high-performance, embeddable spreadsheet engine. - v0.4.13
3
3
  *
4
4
  * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
5
  * License: The license can be found at https://www.sheetxl.com/license.