>8-h;for(var f=(1<<7-h)-1;f>=0;--f)X[p|f<>>=3){case 16:for(o=3+N(e,t),t+=2,p=g[g.length-1];o-- >0;)g.push(p);break;case 17:for(o=3+P(e,t),t+=3;o-- >0;)g.push(0);break;case 18:for(o=11+L(e,t),t+=7;o-- >0;)g.push(0);break;default:g.push(p),l>>0,i=0,l=0;0==(1&a);)if(a=P(e,n),n+=3,a>>>1!=0)for(a>>1==1?(i=9,l=5):(n=ee(e,n),i=J,l=Q);;){!t&&r>>1==1?G[c]:Y[c];if(n+=15&m,0===((m>>>=4)>>>8&255))s[o++]=m;else{if(256==m)break;var d=(m-=257)<8?0:m-4>>2;d>5&&(d=0);var u=o+S[m];d>0&&(u+=R(e,n,d),n+=d),c=R(e,n,l),n+=15&(m=a>>>1==1?V[c]:Z[c]);var p=(m>>>=4)<4?0:m-2>>1,h=C[m];for(p>0&&(h+=R(e,n,p),n+=p),!t&&r>>3]|e[1+(n>>>3)]<<8;if(n+=32,f>0)for(!t&&r0;)s[o++]=e[n>>>3],n+=8}return t?[s,n+7>>>3]:[s.slice(0,o),n+7>>>3]}(e.slice(e.l||0),t);return e.l+=n[1],n[0]}function ne(e,t){if(!e)throw new Error(t);"undefined"!==typeof console&&console.error(t)}function ae(e,t){var n=e;zu(n,0);var a={FileIndex:[],FullPaths:[]};u(a,{root:t.root});for(var s=n.length-4;(80!=n[s]||75!=n[s+1]||5!=n[s+2]||6!=n[s+3])&&s>=0;)--s;n.l=s+4,n.l+=4;var r=n.read_shift(2);n.l+=6;var i=n.read_shift(4);for(n.l=i,s=0;s>>=5);n>>>=4,a.setMilliseconds(0),a.setFullYear(n+1980),a.setMonth(o-1),a.setDate(s);var r=31&t,i=63&(t>>>=5);return t>>>=6,a.setHours(t),a.setMinutes(i),a.setSeconds(r<<1),a}(e);if(8257&r)throw new Error("Unsupported ZIP encryption");e.read_shift(4);for(var c=e.read_shift(4),m=e.read_shift(4),d=e.read_shift(2),u=e.read_shift(2),p="",h=0;h0?n.setTime(n.getTime()+60*n.getTimezoneOffset()*1e3):t<0&&n.setTime(n.getTime()-60*n.getTimezoneOffset()*1e3),n;if(e instanceof Date)return e;if(1917==md.getFullYear()&&!isNaN(n.getFullYear())){var a=n.getFullYear();return e.indexOf(""+a)>-1||n.setFullYear(n.getFullYear()+100),n}var s=e.match(/\d+/g)||["2017","2","19","0","0","0"],o=new Date(+s[0],+s[1]-1,+s[2],+s[3]||0,+s[4]||0,+s[5]||0);return e.indexOf("Z")>-1&&(o=new Date(o.getTime()-60*o.getTimezoneOffset()*1e3)),o}function pd(e,t){if(Kc&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return Rd(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return Rd(Wc(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!==typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return Rd(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return Rd(new TextDecoder("utf-16be").decode(e.slice(2)))}var n={"\u20ac":"\x80","\u201a":"\x82","\u0192":"\x83","\u201e":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87","\u02c6":"\x88","\u2030":"\x89","\u0160":"\x8a","\u2039":"\x8b","\u0152":"\x8c","\u017d":"\x8e","\u2018":"\x91","\u2019":"\x92","\u201c":"\x93","\u201d":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02dc":"\x98","\u2122":"\x99","\u0161":"\x9a","\u203a":"\x9b","\u0153":"\x9c","\u017e":"\x9e","\u0178":"\x9f"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[\u20ac\u201a\u0192\u201e\u2026\u2020\u2021\u02c6\u2030\u0160\u2039\u0152\u017d\u2018\u2019\u201c\u201d\u2022\u2013\u2014\u02dc\u2122\u0161\u203a\u0153\u017e\u0178]/g,(function(e){return n[e]||e}))}catch(o){}for(var a=[],s=0;s!=e.length;++s)a.push(String.fromCharCode(e[s]));return a.join("")}function hd(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 n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=hd(e[n]));return t}function fd(e,t){for(var n="";n.length3&&-1==yd.indexOf(r))return n}else if(r.match(/[a-z]/))return n;return a<0||a>8099?n:(s>0||o>1)&&101!=a?t:e.match(/[^-0-9:,\/\\]/)?n:t}function bd(e,t,n){if(e.FullPaths){var a;if("string"==typeof n)return a=Kc?$c(n):function(e){for(var t=[],n=0,a=e.length+250,s=qc(e.length+255),o=0;o>6&31,s[n++]=128|63&r;else if(r>=55296&&r<57344){r=64+(1023&r);var i=1023&e.charCodeAt(++o);s[n++]=240|r>>8&7,s[n++]=128|r>>2&63,s[n++]=128|i>>6&15|(3&r)<<4,s[n++]=128|63&i}else s[n++]=224|r>>12&15,s[n++]=128|r>>6&63,s[n++]=128|63&r;n>a&&(t.push(s.slice(0,n)),n=0,s=qc(65535),a=65530)}return t.push(s.slice(0,n)),Qc(t)}(n),Ym.utils.cfb_add(e,t,a);Ym.utils.cfb_add(e,t,n)}else e.file(t,n)}function wd(){return Ym.utils.cfb_new()}var kd='\r\n';var _d={""":'"',"'":"'",">":">","<":"<","&":"&"},xd=td(_d),Td=/[&<>'"]/g,Sd=/[\u0000-\u0008\u000b-\u001f]/g;function Cd(e){return(e+"").replace(Td,(function(e){return xd[e]})).replace(Sd,(function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function Ed(e){return Cd(e).replace(/ /g,"_x0020_")}var Ad=/[\u0000-\u001f]/g;function Dd(e){return(e+"").replace(Td,(function(e){return xd[e]})).replace(/\n/g,"
").replace(Ad,(function(e){return""+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}function jd(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Od(e){for(var t="",n=0,a=0,s=0,o=0,r=0,i=0;n191&&a<224?(r=(31&a)<<6,r|=63&s,t+=String.fromCharCode(r)):(o=e.charCodeAt(n++),a<240?t+=String.fromCharCode((15&a)<<12|(63&s)<<6|63&o):(i=((7&a)<<18|(63&s)<<12|(63&o)<<6|63&(r=e.charCodeAt(n++)))-65536,t+=String.fromCharCode(55296+(i>>>10&1023)),t+=String.fromCharCode(56320+(1023&i)))));return t}function Nd(e){var t,n,a,s=qc(2*e.length),o=1,r=0,i=0;for(n=0;n>>10&1023),t=56320+(1023&t)),0!==i&&(s[r++]=255&i,s[r++]=i>>>8,i=0),s[r++]=t%256,s[r++]=t>>>8;return s.slice(0,r).toString("ucs2")}function Pd(e){return $c(e,"binary").toString("utf8")}var Id="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",Ld=Kc&&(Pd(Id)==Od(Id)&&Pd||Nd(Id)==Od(Id)&&Nd)||Od,Rd=Kc?function(e){return $c(e,"utf8").toString("binary")}:function(e){for(var t=[],n=0,a=0,s=0;n>6))),t.push(String.fromCharCode(128+(63&a)));break;case a>=55296&&a<57344:a-=55296,s=e.charCodeAt(n++)-56320+(a<<10),t.push(String.fromCharCode(240+(s>>18&7))),t.push(String.fromCharCode(144+(s>>12&63))),t.push(String.fromCharCode(128+(s>>6&63))),t.push(String.fromCharCode(128+(63&s)));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("")},Fd=function(){var e=[["nbsp"," "],["middot","\xb7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map((function(e){return[new RegExp("&"+e[0]+";","ig"),e[1]]}));return function(t){for(var n=t.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,"\n").replace(/<[^>]*>/g,""),a=0;a"+t+""+e+">"}function Bd(e){return Qm(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function Ud(e,t,n){return"<"+e+(null!=n?Bd(n):"")+(null!=t?(t.match(Md)?' xml:space="preserve"':"")+">"+t+""+e:"/")+">"}function zd(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(n){if(t)throw n}return""}var Hd="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",Gd="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",Vd="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",Kd="http://schemas.openxmlformats.org/package/2006/content-types",$d="http://schemas.openxmlformats.org/package/2006/relationships",qd="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",Yd="http://purl.org/dc/elements/1.1/",Zd="http://purl.org/dc/terms/",Xd="http://purl.org/dc/dcmitype/",Jd="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Qd="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",eu="http://www.w3.org/2001/XMLSchema-instance",tu="http://www.w3.org/2001/XMLSchema",nu=["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"],au="urn:schemas-microsoft-com:office:office",su="urn:schemas-microsoft-com:office:excel",ou="urn:schemas-microsoft-com:office:spreadsheet",ru="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",iu="http://macVmlSchemaUri",lu="urn:schemas-microsoft-com:vml",cu="http://www.w3.org/TR/REC-html40";var mu=function(e){for(var t=[],n=0;n0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map((function(e){return Buffer.isBuffer(e)?e:$c(e)}))):mu(e)}:mu,uu=function(e,t,n){for(var a=[],s=t;s0?yu(e,t+4,t+4+n-1):""},bu=vu,wu=function(e,t){var n=Lu(e,t);return n>0?yu(e,t+4,t+4+n-1):""},ku=wu,_u=function(e,t){var n=2*Lu(e,t);return n>0?yu(e,t+4,t+4+n-1):""},xu=_u,Tu=function(e,t){var n=Lu(e,t);return n>0?pu(e,t+4,t+4+n):""},Su=Tu,Cu=function(e,t){var n=Lu(e,t);return n>0?yu(e,t+4,t+4+n):""},Eu=Cu,Au=function(e,t){return function(e,t){for(var n=1-2*(e[t+7]>>>7),a=((127&e[t+7])<<4)+(e[t+6]>>>4&15),s=15&e[t+6],o=5;o>=0;--o)s=256*s+e[t+o];return 2047==a?0==s?n*(1/0):NaN:(0==a?a=-1022:(a-=1023,s+=Math.pow(2,52)),n*Math.pow(2,a-52)*s)}(e,t)},Du=Au,ju=function(e){return Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array};function Ou(){pu=function(e,t,n){return Bc.utils.decode(1200,e.slice(t,n)).replace(em,"")},yu=function(e,t,n){return Bc.utils.decode(65001,e.slice(t,n))},bu=function(e,t){var n=Lu(e,t);return n>0?Bc.utils.decode(Pc,e.slice(t+4,t+4+n-1)):""},ku=function(e,t){var n=Lu(e,t);return n>0?Bc.utils.decode(Nc,e.slice(t+4,t+4+n-1)):""},xu=function(e,t){var n=2*Lu(e,t);return n>0?Bc.utils.decode(1200,e.slice(t+4,t+4+n-1)):""},Su=function(e,t){var n=Lu(e,t);return n>0?Bc.utils.decode(1200,e.slice(t+4,t+4+n)):""},Eu=function(e,t){var n=Lu(e,t);return n>0?Bc.utils.decode(65001,e.slice(t+4,t+4+n)):""}}Kc&&(bu=function(e,t){if(!Buffer.isBuffer(e))return vu(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},ku=function(e,t){if(!Buffer.isBuffer(e))return wu(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},xu=function(e,t){if(!Buffer.isBuffer(e))return _u(e,t);var n=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n-1)},Su=function(e,t){if(!Buffer.isBuffer(e))return Tu(e,t);var n=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n)},Eu=function(e,t){if(!Buffer.isBuffer(e))return Cu(e,t);var n=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+n)},Du=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):Au(e,t)},ju=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array}),"undefined"!==typeof Bc&&Ou();var Nu=function(e,t){return e[t]},Pu=function(e,t){return 256*e[t+1]+e[t]},Iu=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},Lu=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Ru=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Fu=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Mu(e,t){var n,a,s,o,r,i,l="",c=[];switch(t){case"dbcs":if(i=this.l,Kc&&Buffer.isBuffer(this))l=this.slice(this.l,this.l+2*e).toString("utf16le");else for(r=0;r0?Ru:Fu)(this,this.l),this.l+=4,n):(a=Lu(this,this.l),this.l+=4,a);case 8:case-8:if("f"===t)return a=8==e?Du(this,this.l):Du([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,a;e=8;case 16:l=fu(this,this.l,e)}}return this.l+=e,l}var Wu=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function Bu(e,t,n){var a=0,s=0;if("dbcs"===n){for(s=0;s!=t.length;++s)Wu(this,t.charCodeAt(s),this.l+2*s);a=2*t.length}else if("sbcs"===n){if("undefined"!==typeof Bc&&874==Pc)for(s=0;s!=t.length;++s){var o=Bc.utils.encode(Pc,t.charAt(s));this[this.l+s]=o[0]}else for(t=t.replace(/[^\x00-\x7F]/g,"_"),s=0;s!=t.length;++s)this[this.l+s]=255&t.charCodeAt(s);a=t.length}else{if("hex"===n){for(;s>8}for(;this.l>>=8,this[this.l+1]=255&t;break;case 3:a=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:a=4,function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24&255}(this,t,this.l);break;case 8:if(a=8,"f"===n){!function(e,t,n){var a=(t<0||1/t==-1/0?1:0)<<7,s=0,o=0,r=a?-t:t;isFinite(r)?0==r?s=o=0:(s=Math.floor(Math.log(r)/Math.LN2),o=r*Math.pow(2,52-s),s<=-1023&&(!isFinite(o)||o>4|a}(this,t,this.l);break}case 16:break;case-4:a=4,function(e,t,n){e[n]=255&t,e[n+1]=t>>8&255,e[n+2]=t>>16&255,e[n+3]=t>>24&255}(this,t,this.l)}}return this.l+=a,this}function Uu(e,t){var n=fu(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function zu(e,t){e.l=t,e.read_shift=Mu,e.chk=Uu,e.write_shift=Bu}function Hu(e,t){e.l+=t}function Gu(e){var t=qc(e);return zu(t,0),t}function Vu(){var e=[],t=Kc?256:2048,n=function(e){var t=Gu(e);return zu(t,0),t},a=n(t),s=function(){a&&(a.length>a.l&&((a=a.slice(0,a.l)).l=a.length),a.length>0&&e.push(a),a=null)},o=function(e){return a&&e=128?1:0)+1,a>=128&&++s,a>=16384&&++s,a>=2097152&&++s;var r=e.next(s);o<=127?r.write_shift(1,o):(r.write_shift(1,128+(127&o)),r.write_shift(1,o>>7));for(var i=0;4!=i;++i){if(!(a>=128)){r.write_shift(1,a);break}r.write_shift(1,128+(127&a)),a>>=7}a>0&&ju(n)&&e.push(n)}}function $u(e,t,n){var a=hd(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)),!n||n.biff<12){for(;a.c>=256;)a.c-=256;for(;a.r>=65536;)a.r-=65536}return a}function qu(e,t,n){var a=hd(e);return a.s=$u(a.s,t.s,n),a.e=$u(a.e,t.s,n),a}function Yu(e,t){if(e.cRel&&e.c<0)for(e=hd(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=hd(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var n=np(e);return e.cRel||null==e.cRel||(n=n.replace(/^([A-Z])/,"$$$1")),e.rRel||null==e.rRel||(n=function(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}(n)),n}function Zu(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?Yu(e.s,t.biff)+":"+Yu(e.e,t.biff):(e.s.rRel?"":"$")+Ju(e.s.r)+":"+(e.e.rRel?"":"$")+Ju(e.e.r):(e.s.cRel?"":"$")+ep(e.s.c)+":"+(e.e.cRel?"":"$")+ep(e.e.c)}function Xu(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function Ju(e){return""+(e+1)}function Qu(e){for(var t=e.replace(/^\$([A-Z])/,"$1"),n=0,a=0;a!==t.length;++a)n=26*n+t.charCodeAt(a)-64;return n-1}function ep(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 tp(e){for(var t=0,n=0,a=0;a=48&&s<=57?t=10*t+(s-48):s>=65&&s<=90&&(n=26*n+(s-64))}return{c:n-1,r:t-1}}function np(e){for(var t=e.c+1,n="";t;t=(t-1)/26|0)n=String.fromCharCode((t-1)%26+65)+n;return n+(e.r+1)}function ap(e){var t=e.indexOf(":");return-1==t?{s:tp(e),e:tp(e)}:{s:tp(e.slice(0,t)),e:tp(e.slice(t+1))}}function sp(e,t){return"undefined"===typeof t||"number"===typeof t?sp(e.s,e.e):("string"!==typeof e&&(e=np(e)),"string"!==typeof t&&(t=np(t)),e==t?e:e+":"+t)}function op(e){var t={s:{c:0,r:0},e:{c:0,r:0}},n=0,a=0,s=0,o=e.length;for(n=0;a26);++a)n=26*n+s;for(t.s.c=--n,n=0;a9);++a)n=10*n+s;if(t.s.r=--n,a===o||10!=s)return t.e.c=t.s.c,t.e.r=t.s.r,t;for(++a,n=0;a!=o&&!((s=e.charCodeAt(a)-64)<1||s>26);++a)n=26*n+s;for(t.e.c=--n,n=0;a!=o&&!((s=e.charCodeAt(a)-48)<0||s>9);++a)n=10*n+s;return t.e.r=--n,t}function rp(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=Hm(e.z,n?sd(t):t)}catch(a){}try{return e.w=Hm((e.XF||{}).numFmtId||(n?14:0),n?sd(t):t)}catch(a){return""+t}}function ip(e,t,n){return null==e||null==e.t||"z"==e.t?"":void 0!==e.w?e.w:("d"==e.t&&!e.z&&n&&n.dateNF&&(e.z=n.dateNF),"e"==e.t?zp[e.v]||e.v:rp(e,void 0==t?e.v:t))}function lp(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",a={};return a[n]=e,{SheetNames:[n],Sheets:a}}function cp(e,t,n){var a=n||{},s=e?Array.isArray(e):a.dense;var o=e||(s?[]:{}),r=0,i=0;if(o&&null!=a.origin){if("number"==typeof a.origin)r=a.origin;else{var l="string"==typeof a.origin?tp(a.origin):a.origin;r=l.r,i=l.c}o["!ref"]||(o["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(o["!ref"]){var m=op(o["!ref"]);c.s.c=m.s.c,c.s.r=m.s.r,c.e.c=Math.max(c.e.c,m.e.c),c.e.r=Math.max(c.e.r,m.e.r),-1==r&&(c.e.r=r=m.e.r+1)}for(var d=0;d!=t.length;++d)if(t[d]){if(!Array.isArray(t[d]))throw new Error("aoa_to_sheet expects an array of arrays");for(var u=0;u!=t[d].length;++u)if("undefined"!==typeof t[d][u]){var p={v:t[d][u]},h=r+d,f=i+u;if(c.s.r>h&&(c.s.r=h),c.s.c>f&&(c.s.c=f),c.e.r0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}function hp(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function fp(e,t){var n=e.l,a=e.read_shift(1),s=up(e),o=[],r={t:s,h:s};if(0!==(1&a)){for(var i=e.read_shift(4),l=0;l!=i;++l)o.push(hp(e));r.r=o}else r.r=[{ich:0,ifnt:0}];return e.l=n+t,r}var gp=fp;function yp(e,t){var n=!1;return null==t&&(n=!0,t=Gu(23+4*e.t.length)),t.write_shift(1,1),pp(e.t,t),t.write_shift(4,1),function(e,t){t||(t=Gu(4)),t.write_shift(2,e.ich||0),t.write_shift(2,e.ifnt||0)}({ich:0,ifnt:0},t),n?t.slice(0,t.l):t}function vp(e){var t=e.read_shift(4),n=e.read_shift(2);return n+=e.read_shift(1)<<16,e.l++,{c:t,iStyleRef:n}}function bp(e,t){return null==t&&(t=Gu(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function wp(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function kp(e,t){return null==t&&(t=Gu(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var _p=up,xp=pp;function Tp(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function Sp(e,t){var n=!1;return null==t&&(n=!0,t=Gu(127)),t.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&t.write_shift(0,e,"dbcs"),n?t.slice(0,t.l):t}var Cp=up,Ep=Tp,Ap=Sp;function Dp(e){var t=e.slice(e.l,e.l+4),n=1&t[0],a=2&t[0];e.l+=4;var s=0===a?Du([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):Ru(t,0)>>2;return n?s/100:s}function jp(e,t){null==t&&(t=Gu(4));var n=0,a=0,s=100*e;if(e==(0|e)&&e>=-(1<<29)&&e<1<<29?a=1:s==(0|s)&&s>=-(1<<29)&&s<1<<29&&(a=1,n=1),!a)throw new Error("unsupported RkNumber "+e);t.write_shift(-4,((n?s:e)<<2)+(n+2))}function Op(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 Np=Op,Pp=function(e,t){return t||(t=Gu(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 Ip(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Lp(e,t){return(t||Gu(8)).write_shift(8,e,"f")}function Rp(e,t){if(t||(t=Gu(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 n=e.tint||0;if(n>0?n*=32767:n<0&&(n*=32768),t.write_shift(2,n),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}var Fp=80,Mp={1:{n:"CodePage",t:2},2:{n:"Category",t:Fp},3:{n:"PresentationFormat",t:Fp},4:{n:"ByteCount",t:3},5:{n:"LineCount",t:3},6:{n:"ParagraphCount",t:3},7:{n:"SlideCount",t:3},8:{n:"NoteCount",t:3},9:{n:"HiddenCount",t:3},10:{n:"MultimediaClipCount",t:3},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:Fp},15:{n:"Company",t:Fp},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:3},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:3,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:Fp},27:{n:"ContentStatus",t:Fp},28:{n:"Language",t:Fp},29:{n:"Version",t:Fp},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Wp={1:{n:"CodePage",t:2},2:{n:"Title",t:Fp},3:{n:"Subject",t:Fp},4:{n:"Author",t:Fp},5:{n:"Keywords",t:Fp},6:{n:"Comments",t:Fp},7:{n:"Template",t:Fp},8:{n:"LastAuthor",t:Fp},9:{n:"RevNumber",t:Fp},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:3},15:{n:"WordCount",t:3},16:{n:"CharCount",t:3},17:{n:"Thumbnail",t:71},18:{n:"Application",t:Fp},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function Bp(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var Up=hd(Bp([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,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0])),zp={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Hp={"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"},Gp={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 Vp(e,t){var n,a=function(e){for(var t=[],n=Qm(e),a=0;a!==n.length;++a)null==t[e[n[a]]]&&(t[e[n[a]]]=[]),t[e[n[a]]].push(n[a]);return t}(Hp),s=[];s[s.length]=kd,s[s.length]=Ud("Types",null,{xmlns:Kd,"xmlns:xsd":tu,"xmlns:xsi":eu}),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 Ud("Default",null,{Extension:e[0],ContentType:e[1]})})));var o=function(a){e[a]&&e[a].length>0&&(n=e[a][0],s[s.length]=Ud("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:Gp[a][t.bookType]||Gp[a].xlsx}))},r=function(n){(e[n]||[]).forEach((function(e){s[s.length]=Ud("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:Gp[n][t.bookType]||Gp[n].xlsx})}))},i=function(t){(e[t]||[]).forEach((function(e){s[s.length]=Ud("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:a[t][0]})}))};return o("workbooks"),r("sheets"),r("charts"),i("themes"),["strs","styles"].forEach(o),["coreprops","extprops","custprops"].forEach(i),i("vba"),i("comments"),i("threadedcomments"),i("drawings"),r("metadata"),i("people"),s.length>2&&(s[s.length]="",s[1]=s[1].replace("/>",">")),s.join("")}var Kp={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",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function $p(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function qp(e){var t=[kd,Ud("Relationships",null,{xmlns:$d})];return Qm(e["!id"]).forEach((function(n){t[t.length]=Ud("Relationship",null,e["!id"][n])})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Yp(e,t,n,a,s,o){if(s||(s={}),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,s.Id="rId"+t,s.Type=a,s.Target=n,o?s.TargetMode=o:[Kp.HLINK,Kp.XPATH,Kp.XMISS].indexOf(s.Type)>-1&&(s.TargetMode="External"),e["!id"][s.Id])throw new Error("Cannot rewrite rId "+t);return e["!id"][s.Id]=s,e[("/"+s.Target).replace("//","/")]=s,t}function Zp(e,t,n){return[' \n',' \n'," \n"].join("")}function Xp(){return'SheetJS '+Oc.version+""}var Jp=[["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"]];function Qp(e,t,n,a,s){null==s[e]&&null!=t&&""!==t&&(s[e]=t,t=Cd(t),a[a.length]=n?Ud(e,t,n):Wd(e,t))}function eh(e,t){var n=t||{},a=[kd,Ud("cp:coreProperties",null,{"xmlns:cp":Hd,"xmlns:dc":Yd,"xmlns:dcterms":Zd,"xmlns:dcmitype":Xd,"xmlns:xsi":eu})],s={};if(!e&&!n.Props)return a.join("");e&&(null!=e.CreatedDate&&Qp("dcterms:created","string"===typeof e.CreatedDate?e.CreatedDate:zd(e.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},a,s),null!=e.ModifiedDate&&Qp("dcterms:modified","string"===typeof e.ModifiedDate?e.ModifiedDate:zd(e.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},a,s));for(var o=0;o!=Jp.length;++o){var r=Jp[o],i=n.Props&&null!=n.Props[r[1]]?n.Props[r[1]]:e?e[r[1]]:null;!0===i?i="1":!1===i?i="0":"number"==typeof i&&(i=String(i)),null!=i&&Qp(r[0],i,null,a,s)}return a.length>2&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}var th=[["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"]],nh=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function ah(e){var t=[],n=Ud;return e||(e={}),e.Application="SheetJS",t[t.length]=kd,t[t.length]=Ud("Properties",null,{xmlns:Vd,"xmlns:vt":Qd}),th.forEach((function(a){if(void 0!==e[a[1]]){var s;switch(a[2]){case"string":s=Cd(String(e[a[1]]));break;case"bool":s=e[a[1]]?"true":"false"}void 0!==s&&(t[t.length]=n(a[0],s))}})),t[t.length]=n("HeadingPairs",n("vt:vector",n("vt:variant","Worksheets")+n("vt:variant",n("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=n("TitlesOfParts",n("vt:vector",e.SheetNames.map((function(e){return""+Cd(e)+""})).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function sh(e){var t=[kd,Ud("Properties",null,{xmlns:Gd,"xmlns:vt":Qd})];if(!e)return t.join("");var n=1;return Qm(e).forEach((function(a){++n,t[t.length]=Ud("property",function(e,t){switch(typeof e){case"string":var n=Ud("vt:lpwstr",Cd(e));return t&&(n=n.replace(/"/g,"_x0022_")),n;case"number":return Ud((0|e)==e?"vt:i4":"vt:r8",Cd(String(e)));case"boolean":return Ud("vt:bool",e?"true":"false")}if(e instanceof Date)return Ud("vt:filetime",zd(e));throw new Error("Unable to serialize "+e)}(e[a],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:Cd(a)})})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var oh={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 rh(e,t){var n=Gu(4),a=Gu(4);switch(n.write_shift(4,80==e?31:e),e){case 3:a.write_shift(-4,t);break;case 5:(a=Gu(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,n=t%Math.pow(2,32),a=(t-n)/Math.pow(2,32);a*=1e7;var s=(n*=1e7)/Math.pow(2,32)|0;s>0&&(n%=Math.pow(2,32),a+=s);var o=Gu(8);return o.write_shift(4,n),o.write_shift(4,a),o}(t);break;case 31:case 80:for((a=Gu(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 Qc([n,a])}var ih=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function lh(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 ch(e,t,n){var a=Gu(8),s=[],o=[],r=8,i=0,l=Gu(8),c=Gu(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),o.push(l),s.push(c),r+=8+l.length,!t){(c=Gu(8)).write_shift(4,0),s.unshift(c);var m=[Gu(4)];for(m[0].write_shift(4,e.length),i=0;i-1||nh.indexOf(e[i][0])>-1)&&null!=e[i][1]){var u=e[i][1],p=0;if(t){var h=n[p=+t[e[i][0]]];if("version"==h.p&&"string"==typeof u){var f=u.split(".");u=(+f[0]<<16)+(+f[1]||0)}l=rh(h.t,u)}else{var g=lh(u);-1==g&&(g=31,u=String(u)),l=rh(g,u)}o.push(l),(c=Gu(8)).write_shift(4,t?p:2+i),s.push(c),r+=8+l.length}var y=8*(o.length+1);for(i=0;i=12?2:1),s="sbcs-cont",o=Nc;(n&&n.biff>=8&&(Nc=1200),n&&8!=n.biff)?12==n.biff&&(s="wstr"):e.read_shift(1)&&(s="dbcs-cont");n.biff>=2&&n.biff<=5&&(s="cpstr");var r=a?e.read_shift(a,s):"";return Nc=o,r}function yh(e){var t=e.t||"",n=Gu(3);n.write_shift(2,t.length),n.write_shift(1,1);var a=Gu(2*t.length);return a.write_shift(2*t.length,t,"utf16le"),Qc([n,a])}function vh(e,t,n){if(n){if(n.biff>=2&&n.biff<=5)return e.read_shift(t,"cpstr");if(n.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 bh(e,t,n){var a=e.read_shift(n&&2==n.biff?1:2);return 0===a?(e.l++,""):vh(e,a,n)}function wh(e,t,n){if(n.biff>5)return bh(e,0,n);var a=e.read_shift(1);return 0===a?(e.l++,""):e.read_shift(a,n.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function kh(e,t,n){return n||(n=Gu(3+2*e.length)),n.write_shift(2,e.length),n.write_shift(1,1),n.write_shift(31,e,"utf16le"),n}function _h(e,t){t||(t=Gu(6+2*e.length)),t.write_shift(4,1+e.length);for(var n=0;n-1?31:23;switch(a.charAt(0)){case"#":o=28;break;case".":o&=-3}t.write_shift(4,2),t.write_shift(4,o);var r=[8,6815827,6619237,4849780,83];for(n=0;n-1?a.slice(0,s):a;for(t.write_shift(4,2*(i.length+1)),n=0;n-1?a.slice(s+1):"",t)}else{for(r="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),n=0;n8?4:2;return[e.read_shift(a),e.read_shift(a,"i"),e.read_shift(a,"i")]}function Ch(e){var t=e.read_shift(2),n=e.read_shift(2);return{s:{c:e.read_shift(2),r:t},e:{c:e.read_shift(2),r:n}}}function Eh(e,t){return t||(t=Gu(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 Ah(e,t,n){var a=1536,s=16;switch(n.bookType){case"biff8":case"xla":break;case"biff5":a=1280,s=8;break;case"biff4":a=4,s=6;break;case"biff3":a=3,s=6;break;case"biff2":a=2,s=4;break;default:throw new Error("unsupported BIFF version")}var o=Gu(s);return o.write_shift(2,a),o.write_shift(2,t),s>4&&o.write_shift(2,29282),s>6&&o.write_shift(2,1997),s>8&&(o.write_shift(2,49161),o.write_shift(2,1),o.write_shift(2,1798),o.write_shift(2,0)),o}function Dh(e,t){var n=!t||t.biff>=8?2:1,a=Gu(8+n*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(n*e.name.length,e.name,t.biff<8?"sbcs":"utf16le");var s=a.slice(0,a.l);return s.l=a.l,s}function jh(e,t,n,a){var s=n&&5==n.biff;a||(a=Gu(s?3+t.length:5+2*t.length)),a.write_shift(2,e),a.write_shift(s?1:2,t.length),s||a.write_shift(1,1),a.write_shift((s?1:2)*t.length,t,s?"sbcs":"utf16le");var o=a.length>a.l?a.slice(0,a.l):a;return null==o.l&&(o.l=o.length),o}function Oh(e,t,n,a){var s=n&&5==n.biff;a||(a=Gu(s?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 o=0;return e.numFmtId>0&&s&&(o|=1024),a.write_shift(4,o),a.write_shift(4,0),s||a.write_shift(4,0),a.write_shift(2,0),a}function Nh(e,t,n){if(n.biff<8)return function(e,t,n){3==e[e.l+1]&&e[e.l]++;var a=gh(e,0,n);return 3==a.charCodeAt(0)?a.slice(1):a}(e,0,n);for(var a=[],s=e.l+t,o=e.read_shift(n.biff>8?4:2);0!==o--;)a.push(Sh(e,n.biff,n));if(e.l!=s)throw new Error("Bad ExternSheet: "+e.l+" != "+s);return a}function Ph(e){var t=Gu(24),n=tp(e[0]);t.write_shift(2,n.r),t.write_shift(2,n.r),t.write_shift(2,n.c),t.write_shift(2,n.c);for(var a="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),s=0;s<16;++s)t.write_shift(1,parseInt(a[s],16));return Qc([t,xh(e[1])])}function Ih(e){var t=e[1].Tooltip,n=Gu(10+2*(t.length+1));n.write_shift(2,2048);var a=tp(e[0]);n.write_shift(2,a.r),n.write_shift(2,a.r),n.write_shift(2,a.c),n.write_shift(2,a.c);for(var s=0;s=12?4:2,s=e.read_shift(a),o=e.read_shift(a),r=e.read_shift(a),i=e.read_shift(a),l=e.read_shift(2);2==a&&(e.l+=2);var c={s:s,e:o,w:r,ixfe:i,flags:l};return(n.biff>=5||!n.biff)&&(c.level=l>>8&7),c}var Rh=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=td({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 n(t,n){var a=n||{};a.dateNF||(a.dateNF="yyyymmdd");var s=mp(function(t,n){var a=[],s=qc(1);switch(n.type){case"base64":s=Zc(Vc(t));break;case"binary":s=Zc(t);break;case"buffer":case"array":s=t}zu(s,0);var o=s.read_shift(1),r=!!(136&o),i=!1,l=!1;switch(o){case 2:case 3:case 131:case 139:case 245:break;case 48:case 49:i=!0,r=!0;break;case 140:l=!0;break;default:throw new Error("DBF Unsupported Version: "+o.toString(16))}var c=0,m=521;2==o&&(c=s.read_shift(2)),s.l+=3,2!=o&&(c=s.read_shift(4)),c>1048576&&(c=1e6),2!=o&&(m=s.read_shift(2));var d=s.read_shift(2),u=n.codepage||1252;2!=o&&(s.l+=16,s.read_shift(1),0!==s[s.l]&&(u=e[s[s.l]]),s.l+=1,s.l+=2),l&&(s.l+=36);for(var p=[],h={},f=Math.min(s.length,2==o?521:m-10-(i?264:0)),g=l?32:11;s.l0;)if(42!==s[s.l])for(++s.l,a[++y]=[],v=0,v=0;v!=p.length;++v){var b=s.slice(s.l,s.l+p[v].len);s.l+=p[v].len,zu(b,0);var w=Bc.utils.decode(u,b);switch(p[v].type){case"C":w.trim().length&&(a[y][v]=w.replace(/\s+$/,""));break;case"D":8===w.length?a[y][v]=new Date(+w.slice(0,4),+w.slice(4,6)-1,+w.slice(6,8)):a[y][v]=w;break;case"F":a[y][v]=parseFloat(w.trim());break;case"+":case"I":a[y][v]=l?2147483648^b.read_shift(-4,"i"):b.read_shift(4,"i");break;case"L":switch(w.trim().toUpperCase()){case"Y":case"T":a[y][v]=!0;break;case"N":case"F":a[y][v]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+w+"|")}break;case"M":if(!r)throw new Error("DBF Unexpected MEMO for type "+o.toString(16));a[y][v]="##MEMO##"+(l?parseInt(w.trim(),10):b.read_shift(4));break;case"N":(w=w.replace(/\u0000/g,"").trim())&&"."!=w&&(a[y][v]=+w||0);break;case"@":a[y][v]=new Date(b.read_shift(-8,"f")-621356832e5);break;case"T":a[y][v]=new Date(864e5*(b.read_shift(4)-2440588)+b.read_shift(4));break;case"Y":a[y][v]=b.read_shift(4,"i")/1e4+b.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":a[y][v]=-b.read_shift(-8,"f");break;case"B":if(i&&8==p[v].len){a[y][v]=b.read_shift(8,"f");break}case"G":case"P":b.l+=p[v].len;break;case"0":if("_NullFlags"===p[v].name)break;default:throw new Error("DBF Unsupported data type "+p[v].type)}}else s.l+=d;if(2!=o&&s.l=0&&Fc(+s.codepage),"string"==s.type)throw new Error("Cannot write DBF to JS string");var o=Vu(),r=tv(e,{header:1,raw:!0,cellDates:!0}),i=r[0],l=r.slice(1),c=e["!cols"]||[],m=0,d=0,u=0,p=1;for(m=0;m250&&(w=250),"C"==(b=((c[m]||{}).DBF||{}).type)&&c[m].DBF.len>w&&(w=c[m].DBF.len),"B"==v&&"N"==b&&(v="N",y[m]=c[m].DBF.dec,w=c[m].DBF.len),g[m]="C"==v||"N"==b?w:a[v]||0,p+=g[m],f[m]=v}else f[m]="?"}var _=o.next(32);for(_.write_shift(4,318902576),_.write_shift(4,l.length),_.write_shift(2,296+32*u),_.write_shift(2,p),m=0;m<4;++m)_.write_shift(4,0);for(_.write_shift(4,0|(+t[Pc]||3)<<8),m=0,d=0;m":190,"?":191,"{":223},t=new RegExp("\x1bN("+Qm(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(t,n){var a=e[n];return"number"==typeof a?zc(a):a},a=function(e,t,n){var a=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==a?e:zc(a)};function s(e,s){var o,r=e.split(/[\n\r]+/),i=-1,l=-1,c=0,m=0,d=[],u=[],p=null,h={},f=[],g=[],y=[],v=0;for(+s.codepage>=0&&Fc(+s.codepage);c!==r.length;++c){v=0;var b,w=r[c].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,a).replace(t,n),k=w.replace(/;;/g,"\0").split(";").map((function(e){return e.replace(/\u0000/g,";")})),_=k[0];if(w.length>0)switch(_){case"ID":case"E":case"B":case"O":case"W":break;case"P":"P"==k[1].charAt(0)&&u.push(w.slice(3).replace(/;;/g,";"));break;case"C":var x=!1,T=!1,S=!1,C=!1,E=-1,A=-1;for(m=1;m-1&&d[E][A];if(!j||!j[1])throw new Error("SYLK shared formula cannot find base");d[i][l][1]=Of(j[1],{r:i-E,c:l-A})}break;case"F":var O=0;for(m=1;m0?(f[i].hpt=v,f[i].hpx=nf(v)):0===v&&(f[i].hidden=!0);break;default:if(s&&s.WTF)throw new Error("SYLK bad record "+w)}O<1&&(p=null);break;default:if(s&&s.WTF)throw new Error("SYLK bad record "+w)}}return f.length>0&&(h["!rows"]=f),g.length>0&&(h["!cols"]=g),s&&s.sheetRows&&(d=d.slice(0,s.sheetRows)),[d,h]}function o(e,t){var n=function(e,t){switch(t.type){case"base64":return s(Vc(e),t);case"binary":return s(e,t);case"buffer":return s(Kc&&Buffer.isBuffer(e)?e.toString("binary"):Jc(e),t);case"array":return s(pd(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),a=n[0],o=n[1],r=mp(a,t);return Qm(o).forEach((function(e){r[e]=o[e]})),r}function r(e,t,n,a){var s="C;Y"+(n+1)+";X"+(a+1)+";K";switch(e.t){case"n":s+=e.v||0,e.f&&!e.F&&(s+=";E"+jf(e.f,{r:n,c:a}));break;case"b":s+=e.v?"TRUE":"FALSE";break;case"e":s+=e.w||e.v;break;case"d":s+='"'+(e.w||e.v)+'"';break;case"s":s+='"'+e.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return s}return e["|"]=254,{to_workbook:function(e,t){return lp(o(e,t),t)},to_sheet:o,from_sheet:function(e,t){var n,a,s=["ID;PWXL;N;E"],o=[],i=op(e["!ref"]),l=Array.isArray(e),c="\r\n";s.push("P;PGeneral"),s.push("F;P0;DG0G8;M255"),e["!cols"]&&(a=s,e["!cols"].forEach((function(e,t){var n="F;W"+(t+1)+" "+(t+1)+" ";e.hidden?n+="0":("number"!=typeof e.width||e.wpx||(e.wpx=Xh(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=Jh(e.wpx)),"number"==typeof e.wch&&(n+=Math.round(e.wch)))," "!=n.charAt(n.length-1)&&a.push(n)}))),e["!rows"]&&function(e,t){t.forEach((function(t,n){var a="F;";t.hidden?a+="M0;":t.hpt?a+="M"+20*t.hpt+";":t.hpx&&(a+="M"+20*tf(t.hpx)+";"),a.length>2&&e.push(a+"R"+(n+1))}))}(s,e["!rows"]),s.push("B;Y"+(i.e.r-i.s.r+1)+";X"+(i.e.c-i.s.c+1)+";D"+[i.s.c,i.s.r,i.e.c,i.e.r].join(" "));for(var m=i.s.r;m<=i.e.r;++m)for(var d=i.s.c;d<=i.e.c;++d){var u=np({r:m,c:d});(n=l?(e[m]||[])[d]:e[u])&&(null!=n.v||n.f&&!n.F)&&o.push(r(n,0,m,d))}return s.join(c)+c+o.join(c)+c+"E"+c}}}(),Mh=function(){function e(e,t){for(var n=e.split("\n"),a=-1,s=-1,o=0,r=[];o!==n.length;++o)if("BOT"!==n[o].trim()){if(!(a<0)){for(var i=n[o].trim().split(","),l=i[0],c=i[1],m=n[++o]||"";1&(m.match(/["]/g)||[]).length&&o=0?i=c:s=c}})),l>=0&&-1==i&&s>=0&&(i=s,s=-1);var c=(""+(a>=0?a:(new Date).getFullYear())).slice(-4)+"-"+("00"+(s>=1?s:1)).slice(-2)+"-"+("00"+(o>=1?o:1)).slice(-2);7==c.length&&(c="0"+c),8==c.length&&(c="20"+c);var m=("00"+(r>=0?r:0)).slice(-2)+":"+("00"+(i>=0?i:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return-1==r&&-1==i&&-1==l?c:-1==a&&-1==s&&-1==o?m:c+"T"+m}(0,n.dateNF,t.match(g)||[]),s=1),n.cellDates?(a.t="d",a.v=ud(t,s)):(a.t="n",a.v=sd(ud(t,s))),!1!==n.cellText&&(a.w=Hm(a.z,a.v instanceof Date?sd(a.v):a.v)),n.cellNF||delete a.z}else a.t="s",a.v=t;else a.t="n",!1!==n.cellText&&(a.w=t),a.v=c;if("z"==a.t||(n.dense?(o[i]||(o[i]=[]),o[i][l]=a):o[np({c:l,r:i})]=a),m=d+1,f=e.charCodeAt(m),r.e.c0&&y(),o["!ref"]=sp(r),o}function o(t,n){return n&&n.PRN?n.FS||"sep="==t.slice(0,4)||t.indexOf("\t")>=0||t.indexOf(",")>=0||t.indexOf(";")>=0?s(t,n):mp(function(t,n){var a=n||{},s=[];if(!t||0===t.length)return s;for(var o=t.split(/[\r\n]/),r=o.length-1;r>=0&&0===o[r].length;)--r;for(var i=10,l=0,c=0;c<=r;++c)-1==(l=o[c].indexOf(" "))?l=o[c].length:l++,i=Math.max(i,l);for(c=0;c<=r;++c){s[c]=[];var m=0;for(e(o[c].slice(0,i).trim(),s,c,m,a),m=1;m<=(o[c].length-i)/10+1;++m)e(o[c].slice(i+10*(m-1),i+10*m).trim(),s,c,m,a)}return a.sheetRows&&(s=s.slice(0,a.sheetRows)),s}(t,n),n):s(t,n)}function r(e,t){var n="",a="string"==t.type?[0,0,0,0]:$y(e,t);switch(t.type){case"base64":n=Vc(e);break;case"binary":case"string":n=e;break;case"buffer":n=65001==t.codepage?e.toString("utf8"):t.codepage&&"undefined"!==typeof Bc?Bc.utils.decode(t.codepage,e):Kc&&Buffer.isBuffer(e)?e.toString("binary"):Jc(e);break;case"array":n=pd(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==a[0]&&187==a[1]&&191==a[2]?n=Ld(n.slice(3)):"string"!=t.type&&"buffer"!=t.type&&65001==t.codepage?n=Ld(n):"binary"==t.type&&"undefined"!==typeof Bc&&t.codepage&&(n=Bc.utils.decode(t.codepage,Bc.utils.encode(28591,n))),"socialcalc:version:"==n.slice(0,19)?Wh.to_sheet("string"==t.type?n:Ld(n),t):o(n,t)}return{to_workbook:function(e,t){return lp(r(e,t),t)},to_sheet:r,from_sheet:function(e){for(var t,n=[],a=op(e["!ref"]),s=Array.isArray(e),o=a.s.r;o<=a.e.r;++o){for(var r=[],i=a.s.c;i<=a.e.c;++i){var l=np({r:o,c:i});if((t=s?(e[o]||[])[i]:e[l])&&null!=t.v){for(var c=(t.w||(ip(t),t.w)||"").slice(0,10);c.length<10;)c+=" ";r.push(c+(0===i?" ":""))}else r.push(" ")}n.push(r.join(""))}return n.join("\n")}}}();var Uh=function(){function e(e,t,n){if(e){zu(e,e.l||0);for(var a=n.Enum||y;e.l=16&&5==t[14]&&108===t[15])throw new Error("Unsupported Works 3 for Mac file");if(2==t[2])a.Enum=y,e(t,(function(e,t,n){switch(n){case 0:a.vers=e,e>=4096&&(a.qpro=!0);break;case 6:d=e;break;case 204:e&&(r=e);break;case 222:r=e;break;case 15:case 51:a.qpro||(e[1].v=e[1].v.slice(1));case 13:case 14:case 16:14==n&&112==(112&e[2])&&(15&e[2])>1&&(15&e[2])<15&&(e[1].z=a.dateNF||dm[14],a.cellDates&&(e[1].t="d",e[1].v=ld(e[1].v))),a.qpro&&e[3]>i&&(s["!ref"]=sp(d),l[o]=s,c.push(o),s=a.dense?[]:{},d={s:{r:0,c:0},e:{r:0,c:0}},i=e[3],o=r||"Sheet"+(i+1),r="");var m=a.dense?(s[e[0].r]||[])[e[0].c]:s[np(e[0])];if(m){m.t=e[1].t,m.v=e[1].v,null!=e[1].z&&(m.z=e[1].z),null!=e[1].f&&(m.f=e[1].f);break}a.dense?(s[e[0].r]||(s[e[0].r]=[]),s[e[0].r][e[0].c]=e[1]):s[np(e[0])]=e[1]}}),a);else{if(26!=t[2]&&14!=t[2])throw new Error("Unrecognized LOTUS BOF "+t[2]);a.Enum=v,14==t[2]&&(a.qpro=!0,t.l=0),e(t,(function(e,t,n){switch(n){case 204:o=e;break;case 22:e[1].v=e[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(e[3]>i&&(s["!ref"]=sp(d),l[o]=s,c.push(o),s=a.dense?[]:{},d={s:{r:0,c:0},e:{r:0,c:0}},i=e[3],o="Sheet"+(i+1)),u>0&&e[0].r>=u)break;a.dense?(s[e[0].r]||(s[e[0].r]=[]),s[e[0].r][e[0].c]=e[1]):s[np(e[0])]=e[1],d.e.c=128?95:o)}return a.write_shift(1,0),a}function o(e,t,n){var a=Gu(7);return a.write_shift(1,255),a.write_shift(2,t),a.write_shift(2,e),a.write_shift(2,n,"i"),a}function r(e,t,n){var a=Gu(13);return a.write_shift(1,255),a.write_shift(2,t),a.write_shift(2,e),a.write_shift(8,n,"f"),a}function i(e,t,n){var a=32768&t;return t=(a?e:0)+((t&=-32769)>=8192?t-16384:t),(a?"":"$")+(n?ep(t):Ju(t))}var l={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},c=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function m(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,n,a){var s=Gu(6+a.length);s.write_shift(2,e),s.write_shift(1,n),s.write_shift(1,t),s.write_shift(1,39);for(var o=0;o=128?95:r)}return s.write_shift(1,0),s}function u(e,t){var n=m(e),a=e.read_shift(4),s=e.read_shift(4),o=e.read_shift(2);if(65535==o)return 0===a&&3221225472===s?(n[1].t="e",n[1].v=15):0===a&&3489660928===s?(n[1].t="e",n[1].v=42):n[1].v=0,n;var r=32768&o;return o=(32767&o)-16446,n[1].v=(1-2*r)*(s*Math.pow(2,o+32)+a*Math.pow(2,o)),n}function p(e,t,n,a){var s=Gu(14);if(s.write_shift(2,e),s.write_shift(1,n),s.write_shift(1,t),0==a)return s.write_shift(4,0),s.write_shift(4,0),s.write_shift(2,65535),s;var o,r=0,i=0,l=0;return a<0&&(r=1,a=-a),i=0|Math.log2(a),0==(2147483648&(l=(a/=Math.pow(2,i-31))>>>0))&&(++i,l=(a/=2)>>>0),a-=l,l|=2147483648,l>>>=0,o=(a*=Math.pow(2,32))>>>0,s.write_shift(4,o),s.write_shift(4,l),i+=16383+(r?32768:0),s.write_shift(2,i),s}function h(e,t){var n=m(e),a=e.read_shift(8,"f");return n[1].v=a,n}function f(e,t){return 0==e[e.l+t-1]?e.read_shift(t,"cstr"):""}function g(e,t){var n=Gu(5+e.length);n.write_shift(2,14e3),n.write_shift(2,t);for(var a=0;a127?95:s}return n[n.l++]=0,n}var y={0:{n:"BOF",f:ph},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(e,t,n){var a={s:{c:0,r:0},e:{c:0,r:0}};return 8==t&&n.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&&n.qpro&&(e.l+=2),a.e.c=e.read_shift(2),a.e.r=e.read_shift(2),12==t&&n.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,a){var s=n(e,0,a);return s[1].v=e.read_shift(2,"i"),s}},14:{n:"NUMBER",f:function(e,t,a){var s=n(e,0,a);return s[1].v=e.read_shift(8,"f"),s}},15:{n:"LABEL",f:a},16:{n:"FORMULA",f:function(e,t,a){var s=e.l+t,o=n(e,0,a);if(o[1].v=e.read_shift(8,"f"),a.qpro)e.l=s;else{var r=e.read_shift(2);!function(e,t){zu(e,0);var n=[],a=0,s="",o="",r="",m="";for(;e.ln.length)return void console.error("WK1 bad formula parse 0x"+d.toString(16)+":|"+n.join("|")+"|");var f=n.slice(-a);n.length-=a,n.push(l[d][0]+"("+f.join(",")+")")}}}1==n.length?t[1].f=""+n[0]:console.error("WK1 bad formula parse |"+n.join("|")+"|")}(e.slice(e.l,e.l+r),o),e.l+=r}return o}},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:a},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:f},222:{n:"SHEETNAMELP",f:function(e,t){var n=e[e.l++];n>t-1&&(n=t-1);for(var a="";a.length>1;if(1&n[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 n[1].v=a,n}},25:{n:"FORMULA19",f:function(e,t){var n=u(e);return e.l+=t-14,n}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(e,t){for(var n={},a=e.l+t;e.l>6,n}},38:{n:"??"},39:{n:"NUMBER27",f:h},40:{n:"FORMULA28",f:function(e,t){var n=h(e);return e.l+=t-10,n}},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:f},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,n){if(n.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:""}};return{sheet_to_wk1:function(e,t){var n=t||{};if(+n.codepage>=0&&Fc(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var a=Vu(),i=op(e["!ref"]),l=Array.isArray(e),c=[];oy(a,0,function(e){var t=Gu(2);return t.write_shift(2,e),t}(1030)),oy(a,6,function(e){var t=Gu(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}(i));for(var m=Math.min(i.e.r,8191),d=i.s.r;d<=m;++d)for(var u=Ju(d),p=i.s.c;p<=i.e.c;++p){d===i.s.r&&(c[p]=ep(p));var h=c[p]+u,f=l?(e[d]||[])[p]:e[h];if(f&&"z"!=f.t)if("n"==f.t)(0|f.v)==f.v&&f.v>=-32768&&f.v<=32767?oy(a,13,o(d,p,f.v)):oy(a,14,r(d,p,f.v));else oy(a,15,s(d,p,ip(f).slice(0,239)))}return oy(a,1),a.end()},book_to_wk3:function(e,t){var n=t||{};if(+n.codepage>=0&&Fc(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var a=Vu();oy(a,0,function(e){var t=Gu(26);t.write_shift(2,4096),t.write_shift(2,4),t.write_shift(4,0);for(var n=0,a=0,s=0,o=0;o8191&&(n=8191);return t.write_shift(2,n),t.write_shift(1,s),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 s=0,o=0;s";s.r?o+=s.r:(o+=""+Cd(s.t)+""),o+="",n[n.length]=o}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var Gh=function(e,t){var n=!1;return null==t&&(n=!0,t=Gu(15+4*e.t.length)),t.write_shift(1,0),pp(e.t,t),n?t.slice(0,t.l):t};function Vh(e){var t=Vu();Ku(t,159,function(e,t){return t||(t=Gu(8)),t.write_shift(4,e.Count),t.write_shift(4,e.Unique),t}(e));for(var n=0;n=0;--n)a=((0===(16384&a)?0:1)|a<<1&32767)^t[n];return 52811^a}var qh=function(){function e(e,n){switch(n.type){case"base64":return t(Vc(e),n);case"binary":return t(e,n);case"buffer":return t(Kc&&Buffer.isBuffer(e)?e.toString("binary"):Jc(e),n);case"array":return t(pd(e),n)}throw new Error("Unrecognized type "+n.type)}function t(e,t){var n=(t||{}).dense?[]:{},a=e.match(/\\trowd.*?\\row\b/g);if(!a.length)throw new Error("RTF missing table");var s={s:{c:0,r:0},e:{c:0,r:a.length-1}};return a.forEach((function(e,t){Array.isArray(n)&&(n[t]=[]);for(var a,o=/\\\w+\b/g,r=0,i=-1;a=o.exec(e);){if("\\cell"===a[0]){var l=e.slice(r,o.lastIndex-a[0].length);if(" "==l[0]&&(l=l.slice(1)),++i,l.length){var c={v:l,t:"s"};Array.isArray(n)?n[t][i]=c:n[np({r:t,c:i})]=c}}r=o.lastIndex}i>s.e.c&&(s.e.c=i)})),n["!ref"]=sp(s),n}return{to_workbook:function(t,n){return lp(e(t,n),n)},to_sheet:e,from_sheet:function(e){for(var t,n=["{\\rtf1\\ansi"],a=op(e["!ref"]),s=Array.isArray(e),o=a.s.r;o<=a.e.r;++o){n.push("\\trowd\\trautofit1");for(var r=a.s.c;r<=a.e.c;++r)n.push("\\cellx"+(r+1));for(n.push("\\pard\\intbl"),r=a.s.c;r<=a.e.c;++r){var i=np({r:o,c:r});(t=s?(e[o]||[])[r]:e[i])&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(ip(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}}}();function Yh(e){for(var t=0,n=1;3!=t;++t)n=256*n+(e[t]>255?255:e[t]<0?0:e[t]);return n.toString(16).toUpperCase().slice(1)}var Zh=6;function Xh(e){return Math.floor((e+Math.round(128/Zh)/256)*Zh)}function Jh(e){return Math.floor((e-5)/Zh*100+.5)/100}function Qh(e){return Math.round((e*Zh+5)/Zh*256)/256}function ef(e){e.width?(e.wpx=Xh(e.width),e.wch=Jh(e.wpx),e.MDW=Zh):e.wpx?(e.wch=Jh(e.wpx),e.width=Qh(e.wch),e.MDW=Zh):"number"==typeof e.wch&&(e.width=Qh(e.wch),e.wpx=Xh(e.width),e.MDW=Zh),e.customWidth&&delete e.customWidth}function tf(e){return 96*e/96}function nf(e){return 96*e/96}function af(e,t){var n,a=[kd,Ud("styleSheet",null,{xmlns:nu[0],"xmlns:vt":Qd})];return e.SSF&&null!=(n=function(e){var t=[""];return[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var a=n[0];a<=n[1];++a)null!=e[a]&&(t[t.length]=Ud("numFmt",null,{numFmtId:a,formatCode:Cd(e[a])}))})),1===t.length?"":(t[t.length]="",t[0]=Ud("numFmts",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(e.SSF))&&(a[a.length]=n),a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',(n=function(e){var t=[];return t[t.length]=Ud("cellXfs",null),e.forEach((function(e){t[t.length]=Ud("xf",null,e)})),t[t.length]="",2===t.length?"":(t[0]=Ud("cellXfs",null,{count:t.length-2}).replace("/>",">"),t.join(""))}(t.cellXfs))&&(a[a.length]=n),a[a.length]='',a[a.length]='',a[a.length]='',a.length>2&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}function sf(e,t,n){n||(n=Gu(6+4*t.length)),n.write_shift(2,e),pp(t,n);var a=n.length>n.l?n.slice(0,n.l):n;return null==n.l&&(n.l=n.length),a}function of(e,t){t||(t=Gu(153)),t.write_shift(2,20*e.sz),function(e,t){t||(t=Gu(2));var n=(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,n),t.write_shift(1,0)}(e,t),t.write_shift(2,e.bold?700:400);var n=0;"superscript"==e.vertAlign?n=1:"subscript"==e.vertAlign&&(n=2),t.write_shift(2,n),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),Rp(e.color,t);var a=0;return"major"==e.scheme&&(a=1),"minor"==e.scheme&&(a=2),t.write_shift(1,a),pp(e.name,t),t.length>t.l?t.slice(0,t.l):t}var rf,lf=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],cf=Hu;function mf(e,t){t||(t=Gu(84)),rf||(rf=td(lf));var n=rf[e.patternType];null==n&&(n=40),t.write_shift(4,n);var a=0;if(40!=n)for(Rp({auto:1},t),Rp({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 df(e,t,n){n||(n=Gu(16)),n.write_shift(2,t||0),n.write_shift(2,e.numFmtId||0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(1,0),n.write_shift(1,0);return n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(1,0),n}function uf(e,t){return t||(t=Gu(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var pf=Hu;function hf(e){var t;Ku(e,613,dp(1)),Ku(e,46,(t||(t=Gu(51)),t.write_shift(1,0),uf(0,t),uf(0,t),uf(0,t),uf(0,t),uf(0,t),t.length>t.l?t.slice(0,t.l):t)),Ku(e,614)}function ff(e){Ku(e,619,dp(1)),Ku(e,48,function(e,t){return t||(t=Gu(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),Sp(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}({xfId:0,builtinId:0,name:"Normal"})),Ku(e,620)}function gf(e){Ku(e,508,function(e,t,n){var a=Gu(2052);return a.write_shift(4,e),Sp(t,a),Sp(n,a),a.length>a.l?a.slice(0,a.l):a}(0,"TableStyleMedium9","PivotStyleMedium4")),Ku(e,509)}function yf(e,t){var n=Vu();return Ku(n,278),function(e,t){if(t){var n=0;[[5,8],[23,26],[41,44],[50,392]].forEach((function(e){for(var a=e[0];a<=e[1];++a)null!=t[a]&&++n})),0!=n&&(Ku(e,615,dp(n)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var a=n[0];a<=n[1];++a)null!=t[a]&&Ku(e,44,sf(a,t[a]))})),Ku(e,616))}}(n,e.SSF),function(e){Ku(e,611,dp(1)),Ku(e,43,of({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Ku(e,612)}(n),function(e){Ku(e,603,dp(2)),Ku(e,45,mf({patternType:"none"})),Ku(e,45,mf({patternType:"gray125"})),Ku(e,604)}(n),hf(n),function(e){Ku(e,626,dp(1)),Ku(e,47,df({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Ku(e,627)}(n),function(e,t){Ku(e,617,dp(t.length)),t.forEach((function(t){Ku(e,47,df(t,0))})),Ku(e,618)}(n,t.cellXfs),ff(n),function(e){Ku(e,505,dp(0)),Ku(e,506)}(n),gf(n),Ku(n,279),n.end()}function vf(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[kd];return n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]='',n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]='',n[n.length]="",n[n.length]="",n[n.length]="",n[n.length]="",n.join("")}function bf(){var e=Vu();return Ku(e,332),Ku(e,334,dp(1)),Ku(e,335,function(e){var t=Gu(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),pp(e.name,t),t.slice(0,t.l)}({name:"XLDAPR",version:12e4,flags:3496657072})),Ku(e,336),Ku(e,339,function(e,t){var n=Gu(8+2*t.length);return n.write_shift(4,e),pp(t,n),n.slice(0,n.l)}(1,"XLDAPR")),Ku(e,52),Ku(e,35,dp(514)),Ku(e,4096,dp(0)),Ku(e,4097,hh(1)),Ku(e,36),Ku(e,53),Ku(e,340),Ku(e,337,function(e,t){var n=Gu(8);return n.write_shift(4,e),n.write_shift(4,t?1:0),n}(1,!0)),Ku(e,51,function(e){var t=Gu(4+8*e.length);t.write_shift(4,e.length);for(var n=0;n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n'),e.join("")}var kf=1024;function _f(e,t){for(var n=[21600,21600],a=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),s=[Ud("xml",null,{"xmlns:v":lu,"xmlns:o":au,"xmlns:x":su,"xmlns:mv":iu}).replace(/\/>/,">"),Ud("o:shapelayout",Ud("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Ud("v:shapetype",[Ud("v:stroke",null,{joinstyle:"miter"}),Ud("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:a})];kf<1e3*e;)kf+=1e3;return t.forEach((function(e){var t=tp(e[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var a="gradient"==n.type?Ud("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=Ud("v:fill",a,n);++kf,s=s.concat(["",o,Ud("v:shadow",null,{on:"t",obscured:"t"}),Ud("v:path",null,{"o:connecttype":"none"}),'','',"","",Wd("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),Wd("x:AutoFill","False"),Wd("x:Row",String(t.r)),Wd("x:Column",String(t.c)),e[1].hidden?"":"","",""])})),s.push(""),s.join("")}function xf(e){var t=[kd,Ud("comments",null,{xmlns:nu[0]})],n=[];return t.push(""),e.forEach((function(e){e[1].forEach((function(e){var a=Cd(e.a);-1==n.indexOf(a)&&(n.push(a),t.push(""+a+"")),e.T&&e.ID&&-1==n.indexOf("tc="+e.ID)&&(n.push("tc="+e.ID),t.push("tc="+e.ID+""))}))})),0==n.length&&(n.push("SheetJ5"),t.push("SheetJ5")),t.push(""),t.push(""),e.forEach((function(e){var a=0,s=[];if(e[1][0]&&e[1][0].T&&e[1][0].ID?a=n.indexOf("tc="+e[1][0].ID):e[1].forEach((function(e){e.a&&(a=n.indexOf(Cd(e.a))),s.push(e.t||"")})),t.push(''),s.length<=1)t.push(Wd("t",Cd(s[0]||"")));else{for(var o="Comment:\n "+s[0]+"\n",r=1;r")})),t.push(""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Tf(e,t,n){var a=[kd,Ud("ThreadedComments",null,{xmlns:qd}).replace(/[\/]>/,">")];return e.forEach((function(e){var s="";(e[1]||[]).forEach((function(o,r){if(o.T){o.a&&-1==t.indexOf(o.a)&&t.push(o.a);var i={ref:e[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+n.tcid++).slice(-12)+"}"};0==r?s=i.id:i.parentId=s,o.ID=i.id,o.a&&(i.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(o.a)).slice(-12)+"}"),a.push(Ud("threadedComment",Wd("text",o.t||""),i))}else delete o.ID}))})),a.push(""),a.join("")}var Sf=up;function Cf(e){var t=Vu(),n=[];return Ku(t,628),Ku(t,630),e.forEach((function(e){e[1].forEach((function(e){n.indexOf(e.a)>-1||(n.push(e.a.slice(0,54)),Ku(t,632,function(e){return pp(e.slice(0,54))}(e.a)))}))})),Ku(t,631),Ku(t,633),e.forEach((function(e){e[1].forEach((function(a){a.iauthor=n.indexOf(a.a);var s={s:tp(e[0]),e:tp(e[0])};Ku(t,635,function(e,t){return null==t&&(t=Gu(36)),t.write_shift(4,e[1].iauthor),Pp(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}([s,a])),a.t&&a.t.length>0&&Ku(t,637,yp(a)),Ku(t,636),delete a.iauthor}))})),Ku(t,634),Ku(t,629),t.end()}var Ef=["xlsb","xlsm","xlam","biff8","xla"];var Af=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 n(e,n,a,s){var o=!1,r=!1;0==a.length?r=!0:"["==a.charAt(0)&&(r=!0,a=a.slice(1,-1)),0==s.length?o=!0:"["==s.charAt(0)&&(o=!0,s=s.slice(1,-1));var i=a.length>0?0|parseInt(a,10):0,l=s.length>0?0|parseInt(s,10):0;return o?l+=t.c:--l,r?i+=t.r:--i,n+(o?"":"$")+ep(l)+(r?"":"$")+Ju(i)}return function(a,s){return t=s,a.replace(e,n)}}(),Df=/(^|[^._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,jf=function(){return function(e,t){return e.replace(Df,(function(e,n,a,s,o,r){var i=Qu(s)-(a?0:t.c),l=Xu(r)-(o?0:t.r);return n+"R"+(0==l?"":o?l+1:"["+l+"]")+"C"+(0==i?"":a?i+1:"["+i+"]")}))}}();function Of(e,t){return e.replace(Df,(function(e,n,a,s,o,r){return n+("$"==a?a+s:ep(Qu(s)+t.c))+("$"==o?o+r:Ju(Xu(r)+t.r))}))}function Nf(e){e.l+=1}function Pf(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function If(e,t,n){var a=2;if(n){if(n.biff>=2&&n.biff<=5)return Lf(e);12==n.biff&&(a=4)}var s=e.read_shift(a),o=e.read_shift(a),r=Pf(e,2),i=Pf(e,2);return{s:{r:s,c:r[0],cRel:r[1],rRel:r[2]},e:{r:o,c:i[0],cRel:i[1],rRel:i[2]}}}function Lf(e){var t=Pf(e,2),n=Pf(e,2),a=e.read_shift(1),s=e.read_shift(1);return{s:{r:t[0],c:a,cRel:t[1],rRel:t[2]},e:{r:n[0],c:s,cRel:n[1],rRel:n[2]}}}function Rf(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return function(e){var t=Pf(e,2),n=e.read_shift(1);return{r:t[0],c:n,cRel:t[1],rRel:t[2]}}(e);var a=e.read_shift(n&&12==n.biff?4:2),s=Pf(e,2);return{r:a,c:s[0],cRel:s[1],rRel:s[2]}}function Ff(e){var t=e.read_shift(2),n=e.read_shift(2);return{r:t,c:255&n,fQuoted:!!(16384&n),cRel:n>>15,rRel:n>>15}}function Mf(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function Wf(e){return[e.read_shift(1),e.read_shift(1)]}function Bf(e,t){var n=[e.read_shift(1)];if(12==t)switch(n[0]){case 2:n[0]=4;break;case 4:n[0]=16;break;case 0:n[0]=1;break;case 1:n[0]=2}switch(n[0]){case 4:n[1]=dh(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=zp[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=Ip(e);break;case 2:n[1]=wh(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function Uf(e,t,n){for(var a=e.read_shift(12==n.biff?4:2),s=[],o=0;o!=a;++o)s.push((12==n.biff?Np:Ch)(e,8));return s}function zf(e,t,n){var a=0,s=0;12==n.biff?(a=e.read_shift(4),s=e.read_shift(4)):(s=1+e.read_shift(1),a=1+e.read_shift(2)),n.biff>=2&&n.biff<8&&(--a,0==--s&&(s=256));for(var o=0,r=[];o!=a&&(r[o]=[]);++o)for(var i=0;i!=s;++i)r[o][i]=Bf(e,n.biff);return r}function Hf(e,t,n){return e.l+=2,[Ff(e)]}function Gf(e){return e.l+=6,[]}function Vf(e){return e.l+=2,[ph(e),1&e.read_shift(2)]}var Kf=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];var $f={1:{n:"PtgExp",f:function(e,t,n){return e.l++,n&&12==n.biff?[e.read_shift(4,"i"),0]:[e.read_shift(2),e.read_shift(n&&2==n.biff?1:2)]}},2:{n:"PtgTbl",f:Hu},3:{n:"PtgAdd",f:Nf},4:{n:"PtgSub",f:Nf},5:{n:"PtgMul",f:Nf},6:{n:"PtgDiv",f:Nf},7:{n:"PtgPower",f:Nf},8:{n:"PtgConcat",f:Nf},9:{n:"PtgLt",f:Nf},10:{n:"PtgLe",f:Nf},11:{n:"PtgEq",f:Nf},12:{n:"PtgGe",f:Nf},13:{n:"PtgGt",f:Nf},14:{n:"PtgNe",f:Nf},15:{n:"PtgIsect",f:Nf},16:{n:"PtgUnion",f:Nf},17:{n:"PtgRange",f:Nf},18:{n:"PtgUplus",f:Nf},19:{n:"PtgUminus",f:Nf},20:{n:"PtgPercent",f:Nf},21:{n:"PtgParen",f:Nf},22:{n:"PtgMissArg",f:Nf},23:{n:"PtgStr",f:function(e,t,n){return e.l++,gh(e,0,n)}},26:{n:"PtgSheet",f:function(e,t,n){return e.l+=5,e.l+=2,e.l+=2==n.biff?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(e,t,n){return e.l+=2==n.biff?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(e){return e.l++,zp[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++,Ip(e)}},32:{n:"PtgArray",f:function(e,t,n){var a=(96&e[e.l++])>>5;return e.l+=2==n.biff?6:12==n.biff?14:7,[a]}},33:{n:"PtgFunc",f:function(e,t,n){var a=(96&e[e.l])>>5;e.l+=1;var s=e.read_shift(n&&n.biff<=3?1:2);return[ug[s],dg[s],a]}},34:{n:"PtgFuncVar",f:function(e,t,n){var a=e[e.l++],s=e.read_shift(1),o=n&&n.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[s,(0===o[0]?dg:mg)[o[1]]]}},35:{n:"PtgName",f:function(e,t,n){var a=e.read_shift(1)>>>5&3,s=!n||n.biff>=8?4:2,o=e.read_shift(s);switch(n.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12}return[a,0,o]}},36:{n:"PtgRef",f:function(e,t,n){var a=(96&e[e.l])>>5;return e.l+=1,[a,Rf(e,0,n)]}},37:{n:"PtgArea",f:function(e,t,n){return[(96&e[e.l++])>>5,If(e,n.biff>=2&&n.biff,n)]}},38:{n:"PtgMemArea",f:function(e,t,n){var a=e.read_shift(1)>>>5&3;return e.l+=n&&2==n.biff?3:4,[a,e.read_shift(n&&2==n.biff?1:2)]}},39:{n:"PtgMemErr",f:Hu},40:{n:"PtgMemNoMem",f:Hu},41:{n:"PtgMemFunc",f:function(e,t,n){return[e.read_shift(1)>>>5&3,e.read_shift(n&&2==n.biff?1:2)]}},42:{n:"PtgRefErr",f:function(e,t,n){var a=e.read_shift(1)>>>5&3;return e.l+=4,n.biff<8&&e.l--,12==n.biff&&(e.l+=2),[a]}},43:{n:"PtgAreaErr",f:function(e,t,n){var a=(96&e[e.l++])>>5;return e.l+=n&&n.biff>8?12:n.biff<8?6:8,[a]}},44:{n:"PtgRefN",f:function(e,t,n){var a=(96&e[e.l])>>5;e.l+=1;var s=function(e,t,n){var a=n&&n.biff?n.biff:8;if(a>=2&&a<=5)return function(e){var t=e.read_shift(2),n=e.read_shift(1),a=(32768&t)>>15,s=(16384&t)>>14;return t&=16383,1==a&&t>=8192&&(t-=16384),1==s&&n>=128&&(n-=256),{r:t,c:n,cRel:s,rRel:a}}(e);var s=e.read_shift(a>=12?4:2),o=e.read_shift(2),r=(16384&o)>>14,i=(32768&o)>>15;if(o&=16383,1==i)for(;s>524287;)s-=1048576;if(1==r)for(;o>8191;)o-=16384;return{r:s,c:o,cRel:r,rRel:i}}(e,0,n);return[a,s]}},45:{n:"PtgAreaN",f:function(e,t,n){var a=(96&e[e.l++])>>5,s=function(e,t,n){if(n.biff<8)return Lf(e);var a=e.read_shift(12==n.biff?4:2),s=e.read_shift(12==n.biff?4:2),o=Pf(e,2),r=Pf(e,2);return{s:{r:a,c:o[0],cRel:o[1],rRel:o[2]},e:{r:s,c:r[0],cRel:r[1],rRel:r[2]}}}(e,0,n);return[a,s]}},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,n){return 5==n.biff?function(e){var t=e.read_shift(1)>>>5&3,n=e.read_shift(2,"i");e.l+=8;var a=e.read_shift(2);return e.l+=12,[t,n,a]}(e):[e.read_shift(1)>>>5&3,e.read_shift(2),e.read_shift(4)]}},58:{n:"PtgRef3d",f:function(e,t,n){var a=(96&e[e.l])>>5;e.l+=1;var s=e.read_shift(2);return n&&5==n.biff&&(e.l+=12),[a,s,Rf(e,0,n)]}},59:{n:"PtgArea3d",f:function(e,t,n){var a=(96&e[e.l++])>>5,s=e.read_shift(2,"i");if(n)switch(n.biff){case 5:e.l+=12,6;break;case 12:12}return[a,s,If(e,0,n)]}},60:{n:"PtgRefErr3d",f:function(e,t,n){var a=(96&e[e.l++])>>5,s=e.read_shift(2),o=4;if(n)switch(n.biff){case 5:o=15;break;case 12:o=6}return e.l+=o,[a,s]}},61:{n:"PtgAreaErr3d",f:function(e,t,n){var a=(96&e[e.l++])>>5,s=e.read_shift(2),o=8;if(n)switch(n.biff){case 5:e.l+=12,o=6;break;case 12:o=12}return e.l+=o,[a,s]}},255:{}},qf={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},Yf={1:{n:"PtgElfLel",f:Vf},2:{n:"PtgElfRw",f:Hf},3:{n:"PtgElfCol",f:Hf},6:{n:"PtgElfRwV",f:Hf},7:{n:"PtgElfColV",f:Hf},10:{n:"PtgElfRadical",f:Hf},11:{n:"PtgElfRadicalS",f:Gf},13:{n:"PtgElfColS",f:Gf},15:{n:"PtgElfColSV",f:Gf},16:{n:"PtgElfRadicalLel",f:Vf},25:{n:"PtgList",f:function(e){e.l+=2;var t=e.read_shift(2),n=e.read_shift(2),a=e.read_shift(4),s=e.read_shift(2),o=e.read_shift(2);return{ixti:t,coltype:3&n,rt:Kf[n>>2&31],idx:a,c:s,C:o}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},Zf={0:{n:"PtgAttrNoop",f:function(e){return e.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(e,t,n){var a=255&e[e.l+1]?1:0;return e.l+=n&&2==n.biff?3:4,[a]}},2:{n:"PtgAttrIf",f:function(e,t,n){var a=255&e[e.l+1]?1:0;return e.l+=2,[a,e.read_shift(n&&2==n.biff?1:2)]}},4:{n:"PtgAttrChoose",f:function(e,t,n){e.l+=2;for(var a=e.read_shift(n&&2==n.biff?1:2),s=[],o=0;o<=a;++o)s.push(e.read_shift(n&&2==n.biff?1:2));return s}},8:{n:"PtgAttrGoto",f:function(e,t,n){var a=255&e[e.l+1]?1:0;return e.l+=2,[a,e.read_shift(n&&2==n.biff?1:2)]}},16:{n:"PtgAttrSum",f:function(e,t,n){e.l+=n&&2==n.biff?3:4}},32:{n:"PtgAttrBaxcel",f:Mf},33:{n:"PtgAttrBaxcel",f:Mf},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),Wf(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),Wf(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 Xf(e,t,n,a){if(a.biff<8)return Hu(e,t);for(var s=e.l+t,o=[],r=0;r!==n.length;++r)switch(n[r][0]){case"PtgArray":n[r][1]=zf(e,0,a),o.push(n[r][1]);break;case"PtgMemArea":n[r][2]=Uf(e,n[r][1],a),o.push(n[r][2]);break;case"PtgExp":a&&12==a.biff&&(n[r][1][1]=e.read_shift(4),o.push(n[r][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+n[r][0]}return 0!==(t=s-e.l)&&o.push(Hu(e,t)),o}function Jf(e,t,n){for(var a,s,o=e.l+t,r=[];o!=e.l;)t=o-e.l,s=e[e.l],a=$f[s]||$f[qf[s]],24!==s&&25!==s||(a=(24===s?Yf:Zf)[e[e.l+1]]),a&&a.f?r.push([a.n,a.f(e,t,n)]):Hu(e,t);return r}function Qf(e){for(var t=[],n=0;n=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function tg(e,t,n){if(!e)return"SH33TJSERR0";if(n.biff>8&&(!e.XTI||!e.XTI[t]))return e.SheetNames[t];if(!e.XTI)return"SH33TJSERR6";var a=e.XTI[t];if(n.biff<8)return t>1e4&&(t-=65536),t<0&&(t=-t),0==t?"":e.XTI[t-1];if(!a)return"SH33TJSERR1";var s="";if(n.biff>8)switch(e[a[0]][0]){case 357:return s=-1==a[1]?"#REF":e.SheetNames[a[1]],a[1]==a[2]?s:s+":"+e.SheetNames[a[2]];case 358:return null!=n.SID?e.SheetNames[n.SID]:"SH33TJSSAME"+e[a[0]][0];default:return"SH33TJSSRC"+e[a[0]][0]}switch(e[a[0]][0][0]){case 1025:return s=-1==a[1]?"#REF":e.SheetNames[a[1]]||"SH33TJSERR3",a[1]==a[2]?s:s+":"+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]?(s=-1==a[1]?"#REF":e[a[0]][0][3][a[1]]||"SH33TJSERR4",a[1]==a[2]?s:s+":"+e[a[0]][0][3][a[2]]):"SH33TJSERR2"}}function ng(e,t,n){var a=tg(e,t,n);return"#REF"==a?a:function(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+"'":e}(a,n)}function ag(e,t,n,a,s){var o,r,i,l,c=s&&s.biff||8,m={s:{c:0,r:0},e:{c:0,r:0}},d=[],u=0,p=0,h="";if(!e[0]||!e[0][0])return"";for(var f=-1,g="",y=0,v=e[0].length;y=0){switch(e[0][f][1][0]){case 0:g=fd(" ",e[0][f][1][1]);break;case 1:g=fd("\r",e[0][f][1][1]);break;default:if(g="",s.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][f][1][0])}r+=g,f=-1}d.push(r+eg[b[0]]+o);break;case"PtgIsect":o=d.pop(),r=d.pop(),d.push(r+" "+o);break;case"PtgUnion":o=d.pop(),r=d.pop(),d.push(r+","+o);break;case"PtgRange":o=d.pop(),r=d.pop(),d.push(r+":"+o);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":i=$u(b[1][1],m,s),d.push(Yu(i,c));break;case"PtgRefN":i=n?$u(b[1][1],n,s):b[1][1],d.push(Yu(i,c));break;case"PtgRef3d":u=b[1][1],i=$u(b[1][2],m,s);h=ng(a,u,s);d.push(h+"!"+Yu(i,c));break;case"PtgFunc":case"PtgFuncVar":var w=b[1][0],k=b[1][1];w||(w=0);var _=0==(w&=127)?[]:d.slice(-w);d.length-=w,"User"===k&&(k=_.shift()),d.push(k+"("+_.join(",")+")");break;case"PtgBool":d.push(b[1]?"TRUE":"FALSE");break;case"PtgInt":case"PtgErr":d.push(b[1]);break;case"PtgNum":d.push(String(b[1]));break;case"PtgStr":d.push('"'+b[1].replace(/"/g,'""')+'"');break;case"PtgAreaN":l=qu(b[1][1],n?{s:n}:m,s),d.push(Zu(l,s));break;case"PtgArea":l=qu(b[1][1],m,s),d.push(Zu(l,s));break;case"PtgArea3d":u=b[1][1],l=b[1][2],h=ng(a,u,s),d.push(h+"!"+Zu(l,s));break;case"PtgAttrSum":d.push("SUM("+d.pop()+")");break;case"PtgName":p=b[1][2];var x=(a.names||[])[p-1]||(a[0]||[])[p],T=x?x.Name:"SH33TJSNAME"+String(p);T&&"_xlfn."==T.slice(0,6)&&!s.xlfn&&(T=T.slice(6)),d.push(T);break;case"PtgNameX":var S,C=b[1][1];if(p=b[1][2],!(s.biff<=5)){var E="";if(14849==((a[C]||[])[0]||[])[0]||(1025==((a[C]||[])[0]||[])[0]?a[C][p]&&a[C][p].itab>0&&(E=a.SheetNames[a[C][p].itab-1]+"!"):E=a.SheetNames[p-1]+"!"),a[C]&&a[C][p])E+=a[C][p].Name;else if(a[0]&&a[0][p])E+=a[0][p].Name;else{var A=(tg(a,C,s)||"").split(";;");A[p-1]?E=A[p-1]:E+="SH33TJSERRX"}d.push(E);break}C<0&&(C=-C),a[C]&&(S=a[C][p]),S||(S={Name:"SH33TJSERRY"}),d.push(S.Name);break;case"PtgParen":var D="(",j=")";if(f>=0){switch(g="",e[0][f][1][0]){case 2:D=fd(" ",e[0][f][1][1])+D;break;case 3:D=fd("\r",e[0][f][1][1])+D;break;case 4:j=fd(" ",e[0][f][1][1])+j;break;case 5:j=fd("\r",e[0][f][1][1])+j;break;default:if(s.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][f][1][0])}f=-1}d.push(D+d.pop()+j);break;case"PtgRefErr":case"PtgRefErr3d":case"PtgAreaErr":case"PtgAreaErr3d":d.push("#REF!");break;case"PtgExp":i={c:b[1][1],r:b[1][0]};var O={c:n.c,r:n.r};if(a.sharedf[np(i)]){var N=a.sharedf[np(i)];d.push(ag(N,m,O,a,s))}else{var P=!1;for(o=0;o!=a.arrayf.length;++o)if(r=a.arrayf[o],!(i.cr[0].e.c)&&!(i.rr[0].e.r)){d.push(ag(r[1],m,O,a,s)),P=!0;break}P||d.push(b[1])}break;case"PtgArray":d.push("{"+Qf(b[1])+"}");break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":f=y;break;case"PtgMissArg":d.push("");break;case"PtgList":d.push("Table"+b[1].idx+"[#"+b[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(b))}if(3!=s.biff&&f>=0&&-1==["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(e[0][y][0])){var I=!0;switch((b=e[0][f])[1][0]){case 4:I=!1;case 0:g=fd(" ",b[1][1]);break;case 5:I=!1;case 1:g=fd("\r",b[1][1]);break;default:if(g="",s.WTF)throw new Error("Unexpected PtgAttrSpaceType "+b[1][0])}d.push((I?g:"")+d.pop()+(I?"":g)),f=-1}}if(d.length>1&&s.WTF)throw new Error("bad formula stack");return d[0]}function sg(e,t,n,a,s){var o=Th(t,n,s),r=function(e){if(null==e){var t=Gu(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 Lp("number"==typeof e?e:0)}(e.v),i=Gu(6);i.write_shift(2,33),i.write_shift(4,0);for(var l=Gu(e.bf.length),c=0;c0?Xf(e,o,s,n):null]}var rg=og,ig=og,lg=og,cg=og,mg={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"},dg={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"},ug={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 pg(e){return e.replace(/\./,"!")}var hg="undefined"!==typeof Map;function fg(e,t,n){var a=0,s=e.length;if(n){if(hg?n.has(t):Object.prototype.hasOwnProperty.call(n,t))for(var o=hg?n.get(t):n[t];a-1?(n.width=Qh(a),n.customWidth=1):null!=t.width&&(n.width=t.width),t.hidden&&(n.hidden=!0),null!=t.level&&(n.outlineLevel=n.level=t.level),n}function yg(e,t){if(e){var n=[.7,.7,.75,.75,.3,.3];"xlml"==t&&(n=[1,1,1,1,.5,.5]),null==e.left&&(e.left=n[0]),null==e.right&&(e.right=n[1]),null==e.top&&(e.top=n[2]),null==e.bottom&&(e.bottom=n[3]),null==e.header&&(e.header=n[4]),null==e.footer&&(e.footer=n[5])}}function vg(e,t,n){var a=n.revssf[null!=t.z?t.z:"General"],s=60,o=e.length;if(null==a&&n.ssf)for(;s<392;++s)if(null==n.ssf[s]){Gm(t.z,s),n.ssf[s]=t.z,n.revssf[t.z]=a=s;break}for(s=0;s!=o;++s)if(e[s].numFmtId===a)return s;return e[o]={numFmtId:a,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},o}function bg(e,t,n){if(e&&e["!ref"]){var a=op(e["!ref"]);if(a.e.c32767)throw new Error("Text length must not exceed 32767 characters");if(a&&a.bookSST){i=Wd("v",""+fg(a.Strings,e.v,a.revStrings)),l.t="s";break}l.t="str"}if(e.t!=o&&(e.t=o,e.v=r),"string"==typeof e.f&&e.f){var m=e.F&&e.F.slice(0,t.length)==t?{t:"array",ref:e.F}:null;i=Ud("f",Cd(e.f),m)+(null!=e.v?i:"")}return e.l&&n["!links"].push([t,e.l]),e.D&&(l.cm=1),Ud("c",i,l)}function xg(e,t,n,a){var s,o=[kd,Ud("worksheet",null,{xmlns:nu[0],"xmlns:r":Jd})],r=n.SheetNames[e],i="",l=n.Sheets[r];null==l&&(l={});var c=l["!ref"]||"A1",m=op(c);if(m.e.c>16383||m.e.r>1048575){if(t.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");m.e.c=Math.min(m.e.c,16383),m.e.r=Math.min(m.e.c,1048575),c=sp(m)}a||(a={}),l["!comments"]=[];var d=[];!function(e,t,n,a,s){var o=!1,r={},i=null;if("xlsx"!==a.bookType&&t.vbaraw){var l=t.SheetNames[n];try{t.Workbook&&(l=t.Workbook.Sheets[n].CodeName||l)}catch(m){}o=!0,r.codeName=Rd(Cd(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};e["!outline"].above&&(c.summaryBelow=0),e["!outline"].left&&(c.summaryRight=0),i=(i||"")+Ud("outlinePr",null,c)}(o||i)&&(s[s.length]=Ud("sheetPr",i,r))}(l,n,e,t,o),o[o.length]=Ud("dimension",null,{ref:c}),o[o.length]=function(e,t,n,a){var s={workbookViewId:"0"};return(((a||{}).Workbook||{}).Views||[])[0]&&(s.rightToLeft=a.Workbook.Views[0].RTL?"1":"0"),Ud("sheetViews",Ud("sheetView",null,s),{})}(0,0,0,n),t.sheetFormat&&(o[o.length]=Ud("sheetFormatPr",null,{defaultRowHeight:t.sheetFormat.defaultRowHeight||"16",baseColWidth:t.sheetFormat.baseColWidth||"10",outlineLevelRow:t.sheetFormat.outlineLevelRow||"7"})),null!=l["!cols"]&&l["!cols"].length>0&&(o[o.length]=function(e,t){for(var n,a=[""],s=0;s!=t.length;++s)(n=t[s])&&(a[a.length]=Ud("col",null,gg(s,n)));return a[a.length]="",a.join("")}(0,l["!cols"])),o[s=o.length]="",l["!links"]=[],null!=l["!ref"]&&(i=function(e,t,n,a){var s,o,r=[],i=[],l=op(e["!ref"]),c="",m="",d=[],u=0,p=0,h=e["!rows"],f=Array.isArray(e),g={r:m},y=-1;for(p=l.s.c;p<=l.e.c;++p)d[p]=ep(p);for(u=l.s.r;u<=l.e.r;++u){for(i=[],m=Ju(u),p=l.s.c;p<=l.e.c;++p){s=d[p]+m;var v=f?(e[u]||[])[p]:e[s];void 0!==v&&null!=(c=_g(v,s,e,t))&&i.push(c)}(i.length>0||h&&h[u])&&(g={r:m},h&&h[u]&&((o=h[u]).hidden&&(g.hidden=1),y=-1,o.hpx?y=tf(o.hpx):o.hpt&&(y=o.hpt),y>-1&&(g.ht=y,g.customHeight=1),o.level&&(g.outlineLevel=o.level)),r[r.length]=Ud("row",i.join(""),g))}if(h)for(;u-1&&(g.ht=y,g.customHeight=1),o.level&&(g.outlineLevel=o.level),r[r.length]=Ud("row","",g));return r.join("")}(l,t,0,0),i.length>0&&(o[o.length]=i)),o.length>s+1&&(o[o.length]="",o[s]=o[s].replace("/>",">")),l["!protect"]&&(o[o.length]=function(e){var t={sheet:1};return wg.forEach((function(n){null!=e[n]&&e[n]&&(t[n]="1")})),kg.forEach((function(n){null==e[n]||e[n]||(t[n]="0")})),e.password&&(t.password=$h(e.password).toString(16).toUpperCase()),Ud("sheetProtection",null,t)}(l["!protect"])),null!=l["!autofilter"]&&(o[o.length]=function(e,t,n,a){var s="string"==typeof e.ref?e.ref:sp(e.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var o=n.Workbook.Names,r=ap(s);r.s.r==r.e.r&&(r.e.r=ap(t["!ref"]).e.r,s=sp(r));for(var i=0;i0&&(o[o.length]=function(e){if(0===e.length)return"";for(var t='',n=0;n!=e.length;++n)t+='';return t+""}(l["!merges"]));var u,p,h=-1,f=-1;return l["!links"].length>0&&(o[o.length]="",l["!links"].forEach((function(e){e[1].Target&&(u={ref:e[0]},"#"!=e[1].Target.charAt(0)&&(f=Yp(a,-1,Cd(e[1].Target).replace(/#.*$/,""),Kp.HLINK),u["r:id"]="rId"+f),(h=e[1].Target.indexOf("#"))>-1&&(u.location=Cd(e[1].Target.slice(h+1))),e[1].Tooltip&&(u.tooltip=Cd(e[1].Tooltip)),o[o.length]=Ud("hyperlink",null,u))})),o[o.length]=""),delete l["!links"],null!=l["!margins"]&&(o[o.length]=(yg(p=l["!margins"]),Ud("pageMargins",null,p))),t&&!t.ignoreEC&&void 0!=t.ignoreEC||(o[o.length]=Wd("ignoredErrors",Ud("ignoredError",null,{numberStoredAsText:1,sqref:c}))),d.length>0&&(f=Yp(a,-1,"../drawings/drawing"+(e+1)+".xml",Kp.DRAW),o[o.length]=Ud("drawing",null,{"r:id":"rId"+f}),l["!drawing"]=d),l["!comments"].length>0&&(f=Yp(a,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Kp.VML),o[o.length]=Ud("legacyDrawing",null,{"r:id":"rId"+f}),l["!legacy"]=f),o.length>1&&(o[o.length]="",o[1]=o[1].replace("/>",">")),o.join("")}function Tg(e,t,n,a){var s=function(e,t,n){var a=Gu(145),s=(n["!rows"]||[])[e]||{};a.write_shift(4,e),a.write_shift(4,0);var o=320;s.hpx?o=20*tf(s.hpx):s.hpt&&(o=20*s.hpt),a.write_shift(2,o),a.write_shift(1,0);var r=0;s.level&&(r|=s.level),s.hidden&&(r|=16),(s.hpx||s.hpt)&&(r|=32),a.write_shift(1,r),a.write_shift(1,0);var i=0,l=a.l;a.l+=4;for(var c={r:e,c:0},m=0;m<16;++m)if(!(t.s.c>m+1<<10||t.e.ca.l?a.slice(0,a.l):a}(a,n,t);(s.length>17||(t["!rows"]||[])[a])&&Ku(e,0,s)}var Sg=Np,Cg=Pp;function Eg(e){return[wp(e),Ip(e),"n"]}var Ag=Np,Dg=Pp;var jg=["left","right","top","bottom","header","footer"];function Og(e,t,n,a,s,o,r){if(void 0===t.v)return!1;var i="";switch(t.t){case"b":i=t.v?"1":"0";break;case"d":(t=hd(t)).z=t.z||dm[14],t.v=sd(ud(t.v)),t.t="n";break;case"n":case"e":i=""+t.v;break;default:i=t.v}var l={r:n,c:a};switch(l.s=vg(s.cellXfs,t,s),t.l&&o["!links"].push([np(l),t.l]),t.c&&o["!comments"].push([np(l),t.c]),t.t){case"s":case"str":return s.bookSST?(i=fg(s.Strings,t.v,s.revStrings),l.t="s",l.v=i,r?Ku(e,18,function(e,t,n){return null==n&&(n=Gu(8)),kp(t,n),n.write_shift(4,t.v),n}(0,l)):Ku(e,7,function(e,t,n){return null==n&&(n=Gu(12)),bp(t,n),n.write_shift(4,t.v),n}(0,l))):(l.t="str",r?Ku(e,17,function(e,t,n){return null==n&&(n=Gu(8+4*e.v.length)),kp(t,n),pp(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,l)):Ku(e,6,function(e,t,n){return null==n&&(n=Gu(12+4*e.v.length)),bp(t,n),pp(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,l))),!0;case"n":return t.v==(0|t.v)&&t.v>-1e3&&t.v<1e3?r?Ku(e,13,function(e,t,n){return null==n&&(n=Gu(8)),kp(t,n),jp(e.v,n),n}(t,l)):Ku(e,2,function(e,t,n){return null==n&&(n=Gu(12)),bp(t,n),jp(e.v,n),n}(t,l)):r?Ku(e,16,function(e,t,n){return null==n&&(n=Gu(12)),kp(t,n),Lp(e.v,n),n}(t,l)):Ku(e,5,function(e,t,n){return null==n&&(n=Gu(16)),bp(t,n),Lp(e.v,n),n}(t,l)),!0;case"b":return l.t="b",r?Ku(e,15,function(e,t,n){return null==n&&(n=Gu(5)),kp(t,n),n.write_shift(1,e.v?1:0),n}(t,l)):Ku(e,4,function(e,t,n){return null==n&&(n=Gu(9)),bp(t,n),n.write_shift(1,e.v?1:0),n}(t,l)),!0;case"e":return l.t="e",r?Ku(e,14,function(e,t,n){return null==n&&(n=Gu(8)),kp(t,n),n.write_shift(1,e.v),n.write_shift(2,0),n.write_shift(1,0),n}(t,l)):Ku(e,3,function(e,t,n){return null==n&&(n=Gu(9)),bp(t,n),n.write_shift(1,e.v),n}(t,l)),!0}return r?Ku(e,12,function(e,t,n){return null==n&&(n=Gu(4)),kp(t,n)}(0,l)):Ku(e,1,function(e,t,n){return null==n&&(n=Gu(8)),bp(t,n)}(0,l)),!0}function Ng(e,t){var n,a;t&&t["!merges"]&&(Ku(e,177,(n=t["!merges"].length,null==a&&(a=Gu(4)),a.write_shift(4,n),a)),t["!merges"].forEach((function(t){Ku(e,176,Dg(t))})),Ku(e,178))}function Pg(e,t){t&&t["!cols"]&&(Ku(e,390),t["!cols"].forEach((function(t,n){t&&Ku(e,60,function(e,t,n){null==n&&(n=Gu(18));var a=gg(e,t);n.write_shift(-4,e),n.write_shift(-4,e),n.write_shift(4,256*(a.width||10)),n.write_shift(4,0);var s=0;return t.hidden&&(s|=1),"number"==typeof a.width&&(s|=2),t.level&&(s|=t.level<<8),n.write_shift(2,s),n}(n,t))})),Ku(e,391))}function Ig(e,t){t&&t["!ref"]&&(Ku(e,648),Ku(e,649,function(e){var t=Gu(24);return t.write_shift(4,4),t.write_shift(4,1),Pp(e,t),t}(op(t["!ref"]))),Ku(e,650))}function Lg(e,t,n){t["!links"].forEach((function(t){if(t[1].Target){var a=Yp(n,-1,t[1].Target.replace(/#.*$/,""),Kp.HLINK);Ku(e,494,function(e,t){var n=Gu(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Pp({s:tp(e[0]),e:tp(e[0])},n),Ap("rId"+t,n);var a=e[1].Target.indexOf("#");return pp((-1==a?"":e[1].Target.slice(a+1))||"",n),pp(e[1].Tooltip||"",n),pp("",n),n.slice(0,n.l)}(t,a))}})),delete t["!links"]}function Rg(e,t,n){Ku(e,133),Ku(e,137,function(e,t,n){null==n&&(n=Gu(30));var a=924;return(((t||{}).Views||[])[0]||{}).RTL&&(a|=32),n.write_shift(2,a),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(4,0),n.write_shift(1,0),n.write_shift(1,0),n.write_shift(2,0),n.write_shift(2,100),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(2,0),n.write_shift(4,0),n}(0,n)),Ku(e,138),Ku(e,134)}function Fg(e,t){var n,a;t["!protect"]&&Ku(e,535,(n=t["!protect"],null==a&&(a=Gu(66)),a.write_shift(2,n.password?$h(n.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==n[e[0]]||n[e[0]]?0:1):a.write_shift(4,null!=n[e[0]]&&n[e[0]]?0:1)})),a))}function Mg(e,t,n,a){var s=Vu(),o=n.SheetNames[e],r=n.Sheets[o]||{},i=o;try{n&&n.Workbook&&(i=n.Workbook.Sheets[e].CodeName||i)}catch(d){}var l,c,m=op(r["!ref"]||"A1");if(m.e.c>16383||m.e.r>1048575){if(t.WTF)throw new Error("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");m.e.c=Math.min(m.e.c,16383),m.e.r=Math.min(m.e.c,1048575)}return r["!links"]=[],r["!comments"]=[],Ku(s,129),(n.vbaraw||r["!outline"])&&Ku(s,147,function(e,t,n){null==n&&(n=Gu(84+4*e.length));var a=192;t&&(t.above&&(a&=-65),t.left&&(a&=-129)),n.write_shift(1,a);for(var s=1;s<3;++s)n.write_shift(1,0);return Rp({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),xp(e,n),n.slice(0,n.l)}(i,r["!outline"])),Ku(s,148,Cg(m)),Rg(s,0,n.Workbook),Pg(s,r),function(e,t,n,a){var s,o=op(t["!ref"]||"A1"),r="",i=[];Ku(e,145);var l=Array.isArray(t),c=o.e.r;t["!rows"]&&(c=Math.max(o.e.r,t["!rows"].length-1));for(var m=o.s.r;m<=c;++m){r=Ju(m),Tg(e,t,o,m);var d=!1;if(m<=o.e.r)for(var u=o.s.c;u<=o.e.c;++u){m===o.s.r&&(i[u]=ep(u)),s=i[u]+r;var p=l?(t[m]||[])[u]:t[s];d=!!p&&Og(e,p,m,u,a,t,d)}}Ku(e,146)}(s,r,0,t),Fg(s,r),function(e,t,n,a){if(t["!autofilter"]){var s=t["!autofilter"],o="string"===typeof s.ref?s.ref:sp(s.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var r=n.Workbook.Names,i=ap(o);i.s.r==i.e.r&&(i.e.r=ap(t["!ref"]).e.r,o=sp(i));for(var l=0;l0){var s=Yp(a,-1,"../drawings/vmlDrawing"+(n+1)+".vml",Kp.VML);Ku(e,551,Ap("rId"+s)),t["!legacy"]=s}}(s,r,e,a),Ku(s,130),s.end()}var Wg=[["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"]];var Bg="][*?/\\".split("");function Ug(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return Bg.forEach((function(a){if(-1!=e.indexOf(a)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}function zg(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var t,n,a,s=e.Workbook&&e.Workbook.Sheets||[];t=e.SheetNames,n=s,a=!!e.vbaraw,t.forEach((function(e,s){Ug(e);for(var o=0;o22)throw new Error("Bad Code Name: Worksheet"+r)}}));for(var o=0;o0,a={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(Wg.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]=Ud("workbookPr",null,a);var s=e.Workbook&&e.Workbook.Sheets||[],o=0;if(s&&s[0]&&s[0].Hidden){for(t[t.length]="",o=0;o!=e.SheetNames.length&&s[o]&&s[o].Hidden;++o);o==e.SheetNames.length&&(o=0),t[t.length]='',t[t.length]=""}for(t[t.length]="",o=0;o!=e.SheetNames.length;++o){var r={name:Cd(e.SheetNames[o].slice(0,31))};if(r.sheetId=""+(o+1),r["r:id"]="rId"+(o+1),s[o])switch(s[o].Hidden){case 1:r.state="hidden";break;case 2:r.state="veryHidden"}t[t.length]=Ud("sheet",null,r)}return t[t.length]="",n&&(t[t.length]="",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach((function(e){var n={name:e.Name};e.Comment&&(n.comment=e.Comment),null!=e.Sheet&&(n.localSheetId=""+e.Sheet),e.Hidden&&(n.hidden="1"),e.Ref&&(t[t.length]=Ud("definedName",Cd(e.Ref),n))})),t[t.length]=""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Gg(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var n,a,s=t.Workbook.Sheets,o=0,r=-1,i=-1;or))Ku(e,135),Ku(e,158,(n=r,a||(a=Gu(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,n),a.write_shift(4,n),a.write_shift(1,120),a.length>a.l?a.slice(0,a.l):a)),Ku(e,136)}}function Vg(e,t){var n=Vu();return Ku(n,131),Ku(n,128,function(e,t){t||(t=Gu(127));for(var n=0;4!=n;++n)t.write_shift(4,0);return pp("SheetJS",t),pp(Oc.version,t),pp(Oc.version,t),pp("7262",t),t.length>t.l?t.slice(0,t.l):t}()),Ku(n,153,function(e,t){t||(t=Gu(72));var n=0;return e&&e.filterPrivacy&&(n|=8),t.write_shift(4,n),t.write_shift(4,0),xp(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}(e.Workbook&&e.Workbook.WBProps||null)),Gg(n,e),function(e,t){Ku(e,143);for(var n=0;n!=t.SheetNames.length;++n){Ku(e,156,(a={Hidden:t.Workbook&&t.Workbook.Sheets&&t.Workbook.Sheets[n]&&t.Workbook.Sheets[n].Hidden||0,iTabID:n+1,strRelID:"rId"+(n+1),name:t.SheetNames[n]},(s=void 0)||(s=Gu(127)),s.write_shift(4,a.Hidden),s.write_shift(4,a.iTabID),Ap(a.strRelID,s),pp(a.name.slice(0,31),s),s.length>s.l?s.slice(0,s.l):s))}var a,s;Ku(e,144)}(n,e),Ku(n,132),n.end()}function Kg(e,t,n,a,s){return(".bin"===t.slice(-4)?Mg:xg)(e,n,a,s)}function $g(e,t,n){return(".bin"===t.slice(-4)?Cf:xf)(e,n)}function qg(e,t){var n=[];return e.Props&&n.push(function(e,t){var n=[];return Qm(oh).map((function(e){for(var t=0;t'+s.join("")+""+a+">"}(e.Props,e.Custprops)),n.join("")}function Yg(e){return Ud("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+jf(e.Ref,{r:0,c:0})})}function Zg(e,t,n,a,s,o,r){if(!e||void 0==e.v&&void 0==e.f)return"";var i={};if(e.f&&(i["ss:Formula"]="="+Cd(jf(e.f,r))),e.F&&e.F.slice(0,t.length)==t){var l=tp(e.F.slice(t.length+1));i["ss:ArrayRange"]="RC:R"+(l.r==r.r?"":"["+(l.r-r.r)+"]")+"C"+(l.c==r.c?"":"["+(l.c-r.c)+"]")}if(e.l&&e.l.Target&&(i["ss:HRef"]=Cd(e.l.Target),e.l.Tooltip&&(i["x:HRefScreenTip"]=Cd(e.l.Tooltip))),n["!merges"])for(var c=n["!merges"],m=0;m!=c.length;++m)c[m].s.c==r.c&&c[m].s.r==r.r&&(c[m].e.c>c[m].s.c&&(i["ss:MergeAcross"]=c[m].e.c-c[m].s.c),c[m].e.r>c[m].s.r&&(i["ss:MergeDown"]=c[m].e.r-c[m].s.r));var d="",u="";switch(e.t){case"z":if(!a.sheetStubs)return"";break;case"n":d="Number",u=String(e.v);break;case"b":d="Boolean",u=e.v?"1":"0";break;case"e":d="Error",u=zp[e.v];break;case"d":d="DateTime",u=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||dm[14]);break;case"s":d="String",u=((e.v||"")+"").replace(Td,(function(e){return xd[e]})).replace(Ad,(function(e){return""+e.charCodeAt(0).toString(16).toUpperCase()+";"}))}var p=vg(a.cellXfs,e,a);i["ss:StyleID"]="s"+(21+p),i["ss:Index"]=r.c+1;var h=null!=e.v?u:"",f="z"==e.t?"":''+h+"";return(e.c||[]).length>0&&(f+=e.c.map((function(e){var t=Ud("ss:Data",(e.t||"").replace(/(\r\n|[\r\n])/g,"
"),{xmlns:"http://www.w3.org/TR/REC-html40"});return Ud("Comment",t,{"ss:Author":e.a})})).join("")),Ud("Cell",f,i)}function Xg(e,t){var n='"}function Jg(e,t,n){var a=[],s=n.SheetNames[e],o=n.Sheets[s],r=o?function(e,t,n,a){if(!e)return"";if(!((a||{}).Workbook||{}).Names)return"";for(var s=a.Workbook.Names,o=[],r=0;r0&&a.push(""+r+""),r=o?function(e,t,n,a){if(!e["!ref"])return"";var s=op(e["!ref"]),o=e["!merges"]||[],r=0,i=[];e["!cols"]&&e["!cols"].forEach((function(e,t){ef(e);var n=!!e.width,a=gg(t,e),s={"ss:Index":t+1};n&&(s["ss:Width"]=Xh(a.width)),e.hidden&&(s["ss:Hidden"]="1"),i.push(Ud("Column",null,s))}));for(var l=Array.isArray(e),c=s.s.r;c<=s.e.r;++c){for(var m=[Xg(c,(e["!rows"]||[])[c])],d=s.s.c;d<=s.e.c;++d){var u=!1;for(r=0;r!=o.length;++r)if(!(o[r].s.c>d)&&!(o[r].s.r>c)&&!(o[r].e.c"),m.length>2&&i.push(m.join(""))}return i.join("")}(o,t):"",r.length>0&&a.push(""),a.push(function(e,t,n,a){if(!e)return"";var s=[];if(e["!margins"]&&(s.push(""),e["!margins"].header&&s.push(Ud("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&s.push(Ud("Footer",null,{"x:Margin":e["!margins"].footer})),s.push(Ud("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"})),s.push("")),a&&a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[n])if(a.Workbook.Sheets[n].Hidden)s.push(Ud("Visible",1==a.Workbook.Sheets[n].Hidden?"SheetHidden":"SheetVeryHidden",{}));else{for(var o=0;o")}return((((a||{}).Workbook||{}).Views||[])[0]||{}).RTL&&s.push(""),e["!protect"]&&(s.push(Wd("ProtectContents","True")),e["!protect"].objects&&s.push(Wd("ProtectObjects","True")),e["!protect"].scenarios&&s.push(Wd("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||s.push(Wd("EnableSelection","UnlockedCells")):s.push(Wd("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]]&&s.push("<"+t[1]+"/>")}))),0==s.length?"":Ud("WorksheetOptions",s.join(""),{xmlns:su})}(o,0,e,n)),a.join("")}function Qg(e,t){t||(t={}),e.SSF||(e.SSF=hd(dm)),e.SSF&&(Km(),Vm(e.SSF),t.revssf=nd(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],vg(t.cellXfs,{},{revssf:{General:0}}));var n=[];n.push(qg(e,t)),n.push(""),n.push(""),n.push("");for(var a=0;a'];return t.cellXfs.forEach((function(e,t){var a=[];a.push(Ud("NumberFormat",null,{"ss:Format":Cd(dm[e.numFmtId])}));var s={"ss:ID":"s"+(21+t)};n.push(Ud("Style",a.join(""),s))})),Ud("Styles",n.join(""))}(0,t),n[3]=function(e){if(!((e||{}).Workbook||{}).Names)return"";for(var t=e.Workbook.Names,n=[],a=0;a-1||nh.indexOf(o[r][0])>-1||null!=o[r][1]&&c.push(o[r]);s.length&&Ym.utils.cfb_add(t,"/\x05SummaryInformation",mh(s,ey,l,Wp)),(a.length||c.length)&&Ym.utils.cfb_add(t,"/\x05DocumentSummaryInformation",mh(a,ty,i,Mp,c.length?c:null,ny))}(e,a),8==n.biff&&e.vbaraw&&function(e,t){t.FullPaths.forEach((function(n,a){if(0!=a){var s=n.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");"/"!==s.slice(-1)&&Ym.utils.cfb_add(e,s,t.FileIndex[a].content)}}))}(a,Ym.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),a}var sy={0:{f:function(e,t){var n={},a=e.l+t;n.r=e.read_shift(4),e.l+=4;var s=e.read_shift(2);e.l+=1;var o=e.read_shift(1);return e.l=a,7&o&&(n.level=7&o),16&o&&(n.hidden=!0),32&o&&(n.hpt=s/20),n}},1:{f:function(e){return[vp(e)]}},2:{f:function(e){return[vp(e),Dp(e),"n"]}},3:{f:function(e){return[vp(e),e.read_shift(1),"e"]}},4:{f:function(e){return[vp(e),e.read_shift(1),"b"]}},5:{f:function(e){return[vp(e),Ip(e),"n"]}},6:{f:function(e){return[vp(e),up(e),"str"]}},7:{f:function(e){return[vp(e),e.read_shift(4),"s"]}},8:{f:function(e,t,n){var a=e.l+t,s=vp(e);s.r=n["!row"];var o=[s,up(e),"str"];if(n.cellFormula){e.l+=2;var r=ig(e,a-e.l,n);o[3]=ag(r,0,s,n.supbooks,n)}else e.l=a;return o}},9:{f:function(e,t,n){var a=e.l+t,s=vp(e);s.r=n["!row"];var o=[s,Ip(e),"n"];if(n.cellFormula){e.l+=2;var r=ig(e,a-e.l,n);o[3]=ag(r,0,s,n.supbooks,n)}else e.l=a;return o}},10:{f:function(e,t,n){var a=e.l+t,s=vp(e);s.r=n["!row"];var o=[s,e.read_shift(1),"b"];if(n.cellFormula){e.l+=2;var r=ig(e,a-e.l,n);o[3]=ag(r,0,s,n.supbooks,n)}else e.l=a;return o}},11:{f:function(e,t,n){var a=e.l+t,s=vp(e);s.r=n["!row"];var o=[s,e.read_shift(1),"e"];if(n.cellFormula){e.l+=2;var r=ig(e,a-e.l,n);o[3]=ag(r,0,s,n.supbooks,n)}else e.l=a;return o}},12:{f:function(e){return[wp(e)]}},13:{f:function(e){return[wp(e),Dp(e),"n"]}},14:{f:function(e){return[wp(e),e.read_shift(1),"e"]}},15:{f:function(e){return[wp(e),e.read_shift(1),"b"]}},16:{f:Eg},17:{f:function(e){return[wp(e),up(e),"str"]}},18:{f:function(e){return[wp(e),e.read_shift(4),"s"]}},19:{f:fp},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,n){var a=e.l+t;e.l+=4,e.l+=1;var s=e.read_shift(4),o=Cp(e),r=lg(e,0,n),i=Tp(e);e.l=a;var l={Name:o,Ptg:r};return s<268435455&&(l.Sheet=s),i&&(l.Comment=i),l}},40:{},42:{},43:{f:function(e,t,n){var a={};a.sz=e.read_shift(2)/20;var s=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(s.fItalic&&(a.italic=1),s.fCondense&&(a.condense=1),s.fExtend&&(a.extend=1),s.fShadow&&(a.shadow=1),s.fOutline&&(a.outline=1),s.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 o=e.read_shift(1);0!=o&&(a.underline=o);var r=e.read_shift(1);r>0&&(a.family=r);var i=e.read_shift(1);switch(i>0&&(a.charset=i),e.l++,a.color=function(e){var t={},n=e.read_shift(1)>>>1,a=e.read_shift(1),s=e.read_shift(2,"i"),o=e.read_shift(1),r=e.read_shift(1),i=e.read_shift(1);switch(e.l++,n){case 0:t.auto=1;break;case 1:t.index=a;var l=Up[a];l&&(t.rgb=Yh(l));break;case 2:t.rgb=Yh([o,r,i]);break;case 3:t.theme=a}return 0!=s&&(t.tint=s>0?s/32767:s/32768),t}(e),e.read_shift(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor"}return a.name=up(e),a}},44:{f:function(e,t){return[e.read_shift(2),up(e)]}},45:{f:cf},46:{f:pf},47:{f:function(e,t){var n=e.l+t,a=e.read_shift(2),s=e.read_shift(2);return e.l=n,{ixfe:a,numFmtId:s}}},48:{},49:{f:function(e){return e.read_shift(4,"i")}},50:{},51:{f:function(e){for(var t=[],n=e.read_shift(4);n-- >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:Lh},62:{f:function(e){return[vp(e),fp(e),"is"]}},63:{f:function(e){var t={};t.i=e.read_shift(4);var n={};n.r=e.read_shift(4),n.c=e.read_shift(4),t.r=np(n);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:Hu,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 n={},a=e[e.l];return++e.l,n.above=!(64&a),n.left=!(128&a),e.l+=18,n.name=_p(e,t-19),n}},148:{f:Sg,p:16},151:{f:function(){}},152:{},153:{f:function(e,t){var n={},a=e.read_shift(4);n.defaultThemeVersion=e.read_shift(4);var s=t>8?up(e):"";return s.length>0&&(n.CodeName=s),n.autoCompressPictures=!!(65536&a),n.backupFile=!!(64&a),n.checkCompatibility=!!(4096&a),n.date1904=!!(1&a),n.filterPrivacy=!!(8&a),n.hidePivotFieldList=!!(1024&a),n.promptedSolutions=!!(16&a),n.publishItems=!!(2048&a),n.refreshAllConnections=!!(262144&a),n.saveExternalLinkValues=!!(128&a),n.showBorderUnselectedTables=!!(4&a),n.showInkAnnotation=!!(32&a),n.showObjects=["all","placeholders","none"][a>>13&3],n.showPivotChartFilter=!!(32768&a),n.updateLinks=["userSet","never","always"][a>>8&3],n}},154:{},155:{},156:{f:function(e,t){var n={};return n.Hidden=e.read_shift(4),n.iTabID=e.read_shift(4),n.strRelID=Ep(e,t-8),n.name=up(e),n}},157:{},158:{},159:{T:1,f:function(e){return[e.read_shift(4),e.read_shift(4)]}},160:{T:-1},161:{T:1,f:Np},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:Ag},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:up(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:Ep},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Nh},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,n){var a=e.l+t,s=Op(e),o=e.read_shift(1),r=[s];if(r[2]=o,n.cellFormula){var i=rg(e,a-e.l,n);r[1]=i}else e.l=a;return r}},427:{f:function(e,t,n){var a=e.l+t,s=[Np(e,16)];if(n.cellFormula){var o=cg(e,a-e.l,n);s[1]=o,e.l=a}else e.l=a;return s}},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 jg.forEach((function(n){t[n]=Ip(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 n=e.l+t,a=Np(e,16),s=Tp(e),o=up(e),r=up(e),i=up(e);e.l=n;var l={rfx:a,relId:s,loc:o,display:i};return r&&(l.Tooltip=r),l}},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:Ep},551:{},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:Sf},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var n=Np(e,16);return t.rfx=n.s,t.ref=np(n.s),e.l+=16,t}},636:{T:-1},637:{f:gp},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:up(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:""}};function oy(e,t,n,a){var s=t;if(!isNaN(s)){var o=a||(n||[]).length||0,r=e.next(4);r.write_shift(2,s),r.write_shift(2,o),o>0&&ju(n)&&e.push(n)}}function ry(e,t,n){return e||(e=Gu(7)),e.write_shift(2,t),e.write_shift(2,n),e.write_shift(2,0),e.write_shift(1,0),e}function iy(e,t,n,a){if(null!=t.v)switch(t.t){case"d":case"n":var s="d"==t.t?sd(ud(t.v)):t.v;return void(s==(0|s)&&s>=0&&s<65536?oy(e,2,function(e,t,n){var a=Gu(9);return ry(a,e,t),a.write_shift(2,n),a}(n,a,s)):oy(e,3,function(e,t,n){var a=Gu(15);return ry(a,e,t),a.write_shift(8,n,"f"),a}(n,a,s)));case"b":case"e":return void oy(e,5,function(e,t,n,a){var s=Gu(9);return ry(s,e,t),fh(n,a||"b",s),s}(n,a,t.v,t.t));case"s":case"str":return void oy(e,4,function(e,t,n){var a=Gu(8+2*n.length);return ry(a,e,t),a.write_shift(1,n.length),a.write_shift(n.length,n,"sbcs"),a.l255||r.e.r>16383){if(a.WTF)throw new Error("Range "+(t["!ref"]||"A1")+" exceeds format limit A1:IV16384");r.e.c=Math.min(r.e.c,255),r.e.r=Math.min(r.e.c,16383),s=sp(r)}for(var c=r.s.r;c<=r.e.r;++c){i=Ju(c);for(var m=r.s.c;m<=r.e.c;++m){c===r.s.r&&(l[m]=ep(m)),s=l[m]+i;var d=o?(t[c]||[])[m]:t[s];d&&iy(e,d,c,m)}}}(a,e.Sheets[e.SheetNames[s]],0,n),oy(a,10),a.end()}function cy(e,t,n){oy(e,49,function(e,t){var n=e.name||"Arial",a=t&&5==t.biff,s=Gu(a?15+n.length:16+2*n.length);return s.write_shift(2,20*(e.sz||12)),s.write_shift(4,0),s.write_shift(2,400),s.write_shift(4,0),s.write_shift(2,0),s.write_shift(1,n.length),a||s.write_shift(1,1),s.write_shift((a?1:2)*n.length,n,a?"sbcs":"utf16le"),s}({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},n))}function my(e,t){if(t){var n=0;t.forEach((function(t,a){++n<=256&&t&&oy(e,125,function(e,t){var n=Gu(12);n.write_shift(2,t),n.write_shift(2,t),n.write_shift(2,256*e.width),n.write_shift(2,0);var a=0;return e.hidden&&(a|=1),n.write_shift(1,a),a=e.level||0,n.write_shift(1,a),n.write_shift(2,0),n}(gg(a,t),a))}))}}function dy(e,t,n,a,s){var o=16+vg(s.cellXfs,t,s);if(null!=t.v||t.bf)if(t.bf)oy(e,6,sg(t,n,a,0,o));else switch(t.t){case"d":case"n":oy(e,515,function(e,t,n,a){var s=Gu(14);return Th(e,t,a,s),Lp(n,s),s}(n,a,"d"==t.t?sd(ud(t.v)):t.v,o));break;case"b":case"e":oy(e,517,function(e,t,n,a,s,o){var r=Gu(8);return Th(e,t,a,r),fh(n,o,r),r}(n,a,t.v,o,0,t.t));break;case"s":case"str":if(s.bookSST)oy(e,253,function(e,t,n,a){var s=Gu(10);return Th(e,t,a,s),s.write_shift(4,n),s}(n,a,fg(s.Strings,t.v,s.revStrings),o));else oy(e,516,function(e,t,n,a,s){var o=!s||8==s.biff,r=Gu(+o+8+(1+o)*n.length);return Th(e,t,a,r),r.write_shift(2,n.length),o&&r.write_shift(1,1),r.write_shift((1+o)*n.length,n,o?"utf16le":"sbcs"),r}(n,a,(t.v||"").slice(0,255),o,s));break;default:oy(e,513,Th(n,a,o))}else oy(e,513,Th(n,a,o))}function uy(e,t,n){var a,s=Vu(),o=n.SheetNames[e],r=n.Sheets[o]||{},i=(n||{}).Workbook||{},l=(i.Sheets||[])[e]||{},c=Array.isArray(r),m=8==t.biff,d="",u=[],p=op(r["!ref"]||"A1"),h=m?65536:16384;if(p.e.c>255||p.e.r>=h){if(t.WTF)throw new Error("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:IV16384");p.e.c=Math.min(p.e.c,255),p.e.r=Math.min(p.e.c,h-1)}oy(s,2057,Ah(0,16,t)),oy(s,13,hh(1)),oy(s,12,hh(100)),oy(s,15,uh(!0)),oy(s,17,uh(!1)),oy(s,16,Lp(.001)),oy(s,95,uh(!0)),oy(s,42,uh(!1)),oy(s,43,uh(!1)),oy(s,130,hh(1)),oy(s,128,function(e){var t=Gu(8);return t.write_shift(4,0),t.write_shift(2,e[0]?e[0]+1:0),t.write_shift(2,e[1]?e[1]+1:0),t}([0,0])),oy(s,131,uh(!1)),oy(s,132,uh(!1)),m&&my(s,r["!cols"]),oy(s,512,function(e,t){var n=8!=t.biff&&t.biff?2:4,a=Gu(2*n+6);return a.write_shift(n,e.s.r),a.write_shift(n,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}(p,t)),m&&(r["!links"]=[]);for(var f=p.s.r;f<=p.e.r;++f){d=Ju(f);for(var g=p.s.c;g<=p.e.c;++g){f===p.s.r&&(u[g]=ep(g)),a=u[g]+d;var y=c?(r[f]||[])[g]:r[a];y&&(dy(s,y,f,g,t),m&&y.l&&r["!links"].push([a,y.l]))}}var v=l.CodeName||l.name||o;return m&&oy(s,574,function(e){var t=Gu(18),n=1718;return e&&e.RTL&&(n|=64),t.write_shift(2,n),t.write_shift(4,0),t.write_shift(4,64),t.write_shift(4,0),t.write_shift(4,0),t}((i.Views||[])[0])),m&&(r["!merges"]||[]).length&&oy(s,229,function(e){var t=Gu(2+8*e.length);t.write_shift(2,e.length);for(var n=0;n255&&"undefined"!=typeof console&&console.error&&console.error("Worksheet '"+e.SheetNames[n]+"' extends beyond column IV (255). Data may be lost.")}var s=t||{};switch(s.biff||2){case 8:case 5:return function(e,t){var n=t||{},a=[];e&&!e.SSF&&(e.SSF=hd(dm)),e&&e.SSF&&(Km(),Vm(e.SSF),n.revssf=nd(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,Gy(n),n.cellXfs=[],vg(n.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var s=0;sn||s[c].s.c>r)&&!(s[c].e.r1&&(p.rowspan=i),l>1&&(p.colspan=l),a.editable?u=''+u+"":d&&(p["data-t"]=d&&d.t||"z",null!=d.v&&(p["data-v"]=d.v),null!=d.z&&(p["data-z"]=d.z),d.l&&"#"!=(d.l.Target||"#").charAt(0)&&(u=''+u+"")),p.id=(a.id||"sjs")+"-"+m,o.push(Ud("td",u,p))}}return""+o.join("")+"
"}var gy='SheetJS Table Export',yy="";function vy(e,t,n){return[].join("")+""}function by(e,t){var n=t||{},a=null!=n.header?n.header:gy,s=null!=n.footer?n.footer:yy,o=[a],r=ap(e["!ref"]);n.dense=Array.isArray(e),o.push(vy(0,0,n));for(var i=r.s.r;i<=r.e.r;++i)o.push(fy(e,r,i,n));return o.push("
"+s),o.join("")}function wy(e,t,n){var a=n||{};var s=0,o=0;if(null!=a.origin)if("number"==typeof a.origin)s=a.origin;else{var r="string"==typeof a.origin?tp(a.origin):a.origin;s=r.r,o=r.c}var i=t.getElementsByTagName("tr"),l=Math.min(a.sheetRows||1e7,i.length),c={s:{r:0,c:0},e:{r:s,c:o}};if(e["!ref"]){var m=ap(e["!ref"]);c.s.r=Math.min(c.s.r,m.s.r),c.s.c=Math.min(c.s.c,m.s.c),c.e.r=Math.max(c.e.r,m.e.r),c.e.c=Math.max(c.e.c,m.e.c),-1==s&&(c.e.r=s=m.e.r+1)}var d=[],u=0,p=e["!rows"]||(e["!rows"]=[]),h=0,f=0,g=0,y=0,v=0,b=0;for(e["!cols"]||(e["!cols"]=[]);h1||b>1)&&d.push({s:{r:f+s,c:y+o},e:{r:f+s+(v||1)-1,c:y+o+(b||1)-1}});var C={t:"s",v:x},E=_.getAttribute("data-t")||_.getAttribute("t")||"";null!=x&&(0==x.length?C.t=E||"z":a.raw||0==x.trim().length||"s"==E||("TRUE"===x?C={t:"b",v:!0}:"FALSE"===x?C={t:"b",v:!1}:isNaN(gd(x))?isNaN(vd(x).getDate())||(C={t:"d",v:ud(x)},a.cellDates||(C={t:"n",v:sd(C.v)}),C.z=a.dateNF||dm[14]):C={t:"n",v:gd(x)})),void 0===C.z&&null!=T&&(C.z=T);var A="",D=_.getElementsByTagName("A");if(D&&D.length)for(var j=0;j=l&&(e["!fullref"]=sp((c.e.r=i.length-h+f-1+s,c))),e}function ky(e,t){return wy((t||{}).dense?[]:{},e,t)}function _y(e){var t="",n=function(e){return e.ownerDocument.defaultView&&"function"===typeof e.ownerDocument.defaultView.getComputedStyle?e.ownerDocument.defaultView.getComputedStyle:"function"===typeof getComputedStyle?getComputedStyle:null}(e);return n&&(t=n(e).getPropertyValue("display")),t||(t=e.style&&e.style.display),"none"===t}var xy=function(){var e=["",'',"",'',"",'',"",""].join(""),t=""+e+"";return function(){return kd+t}}(),Ty=function(){var e=" \n",t=function(t,n,a){var s=[];s.push(' \n');var o=0,r=0,i=ap(t["!ref"]||"A1"),l=t["!merges"]||[],c=0,m=Array.isArray(t);if(t["!cols"])for(r=0;r<=i.e.c;++r)s.push(" \n");var d="",u=t["!rows"]||[];for(o=0;o\n");for(;o<=i.e.r;++o){for(d=u[o]?' table:style-name="ro'+u[o].ods+'"':"",s.push(" \n"),r=0;rr)&&!(l[c].s.r>o)&&!(l[c].e.c\n");else{var g=np({r:o,c:r}),y=m?(t[o]||[])[r]:t[g];if(y&&y.f&&(h["table:formula"]=Cd(("of:="+y.f.replace(Df,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),y.F&&y.F.slice(0,g.length)==g)){var v=ap(y.F);h["table:number-matrix-columns-spanned"]=v.e.c-v.s.c+1,h["table:number-matrix-rows-spanned"]=v.e.r-v.s.r+1}if(y){switch(y.t){case"b":f=y.v?"TRUE":"FALSE",h["office:value-type"]="boolean",h["office:boolean-value"]=y.v?"true":"false";break;case"n":f=y.w||String(y.v||0),h["office:value-type"]="float",h["office:value"]=y.v||0;break;case"s":case"str":f=null==y.v?"":y.v,h["office:value-type"]="string";break;case"d":f=y.w||ud(y.v).toISOString(),h["office:value-type"]="date",h["office:date-value"]=ud(y.v).toISOString(),h["table:style-name"]="ce1";break;default:s.push(e);continue}var b=Cd(f).replace(/ +/g,(function(e){return''})).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"");if(y.l&&y.l.Target){var w=y.l.Target;"#"==(w="#"==w.charAt(0)?"#"+pg(w.slice(1)):w).charAt(0)||w.match(/^\w+:/)||(w="../"+w),b=Ud("text:a",b,{"xlink:href":w.replace(/&/g,"&")})}s.push(" "+Ud("table:table-cell",Ud("text:p",b,{}),h)+"\n")}else s.push(e)}}s.push(" \n")}return s.push(" \n"),s.join("")};return function(e,n){var a=[kd],s=Bd({"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"}),o=Bd({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});"fods"==n.bookType?(a.push("\n"),a.push(Xp().replace(/office:document-meta/g,"office:meta"))):a.push("\n"),function(e,t){e.push(" \n"),e.push(' \n'),e.push(' \n'),e.push(" /\n"),e.push(' \n'),e.push(" /\n"),e.push(" \n"),e.push(" \n");var n=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!cols"])for(var a=0;a\n'),e.push(' \n'),e.push(" \n"),++n}}));var a=0;t.SheetNames.map((function(e){return t.Sheets[e]})).forEach((function(t){if(t&&t["!rows"])for(var n=0;n\n'),e.push(' \n'),e.push(" \n"),++a}})),e.push(' \n'),e.push(' \n'),e.push(" \n"),e.push(' \n'),e.push(" \n")}(a,e),a.push(" \n"),a.push(" \n");for(var r=0;r!=e.SheetNames.length;++r)a.push(t(e.Sheets[e.SheetNames[r]],e,r));return a.push(" \n"),a.push(" \n"),"fods"==n.bookType?a.push(""):a.push(""),a.join("")}}();function Sy(e,t){if("fods"==t.bookType)return Ty(e,t);var n=wd(),a="",s=[],o=[];return bd(n,a="mimetype","application/vnd.oasis.opendocument.spreadsheet"),bd(n,a="content.xml",Ty(e,t)),s.push([a,"text/xml"]),o.push([a,"ContentFile"]),bd(n,a="styles.xml",xy(e,t)),s.push([a,"text/xml"]),o.push([a,"StylesFile"]),bd(n,a="meta.xml",kd+Xp()),s.push([a,"text/xml"]),o.push([a,"MetadataFile"]),bd(n,a="manifest.rdf",function(e){var t,n,a=[kd];a.push('\n');for(var s=0;s!=e.length;++s)a.push(Zp(e[s][0],e[s][1])),a.push((t="",n=e[s][0],[' \n',' \n'," \n"].join("")));return a.push(Zp("","Document","pkg")),a.push(""),a.join("")}(o)),s.push([a,"application/rdf+xml"]),bd(n,a="META-INF/manifest.xml",function(e){var t=[kd];t.push('\n'),t.push(' \n');for(var n=0;n\n');return t.push(""),t.join("")}(s)),n}function Cy(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Ey(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):Zc(Rd(e))}function Ay(e){var t=e.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(t),a=0;return e.forEach((function(e){n.set(e,a),a+=e.length})),n}function Dy(e,t){var n=t?t[0]:0,a=127&e[n];e:if(e[n++]>=128){if(a|=(127&e[n])<<7,e[n++]<128)break e;if(a|=(127&e[n])<<14,e[n++]<128)break e;if(a|=(127&e[n])<<21,e[n++]<128)break e;if(a+=(127&e[n])*Math.pow(2,28),++n,e[n++]<128)break e;if(a+=(127&e[n])*Math.pow(2,35),++n,e[n++]<128)break e;if(a+=(127&e[n])*Math.pow(2,42),++n,e[n++]<128)break e}return t&&(t[0]=n),a}function jy(e){var t=new Uint8Array(7);t[0]=127&e;var n=1;e:if(e>127){if(t[n-1]|=128,t[n]=e>>7&127,++n,e<=16383)break e;if(t[n-1]|=128,t[n]=e>>14&127,++n,e<=2097151)break e;if(t[n-1]|=128,t[n]=e>>21&127,++n,e<=268435455)break e;if(t[n-1]|=128,t[n]=e/256>>>21&127,++n,e<=34359738367)break e;if(t[n-1]|=128,t[n]=e/65536>>>21&127,++n,e<=4398046511103)break e;t[n-1]|=128,t[n]=e/16777216>>>21&127,++n}return t.slice(0,n)}function Oy(e){var t=0,n=127&e[t];e:if(e[t++]>=128){if(n|=(127&e[t])<<7,e[t++]<128)break e;if(n|=(127&e[t])<<14,e[t++]<128)break e;if(n|=(127&e[t])<<21,e[t++]<128)break e;n|=(127&e[t])<<28}return n}function Ny(e){for(var t=[],n=[0];n[0]=128;);a=e.slice(l,n[0]);break;case 5:i=4,a=e.slice(n[0],n[0]+i),n[0]+=i;break;case 1:i=8,a=e.slice(n[0],n[0]+i),n[0]+=i;break;case 2:i=Dy(e,n),a=e.slice(n[0],n[0]+i),n[0]+=i;break;default:throw new Error("PB Type ".concat(r," for Field ").concat(o," at offset ").concat(s))}var c={data:a,type:r};null==t[o]?t[o]=[c]:t[o].push(c)}return t}function Py(e){var t=[];return e.forEach((function(e,n){e.forEach((function(e){e.data&&(t.push(jy(8*n+e.type)),2==e.type&&t.push(jy(e.data.length)),t.push(e.data))}))})),Ay(t)}function Iy(e){for(var t,n=[],a=[0];a[0]>>0>0),n.push(r)}return n}function Ly(e){var t=[];return e.forEach((function(e){var n=[];n[1]=[{data:jy(e.id),type:0}],n[2]=[],null!=e.merge&&(n[3]=[{data:jy(+!!e.merge),type:0}]);var a=[];e.messages.forEach((function(e){a.push(e.data),e.meta[3]=[{type:0,data:jy(e.data.length)}],n[2].push({data:Py(e.meta),type:2})}));var s=Py(n);t.push(jy(s.length)),t.push(s),a.forEach((function(e){return t.push(e)}))})),Ay(t)}function Ry(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],a=Dy(t,n),s=[];n[0]>2&7),r=(224&t[n[0]++])<<3,r|=t[n[0]++]):(i=1+(t[n[0]++]>>2),2==o?(r=t[n[0]]|t[n[0]+1]<<8,n[0]+=2):(r=(t[n[0]]|t[n[0]+1]<<8|t[n[0]+2]<<16|t[n[0]+3]<<24)>>>0,n[0]+=4)),s=[Ay(s)],0==r)throw new Error("Invalid offset 0");if(r>s[0].length)throw new Error("Invalid offset beyond length");if(i>=r)for(s.push(s[0].slice(-r)),i-=r;i>=s[s.length-1].length;)s.push(s[s.length-1]),i-=s[s.length-1].length;s.push(s[0].slice(-r,-r+i))}else{var l=t[n[0]++]>>2;if(l<60)++l;else{var c=l-59;l=t[n[0]],c>1&&(l|=t[n[0]+1]<<8),c>2&&(l|=t[n[0]+2]<<16),c>3&&(l|=t[n[0]+3]<<24),l>>>=0,l++,n[0]+=c}s.push(t.slice(n[0],n[0]+l)),n[0]+=l}}var m=Ay(s);if(m.length!=a)throw new Error("Unexpected length: ".concat(m.length," != ").concat(a));return m}function Fy(e){for(var t=[],n=0;n>8&255]))):a<=16777216?(r+=4,t.push(new Uint8Array([248,a-1&255,a-1>>8&255,a-1>>16&255]))):a<=4294967296&&(r+=5,t.push(new Uint8Array([252,a-1&255,a-1>>8&255,a-1>>16&255,a-1>>>24&255]))),t.push(e.slice(n,n+a)),r+=a,s[0]=0,s[1]=255&r,s[2]=r>>8&255,s[3]=r>>16&255,n+=a}return Ay(t)}function Wy(e,t){var n=new Uint8Array(32),a=Cy(n),s=12,o=0;switch(n[0]=5,e.t){case"n":n[1]=2,function(e,t,n){var a=Math.floor(0==n?0:Math.LOG10E*Math.log(Math.abs(n)))+6176-20,s=n/Math.pow(10,a-6176);e[t+15]|=a>>7,e[t+14]|=(127&a)<<1;for(var o=0;s>=1;++o,s/=256)e[t+o]=255&s;e[t+15]|=n>=0?0:128}(n,s,e.v),o|=1,s+=16;break;case"b":n[1]=6,a.setFloat64(s,e.v?1:0,!0),o|=2,s+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[1]=3,a.setUint32(s,t.indexOf(e.v),!0),o|=8,s+=4;break;default:throw"unsupported cell type "+e.t}return a.setUint32(8,o,!0),n.slice(0,s)}function By(e,t){var n=new Uint8Array(32),a=Cy(n),s=12,o=0;switch(n[0]=3,e.t){case"n":n[2]=2,a.setFloat64(s,e.v,!0),o|=32,s+=8;break;case"b":n[2]=6,a.setFloat64(s,e.v?1:0,!0),o|=32,s+=8;break;case"s":if(-1==t.indexOf(e.v))throw new Error("Value ".concat(e.v," missing from SST!"));n[2]=3,a.setUint32(s,t.indexOf(e.v),!0),o|=16,s+=4;break;default:throw"unsupported cell type "+e.t}return a.setUint32(4,o,!0),n.slice(0,s)}function Uy(e){return Dy(Ny(e)[1][0].data)}function zy(e,t,n){var a,s,o,r;if(!(null==(a=e[6])?void 0:a[0])||!(null==(s=e[7])?void 0:s[0]))throw"Mutation only works on post-BNC storages!";if((null==(r=null==(o=e[8])?void 0:o[0])?void 0:r.data)&&Oy(e[8][0].data)>0||!1)throw"Math only works with normal offsets";for(var i=0,l=Cy(e[7][0].data),c=0,m=[],d=Cy(e[4][0].data),u=0,p=[],h=0;h1&&console.error("The Numbers writer currently writes only the first table");var a=ap(n["!ref"]);a.s.r=a.s.c=0;var s=!1;a.e.c>9&&(s=!0,a.e.c=9),a.e.r>49&&(s=!0,a.e.r=49),s&&console.error("The Numbers writer is currently limited to ".concat(sp(a)));var o=tv(n,{range:a,header:1}),r=["~Sh33tJ5~"];o.forEach((function(e){return e.forEach((function(e){"string"==typeof e&&r.push(e)}))}));var i={},l=[],c=Ym.read(t.numbers,{type:"base64"});c.FileIndex.map((function(e,t){return[e,c.FullPaths[t]]})).forEach((function(e){var t=e[0],n=e[1];2==t.type&&t.name.match(/\.iwa/)&&Iy(Fy(t.content)).forEach((function(e){l.push(e.id),i[e.id]={deps:[],location:n,type:Oy(e.messages[0].meta[1][0].data)}}))})),l.sort((function(e,t){return e-t}));var m=l.filter((function(e){return e>1})).map((function(e){return[e,jy(e)]}));c.FileIndex.map((function(e,t){return[e,c.FullPaths[t]]})).forEach((function(e){var t=e[0];e[1],t.name.match(/\.iwa/)&&Iy(Fy(t.content)).forEach((function(e){e.messages.forEach((function(t){m.forEach((function(t){e.messages.some((function(e){return 11006!=Oy(e.meta[1][0].data)&&function(e,t){e:for(var n=0;n<=e.length-t.length;++n){for(var a=0;a-1,s={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Gy(t=t||{});var o=wd(),r="",i=0;t.cellXfs=[],vg(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});if(bd(o,r="docProps/core.xml",eh(e.Props,t)),s.coreprops.push(r),Yp(t.rels,2,r,Kp.CORE_PROPS),r="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],c=0;c0&&(bd(o,r="docProps/custom.xml",sh(e.Custprops)),s.custprops.push(r),Yp(t.rels,4,r,Kp.CUST_PROPS));for(i=1;i<=e.SheetNames.length;++i){var m={"!id":{}},d=e.Sheets[e.SheetNames[i-1]];(d||{})["!type"];if(bd(o,r="xl/worksheets/sheet"+i+"."+n,Kg(i-1,r,t,e,m)),s.sheets.push(r),Yp(t.wbrels,-1,"worksheets/sheet"+i+"."+n,Kp.WS[0]),d){var u=d["!comments"],p=!1,h="";u&&u.length>0&&(bd(o,h="xl/comments"+i+"."+n,$g(u,h,t)),s.comments.push(h),Yp(m,-1,"../comments"+i+"."+n,Kp.CMNT),p=!0),d["!legacy"]&&p&&bd(o,"xl/drawings/vmlDrawing"+i+".vml",_f(i,d["!comments"])),delete d["!comments"],delete d["!legacy"]}m["!id"].rId1&&bd(o,$p(r),qp(m))}null!=t.Strings&&t.Strings.length>0&&(bd(o,r="xl/sharedStrings."+n,function(e,t,n){return(".bin"===t.slice(-4)?Vh:Hh)(e,n)}(t.Strings,r,t)),s.strs.push(r),Yp(t.wbrels,-1,"sharedStrings."+n,Kp.SST));bd(o,r="xl/workbook."+n,function(e,t,n){return(".bin"===t.slice(-4)?Vg:Hg)(e,n)}(e,r,t)),s.workbooks.push(r),Yp(t.rels,1,r,Kp.WB),bd(o,r="xl/theme/theme1.xml",vf(e.Themes,t)),s.themes.push(r),Yp(t.wbrels,-1,"theme/theme1.xml",Kp.THEME),bd(o,r="xl/styles."+n,function(e,t,n){return(".bin"===t.slice(-4)?yf:af)(e,n)}(e,r,t)),s.styles.push(r),Yp(t.wbrels,-1,"styles."+n,Kp.STY),e.vbaraw&&a&&(bd(o,r="xl/vbaProject.bin",e.vbaraw),s.vba.push(r),Yp(t.wbrels,-1,"vbaProject.bin",Kp.VBA));return bd(o,r="xl/metadata."+n,function(e){return(".bin"===e.slice(-4)?bf:wf)()}(r)),s.metadata.push(r),Yp(t.wbrels,-1,"metadata."+n,Kp.XLMETA),bd(o,"[Content_Types].xml",Vp(s,t)),bd(o,"_rels/.rels",qp(t.rels)),bd(o,"xl/_rels/workbook."+n+".rels",qp(t.wbrels)),delete t.revssf,delete t.ssf,o}(e,t):Ky(e,t)}function Ky(e,t){kf=1024,e&&!e.SSF&&(e.SSF=hd(dm)),e&&e.SSF&&(Km(),Vm(e.SSF),t.revssf=nd(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,hg?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xml",a=Ef.indexOf(t.bookType)>-1,s={workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""};Gy(t=t||{});var o=wd(),r="",i=0;if(t.cellXfs=[],vg(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),bd(o,r="docProps/core.xml",eh(e.Props,t)),s.coreprops.push(r),Yp(t.rels,2,r,Kp.CORE_PROPS),r="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],c=0;c0&&(bd(o,r="docProps/custom.xml",sh(e.Custprops)),s.custprops.push(r),Yp(t.rels,4,r,Kp.CUST_PROPS));var m=["SheetJ5"];for(t.tcid=0,i=1;i<=e.SheetNames.length;++i){var d={"!id":{}},u=e.Sheets[e.SheetNames[i-1]];(u||{})["!type"];if(bd(o,r="xl/worksheets/sheet"+i+"."+n,xg(i-1,t,e,d)),s.sheets.push(r),Yp(t.wbrels,-1,"worksheets/sheet"+i+"."+n,Kp.WS[0]),u){var p=u["!comments"],h=!1,f="";if(p&&p.length>0){var g=!1;p.forEach((function(e){e[1].forEach((function(e){1==e.T&&(g=!0)}))})),g&&(bd(o,f="xl/threadedComments/threadedComment"+i+"."+n,Tf(p,m,t)),s.threadedcomments.push(f),Yp(d,-1,"../threadedComments/threadedComment"+i+"."+n,Kp.TCMNT)),bd(o,f="xl/comments"+i+"."+n,xf(p)),s.comments.push(f),Yp(d,-1,"../comments"+i+"."+n,Kp.CMNT),h=!0}u["!legacy"]&&h&&bd(o,"xl/drawings/vmlDrawing"+i+".vml",_f(i,u["!comments"])),delete u["!comments"],delete u["!legacy"]}d["!id"].rId1&&bd(o,$p(r),qp(d))}return null!=t.Strings&&t.Strings.length>0&&(bd(o,r="xl/sharedStrings."+n,Hh(t.Strings,t)),s.strs.push(r),Yp(t.wbrels,-1,"sharedStrings."+n,Kp.SST)),bd(o,r="xl/workbook."+n,Hg(e)),s.workbooks.push(r),Yp(t.rels,1,r,Kp.WB),bd(o,r="xl/theme/theme1.xml",vf(e.Themes,t)),s.themes.push(r),Yp(t.wbrels,-1,"theme/theme1.xml",Kp.THEME),bd(o,r="xl/styles."+n,af(e,t)),s.styles.push(r),Yp(t.wbrels,-1,"styles."+n,Kp.STY),e.vbaraw&&a&&(bd(o,r="xl/vbaProject.bin",e.vbaraw),s.vba.push(r),Yp(t.wbrels,-1,"vbaProject.bin",Kp.VBA)),bd(o,r="xl/metadata."+n,wf()),s.metadata.push(r),Yp(t.wbrels,-1,"metadata."+n,Kp.XLMETA),m.length>1&&(bd(o,r="xl/persons/person.xml",function(e){var t=[kd,Ud("personList",null,{xmlns:qd,"xmlns:x":nu[0]}).replace(/[\/]>/,">")];return e.forEach((function(e,n){t.push(Ud("person",null,{displayName:e,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:e,providerId:"None"}))})),t.push(""),t.join("")}(m)),s.people.push(r),Yp(t.wbrels,-1,"persons/person.xml",Kp.PEOPLE)),bd(o,"[Content_Types].xml",Vp(s,t)),bd(o,"_rels/.rels",qp(t.rels)),bd(o,"xl/_rels/workbook.xml.rels",qp(t.wbrels)),delete t.revssf,delete t.ssf,o}function $y(e,t){var n="";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":n=Vc(e.slice(0,12));break;case"binary":n=e;break;default:throw new Error("Unrecognized type "+(t&&t.type||"undefined"))}return[n.charCodeAt(0),n.charCodeAt(1),n.charCodeAt(2),n.charCodeAt(3),n.charCodeAt(4),n.charCodeAt(5),n.charCodeAt(6),n.charCodeAt(7)]}function qy(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Jm(t.file,Ym.write(e,{type:Kc?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return Ym.write(e,t)}function Yy(e,t){var n={},a=Kc?"nodebuffer":"undefined"!==typeof Uint8Array?"array":"string";if(t.compression&&(n.compression="DEFLATE"),t.password)n.type=a;else switch(t.type){case"base64":n.type="base64";break;case"binary":n.type="string";break;case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");case"buffer":case"file":n.type=a;break;default:throw new Error("Unrecognized type "+t.type)}var s=e.FullPaths?Ym.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[n.type]||n.type,compression:!!t.compression}):e.generate(n);if("undefined"!==typeof Deno&&"string"==typeof s){if("binary"==t.type||"base64"==t.type)return s;s=new Uint8Array(Xc(s))}return t.password&&"undefined"!==typeof encrypt_agile?qy(encrypt_agile(s,t.password),t):"file"===t.type?Jm(t.file,s):"string"==t.type?Ld(s):s}function Zy(e,t,n){n||(n="");var a=n+e;switch(t.type){case"base64":return Gc(Rd(a));case"binary":return Rd(a);case"string":return e;case"file":return Jm(t.file,a,"utf8");case"buffer":return Kc?$c(a,"utf8"):"undefined"!==typeof TextEncoder?(new TextEncoder).encode(a):Zy(a,{type:"binary"}).split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function Xy(e,t){switch(t.type){case"string":case"base64":case"binary":for(var n="",a=0;a0&&(s=0);var d=Ju(l.s.r),u=[],p=[],h=0,f=0,g=Array.isArray(e),y=l.s.r,v=0,b={};g&&!e[y]&&(e[y]=[]);var w=c.skipHidden&&e["!cols"]||[],k=c.skipHidden&&e["!rows"]||[];for(v=l.s.c;v<=l.e.c;++v)if(!(w[v]||{}).hidden)switch(u[v]=ep(v),n=g?e[y][v]:e[u[v]+d],a){case 1:o[v]=v-l.s.c;break;case 2:o[v]=u[v];break;case 3:o[v]=c.header[v-l.s.c];break;default:if(null==n&&(n={w:"__EMPTY",t:"s"}),i=r=ip(n,null,c),f=b[r]||0){do{i=r+"_"+f++}while(b[i]);b[r]=f,b[i]=1}else b[r]=1;o[v]=i}for(y=l.s.r+s;y<=l.e.r;++y)if(!(k[y]||{}).hidden){var _=ev(e,l,y,u,a,o,g,c);(!1===_.isempty||(1===a?!1!==c.blankrows:c.blankrows))&&(p[h++]=_.row)}return p.length=h,p}var nv=/"/g;function av(e,t,n,a,s,o,r,i){for(var l=!0,c=[],m="",d=Ju(n),u=t.s.c;u<=t.e.c;++u)if(a[u]){var p=i.dense?(e[n]||[])[u]:e[a[u]+d];if(null==p)m="";else if(null!=p.v){l=!1,m=""+(i.rawNumbers&&"n"==p.t?p.v:ip(p,null,i));for(var h=0,f=0;h!==m.length;++h)if((f=m.charCodeAt(h))===s||f===o||34===f||i.forceQuotes){m='"'+m.replace(nv,'""')+'"';break}"ID"==m&&(m='"ID"')}else null==p.f||p.F?m="":(l=!1,(m="="+p.f).indexOf(",")>=0&&(m='"'+m.replace(nv,'""')+'"'));c.push(m)}return!1===i.blankrows&&l?null:c.join(r)}function sv(e,t){var n=[],a=null==t?{}:t;if(null==e||null==e["!ref"])return"";var s=op(e["!ref"]),o=void 0!==a.FS?a.FS:",",r=o.charCodeAt(0),i=void 0!==a.RS?a.RS:"\n",l=i.charCodeAt(0),c=new RegExp(("|"==o?"\\|":o)+"+$"),m="",d=[];a.dense=Array.isArray(e);for(var u=a.skipHidden&&e["!cols"]||[],p=a.skipHidden&&e["!rows"]||[],h=s.s.c;h<=s.e.c;++h)(u[h]||{}).hidden||(d[h]=ep(h));for(var f=0,g=s.s.r;g<=s.e.r;++g)(p[g]||{}).hidden||null!=(m=av(e,s,g,d,r,l,o,a))&&(a.strip&&(m=m.replace(c,"")),(m||!1!==a.blankrows)&&n.push((f++?i:"")+m));return delete a.dense,n.join("")}function ov(e,t){t||(t={}),t.FS="\t",t.RS="\n";var n=sv(e,t);if("undefined"==typeof Bc||"string"==t.type)return n;var a=Bc.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+a}function rv(e,t,n){var a,s=n||{},o=+!s.skipHeader,r=e||{},i=0,l=0;if(r&&null!=s.origin)if("number"==typeof s.origin)i=s.origin;else{var c="string"==typeof s.origin?tp(s.origin):s.origin;i=c.r,l=c.c}var m={s:{c:0,r:0},e:{c:l,r:i+t.length-1+o}};if(r["!ref"]){var d=op(r["!ref"]);m.e.c=Math.max(m.e.c,d.e.c),m.e.r=Math.max(m.e.r,d.e.r),-1==i&&(i=d.e.r+1,m.e.r=i+t.length-1+o)}else-1==i&&(i=0,m.e.r=t.length-1+o);var u=s.header||[],p=0;t.forEach((function(e,t){Qm(e).forEach((function(n){-1==(p=u.indexOf(n))&&(u[p=u.length]=n);var c=e[n],m="z",d="",h=np({c:l+p,r:i+t+o});a=iv(r,h),!c||"object"!==typeof c||c instanceof Date?("number"==typeof c?m="n":"boolean"==typeof c?m="b":"string"==typeof c?m="s":c instanceof Date?(m="d",s.cellDates||(m="n",c=sd(c)),d=s.dateNF||dm[14]):null===c&&s.nullError&&(m="e",c=0),a?(a.t=m,a.v=c,delete a.w,delete a.R,d&&(a.z=d)):r[h]=a={t:m,v:c},d&&(a.z=d)):r[h]=c}))})),m.e.c=Math.max(m.e.c,l+u.length-1);var h=Ju(i);if(o)for(p=0;p=65535)throw new Error("Too many worksheets");if(a&&e.SheetNames.indexOf(n)>=0){var o=n.match(/(^.*?)(\d+)$/);s=o&&+o[2]||0;var r=o&&o[1]||n;for(++s;s<=65535&&-1!=e.SheetNames.indexOf(n=r+s);++s);}if(Ug(n),e.SheetNames.indexOf(n)>=0)throw new Error("Worksheet with name |"+n+"| already exists!");return e.SheetNames.push(n),e.Sheets[n]=t,n}function mv(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}var dv={encode_col:ep,encode_row:Ju,encode_cell:np,encode_range:sp,decode_col:Qu,decode_row:Xu,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:tp,decode_range:ap,format_cell:ip,sheet_add_aoa:cp,sheet_add_json:rv,sheet_add_dom:wy,aoa_to_sheet:mp,json_to_sheet:function(e,t){return rv(null,e,t)},table_to_sheet:ky,table_to_book:function(e,t){return lp(ky(e,t),t)},sheet_to_csv:sv,sheet_to_txt:ov,sheet_to_json:tv,sheet_to_html:by,sheet_to_formulae:function(e){var t,n="",a="";if(null==e||null==e["!ref"])return[];var s,o=op(e["!ref"]),r="",i=[],l=[],c=Array.isArray(e);for(s=o.s.c;s<=o.e.c;++s)i[s]=ep(s);for(var m=o.s.r;m<=o.e.r;++m)for(r=Ju(m),s=o.s.c;s<=o.e.c;++s)if(n=i[s]+r,a="",void 0!==(t=c?(e[m]||[])[s]:e[n])){if(null!=t.F){if(n=t.F,!t.f)continue;a=t.f,-1==n.indexOf(":")&&(n=n+":"+n)}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}}l[l.length]=n+"="+a}return l},sheet_to_row_object_array:tv,sheet_get_cell:iv,book_new:lv,book_append_sheet:cv,book_set_sheet_visibility:function(e,t,n){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 n=e.SheetNames.indexOf(t);if(n>-1)return n;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]={}),n){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+n)}e.Workbook.Sheets[a].Hidden=n},cell_set_number_format:function(e,t){return e.z=t,e},cell_set_hyperlink:mv,cell_set_internal_link:function(e,t,n){return mv(e,"#"+t,n)},cell_add_comment:function(e,t,n){e.c||(e.c=[]),e.c.push({t:t,a:n||"SheetJS"})},sheet_set_array_formula:function(e,t,n,a){for(var s="string"!=typeof t?t:op(t),o="string"==typeof t?t:sp(t),r=s.s.r;r<=s.e.r;++r)for(var i=s.s.c;i<=s.e.c;++i){var l=iv(e,r,i);l.t="n",l.F=o,delete l.v,r==s.s.r&&i==s.s.c&&(l.f=n,a&&(l.D=!0))}return e},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};Oc.version;function uv(e){const n=t.Children.map(e,(e=>{var n;if(!t.isValidElement(e))return null;const a=(null===e||void 0===e||null===(n=e.props)||void 0===n?void 0:n.template)||nc.STRING;return{...e.props,template:a}})),a=Array.from(n).filter((e=>null===e||void 0===e?void 0:e.title));return a}function pv(e){return e.map((e=>xe.Z.get(e.title||"")))}function hv(e){return t=>e.map((e=>{let n=e.properties?t[e.properties]:t;if(e.formatter===Kn)return(a=n)?new Date(a).toISOString().substring(0,10).split("-").reverse().join("."):"";var a;if(e.formatter&&(n=e.formatter(n)),Array.isArray(n))return n.length;const s=typeof n;return"object"===s?Object.entries(n).map((e=>e.join(": "))).join(", "):"string"===s?n.replace(".",","):n}))}function fv(e,t,n){const a=uv(t),s=hv(a),o=[pv(a),...e.map(s)],r=dv.aoa_to_sheet(o);r["!cols"]=a.map((()=>({width:20})));const i=dv.book_new();dv.book_append_sheet(i,r,"Sheet1"),function(e,t,n){var a=n||{};a.type="file",a.file=t,Qy(a),Jy(e,a)}(i,"".concat(n,".xlsx"))}var gv=(0,gn.Z)("getPath");function yv(e){return e?Array.isArray(e)?e.join("."):"object"===typeof e?[e.type,e.page].join("."):e:""}const vv=new class{constructor(){Object.defineProperty(this,gv,{value:yv}),this.key="view_settings",this.version=1,this.settings={},this.load(),(0,Gt.rC)(this,{settings:Gt.LO,load:Gt.aD,setItem:Gt.aD})}load(){const e=JSON.parse(localStorage.getItem(this.key)||"{}")||{};e.version===this.version&&(this.settings=e.settings)}save(){0!==Object.keys(this.settings).length?localStorage.setItem(this.key,JSON.stringify({version:this.version,settings:this.settings})):localStorage.removeItem(this.key)}setItem(e,t,n){const a=(0,fn.Z)(this,gv)[gv](e);a&&(t&&t!==n?this.settings[a]=t:delete this.settings[a],this.save())}getItem(e,t){var n;const a=(0,fn.Z)(this,gv)[gv](e);return(null===(n=this.settings)||void 0===n?void 0:n[a])||t}},bv=vv,wv="DataView_data_view_buttons__yCbg3",kv="DataView_data_view_icon__XKD50";function _v(e){let{rowsForExcel:n=[],rows:a=[],sort:s=[],type:o,columnCount:r,className:i,disabledRow:l,updateSort:c,children:m}=e;const{t:d}=Bt(),u=Q(),p=bv.getItem(u,jo?"cards":"table"),[h,f]=(0,t.useState)(o||p);if(!a||!a.length)return null;const g={table:"./assets/icons/Cards.svg",cards:"./assets/icons/Table.svg"}[h],y={table:"\u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u043a\u0430\u0440\u0442\u043e\u0447\u043a\u0430\u043c\u0438",cards:"\u041e\u0442\u043e\u0431\u0440\u0430\u0437\u0438\u0442\u044c \u0442\u0430\u0431\u043b\u0438\u0446\u043e\u0439"}[h];return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)("div",{style:{position:"relative"},children:(0,lo.jsxs)("div",{className:wv,children:[!jo&&(0,lo.jsx)("img",{title:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c XLSX",src:"./assets/icons/Download.svg",className:kv,onClick:()=>{const e=d("sidebar.".concat(u.type,".").concat(u.page));fv(n||a,m,e)}}),!jo&&(0,lo.jsx)("img",{title:y,src:g,className:kv,onClick:()=>{const e="table"===h?"cards":"table";f(e),bv.setItem(u,e,"table")}})]})}),"table"===h&&(0,lo.jsx)(Qi,{template:"table",children:(0,lo.jsx)(fc,{rows:a,sort:s,disabledRow:l,updateSort:c,children:m})}),"cards"===h&&(0,lo.jsx)(jc,{items:a,columnCount:r,className:i,children:m})]})}_v.defaultProps={rows:[],sort:[],type:void 0,columnCount:void 0,updateSort:()=>{}};const xv=_v;function Tv(e){let{template:t,title:n,properties:a,prefixes:s,suffixes:o,formatter:r,className:i,style:l,isFixed:c,isSortable:m,isResizable:d,isDraggable:u,isShow:p,minWidth:h,width:f,onClick:g}=e;return(0,lo.jsx)(lo.Fragment,{children:{template:t,title:n,properties:a,prefixes:s,suffixes:o,formatter:r,className:i,style:l,isFixed:c,isSortable:m,isResizable:d,isDraggable:u,isShow:p,minWidth:h,width:f,onClick:g}})}Tv.defaultProps={title:"",prefixes:[""],suffixes:[""],formatter:void 0,className:"",isDisabled:!1,isFixed:!1,isSortable:!1,isResizable:!1,isDraggable:!1,isShow:!0,minWidth:void 0,width:void 0,onClick:void 0};const Sv=Tv;function Cv(e,t){let n=0,a=0;const s=[];return e.forEach((e=>{n+=e.width,a+=e.value,e.title&&s.push(e.title)})),{title:t.otherTitle,value:a,width:n,description:s.join(", ")}}function Ev(e,t){const n=Object.entries(e).sort(((e,n)=>t.order.indexOf(e[0])-t.order.indexOf(n[0]))),a=n.reduce(((e,t)=>e+t[1]),0),s=[],o=[],r=[];return n.forEach((e=>{let[n,i]=e;const l=function(e,t){return Math.round(e*(100/t))}(i||0,a),c={title:n,value:i,width:l};s.push(c),l>=t.limit?o.push(c):r.push(c)})),0===r.length?o:1===r.length?s:[...o,Cv(r,t)]}function Av(e){let{value:t,width:n,title:a,description:s,suffix:o,color:r,className:i,formatter:l}=e;const{t:c}=Bt();if(!n||n<=0)return null;const m=c(a||""),d=c(s||"")||m,u=null===l||void 0===l?void 0:l(t),p=o?" ".concat(c(o||"")):"",h=t?"".concat(n,"% (").concat(u).concat(p,") ").concat(d):"".concat(n,"% ").concat(d);return(0,lo.jsx)("div",{className:i,style:{width:"".concat(n,"%"),color:null===r||void 0===r?void 0:r.second,padding:m?"0 0 0 4px":"0",backgroundColor:null===r||void 0===r?void 0:r.first},title:h,children:m})}Av.defaultProps={value:0,width:0,title:"",description:"",suffix:"",color:null,className:"",formatter:e=>e};const Dv=Av,jv="styles_line_chart__Os6FB",Ov="styles_line_chart_item__h5Dv1",Nv="styles_line_chart_sub_item__70rAH";function Pv(e){let{options:t,value:n,details:a,className:s}=e;if(0===n)return null;let o=Math.round((n||100)*(100/t.max));if(o<1)return null;if(!a)return(0,lo.jsx)("div",{className:"".concat(jv," ").concat(s||""),children:(0,lo.jsx)(Dv,{value:n,width:o,suffix:t.suffix,formatter:t.formatter,className:Ov})});const r=Ev(a,t).map((e=>(0,lo.jsx)(Dv,{title:e.title,value:e.value,width:e.width,color:t.color.get(e.title),suffix:t.suffix,formatter:t.formatter,description:e.description,className:Nv},e.title)));return(0,lo.jsx)("div",{className:"".concat(jv," ").concat(s||""),children:(0,lo.jsx)("div",{className:Ov,style:{width:"".concat(o,"%")},children:r})})}Pv.defaultProps={value:void 0,details:void 0,className:""};const Iv=Pv;class Lv{constructor(e){this.refColorByTitle={};const t=["#7F9BE0","#E9A5A1","#C2ECC1","#B6BAE9","#A18BE0","#FFC178","#75CCE0","#B2E069","#EC95B6","#E2DA84","#A7C0FF","#D7D4B1","#E0BA96","#E0BE69","#C0D79C","#B6C5C9","#9E98AD","#AACFD8","#BAB2D0","#DCBAC7"];this.refColorByTitle=Object.fromEntries(e.map(((e,n)=>[e,{first:t[n],second:"#FFFFFF"}])))}get(e){return this.refColorByTitle[e]||Lv.DEFAULT}}function Rv(e){let{order:t,suffix:n,other:a,max:s,limit:o,formatter:r}=e;return{max:s instanceof Array?Math.max(...s):s||100,order:t||[],suffix:null!==n&&void 0!==n?n:"commits",otherTitle:null!==a&&void 0!==a?a:"...",color:null!==t&&void 0!==t&&t.length?new Lv(t):null,limit:o||15,formatter:r||(e=>e)}}Lv.DEFAULT="#D0D1D2";const Fv="Banner_banner__NKjAn";const Mv=function(e){let{className:t}=e;const n=po.getBanner();if(!n)return null;const{ref:a,link:s,title:o,banner:r,bannerText:i,color:l,backgroundColor:c}=n,m={title:o,to:s||"",target:"_blank",className:t};if(r)return(0,lo.jsx)(we,{...m,children:(0,lo.jsx)("div",{className:Fv,style:{backgroundImage:"url(".concat(r,")")}})});if(!r){const e=(a||"").split("_").splice(1).join(" ").toUpperCase(),t=c||"linear-gradient(135deg, rgba(64,117,252,1) 0%, rgba(172,179,246,1) 100%)";return(0,lo.jsx)(we,{...m,children:(0,lo.jsx)("div",{title:o,className:Fv,style:{color:l,background:t},children:i||e||""})})}return null},Wv="card_recommendations_card__2kGe-",Bv="card_recommendations_card_for_print__mEWP4",Uv="card_recommendations_card_title__qilbG",zv="card_recommendations_card_icon__LGkDs",Hv="card_recommendations_card_button__HWnqd",Gv="card_recommendations_card_info__3Etxk",Vv="card_recommendations_card_fact__aJVeI",Kv="card_recommendations_card_warning__5FzYe",$v="card_recommendations_card_error__YxpZd",qv="card_recommendations_card_banner__s6avK";const Yv=function(e){var t;let{recommendation:n,onClick:a}=e;const{t:s}=Bt();if(!n)return null;const o=function(e){var t;const n=null===e||void 0===e?void 0:e.type;return null!==(t={[ea.INFO]:Gv,[ea.FACT]:Vv,[ea.WARNING]:Kv,[ea.ALERT]:$v}[n||ea.INFO])&&void 0!==t?t:Vv}(n),r=er(n),i=null===n||void 0===n||null===(t=n.arguments)||void 0===t?void 0:t.title,l=tr(n).split("\n").shift();return(0,lo.jsxs)("div",{className:"".concat(Wv," ").concat(o),onClick:jo?a:void 0,children:[(0,lo.jsxs)("h5",{className:Uv,children:[(0,lo.jsx)("span",{className:zv}),xe.Z.get(r,i)]}),(0,lo.jsx)(Qo,{style:{color:"#12131B"},text:l||""}),!jo&&(0,lo.jsx)(Ao,{mode:"link",className:Hv,onClick:a,children:s("recommendations.modal.open")})]})};const Zv=function(e){var t;let{recommendation:n}=e;if(!n)return null;const a=function(e){var t;const n=null===e||void 0===e?void 0:e.type;return null!==(t={[ea.INFO]:Gv,[ea.FACT]:Vv,[ea.WARNING]:Kv,[ea.ALERT]:$v}[n||ea.INFO])&&void 0!==t?t:Vv}(n),s=er(n),o=null===n||void 0===n||null===(t=n.arguments)||void 0===t?void 0:t.title,r=tr(n);return(0,lo.jsxs)("div",{className:"".concat(Wv," ").concat(Bv," ").concat(a),children:[(0,lo.jsxs)("h5",{className:Uv,children:[(0,lo.jsx)("span",{className:zv}),xe.Z.get(s,o)]}),(0,lo.jsx)(Qo,{style:{color:"#12131B"},text:r})]})},Xv="styles_recommendations_container__vICaJ",Jv="styles_recommendations_container_for_print__boNzY";function Qv(e){let{recommendations:t,mode:n}=e,a=(t||[]).filter((e=>e)).map((e=>"print"===n?(0,lo.jsx)(Zv,{recommendation:e},e[1]):(0,lo.jsx)(Yv,{recommendation:e,onClick:()=>{nr.open(e)}},e[1])));if(!a.length)return null;"print"!==n&&(a=function(e){const t="".concat(Wv," ").concat(qv),n=(0,lo.jsx)(Mv,{className:t}),a=Math.floor(Math.random()*e.length),s=e.splice(a);return[...e,n,...s]}(a));const s=xe.Z.get("recommendations.title"),o="print"===n?"".concat(Xv," scroll_x ").concat(Jv):"".concat(Xv," scroll_x");return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Bl,{title:s}),(0,lo.jsx)("div",{className:o,onTouchStart:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:a})]})}Qv.defaultProps={mode:void 0};const eb=Qv;function tb(e,t,n){return Math.max(...e.content.map((e=>n?e[t][n]||0:e[t]||0)))}function nb(e,t){return tb(e,t,"length")}function ab(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;const{t:o}=Bt();if(!t)return null;const[r,i,l]=[o("page.team.author.type.work"),o("page.team.author.type.dismissed"),o("page.team.author.type.staff")],c=o("page.team.author.worked"),m=o("page.team.author.losses"),d=Rv({order:[c,m],suffix:"page.team.author.days"}),u=Rv({max:nb(t,"tasks"),suffix:"page.team.author.tasksSmall"}),p=Rv({max:tb(t,"commits")}),h=Rv({order:so.dataGrip.type.list});return(0,lo.jsxs)(xv,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,lo.jsx)(Sv,{isFixed:!0,template:nc.STRING,properties:"author",width:200}),(0,lo.jsx)(Sv,{template:e=>{let t=r;return e.isDismissed&&(t=i),e.isStaff&&(t=l),(0,lo.jsx)(cl,{value:t})},width:100}),(0,lo.jsx)(Sv,{isSortable:"daysWorked",title:"page.team.author.workedLosses",minWidth:300,template:e=>(0,lo.jsx)(Iv,{options:d,details:e}),formatter:e=>({[c]:e.daysWorked,[m]:e.daysLosses})}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"tasks",formatter:e=>(null===e||void 0===e?void 0:e.length)||0}),(0,lo.jsx)(Sv,{isSortable:!0,properties:"tasks",title:"page.team.author.tasks",minWidth:200,template:e=>(0,lo.jsx)(Iv,{options:u,value:e}),formatter:e=>(null===e||void 0===e?void 0:e.length)||0}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,title:"page.team.author.daysForTask",properties:"daysForTask",formatter:Zn,width:120}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,title:"page.team.author.scopes",properties:"scopes"}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"commits"}),(0,lo.jsx)(Sv,{isSortable:!0,title:"page.team.author.commits",properties:"commits",minWidth:100,template:e=>(0,lo.jsx)(Iv,{options:p,value:e})}),(0,lo.jsx)(Sv,{title:"page.team.author.types",properties:"types",width:400,template:e=>(0,lo.jsx)(Iv,{options:h,details:e})}),(0,lo.jsx)(Sv,{template:nc.NUMBER,title:"page.team.author.moneyAll",properties:"moneyAll",formatter:qn}),(0,lo.jsx)(Sv,{template:nc.NUMBER,title:"page.team.author.moneyWorked",properties:"moneyWorked",formatter:qn}),(0,lo.jsx)(Sv,{template:nc.NUMBER,title:"page.team.author.moneyLosses",properties:"moneyLosses",formatter:qn})]})}ab.defaultProps={response:void 0};const sb=dn((e=>{var t;let{mode:n}=e;const{t:a}=Bt(),s=so.dataGrip.author.statistic;if(null===s||void 0===s||!s.length)return"print"!==n?(0,lo.jsx)(bl,{}):null;const o=null===(t=so.dataGrip.recommendations.team)||void 0===t?void 0:t.byAuthor;return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(eb,{mode:n,recommendations:o}),(0,lo.jsx)(Bl,{title:"page.team.author.title"}),(0,lo.jsxs)(Dl,{to:"response",loader:(e,t)=>Fl({content:s,pagination:e,sort:t,mode:n}),watch:"".concat(n).concat(so.dataGrip.hash),children:[(0,lo.jsx)(ab,{mode:n,rowsForExcel:s}),(0,lo.jsx)(Rl,{})]}),(0,lo.jsxs)(Qi,{children:[(0,lo.jsx)(al,{children:(0,lo.jsx)(Qo,{text:a("page.team.author.description1")})}),(0,lo.jsx)(al,{children:(0,lo.jsx)(Qo,{text:a("page.team.author.description2")})})]})]})})),ob=sb,rb="BarChart_vertical_bar__CpfhB",ib="BarChart_vertical_bar_item__cpWYe";const lb=function(e){let{dots:t,selected:n,onClick:a}=e;const s=100/t.length+"%",o=100/Math.max(...t.map((e=>e.value))),r=t.map(((e,t)=>{return(0,lo.jsx)("div",{className:ib,style:{width:s,height:"".concat((r=e.value,r*o),"%"),backgroundColor:e.meta===n?"#ED675F":""},title:e.title,onClick:()=>{a&&a(e)}},"".concat(e.title,"_").concat(t));var r}));return(0,lo.jsx)("div",{className:rb,children:r})},cb="ExternalLink_external_link__F2RSV";const mb=function(e){let{link:t,text:n}=e;return(0,lo.jsx)(we,{to:t,target:"_blank",className:cb,children:n})},db={day_info_wrapper:"DayInfo_day_info_wrapper__3cGCj",day_info_author:"DayInfo_day_info_author__C1F-A",day_info_date:"DayInfo_day_info_date__8Nk8m",day_info_message:"DayInfo_day_info_message__4JhXm",day_info_link:"DayInfo_day_info_link__-Ou+n",day_info_row:"DayInfo_day_info_row__K-1mt"};function ub(e){let{commits:t}=e;const n=t.map((e=>(0,lo.jsxs)("div",{className:db.day_info_row,children:[(0,lo.jsx)("span",{className:db.day_info_date,children:$n(e.date)}),(0,lo.jsx)("span",{className:db.day_info_message,children:e.message})]},e.date)));return(0,lo.jsx)(lo.Fragment,{children:n})}function pb(e){let{tasks:t}=e;const n=Object.entries(t).map((e=>{var t,n,a,s;let[o,r]=e;const i=_s.pr.prByTask[o];return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsxs)("div",{className:db.day_info_link,children:[(0,lo.jsx)(mb,{link:"".concat((null===Wn||void 0===Wn||null===(t=Wn.settings)||void 0===t||null===(n=t.linksPrefix)||void 0===n?void 0:n.task)||"/").concat(o),text:o}),i&&(0,lo.jsx)(mb,{link:"".concat((null===Wn||void 0===Wn||null===(a=Wn.settings)||void 0===a||null===(s=a.linksPrefix)||void 0===s?void 0:s.pr)||"/").concat(i),text:"PR"})]}),(0,lo.jsx)(ub,{commits:r})]})}));return(0,lo.jsx)(lo.Fragment,{children:n})}function hb(e){var t,n;let{day:a,order:s,events:o,timestamp:r}=e;const{t:i}=Bt(),l=(null===o||void 0===o||null===(t=o.firstCommit)||void 0===t?void 0:t[r||""])||[],c=(null===o||void 0===o||null===(n=o.lastCommit)||void 0===n?void 0:n[r||""])||[];let m=0;const d=Object.entries(null===a||void 0===a?void 0:a.tasksByAuthor).sort(((e,t)=>s.indexOf(e[0])-s.indexOf(t[0]))).map((e=>{let[t,n]=e;m+=Object.keys(n).length;let a="";return l.includes(t)&&(a=i("page.team.month.first")),c.includes(t)&&(a=i("page.team.month.last")),(0,lo.jsxs)("div",{className:db.day_info,children:[(0,lo.jsx)("h3",{className:db.day_info_author,children:"".concat(t," ").concat(a)}),(0,lo.jsx)(pb,{tasks:n})]},t)}));return(0,lo.jsx)("div",{className:db.day_info_wrapper,style:{columnCount:m>20?2:1},children:d})}hb.defaultProps={events:void 0,timestamp:void 0};const fb=hb;const gb=function(e){let{statistic:n}=e;const a=n.commitsByTimestampCounter.maxData,[s,o]=(0,t.useState)(a),r=n.allCommitsByTimestamp.map((e=>({title:"".concat(e.timestamp," - ").concat(e.commits," \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432"),value:e.commits,meta:e})));if(null===r||void 0===r||!r.length)return(0,lo.jsx)(bl,{});const[i,l]=Gn(a.timestamp),c=[{title:i,description:"page.common.commits.description",type:ea.FACT,arguments:{description:[l]}}];return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(eb,{recommendations:c}),(0,lo.jsx)(Bl,{title:"page.common.commits.title"}),(0,lo.jsx)(Qi,{template:"box",children:(0,lo.jsx)(lb,{dots:r,selected:s,onClick:e=>{o(e.meta)}})}),(0,lo.jsx)("br",{}),(0,lo.jsx)("br",{}),(0,lo.jsx)(Bl,{title:xe.Z.get("page.common.commits.title2",Kn(null===s||void 0===s?void 0:s.timestamp),null===s||void 0===s?void 0:s.commits)}),(0,lo.jsx)(Qi,{template:"box",children:(0,lo.jsx)(fb,{day:s,order:so.dataGrip.author.list})})]})},yb=dn((()=>{const e=so.dataGrip.timestamp.statistic;return(0,lo.jsx)(gb,{statistic:e})}));const vb=function(e){let{statistic:n}=e;const a=n.changesByTimestampCounter.maxData,[s,o]=(0,t.useState)(a),r=n.allCommitsByTimestamp.map((e=>({title:"".concat(e.timestamp," - ").concat(e.addedAndChanges," \u0441\u0442\u0440\u043e\u043a \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438"),value:e.addedAndChanges,meta:e})));if(null===r||void 0===r||!r.length)return(0,lo.jsx)(bl,{});const[i,l]=Gn(a.timestamp),c=[{title:i,description:" (".concat(l,") \u0431\u044b\u043b\u043e \u0432\u043b\u0438\u0442\u043e \u0431\u043e\u043b\u044c\u0448\u0435 \u0432\u0441\u0435\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439."),type:ea.FACT,arguments:{description:[l]}}];return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(eb,{recommendations:c}),(0,lo.jsx)(Bl,{title:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u044b\u0445 \u0441\u0442\u0440\u043e\u043a \u043f\u043e \u0434\u043d\u044f\u043c"}),(0,lo.jsx)(Qi,{template:"box",children:(0,lo.jsx)(lb,{dots:r,selected:s,onClick:e=>{o(e.meta)}})}),(0,lo.jsx)("br",{}),(0,lo.jsx)("br",{}),(0,lo.jsx)(Bl,{title:"".concat(Kn(null===s||void 0===s?void 0:s.timestamp)," \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u0438 ").concat((null===s||void 0===s?void 0:s.addedAndChanges)||"_"," \u0441\u0442\u0440\u043e\u043a")}),(0,lo.jsx)(Qi,{template:"box",children:(0,lo.jsx)(fb,{day:s,order:so.dataGrip.author.list})})]})},bb=dn((()=>{const e=so.dataGrip.timestamp.statistic;return(0,lo.jsx)(vb,{statistic:e})})),wb={hours_chart_user:"HoursChart_hours_chart_user__Ndvkk",hours_chart_title:"HoursChart_hours_chart_title__P3cEf",hours_chart_data:"HoursChart_hours_chart_data__6tpxJ",hours_chart_day:"HoursChart_hours_chart_day__cZQn+",hours_chart_day_time:"HoursChart_hours_chart_day_time__gcow9",hours_chart_day_name:"HoursChart_hours_chart_day_name__FakbK",hours_chart_hour:"HoursChart_hours_chart_hour__mKEGI",hours_chart_day_time_mm:"HoursChart_hours_chart_day_time_mm__TX2fN"};const kb=function(){const e=new Array(25).fill(1).map(((e,t)=>t?(0,lo.jsxs)("div",{className:wb.hours_chart_day_time,children:[(0,lo.jsx)("span",{className:wb.hours_chart_day_time_hh,children:Vn(t-1)}),(0,lo.jsx)("span",{className:wb.hours_chart_day_time_mm,children:":00"})]},t):(0,lo.jsx)("div",{className:wb.hours_chart_day_name},t)));return(0,lo.jsx)(lo.Fragment,{children:e})};const _b=function(e){let{week:t,day:n,max:a}=e;const s=t.map(((e,t)=>{const s=function(e,t){const n=100*(e||0)/t;return(n-n%1)/100}(e,a),o=s>.2?"#FFFFFF":"#CBCBCD",r=n>4||t<7||t>20?"237, 103, 95":"65, 98, 181";return(0,lo.jsx)("div",{className:wb.hours_chart_hour,style:{color:o,backgroundColor:"rgba(".concat(r,", ").concat(s,")")},children:e||""},t)}));return(0,lo.jsx)(lo.Fragment,{children:s})},xb="legend_hours_chart_legend__MetHn",Tb="legend_hours_chart_legend_item__zwxrQ",Sb="legend_hours_chart_legend_work__uisVU",Cb="legend_hours_chart_legend_weekend__M2o-b",Eb="legend_hours_chart_legend_count__W8SZI",Ab="legend_hours_chart_legend_title__dyKCs";const Db=function(){const{t:e}=Bt();return(0,lo.jsxs)("div",{className:xb,children:[(0,lo.jsxs)("div",{className:Tb,children:[(0,lo.jsx)("div",{className:Sb}),(0,lo.jsx)("div",{className:Ab,children:e("uiKit.hoursChart.work")})]}),(0,lo.jsxs)("div",{className:Tb,children:[(0,lo.jsx)("div",{className:Cb}),(0,lo.jsx)("div",{className:Ab,children:e("uiKit.hoursChart.weekend")})]}),(0,lo.jsxs)("div",{className:Tb,children:[(0,lo.jsx)("div",{className:Eb,children:"42"}),(0,lo.jsx)("div",{className:Ab,children:e("uiKit.hoursChart.days")})]})]})};const jb=function(e){let{statistic:t}=e;const n=t.commitsByDayAndHour.map(((e,n)=>(0,lo.jsxs)("div",{className:wb.hours_chart_day,children:[(0,lo.jsx)("div",{className:wb.hours_chart_day_name,children:Hn(n,"short")}),(0,lo.jsx)(_b,{week:e,day:n,max:t.commitsByDayAndHourTotal[8]})]},n)));return(0,lo.jsxs)("div",{className:wb.hours_chart_user,children:[(0,lo.jsxs)("div",{className:wb.hours_chart_data,children:[(0,lo.jsx)("div",{className:wb.hours_chart_day,children:(0,lo.jsx)(kb,{})}),n]}),(0,lo.jsx)(Db,{})]})},Ob=dn((e=>{var t;let{mode:n}=e;const a=so.dataGrip.team.statistic,s=null===(t=so.dataGrip.recommendations.team)||void 0===t?void 0:t.byHour;return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(eb,{mode:n,recommendations:s}),(0,lo.jsx)(Bl,{title:"page.team.hours.title"}),(0,lo.jsx)(Qi,{template:"table",children:(0,lo.jsx)(jb,{statistic:a})})]})})),Nb=Ob,Pb="CandyChart_candy__6xQZk",Ib="CandyChart_candy_item__rSQb3",Lb="CandyChart_candy_title__CEfhb",Rb="CandyChart_candy_line__CFOFP",Fb="CandyChart_candy_value__+26Oz",Mb="CandyChart_candy_prefix__dboC2",Wb="CandyChart_candy_dot__XvYKs";const Bb=function(e){let{dots:t}=e;const n=100/Math.max(...t.map((e=>e.value))),a=t.map((e=>{return(0,lo.jsxs)("div",{className:Ib,children:[(0,lo.jsx)("div",{className:Lb,children:e.title}),(0,lo.jsxs)("div",{className:Rb,children:[(0,lo.jsx)("div",{className:Mb,children:e.value}),(0,lo.jsx)("div",{className:Fb,style:{width:"".concat((t=e.value,t*n),"%"),backgroundColor:e.color||""}}),(0,lo.jsx)("div",{className:Wb,style:{backgroundColor:e.color||""}})]})]},e.title);var t}));return(0,lo.jsx)("div",{className:Pb,children:a})};const Ub=function(e){let{statistic:t,mode:n}=e;const a="print"===n?20:40,s=t.slice(0,a).map((e=>({title:e[0],value:e[1]})));if(null===s||void 0===s||!s.length)return(0,lo.jsx)(bl,{});const o=[{title:s[0].title,description:"page.common.words.description",type:ea.FACT,arguments:{description:[s[0].value]}}];return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(eb,{mode:n,recommendations:o}),(0,lo.jsx)(Bl,{title:"page.common.words.title"}),(0,lo.jsx)(Qi,{template:"table",children:(0,lo.jsx)(Bb,{dots:s})})]})},zb=dn((e=>{let{mode:t}=e;const n=so.dataGrip.team.statistic.wordStatistics;return(0,lo.jsx)(Ub,{mode:t,statistic:n})}));function Hb(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=Rv({order:so.dataGrip.type.list}),r=Rv({order:so.dataGrip.author.list});return(0,lo.jsxs)(xv,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,lo.jsx)(Sv,{isFixed:!0,template:nc.STRING,title:"page.team.scope.scope",properties:"scope",width:200}),(0,lo.jsx)(Sv,{template:nc.NUMBER,title:"page.team.scope.days",properties:"days"}),(0,lo.jsx)(Sv,{template:nc.NUMBER,title:"page.team.scope.authorsDays",properties:"authors",formatter:e=>Object.keys(e).map((t=>e[t].days||0)).reduce(((e,t)=>e+t),0)}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,title:"page.team.scope.tasks",properties:"tasks",formatter:e=>(null===e||void 0===e?void 0:e.length)||0}),(0,lo.jsx)(Sv,{template:nc.NUMBER,title:"page.team.scope.commits",properties:"commits"}),(0,lo.jsx)(Sv,{title:"page.team.scope.types",properties:"types",minWidth:200,template:e=>(0,lo.jsx)(Iv,{options:o,details:e})}),(0,lo.jsx)(Sv,{title:"page.team.scope.authors",properties:"authors",minWidth:200,formatter:e=>Object.fromEntries(Object.keys(e).map((t=>{var n;return[t,(null===(n=e[t])||void 0===n?void 0:n.commits)||0]}))),template:e=>(0,lo.jsx)(Iv,{options:r,details:e})}),(0,lo.jsx)(Sv,{template:nc.NUMBER,title:"page.team.scope.cost",properties:"cost",formatter:qn})]})}Hb.defaultProps={response:void 0};const Gb=dn((e=>{var t;let{mode:n}=e;const a=so.dataGrip.scope.statistic;if((null===a||void 0===a?void 0:a.length)<2)return"print"!==n?(0,lo.jsx)(bl,{}):null;const s=null===(t=so.dataGrip.recommendations.team)||void 0===t?void 0:t.byScope;return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(eb,{mode:n,recommendations:s}),(0,lo.jsx)(Bl,{title:"page.team.scope.title"}),(0,lo.jsxs)(Dl,{to:"response",loader:e=>Fl({content:a,pagination:e,mode:n}),watch:"".concat(n).concat(so.dataGrip.hash),children:[(0,lo.jsx)(Hb,{mode:n,rowsForExcel:a}),(0,lo.jsx)(Rl,{})]})]})})),Vb=Gb,Kb="styles_tempo__35OlM",$b="styles_tempo_wrapper__9G8QZ",qb="styles_tempo_column__-MszO",Yb="styles_tempo_column_wrapper__gOSJN",Zb="styles_tempo_header__h8S6V",Xb="styles_tempo_author__5oBlm",Jb="styles_tempo_header_title__fCsQX",Qb="styles_tempo_header_day__74koH";const ew=function(e){let{dayInfo:t}=e;return(0,lo.jsxs)("div",{className:Zb,children:[(0,lo.jsx)("p",{className:Jb,children:Kn(null===t||void 0===t?void 0:t.timestamp)}),(0,lo.jsx)("p",{className:Qb,children:Hn(null===t||void 0===t?void 0:t.day,"long")})]})};const tw=function(e){let{name:t}=e;return(0,lo.jsx)("div",{className:Xb,children:t||""})},nw="task_tempo_task__TNLYR",aw="task_tempo_task_wrapper__nKH-u",sw="task_tempo_task_header__XjSvi",ow="task_tempo_task_value__smF9i",rw="task_tempo_task_title__ZHB4o",iw="task_tempo_task_tag__vpHgX",lw="task_tempo_task_tags__bhnV8",cw="task_tempo_task_commits__I07Se",mw="task_tempo_task_hours__auht3",dw="task_tempo_task_icon__p1+3l";function uw(e){return"".concat(Vn(e.hours),":").concat(Vn(e.minutes))}function pw(e){const t=e[0],n=e[e.length-1];return t!==n?"c ".concat(uw(t)," \u0434\u043e ").concat(uw(n)):"\u0434\u043e ".concat(uw(t))}function hw(e){const t=new Set(e.map((e=>e.type))),n=Array.from(t).map((e=>(0,lo.jsx)("p",{className:iw,children:e},e)));return(0,lo.jsx)(lo.Fragment,{children:n})}function fw(e){var t,n,a,s;let{title:o,commits:r}=e;const i=_s.pr.prByTask[o];return(0,lo.jsxs)("div",{className:nw,children:[(0,lo.jsxs)("div",{className:sw,children:[(0,lo.jsxs)("div",{children:[(0,lo.jsx)(mb,{text:o,link:"".concat((null===Wn||void 0===Wn||null===(t=Wn.settings)||void 0===t||null===(n=t.linksPrefix)||void 0===n?void 0:n.task)||"/").concat(o)}),(0,lo.jsx)(mb,{text:"PR",link:"".concat((null===Wn||void 0===Wn||null===(a=Wn.settings)||void 0===a||null===(s=a.linksPrefix)||void 0===s?void 0:s.pr)||"/").concat(i)})]}),(0,lo.jsx)("div",{className:lw,children:hw(r)})]}),(0,lo.jsxs)("figure",{className:cw,children:[(0,lo.jsxs)("figure",{children:[(0,lo.jsx)("img",{src:"./assets/chart/commit.svg",className:dw}),(0,lo.jsx)("figcaption",{className:ow,children:r.length})]}),(0,lo.jsx)("figcaption",{className:rw,children:"\u041a\u043e\u043c\u043c\u0438\u0442\u044b"})]}),(0,lo.jsxs)("figure",{className:mw,children:[(0,lo.jsxs)("figure",{children:[(0,lo.jsx)("img",{src:"./assets/chart/clock.svg",className:dw}),(0,lo.jsx)("figcaption",{className:ow,children:pw(r)})]}),(0,lo.jsx)("figcaption",{className:rw,children:"\u0410\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c"})]})]},o)}const gw=function(e){let{tasks:t}=e;const n=Object.entries(t).map((e=>{let[t,n]=e;return(0,lo.jsx)(fw,{title:t,commits:n},t)}));return(0,lo.jsx)("div",{className:aw,children:n})},yw="chart_tempo_chart__rsJb1",vw="chart_tempo_chart_dashboard__aknVt",bw="chart_tempo_chart_dot__0JrVm",ww="chart_tempo_chart_legend__5j88z",kw="chart_tempo_chart_time__ijaMS";const _w=function(e){let{tasks:t}=e;const n=Object.values(t).flat(1).reduce(((e,t)=>(e[t.hours]+=t.changes+t.added+t.removed,e)),new Array(24).fill(0)).map(((e,t)=>{if(!e)return null;const n=4.166666666666667*t,a=Math.min(80,e/1.5);return(0,lo.jsx)("div",{className:"".concat(bw),title:"".concat(e," \u0441\u0442\u0440\u043e\u043a \u0441 ").concat(Vn(t),":00 \u0434\u043e ").concat(Vn(t+1),":00"),style:{left:"".concat(n,"%"),height:"".concat(a,"%")}},t)}));return(0,lo.jsxs)("div",{className:yw,children:[(0,lo.jsx)("div",{className:vw,children:n}),(0,lo.jsxs)("div",{className:ww,children:[(0,lo.jsx)("span",{className:kw,children:"00:00"}),(0,lo.jsx)("span",{className:kw,children:"06:00"}),(0,lo.jsx)("span",{className:kw,children:"12:00"}),(0,lo.jsx)("span",{className:kw,children:"18:00"}),(0,lo.jsx)("span",{className:kw,children:"00:00"})]})]})};function xw(e){let{dayInfo:t,order:n,author:a}=e;const s=Object.entries((null===t||void 0===t?void 0:t.tasksByAuthor)||{}).sort(((e,t)=>n.indexOf(e[0])-n.indexOf(t[0]))).filter((e=>{let[t]=e;return!a||t===a})).map((e=>{let[t,n]=e;return(0,lo.jsxs)("div",{children:[a?null:(0,lo.jsx)(tw,{name:t}),(0,lo.jsx)(_w,{tasks:n}),(0,lo.jsx)(gw,{tasks:n})]},t)}));return(0,lo.jsxs)("div",{className:qb,children:[(0,lo.jsx)(ew,{dayInfo:t}),(0,lo.jsx)("div",{className:"".concat(Yb," scroll_y"),children:s.length?s:(0,lo.jsx)(bl,{icon:"./assets/cards/commits.png",message:"\u0412 \u044d\u0442\u043e\u0442 \u0434\u0435\u043d\u044c \u0443 \u044d\u0442\u043e\u0433\u043e \u0441\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a\u0430 \u043d\u0435 \u0431\u044b\u043b\u043e \u043d\u0438 \u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u043c\u043c\u0438\u0442\u0430."})})]})}xw.defaultProps={order:[],author:""};const Tw=xw;Tw.defaultProps={order:[],author:""};const Sw=function(e){let{days:n,author:a,order:s}=e;const[o,r]=(0,t.useState)({}),i=(0,t.useRef)();(0,t.useEffect)((()=>{const e=null===i||void 0===i?void 0:i.current;(null===e||void 0===e?void 0:e.clientWidth)===(null===e||void 0===e?void 0:e.scrollWidth)&&r({overflowX:"hidden"})}),[]);const l=n.map((e=>(0,lo.jsx)(Tw,{dayInfo:e,author:a,order:s||[]},null===e||void 0===e?void 0:e.timestamp)));return(0,lo.jsx)("div",{ref:i,style:o,className:"".concat($b," scroll_x"),onTouchStart:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:(0,lo.jsx)("div",{className:Kb,children:l})})};function Cw(e){var t,n;let{className:a,value:s,options:o,reverse:r,onChange:i}=e,l=o.map((e=>e.id)).indexOf(s);-1===l&&(l=0);const c=l<=0,m=l>=o.length-1,d=null===(t=o[l-1])||void 0===t?void 0:t.id,u=null===(n=o[l+1])||void 0===n?void 0:n.id;return(0,lo.jsxs)("div",{className:"".concat(Zr," ").concat(a||""),children:[(0,lo.jsx)(Ao,{mode:"second",className:Xr,disabled:r?m:c,onClick:()=>{i(r?u:d)},children:"\xab"}),(0,lo.jsx)(Qr,{value:s,options:o,onChange:i}),(0,lo.jsx)(Ao,{mode:"second",className:Jr,disabled:r?c:m,onClick:()=>{i(r?d:u)},children:"\xbb"})]})}Cw.defaultProps={reverse:!1,className:""};const Ew=Cw,Aw="filters_table_filters__ea5FG",Dw="filters_table_filters_item__4-+2W";function jw(e){const t=(e||[]).reduce(((e,t)=>(e[t.week]||(e[t.week]=[]),e[t.week].push(t),e)),{});return Object.entries(t).map((e=>{const t=e[1][0],n=e[1][e[1].length-1];return{id:t.week,days:e[1],title:Xn({from:t.timestamp,to:n.timestamp})}}))}const Ow=dn((e=>{let{filters:n,onChange:a}=e;const{t:s}=Bt(),o=so.dataGrip.timestamp.statistic.allCommitsByTimestamp||[],r=(0,t.useMemo)((()=>jw(o)),[o]),i=so.dataGrip.author.list,l=(0,t.useMemo)((()=>function(e,t){const n=e.map(((e,t)=>({id:t+1,title:e})));return n.unshift({id:0,title:t("page.team.tree.filters.all")}),n}(i,s)),[i]);return(0,lo.jsxs)("div",{className:Aw,children:[(0,lo.jsx)(Ew,{title:"page.team.tree.filters.author",value:n.user,className:Dw,options:l,onChange:e=>{a({...n,user:e})}}),(0,lo.jsx)(Ew,{reverse:!0,title:"page.team.tree.filters.author",value:n.week||o[o.length-1].week,className:Dw,options:r.reverse(),onChange:e=>{a({...n,week:e})}})]})})),Nw=Ow;function Pw(e){let{response:t,order:n,user:a}=e;return t?(0,lo.jsx)(Sw,{days:t.content,author:a,order:n}):null}Pw.defaultProps={response:void 0};const Iw=dn((()=>{const e=so.dataGrip.timestamp.statistic.allCommitsByTimestamp||[],n=so.dataGrip.author.list||[],a=e[e.length-1],[s,o]=(0,t.useState)({week:a.week}),r=s.user?n[s.user-1]:"";if(null===e||void 0===e||!e.length)return(0,lo.jsx)(bl,{});const i=function(e,t){return t.filter((t=>t.week===e.week)).slice(0,7)}({week:s.week,user:r},e);return null!==i&&void 0!==i&&i.length?(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Bl,{title:"common.filters"}),(0,lo.jsx)(Qi,{children:(0,lo.jsx)(Nw,{filters:s,onChange:o})}),(0,lo.jsx)("br",{}),(0,lo.jsx)(Qi,{template:"table",children:(0,lo.jsx)(Dl,{to:"response",loader:()=>Fl({content:i}),watch:JSON.stringify(s),children:(0,lo.jsx)(Pw,{order:n,user:r})})})]}):(0,lo.jsx)(bl,{})})),Lw="CardWithIcon_card_with_icon__3a7zZ",Rw="CardWithIcon_card_with_icon_long__wEO+N",Fw="CardWithIcon_card_with_icon_icon__OGrXz",Mw="CardWithIcon_card_with_icon_value__crR9J",Ww="CardWithIcon_card_with_icon_title__tFLQS",Bw="CardWithIcon_card_with_icon_description__79tg5",Uw="CardWithIcon_card_with_icon_banner__WHT08";function zw(e){let{title:t,description:n,value:a,suffix:s,color:o,icon:r,long:i=!1}=e;const{t:l}=Bt();return a||0===a?(0,lo.jsxs)("figure",{className:i?Rw:Lw,children:[r&&(0,lo.jsx)("img",{className:Fw,src:r}),(0,lo.jsxs)("p",{className:Mw,style:{color:o||""},children:[a,s||""]}),(0,lo.jsx)("h4",{className:Ww,children:l(t||"")}),(0,lo.jsx)("figcaption",{className:Bw,children:l(n||"")})]}):null}zw.defaultProps={description:"",suffix:"",color:void 0,icon:void 0,long:!1};const Hw=zw,Gw=dn((()=>{const{t:e}=Bt(),t=so.dataGrip.team.statistic,n=so.dataGrip.author.employment,a=so.dataGrip.timestamp.statistic,s=n.active.reduce(((e,t)=>e+so.dataGrip.author.statisticByName[t].taskInDay),0).toFixed(1),o=n.active.reduce(((e,t)=>e+Wn.getCurrentSalaryInMonth(t)),0);return(0,lo.jsxs)(Qi,{children:[(0,lo.jsxs)(al,{children:[(0,lo.jsx)(Bl,{title:"page.team.total.titleA"}),(0,lo.jsxs)("div",{children:[(0,lo.jsx)(Hw,{value:t.daysWorked,icon:"./assets/cards/work_days.png",title:"page.team.total.daysWorked.title",description:"page.team.total.daysWorked.description"}),(0,lo.jsx)(Hw,{value:t.commits,icon:"./assets/cards/commits.png",title:"page.team.total.commits.title",description:"page.team.total.commits.description"}),(0,lo.jsx)(Hw,{value:t.daysLosses,icon:"./assets/cards/lazy.png",title:"page.team.total.daysLosses.title",description:"page.team.total.daysLosses.description"}),(0,lo.jsx)(Hw,{value:"".concat(n.active.length," / ").concat(n.dismissed.length),icon:"./assets/cards/dismissal.png",title:"page.team.total.employment.title",description:"page.team.total.employment.description"}),(0,lo.jsx)(Hw,{long:!0,value:s,icon:"./assets/cards/tasks_month.png",title:"page.team.total.workSpeed.title",description:"page.team.total.workSpeed.description"})]}),(0,lo.jsx)(Qo,{text:e("page.team.total.description1")}),(0,lo.jsx)(Qo,{text:e("page.team.total.description2")}),(0,lo.jsx)(Qo,{text:e("page.team.total.description3")})]}),(0,lo.jsxs)(al,{children:[(0,lo.jsx)(Bl,{title:"page.team.total.titleB"}),(0,lo.jsxs)("div",{children:[(0,lo.jsx)(Hw,{value:Yn(t.moneyAll),icon:"./assets/cards/money_total.png",title:"page.team.total.moneyAll.title",description:"page.team.total.moneyAll.description"}),(0,lo.jsx)(Hw,{value:Yn(t.moneyWorked),icon:"./assets/cards/money_work.png",title:"page.team.total.moneyWorked.title",description:"page.team.total.moneyWorked.description"}),(0,lo.jsx)(Hw,{value:Yn(t.moneyLosses),icon:"./assets/cards/money_lazy.png",title:"page.team.total.moneyLosses.title",description:"page.team.total.moneyLosses.description"}),(0,lo.jsx)(Hw,{value:Yn(a.weekendPayment),icon:"./assets/cards/money_holidays.png",title:"page.team.total.weekendPayment.title",description:"page.team.total.weekendPayment.description"}),(0,lo.jsx)(Hw,{long:!0,value:Yn(o),icon:"./assets/cards/money_month.png",title:"page.team.total.moneySpeed.title",description:"page.team.total.moneySpeed.description"})]}),(0,lo.jsx)(Qo,{text:e("page.team.total.description4")}),(0,lo.jsx)(Qo,{text:e("page.team.total.description5")})]})]})})),Vw=Gw;function Kw(e){let{title:t,description:n,help:a,error:s,className:o,disabled:r,value:i,placeholder:l,onChange:c}=e;const{t:m}=Bt();return(0,lo.jsx)($r,{title:t,description:n,help:a,error:s,className:o,children:(0,lo.jsx)("input",{disabled:r,type:"number",value:i,placeholder:l?m(l):"",className:qr,onChange:e=>{c&&c(parseInt(e.target.value,10)||0)}})})}Kw.defaultProps={placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435"};const $w=Kw;const qw=new class{constructor(){this.hash=0,this.authorId=0,this.minCommits=0,this.selectedPath=[],(0,Gt.rC)(this,{hash:Gt.LO,authorId:Gt.LO,minCommits:Gt.LO,selectedPath:Gt.LO,updateFilter:Gt.aD})}updateFilter(e,t){this[e]=t,this.hash=Math.random()}},Yw=dn((()=>{const{t:e}=Bt(),t=so.dataGrip.author.list.map(((e,t)=>({id:t+1,title:e})));return t.unshift({id:0,title:e("page.team.tree.filters.all")}),(0,lo.jsxs)("div",{className:Aw,children:[(0,lo.jsx)(Ew,{title:"page.team.tree.filters.author",value:qw.authorId,className:Dw,options:t,onChange:e=>{qw.updateFilter("authorId",e)}}),(0,lo.jsx)($w,{placeholder:"page.team.tree.filters.commits",help:"page.team.tree.filters.help",value:qw.minCommits||"",className:Dw,onChange:e=>{qw.updateFilter("minCommits",e)}})]})})),Zw=Yw,Xw="path_file_breadcrumbs__LpB9m",Jw="path_file_breadcrumbs_text__wycrS",Qw="path_file_breadcrumbs_link__UvaTi",ek=dn((()=>{const e=qw.selectedPath.map(((e,t)=>(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)("span",{className:Jw,children:"/"},"".concat(e,".")),(0,lo.jsx)("span",{className:"".concat(Jw," ").concat(Qw),onClick:()=>{const e=qw.selectedPath.slice(0,t+1);qw.updateFilter("selectedPath",e)},children:e},e)]})));return(0,lo.jsxs)("h3",{className:Xw,children:[(0,lo.jsx)("span",{className:Jw,children:"\u0410\u0434\u0440\u0435\u0441:"}),(0,lo.jsx)("span",{className:"".concat(Jw," ").concat(Qw),onClick:()=>{qw.updateFilter("selectedPath",[])},children:".."}),e]})}));function tk(e){let{response:t}=e;if(!t)return null;const n=Rv({max:tb(t,"lines"),suffix:"page.team.tree.line"}),a=Rv({order:so.dataGrip.author.list,suffix:"page.team.tree.line"}),s=Rv({order:["page.team.tree.lineAdd","page.team.tree.lineChange","page.team.tree.lineRemove"],suffix:"page.team.tree.line"});return(0,lo.jsxs)(fc,{rows:t.content,disabledRow:e=>".."!==(null===e||void 0===e?void 0:e.title),children:[(0,lo.jsx)(Sv,{isFixed:!0,template:nc.STRING,formatter:e=>null!==e&&void 0!==e&&e.content?"\ud83d\udcc1 ".concat(null===e||void 0===e?void 0:e.name):"\ud83d\udcc4 ".concat(null===e||void 0===e?void 0:e.name),minWidth:170,onClick:e=>{e.content&&qw.updateFilter("selectedPath",[...e.path,e.name])}}),(0,lo.jsx)(Sv,{isSortable:!0,width:50,properties:"lines",template:nc.SHORT_NUMBER}),(0,lo.jsx)(Sv,{isSortable:!0,properties:"lines",minWidth:100,template:e=>(0,lo.jsx)(Iv,{options:n,value:e})}),(0,lo.jsx)(Sv,{isSortable:!0,template:nc.STRING,title:"page.team.pr.firstCommitTime",formatter:e=>{var t;return Kn(null===e||void 0===e||null===(t=e.firstCommit)||void 0===t?void 0:t.timestamp)},width:130}),(0,lo.jsx)(Sv,{isSortable:!0,template:nc.STRING,title:"page.team.pr.author",formatter:e=>{var t;return(null===e||void 0===e||null===(t=e.firstCommit)||void 0===t?void 0:t.author)||""},width:150}),(0,lo.jsx)(Sv,{isSortable:!0,template:nc.STRING,title:"page.team.pr.lastCommitTime",formatter:e=>{var t;return Kn(null===e||void 0===e||null===(t=e.lastCommit)||void 0===t?void 0:t.timestamp)},width:130}),(0,lo.jsx)(Sv,{isSortable:!0,template:nc.STRING,title:"page.team.pr.author",formatter:e=>{var t;return(null===e||void 0===e||null===(t=e.lastCommit)||void 0===t?void 0:t.author)||""},width:150}),(0,lo.jsx)(Sv,{minWidth:200,template:e=>{var t,n,a;return(0,lo.jsx)(Iv,{value:100,options:s,details:{"page.team.tree.lineAdd":(null===e||void 0===e||null===(t=e.addedRemovedChangedInPercent)||void 0===t?void 0:t.added)||0,"page.team.tree.lineRemove":(null===e||void 0===e||null===(n=e.addedRemovedChangedInPercent)||void 0===n?void 0:n.removed)||0,"page.team.tree.lineChange":(null===e||void 0===e||null===(a=e.addedRemovedChangedInPercent)||void 0===a?void 0:a.changed)||0}})}}),(0,lo.jsx)(Sv,{title:"page.team.tree.add",minWidth:200,template:e=>(0,lo.jsx)(Iv,{value:100,options:a,details:null===e||void 0===e?void 0:e.addedByAuthorInPercent})}),(0,lo.jsx)(Sv,{title:"page.team.tree.change",minWidth:200,template:e=>(0,lo.jsx)(Iv,{value:100,options:a,details:null===e||void 0===e?void 0:e.changedByAuthorInPercent})}),(0,lo.jsx)(Sv,{title:"page.team.tree.remove",minWidth:200,template:e=>(0,lo.jsx)(Iv,{value:100,options:a,details:null===e||void 0===e?void 0:e.removedByAuthorInPercent})})]})}tk.defaultProps={response:void 0};const nk=tk;function ak(e,t){return n=function(e,t){return(t||[]).reduce(((e,t)=>e.content[t]||{content:[]}),e||{content:[]})}(e,t),Object.values(n.content).sort(((e,t)=>e.content&&!t.content?-1:!e.content&&t.content?1:e.name===t.name?0:e.name>t.name?1:-1));var n}const sk=dn((e=>{let{type:n}=e;const{t:a}=Bt(),s="removed"===n?so.fileGrip.removedTree.tree:so.fileGrip.tree.tree;(0,t.useEffect)((()=>{qw.updateFilter("selectedPath",[])}),[n]);const o=ak(s,qw.selectedPath);return null!==o&&void 0!==o&&o.length?(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Bl,{title:a("common.filters")}),(0,lo.jsx)(Zw,{}),(0,lo.jsx)(ek,{}),(0,lo.jsx)(Qi,{template:"table",children:(0,lo.jsxs)(Dl,{to:"response",loader:e=>Fl({content:o,pagination:{...e,size:2e3}}),watch:"".concat(qw.hash).concat(n),children:[(0,lo.jsx)(nk,{}),(0,lo.jsx)(Rl,{})]})})]}):(0,lo.jsx)(bl,{})})),ok=sk;function rk(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=tb(t,"count"),r=tb(t,"removedCount"),i=Rv({max:Math.max(o,r),suffix:"page.team.extension.files"});return(0,lo.jsxs)(xv,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,lo.jsx)(Sv,{isFixed:!0,template:nc.STRING,title:"page.team.extension.name",properties:"extension",width:200}),(0,lo.jsx)(Sv,{template:nc.STRING,title:"page.team.extension.path",width:350,formatter:e=>1===e.count||1===e.removedCount?e.path:""}),"print"===s?(0,lo.jsx)(Sv,{isSortable:!0,title:"page.team.pr.task",properties:"task",width:120}):(0,lo.jsx)(Sv,{isSortable:!0,template:(e,t)=>{var n,a;return t.path?(0,lo.jsx)(mb,{link:"".concat((null===Wn||void 0===Wn||null===(n=Wn.settings)||void 0===n||null===(a=n.linksPrefix)||void 0===a?void 0:a.task)||"/").concat(e),text:e}):""},title:"page.team.pr.task",properties:"task",width:120}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"count"}),(0,lo.jsx)(Sv,{isSortable:!0,title:"page.team.extension.current.count",properties:"count",width:170,minWidth:170,template:e=>(0,lo.jsx)(Iv,{options:i,value:e})}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"removedCount"}),(0,lo.jsx)(Sv,{isSortable:!0,title:"page.team.extension.removed.count",properties:"removedCount",width:170,minWidth:170,template:e=>(0,lo.jsx)(Iv,{options:i,value:e})})]})}rk.defaultProps={response:void 0};const ik=dn((e=>{let{mode:t}=e;const n=so.fileGrip.extension.statistic;return(null===n||void 0===n?void 0:n.length)<2?"print"!==t?(0,lo.jsx)(bl,{}):null:(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Bl,{title:"sidebar.team.extension"}),(0,lo.jsxs)(Dl,{to:"response",loader:e=>Fl({content:n,pagination:e,mode:t}),watch:"".concat(t).concat(so.dataGrip.hash),children:[(0,lo.jsx)(rk,{mode:t,rowsForExcel:n}),(0,lo.jsx)(Rl,{})]})]})}));function lk(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=tb(t,"count"),r=tb(t,"removedCount"),i=Rv({max:Math.max(o,r),suffix:"page.team.extension.files"});return(0,lo.jsxs)(xv,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,lo.jsx)(Sv,{isFixed:!0,template:nc.STRING,title:"page.team.extension.name",properties:"type",width:200}),(0,lo.jsx)(Sv,{template:nc.STRING,title:"page.team.extension.path",width:350,formatter:e=>1===e.count||1===e.removedCount?e.path:""}),"print"===s?(0,lo.jsx)(Sv,{isSortable:!0,title:"page.team.pr.task",properties:"task",width:120}):(0,lo.jsx)(Sv,{isSortable:!0,template:(e,t)=>{var n,a;return t.path?(0,lo.jsx)(mb,{link:"".concat((null===Wn||void 0===Wn||null===(n=Wn.settings)||void 0===n||null===(a=n.linksPrefix)||void 0===a?void 0:a.task)||"/").concat(e),text:e}):""},title:"page.team.pr.task",properties:"task",width:120}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"count"}),(0,lo.jsx)(Sv,{isSortable:!0,title:"page.team.extension.current.count",properties:"count",width:170,minWidth:170,template:e=>(0,lo.jsx)(Iv,{options:i,value:e})}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"removedCount"}),(0,lo.jsx)(Sv,{isSortable:!0,title:"page.team.extension.removed.count",properties:"removedCount",width:170,minWidth:170,template:e=>(0,lo.jsx)(Iv,{options:i,value:e})})]})}lk.defaultProps={response:void 0};const ck=dn((e=>{let{mode:t}=e;const n=so.fileGrip.type.statistic;return(null===n||void 0===n?void 0:n.length)<2?"print"!==t?(0,lo.jsx)(bl,{}):null:(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Bl,{title:"sidebar.team.extension"}),(0,lo.jsxs)(Dl,{to:"response",loader:e=>Fl({content:n,pagination:e,mode:t}),watch:"".concat(t).concat(so.dataGrip.hash),children:[(0,lo.jsx)(lk,{mode:t,rowsForExcel:n}),(0,lo.jsx)(Rl,{})]})]})})),mk=dn((e=>{let{mode:t}=e;return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(ik,{mode:t}),(0,lo.jsx)(ck,{mode:t})]})}));function dk(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=Rv({max:tb(t,"tasks"),suffix:"page.team.type.tasksSmall"}),r=Rv({max:tb(t,"daysByAuthorsTotal"),suffix:"page.team.type.daysSmall"}),i=Rv({order:so.dataGrip.author.list});return(0,lo.jsxs)(xv,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,lo.jsx)(Sv,{isFixed:!0,template:nc.STRING,title:"page.team.type.type",properties:"type",width:150}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"tasks"}),(0,lo.jsx)(Sv,{isSortable:!0,title:"page.team.type.tasks",properties:"tasks",minWidth:120,template:e=>(0,lo.jsx)(Iv,{options:o,value:e})}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,title:"page.team.type.days",properties:"days"}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"daysByAuthorsTotal"}),(0,lo.jsx)(Sv,{isSortable:!0,title:"page.team.type.authorsDays",properties:"daysByAuthorsTotal",minWidth:120,template:e=>(0,lo.jsx)(Iv,{options:r,value:e})}),(0,lo.jsx)(Sv,{template:nc.NUMBER,title:"page.team.type.commits",properties:"commits"}),(0,lo.jsx)(Sv,{title:"page.team.type.authors",properties:"commitsByAuthors",template:e=>(0,lo.jsx)(Iv,{options:i,details:e}),minWidth:500})]})}dk.defaultProps={response:void 0};const uk=dn((e=>{var t;let{mode:n}=e;const{t:a}=Bt(),s=so.dataGrip.type.statistic;if(null===s||void 0===s||!s.length)return"print"!==n?(0,lo.jsx)(bl,{}):null;const o=null===(t=so.dataGrip.recommendations.team)||void 0===t?void 0:t.byType;return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(eb,{mode:n,recommendations:o}),(0,lo.jsx)(Bl,{title:"page.team.type.title"}),(0,lo.jsxs)(Dl,{to:"response",loader:(e,t)=>Fl({content:s,pagination:e,sort:t,mode:n}),watch:"".concat(n).concat(so.dataGrip.hash),children:[(0,lo.jsx)(dk,{mode:n,rowsForExcel:s}),(0,lo.jsx)(Rl,{})]}),(0,lo.jsx)(Qi,{children:(0,lo.jsx)(Qo,{text:a("page.team.type.description")})})]})})),pk=uk;function hk(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=Rv({max:tb(t,"tasks"),order:so.dataGrip.type.list,suffix:"page.team.week.tasks"}),r=Rv({max:tb(t,"authorsLength"),order:so.dataGrip.author.list,suffix:"page.team.week.tasks"}),i=Rv({max:tb(t,"changesLength"),order:["page.team.week.add","page.team.week.change","page.team.week.remove"],suffix:"\u0441\u0442\u0440\u043e\u043a"}),l=Rv({order:["page.team.week.hasCommits","page.team.week.hasNotCommits"],suffix:"page.team.week.days"}),c=Rv({order:so.dataGrip.author.list,suffix:"page.team.week.days"});return(0,lo.jsxs)(xv,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,lo.jsx)(Sv,{isFixed:!0,template:nc.STRING,title:"page.team.week.date",properties:"timestamp",formatter:Xn,width:260}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"tasks"}),(0,lo.jsx)(Sv,{isSortable:"tasks",title:"page.team.week.numberTasks",template:e=>(0,lo.jsx)(Iv,{options:o,value:e.tasks,details:e.types}),minWidth:200}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"authorsLength"}),(0,lo.jsx)(Sv,{isSortable:"authorsLength",title:"page.team.week.people",template:e=>(0,lo.jsx)(Iv,{options:r,value:e.authorsLength,details:e.authors}),minWidth:200}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"changesLength"}),(0,lo.jsx)(Sv,{isSortable:"changesLength",title:"page.team.week.line",template:e=>{var t,n,a;return(0,lo.jsx)(Iv,{options:i,value:e.changesLength,details:{"page.team.week.add":null===e||void 0===e||null===(t=e.changes)||void 0===t?void 0:t.added,"page.team.week.change":null===e||void 0===e||null===(n=e.changes)||void 0===n?void 0:n.changes,"page.team.week.remove":null===e||void 0===e||null===(a=e.changes)||void 0===a?void 0:a.removed}})},minWidth:200}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"workDaysTotal"}),(0,lo.jsx)(Sv,{isSortable:"workDaysTotal",title:"page.team.week.days",template:e=>(0,lo.jsx)(Iv,{options:l,details:{"page.team.week.hasCommits":null===e||void 0===e?void 0:e.workDaysTotal,"page.team.week.hasNotCommits":5*(null===e||void 0===e?void 0:e.authorsLength)-(null===e||void 0===e?void 0:e.workDaysTotal)}}),minWidth:200}),(0,lo.jsx)(Sv,{title:"page.team.week.lossesDetails",template:e=>(0,lo.jsx)(Iv,{options:c,details:e}),formatter:e=>{const t=Object.entries(null===e||void 0===e?void 0:e.workDays).map((e=>{let[t,n]=e;return[t,5-n]}));return Object.fromEntries(t.filter((e=>e[1]>0)))},minWidth:200})]})}hk.defaultProps={response:void 0};const fk=dn((e=>{var t;let{mode:n}=e;const a=so.dataGrip.week.statistic;if(null===a||void 0===a||!a.length)return"print"!==n?(0,lo.jsx)(bl,{}):null;const s=null===(t=so.dataGrip.recommendations.team)||void 0===t?void 0:t.byWeek;return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(eb,{mode:n,recommendations:s}),"print"===n?(0,lo.jsx)(Bl,{title:"page.team.week.title"}):(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)("br",{}),(0,lo.jsx)("br",{}),(0,lo.jsx)("br",{})]}),(0,lo.jsxs)(Dl,{to:"response",loader:(e,t)=>Fl({content:a,pagination:e,sort:t}),watch:"".concat(n).concat(so.dataGrip.hash),children:[(0,lo.jsx)(hk,{mode:n,rowsForExcel:a}),"print"!==n&&(0,lo.jsx)(Rl,{})]})]})})),gk=fk;function yk(e,t,n){return{id:"".concat(e,"-").concat(t),month:e,year:t,first:!1,last:!1,date:new Date("".concat(t,"-").concat(Vn(e+1),"-01")),firstDay:n.firstDay["".concat(e,"-").concat(t)],lastDay:n.lastDay["".concat(e,"-").concat(t)],commits:[]}}function vk(e,t,n){const a="".concat(e.month,"-").concat(e.year);if(t[a]){t[a].commits=n;const e=[],s=[];n.forEach((t=>{e.push(...Object.keys(t.tasks)),s.push(...Object.keys(t.tasksByAuthor))})),t[a].tasks=Array.from(new Set(e)).length;const o=Array.from(new Set(s));t[a].money=o.reduce(((e,t)=>e+Qn.getMiddleSalaryInMonth(t)),0)}}function bk(e,t){let n={month:0,year:0},a=[];const s=e[0],o=e[e.length-1],{months:r,monthsByDate:i}=function(e,t,n){const a=[],s={};for(let o=e.year;o<=t.year;o++){const r=o===e.year?e.month:0,i=o===t.year?t.month+1:12;for(let e=r;e{e.month!==n.month||e.year!==n.year?(vk(n,i,a),a=[e]):a.push(e),n=e})),vk(n,i,a),r}const wk="styles_year_chart__CuiUa",kk="styles_year_chart_month__AdQdi",_k="styles_year_chart_month_header__EifAZ",xk="styles_year_chart_month_header_title__rSnWC",Tk="styles_year_chart_month_body__35YkI",Sk="styles_year_chart_month_body_day__kwGqm",Ck="styles_year_chart_month_body_day_arrow__mVJUQ",Ek="styles_year_chart_month_body_day_info__aGly9";const Ak=function(e){let{month:t}=e;const n=t.date.toLocaleString(Un(),{month:"long"}),a=t.first||t.last||!t.month;return(0,lo.jsx)("div",{className:_k,children:(0,lo.jsxs)("span",{className:xk,style:{fontWeight:a?"bold":100},children:[n," ",a?t.year:""]})})};function Dk(e,t){return e.reduce(((e,n)=>{var a;if(n.isStaff)return e;if("lastCommit"===t&&!n.isDismissed)return e;const s=null===n||void 0===n||null===(a=n[t])||void 0===a?void 0:a.timestamp;return e[s]||(e[s]=[]),e[s].push(n.author),e}),{})}function jk(e){let{month:n,dayInfo:a,maxCommits:s,dayNumber:o,events:r}=e;const[i,l]=(0,t.useState)(!1),c=function(e,t){const n=100*(e||0)/t;return(n-n%1)/100}(a.commits,s),m=function(e,t){const n=e?["#ED675F","#EB817C","#E98E8A","#E89B99","#E7A8A7","#E7B5B6","#E6C3C4","#E4CFD3"]:["#4162B5","#617DC1","#718AC6","#8198CD","#91A6D2","#A2B3D8","#B2C1DE","#C2CEE4"];return t>=.8?n[1]:t>=.6?n[3]:t>=.4?n[5]:n[7]}([5,6,12,13,19,20,26,27,33,34,40,41].includes(o),c),d=function(e,t){var n,a;const s=null===(n=e.firstDay)||void 0===n?void 0:n[t],o=null===(a=e.lastDay)||void 0===a?void 0:a[t];return s&&o||o||s?"./assets/chart/commit.svg":""}(n,a.dayInMonth),u=function(e,t){var n,a;const s=null===e||void 0===e||null===(n=e.firstCommit)||void 0===n?void 0:n[t],o=null===e||void 0===e||null===(a=e.lastCommit)||void 0===a?void 0:a[t];return s&&o?"+-":o?"-":s?"+":""}(r,a.timestamp);return(0,lo.jsx)("div",{className:Sk,title:"commits: ".concat(a.commits,", tasks: ").concat(a.tasksInDay||0),style:{backgroundColor:m,backgroundImage:d?"url(".concat(d,")"):""},onClick:()=>{l(!i)},children:i?(0,lo.jsxs)(lo.Fragment,{children:["\u25c9",(0,lo.jsx)("div",{className:Ck}),(0,lo.jsxs)("div",{className:"".concat(Ek," scroll_y"),children:[(0,lo.jsx)(Bl,{title:Kn(a.timestamp)}),(0,lo.jsx)(fb,{day:a,events:r,timestamp:a.timestamp,order:so.dataGrip.author.list})]})]}):u})}jk.defaultProps={rows:[]};const Ok=jk;function Nk(e){let{month:t,maxCommits:n,showEvents:a}=e;const s=t.date.getDay()-1,o=s+[31,28,31,30,31,30,31,31,30,31,30,31][t.month],r=new Array(42).fill(0);let i=0;const l=a?function(e){const t=e.dataGrip.author.statistic;return{firstCommit:Dk(t,"firstCommit"),lastCommit:Dk(t,"lastCommit")}}(so):{},c=r.map(((e,a)=>{const r=t.commits[i];return(null===r||void 0===r?void 0:r.dayInMonth)===a-s+1?(i+=1,(0,lo.jsx)(Ok,{month:t,maxCommits:n,dayNumber:a,dayInfo:r,events:l},a)):(0,lo.jsx)("div",{className:Sk,style:{opacity:ao?.3:1}},a)}));return(0,lo.jsx)("div",{className:Tk,children:c})}Nk.defaultProps={rows:[]};const Pk=Nk,Ik="line_year_chart_month_info__Cv+xl";function Lk(e){let{max:t,month:n,showEvents:a,hideMoney:s}=e,o="";n.tasks&&(o="\u2611 ".concat(n.tasks||0)),!s&&n.money&&(o="\u2611 ".concat(n.tasks||0," \u2014 ").concat(Yn(n.money||0,0)));const r=s?"tasks":"tasks and money";return(0,lo.jsxs)("div",{className:kk,children:[(0,lo.jsx)(Ak,{month:n}),(0,lo.jsx)(Pk,{month:n,maxCommits:t.commits,showEvents:a}),(0,lo.jsx)("div",{title:r,className:Ik,children:o})]})}Lk.defaultProps={hideMoney:!1};const Rk=Lk;function Fk(e){let{maxCommits:n=100,showEvents:a=!0,wordDays:s=[],authors:o=[]}=e;const r=(0,t.useRef)(null),[i,l]=(0,t.useState)(16);if((0,t.useEffect)((()=>{var e;if(!r.current)return;const t=(null===(e=r.current)||void 0===e?void 0:e.getBoundingClientRect())||{},n=Math.floor(t.width/135),a=function(e,t){for(let n=16;n<=24;n+=.3)if((7+8*n)*t>e)return n-.3;return 24}(t.width,n);l(a)}),[]),!s||!s.length)return null;const c=function(e){const t={},n={};return e.forEach((e=>{if(e.isStaff)return;const a="".concat(e.firstCommit.month,"-").concat(e.firstCommit.year);t[a]||(t[a]={}),t[a][e.firstCommit.dayInMonth]=e;const s="".concat(e.lastCommit.month,"-").concat(e.lastCommit.year);n[s]||(n[s]={}),n[s][e.lastCommit.dayInMonth]=e})),{firstDay:t,lastDay:n}}(o),m=bk(s,c),d=1===(null===o||void 0===o?void 0:o.length),u={tasks:new Ra,money:new Ra};m.forEach((e=>{u.tasks.update(e.tasks),u.money.update(e.money)}));const p=m.map((e=>(0,lo.jsx)(Rk,{max:{tasks:u.tasks.max,money:u.money.max,commits:n},month:e,showEvents:a,hideMoney:d},e.id))),h={"--day-size":"".concat(i.toFixed(1),"px")};return(0,lo.jsx)("div",{ref:r,style:h,className:wk,children:p})}Fk.defaultProps={showEvents:!0};const Mk=Fk,Wk=dn((e=>{var t;let{mode:n}=e;const a=so.dataGrip.author.statistic,s=so.dataGrip.timestamp.statistic,o=s.commitsByTimestampCounter.max,r=null===(t=so.dataGrip.recommendations.team)||void 0===t?void 0:t.byTimestamp;return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(eb,{mode:n,recommendations:r}),(0,lo.jsx)(Bl,{title:"page.team.month.title"}),(0,lo.jsx)(Qi,{template:"table",children:(0,lo.jsx)(Mk,{maxCommits:o,authors:a,wordDays:s.allCommitsByTimestamp})})]})})),Bk=Wk;function Uk(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=Rv({max:tb(t,"commits"),suffix:"page.team.type.tasksSmall"});return(0,lo.jsxs)(xv,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,lo.jsx)(Sv,{isFixed:!0,isSortable:!0,template:e=>{var t,n;return(0,lo.jsx)(mb,{link:"".concat((null===Wn||void 0===Wn||null===(t=Wn.settings)||void 0===t||null===(n=t.linksPrefix)||void 0===n?void 0:n.task)||"/").concat(e),text:e})},title:"page.team.tasks.task",properties:"task",width:120}),(0,lo.jsx)(Sv,{properties:"types",template:e=>(0,lo.jsx)(cl,{value:e}),width:100}),(0,lo.jsx)(Sv,{properties:"scope",template:e=>(0,lo.jsx)(cl,{value:e}),width:100}),(0,lo.jsx)(Sv,{isSortable:!0,template:(e,t)=>{var n,a;return(0,lo.jsx)(mb,{link:"".concat((null===Wn||void 0===Wn||null===(n=Wn.settings)||void 0===n||null===(a=n.linksPrefix)||void 0===a?void 0:a.pr)||"/").concat(null===t||void 0===t?void 0:t.prId),text:"PR"})},properties:"task",width:40}),(0,lo.jsx)(Sv,{template:nc.STRING,properties:"comments"}),(0,lo.jsx)(Sv,{template:nc.STRING,title:"page.team.tasks.author",properties:"author",width:170}),(0,lo.jsx)(Sv,{template:nc.STRING,title:"page.team.tasks.from",properties:"from",width:150,formatter:Kn}),(0,lo.jsx)(Sv,{template:nc.STRING,title:"page.team.tasks.to",properties:"to",width:150,formatter:Kn}),(0,lo.jsx)(Sv,{template:nc.STRING,title:"page.team.tasks.pr",properties:"to",width:150,formatter:Kn}),(0,lo.jsx)(Sv,{template:nc.STRING,title:"page.team.tasks.prAuthor",properties:"prAuthor",width:170}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"commits"}),(0,lo.jsx)(Sv,{isSortable:!0,title:"page.team.tasks.commits",properties:"commits",minWidth:170,template:e=>(0,lo.jsx)(Iv,{options:o,value:e})})]})}Uk.defaultProps={response:void 0};const zk=dn((e=>{let{mode:t}=e;const n=so.dataGrip.tasks.statistic;return null!==n&&void 0!==n&&n.length?(0,lo.jsxs)(Dl,{to:"response",loader:(e,a)=>Fl({content:n,pagination:e,sort:a,mode:t}),watch:"".concat(t).concat(so.dataGrip.hash),children:[(0,lo.jsx)("br",{}),(0,lo.jsx)("br",{}),(0,lo.jsx)("br",{}),(0,lo.jsx)(Uk,{mode:t,rowsForExcel:n}),(0,lo.jsx)(Rl,{})]}):"print"!==t?(0,lo.jsx)(bl,{}):null})),Hk="Races_races__iGwb4",Gk="Races_races_track__BTbit",Vk="Races_races_track_car__Dbi2B",Kk="Races_races_track_car_title__w5QQU",$k="Races_races_track_info__pxgvV",qk="Races_races_track_animation__sYl4E",Yk="Races_races_button__DUDTm";const Zk=function(e){let{title:t,duration:n}=e;return(0,lo.jsx)("div",{className:$k,style:{animationDelay:"".concat(n+1,"s")},children:t})},Xk=5,Jk=10,Qk=["ease","ease-in","ease-out","ease-in-out","linear","cubic-bezier(0.1, 0.7, 1, 0.1)"];function e_(e){let{title:n,speed:a,type:s,canStart:o}=e;const r=(i=Qk.length-1,Math.floor(Math.random()*(i-0+1))+0);var i;const[l]=(0,t.useState)(Qk[r]);if((0,t.useEffect)((()=>{n_(Qk)}),[]),!n)return null;const c=Xk+Jk*(1-a)*3,m=o?qk:"";return(0,lo.jsxs)("div",{className:"".concat(Gk," ").concat(s||""),children:[o&&(0,lo.jsx)(Zk,{title:n,duration:c}),(0,lo.jsx)("div",{className:"".concat(Vk," ").concat(s||""," ").concat(m||""),style:{animationTimingFunction:l,animationDuration:"".concat(c,"s")},children:(0,lo.jsx)("div",{className:"".concat(Kk," ").concat(s||""),children:n})})]})}e_.defaultProps={type:"",canStart:!1};const t_=e_;function n_(e){for(let t,n,a=e.length;a;t=parseInt(Math.random()*a),n=e[--a],e[a]=e[t],e[t]=n);return e}const a_=function(e){let{tracks:n}=e;const{t:a}=Bt(),[s,o]=(0,t.useState)(!1);if(!n.length)return null;const r=n_(n).map((e=>(0,lo.jsx)(t_,{title:e.title,speed:e.speed,canStart:s},e.title)));return(0,lo.jsxs)("div",{className:Hk,children:[!s&&(0,lo.jsx)(Ao,{className:Yk,onClick:()=>{o(!0)},children:a("uiKit.races.go")}),r]})};function s_(e){return Math.round(Math.random()*e)}function o_(e,t){if(0===t.length)return!1;const n=t[t.length-1];e[n.row][n.column]=1;const a=function(e,t,n){const a=[];return 0===(e[t-2]||[])[n]&&a.push({row:t-2,column:n,corridor:[t-1,n]}),0===e[t][n+2]&&a.push({row:t,column:n+2,corridor:[t,n+1]}),0===e[t][n-2]&&a.push({row:t,column:n-2,corridor:[t,n-1]}),0===(e[t+2]||[])[n]&&a.push({row:t+2,column:n,corridor:[t+1,n]}),a.length?a[s_(a.length-1)]:null}(e,n.row,n.column);return a?(e[a.corridor[0]][a.corridor[1]]=1,t.push(a)):t.pop(),!0}function r_(e,t){const n=function(e,t){return Array(e).fill(0).map((()=>Array(t).fill(0)))}(t+2,e+2),a=[{row:1,column:1}];for(;o_(n,a););return n.shift(),n.forEach((e=>{e.shift()})),n}const i_={city_builder:"style_city_builder__+dSRK",city_builder_wrapper:"style_city_builder_wrapper__3vGao",city_builder_block:"style_city_builder_block__b01IS",city_builder_block_home:"style_city_builder_block_home__Eb6r2"};const l_=function(e){let{type:t}=e;const n=[i_.city_builder_block],a={home:"./assets/games/home".concat(s_(2),".png"),road:"./assets/games/road.png",green:"./assets/games/green.png"}[t||""]||"./assets/games/road.png";return(0,lo.jsx)("img",{className:n.join(" "),src:a})};const c_=function(e){var t;let{level:n}=e;const a=[],s=(null===n||void 0===n?void 0:n.length)-1,o=(null===n||void 0===n||null===(t=n[0])||void 0===t?void 0:t.length)-1;return null===n||void 0===n||n.forEach(((e,t)=>{e.forEach(((e,n)=>{let r="home";e&&(r="road"),(!t||!n||t===s||n===o)&&e&&Math.random()>.5&&(r="green"),a.push((0,lo.jsx)(l_,{type:r},"".concat(t,".").concat(n)))}))})),(0,lo.jsx)(lo.Fragment,{children:a})};function m_(e){return e>70?[20,20]:e>60?[18,18]:e>50?[16,16]:e>40?[14,14]:e>20?[12,12]:e>10?[10,10]:[8,8]}const d_=function(e){let{percent:n}=e;const a=r_(...m_(n||5)),[s,o]=(0,t.useState)(a);(0,t.useEffect)((()=>{const e=r_(...m_(n||5));o(e)}),[n]);const r=(24-s.length)/2,i=(24-s[0].length)/2;return(0,lo.jsx)("div",{className:i_.city_builder_wrapper,style:{padding:"".concat(20*r,"px ").concat(20*i,"px"),maxWidth:480,backgroundImage:"url(./assets/games/green.png)"},children:(0,lo.jsx)("div",{className:i_.city_builder,children:(0,lo.jsx)(c_,{level:s})})})};const u_=function(e){let{}=e;const[n,a]=(0,t.useState)(5);return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Ao,{className:i_.races_button,onClick:()=>{a(100*Math.random())},children:"rand"}),(0,lo.jsx)(d_,{percent:n})]})},p_={tv100and1_row:"styles_tv100and1_row__R2iIo",tv100and1_cell_title:"styles_tv100and1_cell_title__qttNL",tv100and1_cell_value:"styles_tv100and1_cell_value__0-7pU",tv100and1_cell_chart:"styles_tv100and1_cell_chart__IYzSh",tv100and1_button:"styles_tv100and1_button__9oEjD",animation:"styles_animation__99myn",tv_100_and_1:"styles_tv_100_and_1__pyFQJ"};const h_=function(e){let{title:n}=e;const[a,s]=(0,t.useState)(!1);return(0,lo.jsxs)("div",{className:"".concat(p_.tv100and1_cell_title),children:[n,(0,lo.jsx)("button",{className:"".concat(p_.tv100and1_button," ").concat(a?p_.animation:""),onClick:()=>{s(!0)}})]})};function f_(e){let{rows:t=[]}=e;if(!t||!t.length)return null;const n=Rv({max:t[0].value,suffix:"\u0441\u0438\u0432\u043e\u043b\u043e\u0432"}),a=t.map((e=>(0,lo.jsxs)("div",{className:"".concat(p_.tv100and1_row),children:[(0,lo.jsx)(h_,{title:e.title}),(0,lo.jsx)("div",{className:"".concat(p_.tv100and1_cell_value),children:e.value}),(0,lo.jsx)("div",{className:"".concat(p_.tv100and1_cell_chart),children:(0,lo.jsx)(Iv,{options:n,value:e.value})})]},e.title)));return(0,lo.jsx)("div",{className:"".concat(p_.tv100and1),children:a})}f_.defaultProps={rows:[]};const g_=f_,y_=dn((()=>{const e=so.dataGrip.author.statistic.filter((e=>!e.isStaff)),t=e.map((e=>e.taskInDay)),n=Math.max(...t),a=e.map((e=>({title:e.author,speed:e.taskInDay/n}))),s=[...e].sort(((e,t)=>t.maxMessageLength-e.maxMessageLength)).map((e=>({title:e.author,value:e.maxMessageLength}))),o=Rv({max:s[0].value,suffix:"\u0441\u0438\u0432\u043e\u043b\u043e\u0432"});return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Bl,{title:"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u044f \u0437\u0430\u0434\u0430\u0447"}),(0,lo.jsx)(a_,{tracks:a}),(0,lo.jsx)(Bl,{title:"\u041e\u0431\u044a\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0445 \u0444\u0430\u0439\u043b\u043e\u0432"}),(0,lo.jsx)(u_,{}),"\u041d\u0435\u0431\u043e\u0441\u043a\u0440\u0435\u0431\u044b \u0432\u0432\u0435\u0440\u0445 \u0432\u0432\u0438\u0434\u0435 \u0433\u0440\u0430\u0444\u0438\u043a\u0430",(0,lo.jsx)(Bl,{title:"\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u043d\u0430 \u043f\u043e\u0434\u043f\u0438\u0441\u0438 \u043a\u043e\u043c\u043c\u0438\u0442\u0430"}),(0,lo.jsx)(g_,{rows:s}),(0,lo.jsx)(Qi,{template:"table",children:(0,lo.jsxs)(xv,{rows:s,children:[(0,lo.jsx)(Sv,{isFixed:!0,template:nc.STRING,title:"\u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a",properties:"title",width:260}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"value",width:40}),(0,lo.jsx)(Sv,{title:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432",properties:"value",template:e=>(0,lo.jsx)(Iv,{options:o,value:e})})]})})]})})),v_=y_;const b_=function(){return(0,lo.jsx)("div",{style:{pageBreakAfter:"always",breakAfter:"always"},children:" "})};const w_=function(){const e=so.dataGrip.pr.statistic,t=os.getPRByGroups(e,"workDays"),n=Rv({order:t.order,limit:3,suffix:"page.team.pr.tasks"}),a=os.getPRByGroups(e,"delayDays"),s=Rv({order:a.order,limit:3,suffix:"PR"}),o=Math.round(t.weightedAverage),r=Math.round(a.weightedAverage),i=o+r,l=Rv({order:["page.team.pr.word","page.team.pr.delay"],suffix:"page.team.pr.days"}),c=[{workDays:t.details,delayDays:a.details,weightedAverage:i.toFixed(1),weightedAverageDetails:{workDays:o,delayDays:r}}];return(0,lo.jsxs)(fc,{rows:c,children:[(0,lo.jsx)(Sv,{title:"page.team.pr.workDays",properties:"workDays",template:e=>(0,lo.jsx)(Iv,{options:n,details:e})}),(0,lo.jsx)(Sv,{title:"page.team.pr.delayDays",properties:"delayDays",template:e=>(0,lo.jsx)(Iv,{options:s,details:e})}),(0,lo.jsx)(Sv,{properties:"weightedAverage",template:nc.SHORT_NUMBER}),(0,lo.jsx)(Sv,{title:"page.team.pr.middleTimeRelease",properties:"weightedAverageDetails",width:300,template:e=>(0,lo.jsx)(Iv,{options:l,details:{"page.team.pr.work":e.workDays,"page.team.pr.delay":e.delayDays}})})]})},k_=Object.values({DAY:"\u0434\u0435\u043d\u044c",THREE_DAY:"\u0442\u0440\u0438 \u0434\u043d\u044f",WEEK:"\u043d\u0435\u0434\u0435\u043b\u044f",TWO_WEEK:"\u0434\u0432\u0435 \u043d\u0435\u0434\u0435\u043b\u0438",MONTH:"\u043c\u0435\u0441\u044f\u0446",MORE:"\u0431\u043e\u043b\u0435\u0435"});function __(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=Rv({order:k_,limit:3}),r=Rv({max:tb(t,"weightedAverage"),order:["page.team.pr.work","page.team.pr.delay"],suffix:"page.team.pr.days"});return(0,lo.jsxs)(xv,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,lo.jsx)(Sv,{isSortable:!0,template:nc.STRING,title:"page.team.pr.author",properties:"author",width:250}),(0,lo.jsx)(Sv,{title:"page.team.pr.workDays",properties:"workDays",template:e=>(0,lo.jsx)(Iv,{options:o,details:e})}),(0,lo.jsx)(Sv,{title:"page.team.pr.delayDays",properties:"delayDays",template:e=>(0,lo.jsx)(Iv,{options:o,details:e})}),(0,lo.jsx)(Sv,{properties:"weightedAverage",template:nc.SHORT_NUMBER}),(0,lo.jsx)(Sv,{title:"page.team.pr.middleTimeRelease",properties:"weightedAverageDetails",width:300,template:(e,t)=>(0,lo.jsx)(Iv,{options:r,value:t.weightedAverage,details:{"page.team.pr.work":e.workDays,"page.team.pr.delay":e.delayDays}})})]})}__.defaultProps={response:void 0};const x_=__;function T_(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=Rv({max:tb(t,"workDays")}),r=Rv({max:tb(t,"delayDays")}),i=Rv({max:tb(t,"commits"),order:so.dataGrip.author.list});return(0,lo.jsxs)(xv,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?2:void 0,children:["print"===s?(0,lo.jsx)(Sv,{isSortable:!0,title:"page.team.pr.task",properties:"task",width:120}):(0,lo.jsx)(Sv,{isSortable:!0,template:(e,t)=>{var n,a,s,o;return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(mb,{link:"".concat((null===Wn||void 0===Wn||null===(n=Wn.settings)||void 0===n||null===(a=n.linksPrefix)||void 0===a?void 0:a.task)||"/").concat(e),text:e}),(0,lo.jsx)(mb,{link:"".concat((null===Wn||void 0===Wn||null===(s=Wn.settings)||void 0===s||null===(o=s.linksPrefix)||void 0===o?void 0:o.pr)||"/").concat(null===t||void 0===t?void 0:t.prId),text:"PR"})]})},title:"page.team.pr.task",properties:"task",width:120}),(0,lo.jsx)(Sv,{isSortable:!0,template:nc.STRING,title:"page.team.pr.firstCommitTime",properties:"beginTaskTime",formatter:Kn,width:130}),(0,lo.jsx)(Sv,{isSortable:!0,template:nc.STRING,title:"page.team.pr.lastCommitTime",properties:"endTaskTime",formatter:Kn,width:130}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"workDays",width:40}),(0,lo.jsx)(Sv,{isSortable:!0,title:"page.team.pr.workDays",properties:"workDays",minWidth:100,template:e=>(0,lo.jsx)(Iv,{options:o,value:e})}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"commits",width:40}),(0,lo.jsx)(Sv,{isSortable:!0,title:"page.team.pr.commits",properties:"commitsByAuthors",minWidth:100,template:e=>(0,lo.jsx)(Iv,{options:i,details:e})}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"delayDays",width:40}),(0,lo.jsx)(Sv,{isSortable:!0,title:"page.team.pr.delayDays",properties:"delayDays",minWidth:200,template:e=>(0,lo.jsx)(Iv,{options:r,value:e})}),(0,lo.jsx)(Sv,{isSortable:!0,template:nc.STRING,title:"page.team.pr.date",properties:"milliseconds",formatter:Kn,width:130}),(0,lo.jsx)(Sv,{isSortable:!0,template:nc.STRING,title:"page.team.pr.mergeAuthor",properties:"author",width:250})]})}T_.defaultProps={mode:void 0,response:void 0};const S_=T_,C_=dn((e=>{let{mode:t}=e;const{t:n}=Bt(),a=so.dataGrip.pr.statistic.filter((e=>e.delayDays>3));if((null===a||void 0===a?void 0:a.length)<2)return"print"!==t?(0,lo.jsx)(bl,{}):null;const s=so.dataGrip.pr.statisticByName,o=Object.values(s);return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Bl,{title:"page.team.pr.oneTaskDays"}),(0,lo.jsx)(w_,{}),(0,lo.jsxs)(Qi,{children:[(0,lo.jsxs)(al,{children:[(0,lo.jsx)(Qo,{text:n("page.team.pr.description1")}),(0,lo.jsx)(Qo,{text:n("page.team.pr.description2")})]}),(0,lo.jsx)(al,{children:(0,lo.jsx)(Qo,{text:n("page.team.pr.description3")})})]}),(0,lo.jsx)("br",{}),(0,lo.jsx)("br",{}),(0,lo.jsx)(Bl,{title:"page.team.pr.statByAuthors"}),(0,lo.jsxs)(Dl,{to:"response",loader:(e,n)=>Fl({content:o,pagination:e,sort:n,mode:t}),children:[(0,lo.jsx)(x_,{mode:t,rowsForExcel:o}),(0,lo.jsx)(Rl,{})]}),(0,lo.jsx)(b_,{}),(0,lo.jsx)(Bl,{title:"page.team.pr.longDelay"}),(0,lo.jsxs)(Dl,{to:"response",loader:(e,n)=>Fl({content:a,pagination:"print"===t?{size:20}:e,sort:n}),children:[(0,lo.jsx)(S_,{mode:t,rowsForExcel:a}),"print"!==t&&(0,lo.jsx)(Rl,{})]})]})})),E_=C_,A_="table-of-contents_table_of_contents__Becki",D_="table-of-contents_table_of_contents_title__3qPIE",j_="table-of-contents_table_of_contents_item__6hX4X";const O_=function(e){let{titles:t}=e;const{t:n}=Bt(),a=(t||[]).map((e=>(0,lo.jsx)("a",{className:j_,href:"#".concat(e),children:n(e||"")},e)));return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Bl,{className:D_,title:"page.print.tableOfContents"}),(0,lo.jsx)("nav",{className:A_,children:a})]})},N_="cover_cover__VAtbV",P_="cover_cover_title__l1TfU",I_="cover_cover_sub_title__u8Khz",L_=dn((()=>{const{t:e}=Bt();return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsxs)("div",{className:N_,children:[(0,lo.jsx)("h1",{className:P_,children:e("page.print.title")}),(0,lo.jsx)("h2",{className:I_,children:document.title}),(0,lo.jsx)(O_,{titles:["page.team.total.titleA","page.team.total.titleB","page.team.scope.title","page.team.author.title","page.team.type.title","page.team.pr.oneTaskDays","page.team.pr.statByAuthors","page.team.pr.longDelay","page.team.hours.title","page.common.words.title"]}),(0,lo.jsx)(Qo,{text:e("page.print.description")})]}),(0,lo.jsx)(Vw,{}),(0,lo.jsx)(b_,{}),(0,lo.jsx)(Vb,{mode:"print"}),(0,lo.jsx)(b_,{}),(0,lo.jsx)(ob,{mode:"print"}),(0,lo.jsx)(b_,{}),(0,lo.jsx)(pk,{mode:"print"}),(0,lo.jsx)(b_,{}),(0,lo.jsx)(E_,{mode:"print"}),(0,lo.jsx)(b_,{}),(0,lo.jsx)(gk,{mode:"print"}),(0,lo.jsx)(b_,{}),(0,lo.jsx)(Bk,{mode:"print"}),(0,lo.jsx)(Nb,{mode:"print"}),(0,lo.jsx)(zb,{mode:"print"})]})})),R_=L_;function F_(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=tb(t,"delayInDays"),r=tb(t,"waitingInDays"),i=Rv({max:Math.max(o,r),suffix:"page.team.release.chart"});return(0,lo.jsxs)(xv,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,lo.jsx)(Sv,{isFixed:!0,template:nc.DETAILS,width:40,formatter:e=>{const t=e.pr.map((e=>{var t,n,a;return null===so||void 0===so||null===(t=so.dataGrip)||void 0===t||null===(n=t.pr)||void 0===n||null===(a=n.pr)||void 0===a?void 0:a[e.prId]})).filter((e=>null===e||void 0===e?void 0:e.firstCommit));return(0,lo.jsx)(S_,{response:{content:t}})}}),(0,lo.jsx)(Sv,{isFixed:!0,template:nc.STRING,title:"page.team.release.title",properties:"title",width:200}),(0,lo.jsx)(Sv,{template:nc.STRING,title:"page.team.release.from",width:150,properties:"from",formatter:Kn}),(0,lo.jsx)(Sv,{template:nc.STRING,title:"page.team.release.to",width:150,properties:"to",formatter:Kn}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"prLength"}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"delayInDays"}),(0,lo.jsx)(Sv,{isSortable:!0,title:"page.team.release.delay",properties:"delayInDays",width:170,minWidth:170,template:e=>(0,lo.jsx)(Iv,{options:i,value:e})}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"waitingInDays"}),(0,lo.jsx)(Sv,{isSortable:!0,title:"page.team.release.waiting",properties:"waitingInDays",width:170,minWidth:170,template:e=>(0,lo.jsx)(Iv,{options:i,value:e})})]})}F_.defaultProps={response:void 0};const M_=dn((e=>{let{mode:t}=e;const n=so.dataGrip.release.statistic;return(null===n||void 0===n?void 0:n.length)<2?"print"!==t?(0,lo.jsx)(bl,{}):null:(0,lo.jsxs)(lo.Fragment,{children:["print"===t?(0,lo.jsx)(Bl,{title:"sidebar.team.extension"}):(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)("br",{}),(0,lo.jsx)("br",{}),(0,lo.jsx)("br",{})]}),(0,lo.jsxs)(Dl,{to:"response",loader:e=>Fl({content:n,pagination:e,mode:t}),watch:"".concat(t).concat(so.dataGrip.hash),children:[(0,lo.jsx)(F_,{mode:t,rowsForExcel:n}),(0,lo.jsx)(Rl,{})]})]})}));function W_(e){const t=ui.processing?"print":void 0;return"total"===e?(0,lo.jsx)(Vw,{}):"scope"===e?(0,lo.jsx)(Vb,{mode:t}):"author"===e?(0,lo.jsx)(ob,{mode:t}):"type"===e?(0,lo.jsx)(pk,{mode:t}):"pr"===e?(0,lo.jsx)(E_,{mode:t}):"day"===e?(0,lo.jsx)(Iw,{}):"week"===e?(0,lo.jsx)(gk,{mode:t}):"month"===e?(0,lo.jsx)(Bk,{mode:t}):"hours"===e?(0,lo.jsx)(Nb,{mode:t}):"files"===e?(0,lo.jsx)(ok,{}):"removedFiles"===e?(0,lo.jsx)(ok,{type:"removed"}):"extension"===e?(0,lo.jsx)(mk,{mode:t}):"release"===e?(0,lo.jsx)(M_,{mode:t}):"commits"===e?(0,lo.jsx)(yb,{}):"changes"===e?(0,lo.jsx)(bb,{}):"words"===e?(0,lo.jsx)(zb,{mode:t}):"top"===e?(0,lo.jsx)(v_,{}):"print"===e?(0,lo.jsx)(R_,{}):"tasks"===e?(0,lo.jsx)(zk,{}):(0,lo.jsx)(Vw,{})}function B_(){const{type:e}=Q();return e&&"team"!==e?null:(0,lo.jsx)(qi,{getViewById:W_})}const U_=dn((e=>{let{filters:n,onChange:a}=e;const{type:s,page:o,userId:r}=Q(),i=J(),l=parseInt(r||"0",10)||0,c=so.dataGrip.author.list.map(((e,t)=>({id:t,title:e}))),m=so.dataGrip.timestamp.statistic.allCommitsByTimestamp||[],d=(0,t.useMemo)((()=>jw(m)),[m]);return(0,lo.jsxs)("div",{className:Aw,children:[(0,lo.jsx)(Ew,{title:"page.team.tree.filters.author",value:l,className:Dw,options:c,onChange:e=>{i("/".concat(s,"/").concat(o,"/").concat(e))}}),"day"===o?(0,lo.jsx)(Ew,{reverse:!0,title:"page.team.tree.filters.author",value:(null===n||void 0===n?void 0:n.week)||m[m.length-1].week,className:Dw,options:d.reverse(),onChange:e=>{a({...n,week:e})}}):null]})})),z_=U_,H_=dn((e=>{let{user:t}=e;const n=so.dataGrip.timestamp.statisticByAuthor[t.author];return(0,lo.jsx)(vb,{statistic:n})})),G_=dn((e=>{let{user:t}=e;const n=so.dataGrip.timestamp.statisticByAuthor[t.author];return(0,lo.jsx)(gb,{statistic:n})})),V_=dn((e=>{let{user:t}=e;return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Bl,{title:"page.person.hours.title"}),(0,lo.jsx)(Qi,{template:"table",children:(0,lo.jsx)(jb,{statistic:t})})]})}));const K_=function(){const{t:e}=Bt();return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)("p",{className:pl,children:e("uiKit.nothingFound.staff.title")}),(0,lo.jsx)("p",{className:hl,children:e("uiKit.nothingFound.staff.description1")}),(0,lo.jsx)("p",{className:hl,children:e("uiKit.nothingFound.staff.description2")})]})},$_=dn((e=>{let{user:t}=e;const n=t,a=so.dataGrip.timestamp.statisticByAuthor[n.author],s=n.tasks.length;return n.isStaff?(0,lo.jsx)(bl,{children:(0,lo.jsx)(K_,{})}):(0,lo.jsxs)(Qi,{children:[(0,lo.jsxs)(al,{children:[(0,lo.jsx)(Bl,{title:"page.person.money.title.total"}),(0,lo.jsxs)("div",{children:[(0,lo.jsx)(Hw,{value:Yn(n.moneyAll),icon:"./assets/cards/money_total.png",title:"page.person.money.moneyAll.title",description:"page.person.money.moneyAll.description"}),(0,lo.jsx)(Hw,{value:Yn(n.moneyWorked),icon:"./assets/cards/money_work.png",title:"page.person.money.moneyWorked.title",description:"page.person.money.moneyWorked.description"}),(0,lo.jsx)(Hw,{value:Yn(n.moneyLosses),icon:"./assets/cards/money_lazy.png",title:"page.person.money.moneyLosses.title",description:"page.person.money.moneyLosses.description"}),(0,lo.jsx)(Hw,{value:Yn(a.weekendPayment),icon:"./assets/cards/money_holidays.png",title:"page.team.total.weekendPayment.title",description:"page.team.total.weekendPayment.description"})]})]}),(0,lo.jsxs)(al,{children:[(0,lo.jsx)(Bl,{title:"page.person.money.title.middle"}),0===s?(0,lo.jsx)(bl,{}):(0,lo.jsxs)("div",{children:[(0,lo.jsx)(Hw,{long:!0,value:s?Yn(n.moneyWorked/s,0):null,icon:"./assets/cards/money_task.png",title:"page.person.money.tasks.title",description:"page.person.money.tasks.description"}),(0,lo.jsx)(Hw,{long:!0,value:s?Yn(n.moneyWorked/n.commits,0):null,icon:"./assets/cards/money_work.png",title:"page.person.money.commits.title",description:"page.person.money.commits.description"})]})]})]})})),q_=dn((e=>{let{user:t,mode:n}=e;const a=t.wordStatistics;return(0,lo.jsx)(Ub,{mode:n,statistic:a})}));function Y_(e){let{long:t=!1}=e;const n=t?Rw:Lw;return(0,lo.jsx)(Mv,{className:"".concat(n," ").concat(Uw)})}Y_.defaultProps={long:!1};const Z_=Y_,X_=dn((e=>{let{user:t}=e;const n=t,a=so.dataGrip.timestamp.statisticByAuthor[n.author],s=n.tasks.length;return n.isStaff?(0,lo.jsx)(bl,{children:(0,lo.jsx)(K_,{})}):(0,lo.jsxs)(Qi,{children:[(0,lo.jsxs)(al,{children:[(0,lo.jsx)(Bl,{title:"page.person.speed.task"}),0===s?(0,lo.jsx)(bl,{}):(0,lo.jsxs)("div",{children:[(0,lo.jsx)(Hw,{value:n.daysForTask&&s?Zn(n.daysForTask):null,icon:"./assets/cards/month.png",title:"page.person.speed.days.title",description:"page.person.speed.days.description"}),(0,lo.jsx)(Hw,{value:s?(n.commits/s).toFixed(1):null,icon:"./assets/cards/commits.png",title:"page.person.speed.commits.title",description:"page.person.speed.commits.description"}),(0,lo.jsx)(Hw,{value:s?n.changesForTask:null,icon:"./assets/cards/lines.png",title:"page.person.speed.line.title",description:"page.person.speed.line.description"}),(0,lo.jsx)(Z_,{})]})]}),(0,lo.jsxs)(al,{children:[(0,lo.jsx)(Bl,{title:"page.person.speed.max"}),(0,lo.jsxs)("div",{children:[(0,lo.jsx)(Hw,{long:!0,value:a.tasksByTimestampCounter.max,icon:"./assets/cards/tasks.png",title:"page.person.speed.tasks.title",description:"page.person.speed.tasks.description"}),(0,lo.jsx)(Hw,{long:!0,value:a.commitsByTimestampCounter.max,icon:"./assets/cards/commits.png",title:"page.person.speed.maxCommits.title",description:"page.person.speed.maxCommits.description"})]})]})]})})),J_={achievement_container:"styles_achievement_container__+OdlC",achievement:"styles_achievement__KB0AO",achievement_icon_container:"styles_achievement_icon_container__0xQ3d",achievement_icon:"styles_achievement_icon__YbtA0",achievement_icon_svg:"styles_achievement_icon_svg__1pahq",achievement_title:"styles_achievement_title__AUtfn",achievement_description:"styles_achievement_description__FkUIC",achievement_good:"styles_achievement_good__12XCY",achievement_bad:"styles_achievement_bad__BmbF0"};const Q_=function(e){let{code:t}=e;const{t:n}=Bt();if(!wn[t])return null;const a=n("achievements.".concat(t,".title")),s=n("achievements.".concat(t,".description")),o=[J_.achievement_good,J_.achievement_middle,J_.achievement_bad][wn[t]-1];return(0,lo.jsxs)("div",{className:J_.achievement,children:[(0,lo.jsx)("div",{className:J_.achievement_icon_container,children:(0,lo.jsx)("div",{className:"".concat(J_.achievement_icon," ").concat(o||""),children:(0,lo.jsx)("img",{className:J_.achievement_icon_svg,src:"./assets/achievements/".concat(t,".svg")})})}),(0,lo.jsx)("div",{className:J_.achievement_title,children:a}),(0,lo.jsx)("div",{className:J_.achievement_description,children:s})]})};const ex=function(e){let{list:t}=e;const n=null===t||void 0===t?void 0:t.map((e=>(0,lo.jsx)(Q_,{code:e},e)));return(0,lo.jsx)("div",{className:J_.achievement_container,children:n})};const tx="styles_get_list_container__YnNGO",nx="styles_get_list__xuTNI",ax="styles_get_list_title__J-b47",sx="styles_get_list_icon__I4DqV",ox="styles_get_list_big_number__RbCn9";const rx=function(e){var t,n,a,s,o;let{commit:r,mode:i}=e;const l=((null===(t=r.taskNumber)||void 0===t?void 0:t.length)||1)>5?ox:"",c=_s.pr.prByTask[r.task];return(0,lo.jsxs)("div",{className:nx,children:[(0,lo.jsxs)("div",{className:ax,children:[(0,lo.jsx)(mb,{link:"".concat((null===Wn||void 0===Wn||null===(n=Wn.settings)||void 0===n||null===(a=n.linksPrefix)||void 0===a?void 0:a.task)||"/").concat(r.task),text:r.task}),c&&"print"!==i&&(0,lo.jsx)(mb,{link:"".concat((null===Wn||void 0===Wn||null===(s=Wn.settings)||void 0===s||null===(o=s.linksPrefix)||void 0===o?void 0:o.pr)||"/").concat(c),text:"PR"})]}),(0,lo.jsx)("div",{className:"".concat(sx," ").concat(l),children:r.taskNumber})]})};const ix=function(e){let{list:t,mode:n}=e;const a=null===t||void 0===t?void 0:t.map((e=>(0,lo.jsx)(rx,{commit:e,mode:n},e.taskNumber)));return(0,lo.jsx)("div",{className:tx,children:a})};function lx(e){let{title:t,achievements:n}=e;const{t:a}=Bt();return null!==n&&void 0!==n&&n.length?(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Qo,{text:"# ".concat(a(t))}),(0,lo.jsx)(ex,{list:n})]}):null}const cx=dn((e=>{let{user:t}=e;const{t:n}=Bt(),a=t,s=so.dataGrip.get.getsByAuthor[t.author],o=a.tasks.length,r=Nn.authors[a.author];return(0,lo.jsxs)(Qi,{children:[(0,lo.jsxs)(al,{children:[(0,lo.jsx)(Bl,{title:"page.person.total.title"}),(0,lo.jsxs)("div",{children:[(0,lo.jsx)(Hw,{value:a.daysWorked,icon:"./assets/cards/work_days.png",title:"page.person.total.daysWorked.title",description:"page.person.total.daysWorked.description"}),(0,lo.jsx)(Hw,{value:o||null,icon:"./assets/cards/tasks.png",title:"page.person.total.tasks.title",description:"page.person.total.tasks.description"}),(0,lo.jsx)(Hw,{value:a.daysLosses,icon:"./assets/cards/lazy.png",title:"page.team.total.daysLosses.title",description:"page.team.total.daysLosses.description"}),(0,lo.jsx)(Hw,{value:a.commits,icon:"./assets/cards/commits.png",title:"page.team.total.commits.title",description:"page.team.total.commits.description"}),(0,lo.jsx)(Z_,{long:!0})]}),!1,!1]}),(0,lo.jsxs)(al,{children:[(0,lo.jsx)(Bl,{title:"page.person.achievement.title"}),(0,lo.jsx)(lx,{title:"page.person.achievement.positive",achievements:r[yn-1]}),(0,lo.jsx)(lx,{title:"page.person.achievement.normal",achievements:r[vn-1]}),(0,lo.jsx)(lx,{title:"page.person.achievement.negative",achievements:r[bn-1]}),(0,lo.jsx)(Qo,{text:n("page.person.achievement.description")}),(0,lo.jsx)("br",{}),(0,lo.jsx)("br",{}),null!==s&&void 0!==s&&s.length?(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Bl,{title:"page.person.gets.title"}),(0,lo.jsx)(ix,{list:s}),(0,lo.jsx)(Qo,{text:n("page.person.gets.description")})]}):null]})]})})),mx=cx;function dx(e){let{response:t,updateSort:n,name:a,mode:s}=e;if(!t)return null;const o=Rv({max:tb(t,"authors",a),order:so.dataGrip.type.list}),r=Rv({max:7,order:["page.person.week.workDay","page.person.week.weekends"],suffix:"page.person.week.days"}),i=Rv({max:tb(t,"taskInDay",a)});return(0,lo.jsxs)(xv,{rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,lo.jsx)(Sv,{isFixed:!0,template:nc.STRING,title:"page.person.week.date",properties:"timestamp",formatter:Xn,width:200}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"authors",formatter:e=>e[a]||0}),(0,lo.jsx)(Sv,{title:"page.person.week.tasks",template:e=>(0,lo.jsx)(Iv,{options:o,value:e.authors[a],details:e.typeByAuthor[a]}),width:200}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"workDays",formatter:e=>e[a]||0}),(0,lo.jsx)(Sv,{title:"page.person.week.workDays",template:e=>{let[t,n]=e;return(0,lo.jsx)(Iv,{options:r,value:t+n,details:{"page.person.week.workDay":t,"page.person.week.weekends":n}})},formatter:e=>(null===e||void 0===e?void 0:e.workDays[a])>5?[5,(null===e||void 0===e?void 0:e.workDays[a])-5]:[null===e||void 0===e?void 0:e.workDays[a],0],width:200}),(0,lo.jsx)(Sv,{template:nc.SHORT_NUMBER,properties:"taskInDay",formatter:e=>Zn(e[a]||0)}),(0,lo.jsx)(Sv,{title:"page.person.week.taskInDay",properties:"taskInDay",template:e=>(0,lo.jsx)(Iv,{options:i,value:e[a]}),width:200})]})}dx.defaultProps={response:void 0};const ux=dn((e=>{var t;let{user:n,mode:a}=e;const s=n,o=so.dataGrip.week.statistic.filter((e=>e.authors[s.author]));if(null===o||void 0===o||!o.length)return(0,lo.jsx)(bl,{});const r=null===(t=so.dataGrip.recommendations.person)||void 0===t?void 0:t.byWeek[s.author];return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(eb,{mode:a,recommendations:r}),(0,lo.jsxs)(Dl,{to:"response",loader:(e,t)=>Fl({content:o,pagination:e,sort:t}),children:[(0,lo.jsx)(dx,{name:s.author,mode:a}),"print"!==a&&(0,lo.jsx)(Rl,{})]})]})})),px=ux,hx=dn((e=>{let{user:t}=e;const n=t,a=so.dataGrip.timestamp.statisticByAuthor[n.author],s=a.commitsByTimestampCounter.max;return(0,lo.jsx)(lo.Fragment,{children:(0,lo.jsx)(Qi,{template:"table",children:(0,lo.jsx)(Mk,{showEvents:!1,maxCommits:s,authors:[n],wordDays:a.allCommitsByTimestamp})})})})),fx=dn((e=>{let{user:t,mode:n}=e;const a=so.dataGrip.tasks.statistic.filter((e=>e.author===t.author||(e.authors||[]).includes(t.author)));return null!==a&&void 0!==a&&a.length?(0,lo.jsxs)(Dl,{to:"response",loader:(e,t)=>Fl({content:a,pagination:e,sort:t,mode:n}),watch:"".concat(n).concat(so.dataGrip.hash).concat(t.author),children:[(0,lo.jsx)(Uk,{mode:n,rowsForExcel:a}),(0,lo.jsx)(Rl,{})]}):"print"!==n?(0,lo.jsx)(bl,{}):null}));function gx(e){let{response:t,user:n}=e;return t?(0,lo.jsx)(Sw,{days:t.content,author:n}):null}gx.defaultProps={response:void 0};const yx=dn((e=>{let{user:t,filters:n}=e;const a=so.dataGrip.timestamp.statistic.allCommitsByTimestamp||[];if(null===a||void 0===a||!a.length)return(0,lo.jsx)(bl,{});const s=function(e,t){return t.filter((t=>t.week===e.week)).slice(0,7)}({week:n.week,user:t.author},a);return null!==s&&void 0!==s&&s.length?(0,lo.jsx)(lo.Fragment,{children:(0,lo.jsx)(Qi,{template:"table",children:(0,lo.jsxs)(Dl,{to:"response",loader:()=>Fl({content:s}),watch:JSON.stringify(n),children:[(0,lo.jsx)(gx,{user:t.author}),(0,lo.jsx)(Rl,{})]})})}):(0,lo.jsx)(bl,{})})),vx="print_place_for_photo__WPPt6",bx=dn((e=>{let{user:t}=e;const{t:n}=Bt(),a=t,s=a.tasks.length;return(0,lo.jsxs)(Qi,{children:[(0,lo.jsxs)(al,{children:[(0,lo.jsx)(Hw,{value:"",icon:"./assets/cards/work_days.png",title:"page.person.print.photo.title"}),(0,lo.jsx)("div",{className:vx,children:n("page.person.print.photo.description")})]}),(0,lo.jsxs)(al,{children:[(0,lo.jsx)(Bl,{title:a.author}),(0,lo.jsxs)("div",{children:[(0,lo.jsx)(Hw,{value:a.daysWorked,icon:"./assets/cards/work_days.png",title:"page.person.total.daysWorked.title",description:"page.person.total.daysWorked.description"}),(0,lo.jsx)(Hw,{value:s||null,icon:"./assets/cards/tasks.png",title:"page.person.total.tasks.title",description:"page.person.total.tasks.description"}),(0,lo.jsx)(Hw,{value:a.daysLosses,icon:"./assets/cards/lazy.png",title:"page.team.total.daysLosses.title",description:"page.team.total.daysLosses.description"}),(0,lo.jsx)(Hw,{value:a.commits,icon:"./assets/cards/commits.png",title:"page.team.total.commits.title",description:"page.team.total.commits.description"})]})]})]})})),wx=bx;function kx(e){let{title:t,achievements:n}=e;return null!==n&&void 0!==n&&n.length?(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Qo,{text:"# ".concat(t)}),(0,lo.jsx)(ex,{list:n})]}):null}const _x=dn((e=>{let{user:t}=e;const{t:n}=Bt(),a=t,s=so.dataGrip.get.getsByAuthor[a.author],o=Nn.authors[a.author];return(0,lo.jsxs)(Qi,{children:[(0,lo.jsxs)(al,{children:[(0,lo.jsx)(Bl,{title:"page.person.achievement.title"}),(0,lo.jsx)(kx,{title:"page.person.achievement.positive",achievements:o[yn-1]})]}),(0,lo.jsxs)(al,{children:[(0,lo.jsx)(Bl,{title:n("_")}),(0,lo.jsx)(kx,{title:"page.person.achievement.normal",achievements:o[vn-1]}),(0,lo.jsx)(kx,{title:"page.person.achievement.negative",achievements:o[bn-1]}),(0,lo.jsx)("br",{}),(0,lo.jsx)("br",{}),null!==s&&void 0!==s&&s.length?(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Bl,{title:"page.person.gets.title"}),(0,lo.jsx)(ix,{mode:"print",list:s}),(0,lo.jsx)(Qo,{text:n("page.person.gets.description")})]}):null]})]})})),xx=_x,Tx=dn((e=>{let{user:t}=e;const{t:n}=Bt();return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsxs)("div",{className:N_,children:[(0,lo.jsx)("h1",{className:P_,children:n("page.print.title")}),(0,lo.jsx)("h2",{className:I_,children:t.author}),(0,lo.jsx)(O_,{titles:["page.team.total.titleA","page.person.speed.task","page.person.speed.max","page.team.total.titleB","page.person.achievement.title","page.person.hours.title","page.common.words.title"]}),(0,lo.jsx)(Qo,{text:n("page.print.description")})]}),(0,lo.jsx)(b_,{}),(0,lo.jsx)(wx,{user:t}),(0,lo.jsx)(X_,{user:t}),(0,lo.jsx)($_,{user:t}),(0,lo.jsx)(b_,{}),(0,lo.jsx)(xx,{user:t}),(0,lo.jsx)(b_,{}),(0,lo.jsx)(V_,{user:t}),(0,lo.jsx)(px,{user:t,mode:"print"}),(0,lo.jsx)(b_,{}),(0,lo.jsx)(hx,{user:t}),(0,lo.jsx)(q_,{user:t,mode:"print"})]})})),Sx=Tx;const Cx=dn((e=>{let{userId:n}=e;const{t:a}=Bt(),{type:s,page:o,userId:r}=Q(),i=so.dataGrip.timestamp.statistic.allCommitsByTimestamp||[],l=i.length?i[i.length-1].week:0,[c,m]=(0,t.useState)({week:l}),d=so.dataGrip.author.statistic[n||r||0];if("person"!==s||!d)return null;const u=function(e,t){return function(n){const a=ui.processing?"print":void 0;return"total"===n?(0,lo.jsx)(mx,{user:e}):"money"===n?(0,lo.jsx)($_,{user:e}):"week"===n?(0,lo.jsx)(px,{user:e,mode:a}):"month"===n?(0,lo.jsx)(hx,{user:e}):"hours"===n?(0,lo.jsx)(V_,{user:e}):"commits"===n?(0,lo.jsx)(G_,{user:e}):"changes"===n?(0,lo.jsx)(H_,{user:e}):"words"===n?(0,lo.jsx)(q_,{user:e,mode:a}):"speed"===n?(0,lo.jsx)(X_,{user:e}):"day"===n?(0,lo.jsx)(yx,{user:e,filters:t}):"print"===n?(0,lo.jsx)(Sx,{user:e}):"tasks"===n?(0,lo.jsx)(fx,{user:e}):(0,lo.jsx)(mx,{user:e})}}(d,c);return(0,lo.jsxs)(lo.Fragment,{children:["print"!==o&&(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Bl,{title:a("common.filters")}),(0,lo.jsx)(z_,{filters:c,onChange:m})]}),(0,lo.jsx)(qi,{getViewById:u})]})})),Ex=Cx,Ax=dn((()=>{const e=so.dataGrip.author.statistic,t=Object.entries(e).filter((e=>{let[,t]=e;return!t.isStaff})).map((e=>{let[t,n]=e;return(0,lo.jsx)(Sx,{user:n},t)}));return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(R_,{}),t]})})),Dx="Console_console__5nFvk",jx="Console_console_header__XP1IR",Ox="Console_console_body__5PXuM",Nx="Console_console_header_icon__oXixF",Px="Console_console_copy__LHjsv";function Ix(e){let{className:t,textForCopy:n,children:a}=e;return(0,lo.jsxs)("div",{className:"".concat(Dx," ").concat(t||""),children:[(0,lo.jsxs)("div",{className:"".concat(jx),children:[(0,lo.jsx)("span",{className:"".concat(Nx)}),(0,lo.jsx)("span",{className:"".concat(Nx)}),(0,lo.jsx)("span",{className:"".concat(Nx)})]}),(0,lo.jsx)("div",{className:"".concat(Ox),children:a||n}),(0,lo.jsx)(Ao,{mode:"second",className:"".concat(Px),onClick:()=>{!function(e){if(!e)return;const t=document.createElement("textarea");t.style.position="fixed",t.style.opacity="0",t.textContent=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}(n),Sr.Z.show(xe.Z.get("uiKit.console.notification"))},children:xe.Z.get("uiKit.console.button")})]})}Ix.defaultProps={textForCopy:void 0,children:void 0,className:""};const Lx=Ix,Rx="styles_welcome__owZYZ",Fx="styles_welcome_console__dmg4D",Mx="styles_welcome_row__rormW",Wx="styles_welcome_warning__sf+kx",Bx="styles_welcome_warning_text__vMmIf",Ux="styles_welcome_description__lB3jg",zx="styles_welcome_first_title__zay7R",Hx="styles_welcome_last_title__Ef7FS",Gx="styles_welcome_title_link__csDka";function Vx(){return(0,lo.jsxs)("h4",{className:Wx,children:[(0,lo.jsx)(Qo,{text:xe.Z.get("page.welcome.warning1"),className:Bx}),(0,lo.jsx)(Qo,{text:xe.Z.get("page.welcome.warning2"),className:Bx})]})}const Kx=function(){const e=window.ym;return(0,lo.jsxs)(lo.Fragment,{children:[e&&(0,lo.jsx)(Vx,{}),(0,lo.jsx)("section",{className:Rx,children:(0,lo.jsxs)("div",{className:Mx,children:[(0,lo.jsx)("h2",{className:zx,children:xe.Z.get("page.welcome.step1")}),(0,lo.jsx)(Lx,{className:Fx,textForCopy:'git --no-pager log --raw --numstat --oneline --all --reverse --date=iso-strict --pretty=format:"%ad>%cN>%cE>%s" > log.txt\n'}),(0,lo.jsx)(Qo,{text:xe.Z.get("page.welcome.description"),className:"".concat(Ux)}),(0,lo.jsxs)("h2",{className:Hx,children:["page.welcome.step2"===xe.Z.get("page.welcome.step2")?"":xe.Z.get("page.welcome.step2"),(0,lo.jsxs)("label",{className:Gx,children:[xe.Z.get("page.welcome.step3"),(0,lo.jsx)("input",{multiple:!0,type:"file",style:{display:"none"},onChange:async e=>{const t=Array.from(e.target.files),n=await(0,oo.BE)(t),a=(0,oo.IM)(n);so.setCommits(a)}})]}),xe.Z.get("page.welcome.step4")]})]})})]})};const $x=function(e){let{title:n,mode:a,disabled:s,className:o,options:r,onClick:i,children:l}=e;if(null===r||void 0===r||!r.length)return null;const[c,m]=(0,t.useState)(!1),d=Eo(a,s),u=null===r||void 0===r?void 0:r.map((e=>{var t,a,s;const o=null!==(t=null!==(a=null!==(s=null===e||void 0===e?void 0:e.title)&&void 0!==s?s:null===e||void 0===e?void 0:e.id)&&void 0!==a?a:e)&&void 0!==t?t:"";return(0,lo.jsx)("button",{className:So.ui_kit_button_menu,onClick:()=>{i&&i(e),m(!1)},children:o},n)}));return(0,lo.jsx)(lo.Fragment,{children:(0,lo.jsxs)("button",{title:n,className:"".concat(So.ui_kit_button," ").concat(d||""," ").concat(o||""),style:{position:"relative"},onClick:()=>{m(!c)},children:[l,c&&(0,lo.jsx)("div",{className:So.ui_kit_dialog,children:u})]})})};const qx=function(e){let{columns:t,className:n,children:a}=e;return(0,lo.jsx)("div",{className:"".concat(zr," ").concat(n||""),style:{columnCount:t||2},children:a})},Yx="switch_ui_kit_switch__ITpXv",Zx="switch_ui_kit_switch_item__oGEAZ",Xx="switch_ui_kit_switch_item_selected__poF9E",Jx="switch_ui_kit_switch_item_disabled__7Inlc";const Qx=function(e){let{title:t,description:n,help:a,error:s,className:o,disabled:r,multiple:i,value:l,options:c,onChange:m}=e;const d=l||0===l||!1===l;let u=l;d&&!Array.isArray(l)&&(u=[l]);const p=(c||[]).map(((e,t)=>{var n,a;const s="object"!==typeof e?{id:e,title:e}:e,o=d&&u.includes(null===s||void 0===s?void 0:s.id),l=[Zx];return o&&l.push(Xx),r&&l.push(Jx),(0,lo.jsx)("button",{className:l.join(" "),onClick:()=>{if(!m)return;let e=[null===s||void 0===s?void 0:s.id];i&&(e=o?u.filter((e=>e!==(null===s||void 0===s?void 0:s.id))):[...u,null===s||void 0===s?void 0:s.id].sort()),m(e)},children:null!==(n=null!==(a=null===s||void 0===s?void 0:s.title)&&void 0!==a?a:null===s||void 0===s?void 0:s.id)&&void 0!==n?n:""},"".concat(null===s||void 0===s?void 0:s.id,"_").concat(t))}));return(0,lo.jsx)($r,{title:t,description:n,help:a,error:s,className:o,children:(0,lo.jsx)("div",{className:Yx,children:p})})};function eT(e){let{title:t,description:n,help:a,error:s,className:o,value:r,placeholder:i,onChange:l}=e;const c=(null===r||void 0===r?void 0:r.length)>10?r.substring(0,10):r;return(0,lo.jsx)($r,{title:t,description:n,help:a,error:s,className:o,children:(0,lo.jsx)("input",{type:"date",value:c,placeholder:i,className:qr,onChange:e=>{l&&l("".concat(e.target.value,"T00:00:00.000Z"))}})})}eT.defaultProps={placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435"};const tT=eT;const nT=function(e){let{salary:n,index:a,onChange:s,onRemove:o}=e;const[r,i]=(0,t.useState)(!1);return(0,lo.jsxs)("div",{className:ei.salary,children:[(0,lo.jsx)(Bl,{title:xe.Z.get("page.settings.user.subTitle",a),className:r?"":ei.salary_title}),(0,lo.jsx)("div",{className:ei.salary_icons,children:(0,lo.jsx)("img",{className:ei.salary_icons_item,src:"./assets/list/arrow.svg",onClick:()=>i(!r)})}),r&&(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsxs)(qx,{children:[(0,lo.jsx)(tT,{title:"page.settings.user.from",value:null===n||void 0===n?void 0:n.from,onChange:e=>{s({...n,from:e})}}),(0,lo.jsx)(Qx,{disabled:!0,title:"page.settings.common.workDaysInWeek",value:n.workDaysInWeek,options:[1,2,3,4,5,6,7],onChange:e=>{s({...n,workDaysInWeek:e})}})]}),(0,lo.jsxs)(qx,{children:[(0,lo.jsx)($w,{title:"page.settings.common.salary",value:null===n||void 0===n?void 0:n.value,onChange:e=>{s({...n,value:e})}}),(0,lo.jsx)(Qx,{disabled:!0,title:"page.settings.common.currency",value:null===n||void 0===n?void 0:n.currency,options:["RUB","USD","EUR"],onChange:e=>{s({...n,currency:e})}})]}),(0,lo.jsxs)(qx,{children:[(0,lo.jsx)($w,{title:"page.settings.common.workDaysInYear",value:null===n||void 0===n?void 0:n.workDaysInYear,onChange:e=>{s({...n,workDaysInYear:e})}}),(0,lo.jsx)($w,{title:"page.settings.common.vacationDaysInYear",value:null===n||void 0===n?void 0:n.vacationDaysInYear,onChange:e=>{s({...n,vacationDaysInYear:e})}})]}),(0,lo.jsx)("div",{className:ei.salary_footer,children:(0,lo.jsx)(Ao,{mode:"second",onClick:()=>zo.open().then((()=>o())),children:xe.Z.get("page.settings.form.remove")})})]})]})};const aT=function(e){let{user:t,onChange:n,onRemove:a}=e;const s=t.salary.map(((e,a)=>(0,lo.jsx)(nT,{index:a+1,salary:e,onChange:a=>{n({...t,salary:t.salary.map((t=>t.id===e.id?a:t))})},onRemove:()=>{n({...t,salary:t.salary.filter((t=>t.id!==e.id))})}},t.id)));return(0,lo.jsxs)(tl,{className:ei.user,onRemove:()=>zo.open().then((()=>a())),children:[(0,lo.jsx)(Bl,{title:(null===t||void 0===t?void 0:t.name)||"",className:ei.user_title}),s,(0,lo.jsx)("div",{className:ei.user_footer,children:(0,lo.jsx)(Ao,{mode:"slim",onClick:()=>{n({...t,salary:[...t.salary,In(Cr.state)]})},children:xe.Z.get("page.settings.form.addContract")})})]})},sT=dn((()=>{const e=Cr.state.defaultSalary;return e?(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Bl,{title:"page.settings.common.title"}),(0,lo.jsxs)(tl,{children:[(0,lo.jsx)(Qx,{disabled:!0,title:"page.settings.common.type.title",value:e.type,options:[{id:"full",title:xe.Z.get("page.settings.common.type.full")},{id:"part",title:xe.Z.get("page.settings.common.type.part")}],onChange:e=>{Cr.updateState("defaultSalary.type",null===e||void 0===e?void 0:e.id)}}),(0,lo.jsx)(Qx,{disabled:!0,multiple:!0,title:"page.settings.common.workDaysInWeek",value:e.workDaysInWeek.map(((e,t)=>e?t+1:null)),options:[{id:1,title:Hn(0,"short")},{id:2,title:Hn(1,"short")},{id:3,title:Hn(2,"short")},{id:4,title:Hn(3,"short")},{id:5,title:Hn(4,"short")},{id:6,title:Hn(5,"short")},{id:7,title:Hn(6,"short")}],onChange:e=>{const t=new Array(7).fill(0).map(((t,n)=>e.includes(n+1)));console.log(t),Cr.updateState("defaultSalary.workDaysInWeek",t)}}),(0,lo.jsxs)(qx,{children:[(0,lo.jsx)($w,{title:"page.settings.common.salary",value:e.value,onChange:e=>{Cr.updateState("defaultSalary.value",e)}}),(0,lo.jsx)($w,{disabled:!0,title:"page.settings.common.tax",value:e.tax,onChange:e=>{Cr.updateState("defaultSalary.tax",e)}})]}),(0,lo.jsxs)(qx,{children:[(0,lo.jsx)($w,{title:"page.settings.common.workDaysInYear",value:e.workDaysInYear,onChange:e=>{Cr.updateState("defaultSalary.workDaysInYear",e)}}),(0,lo.jsx)($w,{title:"page.settings.common.vacationDaysInYear",value:e.vacationDaysInYear,onChange:e=>{Cr.updateState("defaultSalary.vacationDaysInYear",e)}})]}),(0,lo.jsx)(Qx,{title:"page.settings.common.currency",value:e.currency,options:["USD","EUR","RUB","CNY","JPY","KRW","CAD"],onChange:e=>{Cr.updateState("defaultSalary.currency",e)}})]})]}):null})),oT=sT,rT=dn((()=>{const{i18n:e}=Bt(),[n,a]=(0,t.useState)(document.title),[s,o]=(0,t.useState)(xe.Z.language);return(0,t.useEffect)((()=>{e.changeLanguage(s)}),[s]),(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Bl,{title:"page.settings.document.title"}),(0,lo.jsxs)(tl,{children:[(0,lo.jsx)(Ol,{title:"page.settings.document.name",value:n,placeholder:xe.Z.get("common.title"),onChange:e=>{a(e),document.title=e||xe.Z.get("common.title"),to.C.title=!0}}),(0,lo.jsx)(Qr,{title:"page.settings.document.language",value:s,options:[{id:"ru",title:"\u0420\u0443\u0441\u0441\u043a\u0438\u0439"},{id:"en",title:"English"},{id:"zh",title:"\u4e2d\u6587"},{id:"es",title:"Espa\xf1ol"},{id:"fr",title:"Fran\xe7ais"},{id:"pt",title:"Portugu\xeas"},{id:"de",title:"Deutsch"},{id:"ja",title:"\u65e5\u672c\u8a9e"}],onChange:(e,t)=>{xe.Z.language=t,o(t)}})]})]})})),iT=dn((()=>{var e,t;return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Bl,{title:"page.settings.links.title"}),(0,lo.jsxs)(tl,{children:[(0,lo.jsx)(Ol,{title:"page.settings.links.task",value:null===(e=Cr.state)||void 0===e||null===(t=e.linksPrefix)||void 0===t?void 0:t.task,placeholder:"https://jira.com/secure/RapidBoard.jspa?task=",onChange:e=>{Cr.updateState("linksPrefix.task",e)}}),(0,lo.jsx)(Ol,{title:"page.settings.links.pr",value:Cr.state.linksPrefix.pr,placeholder:"https://bitbucket.com/projects/assayo/repos/frontend/pull-requests/",onChange:e=>{Cr.updateState("linksPrefix.pr",e)}})]})]})}));const lT=function(){const e=so.dataGrip.author.statistic.map((e=>"".concat(e.author," <").concat(e.firstCommit.email,"> <").concat(e.firstCommit.email,">"))).sort(),t=e.map((e=>(0,lo.jsx)("p",{children:e},e))),n=e.join("\r\n");return(0,lo.jsx)("div",{className:ei.races_track,children:(0,lo.jsx)(Lx,{textForCopy:n,children:t})})},cT=dn((e=>{const t=Cr.state.employees;if(!e||!t)return null;const n=t.map((e=>e.name)),a=so.dataGrip.author.list.filter((e=>!n.includes(e))).map(((e,t)=>({id:t,title:e}))),s=Cr.state.employees.map((e=>(0,lo.jsx)(aT,{user:e,onChange:n=>{const a=t.map((t=>t.id===e.id?n:t));Cr.updateState("employees",a)},onRemove:()=>{const n=t.filter((t=>t.id!==e.id));Cr.updateState("employees",n)}},e.id)));return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsxs)(Qi,{children:[(0,lo.jsxs)(al,{children:[(0,lo.jsx)(rT,{}),(0,lo.jsx)(iT,{}),(0,lo.jsx)(oT,{})]}),(0,lo.jsxs)(al,{children:[(0,lo.jsx)(Bl,{title:"page.settings.user.title"}),t.length>0?s:(0,lo.jsx)(bl,{message:"page.settings.user.notFound"}),a.length&&(0,lo.jsx)("div",{className:ei.buttons_footer,children:(0,lo.jsx)($x,{options:a,onClick:e=>{Cr.updateState("employees",[...t,Ln(null===e||void 0===e?void 0:e.title,Cr.state,null===n||void 0===n?void 0:n.length)])},children:xe.Z.get("page.settings.form.addEmployee")})})]})]}),(0,lo.jsxs)(Qi,{children:[(0,lo.jsx)(Bl,{title:"page.settings.mailmap"}),(0,lo.jsx)(lT,{})]})]})})),mT=dn((()=>(0,lo.jsx)(Dl,{to:"response",loader:()=>Fn.loadSettings().then((e=>(Cr.setInitState(e),Promise.resolve(e)))),children:(0,lo.jsx)(cT,{})})));function dT(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!e)return t;for(let n in e){const a=e[n];null!==a&&void 0!==a&&a.title?t.push(a):"string"===typeof a?t.push({title:a}):dT(a,t)}return t}const uT=function(){const e=dT(xe.Z.translations[xe.Z.language].recommendations).map((e=>(0,lo.jsx)(Zv,{recommendation:e},e[1]))),t=Object.entries(wn).sort(((e,t)=>e[1]-t[1])).map((e=>{let[t]=e;return(0,lo.jsx)(Q_,{code:t},t)}));return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Bl,{title:"page.person.achievement.title"}),(0,lo.jsx)("div",{style:{columnCount:3,marginBottom:"24px"},children:t}),(0,lo.jsx)("section",{children:e})]})};function pT(e){let{showSplashScreen:t}=e;return(0,lo.jsxs)(lo.Fragment,{children:[(0,lo.jsx)(Ho,{}),(0,lo.jsxs)(de,{children:[(0,lo.jsx)(ce,{path:"/settings",element:(0,lo.jsx)(Ui,{children:(0,lo.jsx)(mT,{})})}),(0,lo.jsx)(ce,{path:"/debug",element:(0,lo.jsx)(Ui,{children:(0,lo.jsx)(uT,{})})}),(0,lo.jsx)(ce,{path:"/print",element:(0,lo.jsx)(Ui,{children:(0,lo.jsx)(Ax,{})})}),(0,lo.jsx)(ce,{path:"/:type/:page",element:(0,lo.jsx)(Ui,{children:(0,lo.jsx)(B_,{})})}),(0,lo.jsx)(ce,{path:"/:type/:page/:userId",element:(0,lo.jsx)(Ui,{children:(0,lo.jsx)(Ex,{})})}),(0,lo.jsx)(ce,{path:"*",element:(0,lo.jsx)(Ui,{children:(0,lo.jsx)(B_,{})})})]}),t&&(0,lo.jsx)(To,{})]})}function hT(){return(0,lo.jsx)(de,{children:(0,lo.jsx)(ce,{path:"*",element:(0,lo.jsx)(Kx,{})})})}const fT=dn((()=>{const[e,n]=(0,t.useState)(!0),a=so.status;return(0,t.useEffect)((()=>{var e;so.setCommits((null===(e=window)||void 0===e?void 0:e.report)||[])}),[]),a===no.PROCESSING?null:(0,lo.jsxs)(lo.Fragment,{children:[a===no.DONE&&(0,lo.jsx)(pT,{showSplashScreen:e}),a===no.WAITING&&(0,lo.jsx)(hT,{}),(0,lo.jsx)(co,{onChange:(e,t)=>{n(!1),"dump"===e&&so.setCommits(t),setTimeout((()=>{n(!0)}))}})]})})),gT=fT,yT=dn((()=>{const{state:e,isInitialization:t}=hn;return(0,lo.jsx)(gT,{})})),vT="styles_notifications__87i8g",bT="styles_notifications_item__5QkTA",wT="styles_notifications_item_error__scoxJ",kT="styles_notifications_item_warning__L7TAD",_T="styles_notifications_item_success__Kkmlt",xT="styles_notifications_item_info__i59W4",TT="styles_notifications_item_title__nX-MS",ST="styles_notifications_item_description__ehatL";const CT=function(e){let{message:t}=e;const n={error:wT,warning:kT,success:_T,info:xT}[t.type||"success"]||xT;return(0,lo.jsxs)("div",{className:"".concat(bT," ").concat(n),children:[t.title&&(0,lo.jsx)("h6",{className:TT,children:t.title}),t.description&&(0,lo.jsx)("p",{className:ST,children:t.description})]})},ET=dn((()=>{const e=Sr.Z.messages.map((e=>(0,lo.jsx)(CT,{message:e},e.id)));return a.createPortal((0,lo.jsx)("div",{className:vT,children:e}),document.body)}));xe.Z.parse("de",Te),xe.Z.parse("en",Se),xe.Z.parse("es",Ce),xe.Z.parse("fr",Ee),xe.Z.parse("ja",Ae),xe.Z.parse("pt",De),xe.Z.parse("ru",je),xe.Z.parse("zh",Oe),(0,to.Z)((e=>{!function(e){const t=e||localStorage.getItem("language")||Ht||"en";xe.Z.language=t,vt.use(It).init({lng:t,debug:!1,resources:zt})}(e.lang||e.language),po.setUrlParameters(e),Wn.loadUserSettings().then((()=>{window.onafterprint=()=>{ui.endPrint()},(0,a.render)((0,lo.jsx)(t.StrictMode,{children:(0,lo.jsxs)(ve,{children:[(0,lo.jsx)(yT,{}),(0,lo.jsx)(ET,{})]})}),document.getElementById("root"))}))}))})()})();
-//# sourceMappingURL=main.95fe5bd0.js.map
\ No newline at end of file
+/*! For license information please see main.c583b504.js.LICENSE.txt */
+(()=>{var __webpack_modules__={806:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";function getStringsForParser(text){let temp=window.report;window.report=[];const firstText=text.slice(0,12);if("report.push("===firstText)try{eval(text)}catch(e){return void(window.report=temp)}else window.report=text.split("\n");return window.report}async function getStringFromFileList(e){return(await Promise.all(e.map((e=>e.text())))).filter((e=>e)).map((e=>({key:e.substring(13,32),text:e}))).sort(((e,t)=>(e.key||"").localeCompare(t.key||""))).map((e=>e.text)).join("\n")}function getOnDrop(e,t){return async function(n){var a;n.preventDefault(),n.stopPropagation();const s=[...(null===n||void 0===n||null===(a=n.dataTransfer)||void 0===a?void 0:a.items)||[]].map((e=>"file"===e.kind?null===e||void 0===e?void 0:e.getAsFile():null)).filter((e=>e));if(e(!1),!s.length)return;const o=getStringsForParser(await getStringFromFileList(s));t("dump",o)}}function getShowDropZone(e){return function(t){t.preventDefault(),t.stopPropagation(),e(!0)}}__webpack_require__.d(__webpack_exports__,{BE:()=>getStringFromFileList,C4:()=>getShowDropZone,IM:()=>getStringsForParser,ae:()=>getOnDrop})},122:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});var a=n(98),s=n(289);class o{constructor(){this.timer=null,this.limit=6,this.messages=[],(0,a.rC)(this,{messages:a.LO,show:a.aD,startClearTimer:a.aD})}static getTime(){return(new Date).getTime()}show(e){this.messages.push({id:o.getTime(),title:s.Z.get((null===e||void 0===e?void 0:e.title)||e||"common.notifications.save"),description:(null===e||void 0===e?void 0:e.description)||"",type:(null===e||void 0===e?void 0:e.type)||"success"}),this.messages.length>this.limit&&this.messages.shift(),this.startClearTimer()}startClearTimer(){this.timer||(this.timer=setInterval((()=>{const e=o.getTime()-3500;this.messages=this.messages.filter((t=>(null===t||void 0===t?void 0:t.id)>e)),this.messages.length||(clearInterval(this.timer),this.timer=null)}),500))}}const r=new o},289:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var a=n(274),s=n(359),o=(0,s.Z)("addInTranslate"),r=(0,s.Z)("createPathByKey"),i=(0,s.Z)("addInObject");function l(e,t){const n=e.split(".");let a=this.translations;for(let s=0,o=n.length;s{e=e.replace("$".concat(n+1),t||"_")})),e}get(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";const t=this.translations[this.language];if(!t)return e||"";let n=t[e];for(var a=arguments.length,s=new Array(a>1?a-1:0),o=1;o{let n=t.indexOf("\n");n===t.length-1&&(n=t.indexOf(":"));const s=e+"."+t.slice(0,n),r=t.slice(n+1).trim();(0,a.Z)(this,o)[o](s,r)}))}add(e,t){t?(0,a.Z)(this,i)[i]((0,a.Z)(this,r)[r](e),t):(0,a.Z)(this,i)[i](this.translations,e)}};window.localization=m;const u=m},575:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{C:()=>applicationHasCustom,Z:()=>applyUrlCommands});var ts_helpers_Localization__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(289),ts_components_Notifications_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(122);function getParametersFromString(e){return Object.fromEntries((e||"").substring(1,1/0).split("&").map((e=>e.split("="))))}function getParametersFromURL(){const e={...getParametersFromString(location.search),...getParametersFromString(location.hash)};return delete e[""],e}function loadJsLocal(e,t){const n=document.createElement("script");n.src=e,n.async=!0,n.onload=t,n.onerror=()=>{ts_components_Notifications_store__WEBPACK_IMPORTED_MODULE_1__.Z.show("common.fileLoader.notification")},document.body.appendChild(n)}function loadJsLGlobal(url,callback){fetch(url).then((e=>e.text())).then((text=>text?"r"===text[0]?(eval(text),callback()):(window.report=text.split("\n"),void callback()):callback()))}function loadJsDump(e,t){"."===(null===e||void 0===e?void 0:e[0])?loadJsLocal(e,t):loadJsLGlobal(e,t)}function loadCssFile(e){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.body.appendChild(t)}let applicationHasCustom={theme:!1,title:!1};function applyUrlCommands(e){const t=getParametersFromURL(),n=t.style||t.theme;n&&(loadCssFile(n),applicationHasCustom.theme=!0);const a=t.title;a&&(document.title=decodeURIComponent(a),applicationHasCustom.title=!0);const s=t.lang||t.language;s&&(ts_helpers_Localization__WEBPACK_IMPORTED_MODULE_0__.Z.language=s);const o=t.dump||t.log;o?loadJsDump(o,(()=>e(t))):e(t)}},98:(e,t,n)=>{"use strict";n.d(t,{Fl:()=>De,Gf:()=>Ut,LO:()=>Ce,aD:()=>jt,jQ:()=>Wt,ky:()=>mn,le:()=>gt,rC:()=>cn});function a(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;ae.length)&&(t=e.length);for(var n=0,a=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[a++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var B=Symbol("mobx-stored-annotations");function U(e){return Object.assign((function(t,n){z(t,n,e)}),e)}function z(e,t,n){D(e,B)||_(e,B,I({},e[B])),function(e){return e.annotationType_===Z}(n)||(e[B][t]=n)}var H=Symbol("mobx administration"),G=function(){function e(e){void 0===e&&(e="Atom"),this.name_=void 0,this.isPendingUnobservation_=!1,this.isBeingObserved_=!1,this.observers_=new Set,this.diffValue_=0,this.lastAccessedBy_=0,this.lowestObserverState_=He.NOT_TRACKING_,this.onBOL=void 0,this.onBUOL=void 0,this.name_=e}var t=e.prototype;return t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.reportObserved=function(){return ht(this)},t.reportChanged=function(){ut(),ft(this),pt()},t.toString=function(){return this.name_},e}(),V=T("Atom",G);function K(e,t,n){void 0===t&&(t=g),void 0===n&&(n=g);var a,s=new G(e);return t!==g&&Ft(Lt,s,t,a),n!==g&&Rt(s,n),s}var $={identity:function(e,t){return e===t},structural:function(e,t){return oa(e,t)},default:function(e,t){return Object.is?Object.is(e,t):e===t?0!==e||1/e===1/t:e!==e&&t!==t},shallow:function(e,t){return oa(e,t,1)}};function q(e,t,n){return Xt(e)?e:Array.isArray(e)?Ce.array(e,{name:n}):w(e)?Ce.object(e,void 0,{name:n}):S(e)?Ce.map(e,{name:n}):C(e)?Ce.set(e,{name:n}):"function"!==typeof e||Ot(e)||Yt(e)?e:k(e)?$t(e):Dt(n,e)}function Y(e){return e}var Z="override";function X(e,t){return{annotationType_:e,options_:t,make_:J,extend_:Q}}function J(e,t,n,a){var s;if(null!=(s=this.options_)&&s.bound)return null===this.extend_(e,t,n,!1)?0:1;if(a===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(Ot(n.value))return 1;var o=ee(e,this,t,n,!1);return l(a,t,o),2}function Q(e,t,n,a){var s=ee(e,this,t,n);return e.defineProperty_(t,s,a)}function ee(e,t,n,a,s){var o,r,i,l,c,d,m,u;void 0===s&&(s=lt.safeDescriptors),u=a,t.annotationType_,u.value;var p,h=a.value;null!=(o=t.options_)&&o.bound&&(h=h.bind(null!=(p=e.proxy_)?p:e.target_));return{value:Re(null!=(r=null==(i=t.options_)?void 0:i.name)?r:n.toString(),h,null!=(l=null==(c=t.options_)?void 0:c.autoAction)&&l,null!=(d=t.options_)&&d.bound?null!=(m=e.proxy_)?m:e.target_:void 0),configurable:!s||e.isPlainObject_,enumerable:!1,writable:!s}}function te(e,t){return{annotationType_:e,options_:t,make_:ne,extend_:ae}}function ne(e,t,n,a){var s;if(a===e.target_)return null===this.extend_(e,t,n,!1)?0:2;if(null!=(s=this.options_)&&s.bound&&(!D(e.target_,t)||!Yt(e.target_[t]))&&null===this.extend_(e,t,n,!1))return 0;if(Yt(n.value))return 1;var o=se(e,this,t,n,!1,!1);return l(a,t,o),2}function ae(e,t,n,a){var s,o=se(e,this,t,n,null==(s=this.options_)?void 0:s.bound);return e.defineProperty_(t,o,a)}function se(e,t,n,a,s,o){var r;void 0===o&&(o=lt.safeDescriptors),r=a,t.annotationType_,r.value;var i,l=a.value;(Yt(l)||(l=$t(l)),s)&&((l=l.bind(null!=(i=e.proxy_)?i:e.target_)).isMobXFlow=!0);return{value:l,configurable:!o||e.isPlainObject_,enumerable:!1,writable:!o}}function oe(e,t){return{annotationType_:e,options_:t,make_:re,extend_:ie}}function re(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function ie(e,t,n,a){return function(e,t,n,a){t.annotationType_,a.get;0}(0,this,0,n),e.defineComputedProperty_(t,I({},this.options_,{get:n.get,set:n.set}),a)}function le(e,t){return{annotationType_:e,options_:t,make_:ce,extend_:de}}function ce(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function de(e,t,n,a){var s,o;return function(e,t,n,a){t.annotationType_;0}(0,this),e.defineObservableProperty_(t,n.value,null!=(s=null==(o=this.options_)?void 0:o.enhancer)?s:q,a)}var me=ue();function ue(e){return{annotationType_:"true",options_:e,make_:pe,extend_:he}}function pe(e,t,n,a){var s,o,r,i;if(n.get)return De.make_(e,t,n,a);if(n.set){var c=Re(t.toString(),n.set);return a===e.target_?null===e.defineProperty_(t,{configurable:!lt.safeDescriptors||e.isPlainObject_,set:c})?0:2:(l(a,t,{configurable:!0,set:c}),2)}if(a!==e.target_&&"function"===typeof n.value)return k(n.value)?(null!=(i=this.options_)&&i.autoBind?$t.bound:$t).make_(e,t,n,a):(null!=(r=this.options_)&&r.autoBind?Dt.bound:Dt).make_(e,t,n,a);var d,m=!1===(null==(s=this.options_)?void 0:s.deep)?Ce.ref:Ce;"function"===typeof n.value&&null!=(o=this.options_)&&o.autoBind&&(n.value=n.value.bind(null!=(d=e.proxy_)?d:e.target_));return m.make_(e,t,n,a)}function he(e,t,n,a){var s,o,r;if(n.get)return De.extend_(e,t,n,a);if(n.set)return e.defineProperty_(t,{configurable:!lt.safeDescriptors||e.isPlainObject_,set:Re(t.toString(),n.set)},a);"function"===typeof n.value&&null!=(s=this.options_)&&s.autoBind&&(n.value=n.value.bind(null!=(r=e.proxy_)?r:e.target_));return(!1===(null==(o=this.options_)?void 0:o.deep)?Ce.ref:Ce).extend_(e,t,n,a)}var fe={deep:!0,name:void 0,defaultDecorator:void 0,proxy:!0};function ge(e){return e||fe}Object.freeze(fe);var ye=le("observable"),ve=le("observable.ref",{enhancer:Y}),be=le("observable.shallow",{enhancer:function(e,t,n){return void 0===e||null===e||zn(e)||Sn(e)||Nn(e)||Ln(e)?e:Array.isArray(e)?Ce.array(e,{name:n,deep:!1}):w(e)?Ce.object(e,void 0,{name:n,deep:!1}):S(e)?Ce.map(e,{name:n,deep:!1}):C(e)?Ce.set(e,{name:n,deep:!1}):void 0}}),we=le("observable.struct",{enhancer:function(e,t){return oa(e,t)?t:e}}),ke=U(ye);function _e(e){return!0===e.deep?q:!1===e.deep?Y:function(e){var t,n;return e&&null!=(t=null==(n=e.options_)?void 0:n.enhancer)?t:q}(e.defaultDecorator)}function xe(e,t,n){if(!v(t))return Xt(e)?e:w(e)?Ce.object(e,t,n):Array.isArray(e)?Ce.array(e,t):S(e)?Ce.map(e,t):C(e)?Ce.set(e,t):"object"===typeof e&&null!==e?e:Ce.box(e,t);z(e,t,ye)}Object.assign(xe,ke);var Te,Se,Ce=r(xe,{box:function(e,t){var n=ge(t);return new ze(e,_e(n),n.name,!0,n.equals)},array:function(e,t){var n=ge(t);return(!1===lt.useProxies||!1===n.proxy?ea:gn)(e,_e(n),n.name)},map:function(e,t){var n=ge(t);return new On(e,_e(n),n.name)},set:function(e,t){var n=ge(t);return new In(e,_e(n),n.name)},object:function(e,t,n){return Bt(!1===lt.useProxies||!1===(null==n?void 0:n.proxy)?Wn({},n):function(e,t){var n,a;return h(),e=Wn(e,t),null!=(a=(n=e[H]).proxy_)?a:n.proxy_=new Proxy(e,tn)}({},n),e,t)},ref:U(ve),shallow:U(be),deep:ke,struct:U(we)}),Ee="computed",Ae=oe(Ee),je=oe("computed.struct",{equals:$.structural}),De=function(e,t){if(v(t))return z(e,t,Ae);if(w(e))return U(oe(Ee,e));var n=w(t)?t:{};return n.get=e,n.name||(n.name=e.name||""),new Ve(n)};Object.assign(De,Ae),De.struct=U(je);var Oe,Ne=0,Pe=1,Ie=null!=(Te=null==(Se=i((function(){}),"name"))?void 0:Se.configurable)&&Te,Le={value:"action",configurable:!0,writable:!1,enumerable:!1};function Re(e,t,n,a){function s(){return Fe(e,n,t,a||this,arguments)}return void 0===n&&(n=!1),s.isMobxAction=!0,Ie&&(Le.value=e,Object.defineProperty(s,"name",Le)),s}function Fe(e,t,n,s,o){var r=function(e,t,n,a){var s=!1,o=0;0;var r=lt.trackingDerivation,i=!t||!r;ut();var l=lt.allowStateChanges;i&&(et(),l=We(!0));var c=nt(!0),d={runAsAction_:i,prevDerivation_:r,prevAllowStateChanges_:l,prevAllowStateReads_:c,notifySpy_:s,startTime_:o,actionId_:Pe++,parentActionId_:Ne};return Ne=d.actionId_,d}(0,t);try{return n.apply(s,o)}catch(i){throw r.error_=i,i}finally{!function(e){Ne!==e.actionId_&&a(30);Ne=e.parentActionId_,void 0!==e.error_&&(lt.suppressReactionErrors=!0);Be(e.prevAllowStateChanges_),at(e.prevAllowStateReads_),pt(),e.runAsAction_&&tt(e.prevDerivation_);0;lt.suppressReactionErrors=!1}(r)}}function Me(e,t){var n=We(e);try{return t()}finally{Be(n)}}function We(e){var t=lt.allowStateChanges;return lt.allowStateChanges=e,t}function Be(e){lt.allowStateChanges=e}Oe=Symbol.toPrimitive;var Ue,ze=function(e){function t(t,n,a,s,o){var r;return void 0===a&&(a="ObservableValue"),void 0===s&&(s=!0),void 0===o&&(o=$.default),(r=e.call(this,a)||this).enhancer=void 0,r.name_=void 0,r.equals=void 0,r.hasUnreportedChange_=!1,r.interceptors_=void 0,r.changeListeners_=void 0,r.value_=void 0,r.dehancer=void 0,r.enhancer=n,r.name_=a,r.equals=o,r.value_=n(t,void 0,a),r}L(t,e);var n=t.prototype;return n.dehanceValue=function(e){return void 0!==this.dehancer?this.dehancer(e):e},n.set=function(e){this.value_;if((e=this.prepareNewValue_(e))!==lt.UNCHANGED){0,this.setNewValue_(e)}},n.prepareNewValue_=function(e){if(Ze(this),nn(this)){var t=sn(this,{object:this,type:pn,newValue:e});if(!t)return lt.UNCHANGED;e=t.newValue}return e=this.enhancer(e,this.value_,this.name_),this.equals(this.value_,e)?lt.UNCHANGED:e},n.setNewValue_=function(e){var t=this.value_;this.value_=e,this.reportChanged(),on(this)&&ln(this,{type:pn,object:this,newValue:e,oldValue:t})},n.get=function(){return this.reportObserved(),this.dehanceValue(this.value_)},n.intercept_=function(e){return an(this,e)},n.observe_=function(e,t){return t&&e({observableKind:"value",debugObjectName:this.name_,object:this,type:pn,newValue:this.value_,oldValue:void 0}),rn(this,e)},n.raw=function(){return this.value_},n.toJSON=function(){return this.get()},n.toString=function(){return this.name_+"["+this.value_+"]"},n.valueOf=function(){return j(this.get())},n[Oe]=function(){return this.valueOf()},t}(G);Ue=Symbol.toPrimitive;var He,Ge,Ve=function(){function e(e){this.dependenciesState_=He.NOT_TRACKING_,this.observing_=[],this.newObserving_=null,this.isBeingObserved_=!1,this.isPendingUnobservation_=!1,this.observers_=new Set,this.diffValue_=0,this.runId_=0,this.lastAccessedBy_=0,this.lowestObserverState_=He.UP_TO_DATE_,this.unboundDepsCount_=0,this.value_=new $e(null),this.name_=void 0,this.triggeredBy_=void 0,this.isComputing_=!1,this.isRunningSetter_=!1,this.derivation=void 0,this.setter_=void 0,this.isTracing_=Ge.NONE,this.scope_=void 0,this.equals_=void 0,this.requiresReaction_=void 0,this.keepAlive_=void 0,this.onBOL=void 0,this.onBUOL=void 0,e.get||a(31),this.derivation=e.get,this.name_=e.name||"ComputedValue",e.set&&(this.setter_=Re("ComputedValue-setter",e.set)),this.equals_=e.equals||(e.compareStructural||e.struct?$.structural:$.default),this.scope_=e.context,this.requiresReaction_=e.requiresReaction,this.keepAlive_=!!e.keepAlive}var t=e.prototype;return t.onBecomeStale_=function(){!function(e){if(e.lowestObserverState_!==He.UP_TO_DATE_)return;e.lowestObserverState_=He.POSSIBLY_STALE_,e.observers_.forEach((function(e){e.dependenciesState_===He.UP_TO_DATE_&&(e.dependenciesState_=He.POSSIBLY_STALE_,e.onBecomeStale_())}))}(this)},t.onBO=function(){this.onBOL&&this.onBOL.forEach((function(e){return e()}))},t.onBUO=function(){this.onBUOL&&this.onBUOL.forEach((function(e){return e()}))},t.get=function(){if(this.isComputing_&&a(32,this.name_,this.derivation),0!==lt.inBatch||0!==this.observers_.size||this.keepAlive_){if(ht(this),Ye(this)){var e=lt.trackingContext;this.keepAlive_&&!e&&(lt.trackingContext=this),this.trackAndCompute()&&function(e){if(e.lowestObserverState_===He.STALE_)return;e.lowestObserverState_=He.STALE_,e.observers_.forEach((function(t){t.dependenciesState_===He.POSSIBLY_STALE_?t.dependenciesState_=He.STALE_:t.dependenciesState_===He.UP_TO_DATE_&&(e.lowestObserverState_=He.UP_TO_DATE_)}))}(this),lt.trackingContext=e}}else Ye(this)&&(this.warnAboutUntrackedRead_(),ut(),this.value_=this.computeValue_(!1),pt());var t=this.value_;if(qe(t))throw t.cause;return t},t.set=function(e){if(this.setter_){this.isRunningSetter_&&a(33,this.name_),this.isRunningSetter_=!0;try{this.setter_.call(this.scope_,e)}finally{this.isRunningSetter_=!1}}else a(34,this.name_)},t.trackAndCompute=function(){var e=this.value_,t=this.dependenciesState_===He.NOT_TRACKING_,n=this.computeValue_(!0),a=t||qe(e)||qe(n)||!this.equals_(e,n);return a&&(this.value_=n),a},t.computeValue_=function(e){this.isComputing_=!0;var t,n=We(!1);if(e)t=Xe(this,this.derivation,this.scope_);else if(!0===lt.disableErrorBoundaries)t=this.derivation.call(this.scope_);else try{t=this.derivation.call(this.scope_)}catch(a){t=new $e(a)}return Be(n),this.isComputing_=!1,t},t.suspend_=function(){this.keepAlive_||(Je(this),this.value_=void 0)},t.observe_=function(e,t){var n=this,a=!0,s=void 0;return Nt((function(){var o=n.get();if(!a||t){var r=et();e({observableKind:"computed",debugObjectName:n.name_,type:pn,object:n,newValue:o,oldValue:s}),tt(r)}a=!1,s=o}))},t.warnAboutUntrackedRead_=function(){},t.toString=function(){return this.name_+"["+this.derivation.toString()+"]"},t.valueOf=function(){return j(this.get())},t[Ue]=function(){return this.valueOf()},e}(),Ke=T("ComputedValue",Ve);!function(e){e[e.NOT_TRACKING_=-1]="NOT_TRACKING_",e[e.UP_TO_DATE_=0]="UP_TO_DATE_",e[e.POSSIBLY_STALE_=1]="POSSIBLY_STALE_",e[e.STALE_=2]="STALE_"}(He||(He={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(Ge||(Ge={}));var $e=function(e){this.cause=void 0,this.cause=e};function qe(e){return e instanceof $e}function Ye(e){switch(e.dependenciesState_){case He.UP_TO_DATE_:return!1;case He.NOT_TRACKING_:case He.STALE_:return!0;case He.POSSIBLY_STALE_:for(var t=nt(!0),n=et(),a=e.observing_,s=a.length,o=0;oa&&(a=i.dependenciesState_)}n.length=s,e.newObserving_=null,o=t.length;for(;o--;){var l=t[o];0===l.diffValue_&&dt(l,e),l.diffValue_=0}for(;s--;){var c=n[s];1===c.diffValue_&&(c.diffValue_=0,ct(c,e))}a!==He.UP_TO_DATE_&&(e.dependenciesState_=a,e.onBecomeStale_())}(e),at(a),s}function Je(e){var t=e.observing_;e.observing_=[];for(var n=t.length;n--;)dt(t[n],e);e.dependenciesState_=He.NOT_TRACKING_}function Qe(e){var t=et();try{return e()}finally{tt(t)}}function et(){var e=lt.trackingDerivation;return lt.trackingDerivation=null,e}function tt(e){lt.trackingDerivation=e}function nt(e){var t=lt.allowStateReads;return lt.allowStateReads=e,t}function at(e){lt.allowStateReads=e}function st(e){if(e.dependenciesState_!==He.UP_TO_DATE_){e.dependenciesState_=He.UP_TO_DATE_;for(var t=e.observing_,n=t.length;n--;)t[n].lowestObserverState_=He.UP_TO_DATE_}}var ot=function(){this.version=6,this.UNCHANGED={},this.trackingDerivation=null,this.trackingContext=null,this.runId=0,this.mobxGuid=0,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.isRunningReactions=!1,this.allowStateChanges=!1,this.allowStateReads=!0,this.enforceActions=!0,this.spyListeners=[],this.globalReactionErrorHandlers=[],this.computedRequiresReaction=!1,this.reactionRequiresObservable=!1,this.observableRequiresReaction=!1,this.disableErrorBoundaries=!1,this.suppressReactionErrors=!1,this.useProxies=!0,this.verifyProxies=!1,this.safeDescriptors=!0},rt=!0,it=!1,lt=function(){var e=o();return e.__mobxInstanceCount>0&&!e.__mobxGlobals&&(rt=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new ot).version&&(rt=!1),rt?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new ot):(setTimeout((function(){it||a(35)}),1),new ot)}();function ct(e,t){e.observers_.add(t),e.lowestObserverState_>t.dependenciesState_&&(e.lowestObserverState_=t.dependenciesState_)}function dt(e,t){e.observers_.delete(t),0===e.observers_.size&&mt(e)}function mt(e){!1===e.isPendingUnobservation_&&(e.isPendingUnobservation_=!0,lt.pendingUnobservations.push(e))}function ut(){lt.inBatch++}function pt(){if(0===--lt.inBatch){vt();for(var e=lt.pendingUnobservations,t=0;t0&&mt(e),!1)}function ft(e){e.lowestObserverState_!==He.STALE_&&(e.lowestObserverState_=He.STALE_,e.observers_.forEach((function(e){e.dependenciesState_===He.UP_TO_DATE_&&e.onBecomeStale_(),e.dependenciesState_=He.STALE_})))}var gt=function(){function e(e,t,n,a){void 0===e&&(e="Reaction"),this.name_=void 0,this.onInvalidate_=void 0,this.errorHandler_=void 0,this.requiresObservable_=void 0,this.observing_=[],this.newObserving_=[],this.dependenciesState_=He.NOT_TRACKING_,this.diffValue_=0,this.runId_=0,this.unboundDepsCount_=0,this.isDisposed_=!1,this.isScheduled_=!1,this.isTrackPending_=!1,this.isRunning_=!1,this.isTracing_=Ge.NONE,this.name_=e,this.onInvalidate_=t,this.errorHandler_=n,this.requiresObservable_=a}var t=e.prototype;return t.onBecomeStale_=function(){this.schedule_()},t.schedule_=function(){this.isScheduled_||(this.isScheduled_=!0,lt.pendingReactions.push(this),vt())},t.isScheduled=function(){return this.isScheduled_},t.runReaction_=function(){if(!this.isDisposed_){ut(),this.isScheduled_=!1;var e=lt.trackingContext;if(lt.trackingContext=this,Ye(this)){this.isTrackPending_=!0;try{this.onInvalidate_()}catch(t){this.reportExceptionInDerivation_(t)}}lt.trackingContext=e,pt()}},t.track=function(e){if(!this.isDisposed_){ut();0,this.isRunning_=!0;var t=lt.trackingContext;lt.trackingContext=this;var n=Xe(this,e,void 0);lt.trackingContext=t,this.isRunning_=!1,this.isTrackPending_=!1,this.isDisposed_&&Je(this),qe(n)&&this.reportExceptionInDerivation_(n.cause),pt()}},t.reportExceptionInDerivation_=function(e){var t=this;if(this.errorHandler_)this.errorHandler_(e,this);else{if(lt.disableErrorBoundaries)throw e;var n="[mobx] uncaught error in '"+this+"'";lt.suppressReactionErrors||console.error(n,e),lt.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},t.dispose=function(){this.isDisposed_||(this.isDisposed_=!0,this.isRunning_||(ut(),Je(this),pt()))},t.getDisposer_=function(){var e=this.dispose.bind(this);return e[H]=this,e},t.toString=function(){return"Reaction["+this.name_+"]"},t.trace=function(e){void 0===e&&(e=!1),function(){a("trace() is not available in production builds");for(var e=!1,t=arguments.length,n=new Array(t),s=0;s0||lt.isRunningReactions||yt(bt)}function bt(){lt.isRunningReactions=!0;for(var e=lt.pendingReactions,t=0;e.length>0;){100===++t&&(console.error("[mobx] cycle in reaction: "+e[0]),e.splice(0));for(var n=e.splice(0),a=0,s=n.length;a",Tt=X(kt),St=X("action.bound",{bound:!0}),Ct=X(_t,{autoAction:!0}),Et=X("autoAction.bound",{autoAction:!0,bound:!0});function At(e){return function(t,n){return y(t)?Re(t.name||xt,t,e):y(n)?Re(t,n,e):v(n)?z(t,n,e?Ct:Tt):v(t)?U(X(e?_t:kt,{name:t,autoAction:e})):void 0}}var jt=At(!1);Object.assign(jt,Tt);var Dt=At(!0);function Ot(e){return y(e)&&!0===e.isMobxAction}function Nt(e,t){var n,a;void 0===t&&(t=m);var s,o=null!=(n=null==(a=t)?void 0:a.name)?n:"Autorun";if(!t.scheduler&&!t.delay)s=new gt(o,(function(){this.track(l)}),t.onError,t.requiresObservable);else{var r=It(t),i=!1;s=new gt(o,(function(){i||(i=!0,r((function(){i=!1,s.isDisposed_||s.track(l)})))}),t.onError,t.requiresObservable)}function l(){e(s)}return s.schedule_(),s.getDisposer_()}Object.assign(Dt,Ct),jt.bound=U(St),Dt.bound=U(Et);var Pt=function(e){return e()};function It(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:Pt}var Lt="onBO";function Rt(e,t,n){return Ft("onBUO",e,t,n)}function Ft(e,t,n,a){var s="function"===typeof a?ta(t,n):ta(t),o=y(a)?a:n,r=e+"L";return s[r]?s[r].add(o):s[r]=new Set([o]),function(){var e=s[r];e&&(e.delete(o),0===e.size&&delete s[r])}}var Mt="always";function Wt(e){!0===e.isolateGlobalState&&function(){if((lt.pendingReactions.length||lt.inBatch||lt.isRunningReactions)&&a(36),it=!0,rt){var e=o();0===--e.__mobxInstanceCount&&(e.__mobxGlobals=void 0),lt=new ot}}();var t=e.useProxies,n=e.enforceActions;if(void 0!==t&&(lt.useProxies=t===Mt||"never"!==t&&"undefined"!==typeof Proxy),"ifavailable"===t&&(lt.verifyProxies=!0),void 0!==n){var s=n===Mt?Mt:"observed"===n;lt.enforceActions=s,lt.allowStateChanges=!0!==s&&s!==Mt}["computedRequiresReaction","reactionRequiresObservable","observableRequiresReaction","disableErrorBoundaries","safeDescriptors"].forEach((function(t){t in e&&(lt[t]=!!e[t])})),lt.allowStateReads=!lt.observableRequiresReaction,e.reactionScheduler&&function(e){var t=yt;yt=function(n){return e((function(){return t(n)}))}}(e.reactionScheduler)}function Bt(e,t,n,a){var s=O(t),o=Wn(e,a)[H];ut();try{A(s).forEach((function(e){o.extend_(e,s[e],!n||(!(e in n)||n[e]))}))}finally{pt()}return e}function Ut(e,t){return zt(ta(e,t))}function zt(e){var t,n={name:e.name_};return e.observing_&&e.observing_.length>0&&(n.dependencies=(t=e.observing_,Array.from(new Set(t))).map(zt)),n}var Ht=0;function Gt(){this.message="FLOW_CANCELLED"}Gt.prototype=Object.create(Error.prototype);var Vt=te("flow"),Kt=te("flow.bound",{bound:!0}),$t=Object.assign((function(e,t){if(v(t))return z(e,t,Vt);var n=e,a=n.name||"",s=function(){var e,t=this,s=arguments,o=++Ht,r=jt(a+" - runid: "+o+" - init",n).apply(t,s),i=void 0,l=new Promise((function(t,n){var s=0;function l(e){var t;i=void 0;try{t=jt(a+" - runid: "+o+" - yield "+s++,r.next).call(r,e)}catch(l){return n(l)}d(t)}function c(e){var t;i=void 0;try{t=jt(a+" - runid: "+o+" - yield "+s++,r.throw).call(r,e)}catch(l){return n(l)}d(t)}function d(e){if(!y(null==e?void 0:e.then))return e.done?t(e.value):(i=Promise.resolve(e.value)).then(l,c);e.then(d,n)}e=n,l(void 0)}));return l.cancel=jt(a+" - runid: "+o+" - cancel",(function(){try{i&&qt(i);var t=r.return(void 0),n=Promise.resolve(t.value);n.then(g,g),qt(n),e(new Gt)}catch(a){e(a)}})),l};return s.isMobXFlow=!0,s}),Vt);function qt(e){y(e.cancel)&&e.cancel()}function Yt(e){return!0===(null==e?void 0:e.isMobXFlow)}function Zt(e,t){return!!e&&(void 0!==t?!!zn(e)&&e[H].values_.has(t):zn(e)||!!e[H]||V(e)||wt(e)||Ke(e))}function Xt(e){return Zt(e)}function Jt(e){switch(e.length){case 0:return lt.trackingDerivation;case 1:return ta(e[0]);case 2:return ta(e[0],e[1])}}function Qt(e,t){void 0===t&&(t=void 0),ut();try{return e.apply(t)}finally{pt()}}function en(e){return e[H]}$t.bound=U(Kt);var tn={has:function(e,t){return en(e).has_(t)},get:function(e,t){return en(e).get_(t)},set:function(e,t,n){var a;return!!v(t)&&(null==(a=en(e).set_(t,n,!0))||a)},deleteProperty:function(e,t){var n;return!!v(t)&&(null==(n=en(e).delete_(t,!0))||n)},defineProperty:function(e,t,n){var a;return null==(a=en(e).defineProperty_(t,n))||a},ownKeys:function(e){return en(e).ownKeys_()},preventExtensions:function(e){a(13)}};function nn(e){return void 0!==e.interceptors_&&e.interceptors_.length>0}function an(e,t){var n=e.interceptors_||(e.interceptors_=[]);return n.push(t),f((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function sn(e,t){var n=et();try{for(var s=[].concat(e.interceptors_||[]),o=0,r=s.length;o0}function rn(e,t){var n=e.changeListeners_||(e.changeListeners_=[]);return n.push(t),f((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function ln(e,t){var n=et(),a=e.changeListeners_;if(a){for(var s=0,o=(a=a.slice()).length;s0?e.map(this.dehancer):e},t.intercept_=function(e){return an(this,e)},t.observe_=function(e,t){return void 0===t&&(t=!1),t&&e({observableKind:"array",object:this.proxy_,debugObjectName:this.atom_.name_,type:"splice",index:0,added:this.values_.slice(),addedCount:this.values_.length,removed:[],removedCount:0}),rn(this,e)},t.getArrayLength_=function(){return this.atom_.reportObserved(),this.values_.length},t.setArrayLength_=function(e){("number"!==typeof e||isNaN(e)||e<0)&&a("Out of range: "+e);var t=this.values_.length;if(e!==t)if(e>t){for(var n=new Array(e-t),s=0;s0&&Qn(e+t+1)},t.spliceWithArray_=function(e,t,n){var a=this;this.atom_;var s=this.values_.length;if(void 0===e?e=0:e>s?e=s:e<0&&(e=Math.max(0,s+e)),t=1===arguments.length?s-e:void 0===t||null===t?0:Math.max(0,Math.min(t,s-e)),void 0===n&&(n=d),nn(this)){var o=sn(this,{object:this.proxy_,type:un,index:e,removedCount:t,added:n});if(!o)return d;t=o.removedCount,n=o.added}if(n=0===n.length?n:n.map((function(e){return a.enhancer_(e,void 0)})),this.legacyMode_){var r=n.length-t;this.updateArrayLength_(s,r)}var i=this.spliceItemsIntoValues_(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice_(e,n,i),this.dehanceValues_(i)},t.spliceItemsIntoValues_=function(e,t,n){var a;if(n.length<1e4)return(a=this.values_).splice.apply(a,[e,t].concat(n));var s=this.values_.slice(e,e+t),o=this.values_.slice(e+t);this.values_.length+=n.length-t;for(var r=0;r=this.values_.length))return this.atom_.reportObserved(),this.dehanceValue_(this.values_[e]);console.warn("[mobx] Out of bounds read: "+e)},t.set_=function(e,t){var n=this.values_;if(this.legacyMode_&&e>n.length&&a(17,e,n.length),e2?n-2:0),s=2;s-1&&(this.splice(n,1),!0)}};function vn(e,t){"function"===typeof Array.prototype[e]&&(yn[e]=t(e))}function bn(e){return function(){var t=this[H];t.atom_.reportObserved();var n=t.dehanceValues_(t.values_);return n[e].apply(n,arguments)}}function wn(e){return function(t,n){var a=this,s=this[H];return s.atom_.reportObserved(),s.dehanceValues_(s.values_)[e]((function(e,s){return t.call(n,e,s,a)}))}}function kn(e){return function(){var t=this,n=this[H];n.atom_.reportObserved();var a=n.dehanceValues_(n.values_),s=arguments[0];return arguments[0]=function(e,n,a){return s(e,n,a,t)},a[e].apply(a,arguments)}}vn("concat",bn),vn("flat",bn),vn("includes",bn),vn("indexOf",bn),vn("join",bn),vn("lastIndexOf",bn),vn("slice",bn),vn("toString",bn),vn("toLocaleString",bn),vn("every",wn),vn("filter",wn),vn("find",wn),vn("findIndex",wn),vn("flatMap",wn),vn("forEach",wn),vn("map",wn),vn("some",wn),vn("reduce",kn),vn("reduceRight",kn);var _n,xn,Tn=T("ObservableArrayAdministration",fn);function Sn(e){return b(e)&&Tn(e[H])}var Cn={},En="add",An="delete";_n=Symbol.iterator,xn=Symbol.toStringTag;var jn,Dn,On=function(){function e(e,t,n){var s=this;void 0===t&&(t=q),void 0===n&&(n="ObservableMap"),this.enhancer_=void 0,this.name_=void 0,this[H]=Cn,this.data_=void 0,this.hasMap_=void 0,this.keysAtom_=void 0,this.interceptors_=void 0,this.changeListeners_=void 0,this.dehancer=void 0,this.enhancer_=t,this.name_=n,y(Map)||a(18),this.keysAtom_=K("ObservableMap.keys()"),this.data_=new Map,this.hasMap_=new Map,Me(!0,(function(){s.merge(e)}))}var t=e.prototype;return t.has_=function(e){return this.data_.has(e)},t.has=function(e){var t=this;if(!lt.trackingDerivation)return this.has_(e);var n=this.hasMap_.get(e);if(!n){var a=n=new ze(this.has_(e),Y,"ObservableMap.key?",!1);this.hasMap_.set(e,a),Rt(a,(function(){return t.hasMap_.delete(e)}))}return n.get()},t.set=function(e,t){var n=this.has_(e);if(nn(this)){var a=sn(this,{type:n?pn:En,object:this,newValue:t,name:e});if(!a)return this;t=a.newValue}return n?this.updateValue_(e,t):this.addValue_(e,t),this},t.delete=function(e){var t=this;if((this.keysAtom_,nn(this))&&!sn(this,{type:An,object:this,name:e}))return!1;if(this.has_(e)){var n=on(this),a=n?{observableKind:"map",debugObjectName:this.name_,type:An,object:this,oldValue:this.data_.get(e).value_,name:e}:null;return Qt((function(){var n;t.keysAtom_.reportChanged(),null==(n=t.hasMap_.get(e))||n.setNewValue_(!1),t.data_.get(e).setNewValue_(void 0),t.data_.delete(e)})),n&&ln(this,a),!0}return!1},t.updateValue_=function(e,t){var n=this.data_.get(e);if((t=n.prepareNewValue_(t))!==lt.UNCHANGED){var a=on(this),s=a?{observableKind:"map",debugObjectName:this.name_,type:pn,object:this,oldValue:n.value_,name:e,newValue:t}:null;0,n.setNewValue_(t),a&&ln(this,s)}},t.addValue_=function(e,t){var n=this;this.keysAtom_,Qt((function(){var a,s=new ze(t,n.enhancer_,"ObservableMap.key",!1);n.data_.set(e,s),t=s.value_,null==(a=n.hasMap_.get(e))||a.setNewValue_(!0),n.keysAtom_.reportChanged()}));var a=on(this),s=a?{observableKind:"map",debugObjectName:this.name_,type:En,object:this,name:e,newValue:t}:null;a&&ln(this,s)},t.get=function(e){return this.has(e)?this.dehanceValue_(this.data_.get(e).get()):this.dehanceValue_(void 0)},t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.keys=function(){return this.keysAtom_.reportObserved(),this.data_.keys()},t.values=function(){var e=this,t=this.keys();return la({next:function(){var n=t.next(),a=n.done,s=n.value;return{done:a,value:a?void 0:e.get(s)}}})},t.entries=function(){var e=this,t=this.keys();return la({next:function(){var n=t.next(),a=n.done,s=n.value;return{done:a,value:a?void 0:[s,e.get(s)]}}})},t[_n]=function(){return this.entries()},t.forEach=function(e,t){for(var n,a=W(this);!(n=a()).done;){var s=n.value,o=s[0],r=s[1];e.call(t,r,o,this)}},t.merge=function(e){var t=this;return Nn(e)&&(e=new Map(e)),Qt((function(){w(e)?function(e){var t=Object.keys(e);if(!E)return t;var n=Object.getOwnPropertySymbols(e);return n.length?[].concat(t,n.filter((function(t){return c.propertyIsEnumerable.call(e,t)}))):t}(e).forEach((function(n){return t.set(n,e[n])})):Array.isArray(e)?e.forEach((function(e){var n=e[0],a=e[1];return t.set(n,a)})):S(e)?(e.constructor!==Map&&a(19,e),e.forEach((function(e,n){return t.set(n,e)}))):null!==e&&void 0!==e&&a(20,e)})),this},t.clear=function(){var e=this;Qt((function(){Qe((function(){for(var t,n=W(e.keys());!(t=n()).done;){var a=t.value;e.delete(a)}}))}))},t.replace=function(e){var t=this;return Qt((function(){for(var n,s=function(e){if(S(e)||Nn(e))return e;if(Array.isArray(e))return new Map(e);if(w(e)){var t=new Map;for(var n in e)t.set(n,e[n]);return t}return a(21,e)}(e),o=new Map,r=!1,i=W(t.data_.keys());!(n=i()).done;){var l=n.value;if(!s.has(l))if(t.delete(l))r=!0;else{var c=t.data_.get(l);o.set(l,c)}}for(var d,m=W(s.entries());!(d=m()).done;){var u=d.value,p=u[0],h=u[1],f=t.data_.has(p);if(t.set(p,h),t.data_.has(p)){var g=t.data_.get(p);o.set(p,g),f||(r=!0)}}if(!r)if(t.data_.size!==o.size)t.keysAtom_.reportChanged();else for(var y=t.data_.keys(),v=o.keys(),b=y.next(),k=v.next();!b.done;){if(b.value!==k.value){t.keysAtom_.reportChanged();break}b=y.next(),k=v.next()}t.data_=o})),this},t.toString=function(){return"[object ObservableMap]"},t.toJSON=function(){return Array.from(this)},t.observe_=function(e,t){return rn(this,e)},t.intercept_=function(e){return an(this,e)},P(e,[{key:"size",get:function(){return this.keysAtom_.reportObserved(),this.data_.size}},{key:xn,get:function(){return"Map"}}]),e}(),Nn=T("ObservableMap",On);var Pn={};jn=Symbol.iterator,Dn=Symbol.toStringTag;var In=function(){function e(e,t,n){void 0===t&&(t=q),void 0===n&&(n="ObservableSet"),this.name_=void 0,this[H]=Pn,this.data_=new Set,this.atom_=void 0,this.changeListeners_=void 0,this.interceptors_=void 0,this.dehancer=void 0,this.enhancer_=void 0,this.name_=n,y(Set)||a(22),this.atom_=K(this.name_),this.enhancer_=function(e,a){return t(e,a,n)},e&&this.replace(e)}var t=e.prototype;return t.dehanceValue_=function(e){return void 0!==this.dehancer?this.dehancer(e):e},t.clear=function(){var e=this;Qt((function(){Qe((function(){for(var t,n=W(e.data_.values());!(t=n()).done;){var a=t.value;e.delete(a)}}))}))},t.forEach=function(e,t){for(var n,a=W(this);!(n=a()).done;){var s=n.value;e.call(t,s,s,this)}},t.add=function(e){var t=this;if((this.atom_,nn(this))&&!sn(this,{type:En,object:this,newValue:e}))return this;if(!this.has(e)){Qt((function(){t.data_.add(t.enhancer_(e,void 0)),t.atom_.reportChanged()}));var n=!1,a=on(this),s=a?{observableKind:"set",debugObjectName:this.name_,type:En,object:this,newValue:e}:null;n,a&&ln(this,s)}return this},t.delete=function(e){var t=this;if(nn(this)&&!sn(this,{type:An,object:this,oldValue:e}))return!1;if(this.has(e)){var n=on(this),a=n?{observableKind:"set",debugObjectName:this.name_,type:An,object:this,oldValue:e}:null;return Qt((function(){t.atom_.reportChanged(),t.data_.delete(e)})),n&&ln(this,a),!0}return!1},t.has=function(e){return this.atom_.reportObserved(),this.data_.has(this.dehanceValue_(e))},t.entries=function(){var e=0,t=Array.from(this.keys()),n=Array.from(this.values());return la({next:function(){var a=e;return e+=1,aqn){for(var t=qn;t=0&&n++}e=ia(e),t=ia(t);var i="[object Array]"===r;if(!i){if("object"!=typeof e||"object"!=typeof t)return!1;var l=e.constructor,c=t.constructor;if(l!==c&&!(y(l)&&l instanceof l&&y(c)&&c instanceof c)&&"constructor"in e&&"constructor"in t)return!1}if(0===n)return!1;n<0&&(n=-1),s=s||[];for(var d=(a=a||[]).length;d--;)if(a[d]===e)return s[d]===t;if(a.push(e),s.push(t),i){if((d=e.length)!==t.length)return!1;for(;d--;)if(!ra(e[d],t[d],n-1,a,s))return!1}else{var m,u=Object.keys(e);if(d=u.length,Object.keys(t).length!==d)return!1;for(;d--;)if(!D(t,m=u[d])||!ra(e[m],t[m],n-1,a,s))return!1}return a.pop(),s.pop(),!0}function ia(e){return Sn(e)?e.slice():S(e)||Nn(e)||C(e)||Ln(e)?Array.from(e.entries()):e}function la(e){return e[Symbol.iterator]=ca,e}function ca(){return this}["Symbol","Map","Set"].forEach((function(e){"undefined"===typeof o()[e]&&a("MobX requires global '"+e+"' to be available or polyfilled")})),"object"===typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:function(e){return console.warn("[mobx.spy] Is a no-op in production builds"),function(){}},extras:{getDebugName:aa},$mobx:H})},463:(e,t,n)=>{"use strict";var a=n(791),s=n(296);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;nt}return!1}(t,n,s,a)&&(n=null),a||null===s?function(e){return!!m.call(h,e)||!m.call(p,e)&&(u.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):s.mustUseProperty?e[s.propertyName]=null===n?3!==s.type&&"":n:(t=s.attributeName,a=s.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(s=s.type)||4===s&&!0===n?"":""+n,a?e.setAttributeNS(a,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new f(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(y,v);g[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(y,v);g[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){g[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)})),g.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){g[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,k=Symbol.for("react.element"),_=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),C=Symbol.for("react.provider"),E=Symbol.for("react.context"),A=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),D=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),N=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var P=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var I=Symbol.iterator;function L(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=I&&e[I]||e["@@iterator"])?e:null}var R,F=Object.assign;function M(e){if(void 0===R)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);R=t&&t[1]||""}return"\n"+R+e}var W=!1;function B(e,t){if(!e||W)return"";W=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var a=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){a=c}e.call(t.prototype)}else{try{throw Error()}catch(c){a=c}e()}}catch(c){if(c&&a&&"string"===typeof c.stack){for(var s=c.stack.split("\n"),o=a.stack.split("\n"),r=s.length-1,i=o.length-1;1<=r&&0<=i&&s[r]!==o[i];)i--;for(;1<=r&&0<=i;r--,i--)if(s[r]!==o[i]){if(1!==r||1!==i)do{if(r--,0>--i||s[r]!==o[i]){var l="\n"+s[r].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}}while(1<=r&&0<=i);break}}}finally{W=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?M(e):""}function U(e){switch(e.tag){case 5:return M(e.type);case 16:return M("Lazy");case 13:return M("Suspense");case 19:return M("SuspenseList");case 0:case 2:case 15:return e=B(e.type,!1);case 11:return e=B(e.type.render,!1);case 1:return e=B(e.type,!0);default:return""}}function z(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case x:return"Fragment";case _:return"Portal";case S:return"Profiler";case T:return"StrictMode";case j:return"Suspense";case D:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case E:return(e.displayName||"Context")+".Consumer";case C:return(e._context.displayName||"Context")+".Provider";case A:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case O:return null!==(t=e.displayName||null)?t:z(e.type)||"Memo";case N:t=e._payload,e=e._init;try{return z(e(t))}catch(n){}}return null}function H(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return z(t);case 8:return t===T?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function G(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function K(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),a=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var s=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return s.call(this)},set:function(e){a=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return a},setValue:function(e){a=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function $(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),a="";return e&&(a=V(e)?e.checked?"true":"false":e.value),(e=a)!==n&&(t.setValue(e),!0)}function q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Z(e,t){var n=null==t.defaultValue?"":t.defaultValue,a=null!=t.checked?t.checked:t.defaultChecked;n=G(null!=t.value?t.value:n),e._wrapperState={initialChecked:a,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function X(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function J(e,t){X(e,t);var n=G(t.value),a=t.type;if(null!=n)"number"===a?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===a||"reset"===a)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,G(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Q(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var a=t.type;if(!("submit"!==a&&"reset"!==a||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,a){if(e=e.options,t){t={};for(var s=0;s"+t.valueOf().toString()+"",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,a){MSApp.execUnsafeLocalFunction((function(){return de(e,t)}))}:de);function ue(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ge(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var a=0===n.indexOf("--"),s=fe(n,t[n],a);"float"===n&&(n="cssFloat"),a?e.setProperty(n,s):e[n]=s}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ye=F({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ve(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function ke(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var _e=null,xe=null,Te=null;function Se(e){if(e=bs(e)){if("function"!==typeof _e)throw Error(o(280));var t=e.stateNode;t&&(t=ks(t),_e(e.stateNode,e.type,t))}}function Ce(e){xe?Te?Te.push(e):Te=[e]:xe=e}function Ee(){if(xe){var e=xe,t=Te;if(Te=xe=null,Se(e),t)for(e=0;e>>=0,0===e?32:31-(it(e)/lt|0)|0},it=Math.log,lt=Math.LN2;var ct=64,dt=4194304;function mt(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ut(e,t){var n=e.pendingLanes;if(0===n)return 0;var a=0,s=e.suspendedLanes,o=e.pingedLanes,r=268435455&n;if(0!==r){var i=r&~s;0!==i?a=mt(i):0!==(o&=r)&&(a=mt(o))}else 0!==(r=n&~s)?a=mt(r):0!==o&&(a=mt(o));if(0===a)return 0;if(0!==t&&t!==a&&0===(t&s)&&((s=a&-a)>=(o=t&-t)||16===s&&0!==(4194240&o)))return t;if(0!==(4&a)&&(a|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=a;0n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-rt(t)]=n}function vt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var a=31-rt(n),s=1<=Ln),Mn=String.fromCharCode(32),Wn=!1;function Bn(e,t){switch(e){case"keyup":return-1!==Pn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var zn=!1;var Hn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Hn[e.type]:"textarea"===t}function Vn(e,t,n,a){Ce(a),0<(t=Ka(t,"onChange")).length&&(n=new dn("onChange","change",null,n,a),e.push({event:n,listeners:t}))}var Kn=null,$n=null;function qn(e){Ma(e,0)}function Yn(e){if($(ws(e)))return e}function Zn(e,t){if("change"===e)return t}var Xn=!1;if(d){var Jn;if(d){var Qn="oninput"in document;if(!Qn){var ea=document.createElement("div");ea.setAttribute("oninput","return;"),Qn="function"===typeof ea.oninput}Jn=Qn}else Jn=!1;Xn=Jn&&(!document.documentMode||9=t)return{node:a,offset:t-e};e=n}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=ca(a)}}function ma(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?ma(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ua(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(a){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function pa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function ha(e){var t=ua(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&ma(n.ownerDocument.documentElement,n)){if(null!==a&&pa(n))if(t=a.start,void 0===(e=a.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var s=n.textContent.length,o=Math.min(a.start,s);a=void 0===a.end?o:Math.min(a.end,s),!e.extend&&o>a&&(s=a,a=o,o=s),s=da(n,o);var r=da(n,a);s&&r&&(1!==e.rangeCount||e.anchorNode!==s.node||e.anchorOffset!==s.offset||e.focusNode!==r.node||e.focusOffset!==r.offset)&&((t=t.createRange()).setStart(s.node,s.offset),e.removeAllRanges(),o>a?(e.addRange(t),e.extend(r.node,r.offset)):(t.setEnd(r.node,r.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n=document.documentMode,ga=null,ya=null,va=null,ba=!1;function wa(e,t,n){var a=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ba||null==ga||ga!==q(a)||("selectionStart"in(a=ga)&&pa(a)?a={start:a.selectionStart,end:a.selectionEnd}:a={anchorNode:(a=(a.ownerDocument&&a.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:a.anchorOffset,focusNode:a.focusNode,focusOffset:a.focusOffset},va&&la(va,a)||(va=a,0<(a=Ka(ya,"onSelect")).length&&(t=new dn("onSelect","select",null,t,n),e.push({event:t,listeners:a}),t.target=ga)))}function ka(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _a={animationend:ka("Animation","AnimationEnd"),animationiteration:ka("Animation","AnimationIteration"),animationstart:ka("Animation","AnimationStart"),transitionend:ka("Transition","TransitionEnd")},xa={},Ta={};function Sa(e){if(xa[e])return xa[e];if(!_a[e])return e;var t,n=_a[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ta)return xa[e]=n[t];return e}d&&(Ta=document.createElement("div").style,"AnimationEvent"in window||(delete _a.animationend.animation,delete _a.animationiteration.animation,delete _a.animationstart.animation),"TransitionEvent"in window||delete _a.transitionend.transition);var Ca=Sa("animationend"),Ea=Sa("animationiteration"),Aa=Sa("animationstart"),ja=Sa("transitionend"),Da=new Map,Oa="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Na(e,t){Da.set(e,t),l(t,[e])}for(var Pa=0;Paxs||(e.current=_s[xs],_s[xs]=null,xs--)}function Cs(e,t){xs++,_s[xs]=e.current,e.current=t}var Es={},As=Ts(Es),js=Ts(!1),Ds=Es;function Os(e,t){var n=e.type.contextTypes;if(!n)return Es;var a=e.stateNode;if(a&&a.__reactInternalMemoizedUnmaskedChildContext===t)return a.__reactInternalMemoizedMaskedChildContext;var s,o={};for(s in n)o[s]=t[s];return a&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ns(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Ps(){Ss(js),Ss(As)}function Is(e,t,n){if(As.current!==Es)throw Error(o(168));Cs(As,t),Cs(js,n)}function Ls(e,t,n){var a=e.stateNode;if(t=t.childContextTypes,"function"!==typeof a.getChildContext)return n;for(var s in a=a.getChildContext())if(!(s in t))throw Error(o(108,H(e)||"Unknown",s));return F({},n,a)}function Rs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Es,Ds=As.current,Cs(As,e),Cs(js,js.current),!0}function Fs(e,t,n){var a=e.stateNode;if(!a)throw Error(o(169));n?(e=Ls(e,t,Ds),a.__reactInternalMemoizedMergedChildContext=e,Ss(js),Ss(As),Cs(As,e)):Ss(js),Cs(js,n)}var Ms=null,Ws=!1,Bs=!1;function Us(e){null===Ms?Ms=[e]:Ms.push(e)}function zs(){if(!Bs&&null!==Ms){Bs=!0;var e=0,t=bt;try{var n=Ms;for(bt=1;e>=r,s-=r,Zs=1<<32-rt(t)+s|n<f?(g=m,m=null):g=m.sibling;var y=p(s,m,i[f],l);if(null===y){null===m&&(m=g);break}e&&m&&null===y.alternate&&t(s,m),o=r(y,o,f),null===d?c=y:d.sibling=y,d=y,m=g}if(f===i.length)return n(s,m),so&&Js(s,f),c;if(null===m){for(;fg?(y=f,f=null):y=f.sibling;var b=p(s,f,v.value,c);if(null===b){null===f&&(f=y);break}e&&f&&null===b.alternate&&t(s,f),i=r(b,i,g),null===m?d=b:m.sibling=b,m=b,f=y}if(v.done)return n(s,f),so&&Js(s,g),d;if(null===f){for(;!v.done;g++,v=l.next())null!==(v=u(s,v.value,c))&&(i=r(v,i,g),null===m?d=v:m.sibling=v,m=v);return so&&Js(s,g),d}for(f=a(s,f);!v.done;g++,v=l.next())null!==(v=h(f,s,g,v.value,c))&&(e&&null!==v.alternate&&f.delete(null===v.key?g:v.key),i=r(v,i,g),null===m?d=v:m.sibling=v,m=v);return e&&f.forEach((function(e){return t(s,e)})),so&&Js(s,g),d}return function e(a,o,r,l){if("object"===typeof r&&null!==r&&r.type===x&&null===r.key&&(r=r.props.children),"object"===typeof r&&null!==r){switch(r.$$typeof){case k:e:{for(var c=r.key,d=o;null!==d;){if(d.key===c){if((c=r.type)===x){if(7===d.tag){n(a,d.sibling),(o=s(d,r.props.children)).return=a,a=o;break e}}else if(d.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===N&&Yo(c)===d.type){n(a,d.sibling),(o=s(d,r.props)).ref=$o(a,d,r),o.return=a,a=o;break e}n(a,d);break}t(a,d),d=d.sibling}r.type===x?((o=Lc(r.props.children,a.mode,l,r.key)).return=a,a=o):((l=Ic(r.type,r.key,r.props,null,a.mode,l)).ref=$o(a,o,r),l.return=a,a=l)}return i(a);case _:e:{for(d=r.key;null!==o;){if(o.key===d){if(4===o.tag&&o.stateNode.containerInfo===r.containerInfo&&o.stateNode.implementation===r.implementation){n(a,o.sibling),(o=s(o,r.children||[])).return=a,a=o;break e}n(a,o);break}t(a,o),o=o.sibling}(o=Mc(r,a.mode,l)).return=a,a=o}return i(a);case N:return e(a,o,(d=r._init)(r._payload),l)}if(te(r))return f(a,o,r,l);if(L(r))return g(a,o,r,l);qo(a,r)}return"string"===typeof r&&""!==r||"number"===typeof r?(r=""+r,null!==o&&6===o.tag?(n(a,o.sibling),(o=s(o,r)).return=a,a=o):(n(a,o),(o=Fc(r,a.mode,l)).return=a,a=o),i(a)):n(a,o)}}var Xo=Zo(!0),Jo=Zo(!1),Qo={},er=Ts(Qo),tr=Ts(Qo),nr=Ts(Qo);function ar(e){if(e===Qo)throw Error(o(174));return e}function sr(e,t){switch(Cs(nr,t),Cs(tr,e),Cs(er,Qo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ss(er),Cs(er,t)}function or(){Ss(er),Ss(tr),Ss(nr)}function rr(e){ar(nr.current);var t=ar(er.current),n=le(t,e.type);t!==n&&(Cs(tr,e),Cs(er,n))}function ir(e){tr.current===e&&(Ss(er),Ss(tr))}var lr=Ts(0);function cr(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var dr=[];function mr(){for(var e=0;en?n:4,e(!0);var a=pr.transition;pr.transition={};try{e(!1),t()}finally{bt=n,pr.transition=a}}function ei(){return Er().memoizedState}function ti(e,t,n){var a=tc(e);if(n={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null},ai(e))si(t,n);else if(null!==(n=jo(e,t,n,a))){nc(n,e,a,ec()),oi(n,t,a)}}function ni(e,t,n){var a=tc(e),s={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(ai(e))si(t,s);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var r=t.lastRenderedState,i=o(r,n);if(s.hasEagerState=!0,s.eagerState=i,ia(i,r)){var l=t.interleaved;return null===l?(s.next=s,Ao(t)):(s.next=l.next,l.next=s),void(t.interleaved=s)}}catch(c){}null!==(n=jo(e,t,s,a))&&(nc(n,e,a,s=ec()),oi(n,t,a))}}function ai(e){var t=e.alternate;return e===fr||null!==t&&t===fr}function si(e,t){br=vr=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function oi(e,t,n){if(0!==(4194240&n)){var a=t.lanes;n|=a&=e.pendingLanes,t.lanes=n,vt(e,n)}}var ri={readContext:Co,useCallback:_r,useContext:_r,useEffect:_r,useImperativeHandle:_r,useInsertionEffect:_r,useLayoutEffect:_r,useMemo:_r,useReducer:_r,useRef:_r,useState:_r,useDebugValue:_r,useDeferredValue:_r,useTransition:_r,useMutableSource:_r,useSyncExternalStore:_r,useId:_r,unstable_isNewReconciler:!1},ii={readContext:Co,useCallback:function(e,t){return Cr().memoizedState=[e,void 0===t?null:t],e},useContext:Co,useEffect:Hr,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ur(4194308,4,$r.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ur(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ur(4,2,e,t)},useMemo:function(e,t){var n=Cr();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var a=Cr();return t=void 0!==n?n(t):t,a.memoizedState=a.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},a.queue=e,e=e.dispatch=ti.bind(null,fr,e),[a.memoizedState,e]},useRef:function(e){return e={current:e},Cr().memoizedState=e},useState:Mr,useDebugValue:Yr,useDeferredValue:function(e){return Cr().memoizedState=e},useTransition:function(){var e=Mr(!1),t=e[0];return e=Qr.bind(null,e[1]),Cr().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var a=fr,s=Cr();if(so){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===jl)throw Error(o(349));0!==(30&hr)||Pr(a,t,n)}s.memoizedState=n;var r={value:n,getSnapshot:t};return s.queue=r,Hr(Lr.bind(null,a,r,e),[e]),a.flags|=2048,Wr(9,Ir.bind(null,a,r,n,t),void 0,null),n},useId:function(){var e=Cr(),t=jl.identifierPrefix;if(so){var n=Xs;t=":"+t+"R"+(n=(Zs&~(1<<32-rt(Zs)-1)).toString(32)+n),0<(n=wr++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=kr++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},li={readContext:Co,useCallback:Zr,useContext:Co,useEffect:Gr,useImperativeHandle:qr,useInsertionEffect:Vr,useLayoutEffect:Kr,useMemo:Xr,useReducer:jr,useRef:Br,useState:function(){return jr(Ar)},useDebugValue:Yr,useDeferredValue:function(e){return Jr(Er(),gr.memoizedState,e)},useTransition:function(){return[jr(Ar)[0],Er().memoizedState]},useMutableSource:Or,useSyncExternalStore:Nr,useId:ei,unstable_isNewReconciler:!1},ci={readContext:Co,useCallback:Zr,useContext:Co,useEffect:Gr,useImperativeHandle:qr,useInsertionEffect:Vr,useLayoutEffect:Kr,useMemo:Xr,useReducer:Dr,useRef:Br,useState:function(){return Dr(Ar)},useDebugValue:Yr,useDeferredValue:function(e){var t=Er();return null===gr?t.memoizedState=e:Jr(t,gr.memoizedState,e)},useTransition:function(){return[Dr(Ar)[0],Er().memoizedState]},useMutableSource:Or,useSyncExternalStore:Nr,useId:ei,unstable_isNewReconciler:!1};function di(e,t){try{var n="",a=t;do{n+=U(a),a=a.return}while(a);var s=n}catch(o){s="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:s,digest:null}}function mi(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ui(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var pi="function"===typeof WeakMap?WeakMap:Map;function hi(e,t,n){(n=Io(-1,n)).tag=3,n.payload={element:null};var a=t.value;return n.callback=function(){Gl||(Gl=!0,Vl=a),ui(0,t)},n}function fi(e,t,n){(n=Io(-1,n)).tag=3;var a=e.type.getDerivedStateFromError;if("function"===typeof a){var s=t.value;n.payload=function(){return a(s)},n.callback=function(){ui(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ui(0,t),"function"!==typeof a&&(null===Kl?Kl=new Set([this]):Kl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function gi(e,t,n){var a=e.pingCache;if(null===a){a=e.pingCache=new pi;var s=new Set;a.set(t,s)}else void 0===(s=a.get(t))&&(s=new Set,a.set(t,s));s.has(n)||(s.add(n),e=Sc.bind(null,e,t,n),t.then(e,e))}function yi(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function vi(e,t,n,a,s){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Io(-1,1)).tag=2,Lo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=s,e)}var bi=w.ReactCurrentOwner,wi=!1;function ki(e,t,n,a){t.child=null===e?Jo(t,null,n,a):Xo(t,e.child,n,a)}function _i(e,t,n,a,s){n=n.render;var o=t.ref;return So(t,s),a=Tr(e,t,n,a,o,s),n=Sr(),null===e||wi?(so&&n&&eo(t),t.flags|=1,ki(e,t,a,s),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Gi(e,t,s))}function xi(e,t,n,a,s){if(null===e){var o=n.type;return"function"!==typeof o||Nc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ic(n.type,null,a,t,t.mode,s)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Ti(e,t,o,a,s))}if(o=e.child,0===(e.lanes&s)){var r=o.memoizedProps;if((n=null!==(n=n.compare)?n:la)(r,a)&&e.ref===t.ref)return Gi(e,t,s)}return t.flags|=1,(e=Pc(o,a)).ref=t.ref,e.return=t,t.child=e}function Ti(e,t,n,a,s){if(null!==e){var o=e.memoizedProps;if(la(o,a)&&e.ref===t.ref){if(wi=!1,t.pendingProps=a=o,0===(e.lanes&s))return t.lanes=e.lanes,Gi(e,t,s);0!==(131072&e.flags)&&(wi=!0)}}return Ei(e,t,n,a,s)}function Si(e,t,n){var a=t.pendingProps,s=a.children,o=null!==e?e.memoizedState:null;if("hidden"===a.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Cs(Pl,Nl),Nl|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Cs(Pl,Nl),Nl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},a=null!==o?o.baseLanes:n,Cs(Pl,Nl),Nl|=a}else null!==o?(a=o.baseLanes|n,t.memoizedState=null):a=n,Cs(Pl,Nl),Nl|=a;return ki(e,t,s,n),t.child}function Ci(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ei(e,t,n,a,s){var o=Ns(n)?Ds:As.current;return o=Os(t,o),So(t,s),n=Tr(e,t,n,a,o,s),a=Sr(),null===e||wi?(so&&a&&eo(t),t.flags|=1,ki(e,t,n,s),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~s,Gi(e,t,s))}function Ai(e,t,n,a,s){if(Ns(n)){var o=!0;Rs(t)}else o=!1;if(So(t,s),null===t.stateNode)Hi(e,t),Go(t,n,a),Ko(t,n,a,s),a=!0;else if(null===e){var r=t.stateNode,i=t.memoizedProps;r.props=i;var l=r.context,c=n.contextType;"object"===typeof c&&null!==c?c=Co(c):c=Os(t,c=Ns(n)?Ds:As.current);var d=n.getDerivedStateFromProps,m="function"===typeof d||"function"===typeof r.getSnapshotBeforeUpdate;m||"function"!==typeof r.UNSAFE_componentWillReceiveProps&&"function"!==typeof r.componentWillReceiveProps||(i!==a||l!==c)&&Vo(t,r,a,c),Oo=!1;var u=t.memoizedState;r.state=u,Mo(t,a,r,s),l=t.memoizedState,i!==a||u!==l||js.current||Oo?("function"===typeof d&&(Uo(t,n,d,a),l=t.memoizedState),(i=Oo||Ho(t,n,i,a,u,l,c))?(m||"function"!==typeof r.UNSAFE_componentWillMount&&"function"!==typeof r.componentWillMount||("function"===typeof r.componentWillMount&&r.componentWillMount(),"function"===typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"===typeof r.componentDidMount&&(t.flags|=4194308)):("function"===typeof r.componentDidMount&&(t.flags|=4194308),t.memoizedProps=a,t.memoizedState=l),r.props=a,r.state=l,r.context=c,a=i):("function"===typeof r.componentDidMount&&(t.flags|=4194308),a=!1)}else{r=t.stateNode,Po(e,t),i=t.memoizedProps,c=t.type===t.elementType?i:yo(t.type,i),r.props=c,m=t.pendingProps,u=r.context,"object"===typeof(l=n.contextType)&&null!==l?l=Co(l):l=Os(t,l=Ns(n)?Ds:As.current);var p=n.getDerivedStateFromProps;(d="function"===typeof p||"function"===typeof r.getSnapshotBeforeUpdate)||"function"!==typeof r.UNSAFE_componentWillReceiveProps&&"function"!==typeof r.componentWillReceiveProps||(i!==m||u!==l)&&Vo(t,r,a,l),Oo=!1,u=t.memoizedState,r.state=u,Mo(t,a,r,s);var h=t.memoizedState;i!==m||u!==h||js.current||Oo?("function"===typeof p&&(Uo(t,n,p,a),h=t.memoizedState),(c=Oo||Ho(t,n,c,a,u,h,l)||!1)?(d||"function"!==typeof r.UNSAFE_componentWillUpdate&&"function"!==typeof r.componentWillUpdate||("function"===typeof r.componentWillUpdate&&r.componentWillUpdate(a,h,l),"function"===typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(a,h,l)),"function"===typeof r.componentDidUpdate&&(t.flags|=4),"function"===typeof r.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof r.componentDidUpdate||i===e.memoizedProps&&u===e.memoizedState||(t.flags|=4),"function"!==typeof r.getSnapshotBeforeUpdate||i===e.memoizedProps&&u===e.memoizedState||(t.flags|=1024),t.memoizedProps=a,t.memoizedState=h),r.props=a,r.state=h,r.context=l,a=c):("function"!==typeof r.componentDidUpdate||i===e.memoizedProps&&u===e.memoizedState||(t.flags|=4),"function"!==typeof r.getSnapshotBeforeUpdate||i===e.memoizedProps&&u===e.memoizedState||(t.flags|=1024),a=!1)}return ji(e,t,n,a,o,s)}function ji(e,t,n,a,s,o){Ci(e,t);var r=0!==(128&t.flags);if(!a&&!r)return s&&Fs(t,n,!1),Gi(e,t,o);a=t.stateNode,bi.current=t;var i=r&&"function"!==typeof n.getDerivedStateFromError?null:a.render();return t.flags|=1,null!==e&&r?(t.child=Xo(t,e.child,null,o),t.child=Xo(t,null,i,o)):ki(e,t,i,o),t.memoizedState=a.state,s&&Fs(t,n,!0),t.child}function Di(e){var t=e.stateNode;t.pendingContext?Is(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Is(0,t.context,!1),sr(e,t.containerInfo)}function Oi(e,t,n,a,s){return ho(),fo(s),t.flags|=256,ki(e,t,n,a),t.child}var Ni,Pi,Ii,Li={dehydrated:null,treeContext:null,retryLane:0};function Ri(e){return{baseLanes:e,cachePool:null,transitions:null}}function Fi(e,t,n){var a,s=t.pendingProps,r=lr.current,i=!1,l=0!==(128&t.flags);if((a=l)||(a=(null===e||null!==e.memoizedState)&&0!==(2&r)),a?(i=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(r|=1),Cs(lr,1&r),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=s.children,e=s.fallback,i?(s=t.mode,i=t.child,l={mode:"hidden",children:l},0===(1&s)&&null!==i?(i.childLanes=0,i.pendingProps=l):i=Rc(l,s,0,null),e=Lc(e,s,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=Ri(n),t.memoizedState=Li,e):Mi(t,l));if(null!==(r=e.memoizedState)&&null!==(a=r.dehydrated))return function(e,t,n,a,s,r,i){if(n)return 256&t.flags?(t.flags&=-257,Wi(e,t,i,a=mi(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(r=a.fallback,s=t.mode,a=Rc({mode:"visible",children:a.children},s,0,null),(r=Lc(r,s,i,null)).flags|=2,a.return=t,r.return=t,a.sibling=r,t.child=a,0!==(1&t.mode)&&Xo(t,e.child,null,i),t.child.memoizedState=Ri(i),t.memoizedState=Li,r);if(0===(1&t.mode))return Wi(e,t,i,null);if("$!"===s.data){if(a=s.nextSibling&&s.nextSibling.dataset)var l=a.dgst;return a=l,Wi(e,t,i,a=mi(r=Error(o(419)),a,void 0))}if(l=0!==(i&e.childLanes),wi||l){if(null!==(a=jl)){switch(i&-i){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}0!==(s=0!==(s&(a.suspendedLanes|i))?0:s)&&s!==r.retryLane&&(r.retryLane=s,Do(e,s),nc(a,e,s,-1))}return fc(),Wi(e,t,i,a=mi(Error(o(421))))}return"$?"===s.data?(t.flags|=128,t.child=e.child,t=Ec.bind(null,e),s._reactRetry=t,null):(e=r.treeContext,ao=cs(s.nextSibling),no=t,so=!0,oo=null,null!==e&&($s[qs++]=Zs,$s[qs++]=Xs,$s[qs++]=Ys,Zs=e.id,Xs=e.overflow,Ys=t),t=Mi(t,a.children),t.flags|=4096,t)}(e,t,l,s,a,r,n);if(i){i=s.fallback,l=t.mode,a=(r=e.child).sibling;var c={mode:"hidden",children:s.children};return 0===(1&l)&&t.child!==r?((s=t.child).childLanes=0,s.pendingProps=c,t.deletions=null):(s=Pc(r,c)).subtreeFlags=14680064&r.subtreeFlags,null!==a?i=Pc(a,i):(i=Lc(i,l,n,null)).flags|=2,i.return=t,s.return=t,s.sibling=i,t.child=s,s=i,i=t.child,l=null===(l=e.child.memoizedState)?Ri(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},i.memoizedState=l,i.childLanes=e.childLanes&~n,t.memoizedState=Li,s}return e=(i=e.child).sibling,s=Pc(i,{mode:"visible",children:s.children}),0===(1&t.mode)&&(s.lanes=n),s.return=t,s.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function Mi(e,t){return(t=Rc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Wi(e,t,n,a){return null!==a&&fo(a),Xo(t,e.child,null,n),(e=Mi(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Bi(e,t,n){e.lanes|=t;var a=e.alternate;null!==a&&(a.lanes|=t),To(e.return,t,n)}function Ui(e,t,n,a,s){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:s}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=a,o.tail=n,o.tailMode=s)}function zi(e,t,n){var a=t.pendingProps,s=a.revealOrder,o=a.tail;if(ki(e,t,a.children,n),0!==(2&(a=lr.current)))a=1&a|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Bi(e,n,t);else if(19===e.tag)Bi(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}a&=1}if(Cs(lr,a),0===(1&t.mode))t.memoizedState=null;else switch(s){case"forwards":for(n=t.child,s=null;null!==n;)null!==(e=n.alternate)&&null===cr(e)&&(s=n),n=n.sibling;null===(n=s)?(s=t.child,t.child=null):(s=n.sibling,n.sibling=null),Ui(t,!1,s,n,o);break;case"backwards":for(n=null,s=t.child,t.child=null;null!==s;){if(null!==(e=s.alternate)&&null===cr(e)){t.child=s;break}e=s.sibling,s.sibling=n,n=s,s=e}Ui(t,!0,n,null,o);break;case"together":Ui(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hi(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Gi(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Rl|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Pc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Pc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Vi(e,t){if(!so)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var a=null;null!==n;)null!==n.alternate&&(a=n),n=n.sibling;null===a?t||null===e.tail?e.tail=null:e.tail.sibling=null:a.sibling=null}}function Ki(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,a=0;if(t)for(var s=e.child;null!==s;)n|=s.lanes|s.childLanes,a|=14680064&s.subtreeFlags,a|=14680064&s.flags,s.return=e,s=s.sibling;else for(s=e.child;null!==s;)n|=s.lanes|s.childLanes,a|=s.subtreeFlags,a|=s.flags,s.return=e,s=s.sibling;return e.subtreeFlags|=a,e.childLanes=n,t}function $i(e,t,n){var a=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ki(t),null;case 1:case 17:return Ns(t.type)&&Ps(),Ki(t),null;case 3:return a=t.stateNode,or(),Ss(js),Ss(As),mr(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),null!==e&&null!==e.child||(uo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(rc(oo),oo=null))),Ki(t),null;case 5:ir(t);var s=ar(nr.current);if(n=t.type,null!==e&&null!=t.stateNode)Pi(e,t,n,a),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!a){if(null===t.stateNode)throw Error(o(166));return Ki(t),null}if(e=ar(er.current),uo(t)){a=t.stateNode,n=t.type;var r=t.memoizedProps;switch(a[us]=t,a[ps]=r,e=0!==(1&t.mode),n){case"dialog":Wa("cancel",a),Wa("close",a);break;case"iframe":case"object":case"embed":Wa("load",a);break;case"video":case"audio":for(s=0;s<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof a.is?e=l.createElement(n,{is:a.is}):(e=l.createElement(n),"select"===n&&(l=e,a.multiple?l.multiple=!0:a.size&&(l.size=a.size))):e=l.createElementNS(e,n),e[us]=t,e[ps]=a,Ni(e,t),t.stateNode=e;e:{switch(l=be(n,a),n){case"dialog":Wa("cancel",e),Wa("close",e),s=a;break;case"iframe":case"object":case"embed":Wa("load",e),s=a;break;case"video":case"audio":for(s=0;szl&&(t.flags|=128,a=!0,Vi(r,!1),t.lanes=4194304)}else{if(!a)if(null!==(e=cr(l))){if(t.flags|=128,a=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Vi(r,!0),null===r.tail&&"hidden"===r.tailMode&&!l.alternate&&!so)return Ki(t),null}else 2*Xe()-r.renderingStartTime>zl&&1073741824!==n&&(t.flags|=128,a=!0,Vi(r,!1),t.lanes=4194304);r.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=r.last)?n.sibling=l:t.child=l,r.last=l)}return null!==r.tail?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=Xe(),t.sibling=null,n=lr.current,Cs(lr,a?1&n|2:1&n),t):(Ki(t),null);case 22:case 23:return mc(),a=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==a&&(t.flags|=8192),a&&0!==(1&t.mode)?0!==(1073741824&Nl)&&(Ki(t),6&t.subtreeFlags&&(t.flags|=8192)):Ki(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function qi(e,t){switch(to(t),t.tag){case 1:return Ns(t.type)&&Ps(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return or(),Ss(js),Ss(As),mr(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return ir(t),null;case 13:if(Ss(lr),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ss(lr),null;case 4:return or(),null;case 10:return xo(t.type._context),null;case 22:case 23:return mc(),null;default:return null}}Ni=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Pi=function(e,t,n,a){var s=e.memoizedProps;if(s!==a){e=t.stateNode,ar(er.current);var o,r=null;switch(n){case"input":s=Y(e,s),a=Y(e,a),r=[];break;case"select":s=F({},s,{value:void 0}),a=F({},a,{value:void 0}),r=[];break;case"textarea":s=ae(e,s),a=ae(e,a),r=[];break;default:"function"!==typeof s.onClick&&"function"===typeof a.onClick&&(e.onclick=Qa)}for(d in ve(n,a),n=null,s)if(!a.hasOwnProperty(d)&&s.hasOwnProperty(d)&&null!=s[d])if("style"===d){var l=s[d];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==d&&"children"!==d&&"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&"autoFocus"!==d&&(i.hasOwnProperty(d)?r||(r=[]):(r=r||[]).push(d,null));for(d in a){var c=a[d];if(l=null!=s?s[d]:void 0,a.hasOwnProperty(d)&&c!==l&&(null!=c||null!=l))if("style"===d)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(r||(r=[]),r.push(d,n)),n=c;else"dangerouslySetInnerHTML"===d?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(r=r||[]).push(d,c)):"children"===d?"string"!==typeof c&&"number"!==typeof c||(r=r||[]).push(d,""+c):"suppressContentEditableWarning"!==d&&"suppressHydrationWarning"!==d&&(i.hasOwnProperty(d)?(null!=c&&"onScroll"===d&&Wa("scroll",e),r||l===c||(r=[])):(r=r||[]).push(d,c))}n&&(r=r||[]).push("style",n);var d=r;(t.updateQueue=d)&&(t.flags|=4)}},Ii=function(e,t,n,a){n!==a&&(t.flags|=4)};var Yi=!1,Zi=!1,Xi="function"===typeof WeakSet?WeakSet:Set,Ji=null;function Qi(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(a){Tc(e,t,a)}else n.current=null}function el(e,t,n){try{n()}catch(a){Tc(e,t,a)}}var tl=!1;function nl(e,t,n){var a=t.updateQueue;if(null!==(a=null!==a?a.lastEffect:null)){var s=a=a.next;do{if((s.tag&e)===e){var o=s.destroy;s.destroy=void 0,void 0!==o&&el(t,n,o)}s=s.next}while(s!==a)}}function al(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var a=n.create;n.destroy=a()}n=n.next}while(n!==t)}}function sl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function ol(e){var t=e.alternate;null!==t&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[us],delete t[ps],delete t[fs],delete t[gs],delete t[ys])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rl(e){return 5===e.tag||3===e.tag||4===e.tag}function il(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||rl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function ll(e,t,n){var a=e.tag;if(5===a||6===a)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Qa));else if(4!==a&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}function cl(e,t,n){var a=e.tag;if(5===a||6===a)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==a&&null!==(e=e.child))for(cl(e,t,n),e=e.sibling;null!==e;)cl(e,t,n),e=e.sibling}var dl=null,ml=!1;function ul(e,t,n){for(n=n.child;null!==n;)pl(e,t,n),n=n.sibling}function pl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(st,n)}catch(i){}switch(n.tag){case 5:Zi||Qi(n,t);case 6:var a=dl,s=ml;dl=null,ul(e,t,n),ml=s,null!==(dl=a)&&(ml?(e=dl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):dl.removeChild(n.stateNode));break;case 18:null!==dl&&(ml?(e=dl,n=n.stateNode,8===e.nodeType?ls(e.parentNode,n):1===e.nodeType&&ls(e,n),zt(e)):ls(dl,n.stateNode));break;case 4:a=dl,s=ml,dl=n.stateNode.containerInfo,ml=!0,ul(e,t,n),dl=a,ml=s;break;case 0:case 11:case 14:case 15:if(!Zi&&(null!==(a=n.updateQueue)&&null!==(a=a.lastEffect))){s=a=a.next;do{var o=s,r=o.destroy;o=o.tag,void 0!==r&&(0!==(2&o)||0!==(4&o))&&el(n,t,r),s=s.next}while(s!==a)}ul(e,t,n);break;case 1:if(!Zi&&(Qi(n,t),"function"===typeof(a=n.stateNode).componentWillUnmount))try{a.props=n.memoizedProps,a.state=n.memoizedState,a.componentWillUnmount()}catch(i){Tc(n,t,i)}ul(e,t,n);break;case 21:ul(e,t,n);break;case 22:1&n.mode?(Zi=(a=Zi)||null!==n.memoizedState,ul(e,t,n),Zi=a):ul(e,t,n);break;default:ul(e,t,n)}}function hl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xi),t.forEach((function(t){var a=Ac.bind(null,e,t);n.has(t)||(n.add(t),t.then(a,a))}))}}function fl(e,t){var n=t.deletions;if(null!==n)for(var a=0;as&&(s=i),a&=~r}if(a=s,10<(a=(120>(a=Xe()-a)?120:480>a?480:1080>a?1080:1920>a?1920:3e3>a?3e3:4320>a?4320:1960*Tl(a/1960))-a)){e.timeoutHandle=as(kc.bind(null,e,Bl,Hl),a);break}kc(e,Bl,Hl);break;default:throw Error(o(329))}}}return ac(e,Xe()),e.callbackNode===n?sc.bind(null,e):null}function oc(e,t){var n=Wl;return e.current.memoizedState.isDehydrated&&(uc(e,t).flags|=256),2!==(e=gc(e,t))&&(t=Bl,Bl=n,null!==t&&rc(t)),e}function rc(e){null===Bl?Bl=e:Bl.push.apply(Bl,e)}function ic(e,t){for(t&=~Ml,t&=~Fl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0e?16:e,null===ql)var a=!1;else{if(e=ql,ql=null,Yl=0,0!==(6&Al))throw Error(o(331));var s=Al;for(Al|=4,Ji=e.current;null!==Ji;){var r=Ji,i=r.child;if(0!==(16&Ji.flags)){var l=r.deletions;if(null!==l){for(var c=0;cXe()-Ul?uc(e,0):Ml|=n),ac(e,t)}function Cc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=dt,0===(130023424&(dt<<=1))&&(dt=4194304)));var n=ec();null!==(e=Do(e,t))&&(yt(e,t,n),ac(e,n))}function Ec(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Cc(e,n)}function Ac(e,t){var n=0;switch(e.tag){case 13:var a=e.stateNode,s=e.memoizedState;null!==s&&(n=s.retryLane);break;case 19:a=e.stateNode;break;default:throw Error(o(314))}null!==a&&a.delete(t),Cc(e,n)}function jc(e,t){return $e(e,t)}function Dc(e,t,n,a){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=a,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Oc(e,t,n,a){return new Dc(e,t,n,a)}function Nc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Pc(e,t){var n=e.alternate;return null===n?((n=Oc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ic(e,t,n,a,s,r){var i=2;if(a=e,"function"===typeof e)Nc(e)&&(i=1);else if("string"===typeof e)i=5;else e:switch(e){case x:return Lc(n.children,s,r,t);case T:i=8,s|=8;break;case S:return(e=Oc(12,n,t,2|s)).elementType=S,e.lanes=r,e;case j:return(e=Oc(13,n,t,s)).elementType=j,e.lanes=r,e;case D:return(e=Oc(19,n,t,s)).elementType=D,e.lanes=r,e;case P:return Rc(n,s,r,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case C:i=10;break e;case E:i=9;break e;case A:i=11;break e;case O:i=14;break e;case N:i=16,a=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Oc(i,n,t,s)).elementType=e,t.type=a,t.lanes=r,t}function Lc(e,t,n,a){return(e=Oc(7,e,a,t)).lanes=n,e}function Rc(e,t,n,a){return(e=Oc(22,e,a,t)).elementType=P,e.lanes=n,e.stateNode={isHidden:!1},e}function Fc(e,t,n){return(e=Oc(6,e,null,t)).lanes=n,e}function Mc(e,t,n){return(t=Oc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wc(e,t,n,a,s){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gt(0),this.expirationTimes=gt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gt(0),this.identifierPrefix=a,this.onRecoverableError=s,this.mutableSourceEagerHydrationData=null}function Bc(e,t,n,a,s,o,r,i,l){return e=new Wc(e,t,n,i,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Oc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},No(o),e}function Uc(e,t,n){var a=3{"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(463)},374:(e,t,n)=>{"use strict";var a=n(791),s=Symbol.for("react.element"),o=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var a,o={},c=null,d=null;for(a in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(d=t.ref),t)r.call(t,a)&&!l.hasOwnProperty(a)&&(o[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===o[a]&&(o[a]=t[a]);return{$$typeof:s,type:e,key:c,ref:d,props:o,_owner:i.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},117:(e,t)=>{"use strict";var n=Symbol.for("react.element"),a=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}function v(){}function b(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||h}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},v.prototype=y.prototype;var w=b.prototype=new v;w.constructor=b,f(w,y.prototype),w.isPureReactComponent=!0;var k=Array.isArray,_=Object.prototype.hasOwnProperty,x={current:null},T={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,a){var s,o={},r=null,i=null;if(null!=t)for(s in void 0!==t.ref&&(i=t.ref),void 0!==t.key&&(r=""+t.key),t)_.call(t,s)&&!T.hasOwnProperty(s)&&(o[s]=t[s]);var l=arguments.length-2;if(1===l)o.children=a;else if(1{"use strict";e.exports=n(117)},184:(e,t,n)=>{"use strict";e.exports=n(374)},813:(e,t)=>{"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0>>1,s=e[a];if(!(0