r.style=r.styles.length>0?r.styles[0]:"";r.defaults=t;deleter.calcchains;returnr}varSa=qe("Types",null,{xmlns:tr.CT,"xmlns:xsd":tr.xsd,"xmlns:xsi":tr.xsi});var_a=[["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels",Ea.rels[0]]].map(function(e){returnqe("Default",null,{Extension:e[0],ContentType:e[1]})});functionCa(e,r){vart=[],a;t[t.length]=Ee;t[t.length]=Sa;t=t.concat(_a);varn=function(n){if(e[n]&&e[n].length>0){a=e[n][0];t[t.length]=qe("Override",null,{PartName:(a[0]=="/"?"":"/")+a,ContentType:ga[n][r.bookType||"xlsx"]})}};vari=function(a){(e[a]||[]).forEach(function(e){t[t.length]=qe("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:ga[a][r.bookType||"xlsx"]})})};vars=function(r){(e[r]||[]).forEach(function(e){t[t.length]=qe("Override",null,{PartName:(e[0]=="/"?"":"/")+e,ContentType:Ea[r][0]})})};n("workbooks");i("sheets");i("charts");s("themes");["strs","styles"].forEach(n);["coreprops","extprops","custprops"].forEach(s);s("vba");s("comments");s("drawings");if(t.length>2){t[t.length]="</Types>";t[1]=t[1].replace("/>",">")}returnt.join("")}varBa={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};functionTa(e){varr=e.lastIndexOf("/");returne.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}functionxa(e,r){if(!e)returne;if(r.charAt(0)!=="/"){r="/"+r}vart={};vara={};(e.match(we)||[]).forEach(function(e){varn=Ce(e);if(n[0]==="<Relationship"){vari={};i.Type=n.Type;i.Target=n.Target;i.Id=n.Id;i.TargetMode=n.TargetMode;vars=n.TargetMode==="External"?n.Target:ge(n.Target,r);t[s]=i;a[n.Id]=i}});t["!id"]=a;returnt}tr.RELS="http://schemas.openxmlformats.org/package/2006/relationships";varya=qe("Relationships",null,{xmlns:tr.RELS});functionIa(e){varr=[Ee,ya];z(e["!id"]).forEach(function(t){r[r.length]=qe("Relationship",null,e["!id"][t])});if(r.length>2){r[r.length]="</Relationships>";r[1]=r[1].replace("/>",">")}returnr.join("")}functionAa(e,r,t,a,n){if(!n)n={};if(!e["!id"])e["!id"]={};if(r<0)for(r=1;e["!id"]["rId"+r];++r){}n.Id="rId"+r;n.Type=a;n.Target=t;if(n.Type==Ba.HLINK)n.TargetMode="External";if(e["!id"][n.Id])thrownewError("Cannot rewrite rId "+r);e["!id"][n.Id]=n;e[("/"+n.Target).replace("//","/")]=n;returnr}varRa="application/vnd.oasis.opendocument.spreadsheet";functionFa(e,r){vart=mv(e);vara;varn;while(a=bv.exec(t))switch(a[3]){case"manifest":break;case"file-entry":n=Ce(a[0],false);if(n.path=="/"&&n.type!==Ra)thrownewError("This OpenDocument is not a spreadsheet");break;case"encryption-data":;case"algorithm":;case"start-key-generation":;case"key-derivation":thrownewError("Unsupported ODS Encryption");default:if(r&&r.WTF)throwa;}}functionDa(e){varr=[Ee];r.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n');r.push(' <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(vart=0;t<e.length;++t)r.push(' <manifest:file-entry manifest:full-path="'+e[t][0]+'" manifest:media-type="'+e[t][1]+'"/>\n');r.push("</manifest:manifest>");returnr.join("")}functionOa(e,r,t){return[' <rdf:Description rdf:about="'+e+'">\n',' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(t||"odf")+"#"+r+'"/>\n'," </rdf:Description>\n"].join("")}functionPa(e,r){return[' <rdf:Description rdf:about="'+e+'">\n','<ns0:hasPartx
if(t.biff<8){e.l+=r;return}vara=e._R(2);varn=e._R(2);vari=Dn(e,a,t);vars=Dn(e,n,t);return[i,s]}functionas(e,r,t){vara=ri(e,6);e.l++;varn=e._R(1);r-=8;return[ou(e,r,t),n,a]}functionns(e,r,t){vara=ti(e,6);switch(t.biff){case2:e.l++;r-=7;break;case3:;case4:e.l+=2;r-=8;break;default:e.l+=6;r-=12;}return[a,su(e,r,t,a)]}functionis(e){varr=e._R(4)!==0;vart=e._R(4)!==0;vara=e._R(4);return[r,t,a]}functionss(e,r,t){if(t.biff<8)return;vara=e._R(2),n=e._R(2);vari=e._R(2),s=e._R(2);varl=Pn(e,0,t);if(t.biff<8)e._R(1);return[{r:a,c:n},l,s,i]}functionls(e,r,t){returnss(e,r,t)}functionfs(e,r){vart=[];vara=e._R(2);while(a--)t.push(qn(e,r));returnt}functionos(e){varr=Wr(2+e.length*8);r._W(2,e.length);for(vart=0;t<e.length;++t)ei(e[t],r);returnr}functioncs(e,r,t){if(t&&t.biff<8)returnhs(e,r,t);vara=ai(e,22);varn=fi(e,r-22,a[1]);return{cmo:a,ft:n}}varus=[];us[8]=function(e,r){vart=e.l+r;e.l+=10;vara=e._R(2);e.l+=4;e.l+=2;e.l+=2;e.l+=2;e.l+=4;varn=e._R(1);e.l+=n;e.l=t;return{fmt:a}};functionhs(e,r,t){e.l+=4;vara=e._R(2);varn=e._R(2);vari=e._R(2);e.l+=2;e.l+=2;e.l+=2;e.l+=2;e.l+=2;e.l+=2;e.l+=2;e.l+=2;e.l+=2;e.l+=6;r-=36;vars=[];s.push((us[a]||Hr)(e,r,t));return{cmo:[n,a,i],ft:s}}functionds(e,r,t){vara=e.l;varn="";try{e.l+=4;vari=(t.lastobj||{cmo:[0,0]}).cmo[1];vars;if([0,5,7,11,12,14].indexOf(i)==-1)e.l+=6;elses=Ln(e,6,t);varl=e._R(2);e._R(2);Tn(e,2);varf=e._R(2);e.l+=f;for(varo=1;o<e.lens.length-1;++o){if(e.l-a!=e.lens[o])thrownewError("TxO: bad continue record");varc=e[e.l];varu=Dn(e,e.lens[o+1]-e.lens[o]-1);n+=u;if(n.length>=(c?l:2*l))break}if(n.length!==l&&n.length!==l*2){thrownewError("cchText: "+l+" != "+n.length)}e.l=a+r;return{t:n}}catch(h){e.l=a+r;return{t:n}}}functionvs(e,r){vart=qn(e,8);e.l+=16;vara=Vn(e,r-24);return[t,a]}functionps(e){varr=Wr(24);vart=st(e[0]);r._W(2,t.r);r._W(2,t.r);r._W(2,t.c);r._W(2,t.c);vara="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" ");for(varn=0;n<16;++n)r._W(1,parseInt(a[n],16));returnT([r,zn(e[1])])}functionms(e,r){e._R(2);vart=qn(e,8);vara=e._R((r-10)/2,"dbcs-cont");a=a.replace(x,"");return[t,a]}functionbs(e){varr=e[1].Tooltip;vart=Wr(10+2*(r.length+1));t._W(2,2048);vara=st(e[0]);t._W(2,a.r);t._W(2,a.r);t._W(2,a.c);t._W(2,a.c);for(varn=0;n<r.length;++n)t._W(2,r.charCodeAt(n));t._W(2,0);returnt}functiongs(e){varr=[0,0],t;t=e._R(2);r[0]=da[t]||t;t=e._R(2);r[1]=da[t]||t;returnr}functionEs(e){if(!e)e=Wr(4);e._W(2,1);e._W(2,1);returne}functionks(e){varr=e._R(2);vart=[];while(r-->0)t.push(Gn(e,8));returnt}functionws(e){varr=e._R(2);vart=[];while(r-->0)t.push(Gn(e,8));returnt}functionSs(e){e.l+=2;varr={cxfs:0,crc:0};r.cxfs=e._R(2);r.crc=e._R(4);returnr}function_s(e,r,t){if(!t.cellStyles)returnHr(e,r);vara=t&&t.biff>=12?4:2;varn=e._R(a);vari=e._R(a);vars=e._R(a);varl=e._R(a);varf=e._R(2);if(a==2)e.l+=2;return{s:n,e:i,w:s,ixfe:l,flags:f}}functionCs(e,r){vart={};if(r<32)returnt;e.l+=16;t.header=Ht(e,8);t.footer=Ht(e,8);e.l+=2;returnt}functionBs(e,r,t){vara={area:false};if(t.biff!=5){e.l+=r;returna}varn=e._R(1);e.l+=3;if(n&16)a.area=true;returna}functionTs(e){varr=Wr(2*e);for(vart=0;t<e;++t)r._W(2,t+1);returnr}varxs=jn;varys=yn;varIs=On;functionAs(e){varr=e._R(2);vart=e._R(2);vara=e._R(4);varn={fmt:r,env:t,len:a,data:e.slice(e.l,e.l+a)};e.l+=a;returnn}functionRs(e,r,t){vara=jn(e,6);++e.l;varn=Pn(e,r-7,t);a.t="str";a.val=n;returna}functionFs(e){varr=jn(e,6);++e.l;vart=Ht(e,8);r.t="n";r.val=t;returnr}functionDs(e,r,t){vara=Wr(15);jv(a,e,r);a._W(8,t,"f");returna}functionOs(e){varr=jn(e,6);++e.l;vart=e._R(2);r.t="n";r.val=t;returnr}functionPs(e,r,t){vara=Wr(9);jv(a,e,r);a._W(2,t);returna}functionNs(e){varr=e._R(1);if(r===0){e.l++;return""}returne._R(r,"sbcs-cont")}functionLs(e,r){e.l+=6;e.l+=2;e.l+=1;e.l+=3;e.l+=1;e.l+=r-13}functionMs(e,r,t){vara=e.l+r;varn=jn(e,6);vari=e._R(2);vars=Dn(e,i,t);e.l=a;n.t="str";n.val=s;returnn}varUs=function(){vare={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122
;default:throw"Unrecognized encryption algorithm: "+a.AlgID;}if(!n)thrownewError("Encryption Flags/AlgID mismatch");a.AlgIDHash=e._R(4);a.KeySize=e._R(4);a.ProviderType=e._R(4);e.l+=8;a.CSPName=e._R(t-e.l>>1,"utf16le");e.l=t;returna}functionbl(e,r){vart={},a=e.l+r;e.l+=4;t.Salt=e.slice(e.l,e.l+16);e.l+=16;t.Verifier=e.slice(e.l,e.l+16);e.l+=16;e._R(4);t.VerifierHash=e.slice(e.l,a);e.l=a;returnt}functiongl(e){varr=ol(e);switch(r.Minor){case2:return[r.Minor,El(e,r)];case3:return[r.Minor,kl(e,r)];case4:return[r.Minor,wl(e,r)];}thrownewError("ECMA-376 Encrypted file unrecognized Version: "+r.Minor)}functionEl(e){varr=e._R(4);if((r&63)!=36)thrownewError("EncryptionInfo mismatch");vart=e._R(4);vara=ml(e,t);varn=bl(e,e.length-e.l);return{t:"Std",h:a,v:n}}functionkl(){thrownewError("File is password-protected: ECMA-376 Extensible")}functionwl(e){varr=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;vart=e._R(e.length-e.l,"utf8");vara={};t.replace(we,functionn(e){vart=Ce(e);switch(Be(t[0])){case"<?xml":break;case"<encryption":;case"</encryption>":break;case"<keyData":r.forEach(function(e){a[e]=t[e]});break;case"<dataIntegrity":a.encryptedHmacKey=t.encryptedHmacKey;a.encryptedHmacValue=t.encryptedHmacValue;break;case"<keyEncryptors>":;case"<keyEncryptors":a.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":a.uri=t.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":a.encs.push(t);break;default:throwt[0];}});returna}functionSl(e,r){vart={};vara=t.EncryptionVersionInfo=ol(e,4);r-=4;if(a.Minor!=2)thrownewError("unrecognized minor version code: "+a.Minor);if(a.Major>4||a.Major<2)thrownewError("unrecognized major version code: "+a.Major);t.Flags=e._R(4);r-=4;varn=e._R(4);r-=4;t.EncryptionHeader=ml(e,n);r-=n;t.EncryptionVerifier=bl(e,r);returnt}function_l(e){varr={};vart=r.EncryptionVersionInfo=ol(e,4);if(t.Major!=1||t.Minor!=1)throw"unrecognized version code "+t.Major+" : "+t.Minor;r.Salt=e._R(16);r.EncryptedVerifier=e._R(16);r.EncryptedVerifierHash=e._R(16);returnr}functionCl(e){varr=0,t;vara=fl(e);varn=a.length+1,i,s;varl,f,o;t=k(n);t[0]=a.length;for(i=1;i!=n;++i)t[i]=a[i-1];for(i=n-1;i>=0;--i){s=t[i];l=(r&16384)===0?0:1;f=r<<1&32767;o=l|f;r=o^s}returnr^52811}varBl=function(){vare=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0];varr=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163];vart=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628];vara=function(e){return(e/2|e*128)&255};varn=function(e,r){returna(e^r)};vari=function(e){vara=r[e.length-1];varn=104;for(vari=e.length-1;i>=0;--i){vars=e[i];for(varl=0;l!=7;++l){if(s&64)a^=t[n];s*=2;--n}}returna};returnfunction(r){vart=fl(r);vara=i(t);vars=t.length;varl=k(16);for(varf=0;f!=16;++f)l[f]=0;varo,c,u;if((s&1)===1){o=a>>8;l[s]=n(e[0],o);--s;o=a&255;c=t[t.length-1];l[s]=n(c,o)}while(s>0){--s;o=a>>8;l[s]=n(t[s],o);--s;o=a&255;l[s]=n(t[s],o)}s=15;u=15-t.length;while(u>0){o=a>>8;l[s]=n(e[u],o);--s;--u;o=a&255;l[s]=n(t[s],o);--s;--u}returnl}}();varTl=function(e,r,t,a,n){if(!n)n=r;if(!a)a=Bl(e);vari,s;for(i=0;i!=r.length;++i){s=r[i];s^=a[t];s=(s>>5|s<<3)&255;n[i]=s;++t}return[n,t,a]};varxl=function(e){varr=0,t=Bl(e);returnfunction(e){vara=Tl("",e,r,t);r=a[1];returna[0]}};functionyl(e,r,t,a){varn={key:Tn(e),verificationBytes:Tn(e)};if(t.password)n.verifier=Cl(t.password);a.valid=n.verificationBytes===n.verifier;if(a.valid)a.insitu=xl(t.password);
y.SheetNames=n.SheetNames||n.Sheets.map(function(e){returne.name});if(!l.supbooks){l.supbooks=y;if(n.Names)for(varA=0;A<n.Names.length;++A)y[0][A+1]=n.Names[A]}varR=[],F=[];varD=false;Vr(e,functionP(e,r,m){if(h)return;switch(m){case148:o=e;break;case0:d=e;if(l.sheetRows&&l.sheetRows<=d.r)h=true;w=Jr(b=d.r);l["!row"]=d.r;if(e.hidden||e.hpt||e.level!=null){if(e.hpt)e.hpx=Zl(e.hpt);F[e.r]=e}break;case2:;case3:;case4:;case5:;case6:;case7:;case8:;case9:;case10:;case11:v={t:e[2]};switch(e[2]){case"n":v.v=e[1];break;case"s":k=Bu[e[1]];v.v=k.t;v.r=k.r;break;case"b":v.v=e[1]?true:false;break;case"e":v.v=e[1];if(l.cellText!==false)v.w=Vt[v.v];break;case"str":v.t="s";v.v=e[1];break;}if(p=s.CellXf[e[0].iStyleRef])Ru(v,p.numFmtId,null,l,i,s);g=e[0].c;if(l.dense){if(!f[b])f[b]=[];f[b][g]=v}elsef[tt(g)+w]=v;if(l.cellFormula){B=false;for(C=0;C<T.length;++C){varA=T[C];if(d.r>=A[0].s.r&&d.r<=A[0].e.r)if(g>=A[0].s.c&&g<=A[0].e.c){v.F=ot(A[0]);B=true}}if(!B&&e.length>3)v.f=e[3]}if(c.s.r>d.r)c.s.r=d.r;if(c.s.c>g)c.s.c=g;if(c.e.r<d.r)c.e.r=d.r;if(c.e.c<g)c.e.c=g;if(l.cellDates&&p&&v.t=="n"&&I.is_date(I._table[p.numFmtId])){varO=I.parse_date_code(v.v);if(O){v.t="d";v.v=newDate(O.y,O.m-1,O.d,O.H,O.M,O.S,O.u)}}break;case1:if(!l.sheetStubs||u)break;v={t:"z",v:undefined};g=e[0].c;if(l.dense){if(!f[b])f[b]=[];f[b][g]=v}elsef[tt(g)+w]=v;if(c.s.r>d.r)c.s.r=d.r;if(c.s.c>g)c.s.c=g;if(c.e.r<d.r)c.e.r=d.r;if(c.e.c<g)c.e.c=g;break;case176:_.push(e);break;case494:varP=a["!id"][e.relId];if(P){e.Target=P.Target;if(e.loc)e.Target+="#"+e.loc;e.Rel=P}elseif(e.relId==""){e.Target="#"+e.loc}for(b=e.rfx.s.r;b<=e.rfx.e.r;++b)for(g=e.rfx.s.c;g<=e.rfx.e.c;++g){if(l.dense){if(!f[b])f[b]=[];if(!f[b][g])f[b][g]={t:"z",v:undefined};f[b][g].l=e}else{E=lt({c:g,r:b});if(!f[E])f[E]={t:"z",v:undefined};f[E].l=e}}break;case426:if(!l.cellFormula)break;T.push(e);S=l.dense?f[b][g]:f[tt(g)+w];S.f=iu(e[1],c,{r:d.r,c:g},y,l);S.F=ot(e[0]);break;case427:if(!l.cellFormula)break;x[lt(e[0].s)]=e[1];S=l.dense?f[b][g]:f[tt(g)+w];S.f=iu(e[1],c,{r:d.r,c:g},y,l);break;case60:if(!l.cellStyles)break;while(e.e>=e.s){R[e.e--]={width:e.w/256,hidden:!!(e.flags&1)};if(!D){D=true;Gl(e.w/256)}jl(R[e.e+1])}break;case161:f["!autofilter"]={ref:ot(e)};break;case476:f["!margins"]=e;break;case147:if(!n.Sheets[t])n.Sheets[t]={};if(e.name)n.Sheets[t].CodeName=e.name;break;case137:if(!n.Views)n.Views=[{}];if(!n.Views[0])n.Views[0]={};if(e.RTL)n.Views[0].RTL=true;break;case485:break;case175:;case644:;case625:;case562:;case396:;case1112:;case1146:;case471:;case1050:;case649:;case1105:;case49:;case589:;case607:;case564:;case1055:;case168:;case174:;case1180:;case499:;case64:;case1053:;case550:;case171:;case167:;case1177:;case169:;case1181:;case551:;case552:;case661:;case639:;case478:;case151:;case537:;case477:;case536:;case1103:;case680:;case1104:;case1024:;case152:;case663:;case535:;case678:;case504:;case1043:;case428:;case170:;case50:;case2070:;case1045:break;case35:u=true;break;case36:u=false;break;case37:break;case38:break;default:if((r||"").indexOf("Begin")>0){}elseif((r||"").indexOf("End")>0){}elseif(!u||l.WTF)thrownewError("Unexpected record "+m+" "+r);}},l);deletel.supbooks;deletel["!row"];if(!f["!ref"]&&(c.s.r<2e6||o&&(o.e.r>0||o.e.c>0||o.s.r>0||o.s.c>0)))f["!ref"]=ot(o||c);if(l.sheetRows&&f["!ref"]){varO=ct(f["!ref"]);if(l.sheetRows<+O.e.r){O.e.r=l.sheetRows-1;if(O.e.r>c.e.r)O.e.r=c.e.r;if(O.e.r<O.s.r)O.s.r=O.e.r;if(O.e.c>c.e.c)O.e.c=c.e.c;if(O.e.c<O.s.c)O.s.c=O.e.c;f["!fullref"]=f["!ref"];f["!ref"]=ot(O)}}if(_.length>0)f["!merges"]=_;if(R.length>0)f["!cols"]=R;if(F.length>0)f["!rows"]=F;returnf}functionYh(e,r,t,a,n,i){if(r.v===undefined)return"";vars="";switch(r.t){case"b":s=r.v?"1":"0";break;case"d":r=ne(r);r.z=r.z||I._table[14];r.v=Q(te(r.v));r.t="n";break;case"n":;case"e":s=""+r.v;break;default:s=r.v;break;}varl={r:t,c:a};l.s=Au(n.cellXfs,r,n);if(r.l)i["!links"].push([lt(l),r.l]);if(r.c)i["!comments"].push([lt(l),r.c]);switch(r.t){case"s":;case"str":if(n.bookSST){s=xu(n.Strings,r.v);l.t="s";l.v=s;Xr
c=Jr(v);for(varp=h.s.c;p<=h.e.c;++p){if(v===h.s.r)u[p]=tt(p);o=u[p]+c;varm=f?(i[v]||[])[p]:i[o];if(!m)continue;ap(a,m,v,p,r);if(d&&m.l)i["!links"].push([o,m.l])}}varb=l.CodeName||l.name||n;if(d&&s.Views)Gv(a,"Window2",Ti(s.Views[0]));if(d&&(i["!merges"]||[]).length)Gv(a,"MergeCells",os(i["!merges"]));if(d)tp(a,i);Gv(a,"CodeName",Nn(b,r));if(d)ep(a,i);Gv(a,"EOF");returna.end()}functionip(e,r,t){vara=zr();varn=(e||{}).Workbook||{};vari=n.Sheets||[];vars=n.WBProps||{};varl=t.biff==8,f=t.biff==5;Gv(a,2057,ci(e,5,t));if(t.bookType=="xla")Gv(a,"Addin");Gv(a,"InterfaceHdr",l?xn(1200):null);Gv(a,"Mms",Sn(2));if(f)Gv(a,"ToolbarHdr");if(f)Gv(a,"ToolbarEnd");Gv(a,"InterfaceEnd");Gv(a,"WriteAccess",di("SheetJS",t));Gv(a,"CodePage",xn(l?1200:1252));if(l)Gv(a,"DSF",xn(0));if(l)Gv(a,"Excel9File");Gv(a,"RRTabId",Ts(e.SheetNames.length));if(l&&e.vbaraw){Gv(a,"ObProj");varo=s.CodeName||"ThisWorkbook";Gv(a,"CodeName",Nn(o,t))}Gv(a,"BuiltInFnGroupCount",xn(17));Gv(a,"WinProtect",Bn(false));Gv(a,"Protect",Bn(false));Gv(a,"Password",xn(0));if(l)Gv(a,"Prot4Rev",Bn(false));if(l)Gv(a,"Prot4RevPass",xn(0));Gv(a,"Window1",Ci(t));Gv(a,"Backup",Bn(false));Gv(a,"HideObj",xn(0));Gv(a,"Date1904",Bn(wd(e)=="true"));Gv(a,"CalcPrecision",Bn(true));if(l)Gv(a,"RefreshAll",Bn(false));Gv(a,"BookBool",xn(0));Jv(a,e,t);qv(a,e.SSF,t);rp(a,t);if(l)Gv(a,"UsesELFs",Bn(false));varc=a.end();varu=zr();if(l)Gv(u,"Country",Es());Gv(u,"EOF");varh=u.end();vard=zr();varv=0,p=0;for(p=0;p<e.SheetNames.length;++p)v+=(l?12:11)+(l?2:1)*e.SheetNames[p].length;varm=c.length+v+h.length;for(p=0;p<e.SheetNames.length;++p){varb=i[p]||{};Gv(d,"BoundSheet8",mi({pos:m,hs:b.Hidden||0,dt:0,name:e.SheetNames[p]},t));m+=r[p].length}varg=d.end();if(v!=g.length)thrownewError("BS8 "+v+" != "+g.length);varE=[];if(c.length)E.push(c);if(g.length)E.push(g);if(h.length)E.push(h);returnsr([E])}functionsp(e,r){vart=r||{};vara=[];if(e&&!e.SSF){e.SSF=I.get_table()}if(e&&e.SSF){A(I);I.load_table(e.SSF);t.revssf=j(e.SSF);t.revssf[e.SSF[65535]]=0;t.ssf=e.SSF}t.cellXfs=[];t.Strings=[];t.Strings.Count=0;t.Strings.Unique=0;Au(t.cellXfs,{},{revssf:{General:0}});for(varn=0;n<e.SheetNames.length;++n)a[a.length]=np(n,t,e);a.unshift(ip(e,a,t));returnsr([a])}functionlp(e,r){vart=r||{};switch(t.biff||2){case8:;case5:returnsp(e,r);case4:;case3:;case2:returnQv(e,r);}thrownewError("invalid type "+t.bookType+" for BIFF")}varfp=function(){functione(e,r){vart=r||{};if(m!=null&&t.dense==null)t.dense=m;vara=t.dense?[]:{};varn=e.match(/<table/i);if(!n)thrownewError("Invalid HTML: could not find <table>");vari=e.match(/<\/table/i);vars=n.index,l=i&&i.index||e.length;varf=oe(e.slice(s,l),/(:?<tr[^>]*>)/i,"<tr>");varo=-1,c=0,u=0,h=0;vard={s:{r:1e7,c:1e7},e:{r:0,c:0}};varv=[];for(s=0;s<f.length;++s){varp=f[s].trim();varb=p.slice(0,3).toLowerCase();if(b=="<tr"){++o;c=0;continue}if(b!="<td")continue;varg=p.split(/<\/td>/i);for(l=0;l<g.length;++l){varE=g[l].trim();if(E.slice(0,3).toLowerCase()!="<td")continue;vark=E,w=0;while(k.charAt(0)=="<"&&(w=k.indexOf(">"))>-1)k=k.slice(w+1);varS=Ce(E.slice(0,E.indexOf(">")));h=S.colspan?+S.colspan:1;if((u=+S.rowspan)>0||h>1)v.push({s:{r:o,c:c},e:{r:o+(u||1)-1,c:c+h-1}});var_=S.t||"";if(!k.length){c+=h;continue}k=Ge(ye(k));if(d.s.r>o)d.s.r=o;if(d.e.r<o)d.e.r=o;if(d.s.c>c)d.s.c=c;if(d.e.c<c)d.e.c=c;if(!k.length)continue;varC={t:"s",v:k};if(t.raw||!k.trim().length||_=="s"){}elseif(k==="TRUE")C={t:"b",v:true};elseif(k==="FALSE")C={t:"b",v:false};elseif(!isNaN(se(k)))C={t:"n",v:se(k)};elseif(!isNaN(le(k).getDate())){C={t:"d",v:te(k)};if(!t.cellDates)C={t:"n",v:Q(C.v)};C.z=t.dateNF||I._table[14]}if(t.dense){if(!a[o])a[o]=[];a[o][c]=C}elsea[lt({r:o,c:c})]=C;c+=h}}a["!ref"]=ot(d);returna}functionr(r,t){returndt(e(r,t),t)}functiont(e,r,t,a){varn=e["!merges"]||[];vari=[];vars="<td>"+(a.editable?'<span contenteditable="true"></span>':"")+"</td>";for(varl=r.s.c;l<=r.e.c;++l){varf=0,o=0;for(varc=0;c<n.length;++c){if(n[c].s.r>t||n[c].s.c>l)continue;if(n[c].e.r<t||n[c].e.c<l)continue;if(n[c].s.r<t||n[c].s.c<l){f=-1;break}f=n[c].e.r
t=newbe(a,{base64:false});break;case"buffer":t=newbe(a);break;default:thrownewError("Unrecognized type "+n.type);}returnNp(t,n)}functionVp(e,r){vart=0;e:while(t<e.length)switch(e.charCodeAt(t)){case10:;case13:;case32:++t;break;case60:returnEv(e.slice(t),r);default:breake;}returnzs.to_workbook(e,r)}functionzp(e,r){vart="",a=Up(e,r);switch(r.type){case"base64":t=g.decode(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=ae(e);break;default:thrownewError("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=Ue(t);returnVp(t,r)}functionXp(e,r){vart=e;if(r.type=="base64")t=g.decode(t);t=cptable.utils.decode(1200,t.slice(2),"str");r.type="binary";returnVp(t,r)}functionGp(e){return!e.match(/[^\x00-\x7F]/)?e:He(e)}functionjp(e,r,t,a){if(a){t.type="string";returnzs.to_workbook(e,t)}returnzs.to_workbook(r,t)}functionKp(e,r){c();if(typeofArrayBuffer!=="undefined"&&einstanceofArrayBuffer)returnKp(newUint8Array(e),r);vart=e,a=[0,0,0,0],n=false;vari=r||{};Tu={};if(i.dateNF)Tu.dateNF=i.dateNF;if(!i.type)i.type=E&&Buffer.isBuffer(e)?"buffer":"base64";if(i.type=="file"){i.type=E?"buffer":"binary";t=V(e)}if(i.type=="string"){n=true;i.type="binary";t=Gp(e)}if(i.type=="array"&&typeofUint8Array!=="undefined"&&einstanceofUint8Array&&typeofArrayBuffer!=="undefined"){vars=newArrayBuffer(3),l=newUint8Array(s);l.foo="bar";if(!l.foo){i=ne(i);i.type="array";returnKp(B(t),i)}}switch((a=Up(t,i))[0]){case208:returnHp(L.read(t,i),i);case9:returnUv(t,i);case60:returnEv(t,i);case73:if(a[1]===68)returnXs(t,i);break;case84:if(a[1]===65&&a[2]===66&&a[3]===76)returnWs.to_workbook(t,i);break;case80:if(a[1]===75&&a[2]<32&&a[3]<32)returnWp(t,i);break;case239:returna[3]===60?Ev(t,i):jp(e,t,i,n);case255:if(a[1]===254){returnXp(t,i)}break;case0:if(a[1]===0&&a[2]>=2&&a[3]===0)returnGs.to_workbook(t,i);break;case3:;case131:;case139:;case140:returnUs.to_workbook(t,i);case123:if(a[1]===92&&a[2]===114&&a[3]===116)returnRl.to_workbook(t,i);break;case10:;case13:;case32:returnzp(t,i);}if(a[2]<=12&&a[3]<=31)returnUs.to_workbook(t,i);returnjp(e,t,i,n)}functionYp(e,r){vart=r||{};t.type="file";returnKp(e,t)}function$p(e,r){vart=r||{};vara=Mp(e,t);varn={};if(t.compression)n.compression="DEFLATE";switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":thrownewError("'string' output type invalid for '"+t.bookType+"' files");case"buffer":;case"file":n.type=E?"nodebuffer":"string";break;default:thrownewError("Unrecognized type "+t.type);}if(t.type==="file")returnW(t.file,a.generate(n));vari=a.generate(n);returnt.type=="string"?Ue(i):i}functionZp(e,r){vart=r||{};vara=Hv(e,t);switch(t.type){case"base64":;case"binary":break;case"buffer":;case"array":t.type="";break;case"file":returnW(t.file,L.write(a,{type:E?"buffer":""}));case"string":thrownewError("'string' output type invalid for '"+t.bookType+"' files");default:thrownewError("Unrecognized type "+t.type);}returnL.write(a,t)}functionQp(e,r,t){if(!t)t="";vara=t+e;switch(r.type){case"base64":returng.encode(He(a));case"binary":returnHe(a);case"string":returne;case"file":returnW(r.file,a,"utf8");case"buffer":{if(E)returnnewBuffer(a,"utf8");elsereturnQp(a,{type:"binary"}).split("").map(function(e){returne.charCodeAt(0)})};}thrownewError("Unrecognized type "+r.type)}functionJp(e,r){switch(r.type){case"base64":returng.encode(e);case"binary":returne;case"string":returne;case"file":returnW(r.file,e,"binary");case"buffer":{if(E)returnnewBuffer(e,"binary");elsereturne.split("").map(function(e){returne.charCodeAt(0)})};}thrownewError("Unrecognized type "+r.type)}functionqp(e,r){switch(r.type){case"string":;case"base64":;case"binary":vart="";for(vara=0;a<e.length;++a)t+=String.fromCharCode(e[a]);returnr.type=="base64"?g.encode(t):r.type=="string"?Ue(t):t;case"file":returnW(r.file,e);case"buffer":returne;default:thrownewError("Unrecognized type "+r.type);}}functionem(e,r){Bd(e);vart=r||{};if(t.type=="array"){t.type="binary";