v:e}}));vars=typeofr=="string"?ir(r,a).map(function(e){returne.v}):r;varf=0,o=0;if(s.length>0)for(varl=0;l!==n.length;l+=2){o=+n[l+1].v;switch(n[l].v){case"Worksheets":;case"工作表":;case"Листы":;case"أوراق العمل":;case"ワークシート":;case"גליונות עבודה":;case"Arbeitsblätter":;case"Çalışma Sayfaları":;case"Feuilles de calcul":;case"Fogli di lavoro":;case"Folhas de cálculo":;case"Planilhas":;case"Regneark":;case"Hojas de cálculo":;case"Werkbladen":t.Worksheets=o;t.SheetNames=s.slice(f,f+o);break;case"Named Ranges":;case"Rangos con nombre":;case"名前付き一覧":;case"Benannte Bereiche":;case"Navngivne områder":t.NamedRanges=o;t.DefinedNames=s.slice(f,f+o);break;case"Charts":;case"Diagramme":t.Chartsheets=o;t.ChartNames=s.slice(f,f+o);break;}f+=o}}functionon(e,r,t){vara={};if(!r)r={};e=$e(e);nn.forEach(function(t){varn=(e.match(er(t[0]))||[])[1];switch(t[2]){case"string":if(n)r[t[1]]=Me(n);break;case"bool":r[t[1]]=n==="true";break;case"raw":vari=e.match(newRegExp("<"+t[0]+"[^>]*>([\\s\\S]*?)</"+t[0]+">"));if(i&&i.length>0)a[t[1]]=i[1];break;}});if(a.HeadingPairs&&a.TitlesOfParts)fn(a.HeadingPairs,a.TitlesOfParts,r,t);returnr}varln=lr("Properties",null,{xmlns:ur.EXT_PROPS,"xmlns:vt":ur.vt});functioncn(e){varr=[],t=lr;if(!e)e={};e.Application="SheetJS";r[r.length]=xe;r[r.length]=ln;nn.forEach(function(a){if(e[a[1]]===undefined)return;varn;switch(a[2]){case"string":n=He(String(e[a[1]]));break;case"bool":n=e[a[1]]?"true":"false";break;}if(n!==undefined)r[r.length]=t(a[0],n)});r[r.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+t("vt:variant",t("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"}));r[r.length]=t("TitlesOfParts",t("vt:vector",e.SheetNames.map(function(e){return"<vt:lpstr>"+He(e)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"}));if(r.length>2){r[r.length]="</Properties>";r[1]=r[1].replace("/>",">")}returnr.join("")}ur.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties";Ma.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties";varhn=/<[^>]+>[^<]*/g;functionun(e,r){vart={},a="";varn=e.match(hn);if(n)for(vari=0;i!=n.length;++i){vars=n[i],f=Fe(s);switch(f[0]){case"<?xml":break;case"<Properties":break;case"<property":a=Me(f.name);break;case"</property>":a=null;break;default:if(s.indexOf("<vt:")===0){varo=s.split(">");varl=o[0].slice(4),c=o[1];switch(l){case"lpstr":;case"bstr":;case"lpwstr":t[a]=Me(c);break;case"bool":t[a]=Ye(c);break;case"i1":;case"i2":;case"i4":;case"i8":;case"int":;case"uint":t[a]=parseInt(c,10);break;case"r4":;case"r8":;case"decimal":t[a]=parseFloat(c);break;case"filetime":;case"date":t[a]=oe(c);break;case"cy":;case"error":t[a]=Me(c);break;default:if(l.slice(-1)=="/")break;if(r.WTF&&typeofconsole!=="undefined")console.warn("Unexpected",s,l,o);}}elseif(s.slice(0,2)==="</"){}elseif(r.WTF)thrownewError(s);}}returnt}vardn=lr("Properties",null,{xmlns:ur.CUST_PROPS,"xmlns:vt":ur.vt});functionpn(e){varr=[xe,dn];if(!e)returnr.join("");vart=1;K(e).forEach(functiona(n){++t;r[r.length]=lr("property",hr(e[n],true),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t,name:He(n)})});if(r.length>2){r[r.length]="</Properties>";r[1]=r[1].replace("/>",">")}returnr.join("")}varvn={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};vargn=Z(vn);functionbn(e,r,t){r=gn[r]||r;e[r]=t}functionmn(e,r){vart=[];K(vn).map(function(e){for(varr=0;r<Qa.length;++r)if(Qa[r][1]==e)returnQa[r];for(r=0;r<nn.length;++r)if(nn[r][1]==e)returnnn[r];throwe}).forEach(function(a){if(e[a[1]]==null)return;varn=r&&r.Props&&r.Props[a[1]]!=null?r.Props[a[1]]:e[a[1]];switch(a[2]){case"date":n=
37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,255:16969};varr=Z({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});functiona(r,t){vara=[];varn=S(1);switch(t.type){case"base64":n=_(m.decode(r));break;case"binary":n=_(r);break;case"buffer":;case"array":n=r;break;}$r(n,0);vari=n._R(1);vars=false;varf=false,o=false;switch(i){case2:;case3:break;case48:f=true;s=true;break;case49:f=true;break;case131:s=true;break;case139:s=true;break;case140:s=true;o=true;break;case245:s=true;break;default:thrownewError("DBF Unsupported Version: "+i.toString(16));}varl=0,c=0;if(i==2)l=n._R(2);n.l+=3;if(i!=2)l=n._R(4);if(i!=2)c=n._R(2);varh=n._R(2);varu=1252;if(i!=2){n.l+=16;n._R(1);if(n[n.l]!==0)u=e[n[n.l]];n.l+=1;n.l+=2}if(o)n.l+=36;vard=[],p={};varv=c-10-(f?264:0),g=o?32:11;while(i==2?n.l<n.length&&n[n.l]!=13:n.l<v){p={};p.name=cptable.utils.decode(u,n.slice(n.l,n.l+g)).replace(/[\u0000\r\n].*$/g,"");n.l+=g;p.type=String.fromCharCode(n._R(1));if(i!=2&&!o)p.offset=n._R(4);p.len=n._R(1);if(i==2)p.offset=n._R(2);p.dec=n._R(1);if(p.name.length)d.push(p);if(i!=2)n.l+=o?13:14;switch(p.type){case"B":if((!f||p.len!=8)&&t.WTF)console.log("Skipping "+p.name+":"+p.type);break;case"G":;case"P":if(t.WTF)console.log("Skipping "+p.name+":"+p.type);break;case"C":;case"D":;case"F":;case"I":;case"L":;case"M":;case"N":;case"O":;case"T":;case"Y":;case"0":;case"@":;case"+":break;default:thrownewError("Unknown Field Type: "+p.type);}}if(n[n.l]!==13)n.l=c-1;elseif(i==2)n.l=521;if(i!=2){if(n._R(1)!==13)thrownewError("DBF Terminator not found "+n.l+" "+n[n.l]);n.l=c}varb=0,w=0;a[0]=[];for(w=0;w!=d.length;++w)a[0][w]=d[w].name;while(l-->0){if(n[n.l]===42){n.l+=h;continue}++n.l;a[++b]=[];w=0;for(w=0;w!=d.length;++w){vark=n.slice(n.l,n.l+d[w].len);n.l+=d[w].len;$r(k,0);varC=cptable.utils.decode(u,k);switch(d[w].type){case"C":a[b][w]=cptable.utils.decode(u,k);a[b][w]=a[b][w].trim();break;case"D":if(C.length===8)a[b][w]=newDate(+C.slice(0,4),+C.slice(4,6)-1,+C.slice(6,8));elsea[b][w]=C;break;case"F":a[b][w]=parseFloat(C.trim());break;case"+":;case"I":a[b][w]=o?k._R(-4,"i")^2147483648:k._R(4,"i");break;case"L":switch(C.toUpperCase()){case"Y":;case"T":a[b][w]=true;break;case"N":;case"F":a[b][w]=false;break;case" ":;case"?":a[b][w]=false;break;default:thrownewError("DBF Unrecognized L:|"+C+"|");}break;case"M":if(!s)thrownewError("DBF Unexpected MEMO for type "+i.toString(16));a[b][w]="##MEMO##"+(o?parseInt(C.trim(),10):k._R(4));break;case"N":a[b][w]=+C.replace(/\u0000/g,"").trim();break;case"@":a[b][w]=newDate(k._R(-8,"f")-621356832e5);break;case"T":a[b][w]=newDate((k._R(4)-2440588)*864e5+k._R(4));break;case"Y":a[b][w]=k._R(4,"i")/1e4;break;case"O":a[b][w]=-k._R(-8,"f");break;case"B":if(f&&d[w].len==8){a[b][w]=k._R(8,"f");break};case"G":;case"P":k.l+=d[w].len;break;case"0":if(d[w].name==="_NullFlags")break;default:thrownewError("DBF Unsupported data type "+d[w].type);}}}if(i!=2)if(n.l<n.length&&n[n.l++]!=26)thrownewError("DBF EOF Marker missing "+(n.l-1)+" of "+n.length+" "+n[n.l-1].toString(16));if(t&&t.sheetRows)a=a.slice(0,t.sheetRows);returna}functionn(e,r){vart=r||{};if(!t.dateNF)t.dateNF="yyyymmdd";return_t(a(e,t),t)}functioni(e,r){try{returnSt(n(e,r),r)}catch(t){if(r&&r.WTF)throwt}return{SheetNames:[],Sheets:{}}}vars={B:8,C:250,L:1,D:8,"?":0,"":0};functionf(e,a){varn=a||{};if(+n.codepage>=0)o(+n.codepage);if(n.type=="string")thrownewError("Cannot write DBF to JS string");vari=qr();varf=$g(e,{header:1,raw:true,cellDates:true});varl=f[0],c=f.slice(1);varh=0,u=0,d=0,p=1;for(h=0;h<l.length;++h){if(h==null)continue;++d;if(typeofl[h]==="number")l[h]=l[h].toString(10);if(typeofl[h]!=="string")thrownewError("DBF Invalid column name "+l[h]+" |"+typeofl[h]+"|");if(l.indexOf(l[h])!==h)for(u=0;u<1024;++u)if(l.indexOf(l[h]+"_"+u)==-1){l[h]+="_"+u;break}}varv=kt(e["!ref"]);varg=[];for(h=0;h<=v.e.c-v.s.c;++h){var
vart=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628];vara=function(e){return(e/2|e*128)&255};varn=function(e,r){returna(e^r)};vari=function(e){vara=r[e.length-1];varn=104;for(vari=e.length-1;i>=0;--i){vars=e[i];for(varf=0;f!=7;++f){if(s&64)a^=t[n];s*=2;--n}}returna};returnfunction(r){vart=Ff(r);vara=i(t);vars=t.length;varf=S(16);for(varo=0;o!=16;++o)f[o]=0;varl,c,h;if((s&1)===1){l=a>>8;f[s]=n(e[0],l);--s;l=a&255;c=t[t.length-1];f[s]=n(c,l)}while(s>0){--s;l=a>>8;f[s]=n(t[s],l);--s;l=a&255;f[s]=n(t[s],l)}s=15;h=15-t.length;while(h>0){l=a>>8;f[s]=n(e[h],l);--s;--h;l=a&255;f[s]=n(t[s],l);--s;--h}returnf}}();varQf=function(e,r,t,a,n){if(!n)n=r;if(!a)a=Jf(e);vari,s;for(i=0;i!=r.length;++i){s=r[i];s^=a[t];s=(s>>5|s<<3)&255;n[i]=s;++t}return[n,t,a]};varqf=function(e){varr=0,t=Jf(e);returnfunction(e){vara=Qf("",e,r,t);r=a[1];returna[0]}};functioneo(e,r,t,a){varn={key:Yn(e),verificationBytes:Yn(e)};if(t.password)n.verifier=Zf(t.password);a.valid=n.verificationBytes===n.verifier;if(a.valid)a.insitu=qf(t.password);returnn}functionro(e,r,t){vara=t||{};a.Info=e._R(2);e.l-=2;if(a.Info===1)a.Data=$f(e,r);elsea.Data=Yf(e,r);returna}functionto(e,r,t){vara={Type:t.biff>=8?e._R(2):0};if(a.Type)ro(e,r-2,a);elseeo(e,t.biff>=8?r:r-2,t,a);returna}varao=function(){functione(e,t){switch(t.type){case"base64":returnr(m.decode(e),t);case"binary":returnr(e,t);case"buffer":returnr(e.toString("binary"),t);case"array":returnr(le(e),t);}thrownewError("Unrecognized type "+t.type)}functionr(e,r){vart=r||{};vara=t.dense?[]:{};varn={s:{c:0,r:0},e:{c:0,r:0}};if(!e.match(/\\trowd/))thrownewError("RTF missing table");a["!ref"]=wt(n);returna}functiont(r,t){returnSt(e(r,t),t)}functiona(e){varr=["{\\rtf1\\ansi"];vart=kt(e["!ref"]),a;varn=Array.isArray(e);for(vari=t.s.r;i<=t.e.r;++i){r.push("\\trowd\\trautofit1");for(vars=t.s.c;s<=t.e.c;++s)r.push("\\cellx"+(s+1));r.push("\\pard\\intbl");for(s=t.s.c;s<=t.e.c;++s){varf=bt({r:i,c:s});a=n?(e[i]||[])[s]:e[f];if(!a||a.v==null&&(!a.f||a.F))continue;r.push(" "+(a.w||(Et(a),a.w)));r.push("\\cell")}r.push("\\pard\\intbl\\row")}returnr.join("")+"}"}return{to_workbook:t,to_sheet:e,from_sheet:a}}();functionno(e){varr=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]}functionio(e){for(varr=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);returnt.toString(16).toUpperCase().slice(1)}functionso(e){varr=e[0]/255,t=e[1]/255,a=e[2]/255;varn=Math.max(r,t,a),i=Math.min(r,t,a),s=n-i;if(s===0)return[0,0,r];varf=0,o=0,l=n+i;o=s/(l>1?2-l:l);switch(n){caser:f=((t-a)/s+6)%6;break;caset:f=(a-r)/s+2;break;casea:f=(r-t)/s+4;break;}return[f/6,o,l/2]}functionfo(e){varr=e[0],t=e[1],a=e[2];varn=t*2*(a<.5?a:1-a),i=a-n/2;vars=[i,i,i],f=6*r;varo;if(t!==0)switch(f|0){case0:;case6:o=n*f;s[0]+=n;s[1]+=o;break;case1:o=n*(2-f);s[0]+=o;s[1]+=n;break;case2:o=n*(f-2);s[1]+=n;s[2]+=o;break;case3:o=n*(4-f);s[1]+=o;s[2]+=n;break;case4:o=n*(f-4);s[2]+=n;s[0]+=o;break;case5:o=n*(6-f);s[2]+=o;s[0]+=n;break;}for(varl=0;l!=3;++l)s[l]=Math.round(s[l]*255);returns}functionoo(e,r){if(r===0)returne;vart=so(no(e));if(r<0)t[2]=t[2]*(1+r);elset[2]=1-(1-t[2])*(1-r);returnio(fo(t))}varlo=6,co=15,ho=1,uo=lo;functionpo(e){returnMath.floor((e+Math.round(128/uo)/256)*uo)}functionvo(e){returnMath.floor((e-5)/uo*100+.5)/100}functiongo(e){returnMath.round((e*uo+5)/uo*256)/256}functionbo(e){returngo(vo(po(e)))}functionmo(e){varr=Math.abs(e-bo(e)),t=uo;if(r>.005)f
;}returna}functionTl(e,r){vart=e.l+r;e.l+=2;vara=e._R(2);e.l+=2;varn=e._R(2);vari=[];while(n-->0)i.push(Bl(e,t-e.l));return{ixfe:a,ext:i}}functionyl(e,r){r.forEach(function(e){switch(e[0]){case4:break;case5:break;case6:break;case7:break;case8:break;case9:break;case10:break;case11:break;case13:break;case14:break;case15:break;}})}functionxl(e){varr=[];if(!e)returnr;vart=1;(e.match(Re)||[]).forEach(function(e){vara=Fe(e);switch(a[0]){case"<?xml":break;case"<calcChain":;case"<calcChain>":;case"</calcChain>":break;case"<c":deletea[0];if(a.i)t=a.i;elsea.i=t;r.push(a);break;}});returnr}functionIl(e){varr={};r.i=e._R(4);vart={};t.r=e._R(4);t.c=e._R(4);r.r=bt(t);vara=e._R(1);if(a&2)r.l="1";if(a&8)r.a="1";returnr}functionRl(e,r,t){vara=[];varn=false;Qr(e,functioni(e,r,s){switch(s){case63:a.push(e);break;default:if((r||"").indexOf("Begin")>0){}elseif((r||"").indexOf("End")>0){}elseif(!n||t.WTF)thrownewError("Unexpected record "+s+" "+r);}});returna}functionOl(){}functionDl(e,r,t,a){if(!e)returne;varn=a||{};vari=false,s=false;Qr(e,functionf(e,r,t){if(s)return;switch(t){case359:;case363:;case364:;case366:;case367:;case368:;case369:;case370:;case371:;case472:;case577:;case578:;case579:;case580:;case581:;case582:;case583:;case584:;case585:;case586:;case587:break;case35:i=true;break;case36:i=false;break;default:if((r||"").indexOf("Begin")>0){}elseif((r||"").indexOf("End")>0){}elseif(!i||n.WTF)thrownewError("Unexpected record "+t.toString(16)+" "+r);}},n)}Ma.IMG="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image";Ma.DRAW="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing";functionFl(e,r){if(!e)return"??";vart=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];returnr["!id"][t].Target}varPl=1024;functionNl(e,r){vart=[21600,21600];vara=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(",");varn=[lr("xml",null,{"xmlns:v":dr.v,"xmlns:o":dr.o,"xmlns:x":dr.x,"xmlns:mv":dr.mv}).replace(/\/>/,">"),lr("o:shapelayout",lr("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),lr("v:shapetype",[lr("v:stroke",null,{joinstyle:"miter"}),lr("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:a})];while(Pl<e*1e3)Pl+=1e3;r.forEach(function(e){varr=gt(e[0]);vart={color2:"#BEFF82",type:"gradient"};if(t.type=="gradient")t.angle="-180";vara=t.type=="gradient"?lr("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null;vari=lr("v:fill",a,t);vars={on:"t",obscured:"t"};++Pl;n=n.concat(["<v:shape"+or({id:"_x0000_s"+Pl,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(e[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",i,lr("v:shadow",null,s),lr("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",fr("x:Anchor",[r.c+1,0,r.r+1,0,r.c+3,20,r.r+5,20].join(",")),fr("x:AutoFill","False"),fr("x:Row",String(r.r)),fr("x:Column",String(r.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])});n.push("</xml>");returnn.join("")}Ma.CMNT="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";functionLl(e,r){vart=Array.isArray(e);vara;r.forEach(function(r){varn=gt(r.ref);if(t){if(!e[n.r])e[n.r]=[];a=e[n.r][n.c]}elsea=e[r.ref];if(!a){a={t:"z"};if(t)e[n.r][n.c]=a;elsee[r.ref]=a;vari=kt(e["!ref"]||"BDWGO1000001:A1");if(i.s.r>n.r)i.s.r=n.r;if(i.e.r<n.r)i.e.r=n.r;if(i.s.c>n.c)i.s.c=n.c;if(i.e.c<n.c)i.e.c=n.c;vars=wt(i);if(s!==e["!ref"])e["!ref"]=s}if(!a.c)a.c=[];varf={a:r.author,t:r.t,r:r.r};if(r.h)f.h=r.h;a.c.push(f)})}functionMl(e,r){if(e.match(/<(?:\w+:)?comments *\/>/))return[];vart=[];vara=[];varn=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);if(n&&n[1])n[1].split(/<\/\w*:?author>/).forEach(function(e){if(e===""||e.trim()==="")return;varr=e.match(/<(?:\w+:)?author[^>]*>(.*)/);if(r)t.p
t.SSF=D.get_table();if(R.enc)t.Encryption=R.enc;if(O)t.Themes=O;t.Metadata={};if(E!==undefined)t.Metadata.Country=E;if(H.names.length>0)B.Names=H.names;t.Workbook=B;returnt}varAv={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function_v(e,r,t){vara=W.find(e,"!DocumentSummaryInformation");if(a&&a.size>0)try{varn=Hn(a,ka,Av.DSI);for(variinn)r[i]=n[i]}catch(s){if(t.WTF)throws}varf=W.find(e,"!SummaryInformation");if(f&&f.size>0)try{varo=Hn(f,Ca,Av.SI);for(varlino)if(r[l]==null)r[l]=o[l]}catch(s){if(t.WTF)throws}if(r.HeadingPairs&&r.TitlesOfParts){fn(r.HeadingPairs,r.TitlesOfParts,r,t);deleter.HeadingPairs;deleter.TitlesOfParts}}functionBv(e,r){vart=[],a=[],n=[];vari=0,s;if(e.Props){s=K(e.Props);for(i=0;i<s.length;++i)(Object.prototype.hasOwnProperty.call(Sa,s[i])?t:Object.prototype.hasOwnProperty.call(Aa,s[i])?a:n).push([s[i],e.Props[s[i]]])}if(e.Custprops){s=K(e.Custprops);for(i=0;i<s.length;++i)if(!Object.prototype.hasOwnProperty.call(e.Props||{},s[i]))(Object.prototype.hasOwnProperty.call(Sa,s[i])?t:Object.prototype.hasOwnProperty.call(Aa,s[i])?a:n).push([s[i],e.Custprops[s[i]]])}varf=[];for(i=0;i<n.length;++i){if(Mn.indexOf(n[i][0])>-1)continue;if(n[i][1]==null)continue;f.push(n[i])}if(a.length)W.utils.cfb_add(r,"/SummaryInformation",Wn(a,Av.SI,Aa,Ca));if(t.length||f.length)W.utils.cfb_add(r,"/DocumentSummaryInformation",Wn(t,Av.DSI,Sa,ka,f.length?f:null,Av.UDI))}functionTv(e,r){if(!r)r={};wg(r);l();if(r.codepage)s(r.codepage);vart,a;if(e.FullPaths){if(W.find(e,"/encryption"))thrownewError("File is password-protected");t=W.find(e,"!CompObj");a=W.find(e,"/Workbook")||W.find(e,"/Book")}else{switch(r.type){case"base64":e=_(m.decode(e));break;case"binary":e=_(e);break;case"buffer":break;case"array":if(!Array.isArray(e))e=Array.prototype.slice.call(e);break;}$r(e,0);a={content:e}}varn;vari;if(t)wv(t);if(r.bookProps&&!r.bookSheets)n={};else{varf=w?"buffer":"array";if(a&&a.content)n=Sv(a.content,r);elseif((i=W.find(e,"PerfectOffice_MAIN"))&&i.content)n=vf.to_workbook(i.content,(r.type=f,r));elseif((i=W.find(e,"NativeContent_MAIN"))&&i.content)n=vf.to_workbook(i.content,(r.type=f,r));elsethrownewError("Cannot find Workbook stream");if(r.bookVBA&&e.FullPaths&&W.find(e,"/_VBA_PROJECT_CUR/VBA/dir"))n.vbaraw=Yl(e)}varo={};if(e.FullPaths)_v(e,o,r);n.Props=n.Custprops=o;if(r.bookFiles)n.cfb=e;returnn}functionyv(e,r){vart=r||{};vara=W.utils.cfb_new({root:"R"});varn="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":if(!t.bookType)t.bookType="xla";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");}W.utils.cfb_add(a,n,$v(e,t));if(t.biff==8&&(e.Props||e.Custprops))Bv(e,a);if(t.biff==8&&e.vbaraw)$l(a,W.read(e.vbaraw,{type:typeofe.vbaraw=="string"?"binary":"buffer"}));returna}varxv={0:{n:"BrtRowHdr",f:Gu},1:{n:"BrtCellBlank",f:qu},2:{n:"BrtCellRk",f:od},3:{n:"BrtCellError",f:ad},4:{n:"BrtCellBool",f:rd},5:{n:"BrtCellReal",f:sd},6:{n:"BrtCellSt",f:cd},7:{n:"BrtCellIsst",f:nd},8:{n:"BrtFmlaString",f:vd},9:{n:"BrtFmlaNum",f:pd},10:{n:"BrtFmlaBool",f:ud},11:{n:"BrtFmlaError",f:dd},16:{n:"BrtFRTArchID$",f:Cp},19:{n:"BrtSSTItem",f:Rt},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:Ep},40:{n:"BrtIndexRowBlock"},42:{n:"BrtIndexBlock"},43:{n:"BrtFont",f:Uo},44:{n:"BrtFmt",f:Lo},45:{n:"BrtFill",f:Vo},46:{n:"BrtBorder",f:Yo},47:{n:"BrtXF",f:Go},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
n:"AreaFormat"},4107:{n:"PieFormat"},4108:{n:"AttachedLabel"},4109:{n:"SeriesText"},4116:{n:"ChartFormat"},4117:{n:"Legend"},4118:{n:"SeriesList"},4119:{n:"Bar"},4120:{n:"Line"},4121:{n:"Pie"},4122:{n:"Area"},4123:{n:"Scatter"},4124:{n:"CrtLine"},4125:{n:"Axis"},4126:{n:"Tick"},4127:{n:"ValueRange"},4128:{n:"CatSerRange"},4129:{n:"AxisLine"},4130:{n:"CrtLink"},4132:{n:"DefaultText"},4133:{n:"Text"},4134:{n:"FontX",f:Yn},4135:{n:"ObjectLink"},4146:{n:"Frame"},4147:{n:"Begin"},4148:{n:"End"},4149:{n:"PlotArea"},4154:{n:"Chart3d"},4156:{n:"PicF"},4157:{n:"DropBar"},4158:{n:"Radar"},4159:{n:"Surf"},4160:{n:"RadarArea"},4161:{n:"AxisParent"},4163:{n:"LegendException"},4164:{n:"ShtProps",f:Ys},4165:{n:"SerToCrt"},4166:{n:"AxesUsed"},4168:{n:"SBaseRef"},4170:{n:"SerParent"},4171:{n:"SerAuxTrend"},4174:{n:"IFmtRecord"},4175:{n:"Pos"},4176:{n:"AlRuns"},4177:{n:"BRAI"},4187:{n:"SerAuxErrBar"},4188:{n:"ClrtClient",f:Vs},4189:{n:"SerFmt"},4191:{n:"Chart3DBarShape"},4192:{n:"Fbi"},4193:{n:"BopPop"},4194:{n:"AxcExt"},4195:{n:"Dat"},4196:{n:"PlotGrowth"},4197:{n:"SIIndex"},4198:{n:"GelFrame"},4199:{n:"BopPopCustom"},4200:{n:"Fbi2"},0:{n:"Dimensions",f:ns},2:{n:"BIFF2INT",f:af},5:{n:"BoolErr",f:ps},7:{n:"String",f:sf},8:{n:"BIFF2ROW"},11:{n:"Index"},22:{n:"ExternCount",f:Yn},30:{n:"BIFF2FORMAT",f:as},31:{n:"BIFF2FMTCNT"},32:{n:"BIFF2COLINFO"},33:{n:"Array",f:Ts},37:{n:"DefaultRowHeight",f:Xi},50:{n:"BIFF2FONTXTRA",f:ff},52:{n:"DDEObjName"},62:{n:"BIFF2WINDOW2"},67:{n:"BIFF2XF"},69:{n:"BIFF2FONTCLR"},86:{n:"BIFF4FMTCNT"},126:{n:"RK"},127:{n:"ImData",f:qs},135:{n:"Addin"},136:{n:"Edg"},137:{n:"Pub"},145:{n:"Sub"},148:{n:"LHRecord"},149:{n:"LHNGraph"},150:{n:"Sound"},169:{n:"CoordList"},171:{n:"GCW"},188:{n:"ShrFmla"},191:{n:"ToolbarHdr"},192:{n:"ToolbarEnd"},194:{n:"AddMenu"},195:{n:"DelMenu"},214:{n:"RString",f:of},223:{n:"UDDesc"},234:{n:"TabIdConf"},354:{n:"XL5Modify"},421:{n:"FileSharing2"},521:{n:"BOF",f:Ri},536:{n:"Lbl",f:Es},547:{n:"ExternName",f:ks},561:{n:"Font"},579:{n:"BIFF3XF"},1033:{n:"BOF",f:Ri},1091:{n:"BIFF4XF"},2157:{n:"FeatInfo"},2163:{n:"FeatInfo11"},2177:{n:"SXAddl12"},2240:{n:"AutoWebPub"},2241:{n:"ListObj"},2242:{n:"ListField"},2243:{n:"ListDV"},2244:{n:"ListCondFmt"},2245:{n:"ListCF"},2246:{n:"FMQry"},2247:{n:"FMSQry"},2248:{n:"PLV"},2249:{n:"LnExt"},2250:{n:"MkrExt"},2251:{n:"CrtCoopt"},2262:{n:"FRTArchId$",r:12},29282:{}};varOv=Y(Rv,"n");functionDv(e,r,t,a){varn=+r||+Ov[r];if(isNaN(n))return;vari=a||(t||[]).length||0;vars=e.next(4);s._W(2,n);s._W(2,i);if(i>0&&Nr(t))e.push(t)}functionFv(e,r,t){if(!e)e=Jr(7);e._W(2,r);e._W(2,t);e._W(2,0);e._W(1,0);returne}functionPv(e,r,t,a){varn=Jr(9);Fv(n,e,r);if(a=="e"){n._W(1,t);n._W(1,1)}else{n._W(1,t?1:0);n._W(1,0)}returnn}functionNv(e,r,t){vara=Jr(8+2*t.length);Fv(a,e,r);a._W(1,t.length);a._W(t.length,t,"sbcs");returna.l<a.length?a.slice(0,a.l):a}functionLv(e,r,t,a){if(r.v!=null)switch(r.t){case"d":;case"n":varn=r.t=="d"?ee(oe(r.v)):r.v;if(n==(n|0)&&n>=0&&n<65536)Dv(e,2,nf(t,a,n));elseDv(e,3,tf(t,a,n));return;case"b":;case"e":Dv(e,5,Pv(t,a,r.v,r.t));return;case"s":;case"str":Dv(e,4,Nv(t,a,r.v));return;}Dv(e,1,Fv(null,t,a))}functionMv(e,r,t,a){varn=Array.isArray(r);vari=kt(r["!ref"]||"A1"),s,f="",o=[];if(i.e.c>255||i.e.r>16383){if(a.WTF)thrownewError("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255);i.e.r=Math.min(i.e.c,16383);s=wt(i)}for(varl=i.s.r;l<=i.e.r;++l){f=ot(l);for(varc=i.s.c;c<=i.e.c;++c){if(l===i.s.r)o[c]=ut(c);s=o[c]+f;varh=n?(r[l]||[])[c]:r[s];if(!h)continue;Lv(e,h,l,c,a)}}}functionUv(e,r){vart=r||{};if(g!=null&&t.dense==null)t.dense=g;vara=qr();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);Dv(a,9,Oi(e,16,t));Mv(a,e.Sheets[e.SheetNames[n]],n,t,e);Dv(a,10);returna.end()}functionzv(e,r,t){Dv(e,"Font",Ji({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},t))}functionHv(e,r,t){if(!r)return;[[5,8],[23,26],[41,44],[50,392]].forEach(function(a){for(varn=a[0];n<=a[1];++n)
if(!r.id)r.id=r.strRelID;return[r.name,e["!id"][r.id].Target,Cg(e["!id"][r.id].Type)]})}catch(t){returnnull}return!e||e.length===0?null:e}functionSg(e,r,t,a,n,i,s,f,o,l,c,h){try{i[a]=za(Ee(e,t,true),r);varu=Ce(e,r);vard;switch(f){case"sheet":d=Ip(u,r,n,o,i[a],l,c,h);break;case"chart":d=Rp(u,r,n,o,i[a],l,c,h);if(!d||!d["!drawel"])break;varp=ye(d["!drawel"].Target,r);varv=Ua(p);varg=Fl(Ee(e,p,true),za(Ee(e,v,true),p));varb=ye(g,p);varm=Ua(b);d=Yd(Ee(e,b,true),b,o,za(Ee(e,m,true),b),l,d);break;case"macro":d=Op(u,r,n,o,i[a],l,c,h);break;case"dialog":d=Dp(u,r,n,o,i[a],l,c,h);break;default:thrownewError("Unrecognized sheet type "+f);}s[a]=d;varw=[];if(i&&i[a])K(i[a]).forEach(function(t){if(i[a][t].Type==Ma.CMNT){varn=ye(i[a][t].Target,r);w=Lp(Ce(e,n,true),n,o);if(!w||!w.length)return;Ll(d,w)}})}catch(k){if(o.WTF)throwk}}functionAg(e){returne.charAt(0)=="/"?e.slice(1):e}function_g(e,r){F(D);r=r||{};wg(r);if(we(e,"META-INF/manifest.xml"))returntg(e,r);if(we(e,"objectdata.xml"))returntg(e,r);if(we(e,"Index/Document.iwa"))thrownewError("Unsupported NUMBERS file");vart=Se(e);vara=Fa(Ee(e,"[Content_Types].xml"));varn=false;vari,s;if(a.workbooks.length===0){s="xl/workbook.xml";if(Ce(e,s,true))a.workbooks.push(s)}if(a.workbooks.length===0){s="xl/workbook.bin";if(!Ce(e,s,true))thrownewError("Could not find workbook");a.workbooks.push(s);n=true}if(a.workbooks[0].slice(-3)=="bin")n=true;varf={};varo={};if(!r.bookSheets&&!r.bookProps){nu=[];if(a.sst)try{nu=Np(Ce(e,Ag(a.sst)),a.sst,r)}catch(l){if(r.WTF)throwl}if(r.cellStyles&&a.themes.length)f=Pp(Ee(e,a.themes[0].replace(/^\//,""),true)||"",a.themes[0],r);if(a.style)o=Fp(Ce(e,Ag(a.style)),a.style,f,r)}a.links.map(function(t){try{vara=za(Ee(e,Ua(Ag(t))),t);returnUp(Ce(e,Ag(t)),a,t,r)}catch(n){}});varc=xp(Ce(e,Ag(a.workbooks[0])),a.workbooks[0],r);varh={},u="";if(a.coreprops.length){u=Ce(e,Ag(a.coreprops[0]),true);if(u)h=en(u);if(a.extprops.length!==0){u=Ce(e,Ag(a.extprops[0]),true);if(u)on(u,h,r)}}vard={};if(!r.bookSheets||r.bookProps){if(a.custprops.length!==0){u=Ee(e,Ag(a.custprops[0]),true);if(u)d=un(u,r)}}varp={};if(r.bookSheets||r.bookProps){if(c.Sheets)i=c.Sheets.map(functionI(e){returne.name});elseif(h.Worksheets&&h.SheetNames.length>0)i=h.SheetNames;if(r.bookProps){p.Props=h;p.Custprops=d}if(r.bookSheets&&typeofi!=="undefined")p.SheetNames=i;if(r.bookSheets?p.SheetNames:r.bookProps)returnp}i={};varv={};if(r.bookDeps&&a.calcchain)v=Mp(Ce(e,Ag(a.calcchain)),a.calcchain,r);varg=0;varb={};varm,w;{vark=c.Sheets;h.Worksheets=k.length;h.SheetNames=[];for(varC=0;C!=k.length;++C){h.SheetNames[C]=k[C].name}}varE=n?"bin":"xml";varS=a.workbooks[0].lastIndexOf("/");varA=(a.workbooks[0].slice(0,S+1)+"_rels/"+a.workbooks[0].slice(S+1)+".rels").replace(/^\//,"");if(!we(e,A))A="xl/_rels/workbook."+E+".rels";var_=za(Ee(e,A,true),A);if(_)_=Eg(_,c.Sheets);varB=Ce(e,"xl/worksheets/sheet.xml",true)?1:0;e:for(g=0;g!=h.Worksheets;++g){varT="sheet";if(_&&_[g]){m="xl/"+_[g][1].replace(/[\/]?xl\//,"");if(!we(e,m))m=_[g][1];if(!we(e,m))m=A.replace(/_rels\/.*$/,"")+_[g][1];T=_[g][2]}else{m="xl/worksheets/sheet"+(g+1-B)+"."+E;m=m.replace(/sheet0\./,"sheet.")}w=m.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels");if(r&&r.sheets!=null)switch(typeofr.sheets){case"number":if(g!=r.sheets)continuee;break;case"string":if(h.SheetNames[g].toLowerCase()!=r.sheets.toLowerCase())continuee;break;default:if(Array.isArray&&Array.isArray(r.sheets)){vary=false;for(varx=0;x!=r.sheets.length;++x){if(typeofr.sheets[x]=="number"&&r.sheets[x]==g)y=1;if(typeofr.sheets[x]=="string"&&r.sheets[x].toLowerCase()==h.SheetNames[g].toLowerCase())y=1}if(!y)continuee};}Sg(e,m,w,h.SheetNames[g],g,b,i,T,r,c,f,o)}p={Directory:a,Workbook:c,Props:h,Custprops:d,Deps:v,Sheets:i,SheetNames:h.SheetNames,Strings:nu,Styles:o,Themes:f,SSF:D.get_table()};if(r&&r.bookFiles){p.keys=t;p.files=e.files}if(r&&r.bookVBA){if(a.vba.length>0)p.vbaraw=Ce(e,Ag(a.vba[0]),true);elseif(a.defaults&&a.defaults.bin===Kl)p.vbaraw=Ce(e,"xl/vbaProject.bin",true)}returnp}functionBg(e,r){vart=r||{};vara="Workbook",n