le>>>=fe&7;fe-=fe&7;while(fe<32){if(ie===0){breake}ie--;le+=ee[te++]<<fe;fe+=8}if((le&65535)!==(le>>>16^65535)){e.msg="invalid stored block lengths";t.mode=Q;break}t.length=le&65535;le=0;fe=0;t.mode=N;if(r===d){breake};caseN:t.mode=L;caseL:ue=t.length;if(ue){if(ue>ie){ue=ie}if(ue>se){ue=se}if(ue===0){breake}a.arraySet(re,ee,te,ue,ae);ie-=ue;te+=ue;se-=ue;ae+=ue;t.length-=ue;break}t.mode=O;break;caseM:while(fe<14){if(ie===0){breake}ie--;le+=ee[te++]<<fe;fe+=8}t.nlen=(le&31)+257;le>>>=5;fe-=5;t.ndist=(le&31)+1;le>>>=5;fe-=5;t.ncode=(le&15)+4;le>>>=4;fe-=4;if(t.nlen>286||t.ndist>30){e.msg="too many length or distance symbols";t.mode=Q;break}t.have=0;t.mode=U;caseU:while(t.have<t.ncode){while(fe<3){if(ie===0){breake}ie--;le+=ee[te++]<<fe;fe+=8}t.lens[Ie[t.have++]]=le&7;le>>>=3;fe-=3}while(t.have<19){t.lens[Ie[t.have++]]=0}t.lencode=t.lendyn;t.lenbits=7;Te={bits:t.lenbits};Ce=l(f,t.lens,0,19,t.lencode,0,t.work,Te);t.lenbits=Te.bits;if(Ce){e.msg="invalid code lengths set";t.mode=Q;break}t.have=0;t.mode=H;caseH:while(t.have<t.nlen+t.ndist){for(;;){be=t.lencode[le&(1<<t.lenbits)-1];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(me<=fe){break}if(ie===0){breake}ie--;le+=ee[te++]<<fe;fe+=8}if(Ee<16){le>>>=me;fe-=me;t.lens[t.have++]=Ee}else{if(Ee===16){xe=me+2;while(fe<xe){if(ie===0){breake}ie--;le+=ee[te++]<<fe;fe+=8}le>>>=me;fe-=me;if(t.have===0){e.msg="invalid bit length repeat";t.mode=Q;break}Be=t.lens[t.have-1];ue=3+(le&3);le>>>=2;fe-=2}elseif(Ee===17){xe=me+3;while(fe<xe){if(ie===0){breake}ie--;le+=ee[te++]<<fe;fe+=8}le>>>=me;fe-=me;Be=0;ue=3+(le&7);le>>>=3;fe-=3}else{xe=me+7;while(fe<xe){if(ie===0){breake}ie--;le+=ee[te++]<<fe;fe+=8}le>>>=me;fe-=me;Be=0;ue=11+(le&127);le>>>=7;fe-=7}if(t.have+ue>t.nlen+t.ndist){e.msg="invalid bit length repeat";t.mode=Q;break}while(ue--){t.lens[t.have++]=Be}}}if(t.mode===Q){break}if(t.lens[256]===0){e.msg="invalid code -- missing end-of-block";t.mode=Q;break}t.lenbits=9;Te={bits:t.lenbits};Ce=l(o,t.lens,0,t.nlen,t.lencode,0,t.work,Te);t.lenbits=Te.bits;if(Ce){e.msg="invalid literal/lengths set";t.mode=Q;break}t.distbits=6;t.distcode=t.distdyn;Te={bits:t.distbits};Ce=l(c,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,Te);t.distbits=Te.bits;if(Ce){e.msg="invalid distances set";t.mode=Q;break}t.mode=W;if(r===d){breake};caseW:t.mode=z;casez:if(ie>=6&&se>=258){e.next_out=ae;e.avail_out=se;e.next_in=te;e.avail_in=ie;t.hold=le;t.bits=fe;s(e,ce);ae=e.next_out;re=e.output;se=e.avail_out;te=e.next_in;ee=e.input;ie=e.avail_in;le=t.hold;fe=t.bits;if(t.mode===O){t.back=-1}break}t.back=0;for(;;){be=t.lencode[le&(1<<t.lenbits)-1];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(me<=fe){break}if(ie===0){breake}ie--;le+=ee[te++]<<fe;fe+=8}if(ge&&(ge&240)===0){ke=me;we=ge;Se=Ee;for(;;){be=t.lencode[Se+((le&(1<<ke+we)-1)>>ke)];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(ke+me<=fe){break}if(ie===0){breake}ie--;le+=ee[te++]<<fe;fe+=8}le>>>=ke;fe-=ke;t.back+=ke}le>>>=me;fe-=me;t.back+=me;t.length=Ee;if(ge===0){t.mode=K;break}if(ge&32){t.back=-1;t.mode=O;break}if(ge&64){e.msg="invalid literal/length code";t.mode=Q;break}t.extra=ge&15;t.mode=V;caseV:if(t.extra){xe=t.extra;while(fe<xe){if(ie===0){breake}ie--;le+=ee[te++]<<fe;fe+=8}t.length+=le&(1<<t.extra)-1;le>>>=t.extra;fe-=t.extra;t.back+=t.extra}t.was=t.length;t.mode=X;caseX:for(;;){be=t.distcode[le&(1<<t.distbits)-1];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(me<=fe){break}if(ie===0){breake}ie--;le+=ee[te++]<<fe;fe+=8}if((ge&240)===0){ke=me;we=ge;Se=Ee;for(;;){be=t.distcode[Se+((le&(1<<ke+we)-1)>>ke)];me=be>>>24;ge=be>>>16&255;Ee=be&65535;if(ke+me<=fe){break}if(ie===0){breake}ie--;le+=ee[te++]<<fe;fe+=8}le>>>=ke;fe-=ke;t.back+=ke}le>>>=me;fe-=me;t.back+=me;if(ge&64){e.msg="invalid distance code";t.mode=Q;break}t.offset=Ee;t.extra=ge&15;t.mode=G;caseG:if(t.extra){xe=t.extra;while(fe<xe){if(ie===0){breake}ie--;le+=ee[te++]<<fe;fe+=8}t.offset+=le&(1<<t.extra)-1;le>>>=t.extra;fe-=t.extra;t.back+=t.extra}if(t.offset>t.dmax){e.msg="invalid distance too far back";t.mode=Q;break}t.mode=j;casej:if(se===0){breake}ue=ce-se;if(t.offset>ue){ue=t.offset-ue;if(ue>t.whave)
returnm(s.substr(0,s.length-o.length))+o}if(u=s.match(/^([#0]+)\.([#0]+)$/)){o=""+l.toFixed(Math.min(u[2].length,10)).replace(/([^0])0+$/,"$1");g=o.indexOf(".");varA=s.indexOf(".")-g,R=s.length-o.length-A;returnm(s.substr(0,A)+o+s.substr(s.length-R))}if(u=s.match(/^00,000\.([#0]*0)$/)){returnl<0?"-"+I(e,s,-l):T(""+l).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(e){return"00,"+(e.length<3?a(0,3-e.length):"")+e})+"."+a(0,u[1].length)}switch(s){case"###,###":;case"##,###":;case"#,###":vary=T(""+k);returny!=="0"?w+y:"";default:if(s.match(/\.[0#?]*$/))returnI(e,s.slice(0,s.lastIndexOf(".")),l)+m(s.slice(s.lastIndexOf(".")));}thrownewError("unsupported format |"+s+"|")}returnfunctionA(e,r,t){return(t|0)===t?I(e,r,t):S(e,r,t)}}();functionI(e){varr=[];vart=false;for(vara=0,n=0;a<e.length;++a)switch(e.charCodeAt(a)){case34:t=!t;break;case95:;case42:;case92:++a;break;case59:r[r.length]=e.substr(n,a-n);n=a+1;}r[r.length]=e.substr(n);if(t===true)thrownewError("Format |"+e+"| unterminated string ");returnr}e._split=I;varA=/\[[HhMmSs]*\]/;functionR(e){varr=0,t="",a="";while(r<e.length){switch(t=e.charAt(r)){case"G":if(c(e,r))r+=6;r++;break;case'"':for(;e.charCodeAt(++r)!==34&&r<e.length;)++r;++r;break;case"\\":r+=2;break;case"_":r+=2;break;case"@":++r;break;case"B":;case"b":if(e.charAt(r+1)==="1"||e.charAt(r+1)==="2")returntrue;case"M":;case"D":;case"Y":;case"H":;case"S":;case"E":;case"m":;case"d":;case"y":;case"h":;case"s":;case"e":;case"g":returntrue;case"A":;case"a":if(e.substr(r,3).toUpperCase()==="A/P")returntrue;if(e.substr(r,5).toUpperCase()==="AM/PM")returntrue;++r;break;case"[":a=t;while(e.charAt(r++)!=="]"&&r<e.length)a+=e.charAt(r);if(a.match(A))returntrue;break;case".":;case"0":;case"#":while(r<e.length&&("0#?.,E+-%".indexOf(t=e.charAt(++r))>-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1)){}break;case"?":while(e.charAt(++r)===t){}break;case"*":++r;if(e.charAt(r)==" "||e.charAt(r)=="*")++r;break;case"(":;case")":++r;break;case"1":;case"2":;case"3":;case"4":;case"5":;case"6":;case"7":;case"8":;case"9":while(r<e.length&&"0123456789".indexOf(e.charAt(++r))>-1){}break;case" ":++r;break;default:++r;break;}}returnfalse}e.is_date=R;functiony(e,r,t,a){varn=[],i="",s=0,l="",f="t",o,u,h;vard="H";while(s<e.length){switch(l=e.charAt(s)){case"G":if(!c(e,s))thrownewError("unrecognized character "+l+" in "+e);n[n.length]={t:"G",v:"General"};s+=7;break;case'"':for(i="";(h=e.charCodeAt(++s))!==34&&s<e.length;)i+=String.fromCharCode(h);n[n.length]={t:"t",v:i};++s;break;case"\\":varv=e.charAt(++s),p=v==="("||v===")"?v:"t";n[n.length]={t:p,v:v};++s;break;case"_":n[n.length]={t:"t",v:" "};s+=2;break;case"@":n[n.length]={t:"T",v:r};++s;break;case"B":;case"b":if(e.charAt(s+1)==="1"||e.charAt(s+1)==="2"){if(o==null){o=b(r,t,e.charAt(s+1)==="2");if(o==null)return""}n[n.length]={t:"X",v:e.substr(s,2)};f=l;s+=2;break};case"M":;case"D":;case"Y":;case"H":;case"S":;case"E":l=l.toLowerCase();case"m":;case"d":;case"y":;case"h":;case"s":;case"e":;case"g":if(r<0)return"";if(o==null){o=b(r,t);if(o==null)return""}i=l;while(++s<e.length&&e.charAt(s).toLowerCase()===l)i+=l;if(l==="m"&&f.toLowerCase()==="h")l="M";if(l==="h")l=d;n[n.length]={t:l,v:i};f=l;break;case"A":;case"a":varm={t:l,v:l};if(o==null)o=b(r,t);if(e.substr(s,3).toUpperCase()==="A/P"){if(o!=null)m.v=o.H>=12?"P":"A";m.t="T";d="h";s+=3}elseif(e.substr(s,5).toUpperCase()==="AM/PM"){if(o!=null)m.v=o.H>=12?"PM":"AM";m.t="T";s+=5;d="h"}else{m.t="t";++s}if(o==null&&m.t==="T")return"";n[n.length]=m;f=l;break;case"[":i=l;while(e.charAt(s++)!=="]"&&s<e.length)i+=e.charAt(s);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(A)){if(o==null){o=b(r,t);if(o==null)return""}n[n.length]={t:"Z",v:i.toLowerCase()};f=i.charAt(1)}elseif(i.indexOf("$")>-1){i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$";if(!R(e))n[n.length]={t:"t",v:i}}break;case".":if(o!=null){i=l;while(++s<e.length&&(l=e.charAt(s))==="0")i+=l;n[n.length]={t:"s",v:i};break};case"0":;case"#":i=l;while(++s<e.length&&"0#?.,E+-%".indexOf(l=e.charAt(s))>-1||l=="\\"&&e.charAt(s+
varr=e.replace(Oe,"").match(Fe);n.push({v:_e(r[2]),t:r[1]})});returnn}varNe=/(^\s|\s$|\n)/;functionLe(e,r){return"<"+e+(r.match(Ne)?' xml:space="preserve"':"")+">"+r+"</"+e+">"}functionMe(e){returnI(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}functionUe(e,r,t){return"<"+e+(x(t)?Me(t):"")+(x(r)?(r.match(Ne)?' xml:space="preserve"':"")+">"+r+"</"+e:"/")+">"}functionHe(e,r){try{returne.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throwt}return""}functionWe(e){switch(typeofe){case"string":returnUe("vt:lpwstr",e);case"number":returnUe((e|0)==e?"vt:i4":"vt:r8",String(e));case"boolean":returnUe("vt:bool",e?"true":"false");}if(einstanceofDate)returnUe("vt:filetime",He(e));thrownewError("Unable to serialize "+e)}varze={dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"};ze.main=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"];varVe={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};functionXe(e,r){vart=1-2*(e[r+7]>>>7);vara=((e[r+7]&127)<<4)+(e[r+6]>>>4&15);varn=e[r+6]&15;for(vari=5;i>=0;--i)n=n*256+e[r+i];if(a==2047)returnn==0?t*Infinity:NaN;if(a==0)a=-1022;else{a-=1023;n+=Math.pow(2,52)}returnt*Math.pow(2,a-52)*n}functionGe(e,r,t){vara=(r<0||1/r==-Infinity?1:0)<<7,n=0,i=0;vars=a?-r:r;if(!isFinite(s)){n=2047;i=isNaN(r)?26985:0}elseif(s==0)n=i=0;else{n=Math.floor(Math.log(s)/Math.LN2);i=s*Math.pow(2,52-n);if(n<=-1023&&(!isFinite(i)||i<Math.pow(2,52))){n=-1022}else{i-=Math.pow(2,52);n+=1023}}for(varl=0;l<=5;++l,i/=256)e[t+l]=i&255;e[t+6]=(n&15)<<4|i&15;e[t+7]=n>>4|a}varje=function(e){varr=[];for(vart=0;t<e[0].length;++t){r.push.apply(r,e[0][t])}returnr};varKe=je;varYe=function(e,r,t){vara=[];for(varn=r;n<t;n+=2)a.push(String.fromCharCode(hr(e,n)));returna.join("").replace(m,"")};var$e=Ye;varZe=function(e,r,t){vara=[];for(varn=r;n<r+t;++n)a.push(("0"+e[n].toString(16)).slice(-2));returna.join("")};varQe=Ze;varJe=function(e,r,t){vara=[];for(varn=r;n<t;n++)a.push(String.fromCharCode(ur(e,n)));returna.join("")};varqe=Je;varer=function(e,r){vart=vr(e,r);returnt>0?Je(e,r+4,r+4+t-1):""};varrr=er;vartr=function(e,r){vart=2*vr(e,r);returnt>0?Je(e,r+4,r+4+t-1):""};varar=tr;varnr,ir;nr=ir=functionob(e,r){vart=vr(e,r);returnt>0?Ye(e,r+4,r+4+t):""};varsr=function(e,r){vart=vr(e,r);returnt>0?Je(e,r+4,r+4+t):""};varlr=sr;varfr,or;fr=or=function(e,r){returnXe(e,r)};varcr=functioncb(e){returnArray.isArray(e)};if(d){Ye=function(e,r,t){if(!Buffer.isBuffer(e))return$e(e,r,t);returne.toString("utf16le",r,t).replace(m,"")};Ze=function(e,r,t){returnBuffer.isBuffer(e)?e.toString("hex",r,r+t):Qe(e,r,t)};er=functionub(e,r){if(!Buffer.isBuffer(e))returnrr(e,r);vart=e.readUInt32LE(r);returnt>0?e.toString("utf8",r+4,r+4+t-1):""};tr=functionhb(e,r){if(!Buffer.isBuffer(e))returnar(e,r);vart=2*e.readUInt32LE(r);returne.toString("utf16le",r+4,r+4+t-1)};nr=functiondb(e,r){if(!Buffer.isBuffer(e))returnir(e,r);vart=e.readUInt32LE(r);returne.toString("utf16le",r+4,r+4+t)};sr=functionvb(e,r){if(!Buffer.isBuffer(e))returnlr(e,r);vart=e.readUInt32LE(r);returne.toString("utf8",r+4,r+4+t)};Je=functionpb(e,r,t){returnBuffer.isBuffer(e)?e.toString("utf8",r,t):Je(e,r,t)};je=function(e){returne[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat
ze.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/metadata/core-properties";ha.CORE_PROPS="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties";varTa=function(){vare=newArray(_a.length);for(varr=0;r<_a.length;++r){vart=_a[r];vara="(?:"+t[0].substr(0,t[0].indexOf(":"))+":)"+t[0].substr(t[0].indexOf(":")+1);e[r]=newRegExp("<"+a+"[^>]*>([\\s\\S]*?)</"+a+">")}returne}();functionxa(e){varr={};e=_e(e);for(vart=0;t<_a.length;++t){vara=_a[t],n=e.match(Ta[t]);if(n!=null&&n.length>0)r[a[1]]=n[1];if(a[2]==="date"&&r[a[1]])r[a[1]]=H(r[a[1]])}returnr}varIa=Ue("cp:coreProperties",null,{"xmlns:cp":ze.CORE_PROPS,"xmlns:dc":ze.dc,"xmlns:dcterms":ze.dcterms,"xmlns:dcmitype":ze.dcmitype,"xmlns:xsi":ze.xsi});functionAa(e,r,t,a,n){if(n[e]!=null||r==null||r==="")return;n[e]=r;a[a.length]=t?Ue(e,r,t):Le(e,r)}functionRa(e,r){vart=r||{};vara=[se,Ia],n={};if(!e&&!t.Props)returna.join("");if(e){if(e.CreatedDate!=null)Aa("dcterms:created",typeofe.CreatedDate==="string"?e.CreatedDate:He(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n);if(e.ModifiedDate!=null)Aa("dcterms:modified",typeofe.ModifiedDate==="string"?e.ModifiedDate:He(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n)}for(vari=0;i!=_a.length;++i){vars=_a[i];varl=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:e?e[s[1]]:null;if(l===true)l="1";elseif(l===false)l="0";elseif(typeofl=="number")l=String(l);if(l!=null)Aa(s[0],l,null,a,n)}if(a.length>2){a[a.length]="</cp:coreProperties>";a[1]=a[1].replace("/>",">")}returna.join("")}varya=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]];ze.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties";ha.EXT_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties";functionDa(e,r,t){vara={};if(!r)r={};e=_e(e);ya.forEach(function(t){switch(t[2]){case"string":r[t[1]]=(e.match(Re(t[0]))||[])[1];break;case"bool":r[t[1]]=(e.match(Re(t[0]))||[])[1]==="true";break;case"raw":varn=e.match(newRegExp("<"+t[0]+"[^>]*>([\\s\\S]*?)</"+t[0]+">"));if(n&&n.length>0)a[t[1]]=n[1];break;}});if(a.HeadingPairs&&a.TitlesOfParts){varn=Pe(a.HeadingPairs,t);vari=Pe(a.TitlesOfParts,t).map(function(e){returne.v});vars=0,l=0;if(i.length>0)for(varf=0;f!==n.length;f+=2){l=+n[f+1].v;switch(n[f].v){case"Worksheets":;case"工作表":;case"Листы":;case"أوراق العمل":;case"ワークシート":;case"גליונות עבודה":;case"Arbeitsblätter":;case"Çalışma Sayfaları":;case"Feuilles de calcul":;case"Fogli di lavoro":;case"Folhas de cálculo":;case"Planilhas":;case"Regneark":;case"Werkbladen":r.Worksheets=l;r.SheetNames=i.slice(s,s+l);break;case"Named Ranges":;case"名前付き一覧":;case"Benannte Bereiche":;case"Navngivne områder":r.NamedRanges=l;r.DefinedNames=i.slice(s,s+l);break;case"Charts":;case"Diagramme":r.Chartsheets=l;r.ChartNames=i.slice(s,s+l);break;}s+=l}}returnr}varOa=Ue("Properties",null,{xmlns:ze.EXT_PROPS,"xmlns:vt":ze.vt});functionFa(e,r){vart=[],a={},n=Ue;if(!e)e={};e.Application="SheetJS";t[t.length]=se;t[t.length]=Oa;ya.forEach(function(r){if(e[r[1]]===undefined)return;vara;switch(r[2]){case"string":a=String(e[r[1]]);break;case"bool":a=e[r[1]]?"true":"false";break;}if(a!==undefined)t[t.length]=n(r[0],a)});t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"}));t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map(function(e){return"<vt:lpstr>"+ge(e)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"}));if(t.length>2){t[t.length]="</Properties>";t[1]=t[1].replace("/>",">")}returnt.join("")}ze.CUS
for(f=0;f<s.length;++f){if(f==null)continue;++c;if(typeofs[f]!=="string")thrownewError("DBF Invalid column name");if(s.indexOf(s[f])!==f)for(o=0;o<1024;++o)if(s.indexOf(s[f]+"_"+o)==-1){s[f]+="_"+o;break}}varh=et(e["!ref"]);vard=[];for(f=0;f<=h.e.c-h.s.c;++f){varv=[];for(o=0;o<l.length;++o){if(l[o][f]!=null)v.push(l[o][f])}if(v.length==0||s[f]==null){d[f]="?";continue}varp="",b="";for(o=0;o<v.length;++o){switch(typeofv[o]){case"number":b="B";break;case"string":b="C";break;case"boolean":b="L";break;case"object":b=v[o]instanceofDate?"D":"C";break;default:b="C";}p=p&&p!=b?"C":b;if(p=="C")break}u+=n[p]||0;d[f]=p}varm=a.next(32);m._W(4,318902576);m._W(4,l.length);m._W(2,296+32*c);m._W(2,u);for(f=0;f<4;++f)m._W(4,0);m._W(4,768);for(f=0,o=0;f<s.length;++f){if(s[f]==null)continue;varg=a.next(32);varE=(s[f].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);g._W(1,E,"sbcs");g._W(1,d[f]=="?"?"C":d[f],"sbcs");g._W(4,o);g._W(1,n[d[f]]||0);g._W(1,0);g._W(1,2);g._W(4,0);g._W(1,0);g._W(4,0);g._W(4,0);o+=n[d[f]]||0}vark=a.next(264);k._W(4,13);for(f=0;f<65;++f)k._W(4,0);for(f=0;f<l.length;++f){varw=a.next(u);w._W(1,0);for(o=0;o<s.length;++o){if(s[o]==null)continue;switch(d[o]){case"L":w._W(1,l[f][o]==null?63:l[f][o]?84:70);break;case"B":w._W(8,l[f][o]||0,"f");break;case"D":if(!l[f][o])w._W(8,"00000000","sbcs");else{w._W(4,("0000"+l[f][o].getFullYear()).slice(-4),"sbcs");w._W(2,("00"+(l[f][o].getMonth()+1)).slice(-2),"sbcs");w._W(2,("00"+l[f][o].getDate()).slice(-2),"sbcs")}break;case"C":varS=String(l[f][o]||"");w._W(1,S,"sbcs");for(c=0;c<250-S.length;++c)w._W(1,32);break;}}}a.next(1)._W(1,26);returna.end()}return{to_workbook:a,to_sheet:t,from_sheet:i}}();varks=function(){functione(e,t){switch(t.type){case"base64":returnr(h.decode(e),t);case"binary":returnr(e,t);case"buffer":returnr(e.toString("binary"),t);case"array":returnr(W(e),t);}thrownewError("Unrecognized type "+t.type)}functionr(e,r){vart=e.split(/[\n\r]+/),a=-1,n=-1,i=0,s=0,l=[];varf=[];varo=null;varc={},u=[],h=[],d=[];varv=0,p;for(;i!==t.length;++i){v=0;varb=t[i].trim();varm=b.replace(/;;/g,"").split(";").map(function(e){returne.replace(/\u0001/g,";")});varg=m[0],k;if(b.length>0)switch(g){case"ID":break;case"E":break;case"B":break;case"O":break;case"P":if(m[1].charAt(0)=="P")f.push(b.substr(3).replace(/;;/g,";"));break;case"C":for(s=1;s<m.length;++s)switch(m[s].charAt(0)){case"X":n=parseInt(m[s].substr(1))-1;break;case"Y":a=parseInt(m[s].substr(1))-1;n=0;for(p=l.length;p<=a;++p)l[p]=[];break;case"K":k=m[s].substr(1);if(k.charAt(0)==='"')k=k.substr(1,k.length-2);elseif(k==="TRUE")k=true;elseif(k==="FALSE")k=false;elseif(!isNaN(G(k))){k=G(k);if(o!==null&&E.is_date(o))k=N(k)}elseif(!isNaN(j(k).getDate())){k=H(k)}l[a][n]=k;o=null;break;case"E":varw=ho(m[s].substr(1),{r:a,c:n});l[a][n]=[l[a][n],w];break;default:if(r&&r.WTF)thrownewError("SYLK bad record "+b);}break;case"F":varS=0;for(s=1;s<m.length;++s)switch(m[s].charAt(0)){case"X":n=parseInt(m[s].substr(1))-1;++S;break;case"Y":a=parseInt(m[s].substr(1))-1;for(p=l.length;p<=a;++p)l[p]=[];break;case"M":v=parseInt(m[s].substr(1))/20;break;case"F":break;case"P":o=f[parseInt(m[s].substr(1))];break;case"S":break;case"D":break;case"N":break;case"W":d=m[s].substr(1).split(" ");for(p=parseInt(d[0],10);p<=parseInt(d[1],10);++p){v=parseInt(d[2],10);h[p-1]=v===0?{hidden:true}:{wch:v};Al(h[p-1])}break;case"C":n=parseInt(m[s].substr(1))-1;if(!h[n])h[n]={};break;case"R":a=parseInt(m[s].substr(1))-1;if(!u[a])u[a]={};if(v>0){u[a].hpt=v;u[a].hpx=Ol(v)}elseif(v===0)u[a].hidden=true;break;default:if(r&&r.WTF)thrownewError("SYLK bad record "+b);}if(S<1)o=null;break;default:if(r&&r.WTF)thrownewError("SYLK bad record "+b);}}if(u.length>0)c["!rows"]=u;if(h.length>0)c["!cols"]=h;return[l,c]}functiont(r,t){vara=e(r,t);varn=a[0],i=a[1];vars=nt(n,t);I(i).forEach(function(e){s[e]=i[e]});returns}functiona(e,r){returnat(t(e,r),r)}functionn(e,r,t,a,n){vari="C;Y"+(t+1)+";X"+(a+1)+";K";switch(e.t){case"n":i+=e.v||0;if(e.f&&!e.F)i+=";E"+po(e.f,{r:t,c:a});break;case"b":i+=e.v?"TRUE":"FALSE";break;case"e":i+=e.w|
break;case"<strike/>":n.strike=1;break;case"<outline":n.outline=i.val?Ce(i.val):1;break;case"<outline/>":n.outline=1;break;case"<shadow":n.shadow=i.val?Ce(i.val):1;break;case"<shadow/>":n.shadow=1;break;case"<condense":n.condense=i.val?Ce(i.val):1;break;case"<condense/>":n.condense=1;break;case"<extend":n.extend=i.val?Ce(i.val):1;break;case"<extend/>":n.extend=1;break;case"<sz":if(i.val)n.sz=+i.val;break;case"<sz/>":;case"</sz>":break;case"<vertAlign":if(i.val)n.vertAlign=i.val;break;case"<vertAlign/>":;case"</vertAlign>":break;case"<family":if(i.val)n.family=parseInt(i.val,10);break;case"<family/>":;case"</family>":break;case"<scheme":if(i.val)n.scheme=i.val;break;case"<scheme/>":;case"</scheme>":break;case"<charset":if(i.val=="1")break;i.codepage=_s[parseInt(i.val,10)];break;case"<color":if(!n.color)n.color={};if(i.auto)n.color.auto=Ce(i.auto);if(i.rgb)n.color.rgb=i.rgb.slice(-6);elseif(i.indexed){n.color.index=parseInt(i.indexed,10);vars=aa[n.color.index];if(n.color.index==81)s=aa[1];if(!s)thrownewError(e);n.color.rgb=s[0].toString(16)+s[1].toString(16)+s[2].toString(16)}elseif(i.theme){n.color.theme=parseInt(i.theme,10);if(i.tint)n.color.tint=parseFloat(i.tint);if(i.theme&&t.themeElements&&t.themeElements.clrScheme){n.color.rgb=bl(t.themeElements.clrScheme[n.color.theme].rgb,n.color.tint||0)}}break;case"<color/>":;case"</color>":break;default:if(a&&a.WTF)thrownewError("unrecognized "+i[0]+" in fonts");}})}functionMl(e,r,t){r.NumberFmt=[];vara=I(E._table);for(varn=0;n<a.length;++n)r.NumberFmt[a[n]]=E._table[a[n]];vari=e[0].match(fe);if(!i)return;for(n=0;n<i.length;++n){vars=ue(i[n]);switch(s[0]){case"<numFmts":;case"</numFmts>":;case"<numFmts/>":;case"<numFmts>":break;case"<numFmt":{varl=pe(_e(s.formatCode)),f=parseInt(s.numFmtId,10);r.NumberFmt[f]=l;if(f>0){if(f>392){for(f=392;f>60;--f)if(r.NumberFmt[f]==null)break;r.NumberFmt[f]=l}E.load(l,f)}}break;case"</numFmt>":break;default:if(t.WTF)thrownewError("unrecognized "+s[0]+" in numFmts");}}}functionUl(e,r){vart=["<numFmts>"];[[5,8],[23,26],[41,44],[50,392]].forEach(function(r){for(vara=r[0];a<=r[1];++a)if(e[a]!=null)t[t.length]=Ue("numFmt",null,{numFmtId:a,formatCode:ge(e[a])})});if(t.length===1)return"";t[t.length]="</numFmts>";t[0]=Ue("numFmts",null,{count:t.length-2}).replace("/>",">");returnt.join("")}varHl=["numFmtId","fillId","fontId","borderId","xfId"];varWl=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];functionzl(e,r,t){r.CellXf=[];vara;e[0].match(fe).forEach(function(e){varn=ue(e),i=0;switch(n[0]){case"<cellXfs":;case"<cellXfs>":;case"<cellXfs/>":;case"</cellXfs>":break;case"<xf":;case"<xf/>":a=n;deletea[0];for(i=0;i<Hl.length;++i)if(a[Hl[i]])a[Hl[i]]=parseInt(a[Hl[i]],10);for(i=0;i<Wl.length;++i)if(a[Wl[i]])a[Wl[i]]=Ce(a[Wl[i]],"");if(a.numFmtId>392){for(i=392;i>60;--i)if(r.NumberFmt[a.numFmtId]==r.NumberFmt[i]){a.numFmtId=i;break}}r.CellXf.push(a);break;case"</xf>":break;case"<alignment":;case"<alignment/>":vars={};if(n.vertical)s.vertical=n.vertical;if(n.horizontal)s.horizontal=n.horizontal;if(n.textRotation!=null)s.textRotation=n.textRotation;if(n.indent)s.indent=n.indent;if(n.wrapText)s.wrapText=n.wrapText;a.alignment=s;break;case"</alignment>":break;case"<protection":;case"</protection>":;case"<protection/>":break;case"<extLst":;case"</extLst>":break;case"<ext":break;default:if(t.WTF)thrownewError("unrecognized "+n[0]+" in cellXfs");}})}functionVl(e){varr=[];r[r.length]=Ue("cellXfs",null);e.forEach(function(e){r[r.length]=Ue("xf",null,e)});r[r.length]="</cellXfs>";if(r.length===2)return"";r[0]=Ue("cellXfs",null,{count:r.length-2}).replace("/>",">");returnr.join("")}varXl=functionEb(){vare=/<numFmts([^>]*)>[\S\s]*?<\/numFmts>/;varr=/<cellXfs([^>]*)>[\S\s]*?<\/cellXfs>/;vart=/<fills([^>]*)>[\S\s]*?<\/fills>/;vara=/<fonts([^>]*)>[\S\s]*?<\/fonts>/;varn=/<borders([^>]*)>[\S\s]*?<\/borders>/;returnfunctioni(s,l,f){varo={};if(!s)returno;s=s.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");varc;if(c=s.match(e))Ml