UNPKG

@progress/kendo-ui

Version:

This package is part of the [Kendo UI for jQuery](http://www.telerik.com/kendo-ui) suite.

3 lines (2 loc) 40.2 kB
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("kendo.jszip-esm.cmn.chunk.js")):"function"==typeof define&&define.amd?define(["exports","kendo.jszip-esm.cmn.chunk.min"],t):t(((e="undefined"!=typeof globalThis?globalThis:e||self).kendo=e.kendo||{},e.kendo._globals=e.kendo._globals||{},e.kendo._globals.OoxmlCmnChunk={}),e.kendo._globals.JszipEsmCmnChunk)}(this,(function(e,t){let n={compile:function(e){return e}};class o{static register(e){n=e}static compile(e){return n.compile(e)}}const r=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,s={},l="undefined";function i(e){if(s[e])return s[e];const t=[];return e.replace(r,(function(e,n,o,r){t.push(typeof n!==l?n:o||r)})),s[e]=function(e){let n=e;for(let e=0;e<t.length&&n;e++)n=n[t[e]];return n},s[e]}function a(e,t){return e.reduce(((e,n,o)=>{const r=t(n,o);return null!=r&&e.push(r),e}),[])}function c(e){return`${e.title}: ${e.value}`}function m(e,t){const n=[];for(let o=0;o<e;o++)n.push(t(o));return n}function h(e){return e.id}s[l]=function(e){return e};let d={toString:e=>e};class p{static register(e){d=e}static toString(e,t){return d.toString(e,t)}}function u(e,t,n){return(1461*(e+4800+((t-13)/12|0))/4|0)+(367*(t-1-12*((t-13)/12|0))/12|0)-(3*((e+4900+((t-13)/12|0))/100|0)/4|0)+n-32075}const f=u(1900,0,-1);function g(e){const t=(n=e.getHours(),o=e.getMinutes(),r=e.getSeconds(),s=e.getMilliseconds(),(n+(o+(r+s/1e3)/60)/60)/24);var n,o,r,s;const l=function(e,t,n){return u(e,t,n)-f}(e.getFullYear(),e.getMonth(),e.getDate());return l<0?l-1+t:l+t}const x="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",$=`data:${x};base64,`,y={compression:"DEFLATE",type:"base64"},b={compression:"DEFLATE",type:"blob"},w={compression:"DEFLATE",type:"arraybuffer"};function v(e){return $+e}function _(e,t){return t.indexOf(e)}const C=JSON.parse.bind(JSON);function T(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;")}function k(e,t){let n="";for(let o=0;o<e;++o)n+=t(o);return n}function S(e,t){let n="";if(null!=e)if(Array.isArray(e))for(let o=0;o<e.length;++o)n+=t(e[o],o);else"object"==typeof e&&Object.keys(e).forEach(((o,r)=>{n+=t(e[o],o,r)}));return n}const I='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r',O=`${I}\n <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n <Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>\n <Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>\n <Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/>\n </Relationships>`,F=({frozenColumns:e,frozenRows:t,columns:n,defaults:o,data:r,index:s,mergeCells:l,autoFilter:i,filter:a,showGridLines:c,hyperlinks:m,validations:h,defaultCellStyleId:d,rtl:p,legacyDrawing:u,drawing:f,lastRow:g,lastCol:x,hasDisabledCells:$})=>`${I}\n<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" mc:Ignorable="x14ac">\n ${g&&x?`<dimension ref="A1:${R(g-1,x-1)}" />`:""}\n\n <sheetViews>\n <sheetView ${p?'rightToLeft="1"':""} ${0===s?'tabSelected="1"':""} workbookViewId="0" ${!1===c?'showGridLines="0"':""}>\n ${t||e?`\n <pane state="frozen"\n ${e?`xSplit="${e}"`:""}\n ${t?`ySplit="${t}"`:""}\n topLeftCell="${String.fromCharCode(65+(e||0))+((t||0)+1)}"\n />`:""}\n </sheetView>\n </sheetViews>\n\n <sheetFormatPr x14ac:dyDescent="0.25" ${o.skipCustomHeight?"":'customHeight="1"'} defaultRowHeight="${o.rowHeight?.75*o.rowHeight:15}"\n ${o.columnWidth?`defaultColWidth="${A(o.columnWidth)}"`:""} />\n\n ${null!=d||n&&n.length>0?`\n <cols>\n ${n&&n.length?"":`\n <col min="1" max="16384" style="${d}"\n ${o.columnWidth?`width="${A(o.columnWidth)}"`:""} /> `}\n ${S(n,((e,t)=>{const n="number"==typeof e.index?e.index+1:t+1;return 0===e.width?`<col ${null!=d?`style="${d}"`:""}\n min="${n}" max="${n}" hidden="1" customWidth="1" />`:`<col ${null!=d?`style="${d}"`:""}\n min="${n}" max="${n}" customWidth="1"\n ${e.autoWidth?`width="${(7*e.width+5)/7*256/256}" bestFit="1"`:`width="${A(e.width)}"`} />`}))}\n </cols>`:""}\n\n <sheetData>\n ${S(r,((e,t)=>{return`\n <row r="${"number"==typeof e.index?e.index+1:t+1}" x14ac:dyDescent="0.25"\n ${e.level?`outlineLevel="${e.level}"`:""}\n ${0===e.height?'hidden="1"':e.height?`ht="${n=e.height,.75*n}" customHeight="1"`:""}>\n ${S(e.data,(e=>`\n <c r="${e.ref}" ${e.style?`s="${e.style}"`:""} ${e.type?`t="${e.type}"`:""}>\n ${null!=e.formula?function(e){if("string"==typeof e)return`<f>${T(e)}</f>`;return`<f t="array" ref="${e.ref}">${T(e.src)}</f>`}(e.formula):""}\n ${null!=e.value?`<v>${T(e.value)}</v>`:""}\n </c>`))}\n </row>\n `;var n}))}\n </sheetData>\n\n ${$?'<sheetProtection sheet="1" objects="1" scenarios="1"/>':""}\n\n ${i?`<autoFilter ref="${i.from}:${i.to}"/>`:a?se(a):""}\n\n ${l.length?`\n <mergeCells count="${l.length}">\n ${S(l,(e=>`<mergeCell ref="${e}"/>`))}\n </mergeCells>`:""}\n\n ${h.length?`\n <dataValidations>\n ${S(h,(e=>`\n <dataValidation sqref="${e.sqref.join(" ")}"\n showErrorMessage="${e.showErrorMessage}"\n type="${T(e.type)}"\n ${"list"!==e.type?`operator="${T(e.operator)}"`:""}\n allowBlank="${e.allowBlank}"\n showDropDown="${e.showDropDown}"\n ${e.error?`error="${T(e.error)}"`:""}\n ${e.errorTitle?`errorTitle="${T(e.errorTitle)}"`:""}>\n ${e.formula1?`<formula1>${T(e.formula1)}</formula1>`:""}\n ${e.formula2?`<formula2>${T(e.formula2)}</formula2>`:""}\n </dataValidation>`))}\n </dataValidations>`:""}\n\n ${m.length?`\n <hyperlinks>\n ${S(m,(e=>`\n <hyperlink ref="${e.ref}" r:id="${e.rId}"/>`))}\n </hyperlinks>`:""}\n\n <pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3" />\n ${f?`<drawing r:id="${f}"/>`:""}\n ${u?`<legacyDrawing r:id="${u}"/>`:""}\n</worksheet>`,D=e=>`${I}\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n ${S(e,(e=>`\n <Relationship Id="${e.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="${e.target}"/>`))}\n</Relationships>`;function P(e){const t=Math.floor(e/26)-1;return(t>=0?P(t):"")+String.fromCharCode(65+e%26)}function R(e,t){return P(t)+(e+1)}function j(e,t){return"$"+P(t)+"$"+(e+1)}function M(e){return(e.frozenRows||(e.freezePane||{}).rowSplit||1)-1}function A(e){return e/7-Math.floor(128/7)/256}class E{constructor(e,t,n,o){this.options=e,this._strings=t,this._styles=n,this._borders=o,this._validations={},this._comments=[],this._drawings=e.drawings||[],this._hyperlinks=(this.options.hyperlinks||[]).map(((e,t)=>Object.assign({},e,{rId:`link${t}`})))}relsToXML(){const e=this._hyperlinks,t=this._comments,n=this._drawings;if(e.length||t.length||n.length)return(({hyperlinks:e,comments:t,sheetIndex:n,drawings:o})=>`${I}\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n ${S(e,(e=>`\n <Relationship Id="${e.rId}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="${T(e.target)}" TargetMode="External" />`))}\n ${t.length?`\n <Relationship Id="comment${n}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" Target="../comments${n}.xml"/>\n <Relationship Id="vml${n}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing" Target="../drawings/vmlDrawing${n}.vml"/>`:""}\n ${o.length?`\n <Relationship Id="drw${n}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing${n}.xml"/>`:""}\n</Relationships>`)({hyperlinks:e,comments:t,sheetIndex:this.options.sheetIndex,drawings:n})}toXML(e){const t=this.options.mergedCells||[],n=function(e,t){const n=[],o=[];!function(e,t){for(let n=0;n<e.length;n++){const o=e[n];if(!o)continue;let r=o.index;"number"!=typeof r&&(r=n),t(o,r)}}(e,(function(e,t){const r={_source:e,index:t,height:e.height,level:e.level,cells:[]};n.push(r),o[t]=r}));const r=X(n).slice(0),s={rowData:n,rowsByIndex:o,mergedCells:t};for(let e=0;e<r.length;e++)Q(r[e],s),delete r[e]._source;return X(n)}(this.options.rows||[],t);this._readCells(n);let o,r=this.options.filter;r&&"number"==typeof r.from&&"number"==typeof r.to?r={from:R(M(this.options),r.from),to:R(M(this.options),r.to)}:r&&r.ref&&r.columns&&(o=r,r=null);const s=[];for(let e in this._validations)Object.prototype.hasOwnProperty.call(this._validations,e)&&s.push(this._validations[e]);let l=null,i=this.options.defaultCellStyle;this._hasDisabledCells&&(i=i?Object.assign({disabled:!1},i):{disabled:!1}),i&&(l=this._lookupStyle(i));const a=this.options.freezePane||{},c=this.options.defaults||{},m=this.options.rows?this._getLastRow():1,h=this.options.rows?this._getLastCol():1;return F({frozenColumns:this.options.frozenColumns||a.colSplit,frozenRows:this.options.frozenRows||a.rowSplit,columns:this.options.columns,defaults:c,data:n,index:e,mergeCells:t,autoFilter:r,filter:o,showGridLines:this.options.showGridLines,hyperlinks:this._hyperlinks,validations:s,defaultCellStyleId:l,rtl:void 0!==this.options.rtl?this.options.rtl:c.rtl,legacyDrawing:this._comments.length?`vml${this.options.sheetIndex}`:null,drawing:this._drawings.length?`drw${this.options.sheetIndex}`:null,lastRow:m,lastCol:h,hasDisabledCells:this._hasDisabledCells})}commentsXML(){if(this._comments.length)return(({comments:e})=>`${I}\n<comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">\n <authors>\n <author></author>\n </authors>\n <commentList>\n ${S(e,(e=>`\n <comment ref="${e.ref}" authorId="0">\n <text>\n <r>\n <rPr>\n <sz val="8"/>\n <color indexed="81"/>\n <rFont val="Tahoma"/>\n <charset val="1"/>\n </rPr>\n <t>${T(e.text)}</t>\n </r>\n </text>\n </comment>`))}\n </commentList>\n</comments>`)({comments:this._comments})}drawingsXML(e){if(this._drawings.length){let n={},o=this._drawings.map((t=>{let o=J(t.topLeftCell),r=n[t.image];return r||(r=n[t.image]={rId:`img${t.image}`,target:e[t.image].target}),{col:o.col,colOffset:U(t.offsetX),row:o.row,rowOffset:U(t.offsetY),width:U(t.width),height:U(t.height),imageId:r.rId}}));return{main:(t=o,`${I}\n<xdr:wsDr xmlns:xdr="http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing"\n xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"\n xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">\n ${S(t,((e,t)=>`\n <xdr:oneCellAnchor editAs="oneCell">\n <xdr:from>\n <xdr:col>${e.col}</xdr:col>\n <xdr:colOff>${e.colOffset}</xdr:colOff>\n <xdr:row>${e.row}</xdr:row>\n <xdr:rowOff>${e.rowOffset}</xdr:rowOff>\n </xdr:from>\n <xdr:ext cx="${e.width}" cy="${e.height}" />\n <xdr:pic>\n <xdr:nvPicPr>\n <xdr:cNvPr id="${t+1}" name="Picture ${t+1}"/>\n <xdr:cNvPicPr/>\n </xdr:nvPicPr>\n <xdr:blipFill>\n <a:blip r:embed="${e.imageId}"/>\n <a:stretch>\n <a:fillRect/>\n </a:stretch>\n </xdr:blipFill>\n <xdr:spPr>\n <a:prstGeom prst="rect">\n <a:avLst/>\n </a:prstGeom>\n </xdr:spPr>\n </xdr:pic>\n <xdr:clientData/>\n </xdr:oneCellAnchor>`))}\n</xdr:wsDr>`),rels:D(n)}}var t}legacyDrawing(){if(this._comments.length)return(({comments:e})=>`<xml xmlns:v="urn:schemas-microsoft-com:vml"\n xmlns:o="urn:schemas-microsoft-com:office:office"\n xmlns:x="urn:schemas-microsoft-com:office:excel">\n <v:shapetype coordsize="21600,21600" id="_x0000_t202" path="m,l,21600r21600,l21600,xe">\n <v:stroke joinstyle="miter"/>\n <v:path gradientshapeok="t" o:connecttype="rect"/>\n </v:shapetype>\n ${S(e,(e=>`\n <v:shape type="#_x0000_t202" style="visibility: hidden" fillcolor="#ffffe1" o:insetmode="auto">\n <v:shadow on="t" color="black" obscured="t"/>\n <x:ClientData ObjectType="Note">\n <x:MoveWithCells/>\n <x:SizeWithCells/>\n <x:Anchor>${e.anchor}</x:Anchor>\n <x:AutoFill>False</x:AutoFill>\n <x:Row>${e.row}</x:Row>\n <x:Column>${e.col}</x:Column>\n </x:ClientData>\n </v:shape>`))}\n</xml>`)({comments:this._comments})}_lookupString(e){const t="$"+e,n=this._strings.indexes[t];let o;return void 0!==n?o=n:(o=this._strings.indexes[t]=this._strings.uniqueCount,this._strings.uniqueCount++),this._strings.count++,o}_lookupStyle(e){const t=JSON.stringify(e);if("{}"===t)return 0;let n=_(t,this._styles);return n<0&&(n=this._styles.push(t)-1),n+1}_lookupBorder(e){const t=JSON.stringify(e);if("{}"===t)return;let n=_(t,this._borders);return n<0&&(n=this._borders.push(t)-1),n+1}_readCells(e){for(let t=0;t<e.length;t++){const n=e[t],o=n.cells;n.data=[];for(let e=0;e<o.length;e++){const t=this._cell(o[e],n.index,e);t&&n.data.push(t)}}}_cell(e,t,n){if(!e||e===W)return null;let o=e.value,r={};e.borderLeft&&(r.left=e.borderLeft),e.borderRight&&(r.right=e.borderRight),e.borderTop&&(r.top=e.borderTop),e.borderBottom&&(r.bottom=e.borderBottom),e.dBorders&&(r.diagonal=e.dBorders),r=this._lookupBorder(r);const s=this.options.defaultCellStyle||{};let l={borderId:r};(e=>{e("color"),e("background"),e("bold"),e("italic"),e("underline"),e("fontFamily")||e("fontName","fontFamily"),e("fontSize"),e("format"),e("textAlign")||e("hAlign","textAlign"),e("verticalAlign")||e("vAlign","verticalAlign"),e("wrap"),e("indent"),e("disabled")||e("enable")&&(l.disabled=!l.enable,delete l.enable),l.disabled&&(this._hasDisabledCells=!0)})(((t,n)=>{let o=e[t];if(void 0===o&&(o=s[t]),void 0!==o)return l[n||t]=o,!0}));const i=(this.options.columns||[])[n];let a=typeof o;if(i&&i.autoWidth&&(!e.colSpan||1===e.colSpan)){let t=o;"number"===a&&(t=p.toString(o,e.format)),i.width=Math.max(i.width||0,String(t).length)}"string"===a?(o=function(e){return String(e).replace(/[\x00-\x09\x0B\x0C\x0E-\x1F]/g,"").replace(/\r?\n/g,"\r\n")}(o),o=this._lookupString(o),a="s"):"number"===a?a="n":"boolean"===a?(a="b",o=Number(o)):o&&o.getTime?(a=null,o=g(o),l.format||(l.format="mm-dd-yy")):(a=null,o=null),l=this._lookupStyle(l);const c=R(t,n);if(e.validation&&this._addValidation(e.validation,c),e.comment){let o=[n+1,15,t,10,n+3,15,t+3,4];this._comments.push({ref:c,text:e.comment,row:t,col:n,anchor:o.join(", ")})}return{value:o,formula:e.formula,type:a,style:l,ref:c}}_addValidation(e,t){const n={showErrorMessage:"reject"===e.type?1:0,formula1:e.from,formula2:e.to,type:N[e.dataType]||e.dataType,operator:H[e.comparerType]||e.comparerType,allowBlank:e.allowNulls?1:0,showDropDown:e.showButton?0:1,error:e.messageTemplate,errorTitle:e.titleTemplate},o=JSON.stringify(n);this._validations[o]||(this._validations[o]=n,n.sqref=[]),this._validations[o].sqref.push(t)}_getLastRow(){return L(this.options.rows)}_getLastCol(){let e=0;return this.options.rows.forEach((function(t){t.cells&&(e=Math.max(e,L(t.cells)))})),e}}function L(e){let t=e.length;return e.forEach((function(e){e.index&&e.index>=t&&(t=e.index+1)})),t}const H={greaterThanOrEqualTo:"greaterThanOrEqual",lessThanOrEqualTo:"lessThanOrEqual"},N={number:"decimal"},z={General:0,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,"[$-404]e/m/d":27,"m/d/yy":30,t0:59,"t0.00":60,"t#,##0":61,"t#,##0.00":62,"t0%":67,"t0.00%":68,"t# ?/?":69,"t# ??/??":70};function q(e){let t=function(e){function t(e){let t=parseInt(e,10).toString(16);return t.length<2?"0"+t:t}let n=/^rgba?\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([0-9.]+)\s*)?\)/i.exec(e.trim());if(n)return"#"+t(255*(n[4]?parseFloat(n[4]):1)|0)+t(n[1])+t(n[2])+t(n[3]);return e}(e);return t.length<6&&(t=t.replace(/(\w)/g,(function(e,t){return t+t}))),t=t.substring(1).toUpperCase(),t.length<8&&(t="FF"+t),t}function B(e,t){let n="";return t&&(n+="<"+e+' style="'+function(e){let t="thin";return 2===e?t="medium":3===e&&(t="thick"),t}(t.size)+'">',t.color&&(n+='<color rgb="'+q(t.color)+'"/>'),n+="</"+e+">"),n}function V(e){let t=e.diagonal?e.diagonal.type:0;return`<border ${2&t?'diagonalUp="true"':""} ${1&t?'diagonalDown="true"':""}>\n ${B("left",e.left)}\n ${B("right",e.right)}\n ${B("top",e.top)}\n ${B("bottom",e.bottom)}\n ${B("diagonal",e.diagonal)}\n </border>`}const W={};function X(e){return e.sort((function(e,t){return e.index-t.index}))}function G(e,t){for(let n=0;n<e.length;++n){const o=e[n].split(":");let r=o[0];if(r===t){let e=o[1];return r=J(r),e=J(e),{rowSpan:e.row-r.row+1,colSpan:e.col-r.col+1}}}}function J(e){const t=/^([a-z]+)(\d+)$/i.exec(e);return{row:(n=t[2],parseInt(n,10)-1),col:function(e){let t=e.toUpperCase(),n=0;for(let e=0;e<t.length;++e)n=26*n+t.charCodeAt(e)-64;return n-1}(t[1])};var n}function U(e){return Math.round(9525*e)}function Q(e,t){const n=e._source,o=e.index,r=n.cells,s=e.cells;var l,i;if(r)for(let e=0;e<r.length;e++){const n=r[e]||W;let a=n.rowSpan||1,c=n.colSpan||1;const m=Z(s,n),h=R(o,m);if(1===a&&1===c){const e=G(t.mergedCells,h);e&&(c=e.colSpan,a=e.rowSpan)}if(Y(n,s,m,c),(a>1||c>1)&&(l=t.mergedCells,i=h+":"+R(o+a-1,m+c-1),l.indexOf(i)<0&&l.push(i)),a>1)for(let e=o+1;e<o+a;e++){let o=t.rowsByIndex[e];o||(o=t.rowsByIndex[e]={index:e,cells:[]},t.rowData.push(o)),Y(n,o.cells,m-1,c+1)}}}function Z(e,t){let n;return"number"==typeof t.index?(n=t.index,K(e,t,t.index)):n=function(e,t){let n=e.length;for(let o=0;o<e.length+1;o++)if(!e[o]){e[o]=t,n=o;break}return n}(e,t),n}function K(e,t,n){e[n]=t}function Y(e,t,n,o){for(let r=1;r<o;r++){K(t,{borderTop:e.borderTop,borderRight:e.borderRight,borderBottom:e.borderBottom,borderLeft:e.borderLeft},n+r)}}const ee=({ref:e,columns:t,generators:n})=>`\n<autoFilter ref="${e}">\n ${S(t,(e=>`\n <filterColumn colId="${e.index}">\n ${n[e.filter](e)}\n </filterColumn>\n `))}\n</autoFilter>`,te=({logic:e,criteria:t})=>`\n<customFilters ${"and"===e?'and="1"':""}>\n${S(t,(e=>{let t=se.customOperator(e);return`<customFilter ${t?`operator="${t}"`:""} val="${se.customValue(e)}"/>`}))}\n</customFilters>`,ne=({type:e})=>`<dynamicFilter type="${se.dynamicFilterType(e)}" />`,oe=({type:e,value:t})=>`<top10 percent="${/percent$/i.test(e)?1:0}"\n top="${/^top/i.test(e)?1:0}"\n val="${t}" />`,re=({blanks:e,values:t})=>`<filters ${e?'blank="1"':""}>\n ${S(t,(e=>`\n <filter val="${e}" />`))}\n </filters>`;function se(e){return ee({ref:e.ref,columns:e.columns,generators:{custom:te,dynamic:ne,top:oe,value:re}})}se.customOperator=function(e){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[e.operator.toLowerCase()]},se.customValue=function(e){function t(e){return e.replace(/([*?])/g,"~$1")}switch(e.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return t(e.value)+"*";case"endswith":case"doesnotendwith":return"*"+t(e.value);case"contains":case"doesnotcontain":return"*"+t(e.value)+"*";default:return e.value}},se.dynamicFilterType=function(e){return{quarter1:"Q1",quarter2:"Q2",quarter3:"Q3",quarter4:"Q4",january:"M1",february:"M2",march:"M3",april:"M4",may:"M5",june:"M6",july:"M7",august:"M8",september:"M9",october:"M10",november:"M11",december:"M12"}[e.toLowerCase()]||e},e.E=class{constructor(e){e.columns=this._trimColumns(e.columns||[]),this.allColumns=a(this._leafColumns(e.columns||[]),this._prepareColumn),this.columns=this._visibleColumns(this.allColumns),this.options=e,this.data=e.data||[],this.aggregates=e.aggregates||{},this.groups=[].concat(e.groups||[]),this.hasGroups=this.groups.length>0,this.hierarchy=e.hierarchy,this.hasGroupHeaderColumn=this.columns.some((e=>e.groupHeaderColumnTemplate)),this.collapsible=this.options.collapsible}workbook(){return{sheets:[{columns:this._columns(),rows:this.hierarchy?this._hierarchyRows():this._rows(),freezePane:this._freezePane(),filter:this._filter()}]}}_trimColumns(e){return e.filter((e=>{let t=Boolean(e.field);return!t&&e.columns&&(t=this._trimColumns(e.columns).length>0),t}))}_leafColumns(e){let t=[];for(let n=0;n<e.length;n++)e[n].columns?t=t.concat(this._leafColumns(e[n].columns)):t.push(e[n]);return t}_prepareColumn(e){if(!e.field)return null;let t=function(t){return i(e.field)(t)},n=null;return e.values&&(n={},e.values.forEach((function(e){n[e.value]=e.text})),t=function(t){return n[i(e.field)(t)]}),Object.assign({},e,{value:t,values:n,groupHeaderTemplate:e.groupHeaderTemplate?o.compile(e.groupHeaderTemplate):c,groupHeaderColumnTemplate:e.groupHeaderColumnTemplate?o.compile(e.groupHeaderColumnTemplate):null,groupFooterTemplate:e.groupFooterTemplate?o.compile(e.groupFooterTemplate):null,footerTemplate:e.footerTemplate?o.compile(e.footerTemplate):null})}_filter(){if(!this.options.filterable)return null;const e=this._depth();return{from:e,to:e+this.columns.length-1}}_createPaddingCells(e){return m(e,(()=>Object.assign({background:"#dfdfdf",color:"#333"},this.options.paddingCellOptions)))}_dataRow(e,t,n){let o=this._createPaddingCells(t);if(this.hasGroups&&n&&e.items){o=o.concat(this._groupHeaderCells(e,t,n));const r=this._dataRows(e.items,t+1);return r.unshift({type:"group-header",cells:o,level:this.collapsible?t:null}),r.concat(this._footer(e,t))}const r=[];for(let t=0;t<this.columns.length;t++)r[t]=this._cell(e,this.columns[t]);return this.hierarchy&&(r[0].colSpan=n-t+1),[{type:"data",cells:o.concat(r),level:this.collapsible?t:null}]}_groupHeaderCells(e,t,n){const o=[],r=this.allColumns.filter((function(t){return t.field===e.field}))[0]||{},s=r&&r.title?r.title:e.field,l=r?r.groupHeaderTemplate||r.groupHeaderColumnTemplate:null,i=Object.assign({title:s,field:e.field,value:r&&r.values?r.values[e.value]:e.value,aggregates:e.aggregates,items:e.items},e.aggregates[e.field]),a=l?l(i):`${s}: ${e.value}`;return o.push(Object.assign({value:a,background:"#dfdfdf",color:"#333",colSpan:(this.hasGroupHeaderColumn?1:this.columns.length)+n-t},r.groupHeaderCellOptions)),this.hasGroupHeaderColumn&&this.columns.forEach((function(t,n){n>0&&o.push(Object.assign({background:"#dfdfdf",color:"#333",value:t.groupHeaderColumnTemplate?t.groupHeaderColumnTemplate(Object.assign({group:i},i,e.aggregates[t.field])):void 0},t.groupHeaderCellOptions))})),o}_dataRows(e,t){const n=this._depth(),o=[];for(let r=0;r<e.length;r++)o.push.apply(o,this._dataRow(e[r],t,n));return o}_hierarchyRows(){const e=this._depth(),t=this.data,n=this.hierarchy.itemLevel,o=this.hierarchy.itemId||h,r=this._hasFooterTemplate(),s=[],l=[];let i,a=0;r||(this.collapsible=!1);for(let c=0;c<t.length;c++){const m=t[c],h=n(m,c);r&&(h>a?l.push({id:i,level:a}):h<a&&s.push.apply(s,this._hierarchyFooterRows(l,h,e)),a=h,i=o(m,c)),s.push.apply(s,this._dataRow(m,h+1,e))}if(r){s.push.apply(s,this._hierarchyFooterRows(l,0,e));const n=t.length?this.aggregates[t[0].parentId]:{};s.push(this._hierarchyFooter(n,0,e))}return this._prependHeaderRows(s),s}_hierarchyFooterRows(e,t,n){const o=[];for(;e.length&&e[e.length-1].level>=t;){const t=e.pop();o.push(this._hierarchyFooter(this.aggregates[t.id],t.level+1,n))}return o}_hasFooterTemplate(){const e=this.columns;for(let t=0;t<e.length;t++)if(e[t].footerTemplate)return!0}_hierarchyFooter(e,t,n){const o=this.columns.map((function(o,r){const s=r?1:n-t+1;if(o.footerTemplate){const t=(e||{})[o.field];return Object.assign({background:"#dfdfdf",color:"#333",colSpan:s,value:o.footerTemplate(Object.assign({aggregates:e},t))},o.footerCellOptions)}return Object.assign({background:"#dfdfdf",color:"#333",colSpan:s},o.footerCellOptions)}));return{type:"footer",cells:this._createPaddingCells(t).concat(o),level:this.collapsible?t:null}}_footer(e,t){const n=[],o=this.columns.some((e=>e.groupFooterTemplate));let r,s;o&&(s={group:{items:e.items,field:e.field,value:e.value}},r={},Object.keys(e.aggregates).forEach((t=>{r[t]=Object.assign({},e.aggregates[t],s)})));const l=this.columns.map((t=>{if(t.groupFooterTemplate){let n=Object.assign({},r,e.aggregates[t.field],s);return Object.assign({background:"#dfdfdf",color:"#333",value:t.groupFooterTemplate(n)},t.groupFooterCellOptions)}return Object.assign({background:"#dfdfdf",color:"#333"},t.groupFooterCellOptions)}));return o&&n.push({type:"group-footer",cells:this._createPaddingCells(this.groups.length).concat(l),level:this.collapsible?t:null}),n}_isColumnVisible(e){return this._visibleColumns([e]).length>0&&(e.field||e.columns)}_visibleColumns(e){return e.filter((e=>{let t=e.exportable;"object"==typeof t&&(t=e.exportable.excel);const n=!e.hidden&&!1!==t,o=e.hidden&&!0===t;let r=n||o;return r&&e.columns&&(r=this._visibleColumns(e.columns).length>0),r}))}_headerRow(e,t){const n=e.cells.map((function(t){return Object.assign(t,{colSpan:t.colSpan>1?t.colSpan:1,rowSpan:e.rowSpan>1&&!t.colSpan?e.rowSpan:1})}));return this.hierarchy&&n[0].firstCell&&(n[0].colSpan+=this._depth()),{type:"header",cells:m(t.length,(()=>Object.assign({background:"#7a7a7a",color:"#fff"},this.options.headerPaddingCellOptions))).concat(n)}}_prependHeaderRows(e){const t=this.groups,n=[{rowSpan:1,cells:[],index:0}];this._prepareHeaderRows(n,this.options.columns);for(let o=n.length-1;o>=0;o--)e.unshift(this._headerRow(n[o],t))}_prepareHeaderRows(e,t,n,o){const r=o||e[e.length-1];let s=e[r.index+1],l=0;for(let o=0;o<t.length;o++){const i=t[o];if(this._isColumnVisible(i)){const t=Object.assign({background:"#7a7a7a",color:"#fff",value:i.title||i.field,colSpan:0,firstCell:0===o&&(!n||n.firstCell)},i.headerCellOptions);r.cells.push(t),i.columns&&i.columns.length&&(s||(s={rowSpan:0,cells:[],index:e.length},e.push(s)),t.colSpan=this._trimColumns(this._visibleColumns(i.columns)).length,this._prepareHeaderRows(e,i.columns,t,s),l+=t.colSpan-1,r.rowSpan=e.length-r.index)}}n&&(n.colSpan+=l)}_rows(){const e=this._dataRows(this.data,0);if(this.columns.length){this._prependHeaderRows(e);let t=!1;const n=this.columns.map((e=>e.footerTemplate?(t=!0,Object.assign({background:"#dfdfdf",color:"#333",value:e.footerTemplate(Object.assign({},this.aggregates,this.aggregates[e.field]))},e.footerCellOptions)):Object.assign({background:"#dfdfdf",color:"#333"},e.footerCellOptions)));t&&e.push({type:"footer",cells:this._createPaddingCells(this.groups.length).concat(n)})}return e}_headerDepth(e){let t=0;for(let n=0;n<e.length;n++)if(e[n].columns){const o=this._headerDepth(e[n].columns);o>t&&(t=o)}return 1+t}_freezePane(){const e=this._visibleColumns(this.options.columns||[]),t=this._visibleColumns(this._trimColumns(this._leafColumns(e.filter((function(e){return e.locked}))))).length;return{rowSplit:this._headerDepth(e),colSplit:t?t+this.groups.length:0}}_cell(e,t){return Object.assign({value:t.value(e)},t.cellOptions)}_depth(){let e=0;return e=this.hierarchy?this.hierarchy.depth:this.groups.length,e}_columns(){return m(this._depth(),(()=>({width:20}))).concat(this.columns.map((function(e){return{width:parseInt(e.width,10),autoWidth:!e.width}})))}},e.I=p,e.T=o,e.W=class{constructor(e){this.options=e||{},this._strings={indexes:{},count:0,uniqueCount:0},this._styles=[],this._borders=[],this._images=this.options.images,this._imgId=0,this._sheets=a(this.options.sheets||[],((e,t)=>(e.defaults=this.options,e.sheetIndex=t+1,new E(e,this._strings,this._styles,this._borders))))}imageFilename(e){const t=++this._imgId;switch(e){case"image/jpg":case"image/jpeg":return`image${t}.jpg`;case"image/png":return`image${t}.png`;case"image/gif":return`image${t}.gif`;default:return`image${t}.bin`}}toZIP(){const e=new t.J,n=e.folder("docProps");n.file("core.xml",(({creator:e,lastModifiedBy:t,created:n,modified:o})=>`${I}\n <cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties"\n xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/"\n xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">\n <dc:creator>${T(e)}</dc:creator>\n <cp:lastModifiedBy>${T(t)}</cp:lastModifiedBy>\n <dcterms:created xsi:type="dcterms:W3CDTF">${T(n)}</dcterms:created>\n <dcterms:modified xsi:type="dcterms:W3CDTF">${T(o)}</dcterms:modified>\n</cp:coreProperties>`)({creator:this.options.creator||"Kendo UI",lastModifiedBy:this.options.creator||"Kendo UI",created:this.options.date||(new Date).toJSON(),modified:this.options.date||(new Date).toJSON()}));const o=this._sheets.length;n.file("app.xml",(({sheets:e})=>`${I}\n<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">\n <Application>Microsoft Excel</Application>\n <DocSecurity>0</DocSecurity>\n <ScaleCrop>false</ScaleCrop>\n <HeadingPairs>\n <vt:vector size="2" baseType="variant">\n <vt:variant>\n <vt:lpstr>Worksheets</vt:lpstr>\n </vt:variant>\n <vt:variant>\n <vt:i4>${e.length}</vt:i4>\n </vt:variant>\n </vt:vector>\n </HeadingPairs>\n <TitlesOfParts>\n <vt:vector size="${e.length}" baseType="lpstr">${S(e,((e,t)=>e.options.title?`<vt:lpstr>${T(e.options.title)}</vt:lpstr>`:`<vt:lpstr>Sheet${t+1}</vt:lpstr>`))}</vt:vector>\n </TitlesOfParts>\n <LinksUpToDate>false</LinksUpToDate>\n <SharedDoc>false</SharedDoc>\n <HyperlinksChanged>false</HyperlinksChanged>\n <AppVersion>14.0300</AppVersion>\n</Properties>`)({sheets:this._sheets}));e.folder("_rels").file(".rels",O);const r=e.folder("xl");if(r.folder("_rels").file("workbook.xml.rels",(({count:e})=>`${I}\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n ${k(e,(e=>`\n <Relationship Id="rId${e+1}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet${e+1}.xml" />`))}\n <Relationship Id="rId${e+1}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml" />\n <Relationship Id="rId${e+2}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml" />\n</Relationships>`)({count:o})),this._images){const e=r.folder("media");Object.keys(this._images).forEach((t=>{const n=this._images[t],o=this.imageFilename(n.type);e.file(o,n.data),n.target=`../media/${o}`}))}const s={};r.file("workbook.xml",(({sheets:e,filterNames:t,userNames:n})=>`${I}\n<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships">\n <fileVersion appName="xl" lastEdited="5" lowestEdited="5" rupBuild="9303" />\n <workbookPr defaultThemeVersion="124226" />\n <bookViews>\n <workbookView xWindow="240" yWindow="45" windowWidth="18195" windowHeight="7995" />\n </bookViews>\n <sheets>\n ${S(e,(({options:e},t)=>{const n=e.name||e.title||`Sheet${t+1}`,o=e.state||"visible";return`<sheet name="${T(n)}" state="${o}" sheetId="${t+1}" r:id="rId${t+1}" />`}))}\n </sheets>\n ${t.length||n.length?`\n <definedNames>\n ${S(t,(e=>{return`\n <definedName name="_xlnm._FilterDatabase" hidden="1" localSheetId="${e.localSheetId}">${T((t=e.name,/^\'/.test(t)||/^[a-z_][a-z0-9_]*$/i.test(t)?t:"'"+t.replace(/\x27/g,"\\'")+"'"))}!${T(e.from)}:${T(e.to)}</definedName>`;var t}))}\n ${S(n,(e=>`\n <definedName name="${e.name}" hidden="${e.hidden?1:0}" ${null!=e.localSheetId?`localSheetId="${e.localSheetId}"`:""}>${T(e.value)}</definedName>`))}\n </definedNames>`:""}\n <calcPr fullCalcOnLoad="1" calcId="145621" />\n</workbook>`)({sheets:this._sheets,filterNames:a(this._sheets,(function(e,t){const n=e.options,o=n.name||n.title||"Sheet"+(t+1);s[o.toLowerCase()]=t;const r=n.filter;if(r){if(r.ref){let e=r.ref.split(":"),n=J(e[0]),s=J(e[1]);return{localSheetId:t,name:o,from:j(n.row,n.col),to:j(s.row,s.col)}}if(void 0!==r.from&&void 0!==r.to)return{localSheetId:t,name:o,from:j(M(n),r.from),to:j(M(n),r.to)}}})),userNames:a(this.options.names||[],(function(e){return{name:e.localName,localSheetId:e.sheet?s[e.sheet.toLowerCase()]:null,value:e.value,hidden:e.hidden}}))}));const l=r.folder("worksheets"),i=r.folder("drawings"),c=i.folder("_rels"),m=l.folder("_rels"),h=[],d=[];let p=!1;for(let e=0;e<o;e++){const t=this._sheets[e],n=`sheet${e+1}.xml`,o=t.toXML(e),s=t.relsToXML(),a=t.commentsXML(),u=t.legacyDrawing(),f=t.drawingsXML(this._images);if(t._hasDisabledCells&&(p=!0),s&&m.file(n+".rels",s),a){let e=`comments${t.options.sheetIndex}.xml`;r.file(e,a),h.push(e)}if(u&&i.file(`vmlDrawing${t.options.sheetIndex}.vml`,u),f){let e=`drawing${t.options.sheetIndex}.xml`;i.file(e,f.main),c.file(`${e}.rels`,f.rels),d.push(e)}l.file(n,o)}const u=a(this._borders,C),f=a(this._styles,C),g=function(e){return e.underline||e.bold||e.italic||e.color||e.fontFamily||e.fontSize},x=a(f,(function(e){if(e.fontSize&&(e.fontSize=function(e){let t,n=Number(e);return n&&(t=3*n/4),t}(e.fontSize)),e.color&&(e.color=q(e.color)),g(e))return e})),$=a(f,(function(e){if(e.format&&void 0===z[e.format])return e})),y=a(f,(function(e){if(e.background)return e.background=q(e.background),e}));return r.file("styles.xml",(({formats:e,fonts:t,fills:n,borders:o,styles:r})=>`${I}\n<styleSheet\n xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"\n xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"\n mc:Ignorable="x14ac"\n xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">\n <numFmts count="${e.length}">\n ${S(e,((e,t)=>`\n <numFmt formatCode="${T(e.format)}" numFmtId="${165+t}" />`))}\n </numFmts>\n <fonts count="${t.length+1}" x14ac:knownFonts="1">\n <font>\n <sz val="11" />\n <color theme="1" />\n <name val="Calibri" />\n <family val="2" />\n <scheme val="minor" />\n </font>\n ${S(t,(e=>`\n <font>\n ${e.bold?"<b/>":""}\n ${e.italic?"<i/>":""}\n ${e.underline?"<u/>":""}\n <sz val="${e.fontSize||11}" />\n ${e.color?`<color rgb="${T(e.color)}" />`:'<color theme="1" />'}\n ${e.fontFamily?`\n <name val="${T(e.fontFamily)}" />\n <family val="2" />\n `:'\n <name val="Calibri" />\n <family val="2" />\n <scheme val="minor" />\n '}\n </font>`))}\n </fonts>\n <fills count="${n.length+2}">\n <fill><patternFill patternType="none"/></fill>\n <fill><patternFill patternType="gray125"/></fill>\n ${S(n,(e=>"\n "+(e.background?`\n <fill>\n <patternFill patternType="solid">\n <fgColor rgb="${T(e.background)}"/>\n </patternFill>\n </fill>\n `:"")))}\n </fills>\n <borders count="${o.length+1}">\n <border><left/><right/><top/><bottom/><diagonal/></border>\n ${S(o,V)}\n </borders>\n <cellStyleXfs count="1">\n <xf borderId="0" fillId="0" fontId="0" />\n </cellStyleXfs>\n <cellXfs count="${r.length+1}">\n <xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" />\n ${S(r,(e=>`\n <xf xfId="0"\n ${e.fontId?`fontId="${e.fontId}" applyFont="1"`:""}\n ${e.fillId?`fillId="${e.fillId}" applyFill="1"`:""}\n ${e.numFmtId?`numFmtId="${e.numFmtId}" applyNumberFormat="1"`:""}\n ${e.textAlign||e.verticalAlign||e.wrap?'applyAlignment="1"':""}\n ${e.borderId?`borderId="${e.borderId}" applyBorder="1"`:""}\n ${null!=e.disabled?'applyProtection="1"':""}>\n ${e.textAlign||e.verticalAlign||e.wrap?`\n <alignment\n ${e.textAlign?`horizontal="${T(e.textAlign)}"`:""}\n ${e.verticalAlign?`vertical="${T(e.verticalAlign)}"`:""}\n ${e.indent?`indent="${T(e.indent)}"`:""}\n ${e.wrap?'wrapText="1"':""} />\n `:""}\n ${null!=e.disabled?`\n <protection locked="${e.disabled?1:0}" />\n `:""}\n </xf>\n `))}\n </cellXfs>\n <cellStyles count="1">\n <cellStyle name="Normal" xfId="0" builtinId="0"/>\n </cellStyles>\n <dxfs count="0" />\n <tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleMedium9" />\n</styleSheet>`)({fonts:x,fills:y,formats:$,borders:u,styles:a(f,(function(e){const t={};return g(e)&&(t.fontId=_(e,x)+1),e.background&&(t.fillId=_(e,y)+2),t.textAlign=e.textAlign,t.indent=e.indent,t.verticalAlign=e.verticalAlign,t.wrap=e.wrap,t.borderId=e.borderId,e.format&&(void 0!==z[e.format]?t.numFmtId=z[e.format]:t.numFmtId=165+_(e,$)),p&&(t.disabled=!!e.disabled),t}))})),r.file("sharedStrings.xml",(({count:e,uniqueCount:t,indexes:n})=>`${I}\n<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="${e}" uniqueCount="${t}">\n ${S(Object.keys(n),(e=>`\n <si><t xml:space="preserve">${T(e.substring(1))}</t></si>`))}\n</sst>`)(this._strings)),e.file("[Content_Types].xml",(({sheetCount:e,commentFiles:t,drawingFiles:n})=>`${I}\n<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">\n <Default Extension="png" ContentType="image/png"/>\n <Default Extension="gif" ContentType="image/gif"/>\n <Default Extension="jpg" ContentType="image/jpeg"/>\n <Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml" />\n <Default Extension="xml" ContentType="application/xml" />\n <Default Extension="vml" ContentType="application/vnd.openxmlformats-officedocument.vmlDrawing"/>\n <Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml" />\n <Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/>\n <Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/>\n ${k(e,(e=>`<Override PartName="/xl/worksheets/sheet${e+1}.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />`))}\n ${S(t,(e=>`<Override PartName="/xl/${e}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"/>`))}\n ${S(n,(e=>`<Override PartName="/xl/drawings/${e}" ContentType="application/vnd.openxmlformats-officedocument.drawing+xml"/>`))}\n <Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml" />\n <Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml" />\n</Types>`)({sheetCount:o,commentFiles:h,drawingFiles:d})),e}toDataURL(){const e=this.toZIP();return e.generateAsync?e.generateAsync(y).then(v):v(e.generate(y))}toBlob(){const e=this.toZIP();return e.generateAsync?e.generateAsync(b):new Blob([e.generate(w)],{type:x})}},e.__meta__={id:"ooxml.cmn.chunk",name:"OoxmlCmnChunk",category:"web",description:"A reusable outputed chunk of code",depends:["jszip-esm.cmn.chunk"],hidden:!0,chunk:!0,mixin:!0},e.a=E})); //# sourceMappingURL=kendo.ooxml.cmn.chunk.min.js.map