l.write(r);l.close();returnr}catch(o){if(!o.message||o.message.indexOf("onstruct")==-1)throwo}thrownewError("cannot save file "+e)}functionnr(e){if(typeofer!=="undefined")returner.readFileSync(e);if(typeofDeno!=="undefined")returnDeno.readFileSync(e);if(typeof$!=="undefined"&&typeofFile!=="undefined"&&typeofFolder!=="undefined")try{varr=File(e);r.open("r");r.encoding="binary";vart=r.read();r.close();returnt}catch(a){if(!a.message||a.message.indexOf("onstruct")==-1)throwa}thrownewError("Cannot access file "+e)}functionir(e){varr=Object.keys(e),t=[];for(vara=0;a<r.length;++a)if(Object.prototype.hasOwnProperty.call(e,r[a]))t.push(r[a]);returnt}functionsr(e,r){vart=[],a=ir(e);for(varn=0;n!==a.length;++n)if(t[e[a[n]][r]]==null)t[e[a[n]][r]]=a[n];returnt}functionfr(e){varr=[],t=ir(e);for(vara=0;a!==t.length;++a)r[e[t[a]]]=t[a];returnr}functionlr(e){varr=[],t=ir(e);for(vara=0;a!==t.length;++a)r[e[t[a]]]=parseInt(t[a],10);returnr}functionor(e){varr=[],t=ir(e);for(vara=0;a!==t.length;++a){if(r[e[t[a]]]==null)r[e[t[a]]]=[];r[e[t[a]]].push(t[a])}returnr}varcr=Date.UTC(1899,11,30,0,0,0);varur=Date.UTC(1899,11,31,0,0,0);varhr=Date.UTC(1904,0,1,0,0,0);functiondr(e,r){vart=e.getTime();vara=(t-cr)/(24*60*60*1e3);if(r){a-=1462;returna<-1402?a-1:a}returna<60?a-1:a}functionvr(e){if(e>=60&&e<61)returne;varr=newDate;r.setTime((e>60?e:e+1)*24*60*60*1e3+cr);returnr}functionpr(e){varr=0,t=0,a=false;varn=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!n)thrownewError("|"+e+"| is not an ISO8601 Duration");for(vari=1;i!=n.length;++i){if(!n[i])continue;t=1;if(i>3)a=true;switch(n[i].slice(n[i].length-1)){case"Y":thrownewError("Unsupported ISO Duration Field: "+n[i].slice(n[i].length-1));case"D":t*=24;case"H":t*=60;case"M":if(!a)thrownewError("Unsupported ISO Duration Field: M");elset*=60;case"S":break;}r+=t*parseInt(n[i],10)}returnr}varmr=/^(\d+):(\d+)(:\d+)?(\.\d+)?$/;varbr=/^(\d+)-(\d+)-(\d+)$/;vargr=/^(\d+)-(\d+)-(\d+)[T ](\d+):(\d+)(:\d+)?(\.\d+)?$/;functionwr(e,r){if(einstanceofDate)returne;vart=e.match(mr);if(t)returnnewDate((r?hr:ur)+((parseInt(t[1],10)*60+parseInt(t[2],10))*60+(t[3]?parseInt(t[3].slice(1),10):0))*1e3+(t[4]?parseInt((t[4]+"000").slice(1,4),10):0));t=e.match(br);if(t)returnnewDate(Date.UTC(+t[1],+t[2]-1,+t[3],0,0,0,0));t=e.match(gr);if(t)returnnewDate(Date.UTC(+t[1],+t[2]-1,+t[3],+t[4],+t[5],t[6]&&parseInt(t[6].slice(1),10)||0,t[7]&&parseInt((t[7]+"0000").slice(1,4),10)||0));vara=newDate(e);returna}functionkr(e,r){if(S&&Buffer.isBuffer(e)){if(r&&A){if(e[0]==255&&e[1]==254)returnRt(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)returnRt(d(e.slice(2).toString("binary")))}returne.toString("binary")}if(typeofTextDecoder!=="undefined")try{if(r){if(e[0]==255&&e[1]==254)returnRt(newTextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)returnRt(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=[],i=0;try{for(i=0;i<e.length-65536;i+=65536)n.push(String.fromCharCode.apply(0,e.slice(i,i+65536)));n.push(String.fromCharCode.apply(0,e.slice(i)))}catch(a){try{for(;i<e.length-16384;i+=16384)n.push(String.fromCharCode.apply(0,e.slice(i,i+16384)));n.push(String.fromCharCode.apply(0,e.slice(i)))}catch(a){for(;i!=e.length;++i)n.push(String.fromCharCode(e[i]))}}returnn.join("")}functionTr(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.pr
returnr}functionrn(e,r){vart=e.t=="d"&&rinstanceofDate;if(e.z!=null)try{returne.w=ze(e.z,t?dr(r):r)}catch(a){}try{returne.w=ze((e.XF||{}).numFmtId||(t?14:0),t?dr(r):r)}catch(a){return""+r}}functiontn(e,r,t){if(e==null||e.t==null||e.t=="z")return"";if(e.w!==undefined)returne.w;if(e.t=="d"&&!e.z&&t&&t.dateNF)e.z=t.dateNF;if(e.t=="e")returnci[e.v]||e.v;if(r==undefined)returnrn(e,e.v);returnrn(e,r)}functionan(e,r){vart=r&&r.sheet?r.sheet:"Sheet1";vara={};a[t]=e;return{SheetNames:[t],Sheets:a}}functionnn(e){varr={};vart=e||{};if(t.dense)r["!data"]=[];returnr}functionsn(e,r,t){vara=t||{};varn=e?e["!data"]!=null:a.dense;if(g!=null&&n==null)n=g;vari=e||(n?{"!data":[]}:{});if(n&&!i["!data"])i["!data"]=[];vars=0,f=0;if(i&&a.origin!=null){if(typeofa.origin=="number")s=a.origin;else{varl=typeofa.origin=="string"?Ka(a.origin):a.origin;s=l.r;f=l.c}}varo={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){varc=en(i["!ref"]);o.s.c=c.s.c;o.s.r=c.s.r;o.e.c=Math.max(o.e.c,c.e.c);o.e.r=Math.max(o.e.r,c.e.r);if(s==-1)o.e.r=s=i["!ref"]?c.e.r+1:0}else{o.s.c=o.e.c=o.s.r=o.e.r=0}varu=[],h=false;for(vard=0;d!=r.length;++d){if(!r[d])continue;if(!Array.isArray(r[d]))thrownewError("aoa_to_sheet expects an array of arrays");varv=s+d;if(n){if(!i["!data"][v])i["!data"][v]=[];u=i["!data"][v]}varp=r[d];for(varm=0;m!=p.length;++m){if(typeofp[m]==="undefined")continue;varb={v:p[m],t:""};varw=f+m;if(o.s.r>v)o.s.r=v;if(o.s.c>w)o.s.c=w;if(o.e.r<v)o.e.r=v;if(o.e.c<w)o.e.c=w;h=true;if(p[m]&&typeofp[m]==="object"&&!Array.isArray(p[m])&&!(p[m]instanceofDate))b=p[m];else{if(Array.isArray(b.v)){b.f=p[m][1];b.v=b.v[0]}if(b.v===null){if(b.f)b.t="n";elseif(a.nullError){b.t="e";b.v=0}elseif(!a.sheetStubs)continue;elseb.t="z"}elseif(typeofb.v==="number"){if(isFinite(b.v))b.t="n";elseif(isNaN(b.v)){b.t="e";b.v=15}else{b.t="e";b.v=7}}elseif(typeofb.v==="boolean")b.t="b";elseif(b.vinstanceofDate){b.z=a.dateNF||q[14];if(!a.UTC)b.v=Dr(b.v);if(a.cellDates){b.t="d";b.w=ze(b.z,dr(b.v,a.date1904))}else{b.t="n";b.v=dr(b.v,a.date1904);b.w=ze(b.z,b.v)}}elseb.t="s"}if(n){if(u[w]&&u[w].z)b.z=u[w].z;u[w]=b}else{vark=$a(w)+(v+1);if(i[k]&&i[k].z)b.z=i[k].z;i[k]=b}}}if(h&&o.s.c<104e5)i["!ref"]=Ja(o);returni}functionfn(e,r){returnsn(null,e,r)}functionln(e){returne._R(4,"i")}functionon(e,r){if(!r)r=Ra(4);r._W(4,e);returnr}functioncn(e){varr=e._R(4);returnr===0?"":e._R(r,"dbcs")}functionun(e,r){vart=false;if(r==null){t=true;r=Ra(4+2*e.length)}r._W(4,e.length);if(e.length>0)r._W(0,e,"dbcs");returnt?r.slice(0,r.l):r}functionhn(e){return{ich:e._R(2),ifnt:e._R(2)}}functiondn(e,r){if(!r)r=Ra(4);r._W(2,e.ich||0);r._W(2,e.ifnt||0);returnr}functionvn(e,r){vart=e.l;vara=e._R(1);varn=cn(e);vari=[];vars={t:n,h:n};if((a&1)!==0){varf=e._R(4);for(varl=0;l!=f;++l)i.push(hn(e));s.r=i}elses.r=[{ich:0,ifnt:0}];e.l=t+r;returns}functionpn(e,r){vart=false;if(r==null){t=true;r=Ra(15+4*e.t.length)}r._W(1,0);un(e.t,r);returnt?r.slice(0,r.l):r}varmn=vn;functionbn(e,r){vart=false;if(r==null){t=true;r=Ra(23+4*e.t.length)}r._W(1,1);un(e.t,r);r._W(4,1);dn({ich:0,ifnt:0},r);returnt?r.slice(0,r.l):r}functiongn(e){varr=e._R(4);vart=e._R(2);t+=e._R(1)<<16;e.l++;return{c:r,iStyleRef:t}}functionwn(e,r){if(r==null)r=Ra(8);r._W(-4,e.c);r._W(3,e.iStyleRef||e.s);r._W(1,0);returnr}functionkn(e){varr=e._R(2);r+=e._R(1)<<16;e.l++;return{c:-1,iStyleRef:r}}functionTn(e,r){if(r==null)r=Ra(4);r._W(3,e.iStyleRef||e.s);r._W(1,0);returnr}varyn=cn;varEn=un;function_n(e){varr=e._R(4);returnr===0||r===4294967295?"":e._R(r,"dbcs")}functionSn(e,r){vart=false;if(r==null){t=true;r=Ra(127)}r._W(4,e.length>0?e.length:4294967295);if(e.length>0)r._W(0,e,"dbcs");returnt?r.slice(0,r.l):r}varxn=cn;varAn=_n;varCn=Sn;functionIn(e){varr=e.slice(e.l,e.l+4);vart=r[0]&1,a=r[0]&2;e.l+=4;varn=a===0?va([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):Ta(r,0)>>2;returnt?n/100:n}functionOn(e,r){if(r==null)r=Ra(4);vart=0,a=0,n=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29){a=1}elseif(n==(n|0)&&n>=-(1<<29)&&n<1<<29){a=1;t=1}if(a)r._W(-4,((t?n:e)<<2)+(t+2));elsethrownewError
i="boolean";a=a?"1":"0"}elseif(ainstanceofDate){i="dateTime.tz";a=a.toISOString()}elsea=String(a);n.push(Bt(wt(t),a,{"dt:dt":i}))});return"<"+a+' xmlns="'+Gt.o+'">'+n.join("")+"</"+a+">"}functionji(e){varr=e._R(4),t=e._R(4);returnnewDate((t/1e7*Math.pow(2,32)+r/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}functionKi(e){varr=typeofe=="string"?newDate(Date.parse(e)):e;vart=r.getTime()/1e3+11644473600;vara=t%Math.pow(2,32),n=(t-a)/Math.pow(2,32);a*=1e7;n*=1e7;vari=a/Math.pow(2,32)|0;if(i>0){a=a%Math.pow(2,32);n+=i}vars=Ra(8);s._W(4,a);s._W(4,n);returns}functionYi(e,r,t){vara=e.l;varn=e._R(0,"lpstr-cp");if(t)while(e.l-a&3)++e.l;returnn}functionZi(e,r,t){vara=e._R(0,"lpwstr");if(t)e.l+=4-(a.length+1&3)&3;returna}functionJi(e,r,t){if(r===31)returnZi(e);returnYi(e,r,t)}functionqi(e,r,t){returnJi(e,r,t===false?0:4)}functionQi(e,r){if(!r)thrownewError("VtUnalignedString must have positive length");returnJi(e,r,0)}functiones(e){varr=e._R(4);vart=[];for(vara=0;a!=r;++a){varn=e.l;t[a]=e._R(0,"lpwstr").replace(M,"");if(e.l-n&2)e.l+=2}returnt}functionrs(e){varr=e._R(4);vart=[];for(vara=0;a!=r;++a)t[a]=e._R(0,"lpstr-cp").replace(M,"");returnt}functionts(e){varr=e.l;vart=fs(e,ri);if(e[e.l]==0&&e[e.l+1]==0&&e.l-r&2)e.l+=2;vara=fs(e,Xn);return[t,a]}functionas(e){varr=e._R(4);vart=[];for(vara=0;a<r/2;++a)t.push(ts(e));returnt}functionns(e,r){vart=e._R(4);vara={};for(varn=0;n!=t;++n){vari=e._R(4);vars=e._R(4);a[i]=e._R(s,r===1200?"utf16le":"utf8").replace(M,"").replace(U,"!");if(r===1200&&s%2)e.l+=2}if(e.l&3)e.l=e.l>>2+1<<2;returna}functionis(e){varr=e._R(4);vart=e.slice(e.l,e.l+r);e.l+=r;if((r&3)>0)e.l+=4-(r&3)&3;returnt}functionss(e){varr={};r.Size=e._R(4);e.l+=r.Size+3-(r.Size-1)%4;returnr}functionfs(e,r,t){vara=e._R(2),n,i=t||{};e.l+=2;if(r!==jn)if(a!==r&&ti.indexOf(r)===-1&&!((r&65534)==4126&&(a&65534)==4126))thrownewError("Expected type "+r+" saw "+a);switch(r===jn?a:r){case2:n=e._R(2,"i");if(!i.raw)e.l+=2;returnn;case3:n=e._R(4,"i");returnn;case11:returne._R(4)!==0;case19:n=e._R(4);returnn;case30:e.l+=4;val=qi(e,e[e.l-4]).replace(/(^|[^\u0000])\u0000+$/,"$1");break;case31:e.l+=4;val=qi(e,e[e.l-4]).replace(/(^|[^\u0000])\u0000+$/,"$1");break;case64:returnji(e);case65:returnis(e);case71:returnss(e);case80:returnqi(e,a,!i.raw).replace(M,"");case81:returnQi(e,a).replace(M,"");case4108:returnas(e);case4126:;case4127:returna==4127?es(e):rs(e);default:thrownewError("TypedPropertyValue unrecognized type "+r+" "+a);}}functionls(e,r){vart=Ra(4),a=Ra(4);t._W(4,e==80?31:e);switch(e){case3:a._W(-4,r);break;case5:a=Ra(8);a._W(8,r,"f");break;case11:a._W(4,r?1:0);break;case64:a=Ki(r);break;case31:;case80:a=Ra(4+2*(r.length+1)+(r.length%2?0:2));a._W(4,r.length+1);a._W(0,r,"dbcs");while(a.l!=a.length)a._W(1,0);break;default:thrownewError("TypedPropertyValue unrecognized type "+e+" "+r);}returnP([t,a])}functionos(e,r){vart=e.l;vara=e._R(4);varn=e._R(4);vari=[],s=0;varf=0;varo=-1,c={};for(s=0;s!=n;++s){varu=e._R(4);varh=e._R(4);i[s]=[u,h+t]}i.sort(function(e,r){returne[1]-r[1]});vard={};for(s=0;s!=n;++s){if(e.l!==i[s][1]){varv=true;if(s>0&&r)switch(r[i[s-1][0]].t){case2:if(e.l+2===i[s][1]){e.l+=2;v=false}break;case80:if(e.l<=i[s][1]){e.l=i[s][1];v=false}break;case4108:if(e.l<=i[s][1]){e.l=i[s][1];v=false}break;}if((!r||s==0)&&e.l<=i[s][1]){v=false;e.l=i[s][1]}if(v)thrownewError("Read Error: Expected address "+i[s][1]+" at "+e.l+" :"+s)}if(r){if(i[s][0]==0&&i.length>s+1&&i[s][1]==i[s+1][1])continue;varp=r[i[s][0]];d[p.n]=fs(e,p.t,{raw:true});if(p.p==="version")d[p.n]=String(d[p.n]>>16)+"."+("0000"+String(d[p.n]&65535)).slice(-4);if(p.n=="CodePage")switch(d[p.n]){case0:d[p.n]=1252;case874:;case932:;case936:;case949:;case950:;case1250:;case1251:;case1253:;case1254:;case1255:;case1256:;case1257:;case1258:;case1e4:;case1200:;case1201:;case1252:;case65e3:;case-536:;case65001:;case-535:l(f=d[p.n]>>>0&65535);break;default:thrownewError("Unsupported CodePage: "+d[p.n]);}}else{if(i[s][0]===1){f=d.CodePage
while(c-->0){if(i[i.l]===42){i.l+=h;continue}++i.l;n[++g]=[];w=0;for(w=0;w!=v.length;++w){vark=i.slice(i.l,i.l+v[w].len);i.l+=v[w].len;Ia(k,0);varT=typeofa!=="undefined"?a.utils.decode(d,k):N(k);switch(v[w].type){case"C":if(T.trim().length)n[g][w]=T.replace(/([^\s])\s+$/,"$1");break;case"D":if(T.length===8){n[g][w]=newDate(Date.UTC(+T.slice(0,4),+T.slice(4,6)-1,+T.slice(6,8),0,0,0,0));if(!(t&&t.UTC)){n[g][w]=Fr(n[g][w])}}elsen[g][w]=T;break;case"F":n[g][w]=parseFloat(T.trim());break;case"+":;case"I":n[g][w]=o?k._R(-4,"i")^2147483648:k._R(4,"i");break;case"L":switch(T.trim().toUpperCase()){case"Y":;case"T":n[g][w]=true;break;case"N":;case"F":n[g][w]=false;break;case"":;case"\0":;case"?":break;default:thrownewError("DBF Unrecognized L:|"+T+"|");}break;case"M":if(!f)thrownewError("DBF Unexpected MEMO for type "+s.toString(16));n[g][w]="##MEMO##"+(o?parseInt(T.trim(),10):k._R(4));break;case"N":T=T.replace(/\u0000/g,"").trim();if(T&&T!=".")n[g][w]=+T||0;break;case"@":n[g][w]=newDate(k._R(-8,"f")-621356832e5);break;case"T":{vary=k._R(4),E=k._R(4);if(y==0&&E==0)break;n[g][w]=newDate((y-2440588)*864e5+E);if(!(t&&t.UTC))n[g][w]=Fr(n[g][w])}break;case"Y":n[g][w]=k._R(4,"i")/1e4+k._R(4,"i")/1e4*Math.pow(2,32);break;case"O":n[g][w]=-k._R(-8,"f");break;case"B":if(l&&v[w].len==8){n[g][w]=k._R(8,"f");break};case"G":;case"P":k.l+=v[w].len;break;case"0":if(v[w].name==="_NullFlags")break;default:thrownewError("DBF Unsupported data type "+v[w].type);}}}if(s!=2)if(i.l<i.length&&i[i.l++]!=26)thrownewError("DBF EOF Marker missing "+(i.l-1)+" of "+i.length+" "+i[i.l-1].toString(16));if(t&&t.sheetRows)n=n.slice(0,t.sheetRows);t.DBF=v;returnn}functions(e,r){vart=r||{};if(!t.dateNF)t.dateNF="yyyymmdd";vara=fn(i(e,t),t);a["!cols"]=t.DBF.map(function(e){return{wch:e.len,DBF:e}});deletet.DBF;returna}functionf(e,r){try{vart=an(s(e,r),r);t.bookType="dbf";returnt}catch(a){if(r&&r.WTF)throwa}return{SheetNames:[],Sheets:{}}}varo={B:8,C:250,L:1,D:8,"?":0,"":0};functionc(i,s){if(!i["!ref"])thrownewError("Cannot export empty sheet to DBF");varf=s||{};varc=r;if(+f.codepage>=0)l(+f.codepage);if(f.type=="string")thrownewError("Cannot write DBF to JS string");varu=Fa();varh=Dk(i,{header:1,raw:true,cellDates:true});vard=h[0],v=h.slice(1),p=i["!cols"]||[];varm=0,b=0,g=0,w=1;for(m=0;m<d.length;++m){if(((p[m]||{}).DBF||{}).name){d[m]=p[m].DBF.name;++g;continue}if(d[m]==null)continue;++g;if(typeofd[m]==="number")d[m]=d[m].toString(10);if(typeofd[m]!=="string")thrownewError("DBF Invalid column name "+d[m]+" |"+typeofd[m]+"|");if(d.indexOf(d[m])!==m)for(b=0;b<1024;++b)if(d.indexOf(d[m]+"_"+b)==-1){d[m]+="_"+b;break}}vark=en(i["!ref"]);varT=[];vary=[];varE=[];for(m=0;m<=k.e.c-k.s.c;++m){var_="",S="",x=0;varA=[];for(b=0;b<v.length;++b){if(v[b][m]!=null)A.push(v[b][m])}if(A.length==0||d[m]==null){T[m]="?";continue}for(b=0;b<A.length;++b){switch(typeofA[b]){case"number":S="B";break;case"string":S="C";break;case"boolean":S="L";break;case"object":S=A[b]instanceofDate?"D":"C";break;default:S="C";}x=Math.max(x,(typeofa!=="undefined"&&typeofA[b]=="string"?a.utils.encode(t,A[b]):String(A[b])).length);_=_&&_!=S?"C":S}if(x>250)x=250;S=((p[m]||{}).DBF||{}).type;if(S=="C"){if(p[m].DBF.len>x)x=p[m].DBF.len}if(_=="B"&&S=="N"){_="N";E[m]=p[m].DBF.dec;x=p[m].DBF.len}y[m]=_=="C"||S=="N"?x:o[_]||0;w+=y[m];T[m]=_}varC=u.next(32);C._W(4,318902576);C._W(4,v.length);C._W(2,296+32*g);C._W(2,w);for(m=0;m<4;++m)C._W(4,0);varI=+n[r]||3;C._W(4,0|I<<8);if(e[I]!=+f.codepage){if(f.codepage)console.error("DBF Unsupported codepage "+r+", using 1252");r=1252}for(m=0,b=0;m<d.length;++m){if(d[m]==null)continue;varO=u.next(32);varR=(d[m].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);O._W(1,R,"sbcs");O._W(1,T[m]=="?"?"C":T[m],"sbcs");O._W(4,b);O._W(1,y[m]||o[T[m]]||0);O._W(1,E[m]||0);O._W(1,2);O._W(4,0);O._W(1,0);O._W(4,0);O._W(4,0);b+=y[m]||o[T[m]]||0}varN=u.next(264);N._W(4,13);for(m=0;m<65;++m)N._W(4,0);for(m=0;m<v.length;++m){varF=u.next(w);F._W(1,0);for(b=0;b<d.length;++b){if(d[b]==null)continue;switch(T[b]){case"L":F._W(1,v[m][b]==null?6
if(l>0)a.charset=l;e.l++;a.color=Mn(e,8);switch(e._R(1)){case1:a.scheme="major";break;case2:a.scheme="minor";break;}a.name=cn(e,r-21);returna}functionIc(e,r){if(!r)r=Ra(25+4*32);r._W(2,e.sz*20);Wn(e,r);r._W(2,e.bold?700:400);vart=0;if(e.vertAlign=="superscript")t=1;elseif(e.vertAlign=="subscript")t=2;r._W(2,t);r._W(1,e.underline||0);r._W(1,e.family||0);r._W(1,e.charset||0);r._W(1,0);Un(e.color,r);vara=0;if(e.scheme=="major")a=1;if(e.scheme=="minor")a=2;r._W(1,a);un(e.name,r);returnr.length>r.l?r.slice(0,r.l):r}varOc=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];varRc;varNc=Oa;functionFc(e,r){if(!r)r=Ra(4*3+8*7+16*1);if(!Rc)Rc=fr(Oc);vart=Rc[e.patternType];if(t==null)t=40;r._W(4,t);vara=0;if(t!=40){Un({auto:1},r);Un({auto:1},r);for(;a<12;++a)r._W(4,0)}else{for(;a<4;++a)r._W(4,0);for(;a<12;++a)r._W(4,0)}returnr.length>r.l?r.slice(0,r.l):r}functionDc(e,r){vart=e.l+r;vara=e._R(2);varn=e._R(2);e.l=t;return{ixfe:a,numFmtId:n}}functionPc(e,r,t){if(!t)t=Ra(16);t._W(2,r||0);t._W(2,e.numFmtId||0);t._W(2,0);t._W(2,0);t._W(2,0);t._W(1,0);t._W(1,0);vara=0;t._W(1,a);t._W(1,0);t._W(1,0);t._W(1,0);returnt}functionLc(e,r){if(!r)r=Ra(10);r._W(1,0);r._W(1,0);r._W(4,0);r._W(4,0);returnr}varMc=Oa;functionUc(e,r){if(!r)r=Ra(51);r._W(1,0);Lc(null,r);Lc(null,r);Lc(null,r);Lc(null,r);Lc(null,r);returnr.length>r.l?r.slice(0,r.l):r}functionBc(e,r){if(!r)r=Ra(12+4*10);r._W(4,e.xfId);r._W(2,1);r._W(1,+e.builtinId);r._W(1,0);Sn(e.name||"",r);returnr.length>r.l?r.slice(0,r.l):r}functionWc(e,r,t){vara=Ra(4+256*2*4);a._W(4,e);Sn(r,a);Sn(t,a);returna.length>a.l?a.slice(0,a.l):a}functionzc(e,r,t){vara={};a.NumberFmt=[];for(varninq)a.NumberFmt[n]=q[n];a.CellXf=[];a.Fonts=[];vari=[];vars=false;Na(e,functionf(e,n,l){switch(l){case44:a.NumberFmt[e[0]]=e[1];Je(e[1],e[0]);break;case43:a.Fonts.push(e);if(e.color.theme!=null&&r&&r.themeElements&&r.themeElements.clrScheme){e.color.rgb=Qo(r.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0)}break;case1025:break;case45:break;case46:break;case47:if(i[i.length-1]==617){a.CellXf.push(e)}break;case48:;case507:;case572:;case475:break;case1171:;case2102:;case1130:;case512:;case2095:;case3072:break;case35:s=true;break;case36:s=false;break;case37:i.push(l);s=true;break;case38:i.pop();s=false;break;default:if(n.T>0)i.push(l);elseif(n.T<0)i.pop();elseif(!s||t.WTF&&i[i.length-1]!=37)thrownewError("Unexpected record 0x"+l.toString(16));}});returna}functionHc(e,r){if(!r)return;vart=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(e){for(vara=e[0];a<=e[1];++a)if(r[a]!=null)++t});if(t==0)return;Da(e,615,on(t));[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(vara=t[0];a<=t[1];++a)if(r[a]!=null)Da(e,44,Ac(a,r[a]))});Da(e,616)}functionVc(e){varr=1;if(r==0)return;Da(e,611,on(r));Da(e,43,Ic({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}));Da(e,612)}function$c(e){varr=2;if(r==0)return;Da(e,603,on(r));Da(e,45,Fc({patternType:"none"}));Da(e,45,Fc({patternType:"gray125"}));Da(e,604)}functionXc(e){varr=1;if(r==0)return;Da(e,613,on(r));Da(e,46,Uc({}));Da(e,614)}functionGc(e){varr=1;Da(e,626,on(r));Da(e,47,Pc({numFmtId:0,fontId:0,fillId:0,borderId:0},65535));Da(e,627)}functionjc(e,r){Da(e,617,on(r.length));r.forEach(function(r){Da(e,47,Pc(r,0))});Da(e,618)}functionKc(e){varr=1;Da(e,619,on(r));Da(e,48,Bc({xfId:0,builtinId:0,name:"Normal"}));Da(e,620)}functionYc(e){varr=0;Da(e,505,on(r));Da(e,506)}functionZc(e){varr=0;Da(e,508,Wc(r,"TableStyleMedium9","PivotStyleMedium4"));Da(e,509)}functionJc(){return}functionqc(e,r){vart=Fa();Da(t,278);Hc(t,e.SSF);Vc(t,e);$c(t,e);Xc(t,e);Gc(t,e);jc(t,r.cellXfs);Kc(t,e);Yc(t,e);Zc(t,e);Jc(t,e);Da(t,279);returnt.end()}varQc=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];functioneu(e,r,
r:v.r,c:w},I,f);E.F=Ja(e[0]);break;case427:if(!f.cellFormula)break;C[Ya(e[0].s)]=e[1];E=f.dense?l["!data"][b][w]:l[$a(w)+y];E.f=Md(e[1],c,{r:v.r,c:w},I,f);break;case60:if(!f.cellStyles)break;while(e.e>=e.s){R[e.e--]={width:e.w/256,hidden:!!(e.flags&1),level:e.level};if(!F){F=true;lc(e.w/256)}oc(R[e.e+1])}break;case551:if(e)l["!legrel"]=e;break;case161:l["!autofilter"]={ref:Ja(e)};break;case476:l["!margins"]=e;break;case147:if(!n.Sheets[t])n.Sheets[t]={};if(e.name)n.Sheets[t].CodeName=e.name;if(e.above||e.left)l["!outline"]={above:e.above,left:e.left};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;case64:;case1053:break;case151:break;case152:;case175:;case644:;case625:;case562:;case396:;case1112:;case1146:;case471:;case1050:;case649:;case1105:;case589:;case607:;case564:;case1055:;case168:;case174:;case1180:;case499:;case507:;case550:;case171:;case167:;case1177:;case169:;case1181:;case552:;case661:;case639:;case478:;case537:;case477:;case536:;case1103:;case680:;case1104:;case1024:;case663:;case535:;case678:;case504:;case1043:;case428:;case170:;case3072:;case50:;case2070:;case1045:break;case35:h=true;break;case36:h=false;break;case37:u.push(g);h=true;break;case38:u.pop();h=false;break;default:if(r.T){}elseif(!h||f.WTF)thrownewError("Unexpected record 0x"+g.toString(16));}},f);deletef.supbooks;deletef["!row"];if(!l["!ref"]&&(c.s.r<2e6||o&&(o.e.r>0||o.e.c>0||o.s.r>0||o.s.c>0)))l["!ref"]=Ja(o||c);if(f.sheetRows&&l["!ref"]){varM=en(l["!ref"]);if(f.sheetRows<=+M.e.r){M.e.r=f.sheetRows-1;if(M.e.r>c.e.r)M.e.r=c.e.r;if(M.e.r<M.s.r)M.s.r=M.e.r;if(M.e.c>c.e.c)M.e.c=c.e.c;if(M.e.c<M.s.c)M.s.c=M.e.c;l["!fullref"]=l["!ref"];l["!ref"]=Ja(M)}}if(_.length>0)l["!merges"]=_;if(R.length>0)l["!cols"]=R;if(N.length>0)l["!rows"]=N;if(a["!id"][l["!legrel"]])l["!legdrawel"]=a["!id"][l["!legrel"]];returnl}functionfm(e,r,t,a,n,i,s,f){varl={r:t,c:a};if(r.c)i["!comments"].push([Ya(l),r.c]);if(r.v===undefined)returnfalse;varo="";switch(r.t){case"b":o=r.v?"1":"0";break;case"d":r=Tr(r);r.z=r.z||q[14];r.v=dr(wr(r.v,f),f);r.t="n";break;case"n":;case"e":o=""+r.v;break;default:o=r.v;break;}l.s=yv(n.cellXfs,r,n);if(r.l)i["!links"].push([Ya(l),r.l]);switch(r.t){case"s":;case"str":if(n.bookSST){o=wv(n.Strings,r.v==null?"":String(r.v),n.revStrings);l.t="s";l.v=o;if(s)Da(e,18,_p(r,l));elseDa(e,7,yp(r,l))}else{l.t="str";if(s)Da(e,17,Mp(r,l));elseDa(e,6,Pp(r,l))}returntrue;case"n":if(r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3){if(s)Da(e,13,Np(r,l));elseDa(e,2,Op(r,l))}elseif(!isFinite(r.v)){l.t="e";if(isNaN(r.v)){if(s)Da(e,14,kp({t:"e",v:36},l));elseDa(e,3,gp({t:"e",v:36},l))}else{if(s)Da(e,14,kp({t:"e",v:7},l));elseDa(e,3,gp({t:"e",v:7},l))}}else{if(s)Da(e,16,Cp(r,l));elseDa(e,5,xp(r,l))}returntrue;case"b":l.t="b";if(s)Da(e,15,mp(r,l));elseDa(e,4,vp(r,l));returntrue;case"e":l.t="e";if(s)Da(e,14,kp(r,l));elseDa(e,3,gp(r,l));returntrue;}if(s)Da(e,12,hp(r,l));elseDa(e,1,cp(r,l));returntrue}functionlm(e,r,t,a,n){vari=en(r["!ref"]||"A1"),s="",f=[];varl=(((n||{}).Workbook||{}).WBProps||{}).date1904;Da(e,145);varo=r["!data"]!=null,c=o?r["!data"][i.s.r]:[];varu=i.e.r;if(r["!rows"])u=Math.max(i.e.r,r["!rows"].length-1);for(varh=i.s.r;h<=u;++h){s=Wa(h);if(o)c=r["!data"][h];ap(e,r,i,h);if(o&&!c)continue;vard=false;if(h<=i.e.r)for(varv=i.s.c;v<=i.e.c;++v){if(h===i.s.r)f[v]=$a(v);varp=o?c[v]:r[f[v]+s];if(!p){d=false;continue}d=fm(e,p,h,v,a,r,d,l)}}Da(e,146)}functionom(e,r){if(!r||!r["!merges"])return;Da(e,177,$p(r["!merges"].length));r["!merges"].forEach(function(r){Da(e,176,Vp(r))});Da(e,178)}functioncm(e,r){if(!r||!r["!cols"])return;Da(e,390);r["!cols"].forEach(function(r,t){if(r)Da(e,60,Zp(t,r))});Da(e,391)}functionum(e,r){if(!r||!r["!ref"])return;Da(e,648);Da(e,649,tm(en(r["!ref"])));Da(e,650)}functionhm(e,r,t){r["!links"].forEach(function(r){if(!r[1].Target)return;vara=yi(t,-1,r[1].Target.replace(/#[\s\S]*$/,""),gi.HLINK);Da(e,494,Gp(r,a))});deleter["!links"]}functiondm(e,r,t,a){if(r["!comments"].length>0){va