@atomicservice/ascf-toolkit 1.0.1 → 1.0.3-beta.0
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/chalk/bundle.cjs.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/exp-utils.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/packoptions-utils.js +1 -1
- 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/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/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/template/attr-utils.js +1 -1
- 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 -0
- 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 -0
- 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 -0
- package/lib/common/logger-plugin.js +1 -1
- package/lib/common/remove-strict-mode-plugin.js +1 -1
- package/lib/common/utils.js +1 -1
- package/lib/common/version-check.js +1 -0
- package/lib/index.js +1 -1
- package/notice/openSourceSoftwareNotice.docx +0 -0
- package/package.json +22 -16
- package/notice/openSourceSoftwareNotice.html +0 -5132
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x90fc96=_0x14cc;function _0x14cc(r,t){var n=_0x2e20();return(_0x14cc=function(r,t){return n[r-=480]})(r,t)}function _typeof(r){var n=_0x14cc;return(_typeof=n(542)==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){var t=n;return r&&t(542)==typeof Symbol&&r[t(480)]===Symbol&&r!==Symbol[t(573)]?t(515):typeof r})(r)}function _regeneratorRuntime(){var f=_0x14cc;_regeneratorRuntime=function(){return a};var s,a={},r=Object[f(573)],h=r.hasOwnProperty,m=Object[f(594)]||function(r,t,n){var e=f;r[t]=n[e(613)]},t=f(542)==typeof Symbol?Symbol:{},i=t[f(562)]||f(618),n=t[f(612)]||f(513),e=t[f(621)]||f(499);function o(r,t,n){return Object[f(594)](r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),r[t]}try{o({},"")}catch(r){o=function(r,t,n){return r[t]=n}}function u(r,t,n,e){var o,i,c,a,u=f,t=t&&t[u(573)]instanceof x?t:x,t=Object[u(570)](t[u(573)]),e=new j(e||[]);return m(t,u(550),{value:(o=r,i=n,c=e,a=l,function(r,t){var n=_0x14cc;if(a===_)throw Error(n(539));if(a===y){if(n(554)===r)throw t;return{value:s,done:!0}}for(c[n(555)]=r,c[n(584)]=t;;){var e=c[n(490)];if(e){e=function r(t,n){var e=f,o=n[e(555)],i=t[e(562)][o];if(i===s)return n[e(490)]=null,e(554)===o&&t[e(562)][e(601)]&&(n[e(555)]=e(601),n[e(584)]=s,r(t,n),e(554)===n[e(555)])||e(601)!==o&&(n[e(555)]=e(554),n[e(584)]=new TypeError(e(543)+o+"' method")),g;o=p(i,t[e(562)],n[e(584)]);if(e(554)===o[e(526)])return n[e(555)]=e(554),n[e(584)]=o[e(584)],n[e(490)]=null,g;i=o[e(584)];return i?i.done?(n[t[e(616)]]=i.value,n[e(522)]=t[e(510)],e(601)!==n[e(555)]&&(n[e(555)]=e(522),n[e(584)]=s),n[e(490)]=null,g):i:(n[e(555)]="throw",n[e(584)]=new TypeError(e(619)),n[e(490)]=null,g)}(e,c);if(e){if(e===g)continue;return e}}if(n(522)===c[n(555)])c[n(604)]=c[n(532)]=c[n(584)];else if(n(554)===c[n(555)]){if(a===l)throw a=y,c.arg;c[n(566)](c.arg)}else"return"===c[n(555)]&&c[n(615)]("return",c[n(584)]);a=_;e=p(o,i,c);if(n(552)===e[n(526)]){if(a=c[n(602)]?y:v,e[n(584)]===g)continue;return{value:e[n(584)],done:c[n(602)]}}n(554)===e[n(526)]&&(a=y,c[n(555)]="throw",c[n(584)]=e.arg)}})}),t}function p(r,t,n){var e=f;try{return{type:e(552),arg:r[e(559)](t,n)}}catch(r){return{type:e(554),arg:r}}}a[f(493)]=u;var l=f(595),v=f(614),_=f(597),y=f(546),g={};function x(){}function c(){}function d(){}var t={},b=(o(t,i,function(){return this}),Object.getPrototypeOf),b=b&&b(b(O([]))),C=(b&&b!==r&&h[f(559)](b,i)&&(t=b),d.prototype=x[f(573)]=Object.create(t));function w(r){var t=f;[t(522),t(554),t(601)].forEach(function(t){o(r,t,function(r){return this._invoke(t,r)})})}function P(a,u){var t,o=f;m(this,o(550),{value:function(n,e){function r(){return new u(function(r,t){!function t(r,n,e,o){var i,c=_0x14cc,r=p(a[r],a,n);if("throw"!==r[c(526)])return(n=(i=r[c(584)])[c(613)])&&c(497)==_typeof(n)&&h.call(n,c(576))?u[c(500)](n[c(576)])[c(561)](function(r){t("next",r,e,o)},function(r){t(c(554),r,e,o)}):u.resolve(n)[c(561)](function(r){i[c(613)]=r,e(i)},function(r){return t(c(554),r,e,o)});o(r[c(584)])}(n,e,r,t)})}return t=t?t[o(561)](r,r):r()}})}function F(r){var t=f,n={tryLoc:r[0]};1 in r&&(n[t(528)]=r[1]),2 in r&&(n[t(518)]=r[2],n[t(481)]=r[3]),this[t(551)][t(617)](n)}function S(r){var t=f,n=r[t(572)]||{};n[t(526)]="normal",delete n[t(584)],r[t(572)]=n}function j(r){var t=f;this[t(551)]=[{tryLoc:t(600)}],r.forEach(F,this),this.reset(!0)}function O(n){var e=f;if(n||""===n){var o,r=n[i];if(r)return r[e(559)](n);if(e(542)==typeof n.next)return n;if(!isNaN(n[e(575)]))return o=-1,(r=function r(){for(var t=e;++o<n[t(575)];)if(h.call(n,o))return r[t(613)]=n[o],r[t(602)]=!1,r;return r.value=s,r.done=!0,r}).next=r}throw new TypeError(_typeof(n)+e(491))}return m(C,"constructor",{value:c.prototype=d,configurable:!0}),m(d,f(480),{value:c,configurable:!0}),c[f(599)]=o(d,e,f(482)),a.isGeneratorFunction=function(r){var t=f,r=t(542)==typeof r&&r[t(480)];return!!r&&(r===c||"GeneratorFunction"===(r[t(599)]||r[t(486)]))},a.mark=function(r){var t=f;return Object[t(545)]?Object.setPrototypeOf(r,d):(r[t(534)]=d,o(r,e,t(482))),r[t(573)]=Object[t(570)](C),r},a[f(547)]=function(r){return{__await:r}},w(P[f(573)]),o(P[f(573)],n,function(){return this}),a.AsyncIterator=P,a[f(521)]=function(r,t,n,e,o){var i=f,c=(void 0===o&&(o=Promise),new P(u(r,t,n,e),o));return a[i(580)](t)?c:c[i(522)]()[i(561)](function(r){var t=i;return r[t(602)]?r.value:c[t(522)]()})},w(C),o(C,e,f(502)),o(C,i,function(){return this}),o(C,f(530),function(){return"[object Generator]"}),a[f(598)]=function(r){var t,e=f,o=Object(r),i=[];for(t in o)i[e(617)](t);return i[e(558)](),function r(){for(var t=e;i.length;){var n=i.pop();if(n in o)return r[t(613)]=n,r[t(602)]=!1,r}return r[t(602)]=!0,r}},a.values=O,j[f(573)]={constructor:j,reset:function(r){var t=f;if(this[t(529)]=0,this.next=0,this[t(604)]=this[t(532)]=s,this[t(602)]=!1,this[t(490)]=null,this[t(555)]=t(522),this[t(584)]=s,this.tryEntries[t(607)](S),!r)for(var n in this)"t"===n[t(588)](0)&&h[t(559)](this,n)&&!isNaN(+n.slice(1))&&(this[n]=s)},stop:function(){var r=f,t=(this[r(602)]=!0,this.tryEntries[0][r(572)]);if(r(554)===t[r(526)])throw t[r(584)];return this[r(512)]},dispatchException:function(e){var o=f;if(this[o(602)])throw e;var i=this;function r(r,t){var n=o;return c[n(526)]=n(554),c[n(584)]=e,i[n(522)]=r,t&&(i[n(555)]=n(522),i[n(584)]=s),!!t}for(var t=this[o(551)][o(575)]-1;0<=t;--t){var n=this[o(551)][t],c=n[o(572)];if(o(600)===n[o(496)])return r(o(592));if(n[o(496)]<=this[o(529)]){var a=h.call(n,o(528)),u=h[o(559)](n,o(518));if(a&&u){if(this[o(529)]<n[o(528)])return r(n[o(528)],!0);if(this[o(529)]<n[o(518)])return r(n[o(518)])}else if(a){if(this.prev<n[o(528)])return r(n[o(528)],!0)}else{if(!u)throw Error(o(560));if(this.prev<n[o(518)])return r(n[o(518)])}}}},abrupt:function(r,t){for(var n=f,e=this[n(551)][n(575)]-1;0<=e;--e){var o=this[n(551)][e];if(o.tryLoc<=this[n(529)]&&h[n(559)](o,n(518))&&this.prev<o[n(518)]){var i=o;break}}var c=(i=i&&(n(565)===r||n(605)===r)&&i[n(496)]<=t&&t<=i.finallyLoc?null:i)?i.completion:{};return c[n(526)]=r,c.arg=t,i?(this[n(555)]=n(522),this[n(522)]=i.finallyLoc,g):this[n(590)](c)},complete:function(r,t){var n=f;if("throw"===r.type)throw r.arg;return"break"===r[n(526)]||n(605)===r[n(526)]?this[n(522)]=r.arg:n(601)===r.type?(this.rval=this[n(584)]=r[n(584)],this[n(555)]="return",this[n(522)]=n(592)):n(552)===r[n(526)]&&t&&(this[n(522)]=t),g},finish:function(r){for(var t=f,n=this[t(551)][t(575)]-1;0<=n;--n){var e=this[t(551)][n];if(e.finallyLoc===r)return this[t(590)](e[t(572)],e[t(481)]),S(e),g}},catch:function(r){for(var t=f,n=this[t(551)][t(575)]-1;0<=n;--n){var e,o,i=this[t(551)][n];if(i[t(496)]===r)return"throw"===(e=i.completion)[t(526)]&&(o=e[t(584)],S(i)),o}throw Error(t(509))},delegateYield:function(r,t,n){var e=f;return this[e(490)]={iterator:O(r),resultName:t,nextLoc:n},e(522)===this[e(555)]&&(this.arg=s),g}},a}function asyncGeneratorStep(r,t,n,e,o,i,c){var a=_0x14cc;try{var u=r[i](c),f=u[a(613)]}catch(r){return void n(r)}u[a(602)]?t(f):Promise[a(500)](f)[a(561)](e,o)}function _asyncToGenerator(u){return function(){var r=this,a=arguments;return new Promise(function(t,n){var e=_0x14cc,o=u[e(556)](r,a);function i(r){asyncGeneratorStep(o,t,n,i,c,e(522),r)}function c(r){asyncGeneratorStep(o,t,n,i,c,e(554),r)}i(void 0)})}}(()=>{for(var r=_0x14cc,t=_0x2e20();;)try{if(997915==+parseInt(r(535))+-parseInt(r(611))/2*(parseInt(r(519))/3)+-parseInt(r(514))/4*(-parseInt(r(564))/5)+parseInt(r(487))/6*(parseInt(r(549))/7)+parseInt(r(484))/8*(parseInt(r(583))/9)+parseInt(r(538))/10+-parseInt(r(540))/11)break;t.push(t.shift())}catch(r){t.push(t.shift())}})(),Object[_0x90fc96(594)](exports,_0x90fc96(511),{value:!0}),exports.checkInputPathFun=exports[_0x90fc96(596)]=exports.confirmConverterFun=void 0;var commonConfig_1=require("../common/commonConfig"),path=require(_0x90fc96(591)),fs=require("fs"),commonUtils_1=require("../common/commonUtils"),_require=require(_0x90fc96(508)),clearResource=_require[_0x90fc96(609)];function confirmConverterFun(r,t){return _confirmConverterFun[_0x90fc96(556)](this,arguments)}function _confirmConverterFun(){var r=_0x90fc96;return(_confirmConverterFun=_asyncToGenerator(_regeneratorRuntime()[r(507)](function r(n,e){var o,i;return _regeneratorRuntime().wrap(function(r){for(var t=_0x14cc;;)switch(r[t(529)]=r.next){case 0:if(r.prev=0,o=path[t(500)](n[t(610)],t(557)),i=path.resolve(n.inputPath,"project.config.json"),fs[t(577)](i)||!fs.existsSync(o)||n[t(582)]){r.next=7;break}return r.abrupt("return",{command:t(544)});case 7:return r[t(522)]=9,doConvert(n,e);case 9:return r[t(615)](t(601),r[t(604)]);case 10:r[t(522)]=16;break;case 12:return r.prev=12,r.t0=r[t(492)](0),console[t(587)](r.t0),r[t(615)](t(601),{command:"failedTransform",errorMessage:r.t0[t(568)]});case 16:case"end":return r.stop()}},r,null,[[0,12]])})))[r(556)](this,arguments)}function confirmConverterH5Fun(r,t){var n=_0x90fc96,e=path[n(506)](r[n(524)],r[n(541)]);try{return commonUtils_1[n(485)](e,n(494),!0),commonUtils_1.copyDir(path[n(506)](__filename,n(504),n(494)),path[n(506)](e,n(494)),!1,!0),commonUtils_1[n(536)](r,path[n(506)](e,"src")),{command:n(548)}}catch(r){return console[n(587)](r),{command:"failedTransform",errorMessage:r[n(568)]}}}function checkConvertOutput(r,t){var n=_0x90fc96,r=path.resolve(r),t=path[n(500)](t);if(fs[n(577)](t))throw new Error(n(585)[n(586)](t,n(578)));if(t[n(589)](r+path[n(527)]))throw new Error("Output directory cannot be a subdirectory of the input directory.")}function doConvert(r,t){return _doConvert[_0x90fc96(556)](this,arguments)}function _doConvert(){var r=_0x90fc96;return(_doConvert=_asyncToGenerator(_regeneratorRuntime()[r(507)](function r(n,t){var e,o,i;return _regeneratorRuntime().wrap(function(r){for(var t=_0x14cc;;)switch(r[t(529)]=r[t(522)]){case 0:if(e=path.resolve(n[t(524)],t(516)),process[t(579)][t(609)]===t(606))return r[t(522)]=4,clearResource([e]);r[t(522)]=4;break;case 4:return checkConvertOutput(n[t(610)],e),o=commonConfig_1.Applets[t(488)],r[t(529)]=6,commonUtils_1[t(485)](e,o),commonUtils_1[t(503)](e,n[t(610)]),i=path[t(506)](e,o),"./"===o||""===o?(commonUtils_1[t(498)](n.inputPath,i),commonUtils_1[t(581)](n[t(610)],i)):(commonUtils_1[t(498)](path[t(506)](n[t(610)],o),i),commonUtils_1[t(581)](path[t(506)](n.inputPath,o),i),commonUtils_1.copyConfigFiles(path[t(506)](n[t(610)]),e)),commonUtils_1.transformNodeModuleComponent(),commonUtils_1[t(608)](path[t(506)](e,o),n),commonUtils_1[t(567)](path[t(506)](e)),"my"===commonConfig_1.Applets[t(501)]&&commonUtils_1[t(574)](e,path[t(506)](__filename,t(537))),r[t(615)](t(601),{command:t(548),folderUrl:e});case 18:return r[t(529)]=18,r.t0=r.catch(6),console[t(587)](r.t0),removePromise(e)[t(603)](),r[t(615)](t(601),{command:"failedTransform",errorMessage:r.t0.message});case 23:case t(592):return r[t(531)]()}},r,null,[[6,18]])})))[r(556)](this,arguments)}function removePromise(i){return new Promise(function(o,r){var n=_0x14cc;fs[n(495)](i,function(r,t){var e=n;t[e(523)]()?fs.readdir(i,function(r,t){var n=e,t=(t=t.map(function(r){return path[_0x14cc(506)](i,r)})).map(function(r){return removePromise(r)});Promise.all(t)[n(561)](function(){fs[n(525)](i,o)})}):fs.unlink(i,o)})})}function _0x2e20(){var r=["afterLoc","GeneratorFunction","pages","5480vKAjJC","createDirs","name","203598PSbvfK","srcRootPath","readFileSync","delegate"," is not iterable","catch","wrap","src","stat","tryLoc","object","setOriginPtahObject","@@toStringTag","resolve","appletType","Generator","createTransformReportFile","../lib","checkInputPathFun","join","mark","../../common/utils","illegal catch attempt","nextLoc","__esModule","rval","@@asyncIterator","2798516TGJUgq","symbol","ascf/ascf_src","isArray","finallyLoc","366swxlRi","parse","async","next","isDirectory","outPath","rmdir","type","sep","catchLoc","prev","toString","stop","_sent","confirmConverterFun","__proto__","1897233xiuETD","handleConfigInfo","../../","15698320qrttjl","Generator is already running","44009570VzUhJK","packageName","function","The iterator does not provide a '","notifyConfig","setPrototypeOf","completed","awrap","completeTransform","259PsHBQW","_invoke","tryEntries","normal","dirname","throw","method","apply","app.json","reverse","call","try statement without catch or finally","then","iterator","projectFileSuffix","5UrrSyQ","break","dispatchException","projectConfigFile","message","Applets","create","smartProgramRoot","completion","prototype","adaptApiFile","length","__await","existsSync"," is exists. Use the -c parameter to clear.","env","isGeneratorFunction","copyDir","confirmAddConfig","11628eYOffo","arg","Output path ","concat","error","charAt","startsWith","complete","path","end","hxml","defineProperty","suspendedStart","confirmConverterH5Fun","executing","keys","displayName","root","return","done","finally","sent","continue","yes","forEach","appJsonFile","clearResource","inputPath","21450YyDEQU","asyncIterator","value","suspendedYield","abrupt","resultName","push","@@iterator","iterator result is not an object","miniprogramRoot","toStringTag","constructor"];return(_0x2e20=function(){return r})()}function checkInputPathFun(r){var t=_0x90fc96,r=path[t(500)](r);return{command:"postInputPath",data:{returnCode:checkMiniProgram(r),outPath:path[t(553)](r)}}}function checkMiniProgram(r){var t=_0x90fc96,n=!0,t=path[t(506)](r,t(557));return n=fs.existsSync(t)&&identifyProgram(r)?n:!1}function identifyProgram(r){var t=_0x90fc96;try{var n=path[t(506)](r,t(557)),e=JSON[t(520)](fs[t(489)](n)[t(530)]());if(e&&e[t(483)]&&Array[t(517)](e[t(483)])&&0<e[t(483)].length)for(var o=getSrcRootPath(r),i=0,c=Object.keys(commonConfig_1[t(563)]);i<c.length;i++){var a=c[i],u=path[t(506)](r,o,e[t(483)][0]+commonConfig_1.projectFileSuffix[a][t(593)]);if(fs[t(577)](u))return"wx"===a?commonConfig_1.Applets[t(501)]="tt":commonConfig_1[t(569)][t(501)]=a,!0}return!1}catch(r){return!1}}function getSrcRootPath(r){var t=_0x90fc96;commonConfig_1[t(569)].srcRootPath="./";for(var n=0;n<commonConfig_1.configBasenameArray.length;n++){var e=commonConfig_1.configBasenameArray[n],e=path[t(506)](r,e);fs[t(577)](e)&&((e=JSON[t(520)](fs[t(489)](e)[t(530)]()))[t(620)]?commonConfig_1[t(569)][t(488)]=e[t(620)]:e[t(571)]?commonConfig_1[t(569)][t(488)]=e[t(571)]:commonConfig_1[t(569)].srcRootPath="./")}return commonConfig_1[t(569)][t(488)]}exports[_0x90fc96(533)]=confirmConverterFun,exports.confirmConverterH5Fun=confirmConverterH5Fun,exports[_0x90fc96(505)]=checkInputPathFun;
|
|
1
|
+
var _0x4bae98=_0x3a79;function _typeof(t){var e=_0x3a79;return(_typeof=e(295)==typeof Symbol&&"symbol"==typeof Symbol[e(412)]?function(t){return typeof t}:function(t){var r=e;return t&&r(295)==typeof Symbol&&t[r(417)]===Symbol&&t!==Symbol[r(285)]?r(395):typeof t})(t)}function _regeneratorRuntime(){var s=_0x3a79;_regeneratorRuntime=function(){return c};var f,c={},t=Object[s(285)],h=t.hasOwnProperty,p=Object[s(323)]||function(t,r,e){var n=s;t[r]=e[n(330)]},r=s(295)==typeof Symbol?Symbol:{},a=r[s(412)]||s(376),e=r[s(405)]||s(394),n=r[s(381)]||s(315);function o(t,r,e){return Object[s(323)](t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{o({},"")}catch(t){o=function(t,r,e){return t[r]=e}}function u(t,r,e,n){var o,a,i,c,u=s,r=r&&r[u(285)]instanceof d?r:d,r=Object[u(334)](r[u(285)]),u=new S(n||[]);return p(r,"_invoke",{value:(o=t,a=e,i=u,c=l,function(t,r){var e=_0x3a79;if(c===y)throw Error(e(367));if(c===_){if(e(304)===t)throw r;return{value:f,done:!0}}for(i[e(399)]=t,i[e(335)]=r;;){var n=i[e(375)];if(n){n=function t(r,e){var n=s,o=e.method,a=r[n(412)][o];if(a===f)return e[n(375)]=null,n(304)===o&&r[n(412)].return&&(e[n(399)]=n(355),e.arg=f,t(r,e),n(304)===e[n(399)])||n(355)!==o&&(e.method="throw",e.arg=new TypeError(n(391)+o+n(298))),g;o=m(a,r[n(412)],e[n(335)]);if(n(304)===o[n(346)])return e.method="throw",e[n(335)]=o[n(335)],e[n(375)]=null,g;a=o[n(335)];return a?a[n(314)]?(e[r.resultName]=a[n(330)],e[n(290)]=r[n(289)],"return"!==e[n(399)]&&(e[n(399)]="next",e[n(335)]=f),e[n(375)]=null,g):a:(e[n(399)]=n(304),e[n(335)]=new TypeError("iterator result is not an object"),e[n(375)]=null,g)}(n,i);if(n){if(n===g)continue;return n}}if(e(290)===i[e(399)])i.sent=i._sent=i[e(335)];else if(e(304)===i.method){if(c===l)throw c=_,i[e(335)];i.dispatchException(i[e(335)])}else e(355)===i[e(399)]&&i[e(389)](e(355),i[e(335)]);c=y;n=m(o,a,i);if(e(385)===n[e(346)]){if(c=i[e(314)]?_:v,n[e(335)]===g)continue;return{value:n.arg,done:i.done}}e(304)===n.type&&(c=_,i[e(399)]=e(304),i[e(335)]=n[e(335)])}})}),r}function m(t,r,e){var n=s;try{return{type:n(385),arg:t[n(410)](r,e)}}catch(t){return{type:n(304),arg:t}}}c.wrap=u;var l=s(377),v=s(386),y=s(418),_=s(309),g={};function d(){}function i(){}function b(){}var r={},x=(o(r,a,function(){return this}),Object[s(284)]),x=x&&x(x(O([]))),w=(x&&x!==t&&h.call(x,a)&&(r=x),b.prototype=d[s(285)]=Object[s(334)](r));function C(t){var r=s;[r(290),"throw",r(355)][r(373)](function(r){o(t,r,function(t){return this[_0x3a79(341)](r,t)})})}function P(c,u){var r,o=s;p(this,o(341),{value:function(e,n){function t(){return new u(function(t,r){!function r(t,e,n,o){var a,i=_0x3a79,t=m(c[t],c,e);if(i(304)!==t[i(346)])return(e=(a=t.arg).value)&&i(280)==_typeof(e)&&h[i(410)](e,i(345))?u.resolve(e[i(345)])[i(416)](function(t){r(i(290),t,n,o)},function(t){r(i(304),t,n,o)}):u.resolve(e)[i(416)](function(t){a.value=t,n(a)},function(t){return r(i(304),t,n,o)});o(t[i(335)])}(e,n,t,r)})}return r=r?r[o(416)](t,t):t()}})}function j(t){var r=s,e={tryLoc:t[0]};1 in t&&(e[r(356)]=t[1]),2 in t&&(e[r(300)]=t[2],e[r(340)]=t[3]),this[r(358)][r(390)](e)}function F(t){var r=s,e=t[r(365)]||{};e[r(346)]=r(385),delete e[r(335)],t[r(365)]=e}function S(t){var r=s;this[r(358)]=[{tryLoc:"root"}],t.forEach(j,this),this[r(348)](!0)}function O(e){var n=s;if(e||""===e){var o,t=e[a];if(t)return t[n(410)](e);if(n(295)==typeof e[n(290)])return e;if(!isNaN(e.length))return o=-1,(t=function t(){for(var r=n;++o<e[r(321)];)if(h[r(410)](e,o))return t.value=e[o],t[r(314)]=!1,t;return t.value=f,t.done=!0,t})[n(290)]=t}throw new TypeError(_typeof(e)+n(353))}return i[s(285)]=b,p(w,s(417),{value:b,configurable:!0}),p(b,s(417),{value:i,configurable:!0}),i[s(400)]=o(b,n,s(362)),c[s(329)]=function(t){var r=s,t=r(295)==typeof t&&t[r(417)];return!!t&&(t===i||r(362)===(t.displayName||t[r(347)]))},c[s(293)]=function(t){var r=s;return Object[r(363)]?Object[r(363)](t,b):(t[r(374)]=b,o(t,n,r(362))),t[r(285)]=Object.create(w),t},c[s(292)]=function(t){return{__await:t}},C(P[s(285)]),o(P.prototype,e,function(){return this}),c.AsyncIterator=P,c[s(360)]=function(t,r,e,n,o){var a=s,i=(void 0===o&&(o=Promise),new P(u(t,r,e,n),o));return c.isGeneratorFunction(r)?i:i[a(290)]().then(function(t){var r=a;return t[r(314)]?t[r(330)]:i[r(290)]()})},C(w),o(w,n,s(388)),o(w,a,function(){return this}),o(w,s(307),function(){return s(369)}),c[s(413)]=function(t){var r,n=s,o=Object(t),a=[];for(r in o)a[n(390)](r);return a[n(305)](),function t(){for(var r=n;a.length;){var e=a[r(403)]();if(e in o)return t[r(330)]=e,t[r(314)]=!1,t}return t[r(314)]=!0,t}},c[s(294)]=O,S[s(285)]={constructor:S,reset:function(t){var r=s;if(this[r(338)]=0,this[r(290)]=0,this[r(279)]=this[r(291)]=f,this.done=!1,this.delegate=null,this[r(399)]=r(290),this[r(335)]=f,this.tryEntries[r(373)](F),!t)for(var e in this)"t"===e.charAt(0)&&h[r(410)](this,e)&&!isNaN(+e.slice(1))&&(this[e]=f)},stop:function(){var t=s,r=(this.done=!0,this[t(358)][0][t(365)]);if("throw"===r[t(346)])throw r[t(335)];return this.rval},dispatchException:function(n){var o=s;if(this[o(314)])throw n;var a=this;function t(t,r){var e=o;return i[e(346)]="throw",i[e(335)]=n,a.next=t,r&&(a[e(399)]=e(290),a[e(335)]=f),!!r}for(var r=this[o(358)].length-1;0<=r;--r){var e=this[o(358)][r],i=e[o(365)];if("root"===e.tryLoc)return t(o(283));if(e.tryLoc<=this[o(338)]){var c=h.call(e,"catchLoc"),u=h[o(410)](e,o(300));if(c&&u){if(this.prev<e[o(356)])return t(e[o(356)],!0);if(this[o(338)]<e.finallyLoc)return t(e[o(300)])}else if(c){if(this[o(338)]<e[o(356)])return t(e[o(356)],!0)}else{if(!u)throw Error(o(392));if(this.prev<e[o(300)])return t(e.finallyLoc)}}}},abrupt:function(t,r){for(var e=s,n=this[e(358)][e(321)]-1;0<=n;--n){var o=this[e(358)][n];if(o[e(324)]<=this[e(338)]&&h.call(o,"finallyLoc")&&this[e(338)]<o[e(300)]){var a=o;break}}var i=(a=a&&("break"===t||e(344)===t)&&a[e(324)]<=r&&r<=a.finallyLoc?null:a)?a.completion:{};return i[e(346)]=t,i[e(335)]=r,a?(this[e(399)]=e(290),this.next=a.finallyLoc,g):this[e(342)](i)},complete:function(t,r){var e=s;if(e(304)===t[e(346)])throw t.arg;return"break"===t.type||e(344)===t.type?this[e(290)]=t.arg:"return"===t.type?(this[e(393)]=this[e(335)]=t[e(335)],this[e(399)]=e(355),this[e(290)]="end"):e(385)===t[e(346)]&&r&&(this.next=r),g},finish:function(t){for(var r=s,e=this[r(358)].length-1;0<=e;--e){var n=this[r(358)][e];if(n[r(300)]===t)return this[r(342)](n[r(365)],n[r(340)]),F(n),g}},catch:function(t){for(var r=s,e=this[r(358)].length-1;0<=e;--e){var n,o,a=this[r(358)][e];if(a.tryLoc===t)return"throw"===(n=a[r(365)])[r(346)]&&(o=n[r(335)],F(a)),o}throw Error(r(286))},delegateYield:function(t,r,e){var n=s;return this[n(375)]={iterator:O(t),resultName:r,nextLoc:e},"next"===this.method&&(this[n(335)]=f),g}},c}function asyncGeneratorStep(t,r,e,n,o,a,i){var c=_0x3a79;try{var u=t[a](i),s=u[c(330)]}catch(t){return void e(t)}u.done?r(s):Promise.resolve(s)[c(416)](n,o)}function _0x3a79(t,r){var e=_0x720e();return(_0x3a79=function(t,r){return e[t-=279]})(t,r)}function _0x720e(){var t=["then","constructor","executing","createDirs","notifyConfig","setOriginPtahObject","sent","object","env","ascf/ascf_src","end","getPrototypeOf","prototype","illegal catch attempt","4917561ZnAdaw","yes","nextLoc","next","_sent","awrap","mark","values","function","../common/commonConfig","../lib","' method","projectFileSuffix","finallyLoc","confirmConverterH5Fun","checkInputPathFun","packageName","throw","reverse","3142089jbQbVm","toString","1220ysJpbY","completed","../../","path","sep","readdir","done","@@toStringTag","parse","apply","app.json","postInputPath","miniprogramRoot","length","copyConfigFiles","defineProperty","tryLoc","handleConfigInfo","pages","Output path ","outPath","isGeneratorFunction","value","srcRootPath","confirmConverterFun","56mduTjA","create","arg","configBasenameArray","isArray","prev","dirname","afterLoc","_invoke","complete","appletType","continue","__await","type","name","reset","2493484utOBIA","project.config.json","stop","Output directory cannot be a subdirectory of the input directory."," is not iterable","map","return","catchLoc","failedTransform","tryEntries","copyDir","async","25640NJWVxG","GeneratorFunction","setPrototypeOf","inputPath","completion","error","Generator is already running","clearResource","[object Generator]","1003573nuaXXK","rmdir","4097790drKEGs","forEach","__proto__","delegate","@@iterator","suspendedStart","isDirectory","existsSync","unlink","toStringTag","completeTransform","readFileSync","transformNodeModuleComponent","normal","suspendedYield","3155918sGMgaB","Generator","abrupt","push","The iterator does not provide a '","try statement without catch or finally","rval","@@asyncIterator","symbol","smartProgramRoot","finally","resolve","method","displayName","wrap","Applets","pop","message","asyncIterator","join","confirmAddConfig","catch","startsWith","call","src","iterator","keys","createTransformReportFile","appJsonFile"];return(_0x720e=function(){return t})()}function _asyncToGenerator(u){return function(){var t=this,c=arguments;return new Promise(function(r,e){var n=_0x3a79,o=u[n(317)](t,c);function a(t){asyncGeneratorStep(o,r,e,a,i,n(290),t)}function i(t){asyncGeneratorStep(o,r,e,a,i,n(304),t)}a(void 0)})}}(()=>{for(var t=_0x3a79,r=_0x720e();;)try{if(854183==-parseInt(t(370))+parseInt(t(387))/2+-parseInt(t(287))/3+-parseInt(t(361))/4*(parseInt(t(308))/5)+parseInt(t(372))/6+parseInt(t(349))/7+-parseInt(t(333))/8*(-parseInt(t(306))/9))break;r.push(r.shift())}catch(t){r.push(r.shift())}})(),Object[_0x4bae98(323)](exports,"__esModule",{value:!0}),exports.checkInputPathFun=exports.confirmConverterH5Fun=exports.confirmConverterFun=void 0;var commonConfig_1=require(_0x4bae98(296)),path=require(_0x4bae98(311)),fs=require("fs"),commonUtils_1=require("../common/commonUtils"),_require=require("../../common/utils"),clearResource=_require[_0x4bae98(368)];function confirmConverterFun(t,r){return _confirmConverterFun[_0x4bae98(317)](this,arguments)}function _confirmConverterFun(){return(_confirmConverterFun=_asyncToGenerator(_regeneratorRuntime().mark(function t(e,n){var o,a;return _regeneratorRuntime().wrap(function(t){for(var r=_0x3a79;;)switch(t[r(338)]=t[r(290)]){case 0:if(t[r(338)]=0,o=path[r(398)](e[r(364)],r(318)),a=path[r(398)](e.inputPath,r(350)),fs.existsSync(a)||!fs.existsSync(o)||e[r(407)]){t[r(290)]=7;break}return t[r(389)](r(355),{command:r(420)});case 7:return t[r(290)]=9,doConvert(e,n);case 9:return t[r(389)](r(355),t[r(279)]);case 10:t[r(290)]=16;break;case 12:return t[r(338)]=12,t.t0=t.catch(0),console[r(366)](t.t0),t.abrupt(r(355),{command:r(357),errorMessage:t.t0[r(404)]});case 16:case r(283):return t[r(351)]()}},t,null,[[0,12]])}))).apply(this,arguments)}function confirmConverterH5Fun(t,r){var e=_0x4bae98,n=path[e(406)](t[e(328)],t[e(303)]);try{return commonUtils_1[e(419)](n,e(411),!0),commonUtils_1[e(359)](path[e(406)](__filename,e(297),"src"),path[e(406)](n,e(411)),!1,!0),commonUtils_1[e(325)](t,path[e(406)](n,e(411))),{command:e(382)}}catch(t){return console[e(366)](t),{command:e(357),errorMessage:t[e(404)]}}}function checkConvertOutput(t,r){var e=_0x4bae98,t=path[e(398)](t),r=path.resolve(r);if(fs[e(379)](r))throw new Error(e(327).concat(r," is exists. Use the -c parameter to clear."));if(r[e(409)](t+path[e(312)]))throw new Error(e(352))}function doConvert(t,r){return _doConvert.apply(this,arguments)}function _doConvert(){var c=_0x4bae98;return(_doConvert=_asyncToGenerator(_regeneratorRuntime()[c(293)](function t(e,r){var n,o,a,i=c;return _regeneratorRuntime()[i(401)](function(t){for(var r=i;;)switch(t[r(338)]=t[r(290)]){case 0:if(n=path.resolve(e[r(328)],r(282)),process[r(281)][r(368)]===r(288))return t[r(290)]=4,clearResource([n]);t[r(290)]=4;break;case 4:return checkConvertOutput(e[r(364)],n),o=commonConfig_1[r(402)][r(331)],t[r(338)]=6,commonUtils_1[r(419)](n,o),commonUtils_1[r(414)](n,e.inputPath),a=path[r(406)](n,o),"./"===o||""===o?(commonUtils_1[r(421)](e[r(364)],a),commonUtils_1[r(359)](e.inputPath,a)):(commonUtils_1[r(421)](path[r(406)](e[r(364)],o),a),commonUtils_1.copyDir(path[r(406)](e[r(364)],o),a),commonUtils_1[r(322)](path[r(406)](e[r(364)]),n)),commonUtils_1[r(384)](),commonUtils_1[r(415)](path[r(406)](n,o),e),commonUtils_1.projectConfigFile(path[r(406)](n)),"my"===commonConfig_1[r(402)][r(343)]&&commonUtils_1.adaptApiFile(n,path[r(406)](__filename,r(310))),t[r(389)](r(355),{command:r(382),folderUrl:n});case 18:return t.prev=18,t.t0=t[r(408)](6),console[r(366)](t.t0),removePromise(n)[r(397)](),t.abrupt("return",{command:r(357),errorMessage:t.t0[r(404)]});case 23:case r(283):return t.stop()}},t,null,[[6,18]])}))).apply(this,arguments)}function removePromise(a){return new Promise(function(o,t){fs.stat(a,function(t,r){var n=_0x3a79;r[n(378)]()?fs[n(313)](a,function(t,r){var e=n,r=(r=r[e(354)](function(t){return path[e(406)](a,t)}))[e(354)](function(t){return removePromise(t)});Promise.all(r)[e(416)](function(){fs[e(371)](a,o)})}):fs[n(380)](a,o)})})}function checkInputPathFun(t){var r=_0x4bae98,t=path[r(398)](t),e=checkMiniProgram(t);return{command:r(319),data:{returnCode:e,outPath:path[r(339)](t)}}}function checkMiniProgram(t){var r=_0x4bae98,e=!0,n=path[r(406)](t,r(318));return e=fs[r(379)](n)&&identifyProgram(t)?e:!1}function identifyProgram(t){var r=_0x4bae98;try{var e=path[r(406)](t,"app.json"),n=JSON[r(316)](fs[r(383)](e)[r(307)]());if(n&&n[r(326)]&&Array[r(337)](n[r(326)])&&0<n.pages.length)for(var o=getSrcRootPath(t),a=0,i=Object[r(413)](commonConfig_1[r(299)]);a<i[r(321)];a++){var c=i[a],u=path[r(406)](t,o,n.pages[0]+commonConfig_1.projectFileSuffix[c].hxml);if(fs.existsSync(u))return commonConfig_1[r(402)][r(343)]="wx"===c?"tt":c,!0}return!1}catch(t){return!1}}function getSrcRootPath(t){var r=_0x4bae98;commonConfig_1[r(402)][r(331)]="./";for(var e=0;e<commonConfig_1[r(336)][r(321)];e++){var n=commonConfig_1.configBasenameArray[e],n=path.join(t,n);fs[r(379)](n)&&((n=JSON[r(316)](fs.readFileSync(n)[r(307)]())).miniprogramRoot?commonConfig_1.Applets.srcRootPath=n[r(320)]:n[r(396)]?commonConfig_1[r(402)][r(331)]=n[r(396)]:commonConfig_1[r(402)][r(331)]="./")}return commonConfig_1[r(402)][r(331)]}exports[_0x4bae98(332)]=confirmConverterFun,exports[_0x4bae98(301)]=confirmConverterH5Fun,exports[_0x4bae98(302)]=checkInputPathFun;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5905(e,a){var t=_0x34e6();return(_0x5905=function(e,a){return t[e-=414]})(e,a)}var globalDistanceCount,globalJsLine,_0x3baba6=_0x5905,path=((()=>{for(var e=_0x5905,a=_0x34e6();;)try{if(390505==-parseInt(e(426))*(parseInt(e(453))/2)+parseInt(e(475))/3+parseInt(e(454))/4+parseInt(e(440))/5*(-parseInt(e(470))/6)+-parseInt(e(431))/7*(-parseInt(e(428))/8)+parseInt(e(477))/9+-parseInt(e(429))/10)break;a.push(a.shift())}catch(e){a.push(a.shift())}})(),Object.defineProperty(exports,_0x3baba6(434),{value:!0}),exports[_0x3baba6(479)]=exports[_0x3baba6(446)]=exports[_0x3baba6(469)]=exports[_0x3baba6(462)]=exports[_0x3baba6(415)]=void 0,require("path")),fs=require("fs"),_require=require("../common/textDocument"),create=_require[_0x3baba6(420)],fileHandle_1=require(_0x3baba6(448)),commonConfig_1=require(_0x3baba6(467)),commonUtils_1=require(_0x3baba6(427)),importVisitor_1=require(_0x3baba6(465)),wxssParser_1=require(_0x3baba6(447)),commonConfig_2=require("../common/commonConfig"),TransformReport=require(_0x3baba6(452)),parse5=require(_0x3baba6(436)),_require2=require("../../common/config"),configs=_require2[_0x3baba6(441)],insertedApiObj={},insertedApiCountObj={},excessOffsets={},DEST_API_NAME="has",DEST_API_LEN=DEST_API_NAME[_0x3baba6(459)];function handleWxssImport(e,t,n){var r=_0x3baba6,o=commonConfig_1[r(476)][n],e=create(e,t),e=(t=e.getText(),wxssParser_1[r(437)](t,e,o[r(414)],n)),s=0;return e[r(416)](function(e){var a=r;e[a(433)]===a(423)?(t=commonUtils_1[a(466)](t,e[a(456)]-o[a(414)][a(459)]-s,e[a(456)]-s,a(473)),s+=o[a(414)][a(459)]-4):(t=commonUtils_1[a(466)](t,e[a(461)]-s,e[a(461)]+n.length+1-s,""),s+=n[a(459)]+1)}),t}function handleWxmlFile(e,a,t,n){var r=_0x3baba6,a=create(e,a),a=parse5[r(464)](a[r(442)](),{}),e={filePath:e,srcPath:t,appType:n,utils:{commonConfig:commonConfig_1,importVisitor:importVisitor_1,textDocument:{create:create},fileHandle:fileHandle_1}};return parse5[r(485)](a,{convertOptions:e})}function transformWxSchemas(e,a,t){var n=_0x3baba6,r=e[n(483)][n(438)],a=a[n(432)]({line:r[n(451)]-1,character:r[n(455)]+1});return t=commonUtils_1[n(466)](t,a+globalDistanceCount,a+e[n(481)].length+globalDistanceCount,n(478)),globalDistanceCount-=e[n(481)].length-4,t}function transformWxmlWxsFilePath(e,a,t){var n=_0x3baba6,r=e[n(483)][n(438)],a=a[n(432)]({line:r[n(451)]-1,character:r.character});return t=commonUtils_1.replacepos(t,a+globalDistanceCount,a+globalDistanceCount+e[n(481)][n(459)]-1,4===e[n(481)].length?n(425):n(424))}function transformWxsFilePath(e,s,i,c,a){var l=_0x3baba6,m=0,f=commonConfig_1[l(476)][a];return e[l(416)](function(e){var a=l;if(path[a(439)](e[a(481)])===f.hjs){var t=e.module,n=e[a(483)][a(438)],n=s[a(432)]({line:n[a(451)]-1,character:n[a(455)]-1})+m,r=e[a(481)][a(460)](0,e[a(481)][a(459)]-(f[a(425)][a(459)]-1))+a(425);if(t&&!t[a(449)]("./")&&!t[a(449)](a(430))){var o=path.join(c,"..",t);if(!path[a(439)](o))return;fs[a(482)](o)&&(o=".",t[a(449)]("/")?m+=1:(o="./",m+=2),r=o+r)}i=commonUtils_1[a(466)](i,n,n+e[a(481)][a(459)],r)}}),i}function calProcessedApis(e,a){e[a]?e[a]++:e[a]=1}function notDealtWith(e,a){var t=_0x3baba6;return-1!==commonConfig_2.invalidApis[t(457)](e[t(421)])&&!(-1!==Object.keys(insertedApiObj)[t(457)](a)&&insertedApiObj[a]===e[t(421)])}function insertTodoInline(e,a,t,n){var r=_0x3baba6,o=1,n=r(468).concat(commonUtils_1[r(445)](r(444)),r(480)).concat(DEST_API_NAME,".")[r(417)](n[r(421)],r(472)),r=(1===insertedApiCountObj[a]&&(o=0,n+="\n",globalJsLine++),t+globalDistanceCount-excessOffsets[a]-o);return e=commonUtils_1.insertStr(e,r,n),globalDistanceCount+=n.length,e}function transformWxInterface(e,a,t,n){var r=_0x3baba6,o=e.moduleRange[r(438)],s=a.uri()+"-"+o.line,i=a.offsetAt({line:o[r(451)]-1,character:o.character}),c=i+globalDistanceCount;return t=commonUtils_1[r(466)](t,c,c+n[r(459)],DEST_API_NAME),globalDistanceCount+=DEST_API_LEN-n[r(459)],calProcessedApis(excessOffsets,s),commonConfig_2[r(422)][e[r(421)]]?(c=i+globalDistanceCount+n[r(459)]+1,t=commonUtils_1[r(466)](t,c,c+e.property[r(459)],commonConfig_2[r(422)][e[r(421)]]),i=e[r(421)][r(459)]-commonConfig_2.interfacesForTransform[e[r(421)]].length,globalDistanceCount-=i,excessOffsets[s]-=i):notDealtWith(e,s)&&(calProcessedApis(insertedApiCountObj,s),n=a[r(432)]({line:o[r(451)]-1,character:0}),c=o.line,configs[r(450)]||(t=insertTodoInline(t,s,n,e)),i=a[r(471)]()+r(443)+(c+globalJsLine)+r(463)+o.character+"}",TransformReport[r(458)]("".concat(commonUtils_1[r(445)](r(444)),r(480))[r(417)](DEST_API_NAME,".")[r(417)](e[r(421)]),i),insertedApiObj[s]=e[r(421)]),t}function transformJsFile(e,t,n,r){var o=_0x3baba6,s=create(e,n),e=(n=s[o(442)](),importVisitor_1[o(435)](n,null,null,r));return globalJsLine=globalDistanceCount=0,e[o(416)](function(e){var a=o;switch(e[a(433)]){case"fileImport":n=transformJsPath(e,t,n,s);break;case a(419):n=transformWxInterface(e,s,n,r);break;case"filePath":n=transformWxmlWxsFilePath(e,s,n);break;case"wxSchema":n=transformWxSchemas(e,s,n);break;case"mixins":n=transformComponentMixins(e,s,n)}}),n}function transformComponentMixins(e,a,t){var n=_0x3baba6,r=e[n(483)][n(438)],a=a.offsetAt({line:r[n(451)]-1,character:r[n(455)]});return t=commonUtils_1[n(466)](t,a+globalDistanceCount,a+e[n(481)][n(459)]+globalDistanceCount,"behaviors"),globalDistanceCount-=e[n(481)].length-9,t}function _0x34e6(){var e=["length","substring","startOffset","handleWxmlFile",',"column":',"parseFragment","../parse/importVisitor","replacepos","../common/commonConfig","// ","transformWxsFilePath","15204kaEzvD","uri"," TODO",".css",".js","1077219PMzCsw","projectFileSuffix","1245429uBAaic","has:","transformJsPath","api ","module","existsSync","moduleRange","insertStr","serialize","css","handleWxssImport","forEach","concat","join","wxInterface","create","property","interfacesForTransform","import","hxml","hjs","2543foXFSx","../common/commonUtils","318632KgfBhT","7402120xjUYLA","../","77GMXVMA","offsetAt","type","__esModule","getImportRules","../compiler-utils/parse5.bundle","wxssParser","start","extname","535xIKiYB","configs","getText",' {"line":',"notSupport","setLanguage","transformJsFile","../parse/wxssParser","../features/fileHandle","startsWith","notaddtodo","line","./transformReport","94ipIuwA","2343212hFJnSo","character","endOffset","indexOf","writeInfo"];return(_0x34e6=function(){return e})()}function transformJsPath(e,a,t,n){var r=_0x3baba6,o=e[r(481)];return!o||o[r(449)]("./")||o[r(449)](r(430))||(a=path[r(418)](a,"..",o),path.extname(a)||(a+=r(474)),fs[r(482)](a)&&(a=e[r(483)][r(438)],e=n[r(432)]({line:a[r(451)]-1,character:a[r(455)]-1})+globalDistanceCount,n=".",o[r(449)]("/")?globalDistanceCount+=1:(n="./",globalDistanceCount+=2),t=commonUtils_1[r(484)](t,e,n))),t}exports[_0x3baba6(415)]=handleWxssImport,exports.handleWxmlFile=handleWxmlFile,exports[_0x3baba6(469)]=transformWxsFilePath,exports[_0x3baba6(446)]=transformJsFile,exports[_0x3baba6(479)]=transformJsPath;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x554325=_0x75e5,commonUtils_1=((()=>{for(var t=_0x75e5,e=_0xae2c();;)try{if(214772==-parseInt(t(486))*(parseInt(t(481))/2)+parseInt(t(484))/3*(parseInt(t(487))/4)+-parseInt(t(478))/5*(-parseInt(t(477))/6)+-parseInt(t(467))/7+parseInt(t(473))/8*(-parseInt(t(489))/9)+-parseInt(t(471))/10*(parseInt(t(485))/11)+-parseInt(t(483))/12*(-parseInt(t(480))/13))break;e.push(e.shift())}catch(t){e.push(e.shift())}})(),Object[_0x554325(488)](exports,"__esModule",{value:!0}),exports[_0x554325(469)]=exports[_0x554325(475)]=void 0,require(_0x554325(472))),fs=require("fs");function writeInfo(t,e){var n=_0x554325;write(["Error: ",t,"\n",commonUtils_1.setLanguage("position"),e,"\n\n\n"][n(474)](""))}function _0x75e5(t,e){var n=_0xae2c();return(_0x75e5=function(t,e){return n[t-=467]})(t,e)}function insertInfo(t){var e=_0x554325,n=fs[e(479)](commonUtils_1[e(476)]())[e(470)]();fs.writeFileSync(commonUtils_1[e(476)](),t),write(n)}function write(t){t&&fs[_0x554325(482)](commonUtils_1.getGlobleOutPutPath(),t,function(t){if(t)throw t})}function _0xae2c(){var t=["132ShLbUH","10593UxoBkQ","1707299JsFHaX","51089okusHX","372USghhM","defineProperty","9tAdBmc","887271lmDogH","write","insertInfo","toString","10ELRMcO","../common/commonUtils","834760zJatZE","join","writeInfo","getGlobleOutPutPath","6eYCtGW","1526015mLhDpc","readFileSync","384228PbOKQh","14pgqODa","appendFile"];return(_0xae2c=function(){return t})()}exports[_0x554325(475)]=writeInfo,exports[_0x554325(469)]=insertInfo,exports[_0x554325(468)]=write;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _typeof(a){var t=
|
|
1
|
+
function _typeof(a){var t=_0x1a02;return(_typeof=t(240)==typeof Symbol&&t(258)==typeof Symbol[t(236)]?function(a){return typeof a}:function(a){var e=t;return a&&"function"==typeof Symbol&&a[e(260)]===Symbol&&a!==Symbol[e(273)]?"symbol":typeof a})(a)}function _0x1a02(a,e){var t=_0x5d7e();return(_0x1a02=function(a,e){return t[a-=235]})(a,e)}function _defineProperty(a,e,t){var r=_0x1a02;return(e=_toPropertyKey(e))in a?Object[r(293)](a,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):a[e]=t,a}function _toPropertyKey(a){var e=_0x1a02,a=_toPrimitive(a,e(287));return e(258)==_typeof(a)?a:a+""}function _0x5d7e(){var a=["saveFile","filePath","toFixed","setScreenBrightness","isArray","setStorageSync","defaultImgVuality","compressImage","default","apFilePath","3600056TwyIxQ","42824472dRfTZj","returnVal","data","symbol","clearStorageSync","constructor","getScreenBrightness","name","brightness","3831312plqfSO","call","7209405YkRgSk","forEach","getSavedFileInfo","object","apiName","scanCode","apFilePaths","prototype","itemList","uploadFile","saveImageToPhotosAlbum","showActionSheet","title","index","concat","28BOlnVA","getClipboardData","push","removeStorageSync","1846897TfsvUV","success","string","sort","params","8678194odXTpE","onlyFromCamera","phoneNumber","defineProperty","chooseImage","__apiAdapterConverted","showToast","makePhoneCall","downloadFile","callBack","keys","code","length","iterator","src","eventName","level","function","quality","55563jNpjuW","tempFilePath"];return(_0x5d7e=function(){return a})()}function _toPrimitive(a,e){var t=_0x1a02;if(t(269)!=_typeof(a)||!a)return a;var r=a[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(a);r=r[t(265)](a,e||t(252));if(t(269)!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{for(var a=_0x1a02,e=_0x5d7e();;)try{if(995090==-parseInt(a(285))+-parseInt(a(254))/2+parseInt(a(242))/3*(parseInt(a(281))/4)+-parseInt(a(266))/5+-parseInt(a(264))/6+parseInt(a(290))/7+parseInt(a(255))/8)break;e.push(e.shift())}catch(a){e.push(e.shift())}})(),(()=>{var a,e,m,n=_0x1a02;function i(e,t){var a=n;e&&Object[a(300)](e)[a(267)](function(a){t[a]&&(t[e[a]]=t[a],delete t[a])})}has.__apiAdapterConverted||(has[n(295)]=!0,a=[{apiName:n(294),callBack:[{eventName:n(286),params:{tempFilePaths:n(272)}}]},{apiName:n(244),params:{apFilePath:n(243)},callBack:[{eventName:n(286),params:{savedFilePath:n(253)}}]},{apiName:"getFileInfo",params:{apFilePath:"filePath"}},{apiName:n(268),params:{apFilePath:"filePath"}},{apiName:"removeSavedFile",params:{apFilePath:n(245)}},{apiName:"setClipboardData",params:{text:n(257)}},{apiName:n(282),callBack:[{eventName:n(286),params:{data:"text"}}]},{apiName:n(276),params:{url:n(245)}},{apiName:"showLoading",params:{content:n(278)}},{apiName:n(277),params:{items:n(274)},callBack:[{eventName:n(286),params:{tapIndex:n(279)}}]},{apiName:n(275),params:{fileName:n(262)}},{apiName:n(247),params:{brightness:"value"}},{apiName:n(261),callBack:[{eventName:"success",params:{value:n(263)}}]},{apiName:n(271),params:{hideAlbum:n(291)},callBack:[{eventName:n(286),params:{result:n(301)}}]},{apiName:n(297),params:{number:n(292)}},{apiName:n(296),params:{content:n(278)}},{apiName:n(298),callBack:[{eventName:n(286),params:{tempFilePath:n(253)}}]}],e=[{apiName:"getStorageSync",params:{key:1},returnVal:n(257)},{apiName:n(249),params:{key:1,data:2}},{apiName:n(284),params:{key:1}},{apiName:n(259)}],m={},a[n(280)](e).forEach(function(a){a=a.apiName;m[a]=has[a]}),a[n(267)](function(e){var t=n,r=e[t(270)];has[r]=function(){var a=t,n=0<arguments[a(235)]&&void 0!==arguments[0]?arguments[0]:{};return i(e.params,n),e[a(299)]&&e[a(299)].forEach(function(e){var t=a,r=n[e[t(238)]];n[e[t(238)]]=function(a){i(e[t(289)],a),r(a)}}),m[r](n)}}),e[n(267)](function(e){var o=n,p=e[o(270)];has[p]=function(){var t=o,r=0<arguments[t(235)]&&void 0!==arguments[0]?arguments[0]:{},n=[],i=e.params&&Object[t(300)](e[t(289)])||[],a=(i[t(288)](function(a,e){return i[a]-i[e]}),i[t(267)](function(a){var e=t;r[a]&&n[e(283)](r[a])}),m[p].apply(m,n));return e[t(256)]?_defineProperty({},e.returnVal,a):{}}}),m[n(251)]=has[n(251)],has.compressImage=function(){var t=n,a=0<arguments[t(235)]&&void 0!==arguments[0]?arguments[0]:{},e=(a[t(237)]=Array[t(248)](a[t(272)])?a[t(272)][0]:"",Number(a[t(239)])),r=(e<=3?a[t(241)]=(100/3*e)[t(246)](0):a[t(250)]=80,a[t(241)]=Number(a.quality),a[t(286)]);return a[t(286)]=function(a){var e=t;a[e(272)]=[a[e(243)]],r(a)},m.compressImage(a)})})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x22732f=_0x47a9;function _0x41c8(){var r=["11gxjJwM","1504mBiDos","2409304cqLqSD","substring","9GCyhzu","4713jrkato","1002798aNkFBD","length","1460991aqYGXk","30LmCuQC","1141705wSvGAG","defineProperty","parse","4841828IejHcO","classProperties","15505010XoPxKA","__esModule","babelTransform"];return(_0x41c8=function(){return r})()}(()=>{for(var r=_0x47a9,e=_0x41c8();;)try{if(609991==+parseInt(r(275))+-parseInt(r(270))/2*(-parseInt(r(274))/3)+parseInt(r(264))/4+-parseInt(r(261))/5*(parseInt(r(260))/6)+parseInt(r(259))/7+-parseInt(r(271))/8*(parseInt(r(273))/9)+-parseInt(r(266))/10*(parseInt(r(269))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}})(),Object[_0x22732f(262)](exports,_0x22732f(267),{value:!0}),exports[_0x22732f(268)]=void 0;var babelParser=require("@babel/parser"),parseTryCount=0;function _0x47a9(r,e){var a=_0x41c8();return(_0x47a9=function(r,e){return a[r-=259]})(r,e)}function babelTransform(e,a){var n=_0x22732f;try{var t=babelParser[n(263)](e,{sourceType:"unambiguous",allowReturnOutsideFunction:!0,plugins:[n(265)]});return parseTryCount=0,t}catch(r){if(a){if(0===parseTryCount)return t=e[n(272)](0,a-1)+e[n(272)](a,e[n(276)]),parseTryCount++,babelTransform(t,a);if(parseTryCount<3)return t=e[n(272)](0,a)+","+e.substring(a,e[n(276)]),parseTryCount++,babelTransform(t,a);parseTryCount=0}return null}}exports.babelTransform=babelTransform;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x16d8be=_0x53e3;function _0x1a3d(){var e=["fileImport","@babel/core","CallExpression","properties","push","6478104TFpJQJ","splice","concat","length","name","getImportRules","50uiHsnD","loc","value","6876agUGsu","mixins","key","projectFileSuffix","end","start","isIdentifier","946100LbIigp","findParent","callee","../common/commonConfig","line","ImportDeclaration","source","column","17349yiRRYp","10078740WUttqk","hjs","property","4182570EBMNcI","arguments","getStatementParent","path","://","836542HvTXVs","wxInterface","extname","require","forEach","12xzMIkW","2130nxxyuE","object","StringLiteral","./babelParser","MemberExpression","node","isObjectExpression","Identifier","getOwnBinding","hxml","@babel/traverse","babelTransform"];return(_0x1a3d=function(){return e})()}(()=>{for(var e=_0x53e3,r=_0x1a3d();;)try{if(608985==-parseInt(e(338))+-parseInt(e(328))/2*(parseInt(e(346))/3)+-parseInt(e(331))/4*(-parseInt(e(361))/5)+parseInt(e(360))/6*(parseInt(e(355))/7)+-parseInt(e(322))/8+parseInt(e(347))/9+parseInt(e(350))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}})(),Object.defineProperty(exports,"__esModule",{value:!0}),exports[_0x16d8be(327)]=void 0;var babelParser_1=require(_0x16d8be(364)),babel_traverse_1=require(_0x16d8be(315)),pathTool=require(_0x16d8be(353)),commonConfig_1=require(_0x16d8be(341)),babelTypes=require(_0x16d8be(318)).types;function _0x53e3(e,r){var t=_0x1a3d();return(_0x53e3=function(e,r){return t[e-=315]})(e,r)}function getQaSchemasReg(e){var r=_0x16d8be;return new RegExp("^"[r(324)](e,r(354)))}var currentType,suffixs,importRules=[],visitor={ImportDeclaration:function(e){var r=_0x16d8be;importRules[r(321)]({type:r(317),module:e[r(366)][r(344)][r(330)],moduleRange:{start:{line:e.node[r(344)][r(329)].start[r(342)],character:e[r(366)][r(344)][r(329)].start.column+2},end:{line:e.node[r(344)][r(329)][r(335)][r(342)],character:e[r(366)].source.loc.end[r(345)]+2}}})},CallExpression:function(e){var t=_0x16d8be;e[t(366)][t(340)]&&e[t(366)][t(351)]&&e[t(366)][t(340)][t(326)]===t(358)&&1===e.node[t(351)][t(325)]&&importRules[t(321)]({type:"fileImport",module:e.node[t(351)][0][t(330)],moduleRange:{start:{line:e.node[t(351)][0][t(329)][t(336)][t(342)],character:e.node[t(351)][0][t(329)][t(336)][t(345)]+2},end:{line:e[t(366)].arguments[0][t(329)].end[t(342)],character:e[t(366)][t(351)][0][t(329)][t(335)][t(345)]+2}}}),e[t(366)][t(340)]&&e[t(366)].arguments&&"Component"===e[t(366)].callee[t(326)]&&1===e[t(366)][t(351)][t(325)]&&babelTypes[t(367)](e[t(366)][t(351)][0])&&e[t(366)][t(351)][0][t(320)]&&0<e[t(366)][t(351)][0][t(320)][t(325)]&&e[t(366)][t(351)][0][t(320)][t(359)](function(e){var r=t;babelTypes.isObjectProperty(e)&&babelTypes[r(337)](e.key)&&e[r(333)].name===r(332)&&importRules[r(321)]({type:r(332),module:e[r(333)].name,moduleRange:{start:{line:e.loc[r(336)][r(342)],character:e[r(329)][r(336)][r(345)]},end:{line:e[r(333)][r(329)][r(335)][r(342)],character:e[r(333)].loc[r(335)][r(345)]}}})})},MemberExpression:function(e){var r=_0x16d8be;e[r(366)].object&&e[r(366)][r(349)]&&e.node.object[r(326)]===currentType&&!hasParent(e,e.node.object[r(326)])&&importRules[r(321)]({type:"wxInterface",module:e[r(366)][r(362)][r(326)],moduleRange:{start:{line:e.node[r(362)][r(329)].start[r(342)],character:e.node[r(362)][r(329)][r(336)][r(345)]},end:{line:e.node.object[r(329)][r(335)][r(342)],character:e[r(366)][r(362)][r(329)][r(335)][r(345)]}},property:e[r(366)][r(349)][r(326)]})},Identifier:function(e){var r=_0x16d8be;e[r(366)].name!==currentType||0!==e[r(333)]||hasParent(e,e.node[r(326)])||importRules.push({type:r(356),module:e[r(366)][r(326)],moduleRange:{start:{line:e[r(366)][r(329)][r(336)][r(342)],character:e[r(366)][r(329)][r(336)][r(345)]},end:{line:e[r(366)][r(329)].end[r(342)],character:e[r(366)].loc[r(335)].column}},property:null})},StringLiteral:function(e){var r,t=_0x16d8be;!e.node[t(330)]||pathTool[t(357)](e.node[t(330)])!==suffixs[t(370)]&&pathTool[t(357)](e[t(366)][t(330)])!==suffixs[t(348)]||(r=pathTool[t(357)](e[t(366)].value),importRules[t(321)]({type:"filePath",module:r,moduleRange:{start:{line:e[t(366)][t(329)][t(335)][t(342)],character:e.node.loc[t(335)][t(345)]-r.length},end:{line:e[t(366)].loc[t(335)][t(342)],character:e[t(366)][t(329)][t(335)][t(345)]}}})),e.node[t(330)]&&getQaSchemasReg(currentType).test(e[t(366)][t(330)])&&importRules[t(321)]({type:"wxSchema",module:""[t(324)](currentType,":"),moduleRange:{start:{line:e[t(366)][t(329)][t(336)][t(342)],character:e[t(366)][t(329)][t(336)][t(345)]},end:{line:e[t(366)][t(329)][t(336)][t(342)],character:e[t(366)][t(329)].start.column+5}}})}};function hasParent(e,t){var n=_0x16d8be,a=!1;return e[n(352)]()[n(339)](function(e){var r=n;a||e.scope[r(369)](t)&&(a=!0)}),a}function clear(){var e=_0x16d8be;importRules[e(323)](0,importRules[e(325)])}function getImportRules(e,r){var t=_0x16d8be,n=2<arguments[t(325)]&&void 0!==arguments[2]&&arguments[2],a=3<arguments[t(325)]?arguments[3]:void 0,n=(currentType=a,suffixs=commonConfig_1[t(334)][a],a=n?{CallExpression:visitor.CallExpression,ImportDeclaration:visitor[t(343)]}:{MemberExpression:visitor[t(365)],StringLiteral:visitor[t(363)],Identifier:visitor[t(368)],CallExpression:visitor[t(319)]},babelParser_1[t(316)](e,r));return clear(),babel_traverse_1.default(n,a),importRules}exports[_0x16d8be(327)]=getImportRules;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x33972c=_0x3683;function _0x3683(e,t){var r=_0x2676();return(_0x3683=function(e,t){return r[e-=394]})(e,t)}(()=>{for(var e=_0x3683,t=_0x2676();;)try{if(899796==+parseInt(e(411))*(parseInt(e(417))/2)+-parseInt(e(436))/3*(-parseInt(e(416))/4)+-parseInt(e(427))/5*(-parseInt(e(428))/6)+-parseInt(e(421))/7+-parseInt(e(415))/8+parseInt(e(434))/9+-parseInt(e(412))/10)break;t.push(t.shift())}catch(e){t.push(t.shift())}})(),Object[_0x33972c(425)](exports,"__esModule",{value:!0}),exports[_0x33972c(418)]=exports[_0x33972c(443)]=exports[_0x33972c(433)]=void 0;var postcss=require(_0x33972c(408)),path=require(_0x33972c(424));function wxssParser(t,r,i,a){var p=_0x33972c,n=[];try{n=postcss[p(430)](t)[p(423)].filter(function(e){var t=p;return e.type===t(396)&&e[t(407)]===t(413)}).map(function(e){var t=p;return{type:"import",import:e[t(394)],position:{start:e[t(431)][t(442)],end:e.source[t(401)]}}})}catch(e){for(var s=t[p(397)](exports[p(433)]),o=0,c=0;s=exports[p(433)][p(419)](t);){var x,c=t[p(414)](s[0],c),u=checkIsInComment(s[0],t,o,s.index);u.isInComment?(o=s[p(435)]+u.restLength,c+=u[p(399)]):(o=s[p(435)]+s[0][p(439)],(u=s[0][p(397)](exports.importFileReg))&&(x=r.positionAt(c+u.index),n[p(437)]({type:p(413),uri:r[p(440)],position:{start:{line:x.line+1,column:x[p(406)]},end:{line:x[p(441)]+1,column:x[p(406)]+u[0].length+2}},value:u?u[1]:"",import:u[0]})),c+=s[0][p(439)])}}var f=[];return n[p(438)](function(n){var s,e,o,c=p;n.type===c(413)?(e={line:n[c(409)][c(401)].line-1,character:n[c(409)][c(401)][c(400)]-2},s=r[c(405)](e),e=n[c(413)][c(402)](/[\r\n]/gi," ")[c(429)](" "),o=0,e[c(438)](function(e){var t,r=c,e=e[r(432)](1,e.length-1);path.extname(e)===i&&(t=n[r(413)].indexOf(e,o),o=t,f[r(437)]({type:r(413),import:e,endOffset:s-(n.import[r(439)]-t-e.length)+1}))})):a===c(422)&&getSelectorRule(n,r,a,f)}),f}function _0x2676(){var e=["2786540qUIfiQ","2RSexAK","wxssParser","exec","((?:^|\\n|\\r)\\s*\\/\\*[\\s\\S]*?","6920144pfWfkV","swan","nodes","path","defineProperty","type","1346330AyBmgg","12QEpPXh","split","parse","source","substring","importReg","7701534SwMiwZ","index","6xnvjTq","push","forEach","length","uri","line","start","importFileReg","params","test","atrule","match","selectors","restLength","column","end","replace","concat","[\\s\\S]*?\\*\\/\\s*(?:\\r|\\n|$)|((?:^|\\n|\\r)\\s*\\/\\/.*","offsetAt","character","name","postcss","position","selector","1612904TzZRwy","21903900ZDomHE","import","indexOf","2573232uLUijh"];return(_0x2676=function(){return e})()}function getSelectorRule(e,t,r,n){var s,o,c,i,a,p=_0x33972c;"rule"===e[p(426)]?(s=t.getText(),o=new RegExp("^"[p(403)](r,"-")),c=e[p(398)],i={line:e[p(409)].start[p(441)]-1,character:e[p(409)][p(442)].column-1},a=t[p(405)](i),c&&c.forEach(function(e){var r=p;e[r(429)](/\s+/).forEach(function(e){var t=r;a=s[t(414)](e,a),o[t(395)](e)&&n[t(437)]({type:t(410),selector:e,startOffset:a}),a+=e[t(439)]})})):"media"===e.type&&e.rules.forEach(function(e){getSelectorRule(e,t,r,n)})}function checkIsInComment(e,t,r,n){for(var s,o=_0x33972c,c=new RegExp(o(420).concat(e,o(404))[o(403)](e,".*(?:\\r|\\n|$)))"),"g");s=c.exec(t[o(432)](r));){if(s[o(435)]+r<n&&s.index+r+s[0].length>n)return{isInComment:!0,restLength:s[o(435)]+r+s[0].length-n};if(s[o(435)]+r>n)break}return{isInComment:!1,restLength:0}}exports[_0x33972c(433)]=/\@import\s+[\'\"].*[\'\"](\s+.*(\s*[and|not|only|or|\,]\s*\(.*\))*)?\s*\;?/g,exports[_0x33972c(443)]=/['"]\s*([^()]+?)\s*['"]/,exports[_0x33972c(418)]=wxssParser;
|
package/lib/bin/ascf.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
function _0x52e0(){var t=["continue","next","awrap","end","136409uvaWqs","completed","call","[object Generator]","toString","tryLoc","../../package.json","nextLoc","parse","name","' method","_invoke","397420OwRzxS","pop","rval","hasOwnProperty","1999242jHQOPi","method","displayName","compile <projectRoot>","reverse","Clear convert output path","159560iYtkDP","command","finallyLoc","@@asyncIterator","855864VHAnTf","charAt","-m, --mode","_sent","Generator","toStringTag","push","async","getPrototypeOf","requiredOption","../index","return","try statement without catch or finally","suspendedStart","setPrototypeOf","mark","then","__proto__","break","Show build progress","value","stop","prev","create","__await","Validate path","abrupt","normal","693itNaMX","iterator result is not an object","option","13053yHiRWR","ascf toolkit convert and compile ascf project","-w, --watch","isGeneratorFunction","arg"," is not iterable","reset","forEach","Command","illegal catch attempt","delegate","Environment is development","description","debug","symbol","keys","AsyncIterator","defineProperty","action","wrap","afterLoc","convert","-i, --input <input-directory>","complete","resultName","opts","prototype","Generator is already running","commander","Watch for changes","completion","_ascfDebug","-p, --progress","iterator","Convert miniprogram project to ascf project","asyncIterator","dispatchException","slice","sent","type","_ascfCliProgram","values","done","constructor","version","tryEntries","--debug","root","apply","length","function","@@toStringTag","throw","380RTWsOP","object","The iterator does not provide a '","-va, --validate","4482317OugzDV","catchLoc","-o, --output <output-directory>"];return(_0x52e0=function(){return t})()}function _0x5efd(t,r){var e=_0x52e0();return(_0x5efd=function(t,r){return e[t-=198]})(t,r)}var _global$_ascfCliProgr,_0x4c6e3a=_0x5efd;function _typeof(t){var e=_0x5efd;return(_typeof="function"==typeof Symbol&&e(248)==typeof Symbol[e(267)]?function(t){return typeof t}:function(t){var r=e;return t&&r(284)==typeof Symbol&&t[r(277)]===Symbol&&t!==Symbol[r(260)]?r(248):typeof t})(t)}function _regeneratorRuntime(){var f=_0x5efd;_regeneratorRuntime=function(){return c};var s,c={},t=Object[f(260)],l=t[f(313)],p=Object.defineProperty||function(t,r,e){var n=f;t[r]=e[n(223)]},r=f(284)==typeof Symbol?Symbol:{},a=r.iterator||"@@iterator",e=r[f(269)]||f(202),n=r[f(208)]||f(285);function o(t,r,e){return Object[f(251)](t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{o({},"")}catch(t){o=function(t,r,e){return t[r]=e}}function u(t,r,e,n){var o,a,i,c,u=f,r=r&&r[u(260)]instanceof x?r:x,r=Object.create(r[u(260)]),u=new L(n||[]);return p(r,"_invoke",{value:(o=t,a=e,i=u,c=v,function(t,r){var e=_0x5efd;if(c===y)throw Error(e(261));if(c===m){if(e(286)===t)throw r;return{value:s,done:!0}}for(i.method=t,i[e(238)]=r;;){var n=i[e(244)];if(n){n=function t(r,e){var n=f,o=e.method,a=r[n(267)][o];if(a===s)return e.delegate=null,n(286)===o&&r[n(267)][n(214)]&&(e[n(315)]=n(214),e[n(238)]=s,t(r,e),n(286)===e[n(315)])||n(214)!==o&&(e.method="throw",e.arg=new TypeError(n(289)+o+n(308))),d;o=h(a,r.iterator,e[n(238)]);if(n(286)===o[n(273)])return e.method=n(286),e.arg=o.arg,e[n(244)]=null,d;a=o[n(238)];return a?a[n(276)]?(e[r[n(258)]]=a[n(223)],e.next=r[n(305)],n(214)!==e[n(315)]&&(e[n(315)]=n(295),e.arg=s),e.delegate=null,d):a:(e[n(315)]="throw",e[n(238)]=new TypeError(n(232)),e[n(244)]=null,d)}(n,i);if(n){if(n===d)continue;return n}}if(e(295)===i[e(315)])i.sent=i._sent=i[e(238)];else if("throw"===i[e(315)]){if(c===v)throw c=m,i[e(238)];i[e(270)](i[e(238)])}else e(214)===i[e(315)]&&i[e(229)](e(214),i[e(238)]);c=y;n=h(o,a,i);if(e(230)===n[e(273)]){if(c=i[e(276)]?m:_,n[e(238)]===d)continue;return{value:n[e(238)],done:i[e(276)]}}e(286)===n[e(273)]&&(c=m,i.method=e(286),i.arg=n.arg)}})}),r}function h(t,r,e){var n=f;try{return{type:"normal",arg:t[n(300)](r,e)}}catch(t){return{type:n(286),arg:t}}}c[f(253)]=u;var v=f(216),_="suspendedYield",y="executing",m=f(299),d={};function x(){}function i(){}function g(){}var r={},b=(o(r,a,function(){return this}),Object[f(211)]),b=b&&b(b(k([]))),w=(b&&b!==t&&l[f(300)](b,a)&&(r=b),g.prototype=x[f(260)]=Object[f(226)](r));function j(t){var r=f;["next",r(286),r(214)][r(241)](function(r){o(t,r,function(t){return this[_0x5efd(309)](r,t)})})}function O(c,u){var r;p(this,f(309),{value:function(e,n){function t(){return new u(function(t,r){!function r(t,e,n,o){var a,i=_0x5efd,t=h(c[t],c,e);if(i(286)!==t[i(273)])return(e=(a=t[i(238)])[i(223)])&&i(288)==_typeof(e)&&l.call(e,i(227))?u.resolve(e[i(227)])[i(219)](function(t){r(i(295),t,n,o)},function(t){r(i(286),t,n,o)}):u.resolve(e)[i(219)](function(t){a[i(223)]=t,n(a)},function(t){return r(i(286),t,n,o)});o(t[i(238)])}(e,n,t,r)})}return r=r?r.then(t,t):t()}})}function P(t){var r=f,e={tryLoc:t[0]};1 in t&&(e[r(292)]=t[1]),2 in t&&(e.finallyLoc=t[2],e[r(254)]=t[3]),this[r(279)][r(209)](e)}function S(t){var r=f,e=t.completion||{};e.type=r(230),delete e.arg,t.completion=e}function L(t){var r=f;this[r(279)]=[{tryLoc:"root"}],t[r(241)](P,this),this[r(240)](!0)}function k(e){var n=f;if(e||""===e){var o,t=e[a];if(t)return t[n(300)](e);if(n(284)==typeof e[n(295)])return e;if(!isNaN(e[n(283)]))return o=-1,(t=function t(){for(var r=n;++o<e[r(283)];)if(l.call(e,o))return t[r(223)]=e[o],t[r(276)]=!1,t;return t[r(223)]=s,t[r(276)]=!0,t}).next=t}throw new TypeError(_typeof(e)+n(239))}return i[f(260)]=g,p(w,f(277),{value:g,configurable:!0}),p(g,"constructor",{value:i,configurable:!0}),i[f(316)]=o(g,n,"GeneratorFunction"),c[f(237)]=function(t){var r=f,t=r(284)==typeof t&&t.constructor;return!!t&&(t===i||"GeneratorFunction"===(t[r(316)]||t[r(307)]))},c[f(218)]=function(t){var r=f;return Object.setPrototypeOf?Object[r(217)](t,g):(t[r(220)]=g,o(t,n,"GeneratorFunction")),t[r(260)]=Object.create(w),t},c[f(296)]=function(t){return{__await:t}},j(O.prototype),o(O[f(260)],e,function(){return this}),c[f(250)]=O,c[f(210)]=function(t,r,e,n,o){var a=f,i=(void 0===o&&(o=Promise),new O(u(t,r,e,n),o));return c.isGeneratorFunction(r)?i:i[a(295)]()[a(219)](function(t){var r=a;return t[r(276)]?t.value:i[r(295)]()})},j(w),o(w,n,f(207)),o(w,a,function(){return this}),o(w,f(302),function(){return f(301)}),c[f(249)]=function(t){var r,n=f,o=Object(t),a=[];for(r in o)a[n(209)](r);return a[n(318)](),function t(){for(var r=n;a[r(283)];){var e=a[r(311)]();if(e in o)return t[r(223)]=e,t[r(276)]=!1,t}return t.done=!0,t}},c[f(275)]=k,L[f(260)]={constructor:L,reset:function(t){var r=f;if(this[r(225)]=0,this[r(295)]=0,this[r(272)]=this[r(206)]=s,this[r(276)]=!1,this[r(244)]=null,this[r(315)]="next",this[r(238)]=s,this.tryEntries[r(241)](S),!t)for(var e in this)"t"===e[r(204)](0)&&l[r(300)](this,e)&&!isNaN(+e[r(271)](1))&&(this[e]=s)},stop:function(){var t=f,r=(this[t(276)]=!0,this[t(279)][0][t(264)]);if(t(286)===r[t(273)])throw r[t(238)];return this[t(312)]},dispatchException:function(n){var o=f;if(this[o(276)])throw n;var a=this;function t(t,r){var e=o;return i[e(273)]=e(286),i[e(238)]=n,a[e(295)]=t,r&&(a.method=e(295),a[e(238)]=s),!!r}for(var r=this.tryEntries[o(283)]-1;0<=r;--r){var e=this[o(279)][r],i=e[o(264)];if(o(281)===e[o(303)])return t(o(297));if(e[o(303)]<=this.prev){var c=l[o(300)](e,o(292)),u=l[o(300)](e,"finallyLoc");if(c&&u){if(this[o(225)]<e[o(292)])return t(e.catchLoc,!0);if(this[o(225)]<e[o(201)])return t(e.finallyLoc)}else if(c){if(this.prev<e[o(292)])return t(e[o(292)],!0)}else{if(!u)throw Error(o(215));if(this.prev<e[o(201)])return t(e.finallyLoc)}}}},abrupt:function(t,r){for(var e=f,n=this[e(279)][e(283)]-1;0<=n;--n){var o=this.tryEntries[n];if(o[e(303)]<=this[e(225)]&&l[e(300)](o,"finallyLoc")&&this.prev<o[e(201)]){var a=o;break}}var i=(a=a&&("break"===t||e(294)===t)&&a[e(303)]<=r&&r<=a[e(201)]?null:a)?a[e(264)]:{};return i.type=t,i[e(238)]=r,a?(this[e(315)]=e(295),this[e(295)]=a[e(201)],d):this[e(257)](i)},complete:function(t,r){var e=f;if(e(286)===t[e(273)])throw t[e(238)];return e(221)===t[e(273)]||e(294)===t[e(273)]?this[e(295)]=t[e(238)]:e(214)===t.type?(this.rval=this.arg=t[e(238)],this.method="return",this[e(295)]=e(297)):e(230)===t[e(273)]&&r&&(this[e(295)]=r),d},finish:function(t){for(var r=f,e=this[r(279)][r(283)]-1;0<=e;--e){var n=this[r(279)][e];if(n[r(201)]===t)return this[r(257)](n[r(264)],n[r(254)]),S(n),d}},catch:function(t){for(var r=f,e=this[r(279)][r(283)]-1;0<=e;--e){var n,o,a=this[r(279)][e];if(a.tryLoc===t)return n=a.completion,r(286)===n.type&&(o=n[r(238)],S(a)),o}throw Error(r(243))},delegateYield:function(t,r,e){var n=f;return this[n(244)]={iterator:k(t),resultName:r,nextLoc:e},n(295)===this.method&&(this[n(238)]=s),d}},c}function asyncGeneratorStep(t,r,e,n,o,a,i){var c=_0x5efd;try{var u=t[a](i),f=u[c(223)]}catch(t){return void e(t)}u[c(276)]?r(f):Promise.resolve(f)[c(219)](n,o)}function _asyncToGenerator(c){return function(){var t=this,i=arguments;return new Promise(function(r,e){var n=c.apply(t,i);function o(t){asyncGeneratorStep(n,r,e,o,a,_0x5efd(295),t)}function a(t){asyncGeneratorStep(n,r,e,o,a,_0x5efd(286),t)}o(void 0)})}}(()=>{for(var t=_0x5efd,r=_0x52e0();;)try{if(360921==-parseInt(t(298))+parseInt(t(203))/2+-parseInt(t(234))/3*(parseInt(t(287))/4)+-parseInt(t(310))/5+-parseInt(t(314))/6+-parseInt(t(291))/7+parseInt(t(199))/8*(parseInt(t(231))/9))break;r.push(r.shift())}catch(t){r.push(r.shift())}})();var ascf=require(_0x4c6e3a(213)),_require=require(_0x4c6e3a(262)),Command=_require[_0x4c6e3a(242)],pkg=require(_0x4c6e3a(304)),program=new Command;program[_0x4c6e3a(278)](pkg.version)[_0x4c6e3a(246)](_0x4c6e3a(235))[_0x4c6e3a(233)](_0x4c6e3a(280),"enable debug logging"),program.command(_0x4c6e3a(255))[_0x4c6e3a(246)](_0x4c6e3a(268))[_0x4c6e3a(212)](_0x4c6e3a(256))[_0x4c6e3a(212)](_0x4c6e3a(293))[_0x4c6e3a(233)]("-c, --clear",_0x4c6e3a(198))[_0x4c6e3a(233)](_0x4c6e3a(290),_0x4c6e3a(228))[_0x4c6e3a(252)]((()=>{var r=_0x4c6e3a,e=_asyncToGenerator(_regeneratorRuntime()[r(218)](function t(e){var n=r;return _regeneratorRuntime()[n(253)](function(t){for(var r=n;;)switch(t[r(225)]=t[r(295)]){case 0:return t.next=2,ascf[r(255)](e);case 2:case r(297):return t[r(224)]()}},t)}));return function(t){return e[r(282)](this,arguments)}})()),program[_0x4c6e3a(200)](_0x4c6e3a(317))[_0x4c6e3a(246)]("Compile ascf project").option(_0x4c6e3a(266),_0x4c6e3a(222))[_0x4c6e3a(233)](_0x4c6e3a(236),_0x4c6e3a(263)).option(_0x4c6e3a(205),_0x4c6e3a(245)).option("-c, --clear","Clear build resource")[_0x4c6e3a(252)]((()=>{var e=_asyncToGenerator(_regeneratorRuntime().mark(function t(e,n){var o=_0x5efd;return _regeneratorRuntime()[o(253)](function(t){for(var r=o;;)switch(t[r(225)]=t[r(295)]){case 0:return t.next=2,ascf.compile(e,n);case 2:case r(297):return t[r(224)]()}},t)}));return function(t,r){return e[_0x5efd(282)](this,arguments)}})()),program[_0x4c6e3a(306)](process.argv),global[_0x4c6e3a(274)]=program,global[_0x4c6e3a(265)]=!(null==(_global$_ascfCliProgr=global[_0x4c6e3a(274)][_0x4c6e3a(259)]())||!_global$_ascfCliProgr[_0x4c6e3a(247)]);
|
|
2
|
+
var _global$_ascfCliProgr,_0x3eec07=_0x2af0;function _0x26b8(){var e=["return","3517785dgDRkQ","try statement without catch or finally","method","-p, --progress","@@toStringTag","compile","152916AxjanV","convert","AsyncIterator","5031536hEeJcf","tryEntries","Show build progress","push","description","normal","_ascfCliProgram","104506duXLJw","_ascfDebug","enable debug logging","arg","charAt","8yUZVqk","231liAEDi","requiredOption","continue","-o, --output <output-directory>","suspendedStart"," is not iterable","illegal catch attempt","object","opts","[object Generator]","wrap","commander","forEach","afterLoc","end","version","ascf toolkit convert and compile ascf project","reset","@@asyncIterator","values","-notaddtodo, --notaddtodo","Clear convert output path","Environment is development","slice","-r, --run [command]","Compile ascf project","The iterator does not provide a '","hasOwnProperty","../common/config","-w, --watch","_invoke","../../package.json","notaddtodo","value","complete","GeneratorFunction","setPrototypeOf","awrap","-c, --clear","executing","next","constructor","tryLoc","Watch for changes","completion","option","reverse","prev","completed","resolve","pop","delegate","../index","sent","catchLoc","async","stop","' method","compile <projectRoot>","action","parse","__await","function","break","mark","dispatchException","-m, --mode","create","length","then","__proto__","isGeneratorFunction","finallyLoc","Run command on changes been watched","3829340VCrXcw","abrupt","call","resultName","argv","rval","1818294EPlnkE","displayName","type","throw","defineProperty","-i, --input <input-directory>","toStringTag","suspendedYield","iterator","symbol","command","@@iterator","prototype","29180wDIenj","apply","Convert miniprogram project to ascf project","keys","4869hvbVUr","done","debug","Clear build resource","nextLoc","root"];return(_0x26b8=function(){return e})()}function _typeof(e){var t=_0x2af0;return(_typeof=t(566)==typeof Symbol&&t(467)==typeof Symbol[t(466)]?function(e){return typeof e}:function(e){var r=t;return e&&r(566)==typeof Symbol&&e[r(545)]===Symbol&&e!==Symbol[r(470)]?r(467):typeof e})(e)}function _regeneratorRuntime(){var f=_0x2af0;_regeneratorRuntime=function(){return c};var s,c={},e=Object.prototype,p=e[f(531)],l=Object[f(462)]||function(e,r,t){var n=f;e[r]=t[n(537)]},r="function"==typeof Symbol?Symbol:{},i=r.iterator||f(469),t=r.asyncIterator||f(522),n=r[f(464)]||f(486);function o(e,r,t){return Object[f(462)](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 u(e,r,t,n){var o,i,a,c,u=f,r=r&&r[u(470)]instanceof y?r:y,r=Object[u(571)](r[u(470)]),n=new k(n||[]);return l(r,u(534),{value:(o=e,i=t,a=n,c=_,function(e,r){var t=_0x2af0;if(c===d)throw Error("Generator is already running");if(c===x){if(t(461)===e)throw r;return{value:s,done:!0}}for(a.method=e,a[t(501)]=r;;){var n=a[t(555)];if(n){n=function e(r,t){var n=f,o=t[n(484)],i=r[n(466)][o];if(i===s)return t[n(555)]=null,n(461)===o&&r[n(466)][n(481)]&&(t[n(484)]=n(481),t[n(501)]=s,e(r,t),n(461)===t.method)||n(481)!==o&&(t[n(484)]=n(461),t[n(501)]=new TypeError(n(530)+o+n(561))),m;o=h(i,r.iterator,t[n(501)]);if(n(461)===o[n(460)])return t[n(484)]=n(461),t[n(501)]=o[n(501)],t[n(555)]=null,m;i=o[n(501)];return i?i.done?(t[r[n(581)]]=i[n(537)],t[n(544)]=r[n(479)],n(481)!==t[n(484)]&&(t[n(484)]=n(544),t.arg=s),t[n(555)]=null,m):i:(t[n(484)]=n(461),t[n(501)]=new TypeError("iterator result is not an object"),t.delegate=null,m)}(n,a);if(n){if(n===m)continue;return n}}if(t(544)===a[t(484)])a.sent=a._sent=a[t(501)];else if("throw"===a.method){if(c===_)throw c=x,a[t(501)];a[t(569)](a[t(501)])}else t(481)===a[t(484)]&&a[t(579)]("return",a[t(501)]);c=d;n=h(o,i,a);if(t(496)===n[t(460)]){if(c=a[t(476)]?x:v,n[t(501)]===m)continue;return{value:n.arg,done:a[t(476)]}}t(461)===n[t(460)]&&(c=x,a[t(484)]=t(461),a.arg=n[t(501)])}})}),r}function h(e,r,t){var n=f;try{return{type:"normal",arg:e[n(580)](r,t)}}catch(e){return{type:"throw",arg:e}}}c[f(514)]=u;var _=f(508),v=f(465),d=f(543),x=f(552),m={};function y(){}function a(){}function g(){}var r={},b=(o(r,i,function(){return this}),Object.getPrototypeOf),b=b&&b(b(I([]))),w=(b&&b!==e&&p[f(580)](b,i)&&(r=b),g[f(470)]=y[f(470)]=Object[f(571)](r));function j(e){var r=f;[r(544),r(461),"return"][r(516)](function(r){o(e,r,function(e){return this[_0x2af0(534)](r,e)})})}function E(c,u){var r,o=f;l(this,o(534),{value:function(t,n){function e(){return new u(function(e,r){!function r(e,t,n,o){var i,a=_0x2af0,e=h(c[e],c,t);if(a(461)!==e[a(460)])return(t=(i=e[a(501)])[a(537)])&&a(511)==_typeof(t)&&p[a(580)](t,"__await")?u.resolve(t[a(565)])[a(573)](function(e){r(a(544),e,n,o)},function(e){r(a(461),e,n,o)}):u[a(553)](t)[a(573)](function(e){i[a(537)]=e,n(i)},function(e){return r("throw",e,n,o)});o(e[a(501)])}(t,n,e,r)})}return r=r?r[o(573)](e,e):e()}})}function O(e){var r=f,t={tryLoc:e[0]};1 in e&&(t[r(558)]=e[1]),2 in e&&(t[r(576)]=e[2],t[r(517)]=e[3]),this[r(492)][r(494)](t)}function S(e){var r=f,t=e[r(548)]||{};t[r(460)]=r(496),delete t.arg,e.completion=t}function k(e){var r=f;this[r(492)]=[{tryLoc:"root"}],e[r(516)](O,this),this[r(521)](!0)}function I(t){var n=f;if(t||""===t){var o,e=t[i];if(e)return e[n(580)](t);if("function"==typeof t[n(544)])return t;if(!isNaN(t[n(572)]))return o=-1,(e=function e(){for(var r=n;++o<t[r(572)];)if(p[r(580)](t,o))return e[r(537)]=t[o],e.done=!1,e;return e[r(537)]=s,e[r(476)]=!0,e})[n(544)]=e}throw new TypeError(_typeof(t)+n(509))}return a[f(470)]=g,l(w,f(545),{value:g,configurable:!0}),l(g,f(545),{value:a,configurable:!0}),a.displayName=o(g,n,f(539)),c[f(575)]=function(e){var r=f,e=r(566)==typeof e&&e[r(545)];return!!e&&(e===a||r(539)===(e[r(459)]||e.name))},c[f(568)]=function(e){var r=f;return Object[r(540)]?Object.setPrototypeOf(e,g):(e[r(574)]=g,o(e,n,r(539))),e[r(470)]=Object.create(w),e},c[f(541)]=function(e){return{__await:e}},j(E[f(470)]),o(E[f(470)],t,function(){return this}),c[f(490)]=E,c[f(559)]=function(e,r,t,n,o){var i=f,a=(void 0===o&&(o=Promise),new E(u(e,r,t,n),o));return c[i(575)](r)?a:a[i(544)]()[i(573)](function(e){var r=i;return e[r(476)]?e.value:a[r(544)]()})},j(w),o(w,n,"Generator"),o(w,i,function(){return this}),o(w,"toString",function(){return f(513)}),c[f(474)]=function(e){var r,n=f,o=Object(e),i=[];for(r in o)i[n(494)](r);return i[n(550)](),function e(){for(var r=n;i[r(572)];){var t=i[r(554)]();if(t in o)return e[r(537)]=t,e[r(476)]=!1,e}return e[r(476)]=!0,e}},c[f(523)]=I,k[f(470)]={constructor:k,reset:function(e){var r=f;if(this[r(551)]=0,this[r(544)]=0,this[r(557)]=this._sent=s,this[r(476)]=!1,this[r(555)]=null,this[r(484)]=r(544),this[r(501)]=s,this[r(492)][r(516)](S),!e)for(var t in this)"t"===t[r(502)](0)&&p[r(580)](this,t)&&!isNaN(+t[r(527)](1))&&(this[t]=s)},stop:function(){var e=f,r=(this[e(476)]=!0,this[e(492)][0].completion);if(e(461)===r[e(460)])throw r.arg;return this[e(583)]},dispatchException:function(n){var o=f;if(this[o(476)])throw n;var i=this;function e(e,r){var t=o;return a[t(460)]="throw",a[t(501)]=n,i[t(544)]=e,r&&(i[t(484)]="next",i[t(501)]=s),!!r}for(var r=this.tryEntries[o(572)]-1;0<=r;--r){var t=this[o(492)][r],a=t[o(548)];if(o(480)===t[o(546)])return e("end");if(t[o(546)]<=this[o(551)]){var c=p[o(580)](t,o(558)),u=p[o(580)](t,o(576));if(c&&u){if(this[o(551)]<t.catchLoc)return e(t[o(558)],!0);if(this[o(551)]<t[o(576)])return e(t[o(576)])}else if(c){if(this[o(551)]<t[o(558)])return e(t[o(558)],!0)}else{if(!u)throw Error(o(483));if(this[o(551)]<t[o(576)])return e(t[o(576)])}}}},abrupt:function(e,r){for(var t=f,n=this[t(492)][t(572)]-1;0<=n;--n){var o=this[t(492)][n];if(o.tryLoc<=this[t(551)]&&p[t(580)](o,"finallyLoc")&&this[t(551)]<o.finallyLoc){var i=o;break}}var a=(i=i&&("break"===e||"continue"===e)&&i.tryLoc<=r&&r<=i[t(576)]?null:i)?i[t(548)]:{};return a[t(460)]=e,a[t(501)]=r,i?(this[t(484)]="next",this[t(544)]=i[t(576)],m):this.complete(a)},complete:function(e,r){var t=f;if(t(461)===e[t(460)])throw e[t(501)];return t(567)===e.type||t(506)===e.type?this[t(544)]=e[t(501)]:t(481)===e.type?(this[t(583)]=this.arg=e[t(501)],this[t(484)]=t(481),this[t(544)]=t(518)):"normal"===e[t(460)]&&r&&(this[t(544)]=r),m},finish:function(e){for(var r=f,t=this.tryEntries[r(572)]-1;0<=t;--t){var n=this[r(492)][t];if(n[r(576)]===e)return this[r(538)](n[r(548)],n[r(517)]),S(n),m}},catch:function(e){for(var r=f,t=this[r(492)][r(572)]-1;0<=t;--t){var n,o,i=this[r(492)][t];if(i[r(546)]===e)return n=i[r(548)],r(461)===n[r(460)]&&(o=n.arg,S(i)),o}throw Error(r(510))},delegateYield:function(e,r,t){var n=f;return this[n(555)]={iterator:I(e),resultName:r,nextLoc:t},"next"===this[n(484)]&&(this[n(501)]=s),m}},c}function asyncGeneratorStep(e,r,t,n,o,i,a){var c=_0x2af0;try{var u=e[i](a),f=u[c(537)]}catch(e){return void t(e)}u.done?r(f):Promise[c(553)](f)[c(573)](n,o)}function _asyncToGenerator(u){return function(){var e=this,c=arguments;return new Promise(function(r,t){var n=_0x2af0,o=u[n(472)](e,c);function i(e){asyncGeneratorStep(o,r,t,i,a,n(544),e)}function a(e){asyncGeneratorStep(o,r,t,i,a,n(461),e)}i(void 0)})}}function _0x2af0(e,r){var t=_0x26b8();return(_0x2af0=function(e,r){return t[e-=459]})(e,r)}(()=>{for(var e=_0x2af0,r=_0x26b8();;)try{if(512834==+parseInt(e(498))*(-parseInt(e(503))/2)+-parseInt(e(584))/3+-parseInt(e(578))/4+parseInt(e(482))/5+parseInt(e(488))/6*(parseInt(e(504))/7)+-parseInt(e(491))/8+parseInt(e(475))/9*(parseInt(e(471))/10))break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var ascf=require(_0x3eec07(556)),_require=require(_0x3eec07(515)),Command=_require.Command,pkg=require(_0x3eec07(535)),_require2=require(_0x3eec07(532)),configs=_require2.configs,program=new Command;program[_0x3eec07(519)](pkg[_0x3eec07(519)])[_0x3eec07(495)](_0x3eec07(520))[_0x3eec07(549)]("--debug",_0x3eec07(500)),program[_0x3eec07(468)](_0x3eec07(489)).description(_0x3eec07(473)).requiredOption(_0x3eec07(463))[_0x3eec07(505)](_0x3eec07(507))[_0x3eec07(549)](_0x3eec07(542),_0x3eec07(525)).option("-va, --validate","Validate path")[_0x3eec07(549)](_0x3eec07(524),"Not add todo for not supported api.")[_0x3eec07(563)]((()=>{var r=_0x3eec07,t=_asyncToGenerator(_regeneratorRuntime()[r(568)](function e(t){var n=r;return _regeneratorRuntime()[n(514)](function(e){for(var r=n;;)switch(e[r(551)]=e[r(544)]){case 0:return configs[r(536)]=!!t[r(536)],e[r(544)]=3,ascf[r(489)](t);case 3:case r(518):return e[r(560)]()}},e)}));return function(e){return t[r(472)](this,arguments)}})()),program[_0x3eec07(468)](_0x3eec07(562)).description(_0x3eec07(529))[_0x3eec07(549)](_0x3eec07(485),_0x3eec07(493))[_0x3eec07(549)](_0x3eec07(533),_0x3eec07(547))[_0x3eec07(549)](_0x3eec07(570),_0x3eec07(526))[_0x3eec07(549)]("-c, --clear",_0x3eec07(478))[_0x3eec07(549)](_0x3eec07(528),_0x3eec07(577)).action((()=>{var i=_0x3eec07,t=_asyncToGenerator(_regeneratorRuntime()[i(568)](function e(t,n){var o=i;return _regeneratorRuntime()[o(514)](function(e){for(var r=o;;)switch(e[r(551)]=e[r(544)]){case 0:return e.next=2,ascf[r(487)](t,n);case 2:case r(518):return e[r(560)]()}},e)}));return function(e,r){return t[i(472)](this,arguments)}})()),program[_0x3eec07(564)](process[_0x3eec07(582)]),global[_0x3eec07(497)]=program,global[_0x3eec07(499)]=!(null==(_global$_ascfCliProgr=global[_0x3eec07(497)][_0x3eec07(512)]())||!_global$_ascfCliProgr[_0x3eec07(477)]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _0x32c52a=_0x4617;function _0x4617(r,t){var n=_0x5561();return(_0x4617=function(r,t){return n[r-=313]})(r,t)}(()=>{for(var r=_0x4617,t=_0x5561();;)try{if(565087==+parseInt(r(315))*(-parseInt(r(322))/2)+-parseInt(r(321))/3+parseInt(r(317))/4+parseInt(r(318))/5+parseInt(r(316))/6+-parseInt(r(313))/7+-parseInt(r(314))/8*(-parseInt(r(320))/9))break;t.push(t.shift())}catch(r){t.push(t.shift())}})();var configs={notaddtodo:!1};function _0x5561(){var r=["8oFRbam","5178LuqjfK","1681536sPdsBL","45100kLscLz","2806430ggSrXP","configs","19070442tcHRVm","3259929riJCdt","322WwlYNW","3404569SUDrEJ"];return(_0x5561=function(){return r})()}exports[_0x32c52a(319)]=configs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x461d9a=_0x411c;function _typeof(r){var t=_0x411c;return(_typeof="function"==typeof Symbol&&t(578)==typeof Symbol[t(507)]?function(r){return typeof r}:function(r){var e=t;return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol[e(502)]?e(578):typeof r})(r)}function _classCallCheck(r,e){var t=_0x411c;if(!(r instanceof e))throw new TypeError(t(544))}function _defineProperties(r,e){for(var t=_0x411c,n=0;n<e[t(521)];n++){var o=e[n];o.enumerable=o.enumerable||!1,o[t(574)]=!0,"value"in o&&(o[t(537)]=!0),Object[t(497)](r,_toPropertyKey(o.key),o)}}function _createClass(r,e,t){var n=_0x411c;return e&&_defineProperties(r[n(502)],e),t&&_defineProperties(r,t),Object.defineProperty(r,n(502),{writable:!1}),r}function _0x411c(r,e){var t=_0x52e9();return(_0x411c=function(r,e){return t[r-=494]})(r,e)}function _toPropertyKey(r){var e=_0x411c,r=_toPrimitive(r,"string");return e(578)==_typeof(r)?r:r+""}function _toPrimitive(r,e){var t=_0x411c;if(t(526)!=_typeof(r)||!r)return r;var n=r[Symbol[t(499)]];if(void 0===n)return(t(575)===e?String:Number)(r);n=n.call(r,e||"default");if(t(526)!=_typeof(n))return n;throw new TypeError(t(519))}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x411c(548))}function _unsupportedIterableToArray(r,e){var t,n=_0x411c;if(r)return n(575)==typeof r?_arrayLikeToArray(r,e):(t={}.toString.call(r)[n(572)](8,-1),n(568)===t&&r.constructor&&(t=r[n(495)][n(513)]),n(556)===t||n(571)===t?Array[n(545)](r):n(527)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(534)](t)?_arrayLikeToArray(r,e):void 0)}function _iterableToArray(r){var e=_0x411c;if(e(536)!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r[e(570)])return Array[e(545)](r)}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r)}function _arrayLikeToArray(r,e){var t=_0x411c;(null==e||e>r[t(521)])&&(e=r[t(521)]);for(var n=0,o=Array(e);n<e;n++)o[n]=r[n];return o}(()=>{for(var r=_0x411c,e=_0x52e9();;)try{if(120568==+parseInt(r(494))*(-parseInt(r(561))/2)+-parseInt(r(542))/3*(-parseInt(r(530))/4)+parseInt(r(496))/5*(parseInt(r(550))/6)+-parseInt(r(552))/7*(parseInt(r(504))/8)+parseInt(r(540))/9*(parseInt(r(557))/10)+parseInt(r(576))/11*(parseInt(r(522))/12)+-parseInt(r(500))/13)break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var TYPE=_0x461d9a(538),chalk=require(_0x461d9a(524));function _0x52e9(){var r=["startTime","SUCCESS ","FAIL ","warnings","warningCount","name","dropRepeat","reduce","error","(Emitted value instead of an instance of Error) ","printCompileResult","@@toPrimitive must return a primitive value.","warn","length","7944mIPvcv","\nCOMPILE RESULT:","../ascf-compiler/chalk/bundle.cjs","info","object","Arguments","done","errorCount","44qXMlOJ","replace","concat","Error: ","test","map","undefined","writable","Module not found","resource","9CaOnkn","displayErrors","43293Cwkbvw","file","Cannot call a class as a function","from","green","origin","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","includes","120mlMEzZ","calculate","4459ZpyBMm","errors","tap","hooks","Map","1387970PrGCHe","hasErrors","forEach","formatters","1270ZWtuiy","true","compilation","env","\n@ ","showCompileTime","options","Object","warnCount","@@iterator","Set","slice","stringify","configurable","string","3619OVNYee","ModuleBuildError","symbol","166bKZpfW","constructor","11345hnuCZZ","defineProperty","exports","toPrimitive","3324750zLCGUB","BuildLogOutputPlugin","prototype","message","992dGBSEh","noteCount","endTime","iterator"];return(_0x52e9=function(){return r})()}function defaultFormatter(r,e){var t=_0x461d9a;return r[t(515)](function(r,e){return[][t(532)](_toConsumableArray(r),["\n".concat(e.message)])},[])}function babelSyntaxError(r){var e=_0x461d9a;return isBabelSyntaxError(r)&&(r.message=cleanStackTrace(r[e(503)])),r}function isBabelSyntaxError(r){var e=_0x461d9a;return r[e(513)]===e(577)&&r[e(503)][e(549)]("SyntaxError")}function cleanStackTrace(r){var e=_0x461d9a;return r[e(531)](/^\s*at\s.*:\d+:\d+[\s\)]*\n/gm,"").replace(/^Module build failed.*:\s/,e(533))}function moduleNotFoundError(r){var e,t=_0x461d9a;return"ModuleNotFoundError"===r[t(513)]&&r[t(503)][t(549)](TYPE)&&(r[t(503)]=r.message[t(531)](TYPE,"ERROR: "[t(532)](TYPE)),e=r[t(547)]&&r.origin[t(539)])&&(r[t(503)]+=t(565)[t(532)](e)),r}chalk.level=1;var defaultFormatters=[defaultFormatter],defaultTransformers=[babelSyntaxError,moduleNotFoundError];function extractError(r){var e=_0x461d9a;return{message:r[e(503)],file:r[e(543)],origin:r[e(547)],name:r[e(513)],severity:0,webpackError:r}}function cleanMessage(r){var e=_0x461d9a;return r[e(531)](e(517),"").replace(/Module Warning[^\n]+\n/,"")[e(531)](/Module Error[^\n]+\n/,"")}function transformErrors(r,e){function t(r,e){return e(r)}var n=_0x461d9a;return r[n(535)](extractError)[n(535)](function(r){return e[_0x411c(515)](t,r)})}function formatErrors(e,r,t){var n=_0x461d9a;return r[n(535)](function(r){return r(e,t)||[]})[n(515)](function(r,e){return r[_0x411c(532)](e)},[])}function getCompileTime(r){var e=_0x461d9a,t=r[e(506)],r=r[e(508)];console[e(525)](chalk.green("compileTime: "[e(532)](t-r," ms")))}function _dropRepeat(r){var n=_0x461d9a;return r[n(515)](function(r,t){var e=n;return r.some(function(r){var e=_0x411c;return r[e(503)]===t[e(503)]})?r:r[e(532)](t)},[])}var BuildLogOutputPlugin=(()=>{var u=_0x461d9a;return _createClass(function r(){var e=_0x411c,t=0<arguments[e(521)]&&void 0!==arguments[0]?arguments[0]:{},n=t[e(566)],n=void 0!==n&&n,t=t[e(567)];_classCallCheck(this,r),this[e(529)]=0,this[e(512)]=0,this[e(505)]=0,this.showCompileTime=n||process[e(564)].showtime===e(562),this[e(560)]=defaultFormatters,this.transformers=defaultTransformers,this[e(567)]=t},[{key:"apply",value:function(r){var u=_0x411c,s=this;r[u(555)][u(528)][u(554)](u(501),function(e){var t=u,r=(s[t(514)](e),e[t(563)]),n=r[t(553)],o=r[t(511)],a=e[t(558)](),i=e.hasWarnings();setTimeout(function(){var r=t;a&&s[r(541)](n,r(516)),i&&s.displayErrors(o,"warning"),s[r(551)](e,n,o),s[r(518)](),s.showCompileTime&&getCompileTime(e)})})}},{key:u(514),value:function(r){var e=u;r[e(563)].warnings=_dropRepeat(r.compilation[e(511)]),r[e(563)][e(553)]=_dropRepeat(r.compilation.errors)}},{key:u(551),value:function(r,e){var t=u,n=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:[],r=r[t(563)].extraInfo||{},a=r[t(529)],a=void 0===a?0:a,i=r[t(569)],i=void 0===i?0:i,r=r[t(505)],r=void 0===r?0:r;this[t(529)]=e[t(521)]+a,this[t(512)]=i,this[t(505)]=r,o[t(559)](function(r){var e=t,r=r.message;/^NOTE:/[e(534)](cleanMessage(r))?n[e(505)]++:n.warningCount++})}},{key:"printCompileResult",value:function(){var r,e=u,t=this[e(529)],n=this[e(512)],o=this[e(505)];0<t+n+o?(r=e(t?510:509),t=Object.assign({},t?{ERROR:t}:{},n?{WARN:n}:{},o?{NOTE:o}:{}),console[e(520)](chalk.yellow(e(523)[e(532)](r)[e(532)](JSON[e(573)](t))))):console[e(525)](chalk[e(546)]("\nCOMPILE RESULT:SUCCESS"))}},{key:u(541),value:function(r,e){var t=u;formatErrors(transformErrors(r,this.transformers),this.formatters,e)[t(559)](function(r){"error"===e&&console[t(516)](chalk.red(cleanMessage(r))),"warning"===e&&console.warn(chalk.yellow(cleanMessage(r)))})}},{key:"getBuildMsg",value:function(r,e){var t=u;return formatErrors(transformErrors(r,this.transformers),this[t(560)],e).map(function(r){return cleanMessage(r)})}}])})();module[_0x461d9a(498)]=BuildLogOutputPlugin;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x143905=_0x4132;function _0x4132(r,t){var e=_0x1534();return(_0x4132=function(r,t){return e[r-=208]})(r,t)}function _0x1534(){var r=["directives","splice","942376LRpYah","9JkPuuI","2530uVbCqC","348781PejreQ","exports","3001719AXezxU","5496lOzFgT","3Kbodwq","790376vzXqWJ","use strict","value","80fpKzSb","1181158wfmJUR","324714ybfiQW"];return(_0x1534=function(){return r})()}(()=>{for(var r=_0x4132,t=_0x1534();;)try{if(232932==+parseInt(r(220))+-parseInt(r(214))/2+parseInt(r(208))/3*(parseInt(r(209))/4)+parseInt(r(219))/5*(-parseInt(r(223))/6)+-parseInt(r(222))/7+-parseInt(r(217))/8*(parseInt(r(218))/9)+parseInt(r(212))/10*(parseInt(r(213))/11))break;t.push(t.shift())}catch(r){t.push(t.shift())}})(),module[_0x143905(221)]=function(){return{visitor:{Program:{exit:function(r){for(var t=_0x4132,e=r.node[t(215)],n=e.length-1;0<=n;n--)e[n][t(211)][t(211)]===t(210)&&e[t(216)](n,1)}}}}};
|
package/lib/common/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x244722=_0xb019;function _0xb019(r,e){var t=_0x3d00();return(_0xb019=function(r,e){return t[r-=172]})(r,e)}function _0x3d00(){var r=["ASCF_SRC_PATH","existsSync","src/main/resources/rawfile","_versionType","json5","parse","toString","utf-8","clearResource","join","map","debug","cwd","release","1675683rFMlSp","2979630PZsXhs","ascf","versionType","PROJECT_CONFIG","sync","ascf_build","ASCF_BUILD_PATH","readJsonFile","writeFileSync","concat","production","NODE_ENV","parse json file "," error","all","uglifyjs","isPrivatePkg","includes","true","1253466TcIjbH","ERROR: Write JSON file failed: ","2568020ocHhfY","18601CKiBcD","149610TEhgTA","RAWFILE_DIR","ascf.config.json","IS_PRD","1vPoaTG","env","20sIDBwb","ascfRoot","6830jaHXyg","readFileSync","stringify","2717032lbFJEJ","level","resolve","name","projectRoot","18KuyvjO","ascf/ascf_src"];return(_0x3d00=function(){return r})()}(()=>{for(var r=_0xb019,e=_0x3d00();;)try{if(387658==-parseInt(r(217))*(parseInt(r(209))/2)+parseInt(r(189))/3+parseInt(r(219))/4*(-parseInt(r(213))/5)+parseInt(r(190))/6+-parseInt(r(211))/7+-parseInt(r(224))/8*(parseInt(r(173))/9)+parseInt(r(221))/10*(parseInt(r(212))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var rimraf=require("rimraf"),fs=require("fs"),path=require("path"),JSON5=require(_0x244722(179)),chalk=require("../ascf-compiler/chalk/bundle.cjs"),projectPath=(chalk[_0x244722(225)]=1,process[_0x244722(218)][_0x244722(172)]||process[_0x244722(187)]()),projectCfg=readProjectCfgJson(projectPath)||{},srcPath=path.resolve(projectPath,_0x244722(174));function readJsonFile(e){var t=_0x244722;if(!fs[t(176)](e))return{};var r={};try{r=JSON5[t(180)](fs[t(222)](e,t(182)).toString())}catch(r){throw new Error(t(202)[t(199)](e,t(203)))}return r}function writeJsonFile(r,e){var t=_0x244722;try{fs[t(198)](r,JSON[t(223)](e,null,2))}catch(r){throw t(210).concat(r)}}function initVersionType(){var r=_0x244722,e=process.env[r(192)];global[r(178)]=r(186),e&&["debug","beta","release"][r(207)](e)?global[r(178)]=e:(e=process[r(218)][r(205)]===r(208),global._versionType=r(e?188:186))}function readProjectCfgJson(r){var e,t=_0x244722,r=path[t(184)](r,t(215));return e=fs[t(176)](r)?JSON[t(180)](fs[t(222)](r)[t(181)]()):e}initVersionType(),exports[_0x244722(216)]=process[_0x244722(218)][_0x244722(201)]===_0x244722(200),exports.PROJECT_PATH=projectPath,exports[_0x244722(193)]=projectCfg,exports[_0x244722(175)]=projectCfg[_0x244722(220)]?path[_0x244722(226)](srcPath,projectCfg.ascfRoot):srcPath,exports[_0x244722(196)]=path.resolve(projectPath,_0x244722(191),_0x244722(195)),exports[_0x244722(214)]=_0x244722(177),exports.TOOLKIT_PATH=path.join(__dirname,"..",".."),exports[_0x244722(183)]=function(r){var e=_0x244722;return Promise[e(204)](r[e(185)](function(e){if(fs.existsSync(e))return new Promise(function(r){rimraf[_0xb019(194)](e),r()})}))},exports[_0x244722(206)]=function(){var r=_0x244722,e=readJsonFile(path[r(184)](__dirname,"..","..","package.json"))[r(227)];return"@atomicservice/ascf-toolkit"!==e&&e[r(207)]("/")},exports[_0x244722(197)]=readJsonFile,exports.writeJsonFile=writeJsonFile;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _0x691f3b=_0x25c8;function _0x25c8(e,t){var r=_0x1427();return(_0x25c8=function(e,t){return r[e-=295]})(e,t)}function _0x1427(){var e=["WARNING: ASCF Shared Library can be upgraded.","187202VicZXx","info","1524632FNxNRI","semver","latest[39m:","modules","warn","package.json","trim","toLowerCase","12mLJvic","latest","PROJECT_PATH","4607300UsrfbM","6560268gbSEuX","isLatestAscfToolkit","readJsonFile","isLatestAscfHar","2436553Ewjtze","toString","npm view @atomicservice/ascf-toolkit version","yellow","TOOLKIT_PATH","length",'WARNING: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit ',"version","522056PrvPby","oh-package.json5","INFO: ASCF Shared Library can be upgraded.","execSync","ohpm info @atomicservice/ascfapi -ft 10000","@atomicservice/ascfapi","srcPath","ERROR: build-profile.json5 file modules is null","5041815UEYwqK","join","split",'INFO: @atomicservice/ascf-toolkit can be upgraded, execute command "npm update -g @atomicservice/ascf-toolkit ',"concat","./utils","satisfies","child_process"];return(_0x1427=function(){return e})()}(()=>{for(var e=_0x25c8,t=_0x1427();;)try{if(644764==-parseInt(e(320))+parseInt(e(337))/2*(parseInt(e(304))/3)+-parseInt(e(307))/4+parseInt(e(328))/5+parseInt(e(308))/6+-parseInt(e(312))/7+parseInt(e(296))/8)break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var utils=require(_0x691f3b(333)),path=require("path"),_require=require(_0x691f3b(297)),satisfies=_require[_0x691f3b(334)],_require2=require(_0x691f3b(335)),execSync=_require2[_0x691f3b(323)],chalk=require("../ascf-compiler/chalk/bundle.cjs");function getEntryPackageName(){var e=_0x691f3b,t=utils[e(310)](path.resolve(utils[e(306)],"build-profile.json5"));if(t[e(299)]&&0!==t[e(299)].length)return t[e(299)][0][e(326)];throw e(327)}chalk.level=1,exports[_0x691f3b(309)]=function(){var e=_0x691f3b,t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],r=utils.readJsonFile(path[e(329)](utils[e(316)],e(301)))[e(319)],a=execSync(e(314),{timeout:5e3})[e(313)]()[e(302)]();r!==a&&(t?console[e(300)](chalk[e(315)](e(318)[e(332)](a,'"'))):console.info(chalk.green(e(331)[e(332)](a,'"'))))},exports[_0x691f3b(311)]=function(){var e,t=_0x691f3b,r=0<arguments[t(317)]&&void 0!==arguments[0]&&arguments[0],a=path.join(utils[t(306)],getEntryPackageName(),t(321)),i=utils[t(310)](a).dependencies[t(325)];i?(e=execSync(t(324),{timeout:5e3})[t(313)]()[t(330)](t(298))[1][t(330)]("\n")[0][t(302)](),satisfies(e,i)||i[t(303)]()===t(305)||(r?console[t(300)](chalk.yellow(t(336))):console[t(295)](chalk.green(t(322))))):console[t(300)](chalk.yellow("WARNING: "[t(332)](a," does not depend on ASCF Shared Library. Select a project that does, or create a new one.")))};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x2b4b2d=_0x1602;function _0x3d53(){var r=['","folderUrl":"',"completion","throw","existsVerifyLog","65958civuED","confirmConverterFun","command","folderUrl"," is not iterable","toString","asyncIterator","forEach","WARNING: Get @atomicservice/ascf info failed.","verbose","mode","_sent","end","arg","yellow","level","length","getPrototypeOf","yes","watch","push","672567cbqdeg","env","NODE_ENV","completed","sent","plugins","charAt","WARNING: Get @atomicservice/ascf-toolkit version failed: ","log","apply","prototype","AsyncIterator","async","tryLoc","721EObjvB","chdir","call","then","toStringTag","catchLoc","@@iterator","Generator is already running","tryEntries","infrastructureLogging","_ascfDebug","70264bemIsW","slice","3269960WIyBIi","./ascf-compiler/chalk/bundle.cjs","complete","3177801MGaBUL","method","info","iterator result is not an object","concat","validate","12lUZkwb","afterLoc","path","clear","finallyLoc","type","error","ascf/ascf_src","run","__await","prev","defineProperty","isLatestAscfToolkit","suspendedStart","projectRoot","check","iterator","reason:","[object Generator]","normal","next","development","catch","The iterator does not provide a '","ASCF uncaught error","webpack","done","./ascf-compiler/web.webpack.config.js","keys","./common/utils.js","illegal catch attempt","checkInputPathFun","checkPath","_invoke","28qQXmFq","continue","./ascf-converter/features/converter.js","GeneratorFunction","resolve","clearResource","rval","mark","__proto__","_isAscfMode","exit","361343tfQtok","abrupt","wrap","function","warn","360FIlgcQ","874255jRdVNr","reverse","Generator","2muuDIX","setPrototypeOf","symbol","pop","EnvironmentPlugin","break","ASCF unhandled rejection at:","value","create","resultName","isGeneratorFunction","executing","input","delegate","errorMessage","displayName","progress","object","return","constructor","uncaughtException",'"command":"',"red","output","reset"];return(_0x3d53=function(){return r})()}function _0x1602(r,t){var e=_0x3d53();return(_0x1602=function(r,t){return e[r-=283]})(r,t)}function _typeof(r){var e=_0x1602;return(_typeof=e(329)==typeof Symbol&&e(337)==typeof Symbol[e(297)]?function(r){return typeof r}:function(r){var t=e;return r&&t(329)==typeof Symbol&&r.constructor===Symbol&&r!==Symbol[t(395)]?t(337):typeof r})(r)}function _regeneratorRuntime(){var s=_0x1602;_regeneratorRuntime=function(){return c};var f,c={},r=Object[s(395)],l=r.hasOwnProperty,h=Object[s(292)]||function(r,t,e){var n=s;r[t]=e[n(342)]},t=s(329)==typeof Symbol?Symbol:{},i=t[s(297)]||s(405),e=t[s(370)]||"@@asyncIterator",n=t[s(403)]||"@@toStringTag";function o(r,t,e){return Object[s(292)](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(395)]instanceof b?t:b,t=Object.create(t[u(395)]),n=new L(n||[]);return h(t,u(314),{value:(o=r,i=e,a=n,c=v,function(r,t){var e=_0x1602;if(c===g)throw Error(e(406));if(c===d){if(e(362)===r)throw t;return{value:f,done:!0}}for(a[e(416)]=r,a[e(377)]=t;;){var n=a[e(348)];if(n){n=function r(t,e){var n=s,o=e.method,i=t.iterator[o];if(i===f)return e[n(348)]=null,n(362)===o&&t[n(297)].return&&(e[n(416)]="return",e[n(377)]=f,r(t,e),"throw"===e[n(416)])||"return"!==o&&(e[n(416)]="throw",e.arg=new TypeError(n(304)+o+"' method")),m;o=p(i,t[n(297)],e.arg);if(n(362)===o[n(286)])return e[n(416)]=n(362),e[n(377)]=o.arg,e.delegate=null,m;i=o[n(377)];return i?i.done?(e[t[n(344)]]=i[n(342)],e[n(301)]=t.nextLoc,n(353)!==e.method&&(e[n(416)]=n(301),e[n(377)]=f),e.delegate=null,m):i:(e[n(416)]=n(362),e[n(377)]=new TypeError(n(418)),e[n(348)]=null,m)}(n,a);if(n){if(n===m)continue;return n}}if(e(301)===a[e(416)])a[e(389)]=a[e(375)]=a[e(377)];else if(e(362)===a[e(416)]){if(c===v)throw c=d,a[e(377)];a.dispatchException(a[e(377)])}else"return"===a[e(416)]&&a[e(327)](e(353),a.arg);c=g;n=p(o,i,a);if("normal"===n[e(286)]){if(c=a[e(307)]?d:y,n.arg===m)continue;return{value:n[e(377)],done:a[e(307)]}}"throw"===n.type&&(c=d,a[e(416)]=e(362),a.arg=n[e(377)])}})}),t}function p(r,t,e){var n=s;try{return{type:n(300),arg:r[n(401)](t,e)}}catch(r){return{type:n(362),arg:r}}}c[s(328)]=u;var v=s(294),y="suspendedYield",g=s(346),d=s(388),m={};function b(){}function a(){}function _(){}var t={},x=(o(t,i,function(){return this}),Object[s(381)]),x=x&&x(x(G([]))),w=(x&&x!==r&&l[s(401)](x,i)&&(t=x),_[s(395)]=b[s(395)]=Object[s(343)](t));function k(r){var t=s;[t(301),"throw",t(353)][t(371)](function(t){o(r,t,function(r){return this[_0x1602(314)](t,r)})})}function j(c,u){var t,o=s;h(this,o(314),{value:function(e,n){function r(){return new u(function(r,t){!function t(r,e,n,o){var i,a=_0x1602,r=p(c[r],c,e);if("throw"!==r[a(286)])return(e=(i=r[a(377)]).value)&&a(352)==_typeof(e)&&l[a(401)](e,a(290))?u[a(319)](e[a(290)])[a(402)](function(r){t(a(301),r,n,o)},function(r){t(a(362),r,n,o)}):u[a(319)](e)[a(402)](function(r){i[a(342)]=r,n(i)},function(r){return t(a(362),r,n,o)});o(r.arg)}(e,n,r,t)})}return t=t?t[o(402)](r,r):r()}})}function I(r){var t=s,e={tryLoc:r[0]};1 in r&&(e[t(404)]=r[1]),2 in r&&(e.finallyLoc=r[2],e[t(422)]=r[3]),this[t(407)][t(384)](e)}function E(r){var t=s,e=r[t(361)]||{};e[t(286)]=t(300),delete e[t(377)],r.completion=e}function L(r){var t=s;this[t(407)]=[{tryLoc:"root"}],r[t(371)](I,this),this[t(359)](!0)}function G(e){var n=s;if(e||""===e){var o,r=e[i];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e[n(380)]))return o=-1,(r=function r(){for(var t=n;++o<e[t(380)];)if(l.call(e,o))return r[t(342)]=e[o],r.done=!1,r;return r[t(342)]=f,r[t(307)]=!0,r})[n(301)]=r}throw new TypeError(_typeof(e)+n(368))}return a[s(395)]=_,h(w,s(354),{value:_,configurable:!0}),h(_,s(354),{value:a,configurable:!0}),a.displayName=o(_,n,s(318)),c[s(345)]=function(r){var t=s,r=t(329)==typeof r&&r[t(354)];return!!r&&(r===a||t(318)===(r[t(350)]||r.name))},c[s(322)]=function(r){var t=s;return Object[t(336)]?Object.setPrototypeOf(r,_):(r[t(323)]=_,o(r,n,t(318))),r[t(395)]=Object.create(w),r},c.awrap=function(r){return{__await:r}},k(j[s(395)]),o(j[s(395)],e,function(){return this}),c[s(396)]=j,c[s(397)]=function(r,t,e,n,o){var i=s,a=(void 0===o&&(o=Promise),new j(u(r,t,e,n),o));return c.isGeneratorFunction(t)?a:a[i(301)]()[i(402)](function(r){var t=i;return r[t(307)]?r[t(342)]:a.next()})},k(w),o(w,n,s(334)),o(w,i,function(){return this}),o(w,s(369),function(){return s(299)}),c[s(309)]=function(r){var t,n=s,o=Object(r),i=[];for(t in o)i[n(384)](t);return i[n(333)](),function r(){for(var t=n;i[t(380)];){var e=i[t(338)]();if(e in o)return r.value=e,r[t(307)]=!1,r}return r[t(307)]=!0,r}},c.values=G,L.prototype={constructor:L,reset:function(r){var t=s;if(this.prev=0,this[t(301)]=0,this.sent=this._sent=f,this.done=!1,this[t(348)]=null,this[t(416)]=t(301),this[t(377)]=f,this[t(407)][t(371)](E),!r)for(var e in this)"t"===e[t(391)](0)&&l[t(401)](this,e)&&!isNaN(+e[t(411)](1))&&(this[e]=f)},stop:function(){var r=s,t=(this.done=!0,this[r(407)][0][r(361)]);if(r(362)===t.type)throw t[r(377)];return this[r(321)]},dispatchException:function(n){var o=s;if(this[o(307)])throw n;var i=this;function r(r,t){var e=o;return a[e(286)]=e(362),a[e(377)]=n,i.next=r,t&&(i[e(416)]=e(301),i[e(377)]=f),!!t}for(var t=this[o(407)][o(380)]-1;0<=t;--t){var e=this.tryEntries[t],a=e[o(361)];if("root"===e[o(398)])return r(o(376));if(e.tryLoc<=this[o(291)]){var c=l[o(401)](e,o(404)),u=l[o(401)](e,o(285));if(c&&u){if(this[o(291)]<e[o(404)])return r(e[o(404)],!0);if(this.prev<e[o(285)])return r(e[o(285)])}else if(c){if(this[o(291)]<e[o(404)])return r(e.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this[o(291)]<e[o(285)])return r(e[o(285)])}}}},abrupt:function(r,t){for(var e=s,n=this[e(407)][e(380)]-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&l[e(401)](o,e(285))&&this[e(291)]<o[e(285)]){var i=o;break}}var a=(i=i&&(e(340)===r||e(316)===r)&&i[e(398)]<=t&&t<=i[e(285)]?null:i)?i[e(361)]:{};return a[e(286)]=r,a.arg=t,i?(this[e(416)]="next",this[e(301)]=i.finallyLoc,m):this[e(414)](a)},complete:function(r,t){var e=s;if(e(362)===r[e(286)])throw r[e(377)];return e(340)===r[e(286)]||e(316)===r[e(286)]?this.next=r.arg:e(353)===r[e(286)]?(this.rval=this.arg=r.arg,this[e(416)]=e(353),this.next=e(376)):"normal"===r[e(286)]&&t&&(this.next=t),m},finish:function(r){for(var t=s,e=this[t(407)].length-1;0<=e;--e){var n=this.tryEntries[e];if(n[t(285)]===r)return this[t(414)](n[t(361)],n[t(422)]),E(n),m}},catch:function(r){for(var t=s,e=this.tryEntries[t(380)]-1;0<=e;--e){var n,o,i=this[t(407)][e];if(i[t(398)]===r)return n=i[t(361)],t(362)===n[t(286)]&&(o=n[t(377)],E(i)),o}throw Error(t(311))},delegateYield:function(r,t,e){var n=s;return this[n(348)]={iterator:G(r),resultName:t,nextLoc:e},n(301)===this[n(416)]&&(this.arg=f),m}},c}function asyncGeneratorStep(r,t,e,n,o,i,a){var c=_0x1602;try{var u=r[i](a),s=u[c(342)]}catch(r){return void e(r)}u[c(307)]?t(s):Promise[c(319)](s)[c(402)](n,o)}function _asyncToGenerator(c){return function(){var r=this,a=arguments;return new Promise(function(t,e){var n=c.apply(r,a);function o(r){asyncGeneratorStep(n,t,e,o,i,_0x1602(301),r)}function i(r){asyncGeneratorStep(n,t,e,o,i,_0x1602(362),r)}o(void 0)})}}(()=>{for(var r=_0x1602,t=_0x3d53();;)try{if(618257==+parseInt(r(326))*(parseInt(r(335))/2)+-parseInt(r(385))/3+parseInt(r(315))/4*(parseInt(r(332))/5)+parseInt(r(364))/6*(-parseInt(r(399))/7)+parseInt(r(410))/8*(parseInt(r(331))/9)+parseInt(r(412))/10+-parseInt(r(415))/11*(parseInt(r(421))/12))break;t.push(t.shift())}catch(r){t.push(t.shift())}})();var chalk=require(_0x2b4b2d(413));function convert(r){return _convert[_0x2b4b2d(394)](this,arguments)}function _convert(){var r=_0x2b4b2d;return(_convert=_asyncToGenerator(_regeneratorRuntime()[r(322)](function r(t){var n,o,i;return _regeneratorRuntime().wrap(function(r){for(var e=_0x1602;;)switch(r[e(291)]=r[e(301)]){case 0:if(n=require(e(317)),global._isMiniAppConvertMode=!0,global[e(324)]=!0,process[e(386)].clearResource=t[e(284)]?e(382):"no",i=require(e(310)),o=i.isLatestAscfToolkit,i=i[e(313)],t[e(420)]&&(i(t.input,t[e(358)]),process[e(325)](0)),n[e(312)](t[e(347)]),t[e(296)]){r[e(301)]=12;break}return r.next=10,n[e(365)]({inputPath:t.input,outPath:t[e(358)],confirmAddConfig:!0});case 10:(i=r[e(389)])[e(349)]?console[e(287)](chalk[e(357)](e(356).concat(i[e(366)],'","errorMessage":"')[e(419)](i.errorMessage,'"'))):console[e(417)](chalk.green(e(356).concat(i[e(366)],e(360))[e(419)](i[e(367)],'"')));case 12:setTimeout(function(){var t=e;try{o()}catch(r){console[t(330)](chalk[t(378)](t(392)[t(419)](r,".")))}});case 13:case e(376):return r.stop()}},r)})))[r(394)](this,arguments)}function compile(r,t){return _compile.apply(this,arguments)}function _compile(){var r=_0x2b4b2d;return(_compile=_asyncToGenerator(_regeneratorRuntime().mark(function r(e,n){var o,i,a,c=_0x1602;return _regeneratorRuntime()[c(328)](function(r){for(var t=c;;)switch(r.prev=r[t(301)]){case 0:return o=require(t(283)),process.env[t(295)]=o[t(319)](e),process[t(400)](o[t(319)](e,t(288))),process[t(386)][t(387)]=n[t(374)]?t(302):"production",process[t(386)][t(320)]=n[t(284)]?t(382):"no",o=require(t(306)),r[t(291)]=6,i=require(t(308)),r.next=10,i();case 10:return(i=r[t(389)])[t(390)]=i.plugins||[],i.plugins[t(384)](new o[t(339)]({projectRoot:e})),n[t(351)]&&i[t(390)][t(384)](new o.ProgressPlugin),n.watch&&(i[t(383)]=!0),global._ascfDebug&&(i[t(408)]={level:t(373)}),a=o(i),r[t(301)]=19,run(a);case 19:r[t(301)]=25;break;case 21:r[t(291)]=21,r.t0=r[t(303)](6),console[t(287)](r.t0),process[t(325)](1);case 25:case t(376):return r.stop()}},r,null,[[6,21]])})))[r(394)](this,arguments)}function getAscfToolkitDirname(){return __dirname}function run(r){return new Promise(function(e,o){var i=_0x1602;r[i(289)](function(r,t){var n=i;global[n(409)]&&t&&console[n(393)](t[n(369)]({all:!1,colors:!0,errors:!0,warnings:!0,logging:n(373)})),r&&(console[n(287)](r),o(r)),setTimeout(function(){var t=n,r=require(t(310)),e=r[t(293)],r=r.isLatestAscfHar;try{r(global.existsVerifyLog)}catch(r){console[t(330)](chalk[t(378)](t(372)))}try{e(global[t(363)])}catch(r){console[t(330)](chalk[t(378)](t(392)[t(419)](r,".")))}}),e()})})}chalk[_0x2b4b2d(379)]=1,global._isAscfMode=!0,process.on(_0x2b4b2d(355),function(r){var t=_0x2b4b2d;console[t(287)](t(305),r)}),process.on("unhandledRejection",function(r,t){var e=_0x2b4b2d;console[e(287)](e(341),t,e(298),r)}),module.exports={convert:convert,compile:compile,getAscfToolkitDirname:getAscfToolkitDirname};
|
|
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};
|
|
Binary file
|