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)returnOt(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)returnOt(d(e.slice(2).toString("binary")))}returne.toString("binary")}if(typeofTextDecoder!=="undefined")try{if(r){if(e[0]==255&&e[1]==254)returnOt(newTextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)returnOt(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.prototype.hasOwnProperty.call(e,t))r[t]=Tr(e[t]);returnr}functionyr(e,r){vart="";while(t.length<r)t+=e;returnt}functionEr(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").rep
varc=Qa(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,p=""+(v+1);if(n){if(!i["!data"][v])i["!data"][v]=[];u=i["!data"][v]}for(varm=0;m!=r[d].length;++m){if(typeofr[d][m]==="undefined")continue;varb={v:r[d][m]};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(r[d][m]&&typeofr[d][m]==="object"&&!Array.isArray(r[d][m])&&!(r[d][m]instanceofDate))b=r[d][m];else{if(Array.isArray(b.v)){b.f=r[d][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")b.t="n";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=Va(w)+p;if(i[k]&&i[k].z)b.z=i[k].z;i[k]=b}}}if(h&&o.s.c<104e5)i["!ref"]=Za(o);returni}functionsn(e,r){returnnn(null,e,r)}functionfn(e){returne._R(4,"i")}functionln(e,r){if(!r)r=Oa(4);r._W(4,e);returnr}functionon(e){varr=e._R(4);returnr===0?"":e._R(r,"dbcs")}functioncn(e,r){vart=false;if(r==null){t=true;r=Oa(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}functionun(e){return{ich:e._R(2),ifnt:e._R(2)}}functionhn(e,r){if(!r)r=Oa(4);r._W(2,e.ich||0);r._W(2,e.ifnt||0);returnr}functiondn(e,r){vart=e.l;vara=e._R(1);varn=on(e);vari=[];vars={t:n,h:n};if((a&1)!==0){varf=e._R(4);for(varl=0;l!=f;++l)i.push(un(e));s.r=i}elses.r=[{ich:0,ifnt:0}];e.l=t+r;returns}functionvn(e,r){vart=false;if(r==null){t=true;r=Oa(15+4*e.t.length)}r._W(1,0);cn(e.t,r);returnt?r.slice(0,r.l):r}varpn=dn;functionmn(e,r){vart=false;if(r==null){t=true;r=Oa(23+4*e.t.length)}r._W(1,1);cn(e.t,r);r._W(4,1);hn({ich:0,ifnt:0},r);returnt?r.slice(0,r.l):r}functionbn(e){varr=e._R(4);vart=e._R(2);t+=e._R(1)<<16;e.l++;return{c:r,iStyleRef:t}}functiongn(e,r){if(r==null)r=Oa(8);r._W(-4,e.c);r._W(3,e.iStyleRef||e.s);r._W(1,0);returnr}functionwn(e){varr=e._R(2);r+=e._R(1)<<16;e.l++;return{c:-1,iStyleRef:r}}functionkn(e,r){if(r==null)r=Oa(4);r._W(3,e.iStyleRef||e.s);r._W(1,0);returnr}varTn=on;varyn=cn;functionEn(e){varr=e._R(4);returnr===0||r===4294967295?"":e._R(r,"dbcs")}function_n(e,r){vart=false;if(r==null){t=true;r=Oa(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}varSn=on;varxn=En;varAn=_n;functionCn(e){varr=e.slice(e.l,e.l+4);vart=r[0]&1,a=r[0]&2;e.l+=4;varn=a===0?da([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):ka(r,0)>>2;returnt?n/100:n}functionIn(e,r){if(r==null)r=Oa(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("unsupported RkNumber "+e)}functionOn(e){varr={s:{},e:{}};r.s.r=e._R(4);r.e.r=e._R(4);r.s.c=e._R(4);r.e.c=e._R(4);returnr}functionRn(e,r){if(!r)r=Oa(16);r._W(4,e.s.r);r._W(4,e.e.r);r._W(4,e.s.c);r._W(4,e.e.c);returnr}varNn=On;varFn=Rn;functionDn(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";returne._R(8,"f")}functionPn(e,r){return(r||Oa(8))._W(8,e,"f")}functionLn(e){varr={};vart=e._R(1);vara=t>>>1;varn=e._R(1);vari=e._R(2,"i");vars=e._R(1);varf=e._R(1);varl=e._R(1);e.l++;switch(a){case0:r.auto=1;break;case1:r.index=n;varo=li[n];if(o)r.rgb=Yo(o);break;case2:r.rgb=Yo([s,f,l]);break;case3:r.theme=n;break;}if(i!=0)r.tint=i>0?i/32767:i/32768;returnr}functionMn(e,r){if(!r)r=Oa(8);if(!e||e.auto){r._W(4,0);r._W(4,0);returnr}if(e.index!=null){r._W(1,2);r._W(1,e.index)}elseif(e.theme!=null){r._W(1,6);r._W(1,e.theme)}else{r._W(1,5);r._W(1,0)}vart=e.tint||0;if(t>0)t*=32767;elseif(t<0)t*=32768;r._W(2,t);if(!e.rgb||e.theme!=null){r._W(2,0);
returnZi(e,r,0)}functionQi(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}functiones(e){varr=e._R(4);vart=[];for(vara=0;a!=r;++a)t[a]=e._R(0,"lpstr-cp").replace(M,"");returnt}functionrs(e){varr=e.l;vart=ss(e,ei);if(e[e.l]==0&&e[e.l+1]==0&&e.l-r&2)e.l+=2;vara=ss(e,$n);return[t,a]}functionts(e){varr=e._R(4);vart=[];for(vara=0;a<r/2;++a)t.push(rs(e));returnt}functionas(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}functionns(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}functionis(e){varr={};r.Size=e._R(4);e.l+=r.Size+3-(r.Size-1)%4;returnr}functionss(e,r,t){vara=e._R(2),n,i=t||{};e.l+=2;if(r!==Gn)if(a!==r&&ri.indexOf(r)===-1&&!((r&65534)==4126&&(a&65534)==4126))thrownewError("Expected type "+r+" saw "+a);switch(r===Gn?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:returnKi(e,a,4).replace(M,"");case31:returnYi(e);case64:returnGi(e);case65:returnns(e);case71:returnis(e);case80:returnJi(e,a,!i.raw).replace(M,"");case81:returnqi(e,a).replace(M,"");case4108:returnts(e);case4126:;case4127:returna==4127?Qi(e):es(e);default:thrownewError("TypedPropertyValue unrecognized type "+r+" "+a);}}functionfs(e,r){vart=Oa(4),a=Oa(4);t._W(4,e==80?31:e);switch(e){case3:a._W(-4,r);break;case5:a=Oa(8);a._W(8,r,"f");break;case11:a._W(4,r?1:0);break;case64:a=ji(r);break;case31:;case80:a=Oa(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])}functionls(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]=ss(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=ss(e,Vn);l(f);if(o!==-1){varm=e.l;e.l=i[o][1];c=as(e,f);e.l=m}}elseif(i[s][0]===0){if(f===0){o=s;e.l=i[s+1][1];continue}c=as(e,f)}else{varb=c[i[s][0]];varg;switch(e[e.l]){case65:e.l+=4;g=ns(e);break;case30:e.l+=4;g=Ji(e,e[e.l-4]).replace(/(^|[^\u0000])\u0000+$/,"$1");break;case31:e.l+=4;g=Ji(e,e[e.l-4]).replace(/(^|[^\u0000])\u0000+$/,"$1");break;case3:e.l+=4;g=e._R(4,"i");break;case19:e.l+=4;g=e._R(4);break;case5:e.l+=4;g=e._R(8,"f");break;case11:e.l+=4;g=bs(e,4);break;case64:e.l+=4;g=wr(Gi(e));break;default:thrownewError("unparsed value: "+e[e.l]);}d[b]=g}}}e.l=t+a;returnd}varos=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];functioncs(e){switch(typeofe){case"boolean":return11;case"number":return(e|0)==e?3:5;case"string":return31;case"object":if(einstanceofDate)return64;break;}return-1}functionus(e,r,t){vara=Oa(8),n=[],i=[];vars=8,f=0;varl=Oa(8),o=Oa(8);l._W(4,2);l._W(4,1200);o._W(4,1);i.push(l);n.push(o);s+=8+l.length;if(!r){o=Oa(8);o._W(4,0);n.unshift(o);varc
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=sn(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=tn(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=Na();varh=Fk(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=Qa(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?63:v[m][b]?84:70);break;case"B":F._W(8,v[m][b]||0,"f");break;case"N":varD="0";if(typeofv[m][b]=="number")D=v[m][b].toFixed(E[b]||0);if(D.length>y[b])D=D.slice(0,y[b]);for(g=0;g<y[b]-D.length;++g)F._W(1,32);F._W(1,D,"sbcs");break;case"D":if(!v[m][b])F._W(8,"00000000","sbcs");else{F._W(4,("0000"+v[m][b].getFullYear()).slice(-4),"sbcs");F._W(2,("00"+(v[m][b].getMonth()+1)).slice(-2),"sbcs");F._W(2,("00"+v[m][b].getDate()).slice(-2),"sbcs")}break;case"C":varP=F.l;varL=String(v[m][b]!=null?v[m][b]:"").slice(0,y[b]);F._W(1,L,"cpstr");P+=y[b]-F.l;for(g=0;g<P;++g)F._W(1,32);break;}}}r=c;u.next(1)._W(1,26);returnu.end()}return{to_workbook:f,to_sheet:s,from_sheet:c}}();varql=function(){vare={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:
0:{n:"BOF",f:ws},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:o},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:m},14:{n:"NUMBER",f:w},15:{n:"LABEL",f:d},16:{n:"FORMULA",f:T},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f:p},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:U},222:{n:"SHEETNAMELP",f:B},255:{n:"BOF",f:ws},21506:{n:"WKSNF",f:ws},65535:{n:""}};var$={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:C},23:{n:"NUMBER17",f:N},24:{n:"NUMBER18",f:R},25:{n:"FORMULA19",f:D},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:z},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:P},38:{n:"??"},39:{n:"NUMBER27",f:L},40:{n:"FORMULA28",f:M},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:U},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:W},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};varX={5:"dd-mmm-yy",6:"dd-mmm",7:"mmm-yy",8:"mm/dd/yy",10:"hh:mm:ss AM/PM",11:"hh:mm AM/PM",14:"dd-mmm-yyyy",15:"mmm-yyyy",34:"0.00",50:"0.00;[Red]0.00",66:"0.00;(0.00)",82:"0.00;[Red](0.00)",162:'"$"#,##0.00;\\("$"#,##0.00\\)',288:"0%",304:"0E+00",320:"# ?/?"};functionG(e){varr=e._R(2);vart=e._R(1);if(t!=0)throw"unsupported QPW string type "+t.toString(16);returne._R(r,"sbcs-cont")}functionj(e,r){Ca(e,0);vart=r||{};if(g!=null&&t.dense==null)t.dense=g;vara={};if(t.dense)a["!data"]=[];varn=[],i="",s=[];varf={s:{r:-1,c:-1},e:{r:-1,c:-1}};varl=0,o=0,c=0,u=0;varh={SheetNames:[],Sheets:{}};vard=[];e:while(e.l<e.length){varv=e._R(2),p=e._R(2);varm=e.slice(e.l,e.l+p);Ca(m,0);switch(v){case1:if(m._R(4)!=962023505)throw"Bad QPW9 BOF!";break;case2:breake;case8:break;case10:{varb=m._R(4);varw=(m.length-m.l)/b|0;for(vark=0;k<b;++k){varT=m.l+w;vary={};m.l+=2;y.numFmtId=m._R(2);if(X[y.numFmtId])y.z=X[y.numFmtId];m.l=T;d.push(y)}}break;case1025:break;case1026:break;case1031:{m.l+=12;while(m.l<m.length){l=m._R(2);o=m._R(1);n.push(m._R(l,"cstr"))}}break;case
r._W(1,+e.builtinId);r._W(1,0);_n(e.name||"",r);returnr.length>r.l?r.slice(0,r.l):r}functionBc(e,r,t){vara=Oa(4+256*2*4);a._W(4,e);_n(r,a);_n(t,a);returna.length>a.l?a.slice(0,a.l):a}functionWc(e,r,t){vara={};a.NumberFmt=[];for(varninq)a.NumberFmt[n]=q[n];a.CellXf=[];a.Fonts=[];vari=[];vars=false;Ra(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}functionzc(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;Fa(e,615,ln(t));[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(vara=t[0];a<=t[1];++a)if(r[a]!=null)Fa(e,44,xc(a,r[a]))});Fa(e,616)}functionHc(e){varr=1;if(r==0)return;Fa(e,611,ln(r));Fa(e,43,Cc({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}));Fa(e,612)}functionVc(e){varr=2;if(r==0)return;Fa(e,603,ln(r));Fa(e,45,Nc({patternType:"none"}));Fa(e,45,Nc({patternType:"gray125"}));Fa(e,604)}function$c(e){varr=1;if(r==0)return;Fa(e,613,ln(r));Fa(e,46,Mc({}));Fa(e,614)}functionXc(e){varr=1;Fa(e,626,ln(r));Fa(e,47,Dc({numFmtId:0,fontId:0,fillId:0,borderId:0},65535));Fa(e,627)}functionGc(e,r){Fa(e,617,ln(r.length));r.forEach(function(r){Fa(e,47,Dc(r,0))});Fa(e,618)}functionjc(e){varr=1;Fa(e,619,ln(r));Fa(e,48,Uc({xfId:0,builtinId:0,name:"Normal"}));Fa(e,620)}functionKc(e){varr=0;Fa(e,505,ln(r));Fa(e,506)}functionYc(e){varr=0;Fa(e,508,Bc(r,"TableStyleMedium9","PivotStyleMedium4"));Fa(e,509)}functionZc(){return}functionJc(e,r){vart=Na();Fa(t,278);zc(t,e.SSF);Hc(t,e);Vc(t,e);$c(t,e);Xc(t,e);Gc(t,r.cellXfs);jc(t,e);Kc(t,e);Yc(t,e);Zc(t,e);Fa(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>"];functionQc(e,r,t){r.themeElements.clrScheme=[];vara={};(e[0].match(ft)||[]).forEach(function(e){varn=ct(e);switch(n[0]){case"<a:clrScheme":;case"</a:clrScheme>":break;case"<a:srgbClr":a.rgb=n.val;break;case"</a:srgbClr>":break;case"<a:sysClr":a.rgb=n.lastClr;break;case"</a:sysClr>":break;case"</a:dk1>":;case"</a:lt1>":;case"<a:dk1>":;case"<a:lt1>":;case"<a:dk2>":;case"</a:dk2>":;case"<a:lt2>":;case"</a:lt2>":;case"<a:accent1>":;case"</a:accent1>":;case"<a:accent2>":;case"</a:accent2>":;case"<a:accent3>":;case"</a:accent3>":;case"<a:accent4>":;case"</a:accent4>":;case"<a:accent5>":;case"</a:accent5>":;case"<a:accent6>":;case"</a:accent6>":;case"<a:hlink>":;case"</a:hlink>":;case"<a:folHlink>":;case"</a:folHlink>":if(n[0].charAt(1)==="/"){r.themeElements.clrScheme[qc.indexOf(n[0])]=a;a={}}else{a.name=n[0].slice(3,n[0].length-1)}break;default:if(t&&t.WTF)thrownewError("Unrecognized "+n[0]+" in clrScheme");}})}functioneu(){}functionru(){}functiontu(e,r,t){r.themeElements={};vara;if(!(a=Br(e,"a:clrScheme")))thrownewError("clrScheme not found in themeElements");Qc(a,r,t);if(!(a=Br(e,"a:fontScheme")))thrownewError("fontScheme not found in themeElements");eu(a,r,t);if(!(a=Br(e,"a:fmtScheme")))thrownewError("fmtScheme not found in themeElements");ru(a,r,t)}functionau(e,r){if(!e||e.length===0)e=nu();vart;vara={};if(!(t=Br(e,"a:themeElements")))thrownewError("themeElements not found in theme");tu(t[0],a,r);a.raw=e;returna}functionnu(e,r){if(r&&r.themeXLSX)returnr.themeXLSX;if(e&&typeofe.raw=="string")returne.raw;vart=[at];t[t.length]='<a:themexmlns:a="http://schemas.openxmlform
if(a.dense){if(!p["!data"][A])p["!data"][A]=[];p["!data"][A][C]=b}else{p[Va(C)+Ba(A)]=b}}C+=B-1}elseif(m[1]!=="/"){++C;k=E="";T=_=0;S=[];x=[];B=1;varJ=U?A+U-1:A;if(C>I.e.c)I.e.c=C;if(C<I.s.c)I.s.c=C;if(A<I.s.r)I.s.r=A;if(J>I.e.r)I.e.r=J;w=ct(m[0],false);$=[];X={};b={t:w["数据类型"]||w["value-type"],v:null};if(w["style-name"]&&N[w["style-name"]])b.z=N[w["style-name"]];if(a.cellFormula){if(w.formula)w.formula=vt(w.formula);if(w["number-matrix-columns-spanned"]&&w["number-matrix-rows-spanned"]){P=parseInt(w["number-matrix-rows-spanned"],10)||0;L=parseInt(w["number-matrix-columns-spanned"],10)||0;D={s:{r:A,c:C},e:{r:A+P-1,c:C+L-1}};b.F=Za(D);W.push([D,b.F])}if(w.formula)b.f=uv(w.formula);elsefor(Z=0;Z<W.length;++Z)if(A>=W[Z][0].s.r&&A<=W[Z][0].e.r)if(C>=W[Z][0].s.c&&C<=W[Z][0].e.c)b.F=W[Z][1]}if(w["number-columns-spanned"]||w["number-rows-spanned"]){P=parseInt(w["number-rows-spanned"],10)||0;L=parseInt(w["number-columns-spanned"],10)||0;D={s:{r:A,c:C},e:{r:A+P-1,c:C+L-1}};F.push(D)}if(w["number-columns-repeated"])B=parseInt(w["number-columns-repeated"],10);switch(b.t){case"boolean":b.t="b";b.v=_t(w["boolean-value"])||+w["boolean-value"]>=1;break;case"float":b.t="n";b.v=parseFloat(w.value);if(a.cellDates&&b.z&&Le(b.z)){b.v=vr(b.v+(z.WBProps.date1904?1462:0));b.t=typeofb.v=="number"?"n":"d"}break;case"percentage":b.t="n";b.v=parseFloat(w.value);break;case"currency":b.t="n";b.v=parseFloat(w.value);break;case"date":b.t="d";b.v=wr(w["date-value"],z.WBProps.date1904);if(!a.cellDates){b.t="n";b.v=dr(b.v,z.WBProps.date1904)}if(!b.z)b.z="m/d/yy";break;case"time":b.t="n";b.v=pr(w["time-value"])/86400;if(a.cellDates){b.v=vr(b.v);b.t=typeofb.v=="number"?"n":"d"}if(!b.z)b.z="HH:MM:SS";break;case"number":b.t="n";b.v=parseFloat(w["数据数值"]);break;default:if(b.t==="string"||b.t==="text"||!b.t){b.t="s";if(w["string-value"]!=null){k=vt(w["string-value"]);S=[]}}elsethrownewError("Unsupported value type "+b.t);}}else{K=false;if(b.t==="s"){b.v=k||"";if(S.length)b.R=S;K=T==0}if(H.Target)b.l=H;if($.length>0){b.c=$;$=[]}if(k&&a.cellText!==false)b.w=k;if(K){b.t="z";deleteb.v}if(!K||a.sheetStubs){if(!(a.sheetRows&&a.sheetRows<=A)){for(varq=0;q<U;++q){B=parseInt(w["number-columns-repeated"]||"1",10);if(a.dense){if(!p["!data"][A+q])p["!data"][A+q]=[];p["!data"][A+q][C]=q==0?b:Tr(b);while(--B>0)p["!data"][A+q][C+B]=Tr(b)}else{p[Ka({r:A+q,c:C})]=b;while(--B>0)p[Ka({r:A+q,c:C+B})]=Tr(b)}if(I.e.c<=C)I.e.c=C}}}B=parseInt(w["number-columns-repeated"]||"1",10);C+=B-1;B=0;b={};k="";S=[]}H={};break;case"document":;case"document-content":;case"电子表格文档":;case"spreadsheet":;case"主体":;case"scripts":;case"styles":;case"font-face-decls":;case"master-styles":if(m[1]==="/"){if((s=i.pop())[0]!==m[3])throw"Bad state: "+s}elseif(m[0].charAt(m[0].length-2)!=="/")i.push([m[3],true]);break;case"annotation":if(m[1]==="/"){if((s=i.pop())[0]!==m[3])throw"Bad state: "+s;X.t=k;if(S.length)X.R=S;X.a=G;$.push(X);k=E;T=_;S=x}elseif(m[0].charAt(m[0].length-2)!=="/"){i.push([m[3],false]);varQ=ct(m[0],true);if(!(Q["display"]&&_t(Q["display"])))$.hidden=true;E=k;_=T;x=S;k="";T=0;S=[]}G="";j=0;break;case"creator":if(m[1]==="/"){G=n.slice(j,m.index)}elsej=m.index+m[0].length;break;case"meta":;case"元数据":;case"settings":;case"config-item-set":;case"config-item-map-indexed":;case"config-item-map-entry":;case"config-item-map-named":;case"shapes":;case"frame":;case"text-box":;case"image":;case"data-pilot-tables":;case"list-style":;case"form":;case"dde-links":;case"event-listeners":;case"chart":if(m[1]==="/"){if((s=i.pop())[0]!==m[3])throw"Bad state: "+s}elseif(m[0].charAt(m[0].length-2)!=="/")i.push([m[3],false]);k="";T=0;S=[];break;case"scientific-number":;case"currency-symbol":;case"fill-character":break;case"text-style":;case"boolean-style":;case"number-style":;case"currency-style":;case"percentage-style":;case"date-style":;case"time-style":if(m[1]==="/"){varee=Ht.lastIndex;Fg(n.slice(l,Ht.lastIndex),r,R);Ht.lastIndex=ee}elseif(m[0].charAt(m[0].length-2)!=="/"){l=Ht.lastIndex-m[0].length}break;case"script":break;case"libraries":break;case"aut
b|=0;m-=60*b}w.push((d>=8?"[m]":"m")+'"m"');if(h==0)g.push((d==8&&v==8||b>=10?"":"0")+b);elseg.push(b+(h==2?" minute"+(b==1?"":"s"):h==1?"m":""))}if(d<=16&&v>=16){b=m;if(v>16){b|=0;m-=b}w.push((d>=16?"[s]":"s")+'"s"');if(h==0)g.push((v==16&&d==16||b>=10?"":"0")+b);elseg.push(b+(h==2?" second"+(b==1?"":"s"):h==1?"s":""))}if(v>=32){b=Math.round(1e3*m);if(d<32)w.push('.000"ms"');if(h==0)g.push((b>=100?"":b>=10?"0":"00")+b);elseg.push(b+(h==2?" millisecond"+(b==1?"":"s"):h==1?"ms":""))}e.w=g.join(h==0?":":" ");e.z=w.join(h==0?'":"':" ");if(h==0)e.w=e.w.replace(/:(\d\d\d)$/,".$1")}}functionhw(e,r,t,a){varn=Vg(e);vari=n.getUint32(4,true);vars=-1,f=-1,l=-1,o=NaN,c=0,u=newDate(Date.UTC(2001,0,1));varh=t>1?12:8;if(i&2){l=n.getUint32(h,true);h+=4}h+=jg(i&(t>1?3468:396))*4;if(i&512){s=n.getUint32(h,true);h+=4}h+=jg(i&(t>1?12288:4096))*4;if(i&16){f=n.getUint32(h,true);h+=4}if(i&32){o=n.getFloat64(h,true);h+=8}if(i&64){u.setTime(u.getTime()+(c=n.getFloat64(h,true))*1e3);h+=8}if(t>1){i=n.getUint32(8,true)>>>16;if(i&255){if(l==-1)l=n.getUint32(h,true);h+=4}}vard;varv=e[t>=4?1:2];switch(v){case0:returnvoid0;case2:d={t:"n",v:o};break;case3:d={t:"s",v:r.sst[f]};break;case5:{if(a==null?void0:a.cellDates)d={t:"d",v:u};elsed={t:"n",v:c/86400+35430,z:q[14]}}break;case6:d={t:"b",v:o>0};break;case7:d={t:"n",v:o};break;case8:d={t:"e",v:0};break;case9:{if(s>-1){varp=r.rsst[s];d={t:"s",v:p.v};if(p.l)d.l={Target:p.l}}elsethrownewError("Unsupported cell type ".concat(e[Hg](0,4)))}break;default:thrownewError("Unsupported cell type ".concat(e[Hg](0,4)));}if(l>-1)uw(d,v|t<<8,i,r.ofmt[l],r.nfmt[l]);if(v==7)d.v/=86400;returnd}functiondw(e,r,t){vara=Vg(e);varn=a.getUint32(4,true);vari=a.getUint32(8,true);vars=12;varf=-1,l=-1,o=-1,c=NaN,u=NaN,h=0,d=newDate(Date.UTC(2001,0,1)),v=-1,p=-1;if(i&1){c=Kg(e,s);s+=16}if(i&2){u=a.getFloat64(s,true);s+=8}if(i&4){d.setTime(d.getTime()+(h=a.getFloat64(s,true))*1e3);s+=8}if(i&8){l=a.getUint32(s,true);s+=4}if(i&16){f=a.getUint32(s,true);s+=4}s+=jg(i&480)*4;if(i&512){p=a.getUint32(s,true);s+=4}s+=jg(i&1024)*4;if(i&2048){v=a.getUint32(s,true);s+=4}varm;varb=e[1];switch(b){case0:m={t:"z"};break;case2:m={t:"n",v:c};break;case3:m={t:"s",v:r.sst[l]};break;case5:{if(t==null?void0:t.cellDates)m={t:"d",v:d};elsem={t:"n",v:h/86400+35430,z:q[14]}}break;case6:m={t:"b",v:u>0};break;case7:m={t:"n",v:u};break;case8:m={t:"e",v:0};break;case9:{if(f>-1){varg=r.rsst[f];m={t:"s",v:g.v};if(g.l)m.l={Target:g.l}}elsethrownewError("Unsupported cell type ".concat(e[1]," : ").concat(i&31," : ").concat(e[Hg](0,4)))}break;case10:m={t:"n",v:c};break;default:thrownewError("Unsupported cell type ".concat(e[1]," : ").concat(i&31," : ").concat(e[Hg](0,4)));}s+=jg(i&4096)*4;if(i&516096){if(o==-1)o=a.getUint32(s,true);s+=4}if(i&524288){varw=a.getUint32(s,true);s+=4;if(r.cmnt[w])m.c=Sw(r.cmnt[w])}if(o>-1)uw(m,b|5<<8,i>>13,r.ofmt[o],r.nfmt[o]);if(b==7)m.v/=86400;returnm}functionvw(e,r){vart=newUint8Array(32),a=Vg(t),n=12,i=0;t[0]=5;switch(e.t){case"n":if(e.z&&Le(e.z)){t[1]=5;a.setFloat64(n,(vr(e.v+1462).getTime()-Date.UTC(2001,0,1))/1e3,true);i|=4;n+=8;break}else{t[1]=2;Yg(t,n,e.v);i|=1;n+=16}break;case"b":t[1]=6;a.setFloat64(n,e.v?1:0,true);i|=2;n+=8;break;case"s":{vars=e.v==null?"":String(e.v);if(e.l){varf=r.rsst.findIndex(function(r){vart;returnr.v==s&&r.l==((t=e.l)==null?void0:t.Target)});if(f==-1)r.rsst[f=r.rsst.length]={v:s,l:e.l.Target};t[1]=9;a.setUint32(n,f,true);i|=16;n+=4}else{varl=r.sst.indexOf(s);if(l==-1)r.sst[l=r.sst.length]=s;t[1]=3;a.setUint32(n,l,true);i|=8;n+=4}}break;case"d":t[1]=5;a.setFloat64(n,(e.v.getTime()-Date.UTC(2001,0,1))/1e3,true);i|=4;n+=8;break;case"z":t[1]=0;break;default:throw"unsupported cell type "+e.t;}if(e.c){r.cmnt.push(xw(e.c));a.setUint32(n,r.cmnt.length-1,true);i|=524288;n+=4}a.setUint32(8,i,true);returnt[Hg](0,n)}functionpw(e,r){vart=newUint8Array(32),a=Vg(t),n=12,i=0,s="";t[0]=4;switch(e.t){case"n":break;case"b":break;case"s":{s=e.v==null?"":String(e.v);if(e.l){varf=r.rsst.findIndex(function(r){vart;returnr.v==s&&r.l==((t=e.l)==null?void0
if(l.WTF)throwT}}functiontk(e){returne.charAt(0)=="/"?e.slice(1):e}functionak(e,r){$e();r=r||{};Zw(r);if(jr(e,"META-INF/manifest.xml"))returnPg(e,r);if(jr(e,"objectdata.xml"))returnPg(e,r);if(jr(e,"Index/Document.iwa")){if(typeofUint8Array=="undefined")thrownewError("NUMBERS file parsing requires Uint8Array support");if(typeofRw!="undefined"){if(e.FileIndex)returnRw(e,r);vart=Qe.utils.cfb_new();qr(e).forEach(function(r){Qr(t,r,Jr(e,r))});returnRw(t,r)}thrownewError("Unsupported NUMBERS file")}if(!jr(e,"[Content_Types].xml")){if(jr(e,"index.xml.gz"))thrownewError("Unsupported NUMBERS 08 file");if(jr(e,"index.xml"))thrownewError("Unsupported NUMBERS 09 file");vara=Qe.find(e,"Index.zip");if(a){r=Tr(r);deleter.type;if(typeofa.content=="string")r.type="binary";if(typeofBun!=="undefined"&&Buffer.isBuffer(a.content))returnpk(newUint8Array(a.content),r);returnpk(a.content,r)}thrownewError("Unsupported ZIP file")}varn=qr(e);vari=pi(Zr(e,"[Content_Types].xml"));vars=false;varf,l;if(i.workbooks.length===0){l="xl/workbook.xml";if(Yr(e,l,true))i.workbooks.push(l)}if(i.workbooks.length===0){l="xl/workbook.bin";if(!Yr(e,l,true))thrownewError("Could not find workbook");i.workbooks.push(l);s=true}if(i.workbooks[0].slice(-3)=="bin")s=true;varo={};varc={};if(!r.bookSheets&&!r.bookProps){pv=[];if(i.sst)try{pv=sb(Yr(e,tk(i.sst)),i.sst,r)}catch(u){if(r.WTF)throwu}if(r.cellStyles&&i.themes.length)o=au(Zr(e,i.themes[0].replace(/^\//,""),true)||"",r);if(i.style)c=ib(Yr(e,tk(i.style)),i.style,o,r)}i.links.map(function(t){try{vara=wi(Zr(e,gi(tk(t))),t);returnob(Yr(e,tk(t)),a,t,r)}catch(n){}});varh=eb(Yr(e,tk(i.workbooks[0])),i.workbooks[0],r);vard={},v="";if(i.coreprops.length){v=Yr(e,tk(i.coreprops[0]),true);if(v)d=Oi(v);if(i.extprops.length!==0){v=Yr(e,tk(i.extprops[0]),true);if(v)Li(v,d,r)}}varp={};if(!r.bookSheets||r.bookProps){if(i.custprops.length!==0){v=Zr(e,tk(i.custprops[0]),true);if(v)p=Bi(v,r)}}varm={};if(r.bookSheets||r.bookProps){if(h.Sheets)f=h.Sheets.map(functionN(e){returne.name});elseif(d.Worksheets&&d.SheetNames.length>0)f=d.SheetNames;if(r.bookProps){m.Props=d;m.Custprops=p}if(r.bookSheets&&typeoff!=="undefined")m.SheetNames=f;if(r.bookSheets?m.SheetNames:r.bookProps)returnm}f={};varb={};if(r.bookDeps&&i.calcchain)b=lb(Yr(e,tk(i.calcchain)),i.calcchain,r);varg=0;varw={};vark,T;{vary=h.Sheets;d.Worksheets=y.length;d.SheetNames=[];for(varE=0;E!=y.length;++E){d.SheetNames[E]=y[E].name}}var_=s?"bin":"xml";varS=i.workbooks[0].lastIndexOf("/");varx=(i.workbooks[0].slice(0,S+1)+"_rels/"+i.workbooks[0].slice(S+1)+".rels").replace(/^\//,"");if(!jr(e,x))x="xl/_rels/workbook."+_+".rels";varA=wi(Zr(e,x,true),x.replace(/_rels.*/,"s5s"));if((i.metadata||[]).length>=1){r.xlmeta=cb(Yr(e,tk(i.metadata[0])),i.metadata[0],r)}if((i.people||[]).length>=1){r.people=Uu(Yr(e,tk(i.people[0])),r)}if(A)A=Qw(A,h.Sheets);varC=Yr(e,"xl/worksheets/sheet.xml",true)?1:0;e:for(g=0;g!=d.Worksheets;++g){varI="sheet";if(A&&A[g]){k="xl/"+A[g][1].replace(/[\/]?xl\//,"");if(!jr(e,k))k=A[g][1];if(!jr(e,k))k=x.replace(/_rels\/[\S\s]*$/,"")+A[g][1];I=A[g][2]}else{k="xl/worksheets/sheet"+(g+1-C)+"."+_;k=k.replace(/sheet0\./,"sheet.")}T=k.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels");if(r&&r.sheets!=null)switch(typeofr.sheets){case"number":if(g!=r.sheets)continuee;break;case"string":if(d.SheetNames[g].toLowerCase()!=r.sheets.toLowerCase())continuee;break;default:if(Array.isArray&&Array.isArray(r.sheets)){varO=false;for(varR=0;R!=r.sheets.length;++R){if(typeofr.sheets[R]=="number"&&r.sheets[R]==g)O=1;if(typeofr.sheets[R]=="string"&&r.sheets[R].toLowerCase()==d.SheetNames[g].toLowerCase())O=1}if(!O)continuee};}rk(e,k,T,d.SheetNames[g],g,w,f,I,r,h,o,c)}m={Directory:i,Workbook:h,Props:d,Custprops:p,Deps:b,Sheets:f,SheetNames:d.SheetNames,Strings:pv,Styles:c,Themes:o,SSF:Tr(q)};if(r&&r.bookFiles){if(e.files){m.keys=n;m.files=e.files}else{m.keys=[];m.files={};e.FullPaths.forEach(function(r,t){r=r.replace(/^Root Entry[\/]/,"");m.keys.push(r);m.files[r]=e.FileIndex[t]})}}if(r&&r.bookVBA){if(i.vba.length>0)m.vb