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}}functionsn(e,r,t){vara={};if(!r)r={};e=Ke(e);tn.forEach(function(t){varn=(e.match(Je(t[0]))||[])[1];switch(t[2]){case"string":r[t[1]]=Ne(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)nn(a.HeadingPairs,a.TitlesOfParts,r,t);returnr}varfn=fr("Properties",null,{xmlns:cr.EXT_PROPS,"xmlns:vt":cr.vt});functionon(e){varr=[],t=fr;if(!e)e={};e.Application="SheetJS";r[r.length]=Te;r[r.length]=fn;tn.forEach(function(a){if(e[a[1]]===undefined)return;varn;switch(a[2]){case"string":n=Ue(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>"+Ue(e)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"}));if(r.length>2){r[r.length]="</Properties>";r[1]=r[1].replace("/>",">")}returnr.join("")}cr.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties";Na.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties";varln=/<[^>]+>[^<]*/g;functioncn(e,r){vart={},a="";varn=e.match(ln);if(n)for(vari=0;i!=n.length;++i){vars=n[i],f=Oe(s);switch(f[0]){case"<?xml":break;case"<Properties":break;case"<property":a=Ne(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]=Ne(c);break;case"bool":t[a]=je(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]=se(c);break;case"cy":;case"error":t[a]=Ne(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}varhn=fr("Properties",null,{xmlns:cr.CUST_PROPS,"xmlns:vt":cr.vt});functionun(e){varr=[Te,hn];if(!e)returnr.join("");vart=1;K(e).forEach(functiona(n){++t;r[r.length]=fr("property",lr(e[n]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t,name:Ue(n)})});if(r.length>2){r[r.length]="</Properties>";r[1]=r[1].replace("/>",">")}returnr.join("")}vardn={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"};varpn=Z(dn);functionvn(e,r,t){r=pn[r]||r;e[r]=t}functiongn(e,r){vart=[];K(dn).map(function(e){for(varr=0;r<Za.length;++r)if(Za[r][1]==e)returnZa[r];for(r=0;r<tn.length;++r)if(tn[r][1]==e)returntn[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=newDate(n).toISOString().replace(/\.\d*Z/,"Z");break;}if(typeofn=="number")n=String(n);elseif(n===true||n===false){n=n?"1":"0"}elseif(ninstanceofDate)n=newDate(n).toISOString().replace(/\.\d*Z/,"");t.push(ir(dn[a[1]]||a[1],n))});returnfr("DocumentProperties",t.join(""),{xmlns:hr.o})}functionbn(e,r){vart=["Worksheets","SheetNames"];vara="CustomDocumentProperties";varn=[];if(e)K(e).forEach(function(r){if(!Object.prototype.hasOwnProperty.call(e,r))return;for(vara=0;a<Za.length;++a)if(r==Za[
n=r;break;}Kr(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){varC=n.slice(n.l,n.l+d[w].len);n.l+=d[w].len;Kr(C,0);vark=cptable.utils.decode(u,C);switch(d[w].type){case"C":a[b][w]=cptable.utils.decode(u,C);a[b][w]=a[b][w].trim();break;case"D":if(k.length===8)a[b][w]=newDate(+k.slice(0,4),+k.slice(4,6)-1,+k.slice(6,8));elsea[b][w]=k;break;case"F":a[b][w]=parseFloat(k.trim());break;case"+":;case"I":a[b][w]=o?C._R(-4,"i")^2147483648:C._R(4,"i");break;case"L":switch(k.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:|"+k+"|");}break;case"M":if(!s)thrownewError("DBF Unexpected MEMO for type "+i.toString(16));a[b][w]="##MEMO##"+(o?parseInt(k.trim(),10):C._R(4));break;case"N":a[b][w]=+k.replace(/\u0000/g,"").trim();break;case"@":a[b][w]=newDate(C._R(-8,"f")-621356832e5);break;case"T":a[b][w]=newDate((C._R(4)-2440588)*864e5+C._R(4));break;case"Y":a[b][w]=C._R(4,"i")/1e4;break;case"O":a[b][w]=-C._R(-8,"f");break;case"B":if(f&&d[w].len==8){a[b][w]=C._R(8,"f");break};case"G":;case"P":C.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";returnSt(a(e,t),t)}functioni(e,r){try{returnkt(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=Kg(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=mt(e["!ref"]);varg=[];for(h=0;h<=v.e.c-v.s.c;++h){varb=[];for(u=0;u<c.length;++u){if(c[u][h]!=null)b.push(c[u][h])}if(b.length==0||l[h]==null){g[h]="?";continue}varm="",w="";for(u=0;u<b.length;++u){switch(typeofb[u]){case"number":w="B";break;case"string":w="C";break;case"boolean":w="L";break;case"object":w=b[u]instanceofDate?"D":"C";break;default:w="C";}m=m&&m!=w?"C":w;if(m=="C")break}p+=s[m]||0;g[h]=m}varC=i.next(32);C._W(4,318902576);C._W(4,c.length);C._W(2,296+32*d);C._W(2,p);for(h=0;h<4;++h)C._W(4,0);C
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=Of(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}}();varZf=function(e,r,t,a,n){if(!n)n=r;if(!a)a=$f(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=$f(e);returnfunction(e){vara=Zf("",e,r,t);r=a[1];returna[0]}};functionJf(e,r,t,a){varn={key:jn(e),verificationBytes:jn(e)};if(t.password)n.verifier=Yf(t.password);a.valid=n.verificationBytes===n.verifier;if(a.valid)a.insitu=Qf(t.password);returnn}functionqf(e,r,t){vara=t||{};a.Info=e._R(2);e.l-=2;if(a.Info===1)a.Data=Kf(e,r);elsea.Data=jf(e,r);returna}functioneo(e,r,t){vara={Type:t.biff>=8?e._R(2):0};if(a.Type)qf(e,r-2,a);elseJf(e,t.biff>=8?r:r-2,t,a);returna}varro=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(fe(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"]=bt(n);returna}functiont(r,t){returnkt(e(r,t),t)}functiona(e){varr=["{\\rtf1\\ansi"];vart=mt(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=vt({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||(Ct(a),a.w)));r.push("\\cell")}r.push("\\pard\\intbl\\row")}returnr.join("")+"}"}return{to_workbook:t,to_sheet:e,from_sheet:a}}();functionto(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)]}functionao(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)}functionno(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]}functionio(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}functionso(e,r){if(r===0)returne;vart=no(to(e));if(r<0)t[2]=t[2]*(1+r);elset[2]=1-(1-t[2])*(1-r);returnao(io(t))}varfo=6,oo=15,lo=1,co=fo;functionho(e){returnMath.floor((e+Math.round(128/co)/256)*co)}functionuo(e){returnMath.floor((e-5)/co*100+.5)/100}functionpo(e){returnMath.round((e*co+5)/co*256)/256}functionvo(e){returnpo(uo(ho(e)))}functiongo(e){varr=Math.abs(e-vo(e)),t=co;if(r>.005)for(co=lo;co<oo;++co)if(Math.abs(e-vo(e))<=r){r=Math.abs(e-vo(e));t=co}co=t}functionbo(e){if(e.width){e.wpx=ho(e.width);e.wch=uo(e.wpx);e.MDW=co}elseif(e.wpx){e.wch=uo(e.wpx);e.width=po(e.wch);e.MDW=co}elseif(typeofe.wch=="number"){e.width=po(e.wch);e.wpx=ho(e.width);e.MDW=co}if(e.customWidth)deletee.customWidth}varmo=96,wo=mo;functionCo(e){returne*96/wo}functionko(e){returne*wo/96}varEo={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",T
r.push(a);break;}});returnr}functionyl(e){varr={};r.i=e._R(4);vart={};t.r=e._R(4);t.c=e._R(4);r.r=vt(t);vara=e._R(1);if(a&2)r.l="1";if(a&8)r.a="1";returnr}functionxl(e,r,t){vara=[];varn=false;Zr(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}functionIl(){}functionRl(e,r,t,a){if(!e)returne;varn=a||{};vari=false,s=false;Zr(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)}Na.IMG="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image";Na.DRAW="http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing";functionOl(e,r){if(!e)return"??";vart=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];returnr["!id"][t].Target}varDl=1024;functionFl(e,r){vart=[21600,21600];vara=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(",");varn=[fr("xml",null,{"xmlns:v":hr.v,"xmlns:o":hr.o,"xmlns:x":hr.x,"xmlns:mv":hr.mv}).replace(/\/>/,">"),fr("o:shapelayout",fr("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),fr("v:shapetype",[fr("v:stroke",null,{joinstyle:"miter"}),fr("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:a})];while(Dl<e*1e3)Dl+=1e3;r.forEach(function(e){varr=pt(e[0]);vart={color2:"#BEFF82",type:"gradient"};if(t.type=="gradient")t.angle="-180";vara=t.type=="gradient"?fr("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null;vari=fr("v:fill",a,t);vars={on:"t",obscured:"t"};++Dl;n=n.concat(["<v:shape"+sr({id:"_x0000_s"+Dl,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,fr("v:shadow",null,s),fr("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",ir("x:Anchor",[r.c+1,0,r.r+1,0,r.c+3,20,r.r+5,20].join(",")),ir("x:AutoFill","False"),ir("x:Row",String(r.r)),ir("x:Column",String(r.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])});n.push("</xml>");returnn.join("")}Na.CMNT="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";functionPl(e,r){vart=Array.isArray(e);vara;r.forEach(function(r){varn=pt(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=mt(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=bt(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)})}functionNl(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.push(r[1])});vari=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);if(i&&i[1])i[1].split(/<\/\w*:?comment>/).forEach(function(e){if(e===""||e.trim()==="")return;varn=e.match(/<(?:\w+:)?comment[^>]*>/);if(!n)return;vari=Oe(n[0]);vars={author:i.authorId&&t[i.authorId]||"sheetjsghost",ref:i.ref,guid:i.guid};varf=pt(i.ref);if(r.sheetRows&&r.sheetRows<=f.r)return;varo=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/);varl=!!o&&!!o[1]&&Cf(o[1])||{r:"",t:"",h:""};s.r=l.r;if(l.r=="<t></t>")l.t=l.h="";s.t=l.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n");if(r.cell
[["objects",false],["scenarios",false],["formatCells",true],["formatColumns",true],["formatRows",true],["insertColumns",true],["insertRows",true],["insertHyperlinks",true],["deleteColumns",true],["deleteRows",true],["selectLockedCells",false],["sort",true],["autoFilter",true],["pivotTables",true],["selectUnlockedCells",false]].forEach(function(t){if(t[1])r._W(4,e[t[0]]!=null&&!e[t[0]]?1:0);elser._W(4,e[t[0]]!=null&&e[t[0]]?0:1)});returnr}functionId(){}functionRd(){}functionOd(e,r,t,a,n,i,s){if(!e)returne;varf=r||{};if(!a)a={"!id":{}};if(g!=null&&f.dense==null)f.dense=g;varo=f.dense?[]:{};varl;varc={s:{r:2e6,c:2e6},e:{r:0,c:0}};varh=[];varu=false,d=false;varp,v,b,m,w,C,k,E,S;varA=[];f.biff=12;f["!row"]=0;var_=0,B=false;varT=[];vary={};varx=f.supbooks||n.supbooks||[[]];x.sharedf=y;x.arrayf=T;x.SheetNames=n.SheetNames||n.Sheets.map(function(e){returne.name});if(!f.supbooks){f.supbooks=x;if(n.Names)for(varI=0;I<n.Names.length;++I)x[0][I+1]=n.Names[I]}varR=[],O=[];varF=false;Zr(e,functionN(e,r,g){if(d)return;switch(g){case148:l=e;break;case0:p=e;if(f.sheetRows&&f.sheetRows<=p.r)d=true;E=st(m=p.r);f["!row"]=p.r;if(e.hidden||e.hpt||e.level!=null){if(e.hpt)e.hpx=ko(e.hpt);O[e.r]=e}break;case2:;case3:;case4:;case5:;case6:;case7:;case8:;case9:;case10:;case11:v={t:e[2]};switch(e[2]){case"n":v.v=e[1];break;case"s":k=tu[e[1]];v.v=k.t;v.r=k.r;break;case"b":v.v=e[1]?true:false;break;case"e":v.v=e[1];if(f.cellText!==false)v.w=Zt[v.v];break;case"str":v.t="s";v.v=e[1];break;}if(b=s.CellXf[e[0].iStyleRef])lu(v,b.numFmtId,null,f,i,s);w=e[0].c;if(f.dense){if(!o[m])o[m]=[];o[m][w]=v}elseo[ct(w)+E]=v;if(f.cellFormula){B=false;for(_=0;_<T.length;++_){varI=T[_];if(p.r>=I[0].s.r&&p.r<=I[0].e.r)if(w>=I[0].s.c&&w<=I[0].e.c){v.F=bt(I[0]);B=true}}if(!B&&e.length>3)v.f=e[3]}if(c.s.r>p.r)c.s.r=p.r;if(c.s.c>w)c.s.c=w;if(c.e.r<p.r)c.e.r=p.r;if(c.e.c<w)c.e.c=w;if(f.cellDates&&b&&v.t=="n"&&D.is_date(D._table[b.numFmtId])){varP=D.parse_date_code(v.v);if(P){v.t="d";v.v=newDate(P.y,P.m-1,P.d,P.H,P.M,P.S,P.u)}}break;case1:if(!f.sheetStubs||u)break;v={t:"z",v:undefined};w=e[0].c;if(f.dense){if(!o[m])o[m]=[];o[m][w]=v}elseo[ct(w)+E]=v;if(c.s.r>p.r)c.s.r=p.r;if(c.s.c>w)c.s.c=w;if(c.e.r<p.r)c.e.r=p.r;if(c.e.c<w)c.e.c=w;break;case176:A.push(e);break;case494:varN=a["!id"][e.relId];if(N){e.Target=N.Target;if(e.loc)e.Target+="#"+e.loc;e.Rel=N}elseif(e.relId==""){e.Target="#"+e.loc}for(m=e.rfx.s.r;m<=e.rfx.e.r;++m)for(w=e.rfx.s.c;w<=e.rfx.e.c;++w){if(f.dense){if(!o[m])o[m]=[];if(!o[m][w])o[m][w]={t:"z",v:undefined};o[m][w].l=e}else{C=vt({c:w,r:m});if(!o[C])o[C]={t:"z",v:undefined};o[C].l=e}}break;case426:if(!f.cellFormula)break;T.push(e);S=f.dense?o[m][w]:o[ct(w)+E];S.f=Fh(e[1],c,{r:p.r,c:w},x,f);S.F=bt(e[0]);break;case427:if(!f.cellFormula)break;y[vt(e[0].s)]=e[1];S=f.dense?o[m][w]:o[ct(w)+E];S.f=Fh(e[1],c,{r:p.r,c:w},x,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;go(e.w/256)}bo(R[e.e+1])}break;case161:o["!autofilter"]={ref:bt(e)};break;case476:o["!margins"]=e;break;case147:if(!n.Sheets[t])n.Sheets[t]={};if(e.name)n.Sheets[t].CodeName=e.name;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;case175:;case644:;case625:;case562:;case396:;case1112:;case1146:;case471:;case1050:;case649:;case1105:;case49:;case589:;case607:;case564:;case1055:;case168:;case174:;case1180:;case499:;case550:;case171:;case167:;case1177:;case169:;case1181:;case551:;case552:;case661:;case639:;case478:;case537:;case477:;case536:;case1103:;case680:;case1104:;case1024:;case152:;case663:;case535:;case678:;case504:;case1043:;case428:;case170:;case3072:;case50:;case2070:;case1045:break;case35:u=true;break;case36:u=false;break;case37:h.push(r);u=true;break;case38:h.pop();u=false;break;default:if((r||"").indexOf("Begin")>0){}elseif((r||"").indexOf("End")>0){}elseif(!u||f.WTF)thrownewError("Unexpected record "
}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(ka,s[i])?t:Object.prototype.hasOwnProperty.call(Ea,s[i])?a:n).push([s[i],e.Custprops[s[i]]])}varf=[];for(i=0;i<n.length;++i){if(Nn.indexOf(n[i][0])>-1)continue;if(n[i][1]==null)continue;f.push(n[i])}if(a.length)z.utils.cfb_add(r,"/SummaryInformation",Hn(a,Ev.SI,Ea,wa));if(t.length||f.length)z.utils.cfb_add(r,"/DocumentSummaryInformation",Hn(t,Ev.DSI,ka,ma,f.length?f:null,Ev.UDI))}function_v(e,r){if(!r)r={};bg(r);l();if(r.codepage)s(r.codepage);vart,a;if(e.FullPaths){if(z.find(e,"/encryption"))thrownewError("File is password-protected");t=z.find(e,"!CompObj");a=z.find(e,"/Workbook")||z.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;}Kr(e,0);a={content:e}}varn;vari;if(t)bv(t);if(r.bookProps&&!r.bookSheets)n={};else{varf=w?"buffer":"array";if(a&&a.content)n=kv(a.content,r);elseif((i=z.find(e,"PerfectOffice_MAIN"))&&i.content)n=df.to_workbook(i.content,(r.type=f,r));elseif((i=z.find(e,"NativeContent_MAIN"))&&i.content)n=df.to_workbook(i.content,(r.type=f,r));elsethrownewError("Cannot find Workbook stream");if(r.bookVBA&&e.FullPaths&&z.find(e,"/_VBA_PROJECT_CUR/VBA/dir"))n.vbaraw=jl(e)}varo={};if(e.FullPaths)Sv(e,o,r);n.Props=n.Custprops=o;if(r.bookFiles)n.cfb=e;returnn}functionBv(e,r){vart=r||{};vara=z.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");}z.utils.cfb_add(a,n,Kv(e,t));if(t.biff==8&&(e.Props||e.Custprops))Av(e,a);if(t.biff==8&&e.vbaraw)Kl(a,z.read(e.vbaraw,{type:typeofe.vbaraw=="string"?"binary":"buffer"}));returna}varTv={0:{n:"BrtRowHdr",f:Vu},1:{n:"BrtCellBlank",f:Qu},2:{n:"BrtCellRk",f:sd},3:{n:"BrtCellError",f:rd},4:{n:"BrtCellBool",f:qu},5:{n:"BrtCellReal",f:nd},6:{n:"BrtCellSt",f:od},7:{n:"BrtCellIsst",f:td},8:{n:"BrtFmlaString",f:dd},9:{n:"BrtFmlaNum",f:ud},10:{n:"BrtFmlaBool",f:cd},11:{n:"BrtFmlaError",f:hd},16:{n:"BrtFRTArchID$",f:wp},19:{n:"BrtSSTItem",f:xt},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:Cp},40:{n:"BrtIndexRowBlock"},42:{n:"BrtIndexBlock"},43:{n:"BrtFont",f:Lo},44:{n:"BrtFmt",f:Po},45:{n:"BrtFill",f:Wo},46:{n:"BrtBorder",f:jo},47:{n:"BrtXF",f:Vo},48:{n:"BrtStyle"},49:{n:"BrtCellMeta"},50:{n:"BrtValueMeta"},51:{n:"BrtMdb"},52:{n:"BrtBeginFmd"},53:{n:"BrtEndFmd"},54:{n:"BrtBeginMdx"},55:{n:"BrtEndMdx"},56:{n:"BrtBeginMdxTuple"},57:{n:"BrtEndMdxTuple"},58:{n:"BrtMdxMbrIstr"},59:{n:"BrtStr"},60:{n:"BrtColInfo",f:Xs},62:{n:"BrtCellRString"},63:{n:"BrtCalcChainItem$",f:yl},64:{n:"BrtDVal",f:Id},65:{n:"BrtSxvcellNum"},66:{n:"BrtSxvcellStr"},67:{n:"BrtSxvcellBool"},68:{n:"BrtSxvcellErr"},69:{n:"BrtSxvcellDate"},70:{n:"BrtSxvcellNil"},128:{n:"BrtFileVersion"},129:{n:"BrtBeginSheet"},130:{n:"BrtEndSheet"},131:{n:"BrtBeginBook",f:Yr,p:0},132:{n:"BrtEndBook"},133:{n:"BrtBeginWsViews"},134:{n:"BrtEndWsViews"},135:{n:"BrtBeginBookViews"},136:{n:"BrtEndBookViews"},137:{n:"BrtBeginWsView",f:Bd},138:{n:"BrtEndWsView"},139:{n:"BrtBeginCsViews"},140:{n:"BrtEndCsViews"},141:{n:"BrtBeginCsView"},142:{n:"BrtEndCsView"},143:{n:"BrtBeginBundleShs"},144:{n:"BrtEndBundleShs"},145:{n:"BrtBeginSheetData"},146:{n:"BrtEndSheetData"},147:{n:"BrtWsProp",f:$u},148:{n:"BrtWsDim",f:ju,p:16},151:{n:"BrtPane",f:wd},152:{n:"BrtSel"},153:{n:"BrtWbProp",f:bp},154:{n:"BrtWbFactoid"},15
},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:ts},2:{n:"BIFF2INT",f:rf},5:{n:"BoolErr",f:us},7:{n:"String",f:af},8:{n:"BIFF2ROW"},11:{n:"Index"},22:{n:"ExternCount",f:jn},30:{n:"BIFF2FORMAT",f:rs},31:{n:"BIFF2FMTCNT"},32:{n:"BIFF2COLINFO"},33:{n:"Array",f:_s},37:{n:"DefaultRowHeight",f:zi},50:{n:"BIFF2FONTXTRA",f:nf},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:sf},223:{n:"UDDesc"},234:{n:"TabIdConf"},354:{n:"XL5Modify"},421:{n:"FileSharing2"},521:{n:"BOF",f:xi},536:{n:"Lbl",f:Cs},547:{n:"ExternName",f:ms},561:{n:"Font"},579:{n:"BIFF3XF"},1033:{n:"BOF",f:xi},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:{}};varIv=Y(xv,"n");functionRv(e,r,t,a){varn=+r||+Iv[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&&Fr(t))e.push(t)}functionOv(e,r,t){if(!e)e=$r(7);e._W(2,r);e._W(2,t);e._W(2,0);e._W(1,0);returne}functionDv(e,r,t,a){varn=$r(9);Ov(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}functionFv(e,r,t){vara=$r(8+2*t.length);Ov(a,e,r);a._W(1,t.length);a._W(t.length,t,"sbcs");returna.l<a.length?a.slice(0,a.l):a}functionPv(e,r,t,a){if(r.v!=null)switch(r.t){case"d":;case"n":varn=r.t=="d"?re(se(r.v)):r.v;if(n==(n|0)&&n>=0&&n<65536)Rv(e,2,tf(t,a,n));elseRv(e,3,ef(t,a,n));return;case"b":;case"e":Rv(e,5,Dv(t,a,r.v,r.t));return;case"s":;case"str":Rv(e,4,Fv(t,a,r.v));return;}Rv(e,1,Ov(null,t,a))}functionNv(e,r,t,a){varn=Array.isArray(r);vari=mt(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=bt(i)}for(varl=i.s.r;l<=i.e.r;++l){f=st(l);for(varc=i.s.c;c<=i.e.c;++c){if(l===i.s.r)o[c]=ct(c);s=o[c]+f;varh=n?(r[l]||[])[c]:r[s];if(!h)continue;Pv(e,h,l,c,a)}}}functionLv(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);Rv(a,9,Ii(e,16,t));Nv(a,e.Sheets[e.SheetNames[n]],n,t,e);Rv(a,10);returna.end()}functionMv(e,r,t){Rv(e,"Font",$i({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},t))}functionUv(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[n]!=null)Rv(e,"Format",es(n,r[n],t))})}functionHv(e,r){vart=$r(19);t._W(4,2151);t._W(4,0);t._W(4,0);t._W(2,3);t._W(1,1);t._W(4,0);Rv(e,"FeatHdr",t);t=$r(39);t._W(4,2152);t._W(4,0);t._W(4,0);t._W(2,3);t._W(1,0);t._W(4,0);t._W(2,1);t._W(4,4);t._W(2,0);Ci(mt(r["!ref"]||"A1"),t);t._W(4,4);Rv(e,"Feat",t)}functionWv(e,r){for(vart=0;t<16;++t)Rv(e,"XF",ls({numFmtId:0,style:true},0,r));r.cellXfs.forEach(function(t){Rv(e,"XF",ls(t,0,r))})}functionzv(e,r){for(vart=0;t<r["!links"].length;++t){vara=r["!links"][t];Rv(e,"HLink",Ns(a));if(a[1].Tooltip)Rv(e,"HLinkTooltip",Ms(a))}deleter["!links"]}functionVv(e,r,t,a,n){vari=16+ou(n.cellXfs,r,n);if(r.v==null&&!r.bf){Rv(e,"Blank",di(t,a,i));return}if(r.bf)Rv(e,"Formula",zh(r,t,a,n,i));elseswitch(r.t){case"d":;case"n":vars=r.t=="d"?re(se(r.v)):r.v;Rv(e,"Number",vs(t,a,s,i,n));break;case"b":;case"e":Rv(e,517,ds(t,a,r.v,i,n,r.t));break;case"s":;case"str":Rv(e,"Label",Ji(t,a,r.v,i,n