UNPKG

ag-grid-enterprise

Version:

Advanced Data Grid / Data Table supporting Javascript / Typescript / React / Angular / Vue

6 lines 1.26 MB
import{BeanStub as Tm,_getDocument as Mm}from"ag-grid-community";import{_exists as Im,_logPreInitWarn as Em}from"ag-grid-community";var Dm=class{constructor(){this.ieCompatibility=!1}init(){this.ieCompatibility=this.md5("hello")!="5d41402abc4b2a76b9719d911017c592"}md5cycle(e,t){let s=e[0],i=e[1],r=e[2],a=e[3];s=this.ff(s,i,r,a,t[0],7,-680876936),a=this.ff(a,s,i,r,t[1],12,-389564586),r=this.ff(r,a,s,i,t[2],17,606105819),i=this.ff(i,r,a,s,t[3],22,-1044525330),s=this.ff(s,i,r,a,t[4],7,-176418897),a=this.ff(a,s,i,r,t[5],12,1200080426),r=this.ff(r,a,s,i,t[6],17,-1473231341),i=this.ff(i,r,a,s,t[7],22,-45705983),s=this.ff(s,i,r,a,t[8],7,1770035416),a=this.ff(a,s,i,r,t[9],12,-1958414417),r=this.ff(r,a,s,i,t[10],17,-42063),i=this.ff(i,r,a,s,t[11],22,-1990404162),s=this.ff(s,i,r,a,t[12],7,1804603682),a=this.ff(a,s,i,r,t[13],12,-40341101),r=this.ff(r,a,s,i,t[14],17,-1502002290),i=this.ff(i,r,a,s,t[15],22,1236535329),s=this.gg(s,i,r,a,t[1],5,-165796510),a=this.gg(a,s,i,r,t[6],9,-1069501632),r=this.gg(r,a,s,i,t[11],14,643717713),i=this.gg(i,r,a,s,t[0],20,-373897302),s=this.gg(s,i,r,a,t[5],5,-701558691),a=this.gg(a,s,i,r,t[10],9,38016083),r=this.gg(r,a,s,i,t[15],14,-660478335),i=this.gg(i,r,a,s,t[4],20,-405537848),s=this.gg(s,i,r,a,t[9],5,568446438),a=this.gg(a,s,i,r,t[14],9,-1019803690),r=this.gg(r,a,s,i,t[3],14,-187363961),i=this.gg(i,r,a,s,t[8],20,1163531501),s=this.gg(s,i,r,a,t[13],5,-1444681467),a=this.gg(a,s,i,r,t[2],9,-51403784),r=this.gg(r,a,s,i,t[7],14,1735328473),i=this.gg(i,r,a,s,t[12],20,-1926607734),s=this.hh(s,i,r,a,t[5],4,-378558),a=this.hh(a,s,i,r,t[8],11,-2022574463),r=this.hh(r,a,s,i,t[11],16,1839030562),i=this.hh(i,r,a,s,t[14],23,-35309556),s=this.hh(s,i,r,a,t[1],4,-1530992060),a=this.hh(a,s,i,r,t[4],11,1272893353),r=this.hh(r,a,s,i,t[7],16,-155497632),i=this.hh(i,r,a,s,t[10],23,-1094730640),s=this.hh(s,i,r,a,t[13],4,681279174),a=this.hh(a,s,i,r,t[0],11,-358537222),r=this.hh(r,a,s,i,t[3],16,-722521979),i=this.hh(i,r,a,s,t[6],23,76029189),s=this.hh(s,i,r,a,t[9],4,-640364487),a=this.hh(a,s,i,r,t[12],11,-421815835),r=this.hh(r,a,s,i,t[15],16,530742520),i=this.hh(i,r,a,s,t[2],23,-995338651),s=this.ii(s,i,r,a,t[0],6,-198630844),a=this.ii(a,s,i,r,t[7],10,1126891415),r=this.ii(r,a,s,i,t[14],15,-1416354905),i=this.ii(i,r,a,s,t[5],21,-57434055),s=this.ii(s,i,r,a,t[12],6,1700485571),a=this.ii(a,s,i,r,t[3],10,-1894986606),r=this.ii(r,a,s,i,t[10],15,-1051523),i=this.ii(i,r,a,s,t[1],21,-2054922799),s=this.ii(s,i,r,a,t[8],6,1873313359),a=this.ii(a,s,i,r,t[15],10,-30611744),r=this.ii(r,a,s,i,t[6],15,-1560198380),i=this.ii(i,r,a,s,t[13],21,1309151649),s=this.ii(s,i,r,a,t[4],6,-145523070),a=this.ii(a,s,i,r,t[11],10,-1120210379),r=this.ii(r,a,s,i,t[2],15,718787259),i=this.ii(i,r,a,s,t[9],21,-343485551),e[0]=this.add32(s,e[0]),e[1]=this.add32(i,e[1]),e[2]=this.add32(r,e[2]),e[3]=this.add32(a,e[3])}cmn(e,t,s,i,r,a){return t=this.add32(this.add32(t,e),this.add32(i,a)),this.add32(t<<r|t>>>32-r,s)}ff(e,t,s,i,r,a,n){return this.cmn(t&s|~t&i,e,t,r,a,n)}gg(e,t,s,i,r,a,n){return this.cmn(t&i|s&~i,e,t,r,a,n)}hh(e,t,s,i,r,a,n){return this.cmn(t^s^i,e,t,r,a,n)}ii(e,t,s,i,r,a,n){return this.cmn(s^(t|~i),e,t,r,a,n)}md51(e){const t=e.length,s=[1732584193,-271733879,-1732584194,271733878];let i;for(i=64;i<=e.length;i+=64)this.md5cycle(s,this.md5blk(e.substring(i-64,i)));e=e.substring(i-64);const r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(i=0;i<e.length;i++)r[i>>2]|=e.charCodeAt(i)<<(i%4<<3);if(r[i>>2]|=128<<(i%4<<3),i>55)for(this.md5cycle(s,r),i=0;i<16;i++)r[i]=0;return r[14]=t*8,this.md5cycle(s,r),s}md5blk(e){const t=[];for(let s=0;s<64;s+=4)t[s>>2]=e.charCodeAt(s)+(e.charCodeAt(s+1)<<8)+(e.charCodeAt(s+2)<<16)+(e.charCodeAt(s+3)<<24);return t}rhex(e){const t="0123456789abcdef".split("");let s="",i=0;for(;i<4;i++)s+=t[e>>i*8+4&15]+t[e>>i*8&15];return s}hex(e){for(let t=0;t<e.length;t++)e[t]=this.rhex(e[t]);return e.join("")}md5(e){return this.hex(this.md51(e))}add32(e,t){return this.ieCompatibility?this.add32Compat(e,t):this.add32Std(e,t)}add32Std(e,t){return e+t&4294967295}add32Compat(e,t){const s=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(s>>16)<<16|s&65535}},yi={"01":"GRID","02":"CHARTS","0102":"BOTH"},fl="https://www.ag-grid.com/licensing/",ml=class ve{constructor(t){this.watermarkMessage=void 0,this.totalMessageLength=124,this.document=t,this.md5=new Dm,this.md5.init()}validateLicense(){const t=this.getLicenseDetails(ve.licenseKey),s=`AG Grid ${t.currentLicenseType==="BOTH"?"and AG Charts ":""}Enterprise`,i=t.suppliedLicenseType===void 0?"":`AG ${t.suppliedLicenseType==="BOTH"?"Grid and AG Charts":t.suppliedLicenseType==="GRID"?"Grid":"Charts"} Enterprise`;if(t.missing)(!this.isWebsiteUrl()||this.isForceWatermark())&&this.outputMissingLicenseKey(s);else if(t.expired){const r=ve.getGridReleaseDate(),a=ve.formatDate(r);this.outputExpiredKey(t.expiry,a,s,i)}else t.valid?t.isTrial&&t.trialExpired&&this.outputExpiredTrialKey(t.expiry,s,i):this.outputInvalidLicenseKey(!!t.incorrectLicenseType,s,i)}static extractExpiry(t){const s=t.substring(t.lastIndexOf("_")+1,t.length);return new Date(parseInt(ve.decode(s),10))}static extractLicenseComponents(t){let s=t.replace(/[\u200B-\u200D\uFEFF]/g,"");if(s=s.replace(/\r?\n|\r/g,""),t.length<=32)return{md5:null,license:t,version:null,isTrial:null};const i=s.length-32,r=s.substring(i),a=s.substring(0,i),[n,o,l]=ve.extractBracketedInformation(s);return{md5:r,license:a,version:n,isTrial:o,type:l}}getLicenseDetails(t){const s=ve.chartsLicenseManager?"BOTH":"GRID";if(!t?.length)return{licenseKey:t,valid:!1,missing:!0,currentLicenseType:s};const i=ve.getGridReleaseDate(),{md5:r,license:a,version:n,isTrial:o,type:l}=ve.extractLicenseComponents(t);let c=r===this.md5.md5(a)&&!t.includes("For_Trialing_ag-Grid_Only"),u,d,p=null,h=!1,g;function f(){u=p<new Date,d=void 0}if(c&&(p=ve.extractExpiry(a),c=!isNaN(p.getTime()),c))switch(d=i>p,n){case"legacy":case"2":{o&&f();break}case"3":l?.length?(g=l,l!==yi["01"]&&l!==yi["0102"]||s==="BOTH"&&g!=="BOTH"?(c=!1,h=!0):o&&f()):c=!1}return c?{licenseKey:t,valid:c,expiry:ve.formatDate(p),expired:d,version:n,isTrial:o,trialExpired:u,incorrectLicenseType:h,currentLicenseType:s,suppliedLicenseType:g}:{licenseKey:t,valid:c,incorrectLicenseType:h,currentLicenseType:s,suppliedLicenseType:g}}isDisplayWatermark(){return this.isForceWatermark()||!this.isLocalhost()&&!this.isWebsiteUrl()&&!!this.watermarkMessage?.length}getWatermarkMessage(){return this.watermarkMessage||""}getHostname(){const s=(this.document.defaultView||window).location,{hostname:i=""}=s;return i}isForceWatermark(){const s=(this.document.defaultView||window).location,{pathname:i}=s;return i?i.includes("forceWatermark"):!1}isWebsiteUrl(){return this.getHostname().match(/^(?:[\w-]+\.)?(ag-grid|bryntum)\.com$/)!==null}isLocalhost(){return this.getHostname().match(/^(?:127\.0\.0\.1|localhost)$/)!==null}static formatDate(t){const s=["January","February","March","April","May","June","July","August","September","October","November","December"],i=t.getDate(),r=t.getMonth(),a=t.getFullYear();return i+" "+s[r]+" "+a}static getGridReleaseDate(){return new Date(parseInt(ve.decode(ve.RELEASE_INFORMATION),10))}static decode(t){const s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let i="",r,a,n,o,l,c,u,d=0;const p=t.replace(/[^A-Za-z0-9+/=]/g,"");for(;d<p.length;)o=s.indexOf(p.charAt(d++)),l=s.indexOf(p.charAt(d++)),c=s.indexOf(p.charAt(d++)),u=s.indexOf(p.charAt(d++)),r=o<<2|l>>4,a=(l&15)<<4|c>>2,n=(c&3)<<6|u,i=i+String.fromCharCode(r),c!=64&&(i=i+String.fromCharCode(a)),u!=64&&(i=i+String.fromCharCode(n));return i=ve.utf8_decode(i),i}static utf8_decode(t){t=t.replace(/rn/g,"n");let s="";for(let i=0;i<t.length;i++){const r=t.charCodeAt(i);r<128?s+=String.fromCharCode(r):r>127&&r<2048?(s+=String.fromCharCode(r>>6|192),s+=String.fromCharCode(r&63|128)):(s+=String.fromCharCode(r>>12|224),s+=String.fromCharCode(r>>6&63|128),s+=String.fromCharCode(r&63|128))}return s}static setChartsLicenseManager(t){this.chartsLicenseManager=t,this.chartsLicenseManager?.setLicenseKey(this.licenseKey,!0)}static setLicenseKey(t){Im(this.licenseKey)&&this.licenseKey!==t&&Em(291,void 0,"AG Grid: License Key being set multiple times with different values. This can result in an incorrect license key being used."),this.licenseKey=t,this.chartsLicenseManager?.setLicenseKey(t,!0)}static extractBracketedInformation(t){if(!t.includes("["))return["legacy",!1,void 0];const s=t.match(/\[(.*?)\]/g).map(o=>o.replace("[","").replace("]",""));if(!s||s.length===0)return["legacy",!1,void 0];const i=s.filter(o=>o==="TRIAL").length===1,r=s.filter(o=>o.indexOf("v")===0)[0],a=r?r.replace("v",""):"legacy",n=yi[s.filter(o=>yi[o])[0]];return[a,i,n]}centerPadAndOutput(t){const s=this.totalMessageLength-t.length;console.error(t.padStart(s/2+t.length,"*").padEnd(this.totalMessageLength,"*"))}padAndOutput(t,s="*",i=""){console.error(t.padEnd(this.totalMessageLength-i.length,s)+i)}outputInvalidLicenseKey(t,s,i){t?(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${s} License `),this.centerPadAndOutput(" Incompatible License Key "),this.padAndOutput(`* Your license key is for ${i} only and does not cover you for ${s}.`," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${fl}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")):(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${s} License `),this.centerPadAndOutput(" Invalid License Key "),this.padAndOutput("* Your license key is not valid."," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${fl}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")),this.watermarkMessage="Invalid License"}outputExpiredTrialKey(t,s,i){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${s} License `),this.centerPadAndOutput(" Trial Period Expired. "),this.padAndOutput(`* Your trial only license for ${i} expired on ${t}.`," ","*"),this.padAndOutput("* Please email info@ag-grid.com to purchase a license."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="Trial Period Expired"}outputMissingLicenseKey(t){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${t} License `),this.centerPadAndOutput(" License Key Not Found "),this.padAndOutput(`* All ${t} features are unlocked for trial.`," ","*"),this.padAndOutput("* If you want to hide the watermark please email info@ag-grid.com for a trial license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="For Trial Use Only"}outputExpiredKey(t,s,i,r){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${i} License `),this.centerPadAndOutput(" Incompatible Software Version "),this.padAndOutput(`* Your license key works with versions${r==""?"":` of ${r}`} released before ${t}.`," ","*"),this.padAndOutput(`* The version you are trying to use was released on ${s}.`," ","*"),this.padAndOutput("* Please contact info@ag-grid.com to renew your license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="License Expired"}};ml.RELEASE_INFORMATION="MTc3ODU5NDg2MDI3Ng==";var Cs=ml;import{Component as Lm,RefPlaceholder as km}from"ag-grid-community";var Gm='.ag-watermark{bottom:20px;color:#9b9b9b;opacity:.7;position:absolute;transition:opacity 1s ease-out 3s}:where(.ag-ltr) .ag-watermark{right:25px}:where(.ag-rtl) .ag-watermark{left:25px}.ag-watermark:before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDkiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyMDkgMzYiPjxwYXRoIGZpbGw9IiM5YjliOWIiIGQ9Ik0xOTIuOTkzIDIzLjY1OHYtNy45NDZoLTEzLjU0MWwtNy45NDcgNy45NDZ6TTIwOC4yNSAzLjk1aC0xNi45NzRsLTguMDEgNy45NDdoMjQuOTg0ek0xNjMuNjIyIDMxLjYwNWw0LjA2OS00LjA2OWgxMy43MzJ2Ny45NDdoLTE3LjgwMXoiLz48cGF0aCBmaWxsPSIjOWI5YjliIiBkPSJNMTY2LjYxIDE5Ljc4aDguNzczbDguMDEtNy45NDZIMTY2LjYxek0xNTcuMDExIDMxLjYwNWg2LjYxMWw3Ljg4My03Ljk0N2gtMTQuNDk0ek0xOTEuMjc2IDMuOTVsLTQuMDY4IDQuMDdIMTYxLjI3Vi4wNzJoMzAuMDA2ek0yMC44NCAzMC4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xLjU5IDQuMTk2LTIuNzk3cTEuNzE4LTEuODEyIDIuNjctNC4zODdjLjYzNi0xLjcxNi45NTQtMy42MjMuOTU0LTUuNjU4di0uODI2Yy0uMTktLjEyNy0uMjU1LS40NDUtLjI1NS0uNyIvPjwvc3ZnPg==");background-repeat:no-repeat;background-size:170px 40px;content:"";display:block;height:40px;width:170px}.ag-watermark-text{font-family:Impact,sans-serif;font-size:19px;font-weight:700;opacity:.5}:where(.ag-ltr) .ag-watermark-text{padding-left:.7rem}:where(.ag-rtl) .ag-watermark-text{padding-right:.7rem}',Om={tag:"div",cls:"ag-watermark",children:[{tag:"div",ref:"eLicenseTextRef",cls:"ag-watermark-text"}]},Nm=class extends Lm{constructor(){super(Om),this.eLicenseTextRef=km,this.registerCSS(Gm)}wireBeans(e){this.licenseManager=e.licenseManager}postConstruct(){const e=this.shouldDisplayWatermark();this.setDisplayed(e),e&&(this.eLicenseTextRef.textContent=this.licenseManager.getWatermarkMessage(),window.setTimeout(()=>this.addCss("ag-opacity-zero"),0),window.setTimeout(()=>this.setDisplayed(!1),5e3))}shouldDisplayWatermark(){return this.licenseManager.isDisplayWatermark()}},_m={selector:"AG-WATERMARK",component:Nm},ia=class extends Tm{constructor(){super(...arguments),this.beanName="licenseManager"}postConstruct(){this.validateLicense()}validateLicense(){const e=this.beans;if(e.withinStudio)this.licenseManager={isDisplayWatermark:()=>!1,getWatermarkMessage:()=>""};else{const t=new Cs(Mm(e));this.licenseManager=t,t.validateLicense()}}static getLicenseDetails(e){return new Cs(null).getLicenseDetails(e)}getWatermarkSelector(){return _m}isDisplayWatermark(){return this.licenseManager.isDisplayWatermark()}getWatermarkMessage(){return this.licenseManager.getWatermarkMessage()}static setLicenseKey(e){Cs.setLicenseKey(e)}static setChartsLicenseManager(e){Cs.setChartsLicenseManager(e)}};import{BaseCreator as Bm,_addGridCommonParams as Cl,_downloadFile as ra,_getHeaderClassesFromColDef as Vm,_getHeaderRowCount as Hm,_warn as vl}from"ag-grid-community";import{BaseGridSerializingSession as zm,_addGridCommonParams as Si,_isExpressionString as Um,_last as Wm,_mergeDeep as Km,_warn as $m}from"ag-grid-community";import{_escapeString as jm}from"ag-grid-community";var Ym=9525,bl={0:1,"0.00":2,"#,##0":3,"#,##0.00":4,"0%":9,"0.00%":10,"0.00E+00":11,"# ?/?":12,"# ??/??":13,"mm-dd-yy":14,"d-mmm-yy":15,"d-mmm":16,"mmm-yy":17,"h:mm AM/PM":18,"h:mm:ss AM/PM":19,"h:mm":20,"h:mm:ss":21,"m/d/yy h:mm":22,"#,##0 ;(#,##0)":37,"#,##0 ;[Red](#,##0)":38,"#,##0.00;(#,##0.00)":39,"#,##0.00;[Red](#,##0.00)":40,"mm:ss":45,"[h]:mm:ss":46,"mmss.0":47,"##0.0E+0":48,"@":49},wi=`\r `;function yl(e,t,s){if(!t&&t!==""&&t!==0)return"";let i=t;return typeof t=="boolean"&&s&&(i=s(t)),` ${e}="${i}"`}function qm(e={}){const i=["version"];return e.version||(e.version="1.0"),e.encoding&&i.push("encoding"),e.standalone&&i.push("standalone"),`<?xml ${i.map(a=>`${a}="${e[a]}"`).join(" ")} ?>`}function Sl(e,t){let s="";if(e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach(r=>{for(const a of Object.keys(r.map))s+=yl(r.prefix+a,r.map[a],t)}),e.properties.rawMap))for(const r of Object.keys(e.properties.rawMap))s+=yl(r,e.properties.rawMap[r],t);let i="<"+e.name+s;if(!e.children&&e.textNode==null)return i+"/>"+wi;if(e.textNode!=null)return i+">"+e.textNode+"</"+e.name+">"+wi;if(i+=">"+wi,e.children)for(const r of e.children)i+=Sl(r,t);return i+"</"+e.name+">"+wi}var Xm=e=>Math.round(e*96/72),Nt=e=>Math.ceil(e*Ym),Zm=e=>{if(e===void 0)return;const s=["Automatic","Roman","Swiss","Modern","Script","Decorative"].indexOf(e||"Automatic");return Math.max(s,0)},xi=(e,t)=>{if(!t)return;let s;return typeof t=="number"?s=t:s=t({rowIndex:e}),s},Jm=(e,t)=>{const{colSpan:s,column:i}=e.position;if(e.width)if(s){const r=t.slice(i-1,i+s-1);let a=0;for(let n=0;n<r.length;n++){const o=r[n].getActualWidth();if(e.width<a+o){e.position.colSpan=n+1,e.totalWidth=e.width,e.width=e.totalWidth-a;break}a+=o}}else e.totalWidth=e.width},Qm=(e,t)=>{const{rowSpan:s,row:i}=e.position;if(e.height)if(s){let r=0,a=0;for(let n=i;n<i+s;n++){const o=Xm(xi(n,t)||20);if(e.height<r+o){e.position.rowSpan=a+1,e.totalHeight=e.height,e.height=e.totalHeight-r;break}r+=o,a++}}else e.totalHeight=e.height},ee=(e,t)=>{const s=qm({encoding:"UTF-8",standalone:"yes"}),i=Sl(e);return t?i:`${s}${i}`},yt=e=>{const i=String.fromCharCode,r=Math.floor(e/26),a=e%26;return!r||e===26?i(65+e-1):a?r<26?i(65+r-1)+i(65+a-1):yt(r)+i(65+a-1):yt(r-1)+"Z"},eC=e=>e.replaceAll(` `,"_x000a_"),vs=e=>{if(e==null)return null;let t="";for(let s=0;s<e.length;s++){const i=e.charCodeAt(s);if(i>=0&&i<=31&&i!==10){const n=`_x${i.toString(16).toUpperCase().padStart(4,"0")}_`;t+=n}else t+=e[s]}return t},tC=e=>{const t=[];for(const s of e.keys()){const i=s.toString(),r={name:"t",textNode:jm(vs(i))};i.trim().length!==i.length&&(r.properties={rawMap:{"xml:space":"preserve"}}),t.push({name:"si",children:[r]})}return t},sC=class extends zm{constructor(e){super(e),this.mixedStyles={},this.mixedStyleCounter=0,this.rows=[],this.frozenRowCount=0,this.skipFrozenRows=!1,this.frozenColumnCount=0,this.skipFrozenColumns=!1,this.formulaSvc=e.formulaSvc,this.notesSvc=e.notesSvc,this.config=Object.assign({},e),this.workbook=e.workbook,this.stylesByIds={};for(const s of this.config.baseExcelStyles)this.stylesByIds[s.id]=s;const t={id:"_quotePrefix",quotePrefix:1};this.stylesByIds[t.id]=t,this.excelStyles=[...this.config.baseExcelStyles,t]}addCustomContent(e){for(const t of e){const s=this.rows.length+1;let i;!this.config.suppressRowOutline&&t.outlineLevel!=null&&(i=t.outlineLevel);const r={height:xi(s,t.height||this.config.rowHeight),cells:(t.cells||[]).map((a,n)=>{const o=this.addImage(s,this.columnsToExport[n],a.data?.value);let l=null;a.styleId&&(l=typeof a.styleId=="string"?[a.styleId]:a.styleId);const c=this.getStyleId(l);if(o)return this.createCell(c,this.getDataTypeForValue(o.value),o.value==null?"":o.value,void 0,a.note);const u=a.data?.value??"",d=this.getDataTypeForValue(u);return a.mergeAcross?this.createMergedCell(c,d,u,a.mergeAcross,a.note):this.createCell(c,d,u,void 0,a.note)}),outlineLevel:i};t.collapsed!=null&&(r.collapsed=t.collapsed),t.hidden!=null&&(r.hidden=t.hidden),this.rows.push(r)}}onNewHeaderGroupingRow(){const e=[],{freezeRows:t,headerRowHeight:s}=this.config;return this.rows.push({cells:e,height:xi(this.rows.length+1,s)}),t&&this.frozenRowCount++,{onColumn:(i,r,a,n,o)=>{const l=this.config.styleLinker({rowType:"HEADER_GROUPING",rowIndex:1,value:`grouping-${r}`,columnGroup:i});e.push({...this.createMergedCell(this.getStyleId(l),this.getDataTypeForValue("string"),r,n),collapsibleRanges:o})}}}onNewHeaderRow(){const{freezeRows:e,headerRowHeight:t}=this.config;return e&&this.frozenRowCount++,this.onNewRow(this.onNewHeaderColumn,t)}onNewBodyRow(e){const{freezeRows:t,rowHeight:s}=this.config;this.skipFrozenRows||(t==="headersAndPinnedRows"&&e?.rowPinned==="top"?this.frozenRowCount++:typeof t=="function"?t(Si(this.gos,{node:e}))?this.frozenRowCount++:this.skipFrozenRows=!0:this.skipFrozenRows=!0);const i=this.onNewRow(this.onNewBodyColumn,s);return e&&this.addRowOutlineIfNecessary(e),i}prepare(e){super.prepare(e),this.columnsToExport=[...e],this.cols=e.map((t,s)=>this.convertColumnToExcel(t,s))}parse(){const e=this.rows.reduce((s,i)=>Math.max(s,i.cells.length),0);for(;this.cols.length<e;)this.cols.push(this.convertColumnToExcel(null,this.cols.length+1));const t=this.createWorksheet();return this.addWorksheetToWorkbook(t)}createWorksheet(){const{sheetName:e}=this.config;let t;if(e!=null){const s=typeof e=="function"?e(Si(this.gos,{})):e;t=String(s).substring(0,31)}else t="ag-grid";return{name:t,table:{columns:this.cols,rows:this.rows}}}addRowOutlineIfNecessary(e){const{gos:t,suppressRowOutline:s,rowGroupExpandState:i="expanded"}=this.config;if(t.get("groupHideOpenParents")||s||e.level==null)return;const a=e.footer?1:0,n=Wm(this.rows);if(e.uiLevel==null||e.level===e.uiLevel){const l=Math.min(e.level+a,7);n.outlineLevel=l}if(i==="expanded")return;const o=i==="collapsed";if(e.isExpandable()){const l=!o&&e.expanded;n.collapsed=!l}n.hidden=!!e.parent&&e.parent.level!==-1&&(o||this.isAnyParentCollapsed(e.parent))}isAnyParentCollapsed(e){for(;e&&e.level!==-1;){if(!e.expanded)return!0;e=e.parent}return!1}convertColumnToExcel(e,t){const s=this.config.columnWidth,r=(e?this.extractHeaderValue(e):void 0)??"",a=e?e.isFilterAllowed():!1;return s?typeof s=="number"?{width:s,displayName:r,filterAllowed:a}:{width:s({column:e,index:t}),displayName:r,filterAllowed:a}:e?{width:Math.max(e.getActualWidth(),75),displayName:r,filterAllowed:a}:{displayName:r,filterAllowed:a}}onNewHeaderColumn(e,t){return s=>{const i=this.extractHeaderValue(s),r=this.config.styleLinker({rowType:"HEADER",rowIndex:e,value:i,column:s});t.push(this.createCell(this.getStyleId(r),this.getDataTypeForValue("string"),i))}}onNewBodyColumn(e,t){let s=0;const{freezeColumns:i,rightToLeft:r}=this.config;return(a,n,o)=>{if(s>0){s-=1;return}if(!this.skipFrozenColumns){const C=a.getPinned();i==="pinned"&&C&&(C===!0||C==="left")!==r?this.frozenColumnCount++:typeof i=="function"&&i(Si(this.gos,{column:a}))?this.frozenColumnCount++:this.skipFrozenColumns=!0}const{value:l,valueFormatted:c}=this.extractRowCellValue({column:a,node:o,currentColumnIndex:n,accumulatedRowIndex:e,type:"excel",useRawFormula:!0}),u=l,d=typeof u=="bigint"?u.toString():u,p=this.config.styleLinker({rowType:"BODY",rowIndex:e,value:u,column:a,node:o}),h=this.getStyleId(p),g=a.getColSpan(o),f=this.addImage(e,a,d),m=this.resolveBodyCellNote({accumulatedRowIndex:e,column:a,node:o});if(f)t.push(this.createCell(h,this.getDataTypeForValue(f.value),f.value==null?"":f.value,void 0,m));else if(g>1)s=g-1,t.push(this.createMergedCell(h,this.getDataTypeForValue(u),d,g-1,m));else{const C=a.colDef.allowFormula&&this.formulaSvc?.isFormula(d),v=this.createCell(h,C?"f":this.getDataTypeForValue(u),C?this.formulaSvc?.updateFormulaByOffset({value:d,rowDelta:e-(o.formulaRowIndex+1),useRefFormat:!1}):d,c,m);t.push(v)}}}onNewRow(e,t){const s=[];return this.rows.push({cells:s,height:xi(this.rows.length+1,t)}),{onColumn:e.bind(this,this.rows.length,s)()}}addWorksheetToWorkbook(e){const{excelStyles:t,config:s}=this;return this.mapSharedStrings(e),this.frozenColumnCount&&(s.frozenColumnCount=this.frozenColumnCount),this.frozenRowCount&&(s.frozenRowCount=this.frozenRowCount),this.workbook.addWorksheet(t,e,s)}mapSharedStrings(e){for(const t of e.table.rows)for(const s of t.cells){const i=s.data;if(i?.type!=="s")continue;const r=i.value;r==null||r===""||(i.value=this.workbook.getStringPosition(String(r)).toString())}}getDataTypeForValue(e){if(e===void 0)return"empty";let t="s";try{this.isNumerical(e)&&(t="n")}catch{}return t}getTypeFromStyle(e,t){if(this.isFormula(t))return"f";if(e?.dataType)switch(e.dataType.toLocaleLowerCase()){case"formula":return"f";case"string":return"s";case"number":return"n";case"datetime":return"d";case"error":return"e";case"boolean":return"b";default:$m(162,{id:e.id,dataType:e.dataType})}return null}addImage(e,t,s){if(!this.config.addImageToCell)return;const i=this.config.addImageToCell(e,t,s);if(i)return this.workbook.addBodyImageToMap(i.image,e,t,this.columnsToExport,this.config.rowHeight),i}createCell(e,t,s,i,r){const a=this.getStyleById(e);!a?.dataType&&t==="s"&&i!=null&&(s=i);const n=this.getTypeFromStyle(a,s)||t,{type:o,value:l,escaped:c}=this.getCellValue(n,s),u=[];return a&&u.push(e),c&&u.push("_quotePrefix"),e=this.getStyleId(u)||void 0,{styleId:e,data:{type:o,value:l},note:r?.text?r:void 0}}createMergedCell(e,t,s,i,r){const a=this.getStyleById(e),n=s??"",o=this.getTypeFromStyle(a,n)||t,{type:l,value:c}=this.getCellValue(o,n);return{styleId:a?e:void 0,data:{type:l,value:c},mergeAcross:i,note:r?.text?r:void 0}}resolveBodyCellNote(e){const{processNoteCallback:t,suppressGridNotesExport:s}=this.config,i=!s&&!!this.notesSvc?.hasDataSource(),a=!!this.notesSvc&&(i||!!t)?this.notesSvc?.getNote({rowNode:e.node,column:e.column,location:"cell"}):void 0;let n;if(i&&a?.text!=null&&a.text!==""&&(n={text:a.text,author:a.author}),!t)return n;const o=t(this.getCellNoteExportParams(e,a,n));if(o===void 0)return n;if(!(o?.text==null||o.text===""))return{text:o.text,author:o.author}}getCellNoteExportParams(e,t,s){const{column:i,node:r,accumulatedRowIndex:a}=e,n=this.valueSvc.getValueForDisplay({column:i,node:r,from:this.valueFrom}).value;return Si(this.gos,{accumulatedRowIndex:a,column:i,node:r,value:n,type:"excel",parseValue:o=>this.valueSvc.parseValue(i,r,o,this.valueSvc.getValue(i,r,this.valueFrom)),formatValue:o=>this.valueSvc.formatValue(i,r,o)??o,gridNote:t,excelNote:s})}getCellValue(e,t){let s=!1;if(t==null||t===""||e==="empty")return{type:"empty",value:null,escaped:!1};if(e==="s"){if(t=String(t),t[0]==="'"&&(s=!0,t=t.slice(1),t===""))return{type:"empty",value:null,escaped:!1}}else if(e==="f")t=this.addXlfnPrefix(t).slice(1);else if(e==="n"){const i=Number(t);if(isNaN(i))return{type:"empty",value:null,escaped:!1};t=i.toString()}return{type:e,value:t,escaped:s}}addXlfnPrefix(e){if(!e)return e;const t=/(^|[^A-Z0-9._])(CONCAT)(\s*\()/gi;return e.replace(t,(s,i,r,a)=>`${i}_xlfn.${r}${a}`)}getStyleId(e){if(!e?.length)return null;const t=e.filter(i=>this.stylesByIds[i]!=null);if(!t.length)return null;if(t.length===1)return t[0];const s=t.join("-");return this.mixedStyles[s]||this.addNewMixedStyle(t),this.mixedStyles[s].excelID}addNewMixedStyle(e){this.mixedStyleCounter+=1;const t=`mixedStyle${this.mixedStyleCounter}`,s={};for(const r of e){const a=this.stylesByIds[r];a&&Km(s,a,!0,!0)}s.id=t;const i=e.join("-");this.mixedStyles[i]={excelID:t,key:i,result:s},this.excelStyles.push(s),this.stylesByIds[t]=s}isFormula(e){if(e==null)return!1;const t=String(e);return this.config.autoConvertFormulas&&Um(t)}isNumerical(e){return typeof e=="bigint"?!1:isFinite(e)&&e!==""&&!isNaN(parseFloat(e))}getStyleById(e){return e==null?null:this.stylesByIds[e]||null}};import{_escapeString as iC,_warn as aa}from"ag-grid-community";import{_escapeString as wl}from"ag-grid-community";var xl={name:"rPr",children:[{name:"sz",properties:{rawMap:{val:"10"}}},{name:"color",properties:{rawMap:{rgb:"FF000000"}}},{name:"rFont",properties:{rawMap:{val:"Tahoma"}}},{name:"family",properties:{rawMap:{val:"2"}}}]},rC={name:"rPr",children:[{name:"b"},...xl.children]},aC=(e,t)=>({name:"t",properties:t?{rawMap:{"xml:space":"preserve"}}:void 0,textNode:wl(vs(e)??"")}),na=(e,t,s)=>({name:"r",children:[t?rC:xl,aC(e,s)]}),nC=(e,t,s)=>!t||!s?[na(e,!1,e.includes(` `)||e.trim().length!==e.length)]:[na(`${t}: `,!0,!0),na(e,!1,e.includes(` `)||e.trim().length!==e.length)],oC={getTemplate(e){const t=new Map,s=[],i=e.comments.map(r=>{const a=r.author||e.defaultAuthor;let n=t.get(a);return n==null&&(n=s.length,s.push(a),t.set(a,n)),{name:"comment",properties:{rawMap:{ref:r.ref,authorId:n}},children:[{name:"text",children:nC(r.text,a,e.prependAuthor)}]}});return{name:"comments",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},children:[{name:"authors",children:s.map(r=>({name:"author",textNode:wl(r)}))},{name:"commentList",children:i}]}}},lC=oC,cC={getTemplate(e){const{name:t,ContentType:s,Extension:i,PartName:r}=e;return{name:t,properties:{rawMap:{Extension:i,PartName:r,ContentType:s}}}}},uC=cC,Fi=e=>e==="jpg"?"jpeg":e,dC={getTemplate({sheetLen:e,hasCustomProperties:t}){const s=new Array(e).fill(void 0).map((h,g)=>({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",PartName:`/xl/worksheets/sheet${g+1}.xml`})),i=tt.size,r=we.size,a=Te.size,n={};Bt.forEach(h=>{n[Fi(h.type)]=!0});const o=new Array(i).fill(void 0).map((h,g)=>({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml",PartName:`/xl/drawings/drawing${g+1}.xml`})),l=[],c=new Array(a).fill(void 0).map((h,g)=>({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",PartName:`/xl/comments${g+1}.xml`}));xe.forEach(({name:h})=>{l.push({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml",PartName:`/xl/tables/${h}.xml`})});const u=t?[{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.custom-properties+xml",PartName:"/docProps/custom.xml"}]:[],d=Object.keys(n).map(h=>({name:"Default",ContentType:`image/${h}`,Extension:h}));(r||a)&&d.push({name:"Default",Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"});const p=[...d,{name:"Default",Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"},{name:"Default",ContentType:"application/xml",Extension:"xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",PartName:"/xl/workbook.xml"},...s,{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml",PartName:"/xl/theme/theme1.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",PartName:"/xl/styles.xml"},{name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",PartName:"/xl/sharedStrings.xml"},...o,...c,...l,{name:"Override",ContentType:"application/vnd.openxmlformats-package.core-properties+xml",PartName:"/docProps/core.xml"},...u].map(h=>uC.getTemplate(h));return{name:"Types",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"}},children:p}}},hC=dC,pC={getTemplate(e){const s=new Date().toJSON();return{name:"cp:coreProperties",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{cp:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",xsi:"http://www.w3.org/2001/XMLSchema-instance"}}]},children:[{name:"dc:creator",textNode:e},{name:"dc:title",textNode:"Workbook"},{name:"dcterms:created",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:s},{name:"dcterms:modified",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:s}]}}},gC=pC;import{_escapeString as Fl}from"ag-grid-community";var fC="{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",mC=e=>Object.keys(e).filter(s=>s&&e[s]!=null).map((s,i)=>({name:"property",properties:{rawMap:{fmtid:fC,pid:(i+2).toString(),name:Fl(s)??""}},children:[{name:"vt:lpwstr",textNode:Fl(vs(String(e[s])))??""}]})),CC={getTemplate(e){return{name:"Properties",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"}},children:mC(e)}}},vC=CC,Rl=(e,t)=>({name:`xdr:${e}`,children:[{name:"xdr:col",textNode:t.col.toString()},{name:"xdr:colOff",textNode:t.offsetX.toString()},{name:"xdr:row",textNode:t.row.toString()},{name:"xdr:rowOff",textNode:t.offsetY.toString()}]}),bC=e=>{const t=[{name:"a:ext",properties:{rawMap:{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}},children:[{name:"a16:creationId",properties:{rawMap:{id:"{822E6D20-D7BC-2841-A643-D49A6EF008A2}","xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main"}}}]}];switch(e.recolor?.toLowerCase()){case"grayscale":case"sepia":case"washout":t.push({name:"a:ext",properties:{rawMap:{uri:"{C183D7F6-B498-43B3-948B-1728B52AA6E4}"}},children:[{name:"adec:decorative",properties:{rawMap:{val:"0","xmlns:adec":"http://schemas.microsoft.com/office/drawing/2017/decorative"}}}]})}return{name:"a:extLst",children:t}},yC=(e,t)=>({name:"xdr:nvPicPr",children:[{name:"xdr:cNvPr",properties:{rawMap:{id:t,name:e.id,descr:e.altText!=null?e.altText:void 0}},children:[bC(e)]},{name:"xdr:cNvPicPr",properties:{rawMap:{preferRelativeResize:"0"}},children:[{name:"a:picLocks"}]}]}),Al=e=>{if(!e.saturation&&!e.tint)return;const t=[];return e.saturation&&t.push({name:"a:satMod",properties:{rawMap:{val:e.saturation*1e3}}}),e.tint&&t.push({name:"a:tint",properties:{rawMap:{val:e.tint*1e3}}}),t},SC=(e,t)=>({name:"a:duotone",children:[{name:"a:prstClr",properties:{rawMap:{val:e.color}},children:Al(e)},{name:"a:srgbClr",properties:{rawMap:{val:t.color}},children:Al(t)}]}),wC=(e,t)=>{let s;if(e.transparency){const i=Math.min(Math.max(e.transparency,0),100);s=[{name:"a:alphaModFix",properties:{rawMap:{amt:1e5-Math.round(i*1e3)}}}]}if(e.recolor)switch(s||(s=[]),e.recolor.toLocaleLowerCase()){case"grayscale":s.push({name:"a:grayscl"});break;case"sepia":s.push(SC({color:"black"},{color:"D9C3A5",tint:50,saturation:180}));break;case"washout":s.push({name:"a:lum",properties:{rawMap:{bright:"70000",contrast:"-70000"}}});break;default:}return{name:"xdr:blipFill",children:[{name:"a:blip",properties:{rawMap:{cstate:"print","r:embed":`rId${t}`,"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships"}},children:s},{name:"a:stretch",children:[{name:"a:fillRect"}]}]}},xC=(e,t)=>{const s={name:"a:xfrm",children:[{name:"a:off",properties:{rawMap:{x:0,y:0}}},{name:"a:ext",properties:{rawMap:{cx:t.width,cy:t.height}}}]};if(e.rotation){const a=e.rotation;s.properties={rawMap:{rot:Math.min(Math.max(a,0),360)*6e4}}}return{name:"xdr:spPr",children:[s,{name:"a:prstGeom",properties:{rawMap:{prst:"rect"}},children:[{name:"a:avLst"}]}]}},FC=e=>{e.fitCell=!!e.fitCell||!e.width||!e.height;const{position:t={},fitCell:s,width:i=0,height:r=0,totalHeight:a,totalWidth:n}=e,{offsetX:o=0,offsetY:l=0,row:c=1,rowSpan:u=1,column:d=1,colSpan:p=1}=t;return{from:{row:c-1,col:d-1,offsetX:Nt(o),offsetY:Nt(l)},to:{row:c-1+(s?1:u-1),col:d-1+(s?1:p-1),offsetX:Nt(i+o),offsetY:Nt(r+l)},height:Nt(a||r),width:Nt(n||i)}},RC=(e,t,s,i)=>({name:"xdr:pic",children:[yC(e,t+1),wC(e,s+1),xC(e,i)]}),AC={getTemplate(e){const{sheetIndex:t}=e,s=tt.get(t),i=Vt.get(t),r=s.map((a,n)=>{const o=FC(a);return{name:"xdr:twoCellAnchor",properties:{rawMap:{editAs:"absolute"}},children:[Rl("from",o.from),Rl("to",o.to),RC(a,n,i.get(a.id).index,o),{name:"xdr:clientData"}]}});return{name:"xdr:wsDr",properties:{rawMap:{"xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main","xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"}},children:r}}},PC=AC,Pl=e=>{let t=0,s=0;for(;s<e.length;){const r=e.charCodeAt(s);if(r<65||r>90)break;t=t*26+(r-64),s++}return{row:Number(e.slice(s))-1,column:t-1}},TC=()=>({name:"o:shapelayout",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}]},children:[{name:"o:idmap",properties:{prefixedAttributes:[{prefix:"v:",map:{ext:"edit"}}],rawMap:{data:"1"}}}]}),MC=()=>({name:"v:shapetype",properties:{prefixedAttributes:[{prefix:"o:",map:{spt:"202"}}],rawMap:{id:"_x0000_t202",coordsize:"21600,21600",path:"m0,0l0,21600,21600,21600,21600,0xe"}},children:[{name:"v:stroke",properties:{rawMap:{joinstyle:"miter"}}},{name:"v:path",properties:{prefixedAttributes:[{prefix:"o:",map:{connecttype:"rect"}}],rawMap:{gradientshapeok:"t"}}}]}),IC=e=>{const{row:t,column:s}=Pl(e.ref);return`${s+1},0,${t+1},0,${s+3},20,${t+5},20`},EC=e=>{const{row:t,column:s}=Pl(e.ref);return{name:"x:ClientData",properties:{rawMap:{ObjectType:"Note"}},children:[{name:"x:MoveWithCells"},{name:"x:SizeWithCells"},{name:"x:Anchor",textNode:IC(e)},{name:"x:AutoFill",textNode:"False"},{name:"x:Row",textNode:String(t)},{name:"x:Column",textNode:String(s)}]}},DC=(e,t)=>({name:"v:shape",properties:{prefixedAttributes:[{prefix:"o:",map:{insetmode:"auto"}}],rawMap:{id:`_x0000_s${1025+t}`,type:"#_x0000_t202",style:"position:absolute;margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10;visibility:hidden",fillcolor:"#ffffe1",strokecolor:"#000000"}},children:[{name:"v:fill",properties:{rawMap:{color2:"#ffffe1"}}},{name:"v:shadow",properties:{rawMap:{color:"black",obscured:"t"}}},{name:"v:path",properties:{prefixedAttributes:[{prefix:"o:",map:{connecttype:"none"}}]}},{name:"v:textbox",properties:{rawMap:{style:"mso-direction-alt:auto"}},children:[{name:"div",properties:{rawMap:{style:"text-align:left"}}}]},EC(e)]}),LC={getTemplate(e){const t=Te.get(e.sheetIndex)||[];return{name:"xml",properties:{prefixedAttributes:[{prefix:"xmlns:",map:{v:"urn:schemas-microsoft-com:vml",o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel"}}]},children:[TC(),MC(),...t.map((s,i)=>DC(s,i))]}}},kC=LC,GC={getTemplate(e){const{Id:t,Type:s,Target:i}=e;return{name:"Relationship",properties:{rawMap:{Id:t,Type:s,Target:i}}}}},OC=GC,NC={getTemplate(e){const t=e.map(s=>OC.getTemplate(s));return{name:"Relationships",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}},children:t}}},bs=NC,_C={getTemplate(e){return{name:"sst",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:e.size,uniqueCount:e.size}},children:tC(e)}}},BC=_C,VC=e=>{switch(e){case 1:return"thin";case 2:return"medium";case 3:return"thick";default:return"hair"}},HC={None:"None",Dot:"Dotted",Dash:"Dashed",Double:"Double",DashDot:"DashDot",DashDotDot:"DashDotDot",SlantDashDot:"SlantDashDot",Continuous:"Continuous"},zC=["Dashed","DashDot","DashDotDot"],UC={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinDiagStripe:"lightUp",ThinHorzCross:"lightGrid",ThinDiagCross:"lightTrellis",Gray125:"gray125",Gray0625:"gray0625"},WC={Automatic:"general",Left:"left",Center:"center",Right:"right",Fill:"fill",Justify:"justify",CenterAcrossSelection:"centerContinuous",Distributed:"distributed",JustifyDistributed:"justify"},KC={Automatic:void 0,Top:"top",Bottom:"bottom",Center:"center",Justify:"justify",Distributed:"distributed",JustifyDistributed:"justify"},$C=e=>e?UC[e]||e:"none",et=e=>e==null?e:(e.charAt(0)==="#"&&(e=e.substring(1)),e.length===6?"FF"+e:e),Ri=(e,t)=>{if(!e)return"thin";const s=VC(t);if(e==="Continuous")return s;const i=HC[e];return s==="medium"&&zC.some(r=>r===i)?`medium${i}`:`${i.charAt(0).toLowerCase()}${i.substring(1)}`},jC=e=>WC[e]||"general",YC=e=>KC[e]||void 0,ys=e=>({name:"color",properties:{rawMap:{rgb:et(e||"#000000")}}}),qC={getTemplate(e){const{left:t,right:s,top:i,bottom:r,diagonal:a}=e,n=t?[ys(t.color)]:void 0,o=s?[ys(s.color)]:void 0,l=i?[ys(i.color)]:void 0,c=r?[ys(r.color)]:void 0,u=a?[ys(a.color)]:void 0;return{name:"border",children:[{name:"left",properties:{rawMap:{style:t?.style}},children:n},{name:"right",properties:{rawMap:{style:s?.style}},children:o},{name:"top",properties:{rawMap:{style:i?.style}},children:l},{name:"bottom",properties:{rawMap:{style:r?.style}},children:c},{name:"diagonal",properties:{rawMap:{style:a?.style}},children:u}]}}},XC=qC,ZC={getTemplate(e){return{name:"borders",properties:{rawMap:{count:e.length}},children:e.map(t=>XC.getTemplate(t))}}},JC=ZC,QC=e=>{const s=["Context","LeftToRight","RightToLeft"].indexOf(e);return Math.max(s,0)},ev={getTemplate(e){const{horizontal:t,indent:s,readingOrder:i,rotate:r,shrinkToFit:a,vertical:n,wrapText:o}=e;return{name:"alignment",properties:{rawMap:{horizontal:t&&jC(t),indent:s,readingOrder:i&&QC(i),textRotation:r,shrinkToFit:a,vertical:n&&YC(n),wrapText:o}}}}},tv=ev,sv={getTemplate(e){const t=e.protected===!1?0:1;return{name:"protection",properties:{rawMap:{hidden:e.hideFormula===!0?1:0,locked:t}}}}},iv=sv,rv={getTemplate(e){const{alignment:t,borderId:s,fillId:i,fontId:r,numFmtId:a,protection:n,quotePrefix:o,xfId:l}=e,c=[];return t&&c.push(tv.getTemplate(t)),n&&c.push(iv.getTemplate(n)),{name:"xf",properties:{rawMap:{applyAlignment:t?1:void 0,applyProtection:n?1:void 0,applyBorder:s?1:void 0,applyFill:i?1:void 0,borderId:s,fillId:i,applyFont:r?1:void 0,fontId:r,applyNumberFormat:a?1:void 0,numFmtId:a,quotePrefix:o?1:void 0,xfId:l}},children:c.length?c:void 0}}},Tl=rv,av={getTemplate(e){return{name:"cellStyleXfs",properties:{rawMap:{count:e.length}},children:e.map(t=>Tl.getTemplate(t))}}},nv=av,ov={getTemplate(e){const{builtinId:t,name:s,xfId:i}=e;return{name:"cellStyle",properties:{rawMap:{builtinId:t,name:s,xfId:i}}}}},lv=ov,cv={getTemplate(e){return{name:"cellStyles",properties:{rawMap:{count:e.length}},children:e.map(t=>lv.getTemplate(t))}}},uv=cv,dv={getTemplate(e){return{name:"cellXfs",properties:{rawMap:{count:e.length}},children:e.map(t=>Tl.getTemplate(t))}}},hv=dv,pv={getTemplate(e){const{patternType:t,fgTheme:s,fgTint:i,fgRgb:r,bgRgb:a,bgIndexed:n}=e,o={name:"patternFill",properties:{rawMap:{patternType:t}}};return(s||i||r)&&(o.children=[{name:"fgColor",properties:{rawMap:{theme:s,tint:i,rgb:r}}}]),(n||a)&&(o.children||(o.children=[]),o.children.push({name:"bgColor",properties:{rawMap:{indexed:n,rgb:a}}})),{name:"fill",children:[o]}}},gv=pv,fv={getTemplate(e){return{name:"fills",properties:{rawMap:{count:e.length}},children:e.map(t=>gv.getTemplate(t))}}},mv=fv,Cv={getTemplate(e){const{size:t,colorTheme:s,color:i="FF000000",fontName:r="Calibri",family:a,scheme:n,italic:o,bold:l,strikeThrough:c,outline:u,shadow:d,underline:p,verticalAlign:h}=e,g=[{name:"sz",properties:{rawMap:{val:t}}},{name:"color",properties:{rawMap:{theme:s,rgb:i}}},{name:"name",properties:{rawMap:{val:r}}}];return a&&g.push({name:"family",properties:{rawMap:{val:a}}}),n&&g.push({name:"scheme",properties:{rawMap:{val:n}}}),o&&g.push({name:"i"}),l&&g.push({name:"b"}),c&&g.push({name:"strike"}),u&&g.push({name:"outline"}),d&&g.push({name:"shadow"}),p&&g.push({name:"u",properties:{rawMap:{val:p}}}),h&&g.push({name:"vertAlign",properties:{rawMap:{val:h}}}),{name:"font",children:g}}},vv=Cv,bv={getTemplate(e){return{name:"fonts",properties:{rawMap:{count:e.length}},children:e.map(t=>vv.getTemplate(t))}}},yv=bv;import{_escapeString as Sv}from"ag-grid-community";function wv(e){const t=e.split(/(\[[^\]]*\])/);for(let s=0;s<t.length;s++){let i=t[s];i.length&&(i.startsWith("[")||(i=i.replace(/\$/g,'"$"')),t[s]=Sv(i))}return t.join("")}var xv={getTemplate(e){let{formatCode:t,numFmtId:s}=e;return t.length&&(t=wv(t)),{name:"numFmt",properties:{rawMap:{formatCode:t,numFmtId:s}}}}},Fv=xv,Rv={getTemplate(e){return{name:"numFmts",properties:{rawMap:{count:e.length}},children:e.map(t=>Fv.getTemplate(t))}}},Av=Rv,Ai,_t,Ss,ws,xs,Ml,Pi,Il,oa,El=(e,t)=>(e.includes("mixedStyle")&&t>1&&(e+=`_${t}`),e),Dl=()=>{Ai={base:0},_t=[],Ss=[{fontName:"Calibri",colorTheme:"1",family:"2",scheme:"minor"}],ws=[{patternType:"none"},{patternType:"gray125"}],xs=[{left:void 0,right:void 0,top:void 0,bottom:void 0,diagonal:void 0}],Ml=[{borderId:0,fillId:0,fontId:0,numFmtId:0}],Pi=[{borderId:0,fillId:0,fontId:0,numFmtId:0,xfId:0}],Il=[{builtinId:0,name:"Normal",xfId:0}]},Pv=e=>{const t=$C(e.pattern),s=et(e.color),i=et(e.patternColor);let r=ws.findIndex(a=>{const{patternType:n,fgRgb:o,bgRgb:l}=a;return!(n!=t||o!=s||l!=i)});return r===-1&&(r=ws.length,ws.push({patternType:t,fgRgb:s,bgRgb:i})),r},Tv=e=>{if(bl[e])return bl[e];let t=_t.findIndex(s=>s.formatCode===e);return t===-1?(t=_t.length+164,_t.push({formatCode:e,numFmtId:t})):t=_t[t].numFmtId,t},Mv=e=>{const{borderBottom:t,borderTop:s,borderLeft:i,borderRight:r}=e;let a,n,o,l,c,u,d,p;i&&(o=Ri(i.lineStyle,i.weight),d=et(i.color)),r&&(l=Ri(r.lineStyle,r.weight),p=et(r.color)),t&&(a=Ri(t.lineStyle,t.weight),c=et(t.color)),s&&(n=Ri(s.lineStyle,s.weight),u=et(s.color));let h=xs.findIndex(g=>{const{left:f,right:m,top:C,bottom:v}=g;if(!f&&(o||d)||!m&&(l||p)||!C&&(n||u)||!v&&(a||c))return!1;const{style:b,color:y}=f||{},{style:S,color:w}=m||{},{style:A,color:F}=C||{},{style:T,color:P}=v||{};return!(b!=o||y!=d||S!=l||w!=p||A!=n||F!=u||T!=a||P!=c)});return h===-1&&(h=xs.length,xs.push({left:{style:o,color:d},right:{style:l,color:p},top:{style:n,color:u},bottom:{style:a,color:c},diagonal:{style:void 0,color:void 0}})),h},Iv=e=>{const{fontName:t="Calibri",color:s,size:i,bold:r,italic:a,outline:n,shadow:o,strikeThrough:l,underline:c,family:u,verticalAlign:d}=e,p=et(s),h=Zm(u),g=c?c.toLocaleLowerCase():void 0,f=d?d.toLocaleLowerCase():void 0;let m=Ss.findIndex(C=>!(C.fontName!=t||C.color!=p||C.size!=i||C.bold!=r||C.italic!=a||C.outline!=n||C.shadow!=o||C.strikeThrough!=l||C.underline!=g||C.verticalAlign!=f||C.family!=h));return m===-1&&(m=Ss.length,Ss.push({fontName:t,color:p,size:i,bold:r,italic:a,outline:n,shadow:o,strikeThrough:l,underline:g,verticalAlign:f,family:h?.toString()})),m},Ev=e=>{const{alignment:t,borders:s,font:i,interior:r,numberFormat:a,protection:n,quotePrefix:o}=e;let{id:l}=e,c=0,u=0,d=0,p=0;l&&(l=El(l,oa),Ai[l]==null&&(r&&(c=Pv(r)),s&&(u=Mv(s)),i&&(d=Iv(i)),a&&(p=Tv(a.format)),Ai[l]=Pi.length,Pi.push({alignment:t,borderId:u||0,fillId:c||0,fontId:d||0,numFmtId:p||0,protection:n,quotePrefix:o,xfId:0})))},Dv={getTemplate(e){const t=Av.getTemplate(_t),s=yv.getTemplate(Ss.map(l=>({...l,size:l.size!=null?l.size:e}))),i=mv.getTemplate(ws),r=JC.getTemplate(xs),a=nv.getTemplate(Ml),n=hv.getTemplate(Pi),o=uv.getTemplate(Il);return Dl(),{name:"styleSheet",properties:{rawMap:{"mc:Ignorable":"x14ac x16r2 xr",xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision"}},children:[t,s,i,r,a,n,o,{name:"tableStyles",properties:{rawMap:{count:0,defaultPivotStyle:"PivotStyleLight16",defaultTableStyle:"TableStyleMedium2"}}}]}}},Lv=(e,t)=>Ai[El(e,t)]||0,kv=(e,t)=>{oa=t,oa===1&&Dl(),e.forEach(Ev)},Gv=Dv;import{_escapeString as Ov}from"ag-grid-community";var Nv={getTemplate(e,t){const{name:s,columns:i,rowRange:r,displayName:a,showRowStripes:n,showColumnStripes:o,showFilterButtons:l,highlightFirstColumn:c,highlightLastColumn:u}=e||{},d=!r||r[0]-r[1]===0;if(!e||!s||!Array.isArray(i)||!i.length||d)return{name:"table"};const p=i.map((v,b)=>({name:"filterColumn",properties:{rawMap:{colId:b.toString(),hiddenButton:l[b]?0:1}}})),h=`A${r[0]}`,g=`${yt(i.length)}${r[1]}`,f=`${h}:${g}`,m=`${t+1}`,C=t?`${a}_${m}`:a;return{name:"table",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3",name:C,displayName:C,ref:f,totalsRowShown:0,id:m}},children:[{name:"autoFilter",properties:{rawMap:{ref:f}},children:p},{name:"tableColumns",properties:{rawMap:{count:i.length}},children:i.map((v,b)=>({name:"tableColumn",properties:{rawMap:{id:(b+1).toString(),name:Ov(eC(v)),dataCellStyle:"Normal"}}}))},{name:"tableStyleInfo",properties:{rawMap:{name:"TableStyleL