@node-projects/excelforge 2.3.0 → 2.4.0

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.
@@ -304,9 +304,6 @@ ${tablePartsXml}
304
304
  if (typeof v === 'number') {
305
305
  return `<c r="${ref}"${sAttr}><v>${v}</v></c>`;
306
306
  }
307
- if (typeof v === 'string' && v.startsWith('=')) {
308
- return `<c r="${ref}"${sAttr}><f>${escapeXml(v.slice(1))}</f></c>`;
309
- }
310
307
  const si = shared.intern(v);
311
308
  return `<c r="${ref}" t="s"${sAttr}><v>${si}</v></c>`;
312
309
  }
@@ -1 +1 @@
1
- {"version":3,"file":"Worksheet.js","sourceRoot":"","sources":["../../src/core/Worksheet.ts"],"names":[],"mappings":"AASA,OAAO,EACL,gBAAgB,EAAoB,gBAAgB,EACpD,gBAAgB,EAAE,UAAU,EAAE,SAAS,EAAc,YAAY,EACjE,OAAO,GACR,MAAM,qBAAqB,CAAC;AAK7B,MAAM,WAAW,GAA2B;IAC1C,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;IAC5D,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG;CAC3C,CAAC;AAEF,MAAM,OAAO,SAAS;IA+BpB,YAAY,IAAY,EAAE,UAA4B,EAAE;QA7BhD,UAAK,GAAY,IAAI,GAAG,EAAE,CAAC;QAC3B,WAAM,GAAiB,EAAE,CAAC;QAC1B,WAAM,GAAY,EAAE,CAAC;QACrB,WAAM,GAAY,EAAE,CAAC;QACrB,uBAAkB,GAAwB,EAAE,CAAC;QAC7C,WAAM,GAAY,EAAE,CAAC;QACrB,eAAU,GAAgB,EAAE,CAAC;QAC7B,YAAO,GAA2B,IAAI,GAAG,EAAE,CAAC;QAC5C,YAAO,GAA2B,IAAI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1
- function W(s){let t="";for(;s>0;){let e=(s-1)%26;t=String.fromCharCode(65+e)+t,s=Math.floor((s-1)/26)}return t}function Nt(s){let t=0;for(let e=0;e<s.length;e++)t=t*26+(s.charCodeAt(e)-64);return t}function H(s){let t=s.match(/^(\$?)([A-Z]+)(\$?)(\d+)$/);if(!t)throw new Error(`Invalid cell ref: ${s}`);return{col:Nt(t[2]),row:parseInt(t[4],10)}}function rt(s,t,e=!1){let r=e?"$":"";return`${r}${W(t)}${r}${s}`}function ot(s){let[t,e]=s.split(":"),r=H(t.replace(/\$/g,"")),o=e?H(e.replace(/\$/g,"")):r;return{startRow:r.row,startCol:r.col,endRow:o.row,endCol:o.col}}function g(s){return s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}var re=new TextEncoder;function C(s){return re.encode(s)}function gt(s,t=!1){let e=t?Date.UTC(1904,0,1):Date.UTC(1899,11,30),r=(s.getTime()-e)/864e5;return t||r>=60,r}function xt(s){return Math.round(s*914400/96)}function ct(s){let t=atob(s),e=new Uint8Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}function oe(s){let t="";for(let e=0;e<s.length;e++)t+=String.fromCharCode(s[e]);return btoa(t)}var ne={average:101,count:102,countNums:103,max:104,min:105,stdDev:107,sum:109,var:110,vars:111},J=class{constructor(t,e={}){this.cells=new Map,this.merges=[],this.images=[],this.charts=[],this.conditionalFormats=[],this.tables=[],this.sparklines=[],this.colDefs=new Map,this.rowDefs=new Map,this.dataValidations=new Map,this.sheetIndex=0,this.rId="",this.drawingRId="",this.legacyDrawingRId="",this.tableRIds=[],this.name=t,this.options={...e,name:t}}key(t,e){return`${t},${e}`}getCell(t,e){let r=this.key(t,e);return this.cells.has(r)||this.cells.set(r,{}),this.cells.get(r)}getCellByRef(t){let{row:e,col:r}=H(t);return this.getCell(e,r)}setCell(t,e,r){return this.cells.set(this.key(t,e),r),this}setValue(t,e,r){return this.getCell(t,e).value=r,this}setFormula(t,e,r){return this.getCell(t,e).formula=r,this}setStyle(t,e,r){return this.getCell(t,e).style=r,this}writeArray(t,e,r){for(let o=0;o<r.length;o++)for(let i=0;i<r[o].length;i++)this.setValue(t+o,e+i,r[o][i]);return this}writeColumn(t,e,r){return r.forEach((o,i)=>this.setValue(t+i,e,o)),this}writeRow(t,e,r){return r.forEach((o,i)=>this.setValue(t,e+i,o)),this}setColumn(t,e){return this.colDefs.set(t,e),this}setColumnWidth(t,e){let r=this.colDefs.get(t)??{};return this.colDefs.set(t,{...r,width:e,customWidth:!0}),this}setRow(t,e){return this.rowDefs.set(t,e),this}setRowHeight(t,e){let r=this.rowDefs.get(t)??{};return this.rowDefs.set(t,{...r,height:e}),this}merge(t,e,r,o){return this.merges.push({startRow:t,startCol:e,endRow:r,endCol:o}),this}mergeByRef(t){let[e,r]=t.split(":"),o=H(e),i=H(r);return this.merge(o.row,o.col,i.row,i.col)}addImage(t){return this.images.push(t),this}getImages(){return this.images}getComments(){let t=[];for(let[e,r]of this.cells)if(r.comment){let[o,i]=e.split(",").map(Number);t.push({row:o,col:i,comment:r.comment})}return t}addChart(t){return this.charts.push(t),this}getCharts(){return this.charts}addConditionalFormat(t){return this.conditionalFormats.push(t),this}addTable(t){if(this.tables.push(t),t.totalsRow&&t.columns?.length){let{startRow:e,startCol:r,endRow:o}=ot(t.ref),i=e+1,n=o-1;t.columns.forEach((l,c)=>{let a=r+c;if(l.totalsRowLabel)this.setValue(o,a,l.totalsRowLabel);else if(l.totalsRowFunction&&l.totalsRowFunction!=="none"){let d=ne[l.totalsRowFunction];if(d!==void 0){let m=W(a);this.setFormula(o,a,`SUBTOTAL(${d},${m}${i}:${m}${n})`)}}})}return this}getTables(){return this.tables}addSparkline(t){return this.sparklines.push(t),this}addDataValidation(t,e){return this.dataValidations.set(t,e),this}freeze(t,e){return this.freezePane={row:t,col:e},this}toXml(t,e){let r=this.pageSetup?.fitToPage,o=this.options?.tabColor,i=r||o?`<sheetPr>${o?`<tabColor rgb="${o}"/>`:""}${r?'<pageSetUpPr fitToPage="1"/>':""}</sheetPr>`:"",n=this._sheetViewXml(),l=this._colsXml(t),c=this._sheetDataXml(t,e),a=this._mergesXml(),d=this._conditionalFormatXml(t),m=this._dataValidationsXml(),p=this.autoFilter?`<autoFilter ref="${this.autoFilter.ref}"/>`:"",h=this.tables.length?`<tableParts count="${this.tables.length}">${this.tableRIds.map(T=>`<tablePart r:id="${T}"/>`).join("")}</tableParts>`:"",u=(this.images.length||this.charts.length)&&this.drawingRId?`<drawing r:id="${this.drawingRId}"/>`:"",$=this.legacyDrawingRId?`<legacyDrawing r:id="${this.legacyDrawingRId}"/>`:"",x=this._sparklineXml(),y=this._protectionXml(),b=this._pageSetupXml(),F=this._pageMarginsXml(),I=this._headerFooterXml(),X=this._printOptionsXml();return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
1
+ function W(s){let t="";for(;s>0;){let e=(s-1)%26;t=String.fromCharCode(65+e)+t,s=Math.floor((s-1)/26)}return t}function Nt(s){let t=0;for(let e=0;e<s.length;e++)t=t*26+(s.charCodeAt(e)-64);return t}function H(s){let t=s.match(/^(\$?)([A-Z]+)(\$?)(\d+)$/);if(!t)throw new Error(`Invalid cell ref: ${s}`);return{col:Nt(t[2]),row:parseInt(t[4],10)}}function rt(s,t,e=!1){let r=e?"$":"";return`${r}${W(t)}${r}${s}`}function ot(s){let[t,e]=s.split(":"),r=H(t.replace(/\$/g,"")),o=e?H(e.replace(/\$/g,"")):r;return{startRow:r.row,startCol:r.col,endRow:o.row,endCol:o.col}}function g(s){return s.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}var re=new TextEncoder;function C(s){return re.encode(s)}function gt(s,t=!1){let e=t?Date.UTC(1904,0,1):Date.UTC(1899,11,30),r=(s.getTime()-e)/864e5;return t||r>=60,r}function xt(s){return Math.round(s*914400/96)}function ct(s){let t=atob(s),e=new Uint8Array(t.length);for(let r=0;r<t.length;r++)e[r]=t.charCodeAt(r);return e}function oe(s){let t="";for(let e=0;e<s.length;e++)t+=String.fromCharCode(s[e]);return btoa(t)}var ne={average:101,count:102,countNums:103,max:104,min:105,stdDev:107,sum:109,var:110,vars:111},J=class{constructor(t,e={}){this.cells=new Map,this.merges=[],this.images=[],this.charts=[],this.conditionalFormats=[],this.tables=[],this.sparklines=[],this.colDefs=new Map,this.rowDefs=new Map,this.dataValidations=new Map,this.sheetIndex=0,this.rId="",this.drawingRId="",this.legacyDrawingRId="",this.tableRIds=[],this.name=t,this.options={...e,name:t}}key(t,e){return`${t},${e}`}getCell(t,e){let r=this.key(t,e);return this.cells.has(r)||this.cells.set(r,{}),this.cells.get(r)}getCellByRef(t){let{row:e,col:r}=H(t);return this.getCell(e,r)}setCell(t,e,r){return this.cells.set(this.key(t,e),r),this}setValue(t,e,r){return this.getCell(t,e).value=r,this}setFormula(t,e,r){return this.getCell(t,e).formula=r,this}setStyle(t,e,r){return this.getCell(t,e).style=r,this}writeArray(t,e,r){for(let o=0;o<r.length;o++)for(let n=0;n<r[o].length;n++)this.setValue(t+o,e+n,r[o][n]);return this}writeColumn(t,e,r){return r.forEach((o,n)=>this.setValue(t+n,e,o)),this}writeRow(t,e,r){return r.forEach((o,n)=>this.setValue(t,e+n,o)),this}setColumn(t,e){return this.colDefs.set(t,e),this}setColumnWidth(t,e){let r=this.colDefs.get(t)??{};return this.colDefs.set(t,{...r,width:e,customWidth:!0}),this}setRow(t,e){return this.rowDefs.set(t,e),this}setRowHeight(t,e){let r=this.rowDefs.get(t)??{};return this.rowDefs.set(t,{...r,height:e}),this}merge(t,e,r,o){return this.merges.push({startRow:t,startCol:e,endRow:r,endCol:o}),this}mergeByRef(t){let[e,r]=t.split(":"),o=H(e),n=H(r);return this.merge(o.row,o.col,n.row,n.col)}addImage(t){return this.images.push(t),this}getImages(){return this.images}getComments(){let t=[];for(let[e,r]of this.cells)if(r.comment){let[o,n]=e.split(",").map(Number);t.push({row:o,col:n,comment:r.comment})}return t}addChart(t){return this.charts.push(t),this}getCharts(){return this.charts}addConditionalFormat(t){return this.conditionalFormats.push(t),this}addTable(t){if(this.tables.push(t),t.totalsRow&&t.columns?.length){let{startRow:e,startCol:r,endRow:o}=ot(t.ref),n=e+1,i=o-1;t.columns.forEach((l,c)=>{let a=r+c;if(l.totalsRowLabel)this.setValue(o,a,l.totalsRowLabel);else if(l.totalsRowFunction&&l.totalsRowFunction!=="none"){let d=ne[l.totalsRowFunction];if(d!==void 0){let m=W(a);this.setFormula(o,a,`SUBTOTAL(${d},${m}${n}:${m}${i})`)}}})}return this}getTables(){return this.tables}addSparkline(t){return this.sparklines.push(t),this}addDataValidation(t,e){return this.dataValidations.set(t,e),this}freeze(t,e){return this.freezePane={row:t,col:e},this}toXml(t,e){let r=this.pageSetup?.fitToPage,o=this.options?.tabColor,n=r||o?`<sheetPr>${o?`<tabColor rgb="${o}"/>`:""}${r?'<pageSetUpPr fitToPage="1"/>':""}</sheetPr>`:"",i=this._sheetViewXml(),l=this._colsXml(t),c=this._sheetDataXml(t,e),a=this._mergesXml(),d=this._conditionalFormatXml(t),m=this._dataValidationsXml(),p=this.autoFilter?`<autoFilter ref="${this.autoFilter.ref}"/>`:"",h=this.tables.length?`<tableParts count="${this.tables.length}">${this.tableRIds.map(T=>`<tablePart r:id="${T}"/>`).join("")}</tableParts>`:"",u=(this.images.length||this.charts.length)&&this.drawingRId?`<drawing r:id="${this.drawingRId}"/>`:"",$=this.legacyDrawingRId?`<legacyDrawing r:id="${this.legacyDrawingRId}"/>`:"",x=this._sparklineXml(),y=this._protectionXml(),b=this._pageSetupXml(),F=this._pageMarginsXml(),I=this._headerFooterXml(),X=this._printOptionsXml();return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
2
  <worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"
3
3
  xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
4
4
  xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"
5
5
  xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision">
6
- ${i}
7
6
  ${n}
7
+ ${i}
8
8
  ${l}
9
9
  ${c}
10
10
  ${y}
@@ -20,10 +20,10 @@ ${u}
20
20
  ${$}
21
21
  ${x}
22
22
  ${h}
23
- </worksheet>`}_sheetViewXml(){let t=this.view??{},e=['workbookViewId="0"',t.showGridLines===!1?'showGridLines="0"':"",t.showRowColHeaders===!1?'showRowColHeaders="0"':"",t.zoomScale!==void 0?`zoomScale="${t.zoomScale}"`:"",t.rightToLeft?'rightToLeft="1"':"",t.tabSelected?'tabSelected="1"':"",t.view?`view="${t.view}"`:""].filter(Boolean),r="";if(this.freezePane){let{row:o=0,col:i=0}=this.freezePane,n=o&&i?rt(o+1,i+1):o?rt(o+1,1):rt(1,i+1),l=o&&i?"bottomRight":o?"bottomLeft":"topRight";r=`<pane xSplit="${i}" ySplit="${o}" topLeftCell="${n}" activePane="${l}" state="frozen"/>
24
- <selection pane="${l}" activeCell="${n}" sqref="${n}"/>`}return`<sheetViews><sheetView ${e.join(" ")}>${r}</sheetView></sheetViews>`}_colsXml(t){return this.colDefs.size?`<cols>${[...this.colDefs.entries()].sort((o,i)=>o[0]-i[0]).map(([o,i])=>{let n=i.style?t.register(i.style):0;return`<col min="${o}" max="${o}"`+(i.width?` width="${i.width}" customWidth="1"`:"")+(i.hidden?' hidden="1"':"")+(i.bestFit?' bestFit="1"':"")+(i.outlineLevel?` outlineLevel="${i.outlineLevel}"`:"")+(i.collapsed?' collapsed="1"':"")+(n?` style="${n}"`:"")+"/>"}).join("")}</cols>`:""}_sheetDataXml(t,e){let r=new Map;for(let[n,l]of this.cells){let[c,a]=n.split(",").map(Number);r.has(c)||r.set(c,[]),r.get(c).push([a,l])}return`<sheetData>${[...r.entries()].sort((n,l)=>n[0]-l[0]).map(([n,l])=>{let c=this.rowDefs.get(n),a=c?.style?t.register(c.style):0,d=[`r="${n}"`,c?.height?`ht="${c.height}" customHeight="1"`:"",c?.hidden?'hidden="1"':"",c?.outlineLevel?`outlineLevel="${c.outlineLevel}"`:"",c?.collapsed?'collapsed="1"':"",a?`s="${a}" customFormat="1"`:"",c?.thickTop?'thickTop="1"':"",c?.thickBot?'thickBot="1"':""].filter(Boolean).join(" "),p=l.sort((h,u)=>h[0]-u[0]).map(([h,u])=>this._cellXml(n,h,u,t,e)).join("");return`<row ${d}>${p}</row>`}).join("")}</sheetData>`}_cellXml(t,e,r,o,i){let n=`${W(e)}${t}`,l=r.style?o.register(r.style):0,c=l?` s="${l}"`:"";if(r.arrayFormula){let m=`<f t="array" ref="${n}">${g(r.arrayFormula)}</f>`;return`<c r="${n}"${c}>${m}<v>0</v></c>`}if(r.formula){let m=`<f>${g(r.formula)}</f>`;return`<c r="${n}"${c}>${m}</c>`}if(r.richText){let m=i.internRichText(r.richText);return`<c r="${n}" t="s"${c}><v>${m}</v></c>`}let a=r.value;if(a==null)return l?`<c r="${n}"${c}/>`:"";if(typeof a=="boolean")return`<c r="${n}" t="b"${c}><v>${a?1:0}</v></c>`;if(a instanceof Date){let m=gt(a);return`<c r="${n}"${c}><v>${m}</v></c>`}if(typeof a=="number")return`<c r="${n}"${c}><v>${a}</v></c>`;if(typeof a=="string"&&a.startsWith("="))return`<c r="${n}"${c}><f>${g(a.slice(1))}</f></c>`;let d=i.intern(a);return`<c r="${n}" t="s"${c}><v>${d}</v></c>`}_mergesXml(){if(!this.merges.length)return"";let t=this.merges.map(e=>{let r=`${W(e.startCol)}${e.startRow}`,o=`${W(e.endCol)}${e.endRow}`;return`<mergeCell ref="${r}:${o}"/>`});return`<mergeCells count="${this.merges.length}">${t.join("")}</mergeCells>`}_conditionalFormatXml(t){return this.conditionalFormats.map(e=>{let r=e.style?t.registerDxf(e.style):void 0,o="";if(e.colorScale?.type==="colorScale"){let c=e.colorScale,a=c.cfvo.map(m=>`<cfvo type="${m.type}"${m.val?` val="${m.val}"`:""}/>`).join(""),d=c.color.map(m=>`<color rgb="${m.startsWith("#")?"FF"+m.slice(1):m}"/>`).join("");o=`<colorScale>${a}${d}</colorScale>`}else if(e.dataBar?.type==="dataBar"){let c=e.dataBar,a=`<cfvo type="${c.minType??"min"}"${c.minVal!=null?` val="${c.minVal}"`:""}/>`,d=`<cfvo type="${c.maxType??"max"}"${c.maxVal!=null?` val="${c.maxVal}"`:""}/>`,m=c.color??c.minColor??"FF638EC6",p=m.startsWith("#")?"FF"+m.slice(1):m;o=`<dataBar${c.showValue===!1?' showValue="0"':""}>${a}${d}<color rgb="${p}"/></dataBar>`}else if(e.iconSet?.type==="iconSet"){let c=e.iconSet,a=c.cfvo.map(d=>`<cfvo type="${d.type}"${d.val?` val="${d.val}"`:""}/>`).join("");o=`<iconSet iconSet="${c.iconSet}"${c.showValue===!1?' showValue="0"':""}${c.reverse?' reverse="1"':""}>${a}</iconSet>`}let i=[`type="${e.type}"`,e.operator?`operator="${e.operator}"`:"",r!==void 0?`dxfId="${r}"`:"",`priority="${e.priority??1}"`,e.aboveAverage===!1?'aboveAverage="0"':"",e.percent?'percent="1"':"",e.rank?`rank="${e.rank}"`:"",e.timePeriod?`timePeriod="${e.timePeriod}"`:"",e.text?`text="${g(e.text)}"`:""].filter(Boolean).join(" "),n=e.formula?`<formula>${g(e.formula)}</formula>`:"",l=e.formula2?`<formula>${g(e.formula2)}</formula>`:"";return`<conditionalFormatting sqref="${e.sqref}"><cfRule ${i}>${n}${l}${o}</cfRule></conditionalFormatting>`}).join("")}_dataValidationsXml(){if(!this.dataValidations.size)return"";let t=[...this.dataValidations.entries()].map(([e,r])=>{let o=r.type==="list"&&r.list?`<formula1>"${r.list.join(",")}"</formula1>`:r.formula1?`<formula1>${g(r.formula1)}</formula1>`:"",i=r.formula2?`<formula2>${g(r.formula2)}</formula2>`:"";return`<dataValidation ${[`type="${r.type}"`,r.operator?`operator="${r.operator}"`:"",`sqref="${e}"`,r.showDropDown!==!1&&r.type==="list"?"":'showDropDown="1"',r.allowBlank!==!1?'allowBlank="1"':"",r.showErrorAlert?'showErrorMessage="1"':"",r.errorTitle?`errorTitle="${g(r.errorTitle)}"`:"",r.error?`error="${g(r.error)}"`:"",r.showInputMessage?'showInputMessage="1"':"",r.promptTitle?`promptTitle="${g(r.promptTitle)}"`:"",r.prompt?`prompt="${g(r.prompt)}"`:""].filter(Boolean).join(" ")}>${o}${i}</dataValidation>`});return`<dataValidations count="${this.dataValidations.size}">${t.join("")}</dataValidations>`}_protectionXml(){let t=this.protection;return t?`<sheetProtection ${[t.sheet?'sheet="1"':"",t.password?`password="${ie(t.password)}"`:"",t.selectLockedCells===!1?'selectLockedCells="0"':"",t.selectUnlockedCells===!1?'selectUnlockedCells="0"':"",t.formatCells?'formatCells="0"':"",t.formatColumns?'formatColumns="0"':"",t.formatRows?'formatRows="0"':"",t.insertColumns?'insertColumns="0"':"",t.insertRows?'insertRows="0"':"",t.insertHyperlinks?'insertHyperlinks="0"':"",t.deleteColumns?'deleteColumns="0"':"",t.deleteRows?'deleteRows="0"':"",t.sort?'sort="0"':"",t.autoFilter?'autoFilter="0"':"",t.pivotTables?'pivotTables="0"':""].filter(Boolean).join(" ")}/>`:""}_pageSetupXml(){let t=this.pageSetup;return t?`<pageSetup ${[t.paperSize?`paperSize="${t.paperSize}"`:"",t.orientation?`orientation="${t.orientation}"`:"",t.fitToWidth!==void 0?`fitToWidth="${t.fitToWidth}"`:"",t.fitToHeight!==void 0?`fitToHeight="${t.fitToHeight}"`:"",t.scale?`scale="${t.scale}"`:"",t.horizontalDpi?`horizontalDpi="${t.horizontalDpi}"`:"",t.verticalDpi?`verticalDpi="${t.verticalDpi}"`:"",t.firstPageNumber?`firstPageNumber="${t.firstPageNumber}" useFirstPageNumber="1"`:""].filter(Boolean).join(" ")}/>`:""}_pageMarginsXml(){let t=this.pageMargins,r={...{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},...t};return`<pageMargins left="${r.left}" right="${r.right}" top="${r.top}" bottom="${r.bottom}" header="${r.header}" footer="${r.footer}"/>`}_headerFooterXml(){let t=this.headerFooter;if(!t)return"";let e=[t.differentOddEven?'differentOddEven="1"':"",t.differentFirst?'differentFirst="1"':""].filter(Boolean).join(" "),r=t.oddHeader?`<oddHeader>${g(t.oddHeader)}</oddHeader>`:"",o=t.oddFooter?`<oddFooter>${g(t.oddFooter)}</oddFooter>`:"",i=t.evenHeader?`<evenHeader>${g(t.evenHeader)}</evenHeader>`:"",n=t.evenFooter?`<evenFooter>${g(t.evenFooter)}</evenFooter>`:"",l=t.firstHeader?`<firstHeader>${g(t.firstHeader)}</firstHeader>`:"",c=t.firstFooter?`<firstFooter>${g(t.firstFooter)}</firstFooter>`:"";return`<headerFooter${e?" "+e:""}>${r}${o}${i}${n}${l}${c}</headerFooter>`}_printOptionsXml(){let t=this.printOptions;if(!t)return"";let e=[t.gridLines?'gridLines="1"':"",t.gridLinesSet?'gridLinesSet="1"':"",t.headings?'headings="1"':"",t.centerHorizontal?'horizontalCentered="1"':"",t.centerVertical?'verticalCentered="1"':""].filter(Boolean).join(" ");return e?`<printOptions ${e}/>`:""}_sparklineXml(){if(!this.sparklines.length)return"";let t=(o,i)=>{if(!i)return"";let n=i.startsWith("#")?"FF"+i.slice(1):i;return`<x14:${o} rgb="${n}"/>`};return`<extLst><ext uri="{05C60535-1F16-4fd2-B633-F4F36F0B64E0}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main">${`<x14:sparklineGroups xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">${this.sparklines.map(o=>{let n=[`type="${o.type==="bar"?"column":o.type}"`,o.lineWidth!==void 0?`lineWeight="${o.lineWidth}"`:"",o.showMarkers?'markers="1"':"",o.showFirst?'first="1"':"",o.showLast?'last="1"':"",o.showHigh?'high="1"':"",o.showLow?'low="1"':"",o.showNegative?'negative="1"':"",o.minAxisType?`minAxisType="${o.minAxisType}"`:"",o.maxAxisType?`maxAxisType="${o.maxAxisType}"`:""].filter(Boolean).join(" "),l=[t("colorSeries",o.color),t("colorHigh",o.highColor),t("colorLow",o.lowColor),t("colorFirst",o.firstColor),t("colorLast",o.lastColor),t("colorNegative",o.negativeColor),t("colorMarkers",o.markersColor)].join(""),c=o.dataRange.includes("!")?o.dataRange:`${this.name}!${o.dataRange}`,a=`<x14:sparklines><x14:sparkline><xm:f>${g(c)}</xm:f><xm:sqref>${o.location}</xm:sqref></x14:sparkline></x14:sparklines>`;return`<x14:sparklineGroup ${n}>${l}${a}</x14:sparklineGroup>`}).join("")}</x14:sparklineGroups>`}</ext></extLst>`}toDrawingXml(t,e){let r=[],o=xt;return this.images.forEach((i,n)=>{let l=t[n],c=i.from,a=i.to,d=`<xdr:from><xdr:col>${c.col}</xdr:col><xdr:colOff>${c.colOff??0}</xdr:colOff><xdr:row>${c.row}</xdr:row><xdr:rowOff>${c.rowOff??0}</xdr:rowOff></xdr:from>`,m;if(a){let u=`<xdr:to><xdr:col>${a.col}</xdr:col><xdr:colOff>${a.colOff??0}</xdr:colOff><xdr:row>${a.row}</xdr:row><xdr:rowOff>${a.rowOff??0}</xdr:rowOff></xdr:to>`;m=`<xdr:twoCellAnchor editAs="oneCell">${d}${u}`}else{let u=o(i.width??100),$=o(i.height??100);m=`<xdr:oneCellAnchor>${d}<xdr:ext cx="${u}" cy="${$}"/>`}let p=`<xdr:pic>
23
+ </worksheet>`}_sheetViewXml(){let t=this.view??{},e=['workbookViewId="0"',t.showGridLines===!1?'showGridLines="0"':"",t.showRowColHeaders===!1?'showRowColHeaders="0"':"",t.zoomScale!==void 0?`zoomScale="${t.zoomScale}"`:"",t.rightToLeft?'rightToLeft="1"':"",t.tabSelected?'tabSelected="1"':"",t.view?`view="${t.view}"`:""].filter(Boolean),r="";if(this.freezePane){let{row:o=0,col:n=0}=this.freezePane,i=o&&n?rt(o+1,n+1):o?rt(o+1,1):rt(1,n+1),l=o&&n?"bottomRight":o?"bottomLeft":"topRight";r=`<pane xSplit="${n}" ySplit="${o}" topLeftCell="${i}" activePane="${l}" state="frozen"/>
24
+ <selection pane="${l}" activeCell="${i}" sqref="${i}"/>`}return`<sheetViews><sheetView ${e.join(" ")}>${r}</sheetView></sheetViews>`}_colsXml(t){return this.colDefs.size?`<cols>${[...this.colDefs.entries()].sort((o,n)=>o[0]-n[0]).map(([o,n])=>{let i=n.style?t.register(n.style):0;return`<col min="${o}" max="${o}"`+(n.width?` width="${n.width}" customWidth="1"`:"")+(n.hidden?' hidden="1"':"")+(n.bestFit?' bestFit="1"':"")+(n.outlineLevel?` outlineLevel="${n.outlineLevel}"`:"")+(n.collapsed?' collapsed="1"':"")+(i?` style="${i}"`:"")+"/>"}).join("")}</cols>`:""}_sheetDataXml(t,e){let r=new Map;for(let[i,l]of this.cells){let[c,a]=i.split(",").map(Number);r.has(c)||r.set(c,[]),r.get(c).push([a,l])}return`<sheetData>${[...r.entries()].sort((i,l)=>i[0]-l[0]).map(([i,l])=>{let c=this.rowDefs.get(i),a=c?.style?t.register(c.style):0,d=[`r="${i}"`,c?.height?`ht="${c.height}" customHeight="1"`:"",c?.hidden?'hidden="1"':"",c?.outlineLevel?`outlineLevel="${c.outlineLevel}"`:"",c?.collapsed?'collapsed="1"':"",a?`s="${a}" customFormat="1"`:"",c?.thickTop?'thickTop="1"':"",c?.thickBot?'thickBot="1"':""].filter(Boolean).join(" "),p=l.sort((h,u)=>h[0]-u[0]).map(([h,u])=>this._cellXml(i,h,u,t,e)).join("");return`<row ${d}>${p}</row>`}).join("")}</sheetData>`}_cellXml(t,e,r,o,n){let i=`${W(e)}${t}`,l=r.style?o.register(r.style):0,c=l?` s="${l}"`:"";if(r.arrayFormula){let m=`<f t="array" ref="${i}">${g(r.arrayFormula)}</f>`;return`<c r="${i}"${c}>${m}<v>0</v></c>`}if(r.formula){let m=`<f>${g(r.formula)}</f>`;return`<c r="${i}"${c}>${m}</c>`}if(r.richText){let m=n.internRichText(r.richText);return`<c r="${i}" t="s"${c}><v>${m}</v></c>`}let a=r.value;if(a==null)return l?`<c r="${i}"${c}/>`:"";if(typeof a=="boolean")return`<c r="${i}" t="b"${c}><v>${a?1:0}</v></c>`;if(a instanceof Date){let m=gt(a);return`<c r="${i}"${c}><v>${m}</v></c>`}if(typeof a=="number")return`<c r="${i}"${c}><v>${a}</v></c>`;let d=n.intern(a);return`<c r="${i}" t="s"${c}><v>${d}</v></c>`}_mergesXml(){if(!this.merges.length)return"";let t=this.merges.map(e=>{let r=`${W(e.startCol)}${e.startRow}`,o=`${W(e.endCol)}${e.endRow}`;return`<mergeCell ref="${r}:${o}"/>`});return`<mergeCells count="${this.merges.length}">${t.join("")}</mergeCells>`}_conditionalFormatXml(t){return this.conditionalFormats.map(e=>{let r=e.style?t.registerDxf(e.style):void 0,o="";if(e.colorScale?.type==="colorScale"){let c=e.colorScale,a=c.cfvo.map(m=>`<cfvo type="${m.type}"${m.val?` val="${m.val}"`:""}/>`).join(""),d=c.color.map(m=>`<color rgb="${m.startsWith("#")?"FF"+m.slice(1):m}"/>`).join("");o=`<colorScale>${a}${d}</colorScale>`}else if(e.dataBar?.type==="dataBar"){let c=e.dataBar,a=`<cfvo type="${c.minType??"min"}"${c.minVal!=null?` val="${c.minVal}"`:""}/>`,d=`<cfvo type="${c.maxType??"max"}"${c.maxVal!=null?` val="${c.maxVal}"`:""}/>`,m=c.color??c.minColor??"FF638EC6",p=m.startsWith("#")?"FF"+m.slice(1):m;o=`<dataBar${c.showValue===!1?' showValue="0"':""}>${a}${d}<color rgb="${p}"/></dataBar>`}else if(e.iconSet?.type==="iconSet"){let c=e.iconSet,a=c.cfvo.map(d=>`<cfvo type="${d.type}"${d.val?` val="${d.val}"`:""}/>`).join("");o=`<iconSet iconSet="${c.iconSet}"${c.showValue===!1?' showValue="0"':""}${c.reverse?' reverse="1"':""}>${a}</iconSet>`}let n=[`type="${e.type}"`,e.operator?`operator="${e.operator}"`:"",r!==void 0?`dxfId="${r}"`:"",`priority="${e.priority??1}"`,e.aboveAverage===!1?'aboveAverage="0"':"",e.percent?'percent="1"':"",e.rank?`rank="${e.rank}"`:"",e.timePeriod?`timePeriod="${e.timePeriod}"`:"",e.text?`text="${g(e.text)}"`:""].filter(Boolean).join(" "),i=e.formula?`<formula>${g(e.formula)}</formula>`:"",l=e.formula2?`<formula>${g(e.formula2)}</formula>`:"";return`<conditionalFormatting sqref="${e.sqref}"><cfRule ${n}>${i}${l}${o}</cfRule></conditionalFormatting>`}).join("")}_dataValidationsXml(){if(!this.dataValidations.size)return"";let t=[...this.dataValidations.entries()].map(([e,r])=>{let o=r.type==="list"&&r.list?`<formula1>"${r.list.join(",")}"</formula1>`:r.formula1?`<formula1>${g(r.formula1)}</formula1>`:"",n=r.formula2?`<formula2>${g(r.formula2)}</formula2>`:"";return`<dataValidation ${[`type="${r.type}"`,r.operator?`operator="${r.operator}"`:"",`sqref="${e}"`,r.showDropDown!==!1&&r.type==="list"?"":'showDropDown="1"',r.allowBlank!==!1?'allowBlank="1"':"",r.showErrorAlert?'showErrorMessage="1"':"",r.errorTitle?`errorTitle="${g(r.errorTitle)}"`:"",r.error?`error="${g(r.error)}"`:"",r.showInputMessage?'showInputMessage="1"':"",r.promptTitle?`promptTitle="${g(r.promptTitle)}"`:"",r.prompt?`prompt="${g(r.prompt)}"`:""].filter(Boolean).join(" ")}>${o}${n}</dataValidation>`});return`<dataValidations count="${this.dataValidations.size}">${t.join("")}</dataValidations>`}_protectionXml(){let t=this.protection;return t?`<sheetProtection ${[t.sheet?'sheet="1"':"",t.password?`password="${ie(t.password)}"`:"",t.selectLockedCells===!1?'selectLockedCells="0"':"",t.selectUnlockedCells===!1?'selectUnlockedCells="0"':"",t.formatCells?'formatCells="0"':"",t.formatColumns?'formatColumns="0"':"",t.formatRows?'formatRows="0"':"",t.insertColumns?'insertColumns="0"':"",t.insertRows?'insertRows="0"':"",t.insertHyperlinks?'insertHyperlinks="0"':"",t.deleteColumns?'deleteColumns="0"':"",t.deleteRows?'deleteRows="0"':"",t.sort?'sort="0"':"",t.autoFilter?'autoFilter="0"':"",t.pivotTables?'pivotTables="0"':""].filter(Boolean).join(" ")}/>`:""}_pageSetupXml(){let t=this.pageSetup;return t?`<pageSetup ${[t.paperSize?`paperSize="${t.paperSize}"`:"",t.orientation?`orientation="${t.orientation}"`:"",t.fitToWidth!==void 0?`fitToWidth="${t.fitToWidth}"`:"",t.fitToHeight!==void 0?`fitToHeight="${t.fitToHeight}"`:"",t.scale?`scale="${t.scale}"`:"",t.horizontalDpi?`horizontalDpi="${t.horizontalDpi}"`:"",t.verticalDpi?`verticalDpi="${t.verticalDpi}"`:"",t.firstPageNumber?`firstPageNumber="${t.firstPageNumber}" useFirstPageNumber="1"`:""].filter(Boolean).join(" ")}/>`:""}_pageMarginsXml(){let t=this.pageMargins,r={...{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},...t};return`<pageMargins left="${r.left}" right="${r.right}" top="${r.top}" bottom="${r.bottom}" header="${r.header}" footer="${r.footer}"/>`}_headerFooterXml(){let t=this.headerFooter;if(!t)return"";let e=[t.differentOddEven?'differentOddEven="1"':"",t.differentFirst?'differentFirst="1"':""].filter(Boolean).join(" "),r=t.oddHeader?`<oddHeader>${g(t.oddHeader)}</oddHeader>`:"",o=t.oddFooter?`<oddFooter>${g(t.oddFooter)}</oddFooter>`:"",n=t.evenHeader?`<evenHeader>${g(t.evenHeader)}</evenHeader>`:"",i=t.evenFooter?`<evenFooter>${g(t.evenFooter)}</evenFooter>`:"",l=t.firstHeader?`<firstHeader>${g(t.firstHeader)}</firstHeader>`:"",c=t.firstFooter?`<firstFooter>${g(t.firstFooter)}</firstFooter>`:"";return`<headerFooter${e?" "+e:""}>${r}${o}${n}${i}${l}${c}</headerFooter>`}_printOptionsXml(){let t=this.printOptions;if(!t)return"";let e=[t.gridLines?'gridLines="1"':"",t.gridLinesSet?'gridLinesSet="1"':"",t.headings?'headings="1"':"",t.centerHorizontal?'horizontalCentered="1"':"",t.centerVertical?'verticalCentered="1"':""].filter(Boolean).join(" ");return e?`<printOptions ${e}/>`:""}_sparklineXml(){if(!this.sparklines.length)return"";let t=(o,n)=>{if(!n)return"";let i=n.startsWith("#")?"FF"+n.slice(1):n;return`<x14:${o} rgb="${i}"/>`};return`<extLst><ext uri="{05C60535-1F16-4fd2-B633-F4F36F0B64E0}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main">${`<x14:sparklineGroups xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">${this.sparklines.map(o=>{let i=[`type="${o.type==="bar"?"column":o.type}"`,o.lineWidth!==void 0?`lineWeight="${o.lineWidth}"`:"",o.showMarkers?'markers="1"':"",o.showFirst?'first="1"':"",o.showLast?'last="1"':"",o.showHigh?'high="1"':"",o.showLow?'low="1"':"",o.showNegative?'negative="1"':"",o.minAxisType?`minAxisType="${o.minAxisType}"`:"",o.maxAxisType?`maxAxisType="${o.maxAxisType}"`:""].filter(Boolean).join(" "),l=[t("colorSeries",o.color),t("colorHigh",o.highColor),t("colorLow",o.lowColor),t("colorFirst",o.firstColor),t("colorLast",o.lastColor),t("colorNegative",o.negativeColor),t("colorMarkers",o.markersColor)].join(""),c=o.dataRange.includes("!")?o.dataRange:`${this.name}!${o.dataRange}`,a=`<x14:sparklines><x14:sparkline><xm:f>${g(c)}</xm:f><xm:sqref>${o.location}</xm:sqref></x14:sparkline></x14:sparklines>`;return`<x14:sparklineGroup ${i}>${l}${a}</x14:sparklineGroup>`}).join("")}</x14:sparklineGroups>`}</ext></extLst>`}toDrawingXml(t,e){let r=[],o=xt;return this.images.forEach((n,i)=>{let l=t[i],c=n.from,a=n.to,d=`<xdr:from><xdr:col>${c.col}</xdr:col><xdr:colOff>${c.colOff??0}</xdr:colOff><xdr:row>${c.row}</xdr:row><xdr:rowOff>${c.rowOff??0}</xdr:rowOff></xdr:from>`,m;if(a){let u=`<xdr:to><xdr:col>${a.col}</xdr:col><xdr:colOff>${a.colOff??0}</xdr:colOff><xdr:row>${a.row}</xdr:row><xdr:rowOff>${a.rowOff??0}</xdr:rowOff></xdr:to>`;m=`<xdr:twoCellAnchor editAs="oneCell">${d}${u}`}else{let u=o(n.width??100),$=o(n.height??100);m=`<xdr:oneCellAnchor>${d}<xdr:ext cx="${u}" cy="${$}"/>`}let p=`<xdr:pic>
25
25
  <xdr:nvPicPr>
26
- <xdr:cNvPr id="${n+2}" name="Image ${n+1}"${i.altText?` descr="${g(i.altText)}"`:""}/>
26
+ <xdr:cNvPr id="${i+2}" name="Image ${i+1}"${n.altText?` descr="${g(n.altText)}"`:""}/>
27
27
  <xdr:cNvPicPr><a:picLocks xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" noChangeAspect="1"/></xdr:cNvPicPr>
28
28
  </xdr:nvPicPr>
29
29
  <xdr:blipFill>
@@ -32,20 +32,20 @@ ${h}
32
32
  </xdr:blipFill>
33
33
  <xdr:spPr>
34
34
  <a:xfrm xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
35
- <a:off x="0" y="0"/><a:ext cx="${o(i.width??100)}" cy="${o(i.height??100)}"/>
35
+ <a:off x="0" y="0"/><a:ext cx="${o(n.width??100)}" cy="${o(n.height??100)}"/>
36
36
  </a:xfrm>
37
37
  <a:prstGeom xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" prst="rect"><a:avLst/></a:prstGeom>
38
38
  </xdr:spPr>
39
- </xdr:pic>`,h=a?"</xdr:twoCellAnchor>":"</xdr:oneCellAnchor>";r.push(`${m}${p}<xdr:clientData/>${h}`)}),this.charts.forEach((i,n)=>{let l=e[n],c=i.from,a=i.to,d=`<xdr:from><xdr:col>${c.col}</xdr:col><xdr:colOff>${c.colOff??0}</xdr:colOff><xdr:row>${c.row}</xdr:row><xdr:rowOff>${c.rowOff??0}</xdr:rowOff></xdr:from>`,m=`<xdr:to><xdr:col>${a.col}</xdr:col><xdr:colOff>${a.colOff??0}</xdr:colOff><xdr:row>${a.row}</xdr:row><xdr:rowOff>${a.rowOff??0}</xdr:rowOff></xdr:to>`,p=`<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
39
+ </xdr:pic>`,h=a?"</xdr:twoCellAnchor>":"</xdr:oneCellAnchor>";r.push(`${m}${p}<xdr:clientData/>${h}`)}),this.charts.forEach((n,i)=>{let l=e[i],c=n.from,a=n.to,d=`<xdr:from><xdr:col>${c.col}</xdr:col><xdr:colOff>${c.colOff??0}</xdr:colOff><xdr:row>${c.row}</xdr:row><xdr:rowOff>${c.rowOff??0}</xdr:rowOff></xdr:from>`,m=`<xdr:to><xdr:col>${a.col}</xdr:col><xdr:colOff>${a.colOff??0}</xdr:colOff><xdr:row>${a.row}</xdr:row><xdr:rowOff>${a.rowOff??0}</xdr:rowOff></xdr:to>`,p=`<a:graphic xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
40
40
  <a:graphicData uri="http://schemas.openxmlformats.org/drawingml/2006/chart">
41
41
  <c:chart xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart" r:id="${l}"/>
42
42
  </a:graphicData>
43
- </a:graphic>`;r.push(`<xdr:twoCellAnchor editAs="oneCell">${d}${m}<xdr:graphicFrame macro=""><xdr:nvGraphicFramePr><xdr:cNvPr id="${this.images.length+n+2}" name="Chart ${n+1}"/><xdr:cNvGraphicFramePr/></xdr:nvGraphicFramePr><xdr:xfrm><a:off xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" x="0" y="0"/><a:ext xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" cx="0" cy="0"/></xdr:xfrm>${p}</xdr:graphicFrame><xdr:clientData/></xdr:twoCellAnchor>`)}),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
43
+ </a:graphic>`;r.push(`<xdr:twoCellAnchor editAs="oneCell">${d}${m}<xdr:graphicFrame macro=""><xdr:nvGraphicFramePr><xdr:cNvPr id="${this.images.length+i+2}" name="Chart ${i+1}"/><xdr:cNvGraphicFramePr/></xdr:nvGraphicFramePr><xdr:xfrm><a:off xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" x="0" y="0"/><a:ext xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" cx="0" cy="0"/></xdr:xfrm>${p}</xdr:graphicFrame><xdr:clientData/></xdr:twoCellAnchor>`)}),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
44
44
  <xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"
45
45
  xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
46
46
  ${r.join(`
47
47
  `)}
48
- </xdr:wsDr>`}};function ie(s){let t=0;for(let e=s.length-1;e>=0;e--)t=t>>14&1|t<<1&32767,t^=s.charCodeAt(e);return t=t>>14&1|t<<1&32767,t^=s.length,t^=52811,t.toString(16).toUpperCase().padStart(4,"0")}function mt(s){let t=[];return s.bold&&t.push("<b/>"),s.italic&&t.push("<i/>"),s.strike&&t.push("<strike/>"),s.underline&&s.underline!=="none"&&t.push(`<u val="${s.underline}"/>`),s.vertAlign&&t.push(`<vertAlign val="${s.vertAlign}"/>`),s.size&&t.push(`<sz val="${s.size}"/>`),s.color&&t.push(`<color rgb="${s.color.startsWith("#")?"FF"+s.color.slice(1):s.color}"/>`),s.name&&t.push(`<name val="${g(s.name)}"/>`),s.family&&t.push(`<family val="${s.family}"/>`),s.scheme&&t.push(`<scheme val="${s.scheme}"/>`),s.charset&&t.push(`<charset val="${s.charset}"/>`),t.join("")}function ht(s){if(s.type==="pattern"){let o=s,i=o.fgColor?`<fgColor rgb="${o.fgColor.startsWith("#")?"FF"+o.fgColor.slice(1):o.fgColor}"/>`:"",n=o.bgColor?`<bgColor rgb="${o.bgColor.startsWith("#")?"FF"+o.bgColor.slice(1):o.bgColor}"/>`:"";return`<patternFill patternType="${o.pattern}">${i}${n}</patternFill>`}let t=s,e=t.stops.map(o=>`<stop position="${o.position}"><color rgb="${o.color.startsWith("#")?"FF"+o.color.slice(1):o.color}"/></stop>`).join("");return`<gradientFill ${[t.gradientType?`type="${t.gradientType}"`:"",t.degree!==void 0?`degree="${t.degree}"`:"",t.left!==void 0?`left="${t.left}"`:"",t.right!==void 0?`right="${t.right}"`:"",t.top!==void 0?`top="${t.top}"`:"",t.bottom!==void 0?`bottom="${t.bottom}"`:""].filter(Boolean).join(" ")}>${e}</gradientFill>`}function nt(s,t){if(!t)return`<${s}/>`;let e=t.color?`<color rgb="${t.color.startsWith("#")?"FF"+t.color.slice(1):t.color}"/>`:"";return t.style?`<${s} style="${t.style}">${e}</${s}>`:`<${s}/>`}function $t(s){let t=[s.diagonalUp?'diagonalUp="1"':"",s.diagonalDown?'diagonalDown="1"':""].filter(Boolean).join(" ");return`<border${t?" "+t:""}>`+nt("left",s.left)+nt("right",s.right)+nt("top",s.top)+nt("bottom",s.bottom)+nt("diagonal",s.diagonal)+"</border>"}function ae(s){return`<alignment ${[s.horizontal?`horizontal="${s.horizontal}"`:"",s.vertical?`vertical="${s.vertical}"`:"",s.wrapText?'wrapText="1"':"",s.shrinkToFit?'shrinkToFit="1"':"",s.textRotation!==void 0?`textRotation="${s.textRotation}"`:"",s.indent?`indent="${s.indent}"`:"",s.readingOrder!==void 0?`readingOrder="${s.readingOrder}"`:""].filter(Boolean).join(" ")}/>`}var Y=class{constructor(){this.fonts=[],this.fills=[],this.borders=[],this.numFmts=new Map,this.xfs=[],this.styleKey=new Map,this.dxfs=[],this.nextNumFmtId=164,this.fonts.push(mt({name:"Calibri",size:11,scheme:"minor"})),this.fills.push(ht({type:"pattern",pattern:"none"})),this.fills.push(ht({type:"pattern",pattern:"gray125"})),this.borders.push($t({})),this.xfs.push('<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/>')}internFont(t){if(!t)return 0;let e=JSON.stringify(t),r=this.fonts.findIndex((o,i)=>this.fonts[i]===mt(t));return r>=0?r:(this.fonts.push(mt(t)),this.fonts.length-1)}internFill(t){if(!t)return 0;let e=ht(t),r=this.fills.indexOf(e);return r>=0?r:(this.fills.push(e),this.fills.length-1)}internBorder(t){if(!t)return 0;let e=$t(t),r=this.borders.indexOf(e);return r>=0?r:(this.borders.push(e),this.borders.length-1)}internNumFmt(t,e){if(e!==void 0)return e;if(!t)return 0;if(this.numFmts.has(t.formatCode))return this.numFmts.get(t.formatCode);let r=this.nextNumFmtId++;return this.numFmts.set(t.formatCode,r),r}register(t){if(!t)return 0;let e=JSON.stringify(t);if(this.styleKey.has(e))return this.styleKey.get(e);let r=this.internFont(t.font),o=this.internFill(t.fill),i=this.internBorder(t.border),n=this.internNumFmt(t.numberFormat,t.numFmtId),l=t.font?' applyFont="1"':"",c=t.fill?' applyFill="1"':"",a=t.border?' applyBorder="1"':"",d=t.alignment?' applyAlignment="1"':"",m=t.numberFormat||t.numFmtId!==void 0?' applyNumberFormat="1"':"",p=t.locked!==void 0||t.hidden!==void 0?' applyProtection="1"':"",h=t.alignment?ae(t.alignment):"",u=t.locked!==void 0||t.hidden!==void 0?`<protection${t.locked!==void 0?` locked="${t.locked?"1":"0"}"`:""}${t.hidden!==void 0?` hidden="${t.hidden?"1":"0"}"`:""}/>`:"",$=`<xf numFmtId="${n}" fontId="${r}" fillId="${o}" borderId="${i}" xfId="0"${l}${c}${a}${d}${m}${p}>${h}${u}</xf>`;this.xfs.push($);let x=this.xfs.length-1;return this.styleKey.set(e,x),x}registerDxf(t){let e=[];if(t.font&&e.push(`<font>${mt(t.font)}</font>`),t.fill&&e.push(`<fill>${ht(t.fill)}</fill>`),t.border&&e.push($t(t.border)),t.numberFormat){let o=this.internNumFmt(t.numberFormat);e.push(`<numFmt numFmtId="${o}" formatCode="${g(t.numberFormat.formatCode)}"/>`)}t.alignment&&e.push(`<alignment${t.alignment.horizontal?` horizontal="${t.alignment.horizontal}"`:""}${t.alignment.vertical?` vertical="${t.alignment.vertical}"`:""}${t.alignment.wrapText?' wrapText="1"':""}${t.alignment.textRotation?` textRotation="${t.alignment.textRotation}"`:""}/>`);let r=e.join("");return this.dxfs.push(r),this.dxfs.length-1}toXml(){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
48
+ </xdr:wsDr>`}};function ie(s){let t=0;for(let e=s.length-1;e>=0;e--)t=t>>14&1|t<<1&32767,t^=s.charCodeAt(e);return t=t>>14&1|t<<1&32767,t^=s.length,t^=52811,t.toString(16).toUpperCase().padStart(4,"0")}function mt(s){let t=[];return s.bold&&t.push("<b/>"),s.italic&&t.push("<i/>"),s.strike&&t.push("<strike/>"),s.underline&&s.underline!=="none"&&t.push(`<u val="${s.underline}"/>`),s.vertAlign&&t.push(`<vertAlign val="${s.vertAlign}"/>`),s.size&&t.push(`<sz val="${s.size}"/>`),s.color&&t.push(`<color rgb="${s.color.startsWith("#")?"FF"+s.color.slice(1):s.color}"/>`),s.name&&t.push(`<name val="${g(s.name)}"/>`),s.family&&t.push(`<family val="${s.family}"/>`),s.scheme&&t.push(`<scheme val="${s.scheme}"/>`),s.charset&&t.push(`<charset val="${s.charset}"/>`),t.join("")}function ht(s){if(s.type==="pattern"){let o=s,n=o.fgColor?`<fgColor rgb="${o.fgColor.startsWith("#")?"FF"+o.fgColor.slice(1):o.fgColor}"/>`:"",i=o.bgColor?`<bgColor rgb="${o.bgColor.startsWith("#")?"FF"+o.bgColor.slice(1):o.bgColor}"/>`:"";return`<patternFill patternType="${o.pattern}">${n}${i}</patternFill>`}let t=s,e=t.stops.map(o=>`<stop position="${o.position}"><color rgb="${o.color.startsWith("#")?"FF"+o.color.slice(1):o.color}"/></stop>`).join("");return`<gradientFill ${[t.gradientType?`type="${t.gradientType}"`:"",t.degree!==void 0?`degree="${t.degree}"`:"",t.left!==void 0?`left="${t.left}"`:"",t.right!==void 0?`right="${t.right}"`:"",t.top!==void 0?`top="${t.top}"`:"",t.bottom!==void 0?`bottom="${t.bottom}"`:""].filter(Boolean).join(" ")}>${e}</gradientFill>`}function nt(s,t){if(!t)return`<${s}/>`;let e=t.color?`<color rgb="${t.color.startsWith("#")?"FF"+t.color.slice(1):t.color}"/>`:"";return t.style?`<${s} style="${t.style}">${e}</${s}>`:`<${s}/>`}function $t(s){let t=[s.diagonalUp?'diagonalUp="1"':"",s.diagonalDown?'diagonalDown="1"':""].filter(Boolean).join(" ");return`<border${t?" "+t:""}>`+nt("left",s.left)+nt("right",s.right)+nt("top",s.top)+nt("bottom",s.bottom)+nt("diagonal",s.diagonal)+"</border>"}function ae(s){return`<alignment ${[s.horizontal?`horizontal="${s.horizontal}"`:"",s.vertical?`vertical="${s.vertical}"`:"",s.wrapText?'wrapText="1"':"",s.shrinkToFit?'shrinkToFit="1"':"",s.textRotation!==void 0?`textRotation="${s.textRotation}"`:"",s.indent?`indent="${s.indent}"`:"",s.readingOrder!==void 0?`readingOrder="${s.readingOrder}"`:""].filter(Boolean).join(" ")}/>`}var Y=class{constructor(){this.fonts=[],this.fills=[],this.borders=[],this.numFmts=new Map,this.xfs=[],this.styleKey=new Map,this.dxfs=[],this.nextNumFmtId=164,this.fonts.push(mt({name:"Calibri",size:11,scheme:"minor"})),this.fills.push(ht({type:"pattern",pattern:"none"})),this.fills.push(ht({type:"pattern",pattern:"gray125"})),this.borders.push($t({})),this.xfs.push('<xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/>')}internFont(t){if(!t)return 0;let e=JSON.stringify(t),r=this.fonts.findIndex((o,n)=>this.fonts[n]===mt(t));return r>=0?r:(this.fonts.push(mt(t)),this.fonts.length-1)}internFill(t){if(!t)return 0;let e=ht(t),r=this.fills.indexOf(e);return r>=0?r:(this.fills.push(e),this.fills.length-1)}internBorder(t){if(!t)return 0;let e=$t(t),r=this.borders.indexOf(e);return r>=0?r:(this.borders.push(e),this.borders.length-1)}internNumFmt(t,e){if(e!==void 0)return e;if(!t)return 0;if(this.numFmts.has(t.formatCode))return this.numFmts.get(t.formatCode);let r=this.nextNumFmtId++;return this.numFmts.set(t.formatCode,r),r}register(t){if(!t)return 0;let e=JSON.stringify(t);if(this.styleKey.has(e))return this.styleKey.get(e);let r=this.internFont(t.font),o=this.internFill(t.fill),n=this.internBorder(t.border),i=this.internNumFmt(t.numberFormat,t.numFmtId),l=t.font?' applyFont="1"':"",c=t.fill?' applyFill="1"':"",a=t.border?' applyBorder="1"':"",d=t.alignment?' applyAlignment="1"':"",m=t.numberFormat||t.numFmtId!==void 0?' applyNumberFormat="1"':"",p=t.locked!==void 0||t.hidden!==void 0?' applyProtection="1"':"",h=t.alignment?ae(t.alignment):"",u=t.locked!==void 0||t.hidden!==void 0?`<protection${t.locked!==void 0?` locked="${t.locked?"1":"0"}"`:""}${t.hidden!==void 0?` hidden="${t.hidden?"1":"0"}"`:""}/>`:"",$=`<xf numFmtId="${i}" fontId="${r}" fillId="${o}" borderId="${n}" xfId="0"${l}${c}${a}${d}${m}${p}>${h}${u}</xf>`;this.xfs.push($);let x=this.xfs.length-1;return this.styleKey.set(e,x),x}registerDxf(t){let e=[];if(t.font&&e.push(`<font>${mt(t.font)}</font>`),t.fill&&e.push(`<fill>${ht(t.fill)}</fill>`),t.border&&e.push($t(t.border)),t.numberFormat){let o=this.internNumFmt(t.numberFormat);e.push(`<numFmt numFmtId="${o}" formatCode="${g(t.numberFormat.formatCode)}"/>`)}t.alignment&&e.push(`<alignment${t.alignment.horizontal?` horizontal="${t.alignment.horizontal}"`:""}${t.alignment.vertical?` vertical="${t.alignment.vertical}"`:""}${t.alignment.wrapText?' wrapText="1"':""}${t.alignment.textRotation?` textRotation="${t.alignment.textRotation}"`:""}/>`);let r=e.join("");return this.dxfs.push(r),this.dxfs.length-1}toXml(){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
49
49
  <styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
50
50
  ${this.numFmts.size?`<numFmts count="${this.numFmts.size}">${[...this.numFmts.entries()].map(([e,r])=>`<numFmt numFmtId="${r}" formatCode="${g(e)}"/>`).join("")}</numFmts>`:""}
51
51
  <fonts count="${this.fonts.length}">${this.fonts.map(e=>`<font>${e}</font>`).join("")}</fonts>
@@ -55,16 +55,16 @@ ${this.numFmts.size?`<numFmts count="${this.numFmts.size}">${[...this.numFmts.en
55
55
  <cellXfs count="${this.xfs.length}">${this.xfs.join("")}</cellXfs>
56
56
  <cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>
57
57
  ${this.dxfs.length?`<dxfs count="${this.dxfs.length}">${this.dxfs.map(e=>`<dxf>${e}</dxf>`).join("")}</dxfs>`:""}
58
- </styleSheet>`}};var tt=class{constructor(){this.table=new Map,this.strings=[],this._count=0}get count(){return this._count}get uniqueCount(){return this.strings.length}intern(t){this._count++;let e=this.table.get(t);if(e!==void 0)return e;let r=this.strings.length;return this.strings.push(t),this.table.set(t,r),r}internRichText(t){let e=JSON.stringify(t);this._count++;let r=this.table.get(e);if(r!==void 0)return r;let o=t.map(n=>`<r>${n.font?le(n.font):""}<t xml:space="preserve">${g(n.text)}</t></r>`).join(""),i=this.strings.length;return this.strings.push("\0RICH\0"+o),this.table.set(e,i),i}toXml(){let t=this.strings.map(e=>e.startsWith("\0RICH\0")?`<si>${e.slice(6)}</si>`:`<si><t${e!==e.trim()||e.includes(`
58
+ </styleSheet>`}};var tt=class{constructor(){this.table=new Map,this.strings=[],this._count=0}get count(){return this._count}get uniqueCount(){return this.strings.length}intern(t){this._count++;let e=this.table.get(t);if(e!==void 0)return e;let r=this.strings.length;return this.strings.push(t),this.table.set(t,r),r}internRichText(t){let e=JSON.stringify(t);this._count++;let r=this.table.get(e);if(r!==void 0)return r;let o=t.map(i=>`<r>${i.font?le(i.font):""}<t xml:space="preserve">${g(i.text)}</t></r>`).join(""),n=this.strings.length;return this.strings.push("\0RICH\0"+o),this.table.set(e,n),n}toXml(){let t=this.strings.map(e=>e.startsWith("\0RICH\0")?`<si>${e.slice(6)}</si>`:`<si><t${e!==e.trim()||e.includes(`
59
59
  `)?' xml:space="preserve"':""}>${g(e)}</t></si>`).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
60
60
  <sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="${this._count}" uniqueCount="${this.strings.length}">
61
61
  ${t}
62
- </sst>`}};function le(s){let t=[];return s.bold&&t.push("<b/>"),s.italic&&t.push("<i/>"),s.strike&&t.push("<strike/>"),s.underline&&s.underline!=="none"&&t.push(`<u val="${s.underline}"/>`),s.size&&t.push(`<sz val="${s.size}"/>`),s.color&&t.push(`<color rgb="${s.color.startsWith("#")?"FF"+s.color.slice(1):s.color}"/>`),s.name&&t.push(`<name val="${g(s.name)}"/>`),t.length?`<rPr>${t.join("")}</rPr>`:""}var jt=["FF4472C4","FFED7D31","FFA5A5A5","FFFFC000","FF5B9BD5","FF70AD47","FF264478","FF9E480E","FF636363","FF997300"];function ce(s){return`<c:spPr><a:solidFill xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:srgbClr val="${s.replace("FF","")}"/></a:solidFill></c:spPr>`}function K(s,t,e){return t.map((r,o)=>{let i=r.color?r.color.startsWith("#")?"FF"+r.color.slice(1):r.color:jt[o%jt.length],n=r.categories?`<c:cat><c:strRef><c:f>${g(r.categories)}</c:f></c:strRef></c:cat>`:"",l=`<c:val><c:numRef><c:f>${g(r.values)}</c:f></c:numRef></c:val>`,c=r.name?`<c:tx><c:strRef><c:f>"${g(r.name)}"</c:f></c:strRef></c:tx>`:"",a=s.startsWith("line")||s==="scatter"?'<c:marker><c:symbol val="none"/></c:marker>':"";return`<c:ser><c:idx val="${o}"/><c:order val="${o}"/>${c}${ce(i)}${a}${n}${l}</c:ser>`}).join("")}function me(s,t,e,r=!1){if(r)return`<c:valAx><c:axId val="${s}"/><c:scaling><c:orientation val="minMax"/></c:scaling><c:delete val="1"/><c:axPos val="b"/><c:crossAx val="${t}"/></c:valAx>`;let o=e?.title?`<c:title><c:tx><c:rich><a:bodyPr xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/><a:p xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:r><a:t>${g(e.title)}</a:t></a:r></a:p></c:rich></c:tx><c:overlay val="0"/></c:title>`:"",i=[e?.min!==void 0?`<c:min val="${e.min}"/>`:"",e?.max!==void 0?`<c:max val="${e.max}"/>`:""].join(""),n=e?.numFmt?`<c:numFmt formatCode="${g(e.numFmt)}" sourceLinked="0"/>`:"",l=e?.gridLines!==!1?"<c:majorGridlines/>":"";return`<c:valAx>
62
+ </sst>`}};function le(s){let t=[];return s.bold&&t.push("<b/>"),s.italic&&t.push("<i/>"),s.strike&&t.push("<strike/>"),s.underline&&s.underline!=="none"&&t.push(`<u val="${s.underline}"/>`),s.size&&t.push(`<sz val="${s.size}"/>`),s.color&&t.push(`<color rgb="${s.color.startsWith("#")?"FF"+s.color.slice(1):s.color}"/>`),s.name&&t.push(`<name val="${g(s.name)}"/>`),t.length?`<rPr>${t.join("")}</rPr>`:""}var jt=["FF4472C4","FFED7D31","FFA5A5A5","FFFFC000","FF5B9BD5","FF70AD47","FF264478","FF9E480E","FF636363","FF997300"];function ce(s){return`<c:spPr><a:solidFill xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:srgbClr val="${s.replace("FF","")}"/></a:solidFill></c:spPr>`}function K(s,t,e){return t.map((r,o)=>{let n=r.color?r.color.startsWith("#")?"FF"+r.color.slice(1):r.color:jt[o%jt.length],i=r.categories?`<c:cat><c:strRef><c:f>${g(r.categories)}</c:f></c:strRef></c:cat>`:"",l=`<c:val><c:numRef><c:f>${g(r.values)}</c:f></c:numRef></c:val>`,c=r.name?`<c:tx><c:strRef><c:f>"${g(r.name)}"</c:f></c:strRef></c:tx>`:"",a=s.startsWith("line")||s==="scatter"?'<c:marker><c:symbol val="none"/></c:marker>':"";return`<c:ser><c:idx val="${o}"/><c:order val="${o}"/>${c}${ce(n)}${a}${i}${l}</c:ser>`}).join("")}function me(s,t,e,r=!1){if(r)return`<c:valAx><c:axId val="${s}"/><c:scaling><c:orientation val="minMax"/></c:scaling><c:delete val="1"/><c:axPos val="b"/><c:crossAx val="${t}"/></c:valAx>`;let o=e?.title?`<c:title><c:tx><c:rich><a:bodyPr xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/><a:p xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:r><a:t>${g(e.title)}</a:t></a:r></a:p></c:rich></c:tx><c:overlay val="0"/></c:title>`:"",n=[e?.min!==void 0?`<c:min val="${e.min}"/>`:"",e?.max!==void 0?`<c:max val="${e.max}"/>`:""].join(""),i=e?.numFmt?`<c:numFmt formatCode="${g(e.numFmt)}" sourceLinked="0"/>`:"",l=e?.gridLines!==!1?"<c:majorGridlines/>":"";return`<c:valAx>
63
63
  <c:axId val="${s}"/>
64
- <c:scaling><c:orientation val="minMax"/>${i}</c:scaling>
64
+ <c:scaling><c:orientation val="minMax"/>${n}</c:scaling>
65
65
  <c:delete val="0"/>
66
66
  <c:axPos val="l"/>
67
- ${l}${o}${n}
67
+ ${l}${o}${i}
68
68
  <c:crossAx val="${t}"/>
69
69
  </c:valAx>`}function he(s,t,e){let r=e?.title?`<c:title><c:tx><c:rich><a:bodyPr xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"/><a:p xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"><a:r><a:t>${g(e.title)}</a:t></a:r></a:p></c:rich></c:tx><c:overlay val="0"/></c:title>`:"",o=e?.gridLines?"<c:majorGridlines/>":"";return`<c:catAx>
70
70
  <c:axId val="${s}"/>
@@ -78,39 +78,39 @@ ${t}
78
78
  <a:p xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main">
79
79
  <a:r><a:t>${g(s.title)}</a:t></a:r>
80
80
  </a:p>
81
- </c:rich></c:tx><c:overlay val="0"/></c:title>`:"",o=s.varyColors?'<c:varyColors val="1"/>':"",i="",n=t==="pie"||t==="doughnut",l=t.startsWith("bar")||t.startsWith("column"),c=t.startsWith("line"),a=t.startsWith("scatter")||t==="bubble",d=t.startsWith("area"),m=t.startsWith("radar"),p=t==="stock",h=s.grouping??(t.endsWith("Stacked100")?"percentStacked":t.endsWith("Stacked")?"stacked":l?"clustered":c||d?"standard":void 0);if(n){let y=t==="doughnut"?"doughnutChart":"pieChart",b=t==="doughnut"?'<c:holeSize val="50"/>':"";i=`<c:${y}>${o}${K(t,e,0)}${b}</c:${y}>`}else l?i=`<c:barChart>
81
+ </c:rich></c:tx><c:overlay val="0"/></c:title>`:"",o=s.varyColors?'<c:varyColors val="1"/>':"",n="",i=t==="pie"||t==="doughnut",l=t.startsWith("bar")||t.startsWith("column"),c=t.startsWith("line"),a=t.startsWith("scatter")||t==="bubble",d=t.startsWith("area"),m=t.startsWith("radar"),p=t==="stock",h=s.grouping??(t.endsWith("Stacked100")?"percentStacked":t.endsWith("Stacked")?"stacked":l?"clustered":c||d?"standard":void 0);if(i){let y=t==="doughnut"?"doughnutChart":"pieChart",b=t==="doughnut"?'<c:holeSize val="50"/>':"";n=`<c:${y}>${o}${K(t,e,0)}${b}</c:${y}>`}else l?n=`<c:barChart>
82
82
  <c:barDir val="${t.startsWith("bar")?"bar":"col"}"/>
83
83
  ${h?`<c:grouping val="${h}"/>`:""}
84
84
  ${o}
85
85
  ${K(t,e,0)}
86
86
  <c:axId val="1"/><c:axId val="2"/>
87
- </c:barChart>`:c?i=`<c:lineChart>
87
+ </c:barChart>`:c?n=`<c:lineChart>
88
88
  ${h?`<c:grouping val="${h}"/>`:""}
89
89
  ${o}
90
90
  ${K(t,e,0)}
91
91
  <c:axId val="1"/><c:axId val="2"/>
92
- </c:lineChart>`:a?i=`<c:scatterChart>
92
+ </c:lineChart>`:a?n=`<c:scatterChart>
93
93
  <c:scatterStyle val="${t==="scatterSmooth"?"smoothMarker":"marker"}"/>
94
94
  ${o}
95
95
  ${K(t,e,0)}
96
96
  <c:axId val="1"/><c:axId val="2"/>
97
- </c:scatterChart>`:d?i=`<c:areaChart>
97
+ </c:scatterChart>`:d?n=`<c:areaChart>
98
98
  ${h?`<c:grouping val="${h}"/>`:""}
99
99
  ${o}
100
100
  ${K(t,e,0)}
101
101
  <c:axId val="1"/><c:axId val="2"/>
102
- </c:areaChart>`:m?i=`<c:radarChart>
102
+ </c:areaChart>`:m?n=`<c:radarChart>
103
103
  <c:radarStyle val="${t==="radarFilled"?"filled":"marker"}"/>
104
104
  ${o}
105
105
  ${K(t,e,0)}
106
106
  <c:axId val="1"/><c:axId val="2"/>
107
- </c:radarChart>`:i=`<c:barChart>
107
+ </c:radarChart>`:n=`<c:barChart>
108
108
  <c:barDir val="col"/>
109
109
  <c:grouping val="clustered"/>
110
110
  ${o}
111
111
  ${K(t,e,0)}
112
112
  <c:axId val="1"/><c:axId val="2"/>
113
- </c:barChart>`;let $=!n?he(1,2,s.xAxis)+me(2,1,s.yAxis):"",x=de(s.legend??"b");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
113
+ </c:barChart>`;let $=!i?he(1,2,s.xAxis)+me(2,1,s.yAxis):"",x=de(s.legend??"b");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
114
114
  <c:chartSpace xmlns:c="http://schemas.openxmlformats.org/drawingml/2006/chart"
115
115
  xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
116
116
  xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">
@@ -119,20 +119,20 @@ ${s.style?`<c:style val="${s.style}"/>`:""}
119
119
  ${r}
120
120
  <c:autoTitleDeleted val="${s.title?"0":"1"}"/>
121
121
  <c:plotArea>
122
- ${i}
122
+ ${n}
123
123
  ${$}
124
124
  </c:plotArea>
125
125
  ${x}
126
126
  <c:plotVisOnly val="1"/>
127
127
  </c:chart>
128
- </c:chartSpace>`}function wt(s,t){let{startRow:e,startCol:r,endRow:o,endCol:i}=ot(s.ref),n=s.displayName??s.name,l=s.columns.map((h,u)=>{let $=r+u,x=u+1,y=h.totalsRowFunction??"none",b=s.totalsRow&&y!=="none"?` totalsRowFunction="${y}"${h.totalsRowFormula?` totalsRowFormula="${g(h.totalsRowFormula)}"`:""}`:"",F=s.totalsRow&&h.totalsRowLabel?` totalsRowLabel="${g(h.totalsRowLabel)}"`:"";return`<tableColumn id="${x}" name="${g(h.name)}"${b}${F}/>`}).join(""),c=[`name="${g(s.style??"TableStyleMedium2")}"`,s.showFirstColumn?'showFirstColumn="1"':"",s.showLastColumn?'showLastColumn="1"':"",s.showRowStripes!==!1?'showRowStripes="1"':"",s.showColumnStripes?'showColumnStripes="1"':""].filter(Boolean).join(" "),a=s.totalsRow?1:0,d=W(r),m=W(i),p=`${d}${e}:${m}${o-a}`;return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
128
+ </c:chartSpace>`}function wt(s,t){let{startRow:e,startCol:r,endRow:o,endCol:n}=ot(s.ref),i=s.displayName??s.name,l=s.columns.map((h,u)=>{let $=r+u,x=u+1,y=h.totalsRowFunction??"none",b=s.totalsRow&&y!=="none"?` totalsRowFunction="${y}"${h.totalsRowFormula?` totalsRowFormula="${g(h.totalsRowFormula)}"`:""}`:"",F=s.totalsRow&&h.totalsRowLabel?` totalsRowLabel="${g(h.totalsRowLabel)}"`:"";return`<tableColumn id="${x}" name="${g(h.name)}"${b}${F}/>`}).join(""),c=[`name="${g(s.style??"TableStyleMedium2")}"`,s.showFirstColumn?'showFirstColumn="1"':"",s.showLastColumn?'showLastColumn="1"':"",s.showRowStripes!==!1?'showRowStripes="1"':"",s.showColumnStripes?'showColumnStripes="1"':""].filter(Boolean).join(" "),a=s.totalsRow?1:0,d=W(r),m=W(n),p=`${d}${e}:${m}${o-a}`;return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
129
129
  <table xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"
130
- id="${t}" name="${g(s.name)}" displayName="${g(n)}"
130
+ id="${t}" name="${g(s.name)}" displayName="${g(i)}"
131
131
  ref="${s.ref}" totalsRowCount="${a}">
132
132
  <autoFilter ref="${p}"/>
133
133
  <tableColumns count="${s.columns.length}">${l}</tableColumns>
134
134
  <tableStyleInfo ${c}/>
135
- </table>`}var it=null;function pe(){if(it)return it;it=new Uint32Array(256);for(let s=0;s<256;s++){let t=s;for(let e=0;e<8;e++)t=t&1?3988292384^t>>>1:t>>>1;it[s]=t}return it}function fe(s){let t=pe(),e=4294967295;for(let r=0;r<s.length;r++)e=e>>>8^t[(e^s[r])&255];return(e^4294967295)>>>0}var dt=class{constructor(){this.buf=[],this.bits=0,this.bitLen=0}writeBits(t,e){for(this.bits|=(t&(1<<e)-1)<<this.bitLen,this.bitLen+=e;this.bitLen>=8;)this.buf.push(this.bits&255),this.bits>>>=8,this.bitLen-=8}flush(){this.bitLen>0&&(this.buf.push(this.bits&255),this.bits=0,this.bitLen=0)}toBytes(){return new Uint8Array(this.buf)}};function yt(s,t){let e=s.length,r=new Uint8Array(e),o=[];for(let a=0;a<e;a++)s[a]>0&&o.push(a);if(o.length===0)return r;if(o.length===1)return r[o[0]]=1,r;let i=o.map(a=>({freq:s[a],sym:a}));(()=>{for(i.sort((a,d)=>a.freq-d.freq);i.length>1;){let a=i.shift(),d=i.shift(),m={freq:a.freq+d.freq,sym:-1,left:a,right:d},p=0;for(;p<i.length&&i[p].freq<=m.freq;)p++;i.splice(p,0,m)}})();let l=(a,d)=>{if(a){if(a.sym>=0){r[a.sym]=Math.min(d,t);return}l(a.left,d+1),l(a.right,d+1)}};l(i[0],0);let c=0;for(let a=0;a<e;a++)r[a]>t&&(c+=(1<<r[a]-t)-1,r[a]=t);if(c>0)for(let a=t-1;a>=1&&c>0;a--)for(let d=0;d<e&&c>0;d++)r[d]===a&&(r[d]++,c--);return r}function at(s){let t=Math.max(...s),e=new Uint32Array(t+1);for(let n of s)n>0&&e[n]++;let r=new Uint32Array(t+1),o=0;for(let n=1;n<=t;n++)o=o+e[n-1]<<1,r[n]=o;let i=new Uint32Array(s.length);for(let n=0;n<s.length;n++)s[n]>0&&(i[n]=r[s[n]]++);return i}function G(s,t){let e=0;for(let r=0;r<t;r++)e=e<<1|s&1,s>>=1;return e}function ue(){let s=new Uint8Array(288);for(let t=0;t<=143;t++)s[t]=8;for(let t=144;t<=255;t++)s[t]=9;for(let t=256;t<=279;t++)s[t]=7;for(let t=280;t<=287;t++)s[t]=8;return s}function ge(){let s=new Uint8Array(32);return s.fill(5),s}var Et=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],bt=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Wt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ft=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function Ut(s){for(let t=0;t<29;t++)if(s<=bt[t]+(1<<Et[t])-1&&s>=bt[t])return[257+t,Et[t],s-bt[t]];return[285,0,0]}function zt(s){for(let t=0;t<30;t++){let e=Ft[t]+(1<<Wt[t])-1;if(s>=Ft[t]&&s<=e)return[t,Wt[t],s-Ft[t]]}return[29,13,0]}var V=32768,vt=258,Ht=3,xe=8,$e=32,we=128;function ye(s,t){let e=t<=1?xe:t<=6?$e:we,r=[],o=s.length,i=65536,n=new Int32Array(i).fill(-1),l=new Int32Array(Math.min(o,V)).fill(-1),c=h=>((s[h]*4129^s[h+1]*155^s[h+2])&i-1)>>>0,a=0,d=-1,m=h=>{r.push({lit:h})},p=(h,u)=>{d>=0&&(m(d),d=-1),r.push({len:h,dist:u})};for(;a<o;){if(a+2>=o){m(s[a++]);continue}let h=c(a),u=Ht-1,$=0,x=n[h],y=0;for(;x>=0&&y<e;){let b=a-x;if(b>V)break;let F=0,I=Math.min(vt,o-a);for(;F<I&&s[x+F]===s[a+F];)F++;if(F>u&&(u=F,$=b),u===vt)break;x=l[x&V-1],y++}if(l[a&V-1]=n[h],n[h]=a,u>=Ht){if(t>=6&&a+3<o){let b=c(a+1),F=n[b],I=0,X=0,T=0;for(;F>=0&&T<e;){let v=a+1-F;if(v>V)break;let f=0,w=Math.min(vt,o-a-1);for(;f<w&&s[F+f]===s[a+1+f];)f++;f>I&&(I=f,X=v),F=l[F&V-1],T++}if(I>u+1){m(s[a]),a++,l[a&V-1]=n[b],n[b]=a,p(I,X);for(let v=1;v<I;v++)if(a++,a+2<o){let f=c(a);l[a&V-1]=n[f],n[f]=a}a++;continue}}p(u,$);for(let b=0;b<u;b++)if(a+b+2<o){let F=c(a+b);l[a+b&V-1]=n[F],n[F]=a+b}a+=u}else m(s[a++])}return r}function be(s,t,e,r){let o=0;for(;o<s.length;){let i=s[o];if(i===0){let n=0;for(;o+n<s.length&&s[o+n]===0&&n<138;)n++;n<3?(t.writeBits(G(e[0],r[0]),r[0]),o++):n<=10?(t.writeBits(G(e[17],r[17]),r[17]),t.writeBits(n-3,3),o+=n):(t.writeBits(G(e[18],r[18]),r[18]),t.writeBits(n-11,7),o+=n)}else{t.writeBits(G(e[i],r[i]),r[i]),o++;let n=0;for(;o+n<s.length&&s[o+n]===i&&n<6;)n++;n>=3&&(t.writeBits(G(e[16],r[16]),r[16]),t.writeBits(n-3,2),o+=n)}}}function Vt(s,t,e,r){let o=new Uint32Array(286),i=new Uint32Array(30);o[256]=1;for(let m of s)if("lit"in m)o[m.lit]++;else{let[p]=Ut(m.len);o[p]++;let[h]=zt(m.dist);i[h]++}let n,l,c,a;if(r){n=yt(o,15),l=yt(i,15),l.every(F=>F===0)&&(l[0]=1),c=at(n),a=at(l);let m=Gt(n,257,286)+1,p=Gt(l,1,30)+1,h=[...n.subarray(0,m),...l.subarray(0,p)],u=new Uint32Array(19);ve(h,u);let $=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],x=yt(u,7),y=at(x),b=Fe($.map(F=>x[F]),4,19)+1;t.writeBits(e?1:0,1),t.writeBits(2,2),t.writeBits(m-257,5),t.writeBits(p-1,5),t.writeBits(b-4,4);for(let F=0;F<b;F++)t.writeBits(x[$[F]],3);be(h,t,y,x)}else n=ue(),l=ge(),c=at(n),a=at(l),t.writeBits(e?1:0,1),t.writeBits(1,2);for(let m of s)if("lit"in m){let p=n[m.lit];t.writeBits(G(c[m.lit],p),p)}else{let[p,h,u]=Ut(m.len),$=n[p];t.writeBits(G(c[p],$),$),h>0&&t.writeBits(u,h);let[x,y,b]=zt(m.dist),F=l[x];t.writeBits(G(a[x],F),F),y>0&&t.writeBits(b,y)}let d=n[256];t.writeBits(G(c[256],d),d)}function Gt(s,t,e){let r=t-1;for(let o=t;o<Math.min(s.length,e);o++)s[o]>0&&(r=o);return Math.max(r,t-1)}function Fe(s,t,e){let r=t-1;for(let o=t;o<Math.min(s.length,e);o++)s[o]>0&&(r=o);return Math.max(r,t-1)}function ve(s,t){let e=0;for(;e<s.length;){let r=s[e];if(r===0){let o=0;for(;e+o<s.length&&s[e+o]===0&&o<138;)o++;o<3?(t[0]++,e++):o<=10?(t[17]++,e+=o):(t[18]++,e+=o)}else{t[r]++,e++;let o=0;for(;e+o<s.length&&s[e+o]===r&&o<6;)o++;o>=3&&(t[16]++,e+=o)}}}var Ct=65536;function Ce(s,t=6){if(t===0){let n=new dt,l=0;for(;l<s.length||s.length===0;){let c=Math.min(Ct,s.length-l),a=l+c>=s.length;n.flush(),n.writeBits(a?1:0,1),n.writeBits(0,2),n.flush();let d=c;n.buf.push(d&255,d>>8&255,~d&255,~d>>8&255);for(let m=0;m<c;m++)n.buf.push(s[l+m]);if(l+=c,s.length===0)break}return n.toBytes()}let e=Math.max(1,Math.min(9,t)),r=e>=2,o=new dt,i=0;for(;i<s.length||s.length===0;){let n=s.subarray(i,i+Ct),l=i+Ct>=s.length,c=ye(n,e);if(Vt(c,o,l,r),i+=n.length,s.length===0){Vt([],o,!0,r);break}}return o.flush(),o.toBytes()}function P(s,t,e){s[t]=e&255,s[t+1]=e>>8&255}function E(s,t,e){s[t]=e&255,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255}var ke=new TextEncoder,Te=new Set(["png","jpg","jpeg","gif","tiff","emf","wmf","bmp","webp"]);function kt(s,t={}){let e=t.level??6,r=t.noCompress?new Set(t.noCompress.map(u=>u.toLowerCase())):Te,o=[],i=[],n=0;for(let u of s){let $=ke.encode(u.name),x=u.name.split(".").pop()?.toLowerCase()??"",y=u.level??(r.has(x)?0:e),b=y>0&&u.data.length>0,F=fe(u.data),I,X;b?(I=Ce(u.data,y),I.length>=u.data.length?(I=u.data,X=0):X=8):(I=u.data,X=0);let T=new Uint8Array(30+$.length);E(T,0,67324752),P(T,4,20),P(T,6,0),P(T,8,X),P(T,10,0),P(T,12,0),E(T,14,F),E(T,18,I.length),E(T,22,u.data.length),P(T,26,$.length),P(T,28,0),T.set($,30);let v=new Uint8Array(46+$.length);E(v,0,33639248),P(v,4,20),P(v,6,20),P(v,8,0),P(v,10,X),P(v,12,0),P(v,14,0),E(v,16,F),E(v,20,I.length),E(v,24,u.data.length),P(v,28,$.length),P(v,30,0),P(v,32,0),P(v,34,0),P(v,36,0),E(v,38,0),E(v,42,n),v.set($,46),o.push(T,I),i.push(v),n+=T.length+I.length}let l=n,c=i.reduce((u,$)=>u+$.length,0),a=new Uint8Array(22);E(a,0,101010256),P(a,4,0),P(a,6,0),P(a,8,i.length),P(a,10,i.length),E(a,12,c),E(a,16,l),P(a,20,0);let d=[...o,...i,a],m=d.reduce((u,$)=>u+$.length,0),p=new Uint8Array(m),h=0;for(let u of d)p.set(u,h),h+=u.length;return p}function Q(s,t){return s[t]|s[t+1]<<8}function et(s,t){return(s[t]|s[t+1]<<8|s[t+2]<<16|s[t+3]<<24)>>>0}async function Ie(s){let t=new DecompressionStream("deflate-raw"),e=t.writable.getWriter(),r=t.readable.getReader();e.write(s),e.close();let o=[],i=!1;for(;!i;){let{value:a,done:d}=await r.read();a&&o.push(a),i=d}let n=o.reduce((a,d)=>a+d.length,0),l=new Uint8Array(n),c=0;for(let a of o)l.set(a,c),c+=a.length;return l}async function qt(s){let t=new TextDecoder("utf-8"),e=new Map,r=-1;for(let l=s.length-22;l>=0;l--)if(s[l]===80&&s[l+1]===75&&s[l+2]===5&&s[l+3]===6){r=l;break}if(r<0)throw new Error("Not a valid ZIP file (EOCD not found)");let o=et(s,r+16),i=Q(s,r+8),n=o;for(let l=0;l<i;l++){if(et(s,n)!==33639248)throw new Error("Invalid central directory entry");let c=Q(s,n+10),a=et(s,n+20),d=et(s,n+24),m=Q(s,n+28),p=Q(s,n+30),h=Q(s,n+32),u=et(s,n+42),$=s.subarray(n+46,n+46+m),x=t.decode($);n+=46+m+p+h;let y=u;if(et(s,y)!==67324752)throw new Error("Invalid local file header");let b=Q(s,y+26),F=Q(s,y+28),I=y+30+b+F,X=s.subarray(I,I+a),T;c===0?T=X.slice():c===8?T=await Ie(X):T=X.slice(),x.endsWith("/")||e.set(x,{name:x,data:T})}return e}function Tt(s){return new TextDecoder("utf-8").decode(s.data)}function It(s){let t=Object.entries(s.attrs).map(([o,i])=>`${o}="${Re(i)}"`).join(" "),e=t?`<${s.tag} ${t}`:`<${s.tag}`,r=(s.text??"")+s.children.map(It).join("");return r?`${e}>${r}</${s.tag}>`:`${e}/>`}function Re(s){return s.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function U(s){let t=[],e=[],r=0;for(s.startsWith("<?")&&(r=s.indexOf("?>")+2);r<s.length;){if(s[r]!=="<"){let m=s.indexOf("<",r),p=m<0?s.slice(r):s.slice(r,m);if(e.length&&p.trim()){let h=e[e.length-1];h.text=(h.text??"")+Zt(p)}r=m<0?s.length:m;continue}if(s.startsWith("<!--",r)){let m=s.indexOf("-->",r);if(e.length){let p=e[e.length-1];p.text=(p.text??"")+s.slice(r,m+3)}r=m+3;continue}if(s.startsWith("<![CDATA[",r)){let m=s.indexOf("]]>",r),p=s.slice(r+9,m);if(e.length){let h=e[e.length-1];h.text=(h.text??"")+p}r=m+3;continue}if(s[r+1]==="/"){let m=s.indexOf(">",r),p=e.pop();e.length?e[e.length-1].children.push(p):t.push(p),r=m+1;continue}if(s[r+1]==="?"){r=s.indexOf("?>",r)+2;continue}let o=Se(s,r),i=s.slice(r+1,o),n=i.endsWith("/"),l=n?i.slice(0,-1).trim():i.trim(),{tag:c,attrs:a}=Pe(l),d={tag:c,attrs:a,children:[]};n?e.length?e[e.length-1].children.push(d):t.push(d):e.push(d),r=o+1}for(;e.length>1;){let o=e.pop();e[e.length-1].children.push(o)}if(e.length===1&&t.push(e[0]),t.length===0)throw new Error("Empty XML document");return t[0]}function Se(s,t){let e=null;for(let r=t+1;r<s.length;r++){let o=s[r];if(e)o===e&&(e=null);else if(o==='"'||o==="'")e=o;else if(o===">")return r}return s.length-1}function Pe(s){let t={},e=s.search(/\s/),r=e<0?s:s.slice(0,e);if(e<0)return{tag:r,attrs:t};let o=s.slice(e),i=/(\S+?)\s*=\s*(?:"([^"]*)"|'([^']*)')/g,n;for(;(n=i.exec(o))!==null;)t[n[1]]=Zt(n[2]??n[3]??"");return{tag:r,attrs:t}}function Zt(s){return s.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&#(\d+);/g,(t,e)=>String.fromCharCode(parseInt(e,10))).replace(/&#x([0-9a-fA-F]+);/g,(t,e)=>String.fromCharCode(parseInt(e,16)))}function S(s,t){return s.children.find(e=>O(e.tag)===t)}function _(s,t){return s.children.filter(e=>O(e.tag)===t)}function O(s){let t=s.indexOf(":");return t<0?s:s.slice(t+1)}function De(s){return s.toISOString()}function Rt(s){let t=(r,o)=>o!==void 0?`<${r}>${g(o)}</${r}>`:"",e=(r,o)=>o?`<${r} xsi:type="dcterms:W3CDTF">${De(o)}</${r}>`:"";return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
135
+ </table>`}var it=null;function pe(){if(it)return it;it=new Uint32Array(256);for(let s=0;s<256;s++){let t=s;for(let e=0;e<8;e++)t=t&1?3988292384^t>>>1:t>>>1;it[s]=t}return it}function fe(s){let t=pe(),e=4294967295;for(let r=0;r<s.length;r++)e=e>>>8^t[(e^s[r])&255];return(e^4294967295)>>>0}var dt=class{constructor(){this.buf=[],this.bits=0,this.bitLen=0}writeBits(t,e){for(this.bits|=(t&(1<<e)-1)<<this.bitLen,this.bitLen+=e;this.bitLen>=8;)this.buf.push(this.bits&255),this.bits>>>=8,this.bitLen-=8}flush(){this.bitLen>0&&(this.buf.push(this.bits&255),this.bits=0,this.bitLen=0)}toBytes(){return new Uint8Array(this.buf)}};function yt(s,t){let e=s.length,r=new Uint8Array(e),o=[];for(let a=0;a<e;a++)s[a]>0&&o.push(a);if(o.length===0)return r;if(o.length===1)return r[o[0]]=1,r;let n=o.map(a=>({freq:s[a],sym:a}));(()=>{for(n.sort((a,d)=>a.freq-d.freq);n.length>1;){let a=n.shift(),d=n.shift(),m={freq:a.freq+d.freq,sym:-1,left:a,right:d},p=0;for(;p<n.length&&n[p].freq<=m.freq;)p++;n.splice(p,0,m)}})();let l=(a,d)=>{if(a){if(a.sym>=0){r[a.sym]=Math.min(d,t);return}l(a.left,d+1),l(a.right,d+1)}};l(n[0],0);let c=0;for(let a=0;a<e;a++)r[a]>t&&(c+=(1<<r[a]-t)-1,r[a]=t);if(c>0)for(let a=t-1;a>=1&&c>0;a--)for(let d=0;d<e&&c>0;d++)r[d]===a&&(r[d]++,c--);return r}function at(s){let t=Math.max(...s),e=new Uint32Array(t+1);for(let i of s)i>0&&e[i]++;let r=new Uint32Array(t+1),o=0;for(let i=1;i<=t;i++)o=o+e[i-1]<<1,r[i]=o;let n=new Uint32Array(s.length);for(let i=0;i<s.length;i++)s[i]>0&&(n[i]=r[s[i]]++);return n}function G(s,t){let e=0;for(let r=0;r<t;r++)e=e<<1|s&1,s>>=1;return e}function ue(){let s=new Uint8Array(288);for(let t=0;t<=143;t++)s[t]=8;for(let t=144;t<=255;t++)s[t]=9;for(let t=256;t<=279;t++)s[t]=7;for(let t=280;t<=287;t++)s[t]=8;return s}function ge(){let s=new Uint8Array(32);return s.fill(5),s}var Et=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0],bt=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],Wt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Ft=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function Ut(s){for(let t=0;t<29;t++)if(s<=bt[t]+(1<<Et[t])-1&&s>=bt[t])return[257+t,Et[t],s-bt[t]];return[285,0,0]}function zt(s){for(let t=0;t<30;t++){let e=Ft[t]+(1<<Wt[t])-1;if(s>=Ft[t]&&s<=e)return[t,Wt[t],s-Ft[t]]}return[29,13,0]}var V=32768,vt=258,Ht=3,xe=8,$e=32,we=128;function ye(s,t){let e=t<=1?xe:t<=6?$e:we,r=[],o=s.length,n=65536,i=new Int32Array(n).fill(-1),l=new Int32Array(Math.min(o,V)).fill(-1),c=h=>((s[h]*4129^s[h+1]*155^s[h+2])&n-1)>>>0,a=0,d=-1,m=h=>{r.push({lit:h})},p=(h,u)=>{d>=0&&(m(d),d=-1),r.push({len:h,dist:u})};for(;a<o;){if(a+2>=o){m(s[a++]);continue}let h=c(a),u=Ht-1,$=0,x=i[h],y=0;for(;x>=0&&y<e;){let b=a-x;if(b>V)break;let F=0,I=Math.min(vt,o-a);for(;F<I&&s[x+F]===s[a+F];)F++;if(F>u&&(u=F,$=b),u===vt)break;x=l[x&V-1],y++}if(l[a&V-1]=i[h],i[h]=a,u>=Ht){if(t>=6&&a+3<o){let b=c(a+1),F=i[b],I=0,X=0,T=0;for(;F>=0&&T<e;){let v=a+1-F;if(v>V)break;let f=0,w=Math.min(vt,o-a-1);for(;f<w&&s[F+f]===s[a+1+f];)f++;f>I&&(I=f,X=v),F=l[F&V-1],T++}if(I>u+1){m(s[a]),a++,l[a&V-1]=i[b],i[b]=a,p(I,X);for(let v=1;v<I;v++)if(a++,a+2<o){let f=c(a);l[a&V-1]=i[f],i[f]=a}a++;continue}}p(u,$);for(let b=0;b<u;b++)if(a+b+2<o){let F=c(a+b);l[a+b&V-1]=i[F],i[F]=a+b}a+=u}else m(s[a++])}return r}function be(s,t,e,r){let o=0;for(;o<s.length;){let n=s[o];if(n===0){let i=0;for(;o+i<s.length&&s[o+i]===0&&i<138;)i++;i<3?(t.writeBits(G(e[0],r[0]),r[0]),o++):i<=10?(t.writeBits(G(e[17],r[17]),r[17]),t.writeBits(i-3,3),o+=i):(t.writeBits(G(e[18],r[18]),r[18]),t.writeBits(i-11,7),o+=i)}else{t.writeBits(G(e[n],r[n]),r[n]),o++;let i=0;for(;o+i<s.length&&s[o+i]===n&&i<6;)i++;i>=3&&(t.writeBits(G(e[16],r[16]),r[16]),t.writeBits(i-3,2),o+=i)}}}function Vt(s,t,e,r){let o=new Uint32Array(286),n=new Uint32Array(30);o[256]=1;for(let m of s)if("lit"in m)o[m.lit]++;else{let[p]=Ut(m.len);o[p]++;let[h]=zt(m.dist);n[h]++}let i,l,c,a;if(r){i=yt(o,15),l=yt(n,15),l.every(F=>F===0)&&(l[0]=1),c=at(i),a=at(l);let m=Gt(i,257,286)+1,p=Gt(l,1,30)+1,h=[...i.subarray(0,m),...l.subarray(0,p)],u=new Uint32Array(19);ve(h,u);let $=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],x=yt(u,7),y=at(x),b=Fe($.map(F=>x[F]),4,19)+1;t.writeBits(e?1:0,1),t.writeBits(2,2),t.writeBits(m-257,5),t.writeBits(p-1,5),t.writeBits(b-4,4);for(let F=0;F<b;F++)t.writeBits(x[$[F]],3);be(h,t,y,x)}else i=ue(),l=ge(),c=at(i),a=at(l),t.writeBits(e?1:0,1),t.writeBits(1,2);for(let m of s)if("lit"in m){let p=i[m.lit];t.writeBits(G(c[m.lit],p),p)}else{let[p,h,u]=Ut(m.len),$=i[p];t.writeBits(G(c[p],$),$),h>0&&t.writeBits(u,h);let[x,y,b]=zt(m.dist),F=l[x];t.writeBits(G(a[x],F),F),y>0&&t.writeBits(b,y)}let d=i[256];t.writeBits(G(c[256],d),d)}function Gt(s,t,e){let r=t-1;for(let o=t;o<Math.min(s.length,e);o++)s[o]>0&&(r=o);return Math.max(r,t-1)}function Fe(s,t,e){let r=t-1;for(let o=t;o<Math.min(s.length,e);o++)s[o]>0&&(r=o);return Math.max(r,t-1)}function ve(s,t){let e=0;for(;e<s.length;){let r=s[e];if(r===0){let o=0;for(;e+o<s.length&&s[e+o]===0&&o<138;)o++;o<3?(t[0]++,e++):o<=10?(t[17]++,e+=o):(t[18]++,e+=o)}else{t[r]++,e++;let o=0;for(;e+o<s.length&&s[e+o]===r&&o<6;)o++;o>=3&&(t[16]++,e+=o)}}}var Ct=65536;function Ce(s,t=6){if(t===0){let i=new dt,l=0;for(;l<s.length||s.length===0;){let c=Math.min(Ct,s.length-l),a=l+c>=s.length;i.flush(),i.writeBits(a?1:0,1),i.writeBits(0,2),i.flush();let d=c;i.buf.push(d&255,d>>8&255,~d&255,~d>>8&255);for(let m=0;m<c;m++)i.buf.push(s[l+m]);if(l+=c,s.length===0)break}return i.toBytes()}let e=Math.max(1,Math.min(9,t)),r=e>=2,o=new dt,n=0;for(;n<s.length||s.length===0;){let i=s.subarray(n,n+Ct),l=n+Ct>=s.length,c=ye(i,e);if(Vt(c,o,l,r),n+=i.length,s.length===0){Vt([],o,!0,r);break}}return o.flush(),o.toBytes()}function P(s,t,e){s[t]=e&255,s[t+1]=e>>8&255}function E(s,t,e){s[t]=e&255,s[t+1]=e>>8&255,s[t+2]=e>>16&255,s[t+3]=e>>24&255}var ke=new TextEncoder,Te=new Set(["png","jpg","jpeg","gif","tiff","emf","wmf","bmp","webp"]);function kt(s,t={}){let e=t.level??6,r=t.noCompress?new Set(t.noCompress.map(u=>u.toLowerCase())):Te,o=[],n=[],i=0;for(let u of s){let $=ke.encode(u.name),x=u.name.split(".").pop()?.toLowerCase()??"",y=u.level??(r.has(x)?0:e),b=y>0&&u.data.length>0,F=fe(u.data),I,X;b?(I=Ce(u.data,y),I.length>=u.data.length?(I=u.data,X=0):X=8):(I=u.data,X=0);let T=new Uint8Array(30+$.length);E(T,0,67324752),P(T,4,20),P(T,6,0),P(T,8,X),P(T,10,0),P(T,12,0),E(T,14,F),E(T,18,I.length),E(T,22,u.data.length),P(T,26,$.length),P(T,28,0),T.set($,30);let v=new Uint8Array(46+$.length);E(v,0,33639248),P(v,4,20),P(v,6,20),P(v,8,0),P(v,10,X),P(v,12,0),P(v,14,0),E(v,16,F),E(v,20,I.length),E(v,24,u.data.length),P(v,28,$.length),P(v,30,0),P(v,32,0),P(v,34,0),P(v,36,0),E(v,38,0),E(v,42,i),v.set($,46),o.push(T,I),n.push(v),i+=T.length+I.length}let l=i,c=n.reduce((u,$)=>u+$.length,0),a=new Uint8Array(22);E(a,0,101010256),P(a,4,0),P(a,6,0),P(a,8,n.length),P(a,10,n.length),E(a,12,c),E(a,16,l),P(a,20,0);let d=[...o,...n,a],m=d.reduce((u,$)=>u+$.length,0),p=new Uint8Array(m),h=0;for(let u of d)p.set(u,h),h+=u.length;return p}function Q(s,t){return s[t]|s[t+1]<<8}function et(s,t){return(s[t]|s[t+1]<<8|s[t+2]<<16|s[t+3]<<24)>>>0}async function Ie(s){let t=new DecompressionStream("deflate-raw"),e=t.writable.getWriter(),r=t.readable.getReader();e.write(s),e.close();let o=[],n=!1;for(;!n;){let{value:a,done:d}=await r.read();a&&o.push(a),n=d}let i=o.reduce((a,d)=>a+d.length,0),l=new Uint8Array(i),c=0;for(let a of o)l.set(a,c),c+=a.length;return l}async function qt(s){let t=new TextDecoder("utf-8"),e=new Map,r=-1;for(let l=s.length-22;l>=0;l--)if(s[l]===80&&s[l+1]===75&&s[l+2]===5&&s[l+3]===6){r=l;break}if(r<0)throw new Error("Not a valid ZIP file (EOCD not found)");let o=et(s,r+16),n=Q(s,r+8),i=o;for(let l=0;l<n;l++){if(et(s,i)!==33639248)throw new Error("Invalid central directory entry");let c=Q(s,i+10),a=et(s,i+20),d=et(s,i+24),m=Q(s,i+28),p=Q(s,i+30),h=Q(s,i+32),u=et(s,i+42),$=s.subarray(i+46,i+46+m),x=t.decode($);i+=46+m+p+h;let y=u;if(et(s,y)!==67324752)throw new Error("Invalid local file header");let b=Q(s,y+26),F=Q(s,y+28),I=y+30+b+F,X=s.subarray(I,I+a),T;c===0?T=X.slice():c===8?T=await Ie(X):T=X.slice(),x.endsWith("/")||e.set(x,{name:x,data:T})}return e}function Tt(s){return new TextDecoder("utf-8").decode(s.data)}function It(s){let t=Object.entries(s.attrs).map(([o,n])=>`${o}="${Re(n)}"`).join(" "),e=t?`<${s.tag} ${t}`:`<${s.tag}`,r=(s.text??"")+s.children.map(It).join("");return r?`${e}>${r}</${s.tag}>`:`${e}/>`}function Re(s){return s.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function U(s){let t=[],e=[],r=0;for(s.startsWith("<?")&&(r=s.indexOf("?>")+2);r<s.length;){if(s[r]!=="<"){let m=s.indexOf("<",r),p=m<0?s.slice(r):s.slice(r,m);if(e.length&&p.trim()){let h=e[e.length-1];h.text=(h.text??"")+Zt(p)}r=m<0?s.length:m;continue}if(s.startsWith("<!--",r)){let m=s.indexOf("-->",r);if(e.length){let p=e[e.length-1];p.text=(p.text??"")+s.slice(r,m+3)}r=m+3;continue}if(s.startsWith("<![CDATA[",r)){let m=s.indexOf("]]>",r),p=s.slice(r+9,m);if(e.length){let h=e[e.length-1];h.text=(h.text??"")+p}r=m+3;continue}if(s[r+1]==="/"){let m=s.indexOf(">",r),p=e.pop();e.length?e[e.length-1].children.push(p):t.push(p),r=m+1;continue}if(s[r+1]==="?"){r=s.indexOf("?>",r)+2;continue}let o=Se(s,r),n=s.slice(r+1,o),i=n.endsWith("/"),l=i?n.slice(0,-1).trim():n.trim(),{tag:c,attrs:a}=Pe(l),d={tag:c,attrs:a,children:[]};i?e.length?e[e.length-1].children.push(d):t.push(d):e.push(d),r=o+1}for(;e.length>1;){let o=e.pop();e[e.length-1].children.push(o)}if(e.length===1&&t.push(e[0]),t.length===0)throw new Error("Empty XML document");return t[0]}function Se(s,t){let e=null;for(let r=t+1;r<s.length;r++){let o=s[r];if(e)o===e&&(e=null);else if(o==='"'||o==="'")e=o;else if(o===">")return r}return s.length-1}function Pe(s){let t={},e=s.search(/\s/),r=e<0?s:s.slice(0,e);if(e<0)return{tag:r,attrs:t};let o=s.slice(e),n=/(\S+?)\s*=\s*(?:"([^"]*)"|'([^']*)')/g,i;for(;(i=n.exec(o))!==null;)t[i[1]]=Zt(i[2]??i[3]??"");return{tag:r,attrs:t}}function Zt(s){return s.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&#(\d+);/g,(t,e)=>String.fromCharCode(parseInt(e,10))).replace(/&#x([0-9a-fA-F]+);/g,(t,e)=>String.fromCharCode(parseInt(e,16)))}function S(s,t){return s.children.find(e=>O(e.tag)===t)}function _(s,t){return s.children.filter(e=>O(e.tag)===t)}function O(s){let t=s.indexOf(":");return t<0?s:s.slice(t+1)}function De(s){return s.toISOString()}function Rt(s){let t=(r,o)=>o!==void 0?`<${r}>${g(o)}</${r}>`:"",e=(r,o)=>o?`<${r} xsi:type="dcterms:W3CDTF">${De(o)}</${r}>`:"";return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
136
136
  <cp:coreProperties
137
137
  xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties"
138
138
  xmlns:dc="http://purl.org/dc/elements/1.1/"
@@ -152,7 +152,7 @@ ${t("cp:category",s.category)}
152
152
  ${t("cp:contentStatus",s.contentStatus)}
153
153
  ${e("dcterms:created",s.created??new Date)}
154
154
  ${e("dcterms:modified",s.modified??new Date)}
155
- </cp:coreProperties>`}function St(s,t){let e=(i,n)=>n!==void 0?`<${i}>${g(String(n))}</${i}>`:"",r="",o="";if(s.headingPairs?.length){let i=s.headingPairs.map(n=>`<vt:variant><vt:lpstr>${g(n.name)}</vt:lpstr></vt:variant><vt:variant><vt:i4>${n.count}</vt:i4></vt:variant>`).join("");r=`<HeadingPairs><vt:vector size="${s.headingPairs.length*2}" baseType="variant">${i}</vt:vector></HeadingPairs>`}if(s.titlesOfParts?.length){let i=s.titlesOfParts.map(n=>`<vt:lpstr>${g(n)}</vt:lpstr>`).join("");o=`<TitlesOfParts><vt:vector size="${s.titlesOfParts.length}" baseType="lpstr">${i}</vt:vector></TitlesOfParts>`}return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
155
+ </cp:coreProperties>`}function St(s,t){let e=(n,i)=>i!==void 0?`<${n}>${g(String(i))}</${n}>`:"",r="",o="";if(s.headingPairs?.length){let n=s.headingPairs.map(i=>`<vt:variant><vt:lpstr>${g(i.name)}</vt:lpstr></vt:variant><vt:variant><vt:i4>${i.count}</vt:i4></vt:variant>`).join("");r=`<HeadingPairs><vt:vector size="${s.headingPairs.length*2}" baseType="variant">${n}</vt:vector></HeadingPairs>`}if(s.titlesOfParts?.length){let n=s.titlesOfParts.map(i=>`<vt:lpstr>${g(i)}</vt:lpstr>`).join("");o=`<TitlesOfParts><vt:vector size="${s.titlesOfParts.length}" baseType="lpstr">${n}</vt:vector></TitlesOfParts>`}return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
156
156
  <Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"
157
157
  xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">
158
158
  ${e("Application",s.application??"ExcelForge")}
@@ -184,11 +184,11 @@ ${t??""}
184
184
  </Properties>`}function Pt(s){let t=2;return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
185
185
  <Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties"
186
186
  xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">
187
- ${s.map(r=>{let o,i=r.value;switch(i.type){case"string":o=`<vt:lpwstr>${g(i.value)}</vt:lpwstr>`;break;case"int":o=`<vt:i4>${i.value}</vt:i4>`;break;case"decimal":o=`<vt:decimal>${i.value}</vt:decimal>`;break;case"bool":o=`<vt:bool>${i.value}</vt:bool>`;break;case"date":o=`<vt:filetime>${i.value.toISOString()}</vt:filetime>`;break;case"r8":o=`<vt:r8>${i.value}</vt:r8>`;break;case"i8":o=`<vt:i8>${i.value}</vt:i8>`;break;case"error":o=`<vt:error>${g(i.value)}</vt:error>`;break;default:o="<vt:lpwstr></vt:lpwstr>";break}return`<property fmtid="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}" pid="${t++}" name="${g(r.name)}">${o}</property>`}).join(`
187
+ ${s.map(r=>{let o,n=r.value;switch(n.type){case"string":o=`<vt:lpwstr>${g(n.value)}</vt:lpwstr>`;break;case"int":o=`<vt:i4>${n.value}</vt:i4>`;break;case"decimal":o=`<vt:decimal>${n.value}</vt:decimal>`;break;case"bool":o=`<vt:bool>${n.value}</vt:bool>`;break;case"date":o=`<vt:filetime>${n.value.toISOString()}</vt:filetime>`;break;case"r8":o=`<vt:r8>${n.value}</vt:r8>`;break;case"i8":o=`<vt:i8>${n.value}</vt:i8>`;break;case"error":o=`<vt:error>${g(n.value)}</vt:error>`;break;default:o="<vt:lpwstr></vt:lpwstr>";break}return`<property fmtid="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}" pid="${t++}" name="${g(r.name)}">${o}</property>`}).join(`
188
188
  `)}
189
- </Properties>`}function Jt(s){let t=U(s),e=o=>{let i=t.children.find(n=>O(n.tag)===o);return i?.text??i?.children[0]?.text},r=o=>{let i=e(o);return i?new Date(i):void 0};return{title:e("title"),subject:e("subject"),creator:e("creator"),keywords:e("keywords"),description:e("description"),lastModifiedBy:e("lastModifiedBy"),revision:e("revision"),created:r("created"),modified:r("modified"),category:e("category"),contentStatus:e("contentStatus"),language:e("language"),identifier:e("identifier"),version:e("version")}}function Kt(s){let t=U(s),e=p=>t.children.find(h=>O(h.tag)===p)?.text,r=p=>{let h=e(p);return h!==void 0?Number(h):void 0},o=p=>{let h=e(p);return h!==void 0?h==="true"||h==="1":void 0},i,n=t.children.find(p=>O(p.tag)==="HeadingPairs");if(n){let p=n.children[0];if(p){let h=p.children.filter(u=>O(u.tag)==="variant");i=[];for(let u=0;u<h.length-1;u+=2){let $=h[u].children[0],x=h[u+1].children[0];i.push({name:$?.text??"",count:parseInt(x?.text??"0",10)})}}}let l,c=t.children.find(p=>O(p.tag)==="TitlesOfParts");if(c){let p=c.children[0];p&&(l=p.children.map(h=>h.text??""))}let a=new Set(["Application","AppVersion","Company","Manager","DocSecurity","ScaleCrop","LinksUpToDate","SharedDoc","HyperlinksChanged","Characters","CharactersWithSpaces","Words","Lines","Paragraphs","Pages","Slides","Notes","HiddenSlides","MMClips","Template","PresentationFormat","TotalTime","HyperlinkBase","HeadingPairs","TitlesOfParts"]),m=t.children.filter(p=>!a.has(O(p.tag))).map(p=>{let h=Object.entries(p.attrs).map(([$,x])=>` ${$}="${x}"`).join(""),u=p.text??"";return!u&&!p.children.length?`<${p.tag}${h}/>`:`<${p.tag}${h}>${u}</${p.tag}>`}).join(`
190
- `);return{props:{application:e("Application"),appVersion:e("AppVersion"),company:e("Company"),manager:e("Manager"),docSecurity:r("DocSecurity"),scaleCrop:o("ScaleCrop"),linksUpToDate:o("LinksUpToDate"),sharedDoc:o("SharedDoc"),hyperlinksChanged:o("HyperlinksChanged"),characters:r("Characters"),charactersByWord:r("CharactersWithSpaces"),words:r("Words"),lines:r("Lines"),paragraphs:r("Paragraphs"),pages:r("Pages"),slides:r("Slides"),notes:r("Notes"),hiddenSlides:r("HiddenSlides"),mmClips:r("MMClips"),template:e("Template"),presentationFormat:e("PresentationFormat"),totalTime:r("TotalTime"),hyperlinkBase:e("HyperlinkBase"),headingPairs:i,titlesOfParts:l},unknownRaw:m}}function Qt(s){return U(s).children.filter(e=>O(e.tag)==="property").map(e=>{let r=e.attrs.name??"",o=e.children[0];if(!o)return null;let i=O(o.tag),n=o.text??"",l;switch(i){case"lpwstr":case"lpstr":case"bstr":l={type:"string",value:n};break;case"i4":case"int":l={type:"int",value:parseInt(n,10)};break;case"decimal":l={type:"decimal",value:parseFloat(n)};break;case"bool":l={type:"bool",value:n==="true"||n==="1"};break;case"filetime":l={type:"date",value:new Date(n)};break;case"r8":l={type:"r8",value:parseFloat(n)};break;case"i8":l={type:"i8",value:BigInt(n)};break;case"error":l={type:"error",value:n};break;default:l={type:"string",value:n};break}return{name:r,value:l}}).filter(Boolean)}function Yt(s){let t=new Map;try{let e=U(s);for(let r of e.children)O(r.tag)==="Relationship"&&t.set(r.attrs.Id??"",{type:r.attrs.Type??"",target:r.attrs.Target??""})}catch{}return t}function Xe(s){let t=new Map;try{let e=U(s);for(let r of e.children)if(O(r.tag)==="Override"){let i=r.attrs.PartName??"",n=r.attrs.ContentType??"";t.set(i.startsWith("/")?i.slice(1):i,n)}}catch{}return t}function Le(s){let t=U(s),e=new Map,r=[],o={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"mm-dd-yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@"},i=q(t,"numFmts");if(i)for(let h of _(i,"numFmt")){let u=parseInt(h.attrs.numFmtId??"0",10),$=h.attrs.formatCode??"";e.set(u,$)}let n=q(t,"fonts"),l=[];if(n)for(let h of _(n,"font"))l.push(Be(h));let c=q(t,"fills"),a=[];if(c)for(let h of _(c,"fill"))a.push(Ae(h));let d=q(t,"borders"),m=[];if(d)for(let h of _(d,"border"))m.push(_e(h));let p=q(t,"cellXfs");if(p)for(let h of _(p,"xf")){let u=parseInt(h.attrs.fontId??"0",10),$=parseInt(h.attrs.fillId??"0",10),x=parseInt(h.attrs.borderId??"0",10),y=parseInt(h.attrs.numFmtId??"0",10),b=h.attrs.applyFont==="1",F=h.attrs.applyFill==="1",I=h.attrs.applyBorder==="1",X=h.attrs.applyAlignment==="1",T=h.attrs.applyNumberFormat==="1",v=h.attrs.applyProtection==="1",f={};b&&l[u]&&(f.font=l[u]),F&&a[$]&&(f.fill=a[$]),I&&m[x]&&(f.border=m[x]),T&&y!==0&&(e.has(y)?f.numberFormat={formatCode:e.get(y)}:o[y]&&(f.numFmtId=y));let w=S(h,"alignment");X&&w&&(f.alignment=Oe(w));let D=S(h,"protection");v&&D&&(D.attrs.locked!==void 0&&(f.locked=D.attrs.locked!=="0"),D.attrs.hidden!==void 0&&(f.hidden=D.attrs.hidden!=="0")),r.push(f)}return{xfs:r,numFmts:e}}function q(s,t){if(O(s.tag)===t)return s;for(let e of s.children){let r=q(e,t);if(r)return r}}function Be(s){let t={};for(let e of s.children)switch(O(e.tag)){case"b":t.bold=e.attrs.val!=="0";break;case"i":t.italic=e.attrs.val!=="0";break;case"strike":t.strike=e.attrs.val!=="0";break;case"u":t.underline=e.attrs.val??"single";break;case"sz":t.size=parseFloat(e.attrs.val??"11");break;case"name":t.name=e.attrs.val;break;case"family":t.family=parseInt(e.attrs.val??"0",10);break;case"scheme":t.scheme=e.attrs.val;break;case"charset":t.charset=parseInt(e.attrs.val??"0",10);break;case"vertAlign":t.vertAlign=e.attrs.val;break;case"color":{let r=e.attrs.rgb??e.attrs.theme;r&&(t.color=r);break}}return t}function Ae(s){let t=S(s,"patternFill");if(t){let r=S(t,"fgColor"),o=S(t,"bgColor");return{type:"pattern",pattern:t.attrs.patternType??"none",fgColor:r?.attrs.rgb??r?.attrs.theme,bgColor:o?.attrs.rgb??o?.attrs.theme}}let e=S(s,"gradientFill");if(e){let r=_(e,"stop").concat(_(e,"gradientStop")).map(o=>{let i=S(o,"color");return{position:parseFloat(o.attrs.position??"0"),color:i?.attrs.rgb??i?.attrs.theme??"FF000000"}});return{type:"gradient",gradientType:e.attrs.type,degree:e.attrs.degree?parseFloat(e.attrs.degree):void 0,stops:r}}return{type:"pattern",pattern:"none"}}function _e(s){let t=e=>{let r=S(s,e);if(!r)return;let o=r.attrs.style,i=S(r,"color");if(!(!o&&!i))return{style:o,color:i?.attrs.rgb}};return{left:t("left"),right:t("right"),top:t("top"),bottom:t("bottom"),diagonal:t("diagonal"),diagonalUp:s.attrs.diagonalUp==="1",diagonalDown:s.attrs.diagonalDown==="1"}}function Oe(s){let t={};return s.attrs.horizontal&&(t.horizontal=s.attrs.horizontal),s.attrs.vertical&&(t.vertical=s.attrs.vertical),s.attrs.wrapText&&(t.wrapText=s.attrs.wrapText!=="0"),s.attrs.shrinkToFit&&(t.shrinkToFit=s.attrs.shrinkToFit!=="0"),s.attrs.textRotation&&(t.textRotation=parseInt(s.attrs.textRotation,10)),s.attrs.indent&&(t.indent=parseInt(s.attrs.indent,10)),s.attrs.readingOrder&&(t.readingOrder=parseInt(s.attrs.readingOrder,10)),t}function Ne(s){let t=U(s);return _(t,"si").map(e=>{let r=S(e,"t");return r&&!S(e,"r")?r.text??"":_(e,"r").map(o=>S(o,"t")?.text??"").join("")})}function je(s,t,e,r){let o=new J(t),i=U(s),n=[],l=[],c=new Set(["sheetPr","dimension","sheetViews","sheetFormatPr","cols","sheetData","mergeCells","conditionalFormatting","dataValidations","sheetProtection","printOptions","pageMargins","pageSetup","headerFooter","drawing","tableParts","autoFilter","rowBreaks","colBreaks","picture","oleObjects","ctrlProps"]);for(let a of i.children){let d=O(a.tag);switch(d){case"sheetViews":Me(a,o);break;case"cols":Ee(a,o,e);break;case"sheetData":We(a,o,e,r);break;case"mergeCells":Ue(a,o);break;case"autoFilter":o.autoFilter={ref:a.attrs.ref??""};break;case"tableParts":for(let m of _(a,"tablePart")){let p=m.attrs["r:id"]??"";p&&l.push(p)}break;case"sheetProtection":ze(a,o);break;case"pageMargins":He(a,o);break;case"pageSetup":Ve(a,o);break;case"headerFooter":Ge(a,o);break;case"printOptions":qe(a,o);break;default:c.has(d)||n.push(It(a));break}}return{ws:o,originalXml:s,unknownParts:n,tableRIds:l}}function Me(s,t){let e=_(s,"sheetView")[0];if(!e)return;t.view={showGridLines:e.attrs.showGridLines!=="0",showRowColHeaders:e.attrs.showRowColHeaders!=="0",zoomScale:e.attrs.zoomScale?parseInt(e.attrs.zoomScale,10):void 0,rightToLeft:e.attrs.rightToLeft==="1",tabSelected:e.attrs.tabSelected==="1",view:e.attrs.view};let r=S(e,"pane");r&&r.attrs.state==="frozen"&&(t.freezePane={col:r.attrs.xSplit?parseInt(r.attrs.xSplit,10):void 0,row:r.attrs.ySplit?parseInt(r.attrs.ySplit,10):void 0})}function Ee(s,t,e){for(let r of _(s,"col")){let o=parseInt(r.attrs.min??"1",10),i=parseInt(r.attrs.max??"1",10),n={width:r.attrs.width?parseFloat(r.attrs.width):void 0,hidden:r.attrs.hidden==="1",customWidth:r.attrs.customWidth==="1",outlineLevel:r.attrs.outlineLevel?parseInt(r.attrs.outlineLevel,10):void 0,style:r.attrs.style?e.xfs[parseInt(r.attrs.style,10)]:void 0};for(let l=o;l<=i;l++)t.setColumn(l,n)}}function We(s,t,e,r){for(let o of _(s,"row")){let i=parseInt(o.attrs.r??"0",10);if(!i)continue;let n={};o.attrs.ht&&(n.height=parseFloat(o.attrs.ht)),o.attrs.hidden&&(n.hidden=o.attrs.hidden==="1"),o.attrs.outlineLevel&&(n.outlineLevel=parseInt(o.attrs.outlineLevel,10)),o.attrs.collapsed&&(n.collapsed=o.attrs.collapsed==="1"),o.attrs.s&&(n.style=e.xfs[parseInt(o.attrs.s,10)]),Object.keys(n).length&&t.setRow(i,n);for(let l of _(o,"c")){let c=l.attrs.r??"";if(!c)continue;let{row:a,col:d}=H(c),m=l.attrs.s?parseInt(l.attrs.s,10):0,p=m>0?e.xfs[m]:void 0,h=l.attrs.t??"",u=S(l,"f"),$=S(l,"v"),x={};if(p&&(x.style=p),u)u.attrs.t==="array"?x.arrayFormula=u.text??"":x.formula=u.text??"";else if($){let y=$.text??"";switch(h){case"s":{let b=parseInt(y,10);x.value=r[b]??"";break}case"b":x.value=y==="1"||y==="true";break;case"str":case"inlineStr":{let b=S(l,"is");x.value=b?S(b,"t")?.text??y:y;break}case"e":x.value=y;break;default:{let b=parseFloat(y);x.value=isNaN(b)?y:b;break}}}(Object.keys(x).length||x.value!==void 0)&&t.setCell(a,d,x)}}}function Ue(s,t){for(let e of _(s,"mergeCell")){let r=e.attrs.ref??"";r.includes(":")&&t.mergeByRef(r)}}function ze(s,t){t.protection={sheet:s.attrs.sheet!=="0",password:void 0,selectLockedCells:s.attrs.selectLockedCells!=="0",selectUnlockedCells:s.attrs.selectUnlockedCells!=="0",formatCells:s.attrs.formatCells==="0",formatColumns:s.attrs.formatColumns==="0",formatRows:s.attrs.formatRows==="0",insertColumns:s.attrs.insertColumns==="0",insertRows:s.attrs.insertRows==="0",insertHyperlinks:s.attrs.insertHyperlinks==="0",deleteColumns:s.attrs.deleteColumns==="0",deleteRows:s.attrs.deleteRows==="0",sort:s.attrs.sort==="0",autoFilter:s.attrs.autoFilter==="0",pivotTables:s.attrs.pivotTables==="0"}}function He(s,t){t.pageMargins={left:parseFloat(s.attrs.left??"0.7"),right:parseFloat(s.attrs.right??"0.7"),top:parseFloat(s.attrs.top??"0.75"),bottom:parseFloat(s.attrs.bottom??"0.75"),header:parseFloat(s.attrs.header??"0.3"),footer:parseFloat(s.attrs.footer??"0.3")}}function Ve(s,t){t.pageSetup={paperSize:s.attrs.paperSize?parseInt(s.attrs.paperSize,10):void 0,orientation:s.attrs.orientation,fitToPage:s.attrs.fitToPage==="1",fitToWidth:s.attrs.fitToWidth?parseInt(s.attrs.fitToWidth,10):void 0,fitToHeight:s.attrs.fitToHeight?parseInt(s.attrs.fitToHeight,10):void 0,scale:s.attrs.scale?parseInt(s.attrs.scale,10):void 0,horizontalDpi:s.attrs.horizontalDpi?parseInt(s.attrs.horizontalDpi,10):void 0,verticalDpi:s.attrs.verticalDpi?parseInt(s.attrs.verticalDpi,10):void 0}}function Ge(s,t){t.headerFooter={oddHeader:S(s,"oddHeader")?.text,oddFooter:S(s,"oddFooter")?.text,evenHeader:S(s,"evenHeader")?.text,evenFooter:S(s,"evenFooter")?.text,firstHeader:S(s,"firstHeader")?.text,firstFooter:S(s,"firstFooter")?.text,differentOddEven:s.attrs.differentOddEven==="1",differentFirst:s.attrs.differentFirst==="1"}}function qe(s,t){t.printOptions={gridLines:s.attrs.gridLines==="1",gridLinesSet:s.attrs.gridLinesSet==="1",headings:s.attrs.headings==="1",centerHorizontal:s.attrs.horizontalCentered==="1",centerVertical:s.attrs.verticalCentered==="1"}}function Ze(s){try{let t=U(s);if(O(t.tag)!=="table")return null;let r=t.attrs.name??"",o=t.attrs.displayName??r,i=t.attrs.ref??"",n=parseInt(t.attrs.totalsRowCount??"0",10),l=[],c=q(t,"tableColumns");if(c)for(let m of _(c,"tableColumn")){let p={name:m.attrs.name??""};m.attrs.totalsRowFunction&&(p.totalsRowFunction=m.attrs.totalsRowFunction),m.attrs.totalsRowFormula&&(p.totalsRowFormula=m.attrs.totalsRowFormula),m.attrs.totalsRowLabel&&(p.totalsRowLabel=m.attrs.totalsRowLabel),l.push(p)}let a={name:r,ref:i,columns:l};o&&o!==r&&(a.displayName=o),n>0&&(a.totalsRow=!0);let d=q(t,"tableStyleInfo");return d&&(d.attrs.name&&(a.style=d.attrs.name),d.attrs.showFirstColumn==="1"&&(a.showFirstColumn=!0),d.attrs.showLastColumn==="1"&&(a.showLastColumn=!0),d.attrs.showRowStripes==="1"&&(a.showRowStripes=!0),d.attrs.showColumnStripes==="1"&&(a.showColumnStripes=!0)),a}catch{return null}}function Je(s,t){let e=s.replace(/\/$/,"").split("/");for(let r of t.split("/"))r===".."?e.pop():r!=="."&&e.push(r);return e.join("/")}async function te(s){let t=await qt(s),e=R=>t.get(R)??t.get(R.replace(/^\//,"")),r=R=>{let N=e(R);return N?Tt(N):void 0},o=r("[Content_Types].xml")??"<Types/>",i=Xe(o),n=r("xl/_rels/workbook.xml.rels")??"<Relationships/>",l=Yt(n),c=r("xl/workbook.xml")??"<workbook/>",a=r("xl/styles.xml")??"<styleSheet/>",d=Le(a),m=r("xl/sharedStrings.xml")??"<sst/>",p=m!=="<sst/>"?Ne(m):[],h=r("docProps/core.xml")??"",u=h?Jt(h):{},$=r("docProps/app.xml")??"",x={},y="";if($){let R=Kt($);x=R.props,y=R.unknownRaw}let b=r("docProps/custom.xml")??"",F=b?Qt(b):[],I=U(c),X=q(I,"sheets"),T=X?_(X,"sheet"):[],v=new Map;for(let[R,N]of t)R.includes("_rels/")&&v.set(R,Yt(Tt(N)));let f=[];for(let R of T){let N=R.attrs["r:id"]??Object.values(R.attrs).find(ut=>ut.startsWith("rId"))??"",Z=R.attrs.sheetId??"",j=R.attrs.name??`Sheet${Z}`,A=l.get(N);if(!A)continue;let k=A.target.startsWith("/")?A.target.slice(1):`xl/${A.target}`,M=r(k)??"";if(!M)continue;let{ws:L,originalXml:z,unknownParts:st,tableRIds:ft}=je(M,j,d,p);L.sheetIndex=f.length+1,L.rId=N;let Xt=[];if(ft.length){let ut=k.split("/").pop()??"",Lt=k.substring(0,k.lastIndexOf("/")+1),ee=`${Lt}_rels/${ut}.rels`,Bt=v.get(ee);if(Bt){for(let se of ft){let lt=Bt.get(se);if(!lt)continue;let At=lt.target.startsWith("/")?lt.target.slice(1):Je(Lt,lt.target),_t=r(At);if(_t){let Ot=Ze(_t);Ot&&L.addTable(Ot),Xt.push(At)}}L.tableRIds=ft}}f.push({ws:L,sheetId:Z,rId:N,originalXml:z,unknownParts:st,tablePaths:Xt})}let w=new Set(["xl/workbook.xml","xl/styles.xml","xl/sharedStrings.xml","xl/worksheets/","docProps/","[Content_Types].xml","_rels/","xl/_rels/"]),D=new Map;for(let[R,N]of t){if(R.endsWith("_rels/")||R==="[Content_Types].xml")continue;[...w].some(j=>R.startsWith(j))||D.set(R,N.data)}return{sheets:f,styles:d,stylesXml:a,sharedStrings:p,sharedXml:m,workbookXml:c,workbookRels:l,contentTypes:i,contentTypesXml:o,core:u,extended:x,extendedUnknownRaw:y,custom:F,hasCustomProps:F.length>0,unknownParts:D,allRels:v}}var Dt=class s{constructor(){this.sheets=[],this.namedRanges=[],this.properties={},this.compressionLevel=6,this.coreProperties={},this.extendedProperties={},this.customProperties=[],this._dirtySheets=new Set}markDirty(t){if(typeof t=="string"){let e=this.sheets.findIndex(r=>r.name===t);e>=0&&this._dirtySheets.add(e)}else this._dirtySheets.add(t)}static async fromBytes(t){let e=new s,r=await te(t);return e._readResult=r,e.coreProperties=r.core,e.extendedProperties=r.extended,e.customProperties=r.custom,e.properties={title:r.core.title,author:r.core.creator,subject:r.core.subject,description:r.core.description,keywords:r.core.keywords,company:r.extended.company,lastModifiedBy:r.core.lastModifiedBy,created:r.core.created,modified:r.core.modified,category:r.core.category,status:r.core.contentStatus},e.sheets=r.sheets.map(o=>o.ws),e}static async fromBase64(t){return s.fromBytes(ct(t))}static async fromFile(t){let r=await(await import("fs/promises")).readFile(t);return s.fromBytes(new Uint8Array(r))}static async fromBlob(t){return s.fromBytes(new Uint8Array(await t.arrayBuffer()))}addSheet(t,e={}){let r=new J(t,e);return r.sheetIndex=this.sheets.length+1,this.sheets.push(r),this._dirtySheets.add(r.sheetIndex-1),r}getSheet(t){return this.sheets.find(e=>e.name===t)}getSheetByIndex(t){return this.sheets[t]}getSheetNames(){return this.sheets.map(t=>t.name)}removeSheet(t){return this.sheets=this.sheets.filter(e=>e.name!==t),this}addNamedRange(t){return this.namedRanges.push(t),this}getCustomProperty(t){return this.customProperties.find(e=>e.name===t)}setCustomProperty(t,e){let r=this.customProperties.findIndex(o=>o.name===t);return r>=0?this.customProperties[r]={name:t,value:e}:this.customProperties.push({name:t,value:e}),this}removeCustomProperty(t){return this.customProperties=this.customProperties.filter(e=>e.name!==t),this}async build(){return this._syncLegacyProperties(),this._readResult?this._buildPatched():this._buildFresh()}async _buildPatched(){let t=this._readResult,e=[],r=this._dirtySheets.size>0,o=new Y,i=new tt,n=new Map;if(r)for(let a=0;a<this.sheets.length;a++)n.set(a,this.sheets[a].toXml(o,i));e.push({name:"docProps/core.xml",data:C(Rt({...t.core,...this.coreProperties,modified:new Date}))}),e.push({name:"docProps/app.xml",data:C(St({...t.extended,...this.extendedProperties,titlesOfParts:this.sheets.map(a=>a.name),headingPairs:[{name:"Worksheets",count:this.sheets.length}]},t.extendedUnknownRaw))});let l=this.customProperties.length>0?this.customProperties:t.hasCustomProps?t.custom:null;l&&l.length>0&&e.push({name:"docProps/custom.xml",data:C(Pt(l))}),e.push({name:"xl/workbook.xml",data:C(this._patchWorkbookXml(t.workbookXml))}),r?(e.push({name:"xl/styles.xml",data:C(o.toXml())}),e.push({name:"xl/sharedStrings.xml",data:C(i.toXml())})):(e.push({name:"xl/styles.xml",data:C(t.stylesXml)}),e.push({name:"xl/sharedStrings.xml",data:C(t.sharedXml)}));for(let a=0;a<this.sheets.length;a++){let d=`xl/worksheets/sheet${a+1}.xml`;if(r)e.push({name:d,data:C(n.get(a)??"")});else{let m=t.sheets[a]?.originalXml??"",p=t.sheets[a]?.unknownParts.join(`
191
- `)??"";e.push({name:d,data:C(p?m.replace("</worksheet>",`${p}</worksheet>`):m)})}}let c=new Set;if(r){for(let a=0;a<this.sheets.length;a++)if(t.sheets[a]?.tablePaths)for(let d of t.sheets[a].tablePaths)c.add(d)}for(let[a,d]of t.unknownParts)c.has(a)||e.push({name:a,data:d});if(r)for(let a=0;a<this.sheets.length;a++){let m=this.sheets[a].getTables(),p=t.sheets[a]?.tablePaths??[];for(let h=0;h<m.length;h++){let u=p[h];if(u){let $=u.match(/table(\d+)\.xml$/),x=$?parseInt($[1],10):h+1;e.push({name:u,data:C(wt(m[h],x))})}}}e.push({name:"_rels/.rels",data:C(this._buildRootRels(l!=null&&l.length>0))}),e.push({name:"xl/_rels/workbook.xml.rels",data:C(this._buildWorkbookRels(t))});for(let[a,d]of t.allRels)a==="xl/_rels/workbook.xml.rels"||a==="_rels/.rels"||e.push({name:a,data:C(this._relsToXml(d))});return e.push({name:"[Content_Types].xml",data:C(this._patchContentTypes(t.contentTypesXml,l!=null&&l.length>0))}),kt(e,{level:this.compressionLevel})}async _buildFresh(){let t=new Y,e=new tt,r=[],o=1;for(let f of this.sheets)f.rId=`rId${o++}`;let i=[],n=[],l=[],c=new Map,a=new Map,d=new Map,m=1,p=1,h=1,u=1;for(let f of this.sheets){let w=f.getImages(),D=f.getCharts(),R=f.getTables(),N=[],Z=[],j=[];(w.length||D.length)&&(f.drawingRId=`rId${o++}`),f.getComments().length&&(f.legacyDrawingRId=`rId${o++}`);for(let A of w){let k=`rId${o++}`;N.push(k),i.push({ws:f,img:A,ext:A.format==="jpeg"?"jpg":A.format,idx:m++})}for(let A=0;A<D.length;A++){let k=`rId${o++}`;Z.push(k),n.push({ws:f,chartIdx:A,globalIdx:p++})}for(let A=0;A<R.length;A++){let k=`rId${o++}`;j.push(k),l.push({ws:f,tableIdx:A,globalTableId:h++})}c.set(f,N),a.set(f,Z),d.set(f,j),f.tableRIds=j}let $=this.customProperties.length>0,x=new Set;for(let{ext:f}of i){let w=f==="jpg"?"image/jpeg":f==="png"?"image/png":`image/${f}`;x.add(`<Default Extension="${f}" ContentType="${w}"/>`)}let y=this.sheets.filter(f=>f.getComments().length),b=y.length?'<Default Extension="vml" ContentType="application/vnd.openxmlformats-officedocument.vmlDrawing"/>':"",F=0,I=y.map(()=>`<Override PartName="/xl/comments${++F}.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"/>`).join("");r.push({name:"[Content_Types].xml",data:C(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
189
+ </Properties>`}function Jt(s){let t=U(s),e=o=>{let n=t.children.find(i=>O(i.tag)===o);return n?.text??n?.children[0]?.text},r=o=>{let n=e(o);return n?new Date(n):void 0};return{title:e("title"),subject:e("subject"),creator:e("creator"),keywords:e("keywords"),description:e("description"),lastModifiedBy:e("lastModifiedBy"),revision:e("revision"),created:r("created"),modified:r("modified"),category:e("category"),contentStatus:e("contentStatus"),language:e("language"),identifier:e("identifier"),version:e("version")}}function Kt(s){let t=U(s),e=p=>t.children.find(h=>O(h.tag)===p)?.text,r=p=>{let h=e(p);return h!==void 0?Number(h):void 0},o=p=>{let h=e(p);return h!==void 0?h==="true"||h==="1":void 0},n,i=t.children.find(p=>O(p.tag)==="HeadingPairs");if(i){let p=i.children[0];if(p){let h=p.children.filter(u=>O(u.tag)==="variant");n=[];for(let u=0;u<h.length-1;u+=2){let $=h[u].children[0],x=h[u+1].children[0];n.push({name:$?.text??"",count:parseInt(x?.text??"0",10)})}}}let l,c=t.children.find(p=>O(p.tag)==="TitlesOfParts");if(c){let p=c.children[0];p&&(l=p.children.map(h=>h.text??""))}let a=new Set(["Application","AppVersion","Company","Manager","DocSecurity","ScaleCrop","LinksUpToDate","SharedDoc","HyperlinksChanged","Characters","CharactersWithSpaces","Words","Lines","Paragraphs","Pages","Slides","Notes","HiddenSlides","MMClips","Template","PresentationFormat","TotalTime","HyperlinkBase","HeadingPairs","TitlesOfParts"]),m=t.children.filter(p=>!a.has(O(p.tag))).map(p=>{let h=Object.entries(p.attrs).map(([$,x])=>` ${$}="${x}"`).join(""),u=p.text??"";return!u&&!p.children.length?`<${p.tag}${h}/>`:`<${p.tag}${h}>${u}</${p.tag}>`}).join(`
190
+ `);return{props:{application:e("Application"),appVersion:e("AppVersion"),company:e("Company"),manager:e("Manager"),docSecurity:r("DocSecurity"),scaleCrop:o("ScaleCrop"),linksUpToDate:o("LinksUpToDate"),sharedDoc:o("SharedDoc"),hyperlinksChanged:o("HyperlinksChanged"),characters:r("Characters"),charactersByWord:r("CharactersWithSpaces"),words:r("Words"),lines:r("Lines"),paragraphs:r("Paragraphs"),pages:r("Pages"),slides:r("Slides"),notes:r("Notes"),hiddenSlides:r("HiddenSlides"),mmClips:r("MMClips"),template:e("Template"),presentationFormat:e("PresentationFormat"),totalTime:r("TotalTime"),hyperlinkBase:e("HyperlinkBase"),headingPairs:n,titlesOfParts:l},unknownRaw:m}}function Qt(s){return U(s).children.filter(e=>O(e.tag)==="property").map(e=>{let r=e.attrs.name??"",o=e.children[0];if(!o)return null;let n=O(o.tag),i=o.text??"",l;switch(n){case"lpwstr":case"lpstr":case"bstr":l={type:"string",value:i};break;case"i4":case"int":l={type:"int",value:parseInt(i,10)};break;case"decimal":l={type:"decimal",value:parseFloat(i)};break;case"bool":l={type:"bool",value:i==="true"||i==="1"};break;case"filetime":l={type:"date",value:new Date(i)};break;case"r8":l={type:"r8",value:parseFloat(i)};break;case"i8":l={type:"i8",value:BigInt(i)};break;case"error":l={type:"error",value:i};break;default:l={type:"string",value:i};break}return{name:r,value:l}}).filter(Boolean)}function Yt(s){let t=new Map;try{let e=U(s);for(let r of e.children)O(r.tag)==="Relationship"&&t.set(r.attrs.Id??"",{type:r.attrs.Type??"",target:r.attrs.Target??""})}catch{}return t}function Xe(s){let t=new Map;try{let e=U(s);for(let r of e.children)if(O(r.tag)==="Override"){let n=r.attrs.PartName??"",i=r.attrs.ContentType??"";t.set(n.startsWith("/")?n.slice(1):n,i)}}catch{}return t}function Le(s){let t=U(s),e=new Map,r=[],o={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"mm-dd-yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@"},n=q(t,"numFmts");if(n)for(let h of _(n,"numFmt")){let u=parseInt(h.attrs.numFmtId??"0",10),$=h.attrs.formatCode??"";e.set(u,$)}let i=q(t,"fonts"),l=[];if(i)for(let h of _(i,"font"))l.push(Be(h));let c=q(t,"fills"),a=[];if(c)for(let h of _(c,"fill"))a.push(Ae(h));let d=q(t,"borders"),m=[];if(d)for(let h of _(d,"border"))m.push(_e(h));let p=q(t,"cellXfs");if(p)for(let h of _(p,"xf")){let u=parseInt(h.attrs.fontId??"0",10),$=parseInt(h.attrs.fillId??"0",10),x=parseInt(h.attrs.borderId??"0",10),y=parseInt(h.attrs.numFmtId??"0",10),b=h.attrs.applyFont==="1",F=h.attrs.applyFill==="1",I=h.attrs.applyBorder==="1",X=h.attrs.applyAlignment==="1",T=h.attrs.applyNumberFormat==="1",v=h.attrs.applyProtection==="1",f={};b&&l[u]&&(f.font=l[u]),F&&a[$]&&(f.fill=a[$]),I&&m[x]&&(f.border=m[x]),T&&y!==0&&(e.has(y)?f.numberFormat={formatCode:e.get(y)}:o[y]&&(f.numFmtId=y));let w=S(h,"alignment");X&&w&&(f.alignment=Oe(w));let D=S(h,"protection");v&&D&&(D.attrs.locked!==void 0&&(f.locked=D.attrs.locked!=="0"),D.attrs.hidden!==void 0&&(f.hidden=D.attrs.hidden!=="0")),r.push(f)}return{xfs:r,numFmts:e}}function q(s,t){if(O(s.tag)===t)return s;for(let e of s.children){let r=q(e,t);if(r)return r}}function Be(s){let t={};for(let e of s.children)switch(O(e.tag)){case"b":t.bold=e.attrs.val!=="0";break;case"i":t.italic=e.attrs.val!=="0";break;case"strike":t.strike=e.attrs.val!=="0";break;case"u":t.underline=e.attrs.val??"single";break;case"sz":t.size=parseFloat(e.attrs.val??"11");break;case"name":t.name=e.attrs.val;break;case"family":t.family=parseInt(e.attrs.val??"0",10);break;case"scheme":t.scheme=e.attrs.val;break;case"charset":t.charset=parseInt(e.attrs.val??"0",10);break;case"vertAlign":t.vertAlign=e.attrs.val;break;case"color":{let r=e.attrs.rgb??e.attrs.theme;r&&(t.color=r);break}}return t}function Ae(s){let t=S(s,"patternFill");if(t){let r=S(t,"fgColor"),o=S(t,"bgColor");return{type:"pattern",pattern:t.attrs.patternType??"none",fgColor:r?.attrs.rgb??r?.attrs.theme,bgColor:o?.attrs.rgb??o?.attrs.theme}}let e=S(s,"gradientFill");if(e){let r=_(e,"stop").concat(_(e,"gradientStop")).map(o=>{let n=S(o,"color");return{position:parseFloat(o.attrs.position??"0"),color:n?.attrs.rgb??n?.attrs.theme??"FF000000"}});return{type:"gradient",gradientType:e.attrs.type,degree:e.attrs.degree?parseFloat(e.attrs.degree):void 0,stops:r}}return{type:"pattern",pattern:"none"}}function _e(s){let t=e=>{let r=S(s,e);if(!r)return;let o=r.attrs.style,n=S(r,"color");if(!(!o&&!n))return{style:o,color:n?.attrs.rgb}};return{left:t("left"),right:t("right"),top:t("top"),bottom:t("bottom"),diagonal:t("diagonal"),diagonalUp:s.attrs.diagonalUp==="1",diagonalDown:s.attrs.diagonalDown==="1"}}function Oe(s){let t={};return s.attrs.horizontal&&(t.horizontal=s.attrs.horizontal),s.attrs.vertical&&(t.vertical=s.attrs.vertical),s.attrs.wrapText&&(t.wrapText=s.attrs.wrapText!=="0"),s.attrs.shrinkToFit&&(t.shrinkToFit=s.attrs.shrinkToFit!=="0"),s.attrs.textRotation&&(t.textRotation=parseInt(s.attrs.textRotation,10)),s.attrs.indent&&(t.indent=parseInt(s.attrs.indent,10)),s.attrs.readingOrder&&(t.readingOrder=parseInt(s.attrs.readingOrder,10)),t}function Ne(s){let t=U(s);return _(t,"si").map(e=>{let r=S(e,"t");return r&&!S(e,"r")?r.text??"":_(e,"r").map(o=>S(o,"t")?.text??"").join("")})}function je(s,t,e,r){let o=new J(t),n=U(s),i=[],l=[],c=new Set(["sheetPr","dimension","sheetViews","sheetFormatPr","cols","sheetData","mergeCells","conditionalFormatting","dataValidations","sheetProtection","printOptions","pageMargins","pageSetup","headerFooter","drawing","tableParts","autoFilter","rowBreaks","colBreaks","picture","oleObjects","ctrlProps"]);for(let a of n.children){let d=O(a.tag);switch(d){case"sheetViews":Me(a,o);break;case"cols":Ee(a,o,e);break;case"sheetData":We(a,o,e,r);break;case"mergeCells":Ue(a,o);break;case"autoFilter":o.autoFilter={ref:a.attrs.ref??""};break;case"tableParts":for(let m of _(a,"tablePart")){let p=m.attrs["r:id"]??"";p&&l.push(p)}break;case"sheetProtection":ze(a,o);break;case"pageMargins":He(a,o);break;case"pageSetup":Ve(a,o);break;case"headerFooter":Ge(a,o);break;case"printOptions":qe(a,o);break;default:c.has(d)||i.push(It(a));break}}return{ws:o,originalXml:s,unknownParts:i,tableRIds:l}}function Me(s,t){let e=_(s,"sheetView")[0];if(!e)return;t.view={showGridLines:e.attrs.showGridLines!=="0",showRowColHeaders:e.attrs.showRowColHeaders!=="0",zoomScale:e.attrs.zoomScale?parseInt(e.attrs.zoomScale,10):void 0,rightToLeft:e.attrs.rightToLeft==="1",tabSelected:e.attrs.tabSelected==="1",view:e.attrs.view};let r=S(e,"pane");r&&r.attrs.state==="frozen"&&(t.freezePane={col:r.attrs.xSplit?parseInt(r.attrs.xSplit,10):void 0,row:r.attrs.ySplit?parseInt(r.attrs.ySplit,10):void 0})}function Ee(s,t,e){for(let r of _(s,"col")){let o=parseInt(r.attrs.min??"1",10),n=parseInt(r.attrs.max??"1",10),i={width:r.attrs.width?parseFloat(r.attrs.width):void 0,hidden:r.attrs.hidden==="1",customWidth:r.attrs.customWidth==="1",outlineLevel:r.attrs.outlineLevel?parseInt(r.attrs.outlineLevel,10):void 0,style:r.attrs.style?e.xfs[parseInt(r.attrs.style,10)]:void 0};for(let l=o;l<=n;l++)t.setColumn(l,i)}}function We(s,t,e,r){for(let o of _(s,"row")){let n=parseInt(o.attrs.r??"0",10);if(!n)continue;let i={};o.attrs.ht&&(i.height=parseFloat(o.attrs.ht)),o.attrs.hidden&&(i.hidden=o.attrs.hidden==="1"),o.attrs.outlineLevel&&(i.outlineLevel=parseInt(o.attrs.outlineLevel,10)),o.attrs.collapsed&&(i.collapsed=o.attrs.collapsed==="1"),o.attrs.s&&(i.style=e.xfs[parseInt(o.attrs.s,10)]),Object.keys(i).length&&t.setRow(n,i);for(let l of _(o,"c")){let c=l.attrs.r??"";if(!c)continue;let{row:a,col:d}=H(c),m=l.attrs.s?parseInt(l.attrs.s,10):0,p=m>0?e.xfs[m]:void 0,h=l.attrs.t??"",u=S(l,"f"),$=S(l,"v"),x={};if(p&&(x.style=p),u)u.attrs.t==="array"?x.arrayFormula=u.text??"":x.formula=u.text??"";else if($){let y=$.text??"";switch(h){case"s":{let b=parseInt(y,10);x.value=r[b]??"";break}case"b":x.value=y==="1"||y==="true";break;case"str":case"inlineStr":{let b=S(l,"is");x.value=b?S(b,"t")?.text??y:y;break}case"e":x.value=y;break;default:{let b=parseFloat(y);x.value=isNaN(b)?y:b;break}}}(Object.keys(x).length||x.value!==void 0)&&t.setCell(a,d,x)}}}function Ue(s,t){for(let e of _(s,"mergeCell")){let r=e.attrs.ref??"";r.includes(":")&&t.mergeByRef(r)}}function ze(s,t){t.protection={sheet:s.attrs.sheet!=="0",password:void 0,selectLockedCells:s.attrs.selectLockedCells!=="0",selectUnlockedCells:s.attrs.selectUnlockedCells!=="0",formatCells:s.attrs.formatCells==="0",formatColumns:s.attrs.formatColumns==="0",formatRows:s.attrs.formatRows==="0",insertColumns:s.attrs.insertColumns==="0",insertRows:s.attrs.insertRows==="0",insertHyperlinks:s.attrs.insertHyperlinks==="0",deleteColumns:s.attrs.deleteColumns==="0",deleteRows:s.attrs.deleteRows==="0",sort:s.attrs.sort==="0",autoFilter:s.attrs.autoFilter==="0",pivotTables:s.attrs.pivotTables==="0"}}function He(s,t){t.pageMargins={left:parseFloat(s.attrs.left??"0.7"),right:parseFloat(s.attrs.right??"0.7"),top:parseFloat(s.attrs.top??"0.75"),bottom:parseFloat(s.attrs.bottom??"0.75"),header:parseFloat(s.attrs.header??"0.3"),footer:parseFloat(s.attrs.footer??"0.3")}}function Ve(s,t){t.pageSetup={paperSize:s.attrs.paperSize?parseInt(s.attrs.paperSize,10):void 0,orientation:s.attrs.orientation,fitToPage:s.attrs.fitToPage==="1",fitToWidth:s.attrs.fitToWidth?parseInt(s.attrs.fitToWidth,10):void 0,fitToHeight:s.attrs.fitToHeight?parseInt(s.attrs.fitToHeight,10):void 0,scale:s.attrs.scale?parseInt(s.attrs.scale,10):void 0,horizontalDpi:s.attrs.horizontalDpi?parseInt(s.attrs.horizontalDpi,10):void 0,verticalDpi:s.attrs.verticalDpi?parseInt(s.attrs.verticalDpi,10):void 0}}function Ge(s,t){t.headerFooter={oddHeader:S(s,"oddHeader")?.text,oddFooter:S(s,"oddFooter")?.text,evenHeader:S(s,"evenHeader")?.text,evenFooter:S(s,"evenFooter")?.text,firstHeader:S(s,"firstHeader")?.text,firstFooter:S(s,"firstFooter")?.text,differentOddEven:s.attrs.differentOddEven==="1",differentFirst:s.attrs.differentFirst==="1"}}function qe(s,t){t.printOptions={gridLines:s.attrs.gridLines==="1",gridLinesSet:s.attrs.gridLinesSet==="1",headings:s.attrs.headings==="1",centerHorizontal:s.attrs.horizontalCentered==="1",centerVertical:s.attrs.verticalCentered==="1"}}function Ze(s){try{let t=U(s);if(O(t.tag)!=="table")return null;let r=t.attrs.name??"",o=t.attrs.displayName??r,n=t.attrs.ref??"",i=parseInt(t.attrs.totalsRowCount??"0",10),l=[],c=q(t,"tableColumns");if(c)for(let m of _(c,"tableColumn")){let p={name:m.attrs.name??""};m.attrs.totalsRowFunction&&(p.totalsRowFunction=m.attrs.totalsRowFunction),m.attrs.totalsRowFormula&&(p.totalsRowFormula=m.attrs.totalsRowFormula),m.attrs.totalsRowLabel&&(p.totalsRowLabel=m.attrs.totalsRowLabel),l.push(p)}let a={name:r,ref:n,columns:l};o&&o!==r&&(a.displayName=o),i>0&&(a.totalsRow=!0);let d=q(t,"tableStyleInfo");return d&&(d.attrs.name&&(a.style=d.attrs.name),d.attrs.showFirstColumn==="1"&&(a.showFirstColumn=!0),d.attrs.showLastColumn==="1"&&(a.showLastColumn=!0),d.attrs.showRowStripes==="1"&&(a.showRowStripes=!0),d.attrs.showColumnStripes==="1"&&(a.showColumnStripes=!0)),a}catch{return null}}function Je(s,t){let e=s.replace(/\/$/,"").split("/");for(let r of t.split("/"))r===".."?e.pop():r!=="."&&e.push(r);return e.join("/")}async function te(s){let t=await qt(s),e=R=>t.get(R)??t.get(R.replace(/^\//,"")),r=R=>{let N=e(R);return N?Tt(N):void 0},o=r("[Content_Types].xml")??"<Types/>",n=Xe(o),i=r("xl/_rels/workbook.xml.rels")??"<Relationships/>",l=Yt(i),c=r("xl/workbook.xml")??"<workbook/>",a=r("xl/styles.xml")??"<styleSheet/>",d=Le(a),m=r("xl/sharedStrings.xml")??"<sst/>",p=m!=="<sst/>"?Ne(m):[],h=r("docProps/core.xml")??"",u=h?Jt(h):{},$=r("docProps/app.xml")??"",x={},y="";if($){let R=Kt($);x=R.props,y=R.unknownRaw}let b=r("docProps/custom.xml")??"",F=b?Qt(b):[],I=U(c),X=q(I,"sheets"),T=X?_(X,"sheet"):[],v=new Map;for(let[R,N]of t)R.includes("_rels/")&&v.set(R,Yt(Tt(N)));let f=[];for(let R of T){let N=R.attrs["r:id"]??Object.values(R.attrs).find(ut=>ut.startsWith("rId"))??"",Z=R.attrs.sheetId??"",j=R.attrs.name??`Sheet${Z}`,A=l.get(N);if(!A)continue;let k=A.target.startsWith("/")?A.target.slice(1):`xl/${A.target}`,M=r(k)??"";if(!M)continue;let{ws:L,originalXml:z,unknownParts:st,tableRIds:ft}=je(M,j,d,p);L.sheetIndex=f.length+1,L.rId=N;let Xt=[];if(ft.length){let ut=k.split("/").pop()??"",Lt=k.substring(0,k.lastIndexOf("/")+1),ee=`${Lt}_rels/${ut}.rels`,Bt=v.get(ee);if(Bt){for(let se of ft){let lt=Bt.get(se);if(!lt)continue;let At=lt.target.startsWith("/")?lt.target.slice(1):Je(Lt,lt.target),_t=r(At);if(_t){let Ot=Ze(_t);Ot&&L.addTable(Ot),Xt.push(At)}}L.tableRIds=ft}}f.push({ws:L,sheetId:Z,rId:N,originalXml:z,unknownParts:st,tablePaths:Xt})}let w=new Set(["xl/workbook.xml","xl/styles.xml","xl/sharedStrings.xml","xl/worksheets/","docProps/","[Content_Types].xml","_rels/","xl/_rels/"]),D=new Map;for(let[R,N]of t){if(R.endsWith("_rels/")||R==="[Content_Types].xml")continue;[...w].some(j=>R.startsWith(j))||D.set(R,N.data)}return{sheets:f,styles:d,stylesXml:a,sharedStrings:p,sharedXml:m,workbookXml:c,workbookRels:l,contentTypes:n,contentTypesXml:o,core:u,extended:x,extendedUnknownRaw:y,custom:F,hasCustomProps:F.length>0,unknownParts:D,allRels:v}}var Dt=class s{constructor(){this.sheets=[],this.namedRanges=[],this.properties={},this.compressionLevel=6,this.coreProperties={},this.extendedProperties={},this.customProperties=[],this._dirtySheets=new Set}markDirty(t){if(typeof t=="string"){let e=this.sheets.findIndex(r=>r.name===t);e>=0&&this._dirtySheets.add(e)}else this._dirtySheets.add(t)}static async fromBytes(t){let e=new s,r=await te(t);return e._readResult=r,e.coreProperties=r.core,e.extendedProperties=r.extended,e.customProperties=r.custom,e.properties={title:r.core.title,author:r.core.creator,subject:r.core.subject,description:r.core.description,keywords:r.core.keywords,company:r.extended.company,lastModifiedBy:r.core.lastModifiedBy,created:r.core.created,modified:r.core.modified,category:r.core.category,status:r.core.contentStatus},e.sheets=r.sheets.map(o=>o.ws),e}static async fromBase64(t){return s.fromBytes(ct(t))}static async fromFile(t){let r=await(await import("fs/promises")).readFile(t);return s.fromBytes(new Uint8Array(r))}static async fromBlob(t){return s.fromBytes(new Uint8Array(await t.arrayBuffer()))}addSheet(t,e={}){let r=new J(t,e);return r.sheetIndex=this.sheets.length+1,this.sheets.push(r),this._dirtySheets.add(r.sheetIndex-1),r}getSheet(t){return this.sheets.find(e=>e.name===t)}getSheetByIndex(t){return this.sheets[t]}getSheetNames(){return this.sheets.map(t=>t.name)}removeSheet(t){return this.sheets=this.sheets.filter(e=>e.name!==t),this}addNamedRange(t){return this.namedRanges.push(t),this}getCustomProperty(t){return this.customProperties.find(e=>e.name===t)}setCustomProperty(t,e){let r=this.customProperties.findIndex(o=>o.name===t);return r>=0?this.customProperties[r]={name:t,value:e}:this.customProperties.push({name:t,value:e}),this}removeCustomProperty(t){return this.customProperties=this.customProperties.filter(e=>e.name!==t),this}async build(){return this._syncLegacyProperties(),this._readResult?this._buildPatched():this._buildFresh()}async _buildPatched(){let t=this._readResult,e=[],r=this._dirtySheets.size>0,o=new Y,n=new tt,i=new Map;if(r)for(let a=0;a<this.sheets.length;a++)i.set(a,this.sheets[a].toXml(o,n));e.push({name:"docProps/core.xml",data:C(Rt({...t.core,...this.coreProperties,modified:new Date}))}),e.push({name:"docProps/app.xml",data:C(St({...t.extended,...this.extendedProperties,titlesOfParts:this.sheets.map(a=>a.name),headingPairs:[{name:"Worksheets",count:this.sheets.length}]},t.extendedUnknownRaw))});let l=this.customProperties.length>0?this.customProperties:t.hasCustomProps?t.custom:null;l&&l.length>0&&e.push({name:"docProps/custom.xml",data:C(Pt(l))}),e.push({name:"xl/workbook.xml",data:C(this._patchWorkbookXml(t.workbookXml))}),r?(e.push({name:"xl/styles.xml",data:C(o.toXml())}),e.push({name:"xl/sharedStrings.xml",data:C(n.toXml())})):(e.push({name:"xl/styles.xml",data:C(t.stylesXml)}),e.push({name:"xl/sharedStrings.xml",data:C(t.sharedXml)}));for(let a=0;a<this.sheets.length;a++){let d=`xl/worksheets/sheet${a+1}.xml`;if(r)e.push({name:d,data:C(i.get(a)??"")});else{let m=t.sheets[a]?.originalXml??"",p=t.sheets[a]?.unknownParts.join(`
191
+ `)??"";e.push({name:d,data:C(p?m.replace("</worksheet>",`${p}</worksheet>`):m)})}}let c=new Set;if(r){for(let a=0;a<this.sheets.length;a++)if(t.sheets[a]?.tablePaths)for(let d of t.sheets[a].tablePaths)c.add(d)}for(let[a,d]of t.unknownParts)c.has(a)||e.push({name:a,data:d});if(r)for(let a=0;a<this.sheets.length;a++){let m=this.sheets[a].getTables(),p=t.sheets[a]?.tablePaths??[];for(let h=0;h<m.length;h++){let u=p[h];if(u){let $=u.match(/table(\d+)\.xml$/),x=$?parseInt($[1],10):h+1;e.push({name:u,data:C(wt(m[h],x))})}}}e.push({name:"_rels/.rels",data:C(this._buildRootRels(l!=null&&l.length>0))}),e.push({name:"xl/_rels/workbook.xml.rels",data:C(this._buildWorkbookRels(t))});for(let[a,d]of t.allRels)a==="xl/_rels/workbook.xml.rels"||a==="_rels/.rels"||e.push({name:a,data:C(this._relsToXml(d))});return e.push({name:"[Content_Types].xml",data:C(this._patchContentTypes(t.contentTypesXml,l!=null&&l.length>0))}),kt(e,{level:this.compressionLevel})}async _buildFresh(){let t=new Y,e=new tt,r=[],o=1;for(let f of this.sheets)f.rId=`rId${o++}`;let n=[],i=[],l=[],c=new Map,a=new Map,d=new Map,m=1,p=1,h=1,u=1;for(let f of this.sheets){let w=f.getImages(),D=f.getCharts(),R=f.getTables(),N=[],Z=[],j=[];(w.length||D.length)&&(f.drawingRId=`rId${o++}`),f.getComments().length&&(f.legacyDrawingRId=`rId${o++}`);for(let A of w){let k=`rId${o++}`;N.push(k),n.push({ws:f,img:A,ext:A.format==="jpeg"?"jpg":A.format,idx:m++})}for(let A=0;A<D.length;A++){let k=`rId${o++}`;Z.push(k),i.push({ws:f,chartIdx:A,globalIdx:p++})}for(let A=0;A<R.length;A++){let k=`rId${o++}`;j.push(k),l.push({ws:f,tableIdx:A,globalTableId:h++})}c.set(f,N),a.set(f,Z),d.set(f,j),f.tableRIds=j}let $=this.customProperties.length>0,x=new Set;for(let{ext:f}of n){let w=f==="jpg"?"image/jpeg":f==="png"?"image/png":`image/${f}`;x.add(`<Default Extension="${f}" ContentType="${w}"/>`)}let y=this.sheets.filter(f=>f.getComments().length),b=y.length?'<Default Extension="vml" ContentType="application/vnd.openxmlformats-officedocument.vmlDrawing"/>':"",F=0,I=y.map(()=>`<Override PartName="/xl/comments${++F}.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"/>`).join("");r.push({name:"[Content_Types].xml",data:C(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
192
192
  <Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
193
193
  <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
194
194
  <Default Extension="xml" ContentType="application/xml"/>
@@ -199,7 +199,7 @@ ${[...x].join("")}
199
199
  <Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/>
200
200
  ${this.sheets.map((f,w)=>`<Override PartName="/xl/worksheets/sheet${w+1}.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>`).join("")}
201
201
  ${this.sheets.filter(f=>f.drawingRId).map((f,w)=>`<Override PartName="/xl/drawings/drawing${w+1}.xml" ContentType="application/vnd.openxmlformats-officedocument.drawing+xml"/>`).join("")}
202
- ${n.map(({globalIdx:f})=>`<Override PartName="/xl/charts/chart${f}.xml" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>`).join("")}
202
+ ${i.map(({globalIdx:f})=>`<Override PartName="/xl/charts/chart${f}.xml" ContentType="application/vnd.openxmlformats-officedocument.drawingml.chart+xml"/>`).join("")}
203
203
  ${l.map(({globalTableId:f})=>`<Override PartName="/xl/tables/table${f}.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"/>`).join("")}
204
204
  ${I}
205
205
  <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>
@@ -217,15 +217,15 @@ ${X}
217
217
  <sheets>${this.sheets.map((f,w)=>`<sheet name="${g(f.name)}" sheetId="${w+1}" r:id="${f.rId}"${f.options?.state&&f.options.state!=="visible"?` state="${f.options.state}"`:""}/>`).join("")}</sheets>
218
218
  ${T}
219
219
  <calcPr calcId="191028"/>
220
- </workbook>`)});for(let f=0;f<this.sheets.length;f++){let w=this.sheets[f],D=c.get(w)??[],R=a.get(w)??[],N=l.filter(k=>k.ws===w),Z=d.get(w)??[];r.push({name:`xl/worksheets/sheet${f+1}.xml`,data:C(w.toXml(t,e))});let j=[];if(w.drawingRId){let k=this.sheets.filter((M,L)=>L<=f&&M.drawingRId).length;j.push(`<Relationship Id="${w.drawingRId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing${k}.xml"/>`)}for(let k=0;k<w.getImages().length;k++){let M=i.filter(L=>L.ws===w)[k];M&&j.push(`<Relationship Id="${D[k]}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image${M.idx}.${M.ext}"/>`)}for(let k=0;k<N.length;k++)j.push(`<Relationship Id="${Z[k]}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" Target="../tables/table${N[k].globalTableId}.xml"/>`);let A=w.getComments();if(A.length&&w.legacyDrawingRId){let k=u++,M=`rId${o++}`;j.push(`<Relationship Id="${w.legacyDrawingRId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing" Target="../drawings/vmlDrawing${k}.vml"/>`),j.push(`<Relationship Id="${M}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" Target="../comments${k}.xml"/>`),r.push({name:`xl/comments${k}.xml`,data:C(this._buildCommentsXml(A))}),r.push({name:`xl/drawings/vmlDrawing${k}.vml`,data:C(this._buildVmlXml(A,f))})}if(j.length&&r.push({name:`xl/worksheets/_rels/sheet${f+1}.xml.rels`,data:C(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
220
+ </workbook>`)});for(let f=0;f<this.sheets.length;f++){let w=this.sheets[f],D=c.get(w)??[],R=a.get(w)??[],N=l.filter(k=>k.ws===w),Z=d.get(w)??[];r.push({name:`xl/worksheets/sheet${f+1}.xml`,data:C(w.toXml(t,e))});let j=[];if(w.drawingRId){let k=this.sheets.filter((M,L)=>L<=f&&M.drawingRId).length;j.push(`<Relationship Id="${w.drawingRId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing${k}.xml"/>`)}for(let k=0;k<w.getImages().length;k++){let M=n.filter(L=>L.ws===w)[k];M&&j.push(`<Relationship Id="${D[k]}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image${M.idx}.${M.ext}"/>`)}for(let k=0;k<N.length;k++)j.push(`<Relationship Id="${Z[k]}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/table" Target="../tables/table${N[k].globalTableId}.xml"/>`);let A=w.getComments();if(A.length&&w.legacyDrawingRId){let k=u++,M=`rId${o++}`;j.push(`<Relationship Id="${w.legacyDrawingRId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing" Target="../drawings/vmlDrawing${k}.vml"/>`),j.push(`<Relationship Id="${M}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" Target="../comments${k}.xml"/>`),r.push({name:`xl/comments${k}.xml`,data:C(this._buildCommentsXml(A))}),r.push({name:`xl/drawings/vmlDrawing${k}.vml`,data:C(this._buildVmlXml(A,f))})}if(j.length&&r.push({name:`xl/worksheets/_rels/sheet${f+1}.xml.rels`,data:C(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
221
221
  <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
222
222
  ${j.join(`
223
223
  `)}
224
- </Relationships>`)}),w.drawingRId){let k=this.sheets.filter((L,z)=>z<=f&&L.drawingRId).length;r.push({name:`xl/drawings/drawing${k}.xml`,data:C(w.toDrawingXml(D,R))});let M=[];for(let L=0;L<w.getImages().length;L++){let z=i.filter(st=>st.ws===w)[L];z&&M.push(`<Relationship Id="${D[L]}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image${z.idx}.${z.ext}"/>`)}for(let L=0;L<w.getCharts().length;L++){let z=n.filter(st=>st.ws===w)[L];z&&M.push(`<Relationship Id="${R[L]}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" Target="../charts/chart${z.globalIdx}.xml"/>`)}M.length&&r.push({name:`xl/drawings/_rels/drawing${k}.xml.rels`,data:C(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
224
+ </Relationships>`)}),w.drawingRId){let k=this.sheets.filter((L,z)=>z<=f&&L.drawingRId).length;r.push({name:`xl/drawings/drawing${k}.xml`,data:C(w.toDrawingXml(D,R))});let M=[];for(let L=0;L<w.getImages().length;L++){let z=n.filter(st=>st.ws===w)[L];z&&M.push(`<Relationship Id="${D[L]}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="../media/image${z.idx}.${z.ext}"/>`)}for(let L=0;L<w.getCharts().length;L++){let z=i.filter(st=>st.ws===w)[L];z&&M.push(`<Relationship Id="${R[L]}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart" Target="../charts/chart${z.globalIdx}.xml"/>`)}M.length&&r.push({name:`xl/drawings/_rels/drawing${k}.xml.rels`,data:C(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
225
225
  <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
226
226
  ${M.join(`
227
227
  `)}
228
- </Relationships>`)})}}for(let{img:f,ext:w,idx:D}of i)r.push({name:`xl/media/image${D}.${w}`,data:typeof f.data=="string"?ct(f.data):f.data});for(let{ws:f,chartIdx:w,globalIdx:D}of n)r.push({name:`xl/charts/chart${D}.xml`,data:C(Mt(f.getCharts()[w]))});for(let{ws:f,tableIdx:w,globalTableId:D}of l)r.push({name:`xl/tables/table${D}.xml`,data:C(wt(f.getTables()[w],D))});r.push({name:"xl/styles.xml",data:C(t.toXml())}),r.push({name:"xl/sharedStrings.xml",data:C(e.toXml())});let v={...this.coreProperties,created:this.coreProperties.created??new Date,modified:new Date};return!v.creator&&this.properties.author&&(v.creator=this.properties.author),r.push({name:"docProps/core.xml",data:C(Rt(v))}),r.push({name:"docProps/app.xml",data:C(St({...this.extendedProperties,application:this.extendedProperties.application??"ExcelForge",company:this.extendedProperties.company??this.properties.company,titlesOfParts:this.sheets.map(f=>f.name),headingPairs:[{name:"Worksheets",count:this.sheets.length}]}))}),$&&r.push({name:"docProps/custom.xml",data:C(Pt(this.customProperties))}),kt(r,{level:this.compressionLevel})}_syncLegacyProperties(){let t=this.properties;t.title&&(this.coreProperties.title??=t.title),t.author&&(this.coreProperties.creator??=t.author),t.subject&&(this.coreProperties.subject??=t.subject),t.description&&(this.coreProperties.description??=t.description),t.keywords&&(this.coreProperties.keywords??=t.keywords),t.company&&(this.extendedProperties.company??=t.company),t.lastModifiedBy&&(this.coreProperties.lastModifiedBy??=t.lastModifiedBy),t.created&&(this.coreProperties.created??=t.created),t.category&&(this.coreProperties.category??=t.category),t.status&&(this.coreProperties.contentStatus??=t.status)}_patchWorkbookXml(t){let e=t;for(let r=0;r<this.sheets.length;r++)e=e.replace(new RegExp(`(<sheet[^>]+sheetId="${r+1}"[^>]+)name="[^"]*"`),`$1name="${g(this.sheets[r].name)}"`);return e}_buildWorkbookRels(t){let e=[...t.workbookRels.entries()].map(([r,o])=>`<Relationship Id="${r}" Type="${o.type}" Target="${o.target}"/>`);return[...t.workbookRels.values()].some(r=>r.type.includes("/styles"))||e.push('<Relationship Id="rIdStyles" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>'),[...t.workbookRels.values()].some(r=>r.type.includes("/sharedStrings"))||e.push('<Relationship Id="rIdShared" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/>'),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
228
+ </Relationships>`)})}}for(let{img:f,ext:w,idx:D}of n)r.push({name:`xl/media/image${D}.${w}`,data:typeof f.data=="string"?ct(f.data):f.data});for(let{ws:f,chartIdx:w,globalIdx:D}of i)r.push({name:`xl/charts/chart${D}.xml`,data:C(Mt(f.getCharts()[w]))});for(let{ws:f,tableIdx:w,globalTableId:D}of l)r.push({name:`xl/tables/table${D}.xml`,data:C(wt(f.getTables()[w],D))});r.push({name:"xl/styles.xml",data:C(t.toXml())}),r.push({name:"xl/sharedStrings.xml",data:C(e.toXml())});let v={...this.coreProperties,created:this.coreProperties.created??new Date,modified:new Date};return!v.creator&&this.properties.author&&(v.creator=this.properties.author),r.push({name:"docProps/core.xml",data:C(Rt(v))}),r.push({name:"docProps/app.xml",data:C(St({...this.extendedProperties,application:this.extendedProperties.application??"ExcelForge",company:this.extendedProperties.company??this.properties.company,titlesOfParts:this.sheets.map(f=>f.name),headingPairs:[{name:"Worksheets",count:this.sheets.length}]}))}),$&&r.push({name:"docProps/custom.xml",data:C(Pt(this.customProperties))}),kt(r,{level:this.compressionLevel})}_syncLegacyProperties(){let t=this.properties;t.title&&(this.coreProperties.title??=t.title),t.author&&(this.coreProperties.creator??=t.author),t.subject&&(this.coreProperties.subject??=t.subject),t.description&&(this.coreProperties.description??=t.description),t.keywords&&(this.coreProperties.keywords??=t.keywords),t.company&&(this.extendedProperties.company??=t.company),t.lastModifiedBy&&(this.coreProperties.lastModifiedBy??=t.lastModifiedBy),t.created&&(this.coreProperties.created??=t.created),t.category&&(this.coreProperties.category??=t.category),t.status&&(this.coreProperties.contentStatus??=t.status)}_patchWorkbookXml(t){let e=t;for(let r=0;r<this.sheets.length;r++)e=e.replace(new RegExp(`(<sheet[^>]+sheetId="${r+1}"[^>]+)name="[^"]*"`),`$1name="${g(this.sheets[r].name)}"`);return e}_buildWorkbookRels(t){let e=[...t.workbookRels.entries()].map(([r,o])=>`<Relationship Id="${r}" Type="${o.type}" Target="${o.target}"/>`);return[...t.workbookRels.values()].some(r=>r.type.includes("/styles"))||e.push('<Relationship Id="rIdStyles" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>'),[...t.workbookRels.values()].some(r=>r.type.includes("/sharedStrings"))||e.push('<Relationship Id="rIdShared" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/>'),`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
229
229
  <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
230
230
  ${e.join(`
231
231
  `)}
@@ -241,19 +241,19 @@ ${[...t.entries()].map(([e,r])=>`<Relationship Id="${e}" Type="${r.type}" Target
241
241
  ${t?'<Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties" Target="docProps/custom.xml"/>':""}
242
242
  </Relationships>`}_patchContentTypes(t,e){let r=t;return r.includes("sharedStrings")||(r=r.replace("</Types>",`<Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/>
243
243
  </Types>`)),e&&!r.includes("custom-properties")&&(r=r.replace("</Types>",`<Override PartName="/docProps/custom.xml" ContentType="application/vnd.openxmlformats-officedocument.custom-properties+xml"/>
244
- </Types>`)),r}async buildBase64(){let t=await this.build(),e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}async writeFile(t){let e=await this.build();await(await import("fs/promises")).writeFile(t,e)}_buildCommentsXml(t){let e=[...new Set(t.map(i=>i.comment.author??""))],r=e.map(i=>`<author>${g(i)}</author>`).join(""),o=t.map(({row:i,col:n,comment:l})=>{let c=`${W(n)}${i}`,a=e.indexOf(l.author??"");return`<comment ref="${c}" authorId="${a}"><text><r><t>${g(l.text)}</t></r></text></comment>`}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
244
+ </Types>`)),r}async buildBase64(){let t=await this.build(),e="";for(let r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return btoa(e)}async writeFile(t){let e=await this.build();await(await import("fs/promises")).writeFile(t,e)}_buildCommentsXml(t){let e=[...new Set(t.map(n=>n.comment.author??""))],r=e.map(n=>`<author>${g(n)}</author>`).join(""),o=t.map(({row:n,col:i,comment:l})=>{let c=`${W(i)}${n}`,a=e.indexOf(l.author??"");return`<comment ref="${c}" authorId="${a}"><text><r><t>${g(l.text)}</t></r></text></comment>`}).join("");return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
245
245
  <comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
246
246
  <authors>${r}</authors>
247
247
  <commentList>${o}</commentList>
248
248
  </comments>`}_buildVmlXml(t,e){return`<xml xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel">
249
249
  <o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1"/></o:shapelayout>
250
250
  <v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe"><v:stroke joinstyle="miter"/><v:path gradientshapeok="t" o:connecttype="rect"/></v:shapetype>
251
- ${t.map(({row:o,col:i},n)=>{let l=(i+1)*64,c=(o-1)*20;return`<v:shape id="_x0000_s${1025+e*1e3+n}" type="#_x0000_t202" style="position:absolute;margin-left:${l}pt;margin-top:${c}pt;width:108pt;height:59.25pt;z-index:${n+1};visibility:hidden" fillcolor="#ffffe1" o:insetmode="auto">
251
+ ${t.map(({row:o,col:n},i)=>{let l=(n+1)*64,c=(o-1)*20;return`<v:shape id="_x0000_s${1025+e*1e3+i}" type="#_x0000_t202" style="position:absolute;margin-left:${l}pt;margin-top:${c}pt;width:108pt;height:59.25pt;z-index:${i+1};visibility:hidden" fillcolor="#ffffe1" o:insetmode="auto">
252
252
  <v:fill color2="#ffffe1"/>
253
253
  <v:shadow color="black" obscured="t"/>
254
254
  <v:path o:connecttype="none"/>
255
255
  <v:textbox style="mso-direction-alt:auto"><div style="text-align:left"/></v:textbox>
256
- <x:ClientData ObjectType="Note"><x:MoveWithCells/><x:SizeWithCells/><x:Anchor>${i+1},15,${o-1},10,${i+3},15,${o+4},4</x:Anchor><x:AutoFill>False</x:AutoFill><x:Row>${o-1}</x:Row><x:Column>${i-1}</x:Column></x:ClientData>
256
+ <x:ClientData ObjectType="Note"><x:MoveWithCells/><x:SizeWithCells/><x:Anchor>${n+1},15,${o-1},10,${n+3},15,${o+4},4</x:Anchor><x:AutoFill>False</x:AutoFill><x:Row>${o-1}</x:Row><x:Column>${n-1}</x:Column></x:ClientData>
257
257
  </v:shape>`}).join(`
258
258
  `)}
259
- </xml>`}async download(t="workbook.xlsx"){let e=await this.build(),r=new Blob([e.buffer],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),o=URL.createObjectURL(r),i=document.createElement("a");i.href=o,i.download=t,i.click(),URL.revokeObjectURL(o)}};var pt=class{constructor(){this.s={}}font(t){return this.s.font={...this.s.font??{},...t},this}fontSize(t){return this.font({size:t})}fontName(t){return this.font({name:t})}bold(t=!0){return this.font({bold:t})}italic(t=!0){return this.font({italic:t})}strike(t=!0){return this.font({strike:t})}underline(t="single"){return this.font({underline:t})}fontColor(t){return this.font({color:t})}fill(t,e,r){return this.s.fill={type:"pattern",pattern:t,fgColor:e,bgColor:r},this}bg(t){return this.fill("solid",t)}border(t,e){let r={style:t,color:e};return this.s.border={left:r,right:r,top:r,bottom:r},this}borderLeft(t,e){return this.s.border={...this.s.border??{},left:{style:t,color:e}},this}borderRight(t,e){return this.s.border={...this.s.border??{},right:{style:t,color:e}},this}borderTop(t,e){return this.s.border={...this.s.border??{},top:{style:t,color:e}},this}borderBottom(t,e){return this.s.border={...this.s.border??{},bottom:{style:t,color:e}},this}align(t,e){return this.s.alignment={...this.s.alignment??{},horizontal:t,vertical:e},this}center(){return this.align("center","center")}wrap(t=!0){return this.s.alignment={...this.s.alignment??{},wrapText:t},this}rotate(t){return this.s.alignment={...this.s.alignment??{},textRotation:t},this}indent(t){return this.s.alignment={...this.s.alignment??{},indent:t},this}shrink(t=!0){return this.s.alignment={...this.s.alignment??{},shrinkToFit:t},this}numFmt(t){return this.s.numberFormat={formatCode:t},this}numFmtId(t){return this.s.numFmtId=t,this}locked(t=!0){return this.s.locked=t,this}hidden(t=!0){return this.s.hidden=t,this}build(){return{...this.s}}};function B(){return new pt}var Ke={headerBlue:B().bold().bg("FF4472C4").fontColor("FFFFFFFF").center().build(),headerGray:B().bold().bg("FF595959").fontColor("FFFFFFFF").center().build(),headerGreen:B().bold().bg("FF70AD47").fontColor("FFFFFFFF").center().build(),currency:B().numFmt('"$"#,##0.00').build(),percent:B().numFmt("0.00%").build(),integer:B().numFmt("#,##0").build(),date:B().numFmtId(14).build(),dateTime:B().numFmtId(22).build(),bold:B().bold().build(),centered:B().center().build(),wrapped:B().wrap().build(),bordered:B().border("thin").build(),borderedBlack:B().border("thin","FF000000").build(),highlight:B().bg("FFFFFF00").build(),lightBlue:B().bg("FFDCE6F1").build(),redText:B().fontColor("FFFF0000").build(),blueText:B().fontColor("FF0000FF").build(),greenText:B().fontColor("FF00B050").build(),tableHeader:B().bold().border("thin").center().bg("FFD9E1F2").build(),deleted:B().strike().fontColor("FF808080").build()},Qe={General:"General",Integer:"#,##0",Decimal2:"#,##0.00",Currency:'"$"#,##0.00',CurrencyNeg:'"$"#,##0.00;[Red]("$"#,##0.00)',Percent:"0%",Percent2:"0.00%",Scientific:"0.00E+00",Fraction:"# ?/?",ShortDate:"mm/dd/yyyy",LongDate:"mmmm d, yyyy",Time:"h:mm AM/PM",DateTime:"mm/dd/yyyy h:mm",Text:"@",Accounting:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',FinancialPos:"#,##0;(#,##0)",ZeroDash:'#,##0;(#,##0);"-"',Multiple:'0.0"x"'},Ye={White:"FFFFFFFF",Black:"FF000000",Red:"FFFF0000",Green:"FF00B050",Blue:"FF0070C0",Yellow:"FFFFFF00",Orange:"FFFFA500",Gray:"FF808080",LightGray:"FFD3D3D3",DarkBlue:"FF003366",ExcelBlue:"FF4472C4",ExcelOrange:"FFED7D31",ExcelGreen:"FF70AD47",ExcelRed:"FFFF0000",ExcelPurple:"FF7030A0",Transparent:"00FFFFFF"};export{Ye as Colors,Qe as NumFmt,tt as SharedStrings,pt as StyleBuilder,Y as StyleRegistry,Ke as Styles,Dt as Workbook,J as Worksheet,ct as base64ToBytes,oe as bytesToBase64,H as cellRefToIndices,W as colIndexToLetter,Nt as colLetterToIndex,gt as dateToSerial,rt as indicesToCellRef,ot as parseRange,xt as pxToEmu,B as style};
259
+ </xml>`}async download(t="workbook.xlsx"){let e=await this.build(),r=new Blob([e.buffer],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),o=URL.createObjectURL(r),n=document.createElement("a");n.href=o,n.download=t,n.click(),URL.revokeObjectURL(o)}};var pt=class{constructor(){this.s={}}font(t){return this.s.font={...this.s.font??{},...t},this}fontSize(t){return this.font({size:t})}fontName(t){return this.font({name:t})}bold(t=!0){return this.font({bold:t})}italic(t=!0){return this.font({italic:t})}strike(t=!0){return this.font({strike:t})}underline(t="single"){return this.font({underline:t})}fontColor(t){return this.font({color:t})}fill(t,e,r){return this.s.fill={type:"pattern",pattern:t,fgColor:e,bgColor:r},this}bg(t){return this.fill("solid",t)}border(t,e){let r={style:t,color:e};return this.s.border={left:r,right:r,top:r,bottom:r},this}borderLeft(t,e){return this.s.border={...this.s.border??{},left:{style:t,color:e}},this}borderRight(t,e){return this.s.border={...this.s.border??{},right:{style:t,color:e}},this}borderTop(t,e){return this.s.border={...this.s.border??{},top:{style:t,color:e}},this}borderBottom(t,e){return this.s.border={...this.s.border??{},bottom:{style:t,color:e}},this}align(t,e){return this.s.alignment={...this.s.alignment??{},horizontal:t,vertical:e},this}center(){return this.align("center","center")}wrap(t=!0){return this.s.alignment={...this.s.alignment??{},wrapText:t},this}rotate(t){return this.s.alignment={...this.s.alignment??{},textRotation:t},this}indent(t){return this.s.alignment={...this.s.alignment??{},indent:t},this}shrink(t=!0){return this.s.alignment={...this.s.alignment??{},shrinkToFit:t},this}numFmt(t){return this.s.numberFormat={formatCode:t},this}numFmtId(t){return this.s.numFmtId=t,this}locked(t=!0){return this.s.locked=t,this}hidden(t=!0){return this.s.hidden=t,this}build(){return{...this.s}}};function B(){return new pt}var Ke={headerBlue:B().bold().bg("FF4472C4").fontColor("FFFFFFFF").center().build(),headerGray:B().bold().bg("FF595959").fontColor("FFFFFFFF").center().build(),headerGreen:B().bold().bg("FF70AD47").fontColor("FFFFFFFF").center().build(),currency:B().numFmt('"$"#,##0.00').build(),percent:B().numFmt("0.00%").build(),integer:B().numFmt("#,##0").build(),date:B().numFmtId(14).build(),dateTime:B().numFmtId(22).build(),bold:B().bold().build(),centered:B().center().build(),wrapped:B().wrap().build(),bordered:B().border("thin").build(),borderedBlack:B().border("thin","FF000000").build(),highlight:B().bg("FFFFFF00").build(),lightBlue:B().bg("FFDCE6F1").build(),redText:B().fontColor("FFFF0000").build(),blueText:B().fontColor("FF0000FF").build(),greenText:B().fontColor("FF00B050").build(),tableHeader:B().bold().border("thin").center().bg("FFD9E1F2").build(),deleted:B().strike().fontColor("FF808080").build()},Qe={General:"General",Integer:"#,##0",Decimal2:"#,##0.00",Currency:'"$"#,##0.00',CurrencyNeg:'"$"#,##0.00;[Red]("$"#,##0.00)',Percent:"0%",Percent2:"0.00%",Scientific:"0.00E+00",Fraction:"# ?/?",ShortDate:"mm/dd/yyyy",LongDate:"mmmm d, yyyy",Time:"h:mm AM/PM",DateTime:"mm/dd/yyyy h:mm",Text:"@",Accounting:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',FinancialPos:"#,##0;(#,##0)",ZeroDash:'#,##0;(#,##0);"-"',Multiple:'0.0"x"'},Ye={White:"FFFFFFFF",Black:"FF000000",Red:"FFFF0000",Green:"FF00B050",Blue:"FF0070C0",Yellow:"FFFFFF00",Orange:"FFFFA500",Gray:"FF808080",LightGray:"FFD3D3D3",DarkBlue:"FF003366",ExcelBlue:"FF4472C4",ExcelOrange:"FFED7D31",ExcelGreen:"FF70AD47",ExcelRed:"FFFF0000",ExcelPurple:"FF7030A0",Transparent:"00FFFFFF"};export{Ye as Colors,Qe as NumFmt,tt as SharedStrings,pt as StyleBuilder,Y as StyleRegistry,Ke as Styles,Dt as Workbook,J as Worksheet,ct as base64ToBytes,oe as bytesToBase64,H as cellRefToIndices,W as colIndexToLetter,Nt as colLetterToIndex,gt as dateToSerial,rt as indicesToCellRef,ot as parseRange,xt as pxToEmu,B as style};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-projects/excelforge",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "A **complete TypeScript library** for reading and writing Excel `.xlsx` files with **zero external dependencies**. Works in browsers, Node.js, Deno, Bun, and edge runtimes.",
5
5
  "homepage": "https://github.com/node-projects/excelForge#readme",
6
6
  "bugs": {