@webspatial/builder 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/cmds/build.d.ts +4 -4
  3. package/dist/lib/cmds/build.js +1 -1
  4. package/dist/lib/cmds/check.d.ts +2 -3
  5. package/dist/lib/cmds/check.js +1 -1
  6. package/dist/lib/cmds/help.js +1 -1
  7. package/dist/lib/cmds/launch.js +1 -1
  8. package/dist/lib/cmds/shutdown.js +1 -1
  9. package/dist/lib/cmds/version.d.ts +1 -2
  10. package/dist/lib/cmds/version.js +1 -1
  11. package/dist/lib/pwa/config.js +1 -1
  12. package/dist/lib/pwa/index.d.ts +4 -15
  13. package/dist/lib/pwa/index.js +1 -1
  14. package/dist/lib/pwa/validate.js +1 -1
  15. package/dist/lib/resource/file.js +1 -1
  16. package/dist/lib/resource/imageHelper.js +1 -1
  17. package/dist/lib/resource/index.d.ts +2 -1
  18. package/dist/lib/resource/index.js +1 -1
  19. package/dist/lib/resource/load.js +1 -1
  20. package/dist/lib/types.d.ts +27 -0
  21. package/dist/lib/types.js +1 -0
  22. package/dist/lib/utils/CustomError.js +1 -1
  23. package/dist/lib/utils/FetchUtils-1.js +1 -1
  24. package/dist/lib/utils/Log.js +1 -1
  25. package/dist/lib/utils/fetch.js +1 -1
  26. package/dist/lib/utils/history.d.ts +15 -0
  27. package/dist/lib/utils/history.js +1 -0
  28. package/dist/lib/utils/messages.js +1 -1
  29. package/dist/lib/utils/utils.d.ts +2 -0
  30. package/dist/lib/utils/utils.js +1 -1
  31. package/dist/lib/xcode/index.d.ts +3 -1
  32. package/dist/lib/xcode/index.js +1 -1
  33. package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
  34. package/dist/lib/xcode/xcodebuild.js +1 -1
  35. package/dist/lib/xcode/xcodeproject.js +1 -1
  36. package/dist/lib/xcode/xcrun.d.ts +38 -3
  37. package/dist/lib/xcode/xcrun.js +1 -1
  38. package/package.json +4 -3
  39. package/dist/lib/Cli.d.ts +0 -5
  40. package/dist/lib/Cli.js +0 -1
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1d8b69=_0x9216;(function(_0xb1ba7b,_0x179122){const _0x4f7e83=_0x9216,_0x258ec8=_0xb1ba7b();while(!![]){try{const _0x29d423=parseInt(_0x4f7e83(0x1c4))/0x1*(parseInt(_0x4f7e83(0x1cd))/0x2)+-parseInt(_0x4f7e83(0x1bf))/0x3+parseInt(_0x4f7e83(0x1b8))/0x4+-parseInt(_0x4f7e83(0x1be))/0x5+-parseInt(_0x4f7e83(0x1c0))/0x6*(-parseInt(_0x4f7e83(0x1bc))/0x7)+-parseInt(_0x4f7e83(0x1ce))/0x8+parseInt(_0x4f7e83(0x1c5))/0x9;if(_0x29d423===_0x179122)break;else _0x258ec8['push'](_0x258ec8['shift']());}catch(_0x36b9e3){_0x258ec8['push'](_0x258ec8['shift']());}}}(_0xb9b3,0xe5629));function _0x9216(_0x5d0f87,_0x484d84){const _0xb9b3b8=_0xb9b3();return _0x9216=function(_0x9216ad,_0x3df3bc){_0x9216ad=_0x9216ad-0x1b8;let _0x222240=_0xb9b3b8[_0x9216ad];return _0x222240;},_0x9216(_0x5d0f87,_0x484d84);}Object[_0x1d8b69(0x1ba)](exports,_0x1d8b69(0x1d0),{'value':!![]});function _0xb9b3(){const _0x46d3dd=['__esModule','221448oRYokn','isArray','defineProperty','CustomError','13643hVXCkY','forEach','7674615djxGdu','626421wPdboq','366JSncqy','./lib/utils/CustomError','exit','customMessage','203fmKzxP','21610665KoUVgG','error','slice','./lib/Cli','argv','Cli','log','message','15682WtrVWf','11870944cjgljD','code'];_0xb9b3=function(){return _0x46d3dd;};return _0xb9b3();}const Cli_1=require(_0x1d8b69(0x1c8)),CustomError_1=require(_0x1d8b69(0x1c1));module['exports']=async()=>{const _0x546f03=_0x1d8b69,_0x146763=new Cli_1[(_0x546f03(0x1ca))](),_0x3097b4=Cli_1[_0x546f03(0x1ca)][_0x546f03(0x1cb)],_0x47b4b9=process[_0x546f03(0x1c9)][_0x546f03(0x1c7)](0x2);let _0x2f1cf1;try{_0x2f1cf1=await _0x146763['run'](_0x47b4b9);}catch(_0xb3cd9f){if(_0xb3cd9f instanceof CustomError_1[_0x546f03(0x1bb)]){const _0x59d995=_0xb3cd9f[_0x546f03(0x1c3)];Array[_0x546f03(0x1b9)](_0x59d995)?_0x59d995[_0x546f03(0x1bd)](_0x328cb7=>{const _0x42f356=_0x546f03;_0x3097b4[_0x42f356(0x1c6)](_0x328cb7[_0x42f356(0x1cf)]+':\x20'+_0x328cb7[_0x42f356(0x1cc)]);}):_0x3097b4[_0x546f03(0x1c6)](_0x59d995[_0x546f03(0x1cf)]+':\x20'+_0x59d995[_0x546f03(0x1cc)]);}else _0x3097b4[_0x546f03(0x1c6)](_0xb3cd9f[_0x546f03(0x1cc)]);_0x2f1cf1=![];}!_0x2f1cf1?process['exit'](0x1):process[_0x546f03(0x1c2)](0x0);};
1
+ 'use strict';const _0x263fe5=_0x4ad4;(function(_0x59abef,_0x2eb92b){const _0x22859d=_0x4ad4,_0x299b2f=_0x59abef();while(!![]){try{const _0x3a7c84=-parseInt(_0x22859d(0x1c4))/0x1*(parseInt(_0x22859d(0x1fd))/0x2)+parseInt(_0x22859d(0x1b6))/0x3+parseInt(_0x22859d(0x1bf))/0x4+parseInt(_0x22859d(0x1f2))/0x5+parseInt(_0x22859d(0x1c1))/0x6*(-parseInt(_0x22859d(0x1f4))/0x7)+-parseInt(_0x22859d(0x1ce))/0x8+-parseInt(_0x22859d(0x1f6))/0x9*(-parseInt(_0x22859d(0x1e2))/0xa);if(_0x3a7c84===_0x2eb92b)break;else _0x299b2f['push'](_0x299b2f['shift']());}catch(_0x36b0f6){_0x299b2f['push'](_0x299b2f['shift']());}}}(_0x2f05,0xa85f3));Object[_0x263fe5(0x1d5)](exports,_0x263fe5(0x1ca),{'value':!![]});const commander_1=require(_0x263fe5(0x1c0)),semver_1=require(_0x263fe5(0x1e6)),FetchUtils_1_1=require(_0x263fe5(0x1eb)),build_1=require(_0x263fe5(0x1e4)),version_1=require(_0x263fe5(0x1de)),fetch_1=require('./lib/utils/fetch'),launch_1=require('./lib/cmds/launch'),shutdown_1=require('./lib/cmds/shutdown');function _0x2f05(){const _0x3fee88=['./lib/cmds/version','bundle\x20id','getVersion','--manifest\x20<manifest>','243850DfSdVV','manifest\x20url','./lib/cmds/build','Shutdown\x20Simulator','semver','node','username','--project\x20<project>','--bundle-id\x20<bundleId>','./lib/utils/FetchUtils-1','argv','name','Command','app\x20build\x20type','\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.','--manifest-url\x20<manifest-url>','2786475sVQYJI','webspatial-builder','7ONHbEv','--export\x20<export>','459aIIOWq','exports','--buildType\x20<buildType>','log','option','fetchUtils','run\x20without\x20build','2tRAZkx','2004600hozmBp','setDecompressResponseBuffer','Launch\x20WebSpatial\x20App','team\x20id','--teamId\x20<teamId>','requiredOption','--u\x20<username>','action','--tryWithoutBuild\x20<tryWithoutBuild>','1102156wydgdl','commander','5975418ExHCOi','build','run','599759WLBtYM','project\x20path','description','parseAsync','--base\x20<base>','--platform\x20<platform>','__esModule','configureHelp','setDownloadFile','fetch','3674848FSQjDA','base\x20path','command','Publish\x20WebSpatial\x20App','app\x20version','--manifest-url\x20<manifestUrl>','export\x20path','defineProperty','version','xr\x20platform','store','manifest\x20path','versions','--version\x20<version>','shutdown','launch'];_0x2f05=function(){return _0x3fee88;};return _0x2f05();}module[_0x263fe5(0x1f7)]=async()=>{const _0x3d385b=_0x263fe5;if((0x0,semver_1['major'])(process[_0x3d385b(0x1da)]['node'])<0xe)throw new Error('Current\x20Node.js\x20version\x20is\x20'+process['versions'][_0x3d385b(0x1e7)]+'.'+_0x3d385b(0x1f0));const _0x5afc67=new commander_1[(_0x3d385b(0x1ee))]();FetchUtils_1_1[_0x3d385b(0x1fb)]['setFetch'](fetch_1[_0x3d385b(0x1cd)]),FetchUtils_1_1[_0x3d385b(0x1fb)][_0x3d385b(0x1cc)](fetch_1['downloadFile']),FetchUtils_1_1['fetchUtils'][_0x3d385b(0x1b7)](fetch_1['decompressResponseBuffer']),await setupCommands(_0x5afc67),await _0x5afc67[_0x3d385b(0x1c7)](process[_0x3d385b(0x1ec)]);};function _0x4ad4(_0x96da52,_0x3d1227){const _0x2f0585=_0x2f05();return _0x4ad4=function(_0x4ad43a,_0x12e14b){_0x4ad43a=_0x4ad43a-0x1b6;let _0x4c1ef7=_0x2f0585[_0x4ad43a];return _0x4c1ef7;},_0x4ad4(_0x96da52,_0x3d1227);}async function setupCommands(_0x530af2){const _0x3def37=_0x263fe5,_0x24a66f=await(0x0,version_1[_0x3def37(0x1e0)])();_0x530af2[_0x3def37(0x1ed)](_0x3def37(0x1f3))[_0x3def37(0x1c6)]('WebSpatial\x20Builder\x20is\x20a\x20client-side\x20CLI\x20tool\x20used\x20to\x20generate\x20cross\x20platform\x20XRApp\x20projects.')[_0x3def37(0x1d6)](_0x24a66f,'-v,\x20--version')[_0x3def37(0x1cb)]({'showGlobalOptions':!![]}),_0x530af2[_0x3def37(0x1d0)](_0x3def37(0x1c3))[_0x3def37(0x1c6)]('By\x20compiling\x20or\x20running\x20directly\x20on\x20the\x20simulator\x20the\x20WebSpatial\x20App')['option'](_0x3def37(0x1e1),_0x3def37(0x1d9))[_0x3def37(0x1fa)](_0x3def37(0x1e9),'project\x20path')[_0x3def37(0x1fa)](_0x3def37(0x1d3),_0x3def37(0x1e3))[_0x3def37(0x1fa)](_0x3def37(0x1c9),'xr\x20platform')[_0x3def37(0x1fa)](_0x3def37(0x1c8),_0x3def37(0x1cf))['option'](_0x3def37(0x1ea),_0x3def37(0x1df))[_0x3def37(0x1fa)](_0x3def37(0x1be),_0x3def37(0x1fc))['action'](async _0x1f7db8=>{const _0x513b79=_0x3def37;await(0x0,build_1[_0x513b79(0x1c3)])(_0x1f7db8);}),_0x530af2[_0x3def37(0x1d0)]('build')[_0x3def37(0x1c6)]('Build\x20WebSpatial\x20App')[_0x3def37(0x1fa)](_0x3def37(0x1e1),_0x3def37(0x1d9))[_0x3def37(0x1fa)]('--project\x20<project>',_0x3def37(0x1c5))[_0x3def37(0x1fa)](_0x3def37(0x1f1),_0x3def37(0x1e3))[_0x3def37(0x1fa)](_0x3def37(0x1c9),_0x3def37(0x1d7))[_0x3def37(0x1fa)](_0x3def37(0x1db),'app\x20version')['option'](_0x3def37(0x1f8),_0x3def37(0x1ef))[_0x3def37(0x1fa)]('--export\x20<export>',_0x3def37(0x1d4))[_0x3def37(0x1fa)](_0x3def37(0x1ea),_0x3def37(0x1df))[_0x3def37(0x1bb)]('--base\x20<base>',_0x3def37(0x1cf))['requiredOption'](_0x3def37(0x1ba),_0x3def37(0x1b9))[_0x3def37(0x1bd)](async _0x2a560a=>{const _0x2e16a2=_0x3def37;console[_0x2e16a2(0x1f9)](_0x2a560a),await(0x0,build_1[_0x2e16a2(0x1c2)])(_0x2a560a);}),_0x530af2[_0x3def37(0x1d0)]('publish')[_0x3def37(0x1c6)](_0x3def37(0x1d1))['option'](_0x3def37(0x1e1),'manifest\x20path')[_0x3def37(0x1fa)](_0x3def37(0x1e9),'project\x20path')[_0x3def37(0x1fa)]('--manifest-url\x20<manifestUrl>',_0x3def37(0x1e3))['option'](_0x3def37(0x1c9),_0x3def37(0x1d7))['option'](_0x3def37(0x1f8),'app\x20build\x20type')[_0x3def37(0x1fa)](_0x3def37(0x1f5),_0x3def37(0x1d4))[_0x3def37(0x1fa)](_0x3def37(0x1ea),_0x3def37(0x1df))[_0x3def37(0x1bb)](_0x3def37(0x1c8),_0x3def37(0x1cf))[_0x3def37(0x1bb)](_0x3def37(0x1ba),_0x3def37(0x1b9))[_0x3def37(0x1bb)]('--version\x20<version>',_0x3def37(0x1d2))[_0x3def37(0x1bb)](_0x3def37(0x1bc),_0x3def37(0x1e8))[_0x3def37(0x1bb)]('--p\x20<password>','password')[_0x3def37(0x1bd)](async _0x5d2d74=>{const _0x5eb10c=_0x3def37;console[_0x5eb10c(0x1f9)](_0x5d2d74),await(0x0,build_1[_0x5eb10c(0x1d8)])(_0x5d2d74);}),_0x530af2[_0x3def37(0x1d0)]('launch')[_0x3def37(0x1c6)](_0x3def37(0x1b8))[_0x3def37(0x1fa)](_0x3def37(0x1ea),'bundle\x20id')[_0x3def37(0x1bd)](async _0x549555=>{const _0x452354=_0x3def37;console[_0x452354(0x1f9)](_0x549555),await(0x0,launch_1[_0x452354(0x1dd)])(_0x549555);}),_0x530af2[_0x3def37(0x1d0)](_0x3def37(0x1dc))['description'](_0x3def37(0x1e5))[_0x3def37(0x1bd)](async _0xc6432d=>{const _0x30381e=_0x3def37;console[_0x30381e(0x1f9)](_0xc6432d),await(0x0,shutdown_1[_0x30381e(0x1dc)])(_0xc6432d);});}
@@ -1,4 +1,4 @@
1
- import { ParsedArgs } from 'minimist';
2
- export declare function start(args: ParsedArgs, isDev?: boolean): Promise<any>;
3
- export declare function store(args: ParsedArgs): Promise<boolean>;
4
- export declare function run(args: ParsedArgs): Promise<boolean>;
1
+ import { ManifestInfo } from '../types';
2
+ export declare function build(args: any): Promise<ManifestInfo>;
3
+ export declare function store(args: any): Promise<void>;
4
+ export declare function run(args: any): Promise<void>;
@@ -1 +1 @@
1
- 'use strict';const _0x44dd44=_0x407f;(function(_0x3543c5,_0x399da6){const _0x13e987=_0x407f,_0x2a59be=_0x3543c5();while(!![]){try{const _0x3bdbe7=parseInt(_0x13e987(0x1c4))/0x1+-parseInt(_0x13e987(0x1d7))/0x2*(parseInt(_0x13e987(0x1d1))/0x3)+parseInt(_0x13e987(0x1e4))/0x4+-parseInt(_0x13e987(0x1d6))/0x5+parseInt(_0x13e987(0x1d8))/0x6*(parseInt(_0x13e987(0x1da))/0x7)+-parseInt(_0x13e987(0x1c5))/0x8*(parseInt(_0x13e987(0x1e0))/0x9)+-parseInt(_0x13e987(0x1d3))/0xa;if(_0x3bdbe7===_0x399da6)break;else _0x2a59be['push'](_0x2a59be['shift']());}catch(_0x4b3a50){_0x2a59be['push'](_0x2a59be['shift']());}}}(_0x45fd,0x781dd));function _0x45fd(){const _0x42d434=['teamId','1342508kjBbDd','log','project','json','upload','store','defineProperty','964125MGRIOB','24136CPKSEu','checkBuildParams','-------------------\x20build\x20start\x20-------------------','../resource','__esModule','PWAGenerator','name','moveProjectFrom','platform','dist','ResourceManager','./check','1194hkmjdT','parseProject','10386910xJEfqX','XcodeManager','start','402765KXBtZc','2546SbjiuW','48osIQPH','../xcode','802991kWtIfM','move\x20web\x20project:\x20ok','checkPlatformPath','app-store-connect','../pwa','generateIcon','297DxOeYY','checkStoreParams','generate\x20icon:\x20ok'];_0x45fd=function(){return _0x42d434;};return _0x45fd();}Object[_0x44dd44(0x1c3)](exports,_0x44dd44(0x1c9),{'value':!![]}),exports[_0x44dd44(0x1d5)]=start,exports[_0x44dd44(0x1c2)]=store,exports['run']=run;const pwa_1=require(_0x44dd44(0x1de)),resource_1=require(_0x44dd44(0x1c8)),xcode_1=require(_0x44dd44(0x1d9)),check_1=require(_0x44dd44(0x1d0));async function start(_0x54c5ff,_0x4181ee=![]){const _0x2c130a=_0x44dd44;var _0x48a89e;(0x0,check_1[_0x2c130a(0x1c6)])(_0x54c5ff,_0x4181ee),resource_1['ResourceManager'][_0x2c130a(0x1dc)](_0x54c5ff[_0x2c130a(0x1cd)]),console[_0x2c130a(0x1be)](_0x2c130a(0x1c7));let _0x4d5f06=await pwa_1[_0x2c130a(0x1ca)]['generator'](_0x54c5ff,_0x4181ee);!_0x4d5f06['fromNet']&&(await resource_1[_0x2c130a(0x1cf)][_0x2c130a(0x1cc)]((_0x48a89e=_0x54c5ff[_0x2c130a(0x1bf)])!==null&&_0x48a89e!==void 0x0?_0x48a89e:_0x2c130a(0x1ce)),console[_0x2c130a(0x1be)](_0x2c130a(0x1db)));let _0x2ceba7=await resource_1[_0x2c130a(0x1cf)][_0x2c130a(0x1df)](_0x4d5f06);return console[_0x2c130a(0x1be)](_0x2c130a(0x1e2)),await xcode_1[_0x2c130a(0x1d4)][_0x2c130a(0x1d2)]({'icon':_0x2ceba7,'manifestInfo':_0x4d5f06,'teamId':_0x54c5ff[_0x2c130a(0x1e3)],'version':_0x54c5ff['version'],'buildType':_0x54c5ff['buildType'],'export':_0x54c5ff['export']},_0x4181ee),console[_0x2c130a(0x1be)]('-------------------\x20build\x20end\x20-------------------'),_0x4d5f06;}function _0x407f(_0x3868ea,_0x43fca9){const _0x45fd67=_0x45fd();return _0x407f=function(_0x407fd7,_0x282dfa){_0x407fd7=_0x407fd7-0x1be;let _0x4920cf=_0x45fd67[_0x407fd7];return _0x4920cf;},_0x407f(_0x3868ea,_0x43fca9);}async function store(_0x5a5f64){const _0x1cc32d=_0x44dd44;resource_1[_0x1cc32d(0x1cf)]['checkPlatformPath'](_0x5a5f64[_0x1cc32d(0x1cd)]),(0x0,check_1[_0x1cc32d(0x1e1)])(_0x5a5f64);let _0x245ed0={'name':'WebSpatialTest'};_0x5a5f64['buildType']=_0x1cc32d(0x1dd);if(_0x5a5f64[_0x1cc32d(0x1cb)])_0x245ed0['name']=_0x5a5f64[_0x1cc32d(0x1cb)];else{const _0x438936=await start(_0x5a5f64);if(!_0x438936)return![];_0x245ed0[_0x1cc32d(0x1cb)]=_0x438936['json'][_0x1cc32d(0x1cb)];}return await xcode_1['XcodeManager'][_0x1cc32d(0x1c1)](_0x5a5f64,_0x245ed0),!![];}async function run(_0x1f511f){const _0x4e77b2=_0x44dd44;let _0x343434={'name':'WebSpatialTest','id':''};const _0xcb3bbc=await start(_0x1f511f,!![]);if(!_0xcb3bbc)return![];return _0x343434[_0x4e77b2(0x1cb)]=_0xcb3bbc[_0x4e77b2(0x1c0)][_0x4e77b2(0x1cb)],_0x343434['id']=_0xcb3bbc[_0x4e77b2(0x1c0)]['id'],await xcode_1[_0x4e77b2(0x1d4)]['runWithSimulator'](_0x343434),!![];}
1
+ 'use strict';function _0x2629(){const _0x210f6a=['1012602NLtHgL','json','111464WSEidw','checkStoreParams','__esModule','stringify','./check','640450HyVQuX','35uYnEGh','export','fromNet','buildType','-------------------\x20parse\x20start\x20-------------------','checkManifest','XcodeManager','3950710iROcHW','platform','ResourceManager','-------------------\x20parse\x20end\x20-------------------','generator','parseProject','project','6546276RoQLyz','1464876rUpPrJ','../pwa','recordManifest','../utils/history','runWithHistory','dist','store','runWithSimulator','upload','../xcode','true','WebSpatialTest','name','default','teamId','22UztAVM','build','285HoaFDG','log','1GmRWXk','7602DFcDhH','PWAGenerator','checkPlatformPath'];_0x2629=function(){return _0x210f6a;};return _0x2629();}const _0x359a3f=_0x5afc;function _0x5afc(_0x473287,_0x1de42f){const _0x262978=_0x2629();return _0x5afc=function(_0x5afc02,_0x4ebb62){_0x5afc02=_0x5afc02-0x75;let _0x2c8d7a=_0x262978[_0x5afc02];return _0x2c8d7a;},_0x5afc(_0x473287,_0x1de42f);}(function(_0x294e08,_0x59bd14){const _0x103963=_0x5afc,_0x5abf8b=_0x294e08();while(!![]){try{const _0x2f2518=-parseInt(_0x103963(0x7b))/0x1*(-parseInt(_0x103963(0x86))/0x2)+-parseInt(_0x103963(0x7f))/0x3+parseInt(_0x103963(0x96))/0x4+-parseInt(_0x103963(0x79))/0x5*(-parseInt(_0x103963(0x7c))/0x6)+parseInt(_0x103963(0x87))/0x7*(parseInt(_0x103963(0x81))/0x8)+parseInt(_0x103963(0x95))/0x9+parseInt(_0x103963(0x8e))/0xa*(-parseInt(_0x103963(0x77))/0xb);if(_0x2f2518===_0x59bd14)break;else _0x5abf8b['push'](_0x5abf8b['shift']());}catch(_0x5d19bc){_0x5abf8b['push'](_0x5abf8b['shift']());}}}(_0x2629,0x687f0));Object['defineProperty'](exports,_0x359a3f(0x83),{'value':!![]}),exports[_0x359a3f(0x78)]=build,exports[_0x359a3f(0x9c)]=store,exports['run']=run;const pwa_1=require(_0x359a3f(0x97)),resource_1=require('../resource'),xcode_1=require(_0x359a3f(0x9f)),check_1=require(_0x359a3f(0x85)),history_1=require(_0x359a3f(0x99));async function build(_0x2604a7){const _0x4275c6=_0x359a3f;var _0x492850;console[_0x4275c6(0x7a)]('-------------------\x20parse\x20start\x20-------------------'),resource_1['ResourceManager']['checkPlatformPath'](_0x2604a7[_0x4275c6(0x8f)]);const _0x164989=await doPwa(_0x2604a7),_0x59998c=await doReadyProject((_0x492850=_0x2604a7[_0x4275c6(0x94)])!==null&&_0x492850!==void 0x0?_0x492850:_0x4275c6(0x9b),_0x164989);return await doXcode(_0x2604a7,_0x59998c,_0x164989),console[_0x4275c6(0x7a)](_0x4275c6(0x91)),await xcode_1[_0x4275c6(0x8d)]['build'](_0x2604a7[_0x4275c6(0x88)]),_0x164989;}async function store(_0x227eb1){const _0x13a689=_0x359a3f;resource_1[_0x13a689(0x90)]['checkPlatformPath'](_0x227eb1[_0x13a689(0x8f)]),(0x0,check_1[_0x13a689(0x82)])(_0x227eb1);let _0x5f067c={'name':_0x13a689(0xa1)};_0x227eb1['buildType']='app-store-connect';if(_0x227eb1[_0x13a689(0xa2)])_0x5f067c[_0x13a689(0xa2)]=_0x227eb1['name'];else{const _0x5b9003=await build(_0x227eb1);_0x5f067c[_0x13a689(0xa2)]=_0x5b9003[_0x13a689(0x80)][_0x13a689(0xa2)];}await xcode_1[_0x13a689(0x8d)][_0x13a689(0x9e)](_0x227eb1,_0x5f067c);}async function run(_0x364ebf){const _0x2440cc=_0x359a3f;var _0x3cddcf;const _0x407334=JSON[_0x2440cc(0x84)](_0x364ebf);history_1[_0x2440cc(0x75)]['init'](_0x407334),console[_0x2440cc(0x7a)](_0x2440cc(0x8b)),resource_1[_0x2440cc(0x90)][_0x2440cc(0x7e)](_0x364ebf[_0x2440cc(0x8f)]);const _0x17fb5d=await doPwa(_0x364ebf,!![]);history_1['default'][_0x2440cc(0x98)](_0x17fb5d[_0x2440cc(0x80)]);if(_0x17fb5d[_0x2440cc(0x89)]||_0x364ebf['tryWithoutBuild']===_0x2440cc(0xa0)){if(history_1['default'][_0x2440cc(0x8c)](_0x17fb5d[_0x2440cc(0x80)])){console[_0x2440cc(0x7a)]('Same\x20as\x20the\x20previous\x20record'),await xcode_1[_0x2440cc(0x8d)][_0x2440cc(0x9a)]();return;}}const _0xccabe1=await doReadyProject((_0x3cddcf=_0x364ebf[_0x2440cc(0x94)])!==null&&_0x3cddcf!==void 0x0?_0x3cddcf:_0x2440cc(0x9b),_0x17fb5d);await doXcode(_0x364ebf,_0xccabe1,_0x17fb5d,!![]),console['log'](_0x2440cc(0x91)),await xcode_1[_0x2440cc(0x8d)][_0x2440cc(0x9d)]();}async function doPwa(_0x23f4fd,_0x2122c1=![]){const _0x3851a3=_0x359a3f;return(0x0,check_1['checkBuildParams'])(_0x23f4fd,_0x2122c1),await pwa_1[_0x3851a3(0x7d)][_0x3851a3(0x92)](_0x23f4fd,_0x2122c1);}async function doReadyProject(_0x55d9a4,_0x8e232f){const _0x3d6c4d=_0x359a3f;return!_0x8e232f[_0x3d6c4d(0x89)]&&(await resource_1[_0x3d6c4d(0x90)]['moveProjectFrom'](_0x55d9a4),console[_0x3d6c4d(0x7a)]('move\x20web\x20project:\x20ok')),await resource_1['ResourceManager']['generateIcon'](_0x8e232f);}async function doXcode(_0x3ff0e9,_0x11b71e,_0x5111a6,_0x57063b=![]){const _0x73fb9=_0x359a3f;await xcode_1['XcodeManager'][_0x73fb9(0x93)]({'icon':_0x11b71e,'manifestInfo':_0x5111a6,'teamId':_0x3ff0e9[_0x73fb9(0x76)],'version':_0x3ff0e9['version'],'buildType':_0x3ff0e9[_0x73fb9(0x8a)],'export':_0x3ff0e9[_0x73fb9(0x88)]},_0x57063b);}
@@ -1,3 +1,2 @@
1
- import { ParsedArgs } from 'minimist';
2
- export declare function checkBuildParams(args: ParsedArgs, isDev?: boolean): void;
3
- export declare function checkStoreParams(args: ParsedArgs): void;
1
+ export declare function checkBuildParams(args: any, isDev?: boolean): void;
2
+ export declare function checkStoreParams(args: any): void;
@@ -1 +1 @@
1
- 'use strict';function _0x2be2(_0x14ee52,_0x31d797){const _0xb76256=_0xb762();return _0x2be2=function(_0x2be2a0,_0x50faf5){_0x2be2a0=_0x2be2a0-0x16a;let _0x320eec=_0xb76256[_0x2be2a0];return _0x320eec;},_0x2be2(_0x14ee52,_0x31d797);}const _0x175ae8=_0x2be2;(function(_0x23dd62,_0x4eb1cc){const _0x4d8af1=_0x2be2,_0x79ae7f=_0x23dd62();while(!![]){try{const _0x1613f2=parseInt(_0x4d8af1(0x16b))/0x1*(-parseInt(_0x4d8af1(0x182))/0x2)+parseInt(_0x4d8af1(0x175))/0x3+parseInt(_0x4d8af1(0x181))/0x4+parseInt(_0x4d8af1(0x180))/0x5*(-parseInt(_0x4d8af1(0x183))/0x6)+-parseInt(_0x4d8af1(0x17a))/0x7+-parseInt(_0x4d8af1(0x17f))/0x8+parseInt(_0x4d8af1(0x17b))/0x9*(parseInt(_0x4d8af1(0x16e))/0xa);if(_0x1613f2===_0x4eb1cc)break;else _0x79ae7f['push'](_0x79ae7f['shift']());}catch(_0x2626b4){_0x79ae7f['push'](_0x79ae7f['shift']());}}}(_0xb762,0x9add3));Object[_0x175ae8(0x179)](exports,'__esModule',{'value':!![]}),exports['checkBuildParams']=checkBuildParams,exports['checkStoreParams']=checkStoreParams;const validate_1=require(_0x175ae8(0x177));function checkBuildParams(_0x2d7e5b,_0x3de8db=![]){const _0x38c1ac=_0x175ae8;if(_0x2d7e5b[_0x38c1ac(0x178)]&&_0x2d7e5b[_0x38c1ac(0x174)])throw new Error(_0x38c1ac(0x171));if(!_0x2d7e5b[_0x38c1ac(0x176)]&&!_0x3de8db)throw new Error(_0x38c1ac(0x173));if(_0x2d7e5b[_0x38c1ac(0x17d)]){if((0x0,validate_1['validateURL'])(_0x2d7e5b['base']))try{const _0x48f2f7=new URL(_0x2d7e5b[_0x38c1ac(0x17d)]);if(_0x48f2f7[_0x38c1ac(0x16f)]||_0x48f2f7[_0x38c1ac(0x172)])throw new Error(_0x38c1ac(0x170));}catch(_0x23960b){throw new Error(_0x38c1ac(0x170));}else{const _0x51ec6d=/(\?.*|\.\w+|#.*)$/,_0x455cc6=_0x2d7e5b['base'][_0x38c1ac(0x17e)]('/')[_0x38c1ac(0x16d)]()||'';if(_0x51ec6d[_0x38c1ac(0x16a)](_0x455cc6))throw new Error(_0x38c1ac(0x170));}}}function _0xb762(){const _0x2bf937=['split','550888QxGvaq','3957755NdoPrt','636260cBrrxm','681934EUMrdU','6tikpfw','test','3EKZrEZ','--u\x20and\x20--p\x20is\x20required','pop','10802420xoQQtU','search','The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.','--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','hash','--teamId\x20is\x20required','manifest-url','2403897SFYBBW','teamId','../pwa/validate','manifest','defineProperty','4222484cdxiGN','18akIsmT','version\x20is\x20required','base'];_0xb762=function(){return _0x2bf937;};return _0xb762();}function checkStoreParams(_0x438206){const _0x3d8569=_0x175ae8;if(!(_0x438206['u']&&_0x438206['p']))throw new Error(_0x3d8569(0x16c));if(!_0x438206['version'])throw new Error(_0x3d8569(0x17c));}
1
+ 'use strict';const _0x3bb6a6=_0x22a8;(function(_0x3a1af6,_0x1fa67f){const _0x544f8c=_0x22a8,_0x5ad900=_0x3a1af6();while(!![]){try{const _0x5cebb8=-parseInt(_0x544f8c(0xd8))/0x1+-parseInt(_0x544f8c(0xe0))/0x2*(parseInt(_0x544f8c(0xe4))/0x3)+-parseInt(_0x544f8c(0xd2))/0x4*(-parseInt(_0x544f8c(0xe9))/0x5)+-parseInt(_0x544f8c(0xdb))/0x6*(parseInt(_0x544f8c(0xeb))/0x7)+-parseInt(_0x544f8c(0xe5))/0x8*(-parseInt(_0x544f8c(0xd6))/0x9)+parseInt(_0x544f8c(0xec))/0xa*(parseInt(_0x544f8c(0xdf))/0xb)+parseInt(_0x544f8c(0xe1))/0xc*(parseInt(_0x544f8c(0xe6))/0xd);if(_0x5cebb8===_0x1fa67f)break;else _0x5ad900['push'](_0x5ad900['shift']());}catch(_0x26f1e2){_0x5ad900['push'](_0x5ad900['shift']());}}}(_0x5301,0x57eb4));function _0x5301(){const _0x55f21a=['--teamId\x20is\x20required','228126wpPhok','version\x20is\x20required','--u\x20and\x20--p\x20is\x20required','51762bvCuFU','defineProperty','pop','base','55xwMrwH','10nUIZLX','48VBaJCH','teamId','../pwa/validate','370725nzHVLi','8naLpLN','198146wcyzjC','version','The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.','899785aeDBzE','manifest','42Cntgab','922270MjwWqt','test','--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','checkStoreParams','16UkurEl','checkBuildParams','search','manifest-url','143532SDxAIc'];_0x5301=function(){return _0x55f21a;};return _0x5301();}function _0x22a8(_0x1b4771,_0x54dab2){const _0x530159=_0x5301();return _0x22a8=function(_0x22a831,_0x1fa1d9){_0x22a831=_0x22a831-0xcf;let _0xbe6f94=_0x530159[_0x22a831];return _0xbe6f94;},_0x22a8(_0x1b4771,_0x54dab2);}Object[_0x3bb6a6(0xdc)](exports,'__esModule',{'value':!![]}),exports[_0x3bb6a6(0xd3)]=checkBuildParams,exports[_0x3bb6a6(0xd1)]=checkStoreParams;const validate_1=require(_0x3bb6a6(0xe3));function checkBuildParams(_0x51b951,_0x4b74fd=![]){const _0x12753a=_0x3bb6a6;if(_0x51b951[_0x12753a(0xea)]&&_0x51b951[_0x12753a(0xd5)])throw new Error(_0x12753a(0xd0));if(!_0x51b951[_0x12753a(0xe2)]&&!_0x4b74fd)throw new Error(_0x12753a(0xd7));if(_0x51b951[_0x12753a(0xde)]){if((0x0,validate_1['validateURL'])(_0x51b951[_0x12753a(0xde)]))try{const _0x2b18c3=new URL(_0x51b951[_0x12753a(0xde)]);if(_0x2b18c3[_0x12753a(0xd4)]||_0x2b18c3['hash'])throw new Error(_0x12753a(0xe8));}catch(_0x28fe0){throw new Error(_0x12753a(0xe8));}else{const _0x3e2f2a=/(\?.*|\.\w+|#.*)$/,_0x5919ab=_0x51b951[_0x12753a(0xde)]['split']('/')[_0x12753a(0xdd)]()||'';if(_0x3e2f2a[_0x12753a(0xcf)](_0x5919ab))throw new Error(_0x12753a(0xe8));}}}function checkStoreParams(_0x1443e1){const _0x3dcaa6=_0x3bb6a6;if(!(_0x1443e1['u']&&_0x1443e1['p']))throw new Error(_0x3dcaa6(0xda));if(!_0x1443e1[_0x3dcaa6(0xe7)])throw new Error(_0x3dcaa6(0xd9));}
@@ -1 +1 @@
1
- 'use strict';const _0x2c15cc=_0x3d43;function _0x3d43(_0x19b221,_0x127aee){const _0x1ed51c=_0x1ed5();return _0x3d43=function(_0x3d4315,_0x113b58){_0x3d4315=_0x3d4315-0x79;let _0x19357c=_0x1ed51c[_0x3d4315];return _0x19357c;},_0x3d43(_0x19b221,_0x127aee);}(function(_0x4db358,_0x59b1a2){const _0x2bd40c=_0x3d43,_0x4cbba0=_0x4db358();while(!![]){try{const _0x37e7f7=-parseInt(_0x2bd40c(0x83))/0x1+-parseInt(_0x2bd40c(0x93))/0x2+-parseInt(_0x2bd40c(0x87))/0x3+-parseInt(_0x2bd40c(0x85))/0x4+-parseInt(_0x2bd40c(0x7d))/0x5+parseInt(_0x2bd40c(0x79))/0x6+parseInt(_0x2bd40c(0x81))/0x7;if(_0x37e7f7===_0x59b1a2)break;else _0x4cbba0['push'](_0x4cbba0['shift']());}catch(_0x2b5190){_0x4cbba0['push'](_0x4cbba0['shift']());}}}(_0x1ed5,0x6e13b));Object[_0x2c15cc(0x7c)](exports,'__esModule',{'value':!![]}),exports[_0x2c15cc(0x88)]=help;const Log_1=require(_0x2c15cc(0x80)),HELP_MESSAGES=new Map([[_0x2c15cc(0x8d),['webspatial\x20[command]\x20<options>','','',_0x2c15cc(0x91),_0x2c15cc(0x7f)+'\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project',_0x2c15cc(0x82),'publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect'][_0x2c15cc(0x7a)]('\x0a')],[_0x2c15cc(0x8e),[_0x2c15cc(0x84),'','',_0x2c15cc(0x8c),'','',_0x2c15cc(0x8f)][_0x2c15cc(0x7a)]('\x0a')],[_0x2c15cc(0x90),[_0x2c15cc(0x84),'','',_0x2c15cc(0x94),'','',_0x2c15cc(0x89)][_0x2c15cc(0x7a)]('\x0a')],[_0x2c15cc(0x8a),[_0x2c15cc(0x84),'','',_0x2c15cc(0x86),'','',_0x2c15cc(0x7b),'','',_0x2c15cc(0x7e)][_0x2c15cc(0x7a)]('\x0a')]]);function _0x1ed5(){const _0x53c5d7=['join','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','defineProperty','3186420CZjUjt','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','../utils/Log','12296256Ixvgeu','run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','140182DekiQa','Usage:','1099996qhmtcR','webspatial\x20publish\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','380205KOYpOx','help','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','publish','get','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','main','build','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','dev','help\x20................\x20shows\x20this\x20menu','ConsoleLog','296556VHAPDK','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','130470QstgCQ'];_0x1ed5=function(){return _0x53c5d7;};return _0x1ed5();}async function help(_0x428b48,_0x1ac165=new Log_1[(_0x2c15cc(0x92))](_0x2c15cc(0x88))){const _0x39634d=_0x2c15cc,_0x40e508=_0x428b48['_'][0x1],_0x213fa3=HELP_MESSAGES[_0x39634d(0x8b)](_0x40e508)||HELP_MESSAGES[_0x39634d(0x8b)]('main');return _0x1ac165['info'](_0x213fa3),!![];}
1
+ 'use strict';function _0xd377(){const _0x3d0687=['ConsoleLog','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','9RJxoEC','dev','help','1943416BIOUsw','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect','429736YVziiX','help\x20................\x20shows\x20this\x20menu','build','info','join','1330235TSUXfK','1227484KZCFep','9187724RGgsqs','../utils/Log','1133ZRozFR','\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','publish','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','1RXCSAT','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','__esModule','webspatial\x20[command]\x20<options>','main','Usage:','run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','webspatial\x20publish\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','175gEblJw','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','18zFoddm','defineProperty','6EdwQwM','112260LvdAGY','11542460MbyAqw','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project'];_0xd377=function(){return _0x3d0687;};return _0xd377();}const _0x1947af=_0x3ad9;(function(_0x2f6c30,_0x176bd1){const _0x5da323=_0x3ad9,_0x3d8910=_0x2f6c30();while(!![]){try{const _0x3a8cf3=-parseInt(_0x5da323(0x14c))/0x1*(-parseInt(_0x5da323(0x161))/0x2)+-parseInt(_0x5da323(0x158))/0x3*(-parseInt(_0x5da323(0x145))/0x4)+parseInt(_0x5da323(0x144))/0x5*(-parseInt(_0x5da323(0x156))/0x6)+-parseInt(_0x5da323(0x154))/0x7*(-parseInt(_0x5da323(0x13f))/0x8)+-parseInt(_0x5da323(0x15e))/0x9*(parseInt(_0x5da323(0x15a))/0xa)+parseInt(_0x5da323(0x148))/0xb*(-parseInt(_0x5da323(0x159))/0xc)+parseInt(_0x5da323(0x146))/0xd;if(_0x3a8cf3===_0x176bd1)break;else _0x3d8910['push'](_0x3d8910['shift']());}catch(_0x3880c0){_0x3d8910['push'](_0x3d8910['shift']());}}}(_0xd377,0xaf943));Object[_0x1947af(0x157)](exports,_0x1947af(0x14e),{'value':!![]}),exports[_0x1947af(0x160)]=help;const Log_1=require(_0x1947af(0x147)),HELP_MESSAGES=new Map([[_0x1947af(0x150),[_0x1947af(0x14f),'','',_0x1947af(0x140),_0x1947af(0x15b)+_0x1947af(0x149),_0x1947af(0x152),_0x1947af(0x162)][_0x1947af(0x143)]('\x0a')],[_0x1947af(0x141),[_0x1947af(0x151),'','','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','','',_0x1947af(0x14b)]['join']('\x0a')],[_0x1947af(0x15f),[_0x1947af(0x151),'','','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','','',_0x1947af(0x155)][_0x1947af(0x143)]('\x0a')],[_0x1947af(0x14a),[_0x1947af(0x151),'','',_0x1947af(0x153),'','',_0x1947af(0x15d),'','',_0x1947af(0x14d)]['join']('\x0a')]]);function _0x3ad9(_0xe37f1f,_0x58a863){const _0xd377c0=_0xd377();return _0x3ad9=function(_0x3ad965,_0x37276f){_0x3ad965=_0x3ad965-0x13f;let _0x1a6db5=_0xd377c0[_0x3ad965];return _0x1a6db5;},_0x3ad9(_0xe37f1f,_0x58a863);}async function help(_0x22e15d,_0x1d8375=new Log_1[(_0x1947af(0x15c))](_0x1947af(0x160))){const _0x2b2362=_0x1947af,_0x120786=_0x22e15d['_'][0x1],_0x374a8f=HELP_MESSAGES['get'](_0x120786)||HELP_MESSAGES['get'](_0x2b2362(0x150));return _0x1d8375[_0x2b2362(0x142)](_0x374a8f),!![];}
@@ -1 +1 @@
1
- 'use strict';const _0x3f4ab9=_0xfd91;(function(_0x340d09,_0x40ef2d){const _0x2104b8=_0xfd91,_0x1e102c=_0x340d09();while(!![]){try{const _0xb3379d=-parseInt(_0x2104b8(0x1ef))/0x1+parseInt(_0x2104b8(0x1f2))/0x2+parseInt(_0x2104b8(0x1ec))/0x3+-parseInt(_0x2104b8(0x1f6))/0x4+-parseInt(_0x2104b8(0x1f9))/0x5*(-parseInt(_0x2104b8(0x1f0))/0x6)+-parseInt(_0x2104b8(0x1f1))/0x7+-parseInt(_0x2104b8(0x1f7))/0x8*(parseInt(_0x2104b8(0x1ed))/0x9);if(_0xb3379d===_0x40ef2d)break;else _0x1e102c['push'](_0x1e102c['shift']());}catch(_0x396aa7){_0x1e102c['push'](_0x1e102c['shift']());}}}(_0x68e2,0x3bed6));function _0xfd91(_0x5d976d,_0x5e4480){const _0x68e254=_0x68e2();return _0xfd91=function(_0xfd911b,_0xc61b7f){_0xfd911b=_0xfd911b-0x1ec;let _0x44ec44=_0x68e254[_0xfd911b];return _0x44ec44;},_0xfd91(_0x5d976d,_0x5e4480);}Object['defineProperty'](exports,_0x3f4ab9(0x1ee),{'value':!![]}),exports[_0x3f4ab9(0x1f5)]=launch;const xcrun_1=require(_0x3f4ab9(0x1f4));function _0x68e2(){const _0x114e9f=['../xcode/xcrun','launch','663308UdKtqD','26672EUjDvW','default','13955uDghpK','428241nYehXj','927VYMRMw','__esModule','80961YMZCub','768hlvKSt','948948qVGOhq','942442YxgFXv','launchWithSimulator'];_0x68e2=function(){return _0x114e9f;};return _0x68e2();}async function launch(_0x8319d2){const _0x449d9e=_0x3f4ab9;var _0x236a71;const _0x2e956e=(_0x236a71=_0x8319d2['bundle-id'])!==null&&_0x236a71!==void 0x0?_0x236a71:'com.webspatial.test';return xcrun_1[_0x449d9e(0x1f8)][_0x449d9e(0x1f3)](_0x2e956e),!![];}
1
+ 'use strict';function _0x426a(_0xed93c6,_0x237b55){const _0x5a5708=_0x5a57();return _0x426a=function(_0x426a1e,_0x2133cf){_0x426a1e=_0x426a1e-0xe6;let _0x1fca57=_0x5a5708[_0x426a1e];return _0x1fca57;},_0x426a(_0xed93c6,_0x237b55);}const _0x3860cd=_0x426a;(function(_0x1880b6,_0x6a099e){const _0x166979=_0x426a,_0x3c008e=_0x1880b6();while(!![]){try{const _0xf604b4=-parseInt(_0x166979(0xe7))/0x1*(-parseInt(_0x166979(0xec))/0x2)+parseInt(_0x166979(0xf2))/0x3*(-parseInt(_0x166979(0xea))/0x4)+parseInt(_0x166979(0xf4))/0x5+-parseInt(_0x166979(0xe8))/0x6+-parseInt(_0x166979(0xe6))/0x7+parseInt(_0x166979(0xe9))/0x8+parseInt(_0x166979(0xf0))/0x9*(parseInt(_0x166979(0xf5))/0xa);if(_0xf604b4===_0x6a099e)break;else _0x3c008e['push'](_0x3c008e['shift']());}catch(_0x4ede16){_0x3c008e['push'](_0x3c008e['shift']());}}}(_0x5a57,0x72f29));function _0x5a57(){const _0x319576=['710tXGGqg','365232DucRbm','2304464InJOnd','804748QgaJey','launch','1306RkLRJk','defineProperty','com.webspatial.test','default','32607gzuLhb','launchWithSimulator','6lCTQvZ','bundle-id','1631630mfWlQJ','1610lkNAnv','../xcode/xcrun','5090722ZNXPWm'];_0x5a57=function(){return _0x319576;};return _0x5a57();}Object[_0x3860cd(0xed)](exports,'__esModule',{'value':!![]}),exports[_0x3860cd(0xeb)]=launch;const xcrun_1=require(_0x3860cd(0xf6));async function launch(_0x36c79e){const _0x820a9b=_0x3860cd;var _0x5abecb;const _0x4143f8=(_0x5abecb=_0x36c79e[_0x820a9b(0xf3)])!==null&&_0x5abecb!==void 0x0?_0x5abecb:_0x820a9b(0xee),_0xb33010={'name':'','id':_0x4143f8};return xcrun_1[_0x820a9b(0xef)][_0x820a9b(0xf1)](_0xb33010),!![];}
@@ -1 +1 @@
1
- 'use strict';function _0x3811(){const _0xce63a3=['../xcode/xcrun','217250mmwyZf','462440Dtcgpb','763592RPTErR','2882810RAsPZm','246093tHXYKr','2647827sJkOJp','261uWHyVf','__esModule','shutdownSimulator','28siJWuI','default','3057702IUatwV','shutdown'];_0x3811=function(){return _0xce63a3;};return _0x3811();}const _0x5ee746=_0x2883;function _0x2883(_0x515e82,_0x1cdecf){const _0x38115f=_0x3811();return _0x2883=function(_0x28830c,_0x357700){_0x28830c=_0x28830c-0xab;let _0x327b56=_0x38115f[_0x28830c];return _0x327b56;},_0x2883(_0x515e82,_0x1cdecf);}(function(_0x47d29b,_0x38b75b){const _0x3c028c=_0x2883,_0x2ca25f=_0x47d29b();while(!![]){try{const _0x2a3dd6=parseInt(_0x3c028c(0xad))/0x1+parseInt(_0x3c028c(0xab))/0x2+parseInt(_0x3c028c(0xaf))/0x3*(parseInt(_0x3c028c(0xb4))/0x4)+parseInt(_0x3c028c(0xae))/0x5+parseInt(_0x3c028c(0xb6))/0x6+-parseInt(_0x3c028c(0xb0))/0x7+parseInt(_0x3c028c(0xac))/0x8*(-parseInt(_0x3c028c(0xb1))/0x9);if(_0x2a3dd6===_0x38b75b)break;else _0x2ca25f['push'](_0x2ca25f['shift']());}catch(_0x9c0f76){_0x2ca25f['push'](_0x2ca25f['shift']());}}}(_0x3811,0x74b37));Object['defineProperty'](exports,_0x5ee746(0xb2),{'value':!![]}),exports[_0x5ee746(0xb7)]=shutdown;const xcrun_1=require(_0x5ee746(0xb8));async function shutdown(_0x2fbadf){const _0x5a1f03=_0x5ee746;return xcrun_1[_0x5a1f03(0xb5)][_0x5a1f03(0xb3)](),!![];}
1
+ 'use strict';function _0x1f6a(_0x52ca7c,_0x3a827b){const _0x522f6d=_0x522f();return _0x1f6a=function(_0x1f6a52,_0x29c0b7){_0x1f6a52=_0x1f6a52-0x1dd;let _0x4f1abf=_0x522f6d[_0x1f6a52];return _0x4f1abf;},_0x1f6a(_0x52ca7c,_0x3a827b);}const _0x175dbb=_0x1f6a;function _0x522f(){const _0xe0b8b2=['defineProperty','14QXrQms','5661184KTftyx','__esModule','37707xkEjfc','497871aVjhBo','3574800WxHMqZ','default','2201595vIOIUX','114PrDbEj','24302124iiZAnz','shutdown','../xcode/xcrun','5041016kYKAia'];_0x522f=function(){return _0xe0b8b2;};return _0x522f();}(function(_0x7d32ef,_0x3000fe){const _0x4e104c=_0x1f6a,_0x197927=_0x7d32ef();while(!![]){try{const _0x5042cb=parseInt(_0x4e104c(0x1e3))/0x1+-parseInt(_0x4e104c(0x1e7))/0x2*(parseInt(_0x4e104c(0x1e2))/0x3)+-parseInt(_0x4e104c(0x1dd))/0x4+parseInt(_0x4e104c(0x1e6))/0x5+parseInt(_0x4e104c(0x1e4))/0x6+parseInt(_0x4e104c(0x1df))/0x7*(-parseInt(_0x4e104c(0x1e0))/0x8)+parseInt(_0x4e104c(0x1e8))/0x9;if(_0x5042cb===_0x3000fe)break;else _0x197927['push'](_0x197927['shift']());}catch(_0x30989a){_0x197927['push'](_0x197927['shift']());}}}(_0x522f,0xcda03));Object[_0x175dbb(0x1de)](exports,_0x175dbb(0x1e1),{'value':!![]}),exports[_0x175dbb(0x1e9)]=shutdown;const xcrun_1=require(_0x175dbb(0x1ea));async function shutdown(_0x1ccea7){const _0x1f5cb7=_0x175dbb;return xcrun_1[_0x1f5cb7(0x1e5)]['shutdownSimulator'](),!![];}
@@ -1,2 +1 @@
1
- import { Log } from '../utils/Log';
2
- export declare function version(log?: Log): Promise<boolean>;
1
+ export declare function getVersion(): Promise<string>;
@@ -1 +1 @@
1
- 'use strict';const _0x2707fe=_0x1a24;function _0x4080(){const _0xa6cacf=['644392OCoABt','2868WyYDfS','__esModule','readFile','36NSGlGZ','toString','285880llTcxE','35001imQCJv','46TeTmix','parse','../../../package.json','defineProperty','join','10VMOOhx','promises','801655KannfQ','../utils/Log','version','519ILOliw','path','14366QnrlvY','4JDJOZg','315135KrQtot','ConsoleLog'];_0x4080=function(){return _0xa6cacf;};return _0x4080();}function _0x1a24(_0x28dd26,_0x396775){const _0x408069=_0x4080();return _0x1a24=function(_0x1a24ea,_0x438e35){_0x1a24ea=_0x1a24ea-0x1cd;let _0x5624e9=_0x408069[_0x1a24ea];return _0x5624e9;},_0x1a24(_0x28dd26,_0x396775);}(function(_0x9e5e88,_0x14d285){const _0x1c34a6=_0x1a24,_0x25cdc8=_0x9e5e88();while(!![]){try{const _0x3404c2=-parseInt(_0x1c34a6(0x1d4))/0x1+-parseInt(_0x1c34a6(0x1d5))/0x2*(parseInt(_0x1c34a6(0x1df))/0x3)+-parseInt(_0x1c34a6(0x1e2))/0x4*(-parseInt(_0x1c34a6(0x1dc))/0x5)+parseInt(_0x1c34a6(0x1d1))/0x6*(parseInt(_0x1c34a6(0x1d3))/0x7)+parseInt(_0x1c34a6(0x1cd))/0x8+-parseInt(_0x1c34a6(0x1e3))/0x9*(-parseInt(_0x1c34a6(0x1da))/0xa)+-parseInt(_0x1c34a6(0x1e1))/0xb*(parseInt(_0x1c34a6(0x1ce))/0xc);if(_0x3404c2===_0x14d285)break;else _0x25cdc8['push'](_0x25cdc8['shift']());}catch(_0x2791cd){_0x25cdc8['push'](_0x25cdc8['shift']());}}}(_0x4080,0x2975d));Object[_0x2707fe(0x1d8)](exports,_0x2707fe(0x1cf),{'value':!![]}),exports[_0x2707fe(0x1de)]=version;const fs=require('fs'),path=require(_0x2707fe(0x1e0)),Log_1=require(_0x2707fe(0x1dd));async function version(_0x4b1ec8=new Log_1[(_0x2707fe(0x1e4))]('version')){const _0x459426=_0x2707fe,_0x998d11=path[_0x459426(0x1d9)](__dirname,_0x459426(0x1d7)),_0x51a120=await(await fs[_0x459426(0x1db)][_0x459426(0x1d0)](_0x998d11))[_0x459426(0x1d2)](),_0x175c04=JSON[_0x459426(0x1d6)](_0x51a120);return _0x4b1ec8['info'](_0x175c04[_0x459426(0x1de)]),!![];}
1
+ 'use strict';const _0x4a208d=_0x1f0c;(function(_0x9f9f6b,_0x2247f7){const _0x4b9746=_0x1f0c,_0x4da26a=_0x9f9f6b();while(!![]){try{const _0x30f5ef=-parseInt(_0x4b9746(0x135))/0x1+parseInt(_0x4b9746(0x136))/0x2*(-parseInt(_0x4b9746(0x138))/0x3)+parseInt(_0x4b9746(0x13b))/0x4+parseInt(_0x4b9746(0x137))/0x5*(-parseInt(_0x4b9746(0x144))/0x6)+parseInt(_0x4b9746(0x134))/0x7+-parseInt(_0x4b9746(0x143))/0x8+parseInt(_0x4b9746(0x140))/0x9*(parseInt(_0x4b9746(0x13f))/0xa);if(_0x30f5ef===_0x2247f7)break;else _0x4da26a['push'](_0x4da26a['shift']());}catch(_0x1379ae){_0x4da26a['push'](_0x4da26a['shift']());}}}(_0xf8a1,0xa760d));function _0xf8a1(){const _0x473dc3=['34ikYWNd','1353110vuzxSV','3759IWUNYH','promises','defineProperty','3787652gUgNgG','version','join','path','3130ywCJOA','42741HjMgHl','readFile','parse','7341680cLRlJH','30ZtywKp','getVersion','8120812azbbUv','615764QLydBR'];_0xf8a1=function(){return _0x473dc3;};return _0xf8a1();}Object[_0x4a208d(0x13a)](exports,'__esModule',{'value':!![]}),exports[_0x4a208d(0x133)]=getVersion;const fs=require('fs'),path=require(_0x4a208d(0x13e));function _0x1f0c(_0x7c0499,_0x35469b){const _0xf8a1ca=_0xf8a1();return _0x1f0c=function(_0x1f0c09,_0xf4554a){_0x1f0c09=_0x1f0c09-0x133;let _0x2c13c0=_0xf8a1ca[_0x1f0c09];return _0x2c13c0;},_0x1f0c(_0x7c0499,_0x35469b);}async function getVersion(){const _0xffba59=_0x4a208d,_0x185a05=path[_0xffba59(0x13d)](__dirname,'../../../package.json'),_0x3a5773=await(await fs[_0xffba59(0x139)][_0xffba59(0x141)](_0x185a05))['toString'](),_0x3491fa=JSON[_0xffba59(0x142)](_0x3a5773);return _0x3491fa[_0xffba59(0x13c)];}
@@ -1 +1 @@
1
- 'use strict';const _0x477fbb=_0x19fe;(function(_0x2b32e4,_0x5c361f){const _0x5d1148=_0x19fe,_0x1001cf=_0x2b32e4();while(!![]){try{const _0x152352=-parseInt(_0x5d1148(0xd7))/0x1*(-parseInt(_0x5d1148(0xc5))/0x2)+-parseInt(_0x5d1148(0xba))/0x3*(-parseInt(_0x5d1148(0xbf))/0x4)+-parseInt(_0x5d1148(0xb0))/0x5*(parseInt(_0x5d1148(0xc0))/0x6)+-parseInt(_0x5d1148(0xe4))/0x7+parseInt(_0x5d1148(0xd5))/0x8+parseInt(_0x5d1148(0xe5))/0x9*(-parseInt(_0x5d1148(0xc3))/0xa)+parseInt(_0x5d1148(0xe7))/0xb;if(_0x152352===_0x5c361f)break;else _0x1001cf['push'](_0x1001cf['shift']());}catch(_0x28eff6){_0x1001cf['push'](_0x1001cf['shift']());}}}(_0x4ca1,0x26236));Object['defineProperty'](exports,_0x477fbb(0xb6),{'value':!![]}),exports['safelist']=void 0x0,exports['configId']=configId,exports['configStartUrl']=configStartUrl,exports[_0x477fbb(0xe8)]=configScope,exports['configDisplay']=configDisplay,exports[_0x477fbb(0xd6)]=configMainScene,exports[_0x477fbb(0xd9)]=configDeeplink;const utils_1=require('../utils/utils'),validate_1=require(_0x477fbb(0xc1)),path_1=require('path');function configId(_0xbf35ba,_0xf34f86){const _0x3c22a2=_0x477fbb;if(_0xf34f86)_0xbf35ba['id']=_0xf34f86;else try{const _0x6b9e1c=new URL(_0xbf35ba['id']);let _0x138c3c=_0x6b9e1c[_0x3c22a2(0xbd)][_0x3c22a2(0xe2)]('.')['reverse']();_0xbf35ba['id']=_0x138c3c[_0x3c22a2(0xb4)]('.');}catch(_0x357fa1){throw new Error(_0x3c22a2(0xee)+_0xbf35ba['id']+_0x3c22a2(0xe3));}}function _0x4ca1(){const _0x59b211=['fullscreen','106934CSUNaB','origin','default_size','splice','pathname','defaultSize','cwd','standalone','search','minimal-ui','sip','parseRouter','irc','sort','web+','ircs','313832hWndlw','configMainScene','1LBLjyU','wtai','configDeeplink','ssh','display','display_override','geo','xr_main_scene','resolve','normalize','length','split','\x20\x20is\x20not\x20a\x20valid\x20url','635803osWxBL','27SyPEhU','includes','3367067yxlJdC','configScope','webcal','protocol','news','height','replace','id:','sms','dynamic','contentMinSize','protocol_handlers','start_url','filter','tel','startsWith','map','urn','width','hash','ftps','2035fMfPFe','object','validateURL','url','join','./static-web','__esModule','safelist','magnet','resizability','246IJUvxb','automatic','scope','host','indexOf','5248Lfrgmd','258gLeagf','./validate','href','806110CxAowS'];_0x4ca1=function(){return _0x59b211;};return _0x4ca1();}function configStartUrl(_0x55aff4,_0x3e1cac,_0x1ba33d,_0x4a4604){const _0x1be00b=_0x477fbb;var _0x461dfe;let _0x67e372=(_0x461dfe=_0x55aff4['start_url'])!==null&&_0x461dfe!==void 0x0?_0x461dfe:'/';const _0x50a8ff=(0x0,validate_1[_0x1be00b(0xb2)])(_0x67e372),_0x54405a=_0x3e1cac[_0x1be00b(0xe1)]>0x0;if(_0x54405a){const _0x27c7ff=(0x0,validate_1[_0x1be00b(0xb2)])(_0x3e1cac);if(!_0x50a8ff&&!_0x27c7ff){const _0x47baf6=(0x0,path_1['resolve'])(_0x1be00b(0xb5)),_0x5afea0=(0x0,path_1[_0x1be00b(0xdf)])(_0x47baf6,_0x3e1cac,_0x67e372),_0x8ad275=(0x0,path_1[_0x1be00b(0xe0)])(_0x5afea0),_0x165093=(0x0,path_1[_0x1be00b(0xb4)])(_0x47baf6,_0x8ad275);_0x67e372=(0x0,path_1['relative'])(process[_0x1be00b(0xcb)](),_0x165093)[_0x1be00b(0xed)](/^(\.\.\/)+/,'./')['replace'](/\/$/,'');}else{if(_0x50a8ff&&!_0x27c7ff){const _0x226767=new URL(_0x67e372),_0x2fe8ed=_0x226767[_0x1be00b(0xc9)]+_0x226767[_0x1be00b(0xcd)]+_0x226767[_0x1be00b(0xae)];let _0x1cef96=new URL(_0x3e1cac,_0x226767[_0x1be00b(0xc6)]);_0x67e372=new URL(_0x2fe8ed,_0x1cef96)[_0x1be00b(0xc2)];}else{if(!_0x50a8ff&&_0x27c7ff){if(_0x67e372[_0x1be00b(0xf6)]('/')){const _0x44ffe0=new URL(_0x3e1cac);_0x67e372=_0x44ffe0[_0x1be00b(0xc6)]+(0x0,path_1[_0x1be00b(0xb4)])(_0x44ffe0['pathname'],_0x67e372);}else _0x67e372=new URL(_0x67e372,_0x3e1cac)[_0x1be00b(0xc2)];}else{if(_0x50a8ff&&_0x27c7ff){const _0x100008=new URL(_0x67e372),_0x214ac9=new URL(_0x3e1cac),_0x3507f6=_0x100008[_0x1be00b(0xc9)]+_0x100008['search']+_0x100008[_0x1be00b(0xae)];_0x67e372=new URL(_0x3507f6,_0x214ac9['origin']+_0x214ac9[_0x1be00b(0xc9)])[_0x1be00b(0xc2)];}}}}}else{if(_0x4a4604){const _0x2fc049=new URL(_0x1ba33d);if(!_0x50a8ff){const _0xef250e=new URL(_0x67e372,_0x2fc049[_0x1be00b(0xc6)]);_0x67e372=_0xef250e[_0x1be00b(0xc2)];}else{const _0x4973ab=new URL(_0x67e372);_0x67e372=_0x2fc049[_0x1be00b(0xc6)]+_0x4973ab[_0x1be00b(0xc9)]+_0x4973ab[_0x1be00b(0xcd)]+_0x4973ab['hash'];}}else{if(!_0x50a8ff){const _0x54035e=(0x0,path_1['resolve'])(_0x1be00b(0xb5)),_0x3ab712=(0x0,path_1[_0x1be00b(0xdf)])(_0x54035e,_0x67e372),_0x236d49=(0x0,path_1['normalize'])(_0x3ab712),_0xb070e1=(0x0,path_1[_0x1be00b(0xb4)])(_0x54035e,_0x236d49);_0x67e372=(0x0,path_1['relative'])(process[_0x1be00b(0xcb)](),_0xb070e1)[_0x1be00b(0xed)](/^(\.\.\/)+/,'./')[_0x1be00b(0xed)](/\/$/,'');}}}return _0x67e372;}function configScope(_0x8c77cf){const _0x101fd4=_0x477fbb;var _0x213c78;let _0xe3044e=(_0x213c78=_0x8c77cf[_0x101fd4(0xbc)])!==null&&_0x213c78!==void 0x0?_0x213c78:'/';const _0x1a4a47=(0x0,validate_1[_0x101fd4(0xb2)])(_0x8c77cf['start_url']),_0x402667=(0x0,validate_1[_0x101fd4(0xb2)])(_0xe3044e);if(_0x1a4a47&&_0x402667){const _0x5cfb31=new URL(_0xe3044e),_0x4a2d05=new URL(_0x8c77cf[_0x101fd4(0xf3)]);(_0x5cfb31[_0x101fd4(0xbd)]!==_0x4a2d05[_0x101fd4(0xbd)]||_0x8c77cf['start_url'][_0x101fd4(0xbe)](_0xe3044e)!==0x0)&&(_0xe3044e=(0x0,utils_1[_0x101fd4(0xd0)])(_0x8c77cf['start_url']));}else{if(_0x1a4a47&&!_0x402667)_0xe3044e=new URL(_0xe3044e,_0x8c77cf[_0x101fd4(0xf3)])['href'];else{if(!_0x1a4a47&&_0x402667){const _0x232a01=_0x8c77cf['start_url'][_0x101fd4(0xed)](/\/[^\/]+$/,'');_0xe3044e=(0x0,path_1['normalize'])(_0x232a01+'/');}else _0xe3044e=(0x0,path_1[_0x101fd4(0xb4)])((0x0,utils_1['parseRouter'])(_0x8c77cf[_0x101fd4(0xf3)]),_0xe3044e);}}_0x8c77cf[_0x101fd4(0xbc)]=_0xe3044e;}function configDisplay(_0x572ab9){const _0x25c90e=_0x477fbb;let _0x4bbe68=_0x572ab9[_0x25c90e(0xdb)];const _0x2fa970=[_0x25c90e(0xce),_0x25c90e(0xcc),_0x25c90e(0xc4)];!_0x2fa970[_0x25c90e(0xe6)](_0x4bbe68)&&(_0x4bbe68='standalone');if(_0x572ab9[_0x25c90e(0xdc)]&&_0x572ab9[_0x25c90e(0xdc)][_0x25c90e(0xe1)]>0x0){const _0x3215b1=_0x572ab9[_0x25c90e(0xdc)][_0x25c90e(0xf7)]((_0x1ac1b5,_0x102f99)=>({'mode':_0x1ac1b5,'index':_0x102f99}))[_0x25c90e(0xf4)](({mode:_0xf82da})=>_0x2fa970[_0x25c90e(0xe6)](_0xf82da))[_0x25c90e(0xd2)]((_0x116833,_0x2978df)=>_0x116833['index']-_0x2978df['index']);_0x3215b1[_0x25c90e(0xe1)]>0x0&&(_0x4bbe68=_0x3215b1[0x0]['mode']);}_0x572ab9[_0x25c90e(0xdb)]=_0x4bbe68;}function configMainScene(_0x470211){const _0x13dea9=_0x477fbb;var _0x47a669,_0x279c81;const _0x358f60=['automatic',_0x13dea9(0xf1),'contentSize'];let _0x553539={'defaultSize':{'width':0x500,'height':0x500},'resizability':_0x13dea9(0xbb)};if(_0x470211[_0x13dea9(0xde)]){if(typeof _0x470211[_0x13dea9(0xde)]===_0x13dea9(0xb1))_0x553539[_0x13dea9(0xca)][_0x13dea9(0xad)]=Number((_0x47a669=_0x470211[_0x13dea9(0xde)][_0x13dea9(0xc7)])===null||_0x47a669===void 0x0?void 0x0:_0x47a669[_0x13dea9(0xad)])>0x0?_0x470211[_0x13dea9(0xde)][_0x13dea9(0xc7)][_0x13dea9(0xad)]:0x500,_0x553539['defaultSize'][_0x13dea9(0xec)]=Number((_0x279c81=_0x470211[_0x13dea9(0xde)][_0x13dea9(0xc7)])===null||_0x279c81===void 0x0?void 0x0:_0x279c81['height'])>0x0?_0x470211['xr_main_scene'][_0x13dea9(0xc7)][_0x13dea9(0xec)]:0x500,_0x553539[_0x13dea9(0xb9)]=_0x358f60[_0x13dea9(0xe6)](_0x470211[_0x13dea9(0xde)]['resizability'])?_0x470211['xr_main_scene'][_0x13dea9(0xb9)]:_0x13dea9(0xbb),_0x470211['mainScene']=_0x553539;else typeof _0x470211[_0x13dea9(0xde)]==='string'&&(_0x470211['mainScene']=_0x13dea9(0xf0));}}function _0x19fe(_0x5943ca,_0x555950){const _0x4ca1f2=_0x4ca1();return _0x19fe=function(_0x19fe33,_0x47255e){_0x19fe33=_0x19fe33-0xad;let _0x42545f=_0x4ca1f2[_0x19fe33];return _0x42545f;},_0x19fe(_0x5943ca,_0x555950);}function configDeeplink(_0x554a2e){const _0x2006ad=_0x477fbb;if(_0x554a2e[_0x2006ad(0xf2)]&&_0x554a2e[_0x2006ad(0xf2)][_0x2006ad(0xe1)]>0x0)for(var _0x3ced1d=0x0;_0x3ced1d<_0x554a2e['protocol_handlers']['length'];_0x3ced1d++){const _0x121181=_0x554a2e['protocol_handlers'][_0x3ced1d];if(_0x121181[_0x2006ad(0xea)]&&(exports[_0x2006ad(0xb7)][_0x2006ad(0xe6)](_0x121181[_0x2006ad(0xea)])||_0x121181[_0x2006ad(0xea)]['indexOf'](_0x2006ad(0xd3))===0x0)){if(!((0x0,validate_1[_0x2006ad(0xb2)])(_0x121181[_0x2006ad(0xb3)])&&_0x121181[_0x2006ad(0xb3)][_0x2006ad(0xbe)](_0x554a2e[_0x2006ad(0xbc)])<0x0))continue;}_0x554a2e[_0x2006ad(0xf2)][_0x2006ad(0xc8)](_0x3ced1d,0x1),_0x3ced1d--;}}exports['safelist']=['bitcoin','ftp',_0x477fbb(0xaf),_0x477fbb(0xdd),'im',_0x477fbb(0xd1),_0x477fbb(0xd4),_0x477fbb(0xb8),'mailto','matrix','mms',_0x477fbb(0xeb),'nntp','openpgp4fpr','sftp',_0x477fbb(0xcf),_0x477fbb(0xef),'smsto',_0x477fbb(0xda),_0x477fbb(0xf5),_0x477fbb(0xf8),_0x477fbb(0xe9),_0x477fbb(0xd8),'xmpp'];
1
+ 'use strict';const _0x1f0a40=_0x802b;(function(_0x1e2de0,_0x42c736){const _0x983f30=_0x802b,_0x354264=_0x1e2de0();while(!![]){try{const _0x408224=-parseInt(_0x983f30(0x1d8))/0x1+-parseInt(_0x983f30(0x1ed))/0x2*(-parseInt(_0x983f30(0x1f6))/0x3)+-parseInt(_0x983f30(0x1be))/0x4+-parseInt(_0x983f30(0x1f5))/0x5*(-parseInt(_0x983f30(0x1c3))/0x6)+parseInt(_0x983f30(0x1b8))/0x7*(parseInt(_0x983f30(0x1cf))/0x8)+parseInt(_0x983f30(0x1db))/0x9*(parseInt(_0x983f30(0x1ff))/0xa)+-parseInt(_0x983f30(0x1d7))/0xb*(parseInt(_0x983f30(0x1d6))/0xc);if(_0x408224===_0x42c736)break;else _0x354264['push'](_0x354264['shift']());}catch(_0xabf5af){_0x354264['push'](_0x354264['shift']());}}}(_0x4d2a,0x7a6fa));Object[_0x1f0a40(0x1ef)](exports,'__esModule',{'value':!![]}),exports[_0x1f0a40(0x1c9)]=void 0x0,exports[_0x1f0a40(0x1c1)]=configId,exports[_0x1f0a40(0x1c7)]=configStartUrl,exports['configScope']=configScope,exports['configDisplay']=configDisplay,exports['configMainScene']=configMainScene,exports['configDeeplink']=configDeeplink;const utils_1=require(_0x1f0a40(0x205)),validate_1=require(_0x1f0a40(0x1fa)),path_1=require('path');function configId(_0xb0c7ef,_0x30f39d){const _0x5144ad=_0x1f0a40;if(_0x30f39d)_0xb0c7ef['id']=_0x30f39d;else try{const _0x1bda12=new URL(_0xb0c7ef['id']);let _0x589842=_0x1bda12[_0x5144ad(0x1ce)][_0x5144ad(0x1ee)]('.')[_0x5144ad(0x1dd)]();_0xb0c7ef['id']=_0x589842[_0x5144ad(0x1ba)]('.');}catch(_0x493df6){throw new Error(_0x5144ad(0x1e6)+_0xb0c7ef['id']+'\x20\x20is\x20not\x20a\x20valid\x20url');}}function configStartUrl(_0x3706ae,_0x5b2b36,_0x654607,_0x270027){const _0x4092ff=_0x1f0a40;var _0x7fae3b;let _0x2a0b95=(_0x7fae3b=_0x3706ae[_0x4092ff(0x1c6)])!==null&&_0x7fae3b!==void 0x0?_0x7fae3b:'/';const _0x3a2f91=(0x0,validate_1[_0x4092ff(0x1f4)])(_0x2a0b95),_0x468a5d=_0x5b2b36[_0x4092ff(0x1fc)]>0x0;if(_0x468a5d){const _0x3a845f=(0x0,validate_1[_0x4092ff(0x1f4)])(_0x5b2b36);if(!_0x3a2f91&&!_0x3a845f){const _0x3fc011=(0x0,path_1[_0x4092ff(0x1d4)])(_0x4092ff(0x1bb)),_0x5400e7=(0x0,path_1[_0x4092ff(0x1d4)])(_0x3fc011,_0x5b2b36,_0x2a0b95),_0x1ee035=(0x0,path_1['normalize'])(_0x5400e7),_0xc90739=(0x0,path_1['join'])(_0x3fc011,_0x1ee035);_0x2a0b95=(0x0,path_1['relative'])(process['cwd'](),_0xc90739)[_0x4092ff(0x1bd)](/^(\.\.\/)+/,'./')['replace'](/\/$/,'');}else{if(_0x3a2f91&&!_0x3a845f){const _0x53d79f=new URL(_0x2a0b95),_0x32e41b=_0x53d79f[_0x4092ff(0x1b6)]+_0x53d79f[_0x4092ff(0x1b9)]+_0x53d79f[_0x4092ff(0x1e4)];let _0xd11e4d=new URL(_0x5b2b36,_0x53d79f[_0x4092ff(0x1e9)]);_0x2a0b95=new URL(_0x32e41b,_0xd11e4d)['href'];}else{if(!_0x3a2f91&&_0x3a845f){if(_0x2a0b95[_0x4092ff(0x1f1)]('/')){const _0x37a201=new URL(_0x5b2b36);_0x2a0b95=_0x37a201[_0x4092ff(0x1e9)]+(0x0,path_1[_0x4092ff(0x1ba)])(_0x37a201[_0x4092ff(0x1b6)],_0x2a0b95);}else _0x2a0b95=new URL(_0x2a0b95,_0x5b2b36)[_0x4092ff(0x1eb)];}else{if(_0x3a2f91&&_0x3a845f){const _0x203559=new URL(_0x2a0b95),_0x5f2fd7=new URL(_0x5b2b36),_0x40ca22=_0x203559[_0x4092ff(0x1b6)]+_0x203559[_0x4092ff(0x1b9)]+_0x203559[_0x4092ff(0x1e4)];_0x2a0b95=new URL(_0x40ca22,_0x5f2fd7[_0x4092ff(0x1e9)]+_0x5f2fd7[_0x4092ff(0x1b6)])[_0x4092ff(0x1eb)];}}}}}else{if(_0x270027){const _0x5739c5=new URL(_0x654607);if(!_0x3a2f91){const _0x292585=new URL(_0x2a0b95,_0x5739c5['origin']);_0x2a0b95=_0x292585[_0x4092ff(0x1eb)];}else{const _0x403c96=new URL(_0x2a0b95);_0x2a0b95=_0x5739c5['origin']+_0x403c96[_0x4092ff(0x1b6)]+_0x403c96['search']+_0x403c96[_0x4092ff(0x1e4)];}}else{if(!_0x3a2f91){const _0x3b8a5b=(0x0,path_1[_0x4092ff(0x1d4)])(_0x4092ff(0x1bb)),_0x58a4c7=(0x0,path_1['resolve'])(_0x3b8a5b,_0x2a0b95),_0x99820b=(0x0,path_1[_0x4092ff(0x1e3)])(_0x58a4c7),_0x2a755a=(0x0,path_1[_0x4092ff(0x1ba)])(_0x3b8a5b,_0x99820b);_0x2a0b95=(0x0,path_1[_0x4092ff(0x203)])(process[_0x4092ff(0x1c2)](),_0x2a755a)['replace'](/^(\.\.\/)+/,'./')['replace'](/\/$/,'');}}}return _0x2a0b95;}function configScope(_0x412fa3){const _0x57e99e=_0x1f0a40;var _0x190d69;let _0x3afe00=(_0x190d69=_0x412fa3[_0x57e99e(0x1cd)])!==null&&_0x190d69!==void 0x0?_0x190d69:'/';const _0x3016ab=(0x0,validate_1['validateURL'])(_0x412fa3['start_url']),_0x74218e=(0x0,validate_1[_0x57e99e(0x1f4)])(_0x3afe00);if(_0x3016ab&&_0x74218e){const _0x344e07=new URL(_0x3afe00),_0x1a7537=new URL(_0x412fa3[_0x57e99e(0x1c6)]);(_0x344e07[_0x57e99e(0x1ce)]!==_0x1a7537[_0x57e99e(0x1ce)]||_0x412fa3[_0x57e99e(0x1c6)][_0x57e99e(0x1bc)](_0x3afe00)!==0x0)&&(_0x3afe00=(0x0,utils_1[_0x57e99e(0x1f0)])(_0x412fa3['start_url']));}else{if(_0x3016ab&&!_0x74218e)_0x3afe00=new URL(_0x3afe00,_0x412fa3[_0x57e99e(0x1c6)])[_0x57e99e(0x1eb)];else{if(!_0x3016ab&&_0x74218e){const _0x2ccbce=_0x412fa3[_0x57e99e(0x1c6)]['replace'](/\/[^\/]+$/,'');_0x3afe00=(0x0,path_1[_0x57e99e(0x1e3)])(_0x2ccbce+'/');}else _0x3afe00=(0x0,path_1['join'])((0x0,utils_1['parseRouter'])(_0x412fa3['start_url']),_0x3afe00);}}_0x412fa3[_0x57e99e(0x1cd)]=_0x3afe00;}function _0x4d2a(){const _0x451d2d=['91pPBYOr','search','join','./static-web','indexOf','replace','2606576GFnAjT','magnet','display_override','configId','cwd','12fAKeoJ','index','wtai','start_url','configStartUrl','sftp','safelist','mainScene','height','ftp','scope','host','615416CdfSTS','matrix','mailto','width','nntp','resolve','ftps','202668uYkNOs','451JiviwJ','676727PYWZrG','ssh','protocol_handlers','4239BPZbkH','default_size','reverse','contentSize','openpgp4fpr','irc','sort','display','normalize','hash','minimal-ui','id:','mms','dynamic','origin','bitcoin','href','resizability','5702TOFRsQ','split','defineProperty','parseRouter','startsWith','fullscreen','standalone','validateURL','745955rLbobk','762DIVSOf','string','map','defaultSize','./validate','mode','length','automatic','news','10610Kaumfd','ircs','web+','urn','relative','xr_main_scene','../utils/utils','includes','pathname','protocol'];_0x4d2a=function(){return _0x451d2d;};return _0x4d2a();}function configDisplay(_0x19d553){const _0x25c0ba=_0x1f0a40;let _0x3ece8d=_0x19d553[_0x25c0ba(0x1e2)];const _0x206697=[_0x25c0ba(0x1e5),_0x25c0ba(0x1f3),_0x25c0ba(0x1f2)];!_0x206697[_0x25c0ba(0x1b5)](_0x3ece8d)&&(_0x3ece8d=_0x25c0ba(0x1f3));if(_0x19d553[_0x25c0ba(0x1c0)]&&_0x19d553[_0x25c0ba(0x1c0)]['length']>0x0){const _0x38543b=_0x19d553[_0x25c0ba(0x1c0)][_0x25c0ba(0x1f8)]((_0x4d9307,_0x2645c8)=>({'mode':_0x4d9307,'index':_0x2645c8}))['filter'](({mode:_0x318c3d})=>_0x206697['includes'](_0x318c3d))[_0x25c0ba(0x1e1)]((_0x45b04f,_0x2652d9)=>_0x45b04f[_0x25c0ba(0x1c4)]-_0x2652d9[_0x25c0ba(0x1c4)]);_0x38543b[_0x25c0ba(0x1fc)]>0x0&&(_0x3ece8d=_0x38543b[0x0][_0x25c0ba(0x1fb)]);}_0x19d553[_0x25c0ba(0x1e2)]=_0x3ece8d;}function configMainScene(_0x1c01ab){const _0x34fe12=_0x1f0a40;var _0x4ad8b8,_0x4a3b02;const _0x534b98=['automatic','contentMinSize',_0x34fe12(0x1de)];let _0x342b43={'defaultSize':{'width':0x500,'height':0x500},'resizability':'automatic'};if(_0x1c01ab['xr_main_scene']){if(typeof _0x1c01ab[_0x34fe12(0x204)]==='object')_0x342b43[_0x34fe12(0x1f9)][_0x34fe12(0x1d2)]=Number((_0x4ad8b8=_0x1c01ab[_0x34fe12(0x204)][_0x34fe12(0x1dc)])===null||_0x4ad8b8===void 0x0?void 0x0:_0x4ad8b8[_0x34fe12(0x1d2)])>0x0?_0x1c01ab['xr_main_scene'][_0x34fe12(0x1dc)]['width']:0x500,_0x342b43['defaultSize'][_0x34fe12(0x1cb)]=Number((_0x4a3b02=_0x1c01ab[_0x34fe12(0x204)][_0x34fe12(0x1dc)])===null||_0x4a3b02===void 0x0?void 0x0:_0x4a3b02['height'])>0x0?_0x1c01ab[_0x34fe12(0x204)][_0x34fe12(0x1dc)][_0x34fe12(0x1cb)]:0x500,_0x342b43['resizability']=_0x534b98[_0x34fe12(0x1b5)](_0x1c01ab[_0x34fe12(0x204)][_0x34fe12(0x1ec)])?_0x1c01ab['xr_main_scene'][_0x34fe12(0x1ec)]:_0x34fe12(0x1fd),_0x1c01ab[_0x34fe12(0x1ca)]=_0x342b43;else typeof _0x1c01ab[_0x34fe12(0x204)]===_0x34fe12(0x1f7)&&(_0x1c01ab[_0x34fe12(0x1ca)]=_0x34fe12(0x1e8));}}function _0x802b(_0x4b3cd7,_0x35ed6d){const _0x4d2a8f=_0x4d2a();return _0x802b=function(_0x802b82,_0x4aa1c5){_0x802b82=_0x802b82-0x1b5;let _0x4ffb1d=_0x4d2a8f[_0x802b82];return _0x4ffb1d;},_0x802b(_0x4b3cd7,_0x35ed6d);}function configDeeplink(_0x479523){const _0x5026b5=_0x1f0a40;if(_0x479523[_0x5026b5(0x1da)]&&_0x479523[_0x5026b5(0x1da)][_0x5026b5(0x1fc)]>0x0)for(var _0x4f3a19=0x0;_0x4f3a19<_0x479523[_0x5026b5(0x1da)][_0x5026b5(0x1fc)];_0x4f3a19++){const _0x315401=_0x479523[_0x5026b5(0x1da)][_0x4f3a19];if(_0x315401[_0x5026b5(0x1b7)]&&(exports[_0x5026b5(0x1c9)]['includes'](_0x315401[_0x5026b5(0x1b7)])||_0x315401[_0x5026b5(0x1b7)]['indexOf'](_0x5026b5(0x201))===0x0)){if(!((0x0,validate_1[_0x5026b5(0x1f4)])(_0x315401['url'])&&_0x315401['url'][_0x5026b5(0x1bc)](_0x479523[_0x5026b5(0x1cd)])<0x0))continue;}_0x479523['protocol_handlers']['splice'](_0x4f3a19,0x1),_0x4f3a19--;}}exports['safelist']=[_0x1f0a40(0x1ea),_0x1f0a40(0x1cc),_0x1f0a40(0x1d5),'geo','im',_0x1f0a40(0x1e0),_0x1f0a40(0x200),_0x1f0a40(0x1bf),_0x1f0a40(0x1d1),_0x1f0a40(0x1d0),_0x1f0a40(0x1e7),_0x1f0a40(0x1fe),_0x1f0a40(0x1d3),_0x1f0a40(0x1df),_0x1f0a40(0x1c8),'sip','sms','smsto',_0x1f0a40(0x1d9),'tel',_0x1f0a40(0x202),'webcal',_0x1f0a40(0x1c5),'xmpp'];
@@ -1,21 +1,10 @@
1
- export interface InitArgs {
2
- 'manifest-url'?: string;
3
- manifest?: string;
4
- project?: string;
5
- base: string;
6
- 'bundle-id'?: string;
7
- }
8
- export interface ManifestInfo {
9
- json: Record<string, any>;
10
- url: string;
11
- fromNet: boolean;
12
- }
1
+ import { ManifestInfo, PWAInitArgs } from '../types';
13
2
  export declare class PWAGenerator {
14
3
  static DisplayModes: string[];
15
4
  private static defaultBundleId;
16
5
  private static defaultManifestJson;
17
6
  private static useDefaultManifestJson;
18
- static generator(args: InitArgs, isDev?: boolean): Promise<ManifestInfo>;
19
- static validate(args: InitArgs, isDev?: boolean): Promise<ManifestInfo>;
20
- static config(manifestInfo: ManifestInfo, args: InitArgs, isDev: boolean): void;
7
+ static generator(args: PWAInitArgs, isDev?: boolean): Promise<ManifestInfo>;
8
+ static validate(args: PWAInitArgs, isDev?: boolean): Promise<ManifestInfo>;
9
+ static config(manifestInfo: ManifestInfo, args: PWAInitArgs, isDev: boolean): void;
21
10
  }
@@ -1 +1 @@
1
- 'use strict';const _0x1dab7a=_0x4009;(function(_0x41f06a,_0x1e25c2){const _0x20fadc=_0x4009,_0x502c3b=_0x41f06a();while(!![]){try{const _0x236ed0=-parseInt(_0x20fadc(0x17e))/0x1+parseInt(_0x20fadc(0x176))/0x2+parseInt(_0x20fadc(0x180))/0x3+-parseInt(_0x20fadc(0x17a))/0x4*(-parseInt(_0x20fadc(0x167))/0x5)+-parseInt(_0x20fadc(0x158))/0x6*(parseInt(_0x20fadc(0x162))/0x7)+parseInt(_0x20fadc(0x15c))/0x8*(parseInt(_0x20fadc(0x169))/0x9)+-parseInt(_0x20fadc(0x16f))/0xa;if(_0x236ed0===_0x1e25c2)break;else _0x502c3b['push'](_0x502c3b['shift']());}catch(_0x2cb66d){_0x502c3b['push'](_0x502c3b['shift']());}}}(_0x4fe4,0xc4056));Object[_0x1dab7a(0x17c)](exports,_0x1dab7a(0x182),{'value':!![]}),exports[_0x1dab7a(0x161)]=void 0x0;function _0x4009(_0x152c9a,_0x479907){const _0x4fe465=_0x4fe4();return _0x4009=function(_0x400992,_0x2b4e2c){_0x400992=_0x400992-0x153;let _0x5392f0=_0x4fe465[_0x400992];return _0x5392f0;},_0x4009(_0x152c9a,_0x479907);}const path_1=require(_0x1dab7a(0x184)),config_1=require(_0x1dab7a(0x155)),load_1=require(_0x1dab7a(0x17f)),validate_1=require(_0x1dab7a(0x171)),fs=require('fs'),Cli_1=require(_0x1dab7a(0x170));class PWAGenerator{static async[_0x1dab7a(0x168)](_0x49c61f,_0x1a50b6=![]){const _0x3b5b0e=_0x1dab7a;let _0x4142d5=await this[_0x3b5b0e(0x17b)](_0x49c61f,_0x1a50b6);return console[_0x3b5b0e(0x16a)]('check\x20manifest.json:\x20ok'),await this[_0x3b5b0e(0x16b)](_0x4142d5,_0x49c61f,_0x1a50b6),console[_0x3b5b0e(0x16a)](_0x3b5b0e(0x174)),_0x4142d5;}static async[_0x1dab7a(0x17b)](_0xe84fd8,_0x36b862=![]){const _0x5d675e=_0x1dab7a;var _0x1eee95,_0x8b1f97;let _0x2e2d5f={},_0x12d751='',_0x3cf6b2=![],_0x445168=![];if(_0xe84fd8[_0x5d675e(0x15a)])_0x12d751=_0xe84fd8['manifest-url'],_0x3cf6b2=!![],_0x2e2d5f=await(0x0,load_1['loadJsonFromNet'])(_0xe84fd8[_0x5d675e(0x15a)]);else{_0xe84fd8[_0x5d675e(0x15f)]?_0x12d751=(0x0,path_1['join'])(process[_0x5d675e(0x154)](),_0xe84fd8['manifest']):(_0x12d751=(0x0,path_1[_0x5d675e(0x166)])(process[_0x5d675e(0x154)](),_0x5d675e(0x157)),!fs['existsSync'](_0x12d751)&&(_0x12d751=(0x0,path_1[_0x5d675e(0x166)])(process['cwd'](),_0x5d675e(0x173))));if(!fs[_0x5d675e(0x163)](_0x12d751)){if(_0x36b862)_0x445168=!![],Cli_1[_0x5d675e(0x175)][_0x5d675e(0x16a)][_0x5d675e(0x188)]('manifest.json\x20or\x20manifest.webmanifest\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode');else throw new Error(_0x5d675e(0x185));}_0x2e2d5f=_0x445168?this['defaultManifestJson']:await(0x0,load_1[_0x5d675e(0x15e)])(_0x12d751),this[_0x5d675e(0x186)]=_0x445168;}(0x0,validate_1[_0x5d675e(0x164)])(_0x2e2d5f,_0x36b862);let _0x2c94ee=(0x0,config_1[_0x5d675e(0x16c)])(_0x2e2d5f,(_0x1eee95=_0xe84fd8[_0x5d675e(0x178)])!==null&&_0x1eee95!==void 0x0?_0x1eee95:'',_0x12d751,_0x3cf6b2);var _0x2169a1=(0x0,validate_1[_0x5d675e(0x181)])(_0x2c94ee,_0x12d751,_0x3cf6b2,_0x36b862);_0x2e2d5f[_0x5d675e(0x156)]=_0x2c94ee;if(!_0x36b862)(0x0,validate_1[_0x5d675e(0x165)])(_0x2e2d5f,(_0x8b1f97=_0xe84fd8[_0x5d675e(0x160)])!==null&&_0x8b1f97!==void 0x0?_0x8b1f97:'');return await(0x0,validate_1[_0x5d675e(0x177)])(_0x2e2d5f,_0x12d751,_0x36b862),{'json':_0x2e2d5f,'url':_0x12d751,'fromNet':_0x2169a1};}static[_0x1dab7a(0x16b)](_0x661994,_0x269c81,_0x562b49){const _0x11d53e=_0x1dab7a;var _0x1710e2;let _0x2b285a=(_0x1710e2=_0x269c81[_0x11d53e(0x160)])!==null&&_0x1710e2!==void 0x0?_0x1710e2:'';_0x562b49&&!_0x661994[_0x11d53e(0x187)]['id']&&(_0x2b285a=this[_0x11d53e(0x16e)]),(0x0,config_1[_0x11d53e(0x16d)])(_0x661994['json'],_0x2b285a),(0x0,config_1[_0x11d53e(0x183)])(_0x661994[_0x11d53e(0x187)]),(0x0,config_1[_0x11d53e(0x15b)])(_0x661994['json']),(0x0,config_1[_0x11d53e(0x159)])(_0x661994[_0x11d53e(0x187)]),(0x0,config_1['configMainScene'])(_0x661994[_0x11d53e(0x187)]);}}exports[_0x1dab7a(0x161)]=PWAGenerator,PWAGenerator[_0x1dab7a(0x15d)]=[_0x1dab7a(0x179),_0x1dab7a(0x172)],PWAGenerator[_0x1dab7a(0x16e)]='com.webspatial.test',PWAGenerator[_0x1dab7a(0x153)]={'name':_0x1dab7a(0x17d),'display':'minimal-ui','start_url':'/','scope':'/'},PWAGenerator['useDefaultManifestJson']=![];function _0x4fe4(){const _0x47c587=['public/manifest.webmanifest','reset\x20manifest.json:\x20ok','Cli','1701844xVFKMC','checkIcons','base','standalone','88sBkPdn','validate','defineProperty','WebSpatialTest','901779jgOIRT','../resource/load','1835442CsnlDV','checkStartUrl','__esModule','configScope','path','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found','useDefaultManifestJson','json','warn','defaultManifestJson','cwd','./config','start_url','public/manifest.json','1832328uHOpZV','configDeeplink','manifest-url','configDisplay','5432hXeIPO','DisplayModes','loadJsonFromDisk','manifest','bundle-id','PWAGenerator','28CFBNfs','existsSync','checkManifestJson','checkId','join','362380LIEeQk','generator','20502eIhpOi','log','config','configStartUrl','configId','defaultBundleId','16777370MermHf','../Cli','./validate','minimal-ui'];_0x4fe4=function(){return _0x47c587;};return _0x4fe4();}
1
+ 'use strict';const _0x30a875=_0x1de9;(function(_0x277235,_0x13914a){const _0x3d0fe7=_0x1de9,_0x43dadd=_0x277235();while(!![]){try{const _0x2e0c00=-parseInt(_0x3d0fe7(0x17b))/0x1+-parseInt(_0x3d0fe7(0x163))/0x2*(-parseInt(_0x3d0fe7(0x156))/0x3)+-parseInt(_0x3d0fe7(0x175))/0x4*(parseInt(_0x3d0fe7(0x161))/0x5)+parseInt(_0x3d0fe7(0x15b))/0x6*(parseInt(_0x3d0fe7(0x177))/0x7)+-parseInt(_0x3d0fe7(0x16b))/0x8*(-parseInt(_0x3d0fe7(0x16e))/0x9)+parseInt(_0x3d0fe7(0x16a))/0xa+parseInt(_0x3d0fe7(0x152))/0xb*(-parseInt(_0x3d0fe7(0x170))/0xc);if(_0x2e0c00===_0x13914a)break;else _0x43dadd['push'](_0x43dadd['shift']());}catch(_0x1eb2cc){_0x43dadd['push'](_0x43dadd['shift']());}}}(_0x45c1,0xa4b9a));Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x30a875(0x16f)]=void 0x0;const path_1=require(_0x30a875(0x172)),config_1=require('./config'),load_1=require(_0x30a875(0x179)),validate_1=require(_0x30a875(0x154)),fs=require('fs'),utils_1=require(_0x30a875(0x174));class PWAGenerator{static async['generator'](_0x492da7,_0x386951=![]){const _0x30e5ca=_0x30a875;let _0x4fbab9=await this[_0x30e5ca(0x166)](_0x492da7,_0x386951);return console[_0x30e5ca(0x157)](_0x30e5ca(0x153)),await this['config'](_0x4fbab9,_0x492da7,_0x386951),console[_0x30e5ca(0x157)]('reset\x20manifest.json:\x20ok'),_0x4fbab9;}static async['validate'](_0x4fc52f,_0x116f89=![]){const _0x2763b2=_0x30a875;var _0x14451c,_0x278be2;let _0x447d2d={},_0x2b4808='',_0x3d9357=![],_0x197d60=![];if(_0x4fc52f[_0x2763b2(0x164)])_0x2b4808=_0x4fc52f[_0x2763b2(0x164)],_0x3d9357=!![],_0x447d2d=await(0x0,load_1[_0x2763b2(0x17c)])(_0x4fc52f[_0x2763b2(0x164)]);else{_0x4fc52f[_0x2763b2(0x178)]?_0x2b4808=(0x0,path_1[_0x2763b2(0x17e)])(process[_0x2763b2(0x159)](),_0x4fc52f[_0x2763b2(0x178)]):(_0x2b4808=(0x0,path_1[_0x2763b2(0x17e)])(process[_0x2763b2(0x159)](),_0x2763b2(0x15d)),!fs[_0x2763b2(0x16d)](_0x2b4808)&&(_0x2b4808=(0x0,path_1[_0x2763b2(0x17e)])(process[_0x2763b2(0x159)](),_0x2763b2(0x15c))));if(!fs[_0x2763b2(0x16d)](_0x2b4808)){if(_0x116f89)_0x197d60=!![],utils_1[_0x2763b2(0x17a)][_0x2763b2(0x176)](_0x2763b2(0x162));else throw new Error('manifest.json\x20or\x20manifest.webmanifest\x20not\x20found');}_0x447d2d=_0x197d60?this['defaultManifestJson']:await(0x0,load_1[_0x2763b2(0x165)])(_0x2b4808),this['useDefaultManifestJson']=_0x197d60;}(0x0,validate_1[_0x2763b2(0x15a)])(_0x447d2d,_0x116f89);let _0x3210ad=(0x0,config_1['configStartUrl'])(_0x447d2d,(_0x14451c=_0x4fc52f[_0x2763b2(0x173)])!==null&&_0x14451c!==void 0x0?_0x14451c:'',_0x2b4808,_0x3d9357);var _0x5effe5=(0x0,validate_1['checkStartUrl'])(_0x3210ad,_0x2b4808,_0x3d9357,_0x116f89);_0x447d2d[_0x2763b2(0x160)]=_0x3210ad;if(!_0x116f89)(0x0,validate_1[_0x2763b2(0x15f)])(_0x447d2d,(_0x278be2=_0x4fc52f[_0x2763b2(0x17d)])!==null&&_0x278be2!==void 0x0?_0x278be2:'');return await(0x0,validate_1[_0x2763b2(0x171)])(_0x447d2d,_0x2b4808,_0x116f89),{'json':_0x447d2d,'url':_0x2b4808,'fromNet':_0x5effe5};}static[_0x30a875(0x16c)](_0x31a34f,_0x50e85c,_0x13d695){const _0x46851e=_0x30a875;var _0x160ad3;let _0x55d048=(_0x160ad3=_0x50e85c['bundle-id'])!==null&&_0x160ad3!==void 0x0?_0x160ad3:'';_0x13d695&&!_0x31a34f[_0x46851e(0x168)]['id']&&(_0x55d048=this['defaultBundleId']),(0x0,config_1['configId'])(_0x31a34f['json'],_0x55d048),(0x0,config_1['configScope'])(_0x31a34f[_0x46851e(0x168)]),(0x0,config_1[_0x46851e(0x169)])(_0x31a34f['json']),(0x0,config_1['configDeeplink'])(_0x31a34f[_0x46851e(0x168)]),(0x0,config_1[_0x46851e(0x158)])(_0x31a34f[_0x46851e(0x168)]);}}function _0x1de9(_0xc96dea,_0x3f092a){const _0x45c13c=_0x45c1();return _0x1de9=function(_0x1de9dd,_0x4d81e4){_0x1de9dd=_0x1de9dd-0x152;let _0x575c48=_0x45c13c[_0x1de9dd];return _0x575c48;},_0x1de9(_0xc96dea,_0x3f092a);}function _0x45c1(){const _0xc91ec6=['path','base','../utils/utils','4508596traUFQ','warn','21muDaXC','manifest','../resource/load','CliLog','136770mSkyqu','loadJsonFromNet','bundle-id','join','1551BPVFUh','check\x20manifest.json:\x20ok','./validate','minimal-ui','3WQjPQg','log','configMainScene','cwd','checkManifestJson','2659938uqUkVT','public/manifest.webmanifest','public/manifest.json','useDefaultManifestJson','checkId','start_url','5EfguVN','manifest.json\x20or\x20manifest.webmanifest\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode','2277778NaFaYt','manifest-url','loadJsonFromDisk','validate','defaultBundleId','json','configDisplay','4299860fkMBIl','69064ekWgLw','config','existsSync','198bWjwEt','PWAGenerator','97884zWdvcw','checkIcons'];_0x45c1=function(){return _0xc91ec6;};return _0x45c1();}exports[_0x30a875(0x16f)]=PWAGenerator,PWAGenerator['DisplayModes']=['standalone',_0x30a875(0x155)],PWAGenerator[_0x30a875(0x167)]='com.webspatial.test',PWAGenerator['defaultManifestJson']={'name':'WebSpatialTest','display':_0x30a875(0x155),'start_url':'/','scope':'/'},PWAGenerator[_0x30a875(0x15e)]=![];
@@ -1 +1 @@
1
- 'use strict';const _0x71aa72=_0x4ca1;function _0x4ca1(_0x416dc5,_0x1e6edf){const _0x32b10c=_0x32b1();return _0x4ca1=function(_0x4ca17e,_0x4c4275){_0x4ca17e=_0x4ca17e-0x89;let _0x207f2a=_0x32b10c[_0x4ca17e];return _0x207f2a;},_0x4ca1(_0x416dc5,_0x1e6edf);}(function(_0x3f3bbd,_0x2ab49d){const _0x448952=_0x4ca1,_0x1473a4=_0x3f3bbd();while(!![]){try{const _0x310830=parseInt(_0x448952(0xbf))/0x1*(-parseInt(_0x448952(0xb4))/0x2)+parseInt(_0x448952(0xb2))/0x3*(parseInt(_0x448952(0xa8))/0x4)+parseInt(_0x448952(0x8b))/0x5*(parseInt(_0x448952(0x91))/0x6)+-parseInt(_0x448952(0xa2))/0x7+-parseInt(_0x448952(0xb5))/0x8+parseInt(_0x448952(0xbb))/0x9+-parseInt(_0x448952(0xb6))/0xa;if(_0x310830===_0x2ab49d)break;else _0x1473a4['push'](_0x1473a4['shift']());}catch(_0x1c79b7){_0x1473a4['push'](_0x1473a4['shift']());}}}(_0x32b1,0xd8e21));Object[_0x71aa72(0x95)](exports,_0x71aa72(0x93),{'value':!![]}),exports['checkManifestJson']=checkManifestJson,exports['checkStartUrl']=checkStartUrl,exports[_0x71aa72(0xa3)]=checkIcons,exports[_0x71aa72(0x9e)]=checkId,exports[_0x71aa72(0x9a)]=validateBundleId,exports[_0x71aa72(0x98)]=validateURL;const path_1=require('path'),CustomError_1=require('../utils/CustomError'),utils_1=require('../utils/utils'),imageHelper_1=require(_0x71aa72(0xa6)),load_1=require(_0x71aa72(0xc1)),Cli_1=require(_0x71aa72(0xad));function checkManifestJson(_0x58d558,_0x2dd9f2=![]){const _0x455a51=_0x71aa72;var _0xb4910c;const _0x186bf6=[];!_0x58d558[_0x455a51(0xab)]&&!_0x58d558['short_name']&&!_0x2dd9f2&&_0x186bf6['push']({'code':0xbbe,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','message_staring_params':{}});!((_0xb4910c=_0x58d558['icons'])===null||_0xb4910c===void 0x0?void 0x0:_0xb4910c['length'])&&!_0x2dd9f2&&_0x186bf6[_0x455a51(0xa7)]({'code':0xbbf,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','message_staring_params':{}});!_0x58d558[_0x455a51(0xaf)]&&!_0x2dd9f2&&_0x186bf6[_0x455a51(0xa7)]({'code':0xbc0,'message':_0x455a51(0xba),'message_staring_params':{}});if(_0x186bf6[_0x455a51(0xae)])throw new CustomError_1[(_0x455a51(0x8d))](_0x186bf6);}function checkStartUrl(_0x429dfd,_0x3f9450,_0x40471f,_0x529a21=![]){const _0x536f40=_0x71aa72;var _0x5effbc=![];if(_0x529a21)return _0x429dfd[_0x536f40(0xac)]('https://')||_0x429dfd['startsWith'](_0x536f40(0xa4));if(_0x40471f){if(_0x429dfd[_0x536f40(0xac)](_0x536f40(0xbd))){const _0x77c897=new URL(_0x429dfd),_0x550762=new URL(_0x3f9450);if(_0x77c897[_0x536f40(0xb0)]!==_0x550762[_0x536f40(0xb0)])throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x536f40(0x89),'message_staring_params':{}});}else{if(_0x429dfd[_0x536f40(0xac)]('http://'))throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x536f40(0xb3),'message_staring_params':{}});}}else{if(_0x429dfd['startsWith'](_0x536f40(0xbd))||_0x429dfd[_0x536f40(0xac)]('http://'))throw new CustomError_1[(_0x536f40(0x8d))]({'code':0xfa0,'message':_0x536f40(0x8e),'message_staring_params':{}});}return _0x5effbc;}function _0x32b1(){const _0xb83ab6=['../Cli','length','start_url','host','getHeight','67923zQoAUw','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','2nVNWKB','3379096HbeBvq','6140990FEROtb','isFullyOpaque','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20bundle\x20ID\x20must\x20be\x20in\x20reverse\x20domain\x20format\x20(e.g.\x20com.example.app)\x20and\x20no\x20longer\x20than\x20128\x20characters','icon\x20does\x20not\x20meet\x20the\x20standard,\x20use\x20default\x20icon\x20in\x20run\x20mode','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','12453804biqRUF','getWidth','https://','icons','454585TNGGYu','parseRouter','../resource/load','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','Cli','10HuAzAt','forEach','CustomError','Local\x20manifest\x20cannot\x20package\x20network\x20project','indexOf','join','2204952TrtvFh','warn','__esModule','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','defineProperty','split','purpose','validateURL','1024x1024','validateBundleId','ImageHelper','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','src','checkId','http','loadImageFromDisk','../../assets/icon-default.png','4831666MofiHp','checkIcons','http://','log','../resource/imageHelper','push','168KKQtMK','sizes','maskable','name','startsWith'];_0x32b1=function(){return _0xb83ab6;};return _0x32b1();}async function checkIcons(_0x536260,_0x7a5dbe,_0x5ea330=![]){const _0x384bf3=_0x71aa72;var _0x51c77b,_0x176787;if(!((_0x51c77b=_0x536260[_0x384bf3(0xbe)])===null||_0x51c77b===void 0x0?void 0x0:_0x51c77b['length'])&&_0x5ea330){_0x536260[_0x384bf3(0xbe)]=[{'src':(0x0,path_1['join'])(__dirname,_0x384bf3(0xa1)),'sizes':_0x384bf3(0x99),'purpose':'maskable'}],Cli_1[_0x384bf3(0x8a)][_0x384bf3(0xa5)][_0x384bf3(0x92)]('icon\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode');return;}const _0x2ef9f8=(0x0,utils_1[_0x384bf3(0xc0)])(_0x7a5dbe);let _0x2a15e2,_0x1287a7,_0x592275,_0x18da0a=0x0;for(var _0x252de3=0x0;_0x252de3<_0x536260['icons']['length'];_0x252de3++){const _0x21a7f8=_0x536260[_0x384bf3(0xbe)][_0x252de3];let _0x2a53cf=((_0x176787=_0x21a7f8[_0x384bf3(0x97)])===null||_0x176787===void 0x0?void 0x0:_0x176787[_0x384bf3(0x8f)](_0x384bf3(0xaa)))>=0x0;if(!_0x2a53cf)continue;let _0x4985e1=![],_0x1f8c67=_0x21a7f8[_0x384bf3(0x9d)],_0x4e92ee,_0x5d7a67=0x0;!validateURL(_0x1f8c67)&&(_0x1f8c67=(0x0,path_1[_0x384bf3(0x90)])(_0x2ef9f8,_0x1f8c67));if(_0x21a7f8[_0x384bf3(0xa9)]){const _0x26c07f=_0x21a7f8[_0x384bf3(0xa9)][_0x384bf3(0x96)]('\x20');_0x26c07f[_0x384bf3(0x8c)](_0x1b3554=>{const _0x12df5d=_0x384bf3;let _0x544a95=_0x1b3554[_0x12df5d(0x96)]('x');Number(_0x544a95[0x0])>=0x400&&Number(_0x544a95[0x1])>=0x400&&(_0x4985e1=!![],Number(_0x544a95[0x0])>_0x5d7a67&&(_0x5d7a67=Number(_0x544a95[0x0])));});}else _0x4e92ee=!_0x1f8c67['startsWith'](_0x384bf3(0x9f))?await(0x0,load_1[_0x384bf3(0xa0)])(_0x1f8c67):await(0x0,load_1['loadImageFromNet'])(_0x1f8c67),_0x4e92ee[_0x384bf3(0xbc)]()>=0x400&&_0x4e92ee[_0x384bf3(0xb1)]()>=0x400&&(_0x4985e1=!![],_0x4e92ee['getWidth']()>_0x5d7a67&&(_0x5d7a67=_0x4e92ee['getWidth']()));_0x4985e1&&_0x2a53cf&&(_0x5d7a67>_0x18da0a&&(_0x18da0a=_0x5d7a67,_0x2a15e2=_0x4e92ee,_0x1287a7=_0x1f8c67,_0x592275=_0x21a7f8['purpose']));}if(_0x18da0a===0x0){if(_0x5ea330){_0x536260[_0x384bf3(0xbe)]=[{'src':(0x0,path_1['join'])(__dirname,_0x384bf3(0xa1)),'sizes':'1024x1024','purpose':'maskable'}],Cli_1['Cli'][_0x384bf3(0xa5)][_0x384bf3(0x92)](_0x384bf3(0x94)),Cli_1['Cli'][_0x384bf3(0xa5)][_0x384bf3(0x92)](_0x384bf3(0xb9));return;}throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x384bf3(0x94),'message_staring_params':{}});}else _0x1287a7&&(_0x2a15e2=!_0x1287a7[_0x384bf3(0xac)]('http')?await(0x0,load_1[_0x384bf3(0xa0)])(_0x1287a7):await(0x0,load_1['loadImageFromNet'])(_0x1287a7));if(_0x2a15e2&&!imageHelper_1[_0x384bf3(0x9b)][_0x384bf3(0xb7)](_0x2a15e2)){if(_0x5ea330){Cli_1['Cli'][_0x384bf3(0xa5)]['warn']('In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable');return;}throw new CustomError_1[(_0x384bf3(0x8d))]({'code':0xfa0,'message':_0x384bf3(0x9c),'message_staring_params':{}});}_0x536260[_0x384bf3(0xbe)]=[{'src':_0x1287a7,'sizes':_0x18da0a+'x'+_0x18da0a,'purpose':_0x592275}];}function checkId(_0x45b62a,_0x20c9f9){const _0x2081d2=_0x71aa72;if(_0x20c9f9){if(!validateBundleId(_0x20c9f9))throw new CustomError_1[(_0x2081d2(0x8d))]({'code':0xfa0,'message':_0x2081d2(0xb8),'message_staring_params':{}});return;}!_0x45b62a['id']&&(_0x45b62a['id']=_0x45b62a['start_url']);if(!validateURL(_0x45b62a['id'])&&!_0x20c9f9)throw new CustomError_1[(_0x2081d2(0x8d))]({'code':0xfa0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','message_staring_params':{}});}function validateBundleId(_0x2fdc02){const _0x134dd7=/^(?=.{1,128}$)(?!.*\.\.)(?!^\.|.*\.$)[A-Za-z_][A-Za-z0-9_-]*(?:\.[A-Za-z_][A-Za-z0-9_-]*)+$/;return _0x134dd7['test'](_0x2fdc02);}function validateURL(_0xa640bd){try{return new URL(_0xa640bd),!![];}catch(_0xb34d0e){return![];}}
1
+ 'use strict';const _0x2b6909=_0x3cbb;(function(_0x38f8f3,_0x2c12c4){const _0x200f88=_0x3cbb,_0x407baf=_0x38f8f3();while(!![]){try{const _0x3fce49=parseInt(_0x200f88(0x95))/0x1*(-parseInt(_0x200f88(0xa5))/0x2)+-parseInt(_0x200f88(0x9a))/0x3+parseInt(_0x200f88(0x82))/0x4+-parseInt(_0x200f88(0xaa))/0x5+parseInt(_0x200f88(0x80))/0x6+-parseInt(_0x200f88(0xac))/0x7+parseInt(_0x200f88(0x92))/0x8*(parseInt(_0x200f88(0xad))/0x9);if(_0x3fce49===_0x2c12c4)break;else _0x407baf['push'](_0x407baf['shift']());}catch(_0x3c0c51){_0x407baf['push'](_0x407baf['shift']());}}}(_0x4368,0x6561e));Object[_0x2b6909(0x97)](exports,_0x2b6909(0xa4),{'value':!![]}),exports['checkManifestJson']=checkManifestJson,exports[_0x2b6909(0x96)]=checkStartUrl,exports[_0x2b6909(0x88)]=checkIcons,exports['checkId']=checkId,exports[_0x2b6909(0x98)]=validateBundleId,exports['validateURL']=validateURL;function _0x3cbb(_0x192c3d,_0x47d56f){const _0x4368c4=_0x4368();return _0x3cbb=function(_0x3cbb3d,_0x3c4977){_0x3cbb3d=_0x3cbb3d-0x76;let _0x2d2e20=_0x4368c4[_0x3cbb3d];return _0x2d2e20;},_0x3cbb(_0x192c3d,_0x47d56f);}const path_1=require(_0x2b6909(0x84)),CustomError_1=require(_0x2b6909(0x85)),utils_1=require(_0x2b6909(0x9b)),imageHelper_1=require(_0x2b6909(0x7d)),load_1=require(_0x2b6909(0xab)),utils_2=require(_0x2b6909(0x9b));function checkManifestJson(_0x29f921,_0x5694bd=![]){const _0x498cfb=_0x2b6909;var _0x610698;const _0x51679c=[];!_0x29f921[_0x498cfb(0x90)]&&!_0x29f921[_0x498cfb(0xa9)]&&!_0x5694bd&&_0x51679c[_0x498cfb(0x9c)]({'code':0xbbe,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','message_staring_params':{}});!((_0x610698=_0x29f921[_0x498cfb(0xa8)])===null||_0x610698===void 0x0?void 0x0:_0x610698['length'])&&!_0x5694bd&&_0x51679c[_0x498cfb(0x9c)]({'code':0xbbf,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','message_staring_params':{}});!_0x29f921[_0x498cfb(0x8b)]&&!_0x5694bd&&_0x51679c[_0x498cfb(0x9c)]({'code':0xbc0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','message_staring_params':{}});if(_0x51679c[_0x498cfb(0xa7)])throw new CustomError_1[(_0x498cfb(0x93))](_0x51679c);}function checkStartUrl(_0x277d11,_0x3aeb84,_0x28fa50,_0x2ac179=![]){const _0x5a8f9a=_0x2b6909;var _0x450f6f=![];if(_0x2ac179)return _0x277d11[_0x5a8f9a(0xa3)]('https://')||_0x277d11[_0x5a8f9a(0xa3)](_0x5a8f9a(0x76));if(_0x28fa50){if(_0x277d11['startsWith']('https://')){const _0xc9d909=new URL(_0x277d11),_0xd19eab=new URL(_0x3aeb84);if(_0xc9d909['host']!==_0xd19eab[_0x5a8f9a(0x8e)])throw new CustomError_1[(_0x5a8f9a(0x93))]({'code':0xfa0,'message':_0x5a8f9a(0x91),'message_staring_params':{}});}else{if(_0x277d11['startsWith']('http://'))throw new CustomError_1[(_0x5a8f9a(0x93))]({'code':0xfa0,'message':_0x5a8f9a(0x99),'message_staring_params':{}});}}else{if(_0x277d11[_0x5a8f9a(0xa3)](_0x5a8f9a(0xa6))||_0x277d11[_0x5a8f9a(0xa3)](_0x5a8f9a(0x76)))throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x5a8f9a(0xa1),'message_staring_params':{}});}return _0x450f6f;}async function checkIcons(_0x51002d,_0x175b66,_0x5d80ab=![]){const _0x3398ac=_0x2b6909;var _0x1d8ab6,_0x3a0d9c;if(!((_0x1d8ab6=_0x51002d[_0x3398ac(0xa8)])===null||_0x1d8ab6===void 0x0?void 0x0:_0x1d8ab6['length'])&&_0x5d80ab){_0x51002d[_0x3398ac(0xa8)]=[{'src':(0x0,path_1[_0x3398ac(0x9d)])(__dirname,_0x3398ac(0xa2)),'sizes':_0x3398ac(0x86),'purpose':_0x3398ac(0x8f)}],utils_2[_0x3398ac(0x7e)]['warn'](_0x3398ac(0x77));return;}const _0x21983e=(0x0,utils_1[_0x3398ac(0x8c)])(_0x175b66);let _0x5509d,_0x3b083b,_0x4a8121,_0x42e1ec=0x0;for(var _0x2aba27=0x0;_0x2aba27<_0x51002d[_0x3398ac(0xa8)][_0x3398ac(0xa7)];_0x2aba27++){const _0x319182=_0x51002d[_0x3398ac(0xa8)][_0x2aba27];let _0x2f19de=((_0x3a0d9c=_0x319182[_0x3398ac(0x83)])===null||_0x3a0d9c===void 0x0?void 0x0:_0x3a0d9c['indexOf']('maskable'))>=0x0;if(!_0x2f19de)continue;let _0xb0f2f9=![],_0x3341aa=_0x319182['src'],_0x5ef6d7,_0x434a1b=0x0;!validateURL(_0x3341aa)&&(_0x3341aa=(0x0,path_1[_0x3398ac(0x9d)])(_0x21983e,_0x3341aa));if(_0x319182[_0x3398ac(0x7b)]){const _0xde76c5=_0x319182[_0x3398ac(0x7b)][_0x3398ac(0x9e)]('\x20');_0xde76c5[_0x3398ac(0x7c)](_0x5b1625=>{const _0x42a4ae=_0x3398ac;let _0xb973b2=_0x5b1625[_0x42a4ae(0x9e)]('x');Number(_0xb973b2[0x0])>=0x400&&Number(_0xb973b2[0x1])>=0x400&&(_0xb0f2f9=!![],Number(_0xb973b2[0x0])>_0x434a1b&&(_0x434a1b=Number(_0xb973b2[0x0])));});}else _0x5ef6d7=!_0x3341aa[_0x3398ac(0xa3)](_0x3398ac(0x78))?await(0x0,load_1['loadImageFromDisk'])(_0x3341aa):await(0x0,load_1[_0x3398ac(0x9f)])(_0x3341aa),_0x5ef6d7[_0x3398ac(0x94)]()>=0x400&&_0x5ef6d7['getHeight']()>=0x400&&(_0xb0f2f9=!![],_0x5ef6d7['getWidth']()>_0x434a1b&&(_0x434a1b=_0x5ef6d7[_0x3398ac(0x94)]()));_0xb0f2f9&&_0x2f19de&&(_0x434a1b>_0x42e1ec&&(_0x42e1ec=_0x434a1b,_0x5509d=_0x5ef6d7,_0x3b083b=_0x3341aa,_0x4a8121=_0x319182[_0x3398ac(0x83)]));}if(_0x42e1ec===0x0){if(_0x5d80ab){_0x51002d['icons']=[{'src':(0x0,path_1[_0x3398ac(0x9d)])(__dirname,'../../assets/icon-default.png'),'sizes':_0x3398ac(0x86),'purpose':_0x3398ac(0x8f)}],utils_2[_0x3398ac(0x7e)][_0x3398ac(0x89)](_0x3398ac(0x8d)),utils_2[_0x3398ac(0x7e)][_0x3398ac(0x89)](_0x3398ac(0x8a));return;}throw new CustomError_1[(_0x3398ac(0x93))]({'code':0xfa0,'message':_0x3398ac(0x8d),'message_staring_params':{}});}else _0x3b083b&&(_0x5509d=!_0x3b083b[_0x3398ac(0xa3)]('http')?await(0x0,load_1[_0x3398ac(0x81)])(_0x3b083b):await(0x0,load_1[_0x3398ac(0x9f)])(_0x3b083b));if(_0x5509d&&!imageHelper_1[_0x3398ac(0x79)][_0x3398ac(0xa0)](_0x5509d)){if(_0x5d80ab){utils_2[_0x3398ac(0x7e)][_0x3398ac(0x89)](_0x3398ac(0x8d));return;}throw new CustomError_1[(_0x3398ac(0x93))]({'code':0xfa0,'message':_0x3398ac(0x87),'message_staring_params':{}});}_0x51002d[_0x3398ac(0xa8)]=[{'src':_0x3b083b,'sizes':_0x42e1ec+'x'+_0x42e1ec,'purpose':_0x4a8121}];}function checkId(_0x31bd2c,_0x206b02){const _0x385430=_0x2b6909;if(_0x206b02){if(!validateBundleId(_0x206b02))throw new CustomError_1[(_0x385430(0x93))]({'code':0xfa0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20bundle\x20ID\x20must\x20be\x20in\x20reverse\x20domain\x20format\x20(e.g.\x20com.example.app)\x20and\x20no\x20longer\x20than\x20128\x20characters','message_staring_params':{}});return;}!_0x31bd2c['id']&&(_0x31bd2c['id']=_0x31bd2c['start_url']);if(!validateURL(_0x31bd2c['id'])&&!_0x206b02)throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x385430(0x7f),'message_staring_params':{}});}function validateBundleId(_0x2405d2){const _0x3ca8e1=_0x2b6909,_0x300ee9=/^(?=.{1,128}$)(?!.*\.\.)(?!^\.|.*\.$)[A-Za-z_][A-Za-z0-9_-]*(?:\.[A-Za-z_][A-Za-z0-9_-]*)+$/;return _0x300ee9[_0x3ca8e1(0x7a)](_0x2405d2);}function _0x4368(){const _0x22145a=['http','ImageHelper','test','sizes','forEach','../resource/imageHelper','CliLog','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','2687760YGUQfs','loadImageFromDisk','2478776IjHexp','purpose','path','../utils/CustomError','1024x1024','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','checkIcons','warn','icon\x20does\x20not\x20meet\x20the\x20standard,\x20use\x20default\x20icon\x20in\x20run\x20mode','start_url','parseRouter','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','host','maskable','name','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','16KXpYrP','CustomError','getWidth','1isqzfv','checkStartUrl','defineProperty','validateBundleId','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','2012637kLIsCQ','../utils/utils','push','join','split','loadImageFromNet','isFullyOpaque','Local\x20manifest\x20cannot\x20package\x20network\x20project','../../assets/icon-default.png','startsWith','__esModule','346218QwLZWv','https://','length','icons','short_name','2232895fJUUxG','../resource/load','1263689ycJFCl','3684159oVslFu','http://','icon\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode'];_0x4368=function(){return _0x22145a;};return _0x4368();}function validateURL(_0x3cae20){try{return new URL(_0x3cae20),!![];}catch(_0x4b606f){return![];}}
@@ -1 +1 @@
1
- 'use strict';const _0x5aec97=_0x1be7;(function(_0x103662,_0x2a7029){const _0x3a6207=_0x1be7,_0x421ad6=_0x103662();while(!![]){try{const _0x20f6ca=-parseInt(_0x3a6207(0x17b))/0x1+-parseInt(_0x3a6207(0x186))/0x2+parseInt(_0x3a6207(0x189))/0x3*(parseInt(_0x3a6207(0x18b))/0x4)+-parseInt(_0x3a6207(0x187))/0x5*(parseInt(_0x3a6207(0x188))/0x6)+parseInt(_0x3a6207(0x18d))/0x7*(parseInt(_0x3a6207(0x17d))/0x8)+parseInt(_0x3a6207(0x17f))/0x9*(parseInt(_0x3a6207(0x183))/0xa)+parseInt(_0x3a6207(0x180))/0xb*(parseInt(_0x3a6207(0x17e))/0xc);if(_0x20f6ca===_0x2a7029)break;else _0x421ad6['push'](_0x421ad6['shift']());}catch(_0x343711){_0x421ad6['push'](_0x421ad6['shift']());}}}(_0x517a,0x6f5aa));Object[_0x5aec97(0x185)](exports,'__esModule',{'value':!![]}),exports[_0x5aec97(0x17a)]=copyDir,exports[_0x5aec97(0x17c)]=clearDir;const fs=require('fs');function _0x1be7(_0x1bad30,_0x2a239a){const _0x517ac4=_0x517a();return _0x1be7=function(_0x1be7e4,_0x342e00){_0x1be7e4=_0x1be7e4-0x179;let _0x5b8c7d=_0x517ac4[_0x1be7e4];return _0x5b8c7d;},_0x1be7(_0x1bad30,_0x2a239a);}function copyDir(_0x5f0df3,_0x336478){const _0x4749bc=fs['readdirSync'](_0x5f0df3);_0x4749bc['forEach'](_0x300012=>{const _0x93dfbc=_0x1be7,_0x119b52=_0x5f0df3+'/'+_0x300012,_0x2a9c7c=_0x336478+'/'+_0x300012,_0x352a66=fs[_0x93dfbc(0x181)](_0x119b52);if(_0x352a66[_0x93dfbc(0x18a)]())try{fs[_0x93dfbc(0x179)](_0x2a9c7c,fs['readFileSync'](_0x119b52));}catch(_0xc7b470){console[_0x93dfbc(0x182)](_0xc7b470);}else _0x352a66['isDirectory']()&&(!fs['existsSync'](_0x2a9c7c)&&fs[_0x93dfbc(0x184)](_0x2a9c7c,{'recursive':!![]}),copyDir(_0x119b52,_0x2a9c7c));});}function clearDir(_0x123cde){const _0x32f402=_0x5aec97,_0x98d416=fs[_0x32f402(0x190)](_0x123cde);_0x98d416[_0x32f402(0x18f)](_0x44aba5=>{const _0x43710c=_0x32f402,_0x4203ea=_0x123cde+'/'+_0x44aba5,_0x5e59da=fs[_0x43710c(0x181)](_0x4203ea);if(_0x5e59da['isFile']())try{fs[_0x43710c(0x18c)](_0x4203ea);}catch(_0x4b0010){console[_0x43710c(0x182)](_0x4b0010);}else _0x5e59da[_0x43710c(0x18e)]()&&clearDir(_0x4203ea);});}function _0x517a(){const _0xdf19eb=['clearDir','118232NYMAsd','24agXhqT','45rJFJdX','3270201Txgroi','statSync','log','914770TZdoxO','mkdirSync','defineProperty','1776554JWhFlb','5WRALuZ','3064710quItXU','1363833XhQDAo','isFile','8oCkOOg','unlinkSync','70YUUoDY','isDirectory','forEach','readdirSync','writeFileSync','copyDir','253811UakSLn'];_0x517a=function(){return _0xdf19eb;};return _0x517a();}
1
+ 'use strict';(function(_0x4f9971,_0x423292){const _0x5c86f1=_0x7ec7,_0x2c39db=_0x4f9971();while(!![]){try{const _0x2f6755=parseInt(_0x5c86f1(0x113))/0x1*(-parseInt(_0x5c86f1(0x10e))/0x2)+parseInt(_0x5c86f1(0x116))/0x3+-parseInt(_0x5c86f1(0x11e))/0x4+-parseInt(_0x5c86f1(0x118))/0x5*(-parseInt(_0x5c86f1(0x10f))/0x6)+-parseInt(_0x5c86f1(0x114))/0x7+-parseInt(_0x5c86f1(0x110))/0x8+parseInt(_0x5c86f1(0x115))/0x9;if(_0x2f6755===_0x423292)break;else _0x2c39db['push'](_0x2c39db['shift']());}catch(_0xdcd263){_0x2c39db['push'](_0x2c39db['shift']());}}}(_0x35f8,0xa3b09));function _0x35f8(){const _0xbc8bbf=['readdirSync','isDirectory','18EGcEFs','4911844JqIxta','23062923vhQoUP','2716506TDRCxs','existsSync','184310VYDJFr','statSync','readFileSync','isFile','unlinkSync','writeFileSync','3887648rQaFGL','forEach','log','119752gSSiEK','42BsePAV','2433904PZYwOH'];_0x35f8=function(){return _0xbc8bbf;};return _0x35f8();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports['copyDir']=copyDir,exports['clearDir']=clearDir;const fs=require('fs');function copyDir(_0x2a35af,_0x37fa0b){const _0x5bc53d=_0x7ec7,_0x5c4986=fs[_0x5bc53d(0x111)](_0x2a35af);_0x5c4986[_0x5bc53d(0x11f)](_0x15a274=>{const _0x18baa0=_0x5bc53d,_0x1bc2a5=_0x2a35af+'/'+_0x15a274,_0x13825e=_0x37fa0b+'/'+_0x15a274,_0x1a7144=fs[_0x18baa0(0x119)](_0x1bc2a5);if(_0x1a7144[_0x18baa0(0x11b)]())try{fs[_0x18baa0(0x11d)](_0x13825e,fs[_0x18baa0(0x11a)](_0x1bc2a5));}catch(_0x4779ce){console[_0x18baa0(0x120)](_0x4779ce);}else _0x1a7144[_0x18baa0(0x112)]()&&(!fs[_0x18baa0(0x117)](_0x13825e)&&fs['mkdirSync'](_0x13825e,{'recursive':!![]}),copyDir(_0x1bc2a5,_0x13825e));});}function _0x7ec7(_0x2fe917,_0x3e82b4){const _0x35f8fb=_0x35f8();return _0x7ec7=function(_0x7ec7b8,_0x2cf45d){_0x7ec7b8=_0x7ec7b8-0x10e;let _0x43ebab=_0x35f8fb[_0x7ec7b8];return _0x43ebab;},_0x7ec7(_0x2fe917,_0x3e82b4);}function clearDir(_0x45cbc8){const _0x1b1ea2=fs['readdirSync'](_0x45cbc8);_0x1b1ea2['forEach'](_0x170dd0=>{const _0x40b333=_0x7ec7,_0x5c6713=_0x45cbc8+'/'+_0x170dd0,_0x1ed787=fs[_0x40b333(0x119)](_0x5c6713);if(_0x1ed787['isFile']())try{fs[_0x40b333(0x11c)](_0x5c6713);}catch(_0x21b90f){console[_0x40b333(0x120)](_0x21b90f);}else _0x1ed787[_0x40b333(0x112)]()&&clearDir(_0x5c6713);});}
@@ -1 +1 @@
1
- 'use strict';function _0x6952(_0x323868,_0x1221ad){const _0x1ea8bb=_0x1ea8();return _0x6952=function(_0x6952e1,_0x3dfa31){_0x6952e1=_0x6952e1-0x188;let _0x458a7d=_0x1ea8bb[_0x6952e1];return _0x458a7d;},_0x6952(_0x323868,_0x1221ad);}const _0x55b3fd=_0x6952;(function(_0x5031a5,_0x4ca979){const _0x4af58f=_0x6952,_0x6d257f=_0x5031a5();while(!![]){try{const _0x635971=parseInt(_0x4af58f(0x19e))/0x1+-parseInt(_0x4af58f(0x194))/0x2+-parseInt(_0x4af58f(0x19a))/0x3*(parseInt(_0x4af58f(0x1a2))/0x4)+parseInt(_0x4af58f(0x1a3))/0x5+parseInt(_0x4af58f(0x195))/0x6*(-parseInt(_0x4af58f(0x18b))/0x7)+parseInt(_0x4af58f(0x19c))/0x8*(-parseInt(_0x4af58f(0x18c))/0x9)+parseInt(_0x4af58f(0x18e))/0xa;if(_0x635971===_0x4ca979)break;else _0x6d257f['push'](_0x6d257f['shift']());}catch(_0x2177fc){_0x6d257f['push'](_0x6d257f['shift']());}}}(_0x1ea8,0x3eea6));function _0x1ea8(){const _0x1fe6f5=['jimp','asPng','render','webp2PngBuffer','247350UJsNSU','6JTgMLY','isFullyOpaque','toFormat','bitmap','defineProperty','1171689HNVQGB','data','2487416HPweDl','svg2img','86721CYyAyG','ImageHelper','createImg','width','4lbPcuS','1112375HkkkGf','@resvg/resvg-js','__esModule','getHeight','2092559tyjXEx','9DJuEoY','getWidth','10726080fFZEvX','toBuffer'];_0x1ea8=function(){return _0x1fe6f5;};return _0x1ea8();}Object[_0x55b3fd(0x199)](exports,_0x55b3fd(0x189),{'value':!![]}),exports[_0x55b3fd(0x19f)]=void 0x0;const Jimp=require(_0x55b3fd(0x190)),sharp=require('sharp'),resvg_js_1=require(_0x55b3fd(0x188));class ImageHelper{static[_0x55b3fd(0x1a0)](_0xb6569a){return new Jimp(_0xb6569a,_0xb6569a,0x0);}static async[_0x55b3fd(0x193)](_0x962dd8){const _0x43e50=_0x55b3fd;return await sharp(_0x962dd8)[_0x43e50(0x197)]('png')[_0x43e50(0x18f)]();}static async[_0x55b3fd(0x19d)](_0x402764){const _0x3f268e=_0x55b3fd,_0x270973={'fitTo':{'mode':_0x3f268e(0x1a1),'value':0x400}},_0x5bcac1=new resvg_js_1['Resvg'](_0x402764,_0x270973),_0x3d02fc=_0x5bcac1[_0x3f268e(0x192)](),_0x1cfbf1=_0x3d02fc[_0x3f268e(0x191)]();return _0x1cfbf1;}static[_0x55b3fd(0x196)](_0x1771d6){const _0x28d2b6=_0x55b3fd,_0x50d32f=_0x1771d6[_0x28d2b6(0x18d)]()*_0x1771d6[_0x28d2b6(0x18a)]();for(var _0x488e25=0x0;_0x488e25<_0x50d32f;_0x488e25++){const _0x438588=_0x488e25*0x4+0x3;if(_0x1771d6[_0x28d2b6(0x198)][_0x28d2b6(0x19b)][_0x438588]<0xff)return![];}return!![];}}exports[_0x55b3fd(0x19f)]=ImageHelper;
1
+ 'use strict';const _0x4fc19d=_0x154b;(function(_0x30c10d,_0x33f952){const _0x2fd44f=_0x154b,_0x461b71=_0x30c10d();while(!![]){try{const _0x118a84=-parseInt(_0x2fd44f(0xf3))/0x1*(parseInt(_0x2fd44f(0xe6))/0x2)+parseInt(_0x2fd44f(0xef))/0x3+-parseInt(_0x2fd44f(0xed))/0x4*(parseInt(_0x2fd44f(0xe1))/0x5)+parseInt(_0x2fd44f(0xec))/0x6+parseInt(_0x2fd44f(0xe2))/0x7*(-parseInt(_0x2fd44f(0xe9))/0x8)+parseInt(_0x2fd44f(0xdb))/0x9+parseInt(_0x2fd44f(0xe5))/0xa;if(_0x118a84===_0x33f952)break;else _0x461b71['push'](_0x461b71['shift']());}catch(_0x3df5f6){_0x461b71['push'](_0x461b71['shift']());}}}(_0x372d,0x44abb));function _0x154b(_0x18583b,_0x44e351){const _0x372d79=_0x372d();return _0x154b=function(_0x154ba0,_0x229932){_0x154ba0=_0x154ba0-0xdb;let _0x23275f=_0x372d79[_0x154ba0];return _0x23275f;},_0x154b(_0x18583b,_0x44e351);}Object['defineProperty'](exports,_0x4fc19d(0xf0),{'value':!![]}),exports[_0x4fc19d(0xdf)]=void 0x0;function _0x372d(){const _0x3b4612=['render','Resvg','8194790Hyhfyx','2fVetMh','jimp','sharp','455368GhyCdI','toFormat','bitmap','159348RfRWuU','908LhDIjC','webp2PngBuffer','707175OIbGSV','__esModule','getWidth','data','149867QWkBMg','1631538NoJuma','png','isFullyOpaque','asPng','ImageHelper','width','12055DWJnnx','35IiilnL'];_0x372d=function(){return _0x3b4612;};return _0x372d();}const Jimp=require(_0x4fc19d(0xe7)),sharp=require(_0x4fc19d(0xe8)),resvg_js_1=require('@resvg/resvg-js');class ImageHelper{static['createImg'](_0x43f206){return new Jimp(_0x43f206,_0x43f206,0x0);}static async[_0x4fc19d(0xee)](_0x13b85b){const _0x52a6f1=_0x4fc19d;return await sharp(_0x13b85b)[_0x52a6f1(0xea)](_0x52a6f1(0xdc))['toBuffer']();}static async['svg2img'](_0x2fb10f){const _0x37d16f=_0x4fc19d,_0xdfabc6={'fitTo':{'mode':_0x37d16f(0xe0),'value':0x400}},_0x25b491=new resvg_js_1[(_0x37d16f(0xe4))](_0x2fb10f,_0xdfabc6),_0x5cae12=_0x25b491[_0x37d16f(0xe3)](),_0x4cfbca=_0x5cae12[_0x37d16f(0xde)]();return _0x4cfbca;}static[_0x4fc19d(0xdd)](_0x358cde){const _0x59c35c=_0x4fc19d,_0x1f6054=_0x358cde[_0x59c35c(0xf1)]()*_0x358cde['getHeight']();for(var _0x159e7c=0x0;_0x159e7c<_0x1f6054;_0x159e7c++){const _0x267db5=_0x159e7c*0x4+0x3;if(_0x358cde[_0x59c35c(0xeb)][_0x59c35c(0xf2)][_0x267db5]<0xff)return![];}return!![];}}exports[_0x4fc19d(0xdf)]=ImageHelper;
@@ -1,8 +1,9 @@
1
- import { ManifestInfo } from '../pwa';
1
+ import { ManifestInfo } from '../types';
2
2
  import * as Jimp from 'jimp';
3
3
  export declare let PROJECT_DIRECTORY: string;
4
4
  export declare let PROJECT_BUILD_DIRECTORY: string;
5
5
  export declare let PROJECT_EXPORT_DIRECTORY: string;
6
+ export declare let PROJECT_TEST_DIRECTORY: string;
6
7
  export declare const WEB_PROJECT_DIRECTORY = "web-spatial/static-web";
7
8
  export declare const ASSET_DIRECTORY = "web-spatial/Assets.xcassets";
8
9
  export declare const BACK_APPICON_DIRECTORY: string;
@@ -1 +1 @@
1
- 'use strict';const _0x14ad6c=_0x32e0;(function(_0x5c2ab5,_0x50574e){const _0x3af690=_0x32e0,_0x12022b=_0x5c2ab5();while(!![]){try{const _0x3837a4=-parseInt(_0x3af690(0x1b2))/0x1+parseInt(_0x3af690(0x1ad))/0x2*(parseInt(_0x3af690(0x1d0))/0x3)+-parseInt(_0x3af690(0x1aa))/0x4*(parseInt(_0x3af690(0x1c0))/0x5)+parseInt(_0x3af690(0x1bd))/0x6*(-parseInt(_0x3af690(0x1a6))/0x7)+parseInt(_0x3af690(0x1cc))/0x8+-parseInt(_0x3af690(0x1ac))/0x9+-parseInt(_0x3af690(0x1d4))/0xa*(-parseInt(_0x3af690(0x1af))/0xb);if(_0x3837a4===_0x50574e)break;else _0x12022b['push'](_0x12022b['shift']());}catch(_0x2c08cc){_0x12022b['push'](_0x12022b['shift']());}}}(_0x4dd2,0xef705));Object[_0x14ad6c(0x1cf)](exports,_0x14ad6c(0x1bb),{'value':!![]}),exports[_0x14ad6c(0x1be)]=exports[_0x14ad6c(0x1a7)]=exports[_0x14ad6c(0x1ba)]=exports[_0x14ad6c(0x1bf)]=exports['WEB_PROJECT_DIRECTORY']=exports[_0x14ad6c(0x1c1)]=exports[_0x14ad6c(0x1c3)]=exports['PROJECT_DIRECTORY']=void 0x0;const fs=require('fs'),path_1=require('path'),file_1=require(_0x14ad6c(0x1d1)),load_1=require(_0x14ad6c(0x1b5)),child_process_1=require('child_process');exports[_0x14ad6c(0x1a5)]='',exports['PROJECT_BUILD_DIRECTORY']='',exports[_0x14ad6c(0x1c1)]='',exports[_0x14ad6c(0x1d6)]=_0x14ad6c(0x1b4),exports[_0x14ad6c(0x1bf)]=_0x14ad6c(0x1c9),exports['BACK_APPICON_DIRECTORY']=exports['ASSET_DIRECTORY']+_0x14ad6c(0x1cd),exports[_0x14ad6c(0x1a7)]=exports[_0x14ad6c(0x1bf)]+_0x14ad6c(0x1b3);const supportPlatform=[_0x14ad6c(0x1b6)];function _0x32e0(_0x2b345a,_0x3d1078){const _0x4dd22f=_0x4dd2();return _0x32e0=function(_0x32e0b7,_0x2f5f1a){_0x32e0b7=_0x32e0b7-0x1a5;let _0x53f1a9=_0x4dd22f[_0x32e0b7];return _0x53f1a9;},_0x32e0(_0x2b345a,_0x3d1078);}class ResourceManager{static async[_0x14ad6c(0x1c7)](_0x2010d7){const _0x18b805=_0x14ad6c,_0x6a778f=(0x0,path_1[_0x18b805(0x1c6)])(process[_0x18b805(0x1d2)](),_0x2010d7),_0x3e04c6=(0x0,path_1[_0x18b805(0x1c6)])(exports['PROJECT_DIRECTORY'],exports['WEB_PROJECT_DIRECTORY']);!fs[_0x18b805(0x1ab)](_0x3e04c6)?fs[_0x18b805(0x1b1)](_0x3e04c6,{'recursive':!![]}):(0x0,file_1[_0x18b805(0x1b9)])(_0x3e04c6);try{(0x0,file_1[_0x18b805(0x1ca)])(_0x6a778f,_0x3e04c6);}catch(_0x355ca9){console['log'](_0x355ca9);}}static async['generateIcon'](_0x143c54){const _0x1bd0a0=_0x14ad6c,_0xdc053c=_0x143c54[_0x1bd0a0(0x1ae)],_0x10eaf7=_0xdc053c[_0x1bd0a0(0x1b0)][0x0][_0x1bd0a0(0x1a9)],_0x23e09e=!_0x10eaf7['startsWith'](_0x1bd0a0(0x1d7))?await(0x0,load_1[_0x1bd0a0(0x1c8)])(_0x10eaf7):await(0x0,load_1['loadImageFromNet'])(_0x10eaf7);return _0x23e09e[_0x1bd0a0(0x1b7)](0x400,0x400),_0x23e09e;}static[_0x14ad6c(0x1d3)](_0x3330ad){const _0x1a0998=_0x14ad6c,_0x4bcf69=_0x3330ad!==null&&_0x3330ad!==void 0x0?_0x3330ad:supportPlatform[0x0];if(!supportPlatform[_0x1a0998(0x1c2)](_0x4bcf69))throw new Error(_0x1a0998(0x1bc)+_0x4bcf69+_0x1a0998(0x1c4)+supportPlatform[_0x1a0998(0x1c6)](','));let _0x54a1de=(0x0,path_1[_0x1a0998(0x1c6)])(process[_0x1a0998(0x1d2)](),_0x1a0998(0x1cb)+_0x4bcf69);!fs[_0x1a0998(0x1ab)](_0x54a1de)&&(_0x54a1de=(0x0,path_1[_0x1a0998(0x1c6)])(__dirname,_0x1a0998(0x1c5)+_0x4bcf69));const _0x171d51=fs[_0x1a0998(0x1ab)](_0x54a1de);!_0x171d51&&(0x0,child_process_1['execSync'])('cd\x20'+(0x0,path_1[_0x1a0998(0x1c6)])(__dirname,_0x1a0998(0x1d5))+_0x1a0998(0x1ce)+_0x4bcf69),exports['PROJECT_DIRECTORY']=_0x54a1de,exports[_0x1a0998(0x1c3)]=(0x0,path_1[_0x1a0998(0x1c6)])(exports[_0x1a0998(0x1a5)],_0x1a0998(0x1b8)),exports[_0x1a0998(0x1c1)]=(0x0,path_1[_0x1a0998(0x1c6)])(exports[_0x1a0998(0x1a5)],_0x1a0998(0x1a8));}}exports[_0x14ad6c(0x1be)]=ResourceManager;function _0x4dd2(){const _0x46134f=['__esModule','not\x20support\x20platform\x20','196836yXfTOG','ResourceManager','ASSET_DIRECTORY','542845kTtEAk','PROJECT_EXPORT_DIRECTORY','includes','PROJECT_BUILD_DIRECTORY',',\x20now\x20WebSpatial\x20only\x20support\x20','../../../node_modules/@webspatial/platform-','join','moveProjectFrom','loadImageFromDisk','web-spatial/Assets.xcassets','copyDir','node_modules/@webspatial/platform-','12760272bIZgtt','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','\x20&&\x20pnpm\x20add\x20@webspatial/platform-','defineProperty','3986529XVzLUY','./file','cwd','checkPlatformPath','4940940GyYCsU','../../../','WEB_PROJECT_DIRECTORY','http','PROJECT_DIRECTORY','35hNcoHV','MIDDLE_APPICON_DIRECTORY','./export','src','4pVCRME','existsSync','3105288VkaTGV','2gDehey','json','11oJqYdn','icons','mkdirSync','1819599uZlEkv','/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset','web-spatial/static-web','./load','visionos','resize','./build','clearDir','BACK_APPICON_DIRECTORY'];_0x4dd2=function(){return _0x46134f;};return _0x4dd2();}
1
+ 'use strict';const _0x999296=_0x42f2;(function(_0x48d5c4,_0x4ad780){const _0x3df896=_0x42f2,_0x137cc0=_0x48d5c4();while(!![]){try{const _0x4cecd8=-parseInt(_0x3df896(0xdf))/0x1*(parseInt(_0x3df896(0xee))/0x2)+-parseInt(_0x3df896(0xeb))/0x3*(-parseInt(_0x3df896(0xcb))/0x4)+-parseInt(_0x3df896(0xf1))/0x5*(-parseInt(_0x3df896(0xf4))/0x6)+-parseInt(_0x3df896(0xd7))/0x7+parseInt(_0x3df896(0xec))/0x8+parseInt(_0x3df896(0xd9))/0x9*(parseInt(_0x3df896(0xd3))/0xa)+parseInt(_0x3df896(0xe2))/0xb;if(_0x4cecd8===_0x4ad780)break;else _0x137cc0['push'](_0x137cc0['shift']());}catch(_0x40ff4e){_0x137cc0['push'](_0x137cc0['shift']());}}}(_0x6e3a,0x4981b));function _0x42f2(_0x323104,_0x743d41){const _0x6e3a1a=_0x6e3a();return _0x42f2=function(_0x42f230,_0x4f21cb){_0x42f230=_0x42f230-0xca;let _0x3797c4=_0x6e3a1a[_0x42f230];return _0x3797c4;},_0x42f2(_0x323104,_0x743d41);}Object[_0x999296(0xfb)](exports,_0x999296(0xe3),{'value':!![]}),exports[_0x999296(0xf3)]=exports['MIDDLE_APPICON_DIRECTORY']=exports[_0x999296(0xea)]=exports[_0x999296(0xde)]=exports['WEB_PROJECT_DIRECTORY']=exports[_0x999296(0xfc)]=exports[_0x999296(0xe5)]=exports[_0x999296(0xe1)]=exports[_0x999296(0xf6)]=void 0x0;function _0x6e3a(){const _0x1c541a=[',\x20now\x20WebSpatial\x20only\x20support\x20','platform-','cwd','BACK_APPICON_DIRECTORY','4641lpburf','217192HmsMfX','./test','2696flmvZB','generateIcon','icons','99415CBnZnm','path','ResourceManager','30vwbWVV','loadImageFromNet','PROJECT_DIRECTORY','http','clearDir','\x20&&\x20pnpm\x20add\x20@webspatial/platform-','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','defineProperty','PROJECT_TEST_DIRECTORY','existsSync','220RJIujH','copyDir','src','../../../','MIDDLE_APPICON_DIRECTORY','not\x20support\x20platform\x20','../../../node_modules/@webspatial/platform-','join','10xJoIZa','/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset','web-spatial/Assets.xcassets','execSync','2917404RKTacw','json','2158173DRdGrH','./export','./load','moveProjectFrom','cd\x20','ASSET_DIRECTORY','7pQaRmC','../../temp','PROJECT_BUILD_DIRECTORY','3034295fIFXoH','__esModule','mkdirSync','PROJECT_EXPORT_DIRECTORY','loadImageFromDisk'];_0x6e3a=function(){return _0x1c541a;};return _0x6e3a();}const fs=require('fs'),path_1=require(_0x999296(0xf2)),file_1=require('./file'),load_1=require(_0x999296(0xdb)),child_process_1=require('child_process');exports[_0x999296(0xf6)]='',exports[_0x999296(0xe1)]='',exports[_0x999296(0xe5)]='',exports[_0x999296(0xfc)]='',exports['WEB_PROJECT_DIRECTORY']='web-spatial/static-web',exports['ASSET_DIRECTORY']=_0x999296(0xd5),exports[_0x999296(0xea)]=exports[_0x999296(0xde)]+_0x999296(0xfa),exports[_0x999296(0xcf)]=exports[_0x999296(0xde)]+_0x999296(0xd4);const supportPlatform=['visionos'];class ResourceManager{static async[_0x999296(0xdc)](_0x9be8bc){const _0x1fe033=_0x999296,_0x4c340b=(0x0,path_1[_0x1fe033(0xd2)])(process[_0x1fe033(0xe9)](),_0x9be8bc),_0x5d2044=(0x0,path_1[_0x1fe033(0xd2)])(exports[_0x1fe033(0xf6)],exports['WEB_PROJECT_DIRECTORY']);!fs[_0x1fe033(0xca)](_0x5d2044)?fs[_0x1fe033(0xe4)](_0x5d2044,{'recursive':!![]}):(0x0,file_1[_0x1fe033(0xf8)])(_0x5d2044);try{(0x0,file_1[_0x1fe033(0xcc)])(_0x4c340b,_0x5d2044);}catch(_0x2c18c2){console['log'](_0x2c18c2);}}static async[_0x999296(0xef)](_0x250b10){const _0xf0816b=_0x999296,_0x4b4a65=_0x250b10[_0xf0816b(0xd8)],_0x1660cb=_0x4b4a65[_0xf0816b(0xf0)][0x0][_0xf0816b(0xcd)],_0xecc99d=!_0x1660cb['startsWith'](_0xf0816b(0xf7))?await(0x0,load_1[_0xf0816b(0xe6)])(_0x1660cb):await(0x0,load_1[_0xf0816b(0xf5)])(_0x1660cb);return _0xecc99d['resize'](0x400,0x400),_0xecc99d;}static['checkPlatformPath'](_0x2b632f){const _0x2316bc=_0x999296,_0x57f717=_0x2b632f!==null&&_0x2b632f!==void 0x0?_0x2b632f:supportPlatform[0x0];if(!supportPlatform['includes'](_0x57f717))throw new Error(_0x2316bc(0xd0)+_0x57f717+_0x2316bc(0xe7)+supportPlatform[_0x2316bc(0xd2)](','));let _0x3f3957=(0x0,path_1['join'])(process[_0x2316bc(0xe9)](),'node_modules/@webspatial/platform-'+_0x57f717);!fs[_0x2316bc(0xca)](_0x3f3957)&&(_0x3f3957=(0x0,path_1['join'])(__dirname,_0x2316bc(0xd1)+_0x57f717));const _0x374ede=fs['existsSync'](_0x3f3957);!_0x374ede&&(0x0,child_process_1[_0x2316bc(0xd6)])(_0x2316bc(0xdd)+(0x0,path_1[_0x2316bc(0xd2)])(__dirname,_0x2316bc(0xce))+_0x2316bc(0xf9)+_0x57f717);let _0x5470cf=(0x0,path_1['join'])(__dirname,_0x2316bc(0xe0)),_0x313902=(0x0,path_1['join'])(_0x5470cf,_0x2316bc(0xe8)+_0x57f717);fs[_0x2316bc(0xca)](_0x5470cf)&&(0x0,child_process_1[_0x2316bc(0xd6)])('rm\x20-rf\x20'+_0x5470cf),fs['mkdirSync'](_0x5470cf),fs[_0x2316bc(0xe4)](_0x313902),(0x0,file_1[_0x2316bc(0xcc)])(_0x3f3957,_0x313902),exports[_0x2316bc(0xf6)]=_0x313902,exports[_0x2316bc(0xe1)]=(0x0,path_1[_0x2316bc(0xd2)])(exports[_0x2316bc(0xf6)],'./build'),exports[_0x2316bc(0xe5)]=(0x0,path_1['join'])(exports['PROJECT_DIRECTORY'],_0x2316bc(0xda)),exports[_0x2316bc(0xfc)]=(0x0,path_1[_0x2316bc(0xd2)])(exports[_0x2316bc(0xe1)],_0x2316bc(0xed));}}exports[_0x999296(0xf3)]=ResourceManager;
@@ -1 +1 @@
1
- 'use strict';const _0x3a64ef=_0x12eb;(function(_0x3f8985,_0x3fe744){const _0x940f74=_0x12eb,_0x1b66c1=_0x3f8985();while(!![]){try{const _0x3d593f=parseInt(_0x940f74(0x1d7))/0x1+-parseInt(_0x940f74(0x1d3))/0x2+-parseInt(_0x940f74(0x1cb))/0x3*(parseInt(_0x940f74(0x1e8))/0x4)+parseInt(_0x940f74(0x1e2))/0x5+parseInt(_0x940f74(0x1e5))/0x6*(-parseInt(_0x940f74(0x1cf))/0x7)+parseInt(_0x940f74(0x1c7))/0x8*(parseInt(_0x940f74(0x1ea))/0x9)+-parseInt(_0x940f74(0x1e3))/0xa;if(_0x3d593f===_0x3fe744)break;else _0x1b66c1['push'](_0x1b66c1['shift']());}catch(_0xca621f){_0x1b66c1['push'](_0x1b66c1['shift']());}}}(_0x5905,0xe5737));function _0x12eb(_0x149050,_0x48f52e){const _0x590580=_0x5905();return _0x12eb=function(_0x12eb8c,_0xdd157b){_0x12eb8c=_0x12eb8c-0x1c3;let _0x96d6fe=_0x590580[_0x12eb8c];return _0x96d6fe;},_0x12eb(_0x149050,_0x48f52e);}Object[_0x3a64ef(0x1cc)](exports,'__esModule',{'value':!![]}),exports['loadJsonFromNet']=loadJsonFromNet,exports[_0x3a64ef(0x1ca)]=loadJsonFromDisk,exports[_0x3a64ef(0x1d8)]=loadImageFromNet,exports[_0x3a64ef(0x1e4)]=loadImageFromDisk,exports['loadFileString']=loadFileString;const fs=require('fs'),FetchUtils_1_1=require(_0x3a64ef(0x1d9)),CustomError_1=require('../utils/CustomError'),Jimp=require(_0x3a64ef(0x1da)),imageHelper_1=require('./imageHelper');async function loadJsonFromNet(_0x3924dc){const _0x30899e=_0x3a64ef,_0x400f70=await FetchUtils_1_1[_0x30899e(0x1df)][_0x30899e(0x1f3)](_0x3924dc,{'encoding':_0x30899e(0x1dd)});if(_0x400f70[_0x30899e(0x1c9)]!==0xc8)throw new CustomError_1[(_0x30899e(0x1dc))]({'code':0xbbc,'message':_0x30899e(0x1c4)+_0x3924dc+'.'+(_0x30899e(0x1c3)+_0x400f70['status']+_0x30899e(0x1c8)),'message_staring_params':{'web_manifest_url':_0x3924dc,'status':_0x400f70['status']}});try{let _0x2466ba;return _0x400f70[_0x30899e(0x1db)]?_0x2466ba=await _0x400f70['text']():[_0x30899e(0x1ed),_0x30899e(0x1eb),'br'][_0x30899e(0x1e7)](_0x400f70[_0x30899e(0x1d0)][_0x30899e(0x1d2)])?_0x2466ba=FetchUtils_1_1[_0x30899e(0x1df)][_0x30899e(0x1d4)](Buffer['from'](_0x400f70[_0x30899e(0x1f0)],'binary'),_0x400f70[_0x30899e(0x1d0)]['content-encoding'])[_0x30899e(0x1de)]():_0x2466ba=Buffer[_0x30899e(0x1cd)](_0x400f70['data'],'binary')[_0x30899e(0x1de)](),JSON[_0x30899e(0x1c6)](_0x2466ba['trim']());}catch(_0x347f35){throw new CustomError_1[(_0x30899e(0x1dc))]({'code':0xbbd,'message':_0x30899e(0x1f4),'message_staring_params':{}});}}async function loadJsonFromDisk(_0x81dc3c){const _0x47f6be=_0x3a64ef,_0x55c343=await loadFileString(_0x81dc3c[_0x47f6be(0x1de)]());return JSON['parse'](_0x55c343);}function _0x5905(){const _0x3a0ce9=['loadImageFromDisk','1842GOVgfU','get','includes','8EBCyLC','content-type','3083427OsQoeW','deflate','image/svg','gzip','arrayBuffer','ImageHelper','data','promises','webp2PngBuffer','fetch','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','The\x20response\x20status\x20is\x20','Failed\x20to\x20download\x20Web\x20Manifest\x20','read','parse','24vOplHp',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','status','loadJsonFromDisk','1001307oInKNx','defineProperty','from','\x20Responded\x20with\x20Content-Type\x20\x22','22267sdAPqx','headers','decode','content-encoding','395582KZRxUM','decompressResponseBuffer','startsWith','readFile','1656981XlrVgw','loadImageFromNet','../utils/FetchUtils-1','jimp','text','CustomError','binary','toString','fetchUtils','image/','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','5558295MuoTNf','10147220XGqZsc'];_0x5905=function(){return _0x3a0ce9;};return _0x5905();}async function loadImageFromNet(_0x14dc9d){const _0x3b3fe1=_0x3a64ef,_0x469484=await FetchUtils_1_1[_0x3b3fe1(0x1df)]['fetch'](_0x14dc9d,{'encoding':_0x3b3fe1(0x1dd)});if(_0x469484[_0x3b3fe1(0x1c9)]!==0xc8)throw new CustomError_1[(_0x3b3fe1(0x1dc))]({'code':0x7d2,'message':_0x3b3fe1(0x1e1)+_0x469484[_0x3b3fe1(0x1c9)],'message_staring_params':{'icon_url':_0x14dc9d,'status':_0x469484[_0x3b3fe1(0x1c9)]}});const _0x57360e=_0x469484['headers'][_0x3b3fe1(0x1e6)]?_0x469484['headers'][_0x3b3fe1(0x1e6)](_0x3b3fe1(0x1e9)):_0x469484[_0x3b3fe1(0x1d0)]['content-type'];if(!(_0x57360e===null||_0x57360e===void 0x0?void 0x0:_0x57360e['startsWith'](_0x3b3fe1(0x1e0))))throw new CustomError_1['CustomError']({'code':0x7d3,'message':'Received\x20icon\x20with\x20invalid\x20Content-Type.'+(_0x3b3fe1(0x1ce)+_0x57360e+'\x22'),'message_staring_params':{'icon_url':_0x14dc9d,'contentType':_0x57360e}});let _0x522068;_0x469484['arrayBuffer']?_0x522068=await _0x469484[_0x3b3fe1(0x1ee)]():[_0x3b3fe1(0x1ed),_0x3b3fe1(0x1eb),'br'][_0x3b3fe1(0x1e7)](_0x469484[_0x3b3fe1(0x1d0)][_0x3b3fe1(0x1d2)])?_0x522068=FetchUtils_1_1[_0x3b3fe1(0x1df)][_0x3b3fe1(0x1d4)](Buffer[_0x3b3fe1(0x1cd)](_0x469484[_0x3b3fe1(0x1f0)],'binary'),_0x469484[_0x3b3fe1(0x1d0)][_0x3b3fe1(0x1d2)]):_0x522068=Buffer['from'](_0x469484[_0x3b3fe1(0x1f0)],_0x3b3fe1(0x1dd));if(_0x57360e[_0x3b3fe1(0x1d5)](_0x3b3fe1(0x1ec))){const _0x359ba1=new TextDecoder();try{_0x522068=await imageHelper_1['ImageHelper']['svg2img'](_0x359ba1[_0x3b3fe1(0x1d1)](_0x522068));}catch(_0xc9bac8){throw new CustomError_1[(_0x3b3fe1(0x1dc))]({'code':0x7d4,'message':'Problem\x20reading\x20'+_0x14dc9d+':\x20'+_0xc9bac8,'message_staring_params':{'icon_url':_0x14dc9d,'error':_0xc9bac8}});}}return _0x57360e['startsWith']('image/webp')&&(_0x522068=await imageHelper_1[_0x3b3fe1(0x1ef)][_0x3b3fe1(0x1f2)](_0x522068)),await Jimp[_0x3b3fe1(0x1c5)](Buffer[_0x3b3fe1(0x1cd)](_0x522068));}async function loadImageFromDisk(_0x1b8506){const _0x245165=_0x3a64ef;return await Jimp[_0x245165(0x1c5)](_0x1b8506);}async function loadFileString(_0x40b14c){const _0x36fc6d=_0x3a64ef;let _0x8cbf87=await fs[_0x36fc6d(0x1f1)][_0x36fc6d(0x1d6)](_0x40b14c['toString']());return _0x8cbf87[_0x36fc6d(0x1de)]();}
1
+ 'use strict';const _0x130637=_0x52f5;(function(_0x3659df,_0x4758fb){const _0x12a098=_0x52f5,_0x55b445=_0x3659df();while(!![]){try{const _0x5269a4=-parseInt(_0x12a098(0x112))/0x1*(-parseInt(_0x12a098(0xf0))/0x2)+-parseInt(_0x12a098(0xfd))/0x3*(-parseInt(_0x12a098(0xfe))/0x4)+-parseInt(_0x12a098(0x10e))/0x5*(-parseInt(_0x12a098(0x107))/0x6)+-parseInt(_0x12a098(0xf5))/0x7*(parseInt(_0x12a098(0x10a))/0x8)+-parseInt(_0x12a098(0xfb))/0x9+parseInt(_0x12a098(0x105))/0xa+-parseInt(_0x12a098(0x106))/0xb;if(_0x5269a4===_0x4758fb)break;else _0x55b445['push'](_0x55b445['shift']());}catch(_0x1959a5){_0x55b445['push'](_0x55b445['shift']());}}}(_0x2071,0xe776a));Object['defineProperty'](exports,_0x130637(0xf8),{'value':!![]}),exports['loadJsonFromNet']=loadJsonFromNet,exports[_0x130637(0xed)]=loadJsonFromDisk,exports[_0x130637(0x109)]=loadImageFromNet,exports[_0x130637(0x114)]=loadImageFromDisk,exports[_0x130637(0xe8)]=loadFileString;const fs=require('fs'),FetchUtils_1_1=require('../utils/FetchUtils-1'),CustomError_1=require(_0x130637(0xf7)),Jimp=require(_0x130637(0xf3)),imageHelper_1=require('./imageHelper');async function loadJsonFromNet(_0x1308b0){const _0x5a14a7=_0x130637,_0x282947=await FetchUtils_1_1[_0x5a14a7(0xf6)][_0x5a14a7(0xee)](_0x1308b0,{'encoding':_0x5a14a7(0x115)});if(_0x282947[_0x5a14a7(0xfa)]!==0xc8)throw new CustomError_1[(_0x5a14a7(0xeb))]({'code':0xbbc,'message':_0x5a14a7(0xf4)+_0x1308b0+'.'+('The\x20response\x20status\x20is\x20'+_0x282947[_0x5a14a7(0xfa)]+',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address'),'message_staring_params':{'web_manifest_url':_0x1308b0,'status':_0x282947[_0x5a14a7(0xfa)]}});try{let _0xc09815;return _0x282947['text']?_0xc09815=await _0x282947['text']():['gzip',_0x5a14a7(0xf9),'br'][_0x5a14a7(0x10d)](_0x282947[_0x5a14a7(0x101)][_0x5a14a7(0x10f)])?_0xc09815=FetchUtils_1_1[_0x5a14a7(0xf6)][_0x5a14a7(0xf2)](Buffer['from'](_0x282947[_0x5a14a7(0x116)],'binary'),_0x282947[_0x5a14a7(0x101)][_0x5a14a7(0x10f)])[_0x5a14a7(0x103)]():_0xc09815=Buffer[_0x5a14a7(0xe9)](_0x282947[_0x5a14a7(0x116)],_0x5a14a7(0x115))['toString'](),JSON[_0x5a14a7(0x100)](_0xc09815[_0x5a14a7(0x113)]());}catch(_0x3f752b){throw new CustomError_1[(_0x5a14a7(0xeb))]({'code':0xbbd,'message':_0x5a14a7(0xec),'message_staring_params':{}});}}async function loadJsonFromDisk(_0x39b74a){const _0x124e87=_0x130637,_0x51e461=await loadFileString(_0x39b74a['toString']());return JSON[_0x124e87(0x100)](_0x51e461);}async function loadImageFromNet(_0x57274e){const _0x2f0c85=_0x130637,_0x193551=await FetchUtils_1_1[_0x2f0c85(0xf6)][_0x2f0c85(0xee)](_0x57274e,{'encoding':_0x2f0c85(0x115)});if(_0x193551['status']!==0xc8)throw new CustomError_1[(_0x2f0c85(0xeb))]({'code':0x7d2,'message':'Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20'+_0x193551[_0x2f0c85(0xfa)],'message_staring_params':{'icon_url':_0x57274e,'status':_0x193551[_0x2f0c85(0xfa)]}});const _0x53019d=_0x193551['headers'][_0x2f0c85(0x104)]?_0x193551[_0x2f0c85(0x101)][_0x2f0c85(0x104)](_0x2f0c85(0xff)):_0x193551[_0x2f0c85(0x101)][_0x2f0c85(0xff)];if(!(_0x53019d===null||_0x53019d===void 0x0?void 0x0:_0x53019d[_0x2f0c85(0x10c)]('image/')))throw new CustomError_1[(_0x2f0c85(0xeb))]({'code':0x7d3,'message':_0x2f0c85(0x108)+(_0x2f0c85(0xfc)+_0x53019d+'\x22'),'message_staring_params':{'icon_url':_0x57274e,'contentType':_0x53019d}});let _0x5ed984;_0x193551[_0x2f0c85(0x110)]?_0x5ed984=await _0x193551['arrayBuffer']():[_0x2f0c85(0xea),_0x2f0c85(0xf9),'br'][_0x2f0c85(0x10d)](_0x193551[_0x2f0c85(0x101)]['content-encoding'])?_0x5ed984=FetchUtils_1_1[_0x2f0c85(0xf6)][_0x2f0c85(0xf2)](Buffer[_0x2f0c85(0xe9)](_0x193551[_0x2f0c85(0x116)],_0x2f0c85(0x115)),_0x193551[_0x2f0c85(0x101)][_0x2f0c85(0x10f)]):_0x5ed984=Buffer[_0x2f0c85(0xe9)](_0x193551['data'],_0x2f0c85(0x115));if(_0x53019d['startsWith'](_0x2f0c85(0xf1))){const _0x313f29=new TextDecoder();try{_0x5ed984=await imageHelper_1[_0x2f0c85(0xef)]['svg2img'](_0x313f29['decode'](_0x5ed984));}catch(_0x36d485){throw new CustomError_1[(_0x2f0c85(0xeb))]({'code':0x7d4,'message':'Problem\x20reading\x20'+_0x57274e+':\x20'+_0x36d485,'message_staring_params':{'icon_url':_0x57274e,'error':_0x36d485}});}}return _0x53019d[_0x2f0c85(0x10c)](_0x2f0c85(0x102))&&(_0x5ed984=await imageHelper_1['ImageHelper'][_0x2f0c85(0x10b)](_0x5ed984)),await Jimp[_0x2f0c85(0x111)](Buffer['from'](_0x5ed984));}function _0x2071(){const _0x495669=['loadImageFromNet','376oAMFhp','webp2PngBuffer','startsWith','includes','365xSUiCx','content-encoding','arrayBuffer','read','53VtjPUL','trim','loadImageFromDisk','binary','data','loadFileString','from','gzip','CustomError','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','loadJsonFromDisk','fetch','ImageHelper','7788CYQvkh','image/svg','decompressResponseBuffer','jimp','Failed\x20to\x20download\x20Web\x20Manifest\x20','169960yYHxoM','fetchUtils','../utils/CustomError','__esModule','deflate','status','1450737UlbBlQ','\x20Responded\x20with\x20Content-Type\x20\x22','909eWTKIE','24660XWIuvP','content-type','parse','headers','image/webp','toString','get','16841830CMkqGx','21464476uAGuhF','36426WmIBTn','Received\x20icon\x20with\x20invalid\x20Content-Type.'];_0x2071=function(){return _0x495669;};return _0x2071();}async function loadImageFromDisk(_0x1210c7){const _0x284b08=_0x130637;return await Jimp[_0x284b08(0x111)](_0x1210c7);}function _0x52f5(_0xf334df,_0x3ae905){const _0x2071dd=_0x2071();return _0x52f5=function(_0x52f515,_0x1cb1c2){_0x52f515=_0x52f515-0xe8;let _0x2e5d20=_0x2071dd[_0x52f515];return _0x2e5d20;},_0x52f5(_0xf334df,_0x3ae905);}async function loadFileString(_0x104b97){const _0xfb5a16=_0x130637;let _0x572601=await fs['promises']['readFile'](_0x104b97[_0xfb5a16(0x103)]());return _0x572601[_0xfb5a16(0x103)]();}