>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;Uu(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==cd.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 ud(e,t){if(Vc&&Buffer.isBuffer(e)){if(t){if(255==e[0]&&254==e[1])return Ld(e.slice(2).toString("utf16le"));if(254==e[1]&&255==e[2])return Ld(Mc(e.slice(2).toString("binary")))}return e.toString("binary")}if("undefined"!==typeof TextDecoder)try{if(t){if(255==e[0]&&254==e[1])return Ld(new TextDecoder("utf-16le").decode(e.slice(2)));if(254==e[0]&&255==e[1])return Ld(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 pd(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]=pd(e[n]));return t}function hd(e,t){for(var n="";n.length3&&-1==gd.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 vd(e,t,n){if(e.FullPaths){var a;if("string"==typeof n)return a=Vc?Kc(n):function(e){for(var t=[],n=0,a=e.length+250,s=$c(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=$c(65535),a=65530)}return t.push(s.slice(0,n)),Jc(t)}(n),qm.utils.cfb_add(e,t,a);qm.utils.cfb_add(e,t,n)}else e.file(t,n)}function bd(){return qm.utils.cfb_new()}var wd='\r\n';var kd={""":'"',"'":"'",">":">","<":"<","&":"&"},_d=ed(kd),xd=/[&<>'"]/g,Td=/[\u0000-\u0008\u000b-\u001f]/g;function Sd(e){return(e+"").replace(xd,(function(e){return _d[e]})).replace(Td,(function(e){return"_x"+("000"+e.charCodeAt(0).toString(16)).slice(-4)+"_"}))}function Cd(e){return Sd(e).replace(/ /g,"_x0020_")}var Ed=/[\u0000-\u001f]/g;function Ad(e){return(e+"").replace(xd,(function(e){return _d[e]})).replace(/\n/g,"
").replace(Ed,(function(e){return""+("000"+e.charCodeAt(0).toString(16)).slice(-4)+";"}))}function Dd(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function jd(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 Od(e){var t,n,a,s=$c(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 Nd(e){return Kc(e,"binary").toString("utf8")}var Pd="foo bar baz\xe2\x98\x83\xf0\x9f\x8d\xa3",Id=Vc&&(Nd(Pd)==jd(Pd)&&Nd||Od(Pd)==jd(Pd)&&Od)||jd,Ld=Vc?function(e){return Kc(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("")},Rd=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 Wd(e){return Jm(e).map((function(t){return" "+t+'="'+e[t]+'"'})).join("")}function Bd(e,t,n){return"<"+e+(null!=n?Wd(n):"")+(null!=t?(t.match(Fd)?' xml:space="preserve"':"")+">"+t+""+e:"/")+">"}function Ud(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(n){if(t)throw n}return""}var zd="http://schemas.openxmlformats.org/package/2006/metadata/core-properties",Hd="http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",Gd="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",Vd="http://schemas.openxmlformats.org/package/2006/content-types",Kd="http://schemas.openxmlformats.org/package/2006/relationships",$d="http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",qd="http://purl.org/dc/elements/1.1/",Yd="http://purl.org/dc/terms/",Zd="http://purl.org/dc/dcmitype/",Xd="http://schemas.openxmlformats.org/officeDocument/2006/relationships",Jd="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",Qd="http://www.w3.org/2001/XMLSchema-instance",eu="http://www.w3.org/2001/XMLSchema",tu=["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"],nu="urn:schemas-microsoft-com:office:office",au="urn:schemas-microsoft-com:office:excel",su="urn:schemas-microsoft-com:office:spreadsheet",ou="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",ru="http://macVmlSchemaUri",iu="urn:schemas-microsoft-com:vml",lu="http://www.w3.org/TR/REC-html40";var cu=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:Kc(e)}))):cu(e)}:cu,du=function(e,t,n){for(var a=[],s=t;s0?gu(e,t+4,t+4+n-1):""},vu=yu,bu=function(e,t){var n=Iu(e,t);return n>0?gu(e,t+4,t+4+n-1):""},wu=bu,ku=function(e,t){var n=2*Iu(e,t);return n>0?gu(e,t+4,t+4+n-1):""},_u=ku,xu=function(e,t){var n=Iu(e,t);return n>0?uu(e,t+4,t+4+n):""},Tu=xu,Su=function(e,t){var n=Iu(e,t);return n>0?gu(e,t+4,t+4+n):""},Cu=Su,Eu=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)},Au=Eu,Du=function(e){return Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array};function ju(){uu=function(e,t,n){return Wc.utils.decode(1200,e.slice(t,n)).replace(Qc,"")},gu=function(e,t,n){return Wc.utils.decode(65001,e.slice(t,n))},vu=function(e,t){var n=Iu(e,t);return n>0?Wc.utils.decode(Nc,e.slice(t+4,t+4+n-1)):""},wu=function(e,t){var n=Iu(e,t);return n>0?Wc.utils.decode(Oc,e.slice(t+4,t+4+n-1)):""},_u=function(e,t){var n=2*Iu(e,t);return n>0?Wc.utils.decode(1200,e.slice(t+4,t+4+n-1)):""},Tu=function(e,t){var n=Iu(e,t);return n>0?Wc.utils.decode(1200,e.slice(t+4,t+4+n)):""},Cu=function(e,t){var n=Iu(e,t);return n>0?Wc.utils.decode(65001,e.slice(t+4,t+4+n)):""}}Vc&&(vu=function(e,t){if(!Buffer.isBuffer(e))return yu(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},wu=function(e,t){if(!Buffer.isBuffer(e))return bu(e,t);var n=e.readUInt32LE(t);return n>0?e.toString("utf8",t+4,t+4+n-1):""},_u=function(e,t){if(!Buffer.isBuffer(e))return ku(e,t);var n=2*e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n-1)},Tu=function(e,t){if(!Buffer.isBuffer(e))return xu(e,t);var n=e.readUInt32LE(t);return e.toString("utf16le",t+4,t+4+n)},Cu=function(e,t){if(!Buffer.isBuffer(e))return Su(e,t);var n=e.readUInt32LE(t);return e.toString("utf8",t+4,t+4+n)},Au=function(e,t){return Buffer.isBuffer(e)?e.readDoubleLE(t):Eu(e,t)},Du=function(e){return Buffer.isBuffer(e)||Array.isArray(e)||"undefined"!==typeof Uint8Array&&e instanceof Uint8Array}),"undefined"!==typeof Wc&&ju();var Ou=function(e,t){return e[t]},Nu=function(e,t){return 256*e[t+1]+e[t]},Pu=function(e,t){var n=256*e[t+1]+e[t];return n<32768?n:-1*(65535-n+1)},Iu=function(e,t){return e[t+3]*(1<<24)+(e[t+2]<<16)+(e[t+1]<<8)+e[t]},Lu=function(e,t){return e[t+3]<<24|e[t+2]<<16|e[t+1]<<8|e[t]},Ru=function(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]};function Fu(e,t){var n,a,s,o,r,i,l="",c=[];switch(t){case"dbcs":if(i=this.l,Vc&&Buffer.isBuffer(this))l=this.slice(this.l,this.l+2*e).toString("utf16le");else for(r=0;r0?Lu:Ru)(this,this.l),this.l+=4,n):(a=Iu(this,this.l),this.l+=4,a);case 8:case-8:if("f"===t)return a=8==e?Au(this,this.l):Au([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=hu(this,this.l,e)}}return this.l+=e,l}var Mu=function(e,t,n){e[n]=255&t,e[n+1]=t>>>8&255};function Wu(e,t,n){var a=0,s=0;if("dbcs"===n){for(s=0;s!=t.length;++s)Mu(this,t.charCodeAt(s),this.l+2*s);a=2*t.length}else if("sbcs"===n){if("undefined"!==typeof Wc&&874==Nc)for(s=0;s!=t.length;++s){var o=Wc.utils.encode(Nc,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 Bu(e,t){var n=hu(this,this.l,e.length>>1);if(n!==e)throw new Error(t+"Expected "+e+" saw "+n);this.l+=e.length>>1}function Uu(e,t){e.l=t,e.read_shift=Fu,e.chk=Bu,e.write_shift=Wu}function zu(e,t){e.l+=t}function Hu(e){var t=$c(e);return Uu(t,0),t}function Gu(){var e=[],t=Vc?256:2048,n=function(e){var t=Hu(e);return Uu(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&&Du(n)&&e.push(n)}}function Ku(e,t,n){var a=pd(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 $u(e,t,n){var a=pd(e);return a.s=Ku(a.s,t.s,n),a.e=Ku(a.e,t.s,n),a}function qu(e,t){if(e.cRel&&e.c<0)for(e=pd(e);e.c<0;)e.c+=t>8?16384:256;if(e.rRel&&e.r<0)for(e=pd(e);e.r<0;)e.r+=t>8?1048576:t>5?65536:16384;var n=tp(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 Yu(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?qu(e.s,t.biff)+":"+qu(e.e,t.biff):(e.s.rRel?"":"$")+Xu(e.s.r)+":"+(e.e.rRel?"":"$")+Xu(e.e.r):(e.s.cRel?"":"$")+Qu(e.s.c)+":"+(e.e.cRel?"":"$")+Qu(e.e.c)}function Zu(e){return parseInt(e.replace(/\$(\d+)$/,"$1"),10)-1}function Xu(e){return""+(e+1)}function Ju(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 Qu(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 ep(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 tp(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 np(e){var t=e.indexOf(":");return-1==t?{s:ep(e),e:ep(e)}:{s:ep(e.slice(0,t)),e:ep(e.slice(t+1))}}function ap(e,t){return"undefined"===typeof t||"number"===typeof t?ap(e.s,e.e):("string"!==typeof e&&(e=tp(e)),"string"!==typeof t&&(t=tp(t)),e==t?e:e+":"+t)}function sp(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 op(e,t){var n="d"==e.t&&t instanceof Date;if(null!=e.z)try{return e.w=zm(e.z,n?ad(t):t)}catch(a){}try{return e.w=zm((e.XF||{}).numFmtId||(n?14:0),n?ad(t):t)}catch(a){return""+t}}function rp(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?Up[e.v]||e.v:op(e,void 0==t?e.v:t))}function ip(e,t){var n=t&&t.sheet?t.sheet:"Sheet1",a={};return a[n]=e,{SheetNames:[n],Sheets:a}}function lp(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?ep(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=sp(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 pp(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function hp(e,t){var n=e.l,a=e.read_shift(1),s=dp(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(pp(e));r.r=o}else r.r=[{ich:0,ifnt:0}];return e.l=n+t,r}var fp=hp;function gp(e,t){var n=!1;return null==t&&(n=!0,t=Hu(23+4*e.t.length)),t.write_shift(1,1),up(e.t,t),t.write_shift(4,1),function(e,t){t||(t=Hu(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 yp(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 vp(e,t){return null==t&&(t=Hu(8)),t.write_shift(-4,e.c),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}function bp(e){var t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:t}}function wp(e,t){return null==t&&(t=Hu(4)),t.write_shift(3,e.iStyleRef||e.s),t.write_shift(1,0),t}var kp=dp,_p=up;function xp(e){var t=e.read_shift(4);return 0===t||4294967295===t?"":e.read_shift(t,"dbcs")}function Tp(e,t){var n=!1;return null==t&&(n=!0,t=Hu(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 Sp=dp,Cp=xp,Ep=Tp;function Ap(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?Au([0,0,0,0,252&t[0],t[1],t[2],t[3]],0):Lu(t,0)>>2;return n?s/100:s}function Dp(e,t){null==t&&(t=Hu(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 jp(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 Op=jp,Np=function(e,t){return t||(t=Hu(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 Pp(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Ip(e,t){return(t||Hu(8)).write_shift(8,e,"f")}function Lp(e,t){if(t||(t=Hu(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 Rp=80,Fp={1:{n:"CodePage",t:2},2:{n:"Category",t:Rp},3:{n:"PresentationFormat",t:Rp},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:Rp},15:{n:"Company",t:Rp},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:Rp},27:{n:"ContentStatus",t:Rp},28:{n:"Language",t:Rp},29:{n:"Version",t:Rp},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Mp={1:{n:"CodePage",t:2},2:{n:"Title",t:Rp},3:{n:"Subject",t:Rp},4:{n:"Author",t:Rp},5:{n:"Keywords",t:Rp},6:{n:"Comments",t:Rp},7:{n:"Template",t:Rp},8:{n:"LastAuthor",t:Rp},9:{n:"RevNumber",t:Rp},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:Rp},19:{n:"DocSecurity",t:3},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}};function Wp(e){return e.map((function(e){return[e>>16&255,e>>8&255,255&e]}))}var Bp=pd(Wp([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])),Up={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},zp={"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"},Hp={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 Gp(e,t){var n,a=function(e){for(var t=[],n=Jm(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}(zp),s=[];s[s.length]=wd,s[s.length]=Bd("Types",null,{xmlns:Vd,"xmlns:xsd":eu,"xmlns:xsi":Qd}),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 Bd("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]=Bd("Override",null,{PartName:("/"==n[0]?"":"/")+n,ContentType:Hp[a][t.bookType]||Hp[a].xlsx}))},r=function(n){(e[n]||[]).forEach((function(e){s[s.length]=Bd("Override",null,{PartName:("/"==e[0]?"":"/")+e,ContentType:Hp[n][t.bookType]||Hp[n].xlsx})}))},i=function(t){(e[t]||[]).forEach((function(e){s[s.length]=Bd("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 Vp={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 Kp(e){var t=e.lastIndexOf("/");return e.slice(0,t+1)+"_rels/"+e.slice(t+1)+".rels"}function $p(e){var t=[wd,Bd("Relationships",null,{xmlns:Kd})];return Jm(e["!id"]).forEach((function(n){t[t.length]=Bd("Relationship",null,e["!id"][n])})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function qp(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:[Vp.HLINK,Vp.XPATH,Vp.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 Yp(e,t,n){return[' \n',' \n'," \n"].join("")}function Zp(){return'SheetJS '+jc.version+""}var Xp=[["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 Jp(e,t,n,a,s){null==s[e]&&null!=t&&""!==t&&(s[e]=t,t=Sd(t),a[a.length]=n?Bd(e,t,n):Md(e,t))}function Qp(e,t){var n=t||{},a=[wd,Bd("cp:coreProperties",null,{"xmlns:cp":zd,"xmlns:dc":qd,"xmlns:dcterms":Yd,"xmlns:dcmitype":Zd,"xmlns:xsi":Qd})],s={};if(!e&&!n.Props)return a.join("");e&&(null!=e.CreatedDate&&Jp("dcterms:created","string"===typeof e.CreatedDate?e.CreatedDate:Ud(e.CreatedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},a,s),null!=e.ModifiedDate&&Jp("dcterms:modified","string"===typeof e.ModifiedDate?e.ModifiedDate:Ud(e.ModifiedDate,n.WTF),{"xsi:type":"dcterms:W3CDTF"},a,s));for(var o=0;o!=Xp.length;++o){var r=Xp[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&&Jp(r[0],i,null,a,s)}return a.length>2&&(a[a.length]="",a[1]=a[1].replace("/>",">")),a.join("")}var eh=[["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"]],th=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function nh(e){var t=[],n=Bd;return e||(e={}),e.Application="SheetJS",t[t.length]=wd,t[t.length]=Bd("Properties",null,{xmlns:Gd,"xmlns:vt":Jd}),eh.forEach((function(a){if(void 0!==e[a[1]]){var s;switch(a[2]){case"string":s=Sd(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""+Sd(e)+""})).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function ah(e){var t=[wd,Bd("Properties",null,{xmlns:Hd,"xmlns:vt":Jd})];if(!e)return t.join("");var n=1;return Jm(e).forEach((function(a){++n,t[t.length]=Bd("property",function(e,t){switch(typeof e){case"string":var n=Bd("vt:lpwstr",Sd(e));return t&&(n=n.replace(/"/g,"_x0022_")),n;case"number":return Bd((0|e)==e?"vt:i4":"vt:r8",Sd(String(e)));case"boolean":return Bd("vt:bool",e?"true":"false")}if(e instanceof Date)return Bd("vt:filetime",Ud(e));throw new Error("Unable to serialize "+e)}(e[a],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:n,name:Sd(a)})})),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}var sh={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 oh(e,t){var n=Hu(4),a=Hu(4);switch(n.write_shift(4,80==e?31:e),e){case 3:a.write_shift(-4,t);break;case 5:(a=Hu(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=Hu(8);return o.write_shift(4,n),o.write_shift(4,a),o}(t);break;case 31:case 80:for((a=Hu(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 Jc([n,a])}var rh=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function ih(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 lh(e,t,n){var a=Hu(8),s=[],o=[],r=8,i=0,l=Hu(8),c=Hu(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=Hu(8)).write_shift(4,0),s.unshift(c);var m=[Hu(4)];for(m[0].write_shift(4,e.length),i=0;i-1||th.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=oh(h.t,u)}else{var g=ih(u);-1==g&&(g=31,u=String(u)),l=oh(g,u)}o.push(l),(c=Hu(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=Oc;(n&&n.biff>=8&&(Oc=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 Oc=o,r}function gh(e){var t=e.t||"",n=Hu(3);n.write_shift(2,t.length),n.write_shift(1,1);var a=Hu(2*t.length);return a.write_shift(2*t.length,t,"utf16le"),Jc([n,a])}function yh(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 vh(e,t,n){var a=e.read_shift(n&&2==n.biff?1:2);return 0===a?(e.l++,""):yh(e,a,n)}function bh(e,t,n){if(n.biff>5)return vh(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 wh(e,t,n){return n||(n=Hu(3+2*e.length)),n.write_shift(2,e.length),n.write_shift(1,1),n.write_shift(31,e,"utf16le"),n}function kh(e,t){t||(t=Hu(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 Sh(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 Ch(e,t){return t||(t=Hu(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 Eh(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=Hu(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 Ah(e,t){var n=!t||t.biff>=8?2:1,a=Hu(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 Dh(e,t,n,a){var s=n&&5==n.biff;a||(a=Hu(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 jh(e,t,n,a){var s=n&&5==n.biff;a||(a=Hu(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 Oh(e,t,n){if(n.biff<8)return function(e,t,n){3==e[e.l+1]&&e[e.l]++;var a=fh(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(Th(e,n.biff,n));if(e.l!=s)throw new Error("Bad ExternSheet: "+e.l+" != "+s);return a}function Nh(e){var t=Hu(24),n=ep(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 Jc([t,_h(e[1])])}function Ph(e){var t=e[1].Tooltip,n=Hu(10+2*(t.length+1));n.write_shift(2,2048);var a=ep(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 Lh=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=ed({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=cp(function(t,n){var a=[],s=$c(1);switch(n.type){case"base64":s=Yc(Gc(t));break;case"binary":s=Yc(t);break;case"buffer":case"array":s=t}Uu(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,Uu(b,0);var w=Wc.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&&Rc(+s.codepage),"string"==s.type)throw new Error("Cannot write DBF to JS string");var o=Gu(),r=ev(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[Nc]||3)<<8),m=0,d=0;m":190,"?":191,"{":223},t=new RegExp("\x1bN("+Jm(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),n=function(t,n){var a=e[n];return"number"==typeof a?Uc(a):a},a=function(e,t,n){var a=t.charCodeAt(0)-32<<4|n.charCodeAt(0)-48;return 59==a?e:Uc(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&&Rc(+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]=jf(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=tf(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(Gc(e),t);case"binary":return s(e,t);case"buffer":return s(Vc&&Buffer.isBuffer(e)?e.toString("binary"):Xc(e),t);case"array":return s(ud(e),t)}throw new Error("Unrecognized type "+t.type)}(e,t),a=n[0],o=n[1],r=cp(a,t);return Jm(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"+Df(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 ip(o(e,t),t)},to_sheet:o,from_sheet:function(e,t){var n,a,s=["ID;PWXL;N;E"],o=[],i=sp(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=Zh(e.width)),"number"!=typeof e.wpx||e.wch||(e.wch=Xh(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*ef(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=tp({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}}}(),Fh=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=dd(t,s)):(a.t="n",a.v=ad(dd(t,s))),!1!==n.cellText&&(a.w=zm(a.z,a.v instanceof Date?ad(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[tp({c:l,r:i})]=a),m=d+1,f=e.charCodeAt(m),r.e.c0&&y(),o["!ref"]=ap(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):cp(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]:Ky(e,t);switch(t.type){case"base64":n=Gc(e);break;case"binary":case"string":n=e;break;case"buffer":n=65001==t.codepage?e.toString("utf8"):t.codepage&&"undefined"!==typeof Wc?Wc.utils.decode(t.codepage,e):Vc&&Buffer.isBuffer(e)?e.toString("binary"):Xc(e);break;case"array":n=ud(e);break;default:throw new Error("Unrecognized type "+t.type)}return 239==a[0]&&187==a[1]&&191==a[2]?n=Id(n.slice(3)):"string"!=t.type&&"buffer"!=t.type&&65001==t.codepage?n=Id(n):"binary"==t.type&&"undefined"!==typeof Wc&&t.codepage&&(n=Wc.utils.decode(t.codepage,Wc.utils.encode(28591,n))),"socialcalc:version:"==n.slice(0,19)?Mh.to_sheet("string"==t.type?n:Id(n),t):o(n,t)}return{to_workbook:function(e,t){return ip(r(e,t),t)},to_sheet:r,from_sheet:function(e){for(var t,n=[],a=sp(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=tp({r:o,c:i});if((t=s?(e[o]||[])[i]:e[l])&&null!=t.v){for(var c=(t.w||(rp(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 Bh=function(){function e(e,t,n){if(e){Uu(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||mm[14],a.cellDates&&(e[1].t="d",e[1].v=id(e[1].v))),a.qpro&&e[3]>i&&(s["!ref"]=ap(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[tp(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[tp(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"]=ap(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[tp(e[0])]=e[1],d.e.c=128?95:o)}return a.write_shift(1,0),a}function o(e,t,n){var a=Hu(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=Hu(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?Qu(t):Xu(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=Hu(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=Hu(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=Hu(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:uh},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){Uu(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&&Rc(+n.codepage),"string"==n.type)throw new Error("Cannot write WK1 to JS string");var a=Gu(),i=sp(e["!ref"]),l=Array.isArray(e),c=[];sy(a,0,function(e){var t=Hu(2);return t.write_shift(2,e),t}(1030)),sy(a,6,function(e){var t=Hu(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=Xu(d),p=i.s.c;p<=i.e.c;++p){d===i.s.r&&(c[p]=Qu(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?sy(a,13,o(d,p,f.v)):sy(a,14,r(d,p,f.v));else sy(a,15,s(d,p,rp(f).slice(0,239)))}return sy(a,1),a.end()},book_to_wk3:function(e,t){var n=t||{};if(+n.codepage>=0&&Rc(+n.codepage),"string"==n.type)throw new Error("Cannot write WK3 to JS string");var a=Gu();sy(a,0,function(e){var t=Hu(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+=""+Sd(s.t)+""),o+="",n[n.length]=o}return n.length>2&&(n[n.length]="",n[1]=n[1].replace("/>",">")),n.join("")}var Hh=function(e,t){var n=!1;return null==t&&(n=!0,t=Hu(15+4*e.t.length)),t.write_shift(1,0),up(e.t,t),n?t.slice(0,t.l):t};function Gh(e){var t=Gu();Vu(t,159,function(e,t){return t||(t=Hu(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 $h=function(){function e(e,n){switch(n.type){case"base64":return t(Gc(e),n);case"binary":return t(e,n);case"buffer":return t(Vc&&Buffer.isBuffer(e)?e.toString("binary"):Xc(e),n);case"array":return t(ud(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[tp({r:t,c:i})]=c}}r=o.lastIndex}i>s.e.c&&(s.e.c=i)})),n["!ref"]=ap(s),n}return{to_workbook:function(t,n){return ip(e(t,n),n)},to_sheet:e,from_sheet:function(e){for(var t,n=["{\\rtf1\\ansi"],a=sp(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=tp({r:o,c:r});(t=s?(e[o]||[])[r]:e[i])&&(null!=t.v||t.f&&!t.F)&&(n.push(" "+(t.w||(rp(t),t.w))),n.push("\\cell"))}n.push("\\pard\\intbl\\row")}return n.join("")+"}"}}}();function qh(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 Yh=6;function Zh(e){return Math.floor((e+Math.round(128/Yh)/256)*Yh)}function Xh(e){return Math.floor((e-5)/Yh*100+.5)/100}function Jh(e){return Math.round((e*Yh+5)/Yh*256)/256}function Qh(e){e.width?(e.wpx=Zh(e.width),e.wch=Xh(e.wpx),e.MDW=Yh):e.wpx?(e.wch=Xh(e.wpx),e.width=Jh(e.wch),e.MDW=Yh):"number"==typeof e.wch&&(e.width=Jh(e.wch),e.wpx=Zh(e.width),e.MDW=Yh),e.customWidth&&delete e.customWidth}function ef(e){return 96*e/96}function tf(e){return 96*e/96}function nf(e,t){var n,a=[wd,Bd("styleSheet",null,{xmlns:tu[0],"xmlns:vt":Jd})];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]=Bd("numFmt",null,{numFmtId:a,formatCode:Sd(e[a])}))})),1===t.length?"":(t[t.length]="",t[0]=Bd("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]=Bd("cellXfs",null),e.forEach((function(e){t[t.length]=Bd("xf",null,e)})),t[t.length]="",2===t.length?"":(t[0]=Bd("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 af(e,t,n){n||(n=Hu(6+4*t.length)),n.write_shift(2,e),up(t,n);var a=n.length>n.l?n.slice(0,n.l):n;return null==n.l&&(n.l=n.length),a}function sf(e,t){t||(t=Hu(153)),t.write_shift(2,20*e.sz),function(e,t){t||(t=Hu(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),Lp(e.color,t);var a=0;return"major"==e.scheme&&(a=1),"minor"==e.scheme&&(a=2),t.write_shift(1,a),up(e.name,t),t.length>t.l?t.slice(0,t.l):t}var of,rf=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],lf=zu;function cf(e,t){t||(t=Hu(84)),of||(of=ed(rf));var n=of[e.patternType];null==n&&(n=40),t.write_shift(4,n);var a=0;if(40!=n)for(Lp({auto:1},t),Lp({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 mf(e,t,n){n||(n=Hu(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 df(e,t){return t||(t=Hu(10)),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(4,0),t}var uf=zu;function pf(e){var t;Vu(e,613,mp(1)),Vu(e,46,(t||(t=Hu(51)),t.write_shift(1,0),df(0,t),df(0,t),df(0,t),df(0,t),df(0,t),t.length>t.l?t.slice(0,t.l):t)),Vu(e,614)}function hf(e){Vu(e,619,mp(1)),Vu(e,48,function(e,t){return t||(t=Hu(52)),t.write_shift(4,e.xfId),t.write_shift(2,1),t.write_shift(1,+e.builtinId),t.write_shift(1,0),Tp(e.name||"",t),t.length>t.l?t.slice(0,t.l):t}({xfId:0,builtinId:0,name:"Normal"})),Vu(e,620)}function ff(e){Vu(e,508,function(e,t,n){var a=Hu(2052);return a.write_shift(4,e),Tp(t,a),Tp(n,a),a.length>a.l?a.slice(0,a.l):a}(0,"TableStyleMedium9","PivotStyleMedium4")),Vu(e,509)}function gf(e,t){var n=Gu();return Vu(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&&(Vu(e,615,mp(n)),[[5,8],[23,26],[41,44],[50,392]].forEach((function(n){for(var a=n[0];a<=n[1];++a)null!=t[a]&&Vu(e,44,af(a,t[a]))})),Vu(e,616))}}(n,e.SSF),function(e){Vu(e,611,mp(1)),Vu(e,43,sf({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Vu(e,612)}(n),function(e){Vu(e,603,mp(2)),Vu(e,45,cf({patternType:"none"})),Vu(e,45,cf({patternType:"gray125"})),Vu(e,604)}(n),pf(n),function(e){Vu(e,626,mp(1)),Vu(e,47,mf({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Vu(e,627)}(n),function(e,t){Vu(e,617,mp(t.length)),t.forEach((function(t){Vu(e,47,mf(t,0))})),Vu(e,618)}(n,t.cellXfs),hf(n),function(e){Vu(e,505,mp(0)),Vu(e,506)}(n),ff(n),Vu(n,279),n.end()}function yf(e,t){if(t&&t.themeXLSX)return t.themeXLSX;if(e&&"string"==typeof e.raw)return e.raw;var n=[wd];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 vf(){var e=Gu();return Vu(e,332),Vu(e,334,mp(1)),Vu(e,335,function(e){var t=Hu(12+2*e.name.length);return t.write_shift(4,e.flags),t.write_shift(4,e.version),up(e.name,t),t.slice(0,t.l)}({name:"XLDAPR",version:12e4,flags:3496657072})),Vu(e,336),Vu(e,339,function(e,t){var n=Hu(8+2*t.length);return n.write_shift(4,e),up(t,n),n.slice(0,n.l)}(1,"XLDAPR")),Vu(e,52),Vu(e,35,mp(514)),Vu(e,4096,mp(0)),Vu(e,4097,ph(1)),Vu(e,36),Vu(e,53),Vu(e,340),Vu(e,337,function(e,t){var n=Hu(8);return n.write_shift(4,e),n.write_shift(4,t?1:0),n}(1,!0)),Vu(e,51,function(e){var t=Hu(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 wf=1024;function kf(e,t){for(var n=[21600,21600],a=["m0,0l0",n[1],n[0],n[1],n[0],"0xe"].join(","),s=[Bd("xml",null,{"xmlns:v":iu,"xmlns:o":nu,"xmlns:x":au,"xmlns:mv":ru}).replace(/\/>/,">"),Bd("o:shapelayout",Bd("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Bd("v:shapetype",[Bd("v:stroke",null,{joinstyle:"miter"}),Bd("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:n.join(","),path:a})];wf<1e3*e;)wf+=1e3;return t.forEach((function(e){var t=ep(e[0]),n={color2:"#BEFF82",type:"gradient"};"gradient"==n.type&&(n.angle="-180");var a="gradient"==n.type?Bd("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=Bd("v:fill",a,n);++wf,s=s.concat(["",o,Bd("v:shadow",null,{on:"t",obscured:"t"}),Bd("v:path",null,{"o:connecttype":"none"}),'','',"","",Md("x:Anchor",[t.c+1,0,t.r+1,0,t.c+3,20,t.r+5,20].join(",")),Md("x:AutoFill","False"),Md("x:Row",String(t.r)),Md("x:Column",String(t.c)),e[1].hidden?"":"","",""])})),s.push(""),s.join("")}function _f(e){var t=[wd,Bd("comments",null,{xmlns:tu[0]})],n=[];return t.push(""),e.forEach((function(e){e[1].forEach((function(e){var a=Sd(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(Sd(e.a))),s.push(e.t||"")})),t.push(''),s.length<=1)t.push(Md("t",Sd(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 xf(e,t,n){var a=[wd,Bd("ThreadedComments",null,{xmlns:$d}).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(Bd("threadedComment",Md("text",o.t||""),i))}else delete o.ID}))})),a.push(""),a.join("")}var Tf=dp;function Sf(e){var t=Gu(),n=[];return Vu(t,628),Vu(t,630),e.forEach((function(e){e[1].forEach((function(e){n.indexOf(e.a)>-1||(n.push(e.a.slice(0,54)),Vu(t,632,function(e){return up(e.slice(0,54))}(e.a)))}))})),Vu(t,631),Vu(t,633),e.forEach((function(e){e[1].forEach((function(a){a.iauthor=n.indexOf(a.a);var s={s:ep(e[0]),e:ep(e[0])};Vu(t,635,function(e,t){return null==t&&(t=Hu(36)),t.write_shift(4,e[1].iauthor),Np(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&&Vu(t,637,gp(a)),Vu(t,636),delete a.iauthor}))})),Vu(t,634),Vu(t,629),t.end()}var Cf=["xlsb","xlsm","xlam","biff8","xla"];var Ef=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?"":"$")+Qu(l)+(r?"":"$")+Xu(i)}return function(a,s){return t=s,a.replace(e,n)}}(),Af=/(^|[^._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,Df=function(){return function(e,t){return e.replace(Af,(function(e,n,a,s,o,r){var i=Ju(s)-(a?0:t.c),l=Zu(r)-(o?0:t.r);return n+"R"+(0==l?"":o?l+1:"["+l+"]")+"C"+(0==i?"":a?i+1:"["+i+"]")}))}}();function jf(e,t){return e.replace(Af,(function(e,n,a,s,o,r){return n+("$"==a?a+s:Qu(Ju(s)+t.c))+("$"==o?o+r:Xu(Zu(r)+t.r))}))}function Of(e){e.l+=1}function Nf(e,t){var n=e.read_shift(1==t?1:2);return[16383&n,n>>14&1,n>>15&1]}function Pf(e,t,n){var a=2;if(n){if(n.biff>=2&&n.biff<=5)return If(e);12==n.biff&&(a=4)}var s=e.read_shift(a),o=e.read_shift(a),r=Nf(e,2),i=Nf(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 If(e){var t=Nf(e,2),n=Nf(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 Lf(e,t,n){if(n&&n.biff>=2&&n.biff<=5)return function(e){var t=Nf(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=Nf(e,2);return{r:a,c:s[0],cRel:s[1],rRel:s[2]}}function Rf(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 Ff(e){var t=1&e[e.l+1];return e.l+=4,[t,1]}function Mf(e){return[e.read_shift(1),e.read_shift(1)]}function Wf(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]=mh(e,1)?"TRUE":"FALSE",12!=t&&(e.l+=7);break;case 37:case 16:n[1]=Up[e[e.l]],e.l+=12==t?4:8;break;case 0:e.l+=8;break;case 1:n[1]=Pp(e);break;case 2:n[1]=bh(e,0,{biff:t>0&&t<8?2:t});break;default:throw new Error("Bad SerAr: "+n[0])}return n}function Bf(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?Op:Sh)(e,8));return s}function Uf(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]=Wf(e,n.biff);return r}function zf(e,t,n){return e.l+=2,[Rf(e)]}function Hf(e){return e.l+=6,[]}function Gf(e){return e.l+=2,[uh(e),1&e.read_shift(2)]}var Vf=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];var Kf={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:zu},3:{n:"PtgAdd",f:Of},4:{n:"PtgSub",f:Of},5:{n:"PtgMul",f:Of},6:{n:"PtgDiv",f:Of},7:{n:"PtgPower",f:Of},8:{n:"PtgConcat",f:Of},9:{n:"PtgLt",f:Of},10:{n:"PtgLe",f:Of},11:{n:"PtgEq",f:Of},12:{n:"PtgGe",f:Of},13:{n:"PtgGt",f:Of},14:{n:"PtgNe",f:Of},15:{n:"PtgIsect",f:Of},16:{n:"PtgUnion",f:Of},17:{n:"PtgRange",f:Of},18:{n:"PtgUplus",f:Of},19:{n:"PtgUminus",f:Of},20:{n:"PtgPercent",f:Of},21:{n:"PtgParen",f:Of},22:{n:"PtgMissArg",f:Of},23:{n:"PtgStr",f:function(e,t,n){return e.l++,fh(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++,Up[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++,Pp(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[dg[s],mg[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]?mg:cg)[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,Lf(e,0,n)]}},37:{n:"PtgArea",f:function(e,t,n){return[(96&e[e.l++])>>5,Pf(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:zu},40:{n:"PtgMemNoMem",f:zu},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 If(e);var a=e.read_shift(12==n.biff?4:2),s=e.read_shift(12==n.biff?4:2),o=Nf(e,2),r=Nf(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,Lf(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,Pf(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:{}},$f={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},qf={1:{n:"PtgElfLel",f:Gf},2:{n:"PtgElfRw",f:zf},3:{n:"PtgElfCol",f:zf},6:{n:"PtgElfRwV",f:zf},7:{n:"PtgElfColV",f:zf},10:{n:"PtgElfRadical",f:zf},11:{n:"PtgElfRadicalS",f:Hf},13:{n:"PtgElfColS",f:Hf},15:{n:"PtgElfColSV",f:Hf},16:{n:"PtgElfRadicalLel",f:Gf},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:Vf[n>>2&31],idx:a,c:s,C:o}}},29:{n:"PtgSxName",f:function(e){return e.l+=2,[e.read_shift(4)]}},255:{}},Yf={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:Ff},33:{n:"PtgAttrBaxcel",f:Ff},64:{n:"PtgAttrSpace",f:function(e){return e.read_shift(2),Mf(e)}},65:{n:"PtgAttrSpaceSemi",f:function(e){return e.read_shift(2),Mf(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 Zf(e,t,n,a){if(a.biff<8)return zu(e,t);for(var s=e.l+t,o=[],r=0;r!==n.length;++r)switch(n[r][0]){case"PtgArray":n[r][1]=Uf(e,0,a),o.push(n[r][1]);break;case"PtgMemArea":n[r][2]=Bf(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(zu(e,t)),o}function Xf(e,t,n){for(var a,s,o=e.l+t,r=[];o!=e.l;)t=o-e.l,s=e[e.l],a=Kf[s]||Kf[$f[s]],24!==s&&25!==s||(a=(24===s?qf:Yf)[e[e.l+1]]),a&&a.f?r.push([a.n,a.f(e,t,n)]):zu(e,t);return r}function Jf(e){for(var t=[],n=0;n=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function eg(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 tg(e,t,n){var a=eg(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 ng(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=hd(" ",e[0][f][1][1]);break;case 1:g=hd("\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+Qf[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=Ku(b[1][1],m,s),d.push(qu(i,c));break;case"PtgRefN":i=n?Ku(b[1][1],n,s):b[1][1],d.push(qu(i,c));break;case"PtgRef3d":u=b[1][1],i=Ku(b[1][2],m,s);h=tg(a,u,s);d.push(h+"!"+qu(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=$u(b[1][1],n?{s:n}:m,s),d.push(Yu(l,s));break;case"PtgArea":l=$u(b[1][1],m,s),d.push(Yu(l,s));break;case"PtgArea3d":u=b[1][1],l=b[1][2],h=tg(a,u,s),d.push(h+"!"+Yu(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=(eg(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=hd(" ",e[0][f][1][1])+D;break;case 3:D=hd("\r",e[0][f][1][1])+D;break;case 4:j=hd(" ",e[0][f][1][1])+j;break;case 5:j=hd("\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[tp(i)]){var N=a.sharedf[tp(i)];d.push(ng(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(ng(r[1],m,O,a,s)),P=!0;break}P||d.push(b[1])}break;case"PtgArray":d.push("{"+Jf(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=hd(" ",b[1][1]);break;case 5:I=!1;case 1:g=hd("\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 ag(e,t,n,a,s){var o=xh(t,n,s),r=function(e){if(null==e){var t=Hu(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 Ip("number"==typeof e?e:0)}(e.v),i=Hu(6);i.write_shift(2,33),i.write_shift(4,0);for(var l=Hu(e.bf.length),c=0;c0?Zf(e,o,s,n):null]}var og=sg,rg=sg,ig=sg,lg=sg,cg={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"},mg={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"},dg={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 ug(e){return e.replace(/\./,"!")}var pg="undefined"!==typeof Map;function hg(e,t,n){var a=0,s=e.length;if(n){if(pg?n.has(t):Object.prototype.hasOwnProperty.call(n,t))for(var o=pg?n.get(t):n[t];a-1?(n.width=Jh(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 gg(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 yg(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]){Hm(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 vg(e,t,n){if(e&&e["!ref"]){var a=sp(e["!ref"]);if(a.e.c32767)throw new Error("Text length must not exceed 32767 characters");if(a&&a.bookSST){i=Md("v",""+hg(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=Bd("f",Sd(e.f),m)+(null!=e.v?i:"")}return e.l&&n["!links"].push([t,e.l]),e.D&&(l.cm=1),Bd("c",i,l)}function _g(e,t,n,a){var s,o=[wd,Bd("worksheet",null,{xmlns:tu[0],"xmlns:r":Xd})],r=n.SheetNames[e],i="",l=n.Sheets[r];null==l&&(l={});var c=l["!ref"]||"A1",m=sp(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=ap(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=Ld(Sd(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||"")+Bd("outlinePr",null,c)}(o||i)&&(s[s.length]=Bd("sheetPr",i,r))}(l,n,e,t,o),o[o.length]=Bd("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"),Bd("sheetViews",Bd("sheetView",null,s),{})}(0,0,0,n),t.sheetFormat&&(o[o.length]=Bd("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]=Bd("col",null,fg(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=sp(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]=Qu(p);for(u=l.s.r;u<=l.e.r;++u){for(i=[],m=Xu(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=kg(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=ef(o.hpx):o.hpt&&(y=o.hpt),y>-1&&(g.ht=y,g.customHeight=1),o.level&&(g.outlineLevel=o.level)),r[r.length]=Bd("row",i.join(""),g))}if(h)for(;u-1&&(g.ht=y,g.customHeight=1),o.level&&(g.outlineLevel=o.level),r[r.length]=Bd("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 bg.forEach((function(n){null!=e[n]&&e[n]&&(t[n]="1")})),wg.forEach((function(n){null==e[n]||e[n]||(t[n]="0")})),e.password&&(t.password=Kh(e.password).toString(16).toUpperCase()),Bd("sheetProtection",null,t)}(l["!protect"])),null!=l["!autofilter"]&&(o[o.length]=function(e,t,n,a){var s="string"==typeof e.ref?e.ref:ap(e.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var o=n.Workbook.Names,r=np(s);r.s.r==r.e.r&&(r.e.r=np(t["!ref"]).e.r,s=ap(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=qp(a,-1,Sd(e[1].Target).replace(/#.*$/,""),Vp.HLINK),u["r:id"]="rId"+f),(h=e[1].Target.indexOf("#"))>-1&&(u.location=Sd(e[1].Target.slice(h+1))),e[1].Tooltip&&(u.tooltip=Sd(e[1].Tooltip)),o[o.length]=Bd("hyperlink",null,u))})),o[o.length]=""),delete l["!links"],null!=l["!margins"]&&(o[o.length]=(gg(p=l["!margins"]),Bd("pageMargins",null,p))),t&&!t.ignoreEC&&void 0!=t.ignoreEC||(o[o.length]=Md("ignoredErrors",Bd("ignoredError",null,{numberStoredAsText:1,sqref:c}))),d.length>0&&(f=qp(a,-1,"../drawings/drawing"+(e+1)+".xml",Vp.DRAW),o[o.length]=Bd("drawing",null,{"r:id":"rId"+f}),l["!drawing"]=d),l["!comments"].length>0&&(f=qp(a,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Vp.VML),o[o.length]=Bd("legacyDrawing",null,{"r:id":"rId"+f}),l["!legacy"]=f),o.length>1&&(o[o.length]="",o[1]=o[1].replace("/>",">")),o.join("")}function xg(e,t,n,a){var s=function(e,t,n){var a=Hu(145),s=(n["!rows"]||[])[e]||{};a.write_shift(4,e),a.write_shift(4,0);var o=320;s.hpx?o=20*ef(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])&&Vu(e,0,s)}var Tg=Op,Sg=Np;function Cg(e){return[bp(e),Pp(e),"n"]}var Eg=Op,Ag=Np;var Dg=["left","right","top","bottom","header","footer"];function jg(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=pd(t)).z=t.z||mm[14],t.v=ad(dd(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=yg(s.cellXfs,t,s),t.l&&o["!links"].push([tp(l),t.l]),t.c&&o["!comments"].push([tp(l),t.c]),t.t){case"s":case"str":return s.bookSST?(i=hg(s.Strings,t.v,s.revStrings),l.t="s",l.v=i,r?Vu(e,18,function(e,t,n){return null==n&&(n=Hu(8)),wp(t,n),n.write_shift(4,t.v),n}(0,l)):Vu(e,7,function(e,t,n){return null==n&&(n=Hu(12)),vp(t,n),n.write_shift(4,t.v),n}(0,l))):(l.t="str",r?Vu(e,17,function(e,t,n){return null==n&&(n=Hu(8+4*e.v.length)),wp(t,n),up(e.v,n),n.length>n.l?n.slice(0,n.l):n}(t,l)):Vu(e,6,function(e,t,n){return null==n&&(n=Hu(12+4*e.v.length)),vp(t,n),up(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?Vu(e,13,function(e,t,n){return null==n&&(n=Hu(8)),wp(t,n),Dp(e.v,n),n}(t,l)):Vu(e,2,function(e,t,n){return null==n&&(n=Hu(12)),vp(t,n),Dp(e.v,n),n}(t,l)):r?Vu(e,16,function(e,t,n){return null==n&&(n=Hu(12)),wp(t,n),Ip(e.v,n),n}(t,l)):Vu(e,5,function(e,t,n){return null==n&&(n=Hu(16)),vp(t,n),Ip(e.v,n),n}(t,l)),!0;case"b":return l.t="b",r?Vu(e,15,function(e,t,n){return null==n&&(n=Hu(5)),wp(t,n),n.write_shift(1,e.v?1:0),n}(t,l)):Vu(e,4,function(e,t,n){return null==n&&(n=Hu(9)),vp(t,n),n.write_shift(1,e.v?1:0),n}(t,l)),!0;case"e":return l.t="e",r?Vu(e,14,function(e,t,n){return null==n&&(n=Hu(8)),wp(t,n),n.write_shift(1,e.v),n.write_shift(2,0),n.write_shift(1,0),n}(t,l)):Vu(e,3,function(e,t,n){return null==n&&(n=Hu(9)),vp(t,n),n.write_shift(1,e.v),n}(t,l)),!0}return r?Vu(e,12,function(e,t,n){return null==n&&(n=Hu(4)),wp(t,n)}(0,l)):Vu(e,1,function(e,t,n){return null==n&&(n=Hu(8)),vp(t,n)}(0,l)),!0}function Og(e,t){var n,a;t&&t["!merges"]&&(Vu(e,177,(n=t["!merges"].length,null==a&&(a=Hu(4)),a.write_shift(4,n),a)),t["!merges"].forEach((function(t){Vu(e,176,Ag(t))})),Vu(e,178))}function Ng(e,t){t&&t["!cols"]&&(Vu(e,390),t["!cols"].forEach((function(t,n){t&&Vu(e,60,function(e,t,n){null==n&&(n=Hu(18));var a=fg(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))})),Vu(e,391))}function Pg(e,t){t&&t["!ref"]&&(Vu(e,648),Vu(e,649,function(e){var t=Hu(24);return t.write_shift(4,4),t.write_shift(4,1),Np(e,t),t}(sp(t["!ref"]))),Vu(e,650))}function Ig(e,t,n){t["!links"].forEach((function(t){if(t[1].Target){var a=qp(n,-1,t[1].Target.replace(/#.*$/,""),Vp.HLINK);Vu(e,494,function(e,t){var n=Hu(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));Np({s:ep(e[0]),e:ep(e[0])},n),Ep("rId"+t,n);var a=e[1].Target.indexOf("#");return up((-1==a?"":e[1].Target.slice(a+1))||"",n),up(e[1].Tooltip||"",n),up("",n),n.slice(0,n.l)}(t,a))}})),delete t["!links"]}function Lg(e,t,n){Vu(e,133),Vu(e,137,function(e,t,n){null==n&&(n=Hu(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)),Vu(e,138),Vu(e,134)}function Rg(e,t){var n,a;t["!protect"]&&Vu(e,535,(n=t["!protect"],null==a&&(a=Hu(66)),a.write_shift(2,n.password?Kh(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 Fg(e,t,n,a){var s=Gu(),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=sp(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"]=[],Vu(s,129),(n.vbaraw||r["!outline"])&&Vu(s,147,function(e,t,n){null==n&&(n=Hu(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 Lp({auto:1},n),n.write_shift(-4,-1),n.write_shift(-4,-1),_p(e,n),n.slice(0,n.l)}(i,r["!outline"])),Vu(s,148,Sg(m)),Lg(s,0,n.Workbook),Ng(s,r),function(e,t,n,a){var s,o=sp(t["!ref"]||"A1"),r="",i=[];Vu(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=Xu(m),xg(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]=Qu(u)),s=i[u]+r;var p=l?(t[m]||[])[u]:t[s];d=!!p&&jg(e,p,m,u,a,t,d)}}Vu(e,146)}(s,r,0,t),Rg(s,r),function(e,t,n,a){if(t["!autofilter"]){var s=t["!autofilter"],o="string"===typeof s.ref?s.ref:ap(s.ref);n.Workbook||(n.Workbook={Sheets:[]}),n.Workbook.Names||(n.Workbook.Names=[]);var r=n.Workbook.Names,i=np(o);i.s.r==i.e.r&&(i.e.r=np(t["!ref"]).e.r,o=ap(i));for(var l=0;l0){var s=qp(a,-1,"../drawings/vmlDrawing"+(n+1)+".vml",Vp.VML);Vu(e,551,Ep("rId"+s)),t["!legacy"]=s}}(s,r,e,a),Vu(s,130),s.end()}var Mg=[["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 Wg="][*?/\\".split("");function Bg(e,t){if(e.length>31){if(t)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var n=!0;return Wg.forEach((function(a){if(-1!=e.indexOf(a)){if(!t)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");n=!1}})),n}function Ug(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){Bg(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&&(Mg.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]=Bd("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:Sd(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]=Bd("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]=Bd("definedName",Sd(e.Ref),n))})),t[t.length]=""),t.length>2&&(t[t.length]="",t[1]=t[1].replace("/>",">")),t.join("")}function Hg(e,t){if(t.Workbook&&t.Workbook.Sheets){for(var n,a,s=t.Workbook.Sheets,o=0,r=-1,i=-1;or))Vu(e,135),Vu(e,158,(n=r,a||(a=Hu(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)),Vu(e,136)}}function Gg(e,t){var n=Gu();return Vu(n,131),Vu(n,128,function(e,t){t||(t=Hu(127));for(var n=0;4!=n;++n)t.write_shift(4,0);return up("SheetJS",t),up(jc.version,t),up(jc.version,t),up("7262",t),t.length>t.l?t.slice(0,t.l):t}()),Vu(n,153,function(e,t){t||(t=Hu(72));var n=0;return e&&e.filterPrivacy&&(n|=8),t.write_shift(4,n),t.write_shift(4,0),_p(e&&e.CodeName||"ThisWorkbook",t),t.slice(0,t.l)}(e.Workbook&&e.Workbook.WBProps||null)),Hg(n,e),function(e,t){Vu(e,143);for(var n=0;n!=t.SheetNames.length;++n){Vu(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=Hu(127)),s.write_shift(4,a.Hidden),s.write_shift(4,a.iTabID),Ep(a.strRelID,s),up(a.name.slice(0,31),s),s.length>s.l?s.slice(0,s.l):s))}var a,s;Vu(e,144)}(n,e),Vu(n,132),n.end()}function Vg(e,t,n,a,s){return(".bin"===t.slice(-4)?Fg:_g)(e,n,a,s)}function Kg(e,t,n){return(".bin"===t.slice(-4)?Sf:_f)(e,n)}function $g(e,t){var n=[];return e.Props&&n.push(function(e,t){var n=[];return Jm(sh).map((function(e){for(var t=0;t'+s.join("")+""+a+">"}(e.Props,e.Custprops)),n.join("")}function qg(e){return Bd("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+Df(e.Ref,{r:0,c:0})})}function Yg(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"]="="+Sd(Df(e.f,r))),e.F&&e.F.slice(0,t.length)==t){var l=ep(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"]=Sd(e.l.Target),e.l.Tooltip&&(i["x:HRefScreenTip"]=Sd(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=Up[e.v];break;case"d":d="DateTime",u=new Date(e.v).toISOString(),null==e.z&&(e.z=e.z||mm[14]);break;case"s":d="String",u=((e.v||"")+"").replace(xd,(function(e){return _d[e]})).replace(Ed,(function(e){return""+e.charCodeAt(0).toString(16).toUpperCase()+";"}))}var p=yg(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=Bd("ss:Data",(e.t||"").replace(/(\r\n|[\r\n])/g,"
"),{xmlns:"http://www.w3.org/TR/REC-html40"});return Bd("Comment",t,{"ss:Author":e.a})})).join("")),Bd("Cell",f,i)}function Zg(e,t){var n='"}function Xg(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=sp(e["!ref"]),o=e["!merges"]||[],r=0,i=[];e["!cols"]&&e["!cols"].forEach((function(e,t){Qh(e);var n=!!e.width,a=fg(t,e),s={"ss:Index":t+1};n&&(s["ss:Width"]=Zh(a.width)),e.hidden&&(s["ss:Hidden"]="1"),i.push(Bd("Column",null,s))}));for(var l=Array.isArray(e),c=s.s.r;c<=s.e.r;++c){for(var m=[Zg(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(Bd("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&s.push(Bd("Footer",null,{"x:Margin":e["!margins"].footer})),s.push(Bd("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(Bd("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(Md("ProtectContents","True")),e["!protect"].objects&&s.push(Md("ProtectObjects","True")),e["!protect"].scenarios&&s.push(Md("ProtectScenarios","True")),null==e["!protect"].selectLockedCells||e["!protect"].selectLockedCells?null==e["!protect"].selectUnlockedCells||e["!protect"].selectUnlockedCells||s.push(Md("EnableSelection","UnlockedCells")):s.push(Md("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?"":Bd("WorksheetOptions",s.join(""),{xmlns:au})}(o,0,e,n)),a.join("")}function Jg(e,t){t||(t={}),e.SSF||(e.SSF=pd(mm)),e.SSF&&(Vm(),Gm(e.SSF),t.revssf=td(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF,t.cellXfs=[],yg(t.cellXfs,{},{revssf:{General:0}}));var n=[];n.push($g(e,t)),n.push(""),n.push(""),n.push("");for(var a=0;a'];return t.cellXfs.forEach((function(e,t){var a=[];a.push(Bd("NumberFormat",null,{"ss:Format":Sd(mm[e.numFmtId])}));var s={"ss:ID":"s"+(21+t)};n.push(Bd("Style",a.join(""),s))})),Bd("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||th.indexOf(o[r][0])>-1||null!=o[r][1]&&c.push(o[r]);s.length&&qm.utils.cfb_add(t,"/\x05SummaryInformation",ch(s,Qg,l,Mp)),(a.length||c.length)&&qm.utils.cfb_add(t,"/\x05DocumentSummaryInformation",ch(a,ey,i,Fp,c.length?c:null,ty))}(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)&&qm.utils.cfb_add(e,s,t.FileIndex[a].content)}}))}(a,qm.read(e.vbaraw,{type:"string"==typeof e.vbaraw?"binary":"buffer"})),a}var ay={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[yp(e)]}},2:{f:function(e){return[yp(e),Ap(e),"n"]}},3:{f:function(e){return[yp(e),e.read_shift(1),"e"]}},4:{f:function(e){return[yp(e),e.read_shift(1),"b"]}},5:{f:function(e){return[yp(e),Pp(e),"n"]}},6:{f:function(e){return[yp(e),dp(e),"str"]}},7:{f:function(e){return[yp(e),e.read_shift(4),"s"]}},8:{f:function(e,t,n){var a=e.l+t,s=yp(e);s.r=n["!row"];var o=[s,dp(e),"str"];if(n.cellFormula){e.l+=2;var r=rg(e,a-e.l,n);o[3]=ng(r,0,s,n.supbooks,n)}else e.l=a;return o}},9:{f:function(e,t,n){var a=e.l+t,s=yp(e);s.r=n["!row"];var o=[s,Pp(e),"n"];if(n.cellFormula){e.l+=2;var r=rg(e,a-e.l,n);o[3]=ng(r,0,s,n.supbooks,n)}else e.l=a;return o}},10:{f:function(e,t,n){var a=e.l+t,s=yp(e);s.r=n["!row"];var o=[s,e.read_shift(1),"b"];if(n.cellFormula){e.l+=2;var r=rg(e,a-e.l,n);o[3]=ng(r,0,s,n.supbooks,n)}else e.l=a;return o}},11:{f:function(e,t,n){var a=e.l+t,s=yp(e);s.r=n["!row"];var o=[s,e.read_shift(1),"e"];if(n.cellFormula){e.l+=2;var r=rg(e,a-e.l,n);o[3]=ng(r,0,s,n.supbooks,n)}else e.l=a;return o}},12:{f:function(e){return[bp(e)]}},13:{f:function(e){return[bp(e),Ap(e),"n"]}},14:{f:function(e){return[bp(e),e.read_shift(1),"e"]}},15:{f:function(e){return[bp(e),e.read_shift(1),"b"]}},16:{f:Cg},17:{f:function(e){return[bp(e),dp(e),"str"]}},18:{f:function(e){return[bp(e),e.read_shift(4),"s"]}},19:{f:hp},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=Sp(e),r=ig(e,0,n),i=xp(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=Bp[a];l&&(t.rgb=qh(l));break;case 2:t.rgb=qh([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=dp(e),a}},44:{f:function(e,t){return[e.read_shift(2),dp(e)]}},45:{f:lf},46:{f:uf},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:Ih},62:{f:function(e){return[yp(e),hp(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=tp(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:zu,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=kp(e,t-19),n}},148:{f:Tg,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?dp(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=Cp(e,t-8),n.name=dp(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:Op},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:Eg},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:dp(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:Cp},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Oh},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=jp(e),o=e.read_shift(1),r=[s];if(r[2]=o,n.cellFormula){var i=og(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=[Op(e,16)];if(n.cellFormula){var o=lg(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 Dg.forEach((function(n){t[n]=Pp(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=Op(e,16),s=xp(e),o=dp(e),r=dp(e),i=dp(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:Cp},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:Tf},633:{T:1},634:{T:-1},635:{T:1,f:function(e){var t={};t.iauthor=e.read_shift(4);var n=Op(e,16);return t.rfx=n.s,t.ref=tp(n.s),e.l+=16,t}},636:{T:-1},637:{f:fp},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:dp(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 sy(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&&Du(n)&&e.push(n)}}function oy(e,t,n){return e||(e=Hu(7)),e.write_shift(2,t),e.write_shift(2,n),e.write_shift(2,0),e.write_shift(1,0),e}function ry(e,t,n,a){if(null!=t.v)switch(t.t){case"d":case"n":var s="d"==t.t?ad(dd(t.v)):t.v;return void(s==(0|s)&&s>=0&&s<65536?sy(e,2,function(e,t,n){var a=Hu(9);return oy(a,e,t),a.write_shift(2,n),a}(n,a,s)):sy(e,3,function(e,t,n){var a=Hu(15);return oy(a,e,t),a.write_shift(8,n,"f"),a}(n,a,s)));case"b":case"e":return void sy(e,5,function(e,t,n,a){var s=Hu(9);return oy(s,e,t),hh(n,a||"b",s),s}(n,a,t.v,t.t));case"s":case"str":return void sy(e,4,function(e,t,n){var a=Hu(8+2*n.length);return oy(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=ap(r)}for(var c=r.s.r;c<=r.e.r;++c){i=Xu(c);for(var m=r.s.c;m<=r.e.c;++m){c===r.s.r&&(l[m]=Qu(m)),s=l[m]+i;var d=o?(t[c]||[])[m]:t[s];d&&ry(e,d,c,m)}}}(a,e.Sheets[e.SheetNames[s]],0,n),sy(a,10),a.end()}function ly(e,t,n){sy(e,49,function(e,t){var n=e.name||"Arial",a=t&&5==t.biff,s=Hu(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 cy(e,t){if(t){var n=0;t.forEach((function(t,a){++n<=256&&t&&sy(e,125,function(e,t){var n=Hu(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}(fg(a,t),a))}))}}function my(e,t,n,a,s){var o=16+yg(s.cellXfs,t,s);if(null!=t.v||t.bf)if(t.bf)sy(e,6,ag(t,n,a,0,o));else switch(t.t){case"d":case"n":sy(e,515,function(e,t,n,a){var s=Hu(14);return xh(e,t,a,s),Ip(n,s),s}(n,a,"d"==t.t?ad(dd(t.v)):t.v,o));break;case"b":case"e":sy(e,517,function(e,t,n,a,s,o){var r=Hu(8);return xh(e,t,a,r),hh(n,o,r),r}(n,a,t.v,o,0,t.t));break;case"s":case"str":if(s.bookSST)sy(e,253,function(e,t,n,a){var s=Hu(10);return xh(e,t,a,s),s.write_shift(4,n),s}(n,a,hg(s.Strings,t.v,s.revStrings),o));else sy(e,516,function(e,t,n,a,s){var o=!s||8==s.biff,r=Hu(+o+8+(1+o)*n.length);return xh(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:sy(e,513,xh(n,a,o))}else sy(e,513,xh(n,a,o))}function dy(e,t,n){var a,s=Gu(),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=sp(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)}sy(s,2057,Eh(0,16,t)),sy(s,13,ph(1)),sy(s,12,ph(100)),sy(s,15,dh(!0)),sy(s,17,dh(!1)),sy(s,16,Ip(.001)),sy(s,95,dh(!0)),sy(s,42,dh(!1)),sy(s,43,dh(!1)),sy(s,130,ph(1)),sy(s,128,function(e){var t=Hu(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])),sy(s,131,dh(!1)),sy(s,132,dh(!1)),m&&cy(s,r["!cols"]),sy(s,512,function(e,t){var n=8!=t.biff&&t.biff?2:4,a=Hu(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=Xu(f);for(var g=p.s.c;g<=p.e.c;++g){f===p.s.r&&(u[g]=Qu(g)),a=u[g]+d;var y=c?(r[f]||[])[g]:r[a];y&&(my(s,y,f,g,t),m&&y.l&&r["!links"].push([a,y.l]))}}var v=l.CodeName||l.name||o;return m&&sy(s,574,function(e){var t=Hu(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&&sy(s,229,function(e){var t=Hu(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=pd(mm)),e&&e.SSF&&(Vm(),Gm(e.SSF),n.revssf=td(e.SSF),n.revssf[e.SSF[65535]]=0,n.ssf=e.SSF),n.Strings=[],n.Strings.Count=0,n.Strings.Unique=0,Hy(n),n.cellXfs=[],yg(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(Bd("td",u,p))}}return""+o.join("")+"
"}var fy='SheetJS Table Export',gy="";function yy(e,t,n){return[].join("")+""}function vy(e,t){var n=t||{},a=null!=n.header?n.header:fy,s=null!=n.footer?n.footer:gy,o=[a],r=np(e["!ref"]);n.dense=Array.isArray(e),o.push(yy(0,0,n));for(var i=r.s.r;i<=r.e.r;++i)o.push(hy(e,r,i,n));return o.push("
"+s),o.join("")}function by(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?ep(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=np(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(fd(x))?isNaN(yd(x).getDate())||(C={t:"d",v:dd(x)},a.cellDates||(C={t:"n",v:ad(C.v)}),C.z=a.dateNF||mm[14]):C={t:"n",v:fd(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"]=ap((c.e.r=i.length-h+f-1+s,c))),e}function wy(e,t){return by((t||{}).dense?[]:{},e,t)}function ky(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 _y=function(){var e=["",'',"",'',"",'',"",""].join(""),t=""+e+"";return function(){return wd+t}}(),xy=function(){var e=" \n",t=function(t,n,a){var s=[];s.push(' \n');var o=0,r=0,i=np(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=tp({r:o,c:r}),y=m?(t[o]||[])[r]:t[g];if(y&&y.f&&(h["table:formula"]=Sd(("of:="+y.f.replace(Af,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),y.F&&y.F.slice(0,g.length)==g)){var v=np(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||dd(y.v).toISOString(),h["office:value-type"]="date",h["office:date-value"]=dd(y.v).toISOString(),h["table:style-name"]="ce1";break;default:s.push(e);continue}var b=Sd(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)?"#"+ug(w.slice(1)):w).charAt(0)||w.match(/^\w+:/)||(w="../"+w),b=Bd("text:a",b,{"xlink:href":w.replace(/&/g,"&")})}s.push(" "+Bd("table:table-cell",Bd("text:p",b,{}),h)+"\n")}else s.push(e)}}s.push(" \n")}return s.push(" \n"),s.join("")};return function(e,n){var a=[wd],s=Wd({"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=Wd({"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(Zp().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 Ty(e,t){if("fods"==t.bookType)return xy(e,t);var n=bd(),a="",s=[],o=[];return vd(n,a="mimetype","application/vnd.oasis.opendocument.spreadsheet"),vd(n,a="content.xml",xy(e,t)),s.push([a,"text/xml"]),o.push([a,"ContentFile"]),vd(n,a="styles.xml",_y(e,t)),s.push([a,"text/xml"]),o.push([a,"StylesFile"]),vd(n,a="meta.xml",wd+Zp()),s.push([a,"text/xml"]),o.push([a,"MetadataFile"]),vd(n,a="manifest.rdf",function(e){var t,n,a=[wd];a.push('\n');for(var s=0;s!=e.length;++s)a.push(Yp(e[s][0],e[s][1])),a.push((t="",n=e[s][0],[' \n',' \n'," \n"].join("")));return a.push(Yp("","Document","pkg")),a.push(""),a.join("")}(o)),s.push([a,"application/rdf+xml"]),vd(n,a="META-INF/manifest.xml",function(e){var t=[wd];t.push('\n'),t.push(' \n');for(var n=0;n\n');return t.push(""),t.join("")}(s)),n}function Sy(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Cy(e){return"undefined"!=typeof TextEncoder?(new TextEncoder).encode(e):Yc(Ld(e))}function Ey(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 Ay(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 Dy(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 jy(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 Oy(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=Ay(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 Ny(e){var t=[];return e.forEach((function(e,n){e.forEach((function(e){e.data&&(t.push(Dy(8*n+e.type)),2==e.type&&t.push(Dy(e.data.length)),t.push(e.data))}))})),Ey(t)}function Py(e){for(var t,n=[],a=[0];a[0]>>0>0),n.push(r)}return n}function Iy(e){var t=[];return e.forEach((function(e){var n=[];n[1]=[{data:Dy(e.id),type:0}],n[2]=[],null!=e.merge&&(n[3]=[{data:Dy(+!!e.merge),type:0}]);var a=[];e.messages.forEach((function(e){a.push(e.data),e.meta[3]=[{type:0,data:Dy(e.data.length)}],n[2].push({data:Ny(e.meta),type:2})}));var s=Ny(n);t.push(Dy(s.length)),t.push(s),a.forEach((function(e){return t.push(e)}))})),Ey(t)}function Ly(e,t){if(0!=e)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var n=[0],a=Ay(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=[Ey(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=Ey(s);if(m.length!=a)throw new Error("Unexpected length: ".concat(m.length," != ").concat(a));return m}function Ry(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 Ey(t)}function My(e,t){var n=new Uint8Array(32),a=Sy(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 Wy(e,t){var n=new Uint8Array(32),a=Sy(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 By(e){return Ay(Oy(e)[1][0].data)}function Uy(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)&&jy(e[8][0].data)>0||!1)throw"Math only works with normal offsets";for(var i=0,l=Sy(e[7][0].data),c=0,m=[],d=Sy(e[4][0].data),u=0,p=[],h=0;h1&&console.error("The Numbers writer currently writes only the first table");var a=np(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(ap(a)));var o=ev(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=qm.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/)&&Py(Ry(t.content)).forEach((function(e){l.push(e.id),i[e.id]={deps:[],location:n,type:jy(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,Dy(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/)&&Py(Ry(t.content)).forEach((function(e){e.messages.forEach((function(t){m.forEach((function(t){e.messages.some((function(e){return 11006!=jy(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:""};Hy(t=t||{});var o=bd(),r="",i=0;t.cellXfs=[],yg(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});if(vd(o,r="docProps/core.xml",Qp(e.Props,t)),s.coreprops.push(r),qp(t.rels,2,r,Vp.CORE_PROPS),r="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],c=0;c0&&(vd(o,r="docProps/custom.xml",ah(e.Custprops)),s.custprops.push(r),qp(t.rels,4,r,Vp.CUST_PROPS));for(i=1;i<=e.SheetNames.length;++i){var m={"!id":{}},d=e.Sheets[e.SheetNames[i-1]];(d||{})["!type"];if(vd(o,r="xl/worksheets/sheet"+i+"."+n,Vg(i-1,r,t,e,m)),s.sheets.push(r),qp(t.wbrels,-1,"worksheets/sheet"+i+"."+n,Vp.WS[0]),d){var u=d["!comments"],p=!1,h="";u&&u.length>0&&(vd(o,h="xl/comments"+i+"."+n,Kg(u,h,t)),s.comments.push(h),qp(m,-1,"../comments"+i+"."+n,Vp.CMNT),p=!0),d["!legacy"]&&p&&vd(o,"xl/drawings/vmlDrawing"+i+".vml",kf(i,d["!comments"])),delete d["!comments"],delete d["!legacy"]}m["!id"].rId1&&vd(o,Kp(r),$p(m))}null!=t.Strings&&t.Strings.length>0&&(vd(o,r="xl/sharedStrings."+n,function(e,t,n){return(".bin"===t.slice(-4)?Gh:zh)(e,n)}(t.Strings,r,t)),s.strs.push(r),qp(t.wbrels,-1,"sharedStrings."+n,Vp.SST));vd(o,r="xl/workbook."+n,function(e,t,n){return(".bin"===t.slice(-4)?Gg:zg)(e,n)}(e,r,t)),s.workbooks.push(r),qp(t.rels,1,r,Vp.WB),vd(o,r="xl/theme/theme1.xml",yf(e.Themes,t)),s.themes.push(r),qp(t.wbrels,-1,"theme/theme1.xml",Vp.THEME),vd(o,r="xl/styles."+n,function(e,t,n){return(".bin"===t.slice(-4)?gf:nf)(e,n)}(e,r,t)),s.styles.push(r),qp(t.wbrels,-1,"styles."+n,Vp.STY),e.vbaraw&&a&&(vd(o,r="xl/vbaProject.bin",e.vbaraw),s.vba.push(r),qp(t.wbrels,-1,"vbaProject.bin",Vp.VBA));return vd(o,r="xl/metadata."+n,function(e){return(".bin"===e.slice(-4)?vf:bf)()}(r)),s.metadata.push(r),qp(t.wbrels,-1,"metadata."+n,Vp.XLMETA),vd(o,"[Content_Types].xml",Gp(s,t)),vd(o,"_rels/.rels",$p(t.rels)),vd(o,"xl/_rels/workbook."+n+".rels",$p(t.wbrels)),delete t.revssf,delete t.ssf,o}(e,t):Vy(e,t)}function Vy(e,t){wf=1024,e&&!e.SSF&&(e.SSF=pd(mm)),e&&e.SSF&&(Vm(),Gm(e.SSF),t.revssf=td(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,pg?t.revStrings=new Map:(t.revStrings={},t.revStrings.foo=[],delete t.revStrings.foo);var n="xml",a=Cf.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:""};Hy(t=t||{});var o=bd(),r="",i=0;if(t.cellXfs=[],yg(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),vd(o,r="docProps/core.xml",Qp(e.Props,t)),s.coreprops.push(r),qp(t.rels,2,r,Vp.CORE_PROPS),r="docProps/app.xml",e.Props&&e.Props.SheetNames);else if(e.Workbook&&e.Workbook.Sheets){for(var l=[],c=0;c0&&(vd(o,r="docProps/custom.xml",ah(e.Custprops)),s.custprops.push(r),qp(t.rels,4,r,Vp.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(vd(o,r="xl/worksheets/sheet"+i+"."+n,_g(i-1,t,e,d)),s.sheets.push(r),qp(t.wbrels,-1,"worksheets/sheet"+i+"."+n,Vp.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&&(vd(o,f="xl/threadedComments/threadedComment"+i+"."+n,xf(p,m,t)),s.threadedcomments.push(f),qp(d,-1,"../threadedComments/threadedComment"+i+"."+n,Vp.TCMNT)),vd(o,f="xl/comments"+i+"."+n,_f(p)),s.comments.push(f),qp(d,-1,"../comments"+i+"."+n,Vp.CMNT),h=!0}u["!legacy"]&&h&&vd(o,"xl/drawings/vmlDrawing"+i+".vml",kf(i,u["!comments"])),delete u["!comments"],delete u["!legacy"]}d["!id"].rId1&&vd(o,Kp(r),$p(d))}return null!=t.Strings&&t.Strings.length>0&&(vd(o,r="xl/sharedStrings."+n,zh(t.Strings,t)),s.strs.push(r),qp(t.wbrels,-1,"sharedStrings."+n,Vp.SST)),vd(o,r="xl/workbook."+n,zg(e)),s.workbooks.push(r),qp(t.rels,1,r,Vp.WB),vd(o,r="xl/theme/theme1.xml",yf(e.Themes,t)),s.themes.push(r),qp(t.wbrels,-1,"theme/theme1.xml",Vp.THEME),vd(o,r="xl/styles."+n,nf(e,t)),s.styles.push(r),qp(t.wbrels,-1,"styles."+n,Vp.STY),e.vbaraw&&a&&(vd(o,r="xl/vbaProject.bin",e.vbaraw),s.vba.push(r),qp(t.wbrels,-1,"vbaProject.bin",Vp.VBA)),vd(o,r="xl/metadata."+n,bf()),s.metadata.push(r),qp(t.wbrels,-1,"metadata."+n,Vp.XLMETA),m.length>1&&(vd(o,r="xl/persons/person.xml",function(e){var t=[wd,Bd("personList",null,{xmlns:$d,"xmlns:x":tu[0]}).replace(/[\/]>/,">")];return e.forEach((function(e,n){t.push(Bd("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),qp(t.wbrels,-1,"persons/person.xml",Vp.PEOPLE)),vd(o,"[Content_Types].xml",Gp(s,t)),vd(o,"_rels/.rels",$p(t.rels)),vd(o,"xl/_rels/workbook.xml.rels",$p(t.wbrels)),delete t.revssf,delete t.ssf,o}function Ky(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=Gc(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 $y(e,t){switch(t.type){case"base64":case"binary":break;case"buffer":case"array":t.type="";break;case"file":return Xm(t.file,qm.write(e,{type:Vc?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+t.bookType+"' files");default:throw new Error("Unrecognized type "+t.type)}return qm.write(e,t)}function qy(e,t){var n={},a=Vc?"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?qm.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(Zc(s))}return t.password&&"undefined"!==typeof encrypt_agile?$y(encrypt_agile(s,t.password),t):"file"===t.type?Xm(t.file,s):"string"==t.type?Id(s):s}function Yy(e,t,n){n||(n="");var a=n+e;switch(t.type){case"base64":return Hc(Ld(a));case"binary":return Ld(a);case"string":return e;case"file":return Xm(t.file,a,"utf8");case"buffer":return Vc?Kc(a,"utf8"):"undefined"!==typeof TextEncoder?(new TextEncoder).encode(a):Yy(a,{type:"binary"}).split("").map((function(e){return e.charCodeAt(0)}))}throw new Error("Unrecognized type "+t.type)}function Zy(e,t){switch(t.type){case"string":case"base64":case"binary":for(var n="",a=0;a0&&(s=0);var d=Xu(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]=Qu(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=rp(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 _=Qy(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 tv=/"/g;function nv(e,t,n,a,s,o,r,i){for(var l=!0,c=[],m="",d=Xu(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:rp(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(tv,'""')+'"';break}"ID"==m&&(m='"ID"')}else null==p.f||p.F?m="":(l=!1,(m="="+p.f).indexOf(",")>=0&&(m='"'+m.replace(tv,'""')+'"'));c.push(m)}return!1===i.blankrows&&l?null:c.join(r)}function av(e,t){var n=[],a=null==t?{}:t;if(null==e||null==e["!ref"])return"";var s=sp(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]=Qu(h));for(var f=0,g=s.s.r;g<=s.e.r;++g)(p[g]||{}).hidden||null!=(m=nv(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 sv(e,t){t||(t={}),t.FS="\t",t.RS="\n";var n=av(e,t);if("undefined"==typeof Wc||"string"==t.type)return n;var a=Wc.utils.encode(1200,n,"str");return String.fromCharCode(255)+String.fromCharCode(254)+a}function ov(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?ep(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=sp(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){Jm(e).forEach((function(n){-1==(p=u.indexOf(n))&&(u[p=u.length]=n);var c=e[n],m="z",d="",h=tp({c:l+p,r:i+t+o});a=rv(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=ad(c)),d=s.dateNF||mm[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=Xu(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(Bg(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 cv(e,t,n){return t?(e.l={Target:t},n&&(e.l.Tooltip=n)):delete e.l,e}var mv={encode_col:Qu,encode_row:Xu,encode_cell:tp,encode_range:ap,decode_col:Ju,decode_row:Zu,split_cell:function(e){return e.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:ep,decode_range:np,format_cell:rp,sheet_add_aoa:lp,sheet_add_json:ov,sheet_add_dom:by,aoa_to_sheet:cp,json_to_sheet:function(e,t){return ov(null,e,t)},table_to_sheet:wy,table_to_book:function(e,t){return ip(wy(e,t),t)},sheet_to_csv:av,sheet_to_txt:sv,sheet_to_json:ev,sheet_to_html:vy,sheet_to_formulae:function(e){var t,n="",a="";if(null==e||null==e["!ref"])return[];var s,o=sp(e["!ref"]),r="",i=[],l=[],c=Array.isArray(e);for(s=o.s.c;s<=o.e.c;++s)i[s]=Qu(s);for(var m=o.s.r;m<=o.e.r;++m)for(r=Xu(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:ev,sheet_get_cell:rv,book_new:iv,book_append_sheet:lv,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:cv,cell_set_internal_link:function(e,t,n){return cv(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:sp(t),o="string"==typeof t?t:ap(t),r=s.s.r;r<=s.e.r;++r)for(var i=s.s.c;i<=s.e.c;++i){var l=rv(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}};jc.version;function dv(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)||tc.STRING;return{...e.props,template:a}})),a=Array.from(n).filter((e=>null===e||void 0===e?void 0:e.title));return a}function uv(e){return e.map((e=>xe.Z.get(e.title||"")))}function pv(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 hv(e,t,n){const a=dv(t),s=pv(a),o=[uv(a),...e.map(s)],r=mv.aoa_to_sheet(o);r["!cols"]=a.map((()=>({width:20})));const i=mv.book_new();mv.book_append_sheet(i,r,"Sheet1"),function(e,t,n){var a=n||{};a.type="file",a.file=t,Jy(a),Xy(e,a)}(i,"".concat(n,".xlsx"))}var fv=(0,gn.Z)("getPath");function gv(e){return e?Array.isArray(e)?e.join("."):"object"===typeof e?[e.type,e.page].join("."):e:""}const yv=new class{constructor(){Object.defineProperty(this,fv,{value:gv}),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,fv)[fv](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,fv)[fv](e);return(null===(n=this.settings)||void 0===n?void 0:n[a])||t}},vv=yv,bv="DataView_data_view_buttons__yCbg3",wv="DataView_data_view_icon__XKD50";function kv(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=vv.getItem(u,Do?"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,io.jsxs)(io.Fragment,{children:[(0,io.jsx)("div",{style:{position:"relative"},children:(0,io.jsxs)("div",{className:bv,children:[!Do&&(0,io.jsx)("img",{title:"\u0421\u043a\u0430\u0447\u0430\u0442\u044c XLSX",src:"./assets/icons/Download.svg",className:wv,onClick:()=>{const e=d("sidebar.".concat(u.type,".").concat(u.page));hv(n||a,m,e)}}),!Do&&(0,io.jsx)("img",{title:y,src:g,className:wv,onClick:()=>{const e="table"===h?"cards":"table";f(e),vv.setItem(u,e,"table")}})]})}),"table"===h&&(0,io.jsx)(Ji,{template:"table",children:(0,io.jsx)(hc,{rows:a,sort:s,disabledRow:l,updateSort:c,children:m})}),"cards"===h&&(0,io.jsx)(Dc,{items:a,columnCount:r,className:i,children:m})]})}kv.defaultProps={rows:[],sort:[],type:void 0,columnCount:void 0,updateSort:()=>{}};const _v=kv;function xv(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,io.jsx)(io.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}})}xv.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 Tv=xv;function Sv(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 Cv(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,Sv(r,t)]}function Ev(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,io.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})}Ev.defaultProps={value:0,width:0,title:"",description:"",suffix:"",color:null,className:"",formatter:e=>e};const Av=Ev,Dv="styles_line_chart__Os6FB",jv="styles_line_chart_item__h5Dv1",Ov="styles_line_chart_sub_item__70rAH";function Nv(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,io.jsx)("div",{className:"".concat(Dv," ").concat(s||""),children:(0,io.jsx)(Av,{value:n,width:o,suffix:t.suffix,formatter:t.formatter,className:jv})});const r=Cv(a,t).map((e=>(0,io.jsx)(Av,{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:Ov},e.title)));return(0,io.jsx)("div",{className:"".concat(Dv," ").concat(s||""),children:(0,io.jsx)("div",{className:jv,style:{width:"".concat(o,"%")},children:r})})}Nv.defaultProps={value:void 0,details:void 0,className:""};const Pv=Nv;class Iv{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]||Iv.DEFAULT}}function Lv(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 Iv(t):null,limit:o||15,formatter:r||(e=>e)}}Iv.DEFAULT="#D0D1D2";const Rv="Banner_banner__NKjAn";const Fv=function(e){let{className:t}=e;const n=uo.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,io.jsx)(we,{...m,children:(0,io.jsx)("div",{className:Rv,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,io.jsx)(we,{...m,children:(0,io.jsx)("div",{title:o,className:Rv,style:{color:l,background:t},children:i||e||""})})}return null},Mv="card_recommendations_card__2kGe-",Wv="card_recommendations_card_for_print__mEWP4",Bv="card_recommendations_card_title__qilbG",Uv="card_recommendations_card_icon__LGkDs",zv="card_recommendations_card_button__HWnqd",Hv="card_recommendations_card_info__3Etxk",Gv="card_recommendations_card_fact__aJVeI",Vv="card_recommendations_card_warning__5FzYe",Kv="card_recommendations_card_error__YxpZd",$v="card_recommendations_card_banner__s6avK";const qv=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]:Hv,[ea.FACT]:Gv,[ea.WARNING]:Vv,[ea.ALERT]:Kv}[n||ea.INFO])&&void 0!==t?t:Gv}(n),r=Qo(n),i=null===n||void 0===n||null===(t=n.arguments)||void 0===t?void 0:t.title,l=er(n).split("\n").shift();return(0,io.jsxs)("div",{className:"".concat(Mv," ").concat(o),onClick:Do?a:void 0,children:[(0,io.jsxs)("h5",{className:Bv,children:[(0,io.jsx)("span",{className:Uv}),xe.Z.get(r,i)]}),(0,io.jsx)(Jo,{style:{color:"#12131B"},text:l||""}),!Do&&(0,io.jsx)(Eo,{mode:"link",className:zv,onClick:a,children:s("recommendations.modal.open")})]})};const Yv=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]:Hv,[ea.FACT]:Gv,[ea.WARNING]:Vv,[ea.ALERT]:Kv}[n||ea.INFO])&&void 0!==t?t:Gv}(n),s=Qo(n),o=null===n||void 0===n||null===(t=n.arguments)||void 0===t?void 0:t.title,r=er(n);return(0,io.jsxs)("div",{className:"".concat(Mv," ").concat(Wv," ").concat(a),children:[(0,io.jsxs)("h5",{className:Bv,children:[(0,io.jsx)("span",{className:Uv}),xe.Z.get(s,o)]}),(0,io.jsx)(Jo,{style:{color:"#12131B"},text:r})]})},Zv="styles_recommendations_container__vICaJ",Xv="styles_recommendations_container_for_print__boNzY";function Jv(e){let{recommendations:t,mode:n}=e,a=(t||[]).filter((e=>e)).map((e=>"print"===n?(0,io.jsx)(Yv,{recommendation:e},e[1]):(0,io.jsx)(qv,{recommendation:e,onClick:()=>{tr.open(e)}},e[1])));if(!a.length)return null;"print"!==n&&(a=function(e){const t="".concat(Mv," ").concat($v),n=(0,io.jsx)(Fv,{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(Zv," scroll_x ").concat(Xv):"".concat(Zv," scroll_x");return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Wl,{title:s}),(0,io.jsx)("div",{className:o,onTouchStart:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:a})]})}Jv.defaultProps={mode:void 0};const Qv=Jv;function eb(e,t,n){return Math.max(...e.content.map((e=>n?e[t][n]||0:e[t]||0)))}function tb(e,t){return eb(e,t,"length")}function nb(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=Lv({order:[c,m],suffix:"page.team.author.days"}),u=Lv({max:tb(t,"tasks"),suffix:"page.team.author.tasksSmall"}),p=Lv({max:eb(t,"commits")}),h=Lv({order:ao.dataGrip.type.list});return(0,io.jsxs)(_v,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,io.jsx)(Tv,{isFixed:!0,template:tc.STRING,properties:"author",width:200}),(0,io.jsx)(Tv,{template:e=>{let t=r;return e.isDismissed&&(t=i),e.isStaff&&(t=l),(0,io.jsx)(ll,{value:t})},width:100}),(0,io.jsx)(Tv,{isSortable:"daysWorked",title:"page.team.author.workedLosses",minWidth:300,template:e=>(0,io.jsx)(Pv,{options:d,details:e}),formatter:e=>({[c]:e.daysWorked,[m]:e.daysLosses})}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"tasks",formatter:e=>(null===e||void 0===e?void 0:e.length)||0}),(0,io.jsx)(Tv,{isSortable:!0,properties:"tasks",title:"page.team.author.tasks",minWidth:200,template:e=>(0,io.jsx)(Pv,{options:u,value:e}),formatter:e=>(null===e||void 0===e?void 0:e.length)||0}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,title:"page.team.author.daysForTask",properties:"daysForTask",formatter:Zn,width:120}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,title:"page.team.author.scopes",properties:"scopes"}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"commits"}),(0,io.jsx)(Tv,{isSortable:!0,title:"page.team.author.commits",properties:"commits",minWidth:100,template:e=>(0,io.jsx)(Pv,{options:p,value:e})}),(0,io.jsx)(Tv,{title:"page.team.author.types",properties:"types",width:400,template:e=>(0,io.jsx)(Pv,{options:h,details:e})}),(0,io.jsx)(Tv,{template:tc.NUMBER,title:"page.team.author.moneyAll",properties:"moneyAll",formatter:qn}),(0,io.jsx)(Tv,{template:tc.NUMBER,title:"page.team.author.moneyWorked",properties:"moneyWorked",formatter:qn}),(0,io.jsx)(Tv,{template:tc.NUMBER,title:"page.team.author.moneyLosses",properties:"moneyLosses",formatter:qn})]})}nb.defaultProps={response:void 0};const ab=dn((e=>{var t;let{mode:n}=e;const{t:a}=Bt(),s=ao.dataGrip.author.statistic;if(null===s||void 0===s||!s.length)return"print"!==n?(0,io.jsx)(vl,{}):null;const o=null===(t=ao.dataGrip.recommendations.team)||void 0===t?void 0:t.byAuthor;return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Qv,{mode:n,recommendations:o}),(0,io.jsx)(Wl,{title:"page.team.author.title"}),(0,io.jsxs)(Al,{to:"response",loader:(e,t)=>Rl({content:s,pagination:e,sort:t,mode:n}),watch:"".concat(n).concat(ao.dataGrip.hash),children:[(0,io.jsx)(nb,{mode:n,rowsForExcel:s}),(0,io.jsx)(Ll,{})]}),(0,io.jsxs)(Ji,{children:[(0,io.jsx)(nl,{children:(0,io.jsx)(Jo,{text:a("page.team.author.description1")})}),(0,io.jsx)(nl,{children:(0,io.jsx)(Jo,{text:a("page.team.author.description2")})})]})]})})),sb=ab,ob="BarChart_vertical_bar__CpfhB",rb="BarChart_vertical_bar_item__cpWYe";const ib=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,io.jsx)("div",{className:rb,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,io.jsx)("div",{className:ob,children:r})},lb="ExternalLink_external_link__F2RSV";const cb=function(e){let{link:t,text:n}=e;return(0,io.jsx)(we,{to:t,target:"_blank",className:lb,children:n})},mb={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 db(e){let{commits:t}=e;const n=t.map((e=>(0,io.jsxs)("div",{className:mb.day_info_row,children:[(0,io.jsx)("span",{className:mb.day_info_date,children:$n(e.date)}),(0,io.jsx)("span",{className:mb.day_info_message,children:e.message})]},e.date)));return(0,io.jsx)(io.Fragment,{children:n})}function ub(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,io.jsxs)(io.Fragment,{children:[(0,io.jsxs)("div",{className:mb.day_info_link,children:[(0,io.jsx)(cb,{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,io.jsx)(cb,{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,io.jsx)(db,{commits:r})]})}));return(0,io.jsx)(io.Fragment,{children:n})}function pb(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,io.jsxs)("div",{className:mb.day_info,children:[(0,io.jsx)("h3",{className:mb.day_info_author,children:"".concat(t," ").concat(a)}),(0,io.jsx)(ub,{tasks:n})]},t)}));return(0,io.jsx)("div",{className:mb.day_info_wrapper,style:{columnCount:m>20?2:1},children:d})}pb.defaultProps={events:void 0,timestamp:void 0};const hb=pb;const fb=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,io.jsx)(vl,{});const[i,l]=Gn(a.timestamp),c=[{title:i,description:"page.common.commits.description",type:ea.FACT,arguments:{description:[l]}}];return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Qv,{recommendations:c}),(0,io.jsx)(Wl,{title:"page.common.commits.title"}),(0,io.jsx)(Ji,{template:"box",children:(0,io.jsx)(ib,{dots:r,selected:s,onClick:e=>{o(e.meta)}})}),(0,io.jsx)("br",{}),(0,io.jsx)("br",{}),(0,io.jsx)(Wl,{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,io.jsx)(Ji,{template:"box",children:(0,io.jsx)(hb,{day:s,order:ao.dataGrip.author.list})})]})},gb=dn((()=>{const e=ao.dataGrip.timestamp.statistic;return(0,io.jsx)(fb,{statistic:e})}));const yb=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,io.jsx)(vl,{});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,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Qv,{recommendations:c}),(0,io.jsx)(Wl,{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,io.jsx)(Ji,{template:"box",children:(0,io.jsx)(ib,{dots:r,selected:s,onClick:e=>{o(e.meta)}})}),(0,io.jsx)("br",{}),(0,io.jsx)("br",{}),(0,io.jsx)(Wl,{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,io.jsx)(Ji,{template:"box",children:(0,io.jsx)(hb,{day:s,order:ao.dataGrip.author.list})})]})},vb=dn((()=>{const e=ao.dataGrip.timestamp.statistic;return(0,io.jsx)(yb,{statistic:e})})),bb={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 wb=function(){const e=new Array(25).fill(1).map(((e,t)=>t?(0,io.jsxs)("div",{className:bb.hours_chart_day_time,children:[(0,io.jsx)("span",{className:bb.hours_chart_day_time_hh,children:Vn(t-1)}),(0,io.jsx)("span",{className:bb.hours_chart_day_time_mm,children:":00"})]},t):(0,io.jsx)("div",{className:bb.hours_chart_day_name},t)));return(0,io.jsx)(io.Fragment,{children:e})};const kb=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,io.jsx)("div",{className:bb.hours_chart_hour,style:{color:o,backgroundColor:"rgba(".concat(r,", ").concat(s,")")},children:e||""},t)}));return(0,io.jsx)(io.Fragment,{children:s})},_b="legend_hours_chart_legend__MetHn",xb="legend_hours_chart_legend_item__zwxrQ",Tb="legend_hours_chart_legend_work__uisVU",Sb="legend_hours_chart_legend_weekend__M2o-b",Cb="legend_hours_chart_legend_count__W8SZI",Eb="legend_hours_chart_legend_title__dyKCs";const Ab=function(){const{t:e}=Bt();return(0,io.jsxs)("div",{className:_b,children:[(0,io.jsxs)("div",{className:xb,children:[(0,io.jsx)("div",{className:Tb}),(0,io.jsx)("div",{className:Eb,children:e("uiKit.hoursChart.work")})]}),(0,io.jsxs)("div",{className:xb,children:[(0,io.jsx)("div",{className:Sb}),(0,io.jsx)("div",{className:Eb,children:e("uiKit.hoursChart.weekend")})]}),(0,io.jsxs)("div",{className:xb,children:[(0,io.jsx)("div",{className:Cb,children:"42"}),(0,io.jsx)("div",{className:Eb,children:e("uiKit.hoursChart.days")})]})]})};const Db=function(e){let{statistic:t}=e;const n=t.commitsByDayAndHour.map(((e,n)=>(0,io.jsxs)("div",{className:bb.hours_chart_day,children:[(0,io.jsx)("div",{className:bb.hours_chart_day_name,children:Hn(n,"short")}),(0,io.jsx)(kb,{week:e,day:n,max:t.commitsByDayAndHourTotal[8]})]},n)));return(0,io.jsxs)("div",{className:bb.hours_chart_user,children:[(0,io.jsxs)("div",{className:bb.hours_chart_data,children:[(0,io.jsx)("div",{className:bb.hours_chart_day,children:(0,io.jsx)(wb,{})}),n]}),(0,io.jsx)(Ab,{})]})},jb=dn((e=>{var t;let{mode:n}=e;const a=ao.dataGrip.team.statistic,s=null===(t=ao.dataGrip.recommendations.team)||void 0===t?void 0:t.byHour;return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Qv,{mode:n,recommendations:s}),(0,io.jsx)(Wl,{title:"page.team.hours.title"}),(0,io.jsx)(Ji,{template:"table",children:(0,io.jsx)(Db,{statistic:a})})]})})),Ob=jb,Nb="CandyChart_candy__6xQZk",Pb="CandyChart_candy_item__rSQb3",Ib="CandyChart_candy_title__CEfhb",Lb="CandyChart_candy_line__CFOFP",Rb="CandyChart_candy_value__+26Oz",Fb="CandyChart_candy_prefix__dboC2",Mb="CandyChart_candy_dot__XvYKs";const Wb=function(e){let{dots:t}=e;const n=100/Math.max(...t.map((e=>e.value))),a=t.map((e=>{return(0,io.jsxs)("div",{className:Pb,children:[(0,io.jsx)("div",{className:Ib,children:e.title}),(0,io.jsxs)("div",{className:Lb,children:[(0,io.jsx)("div",{className:Fb,children:e.value}),(0,io.jsx)("div",{className:Rb,style:{width:"".concat((t=e.value,t*n),"%"),backgroundColor:e.color||""}}),(0,io.jsx)("div",{className:Mb,style:{backgroundColor:e.color||""}})]})]},e.title);var t}));return(0,io.jsx)("div",{className:Nb,children:a})};const Bb=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,io.jsx)(vl,{});const o=[{title:s[0].title,description:"page.common.words.description",type:ea.FACT,arguments:{description:[s[0].value]}}];return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Qv,{mode:n,recommendations:o}),(0,io.jsx)(Wl,{title:"page.common.words.title"}),(0,io.jsx)(Ji,{template:"table",children:(0,io.jsx)(Wb,{dots:s})})]})},Ub=dn((e=>{let{mode:t}=e;const n=ao.dataGrip.team.statistic.wordStatistics;return(0,io.jsx)(Bb,{mode:t,statistic:n})}));function zb(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=Lv({order:ao.dataGrip.type.list}),r=Lv({order:ao.dataGrip.author.list});return(0,io.jsxs)(_v,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,io.jsx)(Tv,{isFixed:!0,template:tc.STRING,title:"page.team.scope.scope",properties:"scope",width:200}),(0,io.jsx)(Tv,{template:tc.NUMBER,title:"page.team.scope.days",properties:"days"}),(0,io.jsx)(Tv,{template:tc.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,io.jsx)(Tv,{template:tc.SHORT_NUMBER,title:"page.team.scope.tasks",properties:"tasks",formatter:e=>(null===e||void 0===e?void 0:e.length)||0}),(0,io.jsx)(Tv,{template:tc.NUMBER,title:"page.team.scope.commits",properties:"commits"}),(0,io.jsx)(Tv,{title:"page.team.scope.types",properties:"types",minWidth:200,template:e=>(0,io.jsx)(Pv,{options:o,details:e})}),(0,io.jsx)(Tv,{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,io.jsx)(Pv,{options:r,details:e})}),(0,io.jsx)(Tv,{template:tc.NUMBER,title:"page.team.scope.cost",properties:"cost",formatter:qn})]})}zb.defaultProps={response:void 0};const Hb=dn((e=>{var t;let{mode:n}=e;const a=ao.dataGrip.scope.statistic;if((null===a||void 0===a?void 0:a.length)<2)return"print"!==n?(0,io.jsx)(vl,{}):null;const s=null===(t=ao.dataGrip.recommendations.team)||void 0===t?void 0:t.byScope;return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Qv,{mode:n,recommendations:s}),(0,io.jsx)(Wl,{title:"page.team.scope.title"}),(0,io.jsxs)(Al,{to:"response",loader:e=>Rl({content:a,pagination:e,mode:n}),watch:"".concat(n).concat(ao.dataGrip.hash),children:[(0,io.jsx)(zb,{mode:n,rowsForExcel:a}),(0,io.jsx)(Ll,{})]})]})})),Gb=Hb,Vb="styles_tempo__35OlM",Kb="styles_tempo_wrapper__9G8QZ",$b="styles_tempo_column__-MszO",qb="styles_tempo_column_wrapper__gOSJN",Yb="styles_tempo_header__h8S6V",Zb="styles_tempo_author__5oBlm",Xb="styles_tempo_header_title__fCsQX",Jb="styles_tempo_header_day__74koH";const Qb=function(e){let{dayInfo:t}=e;return(0,io.jsxs)("div",{className:Yb,children:[(0,io.jsx)("p",{className:Xb,children:Kn(null===t||void 0===t?void 0:t.timestamp)}),(0,io.jsx)("p",{className:Jb,children:Hn(null===t||void 0===t?void 0:t.day,"long")})]})};const ew=function(e){let{name:t}=e;return(0,io.jsx)("div",{className:Zb,children:t||""})},tw="task_tempo_task__TNLYR",nw="task_tempo_task_wrapper__nKH-u",aw="task_tempo_task_header__XjSvi",sw="task_tempo_task_value__smF9i",ow="task_tempo_task_title__ZHB4o",rw="task_tempo_task_tag__vpHgX",iw="task_tempo_task_tags__bhnV8",lw="task_tempo_task_commits__I07Se",cw="task_tempo_task_hours__auht3",mw="task_tempo_task_icon__p1+3l";function dw(e){return"".concat(Vn(e.hours),":").concat(Vn(e.minutes))}function uw(e){const t=e[0],n=e[e.length-1];return t!==n?"c ".concat(dw(t)," \u0434\u043e ").concat(dw(n)):"\u0434\u043e ".concat(dw(t))}function pw(e){const t=new Set(e.map((e=>e.type))),n=Array.from(t).map((e=>(0,io.jsx)("p",{className:rw,children:e},e)));return(0,io.jsx)(io.Fragment,{children:n})}function hw(e){var t,n,a,s;let{title:o,commits:r}=e;const i=_s.pr.prByTask[o];return(0,io.jsxs)("div",{className:tw,children:[(0,io.jsxs)("div",{className:aw,children:[(0,io.jsxs)("div",{children:[(0,io.jsx)(cb,{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,io.jsx)(cb,{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,io.jsx)("div",{className:iw,children:pw(r)})]}),(0,io.jsxs)("figure",{className:lw,children:[(0,io.jsxs)("figure",{children:[(0,io.jsx)("img",{src:"./assets/chart/commit.svg",className:mw}),(0,io.jsx)("figcaption",{className:sw,children:r.length})]}),(0,io.jsx)("figcaption",{className:ow,children:"\u041a\u043e\u043c\u043c\u0438\u0442\u044b"})]}),(0,io.jsxs)("figure",{className:cw,children:[(0,io.jsxs)("figure",{children:[(0,io.jsx)("img",{src:"./assets/chart/clock.svg",className:mw}),(0,io.jsx)("figcaption",{className:sw,children:uw(r)})]}),(0,io.jsx)("figcaption",{className:ow,children:"\u0410\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u044c"})]})]},o)}const fw=function(e){let{tasks:t}=e;const n=Object.entries(t).map((e=>{let[t,n]=e;return(0,io.jsx)(hw,{title:t,commits:n},t)}));return(0,io.jsx)("div",{className:nw,children:n})},gw="chart_tempo_chart__rsJb1",yw="chart_tempo_chart_dashboard__aknVt",vw="chart_tempo_chart_dot__0JrVm",bw="chart_tempo_chart_legend__5j88z",ww="chart_tempo_chart_time__ijaMS";const kw=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,io.jsx)("div",{className:"".concat(vw),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,io.jsxs)("div",{className:gw,children:[(0,io.jsx)("div",{className:yw,children:n}),(0,io.jsxs)("div",{className:bw,children:[(0,io.jsx)("span",{className:ww,children:"00:00"}),(0,io.jsx)("span",{className:ww,children:"06:00"}),(0,io.jsx)("span",{className:ww,children:"12:00"}),(0,io.jsx)("span",{className:ww,children:"18:00"}),(0,io.jsx)("span",{className:ww,children:"00:00"})]})]})};function _w(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,io.jsxs)("div",{children:[a?null:(0,io.jsx)(ew,{name:t}),(0,io.jsx)(kw,{tasks:n}),(0,io.jsx)(fw,{tasks:n})]},t)}));return(0,io.jsxs)("div",{className:$b,children:[(0,io.jsx)(Qb,{dayInfo:t}),(0,io.jsx)("div",{className:"".concat(qb," scroll_y"),children:s.length?s:(0,io.jsx)(vl,{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."})})]})}_w.defaultProps={order:[],author:""};const xw=_w;xw.defaultProps={order:[],author:""};const Tw=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,io.jsx)(xw,{dayInfo:e,author:a,order:s||[]},null===e||void 0===e?void 0:e.timestamp)));return(0,io.jsx)("div",{ref:i,style:o,className:"".concat(Kb," scroll_x"),onTouchStart:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),children:(0,io.jsx)("div",{className:Vb,children:l})})};function Sw(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,io.jsxs)("div",{className:"".concat(Yr," ").concat(a||""),children:[(0,io.jsx)(Eo,{mode:"second",className:Zr,disabled:r?m:c,onClick:()=>{i(r?u:d)},children:"\xab"}),(0,io.jsx)(Jr,{value:s,options:o,onChange:i}),(0,io.jsx)(Eo,{mode:"second",className:Xr,disabled:r?c:m,onClick:()=>{i(r?d:u)},children:"\xbb"})]})}Sw.defaultProps={reverse:!1,className:""};const Cw=Sw,Ew="filters_table_filters__ea5FG",Aw="filters_table_filters_item__4-+2W";function Dw(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 jw=dn((e=>{let{filters:n,onChange:a}=e;const{t:s}=Bt(),o=ao.dataGrip.timestamp.statistic.allCommitsByTimestamp||[],r=(0,t.useMemo)((()=>Dw(o)),[o]),i=ao.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,io.jsxs)("div",{className:Ew,children:[(0,io.jsx)(Cw,{title:"page.team.tree.filters.author",value:n.user,className:Aw,options:l,onChange:e=>{a({...n,user:e})}}),(0,io.jsx)(Cw,{reverse:!0,title:"page.team.tree.filters.author",value:n.week||o[o.length-1].week,className:Aw,options:r.reverse(),onChange:e=>{a({...n,week:e})}})]})})),Ow=jw;function Nw(e){let{response:t,order:n,user:a}=e;return t?(0,io.jsx)(Tw,{days:t.content,author:a,order:n}):null}Nw.defaultProps={response:void 0};const Pw=dn((()=>{const e=ao.dataGrip.timestamp.statistic.allCommitsByTimestamp||[],n=ao.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,io.jsx)(vl,{});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,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Wl,{title:"common.filters"}),(0,io.jsx)(Ji,{children:(0,io.jsx)(Ow,{filters:s,onChange:o})}),(0,io.jsx)("br",{}),(0,io.jsx)(Ji,{template:"table",children:(0,io.jsx)(Al,{to:"response",loader:()=>Rl({content:i}),watch:JSON.stringify(s),children:(0,io.jsx)(Nw,{order:n,user:r})})})]}):(0,io.jsx)(vl,{})})),Iw="CardWithIcon_card_with_icon__3a7zZ",Lw="CardWithIcon_card_with_icon_long__wEO+N",Rw="CardWithIcon_card_with_icon_icon__OGrXz",Fw="CardWithIcon_card_with_icon_value__crR9J",Mw="CardWithIcon_card_with_icon_title__tFLQS",Ww="CardWithIcon_card_with_icon_description__79tg5",Bw="CardWithIcon_card_with_icon_banner__WHT08";function Uw(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,io.jsxs)("figure",{className:i?Lw:Iw,children:[r&&(0,io.jsx)("img",{className:Rw,src:r}),(0,io.jsxs)("p",{className:Fw,style:{color:o||""},children:[a,s||""]}),(0,io.jsx)("h4",{className:Mw,children:l(t||"")}),(0,io.jsx)("figcaption",{className:Ww,children:l(n||"")})]}):null}Uw.defaultProps={description:"",suffix:"",color:void 0,icon:void 0,long:!1};const zw=Uw,Hw=dn((()=>{const{t:e}=Bt(),t=ao.dataGrip.team.statistic,n=ao.dataGrip.author.employment,a=ao.dataGrip.timestamp.statistic,s=n.active.reduce(((e,t)=>e+ao.dataGrip.author.statisticByName[t].taskInDay),0).toFixed(1),o=n.active.reduce(((e,t)=>e+Wn.getCurrentSalaryInMonth(t)),0);return(0,io.jsxs)(Ji,{children:[(0,io.jsxs)(nl,{children:[(0,io.jsx)(Wl,{title:"page.team.total.titleA"}),(0,io.jsxs)("div",{children:[(0,io.jsx)(zw,{value:t.daysWorked,icon:"./assets/cards/work_days.png",title:"page.team.total.daysWorked.title",description:"page.team.total.daysWorked.description"}),(0,io.jsx)(zw,{value:t.commits,icon:"./assets/cards/commits.png",title:"page.team.total.commits.title",description:"page.team.total.commits.description"}),(0,io.jsx)(zw,{value:t.daysLosses,icon:"./assets/cards/lazy.png",title:"page.team.total.daysLosses.title",description:"page.team.total.daysLosses.description"}),(0,io.jsx)(zw,{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,io.jsx)(zw,{long:!0,value:s,icon:"./assets/cards/tasks_month.png",title:"page.team.total.workSpeed.title",description:"page.team.total.workSpeed.description"})]}),(0,io.jsx)(Jo,{text:e("page.team.total.description1")}),(0,io.jsx)(Jo,{text:e("page.team.total.description2")}),(0,io.jsx)(Jo,{text:e("page.team.total.description3")})]}),(0,io.jsxs)(nl,{children:[(0,io.jsx)(Wl,{title:"page.team.total.titleB"}),(0,io.jsxs)("div",{children:[(0,io.jsx)(zw,{value:Yn(t.moneyAll),icon:"./assets/cards/money_total.png",title:"page.team.total.moneyAll.title",description:"page.team.total.moneyAll.description"}),(0,io.jsx)(zw,{value:Yn(t.moneyWorked),icon:"./assets/cards/money_work.png",title:"page.team.total.moneyWorked.title",description:"page.team.total.moneyWorked.description"}),(0,io.jsx)(zw,{value:Yn(t.moneyLosses),icon:"./assets/cards/money_lazy.png",title:"page.team.total.moneyLosses.title",description:"page.team.total.moneyLosses.description"}),(0,io.jsx)(zw,{value:Yn(a.weekendPayment),icon:"./assets/cards/money_holidays.png",title:"page.team.total.weekendPayment.title",description:"page.team.total.weekendPayment.description"}),(0,io.jsx)(zw,{long:!0,value:Yn(o),icon:"./assets/cards/money_month.png",title:"page.team.total.moneySpeed.title",description:"page.team.total.moneySpeed.description"})]}),(0,io.jsx)(Jo,{text:e("page.team.total.description4")}),(0,io.jsx)(Jo,{text:e("page.team.total.description5")})]})]})})),Gw=Hw;function Vw(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,io.jsx)(Kr,{title:t,description:n,help:a,error:s,className:o,children:(0,io.jsx)("input",{disabled:r,type:"number",value:i,placeholder:l?m(l):"",className:$r,onChange:e=>{c&&c(parseInt(e.target.value,10)||0)}})})}Vw.defaultProps={placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435"};const Kw=Vw;const $w=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()}},qw=dn((()=>{const{t:e}=Bt(),t=ao.dataGrip.author.list.map(((e,t)=>({id:t+1,title:e})));return t.unshift({id:0,title:e("page.team.tree.filters.all")}),(0,io.jsxs)("div",{className:Ew,children:[(0,io.jsx)(Cw,{title:"page.team.tree.filters.author",value:$w.authorId,className:Aw,options:t,onChange:e=>{$w.updateFilter("authorId",e)}}),(0,io.jsx)(Kw,{placeholder:"page.team.tree.filters.commits",help:"page.team.tree.filters.help",value:$w.minCommits||"",className:Aw,onChange:e=>{$w.updateFilter("minCommits",e)}})]})})),Yw=qw,Zw="path_file_breadcrumbs__LpB9m",Xw="path_file_breadcrumbs_text__wycrS",Jw="path_file_breadcrumbs_link__UvaTi",Qw=dn((()=>{const e=$w.selectedPath.map(((e,t)=>(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)("span",{className:Xw,children:"/"},"".concat(e,".")),(0,io.jsx)("span",{className:"".concat(Xw," ").concat(Jw),onClick:()=>{const e=$w.selectedPath.slice(0,t+1);$w.updateFilter("selectedPath",e)},children:e},e)]})));return(0,io.jsxs)("h3",{className:Zw,children:[(0,io.jsx)("span",{className:Xw,children:"\u0410\u0434\u0440\u0435\u0441:"}),(0,io.jsx)("span",{className:"".concat(Xw," ").concat(Jw),onClick:()=>{$w.updateFilter("selectedPath",[])},children:".."}),e]})}));function ek(e){let{response:t}=e;if(!t)return null;const n=Lv({max:eb(t,"lines"),suffix:"page.team.tree.line"}),a=Lv({order:ao.dataGrip.author.list,suffix:"page.team.tree.line"}),s=Lv({order:["page.team.tree.lineAdd","page.team.tree.lineChange","page.team.tree.lineRemove"],suffix:"page.team.tree.line"});return(0,io.jsxs)(hc,{rows:t.content,disabledRow:e=>".."!==(null===e||void 0===e?void 0:e.title),children:[(0,io.jsx)(Tv,{isFixed:!0,template:tc.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&&$w.updateFilter("selectedPath",[...e.path,e.name])}}),(0,io.jsx)(Tv,{isSortable:!0,width:50,properties:"lines",template:tc.SHORT_NUMBER}),(0,io.jsx)(Tv,{isSortable:!0,properties:"lines",minWidth:100,template:e=>(0,io.jsx)(Pv,{options:n,value:e})}),(0,io.jsx)(Tv,{isSortable:!0,template:tc.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,io.jsx)(Tv,{isSortable:!0,template:tc.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,io.jsx)(Tv,{isSortable:!0,template:tc.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,io.jsx)(Tv,{isSortable:!0,template:tc.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,io.jsx)(Tv,{minWidth:200,template:e=>{var t,n,a;return(0,io.jsx)(Pv,{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,io.jsx)(Tv,{title:"page.team.tree.add",minWidth:200,template:e=>(0,io.jsx)(Pv,{value:100,options:a,details:null===e||void 0===e?void 0:e.addedByAuthorInPercent})}),(0,io.jsx)(Tv,{title:"page.team.tree.change",minWidth:200,template:e=>(0,io.jsx)(Pv,{value:100,options:a,details:null===e||void 0===e?void 0:e.changedByAuthorInPercent})}),(0,io.jsx)(Tv,{title:"page.team.tree.remove",minWidth:200,template:e=>(0,io.jsx)(Pv,{value:100,options:a,details:null===e||void 0===e?void 0:e.removedByAuthorInPercent})})]})}ek.defaultProps={response:void 0};const tk=ek;function nk(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 ak=dn((e=>{let{type:n}=e;const{t:a}=Bt(),s="removed"===n?ao.fileGrip.removedTree.tree:ao.fileGrip.tree.tree;(0,t.useEffect)((()=>{$w.updateFilter("selectedPath",[])}),[n]);const o=nk(s,$w.selectedPath);return null!==o&&void 0!==o&&o.length?(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Wl,{title:a("common.filters")}),(0,io.jsx)(Yw,{}),(0,io.jsx)(Qw,{}),(0,io.jsx)(Ji,{template:"table",children:(0,io.jsxs)(Al,{to:"response",loader:e=>Rl({content:o,pagination:{...e,size:2e3}}),watch:"".concat($w.hash).concat(n),children:[(0,io.jsx)(tk,{}),(0,io.jsx)(Ll,{})]})})]}):(0,io.jsx)(vl,{})})),sk=ak;function ok(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=eb(t,"count"),r=eb(t,"removedCount"),i=Lv({max:Math.max(o,r),suffix:"page.team.extension.files"});return(0,io.jsxs)(_v,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,io.jsx)(Tv,{isFixed:!0,template:tc.STRING,title:"page.team.extension.name",properties:"extension",width:200}),(0,io.jsx)(Tv,{template:tc.STRING,title:"page.team.extension.path",width:350,formatter:e=>1===e.count||1===e.removedCount?e.path:""}),"print"===s?(0,io.jsx)(Tv,{isSortable:!0,title:"page.team.pr.task",properties:"task",width:120}):(0,io.jsx)(Tv,{isSortable:!0,template:(e,t)=>{var n,a;return t.path?(0,io.jsx)(cb,{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,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"count"}),(0,io.jsx)(Tv,{isSortable:!0,title:"page.team.extension.current.count",properties:"count",width:170,minWidth:170,template:e=>(0,io.jsx)(Pv,{options:i,value:e})}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"removedCount"}),(0,io.jsx)(Tv,{isSortable:!0,title:"page.team.extension.removed.count",properties:"removedCount",width:170,minWidth:170,template:e=>(0,io.jsx)(Pv,{options:i,value:e})})]})}ok.defaultProps={response:void 0};const rk=dn((e=>{let{mode:t}=e;const n=ao.fileGrip.extension.statistic;return(null===n||void 0===n?void 0:n.length)<2?"print"!==t?(0,io.jsx)(vl,{}):null:(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Wl,{title:"sidebar.team.extension"}),(0,io.jsxs)(Al,{to:"response",loader:e=>Rl({content:n,pagination:e,mode:t}),watch:"".concat(t).concat(ao.dataGrip.hash),children:[(0,io.jsx)(ok,{mode:t,rowsForExcel:n}),(0,io.jsx)(Ll,{})]})]})}));function ik(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=eb(t,"count"),r=eb(t,"removedCount"),i=Lv({max:Math.max(o,r),suffix:"page.team.extension.files"});return(0,io.jsxs)(_v,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,io.jsx)(Tv,{isFixed:!0,template:tc.STRING,title:"page.team.extension.name",properties:"type",width:200}),(0,io.jsx)(Tv,{template:tc.STRING,title:"page.team.extension.path",width:350,formatter:e=>1===e.count||1===e.removedCount?e.path:""}),"print"===s?(0,io.jsx)(Tv,{isSortable:!0,title:"page.team.pr.task",properties:"task",width:120}):(0,io.jsx)(Tv,{isSortable:!0,template:(e,t)=>{var n,a;return t.path?(0,io.jsx)(cb,{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,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"count"}),(0,io.jsx)(Tv,{isSortable:!0,title:"page.team.extension.current.count",properties:"count",width:170,minWidth:170,template:e=>(0,io.jsx)(Pv,{options:i,value:e})}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"removedCount"}),(0,io.jsx)(Tv,{isSortable:!0,title:"page.team.extension.removed.count",properties:"removedCount",width:170,minWidth:170,template:e=>(0,io.jsx)(Pv,{options:i,value:e})})]})}ik.defaultProps={response:void 0};const lk=dn((e=>{let{mode:t}=e;const n=ao.fileGrip.type.statistic;return(null===n||void 0===n?void 0:n.length)<2?"print"!==t?(0,io.jsx)(vl,{}):null:(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Wl,{title:"sidebar.team.extension"}),(0,io.jsxs)(Al,{to:"response",loader:e=>Rl({content:n,pagination:e,mode:t}),watch:"".concat(t).concat(ao.dataGrip.hash),children:[(0,io.jsx)(ik,{mode:t,rowsForExcel:n}),(0,io.jsx)(Ll,{})]})]})})),ck=dn((e=>{let{mode:t}=e;return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(rk,{mode:t}),(0,io.jsx)(lk,{mode:t})]})}));function mk(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=Lv({max:eb(t,"tasks"),suffix:"page.team.type.tasksSmall"}),r=Lv({max:eb(t,"daysByAuthorsTotal"),suffix:"page.team.type.daysSmall"}),i=Lv({order:ao.dataGrip.author.list});return(0,io.jsxs)(_v,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,io.jsx)(Tv,{isFixed:!0,template:tc.STRING,title:"page.team.type.type",properties:"type",width:150}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"tasks"}),(0,io.jsx)(Tv,{isSortable:!0,title:"page.team.type.tasks",properties:"tasks",minWidth:120,template:e=>(0,io.jsx)(Pv,{options:o,value:e})}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,title:"page.team.type.days",properties:"days"}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"daysByAuthorsTotal"}),(0,io.jsx)(Tv,{isSortable:!0,title:"page.team.type.authorsDays",properties:"daysByAuthorsTotal",minWidth:120,template:e=>(0,io.jsx)(Pv,{options:r,value:e})}),(0,io.jsx)(Tv,{template:tc.NUMBER,title:"page.team.type.commits",properties:"commits"}),(0,io.jsx)(Tv,{title:"page.team.type.authors",properties:"commitsByAuthors",template:e=>(0,io.jsx)(Pv,{options:i,details:e}),minWidth:500})]})}mk.defaultProps={response:void 0};const dk=dn((e=>{var t;let{mode:n}=e;const{t:a}=Bt(),s=ao.dataGrip.type.statistic;if(null===s||void 0===s||!s.length)return"print"!==n?(0,io.jsx)(vl,{}):null;const o=null===(t=ao.dataGrip.recommendations.team)||void 0===t?void 0:t.byType;return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Qv,{mode:n,recommendations:o}),(0,io.jsx)(Wl,{title:"page.team.type.title"}),(0,io.jsxs)(Al,{to:"response",loader:(e,t)=>Rl({content:s,pagination:e,sort:t,mode:n}),watch:"".concat(n).concat(ao.dataGrip.hash),children:[(0,io.jsx)(mk,{mode:n,rowsForExcel:s}),(0,io.jsx)(Ll,{})]}),(0,io.jsx)(Ji,{children:(0,io.jsx)(Jo,{text:a("page.team.type.description")})})]})})),uk=dk;function pk(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=Lv({max:eb(t,"tasks"),order:ao.dataGrip.type.list,suffix:"page.team.week.tasks"}),r=Lv({max:eb(t,"authorsLength"),order:ao.dataGrip.author.list,suffix:"page.team.week.tasks"}),i=Lv({max:eb(t,"changesLength"),order:["page.team.week.add","page.team.week.change","page.team.week.remove"],suffix:"\u0441\u0442\u0440\u043e\u043a"}),l=Lv({order:["page.team.week.hasCommits","page.team.week.hasNotCommits"],suffix:"page.team.week.days"}),c=Lv({order:ao.dataGrip.author.list,suffix:"page.team.week.days"});return(0,io.jsxs)(_v,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,io.jsx)(Tv,{isFixed:!0,template:tc.STRING,title:"page.team.week.date",properties:"timestamp",formatter:Xn,width:260}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"tasks"}),(0,io.jsx)(Tv,{isSortable:"tasks",title:"page.team.week.numberTasks",template:e=>(0,io.jsx)(Pv,{options:o,value:e.tasks,details:e.types}),minWidth:200}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"authorsLength"}),(0,io.jsx)(Tv,{isSortable:"authorsLength",title:"page.team.week.people",template:e=>(0,io.jsx)(Pv,{options:r,value:e.authorsLength,details:e.authors}),minWidth:200}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"changesLength"}),(0,io.jsx)(Tv,{isSortable:"changesLength",title:"page.team.week.line",template:e=>{var t,n,a;return(0,io.jsx)(Pv,{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,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"workDaysTotal"}),(0,io.jsx)(Tv,{isSortable:"workDaysTotal",title:"page.team.week.days",template:e=>(0,io.jsx)(Pv,{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,io.jsx)(Tv,{title:"page.team.week.lossesDetails",template:e=>(0,io.jsx)(Pv,{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})]})}pk.defaultProps={response:void 0};const hk=dn((e=>{var t;let{mode:n}=e;const a=ao.dataGrip.week.statistic;if(null===a||void 0===a||!a.length)return"print"!==n?(0,io.jsx)(vl,{}):null;const s=null===(t=ao.dataGrip.recommendations.team)||void 0===t?void 0:t.byWeek;return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Qv,{mode:n,recommendations:s}),"print"===n?(0,io.jsx)(Wl,{title:"page.team.week.title"}):(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)("br",{}),(0,io.jsx)("br",{}),(0,io.jsx)("br",{})]}),(0,io.jsxs)(Al,{to:"response",loader:(e,t)=>Rl({content:a,pagination:e,sort:t}),watch:"".concat(n).concat(ao.dataGrip.hash),children:[(0,io.jsx)(pk,{mode:n,rowsForExcel:a}),"print"!==n&&(0,io.jsx)(Ll,{})]})]})})),fk=hk;function gk(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 yk(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 vk(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?(yk(n,i,a),a=[e]):a.push(e),n=e})),yk(n,i,a),r}const bk="styles_year_chart__CuiUa",wk="styles_year_chart_month__AdQdi",kk="styles_year_chart_month_header__EifAZ",_k="styles_year_chart_month_header_title__rSnWC",xk="styles_year_chart_month_body__35YkI",Tk="styles_year_chart_month_body_day__kwGqm",Sk="styles_year_chart_month_body_day_arrow__mVJUQ",Ck="styles_year_chart_month_body_day_info__aGly9";const Ek=function(e){let{month:t}=e;const n=t.date.toLocaleString(Un(),{month:"long"}),a=t.first||t.last||!t.month;return(0,io.jsx)("div",{className:kk,children:(0,io.jsxs)("span",{className:_k,style:{fontWeight:a?"bold":100},children:[n," ",a?t.year:""]})})};function Ak(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 Dk(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,io.jsx)("div",{className:Tk,title:"commits: ".concat(a.commits,", tasks: ").concat(a.tasksInDay||0),style:{backgroundColor:m,backgroundImage:d?"url(".concat(d,")"):""},onClick:()=>{l(!i)},children:i?(0,io.jsxs)(io.Fragment,{children:["\u25c9",(0,io.jsx)("div",{className:Sk}),(0,io.jsxs)("div",{className:"".concat(Ck," scroll_y"),children:[(0,io.jsx)(Wl,{title:Kn(a.timestamp)}),(0,io.jsx)(hb,{day:a,events:r,timestamp:a.timestamp,order:ao.dataGrip.author.list})]})]}):u})}Dk.defaultProps={rows:[]};const jk=Dk;function Ok(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:Ak(t,"firstCommit"),lastCommit:Ak(t,"lastCommit")}}(ao):{},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,io.jsx)(jk,{month:t,maxCommits:n,dayNumber:a,dayInfo:r,events:l},a)):(0,io.jsx)("div",{className:Tk,style:{opacity:ao?.3:1}},a)}));return(0,io.jsx)("div",{className:xk,children:c})}Ok.defaultProps={rows:[]};const Nk=Ok,Pk="line_year_chart_month_info__Cv+xl";function Ik(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,io.jsxs)("div",{className:wk,children:[(0,io.jsx)(Ek,{month:n}),(0,io.jsx)(Nk,{month:n,maxCommits:t.commits,showEvents:a}),(0,io.jsx)("div",{title:r,className:Pk,children:o})]})}Ik.defaultProps={hideMoney:!1};const Lk=Ik;function Rk(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=vk(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,io.jsx)(Lk,{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,io.jsx)("div",{ref:r,style:h,className:bk,children:p})}Rk.defaultProps={showEvents:!0};const Fk=Rk,Mk=dn((e=>{var t;let{mode:n}=e;const a=ao.dataGrip.author.statistic,s=ao.dataGrip.timestamp.statistic,o=s.commitsByTimestampCounter.max,r=null===(t=ao.dataGrip.recommendations.team)||void 0===t?void 0:t.byTimestamp;return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Qv,{mode:n,recommendations:r}),(0,io.jsx)(Wl,{title:"page.team.month.title"}),(0,io.jsx)(Ji,{template:"table",children:(0,io.jsx)(Fk,{maxCommits:o,authors:a,wordDays:s.allCommitsByTimestamp})})]})})),Wk=Mk;function Bk(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=Lv({max:eb(t,"commits"),suffix:"page.team.type.tasksSmall"});return(0,io.jsxs)(_v,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,io.jsx)(Tv,{isFixed:!0,isSortable:!0,template:e=>{var t,n;return(0,io.jsx)(cb,{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,io.jsx)(Tv,{properties:"types",template:e=>(0,io.jsx)(ll,{value:e}),width:100}),(0,io.jsx)(Tv,{properties:"scope",template:e=>(0,io.jsx)(ll,{value:e}),width:100}),(0,io.jsx)(Tv,{isSortable:!0,template:(e,t)=>{var n,a;return(0,io.jsx)(cb,{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,io.jsx)(Tv,{template:tc.STRING,properties:"comments"}),(0,io.jsx)(Tv,{template:tc.STRING,title:"page.team.tasks.author",properties:"author",width:170}),(0,io.jsx)(Tv,{template:tc.STRING,title:"page.team.tasks.from",properties:"from",width:150,formatter:Kn}),(0,io.jsx)(Tv,{template:tc.STRING,title:"page.team.tasks.to",properties:"to",width:150,formatter:Kn}),(0,io.jsx)(Tv,{template:tc.STRING,title:"page.team.tasks.pr",properties:"to",width:150,formatter:Kn}),(0,io.jsx)(Tv,{template:tc.STRING,title:"page.team.tasks.prAuthor",properties:"prAuthor",width:170}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"commits"}),(0,io.jsx)(Tv,{isSortable:!0,title:"page.team.tasks.commits",properties:"commits",minWidth:170,template:e=>(0,io.jsx)(Pv,{options:o,value:e})})]})}Bk.defaultProps={response:void 0};const Uk=dn((e=>{let{mode:t}=e;const n=ao.dataGrip.tasks.statistic;return null!==n&&void 0!==n&&n.length?(0,io.jsxs)(Al,{to:"response",loader:(e,a)=>Rl({content:n,pagination:e,sort:a,mode:t}),watch:"".concat(t).concat(ao.dataGrip.hash),children:[(0,io.jsx)("br",{}),(0,io.jsx)("br",{}),(0,io.jsx)("br",{}),(0,io.jsx)(Bk,{mode:t,rowsForExcel:n}),(0,io.jsx)(Ll,{})]}):"print"!==t?(0,io.jsx)(vl,{}):null})),zk={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 Hk=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=[zk.achievement_good,zk.achievement_middle,zk.achievement_bad][wn[t]-1];return(0,io.jsxs)("div",{className:zk.achievement,children:[(0,io.jsx)("div",{className:zk.achievement_icon_container,children:(0,io.jsx)("div",{className:"".concat(zk.achievement_icon," ").concat(o||""),children:(0,io.jsx)("img",{className:zk.achievement_icon_svg,src:"./assets/achievements/".concat(t,".svg")})})}),(0,io.jsx)("div",{className:zk.achievement_title,children:a}),(0,io.jsx)("div",{className:zk.achievement_description,children:s})]})};function Gk(e){let{statistic:t}=e;return null}Gk.defaultProps={rows:[]};const Vk=Gk,Kk="Races_races__iGwb4",$k="Races_races_track__BTbit",qk="Races_races_track_car__Dbi2B",Yk="Races_races_track_car_title__w5QQU",Zk="Races_races_track_info__pxgvV",Xk="Races_races_track_animation__sYl4E",Jk="Races_races_button__DUDTm";const Qk=function(e){let{title:t,duration:n}=e;return(0,io.jsx)("div",{className:Zk,style:{animationDelay:"".concat(n+1,"s")},children:t})},e_=5,t_=10,n_=["ease","ease-in","ease-out","ease-in-out","linear","cubic-bezier(0.1, 0.7, 1, 0.1)"];function a_(e){let{title:n,speed:a,type:s,canStart:o}=e;const r=(i=n_.length-1,Math.floor(Math.random()*(i-0+1))+0);var i;const[l]=(0,t.useState)(n_[r]);if((0,t.useEffect)((()=>{o_(n_)}),[]),!n)return null;const c=e_+t_*(1-a)*3,m=o?Xk:"";return(0,io.jsxs)("div",{className:"".concat($k," ").concat(s||""),children:[o&&(0,io.jsx)(Qk,{title:n,duration:c}),(0,io.jsx)("div",{className:"".concat(qk," ").concat(s||""," ").concat(m||""),style:{animationTimingFunction:l,animationDuration:"".concat(c,"s")},children:(0,io.jsx)("div",{className:"".concat(Yk," ").concat(s||""),children:n})})]})}a_.defaultProps={type:"",canStart:!1};const s_=a_;function o_(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 r_=function(e){let{tracks:n}=e;const{t:a}=Bt(),[s,o]=(0,t.useState)(!1);if(!n.length)return null;const r=o_(n).map((e=>(0,io.jsx)(s_,{title:e.title,speed:e.speed,canStart:s},e.title)));return(0,io.jsxs)("div",{className:Kk,children:[!s&&(0,io.jsx)(Eo,{className:Jk,onClick:()=>{o(!0)},children:a("uiKit.races.go")}),r]})},i_={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 l_=function(e){let{title:n}=e;const[a,s]=(0,t.useState)(!1);return(0,io.jsxs)("div",{className:"".concat(i_.tv100and1_cell_title),children:[n,(0,io.jsx)("button",{className:"".concat(i_.tv100and1_button," ").concat(a?i_.animation:""),onClick:()=>{s(!0)}})]})};function c_(e){let{rows:t=[]}=e;if(!t||!t.length)return null;const n=Lv({max:t[0].value,suffix:"\u0441\u0438\u0432\u043e\u043b\u043e\u0432"}),a=t.map((e=>(0,io.jsxs)("div",{className:"".concat(i_.tv100and1_row),children:[(0,io.jsx)(l_,{title:e.title}),(0,io.jsx)("div",{className:"".concat(i_.tv100and1_cell_value),children:e.value}),(0,io.jsx)("div",{className:"".concat(i_.tv100and1_cell_chart),children:(0,io.jsx)(Pv,{options:n,value:e.value})})]},e.title)));return(0,io.jsx)("div",{className:"".concat(i_.tv100and1),children:a})}c_.defaultProps={rows:[]};const m_=c_,d_="quiz_quiz_achievements__+MW4G",u_=dn((()=>{const e=ao.fileGrip.extension.statistic.slice(0,4).map((e=>(0,io.jsx)(Vk,{statistic:e},e.extension))),t=ao.dataGrip.author.statistic.filter((e=>!e.isStaff)),n=t.map((e=>e.taskInDay)),a=Math.max(...n),s=t.map((e=>({title:e.author,speed:e.taskInDay/a}))),o=[...t].sort(((e,t)=>t.maxMessageLength-e.maxMessageLength)).map((e=>({title:e.author,value:e.maxMessageLength}))),r=Lv({max:o[0].value,suffix:"\u0441\u0438\u0432\u043e\u043b\u043e\u0432"}),i=ao.dataGrip.author.statistic.map((e=>{const t=Kn(e.firstCommit.date),n=Kn(e.lastCommit.date),a=[].map((e=>(0,io.jsx)(Hk,{code:e},e)));return(0,io.jsxs)("div",{children:[(0,io.jsx)(Wl,{title:e.author}),(0,io.jsx)(Jo,{text:"\u0412\u0441\u0435\u0433\u043e \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432: ".concat(e.commits)}),(0,io.jsx)(Jo,{text:"\u0420\u0430\u0431\u043e\u0442\u0430\u043b \u0441 ".concat(t," \u043f\u043e ").concat(n," (").concat(e.allDaysInProject," \u0434\u043d\u0435\u0439)")}),(0,io.jsx)(Ji,{children:(0,io.jsx)("div",{className:d_,children:a})})]},e.author)}));return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Wl,{title:"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0437\u0430\u043a\u0440\u044b\u0442\u0438\u044f \u0437\u0430\u0434\u0430\u0447"}),(0,io.jsx)(r_,{tracks:s}),"City builder - \u0442\u0435\u043f\u043b\u043e\u0432\u0430\u044f \u043a\u0430\u0440\u0442\u0430","\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,io.jsx)(Wl,{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,io.jsx)(Ji,{template:"table",children:(0,io.jsxs)(_v,{rows:o,children:[(0,io.jsx)(Tv,{isFixed:!0,template:tc.STRING,title:"\u0421\u043e\u0442\u0440\u0443\u0434\u043d\u0438\u043a",properties:"title",width:260}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"value",width:40}),(0,io.jsx)(Tv,{title:"\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432",properties:"value",template:e=>(0,io.jsx)(Pv,{options:r,value:e})})]})}),(0,io.jsx)(m_,{rows:o}),i,(0,io.jsx)(Ji,{children:(0,io.jsx)("div",{style:{whiteSpace:"normal"},children:e})})]})})),p_=u_;const h_=function(){return(0,io.jsx)("div",{style:{pageBreakAfter:"always",breakAfter:"always"},children:" "})};const f_=function(){const e=ao.dataGrip.pr.statistic,t=os.getPRByGroups(e,"workDays"),n=Lv({order:t.order,limit:3,suffix:"page.team.pr.tasks"}),a=os.getPRByGroups(e,"delayDays"),s=Lv({order:a.order,limit:3,suffix:"PR"}),o=Math.round(t.weightedAverage),r=Math.round(a.weightedAverage),i=o+r,l=Lv({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,io.jsxs)(hc,{rows:c,children:[(0,io.jsx)(Tv,{title:"page.team.pr.workDays",properties:"workDays",template:e=>(0,io.jsx)(Pv,{options:n,details:e})}),(0,io.jsx)(Tv,{title:"page.team.pr.delayDays",properties:"delayDays",template:e=>(0,io.jsx)(Pv,{options:s,details:e})}),(0,io.jsx)(Tv,{properties:"weightedAverage",template:tc.SHORT_NUMBER}),(0,io.jsx)(Tv,{title:"page.team.pr.middleTimeRelease",properties:"weightedAverageDetails",width:300,template:e=>(0,io.jsx)(Pv,{options:l,details:{"page.team.pr.work":e.workDays,"page.team.pr.delay":e.delayDays}})})]})},g_=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 y_(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=Lv({order:g_,limit:3}),r=Lv({max:eb(t,"weightedAverage"),order:["page.team.pr.work","page.team.pr.delay"],suffix:"page.team.pr.days"});return(0,io.jsxs)(_v,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,io.jsx)(Tv,{isSortable:!0,template:tc.STRING,title:"page.team.pr.author",properties:"author",width:250}),(0,io.jsx)(Tv,{title:"page.team.pr.workDays",properties:"workDays",template:e=>(0,io.jsx)(Pv,{options:o,details:e})}),(0,io.jsx)(Tv,{title:"page.team.pr.delayDays",properties:"delayDays",template:e=>(0,io.jsx)(Pv,{options:o,details:e})}),(0,io.jsx)(Tv,{properties:"weightedAverage",template:tc.SHORT_NUMBER}),(0,io.jsx)(Tv,{title:"page.team.pr.middleTimeRelease",properties:"weightedAverageDetails",width:300,template:(e,t)=>(0,io.jsx)(Pv,{options:r,value:t.weightedAverage,details:{"page.team.pr.work":e.workDays,"page.team.pr.delay":e.delayDays}})})]})}y_.defaultProps={response:void 0};const v_=y_;function b_(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=Lv({max:eb(t,"workDays")}),r=Lv({max:eb(t,"delayDays")}),i=Lv({max:eb(t,"commits"),order:ao.dataGrip.author.list});return(0,io.jsxs)(_v,{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,io.jsx)(Tv,{isSortable:!0,title:"page.team.pr.task",properties:"task",width:120}):(0,io.jsx)(Tv,{isSortable:!0,template:(e,t)=>{var n,a,s,o;return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(cb,{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,io.jsx)(cb,{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,io.jsx)(Tv,{isSortable:!0,template:tc.STRING,title:"page.team.pr.firstCommitTime",properties:"beginTaskTime",formatter:Kn,width:130}),(0,io.jsx)(Tv,{isSortable:!0,template:tc.STRING,title:"page.team.pr.lastCommitTime",properties:"endTaskTime",formatter:Kn,width:130}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"workDays",width:40}),(0,io.jsx)(Tv,{isSortable:!0,title:"page.team.pr.workDays",properties:"workDays",minWidth:100,template:e=>(0,io.jsx)(Pv,{options:o,value:e})}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"commits",width:40}),(0,io.jsx)(Tv,{isSortable:!0,title:"page.team.pr.commits",properties:"commitsByAuthors",minWidth:100,template:e=>(0,io.jsx)(Pv,{options:i,details:e})}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"delayDays",width:40}),(0,io.jsx)(Tv,{isSortable:!0,title:"page.team.pr.delayDays",properties:"delayDays",minWidth:200,template:e=>(0,io.jsx)(Pv,{options:r,value:e})}),(0,io.jsx)(Tv,{isSortable:!0,template:tc.STRING,title:"page.team.pr.date",properties:"milliseconds",formatter:Kn,width:130}),(0,io.jsx)(Tv,{isSortable:!0,template:tc.STRING,title:"page.team.pr.mergeAuthor",properties:"author",width:250})]})}b_.defaultProps={mode:void 0,response:void 0};const w_=b_,k_=dn((e=>{let{mode:t}=e;const{t:n}=Bt(),a=ao.dataGrip.pr.statistic.filter((e=>e.delayDays>3));if((null===a||void 0===a?void 0:a.length)<2)return"print"!==t?(0,io.jsx)(vl,{}):null;const s=ao.dataGrip.pr.statisticByName,o=Object.values(s);return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Wl,{title:"page.team.pr.oneTaskDays"}),(0,io.jsx)(f_,{}),(0,io.jsxs)(Ji,{children:[(0,io.jsxs)(nl,{children:[(0,io.jsx)(Jo,{text:n("page.team.pr.description1")}),(0,io.jsx)(Jo,{text:n("page.team.pr.description2")})]}),(0,io.jsx)(nl,{children:(0,io.jsx)(Jo,{text:n("page.team.pr.description3")})})]}),(0,io.jsx)("br",{}),(0,io.jsx)("br",{}),(0,io.jsx)(Wl,{title:"page.team.pr.statByAuthors"}),(0,io.jsxs)(Al,{to:"response",loader:(e,n)=>Rl({content:o,pagination:e,sort:n,mode:t}),children:[(0,io.jsx)(v_,{mode:t,rowsForExcel:o}),(0,io.jsx)(Ll,{})]}),(0,io.jsx)(h_,{}),(0,io.jsx)(Wl,{title:"page.team.pr.longDelay"}),(0,io.jsxs)(Al,{to:"response",loader:(e,n)=>Rl({content:a,pagination:"print"===t?{size:20}:e,sort:n}),children:[(0,io.jsx)(w_,{mode:t,rowsForExcel:a}),"print"!==t&&(0,io.jsx)(Ll,{})]})]})})),__=k_,x_="table-of-contents_table_of_contents__Becki",T_="table-of-contents_table_of_contents_title__3qPIE",S_="table-of-contents_table_of_contents_item__6hX4X";const C_=function(e){let{titles:t}=e;const{t:n}=Bt(),a=(t||[]).map((e=>(0,io.jsx)("a",{className:S_,href:"#".concat(e),children:n(e||"")},e)));return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Wl,{className:T_,title:"page.print.tableOfContents"}),(0,io.jsx)("nav",{className:x_,children:a})]})},E_="cover_cover__VAtbV",A_="cover_cover_title__l1TfU",D_="cover_cover_sub_title__u8Khz",j_=dn((()=>{const{t:e}=Bt();return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsxs)("div",{className:E_,children:[(0,io.jsx)("h1",{className:A_,children:e("page.print.title")}),(0,io.jsx)("h2",{className:D_,children:document.title}),(0,io.jsx)(C_,{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,io.jsx)(Jo,{text:e("page.print.description")})]}),(0,io.jsx)(Gw,{}),(0,io.jsx)(h_,{}),(0,io.jsx)(Gb,{mode:"print"}),(0,io.jsx)(h_,{}),(0,io.jsx)(sb,{mode:"print"}),(0,io.jsx)(h_,{}),(0,io.jsx)(uk,{mode:"print"}),(0,io.jsx)(h_,{}),(0,io.jsx)(__,{mode:"print"}),(0,io.jsx)(h_,{}),(0,io.jsx)(fk,{mode:"print"}),(0,io.jsx)(h_,{}),(0,io.jsx)(Wk,{mode:"print"}),(0,io.jsx)(Ob,{mode:"print"}),(0,io.jsx)(Ub,{mode:"print"})]})})),O_=j_;function N_(e){let{response:t,updateSort:n,rowsForExcel:a,mode:s}=e;if(!t)return null;const o=eb(t,"delayInDays"),r=eb(t,"waitingInDays"),i=Lv({max:Math.max(o,r),suffix:"page.team.release.chart"});return(0,io.jsxs)(_v,{rowsForExcel:a,rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,io.jsx)(Tv,{isFixed:!0,template:tc.DETAILS,width:40,formatter:e=>{const t=e.pr.map((e=>{var t,n,a;return null===ao||void 0===ao||null===(t=ao.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,io.jsx)(w_,{response:{content:t}})}}),(0,io.jsx)(Tv,{isFixed:!0,template:tc.STRING,title:"page.team.release.title",properties:"title",width:200}),(0,io.jsx)(Tv,{template:tc.STRING,title:"page.team.release.from",width:150,properties:"from",formatter:Kn}),(0,io.jsx)(Tv,{template:tc.STRING,title:"page.team.release.to",width:150,properties:"to",formatter:Kn}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"prLength"}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"delayInDays"}),(0,io.jsx)(Tv,{isSortable:!0,title:"page.team.release.delay",properties:"delayInDays",width:170,minWidth:170,template:e=>(0,io.jsx)(Pv,{options:i,value:e})}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"waitingInDays"}),(0,io.jsx)(Tv,{isSortable:!0,title:"page.team.release.waiting",properties:"waitingInDays",width:170,minWidth:170,template:e=>(0,io.jsx)(Pv,{options:i,value:e})})]})}N_.defaultProps={response:void 0};const P_=dn((e=>{let{mode:t}=e;const n=ao.dataGrip.release.statistic;return(null===n||void 0===n?void 0:n.length)<2?"print"!==t?(0,io.jsx)(vl,{}):null:(0,io.jsxs)(io.Fragment,{children:["print"===t?(0,io.jsx)(Wl,{title:"sidebar.team.extension"}):(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)("br",{}),(0,io.jsx)("br",{}),(0,io.jsx)("br",{})]}),(0,io.jsxs)(Al,{to:"response",loader:e=>Rl({content:n,pagination:e,mode:t}),watch:"".concat(t).concat(ao.dataGrip.hash),children:[(0,io.jsx)(N_,{mode:t,rowsForExcel:n}),(0,io.jsx)(Ll,{})]})]})}));function I_(e){const t=di.processing?"print":void 0;return"total"===e?(0,io.jsx)(Gw,{}):"scope"===e?(0,io.jsx)(Gb,{mode:t}):"author"===e?(0,io.jsx)(sb,{mode:t}):"type"===e?(0,io.jsx)(uk,{mode:t}):"pr"===e?(0,io.jsx)(__,{mode:t}):"day"===e?(0,io.jsx)(Pw,{}):"week"===e?(0,io.jsx)(fk,{mode:t}):"month"===e?(0,io.jsx)(Wk,{mode:t}):"hours"===e?(0,io.jsx)(Ob,{mode:t}):"files"===e?(0,io.jsx)(sk,{}):"removedFiles"===e?(0,io.jsx)(sk,{type:"removed"}):"extension"===e?(0,io.jsx)(ck,{mode:t}):"release"===e?(0,io.jsx)(P_,{mode:t}):"commits"===e?(0,io.jsx)(gb,{}):"changes"===e?(0,io.jsx)(vb,{}):"words"===e?(0,io.jsx)(Ub,{mode:t}):"top"===e?(0,io.jsx)(p_,{}):"print"===e?(0,io.jsx)(O_,{}):"tasks"===e?(0,io.jsx)(Uk,{}):(0,io.jsx)(Gw,{})}function L_(){const{type:e}=Q();return e&&"team"!==e?null:(0,io.jsx)($i,{getViewById:I_})}const R_=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=ao.dataGrip.author.list.map(((e,t)=>({id:t,title:e}))),m=ao.dataGrip.timestamp.statistic.allCommitsByTimestamp||[],d=(0,t.useMemo)((()=>Dw(m)),[m]);return(0,io.jsxs)("div",{className:Ew,children:[(0,io.jsx)(Cw,{title:"page.team.tree.filters.author",value:l,className:Aw,options:c,onChange:e=>{i("/".concat(s,"/").concat(o,"/").concat(e))}}),"day"===o?(0,io.jsx)(Cw,{reverse:!0,title:"page.team.tree.filters.author",value:(null===n||void 0===n?void 0:n.week)||m[m.length-1].week,className:Aw,options:d.reverse(),onChange:e=>{a({...n,week:e})}}):null]})})),F_=R_,M_=dn((e=>{let{user:t}=e;const n=ao.dataGrip.timestamp.statisticByAuthor[t.author];return(0,io.jsx)(yb,{statistic:n})})),W_=dn((e=>{let{user:t}=e;const n=ao.dataGrip.timestamp.statisticByAuthor[t.author];return(0,io.jsx)(fb,{statistic:n})})),B_=dn((e=>{let{user:t}=e;return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Wl,{title:"page.person.hours.title"}),(0,io.jsx)(Ji,{template:"table",children:(0,io.jsx)(Db,{statistic:t})})]})}));const U_=function(){const{t:e}=Bt();return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)("p",{className:ul,children:e("uiKit.nothingFound.staff.title")}),(0,io.jsx)("p",{className:pl,children:e("uiKit.nothingFound.staff.description1")}),(0,io.jsx)("p",{className:pl,children:e("uiKit.nothingFound.staff.description2")})]})},z_=dn((e=>{let{user:t}=e;const n=t,a=ao.dataGrip.timestamp.statisticByAuthor[n.author],s=n.tasks.length;return n.isStaff?(0,io.jsx)(vl,{children:(0,io.jsx)(U_,{})}):(0,io.jsxs)(Ji,{children:[(0,io.jsxs)(nl,{children:[(0,io.jsx)(Wl,{title:"page.person.money.title.total"}),(0,io.jsxs)("div",{children:[(0,io.jsx)(zw,{value:Yn(n.moneyAll),icon:"./assets/cards/money_total.png",title:"page.person.money.moneyAll.title",description:"page.person.money.moneyAll.description"}),(0,io.jsx)(zw,{value:Yn(n.moneyWorked),icon:"./assets/cards/money_work.png",title:"page.person.money.moneyWorked.title",description:"page.person.money.moneyWorked.description"}),(0,io.jsx)(zw,{value:Yn(n.moneyLosses),icon:"./assets/cards/money_lazy.png",title:"page.person.money.moneyLosses.title",description:"page.person.money.moneyLosses.description"}),(0,io.jsx)(zw,{value:Yn(a.weekendPayment),icon:"./assets/cards/money_holidays.png",title:"page.team.total.weekendPayment.title",description:"page.team.total.weekendPayment.description"})]})]}),(0,io.jsxs)(nl,{children:[(0,io.jsx)(Wl,{title:"page.person.money.title.middle"}),0===s?(0,io.jsx)(vl,{}):(0,io.jsxs)("div",{children:[(0,io.jsx)(zw,{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,io.jsx)(zw,{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"})]})]})]})})),H_=dn((e=>{let{user:t,mode:n}=e;const a=t.wordStatistics;return(0,io.jsx)(Bb,{mode:n,statistic:a})}));function G_(e){let{long:t=!1}=e;const n=t?Lw:Iw;return(0,io.jsx)(Fv,{className:"".concat(n," ").concat(Bw)})}G_.defaultProps={long:!1};const V_=G_,K_=dn((e=>{let{user:t}=e;const n=t,a=ao.dataGrip.timestamp.statisticByAuthor[n.author],s=n.tasks.length;return n.isStaff?(0,io.jsx)(vl,{children:(0,io.jsx)(U_,{})}):(0,io.jsxs)(Ji,{children:[(0,io.jsxs)(nl,{children:[(0,io.jsx)(Wl,{title:"page.person.speed.task"}),0===s?(0,io.jsx)(vl,{}):(0,io.jsxs)("div",{children:[(0,io.jsx)(zw,{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,io.jsx)(zw,{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,io.jsx)(zw,{value:s?n.changesForTask:null,icon:"./assets/cards/lines.png",title:"page.person.speed.line.title",description:"page.person.speed.line.description"}),(0,io.jsx)(V_,{})]})]}),(0,io.jsxs)(nl,{children:[(0,io.jsx)(Wl,{title:"page.person.speed.max"}),(0,io.jsxs)("div",{children:[(0,io.jsx)(zw,{long:!0,value:a.tasksByTimestampCounter.max,icon:"./assets/cards/tasks.png",title:"page.person.speed.tasks.title",description:"page.person.speed.tasks.description"}),(0,io.jsx)(zw,{long:!0,value:a.commitsByTimestampCounter.max,icon:"./assets/cards/commits.png",title:"page.person.speed.maxCommits.title",description:"page.person.speed.maxCommits.description"})]})]})]})}));const $_=function(e){let{list:t}=e;const n=null===t||void 0===t?void 0:t.map((e=>(0,io.jsx)(Hk,{code:e},e)));return(0,io.jsx)("div",{className:zk.achievement_container,children:n})};const q_="styles_get_list_container__YnNGO",Y_="styles_get_list__xuTNI",Z_="styles_get_list_title__J-b47",X_="styles_get_list_icon__I4DqV",J_="styles_get_list_big_number__RbCn9";const Q_=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?J_:"",c=_s.pr.prByTask[r.task];return(0,io.jsxs)("div",{className:Y_,children:[(0,io.jsxs)("div",{className:Z_,children:[(0,io.jsx)(cb,{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,io.jsx)(cb,{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,io.jsx)("div",{className:"".concat(X_," ").concat(l),children:r.taskNumber})]})};const ex=function(e){let{list:t,mode:n}=e;const a=null===t||void 0===t?void 0:t.map((e=>(0,io.jsx)(Q_,{commit:e,mode:n},e.taskNumber)));return(0,io.jsx)("div",{className:q_,children:a})};function tx(e){let{title:t,achievements:n}=e;const{t:a}=Bt();return null!==n&&void 0!==n&&n.length?(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Jo,{text:"# ".concat(a(t))}),(0,io.jsx)($_,{list:n})]}):null}const nx=dn((e=>{let{user:t}=e;const{t:n}=Bt(),a=t,s=ao.dataGrip.get.getsByAuthor[t.author],o=a.tasks.length,r=Nn.authors[a.author];return(0,io.jsxs)(Ji,{children:[(0,io.jsxs)(nl,{children:[(0,io.jsx)(Wl,{title:"page.person.total.title"}),(0,io.jsxs)("div",{children:[(0,io.jsx)(zw,{value:a.daysWorked,icon:"./assets/cards/work_days.png",title:"page.person.total.daysWorked.title",description:"page.person.total.daysWorked.description"}),(0,io.jsx)(zw,{value:o||null,icon:"./assets/cards/tasks.png",title:"page.person.total.tasks.title",description:"page.person.total.tasks.description"}),(0,io.jsx)(zw,{value:a.daysLosses,icon:"./assets/cards/lazy.png",title:"page.team.total.daysLosses.title",description:"page.team.total.daysLosses.description"}),(0,io.jsx)(zw,{value:a.commits,icon:"./assets/cards/commits.png",title:"page.team.total.commits.title",description:"page.team.total.commits.description"}),(0,io.jsx)(V_,{long:!0})]}),!1,!1]}),(0,io.jsxs)(nl,{children:[(0,io.jsx)(Wl,{title:"page.person.achievement.title"}),(0,io.jsx)(tx,{title:"page.person.achievement.positive",achievements:r[yn-1]}),(0,io.jsx)(tx,{title:"page.person.achievement.normal",achievements:r[vn-1]}),(0,io.jsx)(tx,{title:"page.person.achievement.negative",achievements:r[bn-1]}),(0,io.jsx)(Jo,{text:n("page.person.achievement.description")}),(0,io.jsx)("br",{}),(0,io.jsx)("br",{}),null!==s&&void 0!==s&&s.length?(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Wl,{title:"page.person.gets.title"}),(0,io.jsx)(ex,{list:s}),(0,io.jsx)(Jo,{text:n("page.person.gets.description")})]}):null]})]})})),ax=nx;function sx(e){let{response:t,updateSort:n,name:a,mode:s}=e;if(!t)return null;const o=Lv({max:eb(t,"authors",a),order:ao.dataGrip.type.list}),r=Lv({max:7,order:["page.person.week.workDay","page.person.week.weekends"],suffix:"page.person.week.days"}),i=Lv({max:eb(t,"taskInDay",a)});return(0,io.jsxs)(_v,{rows:t.content,sort:t.sort,updateSort:n,type:"print"===s?"cards":void 0,columnCount:"print"===s?3:void 0,children:[(0,io.jsx)(Tv,{isFixed:!0,template:tc.STRING,title:"page.person.week.date",properties:"timestamp",formatter:Xn,width:200}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"authors",formatter:e=>e[a]||0}),(0,io.jsx)(Tv,{title:"page.person.week.tasks",template:e=>(0,io.jsx)(Pv,{options:o,value:e.authors[a],details:e.typeByAuthor[a]}),width:200}),(0,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"workDays",formatter:e=>e[a]||0}),(0,io.jsx)(Tv,{title:"page.person.week.workDays",template:e=>{let[t,n]=e;return(0,io.jsx)(Pv,{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,io.jsx)(Tv,{template:tc.SHORT_NUMBER,properties:"taskInDay",formatter:e=>Zn(e[a]||0)}),(0,io.jsx)(Tv,{title:"page.person.week.taskInDay",properties:"taskInDay",template:e=>(0,io.jsx)(Pv,{options:i,value:e[a]}),width:200})]})}sx.defaultProps={response:void 0};const ox=dn((e=>{var t;let{user:n,mode:a}=e;const s=n,o=ao.dataGrip.week.statistic.filter((e=>e.authors[s.author]));if(null===o||void 0===o||!o.length)return(0,io.jsx)(vl,{});const r=null===(t=ao.dataGrip.recommendations.person)||void 0===t?void 0:t.byWeek[s.author];return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Qv,{mode:a,recommendations:r}),(0,io.jsxs)(Al,{to:"response",loader:(e,t)=>Rl({content:o,pagination:e,sort:t}),children:[(0,io.jsx)(sx,{name:s.author,mode:a}),"print"!==a&&(0,io.jsx)(Ll,{})]})]})})),rx=ox,ix=dn((e=>{let{user:t}=e;const n=t,a=ao.dataGrip.timestamp.statisticByAuthor[n.author],s=a.commitsByTimestampCounter.max;return(0,io.jsx)(io.Fragment,{children:(0,io.jsx)(Ji,{template:"table",children:(0,io.jsx)(Fk,{showEvents:!1,maxCommits:s,authors:[n],wordDays:a.allCommitsByTimestamp})})})})),lx=dn((e=>{let{user:t,mode:n}=e;const a=ao.dataGrip.tasks.statistic.filter((e=>e.author===t.author||(e.authors||[]).includes(t.author)));return null!==a&&void 0!==a&&a.length?(0,io.jsxs)(Al,{to:"response",loader:(e,t)=>Rl({content:a,pagination:e,sort:t,mode:n}),watch:"".concat(n).concat(ao.dataGrip.hash).concat(t.author),children:[(0,io.jsx)(Bk,{mode:n,rowsForExcel:a}),(0,io.jsx)(Ll,{})]}):"print"!==n?(0,io.jsx)(vl,{}):null}));function cx(e){let{response:t,user:n}=e;return t?(0,io.jsx)(Tw,{days:t.content,author:n}):null}cx.defaultProps={response:void 0};const mx=dn((e=>{let{user:t,filters:n}=e;const a=ao.dataGrip.timestamp.statistic.allCommitsByTimestamp||[];if(null===a||void 0===a||!a.length)return(0,io.jsx)(vl,{});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,io.jsx)(io.Fragment,{children:(0,io.jsx)(Ji,{template:"table",children:(0,io.jsxs)(Al,{to:"response",loader:()=>Rl({content:s}),watch:JSON.stringify(n),children:[(0,io.jsx)(cx,{user:t.author}),(0,io.jsx)(Ll,{})]})})}):(0,io.jsx)(vl,{})})),dx="print_place_for_photo__WPPt6",ux=dn((e=>{let{user:t}=e;const{t:n}=Bt(),a=t,s=a.tasks.length;return(0,io.jsxs)(Ji,{children:[(0,io.jsxs)(nl,{children:[(0,io.jsx)(zw,{value:"",icon:"./assets/cards/work_days.png",title:"page.person.print.photo.title"}),(0,io.jsx)("div",{className:dx,children:n("page.person.print.photo.description")})]}),(0,io.jsxs)(nl,{children:[(0,io.jsx)(Wl,{title:a.author}),(0,io.jsxs)("div",{children:[(0,io.jsx)(zw,{value:a.daysWorked,icon:"./assets/cards/work_days.png",title:"page.person.total.daysWorked.title",description:"page.person.total.daysWorked.description"}),(0,io.jsx)(zw,{value:s||null,icon:"./assets/cards/tasks.png",title:"page.person.total.tasks.title",description:"page.person.total.tasks.description"}),(0,io.jsx)(zw,{value:a.daysLosses,icon:"./assets/cards/lazy.png",title:"page.team.total.daysLosses.title",description:"page.team.total.daysLosses.description"}),(0,io.jsx)(zw,{value:a.commits,icon:"./assets/cards/commits.png",title:"page.team.total.commits.title",description:"page.team.total.commits.description"})]})]})]})})),px=ux;function hx(e){let{title:t,achievements:n}=e;return null!==n&&void 0!==n&&n.length?(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Jo,{text:"# ".concat(t)}),(0,io.jsx)($_,{list:n})]}):null}const fx=dn((e=>{let{user:t}=e;const{t:n}=Bt(),a=t,s=ao.dataGrip.get.getsByAuthor[a.author],o=Nn.authors[a.author];return(0,io.jsxs)(Ji,{children:[(0,io.jsxs)(nl,{children:[(0,io.jsx)(Wl,{title:"page.person.achievement.title"}),(0,io.jsx)(hx,{title:"page.person.achievement.positive",achievements:o[yn-1]})]}),(0,io.jsxs)(nl,{children:[(0,io.jsx)(Wl,{title:n("_")}),(0,io.jsx)(hx,{title:"page.person.achievement.normal",achievements:o[vn-1]}),(0,io.jsx)(hx,{title:"page.person.achievement.negative",achievements:o[bn-1]}),(0,io.jsx)("br",{}),(0,io.jsx)("br",{}),null!==s&&void 0!==s&&s.length?(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Wl,{title:"page.person.gets.title"}),(0,io.jsx)(ex,{mode:"print",list:s}),(0,io.jsx)(Jo,{text:n("page.person.gets.description")})]}):null]})]})})),gx=fx,yx=dn((e=>{let{user:t}=e;const{t:n}=Bt();return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsxs)("div",{className:E_,children:[(0,io.jsx)("h1",{className:A_,children:n("page.print.title")}),(0,io.jsx)("h2",{className:D_,children:t.author}),(0,io.jsx)(C_,{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,io.jsx)(Jo,{text:n("page.print.description")})]}),(0,io.jsx)(h_,{}),(0,io.jsx)(px,{user:t}),(0,io.jsx)(K_,{user:t}),(0,io.jsx)(z_,{user:t}),(0,io.jsx)(h_,{}),(0,io.jsx)(gx,{user:t}),(0,io.jsx)(h_,{}),(0,io.jsx)(B_,{user:t}),(0,io.jsx)(rx,{user:t,mode:"print"}),(0,io.jsx)(h_,{}),(0,io.jsx)(ix,{user:t}),(0,io.jsx)(H_,{user:t,mode:"print"})]})})),vx=yx;const bx=dn((e=>{let{userId:n}=e;const{t:a}=Bt(),{type:s,page:o,userId:r}=Q(),i=ao.dataGrip.timestamp.statistic.allCommitsByTimestamp||[],l=i.length?i[i.length-1].week:0,[c,m]=(0,t.useState)({week:l}),d=ao.dataGrip.author.statistic[n||r||0];if("person"!==s||!d)return null;const u=function(e,t){return function(n){const a=di.processing?"print":void 0;return"total"===n?(0,io.jsx)(ax,{user:e}):"money"===n?(0,io.jsx)(z_,{user:e}):"week"===n?(0,io.jsx)(rx,{user:e,mode:a}):"month"===n?(0,io.jsx)(ix,{user:e}):"hours"===n?(0,io.jsx)(B_,{user:e}):"commits"===n?(0,io.jsx)(W_,{user:e}):"changes"===n?(0,io.jsx)(M_,{user:e}):"words"===n?(0,io.jsx)(H_,{user:e,mode:a}):"speed"===n?(0,io.jsx)(K_,{user:e}):"day"===n?(0,io.jsx)(mx,{user:e,filters:t}):"print"===n?(0,io.jsx)(vx,{user:e}):"tasks"===n?(0,io.jsx)(lx,{user:e}):(0,io.jsx)(ax,{user:e})}}(d,c);return(0,io.jsxs)(io.Fragment,{children:["print"!==o&&(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Wl,{title:a("common.filters")}),(0,io.jsx)(F_,{filters:c,onChange:m})]}),(0,io.jsx)($i,{getViewById:u})]})})),wx=bx,kx=dn((()=>{const e=ao.dataGrip.author.statistic,t=Object.entries(e).filter((e=>{let[,t]=e;return!t.isStaff})).map((e=>{let[t,n]=e;return(0,io.jsx)(vx,{user:n},t)}));return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(O_,{}),t]})})),_x="Console_console__5nFvk",xx="Console_console_header__XP1IR",Tx="Console_console_body__5PXuM",Sx="Console_console_header_icon__oXixF",Cx="Console_console_copy__LHjsv";function Ex(e){let{className:t,textForCopy:n,children:a}=e;return(0,io.jsxs)("div",{className:"".concat(_x," ").concat(t||""),children:[(0,io.jsxs)("div",{className:"".concat(xx),children:[(0,io.jsx)("span",{className:"".concat(Sx)}),(0,io.jsx)("span",{className:"".concat(Sx)}),(0,io.jsx)("span",{className:"".concat(Sx)})]}),(0,io.jsx)("div",{className:"".concat(Tx),children:a||n}),(0,io.jsx)(Eo,{mode:"second",className:"".concat(Cx),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),Tr.Z.show(xe.Z.get("uiKit.console.notification"))},children:xe.Z.get("uiKit.console.button")})]})}Ex.defaultProps={textForCopy:void 0,children:void 0,className:""};const Ax=Ex,Dx="styles_welcome__owZYZ",jx="styles_welcome_console__dmg4D",Ox="styles_welcome_row__rormW",Nx="styles_welcome_description__lB3jg",Px="styles_welcome_first_title__zay7R",Ix="styles_welcome_last_title__Ef7FS",Lx="styles_welcome_title_link__csDka";const Rx=function(){return(0,io.jsxs)(io.Fragment,{children:[!1,(0,io.jsx)("section",{className:Dx,children:(0,io.jsxs)("div",{className:Ox,children:[(0,io.jsx)("h2",{className:Px,children:xe.Z.get("page.welcome.step1")}),(0,io.jsx)(Ax,{className:jx,textForCopy:'git --no-pager log --raw --numstat --oneline --all --reverse --date=iso-strict --pretty=format:"%ad>%cN>%cE>%s" > log.txt\n'}),(0,io.jsx)(Jo,{text:xe.Z.get("page.welcome.description"),className:"".concat(Nx)}),(0,io.jsxs)("h2",{className:Ix,children:["page.welcome.step2"===xe.Z.get("page.welcome.step2")?"":xe.Z.get("page.welcome.step2"),(0,io.jsxs)("label",{className:Lx,children:[xe.Z.get("page.welcome.step3"),(0,io.jsx)("input",{multiple:!0,type:"file",style:{display:"none"},onChange:async e=>{const t=Array.from(e.target.files),n=await(0,so.BE)(t),a=(0,so.IM)(n);ao.setCommits(a)}})]}),xe.Z.get("page.welcome.step4")]})]})})]})};const Fx=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=Co(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,io.jsx)("button",{className:To.ui_kit_button_menu,onClick:()=>{i&&i(e),m(!1)},children:o},n)}));return(0,io.jsx)(io.Fragment,{children:(0,io.jsxs)("button",{title:n,className:"".concat(To.ui_kit_button," ").concat(d||""," ").concat(o||""),style:{position:"relative"},onClick:()=>{m(!c)},children:[l,c&&(0,io.jsx)("div",{className:To.ui_kit_dialog,children:u})]})})};const Mx=function(e){let{columns:t,className:n,children:a}=e;return(0,io.jsx)("div",{className:"".concat(Ur," ").concat(n||""),style:{columnCount:t||2},children:a})},Wx="switch_ui_kit_switch__ITpXv",Bx="switch_ui_kit_switch_item__oGEAZ",Ux="switch_ui_kit_switch_item_selected__poF9E",zx="switch_ui_kit_switch_item_disabled__7Inlc";const Hx=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=[Bx];return o&&l.push(Ux),r&&l.push(zx),(0,io.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,io.jsx)(Kr,{title:t,description:n,help:a,error:s,className:o,children:(0,io.jsx)("div",{className:Wx,children:p})})};function Gx(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,io.jsx)(Kr,{title:t,description:n,help:a,error:s,className:o,children:(0,io.jsx)("input",{type:"date",value:c,placeholder:i,className:$r,onChange:e=>{l&&l("".concat(e.target.value,"T00:00:00.000Z"))}})})}Gx.defaultProps={placeholder:"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435"};const Vx=Gx;const Kx=function(e){let{salary:n,index:a,onChange:s,onRemove:o}=e;const[r,i]=(0,t.useState)(!1);return(0,io.jsxs)("div",{className:Qr.salary,children:[(0,io.jsx)(Wl,{title:xe.Z.get("page.settings.user.subTitle",a),className:r?"":Qr.salary_title}),(0,io.jsx)("div",{className:Qr.salary_icons,children:(0,io.jsx)("img",{className:Qr.salary_icons_item,src:"./assets/list/arrow.svg",onClick:()=>i(!r)})}),r&&(0,io.jsxs)(io.Fragment,{children:[(0,io.jsxs)(Mx,{children:[(0,io.jsx)(Vx,{title:"page.settings.user.from",value:null===n||void 0===n?void 0:n.from,onChange:e=>{s({...n,from:e})}}),(0,io.jsx)(Hx,{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,io.jsxs)(Mx,{children:[(0,io.jsx)(Kw,{title:"page.settings.common.salary",value:null===n||void 0===n?void 0:n.value,onChange:e=>{s({...n,value:e})}}),(0,io.jsx)(Hx,{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,io.jsxs)(Mx,{children:[(0,io.jsx)(Kw,{title:"page.settings.common.workDaysInYear",value:null===n||void 0===n?void 0:n.workDaysInYear,onChange:e=>{s({...n,workDaysInYear:e})}}),(0,io.jsx)(Kw,{title:"page.settings.common.vacationDaysInYear",value:null===n||void 0===n?void 0:n.vacationDaysInYear,onChange:e=>{s({...n,vacationDaysInYear:e})}})]}),(0,io.jsx)("div",{className:Qr.salary_footer,children:(0,io.jsx)(Eo,{mode:"second",onClick:()=>Uo.open().then((()=>o())),children:xe.Z.get("page.settings.form.remove")})})]})]})};const $x=function(e){let{user:t,onChange:n,onRemove:a}=e;const s=t.salary.map(((e,a)=>(0,io.jsx)(Kx,{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,io.jsxs)(el,{className:Qr.user,onRemove:()=>Uo.open().then((()=>a())),children:[(0,io.jsx)(Wl,{title:(null===t||void 0===t?void 0:t.name)||"",className:Qr.user_title}),s,(0,io.jsx)("div",{className:Qr.user_footer,children:(0,io.jsx)(Eo,{mode:"slim",onClick:()=>{n({...t,salary:[...t.salary,In(Sr.state)]})},children:xe.Z.get("page.settings.form.addContract")})})]})},qx=dn((()=>{const e=Sr.state.defaultSalary;return e?(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Wl,{title:"page.settings.common.title"}),(0,io.jsxs)(el,{children:[(0,io.jsx)(Hx,{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=>{Sr.updateState("defaultSalary.type",null===e||void 0===e?void 0:e.id)}}),(0,io.jsx)(Hx,{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),Sr.updateState("defaultSalary.workDaysInWeek",t)}}),(0,io.jsxs)(Mx,{children:[(0,io.jsx)(Kw,{title:"page.settings.common.salary",value:e.value,onChange:e=>{Sr.updateState("defaultSalary.value",e)}}),(0,io.jsx)(Kw,{disabled:!0,title:"page.settings.common.tax",value:e.tax,onChange:e=>{Sr.updateState("defaultSalary.tax",e)}})]}),(0,io.jsxs)(Mx,{children:[(0,io.jsx)(Kw,{title:"page.settings.common.workDaysInYear",value:e.workDaysInYear,onChange:e=>{Sr.updateState("defaultSalary.workDaysInYear",e)}}),(0,io.jsx)(Kw,{title:"page.settings.common.vacationDaysInYear",value:e.vacationDaysInYear,onChange:e=>{Sr.updateState("defaultSalary.vacationDaysInYear",e)}})]}),(0,io.jsx)(Hx,{title:"page.settings.common.currency",value:e.currency,options:["USD","EUR","RUB","CNY","JPY","KRW","CAD"],onChange:e=>{Sr.updateState("defaultSalary.currency",e)}})]})]}):null})),Yx=qx,Zx=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,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Wl,{title:"page.settings.document.title"}),(0,io.jsxs)(el,{children:[(0,io.jsx)(jl,{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"),eo.C.title=!0}}),(0,io.jsx)(Jr,{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)}})]})]})})),Xx=dn((()=>{var e,t;return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Wl,{title:"page.settings.links.title"}),(0,io.jsxs)(el,{children:[(0,io.jsx)(jl,{title:"page.settings.links.task",value:null===(e=Sr.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=>{Sr.updateState("linksPrefix.task",e)}}),(0,io.jsx)(jl,{title:"page.settings.links.pr",value:Sr.state.linksPrefix.pr,placeholder:"https://bitbucket.com/projects/assayo/repos/frontend/pull-requests/",onChange:e=>{Sr.updateState("linksPrefix.pr",e)}})]})]})}));const Jx=function(){const e=ao.dataGrip.author.statistic.map((e=>"".concat(e.author," <").concat(e.firstCommit.email,"> <").concat(e.firstCommit.email,">"))).sort(),t=e.map((e=>(0,io.jsx)("p",{children:e},e))),n=e.join("\r\n");return(0,io.jsx)("div",{className:Qr.races_track,children:(0,io.jsx)(Ax,{textForCopy:n,children:t})})},Qx=dn((e=>{const t=Sr.state.employees;if(!e||!t)return null;const n=t.map((e=>e.name)),a=ao.dataGrip.author.list.filter((e=>!n.includes(e))).map(((e,t)=>({id:t,title:e}))),s=Sr.state.employees.map((e=>(0,io.jsx)($x,{user:e,onChange:n=>{const a=t.map((t=>t.id===e.id?n:t));Sr.updateState("employees",a)},onRemove:()=>{const n=t.filter((t=>t.id!==e.id));Sr.updateState("employees",n)}},e.id)));return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsxs)(Ji,{children:[(0,io.jsxs)(nl,{children:[(0,io.jsx)(Zx,{}),(0,io.jsx)(Xx,{}),(0,io.jsx)(Yx,{})]}),(0,io.jsxs)(nl,{children:[(0,io.jsx)(Wl,{title:"page.settings.user.title"}),t.length>0?s:(0,io.jsx)(vl,{message:"page.settings.user.notFound"}),a.length&&(0,io.jsx)("div",{className:Qr.buttons_footer,children:(0,io.jsx)(Fx,{options:a,onClick:e=>{Sr.updateState("employees",[...t,Ln(null===e||void 0===e?void 0:e.title,Sr.state,null===n||void 0===n?void 0:n.length)])},children:xe.Z.get("page.settings.form.addEmployee")})})]})]}),(0,io.jsxs)(Ji,{children:[(0,io.jsx)(Wl,{title:"page.settings.mailmap"}),(0,io.jsx)(Jx,{})]})]})})),eT=dn((()=>(0,io.jsx)(Al,{to:"response",loader:()=>Fn.loadSettings().then((e=>(Sr.setInitState(e),Promise.resolve(e)))),children:(0,io.jsx)(Qx,{})})));function tT(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}):tT(a,t)}return t}const nT=function(){const e=tT(xe.Z.translations[xe.Z.language].recommendations).map((e=>(0,io.jsx)(Yv,{recommendation:e},e[1]))),t=Object.entries(wn).sort(((e,t)=>e[1]-t[1])).map((e=>{let[t]=e;return(0,io.jsx)(Hk,{code:t},t)}));return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(Wl,{title:"page.person.achievement.title"}),(0,io.jsx)("div",{style:{columnCount:3,marginBottom:"24px"},children:t}),(0,io.jsx)("section",{children:e})]})};function aT(e){let{showSplashScreen:t}=e;return(0,io.jsxs)(io.Fragment,{children:[(0,io.jsx)(zo,{}),(0,io.jsxs)(de,{children:[(0,io.jsx)(ce,{path:"/settings",element:(0,io.jsx)(Bi,{children:(0,io.jsx)(eT,{})})}),(0,io.jsx)(ce,{path:"/debug",element:(0,io.jsx)(Bi,{children:(0,io.jsx)(nT,{})})}),(0,io.jsx)(ce,{path:"/print",element:(0,io.jsx)(Bi,{children:(0,io.jsx)(kx,{})})}),(0,io.jsx)(ce,{path:"/:type/:page",element:(0,io.jsx)(Bi,{children:(0,io.jsx)(L_,{})})}),(0,io.jsx)(ce,{path:"/:type/:page/:userId",element:(0,io.jsx)(Bi,{children:(0,io.jsx)(wx,{})})}),(0,io.jsx)(ce,{path:"*",element:(0,io.jsx)(Bi,{children:(0,io.jsx)(L_,{})})})]}),t&&(0,io.jsx)(xo,{})]})}function sT(){return(0,io.jsx)(de,{children:(0,io.jsx)(ce,{path:"*",element:(0,io.jsx)(Rx,{})})})}const oT=dn((()=>{const[e,n]=(0,t.useState)(!0),a=ao.status;return(0,t.useEffect)((()=>{var e;ao.setCommits((null===(e=window)||void 0===e?void 0:e.report)||[])}),[]),a===to.PROCESSING?null:(0,io.jsxs)(io.Fragment,{children:[a===to.DONE&&(0,io.jsx)(aT,{showSplashScreen:e}),a===to.WAITING&&(0,io.jsx)(sT,{}),(0,io.jsx)(lo,{onChange:(e,t)=>{n(!1),"dump"===e&&ao.setCommits(t),setTimeout((()=>{n(!0)}))}})]})})),rT=oT,iT=dn((()=>{const{state:e,isInitialization:t}=hn;return(0,io.jsx)(rT,{})})),lT="styles_notifications__87i8g",cT="styles_notifications_item__5QkTA",mT="styles_notifications_item_error__scoxJ",dT="styles_notifications_item_warning__L7TAD",uT="styles_notifications_item_success__Kkmlt",pT="styles_notifications_item_info__i59W4",hT="styles_notifications_item_title__nX-MS",fT="styles_notifications_item_description__ehatL";const gT=function(e){let{message:t}=e;const n={error:mT,warning:dT,success:uT,info:pT}[t.type||"success"]||pT;return(0,io.jsxs)("div",{className:"".concat(cT," ").concat(n),children:[t.title&&(0,io.jsx)("h6",{className:hT,children:t.title}),t.description&&(0,io.jsx)("p",{className:fT,children:t.description})]})},yT=dn((()=>{const e=Tr.Z.messages.map((e=>(0,io.jsx)(gT,{message:e},e.id)));return a.createPortal((0,io.jsx)("div",{className:lT,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,eo.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),uo.setUrlParameters(e),Wn.loadUserSettings().then((()=>{window.onafterprint=()=>{di.endPrint()},(0,a.render)((0,io.jsx)(t.StrictMode,{children:(0,io.jsxs)(ve,{children:[(0,io.jsx)(iT,{}),(0,io.jsx)(yT,{})]})}),document.getElementById("root"))}))}))})()})();
-//# sourceMappingURL=main.345a7d32.js.map
\ No newline at end of file
+/*! For license information please see main.f62be6c2.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=d;const u=d},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:()=>je,Gf:()=>Ut,LO:()=>Ce,aD:()=>Dt,jQ:()=>Wt,ky:()=>dn,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){j(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):jt(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,m,d,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!=(m=t.options_)&&m.bound?null!=(d=e.proxy_)?d: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&&(!j(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_:me}}function ce(e,t,n){return null===this.extend_(e,t,n,!1)?0:1}function me(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 de=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 je.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?jt.bound:jt).make_(e,t,n,a);var m,d=!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!=(m=e.proxy_)?m:e.target_));return d.make_(e,t,n,a)}function he(e,t,n,a){var s,o,r;if(n.get)return je.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),De=oe("computed.struct",{equals:$.structural}),je=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(je,Ae),je.struct=U(De);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),m={runAsAction_:i,prevDerivation_:r,prevAllowStateChanges_:l,prevAllowStateReads_:c,notifySpy_:s,startTime_:o,actionId_:Pe++,parentActionId_:Ne};return Ne=m.actionId_,m}(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 D(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 D(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_&&mt(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--;)mt(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 mt(e,t){e.observers_.delete(t),0===e.observers_.size&&dt(e)}function dt(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&&dt(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 Dt=At(!1);Object.assign(Dt,Tt);var jt=At(!0);function Ot(e){return y(e)&&!0===e.isMobxAction}function Nt(e,t){var n,a;void 0===t&&(t=d);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(jt,Ct),Dt.bound=U(St),jt.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=Dt(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=Dt(a+" - runid: "+o+" - yield "+s++,r.next).call(r,e)}catch(l){return n(l)}m(t)}function c(e){var t;i=void 0;try{t=Dt(a+" - runid: "+o+" - yield "+s++,r.throw).call(r,e)}catch(l){return n(l)}m(t)}function m(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(m,n)}e=n,l(void 0)}));return l.cancel=Dt(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=m),nn(this)){var o=sn(this,{object:this.proxy_,type:un,index:e,removedCount:t,added:n});if(!o)return m;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 Dn,jn,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 m,d=W(s.entries());!(m=d()).done;){var u=m.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={};Dn=Symbol.iterator,jn=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 m=(a=a||[]).length;m--;)if(a[m]===e)return s[m]===t;if(a.push(e),s.push(t),i){if((m=e.length)!==t.length)return!1;for(;m--;)if(!ra(e[m],t[m],n-1,a,s))return!1}else{var d,u=Object.keys(e);if(m=u.length,Object.keys(t).length!==m)return!1;for(;m--;)if(!j(t,d=u[m])||!ra(e[d],t[d],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!!d.call(h,e)||!d.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"),D=Symbol.for("react.suspense"),j=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 D:return"Suspense";case j: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 me(e,t)}))}:me);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,mt=4194304;function dt(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=dt(i):0!==(o&=r)&&(a=dt(o))}else 0!==(r=n&~s)?a=dt(r):0!==o&&(a=dt(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 mn("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(m){var Jn;if(m){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 da(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?da(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&&da(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=ma(n,o);var r=ma(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 mn("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}m&&(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"),Da=Sa("transitionend"),ja=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){ja.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),Ds=Ts(!1),js=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(Ds),Ss(As)}function Is(e,t,n){if(As.current!==Es)throw Error(o(168));Cs(As,t),Cs(Ds,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,js=As.current,Cs(As,e),Cs(Ds,Ds.current),!0}function Fs(e,t,n){var a=e.stateNode;if(!a)throw Error(o(169));n?(e=Ls(e,t,js),a.__reactInternalMemoizedMergedChildContext=e,Ss(Ds),Ss(As),Cs(As,e)):Ss(Ds),Cs(Ds,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=d,d=null):g=d.sibling;var y=p(s,d,i[f],l);if(null===y){null===d&&(d=g);break}e&&d&&null===y.alternate&&t(s,d),o=r(y,o,f),null===m?c=y:m.sibling=y,m=y,d=g}if(f===i.length)return n(s,d),so&&Js(s,f),c;if(null===d){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===d?m=b:d.sibling=b,d=b,f=y}if(v.done)return n(s,f),so&&Js(s,g),m;if(null===f){for(;!v.done;g++,v=l.next())null!==(v=u(s,v.value,c))&&(i=r(v,i,g),null===d?m=v:d.sibling=v,d=v);return so&&Js(s,g),m}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===d?m=v:d.sibling=v,d=v);return e&&f.forEach((function(e){return t(s,e)})),so&&Js(s,g),m}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,m=o;null!==m;){if(m.key===c){if((c=r.type)===x){if(7===m.tag){n(a,m.sibling),(o=s(m,r.props.children)).return=a,a=o;break e}}else if(m.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===N&&Yo(c)===m.type){n(a,m.sibling),(o=s(m,r.props)).ref=$o(a,m,r),o.return=a,a=o;break e}n(a,m);break}t(a,m),m=m.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(m=r.key;null!==o;){if(o.key===m){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,(m=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 mr=[];function dr(){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=Do(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=Do(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===Dl)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=Dl.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:Dr,useRef:Br,useState:function(){return Dr(Ar)},useDebugValue:Yr,useDeferredValue:function(e){return Jr(Er(),gr.memoizedState,e)},useTransition:function(){return[Dr(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:jr,useRef:Br,useState:function(){return jr(Ar)},useDebugValue:Yr,useDeferredValue:function(e){var t=Er();return null===gr?t.memoizedState=e:Jr(t,gr.memoizedState,e)},useTransition:function(){return[jr(Ar)[0],Er().memoizedState]},useMutableSource:Or,useSyncExternalStore:Nr,useId:ei,unstable_isNewReconciler:!1};function mi(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 di(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)?js: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)?js:As.current);var m=n.getDerivedStateFromProps,d="function"===typeof m||"function"===typeof r.getSnapshotBeforeUpdate;d||"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||Ds.current||Oo?("function"===typeof m&&(Uo(t,n,m,a),l=t.memoizedState),(i=Oo||Ho(t,n,i,a,u,l,c))?(d||"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,d=t.pendingProps,u=r.context,"object"===typeof(l=n.contextType)&&null!==l?l=Co(l):l=Os(t,l=Ns(n)?js:As.current);var p=n.getDerivedStateFromProps;(m="function"===typeof p||"function"===typeof r.getSnapshotBeforeUpdate)||"function"!==typeof r.UNSAFE_componentWillReceiveProps&&"function"!==typeof r.componentWillReceiveProps||(i!==d||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!==d||u!==h||Ds.current||Oo?("function"===typeof p&&(Uo(t,n,p,a),h=t.memoizedState),(c=Oo||Ho(t,n,c,a,u,h,l)||!1)?(m||"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 Di(e,t,n,a,o,s)}function Di(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 ji(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=di(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=di(r=Error(o(419)),a,void 0))}if(l=0!==(i&e.childLanes),wi||l){if(null!==(a=Dl)){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,jo(e,s),nc(a,e,s,-1))}return fc(),Wi(e,t,i,a=di(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(Ds),Ss(As),dr(),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 dc(),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(Ds),Ss(As),dr(),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 dc(),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(m in ve(n,a),n=null,s)if(!a.hasOwnProperty(m)&&s.hasOwnProperty(m)&&null!=s[m])if("style"===m){var l=s[m];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==m&&"children"!==m&&"suppressContentEditableWarning"!==m&&"suppressHydrationWarning"!==m&&"autoFocus"!==m&&(i.hasOwnProperty(m)?r||(r=[]):(r=r||[]).push(m,null));for(m in a){var c=a[m];if(l=null!=s?s[m]:void 0,a.hasOwnProperty(m)&&c!==l&&(null!=c||null!=l))if("style"===m)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(m,n)),n=c;else"dangerouslySetInnerHTML"===m?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(r=r||[]).push(m,c)):"children"===m?"string"!==typeof c&&"number"!==typeof c||(r=r||[]).push(m,""+c):"suppressContentEditableWarning"!==m&&"suppressHydrationWarning"!==m&&(i.hasOwnProperty(m)?(null!=c&&"onScroll"===m&&Wa("scroll",e),r||l===c||(r=[])):(r=r||[]).push(m,c))}n&&(r=r||[]).push("style",n);var m=r;(t.updateQueue=m)&&(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 ml=null,dl=!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=ml,s=dl;ml=null,ul(e,t,n),dl=s,null!==(ml=a)&&(dl?(e=ml,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):ml.removeChild(n.stateNode));break;case 18:null!==ml&&(dl?(e=ml,n=n.stateNode,8===e.nodeType?ls(e.parentNode,n):1===e.nodeType&&ls(e,n),zt(e)):ls(ml,n.stateNode));break;case 4:a=ml,s=dl,ml=n.stateNode.containerInfo,dl=!0,ul(e,t,n),ml=a,dl=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=mt,0===(130023424&(mt<<=1))&&(mt=4194304)));var n=ec();null!==(e=jo(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 Dc(e,t){return $e(e,t)}function jc(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 jc(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 D:return(e=Oc(13,n,t,s)).elementType=D,e.lanes=r,e;case j:return(e=Oc(19,n,t,s)).elementType=j,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,m=null;for(a in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(m=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:m,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"),m=Symbol.for("react.suspense"),d=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