r[r.length]="</Properties>";r[1]=r[1].replace("/>",">")}returnr.join("")}cr.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties";Pa.CUST_PROPS="http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties";varfn=/<[^>]+>[^<]*/g;functionon(e,r){vart={},a="";varn=e.match(fn);if(n)for(vari=0;i!=n.length;++i){vars=n[i],f=De(s);switch(f[0]){case"<?xml":break;case"<Properties":break;case"<property":a=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}varln=fr("Properties",null,{xmlns:cr.CUST_PROPS,"xmlns:vt":cr.vt});functioncn(e){varr=[Te,ln];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:n})});if(r.length>2){r[r.length]="</Properties>";r[1]=r[1].replace("/>",">")}returnr.join("")}varhn={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"};varun=Z(hn);functiondn(e,r,t){r=un[r]||r;e[r]=t}functionpn(e,r){vart=[];K(hn).map(function(e){for(varr=0;r<Ya.length;++r)if(Ya[r][1]==e)returnYa[r];for(r=0;r<en.length;++r)if(en[r][1]==e)returnen[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(hn[a[1]]||a[1],n))});returnfr("DocumentProperties",t.join(""),{xmlns:hr.o})}functionvn(e,r){vart=["Worksheets","SheetNames"];vara="CustomDocumentProperties";varn=[];if(e)K(e).forEach(function(r){if(!e.hasOwnProperty(r))return;for(vara=0;a<Ya.length;++a)if(r==Ya[a][1])return;for(a=0;a<en.length;++a)if(r==en[a][1])return;for(a=0;a<t.length;++a)if(r==t[a])return;vari=e[r];vars="string";if(typeofi=="number"){s="float";i=String(i)}elseif(i===true||i===false){s="boolean";i=i?"1":"0"}elsei=String(i);n.push(fr(He(r),i,{"dt:dt":s}))});if(r)K(r).forEach(function(t){if(!r.hasOwnProperty(t))return;if(e&&e.hasOwnProperty(t))return;vara=r[t];vari="string";if(typeofa=="number"){i="float";a=String(a)}elseif(a===true||a===false){i="boolean";a=a?"1":"0"}elseif(ainstanceofDate){i="dateTime.tz";a=a.toISOString()}elsea=String(a);n.push(fr(He(t),a,{"dt:dt":i}))});return"<"+a+' xmlns="'+hr.o+'">'+n.join("")+"</"+a+">"}functiongn(e){varr=e._R(4),t=e._R(4);returnnewDate((t/1e7*Math.pow(2,32)+r/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}functionmn(e){varr=typeofe=="string"?newDate(Date.parse(e)):e;vart=r.getTime()/1e3+11644473600;vara=t%Math.pow(2,32),n=(t-a)/Math.pow(2,32);a*=1e7;n*=1e7;vari=a/Math.pow(2,32)|0;if(i>0){a=a%Math.pow(2,32);n+=i}vars=$r(8);s._W(4,a);s._W(4,n);returns}functionbn(e,r,t){vara=e.l;varn=e._R(0,"lpstr-cp");if(t)while(e.l-a&3)++e.l;returnn}functionwn(e,r,t){vara=e._R(0,"lpwstr");if(t)e.l+=4-(a.length+1&3)&3;returna}functionCn(e,r,t){if(r===31)returnwn(e);returnbn(e,r,t)}functionEn(e,r,t){returnCn(e,r,t===false?0:4)}functionkn(e,r){if(!r)thrownewError("VtUnalignedString must have positive length");returnCn(e,r,0)}func
}++n.l;a[++m]=[];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);varE=cptable.utils.decode(u,C);switch(d[w].type){case"C":a[m][w]=cptable.utils.decode(u,C);a[m][w]=a[m][w].trim();break;case"D":if(E.length===8)a[m][w]=newDate(+E.slice(0,4),+E.slice(4,6)-1,+E.slice(6,8));elsea[m][w]=E;break;case"F":a[m][w]=parseFloat(E.trim());break;case"+":;case"I":a[m][w]=o?C._R(-4,"i")^2147483648:C._R(4,"i");break;case"L":switch(E.toUpperCase()){case"Y":;case"T":a[m][w]=true;break;case"N":;case"F":a[m][w]=false;break;case" ":;case"?":a[m][w]=false;break;default:thrownewError("DBF Unrecognized L:|"+E+"|");}break;case"M":if(!s)thrownewError("DBF Unexpected MEMO for type "+i.toString(16));a[m][w]="##MEMO##"+(o?parseInt(E.trim(),10):C._R(4));break;case"N":a[m][w]=+E.replace(/\u0000/g,"").trim();break;case"@":a[m][w]=newDate(C._R(-8,"f")-621356832e5);break;case"T":a[m][w]=newDate((C._R(4)-2440588)*864e5+C._R(4));break;case"Y":a[m][w]=C._R(4,"i")/1e4;break;case"O":a[m][w]=-C._R(-8,"f");break;case"B":if(f&&d[w].len==8){a[m][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{returnEt(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=Og(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=bt(e["!ref"]);varg=[];for(h=0;h<=v.e.c-v.s.c;++h){varm=[];for(u=0;u<c.length;++u){if(c[u][h]!=null)m.push(c[u][h])}if(m.length==0||l[h]==null){g[h]="?";continue}varb="",w="";for(u=0;u<m.length;++u){switch(typeofm[u]){case"number":w="B";break;case"string":w="C";break;case"boolean":w="L";break;case"object":w=m[u]instanceofDate?"D":"C";break;default:w="C";}b=b&&b!=w?"C":w;if(b=="C")break}p+=s[b]||0;g[h]=b}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._W(4,0|(+r[t]||3)<<8);for(h=0,u=0;h<l.length;++h){if(l[h]==null)continue;varE=i.next(32);vark=(l[h].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);E._W(1,k,"sbcs");E._W(1,g[h]=="?"?"C":g[h],"sbcs");E._W(4,u);E._W(1,s[g[h]]||0);E._W(1,0);E._W(1,2);E._W(4,0);E._W(1,0);E._W(4,0);E._W(4,0);u+=s[g[h]]||0}varS=i.next(264);S._W(4,13);for(h=0;h<65;++h)S._W(4,0);for(h=0;h<c.length;++h){varA=i.next(p);A._W(1,0);for(u=0;u<l.length;++u){if(l[u]==null)continue;switch(g[u]){case"L":A._W(1,c[h][u]==null?63:c[h][u]?84:70);break;case"B":A._W(8,c[h][u]||0,"f");break;case"D":if(!c[h][u])A._W(8,"00000000","sbcs");else{A._W(4,("0000"+c[h][u].getFullYear()).slice(-4),"sbcs");A._W(2,("00"+(c[h][u].getMonth()+1)).slice(-2),"sbcs");A._W(2,("00"+c[h][u].getDate()).slice(-2),"sbcs")}break;case"C":var_=String(c[h][u]||"");A._W(1,_,"sbcs");for(d=0;d<250-_.length;++d)A._W(1,32);break;}}}i.next(1)._W(1,26);returni.end()}return{to_workbook:i,to_sheet:n,from_sheet:f}}();varnf=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:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",DN:209,Dn:241,Hy:255,S:169,c:170,
a["!ref"]=mt(n);returna}functiont(r,t){returnEt(e(r,t),t)}functiona(e){varr=["{\\rtf1\\ansi"];vart=bt(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}}();functionQf(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)]}functionJf(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)}functionqf(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]}functioneo(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}functionro(e,r){if(r===0)returne;vart=qf(Qf(e));if(r<0)t[2]=t[2]*(1+r);elset[2]=1-(1-t[2])*(1-r);returnJf(eo(t))}varto=6,ao=15,no=1,io=to;functionso(e){returnMath.floor((e+Math.round(128/io)/256)*io)}functionfo(e){returnMath.floor((e-5)/io*100+.5)/100}functionoo(e){returnMath.round((e*io+5)/io*256)/256}functionlo(e){returnoo(fo(so(e)))}functionco(e){varr=Math.abs(e-lo(e)),t=io;if(r>.005)for(io=no;io<ao;++io)if(Math.abs(e-lo(e))<=r){r=Math.abs(e-lo(e));t=io}io=t}functionho(e){if(e.width){e.wpx=so(e.width);e.wch=fo(e.wpx);e.MDW=io}elseif(e.wpx){e.wch=fo(e.wpx);e.width=oo(e.wch);e.MDW=io}elseif(typeofe.wch=="number"){e.width=oo(e.wch);e.wpx=so(e.width);e.MDW=io}if(e.customWidth)deletee.customWidth}varuo=96,po=uo;functionvo(e){returne*96/po}functiongo(e){returne*po/96}varmo={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};functionbo(e,r,t,a){r.Borders=[];varn={};vari=false;e[0].match(xe).forEach(function(e){vart=De(e);switch(Fe(t[0])){case"<borders":;case"<borders>":;case"</borders>":break;case"<border":;case"<border>":;case"<border/>":n={};if(t.diagonalUp){n.diagonalUp=t.diagonalUp}if(t.diagonalDown){n.diagonalDown=t.diagonalDown}r.Borders.push(n);break;case"</border>":break;case"<left/>":break;case"<left":;case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":;case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":;case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":;case"<bottom>":break;case"</bottom>":break;case"<diagonal":;case"<diagonal>":;case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":;case"<horizontal>":;case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":;case"<vertical>":;case"<vertical/>":break;case"</vertical>":break;case"<start":;case"<start>":;case"<start/>":break;case"</start>":break;case"<end":;case"<end>":;case"<end/>":break;case"</end>":break;case"<color":;case"<color>":break;case"<color/>":;case"</color>":break;case"<extLst":;case"<extLst>":;case"</extLst>":break;case"<ext":i=true;break;case"</ext>":i=false;break;default:if(a&&a.WTF){if(!i)thrownewError("unrecognized "+t[0]+" in borders")};}})}functionwo(e,r,t,a){r.Fills=[];varn={};vari=false;e[0].match(xe).forEach(function(e){vart=De(e);switch(Fe(t[0])){case"<fills":;case"<
"v:ext":"view"}),{color2:"#BEFF82",angle:"-180",type:"gradient"}),fr("v:shadow",null,{on:"t",obscured:"t"}),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,0,r.r,0,r.c+3,100,r.r+5,100].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("")}Pa.CMNT="http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments";functionxl(e,r,t,a,n){for(vari=0;i!=r.length;++i){vars=r[i];varf=kp(we(e,s.replace(/^\//,""),true),s,n);if(!f||!f.length)continue;varo=K(t);for(varl=0;l!=o.length;++l){varc=o[l];varh=a[c];if(h){varu=h[s];if(u)Il(c,t[c],f)}}}}functionIl(e,r,t){vara=Array.isArray(r);varn;t.forEach(function(e){vart=pt(e.ref);if(a){if(!r[t.r])r[t.r]=[];n=r[t.r][t.c]}elsen=r[e.ref];if(!n){n={};if(a)r[t.r][t.c]=n;elser[e.ref]=n;vari=bt(r["!ref"]||"BDWGO1000001:A1");if(i.s.r>t.r)i.s.r=t.r;if(i.e.r<t.r)i.e.r=t.r;if(i.s.c>t.c)i.s.c=t.c;if(i.e.c<t.c)i.e.c=t.c;vars=mt(i);if(s!==r["!ref"])r["!ref"]=s}if(!n.c)n.c=[];varf={a:e.author,t:e.t,r:e.r};if(e.h)f.h=e.h;n.c.push(f)})}functionRl(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=De(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]&&vf(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.cellHTML)s.h=l.h;a.push(s)});returna}varDl=fr("comments",null,{xmlns:cr.main[0]});functionFl(e){varr=[Te,Dl];vart=[];r.push("<authors>");e.forEach(function(e){e[1].forEach(function(e){vara=Ue(e.a);if(t.indexOf(a)>-1)return;t.push(a);r.push("<author>"+a+"</author>")})});r.push("</authors>");r.push("<commentList>");e.forEach(function(e){e[1].forEach(function(a){r.push('<comment ref="'+e[0]+'" authorId="'+t.indexOf(Ue(a.a))+'"><text>');r.push(ir("t",a.t==null?"":Ue(a.t)));r.push("</text></comment>")})});r.push("</commentList>");if(r.length>2){r[r.length]="</comments>";r[1]=r[1].replace("/>",">")}returnr.join("")}functionOl(e){varr={};r.iauthor=e._R(4);vart=jt(e,16);r.rfx=t.s;r.ref=vt(t.s);e.l+=16;returnr}functionPl(e,r){if(r==null)r=$r(36);r._W(4,e[1].iauthor);Kt(e[0],r);r._W(4,0);r._W(4,0);r._W(4,0);r._W(4,0);returnr}varNl=_t;functionLl(e){returnBt(e.slice(0,54))}functionMl(e,r){vart=[];vara=[];varn={};vari=false;Zr(e,functions(e,f,o){switch(o){case632:a.push(e);break;case635:n=e;break;case637:n.t=e.t;n.h=e.h;n.r=e.r;break;case636:n.author=a[n.iauthor];deleten.iauthor;if(r.sheetRows&&r.sheetRows<=n.rfx.r)break;if(!n.t)n.t="";deleten.rfx;t.push(n);break;case3072:break;case35:i=true;break;case36:i=false;break;case37:break;case38:break;default:if((f||"").indexOf("Begin")>0){}elseif((f||"").indexOf("End")>0){}elseif(!i||r.WTF)thrownewError("Unexpected record "+o+" "+f);}});returnt}functionUl(e){varr=Qr();vart=[];Jr(r,"BrtBeginComments");Jr(r,"BrtBeginCommentAuthors");e.forEach(function(e){e[1].forEach(function(e){if(t.indexOf(e.a)>-1)return;t.push(e.a.slice(0,54));Jr(r,"BrtCommentAuthor",Ll(e.a))})});Jr(r,"BrtEndCommentAuthors");Jr(r,"BrtBeginCommentList");e.forEach(function(e){e[1].forEach(function(a){a.iauthor=t.indexOf(a.a);varn={s:pt(e[0]),e:pt(e[0])};Jr(r,"BrtBeginComment",Pl([n,a]));if(a.t&&a.t.length>0)Jr(r,"BrtCommentText",Dt(a));Jr(r,"BrtEndComment");deletea.iaut
break;case427:if(!f.cellFormula)break;T[vt(e[0].s)]=e[1];k=f.dense?o[m][b]:o[ct(b)+E];k.f=xh(e[1],c,{r:d.r,c:b},y,f);break;case60:if(!f.cellStyles)break;while(e.e>=e.s){I[e.e--]={width:e.w/256,hidden:!!(e.flags&1)};if(!D){D=true;co(e.w/256)}ho(I[e.e+1])}break;case161:o["!autofilter"]={ref:mt(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;case175:;case644:;case625:;case562:;case396:;case1112:;case1146:;case471:;case1050:;case649:;case1105:;case49:;case589:;case607:;case564:;case1055:;case168:;case174:;case1180:;case499:;case64:;case1053:;case550:;case171:;case167:;case1177:;case169:;case1181:;case551:;case552:;case661:;case639:;case478:;case151:;case537:;case477:;case536:;case1103:;case680:;case1104:;case1024:;case152:;case663:;case535:;case678:;case504:;case1043:;case428:;case170:;case3072:;case50:;case2070:;case1045:break;case35:h=true;break;case36:h=false;break;case37:break;case38:break;default:if((r||"").indexOf("Begin")>0){}elseif((r||"").indexOf("End")>0){}elseif(!h||f.WTF)thrownewError("Unexpected record "+g+" "+r);}},f);deletef.supbooks;deletef["!row"];if(!o["!ref"]&&(c.s.r<2e6||l&&(l.e.r>0||l.e.c>0||l.s.r>0||l.s.c>0)))o["!ref"]=mt(l||c);if(f.sheetRows&&o["!ref"]){varO=bt(o["!ref"]);if(f.sheetRows<=+O.e.r){O.e.r=f.sheetRows-1;if(O.e.r>c.e.r)O.e.r=c.e.r;if(O.e.r<O.s.r)O.s.r=O.e.r;if(O.e.c>c.e.c)O.e.c=c.e.c;if(O.e.c<O.s.c)O.s.c=O.e.c;o["!fullref"]=o["!ref"];o["!ref"]=mt(O)}}if(S.length>0)o["!merges"]=S;if(I.length>0)o["!cols"]=I;if(R.length>0)o["!rows"]=R;returno}functionCd(e,r,t,a,n,i){if(r.v===undefined)return"";vars="";switch(r.t){case"b":s=r.v?"1":"0";break;case"d":r=oe(r);r.z=r.z||F._table[14];r.v=re(se(r.v));r.t="n";break;case"n":;case"e":s=""+r.v;break;default:s=r.v;break;}varf={r:t,c:a};f.s=ru(n.cellXfs,r,n);if(r.l)i["!links"].push([vt(f),r.l]);if(r.c)i["!comments"].push([vt(f),r.c]);switch(r.t){case"s":;case"str":if(n.bookSST){s=Jh(n.Strings,r.v,n.revStrings);f.t="s";f.v=s;Jr(e,"BrtCellIsst",Ku(r,f))}else{f.t="str";Jr(e,"BrtCellSt",qu(r,f))}return;case"n":if(r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3)Jr(e,"BrtCellRk",Qu(r,f));elseJr(e,"BrtCellReal",$u(r,f));return;case"b":f.t="b";Jr(e,"BrtCellBool",Xu(r,f));return;case"e":f.t="e";break;}Jr(e,"BrtCellBlank",Vu(r,f))}functionEd(e,r,t,a){varn=bt(r["!ref"]||"A1"),i,s="",f=[];Jr(e,"BrtBeginSheetData");varo=Array.isArray(r);varl=n.e.r;if(r["!rows"])l=Math.max(n.e.r,r["!rows"].length-1);for(varc=n.s.r;c<=l;++c){s=st(c);Pu(e,r,n,c);if(c<=n.e.r)for(varh=n.s.c;h<=n.e.c;++h){if(c===n.s.r)f[h]=ct(h);i=f[h]+s;varu=o?(r[c]||[])[h]:r[i];if(!u)continue;Cd(e,u,c,h,a,r)}}Jr(e,"BrtEndSheetData")}functionkd(e,r){if(!r||!r["!merges"])return;Jr(e,"BrtBeginMergeCells",sd(r["!merges"].length));r["!merges"].forEach(function(r){Jr(e,"BrtMergeCell",id(r))});Jr(e,"BrtEndMergeCells")}functionSd(e,r){if(!r||!r["!cols"])return;Jr(e,"BrtBeginColInfos");r["!cols"].forEach(function(r,t){if(r)Jr(e,"BrtColInfo",hd(t,r))});Jr(e,"BrtEndColInfos")}functionAd(e,r){if(!r||!r["!ref"])return;Jr(e,"BrtBeginCellIgnoreECs");Jr(e,"BrtCellIgnoreEC",md(bt(r["!ref"])));Jr(e,"BrtEndCellIgnoreECs")}function_d(e,r,t){r["!links"].forEach(function(r){if(!r[1].Target)return;vara=Ha(t,-1,r[1].Target.replace(/#.*$/,""),Pa.HLINK);Jr(e,"BrtHLink",od(r,a))});deleter["!links"]}functionBd(e,r,t,a){if(r["!comments"].length>0){varn=Ha(a,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Pa.VML);Jr(e,"BrtLegacyDrawing",Wt("rId"+n));r["!legacy"]=n}}functionTd(e,r){if(!r["!autofilter"])return;Jr(e,"BrtBeginAFilter",Kt(bt(r["!autofilter"].ref)));Jr(e,"BrtEndAFilter")}functionyd(e,r,t){Jr(e,"BrtBeginWsViews");{Jr(e,"BrtBeginWsView",gd(r,t));Jr(e,"BrtEndWsView")}Jr(e,"BrtEndWsViews")}functionxd(){}functionId(e,r){if(!r["!protect"])return;Jr(e,"BrtSheetProtection",bd(r["!protect"]))}functionRd(e,r,t,a){varn=Qr();vari=t.SheetNames[e],s=t.Sheets[i]||{};varf=i;try{if(t&
if(d.e.c>255||d.e.r>=p){if(r.WTF)thrownewError("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");d.e.c=Math.min(d.e.c,255);d.e.r=Math.min(d.e.c,p-1)}bv(a,2057,yi(t,16,r));bv(a,"CalcMode",Gn(1));bv(a,"CalcCount",Gn(100));bv(a,"CalcRefMode",zn(true));bv(a,"CalcIter",zn(false));bv(a,"CalcDelta",$t(.001));bv(a,"CalcSaveRecalc",zn(true));bv(a,"PrintRowCol",zn(false));bv(a,"PrintGrid",zn(false));bv(a,"GridSet",Gn(1));bv(a,"Guts",os([0,0]));bv(a,"HCenter",zn(false));bv(a,"VCenter",zn(false));bv(a,512,es(d,r));if(l)i["!links"]=[];for(varv=d.s.r;v<=d.e.r;++v){h=st(v);for(varg=d.s.c;g<=d.e.c;++g){if(v===d.s.r)u[g]=ct(g);c=u[g]+h;varm=o?(i[v]||[])[g]:i[c];if(!m)continue;Iv(a,m,v,g,r);if(l&&m.l)i["!links"].push([c,m.l])}}varb=f.CodeName||f.name||n;if(l&&s.Views)bv(a,"Window2",Xi(s.Views[0]));if(l&&(i["!merges"]||[]).length)bv(a,"MergeCells",Ts(i["!merges"]));if(l)xv(a,i);bv(a,"CodeName",ei(b,r));if(l)Tv(a,i);bv(a,"EOF");returna.end()}functionDv(e,r,t){vara=Qr();varn=(e||{}).Workbook||{};vari=n.Sheets||[];vars=n.WBProps||{};varf=t.biff==8,o=t.biff==5;bv(a,2057,yi(e,5,t));if(t.bookType=="xla")bv(a,"Addin");bv(a,"InterfaceHdr",f?Gn(1200):null);bv(a,"Mms",Hn(2));if(o)bv(a,"ToolbarHdr");if(o)bv(a,"ToolbarEnd");bv(a,"InterfaceEnd");bv(a,"WriteAccess",Ri("SheetJS",t));bv(a,"CodePage",Gn(f?1200:1252));if(f)bv(a,"DSF",Gn(0));if(f)bv(a,"Excel9File");bv(a,"RRTabId",Xs(e.SheetNames.length));if(f&&e.vbaraw){bv(a,"ObProj");varl=s.CodeName||"ThisWorkbook";bv(a,"CodeName",ei(l,t))}bv(a,"BuiltInFnGroupCount",Gn(17));bv(a,"WinProtect",zn(false));bv(a,"Protect",zn(false));bv(a,"Password",Gn(0));if(f)bv(a,"Prot4Rev",zn(false));if(f)bv(a,"Prot4RevPass",Gn(0));bv(a,"Window1",Vi(t));bv(a,"Backup",zn(false));bv(a,"HideObj",Gn(0));bv(a,"Date1904",zn(Kd(e)=="true"));bv(a,"CalcPrecision",zn(true));if(f)bv(a,"RefreshAll",zn(false));bv(a,"BookBool",Gn(0));_v(a,e,t);Bv(a,e.SSF,t);yv(a,t);if(f)bv(a,"UsesELFs",zn(false));varc=a.end();varh=Qr();if(f)bv(h,"Country",Ls());bv(h,"EOF");varu=h.end();vard=Qr();varp=0,v=0;for(v=0;v<e.SheetNames.length;++v)p+=(f?12:11)+(f?2:1)*e.SheetNames[v].length;varg=c.length+p+u.length;for(v=0;v<e.SheetNames.length;++v){varm=i[v]||{};bv(d,"BoundSheet8",Oi({pos:g,hs:m.Hidden||0,dt:0,name:e.SheetNames[v]},t));g+=r[v].length}varb=d.end();if(p!=b.length)thrownewError("BS8 "+p+" != "+b.length);varw=[];if(c.length)w.push(c);if(b.length)w.push(b);if(u.length)w.push(u);returnpr([w])}functionFv(e,r){vart=r||{};vara=[];if(e&&!e.SSF){e.SSF=F.get_table()}if(e&&e.SSF){O(F);F.load_table(e.SSF);t.revssf=Q(e.SSF);t.revssf[e.SSF[65535]]=0;t.ssf=e.SSF}t.cellXfs=[];t.Strings=[];t.Strings.Count=0;t.Strings.Unique=0;ru(t.cellXfs,{},{revssf:{General:0}});for(varn=0;n<e.SheetNames.length;++n)a[a.length]=Rv(n,t,e);a.unshift(Dv(e,a,t));returnpr([a])}functionOv(e,r){vart=r||{};switch(t.biff||2){case8:;case5:returnFv(e,r);case4:;case3:;case2:returnAv(e,r);}thrownewError("invalid type "+t.bookType+" for BIFF")}varPv=function(){functione(e,r){vart=r||{};if(g!=null&&t.dense==null)t.dense=g;vara=t.dense?[]:{};varn=e.match(/<table/i);if(!n)thrownewError("Invalid HTML: could not find <table>");vari=e.match(/<\/table/i);vars=n.index,f=i&&i.index||e.length;varo=de(e.slice(s,f),/(:?<tr[^>]*>)/i,"<tr>");varl=-1,c=0,h=0,u=0;vard={s:{r:1e7,c:1e7},e:{r:0,c:0}};varp=[];for(s=0;s<o.length;++s){varv=o[s].trim();varm=v.slice(0,3).toLowerCase();if(m=="<tr"){++l;if(t.sheetRows&&t.sheetRows<=l){--l;break}c=0;continue}if(m!="<td"&&m!="<th")continue;varb=v.split(/<\/t[dh]>/i);for(f=0;f<b.length;++f){varw=b[f].trim();if(!w.match(/<t[dh]/i))continue;varC=w,E=0;while(C.charAt(0)=="<"&&(E=C.indexOf(">"))>-1)C=C.slice(E+1);vark=De(w.slice(0,w.indexOf(">")));u=k.colspan?+k.colspan:1;if((h=+k.rowspan)>1||u>1)p.push({s:{r:l,c:c},e:{r:l+(h||1)-1,c:c+u-1}});varS=k.t||"";if(!C.length){c+=u;continue}C=qe(C);if(d.s.r>l)d.s.r=l;if(d.e.r<l)d.e.r=l;if(d.s.c>c)d.s.c=c;if(d.e.c<c)d.e.c=c;if(!C.length)continue;varA={t:"s",v:C};if(t.raw||!C.trim().length||S=="s"){}elseif(C==="TRUE")A={t:"b",v:true};elseif(C==="FALSE")A={t:"b
switch(u){case"chart":;default:s="xl/worksheets/sheet"+f+"."+t;ke(i,s,Bp(f-1,s,r,e,c));n.sheets.push(s);Ha(r.wbrels,-1,"worksheets/sheet"+f+"."+t,Pa.WS[0]);}if(h){vard=h["!comments"];varp=false;if(d&&d.length>0){varv="xl/comments"+f+"."+t;ke(i,v,Ip(d,v,r));n.comments.push(v);Ha(c,-1,"../comments"+f+"."+t,Pa.CMNT);p=true}if(h["!legacy"]){if(p)ke(i,"xl/drawings/vmlDrawing"+f+".vml",yl(f,h["!comments"]))}deleteh["!comments"];deleteh["!legacy"]}if(c["!id"].rId1)ke(i,Na(s),Ua(c))}if(r.Strings!=null&&r.Strings.length>0){s="xl/sharedStrings."+t;ke(i,s,xp(r.Strings,s,r));n.strs.push(s);Ha(r.wbrels,-1,"sharedStrings."+t,Pa.SST)}s="xl/workbook."+t;ke(i,s,_p(e,s,r));n.workbooks.push(s);Ha(r.rels,1,s,Pa.WB);s="xl/theme/theme1.xml";ke(i,s,ul(e.Themes,r));n.themes.push(s);Ha(r.wbrels,-1,"theme/theme1.xml",Pa.THEME);s="xl/styles."+t;ke(i,s,yp(e,s,r));n.styles.push(s);Ha(r.wbrels,-1,"styles."+t,Pa.STY);if(e.vbaraw&&a){s="xl/vbaProject.bin";ke(i,s,e.vbaraw);n.vba.push(s);Ha(r.wbrels,-1,"vbaProject.bin",Pa.VBA)}ke(i,"[Content_Types].xml",Oa(n,r));ke(i,"_rels/.rels",Ua(r.rels));ke(i,"xl/_rels/workbook."+t+".rels",Ua(r.wbrels));deleter.revssf;deleter.ssf;returni}functiondg(e,r){vart="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3]];case"base64":t=b.decode(e.slice(0,24));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3]];default:thrownewError("Unrecognized type "+(r&&r.type||"undefined"));}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]}functionpg(e,r){if(V.find(e,"EncryptedPackage"))returnhg(e,r);returnuv(e,r)}functionvg(e,r){vart,a=e;varn=r||{};if(!n.type)n.type=w&&Buffer.isBuffer(e)?"buffer":"base64";t=Se(a,n);returncg(t,n)}functiongg(e,r){vart=0;e:while(t<e.length)switch(e.charCodeAt(t)){case10:;case13:;case32:++t;break;case60:returnXp(e.slice(t),r);default:breake;}returnof.to_workbook(e,r)}functionmg(e,r){vart="",a=dg(e,r);switch(r.type){case"base64":t=b.decode(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=fe(e);break;default:thrownewError("Unrecognized type "+r.type);}if(a[0]==239&&a[1]==187&&a[2]==191)t=Ke(t);returngg(t,r)}functionbg(e,r){vart=e;if(r.type=="base64")t=b.decode(t);t=cptable.utils.decode(1200,t.slice(2),"str");r.type="binary";returngg(t,r)}functionwg(e){return!e.match(/[^\x00-\x7F]/)?e:Ye(e)}functionCg(e,r,t,a){if(a){t.type="string";returnof.to_workbook(e,t)}returnof.to_workbook(r,t)}functionEg(e,r){l();if(typeofArrayBuffer!=="undefined"&&einstanceofArrayBuffer)returnEg(newUint8Array(e),r);vart=e,a=[0,0,0,0],n=false;vari=r||{};Zh={};if(i.dateNF)Zh.dateNF=i.dateNF;if(!i.type)i.type=w&&Buffer.isBuffer(e)?"buffer":"base64";if(i.type=="file"){i.type=w?"buffer":"binary";t=j(e)}if(i.type=="string"){n=true;i.type="binary";i.codepage=65001;t=wg(e)}if(i.type=="array"&&typeofUint8Array!=="undefined"&&einstanceofUint8Array&&typeofArrayBuffer!=="undefined"){vars=newArrayBuffer(3),f=newUint8Array(s);f.foo="bar";if(!f.foo){i=oe(i);i.type="array";returnEg(x(t),i)}}switch((a=dg(t,i))[0]){case208:returnpg(V.read(t,i),i);case9:returnuv(t,i);case60:returnXp(t,i);case73:if(a[1]===68)returnlf(t,i);break;case84:if(a[1]===65&&a[2]===66&&a[3]===76)returnsf.to_workbook(t,i);break;case80:returna[1]===75&&a[2]<9&&a[3]<9?vg(t,i):Cg(e,t,i,n);case239:returna[3]===60?Xp(t,i):Cg(e,t,i,n);case255:if(a[1]===254){returnbg(t,i)}break;case0:if(a[1]===0&&a[2]>=2&&a[3]===0)returncf.to_workbook(t,i);break;case3:;case131:;case139:;case140:returnaf.to_workbook(t,i);case123:if(a[1]===92&&a[2]===114&&a[3]===116)returnZf.to_workbook(t,i);break;case10:;case13:;case32:returnmg(t,i);}if(a[2]<=12&&a[3]<=31)returnaf.to_workbook(t,i);returnCg(e,t,i,n)}functionkg(e,r){vart=r||{};t.type="file";returnEg(e,t)}functionSg(e,r){switch(r.type){case"base64":;case"binary":break;case"buffer":;case"array":r.type="";break;case"file":returnG(r.file,V.write(e,{type:w?"buffer":""}));case"string":thrownewError("'string' output type invalid for '"+r.bookType+"' files");default:thrownewE