otus-localization
Version:
A translation tool for Angular i18n(angular-t9n)
1 lines • 423 kB
JavaScript
"use strict";(self.webpackChunkotus_translation=self.webpackChunkotus_translation||[]).push([[486],{1486:(e_,si,fi)=>{fi.r(si),fi.d(si,{CFB:()=>ve,SSF:()=>Ai,parse_xlscfb:()=>Vn,parse_zip:()=>_c,read:()=>N0,readFile:()=>Ec,readFileSync:()=>Ec,set_cptable:()=>Uc,set_fs:()=>vo,stream:()=>Bg,utils:()=>Rg,version:()=>Mg,write:()=>P0,writeFile:()=>Fc,writeFileAsync:()=>Tg,writeFileSync:()=>Fc,writeFileXLSX:()=>Eg,writeXLSX:()=>Qn});var pa={version:"0.18.5"},Or=1200,Nt=1252,Lc=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],U0={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},t0=function(e){-1!=Lc.indexOf(e)&&(Nt=U0[0]=e)},Mr=function(e){Or=e,t0(e)};function a0(){Mr(1200),function Bc(){t0(1252)}()}function n0(e){for(var t=[],r=0,a=e.length;r<a;++r)t[r]=e.charCodeAt(r);return t}function ci(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 Oe,Qt=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return 255==t&&254==r?function Mc(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("")}(e.slice(2)):254==t&&255==r?ci(e.slice(2)):65279==t?e.slice(1):e},ma=function(t){return String.fromCharCode(t)},W0=function(t){return String.fromCharCode(t)};function Uc(e){Oe=e,Mr=function(t){Or=t,t0(t)},Qt=function(t){return 255===t.charCodeAt(0)&&254===t.charCodeAt(1)?Oe.utils.decode(1200,n0(t.slice(2))):t},ma=function(r){return 1200===Or?String.fromCharCode(r):Oe.utils.decode(Or,[255&r,r>>8])[0]},W0=function(r){return Oe.utils.decode(Nt,[r])[0]},fs()}var ze=null,gt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function _a(e){for(var t="",r=0,a=0,n=0,i=0,s=0,f=0,c=0,o=0;o<e.length;)i=(r=e.charCodeAt(o++))>>2,s=(3&r)<<4|(a=e.charCodeAt(o++))>>4,f=(15&a)<<2|(n=e.charCodeAt(o++))>>6,c=63&n,isNaN(a)?f=c=64:isNaN(n)&&(c=64),t+=gt.charAt(i)+gt.charAt(s)+gt.charAt(f)+gt.charAt(c);return t}function Ir(e){var t="",i=0,s=0,f=0,c=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var o=0;o<e.length;)i=gt.indexOf(e.charAt(o++)),s=gt.indexOf(e.charAt(o++)),t+=String.fromCharCode(i<<2|s>>4),64!==(f=gt.indexOf(e.charAt(o++)))&&(t+=String.fromCharCode((15&s)<<4|f>>2)),64!==(c=gt.indexOf(e.charAt(o++)))&&(t+=String.fromCharCode((3&f)<<6|c));return t}var Se=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),ot=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function _t(e){return Se?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function oi(e){return Se?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Rr=function(t){return Se?ot(t,"binary"):t.split("").map(function(r){return 255&r.charCodeAt(0)})};function wa(e){if(typeof ArrayBuffer>"u")return Rr(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 wt(e){if(Array.isArray(e))return e.map(function(a){return String.fromCharCode(a)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function H0(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return H0(new Uint8Array(e));for(var t=new Array(e.length),r=0;r<e.length;++r)t[r]=e[r];return t}var fr=Se?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:ot(t)}))}:function(e){if(typeof Uint8Array<"u"){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)if(n=e[t].length,e[t]instanceof Uint8Array)a.set(e[t],r);else{if("string"==typeof e[t])throw"wtf";a.set(new Uint8Array(e[t]),r)}return a}return[].concat.apply([],e.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))},dr=/\u0000/g,ka=/[\u0001-\u0006]/g;function ea(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function Yr(e,t){var r=""+e;return r.length>=t?r:Ke("0",t-r.length)+r}function V0(e,t){var r=""+e;return r.length>=t?r:Ke(" ",t-r.length)+r}function i0(e,t){var r=""+e;return r.length>=t?r:r+Ke(" ",t-r.length)}var li=Math.pow(2,32);function ra(e,t){return e>li||e<-li?function Vc(e,t){var r=""+Math.round(e);return r.length>=t?r:Ke("0",t-r.length)+r}(e,t):function Xc(e,t){var r=""+e;return r.length>=t?r:Ke("0",t-r.length)+r}(Math.round(e),t)}function s0(e,t){return e.length>=7+(t=t||0)&&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 ui=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],X0=[["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"]],pe={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:'"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "'},hi={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},zc={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 f0(e,t,r){for(var a=e<0?-1:1,n=e*a,i=0,s=1,f=0,c=1,o=0,l=0,h=Math.floor(n);o<t&&(f=(h=Math.floor(n))*s+i,l=h*o+c,!(n-h<5e-8));)n=1/(n-h),i=s,s=f,c=o,o=l;if(l>t&&(o>t?(l=c,f=i):(l=o,f=s)),!r)return[0,a*f,l];var x=Math.floor(a*f/l);return[x,a*f-x*l,l]}function kt(e,t,r){if(e>2958465||e<0)return null;var a=0|e,n=Math.floor(86400*(e-a)),i=0,s=[],f={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(f.u)<1e-6&&(f.u=0),t&&t.date1904&&(a+=1462),f.u>.9999&&(f.u=0,86400==++n&&(f.T=n=0,++a,++f.D)),60===a)s=r?[1317,10,29]:[1900,2,29],i=3;else if(0===a)s=r?[1317,8,29]:[1900,1,0],i=6;else{a>60&&--a;var c=new Date(1900,0,1);c.setDate(c.getDate()+a-1),s=[c.getFullYear(),c.getMonth()+1,c.getDate()],i=c.getDay(),a<60&&(i=(i+6)%7),r&&(i=function Zc(e,t){t[0]-=581;var r=e.getDay();return e<60&&(r=(r+6)%7),r}(c,s))}return f.y=s[0],f.m=s[1],f.d=s[2],f.S=n%60,n=Math.floor(n/60),f.M=n%60,n=Math.floor(n/60),f.H=n,f.q=i,f}var xi=new Date(1899,11,31,0,0,0),$c=xi.getTime(),Kc=new Date(1900,2,1,0,0,0);function di(e,t){var r=e.getTime();return t?r-=1262304e5:e>=Kc&&(r+=864e5),(r-($c+6e4*(e.getTimezoneOffset()-xi.getTimezoneOffset())))/864e5}function G0(e){return-1==e.indexOf(".")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Ea(e){var r,t=Math.floor(Math.log(Math.abs(e))*Math.LOG10E);return r=t>=-4&&t<=-1?e.toPrecision(10+t):Math.abs(t)<=9?function Yc(e){var t=e<0?12:11,r=G0(e.toFixed(12));return r.length<=t||(r=e.toPrecision(10)).length<=t?r:e.toExponential(5)}(e):10===t?e.toFixed(10).substr(0,12):function Jc(e){var t=G0(e.toFixed(11));return t.length>(e<0?12:11)||"0"===t||"-0"===t?e.toPrecision(6):t}(e),G0(function jc(e){return-1==e.indexOf("E")?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}(r.toUpperCase()))}function bt(e,t){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(0|e)===e?e.toString(10):Ea(e);case"undefined":return"";case"object":if(null==e)return"";if(e instanceof Date)return Nr(14,di(e,t&&t.date1904),t)}throw new Error("unsupported value in General format: "+e)}function qc(e,t,r,a){var c,n="",i=0,s=0,f=r.y,o=0;switch(e){case 98:f=r.y+543;case 121:switch(t.length){case 1:case 2:c=f%100,o=2;break;default:c=f%1e4,o=4}break;case 109:switch(t.length){case 1:case 2:c=r.m,o=t.length;break;case 3:return X0[r.m-1][1];case 5:return X0[r.m-1][0];default:return X0[r.m-1][2]}break;case 100:switch(t.length){case 1:case 2:c=r.d,o=t.length;break;case 3:return ui[r.q][0];default:return ui[r.q][1]}break;case 104:switch(t.length){case 1:case 2:c=1+(r.H+11)%12,o=t.length;break;default:throw"bad hour format: "+t}break;case 72:switch(t.length){case 1:case 2:c=r.H,o=t.length;break;default:throw"bad hour format: "+t}break;case 77:switch(t.length){case 1:case 2:c=r.M,o=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?(s=a>=2?3===a?1e3:100:1===a?10:1,(i=Math.round(s*(r.S+r.u)))>=60*s&&(i=0),"s"===t?0===i?"0":""+i/s:(n=Yr(i,2+a),"ss"===t?n.substr(0,2):"."+n.substr(2,t.length-1))):Yr(r.S,t.length);case 90:switch(t){case"[h]":case"[hh]":c=24*r.D+r.H;break;case"[m]":case"[mm]":c=60*(24*r.D+r.H)+r.M;break;case"[s]":case"[ss]":c=60*(60*(24*r.D+r.H)+r.M)+Math.round(r.S+r.u);break;default:throw"bad abstime format: "+t}o=3===t.length?1:2;break;case 101:c=f,o=1}return o>0?Yr(c,o):""}function Et(e){if(e.length<=3)return e;for(var r=e.length%3,a=e.substr(0,r);r!=e.length;r+=3)a+=(a.length>0?",":"")+e.substr(r,3);return a}var vi=/%/g;function pi(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"-"+pi(e,-t);var n=e.indexOf(".");-1===n&&(n=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%n;if(i<0&&(i+=n),-1===(r=(t/Math.pow(10,i)).toPrecision(a+1+(n+i)%n)).indexOf("e")){var s=Math.floor(Math.log(t)*Math.LOG10E);for(-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i);"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(f,c,o,l){return c+o+l.substr(0,(n+i)%n)+"."+l.substr(i)+"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 mi=/# (\?+)( ?)\/( ?)(\d+)/,gi=/^#*0*\.([0#]+)/,_i=/\).*[0#]/,wi=/\(###\) ###\\?-####/;function Tr(e){for(var r,t="",a=0;a!=e.length;++a)switch(r=e.charCodeAt(a)){case 35:break;case 63:t+=" ";break;case 48:t+="0";break;default:t+=String.fromCharCode(r)}return t}function ki(e,t){var r=Math.pow(10,t);return""+Math.round(e*r)/r}function Ei(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 Ur(e,t,r){if(40===e.charCodeAt(0)&&!t.match(_i)){var a=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Ur("n",a,r):"("+Ur("n",a,-r)+")"}if(44===t.charCodeAt(t.length-1))return function eo(e,t,r){for(var a=t.length-1;44===t.charCodeAt(a-1);)--a;return lt(e,t.substr(0,a),r/Math.pow(10,3*(t.length-a)))}(e,t,r);if(-1!==t.indexOf("%"))return function Qc(e,t,r){var a=t.replace(vi,""),n=t.length-a.length;return lt(e,a,r*Math.pow(10,2*n))+Ke("%",n)}(e,t,r);if(-1!==t.indexOf("E"))return pi(t,r);if(36===t.charCodeAt(0))return"$"+Ur(e,t.substr(" "==t.charAt(1)?2:1),r);var n,i,s,f,c=Math.abs(r),o=r<0?"-":"";if(t.match(/^00+$/))return o+ra(c,t.length);if(t.match(/^[#?]+$/))return"0"===(n=ra(r,0))&&(n=""),n.length>t.length?n:Tr(t.substr(0,t.length-n.length))+n;if(i=t.match(mi))return function ro(e,t,r){var a=parseInt(e[4],10),n=Math.round(t*a),i=Math.floor(n/a),s=n-i*a,f=a;return r+(0===i?"":""+i)+" "+(0===s?Ke(" ",e[1].length+1+e[4].length):V0(s,e[1].length)+e[2]+"/"+e[3]+Yr(f,e[4].length))}(i,c,o);if(t.match(/^#+0+$/))return o+ra(c,t.length-t.indexOf("0"));if(i=t.match(gi))return n=ki(r,i[1].length).replace(/^([^\.]+)$/,"$1."+Tr(i[1])).replace(/\.$/,"."+Tr(i[1])).replace(/\.(\d*)$/,function(v,u){return"."+u+Ke("0",Tr(i[1]).length-u.length)}),-1!==t.indexOf("0.")?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return o+ki(c,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return o+Et(ra(c,0));if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Ur(e,t,-r):Et(""+(Math.floor(r)+function ao(e,t){return t<(""+Math.round((e-Math.floor(e))*Math.pow(10,t))).length?1:0}(r,i[1].length)))+"."+Yr(Ei(r,i[1].length),i[1].length);if(i=t.match(/^#,#*,#0/))return Ur(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=ea(Ur(e,t.replace(/[\\-]/g,""),r)),s=0,ea(ea(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return s<n.length?n.charAt(s++):"0"===v?"0":""}));if(t.match(wi))return"("+(n=Ur(e,"##########",r)).substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var l="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),f=f0(c,Math.pow(10,s)-1,!1),n=""+o," "==(l=lt("n",i[1],f[1])).charAt(l.length-1)&&(l=l.substr(0,l.length-1)+"0"),n+=l+i[2]+"/"+i[3],(l=i0(f[2],s)).length<i[4].length&&(l=Tr(i[4].substr(i[4].length-l.length))+l),n+=l;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),o+((f=f0(c,Math.pow(10,s)-1,!0))[0]||(f[1]?"":"0"))+" "+(f[1]?V0(f[1],s)+i[2]+"/"+i[3]+i0(f[2],s):Ke(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return n=ra(r,0),t.length<=n.length?n:Tr(t.substr(0,t.length-n.length))+n;if(i=t.match(/^([#0?]+)\.([#0]+)$/)){n=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=n.indexOf(".");var h=t.indexOf(".")-s,x=t.length-n.length-h;return Tr(t.substr(0,h)+n+t.substr(t.length-x))}if(i=t.match(/^00,000\.([#0]*0)$/))return s=Ei(r,i[1].length),r<0?"-"+Ur(e,t,-r):Et(function no(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(v){return"00,"+(v.length<3?Yr(0,3-v.length):"")+v})+"."+Yr(s,i[1].length);switch(t){case"###,##0.00":return Ur(e,"#,##0.00",r);case"###,###":case"##,###":case"#,###":var d=Et(ra(c,0));return"0"!==d?o+d:"";case"###,###.00":return Ur(e,"###,##0.00",r).replace(/^0\./,".");case"#,###.00":return Ur(e,"#,##0.00",r).replace(/^0\./,".")}throw new Error("unsupported format |"+t+"|")}function Ti(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"-"+Ti(e,-t);var n=e.indexOf(".");-1===n&&(n=e.indexOf("E"));var i=Math.floor(Math.log(t)*Math.LOG10E)%n;if(i<0&&(i+=n),!(r=(t/Math.pow(10,i)).toPrecision(a+1+(n+i)%n)).match(/[Ee]/)){var s=Math.floor(Math.log(t)*Math.LOG10E);-1===r.indexOf(".")?r=r.charAt(0)+"."+r.substr(1)+"E+"+(s-r.length+i):r+="E+"+(s-i),r=r.replace(/\+-/,"-")}r=r.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(f,c,o,l){return c+o+l.substr(0,(n+i)%n)+"."+l.substr(i)+"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 Qr(e,t,r){if(40===e.charCodeAt(0)&&!t.match(_i)){var a=t.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return r>=0?Qr("n",a,r):"("+Qr("n",a,-r)+")"}if(44===t.charCodeAt(t.length-1))return function io(e,t,r){for(var a=t.length-1;44===t.charCodeAt(a-1);)--a;return lt(e,t.substr(0,a),r/Math.pow(10,3*(t.length-a)))}(e,t,r);if(-1!==t.indexOf("%"))return function so(e,t,r){var a=t.replace(vi,""),n=t.length-a.length;return lt(e,a,r*Math.pow(10,2*n))+Ke("%",n)}(e,t,r);if(-1!==t.indexOf("E"))return Ti(t,r);if(36===t.charCodeAt(0))return"$"+Qr(e,t.substr(" "==t.charAt(1)?2:1),r);var n,i,s,f,c=Math.abs(r),o=r<0?"-":"";if(t.match(/^00+$/))return o+Yr(c,t.length);if(t.match(/^[#?]+$/))return n=""+r,0===r&&(n=""),n.length>t.length?n:Tr(t.substr(0,t.length-n.length))+n;if(i=t.match(mi))return function to(e,t,r){return r+(0===t?"":""+t)+Ke(" ",e[1].length+2+e[4].length)}(i,c,o);if(t.match(/^#+0+$/))return o+Yr(c,t.length-t.indexOf("0"));if(i=t.match(gi))return n=(n=(""+r).replace(/^([^\.]+)$/,"$1."+Tr(i[1])).replace(/\.$/,"."+Tr(i[1]))).replace(/\.(\d*)$/,function(v,u){return"."+u+Ke("0",Tr(i[1]).length-u.length)}),-1!==t.indexOf("0.")?n:n.replace(/^0\./,".");if(t=t.replace(/^#+([0.])/,"$1"),i=t.match(/^(0*)\.(#*)$/))return o+(""+c).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=t.match(/^#{1,3},##0(\.?)$/))return o+Et(""+c);if(i=t.match(/^#,##0\.([#0]*0)$/))return r<0?"-"+Qr(e,t,-r):Et(""+r)+"."+Ke("0",i[1].length);if(i=t.match(/^#,#*,#0/))return Qr(e,t.replace(/^#,#*,/,""),r);if(i=t.match(/^([0#]+)(\\?-([0#]+))+$/))return n=ea(Qr(e,t.replace(/[\\-]/g,""),r)),s=0,ea(ea(t.replace(/\\/g,"")).replace(/[0#]/g,function(v){return s<n.length?n.charAt(s++):"0"===v?"0":""}));if(t.match(wi))return"("+(n=Qr(e,"##########",r)).substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var l="";if(i=t.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(i[4].length,7),f=f0(c,Math.pow(10,s)-1,!1),n=""+o," "==(l=lt("n",i[1],f[1])).charAt(l.length-1)&&(l=l.substr(0,l.length-1)+"0"),n+=l+i[2]+"/"+i[3],(l=i0(f[2],s)).length<i[4].length&&(l=Tr(i[4].substr(i[4].length-l.length))+l),n+=l;if(i=t.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return s=Math.min(Math.max(i[1].length,i[4].length),7),o+((f=f0(c,Math.pow(10,s)-1,!0))[0]||(f[1]?"":"0"))+" "+(f[1]?V0(f[1],s)+i[2]+"/"+i[3]+i0(f[2],s):Ke(" ",2*s+1+i[2].length+i[3].length));if(i=t.match(/^[#0?]+$/))return t.length<=(n=""+r).length?n:Tr(t.substr(0,t.length-n.length))+n;if(i=t.match(/^([#0]+)\.([#0]+)$/)){n=""+r.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),s=n.indexOf(".");var h=t.indexOf(".")-s,x=t.length-n.length-h;return Tr(t.substr(0,h)+n+t.substr(t.length-x))}if(i=t.match(/^00,000\.([#0]*0)$/))return r<0?"-"+Qr(e,t,-r):Et(""+r).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(v){return"00,"+(v.length<3?Yr(0,3-v.length):"")+v})+"."+Yr(0,i[1].length);switch(t){case"###,###":case"##,###":case"#,###":var d=Et(""+c);return"0"!==d?o+d:"";default:if(t.match(/\.[0#?]*$/))return Qr(e,t.slice(0,t.lastIndexOf(".")),r)+Tr(t.slice(t.lastIndexOf(".")))}throw new Error("unsupported format |"+t+"|")}function lt(e,t,r){return(0|r)===r?Qr(e,t,r):Ur(e,t,r)}var Si=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function Pt(e){for(var t=0,r="",a="";t<e.length;)switch(r=e.charAt(t)){case"G":s0(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"\u4e0a":if("A/P"===e.substr(t,3).toUpperCase()||"AM/PM"===e.substr(t,5).toUpperCase()||"\u4e0a\u5348/\u4e0b\u5348"===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(Si))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 Fi=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function yi(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 Nr(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:pe)[e])&&(a=r.table&&r.table[hi[e]]||pe[hi[e]]),null==a&&(a=zc[e]||"General")}if(s0(a,0))return bt(t,r);t instanceof Date&&(t=di(t,r.date1904));var n=function oo(e,t){var r=function fo(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 i=t>0?r[0]:t<0?r[1]:r[2];if(-1===r[0].indexOf("[")&&-1===r[1].indexOf("["))return[a,i];if(null!=r[0].match(/\[[=<>]/)||null!=r[1].match(/\[[=<>]/)){var s=r[0].match(Fi),f=r[1].match(Fi);return yi(t,s)?[a,r[0]]:yi(t,f)?[a,r[1]]:[a,r[null!=s&&null!=f?2:1]]}return[a,i]}(a,t);if(s0(n[1]))return bt(t,r);if(!0===t)t="TRUE";else if(!1===t)t="FALSE";else if(""===t||null==t)return"";return function co(e,t,r,a){for(var o,l,h,n=[],i="",s=0,f="",c="t",x="H";s<e.length;)switch(f=e.charAt(s)){case"G":if(!s0(e,s))throw new Error("unrecognized character "+f+" in "+e);n[n.length]={t:"G",v:"General"},s+=7;break;case'"':for(i="";34!==(h=e.charCodeAt(++s))&&s<e.length;)i+=String.fromCharCode(h);n[n.length]={t:"t",v:i},++s;break;case"\\":var d=e.charAt(++s);n[n.length]={t:"("===d||")"===d?d:"t",v:d},++s;break;case"_":n[n.length]={t:"t",v:" "},s+=2;break;case"@":n[n.length]={t:"T",v:t},++s;break;case"B":case"b":if("1"===e.charAt(s+1)||"2"===e.charAt(s+1)){if(null==o&&null==(o=kt(t,r,"2"===e.charAt(s+1))))return"";n[n.length]={t:"X",v:e.substr(s,2)},c=f,s+=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||null==o&&null==(o=kt(t,r)))return"";for(i=f;++s<e.length&&e.charAt(s).toLowerCase()===f;)i+=f;"m"===f&&"h"===c.toLowerCase()&&(f="M"),"h"===f&&(f=x),n[n.length]={t:f,v:i},c=f;break;case"A":case"a":case"\u4e0a":var u={t:f,v:f};if(null==o&&(o=kt(t,r)),"A/P"===e.substr(s,3).toUpperCase()?(null!=o&&(u.v=o.H>=12?"P":"A"),u.t="T",x="h",s+=3):"AM/PM"===e.substr(s,5).toUpperCase()?(null!=o&&(u.v=o.H>=12?"PM":"AM"),u.t="T",s+=5,x="h"):"\u4e0a\u5348/\u4e0b\u5348"===e.substr(s,5).toUpperCase()?(null!=o&&(u.v=o.H>=12?"\u4e0b\u5348":"\u4e0a\u5348"),u.t="T",s+=5,x="h"):(u.t="t",++s),null==o&&"T"===u.t)return"";n[n.length]=u,c=f;break;case"[":for(i=f;"]"!==e.charAt(s++)&&s<e.length;)i+=e.charAt(s);if("]"!==i.slice(-1))throw'unterminated "[" block: |'+i+"|";if(i.match(Si)){if(null==o&&null==(o=kt(t,r)))return"";n[n.length]={t:"Z",v:i.toLowerCase()},c=i.charAt(1)}else i.indexOf("$")>-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",Pt(e)||(n[n.length]={t:"t",v:i}));break;case".":if(null!=o){for(i=f;++s<e.length&&"0"===(f=e.charAt(s));)i+=f;n[n.length]={t:"s",v:i};break}case"0":case"#":for(i=f;++s<e.length&&"0#?.,E+-%".indexOf(f=e.charAt(s))>-1;)i+=f;n[n.length]={t:"n",v:i};break;case"?":for(i=f;e.charAt(++s)===f;)i+=f;n[n.length]={t:f,v:i},c=f;break;case"*":++s,(" "==e.charAt(s)||"*"==e.charAt(s))&&++s;break;case"(":case")":n[n.length]={t:1===a?"t":f,v:f},++s;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=f;s<e.length&&"0123456789".indexOf(e.charAt(++s))>-1;)i+=e.charAt(s);n[n.length]={t:"D",v:i};break;case" ":n[n.length]={t:f,v:f},++s;break;case"$":n[n.length]={t:"t",v:"$"},++s;break;default:if(-1===",$-+/():!^&'~{}<>=\u20acacfijklopqrtuvwxzP".indexOf(f))throw new Error("unrecognized character "+f+" in "+e);n[n.length]={t:"t",v:f},++s}var E,p=0,k=0;for(s=n.length-1,c="t";s>=0;--s)switch(n[s].t){case"h":case"H":n[s].t=x,c="h",p<1&&(p=1);break;case"s":(E=n[s].v.match(/\.0+$/))&&(k=Math.max(k,E[0].length-1)),p<3&&(p=3);case"d":case"y":case"M":case"e":c=n[s].t;break;case"m":"s"===c&&(n[s].t="M",p<2&&(p=2));break;case"X":break;case"Z":p<1&&n[s].v.match(/[Hh]/)&&(p=1),p<2&&n[s].v.match(/[Mm]/)&&(p=2),p<3&&n[s].v.match(/[Ss]/)&&(p=3)}switch(p){case 0:break;case 1:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M),o.M>=60&&(o.M=0,++o.H);break;case 2:o.u>=.5&&(o.u=0,++o.S),o.S>=60&&(o.S=0,++o.M)}var N,g="";for(s=0;s<n.length;++s)switch(n[s].t){case"t":case"T":case" ":case"D":break;case"X":n[s].v="",n[s].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":n[s].v=qc(n[s].t.charCodeAt(0),n[s].v,o,k),n[s].t="t";break;case"n":case"?":for(N=s+1;null!=n[N]&&("?"===(f=n[N].t)||"D"===f||(" "===f||"t"===f)&&null!=n[N+1]&&("?"===n[N+1].t||"t"===n[N+1].t&&"/"===n[N+1].v)||"("===n[s].t&&(" "===f||"n"===f||")"===f)||"t"===f&&("/"===n[N].v||" "===n[N].v&&null!=n[N+1]&&"?"==n[N+1].t));)n[s].v+=n[N].v,n[N]={v:"",t:";"},++N;g+=n[s].v,s=N-1;break;case"G":n[s].t="t",n[s].v=bt(t,r)}var I,F,L="";if(g.length>0){40==g.charCodeAt(0)?(I=t<0&&45===g.charCodeAt(0)?-t:t,F=lt("n",g,I)):(F=lt("n",g,I=t<0&&a>1?-t:t),I<0&&n[0]&&"t"==n[0].t&&(F=F.substr(1),n[0].v="-"+n[0].v)),N=F.length-1;var b=n.length;for(s=0;s<n.length;++s)if(null!=n[s]&&"t"!=n[s].t&&n[s].v.indexOf(".")>-1){b=s;break}var R=n.length;if(b===n.length&&-1===F.indexOf("E")){for(s=n.length-1;s>=0;--s)null==n[s]||-1==="n?".indexOf(n[s].t)||(N>=n[s].v.length-1?n[s].v=F.substr(1+(N-=n[s].v.length),n[s].v.length):N<0?n[s].v="":(n[s].v=F.substr(0,N+1),N=-1),n[s].t="t",R=s);N>=0&&R<n.length&&(n[R].v=F.substr(0,N+1)+n[R].v)}else if(b!==n.length&&-1===F.indexOf("E")){for(N=F.indexOf(".")-1,s=b;s>=0;--s)if(null!=n[s]&&-1!=="n?".indexOf(n[s].t)){for(l=n[s].v.indexOf(".")>-1&&s===b?n[s].v.indexOf(".")-1:n[s].v.length-1,L=n[s].v.substr(l+1);l>=0;--l)N>=0&&("0"===n[s].v.charAt(l)||"#"===n[s].v.charAt(l))&&(L=F.charAt(N--)+L);n[s].v=L,n[s].t="t",R=s}for(N>=0&&R<n.length&&(n[R].v=F.substr(0,N+1)+n[R].v),N=F.indexOf(".")+1,s=b;s<n.length;++s)if(null!=n[s]&&(-1!=="n?(".indexOf(n[s].t)||s===b)){for(l=n[s].v.indexOf(".")>-1&&s===b?n[s].v.indexOf(".")+1:0,L=n[s].v.substr(0,l);l<n[s].v.length;++l)N<F.length&&(L+=F.charAt(N++));n[s].v=L,n[s].t="t",R=s}}}for(s=0;s<n.length;++s)null!=n[s]&&"n?".indexOf(n[s].t)>-1&&(n[s].v=lt(n[s].t,n[s].v,I=a>1&&t<0&&s>0&&"-"===n[s-1].v?-t:t),n[s].t="t");var V="";for(s=0;s!==n.length;++s)null!=n[s]&&(V+=n[s].v);return V}(n[1],t,r,n[0])}function et(e,t){if("number"!=typeof t){t=+t||-1;for(var r=0;r<392;++r)if(null!=pe[r]){if(pe[r]==e){t=r;break}}else t<0&&(t=r);t<0&&(t=391)}return pe[t]=e,t}function Ta(e){for(var t=0;392!=t;++t)void 0!==e[t]&&et(e[t],t)}function ta(){pe=function Gc(e){return 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]='"\u4e0a\u5348/\u4e0b\u5348 "hh"\u6642"mm"\u5206"ss"\u79d2 "',e}()}var Ai={format:Nr,load:et,_table:pe,load_table:Ta,parse_date_code:kt,is_date:Pt,get_table:function(){return Ai._table=pe}},lo={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"},Ci=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,xo=function(){var e={version:"1.2.0"},r=function t(){for(var F=0,b=new Array(256),R=0;256!=R;++R)b[R]=F=1&(F=1&(F=1&(F=1&(F=1&(F=1&(F=1&(F=1&(F=R)?-306674912^F>>>1:F>>>1)?-306674912^F>>>1:F>>>1)?-306674912^F>>>1:F>>>1)?-306674912^F>>>1:F>>>1)?-306674912^F>>>1:F>>>1)?-306674912^F>>>1:F>>>1)?-306674912^F>>>1:F>>>1)?-306674912^F>>>1:F>>>1;return typeof Int32Array<"u"?new Int32Array(b):b}(),n=function a(F){var b=0,R=0,V=0,X=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(V=0;256!=V;++V)X[V]=F[V];for(V=0;256!=V;++V)for(R=F[V],b=256+V;b<4096;b+=256)R=X[b]=R>>>8^F[255&R];var P=[];for(V=1;16!=V;++V)P[V-1]=typeof Int32Array<"u"?X.subarray(256*V,256*V+256):X.slice(256*V,256*V+256);return P}(r),i=n[0],s=n[1],f=n[2],c=n[3],o=n[4],l=n[5],h=n[6],x=n[7],d=n[8],v=n[9],u=n[10],p=n[11],k=n[12],E=n[13],g=n[14];return e.table=r,e.bstr=function N(F,b){for(var R=-1^b,V=0,X=F.length;V<X;)R=R>>>8^r[255&(R^F.charCodeAt(V++))];return~R},e.buf=function L(F,b){for(var R=-1^b,V=F.length-15,X=0;X<V;)R=g[F[X++]^255&R]^E[F[X++]^R>>8&255]^k[F[X++]^R>>16&255]^p[F[X++]^R>>>24]^u[F[X++]]^v[F[X++]]^d[F[X++]]^x[F[X++]]^h[F[X++]]^l[F[X++]]^o[F[X++]]^c[F[X++]]^f[F[X++]]^s[F[X++]]^i[F[X++]]^r[F[X++]];for(V+=15;X<V;)R=R>>>8^r[255&(R^F[X++])];return~R},e.str=function I(F,b){for(var R=-1^b,V=0,X=F.length,P=0,re=0;V<X;)(P=F.charCodeAt(V++))<128?R=R>>>8^r[255&(R^P)]:P<2048?R=(R=R>>>8^r[255&(R^(192|P>>6&31))])>>>8^r[255&(R^(128|63&P))]:P>=55296&&P<57344?(P=64+(1023&P),re=1023&F.charCodeAt(V++),R=(R=(R=(R=R>>>8^r[255&(R^(240|P>>8&7))])>>>8^r[255&(R^(128|P>>2&63))])>>>8^r[255&(R^(128|re>>6&15|(3&P)<<4))])>>>8^r[255&(R^(128|63&re))]):R=(R=(R=R>>>8^r[255&(R^(224|P>>12&15))])>>>8^r[255&(R^(128|P>>6&63))])>>>8^r[255&(R^(128|63&P))];return~R},e}(),ve=function(){var c,t={};function a(m){if("/"==m.charAt(m.length-1))return-1===m.slice(0,-1).indexOf("/")?m:a(m.slice(0,-1));var T=m.lastIndexOf("/");return-1===T?m:m.slice(0,T+1)}function n(m){if("/"==m.charAt(m.length-1))return n(m.slice(0,-1));var T=m.lastIndexOf("/");return-1===T?m:m.slice(T+1)}function i(m,T){"string"==typeof T&&(T=new Date(T));var _=T.getHours();_=(_=_<<6|T.getMinutes())<<5|T.getSeconds()>>>1,m.write_shift(2,_);var w=T.getFullYear()-1980;w=(w=w<<4|T.getMonth()+1)<<5|T.getDate(),m.write_shift(2,w)}function f(m){xr(m,0);for(var T={},_=0;m.l<=m.length-4;){var w=m.read_shift(2),S=m.read_shift(2),y=m.l+S,B={};21589===w&&(1&(_=m.read_shift(1))&&(B.mtime=m.read_shift(4)),S>5&&(2&_&&(B.atime=m.read_shift(4)),4&_&&(B.ctime=m.read_shift(4))),B.mtime&&(B.mt=new Date(1e3*B.mtime))),m.l=y,T[w]=B}return T}function o(){return c||(c={})}function l(m,T){if(80==m[0]&&75==m[1])return Pc(m,T);if(109==(32|m[0])&&105==(32|m[1]))return function jg(m,T){if("mime-version:"!=ce(m.slice(0,13)).toLowerCase())throw new Error("Unsupported MAD header");var _=T&&T.root||"",w=(Se&&Buffer.isBuffer(m)?m.toString("binary"):ce(m)).split("\r\n"),S=0,y="";for(S=0;S<w.length;++S)if(/^Content-Location:/i.test(y=w[S])&&(y=y.slice(y.indexOf("file")),_||(_=y.slice(0,y.lastIndexOf("/")+1)),y.slice(0,_.length)!=_))for(;_.length>0&&(_=(_=_.slice(0,_.length-1)).slice(0,_.lastIndexOf("/")+1),y.slice(0,_.length)!=_););var B=(w[1]||"").match(/boundary="(.*?)"/);if(!B)throw new Error("MAD cannot find boundary");var z="--"+(B[1]||""),H={FileIndex:[],FullPaths:[]};F(H);var Z,ne=0;for(S=0;S<w.length;++S){var he=w[S];he!==z&&he!==z+"--"||(ne++&&Kg(H,w.slice(Z,S),_),Z=S)}return H}(m,T);if(m.length<512)throw new Error("CFB file size "+m.length+" < 512");var _,S,y,B,z,W,w=512,M=[],H=m.slice(0,512);xr(H,0);var Z=function h(m){if(80==m[m.l]&&75==m[m.l+1])return[0,0];m.chk(le,"Header Signature: "),m.l+=16;var T=m.read_shift(2,"u");return[m.read_shift(2,"u"),T]}(H);switch(_=Z[0]){case 3:w=512;break;case 4:w=4096;break;case 0:if(0==Z[1])return Pc(m,T);default:throw new Error("Major Version: Expected 3 or 4 saw "+_)}512!==w&&xr(H=m.slice(0,w),28);var ne=m.slice(0,w);!function x(m,T){var _;switch(m.l+=2,_=m.read_shift(2)){case 9:if(3!=T)throw new Error("Sector Shift: Expected 9 saw "+_);break;case 12:if(4!=T)throw new Error("Sector Shift: Expected 12 saw "+_);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+_)}m.chk("0600","Mini Sector Shift: "),m.chk("000000000000","Reserved: ")}(H,_);var he=H.read_shift(4,"i");if(3===_&&0!==he)throw new Error("# Directory Sectors: Expected 0 saw "+he);H.l+=4,B=H.read_shift(4,"i"),H.l+=4,H.chk("00100000","Mini Stream Cutoff Size: "),z=H.read_shift(4,"i"),S=H.read_shift(4,"i"),W=H.read_shift(4,"i"),y=H.read_shift(4,"i");for(var ie=-1,fe=0;fe<109&&!((ie=H.read_shift(4,"i"))<0);++fe)M[fe]=ie;var _e=function d(m,T){for(var _=Math.ceil(m.length/T)-1,w=[],S=1;S<_;++S)w[S-1]=m.slice(S*T,(S+1)*T);return w[_-1]=m.slice(_*T),w}(m,w);p(W,y,_e,w,M);var Xe=function E(m,T,_,w){var S=m.length,y=[],B=[],z=[],W=[],M=w-1,H=0,Z=0,ne=0,he=0;for(H=0;H<S;++H)if(z=[],(ne=H+T)>=S&&(ne-=S),!B[ne]){W=[];var ie=[];for(Z=ne;Z>=0;){ie[Z]=!0,B[Z]=!0,z[z.length]=Z,W.push(m[Z]);var fe=_[Math.floor(4*Z/w)];if(w<4+(he=4*Z&M))throw new Error("FAT boundary crossed: "+Z+" 4 "+w);if(!m[fe]||ie[Z=Bt(m[fe],he)])break}y[ne]={nodes:z,data:Ji([W])}}return y}(_e,B,M,w);Xe[B].name="!Directory",S>0&&z!==re&&(Xe[z].name="!MiniFAT"),Xe[M[0]].name="!FAT",Xe.fat_addrs=M,Xe.ssz=w;var nr=[],Br=[],e0=[];(function g(m,T,_,w,S,y,B,z){for(var he,W=0,M=w.length?2:0,H=T[m].data,Z=0,ne=0;Z<H.length;Z+=128){var ie=H.slice(Z,Z+128);xr(ie,64),ne=ie.read_shift(2),he=x0(ie,0,ne-M),w.push(he);var fe={name:he,type:ie.read_shift(1),color:ie.read_shift(1),L:ie.read_shift(4,"i"),R:ie.read_shift(4,"i"),C:ie.read_shift(4,"i"),clsid:ie.read_shift(16),state:ie.read_shift(4,"i"),start:0,size:0};0!==ie.read_shift(2)+ie.read_shift(2)+ie.read_shift(2)+ie.read_shift(2)&&(fe.ct=N(ie,ie.l-8)),0!==ie.read_shift(2)+ie.read_shift(2)+ie.read_shift(2)+ie.read_shift(2)&&(fe.mt=N(ie,ie.l-8)),fe.start=ie.read_shift(4,"i"),fe.size=ie.read_shift(4,"i"),fe.size<0&&fe.start<0&&(fe.size=fe.type=0,fe.start=re,fe.name=""),5===fe.type?(W=fe.start,S>0&&W!==re&&(T[W].name="!StreamData")):fe.size>=4096?(fe.storage="fat",void 0===T[fe.start]&&(T[fe.start]=k(_,fe.start,T.fat_addrs,T.ssz)),T[fe.start].name=fe.name,fe.content=T[fe.start].data.slice(0,fe.size)):(fe.storage="minifat",fe.size<0?fe.size=0:W!==re&&fe.start!==re&&T[W]&&(fe.content=u(fe,T[W].data,(T[z]||{}).data))),fe.content&&xr(fe.content,0),y[he]=fe,B.push(fe)}})(B,Xe,_e,nr,S,{},Br,z),function v(m,T,_){for(var w=0,S=0,y=0,B=0,z=0,W=_.length,M=[],H=[];w<W;++w)M[w]=H[w]=w,T[w]=_[w];for(;z<H.length;++z)S=m[w=H[z]].L,y=m[w].R,B=m[w].C,M[w]===w&&(-1!==S&&M[S]!==S&&(M[w]=M[S]),-1!==y&&M[y]!==y&&(M[w]=M[y])),-1!==B&&(M[B]=w),-1!==S&&w!=M[w]&&(M[S]=M[w],H.lastIndexOf(S)<z&&H.push(S)),-1!==y&&w!=M[w]&&(M[y]=M[w],H.lastIndexOf(y)<z&&H.push(y));for(w=1;w<W;++w)M[w]===w&&(-1!==y&&M[y]!==y?M[w]=M[y]:-1!==S&&M[S]!==S&&(M[w]=M[S]));for(w=1;w<W;++w)if(0!==m[w].type){if((z=w)!=M[z])do{T[w]=T[z=M[z]]+"/"+T[w]}while(0!==z&&-1!==M[z]&&z!=M[z]);M[w]=-1}for(T[0]+="/",w=1;w<W;++w)2!==m[w].type&&(T[w]+="/")}(Br,e0,nr),nr.shift();var r0={FileIndex:Br,FullPaths:e0};return T&&T.raw&&(r0.raw={header:ne,sectors:_e}),r0}function u(m,T,_){for(var S=m.size,y=[],B=m.start;_&&S>0&&B>=0;)y.push(T.slice(B*P,B*P+P)),S-=P,B=Bt(_,4*B);return 0===y.length?G(0):fr(y).slice(0,m.size)}function p(m,T,_,w,S){var y=re;if(m===re){if(0!==T)throw new Error("DIFAT chain shorter than expected")}else if(-1!==m){var B=_[m],z=(w>>>2)-1;if(!B)return;for(var W=0;W<z&&(y=Bt(B,4*W))!==re;++W)S.push(y);p(Bt(B,w-4),T-1,_,w,S)}}function k(m,T,_,w,S){var y=[],B=[];S||(S=[]);var z=w-1,W=0,M=0;for(W=T;W>=0;){S[W]=!0,y[y.length]=W,B.push(m[W]);var H=_[Math.floor(4*W/w)];if(w<4+(M=4*W&z))throw new Error("FAT boundary crossed: "+W+" 4 "+w);if(!m[H])break;W=Bt(m[H],M)}return{nodes:y,data:Ji([B])}}function N(m,T){return new Date(1e3*(cr(m,T+4)/1e7*Math.pow(2,32)+cr(m,T)/1e7-11644473600))}function F(m,T){var _=T||{},w=_.root||"Root Entry";if(m.FullPaths||(m.FullPaths=[]),m.FileIndex||(m.FileIndex=[]),m.FullPaths.length!==m.FileIndex.length)throw new Error("inconsistent CFB structure");0===m.FullPaths.length&&(m.FullPaths[0]=w+"/",m.FileIndex[0]={name:w,type:5}),_.CLSID&&(m.FileIndex[0].clsid=_.CLSID),function b(m){var T="\x01Sh33tJ5";if(!ve.find(m,"/"+T)){var _=G(4);_[0]=55,_[1]=_[3]=50,_[2]=54,m.FileIndex.push({name:T,type:2,content:_,size:4,L:69,R:69,C:69}),m.FullPaths.push(m.FullPaths[0]+T),R(m)}}(m)}function R(m,T){F(m);for(var _=!1,w=!1,S=m.FullPaths.length-1;S>=0;--S){var y=m.FileIndex[S];switch(y.type){case 0:w?_=!0:(m.FileIndex.pop(),m.FullPaths.pop());break;case 1:case 2:case 5:w=!0,isNaN(y.R*y.L*y.C)&&(_=!0),y.R>-1&&y.L>-1&&y.R==y.L&&(_=!0);break;default:_=!0}}if(_||T){var B=new Date(1987,1,19),z=0,W=Object.create?Object.create(null):{},M=[];for(S=0;S<m.FullPaths.length;++S)W[m.FullPaths[S]]=!0,0!==m.FileIndex[S].type&&M.push([m.FullPaths[S],m.FileIndex[S]]);for(S=0;S<M.length;++S){var H=a(M[S][0]);(w=W[H])||(M.push([H,{name:n(H).replace("/",""),type:1,clsid:de,ct:B,mt:B,content:null}]),W[H]=!0)}for(M.sort(function(he,ie){return function r(m,T){for(var _=m.split("/"),w=T.split("/"),S=0,y=0,B=Math.min(_.length,w.length);S<B;++S){if(y=_[S].length-w[S].length)return y;if(_[S]!=w[S])return _[S]<w[S]?-1:1}return _.length-w.length}(he[0],ie[0])}),m.FullPaths=[],m.FileIndex=[],S=0;S<M.length;++S)m.FullPaths[S]=M[S][0],m.FileIndex[S]=M[S][1];for(S=0;S<M.length;++S){var Z=m.FileIndex[S],ne=m.FullPaths[S];if(Z.name=n(ne).replace("/",""),Z.L=Z.R=Z.C=-(Z.color=1),Z.size=Z.content?Z.content.length:0,Z.start=0,Z.clsid=Z.clsid||de,0===S)Z.C=M.length>1?1:-1,Z.size=0,Z.type=5;else if("/"==ne.slice(-1)){for(z=S+1;z<M.length&&a(m.FullPaths[z])!=ne;++z);for(Z.C=z>=M.length?-1:z,z=S+1;z<M.length&&a(m.FullPaths[z])!=a(ne);++z);Z.R=z>=M.length?-1:z,Z.type=1}else a(m.FullPaths[S+1]||"")==a(ne)&&(Z.R=S+1),Z.type=2}}}function V(m,T){var _=T||{};if("mad"==_.fileType)return function Yg(m,T){for(var _=T||{},w=_.boundary||"SheetJS",S=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(w="------="+w).slice(2)+'"',"","",""],y=m.FullPaths[0],B=y,z=m.FileIndex[0],W=1;W<m.FullPaths.length;++W)if(B=m.FullPaths[W].slice(y.length),(z=m.FileIndex[W]).size&&z.content&&"\x01Sh33tJ5"!=B){B=B.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 M=z.content,H=Se&&Buffer.isBuffer(M)?M.toString("binary"):ce(M),Z=0,ne=Math.min(1024,H.length),he=0,ie=0;ie<=ne;++ie)(he=H.charCodeAt(ie))>=32&&he<128&&++Z;var fe=Z>=4*ne/5;S.push(w),S.push("Content-Location: "+(_.root||"file:///C:/SheetJS/")+B),S.push("Content-Transfer-Encoding: "+(fe?"quoted-printable":"base64")),S.push("Content-Type: "+Xg(z,B)),S.push(""),S.push(fe?zg(H):Gg(H))}return S.push(w+"--\r\n"),S.join("\r\n")}(m,_);if("zip"===(R(m),_.fileType))return function Vg(m,T){var _=T||{},w=[],S=[],y=G(1),B=_.compression?8:0,z=0,M=0,H=0,Z=0,ne=0,he=m.FullPaths[0],ie=he,fe=m.FileIndex[0],_e=[],Xe=0;for(M=1;M<m.FullPaths.length;++M)if(ie=m.FullPaths[M].slice(he.length),(fe=m.FileIndex[M]).size&&fe.content&&"\x01Sh33tJ5"!=ie){var Dr=Z,nr=G(ie.length);for(H=0;H<ie.length;++H)nr.write_shift(1,127&ie.charCodeAt(H));nr=nr.slice(0,nr.l),_e[ne]=xo.buf(fe.content,0);var Br=fe.content;8==B&&(Br=O(Br)),(y=G(30)).write_shift(4,67324752),y.write_shift(2,20),y.write_shift(2,z),y.write_shift(2,B),fe.mt?i(y,fe.mt):y.write_shift(4,0),y.write_shift(-4,8&z?0:_e[ne]),y.write_shift(4,8&z?0:Br.length),y.write_shift(4,8&z?0:fe.content.length),y.write_shift(2,nr.length),y.write_shift(2,0),Z+=y.length,w.push(y),Z+=nr.length,w.push(nr),Z+=Br.length,w.push(Br),8&z&&((y=G(12)).write_shift(-4,_e[ne]),y.write_shift(4,Br.length),y.write_shift(4,fe.content.length),Z+=y.l,w.push(y)),(y=G(46)).write_shift(4,33639248),y.write_shift(2,0),y.write_shift(2,20),y.write_shift(2,z),y.write_shift(2,B),y.write_shift(4,0),y.write_shift(-4,_e[ne]),y.write_shift(4,Br.length),y.write_shift(4,fe.content.length),y.write_shift(2,nr.length),y.write_shift(2,0),y.write_shift(2,0),y.write_shift(2,0),y.write_shift(2,0),y.write_shift(4,0),y.write_shift(4,Dr),Xe+=y.l,S.push(y),Xe+=nr.length,S.push(nr),++ne}return(y=G(22)).write_shift(4,101010256),y.write_shift(2,0),y.write_shift(2,0),y.write_shift(2,ne),y.write_shift(2,ne),y.write_shift(4,Xe),y.write_shift(4,Z),y.write_shift(2,0),fr([fr(w),fr(S),y])}(m,_);var w=function(he){for(var ie=0,fe=0,_e=0;_e<he.FileIndex.length;++_e){var Xe=he.FileIndex[_e];if(Xe.content){var Dr=Xe.content.length;Dr>0&&(Dr<4096?ie+=Dr+63>>6:fe+=Dr+511>>9)}}for(var nr=he.FullPaths.length+3>>2,e0=ie+127>>7,r0=(ie+7>>3)+fe+nr+e0,qt=r0+127>>7,ii=qt<=109?0:Math.ceil((qt-109)/127);r0+qt+ii+127>>7>qt;)ii=++qt<=109?0:Math.ceil((qt-109)/127);var mt=[1,ii,qt,e0,nr,fe,ie,0];return he.FileIndex[0].size=ie<<6,mt[7]=(he.FileIndex[0].start=mt[0]+mt[1]+mt[2]+mt[3]+mt[4]+mt[5])+(mt[6]+7>>3),mt}(m),S=G(w[7]<<9),y=0,B=0;for(y=0;y<8;++y)S.write_shift(1,te[y]);for(y=0;y<8;++y)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),y=0;y<3;++y)S.write_shift(2,0);for(S.write_shift(4,0),S.write_shift(4,w[2]),S.write_shift(4,w[0]+w[1]+w[2]+w[3]-1),S.write_shift(4,0),S.write_shift(4,4096),S.write_shift(4,w[3]?w[0]+w[1]+w[2]-1:re),S.write_shift(4,w[3]),S.write_shift(-4,w[1]?w[0]-1:re),S.write_shift(4,w[1]),y=0;y<109;++y)S.write_shift(-4,y<w[2]?w[1]+y:-1);if(w[1])for(B=0;B<w[1];++B){for(;y<236+127*B;++y)S.write_shift(-4,y<w[2]?w[1]+y:-1);S.write_shift(-4,B===w[1]-1?re:B+1)}var z=function(he){for(B+=he;y<B-1;++y)S.write_shift(-4,y+1);he&&(++y,S.write_shift(-4,re))};for(B=y=0,B+=w[1];y<B;++y)S.write_shift(-4,ue.DIFSECT);for(B+=w[2];y<B;++y)S.write_shift(-4,ue.FATSECT);z(w[3]),z(w[4]);for(var W=0,M=0,H=m.FileIndex[0];W<m.FileIndex.length;++W)(H=m.FileIndex[W]).content&&!((M=H.content.length)<4096)&&(H.start=B,z(M+511>>9));for(z(w[6]+7>>3);511&S.l;)S.write_shift(-4,ue.ENDOFCHAIN);for(B=y=0,W=0;W<m.FileIndex.length;++W)(H=m.FileIndex[W]).content&&(M=H.content.length)&&!(M>=4096)&&(H.start=B,z(M+63>>6));for(;511&S.l;)S.write_shift(-4,ue.ENDOFCHAIN);for(y=0;y<w[4]<<2;++y){var Z=m.FullPaths[y];if(Z&&0!==Z.length){H=m.FileIndex[y],0===y&&(H.start=H.size?H.start-1:re);var ne=0===y&&_.root||H.name;if(M=2*(ne.length+1),S.write_shift(64,ne,"utf16le"),S.write_shift(2,M),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(W=0;W<4;++W)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(W=0;W<17;++W)S.write_shift(4,0);for(W=0;W<3;++W)S.write_shift(4,-1);for(W=0;W<12;++W)S.write_shift(4,0)}}for(y=1;y<m.FileIndex.length;++y)if((H=m.FileIndex[y]).size>=4096)if(S.l=H.start+1<<9,Se&&Buffer.isBuffer(H.content))H.content.copy(S,S.l,0,H.size),S.l+=H.size+511&-512;else{for(W=0;W<H.size;++W)S.write_shift(1,H.content[W]);for(;511&W;++W)S.write_shift(1,0)}for(y=1;y<m.FileIndex.length;++y)if((H=m.FileIndex[y]).size>0&&H.size<4096)if(Se&&Buffer.isBuffer(H.content))H.content.copy(S,S.l,0,H.size),S.l+=H.size+63&-64;else{for(W=0;W<H.size;++W)S.write_shift(1,H.content[W]);for(;63&W;++W)S.write_shift(1,0)}if(Se)S.l=S.length;else for(;S.l<S.length;)S.write_shift(1,0);return S}t.version="1.2.1";var j,P=64,re=-2,le="d0cf11e0a1b11ae1",te=[208,207,17,224,161,177,26,225],de="00000000000000000000000000000000",ue={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:re,FREESECT:-1,HEADER_SIGNATURE:le,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:de,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function ce(m){for(var T=new Array(m.length),_=0;_<m.length;++_)T[_]=String.fromCharCode(m[_]);return T.join("")}function O(m){return j?j.deflateRawSync(m):ye(m)}for(var m,T,D=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],K=[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],se=[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],Q=typeof Uint8Array<"u",Y=Q?new Uint8Array(256):[],Ee=0;Ee<256;++Ee)Y[Ee]=(void 0,255&((T=139536&((m=Ee)<<1|m<<11)|558144&(m<<5|m<<15))>>16|T>>8|T));function A(m,T){var _=Y[255&m];return T<=8?_>>>8-T:(_=_<<8|Y[m>>8&255],T<=16?_>>>16-T:(_=_<<8|Y[m>>16&255])>>>24-T)}function Le(m,T){var _=7&T,w=T>>>3;return(m[w]|(_<=6?0:m[w+1]<<8))>>>_&3}function Ae(m,T){var _=7&T,w=T>>>3;return(m[w]|(_<=5?0:m[w+1]<<8))>>>_&7}function Ce(m,T){var _=7&T,w=T>>>3;return(m[w]|(_<=3?0:m[w+1]<<8))>>>_&31}function oe(m,T){var _=7&T,w=T>>>3;return(m[w]|(_<=1?0:m[w+1]<<8))>>>_&127}function qe(m,T,_){var w=7&T,S=T>>>3,B=m[S]>>>w;return _<8-w||(B|=m[S+1]<<8-w,_<16-w)||(B|=m[S+2]<<16-w,_<24-w)||(B|=m[S+3]<<24-w),B&(1<<_)-1}function Kr(m,T,_){var w=7&T,S=T>>>3;return w<=5?m[S]|=(7&_)<<w:(m[S]|=_<<w&255,m[S+1]=(7&_)>>8-w),T+3}function ft(m,T,_){return m[T>>>3]|=_=(1&_)<<(7&T),T+1}function vt(m,T,_){var S=T>>>3;return m[S]|=255&(_<<=7&T),m[S+1]=_>>>=8,T+8}function qa(m,T,_){var S=T>>>3;return m[S]|=255&(_<<=7&T),m[S+1]=255&(_>>>=8),m[S+2]=_>>>8,T+16}function It(m,T){var _=m.length,w=2*_>T?2*_:T+5,S=0;if(_>=T)return m;if(Se){var y=oi(w);if(m.copy)m.copy(y);else for(;S<m.length;++S)y[S]=m[S];return y}if(Q){var B=new Uint8Array(w);if(B.set)B.set(m);else for(;S<_;++S)B[S]=m[S];return B}return m.length=w,m}function Lr(m){for(var T=new Array(m),_=0;_<m;++_)T[_]=0;return T}function pt(m,T,_){var w=1,S=0,y=0,B=0,z=0,W=m.length,M=Q?new Uint16Array(32):Lr(32);for(y=0;y<32;++y)M[y]=0;for(y=W;y<_;++y)m[y]=0;W=m.length;var H=Q?new Uint16Array(W):Lr(W);for(y=0;y<W;++y)M[S=m[y]]++,w<S&&(w=S),H[y]=0;for(M[0]=0,y=1;y<=w;++y)M[y+16]=z=z+M[y-1]<<1;for(y=0;y<W;++y)0!=(z=m[y])&&(H[y]=M[z+16]++);var Z=0;for(y=0;y<W;++y)if(0!=(Z=m[y]))for(z=A(H[y],w)>>w-Z,B=(1<<w+4-Z)-1;B>=0;--B)T[z|B<<Z]=15&Z|y<<4;return w}var Rt=Q?new Uint16Array(512):Lr(512),Qa=Q?new Uint16Array(32):Lr(32);if(!Q){for(var Ar=0;Ar<512;++Ar)Rt[Ar]=0;for(Ar=0;Ar<32;++Ar)Qa[Ar]=0}!function(){for(var m=[],T=0;T<32;T++)m.push(5);pt(m,Qa,32);var _=[];for(T=0;T<=143;T++)_.push(8);for(;T<=255;T++)_.push(9);for(;T<=279;T++)_.push(7);for(;T<=287;T++)_.push(8);pt(_,Rt,288)}();var ct=function(){for(var T=Q?new Uint8Array(32768):[],_=0,w=0;_<se.length-1;++_)for(;w<se[_+1];++w)T[w]=_;for(;w<32768;++w)T[w]=29;var S=Q?new Uint8Array(259):[];for(_=0,w=0;_<K.length-1;++_)for(;w<K[_+1];++w)S[w]=_;return function(W,M){return W.length<8?function y(z,W){for(var M=0;M<z.length;){var H=Math.min(65535,z.length-M);for(W.write_shift(1,+(M+H==z.length)),W.write_shift(2,H),W.write_shift(2,65535&~H);H-- >0;)W[W.l++]=z[M++]}return W.l}(W,M):function B(z,W){for(var M=0,H=0,Z=Q?new Uint16Array(32768):[];H<z.length;){var ne=Math.min(65535,z.length-H);if(ne<10){for(7&(M=Kr(W,M,+(H+ne==z.length)))&&(M+=8-(7&M)),W.l=M/8|0,W.write_shift(2,ne),W.write_shift(2,65535&~ne);ne-- >0;)W[W.l++]=z[H++];M=8*W.l}else{M=Kr(W,M,+(H+ne==z.length)+2);for(var he=0;ne-- >0;){var ie=z[H],fe=-1,_e=0;if((fe=Z[he=32767&(he<<5^ie)])&&((fe|=-32768&H)>H&&(fe-=32768),fe<H))for(;z[fe+_e]==z[H+_e]&&_e<250;)++_e;if(_e>2){(ie=S[_e])<=22?M=vt(W,M,Y[ie+1]>>1)-1:(vt(W,M,3),vt(W,M+=5,Y[ie-23]>>5),M+=3);var Xe=ie<8?0:ie-4>>2;Xe>0&&(qa(W,M,_e-K[ie]),M+=Xe),M=vt(W,M,Y[ie=T[H-fe]]>>3),M-=3;var Dr=ie<4?0:ie-2>>1;Dr>0&&(qa(W,M,H-fe-se[ie]),M+=Dr);for(var nr=0;nr<_e;++nr)Z[he]=32767&H,he=32767&(he<<5^z[H]),++H;ne-=_e-1}else ie<=143?ie+=48:M=ft(W,M,1),M=vt(W,M,Y[ie]),Z[he]=32767&H,++H}M=vt(W,M,0)-1}}return W.l=(M+7)/8|0,W.l}(W,M)}}();function ye(m){var T=G(50+Math.floor(1.1*m.length)),_=ct(m,T);return T.slice(0,_)}var Qe=Q?new Uint16Array(32768):Lr(32768),jr=Q?new Uint16Array(32768):Lr(32768),sr=Q?new Uint16Array(128):Lr(128),Zt=1,Rc=1;function Ug(m,T){var _=Ce(m,T)+257,w=Ce(m,T+=5)+1,S=function Be(m,T){var _=7&T,w=T>>>3;return(m[w]|(_<=4?0:m[w+1]<<8))>>>_&15}(m,T+=5)+4;T+=4;for(var y=0,B=Q?new Uint8Array(19):Lr(19),z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],W=1,M=Q?new Uint8Array(8):Lr(8),H=Q?new Uint8Array(8):Lr(8),Z=B.length,ne=0;ne<S;++ne)B[D[ne]]=y=Ae(m,T),W<y&&(W=y),M[y]++,T+=3;var he=0;for(M[0]=0,ne=1;ne<=W;++ne)H[ne]=he=he+M[ne-1]<<1;for(ne=0;ne<Z;++ne)0!=(he=B[ne])&&(z[ne]=H[he]++);var ie=0;for(ne=0;ne<Z;++ne)if(0!=(ie=B[ne])){he=Y[z[ne]]>>8-ie;for(var fe=(1<<7-ie)-1;fe>=0;--fe)sr[he|fe<<ie]=7&ie|ne<<3}var _e=[];for(W=1;_e.length<_+w;)switch(he=sr[oe(m,T)],T+=7&he,he>>>=3){case 16:for(y=3+Le(m,T),T+=2,he=_e[_e.length-1];y-- >0;)_e.push(he);break;case 17:for(y=3+Ae(m,T),T+=3;y-- >0;)_e.push(0);break;case 18:for(y=11+oe(m,T),T+=7;y-- >0;)_e.push(0);break;default:_e.push(he),W<he&&(W=he)}var Xe=_e.slice(0,_),Dr=_e.slice(_);for(ne=_;ne<286;++ne)Xe[ne]=0;for(ne=w;ne<30;++ne)Dr[ne]=0;return Zt=pt(Xe,Qe,286),Rc=pt(Dr,jr,30),T}function Nc(m,T){var w=function Wg(m,T){if(3==m[0]&&!(3&