@atomicservice/ascf-toolkit 1.0.5-beta.4 → 1.0.6-beta.4
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-base/index.d.ts +12 -2
- package/lib/ascf-base/index.js +1 -1
- package/lib/ascf-compiler/appjson-loader.js +1 -1
- package/lib/ascf-compiler/common/appjson-validator.js +1 -1
- package/lib/ascf-compiler/common/ascf-define.js +1 -0
- package/lib/ascf-compiler/common/beforeLoaderProcess.js +1 -0
- package/lib/ascf-compiler/common/css-runtime-api.js +1 -1
- package/lib/ascf-compiler/common/eventHappenHjs.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/hdc-executor.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/manifest-handler.js +1 -1
- package/lib/ascf-compiler/common/manifest-manager.js +1 -1
- package/lib/ascf-compiler/common/merge-tpl-cmps.js +1 -1
- package/lib/ascf-compiler/common/packoptions-utils.js +1 -1
- package/lib/ascf-compiler/common/quick-generate-subpackage.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/js-parser/parser-babel.js +1 -1
- package/lib/ascf-compiler/js-parser/parser-swc.js +1 -1
- package/lib/ascf-compiler/js-parser/parser.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/before-loader-plugin.js +1 -0
- package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/dynamic-entry-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/quick-service-build-plugin.js +1 -0
- package/lib/ascf-compiler/plugin/replace-module-id-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/require-loader.js +1 -1
- package/lib/ascf-compiler/server/dev-server.js +1 -1
- package/lib/ascf-compiler/server/port-manager.js +1 -1
- package/lib/ascf-compiler/swc-loader.js +1 -1
- package/lib/ascf-compiler/template/attr-utils.js +1 -1
- package/lib/ascf-compiler/template/implicit-model-config.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/trustlist-verify/verify-ignore-files.js +1 -1
- package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
- package/lib/ascf-compiler/web.webpack.config.js +1 -1
- package/lib/ascf-converter/common/commonConfig.js +1 -1
- package/lib/ascf-converter/common/commonUtils.js +1 -1
- package/lib/ascf-converter/common/path-validator.js +1 -1
- package/lib/ascf-converter/common/textDocument.js +1 -1
- package/lib/ascf-converter/compiler-utils/parse5.bundle.js +1 -1
- package/lib/ascf-converter/convertManager.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/ascf-converter/report/js/index.js +1 -1
- package/lib/ascf-sign-tools/cli.d.ts +1 -0
- package/lib/ascf-sign-tools/cli.js +2 -0
- package/lib/ascf-sign-tools/index.d.ts +17 -0
- package/lib/ascf-sign-tools/index.js +1 -0
- package/lib/bin/ascf.js +1 -1
- package/lib/commands/ascfbuild/index.js +1 -1
- package/lib/commands/build-npm/index.js +1 -1
- package/lib/commands/compile.js +1 -0
- package/lib/commands/convert.js +1 -0
- package/lib/commands/debugger/index.js +1 -1
- package/lib/commands/quickservice/index.js +1 -0
- package/lib/common/config.js +1 -1
- package/lib/common/constants.js +1 -0
- package/lib/common/log4js.js +1 -1
- package/lib/common/logger-plugin.js +1 -1
- package/lib/common/remove-strict-mode-plugin.js +1 -1
- package/lib/common/string-utils.js +1 -1
- package/lib/common/utils.js +1 -1
- package/lib/common/version-check.js +1 -1
- package/lib/index.js +1 -1
- package/lib/tools/release_64/SSL/ct_log_list.cnf +9 -0
- package/lib/tools/release_64/SSL/ct_log_list.cnf.dist +9 -0
- package/lib/tools/release_64/SSL/misc/CA.pl +215 -0
- package/lib/tools/release_64/SSL/misc/tsget.pl +200 -0
- package/lib/tools/release_64/SSL/openssl.cnf +350 -0
- package/lib/tools/release_64/SSL/openssl.cnf.dist +350 -0
- package/lib/tools/release_64/bin/c_rehash.pl +251 -0
- package/lib/tools/release_64/bin/libcrypto-1_1-x64.dll +0 -0
- package/lib/tools/release_64/bin/libssl-1_1-x64.dll +0 -0
- package/lib/tools/release_64/bin/openssl.exe +0 -0
- package/package.json +21 -15
- package/lib/ascf-compiler/watch/watch.js +0 -1
package/lib/ascf-base/index.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ declare class AscfDebugger {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
type BuildModeType = 'debug' | 'release';
|
|
37
|
-
type BuildTargetType = 'atomicservice' | '
|
|
37
|
+
type BuildTargetType = 'atomicservice' | 'crossAtomicService';
|
|
38
38
|
type AscfBuilderOptions = {
|
|
39
39
|
projectRoot?: string;
|
|
40
40
|
deviceId?: string;
|
|
@@ -65,4 +65,14 @@ declare class AscfBuilder {
|
|
|
65
65
|
clean(): Promise<void>;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
|
|
68
|
+
declare function getPath(...args: any[]): string;
|
|
69
|
+
declare function getNodePath(): string;
|
|
70
|
+
declare function getNpmPath(): string;
|
|
71
|
+
declare function getOhpmPath(): string;
|
|
72
|
+
declare function getHvigorwPath(): string;
|
|
73
|
+
declare function getDevEcoSdkHome(): string;
|
|
74
|
+
declare function getHdcPath(): string;
|
|
75
|
+
|
|
76
|
+
declare function openInBrowser(url: any, browserName?: string): void;
|
|
77
|
+
|
|
78
|
+
export { ASCF_LOG_FILE, AscfBuilder, type AscfBuilderOptions, AscfDebugger, type AscfDebuggerOptions, type BuildModeType, type BuildTargetType, getDevEcoSdkHome, getHdcPath, getHvigorwPath, getLogger, getNodePath, getNpmPath, getOhpmPath, getPath, openInBrowser, setLoggerConfig };
|
package/lib/ascf-base/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _ref,_0x19cf7b=_0x5be3;function _regeneratorRuntime(){var s=_0x5be3;_regeneratorRuntime=function(){return u};var f,u={},e=Object[s(411)],l=e[s(430)],h=Object[s(299)]||function(e,r,t){var n=s;e[r]=t[n(252)]},r=s(506)==typeof Symbol?Symbol:{},o=r[s(266)]||"@@iterator",t=r[s(264)]||s(265),n=r[s(387)]||"@@toStringTag";function a(e,r,t){return Object[s(299)](e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}),e[r]}try{a({},"")}catch(e){a=function(e,r,t){return e[r]=t}}function c(e,r,t,n){var a,o,i,u,c=s,r=r&&r[c(411)]instanceof d?r:d,r=Object[c(233)](r[c(411)]),c=new P(n||[]);return h(r,"_invoke",{value:(a=e,o=t,i=c,u=v,function(e,r){var t=_0x5be3;if(u===b)throw Error(t(433));if(u===y){if(t(548)===e)throw r;return{value:f,done:!0}}for(i[t(432)]=e,i[t(473)]=r;;){var n=i[t(456)];if(n){n=function e(r,t){var n=s,a=t[n(432)],o=r[n(266)][a];if(o===f)return t[n(456)]=null,n(548)===a&&r.iterator.return&&(t.method=n(536),t.arg=f,e(r,t),n(548)===t[n(432)])||n(536)!==a&&(t.method=n(548),t[n(473)]=new TypeError(n(461)+a+n(428))),m;a=p(o,r.iterator,t[n(473)]);if(n(548)===a[n(287)])return t[n(432)]="throw",t[n(473)]=a[n(473)],t[n(456)]=null,m;o=a.arg;return o?o.done?(t[r[n(552)]]=o[n(252)],t[n(358)]=r[n(262)],"return"!==t[n(432)]&&(t[n(432)]=n(358),t[n(473)]=f),t.delegate=null,m):o:(t[n(432)]=n(548),t[n(473)]=new TypeError(n(471)),t.delegate=null,m)}(n,i);if(n){if(n===m)continue;return n}}if(t(358)===i[t(432)])i.sent=i[t(249)]=i[t(473)];else if(t(548)===i.method){if(u===v)throw u=y,i[t(473)];i.dispatchException(i.arg)}else"return"===i.method&&i[t(398)](t(536),i[t(473)]);u=b;n=p(a,o,i);if(t(229)===n.type){if(u=i[t(284)]?y:_,n[t(473)]===m)continue;return{value:n[t(473)],done:i[t(284)]}}t(548)===n[t(287)]&&(u=y,i.method=t(548),i[t(473)]=n[t(473)])}})}),r}function p(e,r,t){var n=s;try{return{type:n(229),arg:e.call(r,t)}}catch(e){return{type:n(548),arg:e}}}u[s(485)]=c;var v="suspendedStart",_=s(466),b=s(237),y=s(549),m={};function d(){}function i(){}function g(){}var r={},x=(a(r,o,function(){return this}),Object[s(533)]),x=x&&x(x(O([]))),w=(x&&x!==e&&l[s(253)](x,o)&&(r=x),g[s(411)]=d[s(411)]=Object[s(233)](r));function k(e){var r=s;[r(358),r(548),r(536)][r(391)](function(r){a(e,r,function(e){return this._invoke(r,e)})})}function R(u,c){var r,a=s;h(this,a(370),{value:function(t,n){function e(){return new c(function(e,r){!function r(e,t,n,a){var o,i=_0x5be3,e=p(u[e],u,t);if(i(548)!==e.type)return(t=(o=e.arg).value)&&i(508)==_typeof(t)&&l[i(253)](t,i(452))?c[i(307)](t.__await)[i(366)](function(e){r(i(358),e,n,a)},function(e){r(i(548),e,n,a)}):c[i(307)](t)[i(366)](function(e){o[i(252)]=e,n(o)},function(e){return r(i(548),e,n,a)});a(e.arg)}(t,n,e,r)})}return r=r?r[a(366)](e,e):e()}})}function T(e){var r=s,t={tryLoc:e[0]};1 in e&&(t[r(488)]=e[1]),2 in e&&(t[r(544)]=e[2],t.afterLoc=e[3]),this[r(303)][r(317)](t)}function S(e){var r=s,t=e[r(451)]||{};t[r(287)]=r(229),delete t.arg,e[r(451)]=t}function P(e){var r=s;this[r(303)]=[{tryLoc:"root"}],e[r(391)](T,this),this.reset(!0)}function O(t){var n=s;if(t||""===t){var a,e=t[o];if(e)return e[n(253)](t);if(n(506)==typeof t[n(358)])return t;if(!isNaN(t.length))return a=-1,(e=function e(){for(var r=n;++a<t[r(378)];)if(l[r(253)](t,a))return e[r(252)]=t[a],e[r(284)]=!1,e;return e[r(252)]=f,e[r(284)]=!0,e})[n(358)]=e}throw new TypeError(_typeof(t)+" is not iterable")}return i[s(411)]=g,h(w,s(315),{value:g,configurable:!0}),h(g,"constructor",{value:i,configurable:!0}),i.displayName=a(g,n,s(333)),u[s(422)]=function(e){var r=s,e="function"==typeof e&&e.constructor;return!!e&&(e===i||r(333)===(e[r(540)]||e[r(305)]))},u[s(311)]=function(e){var r=s;return Object[r(296)]?Object[r(296)](e,g):(e[r(285)]=g,a(e,n,r(333))),e[r(411)]=Object[r(233)](w),e},u.awrap=function(e){return{__await:e}},k(R.prototype),a(R[s(411)],t,function(){return this}),u[s(522)]=R,u[s(460)]=function(e,r,t,n,a){var o=s,i=(void 0===a&&(a=Promise),new R(c(e,r,t,n),a));return u[o(422)](r)?i:i[o(358)]()[o(366)](function(e){var r=o;return e.done?e.value:i[r(358)]()})},k(w),a(w,n,s(449)),a(w,o,function(){return this}),a(w,"toString",function(){return s(256)}),u[s(459)]=function(e){var r,n=s,a=Object(e),o=[];for(r in a)o[n(317)](r);return o[n(257)](),function e(){for(var r=n;o[r(378)];){var t=o[r(475)]();if(t in a)return e[r(252)]=t,e.done=!1,e}return e[r(284)]=!0,e}},u[s(286)]=O,P[s(411)]={constructor:P,reset:function(e){var r=s;if(this[r(462)]=0,this[r(358)]=0,this[r(339)]=this[r(249)]=f,this[r(284)]=!1,this[r(456)]=null,this[r(432)]="next",this[r(473)]=f,this[r(303)].forEach(S),!e)for(var t in this)"t"===t[r(500)](0)&&l[r(253)](this,t)&&!isNaN(+t[r(546)](1))&&(this[t]=f)},stop:function(){var e=s,r=(this[e(284)]=!0,this[e(303)][0][e(451)]);if("throw"===r[e(287)])throw r[e(473)];return this[e(357)]},dispatchException:function(n){var a=s;if(this[a(284)])throw n;var o=this;function e(e,r){var t=a;return i.type=t(548),i[t(473)]=n,o[t(358)]=e,r&&(o[t(432)]=t(358),o[t(473)]=f),!!r}for(var r=this.tryEntries[a(378)]-1;0<=r;--r){var t=this[a(303)][r],i=t[a(451)];if(a(468)===t[a(515)])return e(a(479));if(t[a(515)]<=this[a(462)]){var u=l[a(253)](t,a(488)),c=l[a(253)](t,a(544));if(u&&c){if(this[a(462)]<t.catchLoc)return e(t[a(488)],!0);if(this[a(462)]<t.finallyLoc)return e(t[a(544)])}else if(u){if(this[a(462)]<t[a(488)])return e(t[a(488)],!0)}else{if(!c)throw Error(a(457));if(this[a(462)]<t[a(544)])return e(t.finallyLoc)}}}},abrupt:function(e,r){for(var t=s,n=this[t(303)][t(378)]-1;0<=n;--n){var a=this[t(303)][n];if(a.tryLoc<=this[t(462)]&&l[t(253)](a,t(544))&&this.prev<a[t(544)]){var o=a;break}}var i=(o=o&&(t(476)===e||"continue"===e)&&o[t(515)]<=r&&r<=o[t(544)]?null:o)?o[t(451)]:{};return i[t(287)]=e,i[t(473)]=r,o?(this.method=t(358),this[t(358)]=o[t(544)],m):this[t(231)](i)},complete:function(e,r){var t=s;if(t(548)===e[t(287)])throw e[t(473)];return t(476)===e.type||t(484)===e[t(287)]?this[t(358)]=e[t(473)]:t(536)===e[t(287)]?(this[t(357)]=this[t(473)]=e.arg,this[t(432)]=t(536),this.next=t(479)):"normal"===e.type&&r&&(this.next=r),m},finish:function(e){for(var r=s,t=this[r(303)].length-1;0<=t;--t){var n=this[r(303)][t];if(n.finallyLoc===e)return this[r(231)](n[r(451)],n[r(399)]),S(n),m}},catch:function(e){for(var r=s,t=this[r(303)][r(378)]-1;0<=t;--t){var n,a,o=this.tryEntries[t];if(o[r(515)]===e)return n=o[r(451)],r(548)===n[r(287)]&&(a=n[r(473)],S(o)),a}throw Error(r(245))},delegateYield:function(e,r,t){var n=s;return this[n(456)]={iterator:O(e),resultName:r,nextLoc:t},"next"===this[n(432)]&&(this[n(473)]=f),m}},u}function ownKeys(t,e){var r,n=_0x5be3,a=Object[n(459)](t);return Object[n(526)]&&(r=Object[n(526)](t),e&&(r=r.filter(function(e){var r=n;return Object[r(406)](t,e)[r(504)]})),a.push[n(486)](a,r)),a}function _objectSpread(t){for(var n=_0x5be3,e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(a),!0).forEach(function(e){_defineProperty(t,e,a[e])}):Object[n(367)]?Object[n(393)](t,Object[n(367)](a)):ownKeys(Object(a))[n(391)](function(e){var r=n;Object.defineProperty(t,e,Object[r(406)](a,e))})}return t}function _defineProperty(e,r,t){var n=_0x5be3;return(r=_toPropertyKey(r))in e?Object[n(299)](e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function asyncGeneratorStep(e,r,t,n,a,o,i){var u=_0x5be3;try{var c=e[o](i),s=c[u(252)]}catch(e){return void t(e)}c[u(284)]?r(s):Promise[u(307)](s).then(n,a)}function _asyncToGenerator(c){return function(){var e=this,u=arguments;return new Promise(function(r,t){var n=_0x5be3,a=c[n(486)](e,u);function o(e){asyncGeneratorStep(a,r,t,o,i,n(358),e)}function i(e){asyncGeneratorStep(a,r,t,o,i,n(548),e)}o(void 0)})}}function _classCallCheck(e,r){var t=_0x5be3;if(!(e instanceof r))throw new TypeError(t(543))}function _defineProperties(e,r){for(var t=_0x5be3,n=0;n<r[t(378)];n++){var a=r[n];a[t(504)]=a.enumerable||!1,a[t(503)]=!0,t(252)in a&&(a[t(255)]=!0),Object[t(299)](e,_toPropertyKey(a[t(542)]),a)}}function _createClass(e,r,t){var n=_0x5be3;return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,n(411),{writable:!1}),e}function _toPropertyKey(e){var r=_0x5be3,e=_toPrimitive(e,r(414));return r(424)==_typeof(e)?e:e+""}function _toPrimitive(e,r){var t=_0x5be3;if(t(508)!=_typeof(e)||!e)return e;var n=e[Symbol[t(474)]];if(void 0===n)return(t(414)===r?String:Number)(e);n=n[t(253)](e,r||"default");if(t(508)!=_typeof(n))return n;throw new TypeError(t(355))}function _createForOfIteratorHelper(e,r){var t,n,a,o,i=_0x5be3,u=i(496)!=typeof Symbol&&e[Symbol[i(266)]]||e[i(251)];if(u)return a=!(n=!0),{s:function(){u=u[i(253)](e)},n:function(){var e=i,r=u[e(358)]();return n=r[e(284)],r},e:function(e){a=!0,t=e},f:function(){var e=i;try{n||null==u[e(536)]||u[e(536)]()}finally{if(a)throw t}}};if(Array[i(294)](e)||(u=_unsupportedIterableToArray(e))||r&&e&&i(300)==typeof e[i(378)])return u&&(e=u),o=0,{s:r=function(){},n:function(){return o>=e[i(378)]?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r};throw new TypeError(i(346))}function _unsupportedIterableToArray(e,r){var t,n=_0x5be3;if(e)return n(414)==typeof e?_arrayLikeToArray(e,r):(t={}.toString[n(253)](e).slice(8,-1),n(530)===t&&e[n(315)]&&(t=e[n(315)][n(305)]),n(250)===t||n(381)===t?Array.from(e):n(263)===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(521)](t)?_arrayLikeToArray(e,r):void 0)}function _arrayLikeToArray(e,r){var t=_0x5be3;(null==r||r>e[t(378)])&&(r=e[t(378)]);for(var n=0,a=Array(r);n<r;n++)a[n]=e[n];return a}function _typeof(e){var t=_0x5be3;return(_typeof=t(506)==typeof Symbol&&t(424)==typeof Symbol.iterator?function(e){return typeof e}:function(e){var r=t;return e&&r(506)==typeof Symbol&&e[r(315)]===Symbol&&e!==Symbol[r(411)]?"symbol":typeof e})(e)}(()=>{for(var e=_0x5be3,r=_0x3b6c();;)try{if(471835==-parseInt(e(377))*(-parseInt(e(470))/2)+-parseInt(e(534))/3+-parseInt(e(379))/4+parseInt(e(383))/5+-parseInt(e(518))/6*(parseInt(e(465))/7)+parseInt(e(365))/8+-parseInt(e(527))/9)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var lt=Object[_0x19cf7b(233)],A=Object[_0x19cf7b(299)],pt=Object[_0x19cf7b(406)],ut=Object.getOwnPropertyNames,ft=Object[_0x19cf7b(533)],dt=Object.prototype[_0x19cf7b(430)],gt=function(e,r){for(var t in r)A(e,t,{get:r[t],enumerable:!0})},z=function(t,n,a,o){var i=_0x19cf7b;if(n&&_typeof(n)==i(508)||"function"==typeof n){var u,r=_createForOfIteratorHelper(ut(n));try{for(r.s();!(u=r.n())[i(284)];)(()=>{var e=i,r=u[e(252)];dt[e(253)](t,r)||r===a||A(t,r,{get:function(){return n[r]},enumerable:!(o=pt(n,r))||o[e(504)]})})()}catch(e){r.e(e)}finally{r.f()}}return t},b=function(e,r,t){var n=_0x19cf7b;return t=null!=e?lt(ft(e)):{},z(!r&&e&&e[n(348)]?t:A(t,n(325),{value:e,enumerable:!0}),e)},mt=function(e){return z(A({},_0x19cf7b(348),{value:!0}),e)},$t={},m=(gt($t,{ASCF_LOG_FILE:function(){return wt},AscfBuilder:function(){return G},AscfDebugger:function(){return W},getLogger:function(){return v},setLoggerConfig:function(){return yt}}),module[_0x19cf7b(326)]=mt($t),b(require(_0x19cf7b(511)))),j=b(require(_0x19cf7b(426))),k=b(require(_0x19cf7b(514))),ht=[_0x19cf7b(405),_0x19cf7b(439),_0x19cf7b(282),_0x19cf7b(244),_0x19cf7b(368)],L=_0x19cf7b(525),wt=j[_0x19cf7b(307)]((0,k[_0x19cf7b(325)])(_0x19cf7b(446)),_0x19cf7b(362));function yt(e){var r=_0x19cf7b,e=bt(e);m[r(323)]({appenders:{default:{type:r(380),layout:{type:"pattern",pattern:"> ascf-toolkit %p %c %[%m%]"}},"debug-log-file":{type:r(516),filename:j[r(307)]((0,k[r(325)])(r(446)),"build.log"),maxLogSize:10485760,backups:9,layout:{type:"pattern",pattern:r(495)}}},categories:{default:{appenders:[r(325)],level:e},AscfToolkit:{appenders:[r(331)],level:r(405)}}})}function bt(e){var r=_0x19cf7b;return e&&ht.includes(e[r(494)]())?e.toLowerCase():"info"}var E=(()=>{var u=_0x19cf7b;return _createClass(function e(r){var t=_0x5be3;_classCallCheck(this,e),this[t(363)]=r},[{key:u(405),value:function(e){for(var r=u,t=m[r(442)](this[r(363)]),n=m[r(442)](L),a=arguments[r(378)],o=new Array(1<a?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];t[r(405)].apply(t,[e][r(531)](o)),n.debug[r(486)](n,[e][r(531)](o))}},{key:u(439),value:function(e){for(var r=u,t=m.getLogger(this[r(363)]),n=m[r(442)](L),a=arguments[r(378)],o=new Array(1<a?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];t[r(439)][r(486)](t,[e][r(531)](o)),n[r(439)].apply(n,[e][r(531)](o))}},{key:u(282),value:function(e){for(var r=u,t=m.getLogger(this.categories),n=m[r(442)](L),a=arguments[r(378)],o=new Array(1<a?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];t[r(282)][r(486)](t,[e][r(531)](o)),n[r(282)].apply(n,[e][r(531)](o))}},{key:u(244),value:function(e){for(var r=u,t=m.getLogger(this[r(363)]),n=m[r(442)](L),a=arguments[r(378)],o=new Array(1<a?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];t.error.apply(t,[e][r(531)](o)),n.error[r(486)](n,[e][r(531)](o))}},{key:u(368),value:function(e){for(var r=u,t=m.getLogger(this[r(363)]),n=m[r(442)](L),a=arguments[r(378)],o=new Array(1<a?a-1:0),i=1;i<a;i++)o[i-1]=arguments[i];t[r(368)][r(486)](t,[e][r(531)](o)),n[r(368)].apply(n,[e][r(531)](o))}}])})();function v(e){return new E(e)}function c(e){return _c[_0x19cf7b(486)](this,arguments)}function _c(){var r=_0x19cf7b;return(_c=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n=r;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e.next){case 0:return e.prev=0,e.next=3,t;case 3:return e.t0=e[r(339)],e.abrupt(r(536),{data:e.t0});case 7:return e[r(462)]=7,e.t1=e.catch(0),e.abrupt(r(536),{err:e.t1});case 10:case r(479):return e[r(314)]()}},e,null,[[0,7]])})))[r(486)](this,arguments)}var X=b(require("http"));function Q(n,i){return new Promise(function(a,o){var r=_0x5be3,e=Object[r(458)]({timeout:6e3},i),t=X.default.get(n,function(e){var t=r,n="";e.on(t(302),function(e){n+=e}),e.on(t(479),function(){var r=t;try{a(JSON[r(505)](n))}catch(e){o(new Error(r(344)))}})});t[r(270)](e[r(298)],function(){var e=r;t[e(334)](),o(new Error(e(248)))}),t.on(r(244),o),t.end()})}var $=require(_0x19cf7b(498)),x=b(require("fs")),M=b(require(_0x19cf7b(453))),Y=b(require(_0x19cf7b(426))),Z=(null==(_ref=process[_0x19cf7b(445)][_0x19cf7b(228)]||process.env[_0x19cf7b(392)])?void 0:_ref.split(";")[0][_0x19cf7b(400)]())+"/../tools/",vt=Z||_0x19cf7b(535),Pt=Z||_0x19cf7b(464),Dt=process[_0x19cf7b(328)]===_0x19cf7b(343)?Pt:vt;function H(){for(var e=_0x19cf7b,r=arguments[e(378)],t=new Array(r),n=0;n<r;n++)t[n]=arguments[n];var a=process[e(445)][e(291)],a=a?a+"/../tools/":Dt,a=Y[e(279)][e(486)](Y,[a][e(531)](t));return process[e(328)]===e(343)&&a[e(361)](" ")?'"'.concat(a,'"'):a}function N(){var e=_0x19cf7b;return H(e(421),e(480),"ohpm")}function C(){return H("hvigor","bin",_0x19cf7b(384))}function tt(){return H(_0x19cf7b(351))}function O(){var e=_0x19cf7b;return H(e(409),"win32"===process[e(328)]?"hdc.exe":e(469))}var l=v(_0x19cf7b(469));function _(e,r,t,n){var a=_0x19cf7b,o=(l[a(405)]("begin runCmd",e,null==r?void 0:r[a(279)](" ")),tt()),o=(l[a(405)]("DEVECO_SDK_HOME="+o),Object[a(458)]({shell:!0,env:_objectSpread(_objectSpread({},process[a(445)]||{}),{},{DEVECO_SDK_HOME:o})},n)),n=(0,$[a(447)])(e,r,o),i=[],u=[];return n[a(380)].on(a(302),function(e){var r=a,e=e[r(372)]()[r(400)]();l[r(405)](r(438),e),i[r(317)](e)}),n.stderr.on(a(302),function(e){var r=a,e=e.toString()[r(400)]();l[r(244)](r(490),e),u.push(e)}),n.on(a(431),function(e){var r=a;0!==e?(l[r(244)](r(440)[r(531)](e)),null!=t&&t(u[r(279)]("\n"))):(e=i[r(279)]("\n"),/failed to start ability/[r(521)](e)?null!=t&&t(r(313)):(null!=t&&t(null,e),l[r(405)](r(402))))}),n}function R(e,r,t,n){return _R.apply(this,arguments)}function _R(){var e=_0x19cf7b;return(_R=_asyncToGenerator(_regeneratorRuntime()[e(311)](function e(a,o,i,u){return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e[r(358)]){case 0:return e[r(398)](r(536),new Promise(function(t,n){var e=_(a,o,function(e,r){if(e)return n(e);t(r)},i);null!=u&&u(e)}));case 1:case r(479):return e.stop()}},e)})))[e(486)](this,arguments)}function w(e,r){return _w.apply(this,arguments)}function _w(){var e=_0x19cf7b;return(_w=_asyncToGenerator(_regeneratorRuntime()[e(311)](function e(t,n){return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e[r(358)]){case 0:return e[r(398)](r(536),R(O(),t,n));case 1:case r(479):return e[r(314)]()}},e)})))[e(486)](this,arguments)}function St(){return _St[_0x19cf7b(486)](this,arguments)}function _St(){var e=_0x19cf7b;return(_St=_asyncToGenerator(_regeneratorRuntime()[e(311)](function e(){var t;return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e.next){case 0:return e[r(358)]=2,c(w([r(481),r(385)]));case 2:return t=e[r(339)],e[r(398)](r(536),t[r(538)]?(l[r(244)](r(369)+t.err),[]):null==(t=t[r(302)])||null==(t=t[r(400)]())||null==(t=t[r(309)]("\n"))?void 0:t[r(472)](function(e){return e[r(400)]()}));case 4:case"end":return e[r(314)]()}},e)})))[e(486)](this,arguments)}function xt(e){return _xt[_0x19cf7b(486)](this,arguments)}function _xt(){var e=_0x19cf7b;return(_xt=_asyncToGenerator(_regeneratorRuntime()[e(311)](function e(t){var n;return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e.prev=e[r(358)]){case 0:return e[r(358)]=2,c(w(["-t",t,r(418),r(524),"get",r(354)]));case 2:return n=e[r(339)],e[r(398)](r(536),n.err||/(\[Fail\])/[r(521)](n[r(302)])?(l.error(r(335),n.err),r(397)):null==(n=n[r(302)])?void 0:n[r(400)]());case 4:case"end":return e.stop()}},e)})))[e(486)](this,arguments)}function P(e){var r,t=_0x19cf7b,e=""[t(531)](e,"\\AppScope\\app.json5");if(x.existsSync(e))return r=x[t(401)](e,t(276)),null==(r=M[t(505)](r))||null==(r=r[t(517)])?void 0:r[t(373)];throw l[t(244)](""[t(531)](e,t(435))),new Error(""[t(531)](e,t(435)))}function V(e){var r,t=_0x19cf7b,e="".concat(e,t(541));if(x[t(482)](e))return r=x[t(401)](e,"utf-8"),M.parse(r);throw l[t(244)](""[t(531)](e,t(435))),new Error(""[t(531)](e,t(435)))}function J(e,r){return _J[_0x19cf7b(486)](this,arguments)}function _J(){var e=_0x19cf7b;return(_J=_asyncToGenerator(_regeneratorRuntime().mark(function e(t,n){var a,o,i=_0x5be3;return _regeneratorRuntime()[i(485)](function(e){for(var r=i;;)switch(e[r(462)]=e[r(358)]){case 0:return l[r(439)](r(320)[r(531)](t)),a=P(t),e[r(358)]=4,c(w(["-t",n,r(418),"aa",r(318),a]));case 4:return e.next=6,c(w(["-t",n,r(418),"aa",r(275),"-a",r(304),"-b",a,r(403)]));case 6:if((o=e[r(339)])[r(538)])return l[r(244)](r(537),o[r(538)]),l.error(r(336)),e[r(398)](r(536));e.next=10;break;case 10:case r(479):return e.stop()}},e)})))[e(486)](this,arguments)}function et(e){return _et.apply(this,arguments)}function _0x3b6c(){var e=["usingTmpDir error","executing","taskkill /pid ","start install pkg under ","has","ohpmClean err","start uninstall pkg under ","filter","error","illegal catch attempt","view","cur","Request timed out","_sent","Map","@@iterator","value","call","catch","writable","[object Generator]","reverse","fport web error: ","chrome://inspect#devices","deviceId","add","nextLoc","Arguments","asyncIterator","@@asyncIterator","iterator","--parallel","DebugPortManager","options","setTimeout","Launched within ","all","handle ","killProcess error","start","utf-8","installDeps","runHdcCmdAsync","join","cpList","stopping","warn","-rf","done","__proto__","values","type","handle","fport v8 error: ","assembleHap err","ASCF_DEVECO_SDK_HOME","random","fportRmWeb","isArray","runCmdAsync","setPrototypeOf","/data/local/tmp/","timeout","defineProperty","number","ports:\n","data","tryEntries","EntryAbility","name","pid","resolve","checkBundleName","split","set","mark","setCurrent","start ability error","stop","constructor","assembleHap within ","push","force-stop","getInstance","start startAbility under ","--incremental","init AscfDebugger with options","configure","atomicservice","default","exports","handle end","platform","fport","modules","debug-log-file","installDeps err","GeneratorFunction","abort","get device name error","Start ability error","fportRm","open","sent","net","replace",'"aa dump -a | grep ',"win32","Invalid JSON","send","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","tcp:9225","__esModule","Socket","init","../sdk","127.0.0.1","status","const.product.name","@@toPrimitive must return a primitive value.","once","rval","next","getCurrent","startService","includes","build.log","categories",' | grep -v render | grep -v grep"',"5167304iMyfud","then","getOwnPropertyDescriptors","fatal","list targets error: ","_invoke","entry","toString","bundleName","tcp:","installHap","The selected Atomic Service is not running properly. Please start the Atomic Service first.","1WBlPUc","length","3020536exPftU","stdout","Set"," is used","3558225PbCmFo","hvigorw","targets","fportWeb get pid error: ","toStringTag","module","getDeviceId","cwd","forEach","DEVECO_SDK_HOME","defineProperties","send hap error","chrome://inspect/#devices","uninstall","Unknown","abrupt","afterLoc","trim","readFileSync","runCmd exited.","--ps launchMode forceUpdate","webLocalPort","debug","getOwnPropertyDescriptor","fportRmV8","getDebugees error: ","../sdk/default/openharmony/toolchains","instance","prototype","get","openBrowser error, please try later","string","localPort","AscfBuilder","del","shell","No devices found, please connet to phone","fport ls error: ","ohpm","isGeneratorFunction","module=","symbol","start hvigor clean under ","path","start installDeps under ","' method"," /T /F","hasOwnProperty","close","method","Generator is already running","hap"," is not found","splice","kill","runCmd stdout","info","runCmd exited with code ","cancelled","getLogger","port ","build\\default\\outputs\\default\\","env","ascf-cache","spawn","remotePort","Generator","srcPath","completion","__await","json5","http://localhost:","uninstall hap error","delegate","try statement without catch or finally","assign","keys","async","The iterator does not provide a '","prev","getTime","C:\\Program Files\\Huawei\\DevEco Studio\\tools","70KgNHde","suspendedYield","hvigorClean err","root","hdc","1373618QiSKSX","iterator result is not an object","map","arg","toPrimitive","pop","break","--sync","hapPath is not exists","end","bin","list","existsSync","dispose","continue","wrap","apply","getDebugUrl ","catchLoc","already has forward","runCmd stderr","start assembleHap under ","skipAscfCompile=true","v8LocalPort","toLowerCase","%d{yyyy-MM-dd hh:mm:ss.SSS} > ascf-toolkit %p %c %m","undefined","install hap error","child_process","cache","charAt","fportWeb","assembleAndInstallHap","configurable","enumerable","parse","function","round","object","openBrowser","/json","log4js","stopService","projectRoot","cachedir","tryLoc","fileSync","app","371244jNDPUa","mkdir","invalid subCmd, should be ","test","AsyncIterator","assembleHap","param","AscfToolkit","getOwnPropertySymbols","1187280nYNajg","stopView","please open url in browser: ","Object","concat","fport error: ","getPrototypeOf","200214LIjpOU","/Applications/DevEco-Studio.app/Contents/tools","return","start hap error","err","--daemon","displayName","\\build-profile.json5","key","Cannot call a class as a function","finallyLoc","getDevices","slice","start ohpm clean under ","throw","completed","startView","found devices: ","resultName","AscfDebugger","handle error","DevEco Studio","normal","needRm","complete","clean","create","handle success","fportV8"];return(_0x3b6c=function(){return e})()}function _et(){var r=_0x19cf7b;return(_et=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n,a=r;return _regeneratorRuntime()[a(485)](function(e){for(var r=a;;)switch(e[r(462)]=e.next){case 0:return l[r(439)](r(427).concat(t)),e[r(358)]=3,c(R(N(),["update"],{chdir:!0,cwd:t}));case 3:(n=e.sent)[r(538)]&&l[r(244)](r(332),n.err);case 5:case"end":return e.stop()}},e)})))[r(486)](this,arguments)}function rt(e){return _rt[_0x19cf7b(486)](this,arguments)}function _rt(){var r=_0x19cf7b;return(_rt=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n,a=r;return _regeneratorRuntime()[a(485)](function(e){for(var r=a;;)switch(e[r(462)]=e[r(358)]){case 0:return l[r(439)](r(547)[r(531)](t)),e[r(358)]=3,c(R(N(),[r(232)],{chdir:!0,cwd:t}));case 3:(n=e[r(339)])[r(538)]&&l[r(244)](r(241),n[r(538)]);case 5:case r(479):return e[r(314)]()}},e)})))[r(486)](this,arguments)}function st(e){return _st[_0x19cf7b(486)](this,arguments)}function _st(){return(_st=_asyncToGenerator(_regeneratorRuntime().mark(function e(t){var n,a=_0x5be3;return _regeneratorRuntime()[a(485)](function(e){for(var r=a;;)switch(e[r(462)]=e[r(358)]){case 0:return l[r(439)](r(425).concat(t)),e[r(358)]=3,c(R(C(),[r(232),r(267)],{chdir:!0,cwd:t}));case 3:(n=e[r(339)])[r(538)]&&l.error(r(467),n.err);case 5:case r(479):return e[r(314)]()}},e)}))).apply(this,arguments)}function ot(e){var r=_0x19cf7b;if(e){var t=process[r(328)];try{t===r(343)?(0,$.execSync)(r(238).concat(e.pid,r(429))):"darwin"===t&&e[r(306)]?process[r(437)](e[r(306)]):e.kill()}catch(e){l[r(244)](r(274),e)}}}function _0x5be3(e,r){var t=_0x3b6c();return(_0x5be3=function(e,r){return t[e-=226]})(e,r)}var B=_createClass(function e(){_classCallCheck(this,e)}),I=(()=>{var r,e,n,t,a=_0x19cf7b;function o(){var e=_0x5be3;_classCallCheck(this,o),this.cache=new Map,this[e(247)]=null}return _createClass(o,[{key:a(545),value:(n=a,t=_asyncToGenerator(_regeneratorRuntime()[n(311)](function e(){var r,t,i,a,o=n,u=this;return _regeneratorRuntime()[o(485)](function(e){for(var n=o;;)switch(e[n(462)]=e[n(358)]){case 0:return e[n(358)]=2,c(St());case 2:if((t=e[n(339)])[n(538)]||null==t||null==(r=t[n(302)])||!r[n(378)]||/(\[Empty\])|(\[Fail\])/[n(521)](null==(r=t[n(302)])?void 0:r[n(279)]("\n")))return e[n(398)]("return",(l[n(244)]("listTargets error or no devices found"),[]));e[n(358)]=5;break;case 5:return l[n(405)](n(551),null==(r=t.data)?void 0:r[n(279)]("\n")),i=!1,e[n(358)]=9,Promise[n(272)](t.data.map((()=>{var r=n,t=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n,a,o=r;return _regeneratorRuntime()[o(485)](function(e){for(var r=o;;)switch(e[r(462)]=e[r(358)]){case 0:if(u[r(247)]&&u.cur.sn===t&&(i=!0),u[r(499)][r(240)](t))return e[r(398)](r(536),u[r(499)][r(412)](t));e.next=2;break;case 2:return(n=new B).sn=t,e[r(358)]=6,xt(t);case 6:return a=e[r(339)],e[r(398)]("return",(n[r(305)]=a,u[r(499)][r(310)](t,n),n));case 8:case r(479):return e[r(314)]()}},e)}));return function(e){return t[r(486)](this,arguments)}})()));case 9:return a=e[n(339)],e[n(398)]("return",(i||(this[n(247)]=a[n(378)]?a[0]:null),a));case 11:case n(479):return e[n(314)]()}},e,this)})),function(){return t[n(486)](this,arguments)})},{key:"getCurrent",value:function(){return this[a(247)]}},{key:a(312),value:function(e){var r=a;e&&this[r(499)][r(240)](e)&&(e=this[r(499)][r(412)](e),this[r(247)]=e)}},{key:a(389),value:(r=a,e=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(){var t,n=r;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e[r(358)]){case 0:return e[r(358)]=2,this[r(545)]();case 2:if(t=null==(t=this[r(359)]())?void 0:t.sn){e.next=6;break}return l.error(r(419)),e[r(398)](r(536));case 6:return e[r(398)]("return",t);case 7:case"end":return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})}],[{key:"getInstance",value:function(){return o[a(410)]}}])})(),g=(I.instance=new I,I),nt=b(require(_0x19cf7b(340)));function it(e){return _it.apply(this,arguments)}function _it(){var o=_0x19cf7b;return(_it=_asyncToGenerator(_regeneratorRuntime()[o(311)](function e(i){var u,r,c,t,n=o,a=arguments;return _regeneratorRuntime()[n(485)](function(e){for(var o=n;;)switch(e.prev=e[o(358)]){case 0:return t=1<a[o(378)]&&void 0!==a[1]?a[1]:{},r=t.host,u=void 0===r?o(352):r,r=t[o(298)],c=void 0===r?1e3:r,t=new Promise(function(e,r){function t(){a.destroy(),r()}var n=o,a=new nt[n(349)];a.once("error",t),a[n(356)]("timeout",t),a[n(270)](c),a.connect(i,u,function(){a[n(479)](),e(i)})}),e.prev=2,e[o(358)]=5,t;case 5:return e.abrupt(o(536),!0);case 8:return e.prev=8,e.t0=e[o(254)](2),e[o(398)]("return",!1);case 11:case o(479):return e[o(314)]()}},e,null,[[2,8]])}))).apply(this,arguments)}var D=v(_0x19cf7b(268)),S="Please check the following: 1.The device is connected to the computer. 2. The screen is on. 3. Check whether the debugging port is occupied.";function F(e){return _F.apply(this,arguments)}function _F(){var n=_0x19cf7b;return(_F=_asyncToGenerator(_regeneratorRuntime()[n(311)](function e(u){var r,s,f,t,a=n,o=arguments;return _regeneratorRuntime()[a(485)](function(e){for(var n=a;;)switch(e[n(462)]=e[n(358)]){case 0:return s=1<o[n(378)]&&void 0!==o[1]&&o[1],f=2<o.length&&void 0!==o[2]?o[2]:"",e.next=4,c(w(["-t",u,n(329),"ls"]));case 4:(t=e[n(339)]).err?(e.t0=(D[n(244)](n(420),S),[]),e[n(358)]=12):e[n(358)]=9;break;case 9:return e[n(358)]=11,Promise.all(null==(r=t[n(302)])?void 0:r.trim()[n(309)]("\n")[n(472)]((()=>{var r=n,t=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n,a,o,i=r;return _regeneratorRuntime()[i(485)](function(e){for(var r=i;;)switch(e[r(462)]=e[r(358)]){case 0:if(a=t[r(309)](/\s+/),n=null==(n=a[1])?void 0:n[r(400)](),a=null==(a=a[2])?void 0:a.trim(),o=s&&n===r(374)[r(531)](f),e.t0=o,e.t0)return e[r(358)]=5,c(w(["-t",u,r(329),"rm",n,a]));e[r(358)]=5;break;case 5:return e[r(398)]("return",{localPort:n,remotePort:a,needRm:o});case 6:case r(479):return e[r(314)]()}},e)}));return function(e){return t[r(486)](this,arguments)}})()));case 11:e.t0=e[n(339)][n(243)](function(e){var r=n;return e.localPort&&!e[r(230)]});case 12:return e[n(398)](n(536),e.t0);case 13:case n(479):return e[n(314)]()}},e)})))[n(486)](this,arguments)}function at(e,r,t){return _at[_0x19cf7b(486)](this,arguments)}function _at(){var t=_0x19cf7b;return(_at=_asyncToGenerator(_regeneratorRuntime()[t(311)](function e(a,o,i){var r,u,n,s=t;return _regeneratorRuntime()[s(485)](function(e){for(var t=s;;)switch(e[t(462)]=e.next){case 0:return e[t(358)]=2,F(a);case 2:return r=e[t(339)],u=!1,n=o.trim()[t(341)](t(374),""),e[t(358)]=7,Promise.all(r[t(472)]((()=>{var e=t,r=_asyncToGenerator(_regeneratorRuntime()[e(311)](function e(t){var n;return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e[r(358)]){case 0:if(t[r(415)]&&t[r(448)]){e[r(358)]=2;break}return e[r(398)](r(536));case 2:if(n=!1,t[r(415)]===o&&t[r(448)]===i?u=!0:t.localPort!==o&&t[r(448)]!==i||(n=!0),e.t0=n,e.t0)return e.next=8,c(w(["-t",a,r(329),"rm",t[r(415)],t.remotePort]));e.next=8;break;case 8:case r(479):return e[r(314)]()}},e)}));return function(e){return r.apply(this,arguments)}})()));case 7:if(u)return D[t(282)](t(489)),e[t(398)](t(536));e[t(358)]=10;break;case 10:return e.next=12,it(n);case 12:if(e[t(339)])return D[t(244)](t(443)[t(531)](n,t(382))),e[t(398)]("return");e.next=15;break;case 15:return e[t(358)]=17,c(w(["-t",a,t(329),o,i]));case 17:if(e.sent.err)return D[t(244)](t(532),S),e[t(398)](t(536));e[t(358)]=20;break;case 20:case t(479):return e[t(314)]()}},e)})))[t(486)](this,arguments)}function Lt(e,r){return _Lt.apply(this,arguments)}function _Lt(){var e=_0x19cf7b;return(_Lt=_asyncToGenerator(_regeneratorRuntime().mark(function e(t,n){var a=_0x5be3;return _regeneratorRuntime()[a(485)](function(e){for(var r=a;;)switch(e[r(462)]=e[r(358)]){case 0:return e[r(358)]=2,F(t,!0,n);case 2:return e[r(398)](r(536),e[r(339)]);case 3:case r(479):return e[r(314)]()}},e)})))[e(486)](this,arguments)}var T=(()=>{var r,o,t,a,n,i,u,s,f,e=_0x19cf7b;return _createClass(function e(){var r=_0x5be3;_classCallCheck(this,e),this[r(404)]=9222,this[r(493)]=9229},[{key:"fportWeb",value:(f=_asyncToGenerator(_regeneratorRuntime().mark(function e(t,n){var a,o,i,u=_0x5be3;return _regeneratorRuntime()[u(485)](function(e){for(var r=u;;)switch(e[r(462)]=e[r(358)]){case 0:if(e.t0=!t,e.t0)return e[r(358)]=4,g[r(319)]()[r(389)]();e[r(358)]=6;break;case 4:t=e[r(339)],e.t0=!t;case 6:if(e.t0)return e[r(398)]("return");e.next=8;break;case 8:return e[r(358)]=10,c(w(["-t",t,"shell",'"ps -ef | grep '[r(531)](n,r(364))]));case 10:if((o=e[r(339)])[r(538)]||null==(a=o[r(302)])||!a[r(378)])return D.error(r(386),S),e[r(398)](r(536));e[r(358)]=14;break;case 14:return i=null==(a=o[r(302)])||null==(a=a.trim()[r(309)]("\n"))?void 0:a[0][r(400)]().split(/\s+/)[1][r(400)](),e.next=17,c(at(t,r(374)+this[r(404)],"localabstract:webview_devtools_remote_"[r(531)](i)));case 17:if(e[r(339)][r(538)])return D[r(244)](r(258),S),e[r(398)]("return");e[r(358)]=20;break;case 20:case r(479):return e[r(314)]()}},e,this)})),function(e,r){return f[_0x5be3(486)](this,arguments)})},{key:"fportV8",value:(u=_0x5be3,s=_asyncToGenerator(_regeneratorRuntime()[u(311)](function e(t){return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e[r(358)]){case 0:if(e.t0=!t,e.t0)return e[r(358)]=4,g[r(319)]().getDeviceId();e[r(358)]=6;break;case 4:t=e.sent,e.t0=!t;case 6:if(e.t0)return e.abrupt(r(536));e[r(358)]=8;break;case 8:return e.next=10,c(at(t,r(374)+this.v8LocalPort,r(347)));case 10:if(e[r(339)][r(538)])return D[r(244)](r(289),S),e[r(398)]("return");e[r(358)]=13;break;case 13:case r(479):return e.stop()}},e,this)})),function(e){return s[u(486)](this,arguments)})},{key:e(407),value:(i=_asyncToGenerator(_regeneratorRuntime().mark(function e(t){var n=_0x5be3;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e.prev=e[r(358)]){case 0:return e[r(358)]=2,this[r(337)](t,String(this.v8LocalPort));case 2:case r(479):return e[r(314)]()}},e,this)})),function(e){return i.apply(this,arguments)})},{key:e(293),value:(a=e,n=_asyncToGenerator(_regeneratorRuntime()[a(311)](function e(t){var n=a;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e.next){case 0:return e[r(358)]=2,this.fportRm(t,String(this.webLocalPort));case 2:case"end":return e.stop()}},e,this)})),function(e){return n[a(486)](this,arguments)})},{key:e(337),value:(o=e,t=_asyncToGenerator(_regeneratorRuntime()[o(311)](function e(t,n){var a=o;return _regeneratorRuntime()[a(485)](function(e){for(var r=a;;)switch(e[r(462)]=e.next){case 0:if(e.t0=!t,e.t0)return e[r(358)]=4,g.getInstance()[r(389)]();e[r(358)]=6;break;case 4:t=e[r(339)],e.t0=!t;case 6:if(e.t1=e.t0,e.t1){e[r(358)]=10;break}return e[r(358)]=10,Lt(t,n);case 10:case r(479):return e[r(314)]()}},e)})),function(e,r){return t[o(486)](this,arguments)})},{key:e(353),value:(r=_asyncToGenerator(_regeneratorRuntime().mark(function e(t){var n=_0x5be3;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e.next){case 0:if(e.t0=!t,e.t0)return e[r(358)]=4,g[r(319)]()[r(389)]();e[r(358)]=6;break;case 4:t=e[r(339)],e.t0=!t;case 6:e.t0?(e.t1=[],e[r(358)]=13):e[r(358)]=10;break;case 10:return e[r(358)]=12,F(t);case 12:e.t1=e.sent;case 13:return e.abrupt(r(536),e.t1);case 14:case"end":return e.stop()}},e)})),function(e){return r.apply(this,arguments)})}],[{key:e(319),value:function(){return this[e(410)]}}])})(),y=(T[_0x19cf7b(410)]=new T,T),p=v(_0x19cf7b(226)),Ct=_0x19cf7b(376);function It(e){return _It[_0x19cf7b(486)](this,arguments)}function _It(){var e=_0x19cf7b;return(_It=_asyncToGenerator(_regeneratorRuntime()[e(311)](function e(t){var n;return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e.prev=e.next){case 0:return n=[],e[r(462)]=1,e.next=4,Q(r(454)[r(531)](t,r(510)),{timeout:3e3});case 4:n=e.sent,e[r(358)]=10;break;case 7:e[r(462)]=7,e.t0=e[r(254)](1),p[r(244)](r(408),S);case 10:return e[r(398)]("return",n);case 11:case r(479):return e[r(314)]()}},e,null,[[1,7]])})))[e(486)](this,arguments)}function ct(e){return _ct[_0x19cf7b(486)](this,arguments)}function _ct(){var r=_0x19cf7b;return(_ct=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n,a=r;return _regeneratorRuntime()[a(485)](function(e){for(var r=a;;)switch(e[r(462)]=e[r(358)]){case 0:if(t){e[r(358)]=2;break}return e[r(398)](r(536),"");case 2:return e[r(462)]=2,e.next=5,It(t);case 5:if(e.t2=n=e[r(339)],e.t1=null===e.t2,e.t1){e[r(358)]=9;break}e.t1=void 0===n;case 9:if(e.t0=e.t1,e.t0){e[r(358)]=12;break}e.t0=null==(n=n[0]);case 12:e.t0?(e.t3=void 0,e.next=17):e[r(358)]=16;break;case 16:e.t3=n.devtoolsFrontendUrl;case 17:return e[r(398)](r(536),e.t3);case 20:e[r(462)]=20,e.t4=e[r(254)](2),p[r(244)](r(487).concat(t," error"),e.t4);case 23:return e[r(398)]("return","");case 24:case"end":return e.stop()}},e,null,[[2,20]])})))[r(486)](this,arguments)}var W=(()=>{var r,t,i,n,e,a,o,u,s,f,l,h,v,_,b=_0x19cf7b;return _createClass(function e(r){var t=_0x5be3;_classCallCheck(this,e),p[t(439)](t(322),r),this[t(269)]=Object[t(458)]({open:""},r)},[{key:b(288),value:function(e){var t=b,r=this,n=(p[t(439)](t(273)[t(531)](e)),{status:function(){return r[t(353)]()},start:function(){return r[t(275)]()},stop:function(){return r.stop()},"start-view":function(){return r[t(550)]()},"start-service":function(){return r[t(360)]()},"stop-view":function(){return r.stopView()},"stop-service":function(){return r.stopService()}});n[e]?n[e]()[t(366)](function(){var e=t;return p.info(e(327))}).catch(function(e){var r=t;return p[r(244)](r(227),e)}):p[t(244)](t(520)+Object[t(459)](n)[t(279)](","))}},{key:b(353),value:(v=b,_=_asyncToGenerator(_regeneratorRuntime()[v(311)](function e(){var r,t;return _regeneratorRuntime().wrap(function(e){for(var n=_0x5be3;;)switch(e[n(462)]=e.next){case 0:return p[n(439)](n(353)),r=(r=this[n(269)][n(373)])||P(process[n(390)]()),e[n(358)]=5,this[n(308)](r);case 5:if(e[n(339)]){e.next=7;break}return e.abrupt(n(536));case 7:return e[n(358)]=9,y[n(319)]().status(this.options[n(260)]);case 9:return r=e[n(339)],e[n(358)]=12,Promise[n(272)](null==r?void 0:r[n(472)]((()=>{var r=n,t=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n,a,o=r;return _regeneratorRuntime()[o(485)](function(e){for(var r=o;;)switch(e[r(462)]=e.next){case 0:t[r(415)]!=="tcp:".concat(y[r(319)]()[r(404)])?e[r(358)]=4:(n="view",e[r(358)]=9);break;case 4:t[r(415)]!==r(374)[r(531)](y[r(319)]()[r(493)])?e[r(358)]=8:(n="service",e[r(358)]=9);break;case 8:return e.abrupt(r(536));case 9:return e[r(358)]=11,ct(t[r(415)][r(341)]("tcp:",""));case 11:return a=e[r(339)],e[r(398)](r(536),a?(n===r(246)&&(a=r(259)),""[r(531)](n," ").concat(t[r(415)]," ")[r(531)](t.remotePort,", browser url: ").concat(a)):"");case 13:case"end":return e[r(314)]()}},e)}));return function(e){return t[r(486)](this,arguments)}})()));case 12:0!==(t=(t=e[n(339)]).filter(Boolean))[n(378)]&&p[n(439)](n(301)+t[n(279)]("\n"));case 14:case n(479):return e[n(314)]()}},e,this)})),function(){return _.apply(this,arguments)})},{key:b(275),value:(l=b,h=_asyncToGenerator(_regeneratorRuntime()[l(311)](function e(){return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e.next){case 0:return p.info(r(275)),e.next=3,this[r(550)]();case 3:return e[r(358)]=5,this[r(360)]();case 5:case r(479):return e.stop()}},e,this)})),function(){return h[l(486)](this,arguments)})},{key:b(314),value:(v=b,f=_asyncToGenerator(_regeneratorRuntime()[v(311)](function e(){return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e[r(358)]){case 0:return p[r(439)](r(314)),e.next=3,this[r(528)]();case 3:return e.next=5,this[r(512)]();case 5:case r(479):return e[r(314)]()}},e,this)})),function(){return f.apply(this,arguments)})},{key:b(550),value:(s=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var t,n=_0x5be3;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e.next){case 0:return p.info(r(550)),t=(t=this[r(269)][r(373)])||P(process[r(390)]()),e[r(358)]=5,this[r(308)](t);case 5:if(e.t0=e[r(339)],e.t0)return e[r(358)]=9,y[r(319)]()[r(501)](this[r(269)].deviceId,t);e[r(358)]=11;break;case 9:return e[r(358)]=11,this[r(509)](y[r(319)]().webLocalPort,r(395));case 11:case r(479):return e[r(314)]()}},e,this)})),function(){return s[_0x5be3(486)](this,arguments)})},{key:"startService",value:(o=b,u=_asyncToGenerator(_regeneratorRuntime()[o(311)](function e(){var t,n=o;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e.next){case 0:return p[r(439)](r(360)),t=(t=this[r(269)][r(373)])||P(process.cwd()),e[r(358)]=5,this[r(308)](t);case 5:if(e.t0=e[r(339)],e.t0)return e[r(358)]=9,y.getInstance()[r(235)](this[r(269)].deviceId);e[r(358)]=11;break;case 9:return e.next=11,this[r(509)](y[r(319)]()[r(493)]);case 11:case"end":return e[r(314)]()}},e,this)})),function(){return u[o(486)](this,arguments)})},{key:"stopView",value:(a=_asyncToGenerator(_regeneratorRuntime().mark(function e(){return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e.prev=e[r(358)]){case 0:return p[r(439)]("stopView"),e[r(358)]=3,y[r(319)]().fportRmWeb(this.options[r(260)]);case 3:case"end":return e[r(314)]()}},e,this)})),function(){return a[_0x5be3(486)](this,arguments)})},{key:b(512),value:(e=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var t=_0x5be3;return _regeneratorRuntime()[t(485)](function(e){for(var r=t;;)switch(e[r(462)]=e[r(358)]){case 0:return p[r(439)](r(512)),e.next=3,y.getInstance()[r(407)](this[r(269)].deviceId);case 3:case"end":return e[r(314)]()}},e,this)})),function(){return e[_0x5be3(486)](this,arguments)})},{key:b(308),value:(i=b,n=_asyncToGenerator(_regeneratorRuntime()[i(311)](function e(t){var n,a,o=i;return _regeneratorRuntime()[o(485)](function(e){for(var r=o;;)switch(e[r(462)]=e[r(358)]){case 0:if(n=this.options[r(260)],e.t0=!n,e.t0)return e[r(358)]=5,g[r(319)]()[r(389)]();e.next=7;break;case 5:n=e.sent,e.t0=!n;case 7:if(e.t0)return e.abrupt("return",!1);e[r(358)]=9;break;case 9:return e[r(358)]=11,c(w(["-t",n,"shell",r(342)[r(531)](t,'"')]));case 11:return a=e[r(339)],e[r(398)](r(536),(!a[r(538)]&&a[r(302)]||p[r(244)](Ct),a[r(302)]&&!a[r(538)]));case 13:case"end":return e[r(314)]()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:b(509),value:(r=b,t=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n,a,o=r,i=arguments;return _regeneratorRuntime()[o(485)](function(e){for(var r=o;;)switch(e.prev=e[r(358)]){case 0:if(n=1<i.length&&void 0!==i[1]?i[1]:"",p[r(439)](r(509)),this.options[r(338)])return e[r(358)]=4,ct(t);e[r(358)]=9;break;case 4:if(a=e[r(339)]){e[r(358)]=8;break}return p.info(r(413)),e[r(398)](r(536));case 8:n&&(a=n),p.info(r(529),a);case 9:case"end":return e[r(314)]()}},e,this)})),function(e){return t[r(486)](this,arguments)})}])})(),K=b(require("fs")),U=b(require(_0x19cf7b(426))),u=v(_0x19cf7b(416)),G=(()=>{var r,e,t,a,n,o,i,s,f,l,h,p,v,b,y,m,d,x,w=_0x19cf7b;return _createClass(function e(r){var t=_0x5be3;_classCallCheck(this,e),this[t(280)]=[],this.terminal=null,this[t(281)]=!1,this[t(269)]=Object[t(458)]({buildMode:t(405),buildTarget:t(324)},r)},[{key:"handle",value:function(e){var t=_0x5be3,r=this,n=(u[t(439)](t(273)[t(531)](e)),{start:function(){return r[t(275)]()},installDeps:function(){return r.installDeps()},assembleHap:function(){return r[t(523)]()},installHap:function(){return r[t(375)]()},assembleAndInstallHap:function(){return r[t(502)]()},uninstall:function(){return r[t(396)]()},clean:function(){return r[t(232)]()},stop:function(){return r[t(314)]()}});n[e]?n[e]().then(function(){var e=t;return u[e(439)](e(234))})[t(254)](function(e){var r=t;return u.error(r(227),e)}):u[t(244)](t(520)+Object.keys(n)[t(279)](","))}},{key:w(261),value:function(e){var r=w;this[r(280)][r(317)](e)}},{key:"del",value:function(e){var r=w,e=this[r(280)].indexOf(e);-1!==e&&this[r(280)][r(436)](e,1)}},{key:w(314),value:function(){var e=w;this[e(281)]=!0,this[e(483)]()}},{key:w(483),value:function(){for(var e=w;this.cpList[e(378)];)ot(this[e(280)].pop())}},{key:w(350),value:function(){}},{key:"runCmdAsync",value:(d=w,x=_asyncToGenerator(_regeneratorRuntime()[d(311)](function e(i,u,c){var t=d,s=this;return _regeneratorRuntime()[t(485)](function(e){for(var r=t;;)switch(e[r(462)]=e.next){case 0:return e[r(398)]("return",new Promise(function(t,n){var a,o=r;s.stopping?n(o(441)):(a=_(i,u,function(e,r){if(s[o(417)](a),e)return n(e);t(r)},c),s[o(261)](a))}));case 1:case r(479):return e.stop()}},e)})),function(e,r,t){return x[d(486)](this,arguments)})},{key:"runHdcCmdAsync",value:(y=w,m=_asyncToGenerator(_regeneratorRuntime()[y(311)](function e(t,n){var a=y;return _regeneratorRuntime()[a(485)](function(e){for(var r=a;;)switch(e.prev=e[r(358)]){case 0:return e.abrupt(r(536),this[r(295)](O(),t,n));case 1:case r(479):return e[r(314)]()}},e,this)})),function(e,r){return m[y(486)](this,arguments)})},{key:w(275),value:(v=w,b=_asyncToGenerator(_regeneratorRuntime()[v(311)](function e(){var t,n,a=v;return _regeneratorRuntime()[a(485)](function(e){for(var r=a;;)switch(e[r(462)]=e.next){case 0:if(t=this[r(269)].projectRoot,u[r(439)]("start ability under "[r(531)](t)),n=this.options[r(260)],e.t0=n,e.t0){e.next=8;break}return e.next=7,g.getInstance()[r(389)]();case 7:n=e.sent;case 8:return e[r(358)]=10,c(J(t,n));case 10:case r(479):return e[r(314)]()}},e,this)})),function(){return b.apply(this,arguments)})},{key:w(277),value:(h=w,p=_asyncToGenerator(_regeneratorRuntime()[h(311)](function e(){var t,n=h;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e.next){case 0:return t=this[r(269)].projectRoot,u.info(r(427)[r(531)](t)),e.next=4,c(et(t));case 4:case"end":return e[r(314)]()}},e,this)})),function(){return p[h(486)](this,arguments)})},{key:w(523),value:(l=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var r,n,a,o,i=_0x5be3;return _regeneratorRuntime()[i(485)](function(e){for(var t=i;;)switch(e[t(462)]=e[t(358)]){case 0:return r=this[t(269)][t(513)],u[t(439)](t(491)[t(531)](r)),n=(new Date).getTime(),K[t(482)](U[t(307)](r,"oh_modules"))||this.installDeps(),e[t(358)]=6,c(this[t(295)](C(),[t(477)],{cwd:r}));case 6:return a=null==(a=V(r))||null==(a=a[t(330)])?void 0:a[t(472)](function(e){var r=t;return""[r(531)](e[r(305)],"@default")}),e[t(358)]=9,c(this[t(295)](C(),["-m",t(388),"-p",t(423).concat(null==a?void 0:a.join(",")),t(523),1<a[t(378)]?"assembleHsp":"",t(267),t(321),t(539),"-p",t(492)],{chdir:!0,cwd:r}));case 9:(a=e[t(339)])[t(538)]&&u[t(244)](t(290),a.err),o=Math[t(507)](((new Date)[t(463)]()-n)/1e3),u[t(439)](t(316)[t(531)](o," s"));case 13:case t(479):return e[t(314)]()}},e,this)})),function(){return l[_0x5be3(486)](this,arguments)})},{key:"usingTmpDir",value:(s=w,f=_asyncToGenerator(_regeneratorRuntime()[s(311)](function e(t,n){var a,o;return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e.next){case 0:return a=r(297)+((new Date).getTime()+Math[r(507)](1e3*Math[r(292)]())),e[r(358)]=3,c(this.runHdcCmdAsync(["-t",t,r(418),r(519),a]));case 3:if((o=e[r(339)])[r(538)])return u[r(244)]("mkdir error",o.err),e.abrupt("return");e.next=7;break;case 7:return e.next=9,c(n(a));case 9:return(o=e[r(339)])[r(538)]&&u[r(244)](r(236),o[r(538)]),e[r(358)]=13,c(this[r(278)](["-t",t,"shell","rm",r(283),a]));case 13:case r(479):return e[r(314)]()}},e,this)})),function(e,r){return f[s(486)](this,arguments)})},{key:"installHap",value:(o=w,i=_asyncToGenerator(_regeneratorRuntime()[o(311)](function e(){var i,r,s,n,a=o,f=this;return _regeneratorRuntime()[a(485)](function(e){for(var t=a;;)switch(e[t(462)]=e[t(358)]){case 0:if(i=this[t(269)][t(513)],u[t(439)](t(239)[t(531)](i)),r=(new Date)[t(463)](),s=this[t(269)][t(260)],e.t0=s,e.t0){e[t(358)]=8;break}return e[t(358)]=7,g[t(319)]()[t(389)]();case 7:s=e.sent;case 8:return e[t(358)]=10,c(this.usingTmpDir(s,(()=>{var n=t,r=_asyncToGenerator(_regeneratorRuntime()[n(311)](function e(a){var o,r,t=n;return _regeneratorRuntime()[t(485)](function(e){for(var n=t;;)switch(e[n(462)]=e[n(358)]){case 0:return r=null==(r=V(i))||null==(r=r[n(330)])?void 0:r[n(472)](function(e){var r=n;return U[r(307)](i,e[r(450)],r(444)[r(531)](e[r(305)],"-default-signed.")[r(531)](e[r(305)]===r(371)?r(434):"hsp"))}),o=!1,e[n(358)]=3,Promise[n(272)](null==r?void 0:r[n(472)]((()=>{var r=n,t=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(t){var n;return _regeneratorRuntime().wrap(function(e){for(var r=_0x5be3;;)switch(e[r(462)]=e[r(358)]){case 0:if(K[r(482)](t)){e.next=3;break}return u[r(244)](r(478),t),o=!0,e[r(398)](r(536));case 3:return e.next=5,c(f[r(278)](["-t",s,"file",r(345),t,a]));case 5:(n=e.sent).err&&(u[r(244)](r(394),n[r(538)]),o=!0);case 7:case"end":return e.stop()}},e)}));return function(e){return t[r(486)](this,arguments)}})()));case 3:if(o)return e[n(398)]("return");e[n(358)]=5;break;case 5:return e[n(358)]=7,c(f.runHdcCmdAsync(["-t",s,n(418),"bm","install","-p",a]));case 7:if((r=e[n(339)])[n(538)])return u[n(244)](n(497),r[n(538)]),e[n(398)]("return");e[n(358)]=11;break;case 11:J(i,s);case 12:case"end":return e.stop()}},e)}));return function(e){return r.apply(this,arguments)}})()));case 10:n=Math[t(507)](((new Date)[t(463)]()-r)/1e3),u[t(439)](t(271).concat(n," s"));case 12:case t(479):return e[t(314)]()}},e,this)})),function(){return i[o(486)](this,arguments)})},{key:w(502),value:(a=w,n=_asyncToGenerator(_regeneratorRuntime()[a(311)](function e(){var t,n=a;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e[r(358)]){case 0:return this[r(281)]=!1,e[r(358)]=3,g[r(319)]()[r(389)]();case 3:if(e[r(339)]){e[r(358)]=5;break}return e[r(398)](r(536));case 5:return e[r(358)]=7,c(this[r(523)]());case 7:if((t=e[r(339)])[r(538)])return u[r(244)]("assembleHap error",t[r(538)]),e[r(398)](r(536));e[r(358)]=11;break;case 11:return e[r(358)]=13,c(this[r(375)]());case 13:case r(479):return e[r(314)]()}},e,this)})),function(){return n[a(486)](this,arguments)})},{key:w(396),value:(t=_asyncToGenerator(_regeneratorRuntime().mark(function e(){var t,n,a,o=_0x5be3;return _regeneratorRuntime()[o(485)](function(e){for(var r=o;;)switch(e[r(462)]=e[r(358)]){case 0:if(t=this.options.projectRoot,u[r(439)](r(242)[r(531)](t)),n=this.options.deviceId,e.t0=n,e.t0){e[r(358)]=8;break}return e.next=7,g[r(319)]().getDeviceId();case 7:n=e[r(339)];case 8:return a=P(t),e.next=11,c(this[r(278)](["-t",n,r(396),a]));case 11:if((a=e[r(339)])[r(538)])return u[r(244)](r(455),a[r(538)]),e.abrupt(r(536));e[r(358)]=15;break;case 15:case r(479):return e.stop()}},e,this)})),function(){return t[_0x5be3(486)](this,arguments)})},{key:w(232),value:(r=w,e=_asyncToGenerator(_regeneratorRuntime()[r(311)](function e(){var t,n=r;return _regeneratorRuntime()[n(485)](function(e){for(var r=n;;)switch(e[r(462)]=e.next){case 0:return t=this[r(269)][r(513)],e[r(358)]=3,rt(t);case 3:return e[r(358)]=5,st(t);case 5:case r(479):return e.stop()}},e,this)})),function(){return e.apply(this,arguments)})}])})();
|
|
1
|
+
var _ref,_0x368b0a=_0x5c05;function _regenerator(){var b,d=_0x5c05,r="function"==typeof Symbol?Symbol:{},e=r[d(480)]||"@@iterator",n=r[d(602)]||d(660);function t(r,e,n,t){var a,o,c,i,u,s,f,l,_,v,h=d,e=e&&e[h(444)]instanceof g?e:g,e=Object[h(627)](e.prototype);return _regeneratorDefine2(e,"_invoke",(a=r,o=n,l=t||[],_=!1,v={p:f=0,n:0,v:b,a:p,f:p[(s=h)(450)](b,4),d:function(r,e){return c=r,i=0,u=b,v.n=e,y}},function(r,e,n){var t=s;if(1<f)throw TypeError(t(591));for(_&&1===e&&p(e,n),i=e,u=n;(m=i<2?b:u)||!_;){c||(i?i<3?(1<i&&(v.n=-1),p(i,u)):v.n=u:v.v=u);try{if(f=2,c){if(i||(r=t(648)),m=c[r]){if(!(m=m[t(496)](c,u)))throw TypeError(t(462));if(!m[t(567)])return m;u=m[t(581)],i<2&&(i=0)}else 1===i&&(m=c[t(554)])&&m[t(496)](c),i<2&&(u=TypeError(t(445)+r+t(661)),i=1);c=b}else if((m=(_=v.n<0)?u:a[t(496)](o,v))!==y)break}catch(r){c=b,i=1,u=r}finally{f=1}}return{value:m,done:_}}),!0),e;function p(r,e){var n=s;for(i=r,u=e,m=0;!_&&f&&!t&&m<l[n(508)];m++){var t,a=l[m],o=v.p,c=a[2];3<r?(t=c===e)&&(u=a[(i=a[4])?5:i=3],a[4]=a[5]=b):a[0]<=o&&((t=r<2&&o<a[1])?(i=0,v.v=e,v.n=a[1]):o<c&&(t=r<3||a[0]>e||c<e)&&(a[4]=r,a[5]=e,v.n=c,i=0))}if(t||1<r)return y;throw _=!0,e}}var y={};function g(){}function a(){}function o(){}var m=Object[d(678)],r=[][e]?m(m([][e]())):(_regeneratorDefine2(m={},e,function(){return this}),m),c=o[d(444)]=g.prototype=Object[d(627)](r);function i(r){var e=d;return Object[e(710)]?Object[e(710)](r,o):(r[e(555)]=o,_regeneratorDefine2(r,n,e(441))),r[e(444)]=Object.create(c),r}return a.prototype=o,_regeneratorDefine2(c,d(584),o),_regeneratorDefine2(o,d(584),a),a.displayName=d(441),_regeneratorDefine2(o,n,d(441)),_regeneratorDefine2(c),_regeneratorDefine2(c,n,"Generator"),_regeneratorDefine2(c,e,function(){return this}),_regeneratorDefine2(c,"toString",function(){return d(672)}),(_regenerator=function(){return{w:t,m:i}})()}function _regeneratorDefine2(r,e,n,t){var o=_0x5c05,c=Object[o(723)];try{c({},"",{})}catch(r){c=0}(_regeneratorDefine2=function(r,e,n,t){var a=o;e?c?c(r,e,{value:n,enumerable:!t,configurable:!t,writable:!t}):r[e]=n:((t=function(e,n){_regeneratorDefine2(r,e,function(r){return this[_0x5c05(657)](e,n,r)})})(a(648),0),t(a(603),1),t(a(554),2))})(r,e,n,t)}function ownKeys(n,r){var e,t=_0x5c05,a=Object[t(520)](n);return Object[t(636)]&&(e=Object.getOwnPropertySymbols(n),r&&(e=e[t(738)](function(r){var e=t;return Object.getOwnPropertyDescriptor(n,r)[e(545)]})),a[t(522)].apply(a,e)),a}function _objectSpread(n){for(var t=_0x5c05,r=1;r<arguments[t(508)];r++){var a=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(a),!0)[t(691)](function(r){_defineProperty(n,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object[t(482)](a)):ownKeys(Object(a))[t(691)](function(r){var e=t;Object[e(723)](n,r,Object[e(652)](a,r))})}return n}function _defineProperty(r,e,n){var t=_0x5c05;return(e=_toPropertyKey(e))in r?Object[t(723)](r,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[e]=n,r}function asyncGeneratorStep(r,e,n,t,a,o,c){var i=_0x5c05;try{var u=r[o](c),s=u[i(581)]}catch(r){return void n(r)}u[i(567)]?e(s):Promise.resolve(s)[i(590)](t,a)}function _asyncToGenerator(i){return function(){var r=this,c=arguments;return new Promise(function(e,n){var t=i[_0x5c05(568)](r,c);function a(r){asyncGeneratorStep(t,e,n,a,o,"next",r)}function o(r){asyncGeneratorStep(t,e,n,a,o,"throw",r)}a(void 0)})}}function _classCallCheck(r,e){var n=_0x5c05;if(!(r instanceof e))throw new TypeError(n(525))}function _defineProperties(r,e){for(var n=_0x5c05,t=0;t<e.length;t++){var a=e[t];a[n(545)]=a[n(545)]||!1,a.configurable=!0,n(581)in a&&(a[n(448)]=!0),Object.defineProperty(r,_toPropertyKey(a.key),a)}}function _createClass(r,e,n){var t=_0x5c05;return e&&_defineProperties(r[t(444)],e),n&&_defineProperties(r,n),Object[t(723)](r,t(444),{writable:!1}),r}function _toPropertyKey(r){r=_toPrimitive(r,"string");return"symbol"==_typeof(r)?r:r+""}function _toPrimitive(r,e){var n=_0x5c05;if(n(484)!=_typeof(r)||!r)return r;var t=r[Symbol[n(615)]];if(void 0===t)return(n(643)===e?String:Number)(r);t=t[n(496)](r,e||"default");if(n(484)!=_typeof(t))return t;throw new TypeError(n(708))}function _createForOfIteratorHelper(r,e){var n,t,a,o,c=_0x5c05,i=c(517)!=typeof Symbol&&r[Symbol.iterator]||r[c(576)];if(i)return a=!(t=!0),{s:function(){i=i[c(496)](r)},n:function(){var r=c,e=i.next();return t=e[r(567)],e},e:function(r){a=!0,n=r},f:function(){var r=c;try{t||null==i.return||i[r(554)]()}finally{if(a)throw n}}};if(Array[c(644)](r)||(i=_unsupportedIterableToArray(r))||e&&r&&c(650)==typeof r.length)return i&&(r=i),o=0,{s:e=function(){},n:function(){return o>=r[c(508)]?{done:!0}:{done:!1,value:r[o++]}},e:function(r){throw r},f:e};throw new TypeError(c(495))}function _unsupportedIterableToArray(r,e){var n,t=_0x5c05;if(r)return t(643)==typeof r?_arrayLikeToArray(r,e):("Object"===(n={}[t(499)][t(496)](r)[t(595)](8,-1))&&r[t(584)]&&(n=r[t(584)][t(454)]),t(596)===n||t(523)===n?Array.from(r):t(569)===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[t(592)](n)?_arrayLikeToArray(r,e):void 0)}function _arrayLikeToArray(r,e){(null==e||e>r.length)&&(e=r.length);for(var n=0,t=Array(e);n<e;n++)t[n]=r[n];return t}function _typeof(r){var n=_0x5c05;return(_typeof=n(528)==typeof Symbol&&n(638)==typeof Symbol[n(480)]?function(r){return typeof r}:function(r){var e=n;return r&&e(528)==typeof Symbol&&r.constructor===Symbol&&r!==Symbol[e(444)]?e(638):typeof r})(r)}(()=>{for(var r=_0x5c05,e=_0x1273();;)try{if(835820==+parseInt(r(685))*(parseInt(r(446))/2)+-parseInt(r(740))/3*(-parseInt(r(700))/4)+parseInt(r(519))/5+parseInt(r(703))/6+-parseInt(r(447))/7*(-parseInt(r(468))/8)+-parseInt(r(453))/9+parseInt(r(659))/10*(-parseInt(r(667))/11))break;e.push(e.shift())}catch(r){e.push(e.shift())}})();var gt=Object.create,H=Object[_0x368b0a(723)],mt=Object[_0x368b0a(652)],ht=Object[_0x368b0a(635)],wt=Object[_0x368b0a(678)],yt=Object[_0x368b0a(444)][_0x368b0a(711)],bt=function(r,e){for(var n in e)H(r,n,{get:e[n],enumerable:!0})},Q=function(n,t,a,o){var c=_0x368b0a;if(t&&"object"==_typeof(t)||typeof t==c(528)){var i,e=_createForOfIteratorHelper(ht(t));try{for(e.s();!(i=e.n())[c(567)];)(()=>{var r=c,e=i[r(581)];yt.call(n,e)||e===a||H(n,e,{get:function(){return t[e]},enumerable:!(o=mt(t,e))||o[r(545)]})})()}catch(r){e.e(r)}finally{e.f()}}return n},w=function(r,e,n){var t=_0x368b0a;return n=null!=r?gt(wt(r)):{},Q(!e&&r&&r.__esModule?n:H(n,t(629),{value:r,enumerable:!0}),r)},Pt=function(r){return Q(H({},_0x368b0a(720),{value:!0}),r)},Nt={},h=(bt(Nt,{ASCF_LOG_FILE:function(){return St},AscfBuilder:function(){return X},AscfDebugger:function(){return G},getDevEcoSdkHome:function(){return _},getHdcPath:function(){return $},getHvigorwPath:function(){return L},getLogger:function(){return P},getNodePath:function(){return It},getNpmPath:function(){return $t},getOhpmPath:function(){return R},getPath:function(){return v},openInBrowser:function(){return Y},setLoggerConfig:function(){return xt}}),module.exports=Pt(Nt),w(require("log4js"))),B=w(require(_0x368b0a(515))),M=w(require(_0x368b0a(674))),vt=[_0x368b0a(532),_0x368b0a(612),_0x368b0a(457),_0x368b0a(724),_0x368b0a(477)],I=_0x368b0a(669),St=B[_0x368b0a(563)]((0,M[_0x368b0a(629)])("ascf-cache"),"build.log");function xt(r){var e=_0x368b0a,r=Dt(r);h.configure({appenders:{default:{type:e(622),layout:{type:e(719),pattern:"> ascf-toolkit %p %c %[%m%]"}},"debug-log-file":{type:e(642),filename:B.resolve((0,M.default)("ascf-cache"),e(665)),maxLogSize:10485760,backups:9,layout:{type:e(719),pattern:e(479)}}},categories:{default:{appenders:[e(629)],level:r},AscfToolkit:{appenders:[e(601)],level:e(532)}}})}function Dt(r){var e=_0x368b0a;return r&&vt[e(546)](r[e(641)]())?r[e(641)]():e(612)}var k=(()=>{var i=_0x368b0a;return _createClass(function r(e){var n=_0x5c05;_classCallCheck(this,r),this[n(655)]=e},[{key:i(532),value:function(r){for(var e=i,n=h.getLogger(this[e(655)]),t=h[e(689)](I),a=arguments.length,o=new Array(1<a?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];n.debug[e(568)](n,[r][e(640)](o)),t[e(532)][e(568)](t,[r][e(640)](o))}},{key:i(612),value:function(r){for(var e=i,n=h[e(689)](this[e(655)]),t=h[e(689)](I),a=arguments.length,o=new Array(1<a?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];n[e(612)][e(568)](n,[r][e(640)](o)),t[e(612)][e(568)](t,[r][e(640)](o))}},{key:"warn",value:function(r){for(var e=i,n=h.getLogger(this[e(655)]),t=h[e(689)](I),a=arguments[e(508)],o=new Array(1<a?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];n.warn[e(568)](n,[r][e(640)](o)),t.warn[e(568)](t,[r].concat(o))}},{key:i(724),value:function(r){for(var e=i,n=h[e(689)](this[e(655)]),t=h.getLogger(I),a=arguments[e(508)],o=new Array(1<a?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];n[e(724)][e(568)](n,[r][e(640)](o)),t[e(724)][e(568)](t,[r][e(640)](o))}},{key:i(477),value:function(r){for(var e=i,n=h[e(689)](this[e(655)]),t=h[e(689)](I),a=arguments.length,o=new Array(1<a?a-1:0),c=1;c<a;c++)o[c-1]=arguments[c];n[e(477)].apply(n,[r].concat(o)),t.fatal[e(568)](t,[r][e(640)](o))}}])})();function P(r){return new k(r)}function c(r){return _c[_0x368b0a(568)](this,arguments)}function _c(){var r=_0x368b0a;return(_c=_asyncToGenerator(_regenerator().m(function r(e){var n;return _regenerator().w(function(r){for(;;)switch(r.n){case 0:return r.p=0,r.n=1,e;case 1:return n=r.v,r.a(2,{data:n});case 2:return r.p=2,r.a(2,{err:r.v})}},r,null,[[0,2]])})))[r(568)](this,arguments)}var Z=w(require("http"));function tt(o,c){return new Promise(function(t,a){var r=_0x5c05,e=Object[r(570)]({timeout:6e3},c),n=Z.default[r(560)](o,function(r){var n="";r.on("data",function(r){n+=r}),r.on("end",function(){var e=_0x5c05;try{t(JSON[e(537)](n))}catch(r){a(new Error(e(466)))}})});n[r(607)](e[r(481)],function(){n[r(476)](),a(new Error("Request timed out"))}),n.on(r(724),a),n.end()})}var E=require("child_process"),C=w(require("fs")),W=w(require(_0x368b0a(485))),et=w(require(_0x368b0a(515))),rt=(null==(_ref=process[_0x368b0a(666)][_0x368b0a(742)]||process.env[_0x368b0a(463)])?void 0:_ref.split(";")[0][_0x368b0a(631)]())+_0x368b0a(687),Lt=rt||_0x368b0a(634),Ct=rt||_0x368b0a(649),At=process[_0x368b0a(739)]===_0x368b0a(587)?Ct:Lt;function v(){for(var r=_0x368b0a,e=arguments[r(508)],n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var a=process[r(666)][r(727)],a=a?a+"/../tools/":At,a=et[r(458)][r(568)](et,[a][r(640)](n));return process[r(739)]===r(587)&&a[r(546)](" ")?'"'.concat(a,'"'):a}function It(){var r=_0x368b0a;return v("node",process[r(739)]===r(587)?"node.exe":r(536))}function $t(){var r=_0x368b0a;return v("node",process[r(739)]===r(587)?r(493):"npm")}function R(){var r=_0x368b0a;return v(r(600),r(656),r(600))}function L(){var r=_0x368b0a;return v("hvigor",r(656),r(535))}function _(){var r=_0x368b0a;return v(r(439))[r(714)](/"/g,"")}function $(){var r=_0x368b0a;return v(r(598),"win32"===process[r(739)]?r(498):r(593))}var p=P(_0x368b0a(593));function J(r,e,n,t){var a=_0x368b0a,o=(p[a(532)](a(506),r,null==e?void 0:e[a(458)](" ")),_()),o=(p[a(532)]("DEVECO_SDK_HOME="+o),Object[a(570)]({shell:!0,env:_objectSpread(_objectSpread({},process[a(666)]||{}),{},{DEVECO_SDK_HOME:o})},t)),t=(0,E.spawn)(r,e,o),c=[],i=[];return t[a(622)].on(a(494),function(r){var e=a,r=r[e(499)]().trim();p[e(532)](e(614),r),c[e(522)](r)}),t[a(670)].on(a(494),function(r){var e=a,r=r[e(499)]()[e(631)]();p[e(724)](e(486),r),i[e(522)](r)}),t.on(a(579),function(r){var e=a;0!==r?(r=e(574)[e(640)](r,"."),p[e(724)](r),null!=n&&n(r+e(562)+i[e(458)]("\n"))):(r=c[e(458)]("\n"),/failed to start ability/[e(592)](r)?null!=n&&n(e(705)):(null!=n&&n(null,r),p[e(532)](e(679))))}),t}function T(r,e,n,t){return _T[_0x368b0a(568)](this,arguments)}function _T(){var r=_0x368b0a;return(_T=_asyncToGenerator(_regenerator().m(function r(e,a,o,c){return _regenerator().w(function(r){for(;;)if(0===r.n)return r.a(2,new Promise(function(n,t){var r=J(e,a,function(r,e){if(r)return t(r);n(e)},o);null!=c&&c(r)}))},r)})))[r(568)](this,arguments)}function y(r,e){return _y[_0x368b0a(568)](this,arguments)}function _y(){var r=_0x368b0a;return(_y=_asyncToGenerator(_regenerator().m(function r(e,n){return _regenerator().w(function(r){for(;;)if(0===r.n)return r.a(2,T($(),e,n))},r)})))[r(568)](this,arguments)}function Ot(){return _Ot[_0x368b0a(568)](this,arguments)}function _Ot(){var r=_0x368b0a;return(_Ot=_asyncToGenerator(_regenerator().m(function r(){var n;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return r.n=1,c(y([e(589),"targets"]));case 1:return n=r.v,r.a(2,n[e(550)]?(p[e(724)](e(704)+n[e(550)]),[]):null==(n=n.data)||null==(n=n[e(631)]())||null==(n=n[e(681)]("\n"))?void 0:n[e(580)](function(r){return r[e(631)]()}))}},r)})))[r(568)](this,arguments)}function Et(r){return _Et[_0x368b0a(568)](this,arguments)}function _Et(){var r=_0x368b0a;return(_Et=_asyncToGenerator(_regenerator().m(function r(n){var t;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return r.n=1,c(y(["-t",n,e(503),e(733),e(560),e(680)]));case 1:return t=r.v,r.a(2,t[e(550)]||/(\[Fail\])/[e(592)](t[e(494)])?(p[e(724)](e(712),t[e(550)]),"Unknown"):null==(t=t[e(494)])?void 0:t[e(631)]())}},r)})))[r(568)](this,arguments)}function _0x5c05(r,e){var n=_0x1273();return(_0x5c05=function(r,e){return n[r-=437]})(r,e)}function S(r){var e,n=_0x368b0a,r=""[n(640)](r,"/AppScope/app.json5");if(C.existsSync(r))return e=C[n(732)](r,n(599)),null==(e=W.parse(e))||null==(e=e[n(524)])?void 0:e[n(658)];throw p[n(724)]("".concat(r,n(456))),new Error(""[n(640)](r,n(456)))}function F(r){var e,n=_0x368b0a,r=""[n(640)](r,n(653));if(C[n(668)](r))return e=C[n(732)](r,n(599)),W[n(537)](e);throw p[n(724)](""[n(640)](r,n(456))),new Error("".concat(r,n(456)))}function K(r,e){return _K[_0x368b0a(568)](this,arguments)}function _K(){var r=_0x368b0a;return(_K=_asyncToGenerator(_regenerator().m(function r(n,t){var a,o;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return p.info("start startAbility under ".concat(n)),a=S(n),r.n=1,c(y(["-t",t,e(503),"aa",e(706),a]));case 1:return r.n=2,c(y(["-t",t,e(503),"aa",e(518),"-a",e(675),"-b",a,"--ps launchMode forceUpdate"]));case 2:if((o=r.v)[e(550)])return p[e(724)](e(709),o[e(550)]),p[e(724)](e(452)),r.a(2);r.n=3;break;case 3:return r.a(2)}},r)})))[r(568)](this,arguments)}function st(r){return _st[_0x368b0a(568)](this,arguments)}function _st(){var r=_0x368b0a;return(_st=_asyncToGenerator(_regenerator().m(function r(n){var t;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return p[e(612)]("start installDeps under ".concat(n)),r.n=1,c(T(R(),["update"],{chdir:!0,cwd:n}));case 1:(t=r.v)[e(550)]&&p.error("installDeps err",t[e(550)]);case 2:return r.a(2)}},r)})))[r(568)](this,arguments)}function ot(r){return _ot.apply(this,arguments)}function _ot(){var r=_0x368b0a;return(_ot=_asyncToGenerator(_regenerator().m(function r(n){var t;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return p[e(612)](e(610).concat(n)),r.n=1,c(T(R(),[e(507)],{chdir:!0,cwd:n}));case 1:(t=r.v).err&&p[e(724)]("ohpmClean err",t.err);case 2:return r.a(2)}},r)})))[r(568)](this,arguments)}function nt(r){return _nt[_0x368b0a(568)](this,arguments)}function _nt(){var r=_0x368b0a;return(_nt=_asyncToGenerator(_regenerator().m(function r(n){var t;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return p[e(612)]("start hvigor clean under "[e(640)](n)),r.n=1,c(T(L(),["clean",e(534)],{chdir:!0,cwd:n}));case 1:(t=r.v)[e(550)]&&p.error(e(474),t[e(550)]);case 2:return r.a(2)}},r)})))[r(568)](this,arguments)}function it(r){var e=_0x368b0a;if(r){var n=process[e(739)];try{n===e(587)?(0,E[e(513)])(e(744)[e(640)](r[e(526)]," /T /F")):"darwin"===n&&r.pid?process.kill(r[e(526)]):r[e(745)]()}catch(r){p[e(724)](e(715),r)}}}var V=_createClass(function r(){_classCallCheck(this,r)}),O=(()=>{var r,e,n=_0x368b0a;function t(){var r=_0x5c05;_classCallCheck(this,t),this[r(510)]=new Map,this[r(502)]=null}return _createClass(t,[{key:n(729),value:(e=_asyncToGenerator(_regenerator().m(function r(){var n,t,o,a,i=this;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return r.n=1,c(Ot());case 1:if((t=r.v)[e(550)]||null==t||null==(n=t[e(494)])||!n[e(508)]||/(\[Empty\])|(\[Fail\])/.test(null==(n=t[e(494)])?void 0:n[e(458)]("\n")))return r.a(2,(p[e(724)]("listTargets error or no devices found"),[]));r.n=2;break;case 2:return p[e(532)](e(621),null==(n=t[e(494)])?void 0:n[e(458)]("\n")),o=!1,r.n=3,Promise.all(t[e(494)].map((()=>{var e=_asyncToGenerator(_regenerator().m(function r(n){var t,a;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:if(i[e(502)]&&i[e(502)].sn===n&&(o=!0),i[e(510)][e(475)](n))return r.a(2,i[e(510)][e(560)](n));r.n=1;break;case 1:return(t=new V).sn=n,r.n=2,Et(n);case 2:return a=r.v,r.a(2,(t.name=a,i[e(510)][e(478)](n,t),t))}},r)}));return function(r){return e[_0x5c05(568)](this,arguments)}})()));case 3:return a=r.v,r.a(2,(o||(this[e(502)]=a[e(508)]?a[0]:null),a))}},r,this)})),function(){return e[_0x5c05(568)](this,arguments)})},{key:n(695),value:function(){return this[n(502)]}},{key:n(573),value:function(r){var e=n;r&&this[e(510)].has(r)&&(r=this[e(510)][e(560)](r),this[e(502)]=r)}},{key:n(737),value:(r=_asyncToGenerator(_regenerator().m(function r(){var n;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return r.n=1,this[e(729)]();case 1:if(n=null==(n=this[e(695)]())?void 0:n.sn){r.n=2;break}return p.error(e(451)),r.a(2);case 2:return r.a(2,n)}},r,this)})),function(){return r.apply(this,arguments)})}],[{key:n(521),value:function(){return t[n(465)]}}])})(),m=(O.instance=new O,O),at=w(require(_0x368b0a(626)));function ct(r){return _ct[_0x368b0a(568)](this,arguments)}function _ct(){return(_ct=_asyncToGenerator(_regenerator().m(function r(c){var i,e,u,n,t=arguments;return _regenerator().w(function(r){for(var o=_0x5c05;;)switch(r.n){case 0:return n=1<t[o(508)]&&void 0!==t[1]?t[1]:{},e=n.host,i=void 0===e?o(586):e,e=n[o(481)],u=void 0===e?1e3:e,n=new Promise(function(r,e){function n(){a[t(559)](),e()}var t=o,a=new at[t(459)];a[t(472)](t(724),n),a[t(472)](t(481),n),a[t(607)](u),a[t(504)](c,i,function(){a[t(663)](),r(c)})}),r.p=1,r.n=2,n;case 2:return r.a(2,!0);case 3:return r.p=3,r.a(2,!1)}},r,null,[[1,3]])}))).apply(this,arguments)}var x=P(_0x368b0a(438)),D=_0x368b0a(440);function _0x1273(){var r=["hdc.exe","toString","open","assembleHap within ","cur","shell","connect","install","begin runCmd","clean","length","add","cache","mkdir error","google-chrome","execSync","fportV8","path","openBrowser","undefined","start","2193060PEttBE","keys","getInstance","push","Set","app","Cannot call a class as a function","pid","fportRmV8","function","deviceId","chrome://inspect#devices","uninstall hap error","debug","file","--parallel","hvigorw","node","parse","localabstract:webview_devtools_remote_",'"`"',"stopping","getDebugees error: ","uninstall","cancelled","catch","enumerable","includes","google chrome","/json","spawn","err","--sync","unref","module","return","__proto__","microsoft-edge","--allow-file-access-from-files","-EncodedCommand","destroy","get","usingTmpDir error"," errors:\n","resolve",'`""',"runCmdAsync","utf16le","done","apply","Arguments","assign","projectRoot","SYSTEMROOT","setCurrent","runCmd exited with code ","\\System32\\WindowsPowerShell\\v1.0\\powershell","@@iterator","getTime","module=","close","map","value","cwd","devtoolsFrontendUrl","constructor","dispose","127.0.0.1","win32","webLocalPort","list","then","Generator is already running","test","hdc","fportRm","slice","Map","assembleHap error","../sdk/default/openharmony/toolchains","utf-8","ohpm","debug-log-file","toStringTag","throw","startService","AscfBuilder","chrome","setTimeout","startView",", browser url: ","start ohpm clean under ","@default","info","installHap","runCmd stdout","toPrimitive"," error","hap","darwin","assembleHap err","exports","found devices: ","stdout","del","modules","remotePort","net","create","child_process","default","send hap error","trim","Launched within ","-ArgumentList","/Applications/DevEco-Studio.app/Contents/tools","getOwnPropertyNames","getOwnPropertySymbols","start uninstall pkg under ","symbol","service","concat","toLowerCase","fileSync","string","isArray","ports:\n","--daemon","localPort","next","C:\\Program Files\\Huawei\\DevEco Studio\\tools","number","openBrowser error, please try later","getOwnPropertyDescriptor","/build-profile.json5","assembleHap","categories","bin","_invoke","bundleName","28810NVcMHW","@@toStringTag","' method","handle end","end","fport error: ","build.log","env","880xyeFSy","existsSync","AscfToolkit","stderr","terminal","[object Generator]","options","cachedir","EntryAbility","tcp:","v8LocalPort","getPrototypeOf","runCmd exited.","const.product.name","split","--disable-web-security","entry","The selected Atomic Service is not running properly. Please start the Atomic Service first.","65LtNZfp","init AscfDebugger with options","/../tools/","splice","getLogger","handle ","forEach","handle","start install pkg under ","install hap error","getCurrent","tcp:9225","please open url in browser: ","fport web error: ","start ability under ","166220fsONFV","already has forward","from","827604UiCJBO","list targets error: ","start ability error","force-stop","buffer","@@toPrimitive must return a primitive value.","start hap error","setPrototypeOf","hasOwnProperty","get device name error","pidof","replace","killProcess error","microsoft-edge-dev","stopService","stop","pattern","__esModule","pop","windir","defineProperty","error","assembleAndInstallHap","installDeps","ASCF_DEVECO_SDK_HOME","mkdir","getDevices","all","fportRmWeb","readFileSync","param","stopView","fport","fportWeb get pid error: ","getDeviceId","filter","platform","6gioOVp","fport v8 error: ","DevEco Studio","Buffer","taskkill /pid ","kill","process","DebugPortManager","../sdk","Please check the following: 1.The device is connected to the computer. 2. The screen is on. 3. Check whether the debugging port is occupied.","GeneratorFunction","runHdcCmdAsync","build\\default\\outputs\\default\\","prototype","The iterator does not provide a '","3854TzJUBD","7938007XDcNEB","writable","checkBundleName","bind","No devices found, please connet to phone","Start ability error","7673508mmBqLp","name","google-chrome-stable"," is not found","warn","join","Socket","random","--incremental","iterator result is not an object","DEVECO_SDK_HOME","handle error","instance","Invalid JSON","microsoft edge","8mgdlJs","fport ls error: ","Start","view","once","cpList","hvigorClean err","has","abort","fatal","set","%d{yyyy-MM-dd hh:mm:ss.SSS} > ascf-toolkit %p %c %m","iterator","timeout","getOwnPropertyDescriptors"," is used","object","json5","runCmd stderr","usingTmpDir","round","-default-signed.","AscfDebugger","Bypass","status","npm.cmd","data","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","call","invalid subCmd, should be "];return(_0x1273=function(){return r})()}function U(r){return _U[_0x368b0a(568)](this,arguments)}function _U(){var r=_0x368b0a;return(_U=_asyncToGenerator(_regenerator().m(function r(i){var n,u,s,t,a,o=arguments;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return u=1<o[e(508)]&&void 0!==o[1]&&o[1],s=2<o[e(508)]&&void 0!==o[2]?o[2]:"",r.n=1,c(y(["-t",i,e(735),"ls"]));case 1:(t=r.v)[e(550)]?(x[e(724)](e(469),D),a=[],r.n=4):r.n=2;break;case 2:return r.n=3,Promise[e(730)](null==(n=t[e(494)])?void 0:n[e(631)]()[e(681)]("\n")[e(580)]((()=>{var e=_asyncToGenerator(_regenerator().m(function r(n){var t,a,o;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:if(a=n.split(/\s+/),t=null==(t=a[1])?void 0:t[e(631)](),a=null==(a=a[2])?void 0:a[e(631)](),o=u&&t===e(676).concat(s))return r.n=1,c(y(["-t",i,e(735),"rm",t,a]));r.n=1;break;case 1:return r.a(2,{localPort:t,remotePort:a,needRm:o})}},r)}));return function(r){return e.apply(this,arguments)}})()));case 3:a=r.v[e(738)](function(r){return r.localPort&&!r.needRm});case 4:return r.a(2,a)}},r)})))[r(568)](this,arguments)}function lt(r,e,n){return _lt[_0x368b0a(568)](this,arguments)}function _lt(){var r=_0x368b0a;return(_lt=_asyncToGenerator(_regenerator().m(function r(a,o,i){var n,u,t;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return r.n=1,U(a);case 1:return n=r.v,u=!1,t=o.trim()[e(714)](e(676),""),r.n=2,Promise[e(730)](n[e(580)]((()=>{var e=_asyncToGenerator(_regenerator().m(function r(n){var t;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:if(n[e(647)]&&n.remotePort){r.n=1;break}return r.a(2);case 1:if(t=!1,n[e(647)]===o&&n[e(625)]===i?u=!0:n[e(647)]!==o&&n.remotePort!==i||(t=!0),t)return r.n=2,c(y(["-t",a,e(735),"rm",n[e(647)],n[e(625)]]));r.n=2;break;case 2:return r.a(2)}},r)}));return function(r){return e[_0x5c05(568)](this,arguments)}})()));case 2:if(u)return x[e(457)](e(701)),r.a(2);r.n=3;break;case 3:return r.n=4,ct(t);case 4:if(r.v)return x[e(724)]("port "[e(640)](t,e(483))),r.a(2);r.n=5;break;case 5:return r.n=6,c(y(["-t",a,e(735),o,i]));case 6:if(r.v[e(550)])return x[e(724)](e(664),D),r.a(2);r.n=7;break;case 7:return r.a(2)}},r)})))[r(568)](this,arguments)}function Ht(r,e){return _Ht[_0x368b0a(568)](this,arguments)}function _Ht(){return(_Ht=_asyncToGenerator(_regenerator().m(function r(e,n){return _regenerator().w(function(r){for(;;)switch(r.n){case 0:return r.n=1,U(e,!0,n);case 1:return r.a(2,r.v)}},r)}))).apply(this,arguments)}var j=(()=>{var e,n,t,a,o,i,r=_0x368b0a;return _createClass(function r(){var e=_0x5c05;_classCallCheck(this,r),this[e(588)]=9222,this[e(677)]=9229},[{key:"fportWeb",value:(i=_asyncToGenerator(_regenerator().m(function r(n,t){var a,o,i,u;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:if(u=!n)return r.n=1,m.getInstance()[e(737)]();r.n=2;break;case 1:n=r.v,u=!n;case 2:if(u)return r.a(2);r.n=3;break;case 3:return r.n=4,c(y(["-t",n,e(503),'"ps -ef | grep '[e(640)](t,' | grep -v render | grep -v grep"')]));case 4:if((o=r.v)[e(550)]||null==(a=o[e(494)])||!a[e(508)])return x.error(e(736),D),r.a(2);r.n=5;break;case 5:return i=null==(a=o[e(494)])||null==(a=a[e(631)]()[e(681)]("\n"))?void 0:a[0][e(631)]()[e(681)](/\s+/)[1][e(631)](),r.n=6,c(lt(n,e(676)+this[e(588)],e(538)[e(640)](i)));case 6:if(r.v[e(550)])return x[e(724)](e(698),D),r.a(2);r.n=7;break;case 7:return r.a(2)}},r,this)})),function(r,e){return i[_0x5c05(568)](this,arguments)})},{key:r(514),value:(o=_asyncToGenerator(_regenerator().m(function r(n){var t;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:if(t=!n)return r.n=1,m[e(521)]().getDeviceId();r.n=2;break;case 1:n=r.v,t=!n;case 2:if(t)return r.a(2);r.n=3;break;case 3:return r.n=4,c(lt(n,e(676)+this[e(677)],e(696)));case 4:if(r.v[e(550)])return x[e(724)](e(741),D),r.a(2);r.n=5;break;case 5:return r.a(2)}},r,this)})),function(r){return o.apply(this,arguments)})},{key:r(527),value:(a=_asyncToGenerator(_regenerator().m(function r(n){return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return r.n=1,this[e(594)](n,String(this[e(677)]));case 1:return r.a(2)}},r,this)})),function(r){return a[_0x5c05(568)](this,arguments)})},{key:"fportRmWeb",value:(t=_asyncToGenerator(_regenerator().m(function r(n){return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return r.n=1,this[e(594)](n,String(this[e(588)]));case 1:return r.a(2)}},r,this)})),function(r){return t.apply(this,arguments)})},{key:"fportRm",value:(n=_asyncToGenerator(_regenerator().m(function r(n,t){var a;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:if(a=!n)return r.n=1,m.getInstance()[e(737)]();r.n=2;break;case 1:n=r.v,a=!n;case 2:if(a){r.n=3;break}return r.n=3,Ht(n,t);case 3:return r.a(2)}},r)})),function(r,e){return n[_0x5c05(568)](this,arguments)})},{key:r(492),value:(e=_asyncToGenerator(_regenerator().m(function r(n){var t,a;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:if(t=!n)return r.n=1,m.getInstance()[e(737)]();r.n=2;break;case 1:n=r.v,t=!n;case 2:t?(a=[],r.n=5):r.n=3;break;case 3:return r.n=4,U(n);case 4:a=r.v;case 5:return r.a(2,a)}},r)})),function(r){return e[_0x5c05(568)](this,arguments)})}],[{key:"getInstance",value:function(){return this[r(465)]}}])})(),b=(j[_0x368b0a(465)]=new j,j),u=P(_0x368b0a(490)),Rt=_0x368b0a(684);function Tt(r){return _Tt[_0x368b0a(568)](this,arguments)}function _Tt(){return(_Tt=_asyncToGenerator(_regenerator().m(function r(n){var t;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return t=[],r.p=1,r.n=2,tt("http://localhost:"[e(640)](n,e(548)),{timeout:3e3});case 2:t=r.v,r.n=4;break;case 3:r.p=3,u.error(e(541),D);case 4:return r.a(2,t)}},r,null,[[1,3]])}))).apply(this,arguments)}function pt(r){return _pt[_0x368b0a(568)](this,arguments)}function _pt(){var r=_0x368b0a;return(_pt=_asyncToGenerator(_regenerator().m(function r(n){var t,a,o,c,i;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:if(n){r.n=1;break}return r.a(2,"");case 1:return r.p=1,r.n=2,Tt(n);case 2:if(t=r.v,o=null===t){r.n=3;break}o=void 0===t;case 3:if(a=o){r.n=4;break}a=null==(t=t[0]);case 4:a?(c=void 0,r.n=6):r.n=5;break;case 5:c=t[e(583)];case 6:return r.a(2,c);case 7:return r.p=7,i=r.v,u[e(724)]("getDebugUrl "[e(640)](n,e(616)),i),r.a(2,"")}},r,null,[[1,7]])})))[r(568)](this,arguments)}var G=(()=>{var e,n,r,t,a,o,i,s,f,l=_0x368b0a;return _createClass(function r(e){var n=_0x5c05;_classCallCheck(this,r),u.info(n(686),e),this[n(673)]=Object[n(570)]({open:""},e)},[{key:l(692),value:function(r){var e=l,n=this,t=(u[e(612)](e(690)[e(640)](r)),{status:function(){return n[e(492)]()},start:function(){return n[e(518)]()},stop:function(){return n[e(718)]()},"start-view":function(){return n[e(608)]()},"start-service":function(){return n[e(604)]()},"stop-view":function(){return n[e(734)]()},"stop-service":function(){return n[e(717)]()}});t[r]?t[r]()[e(590)](function(){var r=e;return u.info(r(662))}).catch(function(r){return u[e(724)]("handle error",r)}):u.error(e(497)+Object.keys(t)[e(458)](","))}},{key:l(492),value:(f=_asyncToGenerator(_regenerator().m(function r(){var n,t;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return u[e(612)](e(492)),n=(n=this[e(673)][e(658)])||S(process[e(582)]()),r.n=1,this[e(449)](n);case 1:if(r.v){r.n=2;break}return r.a(2);case 2:return r.n=3,b[e(521)]()[e(492)](this.options[e(529)]);case 3:return n=r.v,r.n=4,Promise.all(null==n?void 0:n[e(580)]((()=>{var e=_asyncToGenerator(_regenerator().m(function r(n){var t,a;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:n[e(647)]!==e(676)[e(640)](b[e(521)]()[e(588)])?r.n=1:(t=e(471),r.n=3);break;case 1:n[e(647)]!=="tcp:"[e(640)](b[e(521)]()[e(677)])?r.n=2:(t=e(639),r.n=3);break;case 2:return r.a(2);case 3:return r.n=4,pt(n[e(647)].replace(e(676),""));case 4:return a=r.v,r.a(2,a?(t===e(471)&&(a=e(530)),""[e(640)](t," ")[e(640)](n[e(647)]," ").concat(n[e(625)],e(609))[e(640)](a)):"")}},r)}));return function(r){return e[_0x5c05(568)](this,arguments)}})()));case 4:0!==(t=(t=r.v)[e(738)](Boolean))[e(508)]&&u.info(e(645)+t[e(458)]("\n"));case 5:return r.a(2)}},r,this)})),function(){return f[_0x5c05(568)](this,arguments)})},{key:"start",value:(s=_asyncToGenerator(_regenerator().m(function r(){return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return u[e(612)](e(518)),r.n=1,this[e(608)]();case 1:return r.n=2,this[e(604)]();case 2:return r.a(2)}},r,this)})),function(){return s[_0x5c05(568)](this,arguments)})},{key:l(718),value:(i=_asyncToGenerator(_regenerator().m(function r(){return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return u[e(612)](e(718)),r.n=1,this.stopView();case 1:return r.n=2,this.stopService();case 2:return r.a(2)}},r,this)})),function(){return i[_0x5c05(568)](this,arguments)})},{key:"startView",value:(o=_asyncToGenerator(_regenerator().m(function r(){var n;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return u[e(612)](e(608)),n=(n=this[e(673)][e(658)])||S(process[e(582)]()),r.n=1,this[e(449)](n);case 1:if(r.v)return r.n=2,b[e(521)]().fportWeb(this[e(673)][e(529)],n);r.n=3;break;case 2:return r.n=3,this.openBrowser(b.getInstance()[e(588)],"chrome://inspect/#devices");case 3:return r.a(2)}},r,this)})),function(){return o[_0x5c05(568)](this,arguments)})},{key:l(604),value:(a=_asyncToGenerator(_regenerator().m(function r(){var n;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return u[e(612)](e(604)),n=(n=this.options[e(658)])||S(process[e(582)]()),r.n=1,this.checkBundleName(n);case 1:if(r.v)return r.n=2,b.getInstance()[e(514)](this[e(673)][e(529)]);r.n=3;break;case 2:return r.n=3,this[e(516)](b[e(521)]().v8LocalPort);case 3:return r.a(2)}},r,this)})),function(){return a[_0x5c05(568)](this,arguments)})},{key:l(734),value:(t=_asyncToGenerator(_regenerator().m(function r(){return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return u[e(612)]("stopView"),r.n=1,b[e(521)]()[e(731)](this[e(673)].deviceId);case 1:return r.a(2)}},r,this)})),function(){return t[_0x5c05(568)](this,arguments)})},{key:l(717),value:(r=_asyncToGenerator(_regenerator().m(function r(){return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return u[e(612)]("stopService"),r.n=1,b[e(521)]().fportRmV8(this[e(673)][e(529)]);case 1:return r.a(2)}},r,this)})),function(){return r.apply(this,arguments)})},{key:l(449),value:(n=_asyncToGenerator(_regenerator().m(function r(n){var t,a,o,i,s,f;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:if(a=this[e(673)][e(529)],i=!a)return r.n=1,m[e(521)]()[e(737)]();r.n=2;break;case 1:a=r.v,i=!a;case 2:if(i)return r.a(2,!1);r.n=3;break;case 3:return r.n=4,c(y(["-t",a,e(503),e(713),n]));case 4:if(t=r.v[e(494)],s=null===t){r.n=5;break}s=void 0===t;case 5:s?(f=void 0,r.n=7):r.n=6;break;case 6:f=t[e(631)]();case 7:return o=f,r.a(2,(o||u[e(724)](Rt),o))}},r,this)})),function(r){return n[_0x5c05(568)](this,arguments)})},{key:"openBrowser",value:(e=_asyncToGenerator(_regenerator().m(function r(n){var t,a,o=arguments;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:if(t=1<o[e(508)]&&void 0!==o[1]?o[1]:"",u[e(612)](e(516)),this[e(673)].open)return r.n=1,pt(n);r.n=3;break;case 1:if(a=r.v){r.n=2;break}return u[e(612)](e(651)),r.a(2);case 2:t&&(a=t),u[e(612)](e(697),a);case 3:return r.a(2)}},r,this)})),function(r){return e[_0x5c05(568)](this,arguments)})}])})(),q=w(require("fs")),z=w(require("path")),f=P(_0x368b0a(605)),X=(()=>{var r,e,n,t,a,o,i,u,s,l,_=_0x368b0a;return _createClass(function r(e){var n=_0x5c05;_classCallCheck(this,r),this[n(473)]=[],this[n(671)]=null,this[n(540)]=!1,this[n(673)]=Object[n(570)]({buildMode:n(532),buildTarget:"atomicservice"},e)},[{key:_(692),value:function(r){var n=_,e=this,t=(f.info(n(690)[n(640)](r)),{start:function(){return e[n(518)]()},installDeps:function(){return e.installDeps()},assembleHap:function(){return e[n(654)]()},installHap:function(){return e[n(613)]()},assembleAndInstallHap:function(){return e[n(725)]()},uninstall:function(){return e[n(542)]()},clean:function(){return e.clean()},stop:function(){return e.stop()}});t[r]?t[r]()[n(590)](function(){return f[n(612)]("handle success")})[n(544)](function(r){var e=n;return f.error(e(464),r)}):f[n(724)](n(497)+Object[n(520)](t)[n(458)](","))}},{key:"add",value:function(r){this[_(473)].push(r)}},{key:_(623),value:function(r){var e=_,r=this[e(473)].indexOf(r);-1!==r&&this[e(473)][e(688)](r,1)}},{key:_(718),value:function(){var r=_;this.stopping=!0,this[r(585)]()}},{key:"dispose",value:function(){for(var r=_;this[r(473)][r(508)];)it(this[r(473)][r(721)]())}},{key:"init",value:function(){}},{key:_(565),value:(l=_asyncToGenerator(_regenerator().m(function r(e,c,i){var u=this;return _regenerator().w(function(r){for(;;)if(0===r.n)return r.a(2,new Promise(function(n,t){var a,o=_0x5c05;u[o(540)]?t(o(543)):(a=J(e,c,function(r,e){if(u[o(623)](a),r)return t(r);n(e)},i),u[o(509)](a))}))},r)})),function(r,e,n){return l[_0x5c05(568)](this,arguments)})},{key:"runHdcCmdAsync",value:(s=_asyncToGenerator(_regenerator().m(function r(n,t){return _regenerator().w(function(r){for(var e=_0x5c05;;)if(0===r.n)return r.a(2,this[e(565)]($(),n,t))},r,this)})),function(r,e){return s.apply(this,arguments)})},{key:_(518),value:(u=_asyncToGenerator(_regenerator().m(function r(){var n,t;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:if(n=this[e(673)][e(571)],f[e(612)](e(699)[e(640)](n)),t=this[e(673)][e(529)]){r.n=2;break}return r.n=1,m[e(521)]().getDeviceId();case 1:t=r.v;case 2:return r.n=3,c(K(n,t));case 3:return r.a(2)}},r,this)})),function(){return u[_0x5c05(568)](this,arguments)})},{key:_(726),value:(i=_asyncToGenerator(_regenerator().m(function r(){var n;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return n=this[e(673)][e(571)],f[e(612)]("start installDeps under "[e(640)](n)),r.n=1,c(st(n));case 1:return r.a(2)}},r,this)})),function(){return i.apply(this,arguments)})},{key:"assembleHap",value:(o=_asyncToGenerator(_regenerator().m(function r(){var e,t,a,o;return _regenerator().w(function(r){for(var n=_0x5c05;;)switch(r.n){case 0:return e=this.options[n(571)],f.info("start assembleHap under "[n(640)](e)),t=(new Date)[n(577)](),q[n(668)](z[n(563)](e,"oh_modules"))||this.installDeps(),r.n=1,c(this[n(565)](L(),[n(551)],{cwd:e}));case 1:return a=null==(a=F(e))||null==(a=a[n(624)])?void 0:a.map(function(r){var e=n;return""[e(640)](r[e(454)],e(611))}),r.n=2,c(this[n(565)](L(),["-m",n(553),"-p",n(578).concat(null==a?void 0:a[n(458)](",")),n(654),1<a[n(508)]?"assembleHsp":"","--parallel",n(461),n(646),"-p","skipAscfCompile=true"],{chdir:!0,cwd:e}));case 2:(a=r.v)[n(550)]&&f[n(724)](n(619),a[n(550)]),o=Math.round(((new Date)[n(577)]()-t)/1e3),f[n(612)](n(501).concat(o," s"));case 3:return r.a(2)}},r,this)})),function(){return o[_0x5c05(568)](this,arguments)})},{key:_(487),value:(a=_asyncToGenerator(_regenerator().m(function r(n,t){var a,o;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return a="/data/local/tmp/"+((new Date).getTime()+Math.round(1e3*Math[e(460)]())),r.n=1,c(this[e(442)](["-t",n,e(503),e(728),a]));case 1:if((o=r.v)[e(550)])return f[e(724)](e(511),o[e(550)]),r.a(2);r.n=2;break;case 2:return r.n=3,c(t(a));case 3:return(o=r.v)[e(550)]&&f[e(724)](e(561),o[e(550)]),r.n=4,c(this.runHdcCmdAsync(["-t",n,e(503),"rm","-rf",a]));case 4:return r.a(2)}},r,this)})),function(r,e){return a.apply(this,arguments)})},{key:_(613),value:(t=_asyncToGenerator(_regenerator().m(function r(){var t,n,i,a,u=this;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:if(t=this[e(673)][e(571)],f[e(612)](e(693)[e(640)](t)),n=(new Date)[e(577)](),i=this[e(673)][e(529)]){r.n=2;break}return r.n=1,m[e(521)]()[e(737)]();case 1:i=r.v;case 2:return r.n=3,c(this.usingTmpDir(i,(()=>{var e=_asyncToGenerator(_regenerator().m(function r(a){var o,e;return _regenerator().w(function(r){for(var n=_0x5c05;;)switch(r.n){case 0:return e=null==(e=F(t))||null==(e=e[n(624)])?void 0:e[n(580)](function(r){var e=n;return z.resolve(t,r.srcPath,e(443)[e(640)](r[e(454)],e(489))[e(640)](r.name===e(683)?e(617):"hsp"))}),o=!1,r.n=1,Promise[n(730)](null==e?void 0:e.map((()=>{var e=_asyncToGenerator(_regenerator().m(function r(n){var t;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:if(q.existsSync(n)){r.n=1;break}return f[e(724)]("hapPath is not exists",n),o=!0,r.a(2);case 1:return r.n=2,c(u[e(442)](["-t",i,e(533),"send",n,a]));case 2:(t=r.v).err&&(f[e(724)](e(630),t.err),o=!0);case 3:return r.a(2)}},r)}));return function(r){return e[_0x5c05(568)](this,arguments)}})()));case 1:if(o)return r.a(2);r.n=2;break;case 2:return r.n=3,c(u[n(442)](["-t",i,"shell","bm",n(505),"-p",a]));case 3:if((e=r.v)[n(550)])return f.error(n(694),e[n(550)]),r.a(2);r.n=4;break;case 4:K(t,i);case 5:return r.a(2)}},r)}));return function(r){return e[_0x5c05(568)](this,arguments)}})()));case 3:a=Math[e(488)](((new Date)[e(577)]()-n)/1e3),f.info(e(632)[e(640)](a," s"));case 4:return r.a(2)}},r,this)})),function(){return t[_0x5c05(568)](this,arguments)})},{key:"assembleAndInstallHap",value:(n=_asyncToGenerator(_regenerator().m(function r(){var n;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return this[e(540)]=!1,r.n=1,m[e(521)]()[e(737)]();case 1:if(r.v){r.n=2;break}return r.a(2);case 2:return r.n=3,c(this[e(654)]());case 3:if((n=r.v)[e(550)])return f[e(724)](e(597),n.err),r.a(2);r.n=4;break;case 4:return r.n=5,c(this.installHap());case 5:return r.a(2)}},r,this)})),function(){return n[_0x5c05(568)](this,arguments)})},{key:_(542),value:(e=_asyncToGenerator(_regenerator().m(function r(){var n,t,a;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:if(n=this[e(673)][e(571)],f[e(612)](e(637)[e(640)](n)),t=this.options.deviceId){r.n=2;break}return r.n=1,m[e(521)]().getDeviceId();case 1:t=r.v;case 2:return a=S(n),r.n=3,c(this.runHdcCmdAsync(["-t",t,e(542),a]));case 3:if((a=r.v).err)return f.error(e(531),a[e(550)]),r.a(2);r.n=4;break;case 4:return r.a(2)}},r,this)})),function(){return e[_0x5c05(568)](this,arguments)})},{key:_(507),value:(r=_asyncToGenerator(_regenerator().m(function r(){var n;return _regenerator().w(function(r){for(var e=_0x5c05;;)switch(r.n){case 0:return n=this[e(673)][e(571)],r.n=1,ot(n);case 1:return r.n=2,nt(n);case 2:return r.a(2)}},r,this)})),function(){return r[_0x5c05(568)](this,arguments)})}])})(),N=w(require(_0x368b0a(437))),ft=require(_0x368b0a(707)),dt=w(require(_0x368b0a(628))),jt={chrome:{darwin:_0x368b0a(547),win32:"chrome",linux:[_0x368b0a(512),_0x368b0a(455),"chromium"]},edge:{darwin:_0x368b0a(467),win32:"msedge",linux:[_0x368b0a(556),_0x368b0a(716)]}};function ut(r,e){var n=_0x368b0a,t=N[n(739)],a=null==(a=jt[r])?void 0:a[t];if(!a)throw new Error(""[n(640)](r," is not supported"));var r=n(500),o=[],c=[];t===n(618)?(r=n(500),c.push("-a",a),/^(chrome|edge):/i[n(592)](e)&&c[n(522)](n(557))):t===n(587)&&(r="".concat(N[n(666)][n(572)]||N[n(666)][n(722)]||"C:\\Windows",n(575)),c[n(522)]("-NoProfile","-NonInteractive","-ExecutionPolicy",n(491),n(558)),t=[n(470)],a?(t[n(522)]('"`"'[n(640)](a,n(564))),e&&(o[n(522)](n(682),n(557)),o[n(522)](e))):e&&t[n(522)]('"'.concat(e,'"')),0<o[n(508)]&&(o=o[n(580)](function(r){var e=n;return e(539).concat(r,e(564))}),t[n(522)](n(633),o[n(458)](","))),e=ft[n(743)][n(702)](t[n(458)](" "),n(566))[n(499)]("base64")),e&&c[n(522)](e),dt[n(549)](r,c)[n(552)]()}function Y(e){var n=_0x368b0a,t=1<arguments[n(508)]&&void 0!==arguments[1]?arguments[1]:n(606);try{ut(t,e)}catch(r){ut(t===n(606)?"edge":n(606),e)}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x2320d8=_0x1fcf;function _createForOfIteratorHelper(e,r){var n,t,a,o,i=_0x1fcf,s=i(339)!=typeof Symbol&&e[Symbol[i(312)]]||e[i(319)];if(s)return a=!(t=!0),{s:function(){s=s[i(310)](e)},n:function(){var e=s[i(321)]();return t=e.done,e},e:function(e){a=!0,n=e},f:function(){var e=i;try{t||null==s[e(341)]||s.return()}finally{if(a)throw n}}};if(Array[i(296)](e)||(s=_unsupportedIterableToArray(e))||r&&e&&i(326)==typeof e.length)return s&&(e=s),o=0,{s:r=function(){},n:function(){return o>=e[i(271)]?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r};throw new TypeError(i(309))}function _unsupportedIterableToArray(e,r){var n,t=_0x1fcf;if(e)return t(338)==typeof e?_arrayLikeToArray(e,r):(n={}[t(282)][t(310)](e)[t(344)](8,-1),"Map"===(n=t(323)===n&&e[t(270)]?e[t(270)].name:n)||"Set"===n?Array.from(e):t(348)===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[t(281)](n)?_arrayLikeToArray(e,r):void 0)}function _arrayLikeToArray(e,r){var n=_0x1fcf;(null==r||r>e[n(271)])&&(r=e[n(271)]);for(var t=0,a=Array(r);t<r;t++)a[t]=e[t];return a}(()=>{for(var e=_0x1fcf,r=_0x7f2a();;)try{if(571708==+parseInt(e(300))*(parseInt(e(328))/2)+-parseInt(e(295))/3+parseInt(e(278))/4+parseInt(e(279))/5*(parseInt(e(305))/6)+parseInt(e(336))/7+-parseInt(e(308))/8*(-parseInt(e(316))/9)+-parseInt(e(342))/10)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var loaderUtils=require(_0x2320d8(322)),checkAppJson=require("./common/appjson-validator"),_require=require(_0x2320d8(330)),relative=_require.relative,fs=require("fs"),path=require("path"),_require2=require(_0x2320d8(313)),getProjectInfo=_require2.getProjectInfo,readJsonFile=_require2[_0x2320d8(275)],_require3=require(_0x2320d8(345)),resolve=_require3[_0x2320d8(297)],packOptions=require(_0x2320d8(283)),_require4=require(_0x2320d8(331)),configs=_require4.configs,_require5=require(_0x2320d8(276)),manifestManager=_require5[_0x2320d8(340)],hasCheckAppJson=!1;function generateIgnoreRule(e){var r;return(r=e?packOptions[_0x2320d8(298)](e):r)||{}}function getComponents(e){var n=_0x2320d8,t=1<arguments[n(271)]&&void 0!==arguments[1]?arguments[1]:[],a=[];return null!=e&&e[n(343)](function(e){var r=n;t[r(274)](e[r(330)])||a[r(324)](e.path)}),JSON.stringify(a)}function appProcess(n,e,r,t){var a=_0x2320d8;configs[a(302)]()&&n[a(324)]("const NOOP=()=>{}; setInterval(NOOP, 1000);"),n[a(324)]("global.__globalComponents = "[a(335)](JSON[a(291)](e),";")),n[a(324)](a(285)[a(335)](t,"';")),Object[a(332)](r)[a(343)](function(e){var r=a;"app"===e?n[r(324)](r(301)):n[r(324)]('import(/* webpackChunkName: "'[r(335)](e[r(299)]("/")?e:""[r(335)](e,"/"),r(277))[r(335)](e,"');"))})}function _0x1fcf(e,r){var n=_0x7f2a();return(_0x1fcf=function(e,r){return n[e-=270]})(e,r)}function appJsonLoader(e){var s=_0x2320d8,c=this,r=(hasCheckAppJson=hasCheckAppJson||checkAppJson(this),(null==(r=loaderUtils[s(317)](this[s(347)])[s(318)]("package"))?void 0:r[s(289)](/\\/g,"/"))||""),n=manifestManager[s(288)](),t=n.projectComponentsMap,n=n[s(304)],u=manifestManager[s(306)](),f=this[s(286)][s(314)],p=Object[s(287)](n[s(346)]||{}),l=[],n=(u&&l.push("var {ascfDefine, ascfRequire} = require("+"".concat(loaderUtils[s(315)](this,"!"[s(335)](resolve("./ascf-define"))),");")),r===s(327)&&appProcess(l,p,t,r),t[r]||t[""[s(335)](r,"/")]);return n&&0<n[s(337)]&&n.forEach(function(e,r){var n=s,t=e[n(334)],e="./"+relative(f,e.compJsonPath)[n(289)](/\\/g,"/"),a=getComponents(t,p),o=e[n(289)](/\.json$/g,n(293)),e=path.resolve(getProjectInfo()[n(307)],e),i=e[n(289)](/\.json$/g,n(293));fs[n(333)](e)&&c[n(292)](e),fs.existsSync(i)&&c[n(292)](i),u?(e=getLazyCodeLoadUsingCmp(t),l[n(324)]("ascfDefine(() => require('"[n(335)](o,n(272))[n(335)](r,"', ")[n(335)](e,")"))):(l[n(324)](n(285).concat(r,"';")),l[n(324)](n(303)[n(335)](a,";")),l[n(324)](n(294)[n(335)](o,"');")))}),asyncProcess(r,l,this),l[s(284)]("\r\n")}function _0x7f2a(){var e=["40AfdNsP","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","call","done","iterator","../common/utils","srcPath","stringifyRequest","1406709WNBYcz","parseQuery","get","@@iterator","key","next","./loader-utils","Object","push","require('./","number","app","181546HyfbRO","asyncJsList","path","../common/config","keys","existsSync","componentList","concat","1147174ofbSoF","size","string","undefined","manifestManager","return","14092330tSzSfY","forEach","slice","./common/utils","usingComponents","resourceQuery","Arguments","constructor","length","'), '","relative","includes","readJsonFile","../ascf-compiler/common/manifest-manager","index.js\" */'./app.json?package=","754180weJlzn","785ukOAtK","hasPlaceHolder","test","toString","./common/packoptions-utils","join","global.__qaRoute = '","options","values","getManifestData","replace","exports","stringify","addDependency",".js","require('","2134215ZdtvVv","isArray","resolve","parseIgnoreRules","endsWith","7ADovls","require('./app.js');","isInjectDebugTimer","global.usingComponents = ","manifest","35274EiwAYE","getIsOpenLazyCodeLoad","ascfSrcPath"];return(_0x7f2a=function(){return e})()}function getLazyCodeLoadUsingCmp(){var n=_0x2320d8,e=0<arguments[n(271)]&&void 0!==arguments[0]?arguments[0]:[],r=[];return e[n(271)]&&(r=e.filter(function(e){var r=n;return!e[r(280)]||"customTabBar"===e[r(320)]}).map(function(e){return e[n(330)]})),JSON[n(291)](r)}function asyncProcess(e,r,n){var t,a=_0x2320d8,o=getProjectInfo(),i=generateIgnoreRule(o.projectCfg);if(null==(t=configs[a(329)][e])?void 0:t[a(332)]()){var s,c=_createForOfIteratorHelper(configs[a(329)][e][a(332)]());try{for(c.s();!(s=c.n())[a(311)];){var u=s.value,f=path[a(273)](o.ascfSrcPath,u)[a(289)](/\\/g,"/");f.endsWith(a(293))||(f+=a(293)),packOptions.isIgnoreFile(path[a(273)](o[a(307)],u),i)||(n[a(292)](u[a(289)](/\//g,"\\")),r[a(324)](a(325).concat(f,"');")))}}catch(e){c.e(e)}finally{c.f()}}}module[_0x2320d8(290)]=appJsonLoader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x4df006=_0x18ad;function _typeof(e){var r=_0x18ad;return(_typeof=r(187)==typeof Symbol&&r(128)==typeof Symbol[r(165)]?function(e){return typeof e}:function(e){var a=r;return e&&a(187)==typeof Symbol&&e[a(192)]===Symbol&&e!==Symbol.prototype?a(128):typeof e})(e)}(()=>{for(var e=_0x18ad,a=_0x5a25();;)try{if(545041==-parseInt(e(139))*(parseInt(e(149))/2)+parseInt(e(138))/3+-parseInt(e(126))/4*(-parseInt(e(206))/5)+-parseInt(e(209))/6*(parseInt(e(154))/7)+parseInt(e(213))/8+parseInt(e(184))/9+-parseInt(e(121))/10)break;a.push(a.shift())}catch(e){a.push(a.shift())}})();var utils=require(_0x4df006(214)),fs=require("fs"),path=require("path"),logTypes=[_0x4df006(158),"WARNING",_0x4df006(169)],REGEXP_INT=/^[0-9]+$/,REGEXP_COLOR_LONG=/^#[0-9a-fA-F]{6}$/,REGEXP_COLOR_SHORT=/^#[0-9a-fA-F]{3}$/,REGEXP_PACKAGE_NAME=/^[a-zA-Z][a-zA-Z0-9_]*(\.[a-zA-Z0-9_]+)+$/,validator={enum:function(t,e){var n=_0x4df006;return 0<=t.indexOf(e[n(194)]())?{value:e}:{value:null,reason:function(e,a){var r=n;return"ERROR: Attribute '"[r(131)](e,r(193)).concat(a,r(202))+r(173)[r(131)](t,"]")}}},booleans:function(e){var t=_0x4df006;return typeof e===t(144)?{value:e}:{value:null,reason:function(e,a){var r=t;return r(180).concat(e,r(193))[r(131)](a,r(202))+r(129)}}},packageName:function(e){var r=_0x4df006;return(e||"")[r(194)]()[r(189)]()[r(167)](REGEXP_PACKAGE_NAME)?{value:!0}:{value:!1,reason:function(e,a){return r(132).concat(e,"' value '").concat(a,"' is invalid.")}}},integer:function(e){var t=_0x4df006;return t(182)===typeof e?e[t(167)](REGEXP_INT)?{value:!0,reason:function(e,a){var r=t;return r(151)[r(131)](e,"' ")+r(170).concat(a,r(143))}}:{value:!1,reason:function(e,a){var r=t;return r(132)[r(131)](e,r(193))[r(131)](a,r(122))}}:(e=(e||"").toString()).match(REGEXP_INT)?{value:!0}:{value:!1,reason:function(e,a){var r=t;return r(132)[r(131)](e,r(193))[r(131)](a,"' is invalid.")}}},strArr:function(e){var t=_0x4df006;return Array[t(155)](e)?{value:e}:{value:!1,reason:function(e,a){var r=t;return r(180).concat(e,r(193))[r(131)](a,r(133))}}},window:function(e){return windowAndNetworkTimeOut(e,windowValidatorMap,_0x4df006(164))},tabBar:function(o){var i,r,u,d,l,f=_0x4df006;return f(178)!==_typeof(o)?{value:!1,reason:function(e){var a=f;return a(180).concat(e,a(199))}}:(i=[],r=[],Object[f(223)](tabBarValidatorMap)[f(220)](function(e){var a=f;tabBarValidatorMap[e][a(198)]&&i[a(174)](e),tabBarValidatorMap[e][a(168)]&&r[a(174)](tabBarValidatorMap[e][a(168)])}),u={},d=[],l=0,Object.keys(o)[f(220)](function(e){var a,r,t,n=f;typeof tabBarValidatorMap[e]!==n(153)?(-1!==i.indexOf(e)&&(a=i[n(185)](e),i[n(215)](a,1)),"function"==typeof(a=tabBarValidatorMap[e][n(175)])&&(a=a(o[e]),n(135)!==typeof a[n(147)]&&n(182)!==typeof a.value||(u[e]=a[n(147)]),a[n(120)])&&((r=(a=a[n(120)](e,o[e]))[n(167)](/^([A-Z]+):/))&&(t=logTypes[n(185)](r[1]),l<t&&(l=t),a=a[n(166)](r[0],"")),d[n(174)](a))):(l=1,d[n(174)](n(222)[n(131)](e,n(204))))}),0<i.length&&(l=2,d.push(f(197)[f(131)](i[f(176)](", ")))),{value:utils[f(219)](u)?null:JSON[f(140)](u),reason:0<d[f(186)]?function(e){var a=f;return"".concat(logTypes[l],a(221))[a(131)](e,a(177))+"".concat(d[a(176)](" \n "))}:null})},networkTimeout:function(e){return windowAndNetworkTimeOut(e,networkTimeoutValidatorMap,_0x4df006(148))},objArr:function(e){return{value:e}},string:function(e){return{value:e}},Object:function(e){return{value:e}},plugins:function(e){return{value:e}},preloadRule:function(e){return{value:e}},permission:function(e){return{value:e}},permissionObject:function(e){return{value:e}},HexColor:function(e){var t=_0x4df006;return(e=(e||"").toString())[t(167)](REGEXP_COLOR_LONG)||e[t(167)](REGEXP_COLOR_SHORT)?{value:e}:{value:null,reason:function(e,a){var r=t;return"ERROR: Attribute '"[r(131)](e,r(211))[r(131)](a,"' is invalid.'")}}},number:function(e){var t=_0x4df006;return t(182)===typeof e?e[t(167)](REGEXP_INT)?{value:Number(e),reason:function(e,a){var r=t;return r(151)[r(131)](e,"' ")+r(170)[r(131)](a,r(143))}}:{value:!1,reason:function(e,a){var r=t;return r(132)[r(131)](e,r(193)).concat(a,r(133))}}:(e=(e||"").toString()).match(REGEXP_INT)?{value:e}:{value:!1,reason:function(e,a){var r=t;return"ERROR: app.json configuration item '"[r(131)](e,r(193))[r(131)](a,r(122))}}},minPlatformVersion:function(e){var t=_0x4df006,a=validator[t(124)](e);return a[t(147)]?e<1069?{value:!1,reason:function(e,a){var r=t;return r(123)[r(131)](a,r(142))+r(136)[r(131)](e,'" field in the app.json file >= 1069.')}}:{value:!0}:a}},validatorMap={window:{type:validator.window,required:!1},tabBar:{type:validator[_0x4df006(157)],required:!1},networkTimeout:{type:validator[_0x4df006(148)],required:!1},functionalPages:{type:makeEnumValidator(["false",_0x4df006(208)]),required:!1},subpackages:{type:validator[_0x4df006(218)],required:!1},subPackages:{type:validator[_0x4df006(218)],required:!1},workers:{type:validator[_0x4df006(182)],required:!1},requiredBackgroundModes:{type:validator.strArr,required:!1},plugins:{type:validator.plugins,required:!1},preloadRule:{type:validator.preloadRule,required:!1},resizable:{type:makeEnumValidator([_0x4df006(162),_0x4df006(208)]),required:!1},navigateToMiniProgramAppIdList:{type:validator[_0x4df006(152)],required:!1},usingComponents:{type:validator[_0x4df006(191)],required:!1},permission:{type:validator[_0x4df006(146)],required:!1},sitemapLocation:{type:validator[_0x4df006(182)],required:!1},style:{type:validator[_0x4df006(182)],required:!1}},windowValidatorMap={navigationBarBackgroundColor:{type:validator.HexColor,def:_0x4df006(200)},navigationBarTextStyle:{type:makeEnumValidator([_0x4df006(145),_0x4df006(172)]),def:_0x4df006(145)},navigationBarTitleText:{type:validator[_0x4df006(182)]},navigationStyle:{type:makeEnumValidator([_0x4df006(163),_0x4df006(203)]),def:_0x4df006(163)},backgroundColor:{type:validator[_0x4df006(161)],def:_0x4df006(130)},backgroundTextStyle:{type:makeEnumValidator([_0x4df006(183),_0x4df006(207)]),def:"dark"},backgroundColorTop:{type:validator[_0x4df006(182)],def:"#ffffff"},backgroundColorBottom:{type:validator.string,def:_0x4df006(130)},enablePullDownRefresh:{type:makeEnumValidator([_0x4df006(162),_0x4df006(208)]),def:_0x4df006(162)},onReachBottomDistance:{type:validator[_0x4df006(135)],def:50},pageOrientation:{type:makeEnumValidator([_0x4df006(196),_0x4df006(134),_0x4df006(141)]),def:_0x4df006(196)}},tabBarValidatorMap={color:{type:validator[_0x4df006(161)],required:!0},selectedColor:{type:validator.HexColor,required:!0},backgroundColor:{type:validator.HexColor,required:!0},borderStyle:{type:makeEnumValidator([_0x4df006(172),"white"]),required:!1,def:_0x4df006(172)},list:{type:validator.array,required:!0},position:{type:makeEnumValidator([_0x4df006(216),_0x4df006(212)]),required:!1,def:"bottom"},custom:{type:makeBooleanValidator(),required:!1,def:_0x4df006(162)}},networkTimeoutValidatorMap={request:{type:validator[_0x4df006(135)],required:!1,def:6e4},connectSocket:{type:validator[_0x4df006(135)],required:!1,def:6e4},uploadFile:{type:validator[_0x4df006(135)],required:!1,def:6e4},downloadFile:{type:validator[_0x4df006(135)],required:!1,def:6e4}},preloadRuleValidatorMap={packages:{type:validator[_0x4df006(152)],required:!0},network:{type:makeEnumValidator([_0x4df006(195),_0x4df006(205)]),required:!1,def:"wifi"}},permissionValidatorMap={"scope.userLocation":{type:validator.permissionObject,required:!0}},requireAttrMap=[];function validate(e,a){var r=_0x4df006,t=void 0,n=void 0,o=validatorMap[e];return o&&r(187)===typeof o[r(175)]?(t=o.type(a))[r(120)]&&(n={reason:t.reason(e,a)}):t={value:!0},{value:t[r(147)],log:n}}function _0x18ad(e,a){var r=_0x5a25();return(_0x18ad=function(e,a){return r[e-=119]})(e,a)}function _0x5a25(){var e=["209079izbdhQ","indexOf","length","function","existsSync","trim","manifestData","Object","constructor","' value '","toString","wifi","portrait"," The mandatory sub-attribute is missing: ","require","' value is invalid.","#000000","options","' is invalid, ","custom","' is not a sub-attribute of tabBar.","all","165140qrSXPR","light","true","30ixJKsQ","includes","' color value '","top","803608bXhihG","./utils","splice","bottom","path","objArr","isEmptyObject","forEach",": configuration item '"," Attribute '","keys","ERROR: Can not resolve file :","reason","4146530TKQxal","' is invalid.","ERROR: The platform version number of ","integer","required","52woaxqN","log","symbol","the attribute value type must be boolean","#ffffff","concat","ERROR: app.json configuration item '","' is invalid","auto","number",'please change "',"enum","2449245KvaWPf","149rMYgKr","stringify","landscape"," is too early, ","' is a character string, which should be an integer instead.","boolean","white","permission","value","networkTimeout","26dqwbQQ","booleans","WARNING: app.json configuration item '","strArr","undefined","570962CbFLCs","isArray","logWarn","tabBar","NOTE","resourcePath"," \n ","HexColor","false","default","window","iterator","replace","match","def","ERROR","value '","bind","black","the attribute value must in [","push","type","join","' contains: \n ","object","ERROR: app.json does not contain configuration item '","ERROR: Attribute '","icon","string","dark"];return(_0x5a25=function(){return e})()}function windowAndNetworkTimeOut(o,i,u){var d,l,f,p=_0x4df006;return"{}"===JSON.stringify(o)?{value:!0}:(d={},l=[],f=0,Object[p(223)](o)[p(220)](function(e){var a,r,t=p,n=i[e]&&i[e][t(175)];t(187)===typeof n?("number"!=typeof(n=n(o[e]))[t(147)]&&t(182)!==typeof n[t(147)]&&t(144)!==typeof n[t(147)]||(d[e]=n.value),n.reason&&((a=(n=n[t(120)](e,o[e]))[t(167)](/^([A-Z]+):/))&&(r=logTypes[t(185)](a[1]),f<r&&(f=r),n=n.replace(a[0],"")),l[t(174)](n))):(f=1,l.push(t(222)[t(131)](e,"' is not a configuration item of ")[t(131)](u,".")))}),{value:utils[p(219)](d)?null:JSON.stringify(d),reason:0<l[p(186)]?function(e){var a=p;return""[a(131)](logTypes[f],": configuration item '")[a(131)](e,a(177))+""[a(131)](l[a(176)](a(160)))}:null})}function makeEnumValidator(e){return validator[_0x4df006(137)].bind(null,e)}function makeBooleanValidator(){var e=_0x4df006;return validator[e(150)][e(171)](null)}function getComponents(e){var r=_0x4df006,t=1<arguments[r(186)]&&void 0!==arguments[1]?arguments[1]:[],n=[];return e[r(220)](function(e){var a=r;t[a(210)](e.path)||n[a(174)](e[a(217)])}),JSON[r(140)](n)}(()=>{var r=_0x4df006;Object[r(223)](validatorMap)[r(220)](function(e){var a=r;validatorMap[e][a(125)]&&requireAttrMap[a(174)](e)})})(),module.exports=function(e){var r,t,a,n,o=_0x4df006,i=e[o(201)][o(190)].manifest;return i&&(r=e[o(159)],t=[],requireAttrMap[o(220)](function(e){var a=o;i[e]||t[a(174)]({reason:a(179)[a(131)](e,"'"),filePath:r})}),a=i[o(181)],n=void(utils.isExp(a)||!a||fs[o(188)](path[o(176)](r,"..",a.trim()))||t[o(174)]({reason:o(119)[o(131)](a),filePath:r})),Object[o(223)](i)[o(220)](function(e){var a=o;(n=validate(e,i[e]))[a(127)]&&t.push({reason:n[a(127)][a(120)],filePath:r})}),utils[o(156)](e,t)),!0};
|
|
1
|
+
function _0x23fe(){var e=["' is a character string, which should be an integer instead.","booleans","white","./utils","landscape","number","dark","true","value '","networkTimeout","iterator","3443hZMOtW","wifi","3VDQmpk","match","ERROR","' contains: \n ",'please change "',"top","length","log","6712JLaayb","object","light","tabBar","concat","symbol","replace","1KGkdzG","' is not a sub-attribute of tabBar.","join","manifest","8685mcJxxl","existsSync","the attribute value must in [","#000000","7090adusKY","manifestData","the attribute value type must be boolean","undefined","' is invalid.","boolean","isEmptyObject","ERROR: Attribute '","NOTE","portrait","forEach"," The mandatory sub-attribute is missing: ","auto","391962ymQNEb","#ffffff",": configuration item '","exports"," is too early, ","ERROR: Can not resolve file :","' is invalid, ","constructor","def","array","integer","bottom","black","reason","prototype","push","all",'" field in the app.json file >= 1069.',"' is invalid","options","type","trim","140ugOMEd","value","objArr","plugins","splice","5764995sznokR","keys","require","custom","ERROR: app.json configuration item '","toString","indexOf","false","default","path","permissionObject","function","2343956ERNRQC"," Attribute '","' value is invalid.","WARNING","' value '","27645036QobEuQ","13nzixEo","HexColor","isArray","Object","strArr","stringify","211556XNMPWC"," \n ","window","string"];return(_0x23fe=function(){return e})()}var _0x14390c=_0x197a;function _typeof(e){var t=_0x197a;return(_typeof=t(236)==typeof Symbol&&t(279)==typeof Symbol[t(263)]?function(e){return typeof e}:function(e){var a=t;return e&&a(236)==typeof Symbol&&e[a(309)]===Symbol&&e!==Symbol[a(212)]?a(279):typeof e})(e)}(()=>{for(var e=_0x197a,a=_0x23fe();;)try{if(870727==-parseInt(e(281))*(parseInt(e(249))/2)+parseInt(e(266))/3*(-parseInt(e(237))/4)+parseInt(e(225))/5+-parseInt(e(302))/6*(parseInt(e(220))/7)+-parseInt(e(274))/8*(parseInt(e(285))/9)+-parseInt(e(289))/10*(-parseInt(e(264))/11)+parseInt(e(242))/12*(parseInt(e(243))/13))break;a.push(a.shift())}catch(e){a.push(a.shift())}})();var utils=require(_0x14390c(256)),fs=require("fs"),path=require("path"),logTypes=[_0x14390c(297),_0x14390c(240),_0x14390c(268)],REGEXP_INT=/^[0-9]+$/,REGEXP_COLOR_LONG=/^#[0-9a-fA-F]{6}$/,REGEXP_COLOR_SHORT=/^#[0-9a-fA-F]{3}$/,REGEXP_PACKAGE_NAME=/^[a-zA-Z][a-zA-Z0-9_]*(\.[a-zA-Z0-9_]+)+$/,validator={enum:function(r,e){var n=_0x14390c;return 0<=r[n(231)](e[n(230)]())?{value:e}:{value:null,reason:function(e,a){var t=n;return t(296)[t(278)](e,"' value '")[t(278)](a,t(308))+t(287)[t(278)](r,"]")}}},booleans:function(e){var r=_0x14390c;return typeof e===r(294)?{value:e}:{value:null,reason:function(e,a){var t=r;return"ERROR: Attribute '"[t(278)](e,"' value '")[t(278)](a,t(308))+t(291)}}},packageName:function(e){var r=_0x14390c;return(e||"")[r(230)]()[r(219)]()[r(267)](REGEXP_PACKAGE_NAME)?{value:!0}:{value:!1,reason:function(e,a){var t=r;return t(229)[t(278)](e,"' value '").concat(a,t(293))}}},integer:function(e){var r=_0x14390c;return r(252)===typeof e?e[r(267)](REGEXP_INT)?{value:!0,reason:function(e,a){var t=r;return"WARNING: app.json configuration item '"[t(278)](e,"' ")+t(261)[t(278)](a,t(253))}}:{value:!1,reason:function(e,a){var t=r;return t(229)[t(278)](e,t(241)).concat(a,t(293))}}:(e=(e||"").toString())[r(267)](REGEXP_INT)?{value:!0}:{value:!1,reason:function(e,a){var t=r;return t(229)[t(278)](e,t(241))[t(278)](a,"' is invalid.")}}},strArr:function(e){var r=_0x14390c;return Array[r(245)](e)?{value:e}:{value:!1,reason:function(e,a){var t=r;return"ERROR: Attribute '"[t(278)](e,t(241)).concat(a,t(216))}}},window:function(e){return windowAndNetworkTimeOut(e,windowValidatorMap,_0x14390c(251))},tabBar:function(o){var i,t,u,l,c,d=_0x14390c;return d(275)!==_typeof(o)?{value:!1,reason:function(e){var a=d;return a(296)[a(278)](e,a(239))}}:(i=[],t=[],Object[d(226)](tabBarValidatorMap)[d(299)](function(e){var a=d;tabBarValidatorMap[e][a(227)]&&i[a(213)](e),tabBarValidatorMap[e][a(310)]&&t[a(213)](tabBarValidatorMap[e][a(310)])}),u={},l=[],c=0,Object[d(226)](o)[d(299)](function(e){var a,t,r,n=d;typeof tabBarValidatorMap[e]!==n(292)?(-1!==i.indexOf(e)&&(a=i[n(231)](e),i[n(224)](a,1)),a=tabBarValidatorMap[e][n(218)],n(236)===typeof a&&(a=a(o[e]),n(258)!==typeof a[n(221)]&&n(252)!==typeof a[n(221)]||(u[e]=a[n(221)]),a[n(211)])&&((t=(a=a[n(211)](e,o[e])).match(/^([A-Z]+):/))&&(r=logTypes[n(231)](t[1]),c<r&&(c=r),a=a[n(280)](t[0],"")),l[n(213)](a))):(c=1,l[n(213)](n(238)[n(278)](e,n(282))))}),0<i[d(272)]&&(c=2,l.push(d(300).concat(i[d(283)](", ")))),{value:utils[d(295)](u)?null:JSON[d(248)](u),reason:0<l[d(272)]?function(e){var a=d;return""[a(278)](logTypes[c],a(304))[a(278)](e,a(269))+""[a(278)](l[a(283)](a(250)))}:null})},networkTimeout:function(e){return windowAndNetworkTimeOut(e,networkTimeoutValidatorMap,_0x14390c(262))},objArr:function(e){return{value:e}},string:function(e){return{value:e}},Object:function(e){return{value:e}},plugins:function(e){return{value:e}},preloadRule:function(e){return{value:e}},permission:function(e){return{value:e}},permissionObject:function(e){return{value:e}},HexColor:function(e){var r=_0x14390c;return(e=(e||"")[r(230)]()).match(REGEXP_COLOR_LONG)||e[r(267)](REGEXP_COLOR_SHORT)?{value:e}:{value:null,reason:function(e,a){var t=r;return t(296)[t(278)](e,"' color value '")[t(278)](a,"' is invalid.'")}}},number:function(e){var r=_0x14390c;return r(252)===typeof e?e[r(267)](REGEXP_INT)?{value:Number(e),reason:function(e,a){var t=r;return"WARNING: app.json configuration item '"[t(278)](e,"' ")+t(261)[t(278)](a,t(253))}}:{value:!1,reason:function(e,a){var t=r;return t(229)[t(278)](e,"' value '")[t(278)](a,t(216))}}:(e=(e||"")[r(230)]())[r(267)](REGEXP_INT)?{value:e}:{value:!1,reason:function(e,a){var t=r;return t(229)[t(278)](e,t(241))[t(278)](a,t(293))}}},minPlatformVersion:function(e){var r=_0x14390c,a=validator[r(208)](e);return a[r(221)]?e<1069?{value:!1,reason:function(e,a){var t=r;return"ERROR: The platform version number of ".concat(a,t(306))+t(270)[t(278)](e,t(215))}}:{value:!0}:a}},validatorMap={window:{type:validator[_0x14390c(251)],required:!1},tabBar:{type:validator[_0x14390c(277)],required:!1},networkTimeout:{type:validator[_0x14390c(262)],required:!1},functionalPages:{type:makeEnumValidator([_0x14390c(232),_0x14390c(260)]),required:!1},subpackages:{type:validator[_0x14390c(222)],required:!1},subPackages:{type:validator[_0x14390c(222)],required:!1},workers:{type:validator[_0x14390c(252)],required:!1},requiredBackgroundModes:{type:validator[_0x14390c(247)],required:!1},plugins:{type:validator[_0x14390c(223)],required:!1},preloadRule:{type:validator.preloadRule,required:!1},resizable:{type:makeEnumValidator([_0x14390c(232),_0x14390c(260)]),required:!1},navigateToMiniProgramAppIdList:{type:validator[_0x14390c(247)],required:!1},usingComponents:{type:validator[_0x14390c(246)],required:!1},permission:{type:validator.permission,required:!1},sitemapLocation:{type:validator[_0x14390c(252)],required:!1},style:{type:validator[_0x14390c(252)],required:!1}},windowValidatorMap={navigationBarBackgroundColor:{type:validator.HexColor,def:_0x14390c(288)},navigationBarTextStyle:{type:makeEnumValidator([_0x14390c(255),"black"]),def:_0x14390c(255)},navigationBarTitleText:{type:validator.string},navigationStyle:{type:makeEnumValidator(["default",_0x14390c(228)]),def:_0x14390c(233)},backgroundColor:{type:validator[_0x14390c(244)],def:_0x14390c(303)},backgroundTextStyle:{type:makeEnumValidator([_0x14390c(259),_0x14390c(276)]),def:_0x14390c(259)},backgroundColorTop:{type:validator[_0x14390c(252)],def:_0x14390c(303)},backgroundColorBottom:{type:validator[_0x14390c(252)],def:_0x14390c(303)},enablePullDownRefresh:{type:makeEnumValidator([_0x14390c(232),_0x14390c(260)]),def:_0x14390c(232)},onReachBottomDistance:{type:validator[_0x14390c(258)],def:50},pageOrientation:{type:makeEnumValidator([_0x14390c(298),_0x14390c(301),_0x14390c(257)]),def:_0x14390c(298)}},tabBarValidatorMap={color:{type:validator[_0x14390c(244)],required:!0},selectedColor:{type:validator[_0x14390c(244)],required:!0},backgroundColor:{type:validator[_0x14390c(244)],required:!0},borderStyle:{type:makeEnumValidator([_0x14390c(210),_0x14390c(255)]),required:!1,def:"black"},list:{type:validator[_0x14390c(311)],required:!0},position:{type:makeEnumValidator([_0x14390c(209),_0x14390c(271)]),required:!1,def:_0x14390c(209)},custom:{type:makeBooleanValidator(),required:!1,def:_0x14390c(232)}},networkTimeoutValidatorMap={request:{type:validator[_0x14390c(258)],required:!1,def:6e4},connectSocket:{type:validator.number,required:!1,def:6e4},uploadFile:{type:validator[_0x14390c(258)],required:!1,def:6e4},downloadFile:{type:validator[_0x14390c(258)],required:!1,def:6e4}},preloadRuleValidatorMap={packages:{type:validator[_0x14390c(247)],required:!0},network:{type:makeEnumValidator([_0x14390c(265),_0x14390c(214)]),required:!1,def:_0x14390c(265)}},permissionValidatorMap={"scope.userLocation":{type:validator[_0x14390c(235)],required:!0}},requireAttrMap=[];function validate(e,a){var t=_0x14390c,r=void 0,n=void 0,o=validatorMap[e];return o&&"function"==typeof o[t(218)]?(r=o.type(a)).reason&&(n={reason:r[t(211)](e,a)}):r={value:!0},{value:r[t(221)],log:n}}function windowAndNetworkTimeOut(o,i,u){var l,c,d,p=_0x14390c;return"{}"===JSON[p(248)](o)?{value:!0}:(l={},c=[],d=0,Object[p(226)](o)[p(299)](function(e){var a,t,r=p,n=i[e]&&i[e][r(218)];"function"==typeof n?(n=n(o[e]),r(258)!==typeof n[r(221)]&&r(252)!==typeof n[r(221)]&&r(294)!==typeof n[r(221)]||(l[e]=n.value),n[r(211)]&&((a=(n=n[r(211)](e,o[e])).match(/^([A-Z]+):/))&&(t=logTypes[r(231)](a[1]),d<t&&(d=t),n=n[r(280)](a[0],"")),c[r(213)](n))):(d=1,c[r(213)](r(238)[r(278)](e,"' is not a configuration item of ")[r(278)](u,".")))}),{value:utils[p(295)](l)?null:JSON.stringify(l),reason:0<c[p(272)]?function(e){var a=p;return""[a(278)](logTypes[d],a(304))[a(278)](e,"' contains: \n ")+""[a(278)](c[a(283)](a(250)))}:null})}function _0x197a(e,a){var t=_0x23fe();return(_0x197a=function(e,a){return t[e-=208]})(e,a)}function makeEnumValidator(e){return validator.enum.bind(null,e)}function makeBooleanValidator(){return validator[_0x14390c(254)].bind(null)}function getComponents(e){var t=_0x14390c,r=1<arguments[t(272)]&&void 0!==arguments[1]?arguments[1]:[],n=[];return e[t(299)](function(e){var a=t;r.includes(e[a(234)])||n[a(213)](e.path)}),JSON[t(248)](n)}(()=>{var e=_0x14390c;Object[e(226)](validatorMap)[e(299)](function(e){validatorMap[e].required&&requireAttrMap.push(e)})})(),module[_0x14390c(305)]=function(e){var t,r,a,n,o=_0x14390c,i=e[o(217)][o(290)][o(284)];return i&&(t=e.resourcePath,r=[],requireAttrMap[o(299)](function(e){var a=o;i[e]||r[a(213)]({reason:"ERROR: app.json does not contain configuration item '"[a(278)](e,"'"),filePath:t})}),a=i.icon,n=void(utils.isExp(a)||!a||fs[o(286)](path[o(283)](t,"..",a[o(219)]()))||r[o(213)]({reason:o(307)[o(278)](a),filePath:t})),Object[o(226)](i)[o(299)](function(e){var a=o;(n=validate(e,i[e]))[a(273)]&&r[a(213)]({reason:n[a(273)][a(211)],filePath:t})}),utils.logWarn(e,r)),!0};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _0x478262=_0x43e1;function _0x2f81(){var e=["concat"," info, please check your json file.","length","4418103DhpiXo","2190344SYzITU","forEach","WARNING: Can't find the ","6730nbIusM","ASCF_ROUTES","5OVNAOq","4592916XOlJxV","ascfRequire","exports","16DmSKdv","371OhSMgr","366709ZmJYXQ","9797560zVMlBx","ascfDefine","3404862lfrDGY"];return(_0x2f81=function(){return e})()}function ascfDefine(e,n){var r=2<arguments[_0x43e1(460)]&&void 0!==arguments[2]?arguments[2]:[];globalThis.ASCF_ROUTES[n]={routePath:n,requireCb:e,usingComponents:r}}function _0x43e1(e,n){var r=_0x2f81();return(_0x43e1=function(e,n){return r[e-=449]})(e,n)}function ascfRequireInner(e){global.__qaRoute=e.routePath,global.usingComponents=e.usingComponents,e.requireCb()}function ascfRequire(e){var n=_0x43e1,r=globalThis[n(466)][e];r||console.warn(n(464)[n(458)](e,n(459))),r.usingComponents&&r.usingComponents[n(463)](function(e){ascfRequire(e)}),ascfRequireInner(r)}(()=>{for(var e=_0x43e1,n=_0x2f81();;)try{if(778601==-parseInt(e(453))*(parseInt(e(465))/2)+parseInt(e(461))/3+-parseInt(e(462))/4*(-parseInt(e(467))/5)+-parseInt(e(457))/6+-parseInt(e(454))/7*(-parseInt(e(452))/8)+-parseInt(e(449))/9+parseInt(e(455))/10)break;n.push(n.shift())}catch(e){n.push(n.shift())}})(),globalThis[_0x478262(456)]=ascfDefine,globalThis[_0x478262(450)]=ascfRequire,globalThis[_0x478262(466)]=globalThis.ASCF_ROUTES||{},module[_0x478262(451)]={ascfDefine:ascfDefine,ascfRequire:ascfRequire};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x6057(){var e=["905689AEHJfc","../js-parser/parser","call","endsWith","existsSync","5OAyJsU","root",".js","57374504xHeFMQ","requireHandler","index.js","1791976nNUfuc",'" (using by "',"./utils","42111pHcdOP","27bUbyJg","app","add","jsLoaderList","44023hjYZKN","resolve","1008lKDqFU","290gIPsZr","astParse","250418DISSYj","normalizedAbsPath","ascfSrcPath","dirname","../../common/config","generate",'ERROR: JS is not found in path "',"exports","6871080QHFsLV","hasOwnProperty","asyncJsList","app.js","configs","path","prototype","startsWith","replace","forEach","handleResolveAlias","getProjectInfo","../../common/utils","join"];return(_0x6057=function(){return e})()}var _0x4f6662=_0x4d55;function _0x4d55(e,r){var n=_0x6057();return(_0x4d55=function(e,r){return n[e-=367]})(e,r)}(()=>{for(var e=_0x4d55,r=_0x6057();;)try{if(662015==-parseInt(e(377))+-parseInt(e(401))/2*(parseInt(e(392))/3)+parseInt(e(388))/4*(-parseInt(e(382))/5)+-parseInt(e(409))/6+-parseInt(e(396))/7*(parseInt(e(398))/8)+parseInt(e(391))/9*(-parseInt(e(399))/10)+parseInt(e(385))/11)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var _require=require(_0x4f6662(378)),astParse=_require[_0x4f6662(400)],traverse=_require.traverse,generate=_require[_0x4f6662(406)],requireHandler=_require[_0x4f6662(386)],_require2=require("../../common/utils"),getProjectInfo=_require2[_0x4f6662(374)],path=require(_0x4f6662(368)),fs=require("fs"),_require3=require(_0x4f6662(390)),normalizedAbsPath=_require3[_0x4f6662(402)],_require4=require(_0x4f6662(375)),handleResolveAlias=_require4[_0x4f6662(373)],_require5=require(_0x4f6662(405)),configs=_require5[_0x4f6662(367)];function getOwnerIndexJs(t,e){var a,s=_0x4f6662;return t=normalizePath(t),null!=e&&e[s(372)](function(e){var r,n=s,e=normalizedAbsPath(e[n(383)]);e+=e[n(380)]("/")?"":"/",null!=(r=t)&&r[n(370)](e)&&(a=e)}),a?a+s(387):normalizedAbsPath(s(412))}function pathHandler(e,r,n,t,a){var s=_0x4f6662,i=getProjectInfo()[s(403)],t=(r=handleResolveAlias(r,t),path[s(404)](e)),t=r[s(370)]("/")?path[s(376)](i,r):path[s(397)](t,r);return isValidJSPath(t,r,e),a||configs[s(395)].add(e),!!isNeedAddCommon(n,t,e,a)||((r="/"+normalizePath(path.relative(i,t)))[s(380)](s(384))||(r+=s(384)),r)}function normalizePath(e){return null==e?void 0:e[_0x4f6662(371)](/\\/g,"/")}function isNeedAddCommon(e,t,a,s){var i=_0x4f6662,o=getProjectInfo()[i(403)],f=(a=a[i(371)](/\\/g,"/"),(t=normalizePath(t))+(t.endsWith(i(384))?"":i(384))),u=!1,c=!1;return null!=e&&e.forEach(function(e){var r=i,n=path[r(376)](o,e.root)[r(371)](/\\/g,"/");n+=n.endsWith("/")?"":"/",t[r(370)](n)&&a[r(370)](n)&&(c=!0),t.startsWith(n)&&!s&&(Object[r(369)][r(410)].call(configs[r(411)],e.root)||(configs[r(411)][e[r(383)]]=new Set),configs[r(411)][e[r(383)]][r(394)](f),u=!0)}),u||s||(e=i(393),Object[i(369)][i(410)][i(379)](configs[i(411)],i(393))||(configs[i(411)][e]=new Set),configs[i(411)][e][i(394)](f)),c}function isValidJSPath(e,r,n){var t=_0x4f6662;if(e[t(380)](t(384))||(e+=".js"),!fs[t(381)](e))throw t(407).concat(r,t(389)).concat(n,'")')}function jsScanner(e,r,n,t){var e=astParse(e),a=getOwnerIndexJs(r,t),r=requireHandler(pathHandler,r,t,a,n);return traverse(e,r),null==(t=generate(e))?void 0:t.code}module[_0x4f6662(408)]={jsScanner:jsScanner,getOwnerIndexJs:getOwnerIndexJs,pathHandler:pathHandler,normalizePath:normalizePath};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
var _0x4c4891=_0x5e61;function _0x5e61(n,r){var t=_0x315a();return(_0x5e61=function(n,r){return t[n-=418]})(n,r)}function _0x315a(){var n=["toString","28072GNKHvz","20280YnSiOn","10549KfslTD","string","61Sxsmte","6935742xCTtnr","map","1836918ZDIkdr","1538656UTtRzC","concat","exports","1883zSEGqV","872946MhIYxZ","5YNyDJk"," and ","5552DVWjyE","join","length"];return(_0x315a=function(){return n})()}(()=>{for(var n=_0x5e61,r=_0x315a();;)try{if(504465==+parseInt(n(426))*(-parseInt(n(422))/2)+parseInt(n(429))/3+-parseInt(n(430))/4+-parseInt(n(435))/5*(-parseInt(n(434))/6)+parseInt(n(433))/7*(-parseInt(n(418))/8)+-parseInt(n(427))/9+-parseInt(n(423))/10*(-parseInt(n(424))/11))break;r.push(r.shift())}catch(n){r.push(r.shift())}})(),module[_0x4c4891(432)]=function(n){var p=_0x4c4891,c=[];return c[p(421)]=function(){var n=p;return this[n(428)](function(n){return n[1]||""})[n(419)]("")},c.i=function(n,r,t){var a=p,e=n,s=(typeof e===a(425)&&(e=[[null,e,""]]),{});if(t)for(var u=0;u<this[a(420)];u++){var i=this[u][0];null!=i&&(s[i]=!0)}for(var f=0;f<e.length;f++){var o=[][a(431)](e[f]);t&&s[o[0]]||(r&&(o[2]?o[2]=""[a(431)](r,a(436))[a(431)](o[2]):o[2]=r),c.push(o))}},c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2931(){var n=["133011umgXfL","6569224kcnwbE","181049AjAHCe","9zgyvGV","15184UuvgLa","290cueVLr","2804894HYPUyT","648gEccmF","310uJMcUc","call","20832vFAwaO","function","34751WnOODc"];return(_0x2931=function(){return n})()}function _0x50a4(n,r){var t=_0x2931();return(_0x50a4=function(n,r){return t[n-=138]})(n,r)}function eventHappenHjs(n,r,t,e){var a=_0x50a4;return typeof n===a(141)&&n[a(139)]?null==n?void 0:n.call(t,r,r.ownerInstance):null==e?void 0:e(n,r)}(()=>{for(var n=_0x50a4,r=_0x2931();;)try{if(739831==+parseInt(n(142))+parseInt(n(149))/2+parseInt(n(143))/3+-parseInt(n(147))/4*(-parseInt(n(138))/5)+parseInt(n(150))/6*(parseInt(n(140))/7)+parseInt(n(144))/8*(-parseInt(n(146))/9)+parseInt(n(148))/10*(-parseInt(n(145))/11))break;r.push(r.shift())}catch(n){r.push(r.shift())}})(),module.exports=eventHappenHjs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0xb086a0=_0x1550;function _0x1550(e,r){var t=_0x2f25();return(_0x1550=function(e,r){return t[e-=295]})(e,r)}(()=>{for(var e=_0x1550,r=_0x2f25();;)try{if(666893==+parseInt(e(335))+parseInt(e(300))/2*(parseInt(e(326))/3)+parseInt(e(308))/4+-parseInt(e(295))/5*(parseInt(e(313))/6)+parseInt(e(317))/7*(parseInt(e(302))/8)+-parseInt(e(310))/9*(-parseInt(e(296))/10)+-parseInt(e(324))/11)break;r.push(r.shift())}catch(e){r.push(r.shift())}})();var allowedKeywords=_0xb086a0(331)+_0xb086a0(329)+_0xb086a0(322),allowedKeywordsRE=allowedKeywords.split(","),prohibitedKeywordRE=new RegExp("\\b"[_0xb086a0(320)]((_0xb086a0(338)+_0xb086a0(301)+_0xb086a0(299)).split(",")[_0xb086a0(333)](_0xb086a0(315)),"\\b")),stripStringRE=/'(?:[^'\\]|\\.)*'|"(?:[^"\\]|\\.)*"|`(?:[^`\\]|\\.)*\$\{|\}(?:[^`\\]|\\.)*`|`(?:[^`\\]|\\.)*`/g,innerParenthesesRe=/{{([^}][^}])*({{.*)+/,_require=require(_0xb086a0(318)),hashSum=_require[_0xb086a0(323)],STRINGIFY_OBJECT=JSON[_0xb086a0(339)]({}),OBEJECT_PLACEHOLDER=hashSum(STRINGIFY_OBJECT),REPLACE_RE=new RegExp(OBEJECT_PLACEHOLDER,"g"),BINDING_CONTENT_RE=/{{([\s\S]*)}}/,OBJECT_RE=/{\s*}/g,CATCH_FUNC=_0xb086a0(328),INNER_FUNC_KEYWORDS=_0xb086a0(322),INNER_FUNC_LIST=INNER_FUNC_KEYWORDS.split(","),HJS_GET_CONSTRUCTOR='getProperty4Object("constructor", xx)',ASCF_LAZY_IMPORT=_0xb086a0(319),ASCF_LAZY_IMPORT_ERR='console.log("__ascf_lazy_import__ error: " + err);',NEW_PROMISE=_0xb086a0(337),REQUIRE_TRY_CATCH=_0xb086a0(307),REQUIRE_TRY_CATCH_FUL=_0xb086a0(327),REQUIRE=_0xb086a0(321);function replace(e){var r=_0xb086a0;return 1<arguments.length&&void 0!==arguments[1]&&arguments[1]?e.replace(REPLACE_RE,STRINGIFY_OBJECT).replace(/\s+$/gm,""):e[r(316)](REPLACE_RE,STRINGIFY_OBJECT)[r(336)]()}function isIdentifierNotAllow(e){return allowedKeywordsRE[_0xb086a0(332)](e)}function parseText(e,r){var t=_0xb086a0,a=2<arguments[t(334)]&&void 0!==arguments[2]&&arguments[2],n=!(3<arguments[t(334)]&&void 0!==arguments[3])||arguments[3],E=e;if(a){if(!textExpRE.test(E))return null}else if(E=E[t(316)](/\n/g,""),!expRE[t(305)](E))return null;var _=[];if(innerParenthesesRe[t(305)](E))r.buildLog[t(330)]({reason:'ERROR: Unexpected inner parentheses, with attr value : "'[t(320)](E,t(311))});else{for(var i=0,R=(tagRE[t(304)]=i,OBJECT_RE[t(305)](E)&&(E=E[t(316)](OBJECT_RE,OBEJECT_PLACEHOLDER)),null);R=textTagRE[t(314)](E);){var x=R[t(312)],x=(i<x&&_[t(330)]({value:E[t(297)](i,x)}),htmlRE.test(R[0]));x&&(R[1]=E.slice(i,textTagRE[t(304)]+1)[t(309)](BINDING_CONTENT_RE)[1]),_[t(330)]({tag:!0,value:replace(R[1]||R[2],n),html:x}),i=textTagRE[t(304)]}i<E.length&&_[t(330)]({value:replace(E[t(297)](i),n)})}return _}function isExpr(e){return expRE[_0xb086a0(305)](e)}function singleExpr(e){var r=_0xb086a0;return sexpRE.test(e[r(336)]())}function removeExprffix(e){var r=_0xb086a0;return e=(e=singleExpr(e)?e[r(316)](/^\s*{{/,"")[r(316)](/}}\s*$/,""):e).trim()}function addExprffix(e){var r=_0xb086a0;return e=singleExpr(e)?e:"{{"[r(320)](e,"}}")}function containExpr(e){var r=_0xb086a0;return!!e&&tagRE[r(305)](e[r(316)](/(\n)|(\r)/g,""))}function removeAllExprFix(e){var r=_0xb086a0;return e=containExpr(e)?e[r(316)](/\{\{\{?|\}\}\}?/g,""):e}var tagSource=_0xb086a0(298),tagRE=new RegExp(tagSource,"g"),expRE=new RegExp(tagSource),textTagRE=new RegExp(_0xb086a0(325),"g"),textExpRE=new RegExp(_0xb086a0(325)),htmlRE=new RegExp(_0xb086a0(306)),sexpRE=new RegExp(_0xb086a0(303));function _0x2f25(){var e=['", please change it.',"index","23502xddeko","exec","\\b|\\b","replace","6377pOJusE","./hash-sum","__ascf_lazy_import__(p1).then(()=>(__webpack_require__(p2))).then(cb).catch(cbErr);","concat","require(path)","Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,require","hashSum","18236449isIIKS","{{{([\\s\\S]*?)}}}|{{([\\s\\S]*?)}}","21DvzMdN","try { (cb)(require(path));} catch(err) {(cbErr)(err)}","(function(){ try { return xx} catch (_undefinedErr){ _logUndefined(_undefinedErr)};})()","parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,","push","Infinity,undefined,NaN,null,isFinite,isNaN,true,false,","includes","join","length","64230WXTSPS","trim","await new Promise((resolve,reject) => { aa.then(resolve).catch(reject);});","break,case,class,catch,const,continue,debugger,default,delete,do,else,export,extends,finally,","stringify","5EWgPnO","206090mkibmj","slice","{{{(.+?)}}}|{{(.+?)}}","with,yield,enum,await,implements,package,protected,static,interface,private,public","62674qyzgYN","for,function,if,import,in,instanceof,let,return,super,switch,throw,try,var,while,","9320iTmZjh","^{{{(.+?)}}}$|^{{(.+?)}}$","lastIndex","test","^{{{.*}}}$","try { (mod => {a();})(require('./w.js'));} catch(err) {(err => {a();})(err)}","3028264GXQzHa","match","99nNpRGy"];return(_0x2f25=function(){return e})()}module.exports={parseText:parseText,isExpr:isExpr,singleExpr:singleExpr,addExprffix:addExprffix,removeExprffix:removeExprffix,containExpr:containExpr,removeAllExprFix:removeAllExprFix,prohibitedKeywordRE:prohibitedKeywordRE,stripStringRE:stripStringRE,isIdentifierNotAllow:isIdentifierNotAllow,CATCH_FUNC:CATCH_FUNC,INNER_FUNC_LIST:INNER_FUNC_LIST,HJS_GET_CONSTRUCTOR:HJS_GET_CONSTRUCTOR,ASCF_LAZY_IMPORT:ASCF_LAZY_IMPORT,ASCF_LAZY_IMPORT_ERR:ASCF_LAZY_IMPORT_ERR,NEW_PROMISE:NEW_PROMISE,REQUIRE_TRY_CATCH:REQUIRE_TRY_CATCH,REQUIRE:REQUIRE,REQUIRE_TRY_CATCH_FUL:REQUIRE_TRY_CATCH_FUL};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){var r=_0x242f;return t&&r(426)==typeof Symbol&&t[r(414)]===Symbol&&t!==Symbol[r(417)]?r(424):typeof t})(t)}function _0x242f(t,r){var n=_0x24a0();return(_0x242f=function(t,r){return n[t-=412]})(t,r)}function hashSum(t){for(var r=_0x242f,n=fold(fold(fold(0,""),Object[r(417)][r(428)][r(416)](t)),_typeof(t)),o=fold(n,t.toString())[r(428)](16);o[r(425)]<8;)o="0"+o;return o}function _0x24a0(){var t=["18uTtrJl","constructor","872540sDEQAG","call","prototype","212PJueYk","72vbNJQh","5806nBzKbF","231mLZZFF","5491431iSLIcF","114290dOSZXP","symbol","length","function","72338bjCuOi","toString","40615sYbZMN","charCodeAt","2699010fqPdwe"];return(_0x24a0=function(){return t})()}function fold(t,r){var n,o,e=_0x242f,f=t;if(0===r.length)return f;for(n=0,o=r[e(425)];n<o;n++)f=(f<<5)-f+r[e(430)](n),f|=0;return f<0?-2*f:f}(()=>{for(var t=_0x242f,r=_0x24a0();;)try{if(380523==+parseInt(t(423))+parseInt(t(420))/2*(parseInt(t(413))/3)+-parseInt(t(418))/4*(parseInt(t(429))/5)+-parseInt(t(412))/6+-parseInt(t(427))/7*(parseInt(t(419))/8)+-parseInt(t(422))/9+-parseInt(t(415))/10*(-parseInt(t(421))/11))break;r.push(r.shift())}catch(t){r.push(r.shift())}})(),module.exports={hashSum:hashSum};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _ref,
|
|
1
|
+
var _ref,_0x747f20=_0xbbc0;function _typeof(e){var r=_0xbbc0;return(_typeof=r(209)==typeof Symbol&&r(242)==typeof Symbol[r(152)]?function(e){return typeof e}:function(e){var t=r;return e&&t(209)==typeof Symbol&&e.constructor===Symbol&&e!==Symbol[t(129)]?"symbol":typeof e})(e)}function _0xbbc0(e,t){var r=_0x2be6();return(_0xbbc0=function(e,t){return r[e-=129]})(e,t)}function ownKeys(r,e){var t,n=_0xbbc0,o=Object[n(208)](r);return Object[n(182)]&&(t=Object[n(182)](r),e&&(t=t[n(225)](function(e){var t=n;return Object[t(131)](r,e)[t(203)]})),o[n(175)].apply(o,t)),o}function _0x2be6(){var e=["join","package","/build/dist/","644929cUtjpJ","/../tools/","app.json","trim","info","push","env","defineProperties","warn","error","execSync","random","getOwnPropertySymbols"," -m ","parse","getProjectInfo","readdirSync","floor","entryAbility","4919642SYhpGo","Forwardport result:OK","ASCF_QS_BUILT_PATH","C:\\Program Files\\Huawei\\DevEco Studio\\tools"," shell aa start -a MpEntryAbility -b ","exports","start startAbility under ","module.name is null, in the file of module.json5","debug"," assembleHap --parallel --incremental --daemon -p skipAscfCompile=true","App Launch: select a device first","execSafe","../../common/utils","replace","enumerable","getEntryPkgPath","deviceId","child_process","qsHostPkg","keys","function","/Applications/DevEco-Studio.app/Contents/tools","getBundleName","hapPath is not exists","projectPath","DEVECO_SDK_HOME is not found, please specify env DEVECO_SDK_HOME","ascfPackageName","hdc-executor","494478ziIZBV","/build/dist","remotePort","9582nfNfCK","concat","assembleHap"," fport rm tcp:","com.enjoy.now.hmos","filter"," --ps ascfPackageName "," list targets","../../common/log4js","Run command error: ","app.json package is null","forceUpdate","790484pjlqsp","getOwnPropertyDescriptors","utf8","shell","resolve","855KkutXn","getHvigorwPath","Remove forward port","default","existsSync","symbol","test","start","path","prototype"," -t ","getOwnPropertyDescriptor","object","getHdcPath","defineProperty","MpEntryAbility"," --ps startMode installAndRunDebugPkg --ps pkgUrl http://127.0.0.1:","2471128oerDcV","call","36GRboks"," rport tcp:"," --ps launchMode forceUpdate","toPrimitive","forEach","split","installing package bundleName to sn","apply","readFileSync"," -b ","assign","app.json is not found","ascf_src","iterator","Run command: ","name","exit","getModuleNames","start ability ","../../common/config","ascf"," uninstall ","-default-signed.hap","DevEco Studio","3758708MzKxxm","--ps"," tcp:","../sdk"];return(_0x2be6=function(){return e})()}function _objectSpread(r){for(var n=_0xbbc0,e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(o),!0)[n(143)](function(e){_defineProperty(r,e,o[e])}):Object.getOwnPropertyDescriptors?Object[n(177)](r,Object[n(233)](o)):ownKeys(Object(o)).forEach(function(e){var t=n;Object[t(134)](r,e,Object[t(131)](o,e))})}return r}function _defineProperty(e,t,r){var n=_0xbbc0;return(t=_toPropertyKey(t))in e?Object[n(134)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){var r=_0xbbc0;if(r(132)!=_typeof(e)||!e)return e;var n=e[Symbol[r(142)]];if(void 0===n)return("string"===t?String:Number)(e);n=n[r(138)](e,t||r(240));if("object"!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{for(var e=_0xbbc0,t=_0x2be6();;)try{if(548345==+parseInt(e(170))+-parseInt(e(232))/2+parseInt(e(217))/3+parseInt(e(163))/4+-parseInt(e(237))/5*(parseInt(e(220))/6)+parseInt(e(189))/7+parseInt(e(137))/8*(-parseInt(e(139))/9))break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var _require=require(_0x747f20(201)),getProjectInfo=_require[_0x747f20(185)],getHvigorwPath=_require[_0x747f20(238)],getEntryPkgPath=_require[_0x747f20(204)],getHdcPath=_require[_0x747f20(133)],getModuleNames=_require[_0x747f20(156)],getBundleName=_require[_0x747f20(211)],execSafe=_require[_0x747f20(200)],log4js=require(_0x747f20(228)),path=require(_0x747f20(245)),fs=require("fs"),_require2=require(_0x747f20(206)),execSync=_require2[_0x747f20(180)],_require3=require(_0x747f20(158)),configs=_require3.configs,logger=log4js.getLogger(_0x747f20(216)),DEVECO_SDK_HOME=(null==(_ref=process[_0x747f20(176)][_0x747f20(162)]||process[_0x747f20(176)].DEVECO_SDK_HOME)?void 0:_ref[_0x747f20(144)](";")[0][_0x747f20(173)]())+_0x747f20(171),TOOLS_DIR_OSX=DEVECO_SDK_HOME||_0x747f20(210),TOOLS_DIR_WIN=DEVECO_SDK_HOME||_0x747f20(192),TOOLS_DIR="win32"===process.platform?TOOLS_DIR_WIN:TOOLS_DIR_OSX;function getPath(){for(var e=_0x747f20,t=DEVECO_SDK_HOME?DEVECO_SDK_HOME+"/../tools/":TOOLS_DIR,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return path[e(167)][e(146)](path,[t][e(221)](n))}function getDevEcoSdkHome(){var e=_0x747f20,t=getPath(e(166))[e(202)](/"/g,"");return fs[e(241)](t)?logger[e(197)]("DEVECO_SDK_HOME="+t):logger[e(178)](e(214)),t}var isCommandRunning=!1;function assembleHap(){var e=_0x747f20;logger[e(174)](e(222)),runCmd(""[e(221)](getHvigorwPath(),e(198)),{chdir:!0,cwd:getProjectInfo().projectPath})}function installPkg(){var e=_0x747f20,t=getModuleNames();t.name?(t=path[e(167)](getEntryPkgPath(),"build",e(240),"outputs",e(240),""[e(221)](t[e(154)],e(161))),fs[e(241)](t)?(logger.info(e(145)),runCmd(""[e(221)](getHdcPath(),e(130))[e(221)](getDeviceId()," install ")[e(221)](t),{chdir:!0,cwd:getProjectInfo()[e(213)]})):logger[e(179)](e(212),t)):logger[e(179)](e(196))}function assembleAndInstallHap(e){var t,r,n,o,a=_0x747f20;global._supportLegacyHos?(t=getProjectInfo()[a(213)],r=configs[a(207)]||a(224),n=global.ASCF_QS_BUILT_PATH?path.basename(global[a(191)]):null==(n=fs[a(186)](""[a(221)](t,a(218))))||null==(n=n[a(225)](function(e){return/.*-debug-.*\.spk/.test(e)}))?void 0:n[0],o=getBundleNameQs(t),runCmd(""[a(221)](getHdcPath(),a(130))[a(221)](getDeviceId(),a(193))[a(221)](r,a(136))[a(221)](e[a(219)],a(169))[a(221)](n,a(226))[a(221)](o),{chdir:!0,cwd:t})):(assembleHap(),installPkg())}function uninstallPkg(){var e,t=_0x747f20;global._supportLegacyHos||(e=getBundleName(),logger[t(174)]("Uninstall package"),runCmd(""[t(221)](getHdcPath()," -t ")[t(221)](getDeviceId(),t(160))[t(221)](e),{chdir:!0,cwd:getProjectInfo()[t(213)]}))}function getBundleNameQs(e){var t=_0x747f20,e=path[t(236)](e,t(159),t(151),t(172));if(fs[t(241)](e)){e=JSON[t(184)](fs[t(147)](e,t(234)));if(null!=e&&e[t(168)])return null==e?void 0:e[t(168)];logger[t(179)](t(230))}else logger[t(179)](t(150))}function startAbility(){var e,t=_0x747f20,r=getProjectInfo()[t(213)];logger.info(t(195)[t(221)](r)),global._supportLegacyHos?(r=getBundleNameQs(r),e=configs[t(207)]||t(224),runCmd([getHdcPath(),"-t",getDeviceId(),t(235),"aa",t(244),"-a",t(135),"-b",e,t(164),t(215),r,"--ps","launchMode",t(231)].join(" "))):(e=getBundleName())?(r=getModuleNames())[t(154)]?r[t(188)]?(logger[t(174)](t(157)[t(221)](e)),runCmd(""[t(221)](getHdcPath()," -t ")[t(221)](getDeviceId()," shell aa start -a ")[t(221)](r[t(188)],t(148))[t(221)](e,t(183))[t(221)](r[t(154)],t(141)))):logger[t(179)]("abilities.name is null, in the file of module.json5"):logger[t(179)](t(196)):logger[t(179)]("bundleName is null")}function runCmd(e,t){var r=_0x747f20;if(e&&!isCommandRunning){var n=getDevEcoSdkHome(),n=Object[r(149)]({encoding:r(234),env:_objectSpread(_objectSpread({},process.env||{}),{},{DEVECO_SDK_HOME:n})},t);try{logger[r(174)](r(153),e),isCommandRunning=!0;var o=execSync(e,n),a=String(o);return/failed to start ability/[r(243)](a)?logger[r(179)](r(229),a):logger.info("Run command result:",a),o}catch(e){logger[r(179)](r(229),e)}finally{isCommandRunning=!1}}}function hdcRemovePort(e,t){var r=_0x747f20;0!==e&&0!==t&&(logger[r(174)](r(239)),e=execSafe(""[r(221)](getHdcPath(),r(130)).concat(getDeviceId(),r(223))[r(221)](e,r(165))[r(221)](t)),logger[r(197)](e))}function tryHdcPortReversing(e){var t=_0x747f20,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,n=Math[t(187)](64512*Math[t(181)]())+1024,o=execSafe(""[t(221)](getHdcPath(),t(130))[t(221)](getDeviceId(),t(140))[t(221)](n,t(165))[t(221)](e));return o&&5!==r?o.includes(t(190))?n:tryHdcPortReversing(e,++r):0}function getDeviceId(){var e,t=_0x747f20;return configs[t(205)]||((e=execSafe(""[t(221)](getHdcPath(),t(227))))&&!/(Empty|Fail)/[t(243)](e)||(logger[t(179)](t(199)),process[t(155)](1)),e=e[t(144)]("\n"),configs[t(205)]=e[0][t(173)]()),configs[t(205)]}module[_0x747f20(194)]={assembleAndInstallHap:assembleAndInstallHap,assembleHap:assembleHap,installPkg:installPkg,uninstallPkg:uninstallPkg,startAbility:startAbility,hdcRemovePort:hdcRemovePort,tryHdcPortReversing:tryHdcPortReversing,getDeviceId:getDeviceId};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x5ca6de=_0x5d97;function _0x5d97(t,e){var r=_0x526c();return(_0x5d97=function(t,e){return r[t-=285]})(t,e)}function _0x526c(){var t=["1606500kQZsBj","construct","Boolean","setPrototypeOf","4AcdTrx","push","2235192YvgemJ","Array","959292hPLhfO","__proto__","Date","valueOf","Function","3992WQvjxb","1502389hiBUDH","constructor","exports","call","Number","180997CabLKR","18342MHhZLS","bind","RegExp","1609145hgOmFN","apply","Object","length"];return(_0x526c=function(){return t})()}function _construct(t,e,r){var n,c=_0x5d97;return _isNativeReflectConstruct()?Reflect[c(311)][c(307)](null,arguments):((n=[null])[c(288)][c(307)](n,e),e=new(t[c(304)][c(307)](t,n)),r&&_setPrototypeOf(e,r.prototype),e)}function _setPrototypeOf(t,e){var r=_0x5d97;return(_setPrototypeOf=Object[r(286)]?Object[r(286)][r(304)]():function(t,e){return t[r(292)]=e,t})(t,e)}function _isNativeReflectConstruct(){var t=_0x5d97;try{var e=!Boolean.prototype[t(294)][t(300)](Reflect[t(311)](Boolean,[],function(){}))}catch(t){}return(_isNativeReflectConstruct=function(){return!!e})()}function getRegExp(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return _construct(RegExp,e)}function getDate(){for(var t=arguments[_0x5d97(309)],e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return _construct(Date,e)}function getProperty4Object(t,e){var r=_0x5d97,n=null==e?void 0:e[t];if(t!==r(298))return n;switch(n){case Date:return r(293);case RegExp:return r(305);case Object:return r(308);case Function:return r(295);case Array:return r(290);case String:return"String";case Boolean:return r(285);case Number:return r(301);default:return n}}(()=>{for(var t=_0x5d97,e=_0x526c();;)try{if(300553==-parseInt(t(302))+-parseInt(t(291))/2+-parseInt(t(310))/3+-parseInt(t(287))/4*(-parseInt(t(306))/5)+parseInt(t(289))/6+-parseInt(t(297))/7+-parseInt(t(296))/8*(-parseInt(t(303))/9))break;e.push(e.shift())}catch(t){e.push(e.shift())}})(),module[_0x5ca6de(299)]={getDate:getDate,getRegExp:getRegExp,getProperty4Object:getProperty4Object};
|