@progress/kendo-react-excel-export 6.1.1-dev.202311151536 → 7.0.0-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/{dist/npm/ColumnBase.d.ts → ColumnBase.d.ts} +4 -0
  2. package/{dist/es/ExcelExport.d.ts → ExcelExport.d.ts} +5 -1
  3. package/{dist/es/ExcelExportColumn.d.ts → ExcelExportColumn.d.ts} +4 -0
  4. package/{dist/npm/ExcelExportColumnGroup.d.ts → ExcelExportColumnGroup.d.ts} +4 -0
  5. package/{dist/npm/ExcelExportData.d.ts → ExcelExportData.d.ts} +4 -0
  6. package/LICENSE.md +1 -1
  7. package/dist/cdn/js/kendo-react-excel.js +8 -0
  8. package/index.d.ts +15 -0
  9. package/index.js +8 -0
  10. package/index.mjs +226 -0
  11. package/{dist/es/ooxml → ooxml}/CellOptionsInterface.d.ts +4 -0
  12. package/{dist/npm/ooxml → ooxml}/ExporterColumns.d.ts +4 -0
  13. package/{dist/es/ooxml → ooxml}/workbook.d.ts +4 -0
  14. package/package-metadata.d.ts +9 -0
  15. package/package.json +28 -40
  16. package/{dist/npm/templates → templates}/ExcelExportFooter.d.ts +4 -0
  17. package/{dist/npm/templates → templates}/ExcelExportGroupFooter.d.ts +4 -0
  18. package/{dist/es/templates → templates}/ExcelExportGroupHeader.d.ts +4 -0
  19. package/about.md +0 -3
  20. package/dist/cdn/js/kendo-react-excel-export.js +0 -1
  21. package/dist/es/ColumnBase.d.ts +0 -38
  22. package/dist/es/ColumnBase.js +0 -1
  23. package/dist/es/ExcelExport.js +0 -193
  24. package/dist/es/ExcelExportColumn.js +0 -24
  25. package/dist/es/ExcelExportColumnGroup.d.ts +0 -11
  26. package/dist/es/ExcelExportColumnGroup.js +0 -17
  27. package/dist/es/ExcelExportData.d.ts +0 -13
  28. package/dist/es/ExcelExportData.js +0 -2
  29. package/dist/es/main.d.ts +0 -11
  30. package/dist/es/main.js +0 -9
  31. package/dist/es/ooxml/CellOptionsInterface.js +0 -2
  32. package/dist/es/ooxml/ExporterColumns.d.ts +0 -26
  33. package/dist/es/ooxml/ExporterColumns.js +0 -99
  34. package/dist/es/ooxml/workbook.js +0 -39
  35. package/dist/es/package-metadata.d.ts +0 -5
  36. package/dist/es/package-metadata.js +0 -11
  37. package/dist/es/templates/ExcelExportFooter.d.ts +0 -14
  38. package/dist/es/templates/ExcelExportFooter.js +0 -27
  39. package/dist/es/templates/ExcelExportGroupFooter.d.ts +0 -17
  40. package/dist/es/templates/ExcelExportGroupFooter.js +0 -27
  41. package/dist/es/templates/ExcelExportGroupHeader.js +0 -27
  42. package/dist/npm/ColumnBase.js +0 -2
  43. package/dist/npm/ExcelExport.d.ts +0 -151
  44. package/dist/npm/ExcelExport.js +0 -196
  45. package/dist/npm/ExcelExportColumn.d.ts +0 -50
  46. package/dist/npm/ExcelExportColumn.js +0 -27
  47. package/dist/npm/ExcelExportColumnGroup.js +0 -20
  48. package/dist/npm/ExcelExportData.js +0 -3
  49. package/dist/npm/main.d.ts +0 -11
  50. package/dist/npm/main.js +0 -32
  51. package/dist/npm/ooxml/CellOptionsInterface.d.ts +0 -76
  52. package/dist/npm/ooxml/CellOptionsInterface.js +0 -3
  53. package/dist/npm/ooxml/ExporterColumns.js +0 -103
  54. package/dist/npm/ooxml/workbook.d.ts +0 -14
  55. package/dist/npm/ooxml/workbook.js +0 -45
  56. package/dist/npm/package-metadata.d.ts +0 -5
  57. package/dist/npm/package-metadata.js +0 -14
  58. package/dist/npm/templates/ExcelExportFooter.js +0 -30
  59. package/dist/npm/templates/ExcelExportGroupFooter.js +0 -30
  60. package/dist/npm/templates/ExcelExportGroupHeader.d.ts +0 -16
  61. package/dist/npm/templates/ExcelExportGroupHeader.js +0 -30
  62. package/dist/systemjs/kendo-react-excel-export.js +0 -1
  63. package/e2e-next/excelexport.basic.tests.ts +0 -23
@@ -1 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("prop-types"),require("react-dom/server"),require("@progress/kendo-licensing")):"function"==typeof define&&define.amd?define(["react","prop-types","react-dom/server","@progress/kendo-licensing"],e):"object"==typeof exports?exports.KendoReactExcelExport=e(require("react"),require("prop-types"),require("react-dom/server"),require("@progress/kendo-licensing")):t.KendoReactExcelExport=e(t.React,t.PropTypes,t.ReactDOMServer,t.KendoLicensing)}(self,(function(t,e,r,n){return(()=>{"use strict";var i={106:function(t,e,r){var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),o=this&&this.__assign||function(){return o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ExcelExport=void 0;var a=r(899),s=r(189),l=r(202),h=r(739),u=r(302),c=r(363),d=function(t){function e(e){var r=t.call(this,e)||this;if(r.saveFile=function(t){(0,l.saveAs)(t,r.props.fileName,{forceProxy:r.props.forceProxy,proxyURL:r.props.proxyURL})},r.extractColumns=function(t,e){return void 0===e&&(e=0),Array.isArray(t)?t.map((function(t){return r.extractChild(t,e)})):[t,r.extractChild(t,e)]},r.extractChild=function(t,e){return void 0===e&&(e=0),a.isValidElement(t)?o(o({},t.props),{width:t.props.width&&parseInt("".concat(t.props.width),10),level:e,children:t.props.children&&r.extractColumns(t.props.children,e+1)}):o(o({},t),{level:e,children:t.children&&r.extractColumns(t.children,e+1)})},r.getExportData=function(t){return t?Array.isArray(t)?{data:t}:t:{data:r.props.data,group:r.props.group}},void 0!==u)u.validatePackage(c.packageMetadata);else{var n="License activation failed for ".concat(c.packageMetadata.name,"\n");n+="The @progress/kendo-licensing script is not loaded.\n",n+="See ".concat(c.packageMetadata.licensingDocsUrl," for more information.\n"),console.warn(n)}return r.save=r.save.bind(r),r.toDataURL=r.toDataURL.bind(r),r.workbookOptions=r.workbookOptions.bind(r),r}return i(e,t),e.prototype.save=function(t,e){var r=this;this.toDataURL(t,e).then((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];r.props.onExportComplete&&r.props.onExportComplete.call(void 0,{target:r}),r.saveFile.apply(r,t)}))},e.prototype.toDataURL=function(t,e){var r=(0,h.isWorkbookOptions)(t)?t:this.workbookOptions(t,e);return(0,h.toDataURL)(r)},e.prototype.workbookOptions=function(t,e){var r=this.getExportData(t),n=this.props.children,i=n&&n.type&&"KendoReactGrid"===n.type.displayName&&n.props&&a.Children.toArray(n.props.children),o=this.extractColumns(i||e||this.props.columns||a.Children.toArray(n));return(0,h.workbookOptions)({columns:o,data:r.data,group:r.group,filterable:this.props.filterable,creator:this.props.creator,date:this.props.date,dir:this.props.dir,hierarchy:this.props.hierarchy,paddingCellOptions:this.props.paddingCellOptions,headerPaddingCellOptions:this.props.headerPaddingCellOptions,collapsible:this.props.collapsible})},e.prototype.render=function(){return this.props.children||null},e.propTypes={children:s.any,columns:s.arrayOf(s.any),creator:s.string,data:s.any,date:s.any,filterable:s.bool,fileName:s.string,forceProxy:s.bool,group:s.any,headerPaddingCellOptions:s.any,paddingCellOptions:s.any,proxyURL:s.string,dir:s.string,hierarchy:s.bool,collapsible:s.bool},e.defaultProps={fileName:"Export.xlsx",forceProxy:!1,collapsible:!1},e}(a.Component);e.ExcelExport=d},719:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExcelExportColumn=void 0;var n=r(189),i=function(t){return null};e.ExcelExportColumn=i,i.propTypes={cellOptions:n.any,field:n.string,footerCellOptions:n.any,footer:n.oneOfType([n.func,n.element]),groupFooterCellOptions:n.any,groupFooter:n.oneOfType([n.func,n.element]),groupHeaderCellOptions:n.any,groupHeader:n.oneOfType([n.func,n.element]),headerCellOptions:n.any,hidden:n.bool,level:n.number,locked:n.bool,title:n.string,width:n.number}},715:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ExcelExportColumnGroup=void 0;var n=r(189),i=function(t){return null};e.ExcelExportColumnGroup=i,i.propTypes={children:n.oneOfType([n.arrayOf(n.element),n.element]),headerCellOptions:n.any,hidden:n.bool,level:n.number,locked:n.bool,title:n.string,width:n.number}},468:function(t,e,r){var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);i&&!("get"in i?!e.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,i)}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),i=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),e.KendoOoxml=e.ExcelExportGroupHeader=e.ExcelExportGroupFooter=e.ExcelExportColumn=e.ExcelExportFooter=e.ExcelExportColumnGroup=e.ExcelExport=void 0;var o=r(106);Object.defineProperty(e,"ExcelExport",{enumerable:!0,get:function(){return o.ExcelExport}});var a=r(719);Object.defineProperty(e,"ExcelExportColumn",{enumerable:!0,get:function(){return a.ExcelExportColumn}});var s=r(715);Object.defineProperty(e,"ExcelExportColumnGroup",{enumerable:!0,get:function(){return s.ExcelExportColumnGroup}});var l=r(70);Object.defineProperty(e,"ExcelExportFooter",{enumerable:!0,get:function(){return l.ExcelExportFooter}});var h=r(424);Object.defineProperty(e,"ExcelExportGroupFooter",{enumerable:!0,get:function(){return h.ExcelExportGroupFooter}});var u=r(464);Object.defineProperty(e,"ExcelExportGroupHeader",{enumerable:!0,get:function(){return u.ExcelExportGroupHeader}});var c=r(364);e.KendoOoxml=c,i(r(739),e)},472:function(t,e,r){var n=this&&this.__assign||function(){return n=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.ExporterColumn=e.toExporterColumns=void 0;var i=r(899),o=r(209),a=function(t,e,r){return function(a){r(e,a);var s=o.renderToStaticMarkup(i.createElement(t,n({},e))),l=Number(s);return isNaN(l)?s:l}},s=function(t,e){t.$implicit=t.group=e,t.field=e.field,t.value=e.value,t.aggregates=e.aggregates},l=function(t,e){t.group=e.group,t.$implicit=t.aggregates=e},h=function(t,e){};e.toExporterColumns=function(t){var e=[],r=0,n=function(t,e,i){t.forEach((function(t){if(t.level===i){var o=new u(t,r);if(e.push(o),t.children&&t.children.length>1){var a=o.columns=[];n(t.children,a,i+1)}else r++}}))};return n(t,e,0),e};var u=function(t,e){this.columns=null,this.title=t.title,this.field=t.field,this.hidden=t.hidden,this.locked=t.locked,this.width=t.width,this.headerCellOptions=t.headerCellOptions,this.cellOptions=t.cellOptions,this.groupHeaderCellOptions=t.groupHeaderCellOptions,this.groupFooterCellOptions=t.groupFooterCellOptions,this.footerCellOptions=t.footerCellOptions,t.footer&&(this.footerTemplate=a(t.footer,{$implicit:t,column:t,columnIndex:e},h)),t.groupFooter&&(this.groupFooterTemplate=a(t.groupFooter,{column:t,field:t.field},l)),t.groupHeader&&(this.groupHeaderTemplate=a(t.groupHeader,{},s))};e.ExporterColumn=u},739:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isWorkbookOptions=e.toDataURL=e.workbookOptions=void 0;var n=r(364),i=r(472);e.workbookOptions=function(t){var e,r=(0,i.toExporterColumns)(t.columns),o=new n.ExcelExporter({columns:r,data:t.data,filterable:t.filterable,groups:t.group,paddingCellOptions:t.paddingCellOptions,headerPaddingCellOptions:t.headerPaddingCellOptions,hierarchy:t.hierarchy?{depth:(e=t.data,Math.max.apply(Math,e.map((function(t){return t.level})))+1),itemLevel:function(t){return t.level}}:null,collapsible:t.collapsible}).workbook();return o.creator=t.creator,o.date=t.date,o.rtl="rtl"===t.dir,o},e.toDataURL=function(t){return new n.Workbook(t).toDataURL()},e.isWorkbookOptions=function(t){return t&&t.sheets}},363:(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata=void 0,e.packageMetadata={name:"@progress/kendo-react-excel-export",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1700060616,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},70:function(t,e,r){var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ExcelExportFooter=void 0;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(r(899).PureComponent);e.ExcelExportFooter=o},424:function(t,e,r){var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ExcelExportGroupFooter=void 0;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(r(899).PureComponent);e.ExcelExportGroupFooter=o},464:function(t,e,r){var n,i=this&&this.__extends||(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])},n(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0}),e.ExcelExportGroupHeader=void 0;var o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(r(899).PureComponent);e.ExcelExportGroupHeader=o},202:(t,e,r)=>{function n(t,e,r){void 0===r&&(r={});var n=l;if(r.forceProxy&&!r.proxyURL)throw new Error("No proxyURL is set, but forceProxy is true");r.forceProxy||(o()&&(n=s),navigator.msSaveBlob&&(n=a)),n(t,e,r)}r.r(e),r.d(e,{encodeBase64:()=>c,saveAs:()=>n});var i=function(){return document.createElement("a")},o=function(){return"download"in i()};function a(t,e){var r=t;if("string"==typeof t){for(var n=t.split(";base64,"),i=n[0],o=atob(n[1]),a=new Uint8Array(o.length),s=0;s<o.length;s++)a[s]=o.charCodeAt(s);r=new Blob([a.buffer],{type:i})}navigator.msSaveBlob(r,e)}function s(t,e){var r=t;window.Blob&&t instanceof Blob&&(r=URL.createObjectURL(t));var n=i();n.download=e,n.href=r;var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(o),setTimeout((function(){return URL.revokeObjectURL(r)}))}function l(t,e,r){if(r.proxyURL){var n=document.createElement("form");n.setAttribute("action",r.proxyURL),n.setAttribute("method","POST"),n.setAttribute("target",r.proxyTarget||"_self");var i=r.proxyData||{};i.fileName=e;var o=t.split(";base64,");for(var a in i.contentType=o[0].replace("data:",""),i.base64=o[1],i)if(i.hasOwnProperty(a)){var s=document.createElement("input");s.setAttribute("type","hidden"),s.setAttribute("name",a),s.setAttribute("value",i[a]),n.appendChild(s)}document.body.appendChild(n),n.submit(),document.body.removeChild(n)}}var h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=String.fromCharCode;function c(t){for(var e,r,n,i,o,a,s,l=function(t){for(var e="",r=0;r<t.length;r++){var n=t.charCodeAt(r);n<128?e+=u(n):n<2048?(e+=u(192|n>>>6),e+=u(128|63&n)):n<65536&&(e+=u(224|n>>>12),e+=u(128|n>>>6&63),e+=u(128|63&n))}return e}(t),c="",d=0;d<l.length;)i=(e=l.charCodeAt(d++))>>2,o=(3&e)<<4|(r=l.charCodeAt(d++))>>4,a=(15&r)<<2|(n=l.charCodeAt(d++))>>6,s=63&n,isNaN(r)?a=s=64:isNaN(n)&&(s=64),c=c+h.charAt(i)+h.charAt(o)+h.charAt(a)+h.charAt(s);return c}},364:(t,e,r)=>{r.r(e),r.d(e,{ExcelExporter:()=>m,IntlService:()=>_,TemplateService:()=>o,Workbook:()=>Un,Worksheet:()=>Tn});var n={compile:function(t){return t}},i=function(){};i.register=function(t){n=t},i.compile=function(t){return n.compile(t)};const o=i;var a=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,s={},l="undefined";function h(t){if(s[t])return s[t];var e=[];return t.replace(a,(function(t,r,n,i){e.push(typeof r!==l?r:n||i)})),s[t]=function(t){for(var r=t,n=0;n<e.length&&r;n++)r=r[e[n]];return r},s[t]}function u(t,e){return t.reduce((function(t,r,n){var i=e(r,n);return null!=i&&t.push(i),t}),[])}function c(t){return t.title+": "+t.value}function d(t,e){for(var r=[],n=0;n<t;n++)r.push(e(n));return r}function p(t){return t.id}s[l]=function(t){return t};var f=function(t){t.columns=this._trimColumns(t.columns||[]),this.allColumns=u(this._leafColumns(t.columns||[]),this._prepareColumn),this.columns=this._visibleColumns(this.allColumns),this.options=t,this.data=t.data||[],this.aggregates=t.aggregates||{},this.groups=[].concat(t.groups||[]),this.hasGroups=this.groups.length>0,this.hierarchy=t.hierarchy,this.hasGroupHeaderColumn=this.columns.some((function(t){return t.groupHeaderColumnTemplate})),this.collapsible=this.options.collapsible};f.prototype.workbook=function(){return{sheets:[{columns:this._columns(),rows:this.hierarchy?this._hierarchyRows():this._rows(),freezePane:this._freezePane(),filter:this._filter()}]}},f.prototype._trimColumns=function(t){var e=this;return t.filter((function(t){var r=Boolean(t.field);return!r&&t.columns&&(r=e._trimColumns(t.columns).length>0),r}))},f.prototype._leafColumns=function(t){for(var e=[],r=0;r<t.length;r++)t[r].columns?e=e.concat(this._leafColumns(t[r].columns)):e.push(t[r]);return e},f.prototype._prepareColumn=function(t){if(!t.field)return null;var e=function(e){return h(t.field)(e)},r=null;return t.values&&(r={},t.values.forEach((function(t){r[t.value]=t.text})),e=function(e){return r[h(t.field)(e)]}),Object.assign({},t,{value:e,values:r,groupHeaderTemplate:t.groupHeaderTemplate?o.compile(t.groupHeaderTemplate):c,groupHeaderColumnTemplate:t.groupHeaderColumnTemplate?o.compile(t.groupHeaderColumnTemplate):null,groupFooterTemplate:t.groupFooterTemplate?o.compile(t.groupFooterTemplate):null,footerTemplate:t.footerTemplate?o.compile(t.footerTemplate):null})},f.prototype._filter=function(){if(!this.options.filterable)return null;var t=this._depth();return{from:t,to:t+this.columns.length-1}},f.prototype._createPaddingCells=function(t){var e=this;return d(t,(function(){return Object.assign({background:"#dfdfdf",color:"#333"},e.options.paddingCellOptions)}))},f.prototype._dataRow=function(t,e,r){var n=this._createPaddingCells(e);if(this.hasGroups&&r&&t.items){n=n.concat(this._groupHeaderCells(t,e,r));var i=this._dataRows(t.items,e+1);return i.unshift({type:"group-header",cells:n,level:this.collapsible?e:null}),i.concat(this._footer(t,e))}for(var o=[],a=0;a<this.columns.length;a++)o[a]=this._cell(t,this.columns[a]);return this.hierarchy&&(o[0].colSpan=r-e+1),[{type:"data",cells:n.concat(o),level:this.collapsible?e:null}]},f.prototype._groupHeaderCells=function(t,e,r){var n=[],i=this.allColumns.filter((function(e){return e.field===t.field}))[0]||{},o=i&&i.title?i.title:t.field,a=i?i.groupHeaderTemplate||i.groupHeaderColumnTemplate:null,s=Object.assign({title:o,field:t.field,value:i&&i.values?i.values[t.value]:t.value,aggregates:t.aggregates,items:t.items},t.aggregates[t.field]),l=a?a(s):o+": "+t.value;return n.push(Object.assign({value:l,background:"#dfdfdf",color:"#333",colSpan:(this.hasGroupHeaderColumn?1:this.columns.length)+r-e},i.groupHeaderCellOptions)),this.hasGroupHeaderColumn&&this.columns.forEach((function(e,r){r>0&&n.push(Object.assign({background:"#dfdfdf",color:"#333",value:e.groupHeaderColumnTemplate?e.groupHeaderColumnTemplate(Object.assign({group:s},s,t.aggregates[e.field])):void 0},e.groupHeaderCellOptions))})),n},f.prototype._dataRows=function(t,e){for(var r=this._depth(),n=[],i=0;i<t.length;i++)n.push.apply(n,this._dataRow(t[i],e,r));return n},f.prototype._hierarchyRows=function(){var t,e=this._depth(),r=this.data,n=this.hierarchy.itemLevel,i=this.hierarchy.itemId||p,o=this._hasFooterTemplate(),a=[],s=[],l=0;o||(this.collapsible=!1);for(var h=0;h<r.length;h++){var u=r[h],c=n(u,h);o&&(c>l?s.push({id:t,level:l}):c<l&&a.push.apply(a,this._hierarchyFooterRows(s,c,e)),l=c,t=i(u,h)),a.push.apply(a,this._dataRow(u,c+1,e))}if(o){a.push.apply(a,this._hierarchyFooterRows(s,0,e));var d=r.length?this.aggregates[r[0].parentId]:{};a.push(this._hierarchyFooter(d,0,e))}return this._prependHeaderRows(a),a},f.prototype._hierarchyFooterRows=function(t,e,r){for(var n=[];t.length&&t[t.length-1].level>=e;){var i=t.pop();n.push(this._hierarchyFooter(this.aggregates[i.id],i.level+1,r))}return n},f.prototype._hasFooterTemplate=function(){for(var t=this.columns,e=0;e<t.length;e++)if(t[e].footerTemplate)return!0},f.prototype._hierarchyFooter=function(t,e,r){var n=this.columns.map((function(n,i){var o=i?1:r-e+1;if(n.footerTemplate){var a=(t||{})[n.field];return Object.assign({background:"#dfdfdf",color:"#333",colSpan:o,value:n.footerTemplate(Object.assign({aggregates:t},a))},n.footerCellOptions)}return Object.assign({background:"#dfdfdf",color:"#333",colSpan:o},n.footerCellOptions)}));return{type:"footer",cells:this._createPaddingCells(e).concat(n),level:this.collapsible?e:null}},f.prototype._footer=function(t,e){var r,n,i=[],o=this.columns.some((function(t){return t.groupFooterTemplate}));o&&(n={group:{items:t.items,field:t.field,value:t.value}},r={},Object.keys(t.aggregates).forEach((function(e){r[e]=Object.assign({},t.aggregates[e],n)})));var a=this.columns.map((function(e){if(e.groupFooterTemplate){var i=Object.assign({},r,t.aggregates[e.field],n);return Object.assign({background:"#dfdfdf",color:"#333",value:e.groupFooterTemplate(i)},e.groupFooterCellOptions)}return Object.assign({background:"#dfdfdf",color:"#333"},e.groupFooterCellOptions)}));return o&&i.push({type:"group-footer",cells:this._createPaddingCells(this.groups.length).concat(a),level:this.collapsible?e:null}),i},f.prototype._isColumnVisible=function(t){return this._visibleColumns([t]).length>0&&(t.field||t.columns)},f.prototype._visibleColumns=function(t){var e=this;return t.filter((function(t){var r=t.exportable;"object"==typeof r&&(r=t.exportable.excel);var n=!t.hidden&&!1!==r,i=t.hidden&&!0===r,o=n||i;return o&&t.columns&&(o=e._visibleColumns(t.columns).length>0),o}))},f.prototype._headerRow=function(t,e){var r=this,n=t.cells.map((function(e){return Object.assign(e,{colSpan:e.colSpan>1?e.colSpan:1,rowSpan:t.rowSpan>1&&!e.colSpan?t.rowSpan:1})}));return this.hierarchy&&n[0].firstCell&&(n[0].colSpan+=this._depth()),{type:"header",cells:d(e.length,(function(){return Object.assign({background:"#7a7a7a",color:"#fff"},r.options.headerPaddingCellOptions)})).concat(n)}},f.prototype._prependHeaderRows=function(t){var e=this.groups,r=[{rowSpan:1,cells:[],index:0}];this._prepareHeaderRows(r,this.options.columns);for(var n=r.length-1;n>=0;n--)t.unshift(this._headerRow(r[n],e))},f.prototype._prepareHeaderRows=function(t,e,r,n){for(var i=this,o=n||t[t.length-1],a=t[o.index+1],s=0,l=0;l<e.length;l++){var h=e[l];if(i._isColumnVisible(h)){var u=Object.assign({background:"#7a7a7a",color:"#fff",value:h.title||h.field,colSpan:0,firstCell:0===l&&(!r||r.firstCell)},h.headerCellOptions);o.cells.push(u),h.columns&&h.columns.length&&(a||(a={rowSpan:0,cells:[],index:t.length},t.push(a)),u.colSpan=i._trimColumns(i._visibleColumns(h.columns)).length,i._prepareHeaderRows(t,h.columns,u,a),s+=u.colSpan-1,o.rowSpan=t.length-o.index)}}r&&(r.colSpan+=s)},f.prototype._rows=function(){var t=this,e=this._dataRows(this.data,0);if(this.columns.length){this._prependHeaderRows(e);var r=!1,n=this.columns.map((function(e){return e.footerTemplate?(r=!0,Object.assign({background:"#dfdfdf",color:"#333",value:e.footerTemplate(Object.assign({},t.aggregates,t.aggregates[e.field]))},e.footerCellOptions)):Object.assign({background:"#dfdfdf",color:"#333"},e.footerCellOptions)}));r&&e.push({type:"footer",cells:this._createPaddingCells(this.groups.length).concat(n)})}return e},f.prototype._headerDepth=function(t){for(var e=0,r=0;r<t.length;r++)if(t[r].columns){var n=this._headerDepth(t[r].columns);n>e&&(e=n)}return 1+e},f.prototype._freezePane=function(){var t=this._visibleColumns(this.options.columns||[]),e=this._visibleColumns(this._trimColumns(this._leafColumns(t.filter((function(t){return t.locked}))))).length;return{rowSplit:this._headerDepth(t),colSplit:e?e+this.groups.length:0}},f.prototype._cell=function(t,e){return Object.assign({value:e.value(t)},e.cellOptions)},f.prototype._depth=function(){return this.hierarchy?this.hierarchy.depth:this.groups.length},f.prototype._columns=function(){return d(this._depth(),(function(){return{width:20}})).concat(this.columns.map((function(t){return{width:parseInt(t.width,10),autoWidth:!t.width}})))};const m=f;var g={toString:function(t){return t}},v=function(){};v.register=function(t){g=t},v.toString=function(t,e){return g.toString(t,e)};const _=v;var y=-2,b=4,w=0,x=1,k=2;function C(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function O(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var r=e.shift();if(r){if("object"!=typeof r)throw new TypeError(r+"must be non-object");for(var n in r)C(r,n)&&(t[n]=r[n])}}return t}function S(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)}var z={arraySet:function(t,e,r,n,i){if(e.subarray&&t.subarray)t.set(e.subarray(r,r+n),i);else for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){var e,r,n,i,o,a;for(n=0,e=0,r=t.length;e<r;e++)n+=t[e].length;for(a=new Uint8Array(n),i=0,e=0,r=t.length;e<r;e++)o=t[e],a.set(o,i),i+=o.length;return a},Buf8:function(t){return new Uint8Array(t)},Buf16:function(t){return new Uint16Array(t)},Buf32:function(t){return new Int32Array(t)}},E={arraySet:function(t,e,r,n,i){for(var o=0;o<n;o++)t[i+o]=e[r+o]},flattenChunks:function(t){return[].concat.apply([],t)},Buf8:function(t){return new Array(t)},Buf16:function(t){return new Array(t)},Buf32:function(t){return new Array(t)}},I=function(){var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;return I=function(){return t},t},A=function(t,e,r,n,i){return(A=I()?z.arraySet:E.arraySet)(t,e,r,n,i)},P=function(t){return(P=I()?z.flattenChunks:E.flattenChunks)(t)},T=function(t){return(T=I()?z.Buf8:E.Buf8)(t)},F=function(t){return(F=I()?z.Buf16:E.Buf16)(t)},D=function(t){return(D=I()?z.Buf32:E.Buf32)(t)},j=function(){var t=!0;try{String.fromCharCode.apply(null,[0])}catch(e){t=!1}return j=function(){return t},t},R=function(){var t=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){t=!1}return R=function(){return t},t},B=function(t){for(var e=T(256),r=0;r<256;r++)e[r]=r>=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;return e[254]=e[254]=1,B=function(t){return e[t]},e[t]};function U(t){var e,r,n,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=new Uint8Array(s),o=0,i=0;o<s;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|63&r);return e}function L(t,e){if(e<65534&&(t.subarray&&R()||!t.subarray&&j()))return String.fromCharCode.apply(null,S(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}function N(t,e){var r,n,i,o,a=e||t.length,s=new Array(2*a);for(n=0,r=0;r<a;)if((i=t[r++])<128)s[n++]=i;else if((o=B(i))>4)s[n++]=65533,r+=o-1;else{for(i&=2===o?31:3===o?15:7;o>1&&r<a;)i=i<<6|63&t[r++],o--;o>1?s[n++]=65533:i<65536?s[n++]=i:(i-=65536,s[n++]=55296|i>>10&1023,s[n++]=56320|1023&i)}return L(s,n)}function M(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+B(t[r])>e?r:e}function W(t,e,r,n){for(var i=65535&t|0,o=t>>>16&65535|0,a=0;0!==r;){r-=a=r>2e3?2e3:r;do{o=o+(i=i+e[n++]|0)|0}while(--a);i%=65521,o%=65521}return i|o<<16|0}var H=function(){var t=function(){for(var t,e=[],r=0;r<256;r++){t=r;for(var n=0;n<8;n++)t=1&t?3988292384^t>>>1:t>>>1;e[r]=t}return e}();return H=function(){return t},t};function q(t,e,r,n){var i=H(),o=n+r;t^=-1;for(var a=n;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t}var G=30,V=12;function Z(t,e){var r,n,i,o,a,s,l,h,u,c,d,p,f,m,g,v,_,y,b,w,x,k,C,O,S;r=t.state,n=t.next_in,O=t.input,i=n+(t.avail_in-5),o=t.next_out,S=t.output,a=o-(e-t.avail_out),s=o+(t.avail_out-257),l=r.dmax,h=r.wsize,u=r.whave,c=r.wnext,d=r.window,p=r.hold,f=r.bits,m=r.lencode,g=r.distcode,v=(1<<r.lenbits)-1,_=(1<<r.distbits)-1;t:do{f<15&&(p+=O[n++]<<f,f+=8,p+=O[n++]<<f,f+=8),y=m[p&v];e:for(;;){if(p>>>=b=y>>>24,f-=b,0==(b=y>>>16&255))S[o++]=65535&y;else{if(!(16&b)){if(0==(64&b)){y=m[(65535&y)+(p&(1<<b)-1)];continue e}if(32&b){r.mode=V;break t}t.msg="invalid literal/length code",r.mode=G;break t}w=65535&y,(b&=15)&&(f<b&&(p+=O[n++]<<f,f+=8),w+=p&(1<<b)-1,p>>>=b,f-=b),f<15&&(p+=O[n++]<<f,f+=8,p+=O[n++]<<f,f+=8),y=g[p&_];r:for(;;){if(p>>>=b=y>>>24,f-=b,!(16&(b=y>>>16&255))){if(0==(64&b)){y=g[(65535&y)+(p&(1<<b)-1)];continue r}t.msg="invalid distance code",r.mode=G;break t}if(x=65535&y,f<(b&=15)&&(p+=O[n++]<<f,(f+=8)<b&&(p+=O[n++]<<f,f+=8)),(x+=p&(1<<b)-1)>l){t.msg="invalid distance too far back",r.mode=G;break t}if(p>>>=b,f-=b,x>(b=o-a)){if((b=x-b)>u&&r.sane){t.msg="invalid distance too far back",r.mode=G;break t}if(k=0,C=d,0===c){if(k+=h-b,b<w){w-=b;do{S[o++]=d[k++]}while(--b);k=o-x,C=S}}else if(c<b){if(k+=h+c-b,(b-=c)<w){w-=b;do{S[o++]=d[k++]}while(--b);if(k=0,c<w){w-=b=c;do{S[o++]=d[k++]}while(--b);k=o-x,C=S}}}else if(k+=c-b,b<w){w-=b;do{S[o++]=d[k++]}while(--b);k=o-x,C=S}for(;w>2;)S[o++]=C[k++],S[o++]=C[k++],S[o++]=C[k++],w-=3;w&&(S[o++]=C[k++],w>1&&(S[o++]=C[k++]))}else{k=o-x;do{S[o++]=S[k++],S[o++]=S[k++],S[o++]=S[k++],w-=3}while(w>2);w&&(S[o++]=S[k++],w>1&&(S[o++]=S[k++]))}break}}break}}while(n<i&&o<s);n-=w=f>>3,p&=(1<<(f-=w<<3))-1,t.next_in=n,t.next_out=o,t.avail_in=n<i?i-n+5:5-(n-i),t.avail_out=o<s?s-o+257:257-(o-s),r.hold=p,r.bits=f}var K=15,X=852,J=592,$=0,Q=1,Y=2,tt=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],et=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],rt=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],nt=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];function it(t,e,r,n,i,o,a,s){var l,h,u,c,d,p,f,m,g,v=s.bits,_=0,y=0,b=0,w=0,x=0,k=0,C=0,O=0,S=0,z=0,E=null,I=0,A=F(K+1),P=F(K+1),T=null,D=0;for(_=0;_<=K;_++)A[_]=0;for(y=0;y<n;y++)A[e[r+y]]++;for(x=v,w=K;w>=1&&0===A[w];w--);if(x>w&&(x=w),0===w)return i[o++]=20971520,i[o++]=20971520,s.bits=1,0;for(b=1;b<w&&0===A[b];b++);for(x<b&&(x=b),O=1,_=1;_<=K;_++)if(O<<=1,(O-=A[_])<0)return-1;if(O>0&&(t===$||1!==w))return-1;for(P[1]=0,_=1;_<K;_++)P[_+1]=P[_]+A[_];for(y=0;y<n;y++)0!==e[r+y]&&(a[P[e[r+y]]++]=y);if(t===$?(E=T=a,p=19):t===Q?(E=tt,I-=257,T=et,D-=257,p=256):(E=rt,T=nt,p=-1),z=0,y=0,_=b,d=o,k=x,C=0,u=-1,c=(S=1<<x)-1,t===Q&&S>X||t===Y&&S>J)return 1;for(;;){f=_-C,a[y]<p?(m=0,g=a[y]):a[y]>p?(m=T[D+a[y]],g=E[I+a[y]]):(m=96,g=0),l=1<<_-C,b=h=1<<k;do{i[d+(z>>C)+(h-=l)]=f<<24|m<<16|g|0}while(0!==h);for(l=1<<_-1;z&l;)l>>=1;if(0!==l?(z&=l-1,z+=l):z=0,y++,0==--A[_]){if(_===w)break;_=e[r+a[y]]}if(_>x&&(z&c)!==u){for(0===C&&(C=x),d+=b,O=1<<(k=_-C);k+C<w&&!((O-=A[k+C])<=0);)k++,O<<=1;if(S+=1<<k,t===Q&&S>X||t===Y&&S>J)return 1;i[u=z&c]=x<<24|k<<16|d-o|0}}return 0!==z&&(i[d+z]=_-C<<24|64<<16|0),s.bits=x,0}var ot=1,at=2,st=0,lt=-2,ht=1,ut=12,ct=30,dt=852,pt=592;function ft(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function mt(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=F(320),this.work=F(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function gt(t,e){var r,n;return t?(n=new mt,t.state=n,n.window=null,r=function(t,e){var r,n;return t&&t.state?(n=t.state,e<0?(r=0,e=-e):(r=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?lt:(null!==n.window&&n.wbits!==e&&(n.window=null),n.wrap=r,n.wbits=e,function(t){var e;return t&&t.state?((e=t.state).wsize=0,e.whave=0,e.wnext=0,function(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=ht,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=D(dt),e.distcode=e.distdyn=D(pt),e.sane=1,e.back=-1,st):lt}(t)):lt}(t))):lt}(t,e),r!==st&&(t.state=null),r):lt}var vt,_t,yt=!0;function bt(t){if(yt){var e;for(vt=D(512),_t=D(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(it(ot,t.lens,0,288,vt,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;it(at,t.lens,0,32,_t,0,t.work,{bits:5}),yt=!1}t.lencode=vt,t.lenbits=9,t.distcode=_t,t.distbits=5}function wt(t,e,r,n){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=T(o.wsize)),n>=o.wsize?(A(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>n&&(i=n),A(o.window,e,r-n,i,o.wnext),(n-=i)?(A(o.window,e,r-n,n,0),o.wnext=n,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}function xt(t,e){var r,n,i,o,a,s,l,h,u,c,d,p,f,m,g,v,_,y,b,w,x,k,C,O,S=0,z=T(4),E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return lt;(r=t.state).mode===ut&&(r.mode=13),a=t.next_out,i=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,h=r.hold,u=r.bits,c=s,d=l,k=st;t:for(;;)switch(r.mode){case ht:if(0===r.wrap){r.mode=13;break}for(;u<16;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(2&r.wrap&&35615===h){r.check=0,z[0]=255&h,z[1]=h>>>8&255,r.check=q(r.check,z,2,0),h=0,u=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&h)<<8)+(h>>8))%31){t.msg="incorrect header check",r.mode=ct;break}if(8!=(15&h)){t.msg="unknown compression method",r.mode=ct;break}if(u-=4,x=8+(15&(h>>>=4)),0===r.wbits)r.wbits=x;else if(x>r.wbits){t.msg="invalid window size",r.mode=ct;break}r.dmax=1<<x,t.adler=r.check=1,r.mode=512&h?10:ut,h=0,u=0;break;case 2:for(;u<16;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(r.flags=h,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=ct;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=ct;break}r.head&&(r.head.text=h>>8&1),512&r.flags&&(z[0]=255&h,z[1]=h>>>8&255,r.check=q(r.check,z,2,0)),h=0,u=0,r.mode=3;case 3:for(;u<32;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}r.head&&(r.head.time=h),512&r.flags&&(z[0]=255&h,z[1]=h>>>8&255,z[2]=h>>>16&255,z[3]=h>>>24&255,r.check=q(r.check,z,4,0)),h=0,u=0,r.mode=4;case 4:for(;u<16;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}r.head&&(r.head.xflags=255&h,r.head.os=h>>8),512&r.flags&&(z[0]=255&h,z[1]=h>>>8&255,r.check=q(r.check,z,2,0)),h=0,u=0,r.mode=5;case 5:if(1024&r.flags){for(;u<16;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}r.length=h,r.head&&(r.head.extra_len=h),512&r.flags&&(z[0]=255&h,z[1]=h>>>8&255,r.check=q(r.check,z,2,0)),h=0,u=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&((p=r.length)>s&&(p=s),p&&(r.head&&(x=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),A(r.head.extra,n,o,p,x)),512&r.flags&&(r.check=q(r.check,n,p,o)),s-=p,o+=p,r.length-=p),r.length))break t;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===s)break t;p=0;do{x=n[o+p++],r.head&&x&&r.length<65536&&(r.head.name+=String.fromCharCode(x))}while(x&&p<s);if(512&r.flags&&(r.check=q(r.check,n,p,o)),s-=p,o+=p,x)break t}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===s)break t;p=0;do{x=n[o+p++],r.head&&x&&r.length<65536&&(r.head.comment+=String.fromCharCode(x))}while(x&&p<s);if(512&r.flags&&(r.check=q(r.check,n,p,o)),s-=p,o+=p,x)break t}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;u<16;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(h!==(65535&r.check)){t.msg="header crc mismatch",r.mode=ct;break}h=0,u=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=ut;break;case 10:for(;u<32;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}t.adler=r.check=ft(h),h=0,u=0,r.mode=11;case 11:if(0===r.havedict)return t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=h,r.bits=u,2;t.adler=r.check=1,r.mode=ut;case ut:if(5===e||6===e)break t;case 13:if(r.last){h>>>=7&u,u-=7&u,r.mode=27;break}for(;u<3;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}switch(r.last=1&h,u-=1,3&(h>>>=1)){case 0:r.mode=14;break;case 1:if(bt(r),r.mode=20,6===e){h>>>=2,u-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=ct}h>>>=2,u-=2;break;case 14:for(h>>>=7&u,u-=7&u;u<32;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",r.mode=ct;break}if(r.length=65535&h,h=0,u=0,r.mode=15,6===e)break t;case 15:r.mode=16;case 16:if(p=r.length){if(p>s&&(p=s),p>l&&(p=l),0===p)break t;A(i,n,o,p,a),s-=p,o+=p,l-=p,a+=p,r.length-=p;break}r.mode=ut;break;case 17:for(;u<14;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(r.nlen=257+(31&h),h>>>=5,u-=5,r.ndist=1+(31&h),h>>>=5,u-=5,r.ncode=4+(15&h),h>>>=4,u-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=ct;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;u<3;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}r.lens[E[r.have++]]=7&h,h>>>=3,u-=3}for(;r.have<19;)r.lens[E[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},k=it(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,k){t.msg="invalid code lengths set",r.mode=ct;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;v=(S=r.lencode[h&(1<<r.lenbits)-1])>>>16&255,_=65535&S,!((g=S>>>24)<=u);){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(_<16)h>>>=g,u-=g,r.lens[r.have++]=_;else{if(16===_){for(O=g+2;u<O;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(h>>>=g,u-=g,0===r.have){t.msg="invalid bit length repeat",r.mode=ct;break}x=r.lens[r.have-1],p=3+(3&h),h>>>=2,u-=2}else if(17===_){for(O=g+3;u<O;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}u-=g,x=0,p=3+(7&(h>>>=g)),h>>>=3,u-=3}else{for(O=g+7;u<O;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}u-=g,x=0,p=11+(127&(h>>>=g)),h>>>=7,u-=7}if(r.have+p>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=ct;break}for(;p--;)r.lens[r.have++]=x}}if(r.mode===ct)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=ct;break}if(r.lenbits=9,C={bits:r.lenbits},k=it(ot,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,k){t.msg="invalid literal/lengths set",r.mode=ct;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},k=it(at,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,k){t.msg="invalid distances set",r.mode=ct;break}if(r.mode=20,6===e)break t;case 20:r.mode=21;case 21:if(s>=6&&l>=258){t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=h,r.bits=u,Z(t,d),a=t.next_out,i=t.output,l=t.avail_out,o=t.next_in,n=t.input,s=t.avail_in,h=r.hold,u=r.bits,r.mode===ut&&(r.back=-1);break}for(r.back=0;v=(S=r.lencode[h&(1<<r.lenbits)-1])>>>16&255,_=65535&S,!((g=S>>>24)<=u);){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(v&&0==(240&v)){for(y=g,b=v,w=_;v=(S=r.lencode[w+((h&(1<<y+b)-1)>>y)])>>>16&255,_=65535&S,!(y+(g=S>>>24)<=u);){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}h>>>=y,u-=y,r.back+=y}if(h>>>=g,u-=g,r.back+=g,r.length=_,0===v){r.mode=26;break}if(32&v){r.back=-1,r.mode=ut;break}if(64&v){t.msg="invalid literal/length code",r.mode=ct;break}r.extra=15&v,r.mode=22;case 22:if(r.extra){for(O=r.extra;u<O;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}r.length+=h&(1<<r.extra)-1,h>>>=r.extra,u-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;v=(S=r.distcode[h&(1<<r.distbits)-1])>>>16&255,_=65535&S,!((g=S>>>24)<=u);){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(0==(240&v)){for(y=g,b=v,w=_;v=(S=r.distcode[w+((h&(1<<y+b)-1)>>y)])>>>16&255,_=65535&S,!(y+(g=S>>>24)<=u);){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}h>>>=y,u-=y,r.back+=y}if(h>>>=g,u-=g,r.back+=g,64&v){t.msg="invalid distance code",r.mode=ct;break}r.offset=_,r.extra=15&v,r.mode=24;case 24:if(r.extra){for(O=r.extra;u<O;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}r.offset+=h&(1<<r.extra)-1,h>>>=r.extra,u-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=ct;break}r.mode=25;case 25:if(0===l)break t;if(p=d-l,r.offset>p){if((p=r.offset-p)>r.whave&&r.sane){t.msg="invalid distance too far back",r.mode=ct;break}p>r.wnext?(p-=r.wnext,f=r.wsize-p):f=r.wnext-p,p>r.length&&(p=r.length),m=r.window}else m=i,f=a-r.offset,p=r.length;p>l&&(p=l),l-=p,r.length-=p;do{i[a++]=m[f++]}while(--p);0===r.length&&(r.mode=21);break;case 26:if(0===l)break t;i[a++]=r.length,l--,r.mode=21;break;case 27:if(r.wrap){for(;u<32;){if(0===s)break t;s--,h|=n[o++]<<u,u+=8}if(d-=l,t.total_out+=d,r.total+=d,d&&(t.adler=r.check=r.flags?q(r.check,i,d,a-d):W(r.check,i,d,a-d)),d=l,(r.flags?h:ft(h))!==r.check){t.msg="incorrect data check",r.mode=ct;break}h=0,u=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;u<32;){if(0===s)break t;s--,h+=n[o++]<<u,u+=8}if(h!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=ct;break}h=0,u=0}r.mode=29;case 29:k=1;break t;case ct:k=-3;break t;case 31:return-4;default:return lt}return t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=h,r.bits=u,(r.wsize||d!==t.avail_out&&r.mode<ct&&(r.mode<27||4!==e))&&wt(t,t.output,t.next_out,d-t.avail_out),c-=t.avail_in,d-=t.avail_out,t.total_in+=c,t.total_out+=d,r.total+=d,r.wrap&&d&&(t.adler=r.check=r.flags?q(r.check,i,d,t.next_out-d):W(r.check,i,d,t.next_out-d)),t.data_type=r.bits+(r.last?64:0)+(r.mode===ut?128:0)+(20===r.mode||15===r.mode?256:0),(0===c&&0===d||4===e)&&k===st&&(k=-5),k}function kt(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?lt:11===r.mode&&W(1,e,n,0)!==r.check?-3:wt(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,st):lt}var Ct={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};function Ot(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}function St(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var zt=Object.prototype.toString,Et=function t(e){if(!(this instanceof t))return new t(e);this.options=O({chunkSize:16384,windowBits:0,to:""},e||{});var r=this.options;r.raw&&r.windowBits>=0&&r.windowBits<16&&(r.windowBits=-r.windowBits,0===r.windowBits&&(r.windowBits=-15)),!(r.windowBits>=0&&r.windowBits<16)||e&&e.windowBits||(r.windowBits+=32),r.windowBits>15&&r.windowBits<48&&0==(15&r.windowBits)&&(r.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ot,this.strm.avail_out=0;var n,i,o,a=gt(this.strm,r.windowBits);if(0!==a)throw new Error(Ct[a]);if(this.header=new St,n=this.strm,i=this.header,n&&n.state&&(0==(2&(o=n.state).wrap)||(o.head=i,i.done=!1)),r.dictionary&&("string"==typeof r.dictionary?r.dictionary=U(r.dictionary):"[object ArrayBuffer]"===zt.call(r.dictionary)&&(r.dictionary=new Uint8Array(r.dictionary)),r.raw&&0!==(a=kt(this.strm,r.dictionary))))throw new Error(Ct[a])};function It(t){for(var e=t.length;--e>=0;)t[e]=0}Et.prototype.push=function(t,e){var r,n,i,o,a,s,l=this.strm,h=this.options.chunkSize,u=this.options.dictionary,c=!1;if(this.ended)return!1;n=e===~~e?e:!0===e?4:0,"string"==typeof t?l.input=function(t){for(var e=new Uint8Array(t.length),r=0,n=e.length;r<n;r++)e[r]=t.charCodeAt(r);return e}(t):"[object ArrayBuffer]"===zt.call(t)?l.input=new Uint8Array(t):l.input=t,l.next_in=0,l.avail_in=l.input.length;do{if(0===l.avail_out&&(l.output=T(h),l.next_out=0,l.avail_out=h),2===(r=xt(l,0))&&u&&(s="string"==typeof u?U(u):"[object ArrayBuffer]"===zt.call(u)?new Uint8Array(u):u,r=kt(this.strm,s)),-5===r&&!0===c&&(r=0,c=!1),1!==r&&0!==r)return this.onEnd(r),this.ended=!0,!1;l.next_out&&(0!==l.avail_out&&1!==r&&(0!==l.avail_in||4!==n&&2!==n)||("string"===this.options.to?(i=M(l.output,l.next_out),o=l.next_out-i,a=N(l.output,i),l.next_out=o,l.avail_out=h-o,o&&A(l.output,l.output,i,o,0),this.onData(a)):this.onData(S(l.output,l.next_out)))),0===l.avail_in&&0===l.avail_out&&(c=!0)}while((l.avail_in>0||0===l.avail_out)&&1!==r);return 1===r&&(n=4),4===n?(r=function(t){if(!t||!t.state)return lt;var e=t.state;return e.window&&(e.window=null),t.state=null,st}(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),l.avail_out=0,!0)},Et.prototype.onData=function(t){this.chunks.push(t)},Et.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=P(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var At,Pt,Tt,Ft,Dt,jt,Rt,Bt,Ut,Lt=0,Nt=1,Mt=2,Wt=3,Ht=258,qt=29,Gt=256,Vt=Gt+1+qt,Zt=30,Kt=19,Xt=2*Vt+1,Jt=15,$t=16,Qt=7,Yt=256,te=16,ee=17,re=18,ne=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],ie=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],oe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ae=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],se=512;function le(t,e,r,n,i){this.static_tree=t,this.extra_bits=e,this.extra_base=r,this.elems=n,this.max_length=i,this.has_stree=t&&t.length}function he(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function ue(t){return t<256?Tt[t]:Tt[256+(t>>>7)]}function ce(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function de(t,e,r){t.bi_valid>$t-r?(t.bi_buf|=e<<t.bi_valid&65535,ce(t,t.bi_buf),t.bi_buf=e>>$t-t.bi_valid,t.bi_valid+=r-$t):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function pe(t,e,r){de(t,r[2*e],r[2*e+1])}function fe(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function me(t,e,r){var n,i,o=new Array(Jt+1),a=0;for(n=1;n<=Jt;n++)o[n]=a=a+r[n-1]<<1;for(i=0;i<=e;i++){var s=t[2*i+1];0!==s&&(t[2*i]=fe(o[s]++,s))}}function ge(t){var e;for(e=0;e<Vt;e++)t.dyn_ltree[2*e]=0;for(e=0;e<Zt;e++)t.dyn_dtree[2*e]=0;for(e=0;e<Kt;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*Yt]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function ve(t){t.bi_valid>8?ce(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function _e(t,e,r,n){var i=2*e,o=2*r;return t[i]<t[o]||t[i]===t[o]&&n[e]<=n[r]}function ye(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&_e(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!_e(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function be(t,e,r){var n,i,o,a,s=0;if(0!==t.last_lit)do{n=t.pending_buf[t.d_buf+2*s]<<8|t.pending_buf[t.d_buf+2*s+1],i=t.pending_buf[t.l_buf+s],s++,0===n?pe(t,i,e):(pe(t,(o=Ft[i])+Gt+1,e),0!==(a=ne[o])&&de(t,i-=Dt[o],a),pe(t,o=ue(--n),r),0!==(a=ie[o])&&de(t,n-=jt[o],a))}while(s<t.last_lit);pe(t,Yt,e)}function we(t,e){var r,n,i,o=e.dyn_tree,a=e.stat_desc.static_tree,s=e.stat_desc.has_stree,l=e.stat_desc.elems,h=-1;for(t.heap_len=0,t.heap_max=Xt,r=0;r<l;r++)0!==o[2*r]?(t.heap[++t.heap_len]=h=r,t.depth[r]=0):o[2*r+1]=0;for(;t.heap_len<2;)o[2*(i=t.heap[++t.heap_len]=h<2?++h:0)]=1,t.depth[i]=0,t.opt_len--,s&&(t.static_len-=a[2*i+1]);for(e.max_code=h,r=t.heap_len>>1;r>=1;r--)ye(t,o,r);i=l;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],ye(t,o,1),n=t.heap[1],t.heap[--t.heap_max]=r,t.heap[--t.heap_max]=n,o[2*i]=o[2*r]+o[2*n],t.depth[i]=(t.depth[r]>=t.depth[n]?t.depth[r]:t.depth[n])+1,o[2*r+1]=o[2*n+1]=i,t.heap[1]=i++,ye(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],function(t,e){var r,n,i,o,a,s,l=e.dyn_tree,h=e.max_code,u=e.stat_desc.static_tree,c=e.stat_desc.has_stree,d=e.stat_desc.extra_bits,p=e.stat_desc.extra_base,f=e.stat_desc.max_length,m=0;for(o=0;o<=Jt;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<Xt;r++)(o=l[2*l[2*(n=t.heap[r])+1]+1]+1)>f&&(o=f,m++),l[2*n+1]=o,n>h||(t.bl_count[o]++,a=0,n>=p&&(a=d[n-p]),s=l[2*n],t.opt_len+=s*(o+a),c&&(t.static_len+=s*(u[2*n+1]+a)));if(0!==m){do{for(o=f-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[f]--,m-=2}while(m>0);for(o=f;0!==o;o--)for(n=t.bl_count[o];0!==n;)(i=t.heap[--r])>h||(l[2*i+1]!==o&&(t.opt_len+=(o-l[2*i+1])*l[2*i],l[2*i+1]=o),n--)}}(t,e),me(o,h,t.bl_count)}function xe(t,e,r){var n,i,o=-1,a=e[1],s=0,l=7,h=4;for(0===a&&(l=138,h=3),e[2*(r+1)+1]=65535,n=0;n<=r;n++)i=a,a=e[2*(n+1)+1],++s<l&&i===a||(s<h?t.bl_tree[2*i]+=s:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*te]++):s<=10?t.bl_tree[2*ee]++:t.bl_tree[2*re]++,s=0,o=i,0===a?(l=138,h=3):i===a?(l=6,h=3):(l=7,h=4))}function ke(t,e,r){var n,i,o=-1,a=e[1],s=0,l=7,h=4;for(0===a&&(l=138,h=3),n=0;n<=r;n++)if(i=a,a=e[2*(n+1)+1],!(++s<l&&i===a)){if(s<h)do{pe(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(pe(t,i,t.bl_tree),s--),pe(t,te,t.bl_tree),de(t,s-3,2)):s<=10?(pe(t,ee,t.bl_tree),de(t,s-3,3)):(pe(t,re,t.bl_tree),de(t,s-11,7));s=0,o=i,0===a?(l=138,h=3):i===a?(l=6,h=3):(l=7,h=4)}}var Ce=!1;function Oe(t,e,r,n){de(t,(Lt<<1)+(n?1:0),3),function(t,e,r,n){ve(t),ce(t,r),ce(t,~r),A(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r)}function Se(t,e,r){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&r,t.last_lit++,0===e?t.dyn_ltree[2*r]++:(t.matches++,e--,t.dyn_ltree[2*(Ft[r]+Gt+1)]++,t.dyn_dtree[2*ue(e)]++),t.last_lit===t.lit_bufsize-1}var ze=3,Ee=258,Ie=Ee+ze+1,Ae=103,Pe=113,Te=666;function Fe(t,e){return t.msg=Ct[e],e}function De(t){return(t<<1)-(t>4?9:0)}function je(t){for(var e=t.length;--e>=0;)t[e]=0}function Re(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(A(t.output,e.pending_buf,e.pending_out,r,t.next_out),t.next_out+=r,e.pending_out+=r,t.total_out+=r,t.avail_out-=r,e.pending-=r,0===e.pending&&(e.pending_out=0))}function Be(t,e){(function(t,e,r,n){var i,o,a=0;t.level>0?(t.strm.data_type===k&&(t.strm.data_type=function(t){var e,r=4093624447;for(e=0;e<=31;e++,r>>>=1)if(1&r&&0!==t.dyn_ltree[2*e])return w;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return x;for(e=32;e<Gt;e++)if(0!==t.dyn_ltree[2*e])return x;return w}(t)),we(t,t.l_desc),we(t,t.d_desc),a=function(t){var e;for(xe(t,t.dyn_ltree,t.l_desc.max_code),xe(t,t.dyn_dtree,t.d_desc.max_code),we(t,t.bl_desc),e=Kt-1;e>=3&&0===t.bl_tree[2*ae[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=r+5,r+4<=i&&-1!==e?Oe(t,e,r,n):t.strategy===b||o===i?(de(t,(Nt<<1)+(n?1:0),3),be(t,At,Pt)):(de(t,(Mt<<1)+(n?1:0),3),function(t,e,r,n){var i;for(de(t,e-257,5),de(t,r-1,5),de(t,n-4,4),i=0;i<n;i++)de(t,t.bl_tree[2*ae[i]+1],3);ke(t,t.dyn_ltree,e-1),ke(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),be(t,t.dyn_ltree,t.dyn_dtree)),ge(t),n&&ve(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,Re(t.strm)}function Ue(t,e){t.pending_buf[t.pending++]=e}function Le(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function Ne(t,e){var r,n,i=t.max_chain_length,o=t.strstart,a=t.prev_length,s=t.nice_match,l=t.strstart>t.w_size-Ie?t.strstart-(t.w_size-Ie):0,h=t.window,u=t.w_mask,c=t.prev,d=t.strstart+Ee,p=h[o+a-1],f=h[o+a];t.prev_length>=t.good_match&&(i>>=2),s>t.lookahead&&(s=t.lookahead);do{if(h[(r=e)+a]===f&&h[r+a-1]===p&&h[r]===h[o]&&h[++r]===h[o+1]){o+=2,r++;do{}while(h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&h[++o]===h[++r]&&o<d);if(n=Ee-(d-o),o=d-Ee,n>a){if(t.match_start=e,a=n,n>=s)break;p=h[o+a-1],f=h[o+a]}}}while((e=c[e&u])>l&&0!=--i);return a<=t.lookahead?a:t.lookahead}function Me(t){var e,r,n,i,o,a,s,l,h,u,c=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=c+(c-Ie)){A(t.window,t.window,c,c,0),t.match_start-=c,t.strstart-=c,t.block_start-=c,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=c?n-c:0}while(--r);e=r=c;do{n=t.prev[--e],t.prev[e]=n>=c?n-c:0}while(--r);i+=c}if(0===t.strm.avail_in)break;if(a=t.strm,s=t.window,l=t.strstart+t.lookahead,h=i,u=void 0,(u=a.avail_in)>h&&(u=h),r=0===u?0:(a.avail_in-=u,A(s,a.input,a.next_in,u,l),1===a.state.wrap?a.adler=W(a.adler,s,u,l):2===a.state.wrap&&(a.adler=q(a.adler,s,u,l)),a.next_in+=u,a.total_in+=u,u),t.lookahead+=r,t.lookahead+t.insert>=ze)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+ze-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<ze)););}while(t.lookahead<Ie&&0!==t.strm.avail_in)}function We(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(Me(t),0===t.lookahead&&0===e)return 1;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var n=t.block_start+r;if((0===t.strstart||t.strstart>=n)&&(t.lookahead=t.strstart-n,t.strstart=n,Be(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-Ie&&(Be(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Be(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Be(t,!1),t.strm.avail_out),1)}function He(t,e){for(var r,n;;){if(t.lookahead<Ie){if(Me(t),t.lookahead<Ie&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=ze&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+ze-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==r&&t.strstart-r<=t.w_size-Ie&&(t.match_length=Ne(t,r)),t.match_length>=ze)if(n=Se(t,t.strstart-t.match_start,t.match_length-ze),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=ze){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+ze-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else n=Se(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Be(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<ze-1?t.strstart:ze-1,4===e?(Be(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Be(t,!1),0===t.strm.avail_out)?1:2}function qe(t,e){for(var r,n,i;;){if(t.lookahead<Ie){if(Me(t),t.lookahead<Ie&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=ze&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+ze-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=ze-1,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-Ie&&(t.match_length=Ne(t,r),t.match_length<=5&&(1===t.strategy||t.match_length===ze&&t.strstart-t.match_start>4096)&&(t.match_length=ze-1)),t.prev_length>=ze&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-ze,n=Se(t,t.strstart-1-t.prev_match,t.prev_length-ze),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+ze-1])&t.hash_mask,r=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=ze-1,t.strstart++,n&&(Be(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=Se(t,0,t.window[t.strstart-1]))&&Be(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return 1}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(n=Se(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<ze-1?t.strstart:ze-1,4===e?(Be(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Be(t,!1),0===t.strm.avail_out)?1:2}function Ge(t,e,r,n,i){this.good_length=t,this.max_lazy=e,this.nice_length=r,this.max_chain=n,this.func=i}var Ve=function(){var t=[new Ge(0,0,0,0,We),new Ge(4,4,8,4,He),new Ge(4,5,16,8,He),new Ge(4,6,32,32,He),new Ge(4,4,16,16,qe),new Ge(8,16,32,32,qe),new Ge(8,16,128,128,qe),new Ge(8,32,128,256,qe),new Ge(32,128,258,1024,qe),new Ge(32,258,258,4096,qe)];return Ve=function(){return t},t};function Ze(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=8,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=F(1146),this.dyn_dtree=F(122),this.bl_tree=F(78),je(this.dyn_ltree),je(this.dyn_dtree),je(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=F(16),this.heap=F(573),je(this.heap),this.heap_len=0,this.heap_max=0,this.depth=F(573),je(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ke(t){var e=function(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=k,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:Pe,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){Ce||(function(){var t,e,r,n,i,o=new Array(Jt+1);for(It(At=new Array(2*(Vt+2))),It(Pt=new Array(2*Zt)),It(Tt=new Array(se)),It(Ft=new Array(Ht-Wt+1)),It(Dt=new Array(qt)),It(jt=new Array(Zt)),r=0,n=0;n<qt-1;n++)for(Dt[n]=r,t=0;t<1<<ne[n];t++)Ft[r++]=n;for(Ft[r-1]=n,i=0,n=0;n<16;n++)for(jt[n]=i,t=0;t<1<<ie[n];t++)Tt[i++]=n;for(i>>=7;n<Zt;n++)for(jt[n]=i<<7,t=0;t<1<<ie[n]-7;t++)Tt[256+i++]=n;for(e=0;e<=Jt;e++)o[e]=0;for(t=0;t<=143;)At[2*t+1]=8,t++,o[8]++;for(;t<=255;)At[2*t+1]=9,t++,o[9]++;for(;t<=279;)At[2*t+1]=7,t++,o[7]++;for(;t<=287;)At[2*t+1]=8,t++,o[8]++;for(me(At,Vt+1,o),t=0;t<Zt;t++)Pt[2*t+1]=5,Pt[2*t]=fe(t,5);Rt=new le(At,ne,Gt+1,Vt,Jt),Bt=new le(Pt,ie,0,Zt,Jt),Ut=new le(new Array(0),oe,0,Kt,Qt)}(),Ce=!0),t.l_desc=new he(t.dyn_ltree,Rt),t.d_desc=new he(t.dyn_dtree,Bt),t.bl_desc=new he(t.bl_tree,Ut),t.bi_buf=0,t.bi_valid=0,ge(t)}(e),0):Fe(t,y)}(t);return 0===e&&function(t){t.window_size=2*t.w_size,je(t.head);var e=Ve();t.max_lazy_match=e[t.level].max_lazy,t.good_match=e[t.level].good_length,t.nice_match=e[t.level].nice_length,t.max_chain_length=e[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=ze-1,t.match_available=0,t.ins_h=0}(t.state),e}function Xe(t,e){var r,n,i,o;if(!t||!t.state||e>5||e<0)return t?Fe(t,y):y;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||n.status===Te&&4!==e)return Fe(t,0===t.avail_out?-5:y);if(n.strm=t,r=n.last_flush,n.last_flush=e,42===n.status)if(2===n.wrap)t.adler=0,Ue(n,31),Ue(n,139),Ue(n,8),n.gzhead?(Ue(n,(n.gzhead.text?1:0)+(n.gzhead.hcrc?2:0)+(n.gzhead.extra?4:0)+(n.gzhead.name?8:0)+(n.gzhead.comment?16:0)),Ue(n,255&n.gzhead.time),Ue(n,n.gzhead.time>>8&255),Ue(n,n.gzhead.time>>16&255),Ue(n,n.gzhead.time>>24&255),Ue(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Ue(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Ue(n,255&n.gzhead.extra.length),Ue(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=q(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(Ue(n,0),Ue(n,0),Ue(n,0),Ue(n,0),Ue(n,0),Ue(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Ue(n,3),n.status=Pe);else{var a=8+(n.w_bits-8<<4)<<8;a|=(n.strategy>=2||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(a|=32),a+=31-a%31,n.status=Pe,Le(n,a),0!==n.strstart&&(Le(n,t.adler>>>16),Le(n,65535&t.adler)),t.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(t.adler=q(t.adler,n.pending_buf,n.pending-i,i)),Re(t),i=n.pending,n.pending!==n.pending_buf_size));)Ue(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=q(t.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=q(t.adler,n.pending_buf,n.pending-i,i)),Re(t),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindex<n.gzhead.name.length?255&n.gzhead.name.charCodeAt(n.gzindex++):0,Ue(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(t.adler=q(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(t.adler=q(t.adler,n.pending_buf,n.pending-i,i)),Re(t),i=n.pending,n.pending===n.pending_buf_size)){o=1;break}o=n.gzindex<n.gzhead.comment.length?255&n.gzhead.comment.charCodeAt(n.gzindex++):0,Ue(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(t.adler=q(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=Ae)}else n.status=Ae;if(n.status===Ae&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&Re(t),n.pending+2<=n.pending_buf_size&&(Ue(n,255&t.adler),Ue(n,t.adler>>8&255),t.adler=0,n.status=Pe)):n.status=Pe),0!==n.pending){if(Re(t),0===t.avail_out)return n.last_flush=-1,0}else if(0===t.avail_in&&De(e)<=De(r)&&4!==e)return Fe(t,-5);if(n.status===Te&&0!==t.avail_in)return Fe(t,-5);if(0!==t.avail_in||0!==n.lookahead||0!==e&&n.status!==Te){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(Me(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=Se(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Be(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Be(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Be(t,!1),0===t.strm.avail_out)?1:2}(n,e):3===n.strategy?function(t,e){for(var r,n,i,o,a=t.window;;){if(t.lookahead<=Ee){if(Me(t),t.lookahead<=Ee&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=ze&&t.strstart>0&&(n=a[i=t.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){o=t.strstart+Ee;do{}while(n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&n===a[++i]&&i<o);t.match_length=Ee-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=ze?(r=Se(t,1,t.match_length-ze),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=Se(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Be(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Be(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Be(t,!1),0===t.strm.avail_out)?1:2}(n,e):Ve()[n.level].func(n,e);if(3!==s&&4!==s||(n.status=Te),1===s||3===s)return 0===t.avail_out&&(n.last_flush=-1),0;if(2===s&&(1===e?function(t){de(t,Nt<<1,3),pe(t,Yt,At),function(t){16===t.bi_valid?(ce(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}(t)}(n):5!==e&&(Oe(n,0,0,!1),3===e&&(je(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),Re(t),0===t.avail_out))return n.last_flush=-1,0}return 4!==e?0:n.wrap<=0?1:(2===n.wrap?(Ue(n,255&t.adler),Ue(n,t.adler>>8&255),Ue(n,t.adler>>16&255),Ue(n,t.adler>>24&255),Ue(n,255&t.total_in),Ue(n,t.total_in>>8&255),Ue(n,t.total_in>>16&255),Ue(n,t.total_in>>24&255)):(Le(n,t.adler>>>16),Le(n,65535&t.adler)),Re(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)}var Je=Object.prototype.toString,$e=function(t){this.options=O({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},t||{});var e=this.options;e.raw&&e.windowBits>0?e.windowBits=-e.windowBits:e.gzip&&e.windowBits>0&&e.windowBits<16&&(e.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Ot,this.strm.avail_out=0;var r,n,i=function(t,e,r,n,i,o){if(!t)return y;var a=1;if(-1===e&&(e=6),n<0?(a=0,n=-n):n>15&&(a=2,n-=16),i<1||i>9||8!==r||n<8||n>15||e<0||e>9||o<0||o>b)return Fe(t,y);8===n&&(n=9);var s=new Ze;return t.state=s,s.strm=t,s.wrap=a,s.gzhead=null,s.w_bits=n,s.w_size=1<<s.w_bits,s.w_mask=s.w_size-1,s.hash_bits=i+7,s.hash_size=1<<s.hash_bits,s.hash_mask=s.hash_size-1,s.hash_shift=~~((s.hash_bits+ze-1)/ze),s.window=T(2*s.w_size),s.head=F(s.hash_size),s.prev=F(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=T(s.pending_buf_size),s.d_buf=1*s.lit_bufsize,s.l_buf=3*s.lit_bufsize,s.level=e,s.strategy=o,s.method=r,Ke(t)}(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==i)throw new Error(Ct[i]);if(e.header&&(r=this.strm,n=e.header,r&&r.state&&(2!==r.state.wrap||(r.state.gzhead=n))),e.dictionary){var o;if(o="string"==typeof e.dictionary?U(e.dictionary):"[object ArrayBuffer]"===Je.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,i=function(t,e){var r,n,i,o,a,s,l,h,u=e.length;if(!t||!t.state)return y;if(2===(o=(r=t.state).wrap)||1===o&&42!==r.status||r.lookahead)return y;for(1===o&&(t.adler=W(t.adler,e,u,0)),r.wrap=0,u>=r.w_size&&(0===o&&(je(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=T(r.w_size),A(h,e,u-r.w_size,r.w_size,0),e=h,u=r.w_size),a=t.avail_in,s=t.next_in,l=t.input,t.avail_in=u,t.next_in=0,t.input=e,Me(r);r.lookahead>=ze;){n=r.strstart,i=r.lookahead-(ze-1);do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+ze-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++}while(--i);r.strstart=n,r.lookahead=ze-1,Me(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=ze-1,r.match_available=0,t.next_in=s,t.input=l,t.avail_in=a,r.wrap=o,0}(this.strm,o),0!==i)throw new Error(Ct[i]);this._dict_set=!0}};$e.prototype.push=function(t,e){var r,n,i,o=this.strm,a=this.options.chunkSize;if(this.ended)return!1;n=e===~~e?e:!0===e?4:0,"string"==typeof t?o.input=U(t):"[object ArrayBuffer]"===Je.call(t)?o.input=new Uint8Array(t):o.input=t,o.next_in=0,o.avail_in=o.input.length;do{if(0===o.avail_out&&(o.output=T(a),o.next_out=0,o.avail_out=a),1!==(r=Xe(o,n))&&0!==r)return this.onEnd(r),this.ended=!0,!1;0!==o.avail_out&&(0!==o.avail_in||4!==n&&2!==n)||("string"===this.options.to?this.onData(L(i=S(o.output,o.next_out),i.length)):this.onData(S(o.output,o.next_out)))}while((o.avail_in>0||0===o.avail_out)&&1!==r);return 4===n?(r=function(t){var e;return t&&t.state?42!==(e=t.state.status)&&69!==e&&73!==e&&91!==e&&e!==Ae&&e!==Pe&&e!==Te?Fe(t,y):(t.state=null,e===Pe?Fe(t,-3):0):y}(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),o.avail_out=0,!0)},$e.prototype.onData=function(t){this.chunks.push(t)},$e.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=P(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var Qe={Promise},Ye={base64:!0,array:!0,string:!0,nodebuffer:!1,nodestream:!1,get arraybuffer(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},get uint8array(){return"undefined"!=typeof Uint8Array},get blob(){return tr()}},tr=function(){var t;if("undefined"==typeof ArrayBuffer)t=!1;else{var e=new ArrayBuffer(0);try{t=0===new Blob([e],{type:"application/zip"}).size}catch(e){t=!1}}return tr=function(){return t},t},er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function rr(t){return t}function nr(t,e){for(var r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e}function ir(t,e,r){var n=[],i=0,o=t.length;if(o<=r)return String.fromCharCode.apply(null,t);for(;i<o;)"array"===e?n.push(String.fromCharCode.apply(null,t.slice(i,Math.min(i+r,o)))):n.push(String.fromCharCode.apply(null,t.subarray(i,Math.min(i+r,o)))),i+=r;return n.join("")}var or=function(){var t;try{t=Ye.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){t=!1}return or=function(){return t},t};function ar(t){var e=65536,r=cr(t),n=!0;if("uint8array"===r&&(n=or()),n)for(;e>1;)try{return ir(t,r,e)}catch(t){e=Math.floor(e/2)}return function(t){for(var e="",r=0;r<t.length;r++)e+=String.fromCharCode(t[r]);return e}(t)}var sr=ar;function lr(t,e){for(var r=0;r<t.length;r++)e[r]=t[r];return e}var hr={string:{string:rr,array:function(t){return nr(t,new Array(t.length))},arraybuffer:function(t){return hr.string.uint8array(t).buffer},uint8array:function(t){return nr(t,new Uint8Array(t.length))}},array:{string:ar,array:rr,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)}},arraybuffer:{string:function(t){return ar(new Uint8Array(t))},array:function(t){return lr(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:rr,uint8array:function(t){return new Uint8Array(t)}},uint8array:{string:ar,array:function(t){return lr(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:rr}},ur=function(t,e){if(e||(e=""),!t)return e;dr(t);var r=cr(e);return hr[r][t](e)},cr=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":Ye.uint8array&&t instanceof Uint8Array?"uint8array":Ye.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},dr=function(t){if(!Ye[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},pr=65535,fr=-1,mr=function(t){var e,r,n="";for(r=0;r<(t||"").length;r++)n+="\\x"+((e=t.charCodeAt(r))<16?"0":"")+e.toString(16).toUpperCase();return n},gr=function(t,e,r){setTimeout((function(){t.apply(r||null,e||[])}),0)},vr=function(){var t,e,r=arguments,n={};for(t=0;t<arguments.length;t++)for(e in arguments[t])Object.hasOwnProperty.call(r[t],e)&&void 0===n[e]&&(n[e]=r[t][e]);return n},_r=function(t,e,r,n,i){return Qe.Promise.resolve(e).then((function(t){return Ye.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new Qe.Promise((function(e,r){var n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(t){r(t.target.error)},n.readAsArrayBuffer(t)})):t})).then((function(e){var o,a=cr(e);return a?("arraybuffer"===a?e=ur("uint8array",e):"string"===a&&(i?e=function(t){var e,r,n,i,o,a,s=0,l=0;if("data:"===t.substr(0,5))throw new Error("Invalid base64 input, it looks like a data url.");var h,u=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(t.charAt(t.length-1)===er.charAt(64)&&u--,t.charAt(t.length-2)===er.charAt(64)&&u--,u%1!=0)throw new Error("Invalid base64 input, bad content length.");for(h=Ye.uint8array?new Uint8Array(0|u):new Array(0|u);s<t.length;)e=er.indexOf(t.charAt(s++))<<2|(i=er.indexOf(t.charAt(s++)))>>4,r=(15&i)<<4|(o=er.indexOf(t.charAt(s++)))>>2,n=(3&o)<<6|(a=er.indexOf(t.charAt(s++))),h[l++]=e,64!==o&&(h[l++]=r),64!==a&&(h[l++]=n);return h}(e):r&&!0!==n&&(e=nr(o=e,Ye.uint8array?new Uint8Array(o.length):new Array(o.length)))),e):Qe.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))},yr=function(t){this.name=t||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null};yr.prototype.push=function(t){this.emit("data",t)},yr.prototype.end=function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(t){this.emit("error",t)}return!0},yr.prototype.error=function(t){return!this.isFinished&&(this.isPaused?this.generatedError=t:(this.isFinished=!0,this.emit("error",t),this.previous&&this.previous.error(t),this.cleanUp()),!0)},yr.prototype.on=function(t,e){return this._listeners[t].push(e),this},yr.prototype.cleanUp=function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},yr.prototype.emit=function(t,e){if(this._listeners[t])for(var r=0;r<this._listeners[t].length;r++)this._listeners[t][r].call(this,e)},yr.prototype.pipe=function(t){return t.registerPrevious(this)},yr.prototype.registerPrevious=function(t){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=t.streamInfo,this.mergeStreamInfo(),this.previous=t;var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.end()})),t.on("error",(function(t){e.error(t)})),this},yr.prototype.pause=function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},yr.prototype.resume=function(){if(!this.isPaused||this.isFinished)return!1;this.isPaused=!1;var t=!1;return this.generatedError&&(this.error(this.generatedError),t=!0),this.previous&&this.previous.resume(),!t},yr.prototype.flush=function(){},yr.prototype.processChunk=function(t){this.push(t)},yr.prototype.withStreamInfo=function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},yr.prototype.mergeStreamInfo=function(){for(var t in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},yr.prototype.lock=function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},yr.prototype.toString=function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t};var br=function(t){for(var e=new Array(256),r=0;r<256;r++)e[r]=r>=252?6:r>=248?5:r>=240?4:r>=224?3:r>=192?2:1;return e[254]=e[254]=1,br=function(t){return e[t]},e[t]},wr=function(t){return function(t){var e,r,n,i,o,a=t.length,s=0;for(i=0;i<a;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),s+=r<128?1:r<2048?2:r<65536?3:4;for(e=Ye.uint8array?new Uint8Array(s):new Array(s),o=0,i=0;o<s;i++)55296==(64512&(r=t.charCodeAt(i)))&&i+1<a&&56320==(64512&(n=t.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?e[o++]=r:r<2048?(e[o++]=192|r>>>6,e[o++]=128|63&r):r<65536?(e[o++]=224|r>>>12,e[o++]=128|r>>>6&63,e[o++]=128|63&r):(e[o++]=240|r>>>18,e[o++]=128|r>>>12&63,e[o++]=128|r>>>6&63,e[o++]=128|63&r);return e}(t)},xr=function(t){return function(t){var e,r,n,i,o=t.length,a=new Array(2*o);for(r=0,e=0;e<o;)if((n=t[e++])<128)a[r++]=n;else if((i=br(n))>4)a[r++]=65533,e+=i-1;else{for(n&=2===i?31:3===i?15:7;i>1&&e<o;)n=n<<6|63&t[e++],i--;i>1?a[r++]=65533:n<65536?a[r++]=n:(n-=65536,a[r++]=55296|n>>10&1023,a[r++]=56320|1023&n)}return a.length!==r&&(a.subarray?a=a.subarray(0,r):a.length=r),sr(a)}(t=ur(Ye.uint8array?"uint8array":"array",t))},kr=function(t){function e(){t.call(this,"utf-8 decode"),this.leftOver=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.processChunk=function(t){var e=ur(Ye.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(Ye.uint8array){var r=e;(e=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),e.set(r,this.leftOver.length)}else e=this.leftOver.concat(e);this.leftOver=null}var n=function(t,e){var r;for((e=e||t.length)>t.length&&(e=t.length),r=e-1;r>=0&&128==(192&t[r]);)r--;return r<0||0===r?e:r+br(t[r])>e?r:e}(e),i=e;n!==e.length&&(Ye.uint8array?(i=e.subarray(0,n),this.leftOver=e.subarray(n,e.length)):(i=e.slice(0,n),this.leftOver=e.slice(n,e.length))),this.push({data:xr(i),meta:t.meta})},e.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:xr(this.leftOver),meta:{}}),this.leftOver=null)},e}(yr),Cr=function(t){function e(){t.call(this,"utf-8 encode")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.processChunk=function(t){this.push({data:wr(t.data),meta:t.meta})},e}(yr),Or=function(t){function e(e){t.call(this,"ConvertWorker to "+e),this.destType=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.processChunk=function(t){this.push({data:ur(this.destType,t.data),meta:t.meta})},e}(yr);function Sr(t,e){return new Qe.Promise((function(r,n){var i=[],o=t._internalType,a=t._outputType,s=t._mimeType;t.on("data",(function(t,r){i.push(t),e&&e(r)})).on("error",(function(t){i=[],n(t)})).on("end",(function(){try{var t=function(t,e,r){switch(t){case"blob":return function(t,e){return dr("blob"),new Blob([t],{type:e})}(ur("arraybuffer",e),r);case"base64":return function(t){for(var e,r,n,i,o,a,s,l=[],h=0,u=t.length,c=u,d="string"!=typeof t;h<t.length;)c=u-h,d?(e=t[h++],r=h<u?t[h++]:0,n=h<u?t[h++]:0):(e=t.charCodeAt(h++),r=h<u?t.charCodeAt(h++):0,n=h<u?t.charCodeAt(h++):0),i=e>>2,o=(3&e)<<4|r>>4,a=c>1?(15&r)<<2|n>>6:64,s=c>2?63&n:64,l.push(er.charAt(i)+er.charAt(o)+er.charAt(a)+er.charAt(s));return l.join("")}(e);default:return ur(t,e)}}(a,function(t,e){var r,n=0,i=null,o=0;for(r=0;r<e.length;r++)o+=e[r].length;switch(t){case"string":return e.join("");case"array":return Array.prototype.concat.apply([],e);case"uint8array":for(i=new Uint8Array(o),r=0;r<e.length;r++)i.set(e[r],n),n+=e[r].length;return i;default:throw new Error("concat : unsupported type '"+t+"'")}}(o,i),s);r(t)}catch(t){n(t)}i=[]})).resume()}))}var zr=function(t,e,r){var n=e;switch(e){case"blob":case"arraybuffer":n="uint8array";break;case"base64":n="string"}try{this._internalType=n,this._outputType=e,this._mimeType=r,dr(n),this._worker=t.pipe(new Or(n)),t.lock()}catch(t){this._worker=new yr("error"),this._worker.error(t)}};zr.prototype.accumulate=function(t){return Sr(this,t)},zr.prototype.on=function(t,e){var r=this;return"data"===t?this._worker.on(t,(function(t){e.call(r,t.data,t.meta)})):this._worker.on(t,(function(){gr(e,arguments,r)})),this},zr.prototype.resume=function(){return gr(this._worker.resume,[],this._worker),this},zr.prototype.pause=function(){return this._worker.pause(),this};var Er=Object.freeze({__proto__:null,base64:!1,binary:!1,dir:!1,createFolders:!0,date:null,compression:null,compressionOptions:null,comment:null,unixPermissions:null,dosPermissions:null}),Ir=function(t){function e(e){t.call(this,"DataWorker");var r=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(t){r.dataIsReady=!0,r.data=t,r.max=t&&t.length||0,r.type=cr(t),r.isPaused||r._tickAndRepeat()}),(function(t){r.error(t)}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.cleanUp=function(){t.prototype.cleanUp.call(this),this.data=null},e.prototype.resume=function(){return!!t.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,gr(this._tickAndRepeat,[],this)),!0)},e.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(gr(this._tickAndRepeat,[],this),this._tickScheduled=!0))},e.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var t=null,e=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":t=this.data.substring(this.index,e);break;case"uint8array":t=this.data.subarray(this.index,e);break;case"array":t=this.data.slice(this.index,e)}return this.index=e,this.push({data:t,meta:{percent:this.max?this.index/this.max*100:0}})},e}(yr),Ar=function(t){function e(e){t.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.processChunk=function(e){if(e){var r=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=r+e.data.length}t.prototype.processChunk.call(this,e)},e}(yr),Pr=function(){for(var t=[],e=0;e<256;e++){for(var r=e,n=0;n<8;n++)r=1&r?3988292384^r>>>1:r>>>1;t[e]=r}return Pr=function(){return t},t};function Tr(t,e){return void 0!==t&&t.length?"string"!==cr(t)?function(t,e,r,n){var i=Pr(),o=0+r;t^=-1;for(var a=0;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t}(0|e,t,t.length):function(t,e,r,n){var i=Pr(),o=0+r;t^=-1;for(var a=0;a<o;a++)t=t>>>8^i[255&(t^e.charCodeAt(a))];return-1^t}(0|e,t,t.length):0}var Fr=function(t){function e(){t.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.processChunk=function(t){this.streamInfo.crc32=Tr(t.data,this.streamInfo.crc32||0),this.push(t)},e}(yr),Dr=function(t,e,r,n,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=i};Dr.prototype.getContentWorker=function(){var t=new Ir(Qe.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Ar("data_length")),e=this;return t.on("end",(function(){if(this.streamInfo.data_length!==e.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),t},Dr.prototype.getCompressedWorker=function(){return new Ir(Qe.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)},Dr.createWorkerFrom=function(t,e,r){return t.pipe(new Fr).pipe(new Ar("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new Ar("compressedSize")).withStreamInfo("compression",e)};var jr=function(t,e,r){this.name=t,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=e,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}};jr.prototype.internalStream=function(t){var e=null,r="string";try{if(!t)throw new Error("No output type specified.");var n="string"===(r=t.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),e=this._decompressWorker();var i=!this._dataBinary;i&&!n&&(e=e.pipe(new Cr)),!i&&n&&(e=e.pipe(new kr))}catch(t){(e=new yr("error")).error(t)}return new zr(e,r,"")},jr.prototype.async=function(t,e){return this.internalStream(t).accumulate(e)},jr.prototype._compressWorker=function(t,e){if(this._data instanceof Dr&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new Cr)),Dr.createWorkerFrom(r,t,e)},jr.prototype._decompressWorker=function(){return this._data instanceof Dr?this._data.getContentWorker():this._data instanceof yr?this._data:new Ir(this._data)};var Rr=function(){var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?"uint8array":"array";Rr=function(){return t}},Br=function(t){function e(e,r){t.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=r,this.meta={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.processChunk=function(t){this.meta=t.meta,null===this._pako&&this._createPako(),this._pako.push(ur(Rr(),t.data),!1)},e.prototype.flush=function(){t.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},e.prototype.cleanUp=function(){t.prototype.cleanUp.call(this),this._pako=null},e.prototype._createPako=function(){var t=this,e={raw:!0,level:this._pakoOptions.level||-1};this._pako="Deflate"===this._pakoAction?new $e(e):new Et(e),this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},e}(yr),Ur={STORE:{magic:"\0\0",compressWorker:function(){return new yr("STORE compression")},uncompressWorker:function(){return new yr("STORE decompression")}},DEFLATE:{magic:"\b\0",compressWorker:function(t){return new Br("Deflate",t)},uncompressWorker:function(){return new Br("Inflate",{})}}},Lr="PK",Nr="PK",Mr="PK",Wr="PK",Hr="PK",qr=function(t,e){var r,n="";for(r=0;r<e;r++)n+=String.fromCharCode(255&t),t>>>=8;return n},Gr=function(t,e,r,n,i,o){var a,s,l=t.file,h=t.compression,u=o!==wr,c=ur("string",o(l.name)),d=ur("string",wr(l.name)),p=l.comment,f=ur("string",o(p)),m=ur("string",wr(p)),g=d.length!==l.name.length,v=m.length!==p.length,_="",y="",b="",w=l.dir,x=l.date,k={crc32:0,compressedSize:0,uncompressedSize:0};e&&!r||(k.crc32=t.crc32,k.compressedSize=t.compressedSize,k.uncompressedSize=t.uncompressedSize);var C=0;e&&(C|=8),u||!g&&!v||(C|=2048);var O,S,z,E=0,I=0;w&&(E|=16),"UNIX"===i?(I=798,E|=(O=l.unixPermissions,S=w,z=O,O||(z=S?16893:33204),(65535&z)<<16)):(I=20,E|=63&(l.dosPermissions||0)),a=x.getUTCHours(),a<<=6,a|=x.getUTCMinutes(),a<<=5,a|=x.getUTCSeconds()/2,s=x.getUTCFullYear()-1980,s<<=4,s|=x.getUTCMonth()+1,s<<=5,s|=x.getUTCDate(),g&&(y=qr(1,1)+qr(Tr(c),4)+d,_+="up"+qr(y.length,2)+y),v&&(b=qr(1,1)+qr(Tr(f),4)+m,_+="uc"+qr(b.length,2)+b);var A="";return A+="\n\0",A+=qr(C,2),A+=h.magic,A+=qr(a,2),A+=qr(s,2),A+=qr(k.crc32,4),A+=qr(k.compressedSize,4),A+=qr(k.uncompressedSize,4),A+=qr(c.length,2),A+=qr(_.length,2),{fileRecord:Lr+A+c+_,dirRecord:Nr+qr(I,2)+A+qr(f.length,2)+"\0\0\0\0"+qr(E,4)+qr(n,4)+c+_+f}},Vr=function(t){return"PK\b"+qr(t.crc32,4)+qr(t.compressedSize,4)+qr(t.uncompressedSize,4)},Zr=function(t){function e(e,r,n,i){t.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=r,this.zipPlatform=n,this.encodeFileName=i,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(e){var r=e.meta.percent||0,n=this.entriesCount,i=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,t.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:n?(r+100*(n-i-1))/n:100}}))},e.prototype.openedSource=function(t){this.currentSourceOffset=this.bytesWritten,this.currentFile=t.file.name;var e=this.streamFiles&&!t.file.dir;if(e){var r=Gr(t,e,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},e.prototype.closedSource=function(t){this.accumulate=!1;var e=this.streamFiles&&!t.file.dir,r=Gr(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:Vr(t),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},e.prototype.flush=function(){for(var t=this.bytesWritten,e=0;e<this.dirRecords.length;e++)this.push({data:this.dirRecords[e],meta:{percent:100}});var r=this.bytesWritten-t,n=function(t,e,r,n,i){var o=ur("string",i(n));return Mr+"\0\0\0\0"+qr(t,2)+qr(t,2)+qr(e,4)+qr(r,4)+qr(o.length,2)+o}(this.dirRecords.length,r,t,this.zipComment,this.encodeFileName);this.push({data:n,meta:{percent:100}})},e.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},e.prototype.registerPrevious=function(t){this._sources.push(t);var e=this;return t.on("data",(function(t){e.processChunk(t)})),t.on("end",(function(){e.closedSource(e.previous.streamInfo),e._sources.length?e.prepareNextSource():e.end()})),t.on("error",(function(t){e.error(t)})),this},e.prototype.resume=function(){return!!t.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},e.prototype.error=function(e){var r=this._sources;if(!t.prototype.error.call(this,e))return!1;for(var n=0;n<r.length;n++)try{r[n].error(e)}catch(t){}return!0},e.prototype.lock=function(){t.prototype.lock.call(this);for(var e=this._sources,r=0;r<e.length;r++)e[r].lock()},e}(yr),Kr=function(t){this.data=t,this.length=t.length,this.index=0,this.zero=0};Kr.prototype.checkOffset=function(t){this.checkIndex(this.index+t)},Kr.prototype.checkIndex=function(t){if(this.length<this.zero+t||t<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+t+"). Corrupted zip ?")},Kr.prototype.setIndex=function(t){this.checkIndex(t),this.index=t},Kr.prototype.skip=function(t){this.setIndex(this.index+t)},Kr.prototype.byteAt=function(t){},Kr.prototype.readInt=function(t){var e,r=0;for(this.checkOffset(t),e=this.index+t-1;e>=this.index;e--)r=(r<<8)+this.byteAt(e);return this.index+=t,r},Kr.prototype.readString=function(t){return ur("string",this.readData(t))},Kr.prototype.readData=function(t){},Kr.prototype.lastIndexOfSignature=function(t){},Kr.prototype.readAndCheckSignature=function(t){},Kr.prototype.readDate=function(){var t=this.readInt(4);return new Date(Date.UTC(1980+(t>>25&127),(t>>21&15)-1,t>>16&31,t>>11&31,t>>5&63,(31&t)<<1))};var Xr=function(t){function e(e){t.call(this,e);for(var r=0;r<this.data.length;r++)e[r]=255&e[r]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.byteAt=function(t){return this.data[this.zero+t]},e.prototype.lastIndexOfSignature=function(t){for(var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),o=this.length-4;o>=0;--o)if(this.data[o]===e&&this.data[o+1]===r&&this.data[o+2]===n&&this.data[o+3]===i)return o-this.zero;return-1},e.prototype.readAndCheckSignature=function(t){var e=t.charCodeAt(0),r=t.charCodeAt(1),n=t.charCodeAt(2),i=t.charCodeAt(3),o=this.readData(4);return e===o[0]&&r===o[1]&&n===o[2]&&i===o[3]},e.prototype.readData=function(t){if(this.checkOffset(t),0===t)return[];var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e}(Kr),Jr=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.byteAt=function(t){return this.data.charCodeAt(this.zero+t)},e.prototype.lastIndexOfSignature=function(t){return this.data.lastIndexOf(t)-this.zero},e.prototype.readAndCheckSignature=function(t){return t===this.readData(4)},e.prototype.readData=function(t){this.checkOffset(t);var e=this.data.slice(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e}(Kr),$r=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.readData=function(t){if(this.checkOffset(t),0===t)return new Uint8Array(0);var e=this.data.subarray(this.zero+this.index,this.zero+this.index+t);return this.index+=t,e},e}(Xr);function Qr(t){var e=cr(t);return dr(e),"string"!==e||Ye.uint8array?Ye.uint8array?new $r(ur("uint8array",t)):new Xr(ur("array",t)):new Jr(t)}var Yr=function(t,e){this.options=t,this.loadOptions=e};Yr.prototype.isEncrypted=function(){return 1==(1&this.bitFlag)},Yr.prototype.useUTF8=function(){return 2048==(2048&this.bitFlag)},Yr.prototype.readLocalPart=function(t){var e,r;if(t.skip(22),this.fileNameLength=t.readInt(2),r=t.readInt(2),this.fileName=t.readData(this.fileNameLength),t.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(e=function(t){for(var e in Ur)if(Ur.hasOwnProperty(e)&&Ur[e].magic===t)return Ur[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+mr(this.compressionMethod)+" unknown (inner file : "+ur("string",this.fileName)+")");this.decompressed=new Dr(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},Yr.prototype.readCentralPart=function(t){this.versionMadeBy=t.readInt(2),t.skip(2),this.bitFlag=t.readInt(2),this.compressionMethod=t.readString(2),this.date=t.readDate(),this.crc32=t.readInt(4),this.compressedSize=t.readInt(4),this.uncompressedSize=t.readInt(4);var e=t.readInt(2);if(this.extraFieldsLength=t.readInt(2),this.fileCommentLength=t.readInt(2),this.diskNumberStart=t.readInt(2),this.internalFileAttributes=t.readInt(2),this.externalFileAttributes=t.readInt(4),this.localHeaderOffset=t.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");t.skip(e),this.readExtraFields(t),this.parseZIP64ExtraField(t),this.fileComment=t.readData(this.fileCommentLength)},Yr.prototype.processAttributes=function(){this.unixPermissions=null,this.dosPermissions=null;var t=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),0===t&&(this.dosPermissions=63&this.externalFileAttributes),3===t&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},Yr.prototype.parseZIP64ExtraField=function(t){if(this.extraFields[1]){var e=Qr(this.extraFields[1].value);this.uncompressedSize===fr&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===fr&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===fr&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===fr&&(this.diskNumberStart=e.readInt(4))}},Yr.prototype.readExtraFields=function(t){var e,r,n,i=t.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});t.index<i;)e=t.readInt(2),r=t.readInt(2),n=t.readData(r),this.extraFields[e]={id:e,length:r,value:n}},Yr.prototype.handleUTF8=function(){var t=Ye.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=xr(this.fileName),this.fileCommentStr=xr(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var r=ur(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=ur(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},Yr.prototype.findExtraFieldUnicodePath=function(){var t=this.extraFields[28789];if(t){var e=Qr(t.value);return 1!==e.readInt(1)||Tr(this.fileName)!==e.readInt(4)?null:xr(e.readData(t.length-5))}return null},Yr.prototype.findExtraFieldUnicodeComment=function(){var t=this.extraFields[25461];if(t){var e=Qr(t.value);return 1!==e.readInt(1)||Tr(this.fileComment)!==e.readInt(4)?null:xr(e.readData(t.length-5))}return null};var tn=function(t){this.files=[],this.loadOptions=t};function en(t){return new Qe.Promise((function(e,r){var n=t.decompressed.getContentWorker().pipe(new Fr);n.on("error",(function(t){r(t)})).on("end",(function(){n.streamInfo.crc32!==t.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):e()})).resume()}))}function rn(t,e){var r=this;return e=vr(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:xr}),_r("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var r=new tn(e);return r.load(t),r})).then((function(t){var r=[Qe.Promise.resolve(t)],n=t.files;if(e.checkCRC32)for(var i=0;i<n.length;i++)r.push(en(n[i]));return Qe.Promise.all(r)})).then((function(t){for(var n=t.shift(),i=n.files,o=0;o<i.length;o++){var a=i[o];r.file(a.fileNameStr,a.decompressed,{binary:!0,optimizedBinaryString:!0,date:a.date,dir:a.dir,comment:a.fileCommentStr.length?a.fileCommentStr:null,unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions,createFolders:e.createFolders})}return n.zipComment.length&&(r.comment=n.zipComment),r}))}tn.prototype.checkSignature=function(t){if(!this.reader.readAndCheckSignature(t)){this.reader.index-=4;var e=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+mr(e)+", expected "+mr(t)+")")}},tn.prototype.isSignature=function(t,e){var r=this.reader.index;this.reader.setIndex(t);var n=this.reader.readString(4)===e;return this.reader.setIndex(r),n},tn.prototype.readBlockEndOfCentral=function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var t=this.reader.readData(this.zipCommentLength),e=Ye.uint8array?"uint8array":"array",r=ur(e,t);this.zipComment=this.loadOptions.decodeFileName(r)},tn.prototype.readBlockZip64EndOfCentral=function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var t,e,r,n=this.zip64EndOfCentralSize-44;0<n;)t=this.reader.readInt(2),e=this.reader.readInt(4),r=this.reader.readData(e),this.zip64ExtensibleData[t]={id:t,length:e,value:r}},tn.prototype.readBlockZip64EndOfCentralLocator=function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),this.disksCount>1)throw new Error("Multi-volumes zip are not supported")},tn.prototype.readLocalFiles=function(){var t,e;for(t=0;t<this.files.length;t++)e=this.files[t],this.reader.setIndex(e.localHeaderOffset),this.checkSignature(Lr),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},tn.prototype.readCentralDir=function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(Nr);)(t=new Yr({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(t);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},tn.prototype.readEndOfCentral=function(){var t=this.reader.lastIndexOfSignature(Mr);if(t<0)throw this.isSignature(0,Lr)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(t);var e=t;if(this.checkSignature(Mr),this.readBlockEndOfCentral(),this.diskNumber===pr||this.diskWithCentralDirStart===pr||this.centralDirRecordsOnThisDisk===pr||this.centralDirRecords===pr||this.centralDirSize===fr||this.centralDirOffset===fr){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(Wr))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(Wr),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,Hr)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(Hr),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(Hr),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=e-r;if(n>0)this.isSignature(e,Nr)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},tn.prototype.prepareReader=function(t){this.reader=Qr(t)},tn.prototype.load=function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()};var nn=function(t,e,r){var n,i=cr(e),o=vr(r||{},Er);o.date=o.date||new Date,null!==o.compression&&(o.compression=o.compression.toUpperCase()),"string"==typeof o.unixPermissions&&(o.unixPermissions=parseInt(o.unixPermissions,8)),o.unixPermissions&&16384&o.unixPermissions&&(o.dir=!0),o.dosPermissions&&16&o.dosPermissions&&(o.dir=!0),o.dir&&(t=an(t)),o.createFolders&&(n=on(t))&&sn.call(this,n,!0);var a="string"===i&&!1===o.binary&&!1===o.base64;r&&void 0!==r.binary||(o.binary=!a),(e instanceof Dr&&0===e.uncompressedSize||o.dir||!e||0===e.length)&&(o.base64=!1,o.binary=!0,e="",o.compression="STORE",i="string");var s;s=e instanceof Dr||e instanceof yr?e:_r(t,e,o.binary,o.optimizedBinaryString,o.base64);var l=new jr(t,s,o);this.files[t]=l},on=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return e>0?t.substring(0,e):""},an=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},sn=function(t,e){return e=void 0===e||e,t=an(t),this.files[t]||nn.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function ln(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var hn=function t(){if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new t;for(var r in this)"function"!=typeof this[r]&&(e[r]=this[r]);return e}},un={support:{configurable:!0},defaults:{configurable:!0},version:{configurable:!0},external:{configurable:!0}};function cn(t,e,r){return(1461*(t+4800+((e-13)/12|0))/4|0)+(367*(e-1-12*((e-13)/12|0))/12|0)-(3*((t+4900+((e-13)/12|0))/100|0)/4|0)+r-32075}hn.prototype.load=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},hn.prototype.forEach=function(t){var e,r,n;for(e in this.files)n=this.files[e],(r=e.slice(this.root.length,e.length))&&e.slice(0,this.root.length)===this.root&&t(r,n)},hn.prototype.filter=function(t){var e=[];return this.forEach((function(r,n){t(r,n)&&e.push(n)})),e},hn.prototype.file=function(t,e,r){if(1===arguments.length){if(ln(t)){var n=t;return this.filter((function(t,e){return!e.dir&&n.test(t)}))}var i=this.files[this.root+t];return i&&!i.dir?i:null}return t=this.root+t,nn.call(this,t,e,r),this},hn.prototype.folder=function(t){if(!t)return this;if(ln(t))return this.filter((function(e,r){return r.dir&&t.test(e)}));var e=this.root+t,r=sn.call(this,e),n=this.clone();return n.root=r.name,n},hn.prototype.remove=function(t){t=this.root+t;var e=this.files[t];if(e||("/"!==t.slice(-1)&&(t+="/"),e=this.files[t]),e&&!e.dir)delete this.files[t];else for(var r=this.filter((function(e,r){return r.name.slice(0,t.length)===t})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},hn.prototype.generate=function(t){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},hn.prototype.generateInternalStream=function(t){var e,r={};try{if((r=vr(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:wr})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");dr(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS"),e=function(t,e,r){var n=new Zr(e.streamFiles,r,e.platform,e.encodeFileName),i=0;try{t.forEach((function(t,r){i++;var o=function(t,e){var r=t||e,n=Ur[r];if(!n)throw new Error(r+" is not a valid compression method !");return n}(r.options.compression,e.compression),a=r.options.compressionOptions||e.compressionOptions||{},s=r.dir,l=r.date;r._compressWorker(o,a).withStreamInfo("file",{name:t,dir:s,date:l,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(n)})),n.entriesCount=i}catch(t){n.error(t)}return n}(this,r,r.comment||this.comment||"")}catch(t){(e=new yr("error")).error(t)}return new zr(e,r.type||"string",r.mimeType)},hn.prototype.generateAsync=function(t,e){return this.generateInternalStream(t).accumulate(e)},hn.prototype.loadAsync=function(t,e){return rn.apply(this,[t,e])},hn.loadAsync=function(t,e){return(new hn).loadAsync(t,e)},un.support.get=function(){return Ye},un.defaults.get=function(){return Er},un.version.get=function(){return"3.2.2-esm"},un.external.get=function(){return Qe},Object.defineProperties(hn,un);var dn=cn(1900,0,-1);var pn="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",fn="data:"+pn+";base64,",mn={compression:"DEFLATE",type:"base64"},gn={compression:"DEFLATE",type:"blob"},vn={compression:"DEFLATE",type:"arraybuffer"};function _n(t){return fn+t}function yn(t,e){return e.indexOf(t)}var bn=JSON.parse.bind(JSON);function wn(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\"/g,"&quot;").replace(/\'/g,"&#39;")}function xn(t,e){for(var r="",n=0;n<t;++n)r+=e(n);return r}function kn(t,e){var r="";if(null!=t)if(Array.isArray(t))for(var n=0;n<t.length;++n)r+=e(t[n],n);else"object"==typeof t&&Object.keys(t).forEach((function(n,i){r+=e(t[n],n,i)}));return r}var Cn='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r',On=Cn+'\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>',Sn=function(t){return Cn+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+kn(t,(function(t){return'\n <Relationship Id="'+t.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="'+t.target+'"/>'}))+"\n</Relationships>"};function zn(t){var e=Math.floor(t/26)-1;return(e>=0?zn(e):"")+String.fromCharCode(65+t%26)}function En(t,e){return zn(e)+(t+1)}function In(t,e){return"$"+zn(e)+"$"+(t+1)}function An(t){return(t.frozenRows||(t.freezePane||{}).rowSplit||1)-1}function Pn(t){return t/7-Math.floor(128/7)/256}var Tn=function(t,e,r,n){this.options=t,this._strings=e,this._styles=r,this._borders=n,this._validations={},this._comments=[],this._drawings=t.drawings||[],this._hyperlinks=(this.options.hyperlinks||[]).map((function(t,e){return Object.assign({},t,{rId:"link"+e})}))};function Fn(t){var e=t.length;return t.forEach((function(t){t.index&&t.index>=e&&(e=t.index+1)})),e}Tn.prototype.relsToXML=function(){var t=this._hyperlinks,e=this._comments,r=this._drawings;if(t.length||e.length||r.length)return function(t){var e=t.comments,r=t.sheetIndex,n=t.drawings;return Cn+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+kn(t.hyperlinks,(function(t){return'\n <Relationship Id="'+t.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="'+wn(t.target)+'" TargetMode="External" />'}))+"\n "+(e.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 "+(n.length?'\n <Relationship Id="drw'+r+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing" Target="../drawings/drawing'+r+'.xml"/>':"")+"\n</Relationships>"}({hyperlinks:t,comments:e,sheetIndex:this.options.sheetIndex,drawings:r})},Tn.prototype.toXML=function(t){var e=this,r=this.options.mergedCells||[],n=function(t,e){var r=[],n=[];!function(t,e){for(var r=0;r<t.length;r++){var n=t[r];if(n){var i=n.index;"number"!=typeof i&&(i=r),e(n,i)}}}(t,(function(t,e){var i={_source:t,index:e,height:t.height,level:t.level,cells:[]};r.push(i),n[e]=i}));for(var i=Wn(r).slice(0),o={rowData:r,rowsByIndex:n,mergedCells:e},a=0;a<i.length;a++)Vn(i[a],o),delete i[a]._source;return Wn(r)}(this.options.rows||[],r);this._readCells(n);var i,o=this.options.filter;o&&"number"==typeof o.from&&"number"==typeof o.to?o={from:En(An(this.options),o.from),to:En(An(this.options),o.to)}:o&&o.ref&&o.columns&&(i=o,o=null);var a=[];for(var s in e._validations)Object.prototype.hasOwnProperty.call(e._validations,s)&&a.push(e._validations[s]);var l=null;this.options.defaultCellStyle&&(l=this._lookupStyle(this.options.defaultCellStyle));var h=this.options.freezePane||{},u=this.options.defaults||{},c=this.options.rows?this._getLastRow():1,d=this.options.rows?this._getLastCol():1;return function(t){var e=t.frozenColumns,r=t.frozenRows,n=t.columns,i=t.defaults,o=t.data,a=t.index,s=t.mergeCells,l=t.autoFilter,h=t.filter,u=t.showGridLines,c=t.hyperlinks,d=t.validations,p=t.defaultCellStyleId,f=t.rtl,m=t.legacyDrawing,g=t.drawing,v=t.lastRow,_=t.lastCol;return Cn+'\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&&_?'<dimension ref="A1:'+En(v-1,_-1)+'" />':"")+"\n\n <sheetViews>\n <sheetView "+(f?'rightToLeft="1"':"")+" "+(0===a?'tabSelected="1"':"")+' workbookViewId="0" '+(!1===u?'showGridLines="0"':"")+">\n "+(r||e?'\n <pane state="frozen"\n '+(e?'xSplit="'+e+'"':"")+"\n "+(r?'ySplit="'+r+'"':"")+'\n topLeftCell="'+(String.fromCharCode(65+(e||0))+((r||0)+1))+'"\n />':"")+'\n </sheetView>\n </sheetViews>\n\n <sheetFormatPr x14ac:dyDescent="0.25" '+(i.skipCustomHeight?"":'customHeight="1"')+' defaultRowHeight="'+(i.rowHeight?.75*i.rowHeight:15)+'"\n '+(i.columnWidth?'defaultColWidth="'+Pn(i.columnWidth)+'"':"")+" />\n\n "+(null!=p||n&&n.length>0?"\n <cols>\n "+(n&&n.length?"":'\n <col min="1" max="16384" style="'+p+'"\n '+(i.columnWidth?'width="'+Pn(i.columnWidth)+'"':"")+" /> ")+"\n "+kn(n,(function(t,e){var r="number"==typeof t.index?t.index+1:e+1;return 0===t.width?"<col "+(null!=p?'style="'+p+'"':"")+'\n min="'+r+'" max="'+r+'" hidden="1" customWidth="1" />':"<col "+(null!=p?'style="'+p+'"':"")+'\n min="'+r+'" max="'+r+'" customWidth="1"\n '+(t.autoWidth?'width="'+(7*t.width+5)/7*256/256+'" bestFit="1"':'width="'+Pn(t.width)+'"')+" />"}))+"\n </cols>":"")+"\n\n <sheetData>\n "+kn(o,(function(t,e){return'\n <row r="'+("number"==typeof t.index?t.index+1:e+1)+'" x14ac:dyDescent="0.25"\n '+(t.level?'outlineLevel="'+t.level+'"':"")+"\n "+(0===t.height?'hidden="1"':t.height?'ht="'+.75*t.height+'" customHeight="1"':"")+">\n "+kn(t.data,(function(t){return'\n <c r="'+t.ref+'" '+(t.style?'s="'+t.style+'"':"")+" "+(t.type?'t="'+t.type+'"':"")+">\n "+(null!=t.formula?"string"==typeof(e=t.formula)?"<f>"+wn(e)+"</f>":'<f t="array" ref="'+e.ref+'">'+wn(e.src)+"</f>":"")+"\n "+(null!=t.value?"<v>"+wn(t.value)+"</v>":"")+"\n </c>";var e}))+"\n </row>\n "}))+"\n </sheetData>\n\n "+(l?'<autoFilter ref="'+l.from+":"+l.to+'"/>':h?ei(h):"")+"\n\n "+(s.length?'\n <mergeCells count="'+s.length+'">\n '+kn(s,(function(t){return'<mergeCell ref="'+t+'"/>'}))+"\n </mergeCells>":"")+"\n\n "+(d.length?"\n <dataValidations>\n "+kn(d,(function(t){return'\n <dataValidation sqref="'+t.sqref.join(" ")+'"\n showErrorMessage="'+t.showErrorMessage+'"\n type="'+wn(t.type)+'"\n '+("list"!==t.type?'operator="'+wn(t.operator)+'"':"")+'\n allowBlank="'+t.allowBlank+'"\n showDropDown="'+t.showDropDown+'"\n '+(t.error?'error="'+wn(t.error)+'"':"")+"\n "+(t.errorTitle?'errorTitle="'+wn(t.errorTitle)+'"':"")+">\n "+(t.formula1?"<formula1>"+wn(t.formula1)+"</formula1>":"")+"\n "+(t.formula2?"<formula2>"+wn(t.formula2)+"</formula2>":"")+"\n </dataValidation>"}))+"\n </dataValidations>":"")+"\n\n "+(c.length?"\n <hyperlinks>\n "+kn(c,(function(t){return'\n <hyperlink ref="'+t.ref+'" r:id="'+t.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 "+(m?'<legacyDrawing r:id="'+m+'"/>':"")+"\n</worksheet>"}({frozenColumns:this.options.frozenColumns||h.colSplit,frozenRows:this.options.frozenRows||h.rowSplit,columns:this.options.columns,defaults:u,data:n,index:t,mergeCells:r,autoFilter:o,filter:i,showGridLines:this.options.showGridLines,hyperlinks:this._hyperlinks,validations:a,defaultCellStyleId:l,rtl:void 0!==this.options.rtl?this.options.rtl:u.rtl,legacyDrawing:this._comments.length?"vml"+this.options.sheetIndex:null,drawing:this._drawings.length?"drw"+this.options.sheetIndex:null,lastRow:c,lastCol:d})},Tn.prototype.commentsXML=function(){if(this._comments.length)return function(t){return Cn+'\n<comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">\n <authors>\n <author></author>\n </authors>\n <commentList>\n '+kn(t.comments,(function(t){return'\n <comment ref="'+t.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>'+wn(t.text)+"</t>\n </r>\n </text>\n </comment>"}))+"\n </commentList>\n</comments>"}({comments:this._comments})},Tn.prototype.drawingsXML=function(t){if(this._drawings.length){var e={},r=this._drawings.map((function(r){var n=qn(r.topLeftCell),i=e[r.image];return i||(i=e[r.image]={rId:"img"+r.image,target:t[r.image].target}),{col:n.col,colOffset:Gn(r.offsetX),row:n.row,rowOffset:Gn(r.offsetY),width:Gn(r.width),height:Gn(r.height),imageId:i.rId}}));return{main:(n=r,Cn+'\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 '+kn(n,(function(t,e){return'\n <xdr:oneCellAnchor editAs="oneCell">\n <xdr:from>\n <xdr:col>'+t.col+"</xdr:col>\n <xdr:colOff>"+t.colOffset+"</xdr:colOff>\n <xdr:row>"+t.row+"</xdr:row>\n <xdr:rowOff>"+t.rowOffset+'</xdr:rowOff>\n </xdr:from>\n <xdr:ext cx="'+t.width+'" cy="'+t.height+'" />\n <xdr:pic>\n <xdr:nvPicPr>\n <xdr:cNvPr id="'+(e+1)+'" name="Picture '+(e+1)+'"/>\n <xdr:cNvPicPr/>\n </xdr:nvPicPr>\n <xdr:blipFill>\n <a:blip r:embed="'+t.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:Sn(e)}}var n},Tn.prototype.legacyDrawing=function(){if(this._comments.length)return function(t){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 '+kn(t.comments,(function(t){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>'+t.anchor+"</x:Anchor>\n <x:AutoFill>False</x:AutoFill>\n <x:Row>"+t.row+"</x:Row>\n <x:Column>"+t.col+"</x:Column>\n </x:ClientData>\n </v:shape>"}))+"\n</xml>"}({comments:this._comments})},Tn.prototype._lookupString=function(t){var e,r="$"+t,n=this._strings.indexes[r];return void 0!==n?e=n:(e=this._strings.indexes[r]=this._strings.uniqueCount,this._strings.uniqueCount++),this._strings.count++,e},Tn.prototype._lookupStyle=function(t){var e=JSON.stringify(t);if("{}"===e)return 0;var r=yn(e,this._styles);return r<0&&(r=this._styles.push(e)-1),r+1},Tn.prototype._lookupBorder=function(t){var e=JSON.stringify(t);if("{}"!==e){var r=yn(e,this._borders);return r<0&&(r=this._borders.push(e)-1),r+1}},Tn.prototype._readCells=function(t){for(var e=0;e<t.length;e++){var r=t[e],n=r.cells;r.data=[];for(var i=0;i<n.length;i++){var o=this._cell(n[i],r.index,i);o&&r.data.push(o)}}},Tn.prototype._cell=function(t,e,r){if(!t||t===Mn)return null;var n=t.value,i={};t.borderLeft&&(i.left=t.borderLeft),t.borderRight&&(i.right=t.borderRight),t.borderTop&&(i.top=t.borderTop),t.borderBottom&&(i.bottom=t.borderBottom),t.dBorders&&(i.diagonal=t.dBorders),i=this._lookupBorder(i);var o,a=this.options.defaultCellStyle||{},s={borderId:i};(o=function(e,r){var n=t[e];if(void 0===n&&(n=a[e]),void 0!==n)return s[r||e]=n,!0})("color"),o("background"),o("bold"),o("italic"),o("underline"),o("fontFamily")||o("fontName","fontFamily"),o("fontSize"),o("format"),o("textAlign")||o("hAlign","textAlign"),o("verticalAlign")||o("vAlign","verticalAlign"),o("wrap"),o("indent");var l,h,u,c=(this.options.columns||[])[r],d=typeof n;if(c&&c.autoWidth&&(!t.colSpan||1===t.colSpan)){var p=n;"number"===d&&(p=_.toString(n,t.format)),c.width=Math.max(c.width||0,String(p).length)}"string"===d?(n=function(t){return String(t).replace(/[\x00-\x09\x0B\x0C\x0E-\x1F]/g,"").replace(/\r?\n/g,"\r\n")}(n),n=this._lookupString(n),d="s"):"number"===d?d="n":"boolean"===d?(d="b",n=Number(n)):n&&n.getTime?(d=null,h=((l=n).getHours()+(l.getMinutes()+(l.getSeconds()+l.getMilliseconds()/1e3)/60)/60)/24,n=(u=function(t,e,r){return cn(t,e,r)-dn}(l.getFullYear(),l.getMonth(),l.getDate()))<0?u-1+h:u+h,s.format||(s.format="mm-dd-yy")):(d=null,n=null),s=this._lookupStyle(s);var f=En(e,r);if(t.validation&&this._addValidation(t.validation,f),t.comment){var m=[r+1,15,e,10,r+3,15,e+3,4];this._comments.push({ref:f,text:t.comment,row:e,col:r,anchor:m.join(", ")})}return{value:n,formula:t.formula,type:d,style:s,ref:f}},Tn.prototype._addValidation=function(t,e){var r={showErrorMessage:"reject"===t.type?1:0,formula1:t.from,formula2:t.to,type:jn[t.dataType]||t.dataType,operator:Dn[t.comparerType]||t.comparerType,allowBlank:t.allowNulls?1:0,showDropDown:t.showButton?0:1,error:t.messageTemplate,errorTitle:t.titleTemplate},n=JSON.stringify(r);this._validations[n]||(this._validations[n]=r,r.sqref=[]),this._validations[n].sqref.push(e)},Tn.prototype._getLastRow=function(){return Fn(this.options.rows)},Tn.prototype._getLastCol=function(){var t=0;return this.options.rows.forEach((function(e){e.cells&&(t=Math.max(t,Fn(e.cells)))})),t};var Dn={greaterThanOrEqualTo:"greaterThanOrEqual",lessThanOrEqualTo:"lessThanOrEqual"},jn={number:"decimal"},Rn={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 Bn(t){var e=function(t){function e(t){var e=parseInt(t,10).toString(16);return e.length<2?"0"+e:e}var r=/^rgba?\((\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([0-9.]+)\s*)?\)/i.exec(t.trim());return r?"#"+e(255*(r[4]?parseFloat(r[4]):1)|0)+e(r[1])+e(r[2])+e(r[3]):t}(t);return e.length<6&&(e=e.replace(/(\w)/g,(function(t,e){return e+e}))),(e=e.substring(1).toUpperCase()).length<8&&(e="FF"+e),e}var Un=function(t){var e=this;this.options=t||{},this._strings={indexes:{},count:0,uniqueCount:0},this._styles=[],this._borders=[],this._images=this.options.images,this._imgId=0,this._sheets=u(this.options.sheets||[],(function(t,r){return t.defaults=e.options,t.sheetIndex=r+1,new Tn(t,e._strings,e._styles,e._borders)}))};function Ln(t,e){var r,n,i="";return e&&(i+="<"+t+' style="'+(n="thin",2===(r=e.size)?n="medium":3===r&&(n="thick"),n+'">'),e.color&&(i+='<color rgb="'+Bn(e.color)+'"/>'),i+="</"+t+">"),i}function Nn(t){var e=t.diagonal?t.diagonal.type:0;return"<border "+(2&e?'diagonalUp="true"':"")+" "+(1&e?'diagonalDown="true"':"")+">\n "+Ln("left",t.left)+"\n "+Ln("right",t.right)+"\n "+Ln("top",t.top)+"\n "+Ln("bottom",t.bottom)+"\n "+Ln("diagonal",t.diagonal)+"\n </border>"}Un.prototype.imageFilename=function(t){var e=++this._imgId;switch(t){case"image/jpg":case"image/jpeg":return"image"+e+".jpg";case"image/png":return"image"+e+".png";case"image/gif":return"image"+e+".gif";default:return"image"+e+".bin"}},Un.prototype.toZIP=function(){var t=this,e=new hn,r=e.folder("docProps");r.file("core.xml",function(t){var e=t.lastModifiedBy,r=t.created,n=t.modified;return Cn+'\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>'+wn(t.creator)+"</dc:creator>\n <cp:lastModifiedBy>"+wn(e)+'</cp:lastModifiedBy>\n <dcterms:created xsi:type="dcterms:W3CDTF">'+wn(r)+'</dcterms:created>\n <dcterms:modified xsi:type="dcterms:W3CDTF">'+wn(n)+"</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 n=this._sheets.length;r.file("app.xml",function(t){var e=t.sheets;return Cn+'\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">'+kn(e,(function(t,e){return t.options.title?"<vt:lpstr>"+wn(t.options.title)+"</vt:lpstr>":"<vt:lpstr>Sheet"+(e+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",On);var i=e.folder("xl");if(i.folder("_rels").file("workbook.xml.rels",function(t){var e=t.count;return Cn+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+xn(e,(function(t){return'\n <Relationship Id="rId'+(t+1)+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet'+(t+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:n})),this._images){var o=i.folder("media");Object.keys(this._images).forEach((function(e){var r=t._images[e],n=t.imageFilename(r.type);o.file(n,r.data),r.target="../media/"+n}))}var a={};i.file("workbook.xml",function(t){var e=t.filterNames,r=t.userNames;return Cn+'\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 '+kn(t.sheets,(function(t,e){var r=t.options;return'<sheet name="'+wn(r.name||r.title||"Sheet"+(e+1))+'" sheetId="'+(e+1)+'" r:id="rId'+(e+1)+'" />'}))+"\n </sheets>\n "+(e.length||r.length?"\n <definedNames>\n "+kn(e,(function(t){return'\n <definedName name="_xlnm._FilterDatabase" hidden="1" localSheetId="'+t.localSheetId+'">'+wn(function(t){return/^\'/.test(t)||/^[a-z_][a-z0-9_]*$/i.test(t)?t:"'"+t.replace(/\x27/g,"\\'")+"'"}(t.name))+"!"+wn(t.from)+":"+wn(t.to)+"</definedName>"}))+"\n "+kn(r,(function(t){return'\n <definedName name="'+t.name+'" hidden="'+(t.hidden?1:0)+'" '+(null!=t.localSheetId?'localSheetId="'+t.localSheetId+'"':"")+">"+wn(t.value)+"</definedName>"}))+"\n </definedNames>":"")+'\n <calcPr fullCalcOnLoad="1" calcId="145621" />\n</workbook>'}({sheets:this._sheets,filterNames:u(this._sheets,(function(t,e){var r=t.options,n=r.name||r.title||"Sheet"+(e+1);a[n.toLowerCase()]=e;var i=r.filter;if(i){if(i.ref){var o=i.ref.split(":"),s=qn(o[0]),l=qn(o[1]);return{localSheetId:e,name:n,from:In(s.row,s.col),to:In(l.row,l.col)}}if(void 0!==i.from&&void 0!==i.to)return{localSheetId:e,name:n,from:In(An(r),i.from),to:In(An(r),i.to)}}})),userNames:u(this.options.names||[],(function(t){return{name:t.localName,localSheetId:t.sheet?a[t.sheet.toLowerCase()]:null,value:t.value,hidden:t.hidden}}))}));for(var s=i.folder("worksheets"),l=i.folder("drawings"),h=l.folder("_rels"),c=s.folder("_rels"),d=[],p=[],f=0;f<n;f++){var m=t._sheets[f],g="sheet"+(f+1)+".xml",v=m.toXML(f),_=m.relsToXML(),y=m.commentsXML(),b=m.legacyDrawing(),w=m.drawingsXML(t._images);if(_&&c.file(g+".rels",_),y){var x="comments"+m.options.sheetIndex+".xml";i.file(x,y),d.push(x)}if(b&&l.file("vmlDrawing"+m.options.sheetIndex+".vml",b),w){var k="drawing"+m.options.sheetIndex+".xml";l.file(k,w.main),h.file(k+".rels",w.rels),p.push(k)}s.file(g,v)}var C=u(this._borders,bn),O=u(this._styles,bn),S=function(t){return t.underline||t.bold||t.italic||t.color||t.fontFamily||t.fontSize},z=u(O,(function(t){var e,r,n;if(t.fontSize&&(t.fontSize=(e=t.fontSize,(n=Number(e))&&(r=3*n/4),r)),t.color&&(t.color=Bn(t.color)),S(t))return t})),E=u(O,(function(t){if(t.format&&void 0===Rn[t.format])return t})),I=u(O,(function(t){if(t.background)return t.background=Bn(t.background),t}));return i.file("styles.xml",function(t){var e=t.formats,r=t.fonts,n=t.fills,i=t.borders,o=t.styles;return Cn+'\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 '+kn(e,(function(t,e){return'\n <numFmt formatCode="'+wn(t.format)+'" numFmtId="'+(165+e)+'" />'}))+'\n </numFmts>\n <fonts count="'+(r.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 '+kn(r,(function(t){return"\n <font>\n "+(t.bold?"<b/>":"")+"\n "+(t.italic?"<i/>":"")+"\n "+(t.underline?"<u/>":"")+'\n <sz val="'+(t.fontSize||11)+'" />\n '+(t.color?'<color rgb="'+wn(t.color)+'" />':'<color theme="1" />')+"\n "+(t.fontFamily?'\n <name val="'+wn(t.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 '+kn(n,(function(t){return"\n "+(t.background?'\n <fill>\n <patternFill patternType="solid">\n <fgColor rgb="'+wn(t.background)+'"/>\n </patternFill>\n </fill>\n ':"")}))+'\n </fills>\n <borders count="'+(i.length+1)+'">\n <border><left/><right/><top/><bottom/><diagonal/></border>\n '+kn(i,Nn)+'\n </borders>\n <cellStyleXfs count="1">\n <xf borderId="0" fillId="0" fontId="0" />\n </cellStyleXfs>\n <cellXfs count="'+(o.length+1)+'">\n <xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0" />\n '+kn(o,(function(t){return'\n <xf xfId="0"\n '+(t.fontId?'fontId="'+t.fontId+'" applyFont="1"':"")+"\n "+(t.fillId?'fillId="'+t.fillId+'" applyFill="1"':"")+"\n "+(t.numFmtId?'numFmtId="'+t.numFmtId+'" applyNumberFormat="1"':"")+"\n "+(t.textAlign||t.verticalAlign||t.wrap?'applyAlignment="1"':"")+"\n "+(t.borderId?'borderId="'+t.borderId+'" applyBorder="1"':"")+">\n "+(t.textAlign||t.verticalAlign||t.wrap?"\n <alignment\n "+(t.textAlign?'horizontal="'+wn(t.textAlign)+'"':"")+"\n "+(t.verticalAlign?'vertical="'+wn(t.verticalAlign)+'"':"")+"\n "+(t.indent?'indent="'+wn(t.indent)+'"':"")+"\n "+(t.wrap?'wrapText="1"':"")+" />\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:z,fills:I,formats:E,borders:C,styles:u(O,(function(t){var e={};return S(t)&&(e.fontId=yn(t,z)+1),t.background&&(e.fillId=yn(t,I)+2),e.textAlign=t.textAlign,e.indent=t.indent,e.verticalAlign=t.verticalAlign,e.wrap=t.wrap,e.borderId=t.borderId,t.format&&(void 0!==Rn[t.format]?e.numFmtId=Rn[t.format]:e.numFmtId=165+yn(t,E)),e}))})),i.file("sharedStrings.xml",function(t){var e=t.count,r=t.uniqueCount,n=t.indexes;return Cn+'\n<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'+e+'" uniqueCount="'+r+'">\n '+kn(Object.keys(n),(function(t){return'\n <si><t xml:space="preserve">'+wn(t.substring(1))+"</t></si>"}))+"\n</sst>"}(this._strings)),e.file("[Content_Types].xml",function(t){var e=t.commentFiles,r=t.drawingFiles;return Cn+'\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 '+xn(t.sheetCount,(function(t){return'<Override PartName="/xl/worksheets/sheet'+(t+1)+'.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />'}))+"\n "+kn(e,(function(t){return'<Override PartName="/xl/'+t+'" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"/>'}))+"\n "+kn(r,(function(t){return'<Override PartName="/xl/drawings/'+t+'" 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:n,commentFiles:d,drawingFiles:p})),e},Un.prototype.toDataURL=function(){var t=this.toZIP();return t.generateAsync?t.generateAsync(mn).then(_n):_n(t.generate(mn))},Un.prototype.toBlob=function(){var t=this.toZIP();return t.generateAsync?t.generateAsync(gn):new Blob([t.generate(vn)],{type:pn})};var Mn={};function Wn(t){return t.sort((function(t,e){return t.index-e.index}))}function Hn(t,e){for(var r=0;r<t.length;++r){var n=t[r].split(":"),i=n[0];if(i===e){var o=n[1];return i=qn(i),{rowSpan:(o=qn(o)).row-i.row+1,colSpan:o.col-i.col+1}}}}function qn(t){var e,r=/^([a-z]+)(\d+)$/i.exec(t);return{row:(e=r[2],parseInt(e,10)-1),col:function(t){for(var e=t.toUpperCase(),r=0,n=0;n<e.length;++n)r=26*r+e.charCodeAt(n)-64;return r-1}(r[1])}}function Gn(t){return Math.round(9525*t)}function Vn(t,e){var r,n,i=t._source,o=t.index,a=i.cells,s=t.cells;if(a)for(var l=0;l<a.length;l++){var h=a[l]||Mn,u=h.rowSpan||1,c=h.colSpan||1,d=Zn(s,h),p=En(o,d);if(1===u&&1===c){var f=Hn(e.mergedCells,p);f&&(c=f.colSpan,u=f.rowSpan)}if(Xn(h,s,d,c),(u>1||c>1)&&(r=e.mergedCells,n=p+":"+En(o+u-1,d+c-1),r.indexOf(n)<0&&r.push(n)),u>1)for(var m=o+1;m<o+u;m++){var g=e.rowsByIndex[m];g||(g=e.rowsByIndex[m]={index:m,cells:[]},e.rowData.push(g)),Xn(h,g.cells,d-1,c+1)}}}function Zn(t,e){var r;return"number"==typeof e.index?(r=e.index,Kn(t,e,e.index)):r=function(t,e){for(var r=t.length,n=0;n<t.length+1;n++)if(!t[n]){t[n]=e,r=n;break}return r}(t,e),r}function Kn(t,e,r){t[r]=e}function Xn(t,e,r,n){for(var i=1;i<n;i++)Kn(e,{borderTop:t.borderTop,borderRight:t.borderRight,borderBottom:t.borderBottom,borderLeft:t.borderLeft},r+i)}var Jn=function(t){var e=t.ref,r=t.columns,n=t.generators;return'\n<autoFilter ref="'+e+'">\n '+kn(r,(function(t){return'\n <filterColumn colId="'+t.index+'">\n '+n[t.filter](t)+"\n </filterColumn>\n "}))+"\n</autoFilter>"},$n=function(t){return"\n<customFilters "+("and"===t.logic?'and="1"':"")+">\n"+kn(t.criteria,(function(t){var e=ei.customOperator(t);return"<customFilter "+(e?'operator="'+e+'"':"")+' val="'+ei.customValue(t)+'"/>'}))+"\n</customFilters>"},Qn=function(t){var e=t.type;return'<dynamicFilter type="'+ei.dynamicFilterType(e)+'" />'},Yn=function(t){var e=t.type,r=t.value;return'<top10 percent="'+(/percent$/i.test(e)?1:0)+'"\n top="'+(/^top/i.test(e)?1:0)+'"\n val="'+r+'" />'},ti=function(t){return"<filters "+(t.blanks?'blank="1"':"")+">\n "+kn(t.values,(function(t){return'\n <filter val="'+t+'" />'}))+"\n </filters>"};function ei(t){return Jn({ref:t.ref,columns:t.columns,generators:{custom:$n,dynamic:Qn,top:Yn,value:ti}})}ei.customOperator=function(t){return{eq:"equal",gt:"greaterThan",gte:"greaterThanOrEqual",lt:"lessThan",lte:"lessThanOrEqual",ne:"notEqual",doesnotstartwith:"notEqual",doesnotendwith:"notEqual",doesnotcontain:"notEqual",doesnotmatch:"notEqual"}[t.operator.toLowerCase()]},ei.customValue=function(t){function e(t){return t.replace(/([*?])/g,"~$1")}switch(t.operator.toLowerCase()){case"startswith":case"doesnotstartwith":return e(t.value)+"*";case"endswith":case"doesnotendwith":return"*"+e(t.value);case"contains":case"doesnotcontain":return"*"+e(t.value)+"*";default:return t.value}},ei.dynamicFilterType=function(t){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"}[t.toLowerCase()]||t}},302:t=>{t.exports=n},189:t=>{t.exports=e},899:e=>{e.exports=t},209:t=>{t.exports=r}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var r=o[t]={exports:{}};return i[t].call(r.exports,r,r.exports,a),r.exports}return a.d=(t,e)=>{for(var r in e)a.o(e,r)&&!a.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},a(468)})()}));
@@ -1,38 +0,0 @@
1
- import { CellOptions } from './ooxml/CellOptionsInterface';
2
- /**
3
- * @hidden
4
- */
5
- export interface ColumnBase {
6
- /**
7
- * @hidden
8
- */
9
- children?: any;
10
- /**
11
- * The options of the column header cell.
12
- */
13
- headerCellOptions?: CellOptions;
14
- /**
15
- * Sets the visibility of the column.
16
- *
17
- * @default false
18
- */
19
- hidden?: boolean;
20
- /**
21
- * @hidden
22
- */
23
- level?: number;
24
- /**
25
- * Toggles the locked (frozen) state of the column.
26
- *
27
- * @default false
28
- */
29
- locked?: boolean;
30
- /**
31
- * The title of the column.
32
- */
33
- title?: string;
34
- /**
35
- * The width of the column in pixels.
36
- */
37
- width?: number;
38
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,193 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- var __assign = (this && this.__assign) || function () {
17
- __assign = Object.assign || function(t) {
18
- for (var s, i = 1, n = arguments.length; i < n; i++) {
19
- s = arguments[i];
20
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
21
- t[p] = s[p];
22
- }
23
- return t;
24
- };
25
- return __assign.apply(this, arguments);
26
- };
27
- import * as React from 'react';
28
- import * as PropTypes from 'prop-types';
29
- import { saveAs } from '@progress/kendo-file-saver';
30
- import { workbookOptions, toDataURL, isWorkbookOptions } from './ooxml/workbook';
31
- import * as licensing from '@progress/kendo-licensing';
32
- import { packageMetadata } from './package-metadata';
33
- var ExcelExport = /** @class */ (function (_super) {
34
- __extends(ExcelExport, _super);
35
- function ExcelExport(props) {
36
- var _this = _super.call(this, props) || this;
37
- _this.saveFile = function (dataURL) {
38
- saveAs(dataURL, _this.props.fileName, {
39
- forceProxy: _this.props.forceProxy,
40
- proxyURL: _this.props.proxyURL
41
- });
42
- };
43
- _this.extractColumns = function (children, level) {
44
- if (level === void 0) { level = 0; }
45
- return Array.isArray(children)
46
- ? children.map(function (child) {
47
- return _this.extractChild(child, level);
48
- })
49
- : [children, _this.extractChild(children, level)];
50
- };
51
- _this.extractChild = function (child, level) {
52
- if (level === void 0) { level = 0; }
53
- return React.isValidElement(child)
54
- ? __assign(__assign({}, child.props), { width: child.props.width && parseInt("".concat(child.props.width), 10), level: level, children: child.props.children
55
- && _this.extractColumns(child.props.children, level + 1) }) : __assign(__assign({}, child), { level: level, children: child.children && _this.extractColumns(child.children, level + 1) });
56
- };
57
- _this.getExportData = function (exportData) {
58
- var result;
59
- if (exportData) {
60
- if (Array.isArray(exportData)) {
61
- result = {
62
- data: exportData
63
- };
64
- }
65
- else {
66
- result = exportData;
67
- }
68
- }
69
- else {
70
- result = {
71
- data: _this.props.data,
72
- group: _this.props.group
73
- };
74
- }
75
- return result;
76
- };
77
- if (typeof licensing !== 'undefined') {
78
- licensing.validatePackage(packageMetadata);
79
- }
80
- else {
81
- var message = "License activation failed for ".concat(packageMetadata.name, "\n");
82
- message += 'The @progress/kendo-licensing script is not loaded.\n';
83
- message += "See ".concat(packageMetadata.licensingDocsUrl, " for more information.\n");
84
- console.warn(message);
85
- }
86
- _this.save = _this.save.bind(_this);
87
- _this.toDataURL = _this.toDataURL.bind(_this);
88
- _this.workbookOptions = _this.workbookOptions.bind(_this);
89
- return _this;
90
- }
91
- /**
92
- * Saves the data to Excel.
93
- *
94
- * @param exportData - An optional parameter. Can be the data that will be exported or the [`WorkbookOptions`]({% slug api_excel-export_workbookoptions %}).
95
- * @param columns - An optional parameter. If present, it will be used instead of the columns prop or the child column components.
96
- */
97
- ExcelExport.prototype.save = function (exportData, columns) {
98
- var _this = this;
99
- this.toDataURL(exportData, columns)
100
- .then(function () {
101
- var args = [];
102
- for (var _i = 0; _i < arguments.length; _i++) {
103
- args[_i] = arguments[_i];
104
- }
105
- if (_this.props.onExportComplete) {
106
- _this.props.onExportComplete.call(undefined, { target: _this });
107
- }
108
- _this.saveFile.apply(_this, args);
109
- });
110
- };
111
- /**
112
- * Returns a promise which will be resolved with the file data URI.
113
- *
114
- * @param exportData - The optional data or the [`WorkbookOptions`]({% slug api_excel-export_workbookoptions %}) that will be used to generate the data URI.
115
- * @param externalColumns - The optional columns that will be used.
116
- * @returns {Promise<string>} - The promise that will be resolved by the file data URI.
117
- */
118
- ExcelExport.prototype.toDataURL = function (exportData, columns) {
119
- var options = isWorkbookOptions(exportData)
120
- ? exportData
121
- : this.workbookOptions(exportData, columns);
122
- return toDataURL(options);
123
- };
124
- /**
125
- * Based on the specified columns and data, returns [`WorkbookOptions`]({% slug api_excel-export_workbookoptions %}).
126
- *
127
- * @param exportData - The optional data that will be exported.
128
- * @param externalColumns - The optional columns that will be used.
129
- * @returns {WorkbookOptions} - The workbook options.
130
- */
131
- // tslint:enable:max-line-length
132
- ExcelExport.prototype.workbookOptions = function (exportData, externalColumns) {
133
- var currentData = this.getExportData(exportData);
134
- var children = this.props.children;
135
- var gridColumns = children && children.type &&
136
- children.type.displayName === 'KendoReactGrid' &&
137
- children.props && React.Children.toArray(children.props.children);
138
- var columns = this.extractColumns(gridColumns ||
139
- externalColumns ||
140
- this.props.columns ||
141
- React.Children.toArray(children));
142
- var options = workbookOptions({
143
- columns: columns,
144
- data: currentData.data,
145
- group: currentData.group,
146
- filterable: this.props.filterable,
147
- creator: this.props.creator,
148
- date: this.props.date,
149
- dir: this.props.dir,
150
- hierarchy: this.props.hierarchy,
151
- paddingCellOptions: this.props.paddingCellOptions,
152
- headerPaddingCellOptions: this.props.headerPaddingCellOptions,
153
- collapsible: this.props.collapsible
154
- });
155
- return options;
156
- };
157
- /**
158
- * @hidden
159
- */
160
- ExcelExport.prototype.render = function () {
161
- return this.props.children || null;
162
- };
163
- /**
164
- * @hidden
165
- */
166
- ExcelExport.propTypes = {
167
- children: PropTypes.any,
168
- columns: PropTypes.arrayOf(PropTypes.any),
169
- creator: PropTypes.string,
170
- data: PropTypes.any,
171
- date: PropTypes.any,
172
- filterable: PropTypes.bool,
173
- fileName: PropTypes.string,
174
- forceProxy: PropTypes.bool,
175
- group: PropTypes.any,
176
- headerPaddingCellOptions: PropTypes.any,
177
- paddingCellOptions: PropTypes.any,
178
- proxyURL: PropTypes.string,
179
- dir: PropTypes.string,
180
- hierarchy: PropTypes.bool,
181
- collapsible: PropTypes.bool
182
- };
183
- /**
184
- * @hidden
185
- */
186
- ExcelExport.defaultProps = {
187
- fileName: 'Export.xlsx',
188
- forceProxy: false,
189
- collapsible: false
190
- };
191
- return ExcelExport;
192
- }(React.Component));
193
- export { ExcelExport };
@@ -1,24 +0,0 @@
1
- import * as PropTypes from 'prop-types';
2
- /**
3
- * Represents the columns of the KendoReact ExcelExport component.
4
- *
5
- * @returns null
6
- */
7
- var ExcelExportColumn = function (_) { return null; };
8
- ExcelExportColumn.propTypes = {
9
- cellOptions: PropTypes.any,
10
- field: PropTypes.string,
11
- footerCellOptions: PropTypes.any,
12
- footer: PropTypes.oneOfType([PropTypes.func, PropTypes.element]),
13
- groupFooterCellOptions: PropTypes.any,
14
- groupFooter: PropTypes.oneOfType([PropTypes.func, PropTypes.element]),
15
- groupHeaderCellOptions: PropTypes.any,
16
- groupHeader: PropTypes.oneOfType([PropTypes.func, PropTypes.element]),
17
- headerCellOptions: PropTypes.any,
18
- hidden: PropTypes.bool,
19
- level: PropTypes.number,
20
- locked: PropTypes.bool,
21
- title: PropTypes.string,
22
- width: PropTypes.number
23
- };
24
- export { ExcelExportColumn };