Lines Matching refs:NULL

3 var r;r=function(e){e.version="1.2.2";var t=function(){for(var e=0,t=new Array(256),r=0;256!=r;++r)e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=1&(e=r)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1)?-306674912^e>>>1:e>>>1,t[r]=e;return"undefined"!=typeof Int32Array?new Int32Array(t):t}(),r=function(e){var t=0,r=0,n=0,i="undefined"!=typeof Int32Array?new Int32Array(4096):new Array(4096);for(n=0;256!=n;++n)i[n]=e[n];for(n=0;256!=n;++n)for(r=e[n],t=256+n;t<4096;t+=256)r=i[t]=r>>>8^e[255&r];var a=[];for(n=1;16!=n;++n)a[n-1]="undefined"!=typeof Int32Array?i.subarray(256*n,256*n+256):i.slice(256*n,256*n+256);return a}(t),n=r[0],i=r[1],a=r[2],o=r[3],s=r[4],c=r[5],l=r[6],u=r[7],d=r[8],p=r[9],f=r[10],m=r[11],g=r[12],_=r[13],h=r[14];e.table=t,e.bstr=function(e,r){for(var n=~r,i=0,a=e.length;i<a;)n=n>>>8^t[255&(n^e.charCodeAt(i++))];return~n},e.buf=function(e,r){for(var y=~r,v=e.length-15,b=0;b<v;)y=h[e[b++]^255&y]^_[e[b++]^y>>8&255]^g[e[b++]^y>>16&255]^m[e[b++]^y>>>24]^f[e[b++]]^p[e[b++]]^d[e[b++]]^u[e[b++]]^l[e[b++]]^c[e[b++]]^s[e[b++]]^o[e[b++]]^a[e[b++]]^i[e[b++]]^n[e[b++]]^t[e[b++]];for(v+=15;b<v;)y=y>>>8^t[255&(y^e[b++])];return~y},e.str=function(e,r){for(var n=~r,i=0,a=e.length,o=0,s=0;i<a;)(o=e.charCodeAt(i++))<128?n=n>>>8^t[255&(n^o)]:o<2048?n=(n=n>>>8^t[255&(n^(192|o>>6&31))])>>>8^t[255&(n^(128|63&o))]:o>=55296&&o<57344?(o=64+(1023&o),s=1023&e.charCodeAt(i++),n=(n=(n=(n=n>>>8^t[255&(n^(240|o>>8&7))])>>>8^t[255&(n^(128|o>>2&63))])>>>8^t[255&(n^(128|s>>6&15|(3&o)<<4))])>>>8^t[255&(n^(128|63&s))]):n=(n=(n=n>>>8^t[255&(n^(224|o>>12&15))])>>>8^t[255&(n^(128|o>>6&63))])>>>8^t[255&(n^(128|63&o))];return~n}},"undefined"==typeof DO_NOT_EXPORT_CRC?r(t):r({})},74353:function(e){e.exports=function(){"use strict";var e=1e3,t=6e4,r=36e5,n="millisecond",i="second",a="minute",o="hour",s="day",c="week",l="month",u="quarter",d="year",p="date",f="Invalid Date",m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,g=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(e){var t=["th","st","nd","rd"],r=e%100;return"["+e+(t[(r-20)%10]||t[r]||t[0])+"]"}},h=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},y={s:h,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),i=r%60;return(t<=0?"+":"-")+h(n,2,"0")+":"+h(i,2,"0")},m:function e(t,r){if(t.date()<r.date())return-e(r,t);var n=12*(r.year()-t.year())+(r.month()-t.month()),i=t.clone().add(n,l),a=r-i<0,o=t.clone().add(n+(a?-1:1),l);return+(-(n+(r-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:p,h:o,m:a,s:i,ms:n,Q:u}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},v="en",b={};b[v]=_;var k="$isDayjsObject",x=function(e){return e instanceof w||!(!e||!e[k])},E=function e(t,r,n){var i;if(!t)return v;if("string"==typeof t){var a=t.toLowerCase();b[a]&&(i=a),r&&(b[a]=r,i=a);var o=t.split("-");if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!n&&i&&(v=i),i||!n&&v},S=function(e,t){if(x(e))return e.clone();var r="object"==typeof t?t:{};return r.date=e,r.args=arguments,new w(r)},D=y;D.l=E,D.i=x,D.w=function(e,t){return S(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var w=function(){function _(e){this.$L=E(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[k]=!0}var h=_.prototype;return h.parse=function(e){this.$d=function(e){var t=e.date,r=e.utc;if(null===t)return new Date(NaN);if(D.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var n=t.match(m);if(n){var i=n[2]-1||0,a=(n[7]||"0").substring(0,3);return r?new Date(Date.UTC(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)):new Date(n[1],i,n[3]||1,n[4]||0,n[5]||0,n[6]||0,a)}}return new Date(t)}(e),this.init()},h.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},h.$utils=function(){return D},h.isValid=function(){return!(this.$d.toString()===f)},h.isSame=function(e,t){var r=S(e);return this.startOf(t)<=r&&r<=this.endOf(t)},h.isAfter=function(e,t){return S(e)<this.startOf(t)},h.isBefore=function(e,t){return this.endOf(t)<S(e)},h.$g=function(e,t,r){return D.u(e)?this[t]:this.set(r,e)},h.unix=function(){return Math.floor(this.valueOf()/1e3)},h.valueOf=function(){return this.$d.getTime()},h.startOf=function(e,t){var r=this,n=!!D.u(t)||t,u=D.p(e),f=function(e,t){var i=D.w(r.$u?Date.UTC(r.$y,t,e):new Date(r.$y,t,e),r);return n?i:i.endOf(s)},m=function(e,t){return D.w(r.toDate()[e].apply(r.toDate("s"),(n?[0,0,0,0]:[23,59,59,999]).slice(t)),r)},g=this.$W,_=this.$M,h=this.$D,y="set"+(this.$u?"UTC":"");switch(u){case d:return n?f(1,0):f(31,11);case l:return n?f(1,_):f(0,_+1);case c:var v=this.$locale().weekStart||0,b=(g<v?g+7:g)-v;return f(n?h-b:h+(6-b),_);case s:case p:return m(y+"Hours",0);case o:return m(y+"Minutes",1);case a:return m(y+"Seconds",2);case i:return m(y+"Milliseconds",3);default:return this.clone()}},h.endOf=function(e){return this.startOf(e,!1)},h.$set=function(e,t){var r,c=D.p(e),u="set"+(this.$u?"UTC":""),f=(r={},r[s]=u+"Date",r[p]=u+"Date",r[l]=u+"Month",r[d]=u+"FullYear",r[o]=u+"Hours",r[a]=u+"Minutes",r[i]=u+"Seconds",r[n]=u+"Milliseconds",r)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var g=this.clone().set(p,1);g.$d[f](m),g.init(),this.$d=g.set(p,Math.min(this.$D,g.daysInMonth())).$d}else f&&this.$d[f](m);return this.init(),this},h.set=function(e,t){return this.clone().$set(e,t)},h.get=function(e){return this[D.p(e)]()},h.add=function(n,u){var p,f=this;n=Number(n);var m=D.p(u),g=function(e){var t=S(f);return D.w(t.date(t.date()+Math.round(e*n)),f)};if(m===l)return this.set(l,this.$M+n);if(m===d)return this.set(d,this.$y+n);if(m===s)return g(1);if(m===c)return g(7);var _=(p={},p[a]=t,p[o]=r,p[i]=e,p)[m]||1,h=this.$d.getTime()+n*_;return D.w(h,this)},h.subtract=function(e,t){return this.add(-1*e,t)},h.format=function(e){var t=this,r=this.$locale();if(!this.isValid())return r.invalidDate||f;var n=e||"YYYY-MM-DDTHH:mm:ssZ",i=D.z(this),a=this.$H,o=this.$m,s=this.$M,c=r.weekdays,l=r.months,u=r.meridiem,d=function(e,r,i,a){return e&&(e[r]||e(t,n))||i[r].slice(0,a)},p=function(e){return D.s(a%12||12,e,"0")},m=u||function(e,t,r){var n=e<12?"AM":"PM";return r?n.toLowerCase():n};return n.replace(g,(function(e,n){return n||function(e){switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return D.s(t.$y,4,"0");case"M":return s+1;case"MM":return D.s(s+1,2,"0");case"MMM":return d(r.monthsShort,s,l,3);case"MMMM":return d(l,s);case"D":return t.$D;case"DD":return D.s(t.$D,2,"0");case"d":return String(t.$W);case"dd":return d(r.weekdaysMin,t.$W,c,2);case"ddd":return d(r.weekdaysShort,t.$W,c,3);case"dddd":return c[t.$W];case"H":return String(a);case"HH":return D.s(a,2,"0");case"h":return p(1);case"hh":return p(2);case"a":return m(a,o,!0);case"A":return m(a,o,!1);case"m":return String(o);case"mm":return D.s(o,2,"0");case"s":return String(t.$s);case"ss":return D.s(t.$s,2,"0");case"SSS":return D.s(t.$ms,3,"0");case"Z":return i}return null}(e)||i.replace(":","")}))},h.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},h.diff=function(n,p,f){var m,g=this,_=D.p(p),h=S(n),y=(h.utcOffset()-this.utcOffset())*t,v=this-h,b=function(){return D.m(g,h)};switch(_){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(v-y)/6048e5;break;case s:m=(v-y)/864e5;break;case o:m=v/r;break;case a:m=v/t;break;case i:m=v/e;break;default:m=v}return f?m:D.a(m)},h.daysInMonth=function(){return this.endOf(l).$D},h.$locale=function(){return b[this.$L]},h.locale=function(e,t){if(!e)return this.$L;var r=this.clone(),n=E(e,t,!0);return n&&(r.$L=n),r},h.clone=function(){return D.w(this.$d,this)},h.toDate=function(){return new Date(this.valueOf())},h.toJSON=function(){return this.isValid()?this.toISOString():null},h.toISOString=function(){return this.$d.toISOString()},h.toString=function(){return this.$d.toUTCString()},_}(),T=w.prototype;return S.prototype=T,[["$ms",n],["$s",i],["$m",a],["$H",o],["$W",s],["$M",l],["$y",d],["$D",p]].forEach((function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),S.extend=function(e,t){return e.$i||(e(t,w,S),e.$i=!0),S},S.locale=E,S.isDayjs=x,S.unix=function(e){return S(1e3*e)},S.en=b[v],S.Ls=b,S.p={},S}()},90445:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,n=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,a={},o=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),r=60*t[1]+(+t[2]||0);return 0===r?0:"+"===t[0]?-r:r}(e)}],l=function(e){var t=a[e];return t&&(t.indexOf?t:t.s.concat(t.f))},u=function(e,t){var r,n=a.meridiem;if(n){for(var i=1;i<=24;i+=1)if(e.indexOf(n(i,0,t))>-1){r=i>12;break}}else r=e===(t?"pm":"PM");return r},d={A:[i,function(e){this.afternoon=u(e,!1)}],a:[i,function(e){this.afternoon=u(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[n,s("seconds")],ss:[n,s("seconds")],m:[n,s("minutes")],mm:[n,s("minutes")],H:[n,s("hours")],h:[n,s("hours")],HH:[n,s("hours")],hh:[n,s("hours")],D:[n,s("day")],DD:[r,s("day")],Do:[i,function(e){var t=a.ordinal,r=e.match(/\d+/);if(this.day=r[0],t)for(var n=1;n<=31;n+=1)t(n).replace(/\[|\]/g,"")===e&&(this.day=n)}],M:[n,s("month")],MM:[r,s("month")],MMM:[i,function(e){var t=l("months"),r=(l("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(r<1)throw new Error;this.month=r%12||r}],MMMM:[i,function(e){var t=l("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[r,function(e){this.year=o(e)}],YYYY:[/\d{4}/,s("year")],Z:c,ZZ:c};function p(r){var n,i;n=r,i=a&&a.formats;for(var o=(r=n.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,n){var a=n&&n.toUpperCase();return r||i[n]||e[n]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,r){return t||r.slice(1)}))}))).match(t),s=o.length,c=0;c<s;c+=1){var l=o[c],u=d[l],p=u&&u[0],f=u&&u[1];o[c]=f?{regex:p,parser:f}:l.replace(/^\[|\]$/g,"")}return function(e){for(var t={},r=0,n=0;r<s;r+=1){var i=o[r];if("string"==typeof i)n+=i.length;else{var a=i.regex,c=i.parser,l=e.slice(n),u=a.exec(l)[0];c.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var r=e.hours;t?r<12&&(e.hours+=12):12===r&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,r){r.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(o=e.parseTwoDigitYear);var n=t.prototype,i=n.parse;n.parse=function(e){var t=e.date,n=e.utc,o=e.args;this.$u=n;var s=o[1];if("string"==typeof s){var c=!0===o[2],l=!0===o[3],u=c||l,d=o[2];l&&(d=o[2]),a=this.$locale(),!c&&d&&(a=r.Ls[d]),this.$d=function(e,t,r){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var n=p(t)(e),i=n.year,a=n.month,o=n.day,s=n.hours,c=n.minutes,l=n.seconds,u=n.milliseconds,d=n.zone,f=new Date,m=o||(i||a?1:f.getDate()),g=i||f.getFullYear(),_=0;i&&!a||(_=a>0?a-1:f.getMonth());var h=s||0,y=c||0,v=l||0,b=u||0;return d?new Date(Date.UTC(g,_,m,h,y,v,b+60*d.offset*1e3)):r?new Date(Date.UTC(g,_,m,h,y,v,b)):new Date(g,_,m,h,y,v,b)}catch(e){return new Date("")}}(t,s,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),a={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){o[1]=s[m-1];var g=r.apply(this,o);if(g.isValid()){this.$d=g.$d,this.$L=g.$L,this.init();break}m===f&&(this.$d=new Date(""))}else i.call(this,e)}}}()},83826:function(e){e.exports=function(){"use strict";var e="minute",t=/[+-]\d\d(?::?\d\d)?/g,r=/([+-]|\d\d)/g;return function(n,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var r=a(this.toDate(),{locale:this.$L,utc:!0});return t?r.add(this.utcOffset(),e):r},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(n,i){var a=this.$utils().u;if(a(n))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if("string"==typeof n&&(n=function(e){void 0===e&&(e="");var n=e.match(t);if(!n)return null;var i=(""+n[0]).match(r)||["-",0,0],a=i[0],o=60*+i[1]+ +i[2];return 0===o?0:"+"===a?o:-o}(n),null===n))return this;var o=Math.abs(n)<=16?60*n:n,s=this;if(i)return s.$offset=o,s.$u=0===n,s;if(0!==n){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c}else s=this.utc();return s};var u=o.format;o.format=function(e){var t=e||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return"s"===e&&this.$offset?a(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var p=o.diff;o.diff=function(e,t,r){if(e&&this.$u===e.$u)return p.call(this,e,t,r);var n=this.local(),i=a(e).local();return p.call(n,i,t,r)}}}()},87450:(e,t,r)=>{"use strict";var n=r(35053);function i(e,t,r){void 0===r&&(r=t,t=e,e=null),n.Duplex.call(this,e),"function"!=typeof r.read&&(r=new n.Readable(e).wrap(r)),this._writable=t,this._readable=r,this._waiting=!1;var i=this;t.once("finish",(function(){i.end()})),this.once("finish",(function(){t.end()})),r.on("readable",(function(){i._waiting&&(i._waiting=!1,i._read())})),r.once("end",(function(){i.push(null)})),e&&void 0!==e.bubbleErrors&&!e.bubbleErrors||(t.on("error",(function(e){i.emit("error",e)})),r.on("error",(function(e){i.emit("error",e)})))}i.prototype=Object.create(n.Duplex.prototype,{constructor:{value:i}}),i.prototype._write=function(e,t,r){this._writable.write(e,t,r)},i.prototype._read=function(){for(var e,t=0;null!==(e=this._readable.read());)this.push(e),t++;0===t&&(this._waiting=!0)},e.exports=function(e,t,r){return new i(e,t,r)},e.exports.DuplexWrapper=i},44849:(e,t,r)=>{"use strict";var n=r(33225),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=d;var a=Object.create(r(15622));a.inherits=r(72017);var o=r(5335),s=r(75675);a.inherits(d,o);for(var c=i(s.prototype),l=0;l<c.length;l++){var u=c[l];d.prototype[u]||(d.prototype[u]=s.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},11557:(e,t,r)=>{"use strict";e.exports=a;var n=r(31719),i=Object.create(r(15622));function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}i.inherits=r(72017),i.inherits(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},5335:(e,t,r)=>{"use strict";var n=r(33225);e.exports=y;var i,a=r(64634);y.ReadableState=h;r(24434).EventEmitter;var o=function(e,t){return e.listeners(t).length},s=r(13961),c=r(92861).Buffer,l=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u=Object.create(r(15622));u.inherits=r(72017);var d=r(39023),p=void 0;p=d&&d.debuglog?d.debuglog("stream"):function(){};var f,m=r(46631),g=r(72351);u.inherits(y,s);var _=["error","close","destroy","pause","resume"];function h(e,t){e=e||{};var n=t instanceof(i=i||r(44849));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var a=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:n&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(83141).I),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function y(e){if(i=i||r(44849),!(this instanceof y))return new y(e);this._readableState=new h(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function v(e,t,r,n,i){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,E(e)}(e,o)):(i||(a=function(e,t){var r;n=t,c.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):b(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?b(e,o,t,!1):D(e,o)):b(e,o,t,!1))):n||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function b(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&E(e)),D(e,t)}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(e,t){this.push(null),t(e)},y.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),v(this,e,t,!1,r)},y.prototype.unshift=function(e){return v(this,e,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(e){return f||(f=r(83141).I),this._readableState.decoder=new f(e),this._readableState.encoding=e,this};var k=8388608;function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(S,e):S(e))}function S(e){p("emit readable"),e.emit("readable"),A(e)}function D(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(w,e,t))}function w(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function T(e){p("readable nexttick read 0"),e.read(0)}function C(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),0===(e-=o)){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}y.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):E(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&P(this),null;var n,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(r,t))),null===(n=e>0?N(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,p("pipe count=%d opts=%j",i.pipesCount,t);var s=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?l:y;function c(t,n){p("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p("cleanup"),e.removeListener("close",_),e.removeListener("finish",h),e.removeListener("drain",u),e.removeListener("error",g),e.removeListener("unpipe",c),r.removeListener("end",l),r.removeListener("end",y),r.removeListener("data",m),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function l(){p("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",c);var u=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,A(e))}}(r);e.on("drain",u);var d=!1;var f=!1;function m(t){p("ondata"),f=!1,!1!==e.write(t)||f||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==F(i.pipes,e))&&!d&&(p("false write response, pause",i.awaitDrain),i.awaitDrain++,f=!0),r.pause())}function g(t){p("onerror",t),y(),e.removeListener("error",g),0===o(e,"error")&&e.emit("error",t)}function _(){e.removeListener("finish",h),y()}function h(){p("onfinish"),e.removeListener("close",_),y()}function y(){p("unpipe"),r.unpipe(e)}return r.on("data",m),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",_),e.once("finish",h),e.emit("pipe",r),i.flowing||(p("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=F(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},y.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&E(this):n.nextTick(T,this))}return r},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(C,e,t))}(this,e)),this},y.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(p("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(p("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<_.length;a++)e.on(_[a],this.emit.bind(this,_[a]));return this._read=function(t){p("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=N},31719:(e,t,r)=>{"use strict";e.exports=o;var n=r(44849),i=Object.create(r(15622));function a(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);n.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){c(e,t,r)})):c(this,null,null)}function c(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(72017),i.inherits(o,n),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},75675:(e,t,r)=>{"use strict";var n=r(33225);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=_;var a,o=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;_.WritableState=g;var s=Object.create(r(15622));s.inherits=r(72017);var c={deprecate:r(27983)},l=r(13961),u=r(92861).Buffer,d=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var p,f=r(72351);function m(){}function g(e,t){a=a||r(44849),e=e||{};var s=t instanceof a;this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,l=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:s&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,a){--t.pendingcb,r?(n.nextTick(a,i),n.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),x(e,t))}(e,r,i,t,a);else{var s=b(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||v(e,r),i?o(y,e,r,s,a):y(e,r,s,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function _(e){if(a=a||r(44849),!(p.call(_,this)||this instanceof a))return new _(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function h(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function y(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),x(e,t)}function v(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,a=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,c=!0;r;)a[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;a.allBuffers=c,h(e,t,!0,t.length,a,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,d=r.callback;if(h(e,t,!1,t.objectMode?1:l.length,l,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function b(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),x(e,t)}))}function x(e,t){var r=b(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,n.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}s.inherits(_,l),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===_&&(e&&e._writableState instanceof g)}})):p=function(e){return e instanceof this},_.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},_.prototype.write=function(e,t,r){var i,a=this._writableState,o=!1,s=!a.objectMode&&(i=e,u.isBuffer(i)||i instanceof d);return s&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof r&&(r=m),a.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),n.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var a=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),n.nextTick(i,o),a=!1),a}(this,a,e,r))&&(a.pendingcb++,o=function(e,t,r,n,i,a){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r));return t}(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else h(e,t,!1,s,n,i,a);return c}(this,a,s,e,t,r)),o},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||v(this,e))},_.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},_.prototype._writev=null,_.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,x(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(_.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),_.prototype.destroy=f.destroy,_.prototype._undestroy=f.undestroy,_.prototype._destroy=function(e,t){this.end(),t(e)}},46631:(e,t,r)=>{"use strict";var n=r(92861).Buffer,i=r(39023);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t,r,i,a=n.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=a,i=s,t.copy(r,i),s+=o.data.length,o=o.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},72351:(e,t,r)=>{"use strict";var n=r(33225);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},13961:(e,t,r)=>{e.exports=r(2203)},35053:(e,t,r)=>{var n=r(2203);"disable"===process.env.READABLE_STREAM&&n?(e.exports=n,(t=e.exports=n.Readable).Readable=n.Readable,t.Writable=n.Writable,t.Duplex=n.Duplex,t.Transform=n.Transform,t.PassThrough=n.PassThrough,t.Stream=n):((t=e.exports=r(5335)).Stream=n||t,t.Readable=t,t.Writable=r(75675),t.Duplex=r(44849),t.Transform=r(31719),t.PassThrough=r(11557))},26611:(e,t,r)=>{var n=r(83519),i=function(){},a=function(e,t,r){if("function"==typeof t)return a(e,null,t);t||(t={}),r=n(r||i);var o=e._writableState,s=e._readableState,c=t.readable||!1!==t.readable&&e.readable,l=t.writable||!1!==t.writable&&e.writable,u=!1,d=function(){e.writable||p()},p=function(){l=!1,c||r.call(e)},f=function(){c=!1,l||r.call(e)},m=function(t){r.call(e,t?new Error("exited with error code: "+t):null)},g=function(t){r.call(e,t)},_=function(){process.nextTick(h)},h=function(){if(!u)return(!c||s&&s.ended&&!s.destroyed)&&(!l||o&&o.ended&&!o.destroyed)?void 0:r.call(e,new Error("premature close"))},y=function(){e.req.on("finish",p)};return!function(e){return e.setHeader&&"function"==typeof e.abort}(e)?l&&!o&&(e.on("end",d),e.on("close",d)):(e.on("complete",p),e.on("abort",_),e.req?y():e.on("request",y)),function(e){return e.stdio&&Array.isArray(e.stdio)&&3===e.stdio.length}(e)&&e.on("exit",m),e.on("end",f),e.on("finish",p),!1!==t.error&&e.on("error",g),e.on("close",_),function(){u=!0,e.removeListener("complete",p),e.removeListener("abort",_),e.removeListener("request",y),e.req&&e.req.removeListener("finish",p),e.removeListener("end",d),e.removeListener("close",d),e.removeListener("finish",p),e.removeListener("exit",m),e.removeListener("end",f),e.removeListener("error",g),e.removeListener("close",_)}};e.exports=a},6752:(e,t,r)=>{if(parseInt(process.versions.node.split(".")[0],10)<10)throw new Error("For node versions older than 10, please use the ES5 Import: https://github.com/exceljs/exceljs#es5-imports");e.exports=r(25046)},75772:(e,t,r)=>{const n=r(79896),i=r(67808),a=r(90445),o=r(83826),s=r(74353).extend(a).extend(o),c=r(87137),{fs:{exists:l}}=r(67032),u={true:!0,false:!1,"#N/A":{error:"#N/A"},"#REF!":{error:"#REF!"},"#NAME?":{error:"#NAME?"},"#DIV/0!":{error:"#DIV/0!"},"#NULL!":{error:"#NULL!"},"#VALUE!":{error:"#VALUE!"},"#NUM!":{error:"#NUM!"}};e.exports=class{constructor(e){this.workbook=e,this.worksheet=null}async readFile(e,t){if(t=t||{},!await l(e))throw new Error(`File not found: ${e}`);const r=n.createReadStream(e),i=await this.read(r,t);return r.close(),i}read(e,t){return t=t||{},new Promise(((r,n)=>{const a=this.workbook.addWorksheet(t.sheetName),o=t.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],c=t.map||function(e){if(""===e)return null;const t=Number(e);if(!Number.isNaN(t)&&t!==1/0)return t;const r=o.reduce(((t,r)=>{if(t)return t;const n=s(e,r,!0);return n.isValid()?n:null}),null);if(r)return new Date(r.valueOf());const n=u[e];return void 0!==n?n:e},l=i.parse(t.parserOptions).on("data",(e=>{a.addRow(e.map(c))})).on("end",(()=>{l.emit("worksheet",a)}));l.on("worksheet",r).on("error",n),e.pipe(l)}))}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(e,t){return new Promise(((r,n)=>{t=t||{};const a=this.workbook.getWorksheet(t.sheetName||t.sheetId),o=i.format(t.formatterOptions);e.on("finish",(()=>{r()})),o.on("error",n),o.pipe(e);const{dateFormat:c,dateUTC:l}=t,u=t.map||(e=>{if(e){if(e.text||e.hyperlink)return e.hyperlink||e.text||"";if(e.formula||e.result)return e.result||"";if(e instanceof Date)return c?l?s.utc(e).format(c):s(e).format(c):l?s.utc(e).format():s(e).format();if(e.error)return e.error;if("object"==typeof e)return JSON.stringify(e)}return e}),d=void 0===t.includeEmptyRows||t.includeEmptyRows;let p=1;a&&a.eachRow(((e,t)=>{if(d)for(;p++<t-1;)o.write([]);const{values:r}=e;r.shift(),o.write(r.map(u)),p=t})),o.end()}))}writeFile(e,t){const r={encoding:(t=t||{}).encoding||"utf8"},i=n.createWriteStream(e,r);return this.write(i,t)}async writeBuffer(e){const t=new c;return await this.write(t,e),t.read()}}},14917:(e,t,r)=>{"use strict";const n=r(29428);class i{constructor(e,t,r=0){if(this.worksheet=e,t)if("string"==typeof t){const e=n.decodeAddress(t);this.nativeCol=e.col+r,this.nativeColOff=0,this.nativeRow=e.row+r,this.nativeRowOff=0}else void 0!==t.nativeCol?(this.nativeCol=t.nativeCol||0,this.nativeColOff=t.nativeColOff||0,this.nativeRow=t.nativeRow||0,this.nativeRowOff=t.nativeRowOff||0):void 0!==t.col?(this.col=t.col+r,this.row=t.row+r):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(e){return e instanceof i||null==e?e:new i(e)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(e){this.nativeCol=Math.floor(e),this.nativeColOff=Math.floor((e-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(e){this.nativeRow=Math.floor(e),this.nativeRowOff=Math.floor((e-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(e){this.nativeCol=e.nativeCol,this.nativeColOff=e.nativeColOff,this.nativeRow=e.nativeRow,this.nativeRowOff=e.nativeRowOff}}e.exports=i},88732:(e,t,r)=>{const n=r(29428),i=r(67984),a=r(70880),{slideFormula:o}=r(34667),s=r(87952);class c{constructor(e,t,r){if(!e||!t)throw new Error("A Cell needs a Row");this._row=e,this._column=t,n.validateAddress(r),this._address=r,this._value=l.create(c.Types.Null,this),this.style=this._mergeStyle(e.style,t.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(e){this.style.numFmt=e}get font(){return this.style.font}set font(e){this.style.font=e}get alignment(){return this.style.alignment}set alignment(e){this.style.alignment=e}get border(){return this.style.border}set border(e){this.style.border=e}get fill(){return this.style.fill}set fill(e){this.style.fill=e}get protection(){return this.style.protection}set protection(e){this.style.protection=e}_mergeStyle(e,t,r){const n=e&&e.numFmt||t&&t.numFmt;n&&(r.numFmt=n);const i=e&&e.font||t&&t.font;i&&(r.font=i);const a=e&&e.alignment||t&&t.alignment;a&&(r.alignment=a);const o=e&&e.border||t&&t.border;o&&(r.border=o);const s=e&&e.fill||t&&t.fill;s&&(r.fill=s);const c=e&&e.protection||t&&t.protection;return c&&(r.protection=c),r}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===c.Types.Merge}merge(e,t){this._value.release(),this._value=l.create(c.Types.Merge,this,e),t||(this.style=e.style)}unmerge(){this.type===c.Types.Merge&&(this._value.release(),this._value=l.create(c.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(e){return this._value.type===c.Types.Merge&&this._value.isMergedTo(e)}get master(){return this.type===c.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===c.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(e){this.type!==c.Types.Merge?(this._value.release(),this._value=l.create(l.getType(e),this,e)):this._value.master.value=e}get note(){return this._comment&&this._comment.note}set note(e){this._comment=new s(e)}get text(){return this._value.toString()}get html(){return i.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(e){this.type===c.Types.String&&(this._value=l.create(c.Types.Hyperlink,this,{text:this._value.value,hyperlink:e}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){const{worksheet:e}=this._row;return{sheetName:e.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(e){this.names=[e]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(e){const{definedNames:t}=this.workbook;t.removeAllNames(this.fullAddress),e.forEach((e=>{t.addEx(this.fullAddress,e)}))}addName(e){this.workbook.definedNames.addEx(this.fullAddress,e)}removeName(e){this.workbook.definedNames.removeEx(this.fullAddress,e)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(e){this._dataValidations.add(this.address,e)}get model(){const{model:e}=this._value;return e.style=this.style,this._comment&&(e.comment=this._comment.model),e}set model(e){if(this._value.release(),this._value=l.create(e.type,this),this._value.model=e,e.comment&&"note"===e.comment.type)this._comment=s.fromModel(e.comment);e.style?this.style=e.style:this.style={}}}c.Types=a.ValueType;const l={getType:e=>null==e?c.Types.Null:e instanceof String||"string"==typeof e?c.Types.String:"number"==typeof e?c.Types.Number:"boolean"==typeof e?c.Types.Boolean:e instanceof Date?c.Types.Date:e.text&&e.hyperlink?c.Types.Hyperlink:e.formula||e.sharedFormula?c.Types.Formula:e.richText?c.Types.RichText:e.sharedString?c.Types.SharedString:e.error?c.Types.Error:c.Types.JSON,types:[{t:c.Types.Null,f:class{constructor(e){this.model={address:e.address,type:c.Types.Null}}get value(){return null}set value(e){}get type(){return c.Types.Null}get effectiveType(){return c.Types.Null}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){}toString(){return""}}},{t:c.Types.Number,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Number,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.Number}get effectiveType(){return c.Types.Number}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.String,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.String}get effectiveType(){return c.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:c.Types.Date,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Date,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.Date}get effectiveType(){return c.Types.Date}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.Hyperlink,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Hyperlink,text:t?t.text:void 0,hyperlink:t?t.hyperlink:void 0},t&&t.tooltip&&(this.model.tooltip=t.tooltip)}get value(){const e={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(e.tooltip=this.model.tooltip),e}set value(e){this.model={text:e.text,hyperlink:e.hyperlink},e.tooltip&&(this.model.tooltip=e.tooltip)}get text(){return this.model.text}set text(e){this.model.text=e}get hyperlink(){return this.model.hyperlink}set hyperlink(e){this.model.hyperlink=e}get type(){return c.Types.Hyperlink}get effectiveType(){return c.Types.Hyperlink}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:c.Types.Formula,f:class{constructor(e,t){this.cell=e,this.model={address:e.address,type:c.Types.Formula,shareType:t?t.shareType:void 0,ref:t?t.ref:void 0,formula:t?t.formula:void 0,sharedFormula:t?t.sharedFormula:void 0,result:t?t.result:void 0}}_copyModel(e){const t={},r=r=>{const n=e[r];n&&(t[r]=n)};return r("formula"),r("result"),r("ref"),r("shareType"),r("sharedFormula"),t}get value(){return this._copyModel(this.model)}set value(e){this.model=this._copyModel(e)}validate(e){switch(l.getType(e)){case c.Types.Null:case c.Types.String:case c.Types.Number:case c.Types.Date:break;case c.Types.Hyperlink:case c.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(e){this.model.formula=e}get formulaType(){return this.model.formula?a.FormulaType.Master:this.model.sharedFormula?a.FormulaType.Shared:a.FormulaType.None}get result(){return this.model.result}set result(e){this.model.result=e}get type(){return c.Types.Formula}get effectiveType(){const e=this.model.result;return null==e?a.ValueType.Null:e instanceof String||"string"==typeof e?a.ValueType.String:"number"==typeof e?a.ValueType.Number:e instanceof Date?a.ValueType.Date:e.text&&e.hyperlink?a.ValueType.Hyperlink:e.formula?a.ValueType.Formula:a.ValueType.Null}get address(){return this.model.address}set address(e){this.model.address=e}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){const{worksheet:e}=this.cell,t=e.findCell(this.model.sharedFormula);this._translatedFormula=t&&o(t.formula,t.address,this.model.address)}return this._translatedFormula}toCsvString(){return`${this.model.result||""}`}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:c.Types.Merge,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Merge,master:t?t.address:void 0},this._master=t,t&&t.addMergeRef()}get value(){return this._master.value}set value(e){e instanceof c?(this._master&&this._master.releaseMergeRef(),e.addMergeRef(),this._master=e):this._master.value=e}isMergedTo(e){return e===this._master}get master(){return this._master}get type(){return c.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:c.Types.JSON,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.String,value:JSON.stringify(t),rawValue:t}}get value(){return this.model.rawValue}set value(e){this.model.rawValue=e,this.model.value=JSON.stringify(e)}get type(){return c.Types.String}get effectiveType(){return c.Types.String}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:c.Types.SharedString,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.SharedString,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.SharedString}get effectiveType(){return c.Types.SharedString}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.RichText,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.String,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}toString(){return this.model.value.richText.map((e=>e.text)).join("")}get type(){return c.Types.RichText}get effectiveType(){return c.Types.RichText}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:c.Types.Boolean,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Boolean,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.Boolean}get effectiveType(){return c.Types.Boolean}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:c.Types.Error,f:class{constructor(e,t){this.model={address:e.address,type:c.Types.Error,value:t}}get value(){return this.model.value}set value(e){this.model.value=e}get type(){return c.Types.Error}get effectiveType(){return c.Types.Error}get address(){return this.model.address}set address(e){this.model.address=e}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce(((e,t)=>(e[t.t]=t.f,e)),[]),create(e,t,r){const n=this.types[e];if(!n)throw new Error(`Could not create Value of type ${e}`);return new n(t,r)}};e.exports=c},93362:(e,t,r)=>{"use strict";const n=r(67984),i=r(70880),a=r(29428);class o{constructor(e,t,r){this._worksheet=e,this._number=t,!1!==r&&(this.defn=r)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return a.n2l(this._number)}get isCustomWidth(){return void 0!==this.width&&9!==this.width}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(e){e?(this.key=e.key,this.width=void 0!==e.width?e.width:9,this.outlineLevel=e.outlineLevel,e.style?this.style=e.style:this.style={},this.header=e.header,this._hidden=!!e.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(e){void 0!==e?(this._header=e,this.headers.forEach(((e,t)=>{this._worksheet.getCell(t+1,this.number).value=e}))):this._header=void 0}get key(){return this._key}set key(e){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=e,e&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(e){return this.width===e.width&&this.hidden===e.hidden&&this.outlineLevel===e.outlineLevel&&n.isEqual(this.style,e.style)}get isDefault(){if(this.isCustomWidth)return!1;if(this.hidden)return!1;if(this.outlineLevel)return!1;const e=this.style;return!e||!(e.font||e.numFmt||e.alignment||e.border||e.fill||e.protection)}get headerCount(){return this.headers.length}eachCell(e,t){const r=this.number;t||(t=e,e=null),this._worksheet.eachRow(e,((e,n)=>{t(e.getCell(r),n)}))}get values(){const e=[];return this.eachCell(((t,r)=>{t&&t.type!==i.ValueType.Null&&(e[r]=t.value)})),e}set values(e){if(!e)return;const t=this.number;let r=0;e.hasOwnProperty("0")&&(r=1),e.forEach(((e,n)=>{this._worksheet.getCell(n+r,t).value=e}))}_applyStyle(e,t){return this.style[e]=t,this.eachCell((r=>{r[e]=t})),t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}static toModel(e){const t=[];let r=null;return e&&e.forEach(((e,n)=>{e.isDefault?r&&(r=null):r&&e.equivalentTo(r)?r.max=n+1:(r={min:n+1,max:n+1,width:void 0!==e.width?e.width:9,style:e.style,isCustomWidth:e.isCustomWidth,hidden:e.hidden,outlineLevel:e.outlineLevel,collapsed:e.collapsed},t.push(r))})),t.length?t:void 0}static fromModel(e,t){const r=[];let n=1,i=0;for(t=(t=t||[]).sort((function(e,t){return e.min-t.min}));i<t.length;){const a=t[i++];for(;n<a.min;)r.push(new o(e,n++));for(;n<=a.max;)r.push(new o(e,n++,a))}return r.length?r:null}}e.exports=o},88561:e=>{e.exports=class{constructor(e){this.model=e||{}}add(e,t){return this.model[e]=t}find(e){return this.model[e]}remove(e){this.model[e]=void 0}}},13522:(e,t,r)=>{"use strict";const n=r(67984),i=r(29428),a=r(38583),o=r(69311),s=/[$](\w+)[$](\d+)(:[$](\w+)[$](\d+))?/;e.exports=class{constructor(){this.matrixMap={}}getMatrix(e){return this.matrixMap[e]||(this.matrixMap[e]=new a)}add(e,t){const r=i.decodeEx(e);this.addEx(r,t)}addEx(e,t){const r=this.getMatrix(t);if(e.top)for(let t=e.left;t<=e.right;t++)for(let n=e.top;n<=e.bottom;n++){const a={sheetName:e.sheetName,address:i.n2l(t)+n,row:n,col:t};r.addCellEx(a)}else r.addCellEx(e)}remove(e,t){const r=i.decodeEx(e);this.removeEx(r,t)}removeEx(e,t){this.getMatrix(t).removeCellEx(e)}removeAllNames(e){n.each(this.matrixMap,(t=>{t.removeCellEx(e)}))}forEach(e){n.each(this.matrixMap,((t,r)=>{t.forEach((t=>{e(r,t)}))}))}getNames(e){return this.getNamesEx(i.decodeEx(e))}getNamesEx(e){return n.map(this.matrixMap,((t,r)=>t.findCellEx(e)&&r)).filter(Boolean)}_explore(e,t){t.mark=!1;const{sheetName:r}=t,n=new o(t.row,t.col,t.row,t.col,r);let i,a;function s(i,a){const o=e.findCellAt(r,i,t.col);return!(!o||!o.mark)&&(n[a]=i,o.mark=!1,!0)}for(a=t.row-1;s(a,"top");a--);for(a=t.row+1;s(a,"bottom");a++);function c(t,i){const o=[];for(a=n.top;a<=n.bottom;a++){const n=e.findCellAt(r,a,t);if(!n||!n.mark)return!1;o.push(n)}n[i]=t;for(let e=0;e<o.length;e++)o[e].mark=!1;return!0}for(i=t.col-1;c(i,"left");i--);for(i=t.col+1;c(i,"right");i++);return n}getRanges(e,t){if(!(t=t||this.matrixMap[e]))return{name:e,ranges:[]};t.forEach((e=>{e.mark=!0}));return{name:e,ranges:t.map((e=>e.mark&&this._explore(t,e))).filter(Boolean).map((e=>e.$shortRange))}}normaliseMatrix(e,t){e.forEachInSheet(t,((e,t,r)=>{e&&(e.row===t&&e.col===r||(e.row=t,e.col=r,e.address=i.n2l(r)+t))}))}spliceRows(e,t,r,i){n.each(this.matrixMap,(n=>{n.spliceRows(e,t,r,i),this.normaliseMatrix(n,e)}))}spliceColumns(e,t,r,i){n.each(this.matrixMap,(n=>{n.spliceColumns(e,t,r,i),this.normaliseMatrix(n,e)}))}get model(){return n.map(this.matrixMap,((e,t)=>this.getRanges(t,e))).filter((e=>e.ranges.length))}set model(e){const t=this.matrixMap={};e.forEach((e=>{const r=t[e.name]=new a;e.ranges.forEach((e=>{s.test(e.split("!").pop()||"")&&r.addCell(e)}))}))}}},70880:e=>{"use strict";e.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},90239:(e,t,r)=>{const n=r(29428),i=r(14917);e.exports=class{constructor(e,t){this.worksheet=e,this.model=t}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model({type:e,imageId:t,range:r,hyperlinks:a}){if(this.type=e,this.imageId=t,"image"===e)if("string"==typeof r){const e=n.decode(r);this.range={tl:new i(this.worksheet,{col:e.left,row:e.top},-1),br:new i(this.worksheet,{col:e.right,row:e.bottom},0),editAs:"oneCell"}}else this.range={tl:new i(this.worksheet,r.tl,0),br:r.br&&new i(this.worksheet,r.br,0),ext:r.ext,editAs:r.editAs,hyperlinks:a||r.hyperlinks}}}},98236:(e,t,r)=>{"use strict";const n=r(59276);e.exports=class{constructor(e){this.model=e}get xlsx(){return this._xlsx||(this._xlsx=new n(this)),this._xlsx}}},87952:(e,t,r)=>{const n=r(67984);class i{constructor(e){this.note=e}get model(){let e=null;if("string"==typeof this.note)e={type:"note",note:{texts:[{text:this.note}]}};else e={type:"note",note:this.note};return n.deepMerge({},i.DEFAULT_CONFIGS,e)}set model(e){const{note:t}=e,{texts:r}=t;1===r.length&&1===Object.keys(r[0]).length?this.note=r[0].text:this.note=t}static fromModel(e){const t=new i;return t.model=e,t}}i.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},e.exports=i},69311:(e,t,r)=>{const n=r(29428);class i{constructor(){this.decode(arguments)}setTLBR(e,t,r,i,a){if(arguments.length<4){const i=n.decodeAddress(e),o=n.decodeAddress(t);this.model={top:Math.min(i.row,o.row),left:Math.min(i.col,o.col),bottom:Math.max(i.row,o.row),right:Math.max(i.col,o.col),sheetName:r},this.setTLBR(i.row,i.col,o.row,o.col,a)}else this.model={top:Math.min(e,r),left:Math.min(t,i),bottom:Math.max(e,r),right:Math.max(t,i),sheetName:a}}decode(e){switch(e.length){case 5:this.setTLBR(e[0],e[1],e[2],e[3],e[4]);break;case 4:this.setTLBR(e[0],e[1],e[2],e[3]);break;case 3:this.setTLBR(e[0],e[1],e[2]);break;case 2:this.setTLBR(e[0],e[1]);break;case 1:{const t=e[0];if(t instanceof i)this.model={top:t.model.top,left:t.model.left,bottom:t.model.bottom,right:t.model.right,sheetName:t.sheetName};else if(t instanceof Array)this.decode(t);else if(t.top&&t.left&&t.bottom&&t.right)this.model={top:t.top,left:t.left,bottom:t.bottom,right:t.right,sheetName:t.sheetName};else{const e=n.decodeEx(t);e.top?this.model={top:e.top,left:e.left,bottom:e.bottom,right:e.right,sheetName:e.sheetName}:this.model={top:e.row,left:e.col,bottom:e.row,right:e.col,sheetName:e.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error(`Invalid number of arguments to _getDimensions() - ${e.length}`)}}get top(){return this.model.top||1}set top(e){this.model.top=e}get left(){return this.model.left||1}set left(e){this.model.left=e}get bottom(){return this.model.bottom||1}set bottom(e){this.model.bottom=e}get right(){return this.model.right||1}set right(e){this.model.right=e}get sheetName(){return this.model.sheetName}set sheetName(e){this.model.sheetName=e}get _serialisedSheetName(){const{sheetName:e}=this.model;return e?/^[a-zA-Z0-9]*$/.test(e)?`${e}!`:`'${e}'!`:""}expand(e,t,r,n){(!this.model.top||e<this.top)&&(this.top=e),(!this.model.left||t<this.left)&&(this.left=t),(!this.model.bottom||r>this.bottom)&&(this.bottom=r),(!this.model.right||n>this.right)&&(this.right=n)}expandRow(e){if(e){const{dimensions:t,number:r}=e;t&&this.expand(r,t.min,r,t.max)}}expandToAddress(e){const t=n.decodeEx(e);this.expand(t.row,t.col,t.row,t.col)}get tl(){return n.n2l(this.left)+this.top}get $t$l(){return`$${n.n2l(this.left)}$${this.top}`}get br(){return n.n2l(this.right)+this.bottom}get $b$r(){return`$${n.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&(!(e.bottom<this.top)&&(!(e.top>this.bottom)&&(!(e.right<this.left)&&!(e.left>this.right))))}contains(e){const t=n.decodeEx(e);return this.containsEx(t)}containsEx(e){return(!e.sheetName||!this.sheetName||e.sheetName===this.sheetName)&&(e.row>=this.top&&e.row<=this.bottom&&e.col>=this.left&&e.col<=this.right)}forEachAddress(e){for(let t=this.left;t<=this.right;t++)for(let r=this.top;r<=this.bottom;r++)e(n.encodeAddress(r,t),r,t)}}e.exports=i},5842:(e,t,r)=>{"use strict";const n=r(67984),i=r(70880),a=r(29428),o=r(88732);e.exports=class{constructor(e,t){this._worksheet=e,this._number=t,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(e){return this._cells[e-1]}getCellEx(e){let t=this._cells[e.col-1];if(!t){const r=this._worksheet.getColumn(e.col);t=new o(this,r,e.address),this._cells[e.col-1]=t}return t}getCell(e){if("string"==typeof e){const t=this._worksheet.getColumnKey(e);e=t?t.number:a.l2n(e)}return this._cells[e-1]||this.getCellEx({address:a.encodeAddress(this._number,e),row:this._number,col:e})}splice(e,t,...r){const n=e+t,i=r.length-t,a=this._cells.length;let o,s,c;if(i<0)for(o=e+r.length;o<=a;o++)c=this._cells[o-1],s=this._cells[o-i-1],s?(c=this.getCell(o),c.value=s.value,c.style=s.style,c._comment=s._comment):c&&(c.value=null,c.style={},c._comment=void 0);else if(i>0)for(o=a;o>=n;o--)s=this._cells[o-1],s?(c=this.getCell(o+i),c.value=s.value,c.style=s.style,c._comment=s._comment):this._cells[o+i-1]=void 0;for(o=0;o<r.length;o++)c=this.getCell(e+o),c.value=r[o],c.style={},c._comment=void 0}eachCell(e,t){if(t||(t=e,e=null),e&&e.includeEmpty){const e=this._cells.length;for(let r=1;r<=e;r++)t(this.getCell(r),r)}else this._cells.forEach(((e,r)=>{e&&e.type!==i.ValueType.Null&&t(e,r+1)}))}addPageBreak(e,t){const r=this._worksheet,n=Math.max(0,e-1)||0,i=Math.max(0,t-1)||16838,a={id:this._number,max:i,man:1};n&&(a.min=n),r.rowBreaks.push(a)}get values(){const e=[];return this._cells.forEach((t=>{t&&t.type!==i.ValueType.Null&&(e[t.col]=t.value)})),e}set values(e){if(this._cells=[],e)if(e instanceof Array){let t=0;e.hasOwnProperty("0")&&(t=1),e.forEach(((e,r)=>{void 0!==e&&(this.getCellEx({address:a.encodeAddress(this._number,r+t),row:this._number,col:r+t}).value=e)}))}else this._worksheet.eachColumnKey(((t,r)=>{void 0!==e[r]&&(this.getCellEx({address:a.encodeAddress(this._number,t.number),row:this._number,col:t.number}).value=e[r])}));else;}get hasValues(){return n.some(this._cells,(e=>e&&e.type!==i.ValueType.Null))}get cellCount(){return this._cells.length}get actualCellCount(){let e=0;return this.eachCell((()=>{e++})),e}get dimensions(){let e=0,t=0;return this._cells.forEach((r=>{r&&r.type!==i.ValueType.Null&&((!e||e>r.col)&&(e=r.col),t<r.col&&(t=r.col))})),e>0?{min:e,max:t}:null}_applyStyle(e,t){return this.style[e]=t,this._cells.forEach((r=>{r&&(r[e]=t)})),t}get numFmt(){return this.style.numFmt}set numFmt(e){this._applyStyle("numFmt",e)}get font(){return this.style.font}set font(e){this._applyStyle("font",e)}get alignment(){return this.style.alignment}set alignment(e){this._applyStyle("alignment",e)}get protection(){return this.style.protection}set protection(e){this._applyStyle("protection",e)}get border(){return this.style.border}set border(e){this._applyStyle("border",e)}get fill(){return this.style.fill}set fill(e){this._applyStyle("fill",e)}get hidden(){return!!this._hidden}set hidden(e){this._hidden=e}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(e){this._outlineLevel=e}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){const e=[];let t=0,r=0;return this._cells.forEach((n=>{if(n){const i=n.model;i&&((!t||t>n.col)&&(t=n.col),r<n.col&&(r=n.col),e.push(i))}})),this.height||e.length?{cells:e,number:this.number,min:t,max:r,height:this.height,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel,collapsed:this.collapsed}:null}set model(e){if(e.number!==this._number)throw new Error("Invalid row number in model");let t;this._cells=[],e.cells.forEach((e=>{switch(e.type){case o.Types.Merge:break;default:{let r;if(e.address)r=a.decodeAddress(e.address);else if(t){const{row:e}=t,n=t.col+1;r={row:e,col:n,address:a.encodeAddress(e,n),$col$row:`$${a.n2l(n)}$${e}`}}t=r;this.getCellEx(r).model=e;break}}})),e.height?this.height=e.height:delete this.height,this.hidden=e.hidden,this.outlineLevel=e.outlineLevel||0,this.style=e.style&&JSON.parse(JSON.stringify(e.style))||{}}}},7694:(e,t,r)=>{const n=r(29428);class i{constructor(e,t,r){this.table=e,this.column=t,this.index=r}_set(e,t){this.table.cacheState(),this.column[e]=t}get name(){return this.column.name}set name(e){this._set("name",e)}get filterButton(){return this.column.filterButton}set filterButton(e){this.column.filterButton=e}get style(){return this.column.style}set style(e){this.column.style=e}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(e){this._set("totalsRowLabel",e)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(e){this._set("totalsRowFunction",e)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(e){this._set("totalsRowResult",e)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(e){this._set("totalsRowFormula",e)}}e.exports=class{constructor(e,t){this.worksheet=e,t&&(this.table=t,this.validate(),this.store())}getFormula(e){switch(e.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${e.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${e.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${e.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${e.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${e.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${e.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${e.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${e.name}])`;case"custom":return e.totalsRowFormula;default:throw new Error(`Invalid Totals Row Function: ${e.totalsRowFunction}`)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){const{table:e}=this,t=(e,t,r)=>{void 0===e[t]&&(e[t]=r)};t(e,"headerRow",!0),t(e,"totalsRow",!1),t(e,"style",{}),t(e.style,"theme","TableStyleMedium2"),t(e.style,"showFirstColumn",!1),t(e.style,"showLastColumn",!1),t(e.style,"showRowStripes",!1),t(e.style,"showColumnStripes",!1);const r=(e,t)=>{if(!e)throw new Error(t)};r(e.ref,"Table must have ref"),r(e.columns,"Table must have column definitions"),r(e.rows,"Table must have row definitions"),e.tl=n.decodeAddress(e.ref);const{row:i,col:a}=e.tl;r(i>0,"Table must be on valid row"),r(a>0,"Table must be on valid col");const{width:o,filterHeight:s,tableHeight:c}=this;e.autoFilterRef=n.encode(i,a,i+s-1,a+o-1),e.tableRef=n.encode(i,a,i+c-1,a+o-1),e.columns.forEach(((e,n)=>{r(e.name,`Column ${n} must have a name`),0===n?t(e,"totalsRowLabel","Total"):(t(e,"totalsRowFunction","none"),e.totalsRowFormula=this.getFormula(e))}))}store(){const e=(e,t)=>{t&&Object.keys(t).forEach((r=>{e[r]=t[r]}))},{worksheet:t,table:r}=this,{row:n,col:i}=r.tl;let a=0;if(r.headerRow){const o=t.getRow(n+a++);r.columns.forEach(((t,r)=>{const{style:n,name:a}=t,s=o.getCell(i+r);s.value=a,e(s,n)}))}if(r.rows.forEach((o=>{const s=t.getRow(n+a++);o.forEach(((t,n)=>{const a=s.getCell(i+n);a.value=t,e(a,r.columns[n].style)}))})),r.totalsRow){const o=t.getRow(n+a++);r.columns.forEach(((t,r)=>{const n=o.getCell(i+r);if(0===r)n.value=t.totalsRowLabel;else{const e=this.getFormula(t);n.value=e?{formula:t.totalsRowFormula,result:t.totalsRowResult}:null}e(n,t.style)}))}}load(e){const{table:t}=this,{row:r,col:n}=t.tl;let i=0;if(t.headerRow){const a=e.getRow(r+i++);t.columns.forEach(((e,t)=>{a.getCell(n+t).value=e.name}))}if(t.rows.forEach((t=>{const a=e.getRow(r+i++);t.forEach(((e,t)=>{a.getCell(n+t).value=e}))})),t.totalsRow){const a=e.getRow(r+i++);t.columns.forEach(((e,t)=>{const r=a.getCell(n+t);if(0===t)r.value=e.totalsRowLabel;else{this.getFormula(e)&&(r.value={formula:e.totalsRowFormula,result:e.totalsRowResult})}}))}}get model(){return this.table}set model(e){this.table=e}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();const e=n.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let t=0;t<this._cache.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++){r.getCell(e.col+t).value=null}}else{for(let t=this.tableHeight;t<this._cache.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=0;t<this._cache.width;t++){r.getCell(e.col+t).value=null}}for(let t=0;t<this.tableHeight;t++){const r=this.worksheet.getRow(e.row+t);for(let t=this.width;t<this._cache.width;t++){r.getCell(e.col+t).value=null}}}this.store()}addRow(e,t){this.cacheState(),void 0===t?this.table.rows.push(e):this.table.rows.splice(t,0,e)}removeRows(e,t=1){this.cacheState(),this.table.rows.splice(e,t)}getColumn(e){const t=this.table.columns[e];return new i(this,t,e)}addColumn(e,t,r){this.cacheState(),void 0===r?(this.table.columns.push(e),this.table.rows.forEach(((e,r)=>{e.push(t[r])}))):(this.table.columns.splice(r,0,e),this.table.rows.forEach(((e,n)=>{e.splice(r,0,t[n])})))}removeColumns(e,t=1){this.cacheState(),this.table.columns.splice(e,t),this.table.rows.forEach((r=>{r.splice(e,t)}))}_assign(e,t,r){this.cacheState(),e[t]=r}get ref(){return this.table.ref}set ref(e){this._assign(this.table,"ref",e)}get name(){return this.table.name}set name(e){this.table.name=e}get displayName(){return this.table.displyName||this.table.name}set displayNamename(e){this.table.displayName=e}get headerRow(){return this.table.headerRow}set headerRow(e){this._assign(this.table,"headerRow",e)}get totalsRow(){return this.table.totalsRow}set totalsRow(e){this._assign(this.table,"totalsRow",e)}get theme(){return this.table.style.name}set theme(e){this.table.style.name=e}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(e){this.table.style.showFirstColumn=e}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(e){this.table.style.showLastColumn=e}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(e){this.table.style.showRowStripes=e}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(e){this.table.style.showColumnStripes=e}}},12432:(e,t,r)=>{"use strict";const n=r(82346),i=r(13522),a=r(59276),o=r(75772);e.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new i}get xlsx(){return this._xlsx||(this._xlsx=new a(this)),this._xlsx}get csv(){return this._csv||(this._csv=new o(this)),this._csv}get nextId(){for(let e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addWorksheet(e,t){const r=this.nextId;t&&("string"==typeof t?(console.trace('tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { argb: "rbg value" } }'),t={properties:{tabColor:{argb:t}}}):(t.argb||t.theme||t.indexed)&&(console.trace("tabColor argument is now deprecated. Please use workbook.addWorksheet(name, {properties: { tabColor: { ... } }"),t={properties:{tabColor:t}}));const i=this._worksheets.reduce(((e,t)=>(t&&t.orderNo)>e?t.orderNo:e),0),a=Object.assign({},t,{id:r,name:e,orderNo:i+1,workbook:this}),o=new n(a);return this._worksheets[r]=o,o}removeWorksheetEx(e){delete this._worksheets[e.id]}removeWorksheet(e){const t=this.getWorksheet(e);t&&t.destroy()}getWorksheet(e){return void 0===e?this._worksheets.find(Boolean):"number"==typeof e?this._worksheets[e]:"string"==typeof e?this._worksheets.find((t=>t&&t.name===e)):void 0}get worksheets(){return this._worksheets.slice(1).sort(((e,t)=>e.orderNo-t.orderNo)).filter(Boolean)}eachSheet(e){this.worksheets.forEach((t=>{e(t,t.id)}))}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(e){const t=this.media.length;return this.media.push(Object.assign({},e,{type:"image"})),t}getImage(e){return this.media[e]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map((e=>e.model)),sheets:this.worksheets.map((e=>e.model)).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(e){this.creator=e.creator,this.lastModifiedBy=e.lastModifiedBy,this.lastPrinted=e.lastPrinted,this.created=e.created,this.modified=e.modified,this.company=e.company,this.manager=e.manager,this.title=e.title,this.subject=e.subject,this.keywords=e.keywords,this.category=e.category,this.description=e.description,this.language=e.language,this.revision=e.revision,this.contentStatus=e.contentStatus,this.properties=e.properties,this.calcProperties=e.calcProperties,this._worksheets=[],e.worksheets.forEach((t=>{const{id:r,name:i,state:a}=t,o=e.sheets&&e.sheets.findIndex((e=>e.id===r));(this._worksheets[r]=new n({id:r,name:i,orderNo:o,state:a,workbook:this})).model=t})),this._definedNames.model=e.definedNames,this.views=e.views,this._themes=e.themes,this.media=e.media||[]}}},82346:(e,t,r)=>{const n=r(67984),i=r(29428),a=r(69311),o=r(5842),s=r(93362),c=r(70880),l=r(90239),u=r(7694),d=r(88561),p=r(7257),{copyStyle:f}=r(76172);e.exports=class{constructor(e){e=e||{},this._workbook=e.workbook,this.id=e.id,this.orderNo=e.orderNo,this.name=e.name,this.state=e.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},e.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!e.pageSetup||!e.pageSetup.fitToWidth&&!e.pageSetup.fitToHeight||e.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},e.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},e.headerFooter),this.dataValidations=new d,this.views=e.views||[],this.autoFilter=e.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(e){if(void 0===e&&(e=`sheet${this.id}`),this._name!==e){if("string"!=typeof e)throw new Error("The name has to be a string.");if(""===e)throw new Error("The name can't be empty.");if("History"===e)throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(e))throw new Error(`Worksheet name ${e} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(e))throw new Error(`The first or last character of worksheet name cannot be a single quotation mark: ${e}`);if(e&&e.length>31&&(console.warn(`Worksheet name ${e} exceeds 31 chars. This will be truncated`),e=e.substring(0,31)),this._workbook._worksheets.find((t=>t&&t.name.toLowerCase()===e.toLowerCase())))throw new Error(`Worksheet name already exists: ${e}`);this._name=e}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){const e=new a;return this._rows.forEach((t=>{if(t){const r=t.dimensions;r&&e.expand(t.number,r.min,t.number,r.max)}})),e}get columns(){return this._columns}set columns(e){this._headerRowCount=e.reduce(((e,t)=>{const r=(t.header?1:t.headers&&t.headers.length)||0;return Math.max(e,r)}),0);let t=1;const r=this._columns=[];e.forEach((e=>{const n=new s(this,t++,!1);r.push(n),n.defn=e}))}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){n.each(this._keys,e)}getColumn(e){if("string"==typeof e){const t=this._keys[e];if(t)return t;e=i.l2n(e)}if(this._columns||(this._columns=[]),e>this._columns.length){let t=this._columns.length+1;for(;t<=e;)this._columns.push(new s(this,t++))}return this._columns[e-1]}spliceColumns(e,t,...r){const n=this._rows.length;if(r.length>0)for(let i=0;i<n;i++){const n=[e,t];r.forEach((e=>{n.push(e[i]||null)}));const a=this.getRow(i+1);a.splice.apply(a,n)}else this._rows.forEach((r=>{r&&r.splice(e,t)}));const i=r.length-t,a=e+t,o=this._columns.length;if(i<0)for(let t=e+r.length;t<=o;t++)this.getColumn(t).defn=this.getColumn(t-i).defn;else if(i>0)for(let e=o;e>=a;e--)this.getColumn(e+i).defn=this.getColumn(e).defn;for(let t=e;t<e+r.length;t++)this.getColumn(t).defn=null;this.workbook.definedNames.spliceColumns(this.name,e,t,r.length)}get lastColumn(){return this.getColumn(this.columnCount)}get columnCount(){let e=0;return this.eachRow((t=>{e=Math.max(e,t.cellCount)})),e}get actualColumnCount(){const e=[];let t=0;return this.eachRow((r=>{r.eachCell((({col:r})=>{e[r]||(e[r]=!0,t++)}))})),t}_commitRow(){}get _lastRowNumber(){const e=this._rows;let t=e.length;for(;t>0&&void 0===e[t-1];)t--;return t}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(e){return this._rows[e-1]}findRows(e,t){return this._rows.slice(e-1,e-1+t)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let e=0;return this.eachRow((()=>{e++})),e}getRow(e){let t=this._rows[e-1];return t||(t=this._rows[e-1]=new o(this,e)),t}getRows(e,t){if(t<1)return;const r=[];for(let n=e;n<e+t;n++)r.push(this.getRow(n));return r}addRow(e,t="n"){const r=this._nextRow,n=this.getRow(r);return n.values=e,this._setStyleOption(r,"i"===t[0]?t:"n"),n}addRows(e,t="n"){const r=[];return e.forEach((e=>{r.push(this.addRow(e,t))})),r}insertRow(e,t,r="n"){return this.spliceRows(e,0,t),this._setStyleOption(e,r),this.getRow(e)}insertRows(e,t,r="n"){if(this.spliceRows(e,0,...t),"n"!==r)for(let n=0;n<t.length;n++)"o"===r[0]&&void 0!==this.findRow(t.length+e+n)?this._copyStyle(t.length+e+n,e+n,"+"===r[1]):"i"===r[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e+n,"+"===r[1]);return this.getRows(e,t.length)}_setStyleOption(e,t="n"){"o"===t[0]&&void 0!==this.findRow(e+1)?this._copyStyle(e+1,e,"+"===t[1]):"i"===t[0]&&void 0!==this.findRow(e-1)&&this._copyStyle(e-1,e,"+"===t[1])}_copyStyle(e,t,r=!1){const n=this.getRow(e),i=this.getRow(t);i.style=f(n.style),n.eachCell({includeEmpty:r},((e,t)=>{i.getCell(t).style=f(e.style)})),i.height=n.height}duplicateRow(e,t,r=!1){const n=this._rows[e-1],i=new Array(t).fill(n.values);this.spliceRows(e+1,r?0:t,...i);for(let r=0;r<t;r++){const t=this._rows[e+r];t.style=n.style,t.height=n.height,n.eachCell({includeEmpty:!0},((e,r)=>{t.getCell(r).style=e.style}))}}spliceRows(e,t,...r){const n=e+t,i=r.length,a=i-t,o=this._rows.length;let s,c;if(a<0)for(e===o&&(this._rows[o-1]=void 0),s=n;s<=o;s++)if(c=this._rows[s-1],c){const e=this.getRow(s+a);e.values=c.values,e.style=c.style,e.height=c.height,c.eachCell({includeEmpty:!0},((t,r)=>{e.getCell(r).style=t.style})),this._rows[s-1]=void 0}else this._rows[s+a-1]=void 0;else if(a>0)for(s=o;s>=n;s--)if(c=this._rows[s-1],c){const e=this.getRow(s+a);e.values=c.values,e.style=c.style,e.height=c.height,c.eachCell({includeEmpty:!0},((t,r)=>{if(e.getCell(r).style=t.style,"MergeValue"===t._value.constructor.name){const e=this.getRow(t._row._number+i).getCell(r),n=t._value._master,a=this.getRow(n._row._number+i).getCell(n._column._number);e.merge(a)}}))}else this._rows[s+a-1]=void 0;for(s=0;s<i;s++){const t=this.getRow(e+s);t.style={},t.values=r[s]}this.workbook.definedNames.spliceRows(this.name,e,t,i)}eachRow(e,t){if(t||(t=e,e=void 0),e&&e.includeEmpty){const e=this._rows.length;for(let r=1;r<=e;r++)t(this.getRow(r),r)}else this._rows.forEach((e=>{e&&e.hasValues&&t(e,e.number)}))}getSheetValues(){const e=[];return this._rows.forEach((t=>{t&&(e[t.number]=t.values)})),e}findCell(e,t){const r=i.getAddress(e,t),n=this._rows[r.row-1];return n?n.findCell(r.col):void 0}getCell(e,t){const r=i.getAddress(e,t);return this.getRow(r.row).getCellEx(r)}mergeCells(...e){const t=new a(e);this._mergeCellsInternal(t)}mergeCellsWithoutStyle(...e){const t=new a(e);this._mergeCellsInternal(t,!0)}_mergeCellsInternal(e,t){n.each(this._merges,(t=>{if(t.intersects(e))throw new Error("Cannot merge already merged cells")}));const r=this.getCell(e.top,e.left);for(let n=e.top;n<=e.bottom;n++)for(let i=e.left;i<=e.right;i++)(n>e.top||i>e.left)&&this.getCell(n,i).merge(r,t);this._merges[r.address]=e}_unMergeMaster(e){const t=this._merges[e.address];if(t){for(let e=t.top;e<=t.bottom;e++)for(let r=t.left;r<=t.right;r++)this.getCell(e,r).unmerge();delete this._merges[e.address]}}get hasMerges(){return n.some(this._merges,Boolean)}unMergeCells(...e){const t=new a(e);for(let e=t.top;e<=t.bottom;e++)for(let r=t.left;r<=t.right;r++){const t=this.findCell(e,r);t&&(t.type===c.ValueType.Merge?this._unMergeMaster(t.master):this._merges[t.address]&&this._unMergeMaster(t))}}fillFormula(e,t,r,n="shared"){const a=i.decode(e),{top:o,left:s,bottom:c,right:l}=a,u=l-s+1,d=i.encodeAddress(o,s),p="shared"===n;let f;f="function"==typeof r?r:Array.isArray(r)?Array.isArray(r[0])?(e,t)=>r[e-o][t-s]:(e,t)=>r[(e-o)*u+(t-s)]:()=>{};let m=!0;for(let r=o;r<=c;r++)for(let i=s;i<=l;i++)m?(this.getCell(r,i).value={shareType:n,formula:t,ref:e,result:f(r,i)},m=!1):this.getCell(r,i).value=p?{sharedFormula:d,result:f(r,i)}:f(r,i)}addImage(e,t){const r={type:"image",imageId:e,range:t};this._media.push(new l(this,r))}getImages(){return this._media.filter((e=>"image"===e.type))}addBackgroundImage(e){const t={type:"background",imageId:e};this._media.push(new l(this,t))}getBackgroundImageId(){const e=this._media.find((e=>"background"===e.type));return e&&e.imageId}protect(e,t){return new Promise((r=>{this.sheetProtection={sheet:!0},t&&"spinCount"in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=p.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5,this.sheetProtection.hashValue=p.convertPasswordToHash(e,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),t&&(this.sheetProtection=Object.assign(this.sheetProtection,t),!e&&"spinCount"in t&&delete this.sheetProtection.spinCount),r()}))}unprotect(){this.sheetProtection=null}addTable(e){const t=new u(this,e);return this.tables[e.name]=t,t}getTable(e){return this.tables[e]}removeTable(e){delete this.tables[e]}getTables(){return Object.values(this.tables)}addConditionalFormatting(e){this.conditionalFormattings.push(e)}removeConditionalFormatting(e){"number"==typeof e?this.conditionalFormattings.splice(e,1):this.conditionalFormattings=e instanceof Function?this.conditionalFormattings.filter(e):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(e){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=e}get model(){const e={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map((e=>e.model)),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map((e=>e.model)),conditionalFormattings:this.conditionalFormattings};e.cols=s.toModel(this.columns);const t=e.rows=[],r=e.dimensions=new a;return this._rows.forEach((e=>{const n=e&&e.model;n&&(r.expand(n.number,n.min,n.number,n.max),t.push(n))})),e.merges=[],n.each(this._merges,(t=>{e.merges.push(t.range)})),e}_parseRows(e){this._rows=[],e.rows.forEach((e=>{const t=new o(this,e.number);this._rows[t.number-1]=t,t.model=e}))}_parseMergeCells(e){n.each(e.mergeCells,(e=>{this.mergeCellsWithoutStyle(e)}))}set model(e){this.name=e.name,this._columns=s.fromModel(this,e.cols),this._parseRows(e),this._parseMergeCells(e),this.dataValidations=new d(e.dataValidations),this.properties=e.properties,this.pageSetup=e.pageSetup,this.headerFooter=e.headerFooter,this.views=e.views,this.autoFilter=e.autoFilter,this._media=e.media.map((e=>new l(this,e))),this.sheetProtection=e.sheetProtection,this.tables=e.tables.reduce(((e,t)=>{const r=new u;return r.model=t,e[t.name]=r,e}),{}),this.conditionalFormattings=e.conditionalFormattings}}},25046:(e,t,r)=>{const n={Workbook:r(12432),ModelContainer:r(98236),stream:{xlsx:{WorkbookWriter:r(3682),WorkbookReader:r(34114)}}};Object.assign(n,r(70880)),e.exports=n},31090:(e,t,r)=>{const{EventEmitter:n}=r(24434),i=r(37043),a=r(70880),o=r(71745);e.exports=class extends n{constructor({workbook:e,id:t,iterator:r,options:n}){super(),this.workbook=e,this.id=t,this.iterator=r,this.options=n}get count(){return this.hyperlinks&&this.hyperlinks.length||0}each(e){return this.hyperlinks.forEach(e)}async read(){const{iterator:e,options:t}=this;let r=!1,n=null;switch(t.hyperlinks){case"emit":r=!0;break;case"cache":this.hyperlinks=n={}}if(r||n)try{for await(const t of i(e))for(const{eventType:e,value:i}of t)if("opentag"===e){const e=i;if("Relationship"===e.name){const t=e.attributes.Id;if(e.attributes.Type===o.Hyperlink){const i={type:a.RelationshipType.Styles,rId:t,target:e.attributes.Target,targetMode:e.attributes.TargetMode};r?this.emit("hyperlink",i):n[i.rId]=i}}}this.emit("finished")}catch(e){this.emit("error",e)}else this.emit("finished")}}},95234:(e,t,r)=>{const n=r(12141),i=r(71745),a=r(29428),o=r(41710),s=r(23712);e.exports=class{constructor(e,t,r){this.id=r.id,this.count=0,this._worksheet=e,this._workbook=r.workbook,this._sheetRelsWriter=t}get commentsStream(){return this._commentsStream||(this._commentsStream=this._workbook._openStream(`/xl/comments${this.id}.xml`)),this._commentsStream}get vmlStream(){return this._vmlStream||(this._vmlStream=this._workbook._openStream(`xl/drawings/vmlDrawing${this.id}.vml`)),this._vmlStream}_addRelationships(){const e={Type:i.Comments,Target:`../comments${this.id}.xml`};this._sheetRelsWriter.addRelationship(e);const t={Type:i.VmlDrawing,Target:`../drawings/vmlDrawing${this.id}.vml`};this.vmlRelId=this._sheetRelsWriter.addRelationship(t)}_addCommentRefs(){this._workbook.commentRefs.push({commentName:`comments${this.id}`,vmlDrawing:`vmlDrawing${this.id}`})}_writeOpen(){this.commentsStream.write('<?xml version="1.0" encoding="UTF-8" standalone="yes"?><comments xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><authors><author>Author</author></authors><commentList>'),this.vmlStream.write('<?xml version="1.0" encoding="UTF-8"?><xml xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:x="urn:schemas-microsoft-com:office:excel"><o:shapelayout v:ext="edit"><o:idmap v:ext="edit" data="1" /></o:shapelayout><v:shapetype id="_x0000_t202" coordsize="21600,21600" o:spt="202" path="m,l,21600r21600,l21600,xe"><v:stroke joinstyle="miter" /><v:path gradientshapeok="t" o:connecttype="rect" /></v:shapetype>')}_writeComment(e,t){const r=new o,i=new n;r.render(i,e),this.commentsStream.write(i.xml);const a=new s,c=new n;a.render(c,e,t),this.vmlStream.write(c.xml)}_writeClose(){this.commentsStream.write("</commentList></comments>"),this.vmlStream.write("</xml>")}addComments(e){e&&e.length&&(this.startedData||(this._worksheet.comments=[],this._writeOpen(),this._addRelationships(),this._addCommentRefs(),this.startedData=!0),e.forEach((e=>{e.refAddress=a.decodeAddress(e.ref)})),e.forEach((e=>{this._writeComment(e,this.count),this.count+=1})))}commit(){this.count&&(this._writeClose(),this.commentsStream.end(),this.vmlStream.end())}}},72404:(e,t,r)=>{const n=r(67032),i=r(71745);class a{constructor(e){this.writer=e}push(e){this.writer.addHyperlink(e)}}e.exports=class{constructor(e){this.id=e.id,this.count=0,this._hyperlinks=[],this._workbook=e.workbook}get stream(){return this._stream||(this._stream=this._workbook._openStream(`/xl/worksheets/_rels/sheet${this.id}.xml.rels`)),this._stream}get length(){return this._hyperlinks.length}each(e){return this._hyperlinks.forEach(e)}get hyperlinksProxy(){return this._hyperlinksProxy||(this._hyperlinksProxy=new a(this))}addHyperlink(e){const t={Target:e.target,Type:i.Hyperlink,TargetMode:"External"},r=this._writeRelationship(t);this._hyperlinks.push({rId:r,address:e.address})}addMedia(e){return this._writeRelationship(e)}addRelationship(e){return this._writeRelationship(e)}commit(){this.count&&(this._writeClose(),this.stream.end())}_writeOpen(){this.stream.write('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n       <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">')}_writeRelationship(e){this.count||this._writeOpen();const t="rId"+ ++this.count;return e.TargetMode?this.stream.write(`<Relationship Id="${t}" Type="${e.Type}" Target="${n.xmlEncode(e.Target)}" TargetMode="${e.TargetMode}"/>`):this.stream.write(`<Relationship Id="${t}" Type="${e.Type}" Target="${e.Target}"/>`),t}_writeClose(){this.stream.write("</Relationships>")}}},34114:(e,t,r)=>{const n=r(79896),{EventEmitter:i}=r(24434),{PassThrough:a,Readable:o}=r(34198),s=r(2203),c=r(14490),l=r(35083),u=r(83676),d=r(37043),p=r(17647),f=r(22519),m=r(61724),g=r(51648),_=r(31090);l.setGracefulCleanup();class h extends i{constructor(e,t={}){super(),this.input=e,this.options={worksheets:"emit",sharedStrings:"cache",hyperlinks:"ignore",styles:"ignore",entries:"ignore",...t},this.styles=new p,this.styles.init()}_getStream(e){if(e instanceof s.Readable||e instanceof o)return e;if("string"==typeof e)return n.createReadStream(e);throw new Error(`Could not recognise input: ${e}`)}async read(e,t){try{for await(const{eventType:r,value:n}of this.parse(e,t))switch(r){case"shared-strings":case"hyperlinks":this.emit(r,n);break;case"worksheet":this.emit(r,n),await n.read()}this.emit("end"),this.emit("finished")}catch(e){this.emit("error",e)}}async*[Symbol.asyncIterator](){for await(const{eventType:e,value:t}of this.parse())"worksheet"===e&&(yield t)}async*parse(e,t){t&&(this.options=t);const r=this.stream=this._getStream(e||this.input),i=c.Parse({forceStream:!0});r.pipe(i);const o=[];for await(const e of u(i)){let t,r;switch(e.path){case"_rels/.rels":break;case"xl/_rels/workbook.xml.rels":await this._parseRels(e);break;case"xl/workbook.xml":await this._parseWorkbook(e);break;case"xl/sharedStrings.xml":yield*this._parseSharedStrings(e);break;case"xl/styles.xml":await this._parseStyles(e);break;default:e.path.match(/xl\/worksheets\/sheet\d+[.]xml/)?(t=e.path.match(/xl\/worksheets\/sheet(\d+)[.]xml/),r=t[1],this.sharedStrings&&this.workbookRels?yield*this._parseWorksheet(u(e),r):await new Promise(((t,i)=>{l.file(((a,s,c,l)=>{if(a)return i(a);o.push({sheetNo:r,path:s,tempFileCleanupCallback:l});const u=n.createWriteStream(s);return u.on("error",i),e.pipe(u),u.on("finish",(()=>t()))}))}))):e.path.match(/xl\/worksheets\/_rels\/sheet\d+[.]xml.rels/)&&(t=e.path.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),r=t[1],yield*this._parseHyperlinks(u(e),r))}e.autodrain()}for(const{sheetNo:e,path:t,tempFileCleanupCallback:r}of o){let i=n.createReadStream(t);i[Symbol.asyncIterator]||(i=i.pipe(new a)),yield*this._parseWorksheet(i,e),r()}}_emitEntry(e){"emit"===this.options.entries&&this.emit("entry",e)}async _parseRels(e){const t=new m;this.workbookRels=await t.parseStream(u(e))}async _parseWorkbook(e){this._emitEntry({type:"workbook"});const t=new f;await t.parseStream(u(e)),this.properties=t.map.workbookPr,this.model=t.model}async*_parseSharedStrings(e){switch(this._emitEntry({type:"shared-strings"}),this.options.sharedStrings){case"cache":this.sharedStrings=[];break;case"emit":break;default:return}let t=null,r=[],n=0,i=null;for await(const a of d(u(e)))for(const{eventType:e,value:o}of a)if("opentag"===e){const e=o;switch(e.name){case"b":i=i||{},i.bold=!0;break;case"charset":i=i||{},i.charset=parseInt(e.attributes.charset,10);break;case"color":i=i||{},i.color={},e.attributes.rgb&&(i.color.argb=e.attributes.argb),e.attributes.val&&(i.color.argb=e.attributes.val),e.attributes.theme&&(i.color.theme=e.attributes.theme);break;case"family":i=i||{},i.family=parseInt(e.attributes.val,10);break;case"i":i=i||{},i.italic=!0;break;case"outline":i=i||{},i.outline=!0;break;case"rFont":i=i||{},i.name=e.value;break;case"si":i=null,r=[],t=null;break;case"sz":i=i||{},i.size=parseInt(e.attributes.val,10);break;case"strike":break;case"t":t=null;break;case"u":i=i||{},i.underline=!0;break;case"vertAlign":i=i||{},i.vertAlign=e.attributes.val}}else if("text"===e)t=t?t+o:o;else if("closetag"===e){switch(o.name){case"r":r.push({font:i,text:t}),i=null,t=null;break;case"si":"cache"===this.options.sharedStrings?this.sharedStrings.push(r.length?{richText:r}:t):"emit"===this.options.sharedStrings&&(yield{index:n++,text:r.length?{richText:r}:t}),r=[],i=null,t=null}}}async _parseStyles(e){this._emitEntry({type:"styles"}),"cache"===this.options.styles&&(this.styles=new p,await this.styles.parseStream(u(e)))}*_parseWorksheet(e,t){this._emitEntry({type:"worksheet",id:t});const r=new g({workbook:this,id:t,iterator:e,options:this.options}),n=(this.workbookRels||[]).find((e=>e.Target===`worksheets/sheet${t}.xml`)),i=n&&(this.model.sheets||[]).find((e=>e.rId===n.Id));i&&(r.id=i.id,r.name=i.name,r.state=i.state),"emit"===this.options.worksheets&&(yield{eventType:"worksheet",value:r})}*_parseHyperlinks(e,t){this._emitEntry({type:"hyperlinks",id:t});const r=new _({workbook:this,id:t,iterator:e,options:this.options});"emit"===this.options.hyperlinks&&(yield{eventType:"hyperlinks",value:r})}}h.Options={worksheets:["emit","ignore"],sharedStrings:["cache","emit","ignore"],hyperlinks:["cache","emit","ignore"],styles:["cache","ignore"],entries:["emit","ignore"]},e.exports=h},3682:(e,t,r)=>{const n=r(79896),i=r(10711),a=r(87137),o=r(71745),s=r(17647),c=r(92391),l=r(13522),u=r(1298),d=r(61724),p=r(40814),f=r(15888),m=r(22519),g=r(96242),_=r(58444),h=r(46046);e.exports=class{constructor(e){e=e||{},this.created=e.created||new Date,this.modified=e.modified||this.created,this.creator=e.creator||"ExcelJS",this.lastModifiedBy=e.lastModifiedBy||"ExcelJS",this.lastPrinted=e.lastPrinted,this.useSharedStrings=e.useSharedStrings||!1,this.sharedStrings=new c,this.styles=e.useStyles?new s(!0):new s.Mock(!0),this._definedNames=new l,this._worksheets=[],this.views=[],this.zipOptions=e.zip,this.media=[],this.commentRefs=[],this.zip=i("zip",this.zipOptions),e.stream?this.stream=e.stream:e.filename?this.stream=n.createWriteStream(e.filename):this.stream=new a,this.zip.pipe(this.stream),this.promise=Promise.all([this.addThemes(),this.addOfficeRels()])}get definedNames(){return this._definedNames}_openStream(e){const t=new a({bufSize:65536,batch:!0});return this.zip.append(t,{name:e}),t.on("finish",(()=>{t.emit("zipped")})),t}_commitWorksheets(){const e=this._worksheets.map((function(e){return e.committed?Promise.resolve():new Promise((t=>{e.stream.on("zipped",(()=>{t()})),e.commit()}))}));return e.length?Promise.all(e):Promise.resolve()}async commit(){return await this.promise,await this.addMedia(),await this._commitWorksheets(),await Promise.all([this.addContentTypes(),this.addApp(),this.addCore(),this.addSharedStrings(),this.addStyles(),this.addWorkbookRels()]),await this.addWorkbook(),this._finalize()}get nextId(){let e;for(e=1;e<this._worksheets.length;e++)if(!this._worksheets[e])return e;return this._worksheets.length||1}addImage(e){const t=this.media.length,r=Object.assign({},e,{type:"image",name:`image${t}.${e.extension}`});return this.media.push(r),t}getImage(e){return this.media[e]}addWorksheet(e,t){const r=void 0!==(t=t||{}).useSharedStrings?t.useSharedStrings:this.useSharedStrings;t.tabColor&&(console.trace("tabColor option has moved to { properties: tabColor: {...} }"),t.properties=Object.assign({tabColor:t.tabColor},t.properties));const n=this.nextId,i=new _({id:n,name:e=e||`sheet${n}`,workbook:this,useSharedStrings:r,properties:t.properties,state:t.state,pageSetup:t.pageSetup,views:t.views,autoFilter:t.autoFilter,headerFooter:t.headerFooter});return this._worksheets[n]=i,i}getWorksheet(e){return void 0===e?this._worksheets.find((()=>!0)):"number"==typeof e?this._worksheets[e]:"string"==typeof e?this._worksheets.find((t=>t&&t.name===e)):void 0}addStyles(){return new Promise((e=>{this.zip.append(this.styles.xml,{name:"xl/styles.xml"}),e()}))}addThemes(){return new Promise((e=>{this.zip.append(h,{name:"xl/theme/theme1.xml"}),e()}))}addOfficeRels(){return new Promise((e=>{const t=(new d).toXml([{Id:"rId1",Type:o.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:o.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:o.ExtenderProperties,Target:"docProps/app.xml"}]);this.zip.append(t,{name:"/_rels/.rels"}),e()}))}addContentTypes(){return new Promise((e=>{const t={worksheets:this._worksheets.filter(Boolean),sharedStrings:this.sharedStrings,commentRefs:this.commentRefs,media:this.media},r=(new p).toXml(t);this.zip.append(r,{name:"[Content_Types].xml"}),e()}))}addMedia(){return Promise.all(this.media.map((e=>{if("image"===e.type){const t=`xl/media/${e.name}`;if(e.filename)return this.zip.file(e.filename,{name:t});if(e.buffer)return this.zip.append(e.buffer,{name:t});if(e.base64){const r=e.base64,n=r.substring(r.indexOf(",")+1);return this.zip.append(n,{name:t,base64:!0})}}throw new Error("Unsupported media")})))}addApp(){return new Promise((e=>{const t={worksheets:this._worksheets.filter(Boolean)},r=(new f).toXml(t);this.zip.append(r,{name:"docProps/app.xml"}),e()}))}addCore(){return new Promise((e=>{const t=(new u).toXml(this);this.zip.append(t,{name:"docProps/core.xml"}),e()}))}addSharedStrings(){return this.sharedStrings.count?new Promise((e=>{const t=(new g).toXml(this.sharedStrings);this.zip.append(t,{name:"/xl/sharedStrings.xml"}),e()})):Promise.resolve()}addWorkbookRels(){let e=1;const t=[{Id:"rId"+e++,Type:o.Styles,Target:"styles.xml"},{Id:"rId"+e++,Type:o.Theme,Target:"theme/theme1.xml"}];return this.sharedStrings.count&&t.push({Id:"rId"+e++,Type:o.SharedStrings,Target:"sharedStrings.xml"}),this._worksheets.forEach((r=>{r&&(r.rId="rId"+e++,t.push({Id:r.rId,Type:o.Worksheet,Target:`worksheets/sheet${r.id}.xml`}))})),new Promise((e=>{const r=(new d).toXml(t);this.zip.append(r,{name:"/xl/_rels/workbook.xml.rels"}),e()}))}addWorkbook(){const{zip:e}=this,t={worksheets:this._worksheets.filter(Boolean),definedNames:this._definedNames.model,views:this.views,properties:{},calcProperties:{}};return new Promise((r=>{const n=new m;n.prepare(t),e.append(n.toXml(t),{name:"/xl/workbook.xml"}),r()}))}_finalize(){return new Promise(((e,t)=>{this.stream.on("error",t),this.stream.on("finish",(()=>{e(this)})),this.zip.on("error",t),this.zip.finalize()}))}}},51648:(e,t,r)=>{const{EventEmitter:n}=r(24434),i=r(37043),a=r(67984),o=r(67032),s=r(29428),c=r(69311),l=r(5842),u=r(93362);class d extends n{constructor({workbook:e,id:t,iterator:r,options:n}){super(),this.workbook=e,this.id=t,this.iterator=r,this.options=n||{},this.name=`Sheet${this.id}`,this._columns=null,this._keys={},this._dimensions=new c}destroy(){throw new Error("Invalid Operation: destroy")}get dimensions(){return this._dimensions}get columns(){return this._columns}getColumn(e){if("string"==typeof e){const t=this._keys[e];if(t)return t;e=s.l2n(e)}if(this._columns||(this._columns=[]),e>this._columns.length){let t=this._columns.length+1;for(;t<=e;)this._columns.push(new u(this,t++))}return this._columns[e-1]}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){a.each(this._keys,e)}async read(){try{for await(const e of this.parse())for(const{eventType:t,value:r}of e)this.emit(t,r);this.emit("finished")}catch(e){this.emit("error",e)}}async*[Symbol.asyncIterator](){for await(const e of this.parse())for(const{eventType:t,value:r}of e)"row"===t&&(yield r)}async*parse(){const{iterator:e,options:t}=this;let r=!1,n=!1,a=null;if("emit"===t.worksheets)r=!0;switch(t.hyperlinks){case"emit":n=!0;break;case"cache":this.hyperlinks=a={}}if(!r&&!n&&!a)return;const{sharedStrings:c,styles:d,properties:p}=this.workbook;let f=!1,m=!1,g=!1,_=null,h=null,y=null,v=null;for await(const t of i(e)){const e=[];for(const{eventType:i,value:b}of t)if("opentag"===i){const t=b;if(r)switch(t.name){case"cols":f=!0,_=[];break;case"sheetData":m=!0;break;case"col":f&&_.push({min:parseInt(t.attributes.min,10),max:parseInt(t.attributes.max,10),width:parseFloat(t.attributes.width),styleId:parseInt(t.attributes.style||"0",10)});break;case"row":if(m){const e=parseInt(t.attributes.r,10);if(h=new l(this,e),t.attributes.ht&&(h.height=parseFloat(t.attributes.ht)),t.attributes.s){const e=parseInt(t.attributes.s,10),r=d.getStyleModel(e);r&&(h.style=r)}}break;case"c":h&&(y={ref:t.attributes.r,s:parseInt(t.attributes.s,10),t:t.attributes.t});break;case"f":y&&(v=y.f={text:""});break;case"v":case"is":case"t":y&&(v=y.v={text:""})}if(n||a)switch(t.name){case"hyperlinks":g=!0;break;case"hyperlink":if(g){const r={ref:t.attributes.ref,rId:t.attributes["r:id"]};n?e.push({eventType:"hyperlink",value:r}):a[r.ref]=r}}}else if("text"===i)r&&v&&(v.text+=b);else if("closetag"===i){const t=b;if(r)switch(t.name){case"cols":f=!1,this._columns=u.fromModel(_);break;case"sheetData":m=!1;break;case"row":this._dimensions.expandRow(h),e.push({eventType:"row",value:h}),h=null;break;case"c":if(h&&y){const e=s.decodeAddress(y.ref),t=h.getCell(e.col);if(y.s){const e=d.getStyleModel(y.s);e&&(t.style=e)}if(y.f){const e={formula:y.f.text};y.v&&("str"===y.t?e.result=o.xmlDecode(y.v.text):e.result=parseFloat(y.v.text)),t.value=e}else if(y.v)switch(y.t){case"s":{const e=parseInt(y.v.text,10);t.value=c?c[e]:{sharedString:e};break}case"inlineStr":case"str":t.value=o.xmlDecode(y.v.text);break;case"e":t.value={error:y.v.text};break;case"b":t.value=0!==parseInt(y.v.text,10);break;default:o.isDateFmt(t.numFmt)?t.value=o.excelToDate(parseFloat(y.v.text),p.model&&p.model.date1904):t.value=parseFloat(y.v.text)}if(a){const e=a[y.ref];e&&(t.text=t.value,t.value=void 0,t.hyperlink=e)}y=null}}if((n||a)&&"hyperlinks"===t.name)g=!1}e.length>0&&(yield e)}}}e.exports=d},58444:(e,t,r)=>{const n=r(67984),i=r(71745),a=r(29428),o=r(7257),s=r(69311),c=r(40524),l=r(5842),u=r(93362),d=r(72404),p=r(95234),f=r(88561),m=new c,g=r(62447),_=r(27210),h=r(93236),y=r(35772),v=r(8599),b=r(80981),k=r(76591),x=r(27832),E=r(94482),S=r(97802),D=r(64892),w=r(47749),T=r(74711),C=r(12700),A=r(87182),N=r(9668),P={dataValidations:new _,sheetProperties:new h,sheetFormatProperties:new y,columns:new g({tag:"cols",length:!1,childXform:new v}),row:new b,hyperlinks:new g({tag:"hyperlinks",length:!1,childXform:new k}),sheetViews:new g({tag:"sheetViews",length:!1,childXform:new x}),sheetProtection:new E,pageMargins:new S,pageSeteup:new D,autoFilter:new w,picture:new T,conditionalFormattings:new C,headerFooter:new A,rowBreaks:new N};e.exports=class{constructor(e){this.id=e.id,this.name=e.name||`Sheet${this.id}`,this.state=e.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges=[],this._merges.add=function(){},this._sheetRelsWriter=new d(e),this._sheetCommentsWriter=new p(this,this._sheetRelsWriter,e),this._dimensions=new s,this._rowZero=1,this.committed=!1,this.dataValidations=new f,this._formulae={},this._siFormulae=0,this.conditionalFormatting=[],this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},e.properties),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},e.headerFooter),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!e.pageSetup||!e.pageSetup.fitToWidth&&!e.pageSetup.fitToHeight||e.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},e.pageSetup),this.useSharedStrings=e.useSharedStrings||!1,this._workbook=e.workbook,this.hasComments=!1,this._views=e.views||[],this.autoFilter=e.autoFilter||null,this._media=[],this.sheetProtection=null,this._writeOpenWorksheet(),this.startedData=!1}get workbook(){return this._workbook}get stream(){return this._stream||(this._stream=this._workbook._openStream(`/xl/worksheets/sheet${this.id}.xml`),this._stream.pause()),this._stream}destroy(){throw new Error("Invalid Operation: destroy")}commit(){this.committed||(this._rows.forEach((e=>{e&&this._writeRow(e)})),this._rows=null,this.startedData||this._writeOpenSheetData(),this._writeCloseSheetData(),this._writeAutoFilter(),this._writeMergeCells(),this._writeHyperlinks(),this._writeConditionalFormatting(),this._writeDataValidations(),this._writeSheetProtection(),this._writePageMargins(),this._writePageSetup(),this._writeBackground(),this._writeHeaderFooter(),this._writeRowBreaks(),this._writeLegacyData(),this._writeCloseWorksheet(),this.stream.end(),this._sheetCommentsWriter.commit(),this._sheetRelsWriter.commit(),this.committed=!0)}get dimensions(){return this._dimensions}get views(){return this._views}get columns(){return this._columns}set columns(e){this._headerRowCount=e.reduce(((e,t)=>{const r=(t.header?1:t.headers&&t.headers.length)||0;return Math.max(e,r)}),0);let t=1;const r=this._columns=[];e.forEach((e=>{const n=new u(this,t++,!1);r.push(n),n.defn=e}))}getColumnKey(e){return this._keys[e]}setColumnKey(e,t){this._keys[e]=t}deleteColumnKey(e){delete this._keys[e]}eachColumnKey(e){n.each(this._keys,e)}getColumn(e){if("string"==typeof e){const t=this._keys[e];if(t)return t;e=a.l2n(e)}if(this._columns||(this._columns=[]),e>this._columns.length){let t=this._columns.length+1;for(;t<=e;)this._columns.push(new u(this,t++))}return this._columns[e-1]}get _nextRow(){return this._rowZero+this._rows.length}eachRow(e,t){if(t||(t=e,e=void 0),e&&e.includeEmpty){const e=this._nextRow;for(let r=this._rowZero;r<e;r++)t(this.getRow(r),r)}else this._rows.forEach((e=>{e.hasValues&&t(e,e.number)}))}_commitRow(e){let t=!1;for(;this._rows.length&&!t;){const r=this._rows.shift();this._rowZero++,r&&(this._writeRow(r),t=r.number===e.number,this._rowZero=r.number+1)}}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(e){const t=e-this._rowZero;return this._rows[t]}getRow(e){const t=e-this._rowZero;if(t<0)throw new Error("Out of bounds: this row has been committed");let r=this._rows[t];return r||(this._rows[t]=r=new l(this,e)),r}addRow(e){const t=new l(this,this._nextRow);return this._rows[t.number-this._rowZero]=t,t.values=e,t}findCell(e,t){const r=a.getAddress(e,t),n=this.findRow(r.row);return n?n.findCell(r.column):void 0}getCell(e,t){const r=a.getAddress(e,t);return this.getRow(r.row).getCellEx(r)}mergeCells(...e){const t=new s(e);this._merges.forEach((e=>{if(e.intersects(t))throw new Error("Cannot merge already merged cells")}));const r=this.getCell(t.top,t.left);for(let e=t.top;e<=t.bottom;e++)for(let n=t.left;n<=t.right;n++)(e>t.top||n>t.left)&&this.getCell(e,n).merge(r);this._merges.push(t)}addConditionalFormatting(e){this.conditionalFormatting.push(e)}removeConditionalFormatting(e){"number"==typeof e?this.conditionalFormatting.splice(e,1):this.conditionalFormatting=e instanceof Function?this.conditionalFormatting.filter(e):[]}addBackgroundImage(e){this._background={imageId:e}}getBackgroundImageId(){return this._background&&this._background.imageId}protect(e,t){return new Promise((r=>{this.sheetProtection={sheet:!0},t&&"spinCount"in t&&(t.spinCount=Number.isFinite(t.spinCount)?Math.round(Math.max(0,t.spinCount)):1e5),e&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=o.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=t&&"spinCount"in t?t.spinCount:1e5,this.sheetProtection.hashValue=o.convertPasswordToHash(e,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),t&&(this.sheetProtection=Object.assign(this.sheetProtection,t),!e&&"spinCount"in t&&delete this.sheetProtection.spinCount),r()}))}unprotect(){this.sheetProtection=null}_write(e){m.reset(),m.addText(e),this.stream.write(m)}_writeSheetProperties(e,t,r){const n={outlineProperties:t&&t.outlineProperties,tabColor:t&&t.tabColor,pageSetup:r&&r.fitToPage?{fitToPage:r.fitToPage}:void 0};e.addText(P.sheetProperties.toXml(n))}_writeSheetFormatProperties(e,t){const r=t?{defaultRowHeight:t.defaultRowHeight,dyDescent:t.dyDescent,outlineLevelCol:t.outlineLevelCol,outlineLevelRow:t.outlineLevelRow}:void 0;t.defaultColWidth&&(r.defaultColWidth=t.defaultColWidth),e.addText(P.sheetFormatProperties.toXml(r))}_writeOpenWorksheet(){m.reset(),m.addText('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'),m.addText('<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac">'),this._writeSheetProperties(m,this.properties,this.pageSetup),m.addText(P.sheetViews.toXml(this.views)),this._writeSheetFormatProperties(m,this.properties),this.stream.write(m)}_writeColumns(){const e=u.toModel(this.columns);e&&(P.columns.prepare(e,{styles:this._workbook.styles}),this.stream.write(P.columns.toXml(e)))}_writeOpenSheetData(){this._write("<sheetData>")}_writeRow(e){if(this.startedData||(this._writeColumns(),this._writeOpenSheetData(),this.startedData=!0),e.hasValues||e.height){const{model:t}=e,r={styles:this._workbook.styles,sharedStrings:this.useSharedStrings?this._workbook.sharedStrings:void 0,hyperlinks:this._sheetRelsWriter.hyperlinksProxy,merges:this._merges,formulae:this._formulae,siFormulae:this._siFormulae,comments:[]};P.row.prepare(t,r),this.stream.write(P.row.toXml(t)),r.comments.length&&(this.hasComments=!0,this._sheetCommentsWriter.addComments(r.comments))}}_writeCloseSheetData(){this._write("</sheetData>")}_writeMergeCells(){this._merges.length&&(m.reset(),m.addText(`<mergeCells count="${this._merges.length}">`),this._merges.forEach((e=>{m.addText(`<mergeCell ref="${e}"/>`)})),m.addText("</mergeCells>"),this.stream.write(m))}_writeHyperlinks(){this.stream.write(P.hyperlinks.toXml(this._sheetRelsWriter._hyperlinks))}_writeConditionalFormatting(){const e={styles:this._workbook.styles};P.conditionalFormattings.prepare(this.conditionalFormatting,e),this.stream.write(P.conditionalFormattings.toXml(this.conditionalFormatting))}_writeRowBreaks(){this.stream.write(P.rowBreaks.toXml(this.rowBreaks))}_writeDataValidations(){this.stream.write(P.dataValidations.toXml(this.dataValidations.model))}_writeSheetProtection(){this.stream.write(P.sheetProtection.toXml(this.sheetProtection))}_writePageMargins(){this.stream.write(P.pageMargins.toXml(this.pageSetup.margins))}_writePageSetup(){this.stream.write(P.pageSeteup.toXml(this.pageSetup))}_writeHeaderFooter(){this.stream.write(P.headerFooter.toXml(this.headerFooter))}_writeAutoFilter(){this.stream.write(P.autoFilter.toXml(this.autoFilter))}_writeBackground(){if(this._background){if(void 0!==this._background.imageId){const e=this._workbook.getImage(this._background.imageId),t=this._sheetRelsWriter.addMedia({Target:`../media/${e.name}`,Type:i.Image});this._background={...this._background,rId:t}}this.stream.write(P.picture.toXml({rId:this._background.rId}))}}_writeLegacyData(){this.hasComments&&(m.reset(),m.addText(`<legacyDrawing r:id="${this._sheetCommentsWriter.vmlRelId}"/>`),this.stream.write(m))}_writeDimensions(){}_writeCloseWorksheet(){this._write("</worksheet>")}}},50323:(e,t)=>{const r="undefined"==typeof TextDecoder?null:new TextDecoder("utf-8");t.bufferToString=function(e){return"string"==typeof e?e:r?r.decode(e):e.toString()}},24463:(e,t,r)=>{const n="undefined"==typeof TextEncoder?null:new TextEncoder("utf-8"),{Buffer:i}=r(20181);t.stringToBuffer=function(e){return"string"!=typeof e?e:n?i.from(n.encode(e).buffer):i.from(e)}},38583:(e,t,r)=>{const n=r(67984),i=r(29428);e.exports=class{constructor(e){this.template=e,this.sheets={}}addCell(e){this.addCellEx(i.decodeEx(e))}getCell(e){return this.findCellEx(i.decodeEx(e),!0)}findCell(e){return this.findCellEx(i.decodeEx(e),!1)}findCellAt(e,t,r){const n=this.sheets[e],i=n&&n[t];return i&&i[r]}addCellEx(e){if(e.top)for(let t=e.top;t<=e.bottom;t++)for(let r=e.left;r<=e.right;r++)this.getCellAt(e.sheetName,t,r);else this.findCellEx(e,!0)}getCellEx(e){return this.findCellEx(e,!0)}findCellEx(e,t){const r=this.findSheet(e,t),n=this.findSheetRow(r,e,t);return this.findRowCell(n,e,t)}getCellAt(e,t,r){const n=this.sheets[e]||(this.sheets[e]=[]),a=n[t]||(n[t]=[]);return a[r]||(a[r]={sheetName:e,address:i.n2l(r)+t,row:t,col:r})}removeCellEx(e){const t=this.findSheet(e);if(!t)return;const r=this.findSheetRow(t,e);r&&delete r[e.col]}forEachInSheet(e,t){const r=this.sheets[e];r&&r.forEach(((e,r)=>{e&&e.forEach(((e,n)=>{e&&t(e,r,n)}))}))}forEach(e){n.each(this.sheets,((t,r)=>{this.forEachInSheet(r,e)}))}map(e){const t=[];return this.forEach((r=>{t.push(e(r))})),t}findSheet(e,t){const r=e.sheetName;return this.sheets[r]?this.sheets[r]:t?this.sheets[r]=[]:void 0}findSheetRow(e,t,r){const{row:n}=t;return e&&e[n]?e[n]:r?e[n]=[]:void 0}findRowCell(e,t,r){const{col:n}=t;return e&&e[n]?e[n]:r?e[n]=this.template?Object.assign(t,JSON.parse(JSON.stringify(this.template))):t:void 0}spliceRows(e,t,r,n){const i=this.sheets[e];if(i){const e=[];for(let t=0;t<n;t++)e.push([]);i.splice(t,r,...e)}}spliceColumns(e,t,r,i){const a=this.sheets[e];if(a){const e=[];for(let t=0;t<i;t++)e.push(null);n.each(a,(n=>{n.splice(t,r,...e)}))}}}},29428:e=>{const t=/^[A-Z]+\d+$/,r={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:e=>e<=26?1:e<=676?2:3,_fill(e){let t,r,n,i,a,o=1;if(e>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&e>=1){for(;o<=26;)t=this._dictionary[o-1],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=1}if(this._l2nFill<2&&e>=2){for(o=27;o<=702;)r=o-27,n=r%26,i=Math.floor(r/26),t=this._dictionary[i]+this._dictionary[n],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=2}if(this._l2nFill<3&&e>=3){for(o=703;o<=16384;)r=o-703,n=r%26,i=Math.floor(r/26)%26,a=Math.floor(r/676),t=this._dictionary[a]+this._dictionary[i]+this._dictionary[n],this._n2l[o]=t,this._l2n[t]=o,o++;this._l2nFill=3}},l2n(e){if(this._l2n[e]||this._fill(e.length),!this._l2n[e])throw new Error(`Out of bounds. Invalid column letter: ${e}`);return this._l2n[e]},n2l(e){if(e<1||e>16384)throw new Error(`${e} is out of bounds. Excel supports columns from 1 to 16384`);return this._n2l[e]||this._fill(this._level(e)),this._n2l[e]},_hash:{},validateAddress(e){if(!t.test(e))throw new Error(`Invalid Address: ${e}`);return!0},decodeAddress(e){const t=e.length<5&&this._hash[e];if(t)return t;let r=!1,n="",i=0,a=!1,o="",s=0;for(let t,c=0;c<e.length;c++)if(t=e.charCodeAt(c),!a&&t>=65&&t<=90)r=!0,n+=e[c],i=26*i+t-64;else if(t>=48&&t<=57)a=!0,o+=e[c],s=10*s+t-48;else if(a&&r&&36!==t)break;if(r){if(i>16384)throw new Error(`Out of bounds. Invalid column letter: ${n}`)}else i=void 0;a||(s=void 0);const c={address:e=n+o,col:i,row:s,$col$row:`$${n}$${o}`};return i<=100&&s<=100&&(this._hash[e]=c,this._hash[c.$col$row]=c),c},getAddress(e,t){if(t){const r=this.n2l(t)+e;return this.decodeAddress(r)}return this.decodeAddress(e)},decode(e){const t=e.split(":");if(2===t.length){const e=this.decodeAddress(t[0]),r=this.decodeAddress(t[1]),n={top:Math.min(e.row,r.row),left:Math.min(e.col,r.col),bottom:Math.max(e.row,r.row),right:Math.max(e.col,r.col)};return n.tl=this.n2l(n.left)+n.top,n.br=this.n2l(n.right)+n.bottom,n.dimensions=`${n.tl}:${n.br}`,n}return this.decodeAddress(e)},decodeEx(e){const t=e.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),r=t[1]||t[2],n=t[3],i=n.split(":");if(i.length>1){let e=this.decodeAddress(i[0]),t=this.decodeAddress(i[1]);const n=Math.min(e.row,t.row),a=Math.min(e.col,t.col),o=Math.max(e.row,t.row),s=Math.max(e.col,t.col);return e=this.n2l(a)+n,t=this.n2l(s)+o,{top:n,left:a,bottom:o,right:s,sheetName:r,tl:{address:e,col:a,row:n,$col$row:`$${this.n2l(a)}$${n}`,sheetName:r},br:{address:t,col:s,row:o,$col$row:`$${this.n2l(s)}$${o}`,sheetName:r},dimensions:`${e}:${t}`}}if(n.startsWith("#"))return r?{sheetName:r,error:n}:{error:n};const a=this.decodeAddress(n);return r?{sheetName:r,...a}:a},encodeAddress:(e,t)=>r.n2l(t)+e,encode(){switch(arguments.length){case 2:return r.encodeAddress(arguments[0],arguments[1]);case 4:return`${r.encodeAddress(arguments[0],arguments[1])}:${r.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(e,t){const[r,n,,i,a]=e,[o,s]=t;return o>=r&&o<=i&&s>=n&&s<=a}};e.exports=r},76172:(e,t)=>{const r=(e,t)=>({...e,...t.reduce(((t,r)=>(e[r]&&(t[r]={...e[r]}),t)),{})}),n=(e,t,n,i=[])=>{e[n]&&(t[n]=r(e[n],i))};t.copyStyle=e=>{if(!e)return e;if(t=e,0===Object.keys(t).length)return{};var t;const i={...e};return n(e,i,"font",["color"]),n(e,i,"alignment"),n(e,i,"protection"),e.border&&(n(e,i,"border"),n(e.border,i.border,"top",["color"]),n(e.border,i.border,"left",["color"]),n(e.border,i.border,"bottom",["color"]),n(e.border,i.border,"right",["color"]),n(e.border,i.border,"diagonal",["color"])),e.fill&&(n(e,i,"fill",["fgColor","bgColor","center"]),e.fill.stops&&(i.fill.stops=e.fill.stops.map((e=>r(e,["color"]))))),i}},7257:(e,t,r)=>{"use strict";const n=r(76982),i={hash(e,...t){const r=n.createHash(e);return r.update(Buffer.concat(t)),r.digest()},convertPasswordToHash(e,t,r,i){t=t.toLowerCase();if(n.getHashes().indexOf(t)<0)throw new Error(`Hash algorithm '${t}' not supported!`);const a=Buffer.from(e,"utf16le");let o=this.hash(t,Buffer.from(r,"base64"),a);for(let e=0;e<i;e++){const r=Buffer.alloc(4);r.writeUInt32LE(e,0),o=this.hash(t,o,r)}return o.toString("base64")},randomBytes:e=>n.randomBytes(e)};e.exports=i},83676:e=>{function t(e,t){return new Promise((r=>{let n=!1;const i=()=>{n||(n=!0,e.removeListener(t,i),r())};e.addListener(t,i)}))}e.exports=async function*(e){const r=[];let n;e.on("data",(e=>r.push(e)));const i=new Promise((e=>n=e));let a=!1;e.on("end",(()=>{a=!0,n()}));let o=!1;for(e.on("error",(e=>{o=e,n()}));!a||r.length>0;){if(0===r.length)e.resume(),await Promise.race([t(e,"data"),i]);else{e.pause();const t=r.shift();yield t}if(o)throw o}n()}},37043:(e,t,r)=>{const{SaxesParser:n}=r(38223),{PassThrough:i}=r(34198),{bufferToString:a}=r(50323);e.exports=async function*(e){e.pipe&&!e[Symbol.asyncIterator]&&(e=e.pipe(new i));const t=new n;let r;t.on("error",(e=>{r=e}));let o=[];t.on("opentag",(e=>o.push({eventType:"opentag",value:e}))),t.on("text",(e=>o.push({eventType:"text",value:e}))),t.on("closetag",(e=>o.push({eventType:"closetag",value:e})));for await(const n of e){if(t.write(a(n)),r)throw r;yield o,o=[]}}},34667:(e,t,r)=>{const n=r(29428),i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,a=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;e.exports={slideFormula:function(e,t,r){const o=n.decode(t),s=n.decode(r);return e.replace(i,((e,t,r,i,c)=>{if(c)return e;const l=a.exec(i);if(l){const r=l[1],i=l[2].toUpperCase(),a=l[3],c=l[4];if(i.length>3||3===i.length&&i>"XFD")return e;let u=n.l2n(i),d=parseInt(c,10);r||(u+=s.col-o.col),a||(d+=s.row-o.row);return(t||"")+(r||"")+n.n2l(u)+(a||"")+d}return e}))}}},92391:e=>{e.exports=class{constructor(){this._values=[],this._totalRefs=0,this._hash=Object.create(null)}get count(){return this._values.length}get values(){return this._values}get totalRefs(){return this._totalRefs}getString(e){return this._values[e]}add(e){let t=this._hash[e];return void 0===t&&(t=this._hash[e]=this._values.length,this._values.push(e)),this._totalRefs++,t}}},87137:(e,t,r)=>{const n=r(34198),i=r(67032),a=r(40524);class o{constructor(e,t){this._data=e,this._encoding=t}get length(){return this.toBuffer().length}copy(e,t,r,n){return this.toBuffer().copy(e,t,r,n)}toBuffer(){return this._buffer||(this._buffer=Buffer.from(this._data,this._encoding)),this._buffer}}class s{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,r,n){return this._data._buf.copy(e,t,r,n)}toBuffer(){return this._data.toBuffer()}}class c{constructor(e){this._data=e}get length(){return this._data.length}copy(e,t,r,n){this._data.copy(e,t,r,n)}toBuffer(){return this._data}}class l{constructor(e){this.size=e,this.buffer=Buffer.alloc(e),this.iRead=0,this.iWrite=0}toBuffer(){if(0===this.iRead&&this.iWrite===this.size)return this.buffer;const e=Buffer.alloc(this.iWrite-this.iRead);return this.buffer.copy(e,0,this.iRead,this.iWrite),e}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(e){let t;return 0===e?null:void 0===e||e>=this.length?(t=this.toBuffer(),this.iRead=this.iWrite,t):(t=Buffer.alloc(e),this.buffer.copy(t,0,this.iRead,e),this.iRead+=e,t)}write(e,t,r){const n=Math.min(r,this.size-this.iWrite);return e.copy(this.buffer,this.iWrite,t,t+n),this.iWrite+=n,n}}const u=function(e){e=e||{},this.bufSize=e.bufSize||1048576,this.buffers=[],this.batch=e.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};i.inherits(u,n.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return Buffer.concat(this.buffers.map((e=>e.toBuffer())))}},_getWritableBuffer(){if(this.buffers.length){const e=this.buffers[this.buffers.length-1];if(!e.full)return e}const e=new l(this.bufSize);return this.buffers.push(e),e},async _pipe(e){await Promise.all(this.pipes.map((function(t){return new Promise((r=>{t.write(e.toBuffer(),(()=>{r()}))}))})))},_writeToBuffers(e){let t=0;const r=e.length;for(;t<r;){t+=this._getWritableBuffer().write(e,t,r-t)}},async write(e,t,r){let n;if(t instanceof Function&&(r=t,t="utf8"),r=r||i.nop,e instanceof a)n=new s(e);else if(e instanceof Buffer)n=new c(e);else{if(!("string"==typeof e||e instanceof String||e instanceof ArrayBuffer))throw new Error("Chunk must be one of type String, Buffer or StringBuf.");n=new o(e,t)}if(this.pipes.length)if(this.batch)for(this._writeToBuffers(n);!this.corked&&this.buffers.length>1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(n),process.nextTick(r)):(await this._pipe(n),r());else this.paused||this.emit("data",n.toBuffer()),this._writeToBuffers(n),this.emit("readable");return!0},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(e,t,r){const n=e=>{e?r(e):(this._flush(),this.pipes.forEach((e=>{e.end()})),this.emit("finish"))};e?this.write(e,t,n):n()},read(e){let t;if(e){for(t=[];e&&this.buffers.length&&!this.buffers[0].eod;){const r=this.buffers[0],n=r.read(e);e-=n.length,t.push(n),r.eod&&r.full&&this.buffers.shift()}return Buffer.concat(t)}return t=this.buffers.map((e=>e.toBuffer())).filter(Boolean),this.buffers=[],Buffer.concat(t)},setEncoding(e){this.encoding=e},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(e){this.pipes.push(e),!this.paused&&this.buffers.length&&this.end()},unpipe(e){this.pipes=this.pipes.filter((t=>t!==e))},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),e.exports=u},40524:e=>{e.exports=class{constructor(e){this._buf=Buffer.alloc(e&&e.size||16384),this._encoding=e&&e.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=Buffer.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(e){e=e||0,this._buffer=void 0,this._inPos=e}_grow(e){let t=2*this._buf.length;for(;t<e;)t*=2;const r=Buffer.alloc(t);this._buf.copy(r,0),this._buf=r}addText(e){this._buffer=void 0;let t=this._inPos+this._buf.write(e,this._inPos,this._encoding);for(;t>=this._buf.length-4;)this._grow(this._inPos+e.length),t=this._inPos+this._buf.write(e,this._inPos,this._encoding);this._inPos=t}addStringBuf(e){e.length&&(this._buffer=void 0,this.length+e.length>this.capacity&&this._grow(this.length+e.length),e._buf.copy(this._buf,this._inPos,0,e.length),this._inPos+=e.length)}}},67984:e=>{const{toString:t}=Object.prototype,r=/["&<>]/,n={each:function(e,t){e&&(Array.isArray(e)?e.forEach(t):Object.keys(e).forEach((r=>{t(e[r],r)})))},some:function(e,t){return!!e&&(Array.isArray(e)?e.some(t):Object.keys(e).some((r=>t(e[r],r))))},every:function(e,t){return!e||(Array.isArray(e)?e.every(t):Object.keys(e).every((r=>t(e[r],r))))},map:function(e,t){return e?Array.isArray(e)?e.map(t):Object.keys(e).map((r=>t(e[r],r))):[]},keyBy:(e,t)=>e.reduce(((e,r)=>(e[r[t]]=r,e)),{}),isEqual:function(e,t){const r=typeof e,i=typeof t,a=Array.isArray(e),o=Array.isArray(t);let s;if(r!==i)return!1;if("object"==typeof e){if(a||o)return!(!a||!o)&&(e.length===t.length&&e.every(((e,r)=>{const i=t[r];return n.isEqual(e,i)})));if(null===e||null===t)return e===t;if(s=Object.keys(e),Object.keys(t).length!==s.length)return!1;for(const e of s)if(!t.hasOwnProperty(e))return!1;return n.every(e,((e,r)=>{const i=t[r];return n.isEqual(e,i)}))}return e===t},escapeHtml(e){const t=r.exec(e);if(!t)return e;let n="",i="",a=0,o=t.index;for(;o<e.length;o++){switch(e.charAt(o)){case'"':i="&quot;";break;case"&":i="&amp;";break;case"'":i="&apos;";break;case"<":i="&lt;";break;case">":i="&gt;";break;default:continue}a!==o&&(n+=e.substring(a,o)),a=o+1,n+=i}return a!==o?n+e.substring(a,o):n},strcmp:(e,t)=>e<t?-1:e>t?1:0,isUndefined:e=>"[object Undefined]"===t.call(e),isObject:e=>"[object Object]"===t.call(e),deepMerge(){const e=arguments[0]||{},{length:t}=arguments;let r,i,a;function o(t,o){r=e[o],a=Array.isArray(t),n.isObject(t)||a?(a?(a=!1,i=r&&Array.isArray(r)?r:[]):i=r&&n.isObject(r)?r:{},e[o]=n.deepMerge(i,t)):n.isUndefined(t)||(e[o]=t)}for(let e=0;e<t;e++)n.each(arguments[e],o);return e}};e.exports=n},67032:(e,t,r)=>{const n=r(79896),i=/[<>&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,a={nop(){},promiseImmediate:e=>new Promise((t=>{global.setImmediate?setImmediate((()=>{t(e)})):setTimeout((()=>{t(e)}),1)})),inherits:function(e,t,r,n){e.super_=t,n||(n=r,r=null),r&&Object.keys(r).forEach((t=>{Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}));const i={constructor:{value:e,enumerable:!1,writable:!1,configurable:!0}};n&&Object.keys(n).forEach((e=>{i[e]=Object.getOwnPropertyDescriptor(n,e)})),e.prototype=Object.create(t.prototype,i)},dateToExcel:(e,t)=>25569+e.getTime()/864e5-(t?1462:0),excelToDate(e,t){const r=Math.round(24*(e-25569+(t?1462:0))*3600*1e3);return new Date(r)},parsePath(e){const t=e.lastIndexOf("/");return{path:e.substring(0,t),name:e.substring(t+1)}},getRelsPath(e){const t=a.parsePath(e);return`${t.path}/_rels/${t.name}.rels`},xmlEncode(e){const t=i.exec(e);if(!t)return e;let r="",n="",a=0,o=t.index;for(;o<e.length;o++){const t=e.charCodeAt(o);switch(t){case 34:n="&quot;";break;case 38:n="&amp;";break;case 39:n="&apos;";break;case 60:n="&lt;";break;case 62:n="&gt;";break;case 127:n="";break;default:if(t<=31&&(t<=8||t>=11&&13!==t)){n="";break}continue}a!==o&&(r+=e.substring(a,o)),a=o+1,n&&(r+=n)}return a!==o?r+e.substring(a,o):r},xmlDecode:e=>e.replace(/&([a-z]*);/g,(e=>{switch(e){case"&lt;":return"<";case"&gt;":return">";case"&amp;":return"&";case"&apos;":return"'";case"&quot;":return'"';default:return e}})),validInt(e){const t=parseInt(e,10);return Number.isNaN(t)?0:t},isDateFmt(e){if(!e)return!1;return null!==(e=(e=e.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)},fs:{exists:e=>new Promise((t=>{n.access(e,n.constants.F_OK,(e=>{t(!e)}))}))},toIsoDateString:e=>e.toIsoString().subsstr(0,10),parseBoolean:e=>!0===e||"true"===e||1===e||"1"===e};e.exports=a},12141:(e,t,r)=>{const n=r(67984),i=r(67032),a=">";function o(e,t,r){e.push(` ${t}="${i.xmlEncode(r.toString())}"`)}function s(e,t){if(t){const r=[];n.each(t,((e,t)=>{void 0!==e&&o(r,t,e)})),e.push(r.join(""))}}class c{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(e){const t=this._xml;t.push("<?xml"),s(t,e),t.push("?>\n")}openNode(e,t){const r=this.tos,n=this._xml;r&&this.open&&n.push(a),this._stack.push(e),n.push("<"),n.push(e),s(n,t),this.leaf=!0,this.open=!0}addAttribute(e,t){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");void 0!==t&&o(this._xml,e,t)}addAttributes(e){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");s(this._xml,e)}writeText(e){const t=this._xml;this.open&&(t.push(a),this.open=!1),this.leaf=!1,t.push(i.xmlEncode(e.toString()))}writeXml(e){this.open&&(this._xml.push(a),this.open=!1),this.leaf=!1,this._xml.push(e)}closeNode(){const e=this._stack.pop(),t=this._xml;this.leaf?t.push("/>"):(t.push("</"),t.push(e),t.push(a)),this.open=!1,this.leaf=!1}leafNode(e,t,r){this.openNode(e,t),void 0!==r&&this.writeText(r),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){const e=this._rollbacks.pop();this._xml.length>e.xml&&this._xml.splice(e.xml,this._xml.length-e.xml),this._stack.length>e.stack&&this._stack.splice(e.stack,this._stack.length-e.stack),this.leaf=e.leaf,this.open=e.open}get xml(){return this.closeAll(),this._xml.join("")}}c.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},e.exports=c},1495:(e,t,r)=>{const n=r(24434),i=r(58833),a=r(87137),{stringToBuffer:o}=r(24463);class s extends n.EventEmitter{constructor(e){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},e),this.zip=new i,this.stream=new a}append(e,t){t.hasOwnProperty("base64")&&t.base64?this.zip.file(t.name,e,{base64:!0}):(process.browser&&"string"==typeof e&&(e=o(e)),this.zip.file(t.name,e))}async finalize(){const e=await this.zip.generateAsync(this.options);this.stream.end(e),this.emit("finish")}read(e){return this.stream.read(e)}setEncoding(e){return this.stream.setEncoding(e)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(e,t){return this.stream.pipe(e,t)}unpipe(e){return this.stream.unpipe(e)}unshift(e){return this.stream.unshift(e)}wrap(e){return this.stream.wrap(e)}}e.exports={ZipWriter:s}},77118:e=>{e.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},71745:e=>{"use strict";e.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},87242:(e,t,r)=>{const n=r(37043),i=r(12141);class a{prepare(){}render(){}parseOpen(e){}parseText(e){}parseClose(e){}reconcile(e,t){}reset(){this.model=null,this.map&&Object.values(this.map).forEach((e=>{e instanceof a?e.reset():e.xform&&e.xform.reset()}))}mergeModel(e){this.model=Object.assign(this.model||{},e)}async parse(e){for await(const t of e)for(const{eventType:e,value:r}of t)if("opentag"===e)this.parseOpen(r);else if("text"===e)this.parseText(r);else if("closetag"===e&&!this.parseClose(r.name))return this.model;return this.model}async parseStream(e){return this.parse(n(e))}get xml(){return this.toXml(this.model)}toXml(e){const t=new i;return this.render(t,e),t.xml}static toAttribute(e,t,r=!1){if(void 0===e){if(r)return t}else if(r||e!==t)return e.toString()}static toStringAttribute(e,t,r=!1){return a.toAttribute(e,t,r)}static toStringValue(e,t){return void 0===e?t:e}static toBoolAttribute(e,t,r=!1){if(void 0===e){if(r)return t}else if(r||e!==t)return e?"1":"0"}static toBoolValue(e,t){return void 0===e?t:"1"===e}static toIntAttribute(e,t,r=!1){return a.toAttribute(e,t,r)}static toIntValue(e,t){return void 0===e?t:parseInt(e,10)}static toFloatAttribute(e,t,r=!1){return a.toAttribute(e,t,r)}static toFloatValue(e,t){return void 0===e?t:parseFloat(e)}}e.exports=a},78788:(e,t,r)=>{const n=r(87242),i=r(29428);function a(e){try{return i.decodeEx(e),!0}catch(e){return!1}}function o(e){const t=[];let r=!1,n="";return e.split(",").forEach((e=>{if(!e)return;const i=(e.match(/'/g)||[]).length;if(!i)return void(r?n+=`${e},`:a(e)&&t.push(e));const o=i%2==0;!r&&o&&a(e)?t.push(e):r&&!o?(r=!1,a(n+e)&&t.push(n+e),n=""):(r=!0,n+=`${e},`)})),t}e.exports=class extends n{render(e,t){e.openNode("definedName",{name:t.name,localSheetId:t.localSheetId}),e.writeText(t.ranges.join(",")),e.closeNode()}parseOpen(e){return"definedName"===e.name&&(this._parsedName=e.attributes.name,this._parsedLocalSheetId=e.attributes.localSheetId,this._parsedText=[],!0)}parseText(e){this._parsedText.push(e)}parseClose(){return this.model={name:this._parsedName,ranges:o(this._parsedText.join(""))},void 0!==this._parsedLocalSheetId&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},63722:(e,t,r)=>{const n=r(67032),i=r(87242);e.exports=class extends i{render(e,t){e.leafNode("sheet",{sheetId:t.id,name:t.name,state:t.state,"r:id":t.rId})}parseOpen(e){return"sheet"===e.name&&(this.model={name:n.xmlDecode(e.attributes.name),id:parseInt(e.attributes.sheetId,10),state:e.attributes.state,rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},58655:(e,t,r)=>{const n=r(87242);e.exports=class extends n{render(e,t){e.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:t.fullCalcOnLoad?1:void 0})}parseOpen(e){return"calcPr"===e.name&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},22403:(e,t,r)=>{const n=r(87242);e.exports=class extends n{render(e,t){e.leafNode("workbookPr",{date1904:t.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(e){return"workbookPr"===e.name&&(this.model={date1904:"1"===e.attributes.date1904},!0)}parseText(){}parseClose(){return!1}}},41711:(e,t,r)=>{const n=r(87242);e.exports=class extends n{render(e,t){const r={xWindow:t.x||0,yWindow:t.y||0,windowWidth:t.width||12e3,windowHeight:t.height||24e3,firstSheet:t.firstSheet,activeTab:t.activeTab};t.visibility&&"visible"!==t.visibility&&(r.visibility=t.visibility),e.leafNode("workbookView",r)}parseOpen(e){if("workbookView"===e.name){const t=this.model={},r=function(e,r,n){const i=void 0!==r?t[e]=r:n;void 0!==i&&(t[e]=i)},n=function(e,r,n){const i=void 0!==r?t[e]=parseInt(r,10):n;void 0!==i&&(t[e]=i)};return n("x",e.attributes.xWindow,0),n("y",e.attributes.yWindow,0),n("width",e.attributes.windowWidth,25e3),n("height",e.attributes.windowHeight,1e4),r("visibility",e.attributes.visibility,"visible"),n("activeTab",e.attributes.activeTab,void 0),n("firstSheet",e.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},22519:(e,t,r)=>{const n=r(67984),i=r(29428),a=r(12141),o=r(87242),s=r(52789),c=r(62447),l=r(78788),u=r(63722),d=r(41711),p=r(22403),f=r(58655);class m extends o{constructor(){super(),this.map={fileVersion:m.STATIC_XFORMS.fileVersion,workbookPr:new p,bookViews:new c({tag:"bookViews",count:!1,childXform:new d}),sheets:new c({tag:"sheets",count:!1,childXform:new u}),definedNames:new c({tag:"definedNames",count:!1,childXform:new l}),calcPr:new f}}prepare(e){e.sheets=e.worksheets;const t=[];let r=0;e.sheets.forEach((e=>{if(e.pageSetup&&e.pageSetup.printArea&&e.pageSetup.printArea.split("&&").forEach((n=>{const i=n.split(":"),a={name:"_xlnm.Print_Area",ranges:[`'${e.name}'!$${i[0]}:$${i[1]}`],localSheetId:r};t.push(a)})),e.pageSetup&&(e.pageSetup.printTitlesRow||e.pageSetup.printTitlesColumn)){const n=[];if(e.pageSetup.printTitlesColumn){const t=e.pageSetup.printTitlesColumn.split(":");n.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}if(e.pageSetup.printTitlesRow){const t=e.pageSetup.printTitlesRow.split(":");n.push(`'${e.name}'!$${t[0]}:$${t[1]}`)}const i={name:"_xlnm.Print_Titles",ranges:n,localSheetId:r};t.push(i)}r++})),t.length&&(e.definedNames=e.definedNames.concat(t)),(e.media||[]).forEach(((e,t)=>{e.name=e.type+(t+1)}))}render(e,t){e.openXml(a.StdDocAttributes),e.openNode("workbook",m.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(e),this.map.workbookPr.render(e,t.properties),this.map.bookViews.render(e,t.views),this.map.sheets.render(e,t.sheets),this.map.definedNames.render(e,t.definedNames),this.map.calcPr.render(e,t.calcProperties),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):("workbook"===e.name||(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):"workbook"!==e||(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1)}reconcile(e){const t=(e.workbookRels||[]).reduce(((e,t)=>(e[t.Id]=t,e)),{}),r=[];let a,o=0;(e.sheets||[]).forEach((n=>{const i=t[n.rId];i&&(a=e.worksheetHash[`xl/${i.Target.replace(/^(\s|\/xl\/)+/,"")}`],a&&(a.name=n.name,a.id=n.id,a.state=n.state,r[o++]=a))}));const s=[];n.each(e.definedNames,(e=>{if("_xlnm.Print_Area"===e.name){if(a=r[e.localSheetId],a){a.pageSetup||(a.pageSetup={});const t=i.decodeEx(e.ranges[0]);a.pageSetup.printArea=a.pageSetup.printArea?`${a.pageSetup.printArea}&&${t.dimensions}`:t.dimensions}}else if("_xlnm.Print_Titles"===e.name){if(a=r[e.localSheetId],a){a.pageSetup||(a.pageSetup={});const t=e.ranges.join(","),r=/\$/g,n=/\$\d+:\$\d+/,i=t.match(n);if(i&&i.length){const e=i[0];a.pageSetup.printTitlesRow=e.replace(r,"")}const o=/\$[A-Z]+:\$[A-Z]+/,s=t.match(o);if(s&&s.length){const e=s[0];a.pageSetup.printTitlesColumn=e.replace(r,"")}}}else s.push(e)})),e.definedNames=s,e.media.forEach(((e,t)=>{e.index=t}))}}m.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},m.STATIC_XFORMS={fileVersion:new s({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},e.exports=m},41710:(e,t,r)=>{const n=r(95814),i=r(67032),a=r(87242),o=e.exports=function(e){this.model=e};i.inherits(o,a,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new n),this._richTextXform},render(e,t){t=t||this.model,e.openNode("comment",{ref:t.ref,authorId:0}),e.openNode("text"),t&&t.note&&t.note.texts&&t.note.texts.forEach((t=>{this.richTextXform.render(e,t)})),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"comment":return this.model={type:"note",note:{texts:[]},...e.attributes},!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},10959:(e,t,r)=>{const n=r(12141),i=r(67032),a=r(87242),o=r(41710),s=e.exports=function(){this.map={comment:new o}};i.inherits(s,a,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(e,t){t=t||this.model,e.openXml(n.StdDocAttributes),e.openNode("comments",s.COMMENTS_ATTRIBUTES),e.openNode("authors"),e.leafNode("author",null,"Author"),e.closeNode(),e.openNode("commentList"),t.comments.forEach((t=>{this.map.comment.render(e,t)})),e.closeNode(),e.closeNode()},parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(e),!0;default:return!1}},parseText(e){this.parser&&this.parser.parseText(e)},parseClose(e){switch(e){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}})},57190:(e,t,r)=>{const n=r(87242);e.exports=class extends n{constructor(e){super(),this._model=e}get tag(){return this._model&&this._model.tag}render(e,t,r){(t===r[2]||"x:SizeWithCells"===this.tag&&t===r[1])&&e.leafNode(this.tag)}parseOpen(e){return e.name===this.tag&&(this.model={},this.model[this.tag]=!0,!0)}parseText(){}parseClose(){return!1}}},59718:(e,t,r)=>{const n=r(87242);e.exports=class extends n{constructor(e){super(),this._model=e}get tag(){return this._model&&this._model.tag}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(e){return e.name===this.tag&&(this.text="",!0)}parseText(e){this.text=e}parseClose(){return!1}}},44110:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"x:Anchor"}getAnchorRect(e){const t=Math.floor(e.left),r=Math.floor(68*(e.left-t)),n=Math.floor(e.top),i=Math.floor(18*(e.top-n)),a=Math.floor(e.right),o=Math.floor(68*(e.right-a)),s=Math.floor(e.bottom);return[t,r,n,i,a,o,s,Math.floor(18*(e.bottom-s))]}getDefaultRect(e){const t=e.col,r=Math.max(e.row-2,0);return[t,6,r,14,t+2,2,r+4,16]}render(e,t){const r=t.anchor?this.getAnchorRect(t.anchor):this.getDefaultRect(t.refAddress);e.leafNode("x:Anchor",null,r.join(", "))}parseOpen(e){return e.name===this.tag&&(this.text="",!0)}parseText(e){this.text=e}parseClose(){return!1}}},59887:(e,t,r)=>{const n=r(87242),i=r(44110),a=r(59718),o=r(57190),s=["twoCells","oneCells","absolute"];e.exports=class extends n{constructor(){super(),this.map={"x:Anchor":new i,"x:Locked":new a({tag:"x:Locked"}),"x:LockText":new a({tag:"x:LockText"}),"x:SizeWithCells":new o({tag:"x:SizeWithCells"}),"x:MoveWithCells":new o({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(e,t){const{protection:r,editAs:n}=t.note;e.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(e,n,s),this.map["x:SizeWithCells"].render(e,n,s),this.map["x:Anchor"].render(e,t),this.map["x:Locked"].render(e,r.locked),e.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(e,r.lockText),e.leafNode("x:Row",null,t.refAddress.row-1),e.leafNode("x:Column",null,t.refAddress.col-1),e.closeNode()}parseOpen(e){if(e.name===this.tag)this.reset(),this.model={anchor:[],protection:{},editAs:""};else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.normalizeModel(),!1)}normalizeModel(){const e=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),t=Object.keys(e).length;this.model.editAs=s[t],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},43316:(e,t,r)=>{const n=r(12141),i=r(87242),a=r(23712);class o extends i{constructor(){super(),this.map={"v:shape":new a}}get tag(){return"xml"}render(e,t){e.openXml(n.StdDocAttributes),e.openNode(this.tag,o.DRAWING_ATTRIBUTES),e.openNode("o:shapelayout",{"v:ext":"edit"}),e.leafNode("o:idmap",{"v:ext":"edit",data:1}),e.closeNode(),e.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),e.leafNode("v:stroke",{joinstyle:"miter"}),e.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),e.closeNode(),t.comments.forEach(((t,r)=>{this.map["v:shape"].render(e,t,r)})),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset(),this.model={comments:[]};else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}reconcile(e,t){e.anchors.forEach((e=>{e.br?this.map["xdr:twoCellAnchor"].reconcile(e,t):this.map["xdr:oneCellAnchor"].reconcile(e,t)}))}}o.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},e.exports=o},23712:(e,t,r)=>{const n=r(87242),i=r(81905),a=r(59887);class o extends n{constructor(){super(),this.map={"v:textbox":new i,"x:ClientData":new a}}get tag(){return"v:shape"}render(e,t,r){e.openNode("v:shape",o.V_SHAPE_ATTRIBUTES(t,r)),e.leafNode("v:fill",{color2:"infoBackground [80]"}),e.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),e.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(e,t),this.map["x:ClientData"].render(e,t),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset(),this.model={margins:{insetmode:e.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1)}}o.V_SHAPE_ATTRIBUTES=(e,t)=>({id:`_x0000_s${1025+t}`,type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":e.note.margins&&e.note.margins.insetmode}),e.exports=o},81905:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"v:textbox"}conversionUnit(e,t,r){return`${parseFloat(e)*t.toFixed(2)}${r}`}reverseConversionUnit(e){return(e||"").split(",").map((e=>Number(parseFloat(this.conversionUnit(parseFloat(e),.1,"")).toFixed(2))))}render(e,t){const r={style:"mso-direction-alt:auto"};if(t&&t.note){let{inset:e}=t.note&&t.note.margins;Array.isArray(e)&&(e=e.map((e=>this.conversionUnit(e,10,"mm"))).join(",")),e&&(r.inset=e)}e.openNode("v:textbox",r),e.leafNode("div",{style:"text-align:left"}),e.closeNode()}parseOpen(e){return e.name!==this.tag||(this.model={inset:this.reverseConversionUnit(e.attributes.inset)},!0)}parseText(){}parseClose(e){return e!==this.tag}}},60554:(e,t,r)=>{const n=r(87242);e.exports=class extends n{createNewModel(e){return{}}parseOpen(e){return this.parser=this.parser||this.map[e.name],this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag&&(this.model=this.createNewModel(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}onParserClose(e,t){this.model[e]=t.model}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.onParserClose(e,this.parser),this.parser=void 0),!0):e!==this.tag}}},38955:(e,t,r)=>{const n=r(87242);e.exports=class extends n{render(e,t){e.openNode("HeadingPairs"),e.openNode("vt:vector",{size:2,baseType:"variant"}),e.openNode("vt:variant"),e.leafNode("vt:lpstr",void 0,"Worksheets"),e.closeNode(),e.openNode("vt:variant"),e.leafNode("vt:i4",void 0,t.length),e.closeNode(),e.closeNode(),e.closeNode()}parseOpen(e){return"HeadingPairs"===e.name}parseText(){}parseClose(e){return"HeadingPairs"!==e}}},30449:(e,t,r)=>{const n=r(87242);e.exports=class extends n{render(e,t){e.openNode("TitlesOfParts"),e.openNode("vt:vector",{size:t.length,baseType:"lpstr"}),t.forEach((t=>{e.leafNode("vt:lpstr",void 0,t.name)})),e.closeNode(),e.closeNode()}parseOpen(e){return"TitlesOfParts"===e.name}parseText(){}parseClose(e){return"TitlesOfParts"!==e}}},15888:(e,t,r)=>{const n=r(12141),i=r(87242),a=r(71207),o=r(38955),s=r(30449);class c extends i{constructor(){super(),this.map={Company:new a({tag:"Company"}),Manager:new a({tag:"Manager"}),HeadingPairs:new o,TitleOfParts:new s}}render(e,t){e.openXml(n.StdDocAttributes),e.openNode("Properties",c.PROPERTY_ATTRIBUTES),e.leafNode("Application",void 0,"Microsoft Excel"),e.leafNode("DocSecurity",void 0,"0"),e.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(e,t.worksheets),this.map.TitleOfParts.render(e,t.worksheets),this.map.Company.render(e,t.company||""),this.map.Manager.render(e,t.manager),e.leafNode("LinksUpToDate",void 0,"false"),e.leafNode("SharedDoc",void 0,"false"),e.leafNode("HyperlinksChanged",void 0,"false"),e.leafNode("AppVersion",void 0,"16.0300"),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"Properties"===e.name||(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):"Properties"!==e||(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1)}}c.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3,6}/,"")},c.DateAttrs={"xsi:type":"dcterms:W3CDTF"},c.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},e.exports=c},40814:(e,t,r)=>{const n=r(12141),i=r(87242);class a extends i{render(e,t){e.openXml(n.StdDocAttributes),e.openNode("Types",a.PROPERTY_ATTRIBUTES);const r={};(t.media||[]).forEach((t=>{if("image"===t.type){const n=t.extension;r[n]||(r[n]=!0,e.leafNode("Default",{Extension:n,ContentType:`image/${n}`}))}})),e.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),e.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),e.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),t.worksheets.forEach((t=>{const r=`/xl/worksheets/sheet${t.id}.xml`;e.leafNode("Override",{PartName:r,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})})),e.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),e.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"});t.sharedStrings&&t.sharedStrings.count&&e.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),t.tables&&t.tables.forEach((t=>{e.leafNode("Override",{PartName:`/xl/tables/${t.target}`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})})),t.drawings&&t.drawings.forEach((t=>{e.leafNode("Override",{PartName:`/xl/drawings/${t.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})})),t.commentRefs&&(e.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),t.commentRefs.forEach((({commentName:t})=>{e.leafNode("Override",{PartName:`/xl/${t}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})}))),e.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),e.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),e.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}a.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},e.exports=a},1298:(e,t,r)=>{const n=r(12141),i=r(87242),a=r(59874),o=r(71207),s=r(65208);class c extends i{constructor(){super(),this.map={"dc:creator":new o({tag:"dc:creator"}),"dc:title":new o({tag:"dc:title"}),"dc:subject":new o({tag:"dc:subject"}),"dc:description":new o({tag:"dc:description"}),"dc:identifier":new o({tag:"dc:identifier"}),"dc:language":new o({tag:"dc:language"}),"cp:keywords":new o({tag:"cp:keywords"}),"cp:category":new o({tag:"cp:category"}),"cp:lastModifiedBy":new o({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new a({tag:"cp:lastPrinted",format:c.DateFormat}),"cp:revision":new s({tag:"cp:revision"}),"cp:version":new o({tag:"cp:version"}),"cp:contentStatus":new o({tag:"cp:contentStatus"}),"cp:contentType":new o({tag:"cp:contentType"}),"dcterms:created":new a({tag:"dcterms:created",attrs:c.DateAttrs,format:c.DateFormat}),"dcterms:modified":new a({tag:"dcterms:modified",attrs:c.DateAttrs,format:c.DateFormat})}}render(e,t){e.openXml(n.StdDocAttributes),e.openNode("cp:coreProperties",c.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(e,t.creator),this.map["dc:title"].render(e,t.title),this.map["dc:subject"].render(e,t.subject),this.map["dc:description"].render(e,t.description),this.map["dc:identifier"].render(e,t.identifier),this.map["dc:language"].render(e,t.language),this.map["cp:keywords"].render(e,t.keywords),this.map["cp:category"].render(e,t.category),this.map["cp:lastModifiedBy"].render(e,t.lastModifiedBy),this.map["cp:lastPrinted"].render(e,t.lastPrinted),this.map["cp:revision"].render(e,t.revision),this.map["cp:version"].render(e,t.version),this.map["cp:contentStatus"].render(e,t.contentStatus),this.map["cp:contentType"].render(e,t.contentType),this.map["dcterms:created"].render(e,t.created),this.map["dcterms:modified"].render(e,t.modified),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;switch(e){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error(`Unexpected xml node in parseClose: ${e}`)}}}c.DateFormat=function(e){return e.toISOString().replace(/[.]\d{3}/,"")},c.DateAttrs={"xsi:type":"dcterms:W3CDTF"},c.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},e.exports=c},7431:(e,t,r)=>{const n=r(87242);e.exports=class extends n{render(e,t){e.leafNode("Relationship",t)}parseOpen(e){return"Relationship"===e.name&&(this.model=e.attributes,!0)}parseText(){}parseClose(){return!1}}},61724:(e,t,r)=>{const n=r(12141),i=r(87242),a=r(7431);class o extends i{constructor(){super(),this.map={Relationship:new a}}render(e,t){t=t||this._values,e.openXml(n.StdDocAttributes),e.openNode("Relationships",o.RELATIONSHIPS_ATTRIBUTES),t.forEach((t=>{this.map.Relationship.render(e,t)})),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if("Relationships"===e.name)return this.model=[],!0;if(this.parser=this.map[e.name],this.parser)return this.parser.parseOpen(e),!0;throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0),!0;if("Relationships"===e)return!1;throw new Error(`Unexpected xml node in parseClose: ${e}`)}}o.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},e.exports=o},36662:(e,t,r)=>{const n=r(87242);e.exports=class extends n{parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset(),this.model={range:{editAs:e.attributes.editAs||"oneCell"}};else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}parseText(e){this.parser&&this.parser.parseText(e)}reconcilePicture(e,t){if(e&&e.rId){const r=t.rels[e.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(r){const e=r[1],n=t.mediaIndex[e];return t.media[n]}}}}},78631:(e,t,r)=>{const n=r(87242),i=r(92539);e.exports=class extends n{constructor(){super(),this.map={"a:blip":new i}}get tag(){return"xdr:blipFill"}render(e,t){e.openNode(this.tag),this.map["a:blip"].render(e,t),e.openNode("a:stretch"),e.leafNode("a:fillRect"),e.closeNode(),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset();else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["a:blip"].model,!1)}}},92539:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"a:blip"}render(e,t){e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":t.rId,cstate:"print"})}parseOpen(e){return e.name!==this.tag||(this.model={rId:e.attributes["r:embed"]},!0)}parseText(){}parseClose(e){return e!==this.tag}}},250:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"xdr:cNvPicPr"}render(e){e.openNode(this.tag),e.leafNode("a:picLocks",{noChangeAspect:"1"}),e.closeNode()}parseOpen(e){return e.name,this.tag,!0}parseText(){}parseClose(e){return e!==this.tag}}},57289:(e,t,r)=>{const n=r(87242),i=r(68749),a=r(84625);e.exports=class extends n{constructor(){super(),this.map={"a:hlinkClick":new i,"a:extLst":new a}}get tag(){return"xdr:cNvPr"}render(e,t){e.openNode(this.tag,{id:t.index,name:`Picture ${t.index}`}),this.map["a:hlinkClick"].render(e,t),this.map["a:extLst"].render(e,t),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset();else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["a:hlinkClick"].model,!1)}}},76244:(e,t,r)=>{const n=r(87242),i=r(65208);e.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.map={"xdr:col":new i({tag:"xdr:col",zero:!0}),"xdr:colOff":new i({tag:"xdr:colOff",zero:!0}),"xdr:row":new i({tag:"xdr:row",zero:!0}),"xdr:rowOff":new i({tag:"xdr:rowOff",zero:!0})}}render(e,t){e.openNode(this.tag),this.map["xdr:col"].render(e,t.nativeCol),this.map["xdr:colOff"].render(e,t.nativeColOff),this.map["xdr:row"].render(e,t.nativeRow),this.map["xdr:rowOff"].render(e,t.nativeRowOff),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset();else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1)}}},66386:(e,t,r)=>{const n=r(29428),i=r(12141),a=r(87242),o=r(43285),s=r(80715);class c extends a{constructor(){super(),this.map={"xdr:twoCellAnchor":new o,"xdr:oneCellAnchor":new s}}prepare(e){e.anchors.forEach(((e,t)=>{e.anchorType=function(e){return("string"==typeof e.range?n.decode(e.range):e.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}(e);this.map[e.anchorType].prepare(e,{index:t})}))}get tag(){return"xdr:wsDr"}render(e,t){e.openXml(i.StdDocAttributes),e.openNode(this.tag,c.DRAWING_ATTRIBUTES),t.anchors.forEach((t=>{this.map[t.anchorType].render(e,t)})),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset(),this.model={anchors:[]};else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):e!==this.tag}reconcile(e,t){e.anchors.forEach((e=>{e.br?this.map["xdr:twoCellAnchor"].reconcile(e,t):this.map["xdr:oneCellAnchor"].reconcile(e,t)}))}}c.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},e.exports=c},84625:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"a:extLst"}render(e){e.openNode(this.tag),e.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),e.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),e.closeNode(),e.closeNode()}parseOpen(e){return e.name,this.tag,!0}parseText(){}parseClose(e){return e!==this.tag}}},44183:(e,t,r)=>{const n=r(87242),i=9525;e.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.map={}}render(e,t){e.openNode(this.tag);const r=Math.floor(t.width*i),n=Math.floor(t.height*i);e.addAttribute("cx",r),e.addAttribute("cy",n),e.closeNode()}parseOpen(e){return e.name===this.tag&&(this.model={width:parseInt(e.attributes.cx||"0",10)/i,height:parseInt(e.attributes.cy||"0",10)/i},!0)}parseText(){}parseClose(){return!1}}},68749:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"a:hlinkClick"}render(e,t){t.hyperlinks&&t.hyperlinks.rId&&e.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":t.hyperlinks.rId,tooltip:t.hyperlinks.tooltip})}parseOpen(e){return e.name!==this.tag||(this.model={hyperlinks:{rId:e.attributes["r:id"],tooltip:e.attributes.tooltip}},!0)}parseText(){}parseClose(){return!1}}},30246:(e,t,r)=>{const n=r(87242),i=r(57289),a=r(250);e.exports=class extends n{constructor(){super(),this.map={"xdr:cNvPr":new i,"xdr:cNvPicPr":new a}}get tag(){return"xdr:nvPicPr"}render(e,t){e.openNode(this.tag),this.map["xdr:cNvPr"].render(e,t),this.map["xdr:cNvPicPr"].render(e,t),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset();else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model=this.map["xdr:cNvPr"].model,!1)}}},80715:(e,t,r)=>{const n=r(36662),i=r(52789),a=r(76244),o=r(44183),s=r(11932);e.exports=class extends n{constructor(){super(),this.map={"xdr:from":new a({tag:"xdr:from"}),"xdr:ext":new o({tag:"xdr:ext"}),"xdr:pic":new s,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:ext"].render(e,t.range.ext),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1)}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}},11932:(e,t,r)=>{const n=r(87242),i=r(52789),a=r(78631),o=r(30246),s=r(27299);e.exports=class extends n{constructor(){super(),this.map={"xdr:nvPicPr":new o,"xdr:blipFill":new a,"xdr:spPr":new i(s)}}get tag(){return"xdr:pic"}prepare(e,t){e.index=t.index+1}render(e,t){e.openNode(this.tag),this.map["xdr:nvPicPr"].render(e,t),this.map["xdr:blipFill"].render(e,t),this.map["xdr:spPr"].render(e,t),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)this.reset();else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):e!==this.tag}}},27299:e=>{e.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},43285:(e,t,r)=>{const n=r(36662),i=r(52789),a=r(76244),o=r(11932);e.exports=class extends n{constructor(){super(),this.map={"xdr:from":new a({tag:"xdr:from"}),"xdr:to":new a({tag:"xdr:to"}),"xdr:pic":new o,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(e,t){this.map["xdr:pic"].prepare(e.picture,t)}render(e,t){e.openNode(this.tag,{editAs:t.range.editAs||"oneCell"}),this.map["xdr:from"].render(e,t.range.tl),this.map["xdr:to"].render(e,t.range.br),this.map["xdr:pic"].render(e,t.picture),this.map["xdr:clientData"].render(e,{}),e.closeNode()}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1)}reconcile(e,t){e.medium=this.reconcilePicture(e.picture,t)}}},62447:(e,t,r)=>{const n=r(87242);e.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.always=!!e.always,this.count=e.count,this.empty=e.empty,this.$count=e.$count||"count",this.$=e.$,this.childXform=e.childXform,this.maxItems=e.maxItems}prepare(e,t){const{childXform:r}=this;e&&e.forEach(((e,n)=>{t.index=n,r.prepare(e,t)}))}render(e,t){if(this.always||t&&t.length){e.openNode(this.tag,this.$),this.count&&e.addAttribute(this.$count,t&&t.length||0);const{childXform:r}=this;(t||[]).forEach(((t,n)=>{r.render(e,t,n)})),e.closeNode()}else this.empty&&e.leafNode(this.tag)}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(e)&&(this.parser=this.childXform,!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(e,t){if(e){const{childXform:r}=this;e.forEach((e=>{r.reconcile(e,t)}))}}}},47749:(e,t,r)=>{const n=r(29428),i=r(87242);e.exports=class extends i{get tag(){return"autoFilter"}render(e,t){if(t)if("string"==typeof t)e.leafNode("autoFilter",{ref:t});else{const r=function(e){return"string"==typeof e?e:n.getAddress(e.row,e.column).address},i=r(t.from),a=r(t.to);i&&a&&e.leafNode("autoFilter",{ref:`${i}:${a}`})}}parseOpen(e){"autoFilter"===e.name&&(this.model=e.attributes.ref)}}},57963:(e,t,r)=>{const n=r(67032),i=r(87242),a=r(69311),o=r(70880),s=r(95814);function c(e){if(null==e)return o.ValueType.Null;if(e instanceof String||"string"==typeof e)return o.ValueType.String;if("number"==typeof e)return o.ValueType.Number;if("boolean"==typeof e)return o.ValueType.Boolean;if(e instanceof Date)return o.ValueType.Date;if(e.text&&e.hyperlink)return o.ValueType.Hyperlink;if(e.formula)return o.ValueType.Formula;if(e.error)return o.ValueType.Error;throw new Error("I could not understand type of value")}e.exports=class extends i{constructor(){super(),this.richTextXForm=new s}get tag(){return"c"}prepare(e,t){const r=t.styles.addStyleModel(e.style||{},(n=e).type===o.ValueType.Formula?c(n.result):n.type);var n;switch(r&&(e.styleId=r),e.comment&&t.comments.push({...e.comment,ref:e.address}),e.type){case o.ValueType.String:case o.ValueType.RichText:t.sharedStrings&&(e.ssId=t.sharedStrings.add(e.value));break;case o.ValueType.Date:t.date1904&&(e.date1904=!0);break;case o.ValueType.Hyperlink:t.sharedStrings&&void 0!==e.text&&null!==e.text&&(e.ssId=t.sharedStrings.add(e.text)),t.hyperlinks.push({address:e.address,target:e.hyperlink,tooltip:e.tooltip});break;case o.ValueType.Merge:t.merges.add(e);break;case o.ValueType.Formula:if(t.date1904&&(e.date1904=!0),"shared"===e.shareType&&(e.si=t.siFormulae++),e.formula)t.formulae[e.address]=e;else if(e.sharedFormula){const r=t.formulae[e.sharedFormula];if(!r)throw new Error(`Shared Formula master must exist above and or left of clone for cell ${e.address}`);void 0===r.si?(r.shareType="shared",r.si=t.siFormulae++,r.range=new a(r.address,e.address)):r.range&&r.range.expandToAddress(e.address),e.si=r.si}}}renderFormula(e,t){let r=null;switch(t.shareType){case"shared":r={t:"shared",ref:t.ref||t.range.range,si:t.si};break;case"array":r={t:"array",ref:t.ref};break;default:void 0!==t.si&&(r={t:"shared",si:t.si})}switch(c(t.result)){case o.ValueType.Null:e.leafNode("f",r,t.formula);break;case o.ValueType.String:e.addAttribute("t","str"),e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result);break;case o.ValueType.Number:e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result);break;case o.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result?1:0);break;case o.ValueType.Error:e.addAttribute("t","e"),e.leafNode("f",r,t.formula),e.leafNode("v",null,t.result.error);break;case o.ValueType.Date:e.leafNode("f",r,t.formula),e.leafNode("v",null,n.dateToExcel(t.result,t.date1904));break;default:throw new Error("I could not understand type of value")}}render(e,t){if(t.type!==o.ValueType.Null||t.styleId){switch(e.openNode("c"),e.addAttribute("r",t.address),t.styleId&&e.addAttribute("s",t.styleId),t.type){case o.ValueType.Null:break;case o.ValueType.Number:e.leafNode("v",null,t.value);break;case o.ValueType.Boolean:e.addAttribute("t","b"),e.leafNode("v",null,t.value?"1":"0");break;case o.ValueType.Error:e.addAttribute("t","e"),e.leafNode("v",null,t.value.error);break;case o.ValueType.String:case o.ValueType.RichText:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):t.value&&t.value.richText?(e.addAttribute("t","inlineStr"),e.openNode("is"),t.value.richText.forEach((t=>{this.richTextXForm.render(e,t)})),e.closeNode("is")):(e.addAttribute("t","str"),e.leafNode("v",null,t.value));break;case o.ValueType.Date:e.leafNode("v",null,n.dateToExcel(t.value,t.date1904));break;case o.ValueType.Hyperlink:void 0!==t.ssId?(e.addAttribute("t","s"),e.leafNode("v",null,t.ssId)):(e.addAttribute("t","str"),e.leafNode("v",null,t.text));break;case o.ValueType.Formula:this.renderFormula(e,t);case o.ValueType.Merge:}e.closeNode()}}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"c":return this.model={address:e.attributes.r},this.t=e.attributes.t,e.attributes.s&&(this.model.styleId=parseInt(e.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=e.attributes.si,this.model.shareType=e.attributes.t,this.model.ref=e.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){if(this.parser)this.parser.parseText(e);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+e:e;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+e:e:this.model.value=this.model.value?this.model.value+e:e}}parseClose(e){switch(e){case"c":{const{model:e}=this;if(e.formula||e.shareType)e.type=o.ValueType.Formula,e.value&&("str"===this.t?e.result=n.xmlDecode(e.value):"b"===this.t?e.result=0!==parseInt(e.value,10):"e"===this.t?e.result={error:e.value}:e.result=parseFloat(e.value),e.value=void 0);else if(void 0!==e.value)switch(this.t){case"s":e.type=o.ValueType.String,e.value=parseInt(e.value,10);break;case"str":e.type=o.ValueType.String,e.value=n.xmlDecode(e.value);break;case"inlineStr":e.type=o.ValueType.String;break;case"b":e.type=o.ValueType.Boolean,e.value=0!==parseInt(e.value,10);break;case"e":e.type=o.ValueType.Error,e.value={error:e.value};break;default:e.type=o.ValueType.Number,e.value=parseFloat(e.value)}else e.styleId?e.type=o.ValueType.Null:e.type=o.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(e),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(e),!0)}}reconcile(e,t){const r=e.styleId&&t.styles&&t.styles.getStyleModel(e.styleId);switch(r&&(e.style=r),void 0!==e.styleId&&(e.styleId=void 0),e.type){case o.ValueType.String:"number"==typeof e.value&&t.sharedStrings&&(e.value=t.sharedStrings.getString(e.value)),e.value.richText&&(e.type=o.ValueType.RichText);break;case o.ValueType.Number:r&&n.isDateFmt(r.numFmt)&&(e.type=o.ValueType.Date,e.value=n.excelToDate(e.value,t.date1904));break;case o.ValueType.Formula:void 0!==e.result&&r&&n.isDateFmt(r.numFmt)&&(e.result=n.excelToDate(e.result,t.date1904)),"shared"===e.shareType&&(e.ref?t.formulae[e.si]=e.address:(e.sharedFormula=t.formulae[e.si],delete e.shareType),delete e.si)}const i=t.hyperlinkMap[e.address];i&&(e.type===o.ValueType.Formula?(e.text=e.result,e.result=void 0):(e.text=e.value,e.value=void 0),e.type=o.ValueType.Hyperlink,e.hyperlink=i);const a=t.commentsMap&&t.commentsMap[e.address];a&&(e.comment=a)}}},95996:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"x14:cfIcon"}render(e,t){e.leafNode(this.tag,{iconSet:t.iconSet,iconId:t.iconId})}parseOpen({attributes:e}){this.model={iconSet:e.iconSet,iconId:n.toIntValue(e.iconId)}}parseClose(e){return e!==this.tag}}},86827:(e,t,r)=>{const{v4:n}=r(22587),i=r(87242),a=r(60554),o=r(55092),s=r(82507),c={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class l extends a{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new o,"x14:iconSet":this.iconSetXform=new s}}get tag(){return"x14:cfRule"}static isExt(e){return"dataBar"===e.type?o.isExt(e):!("iconSet"!==e.type||!e.custom&&!c[e.iconSet])}prepare(e){l.isExt(e)&&(e.x14Id=`{${n()}}`.toUpperCase())}render(e,t){if(l.isExt(t))switch(t.type){case"dataBar":this.renderDataBar(e,t);break;case"iconSet":this.renderIconSet(e,t)}}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",id:t.x14Id}),this.databarXform.render(e,t),e.closeNode()}renderIconSet(e,t){e.openNode(this.tag,{type:"iconSet",priority:t.priority,id:t.x14Id||`{${n()}}`}),this.iconSetXform.render(e,t),e.closeNode()}createNewModel({attributes:e}){return{type:e.type,x14Id:e.id,priority:i.toIntValue(e.priority)}}onParserClose(e,t){Object.assign(this.model,t.model)}}e.exports=l},76721:(e,t,r)=>{const n=r(60554),i=r(60999);e.exports=class extends n{constructor(){super(),this.map={"xm:f":this.fExtXform=new i}}get tag(){return"x14:cfvo"}render(e,t){e.openNode(this.tag,{type:t.type}),void 0!==t.value&&this.fExtXform.render(e,t.value),e.closeNode()}createNewModel(e){return{type:e.attributes.type}}onParserClose(e,t){if("xm:f"===e)this.model.value=t.model?parseFloat(t.model):0}}},99215:(e,t,r)=>{const n=r(60554),i=r(91848),a=r(86827);e.exports=class extends n{constructor(){super(),this.map={"xm:sqref":this.sqRef=new i,"x14:cfRule":this.cfRule=new a}}get tag(){return"x14:conditionalFormatting"}prepare(e,t){e.rules.forEach((e=>{this.cfRule.prepare(e,t)}))}render(e,t){t.rules.some(a.isExt)&&(e.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),t.rules.filter(a.isExt).forEach((t=>this.cfRule.render(e,t))),this.sqRef.render(e,t.ref),e.closeNode())}createNewModel(){return{rules:[]}}onParserClose(e,t){switch(e){case"xm:sqref":this.model.ref=t.model;break;case"x14:cfRule":this.model.rules.push(t.model)}}}},76672:(e,t,r)=>{const n=r(60554),i=r(86827),a=r(99215);e.exports=class extends n{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new a}}get tag(){return"x14:conditionalFormattings"}hasContent(e){return void 0===e.hasExtContent&&(e.hasExtContent=e.some((e=>e.rules.some(i.isExt)))),e.hasExtContent}prepare(e,t){e.forEach((e=>{this.cfXform.prepare(e,t)}))}render(e,t){this.hasContent(t)&&(e.openNode(this.tag),t.forEach((t=>this.cfXform.render(e,t))),e.closeNode())}createNewModel(){return[]}onParserClose(e,t){this.model.push(t.model)}}},55092:(e,t,r)=>{const n=r(87242),i=r(60554),a=r(42720),o=r(76721);e.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new o,"x14:borderColor":this.borderColorXform=new a("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new a("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new a("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new a("x14:axisColor")}}static isExt(e){return!e.gradient}get tag(){return"x14:dataBar"}render(e,t){e.openNode(this.tag,{minLength:n.toIntAttribute(t.minLength,0,!0),maxLength:n.toIntAttribute(t.maxLength,100,!0),border:n.toBoolAttribute(t.border,!1),gradient:n.toBoolAttribute(t.gradient,!0),negativeBarColorSameAsPositive:n.toBoolAttribute(t.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:n.toBoolAttribute(t.negativeBarBorderColorSameAsPositive,!0),axisPosition:n.toAttribute(t.axisPosition,"auto"),direction:n.toAttribute(t.direction,"leftToRight")}),t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)})),this.borderColorXform.render(e,t.borderColor),this.negativeBorderColorXform.render(e,t.negativeBorderColor),this.negativeFillColorXform.render(e,t.negativeFillColor),this.axisColorXform.render(e,t.axisColor),e.closeNode()}createNewModel({attributes:e}){return{cfvo:[],minLength:n.toIntValue(e.minLength,0),maxLength:n.toIntValue(e.maxLength,100),border:n.toBoolValue(e.border,!1),gradient:n.toBoolValue(e.gradient,!0),negativeBarColorSameAsPositive:n.toBoolValue(e.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:n.toBoolValue(e.negativeBarBorderColorSameAsPositive,!0),axisPosition:n.toStringValue(e.axisPosition,"auto"),direction:n.toStringValue(e.direction,"leftToRight")}}onParserClose(e,t){const[,r]=e.split(":");if("cfvo"===r)this.model.cfvo.push(t.model);else this.model[r]=t.model}}},60999:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"xm:f"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},82507:(e,t,r)=>{const n=r(87242),i=r(60554),a=r(76721),o=r(95996);e.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new a,"x14:cfIcon":this.cfIconXform=new o}}get tag(){return"x14:iconSet"}render(e,t){e.openNode(this.tag,{iconSet:n.toStringAttribute(t.iconSet),reverse:n.toBoolAttribute(t.reverse,!1),showValue:n.toBoolAttribute(t.showValue,!0),custom:n.toBoolAttribute(t.icons,!1)}),t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)})),t.icons&&t.icons.forEach(((t,r)=>{t.iconId=r,this.cfIconXform.render(e,t)})),e.closeNode()}createNewModel({attributes:e}){return{cfvo:[],iconSet:n.toStringValue(e.iconSet,"3TrafficLights"),reverse:n.toBoolValue(e.reverse,!1),showValue:n.toBoolValue(e.showValue,!0)}}onParserClose(e,t){const[,r]=e.split(":");switch(r){case"cfvo":this.model.cfvo.push(t.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(t.model);break;default:this.model[r]=t.model}}}},91848:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"xm:sqref"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},49115:(e,t,r)=>{const n=r(87242),i=r(60554),a=r(69311),o=r(89676),s=r(44200),c=r(93459),l=r(93937),u=r(65515),d={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},p=e=>{const{type:t,operator:r}=e;switch(t){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:t};default:return{type:t,operator:r}}};class f extends i{constructor(){super(),this.map={dataBar:this.databarXform=new o,extLst:this.extLstRefXform=new s,formula:this.formulaXform=new c,colorScale:this.colorScaleXform=new l,iconSet:this.iconSetXform=new u}}get tag(){return"cfRule"}static isPrimitive(e){return"iconSet"!==e.type||!e.custom&&!d[e.iconSet]}render(e,t){switch(t.type){case"expression":this.renderExpression(e,t);break;case"cellIs":this.renderCellIs(e,t);break;case"top10":this.renderTop10(e,t);break;case"aboveAverage":this.renderAboveAverage(e,t);break;case"dataBar":this.renderDataBar(e,t);break;case"colorScale":this.renderColorScale(e,t);break;case"iconSet":this.renderIconSet(e,t);break;case"containsText":this.renderText(e,t);break;case"timePeriod":this.renderTimePeriod(e,t)}}renderExpression(e,t){e.openNode(this.tag,{type:"expression",dxfId:t.dxfId,priority:t.priority}),this.formulaXform.render(e,t.formulae[0]),e.closeNode()}renderCellIs(e,t){e.openNode(this.tag,{type:"cellIs",dxfId:t.dxfId,priority:t.priority,operator:t.operator}),t.formulae.forEach((t=>{this.formulaXform.render(e,t)})),e.closeNode()}renderTop10(e,t){e.leafNode(this.tag,{type:"top10",dxfId:t.dxfId,priority:t.priority,percent:n.toBoolAttribute(t.percent,!1),bottom:n.toBoolAttribute(t.bottom,!1),rank:n.toIntValue(t.rank,10,!0)})}renderAboveAverage(e,t){e.leafNode(this.tag,{type:"aboveAverage",dxfId:t.dxfId,priority:t.priority,aboveAverage:n.toBoolAttribute(t.aboveAverage,!0)})}renderDataBar(e,t){e.openNode(this.tag,{type:"dataBar",priority:t.priority}),this.databarXform.render(e,t),this.extLstRefXform.render(e,t),e.closeNode()}renderColorScale(e,t){e.openNode(this.tag,{type:"colorScale",priority:t.priority}),this.colorScaleXform.render(e,t),e.closeNode()}renderIconSet(e,t){f.isPrimitive(t)&&(e.openNode(this.tag,{type:"iconSet",priority:t.priority}),this.iconSetXform.render(e,t),e.closeNode())}renderText(e,t){e.openNode(this.tag,{type:t.operator,dxfId:t.dxfId,priority:t.priority,operator:n.toStringAttribute(t.operator,"containsText")});const r=(e=>{if(e.formulae&&e.formulae[0])return e.formulae[0];const t=new a(e.ref),{tl:r}=t;switch(e.operator){case"containsText":return`NOT(ISERROR(SEARCH("${e.text}",${r})))`;case"containsBlanks":return`LEN(TRIM(${r}))=0`;case"notContainsBlanks":return`LEN(TRIM(${r}))>0`;case"containsErrors":return`ISERROR(${r})`;case"notContainsErrors":return`NOT(ISERROR(${r}))`;default:return}})(t);r&&this.formulaXform.render(e,r),e.closeNode()}renderTimePeriod(e,t){e.openNode(this.tag,{type:"timePeriod",dxfId:t.dxfId,priority:t.priority,timePeriod:t.timePeriod});const r=(e=>{if(e.formulae&&e.formulae[0])return e.formulae[0];const t=new a(e.ref),{tl:r}=t;switch(e.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${r},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${r},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${r},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${r},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${r},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${r},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${r},1)=TODAY()-1`;case"today":return`FLOOR(${r},1)=TODAY()`;case"tomorrow":return`FLOOR(${r},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${r},1)<=6,FLOOR(${r},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${r})=MONTH(EDATE(TODAY(),0-1)),YEAR(${r})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${r})=MONTH(TODAY()),YEAR(${r})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${r})=MONTH(EDATE(TODAY(),0+1)),YEAR(${r})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(t);r&&this.formulaXform.render(e,r),e.closeNode()}createNewModel({attributes:e}){return{...p(e),dxfId:n.toIntValue(e.dxfId),priority:n.toIntValue(e.priority),timePeriod:e.timePeriod,percent:n.toBoolValue(e.percent),bottom:n.toBoolValue(e.bottom),rank:n.toIntValue(e.rank),aboveAverage:n.toBoolValue(e.aboveAverage)}}onParserClose(e,t){switch(e){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,t.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(t.model)}}}e.exports=f},78929:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"cfvo"}render(e,t){e.leafNode(this.tag,{type:t.type,val:t.value})}parseOpen(e){this.model={type:e.attributes.type,value:n.toFloatValue(e.attributes.val)}}parseClose(e){return e!==this.tag}}},93937:(e,t,r)=>{const n=r(60554),i=r(42720),a=r(78929);e.exports=class extends n{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new i}}get tag(){return"colorScale"}render(e,t){e.openNode(this.tag),t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)})),t.color.forEach((t=>{this.colorXform.render(e,t)})),e.closeNode()}createNewModel(e){return{cfvo:[],color:[]}}onParserClose(e,t){this.model[e].push(t.model)}}},59975:(e,t,r)=>{const n=r(60554),i=r(49115);e.exports=class extends n{constructor(){super(),this.map={cfRule:new i}}get tag(){return"conditionalFormatting"}render(e,t){t.rules.some(i.isPrimitive)&&(e.openNode(this.tag,{sqref:t.ref}),t.rules.forEach((r=>{i.isPrimitive(r)&&(r.ref=t.ref,this.map.cfRule.render(e,r))})),e.closeNode())}createNewModel({attributes:e}){return{ref:e.sqref,rules:[]}}onParserClose(e,t){this.model.rules.push(t.model)}}},12700:(e,t,r)=>{const n=r(87242),i=r(59975);e.exports=class extends n{constructor(){super(),this.cfXform=new i}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(e,t){let r=e.reduce(((e,t)=>Math.max(e,...t.rules.map((e=>e.priority||0)))),1);e.forEach((e=>{e.rules.forEach((e=>{e.priority||(e.priority=r++),e.style&&(e.dxfId=t.styles.addDxfStyle(e.style))}))}))}render(e,t){t.forEach((t=>{this.cfXform.render(e,t)}))}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"conditionalFormatting"===e.name&&(this.parser=this.cfXform,this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(!!this.parser.parseClose(e)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(e,t){e.forEach((e=>{e.rules.forEach((e=>{void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId),delete e.dxfId)}))}))}}},89676:(e,t,r)=>{const n=r(60554),i=r(42720),a=r(78929);e.exports=class extends n{constructor(){super(),this.map={cfvo:this.cfvoXform=new a,color:this.colorXform=new i}}get tag(){return"dataBar"}render(e,t){e.openNode(this.tag),t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)})),this.colorXform.render(e,t.color),e.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(e,t){switch(e){case"cfvo":this.model.cfvo.push(t.model);break;case"color":this.model.color=t.model}}}},44200:(e,t,r)=>{const n=r(87242),i=r(60554);class a extends n{get tag(){return"x14:id"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}class o extends i{constructor(){super(),this.map={"x14:id":this.idXform=new a}}get tag(){return"ext"}render(e,t){e.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(e,t.x14Id),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model.x14Id=t.model}}e.exports=class extends i{constructor(){super(),this.map={ext:new o}}get tag(){return"extLst"}render(e,t){e.openNode(this.tag),this.map.ext.render(e,t),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}},93459:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"formula"}render(e,t){e.leafNode(this.tag,null,t)}parseOpen(){this.model=""}parseText(e){this.model+=e}parseClose(e){return e!==this.tag}}},65515:(e,t,r)=>{const n=r(87242),i=r(60554),a=r(78929);e.exports=class extends i{constructor(){super(),this.map={cfvo:this.cfvoXform=new a}}get tag(){return"iconSet"}render(e,t){e.openNode(this.tag,{iconSet:n.toStringAttribute(t.iconSet,"3TrafficLights"),reverse:n.toBoolAttribute(t.reverse,!1),showValue:n.toBoolAttribute(t.showValue,!0)}),t.cfvo.forEach((t=>{this.cfvoXform.render(e,t)})),e.closeNode()}createNewModel({attributes:e}){return{iconSet:n.toStringValue(e.iconSet,"3TrafficLights"),reverse:n.toBoolValue(e.reverse),showValue:n.toBoolValue(e.showValue),cfvo:[]}}onParserClose(e,t){this.model[e].push(t.model)}}},8599:(e,t,r)=>{const n=r(67032),i=r(87242);e.exports=class extends i{get tag(){return"col"}prepare(e,t){const r=t.styles.addStyleModel(e.style||{});r&&(e.styleId=r)}render(e,t){e.openNode("col"),e.addAttribute("min",t.min),e.addAttribute("max",t.max),t.width&&e.addAttribute("width",t.width),t.styleId&&e.addAttribute("style",t.styleId),t.hidden&&e.addAttribute("hidden","1"),t.bestFit&&e.addAttribute("bestFit","1"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1"),e.addAttribute("customWidth","1"),e.closeNode()}parseOpen(e){if("col"===e.name){const t=this.model={min:parseInt(e.attributes.min||"0",10),max:parseInt(e.attributes.max||"0",10),width:void 0===e.attributes.width?void 0:parseFloat(e.attributes.width||"0")};return e.attributes.style&&(t.styleId=parseInt(e.attributes.style,10)),n.parseBoolean(e.attributes.hidden)&&(t.hidden=!0),n.parseBoolean(e.attributes.bestFit)&&(t.bestFit=!0),e.attributes.outlineLevel&&(t.outlineLevel=parseInt(e.attributes.outlineLevel,10)),n.parseBoolean(e.attributes.collapsed)&&(t.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(e,t){e.styleId&&(e.style=t.styles.getStyleModel(e.styleId))}}},27210:(e,t,r)=>{const n=r(67984),i=r(67032),a=r(29428),o=r(87242),s=r(69311);function c(e,t,r,n){const i=t[r];void 0!==i?e[r]=i:void 0!==n&&(e[r]=n)}function l(e,t,r,n){const a=t[r];void 0!==a?e[r]=i.parseBoolean(a):void 0!==n&&(e[r]=n)}e.exports=class extends o{get tag(){return"dataValidations"}render(e,t){const r=function(e){const t=n.map(e,((e,t)=>({address:t,dataValidation:e,marked:!1}))).sort(((e,t)=>n.strcmp(e.address,t.address))),r=n.keyBy(t,"address"),i=(t,r,i)=>{for(let o=0;o<r;o++){const r=a.encodeAddress(t.row+o,i);if(!e[r]||!n.isEqual(e[t.address],e[r]))return!1}return!0};return t.map((t=>{if(!t.marked){const o=a.decodeEx(t.address);if(o.dimensions)return r[o.dimensions].marked=!0,{...t.dataValidation,sqref:t.address};let s=1,c=a.encodeAddress(o.row+s,o.col);for(;e[c]&&n.isEqual(t.dataValidation,e[c]);)s++,c=a.encodeAddress(o.row+s,o.col);let l=1;for(;i(o,s,o.col+l);)l++;for(let e=0;e<s;e++)for(let t=0;t<l;t++)c=a.encodeAddress(o.row+e,o.col+t),r[c].marked=!0;if(s>1||l>1){const e=o.row+(s-1),r=o.col+(l-1);return{...t.dataValidation,sqref:`${t.address}:${a.encodeAddress(e,r)}`}}return{...t.dataValidation,sqref:t.address}}return null})).filter(Boolean)}(t);r.length&&(e.openNode("dataValidations",{count:r.length}),r.forEach((t=>{e.openNode("dataValidation"),"any"!==t.type&&(e.addAttribute("type",t.type),t.operator&&"list"!==t.type&&"between"!==t.operator&&e.addAttribute("operator",t.operator),t.allowBlank&&e.addAttribute("allowBlank","1")),t.showInputMessage&&e.addAttribute("showInputMessage","1"),t.promptTitle&&e.addAttribute("promptTitle",t.promptTitle),t.prompt&&e.addAttribute("prompt",t.prompt),t.showErrorMessage&&e.addAttribute("showErrorMessage","1"),t.errorStyle&&e.addAttribute("errorStyle",t.errorStyle),t.errorTitle&&e.addAttribute("errorTitle",t.errorTitle),t.error&&e.addAttribute("error",t.error),e.addAttribute("sqref",t.sqref),(t.formulae||[]).forEach(((r,n)=>{e.openNode(`formula${n+1}`),"date"===t.type?e.writeText(i.dateToExcel(new Date(r))):e.writeText(r),e.closeNode()})),e.closeNode()})),e.closeNode())}parseOpen(e){switch(e.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=e.attributes.sqref;const t={type:e.attributes.type||"any",formulae:[]};switch(e.attributes.type&&l(t,e.attributes,"allowBlank"),l(t,e.attributes,"showInputMessage"),l(t,e.attributes,"showErrorMessage"),t.type){case"any":case"list":case"custom":break;default:c(t,e.attributes,"operator","between")}return c(t,e.attributes,"promptTitle"),c(t,e.attributes,"prompt"),c(t,e.attributes,"errorStyle"),c(t,e.attributes,"errorTitle"),c(t,e.attributes,"error"),this._dataValidation=t,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(e){this._formula&&this._formula.push(e)}parseClose(e){switch(e){case"dataValidations":return!1;case"dataValidation":this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator);return(this._address.split(/\s+/g)||[]).forEach((e=>{if(e.includes(":")){new s(e).forEachAddress((e=>{this.model[e]=this._dataValidation}))}else this.model[e]=this._dataValidation})),!0;case"formula1":case"formula2":{let e=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":e=parseInt(e,10);break;case"decimal":e=parseFloat(e);break;case"date":e=i.excelToDate(parseFloat(e))}return this._dataValidation.formulae.push(e),this._formula=void 0,!0}default:return!0}}}},2601:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"dimension"}render(e,t){t&&e.leafNode("dimension",{ref:t})}parseOpen(e){return"dimension"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},81099:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"drawing"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},17100:(e,t,r)=>{const n=r(60554),i=r(76672);class a extends n{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new i}}get tag(){return"ext"}hasContent(e){return this.conditionalFormattings.hasContent(e.conditionalFormattings)}prepare(e,t){this.conditionalFormattings.prepare(e.conditionalFormattings,t)}render(e,t){e.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(e,t.conditionalFormattings),e.closeNode()}createNewModel(){return{}}onParserClose(e,t){this.model[e]=t.model}}e.exports=class extends n{constructor(){super(),this.map={ext:this.ext=new a}}get tag(){return"extLst"}prepare(e,t){this.ext.prepare(e,t)}hasContent(e){return this.ext.hasContent(e)}render(e,t){this.hasContent(t)&&(e.openNode("extLst"),this.ext.render(e,t),e.closeNode())}createNewModel(){return{}}onParserClose(e,t){Object.assign(this.model,t.model)}}},87182:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"headerFooter"}render(e,t){if(t){e.addRollback();let r=!1;e.openNode("headerFooter"),t.differentFirst&&(e.addAttribute("differentFirst","1"),r=!0),t.differentOddEven&&(e.addAttribute("differentOddEven","1"),r=!0),t.oddHeader&&"string"==typeof t.oddHeader&&(e.leafNode("oddHeader",null,t.oddHeader),r=!0),t.oddFooter&&"string"==typeof t.oddFooter&&(e.leafNode("oddFooter",null,t.oddFooter),r=!0),t.evenHeader&&"string"==typeof t.evenHeader&&(e.leafNode("evenHeader",null,t.evenHeader),r=!0),t.evenFooter&&"string"==typeof t.evenFooter&&(e.leafNode("evenFooter",null,t.evenFooter),r=!0),t.firstHeader&&"string"==typeof t.firstHeader&&(e.leafNode("firstHeader",null,t.firstHeader),r=!0),t.firstFooter&&"string"==typeof t.firstFooter&&(e.leafNode("firstFooter",null,t.firstFooter),r=!0),r?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){switch(e.name){case"headerFooter":return this.model={},e.attributes.differentFirst&&(this.model.differentFirst=1===parseInt(e.attributes.differentFirst,0)),e.attributes.differentOddEven&&(this.model.differentOddEven=1===parseInt(e.attributes.differentOddEven,0)),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(e){switch(this.currentNode){case"oddHeader":this.model.oddHeader=e;break;case"oddFooter":this.model.oddFooter=e;break;case"evenHeader":this.model.evenHeader=e;break;case"evenFooter":this.model.evenFooter=e;break;case"firstHeader":this.model.firstHeader=e;break;case"firstFooter":this.model.firstFooter=e}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},76591:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"hyperlink"}render(e,t){this.isInternalLink(t)?e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip,location:t.target}):e.leafNode("hyperlink",{ref:t.address,"r:id":t.rId,tooltip:t.tooltip})}parseOpen(e){return"hyperlink"===e.name&&(this.model={address:e.attributes.ref,rId:e.attributes["r:id"],tooltip:e.attributes.tooltip},e.attributes.location&&(this.model.target=e.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(e){return e.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(e.target)}}},49012:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"mergeCell"}render(e,t){e.leafNode("mergeCell",{ref:t})}parseOpen(e){return"mergeCell"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},96209:(e,t,r)=>{const n=r(67984),i=r(69311),a=r(29428),o=r(70880);e.exports=class{constructor(){this.merges={}}add(e){if(this.merges[e.master])this.merges[e.master].expandToAddress(e.address);else{const t=`${e.master}:${e.address}`;this.merges[e.master]=new i(t)}}get mergeCells(){return n.map(this.merges,(e=>e.range))}reconcile(e,t){n.each(e,(e=>{const r=a.decode(e);for(let e=r.top;e<=r.bottom;e++){const n=t[e-1];for(let t=r.left;t<=r.right;t++){const i=n.cells[t-1];i?i.type===o.ValueType.Merge&&(i.master=r.tl):n.cells[t]={type:o.ValueType.Null,address:a.encodeAddress(e,t)}}}}))}getMasterAddress(e){const t=this.hash[e];return t&&t.tl}}},48223:(e,t,r)=>{const n=r(87242),i=e=>void 0!==e;e.exports=class extends n{get tag(){return"outlinePr"}render(e,t){return!(!t||!i(t.summaryBelow)&&!i(t.summaryRight))&&(e.leafNode(this.tag,{summaryBelow:i(t.summaryBelow)?Number(t.summaryBelow):void 0,summaryRight:i(t.summaryRight)?Number(t.summaryRight):void 0}),!0)}parseOpen(e){return e.name===this.tag&&(this.model={summaryBelow:i(e.attributes.summaryBelow)?Boolean(Number(e.attributes.summaryBelow)):void 0,summaryRight:i(e.attributes.summaryRight)?Boolean(Number(e.attributes.summaryRight)):void 0},!0)}parseText(){}parseClose(){return!1}}},67735:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"brk"}render(e,t){e.leafNode("brk",t)}parseOpen(e){return"brk"===e.name&&(this.model=e.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},97802:(e,t,r)=>{const n=r(67984),i=r(87242);e.exports=class extends i{get tag(){return"pageMargins"}render(e,t){if(t){const r={left:t.left,right:t.right,top:t.top,bottom:t.bottom,header:t.header,footer:t.footer};n.some(r,(e=>void 0!==e))&&e.leafNode(this.tag,r)}}parseOpen(e){return e.name===this.tag&&(this.model={left:parseFloat(e.attributes.left||.7),right:parseFloat(e.attributes.right||.7),top:parseFloat(e.attributes.top||.75),bottom:parseFloat(e.attributes.bottom||.75),header:parseFloat(e.attributes.header||.3),footer:parseFloat(e.attributes.footer||.3)},!0)}parseText(){}parseClose(){return!1}}},87610:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"pageSetUpPr"}render(e,t){return!(!t||!t.fitToPage)&&(e.leafNode(this.tag,{fitToPage:t.fitToPage?"1":void 0}),!0)}parseOpen(e){return e.name===this.tag&&(this.model={fitToPage:"1"===e.attributes.fitToPage},!0)}parseText(){}parseClose(){return!1}}},64892:(e,t,r)=>{const n=r(67984),i=r(87242);function a(e){return e?"1":void 0}function o(e){if("overThenDown"===e)return e}function s(e){switch(e){case"atEnd":case"asDisplyed":return e;default:return}}function c(e){switch(e){case"dash":case"blank":case"NA":return e;default:return}}e.exports=class extends i{get tag(){return"pageSetup"}render(e,t){if(t){const r={paperSize:t.paperSize,orientation:t.orientation,horizontalDpi:t.horizontalDpi,verticalDpi:t.verticalDpi,pageOrder:o(t.pageOrder),blackAndWhite:a(t.blackAndWhite),draft:a(t.draft),cellComments:s(t.cellComments),errors:c(t.errors),scale:t.scale,fitToWidth:t.fitToWidth,fitToHeight:t.fitToHeight,firstPageNumber:t.firstPageNumber,useFirstPageNumber:a(t.firstPageNumber),usePrinterDefaults:a(t.usePrinterDefaults),copies:t.copies};n.some(r,(e=>void 0!==e))&&e.leafNode(this.tag,r)}}parseOpen(e){return e.name===this.tag&&(this.model={paperSize:(t=e.attributes.paperSize,void 0!==t?parseInt(t,10):void 0),orientation:e.attributes.orientation||"portrait",horizontalDpi:parseInt(e.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(e.attributes.verticalDpi||"4294967295",10),pageOrder:e.attributes.pageOrder||"downThenOver",blackAndWhite:"1"===e.attributes.blackAndWhite,draft:"1"===e.attributes.draft,cellComments:e.attributes.cellComments||"None",errors:e.attributes.errors||"displayed",scale:parseInt(e.attributes.scale||"100",10),fitToWidth:parseInt(e.attributes.fitToWidth||"1",10),fitToHeight:parseInt(e.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(e.attributes.firstPageNumber||"1",10),useFirstPageNumber:"1"===e.attributes.useFirstPageNumber,usePrinterDefaults:"1"===e.attributes.usePrinterDefaults,copies:parseInt(e.attributes.copies||"1",10)},!0);var t}parseText(){}parseClose(){return!1}}},74711:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"picture"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},4505:(e,t,r)=>{const n=r(67984),i=r(87242);function a(e){return e?"1":void 0}e.exports=class extends i{get tag(){return"printOptions"}render(e,t){if(t){const r={headings:a(t.showRowColHeaders),gridLines:a(t.showGridLines),horizontalCentered:a(t.horizontalCentered),verticalCentered:a(t.verticalCentered)};n.some(r,(e=>void 0!==e))&&e.leafNode(this.tag,r)}}parseOpen(e){return e.name===this.tag&&(this.model={showRowColHeaders:"1"===e.attributes.headings,showGridLines:"1"===e.attributes.gridLines,horizontalCentered:"1"===e.attributes.horizontalCentered,verticalCentered:"1"===e.attributes.verticalCentered},!0)}parseText(){}parseClose(){return!1}}},9668:(e,t,r)=>{"use strict";const n=r(67735),i=r(62447);e.exports=class extends i{constructor(){super({tag:"rowBreaks",count:!0,childXform:new n})}render(e,t){if(t&&t.length){e.openNode(this.tag,this.$),this.count&&(e.addAttribute(this.$count,t.length),e.addAttribute("manualBreakCount",t.length));const{childXform:r}=this;t.forEach((t=>{r.render(e,t)})),e.closeNode()}else this.empty&&e.leafNode(this.tag)}}},80981:(e,t,r)=>{const n=r(87242),i=r(67032),a=r(57963);e.exports=class extends n{constructor(e){super(),this.maxItems=e&&e.maxItems,this.map={c:new a}}get tag(){return"row"}prepare(e,t){const r=t.styles.addStyleModel(e.style);r&&(e.styleId=r);const n=this.map.c;e.cells.forEach((e=>{n.prepare(e,t)}))}render(e,t,r){e.openNode("row"),e.addAttribute("r",t.number),t.height&&(e.addAttribute("ht",t.height),e.addAttribute("customHeight","1")),t.hidden&&e.addAttribute("hidden","1"),t.min>0&&t.max>0&&t.min<=t.max&&e.addAttribute("spans",`${t.min}:${t.max}`),t.styleId&&(e.addAttribute("s",t.styleId),e.addAttribute("customFormat","1")),e.addAttribute("x14ac:dyDescent","0.25"),t.outlineLevel&&e.addAttribute("outlineLevel",t.outlineLevel),t.collapsed&&e.addAttribute("collapsed","1");const n=this.map.c;t.cells.forEach((t=>{n.render(e,t,r)})),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if("row"===e.name){this.numRowsSeen+=1;const t=e.attributes.spans?e.attributes.spans.split(":").map((e=>parseInt(e,10))):[void 0,void 0],r=this.model={number:parseInt(e.attributes.r,10),min:t[0],max:t[1],cells:[]};return e.attributes.s&&(r.styleId=parseInt(e.attributes.s,10)),i.parseBoolean(e.attributes.hidden)&&(r.hidden=!0),i.parseBoolean(e.attributes.bestFit)&&(r.bestFit=!0),e.attributes.ht&&(r.height=parseFloat(e.attributes.ht)),e.attributes.outlineLevel&&(r.outlineLevel=parseInt(e.attributes.outlineLevel,10)),i.parseBoolean(e.attributes.collapsed)&&(r.collapsed=!0),!0}return this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(e,t){e.style=e.styleId?t.styles.getStyleModel(e.styleId):{},void 0!==e.styleId&&(e.styleId=void 0);const r=this.map.c;e.cells.forEach((e=>{r.reconcile(e,t)}))}}},35772:(e,t,r)=>{const n=r(67984),i=r(87242);e.exports=class extends i{get tag(){return"sheetFormatPr"}render(e,t){if(t){const r={defaultRowHeight:t.defaultRowHeight,outlineLevelRow:t.outlineLevelRow,outlineLevelCol:t.outlineLevelCol,"x14ac:dyDescent":t.dyDescent};t.defaultColWidth&&(r.defaultColWidth=t.defaultColWidth),t.defaultRowHeight&&15===t.defaultRowHeight||(r.customHeight="1"),n.some(r,(e=>void 0!==e))&&e.leafNode("sheetFormatPr",r)}}parseOpen(e){return"sheetFormatPr"===e.name&&(this.model={defaultRowHeight:parseFloat(e.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(e.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(e.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(e.attributes.outlineLevelCol||"0",10)},e.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(e.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},93236:(e,t,r)=>{const n=r(87242),i=r(42720),a=r(87610),o=r(48223);e.exports=class extends n{constructor(){super(),this.map={tabColor:new i("tabColor"),pageSetUpPr:new a,outlinePr:new o}}get tag(){return"sheetPr"}render(e,t){if(t){e.addRollback(),e.openNode("sheetPr");let r=!1;r=this.map.tabColor.render(e,t.tabColor)||r,r=this.map.pageSetUpPr.render(e,t.pageSetup)||r,r=this.map.outlinePr.render(e,t.outlineProperties)||r,r?(e.closeNode(),e.commit()):e.rollback()}}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):!!this.map[e.name]&&(this.parser=this.map[e.name],this.parser.parseOpen(e),!0)}parseText(e){return!!this.parser&&(this.parser.parseText(e),!0)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},94482:(e,t,r)=>{const n=r(67984),i=r(87242);function a(e,t){return e?t:void 0}function o(e,t){return e===t||void 0}e.exports=class extends i{get tag(){return"sheetProtection"}render(e,t){if(t){const r={sheet:a(t.sheet,"1"),selectLockedCells:!1===t.selectLockedCells?"1":void 0,selectUnlockedCells:!1===t.selectUnlockedCells?"1":void 0,formatCells:a(t.formatCells,"0"),formatColumns:a(t.formatColumns,"0"),formatRows:a(t.formatRows,"0"),insertColumns:a(t.insertColumns,"0"),insertRows:a(t.insertRows,"0"),insertHyperlinks:a(t.insertHyperlinks,"0"),deleteColumns:a(t.deleteColumns,"0"),deleteRows:a(t.deleteRows,"0"),sort:a(t.sort,"0"),autoFilter:a(t.autoFilter,"0"),pivotTables:a(t.pivotTables,"0")};t.sheet&&(r.algorithmName=t.algorithmName,r.hashValue=t.hashValue,r.saltValue=t.saltValue,r.spinCount=t.spinCount,r.objects=a(!1===t.objects,"1"),r.scenarios=a(!1===t.scenarios,"1")),n.some(r,(e=>void 0!==e))&&e.leafNode(this.tag,r)}}parseOpen(e){return e.name===this.tag&&(this.model={sheet:o(e.attributes.sheet,"1"),objects:"1"!==e.attributes.objects&&void 0,scenarios:"1"!==e.attributes.scenarios&&void 0,selectLockedCells:"1"!==e.attributes.selectLockedCells&&void 0,selectUnlockedCells:"1"!==e.attributes.selectUnlockedCells&&void 0,formatCells:o(e.attributes.formatCells,"0"),formatColumns:o(e.attributes.formatColumns,"0"),formatRows:o(e.attributes.formatRows,"0"),insertColumns:o(e.attributes.insertColumns,"0"),insertRows:o(e.attributes.insertRows,"0"),insertHyperlinks:o(e.attributes.insertHyperlinks,"0"),deleteColumns:o(e.attributes.deleteColumns,"0"),deleteRows:o(e.attributes.deleteRows,"0"),sort:o(e.attributes.sort,"0"),autoFilter:o(e.attributes.autoFilter,"0"),pivotTables:o(e.attributes.pivotTables,"0")},e.attributes.algorithmName&&(this.model.algorithmName=e.attributes.algorithmName,this.model.hashValue=e.attributes.hashValue,this.model.saltValue=e.attributes.saltValue,this.model.spinCount=parseInt(e.attributes.spinCount,10)),!0)}parseText(){}parseClose(){return!1}}},27832:(e,t,r)=>{const n=r(29428),i=r(87242),a={frozen:"frozen",frozenSplit:"frozen",split:"split"};e.exports=class extends i{get tag(){return"sheetView"}prepare(e){switch(e.state){case"frozen":case"split":break;default:e.state="normal"}}render(e,t){e.openNode("sheetView",{workbookViewId:t.workbookViewId||0});const r=function(t,r,n){n&&e.addAttribute(t,r)};let i,a,o,s;switch(r("rightToLeft","1",!0===t.rightToLeft),r("tabSelected","1",t.tabSelected),r("showRuler","0",!1===t.showRuler),r("showRowColHeaders","0",!1===t.showRowColHeaders),r("showGridLines","0",!1===t.showGridLines),r("zoomScale",t.zoomScale,t.zoomScale),r("zoomScaleNormal",t.zoomScaleNormal,t.zoomScaleNormal),r("view",t.style,t.style),t.state){case"frozen":a=t.xSplit||0,o=t.ySplit||0,i=t.topLeftCell||n.getAddress(o+1,a+1).address,s=(t.xSplit&&t.ySplit?"bottomRight":t.xSplit&&"topRight")||"bottomLeft",e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:i,activePane:s,state:"frozen"}),e.leafNode("selection",{pane:s,activeCell:t.activeCell,sqref:t.activeCell});break;case"split":"topLeft"===t.activePane&&(t.activePane=void 0),e.leafNode("pane",{xSplit:t.xSplit||void 0,ySplit:t.ySplit||void 0,topLeftCell:t.topLeftCell,activePane:t.activePane}),e.leafNode("selection",{pane:t.activePane,activeCell:t.activeCell,sqref:t.activeCell});break;case"normal":t.activeCell&&e.leafNode("selection",{activeCell:t.activeCell,sqref:t.activeCell})}e.closeNode()}parseOpen(e){switch(e.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(e.attributes.workbookViewId,10),rightToLeft:"1"===e.attributes.rightToLeft,tabSelected:"1"===e.attributes.tabSelected,showRuler:!("0"===e.attributes.showRuler),showRowColHeaders:!("0"===e.attributes.showRowColHeaders),showGridLines:!("0"===e.attributes.showGridLines),zoomScale:parseInt(e.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(e.attributes.zoomScaleNormal||"100",10),style:e.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(e.attributes.xSplit||"0",10),ySplit:parseInt(e.attributes.ySplit||"0",10),topLeftCell:e.attributes.topLeftCell,activePane:e.attributes.activePane||"topLeft",state:e.attributes.state},!0;case"selection":{const t=e.attributes.pane||"topLeft";return this.selections[t]={pane:t,activeCell:e.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(e){let t,r;return"sheetView"!==e||(this.sheetView&&this.pane?(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:a[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},"split"===this.model.state&&(t.activePane=this.pane.activePane),r=this.selections[this.pane.activePane],r&&r.activeCell&&(t.activeCell=r.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)):(t=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},r=this.selections.topLeft,r&&r.activeCell&&(t.activeCell=r.activeCell),this.sheetView.style&&(t.style=this.sheetView.style)),!1)}reconcile(){}}},57985:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"tablePart"}render(e,t){t&&e.leafNode(this.tag,{"r:id":t.rId})}parseOpen(e){return e.name===this.tag&&(this.model={rId:e.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},59629:(e,t,r)=>{const n=r(67984),i=r(29428),a=r(12141),o=r(71745),s=r(96209),c=r(87242),l=r(62447),u=r(80981),d=r(8599),p=r(2601),f=r(76591),m=r(49012),g=r(27210),_=r(93236),h=r(35772),y=r(27832),v=r(94482),b=r(97802),k=r(64892),x=r(4505),E=r(47749),S=r(74711),D=r(81099),w=r(57985),T=r(9668),C=r(87182),A=r(12700),N=r(17100),P=(e,t)=>{if(!t||!t.length)return e;if(!e||!e.length)return t;const r={},n={};return e.forEach((e=>{r[e.ref]=e,e.rules.forEach((e=>{const{x14Id:t}=e;t&&(n[t]=e)}))})),t.forEach((t=>{t.rules.forEach((i=>{const a=n[i.x14Id];a?((e,t)=>{Object.keys(t).forEach((r=>{const n=e[r],i=t[r];void 0===n&&void 0!==i&&(e[r]=i)}))})(a,i):r[t.ref]?r[t.ref].rules.push(i):e.push({ref:t.ref,rules:[i]})}))})),e};class I extends c{constructor(e){super();const{maxRows:t,maxCols:r,ignoreNodes:n}=e||{};this.ignoreNodes=n||[],this.map={sheetPr:new _,dimension:new p,sheetViews:new l({tag:"sheetViews",count:!1,childXform:new y}),sheetFormatPr:new h,cols:new l({tag:"cols",count:!1,childXform:new d}),sheetData:new l({tag:"sheetData",count:!1,empty:!0,childXform:new u({maxItems:r}),maxItems:t}),autoFilter:new E,mergeCells:new l({tag:"mergeCells",count:!0,childXform:new m}),rowBreaks:new T,hyperlinks:new l({tag:"hyperlinks",count:!1,childXform:new f}),pageMargins:new b,dataValidations:new g,pageSetup:new k,headerFooter:new C,printOptions:new x,picture:new S,drawing:new D,sheetProtection:new v,tableParts:new l({tag:"tableParts",count:!0,childXform:new w}),conditionalFormatting:new A,extLst:new N}}prepare(e,t){t.merges=new s,e.hyperlinks=t.hyperlinks=[],e.comments=t.comments=[],t.formulae={},t.siFormulae=0,this.map.cols.prepare(e.cols,t),this.map.sheetData.prepare(e.rows,t),this.map.conditionalFormatting.prepare(e.conditionalFormattings,t),e.mergeCells=t.merges.mergeCells;const r=e.rels=[];function n(e){return`rId${e.length+1}`}if(e.hyperlinks.forEach((e=>{const t=n(r);e.rId=t,r.push({Id:t,Type:o.Hyperlink,Target:e.target,TargetMode:"External"})})),e.comments.length>0){const a={Id:n(r),Type:o.Comments,Target:`../comments${e.id}.xml`};r.push(a);const s={Id:n(r),Type:o.VmlDrawing,Target:`../drawings/vmlDrawing${e.id}.vml`};r.push(s),e.comments.forEach((e=>{e.refAddress=i.decodeAddress(e.ref)})),t.commentRefs.push({commentName:`comments${e.id}`,vmlDrawing:`vmlDrawing${e.id}`})}const a=[];let c;e.media.forEach((i=>{if("background"===i.type){const a=n(r);c=t.media[i.imageId],r.push({Id:a,Type:o.Image,Target:`../media/${c.name}.${c.extension}`}),e.background={rId:a},e.image=t.media[i.imageId]}else if("image"===i.type){let{drawing:s}=e;c=t.media[i.imageId],s||(s=e.drawing={rId:n(r),name:"drawing"+ ++t.drawingsCount,anchors:[],rels:[]},t.drawings.push(s),r.push({Id:s.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${s.name}.xml`}));let l=this.preImageId===i.imageId?a[i.imageId]:a[s.rels.length];l||(l=n(s.rels),a[s.rels.length]=l,s.rels.push({Id:l,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${c.name}.${c.extension}`}));const u={picture:{rId:l},range:i.range};if(i.hyperlinks&&i.hyperlinks.hyperlink){const e=n(s.rels);a[s.rels.length]=e,u.picture.hyperlinks={tooltip:i.hyperlinks.tooltip,rId:e},s.rels.push({Id:e,Type:o.Hyperlink,Target:i.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=i.imageId,s.anchors.push(u)}})),e.tables.forEach((e=>{const i=n(r);e.rId=i,r.push({Id:i,Type:o.Table,Target:`../tables/${e.target}`}),e.columns.forEach((e=>{const{style:r}=e;r&&(e.dxfId=t.styles.addDxfStyle(r))}))})),this.map.extLst.prepare(e,t)}render(e,t){e.openXml(a.StdDocAttributes),e.openNode("worksheet",I.WORKSHEET_ATTRIBUTES);const r=t.properties?{defaultRowHeight:t.properties.defaultRowHeight,dyDescent:t.properties.dyDescent,outlineLevelCol:t.properties.outlineLevelCol,outlineLevelRow:t.properties.outlineLevelRow}:void 0;t.properties&&t.properties.defaultColWidth&&(r.defaultColWidth=t.properties.defaultColWidth);const n={outlineProperties:t.properties&&t.properties.outlineProperties,tabColor:t.properties&&t.properties.tabColor,pageSetup:t.pageSetup&&t.pageSetup.fitToPage?{fitToPage:t.pageSetup.fitToPage}:void 0},i=t.pageSetup&&t.pageSetup.margins,s={showRowColHeaders:t.pageSetup&&t.pageSetup.showRowColHeaders,showGridLines:t.pageSetup&&t.pageSetup.showGridLines,horizontalCentered:t.pageSetup&&t.pageSetup.horizontalCentered,verticalCentered:t.pageSetup&&t.pageSetup.verticalCentered},c=t.sheetProtection;this.map.sheetPr.render(e,n),this.map.dimension.render(e,t.dimensions),this.map.sheetViews.render(e,t.views),this.map.sheetFormatPr.render(e,r),this.map.cols.render(e,t.cols),this.map.sheetData.render(e,t.rows),this.map.sheetProtection.render(e,c),this.map.autoFilter.render(e,t.autoFilter),this.map.mergeCells.render(e,t.mergeCells),this.map.conditionalFormatting.render(e,t.conditionalFormattings),this.map.dataValidations.render(e,t.dataValidations),this.map.hyperlinks.render(e,t.hyperlinks),this.map.printOptions.render(e,s),this.map.pageMargins.render(e,i),this.map.pageSetup.render(e,t.pageSetup),this.map.headerFooter.render(e,t.headerFooter),this.map.rowBreaks.render(e,t.rowBreaks),this.map.drawing.render(e,t.drawing),this.map.picture.render(e,t.background),this.map.tableParts.render(e,t.tables),this.map.extLst.render(e,t),t.rels&&t.rels.forEach((t=>{t.Type===o.VmlDrawing&&e.leafNode("legacyDrawing",{"r:id":t.Id})})),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"worksheet"===e.name?(n.each(this.map,(e=>{e.reset()})),!0):(this.map[e.name]&&!this.ignoreNodes.includes(e.name)&&(this.parser=this.map[e.name],this.parser.parseOpen(e)),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("worksheet"===e){const e=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&(e.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&(e.outlineProperties=this.map.sheetPr.model.outlineProperties);const t={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},r=Object.assign(t,this.map.pageSetup.model,this.map.printOptions.model),n=P(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:e,views:this.map.sheetViews.model,pageSetup:r,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:n},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}return!0}reconcile(e,t){const r=(e.relationships||[]).reduce(((r,n)=>{if(r[n.Id]=n,n.Type===o.Comments&&(e.comments=t.comments[n.Target].comments),n.Type===o.VmlDrawing&&e.comments&&e.comments.length){const r=t.vmlDrawings[n.Target].comments;e.comments.forEach(((e,t)=>{e.note=Object.assign({},e.note,r[t])}))}return r}),{});if(t.commentsMap=(e.comments||[]).reduce(((e,t)=>(t.ref&&(e[t.ref]=t),e)),{}),t.hyperlinkMap=(e.hyperlinks||[]).reduce(((e,t)=>(t.rId&&(e[t.address]=r[t.rId].Target),e)),{}),t.formulae={},e.rows=e.rows&&e.rows.filter(Boolean)||[],e.rows.forEach((e=>{e.cells=e.cells&&e.cells.filter(Boolean)||[]})),this.map.cols.reconcile(e.cols,t),this.map.sheetData.reconcile(e.rows,t),this.map.conditionalFormatting.reconcile(e.conditionalFormattings,t),e.media=[],e.drawing){const n=r[e.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(n){const r=n[1];t.drawings[r].anchors.forEach((t=>{if(t.medium){const r={type:"image",imageId:t.medium.index,range:t.range,hyperlinks:t.picture.hyperlinks};e.media.push(r)}}))}}const n=e.background&&r[e.background.rId];if(n){const r=n.Target.split("/media/")[1],i=t.mediaIndex&&t.mediaIndex[r];void 0!==i&&e.media.push({type:"background",imageId:i})}e.tables=(e.tables||[]).map((e=>{const n=r[e.rId];return t.tables[n.Target]})),delete e.relationships,delete e.hyperlinks,delete e.comments}}I.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},e.exports=I},36006:(e,t,r)=>{const n=r(87242);e.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.attr=e.attr}render(e,t){t&&(e.openNode(this.tag),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},59874:(e,t,r)=>{const n=r(87242);e.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this._format=e.format||function(e){try{return Number.isNaN(e.getTime())?"":e.toISOString()}catch(e){return""}},this._parse=e.parse||function(e){return new Date(e)}}render(e,t){t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,this._format(t)):e.writeText(this._format(t)),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.attr?this.model=this._parse(e.attributes[this.attr]):this.text=[])}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},65208:(e,t,r)=>{const n=r(87242);e.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs,this.zero=e.zero}render(e,t){(t||this.zero)&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}parseOpen(e){return e.name===this.tag&&(this.attr?this.model=parseInt(e.attributes[this.attr],10):this.text=[],!0)}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},71207:(e,t,r)=>{const n=r(87242);e.exports=class extends n{constructor(e){super(),this.tag=e.tag,this.attr=e.attr,this.attrs=e.attrs}render(e,t){void 0!==t&&(e.openNode(this.tag),this.attrs&&e.addAttributes(this.attrs),this.attr?e.addAttribute(this.attr,t):e.writeText(t),e.closeNode())}parseOpen(e){e.name===this.tag&&(this.attr?this.model=e.attributes[this.attr]:this.text=[])}parseText(e){this.attr||this.text.push(e)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},52789:(e,t,r)=>{const n=r(87242),i=r(12141);function a(e,t){e.openNode(t.tag,t.$),t.c&&t.c.forEach((t=>{a(e,t)})),t.t&&e.writeText(t.t),e.closeNode()}e.exports=class extends n{constructor(e){super(),this._model=e}render(e){if(!this._xml){const e=new i;a(e,this._model),this._xml=e.xml}e.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(e){return e!==this._model.tag}}},428:(e,t,r)=>{const n=r(67403),i=r(95814),a=r(87242);e.exports=class extends a{constructor(){super(),this.map={r:new i,t:new n}}get tag(){return"rPh"}render(e,t){if(e.openNode(this.tag,{sb:t.sb||0,eb:t.eb||0}),t&&t.hasOwnProperty("richText")&&t.richText){const{r}=this.map;t.richText.forEach((t=>{r.render(e,t)}))}else t&&this.map.t.render(e,t.text);e.closeNode()}parseOpen(e){const{name:t}=e;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={sb:parseInt(e.attributes.sb,10),eb:parseInt(e.attributes.eb,10)},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}},95814:(e,t,r)=>{const n=r(67403),i=r(73784),a=r(87242);class o extends a{constructor(e){super(),this.model=e}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new n)}get fontXform(){return this._fontXform||(this._fontXform=new i(o.FONT_OPTIONS))}render(e,t){t=t||this.model,e.openNode("r"),t.font&&this.fontXform.render(e,t.font),this.textXform.render(e,t.text),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(e),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){switch(e){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(e),!0}}}o.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},e.exports=o},52765:(e,t,r)=>{const n=r(67403),i=r(95814),a=r(428),o=r(87242);e.exports=class extends o{constructor(e){super(),this.model=e,this.map={r:new i,t:new n,rPh:new a}}get tag(){return"si"}render(e,t){e.openNode(this.tag),t&&t.hasOwnProperty("richText")&&t.richText?t.richText.length?t.richText.forEach((t=>{this.map.r.render(e,t)})):this.map.t.render(e,""):null!=t&&this.map.t.render(e,t),e.closeNode()}parseOpen(e){const{name:t}=e;return this.parser?(this.parser.parseOpen(e),!0):t===this.tag?(this.model={},!0):(this.parser=this.map[t],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser){if(!this.parser.parseClose(e)){switch(e){case"r":{let e=this.model.richText;e||(e=this.model.richText=[]),e.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}return e!==this.tag}}},96242:(e,t,r)=>{const n=r(12141),i=r(87242),a=r(52765);e.exports=class extends i{constructor(e){super(),this.model=e||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new a)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(e){return this.model.values[e]}add(e){return e.richText?this.addRichText(e):this.addText(e)}addText(e){let t=this.hash[e];return void 0===t&&(t=this.hash[e]=this.model.values.length,this.model.values.push(e)),this.model.count++,t}addRichText(e){const t=this.sharedStringXform.toXml(e);let r=this.rich[t];return void 0===r&&(r=this.rich[t]=this.model.values.length,this.model.values.push(e)),this.model.count++,r}render(e,t){t=t||this._values,e.openXml(n.StdDocAttributes),e.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:t.count,uniqueCount:t.values.length});const r=this.sharedStringXform;t.values.forEach((t=>{r.render(e,t)})),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(e),!0;default:throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;if("sst"===e)return!1;throw new Error(`Unexpected xml node in parseClose: ${e}`)}}},67403:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"t"}render(e,t){e.openNode("t"),/^\s|\n|\s$/.test(t)&&e.addAttribute("xml:space","preserve"),e.writeText(t),e.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,((e,t)=>String.fromCharCode(parseInt(t,16))))}parseOpen(e){return"t"===e.name&&(this._text=[],!0)}parseText(e){this._text.push(e)}parseClose(){return!1}}},15542:(e,t,r)=>{const n=r(70880),i=r(67032),a=r(87242),o={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce(((e,t)=>(e[t]=!0,e)),{}),horizontal(e){return this.horizontalValues[e]?e:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce(((e,t)=>(e[t]=!0,e)),{}),vertical(e){return"middle"===e?"center":this.verticalValues[e]?e:void 0},wrapText:e=>!!e||void 0,shrinkToFit:e=>!!e||void 0,textRotation:e=>"vertical"===e||(e=i.validInt(e))>=-90&&e<=90?e:void 0,indent:e=>(e=i.validInt(e),Math.max(0,e)),readingOrder(e){switch(e){case"ltr":return n.ReadingOrder.LeftToRight;case"rtl":return n.ReadingOrder.RightToLeft;default:return}}},s={toXml(e){if(e=o.textRotation(e)){if("vertical"===e)return 255;const t=Math.round(e);if(t>=0&&t<=90)return t;if(t<0&&t>=-90)return 90-t}},toModel(e){const t=i.validInt(e);if(void 0!==t){if(255===t)return"vertical";if(t>=0&&t<=90)return t;if(t>90&&t<=180)return 90-t}}};e.exports=class extends a{get tag(){return"alignment"}render(e,t){e.addRollback(),e.openNode("alignment");let r=!1;function n(t,n){n&&(e.addAttribute(t,n),r=!0)}n("horizontal",o.horizontal(t.horizontal)),n("vertical",o.vertical(t.vertical)),n("wrapText",!!o.wrapText(t.wrapText)&&"1"),n("shrinkToFit",!!o.shrinkToFit(t.shrinkToFit)&&"1"),n("indent",o.indent(t.indent)),n("textRotation",s.toXml(t.textRotation)),n("readingOrder",o.readingOrder(t.readingOrder)),e.closeNode(),r?e.commit():e.rollback()}parseOpen(e){const t={};let r=!1;function n(e,n,i){e&&(t[n]=i,r=!0)}n(e.attributes.horizontal,"horizontal",e.attributes.horizontal),n(e.attributes.vertical,"vertical","center"===e.attributes.vertical?"middle":e.attributes.vertical),n(e.attributes.wrapText,"wrapText",i.parseBoolean(e.attributes.wrapText)),n(e.attributes.shrinkToFit,"shrinkToFit",i.parseBoolean(e.attributes.shrinkToFit)),n(e.attributes.indent,"indent",parseInt(e.attributes.indent,10)),n(e.attributes.textRotation,"textRotation",s.toModel(e.attributes.textRotation)),n(e.attributes.readingOrder,"readingOrder","2"===e.attributes.readingOrder?"rtl":"ltr"),this.model=r?t:null}parseText(){}parseClose(){return!1}}},46503:(e,t,r)=>{const n=r(87242),i=r(67032),a=r(42720);class o extends n{constructor(e){super(),this.name=e,this.map={color:new a}}get tag(){return this.name}render(e,t,r){const n=t&&t.color||r||this.defaultColor;e.openNode(this.name),t&&t.style&&(e.addAttribute("style",t.style),n&&this.map.color.render(e,n)),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case this.name:{const{style:t}=e.attributes;return this.model=t?{style:t}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):(e===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(e){return o.validStyleValues[e]}}o.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce(((e,t)=>(e[t]=!0,e)),{});e.exports=class extends n{constructor(){super(),this.map={top:new o("top"),left:new o("left"),bottom:new o("bottom"),right:new o("right"),diagonal:new o("diagonal")}}render(e,t){const{color:r}=t;function n(n,i){n&&!n.color&&t.color&&(n={...n,color:t.color}),i.render(e,n,r)}e.openNode("border"),t.diagonal&&t.diagonal.style&&(t.diagonal.up&&e.addAttribute("diagonalUp","1"),t.diagonal.down&&e.addAttribute("diagonalDown","1")),n(t.left,this.map.left),n(t.right,this.map.right),n(t.top,this.map.top),n(t.bottom,this.map.bottom),n(t.diagonal,this.map.diagonal),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"border"===e.name?(this.reset(),this.diagonalUp=i.parseBoolean(e.attributes.diagonalUp),this.diagonalDown=i.parseBoolean(e.attributes.diagonalDown),!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("border"===e){const e=this.model={},t=function(t,r,n){r&&(n&&Object.assign(r,n),e[t]=r)};t("left",this.map.left.model),t("right",this.map.right.model),t("top",this.map.top.model),t("bottom",this.map.bottom.model),t("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},42720:(e,t,r)=>{const n=r(87242);e.exports=class extends n{constructor(e){super(),this.name=e||"color"}get tag(){return this.name}render(e,t){return!!t&&(e.openNode(this.name),t.argb?e.addAttribute("rgb",t.argb):void 0!==t.theme?(e.addAttribute("theme",t.theme),void 0!==t.tint&&e.addAttribute("tint",t.tint)):void 0!==t.indexed?e.addAttribute("indexed",t.indexed):e.addAttribute("auto","1"),e.closeNode(),!0)}parseOpen(e){return e.name===this.name&&(e.attributes.rgb?this.model={argb:e.attributes.rgb}:e.attributes.theme?(this.model={theme:parseInt(e.attributes.theme,10)},e.attributes.tint&&(this.model.tint=parseFloat(e.attributes.tint))):e.attributes.indexed?this.model={indexed:parseInt(e.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},64621:(e,t,r)=>{const n=r(87242),i=r(15542),a=r(46503),o=r(96112),s=r(73784),c=r(81198),l=r(84330);e.exports=class extends n{constructor(){super(),this.map={alignment:new i,border:new a,fill:new o,font:new s,numFmt:new c,protection:new l}}get tag(){return"dxf"}render(e,t){if(e.openNode(this.tag),t.font&&this.map.font.render(e,t.font),t.numFmt&&t.numFmtId){const r={id:t.numFmtId,formatCode:t.numFmt};this.map.numFmt.render(e,r)}t.fill&&this.map.fill.render(e,t.fill),t.alignment&&this.map.alignment.render(e,t.alignment),t.border&&this.map.border.render(e,t.border),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):e.name===this.tag?(this.reset(),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},96112:(e,t,r)=>{const n=r(87242),i=r(42720);class a extends n{constructor(){super(),this.map={color:new i}}get tag(){return"stop"}render(e,t){e.openNode("stop"),e.addAttribute("position",t.position),this.map.color.render(e,t.color),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"stop":return this.model={position:parseFloat(e.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(e),!0;default:return!1}}parseText(){}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class o extends n{constructor(){super(),this.map={fgColor:new i("fgColor"),bgColor:new i("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(e,t){e.openNode("patternFill"),e.addAttribute("patternType",t.pattern),t.fgColor&&this.map.fgColor.render(e,t.fgColor),t.bgColor&&this.map.bgColor.render(e,t.bgColor),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"patternFill"===e.name?(this.model={type:"pattern",pattern:e.attributes.patternType},!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.parser.model&&(this.model[e]=this.parser.model),this.parser=void 0),!0)}}class s extends n{constructor(){super(),this.map={stop:new a}}get name(){return"gradient"}get tag(){return"gradientFill"}render(e,t){switch(e.openNode("gradientFill"),t.gradient){case"angle":e.addAttribute("degree",t.degree);break;case"path":e.addAttribute("type","path"),t.center.left&&(e.addAttribute("left",t.center.left),void 0===t.center.right&&e.addAttribute("right",t.center.left)),t.center.right&&e.addAttribute("right",t.center.right),t.center.top&&(e.addAttribute("top",t.center.top),void 0===t.center.bottom&&e.addAttribute("bottom",t.center.top)),t.center.bottom&&e.addAttribute("bottom",t.center.bottom)}const r=this.map.stop;t.stops.forEach((t=>{r.render(e,t)})),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"gradientFill":{const t=this.model={stops:[]};return e.attributes.degree?(t.gradient="angle",t.degree=parseInt(e.attributes.degree,10)):"path"===e.attributes.type&&(t.gradient="path",t.center={left:e.attributes.left?parseFloat(e.attributes.left):0,top:e.attributes.top?parseFloat(e.attributes.top):0},e.attributes.right!==e.attributes.left&&(t.center.right=e.attributes.right?parseFloat(e.attributes.right):0),e.attributes.bottom!==e.attributes.top&&(t.center.bottom=e.attributes.bottom?parseFloat(e.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class c extends n{constructor(){super(),this.map={patternFill:new o,gradientFill:new s}}get tag(){return"fill"}render(e,t){switch(e.addRollback(),e.openNode("fill"),t.type){case"pattern":this.map.patternFill.render(e,t);break;case"gradient":this.map.gradientFill.render(e,t);break;default:return void e.rollback()}e.closeNode(),e.commit()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"fill"===e.name?(this.model={},!0):(this.parser=this.map[e.name],!!this.parser&&(this.parser.parseOpen(e),!0))}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return!!this.parser&&(this.parser.parseClose(e)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(e){return c.validPatternValues[e]}}c.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce(((e,t)=>(e[t]=!0,e)),{}),c.StopXform=a,c.PatternFillXform=o,c.GradientFillXform=s,e.exports=c},73784:(e,t,r)=>{"use strict";const n=r(42720),i=r(36006),a=r(65208),o=r(71207),s=r(15631),c=r(67984),l=r(87242);class u extends l{constructor(e){super(),this.options=e||u.OPTIONS,this.map={b:{prop:"bold",xform:new i({tag:"b",attr:"val"})},i:{prop:"italic",xform:new i({tag:"i",attr:"val"})},u:{prop:"underline",xform:new s},charset:{prop:"charset",xform:new a({tag:"charset",attr:"val"})},color:{prop:"color",xform:new n},condense:{prop:"condense",xform:new i({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new i({tag:"extend",attr:"val"})},family:{prop:"family",xform:new a({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new i({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new o({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new o({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new i({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new i({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new a({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new o({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(e,t){const{map:r}=this;e.openNode(this.options.tagName),c.each(this.map,((n,i)=>{r[i].xform.render(e,t[n.prop])})),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):this.map[e.name]?(this.parser=this.map[e.name].xform,this.parser.parseOpen(e)):e.name===this.options.tagName&&(this.model={},!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser&&!this.parser.parseClose(e)){const t=this.map[e];return this.parser.model&&(this.model[t.prop]=this.parser.model),this.parser=void 0,!0}return e!==this.options.tagName}}u.OPTIONS={tagName:"font",fontNameTag:"name"},e.exports=u},81198:(e,t,r)=>{const n=r(67984),i=r(77118),a=r(87242);const o=function(){const e={};return n.each(i,((t,r)=>{t.f&&(e[t.f]=parseInt(r,10))})),e}();class s extends a{constructor(e,t){super(),this.id=e,this.formatCode=t}get tag(){return"numFmt"}render(e,t){e.leafNode("numFmt",{numFmtId:t.id,formatCode:t.formatCode})}parseOpen(e){return"numFmt"===e.name&&(this.model={id:parseInt(e.attributes.numFmtId,10),formatCode:e.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0)}parseText(){}parseClose(){return!1}}s.getDefaultFmtId=function(e){return o[e]},s.getDefaultFmtCode=function(e){return i[e]&&i[e].f},e.exports=s},84330:(e,t,r)=>{const n=r(87242),i={boolean:(e,t)=>void 0===e?t:e};e.exports=class extends n{get tag(){return"protection"}render(e,t){e.addRollback(),e.openNode("protection");let r=!1;function n(t,n){void 0!==n&&(e.addAttribute(t,n),r=!0)}n("locked",i.boolean(t.locked,!0)?void 0:"0"),n("hidden",i.boolean(t.hidden,!1)?"1":void 0),e.closeNode(),r?e.commit():e.rollback()}parseOpen(e){const t={locked:!("0"===e.attributes.locked),hidden:"1"===e.attributes.hidden},r=!t.locked||t.hidden;this.model=r?t:null}parseText(){}parseClose(){return!1}}},51566:(e,t,r)=>{const n=r(87242),i=r(15542),a=r(84330);e.exports=class extends n{constructor(e){super(),this.xfId=!(!e||!e.xfId),this.map={alignment:new i,protection:new a}}get tag(){return"xf"}render(e,t){e.openNode("xf",{numFmtId:t.numFmtId||0,fontId:t.fontId||0,fillId:t.fillId||0,borderId:t.borderId||0}),this.xfId&&e.addAttribute("xfId",t.xfId||0),t.numFmtId&&e.addAttribute("applyNumberFormat","1"),t.fontId&&e.addAttribute("applyFont","1"),t.fillId&&e.addAttribute("applyFill","1"),t.borderId&&e.addAttribute("applyBorder","1"),t.alignment&&e.addAttribute("applyAlignment","1"),t.protection&&e.addAttribute("applyProtection","1"),t.alignment&&this.map.alignment.render(e,t.alignment),t.protection&&this.map.protection.render(e,t.protection),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;switch(e.name){case"xf":return this.model={numFmtId:parseInt(e.attributes.numFmtId,10),fontId:parseInt(e.attributes.fontId,10),fillId:parseInt(e.attributes.fillId,10),borderId:parseInt(e.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(e.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(e),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(e),!0;default:return!1}}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):"xf"!==e}}},17647:(e,t,r)=>{const n=r(70880),i=r(12141),a=r(87242),o=r(52789),s=r(62447),c=r(73784),l=r(96112),u=r(46503),d=r(81198),p=r(51566),f=r(64621);class m extends a{constructor(e){super(),this.map={numFmts:new s({tag:"numFmts",count:!0,childXform:new d}),fonts:new s({tag:"fonts",count:!0,childXform:new c,$:{"x14ac:knownFonts":1}}),fills:new s({tag:"fills",count:!0,childXform:new l}),borders:new s({tag:"borders",count:!0,childXform:new u}),cellStyleXfs:new s({tag:"cellStyleXfs",count:!0,childXform:new p}),cellXfs:new s({tag:"cellXfs",count:!0,childXform:new p({xfId:!0})}),dxfs:new s({tag:"dxfs",always:!0,count:!0,childXform:new f}),numFmt:new d,font:new c,fill:new l,border:new u,style:new p({xfId:!0}),cellStyles:m.STATIC_XFORMS.cellStyles,tableStyles:m.STATIC_XFORMS.tableStyles,extLst:m.STATIC_XFORMS.extLst},e&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(e,t){t=t||this.model,e.openXml(i.StdDocAttributes),e.openNode("styleSheet",m.STYLESHEET_ATTRIBUTES),this.index?(t.numFmts&&t.numFmts.length&&(e.openNode("numFmts",{count:t.numFmts.length}),t.numFmts.forEach((t=>{e.writeXml(t)})),e.closeNode()),t.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),e.openNode("fonts",{count:t.fonts.length,"x14ac:knownFonts":1}),t.fonts.forEach((t=>{e.writeXml(t)})),e.closeNode(),e.openNode("fills",{count:t.fills.length}),t.fills.forEach((t=>{e.writeXml(t)})),e.closeNode(),e.openNode("borders",{count:t.borders.length}),t.borders.forEach((t=>{e.writeXml(t)})),e.closeNode(),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),e.openNode("cellXfs",{count:t.styles.length}),t.styles.forEach((t=>{e.writeXml(t)})),e.closeNode()):(this.map.numFmts.render(e,t.numFmts),this.map.fonts.render(e,t.fonts),this.map.fills.render(e,t.fills),this.map.borders.render(e,t.borders),this.map.cellStyleXfs.render(e,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(e,t.styles)),m.STATIC_XFORMS.cellStyles.render(e),this.map.dxfs.render(e,t.dxfs),m.STATIC_XFORMS.tableStyles.render(e),m.STATIC_XFORMS.extLst.render(e),e.closeNode()}parseOpen(e){return this.parser?(this.parser.parseOpen(e),!0):"styleSheet"===e.name?(this.initIndex(),!0):(this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e),!0)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.parser=void 0),!0;if("styleSheet"===e){this.model={};const e=(e,t)=>{t.model&&t.model.length&&(this.model[e]=t.model)};if(e("numFmts",this.map.numFmts),e("fonts",this.map.fonts),e("fills",this.map.fills),e("borders",this.map.borders),e("styles",this.map.cellXfs),e("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){const e=this.index.numFmt;this.model.numFmts.forEach((t=>{e[t.id]=t.formatCode}))}return!1}return!0}addStyleModel(e,t){if(!e)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(e))return this.weakMap.get(e);const r={};if(t=t||n.ValueType.Number,e.numFmt)r.numFmtId=this._addNumFmtStr(e.numFmt);else switch(t){case n.ValueType.Number:r.numFmtId=this._addNumFmtStr("General");break;case n.ValueType.Date:r.numFmtId=this._addNumFmtStr("mm-dd-yy")}e.font&&(r.fontId=this._addFont(e.font)),e.border&&(r.borderId=this._addBorder(e.border)),e.fill&&(r.fillId=this._addFill(e.fill)),e.alignment&&(r.alignment=e.alignment),e.protection&&(r.protection=e.protection);const i=this._addStyle(r);return this.weakMap&&this.weakMap.set(e,i),i}getStyleModel(e){const t=this.model.styles[e];if(!t)return null;let r=this.index.model[e];if(r)return r;if(r=this.index.model[e]={},t.numFmtId){const e=this.index.numFmt[t.numFmtId]||d.getDefaultFmtCode(t.numFmtId);e&&(r.numFmt=e)}function n(e,t,n){if(n||0===n){const i=t[n];i&&(r[e]=i)}}return n("font",this.model.fonts,t.fontId),n("border",this.model.borders,t.borderId),n("fill",this.model.fills,t.fillId),t.alignment&&(r.alignment=t.alignment),t.protection&&(r.protection=t.protection),r}addDxfStyle(e){return e.numFmt&&(e.numFmtId=this._addNumFmtStr(e.numFmt)),this.model.dxfs.push(e),this.model.dxfs.length-1}getDxfStyle(e){return this.model.dxfs[e]}_addStyle(e){const t=this.map.style.toXml(e);let r=this.index.style[t];return void 0===r&&(r=this.index.style[t]=this.model.styles.length,this.model.styles.push(t)),r}_addNumFmtStr(e){let t=d.getDefaultFmtId(e);if(void 0!==t)return t;if(t=this.index.numFmt[e],void 0!==t)return t;t=this.index.numFmt[e]=164+this.model.numFmts.length;const r=this.map.numFmt.toXml({id:t,formatCode:e});return this.model.numFmts.push(r),t}_addFont(e){const t=this.map.font.toXml(e);let r=this.index.font[t];return void 0===r&&(r=this.index.font[t]=this.model.fonts.length,this.model.fonts.push(t)),r}_addBorder(e){const t=this.map.border.toXml(e);let r=this.index.border[t];return void 0===r&&(r=this.index.border[t]=this.model.borders.length,this.model.borders.push(t)),r}_addFill(e){const t=this.map.fill.toXml(e);let r=this.index.fill[t];return void 0===r&&(r=this.index.fill[t]=this.model.fills.length,this.model.fills.push(t)),r}}m.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},m.STATIC_XFORMS={cellStyles:new o({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new o({tag:"dxfs",$:{count:0}}),tableStyles:new o({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new o({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})};m.Mock=class extends m{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(e){return e.autodrain(),Promise.resolve()}addStyleModel(e,t){return t===n.ValueType.Date?this.dateStyleId:0}get dateStyleId(){if(!this._dateStyleId){const e={numFmtId:d.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(e)}return this._dateStyleId}getStyleModel(){return{}}},e.exports=m},15631:(e,t,r)=>{const n=r(87242);class i extends n{constructor(e){super(),this.model=e}get tag(){return"u"}render(e,t){if(!0===(t=t||this.model))e.leafNode("u");else{const r=i.Attributes[t];r&&e.leafNode("u",r)}}parseOpen(e){"u"===e.name&&(this.model=e.attributes.val||!0)}parseText(){}parseClose(){return!1}}i.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},e.exports=i},90290:(e,t,r)=>{const n=r(87242),i=r(24089);e.exports=class extends n{constructor(){super(),this.map={filterColumn:new i}}get tag(){return"autoFilter"}prepare(e){e.columns.forEach(((e,t)=>{this.map.filterColumn.prepare(e,{index:t})}))}render(e,t){return e.openNode(this.tag,{ref:t.autoFilterRef}),t.columns.forEach((t=>{this.map.filterColumn.render(e,t)})),e.closeNode(),!0}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;if(e.name===this.tag)return this.model={autoFilterRef:e.attributes.ref,columns:[]},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){if(this.parser)return this.parser.parseClose(e)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;if(e===this.tag)return!1;throw new Error(`Unexpected xml node in parseClose: ${e}`)}}},61238:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"customFilter"}render(e,t){e.leafNode(this.tag,{val:t.val,operator:t.operator})}parseOpen(e){return e.name===this.tag&&(this.model={val:e.attributes.val,operator:e.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},24089:(e,t,r)=>{const n=r(87242),i=r(62447),a=r(61238),o=r(59644);e.exports=class extends n{constructor(){super(),this.map={customFilters:new i({tag:"customFilters",count:!1,empty:!0,childXform:new a}),filters:new i({tag:"filters",count:!1,empty:!0,childXform:new o})}}get tag(){return"filterColumn"}prepare(e,t){e.colId=t.index.toString()}render(e,t){return t.customFilters?(e.openNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),this.map.customFilters.render(e,t.customFilters),e.closeNode(),!0):(e.leafNode(this.tag,{colId:t.colId,hiddenButton:t.filterButton?"0":"1"}),!0)}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{attributes:t}=e;if(e.name===this.tag)return this.model={filterButton:"0"===t.hiddenButton},!0;if(this.parser=this.map[e.name],this.parser)return this.parseOpen(e),!0;throw new Error(`Unexpected xml node in parseOpen: ${JSON.stringify(e)}`)}parseText(){}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.customFilters=this.map.customFilters.model,!1)}}},59644:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"filter"}render(e,t){e.leafNode(this.tag,{val:t.val})}parseOpen(e){return e.name===this.tag&&(this.model={val:e.attributes.val},!0)}parseText(){}parseClose(){return!1}}},57715:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"tableColumn"}prepare(e,t){e.id=t.index+1}render(e,t){return e.leafNode(this.tag,{id:t.id.toString(),name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId}),!0}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;return this.model={name:t.name,totalsRowLabel:t.totalsRowLabel,totalsRowFunction:t.totalsRowFunction,dxfId:t.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},16949:(e,t,r)=>{const n=r(87242);e.exports=class extends n{get tag(){return"tableStyleInfo"}render(e,t){return e.leafNode(this.tag,{name:t.theme?t.theme:void 0,showFirstColumn:t.showFirstColumn?"1":"0",showLastColumn:t.showLastColumn?"1":"0",showRowStripes:t.showRowStripes?"1":"0",showColumnStripes:t.showColumnStripes?"1":"0"}),!0}parseOpen(e){if(e.name===this.tag){const{attributes:t}=e;return this.model={theme:t.name?t.name:null,showFirstColumn:"1"===t.showFirstColumn,showLastColumn:"1"===t.showLastColumn,showRowStripes:"1"===t.showRowStripes,showColumnStripes:"1"===t.showColumnStripes},!0}return!1}parseText(){}parseClose(){return!1}}},71998:(e,t,r)=>{const n=r(12141),i=r(87242),a=r(62447),o=r(90290),s=r(57715),c=r(16949);class l extends i{constructor(){super(),this.map={autoFilter:new o,tableColumns:new a({tag:"tableColumns",count:!0,empty:!0,childXform:new s}),tableStyleInfo:new c}}prepare(e,t){this.map.autoFilter.prepare(e),this.map.tableColumns.prepare(e.columns,t)}get tag(){return"table"}render(e,t){e.openXml(n.StdDocAttributes),e.openNode(this.tag,{...l.TABLE_ATTRIBUTES,id:t.id,name:t.name,displayName:t.displayName||t.name,ref:t.tableRef,totalsRowCount:t.totalsRow?"1":void 0,totalsRowShown:t.totalsRow?void 0:"1",headerRowCount:t.headerRow?"1":"0"}),this.map.autoFilter.render(e,t),this.map.tableColumns.render(e,t.columns),this.map.tableStyleInfo.render(e,t.style),e.closeNode()}parseOpen(e){if(this.parser)return this.parser.parseOpen(e),!0;const{name:t,attributes:r}=e;if(t===this.tag)this.reset(),this.model={name:r.name,displayName:r.displayName||r.name,tableRef:r.ref,totalsRow:"1"===r.totalsRowCount,headerRow:"1"===r.headerRowCount};else this.parser=this.map[e.name],this.parser&&this.parser.parseOpen(e);return!0}parseText(e){this.parser&&this.parser.parseText(e)}parseClose(e){return this.parser?(this.parser.parseClose(e)||(this.parser=void 0),!0):e!==this.tag||(this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach(((e,t)=>{this.model.columns[t].filterButton=e.filterButton}))),this.model.style=this.map.tableStyleInfo.model,!1)}reconcile(e,t){e.columns.forEach((e=>{void 0!==e.dxfId&&(e.style=t.styles.getDxfStyle(e.dxfId))}))}}l.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},e.exports=l},59276:(e,t,r)=>{const n=r(79896),i=r(58833),{PassThrough:a}=r(34198),o=r(1495),s=r(87137),c=r(67032),l=r(12141),{bufferToString:u}=r(50323),d=r(17647),p=r(1298),f=r(96242),m=r(61724),g=r(40814),_=r(15888),h=r(22519),y=r(59629),v=r(66386),b=r(71998),k=r(10959),x=r(43316),E=r(46046);class S{constructor(e){this.workbook=e}async readFile(e,t){if(!await c.fs.exists(e))throw new Error(`File not found: ${e}`);const r=n.createReadStream(e);try{const e=await this.read(r,t);return r.close(),e}catch(e){throw r.close(),e}}parseRels(e){return(new m).parseStream(e)}parseWorkbook(e){return(new h).parseStream(e)}parseSharedStrings(e){return(new f).parseStream(e)}reconcile(e,t){const r=new h,n=new y(t),i=new v,a=new b;r.reconcile(e);const o={media:e.media,mediaIndex:e.mediaIndex};Object.keys(e.drawings).forEach((t=>{const r=e.drawings[t],n=e.drawingRels[t];n&&(o.rels=n.reduce(((e,t)=>(e[t.Id]=t,e)),{}),(r.anchors||[]).forEach((e=>{const t=e.picture&&e.picture.hyperlinks;t&&o.rels[t.rId]&&(t.hyperlink=o.rels[t.rId].Target,delete t.rId)})),i.reconcile(r,o))}));const s={styles:e.styles};Object.values(e.tables).forEach((e=>{a.reconcile(e,s)}));const c={styles:e.styles,sharedStrings:e.sharedStrings,media:e.media,mediaIndex:e.mediaIndex,date1904:e.properties&&e.properties.date1904,drawings:e.drawings,comments:e.comments,tables:e.tables,vmlDrawings:e.vmlDrawings};e.worksheets.forEach((t=>{t.relationships=e.worksheetRels[t.sheetNo],n.reconcile(t,c)})),delete e.worksheetHash,delete e.worksheetRels,delete e.globalRels,delete e.sharedStrings,delete e.workbookRels,delete e.sheetDefs,delete e.styles,delete e.mediaIndex,delete e.drawings,delete e.drawingRels,delete e.vmlDrawings}async _processWorksheetEntry(e,t,r,n,i){const a=new y(n),o=await a.parseStream(e);o.sheetNo=r,t.worksheetHash[i]=o,t.worksheets.push(o)}async _processCommentEntry(e,t,r){const n=new k,i=await n.parseStream(e);t.comments[`../${r}.xml`]=i}async _processTableEntry(e,t,r){const n=new b,i=await n.parseStream(e);t.tables[`../tables/${r}.xml`]=i}async _processWorksheetRelsEntry(e,t,r){const n=new m,i=await n.parseStream(e);t.worksheetRels[r]=i}async _processMediaEntry(e,t,r){const n=r.lastIndexOf(".");if(n>=1){const i=r.substr(n+1),a=r.substr(0,n);await new Promise(((n,o)=>{const c=new s;c.on("finish",(()=>{t.mediaIndex[r]=t.media.length,t.mediaIndex[a]=t.media.length;const e={type:"image",name:a,extension:i,buffer:c.toBuffer()};t.media.push(e),n()})),e.on("error",(e=>{o(e)})),e.pipe(c)}))}}async _processDrawingEntry(e,t,r){const n=new v,i=await n.parseStream(e);t.drawings[r]=i}async _processDrawingRelsEntry(e,t,r){const n=new m,i=await n.parseStream(e);t.drawingRels[r]=i}async _processVmlDrawingEntry(e,t,r){const n=new x,i=await n.parseStream(e);t.vmlDrawings[`../drawings/${r}.vml`]=i}async _processThemeEntry(e,t,r){await new Promise(((n,i)=>{const a=new s;e.on("error",i),a.on("error",i),a.on("finish",(()=>{t.themes[r]=a.read().toString(),n()})),e.pipe(a)}))}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}async read(e,t){!e[Symbol.asyncIterator]&&e.pipe&&(e=e.pipe(new a));const r=[];for await(const t of e)r.push(t);return this.load(Buffer.concat(r),t)}async load(e,t){let r;r=t&&t.base64?Buffer.from(e.toString(),"base64"):e;const n={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},o=await i.loadAsync(r);for(const e of Object.values(o.files))if(!e.dir){let r,i=e.name;if("/"===i[0]&&(i=i.substr(1)),i.match(/xl\/media\//)||i.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))r=new a,r.write(await e.async("nodebuffer"));else{let t;r=new a({writableObjectMode:!0,readableObjectMode:!0}),t=process.browser?u(await e.async("nodebuffer")):await e.async("string");const n=16384;for(let e=0;e<t.length;e+=n)r.write(t.substring(e,e+n))}switch(r.end(),i){case"_rels/.rels":n.globalRels=await this.parseRels(r);break;case"xl/workbook.xml":{const e=await this.parseWorkbook(r);n.sheets=e.sheets,n.definedNames=e.definedNames,n.views=e.views,n.properties=e.properties,n.calcProperties=e.calcProperties;break}case"xl/_rels/workbook.xml.rels":n.workbookRels=await this.parseRels(r);break;case"xl/sharedStrings.xml":n.sharedStrings=new f,await n.sharedStrings.parseStream(r);break;case"xl/styles.xml":n.styles=new d,await n.styles.parseStream(r);break;case"docProps/app.xml":{const e=new _,t=await e.parseStream(r);n.company=t.company,n.manager=t.manager;break}case"docProps/core.xml":{const e=new p,t=await e.parseStream(r);Object.assign(n,t);break}default:{let e=i.match(/xl\/worksheets\/sheet(\d+)[.]xml/);if(e){await this._processWorksheetEntry(r,n,e[1],t,i);break}if(e=i.match(/xl\/worksheets\/_rels\/sheet(\d+)[.]xml.rels/),e){await this._processWorksheetRelsEntry(r,n,e[1]);break}if(e=i.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/),e){await this._processThemeEntry(r,n,e[1]);break}if(e=i.match(/xl\/media\/([a-zA-Z0-9]+[.][a-zA-Z0-9]{3,4})$/),e){await this._processMediaEntry(r,n,e[1]);break}if(e=i.match(/xl\/drawings\/([a-zA-Z0-9]+)[.]xml/),e){await this._processDrawingEntry(r,n,e[1]);break}if(e=i.match(/xl\/(comments\d+)[.]xml/),e){await this._processCommentEntry(r,n,e[1]);break}if(e=i.match(/xl\/tables\/(table\d+)[.]xml/),e){await this._processTableEntry(r,n,e[1]);break}if(e=i.match(/xl\/drawings\/_rels\/([a-zA-Z0-9]+)[.]xml[.]rels/),e){await this._processDrawingRelsEntry(r,n,e[1]);break}if(e=i.match(/xl\/drawings\/(vmlDrawing\d+)[.]vml/),e){await this._processVmlDrawingEntry(r,n,e[1]);break}}}}return this.reconcile(n,t),this.workbook.model=n,this.workbook}async addMedia(e,t){await Promise.all(t.media.map((async t=>{if("image"===t.type){const r=`xl/media/${t.name}.${t.extension}`;if(t.filename){const i=await function(e,t){return new Promise(((r,i)=>{n.readFile(e,t,((e,t)=>{e?i(e):r(t)}))}))}(t.filename);return e.append(i,{name:r})}if(t.buffer)return e.append(t.buffer,{name:r});if(t.base64){const n=t.base64,i=n.substring(n.indexOf(",")+1);return e.append(i,{name:r,base64:!0})}}throw new Error("Unsupported media")})))}addDrawings(e,t){const r=new v,n=new m;t.worksheets.forEach((t=>{const{drawing:i}=t;if(i){r.prepare(i,{});let t=r.toXml(i);e.append(t,{name:`xl/drawings/${i.name}.xml`}),t=n.toXml(i.rels),e.append(t,{name:`xl/drawings/_rels/${i.name}.xml.rels`})}}))}addTables(e,t){const r=new b;t.worksheets.forEach((t=>{const{tables:n}=t;n.forEach((t=>{r.prepare(t,{});const n=r.toXml(t);e.append(n,{name:`xl/tables/${t.target}`})}))}))}async addContentTypes(e,t){const r=(new g).toXml(t);e.append(r,{name:"[Content_Types].xml"})}async addApp(e,t){const r=(new _).toXml(t);e.append(r,{name:"docProps/app.xml"})}async addCore(e,t){const r=new p;e.append(r.toXml(t),{name:"docProps/core.xml"})}async addThemes(e,t){const r=t.themes||{theme1:E};Object.keys(r).forEach((t=>{const n=r[t],i=`xl/theme/${t}.xml`;e.append(n,{name:i})}))}async addOfficeRels(e){const t=(new m).toXml([{Id:"rId1",Type:S.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:S.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:S.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);e.append(t,{name:"_rels/.rels"})}async addWorkbookRels(e,t){let r=1;const n=[{Id:"rId"+r++,Type:S.RelType.Styles,Target:"styles.xml"},{Id:"rId"+r++,Type:S.RelType.Theme,Target:"theme/theme1.xml"}];t.sharedStrings.count&&n.push({Id:"rId"+r++,Type:S.RelType.SharedStrings,Target:"sharedStrings.xml"}),t.worksheets.forEach((e=>{e.rId="rId"+r++,n.push({Id:e.rId,Type:S.RelType.Worksheet,Target:`worksheets/sheet${e.id}.xml`})}));const i=(new m).toXml(n);e.append(i,{name:"xl/_rels/workbook.xml.rels"})}async addSharedStrings(e,t){t.sharedStrings&&t.sharedStrings.count&&e.append(t.sharedStrings.xml,{name:"xl/sharedStrings.xml"})}async addStyles(e,t){const{xml:r}=t.styles;r&&e.append(r,{name:"xl/styles.xml"})}async addWorkbook(e,t){const r=new h;e.append(r.toXml(t),{name:"xl/workbook.xml"})}async addWorksheets(e,t){const r=new y,n=new m,i=new k,a=new x;t.worksheets.forEach((t=>{let o=new l;r.render(o,t),e.append(o.xml,{name:`xl/worksheets/sheet${t.id}.xml`}),t.rels&&t.rels.length&&(o=new l,n.render(o,t.rels),e.append(o.xml,{name:`xl/worksheets/_rels/sheet${t.id}.xml.rels`})),t.comments.length>0&&(o=new l,i.render(o,t),e.append(o.xml,{name:`xl/comments${t.id}.xml`}),o=new l,a.render(o,t),e.append(o.xml,{name:`xl/drawings/vmlDrawing${t.id}.vml`}))}))}_finalize(e){return new Promise(((t,r)=>{e.on("finish",(()=>{t(this)})),e.on("error",r),e.finalize()}))}prepareModel(e,t){e.creator=e.creator||"ExcelJS",e.lastModifiedBy=e.lastModifiedBy||"ExcelJS",e.created=e.created||new Date,e.modified=e.modified||new Date,e.useSharedStrings=void 0===t.useSharedStrings||t.useSharedStrings,e.useStyles=void 0===t.useStyles||t.useStyles,e.sharedStrings=new f,e.styles=e.useStyles?new d(!0):new d.Mock;const r=new h,n=new y;r.prepare(e);const i={sharedStrings:e.sharedStrings,styles:e.styles,date1904:e.properties.date1904,drawingsCount:0,media:e.media};i.drawings=e.drawings=[],i.commentRefs=e.commentRefs=[];let a=0;e.tables=[],e.worksheets.forEach((t=>{t.tables.forEach((t=>{a++,t.target=`table${a}.xml`,t.id=a,e.tables.push(t)})),n.prepare(t,i)}))}async write(e,t){t=t||{};const{model:r}=this.workbook,n=new o.ZipWriter(t.zip);return n.pipe(e),this.prepareModel(r,t),await this.addContentTypes(n,r),await this.addOfficeRels(n,r),await this.addWorkbookRels(n,r),await this.addWorksheets(n,r),await this.addSharedStrings(n,r),await this.addDrawings(n,r),await this.addTables(n,r),await Promise.all([this.addThemes(n,r),this.addStyles(n,r)]),await this.addMedia(n,r),await Promise.all([this.addApp(n,r),this.addCore(n,r)]),await this.addWorkbook(n,r),this._finalize(n)}writeFile(e,t){const r=n.createWriteStream(e);return new Promise(((e,n)=>{r.on("finish",(()=>{e()})),r.on("error",(e=>{n(e)})),this.write(r,t).then((()=>{r.end()})).catch((e=>{n(e)}))}))}async writeBuffer(e){const t=new s;return await this.write(t,e),t.read()}}S.RelType=r(71745),e.exports=S},46046:e=>{e.exports='<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"> <a:themeElements> <a:clrScheme name="Office"> <a:dk1> <a:sysClr val="windowText" lastClr="000000"/> </a:dk1> <a:lt1> <a:sysClr val="window" lastClr="FFFFFF"/> </a:lt1> <a:dk2> <a:srgbClr val="1F497D"/> </a:dk2> <a:lt2> <a:srgbClr val="EEECE1"/> </a:lt2> <a:accent1> <a:srgbClr val="4F81BD"/> </a:accent1> <a:accent2> <a:srgbClr val="C0504D"/> </a:accent2> <a:accent3> <a:srgbClr val="9BBB59"/> </a:accent3> <a:accent4> <a:srgbClr val="8064A2"/> </a:accent4> <a:accent5> <a:srgbClr val="4BACC6"/> </a:accent5> <a:accent6> <a:srgbClr val="F79646"/> </a:accent6> <a:hlink> <a:srgbClr val="0000FF"/> </a:hlink> <a:folHlink> <a:srgbClr val="800080"/> </a:folHlink> </a:clrScheme> <a:fontScheme name="Office"> <a:majorFont> <a:latin typeface="Cambria"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Times New Roman"/> <a:font script="Hebr" typeface="Times New Roman"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="MoolBoran"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Times New Roman"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:majorFont> <a:minorFont> <a:latin typeface="Calibri"/> <a:ea typeface=""/> <a:cs typeface=""/> <a:font script="Jpan" typeface="MS Pゴシック"/> <a:font script="Hang" typeface="맑은 고딕"/> <a:font script="Hans" typeface="宋体"/> <a:font script="Hant" typeface="新細明體"/> <a:font script="Arab" typeface="Arial"/> <a:font script="Hebr" typeface="Arial"/> <a:font script="Thai" typeface="Tahoma"/> <a:font script="Ethi" typeface="Nyala"/> <a:font script="Beng" typeface="Vrinda"/> <a:font script="Gujr" typeface="Shruti"/> <a:font script="Khmr" typeface="DaunPenh"/> <a:font script="Knda" typeface="Tunga"/> <a:font script="Guru" typeface="Raavi"/> <a:font script="Cans" typeface="Euphemia"/> <a:font script="Cher" typeface="Plantagenet Cherokee"/> <a:font script="Yiii" typeface="Microsoft Yi Baiti"/> <a:font script="Tibt" typeface="Microsoft Himalaya"/> <a:font script="Thaa" typeface="MV Boli"/> <a:font script="Deva" typeface="Mangal"/> <a:font script="Telu" typeface="Gautami"/> <a:font script="Taml" typeface="Latha"/> <a:font script="Syrc" typeface="Estrangelo Edessa"/> <a:font script="Orya" typeface="Kalinga"/> <a:font script="Mlym" typeface="Kartika"/> <a:font script="Laoo" typeface="DokChampa"/> <a:font script="Sinh" typeface="Iskoola Pota"/> <a:font script="Mong" typeface="Mongolian Baiti"/> <a:font script="Viet" typeface="Arial"/> <a:font script="Uigh" typeface="Microsoft Uighur"/> <a:font script="Geor" typeface="Sylfaen"/> </a:minorFont> </a:fontScheme> <a:fmtScheme name="Office"> <a:fillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="35000"> <a:schemeClr val="phClr"> <a:tint val="37000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="15000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="1"/> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="100000"/> <a:shade val="100000"/> <a:satMod val="130000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:tint val="50000"/> <a:shade val="100000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:lin ang="16200000" scaled="0"/> </a:gradFill> </a:fillStyleLst> <a:lnStyleLst> <a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"> <a:shade val="95000"/> <a:satMod val="105000"/> </a:schemeClr> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> <a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:prstDash val="solid"/> </a:ln> </a:lnStyleLst> <a:effectStyleLst> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="38000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> </a:effectStyle> <a:effectStyle> <a:effectLst> <a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"> <a:srgbClr val="000000"> <a:alpha val="35000"/> </a:srgbClr> </a:outerShdw> </a:effectLst> <a:scene3d> <a:camera prst="orthographicFront"> <a:rot lat="0" lon="0" rev="0"/> </a:camera> <a:lightRig rig="threePt" dir="t"> <a:rot lat="0" lon="0" rev="1200000"/> </a:lightRig> </a:scene3d> <a:sp3d> <a:bevelT w="63500" h="25400"/> </a:sp3d> </a:effectStyle> </a:effectStyleLst> <a:bgFillStyleLst> <a:solidFill> <a:schemeClr val="phClr"/> </a:solidFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="40000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="40000"> <a:schemeClr val="phClr"> <a:tint val="45000"/> <a:shade val="99000"/> <a:satMod val="350000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="20000"/> <a:satMod val="255000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="-80000" r="50000" b="180000"/> </a:path> </a:gradFill> <a:gradFill rotWithShape="1"> <a:gsLst> <a:gs pos="0"> <a:schemeClr val="phClr"> <a:tint val="80000"/> <a:satMod val="300000"/> </a:schemeClr> </a:gs> <a:gs pos="100000"> <a:schemeClr val="phClr"> <a:shade val="30000"/> <a:satMod val="200000"/> </a:schemeClr> </a:gs> </a:gsLst> <a:path path="circle"> <a:fillToRect l="50000" t="50000" r="50000" b="50000"/> </a:path> </a:gradFill> </a:bgFillStyleLst> </a:fmtScheme> </a:themeElements> <a:objectDefaults> <a:spDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="1"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="3"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="2"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="lt1"/> </a:fontRef> </a:style> </a:spDef> <a:lnDef> <a:spPr/> <a:bodyPr/> <a:lstStyle/> <a:style> <a:lnRef idx="2"> <a:schemeClr val="accent1"/> </a:lnRef> <a:fillRef idx="0"> <a:schemeClr val="accent1"/> </a:fillRef> <a:effectRef idx="1"> <a:schemeClr val="accent1"/> </a:effectRef> <a:fontRef idx="minor"> <a:schemeClr val="tx1"/> </a:fontRef> </a:style> </a:lnDef> </a:objectDefaults> <a:extraClrSchemeLst/> </a:theme>'},67017:(e,t,r)=>{var n=r(63735),i=r(16928),a=r(16308),o=r(40209),s=r(9897),c=r(79001),l=r(53577),u=e.exports={},d=/[\/\\]/g;u.exists=function(){var e=i.join.apply(i,arguments);return n.existsSync(e)},u.expand=function(...e){var t=c(e[0])?e.shift():{},r=Array.isArray(e[0])?e[0]:e;if(0===r.length)return[];var u=function(e,t){var r=[];return a(e).forEach((function(e){var n=0===e.indexOf("!");n&&(e=e.slice(1));var i=t(e);r=n?o(r,i):s(r,i)})),r}(r,(function(e){return l.sync(e,t)}));return t.filter&&(u=u.filter((function(e){e=i.join(t.cwd||"",e);try{return"function"==typeof t.filter?t.filter(e):n.statSync(e)[t.filter]()}catch(e){return!1}}))),u},u.expandMapping=function(e,t,r){r=Object.assign({rename:function(e,t){return i.join(e||"",t)}},r);var n=[],a={};return u.expand(r,e).forEach((function(e){var o=e;r.flatten&&(o=i.basename(o)),r.ext&&(o=o.replace(/(\.[^\/]*)?$/,r.ext));var s=r.rename(t,o,r);r.cwd&&(e=i.join(r.cwd,e)),s=s.replace(d,"/"),e=e.replace(d,"/"),a[s]?a[s].src.push(e):(n.push({src:[e],dest:s}),a[s]=n[n.length-1])})),n},u.normalizeFilesArray=function(e){var t=[];return e.forEach((function(e){("src"in e||"dest"in e)&&t.push(e)})),0===t.length?[]:t=_(t).chain().forEach((function(e){"src"in e&&e.src&&(Array.isArray(e.src)?e.src=a(e.src):e.src=[e.src])})).map((function(e){var t=Object.assign({},e);if(delete t.src,delete t.dest,e.expand)return u.expandMapping(e.src,e.dest,t).map((function(t){var r=Object.assign({},e);return r.orig=Object.assign({},e),r.src=t.src,r.dest=t.dest,["expand","cwd","flatten","rename","ext"].forEach((function(e){delete r[e]})),r}));var r=Object.assign({},e);return r.orig=Object.assign({},e),"src"in r&&Object.defineProperty(r,"src",{enumerable:!0,get:function r(){var n;return"result"in r||(n=e.src,n=Array.isArray(n)?a(n):[n],r.result=u.expand(t,n)),r.result}}),"dest"in r&&(r.dest=e.dest),r})).flatten().value()}},5955:(e,t,r)=>{var n=r(63735),i=r(16928),a=(r(39023),r(85)),o=r(14100),s=r(71676),c=r(2203).Stream,l=r(85756).PassThrough,u=e.exports={};u.file=r(67017),u.collectStream=function(e,t){var r=[],n=0;e.on("error",t),e.on("data",(function(e){r.push(e),n+=e.length})),e.on("end",(function(){var e=new Buffer(n),i=0;r.forEach((function(t){t.copy(e,i),i+=t.length})),t(null,e)}))},u.dateify=function(e){return(e=e||new Date)instanceof Date||(e="string"==typeof e?new Date(e):new Date),e},u.defaults=function(e,t,r){var n=arguments;return n[0]=n[0]||{},s(...n)},u.isStream=function(e){return e instanceof c},u.lazyReadStream=function(e){return new a.Readable((function(){return n.createReadStream(e)}))},u.normalizeInputSource=function(e){if(null===e)return new Buffer(0);if("string"==typeof e)return new Buffer(e);if(u.isStream(e)&&!e._readableState){var t=new l;return e.pipe(t),t}return e},u.sanitizePath=function(e){return o(e,!1).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")},u.trailingSlashIt=function(e){return"/"!==e.slice(-1)?e+"/":e},u.unixifyPath=function(e){return o(e,!1).replace(/^\w+:/,"")},u.walkdir=function(e,t,r){var a=[];"function"==typeof t&&(r=t,t=e),n.readdir(e,(function(o,s){var c,l,d=0;if(o)return r(o);!function o(){if(!(c=s[d++]))return r(null,a);l=i.join(e,c),n.stat(l,(function(e,r){a.push({path:l,relative:i.relative(t,l).replace(/\\/g,"/"),stats:r}),r&&r.isDirectory()?u.walkdir(l,t,(function(e,t){t.forEach((function(e){a.push(e)})),o()})):o()}))}()}))}},89196:(e,t,r)=>{"use strict";var n=r(33225),i=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};e.exports=d;var a=Object.create(r(15622));a.inherits=r(72017);var o=r(14418),s=r(43462);a.inherits(d,o);for(var c=i(s.prototype),l=0;l<c.length;l++){var u=c[l];d.prototype[u]||(d.prototype[u]=s.prototype[u])}function d(e){if(!(this instanceof d))return new d(e);o.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",p)}function p(){this.allowHalfOpen||this._writableState.ended||n.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(d.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(d.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}}),d.prototype._destroy=function(e,t){this.push(null),this.end(),n.nextTick(t,e)}},61526:(e,t,r)=>{"use strict";e.exports=a;var n=r(42540),i=Object.create(r(15622));function a(e){if(!(this instanceof a))return new a(e);n.call(this,e)}i.inherits=r(72017),i.inherits(a,n),a.prototype._transform=function(e,t,r){r(null,e)}},14418:(e,t,r)=>{"use strict";var n=r(33225);e.exports=y;var i,a=r(64634);y.ReadableState=h;r(24434).EventEmitter;var o=function(e,t){return e.listeners(t).length},s=r(15426),c=r(92861).Buffer,l=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var u=Object.create(r(15622));u.inherits=r(72017);var d=r(39023),p=void 0;p=d&&d.debuglog?d.debuglog("stream"):function(){};var f,m=r(78740),g=r(99426);u.inherits(y,s);var _=["error","close","destroy","pause","resume"];function h(e,t){e=e||{};var n=t instanceof(i=i||r(89196));this.objectMode=!!e.objectMode,n&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var a=e.highWaterMark,o=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=a||0===a?a:n&&(o||0===o)?o:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(f||(f=r(83141).I),this.decoder=new f(e.encoding),this.encoding=e.encoding)}function y(e){if(i=i||r(89196),!(this instanceof y))return new y(e);this._readableState=new h(e,this),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),s.call(this)}function v(e,t,r,n,i){var a,o=e._readableState;null===t?(o.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,E(e)}(e,o)):(i||(a=function(e,t){var r;n=t,c.isBuffer(n)||n instanceof l||"string"==typeof t||void 0===t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));var n;return r}(o,t)),a?e.emit("error",a):o.objectMode||t&&t.length>0?("string"==typeof t||o.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=function(e){return c.from(e)}(t)),n?o.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):b(e,o,t,!0):o.ended?e.emit("error",new Error("stream.push() after EOF")):(o.reading=!1,o.decoder&&!r?(t=o.decoder.write(t),o.objectMode||0!==t.length?b(e,o,t,!1):D(e,o)):b(e,o,t,!1))):n||(o.reading=!1));return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(o)}function b(e,t,r,n){t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,n?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&E(e)),D(e,t)}Object.defineProperty(y.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),y.prototype.destroy=g.destroy,y.prototype._undestroy=g.undestroy,y.prototype._destroy=function(e,t){this.push(null),t(e)},y.prototype.push=function(e,t){var r,n=this._readableState;return n.objectMode?r=!0:"string"==typeof e&&((t=t||n.defaultEncoding)!==n.encoding&&(e=c.from(e,t),t=""),r=!0),v(this,e,t,!1,r)},y.prototype.unshift=function(e){return v(this,e,null,!0,!1)},y.prototype.isPaused=function(){return!1===this._readableState.flowing},y.prototype.setEncoding=function(e){return f||(f=r(83141).I),this._readableState.decoder=new f(e),this._readableState.encoding=e,this};var k=8388608;function x(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!=e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=k?e=k:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function E(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(p("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?n.nextTick(S,e):S(e))}function S(e){p("emit readable"),e.emit("readable"),A(e)}function D(e,t){t.readingMore||(t.readingMore=!0,n.nextTick(w,e,t))}function w(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(p("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function T(e){p("readable nexttick read 0"),e.read(0)}function C(e,t){t.reading||(p("resume read 0"),e.read(0)),t.resumeScheduled=!1,t.awaitDrain=0,e.emit("resume"),A(e),t.flowing&&!t.reading&&e.read(0)}function A(e){var t=e._readableState;for(p("flow",t.flowing);t.flowing&&null!==e.read(););}function N(e,t){return 0===t.length?null:(t.objectMode?r=t.buffer.shift():!e||e>=t.length?(r=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):r=function(e,t,r){var n;e<t.head.data.length?(n=t.head.data.slice(0,e),t.head.data=t.head.data.slice(e)):n=e===t.head.data.length?t.shift():r?function(e,t){var r=t.head,n=1,i=r.data;e-=i.length;for(;r=r.next;){var a=r.data,o=e>a.length?a.length:e;if(o===a.length?i+=a:i+=a.slice(0,e),0===(e-=o)){o===a.length?(++n,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=a.slice(o));break}++n}return t.length-=n,i}(e,t):function(e,t){var r=c.allocUnsafe(e),n=t.head,i=1;n.data.copy(r),e-=n.data.length;for(;n=n.next;){var a=n.data,o=e>a.length?a.length:e;if(a.copy(r,r.length-e,0,o),0===(e-=o)){o===a.length?(++i,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=a.slice(o));break}++i}return t.length-=i,r}(e,t);return n}(e,t.buffer,t.decoder),r);var r}function P(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,n.nextTick(I,t,e))}function I(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function F(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}y.prototype.read=function(e){p("read",e),e=parseInt(e,10);var t=this._readableState,r=e;if(0!==e&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return p("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?P(this):E(this),null;if(0===(e=x(e,t))&&t.ended)return 0===t.length&&P(this),null;var n,i=t.needReadable;return p("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&p("length less than watermark",i=!0),t.ended||t.reading?p("reading or ended",i=!1):i&&(p("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=x(r,t))),null===(n=e>0?N(e,t):null)?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),r!==e&&t.ended&&P(this)),null!==n&&this.emit("data",n),n},y.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},y.prototype.pipe=function(e,t){var r=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=e;break;case 1:i.pipes=[i.pipes,e];break;default:i.pipes.push(e)}i.pipesCount+=1,p("pipe count=%d opts=%j",i.pipesCount,t);var s=(!t||!1!==t.end)&&e!==process.stdout&&e!==process.stderr?l:y;function c(t,n){p("onunpipe"),t===r&&n&&!1===n.hasUnpiped&&(n.hasUnpiped=!0,p("cleanup"),e.removeListener("close",_),e.removeListener("finish",h),e.removeListener("drain",u),e.removeListener("error",g),e.removeListener("unpipe",c),r.removeListener("end",l),r.removeListener("end",y),r.removeListener("data",m),d=!0,!i.awaitDrain||e._writableState&&!e._writableState.needDrain||u())}function l(){p("onend"),e.end()}i.endEmitted?n.nextTick(s):r.once("end",s),e.on("unpipe",c);var u=function(e){return function(){var t=e._readableState;p("pipeOnDrain",t.awaitDrain),t.awaitDrain&&t.awaitDrain--,0===t.awaitDrain&&o(e,"data")&&(t.flowing=!0,A(e))}}(r);e.on("drain",u);var d=!1;var f=!1;function m(t){p("ondata"),f=!1,!1!==e.write(t)||f||((1===i.pipesCount&&i.pipes===e||i.pipesCount>1&&-1!==F(i.pipes,e))&&!d&&(p("false write response, pause",i.awaitDrain),i.awaitDrain++,f=!0),r.pause())}function g(t){p("onerror",t),y(),e.removeListener("error",g),0===o(e,"error")&&e.emit("error",t)}function _(){e.removeListener("finish",h),y()}function h(){p("onfinish"),e.removeListener("close",_),y()}function y(){p("unpipe"),r.unpipe(e)}return r.on("data",m),function(e,t,r){if("function"==typeof e.prependListener)return e.prependListener(t,r);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(r):e._events[t]=[r,e._events[t]]:e.on(t,r)}(e,"error",g),e.once("close",_),e.once("finish",h),e.emit("pipe",r),i.flowing||(p("pipe resume"),r.resume()),e},y.prototype.unpipe=function(e){var t=this._readableState,r={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,r)),this;if(!e){var n=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)n[a].emit("unpipe",this,{hasUnpiped:!1});return this}var o=F(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this,r)),this},y.prototype.on=function(e,t){var r=s.prototype.on.call(this,e,t);if("data"===e)!1!==this._readableState.flowing&&this.resume();else if("readable"===e){var i=this._readableState;i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.emittedReadable=!1,i.reading?i.length&&E(this):n.nextTick(T,this))}return r},y.prototype.addListener=y.prototype.on,y.prototype.resume=function(){var e=this._readableState;return e.flowing||(p("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,n.nextTick(C,e,t))}(this,e)),this},y.prototype.pause=function(){return p("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(p("pause"),this._readableState.flowing=!1,this.emit("pause")),this},y.prototype.wrap=function(e){var t=this,r=this._readableState,n=!1;for(var i in e.on("end",(function(){if(p("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on("data",(function(i){(p("wrapped data"),r.decoder&&(i=r.decoder.write(i)),r.objectMode&&null==i)||(r.objectMode||i&&i.length)&&(t.push(i)||(n=!0,e.pause()))})),e)void 0===this[i]&&"function"==typeof e[i]&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<_.length;a++)e.on(_[a],this.emit.bind(this,_[a]));return this._read=function(t){p("wrapped _read",t),n&&(n=!1,e.resume())},this},Object.defineProperty(y.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),y._fromList=N},42540:(e,t,r)=>{"use strict";e.exports=o;var n=r(89196),i=Object.create(r(15622));function a(e,t){var r=this._transformState;r.transforming=!1;var n=r.writecb;if(!n)return this.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!=t&&this.push(t),n(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function o(e){if(!(this instanceof o))return new o(e);n.call(this,e),this._transformState={afterTransform:a.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",s)}function s(){var e=this;"function"==typeof this._flush?this._flush((function(t,r){c(e,t,r)})):c(this,null,null)}function c(e,t,r){if(t)return e.emit("error",t);if(null!=r&&e.push(r),e._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(e._transformState.transforming)throw new Error("Calling transform done when still transforming");return e.push(null)}i.inherits=r(72017),i.inherits(o,n),o.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},o.prototype._transform=function(e,t,r){throw new Error("_transform() is not implemented")},o.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0},o.prototype._destroy=function(e,t){var r=this;n.prototype._destroy.call(this,e,(function(e){t(e),r.emit("close")}))}},43462:(e,t,r)=>{"use strict";var n=r(33225);function i(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,r){var n=e.entry;e.entry=null;for(;n;){var i=n.callback;t.pendingcb--,i(r),n=n.next}t.corkedRequestsFree.next=e}(t,e)}}e.exports=_;var a,o=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:n.nextTick;_.WritableState=g;var s=Object.create(r(15622));s.inherits=r(72017);var c={deprecate:r(27983)},l=r(15426),u=r(92861).Buffer,d=("undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){};var p,f=r(99426);function m(){}function g(e,t){a=a||r(89196),e=e||{};var s=t instanceof a;this.objectMode=!!e.objectMode,s&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var c=e.highWaterMark,l=e.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=c||0===c?c:s&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var d=!1===e.decodeStrings;this.decodeStrings=!d,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,i=r.sync,a=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,i,a){--t.pendingcb,r?(n.nextTick(a,i),n.nextTick(x,e,t),e._writableState.errorEmitted=!0,e.emit("error",i)):(a(i),e._writableState.errorEmitted=!0,e.emit("error",i),x(e,t))}(e,r,i,t,a);else{var s=b(r);s||r.corked||r.bufferProcessing||!r.bufferedRequest||v(e,r),i?o(y,e,r,s,a):y(e,r,s,a)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function _(e){if(a=a||r(89196),!(p.call(_,this)||this instanceof a))return new _(e);this._writableState=new g(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),l.call(this)}function h(e,t,r,n,i,a,o){t.writelen=n,t.writecb=o,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function y(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),x(e,t)}function v(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,a=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var s=0,c=!0;r;)a[s]=r,r.isBuf||(c=!1),r=r.next,s+=1;a.allBuffers=c,h(e,t,!0,t.length,a,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new i(t),t.bufferedRequestCount=0}else{for(;r;){var l=r.chunk,u=r.encoding,d=r.callback;if(h(e,t,!1,t.objectMode?1:l.length,l,u,d),r=r.next,t.bufferedRequestCount--,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequest=r,t.bufferProcessing=!1}function b(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function k(e,t){e._final((function(r){t.pendingcb--,r&&e.emit("error",r),t.prefinished=!0,e.emit("prefinish"),x(e,t)}))}function x(e,t){var r=b(t);return r&&(!function(e,t){t.prefinished||t.finalCalled||("function"==typeof e._final?(t.pendingcb++,t.finalCalled=!0,n.nextTick(k,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),r}s.inherits(_,l),g.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(g.prototype,"buffer",{get:c.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(_,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===_&&(e&&e._writableState instanceof g)}})):p=function(e){return e instanceof this},_.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},_.prototype.write=function(e,t,r){var i,a=this._writableState,o=!1,s=!a.objectMode&&(i=e,u.isBuffer(i)||i instanceof d);return s&&!u.isBuffer(e)&&(e=function(e){return u.from(e)}(e)),"function"==typeof t&&(r=t,t=null),s?t="buffer":t||(t=a.defaultEncoding),"function"!=typeof r&&(r=m),a.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),n.nextTick(t,r)}(this,r):(s||function(e,t,r,i){var a=!0,o=!1;return null===r?o=new TypeError("May not write null values to stream"):"string"==typeof r||void 0===r||t.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(e.emit("error",o),n.nextTick(i,o),a=!1),a}(this,a,e,r))&&(a.pendingcb++,o=function(e,t,r,n,i,a){if(!r){var o=function(e,t,r){e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=u.from(t,r));return t}(t,n,i);n!==o&&(r=!0,i="buffer",n=o)}var s=t.objectMode?1:n.length;t.length+=s;var c=t.length<t.highWaterMark;c||(t.needDrain=!0);if(t.writing||t.corked){var l=t.lastBufferedRequest;t.lastBufferedRequest={chunk:n,encoding:i,isBuf:r,callback:a,next:null},l?l.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else h(e,t,!1,s,n,i,a);return c}(this,a,s,e,t,r)),o},_.prototype.cork=function(){this._writableState.corked++},_.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||v(this,e))},_.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(_.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_.prototype._write=function(e,t,r){r(new Error("_write() is not implemented"))},_.prototype._writev=null,_.prototype.end=function(e,t,r){var i=this._writableState;"function"==typeof e?(r=e,e=null,t=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),i.corked&&(i.corked=1,this.uncork()),i.ending||function(e,t,r){t.ending=!0,x(e,t),r&&(t.finished?n.nextTick(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,i,r)},Object.defineProperty(_.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),_.prototype.destroy=f.destroy,_.prototype._undestroy=f.undestroy,_.prototype._destroy=function(e,t){this.end(),t(e)}},78740:(e,t,r)=>{"use strict";var n=r(92861).Buffer,i=r(39023);e.exports=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.head=null,this.tail=null,this.length=0}return e.prototype.push=function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";for(var t=this.head,r=""+t.data;t=t.next;)r+=e+t.data;return r},e.prototype.concat=function(e){if(0===this.length)return n.alloc(0);for(var t,r,i,a=n.allocUnsafe(e>>>0),o=this.head,s=0;o;)t=o.data,r=a,i=s,t.copy(r,i),s+=o.data.length,o=o.next;return a},e}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var e=i.inspect({length:this.length});return this.constructor.name+" "+e})},99426:(e,t,r)=>{"use strict";var n=r(33225);function i(e,t){e.emit("error",t)}e.exports={destroy:function(e,t){var r=this,a=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return a||o?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(i,this,e)):n.nextTick(i,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?r._writableState?r._writableState.errorEmitted||(r._writableState.errorEmitted=!0,n.nextTick(i,r,e)):n.nextTick(i,r,e):t&&t(e)})),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},15426:(e,t,r)=>{e.exports=r(2203)},85756:(e,t,r)=>{var n=r(2203);"disable"===process.env.READABLE_STREAM&&n?(e.exports=n,(t=e.exports=n.Readable).Readable=n.Readable,t.Writable=n.Writable,t.Duplex=n.Duplex,t.Transform=n.Transform,t.PassThrough=n.PassThrough,t.Stream=n):((t=e.exports=r(14418)).Stream=n||t,t.Readable=t,t.Writable=r(43462),t.Duplex=r(89196),t.Transform=r(42540),t.PassThrough=r(61526))},10711:(e,t,r)=>{
82 const n=r(79896),i=r(70857),a=r(16928),o=r(76982),s={fs:n.constants,os:i.constants},c="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",l=/XXXXXX/,u=3,d=(s.O_CREAT||s.fs.O_CREAT)|(s.O_EXCL||s.fs.O_EXCL)|(s.O_RDWR||s.fs.O_RDWR),p="win32"===i.platform(),f=s.EBADF||s.os.errno.EBADF,m=s.ENOENT||s.os.errno.ENOENT,g=[],_=n.rmdirSync.bind(n);let h=!1;function y(e,t){return n.rm(e,{recursive:!0},t)}function v(e){return n.rmSync(e,{recursive:!0})}function b(e,t){const r=A(e,t),i=r[0],a=r[1];try{P(i)}catch(e){return a(e)}let o=i.tries;!function e(){try{const t=N(i);n.stat(t,(function(r){if(!r)return o-- >0?e():a(new Error("Could not get a unique tmp filename, max tries reached "+t));a(null,t)}))}catch(e){a(e)}}()}function k(e){const t=A(e)[0];P(t);let r=t.tries;do{const e=N(t);try{n.statSync(e)}catch(t){return e}}while(r-- >0);throw new Error("Could not get a unique tmp filename, max tries reached")}function x(e,t){const r=function(e){if(e&&!O(e))return t(e);t()};0<=e[0]?n.close(e[0],(function(){n.unlink(e[1],r)})):n.unlink(e[1],r)}function E(e){let t=null;try{0<=e[0]&&n.closeSync(e[0])}catch(e){if(!(r=e,R(r,-f,"EBADF")||O(e)))throw e}finally{try{n.unlinkSync(e[1])}catch(e){O(e)||(t=e)}}var r;if(null!==t)throw t}function S(e,t,r,n){const i=w(E,[t,e],n),a=w(x,[t,e],n,i);return r.keep||g.unshift(i),n?i:a}function D(e,t,r){const i=t.unsafeCleanup?y:n.rmdir.bind(n),a=w(t.unsafeCleanup?v:_,e,r),o=w(i,e,r,a);return t.keep||g.unshift(a),r?a:o}function w(e,t,r,n){let i=!1;return function a(o){if(!i){const s=n||a,c=g.indexOf(s);return c>=0&&g.splice(c,1),i=!0,r||e===_||e===v?e(t):e(t,o||function(){})}}}function T(e){let t=[],r=null;try{r=o.randomBytes(e)}catch(t){r=o.pseudoRandomBytes(e)}for(var n=0;n<e;n++)t.push(c[r[n]%c.length]);return t.join("")}function C(e){return void 0===e}function A(e,t){if("function"==typeof e)return[{},e];if(C(e))return[{},t];const r={};for(const t of Object.getOwnPropertyNames(e))r[t]=e[t];return[r,t]}function N(e){const t=e.tmpdir;if(!C(e.name))return a.join(t,e.dir,e.name);if(!C(e.template))return a.join(t,e.dir,e.template).replace(l,T(6));const r=[e.prefix?e.prefix:"tmp","-",process.pid,"-",T(12),e.postfix?"-"+e.postfix:""].join("");return a.join(t,e.dir,r)}function P(e){e.tmpdir=M(e);const t=e.tmpdir;if(C(e.name)||F(e.name,"name",t),C(e.dir)||F(e.dir,"dir",t),!C(e.template)&&(F(e.template,"template",t),!e.template.match(l)))throw new Error(`Invalid template, found "${e.template}".`);if(!C(e.tries)&&isNaN(e.tries)||e.tries<0)throw new Error(`Invalid tries, found "${e.tries}".`);var r;e.tries=C(e.name)?e.tries||u:1,e.keep=!!e.keep,e.detachDescriptor=!!e.detachDescriptor,e.discardDescriptor=!!e.discardDescriptor,e.unsafeCleanup=!!e.unsafeCleanup,e.dir=C(e.dir)?"":a.relative(t,I(e.dir,t)),e.template=C(e.template)?void 0:a.relative(t,I(e.template,t)),e.template=null===(r=e.template)||C(r)||!r.trim()?void 0:a.relative(e.dir,e.template),e.name=C(e.name)?void 0:e.name,e.prefix=C(e.prefix)?"":e.prefix,e.postfix=C(e.postfix)?"":e.postfix}function I(e,t){return e.startsWith(t)?a.resolve(e):a.resolve(a.join(t,e))}function F(e,t,r){if("name"===t){if(a.isAbsolute(e))throw new Error(`${t} option must not contain an absolute path, found "${e}".`);let r=a.basename(e);if(".."===r||"."===r||r!==e)throw new Error(`${t} option must not contain a path, found "${e}".`)}else{if(a.isAbsolute(e)&&!e.startsWith(r))throw new Error(`${t} option must be relative to "${r}", found "${e}".`);let n=I(e,r);if(!n.startsWith(r))throw new Error(`${t} option must be relative to "${r}", found "${n}".`)}}function O(e){return R(e,-m,"ENOENT")}function R(e,t,r){return p?e.code===r:e.code===r&&e.errno===t}function M(e){return a.resolve(e&&e.tmpdir||i.tmpdir())}process.addListener("exit",(function(){if(h)for(;g.length;)try{g[0]()}catch(e){}})),Object.defineProperty(e.exports,"tmpdir",{enumerable:!0,configurable:!1,get:function(){return M()}}),e.exports.dir=function(e,t){const r=A(e,t),i=r[0],a=r[1];b(i,(function(e,t){if(e)return a(e);n.mkdir(t,i.mode||448,(function(e){if(e)return a(e);a(null,t,D(t,i,!1))}))}))},e.exports.dirSync=function(e){const t=A(e)[0],r=k(t);return n.mkdirSync(r,t.mode||448),{name:r,removeCallback:D(r,t,!0)}},e.exports.file=function(e,t){const r=A(e,t),i=r[0],a=r[1];b(i,(function(e,t){if(e)return a(e);n.open(t,d,i.mode||384,(function(e,r){if(e)return a(e);if(i.discardDescriptor)return n.close(r,(function(e){return a(e,t,void 0,S(t,-1,i,!1))}));{const e=i.discardDescriptor||i.detachDescriptor;a(null,t,r,S(t,e?-1:r,i,!1))}}))}))},e.exports.fileSync=function(e){const t=A(e)[0],r=t.discardDescriptor||t.detachDescriptor,i=k(t);var a=n.openSync(i,d,t.mode||384);return t.discardDescriptor&&(n.closeSync(a),a=void 0),{name:i,fd:a,removeCallback:S(i,r?-1:a,t,!0)}},e.exports.tmpName=b,e.exports.tmpNameSync=k,e.exports.setGracefulCleanup=function(){h=!0}},36623:e=>{function t(e){if(!(this instanceof t))return new t(e);this.value=e}function r(e,t,r){var i=[],a=[],o=!0;return function e(s){var c=r?n(s):s,l={},u={node:c,node_:s,path:[].concat(i),parent:a.slice(-1)[0],key:i.slice(-1)[0],isRoot:0===i.length,level:i.length,circular:null,update:function(e){u.isRoot||(u.parent.node[u.key]=e),u.node=e},delete:function(){delete u.parent.node[u.key]},remove:function(){Array.isArray(u.parent.node)?u.parent.node.splice(u.key,1):delete u.parent.node[u.key]},before:function(e){l.before=e},after:function(e){l.after=e},pre:function(e){l.pre=e},post:function(e){l.post=e},stop:function(){o=!1}};if(!o)return u;if("object"==typeof c&&null!==c){u.isLeaf=0==Object.keys(c).length;for(var d=0;d<a.length;d++)if(a[d].node_===s){u.circular=a[d];break}}else u.isLeaf=!0;u.notLeaf=!u.isLeaf,u.notRoot=!u.isRoot;var p=t.call(u,u.node);if(void 0!==p&&u.update&&u.update(p),l.before&&l.before.call(u,u.node),"object"==typeof u.node&&null!==u.node&&!u.circular){a.push(u);var f=Object.keys(u.node);f.forEach((function(t,n){i.push(t),l.pre&&l.pre.call(u,u.node[t],t);var a=e(u.node[t]);r&&Object.hasOwnProperty.call(u.node,t)&&(u.node[t]=a.node),a.isLast=n==f.length-1,a.isFirst=0==n,l.post&&l.post.call(u,a),i.pop()})),a.pop()}return l.after&&l.after.call(u,u.node),u}(e).node}function n(e){var t;return"object"==typeof e&&null!==e?(t=Array.isArray(e)?[]:e instanceof Date?new Date(e):e instanceof Boolean?new Boolean(e):e instanceof Number?new Number(e):e instanceof String?new String(e):Object.create(Object.getPrototypeOf(e)),Object.keys(e).forEach((function(r){t[r]=e[r]})),t):e}e.exports=t,t.prototype.get=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!Object.hasOwnProperty.call(t,n)){t=void 0;break}t=t[n]}return t},t.prototype.set=function(e,t){for(var r=this.value,n=0;n<e.length-1;n++){var i=e[n];Object.hasOwnProperty.call(r,i)||(r[i]={}),r=r[i]}return r[e[n]]=t,t},t.prototype.map=function(e){return r(this.value,e,!0)},t.prototype.forEach=function(e){return this.value=r(this.value,e,!1),this.value},t.prototype.reduce=function(e,t){var r=1===arguments.length,n=r?this.value:t;return this.forEach((function(t){this.isRoot&&r||(n=e.call(this,n,t))})),n},t.prototype.deepEqual=function(e){if(1!==arguments.length)throw new Error("deepEqual requires exactly one object to compare against");var r=!0,n=e;return this.forEach((function(i){var a=function(){r=!1}.bind(this);if(!this.isRoot){if("object"!=typeof n)return a();n=n[this.key]}var o=n;this.post((function(){n=o}));var s=function(e){return Object.prototype.toString.call(e)};if(this.circular)t(e).get(this.circular.path)!==o&&a();else if(typeof o!=typeof i)a();else if(null===o||null===i||void 0===o||void 0===i)o!==i&&a();else if(o.__proto__!==i.__proto__)a();else if(o===i);else if("function"==typeof o)o instanceof RegExp?o.toString()!=i.toString()&&a():o!==i&&a();else if("object"==typeof o)if("[object Arguments]"===s(i)||"[object Arguments]"===s(o))s(o)!==s(i)&&a();else if(o instanceof Date||i instanceof Date)o instanceof Date&&i instanceof Date&&o.getTime()===i.getTime()||a();else{var c=Object.keys(o),l=Object.keys(i);if(c.length!==l.length)return a();for(var u=0;u<c.length;u++){var d=c[u];Object.hasOwnProperty.call(i,d)||a()}}})),r},t.prototype.paths=function(){var e=[];return this.forEach((function(t){e.push(this.path)})),e},t.prototype.nodes=function(){var e=[];return this.forEach((function(t){e.push(this.node)})),e},t.prototype.clone=function(){var e=[],t=[];return function r(i){for(var a=0;a<e.length;a++)if(e[a]===i)return t[a];if("object"==typeof i&&null!==i){var o=n(i);return e.push(i),t.push(o),Object.keys(i).forEach((function(e){o[e]=r(i[e])})),e.pop(),t.pop(),o}return i}(this.value)},Object.keys(t.prototype).forEach((function(e){t[e]=function(r){var n=[].slice.call(arguments,1),i=t(r);return i[e].apply(i,n)}}))},77926:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.toolNameMethod=t.joinNewMessage=t.joinOldMessage=t.Plugin=t.formatSet=t.formatType=t.toolNameSet=t.toolNameType=void 0;const i=n(r(16928)),a=n(r(79896)),o=r(35317),s=r(27944),c=r(40745),l=r(4e3),u=r(30871),d=r(17858),p=r(26499),f=r(40149),m=r(20043),g=r(40744),_=r(8136),h=r(12587),y=r(87191),v=r(22127),b=r(93333),k=r(80879),x=r(44791);var E,S;!function(e){e.COLLECT="collect",e.CHECK="check",e.CHECKONLINE="checkOnline",e.APICHANGECHECK="apiChangeCheck",e.DIFF="diff",e.LABELDETECTION="detection",e.COUNT="count"}(E=t.toolNameType||(t.toolNameType={})),t.toolNameSet=new Set(s.EnumUtils.enum2arr(E)),function(e){e.NULL="",e.JSON="json",e.EXCEL="excel",e.CHANGELOG="changelog"}(S=t.formatType||(t.formatType={})),t.formatSet=new Set(s.EnumUtils.enum2arr(S)),t.Plugin={pluginOptions:{name:"parser",version:"0.1.0",description:"Compare the parser the SDKS",commands:[{isRequiredOption:!0,options:[`-N,--tool-name <${[...t.toolNameSet]}>`,"tool name ","checkOnline"]},{isRequiredOption:!1,options:["-C,--collect-path <string>","collect api path","./api"]},{isRequiredOption:!1,options:["-F,--collect-file <string>","collect api file array",""]},{isRequiredOption:!1,options:["-L,--check-labels <string>","detection check labels",""]},{isRequiredOption:!1,options:["--isOH <string>","detection check labels",""]},{isRequiredOption:!1,options:["--path <string>","check api path, split with comma",""]},{isRequiredOption:!1,options:["--checker <string>","check api rule, split with comma","all"]},{isRequiredOption:!1,options:["--prId <string>","check api prId",""]},{isRequiredOption:!1,options:["--excel <string>","check api excel","false"]},{isRequiredOption:!1,options:["--old <string>","diff old sdk path","./api"]},{isRequiredOption:!1,options:["--new <string>","diff new sdk path","./api"]},{isRequiredOption:!1,options:["--old-version <string>","old sdk version","0"]},{isRequiredOption:!1,options:["--new-version <string>","new sdk version","0"]},{isRequiredOption:!1,options:["--output <string>","output file path","./"]},{isRequiredOption:!1,options:[`--format <${[...t.formatSet]}>`,"output file format","json"]},{isRequiredOption:!1,options:["--changelogUrl <string>","changelog url",""]},{isRequiredOption:!1,options:["--all <boolean>","is all sheet",""]}]},start:async function(e){const r=e.toolName,n=t.toolNameMethod.get(r);if(!n)return void l.LogUtil.i("CommandArgs","tool-name may use error name or don't have function,tool-name can use 'collect' or 'diff'");const i={toolName:r,collectPath:e.collectPath,collectFile:e.collectFile,checkLabels:e.checkLabels,isOH:e.isOH,path:e.path,checker:e.checker,prId:e.prId,old:e.old,new:e.new,oldVersion:e.oldVersion,newVersion:e.newVersion,output:e.output,format:e.format,changelogUrl:e.changelogUrl,excel:e.excel,all:e.all},a=n(i);!function(e,t,r){const n=t.format;let i=`${t.toolName}_${t.oldVersion}_${t.newVersion}.json`;if(!n)return;t.toolName===E.COUNT&&(i="api_kit_js.json");switch(n){case S.JSON:m.WriterHelper.JSONReporter(String(e[0]),t.output,i);break;case S.EXCEL:m.WriterHelper.ExcelReporter(e,t.output,`${t.toolName}.xlsx`,r,t);break;case S.CHANGELOG:m.WriterHelper.JSONReporter(String(e[0]),t.output,`${t.toolName}.json`)}}(a.data,i,a.callback)},stop:function(){l.LogUtil.i("commander","elapsed time: "+(Date.now()-D))}};let D=Date.now();function w(e,t,r,n){const i=t.addWorksheet(),a=new Set,o=k.FunctionUtils.readKitFile();i.name="JsApi",i.views=[{xSplit:1}],i.getRow(1).values=["模块名","类名","方法名","函数","类型","起始版本","废弃版本","syscap","错误码","是否为系统API","模型限制","权限","是否支持跨平台","是否支持卡片应用","是否为高阶API","装饰器","kit","文件路径","子系统","父节点类型","父节点API是否可选"];let s=2;e.forEach((e=>{const t=`${e.getHierarchicalRelations()},${e.getDefinedText()}`;a.has(t)||(i.getRow(s).values=[e.getPackageName(),e.getParentModuleName(),e.getApiName(),e.getDefinedText(),e.getApiType(),"-1"===e.getSince()?"":e.getSince(),"-1"===e.getDeprecatedVersion()?"":e.getDeprecatedVersion(),e.getSyscap(),"-1"===e.getErrorCodes().join()?"":e.getErrorCodes().join(),e.getApiLevel(),e.getModelLimitation(),e.getPermission(),e.getIsCrossPlatForm(),e.getIsForm(),e.getIsAutomicService(),e.getDecorators()?.join(),""===e.getKitInfo()?o.kitNameMap.get(e.getFilePath().replace(/\\/g,"/").replace("api/","")):e.getKitInfo(),e.getFilePath(),o.subsystemMap.get(e.getFilePath().replace(/\\/g,"/").replace("api/","")),e.getParentApiType(),e.getIsOptional()],s++,a.add(t))})),n?.all&&function(e,t){const r=t.addWorksheet(),n=new Set,i=k.FunctionUtils.readKitFile();r.name="JsApi定制版本",r.views=[{xSplit:1}],r.getRow(1).values=["模块名","类名","方法名","函数","类型","起始版本","废弃版本","syscap","错误码","是否为系统API","模型限制","权限","是否支持跨平台","是否支持卡片应用","是否为高阶API","装饰器","kit","文件路径","子系统","接口全路径"];let a=2;e.forEach((e=>{const t=`${e.getHierarchicalRelations()},${e.getDefinedText()}`;n.has(t)||(r.getRow(a).values=[e.getPackageName(),e.getParentModuleName(),e.getApiName(),e.getDefinedText(),e.getApiType(),"-1"===e.getSince()?"":e.getSince(),"-1"===e.getDeprecatedVersion()?"":e.getDeprecatedVersion(),e.getSyscap(),"-1"===e.getErrorCodes().join()?"":e.getErrorCodes().join(),e.getApiLevel(),e.getModelLimitation(),e.getPermission(),e.getIsCrossPlatForm(),e.getIsForm(),e.getIsAutomicService(),e.getDecorators()?.join(),""===e.getKitInfo()?i.kitNameMap.get(e.getFilePath().replace(/\\/g,"/").replace("api/","")):e.getKitInfo(),e.getFilePath(),i.subsystemMap.get(e.getFilePath().replace(/\\/g,"/").replace("api/","")),e.getHierarchicalRelations().replace(/\//g,"#").replace("api\\","")],a++,n.add(t))}))}(e,t)}function T(e,t){const r=t.addWorksheet();r.name="api数量",r.views=[{xSplit:1}],r.getRow(1).values=["子系统","kit","文件","api数量"],e.forEach(((e,t)=>{r.getRow(t+_.NumberConstant.LINE_IN_EXCEL).values=[e.getsubSystem(),e.getKitName(),e.getFilePath(),e.getApiNumber()]}))}function C(e,t,r,n){const i=new Set,a=k.FunctionUtils.readKitFile(),o=t.addWorksheet("api差异");o.views=[{xSplit:2}],o.getRow(1).values=["操作标记","差异项-旧版本","差异项-新版本","d.ts文件","归属子系统","kit","是否为系统API"],e.forEach(((e,t)=>{i.add(I(e));const r=e.getNewDtsName()?e.getNewDtsName():e.getOldDtsName();o.getRow(t+_.NumberConstant.LINE_IN_EXCEL).values=[f.diffTypeMap.get(e.getDiffType()),F(e),O(e),r.replace(/\\/g,"/"),a.subsystemMap.get(r.replace(/\\/g,"/").replace("api/","")),""===y.SyscapProcessorHelper.getSingleKitInfo(e)?a.kitNameMap.get(r.replace(/\\/g,"/").replace("api/","")):y.SyscapProcessorHelper.getSingleKitInfo(e),e.getIsSystemapi()]})),m.WriterHelper.MarkdownReporter.writeInMarkdown(e,r),n?.all&&function(e,t,r,n){const i=t.addWorksheet("api变更数量统计");i.views=[{xSplit:2}],i.getRow(1).values=["api名称","kit名称","归属子系统","是否是api","api类型","操作标记","变更类型","兼容性","变更次数","差异项-旧版本","差异项-新版本","兼容性列表","接口全路径","是否为系统API","是否为同名API"];let a=[];e.forEach((e=>{let t="";const i=new f.DiffNumberInfo;r.forEach((r=>{const a=r.getNewDtsName()?r.getNewDtsName():r.getOldDtsName(),o=""===y.SyscapProcessorHelper.getSingleKitInfo(r)?n.kitNameMap.get(a.replace(/\\/g,"/").replace("api/","")):y.SyscapProcessorHelper.getSingleKitInfo(r);e===I(r)&&(t=P(r),i.setAllDiffType(r.getDiffMessage()).setAllChangeType(f.apiChangeMap.get(r.getDiffType())).setOldDiffMessage(r.getOldDescription()).setNewDiffMessage(r.getNewDescription()).setAllCompatible(r.getIsCompatible()).setIsApi(!f.isNotApiSet.has(r.getApiType())).setKitName(o).setSubsystem(n.subsystemMap.get(a.replace(/\\/g,"/").replace("api/",""))).setApiName(r.getApiType()===x.ApiType.SOURCE_FILE?"SOURCEFILE":P(r)).setApiRelation(I(r).replace(/\,/g,"#").replace("api\\","")).setIsSystemapi(r.getIsSystemapi()).setApiType(r.getApiType()).setIsSameNameFunction(r.getIsSameNameFunction()))})),a.push(i)})),a=function(e,t){return t}(0,a),a.forEach(((e,t)=>{i.getRow(t+_.NumberConstant.LINE_IN_EXCEL).values=[e.getApiName(),e.getKitName(),e.getSubsystem(),e.getIsApi(),e.getApiType(),e.getAllDiffType().join(" #&# "),e.getAllChangeType().join(" #&# "),A(e),N(e),e.getOldDiffMessage().join(" #&# "),e.getNewDiffMessage().join(" #&# "),e.getAllCompatible().join(" #&# "),e.getApiRelation(),e.getIsSystemapi(),e.getIsSameNameFunction()]}))}(i,t,e,a)}function A(e){const t=new Set(e.getAllCompatible());let r=0,n=0;return 2===t.size?(r=1,n=1):t.has(!0)?r=1:t.has(!1)&&(n=1),`{\n "兼容性":${r},\n "非兼容性":${n}\n }`}function N(e){const t=new Set(e.getAllChangeType());let r=0,n=0,i=0,a=0,o=0,s=0;return t.has("API修改(原型修改)")&&s++,t.has("API修改(约束变化)")&&o++,(t.has("API修改(原型修改)")||t.has("API修改(约束变化)"))&&a++,t.has("API废弃")&&i++,t.has("API新增")&&r++,t.has("API删除")&&n++,`{\n "API新增": ${r},\n "API删除": ${n},\n "API废弃": ${i},\n "API修改": ${a},\n "API修改(原型修改)": ${s},\n "API修改(约束变化)": ${o}\n }`}function P(e){return""!==e.getNewApiName()?e.getNewApiName():e.getOldApiName()}function I(e){const t=e.getNewHierarchicalRelations();return t.length>0?t.join():e.getOldHierarchicalRelations().join()}function F(e){if(e.getDiffMessage()===f.diffTypeMap.get(f.ApiDiffType.ADD))return"NA";let t="";const r=e.getOldHierarchicalRelations(),n=e.getParentModuleName(r);return t="-1"!==e.getOldDescription()&&e.getOldDescription()?e.getOldDescription():"NA",e.getDiffType()===f.ApiDiffType.KIT_CHANGE?`${t}`:`类名:${n};\nAPI声明:${e.getOldApiDefinedText()}\n差异内容:${t}`}function O(e){if(e.getDiffMessage()===f.diffTypeMap.get(f.ApiDiffType.REDUCE))return"NA";let t="";const r=e.getNewHierarchicalRelations(),n=e.getParentModuleName(r);return t="-1"!==e.getNewDescription()&&e.getNewDescription()?e.getNewDescription():"NA",e.getDiffType()===f.ApiDiffType.KIT_CHANGE?`${t}`:`类名:${n};\nAPI声明:${e.getNewApiDefinedText()}\n差异内容:${t}`}t.joinOldMessage=F,t.joinNewMessage=O,t.toolNameMethod=new Map([[E.COLLECT,function(e){const t=i.default.resolve(c.FileUtils.getBaseDirName(),e.collectPath);let r,n="";""!==e.collectFile&&(n=i.default.resolve(c.FileUtils.getBaseDirName(),e.collectFile),d.parserParam.setSdkPath(n));try{r=c.FileUtils.isDirectory(t)?u.Parser.parseDir(t,n):u.Parser.parseFile(i.default.resolve(t,".."),t);const a=h.ApiStatisticsHelper.getApiStatisticsInfos(r);let o=[u.Parser.getParseResults(r)];if("excel"===e.format){const t=a.allApiStatisticsInfos;o=a.apiStatisticsInfos,t&&m.WriterHelper.ExcelReporter(t,e.output,`all_${e.toolName}.xlsx`,w)}return{data:o,callback:w}}catch(e){const t=e;return l.LogUtil.e("error collect",t.stack?t.stack:t.message),{data:[],callback:w}}}],[E.CHECK,function(){try{let e=[];const t=i.default.resolve(c.FileUtils.getBaseDirName(),"../mdFiles.txt");return a.default.existsSync(t)&&(e=b.CommonFunctions.getMdFiles(t)),g.LocalEntry.checkEntryLocal(e,["all"],"./result.json","","true"),{data:[]}}catch(e){const t=e;return l.LogUtil.e("error check",t.stack?t.stack:t.message),{data:[]}}}],[E.CHECKONLINE,function(e){e.format=S.NULL;try{return g.LocalEntry.checkEntryLocal(e.path.split(","),e.checker.split(","),e.output,e.prId,e.excel),{data:[]}}catch(e){const t=e;l.LogUtil.e("error check",t.stack?t.stack:t.message)}return{data:[]}}],[E.APICHANGECHECK,function(e){e.format=S.NULL;try{return g.LocalEntry.apiChangeCheckEntryLocal(e.prId,e.checker.split(","),e.output,e.excel),{data:[]}}catch(e){const t=e;l.LogUtil.e("error api change check",t.stack?t.stack:t.message)}return{data:[]}}],[E.DIFF,function(e){const t=i.default.resolve(c.FileUtils.getBaseDirName(),e.old),r=i.default.resolve(c.FileUtils.getBaseDirName(),e.new),n=a.default.statSync(t);let o=[];try{if(n.isDirectory()){const n=u.Parser.parseDir(t),i=u.Parser.parseDir(r);o=p.DiffHelper.diffSDK(n,i,e.all)}else{const n=u.Parser.parseFile(i.default.resolve(t,".."),t);u.Parser.cleanParserParamSDK();const a=u.Parser.parseFile(i.default.resolve(r,".."),r);o=p.DiffHelper.diffSDK(n,a,e.all)}let a=[];return a=e.format===S.JSON?[JSON.stringify(o,null,_.NumberConstant.INDENT_SPACE)]:o,{data:a,callback:C}}catch(e){const t=e;return l.LogUtil.e("error diff",t.stack?t.stack:t.message),{data:[],callback:C}}}],[E.LABELDETECTION,function(e){process.env.NEED_DETECTION="true",process.env.IS_OH=e.isOH,e.format=S.NULL;const t=i.default.resolve(c.FileUtils.getBaseDirName(),e.collectPath);let r,n="";""!==e.collectFile&&(n=i.default.resolve(c.FileUtils.getBaseDirName(),e.collectFile));let a=Buffer.from("");try{r=c.FileUtils.isDirectory(t)?u.Parser.parseDir(t,n):u.Parser.parseFile(i.default.resolve(t,".."),t);const s=u.Parser.getParseResults(r);m.WriterHelper.JSONReporter(s,i.default.dirname(e.output),"detection.json");let l="";l=`${i.default.resolve(c.FileUtils.getBaseDirName(),"./main.exe")} -N detection -L ${e.checkLabels} -P ${i.default.resolve(i.default.dirname(e.output),"detection.json")} -O ${i.default.resolve(e.output)}`,a=o.execSync(l,{timeout:12e4})}catch(e){const t=e;l.LogUtil.e("error collect",t.stack?t.stack:t.message)}finally{l.LogUtil.i("detection run over",a.toString())}return{data:[]}}],[E.COUNT,function(e){const t=i.default.resolve(c.FileUtils.getBaseDirName(),"../../api");let r,n="";""!==e.collectFile&&(n=i.default.resolve(c.FileUtils.getBaseDirName(),e.collectFile));try{r=c.FileUtils.isDirectory(t)?u.Parser.parseDir(t,n):u.Parser.parseFile(i.default.resolve(t,".."),t);const a=h.ApiStatisticsHelper.getApiStatisticsInfos(r).apiStatisticsInfos,o=v.ApiCountHelper.countApi(a);let s=[];return s=e.format===S.JSON?[JSON.stringify(o,null,_.NumberConstant.INDENT_SPACE)]:o,{data:s,callback:T}}catch(e){const t=e;return l.LogUtil.e("error count",t.stack?t.stack:t.message),{data:[],callback:T}}}]])},11162:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getToolConfiguration=void 0;const n=r(77926);t.getToolConfiguration=function(){return{plugins:[n.Plugin]}}},20043:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WriterHelper=void 0;const i=n(r(6752)),a=n(r(16928)),o=n(r(79896)),s=r(4e3),c=r(77926),l=r(40149),u=r(87191);!function(e){e.JSONReporter=function(e,t,r){const n=a.default.resolve(t,r);o.default.writeFileSync(n,e),s.LogUtil.i("JSONReporter",`report is in ${n}`)},e.ExcelReporter=async function(e,t,r,n,c){const l=new i.default.Workbook;"function"==typeof n&&n(e,l,t,c);const u=await l.xlsx.writeBuffer(),d=a.default.resolve(t,r);o.default.writeFileSync(d,u),s.LogUtil.i("ExcelReporter",`report is in ${d}`)};class t{static writeInMarkdown(e,r){t.getAllKitInfo(e).forEach((n=>{let i=[];e.forEach((e=>{u.SyscapProcessorHelper.getSingleKitInfo(e)===n&&i.push(e)})),0!==i.length&&t.sortDiffInfoByFile(i,n,r)}))}static getAllKitInfo(e){const t=new Set;return e.forEach((e=>{t.add(e.getOldKitInfo()),t.add(e.getNewKitInfo())})),t}static getSingleKitInfo(e){return""!==e.getNewKitInfo()?e.getNewKitInfo():e.getOldKitInfo()}static getFileNameInkit(e){const t=new Set;return e.forEach((e=>{""!==e.getNewDtsName()?t.add(e.getNewDtsName()):t.add(e.getOldDtsName())})),t}static getSingleFileName(e){return""!==e.getNewDtsName()?e.getNewDtsName():e.getOldDtsName()}static sortDiffInfoByFile(e,r,n){const i=t.getFileNameInkit(e),a=[];i.forEach((i=>{e.forEach((e=>{t.getSingleFileName(e)===i&&a.push(e)})),t.sortDiffInfoByStatus(a,r,n)}))}static sortDiffInfoByStatus(e,r,n){const i=[];for(const t of l.diffTypeMap.keys())e.forEach((e=>{e.getDiffType()===t&&i.push(e)}));t.exportDiffMd(r,i,n)}static exportDiffMd(e,r,n){let i="| 操作 | 旧版本 | 新版本 | d.ts文件 |\n| ---- | ------ | ------ | -------- |\n";for(let e=0;e<r.length;e++){let n=r[e];const a=n.getNewDtsName()?n.getNewDtsName():n.getOldDtsName();i+=`|${l.diffTypeMap.get(n.getDiffType())}|${t.formatDiffMessage(c.joinOldMessage(n))}|${t.formatDiffMessage(c.joinNewMessage(n))}|${a.replace(/\\/g,"/")}|\n`}const a=`${n}\\diff合集`;o.default.existsSync(a)||o.default.mkdirSync(a),o.default.writeFileSync(`${n}\\diff合集\\js-apidiff-${e}.md`,i)}static formatDiffMessage(e){return e.replace(/\r|\n/g,"<br>").replace(/\|/g,"\\|").replace(/\<(?!br>)/g,"\\<")}}e.MarkdownReporter=t}(t.WriterHelper||(t.WriterHelper={}))},88189:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(16928));t.default={NODE_ENV:"development",EVN_CONFIG:"dev",DIR_NAME:i.default.resolve(__dirname,"../.."),NEED_DETECTION:"",IS_OH:""}},59620:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(88189)),a=n(r(88463)),o="production",s={development:i.default,production:a.default};Object.assign(process.env,s[o]),t.default=s[o]},88463:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(16928));t.default={NODE_ENV:"production",EVN_CONFIG:"prod",DIR_NAME:i.default.resolve(__dirname,".."),NEED_DETECTION:"",IS_OH:""}},40744:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LocalEntry=void 0;const n=r(77002),i=r(13930),a=r(4e3),o=r(93333),s=r(93333),c=r(61574),l=r(26150);class u{static checkEntryLocal(e,t,r,n,c){let l=s.apiCheckResult;try{i.Check.scanEntry(e,n,!1),u.maskAlarm(s.compositiveResult,t)}catch(e){a.LogUtil.e("API_CHECK_ERROR",e)}finally{o.GenerateFile.writeFile(s.apiCheckResult,r,{}),"true"===c&&o.GenerateFile.writeExcelFile(s.apiCheckResult)}return l}static maskAlarm(e,t){const r=1===t.length&&"all"===t[0],i=new Map(Object.entries({...c.DOC,...c.DEFINE,...c.CHANEGE}));let a=new Set;r?a=new Set([...i.values()]):t.forEach((e=>{const t=i.get(e);t&&a.add(t)}));new Set(e);u.filterAllResultInfo(e,i,a).forEach((e=>{const t=new n.ApiBaseInfo;t.setApiName(e.apiName).setApiType(e.apiType).setHierarchicalRelations(e.hierarchicalRelations).setParentModuleName(e.parentModuleName);const r=new n.ApiResultMessage;r.setFilePath(e.filePath).setLocation(e.location).setLevel(e.level).setType(e.type).setMessage(e.message).setMainBuggyCode(e.apiText).setMainBuggyLine(e.location).setExtendInfo(t),s.apiCheckResult.push(r)}))}static filterAllResultInfo(e,t,r){return e.filter((e=>{let n=e.message.replace(/API check error of \[.*\]: /g,"");if(/\d/g.test(n)&&(n=n.replace(/\d+/g,"1")),/Prohibited word in \[.*\]:{option}.The word allowed is \[.*\]\./g.test(n)&&(n=JSON.stringify(t.get("API_DEFINE_NAME_01")).replace(/\"/g,"")),/Prohibited word in \[.*\]:{ability} in the \[.*\] file\./g.test(n)&&(n=JSON.stringify(t.get("API_DEFINE_NAME_02")).replace(/\"/g,"")),/please confirm whether it needs to be corrected to a common word./g.test(n)&&(n=n.replace(/\{.*\}/g,"{XXXX}")),/tag does not exist. Please use a valid JSDoc tag./g.test(n)&&(n=n.replace(/\[.*\]/g,"[XXXX]")),/The event name should be named by small hump./g.test(n)&&(n=n.replace(/\[.*\]/g,"[XXXX]")),/This name \[.*\] should be named by/g.test(n)&&(n=n.replace(/\[.*\]/g,"[XXXX]")),r.has(n)){const r=u.filterApiCheckInfos(t,n);""!==r&&e.setType(r)}return r.has(n)}))}static filterApiCheckInfos(e,t){for(let[r,n]of e.entries())if(n===t)return r;return""}static apiChangeCheckEntryLocal(e,t,r,n){let i=s.apiCheckResult;try{l.ApiChangeCheck.checkApiChange(e),u.maskAlarm(s.compositiveResult,t)}catch(e){a.LogUtil.e("API_CHECK_ERROR",e)}finally{o.GenerateFile.writeFile(s.apiCheckResult,r,{}),"true"===n&&o.GenerateFile.writeExcelFile(s.apiCheckResult)}return i}}t.LocalEntry=u},13930:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Check=t.currentFilePath=void 0;const i=n(r(79896)),a=n(r(16928)),o=r(30871),s=r(44791),c=r(77002),l=r(93333),u=r(95721),d=r(6300),p=r(18e3),f=r(36944),m=r(31575),g=r(28912),_=r(56795),h=r(95769),y=r(23978),v=r(58010),b=r(37798),k=r(26150),x=r(53438),E=r(11449),S=r(9706),D=r(73086);t.currentFilePath="";class w{static scanEntry(e,r,n){l.cleanCompositiveResult(),k.ApiChangeCheck.checkApiChange(r),e.forEach(((e,r)=>{if(t.currentFilePath=e,-1!==e.indexOf("build-tools")&&!n)return;console.log(`scaning file in no ${++r}!`);const i=w.parseAPICodeStyle(e),s=o.Parser.getAllBasicApi(i);w.checkNodeInfos(s);const c=i.get(a.default.basename(e));c&&v.CheckHump.checkAPIFileName(c),v.CheckHump.checkAllAPINameOfHump(s),_.WordsCheck.wordCheckResultsProcessing(s);const l=new b.EventMethodChecker(i),u=l.getAllEventMethod();l.checkEventMethod(u)}))}static getMdFiles(e){return i.default.readFileSync(e,"utf-8").split(/[(\r\n)\r\n]+/)}static parseAPICodeStyle(e){return o.Parser.parseFile(a.default.resolve(e,".."),e)}static checkNodeInfos(e){let r=[];w.getHasJsdocApiInfos(e,r),r.forEach((e=>{const r=e.getLastJsDocInfo(),n=e.getJsDocText().length;if("Method"!==e.getApiType()||"Struct"!==e.getParentApi()?.apiType)if(void 0===r||0===n){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.NO_JSDOC_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.NO_JSDOC).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(c.ErrorMessage.ERROR_NO_JSDOC);const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}else{if("NA"===r.getKit()){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.WRONG_SCENE_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.WRONG_SCENE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(l.CommonFunctions.createErrorInfo(c.ErrorMessage.ERROR_LOST_LABEL,["kit"]));const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}if(!r.getFileTagContent()){new c.ApiCheckInfo;const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.WRONG_SCENE_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.WRONG_SCENE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(l.CommonFunctions.createErrorInfo(c.ErrorMessage.ERROR_LOST_LABEL,["file"]));const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}const n=p.LegalityCheck.apiLegalityCheck(e,r),i=u.OrderCheck.orderCheck(e,r),a=y.ApiNamingCheck.namingCheck(e),o=E.ChineseCheck.checkChinese(r),s=D.CheckErrorCode.checkErrorCode(r),_=d.TagNameCheck.tagNameCheck(r),v=x.TagInheritCheck.tagInheritCheck(e),b=g.TagValueCheck.tagValueCheck(e,r),k=f.TagRepeatCheck.tagRepeatCheck(r),w=h.ForbiddenWordsCheck.forbiddenWordsCheck(e),T=S.AnonymousFunctionCheck.checkAnonymousFunction(e);if(!i.state){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.WRONG_ORDER_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.WRONG_ORDER).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(i.errorInfo);const a=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(a,l.compositiveResult,l.compositiveLocalResult)}if(!_.state){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.UNKNOW_DECORATOR_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.UNKNOW_DECORATOR).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(_.errorInfo);const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}if(!w.state){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.FORBIDDEN_WORDS_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.FORBIDDEN_WORDS).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(w.errorInfo);const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}if(!a.state){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.NAMING_ERRORS_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.NAMING_ERRORS).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(a.errorInfo);const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}if(!o.state){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.JSDOC_HAS_CHINESE).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.JSDOC_HAS_CHINESE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(o.errorInfo);const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}if(!s.state){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.ERROR_ERROR_CODE).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.ERROR_ERROR_CODE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(s.errorInfo);const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}if(v.forEach((n=>{if(!n.state){const i=new c.ErrorBaseInfo;i.setErrorID(c.ErrorID.WRONG_SCENE_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.WRONG_SCENE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(n.errorInfo);const a=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,i);m.AddErrorLogs.addAPICheckErrorLogs(a,l.compositiveResult,l.compositiveLocalResult)}})),n.forEach((n=>{if(!1===n.state){const i=new c.ErrorBaseInfo;i.setErrorID(c.ErrorID.WRONG_SCENE_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.WRONG_SCENE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(n.errorInfo);const a=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,i);m.AddErrorLogs.addAPICheckErrorLogs(a,l.compositiveResult,l.compositiveLocalResult)}})),b.forEach((n=>{if(!1===n.state){const i=new c.ErrorBaseInfo;i.setErrorID(c.ErrorID.WRONG_VALUE_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.WRONG_VALUE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(n.errorInfo);const a=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,i);m.AddErrorLogs.addAPICheckErrorLogs(a,l.compositiveResult,l.compositiveLocalResult)}})),k.forEach((n=>{if(!1===n.state){const i=new c.ErrorBaseInfo;i.setErrorID(c.ErrorID.WRONG_SCENE_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.WRONG_SCENE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(n.errorInfo);const a=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,i);m.AddErrorLogs.addAPICheckErrorLogs(a,l.compositiveResult,l.compositiveLocalResult)}})),!T.state){const n=new c.ErrorBaseInfo;n.setErrorID(c.ErrorID.WRONG_SCENE_ID).setErrorLevel(c.ErrorLevel.MIDDLE).setErrorType(c.ErrorType.WRONG_SCENE).setLogType(c.LogType.LOG_JSDOC).setErrorInfo(T.errorInfo);const i=l.CommonFunctions.getErrorInfo(e,r,t.currentFilePath,n);m.AddErrorLogs.addAPICheckErrorLogs(i,l.compositiveResult,l.compositiveLocalResult)}}}))}static getHasJsdocApiInfos(e,t){e.forEach((e=>{s.notJsDocApiTypes.has(e.getApiType())||t.push(e)}))}}t.Check=w},9706:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.AnonymousFunctionCheck=void 0;const i=n(r(58843)),a=r(77002),o=r(44791),s=r(93333);t.AnonymousFunctionCheck=class{static checkAnonymousFunction(e){const t={state:!0,errorInfo:""},r=e.getJsDocInfos();if(s.CommonFunctions.getSinceVersion(r[0].getSince())!==s.CommonFunctions.getCheckApiVersion())return t;let n=[i.default.SyntaxKind.FunctionType,i.default.SyntaxKind.TypeLiteral],c=!1,l=!1,u=!1;if(e.getApiType()===o.ApiType.METHOD){c=n.includes(e.returnValueType),l=!1;e.getParams().forEach((e=>{l=n.includes(e.getParamType())}))}else e.getApiType()===o.ApiType.PROPERTY&&(u=n.includes(e.typeKind));return(c||l||u)&&(t.state=!1,t.errorInfo=a.ErrorMessage.ERROR_ANONYMOUS_FUNCTION),t}}},26150:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiChangeCheck=void 0;const i=n(r(16928)),a=n(r(79896)),o=r(30871),s=r(26499),c=r(40745),l=r(31575),u=r(93333),d=r(77002),p=r(40149);t.ApiChangeCheck=class{static checkApiChange(e){let t="";const r=i.default.resolve(c.FileUtils.getBaseDirName(),`../../../../Archive/patch_info/openharmony_interface_sdk-js_${e}`),n=i.default.resolve(c.FileUtils.getBaseDirName(),e);a.default.existsSync(r)?t=r:a.default.existsSync(n)&&(t=n);const f=i.default.resolve(t,"./old"),m=i.default.resolve(t,"./new");if(!a.default.existsSync(f)||!a.default.existsSync(m))return;let g=[];if(a.default.statSync(f).isDirectory()){const e=o.Parser.parseDir(f),t=o.Parser.parseDir(m);g=s.DiffHelper.diffSDK(e,t,!1,!0)}else{const e=o.Parser.parseFile(i.default.resolve(f,".."),f),t=o.Parser.parseFile(i.default.resolve(m,".."),m);g=s.DiffHelper.diffSDK(e,t,!1,!0)}g.forEach((e=>{if(!1!==e.getIsCompatible())return;const t=d.incompatibleApiDiffTypes.get(e.getDiffType());if(e.getDiffType()===p.ApiDiffType.REDUCE){const r=i.default.basename(e.getOldDtsName());let n=new d.ApiCheckInfo;const a=e.getOldHierarchicalRelations(),o=a[a.length-1];n.setErrorID(d.ErrorID.API_CHANGE_ERRORS_ID).setErrorLevel(d.ErrorLevel.MIDDLE).setFilePath(r).setApiPostion(e.getOldPos()).setErrorType(d.ErrorType.API_CHANGE_ERRORS).setLogType(d.LogType.LOG_JSDOC).setSinceNumber(-1).setApiName(e.getOldApiName()).setApiType(e.getApiType()).setApiText(e.getOldApiDefinedText()).setErrorInfo(t).setHierarchicalRelations(e.getOldHierarchicalRelations().join("|")).setParentModuleName(o),l.AddErrorLogs.addAPICheckErrorLogs(n,u.compositiveResult,u.compositiveLocalResult)}else{const r=i.default.basename(e.getNewDtsName());let n=new d.ApiCheckInfo;const a=e.getNewHierarchicalRelations(),o=a[a.length-1];n.setErrorID(d.ErrorID.API_CHANGE_ERRORS_ID).setErrorLevel(d.ErrorLevel.MIDDLE).setFilePath(r).setApiPostion(e.getOldPos()).setErrorType(d.ErrorType.API_CHANGE_ERRORS).setLogType(d.LogType.LOG_JSDOC).setSinceNumber(-1).setApiName(e.getNewApiName()).setApiType(e.getApiType()).setApiText(e.getNewApiDefinedText()).setErrorInfo(t).setHierarchicalRelations(e.getNewHierarchicalRelations().join("|")).setParentModuleName(o),l.AddErrorLogs.addAPICheckErrorLogs(n,u.compositiveResult,u.compositiveLocalResult)}}))}}},11449:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChineseCheck=void 0;const n=r(77002),i=r(93333);t.ChineseCheck=class{static isChinese(e){return/[\u4e00-\u9fa5]/.test(e)}static checkChinese(e){const t={state:!0,errorInfo:""};this.isChinese(e.description)&&(t.state=!1,t.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_HAS_CHINESE,[e.description]));const r=e.tags;return void 0===r||r.forEach((e=>{for(let r=0;r<e.tokenSource.length;r++)this.isChinese(e.tokenSource[r].source)&&(t.state=!1,t.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_HAS_CHINESE,[e.tag]))})),t}}},73086:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CheckErrorCode=void 0;const n=r(77002);class i{static isArrayNotEmpty(e){return Array.isArray(e)&&e.length>0}static hasNumberInArray(e,t){return e.every((e=>t.includes(e)))}static checkErrorCode(e){const t={state:!0,errorInfo:""},r=e.errorCodes.filter((e=>e>=100&&e<1e3));return this.isArrayNotEmpty(r)&&(this.hasNumberInArray(r,this.errorCodeList)||(t.state=!1,t.errorInfo=n.ErrorMessage.ERROR_ERROR_CODE)),t}}t.CheckErrorCode=i,i.errorCodeList=[201,202,203,301,401,501,502,801,901]},58010:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CheckHump=void 0;const i=n(r(16928)),a=r(31575),o=r(8136),s=r(77002),c=r(44791),l=r(93333),u=r(93333),d=r(13930);class p{static checkLargeHump(e){return/^([A-Z][a-z0-9]*)*$/g.test(e)}static checkSmallHump(e){return/^[a-z]+[0-9]*([A-Z][a-z0-9]*)*$/g.test(e)}static checkAllUppercaseHump(e){return/^[A-Z]+[0-9]*([\_][A-Z0-9]+)*$/g.test(e)}static getApiInfosInFileMap(e,t){if(t===o.StringConstant.SELF)return[];return e.get(t).get(o.StringConstant.SELF)}static checkAllAPINameOfHump(e){e.forEach((e=>{c.notJsDocApiTypes.has(e.getApiType())||p.checkAPINameOfHump(e)}))}static checkAPINameOfHump(e){const t=e.getLastJsDocInfo(),r=e.getJsDocInfos().length>0?e.getJsDocInfos()[0].getSince():"";if(t){if("-1"!==t.getDeprecatedVersion())return;if(r!==String(l.CommonFunctions.getCheckApiVersion()))return}const n=e.getApiType(),o=e.getFilePath();let f=e.getApiName(),m="";if(e.getIsJoinType()&&(f=f.split("_")[0]),n===c.ApiType.ENUM_VALUE||n===c.ApiType.CONSTANT&&-1===o.indexOf(`component${i.default.sep}ets${i.default.sep}`)?p.checkAllUppercaseHump(f)||(m=l.CommonFunctions.createErrorInfo(s.ErrorMessage.ERROR_UPPERCASE_NAME,[f])):n===c.ApiType.INTERFACE||n===c.ApiType.CLASS||n===c.ApiType.TYPE_ALIAS||n===c.ApiType.ENUM?p.checkLargeHump(f)||(m=l.CommonFunctions.createErrorInfo(s.ErrorMessage.ERROR_LARGE_HUMP_NAME,[f])):n!==c.ApiType.PROPERTY&&n!==c.ApiType.METHOD&&n!==c.ApiType.PARAM&&n!==c.ApiType.NAMESPACE||p.checkSmallHump(f)||(m=l.CommonFunctions.createErrorInfo(s.ErrorMessage.ERROR_SMALL_HUMP_NAME,[f])),""!==m){const t=new s.ErrorBaseInfo;t.setErrorID(s.ErrorID.NAMING_ERRORS_ID).setErrorLevel(s.ErrorLevel.MIDDLE).setErrorType(s.ErrorType.NAMING_ERRORS).setLogType(s.LogType.LOG_JSDOC).setErrorInfo(m);const r=l.CommonFunctions.getErrorInfo(e,void 0,d.currentFilePath,t);a.AddErrorLogs.addAPICheckErrorLogs(r,u.compositiveResult,u.compositiveLocalResult)}}static checkAPIFileName(e){const t=e.get(o.StringConstant.SELF)[0];if(t.getApiType()!==c.ApiType.SOURCE_FILE)return;const r=t.getFilePath();if(-1!==r.indexOf(`component${i.default.sep}ets${i.default.sep}`))return;let n="",f="",m="NA";for(const t of e.keys()){p.getApiInfosInFileMap(e,t).forEach((e=>{if(!c.notJsDocApiTypes.has(e.getApiType())){const t=e.getJsDocInfos();m=t[0]?l.CommonFunctions.getSinceVersion(t[0].getSince()):m}n=e.getApiType()===c.ApiType.NAMESPACE?e.getApiName():n,f=e.getApiType()===c.ApiType.EXPORT_DEFAULT||e.getIsExport()?e.getApiName().replace(o.StringConstant.EXPORT_DEFAULT,""):f}))}const g=i.default.basename(r).replace(new RegExp(o.StringConstant.DTS_EXTENSION,"g"),"").replace(new RegExp(o.StringConstant.DETS_EXTENSION,"g"),"").split("."),_=g.length?g[g.length-1]:"";let h="";if(""===n||f!==n||p.checkSmallHump(_)?""!==n||f===n||p.checkLargeHump(_)||(h=s.ErrorMessage.ERROR_LARGE_HUMP_NAME_FILE):h=s.ErrorMessage.ERROR_SMALL_HUMP_NAME_FILE,""!==h&&m===String(l.CommonFunctions.getCheckApiVersion())){const e=new s.ErrorBaseInfo;e.setErrorID(s.ErrorID.NAMING_ERRORS_ID).setErrorLevel(s.ErrorLevel.MIDDLE).setErrorType(s.ErrorType.NAMING_ERRORS).setLogType(s.LogType.LOG_JSDOC).setErrorInfo(h);const r=l.CommonFunctions.getErrorInfo(t,void 0,d.currentFilePath,e);a.AddErrorLogs.addAPICheckErrorLogs(r,u.compositiveResult,u.compositiveLocalResult)}}}t.CheckHump=p},31575:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddErrorLogs=void 0;const n=r(77002),i=r(93333);t.AddErrorLogs=class{static addAPICheckErrorLogs(e,t,r){const a=JSON.stringify(e.getApiPostion().line),o=`API check error of [${e.getErrorType()}]: ${e.getErrorInfo()}`,s=new n.ApiResultSimpleInfo;s.setID(e.getErrorID()).setLevel(e.getErrorLevel()).setLocation(a).setFilePath(e.getFilePath()).setMessage(o).setApiText(e.getApiText()).setApiName(e.getApiName()).setApiType(e.getApiType()).setHierarchicalRelations(e.getHierarchicalRelations()).setParentModuleName(e.getParentModuleName());const c=new n.ApiResultInfo;c.setErrorType(e.getErrorType()).setLocation(e.getFilePath().slice(e.getFilePath().indexOf("api"),e.getFilePath().length)+`(line: ${a})`).setApiType(e.getApiType()).setMessage(o).setVersion(e.getSinceNumber()).setLevel(e.getErrorLevel()).setApiName(e.getApiName()).setApiFullText(e.getApiText()).setBaseName(e.getFilePath().slice(e.getFilePath().lastIndexOf("\\")+1,e.getFilePath().length)).setHierarchicalRelations(e.getHierarchicalRelations()).setParentModuleName(e.getParentModuleName()).setDefectType("");let l=e.getErrorInfo()===i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_LOST_LABEL,["kit"]),u=e.getErrorInfo()===i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_LOST_LABEL,["file"]),d=[],p=[];t.forEach((t=>{const r=t.getMessage().replace(/API check error of \[.*\]: /g,""),a=t.getFilePath()+r;a===e.getFilePath()+i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_LOST_LABEL,["kit"])&&d.push(t.getFilePath()+t.getMessage()),a===e.getFilePath()+i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_LOST_LABEL,["file"])&&p.push(t.getFilePath()+t.getMessage())})),l&&0!==d.length||u&&0!==p.length||(t.push(s),r.push(c))}}},37798:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.EventMethodChecker=void 0;const i=n(r(58843)),a=r(8136),o=r(77002),s=r(44791),c=r(93333),l=r(30871),u=r(31575),d=r(93333),p=r(58010),f=r(98768),m=r(13930);t.EventMethodChecker=class{constructor(e){this.apiData=e}getAllEventMethod(){const e=l.Parser.getAllBasicApi(this.apiData);let t=[];m.Check.getHasJsdocApiInfos(e,t);const r=[];t.forEach((e=>{e.apiType===s.ApiType.METHOD&&e.getIsJoinType()&&r.push(e)}));return this.getEventMethodDataMap(r)}checkEventMethod(e){e.forEach((e=>{const t=e.onEvents.length>0?e.onEvents:[],r=t.length>0?t[0].jsDocInfos[0].since:"-1",n=e.offEvents.length>0?e.offEvents:[],a=n.length>0?n[0].jsDocInfos[0].since:"-1",s=0===e.onEvents.length&&0!==e.offEvents.length&&a===JSON.stringify(f.ApiCheckVersion),l=0!==e.onEvents.length&&0===e.offEvents.length&&r===JSON.stringify(f.ApiCheckVersion);if(s||l){const t=e.onEvents.concat(e.offEvents)[0],r=c.CommonFunctions.createErrorInfo(o.ErrorMessage.ERROR_EVENT_ON_AND_OFF_PAIR,[]),n=new o.ErrorBaseInfo;n.setErrorID(o.ErrorID.API_PAIR_ERRORS_ID).setErrorLevel(o.ErrorLevel.MIDDLE).setErrorType(o.ErrorType.API_PAIR_ERRORS).setLogType(o.LogType.LOG_JSDOC).setErrorInfo(r);const i=c.CommonFunctions.getErrorInfo(t,void 0,m.currentFilePath,n);u.AddErrorLogs.addAPICheckErrorLogs(i,d.compositiveResult,d.compositiveLocalResult)}let g=0,_=0;for(let t=0;t<e.offEvents.length;t++){const r=e.offEvents[t];if(r.getParams().length<2)continue;const n=this.collectEventCallback(r,g,_);g=n.callbackNumber,_=n.requiredCallbackNumber}if(e.offEvents.length>0&&a===JSON.stringify(f.ApiCheckVersion)&&(0!==g&&g===e.offEvents.length&&g===_||0===g&&0!==e.offEvents.length)){const t=e.offEvents[0],r=c.CommonFunctions.createErrorInfo(o.ErrorMessage.ERROR_EVENT_CALLBACK_OPTIONAL,[]),n=new o.ErrorBaseInfo;n.setErrorID(o.ErrorID.PARAMETER_ERRORS_ID).setErrorLevel(o.ErrorLevel.MIDDLE).setErrorType(o.ErrorType.PARAMETER_ERRORS).setLogType(o.LogType.LOG_JSDOC).setErrorInfo(r);const i=c.CommonFunctions.getErrorInfo(t,void 0,m.currentFilePath,n);u.AddErrorLogs.addAPICheckErrorLogs(i,d.compositiveResult,d.compositiveLocalResult)}const h=e.onEvents.concat(e.offEvents).concat(e.emitEvents).concat(e.onceEvents);for(let e=0;e<h.length;e++){const t=h[e];if(!this.checkVersionNeedCheck(t))continue;const r=t.getParams(),n=t.jsDocInfos[0].since;if(r.length<1&&n===JSON.stringify(f.ApiCheckVersion)){const e=c.CommonFunctions.createErrorInfo(o.ErrorMessage.ERROR_EVENT_WITHOUT_PARAMETER,[]),r=new o.ErrorBaseInfo;r.setErrorID(o.ErrorID.PARAMETER_ERRORS_ID).setErrorLevel(o.ErrorLevel.MIDDLE).setErrorType(o.ErrorType.PARAMETER_ERRORS).setLogType(o.LogType.LOG_JSDOC).setErrorInfo(e);const n=c.CommonFunctions.getErrorInfo(t,void 0,m.currentFilePath,r);u.AddErrorLogs.addAPICheckErrorLogs(n,d.compositiveResult,d.compositiveLocalResult);continue}const a=r.length?r[0]:void 0;if(void 0!==a&&n===JSON.stringify(f.ApiCheckVersion))if(a.getParamType()===i.default.SyntaxKind.LiteralType){const e=a.getType()[0].replace(/\'/g,"");if(""===e){const e=c.CommonFunctions.createErrorInfo(o.ErrorMessage.ERROR_EVENT_NAME_NULL,[a.getApiName()]),r=new o.ErrorBaseInfo;r.setErrorID(o.ErrorID.PARAMETER_ERRORS_ID).setErrorLevel(o.ErrorLevel.MIDDLE).setErrorType(o.ErrorType.PARAMETER_ERRORS).setLogType(o.LogType.LOG_JSDOC).setErrorInfo(e);const n=c.CommonFunctions.getErrorInfo(t,void 0,m.currentFilePath,r);u.AddErrorLogs.addAPICheckErrorLogs(n,d.compositiveResult,d.compositiveLocalResult)}else if(!p.CheckHump.checkSmallHump(e)){const r=c.CommonFunctions.createErrorInfo(o.ErrorMessage.ERROR_EVENT_NAME_SMALL_HUMP,[e]),n=new o.ErrorBaseInfo;n.setErrorID(o.ErrorID.PARAMETER_ERRORS_ID).setErrorLevel(o.ErrorLevel.MIDDLE).setErrorType(o.ErrorType.PARAMETER_ERRORS).setLogType(o.LogType.LOG_JSDOC).setErrorInfo(r);const i=c.CommonFunctions.getErrorInfo(t,void 0,m.currentFilePath,n);u.AddErrorLogs.addAPICheckErrorLogs(i,d.compositiveResult,d.compositiveLocalResult)}}else if(a.getParamType()!==i.default.SyntaxKind.StringKeyword){const e=c.CommonFunctions.createErrorInfo(o.ErrorMessage.ERROR_EVENT_NAME_STRING,[a.getApiName()]),r=new o.ErrorBaseInfo;r.setErrorID(o.ErrorID.PARAMETER_ERRORS_ID).setErrorLevel(o.ErrorLevel.MIDDLE).setErrorType(o.ErrorType.PARAMETER_ERRORS).setLogType(o.LogType.LOG_JSDOC).setErrorInfo(e);const n=c.CommonFunctions.getErrorInfo(t,void 0,m.currentFilePath,r);u.AddErrorLogs.addAPICheckErrorLogs(n,d.compositiveResult,d.compositiveLocalResult)}}}))}checkVersionNeedCheck(e){const t=c.CommonFunctions.getSinceVersion(e.getCurrentVersion());return parseInt(t)>=a.EventConstant.eventMethodCheckVersion}collectEventCallback(e,t,r){const n=e.getParams().slice(-1)[0];if(n.paramType){new Set([i.default.SyntaxKind.NumberKeyword,i.default.SyntaxKind.StringKeyword,i.default.SyntaxKind.BooleanKeyword,i.default.SyntaxKind.UndefinedKeyword,i.default.SyntaxKind.LiteralType]).has(n.paramType)||(t++,n.getIsRequired()&&r++)}return{callbackNumber:t,requiredCallbackNumber:r}}getEventMethodDataMap(e){let t=new Map;return e.forEach((e=>{const r=[...e.hierarchicalRelations];r.pop();const n=[...r,this.getEventName(e.apiName)].join("/");let i={onEvents:[],offEvents:[],emitEvents:[],onceEvents:[]};t.get(n)&&(i=t.get(n)),t.set(n,this.collectEventMethod(i,e))})),t}collectEventMethod(e,t){switch(this.getEventType(t.apiName)){case"on":e.onEvents.push(t);break;case"off":e.offEvents.push(t);break;case"emit":e.emitEvents.push(t);break;case"once":e.onceEvents.push(t)}return e}getEventName(e){return e.split(/\_/)[1]}getEventType(e){return e.split(/\_/)[0]}}},95769:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ForbiddenWordsCheck=void 0;const n=r(77002),i=r(93333),a=r(93333);t.ForbiddenWordsCheck=class{static forbiddenWordsCheck(e){const t=["this","unknown"],r={state:!0,errorInfo:""},o=e.getDefinedText(),s=e.getJsDocInfos(),c=i.CommonFunctions.getSinceVersion(s[0].getSince()),l=i.CommonFunctions.getCheckApiVersion(),u=/\s{2,}/g;let d=o.replace(/(\/\*|\*\/|\*)|\\n|\\r/g," ");return a.punctuationMarkSet.forEach((e=>{const t=new RegExp(e,"g");t.test(d)&&(d=d.replace(t," ").replace(u," "))})),d.split(/\s/g).forEach((a=>{c===l&&(t.includes(a)||"any"===a&&-1!==e.getFilePath().indexOf(".d.ets"))&&(r.state=!1,r.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ILLEGAL_USE_ANY,[a]))})),r}}},23978:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiNamingCheck=void 0;const n=r(77002),i=r(93333),a=r(56795),o=r(93460),s=r(289);class c{static namingCheck(e){const t={state:!0,errorInfo:""},r=e.getJsDocInfos(),n=i.CommonFunctions.getSinceVersion(r[0].getSince()),o=i.CommonFunctions.getCheckApiVersion(),s=e.getFilePath().toLowerCase(),l=/\s{2,}/g;let u=e.getDefinedText().replace(/(\/\*|\*\/|\*)|\n|\r/g," ");i.punctuationMarkSet.forEach((e=>{const t=new RegExp(e,"g");t.test(u)&&(u=u.replace(t," ").replace(l," "))}));let d=u.split(/\s/g),p=[];return d.forEach((e=>{a.WordsCheck.splitComplexWords(e,p)})),p.forEach((r=>{n===o&&(c.checkApiNamingWords(r,t),c.checkApiNamingScenario(s,t,e))})),t}static checkApiNamingWords(e,t){const r=c.getlowercaseNamingMap();for(const[a,o]of r){const r=e.indexOf(a);if(-1===r)continue;const s=o.ignore.map((e=>e.toLowerCase())),l=e.substring(r,r+a.length);if(0===s.length){t.state=!1,t.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_NAMING,[e,l,o.suggestion]);break}!1===c.checkIgnoreWord(s,e)&&(t.state=!1,t.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_NAMING,[e,l,o.suggestion]))}}static checkApiNamingScenario(e,t,r){const a=c.getlowercaseNamingScenarioMap();for(const[o,s]of a){-1===e.indexOf(o)||c.isInAllowedFiles(s.files,r.getFilePath())||(t.state=!1,t.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_SCENARIO,[e,o,r.getFilePath()]))}}static getlowercaseNamingMap(){const e=new Map;for(const t of o){const r=t.badWord.toLowerCase(),n=t;e.set(r,n)}return e}static checkIgnoreWord(e,t){let r=!1;for(let n=0;n<e.length;n++)if(e[n]&&-1!==t.indexOf(e[n])){r=!0;break}return r}static getlowercaseNamingScenarioMap(){const e=new Map;for(const t of s){const r=t.word.toLowerCase(),n=t;e.set(r,n)}return e}static isInAllowedFiles(e,t){for(const r of e){const e=new RegExp(r);if(e.test(t),e.test(t))return!0}return!1}}t.ApiNamingCheck=c},53438:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagInheritCheck=void 0;const n=r(77002),i=r(93333),a=r(44791);class o{static tagInheritCheck(e){const t=[],r=e.getLastJsDocInfo();if(void 0===r)return t;const n=r.tags,i=[];if(void 0===n)return t;n.forEach((e=>{i.push(e.tag)}));let s=e.getParentApi();return a.containerApiTypes.has(s.getApiType())&&o.checkParentJsdoc(s,i,t),t}static checkParentJsdoc(e,t,r){if(void 0===e||!a.containerApiTypes.has(e.getApiType()))return!0;const s=e,c=s.getLastJsDocInfo()?.tags,l={state:!0,errorInfo:""};if(void 0===c)return!0;let u="";const d=c.some((e=>(u=e.tag,i.inheritTagArr.includes(e.tag)&&!t.includes(e.tag)))),p=d?{state:!1,errorInfo:i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_INFO_INHERIT,[u.toLocaleLowerCase()])}:l,f=[];c.forEach((e=>{f.push(e.tag)}));const m=t.some((e=>(u=e,i.followTagArr.includes(e)&&!f.includes(e)))),g=m?{state:!1,errorInfo:i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_INFO_FOLLOW,[u])}:l;if(d||m)return r.push(...d?m?[g,p]:[p]:[g]),!1;const _=s.getParentApi();return o.checkParentJsdoc(_,t,r)}}t.TagInheritCheck=o},18e3:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LegalityCheck=void 0;const n=r(44791),i=r(93333),a=r(77002),o=r(93333);class s{static apiLegalityCheck(e,t){const r=[];s.checkSystemapiAtomicservice(t,r);const c=e.getNode(),l=i.apiLegalityCheckTypeMap.get(c.kind),u=new Set(l),d=s.getIllegalTagsArray(l);let p="",f="";if(e.getApiType()!==n.ApiType.CLASS&&e.getApiType()!==n.ApiType.INTERFACE||(p=o.CommonFunctions.getExtendsApiValue(e),f=o.CommonFunctions.getImplementsApiValue(e)),""===p&&(u.delete("extends"),d.push("extends")),""===f&&(u.delete("implements"),d.push("implements")),e.getApiType()===n.ApiType.PROPERTY&&(e.getIsReadOnly()||(u.delete("readonly"),d.push("readonly"))),!Array.isArray(l))return r;const m=t.tags,g=[],_=[];if(void 0===m){const e={state:!1,errorInfo:o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_LOST_LABEL,["since"])+o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_LOST_LABEL,["syscap"])};return r.push(e),r}const h=[];if(m.forEach((e=>{h.push(e.tag)})),h.includes("deprecated"))return r;let y=0,v=e.getApiType()===n.ApiType.METHOD?e.getParams().length:0;return v=e.getApiType()===n.ApiType.TYPE_ALIAS?e.getParamInfos().length:v,m.forEach((i=>{g.push(i.tag),"throws"===i.tag&&_.push(i.name),y="param"===i.tag?y+1:y;const s="useinstead"===i.tag&&"-1"!==t.deprecatedVersion;if(u.delete("param"),u.has(i.tag)&&u.delete(i.tag),e.getApiType()!==n.ApiType.PROPERTY&&e.getApiType()!==n.ApiType.DECLARE_CONST||(u.delete("constant"),d.push("constant")),e.getApiType()!==n.ApiType.INTERFACE||"typedef"!==i.tag&&"interface"!==i.tag||(u.delete("typedef"),u.delete("interface")),e.getApiType()===n.ApiType.TYPE_ALIAS&&e.getIsExport()&&u.delete("typedef"),(e.getApiType()===n.ApiType.METHOD&&0===e.getReturnValue().length||e.getApiType()===n.ApiType.TYPE_ALIAS&&("void"===e.getReturnType()||!e.getTypeIsFunction()))&&(u.delete("returns"),d.push("returns")),d.includes(i.tag)&&("useinstead"!==i.tag||!s)){const e={state:!1,errorInfo:o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_USE,[i.tag])};r.push(e)}})),e.getApiType()===n.ApiType.METHOD&&s.checkThrowsCode(_,g,v,r),s.paramLegalityCheck(y,v,r),u.forEach((e=>{if(!o.conditionalOptionalTags.includes(e)){const t={state:!1,errorInfo:o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_LOST_LABEL,[e])};r.push(t)}})),r}static paramLegalityCheck(e,t,r){if(e>t){const n={state:!1,errorInfo:o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_MORELABEL,[JSON.stringify(e-t),"param"])};r.push(n)}else if(e<t){const e={state:!1,errorInfo:o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_LOST_LABEL,["param"])};r.push(e)}}static checkThrowsCode(e,t,r,n){const i={state:!0,errorInfo:""},s={state:!0,errorInfo:""},c={state:!0,errorInfo:""},l={state:!0,errorInfo:""},u=t.includes(a.ParticularErrorCode.ERROR_PERMISSION),d=t.includes(a.ParticularErrorCode.ERROR_SYSTEMAPI),p=e.includes(a.ParticularErrorCode.ERROR_CODE_201),f=e.includes(a.ParticularErrorCode.ERROR_CODE_202),m=e.includes(a.ParticularErrorCode.ERROR_CODE_401);u!==p&&(i.state=!1,i.errorInfo=o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_LOST_LABEL,[u?"throws 201":a.ParticularErrorCode.ERROR_PERMISSION])),d!==f&&(s.state=!1,s.errorInfo=o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_LOST_LABEL,[d?"throws 202":a.ParticularErrorCode.ERROR_SYSTEMAPI])),m&&0===r&&(c.state=!1,c.errorInfo=o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_USE,["throws 401"]));const g=e.sort();for(let e=0;e<g.length;e++)g[e]===g[e+1]&&(l.state=!1,l.errorInfo=o.CommonFunctions.createErrorInfo(a.ErrorMessage.ERROR_REPEATLABEL,["throws"]));n.push(i,s,c,l)}static getIllegalTagsArray(e){const t=[];return i.tagsArrayOfOrder.forEach((r=>{(i.optionalTags.includes(r)||Array.isArray(e))&&(i.optionalTags.includes(r)||e.includes(r))||t.push(r)})),t}static checkSystemapiAtomicservice(e,t){const r={state:!0,errorInfo:""},n=[];e.tags?.forEach((e=>{n.push(e.tag)}));const i=n.includes("systemapi"),o=n.includes("atomicservice");i&&o&&(r.state=!1,r.errorInfo=a.ErrorMessage.ERROR_ERROR_SYSTEMAPI_ATOMICSERVICE),t.push(r)}}t.LegalityCheck=s},6300:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagNameCheck=void 0;const n=r(93333),i=r(77002);t.TagNameCheck=class{static tagNameCheck(e){const t={state:!0,errorInfo:""},r=n.tagsArrayOfOrder.concat(n.officialTagArr),a=e.tags;return void 0===a||a.forEach((e=>{r.includes(e.tag)||(t.state=!1,t.errorInfo=n.CommonFunctions.createErrorInfo(i.ErrorMessage.ERROR_LABELNAME,[e.tag]))})),t}}},95721:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OrderCheck=void 0;const n=r(77002),i=r(93333);class a{static orderCheck(e,t){const r={state:!0,errorInfo:""},o=t.tags;if(void 0===o)return r;const s=[];if(o.forEach((e=>{s.push(e.tag)})),s.includes("deprecated"))return r;for(let e=0;e<o.length;e++)if(e+1<o.length){const t=i.tagsArrayOfOrder.indexOf(o[e].tag),s=i.tagsArrayOfOrder.indexOf(o[e+1].tag),c=i.CommonFunctions.isOfficialTag(o[e].tag);if("form"!==o[e].tag&&"form"!==o[e+1].tag&&(c&&s>-1||t>s&&s>-1)){r.state=!1,r.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_ORDER,[o[e].tag]);break}"form"===o[e].tag&&(r.state=a.formOrderCheck(o,e,t,s),r.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_ORDER,[o[e].tag]))}return r}static formOrderCheck(e,t,r,n){const a=t-1>-1?i.tagsArrayOfOrder.indexOf(e[t-1].tag):0,o=[a,r],s=[a,i.tagsArrayOfOrder.lastIndexOf(e[t].tag)];return n>-1&&(o.push(n),s.push(n)),!(!i.CommonFunctions.isAscending(o)&&!i.CommonFunctions.isAscending(s))}}t.OrderCheck=a},36944:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagRepeatCheck=void 0;const n=r(77002),i=r(93333);t.TagRepeatCheck=class{static tagRepeatCheck(e){const t=[],r=["throws","param"],a=[];if(e.tags?.forEach((e=>{a.push(e.tag)})),a.includes("deprecated"))return t;const o=a.filter((e=>a.indexOf(e)!==a.lastIndexOf(e)));return new Set(o).forEach((e=>{if(!r.includes(e)){const r={state:!1,errorInfo:i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_REPEATLABEL,[e])};t.push(r)}})),t}}},28912:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagValueCheck=void 0;const n=r(77002),i=r(93333),a=r(44791),o=r(8136),s=r(11663),c=r(85311),l=r(2543),u=r(98768);class d{static tagValueCheck(e,t){const r=[],n=t.tags;let i=0,a=-1;if(void 0===n)return r;const o=[];n.forEach((e=>{o.push(e.tag)}));const s=o.includes("deprecated");return n.forEach((t=>{let o={state:!0,errorInfo:""};switch(t.tag){case"since":o=d.sinceTagValueCheck(e,t);break;case"extends":case"implements":o=s?o:d.extendsTagValueCheck(e,t);break;case"enum":o=s?o:d.enumTagValueCheck(t);break;case"returns":o=s?o:d.returnsTagValueCheck(e,t);break;case"namespace":case"typedef":case"struct":o=s?o:d.outerTagValueCheck(e,t);break;case"type":o=s?o:d.typeTagValueCheck(e,t);break;case"syscap":o=d.syscapTagValueCheck(t);break;case"default":o=s?o:d.defaultTagValueCheck(t);break;case"deprecated":o=d.deprecatedTagValueCheck(t);break;case"permission":o=s?o:d.permissionTagValueCheck(t);break;case"throws":"-1"===e.getLastJsDocInfo()?.deprecatedVersion&&(i+=1,o=s?o:d.throwsTagValueCheck(t,i,n));break;case"param":a+=1,o=s?o:d.paramTagValueCheck(e,t,a);break;case"useinstead":o=d.useinsteadTagValueCheck(t)}o.state||r.push(o)})),r}static sinceTagValueCheck(e,t){const r={state:!0,errorInfo:""},a=i.CommonFunctions.getSinceVersion(t.name),o=/^\d+$/.test(a),s=[];e.getJsDocInfos().forEach((e=>{s.push(e.since)}));const c=Array.from(new Set(s));return o?l.toNumber(a)>l.toNumber(u.ApiMaxVersion)&&(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_SINCE_NUMBER):(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_SINCE),s.length!==c.length&&(r.state=!1,r.errorInfo=r.errorInfo+n.ErrorMessage.ERROR_INFO_VALUE_SINCE_JSDOC),r}static extendsTagValueCheck(e,t){const r={state:!0,errorInfo:""};let o=t.name+t.description;if(e.getApiType()===a.ApiType.CLASS||e.getApiType()===a.ApiType.INTERFACE){const a=i.CommonFunctions.getExtendsApiValue(e),s=i.CommonFunctions.getImplementsApiValue(e);"extends"===t.tag&&o.replace(/\s/g,"")!==a&&(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_EXTENDS),"implements"===t.tag&&o!==s&&(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_IMPLEMENTS)}return r}static enumTagValueCheck(e){const t={state:!0,errorInfo:""};return-1===["string","number"].indexOf(e.type)&&(t.state=!1,t.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_ENUM),t}static returnsTagValueCheck(e,t){const r={state:!0,errorInfo:""},o=t.type.replace(/\s/g,"");let s=[];if(![a.ApiType.METHOD,a.ApiType.TYPE_ALIAS].includes(e.getApiType()))return r;const c=i.CommonFunctions.judgeSpecialCase(e.returnValueType);return e.getApiType()===a.ApiType.TYPE_ALIAS?s.push(e.getReturnType()):s=c.length>0?c:e.getReturnValue(),0===s.length?(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_RETURNS):o!==s.join("|").replace(/\s/g,"")&&(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_RETURNS),r}static outerTagValueCheck(e,t){const r={state:!0,errorInfo:""};let i=t.name,o=t.type,s=e.getApiName();e.getDefinedText();if("namespace"===t.tag&&i!==s&&(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_NAMESPACE),"typedef"===t.tag){if(e.getApiType()===a.ApiType.TYPE_ALIAS){const t=e.getType().join("|").replace(/\s/g,""),r=e.getTypeIsFunction(),n=e.getTypeName()===a.TypeAliasType.OBJECT_TYPE;s=r?"function":n?"object":t}else{const t=e.getGenericInfo();if(t.length>0){s=s+"<"+t.map((e=>e.getGenericContent())).join(",")+">"}}"Interface"===e.getApiType()&&i!==s?(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_TYPEDEF):e.getApiType()!==a.ApiType.TYPE_ALIAS||e.getIsExport()||o.replace(/\s/g,"")===s||(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_TYPEDEF)}return"struct"===t.tag&&o!==s&&(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_STRUCT),r}static typeTagValueCheck(e,t){const r={state:!0,errorInfo:""};if(e.getApiType()!==a.ApiType.PROPERTY)return r;let o=t.type.replace(/\s/g,""),s=[];const c=i.CommonFunctions.judgeSpecialCase(e.typeKind);s=c.length>0?c:e.type;let l=s.join("|").replace(/\s/g,"");const u=!e.getIsRequired();return u&&1===s.length?l="?"+l:u&&s.length>1&&(l="?("+l+")"),o.replace(/\s/g,"")!==l.replace(/\s/g,"")&&(r.state=!1,r.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_TYPE),r}static syscapTagValueCheck(e){const t={state:!0,errorInfo:""},r=s.SystemCapability,i=e.name;return r.includes(i)||(t.state=!1,t.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_SYSCAP),t}static defaultTagValueCheck(e){const t={state:!0,errorInfo:""};return 0===(e.name+e.type).length&&(t.state=!1,t.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_DEFAULT),t}static deprecatedTagValueCheck(e){const t={state:!0,errorInfo:""},r=e.name,a=i.CommonFunctions.getSinceVersion(e.description),o=/^\d+$/.test(a);return"since"===r&&o||(t.state=!1,t.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_DEPRECATED),t}static permissionTagValueCheck(e){const t={state:!0,errorInfo:""},r=c.module.definePermissions,i=[];r.forEach((e=>{i.push(e.name)}));return(e.name+e.description).replace(/(\s|\(|\))/g,"").replace(/(or|and)/g,"$").split("$").forEach((e=>{i.includes(e)||(t.state=!1,t.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_PERMISSION)})),t}static throwsTagValueCheck(e,t,r){const a={state:!0,errorInfo:""},o=e.type,s=e.name,c=/^\d+$/.test(s);if("BusinessError"!==o&&(a.state=!1,a.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_INFO_VALUE1_THROWS,[JSON.stringify(t)])),c){if("401"===s){const t=e.description,r=t.indexOf(i.throwsTagDescriptionArr[0]),o=t.indexOf(i.throwsTagDescriptionArr[1]),s=t.indexOf(i.throwsTagDescriptionArr[2]),c=t.indexOf(i.throwsTagDescriptionArr[3]),l=-1!==o||-1!==s||-1!==c,u=new RegExp(`${i.throwsTagDescriptionArr[0]}|${i.throwsTagDescriptionArr[1]}|${i.throwsTagDescriptionArr[2]}|${i.throwsTagDescriptionArr[3]}|<br>`,"g"),d=/[A-Za-z]+/.test(t.replace(u,""));(-1===r||r>1||!l||d)&&(a.state=!1,a.errorInfo=a.errorInfo+n.ErrorMessage.ERROR_INFO_VALUE3_THROWS)}}else a.state=!1,a.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_INFO_VALUE2_THROWS,[JSON.stringify(t)]);const l=[];return r?.forEach((e=>{l.push(e.tag)})),a}static paramTagValueCheck(e,t,r){const o={state:!0,errorInfo:""};if(![a.ApiType.METHOD,a.ApiType.TYPE_ALIAS].includes(e.getApiType()))return o;const s=t.type.replace(/\s/g,""),c=t.name;let l="",u=[];if(e.getApiType()===a.ApiType.TYPE_ALIAS){const t=e.getParamInfos();l=t.length>r?t[r].getApiName():"",u=t.length>r?t[r].getType():[""]}else{const t=e.getParams();l=t[r]?.getApiName();const n=t[r]?i.CommonFunctions.judgeSpecialCase(t[r].paramType):[];u=n.length>0?n:t[r]?.getType()}return c!==l&&(o.state=!1,o.errorInfo=i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_INFO_VALUE_PARAM,[JSON.stringify(r+1),JSON.stringify(r+1)])),void 0!==u&&s===u.join("|").replace(/\s/g,"")||(o.state=!1,o.errorInfo=o.errorInfo+i.CommonFunctions.createErrorInfo(n.ErrorMessage.ERROR_INFO_TYPE_PARAM,[JSON.stringify(r+1),JSON.stringify(r+1)])),o}static checkModule(e){return/^[A-Za-z0-9_]+\b(\.[A-Za-z0-9_]+\b)*$/.test(e)||/^[A-Za-z0-9_]+\b(\.[A-Za-z0-9_]+\b)*\#[A-Za-z0-9_]+\b$/.test(e)||/^[A-Za-z0-9_]+\b(\.[A-Za-z0-9_]+\b)*\#event:[A-Za-z0-9_]+\b$/.test(e)}static splitUseinsteadValue(e,t){e&&""!==e||(t.state=!1,t.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_USEINSTEAD);const r=e.split(/\//g);if(1===r.length)t.state=-1===r[0].indexOf(o.PunctuationMark.LEFT_BRACKET)&&-1===r[0].indexOf(o.PunctuationMark.RIGHT_BRACKET)&&d.checkModule(r[0]);else if(2===r.length){const e=r[0].split(".");if(1===e.length)t.state=t.state&&/^[A-Za-z0-9_]+\b$/.test(e[0])&&d.checkModule(r[1]);else{let n=!0;for(let t=0;t<e.length;t++)n=n&&"ohos"===e[0]&&/^[A-Za-z0-9_]+\b$/.test(e[t]);n&&(d.checkModule(r[1])||-1!==r[1].indexOf(o.PunctuationMark.LEFT_BRACKET)||-1!==r[1].indexOf(o.PunctuationMark.RIGHT_BRACKET))||(t.state=!1)}}else t.state=!1;t.state||(t.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_USEINSTEAD)}static useinsteadTagValueCheck(e){let t={state:!0,errorInfo:""};const r=e.name;return""===r?(t.state=!1,t.errorInfo=n.ErrorMessage.ERROR_INFO_VALUE_USEINSTEAD):d.splitUseinsteadValue(r,t),t}}t.TagValueCheck=d},56795:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WordsCheck=void 0;const n=r(44791),i=r(77002),a=r(93333),o=r(31575),s=r(93333),c=r(54732),l=r(77596),u=new Set([...c.dictionariesArr,...l.dictionariesSupplementaryArr,...a.tagsArrayOfOrder,...a.officialTagArr]);class d{static wordCheckResultsProcessing(e){e.forEach((e=>{if(e.getApiType()===n.ApiType.SOURCE_FILE)return;let t=e.getJsDocText()+e.getDefinedText();if(e.getApiType()===n.ApiType.IMPORT){const r=e.getImportValues(),n=[];r.forEach((e=>{n.push(e.key)})),t=n.join("|")}d.wordsCheck(t,e)}))}static wordsCheck(e,t){const r=/\s{2,}/g;let n=e.replace(/(\/\*|\*\/|\*)|\n|\r/g," ");s.punctuationMarkSet.forEach((e=>{const t=new RegExp(e,"g");t.test(n)&&(n=n.replace(t," ").replace(r," "))}));let c=n.split(/\s/g);const l=[];c.forEach((e=>{const r=[];d.splitComplexWords(e,r),r.forEach((r=>{if(!d.checkBaseWord(r.toLowerCase())){l.push(r);const n={state:!1,errorInfo:a.CommonFunctions.createErrorInfo(i.ErrorMessage.ERROR_WORD,[e,r])},c=new i.ErrorBaseInfo;c.setErrorID(i.ErrorID.MISSPELL_WORDS_ID).setErrorLevel(i.ErrorLevel.MIDDLE).setErrorType(i.ErrorType.MISSPELL_WORDS).setLogType(i.LogType.LOG_JSDOC).setErrorInfo(n.errorInfo);const u=a.CommonFunctions.getErrorInfo(t,void 0,t.getFileAbsolutePath(),c);o.AddErrorLogs.addAPICheckErrorLogs(u,s.compositiveResult,s.compositiveLocalResult)}}))}))}static hasUnderline(e){return/(?<!^)\_/g.test(e)}static splitComplexWords(e,t){let r=[];d.hasUnderline(e)?r=e.split(/(?<!^)\_/g):/(?<!^)(?=[A-Z])/g.test(e)?r=e.split(/(?<!^)(?=[A-Z])/g):r.push(e),r.forEach((e=>{/[0-9]/g.test(e)?t.concat(e.split(/0-9/g)):t.push(e)}))}static checkBaseWord(e){return!/^[a-z][0-9]+$/g.test(e)&&!(/^[A-Za-z]+/g.test(e)&&!u.has(e.toLowerCase()))}}t.WordsCheck=d},22127:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiCountHelper=void 0;const n=r(85057),i=r(80879);t.ApiCountHelper=class{static countApi(e){const t=[],r=i.FunctionUtils.readKitFile(),a=r.filePathSet,o=r.subsystemMap,s=r.kitNameMap;return a.forEach((r=>{let i=0,a="",c=new n.ApiCountInfo;e.forEach((e=>{r===e.getFilePath().replace(/\\/g,"/")&&(i++,a=e.getKitInfo())})),i>0&&(c.setFilePath(`api/${r}`).setApiNumber(i).setKitName(""===a?s.get(r):a).setsubSystem(o.get(r)),t.push(c))})),t}}},12311:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DiffProcessorHelper=void 0;const i=r(44791),a=r(37583),o=r(40149),s=r(87960),c=r(38572),l=r(93333),u=r(8136),d=n(r(58843));!function(e){e.permissionsCharMap=new Map([["and",{splitchar:"and",transferchar:"&"}],["or",{splitchar:"or",transferchar:"|"}]]),e.typeCharMap=new Map([["and",{splitchar:"&",transferchar:"&"}],["or",{splitchar:"|",transferchar:"|"}]]);class t{static diffJsDocInfo(r,n,a,o,s){if(!(r instanceof i.ApiInfo&&n instanceof i.ApiInfo))return;const c=r.getLastJsDocInfo(),l=n.getLastJsDocInfo();t.diffSinceVersion(r,n,a);const u=t.diffErrorCodes(c,l);u?.forEach((t=>{const i=e.wrapDiffInfo(r,n,t);a.push(i)}));for(let t=0;t<e.jsDocDiffProcessors.length;t++){const i=(0,e.jsDocDiffProcessors[t])(c,l,o,s);if(!i)continue;const u=e.wrapDiffInfo(r,n,i);a.push(u)}}static getFirstSinceVersion(e){let t="";for(let r=0;r<e.length;r++){const n=e[r];if("-1"!==n.getSince())return t=n.getSince(),t}return t}static diffSinceVersion(t,r,n){const i=new o.DiffTypeInfo,a=t.getJsDocInfos()[0],s=r.getJsDocInfos()[0],c=a?a.getSince():"-1",l=s?s.getSince():"-1";if(i.setStatusCode(o.ApiStatusCode.VERSION_CHNAGES).setOldMessage(c).setNewMessage(l),c===l)return;if("-1"===c){i.setDiffType(o.ApiDiffType.SINCE_VERSION_NA_TO_HAVE);const a=e.wrapDiffInfo(t,r,i);return void n.push(a)}if("-1"===l){i.setDiffType(o.ApiDiffType.SINCE_VERSION_HAVE_TO_NA);const a=e.wrapDiffInfo(t,r,i);return void n.push(a)}i.setDiffType(o.ApiDiffType.SINCE_VERSION_A_TO_B);const u=e.wrapDiffInfo(t,r,i);n.push(u)}static diffIsSystemApi(e,t){const r=new o.DiffTypeInfo,n=!!e&&e.getIsSystemApi(),i=!!t&&t.getIsSystemApi();if(r.setStatusCode(o.ApiStatusCode.SYSTEM_API_CHNAGES).setOldMessage(s.StringUtils.transformBooleanToTag(n,a.Comment.JsDocTag.SYSTEM_API)).setNewMessage(s.StringUtils.transformBooleanToTag(i,a.Comment.JsDocTag.SYSTEM_API)),i!==n)return i?r.setDiffType(o.ApiDiffType.PUBLIC_TO_SYSTEM):r.setDiffType(o.ApiDiffType.SYSTEM_TO_PUBLIC)}static diffModelLimitation(e,t){const r=new o.DiffTypeInfo,n=new Map([["_stagemodelonly",o.ApiDiffType.NA_TO_STAGE],["stagemodelonly_",o.ApiDiffType.STAGE_TO_NA],["_famodelonly",o.ApiDiffType.NA_TO_FA],["famodelonly_",o.ApiDiffType.FA_TO_NA],["famodelonly_stagemodelonly",o.ApiDiffType.FA_TO_STAGE],["stagemodelonly_famodelonly",o.ApiDiffType.STAGE_TO_FA]]),i=e?e.getModelLimitation().toLowerCase():"",a=t?t.getModelLimitation().toLowerCase():"";if(a===i)return;const s=`${i.toLowerCase()}_${a.toLowerCase()}`,c=n.get(s);return r.setStatusCode(o.ApiStatusCode.MODEL_CHNAGES).setDiffType(c).setOldMessage(i).setNewMessage(a),r}static diffIsForm(e,t){const r=new o.DiffTypeInfo,n=!!e&&e.getIsForm(),i=!!t&&t.getIsForm();if(r.setStatusCode(o.ApiStatusCode.FORM_CHANGED).setOldMessage(s.StringUtils.transformBooleanToTag(n,a.Comment.JsDocTag.FORM)).setNewMessage(s.StringUtils.transformBooleanToTag(i,a.Comment.JsDocTag.FORM)),i!==n)return i?r.setDiffType(o.ApiDiffType.NA_TO_CARD):r.setDiffType(o.ApiDiffType.CARD_TO_NA)}static diffIsCrossPlatForm(e,t){const r=new o.DiffTypeInfo,n=!!e&&e.getIsCrossPlatForm(),i=!!t&&t.getIsCrossPlatForm();if(r.setStatusCode(o.ApiStatusCode.CROSSPLATFORM_CHANGED).setOldMessage(s.StringUtils.transformBooleanToTag(n,a.Comment.JsDocTag.CROSS_PLAT_FORM)).setNewMessage(s.StringUtils.transformBooleanToTag(i,a.Comment.JsDocTag.CROSS_PLAT_FORM)),i!==n)return i?r.setDiffType(o.ApiDiffType.NA_TO_CROSS_PLATFORM):r.setDiffType(o.ApiDiffType.CROSS_PLATFORM_TO_NA)}static diffAtomicService(e,t){const r=new o.DiffTypeInfo,n=!!e&&e.getIsAtomicService(),i=!!t&&t.getIsAtomicService();if(r.setStatusCode(o.ApiStatusCode.ATOMICSERVICE_CHANGE).setOldMessage(s.StringUtils.transformBooleanToTag(n,a.Comment.JsDocTag.ATOMIC_SERVICE)).setNewMessage(s.StringUtils.transformBooleanToTag(i,a.Comment.JsDocTag.ATOMIC_SERVICE)),n!==i)return i?r.setDiffType(o.ApiDiffType.ATOMIC_SERVICE_NA_TO_HAVE):r.setDiffType(o.ApiDiffType.ATOMIC_SERVICE_HAVE_TO_NA)}static diffPermissions(t,r){const n=new o.DiffTypeInfo,i=t?t.getPermission():"",a=r?r.getPermission():"";if(n.setStatusCode(o.ApiStatusCode.PERMISSION_CHANGES).setOldMessage(i).setNewMessage(a),i===a)return;if(""===i)return n.setStatusCode(o.ApiStatusCode.PERMISSION_NEW).setDiffType(o.ApiDiffType.PERMISSION_NA_TO_HAVE);if(""===a)return n.setStatusCode(o.ApiStatusCode.PERMISSION_DELETE).setDiffType(o.ApiDiffType.PERMISSION_HAVE_TO_NA);const s=new c.PermissionsProcessorHelper(e.permissionsCharMap).comparePermissions(i,a);return s.range===c.RangeChange.DOWN?n.setDiffType(o.ApiDiffType.PERMISSION_RANGE_SMALLER):s.range===c.RangeChange.UP?n.setDiffType(o.ApiDiffType.PERMISSION_RANGE_BIGGER):n.setDiffType(o.ApiDiffType.PERMISSION_RANGE_CHANGE)}static diffErrorCodes(e,t){const r=new o.DiffTypeInfo,n=e?e.getErrorCode().sort():[],i=t?t.getErrorCode().sort():[],a=new Set(n),s=new Set(i),c=new Set(i.concat(n)),l=n.toString(),u=i.toString(),d=[];if(r.setStatusCode(o.ApiStatusCode.ERRORCODE_CHANGES).setOldMessage(l).setNewMessage(u),u===l)return;if(0===n.length&&0!==i.length)return d.push(r.setStatusCode(o.ApiStatusCode.NEW_ERRORCODE).setDiffType(o.ApiDiffType.ERROR_CODE_NA_TO_HAVE)),d;const p=[],f=[];if(c.forEach((e=>{a.has(e)||p.push(e),s.has(e)||f.push(e)})),0!==p.length){const e=new o.DiffTypeInfo;e.setOldMessage("NA").setNewMessage(p.join()).setStatusCode(o.ApiStatusCode.NEW_ERRORCODE).setDiffType(o.ApiDiffType.ERROR_CODE_ADD),d.push(e)}if(0!==f.length){const e=new o.DiffTypeInfo;e.setOldMessage(f.join()).setNewMessage("NA").setStatusCode(o.ApiStatusCode.ERRORCODE_DELETE).setDiffType(o.ApiDiffType.ERROR_CODE_REDUCE),d.push(e)}return d}static diffSyscap(e,t){const r=new o.DiffTypeInfo,n=e?e.getSyscap():"",i=t?t.getSyscap():"";if(r.setStatusCode(o.ApiStatusCode.SYSCAP_CHANGES).setOldMessage(n).setNewMessage(i),i!==n)return""===n?r.setDiffType(o.ApiDiffType.SYSCAP_NA_TO_HAVE):""===i?r.setDiffType(o.ApiDiffType.SYSCAP_HAVE_TO_NA):r.setDiffType(o.ApiDiffType.SYSCAP_A_TO_B)}static diffDeprecated(e,t,r,n){const i=new o.DiffTypeInfo,a=e?e.getDeprecatedVersion():"-1",s=t?t.getDeprecatedVersion():"-1";if(i.setStatusCode(o.ApiStatusCode.DEPRECATED_CHNAGES).setOldMessage(a.toString()).setNewMessage(s.toString()),s!==a){if(n){if("-1"===a&&!r)return i.setDiffType(o.ApiDiffType.DEPRECATED_NOT_All);if("-1"===a&&r)return i.setDiffType(o.ApiDiffType.DEPRECATED_NA_TO_HAVE)}else{if("-1"===a)return i.setDiffType(o.ApiDiffType.DEPRECATED_NA_TO_HAVE);if("-1"===s)return i.setDiffType(o.ApiDiffType.DEPRECATED_HAVE_TO_NA)}return"-1"===s?i.setDiffType(o.ApiDiffType.DEPRECATED_HAVE_TO_NA):i.setDiffType(o.ApiDiffType.DEPRECATED_A_TO_B)}}}e.JsDocDiffHelper=t;class r{static diffDecorator(e,t,n){if(!(e instanceof i.ApiInfo&&t instanceof i.ApiInfo))return;const a=r.setDecoratorsMap(e.getDecorators()),o=r.setDecoratorsMap(t.getDecorators());if(0!==o.size)if(0!==a.size)r.diffDecoratorInfo(a,o,e,t,n);else for(const i of o.keys())r.addNewDecoratorsInfo(i,e,t,n),o.delete(i);else for(const i of a.keys())r.addDeleteDecoratorsInfo(i,e,t,n)}static diffDecoratorInfo(e,t,n,i,a){const o=new Set;for(const s of e.keys()){const c=t.get(s),l=e.get(s);c?l&&c.join()===l.join()&&(t.delete(s),o.add(s)):(r.addDeleteDecoratorsInfo(s,n,i,a),o.add(s))}for(const e of t.keys())r.addNewDecoratorsInfo(e,n,i,a);for(const t of e.keys())o.has(t)||r.addDeleteDecoratorsInfo(t,n,i,a)}static setDecoratorsMap(e){const t=new Map;return e?(e.forEach((e=>{const r=e.getExpressionArguments();t.set(e.getExpression(),void 0===r?[]:r)})),t):t}static addDeleteDecoratorsInfo(t,r,n,i){const a=new o.DiffTypeInfo;a.setStatusCode(o.ApiStatusCode.DELETE_DECORATOR).setDiffType(o.ApiDiffType.DELETE_DECORATOR).setOldMessage(t).setNewMessage("");const s=e.wrapDiffInfo(r,n,a);i.push(s)}static addNewDecoratorsInfo(t,r,n,i){const a=new o.DiffTypeInfo;a.setStatusCode(o.ApiStatusCode.NEW_DECORATOR).setDiffType(o.ApiDiffType.NEW_DECORATOR).setOldMessage("").setNewMessage(t);const s=e.wrapDiffInfo(r,n,a);i.push(s)}}e.ApiDecoratorsDiffHelper=r;class n{static diffHistoricalJsDoc(t,r,n){if(!(t instanceof i.ApiInfo&&r instanceof i.ApiInfo))return;const a=l.CommonFunctions.getCheckApiVersion().toString(),s=t.getJsDocText().split("*/"),c=r.getJsDocText().split("*/"),d=new o.DiffTypeInfo;if(t.getCurrentVersion()===a?s.splice(u.NumberConstant.DELETE_CURRENT_JS_DOC):s.splice(-1),r.getCurrentVersion()===a?c.splice(u.NumberConstant.DELETE_CURRENT_JS_DOC):c.splice(-1),s.length===c.length){for(let i=0;i<s.length;i++)if(s[i].replace(/\r\n|\n|\s+/g,"")!==c[i].replace(/\r\n|\n|\s+/g,"")){d.setDiffType(o.ApiDiffType.HISTORICAL_JSDOC_CHANGE);const i=e.wrapDiffInfo(t,r,d);n.push(i)}}else{d.setDiffType(o.ApiDiffType.HISTORICAL_JSDOC_CHANGE);const i=e.wrapDiffInfo(t,r,d);n.push(i)}}static diffHistoricalAPI(t,r,n){const i=l.CommonFunctions.getCheckApiVersion().toString(),a=t.getDefinedText(),s=r.getDefinedText(),c=new o.DiffTypeInfo;if(a!==s&&r.getCurrentVersion()!==i){c.setDiffType(o.ApiDiffType.HISTORICAL_API_CHANGE);const i=e.wrapDiffInfo(t,r,c);n.push(i)}}}e.ApiCheckHelper=n;class p{static diffNodeInfo(t,r,i,a){a&&(n.diffHistoricalJsDoc(t,r,i),n.diffHistoricalAPI(t,r,i));const o=r.getApiType();if(t.getApiType()!==o)return;const s=e.apiNodeDiffMethod.get(o);s&&s(t,r,i)}static diffBaseType(t,r){const n=new o.DiffTypeInfo;if(t===r)return;if(n.setStatusCode(o.ApiStatusCode.TYPE_CHNAGES).setOldMessage(t).setNewMessage(r),""===t)return n.setDiffType(o.ApiDiffType.TYPE_RANGE_CHANGE);if(""===r)return n.setDiffType(o.ApiDiffType.TYPE_RANGE_CHANGE);const i=new c.PermissionsProcessorHelper(e.typeCharMap).comparePermissions(t,r);return i.range===c.RangeChange.DOWN?n.setDiffType(o.ApiDiffType.TYPE_RANGE_SMALLER):i.range===c.RangeChange.UP?n.setDiffType(o.ApiDiffType.TYPE_RANGE_BIGGER):n.setDiffType(o.ApiDiffType.TYPE_RANGE_CHANGE)}static diffMethod(t,r,n){e.methodDiffProcessors.forEach((i=>{const a=i(t,r);if(a)if(a instanceof Array)a.forEach((i=>{const a=e.wrapDiffInfo(t,r,i.setStatusCode(o.ApiStatusCode.FUNCTION_CHANGES));n.push(a)}));else{const i=e.wrapDiffInfo(t,r,a.setStatusCode(o.ApiStatusCode.FUNCTION_CHANGES));n.push(i)}}))}static diffTypeAliasReturnType(e,t){const r=new o.DiffTypeInfo,n=e.getReturnType().split("|"),i=t.getReturnType().split("|"),a=n.toString().replace(/\r|\n|\s+|'|"/g,""),s=i.toString().replace(/\r|\n|\s+|'|"/g,"");if(a!==s)return r.setOldMessage(a).setNewMessage(s),m(i,n)?r.setDiffType(o.ApiDiffType.TYPE_ALIAS_FUNCTION_RETURN_TYPE_ADD):m(n,i)?r.setDiffType(o.ApiDiffType.TYPE_ALIAS_FUNCTION_RETURN_TYPE_REDUCE):r.setDiffType(o.ApiDiffType.TYPE_ALIAS_FUNCTION_RETURN_TYPE_CHANGE)}static diffMethodReturnType(e,t){const r=new o.DiffTypeInfo,n=e.getReturnValue(),i=t.getReturnValue(),a=n.toString().replace(/\r|\n|\s+|'|"|>/g,""),c=i.toString().replace(/\r|\n|\s+|'|"|>/g,"");if(a!==c)return r.setOldMessage(n.toString()).setNewMessage(i.toString()),m(i,n)||s.StringUtils.hasSubstring(c,a)?r.setDiffType(o.ApiDiffType.FUNCTION_RETURN_TYPE_ADD):m(n,i)||s.StringUtils.hasSubstring(a,c)?r.setDiffType(o.ApiDiffType.FUNCTION_RETURN_TYPE_REDUCE):r.setDiffType(o.ApiDiffType.FUNCTION_RETURN_TYPE_CHANGE)}static getDiffMethodTypes(e){return e?{POS_CHANGE:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_POS_CHAHGE,ADD_OPTIONAL_PARAM:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_UNREQUIRED_ADD,ADD_REQUIRED_PARAM:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_REQUIRED_ADD,REDUCE_PARAM:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_REDUCE,PARAM_TYPE_CHANGE:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_TYPE_CHANGE,PARAM_TYPE_ADD:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_TYPE_ADD,PARAM_TYPE_REDUCE:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_TYPE_REDUCE,PARAM_TO_UNREQUIRED:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_TO_UNREQUIRED,PARAM_TO_REQUIRED:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_TO_REQUIRED,PARAM_CHANGE:o.ApiDiffType.TYPE_ALIAS_FUNCTION_PARAM_CHANGE}:{POS_CHANGE:o.ApiDiffType.FUNCTION_PARAM_POS_CHANGE,ADD_OPTIONAL_PARAM:o.ApiDiffType.FUNCTION_PARAM_UNREQUIRED_ADD,ADD_REQUIRED_PARAM:o.ApiDiffType.FUNCTION_PARAM_REQUIRED_ADD,REDUCE_PARAM:o.ApiDiffType.FUNCTION_PARAM_REDUCE,PARAM_TYPE_CHANGE:o.ApiDiffType.FUNCTION_PARAM_TYPE_CHANGE,PARAM_TYPE_ADD:o.ApiDiffType.FUNCTION_PARAM_TYPE_ADD,PARAM_TYPE_REDUCE:o.ApiDiffType.FUNCTION_PARAM_TYPE_REDUCE,PARAM_TO_UNREQUIRED:o.ApiDiffType.FUNCTION_PARAM_TO_UNREQUIRED,PARAM_TO_REQUIRED:o.ApiDiffType.FUNCTION_PARAM_TO_REQUIRED,PARAM_CHANGE:o.ApiDiffType.FUNCTION_PARAM_CHANGE}}static diffMethodParams(e,t){const r=[],n="TypeAlias"===e.getApiType(),i=n?e.getParamInfos():e.getParams(),a=n?t.getParamInfos():t.getParams(),o=p.getDiffMethodTypes(n);return p.diffParamsPosition(i,a,r,o),p.diffNewOptionalParam(i,a,r,o),p.diffNewRequiredParam(i,a,r,o),p.diffReducedParam(i,a,r,o),p.diffParamTypeChange(i,a,r,o),p.diffParamChange(i,a,r,o),p.diffMethodParamChange(i,a,r,o),r}static diffMethodParamChange(e,t,r,n){const i=e.length,a=t.length;if(!i||!a)return;const s=[],c=[];for(let r=0;r<Math.max(i,a);r++){const n=t[r],i=e[r];n&&c.push(n.getApiName()),i&&s.push(i.getApiName())}const l=i-e.filter((e=>!c.includes(e.getApiName()))).length;if(l===i||l===a)return;let u=e,d=t;r.forEach((e=>{u=u.filter((t=>e.getOldMessage()!==t.getDefinedText())),d=d.filter((t=>e.getNewMessage()!==t.getDefinedText()))}));const p=_(u),f=_(d),m=new o.DiffTypeInfo;m.setDiffType(n.PARAM_CHANGE).setOldMessage(p).setNewMessage(f),r.push(m)}static diffParamsPosition(e,t,r,n){const i=e.length,a=t.length;if(i<=1||i!==a)return;var s;if(s=e,t.every(((e,t)=>{const r=s[t];return e.getApiName()===r.getApiName()})))return;if(!f(e,t))return;const c=_(e),l=_(t),u=new o.DiffTypeInfo;u.setDiffType(n.POS_CHANGE).setOldMessage(c).setNewMessage(l),r.push(u)}static diffNewOptionalParam(e,t,r,n){const i=e.length,a=t.length;if(0===a||i>=a)return;if(!f(t,e))return;const s=e.map((e=>e.getApiName())),c=t.filter((e=>{const t=e.getApiName();return!s.includes(t)&&!e.getIsRequired()}));if(!c.length)return;const l=_(c),u=new o.DiffTypeInfo;u.setOldMessage("").setDiffType(n.ADD_OPTIONAL_PARAM).setNewMessage(l),r.push(u)}static diffNewRequiredParam(e,t,r,n){const i=e.length,a=t.length;if(0===a||i>=a)return;if(!f(t,e))return;const s=e.map((e=>e.getApiName())),c=t.filter((e=>{const t=e.getApiName();return!s.includes(t)&&e.getIsRequired()}));if(!c.length)return;const l=_(c),u=new o.DiffTypeInfo;u.setDiffType(n.ADD_REQUIRED_PARAM).setOldMessage("").setNewMessage(l),r.push(u)}static diffReducedParam(e,t,r,n){const i=e.length,a=t.length;if(0===i||a>=i)return;const s=f(e,t);if(a>0&&!s)return;const c=t.map((e=>e.getApiName())),l=_(e.filter((e=>!c.includes(e.getApiName())))),u=new o.DiffTypeInfo;u.setDiffType(n.REDUCE_PARAM).setOldMessage(l).setNewMessage(""),r.push(u)}static diffParamChange(e,t,r,n){const i=e.length,a=t.length;if(!i||!a)return;const s=e.filter((e=>{const r=e.getApiName();return t.find((e=>e.getApiName()===r))}));s.length&&s.forEach(((e,i)=>{const a=e.getApiName(),s=t.find((e=>e.getApiName()===a));if(s.getIsRequired()!==e.getIsRequired()){const t=e.getDefinedText(),i=s.getDefinedText(),a=e.getIsRequired()?n.PARAM_TO_UNREQUIRED:n.PARAM_TO_REQUIRED,c=new o.DiffTypeInfo;c.setDiffType(a).setOldMessage(t).setNewMessage(i),r.push(c)}}))}static diffParamTypeChange(e,t,r,n){const i=e.length,a=t.length;if(!i||!a)return;const s=t.map((e=>e.getApiName())),c=e.filter((e=>s.includes(e.getApiName())));c.length&&c.forEach(((e,i)=>{const a=e.getType(),s=t.find((t=>t.getApiName()===e.getApiName())),c=s.getType();if(a.toString().replace(/\r|\n|\s+|'|"|,|;/g,"")!==c.toString().replace(/\r|\n|\s+|'|"|,|;/g,"")){const t=g(a,c,n),i=e.getDefinedText(),l=s.getDefinedText(),u=new o.DiffTypeInfo;u.setDiffType(t).setOldMessage(i).setNewMessage(l),r.push(u)}}))}static diffMethodParamName(e,t){if(e.getApiName()!==t.getApiName())return o.ApiDiffType.FUNCTION_PARAM_NAME_CHANGE}static diffMethodParamType(e,t){const r=e.getType(),n=t.getType(),i=r.toString().replace(/\r|\n|\s+|'|"/g,"").replace(/\|/g,"\\|"),a=n.toString().replace(/\r|\n|\s+|'|"/g,"").replace(/\|/g,"\\|");if(i!==a)return s.StringUtils.hasSubstring(a,i)?o.ApiDiffType.FUNCTION_PARAM_TYPE_ADD:s.StringUtils.hasSubstring(i,a)?o.ApiDiffType.FUNCTION_PARAM_TYPE_REDUCE:o.ApiDiffType.FUNCTION_PARAM_TYPE_CHANGE}static diffMethodParamRequired(e,t){const r=e.getIsRequired(),n=t.getIsRequired();if(r!==n)return n?o.ApiDiffType.FUNCTION_PARAM_TO_REQUIRED:o.ApiDiffType.FUNCTION_PARAM_TO_UNREQUIRED}static diffClass(t,r,n){const i=new o.DiffTypeInfo,a=t.getApiName(),s=r.getApiName();if(a===s)return;i.setStatusCode(o.ApiStatusCode.CLASS_CHANGES).setDiffType(o.ApiDiffType.API_NAME_CHANGE).setOldMessage(a).setNewMessage(s);const c=e.wrapDiffInfo(t,r,i);n.push(c)}static diffInterface(t,r,n){const i=new o.DiffTypeInfo,a=t.getApiName(),s=r.getApiName();if(a===s)return;i.setStatusCode(o.ApiStatusCode.CLASS_CHANGES).setDiffType(o.ApiDiffType.API_NAME_CHANGE).setOldMessage(a).setNewMessage(s);const c=e.wrapDiffInfo(t,r,i);n.push(c)}static diffNamespace(t,r,n){const i=new o.DiffTypeInfo,a=t.getApiName(),s=r.getApiName();if(a===s)return;i.setStatusCode(o.ApiStatusCode.CLASS_CHANGES).setDiffType(o.ApiDiffType.API_NAME_CHANGE).setOldMessage(a).setNewMessage(s);const c=e.wrapDiffInfo(t,r,i);n.push(c)}static diffProperty(t,r,n){e.propertyDiffProcessors.forEach((i=>{const a=i(t,r);if(!a)return;const s=e.wrapDiffInfo(t,r,a.setStatusCode(o.ApiStatusCode.FUNCTION_CHANGES));n.push(s)}))}static diffPropertyType(e,t){const r=new o.DiffTypeInfo,n=e.getType(),i=t.getType(),a=e.getIsReadOnly(),c=t.getIsReadOnly(),l=n.toString().replace(/\r|\n|\s+|\>|\}/g,""),u=i.toString().replace(/\r|\n|\s+|\>|\}/g,""),p=t.getTypeKind()===d.default.SyntaxKind.UnionType;if(l!==u)return r.setOldMessage(n.toString()).setNewMessage(i.toString()),l.replace(/\,|\;/g,"")===u.replace(/\,|\;/g,"")?r.setDiffType(o.ApiDiffType.PROPERTY_TYPE_SIGN_CHANGE):p&&m(n,i)?r.setDiffType(a?o.ApiDiffType.PROPERTY_READONLY_REDUCE:o.ApiDiffType.PROPERTY_WRITABLE_REDUCE):p&&m(i,n)||!p&&s.StringUtils.hasSubstring(u,l)?r.setDiffType(c?o.ApiDiffType.PROPERTY_READONLY_ADD:o.ApiDiffType.PROPERTY_WRITABLE_ADD):!p&&s.StringUtils.hasSubstring(l,u)?r.setDiffType(a?o.ApiDiffType.PROPERTY_READONLY_REDUCE:o.ApiDiffType.PROPERTY_WRITABLE_REDUCE):r.setDiffType(o.ApiDiffType.PROPERTY_TYPE_CHANGE)}static diffPropertyRequired(e,t){const r=new o.DiffTypeInfo,n=e.getApiName(),i=t.getApiName(),a=e.getIsReadOnly(),s=new Map([["_true_false_true",o.ApiDiffType.PROPERTY_READONLY_TO_UNREQUIRED],["_false_true_true",o.ApiDiffType.PROPERTY_READONLY_TO_REQUIRED],["_true_false_false",o.ApiDiffType.PROPERTY_WRITABLE_TO_UNREQUIRED],["_false_true_false",o.ApiDiffType.PROPERTY_WRITABLE_TO_REQUIRED]]),c=e.getIsRequired(),l=t.getIsRequired();if(n===i&&c===l)return;r.setOldMessage(e.getDefinedText()).setNewMessage(t.getDefinedText());const u=`_${!!c}_${!!l}_${!!a}`,d=s.get(u);return r.setDiffType(d)}static diffConstant(t,r,n){e.constantDiffProcessors.forEach((i=>{const a=i(t,r);if(!a)return;const s=e.wrapDiffInfo(t,r,a.setStatusCode(o.ApiStatusCode.FUNCTION_CHANGES));n.push(s)}))}static diffConstantValue(e,t){const r=new o.DiffTypeInfo,n=e.getValue(),i=t.getValue();if(n!==i)return r.setOldMessage(n).setNewMessage(i),r.setDiffType(o.ApiDiffType.CONSTANT_VALUE_CHANGE)}static diffTypeAlias(t,r,n){if(e.typeAliasDiffProcessors.forEach((i=>{const a=i(t,r);if(!a)return;const o=e.wrapDiffInfo(t,r,a);n.push(o)})),t.getTypeIsFunction()){const i=p.diffMethodParams(t,r),a=p.diffTypeAliasReturnType(t,r);a&&i.push(a),i.forEach((i=>{const a=e.wrapDiffInfo(t,r,i.setStatusCode(o.ApiStatusCode.TYPE_CHNAGES));n.push(a)}))}}static diffTypeAliasType(e,t){const r=new o.DiffTypeInfo,n=e.getType(),i=t.getType(),a=n.toString(),s=i.toString();if(a.replace(/\r|\n|\s+|'|"/g,"")===s.replace(/\r|\n|\s+|'|"/g,""))return;if(e.getTypeIsFunction())return;const c=g(n,i,{PARAM_TYPE_CHANGE:o.ApiDiffType.TYPE_ALIAS_CHANGE,PARAM_TYPE_ADD:o.ApiDiffType.TYPE_ALIAS_ADD,PARAM_TYPE_REDUCE:o.ApiDiffType.TYPE_ALIAS_REDUCE});return r.setOldMessage(n.join(" | ")).setNewMessage(i.join(" | ")).setStatusCode(o.ApiStatusCode.TYPE_CHNAGES).setDiffType(c),r}static diffEnum(t,r,n){const i=new o.DiffTypeInfo,a=t.getApiName(),s=r.getApiName();if(a===s)return;i.setDiffType(o.ApiDiffType.API_NAME_CHANGE).setOldMessage(a).setNewMessage(s);const c=e.wrapDiffInfo(t,r,i.setStatusCode(o.ApiStatusCode.FUNCTION_CHANGES));n.push(c)}static diffEnumMember(t,r,n){e.enumDiffProcessors.forEach((i=>{const a=i(t,r);if(!a)return;const s=e.wrapDiffInfo(t,r,a.setStatusCode(o.ApiStatusCode.FUNCTION_CHANGES));n.push(s)}))}static diffEnumMemberValue(e,t){const r=new o.DiffTypeInfo,n=e.getValue(),i=t.getValue();if(n!==i)return r.setOldMessage(n).setNewMessage(i),r.setDiffType(o.ApiDiffType.ENUM_MEMBER_VALUE_CHANGE)}static diffApiName(e,t){const r=new o.DiffTypeInfo,n=e.getApiName(),i=t.getApiName();if(n!==i)return r.setOldMessage(n).setNewMessage(i),r.setDiffType(o.ApiDiffType.API_NAME_CHANGE)}static diffSingleParamType(e,t,r){const n=e.toString().replace(/\r|\n|\s+|'|"|>/g,"").replace(/\|/g,"\\|"),i=t.toString().replace(/\r|\n|\s+|'|"|>/g,"").replace(/\|/g,"\\|");return s.StringUtils.hasSubstring(i,n)?r.PARAM_TYPE_ADD:s.StringUtils.hasSubstring(n,i)?r.PARAM_TYPE_REDUCE:r.PARAM_TYPE_CHANGE}static diffExport(t,r,n){const a=new o.DiffTypeInfo(o.ApiStatusCode.DEFAULT,o.ApiDiffType.DEFAULT,t.getDefinedText(),r.getDefinedText());if(t.getApiType()===i.ApiType.EXPORT_DEFAULT&&r.getApiType()===i.ApiType.EXPORT_DEFAULT){if(t.getDefinedText()===r.getDefinedText())return;{a.setStatusCode(o.ApiStatusCode.EXPORT_NAME_CHANGE).setDiffType(o.ApiDiffType.EXPORT_NAME_CHANGE);const i=e.wrapDiffInfo(t,r,a);n.push(i)}}if(!(t instanceof i.ExportDeclareInfo&&r instanceof i.ExportDeclareInfo))return;const s=t.getExportValues(),c=r.getExportValues();if(s.length>c.length){a.setStatusCode(o.ApiStatusCode.EXPORT_NAME_NUMBER_REDUCE).setDiffType(o.ApiDiffType.EXPORT_NAME_NUMBER_REDUCE);const i=e.wrapDiffInfo(t,r,a);n.push(i)}else if(s.length<c.length){let i=[];if(i=s.filter((e=>c.some((({key:t})=>e.key===t)))),i.length===s.length){a.setStatusCode(o.ApiStatusCode.EXPORT_NAME_NUMBER_ADD).setDiffType(o.ApiDiffType.EXPORT_NAME_NUMBER_ADD);const i=e.wrapDiffInfo(t,r,a);n.push(i)}else{a.setStatusCode(o.ApiStatusCode.EXPORT_NAME_CHANGE).setDiffType(o.ApiDiffType.EXPORT_NAME_CHANGE);const i=e.wrapDiffInfo(t,r,a);n.push(i)}}else{let i=[];if(i=s.filter((e=>!c.some((({key:t})=>e.key===t)))),i.length>0){a.setStatusCode(o.ApiStatusCode.EXPORT_NAME_CHANGE).setDiffType(o.ApiDiffType.EXPORT_NAME_CHANGE);const i=e.wrapDiffInfo(t,r,a);n.push(i)}}}}function f(e,t){return t.every((t=>{const r=t.getApiName(),n=e.find((e=>e.getApiName()===r));return n&&n.getApiType()===t.getApiType()}))}function m(e,t){return t.every((t=>e.includes(t)))}function g(t,r,n){const i=t.length,a=r.length;switch(i-a){case 0:return e.ApiNodeDiffHelper.diffSingleParamType(t,r,n);case-a:return n.PARAM_TYPE_ADD;case i:return n.PARAM_TYPE_REDUCE;default:return i>a?r.every((e=>t.includes(e)))?n.PARAM_TYPE_REDUCE:n.PARAM_TYPE_CHANGE:t.every((e=>r.includes(e)))?n.PARAM_TYPE_ADD:n.PARAM_TYPE_CHANGE}}function _(e){return e.length<=1?e[0].getDefinedText():e.reduce(((t,r,n)=>{let i=r.getDefinedText();return n!==e.length-1&&(i+=", "),t+i}),"")}e.ApiNodeDiffHelper=p,e.wrapDiffInfo=function(e=void 0,t=void 0,r,n){const a=t,s=t,c=t&&t.getParentApiType()?t.getParentApiType():"";let l=!0;!n&&o.parentApiTypeSet.has(c)&&r.getDiffType()===o.ApiDiffType.ADD&&(t?.getApiType()===i.ApiType.METHOD&&s.getIsRequired()||t?.getApiType()===i.ApiType.PROPERTY&&a.getIsRequired())&&(l=!1);const u=new o.BasicDiffInfo,d=r.getDiffType(),p=e,f=t,m=p?.getLastJsDocInfo?.()?.getIsSystemApi?.(),g=f?.getLastJsDocInfo?.()?.getIsSystemApi?.();let _=f?.getIsSameNameFunction?.();return t||(_=p?.getIsSameNameFunction()),e&&function(e,t){const r=e,n=r.getLastJsDocInfo?.()?.getKit?.();n&&t.setOldKitInfo(n);t.setOldApiDefinedText(e.getDefinedText()).setApiType(e.getApiType()).setOldApiName(e.getApiName()).setOldDtsName(e.getFilePath()).setOldHierarchicalRelations(e.getHierarchicalRelations()).setOldPos(e.getPos()).setOldSyscapField(e.getSyscap())}(e,u),t&&function(e,t){const r=e,n=r.getLastJsDocInfo?.()?.getKit?.();n&&t.setNewKitInfo(n);t.setNewApiDefinedText(e.getDefinedText()).setApiType(e.getApiType()).setNewApiName(e.getApiName()).setNewDtsName(e.getFilePath()).setNewHierarchicalRelations(e.getHierarchicalRelations()).setNewPos(e.getPos()).setNewSyscapField(e.getSyscap())}(t,u),u.setDiffType(d).setDiffMessage(o.diffMap.get(d)).setStatusCode(r.getStatusCode()).setIsCompatible(!!l&&!o.incompatibleApiDiffTypes.has(d)).setOldDescription(r.getOldMessage()).setNewDescription(r.getNewMessage()).setIsSystemapi(g||m).setIsSameNameFunction(_),u},e.apiNodeDiffMethod=new Map([[i.ApiType.EXPORT,p.diffExport],[i.ApiType.EXPORT_DEFAULT,p.diffExport],[i.ApiType.PROPERTY,p.diffProperty],[i.ApiType.CLASS,p.diffClass],[i.ApiType.INTERFACE,p.diffInterface],[i.ApiType.NAMESPACE,p.diffNamespace],[i.ApiType.METHOD,p.diffMethod],[i.ApiType.CONSTANT,p.diffConstant],[i.ApiType.ENUM,p.diffEnum],[i.ApiType.ENUM_VALUE,p.diffEnumMember],[i.ApiType.TYPE_ALIAS,e.ApiNodeDiffHelper.diffTypeAlias]]),e.jsDocDiffProcessors=[t.diffSyscap,t.diffDeprecated,t.diffPermissions,t.diffIsForm,t.diffIsCrossPlatForm,t.diffModelLimitation,t.diffIsSystemApi,t.diffAtomicService],e.enumDiffProcessors=[p.diffApiName,p.diffEnumMemberValue],e.typeAliasDiffProcessors=[p.diffApiName,p.diffTypeAliasType],e.constantDiffProcessors=[p.diffApiName,p.diffConstantValue],e.propertyDiffProcessors=[p.diffApiName,p.diffPropertyType,p.diffPropertyRequired],e.methodDiffProcessors=[p.diffApiName,p.diffMethodReturnType,p.diffMethodParams]}(t.DiffProcessorHelper||(t.DiffProcessorHelper={}))},38572:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RangeChange=exports.PermissionsProcessorHelper=void 0;const logUtil_1=__webpack_require__(4e3),Constant_1=__webpack_require__(8136),PATT={GET_NOT_TRANSFERCHAR:/(?<!\\)([\*|\.|\?|\+|\^|\$|\||\/|\[|\]|\(|\)|\{|\}])/g,VARIABLE_START:"(?<=\\b|\\s|\\*|\\.|\\?|\\+|\\^|\\$|\\||\\/|\\[|\\]|\\(|\\)|\\{|\\})",VARIABLE_END:"(?=\\b|\\s|\\*|\\.|\\?|\\+|\\^|\\$|\\||\\/|\\[|\\]|\\(|\\)|\\{|\\})",SPILT_CHAR_START:"(\\b|\\s)",SPILT_CHAR_END:"(\\b|\\s)"};class PermissionsProcessorHelper{constructor(e){this.charMap=new Map([["and",{splitchar:"&",transferchar:"&"}],["or",{splitchar:"\\|",transferchar:"|"}],["eq",{splitchar:"=",transferchar:"=="}],["LE",{splitchar:"->",transferchar:"<="}],["RE",{splitchar:"<-",transferchar:">="}],["not",{splitchar:"-",transferchar:"!"}],["lcurve",{splitchar:"\\(",transferchar:"("}],["rcurve",{splitchar:"\\)",transferchar:")"}]]),this.splitchar=["&","\\|","->","-","=","\\(","\\)"],this.transferchar=["&","|","<=","!","==","(",")"],this.variables=[];let t=this.charMap;return e&&(t=new Map([...t,...e]),this.splitchar=[],this.transferchar=[],t.forEach(((e,t)=>{let r=e.splitchar;r instanceof RegExp||(r=r.replace(PATT.GET_NOT_TRANSFERCHAR,"\\$1"),r!==e.splitchar&&logUtil_1.LogUtil.i("PermissionsProcessorHelper",`传入的表达式有问题,已经自行修改! ${t}中的splitchar为${e.splitchar},修改为${r}`)),this.splitchar.push(r),this.transferchar.push(e.transferchar)}))),this}getvariables(){return this.variables}comparePermissions(e,t){const r={range:RangeChange.NO,situationDown:[],situationUp:[],variables:[]},n=this.calculateParadigmDown(e,t),i=this.calculateParadigmUp(e,t);return r.variables=this.variables,n.range!==RangeChange.NO&&(r.situationDown=n.situationDown,r.range=RangeChange.DOWN),i.range!==RangeChange.NO&&(r.situationUp=i.situationUp,r.range=r.range===RangeChange.NO?RangeChange.UP:RangeChange.CHANGE),r}calculateParadigmDown(e,t){const r={range:RangeChange.NO,situationDown:[],situationUp:[],variables:[]},n=this.charMap.get("LE");if(!n)return r;const i=`(${e}) ${n.splitchar} (${t})`,a=this.calculateParadigm(i);return r.variables=this.variables,a.fail.length>0&&(r.range=RangeChange.DOWN,r.situationDown=a.fail.map((e=>Number(e).toString(Constant_1.NumberConstant.BINARY_SYSTEM).padStart(this.variables.length,"0").split("").map((e=>Boolean(Number(e))))))),r}calculateParadigmUp(e,t){const r={range:RangeChange.NO,situationDown:[],situationUp:[],variables:[]},n=this.charMap.get("RE");if(!n)return r;const i=`(${e}) ${n.splitchar} (${t})`,a=this.calculateParadigm(i);return r.variables=this.variables,a.fail.length>0&&(r.range=RangeChange.UP,r.situationUp=a.fail.map((e=>Number(e).toString(Constant_1.NumberConstant.BINARY_SYSTEM).padStart(this.variables.length,"0").split("").map((e=>Boolean(Number(e))))))),r}calculateParadigm(e){const t=this.findVariables(e);this.variables=t,e=this.formatten(e);const r=this.variables.length,n=PermissionsProcessorHelper.getAllState(r),i=this.calculate(e,r,n);return this.processValues(i)}findVariables(e){this.splitchar.forEach((t=>{const r=new RegExp(t,"g");e=e.replace(r," ")}));const t=new Set(e.split(" "));t.delete("");return[...t].sort(((e,t)=>e.length===t.length?e<t?-1:1:e.length<t.length?1:-1))}formatten(e){return this.splitchar.forEach(((t,r)=>{t instanceof RegExp||(t=new RegExp(PATT.SPILT_CHAR_START+t+PATT.SPILT_CHAR_END,"g")),e=e.replace(t,this.transferchar[r])})),e}static getAllState(e){const t=[];for(let r=0;r<Constant_1.NumberConstant.BINARY_SYSTEM**e;r++)t.push(Number(r).toString(Constant_1.NumberConstant.BINARY_SYSTEM).padStart(e,"0").split(""));return t}calculate(str,variablesLen,states){const statesLen=states.length,values=[];let outError=!0;for(let i=0;i<statesLen;i++){const state=states[i];let modifyStr=str;for(let e=0;e<variablesLen;e++){let t=this.variables[e];t=t.replace(PATT.GET_NOT_TRANSFERCHAR,"\\$1");const r=new RegExp(PATT.VARIABLE_START+t+PATT.VARIABLE_END,"g");modifyStr=modifyStr.replace(r,state[e])}try{values.push(eval(modifyStr))}catch(e){outError&&(outError=!outError,logUtil_1.LogUtil.e("PermissionsProcessor.calculate",`error logical expression: ${str}`),values.push(0))}}return values}processValues(e){const t={pass:[],fail:[]};for(let r=0;r<e.length;r++){e[r]?t.pass.push(r):t.fail.push(r)}return t}}var RangeChange;exports.PermissionsProcessorHelper=PermissionsProcessorHelper,PermissionsProcessorHelper.NEED_TRANSFER_CHAR=["*",".","?","+","^","$","|","/","[","]","(",")","{","}"],function(e){e.DOWN="down",e.UP="up",e.NO="no",e.CHANGE="change"}(RangeChange=exports.RangeChange||(exports.RangeChange={}))},26499:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.diffJsdocMethod=t.DiffTagInfoHelper=t.DiffHelper=void 0;const i=n(r(2543)),a=n(r(58843)),o=r(8136),s=r(27944),c=r(44791),l=r(40149),u=r(30871),d=r(16137),p=r(12311),f=r(80879),m=r(37583),g=r(44791),_=r(87960),h=r(56405);class y{static diffSDK(e,t,r,n){const a=i.default.cloneDeep(e),o=i.default.cloneDeep(t),s=[],c=y.getApiLocations(a,n),d=y.getApiLocations(o,n);y.diffKit(a,o,s);const f=new Set(Array.from(a.keys()));for(const e of c.keys()){const t=c.get(e),i=u.Parser.getApiInfo(t,a,r);if(!d.has(e)){i.forEach((e=>{s.push(p.DiffProcessorHelper.wrapDiffInfo(e,void 0,new l.DiffTypeInfo(l.ApiStatusCode.DELETE,l.ApiDiffType.REDUCE,e.getDefinedText())))}));continue}const f=u.Parser.getApiInfo(t,o,r);y.diffApis(i,f,s,r,n),d.delete(e)}for(const e of d.keys()){const t=d.get(e),n=u.Parser.getApiInfo(t,o,r),i=t.slice(0,-1);n.forEach((e=>{let t=!1;f.has(e.getFilePath())&&c.get(i.join())||(t=!0),s.push(p.DiffProcessorHelper.wrapDiffInfo(void 0,e,new l.DiffTypeInfo(l.ApiStatusCode.NEW_API,l.ApiDiffType.ADD,void 0,e.getDefinedText()),t))}))}return s}static diffKit(e,t,r){for(const n of e.keys()){const i=y.getSourceFileInfo(e.get(n));i?.setSyscap(y.getSyscapField(i));const a=i?.getLastJsDocInfo()?.getKit();if(t.get(n)||"NA"===a){if(t.get(n)){const e=y.getSourceFileInfo(t.get(n)),o=e?.getLastJsDocInfo()?.getKit();a!==o&&r.push(p.DiffProcessorHelper.wrapDiffInfo(i,e,new l.DiffTypeInfo(l.ApiStatusCode.KIT_CHANGE,y.getKitDiffType(a,o),a,o)))}}else r.push(p.DiffProcessorHelper.wrapDiffInfo(i,void 0,new l.DiffTypeInfo(l.ApiStatusCode.KIT_CHANGE,l.ApiDiffType.KIT_HAVE_TO_NA,a,"NA")))}for(const n of t.keys()){const i=y.getSourceFileInfo(t.get(n)),a=i?.getLastJsDocInfo()?.getKit();e.get(n)||"NA"===a||r.push(p.DiffProcessorHelper.wrapDiffInfo(void 0,i,new l.DiffTypeInfo(l.ApiStatusCode.KIT_CHANGE,l.ApiDiffType.KIT_NA_TO_HAVE,"NA",a)))}}static getKitDiffType(e,t){return"NA"===e&&""===t?l.ApiDiffType.KIT_NA_TO_HAVE:""===e&&"NA"===t?l.ApiDiffType.KIT_HAVE_TO_NA:"NA"===e||""===e?l.ApiDiffType.KIT_NA_TO_HAVE:"NA"===t||""===t?l.ApiDiffType.KIT_HAVE_TO_NA:l.ApiDiffType.KIT_CHANGE}static getSourceFileInfo(e){if(!e)return;let t=[];for(const r of e.keys())r===o.StringConstant.SELF&&(t=e.get(r));return t[0]}static judgeIsSameNameFunction(e){let t=!1;return e.length>1&&e[0].getApiType()===c.ApiType.METHOD&&(t=!0),t}static diffApis(e,t,r,n,i){const a=y.getDiffSet(e,t),o=a[0],s=a[1];0!==o.size?0!==s.size?y.diffChangeApi(e,t,r,i):o.forEach((e=>{r.push(p.DiffProcessorHelper.wrapDiffInfo(e,void 0,new l.DiffTypeInfo(l.ApiStatusCode.DELETE,l.ApiDiffType.REDUCE,e.getDefinedText(),void 0)))})):s.forEach((e=>{r.push(p.DiffProcessorHelper.wrapDiffInfo(void 0,e,new l.DiffTypeInfo(l.ApiStatusCode.NEW_API,l.ApiDiffType.ADD,void 0,e.getDefinedText())))}))}static diffChangeApi(e,t,r,n){if(1===e.length&&e.length===t.length)p.DiffProcessorHelper.JsDocDiffHelper.diffJsDocInfo(e[0],t[0],r),p.DiffProcessorHelper.ApiDecoratorsDiffHelper.diffDecorator(e[0],t[0],r),p.DiffProcessorHelper.ApiNodeDiffHelper.diffNodeInfo(e[0],t[0],r,n);else{const i=y.setmethodInfoMap(t),a=y.setmethodInfoMap(e);e.forEach((e=>{const t=i.get(e.getDefinedText().replace(/\r|\n|\s+|,|;/g,""));t&&(p.DiffProcessorHelper.ApiNodeDiffHelper.diffNodeInfo(e,t,r,n),p.DiffProcessorHelper.JsDocDiffHelper.diffJsDocInfo(e,t,r),p.DiffProcessorHelper.ApiDecoratorsDiffHelper.diffDecorator(e,t,r),i.delete(e.getDefinedText()),a.delete(e.getDefinedText()))}));for(const e of i.values()){if(!(e instanceof c.ApiInfo))continue;1===e.getJsDocInfos().length&&(r.push(p.DiffProcessorHelper.wrapDiffInfo(void 0,e,new l.DiffTypeInfo(l.ApiStatusCode.NEW_API,l.ApiDiffType.NEW_SAME_NAME_FUNCTION,void 0,e.getDefinedText()))),i.delete(e.getDefinedText().replace(/\r|\n|\s+|,|;/g,"")))}if(1===a.size&&1===i.size){const e=a.entries().next().value[1],t=i.entries().next().value[1];p.DiffProcessorHelper.JsDocDiffHelper.diffJsDocInfo(e,t,r),p.DiffProcessorHelper.ApiDecoratorsDiffHelper.diffDecorator(e,t,r),p.DiffProcessorHelper.ApiNodeDiffHelper.diffNodeInfo(e,t,r,n)}else y.diffSameNameFunction(a,i,r,n)}}static diffSameNameFunction(e,t,r,n){for(const i of t.values()){if(!(i instanceof c.ApiInfo))continue;const a=i.getPenultimateJsDocInfo();for(const o of e.values()){if(!(o instanceof c.ApiInfo))continue;const s=o.getLastJsDocInfo();y.diffJsDoc(a,s)&&(p.DiffProcessorHelper.ApiNodeDiffHelper.diffNodeInfo(o,i,r,n),e.delete(o.getDefinedText().replace(/\r|\n|\s+|,|;/g,"")),t.delete(i.getDefinedText().replace(/\r|\n|\s+|,|;/g,"")))}}for(const e of t.values())r.push(p.DiffProcessorHelper.wrapDiffInfo(void 0,e,new l.DiffTypeInfo(l.ApiStatusCode.NEW_API,l.ApiDiffType.NEW_SAME_NAME_FUNCTION,void 0,e.getDefinedText())));for(const t of e.values())r.push(p.DiffProcessorHelper.wrapDiffInfo(t,void 0,new l.DiffTypeInfo(l.ApiStatusCode.DELETE,l.ApiDiffType.REDUCE_SAME_NAME_FUNCTION,t.getDefinedText(),void 0)))}static diffJsDoc(e,r){const n=new Set,i=v.diffParamTagInfo(r,e)&&v.diffReturnsTagInfo(r,e);return e?.getTags()?.forEach((i=>{const a=t.diffJsdocMethod.get(i.tag);a&&n.add(a(r,e))})),!(1!==n.size||!n.has(!0))||!!(n.size>1&&i)}static judgeIsAllDeprecated(e){let t=!0;return e.forEach((e=>{const r=e.getLastJsDocInfo()?.getDeprecatedVersion();"-1"!==r&&r||(t=!1)})),t}static handleDeprecatedVersion(e){let t=!0;e.forEach((e=>{const r=e.getLastJsDocInfo()?.getDeprecatedVersion();"-1"!==r&&r||(t=!1)})),t||e.forEach((e=>{e.getLastJsDocInfo()?.setDeprecatedVersion("-1")}))}static joinApiText(e){const t=[];for(const r of e.keys())t.push(r);return t.join(" #&# ")}static setmethodInfoMap(e){const t=new Map;return e.forEach((e=>{t.set(e.getDefinedText().replace(/\r|\n|\s+|,|;/g,""),e)})),t}static getDiffSet(e,t){const r=new Map,n=new Map;y.setApiInfoMap(r,e),y.setApiInfoMap(n,t);const i=new Map;r.forEach(((e,t)=>{n.has(t)||i.set(t,e)}));const a=new Map;return n.forEach(((e,t)=>{r.has(t)||a.set(t,e)})),[i,a]}static setApiInfoMap(e,t){t.forEach((t=>{const r=`${t.getDefinedText()}#${t.getJsDocText()}#${JSON.stringify(t.getDecorators())}`;e.set(r,t)}))}static getApiLocations(e,t){const r=new Map;for(const n of e.keys()){const i=0,a=e.get(n);y.processFileApiMap(a,r,i,t)}return r}static processFileApiMap(e,t,r,n){for(const i of e.keys()){if(i===o.StringConstant.SELF)continue;e.get(i).get(o.StringConstant.SELF).forEach((e=>{y.processApiInfo(e,t,r,n),r++}))}}static deleteUselessJsdoc(e){const t=e.getJsDocText().split("*/"),r=t;return r[1]&&_.StringUtils.hasSubstring(r[1],h.CommentHelper.fileTag)&&t.splice(1,1),r[0]&&_.StringUtils.hasSubstring(r[0],h.CommentHelper.fileTag)&&t.splice(0,1),r[0]&&_.StringUtils.hasSubstring(r[0],h.CommentHelper.licenseKeyword)&&t.splice(0,1),t.join("*/")}static processApiInfo(e,t,r,n){const i=e.getNode();if(n){const t=i?.getFullText().replace(i.getText(),"");t&&e.setJsDocText(t)}if(0===r&&e.getParentApiType()===c.ApiType.SOURCE_FILE){const t=y.deleteUselessJsdoc(e);e.setJsDocText(t)}e.setSyscap(y.getSyscapField(e)),e.setParentApi(void 0),e.removeNode();let a=s.EnumUtils.enum2arr([c.ApiType.EXPORT,c.ApiType.EXPORT_DEFAULT]).includes(e.getApiType());if(!d.apiStatisticsType.has(e.getApiType())&&!a)return;if("constructor"===e.getApiName())return;const o=e,l=o.getHierarchicalRelations();if(t.set(l.toString(),l),!c.containerApiTypes.has(o.getApiType()))return;o.getChildApis().forEach((e=>{y.processApiInfo(e,t,1,n)}))}static getSyscapField(e){if(e.getApiType()===c.ApiType.SOURCE_FILE){const t=e.getNode()?.getFullText();let r="";return/\@[S|s][Y|y][S|s][C|c][A|a][P|p]\s*((\w|\.|\/|\{|\@|\}|\s)+)/g.test(t)&&t.replace(/\@[S|s][Y|y][S|s][C|c][A|a][P|p]\s*((\w|\.|\/|\{|\@|\}|\s)+)/g,((e,t)=>(r=e.replace(/\@[S|s][Y|y][S|s][C|c][A|a][P|p]/g,"").trim(),r))),f.FunctionUtils.handleSyscap(r)}if(g.notJsDocApiTypes.has(e.getApiType()))return"";const t=e,r=t.getLastJsDocInfo();if(!r)return y.searchSyscapFieldInParent(t);let n=r?.getSyscap();return n?n?f.FunctionUtils.handleSyscap(n):"":y.searchSyscapFieldInParent(t)}static searchSyscapFieldInParent(e){let t=e,r="";const n=t.getNode();for(;n&&t&&!a.default.isSourceFile(n);){if(r=t.getSyscap(),r)return r;t=t.getParentApi()}return r}}t.DiffHelper=y;class v{static diffSyscapTagInfo(e,t){return e?.getSyscap()===t?.getSyscap()}static diffSinceTagInfo(e,t){return e?.getSince()===t?.getSince()}static diffFormTagInfo(e,t){return e?.getIsForm()===t?.getIsForm()}static diffCrossPlatFromTagInfo(e,t){return e?.getIsCrossPlatForm()===t?.getIsCrossPlatForm()}static diffSystemApiTagInfo(e,t){return e?.getIsSystemApi()===t?.getIsSystemApi()}static diffModelTagInfo(e,t){return e?.getModelLimitation()===t?.getModelLimitation()}static diffDeprecatedTagInfo(e,t){return e?.getDeprecatedVersion()===t?.getDeprecatedVersion()}static diffUseinsteadTagInfo(e,t){return e?.getUseinstead()===t?.getUseinstead()}static diffPermissionTagInfo(e,t){return e?.getPermission()===t?.getPermission()}static diffThrowsTagInfo(e,t){return e?.getErrorCode().sort().join()===t?.getErrorCode().sort().join()}static diffAtomicServiceTagInfo(e,t){return e?.getIsAtomicService()===t?.getIsAtomicService()}static diffParamTagInfo(e,t){const r=[],n=[];return e?.getTags()?.forEach((e=>{e.tag===m.Comment.JsDocTag.PARAM&&r.push(`${e.name}#${e.type}`)})),t?.getTags()?.forEach((e=>{e.tag===m.Comment.JsDocTag.PARAM&&n.push(`${e.name}#${e.type}`)})),r.join()===n.join()}static diffReturnsTagInfo(e,t){let r="";return e?.getTags()?.forEach((e=>{e.tag===m.Comment.JsDocTag.RETURNS&&(r=e.type)})),t?.getTags()?.forEach((e=>{e.tag===m.Comment.JsDocTag.PARAM&&(r=e.type)})),r==r}}t.DiffTagInfoHelper=v,t.diffJsdocMethod=new Map([[m.Comment.JsDocTag.SYSCAP,v.diffSyscapTagInfo],[m.Comment.JsDocTag.SINCE,v.diffSinceTagInfo],[m.Comment.JsDocTag.FORM,v.diffFormTagInfo],[m.Comment.JsDocTag.CROSS_PLAT_FORM,v.diffCrossPlatFromTagInfo],[m.Comment.JsDocTag.SYSTEM_API,v.diffSystemApiTagInfo],[m.Comment.JsDocTag.STAGE_MODEL_ONLY,v.diffModelTagInfo],[m.Comment.JsDocTag.FA_MODEL_ONLY,v.diffModelTagInfo],[m.Comment.JsDocTag.DEPRECATED,v.diffDeprecatedTagInfo],[m.Comment.JsDocTag.USEINSTEAD,v.diffUseinsteadTagInfo],[m.Comment.JsDocTag.PERMISSION,v.diffPermissionTagInfo],[m.Comment.JsDocTag.THROWS,v.diffThrowsTagInfo],[m.Comment.JsDocTag.ATOMIC_SERVICE,v.diffAtomicServiceTagInfo],[m.Comment.JsDocTag.PARAM,v.diffParamTagInfo],[m.Comment.JsDocTag.RETURNS,v.diffReturnsTagInfo]])},87191:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SyscapProcessorHelper=void 0;const n=r(80879);class i{static matchSubsystem(e){const t=n.FunctionUtils.readSubsystemFile().subsystemMap,r=i.getSyscapField(e);return r?t.get(r):"NA"}static getSyscapField(e){const t=e.getNewSyscapField();if(t)return t;const r=e.getOldSyscapField();return r||""}static getSingleKitInfo(e){return""!==e.getNewKitInfo()?e.getNewKitInfo():e.getOldKitInfo()}}t.SyscapProcessorHelper=i},56405:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JsDocProcessorHelper=t.CommentHelper=void 0;const i=n(r(58843)),a=r(37583),o=r(4e3),s=r(87960),c=r(44791);class l{static getNodeLeadingComments(e,t){try{const r=i.default.getLeadingCommentRanges(t.getFullText(),e.getFullStart());if(r&&r.length){const e=[];return r.forEach((r=>{const n=t.getFullText().slice(r.pos,r.end),i=l.parseComment(n,r.kind,!0);i.pos=r.pos,i.end=r.end,e.push(i)})),e}return[]}catch(t){return o.LogUtil.d("CommentHelper",`node(kind=${e.kind}) is created in memory.`),[]}}static parseComment(e,t,n){const{parse:a}=r(67634),o={text:e,isMultiLine:t===i.default.SyntaxKind.MultiLineCommentTrivia,isLeading:n,description:"",commentTags:[],parsedComment:void 0,pos:-1,end:-1,ignore:!1,isApiComment:!1,isInstruct:!1,isFileJsDoc:!1};let c=e,l=a(c);if(0===l.length){if(s.StringUtils.hasSubstring(c,this.referenceRegexp)||t===i.default.SyntaxKind.SingleLineCommentTrivia){o.isMultiLine=!1;const e=2;o.text=c.substring(e,c.length)}return o}o.parsedComment=l[0],o.description=l[0].description;for(let e=0;e<l[0].tags.length;e++){const t=l[0].tags[e];o.commentTags.push({tag:t.tag,name:t.name,type:t.type,optional:t.optional,description:t.description,source:t.source[0].source,lineNumber:t.source[0].number,tokenSource:t.source,defaultValue:t.default?t.default:void 0})}return s.StringUtils.hasSubstring(c,this.fileTag)&&(o.isFileJsDoc=!0),o.isApiComment=!0,o}}t.CommentHelper=l,l.licenseKeyword="Copyright",l.referenceRegexp=/\/\/\/\s*<reference\s*path/g,l.referenceCommentRegexp=/\/\s*<reference\s*path/g,l.mutiCommentDelimiter="/**",l.fileTag=/\@file|\@kit/g;class u{static setSyscap(e,t){e.setSyscap(t.name)}static setSince(e,t){e.setSince(t.name)}static setIsForm(e){e.setIsForm(!0)}static setIsCrossPlatForm(e){e.setIsCrossPlatForm(!0)}static setIsSystemApi(e){e.setIsSystemApi(!0)}static setIsAtomicService(e){e.setIsAtomicService(!0)}static setDeprecatedVersion(e,t){e.setDeprecatedVersion(t.description)}static setUseinstead(e,t){e.setUseinstead(t.name)}static setPermission(e,t){const r=t.description,n=t.name,i=r?`${n} ${r}`:`${n}`;e.setPermission(i)}static addErrorCode(e,t){t&&!isNaN(Number(t.name))&&e.addErrorCode(Number(t.name))}static setTypeInfo(e,t){e.setTypeInfo(t.type)}static setIsConstant(e){e.setIsConstant(!0)}static setModelLimitation(e,t){e.setModelLimitation(t.tag)}static setKitContent(e,t){e.setKit(t.source.replace(/\* @kit\s+|\r|\n/g,"").trim())}static setIsFile(e,t){e.setFileTagContent(t.source.replace(/\* @file\s+|\r|\n/g,"").trim())}static processJsDoc(e,t,r){const n=new a.Comment.JsDocInfo;n.setDescription(e.description),n.setKit(t),n.setFileTagContent(r);for(let t=0;t<e.commentTags.length;t++){const r=e.commentTags[t];n.addTag(r);const i=d.get(r.tag.toLowerCase());i&&i(n,r)}return n}static processJsDocInfos(e,t,r,n){const i=e.getSourceFile(),o=l.getNodeLeadingComments(e,i).filter((e=>e.isApiComment&&!e.isFileJsDoc&&t!==c.ApiType.SOURCE_FILE||e.isApiComment&&e.isFileJsDoc&&t===c.ApiType.SOURCE_FILE)),s=[];if(0===o.length&&""!==r){const e=new a.Comment.JsDocInfo;e.setKit(r),e.setFileTagContent(n),s.push(e)}for(let e=0;e<o.length;e++){const t=o[e],i=u.processJsDoc(t,r,n);s.push(i)}return s}}t.JsDocProcessorHelper=u;const d=new Map([[a.Comment.JsDocTag.SYSCAP,u.setSyscap],[a.Comment.JsDocTag.SINCE,u.setSince],[a.Comment.JsDocTag.FORM,u.setIsForm],[a.Comment.JsDocTag.CROSS_PLAT_FORM,u.setIsCrossPlatForm],[a.Comment.JsDocTag.SYSTEM_API,u.setIsSystemApi],[a.Comment.JsDocTag.STAGE_MODEL_ONLY,u.setModelLimitation],[a.Comment.JsDocTag.FA_MODEL_ONLY,u.setModelLimitation],[a.Comment.JsDocTag.DEPRECATED,u.setDeprecatedVersion],[a.Comment.JsDocTag.USEINSTEAD,u.setUseinstead],[a.Comment.JsDocTag.TYPE,u.setTypeInfo],[a.Comment.JsDocTag.PERMISSION,u.setPermission],[a.Comment.JsDocTag.THROWS,u.addErrorCode],[a.Comment.JsDocTag.CONSTANT,u.setIsConstant],[a.Comment.JsDocTag.ATOMIC_SERVICE,u.setIsAtomicService],[a.Comment.JsDocTag.KIT,u.setKitContent],[a.Comment.JsDocTag.FILE,u.setIsFile]])},17858:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.typeMap=t.modifierProcessorMap=t.nodeProcessorMap=t.ModifierHelper=t.NodeProcessorHelper=t.parserParam=void 0;const i=n(r(58843)),a=n(r(2543)),o=r(44791),s=r(87960),c=r(8136);t.parserParam=new o.ParserParam;class l{static processReference(e,t,r){const n=[];if(e.referencedFiles.forEach((t=>{const i=new o.ReferenceInfo(o.ApiType.REFERENCE_FILE,e,r);i.setApiName(o.ApiType.REFERENCE_FILE),i.setPathName(t.fileName),n.push(i)})),0===n.length)return;const i=new Map;i.set(c.StringConstant.SELF,n),t.set(c.StringConstant.REFERENCE,i)}static processNode(e,r,n){const i=t.nodeProcessorMap.get(e.kind);if(!i)return;const a=i(e,n),s=l.setApiInfo(a,r,e),c=l.getChildNodes(e);c&&c.forEach((e=>{a.getApiType()===o.ApiType.STRUCT&&""===e.getFullText()||l.processNode(e,s,a)}))}static setApiInfo(e,t,r){if(e.getApiType()!==o.ApiType.METHOD)return l.setSingleApiInfo(e,t);let n=[];n=l.processEventMethod(e,r),l.processAsyncMethod(n);let i=new Map;return n.forEach((e=>{i=l.setSingleApiInfo(e,t)})),i}static setSingleApiInfo(e,t){const r=e.getApiName(),n=e.getParentApi();if(n&&o.containerApiTypes.has(n.apiType)){n.addChildApi(e)}if(t.has(r)){const n=t.get(r);return n.get(c.StringConstant.SELF).push(e),n}const i=[];i.push(e);const a=new Map;return a.set(c.StringConstant.SELF,i),t.set(r,a),a}static processEventMethod(e,t){const r=[],n=l.getOnOrOffMethodFirstParamType(e,t);if(void 0===n)return r.push(e),r;const o=n.literal;if(n.kind===i.default.SyntaxKind.LiteralType&&i.default.isStringLiteral(o)){const t=o.getText();e.setApiName(`${e.getApiName()}_${t.substring(1,t.length-1)}`),e.setIsJoinType(!0)}else if(n.kind===i.default.SyntaxKind.UnionType){n.types.forEach((t=>{if(i.default.isLiteralTypeNode(t)&&i.default.isStringLiteral(t.literal)){const n=t.literal.getText(),i=a.default.cloneDeep(e);i.setParentApi(e.getParentApi()),i.setApiName(`${e.getApiName()}_${n.substring(1,n.length-1)}`),e.setIsJoinType(!0),r.push(i)}}))}else n.kind===i.default.SyntaxKind.StringKeyword?(e.setApiName(`${e.getApiName()}_string`),e.setIsJoinType(!0)):n.kind===i.default.SyntaxKind.BooleanKeyword?(e.setApiName(`${e.getApiName()}_boolean`),e.setIsJoinType(!0)):(e.setApiName(`${e.getApiName()}_${n.getText()}`),e.setIsJoinType(!0));return 0===r.length&&r.push(e),r}static getOnOrOffMethodFirstParamType(e,t){if(!new Set(c.EventConstant.eventNameList).has(e.getApiName()))return;if(e.setIsJoinType(!0),0===t.parameters.length)return;return t.parameters[0].type}static processAsyncMethod(e){e.forEach((e=>{const t=e,r=t.getReturnValue();if(1===r.length&&r[0].startsWith(c.StringConstant.PROMISE_METHOD_KEY))return void t.setSync(c.StringConstant.PROMISE_METHOD_KEY_CHANGE);const n=t.getParams();for(let e=n.length-1;e>=0;e--){const r=n[e].getType();if(1===r.length&&r[0].startsWith(c.StringConstant.ASYNC_CALLBACK_METHOD_KEY))return void t.setSync(c.StringConstant.ASYNC_CALLBACK_METHOD_KEY_CHANGE)}}))}static getChildNodes(e){return i.default.isInterfaceDeclaration(e)||i.default.isClassDeclaration(e)||i.default.isEnumDeclaration(e)?e.members:i.default.isStructDeclaration(e)?i.default.visitNodes(e.members,(e=>{if(!i.default.isConstructorDeclaration(e))return e})):i.default.isModuleDeclaration(e)&&e.body&&i.default.isModuleBlock(e.body)?e.body.statements:void 0}static processExportAssignment(e,t){const r=new o.ExportDefaultInfo(o.ApiType.EXPORT_DEFAULT,e,t),n=e;return r.setApiName(c.StringConstant.EXPORT_DEFAULT),r.setDefinedText(n.getText()),u.processModifiers(n.modifiers,r),r}static processExportDeclaration(e,t){const r=new o.ExportDeclareInfo(o.ApiType.EXPORT,e,t),n=e,a=n.exportClause;if(a){if(i.default.isNamespaceExport(a))r.setApiName(c.StringConstant.EXPORT+a.name.getText());else if(i.default.isNamedExports(a)){const e=[];a.elements.forEach((t=>{const n=t.propertyName?t.propertyName.getText():"",i=t.name.getText();e.push(i),r.addExportValues(i,n)})),r.setApiName(c.StringConstant.EXPORT+e.join("_"))}}else r.setApiName(c.StringConstant.EXPORT+(n.moduleSpecifier?n.moduleSpecifier.getText():""));return r.setApiName(c.StringConstant.EXPORT),r.setDefinedText(n.getText()),u.processModifiers(n.modifiers,r),r}static processImportEqualsDeclaration(e,t){return new o.ImportInfo(o.ApiType.EXPORT,e,t)}static processImportInfo(e,t){const r=new o.ImportInfo(o.ApiType.IMPORT,e,t),n=e;if(r.setApiName(n.moduleSpecifier.getText()),r.setImportPath(n.moduleSpecifier.getText()),r.setDefinedText(n.getText()),u.processModifiers(n.modifiers,r),void 0===n.importClause)return r;const a=n.importClause;if(a.namedBindings&&i.default.isNamedImports(a.namedBindings))a.namedBindings.elements.forEach((e=>{const t=e.propertyName?e.propertyName.getText():"",n=e.name.getText();r.addImportValue(n,t)}));else{const e=a.name?a.name.escapedText.toString():"";r.addImportValue(e,e)}return r}static processInterface(e,t){const r=e,n=new o.InterfaceInfo(o.ApiType.INTERFACE,e,t);return n.setApiName(r.name.getText()),r.typeParameters?.forEach((e=>{n.setGenericInfo(l.processGenericity(e))})),u.processModifiers(r.modifiers,n),void 0===r.heritageClauses||r.heritageClauses.forEach((e=>{e.token===i.default.SyntaxKind.ExtendsKeyword?e.types.forEach((e=>{const t=new o.ParentClass;t.setImplementClass(""),t.setExtendClass(e.getText()),n.setParentClasses(t)})):e.token===i.default.SyntaxKind.ImplementsKeyword&&e.types.forEach((e=>{const t=new o.ParentClass;t.setImplementClass(e.getText()),t.setExtendClass(""),n.setParentClasses(t)}))})),n}static processGenericity(e){const t=new o.GenericInfo;return t.setIsGenericity(!0),t.setGenericContent(e.getText()),t}static processClass(e,t){const r=e,n=new o.ClassInfo(o.ApiType.CLASS,e,t),a=r.name?r.name.getText():"";return n.setApiName(a),r.typeParameters?.forEach((e=>{n.setGenericInfo(l.processGenericity(e))})),u.processModifiers(r.modifiers,n),void 0===r.heritageClauses||r.heritageClauses.forEach((e=>{e.token===i.default.SyntaxKind.ExtendsKeyword?e.types.forEach((e=>{const t=new o.ParentClass;t.setExtendClass(e.getText()),t.setImplementClass(""),n.setParentClasses(t)})):e.token===i.default.SyntaxKind.ImplementsKeyword&&e.types.forEach((e=>{const t=new o.ParentClass;t.setImplementClass(e.getText()),t.setExtendClass(""),n.setParentClasses(t)}))})),n}static processBaseModule(e,t){const r=e;return i.default.isIdentifier(r.name)?l.processNamespace(e,t):l.processModule(e,t)}static processModule(e,t){const r=e,n=new o.ModuleInfo(o.ApiType.MODULE,e,t);return n.setApiName(r.name.getText()),u.processModifiers(r.modifiers,n),n}static processNamespace(e,t){const r=e,n=new o.NamespaceInfo(o.ApiType.NAMESPACE,e,t);return n.setApiName(r.name.getText()),u.processModifiers(r.modifiers,n),n}static processEnum(e,t){const r=e,n=new o.EnumInfo(o.ApiType.ENUM,e,t);return n.setApiName(r.name.getText()),u.processModifiers(r.modifiers,n),n}static processEnumValue(e,t){const r=e,n=new o.EnumValueInfo(o.ApiType.ENUM_VALUE,e,t);n.setApiName(r.name.getText()),n.setDefinedText(r.getText());const i=t;if(n.setValue(l.getCurrentEnumValue(i)),r.initializer){const e=r.initializer.getText().replace(l.regQuotation,"$1");n.setValue(e)}return n}static getCurrentEnumValue(e){const t=e.getChildApis().length;if(0===t)return String(0);const r=e.getChildApis()[t-1].getValue();return isNaN(Number(r))?"":`${Number(r)+1}`}static processPropertySigAndDec(e,t){const r=e,n=new o.PropertyInfo(o.ApiType.PROPERTY,e,t),i=r.type?r.type:r.initializer;return n.setApiName(r.name?.getText()),n.setDefinedText(r.getText()),u.processModifiers(r.modifiers,n),n.setIsRequired(!r.questionToken),n.addType(l.processDataType(i)),l.processFunctionTypeNode(r.type,n,new o.ParamInfo(o.ApiType.PARAM),!1),n.setTypeKind(i?.kind),n}static processStruct(e,t){const r=e,n=new o.StructInfo(o.ApiType.STRUCT,e,t),i=r.name?r.name.getText():"";return n.setApiName(i),n.setDefinedText(n.getApiName()),u.processModifiers(r.modifiers,n),n}static processMethod(e,t){const r=e,n=new o.MethodInfo(o.ApiType.METHOD,e,t);n.setDefinedText(r.getText());let a=r.name?r.name.getText():"";(i.default.isConstructorDeclaration(r)||i.default.isConstructSignatureDeclaration(r)||i.default.isCallSignatureDeclaration(r))&&(a=c.StringConstant.CONSTRUCTOR_API_NAME),n.setApiName(a),n.setIsRequired(!r.questionToken),r.typeParameters?.forEach((e=>{n.setGenericInfo(l.processGenericity(e))}));const s=r.getText().replace(/export\s+|declare\s+|function\s+|\r\n|\;/g,"");if(n.setCallForm(s),r.type&&i.default.SyntaxKind.VoidKeyword!==r.type.kind){const e=l.processDataType(r.type);n.setReturnValue(e),n.setReturnValueType(r.type.kind),l.processFunctionTypeNode(r.type,n,new o.ParamInfo(o.ApiType.PARAM),!1)}for(let e=0;e<r.parameters.length;e++){const t=r.parameters[e],i=l.processParam(t,n);n.addParam(i)}return i.default.isCallSignatureDeclaration(r)||i.default.isConstructSignatureDeclaration(r)||u.processModifiers(r.modifiers,n),n}static processParam(e,r){const n=new o.ParamInfo(o.ApiType.PARAM);if(n.setApiName(e.name.getText()),n.setIsRequired(!e.questionToken),n.setDefinedText(e.getText()),n.setParamType(e.type?.kind),void 0===e.type)return n;let a;if(l.processFunctionTypeNode(e.type,r,n,!0),i.default.isLiteralTypeNode(e.type))a=t.typeMap.get(e.type.literal.kind);else if(i.default.isFunctionTypeNode(e.type)){const t=l.processMethod(e.type,r);n.setMethodApiInfo(t)}return n.setType(l.processDataType(e.type)),n}static getFilePathFromNode(e){return i.default.isSourceFile(e)?e.fileName:l.getFilePathFromNode(e.parent)}static setSymbolOfTypeReferenceMap(e,t,r){l.symbolOfTypeReferenceMap.has(e)||l.symbolOfTypeReferenceMap.set(e,new Map);const n=l.symbolOfTypeReferenceMap.get(e);n&&(n.has(t.getFullText().trim())||n.set(t.getFullText().trim(),r))}static getSymbolOfTypeReferenceMap(e,t){const r=l.symbolOfTypeReferenceMap.get(e);if(!r)return;const n=r.get(t.getFullText().trim());return n||void 0}static processFunctionTypeNode(e,t,r,n=!0){e&&(i.default.isTypeLiteralNode(e)?l.processFunctionTypeObject(e,t,r,n):i.default.isUnionTypeNode(e)?e.types.forEach((e=>{l.processFunctionTypeNode(e,t,r,n)})):i.default.isFunctionTypeNode(e),i.default.isTypeReferenceNode(e)&&l.processFunctionTypeReference(e,t,r,n))}static processFunctionTypeReference(e,r,n,a=!0){const o=e.typeArguments;o?.forEach((e=>{l.processFunctionTypeNode(e,r,n,a)}));try{const o=t.parserParam.getTsProgram(),s=o.getTypeChecker().getSymbolAtLocation(e.typeName);if(!s)return;const c=s.declarations;if(!c)return;const u=c[0];r.getKitInfoFromParent(r);if(!i.default.isTypeAliasDeclaration(u))return;const d=l.processTypeAlias(u,r);a?n.addTypeLocations(d):r.addTypeLocations(d)}catch(e){}}static processFunctionTypeObject(e,t,r,n=!0){t.getKitInfoFromParent(t);e.members.forEach((e=>{const i=l.processPropertySigAndDec(e,t);n?r.addObjLocations(i):t.addObjLocations(i)}))}static processDataType(e){const t=[];return e?i.default.isUnionTypeNode(e)?(e.types.forEach((e=>{t.push(e.getText())})),t):(t.push(e.getText()),t):t}static TypeAliasDeclaration(e,t){const r=e;return r.type.kind===i.default.SyntaxKind.TypeLiteral?l.processTypeInterface(r,t):l.processTypeAlias(r,t)}static processTypeInterface(e,t){const r=new o.InterfaceInfo(o.ApiType.INTERFACE,e,t);return r.setApiName(e.name.getText()),r.setDefinedText(r.getApiName()),u.processModifiers(e.modifiers,r),r}static processTypeAlias(e,t){const r=new Map([[i.default.SyntaxKind.UnionType,o.TypeAliasType.UNION_TYPE],[i.default.SyntaxKind.TypeLiteral,o.TypeAliasType.OBJECT_TYPE],[i.default.SyntaxKind.TupleType,o.TypeAliasType.TUPLE_TYPE],[i.default.SyntaxKind.TypeReference,o.TypeAliasType.REFERENCE_TYPE]]),n=new o.TypeAliasInfo(o.ApiType.TYPE_ALIAS,e,t);n.setApiName(e.name.getText());const a=r.get(e.type.kind);a&&n.setTypeName(a);let s=e.type;if(i.default.isFunctionTypeNode(s)){s.parameters.forEach((r=>{const i=l.processParam(r,new o.MethodInfo(o.ApiType.METHOD,e,t));n.setParamInfos(i)})),n.setReturnType(s.type.getText()),n.setTypeIsFunction(!0)}else i.default.isTypeLiteralNode(s)&&(s.members.forEach((e=>{const t=l.processPropertySigAndDec(e,n);n.setTypeLiteralApiInfos(t)})),n.setTypeIsObject(!0));return n.setDefinedText(e.getText()),u.processModifiers(e.modifiers,n),n.addType(l.processDataType(e.type)),n}static processVariableStat(e,r){const n=e,a=n.getText(),o=n.declarationList.declarations[0];let s="",c="";if(o.type)if(i.default.isLiteralTypeNode(o.type)){const e=t.typeMap.get(o.type.literal.kind);s=e||"",c=o.type.literal.getText().replace(l.regQuotation,"$1")}else s=o.type.getText();if(/declare\s+const/.test(n.getText())&&/[a-zA-Z]+(Attribute|Interface)/.test(s))return l.processDeclareConstant(n,a,s,r);if(o.initializer){const e=o.initializer.getText();return l.processConstant(n,a,e,r)}const u=o.type;if(u&&i.default.isLiteralTypeNode(u)){const e=u.getText();return l.processConstant(n,a,e,r)}return l.processVaribleProperty(n,a,r)}static processConstant(e,t,r,n){const i=e.declarationList.declarations[0],a=new o.ConstantInfo(o.ApiType.CONSTANT,e,n);return a.setDefinedText(t),a.setApiName(i.name.getText()),a.setValue(r),a}static processDeclareConstant(e,t,r,n){const i=e.declarationList.declarations[0],a=new o.ConstantInfo(o.ApiType.DECLARE_CONST,e,n);return a.setDefinedText(t),a.setApiName(i.name.getText()),a.setValue(r),a}static processVaribleProperty(e,t,r){const n=e.declarationList.declarations[0],i=new o.PropertyInfo(o.ApiType.PROPERTY,e,r);return i.setDefinedText(t),i.setApiName(n.name.getText()),i.addType(l.processDataType(n.type)),i.setIsRequired(!0),i.setTypeKind(n?.type?.kind),s.StringUtils.hasSubstring(t,c.StringConstant.CONST_KEY_WORD)&&i.setIsReadOnly(!0),i}}t.NodeProcessorHelper=l,l.regQuotation=/^[\'|\"](.*)[\'|\"]$/,l.symbolOfTypeReferenceMap=new Map;class u{static setIsStatic(e){e.setIsStatic(!0)}static setIsReadonly(e){const t=e;t.setIsReadOnly&&t.setIsReadOnly(!0)}static setIsExport(e){e.setIsExport(!0)}static processModifiers(e,r){let n="";e&&e.forEach((e=>{o.containerApiTypes.has(r.apiType)&&!i.default.isDecorator(e)&&(n+=` ${e.getText()}`);const a=t.modifierProcessorMap.get(e.kind);a&&a(r)})),o.containerApiTypes.has(r.apiType)&&(n+=` ${r.getApiType().toLowerCase()} ${r.getApiName()}`,r.setDefinedText(n.trim()))}}t.ModifierHelper=u,t.nodeProcessorMap=new Map([[i.default.SyntaxKind.ExportAssignment,l.processExportAssignment],[i.default.SyntaxKind.ExportDeclaration,l.processExportDeclaration],[i.default.SyntaxKind.ImportDeclaration,l.processImportInfo],[i.default.SyntaxKind.VariableStatement,l.processVariableStat],[i.default.SyntaxKind.MethodDeclaration,l.processMethod],[i.default.SyntaxKind.MethodSignature,l.processMethod],[i.default.SyntaxKind.FunctionDeclaration,l.processMethod],[i.default.SyntaxKind.Constructor,l.processMethod],[i.default.SyntaxKind.ConstructSignature,l.processMethod],[i.default.SyntaxKind.CallSignature,l.processMethod],[i.default.SyntaxKind.PropertyDeclaration,l.processPropertySigAndDec],[i.default.SyntaxKind.PropertySignature,l.processPropertySigAndDec],[i.default.SyntaxKind.EnumMember,l.processEnumValue],[i.default.SyntaxKind.EnumDeclaration,l.processEnum],[i.default.SyntaxKind.TypeAliasDeclaration,l.processTypeAlias],[i.default.SyntaxKind.ClassDeclaration,l.processClass],[i.default.SyntaxKind.InterfaceDeclaration,l.processInterface],[i.default.SyntaxKind.ModuleDeclaration,l.processBaseModule],[i.default.SyntaxKind.StructDeclaration,l.processStruct]]),t.modifierProcessorMap=new Map([[i.default.SyntaxKind.ConstKeyword,u.setIsReadonly],[i.default.SyntaxKind.ReadonlyKeyword,u.setIsReadonly],[i.default.SyntaxKind.StaticKeyword,u.setIsStatic],[i.default.SyntaxKind.ExportKeyword,u.setIsExport]]),t.typeMap=new Map([[i.default.SyntaxKind.StringLiteral,"string"],[i.default.SyntaxKind.NumericLiteral,"number"]])},3359:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return i(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resultsProcessMethod=t.ResultsProcessHelper=void 0;const s=o(r(58843)),c=r(37583),l=r(8136),u=r(44791),d=a(r(68020));class p{static getApiInfosInFileMap(e,t){if(t===l.StringConstant.SELF)return[];return e.get(t).get(l.StringConstant.SELF)}static processFileApiMap(e){const t=[];for(const r of e.keys()){p.getApiInfosInFileMap(e,r).forEach((e=>{p.processApiInfo(e),t.push(e)}))}return t}static processApiInfo(e){if(p.cleanApiInfo(e),!u.containerApiTypes.has(e.getApiType()))return;e.getChildApis().forEach((e=>{p.processApiInfo(e)}))}static cleanApiInfo(e){e&&(e.setParentApi(void 0),e.removeNode(),(e instanceof u.MethodInfo||e instanceof u.PropertyInfo)&&(p.cleanChildrenApiInfo(e.getObjLocations()),p.cleanChildrenApiInfo(e.getTypeLocations()),e instanceof u.MethodInfo&&e.getParams().forEach((e=>{p.cleanChildrenApiInfo(e.getObjLocations()),p.cleanChildrenApiInfo(e.getTypeLocations()),p.cleanApiInfo(e.getMethodApiInfo())}))),e instanceof u.TypeAliasInfo&&(p.cleanChildrenApiInfo(e.getTypeLiteralApiInfos()),e.getParamInfos().forEach((e=>{p.cleanChildrenApiInfo(e.getObjLocations()),p.cleanChildrenApiInfo(e.getTypeLocations()),p.cleanApiInfo(e.getMethodApiInfo())}))),p.processJsDocInfos(e))}static cleanChildrenApiInfo(e){e&&e.forEach((e=>{p.cleanApiInfo(e)}))}static processJsDocInfos(e){if(!(e instanceof u.ApiInfo))return;e.getJsDocInfos().forEach((e=>{e.removeTags()}))}static processFileApiMapForGetBasicApi(e){let t=[];for(const r of e.keys()){p.getApiInfosInFileMap(e,r).forEach((e=>{t=t.concat(p.processApiInfoForGetBasicApi(e))}))}return t}static processApiInfoForGetBasicApi(e){let t=[];if(t=t.concat(e),!u.containerApiTypes.has(e.getApiType()))return t;return e.getChildApis().forEach((e=>{t=t.concat(p.processApiInfoForGetBasicApi(e))})),t}static processFileApiMapForEachSince(e){const t=[];for(const r of e.keys()){p.getApiInfosInFileMap(e,r).forEach((e=>{const r=p.processApiInfoForEachSince(e);0!==r.length&&t.push(...r)}))}return t}static processApiInfoForEachSince(e){const t=p.getNodeInfo(e);if(!u.containerApiTypes.has(e.getApiType()))return t;return e.getChildApis().forEach((e=>{const r=p.processApiInfoForEachSince(e);p.mergeResultApis(t,r)})),t}static mergeResultApis(e,t){e.forEach((e=>{const r=e,n=p.getResultApisVersion(t,Number(r.getSince()));r.addChildApi(n)}))}static getResultApisVersion(e,t){return e.filter((e=>{const r=Number(e.getSince());return-1===r||r>=t}))}static getNodeInfo(e){let r=e.getApiType();const n=t.resultsProcessMethod.get(r);if(!n)return[];return n(e)}static processProperty(e){const t=[],r=e,n=r.getJsDocInfos();if(0===n.length){const n=new d.PropertyInfo(e.getApiType(),new c.Comment.JsDocInfo);n.setType(r.getType().join(" | ")),n.setName(e.getApiName()),n.setIsRequired(r.getIsRequired()),n.setIsReadOnly(r.getIsReadOnly()),n.setIsStatic(r.getIsStatic()),t.push(n)}return n.forEach((n=>{const i=new d.PropertyInfo(e.getApiType(),n),a=n.getTypeInfo();i.setType(a?a.replace(/^[\?]*[\(](.*)[\)]$/,"$1"):r.getType().join(" | ")),i.setName(e.getApiName()),i.setIsRequired(r.getIsRequired()),i.setIsReadOnly(r.getIsReadOnly()),i.setIsStatic(r.getIsStatic()),t.push(i)})),t}static processClass(e){const t=[],r=e,n=r.getJsDocInfos();if(0===n.length){const n=new d.ClassInterfaceInfo(e.getApiType(),new c.Comment.JsDocInfo);n.setName(e.getApiName()),n.setParentClasses(r.getParentClasses()),t.push(n)}return n.forEach((n=>{const i=new d.ClassInterfaceInfo(e.getApiType(),n);i.setName(e.getApiName()),i.setParentClasses(r.getParentClasses()),t.push(i)})),t}static processInterface(e){const t=[],r=e,n=r.getJsDocInfos();if(0===n.length){const n=new d.ClassInterfaceInfo(e.getApiType(),new c.Comment.JsDocInfo);n.setName(e.getApiName()),n.setParentClasses(r.getParentClasses()),t.push(n)}return n.forEach((n=>{const i=new d.ClassInterfaceInfo(e.getApiType(),n);i.setName(e.getApiName()),i.setParentClasses(r.getParentClasses()),t.push(i)})),t}static processNamespace(e){const t=[],r=e.getJsDocInfos();if(0===r.length){const r=new d.NamespaceEnumInfo(e.getApiType(),new c.Comment.JsDocInfo);r.setName(e.getApiName()),t.push(r)}return r.forEach((r=>{const n=new d.NamespaceEnumInfo(e.getApiType(),r);n.setName(e.getApiName()),t.push(n)})),t}static processMethod(e){const t=[],r=e,n=r.getJsDocInfos();if(0===n.length){const n=new d.MethodInfo(e.getApiType(),new c.Comment.JsDocInfo);n.setName(e.getApiName()),n.setCallForm(r.getCallForm()),n.setReturnValue(r.getReturnValue().join(" | ")),r.getParams().forEach((e=>{const t=new d.ParamInfo(e.getApiType(),new c.Comment.JsDocInfo);t.setName(e.getApiName()),t.setType(e.getType().join(" | ")),t.setIsRequired(e.getIsRequired()),n.addParam(t)})),n.setIsStatic(r.getIsStatic()),t.push(n)}return n.forEach((n=>{const i=new d.MethodInfo(e.getApiType(),n);i.setName(e.getApiName()),i.setCallForm(r.getCallForm()),i.setReturnValue(r.getReturnValue().join(" | ")),r.getParams().forEach((e=>{const t=new d.ParamInfo(e.getApiType(),new c.Comment.JsDocInfo);t.setName(e.getApiName()),t.setType(e.getType().join(" | ")),t.setIsRequired(e.getIsRequired()),i.addParam(t)})),i.setIsStatic(r.getIsStatic()),t.push(i)})),t}static processExportDefault(e){const t=[],r=new d.ExportDefaultInfo(e.getApiType());return r.setName(e.getApiName()),t.push(r),t}static processImportInfo(e){const t=[],r=e,n=new d.ImportInfo(e.getApiType());return r.getImportValues().forEach((e=>{n.addImportValue(e.key,e.value)})),t.push(n),t}static processConstant(e){const t=[],r=e,n=r.getJsDocInfos();if(0===n.length){const n=new d.ConstantInfo(e.getApiType(),new c.Comment.JsDocInfo);n.setName(e.getApiName());const i=r.getValue();n.setValue(i.replace(p.regQuotation,"$1")),n.setType(isNaN(Number(i))?"string":"number");const a=r.getNode();if(a.initializer){const e=f.get(a.initializer.kind);n.setType(e||"")}t.push(n)}return n.forEach((n=>{const i=new d.ConstantInfo(e.getApiType(),n);i.setName(e.getApiName());const a=r.getValue();i.setValue(a.replace(p.regQuotation,"$1")),i.setType(isNaN(Number(a))?"string":"number");const o=r.getNode();if(o.initializer){const e=f.get(o.initializer.kind);i.setType(e||"")}t.push(i)})),t}static processDeclareConstant(e){const t=[],r=e,n=r.getJsDocInfos();if(0===n.length){const n=new d.DeclareConstInfo(e.getApiType(),new c.Comment.JsDocInfo);n.setName(e.getApiName()),n.setType(r.getValue());const i=r.getNode();if(i.initializer){const e=f.get(i.initializer.kind);n.setType(e||"")}t.push(n)}return n.forEach((n=>{const i=new d.DeclareConstInfo(e.getApiType(),n);i.setName(e.getApiName()),i.setType(r.getValue());const a=r.getNode();if(a.initializer){const e=f.get(a.initializer.kind);i.setType(e||"")}t.push(i)})),t}static processEnum(e){const t=[],r=e.getJsDocInfos();if(0===r.length){const r=new d.NamespaceEnumInfo(e.getApiType(),new c.Comment.JsDocInfo);r.setName(e.getApiName()),t.push(r)}return r.forEach((r=>{const n=new d.NamespaceEnumInfo(e.getApiType(),r);n.setName(e.getApiName()),t.push(n)})),t}static processEnumMember(e){const t=[],r=e,n=r.getJsDocInfos();if(0===n.length){const n=new d.EnumValueInfo(e.getApiType(),new c.Comment.JsDocInfo);n.setName(e.getApiName()),n.setValue(r.getValue()),t.push(n)}return n.forEach((n=>{const i=new d.EnumValueInfo(e.getApiType(),n);i.setName(e.getApiName()),i.setValue(r.getValue()),t.push(i)})),t}static processTypeAlias(e){const t=[],r=e,n=r.getJsDocInfos();if(0===n.length){const e=p.processTypeAliasGetNewInfo(r,new c.Comment.JsDocInfo);t.push(e)}return n.forEach((e=>{const n=p.processTypeAliasGetNewInfo(r,e);t.push(n)})),t}static processTypeAliasGetNewInfo(e,t){if(e.getTypeName()===u.TypeAliasType.UNION_TYPE){const r=new d.UnionTypeInfo(e.getTypeName(),t);return r.setName(e.getApiName()),r.addValueRanges(e.getType().map((e=>e.replace(p.regQuotation,"$1")))),r}const r=new d.TypeAliasInfo(e.getApiType(),t);return r.setName(e.getApiName()),r.setType(e.getType().join(" | ")),r}}t.ResultsProcessHelper=p,p.regQuotation=/^[\'|\"](.*)[\'|\"]$/;const f=new Map([[s.default.SyntaxKind.StringLiteral,"string"],[s.default.SyntaxKind.NumericLiteral,"number"]]);t.resultsProcessMethod=new Map([[u.ApiType.PROPERTY,p.processProperty],[u.ApiType.CLASS,p.processClass],[u.ApiType.INTERFACE,p.processInterface],[u.ApiType.NAMESPACE,p.processNamespace],[u.ApiType.METHOD,p.processMethod],[u.ApiType.EXPORT_DEFAULT,p.processExportDefault],[u.ApiType.IMPORT,p.processImportInfo],[u.ApiType.CONSTANT,p.processConstant],[u.ApiType.DECLARE_CONST,p.processDeclareConstant],[u.ApiType.ENUM,p.processEnum],[u.ApiType.ENUM_VALUE,p.processEnumMember],[u.ApiType.TYPE_ALIAS,p.processTypeAlias]])},30871:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Parser=void 0;const i=n(r(79896)),a=n(r(16928)),o=n(r(58843)),s=n(r(2543)),c=r(17858),l=r(3359),u=r(44791),d=r(8136),p=r(40745),f=r(26499);class m{static cleanParserParamSDK(){c.parserParam.setFileDir(""),c.parserParam.setSdkPath("")}static parseDir(e,t=""){m.cleanParserParamSDK();const r=p.FileUtils.readFilesInDir(e,(e=>e.endsWith(d.StringConstant.DTS_EXTENSION)||e.endsWith(d.StringConstant.DETS_EXTENSION))),n=new Map;let i=[];return""===t?(c.parserParam.setSdkPath(e),i=r):p.FileUtils.isDirectory(t)?(m.needLib=!0,c.parserParam.setSdkPath(t),i=p.FileUtils.readFilesInDir(t,(e=>e.endsWith(d.StringConstant.DTS_EXTENSION)||e.endsWith(d.StringConstant.DETS_EXTENSION)))):p.FileUtils.isFile(t)&&(m.needLib=!0,c.parserParam.setSdkPath(a.default.resolve(t,"..")),i=[t]),c.parserParam.setFileDir(e),c.parserParam.setRootNames(i),m.needLib&&c.parserParam.setLibPath(a.default.resolve(p.FileUtils.getBaseDirName(),"./libs")),c.parserParam.setProgram(),i.forEach((t=>{m.parseFile(e,t,n)})),n}static parseFile(e,t,r){if(!i.default.existsSync(t))return new Map;""===c.parserParam.getFileDir()&&(c.parserParam.setSdkPath(e),c.parserParam.setFileDir(a.default.resolve(e,"..")),c.parserParam.setRootNames([t]),m.needLib&&c.parserParam.setLibPath(a.default.resolve(p.FileUtils.getBaseDirName(),"./libs")),c.parserParam.setProgram()),c.parserParam.setFilePath(t);let n="";n=a.default.relative(e,t);const s=c.parserParam.getTsProgram();s.getTypeChecker();const l=c.parserParam.compilerHost.getCanonicalFileName(t.replace(/\\/g,"/")),f=s.getSourceFileByPath(l);if(!f)return new Map;const g=[t];f.statements.forEach((e=>{o.default.isImportDeclaration(e)&&e.moduleSpecifier.getText().startsWith("./",1)&&g.push(a.default.resolve(t,"..",e.moduleSpecifier.getText().replace(/'|"/g,"")))}));const _=new u.ApiInfo(u.ApiType.SOURCE_FILE,f,void 0);_.setFilePath(n),_.setFileAbsolutePath(t),_.setApiName(n),_.setIsStruct(t.endsWith(d.StringConstant.ETS_EXTENSION));const h=new Map;return h.set(d.StringConstant.SELF,[_]),c.NodeProcessorHelper.processReference(f,h,_),f.forEachChild((e=>{c.NodeProcessorHelper.processNode(e,h,_)})),r||(r=new Map),r.set(n,h),r}static getApiInfo(e,t,r){const n=[];if(0===e.length)return n;let i=t;for(let t=0;t<e.length;t++){const r=e[t],a=i.get(r);if(!a)return n;i=a}const a=i.get(d.StringConstant.SELF);if(!a)return n;if(n.push(...a),r){const e=f.DiffHelper.judgeIsSameNameFunction(n);n.forEach((t=>{t.setIsSameNameFunction(e)}))}return n}static getParseResults(e){const t=s.default.cloneDeep(e),r=new Map;for(const n of t.keys()){const t=e.get(n),i=l.ResultsProcessHelper.processFileApiMap(t);r.set(n,i)}return JSON.stringify(Object.fromEntries(r),null,2)}static getParseEachSince(e){const t=s.default.cloneDeep(e),r=new Map;for(const n of t.keys()){const t=e.get(n),i=l.ResultsProcessHelper.processFileApiMapForEachSince(t);return r.set(n,i),JSON.stringify(i,null,2)}return""}static getAllBasicApi(e){let t=[];for(const r of e.keys()){const n=e.get(r),i=l.ResultsProcessHelper.processFileApiMapForGetBasicApi(n);t=t.concat(i)}return t}}t.Parser=m,m.needLib=!1},12587:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ApiStatisticsHelper=void 0;const i=r(44791),a=r(16137),o=r(8136),s=r(4e3),c=n(r(58843));class l{static getApiStatisticsInfos(e){const t=[],r=[];for(const n of e.keys()){const i=e.get(n);i&&l.processFileApiMap(i,t,r)}return{apiStatisticsInfos:t,allApiStatisticsInfos:r}}static processFileApiMap(e,t,r){for(const n of e.keys()){if(n===o.StringConstant.SELF)continue;const i=e.get(n);if(!i||Array.isArray(i))continue;const a=i.get(o.StringConstant.SELF),s=new Map;if(!a||!Array.isArray(a))continue;l.connectDefinedText(a,s);const c=new Set;a.forEach((e=>{l.processApiInfo(e,t,s,r,c)}))}}static connectDefinedText(e,t){e.forEach((e=>{if(e.getApiType()===i.ApiType.METHOD){if(a.notMergeDefinedText.has(e.getApiName()))return;const r=t.get(l.joinRelations(e));if(r){const n=`${r}\n${e.getDefinedText()}`;return void t.set(l.joinRelations(e),n)}t.set(l.joinRelations(e),e.getDefinedText())}if(i.containerApiTypes.has(e.getApiType())){const r=e;l.connectDefinedText(r.getChildApis(),t)}}))}static joinRelations(e){return e.getHierarchicalRelations().join()}static processApiInfo(e,t,r,n,s){const c=e;if(n.push(l.initApiStatisticsInfo(c,r,!0)),!a.apiStatisticsType.has(e.getApiType()))return;if(e.getApiName()===o.StringConstant.CONSTRUCTOR_API_NAME)return;const u=l.initApiStatisticsInfo(c,r);if(a.apiNotStatisticsType.has(u.getApiType())||s.has(l.joinRelations(e))||t.push(u),s.add(l.joinRelations(e)),!i.containerApiTypes.has(c.getApiType()))return;c.getChildApis().forEach((e=>{l.processApiInfo(e,t,r,n,s)}))}static initApiStatisticsInfo(e,t,r){const n=new a.ApiStatisticsInfo,s=e.getHierarchicalRelations();s.length>o.NumberConstant.RELATION_LENGTH&&n.setParentModuleName(s[s.length-o.NumberConstant.RELATION_LENGTH]);const c=l.joinRelations(e),u=t.get(c);r?n.setDefinedText(e.getDefinedText()):n.setDefinedText(u||e.getDefinedText());let d=!1;if(e.getApiType()===i.ApiType.METHOD){d=!e.getIsRequired()}else if(e.getApiType()===i.ApiType.PROPERTY){d=!e.getIsRequired()}if(n.setFilePath(e.getFilePath()).setApiType(e.getApiType()).setApiName(e.getApiName()).setPos(e.getPos()).setHierarchicalRelations(s.join("/")).setDecorators(e.getDecorators()).setParentApiType(e.getParentApiType()).setIsOptional(d),i.notJsDocApiTypes.has(e.getApiType()))return n;const p=e.getJsDocInfos()[0];p&&n.setSince(p.getSince());const f=e.getLastJsDocInfo();return f?n.setSyscap(f.getSyscap()?f.getSyscap():l.extendSyscap(e)).setPermission(f.getPermission()).setIsForm(f.getIsForm()).setIsCrossPlatForm(f.getIsCrossPlatForm()).setDeprecatedVersion(f.getDeprecatedVersion()===o.NumberConstant.DEFAULT_DEPRECATED_VERSION?"":f.getDeprecatedVersion()).setUseInstead(f.getUseinstead()).setApiLevel(f.getIsSystemApi()).setModelLimitation(f.getModelLimitation()).setIsAutomicService(f.getIsAtomicService()).setErrorCodes(f.getErrorCode()).setKitInfo(f.getKit()):n.setSyscap(l.extendSyscap(e)),n}static extendSyscap(e){let t=e,r="";const n=t.getNode();try{for(;n&&t&&!c.default.isSourceFile(n);){const e=t.getLastJsDocInfo();if(e&&(r=e.getSyscap()),r)return r;t=t.getParentApi()}}catch(e){s.LogUtil.e("SYSCAP ERROR",e)}return r}static getApiNumber(e){const t=new Set;return e.forEach((e=>{t.add(e.getHierarchicalRelations())})),t.size}}t.ApiStatisticsHelper=l},32875:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const i=n(r(62116)),a=n(r(59620)),o=r(11162),s=r(77926),c=r(4e3),l=r(40745);class u{constructor(){this.program=new i.default.Command}addPluginCommand(e){const t=e.pluginOptions;if(!t)return;const r=this.program.name(t.name).description(t.description).version(t.version).action((t=>{this.judgeOpts(t),e.start(t),e.stop()}));t.commands.forEach((e=>{e.isRequiredOption?r.requiredOption(...e.options):r.option(...e.options)}))}buildCommands(){this.program.parse()}judgeOpts(e){const t=e.toolName;switch(s.toolNameSet.has(t)||this.stopRun(`error toolName "${t}",toolName not in [${[...s.toolNameSet]}] `),t){case s.toolNameType.COLLECT:const t=e.collectPath;""!==t&&l.FileUtils.isExists(t)||this.stopRun(`error collectPath "${t}",collectPath need a exist file path`);break;case s.toolNameType.LABELDETECTION:const r=e.checkLabels;""===r&&this.stopRun(`error checkLabels "${r}",detection tools need checkLabels`)}}stopRun(e){c.LogUtil.e("commander",e),this.program.help({error:!0})}}class d{constructor(){this.commandBuilder=new u}runPlugins(){o.getToolConfiguration().plugins.forEach((e=>{this.commandBuilder.addPluginCommand(e)})),this.commandBuilder.buildCommands()}}Object.assign(process.env,a.default),(new d).runPlugins()},77002:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ErrorBaseInfo=t.ApiBaseInfo=t.ApiCheckInfo=t.ApiResultMessage=t.ApiResultInfo=t.ApiResultSimpleInfo=t.incompatibleApiDiffTypes=t.ErrorMessage=t.ParticularErrorCode=t.ErrorLevel=t.LogType=t.ErrorID=t.ErrorType=void 0;const n=r(40149);var i;!function(e){e.UNKNOW_DECORATOR="unknow decorator",e.MISSPELL_WORDS="misspell words",e.NAMING_ERRORS="naming errors",e.UNKNOW_PERMISSION="unknow permission",e.UNKNOW_SYSCAP="unknow syscap",e.UNKNOW_DEPRECATED="unknow deprecated",e.WRONG_ORDER="wrong order",e.WRONG_VALUE="wrong value",e.WRONG_SCENE="wrong scene",e.PARAMETER_ERRORS="wrong parameter",e.API_PAIR_ERRORS="limited api pair errors",e.FORBIDDEN_WORDS="forbidden word",e.API_CHANGE_ERRORS="api change errors",e.TS_SYNTAX_ERROR="TS syntax error",e.NO_JSDOC="No jsdoc",e.JSDOC_HAS_CHINESE="JSDOC_HAS_CHINESE",e.ERROR_ERROR_CODE="error_error_code"}(t.ErrorType||(t.ErrorType={})),function(e){e[e.UNKNOW_DECORATOR_ID=0]="UNKNOW_DECORATOR_ID",e[e.MISSPELL_WORDS_ID=1]="MISSPELL_WORDS_ID",e[e.NAMING_ERRORS_ID=2]="NAMING_ERRORS_ID",e[e.UNKNOW_PERMISSION_ID=3]="UNKNOW_PERMISSION_ID",e[e.UNKNOW_SYSCAP_ID=4]="UNKNOW_SYSCAP_ID",e[e.UNKNOW_DEPRECATED_ID=5]="UNKNOW_DEPRECATED_ID",e[e.WRONG_ORDER_ID=6]="WRONG_ORDER_ID",e[e.WRONG_VALUE_ID=7]="WRONG_VALUE_ID",e[e.WRONG_SCENE_ID=8]="WRONG_SCENE_ID",e[e.PARAMETER_ERRORS_ID=9]="PARAMETER_ERRORS_ID",e[e.API_PAIR_ERRORS_ID=10]="API_PAIR_ERRORS_ID",e[e.FORBIDDEN_WORDS_ID=11]="FORBIDDEN_WORDS_ID",e[e.API_CHANGE_ERRORS_ID=12]="API_CHANGE_ERRORS_ID",e[e.TS_SYNTAX_ERROR_ID=13]="TS_SYNTAX_ERROR_ID",e[e.NO_JSDOC_ID=14]="NO_JSDOC_ID",e[e.JSDOC_HAS_CHINESE=15]="JSDOC_HAS_CHINESE",e[e.ERROR_ERROR_CODE=16]="ERROR_ERROR_CODE"}(t.ErrorID||(t.ErrorID={})),function(e){e.LOG_API="Api",e.LOG_JSDOC="JsDoc",e.LOG_FILE="File"}(t.LogType||(t.LogType={})),function(e){e[e.HIGH=3]="HIGH",e[e.MIDDLE=2]="MIDDLE",e[e.LOW=1]="LOW"}(t.ErrorLevel||(t.ErrorLevel={})),function(e){e.ERROR_CODE_201="201",e.ERROR_CODE_202="202",e.ERROR_CODE_401="401",e.ERROR_PERMISSION="permission",e.ERROR_SYSTEMAPI="systemapi"}(t.ParticularErrorCode||(t.ParticularErrorCode={})),function(e){e.ERROR_INFO_VALUE_EXTENDS="The [extends] tag value is incorrect. Please check if the tag value matches the inherited class name.",e.ERROR_INFO_VALUE_IMPLEMENTS="The [implements] tag value is incorrect. Please check if the tag value matches the inherited class name.",e.ERROR_INFO_VALUE_ENUM="The [enum] tag type is incorrect. Please check if the tag type is { string } or { number }.",e.ERROR_INFO_VALUE_SINCE="The [since] tag value is incorrect. Please check if the tag value is a numerical value.",e.ERROR_INFO_VALUE_SINCE_NUMBER="The [since] value is greater than the latest version number.",e.ERROR_INFO_VALUE_SINCE_JSDOC="The [since] value for different jsdoc should not be the same.",e.ERROR_INFO_RETURNS="The [returns] tag was used incorrectly. The returns tag should not be used when the return type is void.",e.ERROR_INFO_VALUE_RETURNS="The [returns] tag type is incorrect. Please check if the tag type is consistent with the return type.",e.ERROR_INFO_VALUE_USEINSTEAD="The [useinstead] tag value is incorrect. Please check the usage method.",e.ERROR_INFO_VALUE_TYPE="The [type] tag type is incorrect. Please check if the type matches the attribute type.",e.ERROR_INFO_VALUE_DEFAULT="The [default] tag value is incorrect. Please supplement the default value.",e.ERROR_INFO_VALUE_PERMISSION="The [permission] tag value is incorrect. Please check if the permission field has been configured or update the configuration file.",e.ERROR_INFO_VALUE_DEPRECATED="The [deprecated] tag value is incorrect. Please check the usage method.",e.ERROR_INFO_VALUE_SYSCAP="The [syscap] tag value is incorrect. Please check if the syscap field is configured.",e.ERROR_INFO_VALUE_NAMESPACE="The [namespace] tag value is incorrect. Please check if it matches the namespace name.",e.ERROR_INFO_VALUE_INTERFACE="The [interface] label value is incorrect. Please check if it matches the interface name.",e.ERROR_INFO_VALUE_TYPEDEF="The [typedef] tag value is incorrect. Please check if it matches the interface name or type content.",e.ERROR_INFO_VALUE_STRUCT="The [struct] tag value is incorrect. Please check if it matches the struct name.",e.ERROR_INFO_TYPE_PARAM="The type of the [$$] [param] tag is incorrect. Please check if it matches the type of the [$$] parameter.",e.ERROR_INFO_VALUE_PARAM="The value of the [$$] [param] tag is incorrect. Please check if it matches the [$$] parameter name.",e.ERROR_INFO_VALUE1_THROWS="The type of the [$$] [throws] tag is incorrect. Please fill in [BusinessError].",e.ERROR_INFO_VALUE2_THROWS="The type of the [$$] [throws] tag is incorrect. Please check if the tag value is a numerical value.",e.ERROR_INFO_VALUE3_THROWS="The description of the [401 throws] is incorrect. please fix it according to the specification.",e.ERROR_INFO_INHERIT="It was detected that there is an inheritable label [$$] in the current file, but there are child nodes without this label.",e.ERROR_INFO_FOLLOW="It was detected that there is a following label [$$] in the current file, but the parent nodes without this label.",e.ERROR_ORDER="JSDoc label order error, please adjust the order of [$$] labels.",e.ERROR_LABELNAME="The [$$] tag does not exist. Please use a valid JSDoc tag.",e.ERROR_LOST_LABEL="JSDoc tag validity verification failed. Please confirm if the [$$] tag is missing.",e.ERROR_USE="JSDoc label validity verification failed. The [$$] label is not allowed. Please check the label usage method.",e.ERROR_MORELABEL="JSDoc tag validity verification failed.There are [$$] redundant [$$]. Please check if the tag should be deleted.",e.ERROR_REPEATLABEL="The validity verification of the JSDoc tag failed. The [$$] tag is not allowed to be reused, please delete the extra tags.",e.ERROR_USE_INTERFACE="The validity verification of the JSDoc tag failed. The [interface] tag and [typedef] tag are not allowed to be used simultaneously. Please confirm the interface class.",e.ERROR_EVENT_NAME_STRING="The event name should be string.",e.ERROR_EVENT_NAME_NULL="The event name cannot be Null value.",e.ERROR_EVENT_NAME_SMALL_HUMP='The event name should be named by small hump. (Received ["$$"]).',e.ERROR_EVENT_CALLBACK_OPTIONAL="The callback parameter of off function should be optional.",e.ERROR_EVENT_CALLBACK_MISSING="The off functions of one single event should have at least one callback parameter, and the callback parameter should be the last parameter.",e.ERROR_EVENT_ON_AND_OFF_PAIR="The on and off event subscription methods do not appear in pair.",e.ERROR_EVENT_WITHOUT_PARAMETER="The event subscription methods should has at least one parameter.",e.ILLEGAL_USE_ANY="Illegal [$$] keyword used in the API.",e.ERROR_CHANGES_VERSION="Please check if the changed API version number is 10.",e.ERROR_WORD="Error words in [$$]: {$$}. please confirm whether it needs to be corrected to a common word.",e.ERROR_NAMING="Prohibited word in [$$]:{$$}.The word allowed is [$$].",e.ERROR_SCENARIO="Prohibited word in [$$]:{$$} in the [$$] file.",e.ERROR_UPPERCASE_NAME="This name [$$] should be named by all uppercase.",e.ERROR_LARGE_HUMP_NAME="This name [$$] should be named by large hump.",e.ERROR_SMALL_HUMP_NAME="This name [$$] should be named by small hump.",e.ERROR_SMALL_HUMP_NAME_FILE="This API file should be named by small hump.",e.ERROR_LARGE_HUMP_NAME_FILE="This API file should be named by large hump.",e.ERROR_ANONYMOUS_FUNCTION="Anonymous functions or anonymous object that are not allowed are used in this api.",e.ERROR_NO_JSDOC="Jsdoc needs to be added to the current API.",e.ERROR_NO_JSDOC_TAG="add tags to the Jsdoc.",e.ERROR_HAS_CHINESE="Jsdoc has chinese.",e.ERROR_ERROR_CODE="The generic error code does not contain the current error code.",e.ERROR_ERROR_SYSTEMAPI_ATOMICSERVICE="The [systemapi] and [atomicservice] cannot exist in the same doc.",e.ERROR_CHANGES_JSDOC_LEVEL="Forbid changes: Cannot change from public API to system API.",e.ERROR_CHANGES_JSDOC_PERMISSION_RANGE="Forbid changes: Cannot reduce or permission or increase and permission.",e.ERROR_CHANGES_JSDOC_PERMISSION_VALUE="Forbid changes: Cannot change permission value,cannot judge the range change.",e.ERROR_CHANGES_JSDOC_ERROR_CODE_ADD="Forbid changes: The number of error codes cannot be increased from 0 to multiple error codes.",e.ERROR_CHANGES_JSDOC_ERROR_CODE_VALUE="Forbid changes: Cannot change the error code value.",e.ERROR_CHANGES_JSDOC_CARD="Forbid changes: The card application cannot be changed from supported to not supported.",e.ERROR_CHANGES_JSDOC_CROSS_PLATFORM="Forbid changes: Crossplatform cannot be changed from supported to not supported.",e.ERROR_CHANGES_JSDOC_API_DELETE="Forbid changes: API cannot be deleted.",e.ERROR_CHANGES_JSDOC_FA_TO_STAGE="Forbid changes: Cannot change from FAModelOnly to StageModelOnly.",e.ERROR_CHANGES_JSDOC_STAGE_TO_FA="Forbid changes: Cannot change from StageModelOnly to FAModelOnly.",e.ERROR_CHANGES_JSDOC_NA_TO_STAGE="Forbid changes: Cannot change from nothing to StageModelOnly.",e.ERROR_CHANGES_JSDOC_NA_TO_FA="Forbid changes: Cannot change from nothing to FAModelOnly.",e.ERROR_CHANGES_JSDOC_ATOMICSERVICE_TO_NA="Forbid changes: Cannot change from atomicservice to NA.",e.ERROR_CHANGES_FUNCTION_RETURN_TYPE_ADD="Forbid changes: The function return value type cannot be extended.",e.ERROR_CHANGES_FUNCTION_RETURN_TYPE_REDUCE="Forbid changes: The function return value type cannot be reduced.",e.ERROR_CHANGES_FUNCTION_RETURN_TYPE_CHANGE="Forbid changes: Cannot change function return value type.",e.ERROR_CHANGES_FUNCTION_PARAM_POS_CHANGE="Forbid changes: Cannot change function param position.",e.ERROR_CHANGES_FUNCTION_PARAM_REQUIRED_ADD="Forbid changes: Cannot add function required param.",e.ERROR_CHANGES_FUNCTION_PARAM_REDUCE="Forbid changes: Cannot delete function param.",e.ERROR_CHANGES_FUNCTION_PARAM_TO_REQUIRED="Forbid changes: Cannot change form unrequired param to required param.",e.ERROR_CHANGES_FUNCTION_PARAM_TYPE="Forbid changes: Cannot change function param type.",e.ERROR_CHANGES_FUNCTION_PARAM_TYPE_REDUCE="Forbid changes: The function param type range is cannot be reduced.",e.ERROR_CHANGES_PROPERTY_READONLY_TO_REQUIRED="Forbid changes: Read-only properties cannot be changed from optional to required.",e.ERROR_CHANGES_PROPERTY_WRITABLE_TO_UNREQUIRED="Forbid changes: Writable properties cannot be changed from required to optional.",e.ERROR_CHANGES_PROPERTY_WRITABLE_TO_REQUIRED="Forbid changes: Writable properties cannot be changed from optional to required.",e.ERROR_CHANGES_PROPERTY_TYPE_CHANGE="Forbid changes: Cannot change property type.",e.ERROR_CHANGES_PROPERTY_READONLY_ADD="Forbid changes: Cannot Expand the range of readonly property types.",e.ERROR_CHANGES_PROPERTY_WRITABLE_ADD="Forbid changes: Cannot Expand the range of writable property types.",e.ERROR_CHANGES_PROPERTY_WRITABLE_REDUCE="Forbid changes: Cannot reduce the range of writable property types.",e.ERROR_CHANGES_DELETE_DECORATOR="Forbid changes: Decorator cannot be deleted.",e.ERROR_CHANGES_CONSTANT_VALUE="Forbid changes: Cannot change constant value.",e.ERROR_CHANGES_TYPE_ALIAS_VALUE="Forbid changes: Cannot change custom type value.",e.ERROR_CHANGES_TYPE_ALIAS_ADD="Forbid changes: Cannot expand the range of custom type.",e.ERROR_CHANGES_TYPE_ALIAS_REDUCE="Forbid changes: Cannot reduce the range of custom type.",e.ERROR_CHANGES_ENUM_MEMBER_VALUE="Forbid changes: Cannot change Enumeration assignment.",e.ERROR_CHANGES_JSDOC_CHANGE="Forbid changes: Historical JSDoc cannot be changed.",e.ERROR_CHANGES_JSDOC_NUMBER="Forbid changes: API changes must add a new section of JSDoc.",e.ERROR_CHANGES_SYSCAP_NA_TO_HAVE="Forbid changes: Cannot change from NA to syscap.",e.ERROR_CHANGES_SYSCAP_HAVE_TO_NA="Forbid changes: Cannot change from syscap to NA.",e.ERROR_CHANGES_SYSCAP_A_TO_B="Forbid changes: Cannot change syscap value.",e.ERROR_CHANGES_ADD_PROPERTY="Forbid changes: Cannot add new property to interface API."}(i=t.ErrorMessage||(t.ErrorMessage={})),t.incompatibleApiDiffTypes=new Map([[n.ApiDiffType.HISTORICAL_JSDOC_CHANGE,i.ERROR_CHANGES_JSDOC_CHANGE],[n.ApiDiffType.HISTORICAL_API_CHANGE,i.ERROR_CHANGES_JSDOC_NUMBER],[n.ApiDiffType.PUBLIC_TO_SYSTEM,i.ERROR_CHANGES_JSDOC_LEVEL],[n.ApiDiffType.PERMISSION_NA_TO_HAVE,i.ERROR_CHANGES_JSDOC_PERMISSION_VALUE],[n.ApiDiffType.PERMISSION_RANGE_SMALLER,i.ERROR_CHANGES_JSDOC_PERMISSION_RANGE],[n.ApiDiffType.PERMISSION_RANGE_CHANGE,i.ERROR_CHANGES_JSDOC_PERMISSION_VALUE],[n.ApiDiffType.ERROR_CODE_NA_TO_HAVE,i.ERROR_CHANGES_JSDOC_ERROR_CODE_ADD],[n.ApiDiffType.ERROR_CODE_CHANGE,i.ERROR_CHANGES_JSDOC_ERROR_CODE_VALUE],[n.ApiDiffType.CARD_TO_NA,i.ERROR_CHANGES_JSDOC_CARD],[n.ApiDiffType.CROSS_PLATFORM_TO_NA,i.ERROR_CHANGES_JSDOC_CROSS_PLATFORM],[n.ApiDiffType.REDUCE,i.ERROR_CHANGES_JSDOC_API_DELETE],[n.ApiDiffType.FA_TO_STAGE,i.ERROR_CHANGES_JSDOC_FA_TO_STAGE],[n.ApiDiffType.STAGE_TO_FA,i.ERROR_CHANGES_JSDOC_STAGE_TO_FA],[n.ApiDiffType.NA_TO_STAGE,i.ERROR_CHANGES_JSDOC_NA_TO_STAGE],[n.ApiDiffType.NA_TO_FA,i.ERROR_CHANGES_JSDOC_NA_TO_FA],[n.ApiDiffType.FUNCTION_RETURN_TYPE_ADD,i.ERROR_CHANGES_FUNCTION_RETURN_TYPE_ADD],[n.ApiDiffType.FUNCTION_RETURN_TYPE_REDUCE,i.ERROR_CHANGES_FUNCTION_RETURN_TYPE_REDUCE],[n.ApiDiffType.FUNCTION_RETURN_TYPE_CHANGE,i.ERROR_CHANGES_FUNCTION_RETURN_TYPE_CHANGE],[n.ApiDiffType.FUNCTION_PARAM_POS_CHANGE,i.ERROR_CHANGES_FUNCTION_PARAM_POS_CHANGE],[n.ApiDiffType.FUNCTION_PARAM_REQUIRED_ADD,i.ERROR_CHANGES_FUNCTION_PARAM_REQUIRED_ADD],[n.ApiDiffType.FUNCTION_PARAM_REDUCE,i.ERROR_CHANGES_FUNCTION_PARAM_REDUCE],[n.ApiDiffType.FUNCTION_PARAM_TO_REQUIRED,i.ERROR_CHANGES_FUNCTION_PARAM_TO_REQUIRED],[n.ApiDiffType.FUNCTION_PARAM_TYPE_CHANGE,i.ERROR_CHANGES_FUNCTION_PARAM_TYPE],[n.ApiDiffType.FUNCTION_PARAM_TYPE_REDUCE,i.ERROR_CHANGES_FUNCTION_PARAM_TYPE_REDUCE],[n.ApiDiffType.PROPERTY_READONLY_TO_REQUIRED,i.ERROR_CHANGES_PROPERTY_READONLY_TO_REQUIRED],[n.ApiDiffType.PROPERTY_WRITABLE_TO_UNREQUIRED,i.ERROR_CHANGES_PROPERTY_WRITABLE_TO_UNREQUIRED],[n.ApiDiffType.PROPERTY_WRITABLE_TO_REQUIRED,i.ERROR_CHANGES_PROPERTY_WRITABLE_TO_REQUIRED],[n.ApiDiffType.PROPERTY_TYPE_CHANGE,i.ERROR_CHANGES_PROPERTY_TYPE_CHANGE],[n.ApiDiffType.PROPERTY_READONLY_ADD,i.ERROR_CHANGES_PROPERTY_READONLY_ADD],[n.ApiDiffType.PROPERTY_WRITABLE_ADD,i.ERROR_CHANGES_PROPERTY_WRITABLE_ADD],[n.ApiDiffType.PROPERTY_WRITABLE_REDUCE,i.ERROR_CHANGES_PROPERTY_WRITABLE_REDUCE],[n.ApiDiffType.DELETE_DECORATOR,i.ERROR_CHANGES_DELETE_DECORATOR],[n.ApiDiffType.CONSTANT_VALUE_CHANGE,i.ERROR_CHANGES_CONSTANT_VALUE],[n.ApiDiffType.TYPE_ALIAS_CHANGE,i.ERROR_CHANGES_TYPE_ALIAS_VALUE],[n.ApiDiffType.TYPE_ALIAS_ADD,i.ERROR_CHANGES_TYPE_ALIAS_ADD],[n.ApiDiffType.TYPE_ALIAS_REDUCE,i.ERROR_CHANGES_TYPE_ALIAS_REDUCE],[n.ApiDiffType.ENUM_MEMBER_VALUE_CHANGE,i.ERROR_CHANGES_ENUM_MEMBER_VALUE],[n.ApiDiffType.ATOMIC_SERVICE_HAVE_TO_NA,i.ERROR_CHANGES_JSDOC_ATOMICSERVICE_TO_NA],[n.ApiDiffType.SYSCAP_NA_TO_HAVE,i.ERROR_CHANGES_SYSCAP_NA_TO_HAVE],[n.ApiDiffType.SYSCAP_HAVE_TO_NA,i.ERROR_CHANGES_SYSCAP_HAVE_TO_NA],[n.ApiDiffType.SYSCAP_A_TO_B,i.ERROR_CHANGES_SYSCAP_A_TO_B],[n.ApiDiffType.ADD,i.ERROR_CHANGES_ADD_PROPERTY]]);t.ApiResultSimpleInfo=class{constructor(){this.id=-1,this.level=-1,this.filePath="",this.location="",this.message="",this.type="",this.apiText="",this.apiName="",this.apiType="",this.hierarchicalRelations="",this.parentModuleName=""}setID(e){return this.id=e,this}getID(){return this.id}setLevel(e){return this.level=e,this}getLevel(){return this.level}setLocation(e){return this.location=e,this}getLocation(){return this.location}setFilePath(e){return this.filePath=e,this}getFilePath(){return this.filePath}setMessage(e){return this.message=e,this}getMessage(){return this.message}setType(e){return this.type=e,this}getType(){return this.type}setApiText(e){return this.apiText=e,this}getApiText(){return this.apiText}setApiName(e){return this.apiName=e,this}getApiName(){return this.apiName}setApiType(e){return this.apiType=e,this}getApiType(){return this.apiType}setHierarchicalRelations(e){return this.hierarchicalRelations=e,this}getHierarchicalRelations(){return this.hierarchicalRelations}setParentModuleName(e){return this.parentModuleName=e,this}getParentModuleName(){return this.parentModuleName}};t.ApiResultInfo=class{constructor(){this.errorType="",this.location="",this.apiType="",this.message="",this.version=-1,this.level=-1,this.apiName="",this.apiFullText="",this.baseName="",this.hierarchicalRelations="",this.parentModuleName="",this.defectType=""}setErrorType(e){return this.errorType=e,this}getErrorType(){return this.errorType}setLocation(e){return this.location=e,this}getLocation(){return this.location}setApiType(e){return this.apiType=e,this}getApiType(){return this.apiType}setMessage(e){return this.message=e,this}getMessage(){return this.message}setVersion(e){return this.version=e,this}getVersion(){return this.version}setLevel(e){return this.level=e,this}getLevel(){return this.level}setApiName(e){return this.apiName=e,this}getApiName(){return this.apiName}setApiFullText(e){return this.apiFullText=e,this}getApiFullText(){return this.apiFullText}setBaseName(e){return this.baseName=e,this}getBaseName(){return this.baseName}setHierarchicalRelations(e){return this.hierarchicalRelations=e,this}getHierarchicalRelations(){return this.hierarchicalRelations}setParentModuleName(e){return this.parentModuleName=e,this}getParentModuleName(){return this.parentModuleName}setDefectType(e){return this.defectType=e,this}getDefectType(){return this.defectType}};t.ApiResultMessage=class{constructor(){this.analyzerName="apiengine",this.buggyFilePath="",this.codeContextStaerLine="",this.defectLevel=-1,this.defectType="",this.description="",this.language="typescript",this.mainBuggyCode="",this.mainBuggyLine="",this.extendInfo=new a}setLocation(e){return this.codeContextStaerLine=e,this}getLocation(){return this.codeContextStaerLine}setLevel(e){return this.defectLevel=e,this}getLevel(){return this.defectLevel}setType(e){return this.defectType=e,this}getType(){return this.defectType}setFilePath(e){return this.buggyFilePath=e,this}getFilePath(){return this.buggyFilePath}setMessage(e){return this.description=e,this}getMessage(){return this.description}setMainBuggyCode(e){return this.mainBuggyCode=e,this}getMainBuggyCode(){return this.mainBuggyCode}setMainBuggyLine(e){return this.mainBuggyLine=e,this}getMainBuggyLine(){return this.mainBuggyLine}setExtendInfo(e){return this.extendInfo=e,this}getExtendInfo(){return this.extendInfo}};t.ApiCheckInfo=class{constructor(){this.errorID=-1,this.errorLevel=-1,this.filePath="",this.apiPostion={line:-1,character:-1},this.errorType="",this.logType="",this.sinceNumber=-1,this.apiName="",this.apiType="",this.apiText="",this.errorInfo="",this.hierarchicalRelations="",this.parentModuleName=""}setErrorID(e){return this.errorID=e,this}getErrorID(){return this.errorID}setErrorLevel(e){return this.errorLevel=e,this}getErrorLevel(){return this.errorLevel}setFilePath(e){return this.filePath=e,this}getFilePath(){return this.filePath}setApiPostion(e){return this.apiPostion=e,this}getApiPostion(){return this.apiPostion}setErrorType(e){return this.errorType=e,this}getErrorType(){return this.errorType}setLogType(e){return this.logType=e,this}getLogType(){return this.logType}setSinceNumber(e){return this.sinceNumber=e,this}getSinceNumber(){return this.sinceNumber}setApiName(e){return this.apiName=e,this}getApiName(){return this.apiName}setApiType(e){return this.apiType=e,this}getApiType(){return this.apiType}setApiText(e){return this.apiText=e,this}getApiText(){return this.apiText}setErrorInfo(e){return this.errorInfo=e,this}getErrorInfo(){return this.errorInfo}setHierarchicalRelations(e){return this.hierarchicalRelations=e,this}getHierarchicalRelations(){return this.hierarchicalRelations}setParentModuleName(e){return this.parentModuleName=e,this}getParentModuleName(){return this.parentModuleName}};class a{constructor(){this.apiName="",this.apiType="",this.hierarchicalRelations="",this.parentModuleName=""}setApiName(e){return this.apiName=e,this}getApiName(){return this.apiName}setApiType(e){return this.apiType=e,this}getApiType(){return this.apiType}setHierarchicalRelations(e){return this.hierarchicalRelations=e,this}getHierarchicalRelations(){return this.hierarchicalRelations}setParentModuleName(e){return this.parentModuleName=e,this}getParentModuleName(){return this.parentModuleName}}t.ApiBaseInfo=a;t.ErrorBaseInfo=class{constructor(){this.errorID=-1,this.errorLevel=-1,this.errorType="",this.logType="",this.errorInfo=""}setErrorID(e){return this.errorID=e,this}getErrorID(){return this.errorID}setErrorLevel(e){return this.errorLevel=e,this}getErrorLevel(){return this.errorLevel}setErrorType(e){return this.errorType=e,this}getErrorType(){return this.errorType}setLogType(e){return this.logType=e,this}getLogType(){return this.logType}setErrorInfo(e){return this.errorInfo=e,this}getErrorInfo(){return this.errorInfo}}},85057:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ApiCountInfo=void 0;t.ApiCountInfo=class{constructor(){this.filePath="",this.kitName="",this.subSystem="",this.apiNumber=-1}setFilePath(e){return this.filePath=e,this}getFilePath(){return this.filePath}setKitName(e){return e?(this.kitName=e,this):this}getKitName(){return this.kitName}setsubSystem(e){return e?(this.subSystem=e,this):this}getsubSystem(){return this.subSystem}setApiNumber(e){return this.apiNumber=e,this}getApiNumber(){return this.apiNumber}}},40149:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.parentApiTypeSet=t.isNotApiSet=t.incompatibleApiDiffTypes=t.apiChangeMap=t.diffMap=t.diffTypeMap=t.ApiDiffType=t.ApiStatusCode=t.DiffNumberInfo=t.DiffTypeInfo=t.BasicDiffInfo=void 0;const n=r(44791),i=r(8136);class a{constructor(){this.apiType=a.EMPTY,this.statusCode=o.DEFAULT,this.oldApiDefinedText=a.EMPTY,this.newApiDefinedText=a.EMPTY,this.oldApiName=a.EMPTY,this.newApiName=a.EMPTY,this.oldDtsName=a.EMPTY,this.newDtsName=a.EMPTY,this.diffType=s.DEFAULT,this.diffMessage="",this.changeLogUrl="",this.changeLogs=[],this.isCompatible=!0,this.oldHierarchicalRelations=[],this.newHierarchicalRelations=[],this.oldPos={line:-1,character:-1},this.newPos={line:-1,character:-1},this.oldDescription="",this.newDescription="",this.oldSyscapField="",this.newSyscapField="",this.oldKitInfo="",this.newKitInfo="",this.isSystemapi=!1,this.isSameNameFunction=!1}setApiType(e){return this.apiType=e||a.EMPTY,this}getApiType(){return this.apiType}getStatusCode(){return this.statusCode}setStatusCode(e){return this.statusCode=e,this}setOldApiDefinedText(e){return this.oldApiDefinedText=e,this}getOldApiDefinedText(){return this.oldApiDefinedText}setNewApiDefinedText(e){return this.newApiDefinedText=e,this}getNewApiDefinedText(){return this.newApiDefinedText}setOldApiName(e){return this.oldApiName=e,this}getOldApiName(){return this.oldApiName}setNewApiName(e){return this.newApiName=e,this}getNewApiName(){return this.newApiName}setOldDtsName(e){return this.oldDtsName=e,this}getOldDtsName(){return this.oldDtsName}setNewDtsName(e){return this.newDtsName=e,this}getNewDtsName(){return this.newDtsName}setDiffType(e){return this.diffType=e,this}getDiffType(){return this.diffType}setDiffMessage(e){return this.diffMessage=e,this}getDiffMessage(){return this.diffMessage}setChangeLogUrl(e){return this.changeLogUrl=e,this}getChangeLogUrl(){return this.changeLogUrl}addChangeLogs(e){return this.changeLogs.push(e),this}getChangeLogs(){return this.changeLogs}setIsCompatible(e){return this.isCompatible=e,this}getIsCompatible(){return this.isCompatible}setOldHierarchicalRelations(e){return this.oldHierarchicalRelations=e,this}getOldHierarchicalRelations(){return this.oldHierarchicalRelations}setNewHierarchicalRelations(e){return this.newHierarchicalRelations=e,this}getNewHierarchicalRelations(){return this.newHierarchicalRelations}setOldPos(e){return this.oldPos=e,this}getOldPos(){return this.oldPos}setNewPos(e){return this.newPos=e,this}getNewPos(){return this.newPos}getOldDescription(){return this.oldDescription}setOldDescription(e){return this.oldDescription=e,this}getNewDescription(){return this.newDescription}setNewDescription(e){return this.newDescription=e,this}getOldApiInfo(){return""}getParentModuleName(e){let t="global";return e.length>i.NumberConstant.RELATION_LENGTH&&(t=e[e.length-i.NumberConstant.RELATION_LENGTH]),t}setOldSyscapField(e){return this.oldSyscapField=e,this}getOldSyscapField(){return this.oldSyscapField}setNewSyscapField(e){return this.newSyscapField=e,this}getNewSyscapField(){return this.newSyscapField}setOldKitInfo(e){return this.oldKitInfo=e,this}getOldKitInfo(){return this.oldKitInfo}setNewKitInfo(e){return this.newKitInfo=e,this}getNewKitInfo(){return this.newKitInfo}setIsSystemapi(e){return e&&(this.isSystemapi=e),this}getIsSystemapi(){return this.isSystemapi}setIsSameNameFunction(e){return this.isSameNameFunction=e,this}getIsSameNameFunction(){return this.isSameNameFunction}}t.BasicDiffInfo=a,a.EMPTY="";t.DiffTypeInfo=class{constructor(e,t,r,n){this.diffType=s.DEFAULT,this.statusCode=o.DEFAULT,this.oldMessage="",this.newMessage="",void 0!==e&&this.setStatusCode(e),t&&this.setDiffType(t),r&&this.setOldMessage(r),n&&this.setNewMessage(n)}getStatusCode(){return this.statusCode}setStatusCode(e){return this.statusCode=e,this}getDiffType(){return this.diffType}setDiffType(e){return this.diffType=e,this}getOldMessage(){return this.oldMessage}setOldMessage(e){return this.oldMessage=e,this}getNewMessage(){return this.newMessage}setNewMessage(e){return this.newMessage=e,this}};var o,s;t.DiffNumberInfo=class{constructor(){this.apiName="",this.kitName="",this.subsystem="",this.apiType="",this.allDiffType=[],this.allChangeType=[],this.compatibleInfo={},this.oldDiffMessage=[],this.newDiffMessage=[],this.allCompatible=[],this.diffTypeNumber=0,this.isApi=!0,this.apiRelation="",this.isSystemapi=!1,this.isSameNameFunction=!1}setApiName(e){return this.apiName=e,this}getApiName(){return this.apiName}setKitName(e){return e?(this.kitName=e,this):this}getKitName(){return this.kitName}setSubsystem(e){return e?(this.subsystem=e,this):this}getSubsystem(){return this.subsystem}setApiType(e){return this.apiType=e,this}getApiType(){return this.apiType}setAllDiffType(e){return this.allDiffType.push(e),this}getAllDiffType(){return this.allDiffType}setOldDiffMessage(e){return"-1"===e||""===e?(this.oldDiffMessage.push("NA"),this):(this.oldDiffMessage.push(e),this)}getOldDiffMessage(){return this.oldDiffMessage}setNewDiffMessage(e){return"-1"===e||""===e?(this.newDiffMessage.push("NA"),this):(this.newDiffMessage.push(e),this)}getNewDiffMessage(){return this.newDiffMessage}setAllChangeType(e){return e?(this.allChangeType.push(e),this):this}getAllChangeType(){return this.allChangeType}setAllCompatible(e){return this.allCompatible.push(e),this}getAllCompatible(){return this.allCompatible}setDiffTypeNumber(e){return this.diffTypeNumber=e,this}getDiffTypeNumber(){return this.diffTypeNumber}setIsApi(e){return this.isApi=e,this}getIsApi(){return this.isApi}setApiRelation(e){return this.apiRelation=e,this}getApiRelation(){return this.apiRelation}setIsSystemapi(e){return this.isSystemapi=e,this}getIsSystemapi(){return this.isSystemapi}setIsSameNameFunction(e){return this.isSameNameFunction=e,this}getIsSameNameFunction(){return this.isSameNameFunction}},function(e){e[e.DEFAULT=-1]="DEFAULT",e[e.DELETE=0]="DELETE",e[e.DELETE_DTS=1]="DELETE_DTS",e[e.DELETE_CLASS=2]="DELETE_CLASS",e[e.NEW_API=3]="NEW_API",e[e.VERSION_CHNAGES=4]="VERSION_CHNAGES",e[e.DEPRECATED_CHNAGES=5]="DEPRECATED_CHNAGES",e[e.NEW_ERRORCODE=6]="NEW_ERRORCODE",e[e.ERRORCODE_CHANGES=7]="ERRORCODE_CHANGES",e[e.SYSCAP_CHANGES=8]="SYSCAP_CHANGES",e[e.SYSTEM_API_CHNAGES=9]="SYSTEM_API_CHNAGES",e[e.PERMISSION_DELETE=10]="PERMISSION_DELETE",e[e.PERMISSION_NEW=11]="PERMISSION_NEW",e[e.PERMISSION_CHANGES=12]="PERMISSION_CHANGES",e[e.MODEL_CHNAGES=13]="MODEL_CHNAGES",e[e.TYPE_CHNAGES=14]="TYPE_CHNAGES",e[e.CLASS_CHANGES=15]="CLASS_CHANGES",e[e.FUNCTION_CHANGES=16]="FUNCTION_CHANGES",e[e.CHANGELOG=17]="CHANGELOG",e[e.DTS_CHANGED=18]="DTS_CHANGED",e[e.FORM_CHANGED=19]="FORM_CHANGED",e[e.CROSSPLATFORM_CHANGED=20]="CROSSPLATFORM_CHANGED",e[e.NEW_DTS=21]="NEW_DTS",e[e.NEW_CLASS=22]="NEW_CLASS",e[e.NEW_DECORATOR=23]="NEW_DECORATOR",e[e.DELETE_DECORATOR=24]="DELETE_DECORATOR",e[e.KIT_CHANGE=26]="KIT_CHANGE",e[e.ATOMICSERVICE_CHANGE=27]="ATOMICSERVICE_CHANGE",e[e.ERRORCODE_DELETE=28]="ERRORCODE_DELETE",e[e.EXPORT_NAME_CHANGE=29]="EXPORT_NAME_CHANGE",e[e.EXPORT_NAME_NUMBER_ADD=30]="EXPORT_NAME_NUMBER_ADD",e[e.EXPORT_NAME_NUMBER_REDUCE=31]="EXPORT_NAME_NUMBER_REDUCE"}(o=t.ApiStatusCode||(t.ApiStatusCode={})),function(e){e[e.DEFAULT=0]="DEFAULT",e[e.SYSTEM_TO_PUBLIC=1]="SYSTEM_TO_PUBLIC",e[e.PUBLIC_TO_SYSTEM=2]="PUBLIC_TO_SYSTEM",e[e.NA_TO_STAGE=3]="NA_TO_STAGE",e[e.NA_TO_FA=4]="NA_TO_FA",e[e.FA_TO_STAGE=5]="FA_TO_STAGE",e[e.STAGE_TO_FA=6]="STAGE_TO_FA",e[e.STAGE_TO_NA=7]="STAGE_TO_NA",e[e.FA_TO_NA=8]="FA_TO_NA",e[e.NA_TO_CARD=9]="NA_TO_CARD",e[e.CARD_TO_NA=10]="CARD_TO_NA",e[e.NA_TO_CROSS_PLATFORM=11]="NA_TO_CROSS_PLATFORM",e[e.CROSS_PLATFORM_TO_NA=12]="CROSS_PLATFORM_TO_NA",e[e.SYSCAP_NA_TO_HAVE=13]="SYSCAP_NA_TO_HAVE",e[e.SYSCAP_HAVE_TO_NA=14]="SYSCAP_HAVE_TO_NA",e[e.SYSCAP_A_TO_B=15]="SYSCAP_A_TO_B",e[e.DEPRECATED_NA_TO_HAVE=16]="DEPRECATED_NA_TO_HAVE",e[e.DEPRECATED_HAVE_TO_NA=17]="DEPRECATED_HAVE_TO_NA",e[e.DEPRECATED_A_TO_B=18]="DEPRECATED_A_TO_B",e[e.DEPRECATED_NOT_All=19]="DEPRECATED_NOT_All",e[e.ERROR_CODE_NA_TO_HAVE=20]="ERROR_CODE_NA_TO_HAVE",e[e.ERROR_CODE_ADD=21]="ERROR_CODE_ADD",e[e.ERROR_CODE_REDUCE=22]="ERROR_CODE_REDUCE",e[e.ERROR_CODE_CHANGE=23]="ERROR_CODE_CHANGE",e[e.PERMISSION_NA_TO_HAVE=24]="PERMISSION_NA_TO_HAVE",e[e.PERMISSION_HAVE_TO_NA=25]="PERMISSION_HAVE_TO_NA",e[e.PERMISSION_RANGE_BIGGER=26]="PERMISSION_RANGE_BIGGER",e[e.PERMISSION_RANGE_SMALLER=27]="PERMISSION_RANGE_SMALLER",e[e.PERMISSION_RANGE_CHANGE=28]="PERMISSION_RANGE_CHANGE",e[e.TYPE_RANGE_BIGGER=29]="TYPE_RANGE_BIGGER",e[e.TYPE_RANGE_SMALLER=30]="TYPE_RANGE_SMALLER",e[e.TYPE_RANGE_CHANGE=31]="TYPE_RANGE_CHANGE",e[e.API_NAME_CHANGE=32]="API_NAME_CHANGE",e[e.FUNCTION_RETURN_TYPE_ADD=33]="FUNCTION_RETURN_TYPE_ADD",e[e.FUNCTION_RETURN_TYPE_REDUCE=34]="FUNCTION_RETURN_TYPE_REDUCE",e[e.FUNCTION_RETURN_TYPE_CHANGE=35]="FUNCTION_RETURN_TYPE_CHANGE",e[e.FUNCTION_PARAM_POS_CHANGE=36]="FUNCTION_PARAM_POS_CHANGE",e[e.FUNCTION_PARAM_UNREQUIRED_ADD=37]="FUNCTION_PARAM_UNREQUIRED_ADD",e[e.FUNCTION_PARAM_REQUIRED_ADD=38]="FUNCTION_PARAM_REQUIRED_ADD",e[e.FUNCTION_PARAM_REDUCE=39]="FUNCTION_PARAM_REDUCE",e[e.FUNCTION_PARAM_TO_UNREQUIRED=40]="FUNCTION_PARAM_TO_UNREQUIRED",e[e.FUNCTION_PARAM_TO_REQUIRED=41]="FUNCTION_PARAM_TO_REQUIRED",e[e.FUNCTION_PARAM_NAME_CHANGE=42]="FUNCTION_PARAM_NAME_CHANGE",e[e.FUNCTION_PARAM_TYPE_CHANGE=43]="FUNCTION_PARAM_TYPE_CHANGE",e[e.FUNCTION_PARAM_TYPE_ADD=44]="FUNCTION_PARAM_TYPE_ADD",e[e.FUNCTION_PARAM_TYPE_REDUCE=45]="FUNCTION_PARAM_TYPE_REDUCE",e[e.FUNCTION_PARAM_CHANGE=46]="FUNCTION_PARAM_CHANGE",e[e.FUNCTION_CHANGES=47]="FUNCTION_CHANGES",e[e.PROPERTY_READONLY_TO_UNREQUIRED=48]="PROPERTY_READONLY_TO_UNREQUIRED",e[e.PROPERTY_READONLY_TO_REQUIRED=49]="PROPERTY_READONLY_TO_REQUIRED",e[e.PROPERTY_WRITABLE_TO_UNREQUIRED=50]="PROPERTY_WRITABLE_TO_UNREQUIRED",e[e.PROPERTY_WRITABLE_TO_REQUIRED=51]="PROPERTY_WRITABLE_TO_REQUIRED",e[e.PROPERTY_TYPE_CHANGE=52]="PROPERTY_TYPE_CHANGE",e[e.PROPERTY_READONLY_ADD=53]="PROPERTY_READONLY_ADD",e[e.PROPERTY_READONLY_REDUCE=54]="PROPERTY_READONLY_REDUCE",e[e.PROPERTY_WRITABLE_ADD=55]="PROPERTY_WRITABLE_ADD",e[e.PROPERTY_WRITABLE_REDUCE=56]="PROPERTY_WRITABLE_REDUCE",e[e.CONSTANT_VALUE_CHANGE=57]="CONSTANT_VALUE_CHANGE",e[e.TYPE_ALIAS_CHANGE=58]="TYPE_ALIAS_CHANGE",e[e.TYPE_ALIAS_ADD=59]="TYPE_ALIAS_ADD",e[e.TYPE_ALIAS_REDUCE=60]="TYPE_ALIAS_REDUCE",e[e.TYPE_ALIAS_FUNCTION_RETURN_TYPE_ADD=61]="TYPE_ALIAS_FUNCTION_RETURN_TYPE_ADD",e[e.TYPE_ALIAS_FUNCTION_RETURN_TYPE_REDUCE=62]="TYPE_ALIAS_FUNCTION_RETURN_TYPE_REDUCE",e[e.TYPE_ALIAS_FUNCTION_RETURN_TYPE_CHANGE=63]="TYPE_ALIAS_FUNCTION_RETURN_TYPE_CHANGE",e[e.TYPE_ALIAS_FUNCTION_PARAM_POS_CHAHGE=64]="TYPE_ALIAS_FUNCTION_PARAM_POS_CHAHGE",e[e.TYPE_ALIAS_FUNCTION_PARAM_UNREQUIRED_ADD=65]="TYPE_ALIAS_FUNCTION_PARAM_UNREQUIRED_ADD",e[e.TYPE_ALIAS_FUNCTION_PARAM_REQUIRED_ADD=66]="TYPE_ALIAS_FUNCTION_PARAM_REQUIRED_ADD",e[e.TYPE_ALIAS_FUNCTION_PARAM_REDUCE=67]="TYPE_ALIAS_FUNCTION_PARAM_REDUCE",e[e.TYPE_ALIAS_FUNCTION_PARAM_TYPE_CHANGE=68]="TYPE_ALIAS_FUNCTION_PARAM_TYPE_CHANGE",e[e.TYPE_ALIAS_FUNCTION_PARAM_TO_UNREQUIRED=69]="TYPE_ALIAS_FUNCTION_PARAM_TO_UNREQUIRED",e[e.TYPE_ALIAS_FUNCTION_PARAM_TO_REQUIRED=70]="TYPE_ALIAS_FUNCTION_PARAM_TO_REQUIRED",e[e.TYPE_ALIAS_FUNCTION_PARAM_TYPE_ADD=71]="TYPE_ALIAS_FUNCTION_PARAM_TYPE_ADD",e[e.TYPE_ALIAS_FUNCTION_PARAM_TYPE_REDUCE=72]="TYPE_ALIAS_FUNCTION_PARAM_TYPE_REDUCE",e[e.TYPE_ALIAS_FUNCTION_PARAM_CHANGE=73]="TYPE_ALIAS_FUNCTION_PARAM_CHANGE",e[e.ENUM_MEMBER_VALUE_CHANGE=74]="ENUM_MEMBER_VALUE_CHANGE",e[e.ADD=75]="ADD",e[e.REDUCE=76]="REDUCE",e[e.NEW_DECORATOR=77]="NEW_DECORATOR",e[e.DELETE_DECORATOR=78]="DELETE_DECORATOR",e[e.SINCE_VERSION_NA_TO_HAVE=79]="SINCE_VERSION_NA_TO_HAVE",e[e.SINCE_VERSION_HAVE_TO_NA=80]="SINCE_VERSION_HAVE_TO_NA",e[e.SINCE_VERSION_A_TO_B=81]="SINCE_VERSION_A_TO_B",e[e.HISTORICAL_JSDOC_CHANGE=82]="HISTORICAL_JSDOC_CHANGE",e[e.HISTORICAL_API_CHANGE=83]="HISTORICAL_API_CHANGE",e[e.KIT_CHANGE=84]="KIT_CHANGE",e[e.ATOMIC_SERVICE_NA_TO_HAVE=85]="ATOMIC_SERVICE_NA_TO_HAVE",e[e.ATOMIC_SERVICE_HAVE_TO_NA=86]="ATOMIC_SERVICE_HAVE_TO_NA",e[e.PROPERTY_TYPE_SIGN_CHANGE=87]="PROPERTY_TYPE_SIGN_CHANGE",e[e.KIT_HAVE_TO_NA=88]="KIT_HAVE_TO_NA",e[e.KIT_NA_TO_HAVE=89]="KIT_NA_TO_HAVE",e[e.NEW_SAME_NAME_FUNCTION=90]="NEW_SAME_NAME_FUNCTION",e[e.REDUCE_SAME_NAME_FUNCTION=91]="REDUCE_SAME_NAME_FUNCTION",e[e.EXPORT_NAME_CHANGE=92]="EXPORT_NAME_CHANGE",e[e.EXPORT_NAME_NUMBER_REDUCE=93]="EXPORT_NAME_NUMBER_REDUCE",e[e.EXPORT_NAME_NUMBER_ADD=94]="EXPORT_NAME_NUMBER_ADD"}(s=t.ApiDiffType||(t.ApiDiffType={})),t.diffTypeMap=new Map([[s.SYSTEM_TO_PUBLIC,"API访问级别变更"],[s.PUBLIC_TO_SYSTEM,"API访问级别变更"],[s.NA_TO_STAGE,"API模型切换"],[s.NA_TO_FA,"API模型切换"],[s.FA_TO_STAGE,"API模型切换"],[s.STAGE_TO_FA,"API模型切换"],[s.STAGE_TO_NA,"API模型切换"],[s.FA_TO_NA,"API模型切换"],[s.NA_TO_CARD,"API卡片权限变更"],[s.CARD_TO_NA,"API卡片权限变更"],[s.NA_TO_CROSS_PLATFORM,"API跨平台权限变更"],[s.CROSS_PLATFORM_TO_NA,"API跨平台权限变更"],[s.SYSCAP_NA_TO_HAVE,"syscap变更"],[s.SYSCAP_HAVE_TO_NA,"syscap变更"],[s.SYSCAP_A_TO_B,"syscap变更"],[s.DEPRECATED_NA_TO_HAVE,"API废弃版本变更"],[s.DEPRECATED_HAVE_TO_NA,"API废弃版本变更"],[s.DEPRECATED_NOT_All,"API废弃版本变更"],[s.DEPRECATED_A_TO_B,"API废弃版本变更"],[s.ERROR_CODE_NA_TO_HAVE,"错误码变更"],[s.ERROR_CODE_ADD,"错误码变更"],[s.ERROR_CODE_REDUCE,"错误码变更"],[s.ERROR_CODE_CHANGE,"错误码变更"],[s.PERMISSION_NA_TO_HAVE,"权限变更"],[s.PERMISSION_HAVE_TO_NA,"权限变更"],[s.PERMISSION_RANGE_BIGGER,"权限变更"],[s.PERMISSION_RANGE_SMALLER,"权限变更"],[s.PERMISSION_RANGE_CHANGE,"权限变更"],[s.TYPE_RANGE_BIGGER,"自定义类型变更"],[s.TYPE_RANGE_SMALLER,"自定义类型变更"],[s.TYPE_RANGE_CHANGE,"自定义类型变更"],[s.API_NAME_CHANGE,"API名称变更"],[s.FUNCTION_RETURN_TYPE_ADD,"函数变更"],[s.FUNCTION_RETURN_TYPE_REDUCE,"函数变更"],[s.FUNCTION_RETURN_TYPE_CHANGE,"函数变更"],[s.FUNCTION_PARAM_POS_CHANGE,"函数变更"],[s.FUNCTION_PARAM_UNREQUIRED_ADD,"函数变更"],[s.FUNCTION_PARAM_REQUIRED_ADD,"函数变更"],[s.FUNCTION_PARAM_REDUCE,"函数变更"],[s.FUNCTION_PARAM_TO_UNREQUIRED,"函数变更"],[s.FUNCTION_PARAM_TO_REQUIRED,"函数变更"],[s.FUNCTION_PARAM_NAME_CHANGE,"函数变更"],[s.FUNCTION_PARAM_TYPE_CHANGE,"函数变更"],[s.FUNCTION_PARAM_TYPE_ADD,"函数变更"],[s.FUNCTION_PARAM_TYPE_REDUCE,"函数变更"],[s.FUNCTION_PARAM_CHANGE,"函数变更"],[s.FUNCTION_CHANGES,"函数变更"],[s.PROPERTY_READONLY_TO_UNREQUIRED,"属性变更"],[s.PROPERTY_READONLY_TO_REQUIRED,"属性变更"],[s.PROPERTY_WRITABLE_TO_UNREQUIRED,"属性变更"],[s.PROPERTY_WRITABLE_TO_REQUIRED,"属性变更"],[s.PROPERTY_TYPE_CHANGE,"属性变更"],[s.PROPERTY_READONLY_ADD,"属性变更"],[s.PROPERTY_READONLY_REDUCE,"属性变更"],[s.PROPERTY_WRITABLE_ADD,"属性变更"],[s.PROPERTY_WRITABLE_REDUCE,"属性变更"],[s.PROPERTY_TYPE_SIGN_CHANGE,"属性变更"],[s.CONSTANT_VALUE_CHANGE,"常量变更"],[s.TYPE_ALIAS_CHANGE,"自定义类型变更"],[s.TYPE_ALIAS_ADD,"自定义类型变更"],[s.TYPE_ALIAS_REDUCE,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_ADD,"函数变更"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_REDUCE,"函数变更"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_CHANGE,"函数变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_POS_CHAHGE,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_UNREQUIRED_ADD,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_REQUIRED_ADD,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_REDUCE,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_TO_UNREQUIRED,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_TO_REQUIRED,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_CHANGE,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_ADD,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_REDUCE,"自定义类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_CHANGE,"自定义类型变更"],[s.ENUM_MEMBER_VALUE_CHANGE,"枚举赋值发生改变"],[s.ADD,"新增API"],[s.REDUCE,"删除API"],[s.DELETE_DECORATOR,"删除装饰器"],[s.NEW_DECORATOR,"新增装饰器"],[s.SINCE_VERSION_A_TO_B,"起始版本有变化"],[s.SINCE_VERSION_HAVE_TO_NA,"起始版本有变化"],[s.SINCE_VERSION_NA_TO_HAVE,"起始版本有变化"],[s.KIT_CHANGE,"kit变更"],[s.KIT_HAVE_TO_NA,"删除kit"],[s.KIT_NA_TO_HAVE,"新增kit"],[s.ATOMIC_SERVICE_HAVE_TO_NA,"API从支持元服务到不支持元服务"],[s.ATOMIC_SERVICE_NA_TO_HAVE,"API从不支持元服务到支持元服务"],[s.NEW_SAME_NAME_FUNCTION,"新增同名函数"],[s.REDUCE_SAME_NAME_FUNCTION,"删除同名函数"],[s.EXPORT_NAME_CHANGE,"export名称变更"],[s.EXPORT_NAME_NUMBER_REDUCE,"删除export名称"],[s.EXPORT_NAME_NUMBER_ADD,"新增export名称"]]),t.diffMap=new Map([[s.SYSTEM_TO_PUBLIC,"从系统API变更为公开API"],[s.PUBLIC_TO_SYSTEM,"从公开API变更为系统API"],[s.NA_TO_STAGE,"从无模型使用限制到仅在Stage模型下使用"],[s.NA_TO_FA,"从无模型使用限制到仅在FA模型下使用"],[s.FA_TO_STAGE,"从仅在FA模型下使用到仅在Stage模型下使用"],[s.STAGE_TO_FA,"从仅在Stage模型下使用到仅在FA模型下使用"],[s.STAGE_TO_NA,"从仅在Stage模型下使用到无模型使用限制"],[s.FA_TO_NA,"从仅在FA模型下使用到无模型使用限制"],[s.NA_TO_CARD,"从不支持卡片到支持卡片"],[s.CARD_TO_NA,"从支持卡片到不支持卡片"],[s.NA_TO_CROSS_PLATFORM,"从不支持跨平台到支持跨平台"],[s.CROSS_PLATFORM_TO_NA,"从支持跨平台到不支持跨平台"],[s.SYSCAP_NA_TO_HAVE,"从没有syscap到有syscap"],[s.SYSCAP_HAVE_TO_NA,"从有syscap到没有syscap"],[s.SYSCAP_A_TO_B,"syscap发生改变"],[s.DEPRECATED_NA_TO_HAVE,"接口变更为废弃"],[s.DEPRECATED_HAVE_TO_NA,"废弃接口变更为不废弃"],[s.DEPRECATED_NOT_All,"接口变更为废弃"],[s.DEPRECATED_A_TO_B,"接口废弃版本发生变化"],[s.ERROR_CODE_NA_TO_HAVE,"错误码从无到有"],[s.ERROR_CODE_ADD,"错误码增加"],[s.ERROR_CODE_REDUCE,"错误码减少"],[s.ERROR_CODE_CHANGE,"错误码的code值发生变化"],[s.PERMISSION_NA_TO_HAVE,"权限从无到有"],[s.PERMISSION_HAVE_TO_NA,"权限从有到无"],[s.PERMISSION_RANGE_BIGGER,"增加or或减少and权限"],[s.PERMISSION_RANGE_SMALLER,"减少or或增加and权限"],[s.PERMISSION_RANGE_CHANGE,"权限发生改变无法判断范围变化"],[s.TYPE_RANGE_BIGGER,"类型范围变大"],[s.TYPE_RANGE_SMALLER,"类型范围变小"],[s.TYPE_RANGE_CHANGE,"类型范围改变"],[s.API_NAME_CHANGE,"API名称变更"],[s.FUNCTION_RETURN_TYPE_ADD,"函数返回值类型扩大"],[s.FUNCTION_RETURN_TYPE_REDUCE,"函数返回值类型缩小"],[s.FUNCTION_RETURN_TYPE_CHANGE,"函数返回值类型改变"],[s.FUNCTION_PARAM_POS_CHANGE,"函数参数位置发生改变"],[s.FUNCTION_PARAM_UNREQUIRED_ADD,"函数新增可选参数"],[s.FUNCTION_PARAM_REQUIRED_ADD,"函数新增必选参数"],[s.FUNCTION_PARAM_REDUCE,"函数删除参数"],[s.FUNCTION_PARAM_TO_UNREQUIRED,"函数中的必选参数变为可选参数"],[s.FUNCTION_PARAM_TO_REQUIRED,"函数中的可选参数变为必选参数"],[s.FUNCTION_PARAM_NAME_CHANGE,"函数中的参数名称发生改变"],[s.FUNCTION_PARAM_TYPE_CHANGE,"函数的参数类型变更"],[s.FUNCTION_PARAM_TYPE_ADD,"函数的参数类型范围扩大"],[s.FUNCTION_PARAM_TYPE_REDUCE,"函数的参数类型范围缩小"],[s.FUNCTION_PARAM_CHANGE,"函数的参数变更"],[s.FUNCTION_CHANGES,"函数有变化"],[s.PROPERTY_READONLY_TO_UNREQUIRED,"只读属性由必选变为可选"],[s.PROPERTY_READONLY_TO_REQUIRED,"只读属性由可选变为必选"],[s.PROPERTY_WRITABLE_TO_UNREQUIRED,"可写属性由必选变为可选"],[s.PROPERTY_WRITABLE_TO_REQUIRED,"可写属性由可选变为必选"],[s.PROPERTY_TYPE_CHANGE,"属性类型发生改变"],[s.PROPERTY_TYPE_SIGN_CHANGE,"属性类型发生改变"],[s.PROPERTY_READONLY_ADD,"只读属性类型范围扩大"],[s.PROPERTY_READONLY_REDUCE,"只读属性类型范围缩小"],[s.PROPERTY_WRITABLE_ADD,"可写属性类型范围扩大"],[s.PROPERTY_WRITABLE_REDUCE,"可写属性类型范围缩小"],[s.CONSTANT_VALUE_CHANGE,"常量值发生改变"],[s.TYPE_ALIAS_CHANGE,"自定义类型值改变"],[s.TYPE_ALIAS_ADD,"自定义类型值范围扩大"],[s.TYPE_ALIAS_REDUCE,"自定义类型值范围缩小"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_ADD,"自定义方法类型返回值类型扩大"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_REDUCE,"自定义方法类型返回值类型缩小"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_CHANGE,"自定义方法类型返回值类型改变"],[s.TYPE_ALIAS_FUNCTION_PARAM_POS_CHAHGE,"自定义方法类型参数位置发生改变"],[s.TYPE_ALIAS_FUNCTION_PARAM_UNREQUIRED_ADD,"自定义方法类型新增可选参数"],[s.TYPE_ALIAS_FUNCTION_PARAM_REQUIRED_ADD,"自定义方法类型新增必选参数"],[s.TYPE_ALIAS_FUNCTION_PARAM_REDUCE,"自定义方法类型删除参数"],[s.TYPE_ALIAS_FUNCTION_PARAM_TO_UNREQUIRED,"自定义方法类型的必选参数变为可选参数"],[s.TYPE_ALIAS_FUNCTION_PARAM_TO_REQUIRED,"自定义方法类型的可选参数变为必选参数"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_CHANGE,"自定义方法类型的参数类型变更"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_ADD,"自定义方法类型的参数类型范围扩大"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_REDUCE,"自定义方法类型的参数类型范围缩小"],[s.TYPE_ALIAS_FUNCTION_PARAM_CHANGE,"自定义方法类型的参数变更"],[s.ENUM_MEMBER_VALUE_CHANGE,"枚举赋值发生改变"],[s.ADD,"新增API"],[s.REDUCE,"删除API"],[s.DELETE_DECORATOR,"删除装饰器"],[s.NEW_DECORATOR,"新增装饰器"],[s.SINCE_VERSION_A_TO_B,"起始版本号变更"],[s.SINCE_VERSION_HAVE_TO_NA,"起始版本号删除"],[s.SINCE_VERSION_NA_TO_HAVE,"起始版本号新增"],[s.HISTORICAL_JSDOC_CHANGE,"历史版本jsdoc变更"],[s.HISTORICAL_API_CHANGE,"历史版本API变更"],[s.KIT_CHANGE,"kit变更"],[s.KIT_HAVE_TO_NA,"kit信息从有到无"],[s.KIT_NA_TO_HAVE,"kit信息从无到有"],[s.ATOMIC_SERVICE_HAVE_TO_NA,"API从支持元服务到不支持元服务"],[s.ATOMIC_SERVICE_NA_TO_HAVE,"API从不支持元服务到支持元服务"],[s.NEW_SAME_NAME_FUNCTION,"新增同名函数"],[s.REDUCE_SAME_NAME_FUNCTION,"删除同名函数"],[s.EXPORT_NAME_CHANGE,"export名称变更"],[s.EXPORT_NAME_NUMBER_REDUCE,"删除export名称"],[s.EXPORT_NAME_NUMBER_ADD,"新增export名称"]]),t.apiChangeMap=new Map([[s.SYSTEM_TO_PUBLIC,"API修改(约束变化)"],[s.PUBLIC_TO_SYSTEM,"API修改(约束变化)"],[s.NA_TO_STAGE,"API修改(约束变化)"],[s.NA_TO_FA,"API修改(约束变化)"],[s.FA_TO_STAGE,"API修改(约束变化)"],[s.STAGE_TO_FA,"API修改(约束变化)"],[s.STAGE_TO_NA,"API修改(约束变化)"],[s.FA_TO_NA,"API修改(约束变化)"],[s.NA_TO_CARD,"API修改(约束变化)"],[s.CARD_TO_NA,"API修改(约束变化)"],[s.NA_TO_CROSS_PLATFORM,"API修改(约束变化)"],[s.CROSS_PLATFORM_TO_NA,"API修改(约束变化)"],[s.SYSCAP_NA_TO_HAVE,"API修改(约束变化)"],[s.SYSCAP_HAVE_TO_NA,"API修改(约束变化)"],[s.SYSCAP_A_TO_B,"API修改(约束变化)"],[s.DEPRECATED_NA_TO_HAVE,"API废弃"],[s.DEPRECATED_HAVE_TO_NA,"API废弃"],[s.DEPRECATED_NOT_All,"API修改(约束变化)"],[s.DEPRECATED_A_TO_B,"API废弃"],[s.ERROR_CODE_NA_TO_HAVE,"API修改(约束变化)"],[s.ERROR_CODE_ADD,"API修改(原型修改)"],[s.ERROR_CODE_REDUCE,"API修改(原型修改)"],[s.ERROR_CODE_CHANGE,"API修改(原型修改)"],[s.PERMISSION_NA_TO_HAVE,"API修改(约束变化)"],[s.PERMISSION_HAVE_TO_NA,"API修改(约束变化)"],[s.PERMISSION_RANGE_BIGGER,"API修改(约束变化)"],[s.PERMISSION_RANGE_SMALLER,"API修改(约束变化)"],[s.PERMISSION_RANGE_CHANGE,"API修改(约束变化)"],[s.TYPE_RANGE_BIGGER,"API修改(原型修改)"],[s.TYPE_RANGE_SMALLER,"API修改(原型修改)"],[s.TYPE_RANGE_CHANGE,"API修改(原型修改)"],[s.API_NAME_CHANGE,"API修改(原型修改)"],[s.FUNCTION_RETURN_TYPE_ADD,"API修改(原型修改)"],[s.FUNCTION_RETURN_TYPE_REDUCE,"API修改(原型修改)"],[s.FUNCTION_RETURN_TYPE_CHANGE,"API修改(原型修改)"],[s.FUNCTION_PARAM_POS_CHANGE,"API修改(原型修改)"],[s.FUNCTION_PARAM_UNREQUIRED_ADD,"API修改(原型修改)"],[s.FUNCTION_PARAM_REQUIRED_ADD,"API修改(原型修改)"],[s.FUNCTION_PARAM_REDUCE,"API修改(原型修改)"],[s.FUNCTION_PARAM_TO_UNREQUIRED,"API修改(原型修改)"],[s.FUNCTION_PARAM_TO_REQUIRED,"API修改(原型修改)"],[s.FUNCTION_PARAM_NAME_CHANGE,"API修改(原型修改)"],[s.FUNCTION_PARAM_TYPE_CHANGE,"API修改(原型修改)"],[s.FUNCTION_PARAM_TYPE_ADD,"API修改(原型修改)"],[s.FUNCTION_PARAM_TYPE_REDUCE,"API修改(原型修改)"],[s.FUNCTION_CHANGES,"API修改(原型修改)"],[s.FUNCTION_PARAM_CHANGE,"API修改(原型修改)"],[s.PROPERTY_READONLY_TO_UNREQUIRED,"API修改(约束变化)"],[s.PROPERTY_READONLY_TO_REQUIRED,"API修改(约束变化)"],[s.PROPERTY_WRITABLE_TO_UNREQUIRED,"API修改(约束变化)"],[s.PROPERTY_WRITABLE_TO_REQUIRED,"API修改(约束变化)"],[s.PROPERTY_TYPE_CHANGE,"API修改(原型修改)"],[s.PROPERTY_TYPE_SIGN_CHANGE,"API修改(原型修改)"],[s.PROPERTY_READONLY_ADD,"API修改(约束变化)"],[s.PROPERTY_READONLY_REDUCE,"API修改(约束变化)"],[s.PROPERTY_WRITABLE_ADD,"API修改(约束变化)"],[s.PROPERTY_WRITABLE_REDUCE,"API修改(约束变化)"],[s.CONSTANT_VALUE_CHANGE,"API修改(原型修改)"],[s.TYPE_ALIAS_CHANGE,"API修改(原型修改)"],[s.TYPE_ALIAS_ADD,"API修改(原型修改)"],[s.TYPE_ALIAS_REDUCE,"API修改(原型修改)"],[s.ENUM_MEMBER_VALUE_CHANGE,"API修改(原型修改)"],[s.ADD,"API新增"],[s.REDUCE,"API删除"],[s.DELETE_DECORATOR,"API修改(约束变化)"],[s.NEW_DECORATOR,"API修改(约束变化)"],[s.SINCE_VERSION_A_TO_B,"API修改(约束变化)"],[s.SINCE_VERSION_HAVE_TO_NA,"API修改(约束变化)"],[s.SINCE_VERSION_NA_TO_HAVE,"API修改(约束变化)"],[s.KIT_CHANGE,"非API变更"],[s.KIT_HAVE_TO_NA,"非API变更"],[s.KIT_NA_TO_HAVE,"非API变更"],[s.EXPORT_NAME_CHANGE,"非API变更"],[s.EXPORT_NAME_NUMBER_REDUCE,"非API变更"],[s.EXPORT_NAME_NUMBER_ADD,"非API变更"],[s.ATOMIC_SERVICE_HAVE_TO_NA,"API修改(约束变化)"],[s.ATOMIC_SERVICE_NA_TO_HAVE,"API修改(约束变化)"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_ADD,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_REDUCE,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_RETURN_TYPE_CHANGE,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_POS_CHAHGE,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_UNREQUIRED_ADD,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_REQUIRED_ADD,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_REDUCE,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_TO_UNREQUIRED,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_TO_REQUIRED,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_CHANGE,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_ADD,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_REDUCE,"API修改(原型修改)"],[s.TYPE_ALIAS_FUNCTION_PARAM_CHANGE,"API修改(原型修改)"],[s.NEW_SAME_NAME_FUNCTION,"API修改(原型修改)"],[s.REDUCE_SAME_NAME_FUNCTION,"API修改(原型修改)"]]),t.incompatibleApiDiffTypes=new Set([s.PUBLIC_TO_SYSTEM,s.NA_TO_STAGE,s.NA_TO_FA,s.FA_TO_STAGE,s.STAGE_TO_FA,s.CARD_TO_NA,s.CROSS_PLATFORM_TO_NA,s.ERROR_CODE_NA_TO_HAVE,s.ERROR_CODE_CHANGE,s.PERMISSION_NA_TO_HAVE,s.PERMISSION_RANGE_SMALLER,s.PERMISSION_RANGE_CHANGE,s.API_NAME_CHANGE,s.FUNCTION_RETURN_TYPE_ADD,s.FUNCTION_RETURN_TYPE_CHANGE,s.FUNCTION_PARAM_POS_CHANGE,s.FUNCTION_PARAM_REQUIRED_ADD,s.FUNCTION_PARAM_REDUCE,s.FUNCTION_PARAM_TO_REQUIRED,s.FUNCTION_PARAM_TYPE_CHANGE,s.FUNCTION_PARAM_TYPE_REDUCE,s.FUNCTION_PARAM_CHANGE,s.FUNCTION_CHANGES,s.PROPERTY_READONLY_TO_REQUIRED,s.PROPERTY_WRITABLE_TO_UNREQUIRED,s.PROPERTY_WRITABLE_TO_REQUIRED,s.PROPERTY_TYPE_CHANGE,s.PROPERTY_READONLY_ADD,s.PROPERTY_WRITABLE_ADD,s.PROPERTY_WRITABLE_REDUCE,s.CONSTANT_VALUE_CHANGE,s.TYPE_ALIAS_CHANGE,s.TYPE_ALIAS_ADD,s.TYPE_ALIAS_REDUCE,s.ENUM_MEMBER_VALUE_CHANGE,s.REDUCE,s.HISTORICAL_JSDOC_CHANGE,s.HISTORICAL_API_CHANGE,s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_REDUCE,s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_CHANGE,s.FUNCTION_RETURN_TYPE_REDUCE,s.TYPE_ALIAS_FUNCTION_PARAM_TYPE_ADD,s.TYPE_ALIAS_FUNCTION_PARAM_CHANGE,s.ATOMIC_SERVICE_HAVE_TO_NA,s.DELETE_DECORATOR,s.NEW_DECORATOR,s.SYSCAP_A_TO_B,s.SYSCAP_HAVE_TO_NA,s.SYSCAP_NA_TO_HAVE,s.KIT_CHANGE,s.KIT_HAVE_TO_NA,s.REDUCE_SAME_NAME_FUNCTION,s.EXPORT_NAME_CHANGE,s.EXPORT_NAME_NUMBER_REDUCE]),t.isNotApiSet=new Set([n.ApiType.NAMESPACE,n.ApiType.ENUM,n.ApiType.SOURCE_FILE]),t.parentApiTypeSet=new Set([n.ApiType.INTERFACE,n.ApiType.STRUCT,n.ApiType.CLASS])},44791:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.notJsDocApiTypes=t.containerApiTypes=t.ParserParam=t.ParentClass=t.GenericInfo=t.ParamInfo=t.TypeLocationInfo=t.MethodInfo=t.EnumValueInfo=t.TypeParamInfo=t.TypeAliasInfo=t.ConstantInfo=t.PropertyInfo=t.EnumInfo=t.ModuleInfo=t.StructInfo=t.NamespaceInfo=t.InterfaceInfo=t.ClassInfo=t.ApiInfo=t.ImportInfo=t.ExportDeclareInfo=t.ReferenceInfo=t.ExportDefaultInfo=t.BasicApiInfo=t.TypeAliasType=t.ApiType=void 0;const i=n(r(58843)),a=r(40745),o=r(8136),s=r(37583),c=r(28879),l=r(56405);var u;!function(e){e.SOURCE_FILE="SourceFile",e.REFERENCE_FILE="Reference",e.PROPERTY="Property",e.CLASS="Class",e.INTERFACE="Interface",e.NAMESPACE="Namespace",e.METHOD="Method",e.MODULE="Module",e.EXPORT="Export",e.EXPORT_DEFAULT="ExportDefault",e.CONSTANT="Constant",e.IMPORT="Import",e.DECLARE_CONST="DeclareConst",e.ENUM_VALUE="EnumValue",e.TYPE_ALIAS="TypeAlias",e.PARAM="Param",e.ENUM="Enum",e.STRUCT="Struct"}(u=t.ApiType||(t.ApiType={})),function(e){e.UNION_TYPE="UnionType",e.OBJECT_TYPE="ObjectType",e.TUPLE_TYPE="TupleType",e.REFERENCE_TYPE="ReferenceType"}(t.TypeAliasType||(t.TypeAliasType={}));class d{constructor(e="",t,r){this.node=void 0,this.filePath="",this.apiType="",this.definedText="",this.pos={line:-1,character:-1},this.parentApi=void 0,this.isExport=!1,this.apiName="",this.hierarchicalRelations=[],this.decorators=void 0,this.isStruct=!1,this.syscap="",this.currentVersion="-1",this.jsDocText="",this.isJoinType=!1,this.genericInfo=[],this.parentApiType="",this.fileAbsolutePath="",this.isSameNameFunction=!1,this.node=t,this.setParentApi(r),this.setParentApiType(r?.getApiType()),r&&(this.setFilePath(r.getFilePath()),this.setFileAbsolutePath(r.getFileAbsolutePath()),this.setIsStruct(r.getIsStruct())),this.setApiType(e);const n=t.getSourceFile(),i=t.getStart(),a=n.getLineAndCharacterOfPosition(i);a.character++,a.line++,this.setPos(a),t.decorators&&t.decorators.forEach((e=>{this.addDecorators([new c.DecoratorInfo(e)])}))}getNode(){return this.node}removeNode(){this.node=void 0}setFilePath(e){this.filePath=e}getFilePath(){return this.filePath}setFileAbsolutePath(e){this.fileAbsolutePath=e}getFileAbsolutePath(){return this.fileAbsolutePath}setApiType(e){this.apiType=e}getApiType(){return this.apiType}setDefinedText(e){this.definedText=e}getDefinedText(){return this.definedText}setPos(e){this.pos=e}getPos(){return this.pos}setParentApi(e){this.parentApi=e}getParentApi(){return this.parentApi}setParentApiType(e){e&&(this.parentApiType=e)}getParentApiType(){return this.parentApiType}setIsExport(e){this.isExport=e}getIsExport(){return this.isExport}setApiName(e){this.apiName=e,this.parentApi&&this.setHierarchicalRelations(this.parentApi.getHierarchicalRelations()),this.addHierarchicalRelation([e])}getApiName(){return this.apiName}setHierarchicalRelations(e){this.hierarchicalRelations=[...e]}getHierarchicalRelations(){return this.hierarchicalRelations}addHierarchicalRelation(e){this.hierarchicalRelations.push(...e)}setDecorators(e){this.decorators=e}addDecorators(e){this.decorators||(this.decorators=[]),this.decorators.push(...e)}getDecorators(){return this.decorators}setIsStruct(e){this.isStruct=e}getIsStruct(){return this.isStruct}setSyscap(e){this.syscap=e}getSyscap(){return this.syscap}setCurrentVersion(e){this.currentVersion=e}getCurrentVersion(){return this.currentVersion}setJsDocText(e){this.jsDocText=e}getJsDocText(){return this.jsDocText}setIsJoinType(e){this.isJoinType=e}getIsJoinType(){return this.isJoinType}setGenericInfo(e){this.genericInfo.push(e)}getGenericInfo(){return this.genericInfo}setIsSameNameFunction(e){this.isSameNameFunction=e}getIsSameNameFunction(){return this.isSameNameFunction}}t.BasicApiInfo=d;t.ExportDefaultInfo=class extends d{};t.ReferenceInfo=class extends d{constructor(){super(...arguments),this.pathName=""}setPathName(e){return this.pathName=e,this}getPathName(){return this.pathName}};t.ExportDeclareInfo=class extends d{constructor(){super(...arguments),this.exportValues=[]}addExportValues(e,t){this.exportValues.push({key:e,value:t||e})}getExportValues(){return this.exportValues}};t.ImportInfo=class extends d{constructor(){super(...arguments),this.importValues=[],this.importPath=""}addImportValue(e,t){this.importValues.push({key:e,value:t||e})}getImportValues(){return this.importValues}setImportPath(e){this.importPath=e}getImportPath(){return this.importPath}};class p extends d{constructor(e="",t,r){super(e,t,r),this.jsDocInfos=[];let n="NA",i="NA";r&&(n=this.getKitInfoFromParent(r).kitInfo,i=this.getKitInfoFromParent(r).fileTagContent);const a=l.JsDocProcessorHelper.processJsDocInfos(t,e,n,i),o=t.getFullText().substring(0,t.getFullText().length-t.getText().length).trim();this.setJsDocText(o),this.addJsDocInfos(a)}getKitInfoFromParent(e){const t=e.getJsDocInfos();let r="",n="NA";return t.forEach((e=>{r=e.getKit(),n=e.getFileTagContent()})),{kitInfo:r,fileTagContent:n}}getJsDocInfos(){return this.jsDocInfos}getLastJsDocInfo(){const e=this.jsDocInfos.length;if(0!==e)return this.jsDocInfos[e-1]}getPenultimateJsDocInfo(){const e=this.jsDocInfos.length;if(0!==e)return this.jsDocInfos[e-2]}addJsDocInfos(e){e.length>0&&this.setCurrentVersion(e[e.length-1]?.getSince()),this.jsDocInfos.push(...e)}addJsDocInfo(e){this.setCurrentVersion(e.getSince()),this.jsDocInfos.push(e)}}t.ApiInfo=p;t.ClassInfo=class extends p{constructor(){super(...arguments),this.parentClasses=[],this.childApis=[]}setParentClasses(e){this.parentClasses.push(e)}getParentClasses(){return this.parentClasses}addChildApis(e){this.childApis.push(...e)}addChildApi(e){this.childApis.push(e)}getChildApis(){return this.childApis}};t.InterfaceInfo=class extends p{constructor(){super(...arguments),this.parentClasses=[],this.childApis=[]}setParentClasses(e){this.parentClasses.push(e)}getParentClasses(){return this.parentClasses}addChildApis(e){this.childApis.push(...e)}addChildApi(e){this.childApis.push(e)}getChildApis(){return this.childApis}};t.NamespaceInfo=class extends p{constructor(){super(...arguments),this.childApis=[]}addChildApis(e){this.childApis.push(...e)}addChildApi(e){this.childApis.push(e)}getChildApis(){return this.childApis}};t.StructInfo=class extends p{constructor(){super(...arguments),this.childApis=[]}addChildApis(e){this.childApis.push(...e)}addChildApi(e){this.childApis.push(e)}getChildApis(){return this.childApis}};t.ModuleInfo=class extends p{constructor(){super(...arguments),this.childApis=[]}addChildApis(e){this.childApis.push(...e)}addChildApi(e){this.childApis.push(e)}getChildApis(){return this.childApis}};t.EnumInfo=class extends p{constructor(){super(...arguments),this.childApis=[]}addChildApis(e){this.childApis.push(...e)}addChildApi(e){this.childApis.push(e)}getChildApis(){return this.childApis}};t.PropertyInfo=class extends p{constructor(e="",t,r){super(e,t,r),this.type=[],this.isReadOnly=!1,this.isRequired=!1,this.isStatic=!1,this.typeKind=i.default.SyntaxKind.Unknown,this.typeLocations=[],this.objLocations=[];let n=t;this.setTypeKind(n.type?n.type.kind:i.default.SyntaxKind.Unknown)}addType(e){this.type.push(...e)}getType(){return this.type}setIsReadOnly(e){this.isReadOnly=e}getIsReadOnly(){return this.isReadOnly}setIsRequired(e){this.isRequired=e}getIsRequired(){return this.isRequired}setIsStatic(e){this.isStatic=e}getIsStatic(){return this.isStatic}setTypeKind(e){this.typeKind=e||i.default.SyntaxKind.Unknown}getTypeKind(){return this.typeKind}addTypeLocations(e){this.typeLocations.push(e)}getTypeLocations(){return this.typeLocations}addObjLocations(e){this.objLocations.push(e)}getObjLocations(){return this.objLocations}};t.ConstantInfo=class extends p{constructor(){super(...arguments),this.value=""}setValue(e){this.value=e}getValue(){return this.value}};t.TypeAliasInfo=class extends p{constructor(){super(...arguments),this.type=[],this.typeName="",this.returnType="",this.paramInfos=[],this.typeIsFunction=!1,this.typeLiteralApiInfos=[],this.typeIsObject=!1}addType(e){this.type.push(...e)}getType(){return this.type}setTypeName(e){return this.typeName=e,this}getTypeName(){return this.typeName}setReturnType(e){return this.returnType=e,this}getReturnType(){return this.returnType}setParamInfos(e){return this.paramInfos.push(e),this}getParamInfos(){return this.paramInfos}setTypeIsFunction(e){return this.typeIsFunction=e,this}getTypeIsFunction(){return this.typeIsFunction}setTypeLiteralApiInfos(e){return this.typeLiteralApiInfos.push(e),this}getTypeLiteralApiInfos(){return this.typeLiteralApiInfos}setTypeIsObject(e){return this.typeIsObject=e,this}getTypeIsObject(){return this.typeIsObject}};t.TypeParamInfo=class{constructor(){this.paramName="",this.paramType=""}setParamName(e){return this.paramName=e,this}getParamName(){return this.paramName}setParamType(e){return e?(this.paramType=e,this):this}getParamType(){return this.paramType}};t.EnumValueInfo=class extends p{constructor(){super(...arguments),this.value=""}setValue(e){this.value=e}getValue(){return this.value}};t.MethodInfo=class extends p{constructor(){super(...arguments),this.callForm="",this.params=[],this.returnValue=[],this.isStatic=!1,this.sync="",this.returnValueType=i.default.SyntaxKind.Unknown,this.typeLocations=[],this.objLocations=[],this.isRequired=!1}setCallForm(e){this.callForm=e}getCallForm(){return this.callForm}addParam(e){this.params.push(e)}getParams(){return this.params}setReturnValue(e){this.returnValue.push(...e)}getReturnValue(){return this.returnValue}setReturnValueType(e){this.returnValueType=e}getReturnValueType(){return this.returnValueType}setIsStatic(e){this.isStatic=e}getIsStatic(){return this.isStatic}addTypeLocations(e){this.typeLocations.push(e)}getTypeLocations(){return this.typeLocations}addObjLocations(e){this.objLocations.push(e)}getObjLocations(){return this.objLocations}setSync(e){this.sync=e}getSync(){return this.sync}setIsRequired(e){this.isRequired=e}getIsRequired(){return this.isRequired}};class f extends s.Comment.JsDocInfo{constructor(){super(...arguments),this.typeName=""}getTypeName(){return this.typeName}setTypeName(e){this.typeName=e}}t.TypeLocationInfo=f;t.ParamInfo=class{constructor(e){this.apiType="",this.apiName="",this.paramType=i.default.SyntaxKind.Unknown,this.type=[],this.isRequired=!1,this.definedText="",this.typeLocations=[],this.objLocations=[],this.typeIsObject=!1,this.apiType=e}getApiType(){return this.apiType}setApiName(e){this.apiName=e}getApiName(){return this.apiName}setType(e){this.type.push(...e)}getParamType(){return this.paramType}setParamType(e){this.paramType=e||i.default.SyntaxKind.Unknown}getType(){return this.type}setIsRequired(e){this.isRequired=e}getIsRequired(){return this.isRequired}setDefinedText(e){this.definedText=e}getDefinedText(){return this.definedText}addTypeLocations(e){this.typeLocations.push(e)}getTypeLocations(){return this.typeLocations}addObjLocations(e){this.objLocations.push(e)}getObjLocations(){return this.objLocations}setMethodApiInfo(e){this.methodApiInfo=e}getMethodApiInfo(){return this.methodApiInfo}};t.GenericInfo=class{constructor(){this.isGenericity=!1,this.genericContent=""}setIsGenericity(e){this.isGenericity=e}getIsGenericity(){return this.isGenericity}setGenericContent(e){this.genericContent=e}getGenericContent(){return this.genericContent}};t.ParentClass=class{constructor(){this.extendClass="",this.implementClass=""}setExtendClass(e){this.extendClass=e}getExtendClass(){return this.extendClass}setImplementClass(e){this.implementClass=e}getImplementClass(){return this.implementClass}};t.ParserParam=class{constructor(){this.fileDir="",this.filePath="",this.libPath="",this.sdkPath="",this.rootNames=[],this.tsProgram=i.default.createProgram({rootNames:[],options:{}}),this.compilerHost=i.default.createCompilerHost({})}getFileDir(){return this.fileDir}setFileDir(e){this.fileDir=e}getFilePath(){return this.filePath}setFilePath(e){this.filePath=e}getLibPath(){return this.libPath}setLibPath(e){this.libPath=e}getSdkPath(){return this.sdkPath}setSdkPath(e){this.sdkPath=e}getRootNames(){return this.rootNames}setRootNames(e){this.rootNames=e}getTsProgram(){return this.tsProgram}getETSOptions(e){const t=r(739).compilerOptions.ets;return t.libs=[...e],t}setProgram(){const e=a.FileUtils.readFilesInDir(this.sdkPath,(e=>e.endsWith(o.StringConstant.DTS_EXTENSION)||e.endsWith(o.StringConstant.DETS_EXTENSION))),t=a.FileUtils.readFilesInDir(this.libPath,(e=>e.endsWith(o.StringConstant.DTS_EXTENSION)||e.endsWith(o.StringConstant.DETS_EXTENSION))),r={target:i.default.ScriptTarget.ES2017,ets:this.getETSOptions([]),allowJs:!1,lib:[...e,...t],module:i.default.ModuleKind.CommonJS,baseUrl:"./",paths:{"@/*":["./*"]}};this.compilerHost=i.default.createCompilerHost(r),this.compilerHost.resolveModuleNames=(e,t,r,n,a)=>e.map((e=>{if("true"===process.env.IS_OH)return i.default.resolveModuleName(e,t,a,this.compilerHost).resolvedModule;const r={resolvedFileName:"",isExternalLibraryImport:!1},n={"^(@ohos\\.inner\\.)(.*)$":"../../../base/ets/api/","^(@ohos\\.)(.*)$":"../../../base/ets/api/"};for(const t in n){const r=new RegExp(t);if(r.test(e)){e=e.replace(r,((e,r,i)=>{let a="";switch(r){case"@ohos.":a=n[t]+r+i;break;case"@ohos.inner.":a=n[t]+i.replace(/\./g,"/");break;default:a=""}return a}));break}}const o=i.default.resolveModuleName(e,t,a,this.compilerHost).resolvedModule?.resolvedFileName;return o?(r.resolvedFileName=o,r.isExternalLibraryImport=!0,r):void 0})),this.tsProgram=i.default.createProgram({rootNames:[...this.rootNames],options:r,host:this.compilerHost})}},t.containerApiTypes=new Set([u.NAMESPACE,u.CLASS,u.INTERFACE,u.ENUM,u.MODULE,u.STRUCT]),t.notJsDocApiTypes=new Set([u.SOURCE_FILE,u.IMPORT,u.EXPORT,u.EXPORT_DEFAULT,u.MODULE,u.REFERENCE_FILE])},37583:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Comment=void 0,function(e){let t;!function(e){e.SYSCAP="syscap",e.SINCE="since",e.FORM="form",e.CROSS_PLAT_FORM="crossplatform",e.SYSTEM_API="systemapi",e.STAGE_MODEL_ONLY="stagemodelonly",e.FA_MODEL_ONLY="famodelonly",e.DEPRECATED="deprecated",e.USEINSTEAD="useinstead",e.TYPE="type",e.CONSTANT="constant",e.PERMISSION="permission",e.THROWS="throws",e.ATOMIC_SERVICE="atomicservice",e.KIT="kit",e.FILE="file",e.PARAM="param",e.RETURNS="returns"}(t=e.JsDocTag||(e.JsDocTag={}));e.JsDocInfo=class{constructor(){this.description="",this.syscap="",this.since="-1",this.isForm=!1,this.isCrossPlatForm=!1,this.isSystemApi=!1,this.modelLimitation="",this.deprecatedVersion="-1",this.useinstead="",this.permissions="",this.errorCodes=[],this.typeInfo="",this.isConstant=!1,this.isAtomicService=!1,this.kit="",this.fileTagContent="NA",this.tags=void 0}setDescription(e){return this.description=e,this}getDescription(){return this.description}setSyscap(e){return e&&(this.syscap=e),this}getSyscap(){return this.syscap}setSince(e){return this.since=e,this}getSince(){return this.since}setIsForm(e){return this.isForm=e,this}getIsForm(){return this.isForm}setIsCrossPlatForm(e){return this.isCrossPlatForm=e,this}getIsCrossPlatForm(){return this.isCrossPlatForm}setIsSystemApi(e){return this.isSystemApi=e,this}getIsSystemApi(){return this.isSystemApi}setIsAtomicService(e){return this.isAtomicService=e,this}getIsAtomicService(){return this.isAtomicService}setModelLimitation(e){return this.modelLimitation=e,this}getModelLimitation(){return this.modelLimitation}setDeprecatedVersion(e){return this.deprecatedVersion=e,this}getDeprecatedVersion(){return this.deprecatedVersion}setUseinstead(e){return this.useinstead=e,this}getUseinstead(){return this.useinstead}setPermission(e){return this.permissions=e,this}getPermission(){return this.permissions}addErrorCode(e){return this.errorCodes.push(e),this}getErrorCode(){return this.errorCodes}setTypeInfo(e){return this.typeInfo=e,this}getTypeInfo(){return this.typeInfo}setIsConstant(e){return this.isConstant=e,this}getIsConstant(){return this.isConstant}setKit(e){return this.kit=e,this}getKit(){return this.kit}setFileTagContent(e){return this.fileTagContent=e,this}getFileTagContent(){return this.fileTagContent}setTags(e){return this.tags=e,this}removeTags(){return this.tags=void 0,this}addTag(e){return this.tags||(this.tags=[]),this.tags.push(e),this}getTags(){return this.tags}}}(t.Comment||(t.Comment={}))},28879:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.DecoratorInfo=void 0;const i=n(r(58843));t.DecoratorInfo=class{constructor(e){this.expression="",this.expressionArguments=void 0;const t=e.expression;if(i.default.isCallExpression(t)){this.setExpression(t.expression.getText());t.arguments.forEach((e=>{this.addExpressionArguments([e.getText()])}))}i.default.isIdentifier(t)&&this.setExpression(t.getText())}setExpression(e){return this.expression=e,this}getExpression(){return this.expression}setExpressionArguments(e){return this.expressionArguments=e,this}addExpressionArguments(e){return this.expressionArguments||(this.expressionArguments=[]),this.expressionArguments.push(...e),this}getExpressionArguments(){return this.expressionArguments}}},68020:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ImportInfo=t.ExportDefaultInfo=t.ClassInterfaceInfo=t.NamespaceEnumInfo=t.ParamInfo=t.MethodInfo=t.TypeAliasInfo=t.EnumValueInfo=t.UnionTypeInfo=t.ConstantInfo=t.PropertyInfo=t.DeclareConstInfo=t.ApiInfo=t.BasicApiInfo=void 0;const n=r(8136);class i{constructor(e){this.apiType="",this.apiType=e}}t.BasicApiInfo=i;class a extends i{constructor(e,t){super(e),this.name="",this.syscap="",this.since="-1",this.isForm=!1,this.isCrossPlatForm=!1,this.isSystemApi=!1,this.isStageModelOnly=!1,this.isFaModelOnly=!1,this.deprecatedVersion="-1",this.useinstead="",this.setJsDocInfo(t)}setJsDocInfo(e){return this.syscap=e.getSyscap(),this.since=e.getSince(),this.isForm=e.getIsForm(),this.isCrossPlatForm=e.getIsCrossPlatForm(),this.isSystemApi=e.getIsSystemApi(),this.isStageModelOnly=e.getModelLimitation().toLowerCase()===n.StringConstant.STAGE_MODEL_ONLY,this.isFaModelOnly=e.getModelLimitation().toLowerCase()===n.StringConstant.FA_MODEL_ONLY,this.deprecatedVersion=e.getDeprecatedVersion(),this.useinstead=e.getUseinstead(),this}getSince(){return this.since}setName(e){return e?(this.name=e,this):this}}t.ApiInfo=a;t.DeclareConstInfo=class extends a{constructor(){super(...arguments),this.type=""}setType(e){return this.type=e,this}};t.PropertyInfo=class extends a{constructor(e,t){super(e,t),this.type="",this.isReadOnly=!1,this.isRequired=!1,this.isStatic=!1,this.permission="",this.setPermission(t.getPermission())}setType(e){return this.type=e,this}setIsReadOnly(e){return this.isReadOnly=e,this}setIsRequired(e){return this.isRequired=e,this}setIsStatic(e){return this.isStatic=e,this}setPermission(e){return this.permission=e,this}};t.ConstantInfo=class extends a{constructor(){super(...arguments),this.type="",this.value=""}setType(e){return this.type=e,this}setValue(e){return this.value=e,this}};t.UnionTypeInfo=class extends a{constructor(){super(...arguments),this.valueRange=[]}addValueRange(e){return this.valueRange.push(e),this}addValueRanges(e){return this.valueRange.push(...e),this}};t.EnumValueInfo=class extends a{constructor(){super(...arguments),this.value=""}setValue(e){return this.value=e,this}};t.TypeAliasInfo=class extends a{constructor(){super(...arguments),this.type=""}setType(e){return this.type=e,this}};t.MethodInfo=class extends a{constructor(e,t){super(e,t),this.callForm="",this.params=[],this.returnValue="",this.isStatic=!1,this.permission="",this.errorCodes=[],this.setPermission(t.getPermission()),this.setErrorCodes(t.getErrorCode())}setCallForm(e){return this.callForm=e,this}addParam(e){return this.params.push(e),this}setReturnValue(e){return this.returnValue=e,this}setIsStatic(e){return this.isStatic=e,this}setPermission(e){return this.permission=e,this}setErrorCodes(e){return this.errorCodes.push(...e),this}};t.ParamInfo=class extends a{constructor(){super(...arguments),this.type="",this.isRequired=!1}setType(e){e&&(this.type=e)}setIsRequired(e){this.isRequired=e}};class o extends a{constructor(){super(...arguments),this.childApis=[]}addChildApi(e){return this.childApis.push(...e),this}}t.NamespaceEnumInfo=o;t.ClassInterfaceInfo=class extends o{constructor(){super(...arguments),this.parentClasses=[]}setParentClasses(e){return this.parentClasses.push(...e),this}};class s extends i{constructor(){super(...arguments),this.name=""}createObject(){return new s(this.apiType)}setName(e){return this.name=e,this}}t.ExportDefaultInfo=s;t.ImportInfo=class extends i{constructor(){super(...arguments),this.importValues=[]}addImportValue(e,t){return this.importValues.push({key:e,value:t||e}),this}}},16137:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.mergeDefinedTextType=t.notMergeDefinedText=t.apiNotStatisticsType=t.apiStatisticsType=t.ApiStatisticsInfo=void 0;const i=n(r(58843)),a=r(44791),o=r(80879);t.ApiStatisticsInfo=class{constructor(){this.filePath="",this.packageName="",this.parentModuleName="global",this.syscap="",this.permissions="",this.since="",this.isForm=!1,this.isCrossPlatForm=!1,this.isAutomicService=!1,this.hierarchicalRelations="",this.apiName="",this.deprecatedVersion="",this.useInstead="",this.apiType="",this.definedText="",this.pos={line:-1,character:-1},this.isSystemapi=!1,this.modelLimitation="",this.decorators=[],this.errorCodes=[],this.kitInfo="",this.absolutePath="",this.parentApiType="",this.isOptional=!1}setFilePath(e){return this.filePath=e,this.packageName=o.FunctionUtils.getPackageName(e),this}getPackageName(){return this.packageName}getFilePath(){return this.filePath}setApiType(e){return this.apiType=e===a.ApiType.DECLARE_CONST?a.ApiType.PROPERTY:e,this}getParentModuleName(){return this.parentModuleName}setParentModuleName(e){return this.parentModuleName=e,this}setSyscap(e){return e&&(this.syscap=e),this}getSyscap(){return this.syscap}setPermission(e){return this.permissions=e,this}getPermission(){return this.permissions}setSince(e){return this.since=e,this}getSince(){return this.since}setIsForm(e){return this.isForm=e,this}getIsForm(){return this.isForm}setIsCrossPlatForm(e){return this.isCrossPlatForm=e,this}getIsCrossPlatForm(){return this.isCrossPlatForm}setIsAutomicService(e){return this.isAutomicService=e,this}getIsAutomicService(){return this.isAutomicService}getApiType(){return this.apiType}setDefinedText(e){return this.definedText=e,this}getDefinedText(){return this.definedText}setPos(e){return this.pos=e,this}getPos(){return this.pos}setApiName(e){return this.apiName=e,this}getApiName(){return this.apiName}setHierarchicalRelations(e){return this.hierarchicalRelations=e,this}getHierarchicalRelations(){return this.hierarchicalRelations}setDeprecatedVersion(e){return this.deprecatedVersion=e,this}getDeprecatedVersion(){return this.deprecatedVersion}setUseInstead(e){return this.useInstead=e,this}getUseInstead(){return this.useInstead}setApiLevel(e){return this.isSystemapi=e,this}getApiLevel(){return this.isSystemapi}setModelLimitation(e){return this.modelLimitation=e,this}getModelLimitation(){return this.modelLimitation}setDecorators(e){return e?.forEach((e=>{this.decorators?.push(e.expression)})),this}getDecorators(){return this.decorators}setErrorCodes(e){return this.errorCodes=e,this}getErrorCodes(){return this.errorCodes}setKitInfo(e){return this.kitInfo=e,this}getKitInfo(){return this.kitInfo}setAbsolutePath(e){return this.absolutePath=e,this}getAbsolutePath(){return this.absolutePath}setParentApiType(e){return this.parentApiType=e,this}getParentApiType(){return this.parentApiType}setIsOptional(e){return this.isOptional=e,this}getIsOptional(){return this.isOptional}},t.apiStatisticsType=new Set([a.ApiType.PROPERTY,a.ApiType.CLASS,a.ApiType.INTERFACE,a.ApiType.NAMESPACE,a.ApiType.METHOD,a.ApiType.CONSTANT,a.ApiType.ENUM_VALUE,a.ApiType.ENUM,a.ApiType.TYPE_ALIAS,a.ApiType.DECLARE_CONST,a.ApiType.STRUCT]),t.apiNotStatisticsType=new Set([a.ApiType.ENUM,a.ApiType.NAMESPACE]),t.notMergeDefinedText=new Set(["on","off"]),t.mergeDefinedTextType=new Set([i.default.SyntaxKind.MethodDeclaration,i.default.SyntaxKind.MethodSignature,i.default.SyntaxKind.FunctionDeclaration])},8136:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EventConstant=t.PunctuationMark=t.NumberConstant=t.StringConstant=void 0,function(e){e.ASYNC_CALLBACK_METHOD_KEY="AsyncCallback",e.ASYNC_CALLBACK_METHOD_KEY_CHANGE="AsyncCallback",e.CHECK_API_VERSION="11",e.CONST_KEY_WORD="const",e.CONSTRUCTOR_API_NAME="constructor",e.EXPORT_DEFAULT="export_default",e.EXPORT="export",e.DTS_EXTENSION=".d.ts",e.DETS_EXTENSION=".d.ets",e.ETS_EXTENSION=".ets",e.FA_MODEL_ONLY="famodelonly",e.PROMISE_METHOD_KEY="Promise",e.PROMISE_METHOD_KEY_CHANGE="Promise",e.REFERENCE="_reference",e.TS_EXTENSION=".ts",e.SELF="_self",e.STAGE_MODEL_ONLY="stagemodelonly",e.UTF8="utf-8",e.NOT_SCAN_DIR="build-tools"}(t.StringConstant||(t.StringConstant={})),function(e){e[e.INDENT_SPACE=2]="INDENT_SPACE",e[e.RELATION_LENGTH=2]="RELATION_LENGTH",e.DEFAULT_DEPRECATED_VERSION="-1",e[e.IS_FIELD_EXIST=0]="IS_FIELD_EXIST",e[e.BINARY_SYSTEM=2]="BINARY_SYSTEM",e[e.LINE_IN_EXCEL=2]="LINE_IN_EXCEL",e[e.SYSCAP_KEY_FIELD_INDEX=2]="SYSCAP_KEY_FIELD_INDEX",e[e.DELETE_CURRENT_JS_DOC=-2]="DELETE_CURRENT_JS_DOC"}(t.NumberConstant||(t.NumberConstant={})),function(e){e.QUERY="?",e.LEFT_BRACKET="[",e.RIGHT_BRACKET="]",e.LEFT_BRACE="{",e.RIGHT_BRACE="}",e.LEFT_PARENTHESES="(",e.RIGHT_PARENTHESES=")"}(t.PunctuationMark||(t.PunctuationMark={}));class r{}t.EventConstant=r,r.eventNameList=["on","off","emit","once"],r.eventMethodCheckVersion=10,r.eventFirstParamName="type"},27944:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EnumUtils=void 0;t.EnumUtils=class{static enum2arr(e){let t=Array.isArray(e)?e:Object.values(e);return t.some((e=>"number"==typeof e))&&(t=t.filter((e=>"number"==typeof e))),t}}},40745:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FileUtils=void 0;const i=n(r(79896)),a=n(r(16928)),o=n(r(59620)),s=r(4e3),c=r(8136);process.env.DIR_NAME||Object.assign(process.env,o.default);class l{static getBaseDirName(){return this.baseDirName}static readFilesInDir(e,t){const r=[];return i.default.existsSync(e)?(i.default.readdirSync(e,{withFileTypes:!0}).forEach((n=>{if(n.name===c.StringConstant.NOT_SCAN_DIR)return;const i=a.default.join(e,n.name);if(n.isFile())return t?void(t(n.name)&&r.push(i)):void r.push(i);r.push(...l.readFilesInDir(i,t))})),r):r}static writeStringToFile(e,t){const r=a.default.dirname(t);l.isExists(r)||i.default.mkdirSync(r,{recursive:!0}),i.default.writeFileSync(t,e)}static isDirectory(e){return i.default.lstatSync(e).isDirectory()}static isFile(e){return i.default.lstatSync(e).isFile()}static isExists(e){if(!e)return!1;try{return i.default.accessSync(a.default.resolve(this.baseDirName,e),i.default.constants.R_OK),!0}catch(e){const t=e;return s.LogUtil.e("error filePath",t.stack?t.stack:t.message),!1}}}t.FileUtils=l,l.baseDirName=String(process.env.DIR_NAME)},80879:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.FunctionUtils=void 0;const i=n(r(16928)),a=r(8136),o=r(63598),s=r(80417);t.FunctionUtils=class{static getPackageName(e){return e.indexOf("component\\ets\\")>=0||e.indexOf("component/ets/")>=0?"ArkUI":i.default.basename(e).replace(/@|.d.ts$/g,"")}static handleSyscap(e){const t=e.split(".");let r="";switch(t[1]){case"MiscServices":r=t[a.NumberConstant.SYSCAP_KEY_FIELD_INDEX];break;case"Communication":if(c.has(t[a.NumberConstant.SYSCAP_KEY_FIELD_INDEX])){r=t[a.NumberConstant.SYSCAP_KEY_FIELD_INDEX];break}r=t[1];break;default:r=t[1]}return r}static readSubsystemFile(){const e=new Map,t=new Map;return s.fileContent.forEach((r=>{e.set(r.syscap,r.subsystem),t.set(r.syscap,r.fileName)})),{subsystemMap:e,fileNameMap:t}}static readKitFile(){const e=new Map,t=new Map,r=new Set;return o.kitData.forEach((n=>{e.set(n.filePath,n.subSystem),t.set(n.filePath,n.kitName),r.add(n.filePath)})),{subsystemMap:e,kitNameMap:t,filePathSet:r}}};const c=new Set(["Bluetooth","NetManager"])},87960:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StringUtils=void 0;const n=r(4e3);t.StringUtils=class{static hasSubstring(e,t){let r=!1;try{r=-1!==e.search(t)}catch(e){n.LogUtil.e("StringUtils.hasSubstring",e)}return r}static transformBooleanToTag(e,t){return"true"===e.toString()?t:"NA"}}},93333:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.throwsTagDescriptionArr=t.punctuationMarkSet=t.cleanApiCheckResult=t.apiCheckResult=t.compositiveLocalResult=t.cleanCompositiveResult=t.compositiveResult=t.apiLegalityCheckTypeMap=t.permissionOptionalTags=t.conditionalOptionalTags=t.optionalTags=t.followTagArr=t.inheritTagArr=t.officialTagArr=t.tagsArrayOfOrder=t.CommonFunctions=t.ObtainFullPath=t.GenerateFile=t.CompolerOptions=t.PosOfNode=void 0;const i=n(r(16928)),a=n(r(79896)),o=r(6752),s=n(r(58843)),c=r(77002),l=r(40745),u=r(98768),d=r(8136),p=r(2543);t.PosOfNode=class{static getPosOfNode(e,t){const r=s.default.getLineAndCharacterOfPosition(e.getSourceFile(),t.start);return t.file?.fileName+`(line: ${r.line+1}, col: ${r.character+1})`}};t.CompolerOptions=class{static getCompolerOptions(){const e=s.default.readConfigFile(i.default.resolve(l.FileUtils.getBaseDirName(),"./tsconfig.json"),s.default.sys.readFile).config.compilerOptions;return Object.assign(e,{target:"es2020",jsx:"preserve",incremental:void 0,declaration:void 0,declarationMap:void 0,emitDeclarationOnly:void 0,outFile:void 0,composite:void 0,tsBuildInfoFile:void 0,noEmit:void 0,isolatedModules:!0,paths:void 0,rootDirs:void 0,types:void 0,out:void 0,noLib:void 0,noResolve:!0,noEmitOnError:void 0,declarationDir:void 0,suppressOutputPathCheck:!0,allowNonTsExtensions:!0}),e}};t.GenerateFile=class{static writeFile(e,t,r){a.default.writeFile(i.default.resolve(t),JSON.stringify(e,null,2),r,(e=>{e?console.error(`ERROR FOR CREATE FILE:${e}`):console.log("API CHECK FINISH!")}))}static async writeExcelFile(e){const t=new o.Workbook,r=t.addWorksheet("Js Api",{views:[{xSplit:1}]});r.getRow(1).values=["order","analyzerName","buggyFilePath","codeContextStaerLine","defectLevel","defectType","description","language","mainBuggyCode","apiName","apiType","hierarchicalRelations","parentModuleName"];for(let t=1;t<=e.length;t++){const n=e[t-1];r.getRow(t+1).values=[t,n.analyzerName,n.getFilePath(),n.getLocation(),n.getLevel(),n.getType(),n.getMessage(),n.language,n.getMainBuggyCode(),n.getExtendInfo().getApiName(),n.getExtendInfo().getApiType(),n.getExtendInfo().getHierarchicalRelations(),n.getExtendInfo().getParentModuleName()]}t.xlsx.writeBuffer().then((e=>{a.default.writeFile(i.default.resolve(l.FileUtils.getBaseDirName(),"./Js_Api.xlsx"),e,(function(e){e&&console.error(e)}))}))}};class f{static getFullFiles(e,t){try{a.default.readdirSync(e).forEach((r=>{const n=i.default.join(e,r);a.default.statSync(n).isDirectory()?f.getFullFiles(n,t):(/\.d\.ts/.test(n)||/\.d\.ets/.test(n)||/\.ts/.test(n))&&t.push(n)}))}catch(e){console.error("ETS ERROR: "+e)}}}t.ObtainFullPath=f;class m{static getSinceVersion(e){return-1!==e.indexOf(d.PunctuationMark.LEFT_PARENTHESES)?e.substring(e.indexOf(d.PunctuationMark.LEFT_PARENTHESES)+1,e.indexOf(d.PunctuationMark.RIGHT_PARENTHESES)):e}static isOfficialTag(e){return-1===t.tagsArrayOfOrder.indexOf(e)}static createErrorInfo(e,t){return t.forEach((t=>{e=e.replace("$$",t)})),e}static getCheckApiVersion(){let e="-1";try{e=JSON.stringify(u.ApiCheckVersion)}catch(e){throw`Failed to read package.json or parse JSON content: ${e}`}if(!e)throw"Please configure the correct API version to be verified";return e}static judgeSpecialCase(e){let t=[];return e===s.default.SyntaxKind.TypeLiteral?t=["object"]:e===s.default.SyntaxKind.FunctionType&&(t=["function"]),t}static getExtendsApiValue(e){let t="";const r=[],n=e.getParentClasses();return 0===n.length||(n.forEach((e=>{0!==e.getExtendClass().length&&r.push(e.getExtendClass())})),t=r.join(",")),t}static getImplementsApiValue(e){let t="";const r=e.getParentClasses();return 0===r.length||r.forEach((e=>{0!==e.getImplementClass().length&&(t=e.getImplementClass())})),t}static getErrorInfo(e,t,r,n){let i=new c.ApiCheckInfo;if(void 0===e)return i;const a=void 0===t?-1:p.toNumber(t.since);return i.setErrorID(n.errorID).setErrorLevel(n.errorLevel).setFilePath(r).setApiPostion(e.getPos()).setErrorType(n.errorType).setLogType(n.logType).setSinceNumber(a).setApiName(e.getApiName()).setApiType(e.getApiType()).setApiText(e.getDefinedText()).setErrorInfo(n.errorInfo).setHierarchicalRelations(e.getHierarchicalRelations().join("|")).setParentModuleName(e.getParentApi()?.getApiName()),i}static getMdFiles(e){const t=[];return a.default.readFileSync(e,"utf-8").split(/[(\r\n)\r\n]+/).forEach((e=>{const r=new Set;m.splitPath(e,r),r.has("build-tools")||t.push(e)})),t}static splitPath(e,t){let r=i.default.parse(e);""!==r.base&&(t.add(r.base),m.splitPath(r.dir,t))}static isAscending(e){for(let t=1;t<e.length;t++)if(e[t]<e[t-1])return!1;return!0}}t.CommonFunctions=m,t.tagsArrayOfOrder=["namespace","struct","typedef","interface","extends","implements","permission","enum","constant","type","param","default","returns","readonly","throws","static","fires","syscap","systemapi","famodelonly","FAModelOnly","stagemodelonly","StageModelOnly","crossplatform","form","atomicservice","since","deprecated","useinstead","test","example"],t.officialTagArr=["abstract","access","alias","async","augments","author","borrows","class","classdesc","constructs","copyright","event","exports","external","file","function","generator","global","hideconstructor","ignore","inheritdoc","inner","instance","lends","license","listens","member","memberof","mixes","mixin","modifies","module","package","private","property","protected","public","requires","see","summary","this","todo","tutorial","variation","version","yields","also","description","kind","name","undocumented"],t.inheritTagArr=["test","famodelonly","FAModelOnly","stagemodelonly","StageModelOnly","deprecated","systemapi"],t.followTagArr=["atomicservice","form"],t.optionalTags=["static","fires","systemapi","famodelonly","FAModelOnly","stagemodelonly","StageModelOnly","crossplatform","deprecated","test","form","example","atomicservice"],t.conditionalOptionalTags=["default","permission","throws"],t.permissionOptionalTags=[s.default.SyntaxKind.FunctionDeclaration,s.default.SyntaxKind.MethodSignature,s.default.SyntaxKind.MethodDeclaration,s.default.SyntaxKind.CallSignature,s.default.SyntaxKind.Constructor,s.default.SyntaxKind.PropertyDeclaration,s.default.SyntaxKind.PropertySignature,s.default.SyntaxKind.VariableStatement],t.apiLegalityCheckTypeMap=new Map([[s.default.SyntaxKind.CallSignature,["param","returns","permission","throws","syscap","since"]],[s.default.SyntaxKind.ClassDeclaration,["extends","implements","syscap","since"]],[s.default.SyntaxKind.Constructor,["param","syscap","permission","throws","syscap","since"]],[s.default.SyntaxKind.EnumDeclaration,["enum","syscap","since"]],[s.default.SyntaxKind.FunctionDeclaration,["param","returns","permission","throws","syscap","since"]],[s.default.SyntaxKind.InterfaceDeclaration,["typedef","extends","syscap","since"]],[s.default.SyntaxKind.MethodDeclaration,["param","returns","permission","throws","syscap","since"]],[s.default.SyntaxKind.MethodSignature,["param","returns","permission","throws","syscap","since"]],[s.default.SyntaxKind.ModuleDeclaration,["namespace","syscap","since"]],[s.default.SyntaxKind.PropertyDeclaration,["type","default","permission","throws","readonly","syscap","since"]],[s.default.SyntaxKind.PropertySignature,["type","default","permission","throws","readonly","syscap","since"]],[s.default.SyntaxKind.VariableStatement,["constant","default","permission","throws","syscap","since"]],[s.default.SyntaxKind.TypeAliasDeclaration,["syscap","since","typedef","param","returns","throws"]],[s.default.SyntaxKind.EnumMember,["syscap","since"]],[s.default.SyntaxKind.NamespaceExportDeclaration,["syscap","since"]],[s.default.SyntaxKind.TypeLiteral,["syscap","since"]],[s.default.SyntaxKind.LabeledStatement,["syscap","since"]],[s.default.SyntaxKind.StructDeclaration,["struct","syscap","since"]]]),t.compositiveResult=[],t.cleanCompositiveResult=function(){t.compositiveResult=[]},t.compositiveLocalResult=[],t.apiCheckResult=[],t.cleanApiCheckResult=function(){t.apiCheckResult=[]},t.punctuationMarkSet=new Set(["\\{","\\}","\\(","\\)","\\[","\\]","\\@","\\.","\\:","\\,","\\;","\\(","\\)",'\\"',"\\/","\\_","\\-","\\=","\\?","\\<","\\>","\\,","\\!","\\#",":",",","\\:","\\|","\\%","\\&","\\¡","\\¢","\\+","\\`","\\\\","\\'"]),t.throwsTagDescriptionArr=["Parameter error. Possible causes:","Mandatory parameters are left unspecified","Incorrect parameter types","Parameter verification failed"]},4e3:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.LogUtil=t.LogLevelUtil=t.LogLevel=void 0,function(e){e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERR=3]="ERR"}(r=t.LogLevel||(t.LogLevel={}));t.LogLevelUtil=class{static get(e){for(let t=r.DEBUG;t<=r.ERR;t++)if(e===r[t])return t;return r.ERR}};class n{static e(e,t){n.logLevel<=r.ERR&&console.error(`${e}: ${t}`)}static w(e,t){n.logLevel<=r.WARN&&console.warn(`${e}: ${t}`)}static i(e,t){n.logLevel<=r.INFO&&console.info(`${e}: ${t}`)}static d(e,t){n.logLevel<=r.DEBUG&&console.debug(`${e}: ${t}`)}}t.LogUtil=n,n.logLevel=r.ERR},58843:function(e,t,r){"use strict";