if(!a)thrownewError("Unsupported ISO Duration Field: M");elset*=60;case"S":break;}r+=t*parseInt(n[i],10)}returnr}vargr=newDate("2017-02-19T19:06:09.000Z");varwr=isNaN(gr.getFullYear())?newDate("2/19/17"):gr;varkr=wr.getFullYear()==2017;functionTr(e,r){vart=newDate(e);if(kr){if(r>0)t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3);elseif(r<0)t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3);returnt}if(einstanceofDate)returne;if(wr.getFullYear()==1917&&!isNaN(t.getFullYear())){vara=t.getFullYear();if(e.indexOf(""+a)>-1)returnt;t.setFullYear(t.getFullYear()+100);returnt}varn=e.match(/\d+/g)||["2017","2","19","0","0","0"];vari=newDate(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);if(e.indexOf("Z")>-1)i=newDate(i.getTime()-i.getTimezoneOffset()*60*1e3);returni}functionEr(e,r){if(y&&Buffer.isBuffer(e)){if(r&&_){if(e[0]==255&&e[1]==254)returnbt(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)returnbt(h(e.slice(2).toString("binary")))}returne.toString("binary")}if(typeofTextDecoder!=="undefined")try{if(r){if(e[0]==255&&e[1]==254)returnbt(newTextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)returnbt(newTextDecoder("utf-16be").decode(e.slice(2)))}vart={"€":"","‚":"","ƒ":"","„":"","…":"","†":"","‡":"","ˆ":"","‰":"","Š":"","‹":"","Œ":"","Ž":"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"","š":"","›":"","œ":"","ž":"","Ÿ":""};if(Array.isArray(e))e=newUint8Array(e);returnnewTextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(e){returnt[e]||e})}catch(a){}varn=[];for(vari=0;i!=e.length;++i)n.push(String.fromCharCode(e[i]));returnn.join("")}functionyr(e){if(typeofJSON!="undefined"&&!Array.isArray(e))returnJSON.parse(JSON.stringify(e));if(typeofe!="object"||e==null)returne;if(einstanceofDate)returnnewDate(e.getTime());varr={};for(vartine)if(Object.prototype.hasOwnProperty.call(e,t))r[t]=yr(e[t]);returnr}functionSr(e,r){vart="";while(t.length<r)t+=e;returnt}function_r(e){varr=Number(e);if(!isNaN(r))returnisFinite(r)?r:NaN;if(!/\d/.test(e))returnr;vart=1;vara=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){t*=100;return""});if(!isNaN(r=Number(a)))returnr/t;a=a.replace(/[(](.*)[)]/,function(e,r){t=-t;returnr});if(!isNaN(r=Number(a)))returnr/t;returnr}varAr=/^(0?\d|1[0-2])(?:|:([0-5]?\d)(?:|(\.\d+)(?:|:([0-5]?\d))|:([0-5]?\d)(|\.\d+)))([ap])m?/;functionxr(e){if(!e[2])returnnewDate(1900,0,0,+e[1]%12+(e[7]=="p"?12:0),0,0,0);if(e[3]){if(e[4])returnnewDate(1900,0,0,+e[1]%12+(e[7]=="p"?12:0),+e[2],+e[4],parseFloat(e[3])*1e3);elsereturnnewDate(1900,0,0,e[7]=="p"?12:0,+e[1],+e[2],parseFloat(e[3])*1e3)}elseif(e[5])returnnewDate(1900,0,0,+e[1]%12+(e[7]=="p"?12:0),+e[2],+e[5],e[6]?parseFloat(e[6])*1e3:0);elsereturnnewDate(1900,0,0,+e[1]%12+(e[7]=="p"?12:0),+e[2],0,0)}varCr=["january","february","march","april","may","june","july","august","september","october","november","december"];functionOr(e){varr=e.toLowerCase();vart=r.replace(/\s+/g,"");vara=t.match(Ar);if(a)returnxr(a);varn=newDate(e),i=newDate(NaN);vars=n.getYear(),f=n.getMonth(),o=n.getDate();if(isNaN(o))returni;if(r.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){r=r.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"");if(r.length>3&&Cr.indexOf(r)==-1)returni}elseif(r.replace(/[ap]m?/,"").match(/[a-z]/))returni;if(s<0||s>8099||e.match(/[^-0-9:,\/\\]/))returni;returnn}varRr=function(){vare="abacaba".split(/(:?b)/i).length==5;returnfunctionr(t,a,n){if(e||typeofa=="string")returnt.split(a);vari=t.split(a),s=[i[0]];for(varf=1;f<i.length;++f){s.push(n);s.push(i[f])}returns}}();functionNr(e){if(!e)returnnull;if(e.content&&e.type)returnEr(e.content,true);if(e.data)returnd(e.data);if(e.asNodeBuffer&&y)returnd(e.asNodeBuffer().toString("binary"));if(e.asBinary)returnd(e.asBinary());if(e._data&&e._data.getContent)returnd
for(k=h.length;k<=f;++k)h[k]=[];break;case"M":w=parseInt(y[u].slice(1),10)/20;break;case"F":break;case"G":break;case"P":v=d[parseInt(y[u].slice(1),10)];break;case"S":break;case"D":break;case"N":break;case"W":g=y[u].slice(1).split(" ");for(k=parseInt(g[0],10);k<=parseInt(g[1],10);++k){w=parseInt(g[2],10);b[k-1]=w===0?{hidden:true}:{wch:w}}break;case"C":l=parseInt(y[u].slice(1),10)-1;if(!b[l])b[l]={};break;case"R":f=parseInt(y[u].slice(1),10)-1;if(!m[f])m[f]={};if(w>0){m[f].hpt=w;m[f].hpx=$l(w)}elseif(w===0)m[f].hidden=true;break;default:if(i&&i.WTF)thrownewError("SYLK bad record "+E);}if(M<1)v=null;break;default:if(i&&i.WTF)thrownewError("SYLK bad record "+E);}}if(m.length>0)p["!rows"]=m;if(b.length>0)p["!cols"]=b;b.forEach(function(e){Hl(e)});if(i&&i.sheetRows)h=h.slice(0,i.sheetRows);return[h,p,T]}functionf(e,r){vart=i(e,r);vara=t[0],n=t[1],s=t[2];varf=yr(r);f.date1904=(((s||{}).Workbook||{}).WBProps||{}).date1904;varo=Xa(a,f);sr(n).forEach(function(e){o[e]=n[e]});varl=$a(o,r);sr(s).forEach(function(e){l[e]=s[e]});l.bookType="sylk";returnl}functionl(e,r,t,a){varn="C;Y"+(t+1)+";X"+(a+1)+";K";switch(e.t){case"n":n+=e.v||0;if(e.f&&!e.F)n+=";E"+Uu(e.f,{r:t,c:a});break;case"b":n+=e.v?"TRUE":"FALSE";break;case"e":n+=e.w||e.v;break;case"d":n+='"'+(e.w||e.v)+'"';break;case"s":n+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"';break;}returnn}functionc(e,r){r.forEach(function(r,t){vara="F;W"+(t+1)+" "+(t+1)+" ";if(r.hidden)a+="0";else{if(typeofr.width=="number"&&!r.wpx)r.wpx=Ll(r.width);if(typeofr.wpx=="number"&&!r.wch)r.wch=Ml(r.wpx);if(typeofr.wch=="number")a+=Math.round(r.wch)}if(a.charAt(a.length-1)!=" ")e.push(a)})}functionu(e,r){r.forEach(function(r,t){vara="F;";if(r.hidden)a+="M0;";elseif(r.hpt)a+="M"+20*r.hpt+";";elseif(r.hpx)a+="M"+20*Gl(r.hpx)+";";if(a.length>2)e.push(a+"R"+(t+1))})}functionh(e,r,t){vara=["ID;PSheetJS;N;E"],n=[];vari=za(e["!ref"]),s;varf=Array.isArray(e);varo="\r\n";varh=(((t||{}).Workbook||{}).WBProps||{}).date1904;a.push("P;PGeneral");a.push("F;P0;DG0G8;M255");if(e["!cols"])c(a,e["!cols"]);if(e["!rows"])u(a,e["!rows"]);a.push("B;Y"+(i.e.r-i.s.r+1)+";X"+(i.e.c-i.s.c+1)+";D"+[i.s.c,i.s.r,i.e.c,i.e.r].join(" "));a.push("O;L;D;B"+(h?";V4":"")+";K47;G100 0.001");for(vard=i.s.r;d<=i.e.r;++d){varv=[];for(varp=i.s.c;p<=i.e.c;++p){varm=Ma({r:d,c:p});s=f?(e[d]||[])[p]:e[m];if(!s||s.v==null&&(!s.f||s.F))continue;v.push(l(s,e,d,p,r))}n.push(v.join(o))}returna.join(o)+o+n.join(o)+o+"E"+o}return{to_workbook:f,from_sheet:h}}();varNo=function(){functione(e,t){switch(t.type){case"base64":returnr(E(e),t);case"binary":returnr(e,t);case"buffer":returnr(y&&Buffer.isBuffer(e)?e.toString("binary"):R(e),t);case"array":returnr(Er(e),t);}thrownewError("Unrecognized type "+t.type)}functionr(e,r){vart=e.split("\n"),a=-1,n=-1,i=0,s=[];for(;i!==t.length;++i){if(t[i].trim()==="BOT"){s[++a]=[];n=0;continue}if(a<0)continue;varf=t[i].trim().split(",");varo=f[0],l=f[1];++i;varc=t[i]||"";while((c.match(/["]/g)||[]).length&1&&i<t.length-1)c+="\n"+t[++i];c=c.trim();switch(+o){case-1:if(c==="BOT"){s[++a]=[];n=0;continue}elseif(c!=="EOD")thrownewError("Unrecognized DIF special command "+c);break;case0:if(c==="TRUE")s[a][n]=true;elseif(c==="FALSE")s[a][n]=false;elseif(!isNaN(_r(l)))s[a][n]=_r(l);elseif(!isNaN(Or(l).getDate()))s[a][n]=Tr(l);elses[a][n]=l;++n;break;case1:c=c.slice(1,c.length-1);c=c.replace(/""/g,'"');if(g&&c&&c.match(/^=".*"$/))c=c.slice(2,-1);s[a][n++]=c!==""?c:null;break;}if(c==="EOD")break}if(r&&r.sheetRows)s=s.slice(0,r.sheetRows);returns}functiont(r,t){returnXa(e(r,t),t)}functiona(e,r){vara=$a(t(e,r),r);a.bookType="dif";returna}varn=function(){vare=functiont(e,r,a,n,i){e.push(r);e.push(a+","+n);e.push('"'+i.replace(/"/g,'""')+'"')};varr=functiona(e,r,t,n){e.push(r+","+t);e.push(r==1?'"'+n.replace(/"/g,'""')+'"':n)};returnfunctionn(t){vara=[];varn=za(t["!ref"]),i;vars=Array.isArray(t);e(a,"TABLE",0,1,"sheetjs");e(a,"VECTORS",0,n.e.r-n.s.r+1,"");e(a,"TUPLES",0,n.e.c-n.s.c+1,"");e(a,"DATA",0,0,"");for(varf=n.s.r;f<=n.e.r;++f){r(a,-1,0,"BOT");for(varo
break;case19:t.push(e);break;case160:returntrue;case35:a=true;break;case36:a=false;break;default:if(i.T){}if(!a||r.WTF)thrownewError("Unexpected record 0x"+s.toString(16));}});returnt}functionJo(e,r){if(!r)r=wa(8);r._W(4,e.Count);r._W(4,e.Unique);returnr}varqo=rn;functionQo(e){varr=Ta();Ea(r,159,Jo(e));for(vart=0;t<e.length;++t)Ea(r,19,qo(e[t]));Ea(r,160);returnr.end()}functionel(e){if(typeofa!=="undefined")returna.utils.encode(t,e);varr=[],n=e.split("");for(vari=0;i<n.length;++i)r[i]=n[i].charCodeAt(0);returnr}functionrl(e,r){vart={};t.Major=e._R(2);t.Minor=e._R(2);if(r>=4)e.l+=r-4;returnt}functiontl(e){varr={};r.id=e._R(0,"lpp4");r.R=rl(e,4);r.U=rl(e,4);r.W=rl(e,4);returnr}functional(e){varr=e._R(4);vart=e.l+r-4;vara={};varn=e._R(4);vari=[];while(n-->0)i.push({t:e._R(4),v:e._R(0,"lpp4")});a.name=e._R(0,"lpp4");a.comps=i;if(e.l!=t)thrownewError("Bad DataSpaceMapEntry: "+e.l+" != "+t);returna}functionnl(e){varr=[];e.l+=4;vart=e._R(4);while(t-->0)r.push(al(e));returnr}functionil(e){varr=[];e.l+=4;vart=e._R(4);while(t-->0)r.push(e._R(0,"lpp4"));returnr}functionsl(e){varr={};e._R(4);e.l+=4;r.id=e._R(0,"lpp4");r.name=e._R(0,"lpp4");r.R=rl(e,4);r.U=rl(e,4);r.W=rl(e,4);returnr}functionfl(e){varr=sl(e);r.ename=e._R(0,"8lpp4");r.blksz=e._R(4);r.cmode=e._R(4);if(e._R(4)!=4)thrownewError("Bad !Primary record");returnr}functionol(e,r){vart=e.l+r;vara={};a.Flags=e._R(4)&63;e.l+=4;a.AlgID=e._R(4);varn=false;switch(a.AlgID){case26126:;case26127:;case26128:n=a.Flags==36;break;case26625:n=a.Flags==4;break;case0:n=a.Flags==16||a.Flags==4||a.Flags==36;break;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}functionll(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}functioncl(e){varr=rl(e);switch(r.Minor){case2:return[r.Minor,ul(e,r)];case3:return[r.Minor,hl(e,r)];case4:return[r.Minor,dl(e,r)];}thrownewError("ECMA-376 Encrypted file unrecognized Version: "+r.Minor)}functionul(e){varr=e._R(4);if((r&63)!=36)thrownewError("EncryptionInfo mismatch");vart=e._R(4);vara=ol(e,t);varn=ll(e,e.length-e.l);return{t:"Std",h:a,v:n}}functionhl(){thrownewError("File is password-protected: ECMA-376 Extensible")}functiondl(e){varr=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;vart=e._R(e.length-e.l,"utf8");vara={};t.replace(Yr,functionn(e){vart=Jr(e);switch(qr(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}functionvl(e,r){vart={};vara=t.EncryptionVersionInfo=rl(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=ol(e,n);r-=n;t.EncryptionVerifier=ll(e,r);returnt}functionpl(e){varr={};vart=r.EncryptionVersionInfo=rl(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}functionml(e){varr=0,t;vara=el(e);varn=a.length+1,i,s;varf,o,l;t=A(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];f=(r&16384)===0?0:1;o=r<<1&32767;l=f|o;r=l^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,5428
varO=(pd(a,A,n)||"").split(";;");if(O[h-1])C=O[h-1];elseC+="SH33TJSERRX"}f.push(C);break}if(!x)x={Name:"SH33TJSERRY"};f.push(x.Name);break;case"PtgParen":varR="(",N=")";if(p>=0){m="";switch(e[0][p][1][0]){case2:R=Sr(" ",e[0][p][1][1])+R;break;case3:R=Sr("\r",e[0][p][1][1])+R;break;case4:N=Sr(" ",e[0][p][1][1])+N;break;case5:N=Sr("\r",e[0][p][1][1])+N;break;default:if(n.WTF)thrownewError("Unexpected PtgAttrSpaceType "+e[0][p][1][0]);}p=-1}f.push(R+f.pop()+N);break;case"PtgRefErr":f.push("#REF!");break;case"PtgRefErr3d":f.push("#REF!");break;case"PtgExp":c={c:w[1][1],r:w[1][0]};varI={c:t.c,r:t.r};if(a.sharedf[Ma(c)]){varF=a.sharedf[Ma(c)];f.push(bd(F,s,I,a,n))}else{varD=false;for(o=0;o!=a.arrayf.length;++o){l=a.arrayf[o];if(c.c<l[0].s.c||c.c>l[0].e.c)continue;if(c.r<l[0].s.r||c.r>l[0].e.r)continue;f.push(bd(l[1],s,I,a,n));D=true;break}if(!D)f.push(w[1])}break;case"PtgArray":f.push("{"+hd(w[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":;case"PtgAttrSpaceSemi":p=b;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":f.push("");break;case"PtgAreaErr":f.push("#REF!");break;case"PtgAreaErr3d":f.push("#REF!");break;case"PtgList":f.push("Table"+w[1].idx+"[#"+w[1].rt+"]");break;case"PtgMemAreaN":;case"PtgMemNoMemN":;case"PtgAttrNoop":;case"PtgSheet":;case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":;case"PtgElfColS":;case"PtgElfColSV":;case"PtgElfColV":;case"PtgElfLel":;case"PtgElfRadical":;case"PtgElfRadicalLel":;case"PtgElfRadicalS":;case"PtgElfRw":;case"PtgElfRwV":thrownewError("Unsupported ELFs");case"PtgSxName":thrownewError("Unrecognized Formula Token: "+String(w));default:thrownewError("Unrecognized Formula Token: "+String(w));}varP=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(n.biff!=3)if(p>=0&&P.indexOf(e[0][b][0])==-1){w=e[0][p];varL=true;switch(w[1][0]){case4:L=false;case0:m=Sr(" ",w[1][1]);break;case5:L=false;case1:m=Sr("\r",w[1][1]);break;default:m="";if(n.WTF)thrownewError("Unexpected PtgAttrSpaceType "+w[1][0]);}f.push((L?m:"")+f.pop()+(L?"":m));p=-1}}if(f.length>1&&n.WTF)thrownewError("bad formula stack");if(f[0]=="TRUE")returntrue;if(f[0]=="FALSE")returnfalse;returnf[0]}functiongd(e,r,t){vara=e.l+r,n=t.biff==2?1:2;vari,s=e._R(n);if(s==65535)return[[],ga(e,r-2)];varf=ud(e,s,t);if(r!==s+n)i=cd(e,r-s-n,f,t);e.l=a;return[f,i]}functionwd(e,r,t){vara=e.l+r,n=t.biff==2?1:2;vari,s=e._R(n);if(s==65535)return[[],ga(e,r-2)];varf=ud(e,s,t);if(r!==s+n)i=cd(e,r-s-n,f,t);e.l=a;return[f,i]}functionkd(e,r,t,a){varn=e.l+r;vari=ud(e,a,t);vars;if(n!==e.l)s=cd(e,n-e.l,i,t);return[i,s]}functionTd(e,r,t){vara=e.l+r;varn,i=e._R(2);vars=ud(e,i,t);if(i==65535)return[[],ga(e,r-2)];if(r!==i+2)n=cd(e,a-i-2,s,t);return[s,n]}functionEd(e){varr;if(sa(e,e.l+6)!==65535)return[En(e),"n"];switch(e[e.l]){case0:e.l+=8;return["String","s"];case1:r=e[e.l+2]===1;e.l+=8;return[r,"b"];case2:r=e[e.l+2];e.l+=8;return[r,"e"];case3:e.l+=8;return["","s"];}return[]}functionyd(e){if(e==null){varr=wa(8);r._W(1,3);r._W(1,0);r._W(2,0);r._W(2,0);r._W(2,65535);returnr}elseif(typeofe=="number")returnyn(e);returnyn(0)}functionSd(e,r,t){vara=e.l+r;varn=Rs(e,6);if(t.biff==2)++e.l;vari=Ed(e,8);vars=e._R(1);if(t.biff!=2){e._R(1);if(t.biff>=5){e._R(4)}}varf=wd(e,a-e.l,t);return{cell:n,val:i[0],formula:f,shared:s>>3&1,tt:i[1]}}function_d(e,r,t,a,n){vari=Ns(r,t,n);vars=yd(e.v);varf=wa(6);varo=1|32;f._W(2,o);f._W(4,0);varl=wa(e.bf.length);for(varc=0;c<e.bf.length;++c)l[c]=e.bf[c];varu=F([i,s,f,l]);returnu}functionAd(e,r,t){vara=e._R(4);varn=ud(e,a,t);vari=e._R(4);vars=i>0?cd(e,i,n,t):null;return[n,s]}varxd=Ad;varCd=Ad;varOd=Ad;varRd=Ad;functionNd(e){if((e|0)==e&&e<Math.pow(2,16)&&e>=0){varr=wa(11);r._W(4,3);r._W(1,30);r._W(2,e);r._W(4,0);returnr}vart=wa(17);t._W(4,11);t._W(1,31);t._W(8,e);t._W(4,0);returnt}functionId(e){varr=wa(10);r._W(4,2);r._W(1,28);r._W(1,e);r._W(4,0);returnr}functionFd(e){varr=wa(10);r._W(4,2);r._W(1,29);r._W(1,e?1:0);r._W(4,0);returnr}functionDd(e){varr=wa(7);r._W(4,3+2*e.length);r._W(1,23);r
deleten.min;deleten.max;n.width=+n.width;if(!t&&n.width){t=true;Wl(n.width)}Hl(n);while(i<=s)e[i++]=yr(n)}}functionCv(e,r){vart=["<cols>"],a;for(varn=0;n!=r.length;++n){if(!(a=r[n]))continue;t[t.length]=xt("col",null,ev(n,a))}t[t.length]="</cols>";returnt.join("")}functionOv(e){varr={ref:(e.match(/ref="([^"]*)"/)||[])[1]};returnr}functionRv(e,r,t,a){varn=typeofe.ref=="string"?e.ref:Ba(e.ref);if(!t.Workbook)t.Workbook={Sheets:[]};if(!t.Workbook.Names)t.Workbook.Names=[];vari=t.Workbook.Names;vars=Ua(n);if(s.s.r==s.e.r){s.e.r=Ua(r["!ref"]).e.r;n=Ba(s)}for(varf=0;f<i.length;++f){varo=i[f];if(o.Name!="_xlnm._FilterDatabase")continue;if(o.Sheet!=a)continue;o.Ref=Ha(t.SheetNames[a])+"!"+Wa(n);break}if(f==i.length)i.push({Name:"_xlnm._FilterDatabase",Sheet:a,Ref:"'"+t.SheetNames[a]+"'!"+n});returnxt("autoFilter",null,{ref:n})}varNv=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/g;functionIv(e,r){if(!r.Views)r.Views=[{}];(e.match(Nv)||[]).forEach(function(e,t){vara=Jr(e);if(!r.Views[t])r.Views[t]={};if(+a.zoomScale)r.Views[t].zoom=+a.zoomScale;if(a.rightToLeft&&ut(a.rightToLeft))r.Views[t].RTL=true})}functionFv(e,r,t,a){varn={workbookViewId:"0"};if((((a||{}).Workbook||{}).Views||[])[0])n.rightToLeft=a.Workbook.Views[0].RTL?"1":"0";returnxt("sheetViews",xt("sheetView",null,n),{})}functionDv(e,r,t,a){if(e.c)t["!comments"].push([r,e.c]);if((e.v===undefined||e.t==="z"&&!(a||{}).sheetStubs)&&typeofe.f!=="string"&&typeofe.z=="undefined")return"";varn="";vari=e.t,s=e.v;if(e.t!=="z")switch(e.t){case"b":n=e.v?"1":"0";break;case"n":n=""+e.v;break;case"e":n=Jn[e.v];break;case"d":if(a&&a.cellDates)n=Tr(e.v,-1).toISOString();else{e=yr(e);e.t="n";n=""+(e.v=hr(Tr(e.v)))}if(typeofe.z==="undefined")e.z=Z[14];break;default:n=e.v;break;}varf=e.t=="z"||e.v==null?"":_t("v",nt(n)),o={r:r};varl=tv(a.cellXfs,e,a);if(l!==0)o.s=l;switch(e.t){case"n":break;case"d":o.t="d";break;case"b":o.t="b";break;case"e":o.t="e";break;case"z":break;default:if(e.v==null){deletee.t;break}if(e.v.length>32767)thrownewError("Text length must not exceed 32767 characters");if(a&&a.bookSST){f=_t("v",""+Qd(a.Strings,e.v,a.revStrings));o.t="s";break}elseo.t="str";break;}if(e.t!=i){e.t=i;e.v=s}if(typeofe.f=="string"&&e.f){varc=e.F&&e.F.slice(0,r.length)==r?{t:"array",ref:e.F}:null;f=xt("f",nt(e.f),c)+(e.v!=null?f:"")}if(e.l)t["!links"].push([r,e.l]);if(e.D)o.cm=1;returnxt("c",f,o)}varPv=function(){vare=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/;vart=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/;varn=/ref=["']([^"']*)["']/;vari=gt("v"),s=gt("f");returnfunctionf(o,l,c,u,h,d){varv=0,p="",m=[],b=[],g=0,w=0,k=0,T="",E;vary,S=0,_=0;varA,x;varC=0,O=0;varR=Array.isArray(d.CellXf),N;varI=[];varF=[];varD=Array.isArray(l);varP=[],L={},M=false;varU=!!c.sheetStubs;for(varB=o.split(r),W=0,H=B.length;W!=H;++W){p=B[W].trim();varz=p.length;if(z===0)continue;varV=0;e:for(v=0;v<z;++v)switch(p[v]){case">":if(p[v-1]!="/"){++v;breake}if(c&&c.cellStyles){y=Jr(p.slice(V,v),true);S=y.r!=null?parseInt(y.r,10):S+1;_=-1;if(c.sheetRows&&c.sheetRows<S)continue;L={};M=false;if(y.ht){M=true;L.hpt=parseFloat(y.ht);L.hpx=$l(L.hpt)}if(y.hidden&&ut(y.hidden)){M=true;L.hidden=true}if(y.outlineLevel!=null){M=true;L.level=+y.outlineLevel}if(M)P[S-1]=L}break;case"<":V=v;break;}if(V>=v)break;y=Jr(p.slice(V,v),true);S=y.r!=null?parseInt(y.r,10):S+1;_=-1;if(c.sheetRows&&c.sheetRows<S)continue;if(u.s.r>S-1)u.s.r=S-1;if(u.e.r<S-1)u.e.r=S-1;if(c&&c.cellStyles){L={};M=false;if(y.ht){M=true;L.hpt=parseFloat(y.ht);L.hpx=$l(L.hpt)}if(y.hidden&&ut(y.hidden)){M=true;L.hidden=true}if(y.outlineLevel!=null){M=true;L.level=+y.outlineLevel}if(M)P[S-1]=L}m=p.slice(v).split(e);for(varG=0;G!=m.length;++G)if(m[G].trim().charAt(0)!="<")break;m=m.slice(G);for(v=0;v!=m.length;++v){p=m[v].trim();if(p.length===0)continue;b=p.match(t);g=v;w=0;k=0;p="<c "+(p.slice(0,1)=="<"?">":"")+p;if(b!=null&&b.length===2){g=0;T=b[1];for(w=0;w!=T.length;++w){if((k=T.charCodeAt(w)-64)<1||k>26)break;g=26*g+k}--g;_=g}else++_;for(w=0;w!=p.length;++w)if(p.charCodeAt(w)===62)break;++w;y=Jr(p.slic
};if(e.Comment)t.comment=e.Comment;if(e.Sheet!=null)t.localSheetId=""+e.Sheet;if(e.Hidden)t.hidden="1";if(!e.Ref)return;r[r.length]=xt("definedName",nt(e.Ref),t)});r[r.length]="</definedNames>"}if(r.length>2){r[r.length]="</workbook>";r[1]=r[1].replace("/>",">")}returnr.join("")}functionEm(e,r){vart={};t.Hidden=e._R(4);t.iTabID=e._R(4);t.strRelID=vn(e,r-8);t.name=Za(e);returnt}functionym(e,r){if(!r)r=wa(127);r._W(4,e.Hidden);r._W(4,e.iTabID);pn(e.strRelID,r);Ja(e.name.slice(0,31),r);returnr.length>r.l?r.slice(0,r.l):r}functionSm(e,r){vart={};vara=e._R(4);t.defaultThemeVersion=e._R(4);varn=r>8?Za(e):"";if(n.length>0)t.CodeName=n;t.autoCompressPictures=!!(a&65536);t.backupFile=!!(a&64);t.checkCompatibility=!!(a&4096);t.date1904=!!(a&1);t.filterPrivacy=!!(a&8);t.hidePivotFieldList=!!(a&1024);t.promptedSolutions=!!(a&16);t.publishItems=!!(a&2048);t.refreshAllConnections=!!(a&262144);t.saveExternalLinkValues=!!(a&128);t.showBorderUnselectedTables=!!(a&4);t.showInkAnnotation=!!(a&32);t.showObjects=["all","placeholders","none"][a>>13&3];t.showPivotChartFilter=!!(a&32768);t.updateLinks=["userSet","never","always"][a>>8&3];returnt}function_m(e,r){if(!r)r=wa(72);vart=0;if(e){if(e.date1904)t|=1;if(e.filterPrivacy)t|=8}r._W(4,t);r._W(4,0);cn(e&&e.CodeName||"ThisWorkbook",r);returnr.slice(0,r.l)}functionAm(e,r){vart={};e._R(4);t.ArchID=e._R(4);e.l+=r-8;returnt}functionxm(e,r,t){vara=e.l+r;varn=e._R(4);e.l+=1;vari=e._R(4);vars=dn(e);varf=Od(e,0,t);varo=un(e);if(n&32)s="_xlnm."+s;e.l=a;varl={Name:s,Ptg:f,Flags:n};if(i<268435455)l.Sheet=i;if(o)l.Comment=o;returnl}functionCm(e,r){vart=wa(9);vara=0;varn=e.Name;if(Qn.indexOf(n)>-1){a|=32;n=n.slice(6)}t._W(4,a);t._W(1,0);t._W(4,e.Sheet==null?4294967295:e.Sheet);vari=[t,Ja(n),zd(e.Ref,r)];if(e.Comment)i.push(hn(e.Comment));else{vars=wa(4);s._W(4,4294967295);i.push(s)}returnF(i)}functionOm(e,r){vart={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""};vara=[];varn=false;if(!r)r={};r.biff=12;vari=[];vars=[[]];s.SheetNames=[];s.XTI=[];Fb[16]={n:"BrtFRTArchID$",f:Am};ka(e,functionf(e,o,l){switch(l){case156:s.SheetNames.push(e.name);t.Sheets.push(e);break;case153:t.WBProps=e;break;case39:if(e.Sheet!=null)r.SID=e.Sheet;e.Ref=bd(e.Ptg,null,null,s,r);deleter.SID;deletee.Ptg;i.push(e);break;case1036:break;case357:;case358:;case355:;case667:if(!s[0].length)s[0]=[l,e];elses.push([l,e]);s[s.length-1].XTI=[];break;case362:if(s.length===0){s[0]=[];s[0].XTI=[]}s[s.length-1].XTI=s[s.length-1].XTI.concat(e);s.XTI=s.XTI.concat(e);break;case361:break;case2071:;case158:;case143:;case664:;case353:break;case3072:;case3073:;case534:;case677:;case157:;case610:;case2050:;case155:;case548:;case676:;case128:;case665:;case2128:;case2125:;case549:;case2053:;case596:;case2076:;case2075:;case2082:;case397:;case154:;case1117:;case553:;case2091:break;case35:a.push(l);n=true;break;case36:a.pop();n=false;break;case37:a.push(l);n=true;break;case38:a.pop();n=false;break;case16:break;default:if(o.T){}elseif(!n||r.WTF&&a[a.length-1]!=37&&a[a.length-1]!=35)thrownewError("Unexpected record 0x"+l.toString(16));}},r);dm(t);t.Names=i;t.supbooks=s;returnt}functionRm(e,r){Ea(e,143);for(vart=0;t!=r.SheetNames.length;++t){vara=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t]&&r.Workbook.Sheets[t].Hidden||0;varn={Hidden:a,iTabID:t+1,strRelID:"rId"+(t+1),name:r.SheetNames[t]};Ea(e,156,ym(n))}Ea(e,144)}functionNm(r,t){if(!t)t=wa(127);for(vara=0;a!=4;++a)t._W(4,0);Ja("SheetJS",t);Ja(e.version,t);Ja(e.version,t);Ja("7262",t);returnt.length>t.l?t.slice(0,t.l):t}functionIm(e,r){if(!r)r=wa(29);r._W(-4,0);r._W(-4,460);r._W(4,28800);r._W(4,17600);r._W(4,500);r._W(4,e);r._W(4,e);vart=120;r._W(1,t);returnr.length>r.l?r.slice(0,r.l):r}functionFm(e,r){if(!r.Workbook||!r.Workbook.Sheets)return;vart=r.Workbook.Sheets;vara=0,n=-1,i=-1;for(;a<t.length;++a){if(!t[a]||!t[a].Hidden&&n==-1)n=a;elseif(t[a].Hidden==1&&i==-1)i=a}if(i>n)return;Ea(e,135);Ea(e,158,Im(n));Ea(e,136)}functionDm(e,r){if(!r.Workbook||!r.Workbook.Names)return;r.Workb
varc=0;while(l!=null&&yb.indexOf(o)>-1){i=sa(t,t.l+2);c=t.l+4;if(o==2066)c+=4;elseif(o==2165||o==2175){c+=12}f=t.slice(c,t.l+4+i);s.push(f);t.l+=4+i;l=Db[o=sa(t,t.l)]}varu=F(s);ba(u,0);varh=0;u.lens=[];for(vard=0;d<s.length;++d){u.lens.push(h);h+=s[d].length}if(u.length<a)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+u.length+" < "+a;returnr.f(u,u.length,n)}function_b(e,r,t){if(e.t==="z")return;if(!e.XF)return;vara=0;try{a=e.z||e.XF.numFmtId||0;if(r.cellNF)e.z=Z[a]}catch(n){if(r.WTF)thrown}if(!r||r.cellText!==false)try{if(e.t==="e"){e.w=e.w||Jn[e.v]}elseif(a===0||a=="General"){if(e.t==="n"){if((e.v|0)===e.v)e.w=e.v.toString(10);elsee.w=le(e.v)}elsee.w=ce(e.v)}elsee.w=ze(a,e.v,{date1904:!!t,dateNF:r&&r.dateNF})}catch(n){if(r.WTF)thrown}if(r.cellDates&&a&&e.t=="n"&&Me(Z[a]||String(a))){vari=ee(e.v);if(i){e.t="d";e.v=newDate(i.y,i.m-1,i.d,i.H,i.M,i.S,i.u)}}}functionAb(e,r,t){return{v:e,ixfe:r,t:t}}functionxb(e,r){vart={opts:{}};vara={};if(b!=null&&r.dense==null)r.dense=b;varn=r.dense?[]:{};vari={};vars={};varf=null;varl=[];varc="";varu={};varh,d="",v,p,m,g;varw={};vark=[];varT;varE;vary=[];varS=[];var_={Sheets:[],WBProps:{date1904:false},Views:[{}]},A={};varx=functionve(e){if(e<8)returnZn[e];if(e<64)returnS[e-8]||Zn[e];returnZn[e]};varC=functionpe(e,r,t){vara=r.XF.data;if(!a||!a.patternType||!t||!t.cellStyles)return;r.s={};r.s.patternType=a.patternType;varn;if(n=Cl(x(a.icvFore))){r.s.fgColor={rgb:n}}if(n=Cl(x(a.icvBack))){r.s.bgColor={rgb:n}}};varO=functionme(e,r,t){if(B>1)return;if(t.sheetRows&&e.r>=t.sheetRows)return;if(t.cellStyles&&r.XF&&r.XF.data)C(e,r,t);deleter.ixfe;deleter.XF;h=e;d=Ma(e);if(!s||!s.s||!s.e)s={s:{r:0,c:0},e:{r:0,c:0}};if(e.r<s.s.r)s.s.r=e.r;if(e.c<s.s.c)s.s.c=e.c;if(e.r+1>s.e.r)s.e.r=e.r+1;if(e.c+1>s.e.c)s.e.c=e.c+1;if(t.cellFormula&&r.f){for(vara=0;a<k.length;++a){if(k[a][0].s.c>e.c||k[a][0].s.r>e.r)continue;if(k[a][0].e.c<e.c||k[a][0].e.r<e.r)continue;r.F=Ba(k[a][0]);if(k[a][0].s.c!=e.c||k[a][0].s.r!=e.r)deleter.f;if(r.f)r.f=""+bd(k[a][1],s,e,M,R);break}}{if(t.dense){if(!n[e.r])n[e.r]=[];n[e.r][e.c]=r}elsen[d]=r}};varR={enc:false,sbcch:0,snames:[],sharedf:w,arrayf:k,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!r&&!!r.cellStyles,WTF:!!r&&!!r.wtf};if(r.password)R.password=r.password;varN;varI=[];varF=[];varD=[],P=[];varL=false;varM=[];M.SheetNames=R.snames;M.sharedf=R.sharedf;M.arrayf=R.arrayf;M.names=[];M.XTI=[];varU=0;varB=0;varW=0,H=[];varz=[];varV;R.codepage=1200;o(1200);varG=false;while(e.l<e.length-1){var$=e.l;varj=e._R(2);if(j===0&&U===10)break;varX=e.l===e.length?0:e._R(2);varY=Db[j];if(Y&&Y.f){if(r.bookSheets){if(U===133&&j!==133)break}U=j;if(Y.r===2||Y.r==12){varK=e._R(2);X-=2;if(!R.enc&&K!==j&&((K&255)<<8|K>>8)!==j)thrownewError("rt mismatch: "+K+"!="+j);if(Y.r==12){e.l+=10;X-=10}}varJ={};if(j===10)J=Y.f(e,X,R);elseJ=Sb(j,Y,e,X,R);if(B==0&&[9,521,1033,2057].indexOf(U)===-1)continue;switch(j){case34:t.opts.Date1904=_.WBProps.date1904=J;break;case134:t.opts.WriteProtect=true;break;case47:if(!R.enc)e.l=0;R.enc=J;if(!r.password)thrownewError("File is password-protected");if(J.valid==null)thrownewError("Encryption scheme unsupported");if(!J.valid)thrownewError("Password is incorrect");break;case92:R.lastuser=J;break;case66:varq=Number(J);switch(q){case21010:q=1200;break;case32768:q=1e4;break;case32769:q=1252;break;}o(R.codepage=q);G=true;break;case317:R.rrtabid=J;break;case25:R.winlocked=J;break;case439:t.opts["RefreshAll"]=J;break;case12:t.opts["CalcCount"]=J;break;case16:t.opts["CalcDelta"]=J;break;case17:t.opts["CalcIter"]=J;break;case13:t.opts["CalcMode"]=J;break;case14:t.opts["CalcPrecision"]=J;break;case95:t.opts["CalcSaveRecalc"]=J;break;case15:R.CalcRefMode=J;break;case2211:t.opts.FullCalc=J;break;case129:if(J.fDialog)n["!type"]="dialog";if(!J.fBelow)(n["!outline"]||(n["!outline"]={})).above=true;if(!J.fRight)(n["!outline"]||(n["!outline"]={})).left=true;break;case224:y.push(J);break;case430:M.push([J]);M[M.length-1].XTI=[];break;case35:;case547:M[M.length-1]
a.unshift(Jb(e,a,t));returnF(a)}functionQb(e,r){for(vart=0;t<=e.SheetNames.length;++t){vara=e.Sheets[e.SheetNames[t]];if(!a||!a["!ref"])continue;varn=Ua(a["!ref"]);if(n.e.c>255){if(typeofconsole!="undefined"&&console.error)console.error("Worksheet '"+e.SheetNames[t]+"' extends beyond column IV (255). Data may be lost.")}}vari=r||{};switch(i.biff||2){case8:;case5:returnqb(e,r);case4:;case3:;case2:returnzb(e,r);}thrownewError("invalid type "+i.bookType+" for BIFF")}functioneg(e,r){vart=r||{};if(b!=null&&t.dense==null)t.dense=b;vara=t.dense?[]:{};e=e.replace(/<!--.*?-->/g,"");varn=e.match(/<table/i);if(!n)thrownewError("Invalid HTML: could not find <table>");vari=e.match(/<\/table/i);vars=n.index,f=i&&i.index||e.length;varo=Rr(e.slice(s,f),/(:?<tr[^>]*>)/i,"<tr>");varl=-1,c=0,u=0,h=0;vard={s:{r:1e7,c:1e7},e:{r:0,c:0}};varv=[];for(s=0;s<o.length;++s){varp=o[s].trim();varm=p.slice(0,3).toLowerCase();if(m=="<tr"){++l;if(t.sheetRows&&t.sheetRows<=l){--l;break}c=0;continue}if(m!="<td"&&m!="<th")continue;varg=p.split(/<\/t[dh]>/i);for(f=0;f<g.length;++f){varw=g[f].trim();if(!w.match(/<t[dh]/i))continue;vark=w,T=0;while(k.charAt(0)=="<"&&(T=k.indexOf(">"))>-1)k=k.slice(T+1);for(varE=0;E<v.length;++E){vary=v[E];if(y.s.c==c&&y.s.r<l&&l<=y.e.r){c=y.e.c+1;E=-1}}varS=Jr(w.slice(0,w.indexOf(">")));h=S.colspan?+S.colspan:1;if((u=+S.rowspan)>1||h>1)v.push({s:{r:l,c:c},e:{r:l+(u||1)-1,c:c+h-1}});var_=S.t||S["data-t"]||"";if(!k.length){c+=h;continue}k=wt(k);if(d.s.r>l)d.s.r=l;if(d.e.r<l)d.e.r=l;if(d.s.c>c)d.s.c=c;if(d.e.c<c)d.e.c=c;if(!k.length){c+=h;continue}varA={t:"s",v:k};if(t.raw||!k.trim().length||_=="s"){}elseif(k==="TRUE")A={t:"b",v:true};elseif(k==="FALSE")A={t:"b",v:false};elseif(!isNaN(_r(k)))A={t:"n",v:_r(k)};elseif(!isNaN(Or(k).getDate())){A={t:"d",v:Tr(k)};if(!t.cellDates)A={t:"n",v:hr(A.v)};A.z=t.dateNF||Z[14]}if(t.dense){if(!a[l])a[l]=[];a[l][c]=A}elsea[Ma({r:l,c:c})]=A;c+=h}}a["!ref"]=Ba(d);if(v.length)a["!merges"]=v;returna}functionrg(e,r,t,a){varn=e["!merges"]||[];vari=[];vars={};for(varf=r.s.c;f<=r.e.c;++f){varo=0,l=0;for(varc=0;c<n.length;++c){if(n[c].s.r>t||n[c].s.c>f)continue;if(n[c].e.r<t||n[c].e.c<f)continue;if(n[c].s.r<t||n[c].s.c<f){o=-1;break}o=n[c].e.r-n[c].s.r+1;l=n[c].e.c-n[c].s.c+1;break}if(o<0)continue;varu=Ma({r:t,c:f});varh=a.dense?(e[t]||[])[f]:e[u];vard=h&&h.v!=null&&(h.h||ft(h.w||(Ga(h),h.w)||""))||"";s={};if(o>1)s.rowspan=o;if(l>1)s.colspan=l;if(a.editable)d='<span contenteditable="true">'+d+"</span>";elseif(h){s["data-t"]=h&&h.t||"z";if(h.v!=null)s["data-v"]=h.v;if(h.z!=null)s["data-z"]=h.z;if(h.l&&(h.l.Target||"#").charAt(0)!="#")d='<a href="'+h.l.Target+'">'+d+"</a>"}s.id=(a.id||"sjs")+"-"+u;i.push(xt("td",d,s))}varv="<tr>";returnv+i.join("")+"</tr>"}vartg='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>';varag="</body></html>";functionng(e,r){vart=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!t||t.length==0)thrownewError("Invalid HTML: could not find <table>");if(t.length==1){vara=$a(eg(t[0],r),r);a.bookType="html";returna}varn=ek();t.forEach(function(e,t){rk(n,eg(e,r),"Sheet"+(t+1))});n.bookType="html";returnn}functionig(e,r,t){vara=[];returna.join("")+"<table"+(t&&t.id?' id="'+t.id+'"':"")+">"}functionsg(e,r){vart=r||{};vara=t.header!=null?t.header:tg;varn=t.footer!=null?t.footer:ag;vari=[a];vars=Ua(e["!ref"]);t.dense=Array.isArray(e);i.push(ig(e,s,t));for(varf=s.s.r;f<=s.e.r;++f)i.push(rg(e,s,f,t));i.push("</table>"+n);returni.join("")}functionfg(e,r,t){vara=r.rows;if(!a){throw"Unsupported origin when "+r.tagName+" is not a TABLE"}varn=t||{};if(b!=null)n.dense=b;vari=0,s=0;if(n.origin!=null){if(typeofn.origin=="number")i=n.origin;else{varf=typeofn.origin=="string"?La(n.origin):n.origin;i=f.r;s=f.c}}varo=Math.min(n.sheetRows||1e7,a.length);varl={s:{r:0,c:0},e:{r:i,c:s}};if(e["!ref"]){varc=Ua(e["!ref"]);l.s.r=Math.min(l.s.r,c.s.r);l.s.c=Math.min(l.s.c,c.s.c);l.e.r=Math.max(l.e.r,c.e.r);l.e.c=Math.max(l.e.c,c.e.c);if(i==-1)l.e.r=i=c.e.r+1}varu=[],h=0;vard=e["!rows"]||(