@atomicservice/ascf-toolkit 1.0.3-beta.0 → 1.0.3
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.
- package/lib/ascf-compiler/appjson-loader.js +1 -1
- package/lib/ascf-compiler/common/appjson-validator.js +1 -1
- package/lib/ascf-compiler/common/css-runtime-api.js +1 -1
- package/lib/ascf-compiler/common/eventHappenHjs.js +1 -0
- package/lib/ascf-compiler/common/exp-utils.js +1 -1
- package/lib/ascf-compiler/common/fixComponentName.js +1 -1
- package/lib/ascf-compiler/common/hash-sum.js +1 -1
- package/lib/ascf-compiler/common/hjs-utils.js +1 -1
- package/lib/ascf-compiler/common/hxml-validator.js +1 -1
- package/lib/ascf-compiler/common/logUndefined.js +1 -1
- package/lib/ascf-compiler/common/merge-tpl-cmps.js +1 -0
- package/lib/ascf-compiler/common/packoptions-utils.js +1 -1
- package/lib/ascf-compiler/common/quick-generate-subpackage.js +1 -0
- package/lib/ascf-compiler/common/utils.js +1 -1
- package/lib/ascf-compiler/css-process-loader.js +1 -1
- package/lib/ascf-compiler/extract-loader.js +1 -1
- package/lib/ascf-compiler/hcss-loader.js +1 -1
- package/lib/ascf-compiler/hjs-loader.js +1 -1
- package/lib/ascf-compiler/hxml-loader.js +1 -1
- package/lib/ascf-compiler/js-parser/parser-babel.js +1 -0
- package/lib/ascf-compiler/js-parser/parser-swc.js +1 -0
- package/lib/ascf-compiler/js-parser/parser.js +1 -0
- package/lib/ascf-compiler/loader-utils.js +1 -1
- package/lib/ascf-compiler/path-process-loader.js +1 -1
- package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/extConfig-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/html-generator-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/i18n-transform-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/manifest-generator-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/replace-module-id-plugin.js +1 -0
- package/lib/ascf-compiler/plugin/resource-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/index.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpChunkLoadingRuntimeModule.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpHelpers.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpTemplatePlugin.js +1 -1
- package/lib/ascf-compiler/require-loader.js +1 -0
- package/lib/ascf-compiler/swc-loader.js +1 -0
- package/lib/ascf-compiler/template/attr-utils.js +1 -1
- package/lib/ascf-compiler/template/implicit-model-config.js +1 -0
- package/lib/ascf-compiler/template/node-name-utils.js +1 -1
- package/lib/ascf-compiler/trustlist-hxml-verify-loader.js +1 -1
- package/lib/ascf-compiler/trustlist-js-verify-loader.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/config.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/utils.js +1 -1
- package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
- package/lib/ascf-compiler/watch/watch.js +1 -1
- package/lib/ascf-compiler/web.webpack.config.js +1 -1
- package/lib/ascf-converter/common/commonConfig.js +1 -1
- package/lib/ascf-converter/common/commonUtils.js +1 -1
- package/lib/ascf-converter/common/path-validator.js +1 -1
- package/lib/ascf-converter/common/textDocument.js +1 -1
- package/lib/ascf-converter/compiler-utils/parse5.bundle.js +1 -1
- package/lib/ascf-converter/features/converter.js +1 -1
- package/lib/ascf-converter/features/fileHandle.js +1 -1
- package/lib/ascf-converter/features/transformReport.js +1 -1
- package/lib/ascf-converter/lib/apiadapter4alipay.js +1 -1
- package/lib/ascf-converter/parse/babelParser.js +1 -1
- package/lib/ascf-converter/parse/importVisitor.js +1 -1
- package/lib/ascf-converter/parse/wxssParser.js +1 -1
- package/lib/bin/ascf.js +1 -1
- package/lib/common/config.js +1 -1
- package/lib/common/log4js.js +1 -0
- package/lib/common/logger-plugin.js +1 -1
- package/lib/common/remove-strict-mode-plugin.js +1 -1
- package/lib/common/string-utils.js +1 -0
- package/lib/common/utils.js +1 -1
- package/lib/common/version-check.js +1 -1
- package/lib/index.d.ts +3 -1
- package/lib/index.js +1 -1
- package/notice/openSourceSoftwareNotice.docx +0 -0
- package/package.json +10 -10
- 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 _0x1cd288=_0x183d;function _typeof(r){var t=_0x183d;return(_typeof="function"==typeof Symbol&&t(484)==typeof Symbol[t(501)]?function(r){return typeof r}:function(r){var e=t;return r&&e(476)==typeof Symbol&&r[e(577)]===Symbol&&r!==Symbol.prototype?e(484):typeof r})(r)}function _regeneratorRuntime(){var s=_0x183d;_regeneratorRuntime=function(){return c};var f,c={},r=Object[s(451)],l=r[s(543)],p=Object.defineProperty||function(r,e,t){var n=s;r[e]=t[n(431)]},e=s(476)==typeof Symbol?Symbol:{},i=e[s(501)]||s(527),t=e.asyncIterator||s(539),n=e.toStringTag||s(550);function o(r,e,t){return Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),r[e]}try{o({},"")}catch(r){o=function(r,e,t){return r[e]=t}}function u(r,e,t,n){var o,i,a,c,u=s,e=e&&e.prototype instanceof y?e:y,e=Object[u(563)](e[u(451)]),n=new S(n||[]);return p(e,u(547),{value:(o=r,i=t,a=n,c=g,function(r,e){var t=_0x183d;if(c===d)throw Error(t(442));if(c===m){if(t(578)===r)throw e;return{value:f,done:!0}}for(a[t(462)]=r,a[t(488)]=e;;){var n=a[t(529)];if(n){n=function r(e,t){var n=s,o=t[n(462)],i=e[n(501)][o];if(i===f)return t[n(529)]=null,n(578)===o&&e[n(501)][n(542)]&&(t[n(462)]="return",t[n(488)]=f,r(e,t),n(578)===t[n(462)])||n(542)!==o&&(t[n(462)]=n(578),t[n(488)]=new TypeError(n(531)+o+n(456))),_;o=h(i,e[n(501)],t[n(488)]);if(n(578)===o[n(552)])return t[n(462)]=n(578),t[n(488)]=o[n(488)],t[n(529)]=null,_;i=o[n(488)];return i?i[n(463)]?(t[e[n(535)]]=i[n(431)],t[n(459)]=e[n(487)],n(542)!==t.method&&(t[n(462)]=n(459),t[n(488)]=f),t[n(529)]=null,_):i:(t[n(462)]=n(578),t.arg=new TypeError("iterator result is not an object"),t[n(529)]=null,_)}(n,a);if(n){if(n===_)continue;return n}}if(t(459)===a[t(462)])a[t(574)]=a[t(523)]=a[t(488)];else if(t(578)===a[t(462)]){if(c===g)throw c=m,a[t(488)];a[t(536)](a[t(488)])}else t(542)===a[t(462)]&&a[t(495)](t(542),a[t(488)]);c=d;n=h(o,i,a);if("normal"===n[t(552)]){if(c=a[t(463)]?m:v,n[t(488)]===_)continue;return{value:n[t(488)],done:a.done}}"throw"===n[t(552)]&&(c=m,a[t(462)]=t(578),a.arg=n.arg)}})}),e}function h(r,e,t){var n=s;try{return{type:n(468),arg:r[n(506)](e,t)}}catch(r){return{type:n(578),arg:r}}}c.wrap=u;var g=s(493),v=s(497),d="executing",m=s(522),_={};function y(){}function a(){}function b(){}var e={},x=(o(e,i,function(){return this}),Object[s(567)]),x=x&&x(x(E([]))),w=(x&&x!==r&&l[s(506)](x,i)&&(e=x),b[s(451)]=y[s(451)]=Object.create(e));function k(r){var e=s;[e(459),e(578),e(542)][e(568)](function(e){o(r,e,function(r){return this[_0x183d(547)](e,r)})})}function G(c,u){var e,o=s;p(this,o(547),{value:function(t,n){function r(){return new u(function(r,e){!function e(r,t,n,o){var i,a=_0x183d,r=h(c[r],c,t);if(a(578)!==r.type)return(t=(i=r.arg).value)&&a(582)==_typeof(t)&&l[a(506)](t,a(453))?u[a(471)](t[a(453)])[a(561)](function(r){e("next",r,n,o)},function(r){e("throw",r,n,o)}):u[a(471)](t)[a(561)](function(r){i[a(431)]=r,n(i)},function(r){return e("throw",r,n,o)});o(r[a(488)])}(t,n,r,e)})}return e=e?e[o(561)](r,r):r()}})}function j(r){var e=s,t={tryLoc:r[0]};1 in r&&(t[e(541)]=r[1]),2 in r&&(t[e(520)]=r[2],t.afterLoc=r[3]),this.tryEntries[e(579)](t)}function q(r){var e=s,t=r.completion||{};t[e(552)]="normal",delete t[e(488)],r[e(457)]=t}function S(r){var e=s;this[e(524)]=[{tryLoc:e(514)}],r[e(568)](j,this),this[e(510)](!0)}function E(t){var n=s;if(t||""===t){var o,r=t[i];if(r)return r[n(506)](t);if("function"==typeof t[n(459)])return t;if(!isNaN(t[n(538)]))return o=-1,(r=function r(){for(var e=n;++o<t[e(538)];)if(l[e(506)](t,o))return r[e(431)]=t[o],r.done=!1,r;return r[e(431)]=f,r[e(463)]=!0,r})[n(459)]=r}throw new TypeError(_typeof(t)+n(508))}return a[s(451)]=b,p(w,s(577),{value:b,configurable:!0}),p(b,s(577),{value:a,configurable:!0}),a.displayName=o(b,n,"GeneratorFunction"),c[s(557)]=function(r){var e=s,r=e(476)==typeof r&&r[e(577)];return!!r&&(r===a||e(489)===(r[e(491)]||r[e(473)]))},c.mark=function(r){var e=s;return Object[e(525)]?Object[e(525)](r,b):(r.__proto__=b,o(r,n,e(489))),r[e(451)]=Object[e(563)](w),r},c.awrap=function(r){return{__await:r}},k(G[s(451)]),o(G[s(451)],t,function(){return this}),c.AsyncIterator=G,c[s(478)]=function(r,e,t,n,o){var i=s,a=(void 0===o&&(o=Promise),new G(u(r,e,t,n),o));return c[i(557)](e)?a:a.next().then(function(r){var e=i;return r[e(463)]?r[e(431)]:a[e(459)]()})},k(w),o(w,n,s(534)),o(w,i,function(){return this}),o(w,s(440),function(){return s(500)}),c[s(477)]=function(r){var e,n=s,o=Object(r),i=[];for(e in o)i[n(579)](e);return i[n(504)](),function r(){for(var e=n;i[e(538)];){var t=i.pop();if(t in o)return r.value=t,r.done=!1,r}return r[e(463)]=!0,r}},c[s(565)]=E,S[s(451)]={constructor:S,reset:function(r){var e=s;if(this.prev=0,this[e(459)]=0,this[e(574)]=this[e(523)]=f,this[e(463)]=!1,this[e(529)]=null,this[e(462)]="next",this[e(488)]=f,this[e(524)][e(568)](q),!r)for(var t in this)"t"===t[e(464)](0)&&l[e(506)](this,t)&&!isNaN(+t.slice(1))&&(this[t]=f)},stop:function(){var r=s,e=(this[r(463)]=!0,this[r(524)][0][r(457)]);if(r(578)===e[r(552)])throw e[r(488)];return this[r(458)]},dispatchException:function(n){var o=s;if(this[o(463)])throw n;var i=this;function r(r,e){var t=o;return a[t(552)]=t(578),a[t(488)]=n,i[t(459)]=r,e&&(i[t(462)]=t(459),i[t(488)]=f),!!e}for(var e=this[o(524)][o(538)]-1;0<=e;--e){var t=this.tryEntries[e],a=t[o(457)];if(o(514)===t[o(505)])return r(o(540));if(t[o(505)]<=this.prev){var c=l[o(506)](t,"catchLoc"),u=l[o(506)](t,"finallyLoc");if(c&&u){if(this[o(573)]<t[o(541)])return r(t.catchLoc,!0);if(this[o(573)]<t[o(520)])return r(t[o(520)])}else if(c){if(this[o(573)]<t[o(541)])return r(t[o(541)],!0)}else{if(!u)throw Error(o(443));if(this[o(573)]<t[o(520)])return r(t[o(520)])}}}},abrupt:function(r,e){for(var t=s,n=this[t(524)].length-1;0<=n;--n){var o=this[t(524)][n];if(o.tryLoc<=this[t(573)]&&l[t(506)](o,t(520))&&this[t(573)]<o[t(520)]){var i=o;break}}var a=(i=i&&(t(533)===r||t(580)===r)&&i[t(505)]<=e&&e<=i[t(520)]?null:i)?i[t(457)]:{};return a.type=r,a[t(488)]=e,i?(this[t(462)]="next",this[t(459)]=i[t(520)],_):this.complete(a)},complete:function(r,e){var t=s;if(t(578)===r[t(552)])throw r[t(488)];return t(533)===r.type||t(580)===r.type?this[t(459)]=r[t(488)]:"return"===r[t(552)]?(this[t(458)]=this[t(488)]=r[t(488)],this[t(462)]=t(542),this[t(459)]="end"):t(468)===r[t(552)]&&e&&(this[t(459)]=e),_},finish:function(r){for(var e=s,t=this[e(524)].length-1;0<=t;--t){var n=this.tryEntries[t];if(n[e(520)]===r)return this[e(498)](n.completion,n[e(494)]),q(n),_}},catch:function(r){for(var e=s,t=this[e(524)][e(538)]-1;0<=t;--t){var n,o,i=this[e(524)][t];if(i[e(505)]===r)return n=i[e(457)],e(578)===n[e(552)]&&(o=n[e(488)],q(i)),o}throw Error(e(469))},delegateYield:function(r,e,t){var n=s;return this[n(529)]={iterator:E(r),resultName:e,nextLoc:t},n(459)===this[n(462)]&&(this[n(488)]=f),_}},c}function asyncGeneratorStep(r,e,t,n,o,i,a){var c=_0x183d;try{var u=r[i](a),s=u[c(431)]}catch(r){return void t(r)}u[c(463)]?e(s):Promise[c(471)](s)[c(561)](n,o)}function _asyncToGenerator(u){return function(){var r=this,c=arguments;return new Promise(function(e,t){var n=_0x183d,o=u[n(449)](r,c);function i(r){asyncGeneratorStep(o,e,t,i,a,n(459),r)}function a(r){asyncGeneratorStep(o,e,t,i,a,n(578),r)}i(void 0)})}}(()=>{for(var r=_0x183d,e=_0x2af4();;)try{if(533730==+parseInt(r(581))*(-parseInt(r(470))/2)+-parseInt(r(583))/3*(-parseInt(r(509))/4)+-parseInt(r(485))/5+-parseInt(r(447))/6+parseInt(r(432))/7*(parseInt(r(576))/8)+parseInt(r(548))/9*(parseInt(r(475))/10)+-parseInt(r(516))/11)break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var _require=require(_0x1cd288(571)),watchExec=_require[_0x1cd288(560)],pkg=require("../package.json"),_require2=require(_0x1cd288(553)),configs=_require2[_0x1cd288(454)],log4js=require(_0x1cd288(544)),logger=log4js[_0x1cd288(490)](_0x1cd288(518));function _0x2af4(){var r=["prev","sent","catch","8ZRiiQG","constructor","throw","push","continue","257063gefMqw","object","195612tnMJPV","unhandledRejection","value","5505269DgOSRO",'"command":"',"errorMessage","folderUrl","pathValidator","ProgressPlugin","clearResource","Devtool: ","toString","_isAscfMode","Generator is already running","try statement without catch or finally","concat","reason:","output","2219550WTcMSU","./ascf-compiler/common/quick-generate-subpackage","apply","./ascf-converter/features/converter.js","prototype",'","errorMessage":"',"__await","configs","projectRoot","' method","completion","rval","next","plugins","input","method","done","charAt","exit","fatal","ASCF uncaught error","normal","illegal catch attempt","6bPkxEG","resolve","EnvironmentPlugin","name","check","35770TxaiNH","function","keys","async","Using ","./common/version-check.js","./ascf-converter/common/path-validator","checkInputPathFun","error","symbol","993405xuMBdP","isLatestAscfHar","nextLoc","arg","GeneratorFunction","getLogger","displayName","skipApiValidator","suspendedStart","afterLoc","abrupt","command","suspendedYield","complete","existsVerifyLog","[object Generator]","iterator","wrap","development","reverse","tryLoc","call","templateHoist"," is not iterable","28BNizQM","reset","devtool","run","notaddtodo","root","babel","3057208neAcjG","verbose","index","NODE_ENV","finallyLoc","stop","completed","_sent","tryEntries","setPrototypeOf","isLatestAscfToolkit","@@iterator","validate","delegate","quickGenSub","The iterator does not provide a '","_ascfDebug","break","Generator","resultName","dispatchException","info","length","@@asyncIterator","end","catchLoc","return","hasOwnProperty","./common/log4js.js","warn","mode","_invoke","2286HqvDJz","yes","@@toStringTag","WARNING: Get @atomicservice/ascfapi info failed: ","type","./common/config","clear","./ascf-compiler/web.webpack.config.js","_isMiniAppConvertMode","isGeneratorFunction","webpack","ASCF unhandled rejection at:","watchExec","then","watch","create","swc","values","env","getPrototypeOf","forEach","ascf/ascf_src","Run compiler with ","./ascf-compiler/watch/watch","path"];return(_0x2af4=function(){return r})()}function convert(r){return _convert.apply(this,arguments)}function _convert(){var r=_0x1cd288;return(_convert=_asyncToGenerator(_regeneratorRuntime().mark(function r(e){var n,o,i=_0x183d;return _regeneratorRuntime()[i(502)](function(r){for(var t=i;;)switch(r.prev=r.next){case 0:if(configs[t(513)]=!!e[t(513)],n=require(t(450)),global[t(556)]=!0,global[t(441)]=!0,process[t(566)][t(438)]=e[t(554)]?t(549):"no",o=require(t(481)),o=o[t(436)],e[t(528)]&&(o(e[t(461)],e.output),process[t(465)](0)),n[t(482)](e[t(461)]),e[t(474)]){r.next=13;break}return r[t(459)]=11,n.confirmConverterFun({inputPath:e.input,outPath:e[t(446)],confirmAddConfig:!0});case 11:(o=r.sent)[t(434)]?logger[t(483)](t(433)[t(444)](o[t(496)],t(452))[t(444)](o[t(434)],'"')):logger[t(537)](t(433).concat(o.command,'","folderUrl":"')[t(444)](o[t(435)],'"'));case 13:setTimeout(function(){var e=t,r=require(e(480))[e(526)];try{r()}catch(r){logger[e(545)]("WARNING: Get @atomicservice/ascf-toolkit version failed: "[e(444)](r,"."))}});case 14:case t(540):return r[t(521)]()}},r)})))[r(449)](this,arguments)}function compile(r,e){return _compile.apply(this,arguments)}function _compile(){var r=_0x1cd288;return(_compile=_asyncToGenerator(_regeneratorRuntime().mark(function r(t,n){var o,i,a,c=_0x183d;return _regeneratorRuntime()[c(502)](function(r){for(var e=c;;)switch(r.prev=r[e(459)]){case 0:return o=require(e(572)),process[e(566)][e(455)]=o[e(471)](t),process.chdir(o[e(471)](t,e(569))),process[e(566)][e(519)]=n[e(546)]?e(503):"production",process[e(566)][e(438)]=n.clear?e(549):"no",configs.parser=n[e(564)]?e(564):e(515),configs[e(511)]=n[e(511)],configs[e(507)]=!!n[e(507)],logger.debug(e(439).concat(configs[e(511)])),configs[e(507)]=!!n[e(507)],configs[e(492)]=!!n[e(492)],o=require(e(558)),r[e(573)]=12,i=require(e(555)),r[e(459)]=16,i();case 16:(i=r[e(574)])[e(460)]=i[e(460)]||[],i.plugins[e(579)](new o[e(472)]({projectRoot:t})),n.progress&&i[e(460)][e(579)](new o[e(437)]),n[e(562)]&&(i[e(562)]=!0),global[e(532)]&&(i.infrastructureLogging={level:e(517)}),a=o(i),logger[e(537)](e(570)[e(444)](configs.parser,".")),n.watch?(watchExec(a,n[e(512)]),r[e(459)]=30):r[e(459)]=28;break;case 28:return r[e(459)]=30,run(a);case 30:r[e(459)]=35;break;case 32:r[e(573)]=32,r.t0=r[e(575)](12),logger[e(466)](r.t0);case 35:case e(540):return r.stop()}},r,null,[[12,32]])})))[r(449)](this,arguments)}function getAscfToolkitDirname(){return __dirname}function run(r){return new Promise(function(t,o){var i=_0x183d;r[i(512)](function(r,e){var n=i;e&&logger.info(e.toString({all:!1,colors:!0,errors:!1,warnings:!1,assets:!0,logging:global._ascfDebug?n(517):"info"})),r?(logger.error(r),o(r)):(setTimeout(function(){var e=n,r=require(e(480)),t=r.isLatestAscfToolkit,r=r[e(486)];try{r(global[e(499)])}catch(r){logger[e(545)](e(551)[e(444)](r,"."))}try{t(global[e(499)])}catch(r){logger[e(545)]("WARNING: Get @atomicservice/ascf-toolkit version failed: "[e(444)](r,"."))}}),t(e))})})}function _0x183d(r,e){var t=_0x2af4();return(_0x183d=function(r,e){return t[r-=430]})(r,e)}function quickGenerateSubpackage(){return _quickGenerateSubpackage[_0x1cd288(449)](this,arguments)}function _quickGenerateSubpackage(){return(_quickGenerateSubpackage=_asyncToGenerator(_regeneratorRuntime().mark(function r(){var t;return _regeneratorRuntime().wrap(function(r){for(var e=_0x183d;;)switch(r[e(573)]=r.next){case 0:return t=require(e(448)),t=t[e(530)],r[e(459)]=3,t()[e(575)](function(r){logger[e(483)](r)});case 3:case e(540):return r.stop()}},r)}))).apply(this,arguments)}logger.debug(_0x1cd288(479)[_0x1cd288(444)](pkg.name," ").concat(pkg.version,".")),global._isAscfMode=!0,process.on("uncaughtException",function(r){var e=_0x1cd288;logger[e(483)](e(467),r)}),process.on(_0x1cd288(430),function(r,e){var t=_0x1cd288;logger[t(483)](t(559),e,t(445),r)}),module.exports={convert:convert,compile:compile,getAscfToolkitDirname:getAscfToolkitDirname,quickGenerateSubpackage:quickGenerateSubpackage};
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomicservice/ascf-toolkit",
|
|
3
|
-
"version": "1.0.3
|
|
3
|
+
"version": "1.0.3",
|
|
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
|
-
"
|
|
43
|
-
"
|
|
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",
|
|
@@ -52,7 +51,8 @@
|
|
|
52
51
|
"source-map": "0.7.4",
|
|
53
52
|
"stylus": "0.59.0",
|
|
54
53
|
"stylus-loader": "7.0.0",
|
|
55
|
-
"webpack": "5.76.2"
|
|
54
|
+
"webpack": "5.76.2",
|
|
55
|
+
"minimatch": "5.1.6"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"del": "6.1.0",
|
|
@@ -65,7 +65,6 @@
|
|
|
65
65
|
},
|
|
66
66
|
"overrides": {
|
|
67
67
|
"minipass": "3.3.6",
|
|
68
|
-
"minimatch": "5.1.6",
|
|
69
68
|
"@babel/plugin-bugfix-firefox-class-in-computed-class-key": "7.25.7",
|
|
70
69
|
"@babel/plugin-bugfix-safari-class-field-initializer-scope": "7.25.7",
|
|
71
70
|
"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "7.25.7",
|
|
@@ -152,7 +151,8 @@
|
|
|
152
151
|
"@jridgewell/source-map": "0.3.2",
|
|
153
152
|
"browserslist": "4.24.2",
|
|
154
153
|
"resolve": "1.22.8",
|
|
155
|
-
"terser-webpack-plugin": "5.3.7"
|
|
154
|
+
"terser-webpack-plugin": "5.3.7",
|
|
155
|
+
"@swc/types": "0.1.17"
|
|
156
156
|
},
|
|
157
157
|
"bin": {
|
|
158
158
|
"ascf": "lib/bin/ascf.js"
|
|
@@ -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","[39m","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","[49m","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;
|