@sheetxl/studio-vanilla 0.4.9 → 0.4.11

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 (133) hide show
  1. package/README.md +1 -1
  2. package/browser/cjs/B0rdyyttE2Aibsag.cjs +7 -0
  3. package/browser/cjs/B2e7dDI-zKoqXpIW.cjs +107 -0
  4. package/browser/cjs/BAyEOOtO-9sHQQRW.cjs +7 -0
  5. package/browser/cjs/BPTHTRDvNOVkUJGa.cjs +7 -0
  6. package/browser/cjs/BlSFY6zLlebuejdV.cjs +7 -0
  7. package/browser/cjs/BplA5pDzOJpfTZuA.cjs +7 -0
  8. package/browser/cjs/BshvMtUxTJHj3JQN.cjs +7 -0
  9. package/browser/cjs/BuWtGFX0HiBezGjw.cjs +7 -0
  10. package/browser/cjs/C5FXOMLhAu_KTjVe.cjs +7 -0
  11. package/browser/cjs/C7EZCTczsC-gkRcq.cjs +7 -0
  12. package/browser/cjs/CFcjX5-nVsgzdZ4F.cjs +7 -0
  13. package/browser/cjs/CjZbhk41S1qO_74G.cjs +7 -0
  14. package/browser/cjs/CuTW2Pt-L5n-hNxV.cjs +7 -0
  15. package/browser/cjs/D3iOk-Q2tRdUeTcn.cjs +7 -0
  16. package/browser/cjs/DFspSkki779xN-Ey.cjs +7 -0
  17. package/browser/cjs/DFtyXc7YFh9dIp74.cjs +7 -0
  18. package/browser/cjs/Db_Ew1r6yOMYylvA.cjs +7 -0
  19. package/browser/cjs/DgBn3aW39yjgm0X_.cjs +7 -0
  20. package/browser/cjs/DiBy6-IxLscyMW2y.cjs +7 -0
  21. package/browser/cjs/DrlS1oz9Nea8Pm3j.cjs +7 -0
  22. package/browser/cjs/Dx-jp_LJxWbAScyA.cjs +7 -0
  23. package/browser/cjs/SzxJv7OUs5ojl8gx.cjs +7 -0
  24. package/browser/cjs/T4SHYo66xDT3l9JN.cjs +7 -0
  25. package/browser/cjs/index.cjs +4 -3
  26. package/browser/cjs/vfUix5Di0Ro8tEID.cjs +7 -0
  27. package/browser/esm/B5kkStdEkTczERyM.mjs +7 -0
  28. package/browser/esm/B905wKzTtod-jbsD.mjs +7 -0
  29. package/browser/esm/BALnKy2Fp7fyk-lc.mjs +7 -0
  30. package/browser/esm/BDVJ7eOPpW5FnEAP.mjs +7 -0
  31. package/browser/esm/BGpv6Kq7eBlJy43T.mjs +7 -0
  32. package/browser/esm/BUSR_OK5Qi6hRPfw.mjs +7 -0
  33. package/browser/esm/BXUGsC1Mo3FP8vnW.mjs +7 -0
  34. package/browser/esm/BlGoi1_x9rUMpWMd.mjs +7 -0
  35. package/browser/esm/Bo_ZPRrOQrqOVHAF.mjs +7 -0
  36. package/browser/esm/BuURCm92KsyGHG9e.mjs +7 -0
  37. package/browser/esm/CFFC0SNc24a0Dxnh.mjs +7 -0
  38. package/browser/esm/CGZ5MX7afzMxDkCe.mjs +7 -0
  39. package/browser/esm/Cc_VWd0wF5-39LsI.mjs +7 -0
  40. package/browser/esm/Cq8D_M0jeHLcnRjg.mjs +7 -0
  41. package/browser/esm/CzmNwV9tfFYUp_gS.mjs +7 -0
  42. package/browser/esm/De6RPxc4p_jXLlT5.mjs +7 -0
  43. package/browser/esm/DlVZFM9ZR5jGyG0_.mjs +7 -0
  44. package/browser/esm/DqXxZP6yKF4U1YfY.mjs +7 -0
  45. package/browser/esm/DtmE60AvstK9u0Ta.mjs +107 -0
  46. package/browser/esm/Dz2OVgq3kxi1TkfX.mjs +7 -0
  47. package/browser/esm/PS0cqYnlMVEGOQpI.mjs +7 -0
  48. package/browser/esm/QBGUD1XS5_pysBLL.mjs +7 -0
  49. package/browser/esm/index.mjs +2 -8
  50. package/browser/esm/tFhROdVSw9KLQfUN.mjs +7 -0
  51. package/browser/esm/uGDCdtqxjqRCo4Xn.mjs +7 -0
  52. package/cdn/index.js +40 -44
  53. package/cdn/loader.js +1 -1
  54. package/package.json +5 -5
  55. package/types/index.d.ts +9 -9
  56. package/browser/cjs/3GhIDU8JK1oBJrCA.cjs +0 -6
  57. package/browser/cjs/5hPVyVAXmITQCRAG.cjs +0 -6
  58. package/browser/cjs/7PlrLPQx1lct0mdN.cjs +0 -6
  59. package/browser/cjs/B4K6KuggSdXj-V8g.cjs +0 -6
  60. package/browser/cjs/B5Qc3gXLEhscRsFm.cjs +0 -12
  61. package/browser/cjs/B7eW1GQgFvphlLGY.cjs +0 -6
  62. package/browser/cjs/BQPFxJ77OaD_sBIX.cjs +0 -6
  63. package/browser/cjs/Ba3O1f0NYbzEwNAd.cjs +0 -6
  64. package/browser/cjs/BoojmbbjqixMVu2H.cjs +0 -6
  65. package/browser/cjs/CSGVl8EBCRhxcFm1.cjs +0 -15
  66. package/browser/cjs/CalnqtYH48_x2rcI.cjs +0 -301
  67. package/browser/cjs/CjDsO4sQWUHbIX1N.cjs +0 -6
  68. package/browser/cjs/CsCaFaiySArzEfdH.cjs +0 -7
  69. package/browser/cjs/D6AUUY9awlTRjjqd.cjs +0 -11
  70. package/browser/cjs/D8lN5Mv3J4SwSpLP.cjs +0 -161
  71. package/browser/cjs/D9RQ5oYv7U38wSI7.cjs +0 -11
  72. package/browser/cjs/DCd2rPNFkSHDaRcM.cjs +0 -7
  73. package/browser/cjs/DGQrcBvjSGwwoZEv.cjs +0 -6
  74. package/browser/cjs/DIXyMJKaeCGuWxjZ.cjs +0 -12
  75. package/browser/cjs/Dmw7xaaV85s72QZe.cjs +0 -145
  76. package/browser/cjs/DzCXPcqV1oKbCcLO.cjs +0 -16
  77. package/browser/cjs/EoaX6dPoS-Mb-ITO.cjs +0 -42
  78. package/browser/cjs/Y6OgkWqbIB761o5q.cjs +0 -6
  79. package/browser/cjs/gbABnN2zW1kHo3_I.cjs +0 -19
  80. package/browser/cjs/kfV5Cli9oE9IsCtx.cjs +0 -6
  81. package/browser/cjs/nURb18uhj9rScsHa.cjs +0 -6
  82. package/browser/esm/2NQDbhor1Nuzndgq.mjs +0 -3756
  83. package/browser/esm/4aC35Q2XPOwifBRR.mjs +0 -1365
  84. package/browser/esm/5zFDFBAgT-aPgQQ0.mjs +0 -1665
  85. package/browser/esm/B3I_TrFN_pAK5Mdh.mjs +0 -2346
  86. package/browser/esm/BD9GKsR-k4aEK2tx.mjs +0 -421
  87. package/browser/esm/BQpsMTJvguy6LMIq.mjs +0 -43
  88. package/browser/esm/BfCWogOnq8R-c3dD.mjs +0 -21
  89. package/browser/esm/BkGQPKMRPIVUVTLO.mjs +0 -944
  90. package/browser/esm/C81J50HcankGTOIj.mjs +0 -390
  91. package/browser/esm/CO_s27056nua6qzN.mjs +0 -1346
  92. package/browser/esm/CPEjlDUTxckVS1rp.mjs +0 -50
  93. package/browser/esm/CY7astxzrfb7uZqy.mjs +0 -2178
  94. package/browser/esm/CZVzRhflTpwAAl1o.mjs +0 -22
  95. package/browser/esm/CaWZXQsmKl4hTNq5.mjs +0 -46
  96. package/browser/esm/CxcLNXXaxyFyUzyb.mjs +0 -633
  97. package/browser/esm/D0icxW0WVNoeVRLH.mjs +0 -58
  98. package/browser/esm/DFQvqk5r1uf_z0h_.mjs +0 -24994
  99. package/browser/esm/DRL5s4S0fIXi1aU7.mjs +0 -84
  100. package/browser/esm/DRmeb1VC4YCzKKWd.mjs +0 -13208
  101. package/browser/esm/DTwhl4v5YnZrUSgI.mjs +0 -24
  102. package/browser/esm/DmpPAs6w-XNWGTIN.mjs +0 -1703
  103. package/browser/esm/Dx-GS3XDBkRaMNG-.mjs +0 -151
  104. package/browser/esm/V5CA7xqGOB7-Qx4Y.mjs +0 -1467
  105. package/browser/esm/gsfI5CGYr7LCQxRx.mjs +0 -41
  106. package/browser/esm/tOBqasyBAnd7O4qE.mjs +0 -46
  107. package/browser/esm/tPrnEcHW_czJDZOT.mjs +0 -50
  108. package/cdn/assets/2NQDbhor1Nuzndgq.js +0 -3756
  109. package/cdn/assets/4aC35Q2XPOwifBRR.js +0 -1365
  110. package/cdn/assets/5zFDFBAgT-aPgQQ0.js +0 -1665
  111. package/cdn/assets/B0w_moB3pDJd-a6V.js +0 -24
  112. package/cdn/assets/BD9GKsR-k4aEK2tx.js +0 -421
  113. package/cdn/assets/BJVOhUH_XL03H6ZD.js +0 -22
  114. package/cdn/assets/BWJOkXXB6Tr-jYUS.js +0 -46
  115. package/cdn/assets/BapFqJyAb3cblvJM.js +0 -50
  116. package/cdn/assets/Bg88bG-JM9EHeyYX.js +0 -41
  117. package/cdn/assets/C81J50HcankGTOIj.js +0 -390
  118. package/cdn/assets/CO_s27056nua6qzN.js +0 -1346
  119. package/cdn/assets/CXa9u-7w14dyPYxk.js +0 -1703
  120. package/cdn/assets/CkcETdiKdTsZAzma.js +0 -1467
  121. package/cdn/assets/CxcLNXXaxyFyUzyb.js +0 -633
  122. package/cdn/assets/D0PaU6F-TNaTWj-a.js +0 -43
  123. package/cdn/assets/D4hoypx6_sZbvrC_.js +0 -2346
  124. package/cdn/assets/D5exf1RvCqvUoJ3X.js +0 -2178
  125. package/cdn/assets/DKLitAhDj5Ibh2cc.js +0 -24841
  126. package/cdn/assets/DRL5s4S0fIXi1aU7.js +0 -84
  127. package/cdn/assets/DRmeb1VC4YCzKKWd.js +0 -13208
  128. package/cdn/assets/DYkBvlMlZjOASUJs.js +0 -58
  129. package/cdn/assets/ON5--a75QdEU99y_.js +0 -151
  130. package/cdn/assets/PIZDjyqIbvmHXs1T.js +0 -46
  131. package/cdn/assets/TOkIJFYhNg78FdJa.js +0 -21
  132. package/cdn/assets/b9dlFmoFz8tJhV0Z.js +0 -50
  133. package/cdn/assets/d1PG-QPA1GcQ_RuH.js +0 -944
@@ -1,11 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@sheetxl/sdk"),Ke=require("./CalnqtYH48_x2rcI.cjs"),Ye=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",bs=new RegExp(`^[${Ye}][-${Ye}.0-9·̀-ͯ‿-⁀]*$`,"u");function rs(i){return i>=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const ts="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌-‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-�𐀀-󯿿",xs=new RegExp(`^[${ts}][-${ts}.0-9·̀-ͯ‿-⁀]*$`,"u");function ns(i){return i>=65&&i<=90||i===95||i>=97&&i<=122||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}const U=function(i){return i===32||i===10||i===13||i===9},ws=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},re=rs,es=function(i){return rs(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256},as=[32,10,13,9],vs=bs,Ss=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},Cs=ns,ks=function(i){return ns(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256},As=xs,ge="http://www.w3.org/XML/1998/namespace",Zt="http://www.w3.org/2000/xmlns/",Es={__proto__:null,xml:ge,xmlns:Zt},Ds={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},O=-1,lt=-2,W=13,jt=33,ot=10,St=60,Gt=61,M=62,X=63,Jt=93,pe=i=>i===34||i===39,ls=[34,39],Ps=[...ls,91,M],Is=[...ls,St,Jt],Os=[Gt,X,...as],Vs=[...as,M,38,St];function ke(i,t,s){switch(t){case"xml":s!==ge&&i.fail(`xml prefix must be bound to ${ge}.`);break;case"xmlns":s!==Zt&&i.fail(`xmlns prefix must be bound to ${Zt}.`)}switch(s){case Zt:i.fail(t===""?`the default namespace may not be set to ${s}.`:`may not assign a prefix (even "xmlns") to the URI ${Zt}.`);break;case ge:switch(t){case"xml":break;case"":i.fail(`the default namespace may not be set to ${s}.`);break;default:i.fail("may not assign the xml namespace to another prefix.")}}}const Ns=i=>As.test(i),Ls=i=>vs.test(i),ss={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"};class Rs{constructor(t){this.i=0,this.prevI=0,this.opt=t??{},this.fragmentOpt=!!this.opt.fragment;const s=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,s){this.nameStartCheck=Cs,this.nameCheck=ks,this.isName=Ns,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns={__proto__:null,...Es};const o=this.opt.additionalNamespaces;o!=null&&(function(n,a){for(const c of Object.keys(a))ke(n,c,a[c])}(this,o),Object.assign(this.ns,o))}else this.nameStartCheck=re,this.nameCheck=es,this.isName=Ls,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}get closed(){return this._closed}_init(){this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];const{fragmentOpt:t}=this;this.state=t?W:0,this.reportedTextBeforeRoot=this.reportedTextAfterRoot=this.closedRoot=this.sawRoot=t,this.xmlDeclPossible=!t,this.xmlDeclExpects=["version"],this.entityReturnState=void 0;let{defaultXMLVersion:s}=this.opt;if(s===void 0){if(this.opt.forceXMLVersion===!0)throw new Error("forceXMLVersion set but defaultXMLVersion is not set");s="1.0"}this.setXMLVersion(s),this.positionAtNewLine=0,this.doctype=!1,this._closed=!1,this.xmlDecl={version:void 0,encoding:void 0,standalone:void 0},this.line=1,this.column=0,this.ENTITIES=Object.create(Ds),this.readyHandler?.()}get position(){return this.chunkPosition+this.i}get columnIndex(){return this.position-this.positionAtNewLine}on(t,s){this[ss[t]]=s}off(t){this[ss[t]]=void 0}makeError(t){let s=this.fileName??"";return this.trackPosition&&(s.length>0&&(s+=":"),s+=`${this.line}:${this.column}`),s.length>0&&(s+=": "),new Error(s+t)}fail(t){const s=this.makeError(t),o=this.errorHandler;if(o===void 0)throw s;return o(s),this}write(t){if(this.closed)return this.fail("cannot write after close; assign an onready handler.");let s=!1;t===null?(s=!0,t=""):typeof t=="object"&&(t=t.toString()),this.carriedFromPrevious!==void 0&&(t=`${this.carriedFromPrevious}${t}`,this.carriedFromPrevious=void 0);let o=t.length;const n=t.charCodeAt(o-1);!s&&(n===13||n>=55296&&n<=56319)&&(this.carriedFromPrevious=t[o-1],o--,t=t.slice(0,o));const{stateTable:a}=this;for(this.chunk=t,this.i=0;this.i<o;)a[this.state].call(this);return this.chunkPosition+=o,s?this.end():this}close(){return this.write(null)}getCode10(){const t=this.chunk,s=this.i;if(this.prevI=s,this.i++,s>=t.length)return O;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>=32||o===9)return o;switch(o){case ot:return this.line++,this.column=0,this.positionAtNewLine=this.position,ot;case 13:return t.charCodeAt(s+1)===ot&&(this.i=s+2),this.line++,this.column=0,this.positionAtNewLine=this.position,lt;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCode11(){const{chunk:t,i:s}=this;if(this.prevI=s,this.i=s+1,s>=t.length)return O;const o=t.charCodeAt(s);if(this.column++,o<55296){if(o>31&&o<127||o>159&&o!==8232||o===9)return o;switch(o){case ot:return this.line++,this.column=0,this.positionAtNewLine=this.position,ot;case 13:{const a=t.charCodeAt(s+1);a!==ot&&a!==133||(this.i=s+2)}case 133:case 8232:return this.line++,this.column=0,this.positionAtNewLine=this.position,lt;default:return this.fail("disallowed character."),o}}if(o>56319)return o>=57344&&o<=65533||this.fail("disallowed character."),o;const n=65536+1024*(o-55296)+(t.charCodeAt(s+1)-56320);return this.i=s+2,n>1114111&&this.fail("disallowed character."),n}getCodeNorm(){const t=this.getCode();return t===lt?ot:t}unget(){this.i=this.prevI,this.column--}captureTo(t){let{i:s}=this;const{chunk:o}=this;for(;;){const n=this.getCode(),a=n===lt,c=a?ot:n;if(c===O||t.includes(c))return this.text+=o.slice(s,this.prevI),c;a&&(this.text+=`${o.slice(s,this.prevI)}
7
- `,s=this.i)}}captureToChar(t){let{i:s}=this;const{chunk:o}=this;for(;;){let n=this.getCode();switch(n){case lt:this.text+=`${o.slice(s,this.prevI)}
8
- `,s=this.i,n=ot;break;case O:return this.text+=o.slice(s),!1}if(n===t)return this.text+=o.slice(s,this.prevI),!0}}captureNameChars(){const{chunk:t,i:s}=this;for(;;){const o=this.getCode();if(o===O)return this.name+=t.slice(s),O;if(!es(o))return this.name+=t.slice(s,this.prevI),o===lt?ot:o}}skipSpaces(){for(;;){const t=this.getCodeNorm();if(t===O||!U(t))return t}}setXMLVersion(t){this.currentXMLVersion=t,t==="1.0"?(this.isChar=ws,this.getCode=this.getCode10):(this.isChar=Ss,this.getCode=this.getCode11)}sBegin(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}sBeginWhitespace(){const t=this.i,s=this.skipSpaces();switch(this.prevI!==t&&(this.xmlDeclPossible=!1),s){case St:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case O:break;default:this.unget(),this.state=W,this.xmlDeclPossible=!1}}sDoctype(){const t=this.captureTo(Ps);switch(t){case M:this.doctypeHandler?.(this.text),this.text="",this.state=W,this.doctype=!0;break;case O:break;default:this.text+=String.fromCodePoint(t),t===91?this.state=4:pe(t)&&(this.state=3,this.q=t)}}sDoctypeQuote(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.q=null,this.state=2)}sDTD(){const t=this.captureTo(Is);t!==O&&(this.text+=String.fromCodePoint(t),t===Jt?this.state=2:t===St?this.state=6:pe(t)&&(this.state=5,this.q=t))}sDTDQuoted(){const t=this.q;this.captureToChar(t)&&(this.text+=String.fromCodePoint(t),this.state=4,this.q=null)}sDTDOpenWaka(){const t=this.getCodeNorm();switch(this.text+=String.fromCodePoint(t),t){case 33:this.state=7,this.openWakaBang="";break;case X:this.state=11;break;default:this.state=4}}sDTDOpenWakaBang(){const t=String.fromCodePoint(this.getCodeNorm()),s=this.openWakaBang+=t;this.text+=t,s!=="-"&&(this.state=s==="--"?8:4,this.openWakaBang="")}sDTDComment(){this.captureToChar(45)&&(this.text+="-",this.state=9)}sDTDCommentEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),this.state=t===45?10:8}sDTDCommentEnded(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===M?this.state=4:(this.fail("malformed comment."),this.state=8)}sDTDPI(){this.captureToChar(X)&&(this.text+="?",this.state=12)}sDTDPIEnding(){const t=this.getCodeNorm();this.text+=String.fromCodePoint(t),t===M&&(this.state=4)}sText(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}sEntity(){let{i:t}=this;const{chunk:s}=this;t:for(;;)switch(this.getCode()){case lt:this.entity+=`${s.slice(t,this.prevI)}
9
- `,t=this.i;break;case 59:{const{entityReturnState:o}=this,n=this.entity+s.slice(t,this.prevI);let a;this.state=o,n===""?(this.fail("empty entity name."),a="&;"):(a=this.parseEntity(n),this.entity=""),o===W&&this.textHandler===void 0||(this.text+=a);break t}case O:this.entity+=s.slice(t);break t}}sOpenWaka(){const t=this.getCode();if(re(t))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(t){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case X:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=W,this.xmlDeclPossible=!1}}sOpenWakaBang(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}sComment(){this.captureToChar(45)&&(this.state=18)}sCommentEnding(){const t=this.getCodeNorm();t===45?(this.state=19,this.commentHandler?.(this.text),this.text=""):(this.text+=`-${String.fromCodePoint(t)}`,this.state=17)}sCommentEnded(){const t=this.getCodeNorm();t!==M?(this.fail("malformed comment."),this.text+=`--${String.fromCodePoint(t)}`,this.state=17):this.state=W}sCData(){this.captureToChar(Jt)&&(this.state=21)}sCDataEnding(){const t=this.getCodeNorm();t===Jt?this.state=22:(this.text+=`]${String.fromCodePoint(t)}`,this.state=20)}sCDataEnding2(){const t=this.getCodeNorm();switch(t){case M:this.cdataHandler?.(this.text),this.text="",this.state=W;break;case Jt:this.text+="]";break;default:this.text+=`]]${String.fromCodePoint(t)}`,this.state=20}}sPIFirstChar(){const t=this.getCodeNorm();this.nameStartCheck(t)?(this.piTarget+=String.fromCodePoint(t),this.state=24):t===X||U(t)?(this.fail("processing instruction without a target."),this.state=t===X?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(t),this.state=24)}sPIRest(){const{chunk:t,i:s}=this;for(;;){const o=this.getCodeNorm();if(o===O)return void(this.piTarget+=t.slice(s));if(!this.nameCheck(o)){this.piTarget+=t.slice(s,this.prevI);const n=o===X;n||U(o)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=n?jt:27):this.state=n?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(o));break}}}sPIBody(){if(this.text.length===0){const t=this.getCodeNorm();t===X?this.state=26:U(t)||(this.text=String.fromCodePoint(t))}else this.captureToChar(X)&&(this.state=26)}sPIEnding(){const t=this.getCodeNorm();if(t===M){const{piTarget:s}=this;s.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),this.piHandler?.({target:s,body:this.text}),this.piTarget=this.text="",this.state=W}else t===X?this.text+="?":(this.text+=`?${String.fromCodePoint(t)}`,this.state=25);this.xmlDeclPossible=!1}sXMLDeclNameStart(){const t=this.skipSpaces();t!==X?t!==O&&(this.state=28,this.name=String.fromCodePoint(t)):this.state=jt}sXMLDeclName(){const t=this.captureTo(Os);if(t===X)return this.state=jt,this.name+=this.text,this.text="",void this.fail("XML declaration is incomplete.");if(U(t)||t===Gt){if(this.name+=this.text,this.text="",!this.xmlDeclExpects.includes(this.name))switch(this.name.length){case 0:this.fail("did not expect any more name/value pairs.");break;case 1:this.fail(`expected the name ${this.xmlDeclExpects[0]}.`);break;default:this.fail(`expected one of ${this.xmlDeclExpects.join(", ")}`)}this.state=t===Gt?30:29}}sXMLDeclEq(){const t=this.getCodeNorm();if(t===X)return this.state=jt,void this.fail("XML declaration is incomplete.");U(t)||(t!==Gt&&this.fail("value required."),this.state=30)}sXMLDeclValueStart(){const t=this.getCodeNorm();if(t===X)return this.state=jt,void this.fail("XML declaration is incomplete.");U(t)||(pe(t)?this.q=t:(this.fail("value must be quoted."),this.q=32),this.state=31)}sXMLDeclValue(){const t=this.captureTo([this.q,X]);if(t===X)return this.state=jt,this.text="",void this.fail("XML declaration is incomplete.");if(t===O)return;const s=this.text;switch(this.text="",this.name){case"version":{this.xmlDeclExpects=["encoding","standalone"];const o=s;this.xmlDecl.version=o,/^1\.[0-9]+$/.test(o)?this.opt.forceXMLVersion||this.setXMLVersion(o):this.fail("version number must match /^1\\.[0-9]+$/.");break}case"encoding":/^[A-Za-z][A-Za-z0-9._-]*$/.test(s)||this.fail("encoding value must match /^[A-Za-z0-9][A-Za-z0-9._-]*$/."),this.xmlDeclExpects=["standalone"],this.xmlDecl.encoding=s;break;case"standalone":s!=="yes"&&s!=="no"&&this.fail('standalone value must match "yes" or "no".'),this.xmlDeclExpects=[],this.xmlDecl.standalone=s}this.name="",this.state=32}sXMLDeclSeparator(){const t=this.getCodeNorm();t!==X?(U(t)||(this.fail("whitespace required."),this.unget()),this.state=27):this.state=jt}sXMLDeclEnding(){this.getCodeNorm()===M?(this.piTarget!=="xml"?this.fail("processing instructions are not allowed before root."):this.name!=="version"&&this.xmlDeclExpects.includes("version")&&this.fail("XML declaration must contain a version."),this.xmldeclHandler?.(this.xmlDecl),this.name="",this.piTarget=this.text="",this.state=W):this.fail("The character ? is disallowed anywhere in XML declarations."),this.xmlDeclPossible=!1}sOpenTag(){const t=this.captureNameChars();if(t===O)return;const s=this.tag={name:this.name,attributes:Object.create(null)};switch(this.name="",this.xmlnsOpt&&(this.topNS=s.ns=Object.create(null)),this.openTagStartHandler?.(s),this.sawRoot=!0,!this.fragmentOpt&&this.closedRoot&&this.fail("documents may contain only one root."),t){case M:this.openTag();break;case 47:this.state=35;break;default:U(t)||this.fail("disallowed character in tag name."),this.state=36}}sOpenTagSlash(){this.getCode()===M?this.openSelfClosingTag():(this.fail("forward-slash in opening tag not followed by >."),this.state=36)}sAttrib(){const t=this.skipSpaces();t!==O&&(re(t)?(this.unget(),this.state=37):t===M?this.openTag():t===47?this.state=35:this.fail("disallowed character in attribute name."))}sAttribName(){const t=this.captureNameChars();t===Gt?this.state=39:U(t)?this.state=38:t===M?(this.fail("attribute without value."),this.pushAttrib(this.name,this.name),this.name=this.text="",this.openTag()):t!==O&&this.fail("disallowed character in attribute name.")}sAttribNameSawWhite(){const t=this.skipSpaces();switch(t){case O:return;case Gt:this.state=39;break;default:this.fail("attribute without value."),this.text="",this.name="",t===M?this.openTag():re(t)?(this.unget(),this.state=37):(this.fail("disallowed character in attribute name."),this.state=36)}}sAttribValue(){const t=this.getCodeNorm();pe(t)?(this.q=t,this.state=40):U(t)||(this.fail("unquoted attribute value."),this.state=42,this.unget())}sAttribValueQuoted(){const{q:t,chunk:s}=this;let{i:o}=this;for(;;)switch(this.getCode()){case t:return this.pushAttrib(this.name,this.text+s.slice(o,this.prevI)),this.name=this.text="",this.q=null,void(this.state=41);case 38:return this.text+=s.slice(o,this.prevI),this.state=14,void(this.entityReturnState=40);case ot:case lt:case 9:this.text+=`${s.slice(o,this.prevI)} `,o=this.i;break;case St:return this.text+=s.slice(o,this.prevI),void this.fail("disallowed character.");case O:return void(this.text+=s.slice(o))}}sAttribValueClosed(){const t=this.getCodeNorm();U(t)?this.state=36:t===M?this.openTag():t===47?this.state=35:re(t)?(this.fail("no whitespace between attributes."),this.unget(),this.state=37):this.fail("disallowed character in attribute name.")}sAttribValueUnquoted(){const t=this.captureTo(Vs);switch(t){case 38:this.state=14,this.entityReturnState=42;break;case St:this.fail("disallowed character.");break;case O:break;default:this.text.includes("]]>")&&this.fail('the string "]]>" is disallowed in char data.'),this.pushAttrib(this.name,this.text),this.name=this.text="",t===M?this.openTag():this.state=36}}sCloseTag(){const t=this.captureNameChars();t===M?this.closeTag():U(t)?this.state=44:t!==O&&this.fail("disallowed character in closing tag.")}sCloseTagSawWhite(){switch(this.skipSpaces()){case M:this.closeTag();break;case O:break;default:this.fail("disallowed character in closing tag.")}}handleTextInRoot(){let{i:t,forbiddenState:s}=this;const{chunk:o,textHandler:n}=this;t:for(;;)switch(this.getCode()){case St:if(this.state=15,n!==void 0){const{text:a}=this,c=o.slice(t,this.prevI);a.length!==0?(n(a+c),this.text=""):c.length!==0&&n(c)}s=0;break t;case 38:this.state=14,this.entityReturnState=W,n!==void 0&&(this.text+=o.slice(t,this.prevI)),s=0;break t;case Jt:switch(s){case 0:s=1;break;case 1:s=2;break;case 2:break;default:throw new Error("impossible state")}break;case M:s===2&&this.fail('the string "]]>" is disallowed in char data.'),s=0;break;case lt:n!==void 0&&(this.text+=`${o.slice(t,this.prevI)}
10
- `),t=this.i,s=0;break;case O:n!==void 0&&(this.text+=o.slice(t));break t;default:s=0}this.forbiddenState=s}handleTextOutsideRoot(){let{i:t}=this;const{chunk:s,textHandler:o}=this;let n=!1;t:for(;;){const a=this.getCode();switch(a){case St:if(this.state=15,o!==void 0){const{text:c}=this,T=s.slice(t,this.prevI);c.length!==0?(o(c+T),this.text=""):T.length!==0&&o(T)}break t;case 38:this.state=14,this.entityReturnState=W,o!==void 0&&(this.text+=s.slice(t,this.prevI)),n=!0;break t;case lt:o!==void 0&&(this.text+=`${s.slice(t,this.prevI)}
11
- `),t=this.i;break;case O:o!==void 0&&(this.text+=s.slice(t));break t;default:U(a)||(n=!0)}}n&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}pushAttribNS(t,s){const{prefix:o,local:n}=this.qname(t),a={name:t,prefix:o,local:n,value:s};if(this.attribList.push(a),this.attributeHandler?.(a),o==="xmlns"){const c=s.trim();this.currentXMLVersion==="1.0"&&c===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[n]=c,ke(this,n,c)}else if(t==="xmlns"){const c=s.trim();this.topNS[""]=c,ke(this,"",c)}}pushAttribPlain(t,s){const o={name:t,value:s};this.attribList.push(o),this.attributeHandler?.(o)}end(){this.sawRoot||this.fail("document must contain a root element.");const{tags:t}=this;for(;t.length>0;){const o=t.pop();this.fail(`unclosed tag: ${o.name}`)}this.state!==0&&this.state!==W&&this.fail("unexpected end.");const{text:s}=this;return s.length!==0&&(this.textHandler?.(s),this.text=""),this._closed=!0,this.endHandler?.(),this._init(),this}resolve(t){let s=this.topNS[t];if(s!==void 0)return s;const{tags:o}=this;for(let n=o.length-1;n>=0;n--)if(s=o[n].ns[t],s!==void 0)return s;return s=this.ns[t],s!==void 0?s:this.opt.resolvePrefix?.(t)}qname(t){const s=t.indexOf(":");if(s===-1)return{prefix:"",local:t};const o=t.slice(s+1),n=t.slice(0,s);return(n===""||o===""||o.includes(":"))&&this.fail(`malformed name: ${t}.`),{prefix:n,local:o}}processAttribsNS(){const{attribList:t}=this,s=this.tag;{const{prefix:a,local:c}=this.qname(s.name);s.prefix=a,s.local=c;const T=s.uri=this.resolve(a)??"";a!==""&&(a==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),T===""&&(this.fail(`unbound namespace prefix: ${JSON.stringify(a)}.`),s.uri=a))}if(t.length===0)return;const{attributes:o}=s,n=new Set;for(const a of t){const{name:c,prefix:T,local:S}=a;let x,w;T===""?(x=c==="xmlns"?Zt:"",w=c):(x=this.resolve(T),x===void 0&&(this.fail(`unbound namespace prefix: ${JSON.stringify(T)}.`),x=T),w=`{${x}}${S}`),n.has(w)&&this.fail(`duplicate attribute: ${w}.`),n.add(w),a.uri=x,o[c]=a}this.attribList=[]}processAttribsPlain(){const{attribList:t}=this,s=this.tag.attributes;for(const{name:o,value:n}of t)s[o]!==void 0&&this.fail(`duplicate attribute: ${o}.`),s[o]=n;this.attribList=[]}openTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!1,this.openTagHandler?.(s),t.push(s),this.state=W,this.name=""}openSelfClosingTag(){this.processAttribs();const{tags:t}=this,s=this.tag;s.isSelfClosing=!0,this.openTagHandler?.(s),this.closeTagHandler?.(s),(this.tag=t[t.length-1]??null)===null&&(this.closedRoot=!0),this.state=W,this.name=""}closeTag(){const{tags:t,name:s}=this;if(this.state=W,this.name="",s==="")return this.fail("weird empty close tag."),void(this.text+="</>");const o=this.closeTagHandler;let n=t.length;for(;n-- >0;){const a=this.tag=t.pop();if(this.topNS=a.ns,o?.(a),a.name===s)break;this.fail("unexpected close tag.")}n===0?this.closedRoot=!0:n<0&&(this.fail(`unmatched closing tag: ${s}.`),this.text+=`</${s}>`)}parseEntity(t){if(t[0]!=="#"){const o=this.ENTITIES[t];return o!==void 0?o:(this.fail(this.isName(t)?"undefined entity.":"disallowed character in entity name."),`&${t};`)}let s=NaN;return t[1]==="x"&&/^#x[0-9a-f]+$/i.test(t)?s=parseInt(t.slice(2),16):/^#[0-9]+$/.test(t)&&(s=parseInt(t.slice(1),10)),this.isChar(s)?String.fromCodePoint(s):(this.fail("malformed character entity."),`&${t};`)}}var Ae,Tt;(Tt=Ae||(Ae={})).Events={XmlDecl:"xmldecl",Text:"text",ProcessingInstruction:"processinginstruction",Doctype:"doctype",Comment:"comment",OpenTagStart:"opentagstart",Attribute:"attribute",OpenTag:"opentag",CloseTag:"closetag",CDdata:"cdata",Error:"error",End:"end",Ready:"ready"},Tt.parseStream=async(i,t,s)=>{const o=new Rs({position:!1,...s});let n;if(t.onOpenTagStart&&o.on(Tt.Events.OpenTagStart,t.onOpenTagStart),t.onOpenTag&&o.on(Tt.Events.OpenTag,t.onOpenTag),t.onCloseTag&&o.on(Tt.Events.CloseTag,t.onCloseTag),t.onAttribute&&o.on(Tt.Events.Attribute,t.onAttribute),t.onText&&o.on(Tt.Events.Text,t.onText),t.onError&&o.on(Tt.Events.Error,t.onError),t.onEnd){t.onEnd;const a=()=>{n=t.onEnd()};o.on(Tt.Events.End,a)}for(;;){const{value:a,done:c}=await i.read();if(c)break;o.write(a)}return o.close(),n};const v=i=>i===!0||i==="1"||i==="on"||i==="true"||i!==!1&&i!=="0"&&i!=="off"&&i!=="false"&&null,E=i=>{const t=parseInt(i);return isNaN(t)?null:t},ct=i=>{const t=parseFloat(i);return isNaN(t)?null:t},A=null;class $s{constructor(){this._registeredVisitors=new Map}registerVisitor(t){this._registeredVisitors.set(t.from,t)}createEventHandler(t,s,o){const n=this._registeredVisitors,a=[];let c=null,T=null,S=null,x=null;const w=[],D={key:null,source:t};let b=null,d=!1;const P=(y,m)=>{let V=S.attributes[y];if(m){if(Array.isArray(m)){for(let H=0;H<m.length;H++)if(V==null||(V=m[H](V),V==null))return}else if(V==null||(V=m(V),V==null))return}return V},f={getSource:()=>b.source,setSource:y=>{b.source=y},setKey:y=>{b.key=y},getFrom:()=>S,getAttribute:(y,m)=>P(y,m)??null,hasAttribute:y=>f.getAttribute(y)!==null,getParent:()=>w[w.length-2].source,getPath:()=>{const y=[];for(let m=0;m<a.length;m++)y.push(a[m].local);return y.join("\\")},parseAttribute:P,copyToObject:(y,m,V,H)=>{const q=P(H??m,V);q!==void 0&&(y[m]=q)},copyTo:(y,m,V)=>{const H=P(V??y,m);H!==void 0&&(b.source[y]=H)},warn:y=>{o?o?.(y):console.warn(y)}};return{onOpenTag:y=>{let m=y.name;const V=m.indexOf(":");V!==-1&&(m=m.slice(V+1));const H=n.get(m);if(c={local:m,visitor:H,tag:y,destination:null},d)return a.push(c),T=m,void(S=y);x=c?.visitor??null,H&&(b=a.length===0?D:x?.to!==null?{key:null,source:{}}:null,c.destination=b,b&&w.push(b)),a.push(c),T=m,S=y,d=x?.to===null,x?.openTag?.(f)},onCloseTag:y=>{let m=y.name;const V=m.indexOf(":");if(V!==-1&&(m=m.slice(V+1)),m!==T)throw new Error(`mismatch open/close tag: '${m}'/'${T}'`);d||x?.closeTag?.(f);const H=a.pop()??null;c=a[a.length-1]??null;const q=H?.destination;if(q){w.pop(),b=w[w.length-1]??D;const ht=H.visitor;ht&&ht.to&&q.source!==void 0&&(Array.isArray(ht.to)?b.source.push?b.source.push(q.source):o?.(`Unable to parse array for ${ht.from} at ${f.getPath()}`):q.key?b.source[q.key]=q.source:typeof ht.to=="string"&&(b.source[ht.to]=q.source))}T=c?.local??null,S=c?.tag??null,x=c?.visitor??null,d=!c?.destination},onText:y=>{x?.text?.(y,f)},onEnd:s}}}const is=(i,t,s,o=null)=>{if(!i)return null;let n=i;n.startsWith("/")&&(n=n.substring(1));let a=o?.parsedRefs?.get(i);if(a!==void 0)return a;const c=t(n);if(!c)return null;let T=c.content;try{s&&(T=s(T))}catch(S){console.warn(S)}return o?.parsedRefs?.set(i,T),T},Ee=(i,t,s,o,n=null)=>{if(!i)return null;let a=i;a.startsWith("/")&&(a=a.substring(1));let c=n?.parsedRefs?.get(i);if(c!==void 0)return c;const T=t(a);if(!T)return null;const S=T.content;try{const x=new TextDecoder().decode(S),w=s.parseFromString(x,"text/xml"),D=o.convert(w,i,n);return n?.parsedRefs?.set(i,D),D}catch(x){console.warn(x)}return null},zt=(i,t,s,o,n=null)=>{const a=new Map;let c=t.Directory[i];const T=c?c.length:0;for(let S=0;S<T;S++){const x=c[S];if(!x)continue;let w=x;w.startsWith("/")&&(w=w.substring(1));const D=Ee(w,b=>t.files[b],s,o,n);a.set(w,D)}return a},Fs=["lt1","dk1","lt2","dk2","accent1","accent2","accent3","accent4","accent5","accent6","hlink","folHlink"],De=(i,t="dk1")=>{let s;const o=i("auto");o===void 0||o!=="1"&&o!=="true"||(s=t);const n=i("indexed");n&&(s=`index${n}`);const a=i("rgb");a&&(s=a.toLowerCase(),a.length!==8||a.startsWith("FF")||(s="FF"+a.substring(2,a.length)));const c=i("theme");c&&(s=Fs[c]);let T=i("tint");if(T&&(s+=` ${u.IColor.AdjustmentType.ETint} ${parseFloat(T)}`),s)return s},cs=i=>i&&i.replace(/^\{([\s\S]+)\}$/,"$1"),hs=i=>i==="true"||i==="1";class Ht{static{this.Collapsed=1}static{this.CustomFormat=2}static{this.CustomHeight=4}static{this.Hidden=8}static{this.Ht=16}static{this.OutlineLevel=32}static{this.Ph=64}static{this.R=128}static{this.S=256}static{this.Spans=512}static{this.ThickBot=1024}static{this.ThickTop=2048}}const Ms=(i,t,s)=>{if(i[0].value[0]===i[1].value[0])return t},os={colStart:0,colEnd:0,rowStart:0,rowEnd:0},js=Object.freeze(Object.defineProperty({__proto__:null,fromBufferXLSX:async(i,t)=>{const{password:s,onWarning:o,createWorkbookOptions:n={},...a}=t??{},c=Promise.resolve().then(()=>require("./Dmw7xaaV85s72QZe.cjs")),T=Promise.resolve().then(()=>require("./BQPFxJ77OaD_sBIX.cjs"));let S=null;try{S=new DOMParser}catch{}let x=null;S||(x=Promise.resolve().then(()=>require("./D6AUUY9awlTRjjqd.cjs")).then(d=>d.i));let w=null,D=null,b=null;try{const d=await Promise.all([c,T,x]);w=d[0],D=d[1],b=d[2]}catch(d){throw new Error("Unable to load XLSX parser.",{cause:d})}try{const d=w.read(i,{type:"array",sheets:[],cellStyles:!1,bookFiles:!0});if(!d.Directory)throw new Error("Unable to parse as an Excel document. Try to save as '.xlsx' and try again.");d.Directory.richstructure=["/xl/richData/rdrichvaluestructure.xml"],d.Directory.richdata=["/xl/richData/rdrichvalue.xml"];const P=new D.FromOOXMLConverter,f=S??new b.DOMParser,y=n?.resources??new u.ResourceCollection,m=y.beginPersist(),V={},H=new Set,q=new Map;q.set("richTypes",[]);const ht=new Map,Pe=[],ne=I=>d.files[I],fe=(I,z)=>{const Y=I.lastIndexOf("/"),ut=I.substring(0,Y+1)+"_rels/"+I.substring(Y+1,I.length)+".rels";let dt=z.get(ut);return dt||(dt=(($,be,xe,we,Xt=null)=>{if(!$)return null;const tt=Ee($,be,xe,we,Xt);if(!tt)return null;const et=new Map,bt=Object.keys(tt),Bt=bt.length;for(let xt=0;xt<Bt;xt++){const Wt=bt[xt],kt=tt[Wt];et.set(Wt,kt)}return et})(ut,ne,f,P,yt),z.set(ut,dt)),dt},ae=(I,z,Y,ut=ht)=>{let dt=fe(z,ut).get(I),$=dt?.target;if(!$)return null;if(dt.targetMode==="External")return dt.target;const be=z.lastIndexOf("/"),xe=z.substring(0,be+1);$.startsWith("/")||($=xe+$),$=(tt=>{const et=tt.split(/\/+/);return et.reduce((bt,Bt,xt)=>(Bt==="."?bt.splice(xt,1):Bt===".."&&bt.splice(xt-1,2),bt),et).join("/")})($);const we=P?.getVisitorParamsState().get("dxfs");let Xt=ut.get($);if(!Xt)if(dt.type==="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet"){const tt={};Xt=tt;const et=async()=>{const bt=((N,G,Qt,_,J,Z,wt)=>{const h=new $s,Q=new u.Tuple.TransposedBuilder;let j=null;h.registerVisitor({from:"autoFilter",to:"filter",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"conditionalFormatting",to:{},openTag:e=>{const r=e.getParent();r.conditionals||(r.conditionals=[]),r.conditionals.push(e.getSource());const l=e.getAttribute("sqref");l&&(e.getSource().ref=l.split(" ").join(",")),e.copyTo("pivot",v)},closeTag:e=>{const r=e.getSource();if(r.rule){const l=Object.keys(r.rule);for(let p=0;p<l.length;p++){const C=l[p];C!=="rule"&&(r[C]=r.rule[C])}}delete r.rule}}),h.registerVisitor({from:"cfRule",to:"rule",openTag:e=>{const r=e.getParent();e.copyToObject(r,"type",A),e.copyToObject(r,"priority",E),e.copyToObject(r,"stopIfTrue",v);const l=e.getAttribute("dxfId",E);if(l!==null){let p=_?.get(l);p||(Z?.(`Unable to load conditional color. Invalid dxfI: '${l}' at '${e.getPath()}'.`),p={}),r.style=p}e.copyToObject(r,"aboveAverage",v),e.copyToObject(r,"equalAverage",v),e.copyToObject(r,"stdDev",E),e.copyToObject(r,"bottom",v),e.copyToObject(r,"percent",v),e.copyToObject(r,"rank",E),e.copyToObject(r,"operator",A),e.copyToObject(r,"text",A),e.copyToObject(r,"timePeriod",A)}}),h.registerVisitor({from:"colorScale",to:"colorScale"}),h.registerVisitor({from:"dataBar",to:"dataBar",openTag:e=>{e.copyTo("maxLength",E),e.copyTo("minLength",E),e.copyTo("showValue",v)}}),h.registerVisitor({from:"iconSet",to:"iconSet",openTag:e=>{e.copyTo("iconSet",A),e.copyTo("reverse",v),e.copyTo("showValue",v)}}),h.registerVisitor({from:"formula",to:null,text:(e,r)=>{const l=r.getParent();let p=l.formulas;p||(p=[],l.formulas=p),p.push(e)}}),h.registerVisitor({from:"cfvo",to:{},openTag:e=>{const r=e.getParent();r.conditions||(r.conditions=[]),r.conditions.push(e.getSource()),e.copyTo("type",A),e.copyTo("value",ct,"val"),e.copyTo("gte",v)}}),h.registerVisitor({from:"color",to:{},openTag:e=>{const r=e.getParent();r.colors||(r.colors=[]);const l=De(p=>e.getAttribute(p));r.colors.push(l)}}),h.registerVisitor({from:"filterColumn",to:"filterColumn",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]),r.fields.push(e.getSource()),e.copyTo("offset",E,"colId"),e.copyTo("hiddenButton",v),e.copyTo("showButton",v)}}),h.registerVisitor({from:"colorFilter",to:"colorFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Color,e.copyTo("cellColor",v),e.copyTo("styleId",E,"dxfId")}}),h.registerVisitor({from:"dynamicFilter",to:"dynamicFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Dynamic,e.copyTo("dynamicType",A,"type"),e.copyTo("val",ct),e.copyTo("maxVal",ct,"maxVal")}}),h.registerVisitor({from:"iconFilter",to:"iconFilter",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Icon,e.copyTo("iconId",E),e.copyTo("iconSet",A)}}),h.registerVisitor({from:"top10",to:"top10",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Top10,e.copyTo("filterVal",ct),e.copyTo("percent",v),e.copyTo("top",v),e.copyTo("val",ct)}}),h.registerVisitor({from:"filters",to:"filters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Items,e.copyTo("blank",v),e.copyTo("calendarType",A)}}),h.registerVisitor({from:"dateGroupItem",to:"dateGroupItem",openTag:e=>{const r=e.getParent();r.dateGroups||(r.dateGroups=[]),r.dateGroups.push(e.getSource()),e.copyTo("group",A,"dateTimeGrouping"),e.copyTo("day",E),e.copyTo("hour",E),e.copyTo("minute",E),e.copyTo("month",E),e.copyTo("second",E),e.copyTo("year",E)}}),h.registerVisitor({from:"filter",to:"filter",openTag:e=>{const r=e.getParent();r.items||(r.items=[]),r.items.push(e.getAttribute("val",ct))}}),h.registerVisitor({from:"customFilters",to:"customFilters",openTag:e=>{const r=e.getParent();r.criteria||(r.criteria=[]),r.criteria.push(e.getSource()),e.getSource().type=u.IAutoFilter.Type.Custom,e.copyTo("and",v)}}),h.registerVisitor({from:"customFilter",to:"customFilter",openTag:e=>{const r=e.getParent();r.filters||(r.filters=[]),r.filters.push(e.getSource()),e.copyTo("operator",A),e.copyTo("value",ct,"val")}}),h.registerVisitor({from:"sortState",to:"sort",openTag:e=>{e.copyTo("ref",A)}}),h.registerVisitor({from:"sortCondition",to:"sortCondition",openTag:e=>{const r=e.getParent();r.fields||(r.fields=[]);const l=e.getSource();r.fields.push(l),e.copyTo("sortOn",A,"sortBy"),e.copyTo("dxfId",A,"sortBy"),e.copyTo("iconSet",A),e.copyTo("customList",A);const p=e.getAttribute("ref");if(p){const C=u.AddressUtils.fastStringToRange(p,os).colStart,pt=u.AddressUtils.fastStringToRange(r.ref,os),rt=pt.colStart;l.offset=pt?C-rt:C}l.reverse=e.getAttribute("descending",v)??!1}}),h.registerVisitor({from:"AlternateContent",to:null});const ue=e=>{j=e.getSource(),e.copyTo("topLeft",A,"topLeftCell");const r=hs(e.getAttribute("defaultGridColor")),l=e.getAttribute("colorId");l===null||r||(e.getSource().gridLineColor="index"+parseFloat(l)),e.copyTo("showZeros",v),e.copyTo("showFormulas",v),e.copyTo("zoomScale",E),e.copyTo("showRowHeaders",v,"showRowColHeaders"),e.copyTo("showColumnHeaders",v,"showRowColHeaders"),e.copyTo("showRowGridlines",v,"showGridLines"),e.copyTo("showColumnGridlines",v,"showGridLines")};h.registerVisitor({from:"sheetView",to:"view",openTag:e=>{ue(e)},closeTag:()=>{j=null}}),h.registerVisitor({from:"customSheetViews",to:"customSheetViews",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"customSheetView",to:[],openTag:e=>{ue(e)},closeTag:()=>{j=null}}),h.registerVisitor({from:"selection",to:"selection",openTag:e=>{if(!j)return;e.copyTo("cell",A,"activeCell"),e.copyTo("rangeIndex",E,"activeCellId");const r=e.getAttribute("activeCell"),l=e.getAttribute("sqref");l&&l!==r&&(e.getSource().ranges=l.split(" "))}}),h.registerVisitor({from:"pane",to:"pane",openTag:e=>{if(j&&e.getAttribute("state")==="frozen"){const r={};j.freezePanes=r,e.copyToObject(r,"topLeft",A,"topLeftCell");const l=j.topLeft?u.AddressUtils.fastStringToCell(j.topLeft):{colIndex:0,rowIndex:0},p={colIndex:0,rowIndex:0};e.copyToObject(p,"colIndex",E,"xSplit"),e.copyToObject(p,"rowIndex",E,"ySplit");const C={colIndex:l.colIndex+p.colIndex,rowIndex:l.rowIndex+p.rowIndex};r.coords=u.AddressUtils.cellToString(C)}}}),h.registerVisitor({from:"tabColor",to:null,openTag:e=>{const r=De(l=>e.getAttribute(l));r&&(N.tabColor=r)}}),h.registerVisitor({from:"pageSetUpPr",to:"pageSetUpPr",openTag:e=>{}}),h.registerVisitor({from:"outlinePr",to:"outlinePr",openTag:e=>{}}),h.registerVisitor({from:"pageMargins",to:"pageMargins",openTag:e=>{}}),h.registerVisitor({from:"pageSetup",to:"pageSetup",openTag:e=>{}}),h.registerVisitor({from:"printOptions",to:"printOptions",openTag:e=>{}}),h.registerVisitor({from:"mergeCells",to:"merges",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"mergeCell",to:[],openTag:e=>{const r=e.getAttribute("ref");e.setSource(r)}}),h.registerVisitor({from:"hyperlinks",to:"hyperlinks",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"hyperlink",to:[],openTag:e=>{const r=e.getAttribute("r:id"),l=e.getAttribute("ref");if(!l)return void console.warn("No ref found for hyperlink");e.setKey(l);let p=r?G(r):"";if(typeof p!="string")return void console.warn("Invalid address ",p);const C=e.getAttribute("location");p.endsWith("\\")&&(p=p.substring(0,p.length-1));const pt=e.getAttribute("location");if(pt&&(C&&C!==pt&&console.warn("display and location are different",C,pt),p+="#"+pt),!p)return void console.warn("No address found for hyperlink. r:id",r);let rt;const At=e.getAttribute("tooltip");rt=At?{address:p,tooltip:At}:p,e.setSource({r:l,v:rt})}}),h.registerVisitor({from:"drawing",to:"movables",openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l.movables):console.warn("no drawing found for rId",r)}}),h.registerVisitor({from:"tableParts",to:"tables",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"tablePart",to:[],openTag:e=>{const r=e.getAttribute("r:id");if(!r)return;const l=G(r);l?e.setSource(l):console.warn("no table found for rId",r)}}),h.registerVisitor({from:"worksheet",to:"worksheet",openTag:e=>{}}),h.registerVisitor({from:"sheetProtection",to:"protection",openTag:e=>{let r=!1;if(e.hasAttribute("sheet")&&v(e.getAttribute("sheet"))&&(r=!0),!r)return void e.setSource(void 0);const l=C=>C===!0||C==="1"||C==="on"||C==="true"||C===!1||C==="0"||C==="off"||C==="false"||null;e.copyTo("autoFilter",l),e.copyTo("deleteColumns",l),e.copyTo("formatCells",l),e.copyTo("formatColumns",l),e.copyTo("formatRows",l),e.copyTo("insertColumns",l),e.copyTo("insertHyperlinks",l),e.copyTo("insertRows",l),e.copyTo("objects",l),e.copyTo("pivotTables",l),e.copyTo("scenarios",l),e.copyTo("selectUnlockedCells",l),e.copyTo("selectUnlockedCells",l),e.copyTo("sort",l);const p={};e.copyToObject(p,"hash",A,"hashValue"),e.copyToObject(p,"algorithm",A,"algorithmName"),e.copyToObject(p,"salt",A,"saltValue"),e.copyToObject(p,"spinCount",E),Object.keys(p).length>0&&(e.getSource().password=p)}}),h.registerVisitor({from:"protectedRanges",to:"protectedRanges",openTag:e=>{e.setSource({})}}),h.registerVisitor({from:"protectedRange",to:{},openTag:e=>{const r=e.getAttribute("sqref");e.setKey(r),e.copyTo("name"),e.copyTo("securityDescriptor");const l={};e.copyToObject(l,"hash",A,"hashValue"),e.copyToObject(l,"algorithm",A,"algorithmName"),e.copyToObject(l,"salt",A,"saltValue"),e.copyToObject(l,"spinCount",E),Object.keys(l).length>0&&(e.getSource().password=l)}}),h.registerVisitor({from:"sheetFormatPr",to:"sheetFormatPr",openTag:e=>{e.copyToObject(N,"defaultColSize",ct,"defaultColWidth"),e.copyToObject(N,"outlineLevelCol",E,"outlineLevelCol");const r=e.getAttribute("customHeight");r!=="1"&&r!=="true"||e.copyToObject(N,"defaultRowSize",ct,"defaultRowHeight"),e.copyToObject(N,"outlineLevelRow",E,"outlineLevelRow")}}),h.registerVisitor({from:"cols",to:"cols",openTag:e=>{e.setSource([])}}),h.registerVisitor({from:"col",to:[],openTag:e=>{e.copyTo("min",r=>parseInt(r)-1),e.copyTo("max",r=>parseInt(r)-1),e.copyTo("sz",ct,"width"),e.copyTo("cs",v,"customWidth"),e.copyTo("h",v,"hidden"),e.copyTo("l",E,"outlineLevel"),e.copyTo("s",E,"style")}}),h.registerVisitor({from:"oleObjects",to:null,openTag:e=>{e.warn("'OLE Objects' are not supported.")}});let Kt=null;const Ts={onOpenTag:e=>{Kt===null&&(Kt="")},onText:e=>{Kt+=e},onEnd:()=>{const e=Qt(Kt);return Kt=null,e},onError:e=>{}};return((e,r,l,p,C,pt)=>{let rt=!1,At=!1,qt=[],_t=!1,Et=null,Yt=null,de=null,nt=null,$e=null,Fe=null;const ys=pt?.get("richData")??[],Me=u.AddressUtils.normalizeA1ToR1C1,je=u.CoordUtils.createConflatingRanges(),He=new Map,ve=[];let te=null;const Xe=u.CoordUtils.createConflatingRanges();let ee,Dt=!1,B=-1,K=-1,gt=null,se=null;const Se=[];let Ce=null,Be=-2,ft=0,Ut="",Pt="",It="",Ot="",Vt="",Nt="",Lt="",We="",qe="",_e="",Ue="",ze="",Ge="",Je="",mt=!0,Rt=null;return{...l,onEnd:()=>{Se.length>0&&(r.rows=Se);let g=je.done(Ms);const k=g.length;if(k>0){const F=new Array(k);for(let L=0;L<k;L++){const at=g[L],$t=u.AddressUtils.rangeToString(at),Ft=at.value[1],ie=u.AddressUtils.resolveRelativeToA1(Ft,at.rowStart,at.colStart);F[L]=[$t,ie]}r.formulas=F}const st=Xe.done(!0),R=st.length;if(R>0){const F=new Array(R);for(let L=0;L<R;L++){const at=st[L],$t=u.AddressUtils.rangeToString(at);F[L]=$t}r.volatile=F}if(ve.length>0&&(r.dynamicArray=[...ve]),qt.length>0){qt.sort(u.CoordUtils.createRangeComparator(u.IRange.Orientation.Column));const F=[];let L=null,at=-1,$t=-1,Ft=-1,ie=-1,vt=null;const Ze=qt.length;Ze>0&&(L=qt[0],at=L.colStart,$t=L.colEnd,Ft=L.rowEnd,ie=L.value,F.push(L));for(let Mt=1;Mt<Ze;Mt++)vt=qt[Mt],ie!==vt.value||at!==vt.colStart||$t!==vt.colEnd||Ft+1!==vt.rowEnd?(F.push(vt),L=vt,at=L.colStart,$t=L.colEnd,Ft=L.rowEnd,ie=L.value):(Ft=vt.rowEnd,L.rowEnd=Ft);let Qe=[];for(let Mt=0;Mt<F.length;Mt++){const oe=F[Mt];Qe.push({r:{colStart:oe.colStart,colEnd:oe.colEnd,rowStart:oe.rowStart,rowEnd:oe.rowEnd},v:oe.value})}r.directStyles=Qe}const it=e.build();if(it){const F=it.tuples;r.data=F}l?.onEnd?.()},onOpenTag:g=>{let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),ee){const R=g.attributes;switch(k){case"v":At=!0;break;case"f":switch(R.t??null){case null:case"normal":_t=!0;break;case"shared":const it=R.si;Yt=R.ref,Et=it;break;case"array":_t=!0,Yt=R.ref,te=[Yt,!1];break;case"datatable":_t=!0,Yt=R.ref,_t=!0}R.ca!==void 0&&Xe.append(B,K);break;case"is":return void(Dt=!0)}return void(Dt&&C?.onOpenTag(g))}if(rt){if(k==="c"){ee=g;const R=g.attributes.r;K=u.AddressUtils.fastStringToCol(R);const it=g.attributes.t;it===void 0?se=null:(se=it,se==="str"&&(Dt=!0));let F=g.attributes.s;F!==void 0&&(F=parseInt(F),Rt&&Rt.value===F&&Rt.colEnd+1===K?Rt.colEnd=K:(Rt={colStart:K,rowStart:B,colEnd:K,rowEnd:B,value:F},qt.push(Rt)))}}else{if(k==="row"){rt=!0;const R=g.attributes.r;if(B=parseInt(R)-1,ft=0,Pt=g.attributes.customHeight,Pt!==void 0&&(ft|=Ht.CustomHeight),Pt!==qe&&(mt=!0,qe=Pt),Ut=g.attributes.ht,Ut!==void 0&&(ft|=Ht.Ht),Ut!==We&&(mt=!0,We=Ut),It=g.attributes.hidden,It!==void 0&&(ft|=Ht.Hidden),It!==_e&&(mt=!0,_e=It),Vt=g.attributes.s,Vt!==void 0&&(ft|=Ht.S),Vt!==ze&&(mt=!0,ze=Vt),Ot=g.attributes.customFormat,Ot!==void 0&&(ft|=Ht.CustomFormat),Ot!==Ue&&(mt=!0,Ue=Ot),Nt=g.attributes.outlineLevel,Nt!==void 0&&(ft|=Ht.OutlineLevel),Nt!==Ge&&(mt=!0,Ge=Nt),Lt=g.attributes.collapsed,Lt!==void 0&&(ft|=Ht.Collapsed),Lt!==Je&&(mt=!0,Je=Lt),ft!==0)if(Be+1!==B||mt){const it=Pt!==void 0&&(Pt==="1"||Pt==="true"),F=Ot!==void 0&&(Ot==="1"||Ot==="true");Ce={min:B,max:B,sz:it&&Ut!==void 0?parseFloat(Ut):-1,csz:it,h:It!==void 0&&(It==="1"||It==="true"),s:it&&Vt!==void 0&&Vt!=="0"?parseInt(Vt):0,cs:F,l:Nt===void 0||Nt==="0"?0:parseInt(Nt),cl:Lt!==void 0&&(Lt==="1"||Lt==="true")},Se.push(Ce)}else Ce.max=B;return Be=B,void(mt=!1)}l?.onOpenTag(g)}},onCloseTag:g=>{if(ee){let k=g.name;const st=k.indexOf(":");if(st!==-1&&(k=k.slice(st+1)),Dt)if(k==="is"||k==="v"){const R=C?.onEnd();R!==null&&e.addValue(B,K,""+R)}else C?.onCloseTag?.(g);return At&&(At=!1),void(k==="c"&&(ee=null,Dt=!1))}if(rt)return rt=!1,void(Rt=null);l?.onCloseTag(g)},onText:g=>{if(g=g.trim(),At){switch(gt=null,se){case null:case"n":gt=parseFloat(g);break;case"b":gt=g==="1"||g==="true";break;case"s":gt=g;break;case"e":if(g==="#VALUE!"){const st=ee.attributes.vm;if(st!==void 0){const R=ys[parseInt(st)-1];if(R&&R.isFormulaError){gt={t:u.ScalarType.Error,v:R.getCode()};break}}}const k=u.FormulaError.getBuiltInByLabel(g);k?gt={t:u.ScalarType.Error,v:k.getCode()}:(gt=g,p?.(`Unknown formula error '${g}' in cell ${u.AddressUtils.cellToString({colIndex:K,rowIndex:B})}`));break;case"str":case"inlineStr":Dt=!0}gt!==null&&e.addValue(B,K,gt)}if(te&&(se==="e"&&(te[1]=!0),ve.push(te),te=null),Et)if($e===Et)nt=Fe;else{if(nt=He.get(Et),!nt){const k=[];de=Me(g,B,K,k),nt=[de,k,g],He.set(Et,nt)}$e=Et,Fe=nt}if(_t){const k=[];de=Me(g,B,K,k),nt=[de,k,g]}if(nt)return je.append(B,K,nt),nt=null,_t=!1,Et=null,void(Yt=null);Dt?C?.onText(g):rt||l?.onText(g)}}})(Q,N,h.createEventHandler(N,()=>{},Z),Z,Ts,wt)})(tt,(N,G=!1)=>ae(N,$,G)??null,ds,we,0,N=>{o&&(N=$+": "+N,o?.(N))},q),Bt=is($,ne),xt=await(async(N,G=8388608)=>{await(async()=>{if(typeof ReadableStream>"u")if(typeof window>"u"){const{ReadableStream:Z}=await Promise.resolve().then(()=>require("./Ba3O1f0NYbzEwNAd.cjs"));globalThis.ReadableStream=Z}else console.warn("Browser does not support ReadableStream; consider loading a polyfill.")})();const Qt=new TextDecoder("utf-8");let _=0;const J=N instanceof Uint8Array?N:new Uint8Array(N);return new ReadableStream({pull(Z){if(_>=J.byteLength)return void Z.close();const wt=J.subarray(_,Math.min(_+G,J.byteLength)),h=Qt.decode(wt,{stream:_+G<J.byteLength});Z.enqueue(h),_+=wt.length}}).getReader()})(Bt);try{await Ae.parseStream(xt,bt,{xmlns:!1})}catch(N){throw console.warn(`Error parsing sheet: '${$}'`,N),new Error(`Error parsing sheet: '${$}'`,{cause:N})}const Wt=fe($,ut);let kt,Re=new Map;if(Wt){const N="http://schemas.microsoft.com/office/2017/10/relationships/threadedComment";let G;Wt.forEach((_,J)=>{_.type===N&&(kt=ae(J,$,!1,ut)?.comments,kt&&kt.forEach(Z=>{Re.set(Z.id,Z)}))});const Qt="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";if(Wt.forEach((_,J)=>{_.type===Qt&&(G=ae(J,$,!1,ut))}),G||kt){const _=kt??[],J=G?.comments;if(J){const Z=G?.authors;for(let wt=0;wt<J.length;wt++){const h=J[wt];let Q=h.authorId!==void 0?Z[h.authorId]:void 0;if((!Q||Q.startsWith("tc="))&&(Q=cs(Q.substring(3)),Re.has(Q)))continue;let j=ce.get(Q);j||(j=Ve.get(Q)),j||(j={id:u.CommonUtils.uuidV4(),displayName:Q},Ve.set(j.displayName,j),ce.set(j.id,j)),Q=j?.id??null;const ue={id:u.CommonUtils.uuidV4(),personId:Q,ref:h.ref,done:!1,asNote:!0,content:h.content};_.push(ue)}}tt.comments=_}}};Pe.push(et())}else Xt=Y?is($,ne,tt=>{const et=y.add({buffer:tt});return et.addReference(V),H.add(et),m.toResourceId(et)},yt):Ee($,ne,f,P,yt);return Xt},yt={paramMap:q,getRefs:fe,getRef:ae,parsedRefs:ht,onWarning:o,addPerson:I=>null},le=[];let me=0;d.Strings&&(me=parseInt(d.Strings.Unique??d.Strings.length??0));const us=d.Strings??[];for(let I=0;I<me;I++)le.push(us[I]?.t??"");const Ie=new Map;let Oe=me;const ds=I=>{const z=Ie.get(I);if(z!==void 0)return z;const Y=Oe;return Ie.set(I,Oe++),le.push(I),Y},ce=(zt("richstructure",d,f,P,yt),zt("richdata",d,f,P,yt),new Map),Ve=new Map,Ne=zt("people",d,f,P);let Ct=null;if(Ne.size>0&&(Ct=Ne.entries().next()?.value?.[1]?.persons,Ct)){const I=Ct.length;for(let z=0;z<I;z++){const Y=Ct[z];ce.set(Y.id,Y),ce.set(Y.displayName,Y)}}const Te=zt("themes",d,f,P,yt);let Le=null;if(Te&&Te.entries){let I=Te.entries().next();I?.value?.[1]&&(Le=I.value[1])}const ps=new u.Theme(Le);let he=zt("styles",d,f,P,yt).entries().next()?.value[1];he&&(he=JSON.parse(u.JSONStableStringify(he)));const gs=zt("workbooks",d,f,P,yt);await Promise.all(Pe);const ye={...gs.entries().next().value[1],styles:he,theme:ps.toJSON()};le.length>0&&(ye.strings=le),Ct&&Ct.length>0&&(ye.people=Ct);const fs={...n,resources:y,json:ye},ms=new u.Workbook(fs);return H.forEach(I=>{I.deleteReference(V)}),m.endPersist(),ms}catch(d){let P="Unable to parse XLSX.";throw d instanceof u.OutOfBoundsError&&(P="Unable to open XLSX. There are too many rows or columns."),new Error(P,{cause:d})}},toBufferXLSX:async(i,t)=>{const s=await Promise.resolve().then(()=>require("./Dmw7xaaV85s72QZe.cjs")),o=await i.toJSON(!0),n=s.utils.book_new();for(let a=0;a<o.sheets.length;a++){const c=o.sheets[a],T=s.utils.json_to_sheet([{}]);s.utils.book_append_sheet(n,T,c.name);const S=c.sheet,x=i.getSheetAt(a),w=x.getUsedRange();if(w?(T["!ref"]=w.getA1(),w.forEach((D,b)=>{const d={t:"z"},P=b.getCell().getStyle();if(!P.isNormal()){let f=P.getNumberFormat();f!==u.NumberFormat.Type.General&&(f===u.NumberFormat.Type.ShortDate?f="m/d/yyyy":f===u.NumberFormat.Type.MediumDate?f="d-mmm-yy":f===u.NumberFormat.Type.LongDate?f="[$-x-sysdate]dddd, mmmm dd, yyyy":f===u.NumberFormat.Type.ShortTime?f="h:mm":f===u.NumberFormat.Type.MediumTime?f="h:mm AM/PM":f===u.NumberFormat.Type.LongTime&&(f="h:mm:ss AM/PM"),d.z=f)}if(D!==null)switch(b.getType()){case u.ScalarType.Number:d.t="n",d.v=D;break;case u.ScalarType.String:d.t="s",d.v=D;break;case u.ScalarType.Boolean:d.t="b",d.v=D;break;case u.ScalarType.Error:d.t="e",d.v=D.toString();case u.ScalarType.RichData:}T[b.getA1()]=d})):T["!ref"]="A1:A1",S.merges?.length>0){const D=[];T["!merges"]=D;for(let b=0;b<S.merges.length;b++)D.push(s.utils.decode_range(S.merges[b]))}if(S.cols?.length>0){const D=[];T["!cols"]=D;const b=S.cols,d={width:S.defaultColSize??x.getColumnWidthAsFontUnit(x.getColumnHeaders().getDefaultSize())};for(let P=0;P<b.length;P++){const f=b[P];for(let m=D.length;m<=f.min-1;m++)D.push(d);const y={};f.sz!==void 0&&(y.width=f.sz),f.h!==void 0&&(y.hidden=f.h),f.l!==void 0&&(y.level=f.l);for(let m=f.min;m<=f.max;m++)D.push(y)}}}return s.write(n,{type:"array",bookType:"xlsx"}),s.write(n,{type:"array",bookType:"xlsx"})}},Symbol.toStringTag,{value:"Module"}));exports.a=i=>parseFloat(i)/1e3,exports.b=hs,exports.c=i=>i?Ke.Jt.roundAccurately(parseFloat(i)/9525,1):null,exports.d=De,exports.i=js,exports.p=i=>parseFloat(i)/6e4,exports.r=cs,exports.t=i=>i?Ke.Jt.roundAccurately(parseFloat(i)/12700,4):null;
@@ -1,7 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var le,pe,oe={},te={},L={},ie={},Q={};function he(){if(pe)return Q;pe=1;var w=Q&&Q.__awaiter||function(e,t,o,n){return new(o||(o=Promise))(function(r,a){function u(_){try{E(n.next(_))}catch(s){a(s)}}function h(_){try{E(n.throw(_))}catch(s){a(s)}}function E(_){var s;_.done?r(_.value):(s=_.value,s instanceof o?s:new o(function(j){j(s)})).then(u,h)}E((n=n.apply(e,t||[])).next())})},D=Q&&Q.__generator||function(e,t){var o,n,r,a,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function h(E){return function(_){return function(s){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return u.label++,{value:s[1],done:!1};case 5:u.label++,n=s[1],s=[0];continue;case 7:s=u.ops.pop(),u.trys.pop();continue;default:if(!((r=(r=u.trys).length>0&&r[r.length-1])||s[0]!==6&&s[0]!==2)){u=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){u.label=s[1];break}if(s[0]===6&&u.label<r[1]){u.label=r[1],r=s;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(s);break}r[2]&&u.ops.pop(),u.trys.pop();continue}s=t.call(e,u)}catch(j){s=[6,j],n=0}finally{o=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([E,_])}}};Object.defineProperty(Q,"__esModule",{value:!0}),Q.JsDelivrSourceResolver=void 0;var x=function(){function e(){}return e.prototype.resolvePackageJson=function(t,o,n){return w(this,void 0,void 0,function(){return D(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(t).concat(o?"@".concat(o):"").concat(n?"/".concat(n):"","/package.json"))];case 1:return[2,r.sent()]}})})},e.prototype.resolveSourceFile=function(t,o,n){return w(this,void 0,void 0,function(){return D(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://cdn.jsdelivr.net/npm/".concat(t).concat(o?"@".concat(o):"","/").concat(n))];case 1:return[2,r.sent()]}})})},e.prototype.resolveFile=function(t){return w(this,void 0,void 0,function(){var o;return D(this,function(n){switch(n.label){case 0:return[4,fetch(t,{method:"GET"})];case 1:return(o=n.sent()).ok?[4,o.text()]:[3,3];case 2:return[2,n.sent()];case 3:if(o.status===404)return[2,""];throw Error("Error other than 404 while fetching from Unpkg at ".concat(t));case 4:return[2]}})})},e}();return Q.JsDelivrSourceResolver=x,Q}var fe,de,ve,I={},W={};function ue(){if(de)return fe;function w(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}function D(e,t){for(var o,n="",r=0,a=-1,u=0,h=0;h<=e.length;++h){if(h<e.length)o=e.charCodeAt(h);else{if(o===47)break;o=47}if(o===47){if(a!==h-1&&u!==1)if(a!==h-1&&u===2){if(n.length<2||r!==2||n.charCodeAt(n.length-1)!==46||n.charCodeAt(n.length-2)!==46){if(n.length>2){var E=n.lastIndexOf("/");if(E!==n.length-1){E===-1?(n="",r=0):r=(n=n.slice(0,E)).length-1-n.lastIndexOf("/"),a=h,u=0;continue}}else if(n.length===2||n.length===1){n="",r=0,a=h,u=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+="/"+e.slice(a+1,h):n=e.slice(a+1,h),r=h-a-1;a=h,u=0}else o===46&&u!==-1?++u:u=-1}return n}de=1;var x={resolve:function(){for(var e,t="",o=!1,n=arguments.length-1;n>=-1&&!o;n--){var r;n>=0?r=arguments[n]:(e===void 0&&(e=process.cwd()),r=e),w(r),r.length!==0&&(t=r+"/"+t,o=r.charCodeAt(0)===47)}return t=D(t,!o),o?t.length>0?"/"+t:"/":t.length>0?t:"."},normalize:function(e){if(w(e),e.length===0)return".";var t=e.charCodeAt(0)===47,o=e.charCodeAt(e.length-1)===47;return(e=D(e,!t)).length!==0||t||(e="."),e.length>0&&o&&(e+="/"),t?"/"+e:e},isAbsolute:function(e){return w(e),e.length>0&&e.charCodeAt(0)===47},join:function(){if(arguments.length===0)return".";for(var e,t=0;t<arguments.length;++t){var o=arguments[t];w(o),o.length>0&&(e===void 0?e=o:e+="/"+o)}return e===void 0?".":x.normalize(e)},relative:function(e,t){if(w(e),w(t),e===t||(e=x.resolve(e))===(t=x.resolve(t)))return"";for(var o=1;o<e.length&&e.charCodeAt(o)===47;++o);for(var n=e.length,r=n-o,a=1;a<t.length&&t.charCodeAt(a)===47;++a);for(var u=t.length-a,h=r<u?r:u,E=-1,_=0;_<=h;++_){if(_===h){if(u>h){if(t.charCodeAt(a+_)===47)return t.slice(a+_+1);if(_===0)return t.slice(a+_)}else r>h&&(e.charCodeAt(o+_)===47?E=_:_===0&&(E=0));break}var s=e.charCodeAt(o+_);if(s!==t.charCodeAt(a+_))break;s===47&&(E=_)}var j="";for(_=o+E+1;_<=n;++_)_!==n&&e.charCodeAt(_)!==47||(j.length===0?j+="..":j+="/..");return j.length>0?j+t.slice(a+E):(a+=E,t.charCodeAt(a)===47&&++a,t.slice(a))},_makeLong:function(e){return e},dirname:function(e){if(w(e),e.length===0)return".";for(var t=e.charCodeAt(0),o=t===47,n=-1,r=!0,a=e.length-1;a>=1;--a)if((t=e.charCodeAt(a))===47){if(!r){n=a;break}}else r=!1;return n===-1?o?"/":".":o&&n===1?"//":e.slice(0,n)},basename:function(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');w(e);var o,n=0,r=-1,a=!0;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";var u=t.length-1,h=-1;for(o=e.length-1;o>=0;--o){var E=e.charCodeAt(o);if(E===47){if(!a){n=o+1;break}}else h===-1&&(a=!1,h=o+1),u>=0&&(E===t.charCodeAt(u)?--u===-1&&(r=o):(u=-1,r=h))}return n===r?r=h:r===-1&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!a){n=o+1;break}}else r===-1&&(a=!1,r=o+1);return r===-1?"":e.slice(n,r)},extname:function(e){w(e);for(var t=-1,o=0,n=-1,r=!0,a=0,u=e.length-1;u>=0;--u){var h=e.charCodeAt(u);if(h!==47)n===-1&&(r=!1,n=u+1),h===46?t===-1?t=u:a!==1&&(a=1):t!==-1&&(a=-1);else if(!r){o=u+1;break}}return t===-1||n===-1||a===0||a===1&&t===n-1&&t===o+1?"":e.slice(t,n)},format:function(e){if(e===null||typeof e!="object")throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof e);return o=(t=e).dir||t.root,n=t.base||(t.name||"")+(t.ext||""),o?o===t.root?o+n:o+"/"+n:n;var t,o,n},parse:function(e){w(e);var t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;var o,n=e.charCodeAt(0),r=n===47;r?(t.root="/",o=1):o=0;for(var a=-1,u=0,h=-1,E=!0,_=e.length-1,s=0;_>=o;--_)if((n=e.charCodeAt(_))!==47)h===-1&&(E=!1,h=_+1),n===46?a===-1?a=_:s!==1&&(s=1):a!==-1&&(s=-1);else if(!E){u=_+1;break}return a===-1||h===-1||s===0||s===1&&a===h-1&&a===u+1?h!==-1&&(t.base=t.name=u===0&&r?e.slice(1,h):e.slice(u,h)):(u===0&&r?(t.name=e.slice(1,a),t.base=e.slice(1,h)):(t.name=e.slice(u,a),t.base=e.slice(u,h)),t.ext=e.slice(a,h)),u>0?t.dir=e.slice(0,u-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};return x.posix=x,fe=x}var ye,re={};function ge(){if(ye)return re;ye=1;var w=re&&re.__importDefault||function(x){return x&&x.__esModule?x:{default:x}};Object.defineProperty(re,"__esModule",{value:!0}),re.importResourcePathToString=void 0;var D=w(ue());return re.importResourcePathToString=function(x){var e;switch(x.kind){case"package":return D.default.join(x.packageName,(e=x.importPath)!==null&&e!==void 0?e:"","package.json");case"relative":return D.default.join(x.sourcePath,x.importPath);case"relative-in-package":return D.default.join(x.packageName,x.sourcePath,x.importPath)}},re}var me,ce={};function be(){return me||(me=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.invokeUpdate=void 0,ce.invokeUpdate=function(w,D){var x,e="".concat(w.type,": ");switch(w.type){case"CodeChanged":case"ResolveNewImports":e+="";break;case"LookedUpTypeFile":e+='"'.concat(w.path,'" was ').concat(w.success?"sucessfully":"not sucessfully"," looked up");break;case"AttemptedLookUpFile":e+='"'.concat(w.path,'" was ').concat(w.success?"sucessfully":"not sucessfully"," attempted to looked up");break;case"LookedUpPackage":e+='package.json for package "'.concat(w.package,'" was ').concat(w.success?"sucessfully":"not sucessfully"," looked up").concat(w.definitelyTyped?" (found in definitely typed repo)":"");break;case"LoadedFromCache":e+='"'.concat(w.importPath,'" was loaded from cache');break;case"StoredToCache":e+='"'.concat(w.importPath,'" was stored to cache')}e.endsWith(": ")&&(e=e.slice(void 0,-2)),(x=D.onUpdate)===null||x===void 0||x.call(D,w,e)}),ce}var ke,we,_e,Pe,se={};function Oe(){if(ke)return se;ke=1,Object.defineProperty(se,"__esModule",{value:!0}),se.RecursionDepth=void 0;var w=function(){function D(x,e,t){e===void 0&&(e=0),t===void 0&&(t=0),this.options=x,this.fileRecursionDepth=e,this.packageRecursionDepth=t}return D.prototype.nextPackage=function(){return new D(this.options,this.fileRecursionDepth,this.packageRecursionDepth+1)},D.prototype.nextFile=function(){return new D(this.options,this.fileRecursionDepth+1,this.packageRecursionDepth)},D.prototype.same=function(){return new D(this.options,this.fileRecursionDepth,this.packageRecursionDepth)},D.prototype.shouldStop=function(){return this.options.fileRecursionDepth>0&&this.fileRecursionDepth>=this.options.fileRecursionDepth||this.options.packageRecursionDepth>0&&this.packageRecursionDepth>=this.options.packageRecursionDepth},D}();return se.RecursionDepth=w,se}var je,Re,Ce,Se,xe,Ae,De,Ee,Te,q={},Fe={},Ne={},Ie={},Me={},Y={};const Ve=function(w,D){for(var x=0;x<D.length;x++){const e=D[x];if(typeof e!="string"&&!Array.isArray(e)){for(const t in e)if(t!=="default"&&!(t in w)){const o=Object.getOwnPropertyDescriptor(e,t);o&&Object.defineProperty(w,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}}return Object.freeze(Object.defineProperty(w,Symbol.toStringTag,{value:"Module"}))}({__proto__:null},[Te?Ee:(Te=1,De||(De=1,K=oe,Ue=oe&&oe.__createBinding||(Object.create?function(w,D,x,e){e===void 0&&(e=x);var t=Object.getOwnPropertyDescriptor(D,x);t&&!("get"in t?!D.__esModule:t.writable||t.configurable)||(t={enumerable:!0,get:function(){return D[x]}}),Object.defineProperty(w,e,t)}:function(w,D,x,e){e===void 0&&(e=x),w[e]=D[x]}),$=oe&&oe.__exportStar||function(w,D){for(var x in w)x==="default"||Object.prototype.hasOwnProperty.call(D,x)||Ue(D,w,x)},Object.defineProperty(K,"__esModule",{value:!0}),$(function(){if(Pe)return te;Pe=1;var w,D=te&&te.__extends||(w=function(e,t){return(w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(o[r]=n[r])})(e,t)},function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}w(e,t),e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)});Object.defineProperty(te,"__esModule",{value:!0}),te.AutoTypings=void 0;var x=function(e){function t(o,n){return e.call(this,o,n)||this}return D(t,e),t}(function(){if(_e)return L;_e=1;var e=L&&L.__assign||function(){return e=Object.assign||function(O){for(var P,g=1,A=arguments.length;g<A;g++)for(var v in P=arguments[g])Object.prototype.hasOwnProperty.call(P,v)&&(O[v]=P[v]);return O},e.apply(this,arguments)},t=L&&L.__createBinding||(Object.create?function(O,P,g,A){A===void 0&&(A=g);var v=Object.getOwnPropertyDescriptor(P,g);v&&!("get"in v?!P.__esModule:v.writable||v.configurable)||(v={enumerable:!0,get:function(){return P[g]}}),Object.defineProperty(O,A,v)}:function(O,P,g,A){A===void 0&&(A=g),O[A]=P[g]}),o=L&&L.__setModuleDefault||(Object.create?function(O,P){Object.defineProperty(O,"default",{enumerable:!0,value:P})}:function(O,P){O.default=P}),n=L&&L.__importStar||function(O){if(O&&O.__esModule)return O;var P={};if(O!=null)for(var g in O)g!=="default"&&Object.prototype.hasOwnProperty.call(O,g)&&t(P,O,g);return o(P,O),P},r=L&&L.__awaiter||function(O,P,g,A){return new(g||(g=Promise))(function(v,F){function T(B){try{ee(A.next(B))}catch(R){F(R)}}function Z(B){try{ee(A.throw(B))}catch(R){F(R)}}function ee(B){var R;B.done?v(B.value):(R=B.value,R instanceof g?R:new g(function(J){J(R)})).then(T,Z)}ee((A=A.apply(O,P||[])).next())})},a=L&&L.__generator||function(O,P){var g,A,v,F,T={label:0,sent:function(){if(1&v[0])throw v[1];return v[1]},trys:[],ops:[]};return F={next:Z(0),throw:Z(1),return:Z(2)},typeof Symbol=="function"&&(F[Symbol.iterator]=function(){return this}),F;function Z(ee){return function(B){return function(R){if(g)throw new TypeError("Generator is already executing.");for(;T;)try{if(g=1,A&&(v=2&R[0]?A.return:R[0]?A.throw||((v=A.return)&&v.call(A),0):A.next)&&!(v=v.call(A,R[1])).done)return v;switch(A=0,v&&(R=[2&R[0],v.value]),R[0]){case 0:case 1:v=R;break;case 4:return T.label++,{value:R[1],done:!1};case 5:T.label++,A=R[1],R=[0];continue;case 7:R=T.ops.pop(),T.trys.pop();continue;default:if(!((v=(v=T.trys).length>0&&v[v.length-1])||R[0]!==6&&R[0]!==2)){T=0;continue}if(R[0]===3&&(!v||R[1]>v[0]&&R[1]<v[3])){T.label=R[1];break}if(R[0]===6&&T.label<v[1]){T.label=v[1],v=R;break}if(v&&T.label<v[2]){T.label=v[2],T.ops.push(R);break}v[2]&&T.ops.pop(),T.trys.pop();continue}R=P.call(O,T)}catch(J){R=[6,J],A=0}finally{g=v=0}if(5&R[0])throw R[1];return{value:R[0]?R[1]:void 0,done:!0}}([ee,B])}}},u=L&&L.__values||function(O){var P=typeof Symbol=="function"&&Symbol.iterator,g=P&&O[P],A=0;if(g)return g.call(O);if(O&&typeof O.length=="number")return{next:function(){return O&&A>=O.length&&(O=void 0),{value:O&&O[A++],done:!O}}};throw new TypeError(P?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(L,"__esModule",{value:!0}),L.AutoTypingsCore=void 0;var h=function(){if(le)return ie;le=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.DummySourceCache=void 0;var O=function(){function P(){}return P.prototype.getFile=function(g){return Promise.resolve(void 0)},P.prototype.isFileAvailable=function(g){return Promise.resolve(!1)},P.prototype.storeFile=function(g,A){return Promise.resolve(void 0)},P.prototype.clear=function(){return Promise.resolve(void 0)},P}();return ie.DummySourceCache=O,ie}(),E=he(),_=function(){if(we)return I;we=1;var O=I&&I.__assign||function(){return O=Object.assign||function(b){for(var i,p=1,d=arguments.length;p<d;p++)for(var c in i=arguments[p])Object.prototype.hasOwnProperty.call(i,c)&&(b[c]=i[c]);return b},O.apply(this,arguments)},P=I&&I.__createBinding||(Object.create?function(b,i,p,d){d===void 0&&(d=p);var c=Object.getOwnPropertyDescriptor(i,p);c&&!("get"in c?!i.__esModule:c.writable||c.configurable)||(c={enumerable:!0,get:function(){return i[p]}}),Object.defineProperty(b,d,c)}:function(b,i,p,d){d===void 0&&(d=p),b[d]=i[p]}),g=I&&I.__setModuleDefault||(Object.create?function(b,i){Object.defineProperty(b,"default",{enumerable:!0,value:i})}:function(b,i){b.default=i}),A=I&&I.__importStar||function(b){if(b&&b.__esModule)return b;var i={};if(b!=null)for(var p in b)p!=="default"&&Object.prototype.hasOwnProperty.call(b,p)&&P(i,b,p);return g(i,b),i},v=I&&I.__awaiter||function(b,i,p,d){return new(p||(p=Promise))(function(c,S){function y(C){try{l(d.next(C))}catch(f){S(f)}}function m(C){try{l(d.throw(C))}catch(f){S(f)}}function l(C){var f;C.done?c(C.value):(f=C.value,f instanceof p?f:new p(function(k){k(f)})).then(y,m)}l((d=d.apply(b,i||[])).next())})},F=I&&I.__generator||function(b,i){var p,d,c,S,y={label:0,sent:function(){if(1&c[0])throw c[1];return c[1]},trys:[],ops:[]};return S={next:m(0),throw:m(1),return:m(2)},typeof Symbol=="function"&&(S[Symbol.iterator]=function(){return this}),S;function m(l){return function(C){return function(f){if(p)throw new TypeError("Generator is already executing.");for(;y;)try{if(p=1,d&&(c=2&f[0]?d.return:f[0]?d.throw||((c=d.return)&&c.call(d),0):d.next)&&!(c=c.call(d,f[1])).done)return c;switch(d=0,c&&(f=[2&f[0],c.value]),f[0]){case 0:case 1:c=f;break;case 4:return y.label++,{value:f[1],done:!1};case 5:y.label++,d=f[1],f=[0];continue;case 7:f=y.ops.pop(),y.trys.pop();continue;default:if(!((c=(c=y.trys).length>0&&c[c.length-1])||f[0]!==6&&f[0]!==2)){y=0;continue}if(f[0]===3&&(!c||f[1]>c[0]&&f[1]<c[3])){y.label=f[1];break}if(f[0]===6&&y.label<c[1]){y.label=c[1],c=f;break}if(c&&y.label<c[2]){y.label=c[2],y.ops.push(f);break}c[2]&&y.ops.pop(),y.trys.pop();continue}f=i.call(b,y)}catch(k){f=[6,k],d=0}finally{p=c=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}([l,C])}}},T=I&&I.__values||function(b){var i=typeof Symbol=="function"&&Symbol.iterator,p=i&&b[i],d=0;if(p)return p.call(b);if(b&&typeof b.length=="number")return{next:function(){return b&&d>=b.length&&(b=void 0),{value:b&&b[d++],done:!b}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},Z=I&&I.__read||function(b,i){var p=typeof Symbol=="function"&&b[Symbol.iterator];if(!p)return b;var d,c,S=p.call(b),y=[];try{for(;(i===void 0||i-- >0)&&!(d=S.next()).done;)y.push(d.value)}catch(m){c={error:m}}finally{try{d&&!d.done&&(p=S.return)&&p.call(S)}finally{if(c)throw c.error}}return y};Object.defineProperty(I,"__esModule",{value:!0}),I.ImportResolver=void 0;var ee=function(){if(ve)return W;ve=1;var b=W&&W.__createBinding||(Object.create?function(m,l,C,f){f===void 0&&(f=C);var k=Object.getOwnPropertyDescriptor(l,C);k&&!("get"in k?!l.__esModule:k.writable||k.configurable)||(k={enumerable:!0,get:function(){return l[C]}}),Object.defineProperty(m,f,k)}:function(m,l,C,f){f===void 0&&(f=C),m[f]=l[C]}),i=W&&W.__setModuleDefault||(Object.create?function(m,l){Object.defineProperty(m,"default",{enumerable:!0,value:l})}:function(m,l){m.default=l}),p=W&&W.__importStar||function(m){if(m&&m.__esModule)return m;var l={};if(m!=null)for(var C in m)C!=="default"&&Object.prototype.hasOwnProperty.call(m,C)&&b(l,m,C);return i(l,m),l},d=W&&W.__read||function(m,l){var C=typeof Symbol=="function"&&m[Symbol.iterator];if(!C)return m;var f,k,M=C.call(m),G=[];try{for(;(l===void 0||l-- >0)&&!(f=M.next()).done;)G.push(f.value)}catch(U){k={error:U}}finally{try{f&&!f.done&&(C=M.return)&&C.call(M)}finally{if(k)throw k.error}}return G},c=W&&W.__spreadArray||function(m,l,C){if(C||arguments.length===2)for(var f,k=0,M=l.length;k<M;k++)!f&&k in l||(f||(f=Array.prototype.slice.call(l,0,k)),f[k]=l[k]);return m.concat(f||Array.prototype.slice.call(l))};Object.defineProperty(W,"__esModule",{value:!0}),W.DependencyParser=void 0;var S=p(ue()),y=function(){function m(){this.REGEX_CLEAN=/[\n|\r]/g,this.REGEX_DETECT_IMPORT=/(?:(?:(?:import)|(?:export))(?:.)*?from\s+["']([^"']+)["'])|(?:((?:require|import))(?:\s+)?\(["']([^"']+)["']\))|(?:\/+\s+<reference\s+path=["']([^"']+)["']\s+\/>)/g,this.REGEX_NODE_MODULE=/^node:([\w\W\/]+)$/}return m.prototype.parseDependencies=function(l,C){var f=this;return c([],d(l.matchAll(this.REGEX_DETECT_IMPORT)),!1).map(function(k){var M,G;return(G=(M=k[1])!==null&&M!==void 0?M:k[2])!==null&&G!==void 0?G:k[3]}).filter(function(k){return!!k}).map(function(k){return f.resolvePath(k,C)})},m.prototype.resolvePath=function(l,C){var f=l.match(this.REGEX_NODE_MODULE);if(f)return{kind:"relative-in-package",packageName:"@types/node",importPath:"".concat(f[1],".d.ts"),sourcePath:""};if(typeof C=="string"){if(l.startsWith("."))return{kind:"relative",importPath:l,sourcePath:C};if(l.startsWith("@")){var k=l.split("/");return{kind:"package",packageName:"".concat(k[0],"/").concat(k[1]),importPath:k.slice(2).join("/")}}return{kind:"package",packageName:(k=l.split("/"))[0],importPath:k.slice(1).join("/")}}switch(C.kind){case"package":throw Error("TODO?");case"relative":throw Error("TODO2?");case"relative-in-package":return l.startsWith(".")?{kind:"relative-in-package",packageName:C.packageName,sourcePath:S.join(C.sourcePath,C.importPath),importPath:l}:l.startsWith("@")?(k=l.split("/"),{kind:"package",packageName:"".concat(k[0],"/").concat(k[1]),importPath:k.slice(2).join("/")}):{kind:"package",packageName:(k=l.split("/"))[0],importPath:k.slice(1).join("/")}}},m}();return W.DependencyParser=y,W}(),B=ge(),R=A(ue()),J=be(),Ge=Oe(),Je=function(){function b(i){var p,d;if(this.options=i,this.loadedFiles=[],this.dependencyParser=new ee.DependencyParser,this.cache=i.sourceCache,this.sourceResolver=i.sourceResolver,this.newImportsResolved=!1,this.monaco=i.monaco,i.preloadPackages&&i.versions){this.versions=i.versions;try{for(var c=T(Object.entries(i.versions)),S=c.next();!S.done;S=c.next()){var y=Z(S.value,2),m=y[0];y[1],this.resolveImport({kind:"package",packageName:m,importPath:""},new Ge.RecursionDepth(this.options)).catch(function(l){console.error(l)})}}catch(l){p={error:l}}finally{try{S&&!S.done&&(d=c.return)&&d.call(c)}finally{if(p)throw p.error}}}}return b.prototype.wereNewImportsResolved=function(){return this.newImportsResolved},b.prototype.resetNewImportsResolved=function(){this.newImportsResolved=!1},b.prototype.resolveImportsInFile=function(i,p,d){var c,S,y;return v(this,void 0,void 0,function(){var m,l,C,f,k,M,G,U;return F(this,function(N){switch(N.label){case 0:if(d.shouldStop())return[2];m=this.dependencyParser.parseDependencies(i,p),N.label=1;case 1:N.trys.push([1,8,9,10]),l=T(m),C=l.next(),N.label=2;case 2:if(C.done)return[3,7];f=C.value,N.label=3;case 3:return N.trys.push([3,5,,6]),[4,this.resolveImport(f,d)];case 4:return N.sent(),[3,6];case 5:return k=N.sent(),this.options.onError?(S=(c=this.options).onError)===null||S===void 0||S.call(c,(y=k.message)!==null&&y!==void 0?y:k):console.error(k),[3,6];case 6:return C=l.next(),[3,2];case 7:return[3,10];case 8:return M=N.sent(),G={error:M},[3,10];case 9:try{C&&!C.done&&(U=l.return)&&U.call(l)}finally{if(G)throw G.error}return[7];case 10:return[2]}})})},b.prototype.resolveImport=function(i,p){return v(this,void 0,void 0,function(){var d,c;return F(this,function(S){switch(S.label){case 0:if(d=this.hashImportResourcePath(i),this.loadedFiles.includes(d))return[2];switch(this.loadedFiles.push(d),i.kind){case"package":return[3,1];case"relative":return[3,5];case"relative-in-package":return[3,6]}return[3,8];case 1:return[4,this.resolveImportFromPackageRoot(i)];case 2:return(c=S.sent())?[4,this.resolveImportInPackage(c,p.nextPackage().nextFile())]:[3,4];case 3:case 7:return[2,S.sent()];case 4:return[3,8];case 5:throw Error("Not implemented yet");case 6:return[4,this.resolveImportInPackage(i,p.nextFile())];case 8:return[2]}})})},b.prototype.resolveImportInPackage=function(i,p){return v(this,void 0,void 0,function(){var d,c,S;return F(this,function(y){switch(y.label){case 0:return[4,this.loadSourceFileContents(i)];case 1:return(d=y.sent())?(c=d.source,S=d.at,this.createModel(c,this.monaco.Uri.parse(this.options.fileRootPath+R.join("node_modules/".concat(i.packageName),S))),[4,this.resolveImportsInFile(c,{kind:"relative-in-package",packageName:i.packageName,sourcePath:R.dirname(S),importPath:""},p)]):[3,3];case 2:y.sent(),y.label=3;case 3:return[2]}})})},b.prototype.resolveImportFromPackageRoot=function(i){var p,d,c,S,y,m,l,C,f;return v(this,void 0,void 0,function(){var k,M,G,U,N,z,ne,V,X;return F(this,function(H){switch(H.label){case 0:return k={type:"LookedUpPackage",package:i.packageName,definitelyTyped:!1,success:!1},!this.options.onlySpecifiedPackages||(p=this.versions)!==null&&p!==void 0&&p[i.packageName]||(d=this.versions)!==null&&d!==void 0&&d["@types/"+i.packageName]?(M=(S=(c=i.importPath)===null||c===void 0?void 0:c.length)!==null&&S!==void 0&&S,G=M?"/".concat(i.importPath):"",[4,this.resolvePackageJson(i.packageName,(y=this.versions)===null||y===void 0?void 0:y[i.packageName],M?i.importPath:void 0)]):((0,J.invokeUpdate)(k,this.options),[2]);case 1:return(U=H.sent())||!M?[3,3]:[4,this.resolvePackageJson(i.packageName,(m=this.versions)===null||m===void 0?void 0:m[i.packageName])];case 2:U=H.sent(),G="",H.label=3;case 3:return U?(N=JSON.parse(U)).typings||N.types?(X=N.typings||N.types,this.createModel(U,this.monaco.Uri.parse("".concat(this.options.fileRootPath,"node_modules/").concat(i.packageName).concat(G,"/package.json"))),(0,J.invokeUpdate)({type:"LookedUpPackage",package:i.packageName,definitelyTyped:!1,success:!0},this.options),this.setVersion(i.packageName,N.version),[2,{kind:"relative-in-package",packageName:i.packageName,sourcePath:"",importPath:R.join((l=i.importPath)!==null&&l!==void 0?l:"",X.startsWith("./")?X.slice(2):X)}]):[3,4]:[3,7];case 4:return z="@types/".concat(i.packageName.startsWith("@")?i.packageName.slice(1).replace(/\//,"__"):i.packageName),[4,this.resolvePackageJson(z,(C=this.versions)===null||C===void 0?void 0:C[z])];case 5:if(ne=H.sent()){if((V=JSON.parse(ne)).typings||V.types)return X=V.typings||V.types,this.createModel(ne,this.monaco.Uri.parse("".concat(this.options.fileRootPath,"node_modules/").concat(z,"/package.json"))),(0,J.invokeUpdate)({type:"LookedUpPackage",package:z,definitelyTyped:!0,success:!0},this.options),this.setVersion(z,V.version),[2,{kind:"relative-in-package",packageName:z,sourcePath:"",importPath:R.join((f=i.importPath)!==null&&f!==void 0?f:"",X.startsWith("./")?X.slice(2):X)}];(0,J.invokeUpdate)(k,this.options)}else(0,J.invokeUpdate)(k,this.options);H.label=6;case 6:return[3,8];case 7:(0,J.invokeUpdate)(k,this.options),H.label=8;case 8:return[2]}})})},b.prototype.loadSourceFileContents=function(i){return v(this,void 0,void 0,function(){var p,d,c,S,y,m,l,C,f,k,M,G,U,N,z,ne;return F(this,function(V){switch(V.label){case 0:return p=R.join(i.packageName,i.sourcePath,i.importPath),d={type:"LookedUpTypeFile",path:p,definitelyTyped:!1,success:!1},c=i.packageName,S=this.getVersion(i.packageName),(y=[".d.ts","/index.d.ts",".ts",".tsx","/index.ts","/index.tsx"]).map(function(X){return i.importPath.endsWith(X)}).reduce(function(X,H){return X||H},!1)?[4,this.resolveSourceFile(c,S,R.join(i.sourcePath,i.importPath))]:[3,2];case 1:return(N=V.sent())?[2,{source:N,at:R.join(i.sourcePath,i.importPath)}]:[3,9];case 2:V.trys.push([2,7,8,9]),m=T(y),l=m.next(),V.label=3;case 3:return l.done?[3,6]:(C=l.value,f=R.join(i.sourcePath,i.importPath),U=(C===".d.ts"&&f.endsWith(".js")?f.slice(0,-3):f)+C,[4,this.resolveSourceFile(c,S,U)]);case 4:if(N=V.sent(),(0,J.invokeUpdate)({type:"AttemptedLookUpFile",path:R.join(c,U),success:!!N},this.options),N)return(0,J.invokeUpdate)({type:"LookedUpTypeFile",path:R.join(c,U),success:!0},this.options),[2,{source:N,at:U}];V.label=5;case 5:return l=m.next(),[3,3];case 6:return[3,9];case 7:return k=V.sent(),z={error:k},[3,9];case 8:try{l&&!l.done&&(ne=m.return)&&ne.call(m)}finally{if(z)throw z.error}return[7];case 9:return[4,this.resolvePackageJson(c,S,R.join(i.sourcePath,i.importPath))];case 10:return(M=V.sent())&&(G=JSON.parse(M).types)?(U=R.join(i.sourcePath,i.importPath,G),[4,this.resolveSourceFile(c,S,U)]):[3,12];case 11:if(N=V.sent())return(0,J.invokeUpdate)({type:"LookedUpTypeFile",path:R.join(c,U),success:!0},this.options),[2,{source:N,at:U}];V.label=12;case 12:return(0,J.invokeUpdate)(d,this.options),[2,null]}})})},b.prototype.getVersion=function(i){var p;return(p=this.versions)===null||p===void 0?void 0:p[i]},b.prototype.setVersions=function(i){var p,d;this.versions=i,(d=(p=this.options).onUpdateVersions)===null||d===void 0||d.call(p,i)},b.prototype.setVersion=function(i,p){var d;this.setVersions(O(O({},this.versions),((d={})[i]=p,d)))},b.prototype.createModel=function(i,p){p=p.with({path:p.path.replace("@types/","")}),this.monaco.editor.getModel(p)||(this.monaco.editor.createModel(i,"typescript",p),this.newImportsResolved=!0)},b.prototype.hashImportResourcePath=function(i){return(0,B.importResourcePathToString)(i)},b.prototype.resolvePackageJson=function(i,p,d){return v(this,void 0,void 0,function(){var c,S,y,m;return F(this,function(l){switch(l.label){case 0:return c=R.join(i+(p?"@".concat(p):""),d??"","package.json"),S=!1,y=void 0,this.cache.isFileAvailable?[4,this.cache.isFileAvailable(c)]:[3,2];case 1:return S=l.sent(),[3,4];case 2:return[4,this.cache.getFile(c)];case 3:y=l.sent(),S=y!==void 0,l.label=4;case 4:return S?y==null?[3,5]:(m=y,[3,7]):[3,8];case 5:return[4,this.cache.getFile(c)];case 6:m=l.sent(),l.label=7;case 7:return[2,m];case 8:return[4,this.sourceResolver.resolvePackageJson(i,p,d)];case 9:return(y=l.sent())&&this.cache.storeFile(c,y),[2,y]}})})},b.prototype.resolveSourceFile=function(i,p,d){return v(this,void 0,void 0,function(){var c,S,y,m;return F(this,function(l){switch(l.label){case 0:return c=R.join(i+(p?"@".concat(p):""),d),S=!1,y=void 0,this.cache.isFileAvailable?[4,this.cache.isFileAvailable(c)]:[3,2];case 1:return S=l.sent(),[3,4];case 2:return[4,this.cache.getFile(c)];case 3:y=l.sent(),S=y!==void 0,l.label=4;case 4:return S?((0,J.invokeUpdate)({type:"LoadedFromCache",importPath:c},this.options),y==null?[3,5]:(m=y,[3,7])):[3,8];case 5:return[4,this.cache.getFile(c)];case 6:m=l.sent(),l.label=7;case 7:return[2,m];case 8:return[4,this.sourceResolver.resolveSourceFile(i,p,d)];case 9:return(y=l.sent())&&((0,J.invokeUpdate)({type:"StoredToCache",importPath:c},this.options),this.cache.storeFile(c,y)),[2,y]}})})},b}();return I.ImportResolver=Je,I}(),s=n(ue()),j=be(),ae=Oe(),Le=function(){function O(P,g){var A=this;this.editor=P,this.options=g,this.disposables=[],this.importResolver=new _.ImportResolver(g);var v=P.onDidChangeModelContent(function(F){A.debouncedResolveContents()});this.disposables.push(v),this.resolveContents(),g.dontAdaptEditorOptions||g.monaco.languages.typescript.typescriptDefaults.setCompilerOptions(e(e({},g.monaco.languages.typescript.typescriptDefaults.getCompilerOptions()),{moduleResolution:g.monaco.languages.typescript.ModuleResolutionKind.NodeJs,allowSyntheticDefaultImports:!0,rootDir:g.fileRootPath}))}return O.create=function(P,g){var A,v;return r(this,void 0,void 0,function(){var F;return a(this,function(T){if(g?.shareCache&&g.sourceCache&&!O.sharedCache&&(O.sharedCache=g.sourceCache),!(F=g?.monaco))throw new Error("monacoInstance not found, you can specify the monaco instance via options.monaco");return[2,new O(P,e(e({fileRootPath:"inmemory://model/",onlySpecifiedPackages:!1,preloadPackages:!1,shareCache:!1,dontAdaptEditorOptions:!1,dontRefreshModelValueAfterResolvement:!1,sourceCache:(A=O.sharedCache)!==null&&A!==void 0?A:new h.DummySourceCache,sourceResolver:(v=g?.sourceResolver)!==null&&v!==void 0?v:new E.JsDelivrSourceResolver,debounceDuration:4e3,fileRecursionDepth:10,packageRecursionDepth:3},g),{monaco:F}))]})})},O.prototype.dispose=function(){var P,g;try{for(var A=u(this.disposables),v=A.next();!v.done;v=A.next())v.value.dispose()}catch(F){P={error:F}}finally{try{v&&!v.done&&(g=A.return)&&g.call(A)}finally{if(P)throw P.error}}},O.prototype.setVersions=function(P){this.importResolver.setVersions(P),this.options.versions=P},O.prototype.clearCache=function(){return r(this,void 0,void 0,function(){return a(this,function(P){switch(P.label){case 0:return[4,this.options.sourceCache.clear()];case 1:return P.sent(),[2]}})})},O.prototype.debouncedResolveContents=function(){var P=this;this.isResolving||((0,j.invokeUpdate)({type:"CodeChanged"},this.options),this.options.debounceDuration<=0?this.resolveContents():(this.debounceTimer!==void 0&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(function(){return r(P,void 0,void 0,function(){return a(this,function(g){switch(g.label){case 0:return[4,this.resolveContents()];case 1:return g.sent(),this.debounceTimer=void 0,[2]}})})},this.options.debounceDuration)))},O.prototype.resolveContents=function(){var P;return r(this,void 0,void 0,function(){var g,A,v,F;return a(this,function(T){switch(T.label){case 0:if(this.isResolving=!0,(0,j.invokeUpdate)({type:"ResolveNewImports"},this.options),!(g=this.editor.getModel()))throw Error("No model");A=g.getLinesContent(),T.label=1;case 1:return T.trys.push([1,3,,4]),[4,this.importResolver.resolveImportsInFile(A.join(`
7
- `),s.dirname(g.uri.toString()),new ae.RecursionDepth(this.options))];case 2:return T.sent(),[3,4];case 3:if(v=T.sent(),!this.options.onError)throw v;return this.options.onError((P=v.message)!==null&&P!==void 0?P:v),[3,4];case 4:return this.importResolver.wereNewImportsResolved()&&(this.options.dontRefreshModelValueAfterResolvement||(F=this.editor.getPosition(),g.setValue(g.getValue()),F&&this.editor.setPosition(F)),this.importResolver.resetNewImportsResolved()),this.isResolving=!1,[2]}})})},O}();return L.AutoTypingsCore=Le,L}().AutoTypingsCore);return te.AutoTypings=x,te}(),K),$(ge(),K),$(function(){if(je)return q;je=1;var w=q&&q.__awaiter||function(t,o,n,r){return new(n||(n=Promise))(function(a,u){function h(s){try{_(r.next(s))}catch(j){u(j)}}function E(s){try{_(r.throw(s))}catch(j){u(j)}}function _(s){var j;s.done?a(s.value):(j=s.value,j instanceof n?j:new n(function(ae){ae(j)})).then(h,E)}_((r=r.apply(t,o||[])).next())})},D=q&&q.__generator||function(t,o){var n,r,a,u,h={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return u={next:E(0),throw:E(1),return:E(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function E(_){return function(s){return function(j){if(n)throw new TypeError("Generator is already executing.");for(;h;)try{if(n=1,r&&(a=2&j[0]?r.return:j[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,j[1])).done)return a;switch(r=0,a&&(j=[2&j[0],a.value]),j[0]){case 0:case 1:a=j;break;case 4:return h.label++,{value:j[1],done:!1};case 5:h.label++,r=j[1],j=[0];continue;case 7:j=h.ops.pop(),h.trys.pop();continue;default:if(!((a=(a=h.trys).length>0&&a[a.length-1])||j[0]!==6&&j[0]!==2)){h=0;continue}if(j[0]===3&&(!a||j[1]>a[0]&&j[1]<a[3])){h.label=j[1];break}if(j[0]===6&&h.label<a[1]){h.label=a[1],a=j;break}if(a&&h.label<a[2]){h.label=a[2],h.ops.push(j);break}a[2]&&h.ops.pop(),h.trys.pop();continue}j=o.call(t,h)}catch(ae){j=[6,ae],r=0}finally{n=a=0}if(5&j[0])throw j[1];return{value:j[0]?j[1]:void 0,done:!0}}([_,s])}}},x=q&&q.__values||function(t){var o=typeof Symbol=="function"&&Symbol.iterator,n=o&&t[o],r=0;if(n)return n.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(o?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(q,"__esModule",{value:!0}),q.LocalStorageCache=void 0;var e=function(){function t(){this.localCache={}}return t.prototype.getFile=function(o){var n;return w(this,void 0,void 0,function(){return D(this,function(r){try{return[2,(n=localStorage.getItem(t.LOCALSTORAGE_PREFIX+o))!==null&&n!==void 0?n:void 0]}catch{return[2,this.localCache[o]]}return[2]})})},t.prototype.storeFile=function(o,n){return w(this,void 0,void 0,function(){return D(this,function(r){this.localCache[o]=n;try{localStorage.setItem(t.LOCALSTORAGE_PREFIX+o,n)}catch{}return[2]})})},t.prototype.clear=function(){return w(this,void 0,void 0,function(){var o,n,r,a,u,h,E;return D(this,function(_){for(this.localCache={},o=[],n=0;n<localStorage.length;n++)(u=localStorage.key(n))!=null&&u.startsWith(t.LOCALSTORAGE_PREFIX)&&o.push(u);try{for(r=x(o),a=r.next();!a.done;a=r.next())u=a.value,localStorage.removeItem(u)}catch(s){h={error:s}}finally{try{a&&!a.done&&(E=r.return)&&E.call(r)}finally{if(h)throw h.error}}return[2]})})},t.LOCALSTORAGE_PREFIX="__autotyper_cache_",t}();return q.LocalStorageCache=e,q}(),K),$((Re||(Re=1,Object.defineProperty(Fe,"__esModule",{value:!0})),Fe),K),$((Ce||(Ce=1,Object.defineProperty(Ne,"__esModule",{value:!0})),Ne),K),$((Se||(Se=1,Object.defineProperty(Ie,"__esModule",{value:!0})),Ie),K),$((xe||(xe=1,Object.defineProperty(Me,"__esModule",{value:!0})),Me),K),$(function(){if(Ae)return Y;Ae=1;var w=Y&&Y.__awaiter||function(e,t,o,n){return new(o||(o=Promise))(function(r,a){function u(_){try{E(n.next(_))}catch(s){a(s)}}function h(_){try{E(n.throw(_))}catch(s){a(s)}}function E(_){var s;_.done?r(_.value):(s=_.value,s instanceof o?s:new o(function(j){j(s)})).then(u,h)}E((n=n.apply(e,t||[])).next())})},D=Y&&Y.__generator||function(e,t){var o,n,r,a,u={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return a={next:h(0),throw:h(1),return:h(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function h(E){return function(_){return function(s){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,n&&(r=2&s[0]?n.return:s[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,s[1])).done)return r;switch(n=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return u.label++,{value:s[1],done:!1};case 5:u.label++,n=s[1],s=[0];continue;case 7:s=u.ops.pop(),u.trys.pop();continue;default:if(!((r=(r=u.trys).length>0&&r[r.length-1])||s[0]!==6&&s[0]!==2)){u=0;continue}if(s[0]===3&&(!r||s[1]>r[0]&&s[1]<r[3])){u.label=s[1];break}if(s[0]===6&&u.label<r[1]){u.label=r[1],r=s;break}if(r&&u.label<r[2]){u.label=r[2],u.ops.push(s);break}r[2]&&u.ops.pop(),u.trys.pop();continue}s=t.call(e,u)}catch(j){s=[6,j],n=0}finally{o=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([E,_])}}};Object.defineProperty(Y,"__esModule",{value:!0}),Y.UnpkgSourceResolver=void 0;var x=function(){function e(){}return e.prototype.resolvePackageJson=function(t,o,n){return w(this,void 0,void 0,function(){return D(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://unpkg.com/".concat(t).concat(o?"@".concat(o):"").concat(n?"/".concat(n):"","/package.json"))];case 1:return[2,r.sent()]}})})},e.prototype.resolveSourceFile=function(t,o,n){return w(this,void 0,void 0,function(){return D(this,function(r){switch(r.label){case 0:return[4,this.resolveFile("https://unpkg.com/".concat(t).concat(o?"@".concat(o):"","/").concat(n))];case 1:return[2,r.sent()]}})})},e.prototype.resolveFile=function(t){return w(this,void 0,void 0,function(){var o;return D(this,function(n){switch(n.label){case 0:return[4,fetch(t,{method:"GET"})];case 1:return(o=n.sent()).ok?[4,o.text()]:[3,3];case 2:return[2,n.sent()];case 3:if(o.status===404)return[2,""];throw Error("Error other than 404 while fetching from Unpkg at ".concat(t));case 4:return[2]}})})},e}();return Y.UnpkgSourceResolver=x,Y}(),K),$(he(),K)),Ee=oe)]);var K,Ue,$;exports.c=Ve;
@@ -1,6 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const S=require("@sheetxl/sdk");exports.fromBufferCSV=async(a,d)=>{const{papaParseConfig:i,setValuesOptions:f,createWorkbookOptions:h}=d??{},o=await Promise.resolve().then(()=>require("./CSGVl8EBCRhxcFm1.cjs")).then(n=>n.p),m=new TextDecoder().decode(a);let p=-1;const t=new S.Workbook(h),u=t.getSelectedSheet().getEntireRange().startIncrementalUpdates({orientation:S.IRange.Orientation.Row}),c=d?.onProgress;let e=0;const r={...i,transform:(n,g)=>{i?.transform&&(n=i.transform(n,g));const s=g;s===0&&p++;let l=n??"";return u.pushAt(p,s,l),e++,e%1e5==0&&c?.(e),n}};return o.parse(m,r).data,u.apply({textParser:!0,...f}),t},exports.toBufferCSV=async(a,d)=>{const{trimLeadingBlankRow:i=!0,trimLeadingBlankColumn:f=!0,excludeHidden:h=!1,sheetKey:o=null,papaParseConfig:m={}}=d||{},p=await Promise.resolve().then(()=>require("./CSGVl8EBCRhxcFm1.cjs")).then(s=>s.p);if(!a)throw new Error("workbook must be specified");let t=null;if(o===null?t=a.getSelectedSheet():typeof o=="number"?t=a.getSheets().search()[o]:typeof o=="string"&&(t=a.getSheets().getByName(o)),!t)throw new Error("invalid sheetKey specified");let u=null;const c=[];let e=null,r=t.getUsedRange({excludeHidden:h});if(!r)throw new Error("Nothing to export");if(!i||!f){const s=i?r.getRowStart():0,l=f?r.getColumnStart():0;r=r.getOffsetTo(s,l)}r.forEach((s,l)=>{const w=l.getCoords(),y=l.getCell();u!==w.rowIndex&&(e&&c.push(e),e=[],u=w.rowIndex);const x=y.toTextUnformatted()??"";e.push(x)},{includeEmpty:!0,address:null}),e&&c.push(e);const n={...m},g=p.unparse(c,n);return new TextEncoder().encode(g).buffer};
@@ -1,12 +0,0 @@
1
- "use strict";/**
2
- * @license @sheetxl/studio-vanilla - SheetXL Studio - Vanilla entry point for integrating SheetXL UI. - v0.4.9
3
- *
4
- * (C) 2025-present SheetXL Inc. & Michael T. Ford
5
- * License: The license can be found at https://www.sheetxl.com/license.
6
- */Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const J=require("@sheetxl/sdk");exports.fromBufferJSON=async(w,l)=>{let u=w;(function(t){if(t.byteLength<4)return!1;const i=new Uint8Array(t),r={gzip:[31,139],zip:[80,75,3,4],bz2:[66,90,104],br:[206,178,207,129]},n=Object.keys(r);for(let f=0;f<n.length;f++){const o=n[f],e=r[o];let a=!0;for(let s=0;s<e.length;s++)if(i[s]!==e[s]){a=!1;break}if(a)return o}return!1})(u)&&(u=await async function(t,i="gzip"){let r;typeof SharedArrayBuffer<"u"&&t instanceof SharedArrayBuffer?(r=new ArrayBuffer(t.byteLength),new Uint8Array(r).set(new Uint8Array(t))):r=t;const n=new Blob([r]).stream(),f=new DecompressionStream(i),o=n.pipeThrough(f);return(await new Response(o).blob()).arrayBuffer()}(u));let b=new TextDecoder().decode(u);const g=JSON.parse(b),p={...l?.createWorkbookOptions??{},json:g};return new J.Workbook(p)},exports.toBufferJSON=async(w,l)=>{const u=await w.toJSON(),b=l?.whiteSpace??0;let g;l?.beforeWrite?.(w,u),g=b===0?JSON.stringify(u):function(i,r=2){const n=[];function f(o){const e=r*o;return n[e]===void 0&&(n[e]=" ".repeat(e)),n[e]}return function o(e,a,s,m){if(e==null||typeof e!="object")return JSON.stringify(e);const A=f(a),O=f(a+1);if(Array.isArray(e)){const c=e.length;if(c===0)return"[]";if(s!==0)return JSON.stringify(e);let y=`[
7
- `;for(let h=0;h<c;h++)y+=O+o(e[h],a+1,s+1,!0),h<c-1&&(y+=`,
8
- `);return y+=`
9
- `+A+"]",y}const B=Object.keys(e),d=B.length;if(d===0)return"{}";if(!(s<2))return JSON.stringify(e);let S=`{
10
- `;m||(s=0);for(let c=0;c<d;c++){const y=B[c];S+=O+JSON.stringify(y)+": "+o(e[y],a+1,s,!1),c<d-1&&(S+=`,
11
- `)}return S+=`
12
- `+A+"}",S}(i,0,0,!1)}(u,b);let p=new TextEncoder().encode(g).buffer;const t=l?.compress??!0;return t&&(p=await async function(i,r="gzip"){let n;typeof SharedArrayBuffer<"u"&&i instanceof SharedArrayBuffer?(n=new ArrayBuffer(i.byteLength),new Uint8Array(n).set(new Uint8Array(i))):n=i;const f=new ReadableStream({start(a){a.enqueue(n),a.close()}}),o=new CompressionStream(r),e=f.pipeThrough(o);return(await new Response(e).blob()).arrayBuffer()}(p,typeof t=="string"?t:void 0)),p};