vart=e._R(2);vara=e._R(2);varn=e._R(2);vari=e._R(2);return{s:{c:n,r:t},e:{c:i,r:a}}}functionHn(e,r){vart=e._R(2);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;functionXn(e,r){e.l+=4;vart=e._R(2);vara=e._R(2);varn=e._R(2);e.l+=12;return[a,t,n]}functionGn(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:Gn,14:jn,15:jn,16:jn,17:jn,18:jn,19:jn,20:jn,21:Xn};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=Ar(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}functionJn(e,r){if(r===0)return1200;vart;if((t=e._R(2))!==1200){}return1200}functionZn(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=Ar(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=Ar(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=Ar(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=Ar(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=Ar(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
n:"NSCOLS",f:Ir},70:{n:"RULER",f:Ir},71:{n:"NNAME",f:Ir},72:{n:"ACOMM",f:Ir},73:{n:"AMACRO",f:Ir},74:{n:"PARSE",f:Ir},255:{n:"",f:Ir}};varB={0:{n:"BOF",f:Ir},1:{n:"EOF",f:Ir},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,Rs=/<(?:\w+:)?r>/;varAs=/<(?:\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(Rs)){a.r=Te(e);a.t=be(Te((e.replace(As,"").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
}functionyv(e,r){vart=r||{};vara=I.utils.cfb_new({root:"R"});varn="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"biff8":n="/Workbook";t.biff=8;break;case"biff5":n="/Book";t.biff=5;break;default:thrownewError("invalid type "+t.bookType+" for XLS CFB");}I.utils.cfb_add(a,n,Jv(e,t));if(t.biff==8&&e.vbaraw)lc(a,I.read(e.vbaraw,{type:typeofe.vbaraw=="string"?"binary":"buffer"}));returna}varNv={0:{n:"BrtRowHdr",f:ih},1:{n:"BrtCellBlank",f:dh},2:{n:"BrtCellRk",f:Bh},3:{n:"BrtCellError",f:mh},4:{n:"BrtCellBool",f:bh},5:{n:"BrtCellReal",f:Sh},6:{n:"BrtCellSt",f:Ch},7:{n:"BrtCellIsst",f:gh},8:{n:"BrtFmlaString",f:Ah},9:{n:"BrtFmlaNum",f:Rh},10:{n:"BrtFmlaBool",f:Ih},11:{n:"BrtFmlaError",f:xh},16:{n:"BrtFRTArchID$",f:Ad},19:{n:"BrtSSTItem",f:ot},20:{n:"BrtPCDIMissing"},21:{n:"BrtPCDINumber"},22:{n:"BrtPCDIBoolean"},23:{n:"BrtPCDIError"},24:{n:"BrtPCDIString"},25:{n:"BrtPCDIDatetime"},26:{n:"BrtPCDIIndex"},27:{n:"BrtPCDIAMissing"},28:{n:"BrtPCDIANumber"},29:{n:"BrtPCDIABoolean"},30:{n:"BrtPCDIAError"},31:{n:"BrtPCDIAString"},32:{n:"BrtPCDIADatetime"},33:{n:"BrtPCRRecord"},34:{n:"BrtPCRRecordDt"},35:{n:"BrtFRTBegin"},36:{n:"BrtFRTEnd"},37:{n:"BrtACBegin"},38:{n:"BrtACEnd"},39:{n:"BrtName",f:Dd},40:{n:"BrtIndexRowBlock"},42:{n:"BrtIndexBlock"},43:{n:"BrtFont",f:$l},44:{n:"BrtFmt",f:Kl},45:{n:"BrtFill",f:ql},46:{n:"BrtBorder",f:nf},47:{n:"BrtXF",f:rf},48:{n:"BrtStyle"},49:{n:"BrtCellMeta"},50:{n:"BrtValueMeta"},51:{n:"BrtMdb"},52:{n:"BrtBeginFmd"},53:{n:"BrtEndFmd"},54:{n:"BrtBeginMdx"},55:{n:"BrtEndMdx"},56:{n:"BrtBeginMdxTuple"},57:{n:"BrtEndMdxTuple"},58:{n:"BrtMdxMbrIstr"},59:{n:"BrtStr"},60:{n:"BrtColInfo",f:ts},62:{n:"BrtCellRString"},63:{n:"BrtCalcChainItem$",f:Hf},64:{n:"BrtDVal"},65:{n:"BrtSxvcellNum"},66:{n:"BrtSxvcellStr"},67:{n:"BrtSxvcellBool"},68:{n:"BrtSxvcellErr"},69:{n:"BrtSxvcellDate"},70:{n:"BrtSxvcellNil"},128:{n:"BrtFileVersion"},129:{n:"BrtBeginSheet"},130:{n:"BrtEndSheet"},131:{n:"BrtBeginBook",f:Ir,p:0},132:{n:"BrtEndBook"},133:{n:"BrtBeginWsViews"},134:{n:"BrtEndWsViews"},135:{n:"BrtBeginBookViews"},136:{n:"BrtEndBookViews"},137:{n:"BrtBeginWsView"},138:{n:"BrtEndWsView"},139:{n:"BrtBeginCsViews"},140:{n:"BrtEndCsViews"},141:{n:"BrtBeginCsView"},142:{n:"BrtEndCsView"},143:{n:"BrtBeginBundleShs"},144:{n:"BrtEndBundleShs"},145:{n:"BrtBeginSheetData"},146:{n:"BrtEndSheetData"},147:{n:"BrtWsProp",f:uh},148:{n:"BrtWsDim",f:fh,p:16},151:{n:"BrtPane"},152:{n:"BrtSel"},153:{n:"BrtWbProp",f:xd},154:{n:"BrtWbFactoid"},155:{n:"BrtFileRecover"},156:{n:"BrtBundleSh",f:Td},157:{n:"BrtCalcProp"},158:{n:"BrtBookView"},159:{n:"BrtBeginSst",f:Ms},160:{n:"BrtEndSst"},161:{n:"BrtBeginAFilter",f:Rt},162:{n:"BrtEndAFilter"},163:{n:"BrtBeginFilterColumn"},164:{n:"BrtEndFilterColumn"},165:{n:"BrtBeginFilters"},166:{n:"BrtEndFilters"},167:{n:"BrtFilter"},168:{n:"BrtColorFilter"},169:{n:"BrtIconFilter"},170:{n:"BrtTop10Filter"},171:{n:"BrtDynamicFilter"},172:{n:"BrtBeginCustomFilters"},173:{n:"BrtEndCustomFilters"},174:{n:"BrtCustomFilter"},175:{n:"BrtAFilterDateGroupItem"},176:{n:"BrtMergeCell",f:Dh},177:{n:"BrtBeginMergeCells"},178:{n:"BrtEndMergeCells"},179:{n:"BrtBeginPivotCacheDef"},180:{n:"BrtEndPivotCacheDef"},181:{n:"BrtBeginPCDFields"},182:{n:"BrtEndPCDFields"},183:{n:"BrtBeginPCDField"},184:{n:"BrtEndPCDField"},185:{n:"BrtBeginPCDSource"},186:{n:"BrtEndPCDSource"},187:{n:"BrtBeginPCDSRange"},188:{n:"BrtEndPCDSRange"},189:{n:"BrtBeginPCDFAtbl"},190:{n:"BrtEndPCDFAtbl"},191:{n:"BrtBeginPCDIRun"},192:{n:"BrtEndPCDIRun"},193:{n:"BrtBeginPivotCacheRecords"},194:{n:"BrtEndPivotCacheRecords"},195:{n:"BrtBeginPCDHierarchies"},196:{n:"BrtEndPCDHierarchies"},197:{n:"BrtBeginPCDHierarchy"},198:{n:"BrtEndPCDHierarchy"},199:{n:"BrtBeginPCDHFieldsUsage"},200:{n:"BrtEndPCDHFieldsUsage"},201:{n:"BrtBeginExtConnection"},202:{n:"BrtEndExtConnection"},203:{n:"BrtBeginECDbProps"},204:{n:"BrtEndECDbProps"},205:{n:"BrtBeginECOlapProps"},206:{n:"BrtEndECOlapProps"},207:{n:"BrtBeginPCDSConsol"},208:{n:"BrtEndPCDSConsol"},209:{n:"BrtBeginPCDSCPages"},210:{n:"BrtEndPCDSCPages"},211:{n:"BrtBeginPCDSCPage"},212:{n:"BrtE
}functionGv(e,r,t,a,n){if(r.v!=null)switch(r.t){case"d":;case"n":vari=r.t=="d"?y(W(r.v)):r.v;if(i==(i|0)&&i>=0&&i<65536)Wv(e,2,bs(t,a,i));elseWv(e,3,ds(t,a,i));return;case"b":;case"e":Wv(e,5,Vv(t,a,r.v,r.t));return;case"s":;case"str":Wv(e,4,Xv(t,a,r.v));return;}Wv(e,1,Hv(null,t,a))}functionzv(e,r,t,a,n){vari=Array.isArray(r);vars=et(r["!ref"]||"A1"),l,f="",c=[];for(varo=s.s.r;o<=s.e.r;++o){f=Wr(o);for(varu=s.s.c;u<=s.e.c;++u){if(o===s.s.r)c[u]=Gr(u);l=c[u]+f;varh=i?(r[o]||[])[u]:r[l];if(!h)continue;Gv(e,h,o,u,a)}}}functionjv(e,r){vart=r||{};if(o!=null&&t.dense==null)t.dense=o;vara=Fr();varn=0;for(vari=0;i<e.SheetNames.length;++i)if(e.SheetNames[i]==t.sheet)n=i;if(n==0&&!!t.sheet&&e.SheetNames[0]!=t.sheet)thrownewError("Sheet not found: "+t.sheet);Wv(a,9,Qn(e,16,t));zv(a,e.Sheets[e.SheetNames[n]],n,t,e);Wv(a,10);returna.end()}functionKv(e,r,t,a,n){if(r.v!=null)switch(r.t){case"d":;case"n":vari=r.t=="d"?y(W(r.v)):r.v;Wv(e,"Number",Di(t,a,i,n));return;case"b":;case"e":Wv(e,"BoolErr",Ri(t,a,r.v,n,r.t));return;case"s":;case"str":Wv(e,"Label",di(t,a,r.v,n));return;}Wv(e,"Blank",Pn(t,a))}functionYv(e,r,t){vara=Fr();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]=Gr(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",Zi());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])}functionJv(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")}varZv=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(
;case"array":return[e[0],e[1],e[2],e[3]];default:thrownewError("Unrecognized type "+(r&&r.type||"undefined"));}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]}functionAb(e,r){if(I.find(e,"EncryptedPackage"))returnIb(e,r);returnPv(e,r)}functionDb(e,r){vart,a=e;varn=r||{};if(!n.type)n.type=d&&Buffer.isBuffer(e)?"buffer":"base64";switch(n.type){case"base64":t=newae(a,{base64:true});break;case"binary":;case"array":t=newae(a,{base64:false});break;case"buffer":t=newae(a);break;default:thrownewError("Unrecognized type "+n.type);}returnTb(t,n)}functionFb(e,r){vart=0;e:while(t<e.length)switch(e.charCodeAt(t)){case10:;case13:;case32:++t;break;case60:returnmv(e.slice(t),r);default:breake;}returnBs.to_workbook(e,r)}functionOb(e,r){vart="",a=Rb(e,r);switch(r.type){case"base64":t=h.decode(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=H(e);break;default:thrownewError("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=Te(t);returnFb(t,r)}function_b(e,r){vart=e;if(r.type=="base64")t=h.decode(t);t=cptable.utils.decode(1200,t.slice(2),"str");r.type="binary";returnFb(t,r)}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||{};Au={};if(s.dateNF)Au.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=Rb(a,s))[0]){case208:returnAb(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