%PDF- %PDF-
Direktori : /www/varak.net/nextcloud.varak.net/apps_old/apps/passwords/js/Static/ |
Current File : //www/varak.net/nextcloud.varak.net/apps_old/apps/passwords/js/Static/xlsx.de68ff844ee122044334.js |
/*! For license information please see xlsx.de68ff844ee122044334.js.LICENSE.txt */ "use strict";(self.webpackChunkncpasswords=self.webpackChunkncpasswords||[]).push([[1102],{3959:(e,t,r)=>{r.r(t),r.d(t,{CFB:()=>Re,SSF:()=>ke,default:()=>Fh,parse_xlscfb:()=>Al,parse_zip:()=>Qf,read:()=>sh,readFile:()=>ih,readFileSync:()=>ih,set_cptable:()=>w,set_fs:()=>Ie,stream:()=>Ih,utils:()=>Rh,version:()=>Nh,write:()=>dh,writeFile:()=>mh,writeFileAsync:()=>gh,writeFileSync:()=>mh,writeFileXLSX:()=>vh,writeXLSX:()=>uh});var a,n=r(65606),s={version:"0.20.1"},i=1200,o=1252,c=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],l={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},f=function(e){-1!=c.indexOf(e)&&(o=l[0]=e)},h=function(e){i=e,f(e)};function u(){h(1200),f(1252)}function d(e){for(var t=[],r=0,a=e.length;r<a;++r)t[r]=e.charCodeAt(r);return t}function p(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r)+(e.charCodeAt(2*r+1)<<8));return t.join("")}function m(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e.charCodeAt(2*r+1)+(e.charCodeAt(2*r)<<8));return t.join("")}var v=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return 255==t&&254==r?p(e.slice(2)):254==t&&255==r?m(e.slice(2)):65279==t?e.slice(1):e},g=function(e){return String.fromCharCode(e)},b=function(e){return String.fromCharCode(e)};function w(e){a=e,h=function(e){i=e,f(e)},v=function(e){return 255===e.charCodeAt(0)&&254===e.charCodeAt(1)?a.utils.decode(1200,d(e.slice(2))):e},g=function(e){return 1200===i?String.fromCharCode(e):a.utils.decode(i,[255&e,e>>8])[0]},b=function(e){return a.utils.decode(o,[e])[0]},Ar()}var T=null,y="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function E(e){for(var t="",r=0,a=0,n=0,s=0,i=0,o=0,c=0,l=0;l<e.length;)s=(r=e.charCodeAt(l++))>>2,i=(3&r)<<4|(a=e.charCodeAt(l++))>>4,o=(15&a)<<2|(n=e.charCodeAt(l++))>>6,c=63&n,isNaN(a)?o=c=64:isNaN(n)&&(c=64),t+=y.charAt(s)+y.charAt(i)+y.charAt(o)+y.charAt(c);return t}function k(e){var t="",r=0,a=0,n=0,s=0,i=0,o=0;e=e.replace(/^data:([^\/]+\/[^\/]+)?;base64\,/,"").replace(/[^\w\+\/\=]/g,"");for(var c=0;c<e.length;)r=y.indexOf(e.charAt(c++))<<2|(s=y.indexOf(e.charAt(c++)))>>4,t+=String.fromCharCode(r),a=(15&s)<<4|(i=y.indexOf(e.charAt(c++)))>>2,64!==i&&(t+=String.fromCharCode(a)),n=(3&i)<<6|(o=y.indexOf(e.charAt(c++))),64!==o&&(t+=String.fromCharCode(n));return t}var _=function(){return"undefined"!=typeof Buffer&&void 0!==n&&void 0!==n.versions&&!!n.versions.node}(),S=function(){if("undefined"!=typeof Buffer){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch(t){e=!0}return e?function(e,t){return t?new Buffer(e,t):new Buffer(e)}:Buffer.from.bind(Buffer)}return function(){}}(),x=function(){if("undefined"==typeof Buffer)return!1;var e=S([65,0]);return!!e&&1==e.toString("utf16le").length}();function A(e){return _?Buffer.alloc?Buffer.alloc(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}function C(e){return _?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):"undefined"!=typeof Uint8Array?new Uint8Array(e):new Array(e)}var O=function(e){return _?S(e,"binary"):e.split("").map((function(e){return 255&e.charCodeAt(0)}))};function R(e){if("undefined"==typeof ArrayBuffer)return O(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),a=0;a!=e.length;++a)r[a]=255&e.charCodeAt(a);return t}function I(e){if(Array.isArray(e))return e.map((function(e){return String.fromCharCode(e)})).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function N(e){if("undefined"==typeof ArrayBuffer)throw new Error("Unsupported");if(e instanceof ArrayBuffer)return N(new Uint8Array(e));for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t}var F=_?function(e){return Buffer.concat(e.map((function(e){return Buffer.isBuffer(e)?e:S(e)})))}:function(e){if("undefined"!=typeof Uint8Array){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var a=new Uint8Array(r),n=0;for(t=0,r=0;t<e.length;r+=n,++t)n=e[t].length,e[t]instanceof Uint8Array?a.set(e[t],r):"string"==typeof e[t]?a.set(new Uint8Array(O(e[t])),r):a.set(new Uint8Array(e[t]),r);return a}return[].concat.apply([],e.map((function(e){return Array.isArray(e)?e:[].slice.call(e)})))},D=/\u0000/g,P=/[\u0001-\u0006]/g;function M(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function L(e,t){var r=""+e;return r.length>=t?r:Ze("0",t-r.length)+r}function U(e,t){var r=""+e;return r.length>=t?r:Ze(" ",t-r.length)+r}function B(e,t){var r=""+e;return r.length>=t?r:r+Ze(" ",t-r.length)}var W=Math.pow(2,32);function z(e,t){return e>W||e<-W?function(e,t){var r=""+Math.round(e);return r.length>=t?r:Ze("0",t-r.length)+r}(e,t):function(e,t){var r=""+e;return r.length>=t?r:Ze("0",t-r.length)+r}(Math.round(e),t)}function H(e,t){return t=t||0,e.length>=7+t&&103==(32|e.charCodeAt(t))&&101==(32|e.charCodeAt(t+1))&&110==(32|e.charCodeAt(t+2))&&101==(32|e.charCodeAt(t+3))&&114==(32|e.charCodeAt(t+4))&&97==(32|e.charCodeAt(t+5))&&108==(32|e.charCodeAt(t+6))}var V=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],G=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]],X={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"上午/下午 "hh"時"mm"分"ss"秒 "'},j={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},K={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function Y(e,t,r){for(var a=e<0?-1:1,n=e*a,s=0,i=1,o=0,c=1,l=0,f=0,h=Math.floor(n);l<t&&(o=(h=Math.floor(n))*i+s,f=h*l+c,!(n-h<5e-8));)n=1/(n-h),s=i,i=o,c=l,l=f;if(f>t&&(l>t?(f=c,o=s):(f=l,o=i)),!r)return[0,a*o,f];var u=Math.floor(a*o/f);return[u,a*o-u*f,f]}function Z(e,t,r){if(e>2958465||e<0)return null;var a=0|(e=function(e){var t=e.toPrecision(16);if(t.indexOf("e")>-1){var r=t.slice(0,t.indexOf("e"));return(r=r.indexOf(".")>-1?r.slice(0,"0."==r.slice(0,2)?17:16):r.slice(0,15)+Ze("0",r.length-15))+t.slice(t.indexOf("e"))}var a=t.indexOf(".")>-1?t.slice(0,"0."==t.slice(0,2)?17:16):t.slice(0,15)+Ze("0",t.length-15);return Number(a)}(e)),n=Math.floor(86400*(e-a)),s=0,i=[],o={D:a,T:n,u:86400*(e-a)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(o.u)<1e-6&&(o.u=0),t&&t.date1904&&(a+=1462),o.u>.9999&&(o.u=0,86400==++n&&(o.T=n=0,++a,++o.D)),60===a)i=r?[1317,10,29]:[1900,2,29],s=3;else if(0===a)i=r?[1317,8,29]:[1900,1,0],s=6;else{a>60&&--a;var c=new Date(1900,0,1);c.setDate(c.getDate()+a-1),i=[c.getFullYear(),c.getMonth()+1,c.getDate()],s=c.getDay(),a<60&&(s=(s+6)%7),r&&(s=function(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}(c,i))}return o.y=i[0],o.m=i[1],o.d=i[2],o.S=n%60,n=Math.floor(n/60),o.M=n%60,n=Math.floor(n/60),o.H=n,o.q=s,o}function J(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function q(e){var t,r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return t=r>=-4&&r<=-1?e.toPrecision(10+r):Math.abs(r)<=9?function(e){var t=e<0?12:11,r=J(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10)).length<=t?r:e.toExponential(5)}(e):10===r?e.toFixed(10).substr(0,12):function(e){var t=J(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),J(function(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(t.toUpperCase()))}function Q(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):q(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return we(14,ze(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function ee(e,t,r,a){var n,s="",i=0,o=0,c=r.y,l=0;switch(e){case 98:c=r.y+543;case 121:switch(t.length){case 1:case 2:n=c%100,l=2;break;default:n=c%1e4,l=4}break;case 109:switch(t.length){case 1:case 2:n=r.m,l=t.length;break;case 3:return G[r.m-1][1];case 5:return G[r.m-1][0];default:return G[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:n=r.d,l=t.length;break;case 3:return V[r.q][0];default:return V[r.q][1]}break;case 104:switch(t.length){case 1:case 2:n=1+(r.H+11)%12,l=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:n=r.H,l=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:n=r.M,l=t.length;break;default:throw"bad minute format: "+t}break;case 115:if("s"!=t&&"ss"!=t&&".0"!=t&&".00"!=t&&".000"!=t)throw"bad second format: "+t;return 0!==r.u||"s"!=t&&"ss"!=t?(o=a>=2?3===a?1e3:100:1===a?10:1,(i=Math.round(o*(r.S+r.u)))>=60*o&&(i=0),"s"===t?0===i?"0":""+i/o:(s=L(i,2+a),"ss"===t?s.substr(0,2):"."+s.substr(2,t.length-1))):L(r.S,t.length);case 90:switch(t){case"[h]":case"[hh]":n=24*r.D+r.H;break;case"[m]":case"[mm]":n=60*(24*r.D+r.H)+r.M;break;case"[s]":case"[ss]":n=60*(60*(24*r.D+r.H)+r.M)+(0==a?Math.round(r.S+r.u):r.S);break;default:throw"bad abstime format: "+t}l=3===t.length?1:2;break;case 101:n=c,l=1}return l>0?L(n,l):""}function te(e){if(e.length<=3)return e;for(var t=e.length%3,r=e.substr(0,t);t!=e.length;t+=3)r+=(r.length>0?",":"")+e.substr(t,3);return r}var re=/%/g;function ae(e,t){var r,a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+ae(e,-t);var n=e.indexOf(".");-1===n&&(n=e.indexOf("E"));var s=Math.floor(Math.log(t)*Math.LOG10E)%n;if(s<0&&(s+=n),-1===(r=(t/Math.pow(10,s)).toPrecision(a+1+(n+s)%n)).indexOf("e")){var i=Math.floor(Math.log(t)*Math.LOG10E);for(-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(i-r.length+s):r+="E+"+(i-s);"0."===r.substr(0,2);)r=(r=r.charAt(0)+r.substr(2,n)+"."+r.substr(2+n)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,r,a){return t+r+a.substr(0,(n+s)%n)+"."+a.substr(s)+"E"}))}else r=t.toExponential(a);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}var ne=/# (\?+)( ?)\/( ?)(\d+)/,se=/^#*0*\.([0#]+)/,ie=/\).*[0#]/,oe=/\(###\) ###\\?-####/;function ce(e){for(var t,r="",a=0;a!=e.length;++a)switch(t=e.charCodeAt(a)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function le(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function fe(e,t){var r=e-Math.floor(e),a=Math.pow(10,t);return t<(""+Math.round(r*a)).length?0:Math.round(r*a)}function he(e,t,r){if(40===e.charCodeAt(0)&&!t.match(ie)){var a=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?he("n",a,r):"("+he("n",a,-r)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,r){for(var a=t.length-1;44===t.charCodeAt(a-1);)--a;return pe(e,t.substr(0,a),r/Math.pow(10,3*(t.length-a)))}(e,t,r);if(-1!==t.indexOf("%"))return function(e,t,r){var a=t.replace(re,""),n=t.length-a.length;return pe(e,a,r*Math.pow(10,2*n))+Ze("%",n)}(e,t,r);if(-1!==t.indexOf("E"))return ae(t,r);if(36===t.charCodeAt(0))return"$"+he(e,t.substr(" "==t.charAt(1)?2:1),r);var n,s,i,o,c=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+z(c,t.length);if(t.match(/^[#?]+$/))return"0"===(n=z(r,0))&&(n=""),n.length>t.length?n:ce(t.substr(0,t.length-n.length))+n;if(s=t.match(ne))return function(e,t,r){var a=parseInt(e[4],10),n=Math.round(t*a),s=Math.floor(n/a),i=n-s*a,o=a;return r+(0===s?"":""+s)+" "+(0===i?Ze(" ",e[1].length+1+e[4].length):U(i,e[1].length)+e[2]+"/"+e[3]+L(o,e[4].length))}(s,c,l);if(t.match(/^#+0+$/))return l+z(c,t.length-t.indexOf("0"));if(s=t.match(se))return n=le(r,s[1].length).replace(/^([^\.]+)$/,"$1."+ce(s[1])).replace(/\.$/,"."+ce(s[1])).replace(/\.(\d*)$/,(function(e,t){return"."+t+Ze("0",ce(s[1]).length-t.length)})),-1!==t.indexOf("0.")?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),s=t.match(/^(0*)\.(#*)$/))return l+le(c,s[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=t.match(/^#{1,3},##0(\.?)$/))return l+te(z(c,0));if(s=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+he(e,t,-r):te(""+(Math.floor(r)+function(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(r,s[1].length)))+"."+L(fe(r,s[1].length),s[1].length);if(s=t.match(/^#,#*,#0/))return he(e,t.replace(/^#,#*,/,""),r);if(s=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=M(he(e,t.replace(/[\\-]/g,""),r)),i=0,M(M(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return i<n.length?n.charAt(i++):"0"===e?"0":""})));if(t.match(oe))return"("+(n=he(e,"##########",r)).substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var f="";if(s=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(s[4].length,7),o=Y(c,Math.pow(10,i)-1,!1),n=""+l," "==(f=pe("n",s[1],o[1])).charAt(f.length-1)&&(f=f.substr(0,f.length-1)+"0"),n+=f+s[2]+"/"+s[3],(f=B(o[2],i)).length<s[4].length&&(f=ce(s[4].substr(s[4].length-f.length))+f),n+=f;if(s=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(Math.max(s[1].length,s[4].length),7),l+((o=Y(c,Math.pow(10,i)-1,!0))[0]||(o[1]?"":"0"))+" "+(o[1]?U(o[1],i)+s[2]+"/"+s[3]+B(o[2],i):Ze(" ",2*i+1+s[2].length+s[3].length));if(s=t.match(/^[#0?]+$/))return n=z(r,0),t.length<=n.length?n:ce(t.substr(0,t.length-n.length))+n;if(s=t.match(/^([#0?]+)\.([#0]+)$/)){n=""+r.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),i=n.indexOf(".");var h=t.indexOf(".")-i,u=t.length-n.length-h;return ce(t.substr(0,h)+n+t.substr(t.length-u))}if(s=t.match(/^00,000\.([#0]*0)$/))return i=fe(r,s[1].length),r<0?"-"+he(e,t,-r):te(function(e){return e<2147483647&&e>-2147483648?""+(e>=0?0|e:e-1|0):""+Math.floor(e)}(r)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?L(0,3-e.length):"")+e}))+"."+L(i,s[1].length);switch(t){case"###,##0.00":return he(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var d=te(z(c,0));return"0"!==d?l+d:"";case"###,###.00":return he(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return he(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function ue(e,t){var r,a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(0==t)return"0.0E+0";if(t<0)return"-"+ue(e,-t);var n=e.indexOf(".");-1===n&&(n=e.indexOf("E"));var s=Math.floor(Math.log(t)*Math.LOG10E)%n;if(s<0&&(s+=n),!(r=(t/Math.pow(10,s)).toPrecision(a+1+(n+s)%n)).match(/[Ee]/)){var i=Math.floor(Math.log(t)*Math.LOG10E);-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(i-r.length+s):r+="E+"+(i-s),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,(function(e,t,r,a){return t+r+a.substr(0,(n+s)%n)+"."+a.substr(s)+"E"}))}else r=t.toExponential(a);return e.match(/E\+00$/)&&r.match(/e[+-]\d$/)&&(r=r.substr(0,r.length-1)+"0"+r.charAt(r.length-1)),e.match(/E\-/)&&r.match(/e\+/)&&(r=r.replace(/e\+/,"e")),r.replace("e","E")}function de(e,t,r){if(40===e.charCodeAt(0)&&!t.match(ie)){var a=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?de("n",a,r):"("+de("n",a,-r)+")"}if(44===t.charCodeAt(t.length-1))return function(e,t,r){for(var a=t.length-1;44===t.charCodeAt(a-1);)--a;return pe(e,t.substr(0,a),r/Math.pow(10,3*(t.length-a)))}(e,t,r);if(-1!==t.indexOf("%"))return function(e,t,r){var a=t.replace(re,""),n=t.length-a.length;return pe(e,a,r*Math.pow(10,2*n))+Ze("%",n)}(e,t,r);if(-1!==t.indexOf("E"))return ue(t,r);if(36===t.charCodeAt(0))return"$"+de(e,t.substr(" "==t.charAt(1)?2:1),r);var n,s,i,o,c=Math.abs(r),l=r<0?"-":"";if(t.match(/^00+$/))return l+L(c,t.length);if(t.match(/^[#?]+$/))return n=""+r,0===r&&(n=""),n.length>t.length?n:ce(t.substr(0,t.length-n.length))+n;if(s=t.match(ne))return function(e,t,r){return r+(0===t?"":""+t)+Ze(" ",e[1].length+2+e[4].length)}(s,c,l);if(t.match(/^#+0+$/))return l+L(c,t.length-t.indexOf("0"));if(s=t.match(se))return n=(n=(""+r).replace(/^([^\.]+)$/,"$1."+ce(s[1])).replace(/\.$/,"."+ce(s[1]))).replace(/\.(\d*)$/,(function(e,t){return"."+t+Ze("0",ce(s[1]).length-t.length)})),-1!==t.indexOf("0.")?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),s=t.match(/^(0*)\.(#*)$/))return l+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,s[1].length?"0.":".");if(s=t.match(/^#{1,3},##0(\.?)$/))return l+te(""+c);if(s=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+de(e,t,-r):te(""+r)+"."+Ze("0",s[1].length);if(s=t.match(/^#,#*,#0/))return de(e,t.replace(/^#,#*,/,""),r);if(s=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=M(de(e,t.replace(/[\\-]/g,""),r)),i=0,M(M(t.replace(/\\/g,"")).replace(/[0#]/g,(function(e){return i<n.length?n.charAt(i++):"0"===e?"0":""})));if(t.match(oe))return"("+(n=de(e,"##########",r)).substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var f="";if(s=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(s[4].length,7),o=Y(c,Math.pow(10,i)-1,!1),n=""+l," "==(f=pe("n",s[1],o[1])).charAt(f.length-1)&&(f=f.substr(0,f.length-1)+"0"),n+=f+s[2]+"/"+s[3],(f=B(o[2],i)).length<s[4].length&&(f=ce(s[4].substr(s[4].length-f.length))+f),n+=f;if(s=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return i=Math.min(Math.max(s[1].length,s[4].length),7),l+((o=Y(c,Math.pow(10,i)-1,!0))[0]||(o[1]?"":"0"))+" "+(o[1]?U(o[1],i)+s[2]+"/"+s[3]+B(o[2],i):Ze(" ",2*i+1+s[2].length+s[3].length));if(s=t.match(/^[#0?]+$/))return n=""+r,t.length<=n.length?n:ce(t.substr(0,t.length-n.length))+n;if(s=t.match(/^([#0]+)\.([#0]+)$/)){n=""+r.toFixed(Math.min(s[2].length,10)).replace(/([^0])0+$/,"$1"),i=n.indexOf(".");var h=t.indexOf(".")-i,u=t.length-n.length-h;return ce(t.substr(0,h)+n+t.substr(t.length-u))}if(s=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+de(e,t,-r):te(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,(function(e){return"00,"+(e.length<3?L(0,3-e.length):"")+e}))+"."+L(0,s[1].length);switch(t){case"###,###":case"##,###":case"#,###":var d=te(""+c);return"0"!==d?l+d:"";default:if(t.match(/\.[0#?]*$/))return de(e,t.slice(0,t.lastIndexOf(".")),r)+ce(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function pe(e,t,r){return(0|r)===r?de(e,t,r):he(e,t,r)}var me=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function ve(e){for(var t=0,r="",a="";t<e.length;)switch(r=e.charAt(t)){case"G":H(e,t)&&(t+=6),t++;break;case'"':for(;34!==e.charCodeAt(++t)&&t<e.length;);++t;break;case"\\":case"_":t+=2;break;case"@":++t;break;case"B":case"b":if("1"===e.charAt(t+1)||"2"===e.charAt(t+1))return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"上":if("A/P"===e.substr(t,3).toUpperCase())return!0;if("AM/PM"===e.substr(t,5).toUpperCase())return!0;if("上午/下午"===e.substr(t,5).toUpperCase())return!0;++t;break;case"[":for(a=r;"]"!==e.charAt(t++)&&t<e.length;)a+=e.charAt(t);if(a.match(me))return!0;break;case".":case"0":case"#":for(;t<e.length&&("0#?.,E+-%".indexOf(r=e.charAt(++t))>-1||"\\"==r&&"-"==e.charAt(t+1)&&"0#".indexOf(e.charAt(t+2))>-1););break;case"?":for(;e.charAt(++t)===r;);break;case"*":++t," "!=e.charAt(t)&&"*"!=e.charAt(t)||++t;break;case"(":case")":++t;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;t<e.length&&"0123456789".indexOf(e.charAt(++t))>-1;);break;default:++t}return!1}var ge=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function be(e,t){if(null==t)return!1;var r=parseFloat(t[2]);switch(t[1]){case"=":if(e==r)return!0;break;case">":if(e>r)return!0;break;case"<":if(e<r)return!0;break;case"<>":if(e!=r)return!0;break;case">=":if(e>=r)return!0;break;case"<=":if(e<=r)return!0}return!1}function we(e,t,r){null==r&&(r={});var a="";switch(typeof e){case"string":a="m/d/yy"==e&&r.dateNF?r.dateNF:e;break;case"number":null==(a=14==e&&r.dateNF?r.dateNF:(null!=r.table?r.table:X)[e])&&(a=r.table&&r.table[j[e]]||X[j[e]]),null==a&&(a=K[e]||"General")}if(H(a,0))return Q(t,r);t instanceof Date&&(t=ze(t,r.date1904));var n=function(e,t){var r=function(e){for(var t=[],r=!1,a=0,n=0;a<e.length;++a)switch(e.charCodeAt(a)){case 34:r=!r;break;case 95:case 42:case 92:++a;break;case 59:t[t.length]=e.substr(n,a-n),n=a+1}if(t[t.length]=e.substr(n),!0===r)throw new Error("Format |"+e+"| unterminated string ");return t}(e),a=r.length,n=r[a-1].indexOf("@");if(a<4&&n>-1&&--a,r.length>4)throw new Error("cannot find right format for |"+r.join("|")+"|");if("number"!=typeof t)return[4,4===r.length||n>-1?r[r.length-1]:"@"];switch(r.length){case 1:r=n>-1?["General","General","General",r[0]]:[r[0],r[0],r[0],"@"];break;case 2:r=n>-1?[r[0],r[0],r[0],r[1]]:[r[0],r[1],r[0],"@"];break;case 3:r=n>-1?[r[0],r[1],r[0],r[2]]:[r[0],r[1],r[2],"@"]}var s=t>0?r[0]:t<0?r[1]:r[2];if(-1===r[0].indexOf("[")&&-1===r[1].indexOf("["))return[a,s];if(null!=r[0].match(/\[[=<>]/)||null!=r[1].match(/\[[=<>]/)){var i=r[0].match(ge),o=r[1].match(ge);return be(t,i)?[a,r[0]]:be(t,o)?[a,r[1]]:[a,r[null!=i&&null!=o?2:1]]}return[a,s]}(a,t);if(H(n[1]))return Q(t,r);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function(e,t,r,a){for(var n,s,i,o=[],c="",l=0,f="",h="t",u="H";l<e.length;)switch(f=e.charAt(l)){case"G":if(!H(e,l))throw new Error("unrecognized character "+f+" in "+e);o[o.length]={t:"G",v:"General"},l+=7;break;case'"':for(c="";34!==(i=e.charCodeAt(++l))&&l<e.length;)c+=String.fromCharCode(i);o[o.length]={t:"t",v:c},++l;break;case"\\":var d=e.charAt(++l),p="("===d||")"===d?d:"t";o[o.length]={t:p,v:d},++l;break;case"_":o[o.length]={t:"t",v:" "},l+=2;break;case"@":o[o.length]={t:"T",v:t},++l;break;case"B":case"b":if("1"===e.charAt(l+1)||"2"===e.charAt(l+1)){if(null==n&&null==(n=Z(t,r,"2"===e.charAt(l+1))))return"";o[o.length]={t:"X",v:e.substr(l,2)},h=f,l+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":f=f.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(t<0)return"";if(null==n&&null==(n=Z(t,r)))return"";for(c=f;++l<e.length&&e.charAt(l).toLowerCase()===f;)c+=f;"m"===f&&"h"===h.toLowerCase()&&(f="M"),"h"===f&&(f=u),o[o.length]={t:f,v:c},h=f;break;case"A":case"a":case"上":var m={t:f,v:f};if(null==n&&(n=Z(t,r)),"A/P"===e.substr(l,3).toUpperCase()?(null!=n&&(m.v=n.H>=12?e.charAt(l+2):f),m.t="T",u="h",l+=3):"AM/PM"===e.substr(l,5).toUpperCase()?(null!=n&&(m.v=n.H>=12?"PM":"AM"),m.t="T",l+=5,u="h"):"上午/下午"===e.substr(l,5).toUpperCase()?(null!=n&&(m.v=n.H>=12?"下午":"上午"),m.t="T",l+=5,u="h"):(m.t="t",++l),null==n&&"T"===m.t)return"";o[o.length]=m,h=f;break;case"[":for(c=f;"]"!==e.charAt(l++)&&l<e.length;)c+=e.charAt(l);if("]"!==c.slice(-1))throw'unterminated "[" block: |'+c+"|";if(c.match(me)){if(null==n&&null==(n=Z(t,r)))return"";o[o.length]={t:"Z",v:c.toLowerCase()},h=c.charAt(1)}else c.indexOf("$")>-1&&(c=(c.match(/\$([^-\[\]]*)/)||[])[1]||"$",ve(e)||(o[o.length]={t:"t",v:c}));break;case".":if(null!=n){for(c=f;++l<e.length&&"0"===(f=e.charAt(l));)c+=f;o[o.length]={t:"s",v:c};break}case"0":case"#":for(c=f;++l<e.length&&"0#?.,E+-%".indexOf(f=e.charAt(l))>-1;)c+=f;o[o.length]={t:"n",v:c};break;case"?":for(c=f;e.charAt(++l)===f;)c+=f;o[o.length]={t:f,v:c},h=f;break;case"*":++l," "!=e.charAt(l)&&"*"!=e.charAt(l)||++l;break;case"(":case")":o[o.length]={t:1===a?"t":f,v:f},++l;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(c=f;l<e.length&&"0123456789".indexOf(e.charAt(++l))>-1;)c+=e.charAt(l);o[o.length]={t:"D",v:c};break;case" ":o[o.length]={t:f,v:f},++l;break;case"$":o[o.length]={t:"t",v:"$"},++l;break;default:if(-1===",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(f))throw new Error("unrecognized character "+f+" in "+e);o[o.length]={t:"t",v:f},++l}var v,g,b=0,w=0;for(l=o.length-1,h="t";l>=0;--l)switch(o[l].t){case"h":case"H":o[l].t=u,h="h",b<1&&(b=1);break;case"s":(v=o[l].v.match(/\.0+$/))&&(w=Math.max(w,v[0].length-1),b=4),b<3&&(b=3);case"d":case"y":case"e":h=o[l].t;break;case"M":h=o[l].t,b<2&&(b=2);break;case"m":"s"===h&&(o[l].t="M",b<2&&(b=2));break;case"X":break;case"Z":b<1&&o[l].v.match(/[Hh]/)&&(b=1),b<2&&o[l].v.match(/[Mm]/)&&(b=2),b<3&&o[l].v.match(/[Ss]/)&&(b=3)}switch(b){case 0:break;case 1:case 2:case 3:n.u>=.5&&(n.u=0,++n.S),n.S>=60&&(n.S=0,++n.M),n.M>=60&&(n.M=0,++n.H),n.H>=24&&(n.H=0,++n.D,(g=Z(n.D)).u=n.u,g.S=n.S,g.M=n.M,g.H=n.H,n=g);break;case 4:switch(w){case 1:n.u=Math.round(10*n.u)/10;break;case 2:n.u=Math.round(100*n.u)/100;break;case 3:n.u=Math.round(1e3*n.u)/1e3}n.u>=1&&(n.u=0,++n.S),n.S>=60&&(n.S=0,++n.M),n.M>=60&&(n.M=0,++n.H),n.H>=24&&(n.H=0,++n.D,(g=Z(n.D)).u=n.u,g.S=n.S,g.M=n.M,g.H=n.H,n=g)}var T,y="";for(l=0;l<o.length;++l)switch(o[l].t){case"t":case"T":case" ":case"D":break;case"X":o[l].v="",o[l].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":o[l].v=ee(o[l].t.charCodeAt(0),o[l].v,n,w),o[l].t="t";break;case"n":case"?":for(T=l+1;null!=o[T]&&("?"===(f=o[T].t)||"D"===f||(" "===f||"t"===f)&&null!=o[T+1]&&("?"===o[T+1].t||"t"===o[T+1].t&&"/"===o[T+1].v)||"("===o[l].t&&(" "===f||"n"===f||")"===f)||"t"===f&&("/"===o[T].v||" "===o[T].v&&null!=o[T+1]&&"?"==o[T+1].t));)o[l].v+=o[T].v,o[T]={v:"",t:";"},++T;y+=o[l].v,l=T-1;break;case"G":o[l].t="t",o[l].v=Q(t,r)}var E,k,_="";if(y.length>0){40==y.charCodeAt(0)?(E=t<0&&45===y.charCodeAt(0)?-t:t,k=pe("n",y,E)):(k=pe("n",y,E=t<0&&a>1?-t:t),E<0&&o[0]&&"t"==o[0].t&&(k=k.substr(1),o[0].v="-"+o[0].v)),T=k.length-1;var S=o.length;for(l=0;l<o.length;++l)if(null!=o[l]&&"t"!=o[l].t&&o[l].v.indexOf(".")>-1){S=l;break}var x=o.length;if(S===o.length&&-1===k.indexOf("E")){for(l=o.length-1;l>=0;--l)null!=o[l]&&-1!=="n?".indexOf(o[l].t)&&(T>=o[l].v.length-1?(T-=o[l].v.length,o[l].v=k.substr(T+1,o[l].v.length)):T<0?o[l].v="":(o[l].v=k.substr(0,T+1),T=-1),o[l].t="t",x=l);T>=0&&x<o.length&&(o[x].v=k.substr(0,T+1)+o[x].v)}else if(S!==o.length&&-1===k.indexOf("E")){for(T=k.indexOf(".")-1,l=S;l>=0;--l)if(null!=o[l]&&-1!=="n?".indexOf(o[l].t)){for(s=o[l].v.indexOf(".")>-1&&l===S?o[l].v.indexOf(".")-1:o[l].v.length-1,_=o[l].v.substr(s+1);s>=0;--s)T>=0&&("0"===o[l].v.charAt(s)||"#"===o[l].v.charAt(s))&&(_=k.charAt(T--)+_);o[l].v=_,o[l].t="t",x=l}for(T>=0&&x<o.length&&(o[x].v=k.substr(0,T+1)+o[x].v),T=k.indexOf(".")+1,l=S;l<o.length;++l)if(null!=o[l]&&(-1!=="n?(".indexOf(o[l].t)||l===S)){for(s=o[l].v.indexOf(".")>-1&&l===S?o[l].v.indexOf(".")+1:0,_=o[l].v.substr(0,s);s<o[l].v.length;++s)T<k.length&&(_+=k.charAt(T++));o[l].v=_,o[l].t="t",x=l}}}for(l=0;l<o.length;++l)null!=o[l]&&"n?".indexOf(o[l].t)>-1&&(E=a>1&&t<0&&l>0&&"-"===o[l-1].v?-t:t,o[l].v=pe(o[l].t,o[l].v,E),o[l].t="t");var A="";for(l=0;l!==o.length;++l)null!=o[l]&&(A+=o[l].v);return A}(n[1],t,r,n[0])}function Te(e,t){if("number"!=typeof t){t=+t||-1;for(var r=0;r<392;++r)if(null!=X[r]){if(X[r]==e){t=r;break}}else t<0&&(t=r);t<0&&(t=391)}return X[t]=e,t}function ye(e){for(var t=0;392!=t;++t)void 0!==e[t]&&Te(e[t],t)}function Ee(){var e;e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',X=e}var ke={format:we,load:Te,_table:X,load_table:ye,parse_date_code:Z,is_date:ve,get_table:function(){return ke._table=X}},_e={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},Se=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,xe={"d.m":"d\\.m"};function Ae(e,t){return Te(xe[e]||e,t)}var Ce,Oe=function(){var e={version:"1.2.0"},t=function(){for(var e=0,t=new Array(256),r=0;256!=r;++r)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=r)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[r]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),r=function(e){var t=0,r=0,a=0,n="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(a=0;256!=a;++a)n[a]=e[a];for(a=0;256!=a;++a)for(r=e[a],t=256+a;t<4096;t+=256)r=n[t]=r>>>8^e[255&r];var s=[];for(a=1;16!=a;++a)s[a-1]="undefined"!=typeof Int32Array&&"function"==typeof n.subarray?n.subarray(256*a,256*a+256):n.slice(256*a,256*a+256);return s}(t),a=r[0],n=r[1],s=r[2],i=r[3],o=r[4],c=r[5],l=r[6],f=r[7],h=r[8],u=r[9],d=r[10],p=r[11],m=r[12],v=r[13],g=r[14];return e.table=t,e.bstr=function(e,r){for(var a=~r,n=0,s=e.length;n<s;)a=a>>>8^t[255&(a^e.charCodeAt(n++))];return~a},e.buf=function(e,r){for(var b=~r,w=e.length-15,T=0;T<w;)b=g[e[T++]^255&b]^v[e[T++]^b>>8&255]^m[e[T++]^b>>16&255]^p[e[T++]^b>>>24]^d[e[T++]]^u[e[T++]]^h[e[T++]]^f[e[T++]]^l[e[T++]]^c[e[T++]]^o[e[T++]]^i[e[T++]]^s[e[T++]]^n[e[T++]]^a[e[T++]]^t[e[T++]];for(w+=15;T<w;)b=b>>>8^t[255&(b^e[T++])];return~b},e.str=function(e,r){for(var a=~r,n=0,s=e.length,i=0,o=0;n<s;)(i=e.charCodeAt(n++))<128?a=a>>>8^t[255&(a^i)]:i<2048?a=(a=a>>>8^t[255&(a^(192|i>>6&31))])>>>8^t[255&(a^(128|63&i))]:i>=55296&&i<57344?(i=64+(1023&i),o=1023&e.charCodeAt(n++),a=(a=(a=(a=a>>>8^t[255&(a^(240|i>>8&7))])>>>8^t[255&(a^(128|i>>2&63))])>>>8^t[255&(a^(128|o>>6&15|(3&i)<<4))])>>>8^t[255&(a^(128|63&o))]):a=(a=(a=a>>>8^t[255&(a^(224|i>>12&15))])>>>8^t[255&(a^(128|i>>6&63))])>>>8^t[255&(a^(128|63&i))];return~a},e}(),Re=function(){var e,t={};function r(e){if("/"==e.charAt(e.length-1))return-1===e.slice(0,-1).indexOf("/")?e:r(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(0,t+1)}function a(e){if("/"==e.charAt(e.length-1))return a(e.slice(0,-1));var t=e.lastIndexOf("/");return-1===t?e:e.slice(t+1)}function n(e,t){"string"==typeof t&&(t=new Date(t));var r=t.getHours();r=(r=r<<6|t.getMinutes())<<5|t.getSeconds()>>>1,e.write_shift(2,r);var a=t.getFullYear()-1980;a=(a=a<<4|t.getMonth()+1)<<5|t.getDate(),e.write_shift(2,a)}function s(e){Wr(e,0);for(var t={},r=0;e.l<=e.length-4;){var a=e.read_shift(2),n=e.read_shift(2),s=e.l+n,i={};switch(a){case 21589:1&(r=e.read_shift(1))&&(i.mtime=e.read_shift(4)),n>5&&(2&r&&(i.atime=e.read_shift(4)),4&r&&(i.ctime=e.read_shift(4))),i.mtime&&(i.mt=new Date(1e3*i.mtime));break;case 1:var o=e.read_shift(4),c=e.read_shift(4);i.usz=c*Math.pow(2,32)+o,o=e.read_shift(4),c=e.read_shift(4),i.csz=c*Math.pow(2,32)+o}e.l=s,t[a]=i}return t}function i(){return e||(e=Ce)}function o(e,t){if(80==e[0]&&75==e[1])return de(e,t);if(109==(32|e[0])&&105==(32|e[1]))return function(e,t){if("mime-version:"!=x(e.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var r=t&&t.root||"",a=(_&&Buffer.isBuffer(e)?e.toString("binary"):x(e)).split("\r\n"),n=0,s="";for(n=0;n<a.length;++n)if(s=a[n],/^Content-Location:/i.test(s)&&(s=s.slice(s.indexOf("file")),r||(r=s.slice(0,s.lastIndexOf("/")+1)),s.slice(0,r.length)!=r))for(;r.length>0&&(r=(r=r.slice(0,r.length-1)).slice(0,r.lastIndexOf("/")+1),s.slice(0,r.length)!=r););var i=(a[1]||"").match(/boundary="(.*?)"/);if(!i)throw new Error("MAD cannot find boundary");var o="--"+(i[1]||""),c={FileIndex:[],FullPaths:[]};u(c);var l,f=0;for(n=0;n<a.length;++n){var h=a[n];h!==o&&h!==o+"--"||(f++&&we(c,a.slice(l,n),r),l=n)}return c}(e,t);if(e.length<512)throw new Error("CFB file size "+e.length+" < 512");var r,a,n,s,i,o,d=512,p=[],m=e.slice(0,512);Wr(m,0);var v=function(e){if(80==e[e.l]&&75==e[e.l+1])return[0,0];e.chk(b,"Header Signature: "),e.l+=16;var t=e.read_shift(2,"u");return[e.read_shift(2,"u"),t]}(m);switch(r=v[0]){case 3:d=512;break;case 4:d=4096;break;case 0:if(0==v[1])return de(e,t);default:throw new Error("Major Version: Expected 3 or 4 saw "+r)}512!==d&&Wr(m=e.slice(0,d),28);var w=e.slice(0,d);!function(e,t){var r;switch(e.l+=2,r=e.read_shift(2)){case 9:if(3!=t)throw new Error("Sector Shift: Expected 9 saw "+r);break;case 12:if(4!=t)throw new Error("Sector Shift: Expected 12 saw "+r);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+r)}e.chk("0600","Mini Sector Shift: "),e.chk("000000000000","Reserved: ")}(m,r);var T=m.read_shift(4,"i");if(3===r&&0!==T)throw new Error("# Directory Sectors: Expected 0 saw "+T);m.l+=4,s=m.read_shift(4,"i"),m.l+=4,m.chk("00100000","Mini Stream Cutoff Size: "),i=m.read_shift(4,"i"),a=m.read_shift(4,"i"),o=m.read_shift(4,"i"),n=m.read_shift(4,"i");for(var y=-1,E=0;E<109&&!((y=m.read_shift(4,"i"))<0);++E)p[E]=y;var k=function(e,t){for(var r=Math.ceil(e.length/t)-1,a=[],n=1;n<r;++n)a[n-1]=e.slice(n*t,(n+1)*t);return a[r-1]=e.slice(r*t),a}(e,d);l(o,n,k,d,p);var S=function(e,t,r,a){var n=e.length,s=[],i=[],o=[],c=[],l=a-1,f=0,h=0,u=0,d=0;for(f=0;f<n;++f)if(o=[],(u=f+t)>=n&&(u-=n),!i[u]){c=[];var p=[];for(h=u;h>=0;){p[h]=!0,i[h]=!0,o[o.length]=h,c.push(e[h]);var m=r[Math.floor(4*h/a)];if(a<4+(d=4*h&l))throw new Error("FAT boundary crossed: "+h+" 4 "+a);if(!e[m])break;if(p[h=Nr(e[m],d)])break}s[u]={nodes:o,data:or([c])}}return s}(k,s,p,d);s<S.length&&(S[s].name="!Directory"),a>0&&i!==g&&(S[i].name="!MiniFAT"),S[p[0]].name="!FAT",S.fat_addrs=p,S.ssz=d;var A=[],C=[],O=[];!function(e,t,r,a,n,s,i,o){for(var l,u=0,d=a.length?2:0,p=t[e].data,m=0,v=0;m<p.length;m+=128){var b=p.slice(m,m+128);Wr(b,64),v=b.read_shift(2),l=lr(b,0,v-d),a.push(l);var w={name:l,type:b.read_shift(1),color:b.read_shift(1),L:b.read_shift(4,"i"),R:b.read_shift(4,"i"),C:b.read_shift(4,"i"),clsid:b.read_shift(16),state:b.read_shift(4,"i"),start:0,size:0};0!==b.read_shift(2)+b.read_shift(2)+b.read_shift(2)+b.read_shift(2)&&(w.ct=h(b,b.l-8)),0!==b.read_shift(2)+b.read_shift(2)+b.read_shift(2)+b.read_shift(2)&&(w.mt=h(b,b.l-8)),w.start=b.read_shift(4,"i"),w.size=b.read_shift(4,"i"),w.size<0&&w.start<0&&(w.size=w.type=0,w.start=g,w.name=""),5===w.type?(u=w.start,n>0&&u!==g&&(t[u].name="!StreamData")):w.size>=4096?(w.storage="fat",void 0===t[w.start]&&(t[w.start]=f(r,w.start,t.fat_addrs,t.ssz)),t[w.start].name=w.name,w.content=t[w.start].data.slice(0,w.size)):(w.storage="minifat",w.size<0?w.size=0:u!==g&&w.start!==g&&t[u]&&(w.content=c(w,t[u].data,(t[o]||{}).data))),w.content&&Wr(w.content,0),s[l]=w,i.push(w)}}(s,S,k,A,a,{},C,i),function(e,t,r){for(var a=0,n=0,s=0,i=0,o=0,c=r.length,l=[],f=[];a<c;++a)l[a]=f[a]=a,t[a]=r[a];for(;o<f.length;++o)n=e[a=f[o]].L,s=e[a].R,i=e[a].C,l[a]===a&&(-1!==n&&l[n]!==n&&(l[a]=l[n]),-1!==s&&l[s]!==s&&(l[a]=l[s])),-1!==i&&(l[i]=a),-1!==n&&a!=l[a]&&(l[n]=l[a],f.lastIndexOf(n)<o&&f.push(n)),-1!==s&&a!=l[a]&&(l[s]=l[a],f.lastIndexOf(s)<o&&f.push(s));for(a=1;a<c;++a)l[a]===a&&(-1!==s&&l[s]!==s?l[a]=l[s]:-1!==n&&l[n]!==n&&(l[a]=l[n]));for(a=1;a<c;++a)if(0!==e[a].type){if((o=a)!=l[o])do{o=l[o],t[a]=t[o]+"/"+t[a]}while(0!==o&&-1!==l[o]&&o!=l[o]);l[a]=-1}for(t[0]+="/",a=1;a<c;++a)2!==e[a].type&&(t[a]+="/")}(C,O,A),A.shift();var R={FileIndex:C,FullPaths:O};return t&&t.raw&&(R.raw={header:w,sectors:k}),R}function c(e,t,r){for(var a=e.start,n=e.size,s=[],i=a;r&&n>0&&i>=0;)s.push(t.slice(i*v,i*v+v)),n-=v,i=Nr(r,4*i);return 0===s.length?Hr(0):F(s).slice(0,e.size)}function l(e,t,r,a,n){var s=g;if(e===g){if(0!==t)throw new Error("DIFAT chain shorter than expected")}else if(-1!==e){var i=r[e],o=(a>>>2)-1;if(!i)return;for(var c=0;c<o&&(s=Nr(i,4*c))!==g;++c)n.push(s);t>=1&&l(Nr(i,a-4),t-1,r,a,n)}}function f(e,t,r,a,n){var s=[],i=[];n||(n=[]);var o=a-1,c=0,l=0;for(c=t;c>=0;){n[c]=!0,s[s.length]=c,i.push(e[c]);var f=r[Math.floor(4*c/a)];if(a<4+(l=4*c&o))throw new Error("FAT boundary crossed: "+c+" 4 "+a);if(!e[f])break;c=Nr(e[f],l)}return{nodes:s,data:or([i])}}function h(e,t){return new Date(1e3*(Ir(e,t+4)/1e7*Math.pow(2,32)+Ir(e,t)/1e7-11644473600))}function u(e,t){var r=t||{},a=r.root||"Root Entry";if(e.FullPaths||(e.FullPaths=[]),e.FileIndex||(e.FileIndex=[]),e.FullPaths.length!==e.FileIndex.length)throw new Error("inconsistent CFB structure");0===e.FullPaths.length&&(e.FullPaths[0]=a+"/",e.FileIndex[0]={name:a,type:5}),r.CLSID&&(e.FileIndex[0].clsid=r.CLSID),function(e){var t="Sh33tJ5";if(!Re.find(e,"/"+t)){var r=Hr(4);r[0]=55,r[1]=r[3]=50,r[2]=54,e.FileIndex.push({name:t,type:2,content:r,size:4,L:69,R:69,C:69}),e.FullPaths.push(e.FullPaths[0]+t),d(e)}}(e)}function d(e,t){u(e);for(var n=!1,s=!1,i=e.FullPaths.length-1;i>=0;--i){var o=e.FileIndex[i];switch(o.type){case 0:s?n=!0:(e.FileIndex.pop(),e.FullPaths.pop());break;case 1:case 2:case 5:s=!0,isNaN(o.R*o.L*o.C)&&(n=!0),o.R>-1&&o.L>-1&&o.R==o.L&&(n=!0);break;default:n=!0}}if(n||t){var c=new Date(1987,1,19),l=0,f=Object.create?Object.create(null):{},h=[];for(i=0;i<e.FullPaths.length;++i)f[e.FullPaths[i]]=!0,0!==e.FileIndex[i].type&&h.push([e.FullPaths[i],e.FileIndex[i]]);for(i=0;i<h.length;++i){var d=r(h[i][0]);for(s=f[d];!s;){for(;r(d)&&!f[r(d)];)d=r(d);h.push([d,{name:a(d).replace("/",""),type:1,clsid:T,ct:c,mt:c,content:null}]),f[d]=!0,s=f[d=r(h[i][0])]}}for(h.sort((function(e,t){return function(e,t){for(var r=e.split("/"),a=t.split("/"),n=0,s=0,i=Math.min(r.length,a.length);n<i;++n){if(s=r[n].length-a[n].length)return s;if(r[n]!=a[n])return r[n]<a[n]?-1:1}return r.length-a.length}(e[0],t[0])})),e.FullPaths=[],e.FileIndex=[],i=0;i<h.length;++i)e.FullPaths[i]=h[i][0],e.FileIndex[i]=h[i][1];for(i=0;i<h.length;++i){var p=e.FileIndex[i],m=e.FullPaths[i];if(p.name=a(m).replace("/",""),p.L=p.R=p.C=-(p.color=1),p.size=p.content?p.content.length:0,p.start=0,p.clsid=p.clsid||T,0===i)p.C=h.length>1?1:-1,p.size=0,p.type=5;else if("/"==m.slice(-1)){for(l=i+1;l<h.length&&r(e.FullPaths[l])!=m;++l);for(p.C=l>=h.length?-1:l,l=i+1;l<h.length&&r(e.FullPaths[l])!=r(m);++l);p.R=l>=h.length?-1:l,p.type=1}else r(e.FullPaths[i+1]||"")==r(m)&&(p.R=i+1),p.type=2}}}function p(e,t){var r=t||{};if("mad"==r.fileType)return function(e,t){for(var r=t||{},a=r.boundary||"SheetJS",n=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(a="------="+a).slice(2)+'"',"","",""],s=e.FullPaths[0],i=s,o=e.FileIndex[0],c=1;c<e.FullPaths.length;++c)if(i=e.FullPaths[c].slice(s.length),(o=e.FileIndex[c]).size&&o.content&&"Sh33tJ5"!=i){i=i.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,(function(e){return"_x"+e.charCodeAt(0).toString(16)+"_"})).replace(/[\u0080-\uFFFF]/g,(function(e){return"_u"+e.charCodeAt(0).toString(16)+"_"}));for(var l=o.content,f=_&&Buffer.isBuffer(l)?l.toString("binary"):x(l),h=0,u=Math.min(1024,f.length),d=0,p=0;p<=u;++p)(d=f.charCodeAt(p))>=32&&d<128&&++h;var m=h>=4*u/5;n.push(a),n.push("Content-Location: "+(r.root||"file:///C:/SheetJS/")+i),n.push("Content-Transfer-Encoding: "+(m?"quoted-printable":"base64")),n.push("Content-Type: "+ve(o,i)),n.push(""),n.push(m?be(f):ge(f))}return n.push(a+"--\r\n"),n.join("\r\n")}(e,r);if(d(e),"zip"===r.fileType)return function(e,t){var r,a=t||{},s=[],i=[],o=Hr(1),c=a.compression?8:0,l=0,f=0,h=0,u=0,d=e.FullPaths[0],p=d,v=e.FileIndex[0],g=[],b=0;for(l=1;l<e.FullPaths.length;++l)if(p=e.FullPaths[l].slice(d.length),(v=e.FileIndex[l]).size&&v.content&&"Sh33tJ5"!=p){var w=h,T=Hr(p.length);for(f=0;f<p.length;++f)T.write_shift(1,127&p.charCodeAt(f));T=T.slice(0,T.l),g[u]="string"==typeof v.content?Oe.bstr(v.content,0):Oe.buf(v.content,0);var y="string"==typeof v.content?O(v.content):v.content;8==c&&(r=y,y=m?m.deflateRawSync(r):ne(r)),(o=Hr(30)).write_shift(4,67324752),o.write_shift(2,20),o.write_shift(2,0),o.write_shift(2,c),v.mt?n(o,v.mt):o.write_shift(4,0),o.write_shift(-4,g[u]),o.write_shift(4,y.length),o.write_shift(4,v.content.length),o.write_shift(2,T.length),o.write_shift(2,0),h+=o.length,s.push(o),h+=T.length,s.push(T),h+=y.length,s.push(y),(o=Hr(46)).write_shift(4,33639248),o.write_shift(2,0),o.write_shift(2,20),o.write_shift(2,0),o.write_shift(2,c),o.write_shift(4,0),o.write_shift(-4,g[u]),o.write_shift(4,y.length),o.write_shift(4,v.content.length),o.write_shift(2,T.length),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(4,0),o.write_shift(4,w),b+=o.l,i.push(o),b+=T.length,i.push(T),++u}return(o=Hr(22)).write_shift(4,101010256),o.write_shift(2,0),o.write_shift(2,0),o.write_shift(2,u),o.write_shift(2,u),o.write_shift(4,b),o.write_shift(4,h),o.write_shift(2,0),F([F(s),F(i),o])}(e,r);var a=function(e){for(var t=0,r=0,a=0;a<e.FileIndex.length;++a){var n=e.FileIndex[a];if(n.content){var s=n.content.length;s>0&&(s<4096?t+=s+63>>6:r+=s+511>>9)}}for(var i=e.FullPaths.length+3>>2,o=t+127>>7,c=(t+7>>3)+r+i+o,l=c+127>>7,f=l<=109?0:Math.ceil((l-109)/127);c+l+f+127>>7>l;)f=++l<=109?0:Math.ceil((l-109)/127);var h=[1,f,l,o,i,r,t,0];return e.FileIndex[0].size=t<<6,h[7]=(e.FileIndex[0].start=h[0]+h[1]+h[2]+h[3]+h[4]+h[5])+(h[6]+7>>3),h}(e),s=Hr(a[7]<<9),i=0,o=0;for(i=0;i<8;++i)s.write_shift(1,w[i]);for(i=0;i<8;++i)s.write_shift(2,0);for(s.write_shift(2,62),s.write_shift(2,3),s.write_shift(2,65534),s.write_shift(2,9),s.write_shift(2,6),i=0;i<3;++i)s.write_shift(2,0);for(s.write_shift(4,0),s.write_shift(4,a[2]),s.write_shift(4,a[0]+a[1]+a[2]+a[3]-1),s.write_shift(4,0),s.write_shift(4,4096),s.write_shift(4,a[3]?a[0]+a[1]+a[2]-1:g),s.write_shift(4,a[3]),s.write_shift(-4,a[1]?a[0]-1:g),s.write_shift(4,a[1]),i=0;i<109;++i)s.write_shift(-4,i<a[2]?a[1]+i:-1);if(a[1])for(o=0;o<a[1];++o){for(;i<236+127*o;++i)s.write_shift(-4,i<a[2]?a[1]+i:-1);s.write_shift(-4,o===a[1]-1?g:o+1)}var c=function(e){for(o+=e;i<o-1;++i)s.write_shift(-4,i+1);e&&(++i,s.write_shift(-4,g))};for(o=i=0,o+=a[1];i<o;++i)s.write_shift(-4,y.DIFSECT);for(o+=a[2];i<o;++i)s.write_shift(-4,y.FATSECT);c(a[3]),c(a[4]);for(var l=0,f=0,h=e.FileIndex[0];l<e.FileIndex.length;++l)(h=e.FileIndex[l]).content&&((f=h.content.length)<4096||(h.start=o,c(f+511>>9)));for(c(a[6]+7>>3);511&s.l;)s.write_shift(-4,y.ENDOFCHAIN);for(o=i=0,l=0;l<e.FileIndex.length;++l)(h=e.FileIndex[l]).content&&(!(f=h.content.length)||f>=4096||(h.start=o,c(f+63>>6)));for(;511&s.l;)s.write_shift(-4,y.ENDOFCHAIN);for(i=0;i<a[4]<<2;++i){var u=e.FullPaths[i];if(u&&0!==u.length){h=e.FileIndex[i],0===i&&(h.start=h.size?h.start-1:g);var p=0===i&&r.root||h.name;if(p.length>32&&(console.error("Name "+p+" will be truncated to "+p.slice(0,32)),p=p.slice(0,32)),f=2*(p.length+1),s.write_shift(64,p,"utf16le"),s.write_shift(2,f),s.write_shift(1,h.type),s.write_shift(1,h.color),s.write_shift(-4,h.L),s.write_shift(-4,h.R),s.write_shift(-4,h.C),h.clsid)s.write_shift(16,h.clsid,"hex");else for(l=0;l<4;++l)s.write_shift(4,0);s.write_shift(4,h.state||0),s.write_shift(4,0),s.write_shift(4,0),s.write_shift(4,0),s.write_shift(4,0),s.write_shift(4,h.start),s.write_shift(4,h.size),s.write_shift(4,0)}else{for(l=0;l<17;++l)s.write_shift(4,0);for(l=0;l<3;++l)s.write_shift(4,-1);for(l=0;l<12;++l)s.write_shift(4,0)}}for(i=1;i<e.FileIndex.length;++i)if((h=e.FileIndex[i]).size>=4096)if(s.l=h.start+1<<9,_&&Buffer.isBuffer(h.content))h.content.copy(s,s.l,0,h.size),s.l+=h.size+511&-512;else{for(l=0;l<h.size;++l)s.write_shift(1,h.content[l]);for(;511&l;++l)s.write_shift(1,0)}for(i=1;i<e.FileIndex.length;++i)if((h=e.FileIndex[i]).size>0&&h.size<4096)if(_&&Buffer.isBuffer(h.content))h.content.copy(s,s.l,0,h.size),s.l+=h.size+63&-64;else{for(l=0;l<h.size;++l)s.write_shift(1,h.content[l]);for(;63&l;++l)s.write_shift(1,0)}if(_)s.l=s.length;else for(;s.l<s.length;)s.write_shift(1,0);return s}t.version="1.2.2";var m,v=64,g=-2,b="d0cf11e0a1b11ae1",w=[208,207,17,224,161,177,26,225],T="00000000000000000000000000000000",y={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:g,FREESECT:-1,HEADER_SIGNATURE:b,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:T,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function x(e){for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}for(var R,I,N=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],M=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],L=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577],U="undefined"!=typeof Uint8Array,B=U?new Uint8Array(256):[],W=0;W<256;++W)B[W]=(void 0,255&((I=139536&((R=W)<<1|R<<11)|558144&(R<<5|R<<15))>>16|I>>8|I));function z(e,t){var r=B[255&e];return t<=8?r>>>8-t:(r=r<<8|B[e>>8&255],t<=16?r>>>16-t:(r=r<<8|B[e>>16&255])>>>24-t)}function H(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=6?0:e[a+1]<<8))>>>r&3}function V(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=5?0:e[a+1]<<8))>>>r&7}function $(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=3?0:e[a+1]<<8))>>>r&31}function G(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=1?0:e[a+1]<<8))>>>r&127}function X(e,t,r){var a=7&t,n=t>>>3,s=(1<<r)-1,i=e[n]>>>a;return r<8-a?i&s:(i|=e[n+1]<<8-a,r<16-a?i&s:(i|=e[n+2]<<16-a,r<24-a?i&s:(i|=e[n+3]<<24-a)&s))}function j(e,t,r){var a=7&t,n=t>>>3;return a<=5?e[n]|=(7&r)<<a:(e[n]|=r<<a&255,e[n+1]=(7&r)>>8-a),t+3}function K(e,t,r){return r=(1&r)<<(7&t),e[t>>>3]|=r,t+1}function Y(e,t,r){var a=t>>>3;return r<<=7&t,e[a]|=255&r,r>>>=8,e[a+1]=r,t+8}function Z(e,t,r){var a=t>>>3;return r<<=7&t,e[a]|=255&r,r>>>=8,e[a+1]=255&r,e[a+2]=r>>>8,t+16}function J(e,t){var r=e.length,a=2*r>t?2*r:t+5,n=0;if(r>=t)return e;if(_){var s=C(a);if(e.copy)e.copy(s);else for(;n<e.length;++n)s[n]=e[n];return s}if(U){var i=new Uint8Array(a);if(i.set)i.set(e);else for(;n<r;++n)i[n]=e[n];return i}return e.length=a,e}function q(e){for(var t=new Array(e),r=0;r<e;++r)t[r]=0;return t}function Q(e,t,r){var a=1,n=0,s=0,i=0,o=0,c=e.length,l=U?new Uint16Array(32):q(32);for(s=0;s<32;++s)l[s]=0;for(s=c;s<r;++s)e[s]=0;c=e.length;var f=U?new Uint16Array(c):q(c);for(s=0;s<c;++s)l[n=e[s]]++,a<n&&(a=n),f[s]=0;for(l[0]=0,s=1;s<=a;++s)l[s+16]=o=o+l[s-1]<<1;for(s=0;s<c;++s)0!=(o=e[s])&&(f[s]=l[o+16]++);var h=0;for(s=0;s<c;++s)if(0!=(h=e[s]))for(o=z(f[s],a)>>a-h,i=(1<<a+4-h)-1;i>=0;--i)t[o|i<<h]=15&h|s<<4;return a}var ee=U?new Uint16Array(512):q(512),te=U?new Uint16Array(32):q(32);if(!U){for(var re=0;re<512;++re)ee[re]=0;for(re=0;re<32;++re)te[re]=0}!function(){for(var e=[],t=0;t<32;t++)e.push(5);Q(e,te,32);var r=[];for(t=0;t<=143;t++)r.push(8);for(;t<=255;t++)r.push(9);for(;t<=279;t++)r.push(7);for(;t<=287;t++)r.push(8);Q(r,ee,288)}();var ae=function(){for(var e=U?new Uint8Array(32768):[],t=0,r=0;t<L.length-1;++t)for(;r<L[t+1];++r)e[r]=t;for(;r<32768;++r)e[r]=29;var a=U?new Uint8Array(259):[];for(t=0,r=0;t<M.length-1;++t)for(;r<M[t+1];++r)a[r]=t;return function(t,r){return t.length<8?function(e,t){for(var r=0;r<e.length;){var a=Math.min(65535,e.length-r),n=r+a==e.length;for(t.write_shift(1,+n),t.write_shift(2,a),t.write_shift(2,65535&~a);a-- >0;)t[t.l++]=e[r++]}return t.l}(t,r):function(t,r){for(var n=0,s=0,i=U?new Uint16Array(32768):[];s<t.length;){var o=Math.min(65535,t.length-s);if(o<10){for(7&(n=j(r,n,+!(s+o!=t.length)))&&(n+=8-(7&n)),r.l=n/8|0,r.write_shift(2,o),r.write_shift(2,65535&~o);o-- >0;)r[r.l++]=t[s++];n=8*r.l}else{n=j(r,n,+!(s+o!=t.length)+2);for(var c=0;o-- >0;){var l=t[s],f=-1,h=0;if((f=i[c=32767&(c<<5^l)])&&((f|=-32768&s)>s&&(f-=32768),f<s))for(;t[f+h]==t[s+h]&&h<250;)++h;if(h>2){(l=a[h])<=22?n=Y(r,n,B[l+1]>>1)-1:(Y(r,n,3),Y(r,n+=5,B[l-23]>>5),n+=3);var u=l<8?0:l-4>>2;u>0&&(Z(r,n,h-M[l]),n+=u),l=e[s-f],n=Y(r,n,B[l]>>3),n-=3;var d=l<4?0:l-2>>1;d>0&&(Z(r,n,s-f-L[l]),n+=d);for(var p=0;p<h;++p)i[c]=32767&s,c=32767&(c<<5^t[s]),++s;o-=h-1}else l<=143?l+=48:n=K(r,n,1),n=Y(r,n,B[l]),i[c]=32767&s,++s}n=Y(r,n,0)-1}}return r.l=(n+7)/8|0,r.l}(t,r)}}();function ne(e){var t=Hr(50+Math.floor(1.1*e.length)),r=ae(e,t);return t.slice(0,r)}var se=U?new Uint16Array(32768):q(32768),ie=U?new Uint16Array(32768):q(32768),oe=U?new Uint16Array(128):q(128),ce=1,le=1;function fe(e,t){var r=$(e,t)+257,a=$(e,t+=5)+1,n=function(e,t){var r=7&t,a=t>>>3;return(e[a]|(r<=4?0:e[a+1]<<8))>>>r&15}(e,t+=5)+4;t+=4;for(var s=0,i=U?new Uint8Array(19):q(19),o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],c=1,l=U?new Uint8Array(8):q(8),f=U?new Uint8Array(8):q(8),h=i.length,u=0;u<n;++u)i[N[u]]=s=V(e,t),c<s&&(c=s),l[s]++,t+=3;var d=0;for(l[0]=0,u=1;u<=c;++u)f[u]=d=d+l[u-1]<<1;for(u=0;u<h;++u)0!=(d=i[u])&&(o[u]=f[d]++);var p=0;for(u=0;u<h;++u)if(0!=(p=i[u])){d=B[o[u]]>>8-p;for(var m=(1<<7-p)-1;m>=0;--m)oe[d|m<<p]=7&p|u<<3}var v=[];for(c=1;v.length<r+a;)switch(t+=7&(d=oe[G(e,t)]),d>>>=3){case 16:for(s=3+H(e,t),t+=2,d=v[v.length-1];s-- >0;)v.push(d);break;case 17:for(s=3+V(e,t),t+=3;s-- >0;)v.push(0);break;case 18:for(s=11+G(e,t),t+=7;s-- >0;)v.push(0);break;default:v.push(d),c<d&&(c=d)}var g=v.slice(0,r),b=v.slice(r);for(u=r;u<286;++u)g[u]=0;for(u=a;u<30;++u)b[u]=0;return ce=Q(g,se,286),le=Q(b,ie,30),t}function he(e,t){var r=function(e,t){if(3==e[0]&&!(3&e[1]))return[A(t),2];for(var r=0,a=0,n=C(t||1<<18),s=0,i=n.length>>>0,o=0,c=0;!(1&a);)if(a=V(e,r),r+=3,a>>>1!=0)for(a>>1==1?(o=9,c=5):(r=fe(e,r),o=ce,c=le);;){!t&&i<s+32767&&(i=(n=J(n,s+32767)).length);var l=X(e,r,o),f=a>>>1==1?ee[l]:se[l];if(r+=15&f,(f>>>=4)>>>8&255){if(256==f)break;var h=(f-=257)<8?0:f-4>>2;h>5&&(h=0);var u=s+M[f];h>0&&(u+=X(e,r,h),r+=h),l=X(e,r,c),r+=15&(f=a>>>1==1?te[l]:ie[l]);var d=(f>>>=4)<4?0:f-2>>1,p=L[f];for(d>0&&(p+=X(e,r,d),r+=d),!t&&i<u&&(i=(n=J(n,u+100)).length);s<u;)n[s]=n[s-p],++s}else n[s++]=f}else{7&r&&(r+=8-(7&r));var m=e[r>>>3]|e[1+(r>>>3)]<<8;if(r+=32,m>0)for(!t&&i<s+m&&(i=(n=J(n,s+m)).length);m-- >0;)n[s++]=e[r>>>3],r+=8}return t?[n,r+7>>>3]:[n.slice(0,s),r+7>>>3]}(e.slice(e.l||0),t);return e.l+=r[1],r[0]}function ue(e,t){if(!e)throw new Error(t);"undefined"!=typeof console&&console.error(t)}function de(e,t){var r=e;Wr(r,0);var a={FileIndex:[],FullPaths:[]};u(a,{root:t.root});for(var n=r.length-4;(80!=r[n]||75!=r[n+1]||5!=r[n+2]||6!=r[n+3])&&n>=0;)--n;r.l=n+4,r.l+=4;var i=r.read_shift(2);r.l+=6;var o=r.read_shift(4);for(r.l=o,n=0;n<i;++n){r.l+=20;var c=r.read_shift(4),l=r.read_shift(4),f=r.read_shift(2),h=r.read_shift(2),d=r.read_shift(2);r.l+=8;var p=r.read_shift(4),m=s(r.slice(r.l+f,r.l+f+h));r.l+=f+h+d;var v=r.l;r.l=p+4,m&&m[1]&&((m[1]||{}).usz&&(l=m[1].usz),(m[1]||{}).csz&&(c=m[1].csz)),pe(r,c,l,a,m),r.l=v}return a}function pe(e,t,r,a,n){e.l+=2;var i=e.read_shift(2),o=e.read_shift(2),c=function(e){var t=65535&e.read_shift(2),r=65535&e.read_shift(2),a=new Date,n=31&r,s=15&(r>>>=5);r>>>=4,a.setMilliseconds(0),a.setFullYear(r+1980),a.setMonth(s-1),a.setDate(n);var i=31&t,o=63&(t>>>=5);return t>>>=6,a.setHours(t),a.setMinutes(o),a.setSeconds(i<<1),a}(e);if(8257&i)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var l=e.read_shift(4),f=e.read_shift(4),h=e.read_shift(2),u=e.read_shift(2),d="",p=0;p<h;++p)d+=String.fromCharCode(e[e.l++]);if(u){var v=s(e.slice(e.l,e.l+u));(v[21589]||{}).mt&&(c=v[21589].mt),(v[1]||{}).usz&&(f=v[1].usz),(v[1]||{}).csz&&(l=v[1].csz),n&&((n[21589]||{}).mt&&(c=n[21589].mt),(n[1]||{}).usz&&(f=v[1].usz),(n[1]||{}).csz&&(l=v[1].csz))}e.l+=u;var g=e.slice(e.l,e.l+l);switch(o){case 8:g=function(e,t){if(!m)return he(e,t);var r=new(0,m.InflateRaw),a=r._processChunk(e.slice(e.l),r._finishFlushFlag);return e.l+=r.bytesRead,a}(e,f);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+o)}var b=!1;8&i&&(134695760==e.read_shift(4)&&(e.read_shift(4),b=!0),l=e.read_shift(4),f=e.read_shift(4)),l!=t&&ue(b,"Bad compressed size: "+t+" != "+l),f!=r&&ue(b,"Bad uncompressed size: "+r+" != "+f),Te(a,d,g,{unsafe:!0,mt:c})}var me={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function ve(e,t){if(e.ctype)return e.ctype;var r=e.name||"",a=r.match(/\.([^\.]+)$/);return a&&me[a[1]]||t&&(a=(r=t).match(/[\.\\]([^\.\\])+$/))&&me[a[1]]?me[a[1]]:"application/octet-stream"}function ge(e){for(var t=E(e),r=[],a=0;a<t.length;a+=76)r.push(t.slice(a,a+76));return r.join("\r\n")+"\r\n"}function be(e){var t=e.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,(function(e){var t=e.charCodeAt(0).toString(16).toUpperCase();return"="+(1==t.length?"0"+t:t)}));"\n"==(t=t.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)&&(t="=0D"+t.slice(1));for(var r=[],a=(t=t.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,"\n=0A").replace(/([^\r\n])\n/gm,"$1=0A")).split("\r\n"),n=0;n<a.length;++n){var s=a[n];if(0!=s.length)for(var i=0;i<s.length;){var o=76,c=s.slice(i,i+o);"="==c.charAt(o-1)?o--:"="==c.charAt(o-2)?o-=2:"="==c.charAt(o-3)&&(o-=3),c=s.slice(i,i+o),(i+=o)<s.length&&(c+="="),r.push(c)}else r.push("")}return r.join("\r\n")}function we(e,t,r){for(var a,n="",s="",i="",o=0;o<10;++o){var c=t[o];if(!c||c.match(/^\s*$/))break;var l=c.match(/^(.*?):\s*([^\s].*)$/);if(l)switch(l[1].toLowerCase()){case"content-location":n=l[2].trim();break;case"content-type":i=l[2].trim();break;case"content-transfer-encoding":s=l[2].trim()}}switch(++o,s.toLowerCase()){case"base64":a=O(k(t.slice(o).join("")));break;case"quoted-printable":a=function(e){for(var t=[],r=0;r<e.length;++r){for(var a=e[r];r<=e.length&&"="==a.charAt(a.length-1);)a=a.slice(0,a.length-1)+e[++r];t.push(a)}for(var n=0;n<t.length;++n)t[n]=t[n].replace(/[=][0-9A-Fa-f]{2}/g,(function(e){return String.fromCharCode(parseInt(e.slice(1),16))}));return O(t.join("\r\n"))}(t.slice(o));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+s)}var f=Te(e,n.slice(r.length),a,{unsafe:!0});i&&(f.ctype=i)}function Te(e,t,r,n){var s=n&&n.unsafe;s||u(e);var i=!s&&Re.find(e,t);if(!i){var o=e.FullPaths[0];t.slice(0,o.length)==o?o=t:("/"!=o.slice(-1)&&(o+="/"),o=(o+t).replace("//","/")),i={name:a(t),type:2},e.FileIndex.push(i),e.FullPaths.push(o),s||Re.utils.cfb_gc(e)}return i.content=r,i.size=r?r.length:0,n&&(n.CLSID&&(i.clsid=n.CLSID),n.mt&&(i.mt=n.mt),n.ct&&(i.ct=n.ct)),i}return t.find=function(e,t){var r=e.FullPaths.map((function(e){return e.toUpperCase()})),a=r.map((function(e){var t=e.split("/");return t[t.length-("/"==e.slice(-1)?2:1)]})),n=!1;47===t.charCodeAt(0)?(n=!0,t=r[0].slice(0,-1)+t):n=-1!==t.indexOf("/");var s=t.toUpperCase(),i=!0===n?r.indexOf(s):a.indexOf(s);if(-1!==i)return e.FileIndex[i];var o=!s.match(P);for(s=s.replace(D,""),o&&(s=s.replace(P,"!")),i=0;i<r.length;++i){if((o?r[i].replace(P,"!"):r[i]).replace(D,"")==s)return e.FileIndex[i];if((o?a[i].replace(P,"!"):a[i]).replace(D,"")==s)return e.FileIndex[i]}return null},t.read=function(t,r){var a=r&&r.type;switch(a||_&&Buffer.isBuffer(t)&&(a="buffer"),a||"base64"){case"file":return function(t,r){return i(),o(e.readFileSync(t),r)}(t,r);case"base64":return o(O(k(t)),r);case"binary":return o(O(t),r)}return o(t,r)},t.parse=o,t.write=function(t,r){var a=p(t,r);switch(r&&r.type||"buffer"){case"file":return i(),e.writeFileSync(r.filename,a),a;case"binary":return"string"==typeof a?a:x(a);case"base64":return E("string"==typeof a?a:x(a));case"buffer":if(_)return Buffer.isBuffer(a)?a:S(a);case"array":return"string"==typeof a?O(a):a}return a},t.writeFile=function(t,r,a){i();var n=p(t,a);e.writeFileSync(r,n)},t.utils={cfb_new:function(e){var t={};return u(t,e),t},cfb_add:Te,cfb_del:function(e,t){u(e);var r=Re.find(e,t);if(r)for(var a=0;a<e.FileIndex.length;++a)if(e.FileIndex[a]==r)return e.FileIndex.splice(a,1),e.FullPaths.splice(a,1),!0;return!1},cfb_mov:function(e,t,r){u(e);var n=Re.find(e,t);if(n)for(var s=0;s<e.FileIndex.length;++s)if(e.FileIndex[s]==n)return e.FileIndex[s].name=a(r),e.FullPaths[s]=r,!0;return!1},cfb_gc:function(e){d(e,!0)},ReadShift:Dr,CheckField:Br,prep_blob:Wr,bconcat:F,use_zlib:function(e){try{var t=new(0,e.InflateRaw);if(t._processChunk(new Uint8Array([3,0]),t._finishFlushFlag),!t.bytesRead)throw new Error("zlib does not expose bytesRead");m=e}catch(e){console.error("cannot use native zlib: "+(e.message||e))}},_deflateRaw:ne,_inflateRaw:he,consts:y},t}();function Ie(e){Ce=e}function Ne(e){return"string"==typeof e?R(e):Array.isArray(e)?function(e){if("undefined"==typeof Uint8Array)throw new Error("Unsupported");return new Uint8Array(e)}(e):e}function Fe(e,t,r){if(void 0!==Ce&&Ce.writeFileSync)return r?Ce.writeFileSync(e,t,r):Ce.writeFileSync(e,t);if("undefined"!=typeof Deno){if(r&&"string"==typeof t)switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=R(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var a="utf8"==r?Vt(t):t;if("undefined"!=typeof IE_SaveFile)return IE_SaveFile(a,e);if("undefined"!=typeof Blob){var n=new Blob([Ne(a)],{type:"application/octet-stream"});if("undefined"!=typeof navigator&&navigator.msSaveBlob)return navigator.msSaveBlob(n,e);if("undefined"!=typeof saveAs)return saveAs(n,e);if("undefined"!=typeof URL&&"undefined"!=typeof document&&document.createElement&&URL.createObjectURL){var s=URL.createObjectURL(n);if("object"==typeof chrome&&"function"==typeof(chrome.downloads||{}).download)return URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(s)}),6e4),chrome.downloads.download({url:s,filename:e,saveAs:!0});var i=document.createElement("a");if(null!=i.download)return i.download=e,i.href=s,document.body.appendChild(i),i.click(),document.body.removeChild(i),URL.revokeObjectURL&&"undefined"!=typeof setTimeout&&setTimeout((function(){URL.revokeObjectURL(s)}),6e4),s}else if("undefined"!=typeof URL&&!URL.createObjectURL&&"object"==typeof chrome){var o="data:application/octet-stream;base64,"+function(e){for(var t="",r=0,a=0,n=0,s=0,i=0,o=0,c=0,l=0;l<e.length;)s=(r=e[l++])>>2,i=(3&r)<<4|(a=e[l++])>>4,o=(15&a)<<2|(n=e[l++])>>6,c=63&n,isNaN(a)?o=c=64:isNaN(n)&&(c=64),t+=y.charAt(s)+y.charAt(i)+y.charAt(o)+y.charAt(c);return t}(new Uint8Array(Ne(a)));return chrome.downloads.download({url:o,filename:e,saveAs:!0})}}if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var c=File(e);return c.open("w"),c.encoding="binary",Array.isArray(t)&&(t=I(t)),c.write(t),c.close(),t}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("cannot save file "+e)}function De(e){for(var t=Object.keys(e),r=[],a=0;a<t.length;++a)Object.prototype.hasOwnProperty.call(e,t[a])&&r.push(t[a]);return r}function Pe(e,t){for(var r=[],a=De(e),n=0;n!==a.length;++n)null==r[e[a[n]][t]]&&(r[e[a[n]][t]]=a[n]);return r}function Me(e){for(var t=[],r=De(e),a=0;a!==r.length;++a)t[e[r[a]]]=r[a];return t}function Le(e){for(var t=[],r=De(e),a=0;a!==r.length;++a)t[e[r[a]]]=parseInt(r[a],10);return t}var Ue=Date.UTC(1899,11,30,0,0,0),Be=Date.UTC(1899,11,31,0,0,0),We=Date.UTC(1904,0,1,0,0,0);function ze(e,t){var r=(e.getTime()-Ue)/864e5;return t?(r-=1462)<-1402?r-1:r:r<60?r-1:r}function He(e){if(e>=60&&e<61)return e;var t=new Date;return t.setTime(24*(e>60?e:e+1)*60*60*1e3+Ue),t}function Ve(e){var t=0,r=0,a=!1,n=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!n)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var s=1;s!=n.length;++s)if(n[s]){switch(r=1,s>3&&(a=!0),n[s].slice(n[s].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[s].slice(n[s].length-1));case"D":r*=24;case"H":r*=60;case"M":if(!a)throw new Error("Unsupported ISO Duration Field: M");r*=60}t+=r*parseInt(n[s],10)}return t}var $e=/^(\d+):(\d+)(:\d+)?(\.\d+)?$/,Ge=/^(\d+)-(\d+)-(\d+)$/,Xe=/^(\d+)-(\d+)-(\d+)[T ](\d+):(\d+)(:\d+)?(\.\d+)?$/;function je(e,t){if(e instanceof Date)return e;var r=e.match($e);return r?new Date((t?We:Be)+1e3*(60*(60*parseInt(r[1],10)+parseInt(r[2],10))+(r[3]?parseInt(r[3].slice(1),10):0))+(r[4]?parseInt((r[4]+"000").slice(1,4),10):0)):(r=e.match(Ge))?new Date(Date.UTC(+r[1],+r[2]-1,+r[3],0,0,0,0)):(r=e.match(Xe))?new Date(Date.UTC(+r[1],+r[2]-1,+r[3],+r[4],+r[5],r[6]&&parseInt(r[6].slice(1),10)||0,r[7]&&parseInt(r[7].slice(1),10)||0)):new Date(e)}function Ke(e,t){if(_&&Buffer.isBuffer(e)){if(t&&x){if(255==e[0]&&254==e[1])return Vt(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return Vt(m(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!=typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return Vt(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return Vt(new TextDecoder("utf-16be").decode(e.slice(2)))}var r={"€":"","‚":"",ƒ:"","„":"","…":" ","†":"","‡":"",ˆ:"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,(function(e){return r[e]||e}))}catch(e){}var a=[],n=0;try{for(n=0;n<e.length-65536;n+=65536)a.push(String.fromCharCode.apply(0,e.slice(n,n+65536)));a.push(String.fromCharCode.apply(0,e.slice(n)))}catch(t){try{for(;n<e.length-16384;n+=16384)a.push(String.fromCharCode.apply(0,e.slice(n,n+16384)));a.push(String.fromCharCode.apply(0,e.slice(n)))}catch(t){for(;n!=e.length;++n)a.push(String.fromCharCode(e[n]))}}return a.join("")}function Ye(e){if("undefined"!=typeof JSON&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if("object"!=typeof e||null==e)return e;if(e instanceof Date)return new Date(e.getTime());var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=Ye(e[r]));return t}function Ze(e,t){for(var r="";r.length<t;)r+=e;return r}function Je(e){var t=Number(e);if(!isNaN(t))return isFinite(t)?t:NaN;if(!/\d/.test(e))return t;var r=1,a=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,(function(){return r*=100,""}));return isNaN(t=Number(a))?(a=a.replace(/[(](.*)[)]/,(function(e,t){return r=-r,t})),isNaN(t=Number(a))?t:t/r):t/r}var qe=/^(0?\d|1[0-2])(?:|:([0-5]?\d)(?:|(\.\d+)(?:|:([0-5]?\d))|:([0-5]?\d)(|\.\d+)))\s+([ap])m?$/,Qe=/^([01]?\d|2[0-3])(?:|:([0-5]?\d)(?:|(\.\d+)(?:|:([0-5]?\d))|:([0-5]?\d)(|\.\d+)))$/,et=/^(\d+)-(\d+)-(\d+)[T ](\d+):(\d+)(:\d+)(\.\d+)?[Z]?$/,tt=-177984e5==new Date("6/9/69 00:00 UTC").valueOf(),rt=["january","february","march","april","may","june","july","august","september","october","november","december"];function at(e){if(et.test(e))return-1==e.indexOf("Z")?it(new Date(e)):new Date(e);var t=e.toLowerCase(),r=t.replace(/\s+/g," ").trim(),a=r.match(qe);if(a)return function(e){return e[2]?e[3]?e[4]?new Date(Date.UTC(1899,11,31,+e[1]%12+("p"==e[7]?12:0),+e[2],+e[4],1e3*parseFloat(e[3]))):new Date(Date.UTC(1899,11,31,"p"==e[7]?12:0,+e[1],+e[2],1e3*parseFloat(e[3]))):e[5]?new Date(Date.UTC(1899,11,31,+e[1]%12+("p"==e[7]?12:0),+e[2],+e[5],e[6]?1e3*parseFloat(e[6]):0)):new Date(Date.UTC(1899,11,31,+e[1]%12+("p"==e[7]?12:0),+e[2],0,0)):new Date(Date.UTC(1899,11,31,+e[1]%12+("p"==e[7]?12:0),0,0,0))}(a);if(a=r.match(Qe))return function(e){return e[2]?e[3]?e[4]?new Date(Date.UTC(1899,11,31,+e[1],+e[2],+e[4],1e3*parseFloat(e[3]))):new Date(Date.UTC(1899,11,31,0,+e[1],+e[2],1e3*parseFloat(e[3]))):e[5]?new Date(Date.UTC(1899,11,31,+e[1],+e[2],+e[5],e[6]?1e3*parseFloat(e[6]):0)):new Date(Date.UTC(1899,11,31,+e[1],+e[2],0,0)):new Date(Date.UTC(1899,11,31,+e[1],0,0,0))}(a);if(a=r.match(Xe))return new Date(Date.UTC(+a[1],+a[2]-1,+a[3],+a[4],+a[5],a[6]&&parseInt(a[6].slice(1),10)||0,a[7]&&parseInt(a[7].slice(1),10)||0));var n=new Date(tt&&-1==e.indexOf("UTC")?e+" UTC":e),s=new Date(NaN),i=n.getYear(),o=(n.getMonth(),n.getDate());if(isNaN(o))return s;if(t.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if((t=t.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length>3&&-1==rt.indexOf(t))return s}else if(t.replace(/[ap]m?/,"").match(/[a-z]/))return s;return i<0||i>8099||e.match(/[^-0-9:,\/\\\ ]/)?s:n}var nt=function(){var e=5=="abacaba".split(/(:?b)/i).length;return function(t,r,a){if(e||"string"==typeof r)return t.split(r);for(var n=t.split(r),s=[n[0]],i=1;i<n.length;++i)s.push(a),s.push(n[i]);return s}}();function st(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}function it(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))}function ot(e){return e?e.content&&e.type?Ke(e.content,!0):e.data?v(e.data):e.asNodeBuffer&&_?v(e.asNodeBuffer().toString("binary")):e.asBinary?v(e.asBinary()):e._data&&e._data.getContent?v(Ke(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function ct(e){if(!e)return null;if(e.data)return d(e.data);if(e.asNodeBuffer&&_)return e.asNodeBuffer();if(e._data&&e._data.getContent){var t=e._data.getContent();return"string"==typeof t?d(t):Array.prototype.slice.call(t)}return e.content&&e.type?e.content:null}function lt(e,t){for(var r=e.FullPaths||De(e.files),a=t.toLowerCase().replace(/[\/]/g,"\\"),n=a.replace(/\\/g,"/"),s=0;s<r.length;++s){var i=r[s].replace(/^Root Entry[\/]/,"").toLowerCase();if(a==i||n==i)return e.files?e.files[r[s]]:e.FileIndex[s]}return null}function ft(e,t){var r=lt(e,t);if(null==r)throw new Error("Cannot find file "+t+" in zip");return r}function ht(e,t,r){if(!r)return(a=ft(e,t))&&".bin"===a.name.slice(-4)?ct(a):ot(a);var a;if(!t)return null;try{return ht(e,t)}catch(e){return null}}function ut(e,t,r){if(!r)return ot(ft(e,t));if(!t)return null;try{return ut(e,t)}catch(e){return null}}function dt(e,t,r){if(!r)return ct(ft(e,t));if(!t)return null;try{return dt(e,t)}catch(e){return null}}function pt(e){for(var t=e.FullPaths||De(e.files),r=[],a=0;a<t.length;++a)"/"!=t[a].slice(-1)&&r.push(t[a].replace(/^Root Entry[\/]/,""));return r.sort()}function mt(e,t,r){if(e.FullPaths){var a;if("string"==typeof r)return a=_?S(r):function(e){for(var t=[],r=0,a=e.length+250,n=A(e.length+255),s=0;s<e.length;++s){var i=e.charCodeAt(s);if(i<128)n[r++]=i;else if(i<2048)n[r++]=192|i>>6&31,n[r++]=128|63&i;else if(i>=55296&&i<57344){i=64+(1023&i);var o=1023&e.charCodeAt(++s);n[r++]=240|i>>8&7,n[r++]=128|i>>2&63,n[r++]=128|o>>6&15|(3&i)<<4,n[r++]=128|63&o}else n[r++]=224|i>>12&15,n[r++]=128|i>>6&63,n[r++]=128|63&i;r>a&&(t.push(n.slice(0,r)),r=0,n=A(65535),a=65530)}return t.push(n.slice(0,r)),F(t)}(r),Re.utils.cfb_add(e,t,a);Re.utils.cfb_add(e,t,r)}else e.file(t,r)}function vt(){return Re.utils.cfb_new()}function gt(e,t){switch(t.type){case"base64":return Re.read(e,{type:"base64"});case"binary":return Re.read(e,{type:"binary"});case"buffer":case"array":return Re.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+t.type)}function bt(e,t){if("/"==e.charAt(0))return e.slice(1);var r=t.split("/");"/"!=t.slice(-1)&&r.pop();for(var a=e.split("/");0!==a.length;){var n=a.shift();".."===n?r.pop():"."!==n&&r.push(n)}return r.join("/")}var wt='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n',Tt=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,yt=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,Et=wt.match(yt)?yt:/<[^>]*>/g,kt=/<\w*:/,_t=/<(\/?)\w+:/;function St(e,t,r){for(var a={},n=0,s=0;n!==e.length&&32!==(s=e.charCodeAt(n))&&10!==s&&13!==s;++n);if(t||(a[0]=e.slice(0,n)),n===e.length)return a;var i=e.match(Tt),o=0,c="",l=0,f="",h="",u=1;if(i)for(l=0;l!=i.length;++l){for(h=i[l],s=0;s!=h.length&&61!==h.charCodeAt(s);++s);for(f=h.slice(0,s).trim();32==h.charCodeAt(s+1);)++s;for(u=34==(n=h.charCodeAt(s+1))||39==n?1:0,c=h.slice(s+1+u,h.length-u),o=0;o!=f.length&&58!==f.charCodeAt(o);++o);if(o===f.length)f.indexOf("_")>0&&(f=f.slice(0,f.indexOf("_"))),a[f]=c,r||(a[f.toLowerCase()]=c);else{var d=(5===o&&"xmlns"===f.slice(0,5)?"xmlns":"")+f.slice(o+1);if(a[d]&&"ext"==f.slice(o-3,o))continue;a[d]=c,r||(a[d.toLowerCase()]=c)}}return a}function xt(e){return e.replace(_t,"<$1")}var At={""":'"',"'":"'",">":">","<":"<","&":"&"},Ct=Me(At),Ot=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,t=/_x([\da-fA-F]{4})_/gi;function r(a){var n=a+"",s=n.indexOf("<![CDATA[");if(-1==s)return n.replace(e,(function(e,t){return At[e]||String.fromCharCode(parseInt(t,e.indexOf("x")>-1?16:10))||e})).replace(t,(function(e,t){return String.fromCharCode(parseInt(t,16))}));var i=n.indexOf("]]>");return r(n.slice(0,s))+n.slice(s+9,i)+r(n.slice(i+3))}return function(e,t){var a=r(e);return t?a.replace(/\r\n/g,"\n"):a}}(),Rt=/[&<>'"]/g,It=/[\u0000-\u0008\u000b-\u001f\uFFFE-\uFFFF]/g;function Nt(e){return(e+"").replace(Rt,(function(e){return Ct[e]})).replace(It,(function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function Ft(e){return Nt(e).replace(/ /g,"_x0020_")}var Dt=/[\u0000-\u001f]/g;function Pt(e){return(e+"").replace(Rt,(function(e){return Ct[e]})).replace(/\n/g,"<br/>").replace(Dt,(function(e){return"&#x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}var Mt=function(){var e=/&#(\d+);/g;function t(e,t){return String.fromCharCode(parseInt(t,10))}return function(r){return r.replace(e,t)}}();function Lt(e){switch(e){case 1:case!0:case"1":case"true":return!0;case 0:case!1:case"0":case"false":return!1}return!1}function Ut(e){for(var t="",r=0,a=0,n=0,s=0,i=0,o=0;r<e.length;)(a=e.charCodeAt(r++))<128?t+=String.fromCharCode(a):(n=e.charCodeAt(r++),a>191&&a<224?(i=(31&a)<<6,i|=63&n,t+=String.fromCharCode(i)):(s=e.charCodeAt(r++),a<240?t+=String.fromCharCode((15&a)<<12|(63&n)<<6|63&s):(o=((7&a)<<18|(63&n)<<12|(63&s)<<6|63&(i=e.charCodeAt(r++)))-65536,t+=String.fromCharCode(55296+(o>>>10&1023)),t+=String.fromCharCode(56320+(1023&o)))));return t}function Bt(e){var t,r,a,n=A(2*e.length),s=1,i=0,o=0;for(r=0;r<e.length;r+=s)s=1,(a=e.charCodeAt(r))<128?t=a:a<224?(t=64*(31&a)+(63&e.charCodeAt(r+1)),s=2):a<240?(t=4096*(15&a)+64*(63&e.charCodeAt(r+1))+(63&e.charCodeAt(r+2)),s=3):(s=4,t=262144*(7&a)+4096*(63&e.charCodeAt(r+1))+64*(63&e.charCodeAt(r+2))+(63&e.charCodeAt(r+3)),o=55296+((t-=65536)>>>10&1023),t=56320+(1023&t)),0!==o&&(n[i++]=255&o,n[i++]=o>>>8,o=0),n[i++]=t%256,n[i++]=t>>>8;return n.slice(0,i).toString("ucs2")}function Wt(e){return S(e,"binary").toString("utf8")}var zt="foo bar bazâð£",Ht=_&&(Wt(zt)==Ut(zt)&&Wt||Bt(zt)==Ut(zt)&&Bt)||Ut,Vt=_?function(e){return S(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,a=0,n=0;r<e.length;)switch(a=e.charCodeAt(r++),!0){case a<128:t.push(String.fromCharCode(a));break;case a<2048:t.push(String.fromCharCode(192+(a>>6))),t.push(String.fromCharCode(128+(63&a)));break;case a>=55296&&a<57344:a-=55296,n=e.charCodeAt(r++)-56320+(a<<10),t.push(String.fromCharCode(240+(n>>18&7))),t.push(String.fromCharCode(144+(n>>12&63))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(63&n)));break;default:t.push(String.fromCharCode(224+(a>>12))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(63&a)))}return t.join("")},$t=function(){var e={};return function(t,r){var a=t+"|"+(r||"");return e[a]?e[a]:e[a]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+t+">",r||"")}}(),Gt=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var r=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,"\n").replace(/<[^>]*>/g,""),a=0;a<e.length;++a)r=r.replace(e[a][0],e[a][1]);return r}}(),Xt=function(){var e={};return function(t){return void 0!==e[t]?e[t]:e[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}}(),jt=/<\/?(?:vt:)?variant>/g,Kt=/<(?:vt:)([^>]*)>([\s\S]*)</;function Yt(e,t){var r=St(e),a=e.match(Xt(r.baseType))||[],n=[];if(a.length!=r.size){if(t.WTF)throw new Error("unexpected vector length "+a.length+" != "+r.size);return n}return a.forEach((function(e){var t=e.replace(jt,"").match(Kt);t&&n.push({v:Ht(t[2]),t:t[1]})})),n}var Zt=/(^\s|\s$|\n)/;function Jt(e,t){return"<"+e+(t.match(Zt)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function qt(e){return De(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function Qt(e,t,r){return"<"+e+(null!=r?qt(r):"")+(null!=t?(t.match(Zt)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function er(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(e){if(t)throw e}return""}function tr(e){if(_&&Buffer.isBuffer(e))return e.toString("utf8");if("string"==typeof e)return e;if("undefined"!=typeof Uint8Array&&e instanceof Uint8Array)return Ht(I(N(e)));throw new Error("Bad input format: expected Buffer or string")}var rr=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/](?:[^>=]|="[^"]*?")*)?>/gm,ar={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},nr=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],sr={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"},ir=function(e){for(var t=[],r=0;r<e[0].length;++r)if(e[0][r])for(var a=0,n=e[0][r].length;a<n;a+=10240)t.push.apply(t,e[0][r].slice(a,a+10240));return t},or=_?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:S(e)}))):ir(e)}:ir,cr=function(e,t,r){for(var a=[],n=t;n<r;n+=2)a.push(String.fromCharCode(Or(e,n)));return a.join("").replace(D,"")},lr=_?function(e,t,r){return Buffer.isBuffer(e)&&x?e.toString("utf16le",t,r).replace(D,""):cr(e,t,r)}:cr,fr=function(e,t,r){for(var a=[],n=t;n<t+r;++n)a.push(("0"+e[n].toString(16)).slice(-2));return a.join("")},hr=_?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):fr(e,t,r)}:fr,ur=function(e,t,r){for(var a=[],n=t;n<r;n++)a.push(String.fromCharCode(Cr(e,n)));return a.join("")},dr=_?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf8",t,r):ur(e,t,r)}:ur,pr=function(e,t){var r=Ir(e,t);return r>0?dr(e,t+4,t+4+r-1):""},mr=pr,vr=function(e,t){var r=Ir(e,t);return r>0?dr(e,t+4,t+4+r-1):""},gr=vr,br=function(e,t){var r=2*Ir(e,t);return r>0?dr(e,t+4,t+4+r-1):""},wr=br,Tr=function(e,t){var r=Ir(e,t);return r>0?lr(e,t+4,t+4+r):""},yr=Tr,Er=function(e,t){var r=Ir(e,t);return r>0?dr(e,t+4,t+4+r):""},kr=Er,_r=function(e,t){return function(e,t){for(var r=1-2*(e[t+7]>>>7),a=((127&e[t+7])<<4)+(e[t+6]>>>4&15),n=15&e[t+6],s=5;s>=0;--s)n=256*n+e[t+s];return 2047==a?0==n?r*(1/0):NaN:(0==a?a=-1022:(a-=1023,n+=Math.pow(2,52)),r*Math.pow(2,a-52)*n)}(e,t)},Sr=_r,xr=function(e){return Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array};function Ar(){lr=function(e,t,r){return a.utils.decode(1200,e.slice(t,r)).replace(D,"")},dr=function(e,t,r){return a.utils.decode(65001,e.slice(t,r))},mr=function(e,t){var r=Ir(e,t);return r>0?a.utils.decode(o,e.slice(t+4,t+4+r-1)):""},gr=function(e,t){var r=Ir(e,t);return r>0?a.utils.decode(i,e.slice(t+4,t+4+r-1)):""},wr=function(e,t){var r=2*Ir(e,t);return r>0?a.utils.decode(1200,e.slice(t+4,t+4+r-1)):""},yr=function(e,t){var r=Ir(e,t);return r>0?a.utils.decode(1200,e.slice(t+4,t+4+r)):""},kr=function(e,t){var r=Ir(e,t);return r>0?a.utils.decode(65001,e.slice(t+4,t+4+r)):""}}_&&(mr=function(e,t){if(!Buffer.isBuffer(e))return pr(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},gr=function(e,t){if(!Buffer.isBuffer(e))return vr(e,t);var r=e.readUInt32LE(t);return r>0?e.toString("utf8",t+4,t+4+r-1):""},wr=function(e,t){if(!Buffer.isBuffer(e)||!x)return br(e,t);var r=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r-1)},yr=function(e,t){if(!Buffer.isBuffer(e)||!x)return Tr(e,t);var r=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+r)},kr=function(e,t){if(!Buffer.isBuffer(e))return Er(e,t);var r=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+r)},Sr=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):_r(e,t)},xr=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!=typeof Uint8Array&&e instanceof Uint8Array}),void 0!==a&&Ar();var Cr=function(e,t){return e[t]},Or=function(e,t){return 256*e[t+1]+e[t]},Rr=function(e,t){var r=256*e[t+1]+e[t];return r<32768?r:-1*(65535-r+1)},Ir=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Nr=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Fr=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Dr(e,t){var r,n,s,o,c,l,f="",h=[];switch(t){case"dbcs":if(l=this.l,_&&Buffer.isBuffer(this)&&x)f=this.slice(this.l,this.l+2*e).toString("utf16le");else for(c=0;c<e;++c)f+=String.fromCharCode(Or(this,l)),l+=2;e*=2;break;case"utf8":f=dr(this,this.l,this.l+e);break;case"utf16le":e*=2,f=lr(this,this.l,this.l+e);break;case"wstr":if(void 0===a)return Dr.call(this,e,"dbcs");f=a.utils.decode(i,this.slice(this.l,this.l+2*e)),e*=2;break;case"lpstr-ansi":f=mr(this,this.l),e=4+Ir(this,this.l);break;case"lpstr-cp":f=gr(this,this.l),e=4+Ir(this,this.l);break;case"lpwstr":f=wr(this,this.l),e=4+2*Ir(this,this.l);break;case"lpp4":e=4+Ir(this,this.l),f=yr(this,this.l),2&e&&(e+=2);break;case"8lpp4":e=4+Ir(this,this.l),f=kr(this,this.l),3&e&&(e+=4-(3&e));break;case"cstr":for(e=0,f="";0!==(s=Cr(this,this.l+e++));)h.push(g(s));f=h.join("");break;case"_wstr":for(e=0,f="";0!==(s=Or(this,this.l+e));)h.push(g(s)),e+=2;e+=2,f=h.join("");break;case"dbcs-cont":for(f="",l=this.l,c=0;c<e;++c){if(this.lens&&-1!==this.lens.indexOf(l))return s=Cr(this,l),this.l=l+1,o=Dr.call(this,e-c,s?"dbcs-cont":"sbcs-cont"),h.join("")+o;h.push(g(Or(this,l))),l+=2}f=h.join(""),e*=2;break;case"cpstr":if(void 0!==a){f=a.utils.decode(i,this.slice(this.l,this.l+e));break}case"sbcs-cont":for(f="",l=this.l,c=0;c!=e;++c){if(this.lens&&-1!==this.lens.indexOf(l))return s=Cr(this,l),this.l=l+1,o=Dr.call(this,e-c,s?"dbcs-cont":"sbcs-cont"),h.join("")+o;h.push(g(Cr(this,l))),l+=1}f=h.join("");break;default:switch(e){case 1:return r=Cr(this,this.l),this.l++,r;case 2:return r=("i"===t?Rr:Or)(this,this.l),this.l+=2,r;case 4:case-4:return"i"!==t&&128&this[this.l+3]?(n=Ir(this,this.l),this.l+=4,n):(r=(e>0?Nr:Fr)(this,this.l),this.l+=4,r);case 8:case-8:if("f"===t)return n=8==e?Sr(this,this.l):Sr([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,n;e=8;case 16:f=hr(this,this.l,e)}}return this.l+=e,f}var Pr=function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255,e[r+2]=t>>>16&255,e[r+3]=t>>>24&255},Mr=function(e,t,r){e[r]=255&t,e[r+1]=t>>8&255,e[r+2]=t>>16&255,e[r+3]=t>>24&255},Lr=function(e,t,r){e[r]=255&t,e[r+1]=t>>>8&255};function Ur(e,t,r){var n=0,s=0;if("dbcs"===r){for(s=0;s!=t.length;++s)Lr(this,t.charCodeAt(s),this.l+2*s);n=2*t.length}else if("sbcs"===r||"cpstr"==r)if(void 0!==a&&874==o){for(s=0;s!=t.length;++s){var c=a.utils.encode(o,t.charAt(s));this[this.l+s]=c[0]}n=t.length}else if(void 0!==a&&"cpstr"==r){if((c=a.utils.encode(i,t)).length==t.length)for(s=0;s<t.length;++s)0==c[s]&&0!=t.charCodeAt(s)&&(c[s]=95);if(c.length==2*t.length)for(s=0;s<t.length;++s)0==c[2*s]&&0==c[2*s+1]&&0!=t.charCodeAt(s)&&(c[2*s]=95);for(s=0;s<c.length;++s)this[this.l+s]=c[s];n=c.length}else{for(t=t.replace(/[^\x00-\x7F]/g,"_"),s=0;s!=t.length;++s)this[this.l+s]=255&t.charCodeAt(s);n=t.length}else{if("hex"===r){for(;s<e;++s)this[this.l++]=parseInt(t.slice(2*s,2*s+2),16)||0;return this}if("utf16le"===r){var l=Math.min(this.l+e,this.length);for(s=0;s<Math.min(t.length,e);++s){var f=t.charCodeAt(s);this[this.l++]=255&f,this[this.l++]=f>>8}for(;this.l<l;)this[this.l++]=0;return this}switch(e){case 1:n=1,this[this.l]=255&t;break;case 2:n=2,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t;break;case 3:n=3,this[this.l]=255&t,t>>>=8,this[this.l+1]=255&t,t>>>=8,this[this.l+2]=255&t;break;case 4:n=4,Pr(this,t,this.l);break;case 8:if(n=8,"f"===r){!function(e,t,r){var a=(t<0||1/t==-1/0?1:0)<<7,n=0,s=0,i=a?-t:t;isFinite(i)?0==i?n=s=0:(n=Math.floor(Math.log(i)/Math.LN2),s=i*Math.pow(2,52-n),n<=-1023&&(!isFinite(s)||s<Math.pow(2,52))?n=-1022:(s-=Math.pow(2,52),n+=1023)):(n=2047,s=isNaN(t)?26985:0);for(var o=0;o<=5;++o,s/=256)e[r+o]=255&s;e[r+6]=(15&n)<<4|15&s,e[r+7]=n>>4|a}(this,t,this.l);break}case 16:break;case-4:n=4,Mr(this,t,this.l)}}return this.l+=n,this}function Br(e,t){var r=hr(this,this.l,e.length>>1);if(r!==e)throw new Error(t+"Expected "+e+" saw "+r);this.l+=e.length>>1}function Wr(e,t){e.l=t,e.read_shift=Dr,e.chk=Br,e.write_shift=Ur}function zr(e,t){e.l+=t}function Hr(e){var t=A(e);return Wr(t,0),t}function Vr(e,t,r){if(e){var a,n,s;Wr(e,e.l||0);for(var i=e.length,o=0,c=0;e.l<i;){128&(o=e.read_shift(1))&&(o=(127&o)+((127&e.read_shift(1))<<7));var l=Cl[o]||Cl[65535];for(s=127&(a=e.read_shift(1)),n=1;n<4&&128&a;++n)s+=(127&(a=e.read_shift(1)))<<7*n;c=e.l+s;var f=l.f&&l.f(e,s,r);if(e.l=c,t(f,l,o))return}}}function $r(){var e=[],t=_?256:2048,r=function(e){var t=Hr(e);return Wr(t,0),t},a=r(t),n=function(){a&&(a.l&&(a.length>a.l&&((a=a.slice(0,a.l)).l=a.length),a.length>0&&e.push(a)),a=null)},s=function(e){return a&&e<a.length-a.l?a:(n(),a=r(Math.max(e+1,t)))};return{next:s,push:function(e){n(),null==(a=e).l&&(a.l=a.length),s(t)},end:function(){return n(),F(e)},_bufs:e}}function Gr(e,t,r,a){var n,s=+t;if(!isNaN(s)){a||(a=Cl[s].p||(r||[]).length||0),n=1+(s>=128?1:0)+1,a>=128&&++n,a>=16384&&++n,a>=2097152&&++n;var i=e.next(n);s<=127?i.write_shift(1,s):(i.write_shift(1,128+(127&s)),i.write_shift(1,s>>7));for(var o=0;4!=o;++o){if(!(a>=128)){i.write_shift(1,a);break}i.write_shift(1,128+(127&a)),a>>=7}a>0&&xr(r)&&e.push(r)}}function Xr(e,t,r){var a=Ye(e);if(t.s?(a.cRel&&(a.c+=t.s.c),a.rRel&&(a.r+=t.s.r)):(a.cRel&&(a.c+=t.c),a.rRel&&(a.r+=t.r)),!r||r.biff<12){for(;a.c>=256;)a.c-=256;for(;a.r>=65536;)a.r-=65536}return a}function jr(e,t,r){var a=Ye(e);return a.s=Xr(a.s,t.s,r),a.e=Xr(a.e,t.s,r),a}function Kr(e,t){if(e.cRel&&e.c<0)for(e=Ye(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=Ye(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var r=ta(e);return e.cRel||null==e.cRel||(r=r.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(r=r.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")),r}function Yr(e,t){return 0!=e.s.r||e.s.rRel||e.e.r!=(t.biff>=12?1048575:t.biff>=8?65536:16384)||e.e.rRel?0!=e.s.c||e.s.cRel||e.e.c!=(t.biff>=12?16383:255)||e.e.cRel?Kr(e.s,t.biff)+":"+Kr(e.e,t.biff):(e.s.rRel?"":"$")+Jr(e.s.r)+":"+(e.e.rRel?"":"$")+Jr(e.e.r):(e.s.cRel?"":"$")+Qr(e.s.c)+":"+(e.e.cRel?"":"$")+Qr(e.e.c)}function Zr(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function Jr(e){return""+(e+1)}function qr(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),r=0,a=0;a!==t.length;++a)r=26*r+t.charCodeAt(a)-64;return r-1}function Qr(e){if(e<0)throw new Error("invalid column "+e);var t="";for(++e;e;e=Math.floor((e-1)/26))t=String.fromCharCode((e-1)%26+65)+t;return t}function ea(e){for(var t=0,r=0,a=0;a<e.length;++a){var n=e.charCodeAt(a);n>=48&&n<=57?t=10*t+(n-48):n>=65&&n<=90&&(r=26*r+(n-64))}return{c:r-1,r:t-1}}function ta(e){for(var t=e.c+1,r="";t;t=(t-1)/26|0)r=String.fromCharCode((t-1)%26+65)+r;return r+(e.r+1)}function ra(e){var t=e.indexOf(":");return-1==t?{s:ea(e),e:ea(e)}:{s:ea(e.slice(0,t)),e:ea(e.slice(t+1))}}function aa(e,t){return void 0===t||"number"==typeof t?aa(e.s,e.e):("string"!=typeof e&&(e=ta(e)),"string"!=typeof t&&(t=ta(t)),e==t?e:e+":"+t)}function na(e){var t=ra(e);return"$"+Qr(t.s.c)+"$"+Jr(t.s.r)+":$"+Qr(t.e.c)+"$"+Jr(t.e.r)}function sa(e,t){if(!(e||t&&t.biff<=5&&t.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e.replace(/'/g,"''")+"'":e}function ia(e){var t={s:{c:0,r:0},e:{c:0,r:0}},r=0,a=0,n=0,s=e.length;for(r=0;a<s&&!((n=e.charCodeAt(a)-64)<1||n>26);++a)r=26*r+n;for(t.s.c=--r,r=0;a<s&&!((n=e.charCodeAt(a)-48)<0||n>9);++a)r=10*r+n;if(t.s.r=--r,a===s||10!=n)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++a,r=0;a!=s&&!((n=e.charCodeAt(a)-64)<1||n>26);++a)r=26*r+n;for(t.e.c=--r,r=0;a!=s&&!((n=e.charCodeAt(a)-48)<0||n>9);++a)r=10*r+n;return t.e.r=--r,t}function oa(e,t,r){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&r&&r.dateNF&&(e.z=r.dateNF),"e"==e.t?Ya[e.v]||e.v:function(e,t){var r="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=we(e.z,r?ze(t):t)}catch(e){}try{return e.w=we((e.XF||{}).numFmtId||(r?14:0),r?ze(t):t)}catch(e){return""+t}}(e,null==t?e.v:t))}function ca(e,t){var r=t&&t.sheet?t.sheet:"Sheet1",a={};return a[r]=e,{SheetNames:[r],Sheets:a}}function la(e,t,r){var a=r||{},n=e?null!=e["!data"]:a.dense;null!=T&&null==n&&(n=T);var s=e||{};n&&!s["!data"]&&(s["!data"]=[]);var i=0,o=0;if(s&&null!=a.origin){if("number"==typeof a.origin)i=a.origin;else{var c="string"==typeof a.origin?ea(a.origin):a.origin;i=c.r,o=c.c}s["!ref"]||(s["!ref"]="A1:A1")}var l={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(s["!ref"]){var f=ia(s["!ref"]);l.s.c=f.s.c,l.s.r=f.s.r,l.e.c=Math.max(l.e.c,f.e.c),l.e.r=Math.max(l.e.r,f.e.r),-1==i&&(l.e.r=i=f.e.r+1)}for(var h=[],u=0;u!=t.length;++u)if(t[u]){if(!Array.isArray(t[u]))throw new Error("aoa_to_sheet expects an array of arrays");var d=i+u,p=""+(d+1);n&&(s["!data"][d]||(s["!data"][d]=[]),h=s["!data"][d]);for(var m=0;m!=t[u].length;++m)if(void 0!==t[u][m]){var v={v:t[u][m]},g=o+m;if(l.s.r>d&&(l.s.r=d),l.s.c>g&&(l.s.c=g),l.e.r<d&&(l.e.r=d),l.e.c<g&&(l.e.c=g),!t[u][m]||"object"!=typeof t[u][m]||Array.isArray(t[u][m])||t[u][m]instanceof Date)if(Array.isArray(v.v)&&(v.f=t[u][m][1],v.v=v.v[0]),null===v.v)if(v.f)v.t="n";else if(a.nullError)v.t="e",v.v=0;else{if(!a.sheetStubs)continue;v.t="z"}else"number"==typeof v.v?v.t="n":"boolean"==typeof v.v?v.t="b":v.v instanceof Date?(v.z=a.dateNF||X[14],a.UTC||(v.v=it(v.v)),a.cellDates?(v.t="d",v.w=we(v.z,ze(v.v,a.date1904))):(v.t="n",v.v=ze(v.v,a.date1904),v.w=we(v.z,v.v))):v.t="s";else v=t[u][m];if(n)h[g]&&h[g].z&&(v.z=h[g].z),h[g]=v;else{var b=Qr(g)+p;s[b]&&s[b].z&&(v.z=s[b].z),s[b]=v}}}return l.s.c<1e7&&(s["!ref"]=aa(l)),s}function fa(e,t){return la(null,e,t)}function ha(e,t){return t||(t=Hr(4)),t.write_shift(4,e),t}function ua(e){var t=e.read_shift(4);return 0===t?"":e.read_shift(t,"dbcs")}function da(e,t){var r=!1;return null==t&&(r=!0,t=Hr(4+2*e.length)),t.write_shift(4,e.length),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}function pa(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function ma(e,t){var r=e.l,a=e.read_shift(1),n=ua(e),s=[],i={t:n,h:n};if(1&a){for(var o=e.read_shift(4),c=0;c!=o;++c)s.push(pa(e));i.r=s}else i.r=[{ich:0,ifnt:0}];return e.l=r+t,i}var va=ma;function ga(e){var t=e.read_shift(4),r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:r}}function ba(e,t){return null==t&&(t=Hr(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function wa(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function Ta(e,t){return null==t&&(t=Hr(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var ya=ua,Ea=da;function ka(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function _a(e,t){var r=!1;return null==t&&(r=!0,t=Hr(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),r?t.slice(0,t.l):t}var Sa=ua,xa=ka,Aa=_a;function Ca(e){var t=e.slice(e.l,e.l+4),r=1&t[0],a=2&t[0];e.l+=4;var n=0===a?Sr([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):Nr(t,0)>>2;return r?n/100:n}function Oa(e,t){null==t&&(t=Hr(4));var r=0,a=0,n=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?a=1:n==(0|n)&&n>=-(1<<29)&&n<1<<29&&(a=1,r=1),!a)throw new Error("unsupported RkNumber "+e);t.write_shift(-4,((r?n:e)<<2)+(r+2))}function Ra(e){var t={s:{},e:{}};return t.s.r=e.read_shift(4),t.e.r=e.read_shift(4),t.s.c=e.read_shift(4),t.e.c=e.read_shift(4),t}var Ia=Ra,Na=function(e,t){return t||(t=Hr(16)),t.write_shift(4,e.s.r),t.write_shift(4,e.e.r),t.write_shift(4,e.s.c),t.write_shift(4,e.e.c),t};function Fa(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Da(e,t){return(t||Hr(8)).write_shift(8,e,"f")}function Pa(e,t){if(t||(t=Hr(8)),!e||e.auto)return t.write_shift(4,0),t.write_shift(4,0),t;null!=e.index?(t.write_shift(1,2),t.write_shift(1,e.index)):null!=e.theme?(t.write_shift(1,6),t.write_shift(1,e.theme)):(t.write_shift(1,5),t.write_shift(1,0));var r=e.tint||0;if(r>0?r*=32767:r<0&&(r*=32768),t.write_shift(2,r),e.rgb&&null==e.theme){var a=e.rgb||"FFFFFF";"number"==typeof a&&(a=("000000"+a.toString(16)).slice(-6)),t.write_shift(1,parseInt(a.slice(0,2),16)),t.write_shift(1,parseInt(a.slice(2,4),16)),t.write_shift(1,parseInt(a.slice(4,6),16)),t.write_shift(1,255)}else t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);return t}function Ma(e,t){var r=e.read_shift(4);switch(r){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[e.read_shift(4)]||""}if(r>400)throw new Error("Unsupported Clipboard: "+r.toString(16));return e.l-=4,e.read_shift(0,1==t?"lpstr":"lpwstr")}var La=2,Ua=3,Ba=12,Wa=80,za=81,Ha=[Wa,za],Va={1:{n:"CodePage",t:La},2:{n:"Category",t:Wa},3:{n:"PresentationFormat",t:Wa},4:{n:"ByteCount",t:Ua},5:{n:"LineCount",t:Ua},6:{n:"ParagraphCount",t:Ua},7:{n:"SlideCount",t:Ua},8:{n:"NoteCount",t:Ua},9:{n:"HiddenCount",t:Ua},10:{n:"MultimediaClipCount",t:Ua},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:Wa},15:{n:"Company",t:Wa},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:Ua},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:Ua,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:Wa},27:{n:"ContentStatus",t:Wa},28:{n:"Language",t:Wa},29:{n:"Version",t:Wa},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},$a={1:{n:"CodePage",t:La},2:{n:"Title",t:Wa},3:{n:"Subject",t:Wa},4:{n:"Author",t:Wa},5:{n:"Keywords",t:Wa},6:{n:"Comments",t:Wa},7:{n:"Template",t:Wa},8:{n:"LastAuthor",t:Wa},9:{n:"RevNumber",t:Wa},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:Ua},15:{n:"WordCount",t:Ua},16:{n:"CharCount",t:Ua},17:{n:"Thumbnail",t:71},18:{n:"Application",t:Wa},19:{n:"DocSecurity",t:Ua},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Ga={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},Xa=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function ja(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var Ka=Ye(ja([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,0,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),Ya={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Za={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},Ja=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"],qa={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Qa={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function en(e,t,r){var a,n=function(e){for(var t=[],r=De(e),a=0;a!==r.length;++a)null==t[e[r[a]]]&&(t[e[r[a]]]=[]),t[e[r[a]]].push(r[a]);return t}(qa),s=[];r||(s[s.length]=wt,s[s.length]=Qt("Types",null,{xmlns:ar.CT,"xmlns:xsd":ar.xsd,"xmlns:xsi":ar.xsi}),s=s.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map((function(e){return Qt("Default",null,{Extension:e[0],ContentType:e[1]})}))));var i=function(r){e[r]&&e[r].length>0&&(a=e[r][0],s[s.length]=Qt("Override",null,{PartName:("/"==a[0]?"":"/")+a,ContentType:Qa[r][t.bookType]||Qa[r].xlsx}))},o=function(r){(e[r]||[]).forEach((function(e){s[s.length]=Qt("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:Qa[r][t.bookType]||Qa[r].xlsx})}))},c=function(t){(e[t]||[]).forEach((function(e){s[s.length]=Qt("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:n[t][0]})}))};return i("workbooks"),o("sheets"),o("charts"),c("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(c),c("vba"),c("comments"),c("threadedcomments"),c("drawings"),o("metadata"),c("people"),!r&&s.length>2&&(s[s.length]="</Types>",s[1]=s[1].replace("/>",">")),s.join("")}var tn={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",CONN:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function rn(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function an(e,t){var r={"!id":{}};if(!e)return r;"/"!==t.charAt(0)&&(t="/"+t);var a={};return(e.match(Et)||[]).forEach((function(e){var n=St(e);if("<Relationship"===n[0]){var s={};s.Type=n.Type,s.Target=Ot(n.Target),s.Id=n.Id,n.TargetMode&&(s.TargetMode=n.TargetMode);var i="External"===n.TargetMode?n.Target:bt(n.Target,t);r[i]=s,a[n.Id]=s}})),r["!id"]=a,r}function nn(e){var t=[wt,Qt("Relationships",null,{xmlns:ar.RELS})];return De(e["!id"]).forEach((function(r){t[t.length]=Qt("Relationship",null,e["!id"][r])})),t.length>2&&(t[t.length]="</Relationships>",t[1]=t[1].replace("/>",">")),t.join("")}function sn(e,t,r,a,n,s){if(n||(n={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),t<0)for(t=e["!idx"];e["!id"]["rId"+t];++t);if(e["!idx"]=t+1,n.Id="rId"+t,n.Type=a,n.Target=r,s?n.TargetMode=s:[tn.HLINK,tn.XPATH,tn.XMISS].indexOf(n.Type)>-1&&(n.TargetMode="External"),e["!id"][n.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][n.Id]=n,e[("/"+n.Target).replace("//","/")]=n,t}var on="application/vnd.oasis.opendocument.spreadsheet";function cn(e,t,r){return[' <rdf:Description rdf:about="'+e+'">\n',' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+'"/>\n'," </rdf:Description>\n"].join("")}function ln(e,t){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+s.version+"</meta:generator></office:meta></office:document-meta>"}var fn=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]],hn=function(){for(var e=new Array(fn.length),t=0;t<fn.length;++t){var r=fn[t],a="(?:"+r[0].slice(0,r[0].indexOf(":"))+":)"+r[0].slice(r[0].indexOf(":")+1);e[t]=new RegExp("<"+a+"[^>]*>([\\s\\S]*?)</"+a+">")}return e}();function un(e){var t={};e=Ht(e);for(var r=0;r<fn.length;++r){var a=fn[r],n=e.match(hn[r]);null!=n&&n.length>0&&(t[a[1]]=Ot(n[1])),"date"===a[2]&&t[a[1]]&&(t[a[1]]=je(t[a[1]]))}return t}function dn(e,t,r,a,n){null==n[e]&&null!=t&&""!==t&&(n[e]=t,t=Nt(t),a[a.length]=r?Qt(e,t,r):Jt(e,t))}function pn(e,t){var r=t||{},a=[wt,Qt("cp:coreProperties",null,{"xmlns:cp":ar.CORE_PROPS,"xmlns:dc":ar.dc,"xmlns:dcterms":ar.dcterms,"xmlns:dcmitype":ar.dcmitype,"xmlns:xsi":ar.xsi})],n={};if(!e&&!r.Props)return a.join("");e&&(null!=e.CreatedDate&&dn("dcterms:created","string"==typeof e.CreatedDate?e.CreatedDate:er(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n),null!=e.ModifiedDate&&dn("dcterms:modified","string"==typeof e.ModifiedDate?e.ModifiedDate:er(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n));for(var s=0;s!=fn.length;++s){var i=fn[s],o=r.Props&&null!=r.Props[i[1]]?r.Props[i[1]]:e?e[i[1]]:null;!0===o?o="1":!1===o?o="0":"number"==typeof o&&(o=String(o)),null!=o&&dn(i[0],o,null,a,n)}return a.length>2&&(a[a.length]="</cp:coreProperties>",a[1]=a[1].replace("/>",">")),a.join("")}var mn=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],vn=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function gn(e,t,r,a){var n=[];if("string"==typeof e)n=Yt(e,a);else for(var s=0;s<e.length;++s)n=n.concat(e[s].map((function(e){return{v:e}})));var i="string"==typeof t?Yt(t,a).map((function(e){return e.v})):t,o=0,c=0;if(i.length>0)for(var l=0;l!==n.length;l+=2){switch(c=+n[l+1].v,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":r.Worksheets=c,r.SheetNames=i.slice(o,o+c);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":r.NamedRanges=c,r.DefinedNames=i.slice(o,o+c);break;case"Charts":case"Diagramme":r.Chartsheets=c,r.ChartNames=i.slice(o,o+c)}o+=c}}function bn(e){var t=[],r=Qt;return e||(e={}),e.Application="SheetJS",t[t.length]=wt,t[t.length]=Qt("Properties",null,{xmlns:ar.EXT_PROPS,"xmlns:vt":ar.vt}),mn.forEach((function(a){if(void 0!==e[a[1]]){var n;switch(a[2]){case"string":n=Nt(String(e[a[1]]));break;case"bool":n=e[a[1]]?"true":"false"}void 0!==n&&(t[t.length]=r(a[0],n))}})),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map((function(e){return"<vt:lpstr>"+Nt(e)+"</vt:lpstr>"})).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var wn=/<[^>]+>[^<]*/g;function Tn(e){var t=[wt,Qt("Properties",null,{xmlns:ar.CUST_PROPS,"xmlns:vt":ar.vt})];if(!e)return t.join("");var r=1;return De(e).forEach((function(a){++r,t[t.length]=Qt("property",function(e,t){switch(typeof e){case"string":var r=Qt("vt:lpwstr",Nt(e));return r=r.replace(/"/g,"_x0022_");case"number":return Qt((0|e)==e?"vt:i4":"vt:r8",Nt(String(e)));case"boolean":return Qt("vt:bool",e?"true":"false")}if(e instanceof Date)return Qt("vt:filetime",er(e));throw new Error("Unable to serialize "+e)}(e[a]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:Nt(a)})})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var yn,En={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"};function kn(e,t,r){yn||(yn=Me(En)),e[t=yn[t]||t]=r}function _n(e){var t=e.read_shift(4),r=e.read_shift(4);return new Date(1e3*(r/1e7*Math.pow(2,32)+t/1e7-11644473600)).toISOString().replace(/\.000/,"")}function Sn(e,t,r){var a=e.l,n=e.read_shift(0,"lpstr-cp");if(r)for(;e.l-a&3;)++e.l;return n}function xn(e,t,r){var a=e.read_shift(0,"lpwstr");return r&&(e.l+=4-(a.length+1&3)&3),a}function An(e,t,r){return 31===t?xn(e):Sn(e,0,r)}function Cn(e,t,r){return An(e,t,!1===r?0:4)}function On(e){var t=e.l,r=Nn(e,za);return 0==e[e.l]&&0==e[e.l+1]&&e.l-t&2&&(e.l+=2),[r,Nn(e,Ua)]}function Rn(e,t){for(var r=e.read_shift(4),a={},n=0;n!=r;++n){var s=e.read_shift(4),i=e.read_shift(4);a[s]=e.read_shift(i,1200===t?"utf16le":"utf8").replace(D,"").replace(P,"!"),1200===t&&i%2&&(e.l+=2)}return 3&e.l&&(e.l=e.l>>3<<2),a}function In(e){var t=e.read_shift(4),r=e.slice(e.l,e.l+t);return e.l+=t,(3&t)>0&&(e.l+=4-(3&t)&3),r}function Nn(e,t,r){var a,n=e.read_shift(2),s=r||{};if(e.l+=2,t!==Ba&&n!==t&&-1===Ha.indexOf(t)&&(4126!=(65534&t)||4126!=(65534&n)))throw new Error("Expected type "+t+" saw "+n);switch(t===Ba?n:t){case 2:return a=e.read_shift(2,"i"),s.raw||(e.l+=2),a;case 3:return e.read_shift(4,"i");case 11:return 0!==e.read_shift(4);case 19:return e.read_shift(4);case 30:return Sn(e,0,4).replace(D,"");case 31:return xn(e);case 64:return _n(e);case 65:return In(e);case 71:return function(e){var t={};return t.Size=e.read_shift(4),e.l+=t.Size+3-(t.Size-1)%4,t}(e);case 80:return Cn(e,n,!s.raw).replace(D,"");case 81:return function(e,t){if(!t)throw new Error("VtUnalignedString must have positive length");return An(e,t,0)}(e,n).replace(D,"");case 4108:return function(e){for(var t=e.read_shift(4),r=[],a=0;a<t/2;++a)r.push(On(e));return r}(e);case 4126:case 4127:return 4127==n?function(e){for(var t=e.read_shift(4),r=[],a=0;a!=t;++a){var n=e.l;r[a]=e.read_shift(0,"lpwstr").replace(D,""),e.l-n&2&&(e.l+=2)}return r}(e):function(e){for(var t=e.read_shift(4),r=[],a=0;a!=t;++a)r[a]=e.read_shift(0,"lpstr-cp").replace(D,"");return r}(e);default:throw new Error("TypedPropertyValue unrecognized type "+t+" "+n)}}function Fn(e,t){var r=Hr(4),a=Hr(4);switch(r.write_shift(4,80==e?31:e),e){case 3:a.write_shift(-4,t);break;case 5:(a=Hr(8)).write_shift(8,t,"f");break;case 11:a.write_shift(4,t?1:0);break;case 64:a=function(e){var t=("string"==typeof e?new Date(Date.parse(e)):e).getTime()/1e3+11644473600,r=t%Math.pow(2,32),a=(t-r)/Math.pow(2,32);a*=1e7;var n=(r*=1e7)/Math.pow(2,32)|0;n>0&&(r%=Math.pow(2,32),a+=n);var s=Hr(8);return s.write_shift(4,r),s.write_shift(4,a),s}(t);break;case 31:case 80:for((a=Hr(4+2*(t.length+1)+(t.length%2?0:2))).write_shift(4,t.length+1),a.write_shift(0,t,"dbcs");a.l!=a.length;)a.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+t)}return F([r,a])}function Dn(e,t){var r=e.l,a=e.read_shift(4),n=e.read_shift(4),s=[],i=0,o=0,c=-1,l={};for(i=0;i!=n;++i){var f=e.read_shift(4),u=e.read_shift(4);s[i]=[f,u+r]}s.sort((function(e,t){return e[1]-t[1]}));var d={};for(i=0;i!=n;++i){if(e.l!==s[i][1]){var p=!0;if(i>0&&t)switch(t[s[i-1][0]].t){case 2:e.l+2===s[i][1]&&(e.l+=2,p=!1);break;case 80:case 4108:e.l<=s[i][1]&&(e.l=s[i][1],p=!1)}if((!t||0==i)&&e.l<=s[i][1]&&(p=!1,e.l=s[i][1]),p)throw new Error("Read Error: Expected address "+s[i][1]+" at "+e.l+" :"+i)}if(t){if(0==s[i][0]&&s.length>i+1&&s[i][1]==s[i+1][1])continue;var m=t[s[i][0]];if(d[m.n]=Nn(e,m.t,{raw:!0}),"version"===m.p&&(d[m.n]=String(d[m.n]>>16)+"."+("0000"+String(65535&d[m.n])).slice(-4)),"CodePage"==m.n)switch(d[m.n]){case 0:d[m.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:h(o=d[m.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+d[m.n])}}else if(1===s[i][0]){if(o=d.CodePage=Nn(e,La),h(o),-1!==c){var v=e.l;e.l=s[c][1],l=Rn(e,o),e.l=v}}else if(0===s[i][0]){if(0===o){c=i,e.l=s[i+1][1];continue}l=Rn(e,o)}else{var g,b=l[s[i][0]];switch(e[e.l]){case 65:e.l+=4,g=In(e);break;case 30:case 31:e.l+=4,g=Cn(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,g=e.read_shift(4,"i");break;case 19:e.l+=4,g=e.read_shift(4);break;case 5:e.l+=4,g=e.read_shift(8,"f");break;case 11:e.l+=4,g=zn(e,4);break;case 64:e.l+=4,g=je(_n(e));break;default:throw new Error("unparsed value: "+e[e.l])}d[b]=g}}return e.l=r+a,d}var Pn=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function Mn(e){switch(typeof e){case"boolean":return 11;case"number":return(0|e)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64}return-1}function Ln(e,t,r){var a=Hr(8),n=[],s=[],i=8,o=0,c=Hr(8),l=Hr(8);if(c.write_shift(4,2),c.write_shift(4,1200),l.write_shift(4,1),s.push(c),n.push(l),i+=8+c.length,!t){(l=Hr(8)).write_shift(4,0),n.unshift(l);var f=[Hr(4)];for(f[0].write_shift(4,e.length),o=0;o<e.length;++o){var h=e[o][0];for((c=Hr(8+2*(h.length+1)+(h.length%2?0:2))).write_shift(4,o+2),c.write_shift(4,h.length+1),c.write_shift(0,h,"dbcs");c.l!=c.length;)c.write_shift(1,0);f.push(c)}c=F(f),s.unshift(c),i+=8+c.length}for(o=0;o<e.length;++o)if((!t||t[e[o][0]])&&!(Pn.indexOf(e[o][0])>-1||vn.indexOf(e[o][0])>-1)&&null!=e[o][1]){var u=e[o][1],d=0;if(t){var p=r[d=+t[e[o][0]]];if("version"==p.p&&"string"==typeof u){var m=u.split(".");u=(+m[0]<<16)+(+m[1]||0)}c=Fn(p.t,u)}else{var v=Mn(u);-1==v&&(v=31,u=String(u)),c=Fn(v,u)}s.push(c),(l=Hr(8)).write_shift(4,t?d:2+o),n.push(l),i+=8+c.length}var g=8*(s.length+1);for(o=0;o<s.length;++o)n[o].write_shift(4,g),g+=s[o].length;return a.write_shift(4,i),a.write_shift(4,s.length),F([a].concat(n).concat(s))}function Un(e,t,r){var a=e.content;if(!a)return{};Wr(a,0);var n,s,i,o,c=0;a.chk("feff","Byte Order: "),a.read_shift(2);var l=a.read_shift(4),f=a.read_shift(16);if(f!==Re.utils.consts.HEADER_CLSID&&f!==r)throw new Error("Bad PropertySet CLSID "+f);if(1!==(n=a.read_shift(4))&&2!==n)throw new Error("Unrecognized #Sets: "+n);if(s=a.read_shift(16),o=a.read_shift(4),1===n&&o!==a.l)throw new Error("Length mismatch: "+o+" !== "+a.l);2===n&&(i=a.read_shift(16),c=a.read_shift(4));var h,u=Dn(a,t),d={SystemIdentifier:l};for(var p in u)d[p]=u[p];if(d.FMTID=s,1===n)return d;if(c-a.l==2&&(a.l+=2),a.l!==c)throw new Error("Length mismatch 2: "+a.l+" !== "+c);try{h=Dn(a,null)}catch(e){}for(p in h)d[p]=h[p];return d.FMTID=[s,i],d}function Bn(e,t,r,a,n,s){var i=Hr(n?68:48),o=[i];i.write_shift(2,65534),i.write_shift(2,0),i.write_shift(4,842412599),i.write_shift(16,Re.utils.consts.HEADER_CLSID,"hex"),i.write_shift(4,n?2:1),i.write_shift(16,t,"hex"),i.write_shift(4,n?68:48);var c=Ln(e,r,a);if(o.push(c),n){var l=Ln(n,null,null);i.write_shift(16,s,"hex"),i.write_shift(4,68+c.length),o.push(l)}return F(o)}function Wn(e,t){return e.read_shift(t),null}function zn(e,t){return 1===e.read_shift(t)}function Hn(e,t){return t||(t=Hr(2)),t.write_shift(2,+!!e),t}function Vn(e){return e.read_shift(2,"u")}function $n(e,t){return t||(t=Hr(2)),t.write_shift(2,e),t}function Gn(e,t){return function(e,t,r){for(var a=[],n=e.l+t;e.l<n;)a.push(r(e,n-e.l));if(n!==e.l)throw new Error("Slurp error");return a}(e,t,Vn)}function Xn(e){var t=e.read_shift(1);return 1===e.read_shift(1)?t:1===t}function jn(e,t,r){return r||(r=Hr(2)),r.write_shift(1,"e"==t?+e:+!!e),r.write_shift(1,"e"==t?1:0),r}function Kn(e,t,r){var a=e.read_shift(r&&r.biff>=12?2:1),n="sbcs-cont",s=i;r&&r.biff>=8&&(i=1200),r&&8!=r.biff?12==r.biff&&(n="wstr"):e.read_shift(1)&&(n="dbcs-cont"),r.biff>=2&&r.biff<=5&&(n="cpstr");var o=a?e.read_shift(a,n):"";return i=s,o}function Yn(e){var t=i;i=1200;var r,a=e.read_shift(2),n=e.read_shift(1),s=4&n,o=8&n,c=1+(1&n),l=0,f={};o&&(l=e.read_shift(2)),s&&(r=e.read_shift(4));var h=2==c?"dbcs-cont":"sbcs-cont",u=0===a?"":e.read_shift(a,h);return o&&(e.l+=4*l),s&&(e.l+=r),f.t=u,o||(f.raw="<t>"+f.t+"</t>",f.r=f.t),i=t,f}function Zn(e){var t=e.t||"",r=Hr(3);r.write_shift(2,t.length),r.write_shift(1,1);var a=Hr(2*t.length);return a.write_shift(2*t.length,t,"utf16le"),F([r,a])}function Jn(e,t,r){if(r){if(r.biff>=2&&r.biff<=5)return e.read_shift(t,"cpstr");if(r.biff>=12)return e.read_shift(t,"dbcs-cont")}return 0===e.read_shift(1)?e.read_shift(t,"sbcs-cont"):e.read_shift(t,"dbcs-cont")}function qn(e,t,r){var a=e.read_shift(r&&2==r.biff?1:2);return 0===a?(e.l++,""):Jn(e,a,r)}function Qn(e,t,r){if(r.biff>5)return qn(e,0,r);var a=e.read_shift(1);return 0===a?(e.l++,""):e.read_shift(a,r.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function es(e,t,r){return r||(r=Hr(3+2*e.length)),r.write_shift(2,e.length),r.write_shift(1,1),r.write_shift(31,e,"utf16le"),r}function ts(e){var t=e.read_shift(4);return t>0?e.read_shift(t,"utf16le").replace(D,""):""}function rs(e,t){t||(t=Hr(6+2*e.length)),t.write_shift(4,1+e.length);for(var r=0;r<e.length;++r)t.write_shift(2,e.charCodeAt(r));return t.write_shift(2,0),t}function as(e){var t=Hr(512),r=0,a=e.Target;"file://"==a.slice(0,7)&&(a=a.slice(7));var n=a.indexOf("#"),s=n>-1?31:23;switch(a.charAt(0)){case"#":s=28;break;case".":s&=-3}t.write_shift(4,2),t.write_shift(4,s);var i=[8,6815827,6619237,4849780,83];for(r=0;r<i.length;++r)t.write_shift(4,i[r]);if(28==s)rs(a=a.slice(1),t);else if(2&s){for(i="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),r=0;r<i.length;++r)t.write_shift(1,parseInt(i[r],16));var o=n>-1?a.slice(0,n):a;for(t.write_shift(4,2*(o.length+1)),r=0;r<o.length;++r)t.write_shift(2,o.charCodeAt(r));t.write_shift(2,0),8&s&&rs(n>-1?a.slice(n+1):"",t)}else{for(i="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),r=0;r<i.length;++r)t.write_shift(1,parseInt(i[r],16));for(var c=0;"../"==a.slice(3*c,3*c+3)||"..\\"==a.slice(3*c,3*c+3);)++c;for(t.write_shift(2,c),t.write_shift(4,a.length-3*c+1),r=0;r<a.length-3*c;++r)t.write_shift(1,255&a.charCodeAt(r+3*c));for(t.write_shift(1,0),t.write_shift(2,65535),t.write_shift(2,57005),r=0;r<6;++r)t.write_shift(4,0)}return t.slice(0,t.l)}function ns(e){return[e.read_shift(1),e.read_shift(1),e.read_shift(1),e.read_shift(1)]}function ss(e,t){var r=ns(e);return r[3]=0,r}function is(e,t,r){var a={r:e.read_shift(2),c:e.read_shift(2),ixfe:0};if(r&&2==r.biff||7==t){var n=e.read_shift(1);a.ixfe=63&n,e.l+=2}else a.ixfe=e.read_shift(2);return a}function os(e,t,r,a){return a||(a=Hr(6)),a.write_shift(2,e),a.write_shift(2,t),a.write_shift(2,r||0),a}function cs(e,t,r){var a=r.biff>8?4:2;return[e.read_shift(a),e.read_shift(a,"i"),e.read_shift(a,"i")]}function ls(e){return[e.read_shift(2),Ca(e)]}function fs(e){var t=e.read_shift(2),r=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r}}}function hs(e,t){return t||(t=Hr(8)),t.write_shift(2,e.s.r),t.write_shift(2,e.e.r),t.write_shift(2,e.s.c),t.write_shift(2,e.e.c),t}function us(e){var t=e.read_shift(2),r=e.read_shift(2);return{s:{c:e.read_shift(1),r:t},e:{c:e.read_shift(1),r}}}var ds=us;function ps(e){e.l+=4;var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(2);return e.l+=12,[r,t,a]}function ms(e){e.l+=2,e.l+=e.read_shift(2)}var vs={0:ms,4:ms,5:ms,6:ms,7:function(e){return e.l+=4,e.cf=e.read_shift(2),{}},8:ms,9:ms,10:ms,11:ms,12:ms,13:function(e){var t={};return e.l+=4,e.l+=16,t.fSharedNote=e.read_shift(2),e.l+=4,t},14:ms,15:ms,16:ms,17:ms,18:ms,19:ms,20:ms,21:ps};function gs(e,t){var r={BIFFVer:0,dt:0};switch(r.BIFFVer=e.read_shift(2),(t-=2)>=2&&(r.dt=e.read_shift(2),e.l-=2),r.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(t>6)throw new Error("Unexpected BIFF Ver "+r.BIFFVer)}return e.read_shift(t),r}function bs(e,t,r){var a=1536,n=16;switch(r.bookType){case"biff8":case"xla":break;case"biff5":a=1280,n=8;break;case"biff4":a=4,n=6;break;case"biff3":a=3,n=6;break;case"biff2":a=2,n=4;break;default:throw new Error("unsupported BIFF version")}var s=Hr(n);return s.write_shift(2,a),s.write_shift(2,t),n>4&&s.write_shift(2,29282),n>6&&s.write_shift(2,1997),n>8&&(s.write_shift(2,49161),s.write_shift(2,1),s.write_shift(2,1798),s.write_shift(2,0)),s}function ws(e,t){var r=!t||t.biff>=8?2:1,a=Hr(8+r*e.name.length);a.write_shift(4,e.pos),a.write_shift(1,e.hs||0),a.write_shift(1,e.dt),a.write_shift(1,e.name.length),t.biff>=8&&a.write_shift(1,1),a.write_shift(r*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var n=a.slice(0,a.l);return n.l=a.l,n}function Ts(e,t,r){var a=0;r&&2==r.biff||(a=e.read_shift(2));var n=e.read_shift(2);return r&&2==r.biff&&(a=1-(n>>15),n&=32767),[{Unsynced:1&a,DyZero:(2&a)>>1,ExAsc:(4&a)>>2,ExDsc:(8&a)>>3},n]}function ys(e,t,r,a){var n=r&&5==r.biff;a||(a=Hr(n?3+t.length:5+2*t.length)),a.write_shift(2,e),a.write_shift(n?1:2,t.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*t.length,t,n?"sbcs":"utf16le");var s=a.length>a.l?a.slice(0,a.l):a;return null==s.l&&(s.l=s.length),s}var Es=Qn;function ks(e,t,r){var a=e.l+t,n=8!=r.biff&&r.biff?2:4,s=e.read_shift(n),i=e.read_shift(n),o=e.read_shift(2),c=e.read_shift(2);return e.l=a,{s:{r:s,c:o},e:{r:i,c}}}function _s(e,t,r,a){var n=r&&5==r.biff;a||(a=Hr(n?16:20)),a.write_shift(2,0),e.style?(a.write_shift(2,e.numFmtId||0),a.write_shift(2,65524)):(a.write_shift(2,e.numFmtId||0),a.write_shift(2,t<<4));var s=0;return e.numFmtId>0&&n&&(s|=1024),a.write_shift(4,s),a.write_shift(4,0),n||a.write_shift(4,0),a.write_shift(2,0),a}function Ss(e){var t=Hr(12);return t.l++,t.write_shift(1,e.numFmtId),t.l+=10,t}var xs=Ss;function As(e,t,r,a,n,s){var i=Hr(8);return os(e,t,a,i),jn(r,s,i),i}var Cs=function(e,t,r){return 0===t?"":Qn(e,0,r)};function Os(e,t,r){var a,n=e.read_shift(2),s={fBuiltIn:1&n,fWantAdvise:n>>>1&1,fWantPict:n>>>2&1,fOle:n>>>3&1,fOleLink:n>>>4&1,cf:n>>>5&1023,fIcon:n>>>15&1};return 14849===r.sbcch&&(a=function(e,t,r){e.l+=4,t-=4;var a=e.l+t,n=Kn(e,0,r),s=e.read_shift(2);if(s!==(a-=e.l))throw new Error("Malformed AddinUdf: padding = "+a+" != "+s);return e.l+=s,n}(e,t-2,r)),s.body=a||e.read_shift(t-2),"string"==typeof a&&(s.Name=a),s}function Rs(e,t,r){var a=e.l+t,n=e.read_shift(2),s=e.read_shift(1),i=e.read_shift(1),o=e.read_shift(r&&2==r.biff?1:2),c=0;(!r||r.biff>=5)&&(5!=r.biff&&(e.l+=2),c=e.read_shift(2),5==r.biff&&(e.l+=2),e.l+=4);var l=Jn(e,i,r);32&n&&(l=Ja[l.charCodeAt(0)]);var f=a-e.l;r&&2==r.biff&&--f;var h=a!=e.l&&0!==o&&f>0?function(e,t,r,a){var n,s=e.l+t,i=zo(e,a,r);return s!==e.l&&(n=Wo(e,s-e.l,i,r)),[i,n]}(e,f,r,o):[];return{chKey:s,Name:l,itab:c,rgce:h}}function Is(e,t,r){if(r.biff<8)return Ns(e,0,r);if(!(r.biff>8)&&t==e[e.l]+(3==e[e.l+1]?1:0)+1)return Ns(e,0,r);for(var a=[],n=e.l+t,s=e.read_shift(r.biff>8?4:2);0!=s--;)a.push(cs(e,r.biff,r));if(e.l!=n)throw new Error("Bad ExternSheet: "+e.l+" != "+n);return a}function Ns(e,t,r){3==e[e.l+1]&&e[e.l]++;var a=Kn(e,0,r);return 3==a.charCodeAt(0)?a.slice(1):a}function Fs(e,t,r){var a=ds(e,6);switch(r.biff){case 2:e.l++,t-=7;break;case 3:case 4:e.l+=2,t-=8;break;default:e.l+=6,t-=12}return[a,jo(e,t,r)]}function Ds(e,t,r,a){var n=Hr(6+(a||e.length));return n.write_shift(2,t),n.write_shift(2,r),n.write_shift(2,a||e.length),n.write_shift(e.length,e,"sbcs"),n}var Ps={8:function(e,t){var r=e.l+t;e.l+=10;var a=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var n=e.read_shift(1);return e.l+=n,e.l=r,{fmt:a}}};function Ms(e){var t=Hr(24),r=ea(e[0]);t.write_shift(2,r.r),t.write_shift(2,r.r),t.write_shift(2,r.c),t.write_shift(2,r.c);for(var a="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<16;++n)t.write_shift(1,parseInt(a[n],16));return F([t,as(e[1])])}function Ls(e){var t=e[1].Tooltip,r=Hr(10+2*(t.length+1));r.write_shift(2,2048);var a=ea(e[0]);r.write_shift(2,a.r),r.write_shift(2,a.r),r.write_shift(2,a.c),r.write_shift(2,a.c);for(var n=0;n<t.length;++n)r.write_shift(2,t.charCodeAt(n));return r.write_shift(2,0),r}function Us(e,t,r){if(!r.cellStyles)return zr(e,t);var a=r&&r.biff>=12?4:2,n=e.read_shift(a),s=e.read_shift(a),i=e.read_shift(a),o=e.read_shift(a),c=e.read_shift(2);2==a&&(e.l+=2);var l={s:n,e:s,w:i,ixfe:o,flags:c};return(r.biff>=5||!r.biff)&&(l.level=c>>8&7),l}var Bs=is,Ws=Gn,zs=qn;function Hs(e,t,r,a,n){return e||(e=Hr(7)),e.write_shift(2,t),e.write_shift(2,r),e.write_shift(1,a||0),e.write_shift(1,n||0),e.write_shift(1,0),e}var Vs=[2,3,48,49,131,139,140,245],$s=function(){var e={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,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},t=Me({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});function r(t,r){var n=r||{};n.dateNF||(n.dateNF="yyyymmdd");var s=fa(function(t,r){var n=[],s=A(1);switch(r.type){case"base64":s=O(k(t));break;case"binary":s=O(t);break;case"buffer":case"array":s=t}Wr(s,0);var i=s.read_shift(1),o=!!(136&i),c=!1,l=!1;switch(i){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:c=!0,o=!0;break;case 140:l=!0;break;default:throw new Error("DBF Unsupported Version: "+i.toString(16))}var f=0,h=521;2==i&&(f=s.read_shift(2)),s.l+=3,2!=i&&(f=s.read_shift(4)),f>1048576&&(f=1e6),2!=i&&(h=s.read_shift(2));var u=s.read_shift(2),d=r.codepage||1252;2!=i&&(s.l+=16,s.read_shift(1),0!==s[s.l]&&(d=e[s[s.l]]),s.l+=1,s.l+=2),l&&(s.l+=36);for(var p=[],m={},v=Math.min(s.length,2==i?521:h-10-(c?264:0)),g=l?32:11;s.l<v&&13!=s[s.l];)switch((m={}).name=(void 0!==a?a.utils.decode(d,s.slice(s.l,s.l+g)):I(s.slice(s.l,s.l+g))).replace(/[\u0000\r\n].*$/g,""),s.l+=g,m.type=String.fromCharCode(s.read_shift(1)),2==i||l||(m.offset=s.read_shift(4)),m.len=s.read_shift(1),2==i&&(m.offset=s.read_shift(2)),m.dec=s.read_shift(1),m.name.length&&p.push(m),2!=i&&(s.l+=l?13:14),m.type){case"B":c&&8==m.len||!r.WTF||console.log("Skipping "+m.name+":"+m.type);break;case"G":case"P":r.WTF&&console.log("Skipping "+m.name+":"+m.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+m.type)}if(13!==s[s.l]&&(s.l=h-1),13!==s.read_shift(1))throw new Error("DBF Terminator not found "+s.l+" "+s[s.l]);s.l=h;var b=0,w=0;for(n[0]=[],w=0;w!=p.length;++w)n[0][w]=p[w].name;for(;f-- >0;)if(42!==s[s.l])for(++s.l,n[++b]=[],w=0,w=0;w!=p.length;++w){var T=s.slice(s.l,s.l+p[w].len);s.l+=p[w].len,Wr(T,0);var y=void 0!==a?a.utils.decode(d,T):I(T);switch(p[w].type){case"C":y.trim().length&&(n[b][w]=y.replace(/\s+$/,""));break;case"D":8===y.length?(n[b][w]=new Date(Date.UTC(+y.slice(0,4),+y.slice(4,6)-1,+y.slice(6,8),0,0,0,0)),r&&r.UTC||(n[b][w]=st(n[b][w]))):n[b][w]=y;break;case"F":n[b][w]=parseFloat(y.trim());break;case"+":case"I":n[b][w]=l?2147483648^T.read_shift(-4,"i"):T.read_shift(4,"i");break;case"L":switch(y.trim().toUpperCase()){case"Y":case"T":n[b][w]=!0;break;case"N":case"F":n[b][w]=!1;break;case"":case"\0":case"?":break;default:throw new Error("DBF Unrecognized L:|"+y+"|")}break;case"M":if(!o)throw new Error("DBF Unexpected MEMO for type "+i.toString(16));n[b][w]="##MEMO##"+(l?parseInt(y.trim(),10):T.read_shift(4));break;case"N":(y=y.replace(/\u0000/g,"").trim())&&"."!=y&&(n[b][w]=+y||0);break;case"@":n[b][w]=new Date(T.read_shift(-8,"f")-621356832e5);break;case"T":var E=T.read_shift(4),_=T.read_shift(4);if(0==E&&0==_)break;n[b][w]=new Date(864e5*(E-2440588)+_),r&&r.UTC||(n[b][w]=st(n[b][w]));break;case"Y":n[b][w]=T.read_shift(4,"i")/1e4+T.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":n[b][w]=-T.read_shift(-8,"f");break;case"B":if(c&&8==p[w].len){n[b][w]=T.read_shift(8,"f");break}case"G":case"P":T.l+=p[w].len;break;case"0":if("_NullFlags"===p[w].name)break;default:throw new Error("DBF Unsupported data type "+p[w].type)}}else s.l+=u;if(2!=i&&s.l<s.length&&26!=s[s.l++])throw new Error("DBF EOF Marker missing "+(s.l-1)+" of "+s.length+" "+s[s.l-1].toString(16));return r&&r.sheetRows&&(n=n.slice(0,r.sheetRows)),r.DBF=p,n}(t,n),n);return s["!cols"]=n.DBF.map((function(e){return{wch:e.len,DBF:e}})),delete n.DBF,s}var n={B:8,C:250,L:1,D:8,"?":0,"":0};return{to_workbook:function(e,t){try{var a=ca(r(e,t),t);return a.bookType="dbf",a}catch(e){if(t&&t.WTF)throw e}return{SheetNames:[],Sheets:{}}},to_sheet:r,from_sheet:function(r,s){if(!r["!ref"])throw new Error("Cannot export empty sheet to DBF");var c=s||{},l=i;if(+c.codepage>=0&&h(+c.codepage),"string"==c.type)throw new Error("Cannot write DBF to JS string");var f=$r(),u=wh(r,{header:1,raw:!0,cellDates:!0}),d=u[0],p=u.slice(1),m=r["!cols"]||[],v=0,g=0,b=0,w=1;for(v=0;v<d.length;++v)if(((m[v]||{}).DBF||{}).name)d[v]=m[v].DBF.name,++b;else if(null!=d[v]){if(++b,"number"==typeof d[v]&&(d[v]=d[v].toString(10)),"string"!=typeof d[v])throw new Error("DBF Invalid column name "+d[v]+" |"+typeof d[v]+"|");if(d.indexOf(d[v])!==v)for(g=0;g<1024;++g)if(-1==d.indexOf(d[v]+"_"+g)){d[v]+="_"+g;break}}var T=ia(r["!ref"]),y=[],E=[],k=[];for(v=0;v<=T.e.c-T.s.c;++v){var _="",S="",x=0,A=[];for(g=0;g<p.length;++g)null!=p[g][v]&&A.push(p[g][v]);if(0!=A.length&&null!=d[v]){for(g=0;g<A.length;++g){switch(typeof A[g]){case"number":S="B";break;case"string":default:S="C";break;case"boolean":S="L";break;case"object":S=A[g]instanceof Date?"D":"C"}x=Math.max(x,(void 0!==a&&"string"==typeof A[g]?a.utils.encode(o,A[g]):String(A[g])).length),_=_&&_!=S?"C":S}x>250&&(x=250),"C"==(S=((m[v]||{}).DBF||{}).type)&&m[v].DBF.len>x&&(x=m[v].DBF.len),"B"==_&&"N"==S&&(_="N",k[v]=m[v].DBF.dec,x=m[v].DBF.len),E[v]="C"==_||"N"==S?x:n[_]||0,w+=E[v],y[v]=_}else y[v]="?"}var C=f.next(32);for(C.write_shift(4,318902576),C.write_shift(4,p.length),C.write_shift(2,296+32*b),C.write_shift(2,w),v=0;v<4;++v)C.write_shift(4,0);var O=+t[i]||3;for(C.write_shift(4,O<<8),e[O]!=+c.codepage&&(c.codepage&&console.error("DBF Unsupported codepage "+i+", using 1252"),i=1252),v=0,g=0;v<d.length;++v)if(null!=d[v]){var R=f.next(32),I=(d[v].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);R.write_shift(1,I,"sbcs"),R.write_shift(1,"?"==y[v]?"C":y[v],"sbcs"),R.write_shift(4,g),R.write_shift(1,E[v]||n[y[v]]||0),R.write_shift(1,k[v]||0),R.write_shift(1,2),R.write_shift(4,0),R.write_shift(1,0),R.write_shift(4,0),R.write_shift(4,0),g+=E[v]||n[y[v]]||0}var N=f.next(264);for(N.write_shift(4,13),v=0;v<65;++v)N.write_shift(4,0);for(v=0;v<p.length;++v){var F=f.next(w);for(F.write_shift(1,0),g=0;g<d.length;++g)if(null!=d[g])switch(y[g]){case"L":F.write_shift(1,null==p[v][g]?63:p[v][g]?84:70);break;case"B":F.write_shift(8,p[v][g]||0,"f");break;case"N":var D="0";for("number"==typeof p[v][g]&&(D=p[v][g].toFixed(k[g]||0)),D.length>E[g]&&(D=D.slice(0,E[g])),b=0;b<E[g]-D.length;++b)F.write_shift(1,32);F.write_shift(1,D,"sbcs");break;case"D":p[v][g]?(F.write_shift(4,("0000"+p[v][g].getFullYear()).slice(-4),"sbcs"),F.write_shift(2,("00"+(p[v][g].getMonth()+1)).slice(-2),"sbcs"),F.write_shift(2,("00"+p[v][g].getDate()).slice(-2),"sbcs")):F.write_shift(8,"00000000","sbcs");break;case"C":var P=F.l,M=String(null!=p[v][g]?p[v][g]:"").slice(0,E[g]);for(F.write_shift(1,M,"cpstr"),P+=E[g]-F.l,b=0;b<P;++b)F.write_shift(1,32)}}return i=l,f.next(1).write_shift(1,26),f.end()}}}(),Gs=function(){var e={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,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},t=new RegExp("N("+De(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1").replace("{","\\{")+"|\\|)","gm");try{t=new RegExp("N("+De(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm")}catch(e){}var r=function(t,r){var a=e[r];return"number"==typeof a?b(a):a},n=function(e,t,r){var a=t.charCodeAt(0)-32<<4|r.charCodeAt(0)-48;return 59==a?e:b(a)};e["|"]=254;function s(e,s){var i,o=e.split(/[\n\r]+/),c=-1,l=-1,f=0,u=0,d=[],p=[],m=null,v={},g=[],b=[],w=[],T=0,y={Workbook:{WBProps:{},Names:[]}};for(+s.codepage>=0&&h(+s.codepage);f!==o.length;++f){T=0;var E,k=o[f].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,n).replace(t,r),_=k.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),S=_[0];if(k.length>0)switch(S){case"ID":case"E":case"B":case"W":break;case"O":for(u=1;u<_.length;++u)if("V"===_[u].charAt(0)){var x=parseInt(_[u].slice(1),10);x>=1&&x<=4&&(y.Workbook.WBProps.date1904=!0)}break;case"P":"P"===_[1].charAt(0)&&p.push(k.slice(3).replace(/;;/g,";"));break;case"NN":var A={Sheet:0};for(u=1;u<_.length;++u)switch(_[u].charAt(0)){case"N":A.Name=_[u].slice(1);break;case"E":A.Ref=(s&&s.sheet||"Sheet1")+"!"+mo(_[u].slice(1))}y.Workbook.Names.push(A);break;case"C":var C=!1,O=!1,R=!1,I=!1,N=-1,F=-1,D="",P="z",M="";for(u=1;u<_.length;++u)switch(_[u].charAt(0)){case"A":M=_[u].slice(1);break;case"X":l=parseInt(_[u].slice(1),10)-1,O=!0;break;case"Y":for(c=parseInt(_[u].slice(1),10)-1,O||(l=0),i=d.length;i<=c;++i)d[i]=[];break;case"K":'"'===(E=_[u].slice(1)).charAt(0)?(E=E.slice(1,E.length-1),P="s"):"TRUE"===E||"FALSE"===E?(E="TRUE"===E,P="b"):isNaN(Je(E))||(E=Je(E),P="n",null!==m&&ve(m)&&s.cellDates&&(P="number"==typeof(E=He(y.Workbook.WBProps.date1904?E+1462:E))?"n":"d")),void 0!==a&&"string"==typeof E&&"string"!=(s||{}).type&&(s||{}).codepage&&(E=a.utils.decode(s.codepage,E)),C=!0;break;case"E":I=!0,D=mo(_[u].slice(1),{r:c,c:l});break;case"S":R=!0;break;case"G":break;case"R":N=parseInt(_[u].slice(1),10)-1;break;case"C":F=parseInt(_[u].slice(1),10)-1;break;default:if(s&&s.WTF)throw new Error("SYLK bad record "+k)}if(C&&(d[c][l]?(d[c][l].t=P,d[c][l].v=E):d[c][l]={t:P,v:E},m&&(d[c][l].z=m),!1!==s.cellText&&m&&(d[c][l].w=we(d[c][l].z,d[c][l].v,{date1904:y.Workbook.WBProps.date1904})),m=null),R){if(I)throw new Error("SYLK shared formula cannot have own formula");var L=N>-1&&d[N][F];if(!L||!L[1])throw new Error("SYLK shared formula cannot find base");D=bo(L[1],{r:c-N,c:l-F})}D&&(d[c][l]?d[c][l].f=D:d[c][l]={t:"n",f:D}),M&&(d[c][l]||(d[c][l]={t:"z"}),d[c][l].c=[{a:"SheetJSYLK",t:M}]);break;case"F":var U=0;for(u=1;u<_.length;++u)switch(_[u].charAt(0)){case"X":l=parseInt(_[u].slice(1),10)-1,++U;break;case"Y":for(c=parseInt(_[u].slice(1),10)-1,i=d.length;i<=c;++i)d[i]=[];break;case"M":T=parseInt(_[u].slice(1),10)/20;break;case"F":case"G":case"S":case"D":case"N":break;case"P":m=p[parseInt(_[u].slice(1),10)];break;case"W":for(w=_[u].slice(1).split(" "),i=parseInt(w[0],10);i<=parseInt(w[1],10);++i)T=parseInt(w[2],10),b[i-1]=0===T?{hidden:!0}:{wch:T};break;case"C":b[l=parseInt(_[u].slice(1),10)-1]||(b[l]={});break;case"R":g[c=parseInt(_[u].slice(1),10)-1]||(g[c]={}),T>0?(g[c].hpt=T,g[c].hpx=Ni(T)):0===T&&(g[c].hidden=!0);break;default:if(s&&s.WTF)throw new Error("SYLK bad record "+k)}U<1&&(m=null);break;default:if(s&&s.WTF)throw new Error("SYLK bad record "+k)}}return g.length>0&&(v["!rows"]=g),b.length>0&&(v["!cols"]=b),b.forEach((function(e){Oi(e)})),s&&s.sheetRows&&(d=d.slice(0,s.sheetRows)),[d,v,y]}function i(e,t,r,a,n,s){var i="C;Y"+(r+1)+";X"+(a+1)+";K";switch(e.t){case"n":i+=e.v||0,e.f&&!e.F&&(i+=";E"+go(e.f,{r,c:a}));break;case"b":i+=e.v?"TRUE":"FALSE";break;case"e":i+=e.w||e.v;break;case"d":i+=ze(je(e.v,s),s);break;case"s":i+='"'+(null==e.v?"":String(e.v)).replace(/"/g,"").replace(/;/g,";;")+'"'}return i}function o(e,t,r){return"C;Y"+(t+1)+";X"+(r+1)+";A"+e.map((function(e){return e.t})).join("").replace(/\n/g," :").replace(/\r/g," =")}return{to_workbook:function(e,t){var r=function(e,t){switch(t.type){case"base64":return s(k(e),t);case"binary":return s(e,t);case"buffer":return s(_&&Buffer.isBuffer(e)?e.toString("binary"):I(e),t);case"array":return s(Ke(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),a=r[0],n=r[1],i=r[2],o=Ye(t);o.date1904=(((i||{}).Workbook||{}).WBProps||{}).date1904;var c=fa(a,o);De(n).forEach((function(e){c[e]=n[e]}));var l=ca(c,t);return De(i).forEach((function(e){l[e]=i[e]})),l.bookType="sylk",l},from_sheet:function(e,t,r){t||(t={}),t._formats=["General"];var a,n=["ID;PSheetJS;N;E"],s=[],c=ia(e["!ref"]||"A1"),l=null!=e["!data"],f="\r\n",h=(((r||{}).Workbook||{}).WBProps||{}).date1904;n.push("P;PGeneral");var u,d=c.s.r,p=c.s.c,m=[];if(e["!ref"])for(d=c.s.r;d<=c.e.r;++d)if(!l||e["!data"][d]){for(m=[],p=c.s.c;p<=c.e.c;++p)(a=l?e["!data"][d][p]:e[Qr(p)+Jr(d)])&&a.c&&m.push(o(a.c,d,p));m.length&&s.push(m.join(f))}if(e["!ref"])for(d=c.s.r;d<=c.e.r;++d)if(!l||e["!data"][d]){for(m=[],p=c.s.c;p<=c.e.c;++p)if((a=l?e["!data"][d][p]:e[Qr(p)+Jr(d)])&&(null!=a.v||a.f&&!a.F)){if("General"!=(a.z||("d"==a.t?X[14]:"General"))){var v=t._formats.indexOf(a.z);-1==v&&(t._formats.push(a.z),v=t._formats.length-1,n.push("P;P"+a.z.replace(/;/g,";;"))),m.push("F;P"+v+";Y"+(d+1)+";X"+(p+1))}m.push(i(a,0,d,p,0,h))}s.push(m.join(f))}return n.push("F;P0;DG0G8;M255"),e["!cols"]&&(u=n,e["!cols"].forEach((function(e,t){var r="F;W"+(t+1)+" "+(t+1)+" ";e.hidden?r+="0":("number"!=typeof e.width||e.wpx||(e.wpx=_i(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=Si(e.wpx)),"number"==typeof e.wch&&(r+=Math.round(e.wch)))," "!=r.charAt(r.length-1)&&u.push(r)}))),e["!rows"]&&function(e,t){t.forEach((function(t,r){var a="F;";t.hidden?a+="M0;":t.hpt?a+="M"+20*t.hpt+";":t.hpx&&(a+="M"+20*Ii(t.hpx)+";"),a.length>2&&e.push(a+"R"+(r+1))}))}(n,e["!rows"]),e["!ref"]&&n.push("B;Y"+(c.e.r-c.s.r+1)+";X"+(c.e.c-c.s.c+1)+";D"+[c.s.c,c.s.r,c.e.c,c.e.r].join(" ")),n.push("O;L;D;B"+(h?";V4":"")+";K47;G100 0.001"),delete t._formats,n.join(f)+f+s.join(f)+f+"E"+f}}}(),Xs=function(){function e(e,t){for(var r=e.split("\n"),a=-1,n=-1,s=0,i=[];s!==r.length;++s)if("BOT"!==r[s].trim()){if(!(a<0)){for(var o=r[s].trim().split(","),c=o[0],l=o[1],f=r[++s]||"";1&(f.match(/["]/g)||[]).length&&s<r.length-1;)f+="\n"+r[++s];switch(f=f.trim(),+c){case-1:if("BOT"===f){i[++a]=[],n=0;continue}if("EOD"!==f)throw new Error("Unrecognized DIF special command "+f);break;case 0:"TRUE"===f?i[a][n]=!0:"FALSE"===f?i[a][n]=!1:isNaN(Je(l))?isNaN(at(l).getDate())?i[a][n]=l:(i[a][n]=je(l),t&&t.UTC||(i[a][n]=st(i[a][n]))):i[a][n]=Je(l),++n;break;case 1:(f=(f=f.slice(1,f.length-1)).replace(/""/g,'"'))&&f.match(/^=".*"$/)&&(f=f.slice(2,-1)),i[a][n++]=""!==f?f:null}if("EOD"===f)break}}else i[++a]=[],n=0;return t&&t.sheetRows&&(i=i.slice(0,t.sheetRows)),i}function t(t,r){return fa(function(t,r){switch(r.type){case"base64":return e(k(t),r);case"binary":return e(t,r);case"buffer":return e(_&&Buffer.isBuffer(t)?t.toString("binary"):I(t),r);case"array":return e(Ke(t),r)}throw new Error("Unrecognized type "+r.type)}(t,r),r)}function r(e,t){return"0,"+String(e)+"\r\n"+t}function a(e){return'1,0\r\n"'+e.replace(/"/g,'""')+'"'}return{to_workbook:function(e,r){var a=ca(t(e,r),r);return a.bookType="dif",a},to_sheet:t,from_sheet:function(e){if(!e["!ref"])throw new Error("Cannot export empty sheet to DIF");for(var t=ia(e["!ref"]),n=null!=e["!data"],s=['TABLE\r\n0,1\r\n"sheetjs"\r\n',"VECTORS\r\n0,"+(t.e.r-t.s.r+1)+'\r\n""\r\n',"TUPLES\r\n0,"+(t.e.c-t.s.c+1)+'\r\n""\r\n','DATA\r\n0,0\r\n""\r\n'],i=t.s.r;i<=t.e.r;++i){for(var o=n?e["!data"][i]:[],c="-1,0\r\nBOT\r\n",l=t.s.c;l<=t.e.c;++l){var f=n?o&&o[l]:e[ta({r:i,c:l})];if(null!=f){switch(f.t){case"n":null!=f.w?c+="0,"+f.w+"\r\nV":null!=f.v?c+=r(f.v,"V"):null==f.f||f.F?c+='1,0\r\n""':c+=a("="+f.f);break;case"b":c+=f.v?r(1,"TRUE"):r(0,"FALSE");break;case"s":c+=a(isNaN(+f.v)?f.v:'="'+f.v+'"');break;case"d":f.w||(f.w=we(f.z||X[14],ze(je(f.v)))),c+=r(f.w,"V");break;default:c+='1,0\r\n""'}c+="\r\n"}else c+='1,0\r\n""\r\n'}s.push(c)}return s.join("")+"-1,0\r\nEOD"}}}(),js=function(){function e(e){return e.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(e,t){return fa(function(e,t){for(var r=e.split("\n"),a=-1,n=-1,s=0,i=[];s!==r.length;++s){var o=r[s].trim().split(":");if("cell"===o[0]){var c=ea(o[1]);if(i.length<=c.r)for(a=i.length;a<=c.r;++a)i[a]||(i[a]=[]);switch(a=c.r,n=c.c,o[2]){case"t":i[a][n]=o[3].replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,"\n");break;case"v":i[a][n]=+o[3];break;case"vtf":var l=o[o.length-1];case"vtc":"nl"===o[3]?i[a][n]=!!+o[4]:i[a][n]=+o[4],"vtf"==o[2]&&(i[a][n]=[i[a][n],l])}}}return t&&t.sheetRows&&(i=i.slice(0,t.sheetRows)),i}(e,t),t)}var r=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join("\n"),a=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join("\n")+"\n",n=["# SocialCalc Spreadsheet Control Save","part:sheet"].join("\n"),s="--SocialCalcSpreadsheetControlSave--";function i(t){if(!t||!t["!ref"])return"";for(var r,a=[],n=[],s="",i=ra(t["!ref"]),o=null!=t["!data"],c=i.s.r;c<=i.e.r;++c)for(var l=i.s.c;l<=i.e.c;++l)if(s=ta({r:c,c:l}),(r=o?(t["!data"][c]||[])[l]:t[s])&&null!=r.v&&"z"!==r.t){switch(n=["cell",s,"t"],r.t){case"s":case"str":n.push(e(r.v));break;case"n":r.f?(n[2]="vtf",n[3]="n",n[4]=r.v,n[5]=e(r.f)):(n[2]="v",n[3]=r.v);break;case"b":n[2]="vt"+(r.f?"f":"c"),n[3]="nl",n[4]=r.v?"1":"0",n[5]=e(r.f||(r.v?"TRUE":"FALSE"));break;case"d":var f=ze(je(r.v));n[2]="vtc",n[3]="nd",n[4]=""+f,n[5]=r.w||we(r.z||X[14],f);break;case"e":continue}a.push(n.join(":"))}return a.push("sheet:c:"+(i.e.c-i.s.c+1)+":r:"+(i.e.r-i.s.r+1)+":tvf:1"),a.push("valueformat:1:text-wiki"),a.join("\n")}return{to_workbook:function(e,r){return ca(t(e,r),r)},to_sheet:t,from_sheet:function(e){return[r,a,n,a,i(e),s].join("\n")}}}(),Ks=function(){function e(e,t,r,a,n){n.raw?t[r][a]=e:""===e||("TRUE"===e?t[r][a]=!0:"FALSE"===e?t[r][a]=!1:isNaN(Je(e))?isNaN(at(e).getDate())?t[r][a]=e:t[r][a]=je(e):t[r][a]=Je(e))}var t={44:",",9:"\t",59:";",124:"|"},r={44:3,9:2,59:1,124:0};function n(e){for(var a={},n=!1,s=0,i=0;s<e.length;++s)34==(i=e.charCodeAt(s))?n=!n:!n&&i in t&&(a[i]=(a[i]||0)+1);for(s in i=[],a)Object.prototype.hasOwnProperty.call(a,s)&&i.push([a[s],s]);if(!i.length)for(s in a=r)Object.prototype.hasOwnProperty.call(a,s)&&i.push([a[s],s]);return i.sort((function(e,t){return e[0]-t[0]||r[e[1]]-r[t[1]]})),t[i.pop()[1]]||44}function s(e,t){var r=t||{},a="";null!=T&&null==r.dense&&(r.dense=T);var s={};r.dense&&(s["!data"]=[]);var i={s:{c:0,r:0},e:{c:0,r:0}};"sep="==e.slice(0,4)?13==e.charCodeAt(5)&&10==e.charCodeAt(6)?(a=e.charAt(4),e=e.slice(7)):13==e.charCodeAt(5)||10==e.charCodeAt(5)?(a=e.charAt(4),e=e.slice(6)):a=n(e.slice(0,1024)):a=r&&r.FS?r.FS:n(e.slice(0,1024));var o,c,l=0,f=0,h=0,u=0,d=0,p=a.charCodeAt(0),m=!1,v=0,g=e.charCodeAt(0),b=null!=r.dateNF?(c=(c="number"==typeof(o=r.dateNF)?X[o]:o).replace(Se,"(\\d+)"),Se.lastIndex=0,new RegExp("^"+c+"$")):null;function w(){var t=e.slice(u,d);"\r"==t.slice(-1)&&(t=t.slice(0,-1));var a={};if('"'==t.charAt(0)&&'"'==t.charAt(t.length-1)&&(t=t.slice(1,-1).replace(/""/g,'"')),!1!==r.cellText&&(a.w=t),0===t.length)a.t="z";else if(r.raw)a.t="s",a.v=t;else if(0===t.trim().length)a.t="s",a.v=t;else if(61==t.charCodeAt(0))34==t.charCodeAt(1)&&34==t.charCodeAt(t.length-1)?(a.t="s",a.v=t.slice(2,-1).replace(/""/g,'"')):1!=t.length?(a.t="s",a.f=t.slice(1),a.v=t):(a.t="s",a.v=t);else if("TRUE"==t)a.t="b",a.v=!0;else if("FALSE"==t)a.t="b",a.v=!1;else if(isNaN(h=Je(t)))if(!isNaN((h=at(t)).getDate())||b&&t.match(b)){if(a.z=r.dateNF||X[14],b&&t.match(b)){var n=function(e,t,r){var a=-1,n=-1,s=-1,i=-1,o=-1,c=-1;(t.match(Se)||[]).forEach((function(e,t){var l=parseInt(r[t+1],10);switch(e.toLowerCase().charAt(0)){case"y":a=l;break;case"d":s=l;break;case"h":i=l;break;case"s":c=l;break;case"m":i>=0?o=l:n=l}})),Se.lastIndex=0,c>=0&&-1==o&&n>=0&&(o=n,n=-1);var l=(""+(a>=0?a:(new Date).getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(s>=1?s:1)).slice(-2);7==l.length&&(l="0"+l),8==l.length&&(l="20"+l);var f=("00"+(i>=0?i:0)).slice(-2)+":"+("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(c>=0?c:0)).slice(-2);return-1==i&&-1==o&&-1==c?l:-1==a&&-1==n&&-1==s?f:l+"T"+f}(0,r.dateNF,t.match(b)||[]);h=je(n),r&&!1===r.UTC&&(h=st(h))}else r&&!1===r.UTC?h=st(h):!1!==r.cellText&&r.dateNF&&(a.w=we(a.z,h));r.cellDates?(a.t="d",a.v=h):(a.t="n",a.v=ze(h)),r.cellNF||delete a.z}else a.t="s",a.v=t;else a.t="n",a.v=h;if("z"==a.t||(r.dense?(s["!data"][l]||(s["!data"][l]=[]),s["!data"][l][f]=a):s[ta({c:f,r:l})]=a),u=d+1,g=e.charCodeAt(u),i.e.c<f&&(i.e.c=f),i.e.r<l&&(i.e.r=l),v==p)++f;else if(f=0,++l,r.sheetRows&&r.sheetRows<=l)return!0}e:for(;d<e.length;++d)switch(v=e.charCodeAt(d)){case 34:34===g&&(m=!m);break;case 13:if(m)break;10==e.charCodeAt(d+1)&&++d;case p:case 10:if(!m&&w())break e}return d-u>0&&w(),s["!ref"]=aa(i),s}function i(t,r){var n="",i="string"==r.type?[0,0,0,0]:rh(t,r);switch(r.type){case"base64":n=k(t);break;case"binary":case"string":n=t;break;case"buffer":n=65001==r.codepage?t.toString("utf8"):r.codepage&&void 0!==a?a.utils.decode(r.codepage,t):_&&Buffer.isBuffer(t)?t.toString("binary"):I(t);break;case"array":n=Ke(t);break;default:throw new Error("Unrecognized type "+r.type)}return 239==i[0]&&187==i[1]&&191==i[2]?n=Ht(n.slice(3)):"string"!=r.type&&"buffer"!=r.type&&65001==r.codepage?n=Ht(n):"binary"==r.type&&void 0!==a&&r.codepage&&(n=a.utils.decode(r.codepage,a.utils.encode(28591,n))),"socialcalc:version:"==n.slice(0,19)?js.to_sheet("string"==r.type?n:Ht(n),r):function(t,r){return r&&r.PRN?r.FS||"sep="==t.slice(0,4)||t.indexOf("\t")>=0||t.indexOf(",")>=0||t.indexOf(";")>=0?s(t,r):fa(function(t,r){var a=r||{},n=[];if(!t||0===t.length)return n;for(var s=t.split(/[\r\n]/),i=s.length-1;i>=0&&0===s[i].length;)--i;for(var o=10,c=0,l=0;l<=i;++l)-1==(c=s[l].indexOf(" "))?c=s[l].length:c++,o=Math.max(o,c);for(l=0;l<=i;++l){n[l]=[];var f=0;for(e(s[l].slice(0,o).trim(),n,l,f,a),f=1;f<=(s[l].length-o)/10+1;++f)e(s[l].slice(o+10*(f-1),o+10*f).trim(),n,l,f,a)}return a.sheetRows&&(n=n.slice(0,a.sheetRows)),n}(t,r),r):s(t,r)}(n,r)}return{to_workbook:function(e,t){return ca(i(e,t),t)},to_sheet:i,from_sheet:function(e){var t=[];if(!e["!ref"])return"";for(var r,a=ia(e["!ref"]),n=null!=e["!data"],s=a.s.r;s<=a.e.r;++s){for(var i=[],o=a.s.c;o<=a.e.c;++o){var c=ta({r:s,c:o});if((r=n?(e["!data"][s]||[])[o]:e[c])&&null!=r.v){for(var l=(r.w||(oa(r),r.w)||"").slice(0,10);l.length<10;)l+=" ";i.push(l+(0===o?" ":""))}else i.push(" ")}t.push(i.join(""))}return t.join("\n")}}}(),Ys=function(){function e(e,t,r){if(e){Wr(e,e.l||0);for(var a=r.Enum||w;e.l<e.length;){var n=e.read_shift(2),s=a[n]||a[65535],i=e.read_shift(2),o=e.l+i,c=s.f&&s.f(e,i,r);if(e.l=o,t(c,s,n))return}}}var t=["mmmm","dd-mmm-yyyy","dd-mmm","mmm-yyyy","@","mm/dd","hh:mm:ss AM/PM","hh:mm AM/PM","mm/dd/yyyy","mm/dd","hh:mm:ss","hh:mm"];function r(r,a){if(!r)return r;var n=a||{};null!=T&&null==n.dense&&(n.dense=T);var s={},i="Sheet1",o="",c=0,l={},f=[],h=[],u=[];n.dense&&(u=s["!data"]=[]);var d={s:{r:0,c:0},e:{r:0,c:0}},p=n.sheetRows||0,m={};if(81==r[4]&&80==r[5]&&87==r[6])return function(e,t){Wr(e,0);var r=t||{};null!=T&&null==r.dense&&(r.dense=T);var a={};r.dense&&(a["!data"]=[]);var n=[],s="",i={s:{r:-1,c:-1},e:{r:-1,c:-1}},o=0,c=0,l=0,f=0,h={SheetNames:[],Sheets:{}},u=[];e:for(;e.l<e.length;){var d=e.read_shift(2),p=e.read_shift(2),m=e.slice(e.l,e.l+p);switch(Wr(m,0),d){case 1:if(962023505!=m.read_shift(4))throw"Bad QPW9 BOF!";break;case 2:break e;case 8:case 1025:case 1026:case 1032:default:break;case 10:for(var v=m.read_shift(4),g=(m.length-m.l)/v|0,b=0;b<v;++b){var w=m.l+g,y={};m.l+=2,y.numFmtId=m.read_shift(2),E[y.numFmtId]&&(y.z=E[y.numFmtId]),m.l=w,u.push(y)}break;case 1031:for(m.l+=12;m.l<m.length;)o=m.read_shift(2),c=m.read_shift(1),n.push(m.read_shift(o,"cstr"));break;case 1537:var k=m.read_shift(2);a={},r.dense&&(a["!data"]=[]),i.s.c=m.read_shift(2),i.e.c=m.read_shift(2),i.s.r=m.read_shift(4),i.e.r=m.read_shift(4),m.l+=4,m.l+2<m.length&&(o=m.read_shift(2),c=m.read_shift(1),s=0==o?"":m.read_shift(o,"cstr")),s||(s=Qr(k));break;case 1538:if(i.s.c>255||i.s.r>999999)break;i.e.c<i.s.c&&(i.e.c=i.s.c),i.e.r<i.s.r&&(i.e.r=i.s.r),a["!ref"]=aa(i),Ah(h,a,s);break;case 2561:l=m.read_shift(2),i.e.c<l&&(i.e.c=l),i.s.c>l&&(i.s.c=l),f=m.read_shift(4),i.s.r>f&&(i.s.r=f),f=m.read_shift(4),i.e.r<f&&(i.e.r=f);break;case 3073:f=m.read_shift(4),o=m.read_shift(4),i.s.r>f&&(i.s.r=f),i.e.r<f+o-1&&(i.e.r=f+o-1);for(var S=Qr(l);m.l<m.length;){var x={t:"z"},A=m.read_shift(1),C=-1;128&A&&(C=m.read_shift(2));var O=64&A?m.read_shift(2)-1:0;switch(31&A){case 0:case 1:break;case 2:x={t:"n",v:m.read_shift(2)};break;case 3:x={t:"n",v:m.read_shift(2,"i")};break;case 4:x={t:"n",v:Ca(m)};break;case 5:x={t:"n",v:m.read_shift(8,"f")};break;case 7:x={t:"s",v:n[c=m.read_shift(4)-1]};break;case 8:x={t:"n",v:m.read_shift(8,"f")},m.l+=2,m.l+=4,isNaN(x.v)&&(x={t:"e",v:15});break;default:throw"Unrecognized QPW cell type "+(31&A)}-1!=C&&(u[C-1]||{}).z&&(x.z=u[C-1].z);var R=0;if(32&A)switch(31&A){case 2:case 7:R=m.read_shift(2);break;case 3:R=m.read_shift(2,"i");break;default:throw"Unsupported delta for QPW cell type "+(31&A)}if(r.sheetStubs||"z"!=x.t){var I=Ye(x);"n"==x.t&&x.z&&ve(x.z)&&r.cellDates&&(I.v=He(x.v),I.t="number"==typeof I.v?"n":"d"),null!=a["!data"]?(a["!data"][f]||(a["!data"][f]=[]),a["!data"][f][l]=I):a[S+Jr(f)]=I}for(++f,--o;O-- >0&&o>=0;){if(32&A)switch(31&A){case 2:x={t:"n",v:x.v+R&65535};break;case 3:(x={t:"n",v:x.v+R&65535}).v>32767&&(x.v-=65536);break;case 7:x={t:"s",v:n[c=c+R>>>0]};break;default:throw"Cannot apply delta for QPW cell type "+(31&A)}else switch(31&A){case 1:x={t:"z"};break;case 2:x={t:"n",v:m.read_shift(2)};break;case 7:x={t:"s",v:n[c=m.read_shift(4)-1]};break;default:throw"Cannot apply repeat for QPW cell type "+(31&A)}(r.sheetStubs||"z"!=x.t)&&(null!=a["!data"]?(a["!data"][f]||(a["!data"][f]=[]),a["!data"][f][l]=x):a[S+Jr(f)]=x),++f,--o}}break;case 3074:l=m.read_shift(2),f=m.read_shift(4);var N=_(m);null!=a["!data"]?(a["!data"][f]||(a["!data"][f]=[]),a["!data"][f][l]={t:"s",v:N}):a[Qr(l)+Jr(f)]={t:"s",v:N}}e.l+=p}return h}(r,a);if(0==r[2]&&(8==r[3]||9==r[3])&&r.length>=16&&5==r[14]&&108===r[15])throw new Error("Unsupported Works 3 for Mac file");if(2==r[2])n.Enum=w,e(r,(function(e,r,a){switch(a){case 0:n.vers=e,e>=4096&&(n.qpro=!0);break;case 255:n.vers=e,n.works=!0;break;case 6:d=e;break;case 204:e&&(o=e);break;case 222:o=e;break;case 15:case 51:(!n.qpro&&!n.works||51==a)&&e[1].v.charCodeAt(0)<48&&(e[1].v=e[1].v.slice(1)),(n.works||n.works2)&&(e[1].v=e[1].v.replace(/\r\n/g,"\n"));case 13:case 14:case 16:!(112&~e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=n.dateNF||t[(15&e[2])-1]||X[14],n.cellDates&&(e[1].v=He(e[1].v),e[1].t="number"==typeof e[1].v?"n":"d")),n.qpro&&e[3]>c&&(s["!ref"]=aa(d),l[i]=s,f.push(i),s={},n.dense&&(u=s["!data"]=[]),d={s:{r:0,c:0},e:{r:0,c:0}},c=e[3],i=o||"Sheet"+(c+1),o="");var h=n.dense?(u[e[0].r]||[])[e[0].c]:s[ta(e[0])];if(h){h.t=e[1].t,h.v=e[1].v,null!=e[1].z&&(h.z=e[1].z),null!=e[1].f&&(h.f=e[1].f),m=h;break}n.dense?(u[e[0].r]||(u[e[0].r]=[]),u[e[0].r][e[0].c]=e[1]):s[ta(e[0])]=e[1],m=e[1];break;case 21509:n.works2=!0;break;case 21506:5281==e&&(m.z="hh:mm:ss",n.cellDates&&"n"==m.t&&(m.v=He(m.v),m.t="number"==typeof m.v?"n":"d"))}}),n);else{if(26!=r[2]&&14!=r[2])throw new Error("Unrecognized LOTUS BOF "+r[2]);n.Enum=y,14==r[2]&&(n.qpro=!0,r.l=0),e(r,(function(e,t,r){switch(r){case 204:i=e;break;case 22:e[1].v.charCodeAt(0)<48&&(e[1].v=e[1].v.slice(1)),e[1].v=e[1].v.replace(/\x0F./g,(function(e){return String.fromCharCode(e.charCodeAt(1)-32)})).replace(/\r\n/g,"\n");case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>c&&(s["!ref"]=aa(d),l[i]=s,f.push(i),s={},n.dense&&(u=s["!data"]=[]),d={s:{r:0,c:0},e:{r:0,c:0}},c=e[3],i="Sheet"+(c+1)),p>0&&e[0].r>=p)break;n.dense?(u[e[0].r]||(u[e[0].r]=[]),u[e[0].r][e[0].c]=e[1]):s[ta(e[0])]=e[1],d.e.c<e[0].c&&(d.e.c=e[0].c),d.e.r<e[0].r&&(d.e.r=e[0].r);break;case 27:e[14e3]&&(h[e[14e3][0]]=e[14e3][1]);break;case 1537:h[e[0]]=e[1],e[0]==c&&(i=e[1])}}),n)}if(s["!ref"]=aa(d),l[o||i]=s,f.push(o||i),!h.length)return{SheetNames:f,Sheets:l};for(var v={},g=[],b=0;b<h.length;++b)l[f[b]]?(g.push(h[b]||f[b]),v[h[b]]=l[h[b]]||l[f[b]]):(g.push(h[b]),v[h[b]]={"!ref":"A1"});return{SheetNames:g,Sheets:v}}function a(e,t,r){var a=[{c:0,r:0},{t:"n",v:0},0,0];return r.qpro&&20768!=r.vers?(a[0].c=e.read_shift(1),a[3]=e.read_shift(1),a[0].r=e.read_shift(2),e.l+=2):r.works?(a[0].c=e.read_shift(2),a[0].r=e.read_shift(2),a[2]=e.read_shift(2)):(a[2]=e.read_shift(1),a[0].c=e.read_shift(2),a[0].r=e.read_shift(2)),a}function n(e){return e.z&&ve(e.z)?240|(t.indexOf(e.z)+1||2):255}function s(e,t,r){var a=Hr(7+r.length);a.write_shift(1,255),a.write_shift(2,t),a.write_shift(2,e),a.write_shift(1,39);for(var n=0;n<a.length;++n){var s=r.charCodeAt(n);a.write_shift(1,s>=128?95:s)}return a.write_shift(1,0),a}function i(e,t,r){var a=Hr(7);return a.write_shift(1,n(r)),a.write_shift(2,t),a.write_shift(2,e),a.write_shift(2,r.v,"i"),a}function o(e,t,r){var a=Hr(13);return a.write_shift(1,n(r)),a.write_shift(2,t),a.write_shift(2,e),a.write_shift(8,r.v,"f"),a}function c(e,t,r){var a=32768&t;return t=(a?e:0)+((t&=-32769)>=8192?t-16384:t),(a?"":"$")+(r?Qr(t):Jr(t))}var l={31:["NA",0],33:["ABS",1],34:["TRUNC",1],35:["SQRT",1],36:["LOG",1],37:["LN",1],38:["PI",0],39:["SIN",1],40:["COS",1],41:["TAN",1],42:["ATAN2",2],43:["ATAN",1],44:["ASIN",1],45:["ACOS",1],46:["EXP",1],47:["MOD",2],49:["ISNA",1],50:["ISERR",1],51:["FALSE",0],52:["TRUE",0],53:["RAND",0],54:["DATE",3],63:["ROUND",2],64:["TIME",3],68:["ISNUMBER",1],69:["ISTEXT",1],70:["LEN",1],71:["VALUE",1],73:["MID",3],74:["CHAR",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],102:["UPPER",1],103:["LOWER",1],107:["PROPER",1],109:["TRIM",1],111:["T",1]},f=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function u(e){var t=[{c:0,r:0},{t:"n",v:0},0];return t[0].r=e.read_shift(2),t[3]=e[e.l++],t[0].c=e[e.l++],t}function d(e,t,r,a){var n=Hr(6+a.length);n.write_shift(2,e),n.write_shift(1,r),n.write_shift(1,t),n.write_shift(1,39);for(var s=0;s<a.length;++s){var i=a.charCodeAt(s);n.write_shift(1,i>=128?95:i)}return n.write_shift(1,0),n}function p(e,t){var r=u(e),a=e.read_shift(4),n=e.read_shift(4),s=e.read_shift(2);if(65535==s)return 0===a&&3221225472===n?(r[1].t="e",r[1].v=15):0===a&&3489660928===n?(r[1].t="e",r[1].v=42):r[1].v=0,r;var i=32768&s;return s=(32767&s)-16446,r[1].v=(1-2*i)*(n*Math.pow(2,s+32)+a*Math.pow(2,s)),r}function m(e,t,r,a){var n=Hr(14);if(n.write_shift(2,e),n.write_shift(1,r),n.write_shift(1,t),0==a)return n.write_shift(4,0),n.write_shift(4,0),n.write_shift(2,65535),n;var s,i=0,o=0,c=0;return a<0&&(i=1,a=-a),o=0|Math.log2(a),2147483648&(c=(a/=Math.pow(2,o-31))>>>0)||(++o,c=(a/=2)>>>0),a-=c,c|=2147483648,c>>>=0,s=(a*=Math.pow(2,32))>>>0,n.write_shift(4,s),n.write_shift(4,c),o+=16383+(i?32768:0),n.write_shift(2,o),n}function v(e,t){var r=u(e),a=e.read_shift(8,"f");return r[1].v=a,r}function g(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function b(e,t){var r=Hr(5+e.length);r.write_shift(2,14e3),r.write_shift(2,t);for(var a=0;a<e.length;++a){var n=e.charCodeAt(a);r[r.l++]=n>127?95:n}return r[r.l++]=0,r}var w={0:{n:"BOF",f:Vn},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,r){var a={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&r.qpro?(a.s.c=e.read_shift(1),e.l++,a.s.r=e.read_shift(2),a.e.c=e.read_shift(1),e.l++,a.e.r=e.read_shift(2),a):(a.s.c=e.read_shift(2),a.s.r=e.read_shift(2),12==t&&r.qpro&&(e.l+=2),a.e.c=e.read_shift(2),a.e.r=e.read_shift(2),12==t&&r.qpro&&(e.l+=2),65535==a.s.c&&(a.s.c=a.e.c=a.s.r=a.e.r=0),a)}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(e,t,r){var n=a(e,0,r);return n[1].v=e.read_shift(2,"i"),n}},14:{n:"NUMBER",f:function(e,t,r){var n=a(e,0,r);return n[1].v=e.read_shift(8,"f"),n}},15:{n:"LABEL",f:function(e,t,r){var n=e.l+t,s=a(e,0,r);if(s[1].t="s",20768==(65534&r.vers)){e.l++;var i=e.read_shift(1);return s[1].v=e.read_shift(i,"utf8"),s}return r.qpro&&e.l++,s[1].v=e.read_shift(n-e.l,"cstr"),s}},16:{n:"FORMULA",f:function(e,t,r){var n=e.l+t,s=a(e,0,r);if(s[1].v=e.read_shift(8,"f"),r.qpro)e.l=n;else{var i=e.read_shift(2);!function(e,t){Wr(e,0);for(var r=[],a=0,n="",s="",i="",o="";e.l<e.length;){var h=e[e.l++];switch(h){case 0:r.push(e.read_shift(8,"f"));break;case 1:s=c(t[0].c,e.read_shift(2),!0),n=c(t[0].r,e.read_shift(2),!1),r.push(s+n);break;case 2:var u=c(t[0].c,e.read_shift(2),!0),d=c(t[0].r,e.read_shift(2),!1);s=c(t[0].c,e.read_shift(2),!0),n=c(t[0].r,e.read_shift(2),!1),r.push(u+d+":"+s+n);break;case 3:if(e.l<e.length)return void console.error("WK1 premature formula end");break;case 4:r.push("("+r.pop()+")");break;case 5:r.push(e.read_shift(2));break;case 6:for(var p="";h=e[e.l++];)p+=String.fromCharCode(h);r.push('"'+p.replace(/"/g,'""')+'"');break;case 8:r.push("-"+r.pop());break;case 23:r.push("+"+r.pop());break;case 22:r.push("NOT("+r.pop()+")");break;case 20:case 21:o=r.pop(),i=r.pop(),r.push(["AND","OR"][h-20]+"("+i+","+o+")");break;default:if(h<32&&f[h])o=r.pop(),i=r.pop(),r.push(i+f[h]+o);else{if(!l[h])return h<=7?console.error("WK1 invalid opcode "+h.toString(16)):h<=24?console.error("WK1 unsupported op "+h.toString(16)):h<=30?console.error("WK1 invalid opcode "+h.toString(16)):h<=115?console.error("WK1 unsupported function opcode "+h.toString(16)):console.error("WK1 unrecognized opcode "+h.toString(16));if(69==(a=l[h][1])&&(a=e[e.l++]),a>r.length)return void console.error("WK1 bad formula parse 0x"+h.toString(16)+":|"+r.join("|")+"|");var m=r.slice(-a);r.length-=a,r.push(l[h][0]+"("+m.join(",")+")")}}}1==r.length?t[1].f=""+r[0]:console.error("WK1 bad formula parse |"+r.join("|")+"|")}(e.slice(e.l,e.l+i),s),e.l+=i}return s}},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:function(e,t,r){var n=e.l+t,s=a(e,0,r);if(s[1].t="s",20768==r.vers){var i=e.read_shift(1);return s[1].v=e.read_shift(i,"utf8"),s}return s[1].v=e.read_shift(n-e.l,"cstr"),s}},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:g},222:{n:"SHEETNAMELP",f:function(e,t){var r=e[e.l++];r>t-1&&(r=t-1);for(var a="";a.length<r;)a+=String.fromCharCode(e[e.l++]);return a}},255:{n:"BOF",f:Vn},21506:{n:"WKSNF",f:Vn},65535:{n:""}},y={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:function(e,t){var r=u(e);return r[1].t="s",r[1].v=e.read_shift(t-4,"cstr"),r}},23:{n:"NUMBER17",f:p},24:{n:"NUMBER18",f:function(e,t){var r=u(e);r[1].v=e.read_shift(2);var a=r[1].v>>1;if(1&r[1].v)switch(7&a){case 0:a=5e3*(a>>3);break;case 1:a=500*(a>>3);break;case 2:a=(a>>3)/20;break;case 3:a=(a>>3)/200;break;case 4:a=(a>>3)/2e3;break;case 5:a=(a>>3)/2e4;break;case 6:a=(a>>3)/16;break;case 7:a=(a>>3)/64}return r[1].v=a,r}},25:{n:"FORMULA19",f:function(e,t){var r=p(e);return e.l+=t-14,r}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var r={},a=e.l+t;e.l<a;){var n=e.read_shift(2);if(14e3==n){for(r[n]=[0,""],r[n][0]=e.read_shift(2);e[e.l];)r[n][1]+=String.fromCharCode(e[e.l]),e.l++;e.l++}}return r}},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:function(e,t){var r=u(e),a=e.read_shift(4);return r[1].v=a>>6,r}},38:{n:"??"},39:{n:"NUMBER27",f:v},40:{n:"FORMULA28",f:function(e,t){var r=v(e);return e.l+=t-12,r}},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:g},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:function(e,t,r){if(r.qpro&&!(t<21)){var a=e.read_shift(1);return e.l+=17,e.l+=1,e.l+=2,[a,e.read_shift(t-21,"cstr")]}}},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:""}},E={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:"# ?/?"};function _(e){var t=e.read_shift(2),r=e.read_shift(1);if(0!=r)throw"unsupported QPW string type "+r.toString(16);return e.read_shift(t,"sbcs-cont")}return{sheet_to_wk1:function(e,t){var r=t||{};if(+r.codepage>=0&&h(+r.codepage),"string"==r.type)throw new Error("Cannot write WK1 to JS string");var a=$r();if(!e["!ref"])throw new Error("Cannot export empty sheet to WK1");var n,c=ia(e["!ref"]),l=null!=e["!data"],f=[];Rl(a,0,(1030,(n=Hr(2)).write_shift(2,1030),n)),Rl(a,6,function(e){var t=Hr(8);return t.write_shift(2,e.s.c),t.write_shift(2,e.s.r),t.write_shift(2,e.e.c),t.write_shift(2,e.e.r),t}(c));for(var u=Math.min(c.e.r,8191),d=c.s.c;d<=c.e.c;++d)f[d]=Qr(d);for(var p=c.s.r;p<=u;++p){var m=Jr(p);for(d=c.s.c;d<=c.e.c;++d){var v=l?(e["!data"][p]||[])[d]:e[f[d]+m];if(v&&"z"!=v.t)switch(v.t){case"n":(0|v.v)==v.v&&v.v>=-32768&&v.v<=32767?Rl(a,13,i(p,d,v)):Rl(a,14,o(p,d,v));break;case"d":var g=ze(v.v);(0|g)==g&&g>=-32768&&g<=32767?Rl(a,13,i(p,d,{t:"n",v:g,z:v.z||X[14]})):Rl(a,14,o(p,d,{t:"n",v:g,z:v.z||X[14]}));break;default:Rl(a,15,s(p,d,oa(v).slice(0,239)))}}}return Rl(a,1),a.end()},book_to_wk3:function(e,t){var r=t||{};if(+r.codepage>=0&&h(+r.codepage),"string"==r.type)throw new Error("Cannot write WK3 to JS string");var a=$r();Rl(a,0,function(e){var t=Hr(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var r=0,a=0,n=0,s=0;s<e.SheetNames.length;++s){var i=e.SheetNames[s],o=e.Sheets[i];if(o&&o["!ref"]){++n;var c=ra(o["!ref"]);r<c.e.r&&(r=c.e.r),a<c.e.c&&(a=c.e.c)}}return r>8191&&(r=8191),t.write_shift(2,r),t.write_shift(1,n),t.write_shift(1,a),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,1),t.write_shift(1,2),t.write_shift(4,0),t.write_shift(4,0),t}(e));for(var n=0,s=0;n<e.SheetNames.length;++n)(e.Sheets[e.SheetNames[n]]||{})["!ref"]&&Rl(a,27,b(e.SheetNames[n],s++));var i=0;for(n=0;n<e.SheetNames.length;++n){var o=e.Sheets[e.SheetNames[n]];if(o&&o["!ref"]){for(var c=ia(o["!ref"]),l=null!=o["!data"],f=[],u=Math.min(c.e.r,8191),p=c.s.r;p<=u;++p)for(var v=Jr(p),g=c.s.c;g<=c.e.c;++g){p===c.s.r&&(f[g]=Qr(g));var w=f[g]+v,T=l?(o["!data"][p]||[])[g]:o[w];T&&"z"!=T.t&&("n"==T.t?Rl(a,23,m(p,g,i,T.v)):Rl(a,22,d(p,g,i,oa(T).slice(0,239))))}++i}}return Rl(a,1),a.end()},to_workbook:function(e,t){switch(t.type){case"base64":return r(O(k(e)),t);case"binary":return r(O(e),t);case"buffer":case"array":return r(e,t)}throw"Unsupported type "+t.type}}}(),Zs=function(){var e=$t("t"),t=$t("rPr");function r(r){var a=r.match(e);if(!a)return{t:"s",v:""};var n={t:"s",v:Ot(a[1])},s=r.match(t);return s&&(n.s=function(e){var t={},r=e.match(Et),a=0,n=!1;if(r)for(;a!=r.length;++a){var s=St(r[a]);switch(s[0].replace(/\w*:/g,"")){case"<condense":case"<extend":break;case"<shadow":if(!s.val)break;case"<shadow>":case"<shadow/>":t.shadow=1;break;case"</shadow>":break;case"<charset":if("1"==s.val)break;t.cp=l[parseInt(s.val,10)];break;case"<outline":if(!s.val)break;case"<outline>":case"<outline/>":t.outline=1;break;case"</outline>":break;case"<rFont":t.name=s.val;break;case"<sz":t.sz=s.val;break;case"<strike":if(!s.val)break;case"<strike>":case"<strike/>":t.strike=1;break;case"</strike>":break;case"<u":if(!s.val)break;switch(s.val){case"double":t.uval="double";break;case"singleAccounting":t.uval="single-accounting";break;case"doubleAccounting":t.uval="double-accounting"}case"<u>":case"<u/>":t.u=1;break;case"</u>":break;case"<b":if("0"==s.val)break;case"<b>":case"<b/>":t.b=1;break;case"</b>":break;case"<i":if("0"==s.val)break;case"<i>":case"<i/>":t.i=1;break;case"</i>":break;case"<color":s.rgb&&(t.color=s.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":t.family=s.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":t.valign=s.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":case"<scheme":case"<scheme>":case"<scheme/>":case"</scheme>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(47!==s[0].charCodeAt(1)&&!n)throw new Error("Unrecognized rich format "+s[0])}}return t}(s[1])),n}var a=/<(?:\w+:)?r>/g,n=/<\/(?:\w+:)?r>/;return function(e){return e.replace(a,"").split(n).map(r).filter((function(e){return e.v}))}}(),Js=function(){var e=/(\r\n|\n)/g;function t(t){var r=[[],t.v,[]];return t.v?(t.s&&function(e,t,r){var a=[];e.u&&a.push("text-decoration: underline;"),e.uval&&a.push("text-underline-style:"+e.uval+";"),e.sz&&a.push("font-size:"+e.sz+"pt;"),e.outline&&a.push("text-effect: outline;"),e.shadow&&a.push("text-shadow: auto;"),t.push('<span style="'+a.join("")+'">'),e.b&&(t.push("<b>"),r.push("</b>")),e.i&&(t.push("<i>"),r.push("</i>")),e.strike&&(t.push("<s>"),r.push("</s>"));var n=e.valign||"";"superscript"==n||"super"==n?n="sup":"subscript"==n&&(n="sub"),""!=n&&(t.push("<"+n+">"),r.push("</"+n+">")),r.push("</span>")}(t.s,r[0],r[2]),r[0].join("")+r[1].replace(e,"<br/>")+r[2].join("")):""}return function(e){return e.map(t).join("")}}(),qs=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,Qs=/<(?:\w+:)?r\b[^>]*>/,ei=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function ti(e,t){var r=!t||t.cellHTML,a={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(a.t=Ot(Ht(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||""),!0),a.r=Ht(e),r&&(a.h=Pt(a.t))):e.match(Qs)&&(a.r=Ht(e),a.t=Ot(Ht((e.replace(ei,"").match(qs)||[]).join("").replace(Et,"")),!0),r&&(a.h=Js(Zs(a.r)))),a):{t:""}}var ri=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,ai=/<(?:\w+:)?(?:si|sstItem)>/g,ni=/<\/(?:\w+:)?(?:si|sstItem)>/,si=/^\s|\s$|[\t\n\r]/,ii=function(e,t){var r=!1;return null==t&&(r=!0,t=Hr(15+4*e.t.length)),t.write_shift(1,0),da(e.t,t),r?t.slice(0,t.l):t};function oi(e){if(void 0!==a)return a.utils.encode(o,e);for(var t=[],r=e.split(""),n=0;n<r.length;++n)t[n]=r[n].charCodeAt(0);return t}function ci(e,t){var r={};return r.Major=e.read_shift(2),r.Minor=e.read_shift(2),t>=4&&(e.l+=t-4),r}function li(e){for(var t=e.read_shift(4),r=e.l+t-4,a={},n=e.read_shift(4),s=[];n-- >0;)s.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(a.name=e.read_shift(0,"lpp4"),a.comps=s,e.l!=r)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+r);return a}function fi(e,t){var r=e.l+t,a={};a.Flags=63&e.read_shift(4),e.l+=4,a.AlgID=e.read_shift(4);var n=!1;switch(a.AlgID){case 26126:case 26127:case 26128:n=36==a.Flags;break;case 26625:n=4==a.Flags;break;case 0:n=16==a.Flags||4==a.Flags||36==a.Flags;break;default:throw"Unrecognized encryption algorithm: "+a.AlgID}if(!n)throw new Error("Encryption Flags/AlgID mismatch");return a.AlgIDHash=e.read_shift(4),a.KeySize=e.read_shift(4),a.ProviderType=e.read_shift(4),e.l+=8,a.CSPName=e.read_shift(r-e.l>>1,"utf16le"),e.l=r,a}function hi(e,t){var r={},a=e.l+t;return e.l+=4,r.Salt=e.slice(e.l,e.l+16),e.l+=16,r.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),r.VerifierHash=e.slice(e.l,a),e.l=a,r}function ui(e){if(36!=(63&e.read_shift(4)))throw new Error("EncryptionInfo mismatch");var t=e.read_shift(4);return{t:"Std",h:fi(e,t),v:hi(e,e.length-e.l)}}function di(){throw new Error("File is password-protected: ECMA-376 Extensible")}function pi(e){var t=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var r=e.read_shift(e.length-e.l,"utf8"),a={};return r.replace(Et,(function(e){var r=St(e);switch(xt(r[0])){case"<?xml":case"<encryption":case"</encryption>":case"</keyEncryptors>":case"</keyEncryptor>":break;case"<keyData":t.forEach((function(e){a[e]=r[e]}));break;case"<dataIntegrity":a.encryptedHmacKey=r.encryptedHmacKey,a.encryptedHmacValue=r.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":a.encs=[];break;case"<keyEncryptor":a.uri=r.uri;break;case"<encryptedKey":a.encs.push(r);break;default:throw r[0]}})),a}function mi(e){var t,r,a=0,n=oi(e),s=n.length+1;for((t=A(s))[0]=n.length,r=1;r!=s;++r)t[r]=n[r-1];for(r=s-1;r>=0;--r)a=((16384&a?1:0)|a<<1&32767)^t[r];return 52811^a}var vi=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],t=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],r=[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],a=function(e,t){return 255&((r=e^t)/2|128*r);var r};return function(n){for(var s,i,o,c=oi(n),l=function(e){for(var a=t[e.length-1],n=104,s=e.length-1;s>=0;--s)for(var i=e[s],o=0;7!=o;++o)64&i&&(a^=r[n]),i*=2,--n;return a}(c),f=c.length,h=A(16),u=0;16!=u;++u)h[u]=0;for(1&~f||(s=l>>8,h[f]=a(e[0],s),--f,s=255&l,i=c[c.length-1],h[f]=a(i,s));f>0;)s=l>>8,h[--f]=a(c[f],s),s=255&l,h[--f]=a(c[f],s);for(f=15,o=15-c.length;o>0;)s=l>>8,h[f]=a(e[o],s),--o,s=255&l,h[--f]=a(c[f],s),--f,--o;return h}}();function gi(e,t){var r=t||{},a={},n=r.dense;n&&(a["!data"]=[]);var s=e.match(/\\trowd[\s\S]*?\\row\b/g);if(!s)throw new Error("RTF missing table");var i={s:{c:0,r:0},e:{c:0,r:s.length-1}},o=[];return s.forEach((function(e,t){n&&(o=a["!data"][t]=[]);for(var s,c=/\\[\w\-]+\b/g,l=0,f=-1,h=[];null!=(s=c.exec(e));){var u=e.slice(l,c.lastIndex-s[0].length);switch(32==u.charCodeAt(0)&&(u=u.slice(1)),u.length&&h.push(u),s[0]){case"\\cell":if(++f,h.length){var d={v:h.join(""),t:"s"};"TRUE"==d.v||"FALSE"==d.v?(d.v="TRUE"==d.v,d.t="b"):isNaN(Je(d.v))||(d.t="n",!1!==r.cellText&&(d.w=d.v),d.v=Je(d.v)),n?o[f]=d:a[ta({r:t,c:f})]=d}h=[];break;case"\\par":h.push("\n")}l=c.lastIndex}f>i.e.c&&(i.e.c=f)})),a["!ref"]=aa(i),a}function bi(e){for(var t=0,r=1;3!=t;++t)r=256*r+(e[t]>255?255:e[t]<0?0:e[t]);return r.toString(16).toUpperCase().slice(1)}function wi(e,t){if(0===t)return e;var r,a,n=function(e){var t=e[0]/255,r=e[1]/255,a=e[2]/255,n=Math.max(t,r,a),s=Math.min(t,r,a),i=n-s;if(0===i)return[0,0,t];var o,c=0,l=n+s;switch(o=i/(l>1?2-l:l),n){case t:c=((r-a)/i+6)%6;break;case r:c=(a-t)/i+2;break;case a:c=(t-r)/i+4}return[c/6,o,l/2]}((a=(r=e).slice("#"===r[0]?1:0).slice(0,6),[parseInt(a.slice(0,2),16),parseInt(a.slice(2,4),16),parseInt(a.slice(4,6),16)]));return n[2]=t<0?n[2]*(1+t):1-(1-n[2])*(1-t),bi(function(e){var t,r=e[0],a=e[1],n=e[2],s=2*a*(n<.5?n:1-n),i=n-s/2,o=[i,i,i],c=6*r;if(0!==a)switch(0|c){case 0:case 6:t=s*c,o[0]+=s,o[1]+=t;break;case 1:t=s*(2-c),o[0]+=t,o[1]+=s;break;case 2:t=s*(c-2),o[1]+=s,o[2]+=t;break;case 3:t=s*(4-c),o[1]+=t,o[2]+=s;break;case 4:t=s*(c-4),o[2]+=s,o[0]+=t;break;case 5:t=s*(6-c),o[2]+=t,o[0]+=s}for(var l=0;3!=l;++l)o[l]=Math.round(255*o[l]);return o}(n))}var Ti=6,yi=15,Ei=1,ki=Ti;function _i(e){return Math.floor((e+Math.round(128/ki)/256)*ki)}function Si(e){return Math.floor((e-5)/ki*100+.5)/100}function xi(e){return Math.round((e*ki+5)/ki*256)/256}function Ai(e){return xi(Si(_i(e)))}function Ci(e){var t=Math.abs(e-Ai(e)),r=ki;if(t>.005)for(ki=Ei;ki<yi;++ki)Math.abs(e-Ai(e))<=t&&(t=Math.abs(e-Ai(e)),r=ki);ki=r}function Oi(e){e.width?(e.wpx=_i(e.width),e.wch=Si(e.wpx),e.MDW=ki):e.wpx?(e.wch=Si(e.wpx),e.width=xi(e.wch),e.MDW=ki):"number"==typeof e.wch&&(e.width=xi(e.wch),e.wpx=_i(e.width),e.MDW=ki),e.customWidth&&delete e.customWidth}var Ri=96;function Ii(e){return 96*e/Ri}function Ni(e){return e*Ri/96}var Fi={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"},Di=["numFmtId","fillId","fontId","borderId","xfId"],Pi=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"],Mi=function(){var e=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,r=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,a=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,n=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(s,i,o){var c,f={};return s?((c=(s=s.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"")).match(e))&&function(e,t,r){t.NumberFmt=[];for(var a=De(X),n=0;n<a.length;++n)t.NumberFmt[a[n]]=X[a[n]];var s=e[0].match(Et);if(s)for(n=0;n<s.length;++n){var i=St(s[n]);switch(xt(i[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":case"</numFmt>":break;case"<numFmt":var o=Ot(Ht(i.formatCode)),c=parseInt(i.numFmtId,10);if(t.NumberFmt[c]=o,c>0){if(c>392){for(c=392;c>60&&null!=t.NumberFmt[c];--c);t.NumberFmt[c]=o}Ae(o,c)}break;default:if(r.WTF)throw new Error("unrecognized "+i[0]+" in numFmts")}}}(c,f,o),(c=s.match(a))&&function(e,t,r,a){t.Fonts=[];var n={},s=!1;(e[0].match(Et)||[]).forEach((function(e){var i=St(e);switch(xt(i[0])){case"<fonts":case"<fonts>":case"</fonts>":case"<font":case"<font>":case"<name/>":case"</name>":case"<sz/>":case"</sz>":case"<vertAlign/>":case"</vertAlign>":case"<family/>":case"</family>":case"<scheme/>":case"</scheme>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"</font>":case"<font/>":t.Fonts.push(n),n={};break;case"<name":i.val&&(n.name=Ht(i.val));break;case"<b":n.bold=i.val?Lt(i.val):1;break;case"<b/>":n.bold=1;break;case"<i":n.italic=i.val?Lt(i.val):1;break;case"<i/>":n.italic=1;break;case"<u":switch(i.val){case"none":n.underline=0;break;case"single":n.underline=1;break;case"double":n.underline=2;break;case"singleAccounting":n.underline=33;break;case"doubleAccounting":n.underline=34}break;case"<u/>":n.underline=1;break;case"<strike":n.strike=i.val?Lt(i.val):1;break;case"<strike/>":n.strike=1;break;case"<outline":n.outline=i.val?Lt(i.val):1;break;case"<outline/>":n.outline=1;break;case"<shadow":n.shadow=i.val?Lt(i.val):1;break;case"<shadow/>":n.shadow=1;break;case"<condense":n.condense=i.val?Lt(i.val):1;break;case"<condense/>":n.condense=1;break;case"<extend":n.extend=i.val?Lt(i.val):1;break;case"<extend/>":n.extend=1;break;case"<sz":i.val&&(n.sz=+i.val);break;case"<vertAlign":i.val&&(n.vertAlign=i.val);break;case"<family":i.val&&(n.family=parseInt(i.val,10));break;case"<scheme":i.val&&(n.scheme=i.val);break;case"<charset":if("1"==i.val)break;i.codepage=l[parseInt(i.val,10)];break;case"<color":if(n.color||(n.color={}),i.auto&&(n.color.auto=Lt(i.auto)),i.rgb)n.color.rgb=i.rgb.slice(-6);else if(i.indexed){n.color.index=parseInt(i.indexed,10);var o=Ka[n.color.index];81==n.color.index&&(o=Ka[1]),o||(o=Ka[1]),n.color.rgb=o[0].toString(16)+o[1].toString(16)+o[2].toString(16)}else i.theme&&(n.color.theme=parseInt(i.theme,10),i.tint&&(n.color.tint=parseFloat(i.tint)),i.theme&&r.themeElements&&r.themeElements.clrScheme&&(n.color.rgb=wi(r.themeElements.clrScheme[n.color.theme].rgb,n.color.tint||0)));break;case"<AlternateContent":case"<ext":s=!0;break;case"</AlternateContent>":case"</ext>":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+i[0]+" in fonts")}}))}(c,f,i,o),(c=s.match(r))&&function(e,t,r,a){t.Fills=[];var n={},s=!1;(e[0].match(Et)||[]).forEach((function(e){var r=St(e);switch(xt(r[0])){case"<fills":case"<fills>":case"</fills>":case"</fill>":case"<gradientFill>":case"<patternFill/>":case"</patternFill>":case"<bgColor/>":case"</bgColor>":case"<fgColor/>":case"</fgColor>":case"<stop":case"<stop/>":case"</stop>":case"<color":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<fill>":case"<fill":case"<fill/>":n={},t.Fills.push(n);break;case"<gradientFill":case"</gradientFill>":t.Fills.push(n),n={};break;case"<patternFill":case"<patternFill>":r.patternType&&(n.patternType=r.patternType);break;case"<bgColor":n.bgColor||(n.bgColor={}),r.indexed&&(n.bgColor.indexed=parseInt(r.indexed,10)),r.theme&&(n.bgColor.theme=parseInt(r.theme,10)),r.tint&&(n.bgColor.tint=parseFloat(r.tint)),r.rgb&&(n.bgColor.rgb=r.rgb.slice(-6));break;case"<fgColor":n.fgColor||(n.fgColor={}),r.theme&&(n.fgColor.theme=parseInt(r.theme,10)),r.tint&&(n.fgColor.tint=parseFloat(r.tint)),null!=r.rgb&&(n.fgColor.rgb=r.rgb.slice(-6));break;case"<ext":s=!0;break;case"</ext>":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+r[0]+" in fills")}}))}(c,f,0,o),(c=s.match(n))&&function(e,t,r,a){t.Borders=[];var n={},s=!1;(e[0].match(Et)||[]).forEach((function(e){var r=St(e);switch(xt(r[0])){case"<borders":case"<borders>":case"</borders>":case"</border>":case"<left/>":case"<left":case"<left>":case"</left>":case"<right/>":case"<right":case"<right>":case"</right>":case"<top/>":case"<top":case"<top>":case"</top>":case"<bottom/>":case"<bottom":case"<bottom>":case"</bottom>":case"<diagonal":case"<diagonal>":case"<diagonal/>":case"</diagonal>":case"<horizontal":case"<horizontal>":case"<horizontal/>":case"</horizontal>":case"<vertical":case"<vertical>":case"<vertical/>":case"</vertical>":case"<start":case"<start>":case"<start/>":case"</start>":case"<end":case"<end>":case"<end/>":case"</end>":case"<color":case"<color>":case"<color/>":case"</color>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<border":case"<border>":case"<border/>":n={},r.diagonalUp&&(n.diagonalUp=Lt(r.diagonalUp)),r.diagonalDown&&(n.diagonalDown=Lt(r.diagonalDown)),t.Borders.push(n);break;case"<ext":s=!0;break;case"</ext>":s=!1;break;default:if(a&&a.WTF&&!s)throw new Error("unrecognized "+r[0]+" in borders")}}))}(c,f,0,o),(c=s.match(t))&&function(e,t,r){var a;t.CellXf=[];var n=!1;(e[0].match(Et)||[]).forEach((function(e){var s=St(e),i=0;switch(xt(s[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":case"</xf>":case"</alignment>":case"<protection":case"<protection>":case"</protection>":case"<protection/>":case"<extLst":case"<extLst>":case"</extLst>":break;case"<xf":case"<xf/>":case"<xf>":for(delete(a=s)[0],i=0;i<Di.length;++i)a[Di[i]]&&(a[Di[i]]=parseInt(a[Di[i]],10));for(i=0;i<Pi.length;++i)a[Pi[i]]&&(a[Pi[i]]=Lt(a[Pi[i]]));if(t.NumberFmt&&a.numFmtId>392)for(i=392;i>60;--i)if(t.NumberFmt[a.numFmtId]==t.NumberFmt[i]){a.numFmtId=i;break}t.CellXf.push(a);break;case"<alignment":case"<alignment/>":case"<alignment>":var o={};s.vertical&&(o.vertical=s.vertical),s.horizontal&&(o.horizontal=s.horizontal),null!=s.textRotation&&(o.textRotation=s.textRotation),s.indent&&(o.indent=s.indent),s.wrapText&&(o.wrapText=Lt(s.wrapText)),a.alignment=o;break;case"<AlternateContent":case"<AlternateContent>":case"<ext":n=!0;break;case"</AlternateContent>":case"</ext>":n=!1;break;default:if(r&&r.WTF&&!n)throw new Error("unrecognized "+s[0]+" in cellXfs")}}))}(c,f,o),f):f}}();function Li(e,t,r){r||(r=Hr(6+4*t.length)),r.write_shift(2,e),da(t,r);var a=r.length>r.l?r.slice(0,r.l):r;return null==r.l&&(r.l=r.length),a}var Ui,Bi=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Wi=zr;function zi(e,t){t||(t=Hr(84)),Ui||(Ui=Me(Bi));var r=Ui[e.patternType];null==r&&(r=40),t.write_shift(4,r);var a=0;if(40!=r)for(Pa({auto:1},t),Pa({auto:1},t);a<12;++a)t.write_shift(4,0);else{for(;a<4;++a)t.write_shift(4,0);for(;a<12;++a)t.write_shift(4,0)}return t.length>t.l?t.slice(0,t.l):t}function Hi(e,t,r){return r||(r=Hr(16)),r.write_shift(2,t||0),r.write_shift(2,e.numFmtId||0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(1,0),r}function Vi(e,t){return t||(t=Hr(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var $i=zr;function Gi(e,t){var r=$r();return Gr(r,278),function(e,t){if(t){var r=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(e){for(var a=e[0];a<=e[1];++a)null!=t[a]&&++r})),0!=r&&(Gr(e,615,ha(r)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var a=r[0];a<=r[1];++a)null!=t[a]&&Gr(e,44,Li(a,t[a]))})),Gr(e,616))}}(r,e.SSF),function(e){Gr(e,611,ha(1)),Gr(e,43,function(e,t){t||(t=Hr(153)),t.write_shift(2,20*e.sz),function(e,t){t||(t=Hr(2));var r=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);t.write_shift(1,r),t.write_shift(1,0)}(e,t),t.write_shift(2,e.bold?700:400);var r=0;"superscript"==e.vertAlign?r=1:"subscript"==e.vertAlign&&(r=2),t.write_shift(2,r),t.write_shift(1,e.underline||0),t.write_shift(1,e.family||0),t.write_shift(1,e.charset||0),t.write_shift(1,0),Pa(e.color,t);var a=0;return"major"==e.scheme&&(a=1),"minor"==e.scheme&&(a=2),t.write_shift(1,a),da(e.name,t),t.length>t.l?t.slice(0,t.l):t}({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Gr(e,612)}(r),function(e){Gr(e,603,ha(2)),Gr(e,45,zi({patternType:"none"})),Gr(e,45,zi({patternType:"gray125"})),Gr(e,604)}(r),function(e){var t;Gr(e,613,ha(1)),Gr(e,46,(t||(t=Hr(51)),t.write_shift(1,0),Vi(0,t),Vi(0,t),Vi(0,t),Vi(0,t),Vi(0,t),t.length>t.l?t.slice(0,t.l):t)),Gr(e,614)}(r),function(e){Gr(e,626,ha(1)),Gr(e,47,Hi({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Gr(e,627)}(r),function(e,t){Gr(e,617,ha(t.length)),t.forEach((function(t){Gr(e,47,Hi(t,0))})),Gr(e,618)}(r,t.cellXfs),function(e){var t,r;Gr(e,619,ha(1)),Gr(e,48,(t={xfId:0,builtinId:0,name:"Normal"},r||(r=Hr(52)),r.write_shift(4,t.xfId),r.write_shift(2,1),r.write_shift(1,+t.builtinId),r.write_shift(1,0),_a(t.name||"",r),r.length>r.l?r.slice(0,r.l):r)),Gr(e,620)}(r),function(e){Gr(e,505,ha(0)),Gr(e,506)}(r),function(e){var t;Gr(e,508,((t=Hr(2052)).write_shift(4,0),_a("TableStyleMedium9",t),_a("PivotStyleMedium4",t),t.length>t.l?t.slice(0,t.l):t)),Gr(e,509)}(r),Gr(r,279),r.end()}var Xi=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function ji(e,t,r){t.themeElements.clrScheme=[];var a={};(e[0].match(Et)||[]).forEach((function(e){var n=St(e);switch(n[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":a.rgb=n.val;break;case"<a:sysClr":a.rgb=n.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":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>":"/"===n[0].charAt(1)?(t.themeElements.clrScheme[Xi.indexOf(n[0])]=a,a={}):a.name=n[0].slice(3,n[0].length-1);break;default:if(r&&r.WTF)throw new Error("Unrecognized "+n[0]+" in clrScheme")}}))}function Ki(){}function Yi(){}var Zi=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,Ji=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,qi=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/,Qi=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function eo(e,t){var r;e&&0!==e.length||(e=to());var a={};if(!(r=e.match(Qi)))throw new Error("themeElements not found in theme");return function(e,t,r){var a;t.themeElements={},[["clrScheme",Zi,ji],["fontScheme",Ji,Ki],["fmtScheme",qi,Yi]].forEach((function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,t,r)}))}(r[0],a,t),a.raw=e,a}function to(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var r=[wt];return r[r.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',r[r.length]="<a:themeElements>",r[r.length]='<a:clrScheme name="Office">',r[r.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',r[r.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',r[r.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',r[r.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',r[r.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',r[r.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',r[r.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',r[r.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',r[r.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',r[r.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',r[r.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',r[r.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',r[r.length]="</a:clrScheme>",r[r.length]='<a:fontScheme name="Office">',r[r.length]="<a:majorFont>",r[r.length]='<a:latin typeface="Cambria"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Times New Roman"/>',r[r.length]='<a:font script="Hebr" typeface="Times New Roman"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="MoolBoran"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Times New Roman"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:majorFont>",r[r.length]="<a:minorFont>",r[r.length]='<a:latin typeface="Calibri"/>',r[r.length]='<a:ea typeface=""/>',r[r.length]='<a:cs typeface=""/>',r[r.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',r[r.length]='<a:font script="Hang" typeface="맑은 고딕"/>',r[r.length]='<a:font script="Hans" typeface="宋体"/>',r[r.length]='<a:font script="Hant" typeface="新細明體"/>',r[r.length]='<a:font script="Arab" typeface="Arial"/>',r[r.length]='<a:font script="Hebr" typeface="Arial"/>',r[r.length]='<a:font script="Thai" typeface="Tahoma"/>',r[r.length]='<a:font script="Ethi" typeface="Nyala"/>',r[r.length]='<a:font script="Beng" typeface="Vrinda"/>',r[r.length]='<a:font script="Gujr" typeface="Shruti"/>',r[r.length]='<a:font script="Khmr" typeface="DaunPenh"/>',r[r.length]='<a:font script="Knda" typeface="Tunga"/>',r[r.length]='<a:font script="Guru" typeface="Raavi"/>',r[r.length]='<a:font script="Cans" typeface="Euphemia"/>',r[r.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',r[r.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',r[r.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',r[r.length]='<a:font script="Thaa" typeface="MV Boli"/>',r[r.length]='<a:font script="Deva" typeface="Mangal"/>',r[r.length]='<a:font script="Telu" typeface="Gautami"/>',r[r.length]='<a:font script="Taml" typeface="Latha"/>',r[r.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',r[r.length]='<a:font script="Orya" typeface="Kalinga"/>',r[r.length]='<a:font script="Mlym" typeface="Kartika"/>',r[r.length]='<a:font script="Laoo" typeface="DokChampa"/>',r[r.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',r[r.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',r[r.length]='<a:font script="Viet" typeface="Arial"/>',r[r.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',r[r.length]='<a:font script="Geor" typeface="Sylfaen"/>',r[r.length]="</a:minorFont>",r[r.length]="</a:fontScheme>",r[r.length]='<a:fmtScheme name="Office">',r[r.length]="<a:fillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="1"/>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:lin ang="16200000" scaled="0"/>',r[r.length]="</a:gradFill>",r[r.length]="</a:fillStyleLst>",r[r.length]="<a:lnStyleLst>",r[r.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',r[r.length]="</a:lnStyleLst>",r[r.length]="<a:effectStyleLst>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]="</a:effectStyle>",r[r.length]="<a:effectStyle>",r[r.length]="<a:effectLst>",r[r.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',r[r.length]="</a:effectLst>",r[r.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',r[r.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',r[r.length]="</a:effectStyle>",r[r.length]="</a:effectStyleLst>",r[r.length]="<a:bgFillStyleLst>",r[r.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]='<a:gradFill rotWithShape="1">',r[r.length]="<a:gsLst>",r[r.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',r[r.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',r[r.length]="</a:gsLst>",r[r.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',r[r.length]="</a:gradFill>",r[r.length]="</a:bgFillStyleLst>",r[r.length]="</a:fmtScheme>",r[r.length]="</a:themeElements>",r[r.length]="<a:objectDefaults>",r[r.length]="<a:spDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',r[r.length]="</a:spDef>",r[r.length]="<a:lnDef>",r[r.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',r[r.length]="</a:lnDef>",r[r.length]="</a:objectDefaults>",r[r.length]="<a:extraClrSchemeLst/>",r[r.length]="</a:theme>",r.join("")}function ro(e){var t=e.read_shift(2),r=e.read_shift(2)-4,a=[t];switch(t){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:a[1]=function(e){var t={};switch(t.xclrType=e.read_shift(2),t.nTintShade=e.read_shift(2),t.xclrType){case 0:case 4:e.l+=4;break;case 1:t.xclrValue=function(e,t){return zr(e,4)}(e);break;case 2:t.xclrValue=ns(e);break;case 3:t.xclrValue=function(e){return e.read_shift(4)}(e)}return e.l+=8,t}(e);break;case 6:a[1]=function(e,t){return zr(e,t)}(e,r);break;case 14:case 15:a[1]=e.read_shift(1===r?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+t+" "+r)}return a}var ao=/<(?:\w+:)?shape(?:[^\w][^>]*)?>([\s\S]*?)<\/(?:\w+:)?shape>/g;function no(e,t,r){var a=[21600,21600],n=["m0,0l0",a[1],a[0],a[1],a[0],"0xe"].join(","),s=[Qt("xml",null,{"xmlns:v":sr.v,"xmlns:o":sr.o,"xmlns:x":sr.x,"xmlns:mv":sr.mv}).replace(/\/>/,">"),Qt("o:shapelayout",Qt("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"})],i=65536*e,o=t||[];return o.length>0&&s.push(Qt("v:shapetype",[Qt("v:stroke",null,{joinstyle:"miter"}),Qt("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202",coordsize:a.join(","),"o:spt":202,path:n})),o.forEach((function(e){++i,s.push(function(e,t,r){var a=ea(e[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var s="gradient"==n.type?Qt("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,i=Qt("v:fill",s,n);return["<v:shape"+qt({id:"_x0000_s"+t,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,Qt("v:shadow",null,{on:"t",obscured:"t"}),Qt("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Jt("x:Anchor",[a.c+1,0,a.r+1,0,a.c+3,20,a.r+5,20].join(",")),Jt("x:AutoFill","False"),Jt("x:Row",String(a.r)),Jt("x:Column",String(a.c)),e[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"].join("")}(e,i))})),s.push("</xml>"),s.join("")}function so(e,t,r,a){var n,s=null!=e["!data"];t.forEach((function(t){var i=ea(t.ref);if(!(i.r<0||i.c<0)){if(s?(e["!data"][i.r]||(e["!data"][i.r]=[]),n=e["!data"][i.r][i.c]):n=e[t.ref],!n){n={t:"z"},s?e["!data"][i.r][i.c]=n:e[t.ref]=n;var o=ia(e["!ref"]||"BDWGO1000001:A1");o.s.r>i.r&&(o.s.r=i.r),o.e.r<i.r&&(o.e.r=i.r),o.s.c>i.c&&(o.s.c=i.c),o.e.c<i.c&&(o.e.c=i.c);var c=aa(o);e["!ref"]=c}n.c||(n.c=[]);var l={a:t.author,t:t.t,r:t.r,T:r};t.h&&(l.h=t.h);for(var f=n.c.length-1;f>=0;--f){if(!r&&n.c[f].T)return;r&&!n.c[f].T&&n.c.splice(f,1)}if(r&&a)for(f=0;f<a.length;++f)if(l.a==a[f].id){l.a=a[f].name||l.a;break}n.c.push(l)}}))}function io(e){var t=[wt,Qt("comments",null,{xmlns:nr[0]})],r=[];return t.push("<authors>"),e.forEach((function(e){e[1].forEach((function(e){var a=Nt(e.a);-1==r.indexOf(a)&&(r.push(a),t.push("<author>"+a+"</author>")),e.T&&e.ID&&-1==r.indexOf("tc="+e.ID)&&(r.push("tc="+e.ID),t.push("<author>tc="+e.ID+"</author>"))}))})),0==r.length&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach((function(e){var a=0,n=[],s=0;if(e[1][0]&&e[1][0].T&&e[1][0].ID&&(a=r.indexOf("tc="+e[1][0].ID)),e[1].forEach((function(e){e.a&&(a=r.indexOf(Nt(e.a))),e.T&&++s,n.push(null==e.t?"":Nt(e.t))})),0===s)e[1].forEach((function(a){t.push('<comment ref="'+e[0]+'" authorId="'+r.indexOf(Nt(a.a))+'"><text>'),t.push(Jt("t",null==a.t?"":Nt(a.t))),t.push("</text></comment>")}));else{e[1][0]&&e[1][0].T&&e[1][0].ID&&(a=r.indexOf("tc="+e[1][0].ID)),t.push('<comment ref="'+e[0]+'" authorId="'+a+'"><text>');for(var i="Comment:\n "+n[0]+"\n",o=1;o<n.length;++o)i+="Reply:\n "+n[o]+"\n";t.push(Jt("t",Nt(i))),t.push("</text></comment>")}})),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function oo(e,t,r){var a=[wt,Qt("ThreadedComments",null,{xmlns:ar.TCMNT}).replace(/[\/]>/,">")];return e.forEach((function(e){var n="";(e[1]||[]).forEach((function(s,i){if(s.T){s.a&&-1==t.indexOf(s.a)&&t.push(s.a);var o={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};0==i?n=o.id:o.parentId=n,s.ID=o.id,s.a&&(o.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),a.push(Qt("threadedComment",Jt("text",s.t||""),o))}else delete s.ID}))})),a.push("</ThreadedComments>"),a.join("")}function co(e){var t=[wt,Qt("personList",null,{xmlns:ar.TCMNT,"xmlns:x":nr[0]}).replace(/[\/]>/,">")];return e.forEach((function(e,r){t.push(Qt("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+r).slice(-12)+"}",userId:e,providerId:"None"}))})),t.push("</personList>"),t.join("")}var lo=ua;function fo(e){return da(e.slice(0,54))}function ho(e){var t=$r(),r=[];return Gr(t,628),Gr(t,630),e.forEach((function(e){e[1].forEach((function(e){r.indexOf(e.a)>-1||(r.push(e.a.slice(0,54)),Gr(t,632,fo(e.a)),e.T&&e.ID&&-1==r.indexOf("tc="+e.ID)&&(r.push("tc="+e.ID),Gr(t,632,fo("tc="+e.ID))))}))})),Gr(t,631),Gr(t,633),e.forEach((function(e){e[1].forEach((function(a){var n=-1;a.ID&&(n=r.indexOf("tc="+a.ID)),-1==n&&e[1][0].T&&e[1][0].ID&&(n=r.indexOf("tc="+e[1][0].ID)),-1==n&&(n=r.indexOf(a.a)),a.iauthor=n;var s,i,o,c={s:ea(e[0]),e:ea(e[0])};Gr(t,635,function(e,t){return null==t&&(t=Hr(36)),t.write_shift(4,e[1].iauthor),Na(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}([c,a])),a.t&&a.t.length>0&&Gr(t,637,(s=a,o=!1,null==i&&(o=!0,i=Hr(23+4*s.t.length)),i.write_shift(1,1),da(s.t,i),i.write_shift(4,1),function(e,t){t||(t=Hr(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0)}({ich:0,ifnt:0},i),o?i.slice(0,i.l):i)),Gr(t,636),delete a.iauthor}))})),Gr(t,634),Gr(t,629),t.end()}var uo="application/vnd.ms-office.vbaProject",po=["xlsb","xlsm","xlam","biff8","xla"],mo=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(e,r,a,n){var s=!1,i=!1;0==a.length?i=!0:"["==a.charAt(0)&&(i=!0,a=a.slice(1,-1)),0==n.length?s=!0:"["==n.charAt(0)&&(s=!0,n=n.slice(1,-1));var o=a.length>0?0|parseInt(a,10):0,c=n.length>0?0|parseInt(n,10):0;return s?c+=t.c:--c,i?o+=t.r:--o,r+(s?"":"$")+Qr(c)+(i?"":"$")+Jr(o)}return function(a,n){return t=n,a.replace(e,r)}}(),vo=/(^|[^._A-Z0-9])(\$?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])(\$?)(\d{1,7})(?![_.\(A-Za-z0-9])/g;try{vo=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g}catch(e){}var go=function(){return function(e,t){return e.replace(vo,(function(e,r,a,n,s,i){var o=qr(n)-(a?0:t.c),c=Zr(i)-(s?0:t.r);return r+"R"+("$"==s?c+1:0==c?"":"["+c+"]")+"C"+("$"==a?o+1:0==o?"":"["+o+"]")}))}}();function bo(e,t){return e.replace(vo,(function(e,r,a,n,s,i){return r+("$"==a?a+n:Qr(qr(n)+t.c))+("$"==s?s+i:Jr(Zr(i)+t.r))}))}function wo(e,t,r){var a=ra(t).s,n=ea(r);return bo(e,{r:n.r-a.r,c:n.c-a.c})}function To(e){return e.replace(/_xlfn\./g,"")}function yo(e){e.l+=1}function Eo(e,t){var r=e.read_shift(1==t?1:2);return[16383&r,r>>14&1,r>>15&1]}function ko(e,t,r){var a=2;if(r){if(r.biff>=2&&r.biff<=5)return _o(e);12==r.biff&&(a=4)}var n=e.read_shift(a),s=e.read_shift(a),i=Eo(e,2),o=Eo(e,2);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:s,c:o[0],cRel:o[1],rRel:o[2]}}}function _o(e){var t=Eo(e,2),r=Eo(e,2),a=e.read_shift(1),n=e.read_shift(1);return{s:{r:t[0],c:a,cRel:t[1],rRel:t[2]},e:{r:r[0],c:n,cRel:r[1],rRel:r[2]}}}function So(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return function(e){var t=Eo(e,2),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}(e);var a=e.read_shift(r&&12==r.biff?4:2),n=Eo(e,2);return{r:a,c:n[0],cRel:n[1],rRel:n[2]}}function xo(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:255&r,fQuoted:!!(16384&r),cRel:r>>15,rRel:r>>15}}function Ao(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function Co(e){return[e.read_shift(1),e.read_shift(1)]}function Oo(e,t){var r=[e.read_shift(1)];if(12==t)switch(r[0]){case 2:r[0]=4;break;case 4:r[0]=16;break;case 0:r[0]=1;break;case 1:r[0]=2}switch(r[0]){case 4:r[1]=zn(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:r[1]=Ya[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:r[1]=Fa(e);break;case 2:r[1]=Qn(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+r[0])}return r}function Ro(e,t,r){for(var a=e.read_shift(12==r.biff?4:2),n=[],s=0;s!=a;++s)n.push((12==r.biff?Ia:fs)(e,8));return n}function Io(e,t,r){var a=0,n=0;12==r.biff?(a=e.read_shift(4),n=e.read_shift(4)):(n=1+e.read_shift(1),a=1+e.read_shift(2)),r.biff>=2&&r.biff<8&&(--a,0==--n&&(n=256));for(var s=0,i=[];s!=a&&(i[s]=[]);++s)for(var o=0;o!=n;++o)i[s][o]=Oo(e,r.biff);return i}function No(e,t,r){return e.l+=2,[xo(e)]}function Fo(e){return e.l+=6,[]}function Do(e){return e.l+=2,[Vn(e),1&e.read_shift(2)]}var Po=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],Mo={1:{n:"PtgExp",f:function(e,t,r){return e.l++,r&&12==r.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(r&&2==r.biff?1:2)]}},2:{n:"PtgTbl",f:zr},3:{n:"PtgAdd",f:yo},4:{n:"PtgSub",f:yo},5:{n:"PtgMul",f:yo},6:{n:"PtgDiv",f:yo},7:{n:"PtgPower",f:yo},8:{n:"PtgConcat",f:yo},9:{n:"PtgLt",f:yo},10:{n:"PtgLe",f:yo},11:{n:"PtgEq",f:yo},12:{n:"PtgGe",f:yo},13:{n:"PtgGt",f:yo},14:{n:"PtgNe",f:yo},15:{n:"PtgIsect",f:yo},16:{n:"PtgUnion",f:yo},17:{n:"PtgRange",f:yo},18:{n:"PtgUplus",f:yo},19:{n:"PtgUminus",f:yo},20:{n:"PtgPercent",f:yo},21:{n:"PtgParen",f:yo},22:{n:"PtgMissArg",f:yo},23:{n:"PtgStr",f:function(e,t,r){return e.l++,Kn(e,0,r)}},26:{n:"PtgSheet",f:function(e,t,r){return e.l+=5,e.l+=2,e.l+=2==r.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,r){return e.l+=2==r.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,Ya[e.read_shift(1)]}},29:{n:"PtgBool",f:function(e){return e.l++,0!==e.read_shift(1)}},30:{n:"PtgInt",f:function(e){return e.l++,e.read_shift(2)}},31:{n:"PtgNum",f:function(e){return e.l++,Fa(e)}},32:{n:"PtgArray",f:function(e,t,r){var a=(96&e[e.l++])>>5;return e.l+=2==r.biff?6:12==r.biff?14:7,[a]}},33:{n:"PtgFunc",f:function(e,t,r){var a=(96&e[e.l])>>5;e.l+=1;var n=e.read_shift(r&&r.biff<=3?1:2);return[sc[n],nc[n],a]}},34:{n:"PtgFuncVar",f:function(e,t,r){var a=e[e.l++],n=e.read_shift(1),s=r&&r.biff<=3?[88==a?-1:0,e.read_shift(1)]:function(e){return[e[e.l+1]>>7,32767&e.read_shift(2)]}(e);return[n,(0===s[0]?nc:ac)[s[1]]]}},35:{n:"PtgName",f:function(e,t,r){var a=e.read_shift(1)>>>5&3,n=!r||r.biff>=8?4:2,s=e.read_shift(n);switch(r.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[a,0,s]}},36:{n:"PtgRef",f:function(e,t,r){var a=(96&e[e.l])>>5;return e.l+=1,[a,So(e,0,r)]}},37:{n:"PtgArea",f:function(e,t,r){return[(96&e[e.l++])>>5,ko(e,r.biff>=2&&r.biff,r)]}},38:{n:"PtgMemArea",f:function(e,t,r){var a=e.read_shift(1)>>>5&3;return e.l+=r&&2==r.biff?3:4,[a,e.read_shift(r&&2==r.biff?1:2)]}},39:{n:"PtgMemErr",f:zr},40:{n:"PtgMemNoMem",f:zr},41:{n:"PtgMemFunc",f:function(e,t,r){return[e.read_shift(1)>>>5&3,e.read_shift(r&&2==r.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,r){var a=e.read_shift(1)>>>5&3;return e.l+=4,r.biff<8&&e.l--,12==r.biff&&(e.l+=2),[a]}},43:{n:"PtgAreaErr",f:function(e,t,r){var a=(96&e[e.l++])>>5;return e.l+=r&&r.biff>8?12:r.biff<8?6:8,[a]}},44:{n:"PtgRefN",f:function(e,t,r){var a=(96&e[e.l])>>5;e.l+=1;var n=function(e,t,r){var a=r&&r.biff?r.biff:8;if(a>=2&&a<=5)return function(e){var t=e.read_shift(2),r=e.read_shift(1),a=(32768&t)>>15,n=(16384&t)>>14;return t&=16383,1==a&&t>=8192&&(t-=16384),1==n&&r>=128&&(r-=256),{r:t,c:r,cRel:n,rRel:a}}(e);var n=e.read_shift(a>=12?4:2),s=e.read_shift(2),i=(16384&s)>>14,o=(32768&s)>>15;if(s&=16383,1==o)for(;n>524287;)n-=1048576;if(1==i)for(;s>8191;)s-=16384;return{r:n,c:s,cRel:i,rRel:o}}(e,0,r);return[a,n]}},45:{n:"PtgAreaN",f:function(e,t,r){var a=(96&e[e.l++])>>5,n=function(e,t,r){if(r.biff<8)return _o(e);var a=e.read_shift(12==r.biff?4:2),n=e.read_shift(12==r.biff?4:2),s=Eo(e,2),i=Eo(e,2);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:n,c:i[0],cRel:i[1],rRel:i[2]}}}(e,0,r);return[a,n]}},46:{n:"PtgMemAreaN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(e){return[e.read_shift(1)>>>5&3,e.read_shift(2)]}},57:{n:"PtgNameX",f:function(e,t,r){return 5==r.biff?function(e){var t=e.read_shift(1)>>>5&3,r=e.read_shift(2,"i");e.l+=8;var a=e.read_shift(2);return e.l+=12,[t,r,a]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,t,r){var a=(96&e[e.l])>>5;e.l+=1;var n=e.read_shift(2);return r&&5==r.biff&&(e.l+=12),[a,n,So(e,0,r)]}},59:{n:"PtgArea3d",f:function(e,t,r){var a=(96&e[e.l++])>>5,n=e.read_shift(2,"i");if(r&&5===r.biff)e.l+=12;return[a,n,ko(e,0,r)]}},60:{n:"PtgRefErr3d",f:function(e,t,r){var a=(96&e[e.l++])>>5,n=e.read_shift(2),s=4;if(r)switch(r.biff){case 5:s=15;break;case 12:s=6}return e.l+=s,[a,n]}},61:{n:"PtgAreaErr3d",f:function(e,t,r){var a=(96&e[e.l++])>>5,n=e.read_shift(2),s=8;if(r)switch(r.biff){case 5:e.l+=12,s=6;break;case 12:s=12}return e.l+=s,[a,n]}},255:{}},Lo={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},Uo={1:{n:"PtgElfLel",f:Do},2:{n:"PtgElfRw",f:No},3:{n:"PtgElfCol",f:No},6:{n:"PtgElfRwV",f:No},7:{n:"PtgElfColV",f:No},10:{n:"PtgElfRadical",f:No},11:{n:"PtgElfRadicalS",f:Fo},13:{n:"PtgElfColS",f:Fo},15:{n:"PtgElfColSV",f:Fo},16:{n:"PtgElfRadicalLel",f:Do},25:{n:"PtgList",f:function(e){e.l+=2;var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(4),n=e.read_shift(2),s=e.read_shift(2);return{ixti:t,coltype:3&r,rt:Po[r>>2&31],idx:a,c:n,C:s}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},Bo={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,r){var a=255&e[e.l+1]?1:0;return e.l+=r&&2==r.biff?3:4,[a]}},2:{n:"PtgAttrIf",f:function(e,t,r){var a=255&e[e.l+1]?1:0;return e.l+=2,[a,e.read_shift(r&&2==r.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,r){e.l+=2;for(var a=e.read_shift(r&&2==r.biff?1:2),n=[],s=0;s<=a;++s)n.push(e.read_shift(r&&2==r.biff?1:2));return n}},8:{n:"PtgAttrGoto",f:function(e,t,r){var a=255&e[e.l+1]?1:0;return e.l+=2,[a,e.read_shift(r&&2==r.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,r){e.l+=r&&2==r.biff?3:4}},32:{n:"PtgAttrBaxcel",f:Ao},33:{n:"PtgAttrBaxcel",f:Ao},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),Co(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),Co(e)}},128:{n:"PtgAttrIfError",f:function(e){var t=255&e[e.l+1]?1:0;return e.l+=2,[t,e.read_shift(2)]}},255:{}};function Wo(e,t,r,a){if(a.biff<8)return zr(e,t);for(var n=e.l+t,s=[],i=0;i!==r.length;++i)switch(r[i][0]){case"PtgArray":r[i][1]=Io(e,0,a),s.push(r[i][1]);break;case"PtgMemArea":r[i][2]=Ro(e,r[i][1],a),s.push(r[i][2]);break;case"PtgExp":a&&12==a.biff&&(r[i][1][1]=e.read_shift(4),s.push(r[i][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+r[i][0]}return 0!=(t=n-e.l)&&s.push(zr(e,t)),s}function zo(e,t,r){for(var a,n,s=e.l+t,i=[];s!=e.l;)t=s-e.l,n=e[e.l],a=Mo[n]||Mo[Lo[n]],24!==n&&25!==n||(a=(24===n?Uo:Bo)[e[e.l+1]]),a&&a.f?i.push([a.n,a.f(e,t,r)]):zr(e,t);return i}function Ho(e){for(var t=[],r=0;r<e.length;++r){for(var a=e[r],n=[],s=0;s<a.length;++s){var i=a[s];i?2===i[0]?n.push('"'+i[1].replace(/"/g,'""')+'"'):n.push(i[1]):n.push("")}t.push(n.join(","))}return t.join(";")}var Vo={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function $o(e,t,r){if(!e)return"SH33TJSERR0";if(r.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var a=e.XTI[t];if(r.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!a)return"SH33TJSERR1";var n="";if(r.biff>8)switch(e[a[0]][0]){case 357:return n=-1==a[1]?"#REF":e.SheetNames[a[1]],a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 358:return null!=r.SID?e.SheetNames[r.SID]:"SH33TJSSAME"+e[a[0]][0];default:return"SH33TJSSRC"+e[a[0]][0]}switch(e[a[0]][0][0]){case 1025:return n=-1==a[1]?"#REF":e.SheetNames[a[1]]||"SH33TJSERR3",a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 14849:return e[a[0]].slice(1).map((function(e){return e.Name})).join(";;");default:return e[a[0]][0][3]?(n=-1==a[1]?"#REF":e[a[0]][0][3][a[1]]||"SH33TJSERR4",a[1]==a[2]?n:n+":"+e[a[0]][0][3][a[2]]):"SH33TJSERR2"}}function Go(e,t,r){var a=$o(e,t,r);return"#REF"==a?a:sa(a,r)}function Xo(e,t,r,a,n){var s,i,o,c,l=n&&n.biff||8,f={s:{c:0,r:0},e:{c:0,r:0}},h=[],u=0,d=0,p="";if(!e[0]||!e[0][0])return"";for(var m,v,g,b,w=-1,T="",y=0,E=e[0].length;y<E;++y){var k=e[0][y];switch(k[0]){case"PtgUminus":h.push("-"+h.pop());break;case"PtgUplus":h.push("+"+h.pop());break;case"PtgPercent":h.push(h.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(s=h.pop(),i=h.pop(),w>=0){switch(e[0][w][1][0]){case 0:T=Ze(" ",e[0][w][1][1]);break;case 1:T=Ze("\r",e[0][w][1][1]);break;default:if(T="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][w][1][0])}i+=T,w=-1}h.push(i+Vo[k[0]]+s);break;case"PtgIsect":s=h.pop(),i=h.pop(),h.push(i+" "+s);break;case"PtgUnion":s=h.pop(),i=h.pop(),h.push(i+","+s);break;case"PtgRange":s=h.pop(),i=h.pop(),h.push((v=s,void 0,void 0,g=(m=i).lastIndexOf("!"),b=v.lastIndexOf("!"),-1==g&&-1==b?m+":"+v:g>0&&b>0&&m.slice(0,g).toLowerCase()==v.slice(0,b).toLowerCase()?m+":"+v.slice(b+1):(console.error("Cannot hydrate range",m,v),m+":"+v)));break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":case"PtgAttrBaxcel":case"PtgAttrSemi":case"PtgMemArea":case"PtgTbl":case"PtgMemErr":case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":case"PtgMemNoMem":break;case"PtgRef":o=Xr(k[1][1],f,n),h.push(Kr(o,l));break;case"PtgRefN":o=r?Xr(k[1][1],r,n):k[1][1],h.push(Kr(o,l));break;case"PtgRef3d":u=k[1][1],o=Xr(k[1][2],f,n),p=Go(a,u,n),h.push(p+"!"+Kr(o,l));break;case"PtgFunc":case"PtgFuncVar":var _=k[1][0],S=k[1][1];_||(_=0);var x=0==(_&=127)?[]:h.slice(-_);h.length-=_,"User"===S&&(S=x.shift()),h.push(S+"("+x.join(",")+")");break;case"PtgBool":h.push(k[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":h.push(k[1]);break;case"PtgNum":h.push(String(k[1]));break;case"PtgStr":h.push('"'+k[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":c=jr(k[1][1],r?{s:r}:f,n),h.push(Yr(c,n));break;case"PtgArea":c=jr(k[1][1],f,n),h.push(Yr(c,n));break;case"PtgArea3d":u=k[1][1],c=k[1][2],p=Go(a,u,n),h.push(p+"!"+Yr(c,n));break;case"PtgAttrSum":h.push("SUM("+h.pop()+")");break;case"PtgName":d=k[1][2];var A=(a.names||[])[d-1]||(a[0]||[])[d],C=A?A.Name:"SH33TJSNAME"+String(d);C&&"_xlfn."==C.slice(0,6)&&!n.xlfn&&(C=C.slice(6)),h.push(C);break;case"PtgNameX":var O,R=k[1][1];if(d=k[1][2],!(n.biff<=5)){var I="";if(14849==((a[R]||[])[0]||[])[0]||(1025==((a[R]||[])[0]||[])[0]?a[R][d]&&a[R][d].itab>0&&(I=a.SheetNames[a[R][d].itab-1]+"!"):I=a.SheetNames[d-1]+"!"),a[R]&&a[R][d])I+=a[R][d].Name;else if(a[0]&&a[0][d])I+=a[0][d].Name;else{var N=($o(a,R,n)||"").split(";;");N[d-1]?I=N[d-1]:I+="SH33TJSERRX"}h.push(I);break}R<0&&(R=-R),a[R]&&(O=a[R][d]),O||(O={Name:"SH33TJSERRY"}),h.push(O.Name);break;case"PtgParen":var F="(",D=")";if(w>=0){switch(T="",e[0][w][1][0]){case 2:F=Ze(" ",e[0][w][1][1])+F;break;case 3:F=Ze("\r",e[0][w][1][1])+F;break;case 4:D=Ze(" ",e[0][w][1][1])+D;break;case 5:D=Ze("\r",e[0][w][1][1])+D;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][w][1][0])}w=-1}h.push(F+h.pop()+D);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":h.push("#REF!");break;case"PtgExp":o={c:k[1][1],r:k[1][0]};var P={c:r.c,r:r.r};if(a.sharedf[ta(o)]){var M=a.sharedf[ta(o)];h.push(Xo(M,0,P,a,n))}else{var L=!1;for(s=0;s!=a.arrayf.length;++s)if(i=a.arrayf[s],!(o.c<i[0].s.c||o.c>i[0].e.c||o.r<i[0].s.r||o.r>i[0].e.r)){h.push(Xo(i[1],0,P,a,n)),L=!0;break}L||h.push(k[1])}break;case"PtgArray":h.push("{"+Ho(k[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":w=y;break;case"PtgMissArg":h.push("");break;case"PtgList":h.push("Table"+k[1].idx+"[#"+k[1].rt+"]");break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");default:throw new Error("Unrecognized Formula Token: "+String(k))}if(3!=n.biff&&w>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][y][0])){var U=!0;switch((k=e[0][w])[1][0]){case 4:U=!1;case 0:T=Ze(" ",k[1][1]);break;case 5:U=!1;case 1:T=Ze("\r",k[1][1]);break;default:if(T="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+k[1][0])}h.push((U?T:"")+h.pop()+(U?"":T)),w=-1}}if(h.length>1&&n.WTF)throw new Error("bad formula stack");return"TRUE"==h[0]||"FALSE"!=h[0]&&h[0]}function jo(e,t,r){var a,n=e.l+t,s=2==r.biff?1:2,i=e.read_shift(s);if(65535==i)return[[],zr(e,t-2)];var o=zo(e,i,r);return t!==i+s&&(a=Wo(e,t-i-s,o,r)),e.l=n,[o,a]}function Ko(e,t,r){var a,n=e.l+t,s=e.read_shift(2),i=zo(e,s,r);return 65535==s?[[],zr(e,t-2)]:(t!==s+2&&(a=Wo(e,n-s-2,i,r)),[i,a])}function Yo(e,t,r){var a=e.l+t,n=is(e,6,r),s=function(e){var t;if(65535!==Or(e,e.l+6))return[Fa(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return t=1===e[e.l+2],e.l+=8,[t,"b"];case 2:return t=e[e.l+2],e.l+=8,[t,"e"];case 3:return e.l+=8,["","s"]}return[]}(e),i=e.read_shift(1);2!=r.biff&&(e.read_shift(1),r.biff>=5&&e.read_shift(4));var o=function(e,t,r){var a,n=e.l+t,s=2==r.biff?1:2,i=e.read_shift(s);if(65535==i)return[[],zr(e,t-2)];var o=zo(e,i,r);return t!==i+s&&(a=Wo(e,t-i-s,o,r)),e.l=n,[o,a]}(e,a-e.l,r);return{cell:n,val:s[0],formula:o,shared:i>>3&1,tt:s[1]}}function Zo(e,t,r){var a=e.read_shift(4),n=zo(e,a,r),s=e.read_shift(4);return[n,s>0?Wo(e,s,n,r):null]}var Jo=Zo,qo=Zo,Qo=Zo,ec=Zo;function tc(e){if((0|e)==e&&e<Math.pow(2,16)&&e>=0){var t=Hr(11);return t.write_shift(4,3),t.write_shift(1,30),t.write_shift(2,e),t.write_shift(4,0),t}var r=Hr(17);return r.write_shift(4,11),r.write_shift(1,31),r.write_shift(8,e),r.write_shift(4,0),r}var rc=function(e,t){if("number"==typeof e)return tc(e);if("boolean"==typeof e)return function(e){var t=Hr(10);return t.write_shift(4,2),t.write_shift(1,29),t.write_shift(1,e?1:0),t.write_shift(4,0),t}(e);if(/^#(DIV\/0!|GETTING_DATA|N\/A|NAME\?|NULL!|NUM!|REF!|VALUE!)$/.test(e))return function(e){var t=Hr(10);return t.write_shift(4,2),t.write_shift(1,28),t.write_shift(1,e),t.write_shift(4,0),t}(+Za[e]);if(e.match(/^\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return a=ea(r=e),(n=Hr(15)).write_shift(4,7),n.write_shift(1,36),n.write_shift(4,a.r),n.write_shift(2,a.c|("$"==r.charAt(0)?0:1)<<14|(r.match(/\$\d/)?0:1)<<15),n.write_shift(4,0),n;var r,a,n;if(e.match(/^\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function(e){var t=e.split(":"),r=t[0],a=Hr(23);a.write_shift(4,15);var n=ea(r=t[0]);return a.write_shift(1,36),a.write_shift(4,n.r),a.write_shift(2,n.c|("$"==r.charAt(0)?0:1)<<14|(r.match(/\$\d/)?0:1)<<15),a.write_shift(4,0),n=ea(r=t[1]),a.write_shift(1,36),a.write_shift(4,n.r),a.write_shift(2,n.c|("$"==r.charAt(0)?0:1)<<14|(r.match(/\$\d/)?0:1)<<15),a.write_shift(4,0),a.write_shift(1,17),a.write_shift(4,0),a}(e);if(e.match(/^#REF!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function(e,t){var r=e.lastIndexOf("!"),a=e.slice(0,r);e=e.slice(r+1),"'"==a.charAt(0)&&(a=a.slice(1,-1).replace(/''/g,"'"));var n=ra(e),s=Hr(23);return s.write_shift(4,15),s.write_shift(1,59),s.write_shift(2,2+t.SheetNames.map((function(e){return e.toLowerCase()})).indexOf(a.toLowerCase())),s.write_shift(4,n.s.r),s.write_shift(4,n.e.r),s.write_shift(2,n.s.c),s.write_shift(2,n.e.c),s.write_shift(4,0),s}(e,t);if(e.match(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function(e,t){var r=e.lastIndexOf("!"),a=e.slice(0,r),n=ea(e=e.slice(r+1));"'"==a.charAt(0)&&(a=a.slice(1,-1).replace(/''/g,"'"));var s=Hr(17);return s.write_shift(4,9),s.write_shift(1,58),s.write_shift(2,2+t.SheetNames.map((function(e){return e.toLowerCase()})).indexOf(a.toLowerCase())),s.write_shift(4,n.r),s.write_shift(2,n.c|("$"==e.charAt(0)?0:1)<<14|(e.match(/\$\d/)?0:1)<<15),s.write_shift(4,0),s}(e,t);if(e.match(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5}):\$?(?:[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D]|[A-Z]{1,2})\$?(?:10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})$/))return function(e,t){var r=e.lastIndexOf("!"),a=e.slice(0,r);e=e.slice(r+1),"'"==a.charAt(0)&&(a=a.slice(1,-1).replace(/''/g,"'"));var n=e.split(":"),s=Hr(27);s.write_shift(4,19);var i=n[0],o=ea(i);return s.write_shift(1,58),s.write_shift(2,2+t.SheetNames.map((function(e){return e.toLowerCase()})).indexOf(a.toLowerCase())),s.write_shift(4,o.r),s.write_shift(2,o.c|("$"==i.charAt(0)?0:1)<<14|(i.match(/\$\d/)?0:1)<<15),o=ea(i=n[1]),s.write_shift(1,58),s.write_shift(2,2+t.SheetNames.map((function(e){return e.toLowerCase()})).indexOf(a.toLowerCase())),s.write_shift(4,o.r),s.write_shift(2,o.c|("$"==i.charAt(0)?0:1)<<14|(i.match(/\$\d/)?0:1)<<15),s.write_shift(1,17),s.write_shift(4,0),s}(e,t);if(/^(?:'[^\\\/?*\[\]:]*'|[^'][^\\\/?*\[\]:'`~!@#$%^()\-=+{}|;,<.>]*)!#REF!$/.test(e))return function(e,t){var r=e.lastIndexOf("!"),a=e.slice(0,r);e=e.slice(r+1),"'"==a.charAt(0)&&(a=a.slice(1,-1).replace(/''/g,"'"));var n=Hr(17);return n.write_shift(4,9),n.write_shift(1,60),n.write_shift(2,2+t.SheetNames.map((function(e){return e.toLowerCase()})).indexOf(a.toLowerCase())),n.write_shift(4,0),n.write_shift(2,0),n.write_shift(4,0),n}(e,t);if(/^".*"$/.test(e))return function(e){var t=Hr(7);t.write_shift(4,3+2*e.length),t.write_shift(1,23),t.write_shift(2,e.length);var r=Hr(2*e.length);r.write_shift(2*e.length,e,"utf16le");var a=Hr(4);return a.write_shift(4,0),F([t,r,a])}(e);if(/^[+-]\d+$/.test(e))return tc(parseInt(e,10));throw"Formula |"+e+"| not supported for XLSB"},ac={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},nc={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},sc={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function ic(e){return"of:"==e.slice(0,3)&&(e=e.slice(3)),61==e.charCodeAt(0)&&61==(e=e.slice(1)).charCodeAt(0)&&(e=e.slice(1)),(e=(e=(e=(e=(e=e.replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,(function(e,t){return t.replace(/\./g,"")}))).replace(/\$'([^']|'')+'/g,(function(e){return e.slice(1)}))).replace(/\$([^\]\. #$]+)/g,(function(e,t){return t.match(/^([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])?(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})?$/)?e:t}))).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function oc(e){var t=(e=(e=e.replace(/\$'([^']|'')+'/g,(function(e){return e.slice(1)}))).replace(/\$([^\]\. #$]+)/g,(function(e,t){return t.match(/^([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])?(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})?$/)?e:t}))).split(":");return[t[0].split(".")[0],t[0].split(".")[1]+(t.length>1?":"+(t[1].split(".")[1]||t[1].split(".")[0]):"")]}function cc(e){return e.replace(/!/,".").replace(/:/,":.")}var lc={},fc={},hc="undefined"!=typeof Map;function uc(e,t,r){var a=0,n=e.length;if(r){if(hc?r.has(t):Object.prototype.hasOwnProperty.call(r,t))for(var s=hc?r.get(t):r[t];a<s.length;++a)if(e[s[a]].t===t)return e.Count++,s[a]}else for(;a<n;++a)if(e[a].t===t)return e.Count++,a;return e[n]={t},e.Count++,e.Unique++,r&&(hc?(r.has(t)||r.set(t,[]),r.get(t).push(n)):(Object.prototype.hasOwnProperty.call(r,t)||(r[t]=[]),r[t].push(n))),n}function dc(e,t){var r={min:e+1,max:e+1},a=-1;return t.MDW&&(ki=t.MDW),null!=t.width?r.customWidth=1:null!=t.wpx?a=Si(t.wpx):null!=t.wch&&(a=t.wch),a>-1?(r.width=xi(a),r.customWidth=1):null!=t.width&&(r.width=t.width),t.hidden&&(r.hidden=!0),null!=t.level&&(r.outlineLevel=r.level=t.level),r}function pc(e,t){if(e){var r=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(r=[1,1,1,1,.5,.5]),null==e.left&&(e.left=r[0]),null==e.right&&(e.right=r[1]),null==e.top&&(e.top=r[2]),null==e.bottom&&(e.bottom=r[3]),null==e.header&&(e.header=r[4]),null==e.footer&&(e.footer=r[5])}}function mc(e,t,r){var a=r.revssf[null!=t.z?t.z:"General"],n=60,s=e.length;if(null==a&&r.ssf)for(;n<392;++n)if(null==r.ssf[n]){Ae(t.z,n),r.ssf[n]=t.z,r.revssf[t.z]=a=n;break}for(n=0;n!=s;++n)if(e[n].numFmtId===a)return n;return e[s]={numFmtId:a,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},s}function vc(e,t,r,a,n,s,i){try{a.cellNF&&(e.z=X[t])}catch(e){if(a.WTF)throw e}if("z"!==e.t||a.cellStyles){if("d"===e.t&&"string"==typeof e.v&&(e.v=je(e.v)),(!a||!1!==a.cellText)&&"z"!==e.t)try{if(null==X[t]&&Ae(_e[t]||"General",t),"e"===e.t)e.w=e.w||Ya[e.v];else if(0===t)if("n"===e.t)(0|e.v)===e.v?e.w=e.v.toString(10):e.w=q(e.v);else if("d"===e.t){var o=ze(e.v,!!i);e.w=(0|o)===o?o.toString(10):q(o)}else{if(void 0===e.v)return"";e.w=Q(e.v,fc)}else"d"===e.t?e.w=we(t,ze(e.v,!!i),fc):e.w=we(t,e.v,fc)}catch(e){if(a.WTF)throw e}if(a.cellStyles&&null!=r)try{e.s=s.Fills[r],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=wi(n.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),a.WTF&&(e.s.fgColor.raw_rgb=n.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=wi(n.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),a.WTF&&(e.s.bgColor.raw_rgb=n.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(e){if(a.WTF&&s.Fills)throw e}}}function gc(e,t,r){if(e&&e["!ref"]){var a=ia(e["!ref"]);if(a.e.c<a.s.c||a.e.r<a.s.r)throw new Error("Bad range ("+r+"): "+e["!ref"])}}var bc=/<(?:\w:)?mergeCell ref=["'][A-Z0-9:]+['"]\s*[\/]?>/g,wc=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,Tc=/<(?:\w:)?hyperlink [^>]*>/gm,yc=/"(\w*:\w*)"/,Ec=/<(?:\w:)?col\b[^>]*[\/]?>/g,kc=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,_c=/<(?:\w:)?pageMargins[^>]*\/>/g,Sc=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,xc=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,Ac=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function Cc(e,t,r,a){var n=St(e);r.Sheets[a]||(r.Sheets[a]={}),n.codeName&&(r.Sheets[a].CodeName=Ot(Ht(n.codeName)))}var Oc=["objects","scenarios","selectLockedCells","selectUnlockedCells"],Rc=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"],Ic=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/g;function Nc(e,t,r,a,n,s,i){if(e.c&&r["!comments"].push([t,e.c]),(void 0===e.v||"z"===e.t&&!(a||{}).sheetStubs)&&"string"!=typeof e.f&&void 0===e.z)return"";var o="",c=e.t,l=e.v;if("z"!==e.t)switch(e.t){case"b":o=e.v?"1":"0";break;case"n":isNaN(e.v)?(e.t="e",o=Ya[e.v=36]):isFinite(e.v)?o=""+e.v:(e.t="e",o=Ya[e.v=7]);break;case"e":o=Ya[e.v];break;case"d":if(a&&a.cellDates){var f=je(e.v,i);o=f.toISOString(),f.getUTCFullYear()<1900&&(o=o.slice(o.indexOf("T")+1).replace("Z",""))}else(e=Ye(e)).t="n",o=""+(e.v=ze(je(e.v,i),i));void 0===e.z&&(e.z=X[14]);break;default:o=e.v}var h="z"==e.t||null==e.v?"":Jt("v",Nt(o)),u={r:t},d=mc(a.cellXfs,e,a);switch(0!==d&&(u.s=d),e.t){case"n":case"z":break;case"d":u.t="d";break;case"b":u.t="b";break;case"e":u.t="e";break;default:if(null==e.v){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(a&&a.bookSST){h=Jt("v",""+uc(a.Strings,e.v,a.revStrings)),u.t="s";break}u.t="str"}if(e.t!=c&&(e.t=c,e.v=l),"string"==typeof e.f&&e.f){var p=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;h=Qt("f",Nt(e.f),p)+(null!=e.v?h:"")}return e.l&&(e.l.display=Nt(o),r["!links"].push([t,e.l])),e.D&&(u.cm=1),Qt("c",h,u)}var Fc=function(){var e=/<(?:\w+:)?c[ \/>]/,t=/<\/(?:\w+:)?row>/,r=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,n=/ref=["']([^"']*)["']/,s=$t("v"),i=$t("f");return function(o,c,l,f,h,u,d){for(var p,m,v,g,b,w=0,T="",y=[],E=[],k=0,_=0,S=0,x="",A=0,C=0,O=0,R=0,I=Array.isArray(u.CellXf),N=[],F=[],D=null!=c["!data"],P=[],M={},L=!1,U=!!l.sheetStubs,B=!!((d||{}).WBProps||{}).date1904,W=o.split(t),z=0,H=W.length;z!=H;++z){var V=(T=W[z].trim()).length;if(0!==V){var $=0;e:for(w=0;w<V;++w)switch(T[w]){case">":if("/"!=T[w-1]){++w;break e}if(l&&l.cellStyles){if(A=null!=(m=St(T.slice($,w),!0)).r?parseInt(m.r,10):A+1,C=-1,l.sheetRows&&l.sheetRows<A)continue;M={},L=!1,m.ht&&(L=!0,M.hpt=parseFloat(m.ht),M.hpx=Ni(M.hpt)),m.hidden&&Lt(m.hidden)&&(L=!0,M.hidden=!0),null!=m.outlineLevel&&(L=!0,M.level=+m.outlineLevel),L&&(P[A-1]=M)}break;case"<":$=w}if($>=w)break;if(A=null!=(m=St(T.slice($,w),!0)).r?parseInt(m.r,10):A+1,C=-1,!(l.sheetRows&&l.sheetRows<A)){l.nodim||(f.s.r>A-1&&(f.s.r=A-1),f.e.r<A-1&&(f.e.r=A-1)),l&&l.cellStyles&&(M={},L=!1,m.ht&&(L=!0,M.hpt=parseFloat(m.ht),M.hpx=Ni(M.hpt)),m.hidden&&Lt(m.hidden)&&(L=!0,M.hidden=!0),null!=m.outlineLevel&&(L=!0,M.level=+m.outlineLevel),L&&(P[A-1]=M)),y=T.slice(w).split(e);for(var G=0;G!=y.length&&"<"==y[G].trim().charAt(0);++G);for(y=y.slice(G),w=0;w!=y.length;++w)if(0!==(T=y[w].trim()).length){if(E=T.match(r),k=w,_=0,S=0,T="<c "+("<"==T.slice(0,1)?">":"")+T,null!=E&&2===E.length){for(k=0,x=E[1],_=0;_!=x.length&&!((S=x.charCodeAt(_)-64)<1||S>26);++_)k=26*k+S;C=--k}else++C;for(_=0;_!=T.length&&62!==T.charCodeAt(_);++_);if(++_,(m=St(T.slice(0,_),!0)).r||(m.r=ta({r:A-1,c:C})),p={t:""},null!=(E=(x=T.slice(_)).match(s))&&""!==E[1]&&(p.v=Ot(E[1])),l.cellFormula){if(null!=(E=x.match(i))){if(""==E[1])E[0].indexOf('t="shared"')>-1&&F[(g=St(E[0])).si]&&(p.f=wo(F[g.si][1],F[g.si][2],m.r));else if(p.f=Ot(Ht(E[1]),!0),l.xlfn||(p.f=To(p.f)),E[0].indexOf('t="array"')>-1)p.F=(x.match(n)||[])[1],p.F.indexOf(":")>-1&&N.push([ia(p.F),p.F]);else if(E[0].indexOf('t="shared"')>-1){g=St(E[0]);var j=Ot(Ht(E[1]));l.xlfn||(j=To(j)),F[parseInt(g.si,10)]=[g,j,m.r]}}else(E=x.match(/<f[^>]*\/>/))&&F[(g=St(E[0])).si]&&(p.f=wo(F[g.si][1],F[g.si][2],m.r));var K=ea(m.r);for(_=0;_<N.length;++_)K.r>=N[_][0].s.r&&K.r<=N[_][0].e.r&&K.c>=N[_][0].s.c&&K.c<=N[_][0].e.c&&(p.F=N[_][1])}if(null==m.t&&void 0===p.v)if(p.f||p.F)p.v=0,p.t="n";else{if(!U)continue;p.t="z"}else p.t=m.t||"n";switch(f.s.c>C&&(f.s.c=C),f.e.c<C&&(f.e.c=C),p.t){case"n":if(""==p.v||null==p.v){if(!U)continue;p.t="z"}else p.v=parseFloat(p.v);break;case"s":if(void 0===p.v){if(!U)continue;p.t="z"}else v=lc[parseInt(p.v,10)],p.v=v.t,p.r=v.r,l.cellHTML&&(p.h=v.h);break;case"str":p.t="s",p.v=null!=p.v?Ot(Ht(p.v),!0):"",l.cellHTML&&(p.h=Pt(p.v));break;case"inlineStr":E=x.match(a),p.t="s",null!=E&&(v=ti(E[1]))?(p.v=v.t,l.cellHTML&&(p.h=v.h)):p.v="";break;case"b":p.v=Lt(p.v);break;case"d":l.cellDates?p.v=je(p.v,B):(p.v=ze(je(p.v,B),B),p.t="n");break;case"e":l&&!1===l.cellText||(p.w=p.v),p.v=Za[p.v]}if(O=R=0,b=null,I&&void 0!==m.s&&null!=(b=u.CellXf[m.s])&&(null!=b.numFmtId&&(O=b.numFmtId),l.cellStyles&&null!=b.fillId&&(R=b.fillId)),vc(p,O,R,l,h,u,B),l.cellDates&&I&&"n"==p.t&&ve(X[O])&&(p.v=He(p.v+(B?1462:0)),p.t="number"==typeof p.v?"n":"d"),m.cm&&l.xlmeta){var Y=(l.xlmeta.Cell||[])[+m.cm-1];Y&&"XLDAPR"==Y.type&&(p.D=!0)}var Z;l.nodim&&(Z=ea(m.r),f.s.r>Z.r&&(f.s.r=Z.r),f.e.r<Z.r&&(f.e.r=Z.r)),D?(Z=ea(m.r),c["!data"][Z.r]||(c["!data"][Z.r]=[]),c["!data"][Z.r][Z.c]=p):c[m.r]=p}}}}P.length>0&&(c["!rows"]=P)}}();function Dc(e,t,r,a){var n,s=[wt,Qt("worksheet",null,{xmlns:nr[0],"xmlns:r":ar.r})],i=r.SheetNames[e],o="",c=r.Sheets[i];null==c&&(c={});var l=c["!ref"]||"A1",f=ia(l);if(f.e.c>16383||f.e.r>1048575){if(t.WTF)throw new Error("Range "+l+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575),l=aa(f)}a||(a={}),c["!comments"]=[];var h=[];!function(e,t,r,a,n){var s=!1,i={},o=null;if("xlsx"!==a.bookType&&t.vbaraw){var c=t.SheetNames[r];try{t.Workbook&&(c=t.Workbook.Sheets[r].CodeName||c)}catch(e){}s=!0,i.codeName=Vt(Nt(c))}if(e&&e["!outline"]){var l={summaryBelow:1,summaryRight:1};e["!outline"].above&&(l.summaryBelow=0),e["!outline"].left&&(l.summaryRight=0),o=(o||"")+Qt("outlinePr",null,l)}(s||o)&&(n[n.length]=Qt("sheetPr",o,i))}(c,r,e,t,s),s[s.length]=Qt("dimension",null,{ref:l}),s[s.length]=function(e,t,r,a){var n={workbookViewId:"0"};return(((a||{}).Workbook||{}).Views||[])[0]&&(n.rightToLeft=a.Workbook.Views[0].RTL?"1":"0"),Qt("sheetViews",Qt("sheetView",null,n),{})}(0,0,0,r),t.sheetFormat&&(s[s.length]=Qt("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=c["!cols"]&&c["!cols"].length>0&&(s[s.length]=function(e,t){for(var r,a=["<cols>"],n=0;n!=t.length;++n)(r=t[n])&&(a[a.length]=Qt("col",null,dc(n,r)));return a[a.length]="</cols>",a.join("")}(0,c["!cols"])),s[n=s.length]="<sheetData/>",c["!links"]=[],null!=c["!ref"]&&(o=function(e,t,r,a){var n,s,i=[],o=[],c=ia(e["!ref"]),l="",f="",h=[],u=0,d=0,p=e["!rows"],m=null!=e["!data"],v={r:f},g=-1,b=(((a||{}).Workbook||{}).WBProps||{}).date1904;for(d=c.s.c;d<=c.e.c;++d)h[d]=Qr(d);for(u=c.s.r;u<=c.e.r;++u){for(o=[],f=Jr(u),d=c.s.c;d<=c.e.c;++d){n=h[d]+f;var w=m?(e["!data"][u]||[])[d]:e[n];void 0!==w&&null!=(l=Nc(w,n,e,t,0,0,b))&&o.push(l)}(o.length>0||p&&p[u])&&(v={r:f},p&&p[u]&&((s=p[u]).hidden&&(v.hidden=1),g=-1,s.hpx?g=Ii(s.hpx):s.hpt&&(g=s.hpt),g>-1&&(v.ht=g,v.customHeight=1),s.level&&(v.outlineLevel=s.level)),i[i.length]=Qt("row",o.join(""),v))}if(p)for(;u<p.length;++u)p&&p[u]&&(v={r:u+1},(s=p[u]).hidden&&(v.hidden=1),g=-1,s.hpx?g=Ii(s.hpx):s.hpt&&(g=s.hpt),g>-1&&(v.ht=g,v.customHeight=1),s.level&&(v.outlineLevel=s.level),i[i.length]=Qt("row","",v));return i.join("")}(c,t,0,r),o.length>0&&(s[s.length]=o)),s.length>n+1&&(s[s.length]="</sheetData>",s[n]=s[n].replace("/>",">")),c["!protect"]&&(s[s.length]=function(e){var t={sheet:1};return Oc.forEach((function(r){null!=e[r]&&e[r]&&(t[r]="1")})),Rc.forEach((function(r){null==e[r]||e[r]||(t[r]="0")})),e.password&&(t.password=mi(e.password).toString(16).toUpperCase()),Qt("sheetProtection",null,t)}(c["!protect"])),null!=c["!autofilter"]&&(s[s.length]=function(e,t,r,a){var n="string"==typeof e.ref?e.ref:aa(e.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var s=r.Workbook.Names,i=ra(n);i.s.r==i.e.r&&(i.e.r=ra(t["!ref"]).e.r,n=aa(i));for(var o=0;o<s.length;++o){var c=s[o];if("_xlnm._FilterDatabase"==c.Name&&c.Sheet==a){c.Ref=sa(r.SheetNames[a])+"!"+na(n);break}}return o==s.length&&s.push({Name:"_xlnm._FilterDatabase",Sheet:a,Ref:"'"+r.SheetNames[a]+"'!"+n}),Qt("autoFilter",null,{ref:n})}(c["!autofilter"],c,r,e)),null!=c["!merges"]&&c["!merges"].length>0&&(s[s.length]=function(e){if(0===e.length)return"";for(var t='<mergeCells count="'+e.length+'">',r=0;r!=e.length;++r)t+='<mergeCell ref="'+aa(e[r])+'"/>';return t+"</mergeCells>"}(c["!merges"]));var u,d,p=-1,m=-1;return c["!links"].length>0&&(s[s.length]="<hyperlinks>",c["!links"].forEach((function(e){e[1].Target&&(u={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(m=sn(a,-1,Nt(e[1].Target).replace(/#.*$/,""),tn.HLINK),u["r:id"]="rId"+m),(p=e[1].Target.indexOf("#"))>-1&&(u.location=Nt(e[1].Target.slice(p+1))),e[1].Tooltip&&(u.tooltip=Nt(e[1].Tooltip)),u.display=e[1].display,s[s.length]=Qt("hyperlink",null,u))})),s[s.length]="</hyperlinks>"),delete c["!links"],null!=c["!margins"]&&(s[s.length]=(pc(d=c["!margins"]),Qt("pageMargins",null,d))),t&&!t.ignoreEC&&null!=t.ignoreEC||(s[s.length]=Jt("ignoredErrors",Qt("ignoredError",null,{numberStoredAsText:1,sqref:l}))),h.length>0&&(m=sn(a,-1,"../drawings/drawing"+(e+1)+".xml",tn.DRAW),s[s.length]=Qt("drawing",null,{"r:id":"rId"+m}),c["!drawing"]=h),c["!comments"].length>0&&(m=sn(a,-1,"../drawings/vmlDrawing"+(e+1)+".vml",tn.VML),s[s.length]=Qt("legacyDrawing",null,{"r:id":"rId"+m}),c["!legacy"]=m),s.length>1&&(s[s.length]="</worksheet>",s[1]=s[1].replace("/>",">")),s.join("")}function Pc(e,t,r,a){var n=function(e,t,r){var a=Hr(145),n=(r["!rows"]||[])[e]||{};a.write_shift(4,e),a.write_shift(4,0);var s=320;n.hpx?s=20*Ii(n.hpx):n.hpt&&(s=20*n.hpt),a.write_shift(2,s),a.write_shift(1,0);var i=0;n.level&&(i|=n.level),n.hidden&&(i|=16),(n.hpx||n.hpt)&&(i|=32),a.write_shift(1,i),a.write_shift(1,0);var o=0,c=a.l;a.l+=4;for(var l={r:e,c:0},f=null!=r["!data"],h=0;h<16;++h)if(!(t.s.c>h+1<<10||t.e.c<h<<10)){for(var u=-1,d=-1,p=h<<10;p<h+1<<10;++p)l.c=p,(f?(r["!data"][l.r]||[])[l.c]:r[ta(l)])&&(u<0&&(u=p),d=p);u<0||(++o,a.write_shift(4,u),a.write_shift(4,d))}var m=a.l;return a.l=c,a.write_shift(4,o),a.l=m,a.length>a.l?a.slice(0,a.l):a}(a,r,t);(n.length>17||(t["!rows"]||[])[a])&&Gr(e,0,n)}var Mc=Ia,Lc=Na;function Uc(e,t,r){return null==r&&(r=Hr(9)),ba(t,r),r.write_shift(1,e.v),r}function Bc(e,t,r){return null==r&&(r=Hr(8)),Ta(t,r),r.write_shift(1,e.v),r.write_shift(2,0),r.write_shift(1,0),r}function Wc(e){return[wa(e),Fa(e),"n"]}var zc=Ia,Hc=Na,Vc=["left","right","top","bottom","header","footer"];function $c(e,t,r,a,n,s,i,o){var c={r,c:a};if(t.c&&s["!comments"].push([ta(c),t.c]),void 0===t.v)return!1;var l="";switch(t.t){case"b":l=t.v?"1":"0";break;case"d":(t=Ye(t)).z=t.z||X[14],t.v=ze(je(t.v,o),o),t.t="n";break;case"n":case"e":l=""+t.v;break;default:l=t.v}switch(c.s=mc(n.cellXfs,t,n),t.l&&s["!links"].push([ta(c),t.l]),t.t){case"s":case"str":return n.bookSST?(l=uc(n.Strings,null==t.v?"":String(t.v),n.revStrings),c.t="s",c.v=l,i?Gr(e,18,function(e,t,r){return null==r&&(r=Hr(8)),Ta(t,r),r.write_shift(4,t.v),r}(0,c)):Gr(e,7,function(e,t,r){return null==r&&(r=Hr(12)),ba(t,r),r.write_shift(4,t.v),r}(0,c))):(c.t="str",i?Gr(e,17,function(e,t,r){var a=null==e.v?"":String(e.v);return null==r&&(r=Hr(8+4*a.length)),Ta(t,r),da(a,r),r.length>r.l?r.slice(0,r.l):r}(t,c)):Gr(e,6,function(e,t,r){var a=null==e.v?"":String(e.v);return null==r&&(r=Hr(12+4*e.v.length)),ba(t,r),da(a,r),r.length>r.l?r.slice(0,r.l):r}(t,c))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?i?Gr(e,13,function(e,t,r){return null==r&&(r=Hr(8)),Ta(t,r),Oa(e.v,r),r}(t,c)):Gr(e,2,function(e,t,r){return null==r&&(r=Hr(12)),ba(t,r),Oa(e.v,r),r}(t,c)):isNaN(t.v)?i?Gr(e,14,Bc({t:"e",v:36},c)):Gr(e,3,Uc({t:"e",v:36},c)):isFinite(t.v)?i?Gr(e,16,function(e,t,r){return null==r&&(r=Hr(12)),Ta(t,r),Da(e.v,r),r}(t,c)):Gr(e,5,function(e,t,r){return null==r&&(r=Hr(16)),ba(t,r),Da(e.v,r),r}(t,c)):i?Gr(e,14,Bc({t:"e",v:7},c)):Gr(e,3,Uc({t:"e",v:7},c)),!0;case"b":return c.t="b",i?Gr(e,15,function(e,t,r){return null==r&&(r=Hr(5)),Ta(t,r),r.write_shift(1,e.v?1:0),r}(t,c)):Gr(e,4,function(e,t,r){return null==r&&(r=Hr(9)),ba(t,r),r.write_shift(1,e.v?1:0),r}(t,c)),!0;case"e":return c.t="e",i?Gr(e,14,Bc(t,c)):Gr(e,3,Uc(t,c)),!0}return i?Gr(e,12,function(e,t,r){return null==r&&(r=Hr(4)),Ta(t,r)}(0,c)):Gr(e,1,function(e,t,r){return null==r&&(r=Hr(8)),ba(t,r)}(0,c)),!0}function Gc(e,t,r,a){var n=$r(),s=r.SheetNames[e],i=r.Sheets[s]||{},o=s;try{r&&r.Workbook&&(o=r.Workbook.Sheets[e].CodeName||o)}catch(e){}var c,l,f=ia(i["!ref"]||"A1");if(f.e.c>16383||f.e.r>1048575){if(t.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575)}return i["!links"]=[],i["!comments"]=[],Gr(n,129),(r.vbaraw||i["!outline"])&&Gr(n,147,function(e,t,r){null==r&&(r=Hr(84+4*e.length));var a=192;t&&(t.above&&(a&=-65),t.left&&(a&=-129)),r.write_shift(1,a);for(var n=1;n<3;++n)r.write_shift(1,0);return Pa({auto:1},r),r.write_shift(-4,-1),r.write_shift(-4,-1),Ea(e,r),r.slice(0,r.l)}(o,i["!outline"])),Gr(n,148,Lc(f)),function(e,t,r){Gr(e,133),Gr(e,137,function(e,t,r){null==r&&(r=Hr(30));var a=924;return(((t||{}).Views||[])[0]||{}).RTL&&(a|=32),r.write_shift(2,a),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,100),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(4,0),r}(0,r)),Gr(e,138),Gr(e,134)}(n,0,r.Workbook),function(e,t){t&&t["!cols"]&&(Gr(e,390),t["!cols"].forEach((function(t,r){t&&Gr(e,60,function(e,t,r){null==r&&(r=Hr(18));var a=dc(e,t);r.write_shift(-4,e),r.write_shift(-4,e),r.write_shift(4,256*(a.width||10)),r.write_shift(4,0);var n=0;return t.hidden&&(n|=1),"number"==typeof a.width&&(n|=2),t.level&&(n|=t.level<<8),r.write_shift(2,n),r}(r,t))})),Gr(e,391))}(n,i),function(e,t,r,a,n){var s,i=ia(t["!ref"]||"A1"),o="",c=[],l=(((n||{}).Workbook||{}).WBProps||{}).date1904;Gr(e,145);var f=null!=t["!data"],h=i.e.r;t["!rows"]&&(h=Math.max(i.e.r,t["!rows"].length-1));for(var u=i.s.r;u<=h;++u){o=Jr(u),Pc(e,t,i,u);var d=!1;if(u<=i.e.r)for(var p=i.s.c;p<=i.e.c;++p){u===i.s.r&&(c[p]=Qr(p)),s=c[p]+o;var m=f?(t["!data"][u]||[])[p]:t[s];d=!!m&&$c(e,m,u,p,a,t,d,l)}}Gr(e,146)}(n,i,0,t,r),function(e,t){var r,a;t["!protect"]&&Gr(e,535,(r=t["!protect"],null==a&&(a=Hr(66)),a.write_shift(2,r.password?mi(r.password):0),a.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach((function(e){e[1]?a.write_shift(4,null==r[e[0]]||r[e[0]]?0:1):a.write_shift(4,null!=r[e[0]]&&r[e[0]]?0:1)})),a))}(n,i),function(e,t,r,a){if(t["!autofilter"]){var n=t["!autofilter"],s="string"==typeof n.ref?n.ref:aa(n.ref);r.Workbook||(r.Workbook={Sheets:[]}),r.Workbook.Names||(r.Workbook.Names=[]);var i=r.Workbook.Names,o=ra(s);o.s.r==o.e.r&&(o.e.r=ra(t["!ref"]).e.r,s=aa(o));for(var c=0;c<i.length;++c){var l=i[c];if("_xlnm._FilterDatabase"==l.Name&&l.Sheet==a){l.Ref=sa(r.SheetNames[a])+"!"+na(s);break}}c==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:a,Ref:sa(r.SheetNames[a])+"!"+na(s)}),Gr(e,161,Na(ia(s))),Gr(e,162)}}(n,i,r,e),function(e,t){var r,a;t&&t["!merges"]&&(Gr(e,177,(r=t["!merges"].length,null==a&&(a=Hr(4)),a.write_shift(4,r),a)),t["!merges"].forEach((function(t){Gr(e,176,Hc(t))})),Gr(e,178))}(n,i),function(e,t,r){t["!links"].forEach((function(t){if(t[1].Target){var a=sn(r,-1,t[1].Target.replace(/#.*$/,""),tn.HLINK);Gr(e,494,function(e,t){var r=Hr(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Na({s:ea(e[0]),e:ea(e[0])},r),Aa("rId"+t,r);var a=e[1].Target.indexOf("#");return da((-1==a?"":e[1].Target.slice(a+1))||"",r),da(e[1].Tooltip||"",r),da("",r),r.slice(0,r.l)}(t,a))}})),delete t["!links"]}(n,i,a),i["!margins"]&&Gr(n,476,(c=i["!margins"],null==l&&(l=Hr(48)),pc(c),Vc.forEach((function(e){Da(c[e],l)})),l)),t&&!t.ignoreEC&&null!=t.ignoreEC||function(e,t){var r,a;t&&t["!ref"]&&(Gr(e,648),Gr(e,649,(r=ia(t["!ref"]),(a=Hr(24)).write_shift(4,4),a.write_shift(4,1),Na(r,a),a)),Gr(e,650))}(n,i),function(e,t,r,a){if(t["!comments"].length>0){var n=sn(a,-1,"../drawings/vmlDrawing"+(r+1)+".vml",tn.VML);Gr(e,551,Aa("rId"+n)),t["!legacy"]=n}}(n,i,e,a),Gr(n,130),n.end()}var Xc=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],jc=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],Kc=[],Yc=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function Zc(e,t){for(var r=0;r!=e.length;++r)for(var a=e[r],n=0;n!=t.length;++n){var s=t[n];if(null==a[s[0]])a[s[0]]=s[1];else switch(s[2]){case"bool":"string"==typeof a[s[0]]&&(a[s[0]]=Lt(a[s[0]]));break;case"int":"string"==typeof a[s[0]]&&(a[s[0]]=parseInt(a[s[0]],10))}}}function Jc(e,t){for(var r=0;r!=t.length;++r){var a=t[r];if(null==e[a[0]])e[a[0]]=a[1];else switch(a[2]){case"bool":"string"==typeof e[a[0]]&&(e[a[0]]=Lt(e[a[0]]));break;case"int":"string"==typeof e[a[0]]&&(e[a[0]]=parseInt(e[a[0]],10))}}}function qc(e){Jc(e.WBProps,Xc),Jc(e.CalcPr,Yc),Zc(e.WBView,jc),Zc(e.Sheets,Kc),fc.date1904=Lt(e.WBProps.date1904)}var Qc=":][*?/\\".split("");function el(e,t){try{if(""==e)throw new Error("Sheet name cannot be blank");if(e.length>31)throw new Error("Sheet name cannot exceed 31 chars");if(39==e.charCodeAt(0)||39==e.charCodeAt(e.length-1))throw new Error("Sheet name cannot start or end with apostrophe (')");if("history"==e.toLowerCase())throw new Error("Sheet name cannot be 'History'");Qc.forEach((function(t){if(-1!=e.indexOf(t))throw new Error("Sheet name cannot contain : \\ / ? * [ ]")}))}catch(e){if(t)return!1;throw e}return!0}function tl(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t,r,a,n=e.Workbook&&e.Workbook.Sheets||[];t=e.SheetNames,r=n,a=!!e.vbaraw,t.forEach((function(e,n){el(e);for(var s=0;s<n;++s)if(e==t[s])throw new Error("Duplicate Sheet Name: "+e);if(a){var i=r&&r[n]&&r[n].CodeName||e;if(95==i.charCodeAt(0)&&i.length>22)throw new Error("Bad Code Name: Worksheet"+i)}}));for(var s=0;s<e.SheetNames.length;++s)gc(e.Sheets[e.SheetNames[s]],e.SheetNames[s],s);e.SheetNames.forEach((function(t,r){var a=e.Sheets[t];if(a&&a["!autofilter"]){var n;e.Workbook||(e.Workbook={}),e.Workbook.Names||(e.Workbook.Names=[]),e.Workbook.Names.forEach((function(e){"_xlnm._FilterDatabase"==e.Name&&e.Sheet==r&&(n=e)}));var s=sa(t)+"!"+na(a["!autofilter"].ref);n?n.Ref=s:e.Workbook.Names.push({Name:"_xlnm._FilterDatabase",Sheet:r,Ref:s})}}))}var rl=/<\w+:workbook/;function al(e,t){var r={};return e.read_shift(4),r.ArchID=e.read_shift(4),e.l+=t-8,r}function nl(e,t){var r=$r();return Gr(r,131),Gr(r,128,function(e,t){t||(t=Hr(127));for(var r=0;4!=r;++r)t.write_shift(4,0);return da("SheetJS",t),da(s.version,t),da(s.version,t),da("7262",t),t.length>t.l?t.slice(0,t.l):t}()),Gr(r,153,function(e,t){t||(t=Hr(72));var r=0;return e&&(e.date1904&&(r|=1),e.filterPrivacy&&(r|=8)),t.write_shift(4,r),t.write_shift(4,0),Ea(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}(e.Workbook&&e.Workbook.WBProps||null)),function(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var r,a,n=t.Workbook.Sheets,s=0,i=-1,o=-1;s<n.length;++s)!n[s]||!n[s].Hidden&&-1==i?i=s:1==n[s].Hidden&&-1==o&&(o=s);o>i||(Gr(e,135),Gr(e,158,(r=i,a||(a=Hr(29)),a.write_shift(-4,0),a.write_shift(-4,460),a.write_shift(4,28800),a.write_shift(4,17600),a.write_shift(4,500),a.write_shift(4,r),a.write_shift(4,r),a.write_shift(1,120),a.length>a.l?a.slice(0,a.l):a)),Gr(e,136))}}(r,e),function(e,t){Gr(e,143);for(var r=0;r!=t.SheetNames.length;++r)Gr(e,156,(a={Hidden:t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[r]&&t.Workbook.Sheets[r].Hidden||0,iTabID:r+1,strRelID:"rId"+(r+1),name:t.SheetNames[r]},(n=void 0)||(n=Hr(127)),n.write_shift(4,a.Hidden),n.write_shift(4,a.iTabID),Aa(a.strRelID,n),da(a.name.slice(0,31),n),n.length>n.l?n.slice(0,n.l):n));var a,n;Gr(e,144)}(r,e),function(e,t){Gr(e,353),Gr(e,357),Gr(e,362,function(e){var t=e.SheetNames.length,r=Hr(12*t+28);r.write_shift(4,t+2),r.write_shift(4,0),r.write_shift(4,-2),r.write_shift(4,-2),r.write_shift(4,0),r.write_shift(4,-1),r.write_shift(4,-1);for(var a=0;a<t;++a)r.write_shift(4,0),r.write_shift(4,a),r.write_shift(4,a);return r}(t)),Gr(e,354)}(r,e),(e.Workbook||{}).Names&&function(e,t){t.Workbook&&t.Workbook.Names&&t.Workbook.Names.forEach((function(r){try{if(14&r.Flags)return;Gr(e,39,function(e,t){var r=Hr(9),a=0,n=e.Name;Ja.indexOf(n)>-1&&(a|=32,n=n.slice(6)),r.write_shift(4,a),r.write_shift(1,0),r.write_shift(4,null==e.Sheet?4294967295:e.Sheet);var s=[r,da(n),rc(e.Ref,t)];if(e.Comment)s.push(_a(e.Comment));else{var i=Hr(4);i.write_shift(4,4294967295),s.push(i)}return F(s)}(r,t))}catch(e){console.error("Could not serialize defined name "+JSON.stringify(r))}}))}(r,e),Gr(r,132),r.end()}function sl(e,t,r,a,n,s,i,o){return".bin"===t.slice(-4)?function(e,t,r,a,n,s,i){if(!e)return e;var o=t||{};a||(a={"!id":{}}),null!=T&&null==o.dense&&(o.dense=T);var c,l={};o.dense&&(l["!data"]=[]);var f,h,u,d,p,m,v,g,b,w={s:{r:2e6,c:2e6},e:{r:0,c:0}},y=[],E=!1,k=!1,_=[];o.biff=12,o["!row"]=0;var S=0,x=!1,A=[],C={},O=o.supbooks||n.supbooks||[[]];if(O.sharedf=C,O.arrayf=A,O.SheetNames=n.SheetNames||n.Sheets.map((function(e){return e.name})),!o.supbooks&&(o.supbooks=O,n.Names))for(var R=0;R<n.Names.length;++R)O[0][R+1]=n.Names[R];var I,N,F=[],D=[],P=!1;Cl[16]={n:"BrtShortReal",f:Wc};var M=1462*+!!((n||{}).WBProps||{}).date1904;if(Vr(e,(function(e,t,T){if(!k)switch(T){case 148:c=e;break;case 0:f=e,o.sheetRows&&o.sheetRows<=f.r&&(k=!0),g=Jr(d=f.r),o["!row"]=f.r,(e.hidden||e.hpt||null!=e.level)&&(e.hpt&&(e.hpx=Ni(e.hpt)),D[e.r]=e);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(h={t:e[2]},e[2]){case"n":h.v=e[1];break;case"s":v=lc[e[1]],h.v=v.t,h.r=v.r;break;case"b":h.v=!!e[1];break;case"e":h.v=e[1],!1!==o.cellText&&(h.w=Ya[h.v]);break;case"str":h.t="s",h.v=e[1];break;case"is":h.t="s",h.v=e[1].t}if((u=i.CellXf[e[0].iStyleRef])&&vc(h,u.numFmtId,null,o,s,i,M>0),p=-1==e[0].c?p+1:e[0].c,o.dense?(l["!data"][d]||(l["!data"][d]=[]),l["!data"][d][p]=h):l[Qr(p)+g]=h,o.cellFormula){for(x=!1,S=0;S<A.length;++S){var R=A[S];f.r>=R[0].s.r&&f.r<=R[0].e.r&&p>=R[0].s.c&&p<=R[0].e.c&&(h.F=aa(R[0]),x=!0)}!x&&e.length>3&&(h.f=e[3])}if(w.s.r>f.r&&(w.s.r=f.r),w.s.c>p&&(w.s.c=p),w.e.r<f.r&&(w.e.r=f.r),w.e.c<p&&(w.e.c=p),o.cellDates&&u&&"n"==h.t&&ve(X[u.numFmtId])){var L=Z(h.v+M);L&&(h.t="d",h.v=new Date(Date.UTC(L.y,L.m-1,L.d,L.H,L.M,L.S,L.u)))}I&&("XLDAPR"==I.type&&(h.D=!0),I=void 0),N&&(N=void 0);break;case 1:case 12:if(!o.sheetStubs||E)break;h={t:"z",v:void 0},p=-1==e[0].c?p+1:e[0].c,o.dense?(l["!data"][d]||(l["!data"][d]=[]),l["!data"][d][p]=h):l[Qr(p)+g]=h,w.s.r>f.r&&(w.s.r=f.r),w.s.c>p&&(w.s.c=p),w.e.r<f.r&&(w.e.r=f.r),w.e.c<p&&(w.e.c=p),I&&("XLDAPR"==I.type&&(h.D=!0),I=void 0),N&&(N=void 0);break;case 176:_.push(e);break;case 49:I=((o.xlmeta||{}).Cell||[])[e-1];break;case 494:var U=a["!id"][e.relId];for(U?(e.Target=U.Target,e.loc&&(e.Target+="#"+e.loc),e.Rel=U):""==e.relId&&(e.Target="#"+e.loc),d=e.rfx.s.r;d<=e.rfx.e.r;++d)for(p=e.rfx.s.c;p<=e.rfx.e.c;++p)o.dense?(l["!data"][d]||(l["!data"][d]=[]),l["!data"][d][p]||(l["!data"][d][p]={t:"z",v:void 0}),l["!data"][d][p].l=e):(m=Qr(p)+Jr(d),l[m]||(l[m]={t:"z",v:void 0}),l[m].l=e);break;case 426:if(!o.cellFormula)break;A.push(e),(b=o.dense?l["!data"][d][p]:l[Qr(p)+g]).f=Xo(e[1],0,{r:f.r,c:p},O,o),b.F=aa(e[0]);break;case 427:if(!o.cellFormula)break;C[ta(e[0].s)]=e[1],(b=o.dense?l["!data"][d][p]:l[Qr(p)+g]).f=Xo(e[1],0,{r:f.r,c:p},O,o);break;case 60:if(!o.cellStyles)break;for(;e.e>=e.s;)F[e.e--]={width:e.w/256,hidden:!!(1&e.flags),level:e.level},P||(P=!0,Ci(e.w/256)),Oi(F[e.e+1]);break;case 551:e&&(l["!legrel"]=e);break;case 161:l["!autofilter"]={ref:aa(e)};break;case 476:l["!margins"]=e;break;case 147:n.Sheets[r]||(n.Sheets[r]={}),e.name&&(n.Sheets[r].CodeName=e.name),(e.above||e.left)&&(l["!outline"]={above:e.above,left:e.left});break;case 137:n.Views||(n.Views=[{}]),n.Views[0]||(n.Views[0]={}),e.RTL&&(n.Views[0].RTL=!0);break;case 485:case 64:case 1053:case 151:case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:E=!0;break;case 36:E=!1;break;case 37:y.push(T),E=!0;break;case 38:y.pop(),E=!1;break;default:if(t.T);else if(!E||o.WTF)throw new Error("Unexpected record 0x"+T.toString(16))}}),o),delete o.supbooks,delete o["!row"],!l["!ref"]&&(w.s.r<2e6||c&&(c.e.r>0||c.e.c>0||c.s.r>0||c.s.c>0))&&(l["!ref"]=aa(c||w)),o.sheetRows&&l["!ref"]){var L=ia(l["!ref"]);o.sheetRows<=+L.e.r&&(L.e.r=o.sheetRows-1,L.e.r>w.e.r&&(L.e.r=w.e.r),L.e.r<L.s.r&&(L.s.r=L.e.r),L.e.c>w.e.c&&(L.e.c=w.e.c),L.e.c<L.s.c&&(L.s.c=L.e.c),l["!fullref"]=l["!ref"],l["!ref"]=aa(L))}return _.length>0&&(l["!merges"]=_),F.length>0&&(l["!cols"]=F),D.length>0&&(l["!rows"]=D),a["!id"][l["!legrel"]]&&(l["!legdrawel"]=a["!id"][l["!legrel"]]),l}(e,a,r,n,s,i,o):function(e,t,r,a,n,s,i){if(!e)return e;a||(a={"!id":{}}),null!=T&&null==t.dense&&(t.dense=T);var o={};t.dense&&(o["!data"]=[]);var c={s:{r:2e6,c:2e6},e:{r:0,c:0}},l="",f="",h=e.match(wc);h?(l=e.slice(0,h.index),f=e.slice(h.index+h[0].length)):l=f=e;var u=l.match(Sc);u?Cc(u[0],0,n,r):(u=l.match(xc))&&function(e,t,r,a,n){Cc(e.slice(0,e.indexOf(">")),0,a,n)}(u[0],u[1],0,n,r);var d=(l.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(d>0){var p=l.slice(d,d+50).match(yc);!p||t&&t.nodim||function(e,t){var r=ia(t);r.s.r<=r.e.r&&r.s.c<=r.e.c&&r.s.r>=0&&r.s.c>=0&&(e["!ref"]=aa(r))}(o,p[1])}var m=l.match(Ac);m&&m[1]&&function(e,t){t.Views||(t.Views=[{}]),(e.match(Ic)||[]).forEach((function(e,r){var a=St(e);t.Views[r]||(t.Views[r]={}),+a.zoomScale&&(t.Views[r].zoom=+a.zoomScale),a.rightToLeft&&Lt(a.rightToLeft)&&(t.Views[r].RTL=!0)}))}(m[1],n);var v=[];if(t.cellStyles){var g=l.match(Ec);g&&function(e,t){for(var r=!1,a=0;a!=t.length;++a){var n=St(t[a],!0);n.hidden&&(n.hidden=Lt(n.hidden));var s=parseInt(n.min,10)-1,i=parseInt(n.max,10)-1;for(n.outlineLevel&&(n.level=+n.outlineLevel||0),delete n.min,delete n.max,n.width=+n.width,!r&&n.width&&(r=!0,Ci(n.width)),Oi(n);s<=i;)e[s++]=Ye(n)}}(v,g)}h&&Fc(h[1],o,t,c,s,i,n);var b=f.match(kc);b&&(o["!autofilter"]=function(e){return{ref:(e.match(/ref="([^"]*)"/)||[])[1]}}(b[0]));var w=[],y=f.match(bc);if(y)for(d=0;d!=y.length;++d)w[d]=ia(y[d].slice(y[d].indexOf('"')+1));var E=f.match(Tc);E&&function(e,t,r){for(var a=null!=e["!data"],n=0;n!=t.length;++n){var s=St(Ht(t[n]),!0);if(!s.ref)return;var i=((r||{})["!id"]||[])[s.id];i?(s.Target=i.Target,s.location&&(s.Target+="#"+Ot(s.location))):(s.Target="#"+Ot(s.location),i={Target:s.Target,TargetMode:"Internal"}),s.Rel=i,s.tooltip&&(s.Tooltip=s.tooltip,delete s.tooltip);for(var o=ia(s.ref),c=o.s.r;c<=o.e.r;++c)for(var l=o.s.c;l<=o.e.c;++l){var f=Qr(l)+Jr(c);a?(e["!data"][c]||(e["!data"][c]=[]),e["!data"][c][l]||(e["!data"][c][l]={t:"z",v:void 0}),e["!data"][c][l].l=s):(e[f]||(e[f]={t:"z",v:void 0}),e[f].l=s)}}}(o,E,a);var k,_,S,x=f.match(_c);if(x&&(o["!margins"]=(k=St(x[0]),_={},["left","right","top","bottom","header","footer"].forEach((function(e){k[e]&&(_[e]=parseFloat(k[e]))})),_)),(S=f.match(/legacyDrawing r:id="(.*?)"/))&&(o["!legrel"]=S[1]),t&&t.nodim&&(c.s.c=c.s.r=0),!o["!ref"]&&c.e.c>=c.s.c&&c.e.r>=c.s.r&&(o["!ref"]=aa(c)),t.sheetRows>0&&o["!ref"]){var A=ia(o["!ref"]);t.sheetRows<=+A.e.r&&(A.e.r=t.sheetRows-1,A.e.r>c.e.r&&(A.e.r=c.e.r),A.e.r<A.s.r&&(A.s.r=A.e.r),A.e.c>c.e.c&&(A.e.c=c.e.c),A.e.c<A.s.c&&(A.s.c=A.e.c),o["!fullref"]=o["!ref"],o["!ref"]=aa(A))}return v.length>0&&(o["!cols"]=v),w.length>0&&(o["!merges"]=w),a["!id"][o["!legrel"]]&&(o["!legdrawel"]=a["!id"][o["!legrel"]]),o}(e,a,r,n,s,i,o)}var il,ol=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,cl=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function ll(e,t){var r=e.split(/\s+/),a=[];if(t||(a[0]=r[0]),1===r.length)return a;var n,s,i,o=e.match(ol);if(o)for(i=0;i!=o.length;++i)-1===(s=(n=o[i].match(cl))[1].indexOf(":"))?a[n[1]]=n[2].slice(1,n[2].length-1):a["xmlns:"===n[1].slice(0,6)?"xmlns"+n[1].slice(6):n[1].slice(s+1)]=n[2].slice(1,n[2].length-1);return a}function fl(e){var t={};if(1===e.split(/\s+/).length)return t;var r,a,n,s=e.match(ol);if(s)for(n=0;n!=s.length;++n)-1===(a=(r=s[n].match(cl))[1].indexOf(":"))?t[r[1]]=r[2].slice(1,r[2].length-1):t["xmlns:"===r[1].slice(0,6)?"xmlns"+r[1].slice(6):r[1].slice(a+1)]=r[2].slice(1,r[2].length-1);return t}function hl(e,t,r,a){var n=a;switch((r[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":n=Lt(a);break;case"i2":case"int":n=parseInt(a,10);break;case"r4":case"float":n=parseFloat(a);break;case"date":case"dateTime.tz":n=je(a);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+r[0])}e[Ot(t)]=n}function ul(e,t,r){if(r.cellStyles&&t.Interior){var a=t.Interior;a.Pattern&&(a.patternType=Fi[a.Pattern]||a.Pattern)}e[t.ID]=t}function dl(e,t,r,a,n,s,i,o,c,l,f){var h="General",u=a.StyleID,d={};l=l||{};var p=[],m=0;for(void 0===u&&o&&(u=o.StyleID),void 0===u&&i&&(u=i.StyleID);void 0!==s[u]&&(s[u].nf&&(h=s[u].nf),s[u].Interior&&p.push(s[u].Interior),s[u].Parent);)u=s[u].Parent;switch(r.Type){case"Boolean":a.t="b",a.v=Lt(e);break;case"String":a.t="s",a.r=Mt(Ot(e)),a.v=e.indexOf("<")>-1?Ot(t||e).replace(/<.*?>/g,""):a.r;break;case"DateTime":"Z"!=e.slice(-1)&&(e+="Z"),a.v=ze(je(e,f),f),a.v!=a.v&&(a.v=Ot(e)),h&&"General"!=h||(h="yyyy-mm-dd");case"Number":void 0===a.v&&(a.v=+e),a.t||(a.t="n");break;case"Error":a.t="e",a.v=Za[e],!1!==l.cellText&&(a.w=e);break;default:""==e&&""==t?a.t="z":(a.t="s",a.v=Mt(t||e))}if(function(e,t,r,a){if("z"!==e.t){if(!r||!1!==r.cellText)try{"e"===e.t?e.w=e.w||Ya[e.v]:"General"===t?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=q(e.v):e.w=Q(e.v):e.w=function(e,t,r){var a=il[e]||Ot(e);return"General"===a?Q(t):we(a,t,{date1904:!!r})}(t||"General",e.v,a)}catch(e){if(r.WTF)throw e}try{var n=il[t]||t||"General";if(r.cellNF&&(e.z=n),r.cellDates&&"n"==e.t&&ve(n)){var s=Z(e.v+(a?1462:0));s&&(e.t="d",e.v=new Date(Date.UTC(s.y,s.m-1,s.d,s.H,s.M,s.S,s.u)))}}catch(e){if(r.WTF)throw e}}}(a,h,l,f),!1!==l.cellFormula)if(a.Formula){var v=Ot(a.Formula);61==v.charCodeAt(0)&&(v=v.slice(1)),a.f=mo(v,n),delete a.Formula,"RC"==a.ArrayRange?a.F=mo("RC:RC",n):a.ArrayRange&&(a.F=mo(a.ArrayRange,n),c.push([ia(a.F),a.F]))}else for(m=0;m<c.length;++m)n.r>=c[m][0].s.r&&n.r<=c[m][0].e.r&&n.c>=c[m][0].s.c&&n.c<=c[m][0].e.c&&(a.F=c[m][1]);l.cellStyles&&(p.forEach((function(e){!d.patternType&&e.patternType&&(d.patternType=e.patternType)})),a.s=d),void 0!==a.StyleID&&(a.ixfe=a.StyleID)}function pl(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),e.v=e.w=e.ixfe=void 0}function ml(e,t){var r=t||{};Ee();var n=v(tr(e));"binary"!=r.type&&"array"!=r.type&&"base64"!=r.type||(n=void 0!==a?a.utils.decode(65001,d(n)):Ht(n));var s,i=n.slice(0,1024).toLowerCase(),o=!1;if((1023&(i=i.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&i.indexOf(","),1023&i.indexOf(";"))){var c=Ye(r);return c.type="string",Ks.to_workbook(n,c)}if(-1==i.indexOf("<?xml")&&["html","table","head","meta","script","style","div"].forEach((function(e){i.indexOf("<"+e)>=0&&(o=!0)})),o)return function(e,t){var r=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!r||0==r.length)throw new Error("Invalid HTML: could not find <table>");if(1==r.length){var a=ca(Wl(r[0],t),t);return a.bookType="html",a}var n=xh();return r.forEach((function(e,r){Ah(n,Wl(e,t),"Sheet"+(r+1))})),n.bookType="html",n}(n,r);il={"General Number":"General","General Date":X[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":X[15],"Short Date":X[14],"Long Time":X[19],"Medium Time":X[18],"Short Time":X[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:X[2],Standard:X[4],Percent:X[10],Scientific:X[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var l,f=[];null!=T&&null==r.dense&&(r.dense=T);var h={},u=[],p={},m="";r.dense&&(p["!data"]=[]);var g,b={},w={},y=ll('<Data ss:Type="String">'),E=0,k=0,_=0,S={s:{r:2e6,c:2e6},e:{r:0,c:0}},x={},A={},C="",O=0,R=[],I={},N={},F=0,D=[],P=[],M={},L=[],U=!1,B=[],W=[],z={},H=0,V=0,$={Sheets:[],WBProps:{date1904:!1}},G={};rr.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/gm,"");for(var j,K="";s=rr.exec(n);)switch(s[3]=(K=s[3]).toLowerCase()){case"data":if("data"==K){if("/"===s[1]){if((l=f.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==s[0].charAt(s[0].length-2)&&f.push([s[3],!0]);break}if(f[f.length-1][1])break;"/"===s[1]?dl(n.slice(E,s.index),C,y,"comment"==f[f.length-1][0]?M:b,{c:k,r:_},x,L[k],w,B,r,$.WBProps.date1904):(C="",y=ll(s[0]),E=s.index+s[0].length);break;case"cell":if("/"===s[1])if(P.length>0&&(b.c=P),(!r.sheetRows||r.sheetRows>_)&&void 0!==b.v&&(r.dense?(p["!data"][_]||(p["!data"][_]=[]),p["!data"][_][k]=b):p[Qr(k)+Jr(_)]=b),b.HRef&&(b.l={Target:Ot(b.HRef)},b.HRefScreenTip&&(b.l.Tooltip=b.HRefScreenTip),delete b.HRef,delete b.HRefScreenTip),(b.MergeAcross||b.MergeDown)&&(H=k+(0|parseInt(b.MergeAcross,10)),V=_+(0|parseInt(b.MergeDown,10)),(H>k||V>_)&&R.push({s:{c:k,r:_},e:{c:H,r:V}})),r.sheetStubs)if(b.MergeAcross||b.MergeDown){for(var Y=k;Y<=H;++Y)for(var Z=_;Z<=V;++Z)(Y>k||Z>_)&&(r.dense?(p["!data"][Z]||(p["!data"][Z]=[]),p["!data"][Z][Y]={t:"z"}):p[Qr(Y)+Jr(Z)]={t:"z"});k=H+1}else++k;else b.MergeAcross?k=H+1:++k;else(b=fl(s[0])).Index&&(k=+b.Index-1),k<S.s.c&&(S.s.c=k),k>S.e.c&&(S.e.c=k),"/>"===s[0].slice(-2)&&++k,P=[];break;case"row":"/"===s[1]||"/>"===s[0].slice(-2)?(_<S.s.r&&(S.s.r=_),_>S.e.r&&(S.e.r=_),"/>"===s[0].slice(-2)&&(w=ll(s[0])).Index&&(_=+w.Index-1),k=0,++_):((w=ll(s[0])).Index&&(_=+w.Index-1),z={},("0"==w.AutoFitHeight||w.Height)&&(z.hpx=parseInt(w.Height,10),z.hpt=Ii(z.hpx),W[_]=z),"1"==w.Hidden&&(z.hidden=!0,W[_]=z));break;case"worksheet":if("/"===s[1]){if((l=f.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"));u.push(m),S.s.r<=S.e.r&&S.s.c<=S.e.c&&(p["!ref"]=aa(S),r.sheetRows&&r.sheetRows<=S.e.r&&(p["!fullref"]=p["!ref"],S.e.r=r.sheetRows-1,p["!ref"]=aa(S))),R.length&&(p["!merges"]=R),L.length>0&&(p["!cols"]=L),W.length>0&&(p["!rows"]=W),h[m]=p}else S={s:{r:2e6,c:2e6},e:{r:0,c:0}},_=k=0,f.push([s[3],!1]),l=ll(s[0]),m=Ot(l.Name),p={},r.dense&&(p["!data"]=[]),R=[],B=[],W=[],G={name:m,Hidden:0},$.Sheets.push(G);break;case"table":if("/"===s[1]){if((l=f.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"))}else{if("/>"==s[0].slice(-2))break;f.push([s[3],!1]),L=[],U=!1}break;case"style":"/"===s[1]?ul(x,A,r):A=ll(s[0]);break;case"numberformat":A.nf=Ot(ll(s[0]).Format||"General"),il[A.nf]&&(A.nf=il[A.nf]);for(var J=0;392!=J&&X[J]!=A.nf;++J);if(392==J)for(J=57;392!=J;++J)if(null==X[J]){Ae(A.nf,J);break}break;case"column":if("table"!==f[f.length-1][0])break;if("/"===s[1])break;if((g=ll(s[0])).Hidden&&(g.hidden=!0,delete g.Hidden),g.Width&&(g.wpx=parseInt(g.Width,10)),!U&&g.wpx>10){U=!0,ki=Ti;for(var q=0;q<L.length;++q)L[q]&&Oi(L[q])}U&&Oi(g),L[g.Index-1||L.length]=g;for(var Q=0;Q<+g.Span;++Q)L[L.length]=Ye(g);break;case"namedrange":if("/"===s[1])break;$.Names||($.Names=[]);var ee=St(s[0]),te={Name:(j=ee.Name,Ja.indexOf("_xlnm."+j)>-1?"_xlnm."+j:j),Ref:mo(ee.RefersTo.slice(1),{r:0,c:0})};$.Sheets.length>0&&(te.Sheet=$.Sheets.length-1),$.Names.push(te);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":case"protection":case"paragraphs":case"name":case"pixelsperinch":case"null":break;case"font":if("/>"===s[0].slice(-2))break;"/"===s[1]?C+=n.slice(O,s.index):O=s.index+s[0].length;break;case"interior":if(!r.cellStyles)break;A.Interior=ll(s[0]);break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if("/>"===s[0].slice(-2))break;"/"===s[1]?kn(I,K,n.slice(F,s.index)):F=s.index+s[0].length;break;case"styles":case"workbook":if("/"===s[1]){if((l=f.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"))}else f.push([s[3],!1]);break;case"comment":if("/"===s[1]){if((l=f.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"));pl(M),P.push(M)}else f.push([s[3],!1]),Lt((l=ll(s[0])).ShowAlways||"0")||(P.hidden=!0),M={a:l.Author};break;case"autofilter":if("/"===s[1]){if((l=f.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"))}else if("/"!==s[0].charAt(s[0].length-2)){var re=ll(s[0]);p["!autofilter"]={ref:mo(re.Range).replace(/\$/g,"")},f.push([s[3],!0])}break;case"datavalidation":if("/"===s[1]){if((l=f.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==s[0].charAt(s[0].length-2)&&f.push([s[3],!0]);break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if("/"===s[1]){if((l=f.pop())[0]!==s[3])throw new Error("Bad state: "+l.join("|"))}else"/"!==s[0].charAt(s[0].length-2)&&f.push([s[3],!0]);break;default:if(0==f.length&&"document"==s[3])return ql(n,r);if(0==f.length&&"uof"==s[3])return ql(n,r);var ae=!0;switch(f[f.length-1][0]){case"officedocumentsettings":switch(s[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:ae=!1}break;case"componentoptions":switch(s[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:ae=!1}break;case"excelworkbook":switch(s[3]){case"date1904":$.WBProps.date1904=!0;break;case"hidehorizontalscrollbar":case"hideverticalscrollbar":case"hideworkbooktabs":case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:ae=!1}break;case"workbookoptions":switch(s[3]){case"owcversion":case"height":case"width":break;default:ae=!1}break;case"worksheetoptions":switch(s[3]){case"visible":if("/>"===s[0].slice(-2));else if("/"===s[1])switch(n.slice(F,s.index)){case"SheetHidden":G.Hidden=1;break;case"SheetVeryHidden":G.Hidden=2}else F=s.index+s[0].length;break;case"header":p["!margins"]||pc(p["!margins"]={},"xlml"),isNaN(+St(s[0]).Margin)||(p["!margins"].header=+St(s[0]).Margin);break;case"footer":p["!margins"]||pc(p["!margins"]={},"xlml"),isNaN(+St(s[0]).Margin)||(p["!margins"].footer=+St(s[0]).Margin);break;case"pagemargins":var ne=St(s[0]);p["!margins"]||pc(p["!margins"]={},"xlml"),isNaN(+ne.Top)||(p["!margins"].top=+ne.Top),isNaN(+ne.Left)||(p["!margins"].left=+ne.Left),isNaN(+ne.Right)||(p["!margins"].right=+ne.Right),isNaN(+ne.Bottom)||(p["!margins"].bottom=+ne.Bottom);break;case"displayrighttoleft":$.Views||($.Views=[]),$.Views[0]||($.Views[0]={}),$.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;case"nosummaryrowsbelowdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].above=!0;break;case"nosummarycolumnsrightdetail":p["!outline"]||(p["!outline"]={}),p["!outline"].left=!0;break;default:ae=!1}break;case"pivottable":case"pivotcache":switch(s[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:ae=!1}break;case"pagebreaks":switch(s[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:ae=!1}break;case"autofilter":switch(s[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:ae=!1}break;case"querytable":switch(s[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:ae=!1}break;case"datavalidation":switch(s[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:ae=!1}break;case"sorting":case"conditionalformatting":switch(s[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:ae=!1}break;case"mapinfo":case"schema":case"data":switch(s[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:ae=!1}break;case"smarttags":break;default:ae=!1}if(ae)break;if(s[3].match(/!\[CDATA/))break;if(!f[f.length-1][1])throw"Unrecognized tag: "+s[3]+"|"+f.join("|");if("customdocumentproperties"===f[f.length-1][0]){if("/>"===s[0].slice(-2))break;"/"===s[1]?hl(N,K,D,n.slice(F,s.index)):(D=s,F=s.index+s[0].length);break}if(r.WTF)throw"Unrecognized tag: "+s[3]+"|"+f.join("|")}var se={};return r.bookSheets||r.bookProps||(se.Sheets=h),se.SheetNames=u,se.Workbook=$,se.SSF=Ye(X),se.Props=I,se.Custprops=N,se.bookType="xlml",se}function vl(e,t){switch(Yf(t=t||{}),t.type||"base64"){case"base64":return ml(k(e),t);case"binary":case"buffer":case"file":return ml(e,t);case"array":return ml(I(e),t)}}function gl(e){return Qt("NamedRange",null,{"ss:Name":"_xlnm."==e.Name.slice(0,6)?e.Name.slice(6):e.Name,"ss:RefersTo":"="+go(e.Ref,{r:0,c:0})})}function bl(e,t,r,a,n,s,i){if(!e||null==e.v&&null==e.f)return"";var o={};if(e.f&&(o["ss:Formula"]="="+Nt(go(e.f,i))),e.F&&e.F.slice(0,t.length)==t){var c=ea(e.F.slice(t.length+1));o["ss:ArrayRange"]="RC:R"+(c.r==i.r?"":"["+(c.r-i.r)+"]")+"C"+(c.c==i.c?"":"["+(c.c-i.c)+"]")}if(e.l&&e.l.Target&&(o["ss:HRef"]=Nt(e.l.Target),e.l.Tooltip&&(o["x:HRefScreenTip"]=Nt(e.l.Tooltip))),r["!merges"])for(var l=r["!merges"],f=0;f!=l.length;++f)l[f].s.c==i.c&&l[f].s.r==i.r&&(l[f].e.c>l[f].s.c&&(o["ss:MergeAcross"]=l[f].e.c-l[f].s.c),l[f].e.r>l[f].s.r&&(o["ss:MergeDown"]=l[f].e.r-l[f].s.r));var h="",u="";switch(e.t){case"z":if(!a.sheetStubs)return"";break;case"n":h="Number",u=String(e.v);break;case"b":h="Boolean",u=e.v?"1":"0";break;case"e":h="Error",u=Ya[e.v];break;case"d":h="DateTime",u=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||X[14]);break;case"s":h="String",u=((e.v||"")+"").replace(Rt,(function(e){return Ct[e]})).replace(Dt,(function(e){return"&#x"+e.charCodeAt(0).toString(16).toUpperCase()+";"}))}var d=mc(a.cellXfs,e,a);o["ss:StyleID"]="s"+(21+d),o["ss:Index"]=i.c+1;var p,m=null!=e.v?u:"",v="z"==e.t?"":'<Data ss:Type="'+h+'">'+m+"</Data>";return(e.c||[]).length>0&&(v+=(p=e.c).map((function(e){var t=Qt("ss:Data",(e.t||"").replace(/(\r\n|[\r\n])/g," "),{xmlns:"http://www.w3.org/TR/REC-html40"}),r={};return e.a&&(r["ss:Author"]=e.a),p.hidden||(r["ss:ShowAlways"]="1"),Qt("Comment",t,r)})).join("")),Qt("Cell",v,o)}function wl(e,t){var r='<Row ss:Index="'+(e+1)+'"';return t&&(t.hpt&&!t.hpx&&(t.hpx=Ni(t.hpt)),t.hpx&&(r+=' ss:AutoFitHeight="0" ss:Height="'+t.hpx+'"'),t.hidden&&(r+=' ss:Hidden="1"')),r+">"}function Tl(e,t,r){var a=[],n=r.SheetNames[e],s=r.Sheets[n],i=s?function(e,t,r,a){if(!e)return"";if(!((a||{}).Workbook||{}).Names)return"";for(var n=a.Workbook.Names,s=[],i=0;i<n.length;++i){var o=n[i];o.Sheet==r&&(o.Name.match(/^_xlfn\./)||s.push(gl(o)))}return s.join("")}(s,0,e,r):"";return i.length>0&&a.push("<Names>"+i+"</Names>"),i=s?function(e,t,r,a){if(!e["!ref"])return"";var n=ia(e["!ref"]),s=e["!merges"]||[],i=0,o=[];e["!cols"]&&e["!cols"].forEach((function(e,t){Oi(e);var r=!!e.width,a=dc(t,e),n={"ss:Index":t+1};r&&(n["ss:Width"]=_i(a.width)),e.hidden&&(n["ss:Hidden"]="1"),o.push(Qt("Column",null,n))}));for(var c=null!=e["!data"],l=n.s.r;l<=n.e.r;++l){for(var f=[wl(l,(e["!rows"]||[])[l])],h=n.s.c;h<=n.e.c;++h){var u=!1;for(i=0;i!=s.length;++i)if(!(s[i].s.c>h||s[i].s.r>l||s[i].e.c<h||s[i].e.r<l)){s[i].s.c==h&&s[i].s.r==l||(u=!0);break}if(!u){var d={r:l,c:h},p=Qr(h)+Jr(l),m=c?(e["!data"][l]||[])[h]:e[p];f.push(bl(m,p,e,t,0,0,d))}}f.push("</Row>"),f.length>2&&o.push(f.join(""))}return o.join("")}(s,t):"",i.length>0&&a.push("<Table>"+i+"</Table>"),a.push(function(e,t,r,a){if(!e)return"";var n=[];if(e["!margins"]&&(n.push("<PageSetup>"),e["!margins"].header&&n.push(Qt("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&n.push(Qt("Footer",null,{"x:Margin":e["!margins"].footer})),n.push(Qt("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),n.push("</PageSetup>")),a&&a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[r])if(a.Workbook.Sheets[r].Hidden)n.push(Qt("Visible",1==a.Workbook.Sheets[r].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var s=0;s<r&&(!a.Workbook.Sheets[s]||a.Workbook.Sheets[s].Hidden);++s);s==r&&n.push("<Selected/>")}return((((a||{}).Workbook||{}).Views||[])[0]||{}).RTL&&n.push("<DisplayRightToLeft/>"),e["!protect"]&&(n.push(Jt("ProtectContents","True")),e["!protect"].objects&&n.push(Jt("ProtectObjects","True")),e["!protect"].scenarios&&n.push(Jt("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||n.push(Jt("EnableSelection","UnlockedCells")):n.push(Jt("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach((function(t){e["!protect"][t[0]]&&n.push("<"+t[1]+"/>")}))),0==n.length?"":Qt("WorksheetOptions",n.join(""),{xmlns:sr.x})}(s,0,e,r)),s["!autofilter"]&&a.push('<AutoFilter x:Range="'+go(na(s["!autofilter"].ref),{r:0,c:0})+'" xmlns="urn:schemas-microsoft-com:office:excel"></AutoFilter>'),a.join("")}function yl(e,t){t||(t={}),e.SSF||(e.SSF=Ye(X)),e.SSF&&(Ee(),ye(e.SSF),t.revssf=Le(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],mc(t.cellXfs,{},{revssf:{General:0}}));var r=[];r.push(function(e,t){var r=[];return e.Props&&r.push(function(e,t){var r=[];return De(En).map((function(e){for(var t=0;t<fn.length;++t)if(fn[t][1]==e)return fn[t];for(t=0;t<mn.length;++t)if(mn[t][1]==e)return mn[t];throw e})).forEach((function(a){if(null!=e[a[1]]){var n=t&&t.Props&&null!=t.Props[a[1]]?t.Props[a[1]]:e[a[1]];"date"===a[2]&&(n=new Date(n).toISOString().replace(/\.\d*Z/,"Z")),"number"==typeof n?n=String(n):!0===n||!1===n?n=n?"1":"0":n instanceof Date&&(n=new Date(n).toISOString().replace(/\.\d*Z/,"")),r.push(Jt(En[a[1]]||a[1],n))}})),Qt("DocumentProperties",r.join(""),{xmlns:sr.o})}(e.Props,t)),e.Custprops&&r.push(function(e,t){var r=["Worksheets","SheetNames"],a="CustomDocumentProperties",n=[];return e&&De(e).forEach((function(t){if(Object.prototype.hasOwnProperty.call(e,t)){for(var a=0;a<fn.length;++a)if(t==fn[a][1])return;for(a=0;a<mn.length;++a)if(t==mn[a][1])return;for(a=0;a<r.length;++a)if(t==r[a])return;var s=e[t],i="string";"number"==typeof s?(i="float",s=String(s)):!0===s||!1===s?(i="boolean",s=s?"1":"0"):s=String(s),n.push(Qt(Ft(t),s,{"dt:dt":i}))}})),t&&De(t).forEach((function(r){if(Object.prototype.hasOwnProperty.call(t,r)&&(!e||!Object.prototype.hasOwnProperty.call(e,r))){var a=t[r],s="string";"number"==typeof a?(s="float",a=String(a)):!0===a||!1===a?(s="boolean",a=a?"1":"0"):a instanceof Date?(s="dateTime.tz",a=a.toISOString()):a=String(a),n.push(Qt(Ft(r),a,{"dt:dt":s}))}})),"<"+a+' xmlns="'+sr.o+'">'+n.join("")+"</"+a+">"}(e.Props,e.Custprops)),r.join("")}(e,t)),r.push(function(e){return(((e||{}).Workbook||{}).WBProps||{}).date1904?'<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"><Date1904/></ExcelWorkbook>':""}(e)),r.push(""),r.push("");for(var a=0;a<e.SheetNames.length;++a)r.push(Qt("Worksheet",Tl(a,t,e),{"ss:Name":Nt(e.SheetNames[a])}));return r[2]=function(e,t){var r=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return t.cellXfs.forEach((function(e,t){var a=[];a.push(Qt("NumberFormat",null,{"ss:Format":Nt(X[e.numFmtId])}));var n={"ss:ID":"s"+(21+t)};r.push(Qt("Style",a.join(""),n))})),Qt("Styles",r.join(""))}(0,t),r[3]=function(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,r=[],a=0;a<t.length;++a){var n=t[a];null==n.Sheet&&(n.Name.match(/^_xlfn\./)||r.push(gl(n)))}return Qt("Names",r.join(""))}(e),wt+Qt("Workbook",r.join(""),{xmlns:sr.ss,"xmlns:o":sr.o,"xmlns:x":sr.x,"xmlns:ss":sr.ss,"xmlns:dt":sr.dt,"xmlns:html":sr.html})}var El=[60,1084,2066,2165,2175];function kl(e,t,r,a,n){var s=a,i=[],o=r.slice(r.l,r.l+s);if(n&&n.enc&&n.enc.insitu&&o.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:n.enc.insitu(o)}i.push(o),r.l+=s;for(var c=Or(r,r.l),l=Ol[c],f=0;null!=l&&El.indexOf(c)>-1;)s=Or(r,r.l+2),f=r.l+4,2066==c?f+=4:2165!=c&&2175!=c||(f+=12),o=r.slice(f,r.l+4+s),i.push(o),r.l+=4+s,l=Ol[c=Or(r,r.l)];var h=F(i);Wr(h,0);var u=0;h.lens=[];for(var d=0;d<i.length;++d)h.lens.push(u),u+=i[d].length;if(h.length<a)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+h.length+" < "+a;return t.f(h,h.length,n)}function _l(e,t,r){if("z"!==e.t&&e.XF){var a=0;try{a=e.z||e.XF.numFmtId||0,t.cellNF&&null==e.z&&(e.z=X[a])}catch(e){if(t.WTF)throw e}if(!t||!1!==t.cellText)try{"e"===e.t?e.w=e.w||Ya[e.v]:0===a||"General"==a?"n"===e.t?(0|e.v)===e.v?e.w=e.v.toString(10):e.w=q(e.v):e.w=Q(e.v):e.w=we(a,e.v,{date1904:!!r,dateNF:t&&t.dateNF})}catch(e){if(t.WTF)throw e}if(t.cellDates&&a&&"n"==e.t&&ve(X[a]||String(a))){var n=Z(e.v+(r?1462:0));n&&(e.t="d",e.v=new Date(Date.UTC(n.y,n.m-1,n.d,n.H,n.M,n.S,n.u)))}}}function Sl(e,t,r){return{v:e,ixfe:t,t:r}}var xl={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Al(e,t){var r,a,n,s;if(t||(t={}),Yf(t),u(),t.codepage&&f(t.codepage),e.FullPaths){if(Re.find(e,"/encryption"))throw new Error("File is password-protected");r=Re.find(e,"!CompObj"),a=Re.find(e,"/Workbook")||Re.find(e,"/Book")}else{switch(t.type){case"base64":e=O(k(e));break;case"binary":e=O(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e))}Wr(e,0),a={content:e}}if(r&&function(e){var t={},r=e.content;if(r.l=28,t.AnsiUserType=r.read_shift(0,"lpstr-ansi"),t.AnsiClipboardFormat=function(e){return Ma(e,1)}(r),r.length-r.l<=4)return t;var a=r.read_shift(4);0==a||a>40||(r.l-=4,t.Reserved1=r.read_shift(0,"lpstr-ansi"),r.length-r.l<=4||1907505652!==(a=r.read_shift(4))||(t.UnicodeClipboardFormat=function(e){return Ma(e,2)}(r),0==(a=r.read_shift(4))||a>40||(r.l-=4,t.Reserved2=r.read_shift(0,"lpwstr"))))}(r),t.bookProps&&!t.bookSheets)n={};else{var i=_?"buffer":"array";if(a&&a.content)n=function(e,t){var r={opts:{}},a={};null!=T&&null==t.dense&&(t.dense=T);var n={};t.dense&&(n["!data"]=[]);var s,i,o,c,l,f,u,d,p={},m={},v=null,g=[],b="",w={},y="",E={},k=[],_=[],S=[],x={Sheets:[],WBProps:{date1904:!1},Views:[{}]},A={},C=!1,O=function(e){return e<8?Ka[e]:e<64&&S[e-8]||Ka[e]},R=function(e,t,r){if((C||!(W>1))&&!(r.sheetRows&&e.r>=r.sheetRows)){if(r.cellStyles&&t.XF&&t.XF.data&&function(e,t,r){var a,n=t.XF.data;n&&n.patternType&&r&&r.cellStyles&&(t.s={},t.s.patternType=n.patternType,(a=bi(O(n.icvFore)))&&(t.s.fgColor={rgb:a}),(a=bi(O(n.icvBack)))&&(t.s.bgColor={rgb:a}))}(0,t,r),delete t.ixfe,delete t.XF,s=e,y=ta(e),m&&m.s&&m.e||(m={s:{r:0,c:0},e:{r:0,c:0}}),e.r<m.s.r&&(m.s.r=e.r),e.c<m.s.c&&(m.s.c=e.c),e.r+1>m.e.r&&(m.e.r=e.r+1),e.c+1>m.e.c&&(m.e.c=e.c+1),r.cellFormula&&t.f)for(var a=0;a<k.length;++a)if(!(k[a][0].s.c>e.c||k[a][0].s.r>e.r||k[a][0].e.c<e.c||k[a][0].e.r<e.r)){t.F=aa(k[a][0]),k[a][0].s.c==e.c&&k[a][0].s.r==e.r||delete t.f,t.f&&(t.f=""+Xo(k[a][1],0,e,L,I));break}r.dense?(n["!data"][e.r]||(n["!data"][e.r]=[]),n["!data"][e.r][e.c]=t):n[y]=t}},I={enc:!1,sbcch:0,snames:[],sharedf:E,arrayf:k,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!t&&!!t.cellStyles,WTF:!!t&&!!t.wtf};t.password&&(I.password=t.password);var N=[],F=[],D=[],P=[],M=!1,L=[];L.SheetNames=I.snames,L.sharedf=I.sharedf,L.arrayf=I.arrayf,L.names=[],L.XTI=[];var U,B=0,W=0,z=0,H=[],V=[];I.codepage=1200,h(1200);for(var $=!1;e.l<e.length-1;){var G=e.l,j=e.read_shift(2);if(0===j&&10===B)break;var K=e.l===e.length?0:e.read_shift(2),Y=Ol[j];if(0==W&&-1==[9,521,1033,2057].indexOf(j))break;if(Y&&Y.f){if(t.bookSheets&&133===B&&133!==j)break;if(B=j,2===Y.r||12==Y.r){var Z=e.read_shift(2);if(K-=2,!I.enc&&Z!==j&&((255&Z)<<8|Z>>8)!==j)throw new Error("rt mismatch: "+Z+"!="+j);12==Y.r&&(e.l+=10,K-=10)}var J={};if(J=10===j?Y.f(e,K,I):kl(j,Y,e,K,I),0==W&&-1===[9,521,1033,2057].indexOf(B))continue;switch(j){case 34:r.opts.Date1904=x.WBProps.date1904=J;break;case 134:r.opts.WriteProtect=!0;break;case 47:if(I.enc||(e.l=0),I.enc=J,!t.password)throw new Error("File is password-protected");if(null==J.valid)throw new Error("Encryption scheme unsupported");if(!J.valid)throw new Error("Password is incorrect");break;case 92:I.lastuser=J;break;case 66:var q=Number(J);switch(q){case 21010:q=1200;break;case 32768:q=1e4;break;case 32769:q=1252}h(I.codepage=q),$=!0;break;case 317:I.rrtabid=J;break;case 25:I.winlocked=J;break;case 439:r.opts.RefreshAll=J;break;case 12:r.opts.CalcCount=J;break;case 16:r.opts.CalcDelta=J;break;case 17:r.opts.CalcIter=J;break;case 13:r.opts.CalcMode=J;break;case 14:r.opts.CalcPrecision=J;break;case 95:r.opts.CalcSaveRecalc=J;break;case 15:I.CalcRefMode=J;break;case 2211:r.opts.FullCalc=J;break;case 129:J.fDialog&&(n["!type"]="dialog"),J.fBelow||((n["!outline"]||(n["!outline"]={})).above=!0),J.fRight||((n["!outline"]||(n["!outline"]={})).left=!0);break;case 67:case 579:case 1091:case 224:_.push(J);break;case 430:L.push([J]),L[L.length-1].XTI=[];break;case 35:case 547:L[L.length-1].push(J);break;case 24:case 536:U={Name:J.Name,Ref:Xo(J.rgce,0,null,L,I)},J.itab>0&&(U.Sheet=J.itab-1),L.names.push(U),L[0]||(L[0]=[],L[0].XTI=[]),L[L.length-1].push(J),"_xlnm._FilterDatabase"==J.Name&&J.itab>0&&J.rgce&&J.rgce[0]&&J.rgce[0][0]&&"PtgArea3d"==J.rgce[0][0][0]&&(V[J.itab-1]={ref:aa(J.rgce[0][0][1][2])});break;case 22:I.ExternCount=J;break;case 23:0==L.length&&(L[0]=[],L[0].XTI=[]),L[L.length-1].XTI=L[L.length-1].XTI.concat(J),L.XTI=L.XTI.concat(J);break;case 2196:if(I.biff<8)break;null!=U&&(U.Comment=J[1]);break;case 18:n["!protect"]=J;break;case 19:0!==J&&I.WTF&&console.error("Password verifier: "+J);break;case 133:p[4==I.biff?I.snames.length:J.pos]=J,I.snames.push(J.name);break;case 10:if(--W?!C:C)break;if(m.e){if(m.e.r>0&&m.e.c>0){if(m.e.r--,m.e.c--,n["!ref"]=aa(m),t.sheetRows&&t.sheetRows<=m.e.r){var Q=m.e.r;m.e.r=t.sheetRows-1,n["!fullref"]=n["!ref"],n["!ref"]=aa(m),m.e.r=Q}m.e.r++,m.e.c++}N.length>0&&(n["!merges"]=N),F.length>0&&(n["!objects"]=F),D.length>0&&(n["!cols"]=D),P.length>0&&(n["!rows"]=P),x.Sheets.push(A)}""===b?w=n:a[b]=n,n={},t.dense&&(n["!data"]=[]);break;case 9:case 521:case 1033:case 2057:if(8===I.biff&&(I.biff={9:2,521:3,1033:4}[j]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[J.BIFFVer]||8),I.biffguess=0==J.BIFFVer,0==J.BIFFVer&&4096==J.dt&&(I.biff=5,$=!0,h(I.codepage=28591)),4==I.biff&&256&J.dt&&(C=!0),8==I.biff&&0==J.BIFFVer&&16==J.dt&&(I.biff=2),W++&&!C)break;if(n={},t.dense&&(n["!data"]=[]),I.biff<8&&!$&&($=!0,h(I.codepage=t.codepage||1252)),4==I.biff&&C)b=(p[I.snames.indexOf(b)+1]||{name:""}).name;else if(I.biff<5||0==J.BIFFVer&&4096==J.dt){""===b&&(b="Sheet1"),m={s:{r:0,c:0},e:{r:0,c:0}};var ee={pos:e.l-K,name:b};p[ee.pos]=ee,I.snames.push(b)}else b=(p[G]||{name:""}).name;32==J.dt&&(n["!type"]="chart"),64==J.dt&&(n["!type"]="macro"),N=[],F=[],I.arrayf=k=[],D=[],P=[],M=!1,A={Hidden:(p[G]||{hs:0}).hs,name:b};break;case 515:case 3:case 2:"chart"==n["!type"]&&(t.dense?(n["!data"][J.r]||[])[J.c]:n[Qr(J.c)+Jr(J.r)])&&++J.c,f={ixfe:J.ixfe,XF:_[J.ixfe]||{},v:J.val,t:"n"},z>0&&(f.z=f.XF&&f.XF.numFmtId&&H[f.XF.numFmtId]||H[f.ixfe>>8&63]),_l(f,t,r.opts.Date1904),R({c:J.c,r:J.r},f,t);break;case 5:case 517:f={ixfe:J.ixfe,XF:_[J.ixfe],v:J.val,t:J.t},z>0&&(f.z=f.XF&&f.XF.numFmtId&&H[f.XF.numFmtId]||H[f.ixfe>>8&63]),_l(f,t,r.opts.Date1904),R({c:J.c,r:J.r},f,t);break;case 638:f={ixfe:J.ixfe,XF:_[J.ixfe],v:J.rknum,t:"n"},z>0&&(f.z=f.XF&&f.XF.numFmtId&&H[f.XF.numFmtId]||H[f.ixfe>>8&63]),_l(f,t,r.opts.Date1904),R({c:J.c,r:J.r},f,t);break;case 189:for(var te=J.c;te<=J.C;++te){var re=J.rkrec[te-J.c][0];f={ixfe:re,XF:_[re],v:J.rkrec[te-J.c][1],t:"n"},z>0&&(f.z=f.XF&&f.XF.numFmtId&&H[f.XF.numFmtId]||H[f.ixfe>>8&63]),_l(f,t,r.opts.Date1904),R({c:te,r:J.r},f,t)}break;case 6:case 518:case 1030:if("String"==J.val){v=J;break}if((f=Sl(J.val,J.cell.ixfe,J.tt)).XF=_[f.ixfe],t.cellFormula){var ae=J.formula;if(ae&&ae[0]&&ae[0][0]&&"PtgExp"==ae[0][0][0]){var ne=ae[0][0][1][0],se=ae[0][0][1][1],ie=ta({r:ne,c:se});E[ie]?f.f=""+Xo(J.formula,0,J.cell,L,I):f.F=((t.dense?(n["!data"][ne]||[])[se]:n[ie])||{}).F}else f.f=""+Xo(J.formula,0,J.cell,L,I)}z>0&&(f.z=f.XF&&f.XF.numFmtId&&H[f.XF.numFmtId]||H[f.ixfe>>8&63]),_l(f,t,r.opts.Date1904),R(J.cell,f,t),v=J;break;case 7:case 519:if(!v)throw new Error("String record expects Formula");v.val=J,(f=Sl(J,v.cell.ixfe,"s")).XF=_[f.ixfe],t.cellFormula&&(f.f=""+Xo(v.formula,0,v.cell,L,I)),z>0&&(f.z=f.XF&&f.XF.numFmtId&&H[f.XF.numFmtId]||H[f.ixfe>>8&63]),_l(f,t,r.opts.Date1904),R(v.cell,f,t),v=null;break;case 33:case 545:k.push(J);var oe=ta(J[0].s);if(i=t.dense?(n["!data"][J[0].s.r]||[])[J[0].s.c]:n[oe],t.cellFormula&&i){if(!v)break;if(!oe||!i)break;i.f=""+Xo(J[1],0,J[0],L,I),i.F=aa(J[0])}break;case 1212:if(!t.cellFormula)break;if(y){if(!v)break;E[ta(v.cell)]=J[0],((i=t.dense?(n["!data"][v.cell.r]||[])[v.cell.c]:n[ta(v.cell)])||{}).f=""+Xo(J[0],0,s,L,I)}break;case 253:f=Sl(g[J.isst].t,J.ixfe,"s"),g[J.isst].h&&(f.h=g[J.isst].h),f.XF=_[f.ixfe],z>0&&(f.z=f.XF&&f.XF.numFmtId&&H[f.XF.numFmtId]||H[f.ixfe>>8&63]),_l(f,t,r.opts.Date1904),R({c:J.c,r:J.r},f,t);break;case 513:t.sheetStubs&&(f={ixfe:J.ixfe,XF:_[J.ixfe],t:"z"},z>0&&(f.z=f.XF&&f.XF.numFmtId&&H[f.XF.numFmtId]||H[f.ixfe>>8&63]),_l(f,t,r.opts.Date1904),R({c:J.c,r:J.r},f,t));break;case 190:if(t.sheetStubs)for(var ce=J.c;ce<=J.C;++ce){var le=J.ixfe[ce-J.c];f={ixfe:le,XF:_[le],t:"z"},z>0&&(f.z=f.XF&&f.XF.numFmtId&&H[f.XF.numFmtId]||H[f.ixfe>>8&63]),_l(f,t,r.opts.Date1904),R({c:ce,r:J.r},f,t)}break;case 214:case 516:case 4:(f=Sl(J.val,J.ixfe,"s")).XF=_[f.ixfe],z>0&&(f.z=f.XF&&f.XF.numFmtId&&H[f.XF.numFmtId]||H[f.ixfe>>8&63]),_l(f,t,r.opts.Date1904),R({c:J.c,r:J.r},f,t);break;case 0:case 512:1===W&&(m=J);break;case 252:g=J;break;case 1054:if(I.biff>=3&&I.biff<=4){H[z++]=J[1];for(var fe=0;fe<z+163&&X[fe]!=J[1];++fe);fe>=163&&Ae(J[1],z+163)}else Ae(J[1],J[0]);break;case 30:H[z++]=J;for(var he=0;he<z+163&&X[he]!=J;++he);he>=163&&Ae(J,z+163);break;case 229:N=N.concat(J);break;case 93:F[J.cmo[0]]=I.lastobj=J;break;case 438:I.lastobj.TxO=J;break;case 127:I.lastobj.ImData=J;break;case 440:for(l=J[0].s.r;l<=J[0].e.r;++l)for(c=J[0].s.c;c<=J[0].e.c;++c)(i=t.dense?(n["!data"][l]||[])[c]:n[ta({c,r:l})])&&(i.l=J[1]);break;case 2048:for(l=J[0].s.r;l<=J[0].e.r;++l)for(c=J[0].s.c;c<=J[0].e.c;++c)(i=t.dense?(n["!data"][l]||[])[c]:n[ta({c,r:l})])&&i.l&&(i.l.Tooltip=J[1]);break;case 28:if((i=t.dense?(n["!data"][J[0].r]||[])[J[0].c]:n[ta(J[0])])||(t.dense?(n["!data"][J[0].r]||(n["!data"][J[0].r]=[]),i=n["!data"][J[0].r][J[0].c]={t:"z"}):i=n[ta(J[0])]={t:"z"},m.e.r=Math.max(m.e.r,J[0].r),m.s.r=Math.min(m.s.r,J[0].r),m.e.c=Math.max(m.e.c,J[0].c),m.s.c=Math.min(m.s.c,J[0].c)),i.c||(i.c=[]),I.biff<=5&&I.biff>=2)o={a:"SheetJ5",t:J[1]};else{var ue=F[J[2]];o={a:J[1],t:ue.TxO.t},null==J[3]||2&J[3]||(i.c.hidden=!0)}i.c.push(o);break;case 2173:_[J.ixfe],J.ext.forEach((function(e){e[0]}));break;case 125:if(!I.cellStyles)break;for(;J.e>=J.s;)D[J.e--]={width:J.w/256,level:J.level||0,hidden:!!(1&J.flags)},M||(M=!0,Ci(J.w/256)),Oi(D[J.e+1]);break;case 520:var de={};null!=J.level&&(P[J.r]=de,de.level=J.level),J.hidden&&(P[J.r]=de,de.hidden=!0),J.hpt&&(P[J.r]=de,de.hpt=J.hpt,de.hpx=Ni(J.hpt));break;case 38:case 39:case 40:case 41:n["!margins"]||pc(n["!margins"]={}),n["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[j]]=J;break;case 161:n["!margins"]||pc(n["!margins"]={}),n["!margins"].header=J.header,n["!margins"].footer=J.footer;break;case 574:J.RTL&&(x.Views[0].RTL=!0);break;case 146:S=J;break;case 2198:d=J;break;case 140:u=J;break;case 442:b?A.CodeName=J||A.name:x.WBProps.CodeName=J||"ThisWorkbook"}}else Y||console.error("Missing Info for XLS Record 0x"+j.toString(16)),e.l+=K}return r.SheetNames=De(p).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return p[e].name})),t.bookSheets||(r.Sheets=a),!r.SheetNames.length&&w["!ref"]?(r.SheetNames.push("Sheet1"),r.Sheets&&(r.Sheets.Sheet1=w)):r.Preamble=w,r.Sheets&&V.forEach((function(e,t){r.Sheets[r.SheetNames[t]]["!autofilter"]=e})),r.Strings=g,r.SSF=Ye(X),I.enc&&(r.Encryption=I.enc),d&&(r.Themes=d),r.Metadata={},void 0!==u&&(r.Metadata.Country=u),L.names.length>0&&(x.Names=L.names),r.Workbook=x,r}(a.content,t);else if((s=Re.find(e,"PerfectOffice_MAIN"))&&s.content)n=Ys.to_workbook(s.content,(t.type=i,t));else{if(!(s=Re.find(e,"NativeContent_MAIN"))||!s.content)throw(s=Re.find(e,"MN0"))&&s.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");n=Ys.to_workbook(s.content,(t.type=i,t))}t.bookVBA&&e.FullPaths&&Re.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(n.vbaraw=function(e){var t=Re.utils.cfb_new({root:"R"});return e.FullPaths.forEach((function(r,a){if("/"!==r.slice(-1)&&r.match(/_VBA_PROJECT_CUR/)){var n=r.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Re.utils.cfb_add(t,n,e.FileIndex[a].content)}})),Re.write(t)}(e))}var o={};return e.FullPaths&&function(e,t,r){var a=Re.find(e,"/!DocumentSummaryInformation");if(a&&a.size>0)try{var n=Un(a,Va,xl.DSI);for(var s in n)t[s]=n[s]}catch(e){if(r.WTF)throw e}var i=Re.find(e,"/!SummaryInformation");if(i&&i.size>0)try{var o=Un(i,$a,xl.SI);for(var c in o)null==t[c]&&(t[c]=o[c])}catch(e){if(r.WTF)throw e}t.HeadingPairs&&t.TitlesOfParts&&(gn(t.HeadingPairs,t.TitlesOfParts,t,r),delete t.HeadingPairs,delete t.TitlesOfParts)}(e,o,t),n.Props=n.Custprops=o,t.bookFiles&&(n.cfb=e),n}var Cl={0:{f:function(e,t){var r={},a=e.l+t;r.r=e.read_shift(4),e.l+=4;var n=e.read_shift(2);e.l+=1;var s=e.read_shift(1);return e.l=a,7&s&&(r.level=7&s),16&s&&(r.hidden=!0),32&s&&(r.hpt=n/20),r}},1:{f:function(e){return[ga(e)]}},2:{f:function(e){return[ga(e),Ca(e),"n"]}},3:{f:function(e){return[ga(e),e.read_shift(1),"e"]}},4:{f:function(e){return[ga(e),e.read_shift(1),"b"]}},5:{f:function(e){return[ga(e),Fa(e),"n"]}},6:{f:function(e){return[ga(e),ua(e),"str"]}},7:{f:function(e){return[ga(e),e.read_shift(4),"s"]}},8:{f:function(e,t,r){var a=e.l+t,n=ga(e);n.r=r["!row"];var s=[n,ua(e),"str"];if(r.cellFormula){e.l+=2;var i=qo(e,a-e.l,r);s[3]=Xo(i,0,n,r.supbooks,r)}else e.l=a;return s}},9:{f:function(e,t,r){var a=e.l+t,n=ga(e);n.r=r["!row"];var s=[n,Fa(e),"n"];if(r.cellFormula){e.l+=2;var i=qo(e,a-e.l,r);s[3]=Xo(i,0,n,r.supbooks,r)}else e.l=a;return s}},10:{f:function(e,t,r){var a=e.l+t,n=ga(e);n.r=r["!row"];var s=[n,e.read_shift(1),"b"];if(r.cellFormula){e.l+=2;var i=qo(e,a-e.l,r);s[3]=Xo(i,0,n,r.supbooks,r)}else e.l=a;return s}},11:{f:function(e,t,r){var a=e.l+t,n=ga(e);n.r=r["!row"];var s=[n,e.read_shift(1),"e"];if(r.cellFormula){e.l+=2;var i=qo(e,a-e.l,r);s[3]=Xo(i,0,n,r.supbooks,r)}else e.l=a;return s}},12:{f:function(e){return[wa(e)]}},13:{f:function(e){return[wa(e),Ca(e),"n"]}},14:{f:function(e){return[wa(e),e.read_shift(1),"e"]}},15:{f:function(e){return[wa(e),e.read_shift(1),"b"]}},16:{f:Wc},17:{f:function(e){return[wa(e),ua(e),"str"]}},18:{f:function(e){return[wa(e),e.read_shift(4),"s"]}},19:{f:ma},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:function(e,t,r){var a=e.l+t,n=e.read_shift(4);e.l+=1;var s=e.read_shift(4),i=Sa(e),o=Qo(e,0,r),c=ka(e);32&n&&(i="_xlnm."+i),e.l=a;var l={Name:i,Ptg:o,Flags:n};return s<268435455&&(l.Sheet=s),c&&(l.Comment=c),l}},40:{},42:{},43:{f:function(e,t,r){var a={};a.sz=e.read_shift(2)/20;var n=function(e){var t=e.read_shift(1);return e.l++,{fBold:1&t,fItalic:2&t,fUnderline:4&t,fStrikeout:8&t,fOutline:16&t,fShadow:32&t,fCondense:64&t,fExtend:128&t}}(e);switch(n.fItalic&&(a.italic=1),n.fCondense&&(a.condense=1),n.fExtend&&(a.extend=1),n.fShadow&&(a.shadow=1),n.fOutline&&(a.outline=1),n.fStrikeout&&(a.strike=1),700===e.read_shift(2)&&(a.bold=1),e.read_shift(2)){case 1:a.vertAlign="superscript";break;case 2:a.vertAlign="subscript"}var s=e.read_shift(1);0!=s&&(a.underline=s);var i=e.read_shift(1);i>0&&(a.family=i);var o=e.read_shift(1);switch(o>0&&(a.charset=o),e.l++,a.color=function(e){var t={},r=e.read_shift(1)>>>1,a=e.read_shift(1),n=e.read_shift(2,"i"),s=e.read_shift(1),i=e.read_shift(1),o=e.read_shift(1);switch(e.l++,r){case 0:t.auto=1;break;case 1:t.index=a;var c=Ka[a];c&&(t.rgb=bi(c));break;case 2:t.rgb=bi([s,i,o]);break;case 3:t.theme=a}return 0!=n&&(t.tint=n>0?n/32767:n/32768),t}(e),e.read_shift(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor"}return a.name=ua(e),a}},44:{f:function(e,t){return[e.read_shift(2),ua(e)]}},45:{f:Wi},46:{f:$i},47:{f:function(e,t){var r=e.l+t,a=e.read_shift(2),n=e.read_shift(2);return e.l=r,{ixfe:a,numFmtId:n}}},48:{},49:{f:function(e){return e.read_shift(4,"i")}},50:{},51:{f:function(e){for(var t=[],r=e.read_shift(4);r-- >0;)t.push([e.read_shift(4),e.read_shift(4)]);return t}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Us},62:{f:function(e){return[ga(e),ma(e),"is"]}},63:{f:function(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=ta(r);var a=e.read_shift(1);return 2&a&&(t.l="1"),8&a&&(t.a="1"),t}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:zr,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(e){var t=e.read_shift(2);return e.l+=28,{RTL:32&t}}},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:function(e,t){var r={},a=e[e.l];return++e.l,r.above=!(64&a),r.left=!(128&a),e.l+=18,r.name=ya(e,t-19),r}},148:{f:Mc,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var r={},a=e.read_shift(4);r.defaultThemeVersion=e.read_shift(4);var n=t>8?ua(e):"";return n.length>0&&(r.CodeName=n),r.autoCompressPictures=!!(65536&a),r.backupFile=!!(64&a),r.checkCompatibility=!!(4096&a),r.date1904=!!(1&a),r.filterPrivacy=!!(8&a),r.hidePivotFieldList=!!(1024&a),r.promptedSolutions=!!(16&a),r.publishItems=!!(2048&a),r.refreshAllConnections=!!(262144&a),r.saveExternalLinkValues=!!(128&a),r.showBorderUnselectedTables=!!(4&a),r.showInkAnnotation=!!(32&a),r.showObjects=["all","placeholders","none"][a>>13&3],r.showPivotChartFilter=!!(32768&a),r.updateLinks=["userSet","never","always"][a>>8&3],r}},154:{},155:{},156:{f:function(e,t){var r={};return r.Hidden=e.read_shift(4),r.iTabID=e.read_shift(4),r.strRelID=xa(e,t-8),r.name=ua(e),r}},157:{},158:{},159:{T:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{T:-1},161:{T:1,f:Ia},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:zc},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:function(e,t){return{flags:e.read_shift(4),version:e.read_shift(4),name:ua(e)}}},336:{T:-1},337:{f:function(e){return e.l+=4,0!=e.read_shift(4)},T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:xa},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Is},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:function(e,t,r){var a=e.l+t,n=Ra(e),s=e.read_shift(1),i=[n];if(i[2]=s,r.cellFormula){var o=Jo(e,a-e.l,r);i[1]=o}else e.l=a;return i}},427:{f:function(e,t,r){var a=e.l+t,n=[Ia(e,16)];if(r.cellFormula){var s=ec(e,a-e.l,r);n[1]=s,e.l=a}else e.l=a;return n}},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:function(e){var t={};return Vc.forEach((function(r){t[r]=Fa(e)})),t}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:function(e,t){var r=e.l+t,a=Ia(e,16),n=ka(e),s=ua(e),i=ua(e),o=ua(e);e.l=r;var c={rfx:a,relId:n,loc:s,display:o};return i&&(c.Tooltip=i),c}},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:xa},551:{f:ka},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:lo},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var r=Ia(e,16);return t.rfx=r.s,t.ref=ta(r.s),e.l+=16,t}},636:{T:-1},637:{f:va},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:function(e,t){return e.l+=10,{name:ua(e)}}},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:function(){}},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},Ol={6:{f:Yo},10:{f:Wn},12:{f:Vn},13:{f:Vn},14:{f:zn},15:{f:zn},16:{f:Fa},17:{f:zn},18:{f:zn},19:{f:Vn},20:{f:Cs},21:{f:Cs},23:{f:Is},24:{f:Rs},25:{f:zn},26:{},27:{},28:{f:function(e,t,r){if(r&&r.biff<8){var a=e.read_shift(2),n=e.read_shift(2);if(65535==a||-1==a)return;var s=e.read_shift(2);return[{r:a,c:n},e.read_shift(Math.min(s,2048),"cpstr")]}return function(e,t,r){var a=e.read_shift(2),n=e.read_shift(2),s=e.read_shift(2),i=e.read_shift(2);return[{r:a,c:n},Qn(e,0,r),i,s]}(e,0,r)}},29:{},34:{f:zn},35:{f:Os},38:{f:Fa},39:{f:Fa},40:{f:Fa},41:{f:Fa},42:{f:zn},43:{f:zn},47:{f:function(e,t,r){var a={Type:r.biff>=8?e.read_shift(2):0};return a.Type?function(e,t,r){var a=r||{};a.Info=e.read_shift(2),e.l-=2,1===a.Info?a.Data=function(e){var t={},r=t.EncryptionVersionInfo=ci(e,4);if(1!=r.Major||1!=r.Minor)throw"unrecognized version code "+r.Major+" : "+r.Minor;return t.Salt=e.read_shift(16),t.EncryptedVerifier=e.read_shift(16),t.EncryptedVerifierHash=e.read_shift(16),t}(e):a.Data=function(e,t){var r={},a=r.EncryptionVersionInfo=ci(e,4);if(t-=4,2!=a.Minor)throw new Error("unrecognized minor version code: "+a.Minor);if(a.Major>4||a.Major<2)throw new Error("unrecognized major version code: "+a.Major);r.Flags=e.read_shift(4),t-=4;var n=e.read_shift(4);return t-=4,r.EncryptionHeader=fi(e,n),t-=n,r.EncryptionVerifier=hi(e,t),r}(e,t)}(e,t-2,a):function(e,t,r,a){var n,s,i,o={key:Vn(e),verificationBytes:Vn(e)};r.password&&(o.verifier=mi(r.password)),a.valid=o.verificationBytes===o.verifier,a.valid&&(a.insitu=(n=r.password,s=0,i=vi(n),function(e){var t=function(e,t,r,a,n){var s,i;for(n||(n=t),a||(a=vi("")),s=0;s!=t.length;++s)i=t[s],i=255&((i^=a[r])>>5|i<<3),n[s]=i,++r;return[n,r,a]}(0,e,s,i);return s=t[1],t[0]}))}(e,r.biff,r,a),a}},49:{f:function(e,t,r){var a={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(r&&r.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10}return a.name=Kn(e,0,r),a}},51:{f:Vn},60:{},61:{f:function(e){return{Pos:[e.read_shift(2),e.read_shift(2)],Dim:[e.read_shift(2),e.read_shift(2)],Flags:e.read_shift(2),CurTab:e.read_shift(2),FirstTab:e.read_shift(2),Selected:e.read_shift(2),TabRatio:e.read_shift(2)}}},64:{f:zn},65:{f:function(){}},66:{f:Vn},77:{},80:{},81:{},82:{},85:{f:Vn},89:{},90:{},91:{},92:{f:function(e,t,r){if(r.enc)return e.l+=t,"";var a=e.l,n=Qn(e,0,r);return e.read_shift(t+a-e.l),n}},93:{f:function(e,t,r){if(r&&r.biff<8)return function(e,t,r){e.l+=4;var a=e.read_shift(2),n=e.read_shift(2),s=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,t-=36;var i=[];return i.push((Ps[a]||zr)(e,t,r)),{cmo:[n,a,s],ft:i}}(e,t,r);var a=ps(e),n=function(e,t){for(var r=e.l+t,a=[];e.l<r;){var n=e.read_shift(2);e.l-=2;try{a[n]=vs[n](e,r-e.l)}catch(t){return e.l=r,a}}return e.l!=r&&(e.l=r),a}(e,t-22,a[1]);return{cmo:a,ft:n}}},94:{},95:{f:zn},96:{},97:{},99:{f:zn},125:{f:Us},128:{f:function(e){e.l+=4;var t=[e.read_shift(2),e.read_shift(2)];if(0!==t[0]&&t[0]--,0!==t[1]&&t[1]--,t[0]>7||t[1]>7)throw new Error("Bad Gutters: "+t.join("|"));return t}},129:{f:function(e,t,r){var a=r&&8==r.biff||2==t?e.read_shift(2):(e.l+=t,0);return{fDialog:16&a,fBelow:64&a,fRight:128&a}}},130:{f:Vn},131:{f:zn},132:{f:zn},133:{f:function(e,t,r){var a="";if(4==r.biff)return 0===(a=Kn(e,0,r)).length&&(a="Sheet1"),{name:a};var n=e.read_shift(4),s=3&e.read_shift(1),i=e.read_shift(1);switch(i){case 0:i="Worksheet";break;case 1:i="Macrosheet";break;case 2:i="Chartsheet";break;case 6:i="VBAModule"}return 0===(a=Kn(e,0,r)).length&&(a="Sheet1"),{pos:n,hs:s,dt:i,name:a}}},134:{},140:{f:function(e){var t,r=[0,0];return t=e.read_shift(2),r[0]=Ga[t]||t,t=e.read_shift(2),r[1]=Ga[t]||t,r}},141:{f:Vn},144:{},146:{f:function(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(ss(e));return r}},151:{},152:{},153:{},154:{},155:{},156:{f:Vn},157:{},158:{},160:{f:Ws},161:{f:function(e,t){var r={};return t<32||(e.l+=16,r.header=Fa(e),r.footer=Fa(e),e.l+=2),r}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(e,t){for(var r=e.l+t-2,a=e.read_shift(2),n=e.read_shift(2),s=[];e.l<r;)s.push(ls(e));if(e.l!==r)throw new Error("MulRK read error");var i=e.read_shift(2);if(s.length!=i-n+1)throw new Error("MulRK length mismatch");return{r:a,c:n,C:i,rkrec:s}}},190:{f:function(e,t){for(var r=e.l+t-2,a=e.read_shift(2),n=e.read_shift(2),s=[];e.l<r;)s.push(e.read_shift(2));if(e.l!==r)throw new Error("MulBlank read error");var i=e.read_shift(2);if(s.length!=i-n+1)throw new Error("MulBlank length mismatch");return{r:a,c:n,C:i,ixfe:s}}},193:{f:Wn},197:{},198:{},199:{},200:{},201:{},202:{f:zn},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Vn},220:{},221:{f:zn},222:{},224:{f:function(e,t,r){var a={};return a.ifnt=e.read_shift(2),a.numFmtId=e.read_shift(2),a.flags=e.read_shift(2),a.fStyle=a.flags>>2&1,a.data=function(e,t,r,a){var n={},s=e.read_shift(4),i=e.read_shift(4),o=e.read_shift(4),c=e.read_shift(2);return n.patternType=Xa[o>>26],a.cellStyles?(n.alc=7&s,n.fWrap=s>>3&1,n.alcV=s>>4&7,n.fJustLast=s>>7&1,n.trot=s>>8&255,n.cIndent=s>>16&15,n.fShrinkToFit=s>>20&1,n.iReadOrder=s>>22&2,n.fAtrNum=s>>26&1,n.fAtrFnt=s>>27&1,n.fAtrAlc=s>>28&1,n.fAtrBdr=s>>29&1,n.fAtrPat=s>>30&1,n.fAtrProt=s>>31&1,n.dgLeft=15&i,n.dgRight=i>>4&15,n.dgTop=i>>8&15,n.dgBottom=i>>12&15,n.icvLeft=i>>16&127,n.icvRight=i>>23&127,n.grbitDiag=i>>30&3,n.icvTop=127&o,n.icvBottom=o>>7&127,n.icvDiag=o>>14&127,n.dgDiag=o>>21&15,n.icvFore=127&c,n.icvBack=c>>7&127,n.fsxButton=c>>14&1,n):n}(e,0,a.fStyle,r),a}},225:{f:function(e,t){return 0===t||e.read_shift(2),1200}},226:{f:Wn},227:{},229:{f:function(e,t){for(var r=[],a=e.read_shift(2);a--;)r.push(fs(e));return r}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(e,t){for(var r=e.l+t,a=e.read_shift(4),n=e.read_shift(4),s=[],i=0;i!=n&&e.l<r;++i)s.push(Yn(e));return s.Count=a,s.Unique=n,s}},253:{f:function(e,t,r){var a=is(e,t,r);return a.isst=e.read_shift(4),a}},255:{f:function(e,t){var r={};return r.dsst=e.read_shift(2),e.l+=t-2,r}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:Gn},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:zn},353:{f:Wn},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:function(e,t,r){var a=e.l+t,n=e.read_shift(2),s=e.read_shift(2);if(r.sbcch=s,1025==s||14849==s)return[s,n];if(s<1||s>255)throw new Error("Unexpected SupBook type: "+s);for(var i=Jn(e,s),o=[];a>e.l;)o.push(qn(e));return[s,n,i,o]}},431:{f:zn},432:{},433:{},434:{},437:{},438:{f:function(e,t,r){var a=e.l,n="";try{e.l+=4;var s=(r.lastobj||{cmo:[0,0]}).cmo[1];-1==[0,5,7,11,12,14].indexOf(s)?e.l+=6:function(e){var t=e.read_shift(1);e.l++;var r=e.read_shift(2);e.l+=2}(e);var i=e.read_shift(2);e.read_shift(2),Vn(e);var o=e.read_shift(2);e.l+=o;for(var c=1;c<e.lens.length-1;++c){if(e.l-a!=e.lens[c])throw new Error("TxO: bad continue record");var l=e[e.l];if((n+=Jn(e,e.lens[c+1]-e.lens[c]-1)).length>=(l?i:2*i))break}if(n.length!==i&&n.length!==2*i)throw new Error("cchText: "+i+" != "+n.length);return e.l=a+t,{t:n}}catch(r){return e.l=a+t,{t:n}}}},439:{f:zn},440:{f:function(e,t){var r=fs(e);e.l+=16;var a=function(e,t){var r=e.l+t,a=e.read_shift(4);if(2!==a)throw new Error("Unrecognized streamVersion: "+a);var n=e.read_shift(2);e.l+=2;var s,i,o,c,l,f,h="";16&n&&(s=ts(e,e.l)),128&n&&(i=ts(e,e.l)),257&~n||(o=ts(e,e.l)),1==(257&n)&&(c=function(e,t){var r=e.read_shift(16);switch(r){case"e0c9ea79f9bace118c8200aa004ba90b":return function(e){var t=e.read_shift(4),r=e.l,a=!1;t>24&&(e.l+=t-24,"795881f43b1d7f48af2c825dc4852763"===e.read_shift(16)&&(a=!0),e.l=r);var n=e.read_shift((a?t-24:t)>>1,"utf16le").replace(D,"");return a&&(e.l+=24),n}(e);case"0303000000000000c000000000000046":return function(e){for(var t=e.read_shift(2),r="";t-- >0;)r+="../";var a=e.read_shift(0,"lpstr-ansi");if(e.l+=2,57005!=e.read_shift(2))throw new Error("Bad FileMoniker");if(0===e.read_shift(4))return r+a.replace(/\\/g,"/");var n=e.read_shift(4);if(3!=e.read_shift(2))throw new Error("Bad FileMoniker");return r+e.read_shift(n>>1,"utf16le").replace(D,"")}(e);default:throw new Error("Unsupported Moniker "+r)}}(e,e.l)),8&n&&(h=ts(e,e.l)),32&n&&(l=e.read_shift(16)),64&n&&(f=_n(e)),e.l=r;var u=i||o||c||"";u&&h&&(u+="#"+h),u||(u="#"+h),2&n&&"/"==u.charAt(0)&&"/"!=u.charAt(1)&&(u="file://"+u);var d={Target:u};return l&&(d.guid=l),f&&(d.time=f),s&&(d.Tooltip=s),d}(e,t-24);return[r,a]}},441:{},442:{f:qn},443:{},444:{f:Vn},445:{},446:{},448:{f:Wn},449:{f:function(e){return e.read_shift(2),e.read_shift(4)},r:2},450:{f:Wn},512:{f:ks},513:{f:Bs},515:{f:function(e,t,r){r.biffguess&&2==r.biff&&(r.biff=5);var a=is(e,6,r),n=Fa(e);return a.val=n,a}},516:{f:function(e,t,r){r.biffguess&&2==r.biff&&(r.biff=5),e.l;var a=is(e,t,r),n=qn(e,e.l,r);return a.val=n,a}},517:{f:function(e,t,r){var a=is(e,6,r),n=Xn(e);return a.val=n,a.t=!0===n||!1===n?"b":"e",a}},519:{f:zs},520:{f:function(e){var t={};t.r=e.read_shift(2),t.c=e.read_shift(2),t.cnt=e.read_shift(2)-t.c;var r=e.read_shift(2);e.l+=4;var a=e.read_shift(1);return e.l+=3,7&a&&(t.level=7&a),32&a&&(t.hidden=!0),64&a&&(t.hpt=r/20),t}},523:{},545:{f:Fs},549:{f:Ts},566:{},574:{f:function(e,t,r){return r&&r.biff>=2&&r.biff<5?{}:{RTL:64&e.read_shift(2)}}},638:{f:function(e){var t=e.read_shift(2),r=e.read_shift(2),a=ls(e);return{r:t,c:r,ixfe:a[0],rknum:a[1]}}},659:{},1048:{},1054:{f:function(e,t,r){return[e.read_shift(2),Qn(e,0,r)]}},1084:{},1212:{f:function(e,t,r){var a=us(e);e.l++;var n=e.read_shift(1);return[Ko(e,t-=8,r),n,a]}},2048:{f:function(e,t){e.read_shift(2);var r=fs(e),a=e.read_shift((t-10)/2,"dbcs-cont");return[r,a=a.replace(D,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:gs},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Wn},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(e){e.l+=2;var t={cxfs:0,crc:0};return t.cxfs=e.read_shift(2),t.crc=e.read_shift(4),t},r:12},2173:{f:function(e,t){e.l,e.l+=2;var r=e.read_shift(2);e.l+=2;for(var a=e.read_shift(2),n=[];a-- >0;)n.push(ro(e,e.l));return{ixfe:r,ext:n}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:zn,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(e,t,r){if(!(r.biff<8)){var a=e.read_shift(2),n=e.read_shift(2);return[Jn(e,a,r),Jn(e,n,r)]}e.l+=t},r:12},2197:{},2198:{f:function(e,t,r){var a=e.l+t;if(124226!==e.read_shift(4))if(r.cellStyles){var n,s=e.slice(e.l);e.l=a;try{n=gt(s,{type:"array"})}catch(e){return}var i=ut(n,"theme/theme/theme1.xml",!0);if(i)return eo(i,r)}else e.l=a},r:12},2199:{},2200:{},2201:{},2202:{f:function(e){return[0!==e.read_shift(4),0!==e.read_shift(4),e.read_shift(4)]},r:12},2203:{f:Wn},2204:{},2205:{},2206:{},2207:{},2211:{f:function(e){var t=function(e){var t=e.read_shift(2),r=e.read_shift(2);return e.l+=8,{type:t,flags:r}}(e);if(2211!=t.type)throw new Error("Invalid Future Record "+t.type);return 0!==e.read_shift(4)}},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Vn},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(e,t,r){var a={area:!1};if(5!=r.biff)return e.l+=t,a;var n=e.read_shift(1);return e.l+=3,16&n&&(a.area=!0),a}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(e){for(var t=e.read_shift(2),r=[];t-- >0;)r.push(ss(e));return r}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:ks},1:{},2:{f:function(e,t,r){var a=is(e,7,r),n=e.read_shift(2);return a.t="n",a.val=n,a}},3:{f:function(e,t,r){var a=is(e,7,r),n=Fa(e);return a.t="n",a.val=n,a}},4:{f:function(e,t,r){r.biffguess&&5==r.biff&&(r.biff=2);var a=is(e,7,r),n=Qn(e,0,r);return a.t="str",a.val=n,a}},5:{f:function(e,t,r){var a=e.l+7,n=is(e,6,r);e.l=a;var s=Xn(e);return n.val=s,n.t=!0===s||!1===s?"b":"e",n}},7:{f:function(e){var t=e.read_shift(1);return 0===t?(e.l++,""):e.read_shift(t,"sbcs-cont")}},8:{},9:{f:gs},11:{},22:{f:Vn},30:{f:Es},31:{},32:{},33:{f:Fs},36:{},37:{f:Ts},50:{f:function(e,t){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=t-13}},62:{},52:{},67:{f:function(e){var t={};return t.ifnt=e.read_shift(1),e.l++,t.flags=e.read_shift(1),t.numFmtId=63&t.flags,t.flags>>=6,t.fStyle=0,t.data={},t}},68:{f:Vn},69:{},86:{},126:{},127:{f:function(e){var t=e.read_shift(2),r=e.read_shift(2),a=e.read_shift(4),n={fmt:t,env:r,len:a,data:e.slice(e.l,e.l+a)};return e.l+=a,n}},135:{},136:{},137:{},143:{f:function(e){var t=e.read_shift(4),r=e.read_shift(1),a=e.read_shift(r,"sbcs");return 0===a.length&&(a="Sheet1"),{flags:t,name:a}}},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(e,t,r){var a=e.l+t,n=is(e,6,r),s=e.read_shift(2),i=Jn(e,s,r);return e.l=a,n.t="str",n.val=i,n}},223:{},234:{},354:{},421:{},518:{f:Yo},521:{f:gs},536:{f:Rs},547:{f:Os},561:{},579:{f:function(e){var t={};return t.ifnt=e.read_shift(1),t.numFmtId=e.read_shift(1),t.flags=e.read_shift(2),t.fStyle=t.flags>>2&1,t.data={},t}},1030:{f:Yo},1033:{f:gs},1091:{f:function(e){var t={};return t.ifnt=e.read_shift(1),t.numFmtId=e.read_shift(1),t.flags=e.read_shift(2),t.fStyle=t.flags>>2&1,t.data={},t}},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},101:{},102:{},105:{},106:{},107:{},109:{},112:{},114:{},29282:{}};function Rl(e,t,r,a){var n=t;if(!isNaN(n)){var s=a||(r||[]).length||0,i=e.next(4);i.write_shift(2,n),i.write_shift(2,s),s>0&&xr(r)&&e.push(r)}}function Il(e,t,r,a){var n=Hr(9);return Hs(n,e,t),jn(r,a||"b",n),n}function Nl(e,t){t.forEach((function(t){var r=t[0].map((function(e){return e.t})).join("");if(r.length<=2048)return Rl(e,28,Ds(r,t[1],t[2]));Rl(e,28,Ds(r.slice(0,2048),t[1],t[2],r.length));for(var a=2048;a<r.length;a+=2048)Rl(e,28,Ds(r.slice(a,Math.min(a+2048,r.length)),-1,-1,Math.min(2048,r.length-a)))}))}function Fl(e,t,r,a,n,s){var i=0;null!=t.z&&-1==(i=n._BIFF2FmtTable.indexOf(t.z))&&(n._BIFF2FmtTable.push(t.z),i=n._BIFF2FmtTable.length-1);var o,c,l,f,h=0;if(null!=t.z){for(;h<n.cellXfs.length&&n.cellXfs[h].numFmtId!=i;++h);h==n.cellXfs.length&&n.cellXfs.push({numFmtId:i})}if(null!=t.v)switch(t.t){case"d":case"n":var u="d"==t.t?ze(je(t.v,s),s):t.v;return void(2==n.biff&&u==(0|u)&&u>=0&&u<65536?Rl(e,2,function(e,t,r,a,n){var s=Hr(9);return Hs(s,e,t,a||0,n||0),s.write_shift(2,r),s}(r,a,u,h,i)):isNaN(u)?Rl(e,5,Il(r,a,36,"e")):isFinite(u)?Rl(e,3,function(e,t,r,a,n){var s=Hr(15);return Hs(s,e,t,a||0,n||0),s.write_shift(8,r,"f"),s}(r,a,u,h,i)):Rl(e,5,Il(r,a,7,"e")));case"b":case"e":return void Rl(e,5,Il(r,a,t.v,t.t));case"s":case"str":return void Rl(e,4,(o=r,c=a,l=null==t.v?"":String(t.v).slice(0,255),f=Hr(8+2*l.length),Hs(f,o,c),f.write_shift(1,l.length),f.write_shift(l.length,l,"sbcs"),f.l<f.length?f.slice(0,f.l):f))}Rl(e,1,Hs(null,r,a))}var Dl=1,Pl=[];function Ml(e,t,r,a,n,s){var i=16+mc(n.cellXfs,t,n);if(null!=t.v||t.bf)if(t.bf)Rl(e,6,function(e,t,r,a,n){var s=os(t,r,n),i=function(e){if(null==e){var t=Hr(8);return t.write_shift(1,3),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,65535),t}return Da("number"==typeof e?e:0)}(e.v),o=Hr(6);o.write_shift(2,33),o.write_shift(4,0);for(var c=Hr(e.bf.length),l=0;l<e.bf.length;++l)c[l]=e.bf[l];return F([s,i,o,c])}(t,r,a,0,i));else switch(t.t){case"d":case"n":var o="d"==t.t?ze(je(t.v,s),s):t.v;isNaN(o)?Rl(e,517,As(r,a,36,i,0,"e")):isFinite(o)?Rl(e,515,function(e,t,r,a){var n=Hr(14);return os(e,t,a,n),Da(r,n),n}(r,a,o,i)):Rl(e,517,As(r,a,7,i,0,"e"));break;case"b":case"e":Rl(e,517,As(r,a,t.v,i,0,t.t));break;case"s":case"str":n.bookSST?Rl(e,253,function(e,t,r,a){var n=Hr(10);return os(e,t,a,n),n.write_shift(4,r),n}(r,a,uc(n.Strings,null==t.v?"":String(t.v),n.revStrings),i)):Rl(e,516,function(e,t,r,a,n){var s=!n||8==n.biff,i=Hr(+s+8+(1+s)*r.length);return os(e,t,a,i),i.write_shift(2,r.length),s&&i.write_shift(1,1),i.write_shift((1+s)*r.length,r,s?"utf16le":"sbcs"),i}(r,a,(null==t.v?"":String(t.v)).slice(0,255),i,n));break;default:Rl(e,513,os(r,a,i))}else Rl(e,513,os(r,a,i))}function Ll(e,t,r){var a,n,s,i=$r(),o=r.SheetNames[e],c=r.Sheets[o]||{},l=(r||{}).Workbook||{},f=(l.Sheets||[])[e]||{},h=null!=c["!data"],u=8==t.biff,d="",p=[],m=ia(c["!ref"]||"A1"),v=u?65536:16384;if(m.e.c>255||m.e.r>=v){if(t.WTF)throw new Error("Range "+(c["!ref"]||"A1")+" exceeds format limit A1:IV16384");m.e.c=Math.min(m.e.c,255),m.e.r=Math.min(m.e.c,v-1)}Rl(i,2057,bs(0,16,t)),Rl(i,13,$n(1)),Rl(i,12,$n(100)),Rl(i,15,Hn(!0)),Rl(i,17,Hn(!1)),Rl(i,16,Da(.001)),Rl(i,95,Hn(!0)),Rl(i,42,Hn(!1)),Rl(i,43,Hn(!1)),Rl(i,130,$n(1)),Rl(i,128,(n=[0,0],(s=Hr(8)).write_shift(4,0),s.write_shift(2,n[0]?n[0]+1:0),s.write_shift(2,n[1]?n[1]+1:0),s)),Rl(i,131,Hn(!1)),Rl(i,132,Hn(!1)),u&&function(e,t){if(t){var r=0;t.forEach((function(t,a){++r<=256&&t&&Rl(e,125,function(e,t){var r=Hr(12);r.write_shift(2,t),r.write_shift(2,t),r.write_shift(2,256*e.width),r.write_shift(2,0);var a=0;return e.hidden&&(a|=1),r.write_shift(1,a),a=e.level||0,r.write_shift(1,a),r.write_shift(2,0),r}(dc(a,t),a))}))}}(i,c["!cols"]),Rl(i,512,function(e,t){var r=8!=t.biff&&t.biff?2:4,a=Hr(2*r+6);return a.write_shift(r,e.s.r),a.write_shift(r,e.e.r+1),a.write_shift(2,e.s.c),a.write_shift(2,e.e.c+1),a.write_shift(2,0),a}(m,t));var g=(((r||{}).Workbook||{}).WBProps||{}).date1904;u&&(c["!links"]=[]);for(var b=[],w=[],T=m.s.c;T<=m.e.c;++T)p[T]=Qr(T);for(var y=m.s.r;y<=m.e.r;++y)for(h&&(w=c["!data"][y]||[]),d=Jr(y),T=m.s.c;T<=m.e.c;++T){a=p[T]+d;var E=h?w[T]:c[a];E&&(Ml(i,E,y,T,t,g),u&&E.l&&c["!links"].push([a,E.l]),E.c&&b.push([E.c,y,T]))}var k=f.CodeName||f.name||o;return u?function(e,t){var r,a=[],n=0,s=$r(),i=Dl;t.forEach((function(e,t){var i="",o=e[0].map((function(e){return e.a&&!i&&(i=e.a),e.t})).join("");++Dl;var c=Hr(150);c.write_shift(2,15),c.write_shift(2,61444),c.write_shift(4,150),c.write_shift(2,3234),c.write_shift(2,61450),c.write_shift(4,8),c.write_shift(4,Dl),c.write_shift(4,2560),c.write_shift(2,227),c.write_shift(2,61451),c.write_shift(4,84),c.write_shift(2,128),c.write_shift(4,0),c.write_shift(2,139),c.write_shift(4,2),c.write_shift(2,191),c.write_shift(4,524296),c.write_shift(2,344),c.l+=4,c.write_shift(2,385),c.write_shift(4,134217808),c.write_shift(2,387),c.write_shift(4,134217808),c.write_shift(2,389),c.write_shift(4,268435700),c.write_shift(2,447),c.write_shift(4,1048592),c.write_shift(2,448),c.write_shift(4,134217809),c.write_shift(2,451),c.write_shift(4,268435700),c.write_shift(2,513),c.write_shift(4,134217809),c.write_shift(2,515),c.write_shift(4,268435700),c.write_shift(2,575),c.write_shift(4,196609),c.write_shift(2,959),c.write_shift(4,131072|(e[0].hidden?2:0)),c.l+=2,c.write_shift(2,61456),c.write_shift(4,18),c.write_shift(2,3),c.write_shift(2,e[2]+2),c.l+=2,c.write_shift(2,e[1]+1),c.l+=2,c.write_shift(2,e[2]+4),c.l+=2,c.write_shift(2,e[1]+5),c.l+=2,c.l+=2,c.write_shift(2,61457),c.l+=4,c.l=150,0==t?r=c:Rl(s,236,c),n+=150;var l=Hr(52);l.write_shift(2,21),l.write_shift(2,18),l.write_shift(2,25),l.write_shift(2,Dl),l.write_shift(2,0),l.l=22,l.write_shift(2,13),l.write_shift(2,22),l.write_shift(4,1651663474),l.write_shift(4,2503426821),l.write_shift(4,2150634280),l.write_shift(4,1768515844+256*Dl),l.write_shift(2,0),l.write_shift(4,0),l.l+=4,Rl(s,93,l);var f=Hr(8);f.l+=2,f.write_shift(2,61453),f.l+=4,Rl(s,236,f),n+=8;var h=Hr(18);h.write_shift(2,18),h.l+=8,h.write_shift(2,o.length),h.write_shift(2,16),h.l+=4,Rl(s,438,h);var u=Hr(1+o.length);u.write_shift(1,0),u.write_shift(o.length,o,"sbcs"),Rl(s,60,u);var d=Hr(16);d.l+=8,d.write_shift(2,o.length),d.l+=6,Rl(s,60,d);var p=Hr(12+i.length);p.write_shift(2,e[1]),p.write_shift(2,e[2]),p.write_shift(2,0|(e[0].hidden?0:2)),p.write_shift(2,Dl),p.write_shift(2,i.length),p.write_shift(1,0),p.write_shift(i.length,i,"sbcs"),p.l++,a.push(p)}));var o=Hr(80);o.write_shift(2,15),o.write_shift(2,61442),o.write_shift(4,n+o.length-8),o.write_shift(2,16),o.write_shift(2,61448),o.write_shift(4,8),o.write_shift(4,t.length+1),o.write_shift(4,Dl),o.write_shift(2,15),o.write_shift(2,61443),o.write_shift(4,n+48),o.write_shift(2,15),o.write_shift(2,61444),o.write_shift(4,40),o.write_shift(2,1),o.write_shift(2,61449),o.write_shift(4,16),o.l+=16,o.write_shift(2,2),o.write_shift(2,61450),o.write_shift(4,8),o.write_shift(4,i),o.write_shift(4,5),Rl(e,236,r?F([o,r]):o),e.push(s.end()),a.forEach((function(t){Rl(e,28,t)})),Pl.push([i,t.length+1,Dl]),++Dl}(i,b):Nl(i,b),u&&Rl(i,574,function(e){var t=Hr(18),r=1718;return e&&e.RTL&&(r|=64),t.write_shift(2,r),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}((l.Views||[])[0])),u&&(c["!merges"]||[]).length&&Rl(i,229,function(e){var t=Hr(2+8*e.length);t.write_shift(2,e.length);for(var r=0;r<e.length;++r)hs(e[r],t);return t}(c["!merges"])),u&&function(e,t){for(var r=0;r<t["!links"].length;++r){var a=t["!links"][r];Rl(e,440,Ms(a)),a[1].Tooltip&&Rl(e,2048,Ls(a))}delete t["!links"]}(i,c),Rl(i,442,es(k)),u&&function(e,t){var r=Hr(19);r.write_shift(4,2151),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,1),r.write_shift(4,0),Rl(e,2151,r),(r=Hr(39)).write_shift(4,2152),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(2,3),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(2,1),r.write_shift(4,4),r.write_shift(2,0),hs(ia(t["!ref"]||"A1"),r),r.write_shift(4,4),Rl(e,2152,r)}(i,c),Rl(i,10),i.end()}function Ul(e,t,r){var a,n=$r(),s=(e||{}).Workbook||{},i=s.Sheets||[],o=s.WBProps||{},c=8==r.biff,l=5==r.biff;Rl(n,2057,bs(0,5,r)),"xla"==r.bookType&&Rl(n,135),Rl(n,225,c?$n(1200):null),Rl(n,193,function(e,t){t||(t=Hr(2));for(var r=0;r<2;++r)t.write_shift(1,0);return t}()),l&&Rl(n,191),l&&Rl(n,192),Rl(n,226),Rl(n,92,function(e,t){var r=!t||8==t.biff,a=Hr(r?112:54);for(a.write_shift(8==t.biff?2:1,7),r&&a.write_shift(1,0),a.write_shift(4,859007059),a.write_shift(4,5458548|(r?0:536870912));a.l<a.length;)a.write_shift(1,r?0:32);return a}(0,r)),Rl(n,66,$n(c?1200:1252)),c&&Rl(n,353,$n(0)),c&&Rl(n,448),Rl(n,317,function(e){for(var t=Hr(2*e),r=0;r<e;++r)t.write_shift(2,r+1);return t}(e.SheetNames.length)),c&&e.vbaraw&&Rl(n,211),c&&e.vbaraw&&Rl(n,442,es(o.CodeName||"ThisWorkbook")),Rl(n,156,$n(17)),Rl(n,25,Hn(!1)),Rl(n,18,Hn(!1)),Rl(n,19,$n(0)),c&&Rl(n,431,Hn(!1)),c&&Rl(n,444,$n(0)),Rl(n,61,((a=Hr(18)).write_shift(2,0),a.write_shift(2,0),a.write_shift(2,29280),a.write_shift(2,17600),a.write_shift(2,56),a.write_shift(2,0),a.write_shift(2,0),a.write_shift(2,1),a.write_shift(2,500),a)),Rl(n,64,Hn(!1)),Rl(n,141,$n(0)),Rl(n,34,Hn("true"==function(e){return e.Workbook&&e.Workbook.WBProps&&Lt(e.Workbook.WBProps.date1904)?"true":"false"}(e))),Rl(n,14,Hn(!0)),c&&Rl(n,439,Hn(!1)),Rl(n,218,$n(0)),function(e,t,r){Rl(e,49,function(e,t){var r=e.name||"Arial",a=t&&5==t.biff,n=Hr(a?15+r.length:16+2*r.length);return n.write_shift(2,20*(e.sz||12)),n.write_shift(4,0),n.write_shift(2,400),n.write_shift(4,0),n.write_shift(2,0),n.write_shift(1,r.length),a||n.write_shift(1,1),n.write_shift((a?1:2)*r.length,r,a?"sbcs":"utf16le"),n}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},r))}(n,0,r),function(e,t,r){t&&[[5,8],[23,26],[41,44],[50,392]].forEach((function(a){for(var n=a[0];n<=a[1];++n)null!=t[n]&&Rl(e,1054,ys(n,t[n],r))}))}(n,e.SSF,r),function(e,t){for(var r=0;r<16;++r)Rl(e,224,_s({numFmtId:0,style:!0},0,t));t.cellXfs.forEach((function(r){Rl(e,224,_s(r,0,t))}))}(n,r),c&&Rl(n,352,Hn(!1));var f=n.end(),h=$r();c&&Rl(h,140,function(e){return e||(e=Hr(4)),e.write_shift(2,1),e.write_shift(2,1),e}()),c&&Pl.length&&Rl(h,235,function(){var e=Hr(82+8*Pl.length);e.write_shift(2,15),e.write_shift(2,61440),e.write_shift(4,74+8*Pl.length),e.write_shift(2,0),e.write_shift(2,61446),e.write_shift(4,16+8*Pl.length),e.write_shift(4,Dl),e.write_shift(4,Pl.length+1);for(var t=0,r=0;r<Pl.length;++r)t+=Pl[r]&&Pl[r][1]||0;return e.write_shift(4,t),e.write_shift(4,Pl.length),Pl.forEach((function(t){e.write_shift(4,t[0]),e.write_shift(4,t[2])})),e.write_shift(2,51),e.write_shift(2,61451),e.write_shift(4,18),e.write_shift(2,191),e.write_shift(4,524296),e.write_shift(2,385),e.write_shift(4,134217793),e.write_shift(2,448),e.write_shift(4,134217792),e.write_shift(2,64),e.write_shift(2,61726),e.write_shift(4,16),e.write_shift(4,134217741),e.write_shift(4,134217740),e.write_shift(4,134217751),e.write_shift(4,268435703),e}()),c&&r.Strings&&function(e,t,r,a){var n=(r||[]).length||0;if(n<=8224)return Rl(e,252,r,n);if(!isNaN(252)){for(var s=r.parts||[],i=0,o=0,c=0;c+(s[i]||8224)<=8224;)c+=s[i]||8224,i++;var l=e.next(4);for(l.write_shift(2,252),l.write_shift(2,c),e.push(r.slice(o,o+c)),o+=c;o<n;){for((l=e.next(4)).write_shift(2,60),c=0;c+(s[i]||8224)<=8224;)c+=s[i]||8224,i++;l.write_shift(2,c),e.push(r.slice(o,o+c)),o+=c}}}(h,0,function(e,t){var r=Hr(8);r.write_shift(4,e.Count),r.write_shift(4,e.Unique);for(var a=[],n=0;n<e.length;++n)a[n]=Zn(e[n]);var s=F([r].concat(a));return s.parts=[r.length].concat(a.map((function(e){return e.length}))),s}(r.Strings)),Rl(h,10);var u=h.end(),d=$r(),p=0,m=0;for(m=0;m<e.SheetNames.length;++m)p+=(c?12:11)+(c?2:1)*e.SheetNames[m].length;var v=f.length+p+u.length;for(m=0;m<e.SheetNames.length;++m)Rl(d,133,ws({pos:v,hs:(i[m]||{}).Hidden||0,dt:0,name:e.SheetNames[m]},r)),v+=t[m].length;var g=d.end();if(p!=g.length)throw new Error("BS8 "+p+" != "+g.length);var b=[];return f.length&&b.push(f),g.length&&b.push(g),u.length&&b.push(u),F(b)}function Bl(e,t){for(var r=0;r<=e.SheetNames.length;++r){var a=e.Sheets[e.SheetNames[r]];a&&a["!ref"]&&ra(a["!ref"]).e.c>255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+e.SheetNames[r]+"' extends beyond column IV (255). Data may be lost.")}var n=t||{};switch(n.biff||2){case 8:case 5:return function(e,t){var r=t||{},a=[];e&&!e.SSF&&(e.SSF=Ye(X)),e&&e.SSF&&(Ee(),ye(e.SSF),r.revssf=Le(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),Dl=1,Pl=[],r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Zf(r),r.cellXfs=[],mc(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var n=0;n<e.SheetNames.length;++n)a[a.length]=Ll(n,r,e);return a.unshift(Ul(e,a,r)),F(a)}(e,t);case 4:case 3:case 2:return function(e,t){for(var r=t||{},a=$r(),n=0,s=0;s<e.SheetNames.length;++s)e.SheetNames[s]==r.sheet&&(n=s);if(0==n&&r.sheet&&e.SheetNames[0]!=r.sheet)throw new Error("Sheet not found: "+r.sheet);Rl(a,4==r.biff?1033:3==r.biff?521:9,bs(0,16,r)),((e.Workbook||{}).WBProps||{}).date1904&&Rl(a,34,Hn(!0)),r.cellXfs=[{numFmtId:0}],r._BIFF2FmtTable=["General"],r._Fonts=[];var i=$r();return function(e,t,r,a,n){var s=null!=t["!data"],i=ia(t["!ref"]||"A1"),o="",c=[];if(i.e.c>255||i.e.r>16383){if(a.WTF)throw new Error("Range "+(t["!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)}for(var l=(((n||{}).Workbook||{}).WBProps||{}).date1904,f=[],h=[],u=i.s.c;u<=i.e.c;++u)c[u]=Qr(u);for(var d=i.s.r;d<=i.e.r;++d)for(s&&(f=t["!data"][d]||[]),o=Jr(d),u=i.s.c;u<=i.e.c;++u){var p=s?f[u]:t[c[u]+o];p&&(Fl(e,p,d,u,a,l),p.c&&h.push([p.c,d,u]))}Nl(e,h)}(i,e.Sheets[e.SheetNames[n]],0,r,e),r._BIFF2FmtTable.forEach((function(e){r.biff<=3?Rl(a,30,function(e){var t=Hr(1+e.length);return t.write_shift(1,e.length),t.write_shift(e.length,e,"sbcs"),t}(e)):Rl(a,1054,function(e){var t=Hr(3+e.length);return t.l+=2,t.write_shift(1,e.length),t.write_shift(e.length,e,"sbcs"),t}(e))})),r.cellXfs.forEach((function(e){switch(r.biff){case 2:Rl(a,67,function(e){var t=Hr(4);return t.l+=2,t.write_shift(1,e.numFmtId),t.l++,t}(e));break;case 3:Rl(a,579,Ss(e));break;case 4:Rl(a,1091,xs(e))}})),delete r._BIFF2FmtTable,delete r.cellXfs,delete r._Fonts,a.push(i.end()),Rl(a,10),a.end()}(e,t)}throw new Error("invalid type "+n.bookType+" for BIFF")}function Wl(e,t){var r=t||{},a=null!=r.dense?r.dense:T,n={};a&&(n["!data"]=[]);var s=(e=e.replace(/<!--.*?-->/g,"")).match(/<table/i);if(!s)throw new Error("Invalid HTML: could not find <table>");var i=e.match(/<\/table/i),o=s.index,c=i&&i.index||e.length,l=nt(e.slice(o,c),/(:?<tr[^>]*>)/i,"<tr>"),f=-1,h=0,u=0,d=0,p={s:{r:1e7,c:1e7},e:{r:0,c:0}},m=[];for(o=0;o<l.length;++o){var v=l[o].trim(),g=v.slice(0,3).toLowerCase();if("<tr"!=g){if("<td"==g||"<th"==g){var b=v.split(/<\/t[dh]>/i);for(c=0;c<b.length;++c){var w=b[c].trim();if(w.match(/<t[dh]/i)){for(var y=w,E=0;"<"==y.charAt(0)&&(E=y.indexOf(">"))>-1;)y=y.slice(E+1);for(var k=0;k<m.length;++k){var _=m[k];_.s.c==h&&_.s.r<f&&f<=_.e.r&&(h=_.e.c+1,k=-1)}var S=St(w.slice(0,w.indexOf(">")));d=S.colspan?+S.colspan:1,((u=+S.rowspan)>1||d>1)&&m.push({s:{r:f,c:h},e:{r:f+(u||1)-1,c:h+d-1}});var x=S.t||S["data-t"]||"";if(y.length)if(y=Gt(y),p.s.r>f&&(p.s.r=f),p.e.r<f&&(p.e.r=f),p.s.c>h&&(p.s.c=h),p.e.c<h&&(p.e.c=h),y.length){var A={t:"s",v:y};r.raw||!y.trim().length||"s"==x||("TRUE"===y?A={t:"b",v:!0}:"FALSE"===y?A={t:"b",v:!1}:isNaN(Je(y))?isNaN(at(y).getDate())||(A={t:"d",v:je(y)},!1===r.UTC&&(A.v=st(A.v)),r.cellDates||(A={t:"n",v:ze(A.v)}),A.z=r.dateNF||X[14]):A={t:"n",v:Je(y)}),!1!==A.cellText&&(A.w=y),a?(n["!data"][f]||(n["!data"][f]=[]),n["!data"][f][h]=A):n[ta({r:f,c:h})]=A,h+=d}else h+=d;else h+=d}}}}else{if(++f,r.sheetRows&&r.sheetRows<=f){--f;break}h=0}}return n["!ref"]=aa(p),m.length&&(n["!merges"]=m),n}function zl(e,t,r,a){for(var n=e["!merges"]||[],s=[],i={},o=null!=e["!data"],c=t.s.c;c<=t.e.c;++c){for(var l=0,f=0,h=0;h<n.length;++h)if(!(n[h].s.r>r||n[h].s.c>c||n[h].e.r<r||n[h].e.c<c)){if(n[h].s.r<r||n[h].s.c<c){l=-1;break}l=n[h].e.r-n[h].s.r+1,f=n[h].e.c-n[h].s.c+1;break}if(!(l<0)){var u=Qr(c)+Jr(r),d=o?(e["!data"][r]||[])[c]:e[u],p=d&&null!=d.v&&(d.h||Pt(d.w||(oa(d),d.w)||""))||"";i={},l>1&&(i.rowspan=l),f>1&&(i.colspan=f),a.editable?p='<span contenteditable="true">'+p+"</span>":d&&(i["data-t"]=d&&d.t||"z",null!=d.v&&(i["data-v"]=d.v instanceof Date?d.v.toISOString():d.v),null!=d.z&&(i["data-z"]=d.z),d.l&&"#"!=(d.l.Target||"#").charAt(0)&&(p='<a href="'+Pt(d.l.Target)+'">'+p+"</a>")),i.id=(a.id||"sjs")+"-"+u,s.push(Qt("td",p,i))}}return"<tr>"+s.join("")+"</tr>"}var Hl='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Vl="</body></html>";function $l(e,t,r){return[].join("")+"<table"+(r&&r.id?' id="'+r.id+'"':"")+">"}function Gl(e,t){var r=t||{},a=null!=r.header?r.header:Hl,n=null!=r.footer?r.footer:Vl,s=[a],i=ra(e["!ref"]||"A1");if(s.push($l(0,0,r)),e["!ref"])for(var o=i.s.r;o<=i.e.r;++o)s.push(zl(e,i,o,r));return s.push("</table>"+n),s.join("")}function Xl(e,t,r){var a=t.rows;if(!a)throw"Unsupported origin when "+t.tagName+" is not a TABLE";var n=r||{},s=null!=e["!data"],i=0,o=0;if(null!=n.origin)if("number"==typeof n.origin)i=n.origin;else{var c="string"==typeof n.origin?ea(n.origin):n.origin;i=c.r,o=c.c}var l=Math.min(n.sheetRows||1e7,a.length),f={s:{r:0,c:0},e:{r:i,c:o}};if(e["!ref"]){var h=ra(e["!ref"]);f.s.r=Math.min(f.s.r,h.s.r),f.s.c=Math.min(f.s.c,h.s.c),f.e.r=Math.max(f.e.r,h.e.r),f.e.c=Math.max(f.e.c,h.e.c),-1==i&&(f.e.r=i=h.e.r+1)}var u=[],d=0,p=e["!rows"]||(e["!rows"]=[]),m=0,v=0,g=0,b=0,w=0,T=0;for(e["!cols"]||(e["!cols"]=[]);m<a.length&&v<l;++m){var y=a[m];if(Kl(y)){if(n.display)continue;p[v]={hidden:!0}}var E=y.cells;for(g=b=0;g<E.length;++g){var k=E[g];if(!n.display||!Kl(k)){var _=k.hasAttribute("data-v")?k.getAttribute("data-v"):k.hasAttribute("v")?k.getAttribute("v"):Gt(k.innerHTML),S=k.getAttribute("data-z")||k.getAttribute("z");for(d=0;d<u.length;++d){var x=u[d];x.s.c==b+o&&x.s.r<v+i&&v+i<=x.e.r&&(b=x.e.c+1-o,d=-1)}T=+k.getAttribute("colspan")||1,((w=+k.getAttribute("rowspan")||1)>1||T>1)&&u.push({s:{r:v+i,c:b+o},e:{r:v+i+(w||1)-1,c:b+o+(T||1)-1}});var A={t:"s",v:_},C=k.getAttribute("data-t")||k.getAttribute("t")||"";null!=_&&(0==_.length?A.t=C||"z":n.raw||0==_.trim().length||"s"==C||("TRUE"===_?A={t:"b",v:!0}:"FALSE"===_?A={t:"b",v:!1}:isNaN(Je(_))?isNaN(at(_).getDate())||(A={t:"d",v:je(_)},n.UTC&&(A.v=it(A.v)),n.cellDates||(A={t:"n",v:ze(A.v)}),A.z=n.dateNF||X[14]):A={t:"n",v:Je(_)})),void 0===A.z&&null!=S&&(A.z=S);var O="",R=k.getElementsByTagName("A");if(R&&R.length)for(var I=0;I<R.length&&(!R[I].hasAttribute("href")||"#"==(O=R[I].getAttribute("href")).charAt(0));++I);O&&"#"!=O.charAt(0)&&"javascript:"!=O.slice(0,11).toLowerCase()&&(A.l={Target:O}),s?(e["!data"][v+i]||(e["!data"][v+i]=[]),e["!data"][v+i][b+o]=A):e[ta({c:b+o,r:v+i})]=A,f.e.c<b+o&&(f.e.c=b+o),b+=T}}++v}return u.length&&(e["!merges"]=(e["!merges"]||[]).concat(u)),f.e.r=Math.max(f.e.r,v-1+i),e["!ref"]=aa(f),v>=l&&(e["!fullref"]=aa((f.e.r=a.length-m+v-1+i,f))),e}function jl(e,t){var r={};return(t||{}).dense&&(r["!data"]=[]),Xl(r,e,t)}function Kl(e){var t="",r=function(e){return e.ownerDocument.defaultView&&"function"==typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"==typeof getComputedStyle?getComputedStyle:null}(e);return r&&(t=r(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}function Yl(e,t,r){var a=r||{},n=tr(e);rr.lastIndex=0,n=n.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");for(var s,i,o,c="",l="",f=0,h=-1,u="";s=rr.exec(n);)switch(s[3]=s[3].replace(/_.*$/,"")){case"number-style":case"currency-style":case"percentage-style":case"date-style":case"time-style":case"text-style":"/"===s[1]?("false"==i["truncate-on-overflow"]&&(c.match(/h/)?c=c.replace(/h+/,"[$&]"):c.match(/m/)?c=c.replace(/m+/,"[$&]"):c.match(/s/)&&(c=c.replace(/s+/,"[$&]"))),a[i.name]=c,c=""):"/"!==s[0].charAt(s[0].length-2)&&(c="",i=St(s[0],!1));break;case"boolean-style":"/"===s[1]?(a[i.name]="General",c=""):"/"!==s[0].charAt(s[0].length-2)&&(c="",i=St(s[0],!1));break;case"boolean":c+="General";break;case"text":"/"===s[1]?"%"==(u=n.slice(h,rr.lastIndex-s[0].length))&&"<number:percentage-style"==i[0]?c+="%":c+='"'+u.replace(/"/g,'""')+'"':"/"!==s[0].charAt(s[0].length-2)&&(h=rr.lastIndex);break;case"day":"short"===(o=St(s[0],!1)).style?c+="d":c+="dd";break;case"day-of-week":switch((o=St(s[0],!1)).style){case"short":default:c+="ddd";break;case"long":c+="dddd"}break;case"era":"short"===(o=St(s[0],!1)).style?c+="ee":c+="eeee";break;case"hours":"short"===(o=St(s[0],!1)).style?c+="h":c+="hh";break;case"minutes":"short"===(o=St(s[0],!1)).style?c+="m":c+="mm";break;case"month":switch((o=St(s[0],!1)).textual&&(c+="mm"),o.style){case"short":default:c+="m";break;case"long":c+="mm"}break;case"seconds":"short"===(o=St(s[0],!1)).style?c+="s":c+="ss",o["decimal-places"]&&(c+="."+Ze("0",+o["decimal-places"]));break;case"year":switch((o=St(s[0],!1)).style){case"short":default:c+="yy";break;case"long":c+="yyyy"}break;case"am-pm":c+="AM/PM";break;case"week-of-year":case"quarter":console.error("Excel does not support ODS format token "+s[3]);break;case"fill-character":"/"===s[1]?c+='"'+(u=n.slice(h,rr.lastIndex-s[0].length)).replace(/"/g,'""')+'"*':"/"!==s[0].charAt(s[0].length-2)&&(h=rr.lastIndex);break;case"scientific-number":c+="0."+Ze("0",+(o=St(s[0],!1))["min-decimal-places"]||+o["decimal-places"]||2)+Ze("?",+o["decimal-places"]-+o["min-decimal-places"]||0)+"E"+(Lt(o["forced-exponent-sign"])?"+":"")+Ze("0",+o["min-exponent-digits"]||2);break;case"fraction":+(o=St(s[0],!1))["min-integer-digits"]?c+=Ze("0",+o["min-integer-digits"]):c+="#",c+=" ",c+=Ze("?",+o["min-numerator-digits"]||1),c+="/",+o["denominator-value"]?c+=o["denominator-value"]:c+=Ze("?",+o["min-denominator-digits"]||1);break;case"currency-symbol":"/"===s[1]?c+='"'+n.slice(h,rr.lastIndex-s[0].length).replace(/"/g,'""')+'"':"/"!==s[0].charAt(s[0].length-2)?h=rr.lastIndex:c+="$";break;case"text-properties":switch(((o=St(s[0],!1)).color||"").toLowerCase().replace("#","")){case"ff0000":case"red":c="[Red]"+c}break;case"text-content":c+="@";break;case"map":o=St(s[0],!1),"value()>=0"==Ot(o.condition)?c=a[o["apply-style-name"]]+";"+c:console.error("ODS number format may be incorrect: "+o.condition);break;case"number":if("/"===s[1])break;l="",l+=Ze("0",+(o=St(s[0],!1))["min-integer-digits"]||1),Lt(o.grouping)&&(l=te(Ze("#",Math.max(0,4-l.length))+l)),(+o["min-decimal-places"]||+o["decimal-places"])&&(l+="."),+o["min-decimal-places"]&&(l+=Ze("0",+o["min-decimal-places"]||1)),+o["decimal-places"]-(+o["min-decimal-places"]||0)&&(l+=Ze("0",+o["decimal-places"]-(+o["min-decimal-places"]||0))),c+=l;break;case"embedded-text":"/"===s[1]?0==f?c+='"'+n.slice(h,rr.lastIndex-s[0].length).replace(/"/g,'""')+'"':c=c.slice(0,f)+'"'+n.slice(h,rr.lastIndex-s[0].length).replace(/"/g,'""')+'"'+c.slice(f):"/"!==s[0].charAt(s[0].length-2)&&(h=rr.lastIndex,f=-+St(s[0],!1).position||0)}return a}function Zl(e,t,r){var a=t||{};null!=T&&null==a.dense&&(a.dense=T);var n,s,i,o,c,l,f,h=tr(e),u=[],d=0,p={},m=[],v={};a.dense&&(v["!data"]=[]);var g,b={value:""},w="",y=0,E="",k=0,_=[],S=[],x=-1,A=-1,C={s:{r:1e6,c:1e7},e:{r:0,c:0}},O=0,R=r||{},I={},N=[],F={},D=[],P=1,M=1,L=[],U={Names:[],WBProps:{}},B={},W=["",""],z=[],H={},V="",$=0,G=!1,X=!1,j=0;for(rr.lastIndex=0,h=h.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");l=rr.exec(h);)switch(l[3]=l[3].replace(/_.*$/,"")){case"table":case"工作表":"/"===l[1]?(C.e.c>=C.s.c&&C.e.r>=C.s.r?v["!ref"]=aa(C):v["!ref"]="A1:A1",a.sheetRows>0&&a.sheetRows<=C.e.r&&(v["!fullref"]=v["!ref"],C.e.r=a.sheetRows-1,v["!ref"]=aa(C)),N.length&&(v["!merges"]=N),D.length&&(v["!rows"]=D),o.name=o["名称"]||o.name,"undefined"!=typeof JSON&&JSON.stringify(o),m.push(o.name),p[o.name]=v,X=!1):"/"!==l[0].charAt(l[0].length-2)&&(o=St(l[0],!1),x=A=-1,C.s.r=C.s.c=1e7,C.e.r=C.e.c=0,v={},a.dense&&(v["!data"]=[]),N=[],D=[],X=!0);break;case"table-row-group":"/"===l[1]?--O:++O;break;case"table-row":case"行":if("/"===l[1]){x+=P,P=1;break}if((c=St(l[0],!1))["行号"]?x=c["行号"]-1:-1==x&&(x=0),(P=+c["number-rows-repeated"]||1)<10)for(j=0;j<P;++j)O>0&&(D[x+j]={level:O});A=-1;break;case"covered-table-cell":"/"!==l[1]&&++A,a.sheetStubs&&(a.dense?(v["!data"][x]||(v["!data"][x]=[]),v["!data"][x][A]={t:"z"}):v[ta({r:x,c:A})]={t:"z"}),w="",_=[];break;case"table-cell":case"数据":if("/"===l[0].charAt(l[0].length-2))++A,b=St(l[0],!1),M=parseInt(b["number-columns-repeated"]||"1",10),f={t:"z",v:null},b.formula&&0!=a.cellFormula&&(f.f=ic(Ot(b.formula))),b["style-name"]&&I[b["style-name"]]&&(f.z=I[b["style-name"]]),"string"==(b["数据类型"]||b["value-type"])&&(f.t="s",f.v=Ot(b["string-value"]||""),a.dense?(v["!data"][x]||(v["!data"][x]=[]),v["!data"][x][A]=f):v[Qr(A)+Jr(x)]=f),A+=M-1;else if("/"!==l[1]){w=E="",y=k=0,_=[],S=[],M=1;var K=P?x+P-1:x;if(++A>C.e.c&&(C.e.c=A),A<C.s.c&&(C.s.c=A),x<C.s.r&&(C.s.r=x),K>C.e.r&&(C.e.r=K),z=[],H={},f={t:(b=St(l[0],!1))["数据类型"]||b["value-type"],v:null},b["style-name"]&&I[b["style-name"]]&&(f.z=I[b["style-name"]]),a.cellFormula)if(b.formula&&(b.formula=Ot(b.formula)),b["number-matrix-columns-spanned"]&&b["number-matrix-rows-spanned"]&&(F={s:{r:x,c:A},e:{r:x+(parseInt(b["number-matrix-rows-spanned"],10)||0)-1,c:A+(parseInt(b["number-matrix-columns-spanned"],10)||0)-1}},f.F=aa(F),L.push([F,f.F])),b.formula)f.f=ic(b.formula);else for(j=0;j<L.length;++j)x>=L[j][0].s.r&&x<=L[j][0].e.r&&A>=L[j][0].s.c&&A<=L[j][0].e.c&&(f.F=L[j][1]);switch((b["number-columns-spanned"]||b["number-rows-spanned"])&&(F={s:{r:x,c:A},e:{r:x+(parseInt(b["number-rows-spanned"],10)||0)-1,c:A+(parseInt(b["number-columns-spanned"],10)||0)-1}},N.push(F)),b["number-columns-repeated"]&&(M=parseInt(b["number-columns-repeated"],10)),f.t){case"boolean":f.t="b",f.v=Lt(b["boolean-value"])||+b["boolean-value"]>=1;break;case"float":f.t="n",f.v=parseFloat(b.value),a.cellDates&&f.z&&ve(f.z)&&(f.v=He(f.v+(U.WBProps.date1904?1462:0)),f.t="number"==typeof f.v?"n":"d");break;case"percentage":case"currency":f.t="n",f.v=parseFloat(b.value);break;case"date":f.t="d",f.v=je(b["date-value"],U.WBProps.date1904),a.cellDates||(f.t="n",f.v=ze(f.v,U.WBProps.date1904)),f.z||(f.z="m/d/yy");break;case"time":f.t="n",f.v=Ve(b["time-value"])/86400,a.cellDates&&(f.v=He(f.v),f.t="number"==typeof f.v?"n":"d"),f.z||(f.z="HH:MM:SS");break;case"number":f.t="n",f.v=parseFloat(b["数据数值"]);break;default:if("string"!==f.t&&"text"!==f.t&&f.t)throw new Error("Unsupported value type "+f.t);f.t="s",null!=b["string-value"]&&(w=Ot(b["string-value"]),_=[])}}else{if(G=!1,"s"===f.t&&(f.v=w||"",_.length&&(f.R=_),G=0==y),B.Target&&(f.l=B),z.length>0&&(f.c=z,z=[]),w&&!1!==a.cellText&&(f.w=w),G&&(f.t="z",delete f.v),(!G||a.sheetStubs)&&!(a.sheetRows&&a.sheetRows<=x))for(var Y=0;Y<P;++Y){if(M=parseInt(b["number-columns-repeated"]||"1",10),a.dense)for(v["!data"][x+Y]||(v["!data"][x+Y]=[]),v["!data"][x+Y][A]=0==Y?f:Ye(f);--M>0;)v["!data"][x+Y][A+M]=Ye(f);else for(v[ta({r:x+Y,c:A})]=f;--M>0;)v[ta({r:x+Y,c:A+M})]=Ye(f);C.e.c<=A&&(C.e.c=A)}A+=(M=parseInt(b["number-columns-repeated"]||"1",10))-1,M=0,f={},w="",_=[]}B={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if("/"===l[1]){if((n=u.pop())[0]!==l[3])throw"Bad state: "+n}else"/"!==l[0].charAt(l[0].length-2)&&u.push([l[3],!0]);break;case"annotation":if("/"===l[1]){if((n=u.pop())[0]!==l[3])throw"Bad state: "+n;H.t=w,_.length&&(H.R=_),H.a=V,z.push(H),w=E,y=k,_=S}else if("/"!==l[0].charAt(l[0].length-2)){u.push([l[3],!1]);var Z=St(l[0],!0);Z.display&&Lt(Z.display)||(z.hidden=!0),E=w,k=y,S=_,w="",y=0,_=[]}V="",$=0;break;case"creator":"/"===l[1]?V=h.slice($,l.index):$=l.index+l[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("/"===l[1]){if((n=u.pop())[0]!==l[3])throw"Bad state: "+n}else"/"!==l[0].charAt(l[0].length-2)&&u.push([l[3],!1]);w="",y=0,_=[];break;case"scientific-number":case"currency-symbol":case"fill-character":case"script":case"libraries":case"automatic-styles":case"default-style":case"page-layout":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":case"number":case"fraction":case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":case"boolean":case"text-content":case"text-properties":case"embedded-text":case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":case"s":case"date":case"object":case"title":case"标题":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"filter-set-item":case"list-level-style-bullet":case"list-level-style-number":case"list-level-properties":case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":case"event-listener":case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":case"highlighted-range":case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":case"rect":case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;case"text-style":case"boolean-style":case"number-style":case"currency-style":case"percentage-style":case"date-style":case"time-style":if("/"===l[1]){var J=rr.lastIndex;Yl(h.slice(i,rr.lastIndex),0,R),rr.lastIndex=J}else"/"!==l[0].charAt(l[0].length-2)&&(i=rr.lastIndex-l[0].length);break;case"style":var q=St(l[0],!1);"table-cell"==q.family&&R[q["data-style-name"]]&&(I[q.name]=R[q["data-style-name"]]);break;case"text":if("/>"===l[0].slice(-2))break;if("/"===l[1])switch(u[u.length-1][0]){case"number-style":case"date-style":case"time-style":h.slice(d,l.index)}else d=l.index+l[0].length;break;case"named-range":W=oc((s=St(l[0],!1))["cell-range-address"]);var Q={Name:s.name,Ref:W[0]+"!"+W[1]};X&&(Q.Sheet=m.length),U.Names.push(Q);break;case"null-date":"1904-01-01"===(s=St(l[0],!1))["date-value"]&&(U.WBProps.date1904=!0);break;case"p":case"文本串":if(["master-styles"].indexOf(u[u.length-1][0])>-1)break;if("/"!==l[1]||b&&b["string-value"])"/>"==l[0].slice(-2)?w+="\n":(St(l[0],!1),y=l.index+l[0].length);else{var ee=(g=void 0,g=h.slice(y,l.index).replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,(function(e,t){return Array(parseInt(t,10)+1).join(" ")})).replace(/<text:tab[^>]*\/>/g,"\t").replace(/<text:line-break\/>/g,"\n"),[Ot(g.replace(/<[^>]*>/g,""))]);w=(w.length>0?w+"\n":"")+ee[0]}break;case"database-range":if("/"===l[1])break;try{p[(W=oc(St(l[0])["target-range-address"]))[0]]["!autofilter"]={ref:W[1]}}catch(e){}break;case"a":if("/"!==l[1]){if(!(B=St(l[0],!1)).href)break;B.Target=Ot(B.href),delete B.href,"#"==B.Target.charAt(0)&&B.Target.indexOf(".")>-1?(W=oc(B.Target.slice(1)),B.Target="#"+W[0]+"!"+W[1]):B.Target.match(/^\.\.[\\\/]/)&&(B.Target=B.Target.slice(3))}break;default:switch(l[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(a.WTF)throw new Error(l)}}var te={Sheets:p,SheetNames:m,Workbook:U};return a.bookSheets&&delete te.Sheets,te}function Jl(e,t){t=t||{},lt(e,"META-INF/manifest.xml")&&function(e,t){for(var r,a,n=tr(e);r=rr.exec(n);)switch(r[3]){case"manifest":break;case"file-entry":if("/"==(a=St(r[0],!1)).path&&a.type!==on)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(t&&t.WTF)throw r}}(ht(e,"META-INF/manifest.xml"),t);var r=ut(e,"styles.xml"),a=r&&Yl(Ht(r)),n=ut(e,"content.xml");if(!n)throw new Error("Missing content.xml in ODS / UOF file");var s=Zl(Ht(n),t,a);return lt(e,"meta.xml")&&(s.Props=un(ht(e,"meta.xml"))),s.bookType="ods",s}function ql(e,t){var r=Zl(e,t);return r.bookType="fods",r}var Ql=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),t="<office:document-styles "+qt({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return wt+t}}();function ef(e,t){var r="number",a="",n={"style:name":t},s="",i=0;e:if((e=e.replace(/"[$]"/g,"$")).indexOf(";")>-1&&(console.error("Unsupported ODS Style Map exported. Using first branch of "+e),e=e.slice(0,e.indexOf(";"))),"@"!=e){if(e.indexOf(/\$/)>-1&&(r="currency"),'"'==e[i]){for(s="";'"'!=e[++i]||'"'==e[++i];)s+=e[i];"*"==e[1+--i]?(i++,a+="<number:fill-character>"+Nt(s.replace(/""/g,'"'))+"</number:fill-character>"):a+="<number:text>"+Nt(s.replace(/""/g,'"'))+"</number:text>",e=e.slice(i+1),i=0}var o=e.match(/# (\?+)\/(\?+)/);if(o)a+=Qt("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":o[1].length,"number:max-denominator-value":Math.max(+o[1].replace(/./g,"9"),+o[2].replace(/./g,"9"))});else if(o=e.match(/# (\?+)\/(\d+)/))a+=Qt("number:fraction",null,{"number:min-integer-digits":0,"number:min-numerator-digits":o[1].length,"number:denominator-value":+o[2]});else if(o=e.match(/(\d+)(|\.\d+)%/))r="percentage",a+=Qt("number:number",null,{"number:decimal-places":o[2]&&o.length-1||0,"number:min-decimal-places":o[2]&&o.length-1||0,"number:min-integer-digits":o[1].length})+"<number:text>%</number:text>";else{var c=!1;if(["y","m","d"].indexOf(e[0])>-1){r="date";t:for(;i<e.length;++i)switch(s=e[i].toLowerCase()){case"h":case"s":c=!0,--i;break t;case"m":r:for(var l=i+1;l<e.length;++l)switch(e[l]){case"y":case"d":break r;case"h":case"s":c=!0,--i;break t}case"y":case"d":for(;(e[++i]||"").toLowerCase()==s[0];)s+=s[0];switch(--i,s){case"y":case"yy":a+="<number:year/>";break;case"yyy":case"yyyy":a+='<number:year number:style="long"/>';break;case"mmmmm":console.error("ODS has no equivalent of format |mmmmm|");case"m":case"mm":case"mmm":case"mmmm":a+='<number:month number:style="'+(s.length%2?"short":"long")+'" number:textual="'+(s.length>=3?"true":"false")+'"/>';break;case"d":case"dd":a+='<number:day number:style="'+(s.length%2?"short":"long")+'"/>';break;case"ddd":case"dddd":a+='<number:day-of-week number:style="'+(s.length%2?"short":"long")+'"/>'}break;case'"':for(;'"'!=e[++i]||'"'==e[++i];)s+=e[i];--i,a+="<number:text>"+Nt(s.slice(1).replace(/""/g,'"'))+"</number:text>";break;case"\\":a+="<number:text>"+Nt(s=e[++i])+"</number:text>";break;case"/":case":":a+="<number:text>"+Nt(s)+"</number:text>";break;default:console.error("unrecognized character "+s+" in ODF format "+e)}if(!c)break e;e=e.slice(i+1),i=0}if(e.match(/^\[?[hms]/))for("number"==r&&(r="time"),e.match(/\[/)&&(e=e.replace(/[\[\]]/g,""),n["number:truncate-on-overflow"]="false");i<e.length;++i)switch(s=e[i].toLowerCase()){case"h":case"m":case"s":for(;(e[++i]||"").toLowerCase()==s[0];)s+=s[0];switch(--i,s){case"h":case"hh":a+='<number:hours number:style="'+(s.length%2?"short":"long")+'"/>';break;case"m":case"mm":a+='<number:minutes number:style="'+(s.length%2?"short":"long")+'"/>';break;case"s":case"ss":if("."==e[i+1])do{s+=e[i+1],++i}while("0"==e[i+1]);a+='<number:seconds number:style="'+(s.match("ss")?"long":"short")+'"'+(s.match(/\./)?' number:decimal-places="'+(s.match(/0+/)||[""])[0].length+'"':"")+"/>"}break;case'"':for(;'"'!=e[++i]||'"'==e[++i];)s+=e[i];--i,a+="<number:text>"+Nt(s.slice(1).replace(/""/g,'"'))+"</number:text>";break;case"/":case":":a+="<number:text>"+Nt(s)+"</number:text>";break;case"a":if("a/p"==e.slice(i,i+3).toLowerCase()){a+="<number:am-pm/>",i+=2;break}if("am/pm"==e.slice(i,i+5).toLowerCase()){a+="<number:am-pm/>",i+=4;break}default:console.error("unrecognized character "+s+" in ODF format "+e)}else{if(e.indexOf(/\$/)>-1&&(r="currency"),"$"==e[0]&&(a+='<number:currency-symbol number:language="en" number:country="US">$</number:currency-symbol>',e=e.slice(1),i=0),'"'==e[i=0]){for(;'"'!=e[++i]||'"'==e[++i];)s+=e[i];"*"==e[1+--i]?(i++,a+="<number:fill-character>"+Nt(s.replace(/""/g,'"'))+"</number:fill-character>"):a+="<number:text>"+Nt(s.replace(/""/g,'"'))+"</number:text>",e=e.slice(i+1),i=0}var f=e.match(/([#0][0#,]*)(\.[0#]*|)(E[+]?0*|)/i);if(f&&f[0]){var h=f[1].replace(/,/g,"");a+="<number:"+(f[3]?"scientific-":"")+'number number:min-integer-digits="'+(-1==h.indexOf("0")?"0":h.length-h.indexOf("0"))+'"'+(f[0].indexOf(",")>-1?' number:grouping="true"':"")+(f[2]&&' number:decimal-places="'+(f[2].length-1)+'"'||' number:decimal-places="0"')+(f[3]&&f[3].indexOf("+")>-1?' number:forced-exponent-sign="true"':"")+(f[3]?' number:min-exponent-digits="'+f[3].match(/0+/)[0].length+'"':"")+"></number:"+(f[3]?"scientific-":"")+"number>",i=f.index+f[0].length}else console.error("Could not find numeric part of "+e);if('"'==e[i]){for(s="";'"'!=e[++i]||'"'==e[++i];)s+=e[i];--i,a+="<number:text>"+Nt(s.replace(/""/g,'"'))+"</number:text>"}}}}else r="text",a="<number:text-content/>";return a?Qt("number:"+r+"-style",a,n):(console.error("Could not generate ODS number format for |"+e+"|"),"")}function tf(e,t,r){for(var a=[],n=0;n<e.length;++n){var s=e[n];s&&s.Sheet==(-1==r?null:r)&&a.push(s)}return a.length?" <table:named-expressions>\n"+a.map((function(e){var t=(-1==r?"$":"")+cc(e.Ref);return" "+Qt("table:named-range",null,{"table:name":e.Name,"table:cell-range-address":t,"table:base-cell-address":t.replace(/[\.]?[^\.]*$/,".$A$1")})})).join("\n")+"\n </table:named-expressions>\n":""}var rf=function(){var e=function(e){return Nt(e).replace(/ +/g,(function(e){return'<text:s text:c="'+e.length+'"/>'})).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},t=" <table:table-cell />\n",r=function(r,a,n,s,i,o){var c=[];c.push(' <table:table table:name="'+Nt(a.SheetNames[n])+'" table:style-name="ta1">\n');var l=0,f=0,h=ra(r["!ref"]||"A1"),u=r["!merges"]||[],d=0,p=null!=r["!data"];if(r["!cols"])for(f=0;f<=h.e.c;++f)c.push(" <table:table-column"+(r["!cols"][f]?' table:style-name="co'+r["!cols"][f].ods+'"':"")+"></table:table-column>\n");var m="",v=r["!rows"]||[];for(l=0;l<h.s.r;++l)m=v[l]?' table:style-name="ro'+v[l].ods+'"':"",c.push(" <table:table-row"+m+"></table:table-row>\n");for(;l<=h.e.r;++l){for(m=v[l]?' table:style-name="ro'+v[l].ods+'"':"",c.push(" <table:table-row"+m+">\n"),f=0;f<h.s.c;++f)c.push(t);for(;f<=h.e.c;++f){var g=!1,b={},w="";for(d=0;d!=u.length;++d)if(!(u[d].s.c>f||u[d].s.r>l||u[d].e.c<f||u[d].e.r<l)){u[d].s.c==f&&u[d].s.r==l||(g=!0),b["table:number-columns-spanned"]=u[d].e.c-u[d].s.c+1,b["table:number-rows-spanned"]=u[d].e.r-u[d].s.r+1;break}if(g)c.push(" <table:covered-table-cell/>\n");else{var T=ta({r:l,c:f}),y=p?(r["!data"][l]||[])[f]:r[T];if(y&&y.f&&(b["table:formula"]=Nt(("of:="+y.f.replace(vo,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),y.F&&y.F.slice(0,T.length)==T)){var E=ra(y.F);b["table:number-matrix-columns-spanned"]=E.e.c-E.s.c+1,b["table:number-matrix-rows-spanned"]=E.e.r-E.s.r+1}if(y){switch(y.t){case"b":w=y.v?"TRUE":"FALSE",b["office:value-type"]="boolean",b["office:boolean-value"]=y.v?"true":"false";break;case"n":w=y.w||String(y.v||0),b["office:value-type"]="float",b["office:value"]=y.v||0;break;case"s":case"str":w=null==y.v?"":y.v,b["office:value-type"]="string";break;case"d":w=y.w||je(y.v,o).toISOString(),b["office:value-type"]="date",b["office:date-value"]=je(y.v,o).toISOString(),b["table:style-name"]="ce1";break;default:c.push(t);continue}var k=e(w);if(y.l&&y.l.Target){var _=y.l.Target;"#"==(_="#"==_.charAt(0)?"#"+cc(_.slice(1)):_).charAt(0)||_.match(/^\w+:/)||(_="../"+_),k=Qt("text:a",k,{"xlink:href":_.replace(/&/g,"&")})}i[y.z]&&(b["table:style-name"]="ce"+i[y.z].slice(1));var S=Qt("text:p",k,{});if(y.c){for(var x="",A="",C={},O=0;O<y.c.length;++O)!x&&y.c[O].a&&(x=y.c[O].a),A+="<text:p>"+e(y.c[O].t)+"</text:p>";y.c.hidden||(C["office:display"]=!0),S=Qt("office:annotation",A,C)+S}c.push(" "+Qt("table:table-cell",S,b)+"\n")}else c.push(t)}}c.push(" </table:table-row>\n")}return(a.Workbook||{}).Names&&c.push(tf(a.Workbook.Names,a.SheetNames,n)),c.push(" </table:table>\n"),c.join("")};return function(e,t){var a=[wt],n=qt({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),s=qt({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==t.bookType?(a.push("<office:document"+n+s+">\n"),a.push(ln().replace(/<office:document-meta.*?>/,"").replace(/<\/office:document-meta>/,"")+"\n")):a.push("<office:document-content"+n+">\n");var i=function(e,t){e.push(" <office:automatic-styles>\n");var r=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!cols"])for(var a=0;a<t["!cols"].length;++a)if(t["!cols"][a]){var n=t["!cols"][a];if(null==n.width&&null==n.wpx&&null==n.wch)continue;Oi(n),n.ods=r;var s=t["!cols"][a].wpx+"px";e.push(' <style:style style:name="co'+r+'" style:family="table-column">\n'),e.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+s+'"/>\n'),e.push(" </style:style>\n"),++r}}));var a=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!rows"])for(var r=0;r<t["!rows"].length;++r)if(t["!rows"][r]){t["!rows"][r].ods=a;var n=t["!rows"][r].hpx+"px";e.push(' <style:style style:name="ro'+a+'" style:family="table-row">\n'),e.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+n+'"/>\n'),e.push(" </style:style>\n"),++a}})),e.push(' <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">\n'),e.push(' <style:table-properties table:display="true" style:writing-mode="lr-tb"/>\n'),e.push(" </style:style>\n"),e.push(' <number:date-style style:name="N37" number:automatic-order="true">\n'),e.push(' <number:month number:style="long"/>\n'),e.push(" <number:text>/</number:text>\n"),e.push(' <number:day number:style="long"/>\n'),e.push(" <number:text>/</number:text>\n"),e.push(" <number:year/>\n"),e.push(" </number:date-style>\n");var n={},s=69;return t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t){var r=null!=t["!data"];if(t["!ref"])for(var a=ra(t["!ref"]),i=0;i<=a.e.r;++i)for(var o=0;o<=a.e.c;++o){var c=r?(t["!data"][i]||[])[o]:t[ta({r:i,c:o})];if(c&&c.z&&"general"!=c.z.toLowerCase()&&!n[c.z]){var l=ef(c.z,"N"+s);l&&(n[c.z]="N"+s,++s,e.push(l+"\n"))}}}})),e.push(' <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>\n'),De(n).forEach((function(t){e.push('<style:style style:name="ce'+n[t].slice(1)+'" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="'+n[t]+'"/>\n')})),e.push(" </office:automatic-styles>\n"),n}(a,e);a.push(" <office:body>\n"),a.push(" <office:spreadsheet>\n"),((e.Workbook||{}).WBProps||{}).date1904&&a.push(' <table:calculation-settings table:case-sensitive="false" table:search-criteria-must-apply-to-whole-cell="true" table:use-wildcards="true" table:use-regular-expressions="false" table:automatic-find-labels="false">\n <table:null-date table:date-value="1904-01-01"/>\n </table:calculation-settings>\n');for(var o=0;o!=e.SheetNames.length;++o)a.push(r(e.Sheets[e.SheetNames[o]],e,o,0,i,((e.Workbook||{}).WBProps||{}).date1904));return(e.Workbook||{}).Names&&a.push(tf(e.Workbook.Names,e.SheetNames,-1)),a.push(" </office:spreadsheet>\n"),a.push(" </office:body>\n"),"fods"==t.bookType?a.push("</office:document>"):a.push("</office:document-content>"),a.join("")}}();function af(e,t){if("fods"==t.bookType)return rf(e,t);var r=vt(),a="",n=[],s=[];return mt(r,a="mimetype","application/vnd.oasis.opendocument.spreadsheet"),mt(r,a="content.xml",rf(e,t)),n.push([a,"text/xml"]),s.push([a,"ContentFile"]),mt(r,a="styles.xml",Ql(e,t)),n.push([a,"text/xml"]),s.push([a,"StylesFile"]),mt(r,a="meta.xml",wt+ln()),n.push([a,"text/xml"]),s.push([a,"MetadataFile"]),mt(r,a="manifest.rdf",function(e){var t=[wt];t.push('<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">\n');for(var r=0;r!=e.length;++r)t.push(cn(e[r][0],e[r][1])),t.push(("",[' <rdf:Description rdf:about="">\n',' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+e[r][0]+'"/>\n'," </rdf:Description>\n"].join("")));return t.push(cn("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}(s)),n.push([a,"application/rdf+xml"]),mt(r,a="META-INF/manifest.xml",function(e){var t=[wt];t.push('<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">\n'),t.push(' <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>\n');for(var r=0;r<e.length;++r)t.push(' <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+'"/>\n');return t.push("</manifest:manifest>"),t.join("")}(n)),r}var nf=function(){try{return"undefined"==typeof Uint8Array||void 0===Uint8Array.prototype.subarray?"slice":"undefined"!=typeof Buffer?void 0===Buffer.prototype.subarray?"slice":("function"==typeof Buffer.from?Buffer.from([72,62]):new Buffer([72,62]))instanceof Uint8Array?"subarray":"slice":"subarray"}catch(e){return"slice"}}();function sf(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function of(e){return"undefined"!=typeof TextDecoder?(new TextDecoder).decode(e):Ht(I(e))}function cf(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):O(Vt(e))}function lf(e){for(var t=0,r=0;r<e.length;++r)t+=e[r].length;var a=new Uint8Array(t),n=0;for(r=0;r<e.length;++r){var s=e[r],i=s.length;if(i<250)for(var o=0;o<i;++o)a[n++]=s[o];else a.set(s,n),n+=i}return a}function ff(e){return 16843009*((e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135)>>>24}function hf(e,t){var r=t.l,a=127&e[r];e:if(e[r++]>=128){if(a|=(127&e[r])<<7,e[r++]<128)break e;if(a|=(127&e[r])<<14,e[r++]<128)break e;if(a|=(127&e[r])<<21,e[r++]<128)break e;if(a+=(127&e[r])*Math.pow(2,28),++r,e[r++]<128)break e;if(a+=(127&e[r])*Math.pow(2,35),++r,e[r++]<128)break e;if(a+=(127&e[r])*Math.pow(2,42),++r,e[r++]<128)break e}return t.l=r,a}function uf(e){var t=new Uint8Array(7);t[0]=127&e;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383)break e;if(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)break e;if(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)break e;if(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)break e;if(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103)break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t[nf](0,r)}function df(e){for(var t={l:0},r=[];t.l<e.length;)r.push(hf(e,t));return r}function pf(e){return lf(e.map((function(e){return uf(e)})))}function mf(e){var t=0,r=127&e[t];return e[t++]<128?r:(r|=(127&e[t])<<7,e[t++]<128?r:(r|=(127&e[t])<<14,e[t++]<128?r:(r|=(127&e[t])<<21,e[t++]<128?r:r|=(15&e[t])<<28)))}function vf(e){for(var t=[],r={l:0};r.l<e.length;){var a,n=r.l,s=hf(e,r),i=7&s;s=s/8|0;var o=r.l;switch(i){case 0:for(;e[o++]>=128;);a=e[nf](r.l,o),r.l=o;break;case 1:a=e[nf](o,o+8),r.l=o+8;break;case 2:var c=hf(e,r);a=e[nf](r.l,r.l+c),r.l+=c;break;case 5:a=e[nf](o,o+4),r.l=o+4;break;default:throw new Error("PB Type ".concat(i," for Field ").concat(s," at offset ").concat(n))}var l={data:a,type:i};null==t[s]&&(t[s]=[]),t[s].push(l)}return t}function gf(e){var t=[];return e.forEach((function(e,r){0!=r&&e.forEach((function(e){e.data&&(t.push(uf(8*r+e.type)),2==e.type&&t.push(uf(e.data.length)),t.push(e.data))}))})),lf(t)}function bf(e,t){return(null==e?void 0:e.map((function(e){return t(e.data)})))||[]}function wf(e){for(var t,r=[],a={l:0};a.l<e.length;){var n=hf(e,a),s=vf(e[nf](a.l,a.l+n));a.l+=n;var i={id:mf(s[1][0].data),messages:[]};s[2].forEach((function(t){var r=vf(t.data),n=mf(r[3][0].data);i.messages.push({meta:r,data:e[nf](a.l,a.l+n)}),a.l+=n})),(null==(t=s[3])?void 0:t[0])&&(i.merge=mf(s[3][0].data)>>>0>0),r.push(i)}return r}function Tf(e){var t=[];return e.forEach((function(e){var r=[[],[{data:uf(e.id),type:0}],[]];null!=e.merge&&(r[3]=[{data:uf(+!!e.merge),type:0}]);var a=[];e.messages.forEach((function(e){a.push(e.data),e.meta[3]=[{type:0,data:uf(e.data.length)}],r[2].push({data:gf(e.meta),type:2})}));var n=gf(r);t.push(uf(n.length)),t.push(n),a.forEach((function(e){return t.push(e)}))})),lf(t)}function yf(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r={l:0},a=hf(t,r),n=[],s=r.l;s<t.length;){var i=3&t[s];if(0!=i){var o=0,c=0;if(1==i?(c=4+(t[s]>>2&7),o=(224&t[s++])<<3,o|=t[s++]):(c=1+(t[s++]>>2),2==i?(o=t[s]|t[s+1]<<8,s+=2):(o=(t[s]|t[s+1]<<8|t[s+2]<<16|t[s+3]<<24)>>>0,s+=4)),0==o)throw new Error("Invalid offset 0");for(var l=n.length-1,f=o;l>=0&&f>=n[l].length;)f-=n[l].length,--l;if(l<0){if(0!=f)throw new Error("Invalid offset beyond length");f=n[l=0].length}if(c<f)n.push(n[l][nf](n[l].length-f,n[l].length-f+c));else{for(f>0&&(n.push(n[l][nf](n[l].length-f)),c-=f),++l;c>=n[l].length;)n.push(n[l]),c-=n[l].length,++l;c&&n.push(n[l][nf](0,c))}n.length>25&&(n=[lf(n)])}else{var h=t[s++]>>2;if(h<60)++h;else{var u=h-59;h=t[s],u>1&&(h|=t[s+1]<<8),u>2&&(h|=t[s+2]<<16),u>3&&(h|=t[s+3]<<24),h>>>=0,h++,s+=u}n.push(t[nf](s,s+h)),s+=h}}for(var d=0,p=0;p<n.length;++p)d+=n[p].length;if(d!=a)throw new Error("Unexpected length: ".concat(d," != ").concat(a));return n}function Ef(e){Array.isArray(e)&&(e=new Uint8Array(e));for(var t=[],r=0;r<e.length;){var a=e[r++],n=e[r]|e[r+1]<<8|e[r+2]<<16;r+=3,t.push.apply(t,yf(a,e[nf](r,r+n))),r+=n}if(r!==e.length)throw new Error("data is not a valid framed stream!");return 1==t.length?t[0]:lf(t)}function kf(e){for(var t=[],r=0;r<e.length;){var a=Math.min(e.length-r,268435455),n=new Uint8Array(4);t.push(n);var s=uf(a),i=s.length;t.push(s),a<=60?(i++,t.push(new Uint8Array([a-1<<2]))):a<=256?(i+=2,t.push(new Uint8Array([240,a-1&255]))):a<=65536?(i+=3,t.push(new Uint8Array([244,a-1&255,a-1>>8&255]))):a<=16777216?(i+=4,t.push(new Uint8Array([248,a-1&255,a-1>>8&255,a-1>>16&255]))):a<=4294967296&&(i+=5,t.push(new Uint8Array([252,a-1&255,a-1>>8&255,a-1>>16&255,a-1>>>24&255]))),t.push(e[nf](r,r+a)),i+=a,n[0]=0,n[1]=255&i,n[2]=i>>8&255,n[3]=i>>16&255,r+=a}return lf(t)}var _f=function(){return{sst:[],rsst:[],ofmt:[],nfmt:[],fmla:[],ferr:[],cmnt:[]}};function Sf(e,t,r,a,n){var s,i,o,c,l=255&t,f=t>>8,h=f>=5?n:a;e:if(r&(f>4?8:4)&&"n"==e.t&&7==l){var u=(null==(s=h[7])?void 0:s[0])?mf(h[7][0].data):-1;if(-1==u)break e;var d=(null==(i=h[15])?void 0:i[0])?mf(h[15][0].data):-1,p=(null==(o=h[16])?void 0:o[0])?mf(h[16][0].data):-1,m=(null==(c=h[40])?void 0:c[0])?mf(h[40][0].data):-1,v=e.v,g=v;t:if(m){if(0==v){d=p=2;break t}d=v>=604800?1:v>=86400?2:v>=3600?4:v>=60?8:v>=1?16:32,Math.floor(v)!=v?p=32:v%60?p=16:v%3600?p=8:v%86400?p=4:v%604800&&(p=2),p<d&&(p=d)}if(-1==d||-1==p)break e;var b=[],w=[];1==d&&(g=v/604800,1==p?w.push('d"d"'):v-=604800*(g|=0),b.push(g+(2==u?" week"+(1==g?"":"s"):1==u?"w":""))),d<=2&&p>=2&&(g=v/86400,p>2&&(v-=86400*(g|=0)),w.push('d"d"'),b.push(g+(2==u?" day"+(1==g?"":"s"):1==u?"d":""))),d<=4&&p>=4&&(g=v/3600,p>4&&(v-=3600*(g|=0)),w.push((d>=4?"[h]":"h")+'"h"'),b.push(g+(2==u?" hour"+(1==g?"":"s"):1==u?"h":""))),d<=8&&p>=8&&(g=v/60,p>8&&(v-=60*(g|=0)),w.push((d>=8?"[m]":"m")+'"m"'),0==u?b.push((8==d&&8==p||g>=10?"":"0")+g):b.push(g+(2==u?" minute"+(1==g?"":"s"):1==u?"m":""))),d<=16&&p>=16&&(g=v,p>16&&(v-=g|=0),w.push((d>=16?"[s]":"s")+'"s"'),0==u?b.push((16==p&&16==d||g>=10?"":"0")+g):b.push(g+(2==u?" second"+(1==g?"":"s"):1==u?"s":""))),p>=32&&(g=Math.round(1e3*v),d<32&&w.push('.000"ms"'),0==u?b.push((g>=100?"":g>=10?"0":"00")+g):b.push(g+(2==u?" millisecond"+(1==g?"":"s"):1==u?"ms":""))),e.w=b.join(0==u?":":" "),e.z=w.join(0==u?'":"':" "),0==u&&(e.w=e.w.replace(/:(\d\d\d)$/,".$1"))}}function xf(e,t){var r=new Uint8Array(32),a=sf(r),n=12,s=0;switch(r[0]=5,e.t){case"n":if(e.z&&ve(e.z)){r[1]=5,a.setFloat64(n,(He(e.v+1462).getTime()-Date.UTC(2001,0,1))/1e3,!0),s|=4,n+=8;break}r[1]=2,function(e,t,r){var a=Math.floor(0==r?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-16,n=r/Math.pow(10,a-6176);e[t+15]|=a>>7,e[t+14]|=(127&a)<<1;for(var s=0;n>=1;++s,n/=256)e[t+s]=255&n;e[t+15]|=r>=0?0:128}(r,n,e.v),s|=1,n+=16;break;case"b":r[1]=6,a.setFloat64(n,e.v?1:0,!0),s|=2,n+=8;break;case"s":var i=null==e.v?"":String(e.v);if(e.l){var o=t.rsst.findIndex((function(t){var r;return t.v==i&&t.l==(null==(r=e.l)?void 0:r.Target)}));-1==o&&(t.rsst[o=t.rsst.length]={v:i,l:e.l.Target}),r[1]=9,a.setUint32(n,o,!0),s|=16,n+=4}else{var c=t.sst.indexOf(i);-1==c&&(t.sst[c=t.sst.length]=i),r[1]=3,a.setUint32(n,c,!0),s|=8,n+=4}break;case"d":r[1]=5,a.setFloat64(n,(e.v.getTime()-Date.UTC(2001,0,1))/1e3,!0),s|=4,n+=8;break;case"z":r[1]=0;break;default:throw"unsupported cell type "+e.t}return e.c&&(t.cmnt.push(function(e){for(var t={a:"",t:"",replies:[]},r=0;r<e.length;++r)0==r?(t.a=e[r].a,t.t=e[r].t):t.replies.push({a:e[r].a,t:e[r].t});return t}(e.c)),a.setUint32(n,t.cmnt.length-1,!0),s|=524288,n+=4),a.setUint32(8,s,!0),r[nf](0,n)}function Af(e,t){var r=new Uint8Array(32),a=sf(r),n=12,s=0,i="";switch(r[0]=4,e.t){case"n":case"b":case"d":case"e":case"z":break;case"s":if(i=null==e.v?"":String(e.v),e.l){var o=t.rsst.findIndex((function(t){var r;return t.v==i&&t.l==(null==(r=e.l)?void 0:r.Target)}));-1==o&&(t.rsst[o=t.rsst.length]={v:i,l:e.l.Target}),r[1]=9,a.setUint32(n,o,!0),s|=512,n+=4}break;default:throw"unsupported cell type "+e.t}switch(e.c&&(a.setUint32(n,t.cmnt.length-1,!0),s|=4096,n+=4),e.t){case"n":r[1]=2,a.setFloat64(n,e.v,!0),s|=32,n+=8;break;case"b":r[1]=6,a.setFloat64(n,e.v?1:0,!0),s|=32,n+=8;break;case"s":if(i=null==e.v?"":String(e.v),e.l);else{var c=t.sst.indexOf(i);-1==c&&(t.sst[c=t.sst.length]=i),r[1]=3,a.setUint32(n,c,!0),s|=16,n+=4}break;case"d":r[1]=5,a.setFloat64(n,(e.v.getTime()-Date.UTC(2001,0,1))/1e3,!0),s|=64,n+=8;break;case"z":r[1]=0;break;default:throw"unsupported cell type "+e.t}return a.setUint32(8,s,!0),r[nf](0,n)}function Cf(e,t,r){switch(e[0]){case 0:case 1:case 2:case 3:case 4:return function(e,t,r,a){var n,s=sf(e),i=s.getUint32(4,!0),o=-1,c=-1,l=-1,f=NaN,h=0,u=new Date(Date.UTC(2001,0,1)),d=r>1?12:8;2&i&&(l=s.getUint32(d,!0),d+=4),d+=4*ff(i&(r>1?3468:396)),512&i&&(o=s.getUint32(d,!0),d+=4),d+=4*ff(i&(r>1?12288:4096)),16&i&&(c=s.getUint32(d,!0),d+=4),32&i&&(f=s.getFloat64(d,!0),d+=8),64&i&&(u.setTime(u.getTime()+1e3*(h=s.getFloat64(d,!0))),d+=8),r>1&&255&(i=s.getUint32(8,!0)>>>16)&&(-1==l&&(l=s.getUint32(d,!0)),d+=4);var p=e[r>=4?1:2];switch(p){case 0:return;case 2:case 7:n={t:"n",v:f};break;case 3:n={t:"s",v:t.sst[c]};break;case 5:n=(null==a?void 0:a.cellDates)?{t:"d",v:u}:{t:"n",v:h/86400+35430,z:X[14]};break;case 6:n={t:"b",v:f>0};break;case 8:n={t:"e",v:0};break;case 9:if(!(o>-1))throw new Error("Unsupported cell type ".concat(e[nf](0,4)));var m=t.rsst[o];n={t:"s",v:m.v},m.l&&(n.l={Target:m.l});break;default:throw new Error("Unsupported cell type ".concat(e[nf](0,4)))}return l>-1&&Sf(n,p|r<<8,i,t.ofmt[l],t.nfmt[l]),7==p&&(n.v/=86400),n}(e,t,e[0],r);case 5:return function(e,t,r){var a,n=sf(e),s=(n.getUint32(4,!0),n.getUint32(8,!0)),i=12,o=-1,c=-1,l=-1,f=NaN,h=NaN,u=0,d=new Date(Date.UTC(2001,0,1));1&s&&(f=function(e,t){for(var r=(127&e[t+15])<<7|e[t+14]>>1,a=1&e[t+14],n=t+13;n>=t;--n)a=256*a+e[n];return(128&e[t+15]?-a:a)*Math.pow(10,r-6176)}(e,i),i+=16),2&s&&(h=n.getFloat64(i,!0),i+=8),4&s&&(d.setTime(d.getTime()+1e3*(u=n.getFloat64(i,!0))),i+=8),8&s&&(c=n.getUint32(i,!0),i+=4),16&s&&(o=n.getUint32(i,!0),i+=4),i+=4*ff(480&s),512&s&&(n.getUint32(i,!0),i+=4),i+=4*ff(1024&s),2048&s&&(n.getUint32(i,!0),i+=4);var p,m,v=e[1];switch(v){case 0:a={t:"z"};break;case 2:case 10:a={t:"n",v:f};break;case 3:a={t:"s",v:t.sst[c]};break;case 5:a=(null==r?void 0:r.cellDates)?{t:"d",v:d}:{t:"n",v:u/86400+35430,z:X[14]};break;case 6:a={t:"b",v:h>0};break;case 7:a={t:"n",v:h};break;case 8:a={t:"e",v:0};break;case 9:if(!(o>-1))throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&s," : ").concat(e[nf](0,4)));var g=t.rsst[o];a={t:"s",v:g.v},g.l&&(a.l={Target:g.l});break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(31&s," : ").concat(e[nf](0,4)))}if(i+=4*ff(4096&s),516096&s&&(-1==l&&(l=n.getUint32(i,!0)),i+=4),524288&s){var b=n.getUint32(i,!0);i+=4,t.cmnt[b]&&(a.c=(p=t.cmnt[b],(m=[]).push({t:p.t||"",a:p.a,T:p.replies&&p.replies.length>0}),p.replies&&p.replies.forEach((function(e){m.push({t:e.t||"",a:e.a,T:!0})})),m))}return l>-1&&Sf(a,1280|v,s>>13,t.ofmt[l],t.nfmt[l]),7==v&&(a.v/=86400),a}(e,t,r);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function Of(e){return mf(vf(e)[1][0].data)}function Rf(e){return gf([[],[{type:0,data:uf(e)}]])}function If(e,t){var r,a=(null==(r=e.messages[0].meta[5])?void 0:r[0])?df(e.messages[0].meta[5][0].data):[];-1==a.indexOf(t)&&(a.push(t),e.messages[0].meta[5]=[{type:2,data:pf(a)}])}function Nf(e,t){var r,a=(null==(r=e.messages[0].meta[5])?void 0:r[0])?df(e.messages[0].meta[5][0].data):[];e.messages[0].meta[5]=[{type:2,data:pf(a.filter((function(e){return e!=t})))}]}function Ff(e,t){var r=vf(t.data),a=mf(r[1][0].data),n=r[3],s=[];return(n||[]).forEach((function(t){var r,n,i=vf(t.data);if(i[1]){var o=mf(i[1][0].data)>>>0;switch(a){case 1:s[o]=of(i[3][0].data);break;case 8:var c=vf(e[Of(i[9][0].data)][0].data),l=e[Of(c[1][0].data)][0],f=mf(l.meta[1][0].data);if(2001!=f)throw new Error("2000 unexpected reference to ".concat(f));var h=vf(l.data),u={v:h[3].map((function(e){return of(e.data)})).join("")};s[o]=u;e:if(null==(r=null==h?void 0:h[11])?void 0:r[0]){var d=null==(n=vf(h[11][0].data))?void 0:n[1];if(!d)break e;d.forEach((function(t){var r,a,n,s=vf(t.data);if(null==(r=s[2])?void 0:r[0]){var i=e[Of(null==(a=s[2])?void 0:a[0].data)][0],o=mf(i.meta[1][0].data);switch(o){case 2032:var c=vf(i.data);(null==(n=null==c?void 0:c[2])?void 0:n[0])&&!u.l&&(u.l=of(c[2][0].data));break;case 2039:break;default:console.log("unrecognized ObjectAttribute type ".concat(o))}}}))}break;case 2:s[o]=vf(i[6][0].data);break;case 3:s[o]=vf(i[5][0].data);break;case 10:var p=e[Of(i[10][0].data)][0];s[o]=Df(e,p.data);break;default:throw a}}})),s}function Df(e,t){var r,a,n,s,i,o,c,l,f,h,u={t:"",a:""},d=vf(t);if((null==(a=null==(r=null==d?void 0:d[1])?void 0:r[0])?void 0:a.data)&&(u.t=of(null==(s=null==(n=null==d?void 0:d[1])?void 0:n[0])?void 0:s.data)||""),null==(o=null==(i=null==d?void 0:d[3])?void 0:i[0])?void 0:o.data){var p=vf(e[Of(null==(l=null==(c=null==d?void 0:d[3])?void 0:c[0])?void 0:l.data)][0].data);(null==(h=null==(f=p[1])?void 0:f[0])?void 0:h.data)&&(u.a=of(p[1][0].data))}return(null==d?void 0:d[4])&&(u.replies=[],d[4].forEach((function(t){var r=e[Of(t.data)][0];u.replies.push(Df(e,r.data))}))),u}function Pf(e,t,r){var a=vf(t.data),n={"!ref":"A1"};(null==r?void 0:r.dense)&&(n["!data"]=[]);var s=e[Of(a[2][0].data)],i=mf(s[0].meta[1][0].data);if(6001!=i)throw new Error("6000 unexpected reference to ".concat(i));return function(e,t,r,a){var n,s,i,o,c,l,f,h,u,d,p=vf(t.data),m={s:{r:0,c:0},e:{r:0,c:0}};if(m.e.r=(mf(p[6][0].data)>>>0)-1,m.e.r<0)throw new Error("Invalid row varint ".concat(p[6][0].data));if(m.e.c=(mf(p[7][0].data)>>>0)-1,m.e.c<0)throw new Error("Invalid col varint ".concat(p[7][0].data));r["!ref"]=aa(m);var v=null!=r["!data"],g=r,b=vf(p[4][0].data),w=_f();(null==(n=b[4])?void 0:n[0])&&(w.sst=Ff(e,e[Of(b[4][0].data)][0])),(null==(s=b[6])?void 0:s[0])&&(w.fmla=Ff(e,e[Of(b[6][0].data)][0])),(null==(i=b[11])?void 0:i[0])&&(w.ofmt=Ff(e,e[Of(b[11][0].data)][0])),(null==(o=b[12])?void 0:o[0])&&(w.ferr=Ff(e,e[Of(b[12][0].data)][0])),(null==(c=b[17])?void 0:c[0])&&(w.rsst=Ff(e,e[Of(b[17][0].data)][0])),(null==(l=b[19])?void 0:l[0])&&(w.cmnt=Ff(e,e[Of(b[19][0].data)][0])),(null==(f=b[22])?void 0:f[0])&&(w.nfmt=Ff(e,e[Of(b[22][0].data)][0]));var T=vf(b[3][0].data),y=0;if(!(null==(h=b[9])?void 0:h[0]))throw"NUMBERS file missing row tree";if(vf(b[9][0].data)[1].map((function(e){return vf(e.data)})).forEach((function(t){y=mf(t[1][0].data);var n=mf(t[2][0].data),s=T[1][n];if(!s)throw"NUMBERS missing tile "+n;var i=vf(s.data),o=e[Of(i[2][0].data)][0],c=mf(o.meta[1][0].data);if(6002!=c)throw new Error("6001 unexpected reference to ".concat(c));var l=function(e,t){var r,a=vf(t.data),n=-1;(null==(r=null==a?void 0:a[7])?void 0:r[0])&&(n=mf(a[7][0].data)>>>0?1:0);var s=bf(a[5],(function(e){return function(e,t){var r,a,n,s,i,o,c,l,f,h,u,d,p,m,v,g,b=vf(e),w=mf(b[1][0].data)>>>0,T=mf(b[2][0].data)>>>0,y=(null==(a=null==(r=b[8])?void 0:r[0])?void 0:a.data)&&mf(b[8][0].data)>0||!1;if((null==(s=null==(n=b[7])?void 0:n[0])?void 0:s.data)&&0!=t)v=null==(o=null==(i=b[7])?void 0:i[0])?void 0:o.data,g=null==(l=null==(c=b[6])?void 0:c[0])?void 0:l.data;else{if(!(null==(h=null==(f=b[4])?void 0:f[0])?void 0:h.data)||1==t)throw"NUMBERS Tile missing ".concat(t," cell storage");v=null==(d=null==(u=b[4])?void 0:u[0])?void 0:d.data,g=null==(m=null==(p=b[3])?void 0:p[0])?void 0:m.data}for(var E=y?4:1,k=sf(v),_=[],S=0;S<v.length/2;++S){var x=k.getUint16(2*S,!0);x<65535&&_.push([S,x])}if(_.length!=T)throw"Expected ".concat(T," cells, found ").concat(_.length);var A=[];for(S=0;S<_.length-1;++S)A[_[S][0]]=g[nf](_[S][1]*E,_[S+1][1]*E);return _.length>=1&&(A[_[_.length-1][0]]=g[nf](_[_.length-1][1]*E)),{R:w,cells:A}}(e,n)}));return{nrows:mf(a[4][0].data)>>>0,data:s.reduce((function(e,t){return e[t.R]||(e[t.R]=[]),t.cells.forEach((function(r,a){if(e[t.R][a])throw new Error("Duplicate cell r=".concat(t.R," c=").concat(a));e[t.R][a]=r})),e}),[])}}(0,o);l.data.forEach((function(e,t){e.forEach((function(e,n){var s=Cf(e,w,a);s&&(v?(g["!data"][y+t]||(g["!data"][y+t]=[]),g["!data"][y+t][n]=s):r[Qr(n)+Jr(y+t)]=s)}))})),y+=l.nrows})),null==(u=b[13])?void 0:u[0]){var E=e[Of(b[13][0].data)][0],k=mf(E.meta[1][0].data);if(6144!=k)throw new Error("Expected merge type 6144, found ".concat(k));r["!merges"]=null==(d=vf(E.data))?void 0:d[1].map((function(e){var t=vf(e.data),r=sf(vf(t[1][0].data)[1][0].data),a=sf(vf(t[2][0].data)[1][0].data);return{s:{r:r.getUint16(0,!0),c:r.getUint16(2,!0)},e:{r:r.getUint16(0,!0)+a.getUint16(0,!0)-1,c:r.getUint16(2,!0)+a.getUint16(2,!0)-1}}}))}}(e,s[0],n,r),n}function Mf(e,t){var r,a,n,s,i,o,c,l={},f=[];if(e.FullPaths.forEach((function(e){if(e.match(/\.iwpv2/))throw new Error("Unsupported password protection")})),e.FileIndex.forEach((function(e){if(e.name.match(/\.iwa$/)&&0==e.content[0]){var t,r;try{t=Ef(e.content)}catch(t){return console.log("?? "+e.content.length+" "+(t.message||t))}try{r=wf(t)}catch(e){return console.log("## "+(e.message||e))}r.forEach((function(e){l[e.id]=e.messages,f.push(e.id)}))}})),!f.length)throw new Error("File has no messages");if((null==(n=null==(a=null==(r=null==l?void 0:l[1])?void 0:r[0].meta)?void 0:a[1])?void 0:n[0].data)&&1e4==mf(l[1][0].meta[1][0].data))throw new Error("Pages documents are not supported");var h=(null==(c=null==(o=null==(i=null==(s=null==l?void 0:l[1])?void 0:s[0])?void 0:i.meta)?void 0:o[1])?void 0:c[0].data)&&1==mf(l[1][0].meta[1][0].data)&&l[1][0];if(h||f.forEach((function(e){l[e].forEach((function(e){if(1==mf(e.meta[1][0].data)>>>0){if(h)throw new Error("Document has multiple roots");h=e}}))})),!h)throw new Error("Cannot find Document root");return function(e,t,r){var a,n=xh();n.Workbook={WBProps:{date1904:!0}};var s=vf(t.data);if(null==(a=s[2])?void 0:a[0])throw new Error("Keynote presentations are not supported");if(bf(s[1],Of).forEach((function(t){e[t].forEach((function(t){if(2==mf(t.meta[1][0].data)){var a=function(e,t,r){var a,n=vf(t.data),s={name:(null==(a=n[1])?void 0:a[0])?of(n[1][0].data):"",sheets:[]};return bf(n[2],Of).forEach((function(t){e[t].forEach((function(t){6e3==mf(t.meta[1][0].data)&&s.sheets.push(Pf(e,t,r))}))})),s}(e,t,r);a.sheets.forEach((function(e,t){Ah(n,e,0==t?a.name:a.name+"_"+t,!0)}))}}))})),0==n.SheetNames.length)throw new Error("Empty NUMBERS file");return n.bookType="numbers",n}(l,h,t)}function Lf(e,t,r){var a,n,s,i=[[],[{type:0,data:uf(0)}],[{type:0,data:uf(0)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},(function(){return 255})))}],[{type:0,data:uf(5)}],[{type:2,data:new Uint8Array([])}],[{type:2,data:new Uint8Array(Array.from({length:510},(function(){return 255})))}],[{type:0,data:uf(1)}]];if(!(null==(a=i[6])?void 0:a[0])||!(null==(n=i[7])?void 0:n[0]))throw"Mutation only works on post-BNC storages!";var o=0;if(i[7][0].data.length<2*e.length){var c=new Uint8Array(2*e.length);c.set(i[7][0].data),i[7][0].data=c}if(i[4][0].data.length<2*e.length){var l=new Uint8Array(2*e.length);l.set(i[4][0].data),i[4][0].data=l}for(var f=sf(i[7][0].data),h=0,u=[],d=sf(i[4][0].data),p=0,m=[],v=r?4:1,g=0;g<e.length;++g)if(null==e[g]||"z"==e[g].t&&!(null==(s=e[g].c)?void 0:s.length)||"e"==e[g].t)f.setUint16(2*g,65535,!0),d.setUint16(2*g,65535);else{var b,w;switch(f.setUint16(2*g,h/v,!0),d.setUint16(2*g,p/v,!0),e[g].t){case"d":if(e[g].v instanceof Date){b=xf(e[g],t),w=Af(e[g],t);break}b=xf(e[g],t),w=Af(e[g],t);break;case"s":case"n":case"b":case"z":b=xf(e[g],t),w=Af(e[g],t);break;default:throw new Error("Unsupported value "+e[g])}u.push(b),h+=b.length,m.push(w),p+=w.length,++o}for(i[2][0].data=uf(o),i[5][0].data=uf(5);g<i[7][0].data.length/2;++g)f.setUint16(2*g,65535,!0),d.setUint16(2*g,65535,!0);return i[6][0].data=lf(u),i[3][0].data=lf(m),i[8]=[{type:0,data:uf(r?1:0)}],i}function Uf(e,t){return{meta:[[],[{type:0,data:uf(e)}]],data:t}}function Bf(e,t){t.last||(t.last=927262);for(var r=t.last;r<2e6;++r)if(!t[r])return t[t.last=r]=e,r;throw new Error("Too many messages")}function Wf(e,t,r){return gf([[],[{type:0,data:uf(1)}],[],[{type:5,data:new Uint8Array(Float32Array.from([e/255]).buffer)}],[{type:5,data:new Uint8Array(Float32Array.from([t/255]).buffer)}],[{type:5,data:new Uint8Array(Float32Array.from([r/255]).buffer)}],[{type:5,data:new Uint8Array(Float32Array.from([1]).buffer)}],[],[],[],[],[],[{type:0,data:uf(1)}]])}function zf(e){switch(e){case 0:return Wf(99,222,171);case 1:return Wf(162,197,240);case 2:return Wf(255,189,189)}return Wf(255*Math.random(),255*Math.random(),255*Math.random())}function Hf(e,t,r,a){var n=Re.find(e,t[r].location);if(!n)throw"Could not find ".concat(t[r].location," in Numbers template");var s=wf(Ef(n.content));a(s.find((function(e){return e.id==r})),s),n.content=kf(Tf(s)),n.size=n.content.length}function Vf(e,t,r){var a=Re.find(e,t[r].location);if(!a)throw"Could not find ".concat(t[r].location," in Numbers template");return wf(Ef(a.content)).find((function(e){return e.id==r}))}function $f(e,t,r){e[3].push({type:2,data:gf([[],[{type:0,data:uf(t)}],[{type:2,data:cf(r.replace(/-.*$/,""))}],[{type:2,data:cf(r)}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:uf(0)}],[],[{type:0,data:uf(0)}]])}),e[1]=[{type:0,data:uf(Math.max(t+1,mf(e[1][0].data)))}]}function Gf(e,t,r,a,n,s){s||(s=Bf({deps:[],location:"",type:t},n));var i="".concat(a,"-").concat(s,".iwa");n[s].location="Root Entry"+i,Re.utils.cfb_add(e,i,kf(Tf([{id:s,messages:[Uf(t,gf(r))]}])));var o=i.replace(/^[\/]/,"").replace(/^Index\//,"").replace(/\.iwa$/,"");return Hf(e,n,2,(function(e){var t=vf(e.messages[0].data);$f(t,s||0,o),e.messages[0].data=gf(t)})),s}function Xf(e,t,r,a){var n=t[r].location.replace(/^Root Entry\//,"").replace(/^Index\//,"").replace(/\.iwa$/,""),s=e[3].findIndex((function(e){var t,r,a=vf(e.data);return(null==(t=a[3])?void 0:t[0])?of(a[3][0].data)==n:!(!(null==(r=a[2])?void 0:r[0])||of(a[2][0].data)!=n)})),i=vf(e[3][s].data);i[6]||(i[6]=[]),(Array.isArray(a)?a:[a]).forEach((function(e){i[6].push({type:2,data:gf([[],[{type:0,data:uf(e)}]])})})),e[3][s].data=gf(i)}var jf=!0;function Kf(e){return function(t){for(var r=0;r!=e.length;++r){var a=e[r];void 0===t[a[0]]&&(t[a[0]]=a[1]),"n"===a[2]&&(t[a[0]]=Number(t[a[0]]))}}}function Yf(e){Kf([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function Zf(e){Kf([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function Jf(e,t,r,a,n,s,i,o,c,l,f,h){try{s[a]=an(ut(e,r,!0),t);var u,d=ht(e,t);switch(o){case"sheet":u=sl(d,t,n,c,s[a],l,f,h);break;case"chart":if(!(u=function(e,t,r,a,n,s,i,o){return".bin"===t.slice(-4)?function(e,t,r,a,n){if(!e)return e;a||(a={"!id":{}});var s={"!type":"chart","!drawel":null,"!rel":""},i=[],o=!1;return Vr(e,(function(e,a,c){switch(c){case 550:s["!rel"]=e;break;case 651:n.Sheets[r]||(n.Sheets[r]={}),e.name&&(n.Sheets[r].CodeName=e.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:i.push(c);break;case 38:i.pop();break;default:if(a.T>0)i.push(c);else if(a.T<0)i.pop();else if(!o||t.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}),t),a["!id"][s["!rel"]]&&(s["!drawel"]=a["!id"][s["!rel"]]),s}(e,a,r,n,s):function(e,t,r,a,n){if(!e)return e;a||(a={"!id":{}});var s,i={"!type":"chart","!drawel":null,"!rel":""},o=e.match(Sc);return o&&Cc(o[0],0,n,r),(s=e.match(/drawing r:id="(.*?)"/))&&(i["!rel"]=s[1]),a["!id"][i["!rel"]]&&(i["!drawel"]=a["!id"][i["!rel"]]),i}(e,0,r,n,s)}(d,t,n,c,s[a],l))||!u["!drawel"])break;var p=bt(u["!drawel"].Target,t),m=rn(p),v=function(e,t){if(!e)return"??";var r=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return t["!id"][r].Target}(ut(e,p,!0),an(ut(e,m,!0),p)),g=bt(v,p),b=rn(g);u=function(e,t,r,a,n,s){var i=s||{"!type":"chart"};if(!e)return s;var o=0,c=0,l="A",f={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach((function(e){var t=function(e){var t,r=[],a=e.match(/^<c:numCache>/);(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach((function(e){var t=e.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);t&&(r[+t[1]]=a?+t[2]:t[2])}));var n=Ot((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach((function(e){t=e.replace(/<.*?>/g,"")})),[r,n,t]}(e);f.s.r=f.s.c=0,f.e.c=o,l=Qr(o),t[0].forEach((function(e,r){i["!data"]?(i["!data"][r]||(i["!data"][r]=[]),i["!data"][r][o]={t:"n",v:e,z:t[1]}):i[l+Jr(r)]={t:"n",v:e,z:t[1]},c=r})),f.e.r<c&&(f.e.r=c),++o})),o>0&&(i["!ref"]=aa(f)),i}(ut(e,g,!0),0,0,an(ut(e,b,!0),g),0,u);break;case"macro":y=t,s[a],y.slice(-4),u={"!type":"macro"};break;case"dialog":u=function(e,t,r,a,n,s,i,o){return t.slice(-4),{"!type":"dialog"}}(0,t,0,0,s[a]);break;default:throw new Error("Unrecognized sheet type "+o)}i[a]=u;var w=[],T=[];s&&s[a]&&De(s[a]).forEach((function(r){var n="";if(s[a][r].Type==tn.CMNT){if(n=bt(s[a][r].Target,t),!(w=function(e,t,r){return".bin"===t.slice(-4)?function(e,t){var r=[],a=[],n={},s=!1;return Vr(e,(function(e,i,o){switch(o){case 632:a.push(e);break;case 635:n=e;break;case 637:n.t=e.t,n.h=e.h,n.r=e.r;break;case 636:if(n.author=a[n.iauthor],delete n.iauthor,t.sheetRows&&n.rfx&&t.sheetRows<=n.rfx.r)break;n.t||(n.t=""),delete n.rfx,r.push(n);break;case 3072:case 37:case 38:break;case 35:s=!0;break;case 36:s=!1;break;default:if(i.T);else if(!s||t.WTF)throw new Error("Unexpected record 0x"+o.toString(16))}})),r}(e,r):function(e,t){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var r=[],a=[],n=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);n&&n[1]&&n[1].split(/<\/\w*:?author>/).forEach((function(e){if(""!==e&&""!==e.trim()){var t=e.match(/<(?:\w+:)?author[^>]*>(.*)/);t&&r.push(t[1])}}));var s=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return s&&s[1]&&s[1].split(/<\/\w*:?comment>/).forEach((function(e){if(""!==e&&""!==e.trim()){var n=e.match(/<(?:\w+:)?comment[^>]*>/);if(n){var s=St(n[0]),i={author:s.authorId&&r[s.authorId]||"sheetjsghost",ref:s.ref,guid:s.guid},o=ea(s.ref);if(!(t.sheetRows&&t.sheetRows<=o.r)){var c=e.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),l=!!c&&!!c[1]&&ti(c[1])||{r:"",t:"",h:""};i.r=l.r,"<t></t>"==l.r&&(l.t=l.h=""),i.t=(l.t||"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),t.cellHTML&&(i.h=l.h),a.push(i)}}}})),a}(e,r)}(ht(e,n,!0),n,c))||!w.length)return;so(u,w,!1)}s[a][r].Type==tn.TCMNT&&(n=bt(s[a][r].Target,t),T=T.concat(function(e,t){var r=[],a=!1,n={},s=0;return e.replace(Et,(function(i,o){var c=St(i);switch(xt(c[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<threadedComment":n={author:c.personId,guid:c.id,ref:c.ref,T:1};break;case"</threadedComment>":null!=n.t&&r.push(n);break;case"<text>":case"<text":s=o+i.length;break;case"</text>":n.t=e.slice(s,o).replace(/\r\n/g,"\n").replace(/\r/g,"\n");break;case"<mentions":case"<mentions>":case"<ext":a=!0;break;case"</mentions>":case"</ext>":a=!1;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+c[0]+" in threaded comments")}return i})),r}(ht(e,n,!0),c)))})),T&&T.length&&so(u,T,!0,c.people||[]),function(e,t,r,a,n,s,i,o){if(e&&e["!legdrawel"]){var c=ut(r,bt(e["!legdrawel"].Target,a),!0);c&&function(e,t,r){var a=0;(e.match(ao)||[]).forEach((function(e){var n="",s=!0,i=-1,o=-1,c=-1;if(e.replace(Et,(function(t,r){var a=St(t);switch(xt(a[0])){case"<ClientData":a.ObjectType&&(n=a.ObjectType);break;case"<Visible":case"<Visible/>":s=!1;break;case"<Row":case"<Row>":case"<Column":case"<Column>":i=r+t.length;break;case"</Row>":o=+e.slice(i,r).trim();break;case"</Column>":c=+e.slice(i,r).trim()}return""})),"Note"===n){var l=Sh(t,o>=0&&c>=0?ta({r:o,c}):r[a].ref);l.c&&(l.c.hidden=s),++a}}))}(Ht(c),e,o||[])}}(u,0,e,t,0,0,0,w)}catch(e){if(c.WTF)throw e}var y}function qf(e){return"/"==e.charAt(0)?e.slice(1):e}function Qf(e,t){if(Ee(),Yf(t=t||{}),lt(e,"META-INF/manifest.xml"))return Jl(e,t);if(lt(e,"objectdata.xml"))return Jl(e,t);if(lt(e,"Index/Document.iwa")){if("undefined"==typeof Uint8Array)throw new Error("NUMBERS file parsing requires Uint8Array support");if(void 0!==Mf){if(e.FileIndex)return Mf(e,t);var r=Re.utils.cfb_new();return pt(e).forEach((function(t){mt(r,t,dt(e,t))})),Mf(r,t)}throw new Error("Unsupported NUMBERS file")}if(!lt(e,"[Content_Types].xml")){if(lt(e,"index.xml.gz"))throw new Error("Unsupported NUMBERS 08 file");if(lt(e,"index.xml"))throw new Error("Unsupported NUMBERS 09 file");var a=Re.find(e,"Index.zip");if(a)return delete(t=Ye(t)).type,"string"==typeof a.content&&(t.type="binary"),"undefined"!=typeof Bun&&Buffer.isBuffer(a.content)?sh(new Uint8Array(a.content),t):sh(a.content,t);throw new Error("Unsupported ZIP file")}var n,s,i=pt(e),o=function(e){var t={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};if(!e||!e.match)return t;var r={};if((e.match(Et)||[]).forEach((function(e){var a=St(e);switch(a[0].replace(kt,"<")){case"<?xml":break;case"<Types":t.xmlns=a["xmlns"+(a[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":r[a.Extension.toLowerCase()]=a.ContentType;break;case"<Override":void 0!==t[qa[a.ContentType]]&&t[qa[a.ContentType]].push(a.PartName)}})),t.xmlns!==ar.CT)throw new Error("Unknown Namespace: "+t.xmlns);return t.calcchain=t.calcchains.length>0?t.calcchains[0]:"",t.sst=t.strs.length>0?t.strs[0]:"",t.style=t.styles.length>0?t.styles[0]:"",t.defaults=r,delete t.calcchains,t}(ut(e,"[Content_Types].xml")),c=!1;if(0===o.workbooks.length&&ht(e,s="xl/workbook.xml",!0)&&o.workbooks.push(s),0===o.workbooks.length){if(!ht(e,s="xl/workbook.bin",!0))throw new Error("Could not find workbook");o.workbooks.push(s),c=!0}"bin"==o.workbooks[0].slice(-3)&&(c=!0);var l={},f={};if(!t.bookSheets&&!t.bookProps){if(lc=[],o.sst)try{lc=function(e,t,r){return".bin"===t.slice(-4)?function(e,t){var r=[],a=!1;return Vr(e,(function(e,n,s){switch(s){case 159:r.Count=e[0],r.Unique=e[1];break;case 19:r.push(e);break;case 160:return!0;case 35:a=!0;break;case 36:a=!1;break;default:if(n.T,!a||t.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}})),r}(e,r):function(e,t){var r=[],a="";if(!e)return r;var n=e.match(ri);if(n){a=n[2].replace(ai,"").split(ni);for(var s=0;s!=a.length;++s){var i=ti(a[s].trim(),t);null!=i&&(r[r.length]=i)}n=St(n[1]),r.Count=n.count,r.Unique=n.uniqueCount}return r}(e,r)}(ht(e,qf(o.sst)),o.sst,t)}catch(e){if(t.WTF)throw e}t.cellStyles&&o.themes.length&&(l=eo(ut(e,o.themes[0].replace(/^\//,""),!0)||"",t)),o.style&&(f=function(e,t,r,a){return".bin"===t.slice(-4)?function(e,t,r){var a={NumberFmt:[]};for(var n in X)a.NumberFmt[n]=X[n];a.CellXf=[],a.Fonts=[];var s=[],i=!1;return Vr(e,(function(e,n,o){switch(o){case 44:a.NumberFmt[e[0]]=e[1],Ae(e[1],e[0]);break;case 43:a.Fonts.push(e),null!=e.color.theme&&t&&t.themeElements&&t.themeElements.clrScheme&&(e.color.rgb=wi(t.themeElements.clrScheme[e.color.theme].rgb,e.color.tint||0));break;case 1025:case 45:case 46:case 48:case 507:case 572:case 475:case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 47:617==s[s.length-1]&&a.CellXf.push(e);break;case 35:i=!0;break;case 36:i=!1;break;case 37:s.push(o),i=!0;break;case 38:s.pop(),i=!1;break;default:if(n.T>0)s.push(o);else if(n.T<0)s.pop();else if(!i||r.WTF&&37!=s[s.length-1])throw new Error("Unexpected record 0x"+o.toString(16))}})),a}(e,r,a):Mi(e,r,a)}(ht(e,qf(o.style)),o.style,l,t))}o.links.map((function(r){try{return an(ut(e,rn(qf(r))),r),function(e,t,r,a){if(".bin"===r.slice(-4))return function(e,t,r,a){if(!e)return e;var n=a||{},s=!1;Vr(e,(function(e,t,r){switch(r){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:s=!0;break;case 36:s=!1;break;default:if(t.T);else if(!s||n.WTF)throw new Error("Unexpected record 0x"+r.toString(16))}}),n)}(e,0,0,a)}(ht(e,qf(r)),0,r,t)}catch(e){}}));var h=function(e,t,r){return".bin"===t.slice(-4)?function(e,t){var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},a=[],n=!1;t||(t={}),t.biff=12;var s=[],i=[[]];return i.SheetNames=[],i.XTI=[],Cl[16]={n:"BrtFRTArchID$",f:al},Vr(e,(function(e,o,c){switch(c){case 156:i.SheetNames.push(e.name),r.Sheets.push(e);break;case 153:r.WBProps=e;break;case 39:null!=e.Sheet&&(t.SID=e.Sheet),e.Ref=Xo(e.Ptg,0,null,i,t),delete t.SID,delete e.Ptg,s.push(e);break;case 1036:case 361:case 2071:case 158:case 143:case 664:case 353:case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:case 16:break;case 357:case 358:case 355:case 667:i[0].length?i.push([c,e]):i[0]=[c,e],i[i.length-1].XTI=[];break;case 362:0===i.length&&(i[0]=[],i[0].XTI=[]),i[i.length-1].XTI=i[i.length-1].XTI.concat(e),i.XTI=i.XTI.concat(e);break;case 35:case 37:a.push(c),n=!0;break;case 36:case 38:a.pop(),n=!1;break;default:if(o.T);else if(!n||t.WTF&&37!=a[a.length-1]&&35!=a[a.length-1])throw new Error("Unexpected record 0x"+c.toString(16))}}),t),qc(r),r.Names=s,r.supbooks=i,r}(e,r):function(e,t){if(!e)throw new Error("Could not find file");var r={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},a=!1,n="xmlns",s={},i=0;if(e.replace(Et,(function(o,c){var l=St(o);switch(xt(l[0])){case"<?xml":case"</workbook>":case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":case"<bookViews":case"<bookViews>":case"</bookViews>":case"</workbookView>":case"<sheets":case"<sheets>":case"</sheets>":case"</sheet>":case"<functionGroups":case"<functionGroups/>":case"<functionGroup":case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":case"<definedName/>":case"</calcPr>":case"<oleSize":case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":case"<customWorkbookView":case"</customWorkbookView>":case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":case"<smartTagPr":case"<smartTagPr/>":case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":case"<webPublishing":case"<webPublishing/>":case"<fileRecoveryPr":case"<fileRecoveryPr/>":case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":case"<ArchID":case"<revisionPtr":break;case"<workbook":o.match(rl)&&(n="xmlns"+o.match(/<(\w+):/)[1]),r.xmlns=l[n];break;case"<fileVersion":delete l[0],r.AppVersion=l;break;case"<workbookPr":case"<workbookPr/>":Xc.forEach((function(e){if(null!=l[e[0]])switch(e[2]){case"bool":r.WBProps[e[0]]=Lt(l[e[0]]);break;case"int":r.WBProps[e[0]]=parseInt(l[e[0]],10);break;default:r.WBProps[e[0]]=l[e[0]]}})),l.codeName&&(r.WBProps.CodeName=Ht(l.codeName));break;case"<workbookView":case"<workbookView/>":delete l[0],r.WBView.push(l);break;case"<sheet":switch(l.state){case"hidden":l.Hidden=1;break;case"veryHidden":l.Hidden=2;break;default:l.Hidden=0}delete l.state,l.name=Ot(Ht(l.name)),delete l[0],r.Sheets.push(l);break;case"<definedNames>":case"<definedNames":case"<ext":case"<AlternateContent":case"<AlternateContent>":a=!0;break;case"</definedNames>":case"</ext>":case"</AlternateContent>":a=!1;break;case"<definedName":(s={}).Name=Ht(l.name),l.comment&&(s.Comment=l.comment),l.localSheetId&&(s.Sheet=+l.localSheetId),Lt(l.hidden||"0")&&(s.Hidden=!0),i=c+o.length;break;case"</definedName>":s.Ref=Ot(Ht(e.slice(i,c))),r.Names.push(s);break;case"<calcPr":case"<calcPr/>":delete l[0],r.CalcPr=l;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+l[0]+" in workbook")}return o})),-1===nr.indexOf(r.xmlns))throw new Error("Unknown Namespace: "+r.xmlns);return qc(r),r}(e,r)}(ht(e,qf(o.workbooks[0])),o.workbooks[0],t),u={},d="";o.coreprops.length&&((d=ht(e,qf(o.coreprops[0]),!0))&&(u=un(d)),0!==o.extprops.length&&(d=ht(e,qf(o.extprops[0]),!0))&&function(e,t,r){var a={};t||(t={}),e=Ht(e),mn.forEach((function(r){var n=(e.match($t(r[0]))||[])[1];switch(r[2]){case"string":n&&(t[r[1]]=Ot(n));break;case"bool":t[r[1]]="true"===n;break;case"raw":var s=e.match(new RegExp("<"+r[0]+"[^>]*>([\\s\\S]*?)</"+r[0]+">"));s&&s.length>0&&(a[r[1]]=s[1])}})),a.HeadingPairs&&a.TitlesOfParts&&gn(a.HeadingPairs,a.TitlesOfParts,t,r)}(d,u,t));var p={};t.bookSheets&&!t.bookProps||0!==o.custprops.length&&(d=ut(e,qf(o.custprops[0]),!0))&&(p=function(e,t){var r={},a="",n=e.match(wn);if(n)for(var s=0;s!=n.length;++s){var i=n[s],o=St(i);switch(xt(o[0])){case"<?xml":case"<Properties":break;case"<property":a=Ot(o.name);break;case"</property>":a=null;break;default:if(0===i.indexOf("<vt:")){var c=i.split(">"),l=c[0].slice(4),f=c[1];switch(l){case"lpstr":case"bstr":case"lpwstr":case"cy":case"error":r[a]=Ot(f);break;case"bool":r[a]=Lt(f);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":r[a]=parseInt(f,10);break;case"r4":case"r8":case"decimal":r[a]=parseFloat(f);break;case"filetime":case"date":r[a]=je(f);break;default:if("/"==l.slice(-1))break;t.WTF&&"undefined"!=typeof console&&console.warn("Unexpected",i,l,c)}}else if("</"===i.slice(0,2));else if(t.WTF)throw new Error(i)}}return r}(d,t));var m={};if((t.bookSheets||t.bookProps)&&(h.Sheets?n=h.Sheets.map((function(e){return e.name})):u.Worksheets&&u.SheetNames.length>0&&(n=u.SheetNames),t.bookProps&&(m.Props=u,m.Custprops=p),t.bookSheets&&void 0!==n&&(m.SheetNames=n),t.bookSheets?m.SheetNames:t.bookProps))return m;n={};var v,g={};t.bookDeps&&o.calcchain&&(v=ht(e,qf(o.calcchain)),g=".bin"===o.calcchain.slice(-4)?function(e,t,r){var a=[];return Vr(e,(function(e,t,r){if(63===r)a.push(e);else if(!t.T)throw new Error("Unexpected record 0x"+r.toString(16))})),a}(v):function(e){var t=[];if(!e)return t;var r=1;return(e.match(Et)||[]).forEach((function(e){var a=St(e);switch(a[0]){case"<?xml":case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete a[0],a.i?r=a.i:a.i=r,t.push(a)}})),t}(v));var b,w,T=0,y={},E=h.Sheets;u.Worksheets=E.length,u.SheetNames=[];for(var k=0;k!=E.length;++k)u.SheetNames[k]=E[k].name;var _=c?"bin":"xml",S=o.workbooks[0].lastIndexOf("/"),x=(o.workbooks[0].slice(0,S+1)+"_rels/"+o.workbooks[0].slice(S+1)+".rels").replace(/^\//,"");lt(e,x)||(x="xl/_rels/workbook."+_+".rels");var A=an(ut(e,x,!0),x.replace(/_rels.*/,"s5s"));(o.metadata||[]).length>=1&&(t.xlmeta=function(e,t,r){return".bin"===t.slice(-4)?function(e,t,r){var a={Types:[],Cell:[],Value:[]},n=r||{},s=[],i=!1,o=2;return Vr(e,(function(e,t,r){switch(r){case 335:a.Types.push({name:e.name});break;case 51:e.forEach((function(e){1==o?a.Cell.push({type:a.Types[e[0]-1].name,index:e[1]}):0==o&&a.Value.push({type:a.Types[e[0]-1].name,index:e[1]})}));break;case 337:o=e?1:0;break;case 338:o=2;break;case 35:s.push(r),i=!0;break;case 36:s.pop(),i=!1;break;default:if(t.T);else if(!i||n.WTF&&35!=s[s.length-1])throw new Error("Unexpected record 0x"+r.toString(16))}})),a}(e,0,r):function(e,t,r){var a={Types:[],Cell:[],Value:[]};if(!e)return a;var n,s=!1,i=2;return e.replace(Et,(function(e){var t=St(e);switch(xt(t[0])){case"<?xml":case"<metadata":case"</metadata>":case"<metadataTypes":case"</metadataTypes>":case"</metadataType>":case"</futureMetadata>":case"<bk>":case"</bk>":case"</rc>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<metadataType":a.Types.push({name:t.name});break;case"<futureMetadata":for(var o=0;o<a.Types.length;++o)a.Types[o].name==t.name&&(n=a.Types[o]);break;case"<rc":1==i?a.Cell.push({type:a.Types[t.t-1].name,index:+t.v}):0==i&&a.Value.push({type:a.Types[t.t-1].name,index:+t.v});break;case"<cellMetadata":i=1;break;case"</cellMetadata>":case"</valueMetadata>":i=2;break;case"<valueMetadata":i=0;break;case"<ext":s=!0;break;case"</ext>":s=!1;break;case"<rvb":if(!n)break;n.offsets||(n.offsets=[]),n.offsets.push(+t.i);break;default:if(!s&&(null==r?void 0:r.WTF))throw new Error("unrecognized "+t[0]+" in metadata")}return e})),a}(e,0,r)}(ht(e,qf(o.metadata[0])),o.metadata[0],t)),(o.people||[]).length>=1&&(t.people=function(e,t){var r=[],a=!1;return e.replace(Et,(function(e){var n=St(e);switch(xt(n[0])){case"<?xml":case"<personList":case"</personList>":case"</person>":case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<person":r.push({name:n.displayname,id:n.id});break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(!a&&t.WTF)throw new Error("unrecognized "+n[0]+" in threaded comments")}return e})),r}(ht(e,qf(o.people[0])),t)),A&&(A=function(e,t){if(!e)return 0;try{e=t.map((function(t){return t.id||(t.id=t.strRelID),[t.name,e["!id"][t.id].Target,(r=e["!id"][t.id].Type,tn.WS.indexOf(r)>-1?"sheet":tn.CS&&r==tn.CS?"chart":tn.DS&&r==tn.DS?"dialog":tn.MS&&r==tn.MS?"macro":r&&r.length?r:"sheet")];var r}))}catch(e){return null}return e&&0!==e.length?e:null}(A,h.Sheets));var C=ht(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(T=0;T!=u.Worksheets;++T){var O="sheet";if(A&&A[T]?(b="xl/"+A[T][1].replace(/[\/]?xl\//,""),lt(e,b)||(b=A[T][1]),lt(e,b)||(b=x.replace(/_rels\/.*$/,"")+A[T][1]),O=A[T][2]):b=(b="xl/worksheets/sheet"+(T+1-C)+"."+_).replace(/sheet0\./,"sheet."),w=b.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),t&&null!=t.sheets)switch(typeof t.sheets){case"number":if(T!=t.sheets)continue e;break;case"string":if(u.SheetNames[T].toLowerCase()!=t.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(t.sheets)){for(var R=!1,I=0;I!=t.sheets.length;++I)"number"==typeof t.sheets[I]&&t.sheets[I]==T&&(R=1),"string"==typeof t.sheets[I]&&t.sheets[I].toLowerCase()==u.SheetNames[T].toLowerCase()&&(R=1);if(!R)continue e}}Jf(e,b,w,u.SheetNames[T],T,y,n,O,t,h,l,f)}return m={Directory:o,Workbook:h,Props:u,Custprops:p,Deps:g,Sheets:n,SheetNames:u.SheetNames,Strings:lc,Styles:f,Themes:l,SSF:Ye(X)},t&&t.bookFiles&&(e.files?(m.keys=i,m.files=e.files):(m.keys=[],m.files={},e.FullPaths.forEach((function(t,r){t=t.replace(/^Root Entry[\/]/,""),m.keys.push(t),m.files[t]=e.FileIndex[r]})))),t&&t.bookVBA&&(o.vba.length>0?m.vbaraw=ht(e,qf(o.vba[0]),!0):o.defaults&&o.defaults.bin===uo&&(m.vbaraw=ht(e,"xl/vbaProject.bin",!0))),m.bookType=c?"xlsb":"xlsx",m}function eh(e,t){var r,a,n=t||{},s="Workbook",i=Re.find(e,s);try{if(s="/!DataSpaces/Version",!(i=Re.find(e,s))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+s);if(r=i.content,(a={}).id=r.read_shift(0,"lpp4"),a.R=ci(r,4),a.U=ci(r,4),a.W=ci(r,4),s="/!DataSpaces/DataSpaceMap",!(i=Re.find(e,s))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+s);var o=function(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(li(e));return t}(i.content);if(1!==o.length||1!==o[0].comps.length||0!==o[0].comps[0].t||"StrongEncryptionDataSpace"!==o[0].name||"EncryptedPackage"!==o[0].comps[0].v)throw new Error("ECMA-376 Encrypted file bad "+s);if(s="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(i=Re.find(e,s))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+s);var c=function(e){var t=[];e.l+=4;for(var r=e.read_shift(4);r-- >0;)t.push(e.read_shift(0,"lpp4"));return t}(i.content);if(1!=c.length||"StrongEncryptionTransform"!=c[0])throw new Error("ECMA-376 Encrypted file bad "+s);if(s="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(i=Re.find(e,s))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+s);!function(e){var t=function(e){var t={};return e.read_shift(4),e.l+=4,t.id=e.read_shift(0,"lpp4"),t.name=e.read_shift(0,"lpp4"),t.R=ci(e,4),t.U=ci(e,4),t.W=ci(e,4),t}(e);if(t.ename=e.read_shift(0,"8lpp4"),t.blksz=e.read_shift(4),t.cmode=e.read_shift(4),4!=e.read_shift(4))throw new Error("Bad !Primary record")}(i.content)}catch(e){}if(s="/EncryptionInfo",!(i=Re.find(e,s))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+s);var l=function(e){var t=ci(e);switch(t.Minor){case 2:return[t.Minor,ui(e)];case 3:return[t.Minor,di()];case 4:return[t.Minor,pi(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+t.Minor)}(i.content);if(s="/EncryptedPackage",!(i=Re.find(e,s))||!i.content)throw new Error("ECMA-376 Encrypted file missing "+s);if(4==l[0]&&"undefined"!=typeof decrypt_agile)return decrypt_agile(l[1],i.content,n.password||"",n);if(2==l[0]&&"undefined"!=typeof decrypt_std76)return decrypt_std76(l[1],i.content,n.password||"",n);throw new Error("File is password-protected")}function th(e,t){e&&!e.SSF&&(e.SSF=Ye(X)),e&&e.SSF&&(Ee(),ye(e.SSF),t.revssf=Le(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,hc?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="xml",a=po.indexOf(t.bookType)>-1,n={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Zf(t=t||{});var s=vt(),i="",o=0;if(t.cellXfs=[],mc(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),mt(s,i="docProps/core.xml",pn(e.Props,t)),n.coreprops.push(i),sn(t.rels,2,i,tn.CORE_PROPS),i="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var c=[],l=0;l<e.SheetNames.length;++l)2!=(e.Workbook.Sheets[l]||{}).Hidden&&c.push(e.SheetNames[l]);e.Props.SheetNames=c}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,mt(s,i,bn(e.Props)),n.extprops.push(i),sn(t.rels,3,i,tn.EXT_PROPS),e.Custprops!==e.Props&&De(e.Custprops||{}).length>0&&(mt(s,i="docProps/custom.xml",Tn(e.Custprops)),n.custprops.push(i),sn(t.rels,4,i,tn.CUST_PROPS));var f,h=["SheetJ5"];for(t.tcid=0,o=1;o<=e.SheetNames.length;++o){var u={"!id":{}},d=e.Sheets[e.SheetNames[o-1]];if((d||{})["!type"],mt(s,i="xl/worksheets/sheet"+o+"."+r,Dc(o-1,t,e,u)),n.sheets.push(i),sn(t.wbrels,-1,"worksheets/sheet"+o+"."+r,tn.WS[0]),d){var p=d["!comments"],m=!1,v="";if(p&&p.length>0){var g=!1;p.forEach((function(e){e[1].forEach((function(e){1==e.T&&(g=!0)}))})),g&&(mt(s,v="xl/threadedComments/threadedComment"+o+".xml",oo(p,h,t)),n.threadedcomments.push(v),sn(u,-1,"../threadedComments/threadedComment"+o+".xml",tn.TCMNT)),mt(s,v="xl/comments"+o+"."+r,io(p)),n.comments.push(v),sn(u,-1,"../comments"+o+"."+r,tn.CMNT),m=!0}d["!legacy"]&&m&&mt(s,"xl/drawings/vmlDrawing"+o+".vml",no(o,d["!comments"])),delete d["!comments"],delete d["!legacy"]}u["!id"].rId1&&mt(s,rn(i),nn(u))}return null!=t.Strings&&t.Strings.length>0&&(mt(s,i="xl/sharedStrings."+r,function(e,t){if(!t.bookSST)return"";var r=[wt];r[r.length]=Qt("sst",null,{xmlns:nr[0],count:e.Count,uniqueCount:e.Unique});for(var a=0;a!=e.length;++a)if(null!=e[a]){var n=e[a],s="<si>";n.r?s+=n.r:(s+="<t",n.t||(n.t=""),"string"!=typeof n.t&&(n.t=String(n.t)),n.t.match(si)&&(s+=' xml:space="preserve"'),s+=">"+Nt(n.t)+"</t>"),s+="</si>",r[r.length]=s}return r.length>2&&(r[r.length]="</sst>",r[1]=r[1].replace("/>",">")),r.join("")}(t.Strings,t)),n.strs.push(i),sn(t.wbrels,-1,"sharedStrings."+r,tn.SST)),mt(s,i="xl/workbook."+r,function(e){var t=[wt];t[t.length]=Qt("workbook",null,{xmlns:nr[0],"xmlns:r":ar.r});var r=e.Workbook&&(e.Workbook.Names||[]).length>0,a={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(Xc.forEach((function(t){null!=e.Workbook.WBProps[t[0]]&&e.Workbook.WBProps[t[0]]!=t[1]&&(a[t[0]]=e.Workbook.WBProps[t[0]])})),e.Workbook.WBProps.CodeName&&(a.codeName=e.Workbook.WBProps.CodeName,delete a.CodeName)),t[t.length]=Qt("workbookPr",null,a);var n=e.Workbook&&e.Workbook.Sheets||[],s=0;if(n&&n[0]&&n[0].Hidden){for(t[t.length]="<bookViews>",s=0;s!=e.SheetNames.length&&n[s]&&n[s].Hidden;++s);s==e.SheetNames.length&&(s=0),t[t.length]='<workbookView firstSheet="'+s+'" activeTab="'+s+'"/>',t[t.length]="</bookViews>"}for(t[t.length]="<sheets>",s=0;s!=e.SheetNames.length;++s){var i={name:Nt(e.SheetNames[s].slice(0,31))};if(i.sheetId=""+(s+1),i["r:id"]="rId"+(s+1),n[s])switch(n[s].Hidden){case 1:i.state="hidden";break;case 2:i.state="veryHidden"}t[t.length]=Qt("sheet",null,i)}return t[t.length]="</sheets>",r&&(t[t.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(e){var r={name:e.Name};e.Comment&&(r.comment=e.Comment),null!=e.Sheet&&(r.localSheetId=""+e.Sheet),e.Hidden&&(r.hidden="1"),e.Ref&&(t[t.length]=Qt("definedName",Nt(e.Ref),r))})),t[t.length]="</definedNames>"),t.length>2&&(t[t.length]="</workbook>",t[1]=t[1].replace("/>",">")),t.join("")}(e)),n.workbooks.push(i),sn(t.rels,1,i,tn.WB),mt(s,i="xl/theme/theme1.xml",to(e.Themes,t)),n.themes.push(i),sn(t.wbrels,-1,"theme/theme1.xml",tn.THEME),mt(s,i="xl/styles."+r,function(e,t){var r,a=[wt,Qt("styleSheet",null,{xmlns:nr[0],"xmlns:vt":ar.vt})];return e.SSF&&null!=(r=function(e){var t=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(r){for(var a=r[0];a<=r[1];++a)null!=e[a]&&(t[t.length]=Qt("numFmt",null,{numFmtId:a,formatCode:Nt(e[a])}))})),1===t.length?"":(t[t.length]="</numFmts>",t[0]=Qt("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(e.SSF))&&(a[a.length]=r),a[a.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',a[a.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',a[a.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',a[a.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(r=function(e){var t=[];return t[t.length]=Qt("cellXfs",null),e.forEach((function(e){t[t.length]=Qt("xf",null,e)})),t[t.length]="</cellXfs>",2===t.length?"":(t[0]=Qt("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(t.cellXfs))&&(a[a.length]=r),a[a.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',a[a.length]='<dxfs count="0"/>',a[a.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',a.length>2&&(a[a.length]="</styleSheet>",a[1]=a[1].replace("/>",">")),a.join("")}(e,t)),n.styles.push(i),sn(t.wbrels,-1,"styles."+r,tn.STY),e.vbaraw&&a&&(mt(s,i="xl/vbaProject.bin",e.vbaraw),n.vba.push(i),sn(t.wbrels,-1,"vbaProject.bin",tn.VBA)),mt(s,i="xl/metadata."+r,((f=[wt]).push('<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">\n <metadataTypes count="1">\n <metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>\n </metadataTypes>\n <futureMetadata name="XLDAPR" count="1">\n <bk>\n <extLst>\n <ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">\n <xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>\n </ext>\n </extLst>\n </bk>\n </futureMetadata>\n <cellMetadata count="1">\n <bk>\n <rc t="1" v="0"/>\n </bk>\n </cellMetadata>\n</metadata>'),f.join(""))),n.metadata.push(i),sn(t.wbrels,-1,"metadata."+r,tn.XLMETA),h.length>1&&(mt(s,i="xl/persons/person.xml",co(h)),n.people.push(i),sn(t.wbrels,-1,"persons/person.xml",tn.PEOPLE)),mt(s,"[Content_Types].xml",en(n,t)),mt(s,"_rels/.rels",nn(t.rels)),mt(s,"xl/_rels/workbook.xml.rels",nn(t.wbrels)),delete t.revssf,delete t.ssf,s}function rh(e,t){var r="";switch((t||{}).type||"base64"){case"buffer":case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":r=k(e.slice(0,12));break;case"binary":r=e;break;default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[r.charCodeAt(0),r.charCodeAt(1),r.charCodeAt(2),r.charCodeAt(3),r.charCodeAt(4),r.charCodeAt(5),r.charCodeAt(6),r.charCodeAt(7)]}function ah(e,t){var r=0;e:for(;r<e.length;)switch(e.charCodeAt(r)){case 10:case 13:case 32:++r;break;case 60:return vl(e.slice(r),t);default:break e}return Ks.to_workbook(e,t)}function nh(e,t,r,a){return a?(r.type="string",Ks.to_workbook(e,r)):Ks.to_workbook(t,r)}function sh(e,t){u();var r=t||{};if(r.codepage&&void 0===a&&console.error("Codepage tables are not loaded. Non-ASCII characters may not give expected results"),"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer)return sh(new Uint8Array(e),((r=Ye(r)).type="array",r));"undefined"!=typeof Uint8Array&&e instanceof Uint8Array&&!r.type&&(r.type="undefined"!=typeof Deno?"buffer":"array");var n,s=e,i=!1;if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),fc={},r.dateNF&&(fc.dateNF=r.dateNF),r.type||(r.type=_&&Buffer.isBuffer(e)?"buffer":"base64"),"file"==r.type&&(r.type=_?"buffer":"binary",s=function(e){if(void 0!==Ce)return Ce.readFileSync(e);if("undefined"!=typeof Deno)return Deno.readFileSync(e);if("undefined"!=typeof $&&"undefined"!=typeof File&&"undefined"!=typeof Folder)try{var t=File(e);t.open("r"),t.encoding="binary";var r=t.read();return t.close(),r}catch(e){if(!e.message||!e.message.match(/onstruct/))throw e}throw new Error("Cannot access file "+e)}(e),"undefined"==typeof Uint8Array||_||(r.type="array")),"string"==r.type&&(i=!0,r.type="binary",r.codepage=65001,s=function(e){return e.match(/[^\x00-\x7F]/)?Vt(e):e}(e)),"array"==r.type&&"undefined"!=typeof Uint8Array&&e instanceof Uint8Array&&"undefined"!=typeof ArrayBuffer){var o=new ArrayBuffer(3),c=new Uint8Array(o);if(c.foo="bar",!c.foo)return(r=Ye(r)).type="array",sh(N(s),r)}switch((n=rh(s,r))[0]){case 208:if(207===n[1]&&17===n[2]&&224===n[3]&&161===n[4]&&177===n[5]&&26===n[6]&&225===n[7])return function(e,t){return Re.find(e,"EncryptedPackage")?eh(e,t):Al(e,t)}(Re.read(s,r),r);break;case 9:if(n[1]<=8)return Al(s,r);break;case 60:return vl(s,r);case 73:if(73===n[1]&&42===n[2]&&0===n[3])throw new Error("TIFF Image File is not a spreadsheet");if(68===n[1])return function(e,t){var r=t||{},a=!!r.WTF;r.WTF=!0;try{var n=Gs.to_workbook(e,r);return r.WTF=a,n}catch(n){if(r.WTF=a,!n.message.match(/SYLK bad record ID/)&&a)throw n;return Ks.to_workbook(e,t)}}(s,r);break;case 84:if(65===n[1]&&66===n[2]&&76===n[3])return Xs.to_workbook(s,r);break;case 80:return 75===n[1]&&n[2]<9&&n[3]<9?function(e,t){var r=e,a=t||{};return a.type||(a.type=_&&Buffer.isBuffer(e)?"buffer":"base64"),Qf(gt(r,a),a)}(s,r):nh(e,s,r,i);case 239:return 60===n[3]?vl(s,r):nh(e,s,r,i);case 255:if(254===n[1])return function(e,t){var r=e;return"base64"==t.type&&(r=k(r)),"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer&&(r=new Uint8Array(e)),r=void 0!==a?a.utils.decode(1200,r.slice(2),"str"):_&&Buffer.isBuffer(e)?e.slice(2).toString("utf16le"):"undefined"!=typeof Uint8Array&&r instanceof Uint8Array?"undefined"!=typeof TextDecoder?new TextDecoder("utf-16le").decode(r.slice(2)):function(e){for(var t=[],r=0;r<e.length>>1;++r)t[r]=String.fromCharCode(e[2*r]+(e[2*r+1]<<8));return t.join("")}(r.slice(2)):p(r.slice(2)),t.type="binary",ah(r,t)}(s,r);if(0===n[1]&&2===n[2]&&0===n[3])return Ys.to_workbook(s,r);break;case 0:if(0===n[1]){if(n[2]>=2&&0===n[3])return Ys.to_workbook(s,r);if(0===n[2]&&(8===n[3]||9===n[3]))return Ys.to_workbook(s,r)}break;case 3:case 131:case 139:case 140:return $s.to_workbook(s,r);case 123:if(92===n[1]&&114===n[2]&&116===n[3])return function(e,t){var r=ca(function(e,t){switch(t.type){case"base64":return gi(k(e),t);case"binary":return gi(e,t);case"buffer":return gi(_&&Buffer.isBuffer(e)?e.toString("binary"):I(e),t);case"array":return gi(Ke(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),t);return r.bookType="rtf",r}(s,r);break;case 10:case 13:case 32:return function(e,t){var r="",a=rh(e,t);switch(t.type){case"base64":r=k(e);break;case"binary":r=e;break;case"buffer":r=e.toString("binary");break;case"array":r=Ke(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==a[0]&&187==a[1]&&191==a[2]&&(r=Ht(r)),t.type="binary",ah(r,t)}(s,r);case 137:if(80===n[1]&&78===n[2]&&71===n[3])throw new Error("PNG Image File is not a spreadsheet");break;case 8:if(231===n[1])throw new Error("Unsupported Multiplan 1.x file!");break;case 12:if(236===n[1])throw new Error("Unsupported Multiplan 2.x file!");if(237===n[1])throw new Error("Unsupported Multiplan 3.x file!")}return Vs.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?$s.to_workbook(s,r):nh(e,s,r,i)}function ih(e,t){var r=t||{};return r.type="file",sh(e,r)}function oh(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Fe(t.file,Re.write(e,{type:_?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Re.write(e,t)}function ch(e,t){switch(t.bookType){case"ods":return af(e,t);case"numbers":return function(e,t){if(!t||!t.numbers)throw new Error("Must pass a `numbers` option -- check the README");var r=Re.read(t.numbers,{type:"base64"}),a=function(e){var t={},r=[];return e.FileIndex.map((function(t,r){return[t,e.FullPaths[r]]})).forEach((function(e){var a=e[0],n=e[1];2==a.type&&a.name.match(/\.iwa/)&&0==a.content[0]&&wf(Ef(a.content)).forEach((function(e){r.push(e.id),t[e.id]={deps:[],location:n,type:mf(e.messages[0].meta[1][0].data)}}))})),e.FileIndex.forEach((function(e){e.name.match(/\.iwa/)&&0==e.content[0]&&wf(Ef(e.content)).forEach((function(e){e.messages.forEach((function(r){[5,6].forEach((function(a){r.meta[a]&&r.meta[a].forEach((function(r){t[e.id].deps.push(mf(r.data))}))}))}))}))})),t}(r),n=Vf(r,a,1);if(null==n)throw"Could not find message ".concat(1," in Numbers template");var s=bf(vf(n.messages[0].data)[1],Of);if(s.length>1)throw new Error("Template NUMBERS file must have exactly one sheet");return e.SheetNames.forEach((function(t,i){i>=1&&(function(e,t,r){var a=-1,n=-1,s={};Hf(e,t,1,(function(r,i){var o=vf(r.messages[0].data);a=Of(vf(r.messages[0].data)[1][0].data),n=Bf({deps:[1],location:t[a].location,type:2},t),s[a]=n,If(r,n),o[1].push({type:2,data:Rf(n)});var c=Vf(e,t,a);c.id=n,t[1].location==t[n].location?i.push(c):Hf(e,t,n,(function(e,t){return t.push(c)})),r.messages[0].data=gf(o)}));var i=-1;Hf(e,t,n,(function(r,a){for(var o=vf(r.messages[0].data),c=3;c<=69;++c)delete o[c];var l=bf(o[2],Of);l.forEach((function(e){return Nf(r,e)})),i=Bf({deps:[n],location:t[l[0]].location,type:t[l[0]].type},t),If(r,i),s[l[0]]=i,o[2]=[{type:2,data:Rf(i)}];var f=Vf(e,t,l[0]);f.id=i,t[l[0]].location==t[n].location?a.push(f):(Hf(e,t,2,(function(e){var r=vf(e.messages[0].data);Xf(r,t,n,i),e.messages[0].data=gf(r)})),Hf(e,t,i,(function(e,t){return t.push(f)}))),r.messages[0].data=gf(o)}));var o=-1;Hf(e,t,i,(function(r,a){for(var n=vf(r.messages[0].data),c=vf(n[1][0].data),l=3;l<=69;++l)delete c[l];var f=Of(c[2][0].data);c[2][0].data=Rf(s[f]),n[1][0].data=gf(c);var h=Of(n[2][0].data);Nf(r,h),If(r,o=Bf({deps:[i],location:t[h].location,type:t[h].type},t)),s[h]=o,n[2][0].data=Rf(o);var u=Vf(e,t,h);u.id=o,t[i].location==t[o].location?a.push(u):Hf(e,t,o,(function(e,t){return t.push(u)})),r.messages[0].data=gf(n)})),Hf(e,t,o,(function(a,n){var i,c,l=vf(a.messages[0].data),f=of(l[1][0].data).replace(/-[A-Z0-9]*/,"-".concat(("0000"+r.toString(16)).slice(-4)));if(l[1][0].data=cf(f),[12,13,29,31,32,33,39,44,47,81,82,84].forEach((function(e){return delete l[e]})),l[45]){var h=Of(vf(l[45][0].data)[1][0].data);Nf(a,h),delete l[45]}l[70]&&(null==(i=vf(l[70][0].data)[2])||i.forEach((function(e){var t=vf(e.data);[2,3].map((function(e){return t[e][0]})).forEach((function(e){var t=vf(e.data);if(t[8]){var r=Of(t[8][0].data);Nf(a,r)}}))})),delete l[70]),[46,30,34,35,36,38,48,49,60,61,62,63,64,71,72,73,74,75,85,86,87,88,89].forEach((function(e){if(l[e]){var t=Of(l[e][0].data);delete l[e],Nf(a,t)}}));var u=vf(l[4][0].data);[2,4,5,6,11,12,13,15,16,17,18,19,20,21,22].forEach((function(r){var i;if(null==(i=u[r])?void 0:i[0]){var c=Of(u[r][0].data),l=Bf({deps:[o],location:t[c].location,type:t[c].type},t);Nf(a,c),If(a,l),s[c]=l;var f=Vf(e,t,c);if(f.id=l,t[c].location==t[o].location)n.push(f);else{t[l].location=t[c].location.replace(c.toString(),l.toString()),t[l].location==t[c].location&&(t[l].location=t[l].location.replace(/\.iwa/,"-".concat(l,".iwa"))),Re.utils.cfb_add(e,t[l].location,kf(Tf([f])));var h=t[l].location.replace(/^Root Entry\//,"").replace(/^Index\//,"").replace(/\.iwa$/,"");Hf(e,t,2,(function(e){var r=vf(e.messages[0].data);$f(r,l,h),Xf(r,t,o,l),e.messages[0].data=gf(r)}))}u[r][0].data=Rf(l)}}));var d=vf(u[1][0].data);null==(c=d[2])||c.forEach((function(r){var i=Of(r.data),c=Bf({deps:[o],location:t[i].location,type:t[i].type},t);Nf(a,i),If(a,c),s[i]=c;var l=Vf(e,t,i);if(l.id=c,t[i].location==t[o].location)n.push(l);else{t[c].location=t[i].location.replace(i.toString(),c.toString()),t[c].location==t[i].location&&(t[c].location=t[c].location.replace(/\.iwa/,"-".concat(c,".iwa"))),Re.utils.cfb_add(e,t[c].location,kf(Tf([l])));var f=t[c].location.replace(/^Root Entry\//,"").replace(/^Index\//,"").replace(/\.iwa$/,"");Hf(e,t,2,(function(e){var r=vf(e.messages[0].data);$f(r,c,f),Xf(r,t,o,c),e.messages[0].data=gf(r)}))}r.data=Rf(c)})),u[1][0].data=gf(d);var p=vf(u[3][0].data);p[1].forEach((function(r){var n=vf(r.data),i=Of(n[2][0].data),c=s[i];if(!s[i]){c=Bf({deps:[o],location:"",type:t[i].type},t),t[c].location="Root Entry/Index/Tables/Tile-".concat(c,".iwa"),s[i]=c;var l=Vf(e,t,i);l.id=c,Nf(a,i),If(a,c),Re.utils.cfb_add(e,"/Index/Tables/Tile-".concat(c,".iwa"),kf(Tf([l]))),Hf(e,t,2,(function(e){var r=vf(e.messages[0].data);r[3].push({type:2,data:gf([[],[{type:0,data:uf(c)}],[{type:2,data:cf("Tables/Tile")}],[{type:2,data:cf("Tables/Tile-".concat(c))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:uf(0)}],[],[{type:0,data:uf(0)}]])}),r[1]=[{type:0,data:uf(Math.max(c+1,mf(r[1][0].data)))}],Xf(r,t,o,c),e.messages[0].data=gf(r)}))}n[2][0].data=Rf(c),r.data=gf(n)})),u[3][0].data=gf(p),l[4][0].data=gf(u),a.messages[0].data=gf(l)}))}(r,a,i+1),n=Vf(r,a,1),s=bf(vf(n.messages[0].data)[1],Of)),function(e,t,r,a,n,s){var i=[];Hf(e,t,s,(function(e){var t=vf(e.messages[0].data);t[1]=[{type:2,data:cf(a)}],i=bf(t[2],Of),e.messages[0].data=gf(t)}));var o=Of(vf(Vf(e,t,i[0]).messages[0].data)[2][0].data);Hf(e,t,o,(function(a,n){return function(e,t,r,a,n,s){if(!r["!ref"])throw new Error("Cannot export empty sheet to NUMBERS");var i=ra(r["!ref"]);i.s.r=i.s.c=0;var o=!1;i.e.c>999&&(o=!0,i.e.c=999),i.e.r>999999&&(o=!0,i.e.r=999999),o&&console.error("Truncating to ".concat(aa(i)));var c=[];if(r["!data"])c=r["!data"];else{for(var l=[],f=0;f<=i.e.c;++f)l[f]=Qr(f);for(var h=0;h<=i.e.r;++h){c[h]=[];var u=""+(h+1);for(f=0;f<=i.e.c;++f){var d=r[l[f]+u];d&&(c[h][f]=d)}}}var p={cmnt:[{a:"~54ee77S~",t:"... the people who are crazy enough to think they can change the world, are the ones who do."}],ferr:[],fmla:[],nfmt:[],ofmt:[],rsst:[{v:"~54ee77S~",l:"https://sheetjs.com/"}],sst:["~Sh33tJ5~"]},m=vf(a.messages[0].data);m[6][0].data=uf(i.e.r+1),m[7][0].data=uf(i.e.c+1),delete m[46];var v=vf(m[4][0].data),g=Of(vf(v[1][0].data)[2][0].data);Hf(e,t,g,(function(e,t){var r,a=vf(e.messages[0].data);if(null==(r=null==a?void 0:a[2])?void 0:r[0])for(var n=0;n<c.length;++n){var s=vf(a[2][0].data);s[1][0].data=uf(n),s[4][0].data=uf(c[n].length),a[2][n]={type:a[2][0].type,data:gf(s)}}e.messages[0].data=gf(a)}));var b=Of(v[2][0].data);Hf(e,t,b,(function(e,t){for(var r=vf(e.messages[0].data),a=0;a<=i.e.c;++a){var n=vf(r[2][0].data);n[1][0].data=uf(a),n[4][0].data=uf(i.e.r+1),r[2][a]={type:r[2][0].type,data:gf(n)}}e.messages[0].data=gf(r)}));var w=vf(v[9][0].data);w[1]=[];var T=vf(v[3][0].data),y=256;T[2]=[{type:0,data:uf(y)}];var E,k=Of(vf(T[1][0].data)[2][0].data),_=(null==(E=vf(Vf(e,t,2).messages[0].data)[3].filter((function(e){return mf(vf(e.data)[1][0].data)==k})))?void 0:E.length)?mf(vf(E[0].data)[12][0].data):0;Re.utils.cfb_del(e,t[k].location),Hf(e,t,2,(function(e){var r=vf(e.messages[0].data);r[3]=r[3].filter((function(e){return mf(vf(e.data)[1][0].data)!=k})),function(e,t,r,a){var n=t[r].location.replace(/^Root Entry\//,"").replace(/^Index\//,"").replace(/\.iwa$/,""),s=e[3].findIndex((function(e){var t,r,a=vf(e.data);return(null==(t=a[3])?void 0:t[0])?of(a[3][0].data)==n:!(!(null==(r=a[2])?void 0:r[0])||of(a[2][0].data)!=n)})),i=vf(e[3][s].data);i[6]||(i[6]=[]),i[6]=i[6].filter((function(e){return mf(vf(e.data)[1][0].data)!=a})),e[3][s].data=gf(i)}(r,t,s,k),e.messages[0].data=gf(r)})),Nf(a,k),T[1]=[];for(var S=Math.ceil((i.e.r+1)/y),x=0;x<S;++x){var A=Bf({deps:[],location:"",type:6002},t);t[A].location="Root Entry/Index/Tables/Tile-".concat(A,".iwa");for(var C=[[],[{type:0,data:uf(0)}],[{type:0,data:uf(Math.min(i.e.r+1,(x+1)*y))}],[{type:0,data:uf(0)}],[{type:0,data:uf(Math.min((x+1)*y,i.e.r+1)-x*y)}],[],[{type:0,data:uf(5)}],[{type:0,data:uf(1)}],[{type:0,data:uf(jf?1:0)}]],O=x*y;O<=Math.min(i.e.r,(x+1)*y-1);++O){var R=Lf(c[O],p,jf);R[1][0].data=uf(O-x*y),C[5].push({data:gf(R),type:2})}T[1].push({type:2,data:gf([[],[{type:0,data:uf(x)}],[{type:2,data:Rf(A)}]])});var I=kf(Tf([{id:A,messages:[Uf(6002,gf(C))]}]));Re.utils.cfb_add(e,"/Index/Tables/Tile-".concat(A,".iwa"),I),Hf(e,t,2,(function(e){var r=vf(e.messages[0].data);r[3].push({type:2,data:gf([[],[{type:0,data:uf(A)}],[{type:2,data:cf("Tables/Tile")}],[{type:2,data:cf("Tables/Tile-".concat(A))}],[{type:2,data:new Uint8Array([2,0,0])}],[{type:2,data:new Uint8Array([2,0,0])}],[],[],[],[],[{type:0,data:uf(0)}],[],[{type:0,data:uf(_)}]])}),r[1]=[{type:0,data:uf(Math.max(A+1,mf(r[1][0].data)))}],Xf(r,t,s,A),e.messages[0].data=gf(r)})),If(a,A),w[1].push({type:2,data:gf([[],[{type:0,data:uf(x*y)}],[{type:0,data:uf(x)}]])})}if(v[3][0].data=gf(T),v[9][0].data=gf(w),v[10]=[{type:2,data:new Uint8Array([])}],r["!merges"]){var N=Bf({type:6144,deps:[s],location:t[s].location},t);n.push({id:N,messages:[Uf(6144,gf([[],r["!merges"].map((function(e){return{type:2,data:gf([[],[{type:2,data:gf([[],[{type:5,data:new Uint8Array(new Uint16Array([e.s.r,e.s.c]).buffer)}]])}],[{type:2,data:gf([[],[{type:5,data:new Uint8Array(new Uint16Array([e.e.r-e.s.r+1,e.e.c-e.s.c+1]).buffer)}]])}]])}}))]))]}),v[13]=[{type:2,data:Rf(N)}],Hf(e,t,2,(function(e){var r=vf(e.messages[0].data);Xf(r,t,s,N),e.messages[0].data=gf(r)})),If(a,N)}else delete v[13];var F=Of(v[4][0].data);Hf(e,t,F,(function(e){var t=vf(e.messages[0].data);t[3]=[],p.sst.forEach((function(e,r){0!=r&&t[3].push({type:2,data:gf([[],[{type:0,data:uf(r)}],[{type:0,data:uf(1)}],[{type:2,data:cf(e)}]])})})),e.messages[0].data=gf(t)}));var D=Of(v[17][0].data);if(Hf(e,t,D,(function(r){var a=vf(r.messages[0].data);a[3]=[];var n=[904980,903835,903815,903845];p.rsst.forEach((function(s,i){if(0!=i){var o=[[],[{type:0,data:new Uint8Array([5])}],[],[{type:2,data:cf(s.v)}]];o[10]=[{type:0,data:new Uint8Array([1])}],o[19]=[{type:2,data:new Uint8Array([10,6,8,0,18,2,101,110])}],o[5]=[{type:2,data:new Uint8Array([10,8,8,0,18,4,8,155,149,55])}],o[2]=[{type:2,data:new Uint8Array([8,148,158,55])}],o[6]=[{type:2,data:new Uint8Array([10,6,8,0,16,0,24,0])}],o[7]=[{type:2,data:new Uint8Array([10,8,8,0,18,4,8,135,149,55])}],o[8]=[{type:2,data:new Uint8Array([10,8,8,0,18,4,8,165,149,55])}],o[14]=[{type:2,data:new Uint8Array([10,6,8,0,16,0,24,0])}],o[24]=[{type:2,data:new Uint8Array([10,6,8,0,16,0,24,0])}];var c=Bf({deps:[],location:"",type:2001},t),l=[];if(s.l){var f=Gf(e,2032,[[],[],[{type:2,data:cf(s.l)}]],"/Index/Tables/DataList",t);o[11]=[];var h=[[],[]];h[1]||(h[1]=[]),h[1].push({type:2,data:gf([[],[{type:0,data:uf(0)}],[{type:2,data:Rf(f)}]])}),o[11][0]={type:2,data:gf(h)},l.push(f)}Gf(e,2001,o,"/Index/Tables/DataList",t,c),Hf(e,t,c,(function(e){n.forEach((function(t){return If(e,t)})),l.forEach((function(t){return If(e,t)}))}));var u=Gf(e,6218,[[],[{type:2,data:Rf(c)}],[],[{type:2,data:new Uint8Array([13,255,255,255,0,18,10,16,255,255,1,24,255,255,255,255,7])}]],"/Index/Tables/DataList",t);Hf(e,t,u,(function(e){return If(e,c)})),a[3].push({type:2,data:gf([[],[{type:0,data:uf(i)}],[{type:0,data:uf(1)}],[],[],[],[],[],[],[{type:2,data:Rf(u)}]])}),If(r,u),Hf(e,t,2,(function(e){var r=vf(e.messages[0].data);Xf(r,t,D,u),Xf(r,t,u,c),Xf(r,t,c,l),Xf(r,t,c,n),e.messages[0].data=gf(r)}))}})),r.messages[0].data=gf(a)})),p.cmnt.length>1){var P=Of(v[19][0].data),M={},L=0;Hf(e,t,P,(function(r){var a=vf(r.messages[0].data);a[3]=[],p.cmnt.forEach((function(n,s){if(0!=s){var i=[];n.replies&&n.replies.forEach((function(r){M[r.a||""]||(M[r.a||""]=Gf(e,212,[[],[{type:2,data:cf(r.a||"")}],[{type:2,data:zf(++L)}],[],[{type:0,data:uf(0)}]],"/Index/Tables/DataList",t));var a=M[r.a||""],n=Gf(e,3056,[[],[{type:2,data:cf(r.t||"")}],[{type:2,data:gf([[],[{type:1,data:new Uint8Array([0,0,0,128,116,109,182,65])}]])}],[{type:2,data:Rf(a)}]],"/Index/Tables/DataList",t);Hf(e,t,n,(function(e){return If(e,a)})),i.push(n),Hf(e,t,2,(function(e){var r=vf(e.messages[0].data);Xf(r,t,n,a),e.messages[0].data=gf(r)}))})),M[n.a||""]||(M[n.a||""]=Gf(e,212,[[],[{type:2,data:cf(n.a||"")}],[{type:2,data:zf(++L)}],[],[{type:0,data:uf(0)}]],"/Index/Tables/DataList",t));var o=M[n.a||""],c=Gf(e,3056,[[],[{type:2,data:cf(n.t||"")}],[{type:2,data:gf([[],[{type:1,data:new Uint8Array([0,0,0,128,116,109,182,65])}]])}],[{type:2,data:Rf(o)}],i.map((function(e){return{type:2,data:Rf(e)}})),[{type:2,data:gf([[],[{type:0,data:uf(s)}],[{type:0,data:uf(0)}]])}]],"/Index/Tables/DataList",t);Hf(e,t,c,(function(e){If(e,o),i.forEach((function(t){return If(e,t)}))})),a[3].push({type:2,data:gf([[],[{type:0,data:uf(s)}],[{type:0,data:uf(1)}],[],[],[],[],[],[],[],[{type:2,data:Rf(c)}]])}),If(r,c),Hf(e,t,2,(function(e){var r=vf(e.messages[0].data);Xf(r,t,P,c),Xf(r,t,c,o),i.length&&Xf(r,t,c,i),e.messages[0].data=gf(r)}))}})),a[2][0].data=uf(p.cmnt.length+1),r.messages[0].data=gf(a)}))}m[4][0].data=gf(v),a.messages[0].data=gf(m)}(e,t,r,a,n,o)}))}(r,a,e.Sheets[t],t,0,s[i])})),r}(e,t);case"xlsb":return function(e,t){e&&!e.SSF&&(e.SSF=Ye(X)),e&&e.SSF&&(Ee(),ye(e.SSF),t.revssf=Le(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.rels={},t.wbrels={},t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,hc?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var r="bin",a={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Zf(t=t||{});var n=vt(),s="",i=0;if(t.cellXfs=[],mc(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),mt(n,s="docProps/core.xml",pn(e.Props,t)),a.coreprops.push(s),sn(t.rels,2,s,tn.CORE_PROPS),s="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var o=[],c=0;c<e.SheetNames.length;++c)2!=(e.Workbook.Sheets[c]||{}).Hidden&&o.push(e.SheetNames[c]);e.Props.SheetNames=o}else e.Props.SheetNames=e.SheetNames;e.Props.Worksheets=e.Props.SheetNames.length,mt(n,s,bn(e.Props)),a.extprops.push(s),sn(t.rels,3,s,tn.EXT_PROPS),e.Custprops!==e.Props&&De(e.Custprops||{}).length>0&&(mt(n,s="docProps/custom.xml",Tn(e.Custprops)),a.custprops.push(s),sn(t.rels,4,s,tn.CUST_PROPS));var l,f,h,u=["SheetJ5"];for(t.tcid=0,i=1;i<=e.SheetNames.length;++i){var d={"!id":{}},p=e.Sheets[e.SheetNames[i-1]];if((p||{})["!type"],mt(n,s="xl/worksheets/sheet"+i+"."+r,Gc(i-1,t,e,d)),a.sheets.push(s),sn(t.wbrels,-1,"worksheets/sheet"+i+"."+r,tn.WS[0]),p){var m=p["!comments"],v=!1,g="";if(m&&m.length>0){var b=!1;m.forEach((function(e){e[1].forEach((function(e){1==e.T&&(b=!0)}))})),b&&(mt(n,g="xl/threadedComments/threadedComment"+i+".xml",oo(m,u,t)),a.threadedcomments.push(g),sn(d,-1,"../threadedComments/threadedComment"+i+".xml",tn.TCMNT)),mt(n,g="xl/comments"+i+"."+r,ho(m)),a.comments.push(g),sn(d,-1,"../comments"+i+"."+r,tn.CMNT),v=!0}p["!legacy"]&&v&&mt(n,"xl/drawings/vmlDrawing"+i+".vml",no(i,p["!comments"])),delete p["!comments"],delete p["!legacy"]}d["!id"].rId1&&mt(n,rn(s),nn(d))}return null!=t.Strings&&t.Strings.length>0&&(mt(n,s="xl/sharedStrings."+r,function(e){var t=$r();Gr(t,159,function(e,t){return t||(t=Hr(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}(e));for(var r=0;r<e.length;++r)Gr(t,19,ii(e[r]));return Gr(t,160),t.end()}(t.Strings)),a.strs.push(s),sn(t.wbrels,-1,"sharedStrings."+r,tn.SST)),mt(n,s="xl/workbook."+r,nl(e)),a.workbooks.push(s),sn(t.rels,1,s,tn.WB),mt(n,s="xl/theme/theme1.xml",to(e.Themes,t)),a.themes.push(s),sn(t.wbrels,-1,"theme/theme1.xml",tn.THEME),mt(n,s="xl/styles."+r,Gi(e,t)),a.styles.push(s),sn(t.wbrels,-1,"styles."+r,tn.STY),e.vbaraw&&(mt(n,s="xl/vbaProject.bin",e.vbaraw),a.vba.push(s),sn(t.wbrels,-1,"vbaProject.bin",tn.VBA)),mt(n,s="xl/metadata."+r,(Gr(h=$r(),332),Gr(h,334,ha(1)),Gr(h,335,((f=Hr(12+2*(l={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,l.flags),f.write_shift(4,l.version),da(l.name,f),f.slice(0,f.l))),Gr(h,336),Gr(h,339,function(e,t){var r=Hr(20);return r.write_shift(4,1),da(t,r),r.slice(0,r.l)}(0,"XLDAPR")),Gr(h,52),Gr(h,35,ha(514)),Gr(h,4096,ha(0)),Gr(h,4097,$n(1)),Gr(h,36),Gr(h,53),Gr(h,340),Gr(h,337,function(e,t){var r=Hr(8);return r.write_shift(4,1),r.write_shift(4,1),r}()),Gr(h,51,function(e){var t=Hr(4+8*e.length);t.write_shift(4,e.length);for(var r=0;r<e.length;++r)t.write_shift(4,e[r][0]),t.write_shift(4,e[r][1]);return t}([[1,0]])),Gr(h,338),Gr(h,333),h.end())),a.metadata.push(s),sn(t.wbrels,-1,"metadata."+r,tn.XLMETA),u.length>1&&(mt(n,s="xl/persons/person.xml",co(u)),a.people.push(s),sn(t.wbrels,-1,"persons/person.xml",tn.PEOPLE)),mt(n,"[Content_Types].xml",en(a,t)),mt(n,"_rels/.rels",nn(t.rels)),mt(n,"xl/_rels/workbook.bin.rels",nn(t.wbrels)),delete t.revssf,delete t.ssf,n}(e,t);default:return th(e,t)}}function lh(e,t){var r={},a=_?"nodebuffer":"undefined"!=typeof Uint8Array?"array":"string";if(t.compression&&(r.compression="DEFLATE"),t.password)r.type=a;else switch(t.type){case"base64":r.type="base64";break;case"binary":r.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":r.type=a;break;default:throw new Error("Unrecognized type "+t.type)}var n=e.FullPaths?Re.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[r.type]||r.type,compression:!!t.compression}):e.generate(r);if("undefined"!=typeof Deno&&"string"==typeof n){if("binary"==t.type||"base64"==t.type)return n;n=new Uint8Array(R(n))}return t.password&&"undefined"!=typeof encrypt_agile?oh(encrypt_agile(n,t.password),t):"file"===t.type?Fe(t.file,n):"string"==t.type?Ht(n):n}function fh(e,t,r){r||(r="");var a=r+e;switch(t.type){case"base64":return E(Vt(a));case"binary":return Vt(a);case"string":return e;case"file":return Fe(t.file,a,"utf8");case"buffer":return _?S(a,"utf8"):"undefined"!=typeof TextEncoder?(new TextEncoder).encode(a):fh(a,{type:"binary"}).split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function hh(e,t){switch(t.type){case"string":case"base64":case"binary":for(var r="",a=0;a<e.length;++a)r+=String.fromCharCode(e[a]);return"base64"==t.type?E(r):"string"==t.type?Ht(r):r;case"file":return Fe(t.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+t.type)}}function uh(e,t){u(),tl(e);var r=Ye(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),"array"==r.type){r.type="binary";var a=uh(e,r);return r.type="array",R(a)}return function(e,t){var r=Ye(t||{});return lh(th(e,r),r)}(e,r)}function dh(e,t){u(),tl(e);var r=Ye(t||{});if(r.cellStyles&&(r.cellNF=!0,r.sheetStubs=!0),"array"==r.type){r.type="binary";var a=dh(e,r);return r.type="array",R(a)}var n=0;if(r.sheet&&(n="number"==typeof r.sheet?r.sheet:e.SheetNames.indexOf(r.sheet),!e.SheetNames[n]))throw new Error("Sheet not found: "+r.sheet+" : "+typeof r.sheet);switch(r.bookType||"xlsb"){case"xml":case"xlml":return fh(yl(e,r),r);case"slk":case"sylk":return fh(Gs.from_sheet(e.Sheets[e.SheetNames[n]],r,e),r);case"htm":case"html":return fh(Gl(e.Sheets[e.SheetNames[n]],r),r);case"txt":return function(e,t){switch(t.type){case"base64":return function(e){for(var t="",r=0,a=0,n=0,s=0,i=0,o=0,c=0,l=0;l<e.length;)(r=e.charCodeAt(l++))>255&&(r=95),s=r>>2,(a=e.charCodeAt(l++))>255&&(a=95),i=(3&r)<<4|a>>4,(n=e.charCodeAt(l++))>255&&(n=95),o=(15&a)<<2|n>>6,c=63&n,isNaN(a)?o=c=64:isNaN(n)&&(c=64),t+=y.charAt(s)+y.charAt(i)+y.charAt(o)+y.charAt(c);return t}(e);case"binary":case"string":return e;case"file":return Fe(t.file,e,"binary");case"buffer":return _?S(e,"binary"):e.split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}(kh(e.Sheets[e.SheetNames[n]],r),r);case"csv":return fh(Eh(e.Sheets[e.SheetNames[n]],r),r,"\ufeff");case"dif":return fh(Xs.from_sheet(e.Sheets[e.SheetNames[n]],r),r);case"dbf":return hh($s.from_sheet(e.Sheets[e.SheetNames[n]],r),r);case"prn":return fh(Ks.from_sheet(e.Sheets[e.SheetNames[n]],r),r);case"rtf":return fh(function(e,t){var r=["{\\rtf1\\ansi"];if(!e["!ref"])return r[0]+"}";for(var a,n=ia(e["!ref"]),s=null!=e["!data"],i=[],o=n.s.r;o<=n.e.r;++o){r.push("\\trowd\\trautofit1");for(var c=n.s.c;c<=n.e.c;++c)r.push("\\cellx"+(c+1));for(r.push("\\pard\\intbl"),s&&(i=e["!data"][o]||[]),c=n.s.c;c<=n.e.c;++c){var l=ta({r:o,c});(a=s?i[c]:e[l])&&(null!=a.v||a.f&&!a.F)?(r.push(" "+(a.w||(oa(a),a.w)||"").replace(/[\r\n]/g,"\\par ")),r.push("\\cell")):r.push(" \\cell")}r.push("\\pard\\intbl\\row")}return r.join("")+"}"}(e.Sheets[e.SheetNames[n]]),r);case"eth":return fh(js.from_sheet(e.Sheets[e.SheetNames[n]],r),r);case"fods":return fh(af(e,r),r);case"wk1":return hh(Ys.sheet_to_wk1(e.Sheets[e.SheetNames[n]],r),r);case"wk3":return hh(Ys.book_to_wk3(e,r),r);case"biff2":r.biff||(r.biff=2);case"biff3":r.biff||(r.biff=3);case"biff4":return r.biff||(r.biff=4),hh(Bl(e,r),r);case"biff5":r.biff||(r.biff=5);case"biff8":case"xla":case"xls":return r.biff||(r.biff=8),function(e,t){var r=t||{};return oh(function(e,t){var r=t||{},a=Re.utils.cfb_new({root:"R"}),n="/Workbook";switch(r.bookType||"xls"){case"xls":r.bookType="biff8";case"xla":r.bookType||(r.bookType="xla");case"biff8":n="/Workbook",r.biff=8;break;case"biff5":n="/Book",r.biff=5;break;default:throw new Error("invalid type "+r.bookType+" for XLS CFB")}return Re.utils.cfb_add(a,n,Bl(e,r)),8==r.biff&&(e.Props||e.Custprops)&&function(e,t){var r,a=[],n=[],s=[],i=0,o=Pe(Va,"n"),c=Pe($a,"n");if(e.Props)for(r=De(e.Props),i=0;i<r.length;++i)(Object.prototype.hasOwnProperty.call(o,r[i])?a:Object.prototype.hasOwnProperty.call(c,r[i])?n:s).push([r[i],e.Props[r[i]]]);if(e.Custprops)for(r=De(e.Custprops),i=0;i<r.length;++i)Object.prototype.hasOwnProperty.call(e.Props||{},r[i])||(Object.prototype.hasOwnProperty.call(o,r[i])?a:Object.prototype.hasOwnProperty.call(c,r[i])?n:s).push([r[i],e.Custprops[r[i]]]);var l=[];for(i=0;i<s.length;++i)Pn.indexOf(s[i][0])>-1||vn.indexOf(s[i][0])>-1||null!=s[i][1]&&l.push(s[i]);n.length&&Re.utils.cfb_add(t,"/SummaryInformation",Bn(n,xl.SI,c,$a)),(a.length||l.length)&&Re.utils.cfb_add(t,"/DocumentSummaryInformation",Bn(a,xl.DSI,o,Va,l.length?l:null,xl.UDI))}(e,a),8==r.biff&&e.vbaraw&&function(e,t){t.FullPaths.forEach((function(r,a){if(0!=a){var n=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==n.slice(-1)&&Re.utils.cfb_add(e,n,t.FileIndex[a].content)}}))}(a,Re.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),a}(e,r),r)}(e,r);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return function(e,t){var r=Ye(t||{});return lh(ch(e,r),r)}(e,r);default:throw new Error("Unrecognized bookType |"+r.bookType+"|")}}function ph(e){if(!e.bookType){var t=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();t.match(/^\.[a-z]+$/)&&(e.bookType=t.slice(1)),e.bookType={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"}[e.bookType]||e.bookType}}function mh(e,t,r){var a=r||{};return a.type="file",a.file=t,ph(a),dh(e,a)}function vh(e,t,r){var a=r||{};return a.type="file",a.file=t,ph(a),uh(e,a)}function gh(e,t,r,a){var n=r||{};n.type="file",n.file=e,ph(n),n.type="buffer";var s=a;return s instanceof Function||(s=r),Ce.writeFile(e,dh(t,n),s)}function bh(e,t,r,a,n,s,i){var o=Jr(r),c=i.defval,l=i.raw||!Object.prototype.hasOwnProperty.call(i,"raw"),f=!0,h=null!=e["!data"],u=1===n?[]:{};if(1!==n)if(Object.defineProperty)try{Object.defineProperty(u,"__rowNum__",{value:r,enumerable:!1})}catch(e){u.__rowNum__=r}else u.__rowNum__=r;if(!h||e["!data"][r])for(var d=t.s.c;d<=t.e.c;++d){var p=h?(e["!data"][r]||[])[d]:e[a[d]+o];if(null!=p&&void 0!==p.t){var m=p.v;switch(p.t){case"z":if(null==m)break;continue;case"e":m=0==m?null:void 0;break;case"s":case"b":case"n":if(!p.z||!ve(p.z))break;if("number"==typeof(m=He(m)))break;case"d":i&&(i.UTC||!1===i.raw)||(m=st(new Date(m)));break;default:throw new Error("unrecognized type "+p.t)}if(null!=s[d]){if(null==m)if("e"==p.t&&null===m)u[s[d]]=null;else if(void 0!==c)u[s[d]]=c;else{if(!l||null!==m)continue;u[s[d]]=null}else u[s[d]]=("n"===p.t&&"boolean"==typeof i.rawNumbers?i.rawNumbers:l)?m:oa(p,m,i);null!=m&&(f=!1)}}else{if(void 0===c)continue;null!=s[d]&&(u[s[d]]=c)}}return{row:u,isempty:f}}function wh(e,t){if(null==e||null==e["!ref"])return[];var r={t:"n",v:0},a=0,n=1,s=[],i=0,o="",c={s:{r:0,c:0},e:{r:0,c:0}},l=t||{},f=null!=l.range?l.range:e["!ref"];switch(1===l.header?a=1:"A"===l.header?a=2:Array.isArray(l.header)?a=3:null==l.header&&(a=0),typeof f){case"string":c=ia(f);break;case"number":(c=ia(e["!ref"])).s.r=f;break;default:c=f}a>0&&(n=0);var h=Jr(c.s.r),u=[],d=[],p=0,m=0,v=null!=e["!data"],g=c.s.r,b=0,w={};v&&!e["!data"][g]&&(e["!data"][g]=[]);var T=l.skipHidden&&e["!cols"]||[],y=l.skipHidden&&e["!rows"]||[];for(b=c.s.c;b<=c.e.c;++b)if(!(T[b]||{}).hidden)switch(u[b]=Qr(b),r=v?e["!data"][g][b]:e[u[b]+h],a){case 1:s[b]=b-c.s.c;break;case 2:s[b]=u[b];break;case 3:s[b]=l.header[b-c.s.c];break;default:if(null==r&&(r={w:"__EMPTY",t:"s"}),o=i=oa(r,null,l),m=w[i]||0){do{o=i+"_"+m++}while(w[o]);w[i]=m,w[o]=1}else w[i]=1;s[b]=o}for(g=c.s.r+n;g<=c.e.r;++g)if(!(y[g]||{}).hidden){var E=bh(e,c,g,u,a,s,l);(!1===E.isempty||(1===a?!1!==l.blankrows:l.blankrows))&&(d[p++]=E.row)}return d.length=p,d}var Th=/"/g;function yh(e,t,r,a,n,s,i,o){for(var c=!0,l=[],f="",h=Jr(r),u=null!=e["!data"],d=u&&e["!data"][r]||[],p=t.s.c;p<=t.e.c;++p)if(a[p]){var m=u?d[p]:e[a[p]+h];if(null==m)f="";else if(null!=m.v){c=!1,f=""+(o.rawNumbers&&"n"==m.t?m.v:oa(m,null,o));for(var v=0,g=0;v!==f.length;++v)if((g=f.charCodeAt(v))===n||g===s||34===g||o.forceQuotes){f='"'+f.replace(Th,'""')+'"';break}"ID"==f&&(f='"ID"')}else null==m.f||m.F?f="":(c=!1,(f="="+m.f).indexOf(",")>=0&&(f='"'+f.replace(Th,'""')+'"'));l.push(f)}return!1===o.blankrows&&c?null:l.join(i)}function Eh(e,t){var r=[],a=null==t?{}:t;if(null==e||null==e["!ref"])return"";for(var n=ia(e["!ref"]),s=void 0!==a.FS?a.FS:",",i=s.charCodeAt(0),o=void 0!==a.RS?a.RS:"\n",c=o.charCodeAt(0),l=new RegExp(("|"==s?"\\|":s)+"+$"),f="",h=[],u=a.skipHidden&&e["!cols"]||[],d=a.skipHidden&&e["!rows"]||[],p=n.s.c;p<=n.e.c;++p)(u[p]||{}).hidden||(h[p]=Qr(p));for(var m=0,v=n.s.r;v<=n.e.r;++v)(d[v]||{}).hidden||null!=(f=yh(e,n,v,h,i,c,s,a))&&(a.strip&&(f=f.replace(l,"")),(f||!1!==a.blankrows)&&r.push((m++?o:"")+f));return r.join("")}function kh(e,t){t||(t={}),t.FS="\t",t.RS="\n";var r=Eh(e,t);if(void 0===a||"string"==t.type)return r;var n=a.utils.encode(1200,r,"str");return String.fromCharCode(255)+String.fromCharCode(254)+n}function _h(e,t,r){var a=r||{},n=e?null!=e["!data"]:a.dense;null!=T&&null==n&&(n=T);var s=+!a.skipHeader,i=e||{};!e&&n&&(i["!data"]=[]);var o=0,c=0;if(i&&null!=a.origin)if("number"==typeof a.origin)o=a.origin;else{var l="string"==typeof a.origin?ea(a.origin):a.origin;o=l.r,c=l.c}var f={s:{c:0,r:0},e:{c,r:o+t.length-1+s}};if(i["!ref"]){var h=ia(i["!ref"]);f.e.c=Math.max(f.e.c,h.e.c),f.e.r=Math.max(f.e.r,h.e.r),-1==o&&(o=h.e.r+1,f.e.r=o+t.length-1+s)}else-1==o&&(o=0,f.e.r=t.length-1+s);var u=a.header||[],d=0,p=[];t.forEach((function(e,t){n&&!i["!data"][o+t+s]&&(i["!data"][o+t+s]=[]),n&&(p=i["!data"][o+t+s]),De(e).forEach((function(r){-1==(d=u.indexOf(r))&&(u[d=u.length]=r);var l=e[r],f="z",h="",m=n?"":Qr(c+d)+Jr(o+t+s),v=n?p[c+d]:i[m];!l||"object"!=typeof l||l instanceof Date?("number"==typeof l?f="n":"boolean"==typeof l?f="b":"string"==typeof l?f="s":l instanceof Date?(f="d",a.UTC||(l=it(l)),a.cellDates||(f="n",l=ze(l)),h=null!=v&&v.z&&ve(v.z)?v.z:a.dateNF||X[14]):null===l&&a.nullError&&(f="e",l=0),v?(v.t=f,v.v=l,delete v.w,delete v.R,h&&(v.z=h)):n?p[c+d]=v={t:f,v:l}:i[m]=v={t:f,v:l},h&&(v.z=h)):n?p[c+d]=l:i[m]=l}))})),f.e.c=Math.max(f.e.c,c+u.length-1);var m=Jr(o);if(n&&!i["!data"][o]&&(i["!data"][o]=[]),s)for(d=0;d<u.length;++d)n?i["!data"][o][d+c]={t:"s",v:u[d]}:i[Qr(d+c)+m]={t:"s",v:u[d]};return i["!ref"]=aa(f),i}function Sh(e,t,r){if("string"==typeof t){if(null!=e["!data"]){var a=ea(t);return e["!data"][a.r]||(e["!data"][a.r]=[]),e["!data"][a.r][a.c]||(e["!data"][a.r][a.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return Sh(e,"number"!=typeof t?ta(t):Qr(r||0)+Jr(t))}function xh(e,t){var r={SheetNames:[],Sheets:{}};return e&&Ah(r,e,t||"Sheet1"),r}function Ah(e,t,r,a){var n=1;if(!r)for(;n<=65535&&-1!=e.SheetNames.indexOf(r="Sheet"+n);++n,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(a&&e.SheetNames.indexOf(r)>=0){var s=r.match(/(^.*?)(\d+)$/);n=s&&+s[2]||0;var i=s&&s[1]||r;for(++n;n<=65535&&-1!=e.SheetNames.indexOf(r=i+n);++n);}if(el(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function Ch(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}var Oh,Rh={encode_col:Qr,encode_row:Jr,encode_cell:ta,encode_range:aa,decode_col:qr,decode_row:Zr,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:ea,decode_range:ra,format_cell:oa,sheet_new:function(e){var t={};return(e||{}).dense&&(t["!data"]=[]),t},sheet_add_aoa:la,sheet_add_json:_h,sheet_add_dom:Xl,aoa_to_sheet:fa,json_to_sheet:function(e,t){return _h(null,e,t)},table_to_sheet:jl,table_to_book:function(e,t){return ca(jl(e,t),t)},sheet_to_csv:Eh,sheet_to_txt:kh,sheet_to_json:wh,sheet_to_html:Gl,sheet_to_formulae:function(e){var t,r="",a="";if(null==e||null==e["!ref"])return[];var n,s=ia(e["!ref"]),i="",o=[],c=[],l=null!=e["!data"];for(n=s.s.c;n<=s.e.c;++n)o[n]=Qr(n);for(var f=s.s.r;f<=s.e.r;++f)for(i=Jr(f),n=s.s.c;n<=s.e.c;++n)if(r=o[n]+i,a="",void 0!==(t=l?(e["!data"][f]||[])[n]:e[r])){if(null!=t.F){if(r=t.F,!t.f)continue;a=t.f,-1==r.indexOf(":")&&(r=r+":"+r)}if(null!=t.f)a=t.f;else{if("z"==t.t)continue;if("n"==t.t&&null!=t.v)a=""+t.v;else if("b"==t.t)a=t.v?"TRUE":"FALSE";else if(void 0!==t.w)a="'"+t.w;else{if(void 0===t.v)continue;a="s"==t.t?"'"+t.v:""+t.v}}c[c.length]=r+"="+a}return c},sheet_to_row_object_array:wh,sheet_get_cell:Sh,book_new:xh,book_append_sheet:Ah,book_set_sheet_visibility:function(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var a=function(e,t){if("number"==typeof t){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}if("string"==typeof t){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}throw new Error("Cannot find sheet |"+t+"|")}(e,t);switch(e.Workbook.Sheets[a]||(e.Workbook.Sheets[a]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[a].Hidden=r},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:Ch,cell_set_internal_link:function(e,t,r){return Ch(e,"#"+t,r)},cell_add_comment:function(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})},sheet_set_array_formula:function(e,t,r,a){for(var n="string"!=typeof t?t:ia(t),s="string"==typeof t?t:aa(t),i=n.s.r;i<=n.e.r;++i)for(var o=n.s.c;o<=n.e.c;++o){var c=Sh(e,i,o);c.t="n",c.F=s,delete c.v,i==n.s.r&&o==n.s.c&&(c.f=r,a&&(c.D=!0))}var l=ra(e["!ref"]);return l.s.r>n.s.r&&(l.s.r=n.s.r),l.s.c>n.s.c&&(l.s.c=n.s.c),l.e.r<n.e.r&&(l.e.r=n.e.r),l.e.c<n.e.c&&(l.e.c=n.e.c),e["!ref"]=aa(l),e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}},Ih={to_json:function(e,t){var r=Oh({objectMode:!0});if(null==e||null==e["!ref"])return r.push(null),r;var a={t:"n",v:0},n=0,s=1,i=[],o=0,c="",l={s:{r:0,c:0},e:{r:0,c:0}},f=t||{},h=null!=f.range?f.range:e["!ref"];switch(1===f.header?n=1:"A"===f.header?n=2:Array.isArray(f.header)&&(n=3),typeof h){case"string":l=ia(h);break;case"number":(l=ia(e["!ref"])).s.r=h;break;default:l=h}n>0&&(s=0);var u=Jr(l.s.r),d=[],p=0,m=null!=e["!data"],v=l.s.r,g=0,b={};m&&!e["!data"][v]&&(e["!data"][v]=[]);var w=f.skipHidden&&e["!cols"]||[],T=f.skipHidden&&e["!rows"]||[];for(g=l.s.c;g<=l.e.c;++g)if(!(w[g]||{}).hidden)switch(d[g]=Qr(g),a=m?e["!data"][v][g]:e[d[g]+u],n){case 1:i[g]=g-l.s.c;break;case 2:i[g]=d[g];break;case 3:i[g]=f.header[g-l.s.c];break;default:if(null==a&&(a={w:"__EMPTY",t:"s"}),c=o=oa(a,null,f),p=b[o]||0){do{c=o+"_"+p++}while(b[c]);b[o]=p,b[c]=1}else b[o]=1;i[g]=c}return v=l.s.r+s,r._read=function(){for(;v<=l.e.r;)if(!(T[v-1]||{}).hidden){var t=bh(e,l,v,d,n,i,f);if(++v,!1===t.isempty||(1===n?!1!==f.blankrows:f.blankrows))return void r.push(t.row)}return r.push(null)},r},to_html:function(e,t){var r=Oh(),a=t||{},n=null!=a.header?a.header:Hl,s=null!=a.footer?a.footer:Vl;r.push(n);var i=ra(e["!ref"]);r.push($l(0,0,a));var o=i.s.r,c=!1;return r._read=function(){if(o>i.e.r)return c||(c=!0,r.push("</table>"+s)),r.push(null);for(;o<=i.e.r;){r.push(zl(e,i,o,a)),++o;break}},r},to_csv:function(e,t){var r=Oh(),a=null==t?{}:t;if(null==e||null==e["!ref"])return r.push(null),r;for(var n=ia(e["!ref"]),s=void 0!==a.FS?a.FS:",",i=s.charCodeAt(0),o=void 0!==a.RS?a.RS:"\n",c=o.charCodeAt(0),l=new RegExp(("|"==s?"\\|":s)+"+$"),f="",h=[],u=a.skipHidden&&e["!cols"]||[],d=a.skipHidden&&e["!rows"]||[],p=n.s.c;p<=n.e.c;++p)(u[p]||{}).hidden||(h[p]=Qr(p));var m=n.s.r,v=!1,g=0;return r._read=function(){if(!v)return v=!0,r.push("\ufeff");for(;m<=n.e.r;)if(++m,!(d[m-1]||{}).hidden&&null!=(f=yh(e,n,m-1,h,i,c,s,a))&&(a.strip&&(f=f.replace(l,"")),f||!1!==a.blankrows))return r.push((g++?o:"")+f);return r.push(null)},r},set_readable:function(e){Oh=e}};const Nh=s.version,Fh={parse_xlscfb:Al,parse_zip:Qf,read:sh,readFile:ih,readFileSync:ih,write:dh,writeFile:mh,writeFileSync:mh,writeFileAsync:gh,writeXLSX:uh,writeFileXLSX:vh,utils:Rh,set_fs:Ie,set_cptable:w,stream:Ih,SSF:ke,CFB:Re}}}]);