gant-core 0.2.5 → 0.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var t=require("path"),e=require("fs"),r=require("../utils/index.js"),n=require("./defineConfig.js"),o=require("../utils/getJavascriptfile.js"),i="object"==typeof global&&global&&global.Object===Object&&global,u="object"==typeof self&&self&&self.Object===Object&&self,c=i||u||Function("return this")(),a=c.Symbol,f=Object.prototype,s=f.hasOwnProperty,l=f.toString,p=a?a.toStringTag:void 0;var v=Object.prototype.toString;var h="[object Null]",g="[object Undefined]",b=a?a.toStringTag:void 0;function y(t){return null==t?void 0===t?g:h:b&&b in Object(t)?function(t){var e=s.call(t,p),r=t[p];try{t[p]=void 0;var n=!0}catch(t){}var o=l.call(t);return n&&(e?t[p]=r:delete t[p]),o}(t):function(t){return v.call(t)}(t)}function d(t){return null!=t&&"object"==typeof t}var j="[object Symbol]";function _(t){return"symbol"==typeof t||d(t)&&y(t)==j}function w(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}var m=Array.isArray,O=1/0,C=a?a.prototype:void 0,A=C?C.toString:void 0;function F(t){if("string"==typeof t)return t;if(m(t))return w(t,F)+"";if(_(t))return A?A.call(t):"";var e=t+"";return"0"==e&&1/t==-O?"-0":e}function x(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function S(t){return t}var z="[object AsyncFunction]",P="[object Function]",U="[object GeneratorFunction]",M="[object Proxy]";function k(t){if(!x(t))return!1;var e=y(t);return e==P||e==U||e==z||e==M}var E,I=c["__core-js_shared__"],B=(E=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+E:"";var D=Function.prototype.toString;function T(t){if(null!=t){try{return D.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var $=/^\[object .+?Constructor\]$/,q=Function.prototype,L=Object.prototype,V=q.toString,N=L.hasOwnProperty,R=RegExp("^"+V.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function W(t){return!(!x(t)||(e=t,B&&B in e))&&(k(t)?R:$).test(T(t));var e}function G(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return W(r)?r:void 0}var J=G(c,"WeakMap"),H=Object.create,K=function(){function t(){}return function(e){if(!x(e))return{};if(H)return H(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function Q(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var X=Date.now;var Y,Z,tt,et=function(){try{var t=G(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),rt=et?function(t,e){return et(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:S,nt=(Y=rt,Z=0,tt=0,function(){var t=X(),e=16-(t-tt);if(tt=t,e>0){if(++Z>=800)return arguments[0]}else Z=0;return Y.apply(void 0,arguments)});function ot(t){return t!=t}function it(t,e){return!!(null==t?0:t.length)&&function(t,e,r){return e==e?function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e,r):function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,ot,r)}(t,e,0)>-1}var ut=9007199254740991,ct=/^(?:0|[1-9]\d*)$/;function at(t,e){var r=typeof t;return!!(e=null==e?ut:e)&&("number"==r||"symbol"!=r&&ct.test(t))&&t>-1&&t%1==0&&t<e}function ft(t,e,r){"__proto__"==e&&et?et(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function st(t,e){return t===e||t!=t&&e!=e}var lt=Object.prototype.hasOwnProperty;function pt(t,e,r){var n=t[e];lt.call(t,e)&&st(n,r)&&(void 0!==r||e in t)||ft(t,e,r)}function vt(t,e,r,n){var o=!r;r||(r={});for(var i=-1,u=e.length;++i<u;){var c=e[i],a=n?n(r[c],t[c],c,r,t):void 0;void 0===a&&(a=t[c]),o?ft(r,c,a):pt(r,c,a)}return r}var ht=Math.max;function gt(t,e,r){return e=ht(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=ht(n.length-e,0),u=Array(i);++o<i;)u[o]=n[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=n[o];return c[e]=r(u),function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(t,this,c)}}function bt(t,e){return nt(gt(t,e,S),t+"")}var yt=9007199254740991;function dt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=yt}function jt(t){return null!=t&&dt(t.length)&&!k(t)}var _t=Object.prototype;function wt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_t)}function mt(t){return d(t)&&"[object Arguments]"==y(t)}var Ot=Object.prototype,Ct=Ot.hasOwnProperty,At=Ot.propertyIsEnumerable,Ft=mt(function(){return arguments}())?mt:function(t){return d(t)&&Ct.call(t,"callee")&&!At.call(t,"callee")};var xt="object"==typeof exports&&exports&&!exports.nodeType&&exports,St=xt&&"object"==typeof module&&module&&!module.nodeType&&module,zt=St&&St.exports===xt?c.Buffer:void 0,Pt=(zt?zt.isBuffer:void 0)||function(){return!1},Ut={};function Mt(t){return function(e){return t(e)}}Ut["[object Float32Array]"]=Ut["[object Float64Array]"]=Ut["[object Int8Array]"]=Ut["[object Int16Array]"]=Ut["[object Int32Array]"]=Ut["[object Uint8Array]"]=Ut["[object Uint8ClampedArray]"]=Ut["[object Uint16Array]"]=Ut["[object Uint32Array]"]=!0,Ut["[object Arguments]"]=Ut["[object Array]"]=Ut["[object ArrayBuffer]"]=Ut["[object Boolean]"]=Ut["[object DataView]"]=Ut["[object Date]"]=Ut["[object Error]"]=Ut["[object Function]"]=Ut["[object Map]"]=Ut["[object Number]"]=Ut["[object Object]"]=Ut["[object RegExp]"]=Ut["[object Set]"]=Ut["[object String]"]=Ut["[object WeakMap]"]=!1;var kt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Et=kt&&"object"==typeof module&&module&&!module.nodeType&&module,It=Et&&Et.exports===kt&&i.process,Bt=function(){try{var t=Et&&Et.require&&Et.require("util").types;return t||It&&It.binding&&It.binding("util")}catch(t){}}(),Dt=Bt&&Bt.isTypedArray,Tt=Dt?Mt(Dt):function(t){return d(t)&&dt(t.length)&&!!Ut[y(t)]},$t=Object.prototype.hasOwnProperty;function qt(t,e){var r=m(t),n=!r&&Ft(t),o=!r&&!n&&Pt(t),i=!r&&!n&&!o&&Tt(t),u=r||n||o||i,c=u?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],a=c.length;for(var f in t)!e&&!$t.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||at(f,a))||c.push(f);return c}function Lt(t,e){return function(r){return t(e(r))}}var Vt=Lt(Object.keys,Object),Nt=Object.prototype.hasOwnProperty;function Rt(t){if(!wt(t))return Vt(t);var e=[];for(var r in Object(t))Nt.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Wt(t){return jt(t)?qt(t):Rt(t)}var Gt=Object.prototype.hasOwnProperty;function Jt(t){if(!x(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=wt(t),r=[];for(var n in t)("constructor"!=n||!e&&Gt.call(t,n))&&r.push(n);return r}function Ht(t){return jt(t)?qt(t,!0):Jt(t)}var Kt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qt=/^\w*$/;function Xt(t,e){if(m(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!_(t))||(Qt.test(t)||!Kt.test(t)||null!=e&&t in Object(e))}var Yt=G(Object,"create");var Zt=Object.prototype.hasOwnProperty;var te=Object.prototype.hasOwnProperty;function ee(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function re(t,e){for(var r=t.length;r--;)if(st(t[r][0],e))return r;return-1}ee.prototype.clear=function(){this.__data__=Yt?Yt(null):{},this.size=0},ee.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ee.prototype.get=function(t){var e=this.__data__;if(Yt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Zt.call(e,t)?e[t]:void 0},ee.prototype.has=function(t){var e=this.__data__;return Yt?void 0!==e[t]:te.call(e,t)},ee.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Yt&&void 0===e?"__lodash_hash_undefined__":e,this};var ne=Array.prototype.splice;function oe(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}oe.prototype.clear=function(){this.__data__=[],this.size=0},oe.prototype.delete=function(t){var e=this.__data__,r=re(e,t);return!(r<0)&&(r==e.length-1?e.pop():ne.call(e,r,1),--this.size,!0)},oe.prototype.get=function(t){var e=this.__data__,r=re(e,t);return r<0?void 0:e[r][1]},oe.prototype.has=function(t){return re(this.__data__,t)>-1},oe.prototype.set=function(t,e){var r=this.__data__,n=re(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var ie=G(c,"Map");function ue(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function ce(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ce.prototype.clear=function(){this.size=0,this.__data__={hash:new ee,map:new(ie||oe),string:new ee}},ce.prototype.delete=function(t){var e=ue(this,t).delete(t);return this.size-=e?1:0,e},ce.prototype.get=function(t){return ue(this,t).get(t)},ce.prototype.has=function(t){return ue(this,t).has(t)},ce.prototype.set=function(t,e){var r=ue(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var ae="Expected a function";function fe(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(ae);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u)||i,u};return r.cache=new(fe.Cache||ce),r}fe.Cache=ce;var se=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,le=/\\(\\)?/g,pe=function(t){var e=fe(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(se,(function(t,r,n,o){e.push(n?o.replace(le,"$1"):r||t)})),e}));function ve(t,e){return m(t)?t:Xt(t,e)?[t]:pe(function(t){return null==t?"":F(t)}(t))}var he=1/0;function ge(t){if("string"==typeof t||_(t))return t;var e=t+"";return"0"==e&&1/t==-he?"-0":e}function be(t,e){for(var r=0,n=(e=ve(e,t)).length;null!=t&&r<n;)t=t[ge(e[r++])];return r&&r==n?t:void 0}function ye(t,e,r){var n=null==t?void 0:be(t,e);return void 0===n?r:n}function de(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var je=a?a.isConcatSpreadable:void 0;function _e(t){return m(t)||Ft(t)||!!(je&&t&&t[je])}function we(t,e,r,n,o){var i=-1,u=t.length;for(r||(r=_e),o||(o=[]);++i<u;){var c=t[i];e>0&&r(c)?e>1?we(c,e-1,r,n,o):de(o,c):n||(o[o.length]=c)}return o}function me(t){return(null==t?0:t.length)?we(t,1):[]}function Oe(t){return nt(gt(t,void 0,me),t+"")}var Ce=Lt(Object.getPrototypeOf,Object),Ae="[object Object]",Fe=Function.prototype,xe=Object.prototype,Se=Fe.toString,ze=xe.hasOwnProperty,Pe=Se.call(Object);function Ue(t){if(!d(t)||y(t)!=Ae)return!1;var e=Ce(t);if(null===e)return!0;var r=ze.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Se.call(r)==Pe}function Me(t){var e=this.__data__=new oe(t);this.size=e.size}Me.prototype.clear=function(){this.__data__=new oe,this.size=0},Me.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Me.prototype.get=function(t){return this.__data__.get(t)},Me.prototype.has=function(t){return this.__data__.has(t)},Me.prototype.set=function(t,e){var r=this.__data__;if(r instanceof oe){var n=r.__data__;if(!ie||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new ce(n)}return r.set(t,e),this.size=r.size,this};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ee=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Ie=Ee&&Ee.exports===ke?c.Buffer:void 0,Be=Ie?Ie.allocUnsafe:void 0;function De(t,e){if(e)return t.slice();var r=t.length,n=Be?Be(r):new t.constructor(r);return t.copy(n),n}function Te(){return[]}var $e=Object.prototype.propertyIsEnumerable,qe=Object.getOwnPropertySymbols,Le=qe?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var u=t[r];e(u,r,t)&&(i[o++]=u)}return i}(qe(t),(function(e){return $e.call(t,e)})))}:Te;var Ve=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)de(e,Le(t)),t=Ce(t);return e}:Te;function Ne(t,e,r){var n=e(t);return m(t)?n:de(n,r(t))}function Re(t){return Ne(t,Wt,Le)}function We(t){return Ne(t,Ht,Ve)}var Ge=G(c,"DataView"),Je=G(c,"Promise"),He=G(c,"Set"),Ke="[object Map]",Qe="[object Promise]",Xe="[object Set]",Ye="[object WeakMap]",Ze="[object DataView]",tr=T(Ge),er=T(ie),rr=T(Je),nr=T(He),or=T(J),ir=y;(Ge&&ir(new Ge(new ArrayBuffer(1)))!=Ze||ie&&ir(new ie)!=Ke||Je&&ir(Je.resolve())!=Qe||He&&ir(new He)!=Xe||J&&ir(new J)!=Ye)&&(ir=function(t){var e=y(t),r="[object Object]"==e?t.constructor:void 0,n=r?T(r):"";if(n)switch(n){case tr:return Ze;case er:return Ke;case rr:return Qe;case nr:return Xe;case or:return Ye}return e});var ur=ir,cr=Object.prototype.hasOwnProperty;var ar=c.Uint8Array;function fr(t){var e=new t.constructor(t.byteLength);return new ar(e).set(new ar(t)),e}var sr=/\w*$/;var lr=a?a.prototype:void 0,pr=lr?lr.valueOf:void 0;function vr(t,e){var r=e?fr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var hr="[object Boolean]",gr="[object Date]",br="[object Map]",yr="[object Number]",dr="[object RegExp]",jr="[object Set]",_r="[object String]",wr="[object Symbol]",mr="[object ArrayBuffer]",Or="[object DataView]",Cr="[object Float32Array]",Ar="[object Float64Array]",Fr="[object Int8Array]",xr="[object Int16Array]",Sr="[object Int32Array]",zr="[object Uint8Array]",Pr="[object Uint8ClampedArray]",Ur="[object Uint16Array]",Mr="[object Uint32Array]";function kr(t,e,r){var n,o,i,u=t.constructor;switch(e){case mr:return fr(t);case hr:case gr:return new u(+t);case Or:return function(t,e){var r=e?fr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case Cr:case Ar:case Fr:case xr:case Sr:case zr:case Pr:case Ur:case Mr:return vr(t,r);case br:return new u;case yr:case _r:return new u(t);case dr:return(i=new(o=t).constructor(o.source,sr.exec(o))).lastIndex=o.lastIndex,i;case jr:return new u;case wr:return n=t,pr?Object(pr.call(n)):{}}}function Er(t){return"function"!=typeof t.constructor||wt(t)?{}:K(Ce(t))}var Ir=Bt&&Bt.isMap,Br=Ir?Mt(Ir):function(t){return d(t)&&"[object Map]"==ur(t)};var Dr=Bt&&Bt.isSet,Tr=Dr?Mt(Dr):function(t){return d(t)&&"[object Set]"==ur(t)},$r=1,qr=2,Lr=4,Vr="[object Arguments]",Nr="[object Function]",Rr="[object GeneratorFunction]",Wr="[object Object]",Gr={};function Jr(t,e,r,n,o,i){var u,c=e&$r,a=e&qr,f=e&Lr;if(r&&(u=o?r(t,n,o,i):r(t)),void 0!==u)return u;if(!x(t))return t;var s=m(t);if(s){if(u=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&cr.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!c)return Q(t,u)}else{var l=ur(t),p=l==Nr||l==Rr;if(Pt(t))return De(t,c);if(l==Wr||l==Vr||p&&!o){if(u=a||p?{}:Er(t),!c)return a?function(t,e){return vt(t,Ve(t),e)}(t,function(t,e){return t&&vt(e,Ht(e),t)}(u,t)):function(t,e){return vt(t,Le(t),e)}(t,function(t,e){return t&&vt(e,Wt(e),t)}(u,t))}else{if(!Gr[l])return o?t:{};u=kr(t,l,c)}}i||(i=new Me);var v=i.get(t);if(v)return v;i.set(t,u),Tr(t)?t.forEach((function(n){u.add(Jr(n,e,r,n,t,i))})):Br(t)&&t.forEach((function(n,o){u.set(o,Jr(n,e,r,o,t,i))}));var h=s?void 0:(f?a?We:Re:a?Ht:Wt)(t);return function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););}(h||t,(function(n,o){h&&(n=t[o=n]),pt(u,o,Jr(n,e,r,o,t,i))})),u}Gr[Vr]=Gr["[object Array]"]=Gr["[object ArrayBuffer]"]=Gr["[object DataView]"]=Gr["[object Boolean]"]=Gr["[object Date]"]=Gr["[object Float32Array]"]=Gr["[object Float64Array]"]=Gr["[object Int8Array]"]=Gr["[object Int16Array]"]=Gr["[object Int32Array]"]=Gr["[object Map]"]=Gr["[object Number]"]=Gr[Wr]=Gr["[object RegExp]"]=Gr["[object Set]"]=Gr["[object String]"]=Gr["[object Symbol]"]=Gr["[object Uint8Array]"]=Gr["[object Uint8ClampedArray]"]=Gr["[object Uint16Array]"]=Gr["[object Uint32Array]"]=!0,Gr["[object Error]"]=Gr[Nr]=Gr["[object WeakMap]"]=!1;function Hr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new ce;++e<r;)this.add(t[e])}function Kr(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function Qr(t,e){return t.has(e)}Hr.prototype.add=Hr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Hr.prototype.has=function(t){return this.__data__.has(t)};var Xr=1,Yr=2;function Zr(t,e,r,n,o,i){var u=r&Xr,c=t.length,a=e.length;if(c!=a&&!(u&&a>c))return!1;var f=i.get(t),s=i.get(e);if(f&&s)return f==e&&s==t;var l=-1,p=!0,v=r&Yr?new Hr:void 0;for(i.set(t,e),i.set(e,t);++l<c;){var h=t[l],g=e[l];if(n)var b=u?n(g,h,l,e,t,i):n(h,g,l,t,e,i);if(void 0!==b){if(b)continue;p=!1;break}if(v){if(!Kr(e,(function(t,e){if(!Qr(v,e)&&(h===t||o(h,t,r,n,i)))return v.push(e)}))){p=!1;break}}else if(h!==g&&!o(h,g,r,n,i)){p=!1;break}}return i.delete(t),i.delete(e),p}function tn(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function en(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var rn=1,nn=2,on="[object Boolean]",un="[object Date]",cn="[object Error]",an="[object Map]",fn="[object Number]",sn="[object RegExp]",ln="[object Set]",pn="[object String]",vn="[object Symbol]",hn="[object ArrayBuffer]",gn="[object DataView]",bn=a?a.prototype:void 0,yn=bn?bn.valueOf:void 0;var dn=1,jn=Object.prototype.hasOwnProperty;var _n=1,wn="[object Arguments]",mn="[object Array]",On="[object Object]",Cn=Object.prototype.hasOwnProperty;function An(t,e,r,n,o,i){var u=m(t),c=m(e),a=u?mn:ur(t),f=c?mn:ur(e),s=(a=a==wn?On:a)==On,l=(f=f==wn?On:f)==On,p=a==f;if(p&&Pt(t)){if(!Pt(e))return!1;u=!0,s=!1}if(p&&!s)return i||(i=new Me),u||Tt(t)?Zr(t,e,r,n,o,i):function(t,e,r,n,o,i,u){switch(r){case gn:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case hn:return!(t.byteLength!=e.byteLength||!i(new ar(t),new ar(e)));case on:case un:case fn:return st(+t,+e);case cn:return t.name==e.name&&t.message==e.message;case sn:case pn:return t==e+"";case an:var c=tn;case ln:var a=n&rn;if(c||(c=en),t.size!=e.size&&!a)return!1;var f=u.get(t);if(f)return f==e;n|=nn,u.set(t,e);var s=Zr(c(t),c(e),n,o,i,u);return u.delete(t),s;case vn:if(yn)return yn.call(t)==yn.call(e)}return!1}(t,e,a,r,n,o,i);if(!(r&_n)){var v=s&&Cn.call(t,"__wrapped__"),h=l&&Cn.call(e,"__wrapped__");if(v||h){var g=v?t.value():t,b=h?e.value():e;return i||(i=new Me),o(g,b,r,n,i)}}return!!p&&(i||(i=new Me),function(t,e,r,n,o,i){var u=r&dn,c=Re(t),a=c.length;if(a!=Re(e).length&&!u)return!1;for(var f=a;f--;){var s=c[f];if(!(u?s in e:jn.call(e,s)))return!1}var l=i.get(t),p=i.get(e);if(l&&p)return l==e&&p==t;var v=!0;i.set(t,e),i.set(e,t);for(var h=u;++f<a;){var g=t[s=c[f]],b=e[s];if(n)var y=u?n(b,g,s,e,t,i):n(g,b,s,t,e,i);if(!(void 0===y?g===b||o(g,b,r,n,i):y)){v=!1;break}h||(h="constructor"==s)}if(v&&!h){var d=t.constructor,j=e.constructor;d==j||!("constructor"in t)||!("constructor"in e)||"function"==typeof d&&d instanceof d&&"function"==typeof j&&j instanceof j||(v=!1)}return i.delete(t),i.delete(e),v}(t,e,r,n,o,i))}function Fn(t,e,r,n,o){return t===e||(null==t||null==e||!d(t)&&!d(e)?t!=t&&e!=e:An(t,e,r,n,Fn,o))}var xn=1,Sn=2;function zn(t){return t==t&&!x(t)}function Pn(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}function Un(t){var e=function(t){for(var e=Wt(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,zn(o)]}return e}(t);return 1==e.length&&e[0][2]?Pn(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,n){var o=r.length,i=o,u=!n;if(null==t)return!i;for(t=Object(t);o--;){var c=r[o];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<i;){var a=(c=r[o])[0],f=t[a],s=c[1];if(u&&c[2]){if(void 0===f&&!(a in t))return!1}else{var l=new Me;if(n)var p=n(f,s,a,t,e,l);if(!(void 0===p?Fn(s,f,xn|Sn,n,l):p))return!1}}return!0}(r,t,e)}}function Mn(t,e){return null!=t&&e in Object(t)}function kn(t,e,r){for(var n=-1,o=(e=ve(e,t)).length,i=!1;++n<o;){var u=ge(e[n]);if(!(i=null!=t&&r(t,u)))break;t=t[u]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&dt(o)&&at(u,o)&&(m(t)||Ft(t))}function En(t,e){return null!=t&&kn(t,e,Mn)}var In=1,Bn=2;function Dn(t){return Xt(t)?(e=ge(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return be(e,t)}}(t);var e}function Tn(t){return"function"==typeof t?t:null==t?S:"object"==typeof t?m(t)?function(t,e){return Xt(t)&&zn(e)?Pn(ge(t),e):function(r){var n=ye(r,t);return void 0===n&&n===e?En(r,t):Fn(e,n,In|Bn)}}(t[0],t[1]):Un(t):Dn(t)}function $n(t,e,r,n){for(var o=-1,i=null==t?0:t.length;++o<i;){var u=t[o];e(n,u,r(u),t)}return n}var qn,Ln=function(t,e,r){for(var n=-1,o=Object(t),i=r(t),u=i.length;u--;){var c=i[qn?u:++n];if(!1===e(o[c],c,o))break}return t};function Vn(t,e){return t&&Ln(t,e,Wt)}var Nn=function(t,e){return function(r,n){if(null==r)return r;if(!jt(r))return t(r,n);for(var o=r.length,i=e?o:-1,u=Object(r);(e?i--:++i<o)&&!1!==n(u[i],i,u););return r}}(Vn);function Rn(t,e,r,n){return Nn(t,(function(t,o,i){e(n,t,r(t),i)})),n}function Wn(t,e,r){(void 0!==r&&!st(t[e],r)||void 0===r&&!(e in t))&&ft(t,e,r)}function Gn(t){return d(t)&&jt(t)}function Jn(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Hn(t,e,r,n,o,i,u){var c=Jn(t,r),a=Jn(e,r),f=u.get(a);if(f)Wn(t,r,f);else{var s,l=i?i(c,a,r+"",t,e,u):void 0,p=void 0===l;if(p){var v=m(a),h=!v&&Pt(a),g=!v&&!h&&Tt(a);l=a,v||h||g?m(c)?l=c:Gn(c)?l=Q(c):h?(p=!1,l=De(a,!0)):g?(p=!1,l=vr(a,!0)):l=[]:Ue(a)||Ft(a)?(l=c,Ft(c)?l=vt(s=c,Ht(s)):x(c)&&!k(c)||(l=Er(a))):p=!1}p&&(u.set(a,l),o(l,a,n,i,u),u.delete(a)),Wn(t,r,l)}}function Kn(t,e,r,n,o){t!==e&&Ln(e,(function(i,u){if(o||(o=new Me),x(i))Hn(t,e,u,r,Kn,n,o);else{var c=n?n(Jn(t,u),i,u+"",t,e,o):void 0;void 0===c&&(c=i),Wn(t,u,c)}}),Ht)}var Qn,Xn=(Qn=function(t,e,r,n){Kn(t,e,r,n)},bt((function(t,e){var r=-1,n=e.length,o=n>1?e[n-1]:void 0,i=n>2?e[2]:void 0;for(o=Qn.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(t,e,r){if(!x(r))return!1;var n=typeof e;return!!("number"==n?jt(r)&&at(e,r.length):"string"==n&&e in r)&&st(r[e],t)}(e[0],e[1],i)&&(o=n<3?void 0:o,n=1),t=Object(t);++r<n;){var u=e[r];u&&Qn(t,u,r,o)}return t})));function Yn(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}var Zn=Object.prototype.hasOwnProperty;function to(t,e){return null!=t&&Zn.call(t,e)}function eo(t,e){return e.length<2?t:be(t,function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}(e,0,-1))}var ro=Object.prototype.hasOwnProperty;var no,oo,io=(no=function(t,e,r){ft(t,r,e)},function(t,e){var r=m(t)?$n:Rn,n=oo?oo():{};return r(t,no,Tn(e),n)});function uo(t,e){return null==(t=eo(t,e=ve(e,t)))||delete t[ge((r=e,n=null==r?0:r.length,n?r[n-1]:void 0))];var r,n}function co(t){return Ue(t)?void 0:t}var ao=Oe((function(t,e){var r={};if(null==t)return r;var n=!1;e=w(e,(function(e){return e=ve(e,t),n||(n=e.length>1),e})),vt(t,We(t),r),n&&(r=Jr(r,7,co));for(var o=e.length;o--;)uo(r,e[o]);return r}));function fo(t,e,r,n){if(!x(t))return t;for(var o=-1,i=(e=ve(e,t)).length,u=i-1,c=t;null!=c&&++o<i;){var a=ge(e[o]),f=r;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(o!=u){var s=c[a];void 0===(f=n?n(s,a,c):void 0)&&(f=x(s)?s:at(e[o+1])?[]:{})}pt(c,a,f),c=c[a]}return t}function so(t,e){return function(t,e,r){for(var n=-1,o=e.length,i={};++n<o;){var u=e[n],c=be(t,u);r(c,u)&&fo(i,ve(u,t),c)}return i}(t,e,(function(e,r){return En(t,r)}))}var lo=Oe((function(t,e){return null==t?{}:so(t,e)})),po=He&&1/en(new He([,-0]))[1]==1/0?function(t){return new He(t)}:function(){};var vo=bt((function(t){return function(t,e,r){var n=-1,o=it,i=t.length,u=!0,c=[],a=c;if(r)u=!1,o=Yn;else if(i>=200){var f=e?null:po(t);if(f)return en(f);u=!1,o=Qr,a=new Hr}else a=e?[]:c;t:for(;++n<i;){var s=t[n],l=e?e(s):s;if(s=r||0!==s?s:0,u&&l==l){for(var p=a.length;p--;)if(a[p]===l)continue t;e&&a.push(l),c.push(s)}else o(a,l,r)||(a!==c&&a.push(l),c.push(s))}return c}(we(t,1,Gn,!0))}));const ho=["config/config.ts","config/config.js","config.ts","config.js"];class go{opts;mainConfigFile;configFiles=[];constructor(t){const e=t.defaultConfigFiles?t.defaultConfigFiles:ho;this.mainConfigFile=go.getMainConfigFile({cwd:t.cwd,defaultConfigFiles:e}),this.opts={...t,defaultConfigFiles:e}}getMsPagesUserConfig(t){let e={};return("string"==typeof t?[t]:t).map((t=>{const n=go.getMainConfigFile({cwd:t,defaultConfigFiles:this.opts.defaultConfigFiles}),o=go.getUserConfig({cwd:t,mainConfigFile:n});e=r.mergeConfig(e,lo(o,["routes","microServiceMap","setting","define","optimization"]))})),e}getMsUserConfig(){this.configFiles=[];let e=go.getUserConfig({cwd:this.opts.cwd,mainConfigFile:this.mainConfigFile});this.mainConfigFile&&this.configFiles.push(this.mainConfigFile);const o=[this.opts.cwd],i=r.getSrcPath();ye(e,"mfa.pages",[]);const u=ye(e,"alias",{}),c=ye(e,"packages",{}),a={"@gant":t.resolve(this.opts.cwd,i,".gant"),"@@":t.resolve(this.opts.cwd),...u};let f={context:this.opts.cwd,publicPathDir:t.resolve(this.opts.cwd,i,".gant"),resolve:{alias:a}};return Ue(c)&&Object.keys(c).map((t=>{const e=c[t];if(o.includes(e))return;o.push(e);const n=go.getMainConfigFile({cwd:e,defaultConfigFiles:this.opts.defaultConfigFiles});n&&this.configFiles.push(n);const i=go.getUserConfig({cwd:e,mainConfigFile:n});f=r.mergeConfig(f,lo(i,["microServiceMap","setting","define","optimization"]))})),{...r.mergeConfig(r.mergeConfig(n.defineConfig(),f),e)}}getUserConfig(){this.configFiles=[];let e=go.getUserConfig({cwd:this.opts.cwd,mainConfigFile:this.mainConfigFile});this.mainConfigFile&&this.configFiles.push(this.mainConfigFile);const o=[this.opts.cwd],i=ye(e,"packages",{}),u=r.getSrcPath(),c={"@gant":t.resolve(this.opts.cwd,u,".gant"),[e.name||"@@"]:t.resolve(this.opts.cwd),...i};let a={context:this.opts.cwd,resolve:{alias:c}};return Ue(i)&&Object.keys(i).map((t=>{const e=i[t];if(o.includes(e))return;o.push(e);const n=go.getMainConfigFile({cwd:e,defaultConfigFiles:this.opts.defaultConfigFiles});n&&this.configFiles.push(n);const u=go.getUserConfig({cwd:e,mainConfigFile:n});a=r.mergeConfig(a,lo(u,["routes","microServiceMap","setting","define","optimization"]))})),{...r.mergeConfig(r.mergeConfig(n.defineConfig(),a),e)}}static getMainConfigFile(r){let n=null;for(const o of r.defaultConfigFiles||ho){const i=t.join(r.cwd,o);if(e.existsSync(i)){n=i;break}}return n}static getUserConfig(t){let e={};if(!t.mainConfigFile)return e;try{e=o.getJavascriptfile(r.getAbsFile(t.mainConfigFile,t.cwd))}catch(t){console.log("getUserConfig Error :",t)}return e}}exports.Config=go,exports.cloneDeep=function(t){return Jr(t,5)},exports.get=ye,exports.has=function(t,e){return null!=t&&kn(t,e,to)},exports.isArray=m,exports.isEmpty=function(t){if(null==t)return!0;if(jt(t)&&(m(t)||"string"==typeof t||"function"==typeof t.splice||Pt(t)||Tt(t)||Ft(t)))return!t.length;var e=ur(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(wt(t))return!Rt(t).length;for(var r in t)if(ro.call(t,r))return!1;return!0},exports.isNull=function(t){return null===t},exports.isObject=x,exports.isUndefined=function(t){return void 0===t},exports.keyBy=io,exports.keys=Wt,exports.mapValues=function(t,e){var r={};return e=Tn(e),Vn(t,(function(t,n,o){ft(r,n,e(t,n,o))})),r},exports.mergeWith=Xn,exports.omit=ao,exports.pick=lo,exports.union=vo,exports.values=function(t){return null==t?[]:function(t,e){return w(e,(function(e){return t[e]}))}(t,Wt(t))};
2
+ "use strict";var t=require("path"),e=require("fs"),r=require("../utils/index.js"),n=require("./defineConfig.js"),o=require("../utils/getJavascriptfile.js"),i="object"==typeof global&&global&&global.Object===Object&&global,u="object"==typeof self&&self&&self.Object===Object&&self,c=i||u||Function("return this")(),a=c.Symbol,f=Object.prototype,s=f.hasOwnProperty,l=f.toString,p=a?a.toStringTag:void 0;var v=Object.prototype.toString;var h="[object Null]",g="[object Undefined]",b=a?a.toStringTag:void 0;function y(t){return null==t?void 0===t?g:h:b&&b in Object(t)?function(t){var e=s.call(t,p),r=t[p];try{t[p]=void 0;var n=!0}catch(t){}var o=l.call(t);return n&&(e?t[p]=r:delete t[p]),o}(t):function(t){return v.call(t)}(t)}function d(t){return null!=t&&"object"==typeof t}var j="[object Symbol]";function _(t){return"symbol"==typeof t||d(t)&&y(t)==j}function w(t,e){for(var r=-1,n=null==t?0:t.length,o=Array(n);++r<n;)o[r]=e(t[r],r,t);return o}var m=Array.isArray,O=1/0,C=a?a.prototype:void 0,A=C?C.toString:void 0;function F(t){if("string"==typeof t)return t;if(m(t))return w(t,F)+"";if(_(t))return A?A.call(t):"";var e=t+"";return"0"==e&&1/t==-O?"-0":e}function x(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function S(t){return t}var z="[object AsyncFunction]",P="[object Function]",U="[object GeneratorFunction]",M="[object Proxy]";function k(t){if(!x(t))return!1;var e=y(t);return e==P||e==U||e==z||e==M}var E,I=c["__core-js_shared__"],B=(E=/[^.]+$/.exec(I&&I.keys&&I.keys.IE_PROTO||""))?"Symbol(src)_1."+E:"";var D=Function.prototype.toString;function T(t){if(null!=t){try{return D.call(t)}catch(t){}try{return t+""}catch(t){}}return""}var $=/^\[object .+?Constructor\]$/,q=Function.prototype,L=Object.prototype,V=q.toString,N=L.hasOwnProperty,R=RegExp("^"+V.call(N).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function W(t){return!(!x(t)||(e=t,B&&B in e))&&(k(t)?R:$).test(T(t));var e}function G(t,e){var r=function(t,e){return null==t?void 0:t[e]}(t,e);return W(r)?r:void 0}var J=G(c,"WeakMap"),H=Object.create,K=function(){function t(){}return function(e){if(!x(e))return{};if(H)return H(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();function Q(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var X=Date.now;var Y,Z,tt,et=function(){try{var t=G(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),rt=et?function(t,e){return et(t,"toString",{configurable:!0,enumerable:!1,value:(r=e,function(){return r}),writable:!0});var r}:S,nt=(Y=rt,Z=0,tt=0,function(){var t=X(),e=16-(t-tt);if(tt=t,e>0){if(++Z>=800)return arguments[0]}else Z=0;return Y.apply(void 0,arguments)});function ot(t){return t!=t}function it(t,e){return!!(null==t?0:t.length)&&function(t,e,r){return e==e?function(t,e,r){for(var n=r-1,o=t.length;++n<o;)if(t[n]===e)return n;return-1}(t,e,r):function(t,e,r,n){for(var o=t.length,i=r+(n?1:-1);n?i--:++i<o;)if(e(t[i],i,t))return i;return-1}(t,ot,r)}(t,e,0)>-1}var ut=9007199254740991,ct=/^(?:0|[1-9]\d*)$/;function at(t,e){var r=typeof t;return!!(e=null==e?ut:e)&&("number"==r||"symbol"!=r&&ct.test(t))&&t>-1&&t%1==0&&t<e}function ft(t,e,r){"__proto__"==e&&et?et(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}function st(t,e){return t===e||t!=t&&e!=e}var lt=Object.prototype.hasOwnProperty;function pt(t,e,r){var n=t[e];lt.call(t,e)&&st(n,r)&&(void 0!==r||e in t)||ft(t,e,r)}function vt(t,e,r,n){var o=!r;r||(r={});for(var i=-1,u=e.length;++i<u;){var c=e[i],a=n?n(r[c],t[c],c,r,t):void 0;void 0===a&&(a=t[c]),o?ft(r,c,a):pt(r,c,a)}return r}var ht=Math.max;function gt(t,e,r){return e=ht(void 0===e?t.length-1:e,0),function(){for(var n=arguments,o=-1,i=ht(n.length-e,0),u=Array(i);++o<i;)u[o]=n[e+o];o=-1;for(var c=Array(e+1);++o<e;)c[o]=n[o];return c[e]=r(u),function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}(t,this,c)}}function bt(t,e){return nt(gt(t,e,S),t+"")}var yt=9007199254740991;function dt(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=yt}function jt(t){return null!=t&&dt(t.length)&&!k(t)}var _t=Object.prototype;function wt(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||_t)}function mt(t){return d(t)&&"[object Arguments]"==y(t)}var Ot=Object.prototype,Ct=Ot.hasOwnProperty,At=Ot.propertyIsEnumerable,Ft=mt(function(){return arguments}())?mt:function(t){return d(t)&&Ct.call(t,"callee")&&!At.call(t,"callee")};var xt="object"==typeof exports&&exports&&!exports.nodeType&&exports,St=xt&&"object"==typeof module&&module&&!module.nodeType&&module,zt=St&&St.exports===xt?c.Buffer:void 0,Pt=(zt?zt.isBuffer:void 0)||function(){return!1},Ut={};function Mt(t){return function(e){return t(e)}}Ut["[object Float32Array]"]=Ut["[object Float64Array]"]=Ut["[object Int8Array]"]=Ut["[object Int16Array]"]=Ut["[object Int32Array]"]=Ut["[object Uint8Array]"]=Ut["[object Uint8ClampedArray]"]=Ut["[object Uint16Array]"]=Ut["[object Uint32Array]"]=!0,Ut["[object Arguments]"]=Ut["[object Array]"]=Ut["[object ArrayBuffer]"]=Ut["[object Boolean]"]=Ut["[object DataView]"]=Ut["[object Date]"]=Ut["[object Error]"]=Ut["[object Function]"]=Ut["[object Map]"]=Ut["[object Number]"]=Ut["[object Object]"]=Ut["[object RegExp]"]=Ut["[object Set]"]=Ut["[object String]"]=Ut["[object WeakMap]"]=!1;var kt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Et=kt&&"object"==typeof module&&module&&!module.nodeType&&module,It=Et&&Et.exports===kt&&i.process,Bt=function(){try{var t=Et&&Et.require&&Et.require("util").types;return t||It&&It.binding&&It.binding("util")}catch(t){}}(),Dt=Bt&&Bt.isTypedArray,Tt=Dt?Mt(Dt):function(t){return d(t)&&dt(t.length)&&!!Ut[y(t)]},$t=Object.prototype.hasOwnProperty;function qt(t,e){var r=m(t),n=!r&&Ft(t),o=!r&&!n&&Pt(t),i=!r&&!n&&!o&&Tt(t),u=r||n||o||i,c=u?function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}(t.length,String):[],a=c.length;for(var f in t)!e&&!$t.call(t,f)||u&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||at(f,a))||c.push(f);return c}function Lt(t,e){return function(r){return t(e(r))}}var Vt=Lt(Object.keys,Object),Nt=Object.prototype.hasOwnProperty;function Rt(t){if(!wt(t))return Vt(t);var e=[];for(var r in Object(t))Nt.call(t,r)&&"constructor"!=r&&e.push(r);return e}function Wt(t){return jt(t)?qt(t):Rt(t)}var Gt=Object.prototype.hasOwnProperty;function Jt(t){if(!x(t))return function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}(t);var e=wt(t),r=[];for(var n in t)("constructor"!=n||!e&&Gt.call(t,n))&&r.push(n);return r}function Ht(t){return jt(t)?qt(t,!0):Jt(t)}var Kt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qt=/^\w*$/;function Xt(t,e){if(m(t))return!1;var r=typeof t;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=t&&!_(t))||(Qt.test(t)||!Kt.test(t)||null!=e&&t in Object(e))}var Yt=G(Object,"create");var Zt=Object.prototype.hasOwnProperty;var te=Object.prototype.hasOwnProperty;function ee(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}function re(t,e){for(var r=t.length;r--;)if(st(t[r][0],e))return r;return-1}ee.prototype.clear=function(){this.__data__=Yt?Yt(null):{},this.size=0},ee.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ee.prototype.get=function(t){var e=this.__data__;if(Yt){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return Zt.call(e,t)?e[t]:void 0},ee.prototype.has=function(t){var e=this.__data__;return Yt?void 0!==e[t]:te.call(e,t)},ee.prototype.set=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Yt&&void 0===e?"__lodash_hash_undefined__":e,this};var ne=Array.prototype.splice;function oe(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}oe.prototype.clear=function(){this.__data__=[],this.size=0},oe.prototype.delete=function(t){var e=this.__data__,r=re(e,t);return!(r<0)&&(r==e.length-1?e.pop():ne.call(e,r,1),--this.size,!0)},oe.prototype.get=function(t){var e=this.__data__,r=re(e,t);return r<0?void 0:e[r][1]},oe.prototype.has=function(t){return re(this.__data__,t)>-1},oe.prototype.set=function(t,e){var r=this.__data__,n=re(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this};var ie=G(c,"Map");function ue(t,e){var r,n,o=t.__data__;return("string"==(n=typeof(r=e))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof e?"string":"hash"]:o.map}function ce(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}ce.prototype.clear=function(){this.size=0,this.__data__={hash:new ee,map:new(ie||oe),string:new ee}},ce.prototype.delete=function(t){var e=ue(this,t).delete(t);return this.size-=e?1:0,e},ce.prototype.get=function(t){return ue(this,t).get(t)},ce.prototype.has=function(t){return ue(this,t).has(t)},ce.prototype.set=function(t,e){var r=ue(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this};var ae="Expected a function";function fe(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(ae);var r=function(){var n=arguments,o=e?e.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var u=t.apply(this,n);return r.cache=i.set(o,u)||i,u};return r.cache=new(fe.Cache||ce),r}fe.Cache=ce;var se=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,le=/\\(\\)?/g,pe=function(t){var e=fe(t,(function(t){return 500===r.size&&r.clear(),t})),r=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(se,(function(t,r,n,o){e.push(n?o.replace(le,"$1"):r||t)})),e}));function ve(t,e){return m(t)?t:Xt(t,e)?[t]:pe(function(t){return null==t?"":F(t)}(t))}var he=1/0;function ge(t){if("string"==typeof t||_(t))return t;var e=t+"";return"0"==e&&1/t==-he?"-0":e}function be(t,e){for(var r=0,n=(e=ve(e,t)).length;null!=t&&r<n;)t=t[ge(e[r++])];return r&&r==n?t:void 0}function ye(t,e,r){var n=null==t?void 0:be(t,e);return void 0===n?r:n}function de(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var je=a?a.isConcatSpreadable:void 0;function _e(t){return m(t)||Ft(t)||!!(je&&t&&t[je])}function we(t,e,r,n,o){var i=-1,u=t.length;for(r||(r=_e),o||(o=[]);++i<u;){var c=t[i];e>0&&r(c)?e>1?we(c,e-1,r,n,o):de(o,c):n||(o[o.length]=c)}return o}function me(t){return(null==t?0:t.length)?we(t,1):[]}function Oe(t){return nt(gt(t,void 0,me),t+"")}var Ce=Lt(Object.getPrototypeOf,Object),Ae="[object Object]",Fe=Function.prototype,xe=Object.prototype,Se=Fe.toString,ze=xe.hasOwnProperty,Pe=Se.call(Object);function Ue(t){if(!d(t)||y(t)!=Ae)return!1;var e=Ce(t);if(null===e)return!0;var r=ze.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&Se.call(r)==Pe}function Me(t){var e=this.__data__=new oe(t);this.size=e.size}Me.prototype.clear=function(){this.__data__=new oe,this.size=0},Me.prototype.delete=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r},Me.prototype.get=function(t){return this.__data__.get(t)},Me.prototype.has=function(t){return this.__data__.has(t)},Me.prototype.set=function(t,e){var r=this.__data__;if(r instanceof oe){var n=r.__data__;if(!ie||n.length<199)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new ce(n)}return r.set(t,e),this.size=r.size,this};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ee=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Ie=Ee&&Ee.exports===ke?c.Buffer:void 0,Be=Ie?Ie.allocUnsafe:void 0;function De(t,e){if(e)return t.slice();var r=t.length,n=Be?Be(r):new t.constructor(r);return t.copy(n),n}function Te(){return[]}var $e=Object.prototype.propertyIsEnumerable,qe=Object.getOwnPropertySymbols,Le=qe?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var r=-1,n=null==t?0:t.length,o=0,i=[];++r<n;){var u=t[r];e(u,r,t)&&(i[o++]=u)}return i}(qe(t),(function(e){return $e.call(t,e)})))}:Te;var Ve=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)de(e,Le(t)),t=Ce(t);return e}:Te;function Ne(t,e,r){var n=e(t);return m(t)?n:de(n,r(t))}function Re(t){return Ne(t,Wt,Le)}function We(t){return Ne(t,Ht,Ve)}var Ge=G(c,"DataView"),Je=G(c,"Promise"),He=G(c,"Set"),Ke="[object Map]",Qe="[object Promise]",Xe="[object Set]",Ye="[object WeakMap]",Ze="[object DataView]",tr=T(Ge),er=T(ie),rr=T(Je),nr=T(He),or=T(J),ir=y;(Ge&&ir(new Ge(new ArrayBuffer(1)))!=Ze||ie&&ir(new ie)!=Ke||Je&&ir(Je.resolve())!=Qe||He&&ir(new He)!=Xe||J&&ir(new J)!=Ye)&&(ir=function(t){var e=y(t),r="[object Object]"==e?t.constructor:void 0,n=r?T(r):"";if(n)switch(n){case tr:return Ze;case er:return Ke;case rr:return Qe;case nr:return Xe;case or:return Ye}return e});var ur=ir,cr=Object.prototype.hasOwnProperty;var ar=c.Uint8Array;function fr(t){var e=new t.constructor(t.byteLength);return new ar(e).set(new ar(t)),e}var sr=/\w*$/;var lr=a?a.prototype:void 0,pr=lr?lr.valueOf:void 0;function vr(t,e){var r=e?fr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var hr="[object Boolean]",gr="[object Date]",br="[object Map]",yr="[object Number]",dr="[object RegExp]",jr="[object Set]",_r="[object String]",wr="[object Symbol]",mr="[object ArrayBuffer]",Or="[object DataView]",Cr="[object Float32Array]",Ar="[object Float64Array]",Fr="[object Int8Array]",xr="[object Int16Array]",Sr="[object Int32Array]",zr="[object Uint8Array]",Pr="[object Uint8ClampedArray]",Ur="[object Uint16Array]",Mr="[object Uint32Array]";function kr(t,e,r){var n,o,i,u=t.constructor;switch(e){case mr:return fr(t);case hr:case gr:return new u(+t);case Or:return function(t,e){var r=e?fr(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}(t,r);case Cr:case Ar:case Fr:case xr:case Sr:case zr:case Pr:case Ur:case Mr:return vr(t,r);case br:return new u;case yr:case _r:return new u(t);case dr:return(i=new(o=t).constructor(o.source,sr.exec(o))).lastIndex=o.lastIndex,i;case jr:return new u;case wr:return n=t,pr?Object(pr.call(n)):{}}}function Er(t){return"function"!=typeof t.constructor||wt(t)?{}:K(Ce(t))}var Ir=Bt&&Bt.isMap,Br=Ir?Mt(Ir):function(t){return d(t)&&"[object Map]"==ur(t)};var Dr=Bt&&Bt.isSet,Tr=Dr?Mt(Dr):function(t){return d(t)&&"[object Set]"==ur(t)},$r=1,qr=2,Lr=4,Vr="[object Arguments]",Nr="[object Function]",Rr="[object GeneratorFunction]",Wr="[object Object]",Gr={};function Jr(t,e,r,n,o,i){var u,c=e&$r,a=e&qr,f=e&Lr;if(r&&(u=o?r(t,n,o,i):r(t)),void 0!==u)return u;if(!x(t))return t;var s=m(t);if(s){if(u=function(t){var e=t.length,r=new t.constructor(e);return e&&"string"==typeof t[0]&&cr.call(t,"index")&&(r.index=t.index,r.input=t.input),r}(t),!c)return Q(t,u)}else{var l=ur(t),p=l==Nr||l==Rr;if(Pt(t))return De(t,c);if(l==Wr||l==Vr||p&&!o){if(u=a||p?{}:Er(t),!c)return a?function(t,e){return vt(t,Ve(t),e)}(t,function(t,e){return t&&vt(e,Ht(e),t)}(u,t)):function(t,e){return vt(t,Le(t),e)}(t,function(t,e){return t&&vt(e,Wt(e),t)}(u,t))}else{if(!Gr[l])return o?t:{};u=kr(t,l,c)}}i||(i=new Me);var v=i.get(t);if(v)return v;i.set(t,u),Tr(t)?t.forEach((function(n){u.add(Jr(n,e,r,n,t,i))})):Br(t)&&t.forEach((function(n,o){u.set(o,Jr(n,e,r,o,t,i))}));var h=s?void 0:(f?a?We:Re:a?Ht:Wt)(t);return function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n&&!1!==e(t[r],r,t););}(h||t,(function(n,o){h&&(n=t[o=n]),pt(u,o,Jr(n,e,r,o,t,i))})),u}Gr[Vr]=Gr["[object Array]"]=Gr["[object ArrayBuffer]"]=Gr["[object DataView]"]=Gr["[object Boolean]"]=Gr["[object Date]"]=Gr["[object Float32Array]"]=Gr["[object Float64Array]"]=Gr["[object Int8Array]"]=Gr["[object Int16Array]"]=Gr["[object Int32Array]"]=Gr["[object Map]"]=Gr["[object Number]"]=Gr[Wr]=Gr["[object RegExp]"]=Gr["[object Set]"]=Gr["[object String]"]=Gr["[object Symbol]"]=Gr["[object Uint8Array]"]=Gr["[object Uint8ClampedArray]"]=Gr["[object Uint16Array]"]=Gr["[object Uint32Array]"]=!0,Gr["[object Error]"]=Gr[Nr]=Gr["[object WeakMap]"]=!1;function Hr(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new ce;++e<r;)this.add(t[e])}function Kr(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}function Qr(t,e){return t.has(e)}Hr.prototype.add=Hr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Hr.prototype.has=function(t){return this.__data__.has(t)};var Xr=1,Yr=2;function Zr(t,e,r,n,o,i){var u=r&Xr,c=t.length,a=e.length;if(c!=a&&!(u&&a>c))return!1;var f=i.get(t),s=i.get(e);if(f&&s)return f==e&&s==t;var l=-1,p=!0,v=r&Yr?new Hr:void 0;for(i.set(t,e),i.set(e,t);++l<c;){var h=t[l],g=e[l];if(n)var b=u?n(g,h,l,e,t,i):n(h,g,l,t,e,i);if(void 0!==b){if(b)continue;p=!1;break}if(v){if(!Kr(e,(function(t,e){if(!Qr(v,e)&&(h===t||o(h,t,r,n,i)))return v.push(e)}))){p=!1;break}}else if(h!==g&&!o(h,g,r,n,i)){p=!1;break}}return i.delete(t),i.delete(e),p}function tn(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}function en(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}var rn=1,nn=2,on="[object Boolean]",un="[object Date]",cn="[object Error]",an="[object Map]",fn="[object Number]",sn="[object RegExp]",ln="[object Set]",pn="[object String]",vn="[object Symbol]",hn="[object ArrayBuffer]",gn="[object DataView]",bn=a?a.prototype:void 0,yn=bn?bn.valueOf:void 0;var dn=1,jn=Object.prototype.hasOwnProperty;var _n=1,wn="[object Arguments]",mn="[object Array]",On="[object Object]",Cn=Object.prototype.hasOwnProperty;function An(t,e,r,n,o,i){var u=m(t),c=m(e),a=u?mn:ur(t),f=c?mn:ur(e),s=(a=a==wn?On:a)==On,l=(f=f==wn?On:f)==On,p=a==f;if(p&&Pt(t)){if(!Pt(e))return!1;u=!0,s=!1}if(p&&!s)return i||(i=new Me),u||Tt(t)?Zr(t,e,r,n,o,i):function(t,e,r,n,o,i,u){switch(r){case gn:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case hn:return!(t.byteLength!=e.byteLength||!i(new ar(t),new ar(e)));case on:case un:case fn:return st(+t,+e);case cn:return t.name==e.name&&t.message==e.message;case sn:case pn:return t==e+"";case an:var c=tn;case ln:var a=n&rn;if(c||(c=en),t.size!=e.size&&!a)return!1;var f=u.get(t);if(f)return f==e;n|=nn,u.set(t,e);var s=Zr(c(t),c(e),n,o,i,u);return u.delete(t),s;case vn:if(yn)return yn.call(t)==yn.call(e)}return!1}(t,e,a,r,n,o,i);if(!(r&_n)){var v=s&&Cn.call(t,"__wrapped__"),h=l&&Cn.call(e,"__wrapped__");if(v||h){var g=v?t.value():t,b=h?e.value():e;return i||(i=new Me),o(g,b,r,n,i)}}return!!p&&(i||(i=new Me),function(t,e,r,n,o,i){var u=r&dn,c=Re(t),a=c.length;if(a!=Re(e).length&&!u)return!1;for(var f=a;f--;){var s=c[f];if(!(u?s in e:jn.call(e,s)))return!1}var l=i.get(t),p=i.get(e);if(l&&p)return l==e&&p==t;var v=!0;i.set(t,e),i.set(e,t);for(var h=u;++f<a;){var g=t[s=c[f]],b=e[s];if(n)var y=u?n(b,g,s,e,t,i):n(g,b,s,t,e,i);if(!(void 0===y?g===b||o(g,b,r,n,i):y)){v=!1;break}h||(h="constructor"==s)}if(v&&!h){var d=t.constructor,j=e.constructor;d==j||!("constructor"in t)||!("constructor"in e)||"function"==typeof d&&d instanceof d&&"function"==typeof j&&j instanceof j||(v=!1)}return i.delete(t),i.delete(e),v}(t,e,r,n,o,i))}function Fn(t,e,r,n,o){return t===e||(null==t||null==e||!d(t)&&!d(e)?t!=t&&e!=e:An(t,e,r,n,Fn,o))}var xn=1,Sn=2;function zn(t){return t==t&&!x(t)}function Pn(t,e){return function(r){return null!=r&&(r[t]===e&&(void 0!==e||t in Object(r)))}}function Un(t){var e=function(t){for(var e=Wt(t),r=e.length;r--;){var n=e[r],o=t[n];e[r]=[n,o,zn(o)]}return e}(t);return 1==e.length&&e[0][2]?Pn(e[0][0],e[0][1]):function(r){return r===t||function(t,e,r,n){var o=r.length,i=o,u=!n;if(null==t)return!i;for(t=Object(t);o--;){var c=r[o];if(u&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++o<i;){var a=(c=r[o])[0],f=t[a],s=c[1];if(u&&c[2]){if(void 0===f&&!(a in t))return!1}else{var l=new Me;if(n)var p=n(f,s,a,t,e,l);if(!(void 0===p?Fn(s,f,xn|Sn,n,l):p))return!1}}return!0}(r,t,e)}}function Mn(t,e){return null!=t&&e in Object(t)}function kn(t,e,r){for(var n=-1,o=(e=ve(e,t)).length,i=!1;++n<o;){var u=ge(e[n]);if(!(i=null!=t&&r(t,u)))break;t=t[u]}return i||++n!=o?i:!!(o=null==t?0:t.length)&&dt(o)&&at(u,o)&&(m(t)||Ft(t))}function En(t,e){return null!=t&&kn(t,e,Mn)}var In=1,Bn=2;function Dn(t){return Xt(t)?(e=ge(t),function(t){return null==t?void 0:t[e]}):function(t){return function(e){return be(e,t)}}(t);var e}function Tn(t){return"function"==typeof t?t:null==t?S:"object"==typeof t?m(t)?(e=t[0],r=t[1],Xt(e)&&zn(r)?Pn(ge(e),r):function(t){var n=ye(t,e);return void 0===n&&n===r?En(t,e):Fn(r,n,In|Bn)}):Un(t):Dn(t);var e,r}function $n(t,e,r,n){for(var o=-1,i=null==t?0:t.length;++o<i;){var u=t[o];e(n,u,r(u),t)}return n}var qn,Ln=function(t,e,r){for(var n=-1,o=Object(t),i=r(t),u=i.length;u--;){var c=i[qn?u:++n];if(!1===e(o[c],c,o))break}return t};function Vn(t,e){return t&&Ln(t,e,Wt)}var Nn=function(t,e){return function(r,n){if(null==r)return r;if(!jt(r))return t(r,n);for(var o=r.length,i=e?o:-1,u=Object(r);(e?i--:++i<o)&&!1!==n(u[i],i,u););return r}}(Vn);function Rn(t,e,r,n){return Nn(t,(function(t,o,i){e(n,t,r(t),i)})),n}function Wn(t,e,r){(void 0!==r&&!st(t[e],r)||void 0===r&&!(e in t))&&ft(t,e,r)}function Gn(t){return d(t)&&jt(t)}function Jn(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}function Hn(t,e,r,n,o,i,u){var c=Jn(t,r),a=Jn(e,r),f=u.get(a);if(f)Wn(t,r,f);else{var s,l=i?i(c,a,r+"",t,e,u):void 0,p=void 0===l;if(p){var v=m(a),h=!v&&Pt(a),g=!v&&!h&&Tt(a);l=a,v||h||g?m(c)?l=c:Gn(c)?l=Q(c):h?(p=!1,l=De(a,!0)):g?(p=!1,l=vr(a,!0)):l=[]:Ue(a)||Ft(a)?(l=c,Ft(c)?l=vt(s=c,Ht(s)):x(c)&&!k(c)||(l=Er(a))):p=!1}p&&(u.set(a,l),o(l,a,n,i,u),u.delete(a)),Wn(t,r,l)}}function Kn(t,e,r,n,o){t!==e&&Ln(e,(function(i,u){if(o||(o=new Me),x(i))Hn(t,e,u,r,Kn,n,o);else{var c=n?n(Jn(t,u),i,u+"",t,e,o):void 0;void 0===c&&(c=i),Wn(t,u,c)}}),Ht)}var Qn,Xn=(Qn=function(t,e,r,n){Kn(t,e,r,n)},bt((function(t,e){var r=-1,n=e.length,o=n>1?e[n-1]:void 0,i=n>2?e[2]:void 0;for(o=Qn.length>3&&"function"==typeof o?(n--,o):void 0,i&&function(t,e,r){if(!x(r))return!1;var n=typeof e;return!!("number"==n?jt(r)&&at(e,r.length):"string"==n&&e in r)&&st(r[e],t)}(e[0],e[1],i)&&(o=n<3?void 0:o,n=1),t=Object(t);++r<n;){var u=e[r];u&&Qn(t,u,r,o)}return t})));function Yn(t,e,r){for(var n=-1,o=null==t?0:t.length;++n<o;)if(r(e,t[n]))return!0;return!1}var Zn=Object.prototype.hasOwnProperty;function to(t,e){return null!=t&&Zn.call(t,e)}function eo(t,e){return e.length<2?t:be(t,function(t,e,r){var n=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(r=r>o?o:r)<0&&(r+=o),o=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(o);++n<o;)i[n]=t[n+e];return i}(e,0,-1))}var ro=Object.prototype.hasOwnProperty;var no,oo,io=(no=function(t,e,r){ft(t,r,e)},function(t,e){var r=m(t)?$n:Rn,n=oo?oo():{};return r(t,no,Tn(e),n)});function uo(t,e){return null==(t=eo(t,e=ve(e,t)))||delete t[ge((r=e,n=null==r?0:r.length,n?r[n-1]:void 0))];var r,n}function co(t){return Ue(t)?void 0:t}var ao=Oe((function(t,e){var r={};if(null==t)return r;var n=!1;e=w(e,(function(e){return e=ve(e,t),n||(n=e.length>1),e})),vt(t,We(t),r),n&&(r=Jr(r,7,co));for(var o=e.length;o--;)uo(r,e[o]);return r}));function fo(t,e,r,n){if(!x(t))return t;for(var o=-1,i=(e=ve(e,t)).length,u=i-1,c=t;null!=c&&++o<i;){var a=ge(e[o]),f=r;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(o!=u){var s=c[a];void 0===(f=n?n(s,a,c):void 0)&&(f=x(s)?s:at(e[o+1])?[]:{})}pt(c,a,f),c=c[a]}return t}function so(t,e){return function(t,e,r){for(var n=-1,o=e.length,i={};++n<o;){var u=e[n],c=be(t,u);r(c,u)&&fo(i,ve(u,t),c)}return i}(t,e,(function(e,r){return En(t,r)}))}var lo=Oe((function(t,e){return null==t?{}:so(t,e)})),po=He&&1/en(new He([,-0]))[1]==1/0?function(t){return new He(t)}:function(){};var vo=bt((function(t){return function(t,e,r){var n=-1,o=it,i=t.length,u=!0,c=[],a=c;if(r)u=!1,o=Yn;else if(i>=200){var f=e?null:po(t);if(f)return en(f);u=!1,o=Qr,a=new Hr}else a=e?[]:c;t:for(;++n<i;){var s=t[n],l=e?e(s):s;if(s=r||0!==s?s:0,u&&l==l){for(var p=a.length;p--;)if(a[p]===l)continue t;e&&a.push(l),c.push(s)}else o(a,l,r)||(a!==c&&a.push(l),c.push(s))}return c}(we(t,1,Gn,!0))}));const ho=["config/config.ts","config/config.js","config.ts","config.js"];class go{opts;mainConfigFile;configFiles=[];constructor(t){const e=t.defaultConfigFiles?t.defaultConfigFiles:ho;this.mainConfigFile=go.getMainConfigFile({cwd:t.cwd,defaultConfigFiles:e}),this.opts={...t,defaultConfigFiles:e}}getMsPagesUserConfig(t){let e={};return("string"==typeof t?[t]:t).map((t=>{const n=go.getMainConfigFile({cwd:t,defaultConfigFiles:this.opts.defaultConfigFiles}),o=go.getUserConfig({cwd:t,mainConfigFile:n});e=r.mergeConfig(e,lo(o,["routes","microServiceMap","setting","define","optimization"]))})),e}getMsUserConfig(){this.configFiles=[];let e=go.getUserConfig({cwd:this.opts.cwd,mainConfigFile:this.mainConfigFile});this.mainConfigFile&&this.configFiles.push(this.mainConfigFile);const o=[this.opts.cwd],i=r.getSrcPath();ye(e,"mfa.pages",[]);const u=ye(e,"alias",{}),c=ye(e,"packages",{}),a={"@gant":t.resolve(this.opts.cwd,i,".gant"),"@@":t.resolve(this.opts.cwd),...u};let f={context:this.opts.cwd,publicPathDir:t.resolve(this.opts.cwd,i,".gant"),resolve:{alias:a}};return Ue(c)&&Object.keys(c).map((t=>{const e=c[t];if(o.includes(e))return;o.push(e);const n=go.getMainConfigFile({cwd:e,defaultConfigFiles:this.opts.defaultConfigFiles});n&&this.configFiles.push(n);const i=go.getUserConfig({cwd:e,mainConfigFile:n});f=r.mergeConfig(f,lo(i,["microServiceMap","setting","define","optimization"]))})),{...r.mergeConfig(r.mergeConfig(n.defineConfig(),f),e)}}getUserConfig(){this.configFiles=[];let e=go.getUserConfig({cwd:this.opts.cwd,mainConfigFile:this.mainConfigFile});this.mainConfigFile&&this.configFiles.push(this.mainConfigFile);const o=[this.opts.cwd],i=ye(e,"packages",{}),u=r.getSrcPath(),c={"@gant":t.resolve(this.opts.cwd,u,".gant"),[e.name||"@@"]:t.resolve(this.opts.cwd),...i};let a={context:this.opts.cwd,resolve:{alias:c}};return Ue(i)&&Object.keys(i).map((t=>{const e=i[t];if(o.includes(e))return;o.push(e);const n=go.getMainConfigFile({cwd:e,defaultConfigFiles:this.opts.defaultConfigFiles});n&&this.configFiles.push(n);const u=go.getUserConfig({cwd:e,mainConfigFile:n});a=r.mergeConfig(a,lo(u,["routes","microServiceMap","setting","define","optimization"]))})),{...r.mergeConfig(r.mergeConfig(n.defineConfig(),a),e)}}static getMainConfigFile(r){let n=null;for(const o of r.defaultConfigFiles||ho){const i=t.join(r.cwd,o);if(e.existsSync(i)){n=i;break}}return n}static getUserConfig(t){let e={};if(!t.mainConfigFile)return e;try{e=o.getJavascriptfile(r.getAbsFile(t.mainConfigFile,t.cwd))}catch(t){console.log("getUserConfig Error :",t)}return e}}exports.Config=go,exports.cloneDeep=function(t){return Jr(t,5)},exports.get=ye,exports.has=function(t,e){return null!=t&&kn(t,e,to)},exports.isArray=m,exports.isEmpty=function(t){if(null==t)return!0;if(jt(t)&&(m(t)||"string"==typeof t||"function"==typeof t.splice||Pt(t)||Tt(t)||Ft(t)))return!t.length;var e=ur(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(wt(t))return!Rt(t).length;for(var r in t)if(ro.call(t,r))return!1;return!0},exports.isNull=function(t){return null===t},exports.isObject=x,exports.isUndefined=function(t){return void 0===t},exports.keyBy=io,exports.keys=Wt,exports.mapValues=function(t,e){var r={};return e=Tn(e),Vn(t,(function(t,n,o){ft(r,n,e(t,n,o))})),r},exports.mergeWith=Xn,exports.omit=ao,exports.pick=lo,exports.union=vo,exports.values=function(t){return null==t?[]:function(t,e){return w(e,(function(e){return t[e]}))}(t,Wt(t))};