file-viewer-demo/public/file-viewer3/assets/xlsx.worker-b50adc35.js

66 lines
1.1 MiB
JavaScript
Raw Normal View History

2023-04-24 06:36:37 +00:00
var bn=Object.defineProperty;var vn=(Ft,jt,Rt)=>jt in Ft?bn(Ft,jt,{enumerable:!0,configurable:!0,writable:!0,value:Rt}):Ft[jt]=Rt;var Pt=(Ft,jt,Rt)=>(vn(Ft,typeof jt!="symbol"?jt+"":jt,Rt),Rt);(function(){"use strict";function Ft(X,Z){Z=Z||{};var c=Z.pos||0,T=!!Z.keepComments,O=!!Z.keepWhitespace,y="<",p="<".charCodeAt(0),v=">",d=">".charCodeAt(0),m="-".charCodeAt(0),f="/".charCodeAt(0),h="!".charCodeAt(0),s="'".charCodeAt(0),i='"'.charCodeAt(0),e="[".charCodeAt(0),t="]".charCodeAt(0);function r(R){for(var A=[];X[c];)if(X.charCodeAt(c)==p){if(X.charCodeAt(c+1)===f){var j=c+2;c=X.indexOf(v,c);var P=X.substring(j,c);if(P.indexOf(R)==-1){var _=X.substring(0,c).split(`
`);throw new Error(`Unexpected close tag
Line: `+(_.length-1)+`
Column: `+(_[_.length-1].length+1)+`
Char: `+X[c])}return c+1&&(c+=1),A}else if(X.charCodeAt(c+1)===h){if(X.charCodeAt(c+2)==m){const M=c;for(;c!==-1&&!(X.charCodeAt(c)===d&&X.charCodeAt(c-1)==m&&X.charCodeAt(c-2)==m&&c!=-1);)c=X.indexOf(v,c+1);c===-1&&(c=X.length),T&&A.push(X.substring(M,c+1))}else if(X.charCodeAt(c+2)===e&&X.charCodeAt(c+8)===e&&X.substr(c+3,5).toLowerCase()==="cdata"){var S=X.indexOf("]]>",c);S==-1?(A.push(X.substr(c+9)),c=X.length):(A.push(X.substring(c+9,S)),c=S+3);continue}else{const M=c+1;c+=2;for(var g=!1;(X.charCodeAt(c)!==d||g===!0)&&X[c];)X.charCodeAt(c)===e?g=!0:g===!0&&X.charCodeAt(c)===t&&(g=!1),c++;A.push(X.substring(M,c))}c++;continue}var E=l();A.push(E),E.tagName[0]==="?"&&(A.push(...E.children),E.children=[])}else{var k=o();if(O)k.length>0&&A.push(k);else{var x=k.trim();x.length>0&&A.push(x)}c++}return A}function o(){var R=c;return c=X.indexOf(y,c)-1,c===-2&&(c=X.length),X.slice(R,c+1)}var n=`\r
>/= `;function a(){for(var R=c;n.indexOf(X[c])===-1&&X[c];)c++;return X.slice(R,c)}var u=Z.noChildNodes||["img","br","input","meta","link","hr"];function l(){c++;const R=a(),A={};let j=[];for(;X.charCodeAt(c)!==d&&X[c];){var P=X.charCodeAt(c);if(P>64&&P<91||P>96&&P<123){for(var _=a(),S=X.charCodeAt(c);S&&S!==s&&S!==i&&!(S>64&&S<91||S>96&&S<123)&&S!==d;)c++,S=X.charCodeAt(c);if(S===s||S===i){var g=b();if(c===-1)return{tagName:R,attributes:A,children:j}}else g=null,c--;A[_]=g}c++}if(X.charCodeAt(c-1)!==f)if(R=="script"){var E=c+1;c=X.indexOf("<\/script>",c),j=[X.slice(E,c)],c+=9}else if(R=="style"){var E=c+1;c=X.indexOf("</style>",c),j=[X.slice(E,c)],c+=8}else u.indexOf(R)===-1?(c++,j=r(R)):c++;else c++;return{tagName:R,attributes:A,children:j}}function b(){var R=X[c],A=c+1;return c=X.indexOf(R,A),X.slice(A,c)}function w(){var R=new RegExp("\\s"+Z.attrName+`\\s*=['"]`+Z.attrValue+`['"]`).exec(X);return R?R.index:-1}var C=null;if(Z.attrValue!==void 0){Z.attrName=Z.attrName||"id";for(var C=[];(c=w())!==-1;)c=X.lastIndexOf("<",c),c!==-1&&C.push(l()),X=X.substr(c),c=0}else Z.parseNode?C=l():C=r("");return Z.filter&&(C=Rt(C,Z.filter)),Z.simplify?jt(Array.isArray(C)?C:[C]):(Z.setPos&&(C.pos=c),C)}function jt(X){var Z={};if(!X.length)return"";if(X.length===1&&typeof X[0]=="string")return X[0];X.forEach(function(T){if(typeof T=="object"){Z[T.tagName]||(Z[T.tagName]=[]);var O=jt(T.children);Z[T.tagName].push(O),Object.keys(T.attributes).length&&typeof O!="string"&&(O._attributes=T.attributes)}});for(var c in Z)Z[c].length==1&&(Z[c]=Z[c][0]);return Z}function Rt(X,Z,c=0,T=""){var O=[];return X.forEach(function(y,p){if(typeof y=="object"&&Z(y,p,c,T)&&O.push(y),y.children){var v=Rt(y.children,Z,c+1,(T?T+".":"")+p+"."+y.tagName);O=O.concat(v)}}),O}function Wt(X){return Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Z){return typeof Z}:function(Z){return Z&&typeof Symbol=="function"&&Z.constructor===Symbol&&Z!==Symbol.prototype?"symbol":typeof Z},Wt(X)}var Or=/^\s+/,jr=/\s+$/;function De(X,Z){if(X=X||"",Z=Z||{},X instanceof De)return X;if(!(this instanceof De))return new De(X,Z);var c=Er(X);this._originalInput=X,this._r=c.r,this._g=c.g,this._b=c.b,this._a=c.a,this._roundA=Math.round(100*this._a)/100,this._format=Z.format||c.format,this._gradientType=Z.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=c.ok}De.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var Z=this.toRgb();return(Z.r*299+Z.g*587+Z.b*114)/1e3},getLuminance:function(){var Z=this.toRgb(),c,T,O,y,p,v;return c=Z.r/255,T=Z.g/255,O=Z.b/255,c<=.03928?y=c/12.92:y=Math.pow((c+.055)/1.055,2.4),T<=.03928?p=T/12.92:p=Math.pow((T+.055)/1.055,2.4),O<=.03928?v=O/12.92:v=Math.pow((O+.055)/1.055,2.4),.2126*y+.7152*p+.0722*v},setAlpha:function(Z){return this._a=dr(Z),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var Z=cr(this._r,this._g,this._b);return{h:Z.h*360,s:Z.s,v:Z.v,a:this._a}},toHsvString:function(){var Z=cr(this._r,this._g,this._b),c=Math.round(Z.h*360),T=Math.round(Z.s*100),O=Math.round(Z.v*100);return this._a==1?"hsv("+c+", "+T+"%, "+O+"%)":"hsva("+c+", "+T+"%, "+O+"%, "+this._roundA+")"},toHsl:function(){var Z=ur(this._r,this._g,this._b);return{h:Z.h*360,s:Z.s,l:Z.l,a:this._a}},toHslString:function(){var Z=ur(this._r,this._g,this._b),c=Math.round(Z.h*360),T=Math.round(Z.s*100),O=Math.round(Z.l*100);return this._a==1?"hsl("+c+", "+T+"%, "+O+"%)":"hsla("+c+", "+T+"%, "+O+"%, "+this._roundA+")"},toHex:function(Z){return fr(this._r,this._g,this._b,Z)},toHexString:function(Z){return"#"+this.toHex(Z)},toHex8:function(Z){return Mr(this._r,this._g,this._b,this._a,Z)},toHex8String:function(Z){return"#"+this.toHex8(Z)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(thi
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function m(b,w){(w==null||w>b.length)&&(w=b.length);for(var C=0,R=new Array(w);C<w;C++)R[C]=b[C];return R}function f(b,w){for(var C=0;C<w.length;C++){var R=w[C];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(b,R.key,R)}}var h=c("../utils/under-dash"),s=c("../utils/col-cache"),i=c("./range"),e=c("./row"),t=c("./column"),r=c("./enums"),o=c("./image"),n=c("./table"),a=c("./data-validations"),u=c("../utils/encryptor"),l=function(){function b(R){(function(A,j){if(!(A instanceof j))throw new TypeError("Cannot call a class as a function")})(this,b),R=R||{},this.id=R.id,this.orderNo=R.orderNo,this.name=R.name||"Sheet".concat(this.id),this.state=R.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this._workbook=R.workbook,this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},R.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!R.pageSetup||!R.pageSetup.fitToWidth&&!R.pageSetup.fitToHeight||R.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},R.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},R.headerFooter),this.dataValidations=new a,this.views=R.views||[],this.autoFilter=R.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}var w,C;return w=b,(C=[{key:"destroy",value:function(){this._workbook.removeWorksheetEx(this)}},{key:"getColumnKey",value:function(R){return this._keys[R]}},{key:"setColumnKey",value:function(R,A){this._keys[R]=A}},{key:"deleteColumnKey",value:function(R){delete this._keys[R]}},{key:"eachColumnKey",value:function(R){h.each(this._keys,R)}},{key:"getColumn",value:function(R){if(typeof R=="string"){var A=this._keys[R];if(A)return A;R=s.l2n(R)}if(this._columns||(this._columns=[]),R>this._columns.length)for(var j=this._columns.length+1;j<=R;)this._columns.push(new t(this,j++));return this._columns[R-1]}},{key:"spliceColumns",value:function(R,A){for(var j=this,P=this._rows,_=P.length,S=arguments.length,g=new Array(S>2?S-2:0),E=2;E<S;E++)g[E-2]=arguments[E];if(g.length>0)for(var k=function(V){var q=[R,A];g.forEach(function(L){q.push(L[V]||null)});var $=j.getRow(V+1);$.splice.apply($,q)},x=0;x<_;x++)k(x);else this._rows.forEach(function(V){V&&V.splice(R,A)});var M=g.length-A,D=R+A,B=this._columns.length;if(M<0)for(var F=R+g.length;F<=B;F++)this.getColumn(F).defn=this.getColumn(F-M).defn;else if(M>0)for(var U=B;U>=D;U--)this.getColumn(U+M).defn=this.getColumn(U).defn;for(var H=R;H<R+g.length;H++)this.getColumn(H).defn=null;this.workbook.definedNames.spliceColumns(this.name,R,A,g.length)}},{key:"_commitRow",value:function(){}},{key:"findRow",value:function(R){return this._rows[R-1]}},{key:"findRows",value:function(R,A){return this._rows.slice(R-1,R-1+A)}},{key:"getRow",value:function(R){var A=this._rows[R-1];return A||(A=this._rows[R-1]=new e(this,R)),A}},{key:"getRows",value:function(R,A){if(!(A<1)){for(var j=[],P=R;P<R+A;P++)j.push(this.getRow(P));return j}}},{key:"addRow",value:function(R){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",j=this._nextRow,P=this.getRow(j);return P.values=R,this._setStyleOption(j,A[0]==="i"?A:"n"),P}},{key:"addRows",value:function(R){var A=this,j=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",P=[];return R.forEach(function(_){P.push(A.addRow(_,j))}),P}},{key:"insertRow",value:function(R,A){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return t
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function p(h,s){(s==null||s>h.length)&&(s=h.length);for(var i=0,e=new Array(s);i<s;i++)e[i]=h[i];return e}function v(h,s){var i=Object.keys(h);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(h);s&&(e=e.filter(function(t){return Object.getOwnPropertyDescriptor(h,t).enumerable})),i.push.apply(i,e)}return i}function d(h,s,i){return s in h?Object.defineProperty(h,s,{value:i,enumerable:!0,configurable:!0,writable:!0}):h[s]=i,h}var m=/^[A-Z]+\d+$/,f={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:function(h){return h<=26?1:h<=676?2:3},_fill:function(h){var s,i,e,t,r,o=1;if(h>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&h>=1){for(;o<=26;)s=this._dictionary[o-1],this._n2l[o]=s,this._l2n[s]=o,o++;this._l2nFill=1}if(this._l2nFill<2&&h>=2){for(o=27;o<=702;)e=(i=o-27)%26,t=Math.floor(i/26),s=this._dictionary[t]+this._dictionary[e],this._n2l[o]=s,this._l2n[s]=o,o++;this._l2nFill=2}if(this._l2nFill<3&&h>=3){for(o=703;o<=16384;)e=(i=o-703)%26,t=Math.floor(i/26)%26,r=Math.floor(i/676),s=this._dictionary[r]+this._dictionary[t]+this._dictionary[e],this._n2l[o]=s,this._l2n[s]=o,o++;this._l2nFill=3}},l2n:function(h){if(this._l2n[h]||this._fill(h.length),!this._l2n[h])throw new Error("Out of bounds. Invalid column letter: ".concat(h));return this._l2n[h]},n2l:function(h){if(h<1||h>16384)throw new Error("".concat(h," is out of bounds. Excel supports columns from 1 to 16384"));return this._n2l[h]||this._fill(this._level(h)),this._n2l[h]},_hash:{},validateAddress:function(h){if(!m.test(h))throw new Error("Invalid Address: ".concat(h));return!0},decodeAddress:function(h){var s=h.length<5&&this._hash[h];if(s)return s;for(var i,e=!1,t="",r=0,o=!1,n="",a=0,u=0;u<h.length;u++)if(i=h.charCodeAt(u),!o&&i>=65&&i<=90)e=!0,t+=h[u],r=26*r+i-64;else if(i>=48&&i<=57)o=!0,n+=h[u],a=10*a+i-48;else if(o&&e&&i!==36)break;if(e){if(r>16384)throw new Error("Out of bounds. Invalid column letter: ".concat(t))}else r=void 0;o||(a=void 0);var l={address:h=t+n,col:r,row:a,$col$row:"$".concat(t,"$").concat(n)};return r<=100&&a<=100&&(this._hash[h]=l,this._hash[l.$col$row]=l),l},getAddress:function(h,s){if(s){var i=this.n2l(s)+h;return this.decodeAddress(i)}return this.decodeAddress(h)},decode:function(h){var s=h.split(":");if(s.length===2){var i=this.decodeAddress(s[0]),e=this.decodeAddress(s[1]),t={top:Math.min(i.row,e.row),left:Math.min(i.col,e.col),bottom:Math.max(i.row,e.row),right:Math.max(i.col,e.col)};return t.tl=this.n2l(t.left)+t.top,t.br=this.n2l(t.right)+t.bottom,t.dimensions="".concat(t.tl,":").concat(t.br),t}return this.decodeAddress(h)},decodeEx:function(h){var s=h.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),i=s[1]||s[2],e=s[3],t=e.split(":");if(t.length>1){var r=this.decodeAddress(t[0]),o=this.decodeAddress(t[1]),n=Math.min(r.row,o.row),a=Math.min(r.col,o.col),u=Math.max(r.row,o.row),l=Math.max(r.col,o.col);return r=this.n2l(a)+n,o=this.n2l(l)+u,{top:n,left:a,bottom:u,right:l,sheetName:i,tl:{address:r,col:a,row:n,$col$row:"$".concat(this.n2l(a),"$").concat(n),sheetName:i},br:{address:o,col:l,row:u,$col$row:"$".concat(this.n2l(l),"$").concat(u),sheetName:i},dimensions:"".concat(r,":").concat(o)}}if(e.startsWith("#"))return i?{sheetName:i,error:e}:{error:e};var b=this.decodeAddress(e);return i?function(w){for(var C=1;C<arguments.length;C++){var R=arguments[C]!=null?arguments[C]:{};C%2?v(Object(R),!0).forEach(function(A){d(w,A,R[A])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(R)):v(Object(R)).forEach(function(A){Object.defineProperty(w,A,Object.getOwnPropertyDescriptor(R,A))})}return w}({sheetName:i},b):b},encodeAddress:function(h,s){return f.n2l(s)+h},encode:function(){switch(arguments.length){case 2:return f.encodeAddress(arguments[0],arguments[1]);case 4:return"".concat(f.encodeAddress(arguments[0],arguments[1]),":").concat(f.encodeAdd
`)}},{key:"openNode",value:function(e,t){var r=this.tos,o=this._xml;r&&this.open&&o.push(">"),this._stack.push(e),o.push("<"),o.push(e),m(o,t),this.leaf=!0,this.open=!0}},{key:"addAttribute",value:function(e,t){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");t!==void 0&&d(this._xml,e,t)}},{key:"addAttributes",value:function(e){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");m(this._xml,e)}},{key:"writeText",value:function(e){var t=this._xml;this.open&&(t.push(">"),this.open=!1),this.leaf=!1,t.push(v.xmlEncode(e.toString()))}},{key:"writeXml",value:function(e){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(e)}},{key:"closeNode",value:function(){var e=this._stack.pop(),t=this._xml;this.leaf?t.push("/>"):(t.push("</"),t.push(e),t.push(">")),this.open=!1,this.leaf=!1}},{key:"leafNode",value:function(e,t,r){this.openNode(e,t),r!==void 0&&this.writeText(r),this.closeNode()}},{key:"closeAll",value:function(){for(;this._stack.length;)this.closeNode()}},{key:"addRollback",value:function(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}},{key:"commit",value:function(){this._rollbacks.pop()}},{key:"rollback",value:function(){var e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open}},{key:"tos",get:function(){return this._stack.length?this._stack[this._stack.length-1]:void 0}},{key:"cursor",get:function(){return this._xml.length}},{key:"xml",get:function(){return this.closeAll(),this._xml.join("")}}])&&y(s.prototype,i),h}();f.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},T.exports=f},{"./under-dash":25,"./utils":26}],28:[function(c,T,O){(function(y){function p(n){return(p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(a){return typeof a}:function(a){return a&&typeof Symbol=="function"&&a.constructor===Symbol&&a!==Symbol.prototype?"symbol":typeof a})(n)}function v(n,a,u,l,b,w,C){try{var R=n[w](C),A=R.value}catch(j){return void u(j)}R.done?a(A):Promise.resolve(A).then(l,b)}function d(n,a){for(var u=0;u<a.length;u++){var l=a[u];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(n,l.key,l)}}function m(n,a){return(m=Object.setPrototypeOf||function(u,l){return u.__proto__=l,u})(n,a)}function f(n){var a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var u,l=s(n);if(a){var b=s(this).constructor;u=Reflect.construct(l,arguments,b)}else u=l.apply(this,arguments);return h(this,u)}}function h(n,a){return!a||p(a)!=="object"&&typeof a!="function"?function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}(n):a}function s(n){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(n)}var i=c("events"),e=c("jszip"),t=c("./stream-buf"),r=c("./browser-buffer-encode").stringToBuffer,o=function(n){(function(R,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");R.prototype=Object.create(A&&A.prototype,{constructor:{value:R,writable:!0,configurable:!0}}),A&&m(R,A)})(C,n);var a,u,l,b,w=f(C);function C(R){var A;return function(j,P){if(!(j instanceof P))throw new TypeError("Cannot call a class as a function")}(this,C),(A=w.call(this)).options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},R),A.zip=new e,A.stream=new t,A}return a=C,(u=[{key:"append",value:function(R,A){A.hasOwnProperty("base64")&&A.base64?this.zip.file(A.name,R,{base64:!0}):(y.browser&&typeof R=="string"&&(R=r(R)),this.zip.file(A.name,R))}},{key:"finalize",value:(l=regeneratorRuntime.mark(function R(){var
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,u=!0,l=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var b=r.next();return u=b.done,b},e:function(b){l=!0,a=b},f:function(){try{u||r.return==null||r.return()}finally{if(l)throw a}}}}function p(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function v(e,t,r,o,n,a,u){try{var l=e[a](u),b=l.value}catch(w){return void r(w)}l.done?t(b):Promise.resolve(b).then(o,n)}function d(e){return function(){var t=this,r=arguments;return new Promise(function(o,n){var a=e.apply(t,r);function u(b){v(a,o,n,u,l,"next",b)}function l(b){v(a,o,n,u,l,"throw",b)}u(void 0)})}}function m(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e){var t;if(typeof Symbol<"u"&&(Symbol.asyncIterator&&(t=e[Symbol.asyncIterator])!=null||Symbol.iterator&&(t=e[Symbol.iterator])!=null))return t.call(e);throw new TypeError("Object is not async iterable")}var h=c("../../utils/parse-sax"),s=c("../../utils/xml-stream"),i=function(){function e(){(function(u,l){if(!(u instanceof l))throw new TypeError("Cannot call a class as a function")})(this,e)}var t,r,o,n,a;return t=e,r=[{key:"prepare",value:function(){}},{key:"render",value:function(){}},{key:"parseOpen",value:function(u){}},{key:"parseText",value:function(u){}},{key:"parseClose",value:function(u){}},{key:"reconcile",value:function(u,l){}},{key:"reset",value:function(){this.model=null,this.map&&Object.values(this.map).forEach(function(u){u instanceof e?u.reset():u.xform&&u.xform.reset()})}},{key:"mergeModel",value:function(u){this.model=Object.assign(this.model||{},u)}},{key:"parse",value:(a=d(regeneratorRuntime.mark(function u(l){var b,w,C,R,A,j,P,_,S,g,E;return regeneratorRuntime.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:b=!0,w=!1,k.prev=2,R=f(l);case 4:return k.next=6,R.next();case 6:return A=k.sent,b=A.done,k.next=10,A.value;case 10:if(j=k.sent,b){k.next=42;break}P=y(j),k.prev=14,P.s();case 16:if((_=P.n()).done){k.next=31;break}if(S=_.value,g=S.eventType,E=S.value,g!=="opentag"){k.next=22;break}this.parseOpen(E),k.next=29;break;case 22:if(g!=="text"){k.next=26;break}this.parseText(E),k.next=29;break;case 26:if(g!=="closetag"){k.next=29;break}if(this.parseClose(E.name)){k.next=29;break}return k.abrupt("return",this.model);case 29:k.next=16;break;case 31:k.next=36;break;case 33:k.prev=33,k.t0=k.catch(14),P.e(k.t0);case 36:return k.prev=36,P.f(),k.finish(36);case 39:b=!0,k.next=4;break;case 42:k.next=48;break;case 44:k.prev=44,k.t1=k.catch(2),w=!0,C=k.t1;case 48:if(k.prev=48,k.prev=49,b||R.return==null){k.next=53;break}return k.next=53,R.return();case 53:if(k.prev=53,!w){k.next=56;break}throw C;case 56:return k.finish(53);case 57:return k.finish(48);case 58:return k.abrupt("return",this.model);case 59:case"end":return k.stop()}},u,this,[[2,44,48,58],[14,33,36,39],[49,,53,57]])})),function(u){return a.apply(this,arguments)})},{key:"parseStream",value:(n=d(regeneratorRuntime.mark(function u(l){return regeneratorRuntime.wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.abrupt("return",this.parse(h(l)));case 1:case"end":return b.stop()}},u,this)})),function(u){return n.apply(this,arguments)})},{key:"toXml",value:function(u){var l=new s;return this.render(l,u),l.xml}},{key:"xml",get:function(){return this.toXml(this.model)}}],o=[{key:"toAttribute",value:function(u,l){var b=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(u===void 0){if(b)return l}else if(b||u!==l)return u.toString()}},{key:"toStringAttribute",value:function(u,l){var b=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return e.toAttribute(u,l,b)}},{key:"toStringValue",value:function(u,l){return u===void 0?l:u}},{key:"toBoolAttribute",value:function(u,l){var b=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(u===void 0){if(b)return l}else if(b||u!==l)return u?"1":"0"}},{key:"toBoolValue",value:function(u,l){return u===void 0?l:u==="1"}},{key:"
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function v(n,a){(a==null||a>n.length)&&(a=n.length);for(var u=0,l=new Array(a);u<a;u++)l[u]=n[u];return l}function d(n,a){for(var u=0;u<a.length;u++){var l=a[u];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(n,l.key,l)}}function m(n,a){return(m=Object.setPrototypeOf||function(u,l){return u.__proto__=l,u})(n,a)}function f(n){var a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var u,l=s(n);if(a){var b=s(this).constructor;u=Reflect.construct(l,arguments,b)}else u=l.apply(this,arguments);return h(this,u)}}function h(n,a){return!a||y(a)!=="object"&&typeof a!="function"?function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}(n):a}function s(n){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(n)}var i=c("../../base-xform"),e=c("../../composite-xform"),t=c("../../style/color-xform"),r=c("./cfvo-ext-xform"),o=function(n){(function(C,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");C.prototype=Object.create(R&&R.prototype,{constructor:{value:C,writable:!0,configurable:!0}}),R&&m(C,R)})(w,n);var a,u,l,b=f(w);function w(){var C;return function(R,A){if(!(R instanceof A))throw new TypeError("Cannot call a class as a function")}(this,w),(C=b.call(this)).map={"x14:cfvo":C.cfvoXform=new r,"x14:borderColor":C.borderColorXform=new t("x14:borderColor"),"x14:negativeBorderColor":C.negativeBorderColorXform=new t("x14:negativeBorderColor"),"x14:negativeFillColor":C.negativeFillColorXform=new t("x14:negativeFillColor"),"x14:axisColor":C.axisColorXform=new t("x14:axisColor")},C}return a=w,l=[{key:"isExt",value:function(C){return!C.gradient}}],(u=[{key:"render",value:function(C,R){var A=this;C.openNode(this.tag,{minLength:i.toIntAttribute(R.minLength,0,!0),maxLength:i.toIntAttribute(R.maxLength,100,!0),border:i.toBoolAttribute(R.border,!1),gradient:i.toBoolAttribute(R.gradient,!0),negativeBarColorSameAsPositive:i.toBoolAttribute(R.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:i.toBoolAttribute(R.negativeBarBorderColorSameAsPositive,!0),axisPosition:i.toAttribute(R.axisPosition,"auto"),direction:i.toAttribute(R.direction,"leftToRight")}),R.cfvo.forEach(function(j){A.cfvoXform.render(C,j)}),this.borderColorXform.render(C,R.borderColor),this.negativeBorderColorXform.render(C,R.negativeBorderColor),this.negativeFillColorXform.render(C,R.negativeFillColor),this.axisColorXform.render(C,R.axisColor),C.closeNode()}},{key:"createNewModel",value:function(C){var R=C.attributes;return{cfvo:[],minLength:i.toIntValue(R.minLength,0),maxLength:i.toIntValue(R.maxLength,100),border:i.toBoolValue(R.border,!1),gradient:i.toBoolValue(R.gradient,!0),negativeBarColorSameAsPositive:i.toBoolValue(R.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:i.toBoolValue(R.negativeBarBorderColorSameAsPositive,!0),axisPosition:i.toStringValue(R.axisPosition,"auto"),direction:i.toStringValue(R.direction,"leftToRight")}}},{key:"onParserClose",value:function(C,R){var A=p(C.split(":"),2)[1];switch(A){case"cfvo":this.model.cfvo.push(R.model);break;default:this.model[A]=R.model}}},{key:"tag",get:function(){return"x14:dataBar"}}])&&d(a.prototype,u),l&&d(a,l),w}(e);T.exports=o},{"../../base-xform":31,"../../composite-xform":47,"../../style/color-xform":127,"./cfvo-ext-xform":75}],79:[function(c,T,O){function y(i){return(y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(i)}function p(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}functi
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function v(n,a){(a==null||a>n.length)&&(a=n.length);for(var u=0,l=new Array(a);u<a;u++)l[u]=n[u];return l}function d(n,a){for(var u=0;u<a.length;u++){var l=a[u];l.enumerable=l.enumerable||!1,l.configurable=!0,"value"in l&&(l.writable=!0),Object.defineProperty(n,l.key,l)}}function m(n,a){return(m=Object.setPrototypeOf||function(u,l){return u.__proto__=l,u})(n,a)}function f(n){var a=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var u,l=s(n);if(a){var b=s(this).constructor;u=Reflect.construct(l,arguments,b)}else u=l.apply(this,arguments);return h(this,u)}}function h(n,a){return!a||y(a)!=="object"&&typeof a!="function"?function(u){if(u===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return u}(n):a}function s(n){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(a){return a.__proto__||Object.getPrototypeOf(a)})(n)}var i=c("../../base-xform"),e=c("../../composite-xform"),t=c("./cfvo-ext-xform"),r=c("./cf-icon-ext-xform"),o=function(n){(function(w,C){if(typeof C!="function"&&C!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(C&&C.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),C&&m(w,C)})(b,n);var a,u,l=f(b);function b(){var w;return function(C,R){if(!(C instanceof R))throw new TypeError("Cannot call a class as a function")}(this,b),(w=l.call(this)).map={"x14:cfvo":w.cfvoXform=new t,"x14:cfIcon":w.cfIconXform=new r},w}return a=b,(u=[{key:"render",value:function(w,C){var R=this;w.openNode(this.tag,{iconSet:i.toStringAttribute(C.iconSet),reverse:i.toBoolAttribute(C.reverse,!1),showValue:i.toBoolAttribute(C.showValue,!0),custom:i.toBoolAttribute(C.icons,!1)}),C.cfvo.forEach(function(A){R.cfvoXform.render(w,A)}),C.icons&&C.icons.forEach(function(A,j){A.iconId=j,R.cfIconXform.render(w,A)}),w.closeNode()}},{key:"createNewModel",value:function(w){var C=w.attributes;return{cfvo:[],iconSet:i.toStringValue(C.iconSet,"3TrafficLights"),reverse:i.toBoolValue(C.reverse,!1),showValue:i.toBoolValue(C.showValue,!0)}}},{key:"onParserClose",value:function(w,C){var R=p(w.split(":"),2)[1];switch(R){case"cfvo":this.model.cfvo.push(C.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(C.model);break;default:this.model[R]=C.model}}},{key:"tag",get:function(){return"x14:iconSet"}}])&&d(a.prototype,u),b}(e);T.exports=o},{"../../base-xform":31,"../../composite-xform":47,"./cf-icon-ext-xform":73,"./cfvo-ext-xform":75}],81:[function(c,T,O){function y(i){return(y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(i)}function p(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function v(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,r.key,r)}}function d(i,e){return(d=Object.setPrototypeOf||function(t,r){return t.__proto__=r,t})(i,e)}function m(i){var e=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var t,r=h(i);if(e){var o=h(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return f(this,t)}}function f(i,e){return!e||y(e)!=="object"&&typeof e!="function"?function(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(i):e}function h(i){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(i)}va
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function v(r,o){(o==null||o>r.length)&&(o=r.length);for(var n=0,a=new Array(o);n<o;n++)a[n]=r[n];return a}function d(r,o){for(var n=0;n<o.length;n++){var a=o[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(r,a.key,a)}}function m(r,o){return(m=Object.setPrototypeOf||function(n,a){return n.__proto__=a,n})(r,o)}function f(r){var o=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var n,a=s(r);if(o){var u=s(this).constructor;n=Reflect.construct(a,arguments,u)}else n=a.apply(this,arguments);return h(this,n)}}function h(r,o){return!o||y(o)!=="object"&&typeof o!="function"?function(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}(r):o}function s(r){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(o){return o.__proto__||Object.getPrototypeOf(o)})(r)}var i=c("../../base-xform"),e=c("./conditional-formatting-xform"),t=function(r){(function(l,b){if(typeof b!="function"&&b!==null)throw new TypeError("Super expression must either be null or a function");l.prototype=Object.create(b&&b.prototype,{constructor:{value:l,writable:!0,configurable:!0}}),b&&m(l,b)})(u,r);var o,n,a=f(u);function u(){var l;return function(b,w){if(!(b instanceof w))throw new TypeError("Cannot call a class as a function")}(this,u),(l=a.call(this)).cfXform=new e,l}return o=u,(n=[{key:"reset",value:function(){this.model=[]}},{key:"prepare",value:function(l,b){var w=l.reduce(function(C,R){return Math.max.apply(Math,[C].concat(p(R.rules.map(function(A){return A.priority||0}))))},1);l.forEach(function(C){C.rules.forEach(function(R){R.priority||(R.priority=w++),R.style&&(R.dxfId=b.styles.addDxfStyle(R.style))})})}},{key:"render",value:function(l,b){var w=this;b.forEach(function(C){w.cfXform.render(l,C)})}},{key:"parseOpen",value:function(l){if(this.parser)return this.parser.parseOpen(l),!0;switch(l.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(l),!0;default:return!1}}},{key:"parseText",value:function(l){this.parser&&this.parser.parseText(l)}},{key:"parseClose",value:function(l){return!(!this.parser||!this.parser.parseClose(l)&&(this.model.push(this.parser.model),this.parser=void 0,1))}},{key:"reconcile",value:function(l,b){l.forEach(function(w){w.rules.forEach(function(C){C.dxfId!==void 0&&(C.style=b.styles.getDxfStyle(C.dxfId),delete C.dxfId)})})}},{key:"tag",get:function(){return"conditionalFormatting"}}])&&d(o.prototype,n),u}(i);T.exports=t},{"../../base-xform":31,"./conditional-formatting-xform":85}],87:[function(c,T,O){function y(t){return(y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r})(t)}function p(t,r){for(var o=0;o<r.length;o++){var n=r[o];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function v(t,r){return(v=Object.setPrototypeOf||function(o,n){return o.__proto__=n,o})(t,r)}function d(t){var r=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var o,n=f(t);if(r){var a=f(this).constructor;o=Reflect.construct(n,arguments,a)}else o=n.apply(this,arguments);return m(this,o)}}function m(t,r){return!r||y(r)!=="object"&&typeof r!="function"?function(o){if(o===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o}(t):r}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(t)}var h=c("../../compos
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface=" "/> <a:font script="Hang" typeface=" "/> <a:font script="Hans" typeface=""/> <a:font script="Hant" typeface=""/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface=" "/> <a:font script="Hang" typeface=" "/> <a:font script="Hans" typeface=""/> <a:font script="Hant" typeface=""/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"
`,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,d||{}),(d==null?void 0:d.quoteHeaders)===void 0&&(this.quoteHeaders=this.quoteColumns),(d==null?void 0:d.quote)===!0?this.quote='"':(d==null?void 0:d.quote)===!1&&(this.quote=""),typeof(d==null?void 0:d.escape)!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((v=d.writeHeaders)===null||v===void 0||v),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote="".concat(this.escape).concat(this.quote)}},{}],145:[function(c,T,O){function y(h,s){for(var i=0;i<s.length;i++){var e=s[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(h,e.key,e)}}var p=function(h){return h&&h.__esModule?h:{default:h}};Object.defineProperty(O,"__esModule",{value:!0}),O.FieldFormatter=void 0;var v=p(c("lodash.isboolean")),d=p(c("lodash.isnil")),m=p(c("lodash.escaperegexp")),f=function(){function h(e){(function(r,o){if(!(r instanceof o))throw new TypeError("Cannot call a class as a function")})(this,h),this._headers=null,this.formatterOptions=e,e.headers!==null&&(this.headers=e.headers),this.REPLACE_REGEXP=new RegExp(e.quote,"g");var t="[".concat(e.delimiter).concat(m.default(e.rowDelimiter),`|\r|
']`);this.ESCAPE_REGEXP=new RegExp(t)}var s,i;return s=h,(i=[{key:"shouldQuote",value:function(e,t){var r=t?this.formatterOptions.quoteHeaders:this.formatterOptions.quoteColumns;return v.default(r)?r:Array.isArray(r)?r[e]:this._headers!==null&&r[this._headers[e]]}},{key:"format",value:function(e,t,r){var o="".concat(d.default(e)?"":e).replace(/\0/g,""),n=this.formatterOptions;return n.quote!==""&&o.indexOf(n.quote)!==-1?this.quoteField(o.replace(this.REPLACE_REGEXP,n.escapedQuote)):o.search(this.ESCAPE_REGEXP)!==-1||this.shouldQuote(t,r)?this.quoteField(o):o}},{key:"quoteField",value:function(e){var t=this.formatterOptions.quote;return"".concat(t).concat(e).concat(t)}},{key:"headers",set:function(e){this._headers=e}}])&&y(s.prototype,i),h}();O.FieldFormatter=f},{"lodash.escaperegexp":426,"lodash.isboolean":428,"lodash.isnil":431}],146:[function(c,T,O){function y(s,i){for(var e=0;e<i.length;e++){var t=i[e];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(s,t.key,t)}}var p=function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(O,"__esModule",{value:!0}),O.RowFormatter=void 0;var v=p(c("lodash.isfunction")),d=p(c("lodash.isequal")),m=c("./FieldFormatter"),f=c("../types"),h=function(){function s(r){(function(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")})(this,s),this.rowCount=0,this.formatterOptions=r,this.fieldFormatter=new m.FieldFormatter(r),this.headers=r.headers,this.shouldWriteHeaders=r.shouldWriteHeaders,this.hasWrittenHeaders=!1,this.headers!==null&&(this.fieldFormatter.headers=this.headers),r.transform&&(this.rowTransform=r.transform)}var i,e,t;return i=s,t=[{key:"isHashArray",value:function(r){return!!Array.isArray(r)&&Array.isArray(r[0])&&r[0].length===2}},{key:"gatherHeaders",value:function(r){return s.isHashArray(r)?r.map(function(o){return o[0]}):Array.isArray(r)?r:Object.keys(r)}},{key:"createTransform",value:function(r){return f.isSyncTransform(r)?function(o,n){var a=null;try{a=r(o)}catch(u){return n(u)}return n(null,a)}:function(o,n){r(o,n)}}}],(e=[{key:"format",value:function(r,o){var n=this;this.callTransformer(r,function(a,u){if(a)return o(a);if(!r)return o(null);var l=[];if(u){var b=n.checkHeaders(u),w=b.shouldFormatColumns,C=b.headers;if(n.shouldWriteHeaders&&C&&!n.hasWrittenHeaders&&(l.push(n.formatColumns(C,!0)),n.hasWrittenHeaders=!0),w){var R=n.gatherColumns(u);l.push(n.formatColumns(R,!1))}}return o(null,l)})}},{key:"finish",value:function(r){var o=[];if(this.formatterOptions.alwaysWriteHeaders&&this.rowCount===0){if(!this.headers)return r(new Error("`alwaysWriteHeaders` option is set to true but `headers` option not provided."));o.push(this.formatColumns(this.headers,!0))}return this.formatterOptions.includeEndRowDelimiter&&o.push(this.formatterOptions.rowDelimiter),r(null,o)}},{key:"checkHeaders",value:function(r){if(this.headers)return{shouldFormatColumns:!0,headers:this.headers};var o=s.gatherHeaders(r);return this.headers=o,this.fieldFormatter.headers=o,this.shouldWriteHeaders?{shouldFormatColumns:!d.default(o,r),headers:o}:{shouldFormatColumns:!0,headers:null}}},{key:"gatherColumns",value:function(r){if(this.headers===null)throw new Error("Headers is currently null");return Array.isArray(r)?s.isHashArray(r)?this.headers.map(function(o,n){var a=r[n];return a?a[1]:""}):this.headers.map(function(o,n){return r[n]}):this.headers.map(function(o){return r[o]})}},{key:"callTransformer",value:function(r,o){return this._rowTransform?this._rowTransform(r,o):o(null,r)}},{key:"formatColumns",value:function(r,o){var n=this,a=r.map(function(l,b){return n.fieldFormatter.format(l,b,o)}).join(this.formatterOptions.delimiter),u=this.rowCount;return this.rowCount+=1,u?[this.formatterOptions.rowDelimiter,a].join(""):a}},{key:"rowTransform",set:function(r){if(!v.default(r))throw new TypeError("The transform should be a function");this._rowTransform=s.createTransform(r)}}])&&y(i.prototype,e),t&&y(i,t),s}();O.RowFormatter=h},{"../types":149,"./FieldFormatter":145,"lodash.isequal":429,"lodash.isfunction":430}],14
`||s===`\r
`}},{key:"isTokenCarriageReturn",value:function(h,s){return h.token===s.carriageReturn}},{key:"isTokenComment",value:function(h,s){return s.supportsComments&&!!h&&h.token===s.comment}},{key:"isTokenEscapeCharacter",value:function(h,s){return h.token===s.escapeChar}},{key:"isTokenQuote",value:function(h,s){return h.token===s.quote}},{key:"isTokenDelimiter",value:function(h,s){return h.token===s.delimiter}}],(m=null)&&y(d.prototype,m),f&&y(d,f),v}();O.Token=p},{}],157:[function(c,T,O){Object.defineProperty(O,"__esModule",{value:!0}),O.ColumnFormatter=void 0,O.ColumnFormatter=function y(p){(function(v,d){if(!(v instanceof d))throw new TypeError("Cannot call a class as a function")})(this,y),p.trim?this.format=function(v){return v.trim()}:p.ltrim?this.format=function(v){return v.trimLeft()}:p.rtrim?this.format=function(v){return v.trimRight()}:this.format=function(v){return v}}},{}],158:[function(c,T,O){function y(f,h){for(var s=0;s<h.length;s++){var i=h[s];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(f,i.key,i)}}Object.defineProperty(O,"__esModule",{value:!0}),O.ColumnParser=void 0;var p=c("./NonQuotedColumnParser"),v=c("./QuotedColumnParser"),d=c("../Token"),m=function(){function f(i){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,f),this.parserOptions=i,this.quotedColumnParser=new v.QuotedColumnParser(i),this.nonQuotedColumnParser=new p.NonQuotedColumnParser(i)}var h,s;return h=f,(s=[{key:"parse",value:function(i){var e=i.nextNonSpaceToken;return e!==null&&d.Token.isTokenQuote(e,this.parserOptions)?(i.advanceToToken(e),this.quotedColumnParser.parse(i)):this.nonQuotedColumnParser.parse(i)}}])&&y(h.prototype,s),f}();O.ColumnParser=m},{"../Token":156,"./NonQuotedColumnParser":159,"./QuotedColumnParser":160}],159:[function(c,T,O){function y(h,s){for(var i=0;i<s.length;i++){var e=s[i];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(h,e.key,e)}}Object.defineProperty(O,"__esModule",{value:!0}),O.NonQuotedColumnParser=void 0;var p=c("./ColumnFormatter"),v=c("../Token").Token,d=v.isTokenDelimiter,m=v.isTokenRowDelimiter,f=function(){function h(e){(function(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")})(this,h),this.parserOptions=e,this.columnFormatter=new p.ColumnFormatter(e)}var s,i;return s=h,(i=[{key:"parse",value:function(e){if(!e.hasMoreCharacters)return null;for(var t=this.parserOptions,r=[],o=e.nextCharacterToken;o&&!d(o,t)&&!m(o);o=e.nextCharacterToken)r.push(o.token),e.advancePastToken(o);return this.columnFormatter.format(r.join(""))}}])&&y(s.prototype,i),h}();O.NonQuotedColumnParser=f},{"../Token":156,"./ColumnFormatter":157}],160:[function(c,T,O){function y(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,r.key,r)}}Object.defineProperty(O,"__esModule",{value:!0}),O.QuotedColumnParser=void 0;var p=c("./ColumnFormatter"),v=c("../Token").Token,d=v.isTokenDelimiter,m=v.isTokenRowDelimiter,f=v.isTokenEscapeCharacter,h=v.isTokenQuote,s=function(){function i(r){(function(o,n){if(!(o instanceof n))throw new TypeError("Cannot call a class as a function")})(this,i),this.parserOptions=r,this.columnFormatter=new p.ColumnFormatter(r)}var e,t;return e=i,(t=[{key:"parse",value:function(r){if(!r.hasMoreCharacters)return null;var o=r.cursor,n=this.gatherDataBetweenQuotes(r),a=n.foundClosingQuote,u=n.col;if(!a){if(r.advanceTo(o),!r.hasMoreData)throw new Error("Parse Error: missing closing: '".concat(this.parserOptions.quote||"","' in line: at '").concat(r.lineFromCursor.replace(/[\r\n]/g,"\\n'"),"'"));return null}return this.checkForMalformedColumn(r),u}},{key:"gatherDataBetweenQuotes",value:function(r){for(var o=this.parserOptions,n=!1,a=!1,u=[],l=r.nextCharacterToken;!a&&l!==null;l=r.nextCharacterToken){var b=h(l,o);if(!n&&b)n=!0;else if(n)if(f(l,o)){r.advancePastToken(l);var w=r.nextCharacterToken;w!==null&&(h(w,o)||f(w,o))?(u.push(w.token),l=w):
`)}},{"./der":178,inherits:387}],181:[function(c,T,O){function y(p){return(y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v})(p)}(function(p,v){function d(_,S){if(!_)throw new Error(S||"Assertion failed")}function m(_,S){_.super_=S;var g=function(){};g.prototype=S.prototype,_.prototype=new g,_.prototype.constructor=_}function f(_,S,g){if(f.isBN(_))return _;this.negative=0,this.words=null,this.length=0,this.red=null,_!==null&&(S!=="le"&&S!=="be"||(g=S,S=10),this._init(_||0,S||10,g||"be"))}var h;y(p)==="object"?p.exports=f:(void 0).BN=f,f.BN=f,f.wordSize=26;try{h=c("buffer").Buffer}catch{}function s(_,S,g){for(var E=0,k=Math.min(_.length,g),x=S;x<k;x++){var M=_.charCodeAt(x)-48;E<<=4,E|=M>=49&&M<=54?M-49+10:M>=17&&M<=22?M-17+10:15&M}return E}function i(_,S,g,E){for(var k=0,x=Math.min(_.length,g),M=S;M<x;M++){var D=_.charCodeAt(M)-48;k*=E,k+=D>=49?D-49+10:D>=17?D-17+10:D}return k}f.isBN=function(_){return _ instanceof f||_!==null&&y(_)==="object"&&_.constructor.wordSize===f.wordSize&&Array.isArray(_.words)},f.max=function(_,S){return _.cmp(S)>0?_:S},f.min=function(_,S){return _.cmp(S)<0?_:S},f.prototype._init=function(_,S,g){if(typeof _=="number")return this._initNumber(_,S,g);if(y(_)==="object")return this._initArray(_,S,g);S==="hex"&&(S=16),d(S===(0|S)&&S>=2&&S<=36);var E=0;(_=_.toString().replace(/\s+/g,""))[0]==="-"&&E++,S===16?this._parseHex(_,E):this._parseBase(_,S,E),_[0]==="-"&&(this.negative=1),this.strip(),g==="le"&&this._initArray(this.toArray(),S,g)},f.prototype._initNumber=function(_,S,g){_<0&&(this.negative=1,_=-_),_<67108864?(this.words=[67108863&_],this.length=1):_<4503599627370496?(this.words=[67108863&_,_/67108864&67108863],this.length=2):(d(_<9007199254740992),this.words=[67108863&_,_/67108864&67108863,1],this.length=3),g==="le"&&this._initArray(this.toArray(),S,g)},f.prototype._initArray=function(_,S,g){if(d(typeof _.length=="number"),_.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(_.length/3),this.words=new Array(this.length);for(var E=0;E<this.length;E++)this.words[E]=0;var k,x,M=0;if(g==="be")for(E=_.length-1,k=0;E>=0;E-=3)x=_[E]|_[E-1]<<8|_[E-2]<<16,this.words[k]|=x<<M&67108863,this.words[k+1]=x>>>26-M&67108863,(M+=24)>=26&&(M-=26,k++);else if(g==="le")for(E=0,k=0;E<_.length;E+=3)x=_[E]|_[E+1]<<8|_[E+2]<<16,this.words[k]|=x<<M&67108863,this.words[k+1]=x>>>26-M&67108863,(M+=24)>=26&&(M-=26,k++);return this.strip()},f.prototype._parseHex=function(_,S){this.length=Math.ceil((_.length-S)/6),this.words=new Array(this.length);for(var g=0;g<this.length;g++)this.words[g]=0;var E,k,x=0;for(g=_.length-6,E=0;g>=S;g-=6)k=s(_,g,g+6),this.words[E]|=k<<x&67108863,this.words[E+1]|=k>>>26-x&4194303,(x+=24)>=26&&(x-=26,E++);g+6!==S&&(k=s(_,S,g+6),this.words[E]|=k<<x&67108863,this.words[E+1]|=k>>>26-x&4194303),this.strip()},f.prototype._parseBase=function(_,S,g){this.words=[0],this.length=1;for(var E=0,k=1;k<=67108863;k*=S)E++;E--,k=k/S|0;for(var x=_.length-g,M=x%E,D=Math.min(x,x-M)+g,B=0,F=g;F<D;F+=E)B=i(_,F,F+E,S),this.imuln(k),this.words[0]+B<67108864?this.words[0]+=B:this._iaddn(B);if(M!==0){var U=1;for(B=i(_,F,_.length,S),F=0;F<M;F++)U*=S;this.imuln(U),this.words[0]+B<67108864?this.words[0]+=B:this._iaddn(B)}},f.prototype.copy=function(_){_.words=new Array(this.length);for(var S=0;S<this.length;S++)_.words[S]=this.words[S];_.length=this.length,_.negative=this.negative,_.red=this.red},f.prototype.clone=function(){var _=new f(null);return this.copy(_),_},f.prototype._expand=function(_){for(;this.length<_;)this.words[this.length++]=0;return this},f.prototype.strip=function(){for(;this.length>1&&this.words[this.length-1]===0;)this.length--;return this._normSign()},f.prototype._normSign=function(){return this.length===1&&this.words[0]===0&&(this.negative=0),this},f.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var e=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","00000000
`))},O.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":203,"browserify-sign":211,"browserify-sign/algos":208,"create-ecdh":329,"create-hash":331,"create-hmac":333,"diffie-hellman":345,pbkdf2:460,"public-encrypt":468,randombytes:475,randomfill:476}],336:[function(c,T,O){function y(p){return(y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v})(p)}(function(p,v){(O===void 0?"undefined":y(O))=="object"&&T!==void 0?T.exports=v():(void 0).dayjs=v()})(0,function(){var p="millisecond",v="second",d="minute",m="hour",f="day",h="week",s="month",i="quarter",e="year",t="date",r=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,o=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,n=function(_,S,g){var E=String(_);return!E||E.length>=S?_:""+Array(S+1-E.length).join(g)+_},a={s:n,z:function(_){var S=-_.utcOffset(),g=Math.abs(S),E=Math.floor(g/60),k=g%60;return(S<=0?"+":"-")+n(E,2,"0")+":"+n(k,2,"0")},m:function _(S,g){if(S.date()<g.date())return-_(g,S);var E=12*(g.year()-S.year())+(g.month()-S.month()),k=S.add(E,s),x=g-k<0,M=S.add(E+(x?-1:1),s);return+(-(E+(g-k)/(x?k-M:M-k))||0)},a:function(_){return _<0?Math.ceil(_)||0:Math.floor(_)},p:function(_){return{M:s,y:e,w:h,d:f,D:t,h:m,m:d,s:v,ms:p,Q:i}[_]||String(_||"").toLowerCase().replace(/s$/,"")},u:function(_){return _===void 0}},u={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},l="en",b={};b[l]=u;var w=function(_){return _ instanceof j},C=function(_,S,g){var E;if(!_)return l;if(typeof _=="string")b[_]&&(E=_),S&&(b[_]=S,E=_);else{var k=_.name;b[k]=_,E=k}return!g&&E&&(l=E),E||!g&&l},R=function(_,S){if(w(_))return _.clone();var g=y(S)=="object"?S:{};return g.date=_,g.args=arguments,new j(g)},A=a;A.l=C,A.i=w,A.w=function(_,S){return R(_,{locale:S.$L,utc:S.$u,$offset:S.$offset})};var j=function(){function _(g){this.$L=this.$L||C(g.locale,null,!0),this.parse(g)}var S=_.prototype;return S.parse=function(g){this.$d=function(E){var k=E.date,x=E.utc;if(k===null)return new Date(NaN);if(A.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var M=k.match(r);if(M){var D=M[2]-1||0,B=(M[7]||"0").substring(0,3);return x?new Date(Date.UTC(M[1],D,M[3]||1,M[4]||0,M[5]||0,M[6]||0,B)):new Date(M[1],D,M[3]||1,M[4]||0,M[5]||0,M[6]||0,B)}}return new Date(k)}(g),this.init()},S.init=function(){var g=this.$d;this.$y=g.getFullYear(),this.$M=g.getMonth(),this.$D=g.getDate(),this.$W=g.getDay(),this.$H=g.getHours(),this.$m=g.getMinutes(),this.$s=g.getSeconds(),this.$ms=g.getMilliseconds()},S.$utils=function(){return A},S.isValid=function(){return this.$d.toString()!=="Invalid Date"},S.isSame=function(g,E){var k=R(g);return this.startOf(E)<=k&&k<=this.endOf(E)},S.isAfter=function(g,E){return R(g)<this.startOf(E)},S.isBefore=function(g,E){return this.endOf(E)<R(g)},S.$g=function(g,E,k){return A.u(g)?this[E]:this.set(k,g)},S.unix=function(){return Math.floor(this.valueOf()/1e3)},S.valueOf=function(){return this.$d.getTime()},S.startOf=function(g,E){var k=this,x=!!A.u(E)||E,M=A.p(g),D=function(L,I){var N=A.w(k.$u?Date.UTC(k.$y,I,L):new Date(k.$y,I,L),k);return x?N:N.endOf(f)},B=function(L,I){return A.w(k.toDate()[L].apply(k.toDate("s"),(x?[0,0,0,0]:[23,59,59,999]).slice(I)),k)},F=this.$W,U=this.$M,H=this.$D,V="set"+(this.$u?"UTC":"");switch(M){case e:return x?D(1,0):D(31,11);case s:return x?D(1,U):D(0,U+1);case h:var q=this.$locale().weekStart||0,$=(F<q?F+7:F)-q;return D(x?
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/function y(p){return!!p.constructor&&typeof p.constructor.isBuffer=="function"&&p.constructor.isBuffer(p)}T.exports=function(p){return p!=null&&(y(p)||function(v){return typeof v.readFloatLE=="function"&&typeof v.slice=="function"&&y(v.slice(0,0))}(p)||!!p._isBuffer)}},{}],389:[function(c,T,O){var y={}.toString;T.exports=Array.isArray||function(p){return y.call(p)=="[object Array]"}},{}],390:[function(c,T,O){var y=c("./utils"),p=c("./support"),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";O.encode=function(d){for(var m,f,h,s,i,e,t,r=[],o=0,n=d.length,a=n,u=y.getTypeOf(d)!=="string";o<d.length;)a=n-o,u?(m=d[o++],f=o<n?d[o++]:0,h=o<n?d[o++]:0):(m=d.charCodeAt(o++),f=o<n?d.charCodeAt(o++):0,h=o<n?d.charCodeAt(o++):0),s=m>>2,i=(3&m)<<4|f>>4,e=a>1?(15&f)<<2|h>>6:64,t=a>2?63&h:64,r.push(v.charAt(s)+v.charAt(i)+v.charAt(e)+v.charAt(t));return r.join("")},O.decode=function(d){var m,f,h,s,i,e,t=0,r=0;if(d.substr(0,5)==="data:")throw new Error("Invalid base64 input, it looks like a data url.");var o,n=3*(d=d.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(d.charAt(d.length-1)===v.charAt(64)&&n--,d.charAt(d.length-2)===v.charAt(64)&&n--,n%1!=0)throw new Error("Invalid base64 input, bad content length.");for(o=p.uint8array?new Uint8Array(0|n):new Array(0|n);t<d.length;)m=v.indexOf(d.charAt(t++))<<2|(s=v.indexOf(d.charAt(t++)))>>4,f=(15&s)<<4|(i=v.indexOf(d.charAt(t++)))>>2,h=(3&i)<<6|(e=v.indexOf(d.charAt(t++))),o[r++]=m,i!==64&&(o[r++]=f),e!==64&&(o[r++]=h);return o}},{"./support":419,"./utils":421}],391:[function(c,T,O){var y=c("./external"),p=c("./stream/DataWorker"),v=c("./stream/DataLengthProbe"),d=c("./stream/Crc32Probe");v=c("./stream/DataLengthProbe");function m(f,h,s,i,e){this.compressedSize=f,this.uncompressedSize=h,this.crc32=s,this.compression=i,this.compressedContent=e}m.prototype={getContentWorker:function(){var f=new p(y.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new v("data_length")),h=this;return f.on("end",function(){if(this.streamInfo.data_length!==h.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),f},getCompressedWorker:function(){return new p(y.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},m.createWorkerFrom=function(f,h,s){return f.pipe(new d).pipe(new v("uncompressedSize")).pipe(h.compressWorker(s)).pipe(new v("compressedSize")).withStreamInfo("compression",h)},T.exports=m},{"./external":395,"./stream/Crc32Probe":414,"./stream/DataLengthProbe":415,"./stream/DataWorker":416}],392:[function(c,T,O){var y=c("./stream/GenericWorker");O.STORE={magic:"\0\0",compressWorker:function(p){return new y("STORE compression")},uncompressWorker:function(){return new y("STORE decompression")}},O.DEFLATE=c("./flate")},{"./flate":396,"./stream/GenericWorker":417}],393:[function(c,T,O){var y=c("./utils"),p=function(){for(var v,d=[],m=0;m<256;m++){v=m;for(var f=0;f<8;f++)v=1&v?3988292384^v>>>1:v>>>1;d[m]=v}return d}();T.exports=function(v,d){return v!==void 0&&v.length?y.getTypeOf(v)!=="string"?function(m,f,h,s){var i=p,e=s+h;m^=-1;for(var t=s;t<e;t++)m=m>>>8^i[255&(m^f[t])];return-1^m}(0|d,v,v.length,0):function(m,f,h,s){var i=p,e=s+h;m^=-1;for(var t=s;t<e;t++)m=m>>>8^i[255&(m^f.charCodeAt(t))];return-1^m}(0|d,v,v.length,0):0}},{"./utils":421}],394:[function(c,T,O){O.base64=!1,O.binary=!1,O.dir=!1,O.createFolders=!0,O.date=null,O.compression=null,O.compressionOptions=null,O.comment=null,O.unixPermissions=null,O.dosPermissions=null},{}],395:[function(c,T,O){var y=null;y=typeof Promise<"u"?Promise:c("lie"),T.exports={Promise:y}},{lie:425}],396:[function(c,T,O){var y=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",p=c("pako"),v=c("./utils"),d=c("./stream/GenericWorker"),m=y?"uint8array":"array";function f(h,s){d.call(this,"FlateWorker/"+h),this._pako=null,this._pakoAction=h,this._pakoOptions=s,this.meta={}}O.magic="\b\0",v.inherit
\0`,L+=f(F,2),L+=w.magic,L+=f(u,2),L+=f(l,2),L+=f(B.crc32,4),L+=f(B.compressedSize,4),L+=f(B.uncompressedSize,4),L+=f(R.length,2),L+=f(E.length,2),{fileRecord:m.LOCAL_FILE_HEADER+L+R+E,dirRecord:m.CENTRAL_FILE_HEADER+f($,2)+L+f(P.length,2)+"\0\0\0\0"+f(q,4)+f(o,4)+R+E+P}},s=function(e){return m.DATA_DESCRIPTOR+f(e.crc32,4)+f(e.compressedSize,4)+f(e.uncompressedSize,4)};function i(e,t,r,o){p.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=o,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}y.inherits(i,p),i.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,o=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,p.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-o-1))/r:100}}))},i.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=h(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},i.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,r=h(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:s(e),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},i.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r=this.bytesWritten-e,o=function(n,a,u,l,b){var w=y.transformTo("string",b(l));return m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+f(n,2)+f(n,2)+f(a,4)+f(u,4)+f(w.length,2)+w}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:o,meta:{percent:100}})},i.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},i.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",function(r){t.processChunk(r)}),e.on("end",function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()}),e.on("error",function(r){t.error(r)}),this},i.prototype.resume=function(){return!!p.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},i.prototype.error=function(e){var t=this._sources;if(!p.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch{}return!0},i.prototype.lock=function(){p.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},T.exports=i},{"../crc32":393,"../signature":412,"../stream/GenericWorker":417,"../utf8":420,"../utils":421}],398:[function(c,T,O){var y=c("../compressions"),p=c("./ZipFileWorker");O.generateWorker=function(v,d,m){var f=new p(d.streamFiles,m,d.platform,d.encodeFileName),h=0;try{v.forEach(function(s,i){h++;var e=function(n,a){var u=n||a,l=y[u];if(!l)throw new Error(u+" is not a valid compression method !");return l}(i.options.compression,d.compression),t=i.options.compressionOptions||d.compressionOptions||{},r=i.dir,o=i.date;i._compressWorker(e,t).withStreamInfo("file",{name:s,dir:r,date:o,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(f)}),f.entriesCount=h}catch(s){f.error(s)}return f}},{"../compressions":392,"./ZipFileWorker":397}],399:[function(c,T,O){function y(){if(!(this instanceof y))return new y;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files={},this.comment=null,this.root="",this.clone=function(){var p=
Use Chrome, Firefox or Internet Explorer 11`)}}).call(this,c("_process"),typeof et<"u"?et:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,"safe-buffer":494}],476:[function(c,T,O){(function(y,p){function v(){throw new Error(`secure random number generation not supported by this browser
use chrome, FireFox or Internet Explorer 11`)}var d=c("safe-buffer"),m=c("randombytes"),f=d.Buffer,h=d.kMaxLength,s=p.crypto||p.msCrypto,i=Math.pow(2,32)-1;function e(o,n){if(typeof o!="number"||o!=o)throw new TypeError("offset must be a number");if(o>i||o<0)throw new TypeError("offset must be a uint32");if(o>h||o>n)throw new RangeError("offset out of range")}function t(o,n,a){if(typeof o!="number"||o!=o)throw new TypeError("size must be a number");if(o>i||o<0)throw new TypeError("size must be a uint32");if(o+n>a||o>h)throw new RangeError("buffer too small")}function r(o,n,a,u){if(y.browser){var l=o.buffer,b=new Uint8Array(l,n,a);return s.getRandomValues(b),u?void y.nextTick(function(){u(null,o)}):o}if(!u)return m(a).copy(o,n),o;m(a,function(w,C){if(w)return u(w);C.copy(o,n),u(null,o)})}s&&s.getRandomValues||!y.browser?(O.randomFill=function(o,n,a,u){if(!(f.isBuffer(o)||o instanceof p.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if(typeof n=="function")u=n,n=0,a=o.length;else if(typeof a=="function")u=a,a=o.length-n;else if(typeof u!="function")throw new TypeError('"cb" argument must be a function');return e(n,o.length),t(a,n,o.length),r(o,n,a,u)},O.randomFillSync=function(o,n,a){if(n===void 0&&(n=0),!(f.isBuffer(o)||o instanceof p.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return e(n,o.length),a===void 0&&(a=o.length-n),t(a,n,o.length),r(o,n,a)}):(O.randomFill=v,O.randomFillSync=v)}).call(this,c("_process"),typeof et<"u"?et:typeof self<"u"?self:typeof window<"u"?window:{})},{_process:467,randombytes:475,"safe-buffer":494}],477:[function(c,T,O){function y(m){return(y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f})(m)}var p={};function v(m,f,h){h||(h=Error);var s=function(i){var e,t;function r(o,n,a){return i.call(this,function(u,l,b){return typeof f=="string"?f:f(u,l,b)}(o,n,a))||this}return t=i,(e=r).prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t,r}(h);s.prototype.name=h.name,s.prototype.code=m,p[m]=s}function d(m,f){if(Array.isArray(m)){var h=m.length;return m=m.map(function(s){return String(s)}),h>2?"one of ".concat(f," ").concat(m.slice(0,h-1).join(", "),", or ")+m[h-1]:h===2?"one of ".concat(f," ").concat(m[0]," or ").concat(m[1]):"of ".concat(f," ").concat(m[0])}return"of ".concat(f," ").concat(String(m))}v("ERR_INVALID_OPT_VALUE",function(m,f){return'The value "'+f+'" is invalid for option "'+m+'"'},TypeError),v("ERR_INVALID_ARG_TYPE",function(m,f,h){var s,i,e;if(typeof f=="string"&&(i="not ",f.substr(0,i.length)===i)?(s="must not be",f=f.replace(/^not /,"")):s="must be",function(r,o,n){return(n===void 0||n>r.length)&&(n=r.length),r.substring(n-o.length,n)===o}(m," argument"))e="The ".concat(m," ").concat(s," ").concat(d(f,"type"));else{var t=function(r,o,n){return typeof n!="number"&&(n=0),!(n+o.length>r.length)&&r.indexOf(o,n)!==-1}(m,".")?"property":"argument";e='The "'.concat(m,'" ').concat(t," ").concat(s," ").concat(d(f,"type"))}return e+=". Received type ".concat(y(h))},TypeError),v("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),v("ERR_METHOD_NOT_IMPLEMENTED",function(m){return"The "+m+" method is not implemented"}),v("ERR_STREAM_PREMATURE_CLOSE","Premature close"),v("ERR_STREAM_DESTROYED",function(m){return"Cannot call "+m+" after a stream was destroyed"}),v("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),v("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),v("ERR_STREAM_WRITE_AFTER_END","write after end"),v("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),v("ERR_UNKNOWN_ENCODING",function(m){return"Unknown encoding: "+m},TypeError),v("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),T.exports.codes=p},{}],478:[function(c,T,O){(function(y){var p=Object.keys||function(t){var r=[];for(var o in t)r.push(o);return r};T.exports=s;var v=c("./_stream_readable"),d=c("./_stream_writable");c("
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var N,z=!0,W=!1;return{s:function(){$=V[Symbol.iterator]()},n:function(){var K=$.next();return z=K.done,K},e:function(K){W=!0,N=K},f:function(){try{z||$.return==null||$.return()}finally{if(W)throw N}}}}function p(V){return(p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q})(V)}function v(V,q){for(var $=0;$<q.length;$++){var L=q[$];L.enumerable=L.enumerable||!1,L.configurable=!0,"value"in L&&(L.writable=!0),Object.defineProperty(V,L.key,L)}}function d(V){return function(q){if(Array.isArray(q))return f(q)}(V)||function(q){if(typeof Symbol<"u"&&Symbol.iterator in Object(q))return Array.from(q)}(V)||m(V)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function m(V,q){if(V){if(typeof V=="string")return f(V,q);var $=Object.prototype.toString.call(V).slice(8,-1);return $==="Object"&&V.constructor&&($=V.constructor.name),$==="Map"||$==="Set"?Array.from(V):$==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test($)?f(V,q):void 0}}function f(V,q){(q==null||q>V.length)&&(q=V.length);for(var $=0,L=new Array(q);$<q;$++)L[$]=V[$];return L}Object.defineProperty(O,"__esModule",{value:!0});var h=c("xmlchars/xml/1.0/ed5"),s=c("xmlchars/xml/1.1/ed2"),i=c("xmlchars/xmlns/1.0/ed3"),e=h.isS,t=h.isChar,r=h.isNameStartChar,o=h.isNameChar,n=h.S_LIST,a=h.NAME_RE,u=s.isChar,l=i.isNCNameStartChar,b=i.isNCNameChar,w=i.NC_NAME_RE,C="http://www.w3.org/XML/1998/namespace",R="http://www.w3.org/2000/xmlns/",A={__proto__:null,xml:C,xmlns:R},j={__proto__:null,amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},P=61,_=63,S=function(V){return V===34||V===39},g=[34,39],E=[].concat(g,[91,62]),k=[].concat(g,[60,93]),x=[P,_].concat(d(n)),M=[].concat(d(n),[62,38,60]);function D(V,q,$){switch(q){case"xml":$!==C&&V.fail("xml prefix must be bound to ".concat(C,"."));break;case"xmlns":$!==R&&V.fail("xmlns prefix must be bound to ".concat(R,"."))}switch($){case R:V.fail(q===""?"the default namespace may not be set to ".concat($,"."):'may not assign a prefix (even "xmlns") to the URI '.concat(R,"."));break;case C:switch(q){case"xml":break;case"":V.fail("the default namespace may not be set to ".concat($,"."));break;default:V.fail("may not assign the xml namespace to another prefix.")}}}var B=function(V){return w.test(V)},F=function(V){return a.test(V)};O.EVENTS=["xmldecl","text","processinginstruction","doctype","comment","opentagstart","attribute","opentag","closetag","cdata","error","end","ready"];var U={xmldecl:"xmldeclHandler",text:"textHandler",processinginstruction:"piHandler",doctype:"doctypeHandler",comment:"commentHandler",opentagstart:"openTagStartHandler",attribute:"attributeHandler",opentag:"openTagHandler",closetag:"closeTagHandler",cdata:"cdataHandler",error:"errorHandler",end:"endHandler",ready:"readyHandler"},H=function(){function V(L){(function(z,W){if(!(z instanceof W))throw new TypeError("Cannot call a class as a function")})(this,V),this.opt=L??{},this.fragmentOpt=!!this.opt.fragment;var I=this.xmlnsOpt=!!this.opt.xmlns;if(this.trackPosition=this.opt.position!==!1,this.fileName=this.opt.fileName,I){this.nameStartCheck=l,this.nameCheck=b,this.isName=B,this.processAttribs=this.processAttribsNS,this.pushAttrib=this.pushAttribNS,this.ns=Object.assign({__proto__:null},A);var N=this.opt.additionalNamespaces;N!=null&&(function(z,W){for(var K=0,Y=Object.keys(W);K<Y.length;K++){var ae=Y[K];D(z,ae,W[ae])}}(this,N),Object.assign(this.ns,N))}else this.nameStartCheck=r,this.nameCheck=o,this.isName=F,this.processAttribs=this.processAttribsPlain,this.pushAttrib=this.pushAttribPlain;this.stateTable=[this.sBegin,this.sBeginWhitespace,this.sDoctype,this.sDoctypeQuote,this.sDTD,this.sDTDQuoted,this.sDTDOpenWaka,this.sDTDOpenWakaBang,this.sDTDComment,this.sDTDCommentEnding,this.sDTDCommentEnded,this.sDTDPI,this.sDTDPIEnding,this.sText,this.sEntity,this.sOpenWaka,this.sOpenWakaBang,this.sComment,this.sCommentEnding,this.sCommentEnded,this.sCData,this.sCDataEnding,this.sCDataEnding2,this.sPIFirstChar,this.sPIRest,this.sPIBody,this.sPIEnding,this.sXMLDeclNameStart,this.sXMLDeclName,this.sXMLDeclEq,this.sXMLDeclValueStart,this.sXMLDeclValue,this.sXMLDeclSeparator,this.sXMLDeclEnding,this.sOpenTag,this.sOpenTagSlash,this.sAttrib,this.sAttribName,this.sAttribNameSawWhite,this.sAttribValue,this.sAttribValueQuoted,this.sAttribValueClosed,this.sAttribValueUnquoted,this.sCloseTag,this.sCloseTagSawWhite],this._init()}var q,$;return q=V,($=[{key:"_init",value:function(){var L;this.openWakaBang="",this.text="",this.name="",this.piTarget="",this.entity="",this.q=null,this.tags=[],this.tag=null,this.topNS=null,this.chunk="",this.chunkPosition=0,this.i=0,this.prevI=0,this.carriedFromPrevious=void 0,this.forbiddenState=0,this.attribList=[];var
`),I=this.i)}}},{key:"captureToChar",value:function(L){for(var I=this.i,N=this.chunk;;){var z=this.getCode();switch(z){case-2:this.text+="".concat(N.slice(I,this.prevI),`
`),I=this.i,z=10;break;case-1:return this.text+=N.slice(I),!1}if(z===L)return this.text+=N.slice(I,this.prevI),!0}}},{key:"captureNameChars",value:function(){for(var L=this.chunk,I=this.i;;){var N=this.getCode();if(N===-1)return this.name+=L.slice(I),-1;if(!o(N))return this.name+=L.slice(I,this.prevI),N===-2?10:N}}},{key:"skipSpaces",value:function(){for(;;){var L=this.getCodeNorm();if(L===-1||!e(L))return L}}},{key:"setXMLVersion",value:function(L){this.currentXMLVersion=L,L==="1.0"?(this.isChar=t,this.getCode=this.getCode10):(this.isChar=u,this.getCode=this.getCode11)}},{key:"sBegin",value:function(){this.chunk.charCodeAt(0)===65279&&(this.i++,this.column++),this.state=1}},{key:"sBeginWhitespace",value:function(){var L=this.i,I=this.skipSpaces();switch(this.prevI!==L&&(this.xmlDeclPossible=!1),I){case 60:if(this.state=15,this.text.length!==0)throw new Error("no-empty text at start");break;case-1:break;default:this.unget(),this.state=13,this.xmlDeclPossible=!1}}},{key:"sDoctype",value:function(){var L,I=this.captureTo(E);switch(I){case 62:(L=this.doctypeHandler)===null||L===void 0||L.call(this,this.text),this.text="",this.state=13,this.doctype=!0;break;case-1:break;default:this.text+=String.fromCodePoint(I),I===91?this.state=4:S(I)&&(this.state=3,this.q=I)}}},{key:"sDoctypeQuote",value:function(){var L=this.q;this.captureToChar(L)&&(this.text+=String.fromCodePoint(L),this.q=null,this.state=2)}},{key:"sDTD",value:function(){var L=this.captureTo(k);L!==-1&&(this.text+=String.fromCodePoint(L),L===93?this.state=2:L===60?this.state=6:S(L)&&(this.state=5,this.q=L))}},{key:"sDTDQuoted",value:function(){var L=this.q;this.captureToChar(L)&&(this.text+=String.fromCodePoint(L),this.state=4,this.q=null)}},{key:"sDTDOpenWaka",value:function(){var L=this.getCodeNorm();switch(this.text+=String.fromCodePoint(L),L){case 33:this.state=7,this.openWakaBang="";break;case _:this.state=11;break;default:this.state=4}}},{key:"sDTDOpenWakaBang",value:function(){var L=String.fromCodePoint(this.getCodeNorm()),I=this.openWakaBang+=L;this.text+=L,I!=="-"&&(this.state=I==="--"?8:4,this.openWakaBang="")}},{key:"sDTDComment",value:function(){this.captureToChar(45)&&(this.text+="-",this.state=9)}},{key:"sDTDCommentEnding",value:function(){var L=this.getCodeNorm();this.text+=String.fromCodePoint(L),this.state=L===45?10:8}},{key:"sDTDCommentEnded",value:function(){var L=this.getCodeNorm();this.text+=String.fromCodePoint(L),L===62?this.state=4:(this.fail("malformed comment."),this.state=8)}},{key:"sDTDPI",value:function(){this.captureToChar(_)&&(this.text+="?",this.state=12)}},{key:"sDTDPIEnding",value:function(){var L=this.getCodeNorm();this.text+=String.fromCodePoint(L),L===62&&(this.state=4)}},{key:"sText",value:function(){this.tags.length!==0?this.handleTextInRoot():this.handleTextOutsideRoot()}},{key:"sEntity",value:function(){var L=this.i,I=this.chunk;e:for(;;)switch(this.getCode()){case-2:this.entity+="".concat(I.slice(L,this.prevI),`
`),L=this.i;break;case 59:var N=this.entityReturnState,z=this.entity+I.slice(L,this.prevI);this.state=N;var W=void 0;z===""?(this.fail("empty entity name."),W="&;"):(W=this.parseEntity(z),this.entity=""),N===13&&this.textHandler===void 0||(this.text+=W);break e;case-1:this.entity+=I.slice(L);break e}}},{key:"sOpenWaka",value:function(){var L=this.getCode();if(r(L))this.state=34,this.unget(),this.xmlDeclPossible=!1;else switch(L){case 47:this.state=43,this.xmlDeclPossible=!1;break;case 33:this.state=16,this.openWakaBang="",this.xmlDeclPossible=!1;break;case _:this.state=23;break;default:this.fail("disallowed character in tag name"),this.state=13,this.xmlDeclPossible=!1}}},{key:"sOpenWakaBang",value:function(){switch(this.openWakaBang+=String.fromCodePoint(this.getCodeNorm()),this.openWakaBang){case"[CDATA[":this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0),this.state=20,this.openWakaBang="";break;case"--":this.state=17,this.openWakaBang="";break;case"DOCTYPE":this.state=2,(this.doctype||this.sawRoot)&&this.fail("inappropriately located doctype declaration."),this.openWakaBang="";break;default:this.openWakaBang.length>=7&&this.fail("incorrect syntax.")}}},{key:"sComment",value:function(){this.captureToChar(45)&&(this.state=18)}},{key:"sCommentEnding",value:function(){var L,I=this.getCodeNorm();I===45?(this.state=19,(L=this.commentHandler)===null||L===void 0||L.call(this,this.text),this.text=""):(this.text+="-".concat(String.fromCodePoint(I)),this.state=17)}},{key:"sCommentEnded",value:function(){var L=this.getCodeNorm();L!==62?(this.fail("malformed comment."),this.text+="--".concat(String.fromCodePoint(L)),this.state=17):this.state=13}},{key:"sCData",value:function(){this.captureToChar(93)&&(this.state=21)}},{key:"sCDataEnding",value:function(){var L=this.getCodeNorm();L===93?this.state=22:(this.text+="]".concat(String.fromCodePoint(L)),this.state=20)}},{key:"sCDataEnding2",value:function(){var L,I=this.getCodeNorm();switch(I){case 62:(L=this.cdataHandler)===null||L===void 0||L.call(this,this.text),this.text="",this.state=13;break;case 93:this.text+="]";break;default:this.text+="]]".concat(String.fromCodePoint(I)),this.state=20}}},{key:"sPIFirstChar",value:function(){var L=this.getCodeNorm();this.nameStartCheck(L)?(this.piTarget+=String.fromCodePoint(L),this.state=24):L===_||e(L)?(this.fail("processing instruction without a target."),this.state=L===_?26:25):(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(L),this.state=24)}},{key:"sPIRest",value:function(){for(var L=this.chunk,I=this.i;;){var N=this.getCodeNorm();if(N===-1)return void(this.piTarget+=L.slice(I));if(!this.nameCheck(N)){this.piTarget+=L.slice(I,this.prevI);var z=N===_;z||e(N)?this.piTarget==="xml"?(this.xmlDeclPossible||this.fail("an XML declaration must be at the start of the document."),this.state=z?33:27):this.state=z?26:25:(this.fail("disallowed character in processing instruction name."),this.piTarget+=String.fromCodePoint(N));break}}}},{key:"sPIBody",value:function(){if(this.text.length===0){var L=this.getCodeNorm();L===_?this.state=26:e(L)||(this.text=String.fromCodePoint(L))}else this.captureToChar(_)&&(this.state=26)}},{key:"sPIEnding",value:function(){var L,I=this.getCodeNorm();if(I===62){var N=this.piTarget;N.toLowerCase()==="xml"&&this.fail("the XML declaration must appear at the start of the document."),(L=this.piHandler)===null||L===void 0||L.call(this,{target:N,body:this.text}),this.piTarget=this.text="",this.state=13}else I===_?this.text+="?":(this.text+="?".concat(String.fromCodePoint(I)),this.state=25);this.xmlDeclPossible=!1}},{key:"sXMLDeclNameStart",value:function(){var L=this.skipSpaces();L!==_?L!==-1&&(this.state=28,this.name=String.fromCodePoint(L)):this.state=33}},{key:"sXMLDeclName",value:function(){var L=this.captureTo(x);if(L===_)return this.state=33,this.name+=this.text,this.text="",voi
`)),L=this.i,I=0;break;case-1:z!==void 0&&(this.text+=N.slice(L));break e;default:I=0}this.forbiddenState=I}},{key:"handleTextOutsideRoot",value:function(){var L=this.i,I=this.chunk,N=this.textHandler,z=!1;e:for(;;){var W=this.getCode();switch(W){case 60:if(this.state=15,N!==void 0){var K=this.text,Y=I.slice(L,this.prevI);K.length!==0?(N(K+Y),this.text=""):Y.length!==0&&N(Y)}break e;case 38:this.state=14,this.entityReturnState=13,N!==void 0&&(this.text+=I.slice(L,this.prevI)),z=!0;break e;case-2:N!==void 0&&(this.text+="".concat(I.slice(L,this.prevI),`
`)),L=this.i;break;case-1:N!==void 0&&(this.text+=I.slice(L));break e;default:e(W)||(z=!0)}}z&&(this.sawRoot||this.reportedTextBeforeRoot||(this.fail("text data outside of root node."),this.reportedTextBeforeRoot=!0),this.closedRoot&&!this.reportedTextAfterRoot&&(this.fail("text data outside of root node."),this.reportedTextAfterRoot=!0))}},{key:"pushAttribNS",value:function(L,I){var N,z=this.qname(L),W=z.prefix,K=z.local,Y={name:L,prefix:W,local:K,value:I};if(this.attribList.push(Y),(N=this.attributeHandler)===null||N===void 0||N.call(this,Y),W==="xmlns"){var ae=I.trim();this.currentXMLVersion==="1.0"&&ae===""&&this.fail("invalid attempt to undefine prefix in XML 1.0"),this.topNS[K]=ae,D(this,K,ae)}else if(L==="xmlns"){var te=I.trim();this.topNS[""]=te,D(this,"",te)}}},{key:"pushAttribPlain",value:function(L,I){var N,z={name:L,value:I};this.attribList.push(z),(N=this.attributeHandler)===null||N===void 0||N.call(this,z)}},{key:"end",value:function(){var L,I;this.sawRoot||this.fail("document must contain a root element.");for(var N=this.tags;N.length>0;){var z=N.pop();this.fail("unclosed tag: ".concat(z.name))}this.state!==0&&this.state!==13&&this.fail("unexpected end.");var W=this.text;return W.length!==0&&((L=this.textHandler)===null||L===void 0||L.call(this,W),this.text=""),this._closed=!0,(I=this.endHandler)===null||I===void 0||I.call(this),this._init(),this}},{key:"resolve",value:function(L){var I,N,z=this.topNS[L];if(z!==void 0)return z;for(var W=this.tags,K=W.length-1;K>=0;K--)if((z=W[K].ns[L])!==void 0)return z;return(z=this.ns[L])!==void 0?z:(N=(I=this.opt).resolvePrefix)===null||N===void 0?void 0:N.call(I,L)}},{key:"qname",value:function(L){var I=L.indexOf(":");if(I===-1)return{prefix:"",local:L};var N=L.slice(I+1),z=L.slice(0,I);return(z===""||N===""||N.includes(":"))&&this.fail("malformed name: ".concat(L,".")),{prefix:z,local:N}}},{key:"processAttribsNS",value:function(){var L,I=this.attribList,N=this.tag,z=this.qname(N.name),W=z.prefix,K=z.local;N.prefix=W,N.local=K;var Y=N.uri=(L=this.resolve(W))!==null&&L!==void 0?L:"";if(W!==""&&(W==="xmlns"&&this.fail('tags may not have "xmlns" as prefix.'),Y===""&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(W),".")),N.uri=W)),I.length!==0){var ae,te=N.attributes,fe=new Set,me=y(I);try{for(me.s();!(ae=me.n()).done;){var le=ae.value,Ce=le.name,xe=le.prefix,we=le.local,Se=void 0,Te=void 0;xe===""?(Se=Ce==="xmlns"?R:"",Te=Ce):((Se=this.resolve(xe))===void 0&&(this.fail("unbound namespace prefix: ".concat(JSON.stringify(xe),".")),Se=xe),Te="{".concat(Se,"}").concat(we)),fe.has(Te)&&this.fail("duplicate attribute: ".concat(Te,".")),fe.add(Te),le.uri=Se,te[Ce]=le}}catch(he){me.e(he)}finally{me.f()}this.attribList=[]}}},{key:"processAttribsPlain",value:function(){var L,I=this.attribList,N=this.tag.attributes,z=y(I);try{for(z.s();!(L=z.n()).done;){var W=L.value,K=W.name,Y=W.value;N[K]!==void 0&&this.fail("duplicate attribute: ".concat(K,".")),N[K]=Y}}catch(ae){z.e(ae)}finally{z.f()}this.attribList=[]}},{key:"openTag",value:function(){var L;this.processAttribs();var I=this.tags,N=this.tag;N.isSelfClosing=!1,(L=this.openTagHandler)===null||L===void 0||L.call(this,N),I.push(N),this.state=13,this.name=""}},{key:"openSelfClosingTag",value:function(){var L,I,N;this.processAttribs();var z=this.tags,W=this.tag;W.isSelfClosing=!0,(L=this.openTagHandler)===null||L===void 0||L.call(this,W),(I=this.closeTagHandler)===null||I===void 0||I.call(this,W),(this.tag=(N=z[z.length-1])!==null&&N!==void 0?N:null)===null&&(this.closedRoot=!0),this.state=13,this.name=""}},{key:"closeTag",value:function(){var L=this.tags,I=this.name;if(this.state=13,this.name="",I==="")return this.fail("weird empty close tag."),void(this.text+="</>");for(var N=this.closeTagHandler,z=L.length;z-- >0;){var W=this.tag=L.pop();if(this.topNS=W.ns,N==null||N(W),W.name===I)break;this.fail("unexpected close tag.")}z===0?this.closedRoot=!0:z<0&&(this.fail("unmatched closing tag: ".concat(I,".")),this.text+="</".concat(I,">"))}},{key:"parseEntity",value:function(L){if(L[0]!=="#"){var I=this.ENTITIES[L];return I
`)>=0,W+K.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?z[0]+(N===""?"":N+`
`)+" "+I.join(`,
`)+" "+z[1]:z[0]+N+" "+I.join(", ")+" "+z[1]}(V,q,L)):L[0]+q+L[1]}function t(k){return"["+Error.prototype.toString.call(k)+"]"}function r(k,x,M,D,B,F){var U,H,V;if((V=Object.getOwnPropertyDescriptor(x,B)||{value:x[B]}).get?H=V.set?k.stylize("[Getter/Setter]","special"):k.stylize("[Getter]","special"):V.set&&(H=k.stylize("[Setter]","special")),E(D,B)||(U="["+B+"]"),H||(k.seen.indexOf(V.value)<0?(H=a(M)?e(k,V.value,null):e(k,V.value,M-1)).indexOf(`
`)>-1&&(H=F?H.split(`
`).map(function(q){return" "+q}).join(`
`).substr(2):`
`+H.split(`
`).map(function(q){return" "+q}).join(`
`)):H=k.stylize("[Circular]","special")),b(U)){if(F&&B.match(/^\d+$/))return H;(U=JSON.stringify(""+B)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(U=U.substr(1,U.length-2),U=k.stylize(U,"name")):(U=U.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),U=k.stylize(U,"string"))}return U+": "+H}function o(k){return Array.isArray(k)}function n(k){return typeof k=="boolean"}function a(k){return k===null}function u(k){return typeof k=="number"}function l(k){return typeof k=="string"}function b(k){return k===void 0}function w(k){return C(k)&&P(k)==="[object RegExp]"}function C(k){return v(k)==="object"&&k!==null}function R(k){return C(k)&&P(k)==="[object Date]"}function A(k){return C(k)&&(P(k)==="[object Error]"||k instanceof Error)}function j(k){return typeof k=="function"}function P(k){return Object.prototype.toString.call(k)}function _(k){return k<10?"0"+k.toString(10):k.toString(10)}O.debuglog=function(k){if(b(m)&&(m=y.env.NODE_DEBUG||""),k=k.toUpperCase(),!f[k])if(new RegExp("\\b"+k+"\\b","i").test(m)){var x=y.pid;f[k]=function(){var M=O.format.apply(O,arguments);console.error("%s %d: %s",k,x,M)}}else f[k]=function(){};return f[k]},O.inspect=h,h.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},h.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},O.isArray=o,O.isBoolean=n,O.isNull=a,O.isNullOrUndefined=function(k){return k==null},O.isNumber=u,O.isString=l,O.isSymbol=function(k){return v(k)==="symbol"},O.isUndefined=b,O.isRegExp=w,O.isObject=C,O.isDate=R,O.isError=A,O.isFunction=j,O.isPrimitive=function(k){return k===null||typeof k=="boolean"||typeof k=="number"||typeof k=="string"||v(k)==="symbol"||k===void 0},O.isBuffer=c("./support/isBuffer");var S=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function g(){var k=new Date,x=[_(k.getHours()),_(k.getMinutes()),_(k.getSeconds())].join(":");return[k.getDate(),S[k.getMonth()],x].join(" ")}function E(k,x){return Object.prototype.hasOwnProperty.call(k,x)}O.log=function(){console.log("%s - %s",g(),O.format.apply(O,arguments))},O.inherits=c("inherits"),O._extend=function(k,x){if(!x||!C(x))return k;for(var M=Object.keys(x),D=M.length;D--;)k[M[D]]=x[M[D]];return k}}).call(this,c("_process"),typeof et<"u"?et:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":524,_process:467,inherits:523}],526:[function(c,T,O){Object.defineProperty(O,"__esModule",{value:!0}),Object.defineProperty(O,"v1",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(O,"v3",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(O,"v4",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(O,"v5",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(O,"NIL",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(O,"version",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(O,"validate",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(O,"stringify",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(O,"parse",{enumerable:!0,get:function(){return i.default}});var y=e(c("./v1.js")),p=e(c("./v3.js")),v=e(c("./v4.js")),d=e(c("./v5.js")),m=e(c("./nil.js")),f=e(c("./version.js")),h=e(c("./validate.js")),s=e(c("./stringify.js")),i=e(c("./parse.js"));function e(t){return t&&t.__esModule?t:{default:t}}},{"./nil.js":528,"./parse.js":529,"./stringify.js":533,"./v1.js":534,"./v3.js":535,"./v4.js":537,"./v5.js":538,"./validate.js":539,"./version.js":540}],527:[function(c,T,O){function y(i){return 14+(i+64>>>9<<4)+1}function p(i,e){var t=(65535&i)+(65535&e);return(i>>16)+(e>>16)+(t>>16)<<16|65535&t}function v(i,e,t,r,o,n){return p((a=p(p(e,i),p(r,n)))<<(u=o)|a>>>32-u,t);var a,u}function d(i,e,t,r,o,n,a){return v(e&t|~e&r,i,e,o,n,a)}function m(i,e,t,r,o,n,a){return v(e&r|t&~r,i,e,o,n,a)}function f(i,e,t,r,o
* Character classes and associated utilities for the 5th edition of XML 1.0.
*
* @author Louis-Dominique Dubeau
* @license MIT
* @copyright Louis-Dominique Dubeau
*/Object.defineProperty(O,"__esModule",{value:!0}),O.CHAR=`
\r --<EFBFBD>𐀀-􏿿`,O.S=` \r
`,O.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-<2D>𐀀-󯿿",O.NAME_CHAR="-"+O.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",O.CHAR_RE=new RegExp("^["+O.CHAR+"]$","u"),O.S_RE=new RegExp("^["+O.S+"]+$","u"),O.NAME_START_CHAR_RE=new RegExp("^["+O.NAME_START_CHAR+"]$","u"),O.NAME_CHAR_RE=new RegExp("^["+O.NAME_CHAR+"]$","u"),O.NAME_RE=new RegExp("^["+O.NAME_START_CHAR+"]["+O.NAME_CHAR+"]*$","u"),O.NMTOKEN_RE=new RegExp("^["+O.NAME_CHAR+"]+$","u");function y(p){return p>=65&&p<=90||p>=97&&p<=122||p===58||p===95||p===8204||p===8205||p>=192&&p<=214||p>=216&&p<=246||p>=248&&p<=767||p>=880&&p<=893||p>=895&&p<=8191||p>=8304&&p<=8591||p>=11264&&p<=12271||p>=12289&&p<=55295||p>=63744&&p<=64975||p>=65008&&p<=65533||p>=65536&&p<=983039}O.S_LIST=[32,10,13,9],O.isChar=function(p){return p>=32&&p<=55295||p===10||p===13||p===9||p>=57344&&p<=65533||p>=65536&&p<=1114111},O.isS=function(p){return p===32||p===10||p===13||p===9},O.isNameStartChar=y,O.isNameChar=function(p){return y(p)||p>=48&&p<=57||p===45||p===46||p===183||p>=768&&p<=879||p>=8255&&p<=8256}},{}],542:[function(c,T,O){/**
* Character classes and associated utilities for the 2nd edition of XML 1.1.
*
* @author Louis-Dominique Dubeau
* @license MIT
* @copyright Louis-Dominique Dubeau
*/Object.defineProperty(O,"__esModule",{value:!0}),O.CHAR="--<EFBFBD>𐀀-􏿿",O.RESTRICTED_CHAR="-\b\v\f--„†-Ÿ",O.S=` \r
`,O.NAME_START_CHAR=":A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿‌‍⁰-↏Ⰰ-⿯、-퟿豈-﷏ﷰ-<2D>𐀀-󯿿",O.NAME_CHAR="-"+O.NAME_START_CHAR+".0-9·̀-ͯ‿-⁀",O.CHAR_RE=new RegExp("^["+O.CHAR+"]$","u"),O.RESTRICTED_CHAR_RE=new RegExp("^["+O.RESTRICTED_CHAR+"]$","u"),O.S_RE=new RegExp("^["+O.S+"]+$","u"),O.NAME_START_CHAR_RE=new RegExp("^["+O.NAME_START_CHAR+"]$","u"),O.NAME_CHAR_RE=new RegExp("^["+O.NAME_CHAR+"]$","u"),O.NAME_RE=new RegExp("^["+O.NAME_START_CHAR+"]["+O.NAME_CHAR+"]*$","u"),O.NMTOKEN_RE=new RegExp("^["+O.NAME_CHAR+"]+$","u");function y(p){return p>=65&&p<=90||p>=97&&p<=122||p===58||p===95||p===8204||p===8205||p>=192&&p<=214||p>=216&&p<=246||p>=248&&p<=767||p>=880&&p<=893||p>=895&&p<=8191||p>=8304&&p<=8591||p>=11264&&p<=12271||p>=12289&&p<=55295||p>=63744&&p<=64975||p>=65008&&p<=65533||p>=65536&&p<=983039}O.S_LIST=[32,10,13,9],O.isChar=function(p){return p>=1&&p<=55295||p>=57344&&p<=65533||p>=65536&&p<=1114111},O.isRestrictedChar=function(p){return p>=1&&p<=8||p===11||p===12||p>=14&&p<=31||p>=127&&p<=132||p>=134&&p<=159},O.isCharAndNotRestricted=function(p){return p===9||p===10||p===13||p>31&&p<127||p===133||p>159&&p<=55295||p>=57344&&p<=65533||p>=65536&&p<=1114111},O.isS=function(p){return p===32||p===10||p===13||p===9},O.isNameStartChar=y,O.isNameChar=function(p){return y(p)||p>=48&&p<=57||p===45||p===46||p===183||p>=768&&p<=879||p>=8255&&p<=8256}},{}],543:[function(c,T,O){/**
* Character class utilities for XML NS 1.0 edition 3.
*
* @author Louis-Dominique Dubeau
* @license MIT
* @copyright Louis-Dominique Dubeau
*/function y(p){return p>=65&&p<=90||p===95||p>=97&&p<=122||p>=192&&p<=214||p>=216&&p<=246||p>=248&&p<=767||p>=880&&p<=893||p>=895&&p<=8191||p>=8204&&p<=8205||p>=8304&&p<=8591||p>=11264&&p<=12271||p>=12289&&p<=55295||p>=63744&&p<=64975||p>=65008&&p<=65533||p>=65536&&p<=983039}Object.defineProperty(O,"__esModule",{value:!0}),O.NC_NAME_START_CHAR="A-Z_a-zÀ-ÖØ-öø-˿Ͱ-ͽͿ-῿------<EFBFBD>𐀀-󯿿",O.NC_NAME_CHAR="-"+O.NC_NAME_START_CHAR+".0-9·̀-ͯ-",O.NC_NAME_START_CHAR_RE=new RegExp("^["+O.NC_NAME_START_CHAR+"]$","u"),O.NC_NAME_CHAR_RE=new RegExp("^["+O.NC_NAME_CHAR+"]$","u"),O.NC_NAME_RE=new RegExp("^["+O.NC_NAME_START_CHAR+"]["+O.NC_NAME_CHAR+"]*$","u"),O.isNCNameStartChar=y,O.isNCNameChar=function(p){return y(p)||p===45||p===46||p>=48&&p<=57||p===183||p>=768&&p<=879||p>=8255&&p<=8256}},{}]},{},[15])(15)})})(ln);var hn=fn(ar);const Kt=self;Kt.onmessage=async X=>{const{data:{type:Z,sheet:c,workbook:T}}=X;switch(Z){case"parseWorkbook":await dn(T);break;case"parseSheet":pn(c);break}},Kt.onerror=X=>{console.error(X)};const dn=async X=>{var Z,c;Tt.workbook=await new hn.Workbook().xlsx.load(X),mn(),yn((c=(Z=Tt.workbook)==null?void 0:Z.model)==null?void 0:c.themes)},pn=X=>{const Z=Tt.workbook,c=Tt.sheets;if(Z!=null&&Z.getWorksheet&&c.length){const T=Z.getWorksheet(X),O=or.create(T).toObject();Kt.postMessage({type:"parseSheet",sheetData:O})}},mn=()=>{const X=Tt.workbook;return X!=null&&X.worksheets&&(Tt.sheets=X.worksheets.filter(Z=>Z.rowCount).map(Z=>({id:Z.id,name:Z.name})),Kt.postMessage({type:"sheets",sheets:Tt.sheets})),[]},yn=X=>{Array.isArray(X)?X.forEach(kr):X&&Object.values(X).forEach(kr)},kr=X=>{const Z=Ft(X),T=Rt(Z,O=>O.tagName==="a:clrScheme")[0];if(T){const O=T.children,y={};for(let p=0;p<O.length;p++){const v=O[p];if(!v)continue;const d=v.children[0];if(!d)continue;let m;d.tagName==="a:sysClr"?m=d.attributes.lastClr:m=d.attributes.val,y[v.tagName.substring(2)]=m||"000000"}Tt.themeColors=y}}})();