documonster 0.13.0 → 0.13.1

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * documonster v0.13.0
2
+ * documonster v0.13.1
3
3
  * Zero-dependency TypeScript toolkit for Excel, Word, PDF, CSV, Markdown, XML & ZIP — one API across Node.js, Bun & browsers.
4
4
  * (c) 2025 cjnoname
5
5
  * Released under the Apache-2.0 License
@@ -9,7 +9,7 @@
9
9
  `||t===`\r`)r++;else break}r<i&&o()&&s(e[r])&&t.push({type:24});continue}if(n===`"`){r++;let n=r,a=!1,o=-1;for(;r<i;){if(e[r]===`"`){if(r+1<i&&e[r+1]===`"`){o=r;break}a=!0;break}r++}let s;if(o!==-1)for(s=e.slice(n,o),r=o;r<i;)if(e[r]===`"`){if(r+1<i&&e[r+1]===`"`)s+=`"`,r+=2;else{r++,a=!0;break}}else s+=e[r],r++;else a?(s=e.slice(n,r),r++):s=e.slice(n,r);if(!a)throw new Qe(`Unterminated string literal`,r);t.push({type:2,value:s});continue}if(n===`#`){let n=ft(e,r);if(n){t.push({type:4,value:n.value}),r=n.end;continue}for(r++;r<i&&e[r]!==` `&&e[r]!==`,`&&e[r]!==`)`&&e[r]!==`+`&&e[r]!==`-`&&e[r]!==`*`&&e[r]!==`/`&&e[r]!==`^`&&e[r]!==`&`&&e[r]!==`=`&&e[r]!==`<`&&e[r]!==`>`&&e[r]!==`}`;)r++;t.push({type:4,value:`#NAME?`});continue}if(n===`[`&&!a()){let n=dt(e,r+1,i),a=n<i?e[n]:``;if(a!==`@`&&a!==`#`&&a!==`[`){let n=r+1,a=!1;for(;n<i;){if(e[n]===`]`){a=!0,n++;break}n++}let o=!1;if(a&&n<i){let t=n;if(e[t]===`'`){for(t++;t<i;)if(e[t]===`'`){if(t+1<i&&e[t+1]===`'`)t+=2;else{t++;break}}else t++;t<i&&e[t]===`!`&&(o=!0)}else{let n=t;for(;t<i&&(ct(e[t])||e[t]===`$`);)t++;t>n&&t<i&&e[t]===`!`&&(o=!0)}}if(o){for(r=n;r<i&&e[r]!==`+`&&e[r]!==`-`&&e[r]!==`*`&&e[r]!==`/`&&e[r]!==`^`&&e[r]!==`&`&&e[r]!==`=`&&e[r]!==`<`&&e[r]!==`>`&&e[r]!==`)`&&e[r]!==`,`&&e[r]!==` `&&e[r]!==`}`&&e[r]!==`:`&&e[r]!==`%`&&e[r]!==`;`&&e[r]!==`{`;)r++;if(r<i&&e[r]===`:`){let t=r+1;t<i&&e[t]===`$`&&t++;let n=t;for(;t<i&&lt(e[t]);)t++;if(t>n){t<i&&e[t]===`$`&&t++;let n=t;for(;t<i&&ot(e[t]);)t++;t>n&&(r=t)}}t.push({type:4,value:`#REF!`});continue}}}if(n===`{`){t.push({type:15}),r++;continue}if(n===`}`){t.push({type:16}),r++;continue}if(n===`;`){t.push({type:17}),r++;continue}if(ot(n)||n===`.`&&r+1<i&&ot(e[r+1])){let n=r;for(;r<i&&ot(e[r]);)r++;if(r>n&&e[n]!==`.`&&r<i&&e[r]===`:`){let a=e.slice(n,r),o=parseInt(a,10);if(o>=1&&o<=1048576){let n=r;r++;let o=r;r<i&&e[r]===`$`&&r++;let s=r;for(;r<i&&ot(e[r]);)r++;if(r>s){let n=e.slice(s,r),i=parseInt(n,10);if(i>=1&&i<=1048576){t.push({type:21,value:a+`:`+e.slice(o,r)});continue}}r=n}}if(r<i&&e[r]===`.`&&r+1<i&&ot(e[r+1]))for(r++;r<i&&ot(e[r]);)r++;if(r<i&&(e[r]===`E`||e[r]===`e`)){let t=r,n=r+1;if(n<i&&(e[n]===`+`||e[n]===`-`)&&n++,n<i&&ot(e[n]))for(r=n;r<i&&ot(e[r]);)r++;else r=t}t.push({type:1,value:e.slice(n,r)});continue}if(n===`'`){r++;let n=r,a=-1;for(;r<i;){if(e[r]===`'`){if(r+1<i&&e[r+1]===`'`){a=r;break}break}r++}let o;if(a!==-1)for(o=e.slice(n,a),r=a;r<i;)if(e[r]===`'`){if(r+1<i&&e[r+1]===`'`)o+=`'`,r+=2;else{r++;break}}else o+=e[r],r++;else o=e.slice(n,r),r<i&&e[r]===`'`&&r++;r<i&&e[r]===`!`&&r++;let s=o.indexOf(`:`);if(s>0&&s<o.length-1){let e=o.slice(0,s),n=o.slice(s+1);t.push({type:7,sheetName:e,endSheetName:n})}else t.push({type:7,sheetName:o});continue}if(n===`[`){let n=mt(e,r);t.push({type:22,tableName:``,columns:n.columns,specials:n.specials}),r=n.end;continue}if(st(n)||n===`$`||n===`_`){let n=r;for(;r<i&&(ct(e[r])||e[r]===`$`);)r++;let a=e.slice(n,r);if(r<i&&e[r]===`!`){r++,t.push({type:7,sheetName:a});continue}if(r<i&&e[r]===`:`){let n=r,o=r+1;for(;o<i&&(ct(e[o])||e[o]===`$`);)o++;if(o>n+1&&o<i&&e[o]===`!`){let s=e.slice(n+1,o),c=o+1;if(c<i&&ut(e,c)){r=c,t.push({type:7,sheetName:a,endSheetName:s});continue}}}if(r<i&&e[r]===`[`){let n=mt(e,r);t.push({type:22,tableName:a,columns:n.columns,specials:n.specials}),r=n.end;continue}if(r<i&&e[r]===`(`){t.push({type:8,name:a.toUpperCase()});continue}let o=a.toUpperCase();if(o===`TRUE`||o===`FALSE`){t.push({type:3,value:o});continue}let s=pt(a);if(s){let n={type:5,col:s.col,row:s.row,colAbsolute:s.colAbsolute,rowAbsolute:s.rowAbsolute};if(t.push(n),r<i&&e[r]===`:`){let n=r;r++;let a=r;for(;r<i&&(ct(e[r])||e[r]===`$`);)r++;let o=pt(e.slice(a,r));o?t[t.length-1]={type:6,value:(s.colAbsolute?`$`:``)+s.col+(s.rowAbsolute?`$`:``)+s.row+`:`+(o.colAbsolute?`$`:``)+o.col+(o.rowAbsolute?`$`:``)+o.row}:r=n}continue}if(r<i&&e[r]===`:`){let n=/^(\$?)([A-Za-z]{1,3})$/.exec(a);if(n){let a=n[1]===`$`,o=n[2].toUpperCase();if(o.length<=3&&(o.length<3||o<=`XFD`)){let n=r;r++;let s=r;r<i&&e[r]===`$`&&r++;let c=r;for(;r<i&&lt(e[r]);)r++;let l=r;if(!(r<i&&ot(e[r]))&&l>c){let n=e.slice(s,r),i=/^(\$?)([A-Za-z]{1,3})$/.exec(n);if(i){let e=i[2].toUpperCase();if(e.length<=3&&(e.length<3||e<=`XFD`)){t.push({type:20,value:(a?`$`:``)+o+`:`+n.toUpperCase()});continue}}}r=n}}let o=/^(\$)(\d+)$/.exec(a);if(o){let n=parseInt(o[2],10);if(n>=1&&n<=1048576){let n=r;r++;let o=r;r<i&&e[r]===`$`&&r++;let s=r;for(;r<i&&ot(e[r]);)r++;if(r>s){let n=parseInt(e.slice(s,r),10);if(n>=1&&n<=1048576){t.push({type:21,value:a+`:`+e.slice(o,r)});continue}}r=n}}}t.push({type:19,value:a});continue}if(n===`(`){t.push({type:10}),r++;continue}if(n===`)`){t.push({type:11}),r++;continue}if(n===`,`){t.push({type:12}),r++;continue}if(n===`:`){t.push({type:13}),r++;continue}if(n===`%`){t.push({type:14}),r++;continue}if(n===`<`){if(r+1<i&&e[r+1]===`=`){t.push({type:9,value:`<=`}),r+=2;continue}if(r+1<i&&e[r+1]===`>`){t.push({type:9,value:`<>`}),r+=2;continue}t.push({type:9,value:`<`}),r++;continue}if(n===`>`){if(r+1<i&&e[r+1]===`=`){t.push({type:9,value:`>=`}),r+=2;continue}t.push({type:9,value:`>`}),r++;continue}if(n===`=`){t.push({type:9,value:`=`}),r++;continue}if(n===`&`){t.push({type:9,value:`&`}),r++;continue}if(n===`^`){t.push({type:9,value:`^`}),r++;continue}if(n===`*`){t.push({type:9,value:`*`}),r++;continue}if(n===`/`){t.push({type:9,value:`/`}),r++;continue}if(n===`+`||n===`-`){a()?t.push({type:9,value:n}):t.push({type:18,value:n}),r++;continue}if(n===`@`){t.push({type:23}),r++;continue}r++}return t}var _t,vt,yt,bt=n((()=>{$e(),_t=/\p{L}/u,vt=[`#GETTING_DATA`,`#BLOCKED!`,`#CONNECT!`,`#UNKNOWN!`,`#SPILL!`,`#VALUE!`,`#FIELD!`,`#DIV/0!`,`#NAME?`,`#NULL!`,`#CALC!`,`#BUSY!`,`#REF!`,`#NUM!`,`#N/A`].sort((e,t)=>t.length-e.length),yt=new Set([`#All`,`#Data`,`#Headers`,`#Totals`,`#This Row`])}));function xt(e){try{let t=gt(e);return t.length!==0&&(rt(t),!0)}catch{return!1}}function St(e){if(e.startsWith(`{`)||e.endsWith(`}`))return!1;let t=e.split(`!`).pop()??``;if(!Ut.test(t)&&!Wt.test(t)&&!Gt.test(t))return!1;try{let t=D.decodeEx(e);return`row`in t&&typeof t.row==`number`||`top`in t&&typeof t.top==`number`||`left`in t&&typeof t.left==`number`}catch{return!1}}function Ct(e){let t=e.trim();if(t.startsWith(`{`)&&t.endsWith(`}`))return[];let n=[],r=!1,i=``;return e.split(`,`).forEach(e=>{if(!e)return;let t=(e.match(/'/g)??[]).length;if(!t){r?i+=`${e},`:St(e)&&n.push(e);return}let a=t%2==0;!r&&a&&St(e)?n.push(e):r&&!a?(r=!1,St(i+e)&&n.push(i+e),i=``):(r=!0,i+=`${e},`)}),n}function wt(e){let t=!1;for(let n=0;n<e.length;n++){let r=e[n];if(r===`'`)t=!t;else if(r===`(`&&!t)return!0}return!1}function Tt(e,t,n){if(e===void 0)return t.length>0?{kind:`reference`,ranges:t}:{kind:`opaque`,ranges:[]};let r=e.trim();if(r.length===0)return{kind:`opaque`,ranges:[]};let i=r.startsWith(`{`)&&r.endsWith(`}`),a=r.startsWith(`"`)&&r.endsWith(`"`),o=r.startsWith(`#`),s=i||a||o;if(wt(r)&&!s)return n&&n(r)?{kind:`formula`,ranges:[r],formulaExpression:r}:{kind:`opaque`,ranges:[]};let c=Ct(e);return c.length>0?{kind:`reference`,ranges:c}:s?{kind:`opaque`,ranges:[]}:n&&n(r)?{kind:`formula`,ranges:[r],formulaExpression:r}:{kind:`opaque`,ranges:[]}}function Et(e,t){return t===void 0?e:`${e}\0${t}`}function Dt(e){return{matrixMap:{},formulaMap:{},localSheetIdMap:{},hiddenMap:{},opaqueMap:{},nameForKey:{},_explicitProbe:e??null}}function Ot(e,t){return e.matrixMap[t]||(e.matrixMap[t]=new Ye)}function kt(e,t,n){let r=D.decodeEx(t);`error`in r||(delete e.formulaMap[n],delete e.opaqueMap[n],e.nameForKey[n]=n,jt(e,r,n))}function At(e,t,n){kt(e,t,n),e.hiddenMap[n]=!0}function jt(e,t,n){let r=Ot(e,n);if(`top`in t)for(let e=t.left;e<=t.right;e++)for(let n=t.top;n<=t.bottom;n++){let i={sheetName:t.sheetName,address:D.n2l(e)+n,row:n,col:e};r.addCellEx(i)}else r.addCellEx(t)}function nee(e,t,n){delete e.matrixMap[t],delete e.opaqueMap[t],e.nameForKey[t]=t,e.formulaMap[t]=n}function ree(e,t,n){let r=D.decodeEx(t);`error`in r||Mt(e,r,n)}function Mt(e,t,n){let r=Ot(e,n);if(`top`in t)for(let e=t.left;e<=t.right;e++)for(let n=t.top;n<=t.bottom;n++)r.removeCellEx({sheetName:t.sheetName,address:D.n2l(e)+n,row:n,col:e});else r.removeCellEx(t)}function Nt(e,t){Object.values(e.matrixMap).forEach(e=>{if(`top`in t)for(let n=t.left;n<=t.right;n++)for(let r=t.top;r<=t.bottom;r++)e.removeCellEx({sheetName:t.sheetName,address:D.n2l(n)+r,row:r,col:n});else e.removeCellEx(t)})}function iee(e,t){let n=D.decodeEx(t);return`error`in n||`top`in n?[]:Pt(e,n)}function Pt(e,t){return Object.entries(e.matrixMap).map(([n,r])=>r.findCellEx(t,!1)&&(e.nameForKey[n]??n)).filter(e=>!!e)}function Ft(e){let t=[],n=new Set;for(let r of Object.keys(e.matrixMap)){if(n.has(r))continue;n.add(r);let i=Lt(e,r),a=e.localSheetIdMap[r];t.push(a===void 0?i:{...i,localSheetId:a})}for(let r of Object.keys(e.formulaMap)){if(n.has(r))continue;n.add(r);let i=Lt(e,r),a=e.localSheetIdMap[r];t.push(a===void 0?i:{...i,localSheetId:a})}for(let r of Object.keys(e.opaqueMap)){if(n.has(r))continue;n.add(r);let i=e.nameForKey[r]??r,a=e.opaqueMap[r];t.push({name:i,ranges:[],rawText:a.rawText,localSheetId:a.localSheetId,kind:`opaque`})}return t}function It(e,t,n){n.mark=!1;let r=n.sheetName,i=De(n.row,n.col,n.row,n.col,r),a,o,s=(e,n)=>t.findCellAt(r,e,n);function c(e,t){let r=s(e,n.col);return!r||!r.mark?!1:(i[t]=e,r.mark=!1,!0)}for(o=n.row-1;c(o,`top`);o--);for(o=n.row+1;c(o,`bottom`);o++);function l(e,t){let n=[];for(o=i.top;o<=i.bottom;o++){let t=s(o,e);if(t&&t.mark)n.push(t);else return!1}i[t]=e;for(let e=0;e<n.length;e++)n[e].mark=!1;return!0}for(a=n.col-1;l(a,`left`);a--);for(a=n.col+1;l(a,`right`);a++);return i}function Lt(e,t,n){let r=e.formulaMap[t];n||=e.matrixMap[t];let i=e.nameForKey[t]??t;return n?(n.forEach(e=>{e.mark=!0}),{name:i,ranges:n.map(t=>t.mark&&It(e,n,t)).filter(e=>!!e).map(e=>Be(e))}):r?{name:i,ranges:[r],formulaExpression:r}:{name:i,ranges:[]}}function Rt(e,t,n){t.forEachInSheet(n,(e,t,n)=>{e&&(e.row!==t||e.col!==n)&&(e.row=t,e.col=n,e.address=D.n2l(n)+t)})}function zt(e,t,n,r,i){Object.values(e.matrixMap).forEach(a=>{a.spliceRows(t,n,r,i),Rt(e,a,t)})}function aee(e,t,n,r,i){Object.values(e.matrixMap).forEach(a=>{a.spliceColumns(t,n,r,i),Rt(e,a,t)})}function Bt(e){let t=Object.entries(e.matrixMap).map(([t,n])=>{let r=Lt(e,t,n),i=e.localSheetIdMap[t],a=e.hiddenMap[t],o={...r};return i!==void 0&&(o.localSheetId=i),a&&(o.hidden=!0),o}).filter(e=>e.ranges.length),n=Object.entries(e.formulaMap).filter(([t])=>!e.matrixMap[t]).map(([t,n])=>{let r={name:e.nameForKey[t]??t,ranges:[n],formulaExpression:n},i=e.localSheetIdMap[t];return i!==void 0&&(r.localSheetId=i),e.hiddenMap[t]&&(r.hidden=!0),r}),r=Object.entries(e.opaqueMap).map(([t,n])=>{let r={name:e.nameForKey[t]??t,ranges:[],rawText:n.rawText,localSheetId:n.localSheetId,kind:`opaque`};return e.hiddenMap[t]&&(r.hidden=!0),r});return[...t,...n,...r]}function Vt(e,t){let n=e.matrixMap={},r=e.formulaMap={},i=e.localSheetIdMap={},a=e.hiddenMap={},o=e.opaqueMap={},s=e.nameForKey={},c=e._explicitProbe??xt;for(let e of t){let t=Et(e.name,e.localSheetId);if(s[t]=e.name,e.localSheetId!==void 0&&(i[t]=e.localSheetId),e.hidden&&(a[t]=!0),e.formulaExpression&&e.rawText===void 0){r[t]=e.formulaExpression;continue}let l=Tt(e.rawText,e.ranges,c);switch(l.kind){case`reference`:{let e=n[t]=new Ye;for(let t of l.ranges)Ht.test(t.split(`!`).pop()??``)&&e.addCell(t);break}case`formula`:r[t]=l.formulaExpression;break;case`opaque`:e.rawText&&(o[t]={rawText:e.rawText,localSheetId:e.localSheetId})}}}var Ht,Ut,Wt,Gt,Kt=n((()=>{qe(),Xe(),O(),at(),bt(),Ht=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/,Ut=/^[$]?[A-Za-z]{1,3}[$]?\d+(:[$]?[A-Za-z]{1,3}[$]?\d+)?$/,Wt=/^[$]?\d+:[$]?\d+$/,Gt=/^[$]?[A-Za-z]{1,3}:[$]?[A-Za-z]{1,3}$/})),qt,Jt,Yt,Xt,Zt,k,Qt=n((()=>{qt={Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10,JSON:11,Checkbox:12},Jt={None:0,Master:1,Shared:2},Yt={None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},Xt={LeftToRight:1,RightToLeft:2},Zt={NotApplicable:`#N/A`,Ref:`#REF!`,Name:`#NAME?`,DivZero:`#DIV/0!`,Null:`#NULL!`,Value:`#VALUE!`,Num:`#NUM!`,Spill:`#SPILL!`,Calc:`#CALC!`},k={ValueType:qt,FormulaType:Jt,RelationshipType:Yt,ReadingOrder:Xt,ErrorValue:Zt}}));function $t(e){return rn.has(e)}function en(e,t){if(e===t)return!0;if(e==null||t==null)return e===t;let n=typeof e;if(n!==typeof t||n!==`object`)return!1;let r=Array.isArray(e);if(r!==Array.isArray(t))return!1;if(r){let n=e,r=t,i=n.length;if(i!==r.length)return!1;for(let e=0;e<i;e++)if(!en(n[e],r[e]))return!1;return!0}let i=e,a=t,o=Object.keys(i),s=Object.keys(a);if(o.length!==s.length)return!1;for(let e=0,t=o.length;e<t;e++){let t=o[e];if(!Object.prototype.hasOwnProperty.call(a,t)||!en(i[t],a[t]))return!1}return!0}function tn(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function nn(...e){let t=e[0]||{},n=e.length;for(let r=1;r<n;r++){let n=e[r];if(n){if(Array.isArray(n)){let e=t;for(let t=0,r=n.length;t<r;t++){let r=n[t];if(r===void 0)continue;let i=e[t];Array.isArray(r)?e[t]=nn(Array.isArray(i)?i:[],r):tn(r)?e[t]=nn(tn(i)?i:{},r):e[t]=r}}else{let e=n,r=Object.keys(e);for(let n=0,i=r.length;n<i;n++){let i=r[n];if(i===`__proto__`||i===`constructor`||i===`prototype`)continue;let a=e[i];if(a===void 0)continue;let o=t[i];t[i]=Array.isArray(a)?nn(Array.isArray(o)?o:[],a):tn(a)?nn(tn(o)?o:{},a):a}}}}return t}var rn,an=n((()=>{rn=new Set([`__proto__`,`constructor`,`prototype`,`__defineGetter__`,`__defineSetter__`,`__lookupGetter__`,`__lookupSetter__`])}));function on(e,t){return{note:e,author:t}}function sn(e){return typeof e==`object`&&!!e&&`note`in e&&`author`in e&&!(`texts`in e)}function cn(e){let t;switch(typeof e.note){case`string`:t={type:`note`,note:{texts:[{text:e.note}]}};break;default:t={type:`note`,note:e.note??{}}}let n=nn({},un,t);return e.author!==void 0&&(n.author=e.author),n}function ln(e){let{note:t}=e,{texts:n}=t,r=t.width!==void 0||t.height!==void 0;return{note:n&&n.length===1&&Object.keys(n[0]).length===1&&!r?n[0].text:t,author:e.author}}var un,dn=n((()=>{an(),un={note:{margins:{insetmode:`auto`,inset:[.13,.13,.25,.25]},protection:{locked:`True`,lockText:`True`},editAs:`absolute`},type:`note`}}));function oee(e,t,n){let r=e-+(t<=2),i=Math.floor(r/400),a=r-i*400,o=Math.floor((153*(t+(t>2?-3:9))+2)/5)+n-1,s=a*365+Math.floor(a/4)-Math.floor(a/100)+o;return i*146097+s-719468}function see(e){let t=e+719468,n=Math.floor(t/146097),r=t-n*146097,i=Math.floor((r-Math.floor(r/1460)+Math.floor(r/36524)-Math.floor(r/146096))/365),a=i+n*400,o=r-(365*i+Math.floor(i/4)-Math.floor(i/100)),s=Math.floor((5*o+2)/153),c=o-Math.floor((153*s+2)/5)+1,l=s+(s<10?3:-9);return{year:a+ +(l<=2),month:l,day:c}}function fn(e,t){return yn+e-(t?bn:0)}function cee(e,t){return e-yn+(t?bn:0)}function pn(e,t,n,r){return!r&&e===1900&&t===2&&n===29}function mn(e,t){let n=Math.round(cee(e,t)*xn),r=Math.floor(n/xn),i=n-r*xn,a=!1;t!==!0&&(r===Sn?a=!0:r<Sn&&(r+=1));let{year:o,month:s,day:c}=a?{year:1900,month:2,day:29}:see(r),l=i%1e3;i=(i-l)/1e3;let u=i%60;i=(i-u)/60;let d=i%60;return{year:o,month:s,day:c,hour:(i-d)/60,minute:d,second:u,millisecond:l}}function hn(e,t){let{year:n,month:r,day:i,hour:a=0,minute:o=0,second:s=0,millisecond:c=0}=e,l=((a*60+o)*60+s)*1e3+c;if(pn(n,r,i,t))return fn((Sn*xn+l)/xn,t);let u=r-1,d=Math.floor(u/12),f=oee(n+d,u-d*12+1,i);return t!==!0&&f<=Sn&&--f,fn((f*xn+l)/xn,t)}function gn(e,t){return pn(e.year,e.month,e.day,t)}function _n(e){let t=new Date(0);return t.setUTCFullYear(e.year,e.month-1,e.day),t.setUTCHours(e.hour,e.minute,e.second,e.millisecond),t}function vn(e){return{year:e.getUTCFullYear(),month:e.getUTCMonth()+1,day:e.getUTCDate(),hour:e.getUTCHours(),minute:e.getUTCMinutes(),second:e.getUTCSeconds(),millisecond:e.getUTCMilliseconds()}}var yn,bn,xn,Sn,Cn=n((()=>{yn=25569,bn=1462,xn=864e5,Sn=-25509}));function wn(e){if(!(typeof e!=`object`||!e))try{let t=e[Symbol.toStringTag];return typeof t==`string`?t:void 0}catch{return}}function Tn(e){if(typeof e!=`object`||!e)return Rn;let t=En(e);if(t!==void 0)return{kind:t};let n=wn(e);if(n===void 0)return Rn;let r=In.get(n);if(r!==void 0)return{refusal:r};let i=Fn.get(n);return i===void 0?Rn:Dn(e,Ln[i])?{kind:i}:Rn}function En(e){let t=globalThis.Temporal;if(!(typeof t!=`object`||!t))for(let[n,r]of[[`PlainDate`,`date`],[`PlainTime`,`time`],[`PlainDateTime`,`dateTime`]]){let i=t[n];if(typeof i==`function`&&e instanceof i)return r}}function Dn(e,t){try{for(let n of t)if(!Number.isFinite(e[n]))return!1;return!0}catch{return!1}}function On(e){return Tn(e).kind!==void 0}function kn(e){return Tn(e).kind}function An(e){return Tn(e).refusal}function jn(e,t){let n=e[t];return typeof n==`number`?n:0}function Mn(e,t=!1){let n=kn(e);if(n===void 0)throw new h(`Not a Temporal PlainDate, PlainTime or PlainDateTime`);let r=e.withCalendar,i=typeof r==`function`?r.call(e,`iso8601`):e,a=t?Bn:zn,o=((jn(i,`hour`)*60+jn(i,`minute`))*60+jn(i,`second`))*1e9+jn(i,`millisecond`)*1e6+jn(i,`microsecond`)*1e3+jn(i,`nanosecond`),s=Math.round(o/1e6),c=0;s>=864e5&&(s-=xn,c=1);let l=s%1e3,u=(s-l)/1e3,d=u%60,f=(u-d)/60,p=f%60,m=(f-p)/60;if(n===`time`)return{...a,hour:m,minute:p,second:d,millisecond:l};let g={year:jn(i,`year`),month:jn(i,`month`),day:jn(i,`day`)},_=c===0?g:mn(hn({...g,day:g.day+1},t),t);return{year:_.year,month:_.month,day:_.day,hour:m,minute:p,second:d,millisecond:l}}function Nn(){let e=globalThis.Temporal;if(typeof e!=`object`||!e)throw new h(`Temporal is not available in this runtime. It needs Node 26+, Chrome 144+, Firefox 139+, Bun 1.4+ or Deno 2.7+, and this package adds no polyfill. Use Cell.getDateParts for the same value as plain calendar fields, which works everywhere.`);return e}function Pn(e,t,n=!1){let r=Nn();if(t!==`time`&&gn(e,n))throw new h(`This is Excel serial 60, its fictitious 1900-02-29. That day does not exist in the ISO calendar, so it has no Temporal representation. Use Cell.getDateParts, which reports the fields as Excel stores them.`);switch(t){case`date`:return r.PlainDate.from({year:e.year,month:e.month,day:e.day});case`time`:return r.PlainTime.from({hour:e.hour,minute:e.minute,second:e.second,millisecond:e.millisecond});case`dateTime`:return r.PlainDateTime.from(e)}}var Fn,In,Ln,Rn,zn,Bn,Vn=n((()=>{E(),Cn(),Fn=new Map([[`Temporal.PlainDate`,`date`],[`Temporal.PlainTime`,`time`],[`Temporal.PlainDateTime`,`dateTime`]]),In=new Map([[`Temporal.Instant`,`an Instant is a point in time, not a calendar value; call .toZonedDateTimeISO(timeZone).toPlainDateTime() to choose the timezone explicitly`],[`Temporal.ZonedDateTime`,`a ZonedDateTime carries a timezone that a spreadsheet cell cannot store; call .toPlainDateTime(), .toPlainDate() or .toPlainTime()`],[`Temporal.PlainYearMonth`,`a PlainYearMonth has no day; call .toPlainDate({ day: 1 })`],[`Temporal.PlainMonthDay`,`a PlainMonthDay has no year; call .toPlainDate({ year })`],[`Temporal.Duration`,`a Duration is a length of time, not a date; store .total({ unit: 'days' })`]]),Ln={date:[`year`,`month`,`day`],time:[`hour`,`minute`,`second`],dateTime:[`year`,`month`,`day`,`hour`,`minute`,`second`]},Rn={},zn=mn(0,!1),Bn=mn(0,!0)}));function Hn(){return typeof process<`u`&&!!process.versions?.node}var Un=n((()=>{}));function Wn(e){if(Hn())return Buffer.from(e,`base64`);let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e++)n[e]=t.charCodeAt(e);return n}function Gn(e,t){return hn(vn(e),t)}function Kn(e,t){return _n(mn(e,t))}function qn(e){return new Date(e.endsWith(`Z`)?e:e+`Z`)}function Jn(e){return e.replace(nr,(e,t)=>{let n=parseInt(t,16);return n===0||n>=1&&n<=8||n===11||n===12||n>=14&&n<=31||n===127||n>=55296&&n<=57343||n===65534||n===65535?e:String.fromCharCode(n)})}function Yn(e){return e.replace(nr,`_x005F_x$1_`)}function Xn(e){let t=e.replace(nr,`_x005F_x$1_`);return t=t.replace(rr,e=>ir[e]),t}function Zn(e){let t=typeof e==`number`?e:parseInt(e,10);return Number.isNaN(t)?0:t}function Qn(e){let t=[],n=``,r=!1,i=!1;for(let a=0;a<e.length;a++){let o=e[a];o===`"`&&!i?(r=!r,n+=o):o===`[`&&!r?(i=!0,n+=o):o===`]`&&!r?(i=!1,n+=o):o===`;`&&!r&&!i?(t.push(n),n=``):n+=o}return t.push(n),t}function $n(e){if(!e)return!1;let t=sr.get(e);if(t!==void 0)return t;let n=Qn(e)[0].replace(or,``),r;return r=n.indexOf(`@`)>-1?!1:ar.test(n),sr.set(e,r),r}function er(e){return e===!0||e===`true`||e===1||e===`1`}function*lee(e,t,n=1){let r=n>0?(e,t)=>e<t:(e,t)=>e>t;for(let i=e;r(i,t);i+=n)yield i}function uee(){if(!ur){ur=!0;try{lr=new TextDecoder(`latin1`)}catch{lr=void 0}}return lr}function dee(e){return typeof e==`string`?e:cr.decode(e)}function tr(e){if(Hn())return Buffer.from(e).toString(`base64`);if(uee())try{return btoa(lr.decode(e))}catch{}let t=32768,n=[];for(let r=0;r<e.length;r+=t)n.push(String.fromCharCode(...e.subarray(r,r+t)));return btoa(n.join(``))}function fee(e){let t=new Uint8Array(e.length*2);for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);t[n*2]=r&255,t[n*2+1]=r>>8&255}return t}var nr,rr,ir,ar,or,sr,cr,lr,ur,dr=n((()=>{Un(),Cn(),nr=/_x([0-9A-Fa-f]{4})_/g,rr=/[\t\n\r]/g,ir={" ":`_x0009_`,"\n":`_x000A_`,"\r":`_x000D_`},ar=/[ymdhMsb]/,or=/\[[^\]]*\]|"[^"]*"/g,sr=new Map,cr=new TextDecoder(`utf-8`),ur=!1}));async function fr(e){throw Error(pr)}var pr,mr=n((()=>{pr=`File system operations are not available in browser environment.`})),hr=n((()=>{dr(),mr()}));function gr(e,t){let n=Math.round(e).toString();for(;n.length<t;)n=`0`+n;return n}function _r(e){if(e.length<=3)return e;let t=e.length%3,n=e.substring(0,t);for(let r=t;r<e.length;r+=3)n+=(n.length>0?`,`:``)+e.substring(r,r+3);return n}function vr(e,t){let n=10**t;return Math.round(e*n)/n}function yr(e){let t=e.replace(/_./g,` `);return t=t.replace(/\*./g,``),t}function br(e){return/^General$/i.test(e.trim())}function xr(e){let t=e.replace(/\[[^\]]*\]/g,``);return/[ymdhs]/i.test(t)&&!/^[#0.,E%$\s()\-+]+$/i.test(t)}function Sr(e){let t=/\x00(?:Y[24]|D[12]|MN[345])\x00/,n=/\x00H[12]\x00/g,r=/\x00S[12]\x00/g,i=``,a=e,o=a.search(/mm/i);for(;o!==-1;){let e=a.slice(0,o),s=a.slice(o+2),c=-1,l;for(n.lastIndex=0;(l=n.exec(e))!==null;)c=l.index;r.lastIndex=0;let u=r.exec(s),d=u?u.index:-1,f=c!==-1&&!t.test(e.slice(c)),p=d!==-1&&!t.test(s.slice(0,d));i+=e+(f||p?`\0MI2\0`:`\0M2\0`),a=s,o=a.search(/mm/i)}return i+=a,i}function Cr(e,t){let n=Math.round(e*86400)%86400,r=Math.floor(n/3600),i=Math.floor(n%3600/60),a=n%60,o=Kn(e,!1),s=o.getUTCFullYear(),c=o.getUTCMonth(),l=o.getUTCDate(),u=o.getUTCDay(),d=e*86400-Math.floor(e*86400),f=/AM\/PM|A\/P/i.test(t),p=r>=12,m=r%12||12,h=t.replace(/\[(Red|Green|Blue|Yellow|Magenta|Cyan|White|Black|Color\d+)\]/gi,``);h=yr(h);let g=h.match(/ss\.(0+)/i),_=``;if(g){let e=g[1].length;_=Math.round(d*10**e).toString().padStart(e,`0`),h=h.replace(/ss\.0+/gi,`\0SF\0`)}h=h.replace(/yyyy/gi,`\0Y4\0`),h=h.replace(/yy/gi,`\0Y2\0`),h=h.replace(/mmmmm/gi,`\0MN5\0`),h=h.replace(/mmmm/gi,`\0MN4\0`),h=h.replace(/mmm/gi,`\0MN3\0`),h=h.replace(/dddd/gi,`\0DN4\0`),h=h.replace(/ddd/gi,`\0DN3\0`),h=h.replace(/dd/gi,`\0D2\0`),h=h.replace(/\bd\b/gi,`\0D1\0`),h=h.replace(/hh/gi,`\0H2\0`),h=h.replace(/\bh\b/gi,`\0H1\0`),h=h.replace(/ss/gi,`\0S2\0`),h=h.replace(/\bs\b/gi,`\0S1\0`),h=Sr(h),h=h.replace(/\bm\b/gi,`\0M1\0`),h=h.replace(/AM\/PM/gi,`\0AMPM\0`),h=h.replace(/A\/P/gi,`\0AP\0`);let v=f?m:r;return h=h.replace(/\x00Y4\x00/g,s.toString()).replace(/\x00Y2\x00/g,(s%100).toString().padStart(2,`0`)).replace(/\x00MN5\x00/g,Lr[c]).replace(/\x00MN4\x00/g,Ir[c]).replace(/\x00MN3\x00/g,Fr[c]).replace(/\x00M2\x00/g,(c+1).toString().padStart(2,`0`)).replace(/\x00M1\x00/g,(c+1).toString()).replace(/\x00DN4\x00/g,zr[u]).replace(/\x00DN3\x00/g,Rr[u]).replace(/\x00D2\x00/g,l.toString().padStart(2,`0`)).replace(/\x00D1\x00/g,l.toString()).replace(/\x00H2\x00/g,v.toString().padStart(2,`0`)).replace(/\x00H1\x00/g,v.toString()).replace(/\x00MI2\x00/g,i.toString().padStart(2,`0`)).replace(/\x00S2\x00/g,a.toString().padStart(2,`0`)).replace(/\x00S1\x00/g,a.toString()).replace(/\x00SF\x00/g,a.toString().padStart(2,`0`)+`.`+_).replace(/\x00AMPM\x00/g,p?`PM`:`AM`).replace(/\x00AP\x00/g,p?`P`:`A`),h=h.replace(/\\/g,``),h}function wr(e){return typeof e==`boolean`?e?`TRUE`:`FALSE`:typeof e==`string`?e:Number.isInteger(e)?e.toString():e.toPrecision(11).replace(/\.?0+$/,``).replace(/\.?0+e/,`e`)}function pee(e,t){let n=(t.match(/%/g)??[]).length;return Tr(e*100**n,t.replace(/%/g,``)||`0`)+`%`.repeat(n)}function mee(e,t){let n=e<0?`-`:``,r=Math.abs(e);if(r===0){let e=t.match(/\.([0#]+)E/i),n=e?e[1].length:2;return`0.`+`0`.repeat(n)+`E+00`}let i=t.match(/\.([0#]+)E/i),a=i?i[1].length:2,o=t.includes(`E+`),s=Math.floor(Math.log10(r)),c=vr(r/10**s,a).toFixed(a),l=s>=0?o?`+`:``:`-`,u=gr(Math.abs(s),2);return n+c+`E`+l+u}function hee(e,t){let n=e<0?-1:1,r=Math.abs(e),i=Math.floor(r);if(r-=i,r<1e-10)return[n*i,0,1];let a=0,o=1,s=1,c=0,l=Math.floor(r),u=l,d=1;for(;c<t&&(l=Math.floor(r),u=l*o+a,d=l*c+s,!(r-l<1e-10));)r=1/(r-l),a=o,o=u,s=c,c=d;return d>t&&(d=c,u=o),[n*i,n*u,d]}function gee(e,t){let n=e<0?`-`:``,r=Math.abs(e),i=t.match(/\?+\s*\/\s*(\d+)/);if(i){let e=parseInt(i[1],10),a=Math.floor(r),o=r-a,s=Math.round(o*e);return t.includes(`#`)||t.includes(`0`)?s===0?n+a.toString():n+(a>0?a+` `:``)+s+`/`+e:n+(a*e+s)+`/`+e}let a=t.match(/\/\s*(\?+)/),[o,s,c]=hee(r,10**(a?a[1].length:2)-1);return t.includes(`#`)&&o!==0?s===0?n+Math.abs(o).toString():n+Math.abs(o)+` `+Math.abs(s)+`/`+c:s===0?o===0?`0`:n+Math.abs(o).toString():n+(Math.abs(o)*c+Math.abs(s))+`/`+c}function _ee(e,t){let n=Math.round(e*86400),r=Math.floor(n/60),i=Math.floor(r/60),a=n%60,o=r%60,s=i,c=t;return/\[h+\]/i.test(c)&&(c=c.replace(/\[h+\]/gi,s.toString())),/\[m+\]/i.test(c)&&(c=c.replace(/\[m+\]/gi,r.toString())),/\[s+\]/i.test(c)&&(c=c.replace(/\[s+\]/gi,n.toString())),c=c.replace(/mm/gi,o.toString().padStart(2,`0`)),c=c.replace(/ss/gi,a.toString().padStart(2,`0`)),c}function Tr(e,t){let n=Math.abs(e),r=e<0?`-`:``,i=0,a=t;for(;a.endsWith(`,`);)i++,a=a.slice(0,-1);let o=n/1e3**i,s=a.indexOf(`.`),c=a,l=``;s!==-1&&(c=a.substring(0,s),l=a.substring(s+1));let u=l.replace(/[^0#?]/g,``).length,d=vr(o,u);if(d===0&&!c.includes(`0`)&&!l.includes(`0`)){let e=``;for(let t of c)t===`?`?e+=` `:t!==`#`&&t!==`,`&&(e+=t);if(u>0&&/[0?]/.test(l)){e+=`.`;for(let t of l)t===`?`&&(e+=` `)}return r+e}let[f,p=``]=d.toString().split(`.`),m=/[0#?][^0#?,.\s][0#?]/.test(c),h;if(m){let e=c.replace(/[^0#?]/g,``).length,t=f;t.length<e&&(t=`0`.repeat(e-t.length)+t),h=``;let n=t.length-e;for(let e=0;e<c.length;e++){let r=c[e];r===`0`||r===`#`||r===`?`?n<t.length&&(h+=t[n],n++):r!==`,`&&(h+=r)}}else{h=f,c.includes(`,`)&&(h=_r(f));let e=(c.match(/0/g)??[]).length,t=(c.match(/[0?]/g)??[]).length;h.length<e&&(h=`0`.repeat(e-h.length)+h),h.length<t&&(h=` `.repeat(t-h.length)+h),h===`0`&&e===0&&t===0&&(h=``)}let g=``;if(u>0){let e=(p+`0`.repeat(u)).substring(0,u).split(``);for(let t=l.length-1;t>=0;t--)if(!(t>=e.length)){if(l[t]===`#`&&e[t]===`0`)e[t]=``;else if(l[t]===`?`&&e[t]===`0`)e[t]=` `;else break}let t=e.join(``);t.length>0&&(g=`.`+t)}return r+h+g}function Er(e){let t=``,n=0;for(;n<e.length;)if(e[n]===`"`){for(n++;n<e.length&&e[n]!==`"`;)t+=e[n],n++;n++}else e[n]===`\\`&&n+1<e.length?(n++,t+=e[n],n++):(t+=e[n],n++);return t}function vee(e,t){let n=t.match(/\[(=|>|<|>=|<=|<>)(-?\d+(?:\.\d*)?)\]/);if(!n)return!1;let r=n[1],i=parseFloat(n[2]);switch(r){case`=`:return e===i;case`>`:return e>i;case`<`:return e<i;case`>=`:return e>=i;case`<=`:return e<=i;case`<>`:return e!==i;default:return!1}}function Dr(e,t){if(typeof t==`string`){let n=Qn(e);return n.length>=4&&n[3]?Er(n[3]).replace(/@/g,t):t}if(typeof t==`boolean`)return t?`TRUE`:`FALSE`;let n=Qn(e),r=/\[(=|>|<|>=|<=|<>)-?\d+(?:\.\d*)?\]/;if((n[0]&&r.test(n[0])||n[1]&&r.test(n[1]))&&n.length>=2){for(let e=0;e<Math.min(n.length,2);e++){let r=n[e].match(/\[(=|>|<|>=|<=|<>)-?\d+(?:\.\d*)?\]/);if(r&&vee(t,r[0]))return n[e]}return n[n.length>2?2:1]}return n.length===1?n[0]:n.length===2?t>=0?n[0]:n[1]:t>0?n[0]:t<0?n[1]:n[2]||n[0]}function yee(e,t){let n=Qn(e);return n.length>=2&&n[1]===t}function Or(e,t){if(t==null)return``;if(br(e))return wr(t);if(typeof t==`string`)return Dr(e,t);if(typeof t==`boolean`)return t?`TRUE`:`FALSE`;let n=t,r=Dr(e,n);n<0&&yee(e,r)&&(n=Math.abs(n));let i=r.replace(/\[(Red|Green|Blue|Yellow|Magenta|Cyan|White|Black|Color\d+)\]/gi,``);if(i=i.replace(/\[(>|<|>=|<=|=|<>)-?\d+(\.\d+)?\]/g,``),i=i.replace(/\[\$[^\]]*\]/g,``),i=yr(i),i=Er(i),/\[[hms]+\]/i.test(i))return _ee(n,i);if(xr(i))return Cr(n,i);if(i.includes(`%`))return pee(n,i);if(/E[+-]?/i.test(i))return mee(n,i);if(/\?+\s*\/\s*[\d?]+/.test(i))return gee(n,i);if(i.includes(`(`)&&i.includes(`)`)&&n<0){let e=i.replace(/\(|\)/g,``);return`(`+Tr(-n,e)+`)`}if(i===`@`)return n.toString();let a=``,o=``,s=i.match(/^([^#0?.,]+)/);s&&(a=s[1],i=i.substring(s[0].length));let c=i.match(/([^#0?.,]+)$/);c&&!c[1].includes(`%`)&&(o=c[1],i=i.substring(0,i.length-c[0].length));let l=Tr(n,i);return a+l+o}function kr(e){let t=(Qn(e)[0]??``).replace(/"[^"]*"/g,``).replace(/\\./g,``),n=/\[[hms]+\]/i.test(t),r=t.replace(/\[[^\]]*\]/g,``),i=/[hs]/i.test(r)||/AM\/PM|A\/P/i.test(r);return{elapsed:n,hasTime:i,hasYearOrDay:/[yd]/i.test(r),monthM:/m/i.test(r)&&!i}}function Ar(e){let{elapsed:t,hasTime:n,hasYearOrDay:r,monthM:i}=kr(e);return!t&&!r&&!i&&n}function jr(e){let{elapsed:t,hasYearOrDay:n,monthM:r}=kr(e);return!t&&(n||r)}function Mr(e){if(e===void 0||e===``||br(e))return`unknown`;let{elapsed:t,hasTime:n,hasYearOrDay:r,monthM:i}=kr(e);if(t)return`duration`;let a=r||i;return a&&n?`dateTime`:a?`date`:n?`time`:`unknown`}function Nr(e,t,n){if(e instanceof Date){let r=Gn(e);if(Ar(t))return r%=1,r<0&&(r+=1),Or(t,r);let i;return i=n&&jr(t)?n:!t||br(t)?r%1==0?Br:Vr:t,Or(i,r)}return Or(t,e)}function Pr(e,t){let n=e.value,r=e.numFmt,i=typeof r==`string`?r:r?.formatCode??`General`;if(n==null)return``;if(n instanceof Date||typeof n==`number`||typeof n==`boolean`||typeof n==`string`)return Nr(n,i,t);if(typeof n==`object`&&`formula`in n){let e=n.result;if(e==null)return``;if(e instanceof Date||typeof e==`number`||typeof e==`boolean`||typeof e==`string`)return Nr(e,i,t)}return e.text}var Fr,Ir,Lr,Rr,zr,Br,Vr,Hr=n((()=>{hr(),Fr=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],Ir=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],Lr=[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],Rr=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],zr=[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],Br=`yyyy-mm-dd`,Vr=`yyyy-mm-dd hh:mm:ss`}));function Ur(e,t){return{...e,...t.reduce((t,n)=>(e[n]&&(t[n]={...e[n]}),t),{})}}function Wr(e,t,n,r=[]){e[n]&&(t[n]=Ur(e[n],r))}function Gr(e){return Object.keys(e).length===0}function Kr(e){if(!e)return e;if(Gr(e))return{};let t={...e};return Wr(e,t,`font`,[`color`]),Wr(e,t,`alignment`),Wr(e,t,`protection`),e.border&&(Wr(e,t,`border`),Wr(e.border,t.border,`top`,[`color`]),Wr(e.border,t.border,`left`,[`color`]),Wr(e.border,t.border,`bottom`,[`color`]),Wr(e.border,t.border,`right`,[`color`]),Wr(e.border,t.border,`diagonal`,[`color`])),e.fill&&(Wr(e,t,`fill`,[`fgColor`,`bgColor`,`center`]),e.fill.stops&&(t.fill.stops=e.fill.stops.map(e=>Ur(e,[`color`])))),t}var qr=n((()=>{}));function Jr(e,t,n){let r=D.decode(t),i=D.decode(n);return e.replace(Yr,(e,t,n,a,o)=>{if(o)return e;let s=Xr.exec(a);if(s){let n=s[1],a=s[2].toUpperCase(),o=s[3],c=s[4];if(a.length>3||a.length===3&&a>`XFD`)return e;let l=D.l2n(a),u=parseInt(c,10);return n||(l+=i.col-r.col),o||(u+=i.row-r.row),(t??``)+(n??``)+D.n2l(l)+(o??``)+u}return e})}var Yr,Xr,Zr=n((()=>{O(),Yr=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,Xr=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i}));function Qr(e){return!!e&&(typeof e!=`object`||Object.keys(e).length>0)}function $r(e){let t=``;for(let n of e)n&&typeof n.text==`string`&&(t+=n.text);return t}function ei(e){let t,n;Array.isArray(e.richText)&&e.richText.length>0?(n=e.richText,t=$r(n)):t=typeof e.text==`string`?e.text:``;let r={text:t,hyperlink:typeof e.hyperlink==`string`?e.hyperlink:``};return n&&(r.richText=n),typeof e.tooltip==`string`&&e.tooltip.length>0&&(r.tooltip=e.tooltip),r}function ti(e,t,n){let r=e&&e.styleName||t&&t.styleName;r&&(n.styleName=r);let i=e&&e.numFmt||t&&t.numFmt;i&&(n.numFmt=i);let a=e&&Qr(e.font)&&e.font||t&&Qr(t.font)&&t.font;a&&(n.font=structuredClone(a));let o=e&&Qr(e.alignment)&&e.alignment||t&&Qr(t.alignment)&&t.alignment;o&&(n.alignment=structuredClone(o));let s=e&&Qr(e.border)&&e.border||t&&Qr(t.border)&&t.border;s&&(n.border=structuredClone(s));let c=e&&Qr(e.fill)&&e.fill||t&&Qr(t.fill)&&t.fill;c&&(n.fill=structuredClone(c));let l=e&&Qr(e.protection)&&e.protection||t&&Qr(t.protection)&&t.protection;return l&&(n.protection=structuredClone(l)),n}function ni(e,t,n){if(!e||!t)throw new h(`A Cell needs a Row`);D.validateAddress(n);let r={row:e,column:t,address:n,style:ti(e.style,t.style,{}),_mergeCount:0};return r._value=ma.create(A.Null,r),r}function ri(e){return e.row.worksheet}function ii(e){return e.row.worksheet._workbook}function ai(e){return e.style.numFmt}function oi(e,t){e.style.numFmt=t}function si(e){return e.style.font}function ci(e,t){e.style.font=t}function li(e){return e.style.alignment}function ui(e,t){e.style.alignment=t}function di(e){return e.style.border}function fi(e,t){e.style.border=t}function pi(e){return e.style.fill}function mi(e,t){e.style.fill=t}function hi(e){return e.style.protection}function gi(e,t){e.style.protection=t}function _i(e){return e.style}function vi(e,t){t.numFmt!==void 0&&(e.style.numFmt=t.numFmt),t.styleName!==void 0&&(e.style.styleName=t.styleName),t.font!==void 0&&(e.style.font=t.font),t.alignment!==void 0&&(e.style.alignment=t.alignment),t.border!==void 0&&(e.style.border=t.border),t.fill!==void 0&&(e.style.fill=t.fill),t.protection!==void 0&&(e.style.protection=t.protection)}function yi(e,t,n){e[t]=typeof n==`object`&&n?structuredClone(n):n}function bi(e,t,n){e[t]=n}function xi(e){return e.column.number}function Si(e){return e._value.type}function Ci(e){return e._value.effectiveType}function wi(e){return e._value.value}function Ti(e){switch(e){case`date`:return`yyyy-mm-dd`;case`time`:return`hh:mm:ss`;case`dateTime`:return`yyyy-mm-dd hh:mm:ss`}}function Ei(e,t){return e==null||e instanceof Date?e:_n(Mn(e,t))}function Di(e){return(e.row?.worksheet?._workbook)?.properties?.date1904===!0}function Oi(e,t){if(Si(e)===A.Merge){Oi(e._value.master,t);return}let n=An(t);if(n!==void 0)throw new ee(String(t[Symbol.toStringTag]),n);e._formulaGhostOwner=void 0,e._value.release(),e._value=ma.create(ma.getType(t),e,t);let r=kn(t);r!==void 0&&e.style.numFmt===void 0&&(e.style.numFmt=Ti(r))}function ki(e,t){return t===2?e%4==0&&e%100!=0||e%400==0?29:28:t===4||t===6||t===9||t===11?30:31}function Ai(e,t){let n=e=>{throw new ee(`date parts`,e)},r=Object.entries(e);r.every(([,e])=>e===void 0)&&n(`no fields given; supply at least a date (year, month, day) or a time (hour, minute, …)`);for(let[e,t]of r){if(t===void 0)continue;Number.isInteger(t)||n(`${e} must be an integer, received ${String(t)}`);let r=ea[e];r!==void 0&&(t<r[0]||t>r[1])&&n(`${e} must be between ${r[0]} and ${r[1]}, received ${String(t)}`)}let{year:i,month:a,day:o}=e;if(i===void 0&&(a!==void 0||o!==void 0)&&n(`a date needs a year when month or day is given`),i!==void 0&&a!==void 0&&o!==void 0){gn({year:i,month:a,day:o},t)&&n(`1900-02-29 is Excel's fictitious leap day (serial 60) and no JavaScript Date names it, so a cell cannot hold it — storing it would silently write 1900-03-01 instead. Use 1900-03-01 or 1900-02-28.`);let e=ki(i,a);o>e&&n(`${i}-${String(a).padStart(2,`0`)} has ${e} days, received day ${o}`)}}function ji(e,t,n){let r=Di(e);Ai(t,r);let i=t.year!==void 0,a=mn(0,r),o={year:t.year??a.year,month:t.month??(i?1:a.month),day:t.day??(i?1:a.day),hour:t.hour??0,minute:t.minute??0,second:t.second??0,millisecond:t.millisecond??0},s=o.hour!==0||o.minute!==0||o.second!==0||o.millisecond!==0,c=n??(i?s?`dateTime`:`date`:`time`);Oi(e,Kn(hn(o,r),r)),e.style.numFmt===void 0&&(e.style.numFmt=Ti(c))}function Mi(e){let t=wi(e),n=t instanceof Date?t:Ji(e);return n instanceof Date?vn(n):void 0}function Ni(e){if(Mi(e)===void 0)return;let t=e.style.numFmt;return Mr(typeof t==`string`?t:t?.formatCode)}function Pi(e,t){let n=Mi(e);if(n===void 0)return;if(t!==void 0)return Pn(n,t,Di(e));let r=Ni(e);if(r===`duration`)throw new ee(`duration`,`this cell's number format is an elapsed-time one, so its serial is a length of time rather than a calendar value and has no Temporal Plain* equivalent. Use Cell.getDateParts, or pass an explicit kind to read it as a civil value anyway.`);return Pn(n,r===void 0||r===`unknown`?`dateTime`:r,Di(e))}function Fi(e){e._mergeCount++}function Ii(e){e._mergeCount--}function Li(e){return e._mergeCount>0||Si(e)===A.Merge}function Ri(e,t,n){e._formulaGhostOwner=void 0,e._value.release(),e._value=ma.create(A.Merge,e,t),n||(e.style=Kr(t.style)??{})}function zi(e){e._formulaGhostOwner=void 0,Si(e)===A.Merge&&(e._value.release(),e._value=ma.create(A.Null,e),e.style=ti(e.row.style,e.column.style,{...e.style}))}function Bi(e){return Si(e)===A.Merge?e._value.master:e}function Vi(e){return e._value.hyperlink}function Hi(e){if(e._comment)return e._comment.note}function Ui(e,t){e._comment=on(t)}function Wi(e){return e._comment}function Gi(e,t){e._comment=t===void 0?void 0:sn(t)?t:on(t)}function bee(e){return e._value.toString()}function xee(e){return Pr({value:e._value.value,numFmt:e.style.numFmt,text:e._value.toString()})}function Ki(e){return{get value(){return e._value.value},get numFmt(){return e.style.numFmt},get text(){return e._value.toString()},get effectiveType(){return e._value.effectiveType},get font(){return e.style.font},get alignment(){return e.style.alignment}}}function qi(e){return e._value.formula}function Ji(e){return e._value.result}function See(e,t){Si(e)===A.Formula&&(e._value.result=t)}function Yi(e){let{worksheet:t}=e.row;return{sheetName:t._name,address:e.address,row:e.row.number,col:e.column.number}}function Cee(e,t){Xi(e,[t])}function wee(e){return Pt(ii(e)._definedNames,Yi(e))}function Xi(e,t){let n=ii(e)._definedNames;Nt(n,Yi(e)),t.forEach(t=>{jt(n,Yi(e),t)})}function Tee(e,t){jt(ii(e)._definedNames,Yi(e),t)}function Eee(e,t){Mt(ii(e)._definedNames,Yi(e),t)}function Dee(e){Nt(ii(e)._definedNames,Yi(e))}function Oee(e){return ge(ri(e).dataValidations,e.address)}function kee(e,t){ue(ri(e).dataValidations,e.address,t)}function Zi(e){let{model:t}=e._value;return t.style=e.style,e._comment&&(t.comment=cn(e._comment)),t}function Qi(e,t){if(e._formulaGhostOwner=void 0,e._value.release(),e._value=ma.create(t.type,e),e._value.model=t,t.comment)switch(t.comment.type){case`note`:e._comment=ln(t.comment)}e.style=t.style?Kr(t.style)??{}:{}}function Aee(e){return!!e&&typeof e==`object`&&`_value`in e&&`row`in e&&`column`in e}var A,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa,ma,ha=n((()=>{Ce(),Kt(),Qt(),dn(),Vn(),E(),Hr(),O(),qr(),Zr(),Cn(),hr(),A=k.ValueType,$i=A,ea={month:[1,12],day:[1,31],hour:[0,23],minute:[0,59],second:[0,59],millisecond:[0,999]},ta=class{constructor(e){this.model={address:e.address,type:A.Null}}get value(){return null}set value(e){}get type(){return A.Null}get effectiveType(){return A.Null}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return``}release(){}toString(){return``}},na=class{constructor(e,t){this.model={address:e.address,type:A.Number,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return A.Number}get effectiveType(){return A.Number}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}},ra=class{constructor(e,t){this.model={address:e.address,type:A.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return A.String}get effectiveType(){return A.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.model.value.replace(/"/g,`""`)}"`}release(){}toString(){return this.model.value}},ia=class{constructor(e,t){this.model={address:e.address,type:A.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}toString(){return this.model.value.richText.map(e=>e.text).join(``)}get type(){return A.RichText}get effectiveType(){return A.RichText}get address(){return this.model.address}set address(e){this.model.address=e}get text(){return this.toString()}toCsvString(){return`"${this.text.replace(/"/g,`""`)}"`}release(){}},aa=class{constructor(e,t){this.model={address:e.address,type:A.Date,value:Ei(t,Di(e))}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return A.Date}get effectiveType(){return A.Date}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}},oa=class{constructor(e,t){if(this.model={address:e.address,type:A.Hyperlink},t){if(`formula`in t&&typeof t.formula==`string`){let e=t,n=e.result===void 0||e.result===null?``:String(e.result);this.model.text=n,this.model.hyperlink=e.hyperlink??``,e.tooltip!==void 0&&(this.model.tooltip=e.tooltip),this.model.formula=e.formula,e.result!==void 0&&(this.model.result=e.result);return}let e=ei(t);this.model.text=e.text,this.model.hyperlink=e.hyperlink,e.richText&&(this.model.richText=e.richText),e.tooltip!==void 0&&(this.model.tooltip=e.tooltip)}}get value(){let e={text:this.model.text??``,hyperlink:this.model.hyperlink??``};return this.model.richText&&this.model.richText.length>0&&(e.richText=this.model.richText),this.model.tooltip!==void 0&&(e.tooltip=this.model.tooltip),e}set value(e){let t=ei(e);this.model.text=t.text,this.model.hyperlink=t.hyperlink,t.richText?this.model.richText=t.richText:delete this.model.richText,t.tooltip===void 0?delete this.model.tooltip:this.model.tooltip=t.tooltip}get text(){return this.model.text}set text(e){this.model.richText&&delete this.model.richText,this.model.text=e}get richText(){return this.model.richText}set richText(e){Array.isArray(e)&&e.length>0?(this.model.richText=e,this.model.text=$r(e)):delete this.model.richText}get hyperlink(){return this.model.hyperlink}set hyperlink(e){this.model.hyperlink=e}get type(){return A.Hyperlink}get effectiveType(){return A.Hyperlink}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.hyperlink??``}release(){}toString(){return this.model.text??``}},sa=class{constructor(e,t){this.model={address:e.address,type:A.Merge,master:t?t.address:void 0},this._master=t,t&&Fi(t)}get value(){return wi(this._master)}set value(e){Aee(e)?(this._master&&Ii(this._master),Fi(e),this._master=e):Oi(this._master,e)}isMergedTo(e){return e===this._master}get master(){return this._master}get type(){return A.Merge}get effectiveType(){return Ci(this._master)}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return``}release(){Ii(this._master)}toString(){return this.value==null?``:this.value.toString()}},ca=class{constructor(e,t){this.cell=e,this.model={address:e.address,type:A.Formula,shareType:t?t.shareType:void 0,ref:t?t.ref:void 0,formula:t?t.formula:void 0,sharedFormula:t?t.sharedFormula:void 0,result:t?t.result:void 0,isDynamicArray:t?t.isDynamicArray:void 0}}_copyModel(e){let t={};return e.formula&&(t.formula=e.formula),e.result!==void 0&&(t.result=e.result),e.ref&&(t.ref=e.ref),e.shareType&&(t.shareType=e.shareType),e.sharedFormula&&(t.sharedFormula=e.sharedFormula),e.isDynamicArray&&(t.isDynamicArray=e.isDynamicArray),t}get value(){return this._copyModel(this.model)}set value(e){e.formula&&(this.model.formula=e.formula),e.result!==void 0&&(this.model.result=e.result),e.ref&&(this.model.ref=e.ref),e.shareType&&(this.model.shareType=e.shareType),e.sharedFormula&&(this.model.sharedFormula=e.sharedFormula),e.isDynamicArray!==void 0&&(this.model.isDynamicArray=e.isDynamicArray)}validate(e){switch(ma.getType(e)){case A.Null:case A.String:case A.Number:case A.Date:break;case A.Hyperlink:case A.Formula:default:throw new ee(String(ma.getType(e)),`Cannot process that type of result value`)}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,``).match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()||``}set formula(e){this.model.formula=e}get formulaType(){return this.model.formula?k.FormulaType.Master:this.model.sharedFormula?k.FormulaType.Shared:k.FormulaType.None}get result(){return this.model.result}set result(e){this.model.result=e}get type(){return A.Formula}get effectiveType(){let e=this.model.result;return e==null?k.ValueType.Null:typeof e==`string`?k.ValueType.String:typeof e==`number`?k.ValueType.Number:e instanceof Date?k.ValueType.Date:typeof e==`object`&&`error`in e?k.ValueType.Error:k.ValueType.Null}get address(){return this.model.address}set address(e){this.model.address=e}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){let{worksheet:e}=this.cell.row,t=D.getAddress(this.model.sharedFormula),n=e._rows[t.row-1],r=n?n.cells[t.col-1]:void 0;this._translatedFormula=r&&qi(r)?Jr(qi(r),r.address,this.model.address):void 0}return this._translatedFormula}toCsvString(){return`${this.model.result??``}`}release(){}toString(){return this.model.result?this.model.result.toString():``}},la=class{constructor(e,t){this.model={address:e.address,type:A.SharedString,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return A.SharedString}get effectiveType(){return A.SharedString}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}},ua=class{constructor(e,t){this.model={address:e.address,type:A.Boolean,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return A.Boolean}get effectiveType(){return A.Boolean}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return+!!this.model.value}release(){}toString(){return this.model.value.toString()}},da=class{constructor(e,t){this.model={address:e.address,type:A.Checkbox,value:t.checkbox}}get value(){return{checkbox:this.model.value}}set value(e){this.model.value=e.checkbox}get type(){return A.Checkbox}get effectiveType(){return A.Boolean}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return+!!this.model.value}release(){}toString(){return this.model.value.toString()}},fa=class{constructor(e,t){this.model={address:e.address,type:A.Error,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return A.Error}get effectiveType(){return A.Error}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}},pa=class{constructor(e,t){this.model={address:e.address,type:A.String,value:JSON.stringify(t),rawValue:t}}get value(){return this.model.rawValue}set value(e){this.model.rawValue=e,this.model.value=JSON.stringify(e)}get type(){return A.String}get effectiveType(){return A.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}},ma={getType(e){if(e==null)return A.Null;if(typeof e==`string`)return A.String;if(typeof e==`number`)return A.Number;if(typeof e==`boolean`)return A.Boolean;if(e instanceof Date||On(e))return A.Date;if(typeof e==`object`){if(`checkbox`in e&&typeof e.checkbox==`boolean`)return A.Checkbox;if(`hyperlink`in e&&typeof e.hyperlink==`string`&&e.hyperlink){let t=`text`in e&&typeof e.text==`string`&&e.text.length>0,n=`richText`in e&&Array.isArray(e.richText)&&e.richText.length>0,r=`formula`in e&&typeof e.formula==`string`;if(t||n||r)return A.Hyperlink}if(`formula`in e&&e.formula||`sharedFormula`in e&&e.sharedFormula)return A.Formula;if(`richText`in e&&Array.isArray(e.richText)&&e.richText.length>0)return A.RichText;if(`sharedString`in e&&e.sharedString)return A.SharedString;if(`error`in e&&e.error)return A.Error}return A.JSON},types:[{t:A.Null,f:ta},{t:A.Number,f:na},{t:A.String,f:ra},{t:A.Date,f:aa},{t:A.Hyperlink,f:oa},{t:A.Formula,f:ca},{t:A.Merge,f:sa},{t:A.JSON,f:pa},{t:A.SharedString,f:la},{t:A.RichText,f:ia},{t:A.Boolean,f:ua},{t:A.Error,f:fa},{t:A.Checkbox,f:da}].reduce((e,t)=>(e[t.t]=t.f,e),[]),create(e,t,n){let r=this.types[e];if(!r)throw new ee(String(e),`Could not create Value`);return new r(t,n)}}}));function jee(e){return D.n2l(e.number)}function ga(e){return e.width!==void 0&&e.width!==Ta}function _a(e){return{header:e.header,key:e.key,width:e.width,style:e.style,hidden:va(e),outlineLevel:ya(e),bestFit:e.bestFit}}function Mee(e){return Array.isArray(e.header)?e.header:e.header===void 0?[]:[e.header]}function va(e){return!!e.hidden}function Nee(e,t){e.hidden=t}function ya(e){return e.outlineLevel??0}function Pee(e,t){e.outlineLevel=t}function ba(e){return!!(e.outlineLevel&&e.outlineLevel>=(e.worksheet.properties.outlineLevelCol??0))}function xa(e,t){return e.width===t.width&&va(e)===t.hidden&&ya(e)===t.outlineLevel&&e.bestFit===t.bestFit&&en(e.style,t.style)}function Sa(e){if(ga(e)||va(e)||ya(e)||e.bestFit)return!1;let t=e.style;return!(t&&(t.font||t.numFmt||t.alignment||t.border||t.fill||t.protection||t.styleName))}function Ca(e){e.worksheet.colBreaks.push({id:e.number,max:Ea,man:1})}function wa(e){let t=[],n=null;return e.forEach((e,r)=>{Sa(e)?n&&=null:!n||!xa(e,n)?(n={min:r+1,max:r+1,width:e.width===void 0?Ta:e.width,style:e.style,isCustomWidth:ga(e),hidden:va(e),outlineLevel:ya(e),collapsed:ba(e),bestFit:e.bestFit},t.push(n)):n.max=r+1}),t.length?t:void 0}var Ta,Ea,Da=n((()=>{O(),an(),Ta=9,Ea=1048575}));function Oa(e,t,n){e.style[t]=n,e.cells.forEach(e=>{e&&yi(e.style,t,n)})}function ka(e,t){return{worksheet:e,number:t,cells:[],style:{},outlineLevel:0}}function Aa(e,t){return e.cells[t-1]}function ja(e){e.worksheet.rowBreaks.push({id:e.number,max:Za,man:1})}function Ma(e){let t=[];return e.cells.forEach(e=>{e&&Si(e)!==k.ValueType.Null&&(t[xi(e)]=wi(e))}),t}function Na(e){let t=[];return e.cells.forEach(e=>{e&&Si(e)!==k.ValueType.Null&&(t[xi(e)-1]=wi(e))}),t}function Pa(e){return e.cells.some(e=>e&&Si(e)!==k.ValueType.Null)}function Fa(e){return e.cells.length}function Ia(e){let t=0,n=0;return e.cells.forEach(e=>{e&&Si(e)!==k.ValueType.Null&&((!t||t>xi(e))&&(t=xi(e)),n<xi(e)&&(n=xi(e)))}),t>0?{min:t,max:n}:null}function La(e,t){Oa(e,`numFmt`,t)}function Ra(e,t){Oa(e,`font`,t)}function za(e,t){Oa(e,`alignment`,t)}function Ba(e,t){Oa(e,`border`,t)}function Va(e,t){Oa(e,`fill`,t)}function Ha(e){return e.style}function Ua(e,t){let n=Object.keys(t).filter(e=>t[e]!==void 0);if(n.length!==0){for(let r of n)bi(e.style,r,t[r]);e.cells.forEach(e=>{if(e)for(let r of n)yi(e.style,r,t[r])})}}function Wa(e){return!!e.hidden}function Ga(e,t){e.hidden=t}function Ka(e){return e.outlineLevel??0}function qa(e,t){e.outlineLevel=t}function Ja(e){return!!(e.outlineLevel&&e.outlineLevel>=(e.worksheet.properties.outlineLevelRow??0))}function Ya(e){let t=[],n=0,r=0;return e.cells.forEach(e=>{if(e){let i=Zi(e),a=e._formulaGhostOwner===void 0?i:{address:i.address,type:k.ValueType.Null,style:i.style,comment:i.comment};a&&((!n||n>xi(e))&&(n=xi(e)),r<xi(e)&&(r=xi(e)),t.push(a))}}),e.height!=null||t.length?{cells:t,number:e.number,min:n,max:r,height:e.height,customHeight:e.customHeight,style:e.style,hidden:Wa(e),outlineLevel:Ka(e),collapsed:Ja(e),dyDescent:e.dyDescent}:null}function Xa(e,t){let n=e[t];if(n!==void 0||!t.includes(`.`))return n;let r=e;for(let e of t.split(`.`)){if(typeof r!=`object`||!r)return;r=r[e]}return r}var Za,Qa=n((()=>{ha(),Qt(),Za=16383}));function $a(e){return e._name}function eo(e){return e._workbook}function to(e,t){return e._keys[t]}function no(e,t,n){e._keys[t]=n}function ro(e,t){delete e._keys[t]}function io(e,t){Object.keys(e._keys).forEach(n=>t(e._keys[n],n))}function ao(e,t){let n;if(typeof t==`string`){let r=e._keys[t];if(r)return r;n=D.l2n(t)}else n=t;if(n>e._columns.length){let t=e._columns.length+1;for(;t<=n;)e._columns.push(wo(e,t++))}return e._columns[n-1]}function oo(e,t){typeof e._commitRow==`function`&&e._commitRow(t)}function so(e,t){return e._rows[t-1]}function co(e,t,n){return e._rows.slice(t-1,t-1+n)}function lo(e,t){let n=e._rows[t-1];return n||=e._rows[t-1]=ka(e,t),n}function uo(e,t,n){if(n<1)return;let r=[];for(let i=t;i<t+n;i++)r.push(lo(e,i));return r}function fo(e,t,n){let r,i;if(typeof t==`function`?i=t:(r=t,i=n),r&&r.includeEmpty){let t=e._rows.length;for(let n=1;n<=t;n++)i(lo(e,n),n)}else e._rows.forEach(e=>{e&&Pa(e)&&i(e,e.number)})}function po(e){let t=[];return e._rows.forEach(e=>{e&&(t[e.number]=Ma(e))}),t}function mo(e,t,n){let r=D.getAddress(t,n),i=e._rows[r.row-1];return i?Aa(i,r.col):void 0}function ho(e,t,n){let r=D.getAddress(t,n);return _o(lo(e,r.row),r)}function go(e,t){let n=typeof t==`string`?De(t):t,r=[n.top,n.left,n.bottom,n.right],i=r.every(e=>Number.isInteger(e)),a=i&&r.every(e=>e>=1),o=typeof t==`string`?t:a?ze(n):`{ top: ${n.top}, left: ${n.left}, bottom: ${n.bottom}, right: ${n.right} }`;if(!i)throw new _(o,`expected a bounded A1 range like "G7:H19" — whole-column and whole-row references have no bounds to read`);if(!a)throw new _(o,`range bounds must be 1-based row and column numbers; this range is unset or empty`);if(n.sheetName){let t=$a(e);if(n.sheetName.toLowerCase()!==t.toLowerCase())throw new h(`Range "${o}" refers to worksheet "${n.sheetName}" but was read from worksheet "${t}"`)}let s=Math.min(n.top,n.bottom),c=Math.max(n.top,n.bottom),l=Math.min(n.left,n.right),u=Math.max(n.left,n.right),d=u-l+1,f=Array(c-s+1);for(let t=s;t<=c;t++){let n=Array(d),r=so(e,t);for(let e=l;e<=u;e++){let t=r?Aa(r,e):void 0;n[e-l]=t?wi(t):null}f[t-s]=n}return f}function _o(e,t){let n=e.cells[t.col-1];return n||(n=ni(e,ao(e.worksheet,t.col),t.address),e.cells[t.col-1]=n),n}function vo(e,t){let n;if(typeof t==`string`){let r=to(e.worksheet,t);n=r?r.number:D.l2n(t)}else n=t;return e.cells[n-1]||_o(e,{address:D.encodeAddress(e.number,n),row:e.number,col:n})}function yo(e,t){if(e.cells=[],t){if(t instanceof Array){let n=0;Object.prototype.hasOwnProperty.call(t,`0`)&&(n=1),t.forEach((t,r)=>{t!==void 0&&Oi(_o(e,{address:D.encodeAddress(e.number,r+n),row:e.number,col:r+n}),t)})}else{let n=t;io(e.worksheet,(t,r)=>{let i=Xa(n,r);i!==void 0&&Oi(_o(e,{address:D.encodeAddress(e.number,t.number),row:e.number,col:t.number}),i)})}}}function bo(e,t){(e.key&&to(e.worksheet,e.key))===e&&ro(e.worksheet,e.key),e.key=t,t&&no(e.worksheet,t,e)}function xo(e,t,n){let r,i;typeof t==`function`?i=t:(r=t,i=n);let a=e.number;fo(e.worksheet,r??{},(e,t)=>{i(vo(e,a),t)})}function So(e){let t=[],n=e.worksheet._rows;for(let r=0;r<n.length;r++){let i=n[r];if(!i)continue;let a=Aa(i,e.number);a&&Si(a)!==k.ValueType.Null&&(t[i.number]=wi(a))}return t}function Co(e,t){t?(bo(e,t.key),e.width=t.width===void 0?Jo:t.width,e.outlineLevel=t.outlineLevel,e.style=t.style?Kr(t.style)??{}:{},Eo(e,t.header),e.hidden=!!t.hidden,e.bestFit=t.bestFit):(e.header=void 0,e.key=void 0,e.width=void 0,e.style={},e.outlineLevel=0,e.bestFit=void 0)}function wo(e,t,n){let r={worksheet:e,number:t,style:{}};return n!==!1&&Co(r,n??void 0),r}function To(e,t){Co(e,t)}function Eo(e,t){t===void 0?e.header=void 0:(e.header=t,Mee(e).forEach((t,n)=>{Oi(ho(e.worksheet,n+1,e.number),t)}))}function Do(e,t){let n=[],r=1,i=0;for(t=(t??[]).sort((e,t)=>e.min-t.min);i<t.length;){let a=t[i++];for(;r<a.min;)n.push(wo(e,r++));for(;r<=a.max;)n.push(wo(e,r++,a))}return n}function Oo(e,t){e.style.numFmt=t,xo(e,e=>{oi(e,t)})}function ko(e,t){let n=Object.keys(t).filter(e=>t[e]!==void 0);if(n.length!==0){for(let r of n)bi(e.style,r,t[r]);xo(e,e=>{for(let r of n)yi(e.style,r,t[r])})}}function Ao(e,t){if(t.number!==e.number)throw new h(`Invalid row number in model`);e.cells=[];let n;t.cells.forEach(t=>{switch(t.type){case $i.Merge:break;default:{let r;if(t.address)r=D.decodeAddress(t.address);else if(n){let{row:e}=n,t=n.col+1;r={row:e,col:t,address:D.encodeAddress(e,t),$col$row:`$${D.n2l(t)}$${e}`}}if(n=r,!r)break;Qi(_o(e,r),t);break}}}),e.height=t.height==null?void 0:t.height,e.customHeight=t.customHeight==null?void 0:t.customHeight,e.hidden=t.hidden,e.outlineLevel=t.outlineLevel??0,e.dyDescent=t.dyDescent,e.style=t.style?structuredClone(t.style):{}}function jo(e,t,n){let r=null,i;if(typeof t==`function`?i=t:(r=t,i=n),r&&r.includeEmpty){let t=e.cells.length;for(let n=1;n<=t;n++)i(vo(e,n),n)}else e.cells.forEach((e,t)=>{e&&Si(e)!==k.ValueType.Null&&i(e,t+1)})}function Mo(e,t,n,...r){let i=t+n,a=r.length-n,o=e.cells.length,s,c,l;if(a<0)for(s=t+r.length;s<=o;s++)l=e.cells[s-1],c=e.cells[s-a-1],c?(l=vo(e,s),Oi(l,c._formulaGhostOwner===void 0?wi(c):null),l.style=Kr(c.style)??{},Gi(l,Wi(c))):l&&(Oi(l,null),l.style={},Gi(l,void 0));else if(a>0)for(s=o;s>=i;s--)c=e.cells[s-1],c?(l=vo(e,s+a),Oi(l,c._formulaGhostOwner===void 0?wi(c):null),l.style=Kr(c.style)??{},Gi(l,Wi(c))):e.cells[s+a-1]=void 0;for(s=0;s<r.length;s++)l=vo(e,t+s),Oi(l,r[s]),l.style={},Gi(l,void 0)}function No(e){oo(e.worksheet,e)}function Po(e){let t=e._rows,n=t.length;for(;n>0&&t[n-1]===void 0;)n--;return n}function Fo(e){return Po(e)+1}function Io(e,t,n,r=!1){let i=lo(e,t),a=lo(e,n);a.style=Kr(i.style)??{},jo(i,{includeEmpty:r},(e,t)=>{vo(a,t).style=Kr(e.style)??{}}),a.height=i.height}function Lo(e,t,n=`n`){n[0]===`o`&&so(e,t+1)!==void 0?Io(e,t+1,t,n[1]===`+`):n[0]===`i`&&so(e,t-1)!==void 0&&Io(e,t-1,t,n[1]===`+`)}function Ro(e,t,n=`n`){let r=Fo(e),i=lo(e,r);return yo(i,t),Lo(e,r,n[0]===`i`?n:`n`),i}function zo(e,t,n=`n`){let r=[];return t.forEach(t=>{r.push(Ro(e,t,n))}),r}function Bo(e,t){return e.tables[t]}function Vo(e){return Object.values(e.tables)}function Ho(e,t=0,n=0){let r=Math.max(0,Math.trunc(t)),i=Math.max(0,Math.trunc(n));if(r===0&&i===0){Wo(e);return}let a=`${D.n2l(r+1)}${i+1}`;e.views=[{state:`frozen`,...r===0?{}:{xSplit:r},...i===0?{}:{ySplit:i},topLeftCell:a,activeCell:a}]}function Uo(e,t=0,n=0){let r=Math.max(0,Math.trunc(t)),i=Math.max(0,Math.trunc(n));if(r===0&&i===0){Wo(e);return}e.views=[{state:`split`,...r===0?{}:{xSplit:r},...i===0?{}:{ySplit:i},activePane:r>0&&i>0?`bottomRight`:r>0?`topRight`:`bottomLeft`}]}function Wo(e){e.views=[]}function Go(e){let t=e.views?.[0];return t===void 0||t.state===`normal`?void 0:t}function Ko(e,t){e.autoFilter=t}function qo(e){return e.autoFilter??null}var Jo,Yo=n((()=>{ha(),Da(),Qt(),qe(),Qa(),E(),O(),qr(),Jo=9}));function Xo(e){e.table.sortStateXml=void 0,e.table.sortStateAutoFilterRef=void 0,e.table.autoFilterSortStateXml=void 0,e.table.autoFilterSortStateRef=void 0}function Zo(e){let t=e.replace(Os,`_`),n=!1;return t.startsWith(`\\`)&&(n=!0,t=t.slice(1)),t=t.replace(ks,``),n&&(t=`\\${t}`),t.length>0&&!As.test(t)&&(t=`_${t}`),t.length===0?`_Table`:(t.length===1&&Ds.has(t)&&(t=`_${t}`),(Ts.test(t)||Es.test(t))&&(t=`_${t}`),t.length>ws&&(t=t.slice(0,ws)),t)}function Qo(e,t){let n={worksheet:e,table:t};if(t){if(Array.isArray(t.rows)&&t.rows.length===0&&t.tableRef){let n=D.decode(t.tableRef);if(`dimensions`in n){let r=n.top+(t.headerRow===!1?0:1),i=n.bottom-+(t.totalsRow===!0);if(i>=r)for(let a=r;a<=i;a++){let r=lo(e,a),i=[];for(let e=n.left;e<=n.right;e++)i.push(wi(vo(r,e)));t.rows.push(i)}}}is(n),as(n)}return n}function $o(e,t){if(t.totalsRowFunction===`none`)return null;if(t.totalsRowFunction===`custom`)return t.totalsRowFormula??null;let n=t.totalsRowFunction?js[t.totalsRowFunction]:void 0;if(n!==void 0)return`SUBTOTAL(${n},${e.table.name}[${t.name}])`;throw new ie(`Invalid Totals Row Function: ${t.totalsRowFunction}`)}function es(e){return e.table.columns.length}function ts(e){return e.table.rows.length}function ns(e){return ts(e)+ +!!e.table.headerRow}function rs(e){return ns(e)+ +!!e.table.totalsRow}function is(e){let{table:t}=e,n=(e,t,n)=>{e[t]===void 0&&(e[t]=n)};n(t,`headerRow`,!0),n(t,`totalsRow`,!1),n(t,`style`,{});let r=t.style;n(r,`theme`,`TableStyleMedium2`),n(r,`showFirstColumn`,!1),n(r,`showLastColumn`,!1),n(r,`showRowStripes`,!1),n(r,`showColumnStripes`,!1),t.name&&=Zo(t.name),t.displayName&&=Zo(t.displayName);let i=(e,t)=>{if(!e)throw new ie(t)};i(!!t.name,`Table must have a name`),i(!!t.ref,`Table must have ref`),i(!!t.columns,`Table must have column definitions`),i(!!t.rows,`Table must have row definitions`),t.tl=D.decodeAddress(t.ref);let{row:a,col:o}=t.tl;i(a>0,`Table must be on valid row`),i(o>0,`Table must be on valid col`);let s=es(e),c=ns(e),l=rs(e);t.autoFilterRef=D.encode(a,o,a+c-1,o+s-1),t.tableRef=D.encode(a,o,a+l-1,o+s-1),t.columns.forEach((t,r)=>{i(!!t.name,`Column ${r} must have a name`),r===0?n(t,`totalsRowLabel`,`Total`):(n(t,`totalsRowFunction`,`none`),t.totalsRowFormula=$o(e,t)??void 0)})}function as(e){let t=(e,t)=>{t&&Object.assign(e.style,t)},{worksheet:n,table:r}=e,{row:i,col:a}=r.tl,o=0;if(r.headerRow){let e=lo(n,i+o++);r.columns.forEach((n,r)=>{let{style:i,name:o}=n,s=vo(e,a+r);Oi(s,o),t(s,i)})}if(r.rows.forEach(e=>{let s=lo(n,i+o++);e.forEach((e,n)=>{let i=vo(s,a+n);if(typeof e==`object`&&e&&`formula`in e&&typeof e.formula==`string`){let t=e,n=r.qualifyImplicitStructuredReferences===!0;Oi(i,{...t,formula:n?t.formula.replace(/(^|[^A-Za-z0-9_])\[@\[?([^[\]]+?)\]?\]/g,`$1${r.name}[[#This Row],[$2]]`):t.formula})}else Oi(i,e);t(i,r.columns[n]?.style)})}),r.totalsRow){let s=lo(n,i+o++);r.columns.forEach((n,r)=>{let i=vo(s,a+r);if(r===0)Oi(i,n.totalsRowLabel);else{let t=$o(e,n);t?Oi(i,{formula:t,result:n.totalsRowResult}):Oi(i,null)}t(i,n.style)})}}function os(e){return e.table}function ss(e,t){e.table=t}function cs(e){e._cache||={ref:ds(e),width:es(e),tableHeight:rs(e)}}function ls(e){if(!e._cache)return;is(e);let t=D.decodeAddress(e._cache.ref);if(ds(e)!==e._cache.ref)for(let n=0;n<e._cache.tableHeight;n++){let r=lo(e.worksheet,t.row+n);for(let n=0;n<e._cache.width;n++)Oi(vo(r,t.col+n),null)}else{for(let n=rs(e);n<e._cache.tableHeight;n++){let r=lo(e.worksheet,t.row+n);for(let n=0;n<e._cache.width;n++)Oi(vo(r,t.col+n),null)}for(let n=0;n<rs(e);n++){let r=lo(e.worksheet,t.row+n);for(let n=es(e);n<e._cache.width;n++)Oi(vo(r,t.col+n),null)}}as(e),e._cache=void 0}function Fee(e,t,n,r){cs(e),Xo(e),n===void 0?e.table.rows.push(t):e.table.rows.splice(n,0,t),r?.commit!==!1&&ls(e)}function Iee(e,t,n=1,r){cs(e),n>0&&Xo(e),e.table.rows.splice(t,n),r?.commit!==!1&&ls(e)}function Lee(e,t){return{table:e,column:e.table.columns[t],index:t}}function Ree(e,t,n,r){cs(e),Xo(e),r===void 0?(e.table.columns.push(t),e.table.rows.forEach((e,t)=>{e.push(n[t])})):(e.table.columns.splice(r,0,t),e.table.rows.forEach((e,t)=>{e.splice(r,0,n[t])}))}function zee(e,t,n=1){cs(e),n>0&&Xo(e),e.table.columns.splice(t,n),e.table.rows.forEach(e=>{e.splice(t,n)})}function us(e,t,n,r){cs(e),t[n]=r}function ds(e){return e.table.ref}function Bee(e,t){e.table.ref!==t&&Xo(e),us(e,e.table,`ref`,t)}function fs(e){return e.table.name}function Vee(e,t){cs(e);let n=Zo(t),r=e.table.name;if(n===r)return;let i=e.worksheet,a=i?.tables,o=eo(i)?._tableNames;if(a&&a[r]===e){let t=n.toLowerCase(),i=r.toLowerCase();if(t!==i&&o?.has(t))throw new ie(`Table name "${n}" already exists in the workbook (case-insensitive).`);delete a[r],a[n]=e,o&&(o.delete(i),o.add(t))}e.table.name=n}function ps(e){return e.table.displayName||e.table.name}function Hee(e,t){cs(e),e.table.displayName=Zo(t)}function Uee(e){return e.table.headerRow}function Wee(e,t){e.table.headerRow!==t&&Xo(e),us(e,e.table,`headerRow`,t)}function Gee(e){return e.table.totalsRow}function Kee(e,t){e.table.totalsRow!==t&&e.table.rawAttributes&&delete e.table.rawAttributes.totalsRowShown,us(e,e.table,`totalsRow`,t)}function ms(e){return e.table.style||(e.table.style={}),e.table.style}function qee(e){return e.table.style?.theme}function Jee(e,t){ms(e).theme=t}function Yee(e){return e.table.style?.showFirstColumn}function Xee(e,t){ms(e).showFirstColumn=t}function Zee(e){return e.table.style?.showLastColumn}function Qee(e,t){ms(e).showLastColumn=t}function $ee(e){return e.table.style?.showRowStripes}function ete(e,t){ms(e).showRowStripes=t}function tte(e){return e.table.style?.showColumnStripes}function nte(e,t){ms(e).showColumnStripes=t}function hs(e,t,n){cs(e.table),e.column[t]=n}function rte(e){return e.column.name}function ite(e,t){hs(e,`name`,t)}function gs(e){return e.column.filterButton}function _s(e,t){e.column.filterButton=t}function ate(e){return e.column.style}function vs(e,t){hs(e,`style`,t)}function ys(e){return e.column.totalsRowLabel}function bs(e,t){hs(e,`totalsRowLabel`,t)}function xs(e){return e.column.totalsRowFunction}function Ss(e,t){hs(e,`totalsRowFunction`,t)}function Cs(e){return e.column.totalsRowResult}function ote(e,t){hs(e,`totalsRowResult`,t)}function ste(e){return e.column.totalsRowFormula}function cte(e,t){hs(e,`totalsRowFormula`,t)}var ws,Ts,Es,Ds,Os,ks,As,js,Ms=n((()=>{ha(),Yo(),E(),O(),ws=255,Ts=/^[A-Za-z]{1,3}\d+$/,Es=/^[Rr]\d+[Cc]\d+$/,Ds=new Set([`C`,`c`,`R`,`r`]),Os=/\s/g,ks=/[^\p{L}\p{N}_.]/gu,As=/^[\p{L}_\\]/u,js={average:101,countNums:102,count:103,max:104,min:105,stdDev:107,var:110,sum:109}}));function Ns(e){return D.l2n(e.toUpperCase())-1}function Ps(e){return D.n2l(e+1)}function Fs(e){return parseInt(e,10)-1}function Is(e){return String(e+1)}function Ls(e){let t=D.decodeAddress(e.toUpperCase());return{c:t.col-1,r:t.row-1}}function Rs(e){return D.encodeAddress(e.r+1,e.c+1)}function zs(e){let t=e.indexOf(`:`);if(t===-1){let t=Ls(e);return{s:t,e:{...t}}}return{s:Ls(e.slice(0,t)),e:Ls(e.slice(t+1))}}function Bs(e,t){if(t===void 0){let t=e;return Bs(t.s,t.e)}let n=Rs(e),r=Rs(t);return n===r?n:`${n}:${r}`}function Vs(e){return/^[A-Za-z_][A-Za-z0-9_]*$/.test(e)?e:`'${e.replace(/'/g,`''`)}'`}var Hs=n((()=>{O()}));function Us(e,t){return{name:t.name,categories:t.categories?Qs(e,t.categories):void 0,values:Qs(e,t.values)}}function Ws(e,t,n){let r=typeof t==`string`?Bo(e,t):t;if(!r)throw new w(`Table not found: ${String(t)}.`);let i=os(r),a=D.decode(i.tableRef??i.ref);if(!(`top`in a)||a.bottom<a.top)throw new w(`Invalid table range: ${i.ref}.`);let o=i.headerRow!==!1,s=a.top+ +!!o,c=a.bottom-+!!i.totalsRow;if(c<s)throw new w(`Table has no data rows: ${i.name}.`);let l=i.columns.map(e=>e.name),u=Zs(l,n.categoryColumn??0),d=n.valueColumns,f=d&&d.length>0?d.map(e=>Zs(l,e)):i.columns.map((e,t)=>t).filter(e=>e!==u);if(f.length===0)throw new w(`Table has no value columns: ${i.name}.`);return{dataStartRow:s,dataEndRow:c,tableLeft:a.left,tableName:i.name,columnNames:l,categoryIndex:u,valueColumns:f,sheetName:$a(e),structured:n.structuredReferences!==!1}}function Gs(e,t){if(e.structured){let n=e.columnNames[t];if(n===void 0)throw new w(`Table column at index ${t} has no name; cannot emit a structured reference.`);return Js(e.tableName,n)}return ec(e.sheetName,e.dataStartRow,e.tableLeft+t,e.dataEndRow,e.tableLeft+t)}function Ks(e,t,n){let r=Ws(e,t,n),i=Gs(r,r.categoryIndex),a=r.valueColumns.map(e=>({name:r.columnNames[e],categories:i,values:Gs(r,e)}));return{...ac(n),series:a}}function qs(e,t,n){if(t.length===0)throw new w(`chartOptionsFromRows requires at least one row.`);let r=nc(e,t,n),i=$a(e),a=r.yKeys.map((e,t)=>({name:e,categories:ec(i,r.dataStartRow,r.startCol,r.dataEndRow,r.startCol),values:ec(i,r.dataStartRow,r.startCol+t+1,r.dataEndRow,r.startCol+t+1)}));return{...oc(n),series:a}}function Js(e,t){return`${Ys(e)}[${Xs(t)}]`}function Ys(e){if(!/^[A-Za-z_\u00A0-\uFFFF][A-Za-z0-9_.\u00A0-\uFFFF]*$/.test(e))throw new w(`Invalid Excel table name for structured reference: ${JSON.stringify(e)}.`);if(/[\u00A0\u1680\u2000-\u200F\u2028\u2029\u202F\u205F\u3000\uFEFF]/.test(e))throw new w(`Excel table name contains whitespace / separator / zero-width character: ${JSON.stringify(e)}.`);return e}function Xs(e){return e.replace(/([[\]#'@])/g,`'$1`)}function Zs(e,t){if(typeof t==`number`){if(t<0||t>=e.length)throw new w(`Table column index out of range: ${t}.`);return t}let n=t.toLowerCase(),r=e.findIndex(e=>e!==void 0&&e.toLowerCase()===n);if(r<0)throw new w(`Table column not found: ${t}.`);return r}function Qs(e,t){let n=t.indexOf(`!`);if(n>=0){let e=t.slice(0,n),r=t.slice(n+1),i=e.length>=2&&e.startsWith(`'`)&&e.endsWith(`'`)?e.slice(1,-1).replace(/''/g,`'`):e;return $s(r)?`${Vs(i)}!${tc(r)}`:`${Vs(i)}!${r}`}return $s(t)?`${Vs(e)}!${tc(t)}`:t}function $s(e){if(!/^\$?[A-Za-z]{1,3}\$?\d+(:\$?[A-Za-z]{1,3}\$?\d+)?$|^\$?[A-Za-z]{1,3}:\$?[A-Za-z]{1,3}$|^\$?\d+:\$?\d+$/.test(e))return!1;let t=e.replace(/\$/g,``).match(/[A-Za-z]+/g);if(t)for(let e of t){let t=D.l2n(e.toUpperCase());if(!t||t>16384)return!1}return!0}function ec(e,t,n,r,i){return`${Vs(e)}!$${D.n2l(n)}$${t}:$${D.n2l(i)}$${r}`}function tc(e){let t=D.decode(e.toUpperCase());return`top`in t?`$${D.n2l(t.left)}$${t.top}:$${D.n2l(t.right)}$${t.bottom}`:`$${D.n2l(t.col)}$${t.row}`}function nc(e,t,n){if(n.sheetName!==void 0&&!ic(n.sheetName,$a(e)))throw new w(`sheetName must match the target worksheet: got ${JSON.stringify(n.sheetName)}, expected ${JSON.stringify($a(e))}.`);let r=D.decodeAddress(n.startCell??`A1`),i=n.includeHeaders!==!1,a=Array.isArray(n.y)?n.y:[n.y];if(a.some(e=>e===n.x))throw new w(`chart y columns must not include the x key: x=${JSON.stringify(n.x)} appears in y=${JSON.stringify(a)}.`);let o=[n.x,...a],s=r.row,c=r.col;i&&o.forEach((t,n)=>{Oi(ho(e,s,c+n),t)});let l=+!!i;t.forEach((t,n)=>{o.forEach((r,i)=>{Oi(ho(e,s+l+n,c+i),rc(t[r],r))})});let u=s+l;return{yKeys:a,startCol:c,dataStartRow:u,dataEndRow:u+t.length-1}}function rc(e,t){if(e==null)return null;if(typeof e==`string`||typeof e==`number`||typeof e==`boolean`||e instanceof Date)return e;throw new w(`Unsupported row value for column ${JSON.stringify(t)}: ${typeof e}. Expected string | number | boolean | Date | null | undefined.`)}function ic(e,t){return e.toLowerCase()===t.toLowerCase()}function ac(e){let{categoryColumn:t,valueColumns:n,structuredReferences:r,...i}=e;return i}function oc(e){let{x:t,y:n,sheetName:r,startCell:i,includeHeaders:a,...o}=e;return o}function sc(e,t,n){let r=Ws(e,t,n),i=Gs(r,r.categoryIndex),a=r.valueColumns.map(e=>({name:r.columnNames[e],values:Gs(r,e)}));return{...ac(n),categories:i,series:a}}function cc(e,t,n){if(t.length===0)throw new w(`chartExOptionsFromRows requires at least one row.`);let r=nc(e,t,n),i=$a(e),a=ec(i,r.dataStartRow,r.startCol,r.dataEndRow,r.startCol),o=r.yKeys.map((e,t)=>({name:e,values:ec(i,r.dataStartRow,r.startCol+t+1,r.dataEndRow,r.startCol+t+1)}));return{...oc(n),categories:a,series:o}}var lc=n((()=>{ha(),Ms(),Yo(),E(),Hs(),O()}));function uc(e,t){return{a:e.a*t.a+e.c*t.b,b:e.b*t.a+e.d*t.b,c:e.a*t.c+e.c*t.d,d:e.b*t.c+e.d*t.d,e:e.a*t.e+e.c*t.f+e.e,f:e.b*t.e+e.d*t.f+e.f}}function dc(e,t,n){return{x:e.a*t+e.c*n+e.e,y:e.b*t+e.d*n+e.f}}function fc(e){let t=Math.abs(e.a*e.d-e.b*e.c);return t>0?Math.sqrt(t):1}function pc(e){return Math.atan2(e.b,e.a)*180/Math.PI}function mc(e,t,n,r,i,a,o){let s=Math.abs(t),c=Math.abs(n);if(s===0||c===0||e.x===o.x&&e.y===o.y)return[{op:`line`,x:o.x,y:o.y}];let l=r*Math.PI/180,u=Math.cos(l),d=Math.sin(l),f=(e.x-o.x)/2,p=(e.y-o.y)/2,m=u*f+d*p,h=-d*f+u*p,g=m*m/(s*s)+h*h/(c*c);if(g>1){let e=Math.sqrt(g);s*=e,c*=e}let _=s*s,v=c*c,y=Math.max(0,_*v-_*h*h-v*m*m),b=_*h*h+v*m*m,ee=(i===a?-1:1)*Math.sqrt(y/b),x=ee*s*h/c,te=-ee*c*m/s,ne=u*x-d*te+(e.x+o.x)/2,S=d*x+u*te+(e.y+o.y)/2,re=(e,t,n,r)=>{let i=e*n+t*r,a=Math.hypot(e,t)*Math.hypot(n,r);return(e*r-t*n<0?-1:1)*Math.acos(Math.max(-1,Math.min(1,i/a)))},C=(m-x)/s,w=(h-te)/c,ie=(-m-x)/s,ae=(-h-te)/c,oe=re(1,0,C,w),T=re(C,w,ie,ae);!a&&T>0?T-=2*Math.PI:a&&T<0&&(T+=2*Math.PI);let se=Math.max(1,Math.ceil(Math.abs(T)/(Math.PI/2))),E=T/se,ce=4/3*Math.tan(E/4),D=[],O=oe,le=e.x,ue=e.y;for(let e=0;e<se;e++){let e=O+E,t=e=>{let t=Math.cos(e),n=Math.sin(e);return{x:ne+s*u*t-c*d*n,y:S+s*d*t+c*u*n}},n=e=>{let t=Math.cos(e),n=Math.sin(e);return{x:-s*u*n-c*d*t,y:-s*d*n+c*u*t}},r=n(O),i=t(e),a=n(e);D.push({op:`cubic`,x1:le+ce*r.x,y1:ue+ce*r.y,x2:i.x-ce*a.x,y2:i.y-ce*a.y,x:i.x,y:i.y}),O=e,le=i.x,ue=i.y}return D}function hc(e,t,n,r,i,a){let o=(n,r)=>({x:e+Math.cos(n)*r,y:t+Math.sin(n)*r}),s=Math.abs(a-i),c=s>=Math.PI*2-1e-9,l=(e,t)=>{let n=o(i,e),r=o(i+Math.PI,e);return[{op:`move`,x:n.x,y:n.y},...mc(n,e,e,0,!1,t,r),...mc(r,e,e,0,!1,t,n),{op:`close`}]};if(c)return r>0?[...l(n,!0),...l(r,!1)]:l(n,!0);let u=o(i,n),d=o(a,n),f=s>Math.PI,p=a>i;if(r>0){let e=o(a,r),t=o(i,r);return[{op:`move`,x:u.x,y:u.y},...mc(u,n,n,0,f,p,d),{op:`line`,x:e.x,y:e.y},...mc(e,r,r,0,f,!p,t),{op:`close`}]}return[{op:`move`,x:e,y:t},{op:`line`,x:u.x,y:u.y},...mc(u,n,n,0,f,p,d),{op:`close`}]}function gc(e,t=1){let n=[],r=[],i={x:0,y:0},a=e=>{r.length>=2&&n.push({points:r,closed:e}),r=[]};for(let n of e)switch(n.op){case`move`:a(!1),i={x:n.x,y:n.y},r=[{x:i.x*t,y:i.y*t}];break;case`line`:i={x:n.x,y:n.y},r.push({x:i.x*t,y:i.y*t});break;case`cubic`:{let e=Math.hypot(n.x1-i.x,n.y1-i.y)+Math.hypot(n.x2-n.x1,n.y2-n.y1)+Math.hypot(n.x-n.x2,n.y-n.y2),a=Math.max(4,Math.min(64,Math.ceil(e*t/3)));for(let e=1;e<=a;e++){let o=e/a,s=1-o,c=s*s*s*i.x+3*s*s*o*n.x1+3*s*o*o*n.x2+o*o*o*n.x,l=s*s*s*i.y+3*s*s*o*n.y1+3*s*o*o*n.y2+o*o*o*n.y;r.push({x:c*t,y:l*t})}i={x:n.x,y:n.y};break}case`close`:a(!0)}return a(!1),n}function _c(e,t,n,r,i){let a=Math.max(0,Math.min(i,Math.min(n,r)/2));if(a===0)return[{op:`move`,x:e,y:t},{op:`line`,x:e+n,y:t},{op:`line`,x:e+n,y:t+r},{op:`line`,x:e,y:t+r},{op:`close`}];let o=a*bc,s=e+n,c=t+r;return[{op:`move`,x:e+a,y:t},{op:`line`,x:s-a,y:t},{op:`cubic`,x1:s-a+o,y1:t,x2:s,y2:t+a-o,x:s,y:t+a},{op:`line`,x:s,y:c-a},{op:`cubic`,x1:s,y1:c-a+o,x2:s-a+o,y2:c,x:s-a,y:c},{op:`line`,x:e+a,y:c},{op:`cubic`,x1:e+a-o,y1:c,x2:e,y2:c-a+o,x:e,y:c-a},{op:`line`,x:e,y:t+a},{op:`cubic`,x1:e,y1:t+a-o,x2:e+a-o,y2:t,x:e+a,y:t},{op:`close`}]}function vc(e,t,n){return{kind:`rect`,x:e.x,y:e.y,width:e.width,height:e.height,paint:t,...n===void 0?{}:{rx:n}}}var yc,bc,xc=n((()=>{yc={a:1,b:0,c:0,d:1,e:0,f:0},bc=.5522847498307936}));function Sc(){if(kc!==void 0)return kc;let e=Intl.Segmenter;return kc=e?new e(void 0,{granularity:`grapheme`}):null,kc}function Cc(e){return e>=768&&e<=879||e>=6832&&e<=6911||e>=7616&&e<=7679||e>=8400&&e<=8447||e>=65056&&e<=65071}function wc(e){return e>=65024&&e<=65039||e>=917760&&e<=917999}function Tc(e){return e>=127995&&e<=127999}function Ec(e){return e>=127462&&e<=127487}function Dc(e){let t=[...e],n=[];for(let e=0;e<t.length;e++){let r=t[e];for(Ec(t[e].codePointAt(0))&&e+1<t.length&&Ec(t[e+1].codePointAt(0))&&(r+=t[++e]);e+1<t.length;){let n=t[e+1].codePointAt(0);if(Cc(n)||wc(n)||Tc(n))r+=t[++e];else if(n===8205&&e+2<t.length)r+=t[++e],r+=t[++e];else break}n.push(r)}return n}function Oc(e){let t=Sc();return t?[...t.segment(e)].map(e=>e.segment):Dc(e)}var kc,Ac=n((()=>{}));function jc(e){if(e<33)return!1;switch(e){case 33:case 37:case 41:case 44:case 46:case 58:case 59:case 63:case 93:case 125:case 8211:case 8212:case 8217:case 8221:case 8229:case 8230:case 8240:case 8242:case 8243:case 8252:case 8263:case 8264:case 8265:case 8451:case 176:case 162:case 183:return!0}if(e>=12289&&e<=12351)switch(e){case 12289:case 12290:case 12293:case 12297:case 12299:case 12301:case 12303:case 12305:case 12309:case 12311:case 12313:case 12315:case 12316:case 12319:case 12347:return!0;default:return!1}switch(e){case 12353:case 12355:case 12357:case 12359:case 12361:case 12387:case 12419:case 12421:case 12423:case 12430:case 12437:case 12438:case 12443:case 12444:case 12445:case 12446:case 12449:case 12451:case 12453:case 12455:case 12457:case 12483:case 12515:case 12517:case 12519:case 12526:case 12533:case 12534:case 12539:case 12540:case 12541:case 12542:return!0}switch(e){case 65281:case 65285:case 65289:case 65292:case 65294:case 65306:case 65307:case 65311:case 65341:case 65373:case 65376:case 65377:case 65379:case 65380:case 65381:case 65392:case 65438:case 65439:return!0;default:return!1}}function Mc(e){if(e<35)return!1;switch(e){case 35:case 36:case 40:case 91:case 123:case 163:case 165:case 8364:case 8216:case 8220:return!0}switch(e){case 12296:case 12298:case 12300:case 12302:case 12304:case 12308:case 12310:case 12312:case 12314:case 12317:return!0}switch(e){case 65283:case 65284:case 65288:case 65339:case 65371:case 65375:case 65378:case 65505:case 65509:return!0;default:return!1}}function Nc(e){return e>=12288&&e<=12799||e>=12800&&e<=13311||e>=13312&&e<=40959||e>=40960&&e<=42191||e>=4352&&e<=4607||e>=43360&&e<=43391||e>=55216&&e<=55295||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65135||e>=65281&&e<=65376||e>=65377&&e<=65500||e>=131072&&e<=262143}function Pc(e){return e===32||e===9||e===12288}function Fc(e){return e===160||e===8239||e===8199||e===8209||e===8288||e===65279}function Ic(e,t){return Fc(e)||Fc(t)||Mc(e)||jc(t)?!1:Pc(e)?!0:Pc(t)?!1:e===45||e===65293?!0:t===45||t===65293?!1:Nc(e)||Nc(t)}function Lc(e){let t=new Set;for(let n of e)Rc.has(n)||t.add(n);return t}var Rc,zc,lte=n((()=>{Rc=new Set([...`国会体学医来内声点数断礼恋乱争没尽双与万号台条虫画写区当独表温参`,...`用作動車馬鳥魚門長風飛語東館間書問時者和平多少大小上下中文年月日分`]),zc={simplified:``,traditional:``,japanese:``},Lc(zc.simplified=`这么说时问间书车马鸟龙鱼东语门长风飞鸡鸭鹅们为产儿个义乡买亚亲优传伤价众农历术乐观规视图归录动轮报电话译认识边远进过样张单击备药觉带层战广厂丛丝岁汉难阳阴云务劳态终纪红级约纸经组织给统绝维绿续网罗联节荣设访证评诉词试诗诚误请读课谁调谈谢钟钱铁银锁镇闭闻闲阅际陆陈队阶阵饭饮饰饱饼馆头颜题实县圆驿济杂龄气劝关验压齿滨简丽`),Lc(zc.traditional=`實廣點圖鐵經與歲對戰樣單發兩價氣勸觀關歸驗讀譯壓醫齒濱盡國體學來內聲數變豐斷禮證雜齡縣圓驛濟歡舊據舉虛峽狹曉驅勳徑莖惠揭雞擴殼覺嶽樂渴卷陷龜犧溫謠搖應歐穩畫惡亂假藝擊權獻顯嚴們這麼說臺灣號簡麗區寫參賣`),Lc(zc.japanese=`実県円駅鉄経済蔵雑齢広歳戦様単験読訳価気勧観関帰圧悪謡揺応欧穏仮拡殻岳楽渇巻陥歓亀犠旧拠挙虚峡狭暁駆勲径茎恵掲鶏芸撃権献顕厳変豊証歯浜戯虜隠壊懐拝斎縄嬢壌譲醸嘱触寝慎尋随髄枢瀬繊禅遷薦壮聡`)}));function ute(e){return e>=8986&&e<=8987||e>=9193&&e<=9196||e===9200||e===9203||e>=9725&&e<=9726||e>=9748&&e<=9749||e>=9800&&e<=9811||e===9855||e===9875||e===9889||e>=9898&&e<=9899||e>=9917&&e<=9918||e>=9924&&e<=9925||e===9934||e===9940||e===9962||e>=9970&&e<=9971||e===9973||e===9978||e===9981||e===9989||e>=9994&&e<=9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e>=11035&&e<=11036||e===11088||e===11093}function dte(e){return e>=4352&&e<=4447||e>=11904&&e<=12350||e>=12353&&e<=13311||e>=13312&&e<=19903||e>=19968&&e<=40959||e>=40960&&e<=42191||e>=43360&&e<=43391||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65135||e>=65280&&e<=65376||e>=65504&&e<=65510||ute(e)||e>=126980&&e<=126980||e>=127183&&e<=127183||e>=127374&&e<=127374||e>=127377&&e<=127386||e>=127462&&e<=127487||e>=127488&&e<=127743||e>=127744&&e<=129791||e>=131072&&e<=196605||e>=196608&&e<=262141}var fte=n((()=>{}));function Bc(e,t,n){$c[e.toLowerCase()]=t,n&&(el[e.toLowerCase()]=n)}function pte(e){let t=nl.get(e);if(t)return t;t=new Map;for(let[n,r,i]of e.advances)for(let e=0;e<r;e++)t.set(n+e,i);return nl.set(e,t),t}function Vc(e,t){let n=e.toLowerCase();return t?el[n]??$c[n]:$c[n]}function mte(e){return Object.hasOwn(el,e.toLowerCase())}function hte(){return Wc}function gte(e,t){return Hc(t)?e.cjkAdvance:pte(e).get(t)??e.defaultAdvance}function _te(e){return Uc[e]}function vte(e){return tl[e.toLowerCase()]}function Hc(e){return dte(e)}var Uc,Wc,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl=n((()=>{fte(),Uc={32:3,33:5,34:6,35:7,36:7,37:11,38:10,39:3,40:5,41:5,42:7,43:7,44:4,45:5,46:4,47:6,48:7,49:7,50:7,51:7,52:7,53:7,54:7,55:7,56:7,57:7,58:4,59:4,60:7,61:7,62:7,63:7,64:13,65:9,66:8,67:8,68:9,69:7,70:7,71:9,72:9,73:4,74:5,75:8,76:6,77:12,78:10,79:10,80:8,81:10,82:8,83:7,84:7,85:9,86:9,87:13,88:8,89:7,90:7,91:5,92:6,93:5,94:7,95:7,96:4,97:7,98:8,99:6,100:8,101:8,102:5,103:7,104:8,105:4,106:4,107:7,108:4,109:12,110:8,111:8,112:8,113:8,114:5,115:6,116:5,117:8,118:7,119:11,120:7,121:7,122:6,123:5,124:7,125:5,126:7},Wc={header:{unitsPerEm:2048,usWinAscent:1950,usWinDescent:550,maxDigitAdvance:1038,sTypoAscender:1536,sTypoDescender:-512,sTypoLineGap:452},defaultAdvance:1e3,cjkAdvance:2048,advances:[[32,1,463],[33,1,667],[34,1,821],[35,1,1020],[36,1,1038],[37,1,1464],[38,1,1397],[39,1,452],[40,2,621],[42,2,1020],[44,1,511],[45,1,627],[46,1,517],[47,1,791],[48,10,1038],[58,2,548],[60,3,1020],[63,1,949],[64,1,1831],[65,1,1185],[66,1,1114],[67,1,1092],[68,1,1260],[69,1,1e3],[70,1,941],[71,1,1292],[72,1,1276],[73,1,516],[74,1,653],[75,1,1064],[76,1,861],[77,1,1751],[78,1,1322],[79,1,1356],[80,1,1058],[81,1,1378],[82,1,1112],[83,1,941],[84,1,998],[85,1,1314],[86,1,1162],[87,1,1822],[88,1,1063],[89,1,998],[90,1,959],[91,1,628],[92,1,791],[93,1,628],[94,2,1020],[96,1,596],[97,1,981],[98,1,1076],[99,1,866],[100,1,1076],[101,1,1019],[102,1,625],[103,1,964],[104,1,1076],[105,1,470],[106,1,490],[107,1,931],[108,1,470],[109,1,1636],[110,1,1076],[111,1,1080],[112,2,1076],[114,1,714],[115,1,801],[116,1,686],[117,1,1076],[118,1,925],[119,1,1464],[120,1,887],[121,1,927],[122,1,809],[123,1,644],[124,1,943],[125,1,644],[126,1,1020]]},Gc={header:{unitsPerEm:2048,usWinAscent:1854,usWinDescent:434,maxDigitAdvance:1139,sTypoAscender:1491,sTypoDescender:-431,sTypoLineGap:307},defaultAdvance:1024,cjkAdvance:2048,advances:[[32,1,569],[33,1,569],[34,1,727],[35,1,1139],[36,1,1139],[37,1,1821],[38,1,1366],[39,1,391],[40,1,682],[41,1,682],[42,1,797],[43,1,1196],[44,1,569],[45,1,682],[46,1,569],[47,1,569],[48,10,1139],[58,1,569],[59,1,569],[60,1,1196],[61,1,1196],[62,1,1196],[63,1,1139],[64,1,2079],[65,1,1366],[66,1,1366],[67,1,1479],[68,1,1479],[69,1,1366],[70,1,1251],[71,1,1593],[72,1,1479],[73,1,569],[74,1,1024],[75,1,1366],[76,1,1139],[77,1,1706],[78,1,1479],[79,1,1593],[80,1,1366],[81,1,1593],[82,1,1479],[83,1,1366],[84,1,1251],[85,1,1479],[86,1,1366],[87,1,1933],[88,1,1366],[89,1,1366],[90,1,1251],[91,1,569],[92,1,569],[93,1,569],[94,1,961],[95,1,1139],[96,1,682],[97,1,1139],[98,1,1139],[99,1,1024],[100,1,1139],[101,1,1139],[102,1,569],[103,1,1139],[104,1,1139],[105,1,455],[106,1,455],[107,1,1024],[108,1,455],[109,1,1706],[110,1,1139],[111,1,1139],[112,1,1139],[113,1,1139],[114,1,682],[115,1,1024],[116,1,569],[117,1,1139],[118,1,1024],[119,1,1479],[120,1,1024],[121,1,1024],[122,1,1024],[123,1,684],[124,1,532],[125,1,684],[126,1,1196]]},Kc={header:{unitsPerEm:2048,usWinAscent:1854,usWinDescent:434,maxDigitAdvance:1139,sTypoAscender:1491,sTypoDescender:-431,sTypoLineGap:307},defaultAdvance:1070,cjkAdvance:2048,advances:[[32,1,569],[33,1,682],[34,1,974],[35,1,1139],[36,1,1139],[37,1,1821],[38,1,1479],[39,1,569],[40,1,682],[41,1,682],[42,1,797],[43,1,1196],[44,1,569],[45,1,682],[46,1,569],[47,1,569],[48,10,1139],[58,1,682],[59,1,682],[60,1,1196],[61,1,1196],[62,1,1196],[63,1,1251],[64,1,1991],[65,1,1479],[66,1,1479],[67,1,1479],[68,1,1479],[69,1,1366],[70,1,1251],[71,1,1593],[72,1,1479],[73,1,682],[74,1,1139],[75,1,1479],[76,1,1251],[77,1,1706],[78,1,1479],[79,1,1593],[80,1,1366],[81,1,1593],[82,1,1479],[83,1,1366],[84,1,1251],[85,1,1479],[86,1,1366],[87,1,1933],[88,1,1366],[89,1,1366],[90,1,1251],[91,1,682],[92,1,569],[93,1,682],[94,1,1196],[95,1,1139],[96,1,682],[97,1,1139],[98,1,1251],[99,1,1024],[100,1,1251],[101,1,1139],[102,1,682],[103,1,1251],[104,1,1251],[105,1,569],[106,1,569],[107,1,1139],[108,1,569],[109,1,1821],[110,1,1251],[111,1,1251],[112,1,1251],[113,1,1251],[114,1,797],[115,1,1024],[116,1,682],[117,1,1251],[118,1,1139],[119,1,1593],[120,1,1139],[121,1,1139],[122,1,1024],[123,1,797],[124,1,569],[125,1,797],[126,1,1196]]},qc={header:{unitsPerEm:2048,usWinAscent:1825,usWinDescent:443,maxDigitAdvance:1024,sTypoAscender:1420,sTypoDescender:-442,sTypoLineGap:307},defaultAdvance:900,cjkAdvance:2048,advances:[[32,1,512],[33,1,682],[34,1,836],[35,1,1024],[36,1,1024],[37,1,1706],[38,1,1593],[39,1,369],[40,1,682],[41,1,682],[42,1,1024],[43,1,1155],[44,1,512],[45,1,682],[46,1,512],[47,1,569],[48,10,1024],[58,1,569],[59,1,569],[60,1,1155],[61,1,1155],[62,1,1155],[63,1,909],[64,1,1886],[65,1,1479],[66,1,1366],[67,1,1366],[68,1,1479],[69,1,1251],[70,1,1139],[71,1,1479],[72,1,1479],[73,1,682],[74,1,797],[75,1,1479],[76,1,1251],[77,1,1821],[78,1,1479],[79,1,1479],[80,1,1139],[81,1,1479],[82,1,1366],[83,1,1139],[84,1,1251],[85,1,1479],[86,1,1479],[87,1,1933],[88,1,1479],[89,1,1479],[90,1,1251],[91,1,682],[92,1,569],[93,1,682],[94,1,961],[95,1,1024],[96,1,682],[97,1,909],[98,1,1024],[99,1,909],[100,1,1024],[101,1,909],[102,1,682],[103,1,1024],[104,1,1024],[105,1,569],[106,1,569],[107,1,1024],[108,1,569],[109,1,1479],[110,1,1024],[111,1,1024],[112,1,1024],[113,1,1024],[114,1,682],[115,1,797],[116,1,569],[117,1,1024],[118,1,1024],[119,1,1479],[120,1,1024],[121,1,1024],[122,1,909],[123,1,983],[124,1,410],[125,1,983],[126,1,1073]]},Jc={header:{unitsPerEm:2048,usWinAscent:1705,usWinDescent:615,maxDigitAdvance:1229,sTypoAscender:1255,sTypoDescender:-386,sTypoLineGap:0},defaultAdvance:1229,cjkAdvance:2048,advances:[[32,95,1229]]},Yc={header:{unitsPerEm:2048,usWinAscent:2059,usWinDescent:430,maxDigitAdvance:1302,sTypoAscender:1566,sTypoDescender:-423,sTypoLineGap:202},defaultAdvance:1200,cjkAdvance:2048,advances:[[32,1,720],[33,1,756],[34,1,933],[35,1,1521],[36,1,1198],[37,1,1807],[38,1,1487],[39,1,510],[40,1,756],[41,1,756],[42,1,1198],[43,1,1521],[44,1,643],[45,1,811],[46,1,643],[47,1,899],[48,10,1302],[58,1,756],[59,1,756],[60,1,1521],[61,1,1521],[62,1,1521],[63,1,1151],[64,1,1937],[65,1,1362],[66,1,1382],[67,1,1279],[68,1,1490],[69,1,1279],[70,1,1186],[71,1,1458],[72,1,1498],[73,1,924],[74,1,922],[75,1,1362],[76,1,1145],[77,1,1728],[78,1,1498],[79,1,1476],[80,1,1262],[81,1,1476],[82,1,1396],[83,1,1300],[84,1,1185],[85,1,1448],[86,1,1362],[87,1,1864],[88,1,1244],[89,1,1183],[90,1,1204],[91,1,756],[92,1,899],[93,1,756],[94,1,1521],[95,1,1198],[96,1,1198],[97,1,1224],[98,1,1302],[99,1,1075],[100,1,1302],[101,1,1218],[102,1,756],[103,1,1302],[104,1,1317],[105,1,643],[106,1,700],[107,1,1183],[108,1,643],[109,1,1937],[110,1,1317],[111,1,1271],[112,1,1302],[113,1,1302],[114,1,899],[115,1,1075],[116,1,811],[117,1,1317],[118,1,1183],[119,1,1728],[120,1,1183],[121,1,1183],[122,1,1031],[123,1,787],[124,1,756],[125,1,787],[126,1,1521]]},Xc={header:{unitsPerEm:2048,usWinAscent:1878,usWinDescent:449,maxDigitAdvance:1257,sTypoAscender:1549,sTypoDescender:-444,sTypoLineGap:198},defaultAdvance:1100,cjkAdvance:2048,advances:[[32,1,504],[33,1,614],[34,1,679],[35,1,1257],[36,1,1024],[37,1,1539],[38,1,1350],[39,1,391],[40,1,614],[41,1,614],[42,1,842],[43,1,1257],[44,1,504],[45,1,751],[46,1,504],[47,1,797],[48,10,1257],[58,1,569],[59,1,569],[60,1,1257],[61,1,1257],[62,1,1257],[63,1,885],[64,1,1614],[65,1,1350],[66,1,1273],[67,1,1161],[68,1,1427],[69,1,1163],[70,1,1074],[71,1,1314],[72,1,1517],[73,1,721],[74,1,772],[75,1,1397],[76,1,1176],[77,1,1770],[78,1,1462],[79,1,1392],[80,1,1118],[81,1,1392],[82,1,1321],[83,1,1019],[84,1,1163],[85,1,1456],[86,1,1321],[87,1,1887],[88,1,1314],[89,1,1220],[90,1,1055],[91,1,614],[92,1,797],[93,1,614],[94,1,1257],[95,1,1024],[96,1,682],[97,1,1019],[98,1,1100],[99,1,866],[100,1,1106],[101,1,958],[102,1,654],[103,1,1006],[104,1,1152],[105,1,606],[106,1,606],[107,1,1048],[108,1,606],[109,1,1700],[110,1,1131],[111,1,1042],[112,1,1100],[113,1,1100],[114,1,772],[115,1,820],[116,1,688],[117,1,1117],[118,1,1019],[119,1,1559],[120,1,1007],[121,1,1012],[122,1,880],[123,1,637],[124,1,583],[125,1,637],[126,1,1257]]},Zc={header:{unitsPerEm:2048,usWinAscent:2049,usWinDescent:423,maxDigitAdvance:1118,sTypoAscender:1566,sTypoDescender:-423,sTypoLineGap:59},defaultAdvance:1050,cjkAdvance:2048,advances:[[32,1,461],[33,1,536],[34,1,717],[35,1,1232],[36,1,1014],[37,1,1625],[38,1,1327],[39,1,428],[40,1,616],[41,1,616],[42,1,900],[43,1,1232],[44,1,504],[45,1,700],[46,1,504],[47,1,753],[48,10,1118],[58,1,567],[59,1,567],[60,1,1232],[61,1,1232],[62,1,1232],[63,1,974],[64,1,1810],[65,1,1205],[66,1,1200],[67,1,1130],[68,1,1327],[69,1,1117],[70,1,1032],[71,1,1306],[72,1,1308],[73,1,614],[74,1,794],[75,1,1195],[76,1,1003],[77,1,1500],[78,1,1308],[79,1,1381],[80,1,1103],[81,1,1381],[82,1,1200],[83,1,1117],[84,1,1100],[85,1,1300],[86,1,1205],[87,1,1723],[88,1,1119],[89,1,1130],[90,1,1068],[91,1,616],[92,1,753],[93,1,616],[94,1,1232],[95,1,893],[96,1,1118],[97,1,1066],[98,1,1141],[99,1,942],[100,1,1141],[101,1,1086],[102,1,639],[103,1,1141],[104,1,1126],[105,1,500],[106,1,548],[107,1,1023],[108,1,500],[109,1,1705],[110,1,1126],[111,1,1103],[112,1,1141],[113,1,1141],[114,1,714],[115,1,918],[116,1,700],[117,1,1126],[118,1,1e3],[119,1,1500],[120,1,1e3],[121,1,1e3],[122,1,880],[123,1,616],[124,1,540],[125,1,616],[126,1,1232]]},Qc={header:{unitsPerEm:2048,usWinAscent:1923,usWinDescent:455,maxDigitAdvance:1074,sTypoAscender:1510,sTypoDescender:-420,sTypoLineGap:0},defaultAdvance:1e3,cjkAdvance:2048,advances:[[32,1,453],[33,1,545],[34,1,613],[35,1,1107],[36,1,1074],[37,1,1341],[38,1,1213],[39,1,360],[40,1,616],[41,1,616],[42,1,860],[43,1,1107],[44,1,453],[45,1,697],[46,1,453],[47,1,766],[48,10,1074],[58,1,453],[59,1,453],[60,1,1107],[61,1,1107],[62,1,1107],[63,1,860],[64,1,1648],[65,1,1227],[66,1,1227],[67,1,1139],[68,1,1309],[69,1,1139],[70,1,1057],[71,1,1309],[72,1,1395],[73,1,627],[74,1,791],[75,1,1260],[76,1,1057],[77,1,1456],[78,1,1350],[79,1,1395],[80,1,1139],[81,1,1395],[82,1,1215],[83,1,1057],[84,1,1139],[85,1,1350],[86,1,1227],[87,1,1730],[88,1,1260],[89,1,1139],[90,1,1139],[91,1,616],[92,1,766],[93,1,616],[94,1,1107],[95,1,1074],[96,1,860],[97,1,1013],[98,1,1074],[99,1,936],[100,1,1074],[101,1,1013],[102,1,627],[103,1,1074],[104,1,1074],[105,1,545],[106,1,538],[107,1,1013],[108,1,545],[109,1,1539],[110,1,1074],[111,1,1074],[112,1,1074],[113,1,1074],[114,1,715],[115,1,860],[116,1,627],[117,1,1074],[118,1,936],[119,1,1481],[120,1,936],[121,1,936],[122,1,860],[123,1,616],[124,1,604],[125,1,616],[126,1,1107]]},$c={},el={},Bc(`calibri`,Wc),Bc(`arial`,Gc,Kc),Bc(`times new roman`,qc),Bc(`courier new`,Jc),Bc(`verdana`,Yc),Bc(`georgia`,Xc),Bc(`tahoma`,Zc),Bc(`trebuchet ms`,Qc),tl={aptos:[1.03,1.37,1],"aptos display":[.96,1.31,1],"aptos narrow":[.82,1.07,1],"aptos serif":[.98,1.31,1],"calibri light":[.98,1.19,1],cambria:[1.07,1.28,1],"century gothic":[1.19,1.36,1],"comic sans ms":[1.14,1.46,1],consolas:[1.21,1.21,1],constantia:[1.05,1.34,1],corbel:[.97,1.2,1],garamond:[1.16,1.39,1],impact:[.96,1.01,1],"lucida console":[1.21,1.21,1],"lucida sans unicode":[1.16,1.4,1],"microsoft sans serif":[1.07,1.35,1],"palatino linotype":[1.12,1.44,1],"segoe ui":[1.08,1.31,1],"book antiqua":[1.12,1.44,1],candara:[1.02,1.25,1],"franklin gothic medium":[1.08,1.33,1],"goudy old style":[1.02,1.34,1],rockwell:[1.14,1.35,1],"tw cen mt":[.95,1.17,1],"microsoft yahei":[1.18,1.3,1.18],"microsoft yahei ui":[1.18,1.3,1.18],simsun:[1.1,1.1,1.1],宋体:[1.1,1.1,1.1],simhei:[1.1,1.1,1.1],黑体:[1.1,1.1,1.1],nsimsun:[1.1,1.1,1.1],新宋体:[1.1,1.1,1.1],dengxian:[1.05,1.28,1.08],等线:[1.05,1.28,1.08],fangsong:[1.1,1.1,1.1],仿宋:[1.1,1.1,1.1],kaiti:[1.1,1.1,1.1],楷体:[1.1,1.1,1.1],meiryo:[1.18,1.3,1.18],"meiryo ui":[1.1,1.2,1.18],"ms gothic":[1.21,1.21,1.1],"MS ゴシック":[1.21,1.21,1.1],"ms pgothic":[1.07,1.33,1.1],"ms mincho":[1.21,1.21,1.1],"yu gothic":[1.17,1.32,1.18],"yu gothic ui":[1.08,1.22,1.18],"yu mincho":[1.1,1.28,1.18],"malgun gothic":[1.12,1.28,1.14],"맑은 고딕":[1.12,1.28,1.14],batang:[1.1,1.1,1.1],gulim:[1.1,1.1,1.1],dotum:[1.1,1.1,1.1],微软雅黑:[1.18,1.3,1.18],"微软雅黑 ui":[1.18,1.3,1.18],微軟正黑體:[1.12,1.28,1.14],"microsoft jhenghei":[1.12,1.28,1.14],"microsoft jhenghei ui":[1.12,1.28,1.14],新細明體:[1.1,1.1,1.1],pmingliu:[1.1,1.1,1.1],細明體:[1.1,1.1,1.1],mingliu:[1.1,1.1,1.1],標楷體:[1.1,1.1,1.1],"dfkai-sb":[1.1,1.1,1.1],华文细黑:[1.1,1.1,1.1],stheiti:[1.1,1.1,1.1],华文宋体:[1.1,1.1,1.1],stsong:[1.1,1.1,1.1],华文楷体:[1.1,1.1,1.1],stkaiti:[1.1,1.1,1.1],华文仿宋:[1.1,1.1,1.1],stfangsong:[1.1,1.1,1.1],"pingfang sc":[1.05,1.24,1.1],"pingfang tc":[1.05,1.24,1.1],"pingfang hk":[1.05,1.24,1.1],"苹方-简":[1.05,1.24,1.1],"蘋方-繁":[1.05,1.24,1.1],"heiti sc":[1.1,1.1,1.1],"heiti tc":[1.1,1.1,1.1],"songti sc":[1.1,1.1,1.1],"songti tc":[1.1,1.1,1.1],"kaiti sc":[1.1,1.1,1.1],"kaiti tc":[1.1,1.1,1.1],"hiragino sans gb":[1.1,1.24,1.1],"hiragino kaku gothic pron":[1.1,1.24,1.18],"ヒラギノ角ゴ pron":[1.1,1.24,1.18],"noto sans cjk sc":[1.05,1.28,1.1],"noto sans cjk tc":[1.05,1.28,1.1],"noto sans cjk jp":[1.05,1.28,1.18],"noto sans cjk kr":[1.05,1.28,1.14],"noto sans sc":[1.05,1.28,1.1],"noto sans tc":[1.05,1.28,1.1],"noto sans jp":[1.05,1.28,1.18],"noto sans kr":[1.05,1.28,1.14],"source han sans sc":[1.05,1.28,1.1],"source han sans cn":[1.05,1.28,1.1],思源黑体:[1.05,1.28,1.1],"source han serif sc":[1.1,1.1,1.1],思源宋体:[1.1,1.1,1.1],"wenquanyi micro hei":[1.1,1.24,1.1],"wenquanyi zen hei":[1.1,1.24,1.1],文泉驿微米黑:[1.1,1.24,1.1],"droid sans fallback":[1.1,1.2,1.1],游ゴシック:[1.17,1.32,1.18],nanumgothic:[1.12,1.28,1.14],"nanum gothic":[1.12,1.28,1.14],나눔고딕:[1.12,1.28,1.14],"apple sd gothic neo":[1.1,1.24,1.14],applegothic:[1.1,1.24,1.14]},nl=new Map}));function yte(e,t,n,r){if(t===`calibri`&&n===pl){let t=_te(e);if(t!==void 0)return t}let i=gte(r,e),a=Math.round(n/72*dl);return Math.round(i/r.header.unitsPerEm*a)}function il(e){let t=(e?.name??ml).toLowerCase(),n=e?.size??pl;if(t===`calibri`&&n===pl)return hl;let r=Vc(t);if(r){let e=Math.round(n/72*dl);return Math.round(r.header.maxDigitAdvance/r.header.unitsPerEm*e)}return Math.max(1,Math.round(n/pl*hl))}function al(e){return{name:(e?.name??ml).toLowerCase(),size:e?.size??pl,bold:e?.bold??!1,italic:e?.italic??!1,vertAlign:e?.vertAlign}}function ol(e,t){if(!e)return 0;let n=al(t),r=Vc(n.name,n.bold),i=e.split(/\r\n|\r|\n/),a=0;for(let e of i){let t=bte(e,n,r);t>a&&(a=t)}return a}function sl(e,t){let n=t!==void 0||e.name===`calibri`&&e.size===pl,r=n?void 0:vte(e.name),i=r?.[0]??1,a=r?.[1]??1.3,o=il({name:e.name,size:e.size}),s=e.size/fl*dl,c=Math.ceil(s),l=!!e.bold&&!mte(e.name),u=!!e.italic,d=t??hte(),f={advance:0,lower:0,upper:0,wide:0},p=t=>{if(Hc(t))return c;let n=yte(t,e.name,e.size,d);return l&&(n=Math.ceil(n*1.05)),u&&(n=Math.ceil(n*1.02)),n},m=e=>{let t=ll(e);return!Hc(t)&&ul(e)?c:p(t)},h=t=>{if(n)return e.vertAlign?Math.ceil(t.advance*.6):t.advance;let r=(t.lower*i+t.upper*a)*(e.size/pl);e.bold&&(r*=1.05),e.italic&&(r*=1.02),e.vertAlign&&(r*=.6);let c=r*o;return t.wide>0&&(c+=t.wide/2*s*(e.vertAlign?.6:1)),Math.ceil(c)};return{create:()=>({advance:0,lower:0,upper:0,wide:0}),reset(e){e.advance=0,e.lower=0,e.upper=0,e.wide=0},addCluster(e,t){if(n){e.advance+=m(t);return}Hc(ll(t))||ul(t)?e.wide+=2:t>=`A`&&t<=`Z`?e.upper++:e.lower++},addAscii(e,t){if(n){e.advance+=p(t);return}t>=65&&t<=90?e.upper++:e.lower++},addParts(e,t){e.advance+=t.advance,e.lower+=t.lower,e.upper+=t.upper,e.wide+=t.wide},px:h,pxOfSum(e,t){return f.advance=e.advance+t.advance,f.lower=e.lower+t.lower,f.upper=e.upper+t.upper,f.wide=e.wide+t.wide,h(f)}}}function bte(e,t,n){if(!e)return 0;let r=sl(t,n),i=r.create();return xte(r,i,e),r.px(i)}function xte(e,t,n){if(cl(n)){for(let r=0;r<n.length;r++)e.addAscii(t,n.charCodeAt(r));return}for(let r of Oc(n))e.addCluster(t,r)}function cl(e){for(let t=0;t<e.length;t++)if(e.charCodeAt(t)>127)return!1;return!0}function ll(e){return e.codePointAt(0)??0}function ul(e){return e.includes(`️`)}var dl,fl,pl,ml,hl,gl=n((()=>{rl(),Ac(),dl=96,fl=72,pl=11,ml=`Calibri`,hl=7}));function _l(e,t){return e?ol(e,{name:t.family??`arial`,size:t.size,bold:t.bold??!1,italic:t.italic??!1})*vl:0}var vl,yl=n((()=>{xc(),gl(),vl=72/96})),bl,xl,Sl=n((()=>{bl=Object.freeze({dk1:`000000`,lt1:`FFFFFF`,dk2:`44546A`,lt2:`E7E6E6`,accent1:`4472C4`,accent2:`ED7D31`,accent3:`A5A5A5`,accent4:`FFC000`,accent5:`5B9BD5`,accent6:`70AD47`,hlink:`0563C1`,folHlink:`954F72`}),xl=Object.freeze([bl.dk1,bl.lt1,bl.dk2,bl.lt2,bl.accent1,bl.accent2,bl.accent3,bl.accent4,bl.accent5,bl.accent6,bl.hlink,bl.folHlink]),Object.freeze([bl.lt1,bl.dk1,bl.lt2,bl.dk2,bl.accent1,bl.accent2,bl.accent3,bl.accent4,bl.accent5,bl.accent6,bl.hlink,bl.folHlink])}));function Cl(e){return e/Ml}function wl(e){return e/Nl}function Tl(e){return 2*Math.ceil(e/4)+1}function El(e,t){if(t<=0||e===0)return 0;let n=Tl(t);return e<1?Math.round(e*(t+n)):Math.round(e*t)+n}function Dl(e,t){return t<=0?0:Math.trunc(e/t*256)/256}function Ol(e){return e*72/96}var kl,Al,jl,Ml,Nl,Pl=n((()=>{kl=1440,Al=kl/2.54,Al/10,jl=914400,Ml=12700,Nl=9525,6*jl,Math.round(3.5*jl),4*jl})),Fl,Il,Ll,Rl=n((()=>{f(),Fl=class extends u{constructor(...e){super(...e),this.name=`XmlError`}},Il=class extends Fl{constructor(e,t,n){let r=[];t?.fileName&&r.push(t.fileName),t?.line!==void 0&&r.push(`${t.line}:${t.column??0}`);let i=r.length>0?`${r.join(`:`)}: `:``;super(`${i}${e}`,n),this.name=`XmlParseError`,this.line=t?.line,this.column=t?.column,this.fileName=t?.fileName}},Ll=class extends Fl{constructor(e,t,n){super(`Cannot ${e}: ${t}`,n),this.name=`XmlWriteError`,this.operation=e,this.state=t}}}));function zl(e){let t=e.length,n=-1;for(let r=0;r<t;r++){let t=e.charCodeAt(r);if(t<128){if(Hl[t]!==0){n=r;break}}else if(t>=55296&&t<=57343){if(t<=56319){let t=e.charCodeAt(r+1);if(t>=56320&&t<=57343){r++;continue}}n=r;break}else if(t===65534||t===65535){n=r;break}}if(n===-1)return e;let r=[],i=0;for(let a=n;a<t;a++){let t=e.charCodeAt(a);if(t<128){let n=Hl[t];if(n===0)continue;i<a&&r.push(e.substring(i,a)),n===1&&r.push(Ul[t]),i=a+1}else if(t>=55296&&t<=56319){let t=e.charCodeAt(a+1);if(t>=56320&&t<=57343){a++;continue}i<a&&r.push(e.substring(i,a)),i=a+1}else(t>=56320&&t<=57343||t===65534||t===65535)&&(i<a&&r.push(e.substring(i,a)),i=a+1)}return i<t&&r.push(e.substring(i)),r.length===1?r[0]:r.join(``)}function j(e){let t=zl(e);return t.indexOf(` `)===-1&&t.indexOf(`
10
10
  `)===-1&&t.indexOf(`\r`)===-1?t:t.replace(/\r/g,`&#xD;`).replace(/\n/g,`&#xA;`).replace(/\t/g,`&#x9;`)}function Bl(e){let t=!1;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r<32&&r!==9&&r!==10&&r!==13||r===127||r>=55296&&r<=57343||r===65534||r===65535){t=!0;break}}if(!t)return e;let n=[];for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if(r<32){(r===9||r===10||r===13)&&n.push(e[t]);continue}if(r!==127&&r!==65534&&r!==65535){if(r>=55296&&r<=56319){let r=e.charCodeAt(t+1);r>=56320&&r<=57343&&(n.push(e[t],e[t+1]),t+=1);continue}r>=56320&&r<=57343||n.push(e[t])}}return n.join(``)}function Vl(e){return`<![CDATA[`+Bl(e).split(`]]>`).join(`]]]]><![CDATA[>`)+`]]>`}var Hl,Ul,Wl=n((()=>{Hl=(()=>{let e=new Uint8Array(128);for(let t=0;t<=8;t++)e[t]=2;e[11]=2,e[12]=2;for(let t=14;t<=31;t++)e[t]=2;return e[127]=2,e[34]=1,e[38]=1,e[39]=1,e[60]=1,e[62]=1,e})(),Ul={34:`&quot;`,38:`&amp;`,39:`&apos;`,60:`&lt;`,62:`&gt;`}}));function Gl(e){if(!e)throw new Fl(`XML name must not be empty`);if(ql.test(e))throw new Fl(`Invalid XML name: contains forbidden character in "${e}"`);let t=e.charCodeAt(0);if(t>=48&&t<=57||t===45||t===46)throw new Fl(`Invalid XML name: "${e}" starts with forbidden character`)}function Kl(e){if(e.includes(`--`)||e.endsWith(`-`))throw new Fl(`Invalid comment: must not contain "--" or end with "-"`)}var ql,Jl,Yl=n((()=>{Rl(),Wl(),ql=/[\s<>"'/=&]/,Jl={version:`1.0`,encoding:`UTF-8`,standalone:`yes`}}));function Xl(e){return/[\r\n]/.test(e)?e.split(/\r\n|[\r\n]/).map((e,t)=>({index:t,text:e})):[{index:0,text:e}]}function Zl(e){return/[\r\n]/.test(e)?e.split(/\r\n|[\r\n]/).join(` `):e}function Ql(e){return wu[e]??`dk1`}function $l(e){return!Number.isFinite(e)||e<0?0:e>1?1:e}function eu(e,t,n,r){let i=n-t;return!Number.isFinite(i)||i===0?r.y+r.height/2:r.y+r.height-(e-t)/i*r.height}function tu(e,t,n,r){let i=n-t;return!Number.isFinite(i)||i===0?r.x+r.width/2:r.x+(e-t)/i*r.width}function nu(e,t){let n=Number.isFinite(t)?t:0,r=Number.isFinite(e.x)?e.x+n:0,i=Number.isFinite(e.y)?e.y+n:0,a=Number.isFinite(e.width)?e.width-n*2:0,o=Number.isFinite(e.height)?e.height-n*2:0;return{x:r,y:i,width:a>0?a:0,height:o>0?o:0}}function ru(e){return e===void 0||!Number.isFinite(e)?``:String(e)}function iu(e){return Number.isFinite(e)?String(e):`0`}function au(e){if(!Number.isFinite(e))return``;if(Number.isInteger(e))return String(e);let t=Math.abs(e);return t!==0&&t<.01?e.toExponential(2):e.toFixed(1)}function ou(e){let t=!1,n=e.length;for(let r=0;r<n;r++){let i=e.charCodeAt(r);if(i<32){if(i!==9&&i!==10&&i!==13){t=!0;break}}else if(i>=55296&&i<=56319){let i=r+1<n?e.charCodeAt(r+1):0;if(i>=56320&&i<=57343)r++;else{t=!0;break}}else if(i>=56320&&i<=57343){t=!0;break}else if(i===127||i===65534||i===65535){t=!0;break}}return(t?su(e):e).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function su(e){return Bl(e)}function cu(e){if(!e)return;let t=e.replace(/^#/,``).toUpperCase();if(/^[0-9A-F]{6}([0-9A-F]{2})?$/.test(t))return t.slice(0,6);if(/^[0-9A-F]{3}([0-9A-F])?$/.test(t))return t.slice(0,3).split(``).map(e=>e+e).join(``)}function lu(e,t){let n=cu(e);if(!n)return e;let r=Number.isFinite(t)?Math.max(0,Math.min(1,t)):1,i=e=>Math.round(parseInt(e,16)*r+255*(1-r)).toString(16).padStart(2,`0`).toUpperCase();return`#${i(n.slice(0,2))}${i(n.slice(2,4))}${i(n.slice(4,6))}`}function uu(e,t,n){let r=cu(e),i=cu(t),a=$l(n);if(!r||!i)return`#${a>=.5?i??r??`000000`:r??i??`000000`}`;let o=e=>{let t=parseInt(r.slice(e,e+2),16),n=parseInt(i.slice(e,e+2),16);return Math.round(t+(n-t)*a).toString(16).padStart(2,`0`).toUpperCase()};return`#${o(0)}${o(2)}${o(4)}`}function du(e){if(e){if(typeof e.srgb==`string`){let t=e.srgb.replace(/^#/,``);return/^[0-9a-fA-F]{6}$/.test(t)?`#${t.toUpperCase()}`:/^[0-9a-fA-F]{8}$/.test(t)?`#${t.slice(0,6).toUpperCase()}`:void 0}if(typeof e.theme==`number`&&Number.isInteger(e.theme)&&e.theme>=0&&e.theme<Cu.length)return Cu[e.theme];if(typeof e.schemeName!=`string`){if(typeof e.sysClr==`string`)return e.sysClr===`windowText`?`#000000`:e.sysClr===`window`?`#FFFFFF`:void 0;if(typeof e.prstClr==`string`){let t=Tu[e.prstClr];return t?`#${t}`:void 0}}}}function fu(e,t){return du(e?.solid)??t}function pu(e){return du(e?.color)}function mu(e){return typeof e?.width==`number`?Math.max(.5,Cl(e.width)):void 0}function hu(e,t,n={}){return _l(e,{size:t,family:n.fontName??`arial`,...n.bold===void 0?{}:{bold:n.bold},...n.italic===void 0?{}:{italic:n.italic}})}function gu(e,t,n,r){if(e.length===0)return[];let i=-1;for(let t of e)typeof t.index==`number`&&Number.isFinite(t.index)&&t.index>i&&(i=t.index);let a=typeof t==`number`?t:0,o=Math.max(e.length,i+1,a),s=Math.min(o,Eu),c=Array(s).fill(n);for(let t of e){let e=typeof t.index==`number`&&Number.isFinite(t.index)&&t.index>=0?t.index:-1;e<0||e>=s||(c[e]=r(t.value))}return c}function _u(e){return e!==``&&!!(/^\s|\s$/.test(e)||/[\t\n\r]/.test(e)||/\s{2,}/.test(e))}function vu(e){return e===`inside`?`in`:e===`outside`?`out`:e}var yu,bu,xu,Su,Cu,wu,Tu,Eu,Du=n((()=>{yl(),Sl(),Pl(),Yl(),yu=[`#${bl.accent1}`,`#${bl.accent2}`,`#${bl.accent3}`,`#${bl.accent4}`,`#${bl.accent5}`,`#${bl.accent6}`],bu=`#444444`,xu=`#D9D9D9`,Su=1.2,Cu=Object.freeze(xl.map(e=>`#${e}`)),wu=Object.freeze([`dk1`,`lt1`,`dk2`,`lt2`,`accent1`,`accent2`,`accent3`,`accent4`,`accent5`,`accent6`,`hlink`,`folHlink`]),Tu=Object.freeze({aliceBlue:`F0F8FF`,antiqueWhite:`FAEBD7`,aqua:`00FFFF`,aquamarine:`7FFFD4`,azure:`F0FFFF`,beige:`F5F5DC`,bisque:`FFE4C4`,black:`000000`,blanchedAlmond:`FFEBCD`,blue:`0000FF`,blueViolet:`8A2BE2`,brown:`A52A2A`,burlyWood:`DEB887`,cadetBlue:`5F9EA0`,chartreuse:`7FFF00`,chocolate:`D2691E`,coral:`FF7F50`,cornflowerBlue:`6495ED`,cornsilk:`FFF8DC`,crimson:`DC143C`,cyan:`00FFFF`,darkBlue:`00008B`,darkCyan:`008B8B`,darkGoldenrod:`B8860B`,darkGray:`A9A9A9`,darkGreen:`006400`,darkGrey:`A9A9A9`,darkKhaki:`BDB76B`,darkMagenta:`8B008B`,darkOliveGreen:`556B2F`,darkOrange:`FF8C00`,darkOrchid:`9932CC`,darkRed:`8B0000`,darkSalmon:`E9967A`,darkSeaGreen:`8FBC8F`,darkSlateBlue:`483D8B`,darkSlateGray:`2F4F4F`,darkSlateGrey:`2F4F4F`,darkTurquoise:`00CED1`,darkViolet:`9400D3`,deepPink:`FF1493`,deepSkyBlue:`00BFFF`,dimGray:`696969`,dimGrey:`696969`,dkBlue:`00008B`,dkCyan:`008B8B`,dkGoldenrod:`B8860B`,dkGray:`A9A9A9`,dkGreen:`006400`,dkGrey:`A9A9A9`,dkKhaki:`BDB76B`,dkMagenta:`8B008B`,dkOliveGreen:`556B2F`,dkOrange:`FF8C00`,dkOrchid:`9932CC`,dkRed:`8B0000`,dkSalmon:`E9967A`,dkSeaGreen:`8FBC8F`,dkSlateBlue:`483D8B`,dkSlateGray:`2F4F4F`,dkSlateGrey:`2F4F4F`,dkTurquoise:`00CED1`,dkViolet:`9400D3`,dodgerBlue:`1E90FF`,firebrick:`B22222`,floralWhite:`FFFAF0`,forestGreen:`228B22`,fuchsia:`FF00FF`,gainsboro:`DCDCDC`,ghostWhite:`F8F8FF`,gold:`FFD700`,goldenrod:`DAA520`,gray:`808080`,green:`008000`,greenYellow:`ADFF2F`,grey:`808080`,honeydew:`F0FFF0`,hotPink:`FF69B4`,indianRed:`CD5C5C`,indigo:`4B0082`,ivory:`FFFFF0`,khaki:`F0E68C`,lavender:`E6E6FA`,lavenderBlush:`FFF0F5`,lawnGreen:`7CFC00`,lemonChiffon:`FFFACD`,lightBlue:`ADD8E6`,lightCoral:`F08080`,lightCyan:`E0FFFF`,lightGoldenrodYellow:`FAFAD2`,lightGray:`D3D3D3`,lightGreen:`90EE90`,lightGrey:`D3D3D3`,lightPink:`FFB6C1`,lightSalmon:`FFA07A`,lightSeaGreen:`20B2AA`,lightSkyBlue:`87CEFA`,lightSlateGray:`778899`,lightSlateGrey:`778899`,lightSteelBlue:`B0C4DE`,lightYellow:`FFFFE0`,ltBlue:`ADD8E6`,ltCoral:`F08080`,ltCyan:`E0FFFF`,ltGoldenrodYellow:`FAFAD2`,ltGray:`D3D3D3`,ltGreen:`90EE90`,ltGrey:`D3D3D3`,ltPink:`FFB6C1`,ltSalmon:`FFA07A`,ltSeaGreen:`20B2AA`,ltSkyBlue:`87CEFA`,ltSlateGray:`778899`,ltSlateGrey:`778899`,ltSteelBlue:`B0C4DE`,ltYellow:`FFFFE0`,lime:`00FF00`,limeGreen:`32CD32`,linen:`FAF0E6`,magenta:`FF00FF`,maroon:`800000`,medAquamarine:`66CDAA`,medBlue:`0000CD`,medOrchid:`BA55D3`,medPurple:`9370DB`,medSeaGreen:`3CB371`,medSlateBlue:`7B68EE`,medSpringGreen:`00FA9A`,medTurquoise:`48D1CC`,medVioletRed:`C71585`,mediumAquamarine:`66CDAA`,mediumBlue:`0000CD`,mediumOrchid:`BA55D3`,mediumPurple:`9370DB`,mediumSeaGreen:`3CB371`,mediumSlateBlue:`7B68EE`,mediumSpringGreen:`00FA9A`,mediumTurquoise:`48D1CC`,mediumVioletRed:`C71585`,midnightBlue:`191970`,mintCream:`F5FFFA`,mistyRose:`FFE4E1`,moccasin:`FFE4B5`,navajoWhite:`FFDEAD`,navy:`000080`,oldLace:`FDF5E6`,olive:`808000`,oliveDrab:`6B8E23`,orange:`FFA500`,orangeRed:`FF4500`,orchid:`DA70D6`,paleGoldenrod:`EEE8AA`,paleGreen:`98FB98`,paleTurquoise:`AFEEEE`,paleVioletRed:`DB7093`,papayaWhip:`FFEFD5`,peachPuff:`FFDAB9`,peru:`CD853F`,pink:`FFC0CB`,plum:`DDA0DD`,powderBlue:`B0E0E6`,purple:`800080`,red:`FF0000`,rosyBrown:`BC8F8F`,royalBlue:`4169E1`,saddleBrown:`8B4513`,salmon:`FA8072`,sandyBrown:`F4A460`,seaGreen:`2E8B57`,seaShell:`FFF5EE`,sienna:`A0522D`,silver:`C0C0C0`,skyBlue:`87CEEB`,slateBlue:`6A5ACD`,slateGray:`708090`,slateGrey:`708090`,snow:`FFFAFA`,springGreen:`00FF7F`,steelBlue:`4682B4`,tan:`D2B48C`,teal:`008080`,thistle:`D8BFD8`,tomato:`FF6347`,turquoise:`40E0D0`,violet:`EE82EE`,wheat:`F5DEB3`,white:`FFFFFF`,whiteSmoke:`F5F5F5`,yellow:`FFFF00`,yellowGreen:`9ACD32`}),Eu=2097152}));function Ou(e=Vd){let t=e;return{alloc(){return t++}}}function ku(e){return{formula:e,cache:{points:[]}}}function Au(e){return{formula:e,cache:{points:[]}}}function ju(e){return{numRef:ku(e)}}function Mu(e){return{strRef:Au(e)}}function Nu(e){return typeof e==`string`?Mu(e):e}function Pu(e){return typeof e==`string`?{numRef:ku(e)}:e}function Fu(e,t){return typeof e==`string`?t===`text`?Mu(e):Pu(e):e}function M(e,t){if(!e)throw new w(t)}function Iu(e,t){M(typeof e==`number`&&Number.isFinite(e),`${t} must be a finite number.`)}function Lu(e,t,n,r){Iu(e,t),M(Number.isInteger(e)&&e>=n&&e<=r,`${t} must be an integer between ${n} and ${r}.`)}function Ru(e,t,n,r){Iu(e,t),M(e>=n&&e<=r,`${t} must be between ${n} and ${r}.`)}function zu(e,t=`chart`){M(!!e&&typeof e==`object`,`${t} options are required.`),M(!!e.type,`${t}.type is required.`),Vu(e,t);let n=e.series??[];M(n.length>0,`${t}.series must contain at least one series.`);for(let r=0;r<n.length;r++)Uu(e.type,n[r],`${t}.series[${r}]`)}function Bu(e){M(!!e&&typeof e==`object`,`combo chart options are required.`),M(Array.isArray(e.groups)&&e.groups.length>0,`combo chart groups must contain at least one group.`);for(let t=0;t<e.groups.length;t++)zu(e.groups[t],`groups[${t}]`);Hu(e,`combo chart`)}function Vu(e,t){if(Hu(e,t),e.grouping!==void 0){M(e.type===`bar`||e.type===`bar3D`||e.type===`line`||e.type===`line3D`||e.type===`area`||e.type===`area3D`,`${t}.grouping is only valid for bar, line, and area charts.`);let n=e.grouping;e.type===`bar`||e.type===`bar3D`?M(n===`clustered`||n===`stacked`||n===`percentStacked`,`${t}.grouping=${JSON.stringify(n)} is not valid for bar charts (use "clustered" | "stacked" | "percentStacked").`):M(n===`standard`||n===`stacked`||n===`percentStacked`,`${t}.grouping=${JSON.stringify(n)} is not valid for ${e.type} charts (use "standard" | "stacked" | "percentStacked").`)}if(e.barDir!==void 0&&M(e.type===`bar`||e.type===`bar3D`,`${t}.barDir is only valid for bar and bar3D charts.`),e.scatterStyle!==void 0&&M(e.type===`scatter`,`${t}.scatterStyle is only valid for scatter charts.`),e.radarStyle!==void 0&&M(e.type===`radar`,`${t}.radarStyle is only valid for radar charts.`),e.ofPieType!==void 0&&M(e.type===`ofPie`,`${t}.ofPieType is only valid for ofPie charts.`),e.wireframe!==void 0&&M(e.type===`surface`||e.type===`surface3D`,`${t}.wireframe is only valid for surface and surface3D charts.`),e.bandFormats!==void 0){M(e.type===`surface`||e.type===`surface3D`,`${t}.bandFormats is only valid for surface and surface3D charts.`);for(let n=0;n<e.bandFormats.length;n++)Lu(e.bandFormats[n].index,`${t}.bandFormats[${n}].index`,0,2**53-1)}Hd.has(e.type)||(M(e.categoryAxis===void 0,`${t}.categoryAxis is not valid for ${e.type} charts because they do not have axes.`),M(e.valueAxis===void 0,`${t}.valueAxis is not valid for ${e.type} charts because they do not have axes.`)),(e.type===`surface`||e.type===`surface3D`)&&e.dataLabels!==void 0&&M(!1,`${t}.dataLabels is not supported for surface charts.`),e.dataLabels&&Ju(e.type,e.dataLabels,`${t}.dataLabels`),e.holeSize!==void 0&&(M(e.type===`doughnut`,`${t}.holeSize is only valid for doughnut charts.`),Lu(e.holeSize,`${t}.holeSize`,0,90)),e.firstSliceAng!==void 0&&(M(Wd.has(e.type),`${t}.firstSliceAng is only valid for pie, doughnut, and ofPie charts.`),Lu(e.firstSliceAng,`${t}.firstSliceAng`,0,360)),e.gapWidth!==void 0&&(M(e.type===`bar`||e.type===`bar3D`||e.type===`ofPie`,`${t}.gapWidth is only valid for bar, bar3D, and ofPie charts.`),Lu(e.gapWidth,`${t}.gapWidth`,0,500)),e.gapDepth!==void 0&&(M(e.type===`bar3D`||e.type===`line3D`||e.type===`area3D`,`${t}.gapDepth is only valid for bar3D, line3D, and area3D charts.`),Lu(e.gapDepth,`${t}.gapDepth`,0,500)),e.overlap!==void 0&&(M(e.type===`bar`,`${t}.overlap is only valid for 2-D bar charts (bar3D rejects overlap per CT_Bar3DChart).`),Lu(e.overlap,`${t}.overlap`,-100,100)),e.bubbleScale!==void 0&&(M(e.type===`bubble`,`${t}.bubbleScale is only valid for bubble charts.`),Lu(e.bubbleScale,`${t}.bubbleScale`,0,300)),e.showNegBubbles!==void 0&&M(e.type===`bubble`,`${t}.showNegBubbles is only valid for bubble charts.`),e.sizeRepresents!==void 0&&M(e.type===`bubble`,`${t}.sizeRepresents is only valid for bubble charts.`),e.splitPos!==void 0&&(M(e.type===`ofPie`,`${t}.splitPos is only valid for ofPie charts.`),Iu(e.splitPos,`${t}.splitPos`)),e.secondPieSize!==void 0&&(M(e.type===`ofPie`,`${t}.secondPieSize is only valid for ofPie charts.`),Lu(e.secondPieSize,`${t}.secondPieSize`,5,200)),e.shape!==void 0&&M(e.type===`bar3D`,`${t}.shape is only valid for bar3D charts.`),e.showMarker!==void 0&&M(e.type===`line`||e.type===`radar`,`${t}.showMarker is only valid for line and radar charts (line3D does not support markers).`),e.smooth!==void 0&&M(e.type===`line`||e.type===`scatter`,`${t}.smooth is only valid for line and scatter charts (line3D does not support smooth).`),e.hiLowLines!==void 0&&M(e.type===`line`||e.type===`stock`,`${t}.hiLowLines is only valid for line and stock charts (line3D does not support hiLowLines).`),e.upDownBars!==void 0&&M(e.type===`line`||e.type===`stock`,`${t}.upDownBars is only valid for line and stock charts (line3D does not support upDownBars).`),e.dropLines!==void 0&&M(e.type===`line`||e.type===`line3D`||e.type===`area`||e.type===`area3D`||e.type===`stock`,`${t}.dropLines is only valid for line, area, and stock charts.`),e.serLines!==void 0&&M(e.type===`bar`||e.type===`ofPie`,`${t}.serLines is only valid for bar and ofPie charts.`),Yu(e.categoryAxis,`${t}.categoryAxis`),Yu(e.valueAxis,`${t}.valueAxis`)}function Hu(e,t){e.style!==void 0&&Lu(e.style,`${t}.style`,1,48)}function Uu(e,t,n,r={}){let i=r.allowMissingRefs===!0;if(M(!!t&&typeof t==`object`,`${n} must be an object.`),i?t.values!==void 0&&M(typeof t.values==`string`&&t.values.length>0,`${n}.values must be a non-empty formula string.`):M(typeof t.values==`string`&&t.values.length>0,`${n}.values is required and must be a non-empty formula string.`),t.trendline!==void 0){M(!Ud.has(e),`${n}.trendline is not valid for ${e} charts.`);let r=Array.isArray(t.trendline)?t.trendline:[t.trendline];for(let e=0;e<r.length;e++)Ku(r[e],`${n}.trendline${r.length>1?`[${e}]`:``}`)}if(t.marker?.size!==void 0&&Lu(t.marker.size,`${n}.marker.size`,2,72),t.explosion!==void 0&&(M(Wd.has(e),`${n}.explosion is only valid for pie, doughnut, and ofPie charts.`),Lu(t.explosion,`${n}.explosion`,0,400)),t.bubble3D!==void 0&&M(e===`bubble`,`${n}.bubble3D is only valid for bubble charts.`),t.bubbleSize!==void 0&&M(e===`bubble`,`${n}.bubbleSize is only valid for bubble charts.`),e===`bubble`&&!i&&(M(t.xValues!==void 0,`${n}.xValues is required for bubble charts. Use a numeric range for x-values.`),M(t.bubbleSize!==void 0,`${n}.bubbleSize is required for bubble charts. Use a numeric range for bubble sizes.`)),e===`scatter`&&!i&&M(t.xValues!==void 0,`${n}.xValues is required for scatter charts. Use a numeric range for x-values.`),t.xValues!==void 0&&M(e===`scatter`||e===`bubble`,`${n}.xValues is only valid for scatter and bubble charts.`),t.dataPoints)for(let r=0;r<t.dataPoints.length;r++)Gu(e,t.dataPoints[r],`${n}.dataPoints[${r}]`);if(t.dataLabels&&Ju(e,t.dataLabels,`${n}.dataLabels`),t.errorBars){M(!Wd.has(e),`${n}.errorBars is not valid for ${e} charts.`);let r=Array.isArray(t.errorBars)?t.errorBars:[t.errorBars];if(Array.isArray(t.errorBars)&&t.errorBars.length>1&&e!==`scatter`&&e!==`bubble`&&M(!1,`${n}.errorBars must be a single configuration for ${e} charts; arrays are only valid for scatter and bubble.`),(e===`scatter`||e===`bubble`)&&Array.isArray(t.errorBars)&&t.errorBars.length>2&&M(!1,`${n}.errorBars allows at most 2 entries on ${e} charts (one for direction "x", one for "y"). Split additional configurations across separate series.`),(e===`scatter`||e===`bubble`)&&Array.isArray(t.errorBars)&&t.errorBars.length===2){let r=t.errorBars[0]?.direction,i=t.errorBars[1]?.direction;M(r!==void 0&&i!==void 0&&r!==i,`${n}.errorBars must use distinct directions ("x" and "y") when providing two entries on ${e} charts.`)}for(let e=0;e<r.length;e++)qu(r[e],`${n}.errorBars${r.length>1?`[${e}]`:``}`)}}function Wu(e,t,n){Uu(e,t,n,{allowMissingRefs:!0})}function Gu(e,t,n){Lu(t.index,`${n}.index`,0,2**53-1),t.explosion!==void 0&&(M(Wd.has(e),`${n}.explosion is only valid for pie, doughnut, and ofPie charts.`),Lu(t.explosion,`${n}.explosion`,0,400)),t.marker?.size!==void 0&&Lu(t.marker.size,`${n}.marker.size`,2,72)}function Ku(e,t){M(!!e&&typeof e==`object`,`${t} must be an object.`),M(!!e.type,`${t}.type is required.`),e.type===`poly`?Lu(e.order,`${t}.order`,2,6):M(e.order===void 0,`${t}.order is only valid for polynomial trendlines.`),e.type===`movingAvg`?Lu(e.period,`${t}.period`,2,2**53-1):M(e.period===void 0,`${t}.period is only valid for movingAvg trendlines.`),e.forward!==void 0&&Ru(e.forward,`${t}.forward`,0,2**53-1),e.backward!==void 0&&Ru(e.backward,`${t}.backward`,0,2**53-1)}function qu(e,t){M(!!e&&typeof e==`object`,`${t} must be an object.`),M(!!e.type,`${t}.type is required.`),e.type===`cust`?M(!!e.plus&&!!e.minus,`${t}.plus and ${t}.minus are required when type is "cust".`):M(e.plus===void 0&&e.minus===void 0,`${t}.plus and ${t}.minus are only valid when type is "cust".`),e.value!==void 0&&Ru(e.value,`${t}.value`,0,2**53-1)}function Ju(e,t,n){let r=Gd[e],i=()=>r?r.size===0?`(${e} does not support c:dLblPos — Excel rejects any value)`:[...r].sort().join(`, `):`(unknown chart type)`;if(t.position!==void 0&&M(!!r&&r.has(t.position),`${n}.position="${t.position}" is not valid for ${e} charts. Allowed: ${i()}.`),t.entries)for(let a=0;a<t.entries.length;a++){let o=t.entries[a];o?.position!==void 0&&M(!!r&&r.has(o.position),`${n}.entries[${a}].position="${o.position}" is not valid for ${e} charts. Allowed: ${i()}.`)}}function Yu(e,t){e&&(e.min!==void 0&&Iu(e.min,`${t}.min`),e.max!==void 0&&Iu(e.max,`${t}.max`),e.min!==void 0&&e.max!==void 0&&M(e.min<e.max,`${t}.min must be less than ${t}.max.`),e.majorUnit!==void 0&&(Ru(e.majorUnit,`${t}.majorUnit`,0,2**53-1),M(e.majorUnit>0,`${t}.majorUnit must be greater than 0.`)),e.minorUnit!==void 0&&(Ru(e.minorUnit,`${t}.minorUnit`,0,2**53-1),M(e.minorUnit>0,`${t}.minorUnit must be greater than 0.`)),e.majorUnit!==void 0&&e.minorUnit!==void 0&&M(e.minorUnit<=e.majorUnit,`${t}.minorUnit must be less than or equal to ${t}.majorUnit.`),e.logBase!==void 0&&Ru(e.logBase,`${t}.logBase`,2,1e3),e.textRotation!==void 0&&Lu(e.textRotation,`${t}.textRotation`,-90,90),e.lblOffset!==void 0&&Lu(e.lblOffset,`${t}.lblOffset`,0,1e3),e.tickLblSkip!==void 0&&Lu(e.tickLblSkip,`${t}.tickLblSkip`,1,2**53-1),e.tickMarkSkip!==void 0&&Lu(e.tickMarkSkip,`${t}.tickMarkSkip`,1,2**53-1),e.crossesAt!==void 0&&Iu(e.crossesAt,`${t}.crossesAt`),e.customUnit!==void 0&&(Ru(e.customUnit,`${t}.customUnit`,0,2**53-1),M(e.customUnit>0,`${t}.customUnit must be greater than 0.`)))}function Xu(e){let t=e.replace(/^#/,``).toUpperCase();if(!/^[0-9A-F]{6}([0-9A-F]{2})?$/.test(t))throw new w(`Invalid hex colour: ${JSON.stringify(e)}. Expected 6-digit (or 8-digit with alpha) hex like "#FF0000".`);let n={srgb:t.slice(0,6)};if(t.length===8){let e=parseInt(t.slice(6,8),16);n.alpha=Math.round(e/255*1e5)}return n}function Zu(e){let t=typeof e==`string`?e:e.name,n=typeof e==`string`?0:e.fmtId??0;if(!t)throw new w(`Pivot chart source name is required.`);if(!Number.isInteger(n)||n<0)throw new w(`Pivot chart source fmtId must be a non-negative integer.`);return`<c:pivotSource><c:name>${ou(t)}</c:name><c:fmtId val="${n}"/></c:pivotSource>`}function Qu(e){if(!e)return;if($u(e))return{...e};let t=e,n={};return t.noFill?n.fill={noFill:!0}:t.fill?n.fill={solid:Xu(t.fill)}:t.gradient?n.fill={gradient:t.gradient}:t.pattern&&(n.fill={pattern:t.pattern}),(t.border||t.borderWidth!==void 0)&&(n.line={},t.border&&(n.line.color=Xu(t.border)),t.borderWidth===void 0?t.border&&(n.line.width=Nl):n.line.width=Math.round(t.borderWidth*Ml)),Object.keys(n).length>0?n:void 0}function $u(e){if(!e||typeof e!=`object`)return!1;let t=e;return`_rawXml`in t||`fill`in t&&typeof t.fill==`object`||`line`in t&&typeof t.line==`object`&&!Array.isArray(t.line)||`effectList`in t||`scene3d`in t||`sp3d`in t||`transform`in t||`presetGeometry`in t||`customGeometry`in t}function ed(e){return{fill:{solid:Xu(e)}}}function td(e){if(e!==void 0)return typeof e==`string`?{value:e}:{strRef:Au(e.formula)}}function nd(e){let t=Qu(e.spPr);if(t)return t;let n;if(e.fill&&(n=ed(e.fill)),e.line||e.lineWidth!==void 0||e.lineDash){let t={};e.line&&(t.color=Xu(e.line)),e.lineWidth===void 0?e.line&&(t.width=Nl):t.width=Math.round(e.lineWidth*Ml),e.lineDash&&(t.dash=e.lineDash),n={...n,line:t}}return n}function rd(e){let t={};if(e.symbol&&(t.symbol=e.symbol),e.size!==void 0&&(t.size=e.size),e.fill||e.border){let n={};e.fill&&(n.fill={solid:Xu(e.fill)}),e.border&&(n.line={color:Xu(e.border),width:Nl}),t.spPr=n}return t}function id(e){let t={};e.showLegendKey!==void 0&&(t.showLegendKey=e.showLegendKey),e.showVal!==void 0&&(t.showVal=e.showVal),e.showCatName!==void 0&&(t.showCatName=e.showCatName),e.showSerName!==void 0&&(t.showSerName=e.showSerName),e.showPercent!==void 0&&(t.showPercent=e.showPercent),e.showBubbleSize!==void 0&&(t.showBubbleSize=e.showBubbleSize),e.showLeaderLines!==void 0&&(t.showLeaderLines=e.showLeaderLines),e.position&&(t.position=e.position),e.separator!==void 0&&(t.separator=e.separator),e.numFmt===void 0?e.numFmtLinked!==void 0&&(t.numFmt={formatCode:`General`,sourceLinked:e.numFmtLinked}):t.numFmt={formatCode:e.numFmt,sourceLinked:e.numFmtLinked};let n=Qu(e.spPr);return n&&(t.spPr=n),e.txPr&&(t.txPr=e.txPr),e.entries&&e.entries.length>0&&(t.entries=e.entries.map(e=>ad(e))),e.valueFromCells!==void 0&&(t.dataLabelsRange=typeof e.valueFromCells==`string`?{formula:e.valueFromCells}:e.valueFromCells),t}function ad(e){let t={index:e.index};if(e.delete)return t.delete=!0,t;e.text!==void 0&&(t.text=typeof e.text==`string`?{paragraphs:[{runs:[{text:e.text}]}]}:e.text),e.position&&(t.position=e.position),e.numFmt?t.numFmt={formatCode:e.numFmt,sourceLinked:e.numFmtLinked}:e.numFmtLinked!==void 0&&(t.numFmt={formatCode:`General`,sourceLinked:e.numFmtLinked});let n=Qu(e.spPr);return n&&(t.spPr=n),e.txPr&&(t.txPr=e.txPr),e.showVal!==void 0&&(t.showVal=e.showVal),e.showCatName!==void 0&&(t.showCatName=e.showCatName),e.showSerName!==void 0&&(t.showSerName=e.showSerName),e.showPercent!==void 0&&(t.showPercent=e.showPercent),e.showBubbleSize!==void 0&&(t.showBubbleSize=e.showBubbleSize),e.showLegendKey!==void 0&&(t.showLegendKey=e.showLegendKey),t}function od(e){let t={type:e.type};if(e.name!==void 0&&(t.name=e.name),e.order!==void 0&&(t.order=e.order),e.period!==void 0&&(t.period=e.period),e.forward!==void 0&&(t.forward=e.forward),e.backward!==void 0&&(t.backward=e.backward),e.intercept!==void 0&&(t.intercept=e.intercept),e.displayRSqr!==void 0&&(t.displayRSqr=e.displayRSqr),e.displayEq!==void 0&&(t.displayEq=e.displayEq),e.line||e.lineWidth!==void 0||e.lineDash){let n={};e.line&&(n.color=Xu(e.line)),e.lineWidth!==void 0&&(n.width=Math.round(e.lineWidth*Ml)),e.lineDash&&(n.dash=e.lineDash),t.spPr={line:n}}return e.label&&(t.trendlineLbl=sd(e.label)),t}function sd(e){let t={};e.text!==void 0&&(t.text=e.text),e.numFmt===void 0?e.numFmtLinked!==void 0&&(t.numFmt={formatCode:`General`,sourceLinked:e.numFmtLinked}):t.numFmt={formatCode:e.numFmt,sourceLinked:e.numFmtLinked},e.layout&&(t.layout=e.layout);let n=Qu(e.spPr);return n&&(t.spPr=n),e.txPr&&(t.txPr=e.txPr),t}function cd(e){let t={barDir:e.barDir??`both`,errValType:e.type};e.direction&&(t.errDir=e.direction),e.value!==void 0&&(t.val=e.value),e.noEndCap!==void 0&&(t.noEndCap=e.noEndCap),e.plus&&(t.plus=ju(e.plus)),e.minus&&(t.minus=ju(e.minus));let n=Qu(e.spPr);if(n)t.spPr=n;else if(e.line||e.lineWidth!==void 0||e.lineDash){let n={};e.line&&(n.color=Xu(e.line)),e.lineWidth!==void 0&&(n.width=Math.round(e.lineWidth*Ml)),e.lineDash&&(n.dash=e.lineDash),t.spPr={line:n}}return t}function ld(e){let t={index:e.index};if(e.fill||e.border){let n={};e.fill&&(n.fill={solid:Xu(e.fill)}),e.border&&(n.line={color:Xu(e.border),width:Nl}),t.spPr=n}return e.explosion!==void 0&&(t.explosion=e.explosion),e.bubble3D!==void 0&&(t.bubble3D=e.bubble3D),e.marker&&(t.marker=rd(e.marker)),e.invertIfNegative!==void 0&&(t.invertIfNegative=e.invertIfNegative),t}function ud(e,t,n={}){e.spPr=nd(t),t.marker&&(e.marker=rd(t.marker)),t.dataLabels&&(e.dataLabels=id(t.dataLabels)),t.trendline&&(e.trendlines=(Array.isArray(t.trendline)?t.trendline:[t.trendline]).map(od)),t.dataPoints&&(e.dataPoints=t.dataPoints.map(ld)),t.pictureFill&&dd(e,t.pictureFill,{supportsPictureOptions:n.supportsPictureOptions})}function dd(e,t,n={}){let r=t.applyToFront!==void 0||t.applyToSides!==void 0||t.applyToEnd!==void 0||t.scale!==void 0;if(n.supportsPictureOptions)e.pictureOptions={applyToFront:t.applyToFront,applyToSides:t.applyToSides,applyToEnd:t.applyToEnd,pictureFormat:t.fillMode,pictureStackUnit:t.scale};else if(r)throw new w("pictureFill.applyToFront / applyToSides / applyToEnd / scale are only valid for bar / bar3D series (mapped to c:pictureOptions in CT_BarSer). Use the plain `fill` / `spPr.fill.blip` form for other series types, or omit the bar-only hints.");(t.image!==void 0||t.relationshipId)&&(e.spPr&&typeof e.spPr==`object`&&delete e.spPr._rawXml,e.spPr=e.spPr??{},e.spPr.fill=e.spPr.fill??{},delete e.spPr.fill.solid,delete e.spPr.fill.gradient,delete e.spPr.fill.pattern,delete e.spPr.fill.noFill,e.spPr.fill.blip={fillMode:t.fillMode===`stack`||t.fillMode===`stackScale`?`tile`:`stretch`,...t.relationshipId?{relationshipId:t.relationshipId}:{},...t.image===void 0?{}:{_pendingImage:t.image}})}function fd(e,t){e.tx=td(t.name),t.categories&&(e.cat=Nu(t.categories)),t.values&&(e.val=ju(t.values))}function pd(e){if(e)return Array.isArray(e)?e.length>0?cd(e[0]):void 0:cd(e)}function md(e,t){let n={index:t,order:t};return fd(n,e),ud(n,e,{supportsPictureOptions:!0}),e.invertIfNegative!==void 0&&(n.invertIfNegative=e.invertIfNegative),n.errorBars=pd(e.errorBars),n}function hd(e,t){let n={index:t,order:t};return fd(n,e),ud(n,e),e.smooth!==void 0&&(n.smooth=e.smooth),n.errorBars=pd(e.errorBars),n}function gd(e,t){let n={index:t,order:t};return fd(n,e),ud(n,e),e.explosion!==void 0&&(n.explosion=e.explosion),n}function _d(e,t){let n={index:t,order:t};return fd(n,e),ud(n,e),n.errorBars=pd(e.errorBars),n}function vd(e,t){let n={index:t,order:t};return n.tx=td(e.name),e.xValues&&(n.xVal=Fu(e.xValues,e.xValueType)),e.values&&(n.yVal=ju(e.values)),ud(n,e),e.smooth!==void 0&&(n.smooth=e.smooth),e.errorBars&&(n.errorBars=(Array.isArray(e.errorBars)?e.errorBars:[e.errorBars]).map(cd)),n}function yd(e,t){let n={index:t,order:t};return n.tx=td(e.name),e.xValues&&(n.xVal=Fu(e.xValues,e.xValueType)),e.values&&(n.yVal=ju(e.values)),e.bubbleSize&&(n.bubbleSize=ju(e.bubbleSize)),ud(n,e),e.invertIfNegative!==void 0&&(n.invertIfNegative=e.invertIfNegative),e.bubble3D!==void 0&&(n.bubble3D=e.bubble3D),e.errorBars&&(n.errorBars=(Array.isArray(e.errorBars)?e.errorBars:[e.errorBars]).map(cd)),n}function bd(e,t){let n={index:t,order:t};return fd(n,e),ud(n,e),n}function xd(e,t){let n={index:t,order:t};return fd(n,e),ud(n,e),n}function Sd(e,t,n){if(Uu(e,t,`series`),e===`bar`||e===`bar3D`)return md(t,n);if(e===`line`||e===`line3D`||e===`stock`)return hd(t,n);if(e===`pie`||e===`pie3D`||e===`doughnut`||e===`ofPie`)return gd(t,n);if(e===`area`||e===`area3D`)return _d(t,n);if(e===`scatter`)return vd(t,n);if(e===`bubble`)return yd(t,n);if(e===`radar`)return bd(t,n);if(e===`surface`||e===`surface3D`)return xd(t,n);throw new w(`Unsupported chart type: ${String(e)}.`)}function Cd(e,t,n){if(n&&Wu(n,t,`series`),t.name!==void 0&&(e.tx=td(t.name)),t.categories!==void 0){let n=e;n.xVal&&!n.cat?n.xVal=Fu(t.categories,t.xValueType):n.cat=Nu(t.categories)}if(t.xValues!==void 0&&(e.xVal=Fu(t.xValues,t.xValueType)),t.values!==void 0){let n=e;n.yVal&&!n.val?n.yVal=ju(t.values):n.val=ju(t.values)}if(t.bubbleSize!==void 0&&(e.bubbleSize=ju(t.bubbleSize)),wd(t)){let n=nd(t);if(t.spPr!==void 0)e.spPr=n;else{let t=e.spPr??{},r={...t};n?.fill!==void 0&&(r.fill=n.fill),n?.line!==void 0&&(r.line={...t.line??{},...n.line}),e.spPr=r}e.spPr&&`_rawXml`in e.spPr&&delete e.spPr._rawXml}if(t.marker!==void 0&&(e.marker=rd(t.marker)),t.dataLabels!==void 0&&(e.dataLabels=id(t.dataLabels)),t.trendline!==void 0&&(e.trendlines=(Array.isArray(t.trendline)?t.trendline:[t.trendline]).map(od)),t.dataPoints!==void 0&&(e.dataPoints=t.dataPoints.map(ld)),t.errorBars!==void 0){let r=Array.isArray(t.errorBars)?t.errorBars:[t.errorBars];for(let e of r)qu(e,`series.errorBars`);let i=r.map(cd);e.errorBars=n===`scatter`||n===`bubble`?i:i[0]}t.pictureFill!==void 0&&dd(e,t.pictureFill,{supportsPictureOptions:n===`bar`||n===`bar3D`}),t.smooth!==void 0&&(e.smooth=t.smooth),t.invertIfNegative!==void 0&&(e.invertIfNegative=t.invertIfNegative),t.explosion!==void 0&&(e.explosion=t.explosion),t.bubble3D!==void 0&&(e.bubble3D=t.bubble3D)}function wd(e){return e.spPr!==void 0||e.fill!==void 0||e.line!==void 0||e.lineWidth!==void 0||e.lineDash!==void 0}function Td(e){return typeof e==`string`?{text:{paragraphs:[{runs:[{text:e}]}]},overlay:!1}:`formula`in e?{strRef:Au(e.formula),overlay:!1}:{text:e,overlay:!1}}function Ed(e){if(e)return e===!0?{showHorzBorder:!0,showVertBorder:!0,showOutline:!0,showKeys:!0}:{showHorzBorder:e.showHorzBorder,showVertBorder:e.showVertBorder,showOutline:e.showOutline,showKeys:e.showKeys}}function Dd(e){if(!e)return;if(e===!0)return{gapWidth:150};let t={gapWidth:e.gapWidth??150},n=Qu(e.upBars);n&&(t.upBars=n);let r=Qu(e.downBars);return r&&(t.downBars=r),t}function Od(e){if(e.showLegend!==!1)return{legendPos:e.legendPosition??`b`,overlay:!1}}function kd(e,t){if(!t)return;if(t.title!==void 0){let n=Td(t.title);e.title=e.title?{...e.title,strRef:n.strRef,text:n.text,rawTx:n.rawTx}:n}t.titleOptions&&(e.title||={overlay:!1},Id(e.title,t.titleOptions)),t.numFmt!==void 0&&(e.numFmt={...e.numFmt,formatCode:t.numFmt,...t.numFmtLinked===void 0?{}:{sourceLinked:t.numFmtLinked}}),(t.min!==void 0||t.max!==void 0||t.orientation||t.logBase)&&(e.scaling||={},t.min!==void 0&&(e.scaling.min=t.min),t.max!==void 0&&(e.scaling.max=t.max),t.orientation&&(e.scaling.orientation=t.orientation),t.logBase!==void 0&&(e.scaling.logBase=t.logBase)),t.majorUnit!==void 0&&e.axisType===`val`&&(e.majorUnit=t.majorUnit),t.minorUnit!==void 0&&e.axisType===`val`&&(e.minorUnit=t.minorUnit),t.majorTickMark&&(e.majorTickMark=t.majorTickMark),t.minorTickMark&&(e.minorTickMark=t.minorTickMark),t.tickLblPos&&(e.tickLblPos=t.tickLblPos);let n=Qu(t.majorGridlinesStyle);t.majorGridlines===!1?e.majorGridlines=void 0:n?e.majorGridlines=n:t.majorGridlines===!0&&(e.majorGridlines={});let r=Qu(t.minorGridlinesStyle);if(t.minorGridlines===!1?e.minorGridlines=void 0:r?e.minorGridlines=r:t.minorGridlines===!0&&(e.minorGridlines={}),t.hidden!==void 0&&(e.delete=t.hidden),t.crossBetween!==void 0&&e.axisType===`val`&&(e.crossBetween=t.crossBetween),t.txPr?e.txPr=t.txPr:t.textRotation!==void 0&&(e.txPr={rotation:Math.round(t.textRotation*6e4)}),t.lblAlgn!==void 0&&e.axisType===`cat`&&(e.lblAlgn=t.lblAlgn),t.lblOffset!==void 0&&e.axisType===`cat`&&(e.lblOffset=t.lblOffset),t.tickLblSkip!==void 0&&e.axisType===`cat`&&(e.tickLblSkip=t.tickLblSkip),t.tickMarkSkip!==void 0&&e.axisType===`cat`&&(e.tickMarkSkip=t.tickMarkSkip),t.crosses!==void 0&&(e.crosses=t.crosses),t.crossesAt!==void 0&&(e.crossesAt=t.crossesAt),e.axisType===`val`){let n=e;(t.displayUnits!==void 0||t.customUnit!==void 0||t.displayUnitsLabel!==void 0)&&(n.dispUnits=n.dispUnits??{},t.displayUnits!==void 0&&(n.dispUnits.builtInUnit=t.displayUnits),t.customUnit!==void 0&&(n.dispUnits.custUnit=t.customUnit),t.displayUnitsLabel!==void 0&&(n.dispUnits.label=Td(t.displayUnitsLabel)))}if(e.axisType===`date`){let n=e;t.baseTimeUnit!==void 0&&(n.baseTimeUnit=t.baseTimeUnit),t.majorTimeUnit!==void 0&&(n.majorTimeUnit=t.majorTimeUnit),t.minorTimeUnit!==void 0&&(n.minorTimeUnit=t.minorTimeUnit)}let i=Qu(t.spPr);if(i)e.spPr=i;else if(t.lineColor||t.lineWidth!==void 0||t.lineDash){let n={};t.lineColor&&(n.color=Xu(t.lineColor)),t.lineWidth!==void 0&&(n.width=Math.round(t.lineWidth*Ml)),t.lineDash&&(n.dash=t.lineDash),e.spPr||={},e.spPr.line=n}}function Ad(e){let t=e.alloc(),n=e.alloc();return{catAx:{axisType:`cat`,axId:t,scaling:{orientation:`minMax`},delete:!1,axPos:`b`,crossAx:n,crosses:`autoZero`,auto:!0,lblAlgn:`ctr`,lblOffset:100},valAx:{axisType:`val`,axId:n,scaling:{orientation:`minMax`},delete:!1,axPos:`l`,crossAx:t,crosses:`autoZero`,crossBetween:`between`,majorGridlines:{}}}}function jd(e){let t=e.alloc(),n=e.alloc();return{xAx:{axisType:`val`,axId:t,scaling:{orientation:`minMax`},delete:!1,axPos:`b`,crossAx:n,crosses:`autoZero`},yAx:{axisType:`val`,axId:n,scaling:{orientation:`minMax`},delete:!1,axPos:`l`,crossAx:t,crosses:`autoZero`,majorGridlines:{}}}}function Md(e){let{catAx:t,valAx:n}=Ad(e);return{catAx:t,valAx:n,serAx:{axisType:`ser`,axId:e.alloc(),scaling:{orientation:`minMax`},delete:!1,axPos:`b`,crossAx:t.axId,crosses:`autoZero`}}}function Nd(e,t,n){let r=e.type,i;switch(r){case`bar`:{let{catAx:a,valAx:o}=Ad(n),s=e.barDir??`col`;s===`bar`&&(a.axPos=`l`,o.axPos=`b`),i={group:{type:r,barDir:s,grouping:e.grouping??`clustered`,varyColors:e.varyColors,series:t.map(md),gapWidth:e.gapWidth??150,overlap:e.overlap,serLines:e.serLines?{}:void 0,axisIds:[a.axId,o.axId]},axes:[a,o]};break}case`bar3D`:{let{catAx:a,valAx:o,serAx:s}=Md(n),c=e.barDir??`col`;if(c===`bar`&&(a.axPos=`l`,o.axPos=`b`),e.overlap!==void 0)throw new w('bar3D charts do not support `overlap` (valid only on 2-D `bar`). Remove the field or switch to `type: "bar"`.');if(e.serLines!==void 0)throw new w('bar3D charts do not support `serLines` (valid only on 2-D `bar`). Remove the field or switch to `type: "bar"`.');i={group:{type:r,barDir:c,grouping:e.grouping??`clustered`,varyColors:e.varyColors,series:t.map(md),gapWidth:e.gapWidth??150,gapDepth:e.gapDepth,shape:e.shape,axisIds:[a.axId,o.axId,s.axId]},axes:[a,o,s]};break}case`line`:{let{catAx:a,valAx:o}=Ad(n);i={group:{type:r,grouping:e.grouping??`standard`,varyColors:e.varyColors,series:t.map(hd),marker:e.showMarker??!0,smooth:e.smooth,hiLowLines:e.hiLowLines?{}:void 0,upDownBars:Dd(e.upDownBars),dropLines:e.dropLines?{}:void 0,axisIds:[a.axId,o.axId]},axes:[a,o]};break}case`line3D`:{let{catAx:a,valAx:o,serAx:s}=Md(n);i={group:{type:r,grouping:e.grouping??`standard`,varyColors:e.varyColors,series:t.map(hd),dropLines:e.dropLines?{}:void 0,gapDepth:e.gapDepth,axisIds:[a.axId,o.axId,s.axId]},axes:[a,o,s]};break}case`pie`:case`pie3D`:i={group:{type:r,varyColors:e.varyColors??!0,series:t.map(gd),firstSliceAng:e.firstSliceAng??0},axes:[]};break;case`doughnut`:i={group:{type:`doughnut`,varyColors:e.varyColors??!0,series:t.map(gd),firstSliceAng:e.firstSliceAng??0,holeSize:e.holeSize??50},axes:[]};break;case`area`:{let{catAx:a,valAx:o}=Ad(n);i={group:{type:r,grouping:e.grouping??`standard`,varyColors:e.varyColors,series:t.map(_d),dropLines:e.dropLines?{}:void 0,axisIds:[a.axId,o.axId]},axes:[a,o]};break}case`area3D`:{let{catAx:a,valAx:o,serAx:s}=Md(n);i={group:{type:r,grouping:e.grouping??`standard`,varyColors:e.varyColors,series:t.map(_d),dropLines:e.dropLines?{}:void 0,gapDepth:e.gapDepth,axisIds:[a.axId,o.axId,s.axId]},axes:[a,o,s]};break}case`scatter`:{let{xAx:r,yAx:a}=jd(n);i={group:{type:`scatter`,scatterStyle:e.scatterStyle??`lineMarker`,varyColors:e.varyColors,series:t.map(vd),axisIds:[r.axId,a.axId]},axes:[r,a]};break}case`bubble`:{let{xAx:r,yAx:a}=jd(n);i={group:{type:`bubble`,varyColors:e.varyColors,series:t.map(yd),bubbleScale:e.bubbleScale,showNegBubbles:e.showNegBubbles,sizeRepresents:e.sizeRepresents,axisIds:[r.axId,a.axId]},axes:[r,a]};break}case`radar`:{let{catAx:r,valAx:a}=Ad(n);i={group:{type:`radar`,radarStyle:e.radarStyle??`marker`,varyColors:e.varyColors,series:t.map(bd),axisIds:[r.axId,a.axId]},axes:[r,a]};break}case`stock`:{if(e.varyColors!==void 0)throw new w("stock charts do not support `varyColors` (not in CT_StockChart). Remove the field or switch to a line / bar / area chart.");let{catAx:r,valAx:a}=Ad(n);i={group:{type:`stock`,series:t.map(hd),hiLowLines:e.hiLowLines?{}:void 0,upDownBars:Dd(e.upDownBars),dropLines:e.dropLines?{}:void 0,axisIds:[r.axId,a.axId]},axes:[r,a]};break}case`surface`:case`surface3D`:{let{catAx:a,valAx:o,serAx:s}=Md(n),c={type:r,wireframe:e.wireframe,series:t.map(xd),axisIds:[a.axId,o.axId,s.axId]};e.bandFormats&&e.bandFormats.length>0&&(c.bandFormats=e.bandFormats.map(e=>{let t=Qu(e.spPr);return{index:e.index,spPr:t??{}}})),i={group:c,axes:[a,o,s]};break}case`ofPie`:i={group:{type:`ofPie`,ofPieType:e.ofPieType??`pie`,varyColors:e.varyColors??!0,series:t.map(gd),gapWidth:e.gapWidth,splitType:e.splitType,splitPos:e.splitPos,secondPieSize:e.secondPieSize,serLines:e.serLines?{}:void 0},axes:[]};break;default:throw new w(`Unsupported chart type: ${String(r)}.`)}if(e.dataLabels&&(i.group.dataLabels=id(e.dataLabels)),i.axes.length>0){let t=i.axes.find(e=>e.axisType===`cat`||e.axisType===`date`),n=i.axes.find(e=>e.axisType===`val`);if(t){kd(t,e.categoryAxis);let n=i.axes.find(e=>e.axisType===`val`);n&&kd(n,e.valueAxis)}else if(n){kd(n,e.categoryAxis);let t=i.axes.find(e=>e.axisType===`val`&&e.axId!==n.axId);t&&kd(t,e.valueAxis)}}return i}function Pd(e,t){let n={plotArea:e,plotVisOnly:t.plotVisOnly??!0,dispBlanksAs:t.displayBlanksAs??`gap`};t.showDLblsOverMax!==void 0&&(n.showDLblsOverMax=t.showDLblsOverMax),t.pivotSource&&(n.pivotFormats=[{index:0}]),t.title===null?n.autoTitleDeleted=!0:t.title?(n.title=Td(t.title),t.titleOptions&&Id(n.title,t.titleOptions),n.autoTitleDeleted=!1):t.titleOptions&&(n.title={overlay:!1},Id(n.title,t.titleOptions),n.autoTitleDeleted=!1);let r=Od(t);if(r&&(n.legend=r,t.legendOptions&&Ld(r,t.legendOptions)),t.plotAreaOptions){t.plotAreaOptions.layout&&(e.layout=t.plotAreaOptions.layout);let n=Qu(t.plotAreaOptions.spPr);n&&(e.spPr=n)}t.view3D&&(n.view3D=t.view3D);let i=Qu(t.floor);i&&(n.floor=i);let a=Qu(t.sideWall);a&&(n.sideWall=a);let o=Qu(t.backWall);return o&&(n.backWall=o),{chart:n,style:t.style,roundedCorners:!1,lang:`en-US`,pivotSource:t.pivotSource?Zu(t.pivotSource):void 0,pivotOptions:Fd(t.pivotSource,t.pivotChartOptions)}}function Fd(e,t){if(t)return t;if(e&&typeof e==`object`&&e.options)return e.options}function Id(e,t){t.layout&&(e.layout=t.layout),t.overlay!==void 0&&(e.overlay=t.overlay);let n=Qu(t.spPr);n&&(e.spPr=n),t.txPr&&(e.txPr=t.txPr)}function Ld(e,t){t.layout&&(e.layout=t.layout),t.overlay!==void 0&&(e.overlay=t.overlay);let n=Qu(t.spPr);n&&(e.spPr=n),t.txPr&&(e.txPr=t.txPr),t.entries&&t.entries.length>0&&(e.legendEntries=t.entries.map(e=>{let t={index:e.index};return e.hidden&&(t.delete=!0),e.txPr&&(t.txPr=e.txPr),t}))}function Rd(e){zu(e);let{group:t,axes:n}=Nd(e,e.series??[],Ou());return Pd({chartTypes:[t],axes:n,dataTable:Ed(e.dataTable)},e)}function zd(e){Bu(e);let t=Ou(),n=[],r=[],i,a,o,s,c,l,u,d,f,p;for(let m of e.groups){let{group:e,axes:h}=Nd(m,m.series??[],t),g=h.length>=3&&h[2].axisType===`ser`;if(h.length>0&&m.useSecondaryAxis){if(h[0].axisType===`cat`){if(!l){let e=t.alloc(),n=t.alloc();l={axisType:`cat`,axId:e,scaling:{orientation:`minMax`},delete:!0,axPos:`b`,crossAx:n,crosses:`autoZero`,auto:!0,lblAlgn:`ctr`,lblOffset:100},u={axisType:`val`,axId:n,scaling:{orientation:`minMax`},delete:!1,axPos:`r`,crossAx:e,crosses:`max`,crossBetween:`between`},r.push(l,u)}kd(l,m.categoryAxis),kd(u,m.valueAxis),g?(d||(d={axisType:`ser`,axId:t.alloc(),scaling:{orientation:`minMax`},delete:!1,axPos:`b`,crossAx:l.axId,crosses:`autoZero`},r.push(d)),e.axisIds=[l.axId,u.axId,d.axId]):e.axisIds=[l.axId,u.axId]}else{if(!f){let e=t.alloc(),n=t.alloc();f={axisType:`val`,axId:e,scaling:{orientation:`minMax`},delete:!0,axPos:`b`,crossAx:n,crosses:`autoZero`},p={axisType:`val`,axId:n,scaling:{orientation:`minMax`},delete:!1,axPos:`r`,crossAx:e,crosses:`max`},r.push(f,p)}kd(f,m.categoryAxis),kd(p,m.valueAxis),e.axisIds=[f.axId,p.axId]}}else h.length>0&&(h[0].axisType===`cat`?i?(kd(i,m.categoryAxis),kd(a,m.valueAxis),g?(o||(o={axisType:`ser`,axId:t.alloc(),scaling:{orientation:`minMax`},delete:!1,axPos:`b`,crossAx:i.axId,crosses:`autoZero`},r.push(o)),e.axisIds=[i.axId,a.axId,o.axId]):e.axisIds=[i.axId,a.axId]):(i=h[0],a=h[1],r.push(i,a),g&&(o=h[2],r.push(o))):s?(kd(s,m.categoryAxis),kd(c,m.valueAxis),e.axisIds=[s.axId,c.axId]):(s=h[0],c=h[1],r.push(s,c)));n.push(e)}if(Bd(n)){let e=0;for(let t of n)for(let n of t.series)n.index=e,n.order=e,e++}return Pd({chartTypes:n,axes:r,dataTable:Ed(e.dataTable)},e)}function Bd(e){let t=new Set;for(let n of e)for(let e of n.series){if(t.has(e.index))return!0;t.add(e.index)}return!1}var Vd,Hd,Ud,Wd,Gd,Kd=n((()=>{Du(),E(),Pl(),Vd=1e8,Hd=new Set([`bar`,`bar3D`,`line`,`line3D`,`area`,`area3D`,`scatter`,`bubble`,`radar`,`stock`,`surface`,`surface3D`]),Ud=new Set([`pie`,`pie3D`,`doughnut`,`ofPie`,`surface`,`surface3D`]),Wd=new Set([`pie`,`pie3D`,`doughnut`,`ofPie`]),Gd={bar:new Set([`ctr`,`inBase`,`inEnd`,`outEnd`]),bar3D:new Set([`ctr`,`inBase`,`inEnd`,`outEnd`]),line:new Set([`ctr`,`l`,`r`,`t`,`b`]),line3D:new Set([`ctr`,`l`,`r`,`t`,`b`]),scatter:new Set([`ctr`,`l`,`r`,`t`,`b`]),bubble:new Set([`ctr`,`l`,`r`,`t`,`b`]),radar:new Set([`ctr`,`l`,`r`,`t`,`b`]),stock:new Set([`ctr`,`l`,`r`,`t`,`b`]),pie:new Set([`bestFit`,`ctr`,`inEnd`,`outEnd`]),pie3D:new Set([`bestFit`,`ctr`,`inEnd`,`outEnd`]),ofPie:new Set([`bestFit`,`ctr`,`inEnd`,`outEnd`]),doughnut:new Set,area:new Set([`ctr`]),area3D:new Set([`ctr`])}}));function Ste(e){let t=/^\s*(?:'([^'\r\n]+)'|([A-Za-z_][A-Za-z0-9_. ]*))!\$([A-Z]{1,3})\$(\d+):\$([A-Z]{1,3})\$(\d+)\s*$/.exec(e);return t?{sheet:t[1]??t[2],quotedSheet:!!t[1],colStart:t[3],colEnd:t[5],rowStart:parseInt(t[4],10),rowEnd:parseInt(t[6],10)}:null}function qd(e){let t=0;for(let n=0;n<e.length;n++)t=t*26+(e.charCodeAt(n)-64);return t}function Cte(e){let t=e,n=``;for(;t>0;){let e=(t-1)%26;n=String.fromCharCode(65+e)+n,t=Math.floor((t-1)/26)}return n}function wte(e){if(e.length===0)return null;if(e.length===1)return e[0];let t=[];for(let n of e){let e=Ste(n);if(!e||e.colStart!==e.colEnd)return null;t.push(e)}let n=t[0],r=qd(n.colStart);for(let e=1;e<t.length;e++){let i=t[e];if(i.sheet!==n.sheet||i.rowStart!==n.rowStart||i.rowEnd!==n.rowEnd)return null;let a=qd(i.colStart);if(a!==r+1)return null;r=a}let i=n.colStart,a=Cte(r);return`${n.quotedSheet?`'${n.sheet}'`:n.sheet}!$${i}$${n.rowStart}:$${a}$${n.rowEnd}`}function Jd(e){Ote(e);let t=jte(e.type),n=[],r={value:0},i;if(e.categories)i=r.value++,n.push({id:i,strDim:{type:`cat`,formula:e.categories,levels:[{ptCount:0,points:[]}]}});else{let t=e.series.find(e=>e.literalCategories?.length)?.literalCategories;if(t&&t.length>0){for(let n of e.series)if(n.literalCategories&&!Dte(n.literalCategories,t))throw new w("AddChartExOptions.series[*].literalCategories must be the same across all series; ChartEx stores categories on a shared category axis (see `opts.categories` for the formula-based alternative).");i=r.value++,n.push({id:i,strDim:{type:`cat`,levels:[{ptCount:t.length,points:t.map((e,t)=>({index:t,value:e}))}]}})}}let a=[];for(let o=0;o<e.series.length;o++){let s=e.series[o],c=Ete(s,o,t,i,n,r,e);a.push(c)}let o=[];if(Mte(e.type)){let t=e.type===`histogram`||e.type===`pareto`?0:.5;o.push({axisId:0,type:`cat`,catScaling:{gapWidth:t},tickLabels:{}}),o.push({axisId:1,type:`val`,majorGridlines:{},tickLabels:{}})}return{chartSpace:{chartData:{data:n},spPr:Qu(e.spPr),chart:{title:Tte(e.title),autoTitleDeleted:e.title===null||void 0,plotArea:{plotAreaRegion:{series:a},axis:o.length>0?o:void 0},legend:e.showLegend===!1||e.type===`histogram`?void 0:{legendPos:e.legendPosition??`t`,align:`ctr`,overlay:!1}}},style:e.chartStyle??{id:395},colors:e.chartColors??{id:10,method:`cycle`}}}function Tte(e){if(e!=null){if(typeof e==`string`)return{text:{paragraphs:[{runs:[{text:e}]}]},overlay:!1};if(`formula`in e&&typeof e.formula==`string`)return{strRef:{formula:e.formula,cache:{points:[]}},overlay:!1};if(`paragraphs`in e)return{text:e,overlay:!1};throw new w(`chartEx.title must be a string, a { formula: string } reference, or a ChartRichText object.`)}}function Ete(e,t,n,r,i,a,o){let s={layoutId:n,dataRefs:[]};e.name!==void 0&&(s.tx=typeof e.name==`string`?{value:e.name}:`formula`in e.name?{strRef:{formula:e.name.formula}}:{rich:e.name});let c=n===`sunburst`||n===`treemap`;r!==void 0&&s.dataRefs.push({dataId:r});let l=!1;if(c){let t=e.hierarchy;if(t&&r!==void 0&&o.categories){let e=wte([...t,o.categories]);if(e){l=!0;let t=i.find(e=>e.id===r);t?.strDim&&(t.strDim.formula=e,t.strDim.levels=void 0,t.strDim._skipCache=!0)}else for(let e=t.length-1;e>=0;e--){let n=t[e],r=a.value++;i.push({id:r,strDim:{type:`cat`,formula:n,levels:[{ptCount:0,points:[]}]}}),s.dataRefs.push({dataId:r})}}if(e.literalHierarchy)for(let t=e.literalHierarchy.length-1;t>=0;t--){let n=e.literalHierarchy[t],r=a.value++;i.push({id:r,strDim:{type:`cat`,levels:[{ptCount:n.length,points:n.map((e,t)=>({index:t,value:e}))}]}}),s.dataRefs.push({dataId:r})}}let u=a.value++,d=c?`size`:`val`;if(i.push({id:u,numDim:{type:d,formula:e.values,levels:e.literalValues?.length?[{ptCount:e.literalValues.length,points:e.literalValues.map((e,t)=>({index:t,value:e}))}]:[{ptCount:0,points:[]}],...l?{_skipCache:!0}:{}}}),s.dataRefs.push({dataId:u}),l){let t=i.find(e=>e.id===u);t?.numDim&&!e.literalValues?.length&&(t.numDim.levels=void 0)}let f=e.subtotalPoints,p=(()=>{if(e.subtotals&&f){let t=new Set([...e.subtotals,...f.map(e=>e.idx)]);return Array.from(t).sort((e,t)=>e-t)}return e.subtotals??f?.map(e=>e.idx)})();n===`waterfall`&&(s.layoutPr={subtotals:p?p.map(e=>({idx:e})):[]}),(n===`treemap`||n===`sunburst`)&&(s.layoutPr={...s.layoutPr??{},...n===`treemap`?{parentLabelLayout:`overlapping`}:{}}),o.layout&&(s.layoutPr=Yd(s.layoutPr??{},o.layout)),o.binning&&(s.layoutPr={...s.layoutPr??{},binning:Yd(s.layoutPr?.binning??{},o.binning)}),(o.type===`histogram`||o.type===`pareto`)&&!s.layoutPr?.binning&&(s.layoutPr={...s.layoutPr??{},binning:{binType:`auto`,intervalClosed:`r`}}),o.type===`pareto`&&s.layoutPr?.paretoLine===void 0&&(s.layoutPr={...s.layoutPr??{},paretoLine:!0});let m=Qu(e.spPr);if(m?s.spPr=m:(e.fill||e.border)&&(s.spPr={},e.fill&&(s.spPr.fill={solid:Xu(e.fill)}),e.border&&(s.spPr.line={color:Xu(e.border),width:Nl})),e.dataLabels){let t=e.dataLabels;s.dataLabels={visibility:{value:t.showValue,categoryName:t.showCategory,seriesName:t.showSeriesName,numFmt:t.showNumFmt},position:t.position,separator:t.separator,numFmt:t.numFmt,spPr:Qu(t.spPr),txPr:t.txPr}}return s.dataLabels||(n===`waterfall`||n===`funnel`?s.dataLabels={position:`outEnd`,visibility:{seriesName:!1,categoryName:!1,value:!0}}:(n===`sunburst`||n===`treemap`)&&(s.dataLabels={visibility:{seriesName:!1,categoryName:!0,value:!1}})),s}function Yd(e,t){let n={...e};for(let[e,r]of Object.entries(t))r!==void 0&&(n[e]=r);return n}function Dte(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Ote(e){if(!e||typeof e!=`object`)throw new w(`chartEx options are required.`);if(!e.type)throw new w(`chartEx.type is required.`);if(!Array.isArray(e.series)||e.series.length===0)throw new w(`chartEx.series must contain at least one series.`);if(e.binning&&e.type!==`histogram`&&e.type!==`pareto`)throw new w(`chartEx.binning is only valid for histogram and pareto charts, not ${e.type}.`);kte(e);let t=e.binning??e.layout?.binning;t&&Ate(t),e.series.forEach((t,n)=>{if(!t.values&&!t.literalValues?.length)throw new w(`chartEx.series[${n}].values or literalValues is required.`);if(t.literalValues?.some(e=>!Number.isFinite(e)))throw new w(`chartEx.series[${n}].literalValues must contain only finite numbers.`);if(t.literalCategories&&t.literalValues&&t.literalCategories.length!==t.literalValues.length)throw new w(`chartEx.series[${n}].literalCategories length must match literalValues length.`);if(t.hierarchy&&e.type!==`sunburst`&&e.type!==`treemap`)throw new w(`chartEx.series[${n}].hierarchy is only valid for sunburst and treemap charts.`);if(t.literalHierarchy&&e.type!==`sunburst`&&e.type!==`treemap`)throw new w(`chartEx.series[${n}].literalHierarchy is only valid for sunburst and treemap charts.`);if(t.literalHierarchy&&t.literalValues){for(let e=0;e<t.literalHierarchy.length;e++)if(t.literalHierarchy[e].length!==t.literalValues.length)throw new w(`chartEx.series[${n}].literalHierarchy[${e}] length must match literalValues length.`)}if((t.subtotals||t.subtotalPoints)&&e.type!==`waterfall`)throw new w(`chartEx.series[${n}].subtotals is only valid for waterfall charts.`);if(t.subtotals?.some(e=>!Number.isInteger(e)||e<0))throw new w(`chartEx.series[${n}].subtotals must contain non-negative integer indices.`);if(t.subtotalPoints?.some(e=>!Number.isInteger(e.idx)||e.idx<0))throw new w(`chartEx.series[${n}].subtotalPoints must contain non-negative integer indices.`)})}function kte(e){let t=e.layout;if(t){if(t.binning&&e.type!==`histogram`&&e.type!==`pareto`)throw new w(`chartEx.layout.binning is only valid for histogram and pareto charts.`);if(t.subtotals&&e.type!==`waterfall`)throw new w(`chartEx.layout.subtotals is only valid for waterfall charts.`);if([t.connectorLines,t.increaseSpPr,t.decreaseSpPr,t.totalSpPr].some(e=>e!==void 0)&&e.type!==`waterfall`)throw new w(`chartEx.layout waterfall fields are only valid for waterfall charts.`);if(t.parentLabelLayout!==void 0&&e.type!==`sunburst`&&e.type!==`treemap`)throw new w(`chartEx.layout.parentLabelLayout is only valid for sunburst and treemap charts.`);if([t.quartileMethod,t.showMeanLine,t.showMeanMarker,t.showInnerPoints,t.showOutlierPoints].some(e=>e!==void 0)&&e.type!==`boxWhisker`)throw new w(`chartEx.layout box-whisker fields are only valid for boxWhisker charts.`);if([t.projection,t.regionLabels,t.geoMappingLevel].some(e=>e!==void 0)&&e.type!==`regionMap`)throw new w(`chartEx.layout region-map fields are only valid for regionMap charts.`);if(t.paretoLine!==void 0&&e.type!==`pareto`)throw new w(`chartEx.layout.paretoLine is only valid for pareto charts.`)}}function Ate(e){if(e.binSize!==void 0&&e.binSize<=0)throw new w(`chartEx.binning.binSize must be greater than 0.`);if(e.binCount!==void 0&&(!Number.isInteger(e.binCount)||e.binCount<=0))throw new w(`chartEx.binning.binCount must be a positive integer.`);if(e.underflow!==void 0&&e.overflow!==void 0&&e.underflow>=e.overflow)throw new w(`chartEx.binning.underflow must be less than overflow.`)}function jte(e){switch(e){case`sunburst`:return`sunburst`;case`treemap`:return`treemap`;case`waterfall`:return`waterfall`;case`funnel`:return`funnel`;case`histogram`:case`pareto`:return`clusteredColumn`;case`boxWhisker`:return`boxWhisker`;case`regionMap`:return`regionMap`;default:throw new w(`Unsupported chartEx type: ${String(e)}.`)}}function Mte(e){return e===`histogram`||e===`pareto`||e===`waterfall`||e===`boxWhisker`}var Xd=n((()=>{Kd(),E(),Pl()}));function Zd(e,t){return`${e}:${t}`}var Qd=n((()=>{}));function Nte(e,t){let n=new Map,r=ff(t,[],n);for(let t of e)if(!pf(t,r)&&!vf(t,r))return;return n}function Pte(e,t){let n=[];return Ite(e,t,n),{writes:n,diagnostics:[]}}function Fte(e){cf(e.writes)}function Ite(e,t,n){let r=e.chart?.plotArea;if(!r)return;let i=t.date1904,a=ff(t,n);$d(e.chart?.title,a);for(let e of r.axes??[])$d(e.title,a);for(let e of r.chartTypes)Rte(e,a,i)}function $d(e,t){let n=e?.strRef;if(!n?.formula||n.cache?.points&&n.cache.points.length>0)return;let r=pf(n.formula,t);if(!r)return;let i=[],a=0;for(let e of r.cells){let t=Cf(e.value);t!==void 0&&i.push({index:a,value:t}),a+=1}r.cells.length>0&&lf(n,{pointCount:a,points:i},t)}function ef(e,t,n={}){let r=[];return Lte(e,t,r,n),{writes:r,diagnostics:[]}}function tf(e){cf(e.writes)}function Lte(e,t,n,r){let i=e.chartSpace?.chartData?.data,a=ff(t,n),o=e.chartSpace?.chart?.title?.strRef;if(o?.formula&&(o.cache?.points?.length??0)===0){let e=pf(o.formula,a);if(e){let t=e.cells.find(e=>Cf(e.value)!==void 0);if(t){let e=Cf(t.value);e!==void 0&&lf(o,{points:[{index:0,value:e}]},a)}}}if(!(!i||i.length===0))for(let e of i){if(e.strDim?.formula&&(r.includeSkippedDimensions||!zte(e.strDim))){let t=pf(e.strDim.formula,a);if(t&&t.cells.length>0){let n=[],r=0;for(let e of t.cells){let t=Cf(e.value);t!==void 0&&t!==``&&n.push({index:r,value:t}),r++}uf(e.strDim,[{ptCount:r,points:n}],`chart-ex-string-levels`,a)}}if(e.numDim?.formula&&(r.includeSkippedDimensions||!Bte(e.numDim))){let n=pf(e.numDim.formula,a);if(n&&n.cells.length>0){let r=[],i=0;for(let e of n.cells){let n=Sf(e.value,t.date1904);n!==void 0&&r.push({index:i,value:n}),i++}let o=e.numDim.levels?.[0];uf(e.numDim,[{ptCount:i,points:r,...o?.formatCode?{formatCode:o.formatCode}:{}}],`chart-ex-number-levels`,a)}}}}function Rte(e,t,n){let r=e.dataLabels;r?.dataLabelsRange?.formula&&nf(r.dataLabelsRange,t);let i=e.series;if(i)for(let e of i)Vte(e,t,n)}function zte(e){return e._skipCache?!0:e.levels?.some(e=>e.points.length>0)??!1}function Bte(e){return e._skipCache?!0:e.levels?.some(e=>e.points.length>0)??!1}function Vte(e,t,n){let r=e.tx;r?.strRef&&of(r.strRef,t);let i=e.cat;i&&rf(i,t,n);let a=e.xVal;a&&rf(a,t,n);let o=e.val;o?.numRef&&af(o.numRef,t,n);let s=e.yVal;s?.numRef&&af(s.numRef,t,n);let c=e.bubbleSize;c?.numRef&&af(c.numRef,t,n);let l=e.errorBars;if(l){let e=Array.isArray(l)?l:[l];for(let r of e)r.plus?.numRef&&af(r.plus.numRef,t,n),r.minus?.numRef&&af(r.minus.numRef,t,n)}let u=e.dataLabels;u?.dataLabelsRange?.formula&&nf(u.dataLabelsRange,t)}function nf(e,t){if(e.cache?.points&&e.cache.points.length>0)return;let n=pf(e.formula,t);if(!n)return;let r=[],i=0;for(let e of n.cells){let t=Cf(e.value);t!==void 0&&t!==``&&r.push({index:i,value:t}),i++}i>0&&lf(e,{pointCount:i,points:r},t)}function rf(e,t,n){e.strRef&&of(e.strRef,t),e.numRef&&af(e.numRef,t,n),e.multiLvlStrRef&&Hte(e.multiLvlStrRef,t)}function af(e,t,n){if(!e.formula||e.cache?.points&&e.cache.points.length>0)return;let r=pf(e.formula,t);if(!r)return;let i=[],a=0;for(let e of r.cells){let t=Sf(e.value,n);t!==void 0&&i.push({index:a,value:t}),a++}a!==0&&lf(e,{points:i,pointCount:a},t)}function of(e,t){if(!e.formula||e.cache?.points&&e.cache.points.length>0)return;let n=pf(e.formula,t);if(!n)return;let r=[],i=0;for(let e of n.cells){let t=Cf(e.value);t!==void 0&&t!==``&&r.push({index:i,value:t}),i++}i!==0&&lf(e,{points:r,pointCount:i},t)}function Hte(e,t){if(!e.formula||e.cache?.levels?.some(e=>e.points.length>0))return;let n=vf(e.formula,t);if(!n)return;let r=[];for(let e=0;e<n.columnCount;e++){let t=[];for(let r=0;r<n.rowCount;r++){let i=Cf(n.values[r]?.[e]);i!==void 0&&i!==``&&t.push({index:r,value:i})}r.push({pointCount:n.rowCount,points:t})}lf(e,{pointCount:n.rowCount,levels:r},t)}function sf(e,t){if(Array.isArray(e)&&Array.isArray(t)){e.splice(0,e.length,...structuredClone(t));return}for(let n of Object.keys(e))n in t||delete e[n];for(let[n,r]of Object.entries(t)){let t=e[n];df(t)&&df(r)&&Array.isArray(t)===Array.isArray(r)?sf(t,r):e[n]=structuredClone(r)}}function cf(e){for(let t of e)if(t.target.formula!==t.expectedFormula)throw Error(`Chart reference changed after cache planning`);for(let t of e){let e=t.kind.endsWith(`levels`)?`levels`:`cache`,n=t.target,r=n[e];df(r)&&df(t.value)?sf(r,t.value):n[e]=structuredClone(t.value)}}function lf(e,t,n){if(e.formula){let r=`levels`in t?`multi-level-cache`:typeof t.points[0]?.value==`number`?`number-cache`:`string-cache`;n.writes.push({kind:r,target:e,expectedFormula:e.formula,value:t})}}function uf(e,t,n,r){e.formula&&r.writes.push({kind:n,target:e,expectedFormula:e.formula,value:t})}function df(e){return typeof e==`object`&&!!e}function ff(e,t,n){return{snapshot:e,writes:t,requestedCells:n,localSheetId:e.contextLocalSheetId,visitedDefinedNames:new Set,definedNameDepth:0}}function pf(e,t){let n=Kte(e,t);if(n)return n;let r=Ute(e,t);if(r)return r;let i=yf(e),a,o=[];for(let e of i){let n=e.trim();if(!n)continue;let r;try{r=D.decodeEx(n)}catch{return}if(`error`in r)return;let i=r.sheetName;if(!i)return;let s=xf(t.snapshot,i);if(!s)return;if(a||=s,`top`in r&&`left`in r){let e=r.top,n=r.left,i=r.bottom,a=r.right;for(let r=e;r<=i;r++)for(let e=n;e<=a;e++)o.push({value:bf(s,r,e,t)})}else if(`row`in r&&`col`in r){let e=r.row,n=r.col;o.push({value:bf(s,e,n,t)})}}if(a)return{worksheet:a,cells:o}}function Ute(e,t){let n=mf(e,t);if(!n)return;let r=gf(n.name,n.localSheetId);if(!t.visitedDefinedNames.has(r)&&!(t.definedNameDepth>=wf)){t.visitedDefinedNames.add(r),t.definedNameDepth+=1;try{let e=[],r;for(let i of n.ranges){if(!i)continue;let n=pf(i,t);if(n){r||=n.worksheet;for(let t of n.cells)e.push(t)}}return r?{worksheet:r,cells:e}:void 0}finally{t.visitedDefinedNames.delete(r),--t.definedNameDepth}}}function mf(e,t){let n=e.trim();if(!n)return;let r=Wte(n);if(r){let e=xf(t.snapshot,r.sheetName);if(e){let n=typeof e.orderNo==`number`?e.orderNo:t.snapshot.worksheets.indexOf(e);if(n>=0){let e=hf(t.snapshot,r.name,n);if(e)return{name:r.name,localSheetId:n,ranges:e}}}let n=hf(t.snapshot,r.name,void 0);return n?{name:r.name,ranges:n}:void 0}if(!Tf.test(n))return;if(t.localSheetId!==void 0){let e=hf(t.snapshot,n,t.localSheetId);if(e)return{name:n,localSheetId:t.localSheetId,ranges:e}}let i=hf(t.snapshot,n,void 0);if(i)return{name:n,ranges:i}}function hf(e,t,n){let r=e.definedNames.find(e=>e.name.toLowerCase()===t.toLowerCase()&&e.localSheetId===n);return r?.ranges.length?[...r.ranges]:void 0}function gf(e,t){return t===void 0?e:`${e}\0${t}`}function Wte(e){let t=0,n=``;if(e[0]===`'`)for(t=1;t<e.length;)if(e[t]===`'`&&e[t+1]===`'`)n+=`'`,t+=2;else if(e[t]===`'`){t++;break}else n+=e[t],t++;else{let r=e.indexOf(`!`);if(r<=0)return;n=e.slice(0,r),t=r}if(e[t]!==`!`)return;let r=e.slice(t+1);if(Tf.test(r))return{sheetName:n,name:r}}function Gte(e){let t=0,n=``;if(e[0]===`'`){for(t=1;t<e.length;)if(e[t]===`'`&&e[t+1]===`'`)n+=`'`,t+=2;else if(e[t]===`'`){t++;break}else n+=e[t],t++;if(e[t]!==`!`)return}else{let r=e.indexOf(`!`);if(r<=0)return;n=e.slice(0,r),t=r}if(e[t]===`!`)return{sheetName:n,remainder:e.slice(t+1)}}function Kte(e,t){let n=Gte(e.trim()),r=n?n.remainder:e.trim(),i=n?.sheetName,a=qte(r);if(!a)return;let o=[...t.snapshot.worksheets];if(i){let e=i.toLowerCase(),t=o.findIndex(t=>t.name.toLowerCase()===e);t>0&&o.unshift(...o.splice(t,1))}for(let e of o){let n=e.tables.find(e=>e.name===a.tableName||e.displayName===a.tableName);if(!n)continue;let r=n.columns.findIndex(e=>e===a.columnName);if(r<0)return;let i=D.decode(n.ref);if(!(`top`in i))return;let o=i.top+ +!!n.headerRow,s=i.bottom-+!!n.totalsRow,c=i.left+r,l=[];for(let n=o;n<=s;n++)l.push({value:bf(e,n,c,t)});return{worksheet:e,cells:l}}}function qte(e){let t=Jte(e);if(!t||e[t.end]!==`[`||!e.endsWith(`]`))return;let n=e.slice(t.end+1,-1);if(n.length===0)return;let r=Yte(n);return r?{tableName:t.name,columnName:r}:void 0}function Jte(e){if(e.startsWith(`'`)){let t=``;for(let n=1;n<e.length;n++)if(e[n]===`'`&&e[n+1]===`'`)t+=`'`,n++;else if(e[n]===`'`)return{name:t,end:n+1};else t+=e[n];return}let t=e.indexOf(`[`);if(!(t<=0))return{name:e.slice(0,t),end:t}}function Yte(e){if(e.startsWith(`@`))return _f(`${e.slice(1).replace(/^\[(.*)\]$/,`$1`)}]`,0).value;if(!e.startsWith(`[`))return e.startsWith(`#`)?void 0:_f(`${e}]`,0).value;let t=[],n=0;for(;n<e.length;){if(e[n]!==`[`){n++;continue}let r=_f(e,n+1);t.push(r.value),n=r.end}return t.filter(e=>e&&!e.startsWith(`#`)).pop()}function _f(e,t){let n=t,r=``;for(;n<e.length;)if(e[n]===`'`&&n+1<e.length)r+=e[n+1],n+=2;else if(e[n]===`]`){n++;break}else r+=e[n],n++;return{value:r.trim(),end:n}}function vf(e,t){let n=mf(e,t);if(n){let e=gf(n.name,n.localSheetId);if(t.visitedDefinedNames.has(e)||t.definedNameDepth>=wf)return;t.visitedDefinedNames.add(e),t.definedNameDepth+=1;try{let e,r=[],i=0;for(let a of n.ranges){let n=vf(a,t);n&&(e||=n.worksheet,r.push(...n.values),i=Math.max(i,n.columnCount))}return e?{worksheet:e,values:r,rowCount:r.length,columnCount:i}:void 0}finally{t.visitedDefinedNames.delete(e),--t.definedNameDepth}}let r=yf(e),i,a=[],o=0;for(let e of r){let n=e.trim();if(!n)continue;let r;try{r=D.decodeEx(n)}catch{return}if(`error`in r)return;let s=r.sheetName;if(!s)return;let c=xf(t.snapshot,s);if(!c)return;if(i||=c,`top`in r&&`left`in r){let e=r.top,n=r.left,i=r.bottom,s=r.right;o=Math.max(o,s-n+1);for(let r=e;r<=i;r++){let e=[];for(let i=n;i<=s;i++)e.push(bf(c,r,i,t));a.push(e)}}else`row`in r&&`col`in r&&(o=Math.max(o,1),a.push([bf(c,r.row,r.col,t)]))}if(i)return{worksheet:i,values:a,rowCount:a.length,columnCount:o}}function yf(e){let t=[],n=``,r=!1;for(let i=0;i<e.length;i++){let a=e[i];if(a===`'`){if(r&&e[i+1]===`'`){n+=`''`,i++;continue}r=!r,n+=a}else!r&&(a===`,`||a===`;`)?(t.push(n),n=``):n+=a}return n&&t.push(n),t}function bf(e,t,n,r){if(r.requestedCells){let i=e.name.toLowerCase(),a=r.requestedCells.get(i);a||(a=new Set,r.requestedCells.set(i,a)),a.add(Zd(t,n))}return e.cells.get(Zd(t,n))}function xf(e,t){return e.worksheetsByName.get(t.toLowerCase())}function Sf(e,t){if(e!=null){if(typeof e==`number`)return Number.isFinite(e)?e:void 0;if(typeof e==`boolean`)return+!!e;if(e instanceof Date)return Gn(e,t);if(typeof e==`string`){let t=Number(e);if(Number.isFinite(t)&&e.trim()!==``)return t}}}function Cf(e){if(e!=null){if(typeof e==`string`)return e;if(typeof e==`number`||typeof e==`boolean`)return String(e);if(e instanceof Date){if(Number.isNaN(e.getTime()))return;let t=e.getUTCFullYear().toString().padStart(4,`0`),n=(e.getUTCMonth()+1).toString().padStart(2,`0`),r=e.getUTCDate().toString().padStart(2,`0`),i=e.getUTCHours(),a=e.getUTCMinutes(),o=e.getUTCSeconds();return i===0&&a===0&&o===0?`${t}-${n}-${r}`:`${t}-${n}-${r} ${i.toString().padStart(2,`0`)}:${a.toString().padStart(2,`0`)}:${o.toString().padStart(2,`0`)}`}}}var wf,Tf,Xte=n((()=>{Qd(),O(),dr(),wf=128,Tf=/^[A-Za-z_\\\u00A0-\uFFFF][\w.?\\\u00A0-\uFFFF]*$/}));function Ef(e){return{type:`pattern`,pattern:`solid`,fgColor:{argb:e}}}var Df,Of,kf,Af,jf,Mf,Nf,Pf,Ff,If,Zte=n((()=>{Df={theme:1},Of={argb:`FF1F4E79`},kf={argb:`FF1F4E79`},Af={argb:`FF006100`},jf={argb:`FFC6EFCE`},Mf={argb:`FF9C0006`},Nf={argb:`FFFFC7CE`},Pf={argb:`FF9C6500`},Ff={argb:`FFFFEB9C`},If={Title:{name:`Title`,builtinId:15,font:{name:`Calibri Light`,size:18,bold:!1,color:kf}},Heading1:{name:`Heading 1`,builtinId:16,font:{size:15,bold:!0,color:Of}},Heading2:{name:`Heading 2`,builtinId:17,font:{size:13,bold:!0,color:Of}},Heading3:{name:`Heading 3`,builtinId:18,font:{size:11,bold:!0,color:Of}},Heading4:{name:`Heading 4`,builtinId:19,font:{size:11,bold:!0,color:Df}},Good:{name:`Good`,builtinId:26,font:{color:Af},fill:Ef(jf.argb)},Bad:{name:`Bad`,builtinId:27,font:{color:Mf},fill:Ef(Nf.argb)},Neutral:{name:`Neutral`,builtinId:28,font:{color:Pf},fill:Ef(Ff.argb)}}})),N,Lf=n((()=>{N={OfficeDocument:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument`,Worksheet:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet`,CalcChain:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain`,SharedStrings:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings`,Styles:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles`,Theme:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme`,Hyperlink:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink`,Image:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,CoreProperties:`http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties`,ExtenderProperties:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties`,Comments:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments`,VmlDrawing:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing`,Table:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/table`,PivotCacheDefinition:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheDefinition`,PivotCacheRecords:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotCacheRecords`,PivotTable:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/pivotTable`,FeaturePropertyBag:`http://schemas.microsoft.com/office/2022/11/relationships/FeaturePropertyBag`,CtrlProp:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/ctrlProp`,SheetMetadata:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata`,ExternalLink:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink`,ExternalLinkPath:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath`,Chart:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart`,ChartEx:`http://schemas.microsoft.com/office/2014/relationships/chartEx`,ChartStyle:`http://schemas.microsoft.com/office/2011/relationships/chartStyle`,ChartColors:`http://schemas.microsoft.com/office/2011/relationships/chartColorStyle`,Drawing:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing`,ChartUserShapes:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartUserShapes`,Chartsheet:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet`,ThreadedComments:`http://schemas.microsoft.com/office/2017/10/relationships/threadedComment`,Person:`http://schemas.microsoft.com/office/2017/10/relationships/person`,Slicer:`http://schemas.microsoft.com/office/2007/relationships/slicer`,SlicerCache:`http://schemas.microsoft.com/office/2007/relationships/slicerCache`,Timeline:`http://schemas.microsoft.com/office/2011/relationships/timeline`,TimelineCache:`http://schemas.microsoft.com/office/2011/relationships/timelineCache`}}));function Rf(e){if(typeof e!=`string`||e===``)throw new g(`Named cell style name must be a non-empty string.`);if(e===`Normal`)throw new g(`The built-in "Normal" cell style cannot be redefined.`)}function zf(e,t,n){Rf(t),e._cellStyles||=new Map,e._cellStyles.set(t,{...n,name:t})}function Bf(e,t){return e._cellStyles?.get(t)}function Qte(e){return e._cellStyles?[...e._cellStyles.values()]:[]}function $te(e,t){return e._cellStyles?e._cellStyles.delete(t):!1}function ene(e,t){let{name:n,...r}=If[t];return zf(e,n,r),n}function tne(e,t){let n=t.tables;if(n)for(let t of Object.keys(n))e._tableNames.delete(t.toLowerCase());e._worksheets[t.id]=void 0}function Vf(e,t){return e.media[Number(t)]}function Hf(e){return e._opaqueParts.map(e=>/\/charts\/chart(?:Ex)?(\d+)\.xml$/i.exec(e.path)?.[1]).filter(e=>e!==void 0).map(Number).filter(e=>Number.isFinite(e))}function Uf(e){let t=[...Object.keys(e._chartEntries).map(Number),...Hf(e)];return t.length>0?Math.max(...t)+1:1}function Wf(e,t){e._chartEntries[t.chartNumber]=t}function Gf(e,t,n){e._chartStyles[t]=n}function Kf(e,t,n){e._chartColors[t]=n}function qf(e,t){return e._chartEntries[t]}function Jf(e,t){delete e._chartEntries[t],delete e._chartRels[t],delete e._chartStyles[t],delete e._chartColors[t]}function Yf(e){let t=Object.keys(e._chartExEntries??{}).map(Number),n=Object.keys(e._chartExStructuredEntries??{}).map(Number),r=[...t,...n,...Hf(e)];return r.length>0?Math.max(...r)+1:1}function Xf(e,t){e._chartExStructuredEntries||={},e._chartExStructuredEntries[t.chartExNumber]=t}function Zf(e,t){return e._chartExStructuredEntries?.[t]}function Qf(e,t,n){if(typeof t!=`string`)throw new g(`The name has to be a string.`);if(t===``)throw new g(`The name can't be empty.`);if(t===`History`)throw new g(`The name "History" is protected. Please use a different name.`);if(/[*?:/\\[\]]/.test(t))throw new g(`Sheet name ${t} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(t))throw new g(`The first or last character of sheet name cannot be a single quotation mark: ${t}`);t.length>31&&(t=t.substring(0,31));let r=t.toLowerCase(),i=e._worksheets.find(e=>e&&e!==n&&e._name.toLowerCase()===r),a=e._chartsheets.find(e=>e&&e!==n&&e.name.toLowerCase()===r);if(i||a)throw new g(`Sheet name already exists: ${t}`);return t}function $f(e,t){e._chartExStructuredEntries&&delete e._chartExStructuredEntries[t],delete e._chartExEntries[t],delete e._chartExRels[t],delete e._chartExStyles[t],delete e._chartExColors[t]}function ep(e){return e._definedNames}function tp(e,t){let{svg:n,...r}=t;if(n&&r.link&&r.buffer==null&&r.base64==null&&r.filename==null)throw new ae(`An SVG image requires an embedded raster fallback (buffer/base64/filename); it cannot be combined with an external link.`);let i=e.media.length,a={...r,type:`image`};if(e.media.push(a),n){let t=e.media.length;e.media.push({...n,type:`image`,extension:`svg`}),a.svgMediaId=t}return i}function np(e,t){if(t===void 0)return e._worksheets.find(Boolean);if(typeof t==`number`)return e._worksheets[t];if(typeof t==`string`){let n=t.toLowerCase();return e._worksheets.find(e=>e&&$a(e).toLowerCase()===n)}}function rp(e){return e._worksheets.slice(1).sort((e,t)=>e.orderNo-t.orderNo).filter(Boolean)}function ip(e,t,n,r=e){let i=e._chartStyles[t];i&&Gf(r,n,i.slice());let a=e._chartColors[t];a&&Kf(r,n,a.slice());let o=e._chartRels[t];if(Array.isArray(o)&&o.length>0){let t=r!==e;r._chartRels[n]=o.map(i=>{if(typeof i!=`object`||!i)return i;let a={...i},o=typeof a.Target==`string`?a.Target:void 0;if(o){if(/^style\d+\.xml$/.test(o))a.Target=`style${n}.xml`;else if(/^colors\d+\.xml$/.test(o))a.Target=`colors${n}.xml`;else if(t&&a.Type===N.Image){let t=ap(e,o,r);t!==void 0&&(a.Target=t)}}return a})}}function ap(e,t,n){let r=/\/media\/image(\d+)\.([a-zA-Z0-9]+)$/.exec(t);if(!r)return;let i=parseInt(r[1],10)-1;if(!Number.isFinite(i)||i<0)return;let a=Vf(e,i);if(!a)return;let o=a.extension;if(o!==`png`&&o!==`jpeg`&&o!==`gif`)return;let s={extension:o},c=a.buffer;if(c&&ArrayBuffer.isView(c)&&c.BYTES_PER_ELEMENT===1)s.buffer=c instanceof Uint8Array?c.slice():new Uint8Array(c.buffer.slice(c.byteOffset,c.byteOffset+c.byteLength));else if(typeof a.base64==`string`)s.base64=a.base64;else return;return`../media/image${tp(n,s)+1}.${o}`}function op(e,t,n,r=e){let i=e._chartExRels[t];if(i&&i.length>0){let t=r!==e;r._chartExRels[n]=i.map(i=>{if(typeof i!=`object`||!i)return i;let a={...i},o=typeof a.Target==`string`?a.Target:void 0;if(o){if(/^styleEx\d+\.xml$/.exec(o))a.Target=`styleEx${n}.xml`;else if(/^colorsEx\d+\.xml$/.exec(o))a.Target=`colorsEx${n}.xml`;else if(t&&a.Type===N.Image){let t=ap(e,o,r);t!==void 0&&(a.Target=t)}}return a})}let a=e._chartExStyles[t];a&&(r._chartExStyles[n]=a.slice());let o=e._chartExColors[t];o&&(r._chartExColors[n]=o.slice())}var sp=n((()=>{Zte(),Yo(),E(),Lf()}));function cp(e,t,n){let r=rp(e),i=e._definedNames?Ft(e._definedNames).map(e=>({name:e.name,ranges:[...e.ranges],localSheetId:e.localSheetId})):[],a=t?$a(t):void 0,o=t?t.orderNo??r.indexOf(t):void 0,s=r.map(e=>({name:$a(e),orderNo:e.orderNo,cells:new Map,tables:nne(e)})),c=u(s),l=n?Nte(n,c):void 0;return u(r.map((e,t)=>{let n=new Map,r=l?.get($a(e).toLowerCase());if(l)for(let t of r??[]){let[r,i]=t.split(`:`).map(Number),a=mo(e,r,i);a&&n.set(t,fp(wi(a)))}else fo(e,e=>{e.cells.forEach((t,r)=>{t&&n.set(Zd(e.number,r+1),fp(wi(t)))})});return{...s[t],cells:n}}));function u(t){return{worksheets:t,worksheetsByName:new Map(t.map(e=>[e.name.toLowerCase(),e])),definedNames:i,date1904:e.properties?.date1904??!1,contextSheetName:a,contextLocalSheetId:o!==void 0&&o>=0?o:void 0}}}function nne(e){return Vo(e).map(e=>{let t=os(e);return{name:fs(e),displayName:ps(e),ref:t.tableRef??t.ref,columns:t.columns.map(e=>e.name),headerRow:t.headerRow!==!1,totalsRow:t.totalsRow===!0}})}function lp(e,t,n){Fte(Pte(e,cp(t,n,dp(e))))}function up(e,t,n){tf(ef(e,cp(t,n,dp(e))))}function rne(e,t,n){tf(ef(e,cp(t,n,dp(e)),{includeSkippedDimensions:!0}))}function dp(e){let t=new Set;return n(e),[...t];function n(e){if(Array.isArray(e))e.forEach(n);else if(typeof e==`object`&&e)for(let[r,i]of Object.entries(e))r===`formula`&&typeof i==`string`?t.add(i):n(i)}}function fp(e){if(e!=null){if(typeof e==`object`&&`result`in e)return fp(e.result);if(typeof e==`object`&&`richText`in e)return e.richText?.map(e=>e.text??``).join(``);if(!(typeof e==`object`&&`error`in e)){if(typeof e==`object`&&`text`in e&&`hyperlink`in e)return e.text;if(e instanceof Date)return new Date(e.getTime());if(typeof e==`number`||typeof e==`string`||typeof e==`boolean`)return e}}}var pp=n((()=>{Xte(),Qd(),ha(),Kt(),Ms(),sp(),Yo()}));function mp(e,t,n){let r=ine(e.model);if(r.length===0)return;let i=e.rels??=[],a=new Set;for(let e of i)e?.Id&&a.add(e.Id);let o=t._chartRels?.[n];if(Array.isArray(o))for(let e of o)e?.Id&&a.add(e.Id);let s=1,c=()=>{let e=`rId${s++}`;for(;a.has(e);)e=`rId${s++}`;return a.add(e),e};for(let e of r){if(e.relationshipId||e._pendingImage===void 0){delete e._pendingImage;continue}let n=one(e._pendingImage,t);if(!n){delete e._pendingImage;continue}let{mediaId:r,extension:a}=n,o=c();e.relationshipId=o,delete e._pendingImage,i.push({Id:o,Type:`http://schemas.openxmlformats.org/officeDocument/2006/relationships/image`,Target:`../media/image${r+1}.${a}`})}}function ine(e){let t=[],n=e=>{let n=e?.fill?.blip;n&&(n.relationshipId||n._pendingImage)&&t.push(n)};n(e.spPr),n(e.chart?.title?.spPr),n(e.chart?.floor),n(e.chart?.sideWall),n(e.chart?.backWall),n(e.chart?.plotArea?.spPr);for(let t of e.chart?.plotArea?.chartTypes??[])ane(t,n);for(let t of e.chart?.plotArea?.axes??[])n(t.spPr),n(t.title?.spPr),n(t.majorGridlines),n(t.minorGridlines);n(e.chart?.legend?.spPr);for(let t of e.chart?.pivotFormats??[])n(t.spPr);return t}function ane(e,t){let n=e;if(n.series)for(let e of n.series){t(e.spPr);let n=e.dataLabels;t(n?.spPr);let r=e.trendlines;if(r)for(let e of r)t(e.spPr);let i=e.dataPoints;if(i)for(let e of i)t(e.spPr)}t(n.dropLines),t(n.hiLowLines),t(n.serLines),t(n.upDownBars?.upBars),t(n.upDownBars?.downBars)}function one(e,t){if(typeof e==`object`&&!Array.isArray(e)&&`workbookImageId`in e){let n=Vf(t,e.workbookImageId);if(!n)return;let r=n.extension;return r!==`png`&&r!==`jpeg`&&r!==`gif`?void 0:{mediaId:e.workbookImageId,extension:r}}if(ArrayBuffer.isView(e)&&e.BYTES_PER_ELEMENT===1){let n=e,r=n instanceof Uint8Array?n:new Uint8Array(n.buffer,n.byteOffset,n.byteLength),i=hp(r);return i?{mediaId:tp(t,{extension:i,buffer:r}),extension:i}:void 0}if(typeof e==`string`){let n=sne(e);return n?{mediaId:tp(t,{extension:n.extension,base64:n.base64}),extension:n.extension}:void 0}let n=e;if(n.buffer!=null){let e=n.buffer;if(ArrayBuffer.isView(e)){let r=e,i=r instanceof Uint8Array?r:new Uint8Array(r.buffer,r.byteOffset,r.byteLength);return{mediaId:tp(t,{extension:n.extension,buffer:i}),extension:n.extension}}}if(typeof n.base64==`string`&&n.base64.length>0)return{mediaId:tp(t,{extension:n.extension,base64:n.base64}),extension:n.extension}}function sne(e){if(!e)return;let t=/^data:image\/([a-z+]+)(?:;[^,;=]+(?:=[^,;]*)?)*;base64,(.+)$/i.exec(e.trim());if(t){let e=t[1].toLowerCase(),n=e===`jpg`?`jpeg`:e===`png`||e===`jpeg`||e===`gif`?e:void 0;return n===void 0?void 0:{extension:n,base64:t[2]}}return{extension:`png`,base64:e}}function hp(e){if(e.length>=8&&e[0]===137&&e[1]===80&&e[2]===78&&e[3]===71&&e[4]===13&&e[5]===10&&e[6]===26&&e[7]===10)return`png`;if(e.length>=3&&e[0]===255&&e[1]===216&&e[2]===255)return`jpeg`;if(e.length>=6&&e[0]===71&&e[1]===73&&e[2]===70&&e[3]===56&&(e[4]===55||e[4]===57)&&e[5]===97)return`gif`}var gp=n((()=>{sp()}));function _p(e){let t=!!e.colors&&e.colors.length>0,n=!!e.variations&&e.variations.length>0;if(!t&&!n)return e.rawXml??xp();let r=[];r.push(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>`);let i=[`xmlns:cs="http://schemas.microsoft.com/office/drawing/2012/chartStyle"`,`xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"`];if(e.method!==void 0&&i.push(`meth="${j(e.method)}"`),e.id!==void 0&&i.push(`id="${e.id}"`),r.push(`<cs:colorStyle ${i.join(` `)}>`),t)for(let t of e.colors)r.push(bp(t));if(n)for(let t of e.variations)r.push(vp(t));return r.push(`</cs:colorStyle>`),r.join(`
11
11
  `)}function vp(e){let t=[],n=(e,n)=>{n===void 0||!Number.isFinite(n)||t.push(`<a:${e} val="${Math.round(n)}"/>`)};return n(`lumMod`,e.lumMod),n(`lumOff`,e.lumOff),n(`tint`,e.tint),n(`shade`,e.shade),n(`satMod`,e.satMod),n(`alpha`,e.alpha),t.length===0?` <cs:variation/>`:` <cs:variation>${t.join(``)}</cs:variation>`}function yp(e){if(e.rawXml)return e.rawXml;let t=e.id??395;return e.elements&&Object.keys(e.elements).length,`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n${Sp.replace(/id="\d+"/,`id="${t}"`)}`}function bp(e){let t=[],n=(e,n)=>{n===void 0||!Number.isFinite(n)||t.push(`<a:${e} val="${Math.round(n)}"/>`)};n(`lumMod`,e.lumMod),n(`lumOff`,e.lumOff),n(`tint`,e.tint),n(`shade`,e.shade),n(`satMod`,e.satMod),n(`alpha`,e.alpha);let r,i;if(e.theme)r=`a:schemeClr`,i=j(e.theme);else if(e.srgb)r=`a:srgbClr`,i=j(e.srgb);else return``;return t.length===0?` <${r} val="${i}"/>`:` <${r} val="${i}">${t.join(``)}</${r}>`}function xp(){return`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n${Cp}`}var Sp,Cp,wp=n((()=>{Du(),Sp=`<cs:chartStyle xmlns:cs="http://schemas.microsoft.com/office/drawing/2012/chartStyle" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" id="395"><cs:axisTitle><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef><cs:defRPr sz="900"/></cs:axisTitle><cs:categoryAxis><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz="900"/></cs:categoryAxis><cs:chartArea mods="allowNoFillOverride allowNoLineOverride"><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val="bg1"/></a:solidFill><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz="1000"/></cs:chartArea><cs:dataLabel><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef><cs:defRPr sz="900"/></cs:dataLabel><cs:dataLabelCallout><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="dk1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val="lt1"/></a:solidFill><a:ln><a:solidFill><a:schemeClr val="dk1"><a:lumMod val="25000"/><a:lumOff val="75000"/></a:schemeClr></a:solidFill></a:ln></cs:spPr><cs:defRPr sz="900"/><cs:bodyPr rot="0" spcFirstLastPara="1" vertOverflow="clip" horzOverflow="clip" vert="horz" wrap="square" lIns="36576" tIns="18288" rIns="36576" bIns="18288" anchor="ctr" anchorCtr="1"><a:spAutoFit/></cs:bodyPr></cs:dataLabelCallout><cs:dataPoint><cs:lnRef idx="0"/><cs:fillRef idx="0"><cs:styleClr val="auto"/></cs:fillRef><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></cs:spPr></cs:dataPoint><cs:dataPoint3D><cs:lnRef idx="0"/><cs:fillRef idx="0"><cs:styleClr val="auto"/></cs:fillRef><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val="phClr"/></a:solidFill></cs:spPr></cs:dataPoint3D><cs:dataPointLine><cs:lnRef idx="0"><cs:styleClr val="auto"/></cs:lnRef><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef><cs:spPr><a:ln w="28575" cap="rnd"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:dataPointLine><cs:dataPointMarker><cs:lnRef idx="0"/><cs:fillRef idx="0"><cs:styleClr val="auto"/></cs:fillRef><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:ln w="9525"><a:solidFill><a:schemeClr val="lt1"/></a:solidFill></a:ln></cs:spPr></cs:dataPointMarker><cs:dataPointMarkerLayout symbol="circle" size="5"/><cs:dataPointWireframe><cs:lnRef idx="0"><cs:styleClr val="auto"/></cs:lnRef><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef><cs:spPr><a:ln w="28575" cap="rnd"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:dataPointWireframe><cs:dataTable><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w="9525"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill></a:ln></cs:spPr><cs:defRPr sz="900"/></cs:dataTable><cs:downBar><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="dk1"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val="dk1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></a:solidFill><a:ln w="9525"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></a:solidFill></a:ln></cs:spPr></cs:downBar><cs:dropLine><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef><cs:spPr><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="35000"/><a:lumOff val="65000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:dropLine><cs:errorBar><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef><cs:spPr><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:errorBar><cs:floor><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef></cs:floor><cs:gridlineMajor><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef><cs:spPr><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:gridlineMajor><cs:gridlineMinor><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef><cs:spPr><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:gridlineMinor><cs:hiLoLine><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef><cs:spPr><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="75000"/><a:lumOff val="25000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:hiLoLine><cs:leaderLine><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef><cs:spPr><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="35000"/><a:lumOff val="65000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr></cs:leaderLine><cs:legend><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef><cs:defRPr sz="900"/></cs:legend><cs:plotArea mods="allowNoFillOverride allowNoLineOverride"><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef></cs:plotArea><cs:plotArea3D mods="allowNoFillOverride allowNoLineOverride"><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef></cs:plotArea3D><cs:seriesAxis><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef><cs:spPr><a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill><a:round/></a:ln></cs:spPr><cs:defRPr sz="900"/></cs:seriesAxis><cs:seriesLine><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef><cs:spPr><a:ln w="9525" cap="flat"><a:solidFill><a:srgbClr val="D9D9D9"/></a:solidFill><a:round/></a:ln></cs:spPr></cs:seriesLine><cs:title><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef><cs:defRPr sz="1400"/></cs:title><cs:trendline><cs:lnRef idx="0"><cs:styleClr val="auto"/></cs:lnRef><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef><cs:spPr><a:ln w="19050" cap="rnd"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="sysDash"/></a:ln></cs:spPr></cs:trendline><cs:trendlineLabel><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef><cs:defRPr sz="900"/></cs:trendlineLabel><cs:upBar><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="dk1"/></cs:fontRef><cs:spPr><a:solidFill><a:schemeClr val="lt1"/></a:solidFill><a:ln w="9525"><a:solidFill><a:schemeClr val="tx1"><a:lumMod val="15000"/><a:lumOff val="85000"/></a:schemeClr></a:solidFill></a:ln></cs:spPr></cs:upBar><cs:valueAxis><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"><a:lumMod val="65000"/><a:lumOff val="35000"/></a:schemeClr></cs:fontRef><cs:defRPr sz="900"/></cs:valueAxis><cs:wall><cs:lnRef idx="0"/><cs:fillRef idx="0"/><cs:effectRef idx="0"/><cs:fontRef idx="minor"><a:schemeClr val="tx1"/></cs:fontRef></cs:wall></cs:chartStyle>`,Cp=`<cs:colorStyle xmlns:cs="http://schemas.microsoft.com/office/drawing/2012/chartStyle" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" meth="cycle" id="10"><a:schemeClr val="accent1"/><a:schemeClr val="accent2"/><a:schemeClr val="accent3"/><a:schemeClr val="accent4"/><a:schemeClr val="accent5"/><a:schemeClr val="accent6"/><cs:variation/><cs:variation><a:lumMod val="60000"/></cs:variation><cs:variation><a:lumMod val="80000"/><a:lumOff val="20000"/></cs:variation><cs:variation><a:lumMod val="80000"/></cs:variation><cs:variation><a:lumMod val="60000"/><a:lumOff val="40000"/></cs:variation><cs:variation><a:lumMod val="50000"/></cs:variation><cs:variation><a:lumMod val="70000"/><a:lumOff val="30000"/></cs:variation><cs:variation><a:lumMod val="70000"/></cs:variation><cs:variation><a:lumMod val="50000"/><a:lumOff val="50000"/></cs:variation></cs:colorStyle>`}));function Tp(e){return e?._rawXml}function Ep(e){return Op(e)}function Dp(e){if(!e||typeof e._rawXml!=`string`)return!1;for(let t of[`size`,`bold`,`italic`,`underline`,`strike`,`color`,`fontFamily`,`eastAsianFamily`,`complexScriptFamily`,`rotation`,`baseline`,`kern`,`spacing`,`cap`,`lang`])if(e[t]!==void 0)return!1;return!0}function Op(e){if(!e||typeof e._rawXml!=`string`)return!1;for(let t of[`fill`,`line`,`effectList`,`scene3d`,`sp3d`,`transform`,`presetGeometry`,`customGeometry`])if(e[t]!==void 0)return!1;return!0}function kp(e,t,n){let r=e.indexOf(n,t.index);if(r>=0){let i=e.indexOf(`>`,r);return e.slice(t.index,i>=0?i+1:r+n.length)}let i=e.indexOf(`>`,t.index);return e.slice(t.index,i>=0?i+1:t.index+t[0].length)}function Ap(e,t){let n=e=>e?Math.round(parseFloat(e[1])):void 0,r=n(/<a:alpha\s+val="(-?\d+(?:\.\d+)?)"/.exec(e));r!==void 0&&(t.alpha=r);let i=/<a:tint\s+val="(-?\d+(?:\.\d+)?)"/.exec(e);i&&(t.tint=parseFloat(i[1])/1e5);let a=n(/<a:shade\s+val="(-?\d+(?:\.\d+)?)"/.exec(e));a!==void 0&&(t.shade=a);let o=n(/<a:satMod\s+val="(-?\d+(?:\.\d+)?)"/.exec(e));o!==void 0&&(t.satMod=o);let s=n(/<a:lumMod\s+val="(-?\d+(?:\.\d+)?)"/.exec(e));s!==void 0&&(t.lumMod=s);let c=n(/<a:lumOff\s+val="(-?\d+(?:\.\d+)?)"/.exec(e));c!==void 0&&(t.lumOff=c)}function jp(e){let t=$p.exec(e);if(t){let n={srgb:t[1].toUpperCase()};return Ap(kp(e,t,`</a:srgbClr`),n),n}let n=em.exec(e);if(n){let t={dk1:0,tx1:0,lt1:1,bg1:1,dk2:2,tx2:2,lt2:3,bg2:3,accent1:4,accent2:5,accent3:6,accent4:7,accent5:8,accent6:9,hlink:10,folHlink:11},r=n[1],i=t[r],a=i===void 0?{schemeName:r}:{theme:i};return Ap(kp(e,n,`</a:schemeClr`),a),a}let r=nm.exec(e);if(r){let t={sysClr:r[1]};return Ap(kp(e,r,`</a:sysClr`),t),t}let i=rm.exec(e);if(i){let t={prstClr:i[1]};return Ap(kp(e,i,`</a:prstClr`),t),t}}function Mp(e){let t=e.indexOf(`<a:gradFill`),n=e.indexOf(`</a:gradFill`);if(t<0||n<0)return;let r=e.slice(t,n+20),i=[],a=r.indexOf(`<a:gsLst`),o=r.indexOf(`</a:gsLst`);if(a>=0&&o>=0){let e=r.slice(a,o+12),t=/<a:gs\s+pos="(-?\d+(?:\.\d+)?)"/g,n,s=[];for(;(n=t.exec(e))!==null;)s.push({pos:parseFloat(n[1]),startIdx:n.index});for(let t=0;t<s.length;t++){let n=s[t].startIdx,r=t+1<s.length?s[t+1].startIdx:e.length,a=jp(e.slice(n,r));a&&i.push({position:s[t].pos/1e5,color:a})}}if(i.length<2)return;let s,c,l,u=/<a:lin\b([^/>]*)\/?>/.exec(r);if(u){let e=u[1],t=/\bang="(-?\d+(?:\.\d+)?)"/.exec(e);t&&(s=parseFloat(t[1])/6e4);let n=/\bscaled="(1|true|0|false)"/.exec(e);n&&(c=n[1]===`1`||n[1]===`true`),l=`linear`}let d=/<a:path\s+path="([^"]+)"/.exec(r),f;if(d){l=d[1];let e=/<a:fillToRect\b([^/>]*)/.exec(r);if(e){let t=e[1],n=e=>{let n=RegExp(`\\b${e}="(-?\\d+(?:\\.\\d+)?)"`).exec(t);return n?parseFloat(n[1])/1e5:void 0};f={left:n(`l`),top:n(`t`),right:n(`r`),bottom:n(`b`)},f.left===void 0&&f.top===void 0&&f.right===void 0&&f.bottom===void 0&&(f=void 0)}}return{gradient:{stops:i,angle:s,type:l,...c===void 0?{}:{scaled:c},...f?{fillToRect:f}:{}}}}function Np(e){let t=/<a:pattFill\s+prst="([^"]+)"/.exec(e);if(!t)return;let n=t[1],r=t.index,i=e.indexOf(`</a:pattFill`,r),a=e.slice(r,i>0?i+15:void 0),o=(e,t,n)=>{let r=a.indexOf(e);if(r<0)return``;let i=a.indexOf(t,r);if(i>=0)return a.slice(r,i+t.length+1);let o=a.indexOf(n,r+e.length);return a.slice(r,o>0?o:void 0)},s=o(`<a:fgClr`,`</a:fgClr`,`<a:bgClr`),c=o(`<a:bgClr`,`</a:bgClr`,`<a:fgClr`);return{pattern:{preset:n,foreground:s?jp(s):void 0,background:c?jp(c):void 0}}}function Pp(e,t){let n=RegExp(`<${t}\\b[^>]*/>`),r=RegExp(`<${t}\\b[^>]*(?<!/)>`),i=RegExp(`</${t}>`),a=e;for(let e=0;e<8;e++){let e=n.exec(a),t=r.exec(a),o=e?e.index:1/0,s=t?t.index:1/0;if(o===1/0&&s===1/0)break;if(o<s&&e){a=a.slice(0,e.index)+a.slice(e.index+e[0].length);continue}if(t){let e=t.index+t[0].length,n=i.exec(a.slice(e));if(!n)break;let r=e+n.index+n[0].length;a=a.slice(0,t.index)+a.slice(r);continue}break}return a}function Fp(e){let t=Tp(e);if(!t)return e;let n={},r=Pp(t,`a:ln`),i=!1,a=/<a:solidFill\s*\/>/.exec(r),o=r.indexOf(`<a:solidFill`);if(o>=0&&!a){let e=r.indexOf(`</a:solidFill>`,o);if(e>=0){let t=jp(r.slice(o,e+14));t&&(n.fill={solid:t},i=!0)}}i||(r.includes(`<a:noFill`)?n.fill={noFill:!0}:r.includes(`<a:gradFill`)?n.fill=Mp(r):r.includes(`<a:pattFill`)&&(n.fill=Np(r)));let s=/<a:ln(?=[\s/>])([^>]*)/.exec(t);if(s){let e=/\/\s*$/.test(s[1]),r=s.index+s[0].length+1,i=e?-1:t.indexOf(`</a:ln>`,s.index),a=e?t.slice(s.index,r):i>=0?t.slice(s.index,i+7):t.slice(s.index,r),o={},c=/\bw="(\d+)"/.exec(s[1]);if(c&&(o.width=parseInt(c[1],10)),a.includes(`<a:noFill`))o.noFill=!0;else if(a.includes(`<a:solidFill`)){let e=/<a:solidFill>([\s\S]*?)<\/a:solidFill>/.exec(a);o.color=jp(e?e[1]:a)}let l=/<a:prstDash\s+val="([^"]+)"/.exec(a);l&&(o.dash=l[1]),n.line=o}if(t.includes(`<a:effectLst`)||t.includes(`<a:effectDag`)){let e=Vp(t);e&&(n.effectList=e)}if(t.includes(`<a:scene3d`)){let e=Up(t);e&&(n.scene3d=e)}if(t.includes(`<a:sp3d`)){let e=Wp(t);e&&(n.sp3d=e)}if(t.includes(`<a:xfrm`)){let e=Ip(t);e&&(n.transform=e)}if(t.includes(`<a:prstGeom`)){let e=Lp(t);e&&(n.presetGeometry=e)}if(t.includes(`<a:custGeom`)){let e=Rp(t);e&&(n.customGeometry=e)}return n}function Ip(e){let t=/<a:xfrm\b([^>]*)(?:\/>|>([\s\S]*?)<\/a:xfrm>)/.exec(e);if(!t)return;let n=t[1]??``,r=t[2]??``,i={},a=/\brot="(-?\d+)"/.exec(n);a&&(i.rotation=parseInt(a[1],10)),/\bflipH="1"/.test(n)&&(i.flipHorizontal=!0),/\bflipV="1"/.test(n)&&(i.flipVertical=!0);let o=/<a:off\b([^/>]*)\/>/.exec(r);if(o){let e=/\bx="(-?\d+)"/.exec(o[1]),t=/\by="(-?\d+)"/.exec(o[1]);e&&(i.offsetX=parseInt(e[1],10)),t&&(i.offsetY=parseInt(t[1],10))}let s=/<a:ext\b([^/>]*)\/>/.exec(r);if(s){let e=/\bcx="(\d+)"/.exec(s[1]),t=/\bcy="(\d+)"/.exec(s[1]);e&&(i.width=parseInt(e[1],10)),t&&(i.height=parseInt(t[1],10))}return Object.keys(i).length>0?i:void 0}function Lp(e){let t=/<a:prstGeom\b([^>]*)(?:\/>|>([\s\S]*?)<\/a:prstGeom>)/.exec(e);if(!t)return;let n=t[1]??``,r=t[2]??``,i=/\bprst="([^"]+)"/.exec(n);if(!i)return;let a={preset:i[1]},o=zp(r);return o.length>0&&(a.adjustments=o),a}function Rp(e){let t=/<a:custGeom\b[^>]*>([\s\S]*?)<\/a:custGeom>/.exec(e);if(!t)return;let n=t[1],r={},i=zp(n);i.length>0&&(r.adjustments=i);let a=[],o=/<a:path\b([^>]*)>([\s\S]*?)<\/a:path>/g,s;for(;(s=o.exec(n))!==null;){let e=s[1]??``,t=s[2]??``,n={commands:[]},r=/\bw="(\d+)"/.exec(e),i=/\bh="(\d+)"/.exec(e);r&&(n.w=parseInt(r[1],10)),i&&(n.h=parseInt(i[1],10));let o=/\bfill="([^"]+)"/.exec(e);o&&(n.fill=o[1]),/\bstroke="1"/.test(e)?n.stroke=!0:/\bstroke="0"/.test(e)&&(n.stroke=!1),n.commands=Bp(t),a.push(n)}return a.length>0&&(r.paths=a),Object.keys(r).length>0?r:void 0}function zp(e){let t=/<a:avLst\b[^>]*>([\s\S]*?)<\/a:avLst>/.exec(e);if(!t)return[];let n=[],r=/<a:gd\b[^>]*\bname="([^"]+)"[^>]*\bfmla="([^"]+)"[^>]*\/>/g,i;for(;(i=r.exec(t[1]))!==null;)n.push({name:i[1],fmla:i[2]});return n}function Bp(e){let t=[],n=/<a:(moveTo|lnTo|cubicBezTo|quadBezTo|arcTo|close)\b([^/>]*)(?:\/>|>([\s\S]*?)<\/a:\1>)/g,r;for(;(r=n.exec(e))!==null;){let e=r[1],n=r[2]??``,i=r[3]??``;if(e===`close`){t.push({type:`close`});continue}if(e===`arcTo`){let e=/\bwR="(-?\d+)"/.exec(n)?.[1],r=/\bhR="(-?\d+)"/.exec(n)?.[1],i=/\bstAng="(-?\d+)"/.exec(n)?.[1],a=/\bswAng="(-?\d+)"/.exec(n)?.[1];e&&r&&i&&a&&t.push({type:`arcTo`,arcParams:{wR:parseInt(e,10),hR:parseInt(r,10),stAng:parseInt(i,10),swAng:parseInt(a,10)}});continue}let a=[],o=/<a:pt\b([^/>]*)\/>/g,s;for(;(s=o.exec(i))!==null;){let e=s[1],t=/\bx="(-?\d+)"/.exec(e),n=/\by="(-?\d+)"/.exec(e);t&&n&&a.push({x:parseInt(t[1],10),y:parseInt(n[1],10)})}t.push({type:e,points:a})}return t}function Vp(e){let t=e.indexOf(`<a:effectLst`),n=e.indexOf(`</a:effectLst`);if(t<0||n<0)return;let r=e.slice(t,n+14),i={},a=/<a:blur(\s+[^/>]*)?\s*\/>/.exec(r);if(a){let e=Kp(a[0]);i.blur={},e.rad&&(i.blur.radius=parseInt(e.rad,10)),e.grow===`1`&&(i.blur.grow=!0)}let o=Hp(r,`a:outerShdw`);o&&(i.outerShadow=o);let s=Hp(r,`a:innerShdw`);s&&(i.innerShadow=s);let c=/<a:prstShdw\s+([^>]*)>([\s\S]*?)<\/a:prstShdw>/.exec(r);if(c){let e=Kp(c[0]),t=jp(c[2]);e.prst&&t&&(i.presetShadow={preset:e.prst,color:t},e.dist&&(i.presetShadow.distance=parseInt(e.dist,10)),e.dir&&(i.presetShadow.direction=parseInt(e.dir,10)))}let l=/<a:glow\s+([^>]*)>([\s\S]*?)<\/a:glow>/.exec(r);if(l){let e=Kp(l[0]),t=jp(l[2]);e.rad&&t&&(i.glow={radius:parseInt(e.rad,10),color:t})}let u=/<a:softEdge\s+([^/>]*)\s*\/>/.exec(r);if(u){let e=Kp(u[0]);e.rad&&(i.softEdge={radius:parseInt(e.rad,10)})}let d=/<a:reflection\s+([^/>]*)\s*\/>/.exec(r);if(d){let e=Kp(d[0]),t={};e.blurRad&&(t.blurRadius=parseInt(e.blurRad,10)),e.stA&&(t.startOpacity=parseInt(e.stA,10)),e.stPos&&(t.startPosition=parseInt(e.stPos,10)),e.endA&&(t.endOpacity=parseInt(e.endA,10)),e.endPos&&(t.endPosition=parseInt(e.endPos,10)),e.dist&&(t.distance=parseInt(e.dist,10)),e.dir&&(t.direction=parseInt(e.dir,10)),e.fadeDir&&(t.fadeDirection=parseInt(e.fadeDir,10)),e.sx&&(t.scaleHorizontal=parseInt(e.sx,10)),e.sy&&(t.scaleVertical=parseInt(e.sy,10)),e.kx&&(t.skewHorizontal=parseInt(e.kx,10)),e.ky&&(t.skewVertical=parseInt(e.ky,10)),e.algn&&(t.alignment=e.algn),e.rotWithShape===`1`&&(t.rotateWithShape=!0),i.reflection=t}if(Object.keys(i).length!==0)return i}function Hp(e,t){let n=(tm[t]??RegExp(`<${t}\\s+([^>]*)>([\\s\\S]*?)<\\/${t}>`)).exec(e);if(!n)return;let r=Kp(n[0]),i=jp(n[2]);if(!i)return;let a={color:i};return r.blurRad&&(a.blurRadius=parseInt(r.blurRad,10)),r.dist&&(a.distance=parseInt(r.dist,10)),r.dir&&(a.direction=parseInt(r.dir,10)),r.algn&&(a.alignment=r.algn),r.rotWithShape===`1`&&(a.rotateWithShape=!0),r.sx&&(a.scaleHorizontal=parseInt(r.sx,10)),r.sy&&(a.scaleVertical=parseInt(r.sy,10)),r.kx&&(a.skewHorizontal=parseInt(r.kx,10)),r.ky&&(a.skewVertical=parseInt(r.ky,10)),a}function Up(e){let t=e.indexOf(`<a:scene3d`),n=e.indexOf(`</a:scene3d`);if(t<0||n<0)return;let r=e.slice(t,n+13),i={},a=/<a:camera\s+([^>]*)(?:\/|>[\s\S]*?<\/a:camera)>/.exec(r);if(a){let e=Kp(a[0]);if(e.prst){i.camera={preset:e.prst},e.fov&&(i.camera.fov=parseInt(e.fov,10)),e.zoom&&(i.camera.zoom=parseInt(e.zoom,10));let t=/<a:rot\s+([^/>]*)\s*\/>/.exec(a[0]);if(t){let e=Kp(t[0]);e.lat&&e.lon&&e.rev&&(i.camera.rotation={lat:parseInt(e.lat,10),lon:parseInt(e.lon,10),rev:parseInt(e.rev,10)})}}}let o=/<a:lightRig\s+([^>]*)(?:\/|>[\s\S]*?<\/a:lightRig)>/.exec(r);if(o){let e=Kp(o[0]);e.rig&&e.dir&&(i.lightRig={rig:e.rig,direction:e.dir})}if(!(!i.camera&&!i.lightRig))return i}function Wp(e){let t=e.indexOf(`<a:sp3d`);if(t<0)return;let n=e.indexOf(`/>`,t),r=e.indexOf(`>`,t),i=n>=0&&(r<0||n<r),a;if(i)a=e.slice(t,n+2);else if(r>=0){let n=e.indexOf(`</a:sp3d>`,r);a=n>=0?e.slice(t,n+9):e.slice(t,r+1)}else a=e.slice(t);let o=a.indexOf(`>`),s=Kp(o>=0?a.slice(0,o+1):a),c={};s.z&&(c.z=parseInt(s.z,10)),s.extrusionH&&(c.extrusionHeight=parseInt(s.extrusionH,10)),s.contourW&&(c.contourWidth=parseInt(s.contourW,10)),s.prstMaterial&&(c.material=s.prstMaterial);let l=a.indexOf(`<a:bevelT`);if(l>=0){let e=a.indexOf(`/>`,l);e>=0&&(c.bevelTop=Gp(a.slice(l,e+2)))}let u=a.indexOf(`<a:bevelB`);if(u>=0){let e=a.indexOf(`/>`,u);e>=0&&(c.bevelBottom=Gp(a.slice(u,e+2)))}if(!i){let e=a.indexOf(`<a:extrusionClr>`);if(e>=0){let t=a.indexOf(`</a:extrusionClr>`,e);if(t>=0){let n=jp(a.slice(e+16,t));n&&(c.extrusionColor=n)}}let t=a.indexOf(`<a:contourClr>`);if(t>=0){let e=a.indexOf(`</a:contourClr>`,t);if(e>=0){let n=jp(a.slice(t+14,e));n&&(c.contourColor=n)}}}return c}function Gp(e){let t=Kp(e),n={};return t.w&&(n.width=parseInt(t.w,10)),t.h&&(n.height=parseInt(t.h,10)),t.prst&&(n.preset=t.prst),n}function Kp(e){let t={},n=0,r=e.length;for(;n<r;){for(;n<r&&!qp(e.charCodeAt(n));)n++;if(n>=r)break;let i=n;for(;n<r&&qp(e.charCodeAt(n));)n++;let a=e.slice(i,n);if(n>=r||e.charCodeAt(n)!==61||(n++,n>=r||e.charCodeAt(n)!==34))continue;n++;let o=n;for(;n<r&&e.charCodeAt(n)!==34;)n++;t[a]=e.slice(o,n),n<r&&n++}return t}function qp(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===95}function Jp(e,t,n){let r=e.indexOf(`<${t}`);if(r<0)return;let i=e.indexOf(`>`,r);if(i<0)return;let a=e.slice(r,i+1),o=RegExp(`${n}="([^"]*)"`).exec(a);return o?o[1]:void 0}function Yp(e){return(Op(e)?Fp(e):e).fill}function Xp(e){return(Op(e)?Fp(e):e).line}function Zp(e){let t=Tp(e);if(!t)return e;let n={},r=Jp(t,`a:defRPr`,`sz`)??Jp(t,`a:rPr`,`sz`);r&&(n.size=parseInt(r,10));let i=Jp(t,`a:defRPr`,`b`)??Jp(t,`a:rPr`,`b`);i&&(n.bold=i===`1`||i===`true`);let a=Jp(t,`a:defRPr`,`i`)??Jp(t,`a:rPr`,`i`);a&&(n.italic=a===`1`||a===`true`);let o=Jp(t,`a:defRPr`,`u`)??Jp(t,`a:rPr`,`u`);o&&(n.underline=o);let s=Jp(t,`a:defRPr`,`strike`)??Jp(t,`a:rPr`,`strike`);s&&(n.strike=s);let c=Jp(t,`a:defRPr`,`cap`)??Jp(t,`a:rPr`,`cap`);c&&(n.cap=c);let l=Jp(t,`a:defRPr`,`baseline`)??Jp(t,`a:rPr`,`baseline`);l&&(n.baseline=parseInt(l,10));let u=Jp(t,`a:defRPr`,`kern`)??Jp(t,`a:rPr`,`kern`);u&&(n.kern=parseInt(u,10));let d=Jp(t,`a:defRPr`,`spc`)??Jp(t,`a:rPr`,`spc`);d&&(n.spacing=parseInt(d,10));let f=Jp(t,`a:defRPr`,`lang`)??Jp(t,`a:rPr`,`lang`);f&&(n.lang=f);let p=(e,n)=>{let r=t.indexOf(e);if(r<0)return;let i=t.indexOf(n,r),a=t.slice(r,i>0?i+n.length:void 0);if(a.includes(`<a:solidFill`))return jp(a)};n.color=p(`<a:defRPr`,`</a:defRPr>`)??p(`<a:rPr`,`</a:rPr>`);let m=/<a:latin\s+typeface="([^"]+)"/.exec(t);m&&(n.fontFamily=m[1]);let h=/<a:ea\s+typeface="([^"]+)"/.exec(t);h&&(n.eastAsianFamily=h[1]);let g=/<a:cs\s+typeface="([^"]+)"/.exec(t);g&&(n.complexScriptFamily=g[1]);let _=Jp(t,`a:bodyPr`,`rot`);return _&&(n.rotation=parseInt(_,10)),n}function Qp(e){let t=Op(e)?Zp(e):e;return t.size===void 0?void 0:t.size/100}var $p,em,tm,nm,rm,im=n((()=>{$p=/<a:srgbClr\s+val="([0-9A-Fa-f]{6})"/i,em=/<a:schemeClr\s+val="([^"]+)"/i,tm={"a:outerShdw":/<a:outerShdw\s+([^>]*)>([\s\S]*?)<\/a:outerShdw>/,"a:innerShdw":/<a:innerShdw\s+([^>]*)>([\s\S]*?)<\/a:innerShdw>/},nm=/<a:sysClr\s+val="([^"]+)"/i,rm=/<a:prstClr\s+val="([^"]+)"/i}));function am(e){return typeof e==`object`&&`nativeCol`in e&&`nativeRow`in e&&`nativeColOff`in e&&`nativeRowOff`in e}function om(e){return typeof e==`object`&&`col`in e&&`row`in e}function sm(e){return typeof e==`object`&&!!e&&`nativeCol`in e&&`nativeRow`in e&&`nativeColOff`in e&&`nativeRowOff`in e}function cm(e){let t=e.worksheet?._columns[e.nativeCol];return t&&ga(t)?Math.floor(t.width*1e4):64e4}function lm(e){let t=e.worksheet?._rows[e.nativeRow]?.height;return t?Math.floor(t*1e4):18e4}function um(e){return e.nativeColOff===0?e.nativeCol:e.nativeCol+Math.min(cm(e)-1,e.nativeColOff)/cm(e)}function dm(e,t){e.nativeCol=Math.floor(t);let n=t-e.nativeCol;e.nativeColOff=n===0?0:Math.floor(n*cm(e))}function fm(e){return e.nativeRowOff===0?e.nativeRow:e.nativeRow+Math.min(lm(e)-1,e.nativeRowOff)/lm(e)}function pm(e,t){e.nativeRow=Math.floor(t);let n=t-e.nativeRow;e.nativeRowOff=n===0?0:Math.floor(n*lm(e))}function mm(e,t,n=0){let r={worksheet:e,nativeCol:0,nativeColOff:0,nativeRow:0,nativeRowOff:0};if(!t)return r;if(typeof t==`string`){let e=D.decodeAddress(t);r.nativeCol=e.col+n,r.nativeRow=e.row+n}else am(t)?(r.nativeCol=t.nativeCol??0,r.nativeColOff=t.nativeColOff??0,r.nativeRow=t.nativeRow??0,r.nativeRowOff=t.nativeRowOff??0):om(t)&&(dm(r,t.col+n),pm(r,t.row+n));return r}function hm(e){return e==null?null:sm(e)?e:mm(void 0,e)}function gm(e){return{nativeCol:e.nativeCol,nativeColOff:e.nativeColOff,nativeRow:e.nativeRow,nativeRowOff:e.nativeRowOff}}function _m(e,t){e.nativeCol=t.nativeCol,e.nativeColOff=t.nativeColOff,e.nativeRow=t.nativeRow,e.nativeRowOff=t.nativeRowOff}function vm(e,t){return mm(t??e.worksheet,gm(e))}var ym=n((()=>{Da(),O()}));function bm(e,t,n){let r={worksheet:e,chartNumber:t.chartNumber??0,chartExNumber:t.chartExNumber??0,range:void 0};return r.range=Tm(e,n),r}function xm(e,t,n,r){let i=Uf(e._workbook);try{lp(t,e._workbook,e)}catch{}let a={chartNumber:i,model:t};try{mp(a,e._workbook,i)}catch{}Wf(e._workbook,a),Cm(e,i,r);let o=bm(e,{chartNumber:i},n);return e._charts.push(o),i}function Sm(e,t,n){let r=Yf(e._workbook);try{up(t,e._workbook,e)}catch{}Xf(e._workbook,{chartExNumber:r,model:t});let i=bm(e,{chartExNumber:r},n);return e._charts.push(i),r}function Cm(e,t,n){!n?.chartStyle&&!n?.chartColors||(n?.chartStyle&&Gf(e._workbook,t,new TextEncoder().encode(yp(n.chartStyle))),n?.chartColors&&Kf(e._workbook,t,new TextEncoder().encode(_p(n.chartColors))))}function wm(e){return e.chartExNumber>0}function Tm(e,t){if(typeof t==`string`){let n=D.decode(t);if(`top`in n)return{tl:mm(e,{col:n.left,row:n.top},-1),br:mm(e,{col:n.right,row:n.bottom},0),editAs:`twoCell`};let r=D.decodeAddress(t);return{tl:mm(e,{col:r.col,row:r.row},-1),br:mm(e,{col:r.col+Sh,row:r.row+Ch},0),editAs:`twoCell`}}let n=t=>typeof t==`string`?mm(e,t,-1):mm(e,t,0);if(`pos`in t&&t.pos!==void 0){if(!t.ext)throw new w("Chart range with `pos` requires `ext` (absolute anchor needs an explicit EMU extent).");return{tl:mm(e,{col:0,row:0},0),pos:t.pos,ext:t.ext,editAs:t.editAs??`absolute`}}if(`tl`in t&&`ext`in t&&t.ext!==void 0&&(!(`br`in t)||t.br===void 0))return{tl:n(t.tl),ext:t.ext,editAs:t.editAs??`oneCell`};let r=t;return{tl:n(r.tl),br:n(r.br),editAs:r.editAs??`twoCell`}}function Em(e){return{chartNumber:e.chartNumber,chartExNumber:e.chartExNumber,range:{tl:gm(e.range.tl),br:e.range.br?gm(e.range.br):void 0,editAs:e.range.editAs,pos:e.range.pos,ext:e.range.ext}}}function Dm(e){if(!(e.chartNumber<=0))return qf(eo(e.worksheet),e.chartNumber)?.model}function Om(e){if(!(e.chartExNumber<=0))return Zf(eo(e.worksheet),e.chartExNumber)?.model}function km(e){let t=Dm(e)?.unknownElements;if(t&&t.length>0)return t.slice();let n=Om(e)?.unknownElements;if(n&&n.length>0)return n.slice()}function Am(e){if(!(e.chartNumber<=0))return qf(eo(e.worksheet),e.chartNumber)?.userShapesXml}function jm(e,t){if(e.chartNumber<=0)throw new w(`Chart.setUserShapesXml is only supported on classic charts.`);let n=qf(eo(e.worksheet),e.chartNumber);if(!n)throw new w(`Chart ${e.chartNumber} has no registered chart entry.`);if(t===void 0){Mm(e);return}let r=typeof t==`string`?new TextEncoder().encode(t):t;if(r.length===0){Mm(e);return}if(!new TextDecoder().decode(r.slice(0,512)).includes(`userShapes`))throw new w(`Chart.setUserShapesXml expects a DrawingML document whose root is c:userShapes.`);if(n.userShapesXml=r,n.dirty=!0,!n.model.userShapesRelId){let e=n.rels??=[],t=new Set(e.map(e=>e?.Id).filter(e=>!!e)),r=0;for(let e of t){let t=/^rId(\d+)$/.exec(e);if(t){let e=parseInt(t[1],10);Number.isFinite(e)&&e>r&&(r=e)}}let i=r+1,a=`rId${i}`;for(;t.has(a);)i+=1,a=`rId${i}`;n.model.userShapesRelId=a,e.some(e=>e?.Type===N.ChartUserShapes)||e.push({Id:a,Type:N.ChartUserShapes,Target:``})}}function Mm(e){if(e.chartNumber<=0)return;let t=qf(eo(e.worksheet),e.chartNumber);if(!t||!t.userShapesXml&&!t.model.userShapesRelId)return;t.userShapesXml=void 0,t.dirty=!0;let n=t.model.userShapesRelId;t.model.userShapesRelId=void 0,n&&Array.isArray(t.rels)&&(t.rels=t.rels.filter(e=>e?.Id!==n));let r=eo(e.worksheet)._chartRels;r&&Array.isArray(r[e.chartNumber])&&(r[e.chartNumber]=r[e.chartNumber].filter(e=>!(n&&e?.Id===n||e?.Type===N.ChartUserShapes)))}function Nm(e){let t=Dm(e)?.chart?.title??Om(e)?.chartSpace?.chart?.title;if(t){if(t.text)return _h(e,t.text);if(t.strRef?.cache?.points&&t.strRef.cache.points.length>0)return t.strRef.cache.points.map(e=>e.value).join(``);if(t.rawTx)return vh(e,t.rawTx)}}function Pm(e,t){let n=Dm(e)?.chart??Om(e)?.chartSpace?.chart;if(!n)return;if(t===void 0){ph(e,!0),n.title=void 0,n.autoTitleDeleted=!0;return}if(typeof t==`object`&&`formula`in t&&typeof t.formula==`string`){ph(e),n.title={strRef:{formula:t.formula,cache:{points:[]}},overlay:n.title?.overlay??!1},n.autoTitleDeleted=!1,wm(e)?gh(e):hh(e);return}if(typeof t==`object`&&`paragraphs`in t){ph(e),n.title={...n.title??{},strRef:void 0,rawTx:void 0,text:{...t,paragraphs:[...t.paragraphs]},overlay:n.title?.overlay??!1},n.autoTitleDeleted=!1;return}if(typeof t!=`string`)throw new w(`Chart.title accepts string | ChartRichText | { formula: string } | undefined. Got: ${JSON.stringify(t)}`);ph(e,!0);let r=n.title,i=bh(e,r);n.title={...r??{},strRef:void 0,rawTx:void 0,text:{paragraphs:[{runs:[{text:t,properties:i}]}]},overlay:r?.overlay??!1},n.autoTitleDeleted=!1}function Fm(e,t){Pm(e,t)}function Im(e){return Dm(e)?.chart?.title?.text??Om(e)?.chartSpace?.chart?.title?.text}function Lm(e){return Dm(e)?.chart?.plotArea?.chartTypes??[]}function Rm(e){return Dm(e)?.chart?.plotArea?.axes??[]}function zm(e){return Dm(e)?.chart?.legend??Om(e)?.chartSpace?.chart?.legend}function Bm(e,t){let n=Dm(e)?.chart??Om(e)?.chartSpace?.chart;n&&(ph(e,!0),n.legend=t)}function Vm(e){let t=Dm(e);return t?t.spPr:Om(e)?.chartSpace?.spPr}function Hm(e,t){let n=Dm(e);if(n){ph(e),n.spPr=t;return}let r=Om(e)?.chartSpace;r&&(ph(e),r.spPr=t)}function Um(e,t){return Rm(e).find(e=>e.axId===t)}function Wm(e){return Rm(e).find(e=>e.axisType===`cat`||e.axisType===`date`)}function Gm(e){return Rm(e).find(e=>e.axisType===`val`)}function Km(e){return Dm(e)?.chart?.plotArea}function qm(e,t,n={}){let r=Dm(e);if(!r)throw new w(`Cannot mutate a classic chart model because this chart is ChartEx or missing.`);let i=structuredClone(r);return t(i),Ym(r,structuredClone(i)),ph(e,n.preferRawPatch??!1,n.requireRawPatch??!1),e}function Jm(e,t,n={}){let r=Om(e);if(!r)throw new w(`Cannot mutate a ChartEx model because this chart is classic or missing.`);let i=structuredClone(r);if(t(i),!i.chartSpace?.chart||!i.chartSpace.chartData)throw new w(`Chart.mutateChartEx produced an invalid model: chartSpace.chart and chartSpace.chartData are required.`);if(!n.preferRawPatch&&!n.requireRawPatch){i.rawXml=void 0;let e=i.chartSpace?.chart?.title;e?.text&&e.rawTx!==void 0&&(e.rawTx=void 0)}return Ym(r,structuredClone(i)),ph(e,n.preferRawPatch??!1,n.requireRawPatch??!1),e}function Ym(e,t){let n=e,r=t;for(let e of Object.keys(n))e in r||delete n[e];for(let[e,t]of Object.entries(r)){let r=n[e];if(Array.isArray(r)&&Array.isArray(t)){let e=Math.min(r.length,t.length);for(let n=0;n<e;n++)Xm(r[n])&&Xm(t[n])?Ym(r[n],t[n]):r[n]=structuredClone(t[n]);r.splice(e,r.length-e,...structuredClone(t.slice(e)))}else Xm(r)&&Xm(t)?Ym(r,t):n[e]=structuredClone(t)}}function Xm(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Zm(e,t){if(!Number.isInteger(t)||t<1||t>48)throw new w(`Chart.setStyle: built-in style must be an integer in 1..48, received ${t}`);let n=Dm(e);if(!n)throw new w("Chart.setStyle is only valid on classic charts; ChartEx does not honour `c:style`");return n.style=t,ph(e),e}function Qm(e,t){return Zm(e,t)}function $m(e,t,n=0){let r=Lm(e)[n];if(r){ph(e);let n=fh(e);t.index=n,t.order=n,r.series.push(t),hh(e)}}function eh(e,t,n=0){let r=Lm(e)[n];if(!(!r||t<0||t>=r.series.length))return ph(e),r.series.splice(t,1)[0]}function th(e,t,n=0){let r=Lm(e)[n];if(r)return r.series[t]}function nh(e,t,n,r=0){let i=th(e,t,r);return i?(Cd(i,n,Lm(e)[r]?.type),n.pictureFill?.image!==void 0&&mh(e),(n.values!==void 0||n.categories!==void 0||n.xValues!==void 0||n.bubbleSize!==void 0)&&hh(e),ph(e,!0),!0):!1}function rh(e,t,n=0){let r=Lm(e)[n];if(!r)return!1;let i=fh(e),a=Sd(r.type,t,i);return r.series.push(a),t.pictureFill?.image!==void 0&&mh(e),hh(e),ph(e),!0}function ih(e,t,n,r=0){return nh(e,t,{values:n},r)}function ah(e,t,n,r=0){return nh(e,t,{categories:n},r)}function oh(e,t,n,r=0){return nh(e,t,{name:n},r)}function sh(e){return Lm(e).reduce((e,t)=>e+(t.series?.length??0),0)}function ch(e,t=0){return Lm(e)[t]?.series?.length??0}function lh(e,t,n){let r=Dm(e),i=Om(e);if(!r&&!i)throw new w(`Cannot copy chart because no chart model is available.`);let a=n??dh(e);if(i){let n=Sm(t,xh(i),a);return op(eo(e.worksheet),e.chartExNumber,n,eo(t)),n}let o=xm(t,xh(r),a);ip(eo(e.worksheet),e.chartNumber,o,eo(t));let s=qf(eo(e.worksheet),e.chartNumber),c=qf(eo(t),o);return s&&c&&(s.userShapesXml&&(c.userShapesXml=s.userShapesXml.slice()),Array.isArray(s.rels)&&s.rels.length>0&&(c.rels=s.rels.map(e=>({...e})))),o}function uh(e,t){return lh(e,e.worksheet,t??dh(e))}function dh(e){if(e.range.br){let t=gm(e.range.tl),n=gm(e.range.br),r=n.nativeCol-t.nativeCol;return{tl:{col:n.nativeCol+1,row:t.nativeRow},br:{col:n.nativeCol+1+r,row:n.nativeRow}}}return e.range.pos&&e.range.ext?{pos:{x:e.range.pos.x+e.range.ext.cx,y:e.range.pos.y},ext:{cx:e.range.ext.cx,cy:e.range.ext.cy},editAs:`absolute`}:e.range.ext?{tl:{col:e.range.tl.nativeCol+Sh,row:e.range.tl.nativeRow},ext:{cx:e.range.ext.cx,cy:e.range.ext.cy},editAs:`oneCell`}:{tl:{col:e.range.tl.nativeCol+Sh,row:e.range.tl.nativeRow},br:{col:e.range.tl.nativeCol+20,row:e.range.tl.nativeRow+Ch}}}function fh(e){let t=-1;for(let n of Lm(e))for(let e of n.series){let n=typeof e.index==`number`?e.index:-1;Number.isFinite(n)&&n>t&&(t=n)}return t+1}function ph(e,t=!1,n=!1){if(e.chartNumber>0){let r=qf(eo(e.worksheet),e.chartNumber);r&&(r.dirty=!0,t?r.preferRawPatch===void 0&&(r.preferRawPatch=!0):r.preferRawPatch=!1,n&&(r.requireRawPatch=!0))}if(e.chartExNumber>0){let r=Zf(eo(e.worksheet),e.chartExNumber);r&&(r.dirty=!0,t?r.preferRawPatch===void 0&&(r.preferRawPatch=!0):r.preferRawPatch=!1,n&&(r.requireRawPatch=!0),!t&&!n&&r.model&&(r.model.rawXml=void 0))}}function mh(e){if(e.chartNumber<=0)return;let t=qf(eo(e.worksheet),e.chartNumber);if(t)try{mp(t,eo(e.worksheet),e.chartNumber)}catch{}}function hh(e){let t=Dm(e);if(t)try{lp(t,eo(e.worksheet),e.worksheet)}catch{}}function gh(e){let t=Om(e);if(t)try{rne(t,eo(e.worksheet),e.worksheet)}catch{}}function _h(e,t){return t.paragraphs.map(e=>(e.runs??[]).map(e=>e.text).join(``)).join(`
12
- `)}function vh(e,t){let n=[];for(let r of t.matchAll(wh))n.push(yh(e,r[1]));if(n.length>0)return n.join(``);for(let r of t.matchAll(Th))n.push(yh(e,r[1]));return n.length>0?n.join(``):void 0}function yh(e,t){return t.replace(/&(?:([A-Za-z]+)|#x([0-9A-Fa-f]+)|#(\d+));/g,(e,t,n,r)=>{if(t!==void 0)switch(t){case`amp`:return`&`;case`lt`:return`<`;case`gt`:return`>`;case`quot`:return`"`;case`apos`:return`'`;default:return e}if(n!==void 0){let t=parseInt(n,16);return Number.isFinite(t)?String.fromCodePoint(t):e}if(r!==void 0){let t=parseInt(r,10);return Number.isFinite(t)?String.fromCodePoint(t):e}return e})}function bh(e,t){if(!t)return;let n=t.text?.paragraphs?.[0]?.runs?.[0];if(n?.properties)return{...n.properties};if(t.rawTx){let e=/<a:rPr\b[^>]*\/>/.exec(t.rawTx),n=/<a:rPr\b[^>]*>[\s\S]*?<\/a:rPr>/.exec(t.rawTx),r=n&&(!e||n.index<=e.index)?n[0]:e?.[0];if(r){let{_rawXml:e,...t}=Zp({_rawXml:`<c:txPr>${r}</c:txPr>`});return t}}}function xh(e){return structuredClone(e)}var Sh,Ch,wh,Th,Eh=n((()=>{pp(),Kd(),gp(),wp(),im(),ym(),sp(),Yo(),E(),O(),Lf(),Sh=10,Ch=15,wh=/<a:t(?:\s[^>]*)?>([\s\S]*?)<\/a:t>/g,Th=/<c:v(?:\s[^>]*)?>([\s\S]*?)<\/c:v>/g}));function Dh(e,t,n,r=`bar`){return{options:n?{type:`bar3D`,barDir:e,grouping:t,shape:n}:{type:r,barDir:e,grouping:t}}}function P(e,t,n){return Dh(e,t,n,`bar3D`)}function Oh(e,t){let n=Ah[e];if(!n)throw new w(`Unknown chart preset: ${e}.`);let r={...n.options,...t,type:t.type??n.options.type};return n.seriesDefaults&&r.series&&(r.series=r.series.map(e=>({...n.seriesDefaults,...e}))),r}function kh(e,t){let n=jh[e];if(!n)throw new w(`Unknown chartEx preset: ${e}.`);return{...n.options,...t,type:t.type??n.options.type}}var Ah,jh,Mh=n((()=>{E(),Ah={columnClustered:Dh(`col`,`clustered`),columnStacked:Dh(`col`,`stacked`),columnStacked100:Dh(`col`,`percentStacked`),columnPercentStacked:Dh(`col`,`percentStacked`),colClustered:Dh(`col`,`clustered`),colStacked:Dh(`col`,`stacked`),colPercentStacked:Dh(`col`,`percentStacked`),colStacked100:Dh(`col`,`percentStacked`),barClustered:Dh(`bar`,`clustered`),barStacked:Dh(`bar`,`stacked`),barPercentStacked:Dh(`bar`,`percentStacked`),barStacked100:Dh(`bar`,`percentStacked`),pieOfPie:{options:{type:`ofPie`,ofPieType:`pie`}},barOfPie:{options:{type:`ofPie`,ofPieType:`bar`}},column3DClustered:P(`col`,`clustered`),column3DStacked:P(`col`,`stacked`),column3DStacked100:P(`col`,`percentStacked`),col3DClustered:P(`col`,`clustered`),col3DStacked:P(`col`,`stacked`),col3DStacked100:P(`col`,`percentStacked`),bar3DClustered:P(`bar`,`clustered`),bar3DStacked:P(`bar`,`stacked`),bar3DStacked100:P(`bar`,`percentStacked`),col3DConeClustered:P(`col`,`clustered`,`cone`),col3DConeStacked:P(`col`,`stacked`,`cone`),col3DConeStacked100:P(`col`,`percentStacked`,`cone`),coneColClustered:P(`col`,`clustered`,`cone`),coneColStacked:P(`col`,`stacked`,`cone`),coneColStacked100:P(`col`,`percentStacked`,`cone`),bar3DConeClustered:P(`bar`,`clustered`,`cone`),bar3DConeStacked:P(`bar`,`stacked`,`cone`),bar3DConeStacked100:P(`bar`,`percentStacked`,`cone`),coneBarClustered:P(`bar`,`clustered`,`cone`),coneBarStacked:P(`bar`,`stacked`,`cone`),coneBarStacked100:P(`bar`,`percentStacked`,`cone`),col3DCylinderClustered:P(`col`,`clustered`,`cylinder`),col3DCylinderStacked:P(`col`,`stacked`,`cylinder`),col3DCylinderStacked100:P(`col`,`percentStacked`,`cylinder`),cylinderColClustered:P(`col`,`clustered`,`cylinder`),cylinderColStacked:P(`col`,`stacked`,`cylinder`),cylinderColStacked100:P(`col`,`percentStacked`,`cylinder`),bar3DCylinderClustered:P(`bar`,`clustered`,`cylinder`),bar3DCylinderStacked:P(`bar`,`stacked`,`cylinder`),bar3DCylinderStacked100:P(`bar`,`percentStacked`,`cylinder`),cylinderBarClustered:P(`bar`,`clustered`,`cylinder`),cylinderBarStacked:P(`bar`,`stacked`,`cylinder`),cylinderBarStacked100:P(`bar`,`percentStacked`,`cylinder`),col3DPyramidClustered:P(`col`,`clustered`,`pyramid`),col3DPyramidStacked:P(`col`,`stacked`,`pyramid`),col3DPyramidStacked100:P(`col`,`percentStacked`,`pyramid`),pyramidColClustered:P(`col`,`clustered`,`pyramid`),pyramidColStacked:P(`col`,`stacked`,`pyramid`),pyramidColStacked100:P(`col`,`percentStacked`,`pyramid`),bar3DPyramidClustered:P(`bar`,`clustered`,`pyramid`),bar3DPyramidStacked:P(`bar`,`stacked`,`pyramid`),bar3DPyramidStacked100:P(`bar`,`percentStacked`,`pyramid`),pyramidBarClustered:P(`bar`,`clustered`,`pyramid`),pyramidBarStacked:P(`bar`,`stacked`,`pyramid`),pyramidBarStacked100:P(`bar`,`percentStacked`,`pyramid`),line:{options:{type:`line`}},lineMarkers:{options:{type:`line`,showMarker:!0}},lineStacked:{options:{type:`line`,grouping:`stacked`}},lineStacked100:{options:{type:`line`,grouping:`percentStacked`}},pie:{options:{type:`pie`}},pieExploded:{options:{type:`pie`},seriesDefaults:{explosion:25}},pie3D:{options:{type:`pie3D`}},pieExploded3D:{options:{type:`pie3D`},seriesDefaults:{explosion:25}},doughnut:{options:{type:`doughnut`}},doughnutExploded:{options:{type:`doughnut`,holeSize:50},seriesDefaults:{explosion:25}},area:{options:{type:`area`}},areaStacked:{options:{type:`area`,grouping:`stacked`}},areaStacked100:{options:{type:`area`,grouping:`percentStacked`}},area3D:{options:{type:`area3D`}},area3DStacked:{options:{type:`area3D`,grouping:`stacked`}},area3DStacked100:{options:{type:`area3D`,grouping:`percentStacked`}},scatter:{options:{type:`scatter`,scatterStyle:`marker`}},scatterMarker:{options:{type:`scatter`,scatterStyle:`marker`}},scatterStraight:{options:{type:`scatter`,scatterStyle:`lineMarker`}},scatterLines:{options:{type:`scatter`,scatterStyle:`lineMarker`}},scatterLinesNoMarkers:{options:{type:`scatter`,scatterStyle:`line`}},scatterSmooth:{options:{type:`scatter`,scatterStyle:`smoothMarker`}},scatterSmoothMarker:{options:{type:`scatter`,scatterStyle:`smoothMarker`}},scatterSmoothNoMarkers:{options:{type:`scatter`,scatterStyle:`smooth`}},bubble:{options:{type:`bubble`}},bubble3D:{options:{type:`bubble`},seriesDefaults:{bubble3D:!0}},radar:{options:{type:`radar`,radarStyle:`standard`}},radarMarkers:{options:{type:`radar`,radarStyle:`marker`}},radarFilled:{options:{type:`radar`,radarStyle:`filled`}},stockHLC:{options:{type:`stock`,hiLowLines:!0}},stockOHLC:{options:{type:`stock`,upDownBars:!0,hiLowLines:!0}},surface:{options:{type:`surface`}},surface3D:{options:{type:`surface3D`}},surfaceTopView:{options:{type:`surface3D`,view3D:{rotX:90,rotY:0}}},contour:{options:{type:`surface`}},wireframeSurface:{options:{type:`surface3D`,wireframe:!0}},surface3DWireframe:{options:{type:`surface3D`,wireframe:!0}},surfaceWireframe:{options:{type:`surface3D`,wireframe:!0}},wireframeContour:{options:{type:`surface`,wireframe:!0}},topViewWireframe:{options:{type:`surface3D`,wireframe:!0,view3D:{rotX:90,rotY:0}}}},Object.keys(Ah),jh={histogram:{options:{type:`histogram`}},pareto:{options:{type:`pareto`}},waterfall:{options:{type:`waterfall`}},funnel:{options:{type:`funnel`}},treemap:{options:{type:`treemap`}},sunburst:{options:{type:`sunburst`}},boxWhisker:{options:{type:`boxWhisker`}},boxAndWhisker:{options:{type:`boxWhisker`}},regionMap:{options:{type:`regionMap`}},map:{options:{type:`regionMap`}}},Object.keys(jh)}));function Nh(e){return typeof e==`object`&&!!e&&`worksheet`in e&&`model`in e&&typeof e.model==`object`}function Ph(e){if(e.includes(`$`))return e;let t=D.decodeAddress(e);return`$${D.n2l(t.col)}$${t.row}`}function Fh(e){let t,n;if(typeof e==`string`){if(e.includes(`:`)){let r=D.decode(e);if(`top`in r){if(r.left===r.right&&r.top===r.bottom){let e=r.left-1,i=r.top-1;t={col:e,colOff:qh,row:i,rowOff:Jh},n={col:e+2,colOff:Yh,row:i+1,rowOff:Xh}}else t={col:r.left-1,colOff:qh,row:r.top-1,rowOff:Jh},n={col:r.right-1,colOff:Yh,row:r.bottom-1,rowOff:Xh}}else t={col:r.col-1,colOff:qh,row:r.row-1,rowOff:Jh},n={col:r.col+1,colOff:Yh,row:r.row,rowOff:Xh}}else{let r=D.decodeAddress(e);t={col:r.col-1,colOff:qh,row:r.row-1,rowOff:Jh},n={col:r.col+1,colOff:Yh,row:r.row,rowOff:Xh}}}else if(`startCol`in e)t={col:e.startCol,colOff:e.startColOff??qh,row:e.startRow,rowOff:e.startRowOff??Jh},n={col:e.endCol,colOff:e.endColOff??Yh,row:e.endRow,rowOff:e.endRowOff??Xh};else{if(typeof e.tl==`string`){let n=D.decodeAddress(e.tl);t={col:n.col-1,colOff:qh,row:n.row-1,rowOff:Jh}}else t={col:e.tl.col,colOff:e.tl.colOff??qh,row:e.tl.row,rowOff:e.tl.rowOff??Jh};if(e.br){if(typeof e.br==`string`){let t=D.decodeAddress(e.br);n={col:t.col-1,colOff:Yh,row:t.row-1,rowOff:Xh}}else n={col:e.br.col,colOff:e.br.colOff??Yh,row:e.br.row,rowOff:e.br.rowOff??Xh}}else n={col:t.col+2,colOff:Yh,row:t.row+1,rowOff:Xh}}return{tl:t,br:n}}function Ih(e,t,n){let{tl:r,br:i}=Fh(t),a=1025+(e.formControls?.length??0),o;return n?.link&&(o=Ph(n.link)),{worksheet:e,model:{shapeId:a,ctrlPropId:0,tl:r,br:i,link:o,checked:n?.checked?`Checked`:`Unchecked`,text:n?.text??``,noThreeD:n?.noThreeD??!0,print:n?.print??!1}}}function Lh(e,t){return{worksheet:e,model:{...t,tl:{...t.tl},br:{...t.br}}}}function Rh(e){return e.model.checked===`Checked`}function zh(e,t){e.model.checked=t?`Checked`:`Unchecked`}function Bh(e){return e.model.link}function Vh(e,t){e.model.link=t?Ph(t):void 0}function Hh(e){return e.model.text}function Uh(e,t){e.model.text=t}function Wh(e){let{tl:t,br:n}=e,r=Math.round(t.colOff/Nl),i=Math.round(t.rowOff/Nl),a=Math.round(n.colOff/Nl),o=Math.round(n.rowOff/Nl);return`${t.col}, ${r}, ${t.row}, ${i}, ${n.col}, ${a}, ${n.row}, ${o}`}function Gh(e){return`position:absolute;margin-left:${Math.round(e.tl.colOff/Ml)}pt;margin-top:${Math.round(e.tl.rowOff/Ml)}pt;width:96pt;height:18pt;z-index:1;visibility:visible`}function Kh(e){switch(e.checked){case`Checked`:return 1;case`Mixed`:return 2;default:return 0}}var qh,Jh,Yh,Xh,Zh=n((()=>{O(),Pl(),qh=142875,Jh=28575,Yh=276225,Xh=190500}));function Qh(e,t){let n={worksheet:e};return t&&eg(n,t),n}function $h(e){switch(e.type){case`background`:return{type:e.type,imageId:e.imageId??``};case`watermark`:return{type:e.type,imageId:e.imageId??``,opacity:e.opacity};case`headerImage`:return{type:e.type,imageId:e.imageId??``,headerWidth:e.headerWidth,headerHeight:e.headerHeight,applyTo:e.applyTo,position:e.position};case`image`:{let t=e.range;if(!t)throw new ae(`Image has no range`);return t.pos?{type:e.type,imageId:e.imageId??``,hyperlinks:t.hyperlinks,range:{tl:{nativeCol:0,nativeColOff:0,nativeRow:0,nativeRowOff:0},ext:t.ext,pos:t.pos}}:{type:e.type,imageId:e.imageId??``,hyperlinks:t.hyperlinks,range:{tl:gm(t.tl),br:t.br?gm(t.br):void 0,ext:t.ext,editAs:t.editAs},xfrmOffX:e.xfrmOffX,xfrmOffY:e.xfrmOffY,xfrmExtCx:e.xfrmExtCx,xfrmExtCy:e.xfrmExtCy,rawSpPr:e.rawSpPr}}default:throw new ae(`Invalid Image Type`)}}function eg(e,{type:t,imageId:n,range:r,hyperlinks:i,opacity:a,headerWidth:o,headerHeight:s,applyTo:c,position:l,xfrmOffX:u,xfrmOffY:d,xfrmExtCx:f,xfrmExtCy:p,rawSpPr:m}){if(e.type=t,e.imageId=n,e.opacity=a,e.headerWidth=o,e.headerHeight=s,e.applyTo=c,e.position=l,e.xfrmOffX=u,e.xfrmOffY=d,e.xfrmExtCx=f,e.xfrmExtCy=p,e.rawSpPr=m,t===`image`){if(typeof r==`string`){let t=D.decode(r);`top`in t&&(e.range={tl:mm(e.worksheet,{col:t.left,row:t.top},-1),br:mm(e.worksheet,{col:t.right,row:t.bottom},0),editAs:`oneCell`})}else if(r&&`pos`in r&&r.pos)e.range={tl:mm(e.worksheet,null,0),ext:r.ext,hyperlinks:i||(`hyperlinks`in r?r.hyperlinks:void 0),pos:r.pos};else if(r){let t=r.tl,n=r.br;e.range={tl:mm(e.worksheet,t,typeof t==`string`?-1:0),br:n?mm(e.worksheet,n,0):void 0,ext:r.ext,editAs:r.editAs,hyperlinks:i||(`hyperlinks`in r?r.hyperlinks:void 0)}}}}function tg(e,t){let n=t??e.worksheet,r={worksheet:n};return r.type=e.type,r.imageId=e.imageId,r.opacity=e.opacity,r.headerWidth=e.headerWidth,r.headerHeight=e.headerHeight,r.applyTo=e.applyTo,r.xfrmOffX=e.xfrmOffX,r.xfrmOffY=e.xfrmOffY,r.xfrmExtCx=e.xfrmExtCx,r.xfrmExtCy=e.xfrmExtCy,r.rawSpPr=structuredClone(e.rawSpPr),e.range&&(r.range={tl:vm(e.range.tl,n),br:e.range.br?vm(e.range.br,n):void 0,ext:e.range.ext?{...e.range.ext}:void 0,editAs:e.range.editAs,hyperlinks:e.range.hyperlinks?{...e.range.hyperlinks}:void 0,pos:e.range.pos?{...e.range.pos}:void 0}),r}var ng=n((()=>{ym(),E(),O()}));function rg(e,t,n,r){let i=e.chartFormats??[],a=n??(i.length===0?0:Math.max(...i.map(e=>e.format??0))+1),o=r??t.pivotChartOptions;return ag(e,a),ig(e,o),{...t,pivotSource:{name:og(e),fmtId:a,options:o}}}function ig(e,t){t&&(e.pivotChartOptions=t,t.refreshOnOpen&&e.cacheDefinition&&(e.cacheDefinition.refreshOnLoad=`1`))}function ag(e,t){e.chartFormat??=1,e.chartFormats??=[],e.chartFormats.some(e=>e.chart===0&&e.format===t)||e.chartFormats.push({chart:0,format:t,series:!0,pivotAreaXml:sg})}function og(e){let t=e.name??`PivotTable${e.tableNumber}`;return e.worksheetName?`${Vs(e.worksheetName)}!${t}`:t}var sg,cg=n((()=>{Hs(),sg=`<pivotArea type="data" outline="0" fieldPosition="0"><references count="1"><reference field="4294967294" count="1" selected="0"><x v="0"/></reference></references></pivotArea>`}));function lg(e){return{kind:`pivotError`,code:e}}function ug(e){return typeof e==`object`&&!!e&&e.kind===`pivotError`}var dg,fg,pg=n((()=>{dg={sum:`Sum`,count:`Count`,average:`Average`,max:`Max`,min:`Min`,product:`Product`,countNums:`Count Numbers`,stdDev:`StdDev`,stdDevP:`StdDevP`,var:`Var`,varP:`VarP`},fg=new Set(Object.keys(dg))}));function mg(e){return`cells`in e?Ma(e):e.values}function hg(e){return`values`in e&&Array.isArray(e.values)?e.values:So(e)}function gg(e){let t=os(e);if(t.headerRow===!1)throw new C(`Cannot create pivot table from a table without headers. Set headerRow: true on the table.`);if(!t.rows||t.rows.length===0)throw new C(`Cannot create pivot table from an empty table. Add data rows to the table.`);let n=t.columns.map(e=>e.name),r=new Set;for(let e of n){if(r.has(e))throw new C(`Duplicate column name "${e}" found in table. Pivot tables require unique column names.`);r.add(e)}let i=[void 0,...n],a=t.rows.map(e=>[void 0,...e]),o=t.tl;if(!o)throw new C(`Table "${t.name}" is missing top-left cell address (tl)`);let s=o.row,c=o.col,l=s+t.rows.length,u=c+n.length-1;return{name:$a(e.worksheet),tableName:t.name,getRow(e){if(e===1)return{values:i};let t=e-Eg;return t>=0&&t<a.length?{values:a[t]}:{values:[]}},getColumn(e){if(e<1||e>n.length)return{values:[]};let r=[];r[1]=n[e-1];for(let n=0;n<t.rows.length;n++)r[n+2]=t.rows[n][e-1];return{values:r}},getSheetValues(){let e=[];e[1]=i;for(let t=0;t<a.length;t++)e[t+2]=a[t];return e},dimensions:De(s,c,l,u)}}function _g(e){if(e.sourceSheet&&e.sourceTable)throw new C(`Cannot specify both sourceSheet and sourceTable. Choose one.`);if(e.sourceTable)return gg(e.sourceTable);if(!e.sourceSheet)throw new C(`Either sourceSheet or sourceTable must be provided.`);let t=e.sourceSheet;if(`_rows`in t){let e=t;return{name:$a(e),getRow:t=>lo(e,t),getColumn:t=>ao(e,t),getSheetValues:()=>po(e),get dimensions(){return vg(e)}}}return t}function vg(e){let t=De();return e._rows.forEach(e=>{if(e){let n=Ia(e);n&&Me(t,e.number,n.min,e.number,n.max)}}),t}function yg(e){return typeof e==`string`?e:e.name}function bg(e){return typeof e==`string`?void 0:e.metric}function xg(e,t){let n=_g(t);Cg(t,n);let{rows:r}=t,i=t.columns??[],a=t.pages??[],o=t.values.map(yg),s=t.metric??`sum`,c=t.values.map(e=>bg(e)??s),l=Tg(n,[...r,...i,...a],o),u={};for(let e=0;e<l.length;e++)u[l[e].name]=e;let d=(e,t)=>{let n=u[e];if(n===void 0)throw new C(`${t} field "${e}" not found in cache fields`);return n},f=r.map(e=>d(e,`Row`)),p=i.map(e=>d(e,`Column`)),m=o.map(e=>d(e,`Value`)),h=a.map(e=>d(e,`Page`)),g=e.workbook.pivotTables.map(e=>e.tableNumber).filter(e=>Number.isFinite(e)),_=g.length>0?g.reduce((e,t)=>e>t?e:t,-1/0)+1:1,v=e.workbook.pivotTables.map(e=>parseInt(e.cacheId,10)).filter(e=>Number.isFinite(e)),y=v.length>0?v.reduce((e,t)=>e>t?e:t,-1/0)+1:Dg+_-1,b=Sg(t.ref);return{name:`PivotTable${_}`,worksheetName:e.name,source:n,rows:f,columns:p,values:m,pages:h,metric:s,valueMetrics:c,cacheFields:l,cacheId:String(y),applyWidthHeightFormats:t.applyWidthHeightFormats??`1`,ref:b,tableNumber:_}}function Sg(e){if(e===void 0)return;if(typeof e!=`string`||e.trim()===``)throw new C(`Invalid pivot table ref "${String(e)}". Provide a cell address like "A3".`);let t=e.trim().replace(/^[^!]+!/,``),n=t.includes(`:`)?t.split(`:`,1)[0]:t,r;try{r=D.decodeAddress(n)}catch{throw new C(`Invalid pivot table ref "${e}". Provide a cell address like "A3".`)}if(!r.col||!r.row)throw new C(`Invalid pivot table ref "${e}". Both column and row are required (e.g. "A3").`);return`${D.n2l(r.col)}${r.row}`}function Cg(e,t){let n=e.columns??[],r=e.pages??[],i=e.values.map(yg),a=mg(t.getRow(1)).slice(1);for(let e=0;e<a.length;e++){let n=a[e];if(n==null||n===``||typeof n==`string`&&n.trim()===``)throw new C(`Empty or missing header name at column ${e+1} in ${t.name}. Pivot tables require all columns to have non-empty headers.`)}let o=new Set;for(let e of a){let n=String(e);if(o.has(n))throw new C(`Duplicate header name "${n}" found in ${t.name}. Pivot tables require unique column names.`);o.add(n)}let s=new Set(a.map(String)),c=e=>{if(!s.has(e))throw new C(`The header name "${e}" was not found in ${t.name}.`)};for(let t of e.rows)c(t);for(let e of n)c(e);for(let e of i)c(e);for(let e of r)c(e);let l=new Map,u=[{name:`rows`,fields:e.rows},{name:`columns`,fields:n},{name:`pages`,fields:r}];for(let e of u)for(let t of e.fields){let n=l.get(t);if(n===e.name)throw new C(`Duplicate field "${t}" in ${e.name}. Each field can only appear once per axis area.`);if(n)throw new C(`Field "${t}" cannot appear in both ${n} and ${e.name}. Each field can only be assigned to one axis area.`);l.set(t,e.name)}if(!e.rows.length)throw new C(`No pivot table rows specified.`);if(e.values.length<1)throw new C(`Must have at least one value.`);if(e.metric!==void 0&&!fg.has(e.metric))throw new C(`Invalid metric "${e.metric}". Must be one of: ${[...fg].join(`, `)}.`);for(let t of e.values){let e=bg(t);if(e!==void 0&&!fg.has(e))throw new C(`Invalid metric "${e}" on value field "${yg(t)}". Must be one of: ${[...fg].join(`, `)}.`)}let d=new Set;for(let e of i){if(d.has(e))throw new C(`Duplicate value field "${e}". Each value field name must be unique.`);d.add(e)}}function wg(e){if(e==null)return null;if(typeof e!=`object`||e instanceof Date||ug(e))return e;let t=e;if(typeof t.error==`string`){let e=t.error;return lg(e.startsWith(`#`)?e.slice(1):e)}if(`formula`in t||`sharedFormula`in t){let e=t.result;return e==null?null:wg(e)}return Array.isArray(t.richText)?t.richText.map(e=>e.text??``).join(``):typeof t.text==`string`&&typeof t.hyperlink==`string`?t.text:typeof t.checkbox==`boolean`?t.checkbox:String(e)}function Tg(e,t,n){let r=mg(e.getRow(1)),i=new Set(t),a=new Set(n),o=t=>{let n=hg(e.getColumn(t)),r=new Set,i=new Map,a=!1;for(let e=Eg;e<n.length;e++){let t=wg(n[e]);t===null||typeof t==`number`&&isNaN(t)?a=!0:ug(t)?i.has(t.code)||(i.set(t.code,t),r.add(t)):r.add(t)}let o=[...r];return a&&o.push(null),o},s=t=>{let n=hg(e.getColumn(t)),r=1/0,i=-1/0,a=!1,o=!0;for(let e=Eg;e<n.length;e++){let t=wg(n[e]);typeof t==`number`&&!isNaN(t)&&(a=!0,t<r&&(r=t),t>i&&(i=t),Number.isInteger(t)||(o=!1))}return a?{minValue:r,maxValue:i,allInteger:o}:null},c=t=>{let n=hg(e.getColumn(t)),r=!1;for(let e=Eg;e<n.length;e++){let t=n[e],i=wg(t);if(i==null)continue;if(i instanceof Date){r=!0;continue}let a=t?.style?.numFmt,o=typeof a==`string`?a:a?.formatCode;if(typeof o==`string`&&/(?:^|[^\\])[dmyhs]/i.test(o)){r=!0;continue}return}return r?`14`:void 0},l=e=>{let t=c(e);return t===void 0?{}:{numFmtId:t}},u=[];for(let e of lee(1,r.length)){let t=r[e],n=String(t);if(i.has(n))u.push({name:n,sharedItems:o(e),...l(e)});else if(a.has(n)){let t=s(e);u.push({name:n,sharedItems:null,...l(e),containsNumber:t?`1`:void 0,minValue:t?.minValue,maxValue:t?.maxValue,containsInteger:t?.allInteger?`1`:void 0})}else u.push({name:n,sharedItems:null,...l(e)})}return u}var Eg,Dg,Og=n((()=>{pg(),qe(),Qa(),Ms(),Yo(),E(),O(),hr(),Eg=2,Dg=10}));function kg(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function Ag(e){return kg(e).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`)}var jg=n((()=>{}));function Mg(e,t){for(let n of e.children)Ng(n,yc,t)}function Ng(e,t,n){switch(e.kind){case`group`:{let r=e.transform?uc(t,e.transform):t,i=e.clip?Pg(e.clip,r):void 0,a=i!==void 0&&n.pushClip!==void 0;a&&n.pushClip(i);let o=e.svgFilterId!==void 0&&n.pushFilter!==void 0;o&&n.pushFilter(e.svgFilterId);for(let t of e.children)Ng(t,r,n);o&&n.popFilter?.(),a&&n.popClip?.();return}case`rect`:{if(e.width<=0||e.height<=0)return;let r=Lg(e.paint,t);if(Fg(t)){let i=dc(t,e.x,e.y),a=dc(t,e.x+e.width,e.y+e.height);n.rect(Math.min(i.x,a.x),Math.min(i.y,a.y),Math.abs(a.x-i.x),Math.abs(a.y-i.y),(e.rx??0)*fc(t),r);return}n.polyline([dc(t,e.x,e.y),dc(t,e.x+e.width,e.y),dc(t,e.x+e.width,e.y+e.height),dc(t,e.x,e.y+e.height)],!0,r);return}case`ellipse`:{if(e.rx<=0||e.ry<=0)return;let r=Lg(e.paint,t);if(Fg(t)){let i=dc(t,e.cx,e.cy);n.ellipse(i.x,i.y,Math.abs(e.rx*t.a),Math.abs(e.ry*t.d),r);return}n.path(zg(e.cx,e.cy,e.rx,e.ry,t),r);return}case`sector`:{let r=Lg(e.paint,t);if(!Ig(t)){n.path(Rg(hc(e.cx,e.cy,e.radius,e.innerRadius,e.startAngle,e.endAngle),t),r);return}let i=dc(t,e.cx,e.cy),a=fc(t),o=pc(t)*Math.PI/180;n.sector(i.x,i.y,e.radius*a,e.innerRadius*a,e.startAngle+o,e.endAngle+o,r);return}case`line`:{let r=dc(t,e.x1,e.y1),i=dc(t,e.x2,e.y2);n.polyline([r,i],!1,Lg(e.paint,t));return}case`polyline`:n.polyline(e.points.map(e=>dc(t,e.x,e.y)),e.closed??!1,Lg(e.paint,t));return;case`path`:n.path(Rg(e.commands,t),Lg(e.paint,t));return;case`text`:{let r=dc(t,e.x,e.y),i=fc(t);n.text(r.x,r.y,e.lines.map(n=>({text:n.text,dy:n.dy*i,...n.x===void 0?{}:{x:dc(t,n.x,e.y).x}})),{...e.style,size:e.style.size*i},(e.rotate??0)+pc(t));return}}}function Pg(e,t){let n=[dc(t,e.x,e.y),dc(t,e.x+e.width,e.y),dc(t,e.x+e.width,e.y+e.height),dc(t,e.x,e.y+e.height)],r=n[0].x,i=n[0].x,a=n[0].y,o=n[0].y;for(let e of n)r=Math.min(r,e.x),i=Math.max(i,e.x),a=Math.min(a,e.y),o=Math.max(o,e.y);return{x:r,y:a,width:i-r,height:o-a}}function Fg(e){return Math.abs(e.b)<1e-9&&Math.abs(e.c)<1e-9}function Ig(e){if(e.a*e.d-e.b*e.c<=0)return!1;let t=e.a*e.a+e.b*e.b,n=e.c*e.c+e.d*e.d,r=1e-9*Math.max(1,t,n);return Math.abs(t-n)<r&&Math.abs(e.a*e.c+e.b*e.d)<r}function Lg(e,t){if(e.stroke!==void 0&&e.strokeWidth!==void 0&&!(e.strokeWidth>0)){let{stroke:t,strokeWidth:n,dash:r,...i}=e;return i}let n=fc(t),r=e.dash===void 0||e.dash.length===0?void 0:e.dash.length%2==0?e.dash:[...e.dash,...e.dash];return n===1&&r===e.dash?e:{...e,...e.strokeWidth===void 0?{}:{strokeWidth:e.strokeWidth*n},...r===void 0?{}:{dash:r.map(e=>e*n)}}}function Rg(e,t){return e.map(e=>{switch(e.op){case`move`:case`line`:{let n=dc(t,e.x,e.y);return{op:e.op,x:n.x,y:n.y}}case`cubic`:{let n=dc(t,e.x1,e.y1),r=dc(t,e.x2,e.y2),i=dc(t,e.x,e.y);return{op:`cubic`,x1:n.x,y1:n.y,x2:r.x,y2:r.y,x:i.x,y:i.y}}case`close`:return e}})}function zg(e,t,n,r,i){let a=n*bc,o=r*bc,s=(e,t)=>dc(i,e,t),c=s(e+n,t),l=[{op:`move`,x:c.x,y:c.y}],u=(e,t,n,r,i,a)=>{let o=s(e,t),c=s(n,r),u=s(i,a);l.push({op:`cubic`,x1:o.x,y1:o.y,x2:c.x,y2:c.y,x:u.x,y:u.y})};return u(e+n,t+o,e+a,t+r,e,t+r),u(e-a,t+r,e-n,t+o,e-n,t),u(e-n,t-o,e-a,t-r,e,t-r),u(e+a,t-r,e+n,t-o,e+n,t),l.push({op:`close`}),l}var Bg=n((()=>{xc()}));function Vg(e,t={}){let n=new Wg;e.svgDefs&&e.svgDefs.length>0&&n.addDefs(e.svgDefs),Mg(e,n);let r=t.width??e.width,i=t.height??e.height,a=[`<svg xmlns="http://www.w3.org/2000/svg" width="${F(r)}" height="${F(i)}" viewBox="0 0 ${F(e.width)} ${F(e.height)}">`];return t.comment!==void 0&&a.push(`<!-- ${t.comment.replace(/-{2,}/g,`-`)} -->`),t.background!==void 0&&a.push(`<rect x="0" y="0" width="${F(e.width)}" height="${F(e.height)}" fill="${Ag(t.background)}"/>`),a.push(n.markup()),a.push(`</svg>`),a.join(``)}function F(e){if(!Number.isFinite(e))return`0`;let t=Math.round(e*100)/100;return Object.is(t,-0)?`0`:String(t)}function Hg(e){let t=e=>Math.max(0,Math.min(255,Math.round(e*255))).toString(16).padStart(2,`0`);return`#${t(e.r)}${t(e.g)}${t(e.b)}`}function Ug(e,t=!1){let n=[];return e.fill&&!t?(n.push(` fill="${Hg(e.fill)}"`),e.fill.a<1&&n.push(` fill-opacity="${F(e.fill.a)}"`)):n.push(` fill="none"`),e.stroke&&(n.push(` stroke="${Hg(e.stroke)}"`),e.stroke.a<1&&n.push(` stroke-opacity="${F(e.stroke.a)}"`),e.strokeWidth!==void 0&&e.strokeWidth!==1&&n.push(` stroke-width="${F(e.strokeWidth)}"`),e.dash&&e.dash.length>0&&n.push(` stroke-dasharray="${e.dash.map(F).join(` `)}"`),e.lineJoin!==void 0&&e.lineJoin!==`miter`&&n.push(` stroke-linejoin="${e.lineJoin}"`),e.lineCap!==void 0&&e.lineCap!==`butt`&&n.push(` stroke-linecap="${e.lineCap}"`)),e.fillRule===`evenodd`&&n.push(` fill-rule="evenodd"`),n.join(``)}var Wg,Gg=n((()=>{jg(),Bg(),xc(),Wg=class{constructor(){this.parts=[],this.defs=[],this.clipDepth=0,this.filterDepth=0}markup(){let e=`</g>`.repeat(this.clipDepth+this.filterDepth);return(this.defs.length>0?`<defs>${this.defs.join(``)}</defs>`:``)+this.parts.join(``)+e}pushClip(e){let t=`dc${this.defs.length}`;this.defs.push(`<clipPath id="${t}"><rect x="${F(e.x)}" y="${F(e.y)}" width="${F(e.width)}" height="${F(e.height)}"/></clipPath>`),this.parts.push(`<g clip-path="url(#${t})">`),this.clipDepth++}popClip(){this.clipDepth>0&&(this.parts.push(`</g>`),this.clipDepth--)}pushFilter(e){this.parts.push(`<g filter="url(#${Ag(e)})">`),this.filterDepth++}popFilter(){this.filterDepth>0&&(this.parts.push(`</g>`),this.filterDepth--)}addDefs(e){this.defs.push(...e)}rect(e,t,n,r,i,a){n<=0||r<=0||this.parts.push(`<rect x="${F(e)}" y="${F(t)}" width="${F(n)}" height="${F(r)}"`+(i>0?` rx="${F(i)}"`:``)+Ug(a)+`/>`)}ellipse(e,t,n,r,i){n<=0||r<=0||this.parts.push(n===r?`<circle cx="${F(e)}" cy="${F(t)}" r="${F(n)}"${Ug(i)}/>`:`<ellipse cx="${F(e)}" cy="${F(t)}" rx="${F(n)}" ry="${F(r)}"${Ug(i)}/>`)}sector(e,t,n,r,i,a,o){if(n<=0)return;let s=a-i,c=Math.abs(s);if(c>=Math.PI*2-1e-9){if(r>0){let i=(n,r)=>`A ${F(n)} ${F(n)} 0 1 ${r} ${F(e+n)} ${F(t)} A ${F(n)} ${F(n)} 0 1 ${r} ${F(e-n)} ${F(t)}`;this.parts.push(`<path d="M ${F(e-n)} ${F(t)} ${i(n,1)} M ${F(e-r)} ${F(t)} ${i(r,0)} Z"`+Ug({...o,fillRule:`evenodd`})+`/>`);return}this.parts.push(`<circle cx="${F(e)}" cy="${F(t)}" r="${F(n)}"${Ug(o)}/>`);return}let l=+(c>Math.PI),u=+(s>=0),d=(n,r)=>({x:e+Math.cos(n)*r,y:t+Math.sin(n)*r}),f=d(i,n),p=d(a,n);if(r>0){let e=d(a,r),t=d(i,r);this.parts.push(`<path d="M ${F(f.x)} ${F(f.y)} A ${F(n)} ${F(n)} 0 ${l} ${u} ${F(p.x)} ${F(p.y)} L ${F(e.x)} ${F(e.y)} A ${F(r)} ${F(r)} 0 ${l} ${u===1?0:1} ${F(t.x)} ${F(t.y)} Z"`+Ug(o)+`/>`);return}this.parts.push(`<path d="M ${F(e)} ${F(t)} L ${F(f.x)} ${F(f.y)} A ${F(n)} ${F(n)} 0 ${l} ${u} ${F(p.x)} ${F(p.y)} Z"`+Ug(o)+`/>`)}polyline(e,t,n){if(e.length<2)return;let r=e.map(e=>`${F(e.x)},${F(e.y)}`).join(` `);this.parts.push(`<${t?`polygon`:`polyline`} points="${r}"${Ug(n,!t)}/>`)}path(e,t){if(e.length===0)return;let n=e.map(e=>{switch(e.op){case`move`:return`M ${F(e.x)} ${F(e.y)}`;case`line`:return`L ${F(e.x)} ${F(e.y)}`;case`cubic`:return`C ${F(e.x1)} ${F(e.y1)} ${F(e.x2)} ${F(e.y2)} ${F(e.x)} ${F(e.y)}`;case`close`:return`Z`}}).join(` `);this.parts.push(`<path d="${n}"${Ug(t)}/>`)}text(e,t,n,r,i){let a=n.filter(e=>e.text!==``);if(a.length===0||!r.fill)return;let o=` font-size="${F(r.size)}" fill="${Hg(r.fill)}"`+(r.fill.a<1?` fill-opacity="${F(r.fill.a)}"`:``)+` text-anchor="${r.anchor??`start`}" font-family="${Ag(r.family??`arial`)}"`+(r.bold?` font-weight="bold"`:``)+(r.italic?` font-style="italic"`:``)+(i===0?``:` transform="rotate(${F(i)} ${F(e)} ${F(t)})"`);if(a.length===1&&a[0].dy===0&&a[0].x===void 0){this.parts.push(`<text x="${F(e)}" y="${F(t)}"${o}>${kg(a[0].text)}</text>`);return}let s=a.map(n=>`<tspan x="${F(n.x??e)}" y="${F(t+n.dy)}">${kg(n.text)}</tspan>`).join(``);this.parts.push(`<text x="${F(e)}" y="${F(t)}"${o}>${s}</text>`)}}}));function Kg(e){let t={},n=e.length,r=0;for(;r<n;){for(;r<n&&!qg(e.charCodeAt(r));)r++;if(r>=n)break;let i=r;for(;r<n&&qg(e.charCodeAt(r));)r++;let a=e.slice(i,r),o=r;for(;o<n&&Jg(e.charCodeAt(o));)o++;if(o>=n||e.charCodeAt(o)!==61)continue;for(o++;o<n&&Jg(e.charCodeAt(o));)o++;let s=e.charCodeAt(o);if(s!==34&&s!==39){r=o;continue}o++;let c=o;for(;o<n&&e.charCodeAt(o)!==s;)o++;t[a]=e.slice(c,o),r=o<n?o+1:o}return t}function qg(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===95||e===58||e===45}function Jg(e){return e===32||e===9||e===10||e===13}function Yg(e){if(!e)return[];let t=[];for(let n of e.trim().split(/[\s,]+/)){if(n===``)continue;let e=Number(n);Number.isFinite(e)&&t.push(e)}return t}function Xg(e){let t=Yg(e),n=[];for(let e=0;e+1<t.length;e+=2)n.push({x:t[e],y:t[e+1]});return n}function Zg(e){if(!e)return;let t=e.trim();if(t===``||t===`none`||t===`transparent`)return;let n=/^rgba?\(([^)]*)\)$/i.exec(t);if(n)return Qg(n[1]);let r=t.startsWith(`#`)?t.slice(1):t;if(!/^[0-9a-fA-F]+$/.test(r))return;let i=e=>Number.parseInt(r[e]+r[e],16)/255,a=e=>Number.parseInt(r.slice(e,e+2),16)/255;switch(r.length){case 3:return{r:i(0),g:i(1),b:i(2),a:1};case 4:return{r:i(0),g:i(1),b:i(2),a:i(3)};case 6:return{r:a(0),g:a(2),b:a(4),a:1};case 8:return{r:a(0),g:a(2),b:a(4),a:a(6)};default:return}}function Qg(e){let t=e.trim().split(/[\s,/]+/).filter(e=>e!==``);if(t.length<3||t.length>4)return;let n=e=>{let t=Number.parseFloat(e);if(Number.isFinite(t))return $g(e.endsWith(`%`)?t/100:t/255)},r=n(t[0]),i=n(t[1]),a=n(t[2]);if(r===void 0||i===void 0||a===void 0)return;let o=1;if(t.length===4){let e=Number.parseFloat(t[3]);if(!Number.isFinite(e))return;o=$g(t[3].endsWith(`%`)?e/100:e)}return{r,g:i,b:a,a:o}}function $g(e){return e<0?0:e>1?1:e}function e_(e){if(!e)return;let t=/rotate\(([^)]*)\)/i.exec(e);if(!t)return;let n=Yg(t[1]);if(n.length!==0)return{angle:n[0],cx:n[1]??0,cy:n[2]??0}}function t_(e,t=0){if(!e.includes(`<tspan`))return[{text:r_(e),dy:0}];let n=[],r=/<tspan\b([^>]*)>([\s\S]*?)<\/tspan>/g,i,a=0,o=0,s=e=>{let t=r_(e);t.trim()!==``&&n.push({text:t,dy:a})};for(;(i=r.exec(e))!==null;){s(e.slice(o,i.index)),o=i.index+i[0].length;let r=Kg(i[1]);a+=n_(r.dy,t);let c=r.x===void 0?NaN:Number.parseFloat(r.x);n.push({text:r_(i[2]),...Number.isFinite(c)?{x:c}:{},dy:a})}return s(e.slice(o)),n.length>0?n:[{text:r_(e),dy:0}]}function n_(e,t){if(e===void 0)return 0;let n=Number.parseFloat(e);if(!Number.isFinite(n))return 0;let r=e.trim();return r.endsWith(`em`)?n*t:r.endsWith(`%`)?n/100*t:n}function r_(e){let t=``,n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i===60?n++:i===62?n>0?n--:t+=`>`:n===0&&(t+=e[r])}return i_(t)}function i_(e){return e.includes(`&`)?e.replace(/&(?:([A-Za-z]+)|#x([0-9A-Fa-f]+)|#(\d+));/g,(e,t,n,r)=>{if(t!==void 0)switch(t){case`amp`:return`&`;case`lt`:return`<`;case`gt`:return`>`;case`quot`:return`"`;case`apos`:return`'`;default:return e}let i=n===void 0?Number.parseInt(r,10):Number.parseInt(n,16),a=i>=55296&&i<=57343;return Number.isFinite(i)&&i>=0&&i<=1114111&&!a?String.fromCodePoint(i):e}):e}var a_=n((()=>{}));function o_(e){let t={type:e.type,sparklines:e.sparklines};return e.lineWeight!==void 0&&(t.lineWeight=e.lineWeight),e.markers!==void 0&&(t.markers=e.markers),e.high!==void 0&&(t.high=e.high),e.low!==void 0&&(t.low=e.low),e.first!==void 0&&(t.first=e.first),e.last!==void 0&&(t.last=e.last),e.negative!==void 0&&(t.negative=e.negative),e.lineColor&&(t.colorSeries=s_(e.lineColor)),e.negativeColor&&(t.colorNegative=s_(e.negativeColor)),e.axisColor&&(t.colorAxis=s_(e.axisColor)),e.markerColor&&(t.colorMarkers=s_(e.markerColor)),e.highColor&&(t.colorHigh=s_(e.highColor)),e.lowColor&&(t.colorLow=s_(e.lowColor)),e.firstColor&&(t.colorFirst=s_(e.firstColor)),e.lastColor&&(t.colorLast=s_(e.lastColor)),e.minAxisType&&(t.minAxisType=e.minAxisType),e.maxAxisType&&(t.maxAxisType=e.maxAxisType),e.manualMin!==void 0&&(t.manualMin=e.manualMin),e.manualMax!==void 0&&(t.manualMax=e.manualMax),e.displayXAxis!==void 0&&(t.displayXAxis=e.displayXAxis),e.rightToLeft!==void 0&&(t.rightToLeft=e.rightToLeft),e.displayEmptyCellsAs&&(t.displayEmptyCellsAs=e.displayEmptyCellsAs),e.dateAxis&&(t.dateAxis=e.dateAxis),t}function s_(e){return{rgb:e.replace(/^#/,``).toUpperCase()}}function c_(e){if(!e||e.length===0)return``;let t=[];t.push(`<x14:sparklineGroups xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">`);for(let n of e)t.push(l_(n));return t.push(`</x14:sparklineGroups>`),t.join(``)}function l_(e){let t=[];e.type!==void 0&&e.type!==`line`&&t.push(`type="${e.type}"`),e.lineWeight!==void 0&&t.push(`lineWeight="${e.lineWeight}"`),t.push(`displayEmptyCellsAs="${e.displayEmptyCellsAs??`gap`}"`),e.markers&&t.push(`markers="1"`),e.high&&t.push(`high="1"`),e.low&&t.push(`low="1"`),e.first&&t.push(`first="1"`),e.last&&t.push(`last="1"`),e.negative&&t.push(`negative="1"`),e.displayXAxis&&t.push(`displayXAxis="1"`),e.displayHidden&&t.push(`displayHidden="1"`),e.minAxisType&&e.minAxisType!==`individual`&&t.push(`minAxisType="${e.minAxisType}"`),e.maxAxisType&&e.maxAxisType!==`individual`&&t.push(`maxAxisType="${e.maxAxisType}"`),e.manualMin!==void 0&&t.push(`manualMin="${e.manualMin}"`),e.manualMax!==void 0&&t.push(`manualMax="${e.manualMax}"`),e.rightToLeft&&t.push(`rightToLeft="1"`);let n=[];n.push(`<x14:sparklineGroup${t.length>0?` ${t.join(` `)}`:``}>`);for(let[t,r]of __)n.push(`<x14:${t} ${u_(e[r]??g_[r])}/>`);e.dateAxis&&n.push(`<xm:f>${d_(e.dateAxis)}</xm:f>`),n.push(`<x14:sparklines>`);for(let t of e.sparklines)n.push(`<x14:sparkline>`),n.push(`<xm:f>${d_(t.dataRef)}</xm:f>`),n.push(`<xm:sqref>${d_(t.cellRef)}</xm:sqref>`),n.push(`</x14:sparkline>`);return n.push(`</x14:sparklines>`),n.push(`</x14:sparklineGroup>`),n.join(``)}function u_(e){let t=[];return e.rgb&&t.push(`rgb="${e.rgb}"`),e.theme!==void 0&&t.push(`theme="${e.theme}"`),e.tint!==void 0&&t.push(`tint="${e.tint}"`),e.auto&&t.push(`auto="1"`),t.join(` `)}function d_(e){return zl(e)}function f_(e){let t=[],n=/<x14:sparklineGroup\b([^>]*?)(?:\/>|>([\s\S]*?)<\/x14:sparklineGroup>)/g,r;for(;(r=n.exec(e))!==null;){let e=p_(r[1]??``,r[2]??``);t.push(e)}return t}function p_(e,t){let n={sparklines:[]},r=/(\w+)="([^"]*)"/g,i;for(;(i=r.exec(e))!==null;){let[,e,t]=i;switch(e){case`type`:n.type=t;break;case`lineWeight`:n.lineWeight=parseFloat(t);break;case`displayEmptyCellsAs`:n.displayEmptyCellsAs=t;break;case`markers`:n.markers=t===`1`;break;case`high`:n.high=t===`1`;break;case`low`:n.low=t===`1`;break;case`first`:n.first=t===`1`;break;case`last`:n.last=t===`1`;break;case`negative`:n.negative=t===`1`;break;case`displayXAxis`:n.displayXAxis=t===`1`;break;case`displayHidden`:n.displayHidden=t===`1`;break;case`minAxisType`:n.minAxisType=t;break;case`maxAxisType`:n.maxAxisType=t;break;case`manualMin`:n.manualMin=parseFloat(t);break;case`manualMax`:n.manualMax=parseFloat(t);break;case`rightToLeft`:n.rightToLeft=t===`1`}}for(let e of[`colorSeries`,`colorNegative`,`colorAxis`,`colorMarkers`,`colorFirst`,`colorLast`,`colorHigh`,`colorLow`]){let r=v_.get(e).exec(t);r&&(n[e]=m_(r[1]))}let a=/<x14:sparkline>\s*<xm:f>([\s\S]*?)<\/xm:f>\s*<xm:sqref>([\s\S]*?)<\/xm:sqref>\s*<\/x14:sparkline>/g,o;for(;(o=a.exec(t))!==null;)n.sparklines.push({dataRef:h_(o[1]),cellRef:h_(o[2])});return n}function m_(e){let t={},n=/(\w+)="([^"]*)"/g,r;for(;(r=n.exec(e))!==null;){let[,e,n]=r;switch(e){case`rgb`:t.rgb=n;break;case`theme`:t.theme=parseInt(n,10);break;case`tint`:t.tint=parseFloat(n);break;case`auto`:t.auto=n===`1`}}return t}function h_(e){return e.replace(/&(?:amp|lt|gt|quot|apos);/g,e=>{switch(e){case`&amp;`:return`&`;case`&lt;`:return`<`;case`&gt;`:return`>`;case`&quot;`:return`"`;case`&apos;`:return`'`;default:return e}})}var g_,__,v_,y_=n((()=>{Yl(),g_={colorSeries:{rgb:`FF376092`},colorNegative:{rgb:`FFD00000`},colorAxis:{rgb:`FF000000`},colorMarkers:{rgb:`FFD00000`},colorFirst:{rgb:`FFD00000`},colorLast:{rgb:`FFD00000`},colorHigh:{rgb:`FFD00000`},colorLow:{rgb:`FFD00000`}},__=[[`colorSeries`,`colorSeries`],[`colorNegative`,`colorNegative`],[`colorAxis`,`colorAxis`],[`colorMarkers`,`colorMarkers`],[`colorFirst`,`colorFirst`],[`colorLast`,`colorLast`],[`colorHigh`,`colorHigh`],[`colorLow`,`colorLow`]],v_=new Map([[`colorSeries`,/<x14:colorSeries\b([^/]*)\/>/],[`colorNegative`,/<x14:colorNegative\b([^/]*)\/>/],[`colorAxis`,/<x14:colorAxis\b([^/]*)\/>/],[`colorMarkers`,/<x14:colorMarkers\b([^/]*)\/>/],[`colorFirst`,/<x14:colorFirst\b([^/]*)\/>/],[`colorLast`,/<x14:colorLast\b([^/]*)\/>/],[`colorHigh`,/<x14:colorHigh\b([^/]*)\/>/],[`colorLow`,/<x14:colorLow\b([^/]*)\/>/]])}));function b_(e){return e.startsWith(`/`)?e.slice(1):e}function x_(e){let t=Xv.exec(e);if(t)return parseInt(t[1],10)}function S_(e){let t=Zv.exec(e);if(t)return parseInt(t[1],10)}function C_(e){return e.startsWith(`xl/media/`)}function w_(e){let t=$v.exec(e);return t?t[1]:void 0}function T_(e){return Qv.test(e)}function E_(e){let t=/^xl\/theme\/([a-zA-Z0-9]+)[.]xml$/.exec(e);return t?t[1]:void 0}function D_(e){return C_(e)||T_(e)}function O_(e){let t=ey.exec(e);return t?t[1]:void 0}function k_(e){let t=ty.exec(e);return t?t[1]:void 0}function A_(e){let t=ny.exec(e);return t?t[1]:void 0}function j_(e){let t=ry.exec(e);return t?t[1]:void 0}function M_(e){let t=iy.exec(e);return t?t[1]:void 0}function N_(e){let t=ay.exec(e);return t?t[1]:void 0}function P_(e){return oy.test(e)}function F_(e){let t=sy.exec(e);return t?t[1]:void 0}function I_(e){let t=cy.exec(e);return t?t[1]:void 0}function L_(e){let t=ly.exec(e);return t?t[1]:void 0}function R_(e){let t=uy.exec(e);return t?t[1]:void 0}function z_(e){let t=dy.exec(e);return t?t[1]:void 0}function B_(e){let t=fy.exec(e);return t?t[1]:void 0}function V_(e){let t=py.exec(e);return t?parseInt(t[1],10):void 0}function H_(e){let t=my.exec(e);return t?parseInt(t[1],10):void 0}function U_(e){return e.startsWith(`/`)?e:`/${e}`}function W_(e){return e.startsWith(`/`)?e.slice(1):e}function G_(e){return`xl/theme/${e}.xml`}function K_(e){return`xl/media/${e}`}function q_(e){return`xl/worksheets/sheet${e}.xml`}function J_(e){return`xl/worksheets/_rels/sheet${e}.xml.rels`}function Y_(e){return`worksheets/sheet${e}.xml`}function X_(e){return`xl/comments${e}.xml`}function Z_(e){return`xl/${e}.xml`}function Q_(e){return`xl/drawings/vmlDrawing${e}.vml`}function $_(e){return`xl/drawings/vmlDrawingHF${e}.vml`}function ev(e){return`xl/drawings/_rels/vmlDrawingHF${e}.vml.rels`}function tv(e){return`xl/tables/${e}`}function nv(e){return`xl/drawings/${e}.xml`}function rv(e){return`xl/drawings/_rels/${e}.xml.rels`}function iv(e){return`xl/pivotCache/pivotCacheDefinition${e}.xml`}function av(e){return`xl/pivotCache/_rels/pivotCacheDefinition${e}.xml.rels`}function ov(e){return`xl/pivotCache/pivotCacheRecords${e}.xml`}function sv(e){return`pivotCacheRecords${e}.xml`}function cv(e){return`xl/pivotTables/pivotTable${e}.xml`}function lv(e){return`xl/pivotTables/${e}.xml`}function uv(e){return`xl/pivotTables/_rels/pivotTable${e}.xml.rels`}function dv(e){return`xl/externalLinks/externalLink${e}.xml`}function fv(e){return`xl/externalLinks/_rels/externalLink${e}.xml.rels`}function pv(e){return`externalLinks/externalLink${e}.xml`}function mv(e){return`../pivotCache/pivotCacheDefinition${e}.xml`}function hv(e){return`pivotCache/pivotCacheDefinition${e}.xml`}function gv(e){return`../comments${e}.xml`}function _v(e){return`../drawings/vmlDrawing${e}.vml`}function vv(e){return`../drawings/vmlDrawingHF${e}.vml`}function yv(e){return`../drawings/${e}.xml`}function bv(e){return`../pivotTables/pivotTable${e}.xml`}function xv(e){return`../tables/${e}`}function Sv(e){return`../media/${e}`}function Cv(e){return`xl/ctrlProps/ctrlProp${e}.xml`}function wv(e){let t=gy.exec(e);return t?parseInt(t[1],10):void 0}function Tv(e){let t=_y.exec(e);return t?parseInt(t[1],10):void 0}function Ev(e){let t=vy.exec(e);return t?parseInt(t[1],10):void 0}function Dv(e){let t=yy.exec(e);return t?parseInt(t[1],10):void 0}function Ov(e){let t=by.exec(e);return t?parseInt(t[1],10):void 0}function kv(e){let t=xy.exec(e);return t?parseInt(t[1],10):void 0}function Av(e){return`xl/charts/chart${e}.xml`}function jv(e){return`xl/charts/_rels/chart${e}.xml.rels`}function Mv(e){return`xl/charts/style${e}.xml`}function Nv(e){return`xl/charts/colors${e}.xml`}function Pv(e){return`xl/charts/styleEx${e}.xml`}function Fv(e){return`xl/charts/colorsEx${e}.xml`}function Iv(e){return`../charts/chart${e}.xml`}function Lv(e){return`xl/drawings/chartUserShape${e}.xml`}function Rv(e){return`../drawings/chartUserShape${e}.xml`}function zv(e){return`style${e}.xml`}function Bv(e){return`colors${e}.xml`}function Vv(e){return`styleEx${e}.xml`}function Hv(e){return`colorsEx${e}.xml`}function Uv(e){let t=Sy.exec(e);return t?parseInt(t[1],10):void 0}function Wv(e){let t=Cy.exec(e);return t?parseInt(t[1],10):void 0}function Gv(e){return`xl/charts/chartEx${e}.xml`}function Kv(e){return`xl/charts/_rels/chartEx${e}.xml.rels`}function qv(e){return`../charts/chartEx${e}.xml`}function cne(e){return`../ctrlProps/ctrlProp${e}.xml`}function Jv(e,t){let n=(t.startsWith(`/`)?t.slice(1):`${e.endsWith(`/`)?e:e+`/`}${t}`).split(`/`),r=[];for(let e of n)if(e===`.`||e===``)continue;else e===`..`?r.pop():r.push(e);return r.join(`/`)}function lne(e){let t=wy.exec(e);return t?parseInt(t[1],10):void 0}function une(e){let t=Ty.exec(e);return t?parseInt(t[1],10):void 0}function Yv(e){return`xl/chartsheets/sheet${e}.xml`}function dne(e){return`xl/chartsheets/_rels/sheet${e}.xml.rels`}var I,Xv,Zv,Qv,$v,ey,ty,ny,ry,iy,ay,oy,sy,cy,ly,uy,dy,fy,py,my,hy,gy,_y,vy,yy,by,xy,Sy,Cy,wy,Ty,Ey=n((()=>{I={contentTypes:`[Content_Types].xml`,rootRels:`_rels/.rels`,docPropsApp:`docProps/app.xml`,docPropsCore:`docProps/core.xml`,xlWorkbook:`xl/workbook.xml`,xlWorkbookRels:`xl/_rels/workbook.xml.rels`,xlSharedStrings:`xl/sharedStrings.xml`,xlStyles:`xl/styles.xml`,xlTheme1:`xl/theme/theme1.xml`,xlFeaturePropertyBag:`xl/featurePropertyBag/featurePropertyBag.xml`,xlMetadata:`xl/metadata.xml`},Xv=/^xl\/worksheets\/sheet(\d+)[.]xml$/,Zv=/^xl\/worksheets\/_rels\/sheet(\d+)[.]xml[.]rels$/,Qv=/^xl\/theme\/[a-zA-Z0-9]+[.]xml$/,$v=/^xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/,ey=/^xl\/drawings\/(drawing\d+)[.]xml$/,ty=/^xl\/drawings\/_rels\/(drawing\d+)[.]xml[.]rels$/,ny=/^xl\/drawings\/((?:chartUserShape|chartUserShapes|userDrawing)\d+)[.]xml$/,ry=/^xl\/drawings\/(vmlDrawing\d+)[.]vml$/,iy=/^xl\/drawings\/(vmlDrawingHF\d+)[.]vml$/,ay=/^xl\/drawings\/_rels\/(vmlDrawingHF\d+)[.]vml[.]rels$/,oy=/^xl\/(?:comments(\d+)|comments\/comment(\d+))[.]xml$/,sy=/^xl\/tables\/(table\d+)[.]xml$/,cy=/^xl\/pivotTables\/(pivotTable\d+)[.]xml$/,ly=/^xl\/pivotTables\/_rels\/(pivotTable\d+)[.]xml[.]rels$/,uy=/^xl\/pivotCache\/(pivotCacheDefinition\d+)[.]xml$/,dy=/^xl\/pivotCache\/_rels\/(pivotCacheDefinition\d+)[.]xml[.]rels$/,fy=/^xl\/pivotCache\/(pivotCacheRecords\d+)[.]xml$/,py=/^xl\/externalLinks\/externalLink(\d+)[.]xml$/,my=/^xl\/externalLinks\/_rels\/externalLink(\d+)[.]xml[.]rels$/,hy={workbookStyles:`styles.xml`,workbookSharedStrings:`sharedStrings.xml`,workbookTheme1:`theme/theme1.xml`,workbookFeaturePropertyBag:`featurePropertyBag/featurePropertyBag.xml`,workbookMetadata:`metadata.xml`},gy=/^xl\/charts\/chart(\d+)[.]xml$/,_y=/^xl\/charts\/_rels\/chart(\d+)[.]xml[.]rels$/,vy=/^xl\/charts\/style(\d+)[.]xml$/,yy=/^xl\/charts\/colors(\d+)[.]xml$/,by=/^xl\/charts\/styleEx(\d+)[.]xml$/,xy=/^xl\/charts\/colorsEx(\d+)[.]xml$/,Sy=/^xl\/charts\/chartEx(\d+)[.]xml$/,Cy=/^xl\/charts\/_rels\/chartEx(\d+)[.]xml[.]rels$/,wy=/^xl\/chartsheets\/sheet(\d+)[.]xml$/,Ty=/^xl\/chartsheets\/_rels\/sheet(\d+)[.]xml[.]rels$/}));function Dy(e){return Sv(e.name&&e.extension&&e.name.endsWith(`.${e.extension}`)?e.name:`${e.name}.${e.extension}`)}function Oy(e){return!!e.link&&e.buffer==null&&e.base64==null&&e.filename==null}function fne(e){let t=/\.([a-zA-Z0-9]{2,5})(?:[?#].*)?$/.exec(e);switch(t?t[1].toLowerCase():``){case`jpg`:case`jpeg`:return`jpeg`;case`gif`:return`gif`;default:return`png`}}function ky(e,t){return Oy(t)?{Id:e,Type:N.Image,Target:t.link,TargetMode:`External`}:{Id:e,Type:N.Image,Target:Dy(t)}}function Ay(e,t,n){let r=[],i=[...t],a={};for(let t of e){let e=String(t.imageId),o=n.getBookImage(t.imageId);if(!o)continue;let s=Oy(o),c=a[e];c||(c=n.nextRId(i),a[e]=c,i.push(ky(c,o)));let l={picture:{rId:c,...s?{external:!0}:{}},range:t.range};if(t.xfrmOffX!==void 0&&(l.picture.xfrmOffX=t.xfrmOffX),t.xfrmOffY!==void 0&&(l.picture.xfrmOffY=t.xfrmOffY),t.xfrmExtCx!==void 0&&(l.picture.xfrmExtCx=t.xfrmExtCx),t.xfrmExtCy!==void 0&&(l.picture.xfrmExtCy=t.xfrmExtCy),t.rawSpPr!==void 0&&(l.picture.rawSpPr=structuredClone(t.rawSpPr)),o.svgMediaId!==void 0){let e=`svg:${o.svgMediaId}`,t=a[e];if(!t){let r=n.getBookImage(o.svgMediaId);r&&(t=n.nextRId(i),a[e]=t,i.push(ky(t,r)))}t&&(l.picture.svgRId=t)}if(t.opacity!==void 0){let e=Math.max(0,Math.min(1,t.opacity));l.picture.alphaModFix=Math.round(e*1e5)}if(t.hyperlinks&&t.hyperlinks.hyperlink){let e=n.nextRId(i);l.picture.hyperlinks={tooltip:t.hyperlinks.tooltip,rId:e},i.push({Id:e,Type:N.Hyperlink,Target:t.hyperlinks.hyperlink,TargetMode:`External`})}r.push(l)}return{anchors:r,rels:i}}function jy(e){return e.filter(e=>{if(e==null)return!1;let t=typeof e.range==`string`?void 0:e.range;return t?.pos===void 0?t?.br&&e.shape||e.group?!0:!(!t?.br&&!e.picture&&!e.graphicFrame&&!e.shape||t?.br&&!e.picture&&!e.shape&&!e.graphicFrame):!!e.picture||!!e.graphicFrame||!!e.shape||!!e.group})}function My(e,t){let n=[];for(let r of e){let e=r.anchorRange;if(!e)continue;let i=e.pos===void 0?e.br===void 0?{tl:e.tl,ext:e.ext,editAs:e.editAs??`oneCell`}:{tl:e.tl,br:e.br,editAs:e.editAs??`oneCell`}:{pos:e.pos,ext:e.ext,editAs:`absolute`},a=t+n.length+1;n.push({range:i,shape:{kind:`userShape`,cNvPrId:a,name:r.name??`Shape ${a}`,shapeType:r.shapeType,fill:r.fillColor?{color:r.fillColor}:void 0,line:r.lineColor!==void 0||r.lineWidth!==void 0?{color:r.lineColor,width:r.lineWidth}:void 0,text:r.text}})}return n}function Ny(e,t){let n=[];for(let t of e){if(t.tl===void 0||t.br===void 0)continue;let e=t.shapeId??1025;n.push({range:{editAs:`absolute`,tl:Py(t.tl),br:Py(t.br)},alternateContent:{requires:`a14`},shape:{cNvPrId:e,name:t.name||`Check Box ${Math.max(1,e-1024)}`,hidden:!0,spid:`_x0000_s${e}`,text:t.text}})}return n}function Py(e){return{nativeCol:e.col,nativeColOff:e.colOff,nativeRow:e.row,nativeRowOff:e.rowOff}}function pne(e,t){let n=[];for(let r of e){let e={...r.range};r.range?.pos!==void 0&&(e.pos={x:Fy(r.range.pos.x),y:Fy(r.range.pos.y)}),r.range?.ext?.cx!==void 0&&(e.ext={width:Fy(r.range.ext.cx),height:Fy(r.range.ext.cy)});let i=`rId${t.length+1}`,a=(r.chartExNumber??0)>0,o=a?r.chartExNumber:r.chartNumber;t.push({Id:i,Type:a?N.ChartEx:N.Chart,Target:a?`../charts/chartEx${o}.xml`:`../charts/chart${o}.xml`}),n.push({range:e,...a?{chartExNumber:o}:{chartNumber:o},...a?{alternateContent:{requires:`cx1`}}:{},graphicFrame:{rId:i,...a?{isChartEx:!0}:{},name:`Chart ${o}`}})}return n}function Fy(e){return Math.round(e/9525)}function Iy(e,t,n){let r=[],i=Math.max(t.extent?.right??100,100),a=Math.max(t.extent?.bottom??200,200);for(let o of e){let e=t.getBookImage(o.imageId);if(e===void 0)continue;let s=t.nextRId(n);n.push(ky(s,e));let c=Math.max(0,Math.min(1,o.opacity??.15));r.push({picture:{rId:s,alphaModFix:Math.round(c*1e5),...Oy(e)?{external:!0}:{}},range:{editAs:`absolute`,tl:{nativeCol:0,nativeColOff:0,nativeRow:0,nativeRowOff:0},br:{nativeCol:i,nativeColOff:0,nativeRow:a,nativeRowOff:0}}})}return r}var Ly=n((()=>{Ey(),Lf()}));function Ry(e,t,n,r,i){let a=i(e,t)?.style?.border,o=r-t+1,s=n-e+1,c=Array(o),l=Array(o),u=Array(s),d=Array(s),f=!1;for(let o=t;o<=r;o++){let r=o-t,s=i(e,o)?.style?.border;c[r]=s?.top||a?.top,l[r]=n===e?s?.bottom||a?.bottom:i(n,o)?.style?.border?.bottom||a?.bottom,(c[r]||l[r])&&(f=!0)}for(let o=e;o<=n;o++){let n=o-e,s=i(o,t)?.style?.border;u[n]=s?.left||a?.left,d[n]=r===t?s?.right||a?.right:i(o,r)?.style?.border?.right||a?.right,(u[n]||d[n])&&(f=!0)}let p=a?.diagonal,m=a?.color;if(!(!f&&!p))return{topEdges:c,bottomEdges:l,leftEdges:u,rightEdges:d,diagonal:p,color:m}}function zy(e,t,n,r,i,a){let{topEdges:o,bottomEdges:s,leftEdges:c,rightEdges:l,diagonal:u,color:d}=i,f=a(e,t).style;for(let i=e;i<=n;i++)for(let p=t;p<=r;p++){let m=a(i,p),h=Kr(f)||{},g={},_=!1;i===e&&o[p-t]&&(g.top=o[p-t],_=!0),i===n&&s[p-t]&&(g.bottom=s[p-t],_=!0),p===t&&c[i-e]&&(g.left=c[i-e],_=!0),p===r&&l[i-e]&&(g.right=l[i-e],_=!0),u&&(g.diagonal=u,_=!0),_?(d&&(g.color=d),h.border=g):delete h.border,m.style=h}}var By=n((()=>{qr()}));function Vy(e){let t=(e??`utf-8`).trim().toLowerCase();return t===``||t===`utf8`||t===`utf-8`?`utf-8`:t===`utf16le`||t===`utf-16le`||t===`ucs2`||t===`ucs-2`?`utf-16le`:t===`binary`?`latin1`:t}function Hy(e){let t=Vy(e);if(t===`utf-8`)return eb;let n=tb.get(t);return n||(n=Uy(t),tb.set(t,n)),n}function Uy(e,t){try{return new TextDecoder(e,t)}catch(t){throw TypeError(`Unsupported text encoding: ${e}`,{cause:t})}}function Wy(e){let t=Vy(e);switch(t){case`hex`:return{decode:mne};case`base64`:return new ab(!1);case`base64url`:return new ab(!0);case`ascii`:return{decode:hne};default:return Uy(t,{ignoreBOM:!0})}}function mne(e){let t=``;for(let n=0;n<e.length;n++)t+=nb[e[n]];return t}function hne(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]&127);return t}function gne(e){let t=``;for(let n=0;n<e.length;n++)t+=nb[e[n]];return t}function Gy(e,t){let n=t?ib:rb,r=``,i=0;for(;i+2<e.length;i+=3){let t=e[i],a=e[i+1],o=e[i+2];r+=n[t>>>2]+n[(t&3)<<4|a>>>4]+n[(a&15)<<2|o>>>6]+n[o&63]}let a=e.length-i;if(a===1){let a=e[i];r+=n[a>>>2]+n[(a&3)<<4],t||(r+=`==`)}else if(a===2){let a=e[i],o=e[i+1];r+=n[a>>>2]+n[(a&3)<<4|o>>>4]+n[(o&15)<<2],t||(r+=`=`)}return r}function _ne(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]&127);return t}function Ky(e,t){let n=Vy(t);switch(n){case`hex`:return gne(e);case`base64`:return Gy(e,!1);case`base64url`:return Gy(e,!0);case`ascii`:return _ne(e);default:return Hy(n).decode(e)}}function qy(e){return $y.encode(e)}function Jy(e,t){return Hy(t).decode(e)}function L(e,t){let n=e.length;if(n===0)return new Uint8Array;if(n===1){let t=e[0];return t.constructor===Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}if(t===void 0){let r=0;for(let t=0;t<n;t++)r+=e[t].length;t=r}let r=new Uint8Array(t),i=0;for(let t=0;t<n;t++){let n=e[t];r.set(n,i),i+=n.length}return r}function Yy(e){let t=globalThis.Buffer;return t?t.from(e.buffer,e.byteOffset,e.byteLength):e}function Xy(e,t,n){if(!Number.isInteger(t)||t<0||t+n>e.length)throw RangeError(`cannot read ${n} byte(s) at offset ${t}: length is ${e.length}`)}function vne(e,t){return Xy(e,t,2),(e[t]|e[t+1]<<8)>>>0}function Zy(e,t){return Xy(e,t,4),(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function Qy(e){let t=new Uint8Array(4);return t[0]=e&255,t[1]=e>>>8&255,t[2]=e>>>16&255,t[3]=e>>>24&255,t}var $y,eb,tb,nb,rb,ib,ab,R,ob,sb,z,B=n((()=>{$y=new TextEncoder,eb=new TextDecoder(`utf-8`,{ignoreBOM:!0}),tb=new Map,nb=(()=>{let e=Array(256);for(let t=0;t<256;t++)e[t]=t.toString(16).padStart(2,`0`);return e})(),rb=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,ib=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,ab=class{constructor(e){this._remainder=null,this._chars=e?ib:rb}decode(e,t){let n;if(this._remainder){let t=new Uint8Array(this._remainder.length+e.length);t.set(this._remainder),t.set(e,this._remainder.length),n=t}else n=e;if(t?.stream??!1){let e=n.length%3,t=n.length-e;return this._remainder=e>0?n.slice(t):null,t>0?this._encodeBytes(n,t):``}return this._remainder=null,n.length>0?this._encodeBytes(n,n.length):``}_encodeBytes(e,t){let n=this._chars,r=n===ib,i=``,a=0;for(;a+2<t;a+=3){let t=e[a],r=e[a+1],o=e[a+2];i+=n[t>>>2]+n[(t&3)<<4|r>>>4]+n[(r&15)<<2|o>>>6]+n[o&63]}let o=t-a;if(o===1){let t=e[a];i+=n[t>>>2]+n[(t&3)<<4],r||(i+=`==`)}else if(o===2){let t=e[a],o=e[a+1];i+=n[t>>>2]+n[(t&3)<<4|o>>>4]+n[(o&15)<<2],r||(i+=`=`)}return i}},R=class{constructor(e,t=0,n=`binary stream`){this.data=e,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.label=n,this.offset=0,this.position=t}get position(){return this.offset}set position(e){if(!Number.isInteger(e)||e<0||e>this.data.length)throw RangeError(`${this.label}: cannot seek to ${e} — length is ${this.data.length}`);this.offset=e}get remaining(){return this.data.length-this.offset}get bytes(){return this.data}require(e){if(!Number.isInteger(e)||e<0||e>this.remaining)throw RangeError(`${this.label}: truncated at byte ${this.offset} — need ${e} byte(s), ${this.remaining} remain`)}readUint8(){this.require(1);let e=this.view.getUint8(this.offset);return this.offset+=1,e}readInt8(){this.require(1);let e=this.view.getInt8(this.offset);return this.offset+=1,e}readUint16(){this.require(2);let e=this.view.getUint16(this.offset,!0);return this.offset+=2,e}readInt16(){this.require(2);let e=this.view.getInt16(this.offset,!0);return this.offset+=2,e}readUint32(){this.require(4);let e=this.view.getUint32(this.offset,!0);return this.offset+=4,e}readInt32(){this.require(4);let e=this.view.getInt32(this.offset,!0);return this.offset+=4,e}readFloat64(){this.require(8);let e=this.view.getFloat64(this.offset,!0);return this.offset+=8,e}readBigUint64(){this.require(8);let e=this.view.getBigUint64(this.offset,!0);return this.offset+=8,e}readBytes(e){this.require(e);let t=this.data.subarray(this.offset,this.offset+e);return this.offset+=e,t}skip(e){this.require(e),this.offset+=e}slice(e,t){return this.data.subarray(e,t)}peekUint32(e){if(!Number.isInteger(e)||e<0||e+4>this.data.length)throw RangeError(`${this.label}: cannot peek 4 byte(s) at ${e} — length is ${this.data.length}`);return this.view.getUint32(e,!0)}},ob=new Uint8Array,sb=new DataView(new ArrayBuffer(8)),z=class{constructor(){this.total=0}get length(){return this.total}writeUint8(e){return this.reserve(1),this.buffer[this.total++]=e&255,this}writeUint16(e){this.reserve(2);let t=this.buffer;return t[this.total]=e&255,t[this.total+1]=e>>>8&255,this.total+=2,this}writeUint32(e){this.reserve(4);let t=this.buffer,n=e>>>0;return t[this.total]=n&255,t[this.total+1]=n>>>8&255,t[this.total+2]=n>>>16&255,t[this.total+3]=n>>>24&255,this.total+=4,this}writeInt32(e){return this.writeUint32(e>>>0)}writeFloat64(e){this.reserve(8),sb.setFloat64(0,e,!0);let t=this.buffer;for(let e=0;e<8;e++)t[this.total+e]=sb.getUint8(e);return this.total+=8,this}writeBytes(e){return e.length===0?this:(this.reserve(e.length),this.buffer.set(e,this.total),this.total+=e.length,this)}writeZeros(e){if(!Number.isInteger(e)||e<0)throw RangeError(`byte count must be a non-negative integer: ${e}`);return e===0?this:(this.reserve(e),this.buffer.fill(0,this.total,this.total+e),this.total+=e,this)}toUint8Array(){return this.buffer===void 0?ob:this.buffer.slice(0,this.total)}reserve(e){let t=this.buffer;if(t!==void 0&&this.total+e<=t.length)return;let n=t===void 0?32:t.length*2;for(;n<this.total+e;)n*=2;let r=new Uint8Array(n);t!==void 0&&r.set(t.subarray(0,this.total),0),this.buffer=r}}}));function cb(e,t){return(e>>>t|e<<32-t)>>>0}function lb(e){let t=e.length,n=Math.ceil((t+9)/64)*64,r=new Uint8Array(n);r.set(e),r[t]=128;let i=t*8,a=new DataView(r.buffer,r.byteOffset,r.byteLength);a.setUint32(n-8,0,!1),a.setUint32(n-4,i,!1);let o=db[0],s=db[1],c=db[2],l=db[3],u=db[4],d=db[5],f=db[6],p=db[7],m=new Uint32Array(64);for(let e=0;e<n;e+=64){for(let t=0;t<16;t++)m[t]=a.getUint32(e+t*4,!1);for(let e=16;e<64;e++){let t=cb(m[e-15],7)^cb(m[e-15],18)^m[e-15]>>>3,n=cb(m[e-2],17)^cb(m[e-2],19)^m[e-2]>>>10;m[e]=m[e-16]+t+m[e-7]+n>>>0}let t=o,n=s,r=c,i=l,h=u,g=d,_=f,v=p;for(let e=0;e<64;e++){let a=cb(h,6)^cb(h,11)^cb(h,25),o=h&g^~h&_,s=v+a+o+fb[e]+m[e]>>>0,c=(cb(t,2)^cb(t,13)^cb(t,22))+(t&n^t&r^n&r)>>>0;v=_,_=g,g=h,h=i+s>>>0,i=r,r=n,n=t,t=s+c>>>0}o=o+t>>>0,s=s+n>>>0,c=c+r>>>0,l=l+i>>>0,u=u+h>>>0,d=d+g>>>0,f=f+_>>>0,p=p+v>>>0}let h=new Uint8Array(32),g=new DataView(h.buffer);return g.setUint32(0,o,!1),g.setUint32(4,s,!1),g.setUint32(8,c,!1),g.setUint32(12,l,!1),g.setUint32(16,u,!1),g.setUint32(20,d,!1),g.setUint32(24,f,!1),g.setUint32(28,p,!1),h}function ub(e){let t=new Uint8Array(e);return globalThis.crypto.getRandomValues(t),t}async function yne(e,t){let n=await globalThis.crypto.subtle.digest(bne(e),t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));return new Uint8Array(n)}function bne(e){switch(e.toLowerCase().replace(/-/g,``)){case`sha1`:return`SHA-1`;case`sha256`:return`SHA-256`;case`sha384`:return`SHA-384`;case`sha512`:return`SHA-512`;default:return e}}var db,fb,pb=n((()=>{new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),db=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),fb=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),new Uint32Array([3614090360,3905402710,606105819,3250441966,4118548399,1200080426,2821735955,4249261313,1770035416,2336552879,4294925233,2304563134,1804603682,4254626195,2792965006,1236535329,4129170786,3225465664,643717713,3921069994,3593408605,38016083,3634488961,3889429448,568446438,3275163606,4107603335,1163531501,2850285829,4243563512,1735328473,2368359562,4294588738,2272392833,1839030562,4259657740,2763975236,1272893353,4139469664,3200236656,681279174,3936430074,3572445317,76029189,3654602809,3873151461,530742520,3299628645,4096336452,1126891415,2878612391,4237533241,1700485571,2399980690,4293915773,2240044497,1873313359,4264355552,2734768916,1309151649,4149444226,3174756917,718787259,3951481745])}));function xne(e){let t=new Uint8Array(4);return t[0]=e&255,t[1]=e>>8&255,t[2]=e>>16&255,t[3]=e>>24&255,t}var mb,hb=n((()=>{B(),pb(),dr(),mb={async hash(e,...t){return yne(e,L(t))},async convertPasswordToHash(e,t,n,r){let i=fee(e),a=Wn(n),o=await this.hash(t,a,i);for(let e=0;e<r;e++)o=await this.hash(t,o,xne(e));return tr(o)},randomBytes(e){return ub(e)}}}));async function gb(e,t){let n={sheet:!0};return t&&`spinCount`in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e!==void 0&&(n.algorithmName=`SHA-512`,n.saltValue=tr(mb.randomBytes(16)),n.spinCount=t&&`spinCount`in t?t.spinCount:1e5,n.hashValue=await mb.convertPasswordToHash(e,`SHA-512`,n.saltValue,n.spinCount)),t&&(Object.assign(n,t),!e&&`spinCount`in t&&delete n.spinCount),n}async function Sne(e,t){if(!e?.hashValue||!e.saltValue||!e.algorithmName)return!1;let n=Wn(await mb.convertPasswordToHash(t,e.algorithmName,e.saltValue,e.spinCount??1e5)),r=Wn(e.hashValue),i=n.length^r.length,a=Math.max(n.length,r.length);for(let e=0;e<a;e++)i|=(n[e]??0)^(r[e]??0);return i===0}var _b=n((()=>{hb(),hr()}));function Cne(e,t){let n=0,r=0;for(let i of e){let e=i.font?{...t,...i.font}:t,a=i.text.split(/\r\n|\r|\n/);for(let t=0;t<a.length;t++)t>0&&(r>n&&(n=r),r=0),a[t]&&(r+=ol(a[t],e))}return r>n&&(n=r),n}function wne(e,t,n){if(e<=0)return 0;let r=e+2*Math.ceil(e*.03+t/4)+1;n&&(r+=Tb),r>Cb&&(r=Cb);let i=Dl(r,t);return Math.min(i,wb)}function vb(e){let t=(e?.name??Sb).toLowerCase(),n=e?.size??xb,r=Math.round(n/72*bb),i=Vc(t);if(i){let{unitsPerEm:e,usWinDescent:t}=i.header;return Math.ceil((e+t)/e*r)}return Math.ceil(r*1.3)}function Tne(e,t,n){if(!e||t<=0)return 1;let r=al(n),i=Vc(r.name,r.bold),a=e.split(/\r\n|\r|\n/),o=0;for(let e of a){if(!e){o++;continue}o+=Ene(e,t,r,i)}return o}function Ene(e,t,n,r){let i=sl(n,r),a=i.create(),o=i.create(),s=1,c=!0,l=!0,u=-1,d=()=>{l||=(c?(i.addParts(a,o),c=!1):i.pxOfSum(a,o)>t?(s++,i.reset(a),i.addParts(a,o)):i.addParts(a,o),i.reset(o),!0)};if(cl(e))for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);u>=0&&Ic(u,n)&&d(),u=n,i.addAscii(o,n),l=!1}else for(let t of Oc(e)){let e=t.codePointAt(0);u>=0&&Ic(u,e)&&d(),u=e,i.addCluster(o,t),l=!1}return d(),s}function yb(e,t,n,r){if(!e)return Ol(vb(t));let i=vb(t),a;return a=n?.wrapText&&r&&r>0?Tne(e,r,t):e.split(/\r\n|\r|\n/).length,Ol(i*a)}function Dne(e,t,n,r){let i=t?.size??xb,a=t;for(let n of e){let e=n.font?.size??t?.size??xb;e>i&&(i=e,a=n.font?{...t,...n.font}:t)}return yb(e.map(e=>e.text).join(``),a,n,r)}function One(e,t){let n=El(e,t),r=Tl(t);return Math.max(0,n-r)}function kne(e){let t=e.effectiveType,n=e.font;if(t===qt.RichText){let t=e.value;if(t&&typeof t==`object`&&`richText`in t)return Cne(t.richText,n)}let r=Pr(e);return r?ol(r,n):0}function Ane(e,t,n){let r=e.font,i=e.alignment;if(e.effectiveType===qt.RichText){let t=e.value;if(t&&typeof t==`object`&&`richText`in t)return Dne(t.richText,r,i,n)}let a=Pr(e);return a?yb(a,r,i,i?.wrapText?n:void 0):0}var bb,xb,Sb,Cb,wb,Tb,jne=n((()=>{Qt(),Hr(),lte(),rl(),Ac(),gl(),Pl(),bb=96,xb=11,Sb=`Calibri`,Cb=1790,wb=255,Tb=16}));function Eb(e){let t={};return t._workbook=e.workbook,t.id=e.id??0,t.orderNo=e.orderNo??0,gS(t,e.name||`sheet${t.id}`),t.state=e.state??`visible`,t._rows=[],t._columns=[],t._keys={},t._merges={},t.rowBreaks=[],t.colBreaks=[],t.properties={defaultRowHeight:15,outlineLevelCol:0,outlineLevelRow:0,...e.properties},t.pageSetup={margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:`portrait`,horizontalDpi:void 0,verticalDpi:void 0,fitToPage:!!(e.pageSetup&&(e.pageSetup.fitToWidth||e.pageSetup.fitToHeight)&&!e.pageSetup.scale),pageOrder:`downThenOver`,blackAndWhite:!1,draft:!1,cellComments:`None`,errors:`displayed`,scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null,...e.pageSetup},t.headerFooter={differentFirst:!1,differentOddEven:!1,scaleWithDoc:!0,alignWithMargins:!0,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null,...e.headerFooter},t.dataValidations=le(),t.views=e.views??[],t.autoFilter=e.autoFilter??null,t._media=[],t._shapes=[],t._charts=[],t._sparklineGroups=[],t.sheetProtection=null,t.tables={},t.pivotTables=[],t.conditionalFormattings=[],t.formControls=[],t.ignoredErrors=[],t.threadedComments=[],t._watermark=null,t._watermarkMedia=null,t}function Db(e){tne(e._workbook,e)}function Mne(e,t,n,...r){for(let t of Object.values(e._merges))for(let n=t.top;n<=t.bottom;n++)for(let r=t.left;r<=t.right;r++){let t=mo(e,n,r);t&&Si(t)===k.ValueType.Merge&&zi(t)}let i=e._rows.length;if(r.length>0)for(let a=0;a<i;a++){let i=r.map(e=>e[a]??null);Mo(lo(e,a+1),t,n,...i)}else e._rows.forEach(e=>{e&&Mo(e,t,n)});let a=r.length-n,o=t+n,s=e._columns.length;if(a<0)for(let n=t+r.length;n<=s;n++)To(ao(e,n),_a(ao(e,n-a)));else if(a>0)for(let t=s;t>=o;t--)To(ao(e,t+a),_a(ao(e,t)));for(let n=t;n<t+r.length;n++)To(ao(e,n),void 0);if(aee(ep(eo(e)),$a(e),t,n,r.length),a!==0){for(let n of e._media)if(n.type===`image`&&n.range){let{tl:e,br:r}=n.range;e&&e.nativeCol>=t-1&&(e.nativeCol=Math.max(0,e.nativeCol+a)),r&&r.nativeCol>=t-1&&(r.nativeCol=Math.max(0,r.nativeCol+a))}Pb(e,`col`,t-1,a)}Fb(e,`col`,t,n,r.length)}function Nne(e,t,n,r=`n`){return Ob(e,t,0,n),Lo(e,t,r),lo(e,t)}function Pne(e,t,n,r=`n`){if(Ob(e,t,0,...n),r!==`n`)for(let i=0;i<n.length;i++)r[0]===`o`&&so(e,n.length+t+i)!==void 0?Io(e,n.length+t+i,t+i,r[1]===`+`):r[0]===`i`&&so(e,t-1)!==void 0&&Io(e,t-1,t+i,r[1]===`+`);return uo(e,t,n.length)}function Fne(e,t,n,r=!1){let i=lo(e,t),a=Array.from({length:n}).fill(kb(i)),o=[];for(let n of Object.values(e._merges))n.top===t&&n.bottom===t&&o.push(n);let s=[],c=t-1;for(let t of e._media)t.type===`image`&&t.range&&t.range.tl.nativeRow===c&&s.push(t);Ob(e,t+1,r?0:n,...a);for(let r=0;r<n;r++){let n=e._rows[t+r];n.style=Kr(i.style)??{},n.height=i.height,jo(i,{includeEmpty:!0},(e,t)=>{vo(n,t).style=Kr(e.style)??{}})}if(o.length>0)for(let i=0;i<n;i++){let n=t+1+i;if(!r){let t=[];for(let[r,i]of Object.entries(e._merges))i.top<=n&&i.bottom>=n&&t.push(r);for(let n of t)Nb(e,ho(e,n))}for(let t of o)jb(e,n,t.left,n,t.right)}if(!r){let r=t,i=t+n-1;e._media=e._media.filter(e=>{if(e.type===`image`&&e.range){let t=e.range.tl.nativeRow;return t<r||t>i}return!0})}for(let t=0;t<n;t++){let n=t+1;for(let t of s){let r=tg(t);if(r.range.tl.nativeRow=c+n,r.range.br){let e=t.range.br.nativeRow-c;r.range.br.nativeRow=c+n+e}e._media.push(r)}}}function Ob(e,t,n,...r){for(let t of Object.values(e._merges))for(let n=t.top;n<=t.bottom;n++)for(let r=t.left;r<=t.right;r++){let t=mo(e,n,r);t&&Si(t)===k.ValueType.Merge&&zi(t)}let i=t+n,a=r.length,o=a-n,s=e._rows.length,c,l;if(o<0)for(t===s&&(e._rows[s-1]=void 0),c=i;c<=s;c++)if(l=e._rows[c-1],l){let t=lo(e,c+o);yo(t,kb(l)),t.style=Kr(l.style)??{},t.height=l.height,jo(l,{includeEmpty:!0},(e,n)=>{let r=vo(t,n);r.style=Kr(e.style)??{},Gi(r,Wi(e))}),e._rows[c-1]=void 0}else e._rows[c+o-1]=void 0;else if(o>0)for(c=s;c>=i;c--)if(l=e._rows[c-1],l){let t=lo(e,c+o);yo(t,kb(l)),t.style=Kr(l.style)??{},t.height=l.height,jo(l,{includeEmpty:!0},(e,n)=>{let r=vo(t,n);r.style=Kr(e.style)??{},Gi(r,Wi(e))})}else e._rows[c+o-1]=void 0;for(c=0;c<a;c++){let n=lo(e,t+c);n.style={},yo(n,r[c])}if(zt(ep(eo(e)),$a(e),t,n,a),o!==0){for(let n of e._media)if(n.type===`image`&&n.range){let{tl:e,br:r}=n.range;e&&e.nativeRow>=t-1&&(e.nativeRow=Math.max(0,e.nativeRow+o)),r&&r.nativeRow>=t-1&&(r.nativeRow=Math.max(0,r.nativeRow+o))}Pb(e,`row`,t-1,o)}Fb(e,`row`,t,n,a)}function kb(e){let t=Ma(e);return e.cells.forEach(e=>{e?._formulaGhostOwner!==void 0&&(t[xi(e)]=null)}),t}function Ab(e,...t){Mb(e,De(t))}function jb(e,...t){Mb(e,De(t),!0)}function Mb(e,t,n){Object.values(e._merges).forEach(e=>{if(Ue(e,t))throw new b});let{top:r,left:i,bottom:a,right:o}=t,s=n?void 0:Ry(r,i,a,o,(t,n)=>mo(e,t,n)),c=ho(e,t.top,t.left);c._formulaGhostOwner=void 0;for(let t=r;t<=a;t++)for(let a=i;a<=o;a++)(t>r||a>i)&&Ri(ho(e,t,a),c,n);s&&zy(r,i,a,o,s,(t,n)=>ho(e,t,n)),e._merges[c.address]=t}function Nb(e,t){let n=e._merges[t.address];if(n){for(let t=n.top;t<=n.bottom;t++)for(let r=n.left;r<=n.right;r++)zi(ho(e,t,r));delete e._merges[t.address]}}function Pb(e,t,n,r){let i=t===`row`?`nativeRow`:`nativeCol`,a=e._drawing;if(a?.anchors)for(let e of a.anchors){let t=e.range?.tl,a=e.range?.br;t&&t[i]!==void 0&&t[i]>=n&&(t[i]=Math.max(0,t[i]+r)),a&&a[i]!==void 0&&a[i]>=n&&(a[i]=Math.max(0,a[i]+r))}for(let t of e._charts){let{tl:e,br:a}=t.range;e[i]>=n&&(e[i]=Math.max(0,e[i]+r)),a&&a[i]>=n&&(a[i]=Math.max(0,a[i]+r))}}function Fb(e,t,n,r,i){let a=i-r;if(a===0&&r===0)return;let o=n+r,s=t===`row`,c={};for(let t of Object.values(e._merges)){let{top:e,left:i,bottom:l,right:u}=t,d=s?e:i,f=s?l:u;if(a<=0&&r>0){let r=o-1;if(d>r){let t=s?De(e+a,i,l+a,u):De(e,i+a,l,u+a);c[D.encodeAddress(t.top,t.left)]=t}else if(f<n)c[D.encodeAddress(e,i)]=t;else if(!(d>=n&&f<=r)){let t=e,r=i,o=l,d=u;s?(t=e<n?e:n,o=Math.max(t,l+a)):(r=i<n?i:n,d=Math.max(r,u+a));let f=De(t,r,o,d);t===o&&r===d||(c[D.encodeAddress(f.top,f.left)]=f)}}else if(d>=o){let t=s?De(e+a,i,l+a,u):De(e,i+a,l,u+a);c[D.encodeAddress(t.top,t.left)]=t}else f<o||(s?t.bottom=l+a:t.right=u+a),c[D.encodeAddress(e,i)]=t}e._merges=c;for(let t of Object.values(c)){let n=ho(e,t.top,t.left);for(let r=t.top;r<=t.bottom;r++)for(let i=t.left;i<=t.right;i++)(r>t.top||i>t.left)&&Ri(ho(e,r,i),n,!0)}}function Ib(e,...t){let n=De(t);for(let t=n.top;t<=n.bottom;t++)for(let r=n.left;r<=n.right;r++){let n=mo(e,t,r);n&&(Si(n)===k.ValueType.Merge?Nb(e,Bi(n)):e._merges[n.address]&&Nb(e,n))}}function Lb(e,t,n,r,i=`shared`){let{top:a,left:o,bottom:s,right:c}=D.decode(t),l=c-o+1,u=D.encodeAddress(a,o),d=i===`shared`,f;f=typeof r==`function`?r:Array.isArray(r)?Array.isArray(r[0])?(e,t)=>r[e-a][t-o]:(e,t)=>r[(e-a)*l+(t-o)]:()=>void 0;let p=!0;for(let r=a;r<=s;r++)for(let a=o;a<=c;a++)p?(Oi(ho(e,r,a),{shareType:i,formula:n,ref:t,result:f(r,a)}),p=!1):Oi(ho(e,r,a),d?{sharedFormula:u,result:f(r,a)}:f(r,a))}function Rb(e,t,n){let r={type:`image`,imageId:String(t),range:n};e._media.push(Qh(e,r))}function zb(e,t){let n=t.range;if(!(typeof n==`string`&&n.includes(`:`)||typeof n==`object`&&n&&(`br`in n||`ext`in n||`pos`in n)))throw new ae('addShape requires a range covering an area: a cell range like "B2:D5", or an object with `br`, `ext`, or `pos`.');e._shapes.push({type:`shape`,shapeType:t.type??`rect`,range:n,fillColor:t.fillColor,lineColor:t.lineColor,lineWidth:t.lineWidth,text:t.text,name:t.name})}function Bb(e){return e._shapes.slice()}function Vb(e,t){let n;try{n=$h(Qh(e,{type:`image`,imageId:``,range:t.range})).range}catch{n=void 0}return n?{...t,anchorRange:{tl:n.tl,br:n.br,ext:n.ext,pos:n.pos,editAs:n.editAs}}:{...t,anchorRange:void 0}}function Ine(e){return e._media.filter(e=>e.type===`image`)}function Hb(e,t,n){return xm(e,Rd(t),n,t)}function Lne(e,t,n){return Hb(e,{...t,type:`bar`,barDir:`col`},n)}function Rne(e,t,n){return Hb(e,{...t,type:`bar`,barDir:`bar`},n)}function zne(e,t,n){return Hb(e,{...t,type:`line`},n)}function Bne(e,t,n){return Hb(e,{...t,type:`area`},n)}function Vne(e,t,n){return Hb(e,{...t,type:`pie`},n)}function Hne(e,t,n){return Hb(e,{...t,type:`doughnut`},n)}function Ub(e,t,n){return Hb(e,{...t,type:`scatter`},n)}function Wb(e,t,n){return Hb(e,{...t,type:`bubble`},n)}function Gb(e,t,n){return Hb(e,{...t,type:`radar`},n)}function Kb(e,t,n){return Hb(e,{...t,type:`stock`},n)}function qb(e,t,n){return Hb(e,{...t,type:`surface`},n)}function Jb(e,t,n){return px(e,{...t,type:`histogram`},n)}function Yb(e,t,n){return px(e,{...t,type:`pareto`},n)}function Xb(e,t,n){return px(e,{...t,type:`waterfall`},n)}function Zb(e,t,n){return px(e,{...t,type:`funnel`},n)}function Qb(e,t,n){return px(e,{...t,type:`treemap`},n)}function $b(e,t,n){return px(e,{...t,type:`sunburst`},n)}function ex(e,t,n){return px(e,{...t,type:`boxWhisker`},n)}function tx(e,t,n){return px(e,{...t,type:`regionMap`},n)}function nx(e,t,n,r){return Hb(e,Oh(t,n),r)}function rx(e,t,n,r){return px(e,kh(t,n),r)}function ix(e,t){return Us($a(e),t)}function ax(e,t,n,r){return Hb(e,Ks(e,t,n),r)}function ox(e,t,n,r){return Hb(e,qs(e,t,n),r)}function sx(e,t,n,r){return Hb(e,qs(e,t,{...n,type:`bar`,barDir:`col`}),r)}function cx(e,t,n,r){return px(e,sc(e,t,n),r)}function lx(e,t,n,r){return px(e,cc(e,t,n),r)}function ux(e,t,n,r){let i=rg(t,n);return xm(e,Rd(i),r,i)}function dx(e,t,n,r){let i=rg(t,n);return xm(e,zd(i),r,i)}function fx(e,t,n){return xm(e,zd(t),n,t)}function px(e,t,n){return Sm(e,Jd(t),n)}function mx(e){return[...e._charts]}function hx(e,t){let n=typeof t==`number`?t:e._charts.indexOf(t);if(n<0||n>=e._charts.length)return!1;let r=e._charts.splice(n,1)[0];r.chartNumber>0&&Jf(e._workbook,r.chartNumber),r.chartExNumber>0&&$f(e._workbook,r.chartExNumber);let i=e._drawing;return i?.anchors&&(i.anchors=i.anchors.filter(e=>!(r.chartNumber>0&&e.chartNumber===r.chartNumber||r.chartExNumber>0&&e.chartExNumber===r.chartExNumber))),!0}function gx(e,t){let n=o_(t);return e._sparklineGroups.push(n),n}function _x(e){return[...e._sparklineGroups]}function vx(e,t){let n=typeof t==`number`?t:e._sparklineGroups.indexOf(t);return n<0||n>=e._sparklineGroups.length?!1:(e._sparklineGroups.splice(n,1),!0)}function yx(e,t){let n=Vf(e._workbook,t);if(n&&Oy(n))throw new ae(`Background images cannot be external (linked) images. Use an embedded image (buffer/base64/filename). External images are only supported for cell pictures and overlay watermarks.`);let r={type:`background`,imageId:String(t)};e._media.push(Qh(e,r))}function bx(e){let t=e._media.find(e=>e.type===`background`);return t&&t.imageId}function xx(e,t){let n=t.mode??`overlay`;if(n===`header`){let n=Vf(e._workbook,t.imageId);if(n&&Oy(n))throw new ae(`Header watermark images cannot be external (linked) images. Use an embedded image (buffer/base64/filename), or use overlay mode for linked images.`)}e._watermark?.mode===`header`?Nx(e):Ox(e);let r=t.position??`CH`;if(e._watermark={imageId:String(t.imageId),mode:n,opacity:t.opacity,headerWidth:t.headerWidth,headerHeight:t.headerHeight,applyTo:t.applyTo,position:t.position},e._watermark.mode===`overlay`){let n=Qh(e,{type:`watermark`,imageId:String(t.imageId),opacity:t.opacity});e._media.push(n),e._watermarkMedia=n}else kx(e,{imageId:t.imageId,position:r,width:t.headerWidth,height:t.headerHeight,applyTo:t.applyTo}),e._watermarkMedia=e._media.find(e=>e.type===`headerImage`&&(e.position??`CH`)===r)??null}function Sx(e){return e[0]===`L`?`&L`:e[0]===`R`?`&R`:`&C`}function Cx(e,t,n){let r=e[1]===`F`,i=r?`oddFooter`:`oddHeader`,a=r?`evenFooter`:`evenHeader`,o=r?`firstFooter`:`firstHeader`;return t===`odd`?[i]:t===`even`?[a]:t===`first`?[o]:[i,a,o]}function wx(e,t){let n={...e},r=Sx(t),i=t[1]===`F`?[`oddFooter`,`evenFooter`,`firstFooter`]:[`oddHeader`,`evenHeader`,`firstHeader`];for(let e of i){let t=n[e];if(typeof t!=`string`||!Tx(t,r))continue;let i=t.indexOf(r),a=t.indexOf(`&G`,i+r.length),o=t.slice(0,a)+t.slice(a+2),s=o.indexOf(r);if(s>=0){let e=o.slice(s+r.length),t=e.search(/&[LCR]/);(t<0?e:e.slice(0,t))===``&&(o=o.slice(0,s)+o.slice(s+r.length))}n[e]=o||null}return n}function Tx(e,t){if(!e)return!1;let n=e.indexOf(t);if(n<0)return!1;let r=e.slice(n+t.length),i=r.search(/&[LCR]/);return(i<0?r:r.slice(0,i)).includes(`&G`)}function Ex(e,t){let n=e??``;if(Tx(n,t))return n;let r=n.indexOf(t);return r>=0?`${n.slice(0,r+t.length)}&G${n.slice(r+t.length)}`:`${n}${t}&G`}function Dx(e,t,n){let r={...e},i=Sx(t),a=t[1]===`F`,o=a?`oddFooter`:`oddHeader`;n===`even`&&!r.differentOddEven&&(r[a?`evenFooter`:`evenHeader`]=r[o],r.differentOddEven=!0),n===`all`&&(r.differentOddEven||=(r[a?`evenFooter`:`evenHeader`]=r[o],!0),r.differentFirst||=(r[a?`firstFooter`:`firstHeader`]=r[o],!0)),n===`first`&&!r.differentFirst&&(r[a?`firstFooter`:`firstHeader`]=r[o],r.differentFirst=!0);for(let e of Cx(t,n,r)){let t=r[e];(typeof t==`string`||t===null)&&(r[e]=Ex(t,i))}return r}function Ox(e){let t=e._watermarkMedia;t&&(e._media=e._media.filter(e=>e!==t),e._watermarkMedia=null)}function kx(e,t){let n=Vf(e._workbook,t.imageId);if(n&&Oy(n))throw new ae(`Header/footer images cannot be external (linked) images. Use an embedded image (buffer/base64/filename).`);jx(e,t.position),e._media.push(Qh(e,{type:`headerImage`,imageId:String(t.imageId),headerWidth:t.width,headerHeight:t.height,applyTo:t.applyTo,position:t.position})),e.headerFooter=Dx(e.headerFooter,t.position,t.applyTo??`odd`)}function Ax(e){return e._media.filter(e=>e.type===`headerImage`).map(e=>({imageId:String(e.imageId??``),position:e.position??`CH`,width:e.headerWidth,height:e.headerHeight}))}function jx(e,t){let n=e._media.filter(e=>e.type===`headerImage`&&(e.position??`CH`)===t);return n.length!==0&&(e._media=e._media.filter(e=>!n.includes(e)),e.headerFooter=wx(e.headerFooter,t),n.includes(e._watermarkMedia)&&(e._watermark=null,e._watermarkMedia=null),!0)}function Mx(e){return e._watermark}function Nx(e){let t=e._watermark;t&&(t.mode===`header`?jx(e,t.position??`CH`):Ox(e),e._watermark=null,e._watermarkMedia=null)}function Px(e,t,n){let r=Ih(e,t,n);return e.formControls.push(r),r}function Fx(e){return e.formControls}async function Ix(e,t,n){e.sheetProtection=await gb(t,n)}function Lx(e){e.sheetProtection=null}async function Rx(e,t){return Sne(e.sheetProtection,t)}function zx(e,t){let n=Qo(e,t),r=fs(n).toLowerCase();if(e.tables[fs(n)])throw new ie(`Table name "${fs(n)}" already exists in worksheet "${$a(e)}".`);if(eo(e)._tableNames.has(r))throw new ie(`Table name "${fs(n)}" already exists in another worksheet. Table names must be unique across the entire workbook (case-insensitive).`);return e.tables[fs(n)]=n,eo(e)._tableNames.add(r),n}function Bx(e,t){e.tables[t]&&eo(e)._tableNames.delete(t.toLowerCase()),delete e.tables[t]}function Vx(e,t){let n=xg({workbook:eo(e),name:$a(e)},t);return e.pivotTables.push(n),eo(e).pivotTables.push(n),n}function Hx(e,t){e.conditionalFormattings.push(t)}function Ux(e,t){typeof t==`number`?e.conditionalFormattings.splice(t,1):e.conditionalFormattings=typeof t==`function`?e.conditionalFormattings.filter((e,n,r)=>!t(e,n,r)):[]}function Wx(e,t){return Jx(e,typeof t==`string`?D.l2n(t):t),e}function Gx(e,t,n){let r=iS(e);if(!r||r.left===void 0)return e;let i=t==null?r.left:typeof t==`string`?D.l2n(t):t,a=n==null?r.right:typeof n==`string`?D.l2n(n):n;for(let t=i;t<=a;t++)Jx(e,t);return e}function Kx(e,t){return Yx(e,t),e}function qx(e,t,n){let r=iS(e);if(!r||r.top===void 0)return e;let i=t??r.top,a=n??r.bottom;for(let t=i;t<=a;t++)Yx(e,t);return e}function Jx(e,t){let n=il(),r=Zx(e,t),i=0;if(e._rows.forEach(r=>{if(!r||Wa(r))return;let a=Aa(r,t);if(!a||Si(a)===k.ValueType.Merge)return;if(Li(a)){let t=e._merges[a.address];if(t&&t.left!==t.right)return}if(li(a)?.shrinkToFit)return;let o=kne(Ki(a)),s=li(a)?.indent;s&&s>0&&(o+=s*3*n),o>i&&(i=o)}),i>0){let a=wne(i,n,r);if(a>0){let n=ao(e,t);n.width=a,n.bestFit=!0}}}function Yx(e,t){let n=e._rows[t-1];if(!n)return;let r=il(),i=0;jo(n,t=>{if(Si(t)===k.ValueType.Merge)return;if(Li(t)){let n=e._merges[t.address];if(n&&n.top!==n.bottom)return}if(e._columns[xi(t)-1]?.hidden)return;let n=Xx(e,t,r),a=Ane(Ki(t),r,n);a>i&&(i=a)}),i>0&&(n.height=Math.ceil(i*4)/4,n.customHeight=!0)}function Xx(e,t,n){return li(t)?.wrapText?One(e._columns[xi(t)-1]?.width??e.properties.defaultColWidth??9,n):void 0}function Zx(e,t){if(!e.autoFilter)return!1;if(typeof e.autoFilter==`string`){let n=D.decode(e.autoFilter);return t>=n.left&&t<=n.right}let{from:n,to:r}=e.autoFilter,i=typeof n==`string`?D.decode(n).col:n.col,a=typeof r==`string`?D.decode(r).col:r.col;return t>=i&&t<=a}function Qx(e,t){e._rows=[],t.rows&&t.rows.forEach(t=>{let n=ka(e,t.number);e._rows[n.number-1]=n,Ao(n,t)})}function $x(e,t){t.mergeCells&&t.mergeCells.forEach(t=>{jb(e,t)})}function eS(e,t){let n=t||{},r=1,i=dS(e),a=1,o=cS(e);if(n.range!==void 0){if(typeof n.range==`number`)r=n.range+1;else if(typeof n.range==`string`){let e=zs(n.range);r=e.s.r+1,i=e.e.r+1,a=e.s.c+1,o=e.e.c+1}}if(i<r||o<a)return[];let s=(t,n)=>{let r=mo(e,t,n);return r?wi(r):null},c=(t,r)=>{if(n.raw!==!1)return s(t,r);let i=mo(e,t,r);return i?Pr(Ki(i),n.dateFormat).trim():null},l=n.header;if(l===1){let e=[],t=n.blankRows!==!1;for(let s=r;s<=i;s++){let r=[],i=!0;for(let e=a;e<=o;e++){let t=c(s,e);t!=null&&t!==``?(r[e-a]=t,i=!1):n.defaultValue===void 0?r[e-a]=null:r[e-a]=n.defaultValue}(!i||t)&&e.push(r)}return e}if(l===`A`){let e=[],t=n.blankRows===!0;for(let s=r;s<=i;s++){let r={},i=!0;for(let e=a;e<=o;e++){let t=c(s,e),a=Ps(e-1);t!=null&&t!==``?(r[a]=t,i=!1):n.defaultValue!==void 0&&(r[a]=n.defaultValue)}(!i||t)&&e.push(r)}return e}if(Array.isArray(l)){let e=[],t=n.blankRows===!0;for(let s=r;s<=i;s++){let r={},i=!0;for(let e=a;e<=o;e++){let t=e-a,o=l[t]??`__EMPTY_${t}`,u=c(s,e);u!=null&&u!==``?(r[o]=u,i=!1):n.defaultValue!==void 0&&(r[o]=n.defaultValue)}(!i||t)&&e.push(r)}return e}let u=[],d={};for(let e=a;e<=o;e++){let t=s(r,e),n=t==null?`__EMPTY_${e-a}`:String(t);d[n]===void 0?d[n]=0:(d[n]++,n=`${n}_${d[n]}`),u.push(n)}let f=[],p=r+1,m=n.blankRows===!0;for(let e=p;e<=i;e++){let t={},r=!0;for(let i=a;i<=o;i++){let o=c(e,i),s=u[i-a];o!=null&&o!==``?(t[s]=o,r=!1):n.defaultValue!==void 0&&(t[s]=n.defaultValue)}(!r||m)&&f.push(t)}return f}function tS(e,t,n){if(t.length===0)return e;let r=n||{},i=1,a=1;if(r.origin!==void 0){let t=vS(r.origin,dS(e));i=t.row,a=t.col}let o=new Set;t.forEach(e=>Object.keys(e).forEach(e=>o.add(e)));let s=r.header?[...r.header]:[...o];r.header&&o.forEach(e=>{s.includes(e)||s.push(e)});let c=i;r.skipHeader||(s.forEach((t,n)=>{Oi(ho(e,c,a+n),t)}),c++);for(let n of t)s.forEach((t,i)=>{let o=n[t];o===null&&r.nullError?Oi(ho(e,c,a+i),{error:`#NULL!`}):o!=null&&Oi(ho(e,c,a+i),o)}),c++;return e}function nS(e){let t=[];for(let n=0;n<e._rows.length;n++){let r=e._rows[n];if(!r){t[n]=[];continue}let i=[];for(let e=0;e<r.cells.length;e++){let t=r.cells[e];i[e]=t?wi(t):null}t[n]=i}return t}function rS(e,t,n){if(t.length===0)return e;let r=1,i=1;if(n?.origin!==void 0){let t=vS(n.origin,dS(e));r=t.row,i=t.col}return t.forEach((t,n)=>{t&&t.forEach((t,a)=>{t!=null&&Oi(ho(e,r+n,i+a),t)})}),e}function iS(e){let t=De();return e._rows.forEach(e=>{if(e){let n=Ia(e);n&&Me(t,e.number,n.min,e.number,n.max)}}),t}function aS(e){return e._columns}function oS(e){return e._columns.map(_a)}function sS(e){return ao(e,cS(e))}function cS(e){let t=0;return fo(e,e=>{t=Math.max(t,Fa(e))}),t}function lS(e){let t=[],n=0;return fo(e,e=>{jo(e,(e,r)=>{t[r]||(t[r]=!0,n++)})}),n}function uS(e){if(e._rows.length)return e._rows[e._rows.length-1]}function dS(e){return Po(e)}function fS(e){let t=0;return fo(e,()=>{t++}),t}function pS(e){return Object.values(e._merges).some(Boolean)}function mS(e){return Object.values(e._merges).map(e=>({top:e.top,left:e.left,bottom:e.bottom,right:e.right}))}function hS(e){let t={id:e.id,name:$a(e),orderNo:e.orderNo,retainedComments:e._retainedComments,styledBlankRanges:e._styledBlankRanges,dataValidations:e.dataValidations.model,properties:e.properties,state:e.state,pageSetup:e.pageSetup,headerFooter:e.headerFooter,rowBreaks:e.rowBreaks,colBreaks:e.colBreaks,views:e.views,autoFilter:e.autoFilter,autoFilterCriteria:e._autoFilterCriteria,sortStateXml:e._sortStateXml,opaqueRels:e._opaqueRels,chartsheetPlaceholder:e._chartsheetPlaceholder,xlsbDrawingRelationshipId:e._xlsbDrawingRelationshipId,worksheetNamespaceAttributes:e._worksheetNamespaceAttributes,worksheetMcIgnorable:e._worksheetMcIgnorable,sortStateAutoFilterRef:e._sortStateAutoFilterRef,media:e._media.map(e=>$h(e)),shapes:e._shapes.map(t=>Vb(e,t)),sheetProtection:e.sheetProtection,tables:Object.values(e.tables).map(e=>os(e)),pivotTables:e.pivotTables,conditionalFormattings:e.conditionalFormattings,formControls:e.formControls.map(e=>e.model),ignoredErrors:e.ignoredErrors,watermark:e._watermark,drawing:e._drawing,charts:e._charts.map(e=>({chartNumber:e.chartNumber,chartExNumber:e.chartExNumber,range:{tl:{nativeCol:e.range.tl.nativeCol,nativeColOff:e.range.tl.nativeColOff,nativeRow:e.range.tl.nativeRow,nativeRowOff:e.range.tl.nativeRowOff},br:e.range.br?{nativeCol:e.range.br.nativeCol,nativeColOff:e.range.br.nativeColOff,nativeRow:e.range.br.nativeRow,nativeRowOff:e.range.br.nativeRowOff}:void 0,editAs:e.range.editAs,pos:e.range.pos,ext:e.range.ext}})),sparklineGroups:e._sparklineGroups,threadedComments:e.threadedComments};t.cols=wa(e._columns);let n=t.rows=[],r=t.dimensions=De();return(e._rows??[]).forEach(e=>{let t=e&&Ya(e);t&&(Me(r,t.number,t.min,t.number,t.max),n.push(t))}),t.mergeCells=Object.values(e._merges).map(e=>ze(e)),t}function gS(e,t){t===void 0&&(t=`sheet${e.id}`),e._name!==t&&(e._name=Qf(e._workbook,t,e))}function Une(e,t){e._headerRowCount=t.reduce((e,t)=>{let n=Array.isArray(t.header)?t.header.length:+!!t.header;return Math.max(e,n)},0);let n=1,r=e._columns=[];t.forEach(t=>{let i=wo(e,n++,!1);r.push(i),To(i,t)})}function _S(e,t){t.styledBlankRanges!==void 0&&(e._styledBlankRanges=t.styledBlankRanges),gS(e,t.name),e.state=t.state,e._columns=Do(e,t.cols??[]),Qx(e,t),$x(e,t),e.dataValidations=le(t.dataValidations),e.properties=t.properties,e.pageSetup=t.pageSetup;let n=t.headerFooter??{};if(e.headerFooter={differentFirst:n.differentFirst??!1,differentOddEven:n.differentOddEven??!1,scaleWithDoc:n.scaleWithDoc??!0,alignWithMargins:n.alignWithMargins??!0,oddHeader:n.oddHeader??null,oddFooter:n.oddFooter??null,evenHeader:n.evenHeader??null,evenFooter:n.evenFooter??null,firstHeader:n.firstHeader??null,firstFooter:n.firstFooter??null},e.rowBreaks=t.rowBreaks??[],e.colBreaks=t.colBreaks??[],e.views=t.views,e.autoFilter=t.autoFilter,e._autoFilterCriteria=t.autoFilterCriteria,e._sortStateXml=t.sortStateXml,e._opaqueRels=t.opaqueRels,e._chartsheetPlaceholder=t.chartsheetPlaceholder,e._xlsbDrawingRelationshipId=t.xlsbDrawingRelationshipId,e._worksheetNamespaceAttributes=t.worksheetNamespaceAttributes,e._worksheetMcIgnorable=t.worksheetMcIgnorable,e._sortStateAutoFilterRef=t.sortStateAutoFilterRef,e._media=t.media.map(t=>Qh(e,t)),e._shapes=t.shapes?t.shapes.slice():[],e._watermark=t.watermark??null,e._watermarkMedia=null,!e._watermark){for(let t of e._media)if(t.type===`watermark`){e._watermark={imageId:t.imageId??``,mode:`overlay`,opacity:t.opacity};break}}e.sheetProtection=t.sheetProtection,e.tables=t.tables.reduce((t,n)=>{let r=Qo(e,n);return ss(r,n),t[n.name]=r,eo(e)._tableNames.add(n.name.toLowerCase()),t},{}),e.pivotTables=t.pivotTables;for(let t of e.pivotTables??[])t.worksheetName??=$a(e),t.name??=`PivotTable${t.tableNumber}`;e.conditionalFormattings=t.conditionalFormattings,e.ignoredErrors=t.ignoredErrors??[],e.threadedComments=t.threadedComments??[],e._sparklineGroups=t.sparklineGroups?[...t.sparklineGroups]:[],e.formControls=(t.formControls??[]).map(t=>Lh(e,t)),e._drawing=t.drawing,e._charts=t.charts&&t.charts.length>0?t.charts.map(t=>bm(e,{chartNumber:t.chartNumber,chartExNumber:t.chartExNumber},t.range)):t.drawing?.anchors?t.drawing.anchors.filter(e=>e.chartNumber||e.chartExNumber).map(t=>bm(e,{chartNumber:t.chartNumber??0,chartExNumber:t.chartExNumber??0},t.range)):[]}function vS(e,t){if(typeof e==`string`){let t=Ls(e);return{row:t.r+1,col:t.c+1}}return typeof e==`number`?e===-1?{row:t+1,col:1}:{row:e+1,col:1}:{row:e.r+1,col:e.c+1}}var yS=n((()=>{lc(),Kd(),Xd(),Eh(),Mh(),ha(),Da(),Ce(),Kt(),Qt(),Zh(),ng(),cg(),Og(),qe(),Qa(),y_(),Ms(),sp(),Yo(),E(),Hs(),Hr(),O(),qr(),Ly(),By(),_b(),jne()})),Wne=r({actualColumnCount:()=>lS,actualRowCount:()=>fS,addAoa:()=>rS,addConditionalFormatting:()=>Hx,addJson:()=>tS,addRow:()=>Ro,addRows:()=>zo,autoFilter:()=>qo,autoFitColumn:()=>Wx,autoFitColumns:()=>Gx,autoFitRow:()=>Kx,autoFitRows:()=>qx,columnCount:()=>cS,columnDefinitions:()=>oS,columns:()=>aS,destroy:()=>Db,dimensions:()=>iS,duplicateRow:()=>Fne,eachRow:()=>fo,fillFormula:()=>Lb,findRow:()=>so,findRows:()=>co,freeze:()=>Ho,getModel:()=>hS,getName:()=>$a,getRow:()=>lo,getRows:()=>uo,getValues:()=>po,hasMerges:()=>pS,insertRow:()=>Nne,insertRows:()=>Pne,lastColumn:()=>sS,lastRow:()=>uS,merge:()=>Ab,mergeWithoutStyle:()=>jb,mergedRegions:()=>mS,panes:()=>Go,protect:()=>Ix,removeConditionalFormatting:()=>Ux,rowCount:()=>dS,setAutoFilter:()=>Ko,setColumns:()=>Une,setModel:()=>_S,setName:()=>gS,spliceColumns:()=>Mne,spliceRows:()=>Ob,split:()=>Uo,toAoa:()=>nS,toJson:()=>eS,unfreeze:()=>Wo,unmerge:()=>Ib,unprotect:()=>Lx,verifyPassword:()=>Rx}),bS=n((()=>{yS(),Yo()})),Gne=r({addName:()=>ure,applyCellStyle:()=>rre,find:()=>IS,getAlignment:()=>Cre,getBorder:()=>ES,getComment:()=>MS,getDateKind:()=>Jne,getDateParts:()=>Kne,getDisplayText:()=>Zne,getEffectiveType:()=>$ne,getFill:()=>OS,getFont:()=>yre,getFormula:()=>ere,getFullAddress:()=>FS,getHyperlink:()=>ore,getMergeMaster:()=>are,getModel:()=>_re,getNames:()=>lre,getNote:()=>sre,getNumFmt:()=>xre,getProtection:()=>AS,getResult:()=>tre,getStyle:()=>nre,getTemporal:()=>Yne,getText:()=>Xne,getType:()=>Qne,getValidation:()=>hre,getValue:()=>CS,isMerged:()=>ire,removeAllNames:()=>mre,removeName:()=>dre,setAlignment:()=>wre,setBorder:()=>DS,setComment:()=>NS,setDateParts:()=>qne,setFill:()=>kS,setFont:()=>bre,setModel:()=>vre,setName:()=>fre,setNames:()=>pre,setNote:()=>cre,setNumFmt:()=>Sre,setProtection:()=>jS,setResult:()=>PS,setStyle:()=>TS,setValidation:()=>gre,setValue:()=>wS,view:()=>LS});function xS(e,t,n,r){return r>=3?ho(e,t,n):ho(e,t)}function SS(e,t,n,r,i){return i>=4?[ho(e,t,n),r]:[ho(e,t),n]}function CS(e,t,n){return wi(xS(e,t,n,arguments.length))}function wS(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);Oi(i,a)}function Kne(e,t,n){return Mi(xS(e,t,n,arguments.length))}function qne(e,t,n,r,i){if(typeof n==`number`){ji(ho(e,t,n),r,i);return}ji(ho(e,t),n,r)}function Jne(e,t,n){return Ni(xS(e,t,n,arguments.length))}function Yne(e,t,n,r){return typeof n==`number`?Pi(ho(e,t,n),r):Pi(ho(e,t),n)}function Xne(e,t,n){return bee(xS(e,t,n,arguments.length))}function Zne(e,t,n){return xee(xS(e,t,n,arguments.length))}function Qne(e,t,n){return Si(xS(e,t,n,arguments.length))}function $ne(e,t,n){return Ci(xS(e,t,n,arguments.length))}function ere(e,t,n){return qi(xS(e,t,n,arguments.length))}function tre(e,t,n){return Ji(xS(e,t,n,arguments.length))}function nre(e,t,n){return _i(xS(e,t,n,arguments.length))}function TS(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);vi(i,a)}function rre(e,t,n,r){let i=arguments.length>=4?r:n;if(!Bf(eo(e),i))throw new h(`Named cell style "${i}" is not defined. Define it first with Workbook.defineCellStyle().`);if(arguments.length>=4){vi(ho(e,t,n),{styleName:i});return}vi(ho(e,t),{styleName:i})}function ire(e,t,n){return Li(xS(e,t,n,arguments.length))}function are(e,t,n){return Bi(xS(e,t,n,arguments.length))}function ore(e,t,n){return Vi(xS(e,t,n,arguments.length))}function sre(e,t,n){return Hi(xS(e,t,n,arguments.length))}function cre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);Ui(i,a)}function lre(e,t,n){return wee(xS(e,t,n,arguments.length))}function ure(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);Tee(i,a)}function dre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);Eee(i,a)}function fre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);Cee(i,a)}function pre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);Xi(i,a)}function mre(e,t,n){Dee(xS(e,t,n,arguments.length))}function hre(e,t,n){return Oee(xS(e,t,n,arguments.length))}function gre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);kee(i,a)}function _re(e,t,n){return Zi(xS(e,t,n,arguments.length))}function vre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);Qi(i,a)}function yre(e,t,n){return si(xS(e,t,n,arguments.length))}function bre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);ci(i,a)}function xre(e,t,n){return ai(xS(e,t,n,arguments.length))}function Sre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);oi(i,a)}function Cre(e,t,n){return li(xS(e,t,n,arguments.length))}function wre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);ui(i,a)}function ES(e,t,n){return di(xS(e,t,n,arguments.length))}function DS(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);fi(i,a)}function OS(e,t,n){return pi(xS(e,t,n,arguments.length))}function kS(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);mi(i,a)}function AS(e,t,n){return hi(xS(e,t,n,arguments.length))}function jS(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);gi(i,a)}function MS(e,t,n){return Wi(xS(e,t,n,arguments.length))}function NS(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);Gi(i,a)}function PS(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);See(i,a)}function FS(e,t,n){return Yi(xS(e,t,n,arguments.length))}function IS(e,t,n){return arguments.length>=3?mo(e,t,n):mo(e,t)}function LS(e){return Ki(e)}var RS=n((()=>{ha(),sp(),Yo(),E()})),zS=r({addPageBreak:()=>aC,commit:()=>iC,eachCell:()=>rC,getCell:()=>nC,getHeight:()=>BS,getHidden:()=>HS,getOutlineLevel:()=>WS,getStyle:()=>KS,getValues:()=>JS,setAlignment:()=>$S,setBorder:()=>eC,setFill:()=>tC,setFont:()=>QS,setHeight:()=>VS,setHidden:()=>US,setNumFmt:()=>ZS,setOutlineLevel:()=>GS,setStyle:()=>qS,setValues:()=>YS,values:()=>XS});function BS(e,t){return lo(e,t).height}function VS(e,t,n){let r=lo(e,t);r.height=n,r.customHeight=!0}function HS(e,t){return Wa(lo(e,t))}function US(e,t,n){Ga(lo(e,t),n)}function WS(e,t){return Ka(lo(e,t))}function GS(e,t,n){qa(lo(e,t),n)}function KS(e,t){return Ha(lo(e,t))}function qS(e,t,n){Ua(lo(e,t),n)}function JS(e,t){return Na(lo(e,t))}function YS(e,t,n){yo(lo(e,t),n)}function XS(e,t){return Ma(lo(e,t))}function ZS(e,t,n){La(lo(e,t),n)}function QS(e,t,n){Ra(lo(e,t),n)}function $S(e,t,n){za(lo(e,t),n)}function eC(e,t,n){Ba(lo(e,t),n)}function tC(e,t,n){Va(lo(e,t),n)}function nC(e,t,n){return vo(lo(e,t),n)}function rC(e,t,n,r){jo(lo(e,t),n,r)}function iC(e,t){No(lo(e,t))}function aC(e,t){ja(lo(e,t))}var oC=n((()=>{Qa(),Yo()})),sC=r({addPageBreak:()=>wC,getDefinition:()=>CC,getHeader:()=>fC,getHidden:()=>gC,getKey:()=>mC,getLetter:()=>lC,getNumber:()=>cC,getOutlineLevel:()=>vC,getStyle:()=>bC,getWidth:()=>uC,setHeader:()=>pC,setHidden:()=>_C,setKey:()=>hC,setNumFmt:()=>SC,setOutlineLevel:()=>yC,setStyle:()=>xC,setWidth:()=>dC});function cC(e,t){return ao(e,t).number}function lC(e,t){return jee(ao(e,t))}function uC(e,t){return ao(e,t).width}function dC(e,t,n){ao(e,t).width=n}function fC(e,t){return ao(e,t).header}function pC(e,t,n){Eo(ao(e,t),n)}function mC(e,t){return ao(e,t).key}function hC(e,t,n){bo(ao(e,t),n)}function gC(e,t){return va(ao(e,t))}function _C(e,t,n){Nee(ao(e,t),n)}function vC(e,t){return ya(ao(e,t))}function yC(e,t,n){Pee(ao(e,t),n)}function bC(e,t){return ao(e,t).style}function xC(e,t,n){ko(ao(e,t),n)}function SC(e,t,n){Oo(ao(e,t),n)}function CC(e,t){return _a(ao(e,t))}function wC(e,t){Ca(ao(e,t))}var TC=n((()=>{Da(),Yo()})),EC=r({contains:()=>We,containsCell:()=>Ge,count:()=>Ve,create:()=>De,expand:()=>Me,expandToAddress:()=>Pe,forEachAddress:()=>Ke,getValues:()=>go,intersects:()=>Ue,toString:()=>He});qe(),Yo(),a_();let DC={r:0,g:0,b:0,a:1};function V(e){return Zg(e)??DC}function OC(e,t){return{...V(e),a:t}}xc(),Du();let kC=`#444`,AC=`#555`,jC=`#fff`;function MC(e){return{fill:V(e)}}function NC(e){return{fill:V(e),stroke:V(jC),strokeWidth:1}}function PC(e,t=1){return{stroke:V(e),strokeWidth:t}}function FC(e,t,n,r,i){return{kind:`polyline`,points:[{x:e,y:t},{x:n,y:r}],paint:i}}function IC(e,t,n,r,i,a){return{kind:`text`,x:e,y:t,lines:[{text:n,dy:0}],style:{size:r,fill:V(i),anchor:a,family:`Arial`}}}function LC(e,t){return{kind:`polyline`,points:e,closed:!0,paint:t}}function RC(e,t){let n=[];for(let r=1;r<5;r++){let i=r/5,a=e.y+e.height*i;n.push(FC(e.x,a,e.x+e.width,a,PC(`#D9D9D9`)));let o=t.max+(t.min-t.max)*i;n.push(IC(e.x-8,a+3,au(o),10,AC,`end`))}n.push(FC(e.x,e.y+e.height,e.x+e.width,e.y+e.height,PC(kC))),n.push(FC(e.x,e.y,e.x,e.y+e.height,PC(kC)));for(let r of[t.max,t.min])n.push(IC(e.x-8,eu(r,t.min,t.max,e)+3,au(r),10,AC,`end`));return n}function zC(e,t,n,r,i){let a=[...RC(n,i)],o=Math.max(1,e.length),s=n.width/o,c=eu(0,i.min,i.max,n);return e.forEach((e,o)=>{let l=eu(e,i.min,i.max,n);a.push(vc({x:n.x+o*s+s*.18,y:Math.min(l,c),width:s*.64,height:Math.abs(c-l)},MC(r))),a.push(IC(n.x+o*s+s/2,n.y+n.height+18,t[o]??String(o+1),10,AC,`middle`))}),a}function BC(e){let t=[];for(let n of e)t.push(vc(n.rect,NC(n.color))),n.label&&t.push(IC(n.rect.x+4,n.rect.y+14,n.label,10,jC,`start`));return t}function VC(e,t,n,r,i,a,o){return{kind:`sector`,cx:e,cy:t,radius:n,innerRadius:r,startAngle:i,endAngle:a,paint:NC(o)}}function HC(e){return e.map(e=>VC(e.cx,e.cy,e.outer,e.inner,e.start,e.end,e.color))}function UC(e,t,n,r){let i=e.reduce((e,t)=>Number.isFinite(t)?Math.max(e,Math.abs(t)):e,0),a=i>0?i:1,o=Math.max(1,e.length),s=t.height/o,c=[];return e.forEach((i,o)=>{let l=Number.isFinite(i)?Math.abs(i):0,u=e[o+1],d=Number.isFinite(u)?Math.abs(u):l,f=l/a*t.width,p=d/a*t.width,m=t.y+o*s,h=t.x+t.width/2;c.push(LC([{x:h-f/2,y:m},{x:h+f/2,y:m},{x:h+p/2,y:m+s*.88},{x:h-p/2,y:m+s*.88}],NC(n(o))));let g=r(o,i);g!==void 0&&c.push(IC(h,m+s*.55,g,11,jC,`middle`))}),c}function WC(e){return yu[e%yu.length]}function GC(e,t,n,r){let i=[...RC(n,r)],a=Math.max(1,e.length),o=n.width/a,s=o*.64;return e.forEach((e,a)=>{let c=eu(e.start,r.min,r.max,n),l=eu(e.end,r.min,r.max,n),u=n.x+a*o+o*.18,d=e.gap?0:Math.max(1,Math.abs(c-l));i.push(vc({x:u,y:Math.min(c,l),width:s,height:d},MC(e.colour))),i.push(IC(n.x+a*o+o/2,n.y+n.height+18,t[a]??String(a+1),10,AC,`middle`))}),i}function KC(e,t,n){let r=Math.max(1,e.length),i=t.width/r,a=i*.64,o=e.map((e,r)=>({x:t.x+r*i+i*.18+a,y:eu(e.end,n.min,n.max,t)})),s=[];for(let e=0;e<o.length-1;e++)s.push(FC(o[e].x,o[e].y,o[e+1].x-a,o[e].y,{stroke:V(`#888`),strokeWidth:1,dash:[3,3]}));return s}function qC(e,t){let n=e.reduce((e,t)=>e+(Number.isFinite(t)?Math.max(0,t):0),0);if(!(n>0))return[];let r=Math.max(1,e.length),i=t.width/r,a=0,o=e.map((e,r)=>(a+=Number.isFinite(e)?Math.max(0,e):0,{x:t.x+r*i+i/2,y:t.y+t.height-a/n*t.height})),s=WC(1);return[{kind:`polyline`,points:o,paint:PC(s,2)},...o.map(e=>({kind:`ellipse`,cx:e.x,cy:e.y,rx:3,ry:3,paint:MC(s)})),IC(t.x+t.width-4,t.y+12,`Cumulative %`,10,s,`end`)]}function JC(e,t,n,r){let i=[...RC(t,n)],a=t.width/Math.max(1,e.length),o=e=>eu(e,n.min,n.max,t);return e.forEach(({key:e,stats:n},s)=>{let c=t.x+s*a+a/2,l=a*.38,u=WC(s),d=o(n.q1),f=o(n.q3);i.push(FC(c,o(n.high),c,o(n.low),PC(AC))),i.push(vc({x:c-l/2,y:Math.min(d,f),width:l,height:Math.abs(f-d)},{fill:OC(u,.35),stroke:V(u),strokeWidth:1}));let p=o(n.median);if(i.push(FC(c-l/2,p,c+l/2,p,PC(`#333`))),r.showMeanMarker&&i.push({kind:`ellipse`,cx:c,cy:o(n.mean),rx:3,ry:3,paint:MC(`#333`)}),r.showMeanLine){let e=o(n.mean);i.push(FC(c-l/2,e,c+l/2,e,{stroke:V(`#333`),strokeWidth:1,dash:[3,2]}))}if(r.showInnerPoints)for(let e of n.nonOutliers)i.push({kind:`ellipse`,cx:c-l*.62,cy:o(e),rx:1.6,ry:1.6,paint:{fill:OC(u,.55)}});if(r.showOutlierPoints)for(let e of n.outliers)i.push({kind:`ellipse`,cx:c+l*.62,cy:o(e),rx:2,ry:2,paint:PC(`#333`)});i.push(IC(c,t.y+t.height+18,e,10,AC,`middle`))}),i}function YC(e,t,n){return Array.from({length:6},(r,i)=>{let a=Math.PI/6+Math.PI*2*i/6;return{x:e+Math.cos(a)*n,y:t+Math.sin(a)*n}})}function XC(e,t,n,r,i,a,o){return{kind:`text`,x:e,y:t,lines:n.map((e,t)=>({text:e,dy:t*o})),style:{size:r,fill:V(i),anchor:a,family:`Arial`}}}function ZC(e,t,n=0){let r=e.length,i=t.length;if(i===0)return 0;if(i>r)return-1;let a=n|0;if(a<0&&(a=0),a>r-i)return-1;if(i===1)return e.indexOf(t[0],a);if(i===2){let n=t[0],i=t[1],o=r-2,s=e.indexOf(n,a);for(;s!==-1&&s<=o;){if(e[s+1]===i)return s;s=e.indexOf(n,s+1)}return-1}if(i===3){let n=t[0],i=t[1],o=t[2],s=r-3,c=e.indexOf(n,a);for(;c!==-1&&c<=s;){if(e[c+1]===i&&e[c+2]===o)return c;c=e.indexOf(n,c+1)}return-1}if(i===4){let n=t[0],i=t[1],o=t[2],s=t[3],c=r-4,l=e.indexOf(n,a);for(;l!==-1&&l<=c;){if(e[l+1]===i&&e[l+2]===o&&e[l+3]===s)return l;l=e.indexOf(n,l+1)}return-1}for(let n=a;n<=r-i;n++){let r=!0;for(let a=0;a<i;a++)if(e[n+a]!==t[a]){r=!1;break}if(r)return n}return-1}var QC,$C=n((()=>{QC=new Uint8Array})),ew,tw=n((()=>{$C(),ew=class{_activeChunkCount(){return this._chunks.length-this._chunkHead}_headChunk(){return this._chunks[this._chunkHead]}_compactConsumedChunks(){if(this._chunkHead!==0){if(this._chunkHead>=this._chunks.length){this._chunks=[],this._chunkHead=0;return}this._chunkHead>32&&this._chunkHead*2>=this._chunks.length&&(this._chunks=this._chunks.slice(this._chunkHead),this._chunkHead=0)}}_dropHeadChunk(){this._chunkHead++,this._headOffset=0,this._compactConsumedChunks()}constructor(e){this._chunks=[],this._chunkHead=0,this._headOffset=0,this._length=0,this._cachedView=null,this._cachedLength=0,e&&e.length>0&&this.reset(e)}get length(){return this._length}isEmpty(){return this.length===0}view(){if(this._length===0)return QC;if(this._activeChunkCount()===1)return this._headChunk().subarray(this._headOffset,this._headOffset+this._length);if(this._cachedView&&this._cachedLength===this._length)return this._cachedView;let e=new Uint8Array(this._length),t=0;for(let n=this._chunkHead;n<this._chunks.length;n++){let r=this._chunks[n],i=n===this._chunkHead?this._headOffset:0,a=n===this._chunks.length-1?i+(this._length-t):r.length;if(e.set(r.subarray(i,a),t),t+=a-i,t>=e.length)break}return this._cachedView=e,this._cachedLength=this._length,e}reset(e){if(this._cachedView=null,this._cachedLength=0,this._chunks=[],this._chunkHead=0,this._headOffset=0,this._length=0,!e||e.length===0)return;let t=new Uint8Array(e.length);t.set(e),this._chunks=[t],this._chunkHead=0,this._headOffset=0,this._length=t.length}append(e){e.length!==0&&(this._cachedView=null,this._cachedLength=0,this._chunks.push(e),this._length+=e.length)}read(e){if(e<=0)return QC;if(e>this._length)throw RangeError(`ByteQueue: read beyond available data`);if(this._cachedView=null,this._cachedLength=0,this._activeChunkCount()===1){let t=this._headChunk(),n=this._headOffset,r=n+e,i=t.subarray(n,r);return this._headOffset=r,this._length-=e,this._length===0?(this._chunks=[],this._chunkHead=0,this._headOffset=0):this._headOffset>=t.length&&this._dropHeadChunk(),i}let t=new Uint8Array(e),n=0,r=e;for(;r>0;){let e=this._headChunk(),i=this._headOffset,a=e.length-i,o=Math.min(a,r);t.set(e.subarray(i,i+o),n),n+=o,r-=o,this._headOffset+=o,this._length-=o,this._headOffset>=e.length&&this._dropHeadChunk()}return this._length===0&&(this._chunks=[],this._chunkHead=0,this._headOffset=0),t}peekChunks(e){if(e<=0)return[];if(e>this._length)throw RangeError(`ByteQueue: peek beyond available data`);if(this._activeChunkCount()===1){let t=this._headChunk(),n=this._headOffset;return[t.subarray(n,n+e)]}let t=[],n=e;for(let e=this._chunkHead;e<this._chunks.length&&n>0;e++){let r=this._chunks[e],i=e===this._chunkHead?this._headOffset:0,a=r.length-i;if(a<=0)continue;let o=Math.min(a,n);t.push(r.subarray(i,i+o)),n-=o}return t}discard(e){if(e<=0)return;if(e>=this._length){this._chunks=[],this._chunkHead=0,this._headOffset=0,this._length=0,this._cachedView=null,this._cachedLength=0;return}this._cachedView=null,this._cachedLength=0;let t=e;for(;t>0;){let e=this._headChunk(),n=this._headOffset,r=e.length-n,i=Math.min(r,t);this._headOffset+=i,this._length-=i,t-=i,this._headOffset>=e.length&&this._dropHeadChunk()}this._length===0&&(this._chunks=[],this._chunkHead=0,this._headOffset=0)}indexOfPattern(e,t=0){let n=e.length;if(n===0)return 0;let r=this._length;if(n>r)return-1;let i=t|0;if(i<0&&(i=0),i>r-n)return-1;if(this._activeChunkCount()===1){let t=this._headChunk(),a=this._headOffset,o=t.subarray(a,a+r);return n===1?o.indexOf(e[0],i):ZC(o,e,i)}if(n>4)return ZC(this.view(),e,i);let a=e[0],o=n>=2?e[1]:0,s=n>=3?e[2]:0,c=n>=4?e[3]:0,l=this._chunks,u=this._chunkHead,d=(e,t)=>{let n=e,r=t;for(;n<l.length;){let e=l[n];if(r<e.length)return e[r]|0;r-=e.length,n++}return null},f=0;for(let e=u;e<l.length;e++){let t=l[e],p=e===u?this._headOffset:0,m=t.length-p;if(m<=0)continue;let h=f,g=h+m,_=i<=h?p:i>=g?t.length:p+(i-h);if(_>t.length-1){f+=m;continue}let v=t.length-1,y=t.indexOf(a,_);for(;y!==-1&&y<=v;){let i=h+(y-p);if(i>r-n)return-1;if(n===1)return i;if(y+n<=t.length){if(t[y+1]!==o){y=t.indexOf(a,y+1);continue}if(n===2)return i;if(t[y+2]!==s){y=t.indexOf(a,y+1);continue}if(n===3)return i;if(t[y+3]!==c){y=t.indexOf(a,y+1);continue}return i}let l=d(e,y+1);if(l===null||l!==o){y=t.indexOf(a,y+1);continue}if(n===2)return i;let u=d(e,y+2);if(u===null||u!==s){y=t.indexOf(a,y+1);continue}if(n===3)return i;let f=d(e,y+3);if(f===null||f!==c){y=t.indexOf(a,y+1);continue}return i}f+=m}return-1}peekUint32LE(e){let t=e|0;if(t<0||t+4>this._length)return null;let n=this._chunks,r=t;for(let e=this._chunkHead;e<n.length;e++){let t=n[e],i=e===this._chunkHead?this._headOffset:0,a=t.length-i;if(r<a){let a=i+r;if(a+4<=t.length){let e=t[a]|0,n=t[a+1]|0,r=t[a+2]|0,i=t[a+3]|0;return(e|n<<8|r<<16|i<<24)>>>0}let o=t[a]|0,s=0,c=0,l=0,u=e,d=a+1;for(let e=1;e<4;e++)for(;u<n.length;){let t=n[u];if(d<t.length){let n=t[d]|0;e===1?s=n:e===2?c=n:l=n,d++;break}u++,d=0}return(o|s<<8|c<<16|l<<24)>>>0}r-=a}return null}peekByte(e){let t=e|0;if(t<0||t>=this._length)throw RangeError(`ByteQueue: peek beyond available data`);let n=t;for(let e=this._chunkHead;e<this._chunks.length;e++){let t=this._chunks[e],r=e===this._chunkHead?this._headOffset:0,i=t.length-r;if(n<i)return t[r+n]|0;n-=i}throw RangeError(`ByteQueue: peek beyond available data`)}}})),H,nw,rw,iw,aw,ow,sw,cw,lw,uw=n((()=>{f(),H=class extends u{constructor(e,t){super(e,t),this.name=`ArchiveError`}},nw=class extends H{constructor(...e){super(...e),this.name=`ZipParseError`}},rw=class extends nw{constructor(e){super(`Invalid ZIP file: End of Central Directory not found`,e),this.name=`EocdNotFoundError`}},iw=class extends H{constructor(e,t,n,r){super(`CRC32 mismatch for "${e}": expected 0x${t.toString(16).padStart(8,`0`)}, got 0x${n.toString(16).padStart(8,`0`)}`,r),this.path=e,this.expected=t,this.actual=n,this.name=`Crc32MismatchError`}},aw=class extends H{constructor(e,t,n,r,i){let a=r===`too-many-bytes`?`Entry "${e}" produced more bytes than declared: expected ${t}, got at least ${n}`:`Entry "${e}" produced fewer bytes than declared: expected ${t}, got ${n}`;super(a,i),this.path=e,this.expected=t,this.actual=n,this.reason=r,this.name=`EntrySizeMismatchError`}isZipBomb(){return this.reason===`too-many-bytes`}isCorruption(){return this.reason===`too-few-bytes`}},ow=class extends H{constructor(e,t,n){super(t?`Failed to decrypt "${e}": ${t}`:`Failed to decrypt "${e}": incorrect password or corrupted data`,n),this.name=`DecryptionError`}},sw=class extends H{constructor(e,t){super(`File "${e}" is encrypted. Please provide a password to extract.`,t),this.name=`PasswordRequiredError`}},cw=class extends H{constructor(e,t,n){super(`File "${e}" is too large to extract into memory (${t})`,n),this.name=`FileTooLargeError`}},lw=class extends H{constructor(e,t){super(`Unsupported compression method: ${e}`,t),this.name=`UnsupportedCompressionError`}}}));function dw(){try{return typeof CompressionStream>`u`?!1:(new CompressionStream(`deflate-raw`),!0)}catch{return!1}}function fw(){try{return typeof DecompressionStream>`u`?!1:(new DecompressionStream(`deflate-raw`),!0)}catch{return!1}}function pw(){return typeof CompressionStream>`u`?!1:(ww===null&&(ww=dw()),ww)}function mw(){return typeof DecompressionStream>`u`?!1:(Tw===null&&(Tw=fw()),Tw)}function hw(){return pw()&&mw()}async function gw(e){let t=new ew;for(;;){let{done:n,value:r}=await e.read();if(n)break;t.append(r)}return t.read(t.length)}async function _w(e,t){let n=t.writable.getWriter(),r=t.readable.getReader();try{let t=gw(r);return await n.write(e),await n.close(),await t}finally{try{n.releaseLock()}catch{}try{r.releaseLock()}catch{}}}async function vw(e){return _w(e,new CompressionStream(`deflate-raw`))}async function yw(e){return _w(e,new DecompressionStream(`deflate-raw`))}function bw(e){let t=1,n=0;for(let r=0;r<e.length;){let i=Math.min(r+5552,e.length);for(;r<i;)t+=e[r++],n+=t;t%=Ew,n%=Ew}return n<<16|t}function xw(e,t){let n=`${e}:${t}`;return()=>{let r=e===`compression`?typeof CompressionStream<`u`?CompressionStream:void 0:typeof DecompressionStream<`u`?DecompressionStream:void 0;if(!r)return!1;let i=Dw[n];if(i!=null)return i;try{new r(t),Dw[n]=!0}catch{Dw[n]=!1}return Dw[n]}}function Sw(e){return Ow[Math.max(0,Math.min(9,e))]??Ow[6]}function Cw(e){let t=new Uint8Array(4);return t[0]=e>>>24&255,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t}var ww,Tw,Ew,Dw,Ow,kw=n((()=>{tw(),ww=null,Tw=null,Ew=65521,Dw={},xw(`compression`,`gzip`),xw(`decompression`,`gzip`),xw(`compression`,`deflate`),xw(`decompression`,`deflate`),Ow={0:new Uint8Array([120,1]),1:new Uint8Array([120,1]),2:new Uint8Array([120,94]),3:new Uint8Array([120,94]),4:new Uint8Array([120,94]),5:new Uint8Array([120,94]),6:new Uint8Array([120,156]),7:new Uint8Array([120,218]),8:new Uint8Array([120,218]),9:new Uint8Array([120,218])}}));function Aw(){if(Fw)return Fw;let e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n}return Fw=e,e}function jw(e,t){let n=Aw();for(let r=0;r<t.length;r++)e=n[(e^t[r])&255]^e>>>8;return e}function Mw(e){return(e^4294967295)>>>0}function Nw(e){return Mw(jw(4294967295,e))}function Pw(e,t){return(Aw()[(e^t)&255]^e>>>8)>>>0}var Fw,Iw=n((()=>{Fw=null})),Lw=n((()=>{Iw()}));function Rw(e,t){let n=new Uint16Array(16);for(let r=0;r<t;r++)e[r]>0&&n[e[r]]++;let r=new Uint16Array(16),i=0;for(let e=1;e<=15;e++)i=i+n[e-1]<<1,r[e]=i;let a={};for(let n=0;n<t;n++){let t=e[n];if(t===0)continue;i=r[t]++;let o=a;for(let e=t-1;e>=0;e--)i>>e&1?(o.right||(o.right={}),o=o.right):(o.left||(o.left={}),o=o.left);o.symbol=n}return a}function zw(e){let t=new aT(e),n=new Uint8Array(Math.max(64,e.length*4)),r=0,i=e=>{let t=r+e;if(t<=n.length)return;let i=n.length;for(;i<t;)i*=2;let a=new Uint8Array(i);a.set(n.subarray(0,r)),n=a},a=!1;for(;!a;){a=t.readBits(1)===1;let e=t.readBits(2);if(e===0){t.alignToByte();let e=t.readUint16();if((e^t.readUint16())!==65535)throw new H(`Invalid stored block length`);i(e);for(let i=0;i<e;i++)n[r++]=t.readByte()}else if(e===1||e===2){let a,o;if(e===1)a=Rw(Zw,288),o=Rw(Qw,32);else{let e=t.readBits(5)+257,n=t.readBits(5)+1,r=t.readBits(4)+4,i=new Uint8Array(19);for(let e=0;e<r;e++)i[iT[e]]=t.readBits(3);let s=Rw(i,19),c=new Uint8Array(e+n),l=0;for(;l<e+n;){let e=t.decodeSymbol(s);if(e<16)c[l++]=e;else if(e===16){let e=t.readBits(2)+3,n=c[l-1];for(let t=0;t<e;t++)c[l++]=n}else if(e===17){let e=t.readBits(3)+3;for(let t=0;t<e;t++)c[l++]=0}else if(e===18){let e=t.readBits(7)+11;for(let t=0;t<e;t++)c[l++]=0}}a=Rw(c.subarray(0,e),e),o=Rw(c.subarray(e),n)}for(;;){let e=t.decodeSymbol(a);if(e<256)i(1),n[r++]=e;else if(e===256)break;else{let a=e-257,s=$w[a]+t.readBits(eT[a]),c=t.decodeSymbol(o),l=tT[c]+t.readBits(nT[c]);i(s);let u=r-l;for(let e=0;e<s;e++)n[r++]=n[u+e]}}}else throw new H(`Invalid DEFLATE block type: `+e)}return n.slice(0,r)}function Bw(e){let t=65535,n=Math.ceil(e.length/t)||1,r=n*5+e.length,i=new Uint8Array(r),a=0,o=0;for(let r=0;r<n;r++){let s=r===n-1,c=Math.min(t,e.length-o);i[a++]=+!!s,i[a++]=c&255,i[a++]=c>>8&255,i[a++]=~c&255,i[a++]=~c>>8&255,i.set(e.subarray(o,o+c),a),a+=c,o+=c}return i.subarray(0,a)}function Vw(e){return e<=1?{maxChainLen:4,goodLen:4,niceLen:8,lazy:!1}:e<=3?{maxChainLen:8,goodLen:8,niceLen:32,lazy:!0}:e<=5?{maxChainLen:32,goodLen:16,niceLen:128,lazy:!0}:e<=7?{maxChainLen:64,goodLen:32,niceLen:258,lazy:!0}:{maxChainLen:128,goodLen:64,niceLen:258,lazy:!0}}function Hw(e,t,n){return(e<<16|t<<8|n)*506832829>>>17&sT}function Uw(e,t=6){if(e.length===0)return new Uint8Array([3,0]);if(e.length<100)return Bw(e);let n=Vw(t),r=Xw(e,0,e.length,n,null),i=new dT;return Yw(i,r,!0),i.finish()}function Ww(e,t){let[n,r]=fT[t];e.writeBitsReverse(n,r)}function Gw(e){for(let t=0;t<$w.length;t++)if(t===$w.length-1||e<$w[t+1])return{code:257+t,extra:e-$w[t],extraBits:eT[t]};return{code:285,extra:0,extraBits:0}}function Kw(e){for(let t=0;t<rT.length;t++){let[n,r,i]=rT[t];if(e<=n)return{code:r,extra:e-(t===0?1:rT[t-1][0]+1),extraBits:i}}return{code:29,extra:0,extraBits:13}}function qw(e,t){let n=e.length,r=new Uint8Array(n),i=[];for(let t=0;t<n;t++)e[t]>0&&i.push({sym:t,freq:e[t]});if(i.length===0)return r;if(i.length===1)return r[i[0].sym]=1,r;i.sort((e,t)=>e.freq-t.freq||e.sym-t.sym);let a=i.map(e=>({freq:e.freq,sym:e.sym,left:null,right:null})),o=0,s=0,c=[];function l(){let e=o<a.length,t=s<c.length;return e&&t?a[o].freq<=c[s].freq?a[o++]:c[s++]:e?a[o++]:c[s++]}let u=i.length;for(let e=0;e<u-1;e++){let e=l(),t=l(),n={freq:e.freq+t.freq,sym:-1,left:e,right:t};c.push(n)}let d=c[c.length-1];function f(e,t){if(e.sym>=0){r[e.sym]=t;return}e.left&&f(e.left,t+1),e.right&&f(e.right,t+1)}f(d,0);let p=new Uint16Array(t+1);for(let e=0;e<n;e++)r[e]>0&&(r[e]>t?(p[t]++,r[e]=t):p[r[e]]++);let m=0;for(let e=1;e<=t;e++)m+=p[e]<<t-e;let h=1<<t;if(m===h)return r;for(;m>h;){let e=t-1;for(;e>0&&p[e]===0;)e--;if(e===0)break;p[e]--,p[t]++,m-=(1<<t-e)-1}for(;m<h;)p[t]++,m++;let g=[];for(let t=0;t<n;t++)r[t]>0&&g.push({sym:t,origLen:r[t],freq:e[t]});g.sort((e,t)=>t.origLen-e.origLen||e.freq-t.freq),r.fill(0);let _=0;for(let e=t;e>=1;e--)for(let t=p[e];t>0;t--)_<g.length&&(r[g[_].sym]=e,_++);return r}function Jw(e){let t=e.length,n=Array(t),r=new Uint16Array(16);for(let n=0;n<t;n++)e[n]>0&&r[e[n]]++;let i=new Uint16Array(16),a=0;for(let e=1;e<=15;e++)a=a+r[e-1]<<1,i[e]=a;for(let r=0;r<t;r++){let t=e[r];t>0?n[r]=[i[t]++,t]:n[r]=[0,0]}return n}function Yw(e,t,n){let r=new Uint32Array(286),i=new Uint32Array(30);r[256]=1;for(let e of t)if(e.dist===0)r[e.litOrLen]++;else{let t=Gw(e.litOrLen);r[t.code]++;let n=Kw(e.dist);i[n.code]++}let a=qw(r,15),o=qw(i,15),s=!1;for(let e=0;e<o.length;e++)if(o[e]>0){s=!0;break}s||(o=new Uint8Array(30),o[0]=1,o[1]=1);let c=Jw(a),l=Jw(o),u=286;for(;u>257&&a[u-1]===0;)u--;let d=30;for(;d>1&&o[d-1]===0;)d--;let f=new Uint8Array(u+d);f.set(a.subarray(0,u)),f.set(o.subarray(0,d),u);let p=[],m=new Uint32Array(19);for(let e=0;e<f.length;){let t=f[e];if(t===0){let t=1;for(;e+t<f.length&&f[e+t]===0;)t++;for(;t>0;)if(t>=11){let n=Math.min(t,138);p.push({sym:18,extra:n-11,extraBits:7}),m[18]++,t-=n,e+=n}else if(t>=3){let n=Math.min(t,10);p.push({sym:17,extra:n-3,extraBits:3}),m[17]++,t-=n,e+=n}else p.push({sym:0,extra:0,extraBits:0}),m[0]++,t--,e++}else{p.push({sym:t,extra:0,extraBits:0}),m[t]++,e++;let n=0;for(;e+n<f.length&&f[e+n]===t;)n++;for(;n>=3;){let t=Math.min(n,6);p.push({sym:16,extra:t-3,extraBits:2}),m[16]++,n-=t,e+=t}for(;n>0;)p.push({sym:t,extra:0,extraBits:0}),m[t]++,n--,e++}}let h=qw(m,7),g=Jw(h),_=19;for(;_>4&&h[iT[_-1]]===0;)_--;e.writeBits(+!!n,1),e.writeBits(2,2),e.writeBits(u-257,5),e.writeBits(d-1,5),e.writeBits(_-4,4);for(let t=0;t<_;t++)e.writeBits(h[iT[t]],3);for(let t of p){let[n,r]=g[t.sym];e.writeBitsReverse(n,r),t.extraBits>0&&e.writeBits(t.extra,t.extraBits)}for(let n of t)if(n.dist===0){let[t,r]=c[n.litOrLen];e.writeBitsReverse(t,r)}else{let t=Gw(n.litOrLen),[r,i]=c[t.code];e.writeBitsReverse(r,i),t.extraBits>0&&e.writeBits(t.extra,t.extraBits);let a=Kw(n.dist),[o,s]=l[a.code];e.writeBitsReverse(o,s),a.extraBits>0&&e.writeBits(a.extra,a.extraBits)}let[v,y]=c[256];e.writeBitsReverse(v,y)}function Xw(e,t,n,r,i){let a=[],o=r.maxChainLen,s=r.goodLen,c=r.niceLen,l=r.lazy,u,d,f,p,m,h,g,_,v;i?(u=i.head,d=i.prev,f=i.window,p=i.windowLen,m=i.totalIn,h=i.hasPrevMatch,g=i.prevMatchLen,_=i.prevMatchDist,v=i.prevLiteral):(u=new Int32Array(oT),d=new Int32Array(uT),f=null,p=0,m=0,h=!1,g=0,_=0,v=0);let y=i?r=>{let i=r-m;return i>=t&&i<n?e[i]:f[r&32767]}:t=>e[t],b=i?t=>{if(t+2>=n)return;let r=Hw(e[t],e[t+1],e[t+2]),i=m+t;d[i&32767]=u[r],u[r]=i+1}:t=>{if(t+2>=n)return;let r=Hw(e[t],e[t+1],e[t+2]);d[t&32767]=u[r],u[r]=t+1},ee=i?(t,n)=>{for(let r=0;r<n;r++)f[p+r&32767]=e[t+r];p+=n}:(e,t)=>{},x=t;for(;x<n;){let t=0,r=0;if(x+2<n){let a=Hw(e[x],e[x+1],e[x+2]),f=i?m+x:x,p=l&&h&&g>=s?o>>2:o,_=u[a];for(;_>0&&p-->0;){let i=_-1,a=f-i;if(a>uT||a<=0)break;if(t>=cT&&y(i+t)!==e[x+t]){_=d[i&32767];continue}let o=Math.min(lT,n-x),s=0;for(;s<o&&y(i+s)===e[x+s];)s++;if(s>t&&(t=s,r=a,s>=c))break;_=d[i&32767]}i?(d[f&32767]=u[a],u[a]=f+1):(d[x&32767]=u[a],u[a]=x+1)}if(l&&h){if(t>g)a.push({litOrLen:v,dist:0}),g=t,_=r,v=e[x],ee(x,1),x++;else{a.push({litOrLen:g,dist:_});let e=Math.min(x-1+g,n);for(let t=x;t<e;t++)b(t);ee(x,e-x),x=e,h=!1,g=0}}else if(t>=cT){if(l)h=!0,g=t,_=r,v=e[x],ee(x,1),x++;else{a.push({litOrLen:t,dist:r});let e=Math.min(x+t,n);for(let t=x+1;t<e;t++)b(t);ee(x,e-x),x=e}}else h&&(a.push({litOrLen:g,dist:_}),h=!1,g=0),a.push({litOrLen:e[x],dist:0}),ee(x,1),x++}if(h){a.push({litOrLen:g,dist:_});let e=Math.min(x-1+g,n);for(let t=x;t<e;t++)b(t);ee(x,e-x),h=!1,g=0}return i&&(i.windowLen=p,i.totalIn=m+(n-t),i.hasPrevMatch=h,i.prevMatchLen=g,i.prevMatchDist=_,i.prevLiteral=v),a}var Zw,Qw,$w,eT,tT,nT,rT,iT,aT,oT,sT,cT,lT,uT,dT,fT,pT,mT=n((()=>{uw(),B(),Zw=(()=>{let e=new Uint8Array(288);for(let t=0;t<=143;t++)e[t]=8;for(let t=144;t<=255;t++)e[t]=9;for(let t=256;t<=279;t++)e[t]=7;for(let t=280;t<=287;t++)e[t]=8;return e})(),Qw=new Uint8Array(32).fill(5),$w=[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],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],tT=[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],nT=[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],rT=[[1,0,0],[2,1,0],[3,2,0],[4,3,0],[6,4,1],[8,5,1],[12,6,2],[16,7,2],[24,8,3],[32,9,3],[48,10,4],[64,11,4],[96,12,5],[128,13,5],[192,14,6],[256,15,6],[384,16,7],[512,17,7],[768,18,8],[1024,19,8],[1536,20,9],[2048,21,9],[3072,22,10],[4096,23,10],[6144,24,11],[8192,25,11],[12288,26,12],[16384,27,12],[24576,28,13],[32768,29,13]],iT=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],aT=class{constructor(e){this.data=e,this.pos=0,this.bitBuf=0,this.bitCount=0}readBits(e){for(;this.bitCount<e;){if(this.pos>=this.data.length)throw new H(`Unexpected end of DEFLATE data`);this.bitBuf|=this.data[this.pos++]<<this.bitCount,this.bitCount+=8}let t=this.bitBuf&(1<<e)-1;return this.bitBuf>>=e,this.bitCount-=e,t}decodeSymbol(e){let t=e;for(;t.symbol===void 0;)if(t=this.readBits(1)===0?t.left:t.right,!t)throw new H(`Invalid Huffman code`);return t.symbol}alignToByte(){this.bitBuf=0,this.bitCount=0}readByte(){if(this.pos>=this.data.length)throw new H(`Unexpected end of data`);return this.data[this.pos++]}readUint16(){return this.readByte()|this.readByte()<<8}},oT=32768,sT=32767,cT=3,lT=258,uT=32768,dT=class e{constructor(){this.chunks=[],this.buffer=new Uint8Array(e.CHUNK_SIZE),this.bufLen=0,this.bitBuf=0,this.bitCount=0}static{this.CHUNK_SIZE=65536}alignToByte(){this.bitCount>0&&this.writeBits(0,8-this.bitCount)}pushByte(t){this.buffer[this.bufLen++]=t,this.bufLen>=e.CHUNK_SIZE&&(this.chunks.push(this.buffer),this.buffer=new Uint8Array(e.CHUNK_SIZE),this.bufLen=0)}writeBits(e,t){for(this.bitBuf|=e<<this.bitCount,this.bitCount+=t;this.bitCount>=8;)this.pushByte(this.bitBuf&255),this.bitBuf>>=8,this.bitCount-=8}writeBitsReverse(e,t){let n=0;for(let r=0;r<t;r++)n=n<<1|e>>r&1;this.writeBits(n,t)}finish(){return this.bitCount>0&&(this.pushByte(this.bitBuf&255),this.bitBuf=0,this.bitCount=0),this.chunks.length===0?this.buffer.slice(0,this.bufLen):(this.chunks.push(this.buffer.subarray(0,this.bufLen)),L(this.chunks))}flushBytes(){if(this.chunks.length===0&&this.bufLen===0)return new Uint8Array;let t;return this.chunks.length===0?t=this.buffer.slice(0,this.bufLen):(this.chunks.push(this.buffer.subarray(0,this.bufLen)),t=L(this.chunks),this.chunks=[]),this.buffer=new Uint8Array(e.CHUNK_SIZE),this.bufLen=0,t}},fT=(()=>{let e=[];for(let t=0;t<=287;t++){let n,r;t<=143?(n=48+t,r=8):t<=255?(n=400+(t-144),r=9):t<=279?(n=t-256,r=7):(n=192+(t-280),r=8),e[t]=[n,r]}return e})(),pT=class{constructor(e=6){this._output=new dT,this._state={head:new Int32Array(oT),prev:new Int32Array(uT),window:new Uint8Array(uT),windowLen:0,totalIn:0,hasPrevMatch:!1,prevMatchLen:0,prevMatchDist:0,prevLiteral:0},this._level=Math.max(0,Math.min(9,e)),this._config=Vw(this._level)}write(e){if(e.length===0)return new Uint8Array;let t=this._output;return this._level===0?(this._writeStore(e),t.flushBytes()):(Yw(t,Xw(e,0,e.length,this._config,this._state),!1),t.flushBytes())}finish(){let e=this._output;return e.writeBits(1,1),e.writeBits(1,2),Ww(e,256),e.finish()}_writeStore(e){let t=this._output,n=0;for(;n<e.length;){let r=e.length-n,i=Math.min(65535,r);t.alignToByte(),t.writeBits(0,1),t.writeBits(0,2),t.alignToByte(),t.writeBits(i&255,8),t.writeBits(i>>8&255,8),t.writeBits(~i&255,8),t.writeBits(~i>>8&255,8);for(let r=0;r<i;r++)t.writeBits(e[n+r],8);n+=i}}}}));function hT(e){let t=e?.maxWorkers??vT.maxWorkers,n=e?.minWorkers??vT.minWorkers;return{maxWorkers:Math.max(1,t),minWorkers:Math.max(0,Math.min(n,t)),idleTimeout:Math.max(0,e?.idleTimeout??vT.idleTimeout),useTransferables:e?.useTransferables??vT.useTransferables,workerUrl:e?.workerUrl}}function gT(e){return e?yT[e]??yT.normal:yT.normal}function _T(){return typeof Worker<`u`&&typeof Blob<`u`}var vT,yT,bT=n((()=>{uw(),vT={maxWorkers:typeof navigator<`u`&&navigator.hardwareConcurrency||4,minWorkers:0,idleTimeout:3e4,useTransferables:!0,workerUrl:void 0},yT={high:3,normal:2,low:1}}));function xT(){return`
12
+ `)}function vh(e,t){let n=[];for(let r of t.matchAll(wh))n.push(yh(e,r[1]));if(n.length>0)return n.join(``);for(let r of t.matchAll(Th))n.push(yh(e,r[1]));return n.length>0?n.join(``):void 0}function yh(e,t){return t.replace(/&(?:([A-Za-z]+)|#x([0-9A-Fa-f]+)|#(\d+));/g,(e,t,n,r)=>{if(t!==void 0)switch(t){case`amp`:return`&`;case`lt`:return`<`;case`gt`:return`>`;case`quot`:return`"`;case`apos`:return`'`;default:return e}if(n!==void 0){let t=parseInt(n,16);return Number.isFinite(t)?String.fromCodePoint(t):e}if(r!==void 0){let t=parseInt(r,10);return Number.isFinite(t)?String.fromCodePoint(t):e}return e})}function bh(e,t){if(!t)return;let n=t.text?.paragraphs?.[0]?.runs?.[0];if(n?.properties)return{...n.properties};if(t.rawTx){let e=/<a:rPr\b[^>]*\/>/.exec(t.rawTx),n=/<a:rPr\b[^>]*>[\s\S]*?<\/a:rPr>/.exec(t.rawTx),r=n&&(!e||n.index<=e.index)?n[0]:e?.[0];if(r){let{_rawXml:e,...t}=Zp({_rawXml:`<c:txPr>${r}</c:txPr>`});return t}}}function xh(e){return structuredClone(e)}var Sh,Ch,wh,Th,Eh=n((()=>{pp(),Kd(),gp(),wp(),im(),ym(),sp(),Yo(),E(),O(),Lf(),Sh=10,Ch=15,wh=/<a:t(?:\s[^>]*)?>([\s\S]*?)<\/a:t>/g,Th=/<c:v(?:\s[^>]*)?>([\s\S]*?)<\/c:v>/g}));function Dh(e,t,n,r=`bar`){return{options:n?{type:`bar3D`,barDir:e,grouping:t,shape:n}:{type:r,barDir:e,grouping:t}}}function P(e,t,n){return Dh(e,t,n,`bar3D`)}function Oh(e,t){let n=Ah[e];if(!n)throw new w(`Unknown chart preset: ${e}.`);let r={...n.options,...t,type:t.type??n.options.type};return n.seriesDefaults&&r.series&&(r.series=r.series.map(e=>({...n.seriesDefaults,...e}))),r}function kh(e,t){let n=jh[e];if(!n)throw new w(`Unknown chartEx preset: ${e}.`);return{...n.options,...t,type:t.type??n.options.type}}var Ah,jh,Mh=n((()=>{E(),Ah={columnClustered:Dh(`col`,`clustered`),columnStacked:Dh(`col`,`stacked`),columnStacked100:Dh(`col`,`percentStacked`),columnPercentStacked:Dh(`col`,`percentStacked`),colClustered:Dh(`col`,`clustered`),colStacked:Dh(`col`,`stacked`),colPercentStacked:Dh(`col`,`percentStacked`),colStacked100:Dh(`col`,`percentStacked`),barClustered:Dh(`bar`,`clustered`),barStacked:Dh(`bar`,`stacked`),barPercentStacked:Dh(`bar`,`percentStacked`),barStacked100:Dh(`bar`,`percentStacked`),pieOfPie:{options:{type:`ofPie`,ofPieType:`pie`}},barOfPie:{options:{type:`ofPie`,ofPieType:`bar`}},column3DClustered:P(`col`,`clustered`),column3DStacked:P(`col`,`stacked`),column3DStacked100:P(`col`,`percentStacked`),col3DClustered:P(`col`,`clustered`),col3DStacked:P(`col`,`stacked`),col3DStacked100:P(`col`,`percentStacked`),bar3DClustered:P(`bar`,`clustered`),bar3DStacked:P(`bar`,`stacked`),bar3DStacked100:P(`bar`,`percentStacked`),col3DConeClustered:P(`col`,`clustered`,`cone`),col3DConeStacked:P(`col`,`stacked`,`cone`),col3DConeStacked100:P(`col`,`percentStacked`,`cone`),coneColClustered:P(`col`,`clustered`,`cone`),coneColStacked:P(`col`,`stacked`,`cone`),coneColStacked100:P(`col`,`percentStacked`,`cone`),bar3DConeClustered:P(`bar`,`clustered`,`cone`),bar3DConeStacked:P(`bar`,`stacked`,`cone`),bar3DConeStacked100:P(`bar`,`percentStacked`,`cone`),coneBarClustered:P(`bar`,`clustered`,`cone`),coneBarStacked:P(`bar`,`stacked`,`cone`),coneBarStacked100:P(`bar`,`percentStacked`,`cone`),col3DCylinderClustered:P(`col`,`clustered`,`cylinder`),col3DCylinderStacked:P(`col`,`stacked`,`cylinder`),col3DCylinderStacked100:P(`col`,`percentStacked`,`cylinder`),cylinderColClustered:P(`col`,`clustered`,`cylinder`),cylinderColStacked:P(`col`,`stacked`,`cylinder`),cylinderColStacked100:P(`col`,`percentStacked`,`cylinder`),bar3DCylinderClustered:P(`bar`,`clustered`,`cylinder`),bar3DCylinderStacked:P(`bar`,`stacked`,`cylinder`),bar3DCylinderStacked100:P(`bar`,`percentStacked`,`cylinder`),cylinderBarClustered:P(`bar`,`clustered`,`cylinder`),cylinderBarStacked:P(`bar`,`stacked`,`cylinder`),cylinderBarStacked100:P(`bar`,`percentStacked`,`cylinder`),col3DPyramidClustered:P(`col`,`clustered`,`pyramid`),col3DPyramidStacked:P(`col`,`stacked`,`pyramid`),col3DPyramidStacked100:P(`col`,`percentStacked`,`pyramid`),pyramidColClustered:P(`col`,`clustered`,`pyramid`),pyramidColStacked:P(`col`,`stacked`,`pyramid`),pyramidColStacked100:P(`col`,`percentStacked`,`pyramid`),bar3DPyramidClustered:P(`bar`,`clustered`,`pyramid`),bar3DPyramidStacked:P(`bar`,`stacked`,`pyramid`),bar3DPyramidStacked100:P(`bar`,`percentStacked`,`pyramid`),pyramidBarClustered:P(`bar`,`clustered`,`pyramid`),pyramidBarStacked:P(`bar`,`stacked`,`pyramid`),pyramidBarStacked100:P(`bar`,`percentStacked`,`pyramid`),line:{options:{type:`line`}},lineMarkers:{options:{type:`line`,showMarker:!0}},lineStacked:{options:{type:`line`,grouping:`stacked`}},lineStacked100:{options:{type:`line`,grouping:`percentStacked`}},pie:{options:{type:`pie`}},pieExploded:{options:{type:`pie`},seriesDefaults:{explosion:25}},pie3D:{options:{type:`pie3D`}},pieExploded3D:{options:{type:`pie3D`},seriesDefaults:{explosion:25}},doughnut:{options:{type:`doughnut`}},doughnutExploded:{options:{type:`doughnut`,holeSize:50},seriesDefaults:{explosion:25}},area:{options:{type:`area`}},areaStacked:{options:{type:`area`,grouping:`stacked`}},areaStacked100:{options:{type:`area`,grouping:`percentStacked`}},area3D:{options:{type:`area3D`}},area3DStacked:{options:{type:`area3D`,grouping:`stacked`}},area3DStacked100:{options:{type:`area3D`,grouping:`percentStacked`}},scatter:{options:{type:`scatter`,scatterStyle:`marker`}},scatterMarker:{options:{type:`scatter`,scatterStyle:`marker`}},scatterStraight:{options:{type:`scatter`,scatterStyle:`lineMarker`}},scatterLines:{options:{type:`scatter`,scatterStyle:`lineMarker`}},scatterLinesNoMarkers:{options:{type:`scatter`,scatterStyle:`line`}},scatterSmooth:{options:{type:`scatter`,scatterStyle:`smoothMarker`}},scatterSmoothMarker:{options:{type:`scatter`,scatterStyle:`smoothMarker`}},scatterSmoothNoMarkers:{options:{type:`scatter`,scatterStyle:`smooth`}},bubble:{options:{type:`bubble`}},bubble3D:{options:{type:`bubble`},seriesDefaults:{bubble3D:!0}},radar:{options:{type:`radar`,radarStyle:`standard`}},radarMarkers:{options:{type:`radar`,radarStyle:`marker`}},radarFilled:{options:{type:`radar`,radarStyle:`filled`}},stockHLC:{options:{type:`stock`,hiLowLines:!0}},stockOHLC:{options:{type:`stock`,upDownBars:!0,hiLowLines:!0}},surface:{options:{type:`surface`}},surface3D:{options:{type:`surface3D`}},surfaceTopView:{options:{type:`surface3D`,view3D:{rotX:90,rotY:0}}},contour:{options:{type:`surface`}},wireframeSurface:{options:{type:`surface3D`,wireframe:!0}},surface3DWireframe:{options:{type:`surface3D`,wireframe:!0}},surfaceWireframe:{options:{type:`surface3D`,wireframe:!0}},wireframeContour:{options:{type:`surface`,wireframe:!0}},topViewWireframe:{options:{type:`surface3D`,wireframe:!0,view3D:{rotX:90,rotY:0}}}},Object.keys(Ah),jh={histogram:{options:{type:`histogram`}},pareto:{options:{type:`pareto`}},waterfall:{options:{type:`waterfall`}},funnel:{options:{type:`funnel`}},treemap:{options:{type:`treemap`}},sunburst:{options:{type:`sunburst`}},boxWhisker:{options:{type:`boxWhisker`}},boxAndWhisker:{options:{type:`boxWhisker`}},regionMap:{options:{type:`regionMap`}},map:{options:{type:`regionMap`}}},Object.keys(jh)}));function Nh(e){return typeof e==`object`&&!!e&&`worksheet`in e&&`model`in e&&typeof e.model==`object`}function Ph(e){if(e.includes(`$`))return e;let t=D.decodeAddress(e);return`$${D.n2l(t.col)}$${t.row}`}function Fh(e){let t,n;if(typeof e==`string`){if(e.includes(`:`)){let r=D.decode(e);if(`top`in r){if(r.left===r.right&&r.top===r.bottom){let e=r.left-1,i=r.top-1;t={col:e,colOff:qh,row:i,rowOff:Jh},n={col:e+2,colOff:Yh,row:i+1,rowOff:Xh}}else t={col:r.left-1,colOff:qh,row:r.top-1,rowOff:Jh},n={col:r.right-1,colOff:Yh,row:r.bottom-1,rowOff:Xh}}else t={col:r.col-1,colOff:qh,row:r.row-1,rowOff:Jh},n={col:r.col+1,colOff:Yh,row:r.row,rowOff:Xh}}else{let r=D.decodeAddress(e);t={col:r.col-1,colOff:qh,row:r.row-1,rowOff:Jh},n={col:r.col+1,colOff:Yh,row:r.row,rowOff:Xh}}}else if(`startCol`in e)t={col:e.startCol,colOff:e.startColOff??qh,row:e.startRow,rowOff:e.startRowOff??Jh},n={col:e.endCol,colOff:e.endColOff??Yh,row:e.endRow,rowOff:e.endRowOff??Xh};else{if(typeof e.tl==`string`){let n=D.decodeAddress(e.tl);t={col:n.col-1,colOff:qh,row:n.row-1,rowOff:Jh}}else t={col:e.tl.col,colOff:e.tl.colOff??qh,row:e.tl.row,rowOff:e.tl.rowOff??Jh};if(e.br){if(typeof e.br==`string`){let t=D.decodeAddress(e.br);n={col:t.col-1,colOff:Yh,row:t.row-1,rowOff:Xh}}else n={col:e.br.col,colOff:e.br.colOff??Yh,row:e.br.row,rowOff:e.br.rowOff??Xh}}else n={col:t.col+2,colOff:Yh,row:t.row+1,rowOff:Xh}}return{tl:t,br:n}}function Ih(e,t,n){let{tl:r,br:i}=Fh(t),a=1025+(e.formControls?.length??0),o;return n?.link&&(o=Ph(n.link)),{worksheet:e,model:{shapeId:a,ctrlPropId:0,tl:r,br:i,link:o,checked:n?.checked?`Checked`:`Unchecked`,text:n?.text??``,noThreeD:n?.noThreeD??!0,print:n?.print??!1}}}function Lh(e,t){return{worksheet:e,model:{...t,tl:{...t.tl},br:{...t.br}}}}function Rh(e){return e.model.checked===`Checked`}function zh(e,t){e.model.checked=t?`Checked`:`Unchecked`}function Bh(e){return e.model.link}function Vh(e,t){e.model.link=t?Ph(t):void 0}function Hh(e){return e.model.text}function Uh(e,t){e.model.text=t}function Wh(e){let{tl:t,br:n}=e,r=Math.round(t.colOff/Nl),i=Math.round(t.rowOff/Nl),a=Math.round(n.colOff/Nl),o=Math.round(n.rowOff/Nl);return`${t.col}, ${r}, ${t.row}, ${i}, ${n.col}, ${a}, ${n.row}, ${o}`}function Gh(e){return`position:absolute;margin-left:${Math.round(e.tl.colOff/Ml)}pt;margin-top:${Math.round(e.tl.rowOff/Ml)}pt;width:96pt;height:18pt;z-index:1;visibility:visible`}function Kh(e){switch(e.checked){case`Checked`:return 1;case`Mixed`:return 2;default:return 0}}var qh,Jh,Yh,Xh,Zh=n((()=>{O(),Pl(),qh=142875,Jh=28575,Yh=276225,Xh=190500}));function Qh(e,t){let n={worksheet:e};return t&&eg(n,t),n}function $h(e){switch(e.type){case`background`:return{type:e.type,imageId:e.imageId??``};case`watermark`:return{type:e.type,imageId:e.imageId??``,opacity:e.opacity};case`headerImage`:return{type:e.type,imageId:e.imageId??``,headerWidth:e.headerWidth,headerHeight:e.headerHeight,applyTo:e.applyTo,position:e.position};case`image`:{let t=e.range;if(!t)throw new ae(`Image has no range`);return t.pos?{type:e.type,imageId:e.imageId??``,hyperlinks:t.hyperlinks,range:{tl:{nativeCol:0,nativeColOff:0,nativeRow:0,nativeRowOff:0},ext:t.ext,pos:t.pos}}:{type:e.type,imageId:e.imageId??``,hyperlinks:t.hyperlinks,range:{tl:gm(t.tl),br:t.br?gm(t.br):void 0,ext:t.ext,editAs:t.editAs},xfrmOffX:e.xfrmOffX,xfrmOffY:e.xfrmOffY,xfrmExtCx:e.xfrmExtCx,xfrmExtCy:e.xfrmExtCy,rawSpPr:e.rawSpPr}}default:throw new ae(`Invalid Image Type`)}}function eg(e,{type:t,imageId:n,range:r,hyperlinks:i,opacity:a,headerWidth:o,headerHeight:s,applyTo:c,position:l,xfrmOffX:u,xfrmOffY:d,xfrmExtCx:f,xfrmExtCy:p,rawSpPr:m}){if(e.type=t,e.imageId=n,e.opacity=a,e.headerWidth=o,e.headerHeight=s,e.applyTo=c,e.position=l,e.xfrmOffX=u,e.xfrmOffY=d,e.xfrmExtCx=f,e.xfrmExtCy=p,e.rawSpPr=m,t===`image`){if(typeof r==`string`){let t=D.decode(r);`top`in t&&(e.range={tl:mm(e.worksheet,{col:t.left,row:t.top},-1),br:mm(e.worksheet,{col:t.right,row:t.bottom},0),editAs:`oneCell`})}else if(r&&`pos`in r&&r.pos)e.range={tl:mm(e.worksheet,null,0),ext:r.ext,hyperlinks:i||(`hyperlinks`in r?r.hyperlinks:void 0),pos:r.pos};else if(r){let t=r.tl,n=r.br;e.range={tl:mm(e.worksheet,t,typeof t==`string`?-1:0),br:n?mm(e.worksheet,n,0):void 0,ext:r.ext,editAs:r.editAs,hyperlinks:i||(`hyperlinks`in r?r.hyperlinks:void 0)}}}}function tg(e,t){let n=t??e.worksheet,r={worksheet:n};return r.type=e.type,r.imageId=e.imageId,r.opacity=e.opacity,r.headerWidth=e.headerWidth,r.headerHeight=e.headerHeight,r.applyTo=e.applyTo,r.xfrmOffX=e.xfrmOffX,r.xfrmOffY=e.xfrmOffY,r.xfrmExtCx=e.xfrmExtCx,r.xfrmExtCy=e.xfrmExtCy,r.rawSpPr=structuredClone(e.rawSpPr),e.range&&(r.range={tl:vm(e.range.tl,n),br:e.range.br?vm(e.range.br,n):void 0,ext:e.range.ext?{...e.range.ext}:void 0,editAs:e.range.editAs,hyperlinks:e.range.hyperlinks?{...e.range.hyperlinks}:void 0,pos:e.range.pos?{...e.range.pos}:void 0}),r}var ng=n((()=>{ym(),E(),O()}));function rg(e,t,n,r){let i=e.chartFormats??[],a=n??(i.length===0?0:Math.max(...i.map(e=>e.format??0))+1),o=r??t.pivotChartOptions;return ag(e,a),ig(e,o),{...t,pivotSource:{name:og(e),fmtId:a,options:o}}}function ig(e,t){t&&(e.pivotChartOptions=t,t.refreshOnOpen&&e.cacheDefinition&&(e.cacheDefinition.refreshOnLoad=`1`))}function ag(e,t){e.chartFormat??=1,e.chartFormats??=[],e.chartFormats.some(e=>e.chart===0&&e.format===t)||e.chartFormats.push({chart:0,format:t,series:!0,pivotAreaXml:sg})}function og(e){let t=e.name??`PivotTable${e.tableNumber}`;return e.worksheetName?`${Vs(e.worksheetName)}!${t}`:t}var sg,cg=n((()=>{Hs(),sg=`<pivotArea type="data" outline="0" fieldPosition="0"><references count="1"><reference field="4294967294" count="1" selected="0"><x v="0"/></reference></references></pivotArea>`}));function lg(e){return{kind:`pivotError`,code:e}}function ug(e){return typeof e==`object`&&!!e&&e.kind===`pivotError`}var dg,fg,pg=n((()=>{dg={sum:`Sum`,count:`Count`,average:`Average`,max:`Max`,min:`Min`,product:`Product`,countNums:`Count Numbers`,stdDev:`StdDev`,stdDevP:`StdDevP`,var:`Var`,varP:`VarP`},fg=new Set(Object.keys(dg))}));function mg(e){return`cells`in e?Ma(e):e.values}function hg(e){return`values`in e&&Array.isArray(e.values)?e.values:So(e)}function gg(e){let t=os(e);if(t.headerRow===!1)throw new C(`Cannot create pivot table from a table without headers. Set headerRow: true on the table.`);if(!t.rows||t.rows.length===0)throw new C(`Cannot create pivot table from an empty table. Add data rows to the table.`);let n=t.columns.map(e=>e.name),r=new Set;for(let e of n){if(r.has(e))throw new C(`Duplicate column name "${e}" found in table. Pivot tables require unique column names.`);r.add(e)}let i=[void 0,...n],a=t.rows.map(e=>[void 0,...e]),o=t.tl;if(!o)throw new C(`Table "${t.name}" is missing top-left cell address (tl)`);let s=o.row,c=o.col,l=s+t.rows.length,u=c+n.length-1;return{name:$a(e.worksheet),tableName:t.name,getRow(e){if(e===1)return{values:i};let t=e-Eg;return t>=0&&t<a.length?{values:a[t]}:{values:[]}},getColumn(e){if(e<1||e>n.length)return{values:[]};let r=[];r[1]=n[e-1];for(let n=0;n<t.rows.length;n++)r[n+2]=t.rows[n][e-1];return{values:r}},getSheetValues(){let e=[];e[1]=i;for(let t=0;t<a.length;t++)e[t+2]=a[t];return e},dimensions:De(s,c,l,u)}}function _g(e){if(e.sourceSheet&&e.sourceTable)throw new C(`Cannot specify both sourceSheet and sourceTable. Choose one.`);if(e.sourceTable)return gg(e.sourceTable);if(!e.sourceSheet)throw new C(`Either sourceSheet or sourceTable must be provided.`);let t=e.sourceSheet;if(`_rows`in t){let e=t;return{name:$a(e),getRow:t=>lo(e,t),getColumn:t=>ao(e,t),getSheetValues:()=>po(e),get dimensions(){return vg(e)}}}return t}function vg(e){let t=De();return e._rows.forEach(e=>{if(e){let n=Ia(e);n&&Me(t,e.number,n.min,e.number,n.max)}}),t}function yg(e){return typeof e==`string`?e:e.name}function bg(e){return typeof e==`string`?void 0:e.metric}function xg(e,t){let n=_g(t);Cg(t,n);let{rows:r}=t,i=t.columns??[],a=t.pages??[],o=t.values.map(yg),s=t.metric??`sum`,c=t.values.map(e=>bg(e)??s),l=Tg(n,[...r,...i,...a],o),u={};for(let e=0;e<l.length;e++)u[l[e].name]=e;let d=(e,t)=>{let n=u[e];if(n===void 0)throw new C(`${t} field "${e}" not found in cache fields`);return n},f=r.map(e=>d(e,`Row`)),p=i.map(e=>d(e,`Column`)),m=o.map(e=>d(e,`Value`)),h=a.map(e=>d(e,`Page`)),g=e.workbook.pivotTables.map(e=>e.tableNumber).filter(e=>Number.isFinite(e)),_=g.length>0?g.reduce((e,t)=>e>t?e:t,-1/0)+1:1,v=e.workbook.pivotTables.map(e=>parseInt(e.cacheId,10)).filter(e=>Number.isFinite(e)),y=v.length>0?v.reduce((e,t)=>e>t?e:t,-1/0)+1:Dg+_-1,b=Sg(t.ref);return{name:`PivotTable${_}`,worksheetName:e.name,source:n,rows:f,columns:p,values:m,pages:h,metric:s,valueMetrics:c,cacheFields:l,cacheId:String(y),applyWidthHeightFormats:t.applyWidthHeightFormats??`1`,ref:b,tableNumber:_}}function Sg(e){if(e===void 0)return;if(typeof e!=`string`||e.trim()===``)throw new C(`Invalid pivot table ref "${String(e)}". Provide a cell address like "A3".`);let t=e.trim().replace(/^[^!]+!/,``),n=t.includes(`:`)?t.split(`:`,1)[0]:t,r;try{r=D.decodeAddress(n)}catch{throw new C(`Invalid pivot table ref "${e}". Provide a cell address like "A3".`)}if(!r.col||!r.row)throw new C(`Invalid pivot table ref "${e}". Both column and row are required (e.g. "A3").`);return`${D.n2l(r.col)}${r.row}`}function Cg(e,t){let n=e.columns??[],r=e.pages??[],i=e.values.map(yg),a=mg(t.getRow(1)).slice(1);for(let e=0;e<a.length;e++){let n=a[e];if(n==null||n===``||typeof n==`string`&&n.trim()===``)throw new C(`Empty or missing header name at column ${e+1} in ${t.name}. Pivot tables require all columns to have non-empty headers.`)}let o=new Set;for(let e of a){let n=String(e);if(o.has(n))throw new C(`Duplicate header name "${n}" found in ${t.name}. Pivot tables require unique column names.`);o.add(n)}let s=new Set(a.map(String)),c=e=>{if(!s.has(e))throw new C(`The header name "${e}" was not found in ${t.name}.`)};for(let t of e.rows)c(t);for(let e of n)c(e);for(let e of i)c(e);for(let e of r)c(e);let l=new Map,u=[{name:`rows`,fields:e.rows},{name:`columns`,fields:n},{name:`pages`,fields:r}];for(let e of u)for(let t of e.fields){let n=l.get(t);if(n===e.name)throw new C(`Duplicate field "${t}" in ${e.name}. Each field can only appear once per axis area.`);if(n)throw new C(`Field "${t}" cannot appear in both ${n} and ${e.name}. Each field can only be assigned to one axis area.`);l.set(t,e.name)}if(!e.rows.length)throw new C(`No pivot table rows specified.`);if(e.values.length<1)throw new C(`Must have at least one value.`);if(e.metric!==void 0&&!fg.has(e.metric))throw new C(`Invalid metric "${e.metric}". Must be one of: ${[...fg].join(`, `)}.`);for(let t of e.values){let e=bg(t);if(e!==void 0&&!fg.has(e))throw new C(`Invalid metric "${e}" on value field "${yg(t)}". Must be one of: ${[...fg].join(`, `)}.`)}let d=new Set;for(let e of i){if(d.has(e))throw new C(`Duplicate value field "${e}". Each value field name must be unique.`);d.add(e)}}function wg(e){if(e==null)return null;if(typeof e!=`object`||e instanceof Date||ug(e))return e;let t=e;if(typeof t.error==`string`){let e=t.error;return lg(e.startsWith(`#`)?e.slice(1):e)}if(`formula`in t||`sharedFormula`in t){let e=t.result;return e==null?null:wg(e)}return Array.isArray(t.richText)?t.richText.map(e=>e.text??``).join(``):typeof t.text==`string`&&typeof t.hyperlink==`string`?t.text:typeof t.checkbox==`boolean`?t.checkbox:String(e)}function Tg(e,t,n){let r=mg(e.getRow(1)),i=new Set(t),a=new Set(n),o=t=>{let n=hg(e.getColumn(t)),r=new Set,i=new Map,a=!1;for(let e=Eg;e<n.length;e++){let t=wg(n[e]);t===null||typeof t==`number`&&isNaN(t)?a=!0:ug(t)?i.has(t.code)||(i.set(t.code,t),r.add(t)):r.add(t)}let o=[...r];return a&&o.push(null),o},s=t=>{let n=hg(e.getColumn(t)),r=1/0,i=-1/0,a=!1,o=!0;for(let e=Eg;e<n.length;e++){let t=wg(n[e]);typeof t==`number`&&!isNaN(t)&&(a=!0,t<r&&(r=t),t>i&&(i=t),Number.isInteger(t)||(o=!1))}return a?{minValue:r,maxValue:i,allInteger:o}:null},c=t=>{let n=hg(e.getColumn(t)),r=!1;for(let e=Eg;e<n.length;e++){let t=n[e],i=wg(t);if(i==null)continue;if(i instanceof Date){r=!0;continue}let a=t?.style?.numFmt,o=typeof a==`string`?a:a?.formatCode;if(typeof o==`string`&&/(?:^|[^\\])[dmyhs]/i.test(o)){r=!0;continue}return}return r?`14`:void 0},l=e=>{let t=c(e);return t===void 0?{}:{numFmtId:t}},u=[];for(let e of lee(1,r.length)){let t=r[e],n=String(t);if(i.has(n))u.push({name:n,sharedItems:o(e),...l(e)});else if(a.has(n)){let t=s(e);u.push({name:n,sharedItems:null,...l(e),containsNumber:t?`1`:void 0,minValue:t?.minValue,maxValue:t?.maxValue,containsInteger:t?.allInteger?`1`:void 0})}else u.push({name:n,sharedItems:null,...l(e)})}return u}var Eg,Dg,Og=n((()=>{pg(),qe(),Qa(),Ms(),Yo(),E(),O(),hr(),Eg=2,Dg=10}));function kg(e){return e.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function Ag(e){return kg(e).replace(/"/g,`&quot;`).replace(/'/g,`&apos;`)}var jg=n((()=>{}));function Mg(e,t){for(let n of e.children)Ng(n,yc,t)}function Ng(e,t,n){switch(e.kind){case`group`:{let r=e.transform?uc(t,e.transform):t,i=e.clip?Pg(e.clip,r):void 0,a=i!==void 0&&n.pushClip!==void 0;a&&n.pushClip(i);let o=e.svgFilterId!==void 0&&n.pushFilter!==void 0;o&&n.pushFilter(e.svgFilterId);for(let t of e.children)Ng(t,r,n);o&&n.popFilter?.(),a&&n.popClip?.();return}case`rect`:{if(e.width<=0||e.height<=0)return;let r=Lg(e.paint,t);if(Fg(t)){let i=dc(t,e.x,e.y),a=dc(t,e.x+e.width,e.y+e.height);n.rect(Math.min(i.x,a.x),Math.min(i.y,a.y),Math.abs(a.x-i.x),Math.abs(a.y-i.y),(e.rx??0)*fc(t),r);return}n.polyline([dc(t,e.x,e.y),dc(t,e.x+e.width,e.y),dc(t,e.x+e.width,e.y+e.height),dc(t,e.x,e.y+e.height)],!0,r);return}case`ellipse`:{if(e.rx<=0||e.ry<=0)return;let r=Lg(e.paint,t);if(Fg(t)){let i=dc(t,e.cx,e.cy);n.ellipse(i.x,i.y,Math.abs(e.rx*t.a),Math.abs(e.ry*t.d),r);return}n.path(zg(e.cx,e.cy,e.rx,e.ry,t),r);return}case`sector`:{let r=Lg(e.paint,t);if(!Ig(t)){n.path(Rg(hc(e.cx,e.cy,e.radius,e.innerRadius,e.startAngle,e.endAngle),t),r);return}let i=dc(t,e.cx,e.cy),a=fc(t),o=pc(t)*Math.PI/180;n.sector(i.x,i.y,e.radius*a,e.innerRadius*a,e.startAngle+o,e.endAngle+o,r);return}case`line`:{let r=dc(t,e.x1,e.y1),i=dc(t,e.x2,e.y2);n.polyline([r,i],!1,Lg(e.paint,t));return}case`polyline`:n.polyline(e.points.map(e=>dc(t,e.x,e.y)),e.closed??!1,Lg(e.paint,t));return;case`path`:n.path(Rg(e.commands,t),Lg(e.paint,t));return;case`text`:{let r=dc(t,e.x,e.y),i=fc(t);n.text(r.x,r.y,e.lines.map(n=>({text:n.text,dy:n.dy*i,...n.x===void 0?{}:{x:dc(t,n.x,e.y).x}})),{...e.style,size:e.style.size*i},(e.rotate??0)+pc(t));return}}}function Pg(e,t){let n=[dc(t,e.x,e.y),dc(t,e.x+e.width,e.y),dc(t,e.x+e.width,e.y+e.height),dc(t,e.x,e.y+e.height)],r=n[0].x,i=n[0].x,a=n[0].y,o=n[0].y;for(let e of n)r=Math.min(r,e.x),i=Math.max(i,e.x),a=Math.min(a,e.y),o=Math.max(o,e.y);return{x:r,y:a,width:i-r,height:o-a}}function Fg(e){return Math.abs(e.b)<1e-9&&Math.abs(e.c)<1e-9}function Ig(e){if(e.a*e.d-e.b*e.c<=0)return!1;let t=e.a*e.a+e.b*e.b,n=e.c*e.c+e.d*e.d,r=1e-9*Math.max(1,t,n);return Math.abs(t-n)<r&&Math.abs(e.a*e.c+e.b*e.d)<r}function Lg(e,t){if(e.stroke!==void 0&&e.strokeWidth!==void 0&&!(e.strokeWidth>0)){let{stroke:t,strokeWidth:n,dash:r,...i}=e;return i}let n=fc(t),r=e.dash===void 0||e.dash.length===0?void 0:e.dash.length%2==0?e.dash:[...e.dash,...e.dash];return n===1&&r===e.dash?e:{...e,...e.strokeWidth===void 0?{}:{strokeWidth:e.strokeWidth*n},...r===void 0?{}:{dash:r.map(e=>e*n)}}}function Rg(e,t){return e.map(e=>{switch(e.op){case`move`:case`line`:{let n=dc(t,e.x,e.y);return{op:e.op,x:n.x,y:n.y}}case`cubic`:{let n=dc(t,e.x1,e.y1),r=dc(t,e.x2,e.y2),i=dc(t,e.x,e.y);return{op:`cubic`,x1:n.x,y1:n.y,x2:r.x,y2:r.y,x:i.x,y:i.y}}case`close`:return e}})}function zg(e,t,n,r,i){let a=n*bc,o=r*bc,s=(e,t)=>dc(i,e,t),c=s(e+n,t),l=[{op:`move`,x:c.x,y:c.y}],u=(e,t,n,r,i,a)=>{let o=s(e,t),c=s(n,r),u=s(i,a);l.push({op:`cubic`,x1:o.x,y1:o.y,x2:c.x,y2:c.y,x:u.x,y:u.y})};return u(e+n,t+o,e+a,t+r,e,t+r),u(e-a,t+r,e-n,t+o,e-n,t),u(e-n,t-o,e-a,t-r,e,t-r),u(e+a,t-r,e+n,t-o,e+n,t),l.push({op:`close`}),l}var Bg=n((()=>{xc()}));function Vg(e,t={}){let n=new Wg;e.svgDefs&&e.svgDefs.length>0&&n.addDefs(e.svgDefs),Mg(e,n);let r=t.width??e.width,i=t.height??e.height,a=[`<svg xmlns="http://www.w3.org/2000/svg" width="${F(r)}" height="${F(i)}" viewBox="0 0 ${F(e.width)} ${F(e.height)}">`];return t.comment!==void 0&&a.push(`<!-- ${t.comment.replace(/-{2,}/g,`-`)} -->`),t.background!==void 0&&a.push(`<rect x="0" y="0" width="${F(e.width)}" height="${F(e.height)}" fill="${Ag(t.background)}"/>`),a.push(n.markup()),a.push(`</svg>`),a.join(``)}function F(e){if(!Number.isFinite(e))return`0`;let t=Math.round(e*100)/100;return Object.is(t,-0)?`0`:String(t)}function Hg(e){let t=e=>Math.max(0,Math.min(255,Math.round(e*255))).toString(16).padStart(2,`0`);return`#${t(e.r)}${t(e.g)}${t(e.b)}`}function Ug(e,t=!1){let n=[];return e.fill&&!t?(n.push(` fill="${Hg(e.fill)}"`),e.fill.a<1&&n.push(` fill-opacity="${F(e.fill.a)}"`)):n.push(` fill="none"`),e.stroke&&(n.push(` stroke="${Hg(e.stroke)}"`),e.stroke.a<1&&n.push(` stroke-opacity="${F(e.stroke.a)}"`),e.strokeWidth!==void 0&&e.strokeWidth!==1&&n.push(` stroke-width="${F(e.strokeWidth)}"`),e.dash&&e.dash.length>0&&n.push(` stroke-dasharray="${e.dash.map(F).join(` `)}"`),e.lineJoin!==void 0&&e.lineJoin!==`miter`&&n.push(` stroke-linejoin="${e.lineJoin}"`),e.lineCap!==void 0&&e.lineCap!==`butt`&&n.push(` stroke-linecap="${e.lineCap}"`)),e.fillRule===`evenodd`&&n.push(` fill-rule="evenodd"`),n.join(``)}var Wg,Gg=n((()=>{jg(),Bg(),xc(),Wg=class{constructor(){this.parts=[],this.defs=[],this.clipDepth=0,this.filterDepth=0}markup(){let e=`</g>`.repeat(this.clipDepth+this.filterDepth);return(this.defs.length>0?`<defs>${this.defs.join(``)}</defs>`:``)+this.parts.join(``)+e}pushClip(e){let t=`dc${this.defs.length}`;this.defs.push(`<clipPath id="${t}"><rect x="${F(e.x)}" y="${F(e.y)}" width="${F(e.width)}" height="${F(e.height)}"/></clipPath>`),this.parts.push(`<g clip-path="url(#${t})">`),this.clipDepth++}popClip(){this.clipDepth>0&&(this.parts.push(`</g>`),this.clipDepth--)}pushFilter(e){this.parts.push(`<g filter="url(#${Ag(e)})">`),this.filterDepth++}popFilter(){this.filterDepth>0&&(this.parts.push(`</g>`),this.filterDepth--)}addDefs(e){this.defs.push(...e)}rect(e,t,n,r,i,a){n<=0||r<=0||this.parts.push(`<rect x="${F(e)}" y="${F(t)}" width="${F(n)}" height="${F(r)}"`+(i>0?` rx="${F(i)}"`:``)+Ug(a)+`/>`)}ellipse(e,t,n,r,i){n<=0||r<=0||this.parts.push(n===r?`<circle cx="${F(e)}" cy="${F(t)}" r="${F(n)}"${Ug(i)}/>`:`<ellipse cx="${F(e)}" cy="${F(t)}" rx="${F(n)}" ry="${F(r)}"${Ug(i)}/>`)}sector(e,t,n,r,i,a,o){if(n<=0)return;let s=a-i,c=Math.abs(s);if(c>=Math.PI*2-1e-9){if(r>0){let i=(n,r)=>`A ${F(n)} ${F(n)} 0 1 ${r} ${F(e+n)} ${F(t)} A ${F(n)} ${F(n)} 0 1 ${r} ${F(e-n)} ${F(t)}`;this.parts.push(`<path d="M ${F(e-n)} ${F(t)} ${i(n,1)} M ${F(e-r)} ${F(t)} ${i(r,0)} Z"`+Ug({...o,fillRule:`evenodd`})+`/>`);return}this.parts.push(`<circle cx="${F(e)}" cy="${F(t)}" r="${F(n)}"${Ug(o)}/>`);return}let l=+(c>Math.PI),u=+(s>=0),d=(n,r)=>({x:e+Math.cos(n)*r,y:t+Math.sin(n)*r}),f=d(i,n),p=d(a,n);if(r>0){let e=d(a,r),t=d(i,r);this.parts.push(`<path d="M ${F(f.x)} ${F(f.y)} A ${F(n)} ${F(n)} 0 ${l} ${u} ${F(p.x)} ${F(p.y)} L ${F(e.x)} ${F(e.y)} A ${F(r)} ${F(r)} 0 ${l} ${u===1?0:1} ${F(t.x)} ${F(t.y)} Z"`+Ug(o)+`/>`);return}this.parts.push(`<path d="M ${F(e)} ${F(t)} L ${F(f.x)} ${F(f.y)} A ${F(n)} ${F(n)} 0 ${l} ${u} ${F(p.x)} ${F(p.y)} Z"`+Ug(o)+`/>`)}polyline(e,t,n){if(e.length<2)return;let r=e.map(e=>`${F(e.x)},${F(e.y)}`).join(` `);this.parts.push(`<${t?`polygon`:`polyline`} points="${r}"${Ug(n,!t)}/>`)}path(e,t){if(e.length===0)return;let n=e.map(e=>{switch(e.op){case`move`:return`M ${F(e.x)} ${F(e.y)}`;case`line`:return`L ${F(e.x)} ${F(e.y)}`;case`cubic`:return`C ${F(e.x1)} ${F(e.y1)} ${F(e.x2)} ${F(e.y2)} ${F(e.x)} ${F(e.y)}`;case`close`:return`Z`}}).join(` `);this.parts.push(`<path d="${n}"${Ug(t)}/>`)}text(e,t,n,r,i){let a=n.filter(e=>e.text!==``);if(a.length===0||!r.fill)return;let o=` font-size="${F(r.size)}" fill="${Hg(r.fill)}"`+(r.fill.a<1?` fill-opacity="${F(r.fill.a)}"`:``)+` text-anchor="${r.anchor??`start`}" font-family="${Ag(r.family??`arial`)}"`+(r.bold?` font-weight="bold"`:``)+(r.italic?` font-style="italic"`:``)+(i===0?``:` transform="rotate(${F(i)} ${F(e)} ${F(t)})"`);if(a.length===1&&a[0].dy===0&&a[0].x===void 0){this.parts.push(`<text x="${F(e)}" y="${F(t)}"${o}>${kg(a[0].text)}</text>`);return}let s=a.map(n=>`<tspan x="${F(n.x??e)}" y="${F(t+n.dy)}">${kg(n.text)}</tspan>`).join(``);this.parts.push(`<text x="${F(e)}" y="${F(t)}"${o}>${s}</text>`)}}}));function Kg(e){let t={},n=e.length,r=0;for(;r<n;){for(;r<n&&!qg(e.charCodeAt(r));)r++;if(r>=n)break;let i=r;for(;r<n&&qg(e.charCodeAt(r));)r++;let a=e.slice(i,r),o=r;for(;o<n&&Jg(e.charCodeAt(o));)o++;if(o>=n||e.charCodeAt(o)!==61)continue;for(o++;o<n&&Jg(e.charCodeAt(o));)o++;let s=e.charCodeAt(o);if(s!==34&&s!==39){r=o;continue}o++;let c=o;for(;o<n&&e.charCodeAt(o)!==s;)o++;t[a]=e.slice(c,o),r=o<n?o+1:o}return t}function qg(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===95||e===58||e===45}function Jg(e){return e===32||e===9||e===10||e===13}function Yg(e){if(!e)return[];let t=[];for(let n of e.trim().split(/[\s,]+/)){if(n===``)continue;let e=Number(n);Number.isFinite(e)&&t.push(e)}return t}function Xg(e){let t=Yg(e),n=[];for(let e=0;e+1<t.length;e+=2)n.push({x:t[e],y:t[e+1]});return n}function Zg(e){if(!e)return;let t=e.trim();if(t===``||t===`none`||t===`transparent`)return;let n=/^rgba?\(([^)]*)\)$/i.exec(t);if(n)return Qg(n[1]);let r=t.startsWith(`#`)?t.slice(1):t;if(!/^[0-9a-fA-F]+$/.test(r))return;let i=e=>Number.parseInt(r[e]+r[e],16)/255,a=e=>Number.parseInt(r.slice(e,e+2),16)/255;switch(r.length){case 3:return{r:i(0),g:i(1),b:i(2),a:1};case 4:return{r:i(0),g:i(1),b:i(2),a:i(3)};case 6:return{r:a(0),g:a(2),b:a(4),a:1};case 8:return{r:a(0),g:a(2),b:a(4),a:a(6)};default:return}}function Qg(e){let t=e.trim().split(/[\s,/]+/).filter(e=>e!==``);if(t.length<3||t.length>4)return;let n=e=>{let t=Number.parseFloat(e);if(Number.isFinite(t))return $g(e.endsWith(`%`)?t/100:t/255)},r=n(t[0]),i=n(t[1]),a=n(t[2]);if(r===void 0||i===void 0||a===void 0)return;let o=1;if(t.length===4){let e=Number.parseFloat(t[3]);if(!Number.isFinite(e))return;o=$g(t[3].endsWith(`%`)?e/100:e)}return{r,g:i,b:a,a:o}}function $g(e){return e<0?0:e>1?1:e}function e_(e){if(!e)return;let t=/rotate\(([^)]*)\)/i.exec(e);if(!t)return;let n=Yg(t[1]);if(n.length!==0)return{angle:n[0],cx:n[1]??0,cy:n[2]??0}}function t_(e,t=0){if(!e.includes(`<tspan`))return[{text:r_(e),dy:0}];let n=[],r=/<tspan\b([^>]*)>([\s\S]*?)<\/tspan>/g,i,a=0,o=0,s=e=>{let t=r_(e);t.trim()!==``&&n.push({text:t,dy:a})};for(;(i=r.exec(e))!==null;){s(e.slice(o,i.index)),o=i.index+i[0].length;let r=Kg(i[1]);a+=n_(r.dy,t);let c=r.x===void 0?NaN:Number.parseFloat(r.x);n.push({text:r_(i[2]),...Number.isFinite(c)?{x:c}:{},dy:a})}return s(e.slice(o)),n.length>0?n:[{text:r_(e),dy:0}]}function n_(e,t){if(e===void 0)return 0;let n=Number.parseFloat(e);if(!Number.isFinite(n))return 0;let r=e.trim();return r.endsWith(`em`)?n*t:r.endsWith(`%`)?n/100*t:n}function r_(e){let t=``,n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i===60?n++:i===62?n>0?n--:t+=`>`:n===0&&(t+=e[r])}return i_(t)}function i_(e){return e.includes(`&`)?e.replace(/&(?:([A-Za-z]+)|#x([0-9A-Fa-f]+)|#(\d+));/g,(e,t,n,r)=>{if(t!==void 0)switch(t){case`amp`:return`&`;case`lt`:return`<`;case`gt`:return`>`;case`quot`:return`"`;case`apos`:return`'`;default:return e}let i=n===void 0?Number.parseInt(r,10):Number.parseInt(n,16),a=i>=55296&&i<=57343;return Number.isFinite(i)&&i>=0&&i<=1114111&&!a?String.fromCodePoint(i):e}):e}var a_=n((()=>{}));function o_(e){let t={type:e.type,sparklines:e.sparklines};return e.lineWeight!==void 0&&(t.lineWeight=e.lineWeight),e.markers!==void 0&&(t.markers=e.markers),e.high!==void 0&&(t.high=e.high),e.low!==void 0&&(t.low=e.low),e.first!==void 0&&(t.first=e.first),e.last!==void 0&&(t.last=e.last),e.negative!==void 0&&(t.negative=e.negative),e.lineColor&&(t.colorSeries=s_(e.lineColor)),e.negativeColor&&(t.colorNegative=s_(e.negativeColor)),e.axisColor&&(t.colorAxis=s_(e.axisColor)),e.markerColor&&(t.colorMarkers=s_(e.markerColor)),e.highColor&&(t.colorHigh=s_(e.highColor)),e.lowColor&&(t.colorLow=s_(e.lowColor)),e.firstColor&&(t.colorFirst=s_(e.firstColor)),e.lastColor&&(t.colorLast=s_(e.lastColor)),e.minAxisType&&(t.minAxisType=e.minAxisType),e.maxAxisType&&(t.maxAxisType=e.maxAxisType),e.manualMin!==void 0&&(t.manualMin=e.manualMin),e.manualMax!==void 0&&(t.manualMax=e.manualMax),e.displayXAxis!==void 0&&(t.displayXAxis=e.displayXAxis),e.rightToLeft!==void 0&&(t.rightToLeft=e.rightToLeft),e.displayEmptyCellsAs&&(t.displayEmptyCellsAs=e.displayEmptyCellsAs),e.dateAxis&&(t.dateAxis=e.dateAxis),t}function s_(e){return{rgb:e.replace(/^#/,``).toUpperCase()}}function c_(e){if(!e||e.length===0)return``;let t=[];t.push(`<x14:sparklineGroups xmlns:xm="http://schemas.microsoft.com/office/excel/2006/main">`);for(let n of e)t.push(l_(n));return t.push(`</x14:sparklineGroups>`),t.join(``)}function l_(e){let t=[];e.type!==void 0&&e.type!==`line`&&t.push(`type="${e.type}"`),e.lineWeight!==void 0&&t.push(`lineWeight="${e.lineWeight}"`),t.push(`displayEmptyCellsAs="${e.displayEmptyCellsAs??`gap`}"`),e.markers&&t.push(`markers="1"`),e.high&&t.push(`high="1"`),e.low&&t.push(`low="1"`),e.first&&t.push(`first="1"`),e.last&&t.push(`last="1"`),e.negative&&t.push(`negative="1"`),e.displayXAxis&&t.push(`displayXAxis="1"`),e.displayHidden&&t.push(`displayHidden="1"`),e.minAxisType&&e.minAxisType!==`individual`&&t.push(`minAxisType="${e.minAxisType}"`),e.maxAxisType&&e.maxAxisType!==`individual`&&t.push(`maxAxisType="${e.maxAxisType}"`),e.manualMin!==void 0&&t.push(`manualMin="${e.manualMin}"`),e.manualMax!==void 0&&t.push(`manualMax="${e.manualMax}"`),e.rightToLeft&&t.push(`rightToLeft="1"`);let n=[];n.push(`<x14:sparklineGroup${t.length>0?` ${t.join(` `)}`:``}>`);for(let[t,r]of __)n.push(`<x14:${t} ${u_(e[r]??g_[r])}/>`);e.dateAxis&&n.push(`<xm:f>${d_(e.dateAxis)}</xm:f>`),n.push(`<x14:sparklines>`);for(let t of e.sparklines)n.push(`<x14:sparkline>`),n.push(`<xm:f>${d_(t.dataRef)}</xm:f>`),n.push(`<xm:sqref>${d_(t.cellRef)}</xm:sqref>`),n.push(`</x14:sparkline>`);return n.push(`</x14:sparklines>`),n.push(`</x14:sparklineGroup>`),n.join(``)}function u_(e){let t=[];return e.rgb&&t.push(`rgb="${e.rgb}"`),e.theme!==void 0&&t.push(`theme="${e.theme}"`),e.tint!==void 0&&t.push(`tint="${e.tint}"`),e.auto&&t.push(`auto="1"`),t.join(` `)}function d_(e){return zl(e)}function f_(e){let t=[],n=/<x14:sparklineGroup\b([^>]*?)(?:\/>|>([\s\S]*?)<\/x14:sparklineGroup>)/g,r;for(;(r=n.exec(e))!==null;){let e=p_(r[1]??``,r[2]??``);t.push(e)}return t}function p_(e,t){let n={sparklines:[]},r=/(\w+)="([^"]*)"/g,i;for(;(i=r.exec(e))!==null;){let[,e,t]=i;switch(e){case`type`:n.type=t;break;case`lineWeight`:n.lineWeight=parseFloat(t);break;case`displayEmptyCellsAs`:n.displayEmptyCellsAs=t;break;case`markers`:n.markers=t===`1`;break;case`high`:n.high=t===`1`;break;case`low`:n.low=t===`1`;break;case`first`:n.first=t===`1`;break;case`last`:n.last=t===`1`;break;case`negative`:n.negative=t===`1`;break;case`displayXAxis`:n.displayXAxis=t===`1`;break;case`displayHidden`:n.displayHidden=t===`1`;break;case`minAxisType`:n.minAxisType=t;break;case`maxAxisType`:n.maxAxisType=t;break;case`manualMin`:n.manualMin=parseFloat(t);break;case`manualMax`:n.manualMax=parseFloat(t);break;case`rightToLeft`:n.rightToLeft=t===`1`}}for(let e of[`colorSeries`,`colorNegative`,`colorAxis`,`colorMarkers`,`colorFirst`,`colorLast`,`colorHigh`,`colorLow`]){let r=v_.get(e).exec(t);r&&(n[e]=m_(r[1]))}let a=/<x14:sparkline>\s*<xm:f>([\s\S]*?)<\/xm:f>\s*<xm:sqref>([\s\S]*?)<\/xm:sqref>\s*<\/x14:sparkline>/g,o;for(;(o=a.exec(t))!==null;)n.sparklines.push({dataRef:h_(o[1]),cellRef:h_(o[2])});return n}function m_(e){let t={},n=/(\w+)="([^"]*)"/g,r;for(;(r=n.exec(e))!==null;){let[,e,n]=r;switch(e){case`rgb`:t.rgb=n;break;case`theme`:t.theme=parseInt(n,10);break;case`tint`:t.tint=parseFloat(n);break;case`auto`:t.auto=n===`1`}}return t}function h_(e){return e.replace(/&(?:amp|lt|gt|quot|apos);/g,e=>{switch(e){case`&amp;`:return`&`;case`&lt;`:return`<`;case`&gt;`:return`>`;case`&quot;`:return`"`;case`&apos;`:return`'`;default:return e}})}var g_,__,v_,y_=n((()=>{Yl(),g_={colorSeries:{rgb:`FF376092`},colorNegative:{rgb:`FFD00000`},colorAxis:{rgb:`FF000000`},colorMarkers:{rgb:`FFD00000`},colorFirst:{rgb:`FFD00000`},colorLast:{rgb:`FFD00000`},colorHigh:{rgb:`FFD00000`},colorLow:{rgb:`FFD00000`}},__=[[`colorSeries`,`colorSeries`],[`colorNegative`,`colorNegative`],[`colorAxis`,`colorAxis`],[`colorMarkers`,`colorMarkers`],[`colorFirst`,`colorFirst`],[`colorLast`,`colorLast`],[`colorHigh`,`colorHigh`],[`colorLow`,`colorLow`]],v_=new Map([[`colorSeries`,/<x14:colorSeries\b([^/]*)\/>/],[`colorNegative`,/<x14:colorNegative\b([^/]*)\/>/],[`colorAxis`,/<x14:colorAxis\b([^/]*)\/>/],[`colorMarkers`,/<x14:colorMarkers\b([^/]*)\/>/],[`colorFirst`,/<x14:colorFirst\b([^/]*)\/>/],[`colorLast`,/<x14:colorLast\b([^/]*)\/>/],[`colorHigh`,/<x14:colorHigh\b([^/]*)\/>/],[`colorLow`,/<x14:colorLow\b([^/]*)\/>/]])}));function b_(e){return e.startsWith(`/`)?e.slice(1):e}function x_(e){let t=Xv.exec(e);if(t)return parseInt(t[1],10)}function S_(e){let t=Zv.exec(e);if(t)return parseInt(t[1],10)}function C_(e){return e.startsWith(`xl/media/`)}function w_(e){let t=$v.exec(e);return t?t[1]:void 0}function T_(e){return Qv.test(e)}function E_(e){let t=/^xl\/theme\/([a-zA-Z0-9]+)[.]xml$/.exec(e);return t?t[1]:void 0}function D_(e){return C_(e)||T_(e)}function O_(e){let t=ey.exec(e);return t?t[1]:void 0}function k_(e){let t=ty.exec(e);return t?t[1]:void 0}function A_(e){let t=ny.exec(e);return t?t[1]:void 0}function j_(e){let t=ry.exec(e);return t?t[1]:void 0}function M_(e){let t=iy.exec(e);return t?t[1]:void 0}function N_(e){let t=ay.exec(e);return t?t[1]:void 0}function P_(e){return oy.test(e)}function F_(e){let t=sy.exec(e);return t?t[1]:void 0}function I_(e){let t=cy.exec(e);return t?t[1]:void 0}function L_(e){let t=ly.exec(e);return t?t[1]:void 0}function R_(e){let t=uy.exec(e);return t?t[1]:void 0}function z_(e){let t=dy.exec(e);return t?t[1]:void 0}function B_(e){let t=fy.exec(e);return t?t[1]:void 0}function V_(e){let t=py.exec(e);return t?parseInt(t[1],10):void 0}function H_(e){let t=my.exec(e);return t?parseInt(t[1],10):void 0}function U_(e){return e.startsWith(`/`)?e:`/${e}`}function W_(e){return e.startsWith(`/`)?e.slice(1):e}function G_(e){return`xl/theme/${e}.xml`}function K_(e){return`xl/media/${e}`}function q_(e){return`xl/worksheets/sheet${e}.xml`}function J_(e){return`xl/worksheets/_rels/sheet${e}.xml.rels`}function Y_(e){return`worksheets/sheet${e}.xml`}function X_(e){return`xl/comments${e}.xml`}function Z_(e){return`xl/${e}.xml`}function Q_(e){return`xl/drawings/vmlDrawing${e}.vml`}function $_(e){return`xl/drawings/vmlDrawingHF${e}.vml`}function ev(e){return`xl/drawings/_rels/vmlDrawingHF${e}.vml.rels`}function tv(e){return`xl/tables/${e}`}function nv(e){return`xl/drawings/${e}.xml`}function rv(e){return`xl/drawings/_rels/${e}.xml.rels`}function iv(e){return`xl/pivotCache/pivotCacheDefinition${e}.xml`}function av(e){return`xl/pivotCache/_rels/pivotCacheDefinition${e}.xml.rels`}function ov(e){return`xl/pivotCache/pivotCacheRecords${e}.xml`}function sv(e){return`pivotCacheRecords${e}.xml`}function cv(e){return`xl/pivotTables/pivotTable${e}.xml`}function lv(e){return`xl/pivotTables/${e}.xml`}function uv(e){return`xl/pivotTables/_rels/pivotTable${e}.xml.rels`}function dv(e){return`xl/externalLinks/externalLink${e}.xml`}function fv(e){return`xl/externalLinks/_rels/externalLink${e}.xml.rels`}function pv(e){return`externalLinks/externalLink${e}.xml`}function mv(e){return`../pivotCache/pivotCacheDefinition${e}.xml`}function hv(e){return`pivotCache/pivotCacheDefinition${e}.xml`}function gv(e){return`../comments${e}.xml`}function _v(e){return`../drawings/vmlDrawing${e}.vml`}function vv(e){return`../drawings/vmlDrawingHF${e}.vml`}function yv(e){return`../drawings/${e}.xml`}function bv(e){return`../pivotTables/pivotTable${e}.xml`}function xv(e){return`../tables/${e}`}function Sv(e){return`../media/${e}`}function Cv(e){return`xl/ctrlProps/ctrlProp${e}.xml`}function wv(e){let t=gy.exec(e);return t?parseInt(t[1],10):void 0}function Tv(e){let t=_y.exec(e);return t?parseInt(t[1],10):void 0}function Ev(e){let t=vy.exec(e);return t?parseInt(t[1],10):void 0}function Dv(e){let t=yy.exec(e);return t?parseInt(t[1],10):void 0}function Ov(e){let t=by.exec(e);return t?parseInt(t[1],10):void 0}function kv(e){let t=xy.exec(e);return t?parseInt(t[1],10):void 0}function Av(e){return`xl/charts/chart${e}.xml`}function jv(e){return`xl/charts/_rels/chart${e}.xml.rels`}function Mv(e){return`xl/charts/style${e}.xml`}function Nv(e){return`xl/charts/colors${e}.xml`}function Pv(e){return`xl/charts/styleEx${e}.xml`}function Fv(e){return`xl/charts/colorsEx${e}.xml`}function Iv(e){return`../charts/chart${e}.xml`}function Lv(e){return`xl/drawings/chartUserShape${e}.xml`}function Rv(e){return`../drawings/chartUserShape${e}.xml`}function zv(e){return`style${e}.xml`}function Bv(e){return`colors${e}.xml`}function Vv(e){return`styleEx${e}.xml`}function Hv(e){return`colorsEx${e}.xml`}function Uv(e){let t=Sy.exec(e);return t?parseInt(t[1],10):void 0}function Wv(e){let t=Cy.exec(e);return t?parseInt(t[1],10):void 0}function Gv(e){return`xl/charts/chartEx${e}.xml`}function Kv(e){return`xl/charts/_rels/chartEx${e}.xml.rels`}function qv(e){return`../charts/chartEx${e}.xml`}function cne(e){return`../ctrlProps/ctrlProp${e}.xml`}function Jv(e,t){let n=(t.startsWith(`/`)?t.slice(1):`${e.endsWith(`/`)?e:e+`/`}${t}`).split(`/`),r=[];for(let e of n)if(e===`.`||e===``)continue;else e===`..`?r.pop():r.push(e);return r.join(`/`)}function lne(e){let t=wy.exec(e);return t?parseInt(t[1],10):void 0}function une(e){let t=Ty.exec(e);return t?parseInt(t[1],10):void 0}function Yv(e){return`xl/chartsheets/sheet${e}.xml`}function dne(e){return`xl/chartsheets/_rels/sheet${e}.xml.rels`}var I,Xv,Zv,Qv,$v,ey,ty,ny,ry,iy,ay,oy,sy,cy,ly,uy,dy,fy,py,my,hy,gy,_y,vy,yy,by,xy,Sy,Cy,wy,Ty,Ey=n((()=>{I={contentTypes:`[Content_Types].xml`,rootRels:`_rels/.rels`,docPropsApp:`docProps/app.xml`,docPropsCore:`docProps/core.xml`,xlWorkbook:`xl/workbook.xml`,xlWorkbookRels:`xl/_rels/workbook.xml.rels`,xlSharedStrings:`xl/sharedStrings.xml`,xlStyles:`xl/styles.xml`,xlTheme1:`xl/theme/theme1.xml`,xlFeaturePropertyBag:`xl/featurePropertyBag/featurePropertyBag.xml`,xlMetadata:`xl/metadata.xml`},Xv=/^xl\/worksheets\/sheet(\d+)[.]xml$/,Zv=/^xl\/worksheets\/_rels\/sheet(\d+)[.]xml[.]rels$/,Qv=/^xl\/theme\/[a-zA-Z0-9]+[.]xml$/,$v=/^xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/,ey=/^xl\/drawings\/(drawing\d+)[.]xml$/,ty=/^xl\/drawings\/_rels\/(drawing\d+)[.]xml[.]rels$/,ny=/^xl\/drawings\/((?:chartUserShape|chartUserShapes|userDrawing)\d+)[.]xml$/,ry=/^xl\/drawings\/(vmlDrawing\d+)[.]vml$/,iy=/^xl\/drawings\/(vmlDrawingHF\d+)[.]vml$/,ay=/^xl\/drawings\/_rels\/(vmlDrawingHF\d+)[.]vml[.]rels$/,oy=/^xl\/(?:comments(\d+)|comments\/comment(\d+))[.]xml$/,sy=/^xl\/tables\/(table\d+)[.]xml$/,cy=/^xl\/pivotTables\/(pivotTable\d+)[.]xml$/,ly=/^xl\/pivotTables\/_rels\/(pivotTable\d+)[.]xml[.]rels$/,uy=/^xl\/pivotCache\/(pivotCacheDefinition\d+)[.]xml$/,dy=/^xl\/pivotCache\/_rels\/(pivotCacheDefinition\d+)[.]xml[.]rels$/,fy=/^xl\/pivotCache\/(pivotCacheRecords\d+)[.]xml$/,py=/^xl\/externalLinks\/externalLink(\d+)[.]xml$/,my=/^xl\/externalLinks\/_rels\/externalLink(\d+)[.]xml[.]rels$/,hy={workbookStyles:`styles.xml`,workbookSharedStrings:`sharedStrings.xml`,workbookTheme1:`theme/theme1.xml`,workbookFeaturePropertyBag:`featurePropertyBag/featurePropertyBag.xml`,workbookMetadata:`metadata.xml`},gy=/^xl\/charts\/chart(\d+)[.]xml$/,_y=/^xl\/charts\/_rels\/chart(\d+)[.]xml[.]rels$/,vy=/^xl\/charts\/style(\d+)[.]xml$/,yy=/^xl\/charts\/colors(\d+)[.]xml$/,by=/^xl\/charts\/styleEx(\d+)[.]xml$/,xy=/^xl\/charts\/colorsEx(\d+)[.]xml$/,Sy=/^xl\/charts\/chartEx(\d+)[.]xml$/,Cy=/^xl\/charts\/_rels\/chartEx(\d+)[.]xml[.]rels$/,wy=/^xl\/chartsheets\/sheet(\d+)[.]xml$/,Ty=/^xl\/chartsheets\/_rels\/sheet(\d+)[.]xml[.]rels$/}));function Dy(e){return Sv(e.name&&e.extension&&e.name.endsWith(`.${e.extension}`)?e.name:`${e.name}.${e.extension}`)}function Oy(e){return!!e.link&&e.buffer==null&&e.base64==null&&e.filename==null}function fne(e){let t=/\.([a-zA-Z0-9]{2,5})(?:[?#].*)?$/.exec(e);switch(t?t[1].toLowerCase():``){case`jpg`:case`jpeg`:return`jpeg`;case`gif`:return`gif`;default:return`png`}}function ky(e,t){return Oy(t)?{Id:e,Type:N.Image,Target:t.link,TargetMode:`External`}:{Id:e,Type:N.Image,Target:Dy(t)}}function Ay(e,t,n){let r=[],i=[...t],a={};for(let t of e){let e=String(t.imageId),o=n.getBookImage(t.imageId);if(!o)continue;let s=Oy(o),c=a[e];c||(c=n.nextRId(i),a[e]=c,i.push(ky(c,o)));let l={picture:{rId:c,...s?{external:!0}:{}},range:t.range};if(t.xfrmOffX!==void 0&&(l.picture.xfrmOffX=t.xfrmOffX),t.xfrmOffY!==void 0&&(l.picture.xfrmOffY=t.xfrmOffY),t.xfrmExtCx!==void 0&&(l.picture.xfrmExtCx=t.xfrmExtCx),t.xfrmExtCy!==void 0&&(l.picture.xfrmExtCy=t.xfrmExtCy),t.rawSpPr!==void 0&&(l.picture.rawSpPr=structuredClone(t.rawSpPr)),o.svgMediaId!==void 0){let e=`svg:${o.svgMediaId}`,t=a[e];if(!t){let r=n.getBookImage(o.svgMediaId);r&&(t=n.nextRId(i),a[e]=t,i.push(ky(t,r)))}t&&(l.picture.svgRId=t)}if(t.opacity!==void 0){let e=Math.max(0,Math.min(1,t.opacity));l.picture.alphaModFix=Math.round(e*1e5)}if(t.hyperlinks&&t.hyperlinks.hyperlink){let e=n.nextRId(i);l.picture.hyperlinks={tooltip:t.hyperlinks.tooltip,rId:e},i.push({Id:e,Type:N.Hyperlink,Target:t.hyperlinks.hyperlink,TargetMode:`External`})}r.push(l)}return{anchors:r,rels:i}}function jy(e){return e.filter(e=>{if(e==null)return!1;let t=typeof e.range==`string`?void 0:e.range;return t?.pos===void 0?t?.br&&e.shape||e.group?!0:!(!t?.br&&!e.picture&&!e.graphicFrame&&!e.shape||t?.br&&!e.picture&&!e.shape&&!e.graphicFrame):!!e.picture||!!e.graphicFrame||!!e.shape||!!e.group})}function My(e,t){let n=[];for(let r of e){let e=r.anchorRange;if(!e)continue;let i=e.pos===void 0?e.br===void 0?{tl:e.tl,ext:e.ext,editAs:e.editAs??`oneCell`}:{tl:e.tl,br:e.br,editAs:e.editAs??`oneCell`}:{pos:e.pos,ext:e.ext,editAs:`absolute`},a=t+n.length+1;n.push({range:i,shape:{kind:`userShape`,cNvPrId:a,name:r.name??`Shape ${a}`,shapeType:r.shapeType,fill:r.fillColor?{color:r.fillColor}:void 0,line:r.lineColor!==void 0||r.lineWidth!==void 0?{color:r.lineColor,width:r.lineWidth}:void 0,text:r.text}})}return n}function Ny(e,t){let n=[];for(let t of e){if(t.tl===void 0||t.br===void 0)continue;let e=t.shapeId??1025;n.push({range:{editAs:`absolute`,tl:Py(t.tl),br:Py(t.br)},alternateContent:{requires:`a14`},shape:{cNvPrId:e,name:t.name||`Check Box ${Math.max(1,e-1024)}`,hidden:!0,spid:`_x0000_s${e}`,text:t.text}})}return n}function Py(e){return{nativeCol:e.col,nativeColOff:e.colOff,nativeRow:e.row,nativeRowOff:e.rowOff}}function pne(e,t){let n=[];for(let r of e){let e={...r.range};r.range?.pos!==void 0&&(e.pos={x:Fy(r.range.pos.x),y:Fy(r.range.pos.y)}),r.range?.ext?.cx!==void 0&&(e.ext={width:Fy(r.range.ext.cx),height:Fy(r.range.ext.cy)});let i=`rId${t.length+1}`,a=(r.chartExNumber??0)>0,o=a?r.chartExNumber:r.chartNumber;t.push({Id:i,Type:a?N.ChartEx:N.Chart,Target:a?`../charts/chartEx${o}.xml`:`../charts/chart${o}.xml`}),n.push({range:e,...a?{chartExNumber:o}:{chartNumber:o},...a?{alternateContent:{requires:`cx1`}}:{},graphicFrame:{rId:i,...a?{isChartEx:!0}:{},name:`Chart ${o}`}})}return n}function Fy(e){return Math.round(e/9525)}function Iy(e,t,n){let r=[],i=Math.max(t.extent?.right??100,100),a=Math.max(t.extent?.bottom??200,200);for(let o of e){let e=t.getBookImage(o.imageId);if(e===void 0)continue;let s=t.nextRId(n);n.push(ky(s,e));let c=Math.max(0,Math.min(1,o.opacity??.15));r.push({picture:{rId:s,alphaModFix:Math.round(c*1e5),...Oy(e)?{external:!0}:{}},range:{editAs:`absolute`,tl:{nativeCol:0,nativeColOff:0,nativeRow:0,nativeRowOff:0},br:{nativeCol:i,nativeColOff:0,nativeRow:a,nativeRowOff:0}}})}return r}var Ly=n((()=>{Ey(),Lf()}));function Ry(e,t,n,r,i){let a=i(e,t)?.style?.border,o=r-t+1,s=n-e+1,c=Array(o),l=Array(o),u=Array(s),d=Array(s),f=!1;for(let o=t;o<=r;o++){let r=o-t,s=i(e,o)?.style?.border;c[r]=s?.top||a?.top,l[r]=n===e?s?.bottom||a?.bottom:i(n,o)?.style?.border?.bottom||a?.bottom,(c[r]||l[r])&&(f=!0)}for(let o=e;o<=n;o++){let n=o-e,s=i(o,t)?.style?.border;u[n]=s?.left||a?.left,d[n]=r===t?s?.right||a?.right:i(o,r)?.style?.border?.right||a?.right,(u[n]||d[n])&&(f=!0)}let p=a?.diagonal,m=a?.color;if(!(!f&&!p))return{topEdges:c,bottomEdges:l,leftEdges:u,rightEdges:d,diagonal:p,color:m}}function zy(e,t,n,r,i,a){let{topEdges:o,bottomEdges:s,leftEdges:c,rightEdges:l,diagonal:u,color:d}=i,f=a(e,t).style;for(let i=e;i<=n;i++)for(let p=t;p<=r;p++){let m=a(i,p),h=Kr(f)||{},g={},_=!1;i===e&&o[p-t]&&(g.top=o[p-t],_=!0),i===n&&s[p-t]&&(g.bottom=s[p-t],_=!0),p===t&&c[i-e]&&(g.left=c[i-e],_=!0),p===r&&l[i-e]&&(g.right=l[i-e],_=!0),u&&(g.diagonal=u,_=!0),_?(d&&(g.color=d),h.border=g):delete h.border,m.style=h}}var By=n((()=>{qr()}));function Vy(e){let t=(e??`utf-8`).trim().toLowerCase();return t===``||t===`utf8`||t===`utf-8`?`utf-8`:t===`utf16le`||t===`utf-16le`||t===`ucs2`||t===`ucs-2`?`utf-16le`:t===`binary`?`latin1`:t}function Hy(e){let t=Vy(e);if(t===`utf-8`)return eb;let n=tb.get(t);return n||(n=Uy(t),tb.set(t,n)),n}function Uy(e,t){try{return new TextDecoder(e,t)}catch(t){throw TypeError(`Unsupported text encoding: ${e}`,{cause:t})}}function Wy(e){let t=Vy(e);switch(t){case`hex`:return{decode:mne};case`base64`:return new ab(!1);case`base64url`:return new ab(!0);case`ascii`:return{decode:hne};default:return Uy(t,{ignoreBOM:!0})}}function mne(e){let t=``;for(let n=0;n<e.length;n++)t+=nb[e[n]];return t}function hne(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]&127);return t}function gne(e){let t=``;for(let n=0;n<e.length;n++)t+=nb[e[n]];return t}function Gy(e,t){let n=t?ib:rb,r=``,i=0;for(;i+2<e.length;i+=3){let t=e[i],a=e[i+1],o=e[i+2];r+=n[t>>>2]+n[(t&3)<<4|a>>>4]+n[(a&15)<<2|o>>>6]+n[o&63]}let a=e.length-i;if(a===1){let a=e[i];r+=n[a>>>2]+n[(a&3)<<4],t||(r+=`==`)}else if(a===2){let a=e[i],o=e[i+1];r+=n[a>>>2]+n[(a&3)<<4|o>>>4]+n[(o&15)<<2],t||(r+=`=`)}return r}function _ne(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]&127);return t}function Ky(e,t){let n=Vy(t);switch(n){case`hex`:return gne(e);case`base64`:return Gy(e,!1);case`base64url`:return Gy(e,!0);case`ascii`:return _ne(e);default:return Hy(n).decode(e)}}function qy(e){return $y.encode(e)}function Jy(e,t){return Hy(t).decode(e)}function L(e,t){let n=e.length;if(n===0)return new Uint8Array;if(n===1){let t=e[0];return t.constructor===Uint8Array?t:new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}if(t===void 0){let r=0;for(let t=0;t<n;t++)r+=e[t].length;t=r}let r=new Uint8Array(t),i=0;for(let t=0;t<n;t++){let n=e[t];r.set(n,i),i+=n.length}return r}function Yy(e){let t=globalThis.Buffer;return t?t.from(e.buffer,e.byteOffset,e.byteLength):e}function Xy(e,t,n){if(!Number.isInteger(t)||t<0||t+n>e.length)throw RangeError(`cannot read ${n} byte(s) at offset ${t}: length is ${e.length}`)}function vne(e,t){return Xy(e,t,2),(e[t]|e[t+1]<<8)>>>0}function Zy(e,t){return Xy(e,t,4),(e[t]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}function Qy(e){let t=new Uint8Array(4);return t[0]=e&255,t[1]=e>>>8&255,t[2]=e>>>16&255,t[3]=e>>>24&255,t}var $y,eb,tb,nb,rb,ib,ab,R,ob,sb,z,B=n((()=>{$y=new TextEncoder,eb=new TextDecoder(`utf-8`,{ignoreBOM:!0}),tb=new Map,nb=(()=>{let e=Array(256);for(let t=0;t<256;t++)e[t]=t.toString(16).padStart(2,`0`);return e})(),rb=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,ib=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_`,ab=class{constructor(e){this._remainder=null,this._chars=e?ib:rb}decode(e,t){let n;if(this._remainder){let t=new Uint8Array(this._remainder.length+e.length);t.set(this._remainder),t.set(e,this._remainder.length),n=t}else n=e;if(t?.stream??!1){let e=n.length%3,t=n.length-e;return this._remainder=e>0?n.slice(t):null,t>0?this._encodeBytes(n,t):``}return this._remainder=null,n.length>0?this._encodeBytes(n,n.length):``}_encodeBytes(e,t){let n=this._chars,r=n===ib,i=``,a=0;for(;a+2<t;a+=3){let t=e[a],r=e[a+1],o=e[a+2];i+=n[t>>>2]+n[(t&3)<<4|r>>>4]+n[(r&15)<<2|o>>>6]+n[o&63]}let o=t-a;if(o===1){let t=e[a];i+=n[t>>>2]+n[(t&3)<<4],r||(i+=`==`)}else if(o===2){let t=e[a],o=e[a+1];i+=n[t>>>2]+n[(t&3)<<4|o>>>4]+n[(o&15)<<2],r||(i+=`=`)}return i}},R=class{constructor(e,t=0,n=`binary stream`){this.data=e,this.view=new DataView(e.buffer,e.byteOffset,e.byteLength),this.label=n,this.offset=0,this.position=t}get position(){return this.offset}set position(e){if(!Number.isInteger(e)||e<0||e>this.data.length)throw RangeError(`${this.label}: cannot seek to ${e} — length is ${this.data.length}`);this.offset=e}get remaining(){return this.data.length-this.offset}get bytes(){return this.data}require(e){if(!Number.isInteger(e)||e<0||e>this.remaining)throw RangeError(`${this.label}: truncated at byte ${this.offset} — need ${e} byte(s), ${this.remaining} remain`)}readUint8(){this.require(1);let e=this.view.getUint8(this.offset);return this.offset+=1,e}readInt8(){this.require(1);let e=this.view.getInt8(this.offset);return this.offset+=1,e}readUint16(){this.require(2);let e=this.view.getUint16(this.offset,!0);return this.offset+=2,e}readInt16(){this.require(2);let e=this.view.getInt16(this.offset,!0);return this.offset+=2,e}readUint32(){this.require(4);let e=this.view.getUint32(this.offset,!0);return this.offset+=4,e}readInt32(){this.require(4);let e=this.view.getInt32(this.offset,!0);return this.offset+=4,e}readFloat64(){this.require(8);let e=this.view.getFloat64(this.offset,!0);return this.offset+=8,e}readBigUint64(){this.require(8);let e=this.view.getBigUint64(this.offset,!0);return this.offset+=8,e}readBytes(e){this.require(e);let t=this.data.subarray(this.offset,this.offset+e);return this.offset+=e,t}skip(e){this.require(e),this.offset+=e}slice(e,t){return this.data.subarray(e,t)}peekUint32(e){if(!Number.isInteger(e)||e<0||e+4>this.data.length)throw RangeError(`${this.label}: cannot peek 4 byte(s) at ${e} — length is ${this.data.length}`);return this.view.getUint32(e,!0)}},ob=new Uint8Array,sb=new DataView(new ArrayBuffer(8)),z=class{constructor(){this.total=0}get length(){return this.total}writeUint8(e){return this.reserve(1),this.buffer[this.total++]=e&255,this}writeUint16(e){this.reserve(2);let t=this.buffer;return t[this.total]=e&255,t[this.total+1]=e>>>8&255,this.total+=2,this}writeUint32(e){this.reserve(4);let t=this.buffer,n=e>>>0;return t[this.total]=n&255,t[this.total+1]=n>>>8&255,t[this.total+2]=n>>>16&255,t[this.total+3]=n>>>24&255,this.total+=4,this}writeInt32(e){return this.writeUint32(e>>>0)}writeFloat64(e){this.reserve(8),sb.setFloat64(0,e,!0);let t=this.buffer;for(let e=0;e<8;e++)t[this.total+e]=sb.getUint8(e);return this.total+=8,this}writeBytes(e){return e.length===0?this:(this.reserve(e.length),this.buffer.set(e,this.total),this.total+=e.length,this)}writeZeros(e){if(!Number.isInteger(e)||e<0)throw RangeError(`byte count must be a non-negative integer: ${e}`);return e===0?this:(this.reserve(e),this.buffer.fill(0,this.total,this.total+e),this.total+=e,this)}toUint8Array(){return this.buffer===void 0?ob:this.buffer.slice(0,this.total)}reserve(e){let t=this.buffer;if(t!==void 0&&this.total+e<=t.length)return;let n=t===void 0?32:t.length*2;for(;n<this.total+e;)n*=2;let r=new Uint8Array(n);t!==void 0&&r.set(t.subarray(0,this.total),0),this.buffer=r}}}));function cb(e,t){return(e>>>t|e<<32-t)>>>0}function lb(e){let t=e.length,n=Math.ceil((t+9)/64)*64,r=new Uint8Array(n);r.set(e),r[t]=128;let i=t*8,a=new DataView(r.buffer,r.byteOffset,r.byteLength);a.setUint32(n-8,0,!1),a.setUint32(n-4,i,!1);let o=db[0],s=db[1],c=db[2],l=db[3],u=db[4],d=db[5],f=db[6],p=db[7],m=new Uint32Array(64);for(let e=0;e<n;e+=64){for(let t=0;t<16;t++)m[t]=a.getUint32(e+t*4,!1);for(let e=16;e<64;e++){let t=cb(m[e-15],7)^cb(m[e-15],18)^m[e-15]>>>3,n=cb(m[e-2],17)^cb(m[e-2],19)^m[e-2]>>>10;m[e]=m[e-16]+t+m[e-7]+n>>>0}let t=o,n=s,r=c,i=l,h=u,g=d,_=f,v=p;for(let e=0;e<64;e++){let a=cb(h,6)^cb(h,11)^cb(h,25),o=h&g^~h&_,s=v+a+o+fb[e]+m[e]>>>0,c=(cb(t,2)^cb(t,13)^cb(t,22))+(t&n^t&r^n&r)>>>0;v=_,_=g,g=h,h=i+s>>>0,i=r,r=n,n=t,t=s+c>>>0}o=o+t>>>0,s=s+n>>>0,c=c+r>>>0,l=l+i>>>0,u=u+h>>>0,d=d+g>>>0,f=f+_>>>0,p=p+v>>>0}let h=new Uint8Array(32),g=new DataView(h.buffer);return g.setUint32(0,o,!1),g.setUint32(4,s,!1),g.setUint32(8,c,!1),g.setUint32(12,l,!1),g.setUint32(16,u,!1),g.setUint32(20,d,!1),g.setUint32(24,f,!1),g.setUint32(28,p,!1),h}function ub(e){let t=new Uint8Array(e);return globalThis.crypto.getRandomValues(t),t}async function yne(e,t){let n=await globalThis.crypto.subtle.digest(bne(e),t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));return new Uint8Array(n)}function bne(e){switch(e.toLowerCase().replace(/-/g,``)){case`sha1`:return`SHA-1`;case`sha256`:return`SHA-256`;case`sha384`:return`SHA-384`;case`sha512`:return`SHA-512`;default:return e}}var db,fb,pb=n((()=>{new Uint8Array([99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22]),db=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),fb=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),new Uint32Array([3614090360,3905402710,606105819,3250441966,4118548399,1200080426,2821735955,4249261313,1770035416,2336552879,4294925233,2304563134,1804603682,4254626195,2792965006,1236535329,4129170786,3225465664,643717713,3921069994,3593408605,38016083,3634488961,3889429448,568446438,3275163606,4107603335,1163531501,2850285829,4243563512,1735328473,2368359562,4294588738,2272392833,1839030562,4259657740,2763975236,1272893353,4139469664,3200236656,681279174,3936430074,3572445317,76029189,3654602809,3873151461,530742520,3299628645,4096336452,1126891415,2878612391,4237533241,1700485571,2399980690,4293915773,2240044497,1873313359,4264355552,2734768916,1309151649,4149444226,3174756917,718787259,3951481745])}));function xne(e){let t=new Uint8Array(4);return t[0]=e&255,t[1]=e>>8&255,t[2]=e>>16&255,t[3]=e>>24&255,t}var mb,hb=n((()=>{B(),pb(),dr(),mb={async hash(e,...t){return yne(e,L(t))},async convertPasswordToHash(e,t,n,r){let i=fee(e),a=Wn(n),o=await this.hash(t,a,i);for(let e=0;e<r;e++)o=await this.hash(t,o,xne(e));return tr(o)},randomBytes(e){return ub(e)}}}));async function gb(e,t){let n={sheet:!0};return t&&`spinCount`in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e!==void 0&&(n.algorithmName=`SHA-512`,n.saltValue=tr(mb.randomBytes(16)),n.spinCount=t&&`spinCount`in t?t.spinCount:1e5,n.hashValue=await mb.convertPasswordToHash(e,`SHA-512`,n.saltValue,n.spinCount)),t&&(Object.assign(n,t),!e&&`spinCount`in t&&delete n.spinCount),n}async function Sne(e,t){if(!e?.hashValue||!e.saltValue||!e.algorithmName)return!1;let n=Wn(await mb.convertPasswordToHash(t,e.algorithmName,e.saltValue,e.spinCount??1e5)),r=Wn(e.hashValue),i=n.length^r.length,a=Math.max(n.length,r.length);for(let e=0;e<a;e++)i|=(n[e]??0)^(r[e]??0);return i===0}var _b=n((()=>{hb(),hr()}));function Cne(e,t){let n=0,r=0;for(let i of e){let e=i.font?{...t,...i.font}:t,a=i.text.split(/\r\n|\r|\n/);for(let t=0;t<a.length;t++)t>0&&(r>n&&(n=r),r=0),a[t]&&(r+=ol(a[t],e))}return r>n&&(n=r),n}function wne(e,t,n){if(e<=0)return 0;let r=e+2*Math.ceil(e*.03+t/4)+1;n&&(r+=Tb),r>Cb&&(r=Cb);let i=Dl(r,t);return Math.min(i,wb)}function vb(e){let t=(e?.name??Sb).toLowerCase(),n=e?.size??xb,r=Math.round(n/72*bb),i=Vc(t);if(i){let{unitsPerEm:e,usWinDescent:t}=i.header;return Math.ceil((e+t)/e*r)}return Math.ceil(r*1.3)}function Tne(e,t,n){if(!e||t<=0)return 1;let r=al(n),i=Vc(r.name,r.bold),a=e.split(/\r\n|\r|\n/),o=0;for(let e of a){if(!e){o++;continue}o+=Ene(e,t,r,i)}return o}function Ene(e,t,n,r){let i=sl(n,r),a=i.create(),o=i.create(),s=1,c=!0,l=!0,u=-1,d=()=>{l||=(c?(i.addParts(a,o),c=!1):i.pxOfSum(a,o)>t?(s++,i.reset(a),i.addParts(a,o)):i.addParts(a,o),i.reset(o),!0)};if(cl(e))for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);u>=0&&Ic(u,n)&&d(),u=n,i.addAscii(o,n),l=!1}else for(let t of Oc(e)){let e=t.codePointAt(0);u>=0&&Ic(u,e)&&d(),u=e,i.addCluster(o,t),l=!1}return d(),s}function yb(e,t,n,r){if(!e)return Ol(vb(t));let i=vb(t),a;return a=n?.wrapText&&r&&r>0?Tne(e,r,t):e.split(/\r\n|\r|\n/).length,Ol(i*a)}function Dne(e,t,n,r){let i=t?.size??xb,a=t;for(let n of e){let e=n.font?.size??t?.size??xb;e>i&&(i=e,a=n.font?{...t,...n.font}:t)}return yb(e.map(e=>e.text).join(``),a,n,r)}function One(e,t){let n=El(e,t),r=Tl(t);return Math.max(0,n-r)}function kne(e){let t=e.effectiveType,n=e.font;if(t===qt.RichText){let t=e.value;if(t&&typeof t==`object`&&`richText`in t)return Cne(t.richText,n)}let r=Pr(e);return r?ol(r,n):0}function Ane(e,t,n){let r=e.font,i=e.alignment;if(e.effectiveType===qt.RichText){let t=e.value;if(t&&typeof t==`object`&&`richText`in t)return Dne(t.richText,r,i,n)}let a=Pr(e);return a?yb(a,r,i,i?.wrapText?n:void 0):0}var bb,xb,Sb,Cb,wb,Tb,jne=n((()=>{Qt(),Hr(),lte(),rl(),Ac(),gl(),Pl(),bb=96,xb=11,Sb=`Calibri`,Cb=1790,wb=255,Tb=16}));function Eb(e){let t={};return t._workbook=e.workbook,t.id=e.id??0,t.orderNo=e.orderNo??0,gS(t,e.name||`sheet${t.id}`),t.state=e.state??`visible`,t._rows=[],t._columns=[],t._keys={},t._merges={},t.rowBreaks=[],t.colBreaks=[],t.properties={defaultRowHeight:15,outlineLevelCol:0,outlineLevelRow:0,...e.properties},t.pageSetup={margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:`portrait`,horizontalDpi:void 0,verticalDpi:void 0,fitToPage:!!(e.pageSetup&&(e.pageSetup.fitToWidth||e.pageSetup.fitToHeight)&&!e.pageSetup.scale),pageOrder:`downThenOver`,blackAndWhite:!1,draft:!1,cellComments:`None`,errors:`displayed`,scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null,...e.pageSetup},t.headerFooter={differentFirst:!1,differentOddEven:!1,scaleWithDoc:!0,alignWithMargins:!0,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null,...e.headerFooter},t.dataValidations=le(),t.views=e.views??[],t.autoFilter=e.autoFilter??null,t._media=[],t._shapes=[],t._charts=[],t._sparklineGroups=[],t.sheetProtection=null,t.tables={},t.pivotTables=[],t.conditionalFormattings=[],t.formControls=[],t.ignoredErrors=[],t.threadedComments=[],t._watermark=null,t._watermarkMedia=null,t}function Db(e){tne(e._workbook,e)}function Mne(e,t,n,...r){for(let t of Object.values(e._merges))for(let n=t.top;n<=t.bottom;n++)for(let r=t.left;r<=t.right;r++){let t=mo(e,n,r);t&&Si(t)===k.ValueType.Merge&&zi(t)}let i=e._rows.length;if(r.length>0)for(let a=0;a<i;a++){let i=r.map(e=>e[a]??null);Mo(lo(e,a+1),t,n,...i)}else e._rows.forEach(e=>{e&&Mo(e,t,n)});let a=r.length-n,o=t+n,s=e._columns.length;if(a<0)for(let n=t+r.length;n<=s;n++)To(ao(e,n),_a(ao(e,n-a)));else if(a>0)for(let t=s;t>=o;t--)To(ao(e,t+a),_a(ao(e,t)));for(let n=t;n<t+r.length;n++)To(ao(e,n),void 0);if(aee(ep(eo(e)),$a(e),t,n,r.length),a!==0){for(let n of e._media)if(n.type===`image`&&n.range){let{tl:e,br:r}=n.range;e&&e.nativeCol>=t-1&&(e.nativeCol=Math.max(0,e.nativeCol+a)),r&&r.nativeCol>=t-1&&(r.nativeCol=Math.max(0,r.nativeCol+a))}Pb(e,`col`,t-1,a)}Fb(e,`col`,t,n,r.length)}function Nne(e,t,n,r=`n`){return Ob(e,t,0,n),Lo(e,t,r),lo(e,t)}function Pne(e,t,n,r=`n`){if(Ob(e,t,0,...n),r!==`n`)for(let i=0;i<n.length;i++)r[0]===`o`&&so(e,n.length+t+i)!==void 0?Io(e,n.length+t+i,t+i,r[1]===`+`):r[0]===`i`&&so(e,t-1)!==void 0&&Io(e,t-1,t+i,r[1]===`+`);return uo(e,t,n.length)}function Fne(e,t,n,r=!1){let i=lo(e,t),a=Array.from({length:n}).fill(kb(i)),o=[];for(let n of Object.values(e._merges))n.top===t&&n.bottom===t&&o.push(n);let s=[],c=t-1;for(let t of e._media)t.type===`image`&&t.range&&t.range.tl.nativeRow===c&&s.push(t);Ob(e,t+1,r?0:n,...a);for(let r=0;r<n;r++){let n=e._rows[t+r];n.style=Kr(i.style)??{},n.height=i.height,jo(i,{includeEmpty:!0},(e,t)=>{vo(n,t).style=Kr(e.style)??{}})}if(o.length>0)for(let i=0;i<n;i++){let n=t+1+i;if(!r){let t=[];for(let[r,i]of Object.entries(e._merges))i.top<=n&&i.bottom>=n&&t.push(r);for(let n of t)Nb(e,ho(e,n))}for(let t of o)jb(e,n,t.left,n,t.right)}if(!r){let r=t,i=t+n-1;e._media=e._media.filter(e=>{if(e.type===`image`&&e.range){let t=e.range.tl.nativeRow;return t<r||t>i}return!0})}for(let t=0;t<n;t++){let n=t+1;for(let t of s){let r=tg(t);if(r.range.tl.nativeRow=c+n,r.range.br){let e=t.range.br.nativeRow-c;r.range.br.nativeRow=c+n+e}e._media.push(r)}}}function Ob(e,t,n,...r){for(let t of Object.values(e._merges))for(let n=t.top;n<=t.bottom;n++)for(let r=t.left;r<=t.right;r++){let t=mo(e,n,r);t&&Si(t)===k.ValueType.Merge&&zi(t)}let i=t+n,a=r.length,o=a-n,s=e._rows.length,c,l;if(o<0)for(t===s&&(e._rows[s-1]=void 0),c=i;c<=s;c++)if(l=e._rows[c-1],l){let t=lo(e,c+o);yo(t,kb(l)),t.style=Kr(l.style)??{},t.height=l.height,jo(l,{includeEmpty:!0},(e,n)=>{let r=vo(t,n);r.style=Kr(e.style)??{},Gi(r,Wi(e))}),e._rows[c-1]=void 0}else e._rows[c+o-1]=void 0;else if(o>0)for(c=s;c>=i;c--)if(l=e._rows[c-1],l){let t=lo(e,c+o);yo(t,kb(l)),t.style=Kr(l.style)??{},t.height=l.height,jo(l,{includeEmpty:!0},(e,n)=>{let r=vo(t,n);r.style=Kr(e.style)??{},Gi(r,Wi(e))})}else e._rows[c+o-1]=void 0;for(c=0;c<a;c++){let n=lo(e,t+c);n.style={},yo(n,r[c])}if(zt(ep(eo(e)),$a(e),t,n,a),o!==0){for(let n of e._media)if(n.type===`image`&&n.range){let{tl:e,br:r}=n.range;e&&e.nativeRow>=t-1&&(e.nativeRow=Math.max(0,e.nativeRow+o)),r&&r.nativeRow>=t-1&&(r.nativeRow=Math.max(0,r.nativeRow+o))}Pb(e,`row`,t-1,o)}Fb(e,`row`,t,n,a)}function kb(e){let t=Ma(e);return e.cells.forEach(e=>{e?._formulaGhostOwner!==void 0&&(t[xi(e)]=null)}),t}function Ab(e,...t){Mb(e,De(t))}function jb(e,...t){Mb(e,De(t),!0)}function Mb(e,t,n){Object.values(e._merges).forEach(e=>{if(Ue(e,t))throw new b});let{top:r,left:i,bottom:a,right:o}=t,s=n?void 0:Ry(r,i,a,o,(t,n)=>mo(e,t,n)),c=ho(e,t.top,t.left);c._formulaGhostOwner=void 0;for(let t=r;t<=a;t++)for(let a=i;a<=o;a++)(t>r||a>i)&&Ri(ho(e,t,a),c,n);s&&zy(r,i,a,o,s,(t,n)=>ho(e,t,n)),e._merges[c.address]=t}function Nb(e,t){let n=e._merges[t.address];if(n){for(let t=n.top;t<=n.bottom;t++)for(let r=n.left;r<=n.right;r++)zi(ho(e,t,r));delete e._merges[t.address]}}function Pb(e,t,n,r){let i=t===`row`?`nativeRow`:`nativeCol`,a=e._drawing;if(a?.anchors)for(let e of a.anchors){let t=e.range?.tl,a=e.range?.br;t&&t[i]!==void 0&&t[i]>=n&&(t[i]=Math.max(0,t[i]+r)),a&&a[i]!==void 0&&a[i]>=n&&(a[i]=Math.max(0,a[i]+r))}for(let t of e._charts){let{tl:e,br:a}=t.range;e[i]>=n&&(e[i]=Math.max(0,e[i]+r)),a&&a[i]>=n&&(a[i]=Math.max(0,a[i]+r))}}function Fb(e,t,n,r,i){let a=i-r;if(a===0&&r===0)return;let o=n+r,s=t===`row`,c={};for(let t of Object.values(e._merges)){let{top:e,left:i,bottom:l,right:u}=t,d=s?e:i,f=s?l:u;if(a<=0&&r>0){let r=o-1;if(d>r){let t=s?De(e+a,i,l+a,u):De(e,i+a,l,u+a);c[D.encodeAddress(t.top,t.left)]=t}else if(f<n)c[D.encodeAddress(e,i)]=t;else if(!(d>=n&&f<=r)){let t=e,r=i,o=l,d=u;s?(t=e<n?e:n,o=Math.max(t,l+a)):(r=i<n?i:n,d=Math.max(r,u+a));let f=De(t,r,o,d);t===o&&r===d||(c[D.encodeAddress(f.top,f.left)]=f)}}else if(d>=o){let t=s?De(e+a,i,l+a,u):De(e,i+a,l,u+a);c[D.encodeAddress(t.top,t.left)]=t}else f<o||(s?t.bottom=l+a:t.right=u+a),c[D.encodeAddress(e,i)]=t}e._merges=c;for(let t of Object.values(c)){let n=ho(e,t.top,t.left);for(let r=t.top;r<=t.bottom;r++)for(let i=t.left;i<=t.right;i++)(r>t.top||i>t.left)&&Ri(ho(e,r,i),n,!0)}}function Ib(e,...t){let n=De(t);for(let t=n.top;t<=n.bottom;t++)for(let r=n.left;r<=n.right;r++){let n=mo(e,t,r);n&&(Si(n)===k.ValueType.Merge?Nb(e,Bi(n)):e._merges[n.address]&&Nb(e,n))}}function Lb(e,t,n,r,i=`shared`){let{top:a,left:o,bottom:s,right:c}=D.decode(t),l=c-o+1,u=D.encodeAddress(a,o),d=i===`shared`,f;f=typeof r==`function`?r:Array.isArray(r)?Array.isArray(r[0])?(e,t)=>r[e-a][t-o]:(e,t)=>r[(e-a)*l+(t-o)]:()=>void 0;let p=!0;for(let r=a;r<=s;r++)for(let a=o;a<=c;a++)p?(Oi(ho(e,r,a),{shareType:i,formula:n,ref:t,result:f(r,a)}),p=!1):Oi(ho(e,r,a),d?{sharedFormula:u,result:f(r,a)}:f(r,a))}function Rb(e,t,n){let r={type:`image`,imageId:String(t),range:n};e._media.push(Qh(e,r))}function zb(e,t){let n=t.range;if(!(typeof n==`string`&&n.includes(`:`)||typeof n==`object`&&n&&(`br`in n||`ext`in n||`pos`in n)))throw new ae('addShape requires a range covering an area: a cell range like "B2:D5", or an object with `br`, `ext`, or `pos`.');e._shapes.push({type:`shape`,shapeType:t.type??`rect`,range:n,fillColor:t.fillColor,lineColor:t.lineColor,lineWidth:t.lineWidth,text:t.text,name:t.name})}function Bb(e){return e._shapes.slice()}function Vb(e,t){let n;try{n=$h(Qh(e,{type:`image`,imageId:``,range:t.range})).range}catch{n=void 0}return n?{...t,anchorRange:{tl:n.tl,br:n.br,ext:n.ext,pos:n.pos,editAs:n.editAs}}:{...t,anchorRange:void 0}}function Ine(e){return e._media.filter(e=>e.type===`image`)}function Hb(e,t,n){return xm(e,Rd(t),n,t)}function Lne(e,t,n){return Hb(e,{...t,type:`bar`,barDir:`col`},n)}function Rne(e,t,n){return Hb(e,{...t,type:`bar`,barDir:`bar`},n)}function zne(e,t,n){return Hb(e,{...t,type:`line`},n)}function Bne(e,t,n){return Hb(e,{...t,type:`area`},n)}function Vne(e,t,n){return Hb(e,{...t,type:`pie`},n)}function Hne(e,t,n){return Hb(e,{...t,type:`doughnut`},n)}function Ub(e,t,n){return Hb(e,{...t,type:`scatter`},n)}function Wb(e,t,n){return Hb(e,{...t,type:`bubble`},n)}function Gb(e,t,n){return Hb(e,{...t,type:`radar`},n)}function Kb(e,t,n){return Hb(e,{...t,type:`stock`},n)}function qb(e,t,n){return Hb(e,{...t,type:`surface`},n)}function Jb(e,t,n){return px(e,{...t,type:`histogram`},n)}function Yb(e,t,n){return px(e,{...t,type:`pareto`},n)}function Xb(e,t,n){return px(e,{...t,type:`waterfall`},n)}function Zb(e,t,n){return px(e,{...t,type:`funnel`},n)}function Qb(e,t,n){return px(e,{...t,type:`treemap`},n)}function $b(e,t,n){return px(e,{...t,type:`sunburst`},n)}function ex(e,t,n){return px(e,{...t,type:`boxWhisker`},n)}function tx(e,t,n){return px(e,{...t,type:`regionMap`},n)}function nx(e,t,n,r){return Hb(e,Oh(t,n),r)}function rx(e,t,n,r){return px(e,kh(t,n),r)}function ix(e,t){return Us($a(e),t)}function ax(e,t,n,r){return Hb(e,Ks(e,t,n),r)}function ox(e,t,n,r){return Hb(e,qs(e,t,n),r)}function sx(e,t,n,r){return Hb(e,qs(e,t,{...n,type:`bar`,barDir:`col`}),r)}function cx(e,t,n,r){return px(e,sc(e,t,n),r)}function lx(e,t,n,r){return px(e,cc(e,t,n),r)}function ux(e,t,n,r){let i=rg(t,n);return xm(e,Rd(i),r,i)}function dx(e,t,n,r){let i=rg(t,n);return xm(e,zd(i),r,i)}function fx(e,t,n){return xm(e,zd(t),n,t)}function px(e,t,n){return Sm(e,Jd(t),n)}function mx(e){return[...e._charts]}function hx(e,t){let n=typeof t==`number`?t:e._charts.indexOf(t);if(n<0||n>=e._charts.length)return!1;let r=e._charts.splice(n,1)[0];r.chartNumber>0&&Jf(e._workbook,r.chartNumber),r.chartExNumber>0&&$f(e._workbook,r.chartExNumber);let i=e._drawing;return i?.anchors&&(i.anchors=i.anchors.filter(e=>!(r.chartNumber>0&&e.chartNumber===r.chartNumber||r.chartExNumber>0&&e.chartExNumber===r.chartExNumber))),!0}function gx(e,t){let n=o_(t);return e._sparklineGroups.push(n),n}function _x(e){return[...e._sparklineGroups]}function vx(e,t){let n=typeof t==`number`?t:e._sparklineGroups.indexOf(t);return n<0||n>=e._sparklineGroups.length?!1:(e._sparklineGroups.splice(n,1),!0)}function yx(e,t){let n=Vf(e._workbook,t);if(n&&Oy(n))throw new ae(`Background images cannot be external (linked) images. Use an embedded image (buffer/base64/filename). External images are only supported for cell pictures and overlay watermarks.`);let r={type:`background`,imageId:String(t)};e._media.push(Qh(e,r))}function bx(e){let t=e._media.find(e=>e.type===`background`);return t&&t.imageId}function xx(e,t){let n=t.mode??`overlay`;if(n===`header`){let n=Vf(e._workbook,t.imageId);if(n&&Oy(n))throw new ae(`Header watermark images cannot be external (linked) images. Use an embedded image (buffer/base64/filename), or use overlay mode for linked images.`)}e._watermark?.mode===`header`?Nx(e):Ox(e);let r=t.position??`CH`;if(e._watermark={imageId:String(t.imageId),mode:n,opacity:t.opacity,headerWidth:t.headerWidth,headerHeight:t.headerHeight,applyTo:t.applyTo,position:t.position},e._watermark.mode===`overlay`){let n=Qh(e,{type:`watermark`,imageId:String(t.imageId),opacity:t.opacity});e._media.push(n),e._watermarkMedia=n}else kx(e,{imageId:t.imageId,position:r,width:t.headerWidth,height:t.headerHeight,applyTo:t.applyTo}),e._watermarkMedia=e._media.find(e=>e.type===`headerImage`&&(e.position??`CH`)===r)??null}function Sx(e){return e[0]===`L`?`&L`:e[0]===`R`?`&R`:`&C`}function Cx(e,t,n){let r=e[1]===`F`,i=r?`oddFooter`:`oddHeader`,a=r?`evenFooter`:`evenHeader`,o=r?`firstFooter`:`firstHeader`;return t===`odd`?[i]:t===`even`?[a]:t===`first`?[o]:[i,a,o]}function wx(e,t){let n={...e},r=Sx(t),i=t[1]===`F`?[`oddFooter`,`evenFooter`,`firstFooter`]:[`oddHeader`,`evenHeader`,`firstHeader`];for(let e of i){let t=n[e];if(typeof t!=`string`||!Tx(t,r))continue;let i=t.indexOf(r),a=t.indexOf(`&G`,i+r.length),o=t.slice(0,a)+t.slice(a+2),s=o.indexOf(r);if(s>=0){let e=o.slice(s+r.length),t=e.search(/&[LCR]/);(t<0?e:e.slice(0,t))===``&&(o=o.slice(0,s)+o.slice(s+r.length))}n[e]=o||null}return n}function Tx(e,t){if(!e)return!1;let n=e.indexOf(t);if(n<0)return!1;let r=e.slice(n+t.length),i=r.search(/&[LCR]/);return(i<0?r:r.slice(0,i)).includes(`&G`)}function Ex(e,t){let n=e??``;if(Tx(n,t))return n;let r=n.indexOf(t);return r>=0?`${n.slice(0,r+t.length)}&G${n.slice(r+t.length)}`:`${n}${t}&G`}function Dx(e,t,n){let r={...e},i=Sx(t),a=t[1]===`F`,o=a?`oddFooter`:`oddHeader`;n===`even`&&!r.differentOddEven&&(r[a?`evenFooter`:`evenHeader`]=r[o],r.differentOddEven=!0),n===`all`&&(r.differentOddEven||=(r[a?`evenFooter`:`evenHeader`]=r[o],!0),r.differentFirst||=(r[a?`firstFooter`:`firstHeader`]=r[o],!0)),n===`first`&&!r.differentFirst&&(r[a?`firstFooter`:`firstHeader`]=r[o],r.differentFirst=!0);for(let e of Cx(t,n,r)){let t=r[e];(typeof t==`string`||t===null)&&(r[e]=Ex(t,i))}return r}function Ox(e){let t=e._watermarkMedia;t&&(e._media=e._media.filter(e=>e!==t),e._watermarkMedia=null)}function kx(e,t){let n=Vf(e._workbook,t.imageId);if(n&&Oy(n))throw new ae(`Header/footer images cannot be external (linked) images. Use an embedded image (buffer/base64/filename).`);jx(e,t.position),e._media.push(Qh(e,{type:`headerImage`,imageId:String(t.imageId),headerWidth:t.width,headerHeight:t.height,applyTo:t.applyTo,position:t.position})),e.headerFooter=Dx(e.headerFooter,t.position,t.applyTo??`odd`)}function Ax(e){return e._media.filter(e=>e.type===`headerImage`).map(e=>({imageId:String(e.imageId??``),position:e.position??`CH`,width:e.headerWidth,height:e.headerHeight}))}function jx(e,t){let n=e._media.filter(e=>e.type===`headerImage`&&(e.position??`CH`)===t);return n.length!==0&&(e._media=e._media.filter(e=>!n.includes(e)),e.headerFooter=wx(e.headerFooter,t),n.includes(e._watermarkMedia)&&(e._watermark=null,e._watermarkMedia=null),!0)}function Mx(e){return e._watermark}function Nx(e){let t=e._watermark;t&&(t.mode===`header`?jx(e,t.position??`CH`):Ox(e),e._watermark=null,e._watermarkMedia=null)}function Px(e,t,n){let r=Ih(e,t,n);return e.formControls.push(r),r}function Fx(e){return e.formControls}async function Ix(e,t,n){e.sheetProtection=await gb(t,n)}function Lx(e){e.sheetProtection=null}async function Rx(e,t){return Sne(e.sheetProtection,t)}function zx(e,t){let n=Qo(e,t),r=fs(n).toLowerCase();if(e.tables[fs(n)])throw new ie(`Table name "${fs(n)}" already exists in worksheet "${$a(e)}".`);if(eo(e)._tableNames.has(r))throw new ie(`Table name "${fs(n)}" already exists in another worksheet. Table names must be unique across the entire workbook (case-insensitive).`);return e.tables[fs(n)]=n,eo(e)._tableNames.add(r),n}function Bx(e,t){e.tables[t]&&eo(e)._tableNames.delete(t.toLowerCase()),delete e.tables[t]}function Vx(e,t){let n=xg({workbook:eo(e),name:$a(e)},t);return e.pivotTables.push(n),eo(e).pivotTables.push(n),n}function Hx(e,t){e.conditionalFormattings.push(t)}function Ux(e,t){typeof t==`number`?e.conditionalFormattings.splice(t,1):e.conditionalFormattings=typeof t==`function`?e.conditionalFormattings.filter((e,n,r)=>!t(e,n,r)):[]}function Wx(e,t){return Jx(e,typeof t==`string`?D.l2n(t):t),e}function Gx(e,t,n){let r=iS(e);if(!r||r.left===void 0)return e;let i=t==null?r.left:typeof t==`string`?D.l2n(t):t,a=n==null?r.right:typeof n==`string`?D.l2n(n):n;for(let t=i;t<=a;t++)Jx(e,t);return e}function Kx(e,t){return Yx(e,t),e}function qx(e,t,n){let r=iS(e);if(!r||r.top===void 0)return e;let i=t??r.top,a=n??r.bottom;for(let t=i;t<=a;t++)Yx(e,t);return e}function Jx(e,t){let n=il(),r=Zx(e,t),i=0;if(e._rows.forEach(r=>{if(!r||Wa(r))return;let a=Aa(r,t);if(!a||Si(a)===k.ValueType.Merge)return;if(Li(a)){let t=e._merges[a.address];if(t&&t.left!==t.right)return}if(li(a)?.shrinkToFit)return;let o=kne(Ki(a)),s=li(a)?.indent;s&&s>0&&(o+=s*3*n),o>i&&(i=o)}),i>0){let a=wne(i,n,r);if(a>0){let n=ao(e,t);n.width=a,n.bestFit=!0}}}function Yx(e,t){let n=e._rows[t-1];if(!n)return;let r=il(),i=0;jo(n,t=>{if(Si(t)===k.ValueType.Merge)return;if(Li(t)){let n=e._merges[t.address];if(n&&n.top!==n.bottom)return}if(e._columns[xi(t)-1]?.hidden)return;let n=Xx(e,t,r),a=Ane(Ki(t),r,n);a>i&&(i=a)}),i>0&&(n.height=Math.ceil(i*4)/4,n.customHeight=!0)}function Xx(e,t,n){return li(t)?.wrapText?One(e._columns[xi(t)-1]?.width??e.properties.defaultColWidth??9,n):void 0}function Zx(e,t){if(!e.autoFilter)return!1;if(typeof e.autoFilter==`string`){let n=D.decode(e.autoFilter);return t>=n.left&&t<=n.right}let{from:n,to:r}=e.autoFilter,i=typeof n==`string`?D.decode(n).col:n.col,a=typeof r==`string`?D.decode(r).col:r.col;return t>=i&&t<=a}function Qx(e,t){e._rows=[],t.rows&&t.rows.forEach(t=>{let n=ka(e,t.number);e._rows[n.number-1]=n,Ao(n,t)})}function $x(e,t){t.mergeCells&&t.mergeCells.forEach(t=>{jb(e,t)})}function eS(e,t){let n=t||{},r=1,i=dS(e),a=1,o=cS(e);if(n.range!==void 0){if(typeof n.range==`number`)r=n.range+1;else if(typeof n.range==`string`){let e=zs(n.range);r=e.s.r+1,i=e.e.r+1,a=e.s.c+1,o=e.e.c+1}}if(i<r||o<a)return[];let s=(t,n)=>{let r=mo(e,t,n);return r?wi(r):null},c=(t,r)=>{if(n.raw!==!1)return s(t,r);let i=mo(e,t,r);return i?Pr(Ki(i),n.dateFormat).trim():null},l=n.header;if(l===1){let e=[],t=n.blankRows!==!1;for(let s=r;s<=i;s++){let r=[],i=!0;for(let e=a;e<=o;e++){let t=c(s,e);t!=null&&t!==``?(r[e-a]=t,i=!1):n.defaultValue===void 0?r[e-a]=null:r[e-a]=n.defaultValue}(!i||t)&&e.push(r)}return e}if(l===`A`){let e=[],t=n.blankRows===!0;for(let s=r;s<=i;s++){let r={},i=!0;for(let e=a;e<=o;e++){let t=c(s,e),a=Ps(e-1);t!=null&&t!==``?(r[a]=t,i=!1):n.defaultValue!==void 0&&(r[a]=n.defaultValue)}(!i||t)&&e.push(r)}return e}if(Array.isArray(l)){let e=[],t=n.blankRows===!0;for(let s=r;s<=i;s++){let r={},i=!0;for(let e=a;e<=o;e++){let t=e-a,o=l[t]??`__EMPTY_${t}`,u=c(s,e);u!=null&&u!==``?(r[o]=u,i=!1):n.defaultValue!==void 0&&(r[o]=n.defaultValue)}(!i||t)&&e.push(r)}return e}let u=[],d={};for(let e=a;e<=o;e++){let t=s(r,e),n=t==null?`__EMPTY_${e-a}`:String(t);d[n]===void 0?d[n]=0:(d[n]++,n=`${n}_${d[n]}`),u.push(n)}let f=[],p=r+1,m=n.blankRows===!0;for(let e=p;e<=i;e++){let t={},r=!0;for(let i=a;i<=o;i++){let o=c(e,i),s=u[i-a];o!=null&&o!==``?(t[s]=o,r=!1):n.defaultValue!==void 0&&(t[s]=n.defaultValue)}(!r||m)&&f.push(t)}return f}function tS(e,t,n){if(t.length===0)return e;let r=n||{},i=1,a=1;if(r.origin!==void 0){let t=vS(r.origin,dS(e));i=t.row,a=t.col}let o=new Set;t.forEach(e=>Object.keys(e).forEach(e=>o.add(e)));let s=r.header?[...r.header]:[...o];r.header&&o.forEach(e=>{s.includes(e)||s.push(e)});let c=i;r.skipHeader||(s.forEach((t,n)=>{Oi(ho(e,c,a+n),t)}),c++);for(let n of t)s.forEach((t,i)=>{let o=n[t];o===null&&r.nullError?Oi(ho(e,c,a+i),{error:`#NULL!`}):o!=null&&Oi(ho(e,c,a+i),o)}),c++;return e}function nS(e){let t=[];for(let n=0;n<e._rows.length;n++){let r=e._rows[n];if(!r){t[n]=[];continue}let i=[];for(let e=0;e<r.cells.length;e++){let t=r.cells[e];i[e]=t?wi(t):null}t[n]=i}return t}function rS(e,t,n){if(t.length===0)return e;let r=1,i=1;if(n?.origin!==void 0){let t=vS(n.origin,dS(e));r=t.row,i=t.col}return t.forEach((t,n)=>{t&&t.forEach((t,a)=>{t!=null&&Oi(ho(e,r+n,i+a),t)})}),e}function iS(e){let t=De();return e._rows.forEach(e=>{if(e){let n=Ia(e);n&&Me(t,e.number,n.min,e.number,n.max)}}),t}function aS(e){return e._columns}function oS(e){return e._columns.map(_a)}function sS(e){return ao(e,cS(e))}function cS(e){let t=0;return fo(e,e=>{t=Math.max(t,Fa(e))}),t}function lS(e){let t=[],n=0;return fo(e,e=>{jo(e,(e,r)=>{t[r]||(t[r]=!0,n++)})}),n}function uS(e){if(e._rows.length)return e._rows[e._rows.length-1]}function dS(e){return Po(e)}function fS(e){let t=0;return fo(e,()=>{t++}),t}function pS(e){return Object.values(e._merges).some(Boolean)}function mS(e){return Object.values(e._merges).map(e=>({top:e.top,left:e.left,bottom:e.bottom,right:e.right}))}function hS(e){let t={id:e.id,name:$a(e),orderNo:e.orderNo,retainedComments:e._retainedComments,styledBlankRanges:e._styledBlankRanges,dataValidations:e.dataValidations.model,properties:e.properties,state:e.state,pageSetup:e.pageSetup,headerFooter:e.headerFooter,rowBreaks:e.rowBreaks,colBreaks:e.colBreaks,views:e.views,autoFilter:e.autoFilter,autoFilterCriteria:e._autoFilterCriteria,sortStateXml:e._sortStateXml,opaqueRels:e._opaqueRels,chartsheetPlaceholder:e._chartsheetPlaceholder,xlsbDrawingRelationshipId:e._xlsbDrawingRelationshipId,worksheetNamespaceAttributes:e._worksheetNamespaceAttributes,worksheetMcIgnorable:e._worksheetMcIgnorable,sortStateAutoFilterRef:e._sortStateAutoFilterRef,media:e._media.map(e=>$h(e)),shapes:e._shapes.map(t=>Vb(e,t)),sheetProtection:e.sheetProtection,tables:Object.values(e.tables).map(e=>os(e)),pivotTables:e.pivotTables,conditionalFormattings:e.conditionalFormattings,formControls:e.formControls.map(e=>e.model),ignoredErrors:e.ignoredErrors,watermark:e._watermark,drawing:e._drawing,charts:e._charts.map(e=>({chartNumber:e.chartNumber,chartExNumber:e.chartExNumber,range:{tl:{nativeCol:e.range.tl.nativeCol,nativeColOff:e.range.tl.nativeColOff,nativeRow:e.range.tl.nativeRow,nativeRowOff:e.range.tl.nativeRowOff},br:e.range.br?{nativeCol:e.range.br.nativeCol,nativeColOff:e.range.br.nativeColOff,nativeRow:e.range.br.nativeRow,nativeRowOff:e.range.br.nativeRowOff}:void 0,editAs:e.range.editAs,pos:e.range.pos,ext:e.range.ext}})),sparklineGroups:e._sparklineGroups,threadedComments:e.threadedComments};t.cols=wa(e._columns);let n=t.rows=[],r=t.dimensions=De();return(e._rows??[]).forEach(e=>{let t=e&&Ya(e);t&&(Me(r,t.number,t.min,t.number,t.max),n.push(t))}),t.mergeCells=Object.values(e._merges).map(e=>ze(e)),t}function gS(e,t){t===void 0&&(t=`sheet${e.id}`),e._name!==t&&(e._name=Qf(e._workbook,t,e))}function Une(e,t){e._headerRowCount=t.reduce((e,t)=>{let n=Array.isArray(t.header)?t.header.length:+!!t.header;return Math.max(e,n)},0);let n=1,r=e._columns=[];t.forEach(t=>{let i=wo(e,n++,!1);r.push(i),To(i,t)})}function _S(e,t){t.styledBlankRanges!==void 0&&(e._styledBlankRanges=t.styledBlankRanges),gS(e,t.name),e.state=t.state,e._columns=Do(e,t.cols??[]),Qx(e,t),$x(e,t),e.dataValidations=le(t.dataValidations),e.properties=t.properties,e.pageSetup=t.pageSetup;let n=t.headerFooter??{};if(e.headerFooter={differentFirst:n.differentFirst??!1,differentOddEven:n.differentOddEven??!1,scaleWithDoc:n.scaleWithDoc??!0,alignWithMargins:n.alignWithMargins??!0,oddHeader:n.oddHeader??null,oddFooter:n.oddFooter??null,evenHeader:n.evenHeader??null,evenFooter:n.evenFooter??null,firstHeader:n.firstHeader??null,firstFooter:n.firstFooter??null},e.rowBreaks=t.rowBreaks??[],e.colBreaks=t.colBreaks??[],e.views=t.views,e.autoFilter=t.autoFilter,e._autoFilterCriteria=t.autoFilterCriteria,e._sortStateXml=t.sortStateXml,e._opaqueRels=t.opaqueRels,e._chartsheetPlaceholder=t.chartsheetPlaceholder,e._xlsbDrawingRelationshipId=t.xlsbDrawingRelationshipId,e._worksheetNamespaceAttributes=t.worksheetNamespaceAttributes,e._worksheetMcIgnorable=t.worksheetMcIgnorable,e._sortStateAutoFilterRef=t.sortStateAutoFilterRef,e._media=t.media.map(t=>Qh(e,t)),e._shapes=t.shapes?t.shapes.slice():[],e._watermark=t.watermark??null,e._watermarkMedia=null,!e._watermark){for(let t of e._media)if(t.type===`watermark`){e._watermark={imageId:t.imageId??``,mode:`overlay`,opacity:t.opacity};break}}e.sheetProtection=t.sheetProtection,e.tables=t.tables.reduce((t,n)=>{let r=Qo(e,n);return ss(r,n),t[n.name]=r,eo(e)._tableNames.add(n.name.toLowerCase()),t},{}),e.pivotTables=t.pivotTables;for(let t of e.pivotTables??[])t.worksheetName??=$a(e),t.name??=`PivotTable${t.tableNumber}`;e.conditionalFormattings=t.conditionalFormattings,e.ignoredErrors=t.ignoredErrors??[],e.threadedComments=t.threadedComments??[],e._sparklineGroups=t.sparklineGroups?[...t.sparklineGroups]:[],e.formControls=(t.formControls??[]).map(t=>Lh(e,t)),e._drawing=t.drawing,e._charts=t.charts&&t.charts.length>0?t.charts.map(t=>bm(e,{chartNumber:t.chartNumber,chartExNumber:t.chartExNumber},t.range)):t.drawing?.anchors?t.drawing.anchors.filter(e=>e.chartNumber||e.chartExNumber).map(t=>bm(e,{chartNumber:t.chartNumber??0,chartExNumber:t.chartExNumber??0},t.range)):[]}function vS(e,t){if(typeof e==`string`){let t=Ls(e);return{row:t.r+1,col:t.c+1}}return typeof e==`number`?e===-1?{row:t+1,col:1}:{row:e+1,col:1}:{row:e.r+1,col:e.c+1}}var yS=n((()=>{lc(),Kd(),Xd(),Eh(),Mh(),ha(),Da(),Ce(),Kt(),Qt(),Zh(),ng(),cg(),Og(),qe(),Qa(),y_(),Ms(),sp(),Yo(),E(),Hs(),Hr(),O(),qr(),Ly(),By(),_b(),jne()})),Wne=r({actualColumnCount:()=>lS,actualRowCount:()=>fS,addAoa:()=>rS,addConditionalFormatting:()=>Hx,addJson:()=>tS,addRow:()=>Ro,addRows:()=>zo,autoFilter:()=>qo,autoFitColumn:()=>Wx,autoFitColumns:()=>Gx,autoFitRow:()=>Kx,autoFitRows:()=>qx,columnCount:()=>cS,columnDefinitions:()=>oS,columns:()=>aS,destroy:()=>Db,dimensions:()=>iS,duplicateRow:()=>Fne,eachRow:()=>fo,fillFormula:()=>Lb,findRow:()=>so,findRows:()=>co,freeze:()=>Ho,getModel:()=>hS,getName:()=>$a,getRow:()=>lo,getRows:()=>uo,getValues:()=>po,hasMerges:()=>pS,insertRow:()=>Nne,insertRows:()=>Pne,lastColumn:()=>sS,lastRow:()=>uS,merge:()=>Ab,mergeWithoutStyle:()=>jb,mergedRegions:()=>mS,panes:()=>Go,protect:()=>Ix,removeConditionalFormatting:()=>Ux,rowCount:()=>dS,setAutoFilter:()=>Ko,setColumns:()=>Une,setModel:()=>_S,setName:()=>gS,spliceColumns:()=>Mne,spliceRows:()=>Ob,split:()=>Uo,toAoa:()=>nS,toJson:()=>eS,unfreeze:()=>Wo,unmerge:()=>Ib,unprotect:()=>Lx,verifyPassword:()=>Rx}),bS=n((()=>{yS(),Yo()})),Gne=r({addName:()=>ure,applyCellStyle:()=>rre,find:()=>IS,getAlignment:()=>Cre,getBorder:()=>ES,getComment:()=>MS,getDateKind:()=>Jne,getDateParts:()=>Kne,getDisplayText:()=>Zne,getEffectiveType:()=>$ne,getFill:()=>OS,getFont:()=>yre,getFormula:()=>ere,getFullAddress:()=>FS,getHyperlink:()=>ore,getMergeMaster:()=>are,getModel:()=>_re,getNames:()=>lre,getNote:()=>sre,getNumFmt:()=>xre,getProtection:()=>AS,getResult:()=>tre,getStyle:()=>nre,getTemporal:()=>Yne,getText:()=>Xne,getType:()=>Qne,getValidation:()=>hre,getValue:()=>CS,isMerged:()=>ire,removeAllNames:()=>mre,removeName:()=>dre,setAlignment:()=>wre,setBorder:()=>DS,setComment:()=>NS,setDateParts:()=>qne,setFill:()=>kS,setFont:()=>bre,setModel:()=>vre,setName:()=>fre,setNames:()=>pre,setNote:()=>cre,setNumFmt:()=>Sre,setProtection:()=>jS,setResult:()=>PS,setStyle:()=>TS,setValidation:()=>gre,setValue:()=>wS,view:()=>LS});function xS(e,t,n,r){return r>=3?ho(e,t,n):ho(e,t)}function SS(e,t,n,r,i){return i>=4?[ho(e,t,n),r]:[ho(e,t),n]}function CS(e,t,n){return wi(xS(e,t,n,arguments.length))}function wS(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);Oi(i,a)}function Kne(e,t,n){return Mi(xS(e,t,n,arguments.length))}function qne(e,t,n,r,i){if(typeof n==`number`){ji(ho(e,t,n),r,i);return}ji(ho(e,t),n,r)}function Jne(e,t,n){return Ni(xS(e,t,n,arguments.length))}function Yne(e,t,n,r){return typeof n==`number`?Pi(ho(e,t,n),r):Pi(ho(e,t),n)}function Xne(e,t,n){return bee(xS(e,t,n,arguments.length))}function Zne(e,t,n){return xee(xS(e,t,n,arguments.length))}function Qne(e,t,n){return Si(xS(e,t,n,arguments.length))}function $ne(e,t,n){return Ci(xS(e,t,n,arguments.length))}function ere(e,t,n){return qi(xS(e,t,n,arguments.length))}function tre(e,t,n){return Ji(xS(e,t,n,arguments.length))}function nre(e,t,n){return _i(xS(e,t,n,arguments.length))}function TS(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);vi(i,a)}function rre(e,t,n,r){let i=arguments.length>=4?r:n;if(!Bf(eo(e),i))throw new h(`Named cell style "${i}" is not defined. Define it first with Workbook.defineCellStyle().`);if(arguments.length>=4){vi(ho(e,t,n),{styleName:i});return}vi(ho(e,t),{styleName:i})}function ire(e,t,n){return Li(xS(e,t,n,arguments.length))}function are(e,t,n){return Bi(xS(e,t,n,arguments.length))}function ore(e,t,n){return Vi(xS(e,t,n,arguments.length))}function sre(e,t,n){return Hi(xS(e,t,n,arguments.length))}function cre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);Ui(i,a)}function lre(e,t,n){return wee(xS(e,t,n,arguments.length))}function ure(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);Tee(i,a)}function dre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);Eee(i,a)}function fre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);Cee(i,a)}function pre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);Xi(i,a)}function mre(e,t,n){Dee(xS(e,t,n,arguments.length))}function hre(e,t,n){return Oee(xS(e,t,n,arguments.length))}function gre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);kee(i,a)}function _re(e,t,n){return Zi(xS(e,t,n,arguments.length))}function vre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);Qi(i,a)}function yre(e,t,n){return si(xS(e,t,n,arguments.length))}function bre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);ci(i,a)}function xre(e,t,n){return ai(xS(e,t,n,arguments.length))}function Sre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);oi(i,a)}function Cre(e,t,n){return li(xS(e,t,n,arguments.length))}function wre(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);ui(i,a)}function ES(e,t,n){return di(xS(e,t,n,arguments.length))}function DS(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);fi(i,a)}function OS(e,t,n){return pi(xS(e,t,n,arguments.length))}function kS(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);mi(i,a)}function AS(e,t,n){return hi(xS(e,t,n,arguments.length))}function jS(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);gi(i,a)}function MS(e,t,n){return Wi(xS(e,t,n,arguments.length))}function NS(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);Gi(i,a)}function PS(e,t,n,r){let[i,a]=SS(e,t,n,r,arguments.length);See(i,a)}function FS(e,t,n){return Yi(xS(e,t,n,arguments.length))}function IS(e,t,n){return arguments.length>=3?mo(e,t,n):mo(e,t)}function LS(e){return Ki(e)}var RS=n((()=>{ha(),sp(),Yo(),E()})),zS=r({addPageBreak:()=>aC,commit:()=>iC,eachCell:()=>rC,getCell:()=>nC,getHeight:()=>BS,getHidden:()=>HS,getOutlineLevel:()=>WS,getStyle:()=>KS,getValues:()=>JS,setAlignment:()=>$S,setBorder:()=>eC,setFill:()=>tC,setFont:()=>QS,setHeight:()=>VS,setHidden:()=>US,setNumFmt:()=>ZS,setOutlineLevel:()=>GS,setStyle:()=>qS,setValues:()=>YS,values:()=>XS});function BS(e,t){return lo(e,t).height}function VS(e,t,n){let r=lo(e,t);r.height=n,r.customHeight=!0}function HS(e,t){return Wa(lo(e,t))}function US(e,t,n){Ga(lo(e,t),n)}function WS(e,t){return Ka(lo(e,t))}function GS(e,t,n){qa(lo(e,t),n)}function KS(e,t){return Ha(lo(e,t))}function qS(e,t,n){Ua(lo(e,t),n)}function JS(e,t){return Na(lo(e,t))}function YS(e,t,n){yo(lo(e,t),n)}function XS(e,t){return Ma(lo(e,t))}function ZS(e,t,n){La(lo(e,t),n)}function QS(e,t,n){Ra(lo(e,t),n)}function $S(e,t,n){za(lo(e,t),n)}function eC(e,t,n){Ba(lo(e,t),n)}function tC(e,t,n){Va(lo(e,t),n)}function nC(e,t,n){return vo(lo(e,t),n)}function rC(e,t,n,r){jo(lo(e,t),n,r)}function iC(e,t){No(lo(e,t))}function aC(e,t){ja(lo(e,t))}var oC=n((()=>{Qa(),Yo()})),sC=r({addPageBreak:()=>wC,getDefinition:()=>CC,getHeader:()=>fC,getHidden:()=>gC,getKey:()=>mC,getLetter:()=>lC,getNumber:()=>cC,getOutlineLevel:()=>vC,getStyle:()=>bC,getWidth:()=>uC,setHeader:()=>pC,setHidden:()=>_C,setKey:()=>hC,setNumFmt:()=>SC,setOutlineLevel:()=>yC,setStyle:()=>xC,setWidth:()=>dC});function cC(e,t){return ao(e,t).number}function lC(e,t){return jee(ao(e,t))}function uC(e,t){return ao(e,t).width}function dC(e,t,n){ao(e,t).width=n}function fC(e,t){return ao(e,t).header}function pC(e,t,n){Eo(ao(e,t),n)}function mC(e,t){return ao(e,t).key}function hC(e,t,n){bo(ao(e,t),n)}function gC(e,t){return va(ao(e,t))}function _C(e,t,n){Nee(ao(e,t),n)}function vC(e,t){return ya(ao(e,t))}function yC(e,t,n){Pee(ao(e,t),n)}function bC(e,t){return ao(e,t).style}function xC(e,t,n){ko(ao(e,t),n)}function SC(e,t,n){Oo(ao(e,t),n)}function CC(e,t){return _a(ao(e,t))}function wC(e,t){Ca(ao(e,t))}var TC=n((()=>{Da(),Yo()})),EC=r({contains:()=>We,containsCell:()=>Ge,count:()=>Ve,create:()=>De,expand:()=>Me,expandToAddress:()=>Pe,forEachAddress:()=>Ke,getValues:()=>go,intersects:()=>Ue,toString:()=>He});qe(),Yo(),a_();let DC={r:0,g:0,b:0,a:1};function V(e){return Zg(e)??DC}function OC(e,t){return{...V(e),a:t}}xc(),Du();let kC=`#444`,AC=`#555`,jC=`#fff`;function MC(e){return{fill:V(e)}}function NC(e){return{fill:V(e),stroke:V(jC),strokeWidth:1}}function PC(e,t=1){return{stroke:V(e),strokeWidth:t}}function FC(e,t,n,r,i){return{kind:`polyline`,points:[{x:e,y:t},{x:n,y:r}],paint:i}}function IC(e,t,n,r,i,a){return{kind:`text`,x:e,y:t,lines:[{text:n,dy:0}],style:{size:r,fill:V(i),anchor:a,family:`Arial`}}}function LC(e,t){return{kind:`polyline`,points:e,closed:!0,paint:t}}function RC(e,t){let n=[];for(let r=1;r<5;r++){let i=r/5,a=e.y+e.height*i;n.push(FC(e.x,a,e.x+e.width,a,PC(`#D9D9D9`)));let o=t.max+(t.min-t.max)*i;n.push(IC(e.x-8,a+3,au(o),10,AC,`end`))}n.push(FC(e.x,e.y+e.height,e.x+e.width,e.y+e.height,PC(kC))),n.push(FC(e.x,e.y,e.x,e.y+e.height,PC(kC)));for(let r of[t.max,t.min])n.push(IC(e.x-8,eu(r,t.min,t.max,e)+3,au(r),10,AC,`end`));return n}function zC(e,t,n,r,i){let a=[...RC(n,i)],o=Math.max(1,e.length),s=n.width/o,c=eu(0,i.min,i.max,n);return e.forEach((e,o)=>{let l=eu(e,i.min,i.max,n);a.push(vc({x:n.x+o*s+s*.18,y:Math.min(l,c),width:s*.64,height:Math.abs(c-l)},MC(r))),a.push(IC(n.x+o*s+s/2,n.y+n.height+18,t[o]??String(o+1),10,AC,`middle`))}),a}function BC(e){let t=[];for(let n of e)t.push(vc(n.rect,NC(n.color))),n.label&&t.push(IC(n.rect.x+4,n.rect.y+14,n.label,10,jC,`start`));return t}function VC(e,t,n,r,i,a,o){return{kind:`sector`,cx:e,cy:t,radius:n,innerRadius:r,startAngle:i,endAngle:a,paint:NC(o)}}function HC(e){return e.map(e=>VC(e.cx,e.cy,e.outer,e.inner,e.start,e.end,e.color))}function UC(e,t,n,r){let i=e.reduce((e,t)=>Number.isFinite(t)?Math.max(e,Math.abs(t)):e,0),a=i>0?i:1,o=Math.max(1,e.length),s=t.height/o,c=[];return e.forEach((i,o)=>{let l=Number.isFinite(i)?Math.abs(i):0,u=e[o+1],d=Number.isFinite(u)?Math.abs(u):l,f=l/a*t.width,p=d/a*t.width,m=t.y+o*s,h=t.x+t.width/2;c.push(LC([{x:h-f/2,y:m},{x:h+f/2,y:m},{x:h+p/2,y:m+s*.88},{x:h-p/2,y:m+s*.88}],NC(n(o))));let g=r(o,i);g!==void 0&&c.push(IC(h,m+s*.55,g,11,jC,`middle`))}),c}function WC(e){return yu[e%yu.length]}function GC(e,t,n,r){let i=[...RC(n,r)],a=Math.max(1,e.length),o=n.width/a,s=o*.64;return e.forEach((e,a)=>{let c=eu(e.start,r.min,r.max,n),l=eu(e.end,r.min,r.max,n),u=n.x+a*o+o*.18,d=e.gap?0:Math.max(1,Math.abs(c-l));i.push(vc({x:u,y:Math.min(c,l),width:s,height:d},MC(e.colour))),i.push(IC(n.x+a*o+o/2,n.y+n.height+18,t[a]??String(a+1),10,AC,`middle`))}),i}function KC(e,t,n){let r=Math.max(1,e.length),i=t.width/r,a=i*.64,o=e.map((e,r)=>({x:t.x+r*i+i*.18+a,y:eu(e.end,n.min,n.max,t)})),s=[];for(let e=0;e<o.length-1;e++)s.push(FC(o[e].x,o[e].y,o[e+1].x-a,o[e].y,{stroke:V(`#888`),strokeWidth:1,dash:[3,3]}));return s}function qC(e,t){let n=e.reduce((e,t)=>e+(Number.isFinite(t)?Math.max(0,t):0),0);if(!(n>0))return[];let r=Math.max(1,e.length),i=t.width/r,a=0,o=e.map((e,r)=>(a+=Number.isFinite(e)?Math.max(0,e):0,{x:t.x+r*i+i/2,y:t.y+t.height-a/n*t.height})),s=WC(1);return[{kind:`polyline`,points:o,paint:PC(s,2)},...o.map(e=>({kind:`ellipse`,cx:e.x,cy:e.y,rx:3,ry:3,paint:MC(s)})),IC(t.x+t.width-4,t.y+12,`Cumulative %`,10,s,`end`)]}function JC(e,t,n,r){let i=[...RC(t,n)],a=t.width/Math.max(1,e.length),o=e=>eu(e,n.min,n.max,t);return e.forEach(({key:e,stats:n},s)=>{let c=t.x+s*a+a/2,l=a*.38,u=WC(s),d=o(n.q1),f=o(n.q3);i.push(FC(c,o(n.high),c,o(n.low),PC(AC))),i.push(vc({x:c-l/2,y:Math.min(d,f),width:l,height:Math.abs(f-d)},{fill:OC(u,.35),stroke:V(u),strokeWidth:1}));let p=o(n.median);if(i.push(FC(c-l/2,p,c+l/2,p,PC(`#333`))),r.showMeanMarker&&i.push({kind:`ellipse`,cx:c,cy:o(n.mean),rx:3,ry:3,paint:MC(`#333`)}),r.showMeanLine){let e=o(n.mean);i.push(FC(c-l/2,e,c+l/2,e,{stroke:V(`#333`),strokeWidth:1,dash:[3,2]}))}if(r.showInnerPoints)for(let e of n.nonOutliers)i.push({kind:`ellipse`,cx:c-l*.62,cy:o(e),rx:1.6,ry:1.6,paint:{fill:OC(u,.55)}});if(r.showOutlierPoints)for(let e of n.outliers)i.push({kind:`ellipse`,cx:c+l*.62,cy:o(e),rx:2,ry:2,paint:PC(`#333`)});i.push(IC(c,t.y+t.height+18,e,10,AC,`middle`))}),i}function YC(e,t,n){return Array.from({length:6},(r,i)=>{let a=Math.PI/6+Math.PI*2*i/6;return{x:e+Math.cos(a)*n,y:t+Math.sin(a)*n}})}function XC(e,t,n,r,i,a,o){return{kind:`text`,x:e,y:t,lines:n.map((e,t)=>({text:e,dy:t*o})),style:{size:r,fill:V(i),anchor:a,family:`Arial`}}}function ZC(e,t,n=0){let r=e.length,i=t.length;if(i===0)return 0;if(i>r)return-1;let a=n|0;if(a<0&&(a=0),a>r-i)return-1;if(i===1)return e.indexOf(t[0],a);if(i===2){let n=t[0],i=t[1],o=r-2,s=e.indexOf(n,a);for(;s!==-1&&s<=o;){if(e[s+1]===i)return s;s=e.indexOf(n,s+1)}return-1}if(i===3){let n=t[0],i=t[1],o=t[2],s=r-3,c=e.indexOf(n,a);for(;c!==-1&&c<=s;){if(e[c+1]===i&&e[c+2]===o)return c;c=e.indexOf(n,c+1)}return-1}if(i===4){let n=t[0],i=t[1],o=t[2],s=t[3],c=r-4,l=e.indexOf(n,a);for(;l!==-1&&l<=c;){if(e[l+1]===i&&e[l+2]===o&&e[l+3]===s)return l;l=e.indexOf(n,l+1)}return-1}for(let n=a;n<=r-i;n++){let r=!0;for(let a=0;a<i;a++)if(e[n+a]!==t[a]){r=!1;break}if(r)return n}return-1}var QC,$C=n((()=>{QC=new Uint8Array})),ew,tw=n((()=>{$C(),ew=class{_activeChunkCount(){return this._chunks.length-this._chunkHead}_headChunk(){return this._chunks[this._chunkHead]}_compactConsumedChunks(){if(this._chunkHead!==0){if(this._chunkHead>=this._chunks.length){this._chunks=[],this._chunkHead=0;return}this._chunkHead>32&&this._chunkHead*2>=this._chunks.length&&(this._chunks=this._chunks.slice(this._chunkHead),this._chunkHead=0)}}_dropHeadChunk(){this._chunkHead++,this._headOffset=0,this._compactConsumedChunks()}constructor(e){this._chunks=[],this._chunkHead=0,this._headOffset=0,this._length=0,this._cachedView=null,this._cachedLength=0,e&&e.length>0&&this.reset(e)}get length(){return this._length}isEmpty(){return this.length===0}view(){if(this._length===0)return QC;if(this._activeChunkCount()===1)return this._headChunk().subarray(this._headOffset,this._headOffset+this._length);if(this._cachedView&&this._cachedLength===this._length)return this._cachedView;let e=new Uint8Array(this._length),t=0;for(let n=this._chunkHead;n<this._chunks.length;n++){let r=this._chunks[n],i=n===this._chunkHead?this._headOffset:0,a=n===this._chunks.length-1?i+(this._length-t):r.length;if(e.set(r.subarray(i,a),t),t+=a-i,t>=e.length)break}return this._cachedView=e,this._cachedLength=this._length,e}reset(e){if(this._cachedView=null,this._cachedLength=0,this._chunks=[],this._chunkHead=0,this._headOffset=0,this._length=0,!e||e.length===0)return;let t=new Uint8Array(e.length);t.set(e),this._chunks=[t],this._chunkHead=0,this._headOffset=0,this._length=t.length}append(e){e.length!==0&&(this._cachedView=null,this._cachedLength=0,this._chunks.push(e),this._length+=e.length)}read(e){if(e<=0)return QC;if(e>this._length)throw RangeError(`ByteQueue: read beyond available data`);if(this._cachedView=null,this._cachedLength=0,this._activeChunkCount()===1){let t=this._headChunk(),n=this._headOffset,r=n+e,i=t.subarray(n,r);return this._headOffset=r,this._length-=e,this._length===0?(this._chunks=[],this._chunkHead=0,this._headOffset=0):this._headOffset>=t.length&&this._dropHeadChunk(),i}let t=new Uint8Array(e),n=0,r=e;for(;r>0;){let e=this._headChunk(),i=this._headOffset,a=e.length-i,o=Math.min(a,r);t.set(e.subarray(i,i+o),n),n+=o,r-=o,this._headOffset+=o,this._length-=o,this._headOffset>=e.length&&this._dropHeadChunk()}return this._length===0&&(this._chunks=[],this._chunkHead=0,this._headOffset=0),t}peekChunks(e){if(e<=0)return[];if(e>this._length)throw RangeError(`ByteQueue: peek beyond available data`);if(this._activeChunkCount()===1){let t=this._headChunk(),n=this._headOffset;return[t.subarray(n,n+e)]}let t=[],n=e;for(let e=this._chunkHead;e<this._chunks.length&&n>0;e++){let r=this._chunks[e],i=e===this._chunkHead?this._headOffset:0,a=r.length-i;if(a<=0)continue;let o=Math.min(a,n);t.push(r.subarray(i,i+o)),n-=o}return t}discard(e){if(e<=0)return;if(e>=this._length){this._chunks=[],this._chunkHead=0,this._headOffset=0,this._length=0,this._cachedView=null,this._cachedLength=0;return}this._cachedView=null,this._cachedLength=0;let t=e;for(;t>0;){let e=this._headChunk(),n=this._headOffset,r=e.length-n,i=Math.min(r,t);this._headOffset+=i,this._length-=i,t-=i,this._headOffset>=e.length&&this._dropHeadChunk()}this._length===0&&(this._chunks=[],this._chunkHead=0,this._headOffset=0)}indexOfPattern(e,t=0){let n=e.length;if(n===0)return 0;let r=this._length;if(n>r)return-1;let i=t|0;if(i<0&&(i=0),i>r-n)return-1;if(this._activeChunkCount()===1){let t=this._headChunk(),a=this._headOffset,o=t.subarray(a,a+r);return n===1?o.indexOf(e[0],i):ZC(o,e,i)}if(n>4)return ZC(this.view(),e,i);let a=e[0],o=n>=2?e[1]:0,s=n>=3?e[2]:0,c=n>=4?e[3]:0,l=this._chunks,u=this._chunkHead,d=(e,t)=>{let n=e,r=t;for(;n<l.length;){let e=l[n];if(r<e.length)return e[r]|0;r-=e.length,n++}return null},f=0;for(let e=u;e<l.length;e++){let t=l[e],p=e===u?this._headOffset:0,m=t.length-p;if(m<=0)continue;let h=f,g=h+m,_=i<=h?p:i>=g?t.length:p+(i-h);if(_>t.length-1){f+=m;continue}let v=t.length-1,y=t.indexOf(a,_);for(;y!==-1&&y<=v;){let i=h+(y-p);if(i>r-n)return-1;if(n===1)return i;if(y+n<=t.length){if(t[y+1]!==o){y=t.indexOf(a,y+1);continue}if(n===2)return i;if(t[y+2]!==s){y=t.indexOf(a,y+1);continue}if(n===3)return i;if(t[y+3]!==c){y=t.indexOf(a,y+1);continue}return i}let l=d(e,y+1);if(l===null||l!==o){y=t.indexOf(a,y+1);continue}if(n===2)return i;let u=d(e,y+2);if(u===null||u!==s){y=t.indexOf(a,y+1);continue}if(n===3)return i;let f=d(e,y+3);if(f===null||f!==c){y=t.indexOf(a,y+1);continue}return i}f+=m}return-1}peekUint32LE(e){let t=e|0;if(t<0||t+4>this._length)return null;let n=this._chunks,r=t;for(let e=this._chunkHead;e<n.length;e++){let t=n[e],i=e===this._chunkHead?this._headOffset:0,a=t.length-i;if(r<a){let a=i+r;if(a+4<=t.length){let e=t[a]|0,n=t[a+1]|0,r=t[a+2]|0,i=t[a+3]|0;return(e|n<<8|r<<16|i<<24)>>>0}let o=t[a]|0,s=0,c=0,l=0,u=e,d=a+1;for(let e=1;e<4;e++)for(;u<n.length;){let t=n[u];if(d<t.length){let n=t[d]|0;e===1?s=n:e===2?c=n:l=n,d++;break}u++,d=0}return(o|s<<8|c<<16|l<<24)>>>0}r-=a}return null}peekByte(e){let t=e|0;if(t<0||t>=this._length)throw RangeError(`ByteQueue: peek beyond available data`);let n=t;for(let e=this._chunkHead;e<this._chunks.length;e++){let t=this._chunks[e],r=e===this._chunkHead?this._headOffset:0,i=t.length-r;if(n<i)return t[r+n]|0;n-=i}throw RangeError(`ByteQueue: peek beyond available data`)}}})),H,nw,rw,iw,aw,ow,sw,cw,lw,uw=n((()=>{f(),H=class extends u{constructor(e,t){super(e,t),this.name=`ArchiveError`}},nw=class extends H{constructor(...e){super(...e),this.name=`ZipParseError`}},rw=class extends nw{constructor(e){super(`Invalid ZIP file: End of Central Directory not found`,e),this.name=`EocdNotFoundError`}},iw=class extends H{constructor(e,t,n,r){super(`CRC32 mismatch for "${e}": expected 0x${t.toString(16).padStart(8,`0`)}, got 0x${n.toString(16).padStart(8,`0`)}`,r),this.path=e,this.expected=t,this.actual=n,this.name=`Crc32MismatchError`}},aw=class extends H{constructor(e,t,n,r,i){let a=r===`too-many-bytes`?`Entry "${e}" produced more bytes than declared: expected ${t}, got at least ${n}`:`Entry "${e}" produced fewer bytes than declared: expected ${t}, got ${n}`;super(a,i),this.path=e,this.expected=t,this.actual=n,this.reason=r,this.name=`EntrySizeMismatchError`}isZipBomb(){return this.reason===`too-many-bytes`}isCorruption(){return this.reason===`too-few-bytes`}},ow=class extends H{constructor(e,t,n){super(t?`Failed to decrypt "${e}": ${t}`:`Failed to decrypt "${e}": incorrect password or corrupted data`,n),this.name=`DecryptionError`}},sw=class extends H{constructor(e,t){super(`File "${e}" is encrypted. Please provide a password to extract.`,t),this.name=`PasswordRequiredError`}},cw=class extends H{constructor(e,t,n){super(`File "${e}" is too large to extract into memory (${t})`,n),this.name=`FileTooLargeError`}},lw=class extends H{constructor(e,t){super(`Unsupported compression method: ${e}`,t),this.name=`UnsupportedCompressionError`}}}));function dw(){try{return typeof CompressionStream>`u`?!1:(new CompressionStream(`deflate-raw`),!0)}catch{return!1}}function fw(){try{return typeof DecompressionStream>`u`?!1:(new DecompressionStream(`deflate-raw`),!0)}catch{return!1}}function pw(){return typeof CompressionStream>`u`?!1:(ww===null&&(ww=dw()),ww)}function mw(){return typeof DecompressionStream>`u`?!1:(Tw===null&&(Tw=fw()),Tw)}function hw(){return pw()&&mw()}async function gw(e){let t=new ew;for(;;){let{done:n,value:r}=await e.read();if(n)break;t.append(r)}return t.read(t.length)}async function _w(e,t){let n=t.writable.getWriter(),r=t.readable.getReader(),i=gw(r).then(e=>({ok:!0,value:e}),e=>({ok:!1,error:e}));try{let t;try{await n.write(e),await n.close()}catch(e){t={error:e},await r.cancel().catch(()=>{})}let a=await i;if(!a.ok)throw a.error;if(t)throw t.error;return a.value}finally{try{n.releaseLock()}catch{}try{r.releaseLock()}catch{}}}async function vw(e){return _w(e,new CompressionStream(`deflate-raw`))}async function yw(e){return _w(e,new DecompressionStream(`deflate-raw`))}function bw(e){let t=1,n=0;for(let r=0;r<e.length;){let i=Math.min(r+5552,e.length);for(;r<i;)t+=e[r++],n+=t;t%=Ew,n%=Ew}return n<<16|t}function xw(e,t){let n=`${e}:${t}`;return()=>{let r=e===`compression`?typeof CompressionStream<`u`?CompressionStream:void 0:typeof DecompressionStream<`u`?DecompressionStream:void 0;if(!r)return!1;let i=Dw[n];if(i!=null)return i;try{new r(t),Dw[n]=!0}catch{Dw[n]=!1}return Dw[n]}}function Sw(e){return Ow[Math.max(0,Math.min(9,e))]??Ow[6]}function Cw(e){let t=new Uint8Array(4);return t[0]=e>>>24&255,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t}var ww,Tw,Ew,Dw,Ow,kw=n((()=>{tw(),ww=null,Tw=null,Ew=65521,Dw={},xw(`compression`,`gzip`),xw(`decompression`,`gzip`),xw(`compression`,`deflate`),xw(`decompression`,`deflate`),Ow={0:new Uint8Array([120,1]),1:new Uint8Array([120,1]),2:new Uint8Array([120,94]),3:new Uint8Array([120,94]),4:new Uint8Array([120,94]),5:new Uint8Array([120,94]),6:new Uint8Array([120,156]),7:new Uint8Array([120,218]),8:new Uint8Array([120,218]),9:new Uint8Array([120,218])}}));function Aw(){if(Fw)return Fw;let e=new Uint32Array(256);for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n=n&1?3988292384^n>>>1:n>>>1;e[t]=n}return Fw=e,e}function jw(e,t){let n=Aw();for(let r=0;r<t.length;r++)e=n[(e^t[r])&255]^e>>>8;return e}function Mw(e){return(e^4294967295)>>>0}function Nw(e){return Mw(jw(4294967295,e))}function Pw(e,t){return(Aw()[(e^t)&255]^e>>>8)>>>0}var Fw,Iw=n((()=>{Fw=null})),Lw=n((()=>{Iw()}));function Rw(e,t){let n=new Uint16Array(16);for(let r=0;r<t;r++)e[r]>0&&n[e[r]]++;let r=new Uint16Array(16),i=0;for(let e=1;e<=15;e++)i=i+n[e-1]<<1,r[e]=i;let a={};for(let n=0;n<t;n++){let t=e[n];if(t===0)continue;i=r[t]++;let o=a;for(let e=t-1;e>=0;e--)i>>e&1?(o.right||(o.right={}),o=o.right):(o.left||(o.left={}),o=o.left);o.symbol=n}return a}function zw(e){let t=new aT(e),n=new Uint8Array(Math.max(64,e.length*4)),r=0,i=e=>{let t=r+e;if(t<=n.length)return;let i=n.length;for(;i<t;)i*=2;let a=new Uint8Array(i);a.set(n.subarray(0,r)),n=a},a=!1;for(;!a;){a=t.readBits(1)===1;let e=t.readBits(2);if(e===0){t.alignToByte();let e=t.readUint16();if((e^t.readUint16())!==65535)throw new H(`Invalid stored block length`);i(e);for(let i=0;i<e;i++)n[r++]=t.readByte()}else if(e===1||e===2){let a,o;if(e===1)a=Rw(Zw,288),o=Rw(Qw,32);else{let e=t.readBits(5)+257,n=t.readBits(5)+1,r=t.readBits(4)+4,i=new Uint8Array(19);for(let e=0;e<r;e++)i[iT[e]]=t.readBits(3);let s=Rw(i,19),c=new Uint8Array(e+n),l=0;for(;l<e+n;){let e=t.decodeSymbol(s);if(e<16)c[l++]=e;else if(e===16){let e=t.readBits(2)+3,n=c[l-1];for(let t=0;t<e;t++)c[l++]=n}else if(e===17){let e=t.readBits(3)+3;for(let t=0;t<e;t++)c[l++]=0}else if(e===18){let e=t.readBits(7)+11;for(let t=0;t<e;t++)c[l++]=0}}a=Rw(c.subarray(0,e),e),o=Rw(c.subarray(e),n)}for(;;){let e=t.decodeSymbol(a);if(e<256)i(1),n[r++]=e;else if(e===256)break;else{let a=e-257,s=$w[a]+t.readBits(eT[a]),c=t.decodeSymbol(o),l=tT[c]+t.readBits(nT[c]);i(s);let u=r-l;for(let e=0;e<s;e++)n[r++]=n[u+e]}}}else throw new H(`Invalid DEFLATE block type: `+e)}return n.slice(0,r)}function Bw(e){let t=65535,n=Math.ceil(e.length/t)||1,r=n*5+e.length,i=new Uint8Array(r),a=0,o=0;for(let r=0;r<n;r++){let s=r===n-1,c=Math.min(t,e.length-o);i[a++]=+!!s,i[a++]=c&255,i[a++]=c>>8&255,i[a++]=~c&255,i[a++]=~c>>8&255,i.set(e.subarray(o,o+c),a),a+=c,o+=c}return i.subarray(0,a)}function Vw(e){return e<=1?{maxChainLen:4,goodLen:4,niceLen:8,lazy:!1}:e<=3?{maxChainLen:8,goodLen:8,niceLen:32,lazy:!0}:e<=5?{maxChainLen:32,goodLen:16,niceLen:128,lazy:!0}:e<=7?{maxChainLen:64,goodLen:32,niceLen:258,lazy:!0}:{maxChainLen:128,goodLen:64,niceLen:258,lazy:!0}}function Hw(e,t,n){return(e<<16|t<<8|n)*506832829>>>17&sT}function Uw(e,t=6){if(e.length===0)return new Uint8Array([3,0]);if(e.length<100)return Bw(e);let n=Vw(t),r=Xw(e,0,e.length,n,null),i=new dT;return Yw(i,r,!0),i.finish()}function Ww(e,t){let[n,r]=fT[t];e.writeBitsReverse(n,r)}function Gw(e){for(let t=0;t<$w.length;t++)if(t===$w.length-1||e<$w[t+1])return{code:257+t,extra:e-$w[t],extraBits:eT[t]};return{code:285,extra:0,extraBits:0}}function Kw(e){for(let t=0;t<rT.length;t++){let[n,r,i]=rT[t];if(e<=n)return{code:r,extra:e-(t===0?1:rT[t-1][0]+1),extraBits:i}}return{code:29,extra:0,extraBits:13}}function qw(e,t){let n=e.length,r=new Uint8Array(n),i=[];for(let t=0;t<n;t++)e[t]>0&&i.push({sym:t,freq:e[t]});if(i.length===0)return r;if(i.length===1)return r[i[0].sym]=1,r;i.sort((e,t)=>e.freq-t.freq||e.sym-t.sym);let a=i.map(e=>({freq:e.freq,sym:e.sym,left:null,right:null})),o=0,s=0,c=[];function l(){let e=o<a.length,t=s<c.length;return e&&t?a[o].freq<=c[s].freq?a[o++]:c[s++]:e?a[o++]:c[s++]}let u=i.length;for(let e=0;e<u-1;e++){let e=l(),t=l(),n={freq:e.freq+t.freq,sym:-1,left:e,right:t};c.push(n)}let d=c[c.length-1];function f(e,t){if(e.sym>=0){r[e.sym]=t;return}e.left&&f(e.left,t+1),e.right&&f(e.right,t+1)}f(d,0);let p=new Uint16Array(t+1);for(let e=0;e<n;e++)r[e]>0&&(r[e]>t?(p[t]++,r[e]=t):p[r[e]]++);let m=0;for(let e=1;e<=t;e++)m+=p[e]<<t-e;let h=1<<t;if(m===h)return r;for(;m>h;){let e=t-1;for(;e>0&&p[e]===0;)e--;if(e===0)break;p[e]--,p[t]++,m-=(1<<t-e)-1}for(;m<h;)p[t]++,m++;let g=[];for(let t=0;t<n;t++)r[t]>0&&g.push({sym:t,origLen:r[t],freq:e[t]});g.sort((e,t)=>t.origLen-e.origLen||e.freq-t.freq),r.fill(0);let _=0;for(let e=t;e>=1;e--)for(let t=p[e];t>0;t--)_<g.length&&(r[g[_].sym]=e,_++);return r}function Jw(e){let t=e.length,n=Array(t),r=new Uint16Array(16);for(let n=0;n<t;n++)e[n]>0&&r[e[n]]++;let i=new Uint16Array(16),a=0;for(let e=1;e<=15;e++)a=a+r[e-1]<<1,i[e]=a;for(let r=0;r<t;r++){let t=e[r];t>0?n[r]=[i[t]++,t]:n[r]=[0,0]}return n}function Yw(e,t,n){let r=new Uint32Array(286),i=new Uint32Array(30);r[256]=1;for(let e of t)if(e.dist===0)r[e.litOrLen]++;else{let t=Gw(e.litOrLen);r[t.code]++;let n=Kw(e.dist);i[n.code]++}let a=qw(r,15),o=qw(i,15),s=!1;for(let e=0;e<o.length;e++)if(o[e]>0){s=!0;break}s||(o=new Uint8Array(30),o[0]=1,o[1]=1);let c=Jw(a),l=Jw(o),u=286;for(;u>257&&a[u-1]===0;)u--;let d=30;for(;d>1&&o[d-1]===0;)d--;let f=new Uint8Array(u+d);f.set(a.subarray(0,u)),f.set(o.subarray(0,d),u);let p=[],m=new Uint32Array(19);for(let e=0;e<f.length;){let t=f[e];if(t===0){let t=1;for(;e+t<f.length&&f[e+t]===0;)t++;for(;t>0;)if(t>=11){let n=Math.min(t,138);p.push({sym:18,extra:n-11,extraBits:7}),m[18]++,t-=n,e+=n}else if(t>=3){let n=Math.min(t,10);p.push({sym:17,extra:n-3,extraBits:3}),m[17]++,t-=n,e+=n}else p.push({sym:0,extra:0,extraBits:0}),m[0]++,t--,e++}else{p.push({sym:t,extra:0,extraBits:0}),m[t]++,e++;let n=0;for(;e+n<f.length&&f[e+n]===t;)n++;for(;n>=3;){let t=Math.min(n,6);p.push({sym:16,extra:t-3,extraBits:2}),m[16]++,n-=t,e+=t}for(;n>0;)p.push({sym:t,extra:0,extraBits:0}),m[t]++,n--,e++}}let h=qw(m,7),g=Jw(h),_=19;for(;_>4&&h[iT[_-1]]===0;)_--;e.writeBits(+!!n,1),e.writeBits(2,2),e.writeBits(u-257,5),e.writeBits(d-1,5),e.writeBits(_-4,4);for(let t=0;t<_;t++)e.writeBits(h[iT[t]],3);for(let t of p){let[n,r]=g[t.sym];e.writeBitsReverse(n,r),t.extraBits>0&&e.writeBits(t.extra,t.extraBits)}for(let n of t)if(n.dist===0){let[t,r]=c[n.litOrLen];e.writeBitsReverse(t,r)}else{let t=Gw(n.litOrLen),[r,i]=c[t.code];e.writeBitsReverse(r,i),t.extraBits>0&&e.writeBits(t.extra,t.extraBits);let a=Kw(n.dist),[o,s]=l[a.code];e.writeBitsReverse(o,s),a.extraBits>0&&e.writeBits(a.extra,a.extraBits)}let[v,y]=c[256];e.writeBitsReverse(v,y)}function Xw(e,t,n,r,i){let a=[],o=r.maxChainLen,s=r.goodLen,c=r.niceLen,l=r.lazy,u,d,f,p,m,h,g,_,v;i?(u=i.head,d=i.prev,f=i.window,p=i.windowLen,m=i.totalIn,h=i.hasPrevMatch,g=i.prevMatchLen,_=i.prevMatchDist,v=i.prevLiteral):(u=new Int32Array(oT),d=new Int32Array(uT),f=null,p=0,m=0,h=!1,g=0,_=0,v=0);let y=i?r=>{let i=r-m;return i>=t&&i<n?e[i]:f[r&32767]}:t=>e[t],b=i?t=>{if(t+2>=n)return;let r=Hw(e[t],e[t+1],e[t+2]),i=m+t;d[i&32767]=u[r],u[r]=i+1}:t=>{if(t+2>=n)return;let r=Hw(e[t],e[t+1],e[t+2]);d[t&32767]=u[r],u[r]=t+1},ee=i?(t,n)=>{for(let r=0;r<n;r++)f[p+r&32767]=e[t+r];p+=n}:(e,t)=>{},x=t;for(;x<n;){let t=0,r=0;if(x+2<n){let a=Hw(e[x],e[x+1],e[x+2]),f=i?m+x:x,p=l&&h&&g>=s?o>>2:o,_=u[a];for(;_>0&&p-->0;){let i=_-1,a=f-i;if(a>uT||a<=0)break;if(t>=cT&&y(i+t)!==e[x+t]){_=d[i&32767];continue}let o=Math.min(lT,n-x),s=0;for(;s<o&&y(i+s)===e[x+s];)s++;if(s>t&&(t=s,r=a,s>=c))break;_=d[i&32767]}i?(d[f&32767]=u[a],u[a]=f+1):(d[x&32767]=u[a],u[a]=x+1)}if(l&&h){if(t>g)a.push({litOrLen:v,dist:0}),g=t,_=r,v=e[x],ee(x,1),x++;else{a.push({litOrLen:g,dist:_});let e=Math.min(x-1+g,n);for(let t=x;t<e;t++)b(t);ee(x,e-x),x=e,h=!1,g=0}}else if(t>=cT){if(l)h=!0,g=t,_=r,v=e[x],ee(x,1),x++;else{a.push({litOrLen:t,dist:r});let e=Math.min(x+t,n);for(let t=x+1;t<e;t++)b(t);ee(x,e-x),x=e}}else h&&(a.push({litOrLen:g,dist:_}),h=!1,g=0),a.push({litOrLen:e[x],dist:0}),ee(x,1),x++}if(h){a.push({litOrLen:g,dist:_});let e=Math.min(x-1+g,n);for(let t=x;t<e;t++)b(t);ee(x,e-x),h=!1,g=0}return i&&(i.windowLen=p,i.totalIn=m+(n-t),i.hasPrevMatch=h,i.prevMatchLen=g,i.prevMatchDist=_,i.prevLiteral=v),a}var Zw,Qw,$w,eT,tT,nT,rT,iT,aT,oT,sT,cT,lT,uT,dT,fT,pT,mT=n((()=>{uw(),B(),Zw=(()=>{let e=new Uint8Array(288);for(let t=0;t<=143;t++)e[t]=8;for(let t=144;t<=255;t++)e[t]=9;for(let t=256;t<=279;t++)e[t]=7;for(let t=280;t<=287;t++)e[t]=8;return e})(),Qw=new Uint8Array(32).fill(5),$w=[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],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],tT=[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],nT=[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],rT=[[1,0,0],[2,1,0],[3,2,0],[4,3,0],[6,4,1],[8,5,1],[12,6,2],[16,7,2],[24,8,3],[32,9,3],[48,10,4],[64,11,4],[96,12,5],[128,13,5],[192,14,6],[256,15,6],[384,16,7],[512,17,7],[768,18,8],[1024,19,8],[1536,20,9],[2048,21,9],[3072,22,10],[4096,23,10],[6144,24,11],[8192,25,11],[12288,26,12],[16384,27,12],[24576,28,13],[32768,29,13]],iT=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],aT=class{constructor(e){this.data=e,this.pos=0,this.bitBuf=0,this.bitCount=0}readBits(e){for(;this.bitCount<e;){if(this.pos>=this.data.length)throw new H(`Unexpected end of DEFLATE data`);this.bitBuf|=this.data[this.pos++]<<this.bitCount,this.bitCount+=8}let t=this.bitBuf&(1<<e)-1;return this.bitBuf>>=e,this.bitCount-=e,t}decodeSymbol(e){let t=e;for(;t.symbol===void 0;)if(t=this.readBits(1)===0?t.left:t.right,!t)throw new H(`Invalid Huffman code`);return t.symbol}alignToByte(){this.bitBuf=0,this.bitCount=0}readByte(){if(this.pos>=this.data.length)throw new H(`Unexpected end of data`);return this.data[this.pos++]}readUint16(){return this.readByte()|this.readByte()<<8}},oT=32768,sT=32767,cT=3,lT=258,uT=32768,dT=class e{constructor(){this.chunks=[],this.buffer=new Uint8Array(e.CHUNK_SIZE),this.bufLen=0,this.bitBuf=0,this.bitCount=0}static{this.CHUNK_SIZE=65536}alignToByte(){this.bitCount>0&&this.writeBits(0,8-this.bitCount)}pushByte(t){this.buffer[this.bufLen++]=t,this.bufLen>=e.CHUNK_SIZE&&(this.chunks.push(this.buffer),this.buffer=new Uint8Array(e.CHUNK_SIZE),this.bufLen=0)}writeBits(e,t){for(this.bitBuf|=e<<this.bitCount,this.bitCount+=t;this.bitCount>=8;)this.pushByte(this.bitBuf&255),this.bitBuf>>=8,this.bitCount-=8}writeBitsReverse(e,t){let n=0;for(let r=0;r<t;r++)n=n<<1|e>>r&1;this.writeBits(n,t)}finish(){return this.bitCount>0&&(this.pushByte(this.bitBuf&255),this.bitBuf=0,this.bitCount=0),this.chunks.length===0?this.buffer.slice(0,this.bufLen):(this.chunks.push(this.buffer.subarray(0,this.bufLen)),L(this.chunks))}flushBytes(){if(this.chunks.length===0&&this.bufLen===0)return new Uint8Array;let t;return this.chunks.length===0?t=this.buffer.slice(0,this.bufLen):(this.chunks.push(this.buffer.subarray(0,this.bufLen)),t=L(this.chunks),this.chunks=[]),this.buffer=new Uint8Array(e.CHUNK_SIZE),this.bufLen=0,t}},fT=(()=>{let e=[];for(let t=0;t<=287;t++){let n,r;t<=143?(n=48+t,r=8):t<=255?(n=400+(t-144),r=9):t<=279?(n=t-256,r=7):(n=192+(t-280),r=8),e[t]=[n,r]}return e})(),pT=class{constructor(e=6){this._output=new dT,this._state={head:new Int32Array(oT),prev:new Int32Array(uT),window:new Uint8Array(uT),windowLen:0,totalIn:0,hasPrevMatch:!1,prevMatchLen:0,prevMatchDist:0,prevLiteral:0},this._level=Math.max(0,Math.min(9,e)),this._config=Vw(this._level)}write(e){if(e.length===0)return new Uint8Array;let t=this._output;return this._level===0?(this._writeStore(e),t.flushBytes()):(Yw(t,Xw(e,0,e.length,this._config,this._state),!1),t.flushBytes())}finish(){let e=this._output;return e.writeBits(1,1),e.writeBits(1,2),Ww(e,256),e.finish()}_writeStore(e){let t=this._output,n=0;for(;n<e.length;){let r=e.length-n,i=Math.min(65535,r);t.alignToByte(),t.writeBits(0,1),t.writeBits(0,2),t.alignToByte(),t.writeBits(i&255,8),t.writeBits(i>>8&255,8),t.writeBits(~i&255,8),t.writeBits(~i>>8&255,8);for(let r=0;r<i;r++)t.writeBits(e[n+r],8);n+=i}}}}));function hT(e){let t=e?.maxWorkers??vT.maxWorkers,n=e?.minWorkers??vT.minWorkers;return{maxWorkers:Math.max(1,t),minWorkers:Math.max(0,Math.min(n,t)),idleTimeout:Math.max(0,e?.idleTimeout??vT.idleTimeout),useTransferables:e?.useTransferables??vT.useTransferables,workerUrl:e?.workerUrl}}function gT(e){return e?yT[e]??yT.normal:yT.normal}function _T(){return typeof Worker<`u`&&typeof Blob<`u`}var vT,yT,bT=n((()=>{uw(),vT={maxWorkers:typeof navigator<`u`&&navigator.hardwareConcurrency||4,minWorkers:0,idleTimeout:3e4,useTransferables:!0,workerUrl:void 0},yT={high:3,normal:2,low:1}}));function xT(){return`
13
13
  'use strict';
14
14
 
15
15
  // Check deflate-raw support once at startup