@progress/kendo-react-excel-export 5.10.0-dev.202301121619 → 5.10.0-dev.202301161904
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.
package/NOTICE.txt
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
Progress KendoReact
|
|
1
|
+
Progress KendoReact 2023
|
|
2
2
|
|
|
3
|
-
Copyright © 2018-
|
|
3
|
+
Copyright © 2018-2023 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved.
|
|
4
4
|
|
|
5
|
-
Portions of the Product include certain open source and commercial third-party components listed below (
|
|
5
|
+
Portions of the Product include certain open source and commercial third-party components listed below (“Third-Party Components”). The authors of the Third-Party Components require Progress Software Corporation (“PSC”) to include the following notices and additional licensing terms as a condition of PSC’s use of such Third-Party Components. You acknowledge that the authors of the Third-Party Components have no obligation to provide support to you for the Third-Party Components or the Product. You hereby undertake to comply with all licenses related to the applicable Third-Party Components. Notwithstanding anything to the contrary, to the extent that any of the terms and conditions of the Product Agreement conflict, vary, or are in addition to the terms and conditions of the aforementioned third-party licenses for these technologies, such terms and conditions are offered by Progress alone and not by any other party.
|
|
6
6
|
|
|
7
7
|
-------------------------------------------------------------------------
|
|
8
8
|
SUMMARY OF COMPONENTS:
|
|
@@ -24,7 +24,8 @@ DefinitelyTyped.org | @types/prosemirror-transform | 1.2.9 - Open Source | MIT-s
|
|
|
24
24
|
DefinitelyTyped.org | @types/prosemirror-view | 1.11.4 - Open Source | MIT-style License
|
|
25
25
|
Facebook, Inc. | prop-types | 15.6.0 - Open Source | MIT-style License
|
|
26
26
|
Facebook, Inc. | react-transition-group | 2.2.0 - Open Source | BSD-style License
|
|
27
|
-
|
|
27
|
+
Mozilla Foundation | pdf.js | 2.6.347 – Open Source | Apache Software License Version 2.0
|
|
28
|
+
Progress Software Corporation | Kendo UI Licensing CLI | 1.1 - Proprietary |
|
|
28
29
|
Progress Software Corporation | jszip-esm | 1.0.0 - Open Source | MIT-style License
|
|
29
30
|
Progress Software Corporation | pako-esm | 1.0.0 - Open Source | MIT-style License
|
|
30
31
|
ProseMirror | prosemiror-inputrules | 1.0.1 - Open Source | MIT-style License
|
|
@@ -39,12 +40,17 @@ ProseMirror | prosemirror-tables | 0.7.10 - Open Source | MIT-style License
|
|
|
39
40
|
ProseMirror | prosemirror-transform | 1.1.3 - Open Source | MIT-style License
|
|
40
41
|
ProseMirror | prosemirror-view | 1.5.2 - Open Source | MIT-style License
|
|
41
42
|
-------------------------------------------------------------------------
|
|
42
|
-
|
|
43
|
+
|
|
43
44
|
1. Special Notices Regarding Open-Source Third-Party Components incorporated into the Product:
|
|
44
45
|
|
|
45
|
-
(1)
|
|
46
|
+
(1) The Apache Software License, Version 2.0:
|
|
47
|
+
|
|
48
|
+
Progress KendoReact 2023 incorporates pdf.js v2.6.347. Such technology is subject to the following terms and conditions: Apache Software License Version 2.0. Copyright 2001-2004 The Apache Software Foundation. Such Apache Technology is subject to the following terms and conditions: The Apache Software License, Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
49
|
+
-------------------------------------------------------------------------
|
|
50
|
+
|
|
51
|
+
(2) BSD-Style Licenses:
|
|
46
52
|
|
|
47
|
-
(a) Progress KendoReact
|
|
53
|
+
(a) Progress KendoReact 2023 incorporates React-Transition-Group v2.2.0. Such technology is subject to the following terms and conditions:
|
|
48
54
|
BSD 3-Clause License
|
|
49
55
|
Copyright (c) 2018, React Community
|
|
50
56
|
Forked from React (https://github.com/facebook/react) Copyright 2013-present, Facebook, Inc.
|
|
@@ -57,14 +63,14 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
|
57
63
|
|
|
58
64
|
(2) MIT-Style Licenses:
|
|
59
65
|
|
|
60
|
-
(a) Progress KendoReact
|
|
66
|
+
(a) Progress KendoReact 2023 incorporates @types/prosemirror-commands v1*, @types/prosemirror-dropcursor v1*, @types/prosemirror-gapcursor v1*, @types/prosemirror-history v1*, @types/prosemirror-inputrules v1*, @types/prosemirror-keymap v1*, @types/prosemirror-model v1*, @types/prosemirror-schema-list v1*, @types/prosemirror-state v1*, @types/prosemirror-tables v0.9*, @types/prosemirror-transform v1*, and @types/prosemirror-view v1*. Such technologies are subject to the following terms and conditions:
|
|
61
67
|
This project is licensed under the MIT license.
|
|
62
68
|
Copyrights are respective of each contributor listed at the beginning of each definition file.
|
|
63
69
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
64
70
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
65
71
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
66
72
|
|
|
67
|
-
(b) Progress KendoReact
|
|
73
|
+
(b) Progress KendoReact 2023 incorporates prop-types v15*. Such technology is subject to the following terms and conditions:
|
|
68
74
|
MIT License
|
|
69
75
|
Copyright (c) 2013-present, Facebook, Inc.
|
|
70
76
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -73,39 +79,39 @@ furnished to do so, subject to the following conditions:
|
|
|
73
79
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
74
80
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
75
81
|
|
|
76
|
-
(c) Progress KendoReact
|
|
82
|
+
(c) Progress KendoReact 2023 incorporates Axios v0.18.1. Such technology is subject to the following terms and conditions:
|
|
77
83
|
Copyright (c) 2014-present Matt Zabriskie
|
|
78
84
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
79
85
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
80
86
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
81
87
|
|
|
82
|
-
(d) Progress KendoReact
|
|
83
|
-
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. (as modified)
|
|
84
|
-
Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
|
|
88
|
+
(d) Progress KendoReact 2023 incorporates pako-esm v1.0.0. Such technology is subject to the following terms and conditions:
|
|
89
|
+
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. (as modified)
|
|
90
|
+
Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn
|
|
85
91
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
86
92
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
87
93
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
88
94
|
|
|
89
|
-
(e) Progress KendoReact
|
|
95
|
+
(e) Progress KendoReact 2023 incorporates jszip-esm v1.0.0. Such technology is subject to the following terms and conditions:
|
|
90
96
|
Copyright © 2020 Progress Software Corporation and/or one of its subsidiaries or affiliates. All rights reserved. (as modified)
|
|
91
|
-
Copyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger,
|
|
97
|
+
Copyright (c) 2009-2016 Stuart Knightley, David Duponchel, Franz Buchinger, António Afonso
|
|
92
98
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
93
99
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
94
100
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
95
101
|
|
|
96
|
-
(f) Progress KendoReact
|
|
97
|
-
Copyright (C) 2015-2017 by Marijn Haverbeke <marijnh@gmail.com> and others
|
|
102
|
+
(f) Progress KendoReact 2023 incorporates prosemirror-commands v1*, prosemirror-gapcursor v1*, prosemirror-history v1*, prosemirror-inputrules v1*, prosemirror-keymap v1*, prosemirror-model v1*, prosemirror-schema-list v1*, prosemirror-state v1*, prosemirror-tables v0.9*, prosemirror-transform v1*, and prosemirror-view v1*. Such technologies are subject to the following terms and conditions:
|
|
103
|
+
Copyright (C) 2015-2017 by Marijn Haverbeke <marijnh@gmail.com> and others
|
|
98
104
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
99
105
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
100
106
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
101
|
-
|
|
107
|
+
|
|
102
108
|
2. Special Notices Regarding Commercially Licensed Third-Party Components incorporated into the Product: NONE
|
|
103
109
|
|
|
104
|
-
3. Special Notices Regarding Progress Products incorporated into the Product:
|
|
110
|
+
3. Special Notices Regarding Progress Products incorporated into the Product:
|
|
111
|
+
|
|
112
|
+
(a) Progress KendoReact 2023 incorporates Kendo UI Licensing CLI v1.1 from Progress Software Corporation. See NOTICE.txt text file within product for third-party license information.
|
|
105
113
|
|
|
106
|
-
(a) Progress KendoReact 2022 incorporates Kendo UI Licensing CLI v1.1 from Progress Software Corporation. See NOTICE.txt text file within product for third-party license information.
|
|
107
|
-
|
|
108
114
|
NOTICE FROM PROGRESS SOFTWARE CORPORATION: Additional notices may be included in the release notes or other documentation that accompanies updates received in connection with support of the Product.
|
|
109
115
|
|
|
110
116
|
|
|
111
|
-
Updated
|
|
117
|
+
Updated 11.Jan.2023
|
|
@@ -1 +1 @@
|
|
|
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),c=r(302),u=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!==c)c.validatePackage(u.packageMetadata);else{var n="License activation failed for ".concat(u.packageMetadata.name,"\n");n+="The @progress/kendo-licensing script is not loaded.\n",n+="See ".concat(u.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 c=r(464);Object.defineProperty(e,"ExcelExportGroupHeader",{enumerable:!0,get:function(){return c.ExcelExportGroupHeader}});var u=r(364);e.KendoOoxml=u,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 c(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 c=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=c},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:1673539038,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:()=>u,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+/=",c=String.fromCharCode;function u(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+=c(n):n<2048?(e+=c(192|n>>>6),e+=c(128|63&n)):n<65536&&(e+=c(224|n>>>12),e+=c(128|n>>>6&63),e+=c(128|63&n))}return e}(t),u="",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),u=u+h.charAt(i)+h.charAt(o)+h.charAt(a)+h.charAt(s);return u}},364:(t,e,r)=>{r.r(e),r.d(e,{ExcelExporter:()=>f,IntlService:()=>v,TemplateService:()=>o,Workbook:()=>Xr,Worksheet:()=>Hr});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={};function l(t){if(s[t])return s[t];var e=[];return t.replace(a,(function(t,r,n,i){e.push(void 0!==r?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 h(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 u(t,e){for(var r=[],n=0;n<t;n++)r.push(e(n));return r}function d(t){return t.id}s[void 0]=function(t){return t};var p=function(t){t.columns=this._trimColumns(t.columns||[]),this.allColumns=h(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};p.prototype.workbook=function(){return{sheets:[{columns:this._columns(),rows:this.hierarchy?this._hierarchyRows():this._rows(),freezePane:this._freezePane(),filter:this._filter()}]}},p.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}))},p.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},p.prototype._prepareColumn=function(t){if(!t.field)return null;var e=function(e){return l(t.field)(e)},r=null;return t.values&&(r={},t.values.forEach((function(t){r[t.value]=t.text})),e=function(e){return r[l(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})},p.prototype._filter=function(){if(!this.options.filterable)return null;var t=this._depth();return{from:t,to:t+this.columns.length-1}},p.prototype._createPaddingCells=function(t){var e=this;return u(t,(function(){return Object.assign({background:"#dfdfdf",color:"#333"},e.options.paddingCellOptions)}))},p.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}]},p.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},p.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},p.prototype._hierarchyRows=function(){var t,e=this._depth(),r=this.data,n=this.hierarchy.itemLevel,i=this.hierarchy.itemId||d,o=this._hasFooterTemplate(),a=[],s=[],l=0;o||(this.collapsible=!1);for(var h=0;h<r.length;h++){var c=r[h],u=n(c,h);o&&(u>l?s.push({id:t,level:l}):u<l&&a.push.apply(a,this._hierarchyFooterRows(s,u,e)),l=u,t=i(c,h)),a.push.apply(a,this._dataRow(c,u+1,e))}if(o){a.push.apply(a,this._hierarchyFooterRows(s,0,e));var p=r.length?this.aggregates[r[0].parentId]:{};a.push(this._hierarchyFooter(p,0,e))}return this._prependHeaderRows(a),a},p.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},p.prototype._hasFooterTemplate=function(){for(var t=this.columns,e=0;e<t.length;e++)if(t[e].footerTemplate)return!0},p.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}},p.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},p.prototype._isColumnVisible=function(t){return this._visibleColumns([t]).length>0&&(t.field||t.columns)},p.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}))},p.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:u(e.length,(function(){return Object.assign({background:"#7a7a7a",color:"#fff"},r.options.headerPaddingCellOptions)})).concat(n)}},p.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))},p.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 c=Object.assign({background:"#7a7a7a",color:"#fff",value:h.title||h.field,colSpan:0,firstCell:0===l&&(!r||r.firstCell)},h.headerCellOptions);o.cells.push(c),h.columns&&h.columns.length&&(a||(a={rowSpan:0,cells:[],index:t.length},t.push(a)),c.colSpan=i._trimColumns(i._visibleColumns(h.columns)).length,i._prepareHeaderRows(t,h.columns,c,a),s+=c.colSpan-1,o.rowSpan=t.length-o.index)}}r&&(r.colSpan+=s)},p.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},p.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},p.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}},p.prototype._cell=function(t,e){return Object.assign({value:e.value(t)},e.cellOptions)},p.prototype._depth=function(){return this.hierarchy?this.hierarchy.depth:this.groups.length},p.prototype._columns=function(){return u(this._depth(),(function(){return{width:20}})).concat(this.columns.map((function(t){return{width:parseInt(t.width,10),autoWidth:!t.width}})))};const f=p;var m={toString:function(t){return t}},g=function(){};g.register=function(t){m=t},g.toString=function(t,e){return m.toString(t,e)};const v=g;var _=-2;function y(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function b(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)y(r,n)&&(t[n]=r[n])}}return t}function w(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)}var x={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)}},k={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)}},C=function(){var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;return C=function(){return t},t},O=function(t,e,r,n,i){return(O=C()?x.arraySet:k.arraySet)(t,e,r,n,i)},S=function(t){return(S=C()?x.flattenChunks:k.flattenChunks)(t)},z=function(t){return(z=C()?x.Buf8:k.Buf8)(t)},E=function(t){return(E=C()?x.Buf16:k.Buf16)(t)},I=function(t){return(I=C()?x.Buf32:k.Buf32)(t)},A=function(){var t=!0;try{String.fromCharCode.apply(null,[0])}catch(e){t=!1}return A=function(){return t},t},P=function(){var t=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){t=!1}return P=function(){return t},t},T=function(t){for(var e=z(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,T=function(t){return e[t]},e[t]};function F(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 D(t,e){if(e<65534&&(t.subarray&&P()||!t.subarray&&A()))return String.fromCharCode.apply(null,w(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}function j(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=T(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 D(s,n)}function R(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+T(t[r])>e?r:e}function B(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 U=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 U=function(){return t},t};function L(t,e,r,n){var i=U(),o=n+r;t^=-1;for(var a=n;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t}function N(t,e){var r,n,i,o,a,s,l,h,c,u,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,c=r.whave,u=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=12;break t}t.msg="invalid literal/length code",r.mode=30;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=30;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=30;break t}if(p>>>=b,f-=b,x>(b=o-a)){if((b=x-b)>c&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(k=0,C=d,0===u){if(k+=h-b,b<w){w-=b;do{S[o++]=d[k++]}while(--b);k=o-x,C=S}}else if(u<b){if(k+=h+u-b,(b-=u)<w){w-=b;do{S[o++]=d[k++]}while(--b);if(k=0,u<w){w-=b=u;do{S[o++]=d[k++]}while(--b);k=o-x,C=S}}}else if(k+=u-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 M=[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],W=[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],H=[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],q=[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 G(t,e,r,n,i,o,a,s){var l,h,c,u,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,I=null,A=0,P=E(16),T=E(16),F=null,D=0;for(_=0;_<=15;_++)P[_]=0;for(y=0;y<n;y++)P[e[r+y]]++;for(x=v,w=15;w>=1&&0===P[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===P[b];b++);for(x<b&&(x=b),O=1,_=1;_<=15;_++)if(O<<=1,(O-=P[_])<0)return-1;if(O>0&&(0===t||1!==w))return-1;for(T[1]=0,_=1;_<15;_++)T[_+1]=T[_]+P[_];for(y=0;y<n;y++)0!==e[r+y]&&(a[T[e[r+y]]++]=y);if(0===t?(I=F=a,p=19):1===t?(I=M,A-=257,F=W,D-=257,p=256):(I=H,F=q,p=-1),z=0,y=0,_=b,d=o,k=x,C=0,c=-1,u=(S=1<<x)-1,1===t&&S>852||2===t&&S>592)return 1;for(;;){f=_-C,a[y]<p?(m=0,g=a[y]):a[y]>p?(m=F[D+a[y]],g=I[A+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==--P[_]){if(_===w)break;_=e[r+a[y]]}if(_>x&&(z&u)!==c){for(0===C&&(C=x),d+=b,O=1<<(k=_-C);k+C<w&&!((O-=P[k+C])<=0);)k++,O<<=1;if(S+=1<<k,1===t&&S>852||2===t&&S>592)return 1;i[c=z&u]=x<<24|k<<16|d-o|0}}return 0!==z&&(i[d+z]=_-C<<24|64<<16|0),s.bits=x,0}var V=-2,Z=12,K=30;function X(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function J(){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=E(320),this.work=E(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function $(t,e){var r,n;return t?(n=new J,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)?V:(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=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=I(852),e.distcode=e.distdyn=I(592),e.sane=1,e.back=-1,0):V}(t)):V}(t))):V}(t,e),0!==r&&(t.state=null),r):V}var Q,Y,tt=!0;function et(t){if(tt){var e;for(Q=I(512),Y=I(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(G(1,t.lens,0,288,Q,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;G(2,t.lens,0,32,Y,0,t.work,{bits:5}),tt=!1}t.lencode=Q,t.lenbits=9,t.distcode=Y,t.distbits=5}function rt(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=z(o.wsize)),n>=o.wsize?(O(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>n&&(i=n),O(o.window,e,r-n,i,o.wnext),(n-=i)?(O(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 nt(t,e){var r,n,i,o,a,s,l,h,c,u,d,p,f,m,g,v,_,y,b,w,x,k,C,S,E=0,I=z(4),A=[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 V;(r=t.state).mode===Z&&(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,c=r.bits,u=s,d=l,k=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;c<16;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(2&r.wrap&&35615===h){r.check=0,I[0]=255&h,I[1]=h>>>8&255,r.check=L(r.check,I,2,0),h=0,c=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=K;break}if(8!=(15&h)){t.msg="unknown compression method",r.mode=K;break}if(c-=4,x=8+(15&(h>>>=4)),0===r.wbits)r.wbits=x;else if(x>r.wbits){t.msg="invalid window size",r.mode=K;break}r.dmax=1<<x,t.adler=r.check=1,r.mode=512&h?10:Z,h=0,c=0;break;case 2:for(;c<16;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(r.flags=h,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=K;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=K;break}r.head&&(r.head.text=h>>8&1),512&r.flags&&(I[0]=255&h,I[1]=h>>>8&255,r.check=L(r.check,I,2,0)),h=0,c=0,r.mode=3;case 3:for(;c<32;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}r.head&&(r.head.time=h),512&r.flags&&(I[0]=255&h,I[1]=h>>>8&255,I[2]=h>>>16&255,I[3]=h>>>24&255,r.check=L(r.check,I,4,0)),h=0,c=0,r.mode=4;case 4:for(;c<16;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}r.head&&(r.head.xflags=255&h,r.head.os=h>>8),512&r.flags&&(I[0]=255&h,I[1]=h>>>8&255,r.check=L(r.check,I,2,0)),h=0,c=0,r.mode=5;case 5:if(1024&r.flags){for(;c<16;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}r.length=h,r.head&&(r.head.extra_len=h),512&r.flags&&(I[0]=255&h,I[1]=h>>>8&255,r.check=L(r.check,I,2,0)),h=0,c=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)),O(r.head.extra,n,o,p,x)),512&r.flags&&(r.check=L(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=L(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=L(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(;c<16;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(h!==(65535&r.check)){t.msg="header crc mismatch",r.mode=K;break}h=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=Z;break;case 10:for(;c<32;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}t.adler=r.check=X(h),h=0,c=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=c,2;t.adler=r.check=1,r.mode=Z;case Z:if(5===e||6===e)break t;case 13:if(r.last){h>>>=7&c,c-=7&c,r.mode=27;break}for(;c<3;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}switch(r.last=1&h,c-=1,3&(h>>>=1)){case 0:r.mode=14;break;case 1:if(et(r),r.mode=20,6===e){h>>>=2,c-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=K}h>>>=2,c-=2;break;case 14:for(h>>>=7&c,c-=7&c;c<32;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",r.mode=K;break}if(r.length=65535&h,h=0,c=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;O(i,n,o,p,a),s-=p,o+=p,l-=p,a+=p,r.length-=p;break}r.mode=Z;break;case 17:for(;c<14;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(r.nlen=257+(31&h),h>>>=5,c-=5,r.ndist=1+(31&h),h>>>=5,c-=5,r.ncode=4+(15&h),h>>>=4,c-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=K;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;c<3;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}r.lens[A[r.have++]]=7&h,h>>>=3,c-=3}for(;r.have<19;)r.lens[A[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},k=G(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,k){t.msg="invalid code lengths set",r.mode=K;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;v=(E=r.lencode[h&(1<<r.lenbits)-1])>>>16&255,_=65535&E,!((g=E>>>24)<=c);){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(_<16)h>>>=g,c-=g,r.lens[r.have++]=_;else{if(16===_){for(S=g+2;c<S;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(h>>>=g,c-=g,0===r.have){t.msg="invalid bit length repeat",r.mode=K;break}x=r.lens[r.have-1],p=3+(3&h),h>>>=2,c-=2}else if(17===_){for(S=g+3;c<S;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}c-=g,x=0,p=3+(7&(h>>>=g)),h>>>=3,c-=3}else{for(S=g+7;c<S;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}c-=g,x=0,p=11+(127&(h>>>=g)),h>>>=7,c-=7}if(r.have+p>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=K;break}for(;p--;)r.lens[r.have++]=x}}if(r.mode===K)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=K;break}if(r.lenbits=9,C={bits:r.lenbits},k=G(1,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,k){t.msg="invalid literal/lengths set",r.mode=K;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},k=G(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,k){t.msg="invalid distances set",r.mode=K;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=c,N(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,c=r.bits,r.mode===Z&&(r.back=-1);break}for(r.back=0;v=(E=r.lencode[h&(1<<r.lenbits)-1])>>>16&255,_=65535&E,!((g=E>>>24)<=c);){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(v&&0==(240&v)){for(y=g,b=v,w=_;v=(E=r.lencode[w+((h&(1<<y+b)-1)>>y)])>>>16&255,_=65535&E,!(y+(g=E>>>24)<=c);){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}h>>>=y,c-=y,r.back+=y}if(h>>>=g,c-=g,r.back+=g,r.length=_,0===v){r.mode=26;break}if(32&v){r.back=-1,r.mode=Z;break}if(64&v){t.msg="invalid literal/length code",r.mode=K;break}r.extra=15&v,r.mode=22;case 22:if(r.extra){for(S=r.extra;c<S;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}r.length+=h&(1<<r.extra)-1,h>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;v=(E=r.distcode[h&(1<<r.distbits)-1])>>>16&255,_=65535&E,!((g=E>>>24)<=c);){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(0==(240&v)){for(y=g,b=v,w=_;v=(E=r.distcode[w+((h&(1<<y+b)-1)>>y)])>>>16&255,_=65535&E,!(y+(g=E>>>24)<=c);){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}h>>>=y,c-=y,r.back+=y}if(h>>>=g,c-=g,r.back+=g,64&v){t.msg="invalid distance code",r.mode=K;break}r.offset=_,r.extra=15&v,r.mode=24;case 24:if(r.extra){for(S=r.extra;c<S;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}r.offset+=h&(1<<r.extra)-1,h>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=K;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=K;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(;c<32;){if(0===s)break t;s--,h|=n[o++]<<c,c+=8}if(d-=l,t.total_out+=d,r.total+=d,d&&(t.adler=r.check=r.flags?L(r.check,i,d,a-d):B(r.check,i,d,a-d)),d=l,(r.flags?h:X(h))!==r.check){t.msg="incorrect data check",r.mode=K;break}h=0,c=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;c<32;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(h!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=K;break}h=0,c=0}r.mode=29;case 29:k=1;break t;case K:k=-3;break t;case 31:return-4;default:return V}return t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=h,r.bits=c,(r.wsize||d!==t.avail_out&&r.mode<K&&(r.mode<27||4!==e))&&rt(t,t.output,t.next_out,d-t.avail_out),u-=t.avail_in,d-=t.avail_out,t.total_in+=u,t.total_out+=d,r.total+=d,r.wrap&&d&&(t.adler=r.check=r.flags?L(r.check,i,d,t.next_out-d):B(r.check,i,d,t.next_out-d)),t.data_type=r.bits+(r.last?64:0)+(r.mode===Z?128:0)+(20===r.mode||15===r.mode?256:0),(0===u&&0===d||4===e)&&0===k&&(k=-5),k}function it(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?V:11===r.mode&&B(1,e,n,0)!==r.check?-3:rt(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):V}var ot={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 at(){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 lt=Object.prototype.toString,ht=function t(e){if(!(this instanceof t))return new t(e);this.options=b({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 at,this.strm.avail_out=0;var n,i,o,a=$(this.strm,r.windowBits);if(0!==a)throw new Error(ot[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=F(r.dictionary):"[object ArrayBuffer]"===lt.call(r.dictionary)&&(r.dictionary=new Uint8Array(r.dictionary)),r.raw&&0!==(a=it(this.strm,r.dictionary))))throw new Error(ot[a])};function ct(t){for(var e=t.length;--e>=0;)t[e]=0}ht.prototype.push=function(t,e){var r,n,i,o,a,s,l=this.strm,h=this.options.chunkSize,c=this.options.dictionary,u=!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]"===lt.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=z(h),l.next_out=0,l.avail_out=h),2===(r=nt(l,0))&&c&&(s="string"==typeof c?F(c):"[object ArrayBuffer]"===lt.call(c)?new Uint8Array(c):c,r=it(this.strm,s)),-5===r&&!0===u&&(r=0,u=!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=R(l.output,l.next_out),o=l.next_out-i,a=j(l.output,i),l.next_out=o,l.avail_out=h-o,o&&O(l.output,l.output,i,o,0),this.onData(a)):this.onData(w(l.output,l.next_out)))),0===l.avail_in&&0===l.avail_out&&(u=!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 V;var e=t.state;return e.window&&(e.window=null),t.state=null,0}(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),l.avail_out=0,!0)},ht.prototype.onData=function(t){this.chunks.push(t)},ht.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=S(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ut,dt,pt,ft,mt,gt,vt,_t,yt,bt=[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],wt=[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],xt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],kt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function Ct(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 Ot(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function St(t){return t<256?pt[t]:pt[256+(t>>>7)]}function zt(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function Et(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,zt(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function It(t,e,r){Et(t,r[2*e],r[2*e+1])}function At(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function Pt(t,e,r){var n,i,o=new Array(16),a=0;for(n=1;n<=15;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]=At(o[s]++,s))}}function Tt(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function Ft(t){t.bi_valid>8?zt(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 Dt(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 jt(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&Dt(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!Dt(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function Rt(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?It(t,i,e):(It(t,(o=ft[i])+256+1,e),0!==(a=bt[o])&&Et(t,i-=mt[o],a),It(t,o=St(--n),r),0!==(a=wt[o])&&Et(t,n-=gt[o],a))}while(s<t.last_lit);It(t,256,e)}function Bt(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=573,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--)jt(t,o,r);i=l;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],jt(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++,jt(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,c=e.stat_desc.static_tree,u=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<=15;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;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),u&&(t.static_len+=s*(c[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),Pt(o,h,t.bl_count)}function Ut(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[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(l=138,h=3):i===a?(l=6,h=3):(l=7,h=4))}function Lt(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{It(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(It(t,i,t.bl_tree),s--),It(t,16,t.bl_tree),Et(t,s-3,2)):s<=10?(It(t,17,t.bl_tree),Et(t,s-3,3)):(It(t,18,t.bl_tree),Et(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 Nt=!1;function Mt(t,e,r,n){Et(t,0+(n?1:0),3),function(t,e,r,n){Ft(t),zt(t,r),zt(t,~r),O(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r)}function Wt(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]+256+1)]++,t.dyn_dtree[2*St(e)]++),t.last_lit===t.lit_bufsize-1}var Ht=258,qt=262,Gt=103,Vt=113,Zt=666;function Kt(t,e){return t.msg=ot[e],e}function Xt(t){return(t<<1)-(t>4?9:0)}function Jt(t){for(var e=t.length;--e>=0;)t[e]=0}function $t(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(O(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 Qt(t,e){(function(t,e,r,n){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(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 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),Bt(t,t.l_desc),Bt(t,t.d_desc),a=function(t){var e;for(Ut(t,t.dyn_ltree,t.l_desc.max_code),Ut(t,t.dyn_dtree,t.d_desc.max_code),Bt(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*kt[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?Mt(t,e,r,n):4===t.strategy||o===i?(Et(t,2+(n?1:0),3),Rt(t,ut,dt)):(Et(t,4+(n?1:0),3),function(t,e,r,n){var i;for(Et(t,e-257,5),Et(t,r-1,5),Et(t,n-4,4),i=0;i<n;i++)Et(t,t.bl_tree[2*kt[i]+1],3);Lt(t,t.dyn_ltree,e-1),Lt(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),Rt(t,t.dyn_ltree,t.dyn_dtree)),Tt(t),n&&Ft(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,$t(t.strm)}function Yt(t,e){t.pending_buf[t.pending++]=e}function te(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function ee(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-qt?t.strstart-(t.w_size-qt):0,h=t.window,c=t.w_mask,u=t.prev,d=t.strstart+Ht,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=Ht-(d-o),o=d-Ht,n>a){if(t.match_start=e,a=n,n>=s)break;p=h[o+a-1],f=h[o+a]}}}while((e=u[e&c])>l&&0!=--i);return a<=t.lookahead?a:t.lookahead}function re(t){var e,r,n,i,o,a,s,l,h,c,u=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=u+(u-qt)){O(t.window,t.window,u,u,0),t.match_start-=u,t.strstart-=u,t.block_start-=u,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=u?n-u:0}while(--r);e=r=u;do{n=t.prev[--e],t.prev[e]=n>=u?n-u:0}while(--r);i+=u}if(0===t.strm.avail_in)break;if(a=t.strm,s=t.window,l=t.strstart+t.lookahead,h=i,c=void 0,(c=a.avail_in)>h&&(c=h),r=0===c?0:(a.avail_in-=c,O(s,a.input,a.next_in,c,l),1===a.state.wrap?a.adler=B(a.adler,s,c,l):2===a.state.wrap&&(a.adler=L(a.adler,s,c,l)),a.next_in+=c,a.total_in+=c,c),t.lookahead+=r,t.lookahead+t.insert>=3)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+3-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<3)););}while(t.lookahead<qt&&0!==t.strm.avail_in)}function ne(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(re(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,Qt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-qt&&(Qt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Qt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Qt(t,!1),t.strm.avail_out),1)}function ie(t,e){for(var r,n;;){if(t.lookahead<qt){if(re(t),t.lookahead<qt&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-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-qt&&(t.match_length=ee(t,r)),t.match_length>=3)if(n=Wt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-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=Wt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Qt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Qt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Qt(t,!1),0===t.strm.avail_out)?1:2}function oe(t,e){for(var r,n,i;;){if(t.lookahead<qt){if(re(t),t.lookahead<qt&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-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=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-qt&&(t.match_length=ee(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=Wt(t,t.strstart-1-t.prev_match,t.prev_length-3),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+3-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=2,t.strstart++,n&&(Qt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=Wt(t,0,t.window[t.strstart-1]))&&Qt(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=Wt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Qt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Qt(t,!1),0===t.strm.avail_out)?1:2}function ae(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 se=function(){var t=[new ae(0,0,0,0,ne),new ae(4,4,8,4,ie),new ae(4,5,16,8,ie),new ae(4,6,32,32,ie),new ae(4,4,16,16,oe),new ae(8,16,32,32,oe),new ae(8,16,128,128,oe),new ae(8,32,128,256,oe),new ae(32,128,258,1024,oe),new ae(32,258,258,4096,oe)];return se=function(){return t},t};function le(){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=E(1146),this.dyn_dtree=E(122),this.bl_tree=E(78),Jt(this.dyn_ltree),Jt(this.dyn_dtree),Jt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=E(16),this.heap=E(573),Jt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=E(573),Jt(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 he(t){var e=function(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:Vt,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){Nt||(function(){var t,e,r,n,i,o=new Array(16);for(ct(ut=new Array(576)),ct(dt=new Array(60)),ct(pt=new Array(512)),ct(ft=new Array(256)),ct(mt=new Array(29)),ct(gt=new Array(30)),r=0,n=0;n<28;n++)for(mt[n]=r,t=0;t<1<<bt[n];t++)ft[r++]=n;for(ft[r-1]=n,i=0,n=0;n<16;n++)for(gt[n]=i,t=0;t<1<<wt[n];t++)pt[i++]=n;for(i>>=7;n<30;n++)for(gt[n]=i<<7,t=0;t<1<<wt[n]-7;t++)pt[256+i++]=n;for(e=0;e<=15;e++)o[e]=0;for(t=0;t<=143;)ut[2*t+1]=8,t++,o[8]++;for(;t<=255;)ut[2*t+1]=9,t++,o[9]++;for(;t<=279;)ut[2*t+1]=7,t++,o[7]++;for(;t<=287;)ut[2*t+1]=8,t++,o[8]++;for(Pt(ut,287,o),t=0;t<30;t++)dt[2*t+1]=5,dt[2*t]=At(t,5);vt=new Ct(ut,bt,257,286,15),_t=new Ct(dt,wt,0,30,15),yt=new Ct(new Array(0),xt,0,19,7)}(),Nt=!0),t.l_desc=new Ot(t.dyn_ltree,vt),t.d_desc=new Ot(t.dyn_dtree,_t),t.bl_desc=new Ot(t.bl_tree,yt),t.bi_buf=0,t.bi_valid=0,Tt(t)}(e),0):Kt(t,_)}(t);return 0===e&&function(t){t.window_size=2*t.w_size,Jt(t.head);var e=se();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=2,t.match_available=0,t.ins_h=0}(t.state),e}function ce(t,e){var r,n,i,o;if(!t||!t.state||e>5||e<0)return t?Kt(t,_):_;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||n.status===Zt&&4!==e)return Kt(t,0===t.avail_out?-5:_);if(n.strm=t,r=n.last_flush,n.last_flush=e,42===n.status)if(2===n.wrap)t.adler=0,Yt(n,31),Yt(n,139),Yt(n,8),n.gzhead?(Yt(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)),Yt(n,255&n.gzhead.time),Yt(n,n.gzhead.time>>8&255),Yt(n,n.gzhead.time>>16&255),Yt(n,n.gzhead.time>>24&255),Yt(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Yt(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Yt(n,255&n.gzhead.extra.length),Yt(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=L(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(Yt(n,0),Yt(n,0),Yt(n,0),Yt(n,0),Yt(n,0),Yt(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Yt(n,3),n.status=Vt);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=Vt,te(n,a),0!==n.strstart&&(te(n,t.adler>>>16),te(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=L(t.adler,n.pending_buf,n.pending-i,i)),$t(t),i=n.pending,n.pending!==n.pending_buf_size));)Yt(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=L(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=L(t.adler,n.pending_buf,n.pending-i,i)),$t(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,Yt(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(t.adler=L(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=L(t.adler,n.pending_buf,n.pending-i,i)),$t(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,Yt(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(t.adler=L(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=Gt)}else n.status=Gt;if(n.status===Gt&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&$t(t),n.pending+2<=n.pending_buf_size&&(Yt(n,255&t.adler),Yt(n,t.adler>>8&255),t.adler=0,n.status=Vt)):n.status=Vt),0!==n.pending){if($t(t),0===t.avail_out)return n.last_flush=-1,0}else if(0===t.avail_in&&Xt(e)<=Xt(r)&&4!==e)return Kt(t,-5);if(n.status===Zt&&0!==t.avail_in)return Kt(t,-5);if(0!==t.avail_in||0!==n.lookahead||0!==e&&n.status!==Zt){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(re(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=Wt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Qt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Qt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Qt(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<=Ht){if(re(t),t.lookahead<=Ht&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=a[i=t.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){o=t.strstart+Ht;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=Ht-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=Wt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=Wt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Qt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Qt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Qt(t,!1),0===t.strm.avail_out)?1:2}(n,e):se()[n.level].func(n,e);if(3!==s&&4!==s||(n.status=Zt),1===s||3===s)return 0===t.avail_out&&(n.last_flush=-1),0;if(2===s&&(1===e?function(t){Et(t,2,3),It(t,256,ut),function(t){16===t.bi_valid?(zt(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&&(Mt(n,0,0,!1),3===e&&(Jt(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),$t(t),0===t.avail_out))return n.last_flush=-1,0}return 4!==e?0:n.wrap<=0?1:(2===n.wrap?(Yt(n,255&t.adler),Yt(n,t.adler>>8&255),Yt(n,t.adler>>16&255),Yt(n,t.adler>>24&255),Yt(n,255&t.total_in),Yt(n,t.total_in>>8&255),Yt(n,t.total_in>>16&255),Yt(n,t.total_in>>24&255)):(te(n,t.adler>>>16),te(n,65535&t.adler)),$t(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)}var ue=Object.prototype.toString,de=function(t){this.options=b({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 at,this.strm.avail_out=0;var r,n,i=function(t,e,r,n,i,o){if(!t)return _;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>4)return Kt(t,_);8===n&&(n=9);var s=new le;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+3-1)/3),s.window=z(2*s.w_size),s.head=E(s.hash_size),s.prev=E(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=z(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,he(t)}(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==i)throw new Error(ot[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?F(e.dictionary):"[object ArrayBuffer]"===ue.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,i=function(t,e){var r,n,i,o,a,s,l,h,c=e.length;if(!t||!t.state)return _;if(2===(o=(r=t.state).wrap)||1===o&&42!==r.status||r.lookahead)return _;for(1===o&&(t.adler=B(t.adler,e,c,0)),r.wrap=0,c>=r.w_size&&(0===o&&(Jt(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=z(r.w_size),O(h,e,c-r.w_size,r.w_size,0),e=h,c=r.w_size),a=t.avail_in,s=t.next_in,l=t.input,t.avail_in=c,t.next_in=0,t.input=e,re(r);r.lookahead>=3;){n=r.strstart,i=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-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=2,re(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,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(ot[i]);this._dict_set=!0}};de.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=F(t):"[object ArrayBuffer]"===ue.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=z(a),o.next_out=0,o.avail_out=a),1!==(r=ce(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(D(i=w(o.output,o.next_out),i.length)):this.onData(w(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!==Gt&&e!==Vt&&e!==Zt?Kt(t,_):(t.state=null,e===Vt?Kt(t,-3):0):_}(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),o.avail_out=0,!0)},de.prototype.onData=function(t){this.chunks.push(t)},de.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=S(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var pe={Promise},fe={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 me()}},me=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 me=function(){return t},t},ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ve(t){return t}function _e(t,e){for(var r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e}function ye(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 be=function(){var t;try{t=fe.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){t=!1}return be=function(){return t},t};function we(t){var e=65536,r=Se(t),n=!0;if("uint8array"===r&&(n=be()),n)for(;e>1;)try{return ye(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 xe=we;function ke(t,e){for(var r=0;r<t.length;r++)e[r]=t[r];return e}var Ce={string:{string:ve,array:function(t){return _e(t,new Array(t.length))},arraybuffer:function(t){return Ce.string.uint8array(t).buffer},uint8array:function(t){return _e(t,new Uint8Array(t.length))}},array:{string:we,array:ve,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)}},arraybuffer:{string:function(t){return we(new Uint8Array(t))},array:function(t){return ke(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:ve,uint8array:function(t){return new Uint8Array(t)}},uint8array:{string:we,array:function(t){return ke(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:ve}},Oe=function(t,e){if(e||(e=""),!t)return e;ze(t);var r=Se(e);return Ce[r][t](e)},Se=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":fe.uint8array&&t instanceof Uint8Array?"uint8array":fe.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},ze=function(t){if(!fe[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},Ee=65535,Ie=-1,Ae=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},Pe=function(t,e,r){setTimeout((function(){t.apply(r||null,e||[])}),0)},Te=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},Fe=function(t,e,r,n,i){return pe.Promise.resolve(e).then((function(t){return fe.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new pe.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=Se(e);return a?("arraybuffer"===a?e=Oe("uint8array",e):"string"===a&&(i?e=function(t){var e,r,n,i,o,a,s=0,l=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var c,u=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(t.charAt(t.length-1)===ge.charAt(64)&&u--,t.charAt(t.length-2)===ge.charAt(64)&&u--,u%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=fe.uint8array?new Uint8Array(0|u):new Array(0|u);s<t.length;)e=ge.indexOf(t.charAt(s++))<<2|(i=ge.indexOf(t.charAt(s++)))>>4,r=(15&i)<<4|(o=ge.indexOf(t.charAt(s++)))>>2,n=(3&o)<<6|(a=ge.indexOf(t.charAt(s++))),c[l++]=e,64!==o&&(c[l++]=r),64!==a&&(c[l++]=n);return c}(e):r&&!0!==n&&(e=_e(o=e,fe.uint8array?new Uint8Array(o.length):new Array(o.length)))),e):pe.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))},De=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};De.prototype.push=function(t){this.emit("data",t)},De.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},De.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)},De.prototype.on=function(t,e){return this._listeners[t].push(e),this},De.prototype.cleanUp=function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},De.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)},De.prototype.pipe=function(t){return t.registerPrevious(this)},De.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},De.prototype.pause=function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},De.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},De.prototype.flush=function(){},De.prototype.processChunk=function(t){this.push(t)},De.prototype.withStreamInfo=function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},De.prototype.mergeStreamInfo=function(){for(var t in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},De.prototype.lock=function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},De.prototype.toString=function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t};var je=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,je=function(t){return e[t]},e[t]},Re=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=fe.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)},Be=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=je(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),xe(a)}(t=Oe(fe.uint8array?"uint8array":"array",t))},Ue=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=Oe(fe.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(fe.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+je(t[r])>e?r:e}(e),i=e;n!==e.length&&(fe.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:Be(i),meta:t.meta})},e.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Be(this.leftOver),meta:{}}),this.leftOver=null)},e}(De),Le=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:Re(t.data),meta:t.meta})},e}(De),Ne=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:Oe(this.destType,t.data),meta:t.meta})},e}(De);function Me(t,e){return new pe.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 ze("blob"),new Blob([t],{type:e})}(Oe("arraybuffer",e),r);case"base64":return function(t){for(var e,r,n,i,o,a,s,l=[],h=0,c=t.length,u=c,d="string"!=typeof t;h<t.length;)u=c-h,d?(e=t[h++],r=h<c?t[h++]:0,n=h<c?t[h++]:0):(e=t.charCodeAt(h++),r=h<c?t.charCodeAt(h++):0,n=h<c?t.charCodeAt(h++):0),i=e>>2,o=(3&e)<<4|r>>4,a=u>1?(15&r)<<2|n>>6:64,s=u>2?63&n:64,l.push(ge.charAt(i)+ge.charAt(o)+ge.charAt(a)+ge.charAt(s));return l.join("")}(e);default:return Oe(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 We=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,ze(n),this._worker=t.pipe(new Ne(n)),t.lock()}catch(t){this._worker=new De("error"),this._worker.error(t)}};We.prototype.accumulate=function(t){return Me(this,t)},We.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(){Pe(e,arguments,r)})),this},We.prototype.resume=function(){return Pe(this._worker.resume,[],this._worker),this},We.prototype.pause=function(){return this._worker.pause(),this};var He=Object.freeze({__proto__:null,base64:!1,binary:!1,dir:!1,createFolders:!0,date:null,compression:null,compressionOptions:null,comment:null,unixPermissions:null,dosPermissions:null}),qe=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=Se(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,Pe(this._tickAndRepeat,[],this)),!0)},e.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Pe(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}(De),Ge=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}(De),Ve=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 Ve=function(){return t},t};function Ze(t,e){return void 0!==t&&t.length?"string"!==Se(t)?function(t,e,r,n){var i=Ve(),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=Ve(),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 Ke=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=Ze(t.data,this.streamInfo.crc32||0),this.push(t)},e}(De),Xe=function(t,e,r,n,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=i};Xe.prototype.getContentWorker=function(){var t=new qe(pe.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Ge("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},Xe.prototype.getCompressedWorker=function(){return new qe(pe.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)},Xe.createWorkerFrom=function(t,e,r){return t.pipe(new Ke).pipe(new Ge("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new Ge("compressedSize")).withStreamInfo("compression",e)};var Je=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}};Je.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 Le)),!i&&n&&(e=e.pipe(new Ue))}catch(t){(e=new De("error")).error(t)}return new We(e,r,"")},Je.prototype.async=function(t,e){return this.internalStream(t).accumulate(e)},Je.prototype._compressWorker=function(t,e){if(this._data instanceof Xe&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new Le)),Xe.createWorkerFrom(r,t,e)},Je.prototype._decompressWorker=function(){return this._data instanceof Xe?this._data.getContentWorker():this._data instanceof De?this._data:new qe(this._data)};var $e=function(){var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?"uint8array":"array";$e=function(){return t}},Qe=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(Oe($e(),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 de(e):new ht(e),this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},e}(De),Ye={STORE:{magic:"\0\0",compressWorker:function(){return new De("STORE compression")},uncompressWorker:function(){return new De("STORE decompression")}},DEFLATE:{magic:"\b\0",compressWorker:function(t){return new Qe("Deflate",t)},uncompressWorker:function(){return new Qe("Inflate",{})}}},tr="PK",er="PK",rr="PK",nr="PK",ir="PK",or=function(t,e){var r,n="";for(r=0;r<e;r++)n+=String.fromCharCode(255&t),t>>>=8;return n},ar=function(t,e,r,n,i,o){var a,s,l=t.file,h=t.compression,c=o!==Re,u=Oe("string",o(l.name)),d=Oe("string",Re(l.name)),p=l.comment,f=Oe("string",o(p)),m=Oe("string",Re(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),c||!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=or(1,1)+or(Ze(u),4)+d,_+="up"+or(y.length,2)+y),v&&(b=or(1,1)+or(Ze(f),4)+m,_+="uc"+or(b.length,2)+b);var A="";return A+="\n\0",A+=or(C,2),A+=h.magic,A+=or(a,2),A+=or(s,2),A+=or(k.crc32,4),A+=or(k.compressedSize,4),A+=or(k.uncompressedSize,4),A+=or(u.length,2),A+=or(_.length,2),{fileRecord:tr+A+u+_,dirRecord:er+or(I,2)+A+or(f.length,2)+"\0\0\0\0"+or(E,4)+or(n,4)+u+_+f}},sr=function(t){return"PK\b"+or(t.crc32,4)+or(t.compressedSize,4)+or(t.uncompressedSize,4)},lr=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=ar(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=ar(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:sr(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=Oe("string",i(n));return"PK\0\0\0\0"+or(t,2)+or(t,2)+or(e,4)+or(r,4)+or(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}(De),hr=function(t){this.data=t,this.length=t.length,this.index=0,this.zero=0};hr.prototype.checkOffset=function(t){this.checkIndex(this.index+t)},hr.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 ?")},hr.prototype.setIndex=function(t){this.checkIndex(t),this.index=t},hr.prototype.skip=function(t){this.setIndex(this.index+t)},hr.prototype.byteAt=function(t){},hr.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},hr.prototype.readString=function(t){return Oe("string",this.readData(t))},hr.prototype.readData=function(t){},hr.prototype.lastIndexOfSignature=function(t){},hr.prototype.readAndCheckSignature=function(t){},hr.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 cr=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}(hr),ur=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}(hr),dr=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}(cr);function pr(t){var e=Se(t);return ze(e),"string"!==e||fe.uint8array?fe.uint8array?new dr(Oe("uint8array",t)):new cr(Oe("array",t)):new ur(t)}var fr=function(t,e){this.options=t,this.loadOptions=e};fr.prototype.isEncrypted=function(){return 1==(1&this.bitFlag)},fr.prototype.useUTF8=function(){return 2048==(2048&this.bitFlag)},fr.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 Ye)if(Ye.hasOwnProperty(e)&&Ye[e].magic===t)return Ye[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+Ae(this.compressionMethod)+" unknown (inner file : "+Oe("string",this.fileName)+")");this.decompressed=new Xe(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},fr.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)},fr.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)},fr.prototype.parseZIP64ExtraField=function(t){if(this.extraFields[1]){var e=pr(this.extraFields[1].value);this.uncompressedSize===Ie&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===Ie&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===Ie&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===Ie&&(this.diskNumberStart=e.readInt(4))}},fr.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}},fr.prototype.handleUTF8=function(){var t=fe.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Be(this.fileName),this.fileCommentStr=Be(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var r=Oe(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=Oe(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},fr.prototype.findExtraFieldUnicodePath=function(){var t=this.extraFields[28789];if(t){var e=pr(t.value);return 1!==e.readInt(1)||Ze(this.fileName)!==e.readInt(4)?null:Be(e.readData(t.length-5))}return null},fr.prototype.findExtraFieldUnicodeComment=function(){var t=this.extraFields[25461];if(t){var e=pr(t.value);return 1!==e.readInt(1)||Ze(this.fileComment)!==e.readInt(4)?null:Be(e.readData(t.length-5))}return null};var mr=function(t){this.files=[],this.loadOptions=t};function gr(t){return new pe.Promise((function(e,r){var n=t.decompressed.getContentWorker().pipe(new Ke);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 vr(t,e){var r=this;return e=Te(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:Be}),Fe("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var r=new mr(e);return r.load(t),r})).then((function(t){var r=[pe.Promise.resolve(t)],n=t.files;if(e.checkCRC32)for(var i=0;i<n.length;i++)r.push(gr(n[i]));return pe.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}))}mr.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 ("+Ae(e)+", expected "+Ae(t)+")")}},mr.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},mr.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=fe.uint8array?"uint8array":"array",r=Oe(e,t);this.zipComment=this.loadOptions.decodeFileName(r)},mr.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}},mr.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")},mr.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(tr),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},mr.prototype.readCentralDir=function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(er);)(t=new fr({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)},mr.prototype.readEndOfCentral=function(){var t=this.reader.lastIndexOfSignature(rr);if(t<0)throw this.isSignature(0,tr)?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(rr),this.readBlockEndOfCentral(),this.diskNumber===Ee||this.diskWithCentralDirStart===Ee||this.centralDirRecordsOnThisDisk===Ee||this.centralDirRecords===Ee||this.centralDirSize===Ie||this.centralDirOffset===Ie){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(nr))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(nr),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,ir)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(ir),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(ir),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,er)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},mr.prototype.prepareReader=function(t){this.reader=pr(t)},mr.prototype.load=function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()};var _r=function(t,e,r){var n,i=Se(e),o=Te(r||{},He);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=br(t)),o.createFolders&&(n=yr(t))&&wr.call(this,n,!0);var a="string"===i&&!1===o.binary&&!1===o.base64;r&&void 0!==r.binary||(o.binary=!a),(e instanceof Xe&&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 Xe||e instanceof De?e:Fe(t,e,o.binary,o.optimizedBinaryString,o.base64);var l=new Je(t,s,o);this.files[t]=l},yr=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return e>0?t.substring(0,e):""},br=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},wr=function(t,e){return e=void 0===e||e,t=br(t),this.files[t]||_r.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function xr(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var kr=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}},Cr={support:{configurable:!0},defaults:{configurable:!0},version:{configurable:!0},external:{configurable:!0}};function Or(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}kr.prototype.load=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},kr.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)},kr.prototype.filter=function(t){var e=[];return this.forEach((function(r,n){t(r,n)&&e.push(n)})),e},kr.prototype.file=function(t,e,r){if(1===arguments.length){if(xr(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,_r.call(this,t,e,r),this},kr.prototype.folder=function(t){if(!t)return this;if(xr(t))return this.filter((function(e,r){return r.dir&&t.test(e)}));var e=this.root+t,r=wr.call(this,e),n=this.clone();return n.root=r.name,n},kr.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},kr.prototype.generate=function(t){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},kr.prototype.generateInternalStream=function(t){var e,r={};try{if((r=Te(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Re})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");ze(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 lr(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=Ye[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 De("error")).error(t)}return new We(e,r.type||"string",r.mimeType)},kr.prototype.generateAsync=function(t,e){return this.generateInternalStream(t).accumulate(e)},kr.prototype.loadAsync=function(t,e){return vr.apply(this,[t,e])},kr.loadAsync=function(t,e){return(new kr).loadAsync(t,e)},Cr.support.get=function(){return fe},Cr.defaults.get=function(){return He},Cr.version.get=function(){return"3.2.2-esm"},Cr.external.get=function(){return pe},Object.defineProperties(kr,Cr);var Sr=Or(1900,0,-1);var zr={compression:"DEFLATE",type:"base64"},Er={compression:"DEFLATE",type:"blob"},Ir={compression:"DEFLATE",type:"arraybuffer"};function Ar(t){return"data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,"+t}function Pr(t,e){return e.indexOf(t)}var Tr=JSON.parse.bind(JSON);function Fr(t){return String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\"/g,""").replace(/\'/g,"'")}function Dr(t,e){for(var r="",n=0;n<t;++n)r+=e(n);return r}function jr(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 Rr='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r',Br=function(t){return Rr+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+jr(t,(function(t){return'\n <Relationship Id="'+t.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="'+t.target+'"/>'}))+"\n</Relationships>"};function Ur(t){var e=Math.floor(t/26)-1;return(e>=0?Ur(e):"")+String.fromCharCode(65+t%26)}function Lr(t,e){return Ur(e)+(t+1)}function Nr(t,e){return"$"+Ur(e)+"$"+(t+1)}function Mr(t){return(t.frozenRows||(t.freezePane||{}).rowSplit||1)-1}function Wr(t){return t/7-Math.floor(128/7)/256}var Hr=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 qr(t){var e=t.length;return t.forEach((function(t){t.index&&t.index>=e&&(e=t.index+1)})),e}Hr.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 Rr+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+jr(t.hyperlinks,(function(t){return'\n <Relationship Id="'+t.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="'+Fr(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})},Hr.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=Yr(r).slice(0),o={rowData:r,rowsByIndex:n,mergedCells:e},a=0;a<i.length;a++)nn(i[a],o),delete i[a]._source;return Yr(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:Lr(Mr(this.options),o.from),to:Lr(Mr(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||{},c=this.options.defaults||{},u=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,c=t.showGridLines,u=t.hyperlinks,d=t.validations,p=t.defaultCellStyleId,f=t.rtl,m=t.legacyDrawing,g=t.drawing,v=t.lastRow,_=t.lastCol;return Rr+'\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:'+Lr(v-1,_-1)+'" />':"")+"\n\n <sheetViews>\n <sheetView "+(f?'rightToLeft="1"':"")+" "+(0===a?'tabSelected="1"':"")+' workbookViewId="0" '+(!1===c?'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="'+Wr(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="'+Wr(i.columnWidth)+'"':"")+" /> ")+"\n "+jr(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="'+Wr(t.width)+'"')+" />"}))+"\n </cols>":"")+"\n\n <sheetData>\n "+jr(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 "+jr(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>"+Fr(e)+"</f>":'<f t="array" ref="'+e.ref+'">'+Fr(e.src)+"</f>":"")+"\n "+(null!=t.value?"<v>"+Fr(t.value)+"</v>":"")+"\n </c>";var e}))+"\n </row>\n "}))+"\n </sheetData>\n\n "+(l?'<autoFilter ref="'+l.from+":"+l.to+'"/>':h?dn(h):"")+"\n\n "+(s.length?'\n <mergeCells count="'+s.length+'">\n '+jr(s,(function(t){return'<mergeCell ref="'+t+'"/>'}))+"\n </mergeCells>":"")+"\n\n "+(d.length?"\n <dataValidations>\n "+jr(d,(function(t){return'\n <dataValidation sqref="'+t.sqref.join(" ")+'"\n showErrorMessage="'+t.showErrorMessage+'"\n type="'+Fr(t.type)+'"\n '+("list"!==t.type?'operator="'+Fr(t.operator)+'"':"")+'\n allowBlank="'+t.allowBlank+'"\n showDropDown="'+t.showDropDown+'"\n '+(t.error?'error="'+Fr(t.error)+'"':"")+"\n "+(t.errorTitle?'errorTitle="'+Fr(t.errorTitle)+'"':"")+">\n "+(t.formula1?"<formula1>"+Fr(t.formula1)+"</formula1>":"")+"\n "+(t.formula2?"<formula2>"+Fr(t.formula2)+"</formula2>":"")+"\n </dataValidation>"}))+"\n </dataValidations>":"")+"\n\n "+(u.length?"\n <hyperlinks>\n "+jr(u,(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:c,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:c.rtl,legacyDrawing:this._comments.length?"vml"+this.options.sheetIndex:null,drawing:this._drawings.length?"drw"+this.options.sheetIndex:null,lastRow:u,lastCol:d})},Hr.prototype.commentsXML=function(){if(this._comments.length)return function(t){return Rr+'\n<comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">\n <authors>\n <author></author>\n </authors>\n <commentList>\n '+jr(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>'+Fr(t.text)+"</t>\n </r>\n </text>\n </comment>"}))+"\n </commentList>\n</comments>"}({comments:this._comments})},Hr.prototype.drawingsXML=function(t){if(this._drawings.length){var e={},r=this._drawings.map((function(r){var n=en(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:rn(r.offsetX),row:n.row,rowOffset:rn(r.offsetY),width:rn(r.width),height:rn(r.height),imageId:i.rId}}));return{main:(n=r,Rr+'\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 '+jr(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:Br(e)}}var n},Hr.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 '+jr(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})},Hr.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},Hr.prototype._lookupStyle=function(t){var e=JSON.stringify(t);if("{}"===e)return 0;var r=Pr(e,this._styles);return r<0&&(r=this._styles.push(e)-1),r+1},Hr.prototype._lookupBorder=function(t){var e=JSON.stringify(t);if("{}"!==e){var r=Pr(e,this._borders);return r<0&&(r=this._borders.push(e)-1),r+1}},Hr.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)}}},Hr.prototype._cell=function(t,e,r){if(!t||t===Qr)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,c,u=(this.options.columns||[])[r],d=typeof n;if(u&&u.autoWidth&&(!t.colSpan||1===t.colSpan)){var p=n;"number"===d&&(p=v.toString(n,t.format)),u.width=Math.max(u.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=(c=function(t,e,r){return Or(t,e,r)-Sr}(l.getFullYear(),l.getMonth(),l.getDate()))<0?c-1+h:c+h,s.format||(s.format="mm-dd-yy")):(d=null,n=null),s=this._lookupStyle(s);var f=Lr(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}},Hr.prototype._addValidation=function(t,e){var r={showErrorMessage:"reject"===t.type?1:0,formula1:t.from,formula2:t.to,type:Vr[t.dataType]||t.dataType,operator:Gr[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)},Hr.prototype._getLastRow=function(){return qr(this.options.rows)},Hr.prototype._getLastCol=function(){var t=0;return this.options.rows.forEach((function(e){e.cells&&(t=Math.max(t,qr(e.cells)))})),t};var Gr={greaterThanOrEqualTo:"greaterThanOrEqual",lessThanOrEqualTo:"lessThanOrEqual"},Vr={number:"decimal"},Zr={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 Kr(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 Xr=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=h(this.options.sheets||[],(function(t,r){return t.defaults=e.options,t.sheetIndex=r+1,new Hr(t,e._strings,e._styles,e._borders)}))};function Jr(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="'+Kr(e.color)+'"/>'),i+="</"+t+">"),i}function $r(t){var e=t.diagonal?t.diagonal.type:0;return"<border "+(2&e?'diagonalUp="true"':"")+" "+(1&e?'diagonalDown="true"':"")+">\n "+Jr("left",t.left)+"\n "+Jr("right",t.right)+"\n "+Jr("top",t.top)+"\n "+Jr("bottom",t.bottom)+"\n "+Jr("diagonal",t.diagonal)+"\n </border>"}Xr.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"}},Xr.prototype.toZIP=function(){var t=this,e=new kr,r=e.folder("docProps");r.file("core.xml",function(t){var e=t.lastModifiedBy,r=t.created,n=t.modified;return Rr+'\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>'+Fr(t.creator)+"</dc:creator>\n <cp:lastModifiedBy>"+Fr(e)+'</cp:lastModifiedBy>\n <dcterms:created xsi:type="dcterms:W3CDTF">'+Fr(r)+'</dcterms:created>\n <dcterms:modified xsi:type="dcterms:W3CDTF">'+Fr(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 Rr+'\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">'+jr(e,(function(t,e){return t.options.title?"<vt:lpstr>"+Fr(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",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\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>');var i=e.folder("xl");if(i.folder("_rels").file("workbook.xml.rels",function(t){var e=t.count;return Rr+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+Dr(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 Rr+'\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 '+jr(t.sheets,(function(t,e){var r=t.options;return'<sheet name="'+Fr(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 "+jr(e,(function(t){return'\n <definedName name="_xlnm._FilterDatabase" hidden="1" localSheetId="'+t.localSheetId+'">'+Fr(function(t){return/^\'/.test(t)||/^[a-z_][a-z0-9_]*$/i.test(t)?t:"'"+t.replace(/\x27/g,"\\'")+"'"}(t.name))+"!"+Fr(t.from)+":"+Fr(t.to)+"</definedName>"}))+"\n "+jr(r,(function(t){return'\n <definedName name="'+t.name+'" hidden="'+(t.hidden?1:0)+'" '+(null!=t.localSheetId?'localSheetId="'+t.localSheetId+'"':"")+">"+Fr(t.value)+"</definedName>"}))+"\n </definedNames>":"")+'\n <calcPr fullCalcOnLoad="1" calcId="145621" />\n</workbook>'}({sheets:this._sheets,filterNames:h(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=en(o[0]),l=en(o[1]);return{localSheetId:e,name:n,from:Nr(s.row,s.col),to:Nr(l.row,l.col)}}if(void 0!==i.from&&void 0!==i.to)return{localSheetId:e,name:n,from:Nr(Mr(r),i.from),to:Nr(Mr(r),i.to)}}})),userNames:h(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"),c=l.folder("_rels"),u=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(_&&u.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),c.file(k+".rels",w.rels),p.push(k)}s.file(g,v)}var C=h(this._borders,Tr),O=h(this._styles,Tr),S=function(t){return t.underline||t.bold||t.italic||t.color||t.fontFamily||t.fontSize},z=h(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=Kr(t.color)),S(t))return t})),E=h(O,(function(t){if(t.format&&void 0===Zr[t.format])return t})),I=h(O,(function(t){if(t.background)return t.background=Kr(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 Rr+'\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 '+jr(e,(function(t,e){return'\n <numFmt formatCode="'+Fr(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 '+jr(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="'+Fr(t.color)+'" />':'<color theme="1" />')+"\n "+(t.fontFamily?'\n <name val="'+Fr(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 '+jr(n,(function(t){return"\n "+(t.background?'\n <fill>\n <patternFill patternType="solid">\n <fgColor rgb="'+Fr(t.background)+'"/>\n </patternFill>\n </fill>\n ':"")}))+'\n </fills>\n <borders count="'+(i.length+1)+'">\n <border><left/><right/><top/><bottom/><diagonal/></border>\n '+jr(i,$r)+'\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 '+jr(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="'+Fr(t.textAlign)+'"':"")+"\n "+(t.verticalAlign?'vertical="'+Fr(t.verticalAlign)+'"':"")+"\n "+(t.indent?'indent="'+Fr(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:h(O,(function(t){var e={};return S(t)&&(e.fontId=Pr(t,z)+1),t.background&&(e.fillId=Pr(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!==Zr[t.format]?e.numFmtId=Zr[t.format]:e.numFmtId=165+Pr(t,E)),e}))})),i.file("sharedStrings.xml",function(t){var e=t.count,r=t.uniqueCount,n=t.indexes;return Rr+'\n<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'+e+'" uniqueCount="'+r+'">\n '+jr(Object.keys(n),(function(t){return'\n <si><t xml:space="preserve">'+Fr(t.substring(1))+"</t></si>"}))+"\n</sst>"}(this._strings)),e.file("[Content_Types].xml",function(t){var e=t.commentFiles,r=t.drawingFiles;return Rr+'\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 '+Dr(t.sheetCount,(function(t){return'<Override PartName="/xl/worksheets/sheet'+(t+1)+'.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />'}))+"\n "+jr(e,(function(t){return'<Override PartName="/xl/'+t+'" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"/>'}))+"\n "+jr(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},Xr.prototype.toDataURL=function(){var t=this.toZIP();return t.generateAsync?t.generateAsync(zr).then(Ar):Ar(t.generate(zr))},Xr.prototype.toBlob=function(){var t=this.toZIP();return t.generateAsync?t.generateAsync(Er):new Blob([t.generate(Ir)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})};var Qr={};function Yr(t){return t.sort((function(t,e){return t.index-e.index}))}function tn(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=en(i),{rowSpan:(o=en(o)).row-i.row+1,colSpan:o.col-i.col+1}}}}function en(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 rn(t){return Math.round(9525*t)}function nn(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]||Qr,c=h.rowSpan||1,u=h.colSpan||1,d=on(s,h),p=Lr(o,d);if(1===c&&1===u){var f=tn(e.mergedCells,p);f&&(u=f.colSpan,c=f.rowSpan)}if(sn(h,s,d,u),(c>1||u>1)&&(r=e.mergedCells,n=p+":"+Lr(o+c-1,d+u-1),r.indexOf(n)<0&&r.push(n)),c>1)for(var m=o+1;m<o+c;m++){var g=e.rowsByIndex[m];g||(g=e.rowsByIndex[m]={index:m,cells:[]},e.rowData.push(g)),sn(h,g.cells,d-1,u+1)}}}function on(t,e){var r;return"number"==typeof e.index?(r=e.index,an(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 an(t,e,r){t[r]=e}function sn(t,e,r,n){for(var i=1;i<n;i++)an(e,{borderTop:t.borderTop,borderRight:t.borderRight,borderBottom:t.borderBottom,borderLeft:t.borderLeft},r+i)}var ln=function(t){return"\n<customFilters "+("and"===t.logic?'and="1"':"")+">\n"+jr(t.criteria,(function(t){var e=dn.customOperator(t);return"<customFilter "+(e?'operator="'+e+'"':"")+' val="'+dn.customValue(t)+'"/>'}))+"\n</customFilters>"},hn=function(t){var e=t.type;return'<dynamicFilter type="'+dn.dynamicFilterType(e)+'" />'},cn=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+'" />'},un=function(t){return"<filters "+(t.blanks?'blank="1"':"")+">\n "+jr(t.values,(function(t){return'\n <filter val="'+t+'" />'}))+"\n </filters>"};function dn(t){return e={ref:t.ref,columns:t.columns,generators:{custom:ln,dynamic:hn,top:cn,value:un}},r=e.generators,'\n<autoFilter ref="'+e.ref+'">\n '+jr(e.columns,(function(t){return'\n <filterColumn colId="'+t.index+'">\n '+r[t.filter](t)+"\n </filterColumn>\n "}))+"\n</autoFilter>";var e,r}dn.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()]},dn.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}},dn.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
|
+
!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),c=r(302),u=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!==c)c.validatePackage(u.packageMetadata);else{var n="License activation failed for ".concat(u.packageMetadata.name,"\n");n+="The @progress/kendo-licensing script is not loaded.\n",n+="See ".concat(u.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 c=r(464);Object.defineProperty(e,"ExcelExportGroupHeader",{enumerable:!0,get:function(){return c.ExcelExportGroupHeader}});var u=r(364);e.KendoOoxml=u,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 c(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 c=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=c},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:1673894930,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:()=>u,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+/=",c=String.fromCharCode;function u(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+=c(n):n<2048?(e+=c(192|n>>>6),e+=c(128|63&n)):n<65536&&(e+=c(224|n>>>12),e+=c(128|n>>>6&63),e+=c(128|63&n))}return e}(t),u="",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),u=u+h.charAt(i)+h.charAt(o)+h.charAt(a)+h.charAt(s);return u}},364:(t,e,r)=>{r.r(e),r.d(e,{ExcelExporter:()=>f,IntlService:()=>v,TemplateService:()=>o,Workbook:()=>Xr,Worksheet:()=>Hr});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={};function l(t){if(s[t])return s[t];var e=[];return t.replace(a,(function(t,r,n,i){e.push(void 0!==r?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 h(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 u(t,e){for(var r=[],n=0;n<t;n++)r.push(e(n));return r}function d(t){return t.id}s[void 0]=function(t){return t};var p=function(t){t.columns=this._trimColumns(t.columns||[]),this.allColumns=h(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};p.prototype.workbook=function(){return{sheets:[{columns:this._columns(),rows:this.hierarchy?this._hierarchyRows():this._rows(),freezePane:this._freezePane(),filter:this._filter()}]}},p.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}))},p.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},p.prototype._prepareColumn=function(t){if(!t.field)return null;var e=function(e){return l(t.field)(e)},r=null;return t.values&&(r={},t.values.forEach((function(t){r[t.value]=t.text})),e=function(e){return r[l(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})},p.prototype._filter=function(){if(!this.options.filterable)return null;var t=this._depth();return{from:t,to:t+this.columns.length-1}},p.prototype._createPaddingCells=function(t){var e=this;return u(t,(function(){return Object.assign({background:"#dfdfdf",color:"#333"},e.options.paddingCellOptions)}))},p.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}]},p.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},p.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},p.prototype._hierarchyRows=function(){var t,e=this._depth(),r=this.data,n=this.hierarchy.itemLevel,i=this.hierarchy.itemId||d,o=this._hasFooterTemplate(),a=[],s=[],l=0;o||(this.collapsible=!1);for(var h=0;h<r.length;h++){var c=r[h],u=n(c,h);o&&(u>l?s.push({id:t,level:l}):u<l&&a.push.apply(a,this._hierarchyFooterRows(s,u,e)),l=u,t=i(c,h)),a.push.apply(a,this._dataRow(c,u+1,e))}if(o){a.push.apply(a,this._hierarchyFooterRows(s,0,e));var p=r.length?this.aggregates[r[0].parentId]:{};a.push(this._hierarchyFooter(p,0,e))}return this._prependHeaderRows(a),a},p.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},p.prototype._hasFooterTemplate=function(){for(var t=this.columns,e=0;e<t.length;e++)if(t[e].footerTemplate)return!0},p.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}},p.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},p.prototype._isColumnVisible=function(t){return this._visibleColumns([t]).length>0&&(t.field||t.columns)},p.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}))},p.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:u(e.length,(function(){return Object.assign({background:"#7a7a7a",color:"#fff"},r.options.headerPaddingCellOptions)})).concat(n)}},p.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))},p.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 c=Object.assign({background:"#7a7a7a",color:"#fff",value:h.title||h.field,colSpan:0,firstCell:0===l&&(!r||r.firstCell)},h.headerCellOptions);o.cells.push(c),h.columns&&h.columns.length&&(a||(a={rowSpan:0,cells:[],index:t.length},t.push(a)),c.colSpan=i._trimColumns(i._visibleColumns(h.columns)).length,i._prepareHeaderRows(t,h.columns,c,a),s+=c.colSpan-1,o.rowSpan=t.length-o.index)}}r&&(r.colSpan+=s)},p.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},p.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},p.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}},p.prototype._cell=function(t,e){return Object.assign({value:e.value(t)},e.cellOptions)},p.prototype._depth=function(){return this.hierarchy?this.hierarchy.depth:this.groups.length},p.prototype._columns=function(){return u(this._depth(),(function(){return{width:20}})).concat(this.columns.map((function(t){return{width:parseInt(t.width,10),autoWidth:!t.width}})))};const f=p;var m={toString:function(t){return t}},g=function(){};g.register=function(t){m=t},g.toString=function(t,e){return m.toString(t,e)};const v=g;var _=-2;function y(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function b(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)y(r,n)&&(t[n]=r[n])}}return t}function w(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)}var x={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)}},k={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)}},C=function(){var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;return C=function(){return t},t},O=function(t,e,r,n,i){return(O=C()?x.arraySet:k.arraySet)(t,e,r,n,i)},S=function(t){return(S=C()?x.flattenChunks:k.flattenChunks)(t)},z=function(t){return(z=C()?x.Buf8:k.Buf8)(t)},E=function(t){return(E=C()?x.Buf16:k.Buf16)(t)},I=function(t){return(I=C()?x.Buf32:k.Buf32)(t)},A=function(){var t=!0;try{String.fromCharCode.apply(null,[0])}catch(e){t=!1}return A=function(){return t},t},P=function(){var t=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){t=!1}return P=function(){return t},t},T=function(t){for(var e=z(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,T=function(t){return e[t]},e[t]};function F(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 D(t,e){if(e<65534&&(t.subarray&&P()||!t.subarray&&A()))return String.fromCharCode.apply(null,w(t,e));for(var r="",n=0;n<e;n++)r+=String.fromCharCode(t[n]);return r}function j(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=T(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 D(s,n)}function R(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+T(t[r])>e?r:e}function B(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 U=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 U=function(){return t},t};function L(t,e,r,n){var i=U(),o=n+r;t^=-1;for(var a=n;a<o;a++)t=t>>>8^i[255&(t^e[a])];return-1^t}function N(t,e){var r,n,i,o,a,s,l,h,c,u,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,c=r.whave,u=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=12;break t}t.msg="invalid literal/length code",r.mode=30;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=30;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=30;break t}if(p>>>=b,f-=b,x>(b=o-a)){if((b=x-b)>c&&r.sane){t.msg="invalid distance too far back",r.mode=30;break t}if(k=0,C=d,0===u){if(k+=h-b,b<w){w-=b;do{S[o++]=d[k++]}while(--b);k=o-x,C=S}}else if(u<b){if(k+=h+u-b,(b-=u)<w){w-=b;do{S[o++]=d[k++]}while(--b);if(k=0,u<w){w-=b=u;do{S[o++]=d[k++]}while(--b);k=o-x,C=S}}}else if(k+=u-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 M=[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],W=[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],H=[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],q=[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 G(t,e,r,n,i,o,a,s){var l,h,c,u,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,I=null,A=0,P=E(16),T=E(16),F=null,D=0;for(_=0;_<=15;_++)P[_]=0;for(y=0;y<n;y++)P[e[r+y]]++;for(x=v,w=15;w>=1&&0===P[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===P[b];b++);for(x<b&&(x=b),O=1,_=1;_<=15;_++)if(O<<=1,(O-=P[_])<0)return-1;if(O>0&&(0===t||1!==w))return-1;for(T[1]=0,_=1;_<15;_++)T[_+1]=T[_]+P[_];for(y=0;y<n;y++)0!==e[r+y]&&(a[T[e[r+y]]++]=y);if(0===t?(I=F=a,p=19):1===t?(I=M,A-=257,F=W,D-=257,p=256):(I=H,F=q,p=-1),z=0,y=0,_=b,d=o,k=x,C=0,c=-1,u=(S=1<<x)-1,1===t&&S>852||2===t&&S>592)return 1;for(;;){f=_-C,a[y]<p?(m=0,g=a[y]):a[y]>p?(m=F[D+a[y]],g=I[A+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==--P[_]){if(_===w)break;_=e[r+a[y]]}if(_>x&&(z&u)!==c){for(0===C&&(C=x),d+=b,O=1<<(k=_-C);k+C<w&&!((O-=P[k+C])<=0);)k++,O<<=1;if(S+=1<<k,1===t&&S>852||2===t&&S>592)return 1;i[c=z&u]=x<<24|k<<16|d-o|0}}return 0!==z&&(i[d+z]=_-C<<24|64<<16|0),s.bits=x,0}var V=-2,Z=12,K=30;function X(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function J(){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=E(320),this.work=E(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function $(t,e){var r,n;return t?(n=new J,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)?V:(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=1,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=I(852),e.distcode=e.distdyn=I(592),e.sane=1,e.back=-1,0):V}(t)):V}(t))):V}(t,e),0!==r&&(t.state=null),r):V}var Q,Y,tt=!0;function et(t){if(tt){var e;for(Q=I(512),Y=I(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(G(1,t.lens,0,288,Q,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;G(2,t.lens,0,32,Y,0,t.work,{bits:5}),tt=!1}t.lencode=Q,t.lenbits=9,t.distcode=Y,t.distbits=5}function rt(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=z(o.wsize)),n>=o.wsize?(O(o.window,e,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):((i=o.wsize-o.wnext)>n&&(i=n),O(o.window,e,r-n,i,o.wnext),(n-=i)?(O(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 nt(t,e){var r,n,i,o,a,s,l,h,c,u,d,p,f,m,g,v,_,y,b,w,x,k,C,S,E=0,I=z(4),A=[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 V;(r=t.state).mode===Z&&(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,c=r.bits,u=s,d=l,k=0;t:for(;;)switch(r.mode){case 1:if(0===r.wrap){r.mode=13;break}for(;c<16;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(2&r.wrap&&35615===h){r.check=0,I[0]=255&h,I[1]=h>>>8&255,r.check=L(r.check,I,2,0),h=0,c=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=K;break}if(8!=(15&h)){t.msg="unknown compression method",r.mode=K;break}if(c-=4,x=8+(15&(h>>>=4)),0===r.wbits)r.wbits=x;else if(x>r.wbits){t.msg="invalid window size",r.mode=K;break}r.dmax=1<<x,t.adler=r.check=1,r.mode=512&h?10:Z,h=0,c=0;break;case 2:for(;c<16;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(r.flags=h,8!=(255&r.flags)){t.msg="unknown compression method",r.mode=K;break}if(57344&r.flags){t.msg="unknown header flags set",r.mode=K;break}r.head&&(r.head.text=h>>8&1),512&r.flags&&(I[0]=255&h,I[1]=h>>>8&255,r.check=L(r.check,I,2,0)),h=0,c=0,r.mode=3;case 3:for(;c<32;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}r.head&&(r.head.time=h),512&r.flags&&(I[0]=255&h,I[1]=h>>>8&255,I[2]=h>>>16&255,I[3]=h>>>24&255,r.check=L(r.check,I,4,0)),h=0,c=0,r.mode=4;case 4:for(;c<16;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}r.head&&(r.head.xflags=255&h,r.head.os=h>>8),512&r.flags&&(I[0]=255&h,I[1]=h>>>8&255,r.check=L(r.check,I,2,0)),h=0,c=0,r.mode=5;case 5:if(1024&r.flags){for(;c<16;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}r.length=h,r.head&&(r.head.extra_len=h),512&r.flags&&(I[0]=255&h,I[1]=h>>>8&255,r.check=L(r.check,I,2,0)),h=0,c=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)),O(r.head.extra,n,o,p,x)),512&r.flags&&(r.check=L(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=L(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=L(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(;c<16;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(h!==(65535&r.check)){t.msg="header crc mismatch",r.mode=K;break}h=0,c=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),t.adler=r.check=0,r.mode=Z;break;case 10:for(;c<32;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}t.adler=r.check=X(h),h=0,c=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=c,2;t.adler=r.check=1,r.mode=Z;case Z:if(5===e||6===e)break t;case 13:if(r.last){h>>>=7&c,c-=7&c,r.mode=27;break}for(;c<3;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}switch(r.last=1&h,c-=1,3&(h>>>=1)){case 0:r.mode=14;break;case 1:if(et(r),r.mode=20,6===e){h>>>=2,c-=2;break t}break;case 2:r.mode=17;break;case 3:t.msg="invalid block type",r.mode=K}h>>>=2,c-=2;break;case 14:for(h>>>=7&c,c-=7&c;c<32;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if((65535&h)!=(h>>>16^65535)){t.msg="invalid stored block lengths",r.mode=K;break}if(r.length=65535&h,h=0,c=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;O(i,n,o,p,a),s-=p,o+=p,l-=p,a+=p,r.length-=p;break}r.mode=Z;break;case 17:for(;c<14;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(r.nlen=257+(31&h),h>>>=5,c-=5,r.ndist=1+(31&h),h>>>=5,c-=5,r.ncode=4+(15&h),h>>>=4,c-=4,r.nlen>286||r.ndist>30){t.msg="too many length or distance symbols",r.mode=K;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;c<3;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}r.lens[A[r.have++]]=7&h,h>>>=3,c-=3}for(;r.have<19;)r.lens[A[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,C={bits:r.lenbits},k=G(0,r.lens,0,19,r.lencode,0,r.work,C),r.lenbits=C.bits,k){t.msg="invalid code lengths set",r.mode=K;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;v=(E=r.lencode[h&(1<<r.lenbits)-1])>>>16&255,_=65535&E,!((g=E>>>24)<=c);){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(_<16)h>>>=g,c-=g,r.lens[r.have++]=_;else{if(16===_){for(S=g+2;c<S;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(h>>>=g,c-=g,0===r.have){t.msg="invalid bit length repeat",r.mode=K;break}x=r.lens[r.have-1],p=3+(3&h),h>>>=2,c-=2}else if(17===_){for(S=g+3;c<S;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}c-=g,x=0,p=3+(7&(h>>>=g)),h>>>=3,c-=3}else{for(S=g+7;c<S;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}c-=g,x=0,p=11+(127&(h>>>=g)),h>>>=7,c-=7}if(r.have+p>r.nlen+r.ndist){t.msg="invalid bit length repeat",r.mode=K;break}for(;p--;)r.lens[r.have++]=x}}if(r.mode===K)break;if(0===r.lens[256]){t.msg="invalid code -- missing end-of-block",r.mode=K;break}if(r.lenbits=9,C={bits:r.lenbits},k=G(1,r.lens,0,r.nlen,r.lencode,0,r.work,C),r.lenbits=C.bits,k){t.msg="invalid literal/lengths set",r.mode=K;break}if(r.distbits=6,r.distcode=r.distdyn,C={bits:r.distbits},k=G(2,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,C),r.distbits=C.bits,k){t.msg="invalid distances set",r.mode=K;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=c,N(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,c=r.bits,r.mode===Z&&(r.back=-1);break}for(r.back=0;v=(E=r.lencode[h&(1<<r.lenbits)-1])>>>16&255,_=65535&E,!((g=E>>>24)<=c);){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(v&&0==(240&v)){for(y=g,b=v,w=_;v=(E=r.lencode[w+((h&(1<<y+b)-1)>>y)])>>>16&255,_=65535&E,!(y+(g=E>>>24)<=c);){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}h>>>=y,c-=y,r.back+=y}if(h>>>=g,c-=g,r.back+=g,r.length=_,0===v){r.mode=26;break}if(32&v){r.back=-1,r.mode=Z;break}if(64&v){t.msg="invalid literal/length code",r.mode=K;break}r.extra=15&v,r.mode=22;case 22:if(r.extra){for(S=r.extra;c<S;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}r.length+=h&(1<<r.extra)-1,h>>>=r.extra,c-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;v=(E=r.distcode[h&(1<<r.distbits)-1])>>>16&255,_=65535&E,!((g=E>>>24)<=c);){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(0==(240&v)){for(y=g,b=v,w=_;v=(E=r.distcode[w+((h&(1<<y+b)-1)>>y)])>>>16&255,_=65535&E,!(y+(g=E>>>24)<=c);){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}h>>>=y,c-=y,r.back+=y}if(h>>>=g,c-=g,r.back+=g,64&v){t.msg="invalid distance code",r.mode=K;break}r.offset=_,r.extra=15&v,r.mode=24;case 24:if(r.extra){for(S=r.extra;c<S;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}r.offset+=h&(1<<r.extra)-1,h>>>=r.extra,c-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){t.msg="invalid distance too far back",r.mode=K;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=K;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(;c<32;){if(0===s)break t;s--,h|=n[o++]<<c,c+=8}if(d-=l,t.total_out+=d,r.total+=d,d&&(t.adler=r.check=r.flags?L(r.check,i,d,a-d):B(r.check,i,d,a-d)),d=l,(r.flags?h:X(h))!==r.check){t.msg="incorrect data check",r.mode=K;break}h=0,c=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;c<32;){if(0===s)break t;s--,h+=n[o++]<<c,c+=8}if(h!==(4294967295&r.total)){t.msg="incorrect length check",r.mode=K;break}h=0,c=0}r.mode=29;case 29:k=1;break t;case K:k=-3;break t;case 31:return-4;default:return V}return t.next_out=a,t.avail_out=l,t.next_in=o,t.avail_in=s,r.hold=h,r.bits=c,(r.wsize||d!==t.avail_out&&r.mode<K&&(r.mode<27||4!==e))&&rt(t,t.output,t.next_out,d-t.avail_out),u-=t.avail_in,d-=t.avail_out,t.total_in+=u,t.total_out+=d,r.total+=d,r.wrap&&d&&(t.adler=r.check=r.flags?L(r.check,i,d,t.next_out-d):B(r.check,i,d,t.next_out-d)),t.data_type=r.bits+(r.last?64:0)+(r.mode===Z?128:0)+(20===r.mode||15===r.mode?256:0),(0===u&&0===d||4===e)&&0===k&&(k=-5),k}function it(t,e){var r,n=e.length;return t&&t.state?0!==(r=t.state).wrap&&11!==r.mode?V:11===r.mode&&B(1,e,n,0)!==r.check?-3:rt(t,e,n,n)?(r.mode=31,-4):(r.havedict=1,0):V}var ot={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 at(){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 lt=Object.prototype.toString,ht=function t(e){if(!(this instanceof t))return new t(e);this.options=b({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 at,this.strm.avail_out=0;var n,i,o,a=$(this.strm,r.windowBits);if(0!==a)throw new Error(ot[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=F(r.dictionary):"[object ArrayBuffer]"===lt.call(r.dictionary)&&(r.dictionary=new Uint8Array(r.dictionary)),r.raw&&0!==(a=it(this.strm,r.dictionary))))throw new Error(ot[a])};function ct(t){for(var e=t.length;--e>=0;)t[e]=0}ht.prototype.push=function(t,e){var r,n,i,o,a,s,l=this.strm,h=this.options.chunkSize,c=this.options.dictionary,u=!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]"===lt.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=z(h),l.next_out=0,l.avail_out=h),2===(r=nt(l,0))&&c&&(s="string"==typeof c?F(c):"[object ArrayBuffer]"===lt.call(c)?new Uint8Array(c):c,r=it(this.strm,s)),-5===r&&!0===u&&(r=0,u=!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=R(l.output,l.next_out),o=l.next_out-i,a=j(l.output,i),l.next_out=o,l.avail_out=h-o,o&&O(l.output,l.output,i,o,0),this.onData(a)):this.onData(w(l.output,l.next_out)))),0===l.avail_in&&0===l.avail_out&&(u=!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 V;var e=t.state;return e.window&&(e.window=null),t.state=null,0}(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),l.avail_out=0,!0)},ht.prototype.onData=function(t){this.chunks.push(t)},ht.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=S(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var ut,dt,pt,ft,mt,gt,vt,_t,yt,bt=[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],wt=[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],xt=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],kt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];function Ct(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 Ot(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function St(t){return t<256?pt[t]:pt[256+(t>>>7)]}function zt(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function Et(t,e,r){t.bi_valid>16-r?(t.bi_buf|=e<<t.bi_valid&65535,zt(t,t.bi_buf),t.bi_buf=e>>16-t.bi_valid,t.bi_valid+=r-16):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=r)}function It(t,e,r){Et(t,r[2*e],r[2*e+1])}function At(t,e){var r=0;do{r|=1&t,t>>>=1,r<<=1}while(--e>0);return r>>>1}function Pt(t,e,r){var n,i,o=new Array(16),a=0;for(n=1;n<=15;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]=At(o[s]++,s))}}function Tt(t){var e;for(e=0;e<286;e++)t.dyn_ltree[2*e]=0;for(e=0;e<30;e++)t.dyn_dtree[2*e]=0;for(e=0;e<19;e++)t.bl_tree[2*e]=0;t.dyn_ltree[512]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function Ft(t){t.bi_valid>8?zt(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 Dt(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 jt(t,e,r){for(var n=t.heap[r],i=r<<1;i<=t.heap_len&&(i<t.heap_len&&Dt(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!Dt(e,n,t.heap[i],t.depth));)t.heap[r]=t.heap[i],r=i,i<<=1;t.heap[r]=n}function Rt(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?It(t,i,e):(It(t,(o=ft[i])+256+1,e),0!==(a=bt[o])&&Et(t,i-=mt[o],a),It(t,o=St(--n),r),0!==(a=wt[o])&&Et(t,n-=gt[o],a))}while(s<t.last_lit);It(t,256,e)}function Bt(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=573,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--)jt(t,o,r);i=l;do{r=t.heap[1],t.heap[1]=t.heap[t.heap_len--],jt(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++,jt(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,c=e.stat_desc.static_tree,u=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<=15;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,r=t.heap_max+1;r<573;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),u&&(t.static_len+=s*(c[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),Pt(o,h,t.bl_count)}function Ut(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[32]++):s<=10?t.bl_tree[34]++:t.bl_tree[36]++,s=0,o=i,0===a?(l=138,h=3):i===a?(l=6,h=3):(l=7,h=4))}function Lt(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{It(t,i,t.bl_tree)}while(0!=--s);else 0!==i?(i!==o&&(It(t,i,t.bl_tree),s--),It(t,16,t.bl_tree),Et(t,s-3,2)):s<=10?(It(t,17,t.bl_tree),Et(t,s-3,3)):(It(t,18,t.bl_tree),Et(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 Nt=!1;function Mt(t,e,r,n){Et(t,0+(n?1:0),3),function(t,e,r,n){Ft(t),zt(t,r),zt(t,~r),O(t.pending_buf,t.window,e,r,t.pending),t.pending+=r}(t,e,r)}function Wt(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]+256+1)]++,t.dyn_dtree[2*St(e)]++),t.last_lit===t.lit_bufsize-1}var Ht=258,qt=262,Gt=103,Vt=113,Zt=666;function Kt(t,e){return t.msg=ot[e],e}function Xt(t){return(t<<1)-(t>4?9:0)}function Jt(t){for(var e=t.length;--e>=0;)t[e]=0}function $t(t){var e=t.state,r=e.pending;r>t.avail_out&&(r=t.avail_out),0!==r&&(O(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 Qt(t,e){(function(t,e,r,n){var i,o,a=0;t.level>0?(2===t.strm.data_type&&(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 0;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return 1;for(e=32;e<256;e++)if(0!==t.dyn_ltree[2*e])return 1;return 0}(t)),Bt(t,t.l_desc),Bt(t,t.d_desc),a=function(t){var e;for(Ut(t,t.dyn_ltree,t.l_desc.max_code),Ut(t,t.dyn_dtree,t.d_desc.max_code),Bt(t,t.bl_desc),e=18;e>=3&&0===t.bl_tree[2*kt[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?Mt(t,e,r,n):4===t.strategy||o===i?(Et(t,2+(n?1:0),3),Rt(t,ut,dt)):(Et(t,4+(n?1:0),3),function(t,e,r,n){var i;for(Et(t,e-257,5),Et(t,r-1,5),Et(t,n-4,4),i=0;i<n;i++)Et(t,t.bl_tree[2*kt[i]+1],3);Lt(t,t.dyn_ltree,e-1),Lt(t,t.dyn_dtree,r-1)}(t,t.l_desc.max_code+1,t.d_desc.max_code+1,a+1),Rt(t,t.dyn_ltree,t.dyn_dtree)),Tt(t),n&&Ft(t)})(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,$t(t.strm)}function Yt(t,e){t.pending_buf[t.pending++]=e}function te(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function ee(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-qt?t.strstart-(t.w_size-qt):0,h=t.window,c=t.w_mask,u=t.prev,d=t.strstart+Ht,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=Ht-(d-o),o=d-Ht,n>a){if(t.match_start=e,a=n,n>=s)break;p=h[o+a-1],f=h[o+a]}}}while((e=u[e&c])>l&&0!=--i);return a<=t.lookahead?a:t.lookahead}function re(t){var e,r,n,i,o,a,s,l,h,c,u=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=u+(u-qt)){O(t.window,t.window,u,u,0),t.match_start-=u,t.strstart-=u,t.block_start-=u,e=r=t.hash_size;do{n=t.head[--e],t.head[e]=n>=u?n-u:0}while(--r);e=r=u;do{n=t.prev[--e],t.prev[e]=n>=u?n-u:0}while(--r);i+=u}if(0===t.strm.avail_in)break;if(a=t.strm,s=t.window,l=t.strstart+t.lookahead,h=i,c=void 0,(c=a.avail_in)>h&&(c=h),r=0===c?0:(a.avail_in-=c,O(s,a.input,a.next_in,c,l),1===a.state.wrap?a.adler=B(a.adler,s,c,l):2===a.state.wrap&&(a.adler=L(a.adler,s,c,l)),a.next_in+=c,a.total_in+=c,c),t.lookahead+=r,t.lookahead+t.insert>=3)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+3-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<3)););}while(t.lookahead<qt&&0!==t.strm.avail_in)}function ne(t,e){var r=65535;for(r>t.pending_buf_size-5&&(r=t.pending_buf_size-5);;){if(t.lookahead<=1){if(re(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,Qt(t,!1),0===t.strm.avail_out))return 1;if(t.strstart-t.block_start>=t.w_size-qt&&(Qt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Qt(t,!0),0===t.strm.avail_out?3:4):(t.strstart>t.block_start&&(Qt(t,!1),t.strm.avail_out),1)}function ie(t,e){for(var r,n;;){if(t.lookahead<qt){if(re(t),t.lookahead<qt&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-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-qt&&(t.match_length=ee(t,r)),t.match_length>=3)if(n=Wt(t,t.strstart-t.match_start,t.match_length-3),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=3){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-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=Wt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(n&&(Qt(t,!1),0===t.strm.avail_out))return 1}return t.insert=t.strstart<2?t.strstart:2,4===e?(Qt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Qt(t,!1),0===t.strm.avail_out)?1:2}function oe(t,e){for(var r,n,i;;){if(t.lookahead<qt){if(re(t),t.lookahead<qt&&0===e)return 1;if(0===t.lookahead)break}if(r=0,t.lookahead>=3&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+3-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=2,0!==r&&t.prev_length<t.max_lazy_match&&t.strstart-r<=t.w_size-qt&&(t.match_length=ee(t,r),t.match_length<=5&&(1===t.strategy||3===t.match_length&&t.strstart-t.match_start>4096)&&(t.match_length=2)),t.prev_length>=3&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-3,n=Wt(t,t.strstart-1-t.prev_match,t.prev_length-3),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+3-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=2,t.strstart++,n&&(Qt(t,!1),0===t.strm.avail_out))return 1}else if(t.match_available){if((n=Wt(t,0,t.window[t.strstart-1]))&&Qt(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=Wt(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<2?t.strstart:2,4===e?(Qt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Qt(t,!1),0===t.strm.avail_out)?1:2}function ae(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 se=function(){var t=[new ae(0,0,0,0,ne),new ae(4,4,8,4,ie),new ae(4,5,16,8,ie),new ae(4,6,32,32,ie),new ae(4,4,16,16,oe),new ae(8,16,32,32,oe),new ae(8,16,128,128,oe),new ae(8,32,128,256,oe),new ae(32,128,258,1024,oe),new ae(32,258,258,4096,oe)];return se=function(){return t},t};function le(){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=E(1146),this.dyn_dtree=E(122),this.bl_tree=E(78),Jt(this.dyn_ltree),Jt(this.dyn_dtree),Jt(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=E(16),this.heap=E(573),Jt(this.heap),this.heap_len=0,this.heap_max=0,this.depth=E(573),Jt(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 he(t){var e=function(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=2,(e=t.state).pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?42:Vt,t.adler=2===e.wrap?0:1,e.last_flush=0,function(t){Nt||(function(){var t,e,r,n,i,o=new Array(16);for(ct(ut=new Array(576)),ct(dt=new Array(60)),ct(pt=new Array(512)),ct(ft=new Array(256)),ct(mt=new Array(29)),ct(gt=new Array(30)),r=0,n=0;n<28;n++)for(mt[n]=r,t=0;t<1<<bt[n];t++)ft[r++]=n;for(ft[r-1]=n,i=0,n=0;n<16;n++)for(gt[n]=i,t=0;t<1<<wt[n];t++)pt[i++]=n;for(i>>=7;n<30;n++)for(gt[n]=i<<7,t=0;t<1<<wt[n]-7;t++)pt[256+i++]=n;for(e=0;e<=15;e++)o[e]=0;for(t=0;t<=143;)ut[2*t+1]=8,t++,o[8]++;for(;t<=255;)ut[2*t+1]=9,t++,o[9]++;for(;t<=279;)ut[2*t+1]=7,t++,o[7]++;for(;t<=287;)ut[2*t+1]=8,t++,o[8]++;for(Pt(ut,287,o),t=0;t<30;t++)dt[2*t+1]=5,dt[2*t]=At(t,5);vt=new Ct(ut,bt,257,286,15),_t=new Ct(dt,wt,0,30,15),yt=new Ct(new Array(0),xt,0,19,7)}(),Nt=!0),t.l_desc=new Ot(t.dyn_ltree,vt),t.d_desc=new Ot(t.dyn_dtree,_t),t.bl_desc=new Ot(t.bl_tree,yt),t.bi_buf=0,t.bi_valid=0,Tt(t)}(e),0):Kt(t,_)}(t);return 0===e&&function(t){t.window_size=2*t.w_size,Jt(t.head);var e=se();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=2,t.match_available=0,t.ins_h=0}(t.state),e}function ce(t,e){var r,n,i,o;if(!t||!t.state||e>5||e<0)return t?Kt(t,_):_;if(n=t.state,!t.output||!t.input&&0!==t.avail_in||n.status===Zt&&4!==e)return Kt(t,0===t.avail_out?-5:_);if(n.strm=t,r=n.last_flush,n.last_flush=e,42===n.status)if(2===n.wrap)t.adler=0,Yt(n,31),Yt(n,139),Yt(n,8),n.gzhead?(Yt(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)),Yt(n,255&n.gzhead.time),Yt(n,n.gzhead.time>>8&255),Yt(n,n.gzhead.time>>16&255),Yt(n,n.gzhead.time>>24&255),Yt(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Yt(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(Yt(n,255&n.gzhead.extra.length),Yt(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(t.adler=L(t.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(Yt(n,0),Yt(n,0),Yt(n,0),Yt(n,0),Yt(n,0),Yt(n,9===n.level?2:n.strategy>=2||n.level<2?4:0),Yt(n,3),n.status=Vt);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=Vt,te(n,a),0!==n.strstart&&(te(n,t.adler>>>16),te(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=L(t.adler,n.pending_buf,n.pending-i,i)),$t(t),i=n.pending,n.pending!==n.pending_buf_size));)Yt(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(t.adler=L(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=L(t.adler,n.pending_buf,n.pending-i,i)),$t(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,Yt(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(t.adler=L(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=L(t.adler,n.pending_buf,n.pending-i,i)),$t(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,Yt(n,o)}while(0!==o);n.gzhead.hcrc&&n.pending>i&&(t.adler=L(t.adler,n.pending_buf,n.pending-i,i)),0===o&&(n.status=Gt)}else n.status=Gt;if(n.status===Gt&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&$t(t),n.pending+2<=n.pending_buf_size&&(Yt(n,255&t.adler),Yt(n,t.adler>>8&255),t.adler=0,n.status=Vt)):n.status=Vt),0!==n.pending){if($t(t),0===t.avail_out)return n.last_flush=-1,0}else if(0===t.avail_in&&Xt(e)<=Xt(r)&&4!==e)return Kt(t,-5);if(n.status===Zt&&0!==t.avail_in)return Kt(t,-5);if(0!==t.avail_in||0!==n.lookahead||0!==e&&n.status!==Zt){var s=2===n.strategy?function(t,e){for(var r;;){if(0===t.lookahead&&(re(t),0===t.lookahead)){if(0===e)return 1;break}if(t.match_length=0,r=Wt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,r&&(Qt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Qt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Qt(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<=Ht){if(re(t),t.lookahead<=Ht&&0===e)return 1;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=3&&t.strstart>0&&(n=a[i=t.strstart-1])===a[++i]&&n===a[++i]&&n===a[++i]){o=t.strstart+Ht;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=Ht-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=3?(r=Wt(t,1,t.match_length-3),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(r=Wt(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),r&&(Qt(t,!1),0===t.strm.avail_out))return 1}return t.insert=0,4===e?(Qt(t,!0),0===t.strm.avail_out?3:4):t.last_lit&&(Qt(t,!1),0===t.strm.avail_out)?1:2}(n,e):se()[n.level].func(n,e);if(3!==s&&4!==s||(n.status=Zt),1===s||3===s)return 0===t.avail_out&&(n.last_flush=-1),0;if(2===s&&(1===e?function(t){Et(t,2,3),It(t,256,ut),function(t){16===t.bi_valid?(zt(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&&(Mt(n,0,0,!1),3===e&&(Jt(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),$t(t),0===t.avail_out))return n.last_flush=-1,0}return 4!==e?0:n.wrap<=0?1:(2===n.wrap?(Yt(n,255&t.adler),Yt(n,t.adler>>8&255),Yt(n,t.adler>>16&255),Yt(n,t.adler>>24&255),Yt(n,255&t.total_in),Yt(n,t.total_in>>8&255),Yt(n,t.total_in>>16&255),Yt(n,t.total_in>>24&255)):(te(n,t.adler>>>16),te(n,65535&t.adler)),$t(t),n.wrap>0&&(n.wrap=-n.wrap),0!==n.pending?0:1)}var ue=Object.prototype.toString,de=function(t){this.options=b({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 at,this.strm.avail_out=0;var r,n,i=function(t,e,r,n,i,o){if(!t)return _;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>4)return Kt(t,_);8===n&&(n=9);var s=new le;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+3-1)/3),s.window=z(2*s.w_size),s.head=E(s.hash_size),s.prev=E(s.w_size),s.lit_bufsize=1<<i+6,s.pending_buf_size=4*s.lit_bufsize,s.pending_buf=z(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,he(t)}(this.strm,e.level,e.method,e.windowBits,e.memLevel,e.strategy);if(0!==i)throw new Error(ot[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?F(e.dictionary):"[object ArrayBuffer]"===ue.call(e.dictionary)?new Uint8Array(e.dictionary):e.dictionary,i=function(t,e){var r,n,i,o,a,s,l,h,c=e.length;if(!t||!t.state)return _;if(2===(o=(r=t.state).wrap)||1===o&&42!==r.status||r.lookahead)return _;for(1===o&&(t.adler=B(t.adler,e,c,0)),r.wrap=0,c>=r.w_size&&(0===o&&(Jt(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=z(r.w_size),O(h,e,c-r.w_size,r.w_size,0),e=h,c=r.w_size),a=t.avail_in,s=t.next_in,l=t.input,t.avail_in=c,t.next_in=0,t.input=e,re(r);r.lookahead>=3;){n=r.strstart,i=r.lookahead-2;do{r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+3-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=2,re(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=2,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(ot[i]);this._dict_set=!0}};de.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=F(t):"[object ArrayBuffer]"===ue.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=z(a),o.next_out=0,o.avail_out=a),1!==(r=ce(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(D(i=w(o.output,o.next_out),i.length)):this.onData(w(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!==Gt&&e!==Vt&&e!==Zt?Kt(t,_):(t.state=null,e===Vt?Kt(t,-3):0):_}(this.strm),this.onEnd(r),this.ended=!0,0===r):2!==n||(this.onEnd(0),o.avail_out=0,!0)},de.prototype.onData=function(t){this.chunks.push(t)},de.prototype.onEnd=function(t){0===t&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=S(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};var pe={Promise},fe={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 me()}},me=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 me=function(){return t},t},ge="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ve(t){return t}function _e(t,e){for(var r=0;r<t.length;++r)e[r]=255&t.charCodeAt(r);return e}function ye(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 be=function(){var t;try{t=fe.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){t=!1}return be=function(){return t},t};function we(t){var e=65536,r=Se(t),n=!0;if("uint8array"===r&&(n=be()),n)for(;e>1;)try{return ye(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 xe=we;function ke(t,e){for(var r=0;r<t.length;r++)e[r]=t[r];return e}var Ce={string:{string:ve,array:function(t){return _e(t,new Array(t.length))},arraybuffer:function(t){return Ce.string.uint8array(t).buffer},uint8array:function(t){return _e(t,new Uint8Array(t.length))}},array:{string:we,array:ve,arraybuffer:function(t){return new Uint8Array(t).buffer},uint8array:function(t){return new Uint8Array(t)}},arraybuffer:{string:function(t){return we(new Uint8Array(t))},array:function(t){return ke(new Uint8Array(t),new Array(t.byteLength))},arraybuffer:ve,uint8array:function(t){return new Uint8Array(t)}},uint8array:{string:we,array:function(t){return ke(t,new Array(t.length))},arraybuffer:function(t){return t.buffer},uint8array:ve}},Oe=function(t,e){if(e||(e=""),!t)return e;ze(t);var r=Se(e);return Ce[r][t](e)},Se=function(t){return"string"==typeof t?"string":"[object Array]"===Object.prototype.toString.call(t)?"array":fe.uint8array&&t instanceof Uint8Array?"uint8array":fe.arraybuffer&&t instanceof ArrayBuffer?"arraybuffer":void 0},ze=function(t){if(!fe[t.toLowerCase()])throw new Error(t+" is not supported by this platform")},Ee=65535,Ie=-1,Ae=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},Pe=function(t,e,r){setTimeout((function(){t.apply(r||null,e||[])}),0)},Te=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},Fe=function(t,e,r,n,i){return pe.Promise.resolve(e).then((function(t){return fe.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&"undefined"!=typeof FileReader?new pe.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=Se(e);return a?("arraybuffer"===a?e=Oe("uint8array",e):"string"===a&&(i?e=function(t){var e,r,n,i,o,a,s=0,l=0,h="data:";if(t.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var c,u=3*(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(t.charAt(t.length-1)===ge.charAt(64)&&u--,t.charAt(t.length-2)===ge.charAt(64)&&u--,u%1!=0)throw new Error("Invalid base64 input, bad content length.");for(c=fe.uint8array?new Uint8Array(0|u):new Array(0|u);s<t.length;)e=ge.indexOf(t.charAt(s++))<<2|(i=ge.indexOf(t.charAt(s++)))>>4,r=(15&i)<<4|(o=ge.indexOf(t.charAt(s++)))>>2,n=(3&o)<<6|(a=ge.indexOf(t.charAt(s++))),c[l++]=e,64!==o&&(c[l++]=r),64!==a&&(c[l++]=n);return c}(e):r&&!0!==n&&(e=_e(o=e,fe.uint8array?new Uint8Array(o.length):new Array(o.length)))),e):pe.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))},De=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};De.prototype.push=function(t){this.emit("data",t)},De.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},De.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)},De.prototype.on=function(t,e){return this._listeners[t].push(e),this},De.prototype.cleanUp=function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},De.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)},De.prototype.pipe=function(t){return t.registerPrevious(this)},De.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},De.prototype.pause=function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},De.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},De.prototype.flush=function(){},De.prototype.processChunk=function(t){this.push(t)},De.prototype.withStreamInfo=function(t,e){return this.extraStreamInfo[t]=e,this.mergeStreamInfo(),this},De.prototype.mergeStreamInfo=function(){for(var t in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(t)&&(this.streamInfo[t]=this.extraStreamInfo[t])},De.prototype.lock=function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},De.prototype.toString=function(){var t="Worker "+this.name;return this.previous?this.previous+" -> "+t:t};var je=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,je=function(t){return e[t]},e[t]},Re=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=fe.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)},Be=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=je(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),xe(a)}(t=Oe(fe.uint8array?"uint8array":"array",t))},Ue=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=Oe(fe.uint8array?"uint8array":"array",t.data);if(this.leftOver&&this.leftOver.length){if(fe.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+je(t[r])>e?r:e}(e),i=e;n!==e.length&&(fe.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:Be(i),meta:t.meta})},e.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:Be(this.leftOver),meta:{}}),this.leftOver=null)},e}(De),Le=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:Re(t.data),meta:t.meta})},e}(De),Ne=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:Oe(this.destType,t.data),meta:t.meta})},e}(De);function Me(t,e){return new pe.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 ze("blob"),new Blob([t],{type:e})}(Oe("arraybuffer",e),r);case"base64":return function(t){for(var e,r,n,i,o,a,s,l=[],h=0,c=t.length,u=c,d="string"!=typeof t;h<t.length;)u=c-h,d?(e=t[h++],r=h<c?t[h++]:0,n=h<c?t[h++]:0):(e=t.charCodeAt(h++),r=h<c?t.charCodeAt(h++):0,n=h<c?t.charCodeAt(h++):0),i=e>>2,o=(3&e)<<4|r>>4,a=u>1?(15&r)<<2|n>>6:64,s=u>2?63&n:64,l.push(ge.charAt(i)+ge.charAt(o)+ge.charAt(a)+ge.charAt(s));return l.join("")}(e);default:return Oe(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 We=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,ze(n),this._worker=t.pipe(new Ne(n)),t.lock()}catch(t){this._worker=new De("error"),this._worker.error(t)}};We.prototype.accumulate=function(t){return Me(this,t)},We.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(){Pe(e,arguments,r)})),this},We.prototype.resume=function(){return Pe(this._worker.resume,[],this._worker),this},We.prototype.pause=function(){return this._worker.pause(),this};var He=Object.freeze({__proto__:null,base64:!1,binary:!1,dir:!1,createFolders:!0,date:null,compression:null,compressionOptions:null,comment:null,unixPermissions:null,dosPermissions:null}),qe=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=Se(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,Pe(this._tickAndRepeat,[],this)),!0)},e.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(Pe(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}(De),Ge=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}(De),Ve=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 Ve=function(){return t},t};function Ze(t,e){return void 0!==t&&t.length?"string"!==Se(t)?function(t,e,r,n){var i=Ve(),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=Ve(),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 Ke=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=Ze(t.data,this.streamInfo.crc32||0),this.push(t)},e}(De),Xe=function(t,e,r,n,i){this.compressedSize=t,this.uncompressedSize=e,this.crc32=r,this.compression=n,this.compressedContent=i};Xe.prototype.getContentWorker=function(){var t=new qe(pe.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new Ge("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},Xe.prototype.getCompressedWorker=function(){return new qe(pe.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)},Xe.createWorkerFrom=function(t,e,r){return t.pipe(new Ke).pipe(new Ge("uncompressedSize")).pipe(e.compressWorker(r)).pipe(new Ge("compressedSize")).withStreamInfo("compression",e)};var Je=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}};Je.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 Le)),!i&&n&&(e=e.pipe(new Ue))}catch(t){(e=new De("error")).error(t)}return new We(e,r,"")},Je.prototype.async=function(t,e){return this.internalStream(t).accumulate(e)},Je.prototype._compressWorker=function(t,e){if(this._data instanceof Xe&&this._data.compression.magic===t.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new Le)),Xe.createWorkerFrom(r,t,e)},Je.prototype._decompressWorker=function(){return this._data instanceof Xe?this._data.getContentWorker():this._data instanceof De?this._data:new qe(this._data)};var $e=function(){var t="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array?"uint8array":"array";$e=function(){return t}},Qe=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(Oe($e(),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 de(e):new ht(e),this._pako.onData=function(e){t.push({data:e,meta:t.meta})}},e}(De),Ye={STORE:{magic:"\0\0",compressWorker:function(){return new De("STORE compression")},uncompressWorker:function(){return new De("STORE decompression")}},DEFLATE:{magic:"\b\0",compressWorker:function(t){return new Qe("Deflate",t)},uncompressWorker:function(){return new Qe("Inflate",{})}}},tr="PK",er="PK",rr="PK",nr="PK",ir="PK",or=function(t,e){var r,n="";for(r=0;r<e;r++)n+=String.fromCharCode(255&t),t>>>=8;return n},ar=function(t,e,r,n,i,o){var a,s,l=t.file,h=t.compression,c=o!==Re,u=Oe("string",o(l.name)),d=Oe("string",Re(l.name)),p=l.comment,f=Oe("string",o(p)),m=Oe("string",Re(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),c||!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=or(1,1)+or(Ze(u),4)+d,_+="up"+or(y.length,2)+y),v&&(b=or(1,1)+or(Ze(f),4)+m,_+="uc"+or(b.length,2)+b);var A="";return A+="\n\0",A+=or(C,2),A+=h.magic,A+=or(a,2),A+=or(s,2),A+=or(k.crc32,4),A+=or(k.compressedSize,4),A+=or(k.uncompressedSize,4),A+=or(u.length,2),A+=or(_.length,2),{fileRecord:tr+A+u+_,dirRecord:er+or(I,2)+A+or(f.length,2)+"\0\0\0\0"+or(E,4)+or(n,4)+u+_+f}},sr=function(t){return"PK\b"+or(t.crc32,4)+or(t.compressedSize,4)+or(t.uncompressedSize,4)},lr=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=ar(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=ar(t,e,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),e)this.push({data:sr(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=Oe("string",i(n));return"PK\0\0\0\0"+or(t,2)+or(t,2)+or(e,4)+or(r,4)+or(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}(De),hr=function(t){this.data=t,this.length=t.length,this.index=0,this.zero=0};hr.prototype.checkOffset=function(t){this.checkIndex(this.index+t)},hr.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 ?")},hr.prototype.setIndex=function(t){this.checkIndex(t),this.index=t},hr.prototype.skip=function(t){this.setIndex(this.index+t)},hr.prototype.byteAt=function(t){},hr.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},hr.prototype.readString=function(t){return Oe("string",this.readData(t))},hr.prototype.readData=function(t){},hr.prototype.lastIndexOfSignature=function(t){},hr.prototype.readAndCheckSignature=function(t){},hr.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 cr=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}(hr),ur=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}(hr),dr=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}(cr);function pr(t){var e=Se(t);return ze(e),"string"!==e||fe.uint8array?fe.uint8array?new dr(Oe("uint8array",t)):new cr(Oe("array",t)):new ur(t)}var fr=function(t,e){this.options=t,this.loadOptions=e};fr.prototype.isEncrypted=function(){return 1==(1&this.bitFlag)},fr.prototype.useUTF8=function(){return 2048==(2048&this.bitFlag)},fr.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 Ye)if(Ye.hasOwnProperty(e)&&Ye[e].magic===t)return Ye[e];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+Ae(this.compressionMethod)+" unknown (inner file : "+Oe("string",this.fileName)+")");this.decompressed=new Xe(this.compressedSize,this.uncompressedSize,this.crc32,e,t.readData(this.compressedSize))},fr.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)},fr.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)},fr.prototype.parseZIP64ExtraField=function(t){if(this.extraFields[1]){var e=pr(this.extraFields[1].value);this.uncompressedSize===Ie&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===Ie&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===Ie&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===Ie&&(this.diskNumberStart=e.readInt(4))}},fr.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}},fr.prototype.handleUTF8=function(){var t=fe.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=Be(this.fileName),this.fileCommentStr=Be(this.fileComment);else{var e=this.findExtraFieldUnicodePath();if(null!==e)this.fileNameStr=e;else{var r=Oe(t,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=Oe(t,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},fr.prototype.findExtraFieldUnicodePath=function(){var t=this.extraFields[28789];if(t){var e=pr(t.value);return 1!==e.readInt(1)||Ze(this.fileName)!==e.readInt(4)?null:Be(e.readData(t.length-5))}return null},fr.prototype.findExtraFieldUnicodeComment=function(){var t=this.extraFields[25461];if(t){var e=pr(t.value);return 1!==e.readInt(1)||Ze(this.fileComment)!==e.readInt(4)?null:Be(e.readData(t.length-5))}return null};var mr=function(t){this.files=[],this.loadOptions=t};function gr(t){return new pe.Promise((function(e,r){var n=t.decompressed.getContentWorker().pipe(new Ke);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 vr(t,e){var r=this;return e=Te(e||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:Be}),Fe("the loaded zip file",t,!0,e.optimizedBinaryString,e.base64).then((function(t){var r=new mr(e);return r.load(t),r})).then((function(t){var r=[pe.Promise.resolve(t)],n=t.files;if(e.checkCRC32)for(var i=0;i<n.length;i++)r.push(gr(n[i]));return pe.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}))}mr.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 ("+Ae(e)+", expected "+Ae(t)+")")}},mr.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},mr.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=fe.uint8array?"uint8array":"array",r=Oe(e,t);this.zipComment=this.loadOptions.decodeFileName(r)},mr.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}},mr.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")},mr.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(tr),e.readLocalPart(this.reader),e.handleUTF8(),e.processAttributes()},mr.prototype.readCentralDir=function(){var t;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(er);)(t=new fr({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)},mr.prototype.readEndOfCentral=function(){var t=this.reader.lastIndexOfSignature(rr);if(t<0)throw this.isSignature(0,tr)?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(rr),this.readBlockEndOfCentral(),this.diskNumber===Ee||this.diskWithCentralDirStart===Ee||this.centralDirRecordsOnThisDisk===Ee||this.centralDirRecords===Ee||this.centralDirSize===Ie||this.centralDirOffset===Ie){if(this.zip64=!0,(t=this.reader.lastIndexOfSignature(nr))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(t),this.checkSignature(nr),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,ir)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(ir),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(ir),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,er)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},mr.prototype.prepareReader=function(t){this.reader=pr(t)},mr.prototype.load=function(t){this.prepareReader(t),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()};var _r=function(t,e,r){var n,i=Se(e),o=Te(r||{},He);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=br(t)),o.createFolders&&(n=yr(t))&&wr.call(this,n,!0);var a="string"===i&&!1===o.binary&&!1===o.base64;r&&void 0!==r.binary||(o.binary=!a),(e instanceof Xe&&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 Xe||e instanceof De?e:Fe(t,e,o.binary,o.optimizedBinaryString,o.base64);var l=new Je(t,s,o);this.files[t]=l},yr=function(t){"/"===t.slice(-1)&&(t=t.substring(0,t.length-1));var e=t.lastIndexOf("/");return e>0?t.substring(0,e):""},br=function(t){return"/"!==t.slice(-1)&&(t+="/"),t},wr=function(t,e){return e=void 0===e||e,t=br(t),this.files[t]||_r.call(this,t,null,{dir:!0,createFolders:e}),this.files[t]};function xr(t){return"[object RegExp]"===Object.prototype.toString.call(t)}var kr=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}},Cr={support:{configurable:!0},defaults:{configurable:!0},version:{configurable:!0},external:{configurable:!0}};function Or(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}kr.prototype.load=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},kr.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)},kr.prototype.filter=function(t){var e=[];return this.forEach((function(r,n){t(r,n)&&e.push(n)})),e},kr.prototype.file=function(t,e,r){if(1===arguments.length){if(xr(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,_r.call(this,t,e,r),this},kr.prototype.folder=function(t){if(!t)return this;if(xr(t))return this.filter((function(e,r){return r.dir&&t.test(e)}));var e=this.root+t,r=wr.call(this,e),n=this.clone();return n.root=r.name,n},kr.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},kr.prototype.generate=function(t){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},kr.prototype.generateInternalStream=function(t){var e,r={};try{if((r=Te(t||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:Re})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");ze(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 lr(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=Ye[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 De("error")).error(t)}return new We(e,r.type||"string",r.mimeType)},kr.prototype.generateAsync=function(t,e){return this.generateInternalStream(t).accumulate(e)},kr.prototype.loadAsync=function(t,e){return vr.apply(this,[t,e])},kr.loadAsync=function(t,e){return(new kr).loadAsync(t,e)},Cr.support.get=function(){return fe},Cr.defaults.get=function(){return He},Cr.version.get=function(){return"3.2.2-esm"},Cr.external.get=function(){return pe},Object.defineProperties(kr,Cr);var Sr=Or(1900,0,-1);var zr={compression:"DEFLATE",type:"base64"},Er={compression:"DEFLATE",type:"blob"},Ir={compression:"DEFLATE",type:"arraybuffer"};function Ar(t){return"data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,"+t}function Pr(t,e){return e.indexOf(t)}var Tr=JSON.parse.bind(JSON);function Fr(t){return String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/\"/g,""").replace(/\'/g,"'")}function Dr(t,e){for(var r="",n=0;n<t;++n)r+=e(n);return r}function jr(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 Rr='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r',Br=function(t){return Rr+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+jr(t,(function(t){return'\n <Relationship Id="'+t.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image" Target="'+t.target+'"/>'}))+"\n</Relationships>"};function Ur(t){var e=Math.floor(t/26)-1;return(e>=0?Ur(e):"")+String.fromCharCode(65+t%26)}function Lr(t,e){return Ur(e)+(t+1)}function Nr(t,e){return"$"+Ur(e)+"$"+(t+1)}function Mr(t){return(t.frozenRows||(t.freezePane||{}).rowSplit||1)-1}function Wr(t){return t/7-Math.floor(128/7)/256}var Hr=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 qr(t){var e=t.length;return t.forEach((function(t){t.index&&t.index>=e&&(e=t.index+1)})),e}Hr.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 Rr+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+jr(t.hyperlinks,(function(t){return'\n <Relationship Id="'+t.rId+'" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink" Target="'+Fr(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})},Hr.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=Yr(r).slice(0),o={rowData:r,rowsByIndex:n,mergedCells:e},a=0;a<i.length;a++)nn(i[a],o),delete i[a]._source;return Yr(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:Lr(Mr(this.options),o.from),to:Lr(Mr(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||{},c=this.options.defaults||{},u=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,c=t.showGridLines,u=t.hyperlinks,d=t.validations,p=t.defaultCellStyleId,f=t.rtl,m=t.legacyDrawing,g=t.drawing,v=t.lastRow,_=t.lastCol;return Rr+'\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:'+Lr(v-1,_-1)+'" />':"")+"\n\n <sheetViews>\n <sheetView "+(f?'rightToLeft="1"':"")+" "+(0===a?'tabSelected="1"':"")+' workbookViewId="0" '+(!1===c?'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="'+Wr(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="'+Wr(i.columnWidth)+'"':"")+" /> ")+"\n "+jr(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="'+Wr(t.width)+'"')+" />"}))+"\n </cols>":"")+"\n\n <sheetData>\n "+jr(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 "+jr(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>"+Fr(e)+"</f>":'<f t="array" ref="'+e.ref+'">'+Fr(e.src)+"</f>":"")+"\n "+(null!=t.value?"<v>"+Fr(t.value)+"</v>":"")+"\n </c>";var e}))+"\n </row>\n "}))+"\n </sheetData>\n\n "+(l?'<autoFilter ref="'+l.from+":"+l.to+'"/>':h?dn(h):"")+"\n\n "+(s.length?'\n <mergeCells count="'+s.length+'">\n '+jr(s,(function(t){return'<mergeCell ref="'+t+'"/>'}))+"\n </mergeCells>":"")+"\n\n "+(d.length?"\n <dataValidations>\n "+jr(d,(function(t){return'\n <dataValidation sqref="'+t.sqref.join(" ")+'"\n showErrorMessage="'+t.showErrorMessage+'"\n type="'+Fr(t.type)+'"\n '+("list"!==t.type?'operator="'+Fr(t.operator)+'"':"")+'\n allowBlank="'+t.allowBlank+'"\n showDropDown="'+t.showDropDown+'"\n '+(t.error?'error="'+Fr(t.error)+'"':"")+"\n "+(t.errorTitle?'errorTitle="'+Fr(t.errorTitle)+'"':"")+">\n "+(t.formula1?"<formula1>"+Fr(t.formula1)+"</formula1>":"")+"\n "+(t.formula2?"<formula2>"+Fr(t.formula2)+"</formula2>":"")+"\n </dataValidation>"}))+"\n </dataValidations>":"")+"\n\n "+(u.length?"\n <hyperlinks>\n "+jr(u,(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:c,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:c.rtl,legacyDrawing:this._comments.length?"vml"+this.options.sheetIndex:null,drawing:this._drawings.length?"drw"+this.options.sheetIndex:null,lastRow:u,lastCol:d})},Hr.prototype.commentsXML=function(){if(this._comments.length)return function(t){return Rr+'\n<comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">\n <authors>\n <author></author>\n </authors>\n <commentList>\n '+jr(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>'+Fr(t.text)+"</t>\n </r>\n </text>\n </comment>"}))+"\n </commentList>\n</comments>"}({comments:this._comments})},Hr.prototype.drawingsXML=function(t){if(this._drawings.length){var e={},r=this._drawings.map((function(r){var n=en(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:rn(r.offsetX),row:n.row,rowOffset:rn(r.offsetY),width:rn(r.width),height:rn(r.height),imageId:i.rId}}));return{main:(n=r,Rr+'\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 '+jr(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:Br(e)}}var n},Hr.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 '+jr(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})},Hr.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},Hr.prototype._lookupStyle=function(t){var e=JSON.stringify(t);if("{}"===e)return 0;var r=Pr(e,this._styles);return r<0&&(r=this._styles.push(e)-1),r+1},Hr.prototype._lookupBorder=function(t){var e=JSON.stringify(t);if("{}"!==e){var r=Pr(e,this._borders);return r<0&&(r=this._borders.push(e)-1),r+1}},Hr.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)}}},Hr.prototype._cell=function(t,e,r){if(!t||t===Qr)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,c,u=(this.options.columns||[])[r],d=typeof n;if(u&&u.autoWidth&&(!t.colSpan||1===t.colSpan)){var p=n;"number"===d&&(p=v.toString(n,t.format)),u.width=Math.max(u.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=(c=function(t,e,r){return Or(t,e,r)-Sr}(l.getFullYear(),l.getMonth(),l.getDate()))<0?c-1+h:c+h,s.format||(s.format="mm-dd-yy")):(d=null,n=null),s=this._lookupStyle(s);var f=Lr(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}},Hr.prototype._addValidation=function(t,e){var r={showErrorMessage:"reject"===t.type?1:0,formula1:t.from,formula2:t.to,type:Vr[t.dataType]||t.dataType,operator:Gr[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)},Hr.prototype._getLastRow=function(){return qr(this.options.rows)},Hr.prototype._getLastCol=function(){var t=0;return this.options.rows.forEach((function(e){e.cells&&(t=Math.max(t,qr(e.cells)))})),t};var Gr={greaterThanOrEqualTo:"greaterThanOrEqual",lessThanOrEqualTo:"lessThanOrEqual"},Vr={number:"decimal"},Zr={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 Kr(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 Xr=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=h(this.options.sheets||[],(function(t,r){return t.defaults=e.options,t.sheetIndex=r+1,new Hr(t,e._strings,e._styles,e._borders)}))};function Jr(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="'+Kr(e.color)+'"/>'),i+="</"+t+">"),i}function $r(t){var e=t.diagonal?t.diagonal.type:0;return"<border "+(2&e?'diagonalUp="true"':"")+" "+(1&e?'diagonalDown="true"':"")+">\n "+Jr("left",t.left)+"\n "+Jr("right",t.right)+"\n "+Jr("top",t.top)+"\n "+Jr("bottom",t.bottom)+"\n "+Jr("diagonal",t.diagonal)+"\n </border>"}Xr.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"}},Xr.prototype.toZIP=function(){var t=this,e=new kr,r=e.folder("docProps");r.file("core.xml",function(t){var e=t.lastModifiedBy,r=t.created,n=t.modified;return Rr+'\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>'+Fr(t.creator)+"</dc:creator>\n <cp:lastModifiedBy>"+Fr(e)+'</cp:lastModifiedBy>\n <dcterms:created xsi:type="dcterms:W3CDTF">'+Fr(r)+'</dcterms:created>\n <dcterms:modified xsi:type="dcterms:W3CDTF">'+Fr(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 Rr+'\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">'+jr(e,(function(t,e){return t.options.title?"<vt:lpstr>"+Fr(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",'<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\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>');var i=e.folder("xl");if(i.folder("_rels").file("workbook.xml.rels",function(t){var e=t.count;return Rr+'\n<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">\n '+Dr(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 Rr+'\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 '+jr(t.sheets,(function(t,e){var r=t.options;return'<sheet name="'+Fr(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 "+jr(e,(function(t){return'\n <definedName name="_xlnm._FilterDatabase" hidden="1" localSheetId="'+t.localSheetId+'">'+Fr(function(t){return/^\'/.test(t)||/^[a-z_][a-z0-9_]*$/i.test(t)?t:"'"+t.replace(/\x27/g,"\\'")+"'"}(t.name))+"!"+Fr(t.from)+":"+Fr(t.to)+"</definedName>"}))+"\n "+jr(r,(function(t){return'\n <definedName name="'+t.name+'" hidden="'+(t.hidden?1:0)+'" '+(null!=t.localSheetId?'localSheetId="'+t.localSheetId+'"':"")+">"+Fr(t.value)+"</definedName>"}))+"\n </definedNames>":"")+'\n <calcPr fullCalcOnLoad="1" calcId="145621" />\n</workbook>'}({sheets:this._sheets,filterNames:h(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=en(o[0]),l=en(o[1]);return{localSheetId:e,name:n,from:Nr(s.row,s.col),to:Nr(l.row,l.col)}}if(void 0!==i.from&&void 0!==i.to)return{localSheetId:e,name:n,from:Nr(Mr(r),i.from),to:Nr(Mr(r),i.to)}}})),userNames:h(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"),c=l.folder("_rels"),u=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(_&&u.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),c.file(k+".rels",w.rels),p.push(k)}s.file(g,v)}var C=h(this._borders,Tr),O=h(this._styles,Tr),S=function(t){return t.underline||t.bold||t.italic||t.color||t.fontFamily||t.fontSize},z=h(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=Kr(t.color)),S(t))return t})),E=h(O,(function(t){if(t.format&&void 0===Zr[t.format])return t})),I=h(O,(function(t){if(t.background)return t.background=Kr(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 Rr+'\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 '+jr(e,(function(t,e){return'\n <numFmt formatCode="'+Fr(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 '+jr(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="'+Fr(t.color)+'" />':'<color theme="1" />')+"\n "+(t.fontFamily?'\n <name val="'+Fr(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 '+jr(n,(function(t){return"\n "+(t.background?'\n <fill>\n <patternFill patternType="solid">\n <fgColor rgb="'+Fr(t.background)+'"/>\n </patternFill>\n </fill>\n ':"")}))+'\n </fills>\n <borders count="'+(i.length+1)+'">\n <border><left/><right/><top/><bottom/><diagonal/></border>\n '+jr(i,$r)+'\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 '+jr(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="'+Fr(t.textAlign)+'"':"")+"\n "+(t.verticalAlign?'vertical="'+Fr(t.verticalAlign)+'"':"")+"\n "+(t.indent?'indent="'+Fr(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:h(O,(function(t){var e={};return S(t)&&(e.fontId=Pr(t,z)+1),t.background&&(e.fillId=Pr(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!==Zr[t.format]?e.numFmtId=Zr[t.format]:e.numFmtId=165+Pr(t,E)),e}))})),i.file("sharedStrings.xml",function(t){var e=t.count,r=t.uniqueCount,n=t.indexes;return Rr+'\n<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="'+e+'" uniqueCount="'+r+'">\n '+jr(Object.keys(n),(function(t){return'\n <si><t xml:space="preserve">'+Fr(t.substring(1))+"</t></si>"}))+"\n</sst>"}(this._strings)),e.file("[Content_Types].xml",function(t){var e=t.commentFiles,r=t.drawingFiles;return Rr+'\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 '+Dr(t.sheetCount,(function(t){return'<Override PartName="/xl/worksheets/sheet'+(t+1)+'.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml" />'}))+"\n "+jr(e,(function(t){return'<Override PartName="/xl/'+t+'" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"/>'}))+"\n "+jr(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},Xr.prototype.toDataURL=function(){var t=this.toZIP();return t.generateAsync?t.generateAsync(zr).then(Ar):Ar(t.generate(zr))},Xr.prototype.toBlob=function(){var t=this.toZIP();return t.generateAsync?t.generateAsync(Er):new Blob([t.generate(Ir)],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"})};var Qr={};function Yr(t){return t.sort((function(t,e){return t.index-e.index}))}function tn(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=en(i),{rowSpan:(o=en(o)).row-i.row+1,colSpan:o.col-i.col+1}}}}function en(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 rn(t){return Math.round(9525*t)}function nn(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]||Qr,c=h.rowSpan||1,u=h.colSpan||1,d=on(s,h),p=Lr(o,d);if(1===c&&1===u){var f=tn(e.mergedCells,p);f&&(u=f.colSpan,c=f.rowSpan)}if(sn(h,s,d,u),(c>1||u>1)&&(r=e.mergedCells,n=p+":"+Lr(o+c-1,d+u-1),r.indexOf(n)<0&&r.push(n)),c>1)for(var m=o+1;m<o+c;m++){var g=e.rowsByIndex[m];g||(g=e.rowsByIndex[m]={index:m,cells:[]},e.rowData.push(g)),sn(h,g.cells,d-1,u+1)}}}function on(t,e){var r;return"number"==typeof e.index?(r=e.index,an(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 an(t,e,r){t[r]=e}function sn(t,e,r,n){for(var i=1;i<n;i++)an(e,{borderTop:t.borderTop,borderRight:t.borderRight,borderBottom:t.borderBottom,borderLeft:t.borderLeft},r+i)}var ln=function(t){return"\n<customFilters "+("and"===t.logic?'and="1"':"")+">\n"+jr(t.criteria,(function(t){var e=dn.customOperator(t);return"<customFilter "+(e?'operator="'+e+'"':"")+' val="'+dn.customValue(t)+'"/>'}))+"\n</customFilters>"},hn=function(t){var e=t.type;return'<dynamicFilter type="'+dn.dynamicFilterType(e)+'" />'},cn=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+'" />'},un=function(t){return"<filters "+(t.blanks?'blank="1"':"")+">\n "+jr(t.values,(function(t){return'\n <filter val="'+t+'" />'}))+"\n </filters>"};function dn(t){return e={ref:t.ref,columns:t.columns,generators:{custom:ln,dynamic:hn,top:cn,value:un}},r=e.generators,'\n<autoFilter ref="'+e.ref+'">\n '+jr(e.columns,(function(t){return'\n <filterColumn colId="'+t.index+'">\n '+r[t.filter](t)+"\n </filterColumn>\n "}))+"\n</autoFilter>";var e,r}dn.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()]},dn.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}},dn.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)})()}));
|
|
@@ -5,7 +5,7 @@ export var packageMetadata = {
|
|
|
5
5
|
name: '@progress/kendo-react-excel-export',
|
|
6
6
|
productName: 'KendoReact',
|
|
7
7
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
8
|
-
publishDate:
|
|
8
|
+
publishDate: 1673894930,
|
|
9
9
|
version: '',
|
|
10
10
|
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'
|
|
11
11
|
};
|
|
@@ -8,7 +8,7 @@ exports.packageMetadata = {
|
|
|
8
8
|
name: '@progress/kendo-react-excel-export',
|
|
9
9
|
productName: 'KendoReact',
|
|
10
10
|
productCodes: ['KENDOUIREACT', 'KENDOUICOMPLETE'],
|
|
11
|
-
publishDate:
|
|
11
|
+
publishDate: 1673894930,
|
|
12
12
|
version: '',
|
|
13
13
|
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'
|
|
14
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register("@progress/kendo-react-excel-export",["@progress/kendo-file-saver","@progress/kendo-licensing","@progress/kendo-ooxml","prop-types","react","react-dom/server"],function(e,t){var o={},i={},l={},p={},a={},c={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){o[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){i[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){l[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){p[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){a[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})}],execute:function(){e((()=>{"use strict";var r={106:function(e,t,o){var r,n,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),l=this&&this.__assign||function(){return(l=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},p=(Object.defineProperty(t,"__esModule",{value:!0}),t.ExcelExport=void 0,o(954)),a=o(895),c=o(619),s=o(739),u=o(527),d=o(363),o=(n=p.Component,i(f,n),f.prototype.save=function(e,t){var o=this;this.toDataURL(e,t).then(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o.props.onExportComplete&&o.props.onExportComplete.call(void 0,{target:o}),o.saveFile.apply(o,e)})},f.prototype.toDataURL=function(e,t){e=(0,s.isWorkbookOptions)(e)?e:this.workbookOptions(e,t);return(0,s.toDataURL)(e)},f.prototype.workbookOptions=function(e,t){var e=this.getExportData(e),o=this.props.children,r=o&&o.type&&"KendoReactGrid"===o.type.displayName&&o.props&&p.Children.toArray(o.props.children),r=this.extractColumns(r||t||this.props.columns||p.Children.toArray(o));return(0,s.workbookOptions)({columns:r,data:e.data,group:e.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})},f.prototype.render=function(){return this.props.children||null},f.propTypes={children:a.any,columns:a.arrayOf(a.any),creator:a.string,data:a.any,date:a.any,filterable:a.bool,fileName:a.string,forceProxy:a.bool,group:a.any,headerPaddingCellOptions:a.any,paddingCellOptions:a.any,proxyURL:a.string,dir:a.string,hierarchy:a.bool,collapsible:a.bool},f.defaultProps={fileName:"Export.xlsx",forceProxy:!1,collapsible:!1},f);function f(e){var o=n.call(this,e)||this;return o.saveFile=function(e){(0,c.saveAs)(e,o.props.fileName,{forceProxy:o.props.forceProxy,proxyURL:o.props.proxyURL})},o.extractColumns=function(e,t){return void 0===t&&(t=0),Array.isArray(e)?e.map(function(e){return o.extractChild(e,t)}):[e,o.extractChild(e,t)]},o.extractChild=function(e,t){return void 0===t&&(t=0),p.isValidElement(e)?l(l({},e.props),{width:e.props.width&&parseInt("".concat(e.props.width),10),level:t,children:e.props.children&&o.extractColumns(e.props.children,t+1)}):l(l({},e),{level:t,children:e.children&&o.extractColumns(e.children,t+1)})},o.getExportData=function(e){return e?Array.isArray(e)?{data:e}:e:{data:o.props.data,group:o.props.group}},void 0!==u?u.validatePackage(d.packageMetadata):(e="License activation failed for ".concat(d.packageMetadata.name,"\n"),e=(e+="The @progress/kendo-licensing script is not loaded.\n")+"See ".concat(d.packageMetadata.licensingDocsUrl," for more information.\n"),console.warn(e)),o.save=o.save.bind(o),o.toDataURL=o.toDataURL.bind(o),o.workbookOptions=o.workbookOptions.bind(o),o}t.ExcelExport=o},719:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExcelExportColumn=void 0;function r(e){return null}o=o(895);(t.ExcelExportColumn=r).propTypes={cellOptions:o.any,field:o.string,footerCellOptions:o.any,footer:o.oneOfType([o.func,o.element]),groupFooterCellOptions:o.any,groupFooter:o.oneOfType([o.func,o.element]),groupHeaderCellOptions:o.any,groupHeader:o.oneOfType([o.func,o.element]),headerCellOptions:o.any,hidden:o.bool,level:o.number,locked:o.bool,title:o.string,width:o.number}},715:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExcelExportColumnGroup=void 0;function r(e){return null}o=o(895);(t.ExcelExportColumnGroup=r).propTypes={children:o.oneOfType([o.arrayOf(o.element),o.element]),headerCellOptions:o.any,hidden:o.bool,level:o.number,locked:o.bool,title:o.string,width:o.number}},468:function(e,t,o){var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){void 0===r&&(r=o);var n=Object.getOwnPropertyDescriptor(t,o);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,r,n)}:function(e,t,o,r){e[r=void 0===r?o:r]=t[o]}),n=this&&this.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||r(t,e,o)},i=(Object.defineProperty(t,"__esModule",{value:!0}),t.KendoOoxml=t.ExcelExportGroupHeader=t.ExcelExportGroupFooter=t.ExcelExportColumn=t.ExcelExportFooter=t.ExcelExportColumnGroup=t.ExcelExport=void 0,o(106)),l=(Object.defineProperty(t,"ExcelExport",{enumerable:!0,get:function(){return i.ExcelExport}}),o(719)),p=(Object.defineProperty(t,"ExcelExportColumn",{enumerable:!0,get:function(){return l.ExcelExportColumn}}),o(715)),a=(Object.defineProperty(t,"ExcelExportColumnGroup",{enumerable:!0,get:function(){return p.ExcelExportColumnGroup}}),o(70)),c=(Object.defineProperty(t,"ExcelExportFooter",{enumerable:!0,get:function(){return a.ExcelExportFooter}}),o(424)),s=(Object.defineProperty(t,"ExcelExportGroupFooter",{enumerable:!0,get:function(){return c.ExcelExportGroupFooter}}),o(464)),u=(Object.defineProperty(t,"ExcelExportGroupHeader",{enumerable:!0,get:function(){return s.ExcelExportGroupHeader}}),o(960));t.KendoOoxml=u,n(o(739),t)},472:function(e,t,o){var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},l=(Object.defineProperty(t,"__esModule",{value:!0}),t.ExporterColumn=t.toExporterColumns=void 0,o(954)),p=o(274),r=function(o,r,n){return function(e){n(r,e);var e=p.renderToStaticMarkup(l.createElement(o,i({},r))),t=Number(e);return isNaN(t)?e:t}},n=function(e,t){e.$implicit=e.group=t,e.field=t.field,e.value=t.value,e.aggregates=t.aggregates},a=function(e,t){e.group=t.group,e.$implicit=e.aggregates=t},c=function(e,t){},s=(t.toExporterColumns=function(e){function n(e,o,r){e.forEach(function(e){var t;e.level===r&&(t=new s(e,i),o.push(t),e.children&&1<e.children.length?(t=t.columns=[],n(e.children,t,r+1)):i++)})}var t=[],i=0;return n(e,t,0),t},function(e,t){this.columns=null,this.title=e.title,this.field=e.field,this.hidden=e.hidden,this.locked=e.locked,this.width=e.width,this.headerCellOptions=e.headerCellOptions,this.cellOptions=e.cellOptions,this.groupHeaderCellOptions=e.groupHeaderCellOptions,this.groupFooterCellOptions=e.groupFooterCellOptions,this.footerCellOptions=e.footerCellOptions,e.footer&&(this.footerTemplate=r(e.footer,{$implicit:e,column:e,columnIndex:t},c)),e.groupFooter&&(this.groupFooterTemplate=r(e.groupFooter,{column:e,field:e.field},a)),e.groupHeader&&(this.groupHeaderTemplate=r(e.groupHeader,{},n))});t.ExporterColumn=s},739:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isWorkbookOptions=t.toDataURL=t.workbookOptions=void 0;var r=o(960),n=o(472);t.workbookOptions=function(e){var t=(0,n.toExporterColumns)(e.columns),t=new r.ExcelExporter({columns:t,data:e.data,filterable:e.filterable,groups:e.group,paddingCellOptions:e.paddingCellOptions,headerPaddingCellOptions:e.headerPaddingCellOptions,hierarchy:e.hierarchy?{depth:(t=e.data,Math.max.apply(Math,t.map(function(e){return e.level}))+1),itemLevel:function(e){return e.level}}:null,collapsible:e.collapsible}).workbook();return t.creator=e.creator,t.date=e.date,t.rtl="rtl"===e.dir,t},t.toDataURL=function(e){return new r.Workbook(e).toDataURL()},t.isWorkbookOptions=function(e){return e&&e.sheets}},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-excel-export",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1673539038,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(e,t,o){var r,n,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),o=(Object.defineProperty(t,"__esModule",{value:!0}),t.ExcelExportFooter=void 0,n=o(954).PureComponent,i(l,n),l);function l(){return null!==n&&n.apply(this,arguments)||this}t.ExcelExportFooter=o},424:function(e,t,o){var r,n,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),o=(Object.defineProperty(t,"__esModule",{value:!0}),t.ExcelExportGroupFooter=void 0,n=o(954).PureComponent,i(l,n),l);function l(){return null!==n&&n.apply(this,arguments)||this}t.ExcelExportGroupFooter=o},464:function(e,t,o){var r,n,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),o=(Object.defineProperty(t,"__esModule",{value:!0}),t.ExcelExportGroupHeader=void 0,n=o(954).PureComponent,i(l,n),l);function l(){return null!==n&&n.apply(this,arguments)||this}t.ExcelExportGroupHeader=o},619:e=>{e.exports=o},527:e=>{e.exports=i},960:e=>{e.exports=l},895:e=>{e.exports=p},954:e=>{e.exports=a},274:e=>{e.exports=c}},n={};return function e(t){var o=n[t];return void 0!==o||(o=n[t]={exports:{}},r[t].call(o.exports,o,o.exports,e)),o.exports}(468)})())}}});
|
|
1
|
+
System.register("@progress/kendo-react-excel-export",["@progress/kendo-file-saver","@progress/kendo-licensing","@progress/kendo-ooxml","prop-types","react","react-dom/server"],function(e,t){var o={},i={},l={},p={},a={},c={};return Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(i,"__esModule",{value:!0}),Object.defineProperty(l,"__esModule",{value:!0}),Object.defineProperty(p,"__esModule",{value:!0}),Object.defineProperty(a,"__esModule",{value:!0}),Object.defineProperty(c,"__esModule",{value:!0}),{setters:[function(t){Object.keys(t).forEach(function(e){o[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){i[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){l[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){p[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){a[e]=t[e]})},function(t){Object.keys(t).forEach(function(e){c[e]=t[e]})}],execute:function(){e((()=>{"use strict";var r={106:function(e,t,o){var r,n,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),l=this&&this.__assign||function(){return(l=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},p=(Object.defineProperty(t,"__esModule",{value:!0}),t.ExcelExport=void 0,o(954)),a=o(895),c=o(619),s=o(739),u=o(527),d=o(363),o=(n=p.Component,i(f,n),f.prototype.save=function(e,t){var o=this;this.toDataURL(e,t).then(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];o.props.onExportComplete&&o.props.onExportComplete.call(void 0,{target:o}),o.saveFile.apply(o,e)})},f.prototype.toDataURL=function(e,t){e=(0,s.isWorkbookOptions)(e)?e:this.workbookOptions(e,t);return(0,s.toDataURL)(e)},f.prototype.workbookOptions=function(e,t){var e=this.getExportData(e),o=this.props.children,r=o&&o.type&&"KendoReactGrid"===o.type.displayName&&o.props&&p.Children.toArray(o.props.children),r=this.extractColumns(r||t||this.props.columns||p.Children.toArray(o));return(0,s.workbookOptions)({columns:r,data:e.data,group:e.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})},f.prototype.render=function(){return this.props.children||null},f.propTypes={children:a.any,columns:a.arrayOf(a.any),creator:a.string,data:a.any,date:a.any,filterable:a.bool,fileName:a.string,forceProxy:a.bool,group:a.any,headerPaddingCellOptions:a.any,paddingCellOptions:a.any,proxyURL:a.string,dir:a.string,hierarchy:a.bool,collapsible:a.bool},f.defaultProps={fileName:"Export.xlsx",forceProxy:!1,collapsible:!1},f);function f(e){var o=n.call(this,e)||this;return o.saveFile=function(e){(0,c.saveAs)(e,o.props.fileName,{forceProxy:o.props.forceProxy,proxyURL:o.props.proxyURL})},o.extractColumns=function(e,t){return void 0===t&&(t=0),Array.isArray(e)?e.map(function(e){return o.extractChild(e,t)}):[e,o.extractChild(e,t)]},o.extractChild=function(e,t){return void 0===t&&(t=0),p.isValidElement(e)?l(l({},e.props),{width:e.props.width&&parseInt("".concat(e.props.width),10),level:t,children:e.props.children&&o.extractColumns(e.props.children,t+1)}):l(l({},e),{level:t,children:e.children&&o.extractColumns(e.children,t+1)})},o.getExportData=function(e){return e?Array.isArray(e)?{data:e}:e:{data:o.props.data,group:o.props.group}},void 0!==u?u.validatePackage(d.packageMetadata):(e="License activation failed for ".concat(d.packageMetadata.name,"\n"),e=(e+="The @progress/kendo-licensing script is not loaded.\n")+"See ".concat(d.packageMetadata.licensingDocsUrl," for more information.\n"),console.warn(e)),o.save=o.save.bind(o),o.toDataURL=o.toDataURL.bind(o),o.workbookOptions=o.workbookOptions.bind(o),o}t.ExcelExport=o},719:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExcelExportColumn=void 0;function r(e){return null}o=o(895);(t.ExcelExportColumn=r).propTypes={cellOptions:o.any,field:o.string,footerCellOptions:o.any,footer:o.oneOfType([o.func,o.element]),groupFooterCellOptions:o.any,groupFooter:o.oneOfType([o.func,o.element]),groupHeaderCellOptions:o.any,groupHeader:o.oneOfType([o.func,o.element]),headerCellOptions:o.any,hidden:o.bool,level:o.number,locked:o.bool,title:o.string,width:o.number}},715:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExcelExportColumnGroup=void 0;function r(e){return null}o=o(895);(t.ExcelExportColumnGroup=r).propTypes={children:o.oneOfType([o.arrayOf(o.element),o.element]),headerCellOptions:o.any,hidden:o.bool,level:o.number,locked:o.bool,title:o.string,width:o.number}},468:function(e,t,o){var r=this&&this.__createBinding||(Object.create?function(e,t,o,r){void 0===r&&(r=o);var n=Object.getOwnPropertyDescriptor(t,o);n&&!("get"in n?!t.__esModule:n.writable||n.configurable)||(n={enumerable:!0,get:function(){return t[o]}}),Object.defineProperty(e,r,n)}:function(e,t,o,r){e[r=void 0===r?o:r]=t[o]}),n=this&&this.__exportStar||function(e,t){for(var o in e)"default"===o||Object.prototype.hasOwnProperty.call(t,o)||r(t,e,o)},i=(Object.defineProperty(t,"__esModule",{value:!0}),t.KendoOoxml=t.ExcelExportGroupHeader=t.ExcelExportGroupFooter=t.ExcelExportColumn=t.ExcelExportFooter=t.ExcelExportColumnGroup=t.ExcelExport=void 0,o(106)),l=(Object.defineProperty(t,"ExcelExport",{enumerable:!0,get:function(){return i.ExcelExport}}),o(719)),p=(Object.defineProperty(t,"ExcelExportColumn",{enumerable:!0,get:function(){return l.ExcelExportColumn}}),o(715)),a=(Object.defineProperty(t,"ExcelExportColumnGroup",{enumerable:!0,get:function(){return p.ExcelExportColumnGroup}}),o(70)),c=(Object.defineProperty(t,"ExcelExportFooter",{enumerable:!0,get:function(){return a.ExcelExportFooter}}),o(424)),s=(Object.defineProperty(t,"ExcelExportGroupFooter",{enumerable:!0,get:function(){return c.ExcelExportGroupFooter}}),o(464)),u=(Object.defineProperty(t,"ExcelExportGroupHeader",{enumerable:!0,get:function(){return s.ExcelExportGroupHeader}}),o(960));t.KendoOoxml=u,n(o(739),t)},472:function(e,t,o){var i=this&&this.__assign||function(){return(i=Object.assign||function(e){for(var t,o=1,r=arguments.length;o<r;o++)for(var n in t=arguments[o])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},l=(Object.defineProperty(t,"__esModule",{value:!0}),t.ExporterColumn=t.toExporterColumns=void 0,o(954)),p=o(274),r=function(o,r,n){return function(e){n(r,e);var e=p.renderToStaticMarkup(l.createElement(o,i({},r))),t=Number(e);return isNaN(t)?e:t}},n=function(e,t){e.$implicit=e.group=t,e.field=t.field,e.value=t.value,e.aggregates=t.aggregates},a=function(e,t){e.group=t.group,e.$implicit=e.aggregates=t},c=function(e,t){},s=(t.toExporterColumns=function(e){function n(e,o,r){e.forEach(function(e){var t;e.level===r&&(t=new s(e,i),o.push(t),e.children&&1<e.children.length?(t=t.columns=[],n(e.children,t,r+1)):i++)})}var t=[],i=0;return n(e,t,0),t},function(e,t){this.columns=null,this.title=e.title,this.field=e.field,this.hidden=e.hidden,this.locked=e.locked,this.width=e.width,this.headerCellOptions=e.headerCellOptions,this.cellOptions=e.cellOptions,this.groupHeaderCellOptions=e.groupHeaderCellOptions,this.groupFooterCellOptions=e.groupFooterCellOptions,this.footerCellOptions=e.footerCellOptions,e.footer&&(this.footerTemplate=r(e.footer,{$implicit:e,column:e,columnIndex:t},c)),e.groupFooter&&(this.groupFooterTemplate=r(e.groupFooter,{column:e,field:e.field},a)),e.groupHeader&&(this.groupHeaderTemplate=r(e.groupHeader,{},n))});t.ExporterColumn=s},739:(e,t,o)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isWorkbookOptions=t.toDataURL=t.workbookOptions=void 0;var r=o(960),n=o(472);t.workbookOptions=function(e){var t=(0,n.toExporterColumns)(e.columns),t=new r.ExcelExporter({columns:t,data:e.data,filterable:e.filterable,groups:e.group,paddingCellOptions:e.paddingCellOptions,headerPaddingCellOptions:e.headerPaddingCellOptions,hierarchy:e.hierarchy?{depth:(t=e.data,Math.max.apply(Math,t.map(function(e){return e.level}))+1),itemLevel:function(e){return e.level}}:null,collapsible:e.collapsible}).workbook();return t.creator=e.creator,t.date=e.date,t.rtl="rtl"===e.dir,t},t.toDataURL=function(e){return new r.Workbook(e).toDataURL()},t.isWorkbookOptions=function(e){return e&&e.sheets}},363:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.packageMetadata=void 0,t.packageMetadata={name:"@progress/kendo-react-excel-export",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1673894930,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(e,t,o){var r,n,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),o=(Object.defineProperty(t,"__esModule",{value:!0}),t.ExcelExportFooter=void 0,n=o(954).PureComponent,i(l,n),l);function l(){return null!==n&&n.apply(this,arguments)||this}t.ExcelExportFooter=o},424:function(e,t,o){var r,n,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),o=(Object.defineProperty(t,"__esModule",{value:!0}),t.ExcelExportGroupFooter=void 0,n=o(954).PureComponent,i(l,n),l);function l(){return null!==n&&n.apply(this,arguments)||this}t.ExcelExportGroupFooter=o},464:function(e,t,o){var r,n,i=this&&this.__extends||(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}))(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function o(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),o=(Object.defineProperty(t,"__esModule",{value:!0}),t.ExcelExportGroupHeader=void 0,n=o(954).PureComponent,i(l,n),l);function l(){return null!==n&&n.apply(this,arguments)||this}t.ExcelExportGroupHeader=o},619:e=>{e.exports=o},527:e=>{e.exports=i},960:e=>{e.exports=l},895:e=>{e.exports=p},954:e=>{e.exports=a},274:e=>{e.exports=c}},n={};return function e(t){var o=n[t];return void 0!==o||(o=n[t]={exports:{}},r[t].call(o.exports,o,o.exports,e)),o.exports}(468)})())}}});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@progress/kendo-react-excel-export",
|
|
3
3
|
"description": "React Excel export helps you export and save data to Excel files and customize or filter the output. KendoReact Excel Export package",
|
|
4
|
-
"version": "5.10.0-dev.
|
|
4
|
+
"version": "5.10.0-dev.202301161904",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/telerik/kendo-react.git"
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"Excel export"
|
|
31
31
|
],
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@progress/kendo-licensing": "^1.0
|
|
33
|
+
"@progress/kendo-licensing": "^1.3.0",
|
|
34
34
|
"react": "^16.8.2 || ^17.0.0 || ^18.0.0",
|
|
35
35
|
"react-dom": "^16.8.2 || ^17.0.0 || ^18.0.0"
|
|
36
36
|
},
|
|
@@ -52,14 +52,14 @@
|
|
|
52
52
|
"@progress/kendo-data-query": "^1.2.0",
|
|
53
53
|
"@progress/kendo-date-math": "^1.4.1",
|
|
54
54
|
"@progress/kendo-drawing": "^1.17.2",
|
|
55
|
-
"@progress/kendo-licensing": "^1.0
|
|
56
|
-
"@progress/kendo-react-dateinputs": "5.10.0-dev.
|
|
57
|
-
"@progress/kendo-react-dropdowns": "5.10.0-dev.
|
|
58
|
-
"@progress/kendo-react-grid": "5.10.0-dev.
|
|
59
|
-
"@progress/kendo-react-indicators": "5.10.0-dev.
|
|
60
|
-
"@progress/kendo-react-inputs": "5.10.0-dev.
|
|
61
|
-
"@progress/kendo-react-intl": "5.10.0-dev.
|
|
62
|
-
"@progress/kendo-react-treelist": "5.10.0-dev.
|
|
55
|
+
"@progress/kendo-licensing": "^1.3.0",
|
|
56
|
+
"@progress/kendo-react-dateinputs": "5.10.0-dev.202301161904",
|
|
57
|
+
"@progress/kendo-react-dropdowns": "5.10.0-dev.202301161904",
|
|
58
|
+
"@progress/kendo-react-grid": "5.10.0-dev.202301161904",
|
|
59
|
+
"@progress/kendo-react-indicators": "5.10.0-dev.202301161904",
|
|
60
|
+
"@progress/kendo-react-inputs": "5.10.0-dev.202301161904",
|
|
61
|
+
"@progress/kendo-react-intl": "5.10.0-dev.202301161904",
|
|
62
|
+
"@progress/kendo-react-treelist": "5.10.0-dev.202301161904"
|
|
63
63
|
},
|
|
64
64
|
"sideEffects": false
|
|
65
65
|
}
|