UNPKG

ag-grid-enterprise

Version:

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

3 lines 1.21 MB
var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__export=(e,t)=>{for(var i in t)__defProp(e,i,{get:t[i],enumerable:!0})},__copyProps=(e,t,i,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of __getOwnPropNames(t))!__hasOwnProp.call(e,a)&&a!==i&&__defProp(e,a,{get:()=>t[a],enumerable:!(r=__getOwnPropDesc(t,a))||r.enumerable});return e},__reExport=(e,t,i)=>(__copyProps(e,t,"default"),i&&__copyProps(i,t,"default")),__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),main_exports={};__export(main_exports,{AdvancedFilterModule:()=>AdvancedFilterModule,AggregationModule:()=>AggregationModule,AiToolkitModule:()=>AiToolkitModule,AllEnterpriseModule:()=>AllEnterpriseModule,BatchEditModule:()=>BatchEditModule,CellSelectionModule:()=>CellSelectionModule,ClipboardModule:()=>ClipboardModule,ColumnMenuModule:()=>ColumnMenuModule,ColumnsToolPanelModule:()=>ColumnsToolPanelModule,ContextMenuModule:()=>ContextMenuModule,ExcelExportModule:()=>ExcelExportModule,FiltersToolPanelModule:()=>FiltersToolPanelModule,FindModule:()=>FindModule,FormulaModule:()=>FormulaModule,GridChartsModule:()=>GridChartsModule,GroupFilterModule:()=>GroupFilterModule,IntegratedChartsModule:()=>IntegratedChartsModule,LicenseManager:()=>GridLicenseManager,MasterDetailModule:()=>MasterDetailModule,MenuModule:()=>MenuModule,MultiFilterModule:()=>MultiFilterModule,NewFiltersToolPanelModule:()=>NewFiltersToolPanelModule,PivotModule:()=>PivotModule,RangeSelectionModule:()=>RangeSelectionModule,RichSelectModule:()=>RichSelectModule,RowGroupingModule:()=>RowGroupingModule,RowGroupingPanelModule:()=>RowGroupingPanelModule,RowNumbersModule:()=>RowNumbersModule,ServerSideRowModelApiModule:()=>ServerSideRowModelApiModule,ServerSideRowModelModule:()=>ServerSideRowModelModule,SetFilterModule:()=>SetFilterModule,SideBarModule:()=>SideBarModule,SparklinesModule:()=>SparklinesModule,StatusBarModule:()=>StatusBarModule,TreeDataModule:()=>TreeDataModule,ViewportRowModelModule:()=>ViewportRowModelModule,_AgColorPicker:()=>AgColorPicker,_AgColorPickerSelector:()=>AgColorPickerSelector,_AgContextMenuService:()=>AgContextMenuService,_AgDialog:()=>AgDialog,_AgGroupComponent:()=>AgGroupComponent,_AgGroupComponentSelector:()=>AgGroupComponentSelector,_AgInputRange:()=>AgInputRange,_AgInputRangeSelector:()=>AgInputRangeSelector,_AgMenuItemComponent:()=>AgMenuItemComponent,_AgMenuItemRenderer:()=>AgMenuItemRenderer,_AgMenuList:()=>AgMenuList,_AgPanel:()=>AgPanel,_AgSlider:()=>AgSlider,_AgSliderSelector:()=>AgSliderSelector,_AgTabbedLayout:()=>AgTabbedLayout,_AgVirtualList:()=>AgVirtualList,_AgVirtualListDragFeature:()=>AgVirtualListDragFeature,exportMultipleSheetsAsExcel:()=>exportMultipleSheetsAsExcel,getMultipleSheetsAsExcel:()=>getMultipleSheetsAsExcel}),module.exports=__toCommonJS(main_exports);var import_ag_grid_community3=require("ag-grid-community"),import_ag_grid_community=require("ag-grid-community"),MD5=class{constructor(){this.ieCompatibility=!1}init(){this.ieCompatibility=this.md5("hello")!="5d41402abc4b2a76b9719d911017c592"}md5cycle(e,t){let i=e[0],r=e[1],a=e[2],n=e[3];i=this.ff(i,r,a,n,t[0],7,-680876936),n=this.ff(n,i,r,a,t[1],12,-389564586),a=this.ff(a,n,i,r,t[2],17,606105819),r=this.ff(r,a,n,i,t[3],22,-1044525330),i=this.ff(i,r,a,n,t[4],7,-176418897),n=this.ff(n,i,r,a,t[5],12,1200080426),a=this.ff(a,n,i,r,t[6],17,-1473231341),r=this.ff(r,a,n,i,t[7],22,-45705983),i=this.ff(i,r,a,n,t[8],7,1770035416),n=this.ff(n,i,r,a,t[9],12,-1958414417),a=this.ff(a,n,i,r,t[10],17,-42063),r=this.ff(r,a,n,i,t[11],22,-1990404162),i=this.ff(i,r,a,n,t[12],7,1804603682),n=this.ff(n,i,r,a,t[13],12,-40341101),a=this.ff(a,n,i,r,t[14],17,-1502002290),r=this.ff(r,a,n,i,t[15],22,1236535329),i=this.gg(i,r,a,n,t[1],5,-165796510),n=this.gg(n,i,r,a,t[6],9,-1069501632),a=this.gg(a,n,i,r,t[11],14,643717713),r=this.gg(r,a,n,i,t[0],20,-373897302),i=this.gg(i,r,a,n,t[5],5,-701558691),n=this.gg(n,i,r,a,t[10],9,38016083),a=this.gg(a,n,i,r,t[15],14,-660478335),r=this.gg(r,a,n,i,t[4],20,-405537848),i=this.gg(i,r,a,n,t[9],5,568446438),n=this.gg(n,i,r,a,t[14],9,-1019803690),a=this.gg(a,n,i,r,t[3],14,-187363961),r=this.gg(r,a,n,i,t[8],20,1163531501),i=this.gg(i,r,a,n,t[13],5,-1444681467),n=this.gg(n,i,r,a,t[2],9,-51403784),a=this.gg(a,n,i,r,t[7],14,1735328473),r=this.gg(r,a,n,i,t[12],20,-1926607734),i=this.hh(i,r,a,n,t[5],4,-378558),n=this.hh(n,i,r,a,t[8],11,-2022574463),a=this.hh(a,n,i,r,t[11],16,1839030562),r=this.hh(r,a,n,i,t[14],23,-35309556),i=this.hh(i,r,a,n,t[1],4,-1530992060),n=this.hh(n,i,r,a,t[4],11,1272893353),a=this.hh(a,n,i,r,t[7],16,-155497632),r=this.hh(r,a,n,i,t[10],23,-1094730640),i=this.hh(i,r,a,n,t[13],4,681279174),n=this.hh(n,i,r,a,t[0],11,-358537222),a=this.hh(a,n,i,r,t[3],16,-722521979),r=this.hh(r,a,n,i,t[6],23,76029189),i=this.hh(i,r,a,n,t[9],4,-640364487),n=this.hh(n,i,r,a,t[12],11,-421815835),a=this.hh(a,n,i,r,t[15],16,530742520),r=this.hh(r,a,n,i,t[2],23,-995338651),i=this.ii(i,r,a,n,t[0],6,-198630844),n=this.ii(n,i,r,a,t[7],10,1126891415),a=this.ii(a,n,i,r,t[14],15,-1416354905),r=this.ii(r,a,n,i,t[5],21,-57434055),i=this.ii(i,r,a,n,t[12],6,1700485571),n=this.ii(n,i,r,a,t[3],10,-1894986606),a=this.ii(a,n,i,r,t[10],15,-1051523),r=this.ii(r,a,n,i,t[1],21,-2054922799),i=this.ii(i,r,a,n,t[8],6,1873313359),n=this.ii(n,i,r,a,t[15],10,-30611744),a=this.ii(a,n,i,r,t[6],15,-1560198380),r=this.ii(r,a,n,i,t[13],21,1309151649),i=this.ii(i,r,a,n,t[4],6,-145523070),n=this.ii(n,i,r,a,t[11],10,-1120210379),a=this.ii(a,n,i,r,t[2],15,718787259),r=this.ii(r,a,n,i,t[9],21,-343485551),e[0]=this.add32(i,e[0]),e[1]=this.add32(r,e[1]),e[2]=this.add32(a,e[2]),e[3]=this.add32(n,e[3])}cmn(e,t,i,r,a,n){return t=this.add32(this.add32(t,e),this.add32(r,n)),this.add32(t<<a|t>>>32-a,i)}ff(e,t,i,r,a,n,o){return this.cmn(t&i|~t&r,e,t,a,n,o)}gg(e,t,i,r,a,n,o){return this.cmn(t&r|i&~r,e,t,a,n,o)}hh(e,t,i,r,a,n,o){return this.cmn(t^i^r,e,t,a,n,o)}ii(e,t,i,r,a,n,o){return this.cmn(i^(t|~r),e,t,a,n,o)}md51(e){const t=e.length,i=[1732584193,-271733879,-1732584194,271733878];let r;for(r=64;r<=e.length;r+=64)this.md5cycle(i,this.md5blk(e.substring(r-64,r)));e=e.substring(r-64);const a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(r=0;r<e.length;r++)a[r>>2]|=e.charCodeAt(r)<<(r%4<<3);if(a[r>>2]|=128<<(r%4<<3),r>55)for(this.md5cycle(i,a),r=0;r<16;r++)a[r]=0;return a[14]=t*8,this.md5cycle(i,a),i}md5blk(e){const t=[];for(let i=0;i<64;i+=4)t[i>>2]=e.charCodeAt(i)+(e.charCodeAt(i+1)<<8)+(e.charCodeAt(i+2)<<16)+(e.charCodeAt(i+3)<<24);return t}rhex(e){const t="0123456789abcdef".split("");let i="",r=0;for(;r<4;r++)i+=t[e>>r*8+4&15]+t[e>>r*8&15];return i}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 i=(e&65535)+(t&65535);return(e>>16)+(t>>16)+(i>>16)<<16|i&65535}},LICENSE_TYPES={"01":"GRID","02":"CHARTS","0102":"BOTH"},LICENSING_HELP_URL="https://www.ag-grid.com/licensing/",_LicenseManager=class H{constructor(t){this.watermarkMessage=void 0,this.totalMessageLength=124,this.document=t,this.md5=new MD5,this.md5.init()}validateLicense(){const t=this.getLicenseDetails(H.licenseKey),i=`AG Grid ${t.currentLicenseType==="BOTH"?"and AG Charts ":""}Enterprise`,r=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(i);else if(t.expired){const a=H.getGridReleaseDate(),n=H.formatDate(a);this.outputExpiredKey(t.expiry,n,i,r)}else t.valid?t.isTrial&&t.trialExpired&&this.outputExpiredTrialKey(t.expiry,i,r):this.outputInvalidLicenseKey(!!t.incorrectLicenseType,i,r)}static extractExpiry(t){const i=t.substring(t.lastIndexOf("_")+1,t.length);return new Date(parseInt(H.decode(i),10))}static extractLicenseComponents(t){let i=t.replace(/[\u200B-\u200D\uFEFF]/g,"");if(i=i.replace(/\r?\n|\r/g,""),t.length<=32)return{md5:null,license:t,version:null,isTrial:null};const r=i.length-32,a=i.substring(r),n=i.substring(0,r),[o,l,c]=H.extractBracketedInformation(i);return{md5:a,license:n,version:o,isTrial:l,type:c}}getLicenseDetails(t){const i=H.chartsLicenseManager?"BOTH":"GRID";if(!t?.length)return{licenseKey:t,valid:!1,missing:!0,currentLicenseType:i};const r=H.getGridReleaseDate(),{md5:a,license:n,version:o,isTrial:l,type:c}=H.extractLicenseComponents(t);let d=a===this.md5.md5(n)&&!t.includes("For_Trialing_ag-Grid_Only"),u,h,p=null,g=!1,m;function f(){u=p<new Date,h=void 0}if(d&&(p=H.extractExpiry(n),d=!isNaN(p.getTime()),d))switch(h=r>p,o){case"legacy":case"2":{l&&f();break}case"3":c?.length?(m=c,c!==LICENSE_TYPES["01"]&&c!==LICENSE_TYPES["0102"]||i==="BOTH"&&m!=="BOTH"?(d=!1,g=!0):l&&f()):d=!1}return d?{licenseKey:t,valid:d,expiry:H.formatDate(p),expired:h,version:o,isTrial:l,trialExpired:u,incorrectLicenseType:g,currentLicenseType:i,suppliedLicenseType:m}:{licenseKey:t,valid:d,incorrectLicenseType:g,currentLicenseType:i,suppliedLicenseType:m}}isDisplayWatermark(){return this.isForceWatermark()||!this.isLocalhost()&&!this.isWebsiteUrl()&&!!this.watermarkMessage?.length}getWatermarkMessage(){return this.watermarkMessage||""}getHostname(){const i=(this.document.defaultView||window).location,{hostname:r=""}=i;return r}isForceWatermark(){const i=(this.document.defaultView||window).location,{pathname:r}=i;return r?r.includes("forceWatermark"):!1}isWebsiteUrl(){return this.getHostname().match(/^((?:[\w-]+\.)?ag-grid\.com)$/)!==null}isLocalhost(){return this.getHostname().match(/^(?:127\.0\.0\.1|localhost)$/)!==null}static formatDate(t){const i=["January","February","March","April","May","June","July","August","September","October","November","December"],r=t.getDate(),a=t.getMonth(),n=t.getFullYear();return r+" "+i[a]+" "+n}static getGridReleaseDate(){return new Date(parseInt(H.decode(H.RELEASE_INFORMATION),10))}static decode(t){const i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";let r="",a,n,o,l,c,d,u,h=0;const p=t.replace(/[^A-Za-z0-9+/=]/g,"");for(;h<p.length;)l=i.indexOf(p.charAt(h++)),c=i.indexOf(p.charAt(h++)),d=i.indexOf(p.charAt(h++)),u=i.indexOf(p.charAt(h++)),a=l<<2|c>>4,n=(c&15)<<4|d>>2,o=(d&3)<<6|u,r=r+String.fromCharCode(a),d!=64&&(r=r+String.fromCharCode(n)),u!=64&&(r=r+String.fromCharCode(o));return r=H.utf8_decode(r),r}static utf8_decode(t){t=t.replace(/rn/g,"n");let i="";for(let r=0;r<t.length;r++){const a=t.charCodeAt(r);a<128?i+=String.fromCharCode(a):a>127&&a<2048?(i+=String.fromCharCode(a>>6|192),i+=String.fromCharCode(a&63|128)):(i+=String.fromCharCode(a>>12|224),i+=String.fromCharCode(a>>6&63|128),i+=String.fromCharCode(a&63|128))}return i}static setChartsLicenseManager(t){this.chartsLicenseManager=t,this.chartsLicenseManager?.setLicenseKey(this.licenseKey,!0)}static setLicenseKey(t){(0,import_ag_grid_community._exists)(this.licenseKey)&&this.licenseKey!==t&&(0,import_ag_grid_community._logPreInitWarn)(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 i=t.match(/\[(.*?)\]/g).map(l=>l.replace("[","").replace("]",""));if(!i||i.length===0)return["legacy",!1,void 0];const r=i.filter(l=>l==="TRIAL").length===1,a=i.filter(l=>l.indexOf("v")===0)[0],n=a?a.replace("v",""):"legacy",o=LICENSE_TYPES[i.filter(l=>LICENSE_TYPES[l])[0]];return[n,r,o]}centerPadAndOutput(t){const i=this.totalMessageLength-t.length;console.error(t.padStart(i/2+t.length,"*").padEnd(this.totalMessageLength,"*"))}padAndOutput(t,i="*",r=""){console.error(t.padEnd(this.totalMessageLength-r.length,i)+r)}outputInvalidLicenseKey(t,i,r){t?(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${i} License `),this.centerPadAndOutput(" Incompatible License Key "),this.padAndOutput(`* Your license key is for ${r} only and does not cover you for ${i}.`," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${LICENSING_HELP_URL}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")):(this.centerPadAndOutput(""),this.centerPadAndOutput(` ${i} License `),this.centerPadAndOutput(" Invalid License Key "),this.padAndOutput("* Your license key is not valid."," ","*"),this.padAndOutput(`* To troubleshoot your license key visit ${LICENSING_HELP_URL}.`," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput("")),this.watermarkMessage="Invalid License"}outputExpiredTrialKey(t,i,r){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${i} License `),this.centerPadAndOutput(" Trial Period Expired. "),this.padAndOutput(`* Your trial only license for ${r} 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,i,r,a){this.centerPadAndOutput(""),this.centerPadAndOutput(` ${r} License `),this.centerPadAndOutput(" Incompatible Software Version "),this.padAndOutput(`* Your license key works with versions${a==""?"":` of ${a}`} released before ${t}.`," ","*"),this.padAndOutput(`* The version you are trying to use was released on ${i}.`," ","*"),this.padAndOutput("* Please contact info@ag-grid.com to renew your license key."," ","*"),this.centerPadAndOutput(""),this.centerPadAndOutput(""),this.watermarkMessage="License Expired"}};_LicenseManager.RELEASE_INFORMATION="MTc2NTM1OTQ2ODIzOA==";var LicenseManager=_LicenseManager,import_ag_grid_community2=require("ag-grid-community"),watermarkCSS='.ag-watermark{bottom:20px;color:#9b9b9b;opacity:.7;position:absolute;transition:opacity 1s ease-out 3s;&:before{background-image:url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDkiIGhlaWdodD0iMzYiIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCAyMDkgMzYiPjxwYXRoIGZpbGw9IiM5YjliOWIiIGQ9Ik0xOTIuOTkzIDIzLjY1OHYtNy45NDZoLTEzLjU0MWwtNy45NDcgNy45NDZ6TTIwOC4yNSAzLjk1aC0xNi45NzRsLTguMDEgNy45NDdoMjQuOTg0ek0xNjMuNjIyIDMxLjYwNWw0LjA2OS00LjA2OWgxMy43MzJ2Ny45NDdoLTE3LjgwMXoiLz48cGF0aCBmaWxsPSIjOWI5YjliIiBkPSJNMTY2LjYxIDE5Ljc4aDguNzczbDguMDEtNy45NDZIMTY2LjYxek0xNTcuMDExIDMxLjYwNWg2LjYxMWw3Ljg4My03Ljk0N2gtMTQuNDk0ek0xOTEuMjc2IDMuOTVsLTQuMDY4IDQuMDdIMTYxLjI3Vi4wNzJoMzAuMDA2ek0yMC44NCAzMC4yMDZIOC4zNzhsLTIuMTYyIDUuMzRILjc1TDEyLjI1NyA4LjU5Mmg0Ljc2OEwyOC41MyAzNS41NDZoLTUuNTN6bS0xLjcxNy00LjI2TDE0LjYwOSAxNC45NWwtNC41MTQgMTAuOTk4ek0xMDQuNDM3IDE4LjUwOWMxLjU4OS0yLjM1MiA1LjU5NC0yLjYwNyA3LjI0Ny0yLjYwN3Y0LjU3OGMtMi4wMzQgMC00LjA2OS4wNjMtNS4yNzcuOTUzLTEuMjA3Ljg5LTEuODQzIDIuMDk4LTEuODQzIDMuNTZ2MTAuNTUzaC00Ljk1OVYxNS45MDJoNC43Njh6TTExOS4zNzYgMTUuOTAyaC00Ljk1OHYxOS42NDRoNC45NTh6TTExOS4zNzYgNy4xM2gtNC45NTh2NS44NDhoNC45NTh6TTE0My45NzkgNy4xM3YyOC40MTZoLTQuNzY4bC0uMTI3LTIuOTg4YTguMyA4LjMgMCAwIDEtMi42NyAyLjQ4Yy0xLjA4MS41NzItMi40MTYuODktMy45NDIuODktMS4zMzUgMC0yLjYwNi0uMjU1LTMuNjg3LS43LTEuMTQ0LS41MDgtMi4xNjItMS4xNDQtMi45ODgtMi4wMzRhOS42IDkuNiAwIDAgMS0xLjk3MS0zLjE3OWMtLjUwOC0xLjIwNy0uNjk5LTIuNjA2LS42OTktNC4xMzJzLjI1NC0yLjkyNC42OTktNC4xOTZjLjUwOS0xLjI3MSAxLjE0NS0yLjM1MiAxLjk3MS0zLjI0MnMxLjg0NC0xLjU4OSAyLjk4OC0yLjA5OCAyLjM1Mi0uNzYzIDMuNjg3LS43NjNjMS41MjYgMCAyLjc5Ny4yNTUgMy44NzguODI3czEuOTcxIDEuMzM1IDIuNjcgMi40MTZWNy4xOTNoNC45NTl6bS0xMC40MjYgMjQuNTM4YzEuNjUzIDAgMi45MjQtLjU3MiAzLjk0MS0xLjY1M3MxLjUyNi0yLjU0MyAxLjUyNi00LjMyMy0uNTA5LTMuMTc4LTEuNTI2LTQuMzIyYy0xLjAxNy0xLjA4MS0yLjI4OC0xLjY1My0zLjk0MS0xLjY1My0xLjU5IDAtMi45MjUuNTcyLTMuODc4IDEuNjUzLTEuMDE3IDEuMDgtMS41MjYgMi41NDMtMS41MjYgNC4zMjIgMCAxLjc4LjUwOSAzLjE4IDEuNTI2IDQuMjYgMS4wMTcgMS4xNDQgMi4yODggMS43MTYgMy44NzggMS43MTZNNTcuMjAyIDIwLjM1M0g0NC45MzN2NC4yNTloNi45OTNjLS4xOSAyLjE2MS0xLjAxNyAzLjgxNC0yLjQxNiA1LjE1LTEuMzk4IDEuMjctMy4xNzggMS45MDYtNS40NjcgMS45MDYtMS4yNzEgMC0yLjQ4LS4yNTQtMy40OTYtLjY5OWE3IDcgMCAwIDEtMi43MzQtMS45N2MtLjc2My0uODI3LTEuMzM1LTEuODQ0LTEuNzgtMy4wNTJzLS42MzYtMi40OC0uNjM2LTMuOTQyLjE5LTIuNzMzLjYzNi0zLjk0MWMuMzgxLTEuMjA4IDEuMDE3LTIuMTYyIDEuNzgtMy4wNTIuNzYzLS44MjYgMS42NTMtMS40NjIgMi43MzMtMS45N2E5LjEgOS4xIDAgMCAxIDMuNTYtLjdxNC4wMDUgMCA2LjEwMyAxLjkwN2wzLjMwNi0zLjMwNWMtMi40OC0xLjkwNy01LjY1OC0yLjkyNS05LjQwOS0yLjkyNS0yLjA5NyAwLTQuMDA0LjMxOC01LjcyMSAxLjAxOC0xLjcxNi42OTktMy4xNzkgMS41ODktNC4zODYgMi43OTdBMTIuMSAxMi4xIDAgMCAwIDMxLjIgMTYuMjJjLS42MzUgMS43MTctLjk1MyAzLjYyNC0uOTUzIDUuNjU4cy4zMTggMy45NDIgMS4wMTcgNS42NThjLjcgMS43MTcgMS41OSAzLjE3OSAyLjc5NyA0LjM4N2ExMi4xIDEyLjEgMCAwIDAgNC4zODcgMi43OTdjMS43MTYuNyAzLjYyMyAxLjAxNyA1LjY1NyAxLjAxNyAyLjAzNSAwIDMuODc4LS4zMTggNS41MzEtMS4wMTcgMS42NTMtLjcgMy4wNTItMS41OSA0LjE5Ni0yLjc5N3ExLjcxNi0xLjgxMiAyLjY3LTQuMzg3Yy42MzYtMS43MTYuOTU0LTMuNjIzLjk1NC01LjY1OHYtLjgyNmMtLjE5MS0uMTI3LS4yNTUtLjQ0NS0uMjU1LS43TTk1Ljk4MiAyMC4zNTNoLTEyLjI3djQuMjU5aDYuOTkzYy0uMTkgMi4xNjEtMS4wMTcgMy44MTQtMi40MTYgNS4xNS0xLjM5OCAxLjI3LTMuMTc4IDEuOTA2LTUuNDY3IDEuOTA2LTEuMjcxIDAtMi40OC0uMjU0LTMuNDk2LS42OTlhNyA3IDAgMCAxLTIuNzM0LTEuOTdjLS43NjMtLjgyNy0xLjMzNS0xLjg0NC0xLjc4LTMuMDUycy0uNjM2LTIuNDgtLjYzNi0zLjk0Mi4xOS0yLjczMy42MzYtMy45NDFjLjM4MS0xLjIwOCAxLjAxNy0yLjE2MiAxLjc4LTMuMDUyLjc2My0uODI2IDEuNjUzLTEuNDYyIDIuNzM0LTEuOTdhOS4xIDkuMSAwIDAgMSAzLjU2LS43cTQuMDA1IDAgNi4xMDMgMS45MDdsMy4zMDUtMy4zMDVjLTIuNDc5LTEuOTA3LTUuNjU4LTIuOTI1LTkuNDA4LTIuOTI1LTIuMDk4IDAtNC4wMDUuMzE4LTUuNzIyIDEuMDE4LTEuNzE2LjY5OS0zLjE3OCAxLjU4OS00LjM4NiAyLjc5N2ExMi4xIDEyLjEgMCAwIDAtMi43OTcgNC4zODZjLS42MzYgMS43MTctLjk1NCAzLjYyNC0uOTU0IDUuNjU4cy4zMTggMy45NDIgMS4wMTcgNS42NThjLjcgMS43MTcgMS41OSAzLjE3OSAyLjc5NyA0LjM4N2ExMi4xIDEyLjEgMCAwIDAgNC4zODcgMi43OTdjMS43MTYuNyAzLjYyMyAxLjAxNyA1LjY1OCAxLjAxNyAyLjAzNCAwIDMuODc4LS4zMTggNS41My0xLjAxNyAxLjY1My0uNyAzLjA1Mi0xLjU5IDQuMTk2LTIuNzk3cTEuNzE4LTEuODEyIDIuNjctNC4zODdjLjYzNi0xLjcxNi45NTQtMy42MjMuOTU0LTUuNjU4di0uODI2Yy0uMTktLjEyNy0uMjU1LS40NDUtLjI1NS0uNyIvPjwvc3ZnPg==");background-repeat:no-repeat;background-size:170px 40px;content:"";display:block;height:40px;width:170px}}:where(.ag-ltr) .ag-watermark{right:25px}:where(.ag-rtl) .ag-watermark{left:25px}.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}',WatermarkElement={tag:"div",cls:"ag-watermark",children:[{tag:"div",ref:"eLicenseTextRef",cls:"ag-watermark-text"}]},AgWatermark=class extends import_ag_grid_community2.Component{constructor(){super(WatermarkElement),this.eLicenseTextRef=import_ag_grid_community2.RefPlaceholder,this.registerCSS(watermarkCSS)}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()}},AgWatermarkSelector={selector:"AG-WATERMARK",component:AgWatermark},GridLicenseManager=class extends import_ag_grid_community3.BeanStub{constructor(){super(...arguments),this.beanName="licenseManager"}postConstruct(){this.validateLicense()}validateLicense(){this.licenseManager=new LicenseManager((0,import_ag_grid_community3._getDocument)(this.beans)),this.licenseManager.validateLicense()}static getLicenseDetails(e){return new LicenseManager(null).getLicenseDetails(e)}getWatermarkSelector(){return AgWatermarkSelector}isDisplayWatermark(){return this.licenseManager.isDisplayWatermark()}getWatermarkMessage(){return this.licenseManager.getWatermarkMessage()}static setLicenseKey(e){LicenseManager.setLicenseKey(e)}static setChartsLicenseManager(e){LicenseManager.setChartsLicenseManager(e)}},import_ag_grid_community12=require("ag-grid-community"),import_ag_grid_community10=require("ag-grid-community"),import_ag_grid_community4=require("ag-grid-community"),INCH_TO_EMU=9525,numberFormatMap={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},LINE_SEPARATOR=`\r `;function returnAttributeIfPopulated(e,t,i){if(!t&&t!==""&&t!==0)return"";let r=t;return typeof t=="boolean"&&i&&(r=i(t)),` ${e}="${r}"`}function createXmlHeader(e={}){const t="<?",i="?>",r=["version"];e.version||(e.version="1.0"),e.encoding&&r.push("encoding"),e.standalone&&r.push("standalone");const a=r.map(n=>`${n}="${e[n]}"`).join(" ");return`${t}xml ${a} ${i}`}function createXml(e,t){let i="";if(e.properties&&(e.properties.prefixedAttributes&&e.properties.prefixedAttributes.forEach(a=>{for(const n of Object.keys(a.map))i+=returnAttributeIfPopulated(a.prefix+n,a.map[n],t)}),e.properties.rawMap))for(const a of Object.keys(e.properties.rawMap))i+=returnAttributeIfPopulated(a,e.properties.rawMap[a],t);let r="<"+e.name+i;if(!e.children&&e.textNode==null)return r+"/>"+LINE_SEPARATOR;if(e.textNode!=null)return r+">"+e.textNode+"</"+e.name+">"+LINE_SEPARATOR;if(r+=">"+LINE_SEPARATOR,e.children)for(const a of e.children)r+=createXml(a,t);return r+"</"+e.name+">"+LINE_SEPARATOR}var pointsToPixel=e=>Math.round(e*96/72),pixelsToEMU=e=>Math.ceil(e*INCH_TO_EMU),getFontFamilyId=e=>{if(e===void 0)return;const i=["Automatic","Roman","Swiss","Modern","Script","Decorative"].indexOf(e||"Automatic");return Math.max(i,0)},getHeightFromProperty=(e,t)=>{if(!t)return;let i;return typeof t=="number"?i=t:i=t({rowIndex:e}),i},setExcelImageTotalWidth=(e,t)=>{const{colSpan:i,column:r}=e.position;if(e.width)if(i){const a=t.slice(r-1,r+i-1);let n=0;for(let o=0;o<a.length;o++){const l=a[o].getActualWidth();if(e.width<n+l){e.position.colSpan=o+1,e.totalWidth=e.width,e.width=e.totalWidth-n;break}n+=l}}else e.totalWidth=e.width},setExcelImageTotalHeight=(e,t)=>{const{rowSpan:i,row:r}=e.position;if(e.height)if(i){let a=0,n=0;for(let o=r;o<r+i;o++){const l=pointsToPixel(getHeightFromProperty(o,t)||20);if(e.height<a+l){e.position.rowSpan=n+1,e.totalHeight=e.height,e.height=e.totalHeight-a;break}a+=l,n++}}else e.totalHeight=e.height},createXmlPart=(e,t)=>{const i=createXmlHeader({encoding:"UTF-8",standalone:"yes"}),r=createXml(e);return t?r:`${i}${r}`},getExcelColumnName=e=>{const r=String.fromCharCode,a=Math.floor(e/26),n=e%26;return!a||e===26?r(65+e-1):n?a<26?r(65+a-1)+r(65+n-1):getExcelColumnName(a)+r(65+n-1):getExcelColumnName(a-1)+"Z"},sanitizeTableName=e=>e.replaceAll(` `,"_x000a_"),replaceInvisibleCharacters=e=>{if(e==null)return null;let t="";for(let i=0;i<e.length;i++){const r=e.charCodeAt(i);if(r>=0&&r<=31&&r!==10){const o=`_x${r.toString(16).toUpperCase().padStart(4,"0")}_`;t+=o}else t+=e[i]}return t},buildSharedString=e=>{const t=[];for(const i of e.keys()){const r=i.toString(),a={name:"t",textNode:(0,import_ag_grid_community4._escapeString)(replaceInvisibleCharacters(r))};r.trim().length!==r.length&&(a.properties={rawMap:{"xml:space":"preserve"}}),t.push({name:"si",children:[a]})}return t},import_ag_grid_community9=require("ag-grid-community"),contentTypeFactory={getTemplate(e){const{name:t,ContentType:i,Extension:r,PartName:a}=e;return{name:t,properties:{rawMap:{Extension:r,PartName:a,ContentType:i}}}}},contentType_default=contentTypeFactory,_normaliseImageExtension=e=>e==="jpg"?"jpeg":e,contentTypesFactory={getTemplate(e){const t=new Array(e).fill(void 0).map((d,u)=>({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",PartName:`/xl/worksheets/sheet${u+1}.xml`})),i=XLSX_WORKSHEET_IMAGES.size,r=XLSX_WORKSHEET_HEADER_FOOTER_IMAGES.size,a={};XLSX_WORKBOOK_IMAGE_IDS.forEach(d=>{a[_normaliseImageExtension(d.type)]=!0});const n=new Array(i).fill(void 0).map((d,u)=>({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml",PartName:`/xl/drawings/drawing${u+1}.xml`})),o=[];XLSX_WORKSHEET_DATA_TABLES.forEach(({name:d})=>{o.push({name:"Override",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml",PartName:`/xl/tables/${d}.xml`})});const l=Object.keys(a).map(d=>({name:"Default",ContentType:`image/${d}`,Extension:d}));r&&l.push({name:"Default",Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"});const c=[...l,{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"},...t,{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"},...n,...o,{name:"Override",ContentType:"application/vnd.openxmlformats-package.core-properties+xml",PartName:"/docProps/core.xml"}].map(d=>contentType_default.getTemplate(d));return{name:"Types",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"}},children:c}}},contentTypes_default=contentTypesFactory,coreFactory={getTemplate(e){const i=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:i},{name:"dcterms:modified",properties:{rawMap:{"xsi:type":"dcterms:W3CDTF"}},textNode:i}]}}},core_default=coreFactory,getAnchor=(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()}]}),getExt=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}},getNvPicPr=(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:[getExt(e)]},{name:"xdr:cNvPicPr",properties:{rawMap:{preferRelativeResize:"0"}},children:[{name:"a:picLocks"}]}]}),getColorDetails=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},getDuoTone=(e,t)=>({name:"a:duotone",children:[{name:"a:prstClr",properties:{rawMap:{val:e.color}},children:getColorDetails(e)},{name:"a:srgbClr",properties:{rawMap:{val:t.color}},children:getColorDetails(t)}]}),getBlipFill=(e,t)=>{let i;if(e.transparency){const r=Math.min(Math.max(e.transparency,0),100);i=[{name:"a:alphaModFix",properties:{rawMap:{amt:1e5-Math.round(r*1e3)}}}]}if(e.recolor)switch(i||(i=[]),e.recolor.toLocaleLowerCase()){case"grayscale":i.push({name:"a:grayscl"});break;case"sepia":i.push(getDuoTone({color:"black"},{color:"D9C3A5",tint:50,saturation:180}));break;case"washout":i.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:i},{name:"a:stretch",children:[{name:"a:fillRect"}]}]}},getSpPr=(e,t)=>{const i={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 n=e.rotation;i.properties={rawMap:{rot:Math.min(Math.max(n,0),360)*6e4}}}return{name:"xdr:spPr",children:[i,{name:"a:prstGeom",properties:{rawMap:{prst:"rect"}},children:[{name:"a:avLst"}]}]}},getImageBoxSize=e=>{e.fitCell=!!e.fitCell||!e.width||!e.height;const{position:t={},fitCell:i,width:r=0,height:a=0,totalHeight:n,totalWidth:o}=e,{offsetX:l=0,offsetY:c=0,row:d=1,rowSpan:u=1,column:h=1,colSpan:p=1}=t;return{from:{row:d-1,col:h-1,offsetX:pixelsToEMU(l),offsetY:pixelsToEMU(c)},to:{row:d-1+(i?1:u-1),col:h-1+(i?1:p-1),offsetX:pixelsToEMU(r+l),offsetY:pixelsToEMU(a+c)},height:pixelsToEMU(n||a),width:pixelsToEMU(o||r)}},getPicture=(e,t,i,r)=>({name:"xdr:pic",children:[getNvPicPr(e,t+1),getBlipFill(e,i+1),getSpPr(e,r)]}),drawingFactory={getTemplate(e){const{sheetIndex:t}=e,i=XLSX_WORKSHEET_IMAGES.get(t),r=XLSX_WORKSHEET_IMAGE_IDS.get(t),a=i.map((n,o)=>{const l=getImageBoxSize(n);return{name:"xdr:twoCellAnchor",properties:{rawMap:{editAs:"absolute"}},children:[getAnchor("from",l.from),getAnchor("to",l.to),getPicture(n,o,r.get(n.id).index,l),{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:a}}},drawing_default=drawingFactory,relationshipFactory={getTemplate(e){const{Id:t,Type:i,Target:r}=e;return{name:"Relationship",properties:{rawMap:{Id:t,Type:i,Target:r}}}}},relationship_default=relationshipFactory,relationshipsFactory={getTemplate(e){const t=e.map(i=>relationship_default.getTemplate(i));return{name:"Relationships",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"}},children:t}}},relationships_default=relationshipsFactory,sharedStrings={getTemplate(e){return{name:"sst",properties:{rawMap:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:e.size,uniqueCount:e.size}},children:buildSharedString(e)}}},sharedStrings_default=sharedStrings,getWeightName=e=>{switch(e){case 1:return"thin";case 2:return"medium";case 3:return"thick";default:return"hair"}},mappedBorderNames={None:"None",Dot:"Dotted",Dash:"Dashed",Double:"Double",DashDot:"DashDot",DashDotDot:"DashDotDot",SlantDashDot:"SlantDashDot",Continuous:"Continuous"},mediumBorders=["Dashed","DashDot","DashDotDot"],colorMap={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"},horizontalAlignmentMap={Automatic:"general",Left:"left",Center:"center",Right:"right",Fill:"fill",Justify:"justify",CenterAcrossSelection:"centerContinuous",Distributed:"distributed",JustifyDistributed:"justify"},verticalAlignmentMap={Automatic:void 0,Top:"top",Bottom:"bottom",Center:"center",Justify:"justify",Distributed:"distributed",JustifyDistributed:"justify"},convertLegacyPattern=e=>e?colorMap[e]||e:"none",convertLegacyColor=e=>e==null?e:(e.charAt(0)==="#"&&(e=e.substring(1)),e.length===6?"FF"+e:e),convertLegacyBorder=(e,t)=>{if(!e)return"thin";const i=getWeightName(t);if(e==="Continuous")return i;const r=mappedBorderNames[e];return i==="medium"&&mediumBorders.some(a=>a===r)?`medium${r}`:`${r.charAt(0).toLowerCase()}${r.substring(1)}`},convertLegacyHorizontalAlignment=e=>horizontalAlignmentMap[e]||"general",convertLegacyVerticalAlignment=e=>verticalAlignmentMap[e]||void 0,getBorderColor=e=>({name:"color",properties:{rawMap:{rgb:convertLegacyColor(e||"#000000")}}}),borderFactory={getTemplate(e){const{left:t,right:i,top:r,bottom:a,diagonal:n}=e,o=t?[getBorderColor(t.color)]:void 0,l=i?[getBorderColor(i.color)]:void 0,c=r?[getBorderColor(r.color)]:void 0,d=a?[getBorderColor(a.color)]:void 0,u=n?[getBorderColor(n.color)]:void 0;return{name:"border",children:[{name:"left",properties:{rawMap:{style:t?.style}},children:o},{name:"right",properties:{rawMap:{style:i?.style}},children:l},{name:"top",properties:{rawMap:{style:r?.style}},children:c},{name:"bottom",properties:{rawMap:{style:a?.style}},children:d},{name:"diagonal",properties:{rawMap:{style:n?.style}},children:u}]}}},border_default=borderFactory,bordersFactory={getTemplate(e){return{name:"borders",properties:{rawMap:{count:e.length}},children:e.map(t=>border_default.getTemplate(t))}}},borders_default=bordersFactory,getReadingOrderId=e=>{const i=["Context","LeftToRight","RightToLeft"].indexOf(e);return Math.max(i,0)},alignmentFactory={getTemplate(e){const{horizontal:t,indent:i,readingOrder:r,rotate:a,shrinkToFit:n,vertical:o,wrapText:l}=e;return{name:"alignment",properties:{rawMap:{horizontal:t&&convertLegacyHorizontalAlignment(t),indent:i,readingOrder:r&&getReadingOrderId(r),textRotation:a,shrinkToFit:n,vertical:o&&convertLegacyVerticalAlignment(o),wrapText:l}}}}},alignment_default=alignmentFactory,protectionFactory={getTemplate(e){const t=e.protected===!1?0:1;return{name:"protection",properties:{rawMap:{hidden:e.hideFormula===!0?1:0,locked:t}}}}},protection_default=protectionFactory,xfFactory={getTemplate(e){const{alignment:t,borderId:i,fillId:r,fontId:a,numFmtId:n,protection:o,quotePrefix:l,xfId:c}=e,d=[];return t&&d.push(alignment_default.getTemplate(t)),o&&d.push(protection_default.getTemplate(o)),{name:"xf",properties:{rawMap:{applyAlignment:t?1:void 0,applyProtection:o?1:void 0,applyBorder:i?1:void 0,applyFill:r?1:void 0,borderId:i,fillId:r,applyFont:a?1:void 0,fontId:a,applyNumberFormat:n?1:void 0,numFmtId:n,quotePrefix:l?1:void 0,xfId:c}},children:d.length?d:void 0}}},xf_default=xfFactory,cellStylesXfsFactory={getTemplate(e){return{name:"cellStyleXfs",properties:{rawMap:{count:e.length}},children:e.map(t=>xf_default.getTemplate(t))}}},cellStyleXfs_default=cellStylesXfsFactory,borderFactory2={getTemplate(e){const{builtinId:t,name:i,xfId:r}=e;return{name:"cellStyle",properties:{rawMap:{builtinId:t,name:i,xfId:r}}}}},cellStyle_default=borderFactory2,cellStylesFactory={getTemplate(e){return{name:"cellStyles",properties:{rawMap:{count:e.length}},children:e.map(t=>cellStyle_default.getTemplate(t))}}},cellStyles_default=cellStylesFactory,cellXfsFactory={getTemplate(e){return{name:"cellXfs",properties:{rawMap:{count:e.length}},children:e.map(t=>xf_default.getTemplate(t))}}},cellXfs_default=cellXfsFactory,fillFactory={getTemplate(e){const{patternType:t,fgTheme:i,fgTint:r,fgRgb:a,bgRgb:n,bgIndexed:o}=e,l={name:"patternFill",properties:{rawMap:{patternType:t}}};return(i||r||a)&&(l.children=[{name:"fgColor",properties:{rawMap:{theme:i,tint:r,rgb:a}}}]),(o||n)&&(l.children||(l.children=[]),l.children.push({name:"bgColor",properties:{rawMap:{indexed:o,rgb:n}}})),{name:"fill",children:[l]}}},fill_default=fillFactory,fillsFactory={getTemplate(e){return{name:"fills",properties:{rawMap:{count:e.length}},children:e.map(t=>fill_default.getTemplate(t))}}},fills_default=fillsFactory,fontFactory={getTemplate(e){const{size:t,colorTheme:i,color:r="FF000000",fontName:a="Calibri",family:n,scheme:o,italic:l,bold:c,strikeThrough:d,outline:u,shadow:h,underline:p,verticalAlign:g}=e,m=[{name:"sz",properties:{rawMap:{val:t}}},{name:"color",properties:{rawMap:{theme:i,rgb:r}}},{name:"name",properties:{rawMap:{val:a}}}];return n&&m.push({name:"family",properties:{rawMap:{val:n}}}),o&&m.push({name:"scheme",properties:{rawMap:{val:o}}}),l&&m.push({name:"i"}),c&&m.push({name:"b"}),d&&m.push({name:"strike"}),u&&m.push({name:"outline"}),h&&m.push({name:"shadow"}),p&&m.push({name:"u",properties:{rawMap:{val:p}}}),g&&m.push({name:"vertAlign",properties:{rawMap:{val:g}}}),{name:"font",children:m}}},font_default=fontFactory,fontsFactory={getTemplate(e){return{name:"fonts",properties:{rawMap:{count:e.length}},children:e.map(t=>font_default.getTemplate(t))}}},fonts_default=fontsFactory,import_ag_grid_community5=require("ag-grid-community");function prepareString(e){const t=e.split(/(\[[^\]]*\])/);for(let i=0;i<t.length;i++){let r=t[i];r.length&&(r.startsWith("[")||(r=r.replace(/\$/g,'"$"')),t[i]=(0,import_ag_grid_community5._escapeString)(r))}return t.join("")}var numberFormatFactory={getTemplate(e){let{formatCode:t,numFmtId:i}=e;return t.length&&(t=prepareString(t)),{name:"numFmt",properties:{rawMap:{formatCode:t,numFmtId:i}}}}},numberFormat_default=numberFormatFactory,numberFormatsFactory={getTemplate(e){return{name:"numFmts",properties:{rawMap:{count:e.length}},children:e.map(t=>numberFormat_default.getTemplate(t))}}},numberFormats_default=numberFormatsFactory,stylesMap,registeredNumberFmts,registeredFonts,registeredFills,registeredBorders,registeredCellStyleXfs,registeredCellXfs,registeredCellStyles,currentSheet,getStyleName=(e,t)=>(e.includes("mixedStyle")&&t>1&&(e+=`_${t}`),e),resetStylesheetValues=()=>{stylesMap={base:0},registeredNumberFmts=[],registeredFonts=[{fontName:"Calibri",colorTheme:"1",family:"2",scheme:"minor"}],registeredFills=[{patternType:"none"},{patternType:"gray125"}],registeredBorders=[{left:void 0,right:void 0,top:void 0,bottom:void 0,diagonal:void 0}],registeredCellStyleXfs=[{borderId:0,fillId:0,fontId:0,numFmtId:0}],registeredCellXfs=[{borderId:0,fillId:0,fontId:0,numFmtId:0,xfId:0}],registeredCellStyles=[{builtinId:0,name:"Normal",xfId:0}]},registerFill=e=>{const t=convertLegacyPattern(e.pattern),i=convertLegacyColor(e.color),r=convertLegacyColor(e.patternColor);let a=registeredFills.findIndex(n=>{const{patternType:o,fgRgb:l,bgRgb:c}=n;return!(o!=t||l!=i||c!=r)});return a===-1&&(a=registeredFills.length,registeredFills.push({patternType:t,fgRgb:i,bgRgb:r})),a},registerNumberFmt=e=>{if(numberFormatMap[e])return numberFormatMap[e];let t=registeredNumberFmts.findIndex(i=>i.formatCode===e);return t===-1?(t=registeredNumberFmts.length+164,registeredNumberFmts.push({formatCode:e,numFmtId:t})):t=registeredNumberFmts[t].numFmtId,t},registerBorders=e=>{const{borderBottom:t,borderTop:i,borderLeft:r,borderRight:a}=e;let n,o,l,c,d,u,h,p;r&&(l=convertLegacyBorder(r.lineStyle,r.weight),h=convertLegacyColor(r.color)),a&&(c=convertLegacyBorder(a.lineStyle,a.weight),p=convertLegacyColor(a.color)),t&&(n=convertLegacyBorder(t.lineStyle,t.weight),d=convertLegacyColor(t.color)),i&&(o=convertLegacyBorder(i.lineStyle,i.weight),u=convertLegacyColor(i.color));let g=registeredBorders.findIndex(m=>{const{left:f,right:v,top:C,bottom:y}=m;if(!f&&(l||h)||!v&&(c||p)||!C&&(o||u)||!y&&(n||d))return!1;const{style:S,color:b}=f||{},{style:w,color:x}=v||{},{style:A,color:T}=C||{},{style:M,color:I}=y||{};return!(S!=l||b!=h||w!=c||x!=p||A!=o||T!=u||M!=n||I!=d)});return g===-1&&(g=registeredBorders.length,registeredBorders.push({left:{style:l,color:h},right:{style:c,color:p},top:{style:o,color:u},bottom:{style:n,color:d},diagonal:{style:void 0,color:void 0}})),g},registerFont=e=>{const{fontName:t="Calibri",color:i,size:r,bold:a,italic:n,outline:o,shadow:l,strikeThrough:c,underline:d,family:u,verticalAlign:h}=e,p=convertLegacyColor(i),g=getFontFamilyId(u),m=d?d.toLocaleLowerCase():void 0,f=h?h.toLocaleLowerCase():void 0;let v=registeredFonts.findIndex(C=>!(C.fontName!=t||C.color!=p||C.size!=r||C.bold!=a||C.italic!=n||C.outline!=o||C.shadow!=l||C.strikeThrough!=c||C.underline!=m||C.verticalAlign!=f||C.family!=g));return v===-1&&(v=registeredFonts.length,registeredFonts.push({fontName:t,color:p,size:r,bold:a,italic:n,outline:o,shadow:l,strikeThrough:c,underline:m,verticalAlign:f,family:g?.toString()})),v},registerStyle=e=>{const{alignment:t,borders:i,font:r,interior:a,numberFormat:n,protection:o,quotePrefix:l}=e;let{id:c}=e,d=0,u=0,h=0,p=0;c&&(c=getStyleName(c,currentSheet),stylesMap[c]==null&&(a&&(d=registerFill(a)),i&&(u=registerBorders(i)),r&&(h=registerFont(r)),n&&(p=registerNumberFmt(n.format)),stylesMap[c]=registeredCellXfs.length,registeredCellXfs.push({alignment:t,borderId:u||0,fillId:d||0,fontId:h||0,numFmtId:p||0,protection:o,quotePrefix:l,xfId:0})))},stylesheetFactory={getTemplate(e){const t=numberFormats_default.getTemplate(registeredNumberFmts),i=fonts_default.getTemplate(registeredFonts.map(c=>({...c,size:c.size!=null?c.size:e}))),r=fills_default.getTemplate(registeredFills),a=borders_default.getTemplate(registeredBorders),n=cellStyleXfs_default.getTemplate(registeredCellStyleXfs),o=cellXfs_default.getTemplate(registeredCellXfs),l=cellStyles_default.getTemplate(registeredCellStyles);return resetStylesheetValues(),{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,i,r,a,n,o,l,{name:"tableStyles",properties:{rawMap:{count:0,defaultPivotStyle:"PivotStyleLight16",defaultTableStyle:"TableStyleMedium2"}}}]}}},getStyleId=(e,t)=>stylesMap[getStyleName(e,t)]||0,registerStyles=(e,t)=>{currentSheet=t,currentSheet===1&&resetStylesheetValues(),e.forEach(registerStyle)},stylesheet_default=stylesheetFactory,import_ag_grid_community6=require("ag-grid-community"),tableFactory={getTemplate(e,t){const{name:i,columns:r,rowRange:a,displayName:n,showRowStripes:o,showColumnStripes:l,showFilterButtons:c,highlightFirstColumn:d,highlightLastColumn:u}=e||{},h=!a||a[0]-a[1]===0;if(!e||!i||!Array.isArray(r)||!r.length||h)return{name:"table"};const p=r.map((y,S)=>({name:"filterColumn",properties:{rawMap:{colId:S.toString(),hiddenButton:c[S]?0:1}}})),g=`A${a[0]}`,m=`${getExcelColumnName(r.length)}${a[1]}`,f=`${g}:${m}`,v=`${t+1}`,C=t?`${n}_${v}`:n;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:v}},children:[{name:"autoFilter",properties:{rawMap:{ref:f}},children:p},{name:"tableColumns",properties:{rawMap:{count:r.length}},children:r.map((y,S)=>({name:"tableColumn",properties:{rawMap:{id:(S+1).toString(),name:(0,import_ag_grid_community6._escapeString)(sanitizeTableName(y)),dataCellStyle:"Normal"}}}))},{name:"tableStyleInfo",properties:{rawMap:{name:"TableStyleLight1",showFirstColumn:d?1:0,showLastColumn:u?1:0,showRowStripes:o?1:0,showColumnStripes:l?1:0}}}]}}},table_default=tableFactory,getColorChildren=e=>{const[t,i,r,a]=e;return{name:`a:${t}`,children:[{name:`a:${i}`,properties:{rawMap:{val:r,lastClr:a}}}]}},colorScheme={getTemplate(){return{name:"a:clrScheme",properties:{rawMap:{name:"Office"}},children:[getColorChildren(["dk1","sysClr","windowText","000000"]),getColorChildren(["lt1","sysClr","window","FFFFFF"]),getColorChildren(["dk2","srgbClr","44546A"]),getColorChildren(["lt2","srgbClr","E7E6E6"]),getColorChildren(["accent1","srgbClr","4472C4"]),getColorChildren(["accent2","srgbClr","ED7D31"]),getColorChildren(["accent3","srgbClr","A5A5A5"]),getColorChildren(["accent4","srgbClr","FFC000"]),getColorChildren(["accent5","srgbClr","5B9BD5"]),getColorChildren(["accent6","srgbClr","70AD47"]),getColorChildren(["hlink","srgbClr","0563C1"]),getColorChildren(["folHlink","srgbClr","954F72"])]}}},colorScheme_default=colorScheme,getFont=e=>{const[t,i,r,a]=e;return{name:`a:${t}`,properties:{rawMap:{script:r,typeface:i,panose:a}}}},fontScheme={getTemplate(){return{name:"a:fontScheme",properties:{rawMap:{name:"Office"}},children:[{name:"a:majorFont",children:[getFont(["latin","Calibri Light",void 0,"020F0302020204030204"]),getFont(["ea",""]),getFont(["cs",""]),getFont(["font","\u6E38\u30B4\u30B7\u30C3\u30AF Light","Jpan"]),getFont(["font","\uB9D1\uC740 \uACE0\uB515","Hang"]),getFont(["font","\u7B49\u7EBF Light","Hans"]),getFont(["font","\u65B0\u7D30\u660E\u9AD4","Hant"]),getFont(["font","Times New Roman","Arab"]),getFont(["font","Times New Roman","Hebr"]),getFont(["font","Tahoma","Thai"]),getFont(["font","Nyala","Ethi"]),getFont(["font","Vrinda","Beng"]),getFont(["font","Shruti","Gujr"]),getFont(["font","MoolBoran","Khmr"]),getFont(["font","Tunga","Knda"]),getFont(["font","Raavi","Guru"]),getFont(["font","Euphemia","Cans"]),getFont(["font","Plantagenet Cherokee","Cher"]),getFont(["font","Microsoft Yi Baiti","Yiii"]),getFont(["font","Microsoft Himalaya","Tibt"]),getFont(["font","MV Boli","Thaa"]),getFont(["font","Mangal","Deva"]),getFont(["font","Gautami","Telu"]),getFont(["font","Latha","Taml"]),getFont(["font","Estrangelo Edessa","Syrc"]),getFont(["font","Kalinga","Orya"]),getFont(["font","Kartika","Mlym"]),getFont(["font","DokChampa","Laoo"]),getFont(["font","Iskoola Pota","Sinh"]),getFont(["font","Mongolian Baiti","Mong"]),getFont(["font","Times New Roman","Viet"]),getFont(["font","Microsoft Uighur","Uigh"]),getFont(["font","Sylfaen","Geor"]),getFont(["font","Arial","Armn"]),getFont(["font","Leelawadee UI","Bugi"]),getFont(["font","Microsoft JhengHei","Bopo"]),getFont(["font","Javanese Text","Java"]),getFont(["font","Segoe UI","Lisu"]),getFont(["font","Myanmar Text","Mymr"]),getFont(["font","Ebrima","Nkoo"]),getFont(["font","Nirmala UI","Olck"]),getFont(["font","Ebrima","Osma"]),getFont(["font","Phagspa","Phag"]),getFont(["font","Estrangelo Edessa","Syrn"]),getFont(["font","Estrangelo Edessa","Syrj"]),getFont(["font","Estrangelo Edessa","Syre"]),getFont(["font","Nirmala UI","Sora"]),getFont(["font","Microsoft Tai Le","Tale"]),getFont(["font","Microsoft New Tai Lue","Talu"]),getFont(["font","Ebrima","Tfng"])]},{name:"a:minorFont",children:[getFont(["latin","Calibri",void 0,"020F0502020204030204"]),getFont(["ea",""]),getFont(["cs",""]),getFont(["font","\u6E38\u30B4\u30B7\u30C3\u30AF","Jpan"]),getFont(["font","\uB9D1\uC740 \uACE0\uB515","Hang"]),getFont(["font","\u7B49\u7EBF","Hans"]),getFont(["font","\u65B0\u7D30\u660E\u9AD4","Hant"]),getFont(["font","Arial","Arab"]),getFont(["font","Arial","Hebr"]),getFont(["font","Tahoma","Thai"]),getFont(["font","Nyala","Ethi"]),getFont(["font","Vrinda","Beng"]),getFont(["font","Shruti","Gujr"]),getFont(["font","DaunPenh","Khmr"]),getFont(["font","Tunga","Knda"]),getFont(["font","Raavi","Guru"]),getFont(["font","Euphemia","Cans"]),getFont(["font","Plantagenet Cherokee","Cher"]),getFont(["font","Microsoft Yi Baiti","Yiii"]),getFont(["font","Microsoft Himalaya","Tibt"]),getFont(["font","MV Boli","Thaa"]),getFont(["font","Mangal","Deva"]),getFont(["font","Gautami","Telu"]),getFont(["font","Latha","Taml"]),getFont(["font","Estrangelo Edessa","Syrc"]),getFont(["font","Kalinga","Orya"]),getFont(["font","Kartika","Mlym"]),getFont(["font","DokChampa","Laoo"]),getFont(["font","Iskoola Pota","Sinh"]),getFont(["font","Mongolian Baiti","Mong"]),getFont(["font","Arial","Viet"]),getFont(["font","Microsoft Uighur","Uigh"]),getFont(["font","Sylfaen","Geor"]),getFont(["font","Arial","Armn"]),getFont(["font","Leelawadee UI","Bugi"]),getFont(["font","Microsoft JhengHei","Bopo"]),getFont(["font","Javanese Text","Java"]),getFont(["font","Segoe UI","Lisu"]),getFont(["font","Myanmar Text","Mymr"]),getFont(["font","Ebrima","Nkoo"]),getFont(["font","Nirmala UI","Olck"]),getFont(["font","Ebrima","Osma"]),getFont(["font","Phagspa","Phag"]),getFont(["font","Estrangelo Edessa","Syrn"]),getFont(["font","Estrangelo Edessa","Syrj"]),getFont(["font","Estrangelo Edessa","Syre"]),getFont(["font","Nirmala UI","Sora"]),getFont(["font","Microsoft Tai Le","Tale"]),getFont(["font","Microsoft New Tai Lue","Talu"]),getFont(["font","Ebrima","Tfng"])]}]}}},fontScheme_default=fontScheme,getPropertyVal=(e,t,i)=>({name:`a:${e}`,properties:{rawMap:{val:t}},children:i}),getGs=e=>{const[t,i,r,a,n,o]=e,l=[];return l.push(getPropertyVal("satMod",r)),a&&l.push(getPropertyVal("lumMod",a)),n&&l.push(getPropertyVal("tint",n)),o&&l.push(getPropertyVal("shade",o)),{name:"a:gs",properties:{rawMap:{pos:t}},children:[{name:"a:schemeClr",properties:{rawMap:{val:i}},children:l}]}},getSolidFill=(e,t)=>({name:"a:solidFill",children:[getPropertyVal("schemeClr",e,t)]}),getGradFill=e=>{const[t,i,r,a,n]=e,[o,l]=n;return{name:"a:gradFill",properties:{rawMap:{rotWithShape:t}},children:[{name:"a:gsLst",children:[getGs(i),getGs(r),getGs(a)]},{name:"a:lin",properties:{rawMap:{ang:o,scaled:l}}}]}},getLine=e=>{const[t,i,r,a]=e;return{name:"a:ln",properties:{rawMap:{w:t,cap:i,cmpd:r,algn:a}},children:[getSolidFill("phClr"),getPropertyVal("prstDash","solid"),{name:"a:miter",properties:{rawMap:{lim:"800000"}}}]}},getEffectStyle=e=>{const t=[];if(e){const[i,r,a,n,o]=e;t.push({name:"a:outerShdw",properties:{rawMap:{blurRad:i,dist:r,dir:a,algn:n,ro