@atomicservice/ascf-toolkit 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ascf-compiler/appjson-loader.js +1 -1
- package/lib/ascf-compiler/chalk/bundle.cjs.js +1 -1
- package/lib/ascf-compiler/common/appjson-validator.js +1 -1
- package/lib/ascf-compiler/common/css-runtime-api.js +1 -1
- package/lib/ascf-compiler/common/exp-utils.js +1 -1
- package/lib/ascf-compiler/common/hash-sum.js +1 -1
- package/lib/ascf-compiler/common/hjs-utils.js +1 -1
- package/lib/ascf-compiler/common/hxml-validator.js +1 -1
- package/lib/ascf-compiler/common/logUndefined.js +1 -1
- package/lib/ascf-compiler/common/packoptions-utils.js +1 -1
- package/lib/ascf-compiler/common/utils.js +1 -1
- package/lib/ascf-compiler/css-process-loader.js +1 -1
- package/lib/ascf-compiler/extract-loader.js +1 -1
- package/lib/ascf-compiler/hcss-loader.js +1 -1
- package/lib/ascf-compiler/hjs-loader.js +1 -1
- package/lib/ascf-compiler/hxml-loader.js +1 -1
- package/lib/ascf-compiler/loader-utils.js +1 -1
- package/lib/ascf-compiler/path-process-loader.js +1 -1
- package/lib/ascf-compiler/plugin/copy-bundle-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/extConfig-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/html-generator-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/i18n-transform-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/manifest-generator-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/resource-plugin.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/index.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpChunkLoadingRuntimeModule.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpHelpers.js +1 -1
- package/lib/ascf-compiler/plugin/webpack-target/jsonpTemplatePlugin.js +1 -1
- package/lib/ascf-compiler/template/attr-utils.js +1 -1
- package/lib/ascf-compiler/template/node-name-utils.js +1 -1
- package/lib/ascf-compiler/trustlist-hxml-verify-loader.js +1 -1
- package/lib/ascf-compiler/trustlist-js-verify-loader.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/config.js +1 -1
- package/lib/ascf-compiler/trustlist-verify/utils.js +1 -1
- package/lib/ascf-compiler/vue-compiler/vue.bundle.js +1 -1
- package/lib/ascf-compiler/watch/watch.js +1 -0
- package/lib/ascf-compiler/web.webpack.config.js +1 -1
- package/lib/ascf-converter/common/commonConfig.js +1 -1
- package/lib/ascf-converter/common/commonUtils.js +1 -1
- package/lib/ascf-converter/common/textDocument.js +1 -1
- package/lib/ascf-converter/compiler-utils/parse5.bundle.js +1 -1
- package/lib/ascf-converter/features/converter.js +1 -1
- package/lib/ascf-converter/features/fileHandle.js +1 -1
- package/lib/ascf-converter/features/transformReport.js +1 -1
- package/lib/ascf-converter/lib/apiadapter4alipay.js +1 -1
- package/lib/ascf-converter/parse/babelParser.js +1 -1
- package/lib/ascf-converter/parse/importVisitor.js +1 -1
- package/lib/ascf-converter/parse/wxssParser.js +1 -1
- package/lib/bin/ascf.js +1 -1
- package/lib/common/config.js +1 -0
- package/lib/common/logger-plugin.js +1 -1
- package/lib/common/remove-strict-mode-plugin.js +1 -1
- package/lib/common/utils.js +1 -1
- package/lib/index.js +1 -1
- package/notice/openSourceSoftwareNotice.docx +0 -0
- package/package.json +22 -16
- package/notice/openSourceSoftwareNotice.html +0 -5132
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x2ec374=_0x1b52;function _regeneratorRuntime(){var c=_0x1b52;_regeneratorRuntime=function(){return s};var l,s={},e=Object[c(337)],p=e[c(485)],f=Object[c(382)]||function(e,t,r){var n=c;e[t]=r[n(385)]},t=c(504)==typeof Symbol?Symbol:{},a=t.iterator||c(506),r=t[c(440)]||c(478),n=t[c(499)]||c(322);function o(e,t,r){return Object[c(382)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{o({},"")}catch(e){o=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var o,a,i,s,u=c,t=t&&t.prototype instanceof v?t:v,t=Object.create(t.prototype),n=new T(n||[]);return f(t,u(492),{value:(o=e,a=r,i=n,s=h,function(e,t){var r=_0x1b52;if(s===d)throw Error(r(452));if(s===g){if("throw"===e)throw t;return{value:l,done:!0}}for(i.method=e,i[r(489)]=t;;){var n=i[r(447)];if(n){n=function e(t,r){var n=c,o=r[n(314)],a=t[n(517)][o];if(a===l)return r[n(447)]=null,n(342)===o&&t[n(517)][n(395)]&&(r.method=n(395),r[n(489)]=l,e(t,r),n(342)===r[n(314)])||n(395)!==o&&(r.method=n(342),r.arg=new TypeError(n(432)+o+n(451))),y;o=_(a,t[n(517)],r[n(489)]);if("throw"===o[n(328)])return r.method="throw",r[n(489)]=o.arg,r[n(447)]=null,y;a=o[n(489)];return a?a[n(371)]?(r[t[n(332)]]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r[n(314)]=n(446),r.arg=l),r[n(447)]=null,y):a:(r[n(314)]=n(342),r[n(489)]=new TypeError(n(435)),r[n(447)]=null,y)}(n,i);if(n){if(n===y)continue;return n}}if(r(446)===i.method)i[r(488)]=i[r(361)]=i[r(489)];else if(r(342)===i[r(314)]){if(s===h)throw s=g,i[r(489)];i[r(338)](i[r(489)])}else r(395)===i[r(314)]&&i[r(368)]("return",i.arg);s=d;n=_(o,a,i);if(r(427)===n[r(328)]){if(s=i.done?g:m,n.arg===y)continue;return{value:n.arg,done:i[r(371)]}}r(342)===n.type&&(s=g,i[r(314)]=r(342),i[r(489)]=n[r(489)])}})}),t}function _(e,t,r){var n=c;try{return{type:n(427),arg:e.call(t,r)}}catch(e){return{type:n(342),arg:e}}}s[c(407)]=u;var h=c(479),m=c(379),d="executing",g=c(351),y={};function v(){}function i(){}function b(){}var t={},P=(o(t,a,function(){return this}),Object[c(531)]),P=P&&P(P(I([]))),A=(P&&P!==e&&p[c(327)](P,a)&&(t=P),b[c(337)]=v.prototype=Object[c(417)](t));function C(e){var t=c;["next",t(342),t(395)][t(443)](function(t){o(e,t,function(e){return this[_0x1b52(492)](t,e)})})}function x(s,u){var t;f(this,c(492),{value:function(r,n){function e(){return new u(function(e,t){!function t(e,r,n,o){var a,i=_0x1b52,e=_(s[e],s,r);if(i(342)!==e[i(328)])return(r=(a=e[i(489)])[i(385)])&&"object"==_typeof(r)&&p[i(327)](r,i(318))?u.resolve(r[i(318)])[i(384)](function(e){t(i(446),e,n,o)},function(e){t(i(342),e,n,o)}):u[i(465)](r)[i(384)](function(e){a[i(385)]=e,n(a)},function(e){return t(i(342),e,n,o)});o(e[i(489)])}(r,n,e,t)})}return t=t?t.then(e,e):e()}})}function R(e){var t=c,r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r[t(365)]=e[2],r[t(494)]=e[3]),this.tryEntries[t(508)](r)}function S(e){var t=c,r=e[t(402)]||{};r[t(328)]=t(427),delete r[t(489)],e.completion=r}function T(e){var t=c;this.tryEntries=[{tryLoc:t(409)}],e[t(443)](R,this),this.reset(!0)}function I(r){var n=c;if(r||""===r){var o,e=r[a];if(e)return e[n(327)](r);if("function"==typeof r[n(446)])return r;if(!isNaN(r[n(496)]))return o=-1,(e=function e(){for(var t=n;++o<r[t(496)];)if(p[t(327)](r,o))return e[t(385)]=r[o],e[t(371)]=!1,e;return e[t(385)]=l,e.done=!0,e})[n(446)]=e}throw new TypeError(_typeof(r)+" is not iterable")}return i[c(337)]=b,f(A,c(309),{value:b,configurable:!0}),f(b,c(309),{value:i,configurable:!0}),i[c(470)]=o(b,n,"GeneratorFunction"),s[c(333)]=function(e){var t=c,e="function"==typeof e&&e[t(309)];return!!e&&(e===i||t(473)===(e[t(470)]||e.name))},s[c(524)]=function(e){var t=c;return Object[t(520)]?Object.setPrototypeOf(e,b):(e[t(419)]=b,o(e,n,t(473))),e[t(337)]=Object[t(417)](A),e},s.awrap=function(e){return{__await:e}},C(x[c(337)]),o(x[c(337)],r,function(){return this}),s[c(482)]=x,s.async=function(e,t,r,n,o){var a=c,i=(void 0===o&&(o=Promise),new x(u(e,t,r,n),o));return s[a(333)](t)?i:i[a(446)]()[a(384)](function(e){var t=a;return e[t(371)]?e[t(385)]:i[t(446)]()})},C(A),o(A,n,"Generator"),o(A,a,function(){return this}),o(A,"toString",function(){return"[object Generator]"}),s[c(511)]=function(e){var t,n=c,o=Object(e),a=[];for(t in o)a[n(508)](t);return a[n(532)](),function e(){for(var t=n;a[t(496)];){var r=a[t(510)]();if(r in o)return e.value=r,e[t(371)]=!1,e}return e[t(371)]=!0,e}},s[c(486)]=I,T.prototype={constructor:T,reset:function(e){var t=c;if(this.prev=0,this[t(446)]=0,this[t(488)]=this[t(361)]=l,this[t(371)]=!1,this[t(447)]=null,this[t(314)]=t(446),this.arg=l,this[t(528)][t(443)](S),!e)for(var r in this)"t"===r.charAt(0)&&p[t(327)](this,r)&&!isNaN(+r[t(378)](1))&&(this[r]=l)},stop:function(){var e=c,t=(this[e(371)]=!0,this[e(528)][0].completion);if(e(342)===t[e(328)])throw t[e(489)];return this[e(484)]},dispatchException:function(n){var o=c;if(this[o(371)])throw n;var a=this;function e(e,t){var r=o;return i[r(328)]=r(342),i.arg=n,a[r(446)]=e,t&&(a[r(314)]=r(446),a[r(489)]=l),!!t}for(var t=this[o(528)][o(496)]-1;0<=t;--t){var r=this[o(528)][t],i=r[o(402)];if(o(409)===r[o(346)])return e("end");if(r.tryLoc<=this[o(487)]){var s=p[o(327)](r,o(429)),u=p[o(327)](r,o(365));if(s&&u){if(this[o(487)]<r[o(429)])return e(r[o(429)],!0);if(this.prev<r[o(365)])return e(r[o(365)])}else if(s){if(this[o(487)]<r[o(429)])return e(r[o(429)],!0)}else{if(!u)throw Error("try statement without catch or finally");if(this[o(487)]<r[o(365)])return e(r[o(365)])}}}},abrupt:function(e,t){for(var r=c,n=this.tryEntries.length-1;0<=n;--n){var o=this[r(528)][n];if(o[r(346)]<=this[r(487)]&&p[r(327)](o,"finallyLoc")&&this[r(487)]<o[r(365)]){var a=o;break}}var i=(a=a&&(r(348)===e||r(406)===e)&&a[r(346)]<=t&&t<=a.finallyLoc?null:a)?a[r(402)]:{};return i[r(328)]=e,i[r(489)]=t,a?(this.method=r(446),this.next=a[r(365)],y):this[r(414)](i)},complete:function(e,t){var r=c;if(r(342)===e[r(328)])throw e.arg;return r(348)===e[r(328)]||r(406)===e.type?this[r(446)]=e[r(489)]:r(395)===e.type?(this[r(484)]=this[r(489)]=e[r(489)],this[r(314)]=r(395),this[r(446)]=r(421)):r(427)===e.type&&t&&(this[r(446)]=t),y},finish:function(e){for(var t=c,r=this.tryEntries.length-1;0<=r;--r){var n=this[t(528)][r];if(n.finallyLoc===e)return this[t(414)](n.completion,n[t(494)]),S(n),y}},catch:function(e){for(var t=c,r=this[t(528)][t(496)]-1;0<=r;--r){var n,o,a=this[t(528)][r];if(a[t(346)]===e)return n=a[t(402)],t(342)===n[t(328)]&&(o=n[t(489)],S(a)),o}throw Error(t(436))},delegateYield:function(e,t,r){var n=c;return this[n(447)]={iterator:I(e),resultName:t,nextLoc:r},"next"===this[n(314)]&&(this[n(489)]=l),y}},s}function _typeof(e){var r=_0x1b52;return(_typeof=r(504)==typeof Symbol&&r(373)==typeof Symbol.iterator?function(e){return typeof e}:function(e){var t=r;return e&&"function"==typeof Symbol&&e[t(309)]===Symbol&&e!==Symbol.prototype?t(373):typeof e})(e)}function asyncGeneratorStep(e,t,r,n,o,a,i){var s=_0x1b52;try{var u=e[a](i),c=u[s(385)]}catch(e){return void r(e)}u[s(371)]?t(c):Promise[s(465)](c)[s(384)](n,o)}function _asyncToGenerator(u){return function(){var e=this,s=arguments;return new Promise(function(t,r){var n=_0x1b52,o=u[n(507)](e,s);function a(e){asyncGeneratorStep(o,t,r,a,i,n(446),e)}function i(e){asyncGeneratorStep(o,t,r,a,i,n(342),e)}a(void 0)})}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError(_0x1b52(369))}function _iterableToArray(e){var t=_0x1b52;if("undefined"!=typeof Symbol&&null!=e[Symbol[t(517)]]||null!=e[t(506)])return Array[t(330)](e)}function _0x5897(){var e=[".hxml","length","isDirectory","babel-loader","toStringTag","clearResource","optimization","selectedIconPath","./trustlist-hxml-verify-loader.js","function","independent","@@iterator","apply","push","./plugin/html-generator-plugin","pop","keys","../common/utils","13336gLRYIJ","app.js","router","webapp","iterator","ERROR: build-profile.json5 file modules is null","fa-compiler/loader.js","setPrototypeOf","toString","object","yellow","mark",".ascf","WARNING: The build directory is not cleared. Use the -c parameter.","./plugin/manifest-generator-plugin","tryEntries","' is used.","./common/utils","getPrototypeOf","reverse","[name]","custom","manifest","join","widgetPathsList","constructor","componentList","undefined","iconPath","1851381beYtkB","method"," cannot be in the subpackage directory","./appjson-loader","ERROR: Failed to find the file: ","__await","@babel/preset-env","ERROR: ","text","@@toStringTag","usingComponents","path","javascript/auto","ERROR: app.json doesn't contain any page.","call","type","customTabBar","from","custom-tab-bar/index.hxml","resultName","isGeneratorFunction","filePath","', please check tabBar configuration.","get","prototype","dispatchException","app.css.js","i18n","map","throw","PROJECT_PATH","fixEntryPath","' does not have the component attribute configured. ","tryLoc","defFreezeProperty","break","stop","production","completed","471907Isxwwu","test","versionNum","warn","list","set","srcPath","dist","Arguments","_sent","miniprogram_npm","./plugin/extConfig-plugin","routeMapping","finallyLoc","RAWFILE_DIR",".ux","abrupt","Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","env","done","./plugin/i18n-transform-plugin","symbol","concat","modules","ASCF_BUILD_PATH","isArray","slice","suspendedYield","split","tabBar","defineProperty","./hjs-loader","then","value","toPrimitive","trim","parseIgnoreRules","projectComponentsMap","find","subPackages","webpack","226404AneVgl","custom-tab-bar/index","return","async","@babel/plugin-transform-modules-commonjs","string","ASCF_SRC_PATH","./plugin/webpack-target/index","independentList","completion","./trustlist-js-verify-loader.js","import-scripts","963CIeoVy","continue","wrap",".pack.js","root","4vEEeDt","1756848JZgqJC","LoaderOptionsPlugin","relative","complete","web","toLowerCase","create","existsSync","__proto__",".json","end","401667NhkIuq","compJsonPath","createCSSRule","name","app.css","normal","components","catchLoc","pages","replace","The iterator does not provide a '","./hxml-loader","getAbsPath","iterator result is not an object","illegal catch attempt","readdir","ERROR: build-profile.json5 file not found","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","asyncIterator","page","exit","forEach","pagePath","red","next","delegate","Map","isIgnoreFile","ERROR: Can not resolve tabBar list item : ","' method","Generator is already running","node_modules","ERROR: modify app.json tabBar and recompile it","parse","Object","./plugin/copy-bundle-plugin","named","exports","WARNING:Route information in the manifest.json file is incomplete:\n Page '","loadBabelModule","getProjectAbsPath","moduleIds","global","resolve","none","mergeMap","lstatSync","filter","displayName","subpackages","startsWith","GeneratorFunction","?type=component","app","json5","error","@@asyncIterator","suspendedStart","number","Set","AsyncIterator","useCustomTabBar","rval","hasOwnProperty","values","prev","sent","arg","2713770fvDeZr","widgets","_invoke","readFileSync","afterLoc"];return(_0x5897=function(){return e})()}function _arrayWithoutHoles(e){if(Array[_0x1b52(377)](e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var r,n,o,a,i=_0x1b52,s=i(311)!=typeof Symbol&&e[Symbol.iterator]||e[i(506)];if(s)return o=!(n=!0),{s:function(){s=s[i(327)](e)},n:function(){var e=i,t=s[e(446)]();return n=t[e(371)],t},e:function(e){o=!0,r=e},f:function(){var e=i;try{n||null==s[e(395)]||s.return()}finally{if(o)throw r}}};if(Array[i(377)](e)||(s=_unsupportedIterableToArray(e))||t&&e&&i(480)==typeof e[i(496)])return s&&(e=s),a=0,{s:t=function(){},n:function(){return a>=e[i(496)]?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError(i(439))}function _unsupportedIterableToArray(e,t){var r,n=_0x1b52;if(e)return n(398)==typeof e?_arrayLikeToArray(e,t):(r={}[n(521)][n(327)](e).slice(8,-1),n(456)===r&&e[n(309)]&&(r=e[n(309)].name),n(448)===r||n(481)===r?Array[n(330)](e):n(360)===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/[n(353)](r)?_arrayLikeToArray(e,t):void 0)}function _arrayLikeToArray(e,t){var r=_0x1b52;(null==t||t>e[r(496)])&&(t=e[r(496)]);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,_0x1b52(398));return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){var r=_0x1b52;if(r(522)!=_typeof(e)||!e)return e;var n=e[Symbol[r(386)]];if(void 0===n)return(r(398)===t?String:Number)(e);n=n.call(e,t||"default");if(r(522)!=_typeof(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{for(var e=_0x1b52,t=_0x5897();;)try{if(298228==-parseInt(e(352))+-parseInt(e(393))/2+-parseInt(e(422))/3*(-parseInt(e(410))/4)+parseInt(e(490))/5+parseInt(e(411))/6+-parseInt(e(313))/7+parseInt(e(513))/8*(parseInt(e(405))/9))break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var path=require("path"),fs=require("fs"),webpack=require(_0x2ec374(392)),json5=require(_0x2ec374(476)),ResourcePlugin=require("./plugin/resource-plugin"),HtmlGeneratorPlugin=require(_0x2ec374(509)),ManifestGeneratorPlugin=require(_0x2ec374(527)),I18NPlugin=require(_0x2ec374(372)),CopyAscfBundlePlugin=require(_0x2ec374(457)),_packOptions=require("./common/packoptions-utils"),_require=require(_0x2ec374(512)),clearResource=_require[_0x2ec374(500)],IS_PRD=_require.IS_PRD,PROJECT_PATH=_require[_0x2ec374(343)],PROJECT_CONFIG=_require.PROJECT_CONFIG,ASCF_SRC_PATH=_require[_0x2ec374(399)],ASCF_BUILD_PATH=_require[_0x2ec374(376)],RAWFILE_DIR=_require[_0x2ec374(366)],WebpackTargetPlugin=require(_0x2ec374(400)),LoggerPlguin=require("../common/logger-plugin"),utils=require(_0x2ec374(530)),commonUtils=require(_0x2ec374(512)),removeStrictModePlugin=require("../common/remove-strict-mode-plugin"),chalk=require("../ascf-compiler/chalk/bundle.cjs"),ExtConfigPlugin=require(_0x2ec374(363));function _0x1b52(e,t){var r=_0x5897();return(_0x1b52=function(e,t){return r[e-=306]})(e,t)}chalk.level=1,process.noDeprecation=!0;var ignoreRules=generateIgnoreRule(PROJECT_CONFIG),ZIP_PATH=path[_0x2ec374(307)](ASCF_SRC_PATH,_0x2ec374(525),_0x2ec374(359)),buildProfileJson5Path=path[_0x2ec374(465)](PROJECT_PATH,"build-profile.json5");if(!fs[_0x2ec374(418)](buildProfileJson5Path))throw _0x2ec374(438);var buildProfile=json5[_0x2ec374(455)](fs[_0x2ec374(493)](buildProfileJson5Path).toString());if(!buildProfile[_0x2ec374(375)]||0===buildProfile[_0x2ec374(375)][_0x2ec374(496)])throw _0x2ec374(518);var BUILD_PATH=path[_0x2ec374(465)](PROJECT_PATH,buildProfile[_0x2ec374(375)][0][_0x2ec374(358)],RAWFILE_DIR),I18N_ENTRY=[],I18N=_0x2ec374(340),APP=_0x2ec374(475),APP_TYPE=_0x2ec374(516);function handleUsingComponents(e,t){var r,n=_0x2ec374;if(e)for(var o in e)Object[n(337)][n(485)][n(327)](e,o)&&(r=e[o][n(387)](),e[o]=utils[n(462)](r,t,ASCF_SRC_PATH))}function checkTabBarPath(e){var t,i,r=_0x2ec374,s=[r(312),r(502),"pagePath"],n=(null==(n=e.tabBar)?void 0:n.list)||[],e=e.subPackages||e.subpackages||[];n!==[]&&e!==[]&&(t=e[r(341)](function(e){return e[r(409)]})[r(469)](function(e){return e}),i=[],n[r(443)](function(a){var e=r;t[e(443)](function(n){var o=e;s[o(443)](function(e){var t,r=o;path[r(307)](ASCF_SRC_PATH,null!=(t=a[e])?t:"")[r(472)](path[r(307)](ASCF_SRC_PATH,n,"/"))&&i[r(508)](chalk[r(445)]("ERROR: tabBar ".concat(a[r(321)]," ")[r(374)](e,r(315))))})})}),0<i[r(496)])&&(i[r(443)](function(e){var t=r;console[t(477)](chalk[t(445)](e))}),console.error(chalk[r(445)](r(454))),process[r(442)](1))}function readAppJson(){var r=_0x2ec374,e=_defineProperty({},APP,new Map),t=path[r(307)](ASCF_SRC_PATH,"app.json");if(!fs[r(418)](t))throw"ERROR: Can not resolve file : app.json";var n=commonUtils.readJsonFile(t),t=(checkTabBarPath(n),handleAppType(n),handleUsingComponents(n[r(323)],t),n.page={},n[r(401)]=[],[]);if(!n[r(430)]||n[r(430)][r(496)]<=0)throw r(326);putPageInfoToEntryList(n[r(430)],"",!1,n,e[APP]);var o=[r(471),r(391)][r(390)](function(e){var t=r;return Object.prototype[t(485)][t(327)](n,e)});if(t[r(496)]){o&&delete n[o];var a,i=_createForOfIteratorHelper(n[r(471)]=t);try{for(i.s();!(a=i.n())[r(371)];){var s=a[r(385)],u=new Map;e[s[r(409)]]=u,putPageInfoToEntryList(s.pages,s[r(409)],s[r(505)],n,u)}}catch(e){i.e(e)}finally{i.f()}}else if(o){t=n[o],delete n[o];var c,l=_createForOfIteratorHelper(n.subpackages=t);try{for(l.s();!(c=l.n())[r(371)];){var p=c[r(385)],f=new Map;e[p[r(409)]]=f,putPageInfoToEntryList(p[r(430)],p[r(409)],p[r(505)],n,f)}}catch(e){l.e(e)}finally{l.f()}}return handingCustomTabBar(n),{manifest:n,projectComponentsMap:e}}function handleAppType(e){var t;e[_0x2ec374(328)]=null!=(t=null!=(t=e.type)?t:e.appType)?t:APP_TYPE,delete e.appType}function hasCustomTabBar(e){var t=_0x2ec374;return(e[t(381)]||{})[t(534)]&&fs[t(418)](path[t(465)](ASCF_SRC_PATH,t(331)))}function handingCustomTabBar(e){var t=_0x2ec374;if(hasCustomTabBar(e)){var r,n=_createForOfIteratorHelper(e[t(381)].list);try{for(n.s();!(r=n.n())[t(371)];){var o=r[t(385)];if(!e[t(441)][o[t(444)]])throw t(450)+"'"[t(374)](o[t(444)],t(335));e[t(441)][o[t(444)]][t(483)]=!0}}catch(e){n.e(e)}finally{n.f()}}}function getGlobalComponentsInfo(){var t=0<arguments[_0x2ec374(496)]&&void 0!==arguments[0]?arguments[0]:{},r=[];return Object.keys(t).forEach(function(e){r.push({key:e,path:t[e]})}),r}function putPageInfoToEntryList(e,t,r,n,o){var a=_0x2ec374;if(e)for(var i in e)if(Object[a(337)][a(485)].call(e,i)){var i=path[a(307)](ASCF_SRC_PATH,t,e[i]),s=path[a(413)](ASCF_SRC_PATH,i);if(!_packOptions[a(449)](s,ignoreRules)){var s=s[a(431)](/\\/g,"/"),i=""[a(374)](i,".json"),u=void 0;try{u=fs[a(418)](i)?JSON[a(455)](fs.readFileSync(i)[a(521)]()):{}}catch(e){throw a(320)[a(374)](i," contains error, please check it.")}handleUsingComponents(u[a(323)],i),r&&n[a(401)].push(s),n[a(441)][s]=u,t||getUsingComponents(n,"","",o,a(441)),getUsingComponents(u,i,s,o,a(441))}}}function getUsingComponents(a,i,e,s,t){var u=_0x2ec374,c=5<arguments[u(496)]&&void 0!==arguments[5]?arguments[5]:[],l=[],p=a[u(425)];if(a[u(323)])for(var f in a.usingComponents)(()=>{var t=u;if(Object[t(337)][t(485)][t(327)](a.usingComponents,f)){var e=a[t(323)][f],r=utils[t(434)](e,i,ASCF_SRC_PATH,t(420)),n=r[t(334)],r=r[t(344)],o=path[t(413)](ASCF_SRC_PATH,n)[t(431)](/\\/g,"/").replace(/\.json/,""),e=r||o;if(a[t(323)][f]=e,!p&&i===n)return p=f;if(c[t(390)](function(e){return e===n}))throw"ERROR: Can not use cyclic dependened component with component path : "[t(374)](n);l.some(function(e){return e[t(324)]===path})||l[t(508)]({path:e,key:f,compJsonPath:n});r=JSON[t(455)](fs[t(493)](n)[t(521)]());handleUsingComponents(r[t(323)],n),getUsingComponents(r,n,e,s,"component",c[t(374)]([n]))}})();e&&!s[u(336)](e)&&(t={componentList:l,type:t,componentName:p,compJsonPath:i,path:e},s[u(357)](e,t))}function getI18NEntry(u){var c=_0x2ec374;fs[c(437)](u,function(e,t){var r=c;if(e)throw e;var n,o=_createForOfIteratorHelper(t);try{for(o.s();!(n=o.n()).done;){var a,i=n[r(385)],s=path[r(307)](u,i)[r(431)](/\\/g,"/");fs[r(468)](s)[r(497)]()&&!/(node_modules)|(\.ascf)/[r(353)](i)&&((a=s[r(380)]("/"))[a.length-1][r(416)]()===I18N&&I18N_ENTRY[r(508)](s),getI18NEntry(s))}}catch(e){o.e(e)}finally{o.f()}})}function generateEntry(e){var n=_0x2ec374,o={},t=e[n(389)],r=[],a=(Object[n(511)](t).reverse().forEach(function(e){r[n(508)](t[e])}),o[n(514)]=path.resolve(ASCF_SRC_PATH,"app.json?package=app")[n(431)](/\\/g,"/"),utils[n(467)](r)),i=path[n(465)](ASCF_SRC_PATH,n(426));if(fs[n(418)](i)&&(o[n(339)]=path[n(465)](ASCF_SRC_PATH,n(426))),hasCustomTabBar(e[n(306)])){var s,i=path[n(465)](ASCF_SRC_PATH,"custom-tab-bar/index.hxml"),u=i[n(431)](/\.hxml$/,".json"),c=(o["custom-tab-bar/index.pack.js"]=""[n(374)](i,n(474)),_createForOfIteratorHelper(e[n(306)][n(381)][n(356)]));try{for(c.s();!(s=c.n()).done;){var l=s[n(385)];a[n(336)](l[n(444)])&&a.get(l[n(444)])[n(310)][n(508)]({path:n(394),key:n(329),compJsonPath:u})}}catch(e){c.e(e)}finally{c.f()}i={componentList:[],type:"component",compJsonPath:u};t[n(475)].set(n(394),i)}return a[n(443)](function(e,t){var r=n;return o[""[r(374)](t,r(408))]=e[r(423)][r(431)](/\.json$/,r(495))}),utils[n(347)](e,n(428),a),generateWidgetsEntry(o,e),o}function generateWidgetsEntry(o,r){var a,n,i=_0x2ec374,e=r[i(306)];r[i(306)]&&e.router&&((a=e[i(515)][i(430)])&&Object.keys(a)[i(443)](function(e){var t=i,r=a[e],n=r.component,r=(r||console[t(355)](chalk[t(523)](t(460)[t(374)](e,t(345))+"By default, '"[t(374)](n,t(529)))),path.join(ASCF_SRC_PATH,e,n)),e=""[t(374)](path[t(307)](e,n),".js");if(fs[t(418)]("".concat(r,t(367))))o[e]="".concat(r,".ux");else if(!fs[t(418)](""[t(374)](r,".hxml")))throw t(317).concat(r,t(367))}),e=e[i(491)])&&0<e[i(496)]&&(r[i(308)]=[],n="",e[i(443)](function(e){var t=i;n=e.path,r[t(308)].push(path[t(307)](ASCF_SRC_PATH,n))}))}function generateModules(){var e=_0x2ec374,t={targets:{node:8}};return{rules:[][e(374)](_toConsumableArray(utils[e(424)]()),[{test:/\.js$/,use:[{loader:utils[e(461)](e(498)),options:{presets:[[utils[e(461)](e(319)),t]],plugins:[utils[e(461)]("@babel/plugin-transform-modules-commonjs"),utils[e(461)]("@babel/plugin-proposal-class-properties")]}},{loader:path[e(465)](__dirname,e(403))}],exclude:/node_modules/},{test:/\.(hjs)$/,use:[{loader:path[e(465)](__dirname,e(383))},{loader:utils[e(461)](e(498)),options:{presets:[[utils[e(461)]("@babel/preset-env"),t]],plugins:[utils[e(461)](e(397)),removeStrictModePlugin]}},{loader:path[e(465)](__dirname,"./path-process-loader.js")},{loader:path[e(465)](__dirname,e(403))}],exclude:/node_modules/},{test:/\.hxml$/,type:e(325),use:[{loader:utils[e(461)](e(498)),options:{presets:[[utils[e(461)](e(319)),t]],compact:!1}},{loader:path[e(465)](__dirname,e(433))},{loader:path[e(465)](__dirname,e(503))}]},{test:/app\.json$/,type:"javascript/auto",use:[{loader:path[e(465)](__dirname,e(316))}]},{test:/\.(ux)(\?[^?]+)?$/,use:[{loader:path[e(465)](__dirname,e(519))}]}])}}function generateIgnoreRule(e){var t;return(t=e?_packOptions[_0x2ec374(388)](e):t)||{}}function generateRouteMapping(e){var t=_0x2ec374,r=e[t(306)][t(364)]||{},n=path[t(307)](ASCF_SRC_PATH,"route-mapping.json");if(fs[t(418)](n)){var o=JSON[t(455)](fs.readFileSync(n).toString());if(o)for(var a in o)Object[t(337)].hasOwnProperty[t(327)](o,a)&&(r[a]=o[a])}0<Object[t(511)](r)[t(496)]&&(e[t(306)][t(364)]=r)}function generatePlugins(e){var t=_0x2ec374;return[new LoggerPlguin,new ResourcePlugin({src:ASCF_SRC_PATH,build:BUILD_PATH,ignoreRules:ignoreRules,manifest:e[t(306)]}),new ManifestGeneratorPlugin({manifest:e[t(306)],build:BUILD_PATH}),new HtmlGeneratorPlugin({manifestData:e[t(306)],pagesInfo:e[t(306)][t(441)],srcPath:ASCF_SRC_PATH,buildPath:BUILD_PATH,componentSet:e[t(428)]}),new webpack[t(412)]({options:{srcPath:ASCF_SRC_PATH,manifest:e[t(306)],components:e.components,projectComponentsMap:e[t(389)],versionNum:e[t(354)],widgetPathsList:e[t(308)],widgetsDependList:e.widgetPathsList,projectCfgData:PROJECT_CONFIG,globalComponents:getGlobalComponentsInfo(e[t(306)][t(323)])}}),new I18NPlugin({srcPath:ASCF_SRC_PATH,buildPath:BUILD_PATH,entries:I18N_ENTRY}),new WebpackTargetPlugin,new CopyAscfBundlePlugin({projectPath:ASCF_SRC_PATH,entryDir:BUILD_PATH,bundleDir:RAWFILE_DIR}),new ExtConfigPlugin({projectPath:ASCF_SRC_PATH,entryDir:BUILD_PATH})]}function getResolve(){var e=_0x2ec374;return{modules:[path.join(ASCF_SRC_PATH,e(362)),path.join(ASCF_SRC_PATH,e(453)),path[e(307)](__dirname,"..","..",e(453)),path[e(307)](__dirname,"..","..","..","..","node_modules")]}}function checkBuildResources(){var e=_0x2ec374;(fs[e(418)](ZIP_PATH)||fs[e(418)](BUILD_PATH)||fs.existsSync(ASCF_BUILD_PATH))&&(console[e(355)](chalk[e(523)](e(526))),process[e(442)](1))}function generateConfig(){return _generateConfig[_0x2ec374(507)](this,arguments)}function _generateConfig(){var t=_0x2ec374;return(_generateConfig=_asyncToGenerator(_regeneratorRuntime()[t(524)](function e(){var r,n,o=t;return _regeneratorRuntime()[o(407)](function(e){for(var t=o;;)switch(e[t(487)]=e[t(446)]){case 0:if("yes"===process[t(370)][t(500)])return e.next=3,clearResource([ZIP_PATH,BUILD_PATH,ASCF_BUILD_PATH]);e[t(446)]=3;break;case 3:return checkBuildResources(),getI18NEntry(ASCF_SRC_PATH),generateRouteMapping(r=readAppJson()),n=generateEntry(r),n={mode:IS_PRD?t(350):"development",devtool:!IS_PRD&&"inline-cheap-source-map",context:ASCF_SRC_PATH,entry:n,output:{path:BUILD_PATH,filename:t(533),publicPath:"/",globalObject:t(464),enabledChunkLoadingTypes:[t(404)]},target:t(415),resolve:getResolve(),module:generateModules(),plugins:generatePlugins(r),node:{global:!1},stats:t(466),optimization:{noEmitOnErrors:!1,splitChunks:{chunks:t(396),cacheGroups:{default:!1}}}},IS_PRD||(n[t(501)][t(463)]=t(458)),e.abrupt(t(395),n);case 11:case t(421):return e[t(349)]()}},e)})))[t(507)](this,arguments)}module[_0x2ec374(459)]=generateConfig;
|
|
1
|
+
var _0x1c9aa6=_0xe2d3;function _regeneratorRuntime(){var c=_0xe2d3;_regeneratorRuntime=function(){return s};var l,s={},e=Object[c(380)],p=e[c(323)],f=Object[c(457)]||function(e,t,r){e[t]=r.value},t=c(421)==typeof Symbol?Symbol:{},o=t[c(377)]||c(368),r=t[c(291)]||"@@asyncIterator",n=t.toStringTag||c(416);function a(e,t,r){return Object[c(457)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(e){a=function(e,t,r){return e[t]=r}}function u(e,t,r,n){var a,o,i,s,u=c,t=t&&t[u(380)]instanceof v?t:v,t=Object.create(t[u(380)]),n=new T(n||[]);return f(t,u(285),{value:(a=e,o=r,i=n,s=h,function(e,t){var r=_0xe2d3;if(s===m)throw Error(r(242));if(s===g){if(r(398)===e)throw t;return{value:l,done:!0}}for(i[r(443)]=e,i.arg=t;;){var n=i[r(379)];if(n){n=function e(t,r){var n=c,a=r[n(443)],o=t[n(377)][a];if(o===l)return r.delegate=null,n(398)===a&&t[n(377)][n(458)]&&(r.method=n(458),r[n(408)]=l,e(t,r),n(398)===r.method)||n(458)!==a&&(r[n(443)]="throw",r[n(408)]=new TypeError(n(424)+a+"' method")),y;a=_(o,t[n(377)],r.arg);if(n(398)===a.type)return r[n(443)]=n(398),r[n(408)]=a[n(408)],r[n(379)]=null,y;o=a[n(408)];return o?o[n(310)]?(r[t[n(465)]]=o[n(451)],r[n(365)]=t.nextLoc,n(458)!==r[n(443)]&&(r.method=n(365),r[n(408)]=l),r[n(379)]=null,y):o:(r[n(443)]=n(398),r[n(408)]=new TypeError(n(476)),r[n(379)]=null,y)}(n,i);if(n){if(n===y)continue;return n}}if(r(365)===i.method)i[r(314)]=i[r(372)]=i.arg;else if(r(398)===i[r(443)]){if(s===h)throw s=g,i[r(408)];i[r(311)](i[r(408)])}else"return"===i[r(443)]&&i.abrupt("return",i.arg);s=m;n=_(a,o,i);if(r(389)===n[r(420)]){if(s=i[r(310)]?g:d,n[r(408)]===y)continue;return{value:n[r(408)],done:i[r(310)]}}r(398)===n[r(420)]&&(s=g,i[r(443)]="throw",i[r(408)]=n.arg)}})}),t}function _(e,t,r){var n=c;try{return{type:n(389),arg:e[n(414)](t,r)}}catch(e){return{type:"throw",arg:e}}}s[c(249)]=u;var h=c(275),d=c(357),m=c(399),g=c(433),y={};function v(){}function i(){}function P(){}var t={},b=(a(t,o,function(){return this}),Object[c(330)]),b=b&&b(b(I([]))),A=(b&&b!==e&&p[c(414)](b,o)&&(t=b),P[c(380)]=v[c(380)]=Object[c(276)](t));function x(e){var t=c;[t(365),t(398),t(458)][t(317)](function(t){a(e,t,function(e){return this[_0xe2d3(285)](t,e)})})}function C(s,u){var t;f(this,c(285),{value:function(r,n){function e(){return new u(function(e,t){!function t(e,r,n,a){var o,i=_0xe2d3,e=_(s[e],s,r);if(i(398)!==e[i(420)])return(r=(o=e[i(408)])[i(451)])&&i(462)==_typeof(r)&&p[i(414)](r,i(293))?u.resolve(r.__await)[i(422)](function(e){t(i(365),e,n,a)},function(e){t("throw",e,n,a)}):u.resolve(r)[i(422)](function(e){o[i(451)]=e,n(o)},function(e){return t(i(398),e,n,a)});a(e[i(408)])}(r,n,e,t)})}return t=t?t.then(e,e):e()}})}function R(e){var t=c,r={tryLoc:e[0]};1 in e&&(r[t(302)]=e[1]),2 in e&&(r[t(315)]=e[2],r[t(307)]=e[3]),this.tryEntries[t(423)](r)}function S(e){var t=c,r=e[t(326)]||{};r[t(420)]=t(389),delete r.arg,e[t(326)]=r}function T(e){var t=c;this[t(286)]=[{tryLoc:t(475)}],e[t(317)](R,this),this[t(319)](!0)}function I(r){var n=c;if(r||""===r){var a,e=r[o];if(e)return e[n(414)](r);if("function"==typeof r[n(365)])return r;if(!isNaN(r[n(295)]))return a=-1,(e=function e(){for(var t=n;++a<r[t(295)];)if(p[t(414)](r,a))return e[t(451)]=r[a],e[t(310)]=!1,e;return e.value=l,e.done=!0,e})[n(365)]=e}throw new TypeError(_typeof(r)+n(431))}return i[c(380)]=P,f(A,"constructor",{value:P,configurable:!0}),f(P,c(436),{value:i,configurable:!0}),i.displayName=a(P,n,c(338)),s.isGeneratorFunction=function(e){var t=c,e=t(421)==typeof e&&e[t(436)];return!!e&&(e===i||t(338)===(e[t(281)]||e[t(404)]))},s.mark=function(e){var t=c;return Object[t(350)]?Object[t(350)](e,P):(e[t(407)]=P,a(e,n,t(338))),e.prototype=Object[t(276)](A),e},s[c(259)]=function(e){return{__await:e}},x(C[c(380)]),a(C[c(380)],r,function(){return this}),s[c(427)]=C,s.async=function(e,t,r,n,a){var o=c,i=(void 0===a&&(a=Promise),new C(u(e,t,r,n),a));return s[o(299)](t)?i:i.next().then(function(e){var t=o;return e[t(310)]?e[t(451)]:i[t(365)]()})},x(A),a(A,n,c(322)),a(A,o,function(){return this}),a(A,c(410),function(){return c(334)}),s.keys=function(e){var t,n=c,a=Object(e),o=[];for(t in a)o[n(423)](t);return o[n(294)](),function e(){for(var t=n;o[t(295)];){var r=o[t(318)]();if(r in a)return e[t(451)]=r,e[t(310)]=!1,e}return e[t(310)]=!0,e}},s[c(298)]=I,T.prototype={constructor:T,reset:function(e){var t=c;if(this[t(461)]=0,this[t(365)]=0,this.sent=this[t(372)]=l,this[t(310)]=!1,this[t(379)]=null,this.method=t(365),this[t(408)]=l,this.tryEntries[t(317)](S),!e)for(var r in this)"t"===r[t(400)](0)&&p[t(414)](this,r)&&!isNaN(+r.slice(1))&&(this[r]=l)},stop:function(){var e=c,t=(this[e(310)]=!0,this.tryEntries[0][e(326)]);if(e(398)===t[e(420)])throw t[e(408)];return this.rval},dispatchException:function(n){var a=c;if(this[a(310)])throw n;var o=this;function e(e,t){var r=a;return i[r(420)]=r(398),i[r(408)]=n,o[r(365)]=e,t&&(o[r(443)]=r(365),o[r(408)]=l),!!t}for(var t=this.tryEntries[a(295)]-1;0<=t;--t){var r=this[a(286)][t],i=r[a(326)];if(a(475)===r[a(312)])return e(a(270));if(r[a(312)]<=this.prev){var s=p[a(414)](r,a(302)),u=p[a(414)](r,"finallyLoc");if(s&&u){if(this[a(461)]<r[a(302)])return e(r[a(302)],!0);if(this.prev<r[a(315)])return e(r[a(315)])}else if(s){if(this[a(461)]<r.catchLoc)return e(r.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return e(r[a(315)])}}}},abrupt:function(e,t){for(var r=c,n=this.tryEntries.length-1;0<=n;--n){var a=this[r(286)][n];if(a.tryLoc<=this.prev&&p[r(414)](a,r(315))&&this.prev<a[r(315)]){var o=a;break}}var i=(o=o&&(r(268)===e||r(450)===e)&&o[r(312)]<=t&&t<=o.finallyLoc?null:o)?o.completion:{};return i[r(420)]=e,i[r(408)]=t,o?(this[r(443)]=r(365),this[r(365)]=o[r(315)],y):this[r(374)](i)},complete:function(e,t){var r=c;if(r(398)===e.type)throw e.arg;return"break"===e.type||"continue"===e[r(420)]?this.next=e[r(408)]:r(458)===e[r(420)]?(this.rval=this.arg=e[r(408)],this[r(443)]=r(458),this[r(365)]="end"):r(389)===e.type&&t&&(this[r(365)]=t),y},finish:function(e){for(var t=c,r=this[t(286)][t(295)]-1;0<=r;--r){var n=this.tryEntries[r];if(n.finallyLoc===e)return this[t(374)](n[t(326)],n[t(307)]),S(n),y}},catch:function(e){for(var t=c,r=this.tryEntries[t(295)]-1;0<=r;--r){var n,a,o=this.tryEntries[r];if(o[t(312)]===e)return n=o[t(326)],t(398)===n.type&&(a=n[t(408)],S(o)),a}throw Error(t(411))},delegateYield:function(e,t,r){var n=c;return this[n(379)]={iterator:I(e),resultName:t,nextLoc:r},n(365)===this[n(443)]&&(this[n(408)]=l),y}},s}function _typeof(e){var r=_0xe2d3;return(_typeof=r(421)==typeof Symbol&&r(325)==typeof Symbol.iterator?function(e){return typeof e}:function(e){var t=r;return e&&t(421)==typeof Symbol&&e.constructor===Symbol&&e!==Symbol[t(380)]?t(325):typeof e})(e)}function asyncGeneratorStep(e,t,r,n,a,o,i){var s=_0xe2d3;try{var u=e[o](i),c=u[s(451)]}catch(e){return void r(e)}u[s(310)]?t(c):Promise[s(359)](c).then(n,a)}function _asyncToGenerator(u){return function(){var e=this,s=arguments;return new Promise(function(t,r){var n=_0xe2d3,a=u[n(403)](e,s);function o(e){asyncGeneratorStep(a,t,r,o,i,n(365),e)}function i(e){asyncGeneratorStep(a,t,r,o,i,n(398),e)}o(void 0)})}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(e){var t=_0xe2d3;if(t(300)!=typeof Symbol&&null!=e[Symbol[t(377)]]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array[_0xe2d3(347)](e))return _arrayLikeToArray(e)}function _createForOfIteratorHelper(e,t){var r,n,a,o,i=_0xe2d3,s=i(300)!=typeof Symbol&&e[Symbol[i(377)]]||e[i(368)];if(s)return a=!(n=!0),{s:function(){s=s[i(414)](e)},n:function(){var e=i,t=s[e(365)]();return n=t[e(310)],t},e:function(e){a=!0,r=e},f:function(){var e=i;try{n||null==s[e(458)]||s[e(458)]()}finally{if(a)throw r}}};if(Array[i(347)](e)||(s=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e[i(295)])return s&&(e=s),o=0,{s:t=function(){},n:function(){return o>=e[i(295)]?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t};throw new TypeError(i(247))}function _unsupportedIterableToArray(e,t){var r,n=_0xe2d3;if(e)return n(392)==typeof e?_arrayLikeToArray(e,t):(r={}[n(410)].call(e)[n(402)](8,-1),n(467)===r&&e[n(436)]&&(r=e.constructor[n(404)]),n(371)===r||"Set"===r?Array.from(e):n(292)===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0)}function _arrayLikeToArray(e,t){var r=_0xe2d3;(null==t||t>e[r(295)])&&(t=e[r(295)]);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function _defineProperty(e,t,r){var n=_0xe2d3;return(t=_toPropertyKey(t))in e?Object[n(457)](e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){var t=_0xe2d3,e=_toPrimitive(e,"string");return t(325)==_typeof(e)?e:e+""}function _toPrimitive(e,t){var r=_0xe2d3;if(r(462)!=_typeof(e)||!e)return e;var n=e[Symbol[r(415)]];if(void 0===n)return(r(392)===t?String:Number)(e);n=n.call(e,t||r(306));if(r(462)!=_typeof(n))return n;throw new TypeError(r(348))}(()=>{for(var e=_0xe2d3,t=_0x3acb();;)try{if(962589==+parseInt(e(256))*(parseInt(e(353))/2)+-parseInt(e(336))/3+parseInt(e(267))/4+parseInt(e(454))/5+-parseInt(e(303))/6+parseInt(e(382))/7+parseInt(e(333))/8*(-parseInt(e(381))/9))break;t.push(t.shift())}catch(e){t.push(t.shift())}})();var path=require("path"),fs=require("fs"),webpack=require(_0x1c9aa6(473)),json5=require(_0x1c9aa6(262)),ResourcePlugin=require(_0x1c9aa6(428)),HtmlGeneratorPlugin=require(_0x1c9aa6(413)),ManifestGeneratorPlugin=require("./plugin/manifest-generator-plugin"),I18NPlugin=require(_0x1c9aa6(279)),CopyAscfBundlePlugin=require(_0x1c9aa6(296)),_packOptions=require(_0x1c9aa6(254)),_require=require(_0x1c9aa6(397)),clearResource=_require[_0x1c9aa6(448)],IS_PRD=_require[_0x1c9aa6(425)],PROJECT_PATH=_require[_0x1c9aa6(362)],PROJECT_CONFIG=_require[_0x1c9aa6(258)],ASCF_SRC_PATH=_require[_0x1c9aa6(434)],ASCF_BUILD_PATH=_require[_0x1c9aa6(477)],RAWFILE_DIR=_require[_0x1c9aa6(252)],WebpackTargetPlugin=require(_0x1c9aa6(339)),LoggerPlguin=require("../common/logger-plugin"),utils=require(_0x1c9aa6(468)),commonUtils=require(_0x1c9aa6(397)),removeStrictModePlugin=require(_0x1c9aa6(245)),chalk=require(_0x1c9aa6(438)),ExtConfigPlugin=require("./plugin/extConfig-plugin"),ignoreRules=(chalk[_0x1c9aa6(260)]=1,process[_0x1c9aa6(441)]=!0,generateIgnoreRule(PROJECT_CONFIG)),ZIP_PATH=path[_0x1c9aa6(331)](ASCF_SRC_PATH,".ascf",_0x1c9aa6(345)),buildProfileJson5Path=path[_0x1c9aa6(359)](PROJECT_PATH,_0x1c9aa6(335));if(!fs[_0x1c9aa6(305)](buildProfileJson5Path))throw _0x1c9aa6(337);var buildProfile=json5[_0x1c9aa6(349)](fs.readFileSync(buildProfileJson5Path)[_0x1c9aa6(410)]());if(!buildProfile[_0x1c9aa6(278)]||0===buildProfile[_0x1c9aa6(278)][_0x1c9aa6(295)])throw _0x1c9aa6(452);var BUILD_PATH=path[_0x1c9aa6(359)](PROJECT_PATH,buildProfile[_0x1c9aa6(278)][0][_0x1c9aa6(251)],RAWFILE_DIR),I18N_ENTRY=[],I18N=_0x1c9aa6(366),APP=_0x1c9aa6(426),APP_TYPE=_0x1c9aa6(430);function handleUsingComponents(e,t){var r,n=_0x1c9aa6;if(e)for(var a in e)Object[n(380)][n(323)][n(414)](e,a)&&(r=e[a].trim(),e[a]=utils[n(255)](r,t,ASCF_SRC_PATH))}function checkTabBarPath(e){var t,i,r=_0x1c9aa6,s=[r(282),r(324),r(309)],n=(null==(n=e[r(474)])?void 0:n[r(257)])||[],e=e.subPackages||e[r(342)]||[];n!==[]&&e!==[]&&(t=e[r(274)](function(e){return e[r(475)]})[r(332)](function(e){return e}),i=[],n[r(317)](function(o){var e=r;t[e(317)](function(n){var a=e;s[a(317)](function(e){var t,r=a;path[r(331)](ASCF_SRC_PATH,null!=(t=o[e])?t:"")[r(470)](path[r(331)](ASCF_SRC_PATH,n,"/"))&&i[r(423)](chalk[r(440)](r(327).concat(o[r(253)]," ")[r(394)](e,r(313))))})})}),0<i.length)&&(i[r(317)](function(e){console[r(435)](chalk.red(e))}),console.error(chalk[r(440)](r(432))),process[r(272)](1))}function readAppJson(){var r=_0x1c9aa6,e=_defineProperty({},APP,new Map),t=path[r(331)](ASCF_SRC_PATH,"app.json");if(!fs[r(305)](t))throw r(320);var n=commonUtils[r(344)](t),t=(checkTabBarPath(n),handleAppType(n),handleUsingComponents(n[r(271)],t),n.page={},n[r(341)]=[],[]);if(!n[r(243)]||n.pages.length<=0)throw r(390);putPageInfoToEntryList(n[r(243)],"",!1,n,e[APP]);var a=[r(342),r(419)][r(264)](function(e){var t=r;return Object[t(380)].hasOwnProperty[t(414)](n,e)});if(t[r(295)]){a&&delete n[a];var o,i=_createForOfIteratorHelper(n[r(342)]=t);try{for(i.s();!(o=i.n()).done;){var s=o[r(451)],u=new Map;e[s.root]=u,putPageInfoToEntryList(s[r(243)],s.root,s[r(356)],n,u)}}catch(e){i.e(e)}finally{i.f()}}else if(a){t=n[a],delete n[a];var c,l=_createForOfIteratorHelper(n[r(342)]=t);try{for(l.s();!(c=l.n())[r(310)];){var p=c[r(451)],f=new Map;e[p[r(475)]]=f,putPageInfoToEntryList(p[r(243)],p[r(475)],p[r(356)],n,f)}}catch(e){l.e(e)}finally{l.f()}}return handingCustomTabBar(n),{manifest:n,projectComponentsMap:e}}function handleAppType(e){var t,r=_0x1c9aa6;e.type=null!=(t=null!=(t=e.type)?t:e[r(290)])?t:APP_TYPE,delete e[r(290)]}function hasCustomTabBar(e){var t=_0x1c9aa6;return(e.tabBar||{}).custom&&fs[t(305)](path[t(359)](ASCF_SRC_PATH,t(383)))}function _0xe2d3(e,t){var r=_0x3acb();return(_0xe2d3=function(e,t){return r[e-=241]})(e,t)}function handingCustomTabBar(e){var t=_0x1c9aa6;if(hasCustomTabBar(e)){var r,n=_createForOfIteratorHelper(e[t(474)][t(257)]);try{for(n.s();!(r=n.n())[t(310)];){var a=r[t(451)];if(!e.page[a[t(309)]])throw t(273)+"'".concat(a.pagePath,t(471));e[t(401)][a[t(309)]][t(280)]=!0}}catch(e){n.e(e)}finally{n.f()}}}function getGlobalComponentsInfo(){var t=_0x1c9aa6,r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=[];return Object[t(297)](r)[t(317)](function(e){n[t(423)]({key:e,path:r[e]})}),n}function putPageInfoToEntryList(e,t,r,n,a){var o=_0x1c9aa6;if(e)for(var i in e)if(Object[o(380)][o(323)][o(414)](e,i)){var i=path[o(331)](ASCF_SRC_PATH,t,e[i]),s=path.relative(ASCF_SRC_PATH,i);if(!_packOptions.isIgnoreFile(s,ignoreRules)){var s=s[o(316)](/\\/g,"/"),i="".concat(i,".json"),u=void 0;try{u=fs[o(305)](i)?JSON.parse(fs[o(384)](i)[o(410)]()):{}}catch(e){throw o(447)[o(394)](i," contains error, please check it.")}handleUsingComponents(u.usingComponents,i),r&&n[o(341)][o(423)](s),n[o(401)][s]=u,t||getUsingComponents(n,"","",a,o(401)),getUsingComponents(u,i,s,a,o(401))}}}function _0x3acb(){var e=["ERROR: Can not resolve tabBar list item : ","map","suspendedStart","create","route-mapping.json","modules","./plugin/i18n-transform-plugin","useCustomTabBar","displayName","iconPath","named","app.css","_invoke","tryEntries","isDirectory",".pack.js","widgetPathsList","appType","asyncIterator","Arguments","__await","reverse","length","./plugin/copy-bundle-plugin","keys","values","isGeneratorFunction","undefined","readdir","catchLoc","1006344dWvUIB","mark","existsSync","default","afterLoc","miniprogram_npm","pagePath","done","dispatchException","tryLoc"," cannot be in the subpackage directory","sent","finallyLoc","replace","forEach","pop","reset","ERROR: Can not resolve file : app.json","env","Generator","hasOwnProperty","selectedIconPath","symbol","completion","ERROR: tabBar ","@babel/plugin-transform-modules-commonjs","widgets","getPrototypeOf","join","filter","7119968bOKuQB","[object Generator]","build-profile.json5","4591767oivhom","ERROR: build-profile.json5 file not found","GeneratorFunction","./plugin/webpack-target/index","node_modules","independentList","subpackages","customTabBar","readJsonFile","dist","versionNum","isArray","@@toPrimitive must return a primitive value.","parse","setPrototypeOf","moduleIds",".ux","24474KwcOxj","component","@babel/preset-env","independent","suspendedYield","stop","resolve","components","projectComponentsMap","PROJECT_PATH","mergeMap","compJsonPath","next","i18n","lstatSync","@@iterator","get","WARNING:Route information in the manifest.json file is incomplete:\n Page '","Map","_sent","defFreezeProperty","complete","manifest","custom-tab-bar/index.pack.js","iterator","test","delegate","prototype","9mVyiKB","4026029RrVGra","custom-tab-bar/index.hxml","readFileSync","abrupt",".js","./hjs-loader","parseIgnoreRules","normal","ERROR: app.json doesn't contain any page.","app.css.js","string","fixEntryPath","concat","./trustlist-hxml-verify-loader.js","routeMapping","../common/utils","throw","executing","charAt","page","slice","apply","name","set","' is used.","__proto__","arg","LoaderOptionsPlugin","toString","illegal catch attempt","getAbsPath","./plugin/html-generator-plugin","call","toPrimitive","@@toStringTag",".json",".hxml","subPackages","type","function","then","push","The iterator does not provide a '","IS_PRD","app","AsyncIterator","./plugin/resource-plugin","custom-tab-bar/index","webapp"," is not iterable","ERROR: modify app.json tabBar and recompile it","completed","ASCF_SRC_PATH","error","constructor","toLowerCase","../ascf-compiler/chalk/bundle.cjs","import-scripts","red","noDeprecation","path","method","[name]","./hxml-loader","ERROR: Failed to find the file: ","ERROR: ","clearResource","relative","continue","value","ERROR: build-profile.json5 file modules is null","babel-loader","1799515bBakzu","warn","global","defineProperty","return","WARNING: The build directory is not cleared. Use the -c parameter.","@babel/plugin-proposal-class-properties","prev","object","fa-compiler/loader.js","loadBabelModule","resultName","componentList","Object","./common/utils","router","startsWith","', please check tabBar configuration.","some","webpack","tabBar","root","iterator result is not an object","ASCF_BUILD_PATH","filePath","Generator is already running","pages","development","../common/remove-strict-mode-plugin","none","Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.","yes","wrap","async","srcPath","RAWFILE_DIR","text","./common/packoptions-utils","getProjectAbsPath","85KKzacP","list","PROJECT_CONFIG","awrap","level","yellow","json5","./path-process-loader.js","find","production","javascript/auto","6302812aeZlAs","break","app.js","end","usingComponents","exit"];return(_0x3acb=function(){return e})()}function getUsingComponents(o,i,e,s,t){var u=_0x1c9aa6,c=5<arguments[u(295)]&&void 0!==arguments[5]?arguments[5]:[],l=[],p=o[u(404)];if(o[u(271)])for(var f in o[u(271)])(()=>{var t=u;if(Object.prototype[t(323)][t(414)](o[t(271)],f)){var r=o.usingComponents[f],e=utils[t(412)](r,i,ASCF_SRC_PATH,".json"),n=e[t(241)],e=e[t(393)],a=path[t(449)](ASCF_SRC_PATH,n)[t(316)](/\\/g,"/")[t(316)](/\.json/,""),r=e||a;if(o[t(271)][f]=r,!p&&i===n)return p=f;if(c[t(264)](function(e){return e===n}))return;l[t(472)](function(e){return e[t(442)]===r})||l[t(423)]({path:r,key:f,compJsonPath:n});e=JSON[t(349)](fs[t(384)](n)[t(410)]());handleUsingComponents(e[t(271)],n),getUsingComponents(e,n,r,s,t(354),c[t(394)]([n]))}})();e&&!s[u(369)](e)&&(t={componentList:l,type:t,componentName:p,compJsonPath:i,path:e},s[u(405)](e,t))}function getI18NEntry(u){var c=_0x1c9aa6;fs[c(301)](u,function(e,t){var r=c;if(e)throw e;var n,a=_createForOfIteratorHelper(t);try{for(a.s();!(n=a.n())[r(310)];){var o,i=n[r(451)],s=path[r(331)](u,i)[r(316)](/\\/g,"/");fs[r(367)](s)[r(287)]()&&!/(node_modules)|(\.ascf)/[r(378)](i)&&((o=s.split("/"))[o[r(295)]-1][r(437)]()===I18N&&I18N_ENTRY.push(s),getI18NEntry(s))}}catch(e){a.e(e)}finally{a.f()}})}function generateEntry(e){var n=_0x1c9aa6,a={},t=e[n(361)],r=[],o=(Object[n(297)](t)[n(294)]().forEach(function(e){r[n(423)](t[e])}),a[n(269)]=path[n(359)](ASCF_SRC_PATH,"app.json?package=app")[n(316)](/\\/g,"/"),utils[n(363)](r)),i=path[n(359)](ASCF_SRC_PATH,n(284));if(fs[n(305)](i)&&(a[n(391)]=path.resolve(ASCF_SRC_PATH,"app.css")),hasCustomTabBar(e.manifest)){var s,i=path.resolve(ASCF_SRC_PATH,n(383)),u=i[n(316)](/\.hxml$/,n(417)),c=(a[n(376)]=""[n(394)](i,"?type=component"),_createForOfIteratorHelper(e[n(375)][n(474)][n(257)]));try{for(c.s();!(s=c.n())[n(310)];){var l=s[n(451)];o.get(l.pagePath)&&o.get(l[n(309)])[n(466)].push({path:n(429),key:n(343),compJsonPath:u})}}catch(e){c.e(e)}finally{c.f()}i={componentList:[],type:"component",compJsonPath:u};t[n(426)].set(n(429),i)}return o[n(317)](function(e,t){var r=n;return a[""[r(394)](t,r(288))]=e[r(364)][r(316)](/\.json$/,r(418))}),utils[n(373)](e,n(360),o),generateWidgetsEntry(a,e),a}function generateWidgetsEntry(a,r){var o,n,i=_0x1c9aa6,e=r[i(375)];r[i(375)]&&e[i(469)]&&((o=e[i(469)][i(243)])&&Object.keys(o)[i(317)](function(e){var t=i,r=o[e],n=r.component,r=(r||console[t(455)](chalk[t(261)](t(370)[t(394)](e,"' does not have the component attribute configured. ")+"By default, '"[t(394)](n,t(406)))),path[t(331)](ASCF_SRC_PATH,e,n)),e="".concat(path.join(e,n),t(386));if(fs.existsSync("".concat(r,t(352))))a[e]="".concat(r,t(352));else if(!fs[t(305)](""[t(394)](r,t(418))))throw t(446)[t(394)](r,t(352))}),e=e[i(329)])&&0<e[i(295)]&&(r[i(289)]=[],n="",e[i(317)](function(e){var t=i;n=e[t(442)],r[t(289)][t(423)](path[t(331)](ASCF_SRC_PATH,n))}))}function generateModules(){var e=_0x1c9aa6,t={targets:{node:8}};return{rules:[][e(394)](_toConsumableArray(utils.createCSSRule()),[{test:/\.js$/,use:[{loader:utils[e(464)](e(453)),options:{presets:[[utils.loadBabelModule(e(355)),t]],plugins:[utils.loadBabelModule(e(328)),utils[e(464)](e(460))]}},{loader:path[e(359)](__dirname,"./trustlist-js-verify-loader.js")}],exclude:/node_modules/},{test:/\.(hjs)$/,use:[{loader:path[e(359)](__dirname,e(387))},{loader:utils[e(464)]("babel-loader"),options:{presets:[[utils[e(464)](e(355)),t]],plugins:[utils[e(464)](e(328)),removeStrictModePlugin]}},{loader:path.resolve(__dirname,e(263))},{loader:path.resolve(__dirname,"./trustlist-js-verify-loader.js")}],exclude:/node_modules/},{test:/\.hxml$/,type:"javascript/auto",use:[{loader:utils[e(464)](e(453)),options:{presets:[[utils[e(464)](e(355)),t]],compact:!1}},{loader:path[e(359)](__dirname,e(445))},{loader:path[e(359)](__dirname,e(395))}]},{test:/app\.json$/,type:e(266),use:[{loader:path[e(359)](__dirname,"./appjson-loader")}]},{test:/\.(ux)(\?[^?]+)?$/,use:[{loader:path.resolve(__dirname,e(463))}]}])}}function generateIgnoreRule(e){var t;return(t=e?_packOptions[_0x1c9aa6(388)](e):t)||{}}function generateRouteMapping(e){var t=_0x1c9aa6,r=e.manifest[t(396)]||{},n=path.join(ASCF_SRC_PATH,t(277));if(fs.existsSync(n)){var a=JSON.parse(fs[t(384)](n)[t(410)]());if(a)for(var o in a)Object[t(380)][t(323)][t(414)](a,o)&&(r[o]=a[o])}0<Object[t(297)](r).length&&(e[t(375)][t(396)]=r)}function generatePlugins(e){var t=_0x1c9aa6;return[new LoggerPlguin,new ResourcePlugin({src:ASCF_SRC_PATH,build:BUILD_PATH,ignoreRules:ignoreRules,manifest:e[t(375)]}),new ManifestGeneratorPlugin({manifest:e[t(375)],build:BUILD_PATH}),new HtmlGeneratorPlugin({manifestData:e[t(375)],pagesInfo:e[t(375)].page,srcPath:ASCF_SRC_PATH,buildPath:BUILD_PATH,componentSet:e.components}),new webpack[t(409)]({options:{srcPath:ASCF_SRC_PATH,manifest:e[t(375)],components:e[t(360)],projectComponentsMap:e.projectComponentsMap,versionNum:e[t(346)],widgetPathsList:e[t(289)],widgetsDependList:e.widgetPathsList,projectCfgData:PROJECT_CONFIG,globalComponents:getGlobalComponentsInfo(e[t(375)][t(271)])}}),new I18NPlugin({srcPath:ASCF_SRC_PATH,buildPath:BUILD_PATH,entries:I18N_ENTRY}),new WebpackTargetPlugin,new CopyAscfBundlePlugin({projectPath:ASCF_SRC_PATH,entryDir:BUILD_PATH,bundleDir:RAWFILE_DIR}),new ExtConfigPlugin({projectPath:ASCF_SRC_PATH,entryDir:BUILD_PATH})]}function getResolve(){var e=_0x1c9aa6;return{modules:[path[e(331)](ASCF_SRC_PATH,e(308)),path[e(331)](ASCF_SRC_PATH,e(340)),path[e(331)](__dirname,"..","..",e(340)),path.join(__dirname,"..","..","..","..",e(340))]}}function checkBuildResources(){var e=_0x1c9aa6;(fs[e(305)](ZIP_PATH)||fs[e(305)](BUILD_PATH)||fs.existsSync(ASCF_BUILD_PATH))&&(console[e(455)](chalk.yellow(e(459))),process.exit(1))}function generateConfig(){return _generateConfig[_0x1c9aa6(403)](this,arguments)}function _generateConfig(){var e=_0x1c9aa6;return(_generateConfig=_asyncToGenerator(_regeneratorRuntime()[e(304)](function e(){var r,n;return _regeneratorRuntime().wrap(function(e){for(var t=_0xe2d3;;)switch(e.prev=e[t(365)]){case 0:if(process[t(321)][t(448)]===t(248))return e[t(365)]=3,clearResource([ZIP_PATH,BUILD_PATH,ASCF_BUILD_PATH]);e[t(365)]=3;break;case 3:return checkBuildResources(),getI18NEntry(ASCF_SRC_PATH),generateRouteMapping(r=readAppJson()),n=generateEntry(r),n={mode:t(IS_PRD?265:244),devtool:!IS_PRD&&"inline-cheap-source-map",context:ASCF_SRC_PATH,entry:n,output:{path:BUILD_PATH,filename:t(444),publicPath:"/",globalObject:t(456),enabledChunkLoadingTypes:[t(439)]},target:"web",resolve:getResolve(),module:generateModules(),plugins:generatePlugins(r),node:{global:!1},stats:t(246),optimization:{noEmitOnErrors:!1,splitChunks:{chunks:t(250),cacheGroups:{default:!1}}}},IS_PRD||(n.optimization[t(351)]=t(283)),e[t(385)](t(458),n);case 11:case t(270):return e[t(358)]()}},e)})))[e(403)](this,arguments)}module.exports=generateConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3ed183=_0x432d;function _typeof(e){var t=_0x432d;return(_typeof="function"==typeof Symbol&&t(437)==typeof Symbol[t(594)]?function(e){return typeof e}:function(e){var o=t;return e&&o(510)==typeof Symbol&&e[o(517)]===Symbol&&e!==Symbol[o(406)]?"symbol":typeof e})(e)}function _classCallCheck(e,o){if(!(e instanceof o))throw new TypeError("Cannot call a class as a function")}function _0x1eab(){var e=["showTabBarRedDot","startLocationUpdate","createARCameraContext","concat","tap","createBLEConnection","onPlay","requestHwPayment","stopRecord","offAudioInterruptionEnd","Headline","createRtcRoomContext","hideToast","closeBLEConnection","submitresource","setURLQuery","configBasenameArray","597205bIFkvZ","playVoice","deleteresource","onScrollToLower","qa:","createAnimation","checkSession","getAvailableAudioSources","vibrate","iconPath",".wxss","getTemplateLibraryById","rsa","list","onTransition","showAuthGuide","iterator","onLoad","setTopBarText","44445933QseoJs","compressImage","value","offMemoryWarning","minProgramLanguage","onBlur","shareFile","block-size","block-color","navigateToBookshelf","project.swan.json","stopBackgroundAudio","512300XJpJNL","onEnded","hideHomeButton","watchShake","startWifi","offWindowResize","insertCalendar","default","polygons","onControlTap","prototype","onError","optionsSelect","insertBookshelf","getRunScene",".ttss","string","color","@@toPrimitive must return a primitive value.","setEnableDebug","getServerTime","object","pauseVoice","onBackgroundAudioPlay","isLoginSync","offSocketError","onRenderStart","getMenuButtonBoundingClientRect","getSelectedTextRange","showModal","onStop","openReplyEditor",".sjs","wxs","onTimeUpdate","3448216NoGcxD","nextTick","onChanging","getRealtimeLogManager","tablebarItems","setLocatedCity","symbol","enumerable",".ttml","onFirstAppear","Applets","length","onBackgroundAudioPause","arrayBufferToBase64","tablebarListItems","_appletType","offSocketMessage","offLocationChange","onLocationChange",".wxml","saveImageToPhotosAlbum","subscribeService","stopVoice","Baidu","onConfirm","setInnerAudioOption","Alipay","mute","directivesPrefix","project.config.json","addTemplate","stopLocationUpdate","onToBindWithTagEvents","onAnimationEnd","compressVideo","onPause","projectFileSuffix","setNavigationBar","touchEnd","onChange","onAppear","getUserInfo","createInnerAudioContext",".wxs","datePicker","getAccountInfoSync","offAudioInterruptionBegin","getAppIdSync","commonOnEvents","onInput","onScale","onScrollToUpper","saveFileToDisk","tagEventToTransform","onChangeEnd","createAnimationVideo","4640355oFjCtn","getSystemRiskInfo","__esModule","onLocatedComplete","selectedIconPath","onReset","addSupportTypes","enablePullDownRefresh","windowItems","configurable","onWindowResize","pauseBackgroundAudio","configBasename","weChat","call","playBackgroundAudio","SDKVersion","setWifiList","navigationBarBackgroundColor","bindchange","offSocketClose","bindanimationfinish","hideTabBarRedDot","function","offSocketOpen","setPageInfo","onAudioInterruptionBegin","onFocus","defineProperty","createAudioContext","constructor","import-sjs",".css","getClipboardData","3850527JOCFpU","getDirectivesReg","resetConfig","onBackgroundAudioStop","startRecord","onCalloutTap","quickapp","tt:","setMetaDescription","invalidApis","onShareAppMessage","getRecorderManager","interfacesForTransform","8kxdycM","getEnvInfoSync",".qxml","navigateBackSmartProgram","touchMove","setDocumentTitle","onRegionChange","2661490HWLdAG","onScroll","touchCancel","specialTag","openCommunityEditor","submitsitemap","toPrimitive","getTemplateList","createOffscreenCanvas","deletesitemap","66qkslwd","startLocationUpdateBackground","showNavigationBarLoading","navigationBarTitleText","queryBookshelf","chooseAlipayContact","navigateToSmartProgram","onAnimationStart","onDisappear","onAudioInterruptionEnd"];return(_0x1eab=function(){return e})()}function _defineProperties(e,o){for(var t=_0x432d,n=0;n<o[t(442)];n++){var d=o[n];d[t(438)]=d[t(438)]||!1,d[t(496)]=!0,t(386)in d&&(d.writable=!0),Object[t(515)](e,_toPropertyKey(d.key),d)}}function _createClass(e,o,t){var n=_0x432d;return o&&_defineProperties(e[n(406)],o),t&&_defineProperties(e,t),Object[n(515)](e,n(406),{writable:!1}),e}function _0x432d(e,o){var t=_0x1eab();return(_0x432d=function(e,o){return t[e-=386]})(e,o)}function _toPropertyKey(e){var o=_0x432d,e=_toPrimitive(e,o(412));return o(437)==_typeof(e)?e:e+""}function _toPrimitive(e,o){var t=_0x432d;if(t(417)!=_typeof(e)||!e)return e;var n=e[Symbol[t(547)]];if(void 0===n)return(t(412)===o?String:Number)(e);n=n[t(501)](e,o||t(403));if("object"!=_typeof(n))return n;throw new TypeError(t(414))}(()=>{for(var e=_0x432d,o=_0x1eab();;)try{if(807401==-parseInt(e(396))+-parseInt(e(541))/2+-parseInt(e(521))/3+parseInt(e(431))/4+-parseInt(e(487))/5+-parseInt(e(551))/6*(parseInt(e(578))/7)+-parseInt(e(534))/8*(-parseInt(e(597))/9))break;o.push(o.shift())}catch(e){o.push(o.shift())}})(),Object[_0x3ed183(515)](exports,_0x3ed183(489),{value:!0}),exports.interfacesForTransform=exports[_0x3ed183(463)]=exports[_0x3ed183(484)]=exports[_0x3ed183(479)]=exports[_0x3ed183(441)]=exports[_0x3ed183(445)]=exports[_0x3ed183(435)]=exports[_0x3ed183(495)]=exports[_0x3ed183(577)]=exports[_0x3ed183(544)]=exports[_0x3ed183(459)]=exports[_0x3ed183(467)]=exports[_0x3ed183(388)]=exports[_0x3ed183(530)]=void 0,exports[_0x3ed183(530)]=["base64ToArrayBuffer",_0x3ed183(444),_0x3ed183(560),_0x3ed183(513),"offAudioInterruptionEnd",_0x3ed183(477),_0x3ed183(415),_0x3ed183(573),_0x3ed183(553),"hideNavigationBarLoading","setBackgroundTextStyle","setBackgroundColor",_0x3ed183(561),"setTabBarStyle","setTabBarItem",_0x3ed183(509),_0x3ed183(583),_0x3ed183(432),_0x3ed183(423),_0x3ed183(598),_0x3ed183(465),_0x3ed183(453),_0x3ed183(456),_0x3ed183(579),_0x3ed183(418),_0x3ed183(585),_0x3ed183(473),_0x3ed183(516),_0x3ed183(395),"seekBackgroundAudio",_0x3ed183(502),_0x3ed183(498),_0x3ed183(524),_0x3ed183(419),_0x3ed183(443),"getBackgroundAudioPlayerState","getBackgroundAudioManager",_0x3ed183(569),_0x3ed183(525),_0x3ed183(532),_0x3ed183(462),_0x3ed183(552),_0x3ed183(562),_0x3ed183(449),_0x3ed183(448),"getClipboardData",_0x3ed183(504),_0x3ed183(400),"stopWifi",_0x3ed183(483),_0x3ed183(549),"onMemoryWarning",_0x3ed183(387),_0x3ed183(434),_0x3ed183(398),_0x3ed183(596),_0x3ed183(497),_0x3ed183(401),"chooseMessageFile",_0x3ed183(584),_0x3ed183(472),_0x3ed183(568),_0x3ed183(476),_0x3ed183(478),_0x3ed183(410),_0x3ed183(503),"hideBackHome",_0x3ed183(468),_0x3ed183(556),"chooseCity",_0x3ed183(490),_0x3ed183(436),"regionPicker",_0x3ed183(475),"calculateRoute",_0x3ed183(408),"multiLevelSelect","setCanPullDown",_0x3ed183(507),_0x3ed183(447),_0x3ed183(511),_0x3ed183(421),_0x3ed183(458),"offAudioInterruptionBegin",_0x3ed183(570),_0x3ed183(513),_0x3ed183(560),_0x3ed183(586),_0x3ed183(399),_0x3ed183(416),_0x3ed183(593),_0x3ed183(590),"getURLQuery",_0x3ed183(576),"onURLQueryChange","ai",_0x3ed183(563),_0x3ed183(486),"createLivePlayerContext",_0x3ed183(572),_0x3ed183(535),"getunionid",_0x3ed183(420),"requestPolymerPayment",_0x3ed183(512),_0x3ed183(529),"setMetaKeywords",_0x3ed183(539),"loadSubPackage","reportAnalytics",_0x3ed183(488),_0x3ed183(452),_0x3ed183(409),"deleteBookshelf",_0x3ed183(555),"updateBookshelfReadTime",_0x3ed183(393),"getSwanId",_0x3ed183(531),"openShare",_0x3ed183(390),_0x3ed183(557),_0x3ed183(537),_0x3ed183(545),"closeCommunityEditor",_0x3ed183(427),"closeReplyEditor",_0x3ed183(575),_0x3ed183(580),_0x3ed183(546),_0x3ed183(550),"getTemplateLibraryList",_0x3ed183(589),_0x3ed183(461),_0x3ed183(548),"deleteTemplate","sendTemplateMessage"],exports[_0x3ed183(388)]={qa:_0x3ed183(527),wx:_0x3ed183(500),swan:_0x3ed183(454),my:_0x3ed183(457),tt:_0x3ed183(571)},exports[_0x3ed183(467)]={qa:{hxml:_0x3ed183(536),css:_0x3ed183(519),hjs:".qjs"},wx:{hxml:_0x3ed183(450),css:_0x3ed183(588),hjs:_0x3ed183(474)},swan:{hxml:".swan",css:_0x3ed183(519),hjs:".sjs"},my:{hxml:".axml",css:".acss",hjs:_0x3ed183(428)},tt:{hxml:_0x3ed183(439),css:_0x3ed183(411),hjs:".sjs"}},exports[_0x3ed183(459)]={qa:_0x3ed183(582),wx:"wx:",swan:"s-",my:"a:",tt:_0x3ed183(528)},exports[_0x3ed183(544)]={wx:_0x3ed183(429),swan:_0x3ed183(518),my:_0x3ed183(518),tt:null},exports[_0x3ed183(577)]=[_0x3ed183(460),_0x3ed183(394)];var configBasename={qa:"quickapp.config.json",wx:_0x3ed183(460),swan:_0x3ed183(394),my:null,tt:_0x3ed183(460)},addSupportTypes=(exports[_0x3ed183(495)]={titleBarColor:_0x3ed183(505),pullRefresh:_0x3ed183(494),defaultTitle:_0x3ed183(554)},exports[_0x3ed183(435)]={textColor:_0x3ed183(413),items:_0x3ed183(591)},exports[_0x3ed183(445)]={name:"text",icon:_0x3ed183(587),activeIcon:_0x3ed183(491)},{wx:null,swan:null,my:null,tt:["wx"]}),Applets=(()=>{var t=_0x3ed183;function n(){_classCallCheck(this,n)}return _createClass(n,null,[{key:"appletType",get:function(){return n[_0x432d(446)]},set:function(e){var o=_0x432d;n[o(523)](e),n[o(446)]=e}},{key:t(523),value:function(e){var o=t;n[o(499)]=configBasename[e],n[o(493)]=addSupportTypes[e]}},{key:t(522),value:function(e){var o=t;return new RegExp("^"[o(564)](exports[o(459)][e],".*"))}}])})();exports.Applets=Applets,exports.commonOnEvents=["touchStart",_0x3ed183(538),_0x3ed183(469),_0x3ed183(543),_0x3ed183(565),"longTap"],exports[_0x3ed183(484)]={swiper:{onAnimationEnd:_0x3ed183(508)},video:{onLoading:"bindwaiting"},checkbox:{onChange:_0x3ed183(506)},slider:{"handle-size":_0x3ed183(391),handleSize:_0x3ed183(391),"handle-color":_0x3ed183(392),handleColor:_0x3ed183(392)},map:{polygon:_0x3ed183(404)}},exports[_0x3ed183(463)]={view:["onTransitionEnd","onAnimationIteration",_0x3ed183(558),_0x3ed183(464),_0x3ed183(471),_0x3ed183(559),_0x3ed183(440)],"movable-view":[_0x3ed183(470),_0x3ed183(481),_0x3ed183(485)],"scroll-view":[_0x3ed183(482),_0x3ed183(581),_0x3ed183(542)],swiper:[_0x3ed183(470),_0x3ed183(592)],"checkbox-group":[_0x3ed183(470)],form:["onSubmit",_0x3ed183(492)],input:[_0x3ed183(480),_0x3ed183(514),_0x3ed183(389),_0x3ed183(455)],picker:[_0x3ed183(470)],"picker-view":[_0x3ed183(470)],"radio-group":[_0x3ed183(470)],slider:[_0x3ed183(470),_0x3ed183(433)],switch:[_0x3ed183(470)],textarea:[_0x3ed183(480),_0x3ed183(514),_0x3ed183(389),_0x3ed183(455)],image:[_0x3ed183(595),_0x3ed183(407)],video:[_0x3ed183(567),_0x3ed183(466),_0x3ed183(397),_0x3ed183(430),_0x3ed183(407),"onFullScreenChange","onUserAction",_0x3ed183(426),_0x3ed183(422)],map:["onMarkerTap",_0x3ed183(526),_0x3ed183(405),_0x3ed183(540),"onPanelTap"]},exports[_0x3ed183(533)]={confirm:_0x3ed183(425),saveImage:_0x3ed183(451),connectBLEDevice:_0x3ed183(566),disconnectBLEDevice:_0x3ed183(574),scan:"scanCode",setClipboard:"setClipboardData",getClipboard:_0x3ed183(520),getSelectedTextRange:"hideKeyboard",hideKeyboard:_0x3ed183(424),compressVideo:_0x3ed183(465),saveFileToDisk:"saveFile",addPhoneRepeatCalendar:_0x3ed183(402),stopAccelerometer:"stopAccelerometer"};
|
|
1
|
+
function _0x13c7(){var c=["onRenderStart","touchEnd","setBackgroundColor","createBLEConnection","saveImageToPhotosAlbum","insertCalendar","tt:","navigateBackSmartProgram","wxs","onLoad","23108436amWlfj","setCanPullDown","tagEventToTransform","createAnimation","onAnimationStart","quickapp.config.json","getSelectedTextRange",".ttml","bindchange","invalidApis","onScrollToUpper","setTabBarItem","length","onTransition","stopBackgroundAudio","configBasename","directivesPrefix","117ecktpm","configBasenameArray","openReplyEditor","createInnerAudioContext","6856892EzeHfr","openShare","navigateToBookshelf","navigationBarTitleText",".css","setBackgroundTextStyle","onFullScreenChange","onAnimationEnd","stopLocationUpdate","interfacesForTransform","offAudioInterruptionEnd","onPanelTap","deleteresource","deleteTemplate","submitresource","onRegionChange","setTabBarStyle",".swan","arrayBufferToBase64","onError","pauseBackgroundAudio","isLoginSync","commonOnEvents","onLocatedComplete","getRecorderManager","onScale","deletesitemap","hideToast","offSocketClose","onControlTap","selectedIconPath","setInnerAudioOption","windowItems","saveFile",".wxs","rsa","loadSubPackage","playBackgroundAudio","closeCommunityEditor","qa:","getSwanId","bindwaiting",".wxml","onAudioInterruptionBegin","onTransitionEnd","wx:","hideKeyboard","offWindowResize","vibrate","compressImage","prototype","stopVoice","getURLQuery","setTopBarText","call","startWifi","optionsSelect","minProgramLanguage","list","block-size","stopAccelerometer","bindanimationfinish","onConfirm","createAudioContext",".axml","quickapp","offSocketMessage","project.config.json","onScrollToLower","onURLQueryChange","onInput","concat","_appletType","getClipboardData","configurable","setNavigationBar","onToBindWithTagEvents","getDirectivesReg","17660vqpmrh","stopWifi","Applets","closeBLEConnection","deleteBookshelf","navigationBarBackgroundColor","getAccountInfoSync","navigateToSmartProgram",".qxml","getAvailableAudioSources","Alipay","Headline","onTimeUpdate","getRealtimeLogManager","onChanging","requestPolymerPayment","createRtcRoomContext","@@toPrimitive must return a primitive value.","setMetaKeywords","getUserInfo","shareFile","closeReplyEditor","onAudioInterruptionEnd","showNavigationBarLoading","onBlur","touchStart","3TNfOSL","stopRecord","offSocketError",".qjs","saveFileToDisk","onFirstAppear","value","constructor","404214DMBcXl","getMenuButtonBoundingClientRect","__esModule","mute","chooseCity","offLocationChange","watchShake","258VwyPPa","subscribeService","createARCameraContext","275VTOclr","720904YpEunT","setEnableDebug","onAnimationIteration","onEnded","openCommunityEditor","import-sjs","setDocumentTitle","iconPath","weChat","polygons","getunionid","string","onBackgroundAudioPause","pauseVoice","onCalloutTap","startLocationUpdateBackground","setClipboardData","enumerable","onSubmit","offAudioInterruptionBegin","specialTag","onChange","startRecord","projectFileSuffix","compressVideo","toPrimitive","onFocus","block-color","createOffscreenCanvas","getSystemRiskInfo","appletType","resetConfig","color","longTap","hideHomeButton","onPause","setURLQuery",".wxss","tablebarListItems","getTemplateLibraryList","object","getTemplateList","1284bndZAl","iterator","defineProperty",".sjs","submitsitemap","onAppear","124180dmLcRw","setLocatedCity","requestHwPayment","function","onLocationChange","onChangeEnd","text","offSocketOpen","onDisappear","multiLevelSelect","getEnvInfoSync","createAnimationVideo","10443KUMAsC","setMetaDescription","checkSession","symbol","showModal",".ttss"];return(_0x13c7=function(){return c})()}var _0x6740cc=_0x2095;function _typeof(c){var o=_0x2095;return(_typeof=o(633)==typeof Symbol&&"symbol"==typeof Symbol[o(625)]?function(c){return typeof c}:function(c){var e=o;return c&&e(633)==typeof Symbol&&c[e(570)]===Symbol&&c!==Symbol[e(509)]?e(645):typeof c})(c)}function _classCallCheck(c,e){if(!(c instanceof e))throw new TypeError("Cannot call a class as a function")}function _0x2095(c,e){var o=_0x13c7();return(_0x2095=function(c,e){return o[c-=483]})(c,e)}function _defineProperties(c,e){for(var o=_0x2095,t=0;t<e[o(670)];t++){var n=e[t];n[o(599)]=n[o(599)]||!1,n[o(533)]=!0,o(569)in n&&(n.writable=!0),Object.defineProperty(c,_toPropertyKey(n.key),n)}}function _createClass(c,e,o){var t=_0x2095;return e&&_defineProperties(c.prototype,e),o&&_defineProperties(c,o),Object[t(626)](c,t(509),{writable:!1}),c}function _toPropertyKey(c){var e=_0x2095,c=_toPrimitive(c,e(593));return e(645)==_typeof(c)?c:c+""}function _toPrimitive(c,e){var o=_0x2095;if(o(622)!=_typeof(c)||!c)return c;var t=c[Symbol[o(607)]];if(void 0===t)return(o(593)===e?String:Number)(c);t=t[o(513)](c,e||"default");if(o(622)!=_typeof(t))return t;throw new TypeError(o(554))}(()=>{for(var c=_0x2095,e=_0x13c7();;)try{if(738040==-parseInt(c(563))*(-parseInt(c(571))/2)+parseInt(c(642))/3*(-parseInt(c(624))/4)+-parseInt(c(630))/5*(-parseInt(c(578))/6)+parseInt(c(679))/7+-parseInt(c(582))/8*(-parseInt(c(675))/9)+parseInt(c(537))/10*(-parseInt(c(581))/11)+-parseInt(c(658))/12)break;e.push(e.shift())}catch(c){e.push(e.shift())}})(),Object.defineProperty(exports,_0x6740cc(573),{value:!0}),exports[_0x6740cc(688)]=exports[_0x6740cc(535)]=exports[_0x6740cc(660)]=exports[_0x6740cc(701)]=exports[_0x6740cc(539)]=exports.tablebarListItems=exports.tablebarItems=exports[_0x6740cc(491)]=exports[_0x6740cc(676)]=exports[_0x6740cc(602)]=exports[_0x6740cc(674)]=exports[_0x6740cc(605)]=exports[_0x6740cc(516)]=exports.invalidApis=void 0,exports[_0x6740cc(667)]=["base64ToArrayBuffer",_0x6740cc(697),_0x6740cc(559),_0x6740cc(502),_0x6740cc(689),_0x6740cc(601),_0x6740cc(583),_0x6740cc(486),_0x6740cc(560),"hideNavigationBarLoading",_0x6740cc(684),_0x6740cc(650),"showTabBarRedDot",_0x6740cc(695),_0x6740cc(669),"hideTabBarRedDot",_0x6740cc(661),"nextTick",_0x6740cc(572),_0x6740cc(508),_0x6740cc(606),_0x6740cc(510),_0x6740cc(490),"playVoice",_0x6740cc(595),_0x6740cc(546),_0x6740cc(678),_0x6740cc(522),_0x6740cc(672),"seekBackgroundAudio",_0x6740cc(496),_0x6740cc(699),"onBackgroundAudioStop","onBackgroundAudioPlay",_0x6740cc(594),"getBackgroundAudioPlayerState","getBackgroundAudioManager",_0x6740cc(564),_0x6740cc(604),_0x6740cc(483),_0x6740cc(687),_0x6740cc(597),"startLocationUpdate",_0x6740cc(634),_0x6740cc(576),"getClipboardData","setWifiList",_0x6740cc(514),_0x6740cc(538),_0x6740cc(567),_0x6740cc(610),"onMemoryWarning","offMemoryWarning",_0x6740cc(550),_0x6740cc(616),_0x6740cc(512),"onWindowResize",_0x6740cc(506),"chooseMessageFile",_0x6740cc(644),_0x6740cc(556),_0x6740cc(632),_0x6740cc(543),"getAppIdSync","getRunScene","SDKVersion","hideBackHome",_0x6740cc(534),"chooseAlipayContact",_0x6740cc(575),_0x6740cc(702),_0x6740cc(631),"regionPicker","datePicker","calculateRoute",_0x6740cc(515),_0x6740cc(639),_0x6740cc(659),_0x6740cc(487),_0x6740cc(525),_0x6740cc(637),_0x6740cc(565),_0x6740cc(574),"offAudioInterruptionBegin",_0x6740cc(689),_0x6740cc(502),_0x6740cc(559),_0x6740cc(507),_0x6740cc(577),"getServerTime","showAuthGuide",_0x6740cc(494),_0x6740cc(511),_0x6740cc(618),_0x6740cc(528),"ai",_0x6740cc(580),_0x6740cc(641),"createLivePlayerContext",_0x6740cc(553),_0x6740cc(640),_0x6740cc(592),_0x6740cc(700),_0x6740cc(552),"setPageInfo",_0x6740cc(643),_0x6740cc(555),_0x6740cc(588),_0x6740cc(495),"reportAnalytics",_0x6740cc(611),_0x6740cc(579),"insertBookshelf",_0x6740cc(541),"queryBookshelf","updateBookshelfReadTime",_0x6740cc(681),_0x6740cc(499),"onShareAppMessage",_0x6740cc(680),_0x6740cc(557),_0x6740cc(544),_0x6740cc(655),_0x6740cc(586),_0x6740cc(497),_0x6740cc(677),_0x6740cc(558),_0x6740cc(693),_0x6740cc(691),_0x6740cc(628),_0x6740cc(485),_0x6740cc(621),"getTemplateLibraryById","addTemplate",_0x6740cc(623),_0x6740cc(692),"sendTemplateMessage"],exports.minProgramLanguage={qa:_0x6740cc(524),wx:_0x6740cc(590),swan:"Baidu",my:_0x6740cc(547),tt:_0x6740cc(548)},exports[_0x6740cc(605)]={qa:{hxml:_0x6740cc(545),css:_0x6740cc(683),hjs:_0x6740cc(566)},wx:{hxml:_0x6740cc(501),css:_0x6740cc(619),hjs:_0x6740cc(493)},swan:{hxml:_0x6740cc(696),css:".css",hjs:_0x6740cc(627)},my:{hxml:_0x6740cc(523),css:".acss",hjs:".sjs"},tt:{hxml:_0x6740cc(665),css:_0x6740cc(647),hjs:_0x6740cc(627)}},exports[_0x6740cc(674)]={qa:_0x6740cc(498),wx:_0x6740cc(504),swan:"s-",my:"a:",tt:_0x6740cc(654)},exports[_0x6740cc(602)]={wx:_0x6740cc(656),swan:_0x6740cc(587),my:_0x6740cc(587),tt:null},exports[_0x6740cc(676)]=["project.config.json","project.swan.json"];var configBasename={qa:_0x6740cc(663),wx:_0x6740cc(526),swan:"project.swan.json",my:null,tt:_0x6740cc(526)},addSupportTypes=(exports[_0x6740cc(491)]={titleBarColor:_0x6740cc(542),pullRefresh:"enablePullDownRefresh",defaultTitle:_0x6740cc(682)},exports.tablebarItems={textColor:_0x6740cc(614),items:_0x6740cc(517)},exports[_0x6740cc(620)]={name:_0x6740cc(636),icon:_0x6740cc(589),activeIcon:_0x6740cc(489)},{wx:null,swan:null,my:null,tt:["wx"]}),Applets=(()=>{var e=_0x6740cc;function o(){_classCallCheck(this,o)}return _createClass(o,null,[{key:e(612),get:function(){return o[e(531)]},set:function(c){o.resetConfig(c),o._appletType=c}},{key:e(613),value:function(c){o[e(673)]=configBasename[c],o.addSupportTypes=addSupportTypes[c]}},{key:e(536),value:function(c){return new RegExp("^"[e(530)](exports.directivesPrefix[c],".*"))}}])})();exports[_0x6740cc(539)]=Applets,exports[_0x6740cc(701)]=[_0x6740cc(562),"touchMove",_0x6740cc(649),"touchCancel","tap",_0x6740cc(615)],exports[_0x6740cc(660)]={swiper:{onAnimationEnd:_0x6740cc(520)},video:{onLoading:_0x6740cc(500)},checkbox:{onChange:_0x6740cc(666)},slider:{"handle-size":_0x6740cc(518),handleSize:"block-size","handle-color":_0x6740cc(609),handleColor:_0x6740cc(609)},map:{polygon:_0x6740cc(591)}},exports[_0x6740cc(535)]={view:[_0x6740cc(503),_0x6740cc(584),_0x6740cc(662),_0x6740cc(686),_0x6740cc(629),_0x6740cc(638),_0x6740cc(568)],"movable-view":[_0x6740cc(603),_0x6740cc(484),_0x6740cc(635)],"scroll-view":[_0x6740cc(668),_0x6740cc(527),"onScroll"],swiper:[_0x6740cc(603),_0x6740cc(671)],"checkbox-group":[_0x6740cc(603)],form:[_0x6740cc(600),"onReset"],input:[_0x6740cc(529),_0x6740cc(608),_0x6740cc(561),_0x6740cc(521)],picker:[_0x6740cc(603)],"picker-view":[_0x6740cc(603)],"radio-group":[_0x6740cc(603)],slider:[_0x6740cc(603),_0x6740cc(551)],switch:[_0x6740cc(603)],textarea:[_0x6740cc(529),"onFocus",_0x6740cc(561),"onConfirm"],image:[_0x6740cc(657),_0x6740cc(698)],video:["onPlay",_0x6740cc(617),_0x6740cc(585),_0x6740cc(549),_0x6740cc(698),_0x6740cc(685),"onUserAction","onStop",_0x6740cc(648)],map:["onMarkerTap",_0x6740cc(596),_0x6740cc(488),_0x6740cc(694),_0x6740cc(690)]},exports.interfacesForTransform={confirm:_0x6740cc(646),saveImage:_0x6740cc(652),connectBLEDevice:_0x6740cc(651),disconnectBLEDevice:_0x6740cc(540),scan:"scanCode",setClipboard:_0x6740cc(598),getClipboard:_0x6740cc(532),getSelectedTextRange:_0x6740cc(505),hideKeyboard:_0x6740cc(664),compressVideo:_0x6740cc(606),saveFileToDisk:_0x6740cc(492),addPhoneRepeatCalendar:_0x6740cc(653),stopAccelerometer:_0x6740cc(519)};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x20e3(){var e=["util","transformNodeModuleComponent","appletType","../common/textDocument","versionName","tablebarListItems","concat","copyFile","writeFileSync","tablebarItems","Hello","handleWxssImport","changeAppJsonItem","ascf.config.json","dirname","icon","lib","extname","widgets","display","toLowerCase","length","node_modules","5569192hLTMNA","type","151702WtYiLZ","error","setLanguage","./commonConfig","fileImport","hjs","366kDjxJd","insertStr",".hxml","swan","statSync","../lib/locale.json","createDirs","orientation","createTransformReportFile","versionCode","addSupportTypes","copyConfigFiles","parse","path","Applets",'{"locale": "zh-cn"}',"input","platformFeature","chinese","3586PzEHlS","push","transformWxsFilePath","writeFile","unlinkSync","5ukurfB","readFileSync","css","apiadapter4alipay.js","require('./util/apiadapter4alipay.js');\r\n","isDirectory","usingComponents","tabBar","manifest.json","4083048DiTxdh","packOptions","log","windowItems","projectConfigFile","package","handleWxmlFile","name","output","existsSync","miniprogram_npm","../features/transformReport","mkdirSync","3EJAnZU","create","utf-8","slice","defineProperty","replace","basename","hxml","isArray","srcRootPath","6470INhdiG",".json","indexOf","getImportRules","iconPath","zh-cn","stringify","copyDir",".js","target","app.json","adaptApiFile","substring","getText","join","transformJsFile","setOriginPtahObject","Common",".css","67876shVWrh","miniProgramProject","assign","readdirSync","navigateToMiniProgramAppIdList","toString","replacepos","webUrl","eventTargetKey","__esModule","../parse/importVisitor","isFile","window","3227ybWnEq","appJsonFile","2614220DMlkSm","configBasename","packageName","helloUxStr","forEach","app.js"];return(_0x20e3=function(){return e})()}var _0x4e78cd=_0x3bb9,path=((()=>{for(var e=_0x3bb9,t=_0x20e3();;)try{if(354900==-parseInt(e(537))*(-parseInt(e(507))/2)+-parseInt(e(559))/3*(-parseInt(e(588))/4)+-parseInt(e(476))/5+parseInt(e(513))/6*(parseInt(e(474))/7)+parseInt(e(505))/8+-parseInt(e(546))/9+parseInt(e(569))/10*(parseInt(e(532))/11))break;t.push(t.shift())}catch(e){t.push(t.shift())}})(),Object[_0x4e78cd(563)](exports,_0x4e78cd(470),{value:!0}),exports[_0x4e78cd(509)]=exports[_0x4e78cd(580)]=exports.getGlobleOutPutPath=exports[_0x4e78cd(521)]=exports[_0x4e78cd(519)]=exports[_0x4e78cd(550)]=exports[_0x4e78cd(475)]=exports.changeAppJsonItem=exports[_0x4e78cd(489)]=exports[_0x4e78cd(524)]=exports[_0x4e78cd(483)]=exports.handleConfigInfo=exports[_0x4e78cd(576)]=exports.insertStr=exports[_0x4e78cd(467)]=exports.setOriginPtahObject=void 0,require(_0x4e78cd(526))),fs=require("fs"),importVisitor_1=require(_0x4e78cd(471)),_require=require(_0x4e78cd(485)),create=_require[_0x4e78cd(560)],fileHandle_1=require("../features/fileHandle"),commonConfig_1=require(_0x4e78cd(510)),transformReport=require(_0x4e78cd(557)),globleOutPutPath="",thirdComponents=[],originPtahObject={input:"",output:""};function setOriginPtahObject(e,t){var n=_0x4e78cd;thirdComponents=[],originPtahObject[n(529)]=e,originPtahObject[n(554)]=t}function replacepos(e,t,n,o){var i=_0x4e78cd;return e.substring(0,t)+o+e[i(581)](n)}function insertStr(e,t,n){var o=_0x4e78cd;return e.slice(0,t)+n+e[o(562)](t)}function copyDir(e,t){var n=_0x4e78cd,o=2<arguments[n(503)]&&void 0!==arguments[2]&&arguments[2],i=3<arguments[n(503)]&&void 0!==arguments[3]&&arguments[3];try{fs.existsSync(t)||fs[n(558)](t),i?_copyH5Pragram(e,t):_copyMiniPragram(e,t,o)}catch(e){throw e}}function handleConfigInfo(e,t){var n=_0x4e78cd,o=path[n(583)](t,n(545)),i=JSON[n(525)](fs.readFileSync(o,{encoding:n(561)})),i=(i[n(501)].pages[n(492)][n(520)]=e[n(520)],i[n(497)]=i[n(497)]+path.basename(e[n(573)]),i[n(551)]=e[n(478)],i[n(553)]=e.appName,i.versionName=e[n(486)],i[n(522)]=e[n(522)],JSON[n(575)](i,null,2)),o=(fs[n(490)](o,i),path[n(583)](t,n(492),"hello.ux")),i=(i=fs.readFileSync(o,{encoding:n(561)}))[n(564)](n(479),e[n(468)]);fs.writeFileSync(o,i),fs.existsSync(path[n(583)](t,"Common"))||fs[n(558)](path[n(583)](t,n(586))),copyFile(path.join(t,n(586),path[n(565)](e[n(573)])),e.iconPath)}function _copyH5Pragram(i,r){var a=_0x4e78cd;try{fs[a(464)](i)[a(480)](function(e){var t=a,n=path[t(583)](i,e),e=path[t(583)](r,e),o=fs[t(517)](n);o[t(472)]()&©File(e,n),o.isDirectory()&©Dir(n,e,!1,!0)})}catch(e){throw e}}function _copyMiniPragram(r,a){var c=_0x4e78cd,s=2<arguments[c(503)]&&void 0!==arguments[2]&&arguments[2];try{fs[c(464)](r)[c(480)](function(e){var t=c,n=path.join(r,e),o=path[t(583)](a,e),i=fs[t(517)](n);i[t(472)]()&&(copyFile(o,n),!s)&&dealWithFile(o,n),i[t(542)]()&&n!==t(504)&&n!==t(556)&&(e===t(504)?copyDir(n,path[t(583)](a,t(556)),!0):copyDir(n,o,s))})}catch(e){throw e}}function dealWithFile(t,n){var e=_0x4e78cd,o=2<arguments[e(503)]&&void 0!==arguments[2]?arguments[2]:commonConfig_1.Applets[e(484)],i=path[e(499)](t);switch(i){case e(577):modifyFileContent(t,n,e(577),o);break;case e(570):modifyFileContent(t,n,e(570));break;default:var r=[commonConfig_1[e(527)][e(484)]];(r=commonConfig_1.Applets[e(523)]?r.concat(commonConfig_1[e(527)][e(523)]):r)[e(480)](function(e){dealWithMainFile(t,n,i,e)})}}function dealWithMainFile(e,t,n,o){var i=_0x4e78cd,r=commonConfig_1.projectFileSuffix[o];switch(n){case r[i(566)]:var a=e[i(564)](n,i(515));modifyFile(e,a,r[i(566)],t,o);break;case r[i(539)]:a=e[i(564)](n,i(587));modifyFile(e,a,r.css,null,o);break;case r[i(512)]:if(!r[i(512)])return;a=e[i(564)](n,".hjs");modifyFile(e,a,r[i(512)],t,o)}}function modifyFile(e,t,n,o){var i=_0x4e78cd,r=4<arguments[i(503)]&&void 0!==arguments[4]?arguments[4]:commonConfig_1.Applets[i(484)];try{fs.renameSync(e,t),modifyFileContent(t,o,n,r)}catch(e){throw console[i(508)](e),e}}function modifyFileContent(e,t,n){var o=_0x4e78cd,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:commonConfig_1[o(527)][o(484)];try{var r,a=fs[o(538)](e,{encoding:o(561)})[o(466)](),c=commonConfig_1.projectFileSuffix[i];switch(n){case c[o(566)]:a=fileHandle_1[o(552)](e,a,t,i),"tt"===i&&(a=fileHandle_1[o(552)](e,a,t,"wx"));break;case c[o(512)]:var s=create(e,a),a=s[o(582)](),p=importVisitor_1[o(572)](a,null,!0,i).filter(function(e){var t=o;return e.type===t(511)});a=fileHandle_1[o(534)](p,s,a,t,i);break;case c[o(539)]:a=fileHandle_1[o(493)](e,a,i),"tt"===i&&(a=fileHandle_1.handleWxssImport(e,a,"wx"));break;case".js":a=fileHandle_1[o(584)](e,t,a,i),"tt"===i&&(a=fileHandle_1.transformJsFile(e,t,a,"wx"));break;case o(570):a&&((r=JSON[o(525)](a))[o(543)]&&handleUsingComponents(r[o(543)]),"my"===commonConfig_1.Applets.appletType&&changeAppJsonItem(r,commonConfig_1[o(549)]),a=JSON[o(575)](r,null,2))}fs[o(490)](e,a)}catch(e){throw e}}function dealWithNodeModuleComponent(n,o){var i=_0x4e78cd,e=fs[i(517)](n);e[i(472)]()&&dealWithFile(n,o),e.isDirectory()&&fs[i(464)](n)[i(480)](function(e){var t=i;dealWithNodeModuleComponent(path[t(583)](n,e),path[t(583)](o,e))})}function transformNodeModuleComponent(){var i=_0x4e78cd;thirdComponents[i(480)](function(e){var t,n=i,o=path[n(583)](originPtahObject[n(554)],n(556),e);fs[n(555)](o)&&(t=path[n(583)](originPtahObject[n(529)],n(556),e),fs.existsSync(t)?dealWithNodeModuleComponent(o,t):dealWithNodeModuleComponent(o,path[n(583)](originPtahObject[n(529)],"node_modules",e)))})}function handleUsingComponents(e){var t,n,o=_0x4e78cd;for(t in e)e[t]&&(n=e[t].split("/"))[0]&&"."!==n[0][0]&&-1===thirdComponents.indexOf(n[0])&&thirdComponents[o(533)](n[0])}function copyConfigFiles(o,i){var r=_0x4e78cd;try{fs[r(464)](o)[r(480)](function(e){var t=r,n=path[t(583)](o,e),e=path[t(583)](i,e);fs[t(517)](n)[t(472)]()&©File(e,n)})}catch(e){throw e}}function copyFile(e,t){var n=_0x4e78cd;fs.writeFileSync(e,fs[n(538)](t))}function changeAppJsonItem(e,t){if(e)for(var n in t)e[n]&&(e[t[n]]=e[n],delete e[n])}function appJsonFile(e,t){var n=_0x4e78cd,o=JSON[n(525)](fs[n(538)](path[n(583)](e,n(579)))[n(466)]()),o=(delete o.package,delete o.name,delete o.versionName,delete o[n(522)],delete o.minPlatformVersion,delete o[n(497)],delete o[n(506)],changeAppJsonItem(o[n(473)],commonConfig_1.windowItems),changeAppJsonItem(o[n(544)],commonConfig_1[n(491)]),o.tabBar&&o[n(544)].list&&o[n(544)].list[n(480)](function(e){changeAppJsonItem(e,commonConfig_1[n(487)])}),Object[n(463)]({},o)),o=(delete o[n(500)],delete o.entry,delete o.debug,delete o[n(465)],-1!==[n(516),"my"][n(571)](commonConfig_1[n(527)][n(484)])&&(o[n(530)]={enableNoDeclareCompProp:!0}),-1!==["my"][n(571)](commonConfig_1[n(527)].appletType)&&(o[n(530)][n(469)]=n(578)),JSON.stringify(o,null,2));fs[n(490)](path[n(583)](e,n(579)),o)}function projectConfigFile(e){var t=_0x4e78cd,n={},o=(commonConfig_1[t(527)].configBasename?fs[t(555)](path.join(e,commonConfig_1[t(527)].configBasename))&&(n=JSON[t(525)](fs.readFileSync(path[t(583)](e,commonConfig_1.Applets[t(477)])).toString())):n={},{ascfRoot:commonConfig_1[t(527)][t(568)],packOptions:{ignore:[]}}),n=(o[t(547)]=n[t(547)],JSON[t(575)](o,null,2));commonConfig_1.Applets[t(477)]&&fs[t(555)](path[t(583)](e,commonConfig_1[t(527)][t(477)]))&&fs[t(536)](path[t(583)](e,commonConfig_1[t(527)].configBasename)),fs[t(535)](path.join(e,t(495)),n,function(e){e&&console[t(548)](e)})}function mkdirsSync(e){var t=_0x4e78cd;return!!fs[t(555)](e)||(mkdirsSync(path[t(496)](e))?(fs[t(558)](e),!0):void 0)}function _0x3bb9(e,t){var n=_0x20e3();return(_0x3bb9=function(e,t){return n[e-=462]})(e,t)}function createDirs(e,t){var n=_0x4e78cd;n(503);fs[n(555)](e)||mkdirsSync(e),fs[n(555)](path[n(583)](e,t))||mkdirsSync(path[n(583)](e,t))}function createTransformReportFile(e,t){var n=_0x4e78cd,e=(globleOutPutPath=path.join(e,"transform.log"),setLanguage(n(462))+t+"\n\n");fs[n(490)](globleOutPutPath,e)}function getGlobleOutPutPath(){return globleOutPutPath}function adaptApiFile(e,t){var n=_0x4e78cd,t=(fs[n(555)](path.join(e,"util"))||fs.mkdirSync(path[n(583)](e,n(482))),copyFile(path[n(583)](e,n(482),n(540)),path.join(t,n(498),n(540))),path[n(583)](e,n(481))),e=fs[n(538)](t,{encoding:n(561)}),e=n(541)[n(488)](e);fs[n(490)](t,e)}exports[_0x4e78cd(585)]=setOriginPtahObject,exports[_0x4e78cd(467)]=replacepos,exports[_0x4e78cd(514)]=insertStr,exports[_0x4e78cd(576)]=copyDir,exports.handleConfigInfo=handleConfigInfo,exports[_0x4e78cd(483)]=transformNodeModuleComponent,exports[_0x4e78cd(524)]=copyConfigFiles,exports[_0x4e78cd(489)]=copyFile,exports[_0x4e78cd(494)]=changeAppJsonItem,exports[_0x4e78cd(475)]=appJsonFile,exports[_0x4e78cd(550)]=projectConfigFile,exports[_0x4e78cd(519)]=createDirs,exports[_0x4e78cd(521)]=createTransformReportFile,exports.getGlobleOutPutPath=getGlobleOutPutPath,exports[_0x4e78cd(580)]=adaptApiFile;var lan=JSON[_0x4e78cd(525)](process.env.VSCODE_NLS_CONFIG||_0x4e78cd(528)).locale[_0x4e78cd(502)](),language=require(_0x4e78cd(518));function setLanguage(e,t){var n,o=_0x4e78cd;return language[e]?(n=lan===o(574)?language[e][o(531)]:language[e].english,Array[o(567)](t)&&t[o(480)](function(e,t){n=n.replace("${"+(t+1)+"}",e)}),n):e}exports[_0x4e78cd(509)]=setLanguage;
|
|
1
|
+
var _0x4adf84=_0x1322,path=((()=>{for(var e=_0x1322,t=_0x136c();;)try{if(297233==+parseInt(e(417))*(parseInt(e(392))/2)+parseInt(e(388))/3*(-parseInt(e(370))/4)+parseInt(e(451))/5+-parseInt(e(379))/6+parseInt(e(428))/7+-parseInt(e(362))/8*(-parseInt(e(399))/9)+-parseInt(e(389))/10)break;t.push(t.shift())}catch(e){t.push(t.shift())}})(),Object[_0x4adf84(445)](exports,_0x4adf84(452),{value:!0}),exports[_0x4adf84(454)]=exports[_0x4adf84(390)]=exports[_0x4adf84(455)]=exports[_0x4adf84(335)]=exports[_0x4adf84(453)]=exports.projectConfigFile=exports[_0x4adf84(338)]=exports.changeAppJsonItem=exports[_0x4adf84(441)]=exports[_0x4adf84(354)]=exports[_0x4adf84(398)]=exports[_0x4adf84(386)]=exports.copyDir=exports.insertStr=exports[_0x4adf84(341)]=exports[_0x4adf84(350)]=void 0,require(_0x4adf84(383))),fs=require("fs"),importVisitor_1=require("../parse/importVisitor"),_require=require(_0x4adf84(436)),create=_require[_0x4adf84(440)],fileHandle_1=require("../features/fileHandle"),commonConfig_1=require(_0x4adf84(352)),transformReport=require(_0x4adf84(377)),globleOutPutPath="",thirdComponents=[],originPtahObject={input:"",output:""};function setOriginPtahObject(e,t){var o=_0x4adf84;thirdComponents=[],originPtahObject[o(405)]=e,originPtahObject[o(396)]=t}function replacepos(e,t,o,n){var a=_0x4adf84;return e[a(359)](0,t)+n+e[a(359)](o)}function insertStr(e,t,o){var n=_0x4adf84;return e[n(374)](0,t)+o+e[n(374)](t)}function copyDir(e,t){var o=_0x4adf84,n=2<arguments[o(420)]&&void 0!==arguments[2]&&arguments[2],a=3<arguments[o(420)]&&void 0!==arguments[3]&&arguments[3];try{fs[o(328)](t)||fs[o(382)](t),a?_copyH5Pragram(e,t):_copyMiniPragram(e,t,n)}catch(e){throw e}}function handleConfigInfo(e,t){var o=_0x4adf84,n=path[o(381)](t,o(438)),a=JSON[o(447)](fs.readFileSync(n,{encoding:o(412)})),a=(a.display.pages[o(423)][o(406)]=e.orientation,a.icon=a[o(456)]+path.basename(e[o(425)]),a.package=e[o(356)],a[o(329)]=e.appName,a[o(368)]=e[o(368)],a[o(442)]=e[o(442)],JSON[o(380)](a,null,2)),n=(fs[o(439)](n,a),path[o(381)](t,o(423),o(397))),a=(a=fs.readFileSync(n,{encoding:o(412)}))[o(409)](o(410),e[o(331)]);fs[o(439)](n,a),fs.existsSync(path[o(381)](t,o(351)))||fs[o(382)](path[o(381)](t,"Common")),copyFile(path.join(t,o(351),path[o(432)](e[o(425)])),e[o(425)])}function _copyH5Pragram(a,i){try{fs.readdirSync(a).forEach(function(e){var t=_0x1322,o=path[t(381)](a,e),e=path[t(381)](i,e),n=fs[t(367)](o);n[t(345)]()&©File(e,o),n.isDirectory()&©Dir(o,e,!1,!0)})}catch(e){throw e}}function _copyMiniPragram(i,r){var s=_0x4adf84,p=2<arguments[s(420)]&&void 0!==arguments[2]&&arguments[2];try{fs.readdirSync(i)[s(393)](function(e){var t=s,o=path.join(i,e),n=path[t(381)](r,e),a=fs.statSync(o);a[t(345)]()&&(copyFile(n,o),!p)&&dealWithFile(n,o),a[t(363)]()&&o!==t(344)&&"miniprogram_npm"!==o&&("node_modules"===e?copyDir(o,path[t(381)](r,t(342)),!0):copyDir(o,n,p))})}catch(e){throw e}}function dealWithFile(t,o){var e=_0x4adf84,n=2<arguments[e(420)]&&void 0!==arguments[2]?arguments[2]:commonConfig_1[e(373)][e(355)],a=path[e(378)](t);switch(a){case".js":modifyFileContent(t,o,".js",n);break;case e(413):modifyFileContent(t,o,e(413));break;default:var i=[commonConfig_1.Applets[e(355)]];(i=commonConfig_1.Applets.addSupportTypes?i[e(430)](commonConfig_1[e(373)][e(414)]):i).forEach(function(e){dealWithMainFile(t,o,a,e)})}}function dealWithMainFile(e,t,o,n){var a=_0x4adf84,i=commonConfig_1[a(366)][n];switch(o){case i[a(418)]:var r=e[a(409)](o,a(422));modifyFile(e,r,i[a(418)],t,n);break;case i[a(449)]:r=e[a(409)](o,a(391));modifyFile(e,r,i.css,null,n);break;case i[a(411)]:if(!i[a(411)])return;r=e[a(409)](o,".hjs");modifyFile(e,r,i[a(411)],t,n)}}function modifyFile(e,t,o,n){var a=_0x4adf84,i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:commonConfig_1[a(373)][a(355)];try{fs[a(340)](e,t),modifyFileContent(t,n,o,i)}catch(e){throw console[a(433)](e),e}}function modifyFileContent(e,t,o){var n=_0x4adf84,a=3<arguments[n(420)]&&void 0!==arguments[3]?arguments[3]:commonConfig_1.Applets[n(355)];try{var i,r=fs[n(424)](e,{encoding:n(412)}).toString(),s=commonConfig_1[n(366)][a];switch(o){case s[n(418)]:r=fileHandle_1[n(364)](e,r,t,a),"tt"===a&&(r=fileHandle_1[n(364)](e,r,t,"wx"));break;case s[n(411)]:var p=create(e,r),r=p.getText(),f=importVisitor_1[n(333)](r,null,!0,a)[n(419)](function(e){var t=n;return e[t(400)]===t(385)});r=fileHandle_1[n(347)](f,p,r,t,a);break;case s[n(449)]:r=fileHandle_1.handleWxssImport(e,r,a),"tt"===a&&(r=fileHandle_1[n(415)](e,r,"wx"));break;case n(339):r=fileHandle_1[n(403)](e,t,r,a),"tt"===a&&(r=fileHandle_1[n(403)](e,t,r,"wx"));break;case".json":r&&((i=JSON[n(447)](r)).usingComponents&&handleUsingComponents(i[n(360)]),"my"===commonConfig_1.Applets.appletType&&changeAppJsonItem(i,commonConfig_1.windowItems),r=JSON[n(380)](i,null,2))}fs[n(439)](e,r)}catch(e){throw e}}function _0x136c(){var e=["type","util","isArray","transformJsFile","widgets","input","orientation",'{"locale": "zh-cn"}',"window","replace","helloUxStr","hjs","utf-8",".json","addSupportTypes","handleWxssImport","writeFile","687WyynbY","hxml","filter","length","entry",".hxml","Hello","readFileSync","iconPath","ascf.config.json","locale","1405747EYDAGW","assign","concat","require('./util/apiadapter4alipay.js');\r\n","basename","error","../lib/locale.json","english","../common/textDocument","apiadapter4alipay.js","manifest.json","writeFileSync","create","copyFile","versionCode","unlinkSync","swan","defineProperty","tablebarItems","parse","target","css","miniProgramProject","2471025Xqyvam","__esModule","createDirs","setLanguage","getGlobleOutPutPath","icon","tablebarListItems","zh-cn","existsSync","name","insertStr","webUrl","configBasename","getImportRules","split","createTransformReportFile","toString","packOptions","appJsonFile",".js","renameSync","replacepos","miniprogram_npm","windowItems","node_modules","isFile","transform.log","transformWxsFilePath","list","toLowerCase","setOriginPtahObject","Common","./commonConfig","projectConfigFile","copyConfigFiles","appletType","packageName","log","srcRootPath","substring","usingComponents","dirname","2248EQoUob","isDirectory","handleWxmlFile","readdirSync","projectFileSuffix","statSync","versionName","app.js","1054796mOpWAo","app.json","navigateToMiniProgramAppIdList","Applets","slice","push","tabBar","../features/transformReport","extname","2520072rooXeU","stringify","join","mkdirSync","path","lib","fileImport","handleConfigInfo","VSCODE_NLS_CONFIG","3hvXpPY","1061720OMjxBl","adaptApiFile",".css","586gINthP","forEach","env","platformFeature","output","hello.ux","transformNodeModuleComponent","6111RxiPAE"];return(_0x136c=function(){return e})()}function dealWithNodeModuleComponent(t,o){var e=_0x4adf84,n=fs[e(367)](t);n[e(345)]()&&dealWithFile(t,o),n[e(363)]()&&fs[e(365)](t)[e(393)](function(e){dealWithNodeModuleComponent(path.join(t,e),path.join(o,e))})}function transformNodeModuleComponent(){var a=_0x4adf84;thirdComponents[a(393)](function(e){var t,o=a,n=path[o(381)](originPtahObject.output,o(342),e);fs.existsSync(n)&&(t=path[o(381)](originPtahObject.input,o(342),e),fs[o(328)](t)?dealWithNodeModuleComponent(n,t):dealWithNodeModuleComponent(n,path[o(381)](originPtahObject.input,o(344),e)))})}function handleUsingComponents(e){var t,o,n=_0x4adf84;for(t in e)e[t]&&(o=e[t][n(334)]("/"))[0]&&"."!==o[0][0]&&-1===thirdComponents.indexOf(o[0])&&thirdComponents[n(375)](o[0])}function copyConfigFiles(o,n){var e=_0x4adf84;try{fs[e(365)](o)[e(393)](function(e){var t=path.join(o,e),e=path.join(n,e);fs.statSync(t).isFile()&©File(e,t)})}catch(e){throw e}}function copyFile(e,t){var o=_0x4adf84;fs[o(439)](e,fs[o(424)](t))}function changeAppJsonItem(e,t){if(e)for(var o in t)e[o]&&(e[t[o]]=e[o],delete e[o])}function appJsonFile(e,t){var o=_0x4adf84,n=JSON[o(447)](fs.readFileSync(path[o(381)](e,o(371)))[o(336)]()),n=(delete n.package,delete n.name,delete n[o(368)],delete n[o(442)],delete n.minPlatformVersion,delete n.icon,delete n[o(400)],changeAppJsonItem(n[o(408)],commonConfig_1[o(343)]),changeAppJsonItem(n[o(376)],commonConfig_1[o(446)]),n[o(376)]&&n.tabBar[o(348)]&&n[o(376)][o(348)][o(393)](function(e){changeAppJsonItem(e,commonConfig_1[o(457)])}),Object[o(429)]({},n)),n=(delete n[o(404)],delete n[o(421)],delete n.debug,delete n[o(372)],-1!==[o(444),"my"].indexOf(commonConfig_1[o(373)][o(355)])&&(n[o(395)]={enableNoDeclareCompProp:!0}),-1!==["my"].indexOf(commonConfig_1[o(373)].appletType)&&(n[o(395)].eventTargetKey=o(448)),JSON[o(380)](n,null,2));fs.writeFileSync(path[o(381)](e,o(371)),n)}function projectConfigFile(e){var t=_0x4adf84,o={},n=(commonConfig_1.Applets[t(332)]?fs[t(328)](path[t(381)](e,commonConfig_1[t(373)].configBasename))&&(o=JSON[t(447)](fs[t(424)](path[t(381)](e,commonConfig_1[t(373)][t(332)]))[t(336)]())):o={},{ascfRoot:commonConfig_1[t(373)][t(358)],packOptions:{ignore:[]}}),o=(n[t(337)]=o.packOptions,JSON.stringify(n,null,2));commonConfig_1[t(373)].configBasename&&fs[t(328)](path[t(381)](e,commonConfig_1[t(373)][t(332)]))&&fs[t(443)](path[t(381)](e,commonConfig_1[t(373)][t(332)])),fs[t(416)](path[t(381)](e,t(426)),o,function(e){e&&console[t(357)](e)})}function mkdirsSync(e){var t=_0x4adf84;return!!fs[t(328)](e)||(mkdirsSync(path[t(361)](e))?(fs[t(382)](e),!0):void 0)}function createDirs(e,t){var o=_0x4adf84;o(420);fs[o(328)](e)||mkdirsSync(e),fs[o(328)](path[o(381)](e,t))||mkdirsSync(path[o(381)](e,t))}function _0x1322(e,t){var o=_0x136c();return(_0x1322=function(e,t){return o[e-=327]})(e,t)}function createTransformReportFile(e,t){var o=_0x4adf84,n=o(346),e=(globleOutPutPath=path[o(381)](e,n),setLanguage(o(450))+t+"\n\n");fs[o(439)](globleOutPutPath,e)}function getGlobleOutPutPath(){return globleOutPutPath}function adaptApiFile(e,t){var o=_0x4adf84,t=(fs[o(328)](path[o(381)](e,o(401)))||fs.mkdirSync(path[o(381)](e,o(401))),copyFile(path[o(381)](e,o(401),"apiadapter4alipay.js"),path[o(381)](t,o(384),o(437))),path[o(381)](e,o(369))),e=fs[o(424)](t,{encoding:"utf-8"}),e=o(431)[o(430)](e);fs[o(439)](t,e)}exports.setOriginPtahObject=setOriginPtahObject,exports[_0x4adf84(341)]=replacepos,exports[_0x4adf84(330)]=insertStr,exports.copyDir=copyDir,exports[_0x4adf84(386)]=handleConfigInfo,exports[_0x4adf84(398)]=transformNodeModuleComponent,exports[_0x4adf84(354)]=copyConfigFiles,exports.copyFile=copyFile,exports.changeAppJsonItem=changeAppJsonItem,exports.appJsonFile=appJsonFile,exports[_0x4adf84(353)]=projectConfigFile,exports[_0x4adf84(453)]=createDirs,exports[_0x4adf84(335)]=createTransformReportFile,exports[_0x4adf84(455)]=getGlobleOutPutPath,exports[_0x4adf84(390)]=adaptApiFile;var lan=JSON[_0x4adf84(447)](process[_0x4adf84(394)][_0x4adf84(387)]||_0x4adf84(407))[_0x4adf84(427)][_0x4adf84(349)](),language=require(_0x4adf84(434));function setLanguage(e,t){var o,n=_0x4adf84;return language[e]?(o=lan===n(327)?language[e].chinese:language[e][n(435)],Array[n(402)](t)&&t[n(393)](function(e,t){o=o[n(409)]("${"+(t+1)+"}",e)}),o):e}exports[_0x4adf84(454)]=setLanguage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x41d4(t,e){var r=_0x284b();return(_0x41d4=function(t,e){return r[t-=476]})(t,e)}function _0x284b(){var t=["_lineOffsets","80BDqcwc","exports","uri","charCodeAt","line","1351626LaqqSA","10CPWpzB","getLineOffsets","defineProperty","_content","2944684LFNFiI","enumerable","length","function","call","key","positionAt","writable","1550544GlGSDi","3182824tflZxd","@@toPrimitive must return a primitive value.","45ZVXyMt","configurable","object","value","Cannot call a class as a function","min","computeLineOffsets","7006350GtpjfZ","string","constructor","prototype","getText","1832347bXMixJ","3JwJXEq","toPrimitive","push","max","symbol","7662893dRrTQO","_uri","offsetAt"];return(_0x284b=function(){return t})()}var _0x3f8139=_0x41d4;function _typeof(t){var r=_0x41d4;return(_typeof=r(513)==typeof Symbol&&r(495)==typeof Symbol.iterator?function(t){return typeof t}:function(t){var e=r;return t&&e(513)==typeof Symbol&&t[e(487)]===Symbol&&t!==Symbol[e(488)]?e(495):typeof t})(t)}function _classCallCheck(t,e){var r=_0x41d4;if(!(t instanceof e))throw new TypeError(r(482))}function _defineProperties(t,e){for(var r=_0x41d4,n=0;n<e[r(512)];n++){var i=e[n];i.enumerable=i[r(511)]||!1,i[r(479)]=!0,r(481)in i&&(i[r(517)]=!0),Object[r(508)](t,_toPropertyKey(i[r(515)]),i)}}function _createClass(t,e,r){var n=_0x41d4;return e&&_defineProperties(t[n(488)],e),r&&_defineProperties(t,r),Object[n(508)](t,n(488),{writable:!1}),t}function _toPropertyKey(t){t=_toPrimitive(t,_0x41d4(486));return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(t,e){var r=_0x41d4;if(r(480)!=_typeof(t)||!t)return t;var n=t[Symbol[r(492)]];if(void 0===n)return("string"===e?String:Number)(t);n=n[r(514)](t,e||"default");if(r(480)!=_typeof(n))return n;throw new TypeError(r(477))}(()=>{for(var t=_0x41d4,e=_0x284b();;)try{if(996124==-parseInt(t(505))+parseInt(t(510))/2*(-parseInt(t(491))/3)+parseInt(t(476))/4*(parseInt(t(506))/5)+-parseInt(t(485))/6+parseInt(t(496))/7+-parseInt(t(518))/8*(-parseInt(t(478))/9)+-parseInt(t(500))/10*(-parseInt(t(490))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}})();var TextDocument=(()=>{var u=_0x41d4;return _createClass(function t(e,r){var n=_0x41d4;_classCallCheck(this,t),this[n(497)]=e,this[n(509)]=r,this[n(499)]=void 0},[{key:u(489),value:function(){return this[u(509)]}},{key:u(502),value:function(){return this._uri}},{key:u(498),value:function(t){var e,r=u,n=this[r(507)]();return t[r(504)]>=n[r(512)]?this[r(509)][r(512)]:t[r(504)]<0?0:(e=n[t[r(504)]],n=t.line+1<n.length?n[t[r(504)]+1]:this._content.length,Math[r(494)](Math.min(e+t.character,n),e))}},{key:"getLineOffsets",value:function(){var t=u;return void 0===this[t(499)]&&(this[t(499)]=this[t(484)](this._content,!0)),this[t(499)]}},{key:u(484),value:function(t,e,r){for(var n=u,i=(void 0===r&&(r=0),e?[r]:[]),o=0;o<t[n(512)];o++){var a=t[n(503)](o);13!==a&&10!==a||(13===a&&o+1<t[n(512)]&&10===t[n(503)](o+1)&&o++,i[n(493)](r+o+1))}return i}},{key:u(516),value:function(t){var e=u,r=(t=Math.max(Math[e(483)](t,this[e(509)][e(512)]),0),this[e(507)]()),n=0,i=r[e(512)];if(0===i)return{line:0,character:t};for(;n<i;){var o=Math.floor((n+i)/2);r[o]>t?i=o:n=o+1}e=n-1;return{line:e,character:t-r[e]}}}])})();function create(t,e){return new TextDocument(t,e)}module[_0x3f8139(501)]={create:create};
|