vara=e._R(2);varn=e._R(1);vari=e._R(1);return{s:{c:n,r:t},e:{c:i,r:a}}}varVn=Hn;functionGn(e,r){e.l+=4;vart=e._R(2);vara=e._R(2);varn=e._R(2);e.l+=12;return[a,t,n]}functionXn(e,r){vart={};e.l+=4;e.l+=16;t.fSharedNote=e._R(2);e.l+=4;returnt}functionzn(e,r){vart={};e.l+=4;e.cf=e._R(2);returnt}functionjn(e,r){e.l+=2;e.l+=e._R(2)}varKn={0:jn,4:jn,5:jn,6:jn,7:zn,8:jn,9:jn,10:jn,11:jn,12:jn,13:Xn,14:jn,15:jn,16:jn,17:jn,18:jn,19:jn,20:jn,21:Gn};functionYn(e,r,t){vara=e.l+r;varn=[];while(e.l<a){vari=e._R(2);e.l-=2;try{n.push(Kn[i](e,a-e.l))}catch(s){e.l=a;returnn}}if(e.l!=a)e.l=a;returnn}function$n(e,r){vart={BIFFVer:0,dt:0};t.BIFFVer=e._R(2);r-=2;if(r>=2){t.dt=e._R(2);e.l-=2}switch(t.BIFFVer){case1536:;case1280:;case2:;case7:break;default:if(r>6)thrownewError("Unexpected BIFF Ver "+t.BIFFVer);}e._R(r);returnt}functionQn(e,r,t){vara=1536,n=16;switch(t.bookType){case"biff8":break;case"biff5":a=1280;n=8;break;case"biff4":a=4;n=6;break;case"biff3":a=3;n=6;break;case"biff2":a=2;n=4;break;default:thrownewError("unsupported BIFF version");}vari=Rr(n);i._W(2,a);i._W(2,r);if(n>4)i._W(2,29282);if(n>6)i._W(2,1997);if(n>8){i._W(2,49161);i._W(2,1);i._W(2,1798);i._W(2,0)}returni}functionZn(e,r){if(r===0)return1200;vart;if((t=e._R(2))!==1200){}return1200}functionJn(e,r,t){if(t.enc){e.l+=r;return""}vara=e.l;varn=Bn(e,0,t);e._R(r+a-e.l);returnn}functionqn(e,r){vart=!r||r.biff==8;vara=Rr(t?112:54);a._W(r.biff==8?2:1,7);a._W(1,0);a._W(4,859007059);a._W(4,5458548);while(a.l<a.length)a._W(1,0);returna}functionei(e,r,t){vara=e._R(4);varn=e._R(1)&3;vari=e._R(1);switch(i){case0:i="Worksheet";break;case1:i="Macrosheet";break;case2:i="Chartsheet";break;case6:i="VBAModule";break;}vars=En(e,0,t);if(s.length===0)s="Sheet1";return{pos:a,hs:n,dt:i,name:s}}functionri(e,r){vart=!r||r.biff>=8?2:1;vara=Rr(8+t*e.name.length);a._W(4,e.pos);a._W(1,e.hs||0);a._W(1,e.dt);a._W(1,e.name.length);if(r.biff>=8)a._W(1,1);a._W(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");returna.slice(0,a.l)}functionti(e,r){vart=e.l+r;vara=e._R(4);varn=e._R(4);vari=[];for(vars=0;s!=n&&e.l<t;++s){i.push(Sn(e))}i.Count=a;i.Unique=n;returni}functionai(e,r){vart={};t.dsst=e._R(2);e.l+=r-2;returnt}functionni(e,r){vart={};t.r=e._R(2);t.c=e._R(2);t.cnt=e._R(2)-t.c;vara=e._R(2);e.l+=4;varn=e._R(1);e.l+=3;if(n&7)t.level=n&7;if(n&32)t.hidden=true;if(n&64)t.hpt=a/20;returnt}functionii(e,r){vart=yn(e);if(t.type!=2211)thrownewError("Invalid Future Record "+t.type);vara=e._R(4);returna!==0}functionsi(e,r){e._R(2);returne._R(4)}functionli(e,r,t){vara=0;if(!(t&&t.biff==2)){a=e._R(2)}varn=e._R(2);if(t&&t.biff==2){a=1-(n>>15);n&=32767}vari={Unsynced:a&1,DyZero:(a&2)>>1,ExAsc:(a&4)>>2,ExDsc:(a&8)>>3};return[i,n]}functionfi(e,r){vart=e._R(2),a=e._R(2),n=e._R(2),i=e._R(2);vars=e._R(2),l=e._R(2),f=e._R(2);varc=e._R(2),o=e._R(2);return{Pos:[t,a],Dim:[n,i],Flags:s,CurTab:l,FirstTab:f,Selected:c,TabRatio:o}}functionci(e){varr=Rr(18);r._W(2,0);r._W(2,0);r._W(2,29280);r._W(2,17600);r._W(2,56);r._W(2,0);r._W(2,0);r._W(2,1);r._W(2,500);returnr}functionoi(e,r,t){vara={dyHeight:e._R(2),fl:e._R(2)};switch(t&&t.biff||8){case2:break;case3:;case4:e.l+=2;break;default:e.l+=10;break;}a.name=En(e,0,t);returna}functionui(e,r){vart=_n(e);t.isst=e._R(4);returnt}functionhi(e,r,t){vara=e.l+r;varn=_n(e,6);if(t.biff==2)e.l++;vari=Bn(e,a-e.l,t);n.val=i;returnn}functiondi(e,r,t,a){varn=!a||a.biff==8;vari=Rr(6+2++n+(1+n)*t.length);Pn(e,r,0,i);i._W(2,t.length);if(n)i._W(1,1);i._W((1+n)*t.length,t,n?"utf16le":"sbcs");returni}functionvi(e,r,t){vara=e._R(2);varn=wn(e,0,t);return[a,n]}varbi=wn;functionpi(e,r,t){vara=e.l+r;varn=t.biff==8||!t.biff?4:2;vari=e._R(n),s=e._R(n);varl=e._R(2),f=e._R(2);e.l=a;return{s:{r:i,c:l},e:{r:s,c:f}}}functionmi(e,r){vart=r.biff==8||!r.biff?4:2;vara=Rr(2*t+6);a._W(t,e.s.r);a._W(t,e.e.r+1);a._W(2,e.s.c);a._W(2,e.e.c+1);a._W(2,0);returna}functiongi(e,r){vart=e._R(2),a=e._R(2);varn=Ln(e);return{r:t,c:a,ixfe:n[0],rknum:n[1]}}functionEi(e,r){vart=e.l+r-2;vara=e._R(2),n=e._R(2);v
3:{n:"??",f:Ir},4:{n:"??",f:Ir},5:{n:"??",f:Ir},6:{n:"??",f:Ir},7:{n:"??",f:Ir},9:{n:"??",f:Ir},10:{n:"??",f:Ir},11:{n:"??",f:Ir},12:{n:"??",f:Ir},14:{n:"??",f:Ir},15:{n:"??",f:Ir},16:{n:"??",f:Ir},17:{n:"??",f:Ir},18:{n:"??",f:Ir},19:{n:"??",f:Ir},21:{n:"??",f:Ir},22:{n:"LABEL16",f:u},23:{n:"NUMBER17",f:v},24:{n:"NUMBER18",f:d},25:{n:"FORMULA19",f:p},26:{n:"??",f:Ir},27:{n:"??",f:Ir},28:{n:"??",f:Ir},29:{n:"??",f:Ir},30:{n:"??",f:Ir},31:{n:"??",f:Ir},33:{n:"??",f:Ir},37:{n:"NUMBER25",f:m},39:{n:"NUMBER27",f:g},40:{n:"FORMULA28",f:S},255:{n:"",f:Ir}};return{to_workbook:r}}();varTs={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969};varIs=functiongp(){vare=De("t"),r=De("rPr"),t=/<(?:\w+:)?r>/g,a=/<\/(?:\w+:)?r>/,n=/\r\n/g;vari=functionl(e,r,t){vara={},n=65001,i="";vars=e.match(fe),l=0;if(s)for(;l!=s.length;++l){varf=ue(s[l]);switch(f[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!f.val)break;case"<shadow>":;case"<shadow/>":a.shadow=1;break;case"</shadow>":break;case"<charset":if(f.val=="1")break;n=Ts[parseInt(f.val,10)];break;case"<outline":if(!f.val)break;case"<outline>":;case"<outline/>":a.outline=1;break;case"</outline>":break;case"<rFont":a.name=f.val;break;case"<sz":a.sz=f.val;break;case"<strike":if(!f.val)break;case"<strike>":;case"<strike/>":a.strike=1;break;case"</strike>":break;case"<u":if(!f.val)break;switch(f.val){case"double":a.uval="double";break;case"singleAccounting":a.uval="single-accounting";break;case"doubleAccounting":a.uval="double-accounting";break;};case"<u>":;case"<u/>":a.u=1;break;case"</u>":break;case"<b":if(f.val=="0")break;case"<b>":;case"<b/>":a.b=1;break;case"</b>":break;case"<i":if(f.val=="0")break;case"<i>":;case"<i/>":a.i=1;break;case"</i>":break;case"<color":if(f.rgb)a.color=f.rgb.substr(2,6);break;case"<family":a.family=f.val;break;case"<vertAlign":i=f.val;break;case"<scheme":break;default:if(f[0].charCodeAt(1)!==47)throw"Unrecognized rich format "+f[0];}}varc=[];if(a.u)c.push("text-decoration: underline;");if(a.uval)c.push("text-underline-style:"+a.uval+";");if(a.sz)c.push("font-size:"+a.sz+";");if(a.outline)c.push("text-effect: outline;");if(a.shadow)c.push("text-shadow: auto;");r.push('<span style="'+c.join("")+'">');if(a.b){r.push("<b>");t.push("</b>")}if(a.i){r.push("<i>");t.push("</i>")}if(a.strike){r.push("<s>");t.push("</s>")}if(i=="superscript")i="sup";elseif(i=="subscript")i="sub";if(i!=""){r.push("<"+i+">");t.push("</"+i+">")}t.push("</span>");returnn};functions(t){vara=[[],"",[]];vars=t.match(e),l=65001;if(!x(s))return"";a[1]=s[1];varf=t.match(r);if(x(f))l=i(f[1],a[0],a[2]);returna[0].join("")+a[1].replace(n,"<br/>")+a[2].join("")}returnfunctionf(e){returne.replace(t,"").split(a).map(s).join("")}}();varxs=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,As=/<(?:\w+:)?r>/;varRs=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;functionDs(e,r){vart=r?r.cellHTML:true;vara={};if(!e)returnnull;varn;if(e.match(/^\s*<(?:\w+:)?t[^>]*>/)){a.t=be(Te(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||""));a.r=Te(e);if(t)a.h=ke(a.t)}elseif(n=e.match(As)){a.r=Te(e);a.t=be(Te((e.replace(Rs,"").match(xs)||[]).join("").replace(fe,"")));if(t)a.h=Is(a.r)}returna}varFs=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/;varOs=/<(?:\w+:)?(?:si|sstItem)>/g;var_s=/<\/(?:\w+:)?(?:si|sstItem)>/;functionPs(e,r){vart=[],a="";if(!e)returnt;varn=e.match(Fs);if(x(n)){a=n[2].replace(Os,"").split(_s);for(vari=0;i!=a.length;++i){vars=Ds(a[i].trim(),r);if(s!=null)t[t.length]=s}n=ue(n[1]);t.Count=n.count;t.Unique=n.uniqueCount}returnt}ha.SST="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings";varys=/^\s|\s$|[\t\n\r]/;functionNs(e,r){if(!r.bookSST)return"";vart=[se];t[t.length]=Ue("sst",null,{xmlns:Ve.main[0],count:e.Count,uniqueCount:e.Unique});for(vara=0;a!=e.length;++a){if(e[a]==null)continue;varn=e[a];vari="<si>";if(n.r)i+=n.r;else{i+="<t";if(!n.t)n.t="";if(n.t.match(ys))i+='xml:space="p
varn=t.SheetNames[e],i=t.Sheets[n]||{};vars=Array.isArray(i);varl,f="",c=[];varo=et(i["!ref"]||"A1");Wv(a,2057,Qn(t,16,r));Wv(a,"CalcMode",bn(1));Wv(a,"CalcCount",bn(100));Wv(a,"CalcRefMode",dn(true));Wv(a,"CalcIter",dn(false));Wv(a,"CalcDelta",Ft(.001));Wv(a,"CalcSaveRecalc",dn(true));Wv(a,"PrintRowCol",dn(false));Wv(a,"PrintGrid",dn(false));Wv(a,"GridSet",bn(1));Wv(a,"Guts",Ii([0,0]));Wv(a,"HCenter",dn(false));Wv(a,"VCenter",dn(false));Wv(a,"Dimensions",mi(o,r));for(varu=o.s.r;u<=o.e.r;++u){f=Wr(u);for(varh=o.s.c;h<=o.e.c;++h){if(u===o.s.r)c[h]=Xr(h);l=c[h]+f;vard=s?(i[u]||[])[h]:i[l];if(!d)continue;Kv(a,d,u,h,r)}}varv=((((t||{}).Workbook||{}).Sheets||[])[e]||{}).name||n;Wv(a,"CodeName",Cn(v,r));Wv(a,"EOF");returna.end()}function$v(e,r,t){vara=Fr();varn=t.biff==8,i=t.biff==5;Wv(a,2057,Qn(e,5,t));Wv(a,"InterfaceHdr",n?bn(1200):null);Wv(a,"Mms",on(2));if(i)Wv(a,"ToolbarHdr");if(i)Wv(a,"ToolbarEnd");Wv(a,"InterfaceEnd");Wv(a,"WriteAccess",qn("SheetJS",t));Wv(a,"CodePage",bn(n?1200:1252));if(n)Wv(a,"DSF",bn(0));Wv(a,"RRTabId",is(e.SheetNames.length));if(n&&e.vbaraw){Wv(a,"ObProj");vars=((e.Workbook||{}).WBProps||{}).codeName||"ThisWorkbook";Wv(a,"CodeName",Cn(s,t))}Wv(a,"BuiltInFnGroupCount",bn(17));Wv(a,"WinProtect",dn(false));Wv(a,"Protect",dn(false));Wv(a,"Password",bn(0));if(n)Wv(a,"Prot4Rev",dn(false));if(n)Wv(a,"Prot4RevPass",bn(0));Wv(a,"Window1",ci(t));Wv(a,"Backup",dn(false));Wv(a,"HideObj",bn(0));Wv(a,"Date1904",dn(pd(e)=="true"));Wv(a,"CalcPrecision",dn(true));if(n)Wv(a,"RefreshAll",dn(false));Wv(a,"BookBool",bn(0));if(n)Wv(a,"UsesELFs",dn(false));varl=a.end();varf=Fr();if(n)Wv(f,"Country",Ji());Wv(f,"EOF");varc=f.end();varo=Fr();varu=0,h=0;for(h=0;h<e.SheetNames.length;++h)u+=(n?12:11)+(n?2:1)*e.SheetNames[h].length;vard=l.length+u+c.length;for(h=0;h<e.SheetNames.length;++h){Wv(o,"BoundSheet8",ri({pos:d,hs:0,dt:0,name:e.SheetNames[h]},t));d+=r[h].length}varv=o.end();if(u!=v.length)thrownewError("BS8 "+u+" != "+v.length);varb=[];if(l.length)b.push(l);if(v.length)b.push(v);if(c.length)b.push(c);returnje([b])}functionQv(e,r){vart=r||{};vara=[];for(varn=0;n<e.SheetNames.length;++n)a[a.length]=Yv(n,t,e);a.unshift($v(e,a,t));returnje([a])}functionZv(e,r){vart=r||{};switch(t.biff||2){case8:;case5:returnQv(e,r);case4:;case3:;case2:returnjv(e,r);}thrownewError("invalid type "+t.bookType+" for BIFF")}varJv=function(){functione(e,r){vart=r||{};if(o!=null&&t.dense==null)t.dense=o;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=Y(e.slice(s,l),/(:?<tr[^>]*>)/i,"<tr>");varc=-1,u=0,h=0,d=0;varv={s:{r:1e7,c:1e7},e:{r:0,c:0}};varb=[],p=0;for(s=0;s<f.length;++s){varm=f[s].trim();varg=m.substr(0,3).toLowerCase();if(g=="<tr"){++c;u=0;continue}if(g!="<td")continue;varE=m.split(/<\/td>/i);for(l=0;l<E.length;++l){varS=E[l].trim();if(S.substr(0,3).toLowerCase()!="<td")continue;vark=S,B=0;while(k.charAt(0)=="<"&&(B=k.indexOf(">"))>-1)k=k.slice(B+1);while(k.indexOf(">")>-1)k=k.slice(0,k.lastIndexOf("<"));varw=ue(S.slice(0,S.indexOf(">")));d=w.colspan?+w.colspan:1;if((h=+w.rowspan)>0||d>1)b.push({s:{r:c,c:u},e:{r:c+(h||1)-1,c:u+d-1}});if(!k.length){u+=d;continue}k=Fe(be(k));if(v.s.r>c)v.s.r=c;if(v.e.r<c)v.e.r=c;if(v.s.c>u)v.s.c=u;if(v.e.c<u)v.e.c=u;if(t.dense){if(!a[c])a[c]=[];if(!k.length){}elseif(t.raw||!k.trim().length)a[c][u]={t:"s",v:k};elseif(k==="TRUE")a[c][u]={t:"b",v:true};elseif(k==="FALSE")a[c][u]={t:"b",v:false};elseif(!isNaN(z(k)))a[c][u]={t:"n",v:z(k)};elsea[c][u]={t:"s",v:k}}else{varC=$r({r:c,c:u});if(!k.length){}elseif(t.raw)a[C]={t:"s",v:k};elseif(t.raw||!k.trim().length)a[C]={t:"s",v:k};elseif(k==="TRUE")a[C]={t:"b",v:true};elseif(k==="FALSE")a[C]={t:"b",v:false};elseif(!isNaN(z(k)))a[C]={t:"n",v:z(k)};elsea[C]={t:"s",v:k}}u+=d}}a["!ref"]=qr(v);returna}functionr(r,t){returnat(e(r,t),t)}functiont(e,r,t,a){varn=e["!merges"]||[];vari=[];vars="<td"+(a.editable?' contenteditable="true"':"")+"></td>";for(varl=r.s.c;l<=r.e.c;++l)
}functionPb(e){return!e.match(/[^\x00-\x7F]/)?e:Ie(e)}functionyb(e,r,t,a){if(a){t.type="string";returnBs.to_workbook(e,t)}returnBs.to_workbook(r,t)}functionNb(e,r){vart,a=e,n=[0,0,0,0],i=false;vars=r||{};Ru={};if(s.dateNF)Ru.dateNF=s.dateNF;if(!s.type)s.type=d&&Buffer.isBuffer(e)?"buffer":"base64";if(s.type=="file"){s.type="buffer";a=te.readFileSync(e)}if(s.type=="string"){i=true;s.type="binary";a=Pb(e)}switch((n=Ab(a,s))[0]){case208:returnRb(I.read(a,s),s);case9:returnPv(a,s);case60:returnmv(a,s);case73:if(n[1]===68)returnws(a,s);break;case84:if(n[1]===65&&n[2]===66&&n[3]===76)returnks.to_workbook(a,s);break;case80:if(n[1]===75&&n[2]<32&&n[3]<32)returnDb(a,s);break;case239:returnn[3]===60?mv(a,s):yb(e,a,s,i);case255:if(n[1]===254){return_b(a,s)}break;case0:if(n[1]===0&&n[2]>=2&&n[3]===0)returnCs.to_workbook(a,s);break;case3:;case131:;case139:;case140:returnEs.to_workbook(a,s);case123:if(n[1]===92&&n[2]===114&&n[3]===116)returnul.to_workbook(a,s);break;case10:;case13:;case32:returnOb(a,s);}if(n[2]<=12&&n[3]<=31)returnEs.to_workbook(a,s);if(32>n[0]||n[0]>127)thrownewError("Unsupported file "+n.join("|"));returnyb(e,a,s,i)}functionMb(e,r){vart=r||{};t.type="file";returnNb(e,t)}functionLb(e,r){vart=r||{};vara=xb(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="nodebuffer";break;default:thrownewError("Unrecognized type "+t.type);}if(t.type==="file")returnte.writeFileSync(t.file,a.generate(n));vari=a.generate(n);returnt.type=="string"?Te(i):i}functionUb(e,r){vart=r||{};vara=yv(e,t);switch(t.type){case"base64":;case"binary":break;case"buffer":;case"array":t.type="";break;case"file":returnte.writeFileSync(t.file,I.write(a,{type:"buffer"}));case"string":thrownewError("'string' output type invalid for '"+t.bookType+" files");default:thrownewError("Unrecognized type "+t.type);}returnI.write(a,t)}functionWb(e,r,t){if(!t)t="";vara=t+e;switch(r.type){case"base64":returnh.encode(Ie(a));case"binary":returnIe(a);case"string":returne;case"file":returnte.writeFileSync(r.file,a,"utf8");case"buffer":{if(d)returnnewBuffer(a,"utf8");elsereturnWb(a,{type:"binary"}).split("").map(function(e){returne.charCodeAt(0)})};}thrownewError("Unrecognized type "+r.type)}functionHb(e,r){switch(r.type){case"base64":returnh.encode(e);case"binary":returne;case"string":returne;case"file":returnte.writeFileSync(r.file,e,"binary");case"buffer":{if(d)returnnewBuffer(e,"binary");elsereturne.split("").map(function(e){returne.charCodeAt(0)})};}thrownewError("Unrecognized type "+r.type)}functionVb(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"?h.encode(t):r.type=="string"?Te(t):t;case"file":returnte.writeFileSync(r.file,e);case"buffer":returne;default:thrownewError("Unrecognized type "+r.type);}}functionGb(e,r){Sd(e);vart=r||{};switch(t.bookType||"xlsb"){case"xml":;case"xlml":returnWb(xv(e,t),t);case"slk":;case"sylk":returnWb(ub(e,t),t);case"html":returnWb(cb(e,t),t);case"txt":returnHb(bb(e,t),t);case"csv":returnWb(ob(e,t),t,"\ufeff");case"dif":returnWb(hb(e,t),t);case"dbf":returnVb(pb(e,t),t);case"prn":returnWb(db(e,t),t);case"rtf":returnWb(vb(e,t),t);case"fods":returnWb(sb(e,t),t);case"biff2":if(!t.biff)t.biff=2;case"biff3":if(!t.biff)t.biff=3;case"biff4":if(!t.biff)t.biff=4;returnVb(Zv(e,t),t);case"biff5":if(!t.biff)t.biff=5;case"biff8":;case"xls":if(!t.biff)t.biff=8;returnUb(e,t);case"xlsx":;case"xlsm":;case"xlsb":;case"ods":returnLb(e,t);default:thrownewError("Unrecognized bookType |"+t.bookType+"|");}}functionXb(e){if(e.bookType)return;varr={xls:"biff8",htm:"html",slk:"sylk",Sh33tJS:"WTF"};vart=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();if(t.match(/^\.[a-z]+$/))e.bookType=t.slice(1);e.bookType=r[e.bookType]||e.bookType}functionzb(e,r,