@atomicservice/ascf-toolkit 1.0.3-beta.0 → 1.0.3-beta.6

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.
Files changed (62) hide show
  1. package/lib/ascf-compiler/appjson-loader.js +1 -1
  2. package/lib/ascf-compiler/common/appjson-validator.js +1 -1
  3. package/lib/ascf-compiler/common/css-runtime-api.js +1 -1
  4. package/lib/ascf-compiler/common/exp-utils.js +1 -1
  5. package/lib/ascf-compiler/common/hash-sum.js +1 -1
  6. package/lib/ascf-compiler/common/hjs-utils.js +1 -1
  7. package/lib/ascf-compiler/common/hxml-validator.js +1 -1
  8. package/lib/ascf-compiler/common/logUndefined.js +1 -1
  9. package/lib/ascf-compiler/common/packoptions-utils.js +1 -1
  10. package/lib/ascf-compiler/common/parser-babel.js +1 -0
  11. package/lib/ascf-compiler/common/parser-swc.js +1 -0
  12. package/lib/ascf-compiler/common/parser.js +1 -0
  13. package/lib/ascf-compiler/common/utils.js +1 -1
  14. package/lib/ascf-compiler/css-process-loader.js +1 -1
  15. package/lib/ascf-compiler/extract-loader.js +1 -1
  16. package/lib/ascf-compiler/hcss-loader.js +1 -1
  17. package/lib/ascf-compiler/hjs-loader.js +1 -1
  18. package/lib/ascf-compiler/hxml-loader.js +1 -1
  19. package/lib/ascf-compiler/loader-utils.js +1 -1
  20. package/lib/ascf-compiler/path-process-loader.js +1 -1
  21. package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -1
  22. package/lib/ascf-compiler/plugin/extConfig-plugin.js +1 -1
  23. package/lib/ascf-compiler/plugin/html-generator-plugin.js +1 -1
  24. package/lib/ascf-compiler/plugin/i18n-transform-plugin.js +1 -1
  25. package/lib/ascf-compiler/plugin/manifest-generator-plugin.js +1 -1
  26. package/lib/ascf-compiler/plugin/resource-plugin.js +1 -1
  27. package/lib/ascf-compiler/plugin/webpack-target/index.js +1 -1
  28. package/lib/ascf-compiler/plugin/webpack-target/jsonpChunkLoadingRuntimeModule.js +1 -1
  29. package/lib/ascf-compiler/plugin/webpack-target/jsonpHelpers.js +1 -1
  30. package/lib/ascf-compiler/plugin/webpack-target/jsonpTemplatePlugin.js +1 -1
  31. package/lib/ascf-compiler/swc-loader.js +1 -0
  32. package/lib/ascf-compiler/template/attr-utils.js +1 -1
  33. package/lib/ascf-compiler/template/node-name-utils.js +1 -1
  34. package/lib/ascf-compiler/trustlist-hxml-verify-loader.js +1 -1
  35. package/lib/ascf-compiler/trustlist-js-verify-loader.js +1 -1
  36. package/lib/ascf-compiler/trustlist-verify/config.js +1 -1
  37. package/lib/ascf-compiler/trustlist-verify/utils.js +1 -1
  38. package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
  39. package/lib/ascf-compiler/watch/watch.js +1 -1
  40. package/lib/ascf-compiler/web.webpack.config.js +1 -1
  41. package/lib/ascf-converter/common/commonConfig.js +1 -1
  42. package/lib/ascf-converter/common/commonUtils.js +1 -1
  43. package/lib/ascf-converter/common/path-validator.js +1 -1
  44. package/lib/ascf-converter/common/textDocument.js +1 -1
  45. package/lib/ascf-converter/compiler-utils/parse5.bundle.js +1 -1
  46. package/lib/ascf-converter/features/converter.js +1 -1
  47. package/lib/ascf-converter/features/fileHandle.js +1 -1
  48. package/lib/ascf-converter/features/transformReport.js +1 -1
  49. package/lib/ascf-converter/lib/apiadapter4alipay.js +1 -1
  50. package/lib/ascf-converter/parse/babelParser.js +1 -1
  51. package/lib/ascf-converter/parse/importVisitor.js +1 -1
  52. package/lib/ascf-converter/parse/wxssParser.js +1 -1
  53. package/lib/bin/ascf.js +1 -1
  54. package/lib/common/config.js +1 -1
  55. package/lib/common/log4js.js +1 -0
  56. package/lib/common/logger-plugin.js +1 -1
  57. package/lib/common/remove-strict-mode-plugin.js +1 -1
  58. package/lib/common/utils.js +1 -1
  59. package/lib/common/version-check.js +1 -1
  60. package/lib/index.js +1 -1
  61. package/package.json +6 -7
  62. package/lib/ascf-compiler/chalk/bundle.cjs.js +0 -1
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x22a6b2=_0x28ae;function _0x28ae(e,r){var t=_0x5a18();return(_0x28ae=function(e,r){return t[e-=354]})(e,r)}function _typeof(e){var t=_0x28ae;return(_typeof=t(355)==typeof Symbol&&"symbol"==typeof Symbol[t(496)]?function(e){return typeof e}:function(e){var r=t;return e&&r(355)==typeof Symbol&&e[r(393)]===Symbol&&e!==Symbol[r(378)]?r(451):typeof e})(e)}function _regeneratorRuntime(){var u=_0x28ae;_regeneratorRuntime=function(){return c};var f,c={},e=Object[u(378)],l=e[u(359)],h=Object[u(495)]||function(e,r,t){var n=u;e[r]=t[n(448)]},r=u(355)==typeof Symbol?Symbol:{},a=r[u(496)]||u(490),t=r.asyncIterator||"@@asyncIterator",n=r[u(370)]||u(406);function o(e,r,t){return Object[u(495)](e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[r]}try{o({},"")}catch(e){o=function(e,r,t){return e[r]=t}}function s(e,r,t,n){var o,a,i,c,s=u,r=r&&r.prototype instanceof d?r:d,r=Object.create(r[s(378)]),s=new L(n||[]);return h(r,"_invoke",{value:(o=e,a=t,i=s,c=v,function(e,r){var t=_0x28ae;if(c===m)throw Error(t(392));if(c===g){if("throw"===e)throw r;return{value:f,done:!0}}for(i[t(468)]=e,i[t(435)]=r;;){var n=i[t(396)];if(n){n=function e(r,t){var n=u,o=t[n(468)],a=r[n(496)][o];if(a===f)return t.delegate=null,n(488)===o&&r.iterator.return&&(t[n(468)]=n(464),t.arg=f,e(r,t),n(488)===t[n(468)])||n(464)!==o&&(t[n(468)]=n(488),t[n(435)]=new TypeError(n(422)+o+"' method")),_;o=p(a,r[n(496)],t[n(435)]);if(n(488)===o[n(421)])return t[n(468)]=n(488),t.arg=o.arg,t.delegate=null,_;a=o[n(435)];return a?a[n(361)]?(t[r[n(487)]]=a[n(448)],t[n(357)]=r.nextLoc,n(464)!==t[n(468)]&&(t[n(468)]="next",t[n(435)]=f),t[n(396)]=null,_):a:(t.method=n(488),t[n(435)]=new TypeError("iterator result is not an object"),t[n(396)]=null,_)}(n,i);if(n){if(n===_)continue;return n}}if("next"===i.method)i[t(439)]=i[t(417)]=i[t(435)];else if(t(488)===i[t(468)]){if(c===v)throw c=g,i.arg;i[t(366)](i[t(435)])}else t(464)===i.method&&i[t(354)](t(464),i[t(435)]);c=m;n=p(o,a,i);if(t(413)===n[t(421)]){if(c=i.done?g:y,n[t(435)]===_)continue;return{value:n[t(435)],done:i[t(361)]}}t(488)===n[t(421)]&&(c=g,i[t(468)]="throw",i[t(435)]=n.arg)}})}),r}function p(e,r,t){var n=u;try{return{type:"normal",arg:e[n(440)](r,t)}}catch(e){return{type:"throw",arg:e}}}c.wrap=s;var v=u(494),y=u(433),m="executing",g=u(484),_={};function d(){}function i(){}function b(){}var r={},x=(o(r,a,function(){return this}),Object[u(486)]),x=x&&x(x(G([]))),w=(x&&x!==e&&l[u(440)](x,a)&&(r=x),b[u(378)]=d[u(378)]=Object[u(483)](r));function k(e){var r=u;["next",r(488),r(464)][r(442)](function(r){o(e,r,function(e){return this._invoke(r,e)})})}function E(c,s){var r;h(this,"_invoke",{value:function(t,n){function e(){return new s(function(e,r){!function r(e,t,n,o){var a,i=_0x28ae,e=p(c[e],c,t);if("throw"!==e[i(421)])return(t=(a=e.arg)[i(448)])&&i(401)==_typeof(t)&&l.call(t,i(485))?s[i(423)](t[i(485)])[i(389)](function(e){r(i(357),e,n,o)},function(e){r(i(488),e,n,o)}):s[i(423)](t)[i(389)](function(e){a.value=e,n(a)},function(e){return r(i(488),e,n,o)});o(e[i(435)])}(t,n,e,r)})}return r=r?r[_0x28ae(389)](e,e):e()}})}function j(e){var r=u,t={tryLoc:e[0]};1 in e&&(t[r(388)]=e[1]),2 in e&&(t[r(400)]=e[2],t[r(394)]=e[3]),this[r(434)][r(474)](t)}function I(e){var r=u,t=e[r(377)]||{};t.type=r(413),delete t[r(435)],e[r(377)]=t}function L(e){var r=u;this.tryEntries=[{tryLoc:r(363)}],e[r(442)](j,this),this[r(372)](!0)}function G(t){var n=u;if(t||""===t){var o,e=t[a];if(e)return e[n(440)](t);if(n(355)==typeof t.next)return t;if(!isNaN(t[n(447)]))return o=-1,(e=function e(){for(var r=n;++o<t[r(447)];)if(l[r(440)](t,o))return e[r(448)]=t[o],e.done=!1,e;return e[r(448)]=f,e.done=!0,e}).next=e}throw new TypeError(_typeof(t)+" is not iterable")}return i[u(378)]=b,h(w,u(393),{value:b,configurable:!0}),h(b,u(393),{value:i,configurable:!0}),i[u(387)]=o(b,n,u(489)),c.isGeneratorFunction=function(e){var r=u,e="function"==typeof e&&e[r(393)];return!!e&&(e===i||r(489)===(e[r(387)]||e[r(426)]))},c[u(462)]=function(e){var r=u;return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e[r(465)]=b,o(e,n,r(489))),e[r(378)]=Object[r(483)](w),e},c[u(479)]=function(e){return{__await:e}},k(E[u(378)]),o(E[u(378)],t,function(){return this}),c[u(493)]=E,c[u(408)]=function(e,r,t,n,o){var a=u,i=(void 0===o&&(o=Promise),new E(s(e,r,t,n),o));return c[a(414)](r)?i:i[a(357)]()[a(389)](function(e){var r=a;return e[r(361)]?e[r(448)]:i.next()})},k(w),o(w,n,"Generator"),o(w,a,function(){return this}),o(w,u(384),function(){return u(436)}),c[u(381)]=function(e){var r,n=u,o=Object(e),a=[];for(r in o)a[n(474)](r);return a[n(376)](),function e(){for(var r=n;a.length;){var t=a[r(379)]();if(t in o)return e[r(448)]=t,e[r(361)]=!1,e}return e[r(361)]=!0,e}},c[u(380)]=G,L[u(378)]={constructor:L,reset:function(e){var r=u;if(this.prev=0,this[r(357)]=0,this[r(439)]=this._sent=f,this[r(361)]=!1,this[r(396)]=null,this[r(468)]=r(357),this[r(435)]=f,this[r(434)][r(442)](I),!e)for(var t in this)"t"===t[r(481)](0)&&l.call(this,t)&&!isNaN(+t[r(452)](1))&&(this[t]=f)},stop:function(){var e=u,r=(this[e(361)]=!0,this[e(434)][0][e(377)]);if(e(488)===r.type)throw r[e(435)];return this[e(478)]},dispatchException:function(n){var o=u;if(this[o(361)])throw n;var a=this;function e(e,r){var t=o;return i[t(421)]=t(488),i[t(435)]=n,a[t(357)]=e,r&&(a[t(468)]=t(357),a[t(435)]=f),!!r}for(var r=this[o(434)][o(447)]-1;0<=r;--r){var t=this[o(434)][r],i=t[o(377)];if(o(363)===t[o(443)])return e(o(418));if(t[o(443)]<=this[o(450)]){var c=l[o(440)](t,o(388)),s=l.call(t,o(400));if(c&&s){if(this[o(450)]<t[o(388)])return e(t.catchLoc,!0);if(this[o(450)]<t[o(400)])return e(t[o(400)])}else if(c){if(this[o(450)]<t[o(388)])return e(t[o(388)],!0)}else{if(!s)throw Error("try statement without catch or finally");if(this[o(450)]<t[o(400)])return e(t[o(400)])}}}},abrupt:function(e,r){for(var t=u,n=this.tryEntries[t(447)]-1;0<=n;--n){var o=this[t(434)][n];if(o[t(443)]<=this[t(450)]&&l.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}var i=(a=a&&(t(419)===e||t(427)===e)&&a[t(443)]<=r&&r<=a[t(400)]?null:a)?a[t(377)]:{};return i[t(421)]=e,i[t(435)]=r,a?(this.method="next",this[t(357)]=a[t(400)],_):this[t(449)](i)},complete:function(e,r){var t=u;if(t(488)===e[t(421)])throw e.arg;return t(419)===e[t(421)]||t(427)===e[t(421)]?this[t(357)]=e[t(435)]:t(464)===e.type?(this[t(478)]=this[t(435)]=e[t(435)],this[t(468)]=t(464),this[t(357)]=t(418)):t(413)===e[t(421)]&&r&&(this.next=r),_},finish:function(e){for(var r=u,t=this[r(434)][r(447)]-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n[r(377)],n[r(394)]),I(n),_}},catch:function(e){for(var r=u,t=this.tryEntries.length-1;0<=t;--t){var n,o,a=this.tryEntries[t];if(a.tryLoc===e)return n=a[r(377)],r(488)===n[r(421)]&&(o=n[r(435)],I(a)),o}throw Error(r(375))},delegateYield:function(e,r,t){var n=u;return this.delegate={iterator:G(e),resultName:r,nextLoc:t},n(357)===this[n(468)]&&(this[n(435)]=f),_}},c}function asyncGeneratorStep(e,r,t,n,o,a,i){var c=_0x28ae;try{var s=e[a](i),u=s.value}catch(e){return void t(e)}s[c(361)]?r(u):Promise[c(423)](u)[c(389)](n,o)}function _asyncToGenerator(s){return function(){var e=this,c=arguments;return new Promise(function(r,t){var n=_0x28ae,o=s[n(405)](e,c);function a(e){asyncGeneratorStep(o,r,t,a,i,"next",e)}function i(e){asyncGeneratorStep(o,r,t,a,i,n(488),e)}a(void 0)})}}(()=>{for(var e=_0x28ae,r=_0x5a18();;)try{if(826343==-parseInt(e(386))*(-parseInt(e(457))/2)+parseInt(e(466))/3+parseInt(e(412))/4+parseInt(e(402))/5*(parseInt(e(480))/6)+-parseInt(e(430))/7+-parseInt(e(425))/8*(parseInt(e(385))/9)+parseInt(e(444))/10*(-parseInt(e(403))/11))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x22a6b2(446)),watchExec=_require.watchExec,chalk=require(_0x22a6b2(492));function convert(e){return _convert.apply(this,arguments)}function _convert(){var t=_0x22a6b2;return(_convert=_asyncToGenerator(_regeneratorRuntime()[t(462)](function e(r){var n,o,a=t;return _regeneratorRuntime()[a(368)](function(e){for(var t=a;;)switch(e[t(450)]=e.next){case 0:if(n=require(t(454)),global[t(373)]=!0,global[t(360)]=!0,process.env.clearResource=r[t(365)]?t(463):"no",o=require("./ascf-converter/common/path-validator"),o=o[t(453)],r[t(409)]&&(o(r[t(383)],r[t(424)]),process[t(437)](0)),n[t(477)](r[t(383)]),r[t(456)]){e[t(357)]=12;break}return e[t(357)]=10,n[t(420)]({inputPath:r[t(383)],outPath:r[t(424)],confirmAddConfig:!0});case 10:(o=e[t(439)])[t(356)]?console[t(367)](chalk[t(469)](t(395)[t(358)](o[t(399)],t(438))[t(358)](o.errorMessage,'"'))):console[t(415)](chalk[t(428)](t(395).concat(o[t(399)],t(398))[t(358)](o[t(374)],'"')));case 12:setTimeout(function(){var r=t,e=require("./common/version-check.js")[r(382)];try{e()}catch(e){console[r(475)](chalk.yellow(r(364)[r(358)](e,".")))}});case 13:case"end":return e.stop()}},e)})))[t(405)](this,arguments)}function compile(e,r){return _compile[_0x22a6b2(405)](this,arguments)}function _compile(){var r=_0x22a6b2;return(_compile=_asyncToGenerator(_regeneratorRuntime()[r(462)](function e(t,n){var o,a,i,c=r;return _regeneratorRuntime()[c(368)](function(e){for(var r=c;;)switch(e[r(450)]=e[r(357)]){case 0:return o=require(r(362)),process[r(397)][r(431)]=o.resolve(t),process.chdir(o[r(423)](t,r(497))),process[r(397)][r(472)]=n[r(371)]?"development":r(411),process[r(397)][r(467)]=n.clear?"yes":"no",o=require("webpack"),e[r(450)]=6,a=require(r(461)),e[r(357)]=10,a();case 10:(a=e[r(439)]).plugins=a.plugins||[],a[r(473)][r(474)](new o[r(491)]({projectRoot:t})),n[r(455)]&&a[r(473)][r(474)](new o[r(482)]),n[r(407)]&&(a[r(407)]=!0),global[r(429)]&&(a[r(410)]={level:r(471)}),i=o(a),n[r(407)]?(watchExec(i,n.run),e[r(357)]=23):e.next=21;break;case 21:return e[r(357)]=23,run(i);case 23:e[r(357)]=29;break;case 25:e[r(450)]=25,e.t0=e.catch(6),console[r(367)](e.t0),process[r(437)](1);case 29:case r(418):return e[r(416)]()}},e,null,[[6,25]])}))).apply(this,arguments)}function getAscfToolkitDirname(){return __dirname}function _0x5a18(){var e=["uncaughtException","toStringTag","mode","reset","_isMiniAppConvertMode","folderUrl","illegal catch attempt","reverse","completion","prototype","pop","values","keys","isLatestAscfToolkit","input","toString","774WDdCdN","206764mbmQfu","displayName","catchLoc","then","log","WARNING: Get @atomicservice/ascf info failed.","Generator is already running","constructor","afterLoc",'"command":"',"delegate","env",'","folderUrl":"',"command","finallyLoc","object","6782860mNytHh","717409uyWIAq","level","apply","@@toStringTag","watch","async","validate","infrastructureLogging","production","822760jRazEk","normal","isGeneratorFunction","info","stop","_sent","end","break","confirmConverterFun","type","The iterator does not provide a '","resolve","output","149160EyMjPt","name","continue","green","_ascfDebug","3952606VQbKON","projectRoot","ASCF unhandled rejection at:","suspendedYield","tryEntries","arg","[object Generator]","exit",'","errorMessage":"',"sent","call","isLatestAscfHar","forEach","tryLoc","110LtWfUE","reason:","./ascf-compiler/watch/watch","length","value","complete","prev","symbol","slice","pathValidator","./ascf-converter/features/converter.js","progress","check","6kvwlIE","existsVerifyLog","./common/version-check.js","yellow","./ascf-compiler/web.webpack.config.js","mark","yes","return","__proto__","4587978rlMOLl","clearResource","method","red","unhandledRejection","verbose","NODE_ENV","plugins","push","warn","ASCF uncaught error","checkInputPathFun","rval","awrap","6DRQRFx","charAt","ProgressPlugin","create","completed","__await","getPrototypeOf","resultName","throw","GeneratorFunction","@@iterator","EnvironmentPlugin","./ascf-compiler/chalk/bundle.cjs","AsyncIterator","suspendedStart","defineProperty","iterator","ascf/ascf_src","abrupt","function","errorMessage","next","concat","hasOwnProperty","_isAscfMode","done","path","root","WARNING: Get @atomicservice/ascf-toolkit version failed: ","clear","dispatchException","error","wrap"];return(_0x5a18=function(){return e})()}function run(e){return new Promise(function(t,o){e.run(function(e,r){var n=_0x28ae;r&&console[n(390)](r[n(384)]({all:!1,colors:!0,errors:!0,warnings:!0,assets:!0,logging:global[n(429)]?n(471):"info"})),e?(console[n(367)](e),o(e)):(setTimeout(function(){var r=n,e=require(r(459)),t=e[r(382)],e=e[r(441)];try{e(global[r(458)])}catch(e){console.warn(chalk[r(460)](r(391)))}try{t(global.existsVerifyLog)}catch(e){console.warn(chalk.yellow("WARNING: Get @atomicservice/ascf-toolkit version failed: "[r(358)](e,".")))}}),t(r))})})}chalk[_0x22a6b2(404)]=1,global[_0x22a6b2(360)]=!0,process.on(_0x22a6b2(369),function(e){var r=_0x22a6b2;console.error(r(476),e)}),process.on(_0x22a6b2(470),function(e,r){var t=_0x22a6b2;console[t(367)](t(432),r,t(445),e)}),module.exports={convert:convert,compile:compile,getAscfToolkitDirname:getAscfToolkitDirname};
1
+ var _0x20b413=_0x2c72;function _typeof(r){var e=_0x2c72;return(_typeof=e(532)==typeof Symbol&&e(547)==typeof Symbol.iterator?function(r){return typeof r}:function(r){var t=e;return r&&t(532)==typeof Symbol&&r[t(571)]===Symbol&&r!==Symbol[t(527)]?t(547):typeof r})(r)}function _regeneratorRuntime(){var s=_0x2c72;_regeneratorRuntime=function(){return c};var f,c={},r=Object[s(527)],l=r.hasOwnProperty,h=Object[s(487)]||function(r,t,e){var n=s;r[t]=e[n(574)]},t=s(532)==typeof Symbol?Symbol:{},i=t[s(538)]||s(472),e=t[s(480)]||"@@asyncIterator",n=t[s(494)]||"@@toStringTag";function o(r,t,e){return Object[s(487)](r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{o({},"")}catch(r){o=function(r,t,e){return r[t]=e}}function u(r,t,e,n){var o,i,a,c,u=s,t=t&&t[u(527)]instanceof b?t:b,t=Object[u(587)](t[u(527)]),n=new I(n||[]);return h(t,u(501),{value:(o=r,i=e,a=n,c=v,function(r,t){var e=_0x2c72;if(c===y)throw Error(e(476));if(c===m){if(e(595)===r)throw t;return{value:f,done:!0}}for(a[e(529)]=r,a[e(507)]=t;;){var n=a[e(542)];if(n){n=function r(t,e){var n=s,o=e[n(529)],i=t.iterator[o];if(i===f)return e[n(542)]=null,n(595)===o&&t.iterator.return&&(e[n(529)]=n(490),e[n(507)]=f,r(t,e),n(595)===e[n(529)])||"return"!==o&&(e[n(529)]=n(595),e.arg=new TypeError("The iterator does not provide a '"+o+n(513))),_;o=p(i,t[n(538)],e[n(507)]);if(n(595)===o.type)return e[n(529)]="throw",e[n(507)]=o[n(507)],e[n(542)]=null,_;i=o.arg;return i?i.done?(e[t[n(468)]]=i[n(574)],e.next=t[n(567)],"return"!==e[n(529)]&&(e[n(529)]=n(575),e[n(507)]=f),e.delegate=null,_):i:(e[n(529)]=n(595),e[n(507)]=new TypeError("iterator result is not an object"),e[n(542)]=null,_)}(n,a);if(n){if(n===_)continue;return n}}if(e(575)===a[e(529)])a[e(572)]=a[e(493)]=a[e(507)];else if(e(595)===a.method){if(c===v)throw c=m,a.arg;a.dispatchException(a[e(507)])}else e(490)===a[e(529)]&&a[e(557)]("return",a[e(507)]);c=y;n=p(o,i,a);if(e(491)===n.type){if(c=a.done?m:g,n[e(507)]===_)continue;return{value:n[e(507)],done:a.done}}e(595)===n.type&&(c=m,a[e(529)]=e(595),a.arg=n.arg)}})}),t}function p(r,t,e){var n=s;try{return{type:n(491),arg:r[n(585)](t,e)}}catch(r){return{type:"throw",arg:r}}}c[s(477)]=u;var v=s(459),g=s(516),y=s(594),m=s(597),_={};function b(){}function a(){}function d(){}var t={},x=(o(t,i,function(){return this}),Object[s(517)]),x=x&&x(x(L([]))),w=(x&&x!==r&&l[s(585)](x,i)&&(t=x),d.prototype=b[s(527)]=Object[s(587)](t));function j(r){[s(575),"throw","return"].forEach(function(t){o(r,t,function(r){return this[_0x2c72(501)](t,r)})})}function E(c,u){var t;h(this,"_invoke",{value:function(e,n){function r(){return new u(function(r,t){!function t(r,e,n,o){var i,a=_0x2c72,r=p(c[r],c,e);if(a(595)!==r.type)return(e=(i=r[a(507)])[a(574)])&&a(464)==_typeof(e)&&l[a(585)](e,a(528))?u[a(573)](e.__await)[a(470)](function(r){t(a(575),r,n,o)},function(r){t(a(595),r,n,o)}):u[a(573)](e)[a(470)](function(r){i[a(574)]=r,n(i)},function(r){return t(a(595),r,n,o)});o(r[a(507)])}(e,n,r,t)})}return t=t?t.then(r,r):r()}})}function k(r){var t=s,e={tryLoc:r[0]};1 in r&&(e.catchLoc=r[1]),2 in r&&(e[t(544)]=r[2],e[t(562)]=r[3]),this[t(495)][t(460)](e)}function G(r){var t=s,e=r.completion||{};e[t(524)]=t(491),delete e[t(507)],r.completion=e}function I(r){var t=s;this.tryEntries=[{tryLoc:t(530)}],r.forEach(k,this),this[t(482)](!0)}function L(e){var n=s;if(e||""===e){var o,r=e[i];if(r)return r[n(585)](e);if(n(532)==typeof e[n(575)])return e;if(!isNaN(e[n(558)]))return o=-1,(r=function r(){for(var t=n;++o<e[t(558)];)if(l[t(585)](e,o))return r.value=e[o],r[t(550)]=!1,r;return r[t(574)]=f,r[t(550)]=!0,r})[n(575)]=r}throw new TypeError(_typeof(e)+n(600))}return a.prototype=d,h(w,s(571),{value:d,configurable:!0}),h(d,s(571),{value:a,configurable:!0}),a[s(496)]=o(d,n,s(553)),c[s(551)]=function(r){var t=s,r="function"==typeof r&&r[t(571)];return!!r&&(r===a||"GeneratorFunction"===(r[t(496)]||r.name))},c[s(489)]=function(r){var t=s;return Object.setPrototypeOf?Object[t(563)](r,d):(r[t(522)]=d,o(r,n,t(553))),r[t(527)]=Object.create(w),r},c[s(596)]=function(r){return{__await:r}},j(E[s(527)]),o(E[s(527)],e,function(){return this}),c[s(578)]=E,c[s(463)]=function(r,t,e,n,o){var i=s,a=(void 0===o&&(o=Promise),new E(u(r,t,e,n),o));return c[i(551)](t)?a:a[i(575)]()[i(470)](function(r){var t=i;return r[t(550)]?r[t(574)]:a[t(575)]()})},j(w),o(w,n,s(548)),o(w,i,function(){return this}),o(w,s(554),function(){return s(499)}),c[s(466)]=function(r){var t,n=Object(r),o=[];for(t in n)o.push(t);return o.reverse(),function r(){for(var t=_0x2c72;o.length;){var e=o[t(561)]();if(e in n)return r.value=e,r[t(550)]=!1,r}return r[t(550)]=!0,r}},c.values=L,I.prototype={constructor:I,reset:function(r){var t=s;if(this[t(462)]=0,this[t(575)]=0,this[t(572)]=this[t(493)]=f,this[t(550)]=!1,this[t(542)]=null,this[t(529)]=t(575),this[t(507)]=f,this[t(495)].forEach(G),!r)for(var e in this)"t"===e[t(506)](0)&&l[t(585)](this,e)&&!isNaN(+e[t(577)](1))&&(this[e]=f)},stop:function(){var r=s,t=(this[r(550)]=!0,this[r(495)][0][r(568)]);if("throw"===t[r(524)])throw t[r(507)];return this[r(481)]},dispatchException:function(n){var r=s;if(this.done)throw n;var o=this;function t(r,t){var e=_0x2c72;return a.type=e(595),a[e(507)]=n,o[e(575)]=r,t&&(o.method=e(575),o[e(507)]=f),!!t}for(var e=this.tryEntries[r(558)]-1;0<=e;--e){var i=this.tryEntries[e],a=i.completion;if(r(530)===i.tryLoc)return t(r(546));if(i[r(560)]<=this.prev){var c=l[r(585)](i,r(576)),u=l[r(585)](i,r(544));if(c&&u){if(this.prev<i[r(576)])return t(i.catchLoc,!0);if(this[r(462)]<i.finallyLoc)return t(i[r(544)])}else if(c){if(this.prev<i[r(576)])return t(i[r(576)],!0)}else{if(!u)throw Error("try statement without catch or finally");if(this[r(462)]<i[r(544)])return t(i[r(544)])}}}},abrupt:function(r,t){for(var e=s,n=this[e(495)][e(558)]-1;0<=n;--n){var o=this[e(495)][n];if(o[e(560)]<=this[e(462)]&&l[e(585)](o,e(544))&&this[e(462)]<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===r||e(485)===r)&&i[e(560)]<=t&&t<=i[e(544)]?null:i)?i[e(568)]:{};return a.type=r,a[e(507)]=t,i?(this[e(529)]=e(575),this[e(575)]=i[e(544)],_):this.complete(a)},complete:function(r,t){var e=s;if(e(595)===r.type)throw r[e(507)];return e(484)===r[e(524)]||e(485)===r[e(524)]?this[e(575)]=r.arg:e(490)===r[e(524)]?(this.rval=this[e(507)]=r[e(507)],this[e(529)]=e(490),this.next=e(546)):e(491)===r[e(524)]&&t&&(this[e(575)]=t),_},finish:function(r){for(var t=s,e=this.tryEntries[t(558)]-1;0<=e;--e){var n=this.tryEntries[e];if(n[t(544)]===r)return this.complete(n.completion,n[t(562)]),G(n),_}},catch:function(r){for(var t=s,e=this[t(495)][t(558)]-1;0<=e;--e){var n,o,i=this[t(495)][e];if(i.tryLoc===r)return"throw"===(n=i[t(568)])[t(524)]&&(o=n[t(507)],G(i)),o}throw Error(t(569))},delegateYield:function(r,t,e){var n=s;return this.delegate={iterator:L(r),resultName:t,nextLoc:e},"next"===this[n(529)]&&(this.arg=f),_}},c}function asyncGeneratorStep(r,t,e,n,o,i,a){var c=_0x2c72;try{var u=r[i](a),s=u[c(574)]}catch(r){return void e(r)}u[c(550)]?t(s):Promise[c(573)](s)[c(470)](n,o)}function _asyncToGenerator(u){return function(){var r=this,c=arguments;return new Promise(function(t,e){var n=_0x2c72,o=u[n(521)](r,c);function i(r){asyncGeneratorStep(o,t,e,i,a,"next",r)}function a(r){asyncGeneratorStep(o,t,e,i,a,n(595),r)}i(void 0)})}}(()=>{for(var r=_0x2c72,t=_0x4bd4();;)try{if(701469==-parseInt(r(512))*(parseInt(r(458))/2)+-parseInt(r(509))/3*(parseInt(r(599))/4)+parseInt(r(586))/5*(parseInt(r(467))/6)+-parseInt(r(559))/7*(-parseInt(r(540))/8)+parseInt(r(488))/9+-parseInt(r(469))/10*(-parseInt(r(508))/11)+parseInt(r(518))/12*(-parseInt(r(539))/13))break;t.push(t.shift())}catch(r){t.push(t.shift())}})();var _require=require(_0x20b413(593)),watchExec=_require[_0x20b413(515)],log4js=require(_0x20b413(500)),logger=log4js.getLogger(_0x20b413(552));function _0x2c72(r,t){var e=_0x4bd4();return(_0x2c72=function(r,t){return e[r-=458]})(r,t)}function convert(r){return _convert.apply(this,arguments)}function _convert(){var r=_0x20b413;return(_convert=_asyncToGenerator(_regeneratorRuntime().mark(function r(t){var n,o,i=_0x2c72;return _regeneratorRuntime()[i(477)](function(r){for(var e=i;;)switch(r.prev=r[e(575)]){case 0:if(n=require(e(533)),global[e(525)]=!0,global[e(492)]=!0,process[e(519)][e(502)]=t.clear?e(541):"no",o=require(e(601)),o=o[e(580)],t[e(471)]&&(o(t[e(588)],t[e(598)]),process[e(536)](0)),n.checkInputPathFun(t[e(588)]),t[e(556)]){r[e(575)]=12;break}return r.next=10,n.confirmConverterFun({inputPath:t[e(588)],outPath:t[e(598)],confirmAddConfig:!0});case 10:(o=r.sent)[e(479)]?logger[e(498)]('"command":"'[e(590)](o[e(504)],e(535))[e(590)](o[e(479)],'"')):logger[e(566)](e(543)[e(590)](o[e(504)],e(497)).concat(o.folderUrl,'"'));case 12:setTimeout(function(){var t=e,r=require(t(579))[t(505)];try{r()}catch(r){logger[t(570)](t(531)[t(590)](r,"."))}});case 13:case"end":return r[e(503)]()}},r)})))[r(521)](this,arguments)}function compile(r,t){return _compile[_0x20b413(521)](this,arguments)}function _compile(){var t=_0x20b413;return(_compile=_asyncToGenerator(_regeneratorRuntime()[t(489)](function r(e,n){var o,i,a,c=t;return _regeneratorRuntime()[c(477)](function(r){for(var t=c;;)switch(r[t(462)]=r[t(575)]){case 0:return o=require("path"),process.env[t(537)]=o[t(573)](e),process[t(473)](o[t(573)](e,t(486))),process.env[t(510)]=n[t(545)]?t(520):t(534),process[t(519)][t(502)]=n[t(584)]?t(541):"no",process[t(519)][t(591)]=n[t(549)]?t(549):t(564),o=require(t(592)),r[t(462)]=7,i=require(t(526)),r[t(575)]=11,i();case 11:(i=r[t(572)]).plugins=i.plugins||[],i[t(478)].push(new o.EnvironmentPlugin({projectRoot:e})),n[t(555)]&&i[t(478)][t(460)](new o[t(483)]),n[t(565)]&&(i.watch=!0),global._ascfDebug&&(i[t(583)]={level:t(465)}),a=o(i),logger[t(566)](t(581)),n[t(565)]?(watchExec(a,n.run),r[t(575)]=25):r[t(575)]=23;break;case 23:return r[t(575)]=25,run(a);case 25:r[t(575)]=30;break;case 27:r[t(462)]=27,r.t0=r[t(511)](7),logger.fatal(r.t0);case 30:case t(546):return r.stop()}},r,null,[[7,27]])})))[t(521)](this,arguments)}function getAscfToolkitDirname(){return __dirname}function _0x4bd4(){var r=["543751OowoyG","1604728zXreUI","yes","delegate",'"command":"',"finallyLoc","mode","end","symbol","Generator","swc","done","isGeneratorFunction","index","GeneratorFunction","toString","progress","check","abrupt","length","21gKPqTX","tryLoc","pop","afterLoc","setPrototypeOf","babel","watch","info","nextLoc","completion","illegal catch attempt","warn","constructor","sent","resolve","value","next","catchLoc","slice","AsyncIterator","./common/version-check.js","pathValidator","Run compiler.","ASCF uncaught error","infrastructureLogging","clear","call","15055WIPUGl","create","input","ASCF unhandled rejection at:","concat","parser","webpack","./ascf-compiler/watch/watch","executing","throw","awrap","completed","output","136KuAUQG"," is not iterable","./ascf-converter/common/path-validator","469032rhUzAj","suspendedStart","push","run","prev","async","object","verbose","keys","594RJbfhX","resultName","1418290vZJjPp","then","validate","@@iterator","chdir","isLatestAscfHar","WARNING: Get @atomicservice/ascf info failed.","Generator is already running","wrap","plugins","errorMessage","asyncIterator","rval","reset","ProgressPlugin","break","continue","ascf/ascf_src","defineProperty","6943473mYgJbT","mark","return","normal","_isAscfMode","_sent","toStringTag","tryEntries","displayName",'","folderUrl":"',"error","[object Generator]","./common/log4js.js","_invoke","clearResource","stop","command","isLatestAscfToolkit","charAt","arg","11QfSKQL","17562GxqvYG","NODE_ENV","catch","3XKSoPS","' method","existsVerifyLog","watchExec","suspendedYield","getPrototypeOf","60LmDMve","env","development","apply","__proto__","reason:","type","_isMiniAppConvertMode","./ascf-compiler/web.webpack.config.js","prototype","__await","method","root","WARNING: Get @atomicservice/ascf-toolkit version failed: ","function","./ascf-converter/features/converter.js","production",'","errorMessage":"',"exit","projectRoot","iterator"];return(_0x4bd4=function(){return r})()}function run(r){return new Promise(function(e,o){var i=_0x2c72;r[i(461)](function(r,t){var n=i;t&&logger.info(t[n(554)]({all:!1,colors:!0,errors:!1,warnings:!1,assets:!0,logging:global._ascfDebug?n(465):n(566)})),r?(logger[n(498)](r),o(r)):(setTimeout(function(){var t=n,r=require(t(579)),e=r[t(505)],r=r[t(474)];try{r(global[t(514)])}catch(r){logger[t(570)](t(475))}try{e(global[t(514)])}catch(r){logger[t(570)]("WARNING: Get @atomicservice/ascf-toolkit version failed: ".concat(r,"."))}}),e(t))})})}global[_0x20b413(492)]=!0,process.on("uncaughtException",function(r){var t=_0x20b413;logger.error(t(582),r)}),process.on("unhandledRejection",function(r,t){var e=_0x20b413;logger[e(498)](e(589),t,e(523),r)}),module.exports={convert:convert,compile:compile,getAscfToolkitDirname:getAscfToolkitDirname};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atomicservice/ascf-toolkit",
3
- "version": "1.0.3-beta.0",
3
+ "version": "1.0.3-beta.6",
4
4
  "author": "atomicservice",
5
5
  "title": "ASCF toolkit for atomicservice",
6
6
  "description": "ASCF toolkit for atomicservice",
@@ -21,6 +21,7 @@
21
21
  "release": "gulp release && npm pack"
22
22
  },
23
23
  "dependencies": {
24
+ "@swc/core": "1.10.14",
24
25
  "@babel/core": "7.25.7",
25
26
  "@babel/generator": "7.25.7",
26
27
  "@babel/parser": "7.25.7",
@@ -34,16 +35,14 @@
34
35
  "@babel/runtime": "7.25.7",
35
36
 
36
37
  "babel-loader": "8.2.5",
38
+ "cachedir": "2.4.0",
37
39
  "commander": "9.4.0",
38
40
  "eslint": "8.31.0",
39
- "jimp": "0.22.10",
40
- "js-base64": "3.7.7",
41
41
  "json5": "2.2.3",
42
- "jsrsasign": "11.0.0",
43
- "jszip": "3.10.1",
44
- "less": "4.1.2",
45
- "less-loader": "10.2.0",
42
+ "less": "4.2.1",
43
+ "less-loader": "12.2.0",
46
44
  "loader-utils": "2.0.4",
45
+ "log4js": "6.9.1",
47
46
  "postcss": "8.4.39",
48
47
  "rimraf": "4.4.0",
49
48
  "sass": "1.55.0",
@@ -1 +0,0 @@
1
- var _0x21e863=_0x5907;function _typeof(e){var t=_0x5907;return(_typeof=t(522)==typeof Symbol&&t(541)==typeof Symbol.iterator?function(e){return typeof e}:function(e){var r=t;return e&&r(522)==typeof Symbol&&e[r(539)]===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ownKeys(t,e){var r,n=_0x5907,o=Object[n(559)](t);return Object.getOwnPropertySymbols&&(r=Object[n(560)](t),e&&(r=r[n(486)](function(e){var r=n;return Object[r(480)](t,e)[r(562)]})),o.push.apply(o,r)),o}function _0x1848(){var e=["Chromium","value","2676895SglERG","map","IS_EMPTY","201268IOzGeL","name","1791182QfnMvm","getOwnPropertyDescriptors","test","indexOf","ansi","toPrimitive","keys","getOwnPropertySymbols","userAgent","enumerable","stderr","1207701lGmHrE","ansi256ToAnsi","STYLER","round","Object","defineProperties","hex","getOwnPropertyDescriptor","codes","","floor","rgb","level","filter","userAgentData","navigator","call","defineProperty","object","parent","close","max","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","slice","The `level` option should be an integer from 0 to 3","concat","from","5766600qGzExi","undefined","apply","2189408HZhdkS","find","ansi16m","prototype","rgbToAnsi256","string","version","open","GENERATOR","isArray","Set","openAll","done","1wFkwSX","entries","brands","includes","color","stdout","function","Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","setPrototypeOf","toUpperCase","toString","visible","return",";2;","length","bgColor","closeAll","@@toPrimitive must return a primitive value.","next","@@iterator","","ansi256","isInteger","constructor","join","symbol","iterator","set","7830494FwVQyO","exec"];return(_0x1848=function(){return e})()}function _0x5907(e,r){var t=_0x1848();return(_0x5907=function(e,r){return t[e-=475]})(e,r)}function _objectSpread(r){for(var e=_0x5907,t=1;t<arguments[e(530)];t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(n),!0).forEach(function(e){_defineProperty(r,e,n[e])}):Object[e(554)]?Object[e(478)](r,Object[e(554)](n)):ownKeys(Object(n)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(n,e))})}return r}function _defineProperty(e,r,t){var n=_0x5907;return(r=_toPropertyKey(r))in e?Object[n(490)](e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(e){var r=_0x5907,e=_toPrimitive(e,r(508));return r(541)==_typeof(e)?e:e+""}function _toPrimitive(e,r){var t=_0x5907;if(t(491)!=_typeof(e)||!e)return e;var n=e[Symbol[t(558)]];if(void 0===n)return("string"===r?String:Number)(e);n=n[t(489)](e,r||"default");if(t(491)!=_typeof(n))return n;throw new TypeError(t(533))}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x5907(495))}function _iterableToArray(e){var r=_0x5907;if("undefined"!=typeof Symbol&&null!=e[Symbol[r(542)]]||null!=e["@@iterator"])return Array[r(499)](e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _slicedToArray(e,r){return _arrayWithHoles(e)||_iterableToArrayLimit(e,r)||_unsupportedIterableToArray(e,r)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError(_0x5907(523))}function _unsupportedIterableToArray(e,r){var t,n=_0x5907;if(e)return n(508)==typeof e?_arrayLikeToArray(e,r):(t={}[n(526)][n(489)](e)[n(496)](8,-1),"Map"===(t=n(477)===t&&e[n(539)]?e[n(539)][n(552)]:t)||n(513)===t?Array[n(499)](e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(555)](t)?_arrayLikeToArray(e,r):void 0)}function _arrayLikeToArray(e,r){var t=_0x5907;(null==r||r>e[t(530)])&&(r=e[t(530)]);for(var n=0,o=Array(r);n<r;n++)o[n]=e[n];return o}function _iterableToArrayLimit(e,r){var t=_0x5907,n=null==e?null:t(501)!=typeof Symbol&&e[Symbol[t(542)]]||e[t(535)];if(null!=n){var o,a,i,l,s=[],u=!0,c=!1;try{if(i=(n=n.call(e))[t(534)],0===r){if(Object(n)!==n)return;u=!1}else for(;!(u=(o=i.call(n))[t(515)])&&(s.push(o[t(547)]),s[t(530)]!==r);u=!0);}catch(e){c=!0,a=e}finally{try{if(!u&&null!=n[t(528)]&&(l=n[t(528)](),Object(l)!==l))return}finally{if(c)throw a}}return s}}function _arrayWithHoles(e){if(Array[_0x5907(512)](e))return e}(()=>{for(var e=_0x5907,r=_0x1848();;)try{if(647502==+parseInt(e(516))*(parseInt(e(553))/2)+-parseInt(e(564))/3+parseInt(e(551))/4+parseInt(e(548))/5+parseInt(e(500))/6+-parseInt(e(544))/7+-parseInt(e(503))/8)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var ANSI_BACKGROUND_OFFSET=10,wrapAnsi16=function(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return function(e){return"["[_0x5907(498)](e+r,"m")}},wrapAnsi256=function(){var t=_0x5907,n=0<arguments[t(530)]&&void 0!==arguments[0]?arguments[0]:0;return function(e){var r=t;return"["[r(498)](38+n,";5;")[r(498)](e,"m")}},wrapAnsi16m=function(){var o=_0x5907,a=0<arguments[o(530)]&&void 0!==arguments[0]?arguments[0]:0;return function(e,r,t){var n=o;return"["[n(498)](38+a,n(529))[n(498)](e,";")[n(498)](r,";").concat(t,"m")}},styles$1={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},foregroundColorNames=(Object.keys(styles$1.modifier),Object[_0x21e863(559)](styles$1[_0x21e863(520)])),backgroundColorNames=Object.keys(styles$1[_0x21e863(531)]);function assembleStyles(){for(var a=_0x21e863,e=new Map,r=0,t=Object[a(517)](styles$1);r<t[a(530)];r++){for(var n=_slicedToArray(t[r],2),o=n[0],i=n[1],l=0,s=Object[a(517)](i);l<s[a(530)];l++){var u=_slicedToArray(s[l],2),c=u[0],u=u[1];styles$1[c]={open:"["[a(498)](u[0],"m"),close:"["[a(498)](u[1],"m")},i[c]=styles$1[c],e[a(543)](u[0],u[1])}Object[a(490)](styles$1,o,{value:i,enumerable:!1})}return Object[a(490)](styles$1,a(481),{value:e,enumerable:!1}),styles$1[a(520)][a(493)]=a(482),styles$1[a(531)].close=a(536),styles$1[a(520)][a(557)]=wrapAnsi16(),styles$1.color[a(537)]=wrapAnsi256(),styles$1[a(520)][a(505)]=wrapAnsi16m(),styles$1[a(531)][a(557)]=wrapAnsi16(ANSI_BACKGROUND_OFFSET),styles$1[a(531)][a(537)]=wrapAnsi256(ANSI_BACKGROUND_OFFSET),styles$1[a(531)][a(505)]=wrapAnsi16m(ANSI_BACKGROUND_OFFSET),Object[a(478)](styles$1,{rgbToAnsi256:{value:function(e,r,t){var n=a;return e===r&&r===t?e<8?16:248<e?231:Math[n(476)]((e-8)/247*24)+232:16+36*Math[n(476)](e/255*5)+6*Math[n(476)](r/255*5)+Math[n(476)](t/255*5)},enumerable:!1},hexToRgb:{value:function(e){var r=a,e=/[a-f\d]{6}|[a-f\d]{3}/i[r(545)](e[r(526)](16));return e?(3===(e=_slicedToArray(e,1)[0])[r(530)]&&(e=_toConsumableArray(e)[r(549)](function(e){return e+e}).join("")),[(r=Number.parseInt(e,16))>>16&255,r>>8&255,255&r]):[0,0,0]},enumerable:!1},hexToAnsi256:{value:function(e){var r=a;return styles$1[r(507)][r(502)](styles$1,_toConsumableArray(styles$1.hexToRgb(e)))},enumerable:!1},ansi256ToAnsi:{value:function(e){var r,t,n=a;if(e<8)return 30+e;if(e<16)return e-8+90;e=232<=e?t=r=(10*(e-232)+8)/255:(o=(e-=16)%36,r=Math[n(483)](e/36)/5,t=Math[n(483)](o/6)/5,o%6/5);var o=2*Math[n(494)](r,t,e);return 0==o?30:(n=30+(Math[n(476)](e)<<2|Math.round(t)<<1|Math.round(r)),2==o&&(n+=60),n)},enumerable:!1},rgbToAnsi:{value:function(e,r,t){var n=a;return styles$1[n(565)](styles$1[n(507)](e,r,t))},enumerable:!1},hexToAnsi:{value:function(e){return styles$1[a(565)](styles$1.hexToAnsi256(e))},enumerable:!1}}),styles$1}[][_0x21e863(498)](foregroundColorNames,backgroundColorNames);var ansiStyles=assembleStyles(),level=((e,r)=>{var t=_0x21e863;if(null!=(e=Object[t(488)])&&e[t(487)]){e=null==(e=Object[t(488)])?void 0:e.userAgentData[t(518)][t(504)](function(e){var r=t;return e.brand===r(546)});if(e&&93<e[t(509)])return 3}return/\b(Chrome|Chromium)\//[t(555)](null==(r=Object.navigator)?void 0:r[t(561)])?1:0})(),colorSupport=0!==level&&{level:level,hasBasic:!0,has256:2<=level,has16m:3<=level},supportsColor={stdout:colorSupport,stderr:colorSupport};function stringReplaceAll(e,r,t){var n=_0x21e863,o=e.indexOf(r);if(-1===o)return e;for(var a=r[n(530)],i=0,l="";l+=e[n(496)](i,o)+r+t,i=o+a,-1!==(o=e[n(556)](r,i)););return l+=e[n(496)](i)}function stringEncaseCRLFWithFirstIndex(e,r,t,n){var o=_0x21e863,a=0,i="";do{var l="\r"===e[n-1]}while(i+=e.slice(a,l?n-1:n)+r+(l?"\r\n":"\n")+t,a=n+1,-1!==(n=e[o(556)]("\n",a)));return i+=e[o(496)](a)}var stdoutColor=supportsColor[_0x21e863(521)],stderrColor=supportsColor[_0x21e863(563)],GENERATOR=Symbol(_0x21e863(511)),STYLER=Symbol(_0x21e863(475)),IS_EMPTY=Symbol(_0x21e863(550)),levelMapping=["ansi",_0x21e863(557),_0x21e863(537),_0x21e863(505)],styles=Object.create(null),applyOptions=function(e){var r=_0x21e863,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(t.level&&!(Number[r(538)](t[r(485)])&&0<=t[r(485)]&&t.level<=3))throw new Error(r(497));var n=stdoutColor?stdoutColor[r(485)]:0;e.level=void 0===t[r(485)]?n:t.level},chalkFactory=function(e){function r(){for(var e=_0x5907,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];return t[e(540)](" ")}var t=_0x21e863;return applyOptions(r,e),Object[t(524)](r,createChalk[t(506)]),r};function createChalk(e){return chalkFactory(e)}Object[_0x21e863(524)](createChalk.prototype,Function[_0x21e863(506)]);for(var _loop=function(){var e=_slicedToArray(_Object$entries3[_i3],2),t=e[0],n=e[1];styles[t]={get:function(){var e=_0x5907,r=createBuilder(this,createStyler(n.open,n[e(493)],this[STYLER]),this[IS_EMPTY]);return Object[e(490)](this,t,{value:r}),r}}},_i3=0,_Object$entries3=Object[_0x21e863(517)](ansiStyles);_i3<_Object$entries3[_0x21e863(530)];_i3++)_loop();styles[_0x21e863(527)]={get:function(){var e=_0x21e863,r=createBuilder(this,this[STYLER],!0);return Object.defineProperty(this,e(527),{value:r}),r}};for(var _getModelAnsi=function(e,r,t){for(var n,o=_0x21e863,a=arguments[o(530)],i=new Array(3<a?a-3:0),l=3;l<a;l++)i[l-3]=arguments[l];return"rgb"===e?r===o(505)?(n=ansiStyles[t]).ansi16m.apply(n,i):r===o(537)?ansiStyles[t][o(537)](ansiStyles.rgbToAnsi256[o(502)](ansiStyles,i)):ansiStyles[t][o(557)](ansiStyles.rgbToAnsi[o(502)](ansiStyles,i)):e===o(479)?_getModelAnsi[o(502)](void 0,[o(484),r,t][o(498)](_toConsumableArray(ansiStyles.hexToRgb[o(502)](ansiStyles,i)))):(n=ansiStyles[t])[e][o(502)](n,i)},usedModels=[_0x21e863(484),_0x21e863(479),_0x21e863(537)],_loop2=function(){var e=_0x21e863,i=_usedModels[_i4],r=(styles[i]={get:function(){var o=_0x5907,a=this[o(485)];return function(){for(var e=o,r=arguments[e(530)],t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];e=createStyler(_getModelAnsi[e(502)](void 0,[i,levelMapping[a],e(520)][e(498)](t)),ansiStyles[e(520)].close,this[STYLER]);return createBuilder(this,e,this[IS_EMPTY])}}},"bg"+i[0][e(525)]()+i[e(496)](1));styles[r]={get:function(){var o=e,a=this[o(485)];return function(){for(var e=o,r=arguments.length,t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];e=createStyler(_getModelAnsi.apply(void 0,[i,levelMapping[a],"bgColor"][e(498)](t)),ansiStyles[e(531)][e(493)],this[STYLER]);return createBuilder(this,e,this[IS_EMPTY])}}}},_i4=0,_usedModels=usedModels;_i4<_usedModels[_0x21e863(530)];_i4++)_loop2();var proto=Object.defineProperties(function(){},_objectSpread(_objectSpread({},styles),{},{level:{enumerable:!0,get:function(){return this[GENERATOR].level},set:function(e){var r=_0x21e863;this[GENERATOR][r(485)]=e}}})),createStyler=function(e,r,t){var n,o=_0x21e863,o=void 0===t?(n=e,r):(n=t.openAll+e,r+t[o(532)]);return{open:e,close:r,openAll:n,closeAll:o,parent:t}},createBuilder=function(e,r,t){function n(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return applyStyle(n,1===r.length?""+r[0]:r.join(" "))}return Object[_0x21e863(524)](n,proto),n[GENERATOR]=e,n[STYLER]=r,n[IS_EMPTY]=t,n},applyStyle=function(e,r){var t=_0x21e863;if(e[t(485)]<=0||!r)return e[IS_EMPTY]?"":r;var n=e[STYLER];if(void 0===n)return r;var e=n,o=e[t(514)],e=e[t(532)];if(r[t(519)](""))for(;void 0!==n;)r=stringReplaceAll(r,n[t(493)],n[t(510)]),n=n[t(492)];var a=r[t(556)]("\n");return o+(r=-1!==a?stringEncaseCRLFWithFirstIndex(r,e,o,a):r)+e},chalk=(Object[_0x21e863(478)](createChalk[_0x21e863(506)],styles),createChalk());createChalk({level:stderrColor?stderrColor[_0x21e863(485)]:0}),module.exports=chalk;