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) 42.1 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"],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){var n={compile:function(e){return e}},r=function(){};r.register=function(e){n=e},r.compile=function(e){return n.compile(e)};var o=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,i={},s="undefined";function l(e){if(i[e])return i[e];var t=[];return e.replace(o,(function(e,n,r,o){t.push(typeof n!==s?n:r||o)})),i[e]=function(e){for(var n=e,r=0;r<t.length&&n;r++)n=n[t[r]];return n},i[e]}function a(e,t){return e.reduce((function(e,n,r){var o=t(n,r);return null!=o&&e.push(o),e}),[])}function c(e){return e.title+": "+e.value}function u(e,t){for(var n=[],r=0;r<e;r++)n.push(t(r));return n}function p(e){return e.id}i[s]=function(e){return e};var m=function(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((function(e){return e.groupHeaderColumnTemplate})),this.collapsible=this.options.collapsible};m.prototype.workbook=function(){var e={sheets:[{columns:this._columns(),rows:this.hierarchy?this._hierarchyRows():this._rows(),freezePane:this._freezePane(),filter:this._filter()}]};return e},m.prototype._trimColumns=function(e){var t=this;return e.filter((function(e){var n=Boolean(e.field);return!n&&e.columns&&(n=t._trimColumns(e.columns).length>0),n}))},m.prototype._leafColumns=function(e){for(var t=[],n=0;n<e.length;n++)e[n].columns?t=t.concat(this._leafColumns(e[n].columns)):t.push(e[n]);return t},m.prototype._prepareColumn=function(e){if(!e.field)return null;var t=function(t){return l(e.field)(t)},n=null;return e.values&&(n={},e.values.forEach((function(e){n[e.value]=e.text})),t=function(t){return n[l(e.field)(t)]}),Object.assign({},e,{value:t,values:n,groupHeaderTemplate:e.groupHeaderTemplate?r.compile(e.groupHeaderTemplate):c,groupHeaderColumnTemplate:e.groupHeaderColumnTemplate?r.compile(e.groupHeaderColumnTemplate):null,groupFooterTemplate:e.groupFooterTemplate?r.compile(e.groupFooterTemplate):null,footerTemplate:e.footerTemplate?r.compile(e.footerTemplate):null})},m.prototype._filter=function(){if(!this.options.filterable)return null;var e=this._depth();return{from:e,to:e+this.columns.length-1}},m.prototype._createPaddingCells=function(e){var t=this;return u(e,(function(){return Object.assign({background:"#dfdfdf",color:"#333"},t.options.paddingCellOptions)}))},m.prototype._dataRow=function(e,t,n){var r=this._createPaddingCells(t);if(this.hasGroups&&n&&e.items){r=r.concat(this._groupHeaderCells(e,t,n));var o=this._dataRows(e.items,t+1);return o.unshift({type:"group-header",cells:r,level:this.collapsible?t:null}),o.concat(this._footer(e,t))}for(var i=[],s=0;s<this.columns.length;s++)i[s]=this._cell(e,this.columns[s]);return this.hierarchy&&(i[0].colSpan=n-t+1),[{type:"data",cells:r.concat(i),level:this.collapsible?t:null}]},m.prototype._groupHeaderCells=function(e,t,n){var r=[],o=this.allColumns.filter((function(t){return t.field===e.field}))[0]||{},i=o&&o.title?o.title:e.field,s=o?o.groupHeaderTemplate||o.groupHeaderColumnTemplate:null,l=Object.assign({title:i,field:e.field,value:o&&o.values?o.values[e.value]:e.value,aggregates:e.aggregates,items:e.items},e.aggregates[e.field]),a=s?s(l):i+": "+e.value;return r.push(Object.assign({value:a,background:"#dfdfdf",color:"#333",colSpan:(this.hasGroupHeaderColumn?1:this.columns.length)+n-t},o.groupHeaderCellOptions)),this.hasGroupHeaderColumn&&this.columns.forEach((function(t,n){n>0&&r.push(Object.assign({background:"#dfdfdf",color:"#333",value:t.groupHeaderColumnTemplate?t.groupHeaderColumnTemplate(Object.assign({group:l},l,e.aggregates[t.field])):void 0},t.groupHeaderCellOptions))})),r},m.prototype._dataRows=function(e,t){for(var n=this._depth(),r=[],o=0;o<e.length;o++)r.push.apply(r,this._dataRow(e[o],t,n));return r},m.prototype._hierarchyRows=function(){var e,t=this._depth(),n=this.data,r=this.hierarchy.itemLevel,o=this.hierarchy.itemId||p,i=this._hasFooterTemplate(),s=[],l=[],a=0;i||(this.collapsible=!1);for(var c=0;c<n.length;c++){var u=n[c],m=r(u,c);i&&(m>a?l.push({id:e,level:a}):m<a&&s.push.apply(s,this._hierarchyFooterRows(l,m,t)),a=m,e=o(u,c)),s.push.apply(s,this._dataRow(u,m+1,t))}if(i){s.push.apply(s,this._hierarchyFooterRows(l,0,t));var d=n.length?this.aggregates[n[0].parentId]:{};s.push(this._hierarchyFooter(d,0,t))}return this._prependHeaderRows(s),s},m.prototype._hierarchyFooterRows=function(e,t,n){for(var r=[];e.length&&e[e.length-1].level>=t;){var o=e.pop();r.push(this._hierarchyFooter(this.aggregates[o.id],o.level+1,n))}return r},m.prototype._hasFooterTemplate=function(){for(var e=this.columns,t=0;t<e.length;t++)if(e[t].footerTemplate)return!0},m.prototype._hierarchyFooter=function(e,t,n){var r=this.columns.map((function(r,o){var i=o?1:n-t+1;if(r.footerTemplate){var s=(e||{})[r.field];return Object.assign({background:"#dfdfdf",color:"#333",colSpan:i,value:r.footerTemplate(Object.assign({aggregates:e},s))},r.footerCellOptions)}return Object.assign({background:"#dfdfdf",color:"#333",colSpan:i},r.footerCellOptions)}));return{type:"footer",cells:this._createPaddingCells(t).concat(r),level:this.collapsible?t:null}},m.prototype._footer=function(e,t){var n,r,o=[],i=this.columns.some((function(e){return e.groupFooterTemplate}));i&&(r={group:{items:e.items,field:e.field,value:e.value}},n={},Object.keys(e.aggregates).forEach((function(t){n[t]=Object.assign({},e.aggregates[t],r)})));var s=this.columns.map((function(t){if(t.groupFooterTemplate){var o=Object.assign({},n,e.aggregates[t.field],r);return Object.assign({background:"#dfdfdf",color:"#333",value:t.groupFooterTemplate(o)},t.groupFooterCellOptions)}return Object.assign({background:"#dfdfdf",color:"#333"},t.groupFooterCellOptions)}));return i&&o.push({type:"group-footer",cells:this._createPaddingCells(this.groups.length).concat(s),level:this.collapsible?t:null}),o},m.prototype._isColumnVisible=function(e){return this._visibleColumns([e]).length>0&&(e.field||e.columns)},m.prototype._visibleColumns=function(e){var t=this;return e.filter((function(e){var n=e.exportable;"object"==typeof n&&(n=e.exportable.excel);var r=!e.hidden&&!1!==n,o=e.hidden&&!0===n,i=r||o;return i&&e.columns&&(i=t._visibleColumns(e.columns).length>0),i}))},m.prototype._headerRow=function(e,t){var n=this,r=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&&r[0].firstCell&&(r[0].colSpan+=this._depth()),{type:"header",cells:u(t.length,(function(){return Object.assign({background:"#7a7a7a",color:"#fff"},n.options.headerPaddingCellOptions)})).concat(r)}},m.prototype._prependHeaderRows=function(e){var t=this.groups,n=[{rowSpan:1,cells:[],index:0}];this._prepareHeaderRows(n,this.options.columns);for(var r=n.length-1;r>=0;r--)e.unshift(this._headerRow(n[r],t))},m.prototype._prepareHeaderRows=function(e,t,n,r){for(var o=this,i=r||e[e.length-1],s=e[i.index+1],l=0,a=0;a<t.length;a++){var c=t[a];if(o._isColumnVisible(c)){var u=Object.assign({background:"#7a7a7a",color:"#fff",value:c.title||c.field,colSpan:0,firstCell:0===a&&(!n||n.firstCell)},c.headerCellOptions);i.cells.push(u),c.columns&&c.columns.length&&(s||(s={rowSpan:0,cells:[],index:e.length},e.push(s)),u.colSpan=o._trimColumns(o._visibleColumns(c.columns)).length,o._prepareHeaderRows(e,c.columns,u,s),l+=u.colSpan-1,i.rowSpan=e.length-i.index)}}n&&(n.colSpan+=l)},m.prototype._rows=function(){var e=this,t=this._dataRows(this.data,0);if(this.columns.length){this._prependHeaderRows(t);var n=!1,r=this.columns.map((function(t){return t.footerTemplate?(n=!0,Object.assign({background:"#dfdfdf",color:"#333",value:t.footerTemplate(Object.assign({},e.aggregates,e.aggregates[t.field]))},t.footerCellOptions)):Object.assign({background:"#dfdfdf",color:"#333"},t.footerCellOptions)}));n&&t.push({type:"footer",cells:this._createPaddingCells(this.groups.length).concat(r)})}return t},m.prototype._headerDepth=function(e){for(var t=0,n=0;n<e.length;n++)if(e[n].columns){var r=this._headerDepth(e[n].columns);r>t&&(t=r)}return 1+t},m.prototype._freezePane=function(){var 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}},m.prototype._cell=function(e,t){return Object.assign({value:t.value(e)},t.cellOptions)},m.prototype._depth=function(){return this.hierarchy?this.hierarchy.depth:this.groups.length},m.prototype._columns=function(){return u(this._depth(),(function(){return{width:20}})).concat(this.columns.map((function(e){return{width:parseInt(e.width,10),autoWidth:!e.width}})))};var d={toString:function(e){return e}},h=function(){};function f(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}h.register=function(e){d=e},h.toString=function(e,t){return d.toString(e,t)};var g=f(1900,0,-1);function v(e){var t,n,r,o,i=(t=e.getHours(),n=e.getMinutes(),r=e.getSeconds(),o=e.getMilliseconds(),(t+(n+(r+o/1e3)/60)/60)/24),s=function(e,t,n){return f(e,t,n)-g}(e.getFullYear(),e.getMonth(),e.getDate());return s<0?s-1+i:s+i}var y="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",x="data:"+y+";base64,",b={compression:"DEFLATE",type:"base64"},w={compression:"DEFLATE",type:"blob"},_={compression:"DEFLATE",type:"arraybuffer"};function C(e){return x+e}function T(e,t){return t.indexOf(e)}var k=JSON.parse.bind(JSON);function S(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;")}function I(e,t){for(var n="",r=0;r<e;++r)n+=t(r);return n}function O(e,t){var n="";if(null!=e)if(Array.isArray(e))for(var r=0;r<e.length;++r)n+=t(e[r],r);else"object"==typeof e&&Object.keys(e).forEach((function(r,o){n+=t(e[r],r,o)}));return n}var F='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r',D=F+'\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>',P=function(e){var t=e.frozenColumns,n=e.frozenRows,r=e.columns,o=e.defaults,i=e.data,s=e.index,l=e.mergeCells,a=e.autoFilter,c=e.filter,u=e.showGridLines,p=e.hyperlinks,m=e.validations,d=e.defaultCellStyleId,h=e.rtl,f=e.legacyDrawing,g=e.drawing,v=e.lastRow,y=e.lastCol,x=e.hasDisabledCells;return F+'\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 '+(v&&y?'<dimension ref="A1:'+M(v-1,y-1)+'" />':"")+"\n\n <sheetViews>\n <sheetView "+(h?'rightToLeft="1"':"")+" "+(0===s?'tabSelected="1"':"")+' workbookViewId="0" '+(!1===u?'showGridLines="0"':"")+">\n "+(n||t?'\n <pane state="frozen"\n '+(t?'xSplit="'+t+'"':"")+"\n "+(n?'ySplit="'+n+'"':"")+'\n topLeftCell="'+(String.fromCharCode(65+(t||0))+((n||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="'+L(o.columnWidth)+'"':"")+" />\n\n "+(null!=d||r&&r.length>0?"\n <cols>\n "+(r&&r.length?"":'\n <col min="1" max="16384" style="'+d+'"\n '+(o.columnWidth?'width="'+L(o.columnWidth)+'"':"")+" /> ")+"\n "+O(r,(function(e,t){var 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="'+L(e.width)+'"')+" />"}))+"\n </cols>":"")+"\n\n <sheetData>\n "+O(i,(function(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="'+(.75*e.height+'" customHeight="1"'):"")+">\n "+O(e.data,(function(e){return'\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>"+S(e)+"</f>";return'<f t="array" ref="'+e.ref+'">'+S(e.src)+"</f>"}(e.formula):"")+"\n "+(null!=e.value?"<v>"+S(e.value)+"</v>":"")+"\n </c>"}))+"\n </row>\n "}))+"\n </sheetData>\n\n "+(x?'<sheetProtection sheet="1" objects="1" scenarios="1"/>':"")+"\n\n "+(a?'<autoFilter ref="'+a.from+":"+a.to+'"/>':c?le(c):"")+"\n\n "+(l.length?'\n <mergeCells count="'+l.length+'">\n '+O(l,(function(e){return'<mergeCell ref="'+e+'"/>'}))+"\n </mergeCells>":"")+"\n\n "+(m.length?"\n <dataValidations>\n "+O(m,(function(e){return'\n <dataValidation sqref="'+e.sqref.join(" ")+'"\n showErrorMessage="'+e.showErrorMessage+'"\n type="'+S(e.type)+'"\n '+("list"!==e.type?'operator="'+S(e.operator)+'"':"")+'\n allowBlank="'+e.allowBlank+'"\n showDropDown="'+e.showDropDown+'"\n '+(e.error?'error="'+S(e.error)+'"':"")+"\n "+(e.errorTitle?'errorTitle="'+S(e.errorTitle)+'"':"")+">\n "+(e.formula1?"<formula1>"+S(e.formula1)+"</formula1>":"")+"\n "+(e.formula2?"<formula2>"+S(e.formula2)+"</formula2>":"")+"\n </dataValidation>"}))+"\n </dataValidations>":"")+"\n\n "+(p.length?"\n <hyperlinks>\n "+O(p,(function(e){return'\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 '+(g?'<drawing r:id="'+g+'"/>':"")+"\n "+(f?'<legacyDrawing r:id="'+f+'"/>':"")+"\n</worksheet>"},R=function(e){return F+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+O(e,(function(e){return'\n <Relationship Id="'+e.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="'+e.target+'"/>'}))+"\n</Relationships>"};function j(e){var t=Math.floor(e/26)-1;return(t>=0?j(t):"")+String.fromCharCode(65+e%26)}function M(e,t){return j(t)+(e+1)}function A(e,t){return"$"+j(t)+"$"+(e+1)}function E(e){return(e.frozenRows||(e.freezePane||{}).rowSplit||1)-1}function L(e){return e/7-Math.floor(128/7)/256}var H=function(e,t,n,r){this.options=e,this._strings=t,this._styles=n,this._borders=r,this._validations={},this._comments=[],this._drawings=e.drawings||[],this._hyperlinks=(this.options.hyperlinks||[]).map((function(e,t){return Object.assign({},e,{rId:"link"+t})}))};function N(e){var t=e.length;return e.forEach((function(e){e.index&&e.index>=t&&(t=e.index+1)})),t}H.prototype.relsToXML=function(){var e=this._hyperlinks,t=this._comments,n=this._drawings;if(e.length||t.length||n.length)return function(e){var t=e.hyperlinks,n=e.comments,r=e.sheetIndex,o=e.drawings;return F+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+O(t,(function(e){return'\n <Relationship Id="'+e.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="'+S(e.target)+'" TargetMode="External" />'}))+"\n "+(n.length?'\n <Relationship Id="comment'+r+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments" Target="../comments'+r+'.xml"/>\n <Relationship Id="vml'+r+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing" Target="../drawings/vmlDrawing'+r+'.vml"/>':"")+"\n "+(o.length?'\n <Relationship Id="drw'+r+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing'+r+'.xml"/>':"")+"\n</Relationships>"}({hyperlinks:e,comments:t,sheetIndex:this.options.sheetIndex,drawings:n})},H.prototype.toXML=function(e){var t=this,n=this.options.mergedCells||[],r=function(e,t){var n=[],r=[];!function(e,t){for(var n=0;n<e.length;n++){var r=e[n];if(r){var o=r.index;"number"!=typeof o&&(o=n),t(r,o)}}}(e,(function(e,t){var o={_source:e,index:t,height:e.height,level:e.level,cells:[]};n.push(o),r[t]=o}));for(var o=U(n).slice(0),i={rowData:n,rowsByIndex:r,mergedCells:t},s=0;s<o.length;s++)K(o[s],i),delete o[s]._source;return U(n)}(this.options.rows||[],n);this._readCells(r);var o,i=this.options.filter;i&&"number"==typeof i.from&&"number"==typeof i.to?i={from:M(E(this.options),i.from),to:M(E(this.options),i.to)}:i&&i.ref&&i.columns&&(o=i,i=null);var s=[];for(var l in t._validations)Object.prototype.hasOwnProperty.call(t._validations,l)&&s.push(t._validations[l]);var a=null,c=this.options.defaultCellStyle;this._hasDisabledCells&&(c=c?Object.assign({disabled:!1},c):{disabled:!1}),c&&(a=this._lookupStyle(c));var u=this.options.freezePane||{},p=this.options.defaults||{},m=this.options.rows?this._getLastRow():1,d=this.options.rows?this._getLastCol():1;return P({frozenColumns:this.options.frozenColumns||u.colSplit,frozenRows:this.options.frozenRows||u.rowSplit,columns:this.options.columns,defaults:p,data:r,index:e,mergeCells:n,autoFilter:i,filter:o,showGridLines:this.options.showGridLines,hyperlinks:this._hyperlinks,validations:s,defaultCellStyleId:a,rtl:void 0!==this.options.rtl?this.options.rtl:p.rtl,legacyDrawing:this._comments.length?"vml"+this.options.sheetIndex:null,drawing:this._drawings.length?"drw"+this.options.sheetIndex:null,lastRow:m,lastCol:d,hasDisabledCells:this._hasDisabledCells})},H.prototype.commentsXML=function(){if(this._comments.length)return function(e){var t=e.comments;return F+'\n<comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">\n <authors>\n <author></author>\n </authors>\n <commentList>\n '+O(t,(function(e){return'\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>'+S(e.text)+"</t>\n </r>\n </text>\n </comment>"}))+"\n </commentList>\n</comments>"}({comments:this._comments})},H.prototype.drawingsXML=function(e){if(this._drawings.length){var t={},n=this._drawings.map((function(n){var r=Q(n.topLeftCell),o=t[n.image];return o||(o=t[n.image]={rId:"img"+n.image,target:e[n.image].target}),{col:r.col,colOffset:Z(n.offsetX),row:r.row,rowOffset:Z(n.offsetY),width:Z(n.width),height:Z(n.height),imageId:o.rId}}));return{main:(r=n,F+'\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 '+O(r,(function(e,t){return'\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:R(t)}}var r},H.prototype.legacyDrawing=function(){if(this._comments.length)return function(e){return'<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 '+O(e.comments,(function(e){return'\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})},H.prototype._lookupString=function(e){var t,n="$"+e,r=this._strings.indexes[n];return void 0!==r?t=r:(t=this._strings.indexes[n]=this._strings.uniqueCount,this._strings.uniqueCount++),this._strings.count++,t},H.prototype._lookupStyle=function(e){var t=JSON.stringify(e);if("{}"===t)return 0;var n=T(t,this._styles);return n<0&&(n=this._styles.push(t)-1),n+1},H.prototype._lookupBorder=function(e){var t=JSON.stringify(e);if("{}"!==t){var n=T(t,this._borders);return n<0&&(n=this._borders.push(t)-1),n+1}},H.prototype._readCells=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=n.cells;n.data=[];for(var o=0;o<r.length;o++){var i=this._cell(r[o],n.index,o);i&&n.data.push(i)}}},H.prototype._cell=function(e,t,n){var r=this;if(!e||e===J)return null;var o=e.value,i={};e.borderLeft&&(i.left=e.borderLeft),e.borderRight&&(i.right=e.borderRight),e.borderTop&&(i.top=e.borderTop),e.borderBottom&&(i.bottom=e.borderBottom),e.dBorders&&(i.diagonal=e.dBorders),i=this._lookupBorder(i);var s,l=this.options.defaultCellStyle||{},a={borderId:i};(s=function(t,n){var r=e[t];if(void 0===r&&(r=l[t]),void 0!==r)return a[n||t]=r,!0})("color"),s("background"),s("bold"),s("italic"),s("underline"),s("fontFamily")||s("fontName","fontFamily"),s("fontSize"),s("format"),s("textAlign")||s("hAlign","textAlign"),s("verticalAlign")||s("vAlign","verticalAlign"),s("wrap"),s("indent"),s("disabled")||s("enable")&&(a.disabled=!a.enable,delete a.enable),a.disabled&&(r._hasDisabledCells=!0);var c=(this.options.columns||[])[n],u=typeof o;if(c&&c.autoWidth&&(!e.colSpan||1===e.colSpan)){var p=o;"number"===u&&(p=h.toString(o,e.format)),c.width=Math.max(c.width||0,String(p).length)}"string"===u?(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),u="s"):"number"===u?u="n":"boolean"===u?(u="b",o=Number(o)):o&&o.getTime?(u=null,o=v(o),a.format||(a.format="mm-dd-yy")):(u=null,o=null),a=this._lookupStyle(a);var m=M(t,n);if(e.validation&&this._addValidation(e.validation,m),e.comment){var d=[n+1,15,t,10,n+3,15,t+3,4];this._comments.push({ref:m,text:e.comment,row:t,col:n,anchor:d.join(", ")})}return{value:o,formula:e.formula,type:u,style:a,ref:m}},H.prototype._addValidation=function(e,t){var n={showErrorMessage:"reject"===e.type?1:0,formula1:e.from,formula2:e.to,type:q[e.dataType]||e.dataType,operator:z[e.comparerType]||e.comparerType,allowBlank:e.allowNulls?1:0,showDropDown:e.showButton?0:1,error:e.messageTemplate,errorTitle:e.titleTemplate},r=JSON.stringify(n);this._validations[r]||(this._validations[r]=n,n.sqref=[]),this._validations[r].sqref.push(t)},H.prototype._getLastRow=function(){return N(this.options.rows)},H.prototype._getLastCol=function(){var e=0;return this.options.rows.forEach((function(t){t.cells&&(e=Math.max(e,N(t.cells)))})),e};var z={greaterThanOrEqualTo:"greaterThanOrEqual",lessThanOrEqualTo:"lessThanOrEqual"},q={number:"decimal"},B={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 V(e){var t=function(e){function t(e){var t=parseInt(e,10).toString(16);return t.length<2?"0"+t:t}var n=/^rgba?\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([0-9.]+)\s*)?\)/i.exec(e.trim());return n?"#"+t(255*(n[4]?parseFloat(n[4]):1)|0)+t(n[1])+t(n[2])+t(n[3]):e}(e);return t.length<6&&(t=t.replace(/(\w)/g,(function(e,t){return t+t}))),(t=t.substring(1).toUpperCase()).length<8&&(t="FF"+t),t}var W=function(e){var t=this;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||[],(function(e,n){return e.defaults=t.options,e.sheetIndex=n+1,new H(e,t._strings,t._styles,t._borders)}))};function X(e,t){var n,r,o="";return t&&(o+="<"+e+' style="'+(n=t.size,r="thin",2===n?r="medium":3===n&&(r="thick"),r+'">'),t.color&&(o+='<color rgb="'+V(t.color)+'"/>'),o+="</"+e+">"),o}function G(e){var t=e.diagonal?e.diagonal.type:0;return"<border "+(2&t?'diagonalUp="true"':"")+" "+(1&t?'diagonalDown="true"':"")+">\n "+X("left",e.left)+"\n "+X("right",e.right)+"\n "+X("top",e.top)+"\n "+X("bottom",e.bottom)+"\n "+X("diagonal",e.diagonal)+"\n </border>"}W.prototype.imageFilename=function(e){var 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"}},W.prototype.toZIP=function(){var e=this,n=new t.J,r=n.folder("docProps");r.file("core.xml",function(e){var t=e.creator,n=e.lastModifiedBy,r=e.created,o=e.modified;return F+'\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>'+S(t)+"</dc:creator>\n <cp:lastModifiedBy>"+S(n)+'</cp:lastModifiedBy>\n <dcterms:created xsi:type="dcterms:W3CDTF">'+S(r)+'</dcterms:created>\n <dcterms:modified xsi:type="dcterms:W3CDTF">'+S(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()}));var o=this._sheets.length;r.file("app.xml",function(e){var t=e.sheets;return F+'\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>'+t.length+'</vt:i4>\n </vt:variant>\n </vt:vector>\n </HeadingPairs>\n <TitlesOfParts>\n <vt:vector size="'+t.length+'" baseType="lpstr">'+O(t,(function(e,t){return e.options.title?"<vt:lpstr>"+S(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})),n.folder("_rels").file(".rels",D);var i=n.folder("xl");if(i.folder("_rels").file("workbook.xml.rels",function(e){var t=e.count;return F+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+I(t,(function(e){return'\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'+(t+1)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml" />\n <Relationship Id="rId'+(t+2)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml" />\n</Relationships>'}({count:o})),this._images){var s=i.folder("media");Object.keys(this._images).forEach((function(t){var n=e._images[t],r=e.imageFilename(n.type);s.file(r,n.data),n.target="../media/"+r}))}var l={};i.file("workbook.xml",function(e){var t=e.sheets,n=e.filterNames,r=e.userNames;return F+'\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 '+O(t,(function(e,t){var n=e.options,r=n.name||n.title||"Sheet"+(t+1),o=n.state||"visible";return'<sheet name="'+S(r)+'" state="'+o+'" sheetId="'+(t+1)+'" r:id="rId'+(t+1)+'" />'}))+"\n </sheets>\n "+(n.length||r.length?"\n <definedNames>\n "+O(n,(function(e){return'\n <definedName name="_xlnm._FilterDatabase" hidden="1" localSheetId="'+e.localSheetId+'">'+S(function(e){return/^\'/.test(e)||/^[a-z_][a-z0-9_]*$/i.test(e)?e:"'"+e.replace(/\x27/g,"\\'")+"'"}(e.name))+"!"+S(e.from)+":"+S(e.to)+"</definedName>"}))+"\n "+O(r,(function(e){return'\n <definedName name="'+e.name+'" hidden="'+(e.hidden?1:0)+'" '+(null!=e.localSheetId?'localSheetId="'+e.localSheetId+'"':"")+">"+S(e.value)+"</definedName>"}))+"\n </definedNames>":"")+'\n <calcPr fullCalcOnLoad="1" calcId="145621" />\n</workbook>'}({sheets:this._sheets,filterNames:a(this._sheets,(function(e,t){var n=e.options,r=n.name||n.title||"Sheet"+(t+1);l[r.toLowerCase()]=t;var o=n.filter;if(o){if(o.ref){var i=o.ref.split(":"),s=Q(i[0]),a=Q(i[1]);return{localSheetId:t,name:r,from:A(s.row,s.col),to:A(a.row,a.col)}}if(void 0!==o.from&&void 0!==o.to)return{localSheetId:t,name:r,from:A(E(n),o.from),to:A(E(n),o.to)}}})),userNames:a(this.options.names||[],(function(e){return{name:e.localName,localSheetId:e.sheet?l[e.sheet.toLowerCase()]:null,value:e.value,hidden:e.hidden}}))}));for(var c=i.folder("worksheets"),u=i.folder("drawings"),p=u.folder("_rels"),m=c.folder("_rels"),d=[],h=[],f=0;f<o;f++){var g=e._sheets[f],v="sheet"+(f+1)+".xml",y=g.toXML(f),x=g.relsToXML(),b=g.commentsXML(),w=g.legacyDrawing(),_=g.drawingsXML(e._images);if(x&&m.file(v+".rels",x),b){var C="comments"+g.options.sheetIndex+".xml";i.file(C,b),d.push(C)}if(w&&u.file("vmlDrawing"+g.options.sheetIndex+".vml",w),_){var P="drawing"+g.options.sheetIndex+".xml";u.file(P,_.main),p.file(P+".rels",_.rels),h.push(P)}c.file(v,y)}var R=a(this._borders,k),j=a(this._styles,k),M=function(e){return e.underline||e.bold||e.italic||e.color||e.fontFamily||e.fontSize},L=a(j,(function(e){var t,n,r;if(e.fontSize&&(e.fontSize=(t=e.fontSize,(r=Number(t))&&(n=3*r/4),n)),e.color&&(e.color=V(e.color)),M(e))return e})),H=a(j,(function(e){if(e.format&&void 0===B[e.format])return e})),N=a(j,(function(e){if(e.background)return e.background=V(e.background),e}));return i.file("styles.xml",function(e){var t=e.formats,n=e.fonts,r=e.fills,o=e.borders,i=e.styles;return F+'\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="'+t.length+'">\n '+O(t,(function(e,t){return'\n <numFmt formatCode="'+S(e.format)+'" numFmtId="'+(165+t)+'" />'}))+'\n </numFmts>\n <fonts count="'+(n.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 '+O(n,(function(e){return"\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="'+S(e.color)+'" />':'<color theme="1" />')+"\n "+(e.fontFamily?'\n <name val="'+S(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="'+(r.length+2)+'">\n <fill><patternFill patternType="none"/></fill>\n <fill><patternFill patternType="gray125"/></fill>\n '+O(r,(function(e){return"\n "+(e.background?'\n <fill>\n <patternFill patternType="solid">\n <fgColor rgb="'+S(e.background)+'"/>\n </patternFill>\n </fill>\n ':"")}))+'\n </fills>\n <borders count="'+(o.length+1)+'">\n <border><left/><right/><top/><bottom/><diagonal/></border>\n '+O(o,G)+'\n </borders>\n <cellStyleXfs count="1">\n <xf borderId="0" fillId="0" fontId="0" />\n </cellStyleXfs>\n <cellXfs count="'+(i.length+1)+'">\n <xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" />\n '+O(i,(function(e){return'\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="'+S(e.textAlign)+'"':"")+"\n "+(e.verticalAlign?'vertical="'+S(e.verticalAlign)+'"':"")+"\n "+(e.indent?'indent="'+S(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:L,fills:N,formats:H,borders:R,styles:a(j,(function(e){var t={};return M(e)&&(t.fontId=T(e,L)+1),e.background&&(t.fillId=T(e,N)+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!==B[e.format]?t.numFmtId=B[e.format]:t.numFmtId=165+T(e,H)),null!=e.disabled&&(t.disabled=e.disabled),t}))})),i.file("sharedStrings.xml",function(e){var t=e.count,n=e.uniqueCount,r=e.indexes;return F+'\n<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'+t+'" uniqueCount="'+n+'">\n '+O(Object.keys(r),(function(e){return'\n <si><t xml:space="preserve">'+S(e.substring(1))+"</t></si>"}))+"\n</sst>"}(this._strings)),n.file("[Content_Types].xml",function(e){var t=e.sheetCount,n=e.commentFiles,r=e.drawingFiles;return F+'\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 '+I(t,(function(e){return'<Override PartName="/xl/worksheets/sheet'+(e+1)+'.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />'}))+"\n "+O(n,(function(e){return'<Override PartName="/xl/'+e+'" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"/>'}))+"\n "+O(r,(function(e){return'<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:d,drawingFiles:h})),n},W.prototype.toDataURL=function(){var e=this.toZIP();return e.generateAsync?e.generateAsync(b).then(C):C(e.generate(b))},W.prototype.toBlob=function(){var e=this.toZIP();return e.generateAsync?e.generateAsync(w):new Blob([e.generate(_)],{type:y})};var J={};function U(e){return e.sort((function(e,t){return e.index-t.index}))}function $(e,t){for(var n=0;n<e.length;++n){var r=e[n].split(":"),o=r[0];if(o===t){var i=r[1];return o=Q(o),{rowSpan:(i=Q(i)).row-o.row+1,colSpan:i.col-o.col+1}}}}function Q(e){var t,n=/^([a-z]+)(\d+)$/i.exec(e);return{row:(t=n[2],parseInt(t,10)-1),col:function(e){for(var t=e.toUpperCase(),n=0,r=0;r<t.length;++r)n=26*n+t.charCodeAt(r)-64;return n-1}(n[1])}}function Z(e){return Math.round(9525*e)}function K(e,t){var n,r,o=e._source,i=e.index,s=o.cells,l=e.cells;if(s)for(var a=0;a<s.length;a++){var c=s[a]||J,u=c.rowSpan||1,p=c.colSpan||1,m=Y(l,c),d=M(i,m);if(1===u&&1===p){var h=$(t.mergedCells,d);h&&(p=h.colSpan,u=h.rowSpan)}if(te(c,l,m,p),(u>1||p>1)&&(n=t.mergedCells,r=d+":"+M(i+u-1,m+p-1),n.indexOf(r)<0&&n.push(r)),u>1)for(var f=i+1;f<i+u;f++){var g=t.rowsByIndex[f];g||(g=t.rowsByIndex[f]={index:f,cells:[]},t.rowData.push(g)),te(c,g.cells,m-1,p+1)}}}function Y(e,t){var n;return"number"==typeof t.index?(n=t.index,ee(e,t,t.index)):n=function(e,t){for(var n=e.length,r=0;r<e.length+1;r++)if(!e[r]){e[r]=t,n=r;break}return n}(e,t),n}function ee(e,t,n){e[n]=t}function te(e,t,n,r){for(var o=1;o<r;o++){ee(t,{borderTop:e.borderTop,borderRight:e.borderRight,borderBottom:e.borderBottom,borderLeft:e.borderLeft},n+o)}}var ne=function(e){var t=e.ref,n=e.columns,r=e.generators;return'\n<autoFilter ref="'+t+'">\n '+O(n,(function(e){return'\n <filterColumn colId="'+e.index+'">\n '+r[e.filter](e)+"\n </filterColumn>\n "}))+"\n</autoFilter>"},re=function(e){return"\n<customFilters "+("and"===e.logic?'and="1"':"")+">\n"+O(e.criteria,(function(e){var t=le.customOperator(e);return"<customFilter "+(t?'operator="'+t+'"':"")+' val="'+le.customValue(e)+'"/>'}))+"\n</customFilters>"},oe=function(e){var t=e.type;return'<dynamicFilter type="'+le.dynamicFilterType(t)+'" />'},ie=function(e){var t=e.type,n=e.value;return'<top10 percent="'+(/percent$/i.test(t)?1:0)+'"\n top="'+(/^top/i.test(t)?1:0)+'"\n val="'+n+'" />'},se=function(e){return"<filters "+(e.blanks?'blank="1"':"")+">\n "+O(e.values,(function(e){return'\n <filter val="'+e+'" />'}))+"\n </filters>"};function le(e){return ne({ref:e.ref,columns:e.columns,generators:{custom:re,dynamic:oe,top:ie,value:se}})}le.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()]},le.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}},le.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=m,e.I=h,e.T=r,e.W=W,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},e.a=H})); //# sourceMappingURL=kendo.ooxml.cmn.chunk.min.js.map