@webspatial/builder 0.1.2 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/lib/Cli.js +1 -1
- package/dist/lib/cmds/build.js +1 -1
- package/dist/lib/cmds/check.js +1 -1
- package/dist/lib/cmds/help.js +1 -1
- package/dist/lib/cmds/version.js +1 -1
- package/dist/lib/pwa/config.js +1 -1
- package/dist/lib/pwa/index.js +1 -1
- package/dist/lib/pwa/validate.js +1 -1
- package/dist/lib/resource/file.js +1 -1
- package/dist/lib/resource/imageHelper.js +1 -1
- package/dist/lib/resource/index.js +1 -1
- package/dist/lib/resource/load.js +1 -1
- package/dist/lib/utils/CustomError.js +1 -1
- package/dist/lib/utils/FetchUtils-1.js +1 -1
- package/dist/lib/utils/Log.js +1 -1
- package/dist/lib/utils/fetch.js +1 -1
- package/dist/lib/utils/messages.js +1 -1
- package/dist/lib/utils/utils.js +1 -1
- package/dist/lib/xcode/index.js +1 -1
- package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
- package/dist/lib/xcode/xcodebuild.js +1 -1
- package/dist/lib/xcode/xcodeproject.js +1 -1
- package/dist/lib/xcode/xcrun.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x20fc(_0x144087,_0x13ceda){const _0x112a0b=_0x112a();return _0x20fc=function(_0x20fc10,_0x5cb8e8){_0x20fc10=_0x20fc10-0x7e;let _0x3d8fe2=_0x112a0b[_0x20fc10];return _0x3d8fe2;},_0x20fc(_0x144087,_0x13ceda);}const _0x5ac5c2=_0x20fc;(function(_0x3b1513,_0xa060ce){const _0x8a2f6e=_0x20fc,_0xccf68a=_0x3b1513();while(!![]){try{const _0x24229d=parseInt(_0x8a2f6e(0x82))/0x1+parseInt(_0x8a2f6e(0x93))/0x2*(-parseInt(_0x8a2f6e(0x8e))/0x3)+-parseInt(_0x8a2f6e(0x7f))/0x4*(-parseInt(_0x8a2f6e(0x85))/0x5)+-parseInt(_0x8a2f6e(0x84))/0x6*(-parseInt(_0x8a2f6e(0x88))/0x7)+parseInt(_0x8a2f6e(0x7e))/0x8+-parseInt(_0x8a2f6e(0x89))/0x9+-parseInt(_0x8a2f6e(0x80))/0xa;if(_0x24229d===_0xa060ce)break;else _0xccf68a['push'](_0xccf68a['shift']());}catch(_0x4dc8ad){_0xccf68a['push'](_0xccf68a['shift']());}}}(_0x112a,0x62434));function _0x112a(){const _0x35cf9d=['log','customMessage','12lcmhtI','run','519104hRwlgm','152XkreaO','396900fgTKzT','slice','609267pLcTfT','./lib/utils/CustomError','3456402ZLlQqJ','81980zNwood','code','exit','7wNLtaj','5914296eJJpYR','error','Cli','isArray','defineProperty','386976rPuvto','forEach','message'];_0x112a=function(){return _0x35cf9d;};return _0x112a();}Object[_0x5ac5c2(0x8d)](exports,'__esModule',{'value':!![]});const Cli_1=require('./lib/Cli'),CustomError_1=require(_0x5ac5c2(0x83));module['exports']=async()=>{const _0x9fdc12=_0x5ac5c2,_0x387512=new Cli_1[(_0x9fdc12(0x8b))](),_0x2a94cb=Cli_1[_0x9fdc12(0x8b)][_0x9fdc12(0x91)],_0x3ce2f2=process['argv'][_0x9fdc12(0x81)](0x2);let _0x1d1d50;try{_0x1d1d50=await _0x387512[_0x9fdc12(0x94)](_0x3ce2f2);}catch(_0x2c78bb){if(_0x2c78bb instanceof CustomError_1['CustomError']){const _0x3d1a83=_0x2c78bb[_0x9fdc12(0x92)];Array[_0x9fdc12(0x8c)](_0x3d1a83)?_0x3d1a83[_0x9fdc12(0x8f)](_0x41b566=>{const _0x4f966c=_0x9fdc12;_0x2a94cb['error'](_0x41b566[_0x4f966c(0x86)]+':\x20'+_0x41b566[_0x4f966c(0x90)]);}):_0x2a94cb[_0x9fdc12(0x8a)](_0x3d1a83[_0x9fdc12(0x86)]+':\x20'+_0x3d1a83[_0x9fdc12(0x90)]);}else _0x2a94cb[_0x9fdc12(0x8a)](_0x2c78bb[_0x9fdc12(0x90)]);_0x1d1d50=![];}!_0x1d1d50?process[_0x9fdc12(0x87)](0x1):process[_0x9fdc12(0x87)](0x0);};
|
package/dist/lib/Cli.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x516031=_0x569a;function _0x569a(_0x4fa0d9,_0x5ac572){const _0x30cf16=_0x30cf();return _0x569a=function(_0x569af5,_0x2617ba){_0x569af5=_0x569af5-0x1ba;let _0x17c672=_0x30cf16[_0x569af5];return _0x17c672;},_0x569a(_0x4fa0d9,_0x5ac572);}(function(_0x3a4e8e,_0x46d82c){const _0x3a2e75=_0x569a,_0x4dd77e=_0x3a4e8e();while(!![]){try{const _0x2e4cd2=parseInt(_0x3a2e75(0x1cb))/0x1*(parseInt(_0x3a2e75(0x1c6))/0x2)+parseInt(_0x3a2e75(0x1d0))/0x3*(parseInt(_0x3a2e75(0x1c1))/0x4)+-parseInt(_0x3a2e75(0x1d7))/0x5+-parseInt(_0x3a2e75(0x1d8))/0x6+-parseInt(_0x3a2e75(0x1c4))/0x7+parseInt(_0x3a2e75(0x1e0))/0x8+parseInt(_0x3a2e75(0x1cc))/0x9*(parseInt(_0x3a2e75(0x1c9))/0xa);if(_0x2e4cd2===_0x46d82c)break;else _0x4dd77e['push'](_0x4dd77e['shift']());}catch(_0x16a763){_0x4dd77e['push'](_0x4dd77e['shift']());}}}(_0x30cf,0x67fd3));Object[_0x516031(0x1dc)](exports,'__esModule',{'value':!![]}),exports[_0x516031(0x1cd)]=void 0x0;function _0x30cf(){const _0x58353e=['version','decompressResponseBuffer','4140210Voxwop','help','2ixWDaG','9eixCxu','Cli','major','fetchUtils','309GSEyom','versions','store','node','webspatial-builder','minimist','log','123795Ugkqop','2701350FTtbwA','./utils/fetch','./cmds/version','start','defineProperty','../lib/utils/Log','ConsoleLog','run','6225336WmHuIB','\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands','semver','\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.','build','fetch','setDecompressResponseBuffer','length','6404iqBshv','./utils/FetchUtils-1','downloadFile','4987346hySihV','./cmds/build','256310OKgZCd'];_0x30cf=function(){return _0x58353e;};return _0x30cf();}const minimist=require(_0x516031(0x1d5)),semver_1=require(_0x516031(0x1bb)),Log_1=require(_0x516031(0x1dd)),FetchUtils_1_1=require(_0x516031(0x1c2)),help_1=require('./cmds/help'),build_1=require(_0x516031(0x1c5)),version_1=require(_0x516031(0x1da)),fetch_1=require(_0x516031(0x1d9));class Cli{async[_0x516031(0x1df)](_0x427e4f){const _0x3f218e=_0x516031;if((0x0,semver_1[_0x3f218e(0x1ce)])(process[_0x3f218e(0x1d1)][_0x3f218e(0x1d3)])<0xe)throw new Error('Current\x20Node.js\x20version\x20is\x20'+process[_0x3f218e(0x1d1)][_0x3f218e(0x1d3)]+'.'+_0x3f218e(0x1bc));FetchUtils_1_1[_0x3f218e(0x1cf)]['setFetch'](fetch_1[_0x3f218e(0x1be)]),FetchUtils_1_1[_0x3f218e(0x1cf)]['setDownloadFile'](fetch_1[_0x3f218e(0x1c3)]),FetchUtils_1_1['fetchUtils'][_0x3f218e(0x1bf)](fetch_1[_0x3f218e(0x1c8)]);const _0x28c6c0=minimist(_0x427e4f);let _0x25d80d=undefined;if(_0x28c6c0['_'][_0x3f218e(0x1c0)]===0x0){if(_0x28c6c0['version'])_0x25d80d=_0x3f218e(0x1c7);else _0x28c6c0[_0x3f218e(0x1ca)]&&(_0x25d80d=_0x3f218e(0x1ca));}else _0x25d80d=_0x28c6c0['_'][0x0];!_0x25d80d&&(_0x25d80d=_0x3f218e(0x1ca));switch(_0x25d80d){case'help':case'h':return await(0x0,help_1[_0x3f218e(0x1ca)])(_0x28c6c0);case _0x3f218e(0x1bd):return await(0x0,build_1[_0x3f218e(0x1db)])(_0x28c6c0);case'publish':return await(0x0,build_1[_0x3f218e(0x1d2)])(_0x28c6c0);case _0x3f218e(0x1df):return await(0x0,build_1[_0x3f218e(0x1df)])(_0x28c6c0);case _0x3f218e(0x1c7):{return await(0x0,version_1[_0x3f218e(0x1c7)])();}default:throw new Error('\x22'+_0x25d80d+_0x3f218e(0x1ba));}}}exports[_0x516031(0x1cd)]=Cli,Cli[_0x516031(0x1d6)]=new Log_1[(_0x516031(0x1de))](_0x516031(0x1d4));
|
package/dist/lib/cmds/build.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x1c00f2=_0xcd70;(function(_0x1e2df1,_0x101f82){const _0x241821=_0xcd70,_0x8b748c=_0x1e2df1();while(!![]){try{const _0x1ca196=-parseInt(_0x241821(0x1ad))/0x1*(parseInt(_0x241821(0x1b0))/0x2)+parseInt(_0x241821(0x1ae))/0x3+parseInt(_0x241821(0x1d5))/0x4*(-parseInt(_0x241821(0x1b6))/0x5)+-parseInt(_0x241821(0x1b2))/0x6+-parseInt(_0x241821(0x1c8))/0x7+parseInt(_0x241821(0x1ca))/0x8+-parseInt(_0x241821(0x1c4))/0x9*(-parseInt(_0x241821(0x1af))/0xa);if(_0x1ca196===_0x101f82)break;else _0x8b748c['push'](_0x8b748c['shift']());}catch(_0x2c2cb9){_0x8b748c['push'](_0x8b748c['shift']());}}}(_0x1e07,0x38268));function _0x1e07(){const _0x1b5e8a=['967sEimpY','14850GnGqwj','20eNvMwE','578QQITQy','generator','728634nXNnLV','generate\x20icon:\x20ok','start','__esModule','25jmfmaN','WebSpatialTest','XcodeManager','length','checkPlatformPath','buildType','checkBuildParams','upload','runWithSimulator','fromNet','name','./check','-------------------\x20build\x20end\x20-------------------','../pwa','4048911RimDMq','../xcode','log','defineProperty','2083340sswYTv','icons','3291528awWckM','version','json','-------------------\x20build\x20start\x20-------------------','store','PWAGenerator','move\x20web\x20project:\x20ok','run','moveProjectFrom','teamId','parseProject','310108zIiClf','ResourceManager','../resource'];_0x1e07=function(){return _0x1b5e8a;};return _0x1e07();}Object[_0x1c00f2(0x1c7)](exports,_0x1c00f2(0x1b5),{'value':!![]}),exports[_0x1c00f2(0x1b4)]=start,exports[_0x1c00f2(0x1ce)]=store,exports[_0x1c00f2(0x1d1)]=run;const pwa_1=require(_0x1c00f2(0x1c3)),resource_1=require(_0x1c00f2(0x1ac)),xcode_1=require(_0x1c00f2(0x1c5)),check_1=require(_0x1c00f2(0x1c1));async function start(_0x43257e,_0x582291=![]){const _0x568b7c=_0x1c00f2;var _0x1a8c54,_0x71b941;(0x0,check_1[_0x568b7c(0x1bc)])(_0x43257e,_0x582291),resource_1[_0x568b7c(0x1d6)]['checkPlatformPath'](_0x43257e['platform']),console['log'](_0x568b7c(0x1cd));let _0x12de8a=await pwa_1[_0x568b7c(0x1cf)][_0x568b7c(0x1b1)](_0x43257e,_0x582291);!_0x12de8a[_0x568b7c(0x1bf)]&&(await resource_1[_0x568b7c(0x1d6)][_0x568b7c(0x1d2)]((_0x1a8c54=_0x43257e['project'])!==null&&_0x1a8c54!==void 0x0?_0x1a8c54:'dist'),console[_0x568b7c(0x1c6)](_0x568b7c(0x1d0)));let _0x34dbf9;return((_0x71b941=_0x12de8a[_0x568b7c(0x1cc)][_0x568b7c(0x1c9)])===null||_0x71b941===void 0x0?void 0x0:_0x71b941[_0x568b7c(0x1b9)])&&_0x582291&&(_0x34dbf9=await resource_1[_0x568b7c(0x1d6)]['generateIcon'](_0x12de8a)),console[_0x568b7c(0x1c6)](_0x568b7c(0x1b3)),await xcode_1[_0x568b7c(0x1b8)][_0x568b7c(0x1d4)]({'icon':_0x34dbf9,'manifestInfo':_0x12de8a,'teamId':_0x43257e[_0x568b7c(0x1d3)],'version':_0x43257e[_0x568b7c(0x1cb)],'buildType':_0x43257e[_0x568b7c(0x1bb)],'export':_0x43257e['export']},_0x582291),console[_0x568b7c(0x1c6)](_0x568b7c(0x1c2)),_0x12de8a;}async function store(_0x38b87e){const _0x518dd7=_0x1c00f2;resource_1[_0x518dd7(0x1d6)][_0x518dd7(0x1ba)](_0x38b87e['platform']),(0x0,check_1['checkStoreParams'])(_0x38b87e);let _0x1b8c67={'name':_0x518dd7(0x1b7)};_0x38b87e[_0x518dd7(0x1bb)]='app-store-connect';if(_0x38b87e['name'])_0x1b8c67[_0x518dd7(0x1c0)]=_0x38b87e[_0x518dd7(0x1c0)];else{const _0x5170d4=await start(_0x38b87e);if(!_0x5170d4)return![];_0x1b8c67['name']=_0x5170d4['json'][_0x518dd7(0x1c0)];}return await xcode_1[_0x518dd7(0x1b8)][_0x518dd7(0x1bd)](_0x38b87e,_0x1b8c67),!![];}function _0xcd70(_0x44f4d3,_0x13ddcf){const _0x1e0787=_0x1e07();return _0xcd70=function(_0xcd70cf,_0x37d4c4){_0xcd70cf=_0xcd70cf-0x1ac;let _0x42a338=_0x1e0787[_0xcd70cf];return _0x42a338;},_0xcd70(_0x44f4d3,_0x13ddcf);}async function run(_0x1b0d59){const _0x536e73=_0x1c00f2;let _0x178491={'name':'WebSpatialTest','id':''};const _0xa6e3d3=await start(_0x1b0d59,!![]);if(!_0xa6e3d3)return![];return _0x178491[_0x536e73(0x1c0)]=_0xa6e3d3['json'][_0x536e73(0x1c0)],_0x178491['id']=_0xa6e3d3[_0x536e73(0x1cc)]['id'],await xcode_1['XcodeManager'][_0x536e73(0x1be)](_0x178491),!![];}
|
package/dist/lib/cmds/check.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x4a420e=_0x5cc6;(function(_0x3b3486,_0x82ea3a){const _0x13b8ef=_0x5cc6,_0xe07333=_0x3b3486();while(!![]){try{const _0x4bebc5=parseInt(_0x13b8ef(0x1e9))/0x1+parseInt(_0x13b8ef(0x1f9))/0x2*(-parseInt(_0x13b8ef(0x1e7))/0x3)+-parseInt(_0x13b8ef(0x1e3))/0x4*(-parseInt(_0x13b8ef(0x1e8))/0x5)+-parseInt(_0x13b8ef(0x1f0))/0x6+-parseInt(_0x13b8ef(0x1fc))/0x7+-parseInt(_0x13b8ef(0x1ff))/0x8*(-parseInt(_0x13b8ef(0x1fb))/0x9)+parseInt(_0x13b8ef(0x1e4))/0xa*(-parseInt(_0x13b8ef(0x200))/0xb);if(_0x4bebc5===_0x82ea3a)break;else _0xe07333['push'](_0xe07333['shift']());}catch(_0x29a7d4){_0xe07333['push'](_0xe07333['shift']());}}}(_0x560d,0xd4a29));Object[_0x4a420e(0x1f8)](exports,_0x4a420e(0x1f7),{'value':!![]}),exports[_0x4a420e(0x1f3)]=checkBuildParams,exports[_0x4a420e(0x1ed)]=checkStoreParams;const validate_1=require(_0x4a420e(0x1ef));function _0x5cc6(_0x2abdb9,_0x2ff7e2){const _0x560dc0=_0x560d();return _0x5cc6=function(_0x5cc6bc,_0x5a8616){_0x5cc6bc=_0x5cc6bc-0x1e3;let _0x39b64b=_0x560dc0[_0x5cc6bc];return _0x39b64b;},_0x5cc6(_0x2abdb9,_0x2ff7e2);}function checkBuildParams(_0x42b189,_0x59fb87=![]){const _0x187752=_0x4a420e;if(_0x42b189['manifest']&&_0x42b189[_0x187752(0x1ea)])throw new Error(_0x187752(0x1eb));if(!_0x42b189[_0x187752(0x1f4)]&&!_0x59fb87)throw new Error('--teamId\x20is\x20required');if(_0x42b189[_0x187752(0x1f5)]){if((0x0,validate_1[_0x187752(0x1e5)])(_0x42b189[_0x187752(0x1f5)]))try{const _0x4999d4=new URL(_0x42b189['base']);if(_0x4999d4[_0x187752(0x1f6)]||_0x4999d4[_0x187752(0x1f1)])throw new Error(_0x187752(0x1fa));}catch(_0x3a1ab6){throw new Error(_0x187752(0x1fa));}else{const _0x438472=/(\?.*|\.\w+|#.*)$/,_0x220827=_0x42b189[_0x187752(0x1f5)][_0x187752(0x1fe)]('/')[_0x187752(0x1e6)]()||'';if(_0x438472[_0x187752(0x1fd)](_0x220827))throw new Error(_0x187752(0x1fa));}}}function checkStoreParams(_0x2b0416){const _0x57dd4f=_0x4a420e;if(!(_0x2b0416['u']&&_0x2b0416['p']))throw new Error(_0x57dd4f(0x1ec));if(!_0x2b0416[_0x57dd4f(0x1ee)])throw new Error(_0x57dd4f(0x1f2));}function _0x560d(){const _0x120fad=['4940728ScxTMd','4871086ZfTYiG','5156gxoaFO','10ciCPqR','validateURL','pop','442362kdaKQB','2605CbZOAJ','1584786JKDgHS','manifest-url','--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','--u\x20and\x20--p\x20is\x20required','checkStoreParams','version','../pwa/validate','1859388TUzIfH','hash','version\x20is\x20required','checkBuildParams','teamId','base','search','__esModule','defineProperty','6sBRnBa','The\x20base\x20parameter\x20must\x20be\x20a\x20path\x20or\x20url\x20and\x20cannot\x20contain\x20parameters\x20or\x20suffixes.','18dypuQq','9978486hHhSfJ','test','split'];_0x560d=function(){return _0x120fad;};return _0x560d();}
|
package/dist/lib/cmds/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x2e5767=_0x4746;(function(_0x497a0f,_0x2148d9){const _0x436569=_0x4746,_0x41c3eb=_0x497a0f();while(!![]){try{const _0x5e5b96=-parseInt(_0x436569(0x111))/0x1+parseInt(_0x436569(0x100))/0x2+-parseInt(_0x436569(0x10e))/0x3*(parseInt(_0x436569(0xf7))/0x4)+parseInt(_0x436569(0x108))/0x5*(parseInt(_0x436569(0x104))/0x6)+-parseInt(_0x436569(0x101))/0x7*(parseInt(_0x436569(0xf8))/0x8)+-parseInt(_0x436569(0x10d))/0x9*(-parseInt(_0x436569(0x112))/0xa)+parseInt(_0x436569(0x109))/0xb*(parseInt(_0x436569(0x10f))/0xc);if(_0x5e5b96===_0x2148d9)break;else _0x41c3eb['push'](_0x41c3eb['shift']());}catch(_0x569a34){_0x41c3eb['push'](_0x41c3eb['shift']());}}}(_0x5e1a,0xc2715));Object[_0x2e5767(0xf5)](exports,'__esModule',{'value':!![]}),exports['help']=help;const Log_1=require(_0x2e5767(0x10b)),HELP_MESSAGES=new Map([['main',[_0x2e5767(0xfb),'','','help\x20................\x20shows\x20this\x20menu',_0x2e5767(0x105)+_0x2e5767(0x103),_0x2e5767(0xfa),'publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect']['join']('\x0a')],[_0x2e5767(0xff),[_0x2e5767(0x110),'','',_0x2e5767(0x114),'','',_0x2e5767(0xf9)][_0x2e5767(0xf6)]('\x0a')],[_0x2e5767(0x10a),['Usage:','','',_0x2e5767(0x107),'','',_0x2e5767(0x106)]['join']('\x0a')],[_0x2e5767(0xfd),[_0x2e5767(0x110),'','',_0x2e5767(0x113),'','','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','','','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>']['join']('\x0a')]]);function _0x4746(_0x53a66c,_0x41574e){const _0x5e1a5d=_0x5e1a();return _0x4746=function(_0x47461d,_0x2ddde6){_0x47461d=_0x47461d-0xf5;let _0x39ec9e=_0x5e1a5d[_0x47461d];return _0x39ec9e;},_0x4746(_0x53a66c,_0x41574e);}function _0x5e1a(){const _0x4ba8d0=['webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','webspatial\x20[command]\x20<options>','get','publish','info','build','314598YaZpIK','238WYHeGz','help','\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','6WyfMYX','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','5990125yJGYkg','17237429BzWqRN','dev','../utils/Log','ConsoleLog','9jlKlXe','1228734jDXZtA','12iAGOzy','Usage:','1258955BBgxAP','12847610BrXQpE','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>','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','main','defineProperty','join','12rBwPAK','217176XyoBCv'];_0x5e1a=function(){return _0x4ba8d0;};return _0x5e1a();}async function help(_0x1def71,_0x4b7d29=new Log_1[(_0x2e5767(0x10c))](_0x2e5767(0x102))){const _0x1374af=_0x2e5767,_0x176fed=_0x1def71['_'][0x1],_0x5f57b0=HELP_MESSAGES[_0x1374af(0xfc)](_0x176fed)||HELP_MESSAGES[_0x1374af(0xfc)](_0x1374af(0x115));return _0x4b7d29[_0x1374af(0xfe)](_0x5f57b0),!![];}
|
package/dist/lib/cmds/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x55b7f3=_0x5d12;(function(_0x3420be,_0x3ea6f0){const _0x191610=_0x5d12,_0x48ace2=_0x3420be();while(!![]){try{const _0x486aeb=parseInt(_0x191610(0x13a))/0x1+parseInt(_0x191610(0x13e))/0x2*(parseInt(_0x191610(0x145))/0x3)+-parseInt(_0x191610(0x147))/0x4+-parseInt(_0x191610(0x144))/0x5+-parseInt(_0x191610(0x141))/0x6+-parseInt(_0x191610(0x140))/0x7*(parseInt(_0x191610(0x13c))/0x8)+parseInt(_0x191610(0x146))/0x9;if(_0x486aeb===_0x3ea6f0)break;else _0x48ace2['push'](_0x48ace2['shift']());}catch(_0x50efb5){_0x48ace2['push'](_0x48ace2['shift']());}}}(_0x934d,0xd1d3c));Object[_0x55b7f3(0x13b)](exports,'__esModule',{'value':!![]}),exports['version']=version;const fs=require('fs'),path=require('path'),Log_1=require('../utils/Log');function _0x934d(){const _0x5870a2=['28562517tHvzUu','56592xuAnCY','info','promises','toString','1220399YNBWDe','defineProperty','2216HIfUOk','readFile','618DmNUID','ConsoleLog','16394UgSclF','9335070FElsuq','version','../../../package.json','7609680njjYoT','2001tpLDtn'];_0x934d=function(){return _0x5870a2;};return _0x934d();}function _0x5d12(_0x20ba18,_0x10d232){const _0x934ddf=_0x934d();return _0x5d12=function(_0x5d12ab,_0x914f57){_0x5d12ab=_0x5d12ab-0x137;let _0x15e9c2=_0x934ddf[_0x5d12ab];return _0x15e9c2;},_0x5d12(_0x20ba18,_0x10d232);}async function version(_0x3452c2=new Log_1[(_0x55b7f3(0x13f))]('version')){const _0x247470=_0x55b7f3,_0x4b8134=path['join'](__dirname,_0x247470(0x143)),_0x22432c=await(await fs[_0x247470(0x138)][_0x247470(0x13d)](_0x4b8134))[_0x247470(0x139)](),_0x241ac6=JSON['parse'](_0x22432c);return _0x3452c2[_0x247470(0x137)](_0x241ac6[_0x247470(0x142)]),!![];}
|
package/dist/lib/pwa/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x57d7f8=_0x59fc;(function(_0x3ff840,_0x66824b){const _0x1f2135=_0x59fc,_0x4cc12b=_0x3ff840();while(!![]){try{const _0x578627=-parseInt(_0x1f2135(0x1cf))/0x1*(parseInt(_0x1f2135(0x203))/0x2)+parseInt(_0x1f2135(0x1d6))/0x3*(parseInt(_0x1f2135(0x1e9))/0x4)+parseInt(_0x1f2135(0x1e1))/0x5*(-parseInt(_0x1f2135(0x20c))/0x6)+-parseInt(_0x1f2135(0x1ef))/0x7+parseInt(_0x1f2135(0x1f0))/0x8+-parseInt(_0x1f2135(0x1e2))/0x9+-parseInt(_0x1f2135(0x1ea))/0xa*(-parseInt(_0x1f2135(0x1eb))/0xb);if(_0x578627===_0x66824b)break;else _0x4cc12b['push'](_0x4cc12b['shift']());}catch(_0x859181){_0x4cc12b['push'](_0x4cc12b['shift']());}}}(_0x3490,0xda471));Object[_0x57d7f8(0x1f5)](exports,_0x57d7f8(0x20a),{'value':!![]}),exports[_0x57d7f8(0x1e6)]=void 0x0,exports['configId']=configId,exports[_0x57d7f8(0x1e5)]=configStartUrl,exports[_0x57d7f8(0x20f)]=configScope,exports[_0x57d7f8(0x219)]=configDisplay,exports[_0x57d7f8(0x205)]=configMainScene,exports[_0x57d7f8(0x1d0)]=configDeeplink;function _0x59fc(_0x406b72,_0x118bef){const _0x3490f1=_0x3490();return _0x59fc=function(_0x59fc2d,_0x41eaf5){_0x59fc2d=_0x59fc2d-0x1cd;let _0x1e31f4=_0x3490f1[_0x59fc2d];return _0x1e31f4;},_0x59fc(_0x406b72,_0x118bef);}const utils_1=require(_0x57d7f8(0x217)),validate_1=require(_0x57d7f8(0x1fb)),path_1=require(_0x57d7f8(0x212));function configId(_0x3f369d,_0x1a222d,_0x208f1a){const _0x5c54f8=_0x57d7f8;if(_0x208f1a)_0x3f369d['id']='com.webspatial.test';else{if(_0x1a222d)_0x3f369d['id']=_0x1a222d;else{const _0x40d0a2=new URL(_0x3f369d['id']);let _0x10df1e=_0x40d0a2[_0x5c54f8(0x206)][_0x5c54f8(0x209)]('.')['reverse']();_0x3f369d['id']=_0x10df1e['join']('.');}}}function configStartUrl(_0x5c3778,_0x568ee5){const _0xf4296a=_0x57d7f8,_0x2420f2=(0x0,validate_1[_0xf4296a(0x1dc)])(_0x5c3778[_0xf4296a(0x21c)]),_0xc0b039=(0x0,validate_1[_0xf4296a(0x1dc)])(_0x568ee5);let _0x3a8ec0=_0x5c3778[_0xf4296a(0x21c)];if(!_0x2420f2&&!_0xc0b039){const _0x26c590=(0x0,path_1[_0xf4296a(0x1fd)])(_0xf4296a(0x1f1)),_0x40aa34=(0x0,path_1[_0xf4296a(0x1fd)])(_0x26c590,_0x568ee5,_0x3a8ec0),_0x1d8c35=(0x0,path_1['normalize'])(_0x40aa34),_0x3d01a0=(0x0,path_1['join'])(_0x26c590,_0x1d8c35);_0x3a8ec0=(0x0,path_1['relative'])(process[_0xf4296a(0x1ce)](),_0x3d01a0)['replace'](/^(\.\.\/)+/,'./')[_0xf4296a(0x216)](/\/$/,'');}else{if(_0x2420f2&&!_0xc0b039){const _0x1a3a29=new URL(_0x3a8ec0),_0x392d02=_0x1a3a29['pathname']+_0x1a3a29['search']+_0x1a3a29[_0xf4296a(0x20e)];let _0x34966d=new URL(_0x568ee5,_0x1a3a29[_0xf4296a(0x1d9)]);_0x3a8ec0=new URL(_0x392d02,_0x34966d)[_0xf4296a(0x1fe)];}else{if(!_0x2420f2&&_0xc0b039){if(_0x3a8ec0[_0xf4296a(0x1d1)]('/')){const _0x3d606f=new URL(_0x568ee5);_0x3a8ec0=_0x3d606f[_0xf4296a(0x1d9)]+(0x0,path_1['join'])(_0x3d606f[_0xf4296a(0x200)],_0x3a8ec0);}else _0x3a8ec0=new URL(_0x3a8ec0,_0x568ee5)[_0xf4296a(0x1fe)];}else{if(_0x2420f2&&_0xc0b039){const _0x54aa0b=new URL(_0x3a8ec0),_0x3c8da5=new URL(_0x568ee5),_0x49d129=_0x54aa0b['pathname']+_0x54aa0b[_0xf4296a(0x1d3)]+_0x54aa0b[_0xf4296a(0x20e)];_0x3a8ec0=new URL(_0x49d129,_0x3c8da5[_0xf4296a(0x1d9)]+_0x3c8da5[_0xf4296a(0x200)])['href'];}}}}return _0x3a8ec0;}function configScope(_0x3528a8){const _0x1ea80d=_0x57d7f8;var _0x323d87;let _0x5d7d90=(_0x323d87=_0x3528a8[_0x1ea80d(0x1f2)])!==null&&_0x323d87!==void 0x0?_0x323d87:'';const _0x3f80bc=(0x0,validate_1[_0x1ea80d(0x1dc)])(_0x3528a8[_0x1ea80d(0x21c)]),_0x26cf19=(0x0,validate_1['validateURL'])(_0x5d7d90);if(_0x3f80bc&&_0x26cf19){const _0x479e0b=new URL(_0x5d7d90),_0x5e61e4=new URL(_0x3528a8['start_url']);(_0x479e0b[_0x1ea80d(0x206)]!==_0x5e61e4['host']||_0x3528a8[_0x1ea80d(0x21c)][_0x1ea80d(0x1f7)](_0x5d7d90)!==0x0)&&(_0x5d7d90=(0x0,utils_1[_0x1ea80d(0x1de)])(_0x3528a8[_0x1ea80d(0x21c)]));}else{if(_0x3f80bc&&!_0x26cf19)_0x5d7d90=new URL(_0x5d7d90,_0x3528a8['start_url'])[_0x1ea80d(0x1fe)];else{if(!_0x3f80bc&&_0x26cf19){const _0x4304d5=_0x3528a8[_0x1ea80d(0x21c)][_0x1ea80d(0x216)](/\/[^\/]+$/,'');_0x5d7d90=(0x0,path_1[_0x1ea80d(0x1f9)])(_0x4304d5+'/');}else _0x5d7d90=(0x0,path_1[_0x1ea80d(0x1d7)])((0x0,utils_1['parseRouter'])(_0x3528a8[_0x1ea80d(0x21c)]),_0x5d7d90);}}_0x3528a8[_0x1ea80d(0x1f2)]=_0x5d7d90;}function configDisplay(_0x52bab4){const _0x2446b8=_0x57d7f8;let _0x50b548=_0x52bab4['display'];_0x50b548!==_0x2446b8(0x20d)&&_0x50b548!==_0x2446b8(0x214)&&(_0x50b548=_0x2446b8(0x214));if(_0x52bab4[_0x2446b8(0x211)]&&_0x52bab4['display_override'][_0x2446b8(0x21a)]>0x0){const _0x3541cd=_0x52bab4['display_override'][_0x2446b8(0x1f7)](_0x2446b8(0x20d)),_0x473863=_0x52bab4[_0x2446b8(0x211)][_0x2446b8(0x1f7)]('standalone');if(_0x3541cd>=0x0&&_0x473863>=0x0)_0x50b548=_0x473863>_0x3541cd?_0x2446b8(0x214):_0x2446b8(0x20d);else{if(_0x3541cd>=0x0)_0x50b548='minimal-ui';else _0x473863>=0x0&&(_0x50b548=_0x2446b8(0x214));}}_0x52bab4[_0x2446b8(0x1cd)]=_0x50b548;}function configMainScene(_0x999235){const _0x5c962a=_0x57d7f8;var _0x1bc317,_0x4635c8;const _0xec5cde=[_0x5c962a(0x1da),_0x5c962a(0x1fc),_0x5c962a(0x21b)];let _0x428dc2={'defaultSize':{'width':0x500,'height':0x500},'resizability':_0x5c962a(0x1da)};if(_0x999235[_0x5c962a(0x202)]){if(typeof _0x999235[_0x5c962a(0x202)]===_0x5c962a(0x1e4))_0x428dc2[_0x5c962a(0x1d4)][_0x5c962a(0x1ff)]=Number((_0x1bc317=_0x999235[_0x5c962a(0x202)][_0x5c962a(0x215)])===null||_0x1bc317===void 0x0?void 0x0:_0x1bc317[_0x5c962a(0x1ff)])>0x0?_0x999235[_0x5c962a(0x202)][_0x5c962a(0x215)][_0x5c962a(0x1ff)]:0x500,_0x428dc2[_0x5c962a(0x1d4)][_0x5c962a(0x1ec)]=Number((_0x4635c8=_0x999235['xr_main_scene'][_0x5c962a(0x215)])===null||_0x4635c8===void 0x0?void 0x0:_0x4635c8[_0x5c962a(0x1ec)])>0x0?_0x999235[_0x5c962a(0x202)][_0x5c962a(0x215)][_0x5c962a(0x1ec)]:0x500,_0x428dc2[_0x5c962a(0x1f3)]=_0xec5cde[_0x5c962a(0x210)](_0x999235[_0x5c962a(0x202)][_0x5c962a(0x1f3)])?_0x999235[_0x5c962a(0x202)]['resizability']:_0x5c962a(0x1da),_0x999235[_0x5c962a(0x1e3)]=_0x428dc2;else typeof _0x999235[_0x5c962a(0x202)]===_0x5c962a(0x1dd)&&(_0x999235[_0x5c962a(0x1e3)]='dynamic');}}function _0x3490(){const _0x2740b3=['url','./validate','contentMinSize','resolve','href','width','pathname','xmpp','xr_main_scene','30FNOgLL','news','configMainScene','host','sftp','geo','split','__esModule','openpgp4fpr','66iZJhbG','minimal-ui','hash','configScope','includes','display_override','path','ssh','standalone','default_size','replace','../utils/utils','protocol_handlers','configDisplay','length','contentSize','start_url','protocol','ftp','display','cwd','75143kIVEIB','configDeeplink','startsWith','ircs','search','defaultSize','webcal','3vllONd','join','tel','origin','automatic','bitcoin','validateURL','string','parseRouter','splice','web+','741575jQsHyr','4599009soKFJn','mainScene','object','configStartUrl','safelist','sms','nntp','2508516KwtIWF','4414320UNVzZw','88MPIdQb','height','mms','magnet','7547918nSZIPR','8666920eYPbIW','./static-web','scope','resizability','sip','defineProperty','smsto','indexOf','urn','normalize'];_0x3490=function(){return _0x2740b3;};return _0x3490();}function configDeeplink(_0x173a07){const _0x2acaab=_0x57d7f8;if(_0x173a07['protocol_handlers']&&_0x173a07[_0x2acaab(0x218)][_0x2acaab(0x21a)]>0x0)for(var _0x2dcf35=0x0;_0x2dcf35<_0x173a07['protocol_handlers']['length'];_0x2dcf35++){const _0x4a4686=_0x173a07['protocol_handlers'][_0x2dcf35];if(_0x4a4686[_0x2acaab(0x21d)]&&(exports[_0x2acaab(0x1e6)][_0x2acaab(0x210)](_0x4a4686['protocol'])||_0x4a4686[_0x2acaab(0x21d)][_0x2acaab(0x1f7)](_0x2acaab(0x1e0))===0x0)){if(!((0x0,validate_1[_0x2acaab(0x1dc)])(_0x4a4686[_0x2acaab(0x1fa)])&&_0x4a4686[_0x2acaab(0x1fa)][_0x2acaab(0x1f7)](_0x173a07[_0x2acaab(0x1f2)])<0x0))continue;}_0x173a07['protocol_handlers'][_0x2acaab(0x1df)](_0x2dcf35,0x1),_0x2dcf35--;}}exports[_0x57d7f8(0x1e6)]=[_0x57d7f8(0x1db),_0x57d7f8(0x21e),'ftps',_0x57d7f8(0x208),'im','irc',_0x57d7f8(0x1d2),_0x57d7f8(0x1ee),'mailto','matrix',_0x57d7f8(0x1ed),_0x57d7f8(0x204),_0x57d7f8(0x1e8),_0x57d7f8(0x20b),_0x57d7f8(0x207),_0x57d7f8(0x1f4),_0x57d7f8(0x1e7),_0x57d7f8(0x1f6),_0x57d7f8(0x213),_0x57d7f8(0x1d8),_0x57d7f8(0x1f8),_0x57d7f8(0x1d5),'wtai',_0x57d7f8(0x201)];
|
package/dist/lib/pwa/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x1823(){const _0x36a063=['validate','25KlMWAg','manifest','bundle-id','loadJsonFromNet','manifest-url','json','minimal-ui','config','existsSync','1542558rSNLYd','PWAGenerator','configStartUrl','public/manifest.webmanifest','Cli','configId','check\x20manifest.json:\x20ok','DisplayModes','configDisplay','reset\x20manifest.json:\x20ok','useDefaultManifestJson','defaultManifestJson','loadJsonFromDisk','./validate','1320195nPORpI','standalone','configScope','2701993ovIolB','cwd','log','./config','36152arbGWb','base','public/manifest.json','../resource/load','checkManifestJson','defineProperty','1504096XRpJmL','checkIcons','join','WebSpatialTest','configDeeplink','106252RecvPQ','../Cli','420142cGBbOt'];_0x1823=function(){return _0x36a063;};return _0x1823();}function _0x4a07(_0x1522e7,_0x211ab1){const _0x1823d7=_0x1823();return _0x4a07=function(_0x4a07b1,_0x16da9d){_0x4a07b1=_0x4a07b1-0xef;let _0x2ade54=_0x1823d7[_0x4a07b1];return _0x2ade54;},_0x4a07(_0x1522e7,_0x211ab1);}const _0x1f4fe6=_0x4a07;(function(_0x2ec0c3,_0x276f30){const _0x5dadd3=_0x4a07,_0x2a65d2=_0x2ec0c3();while(!![]){try{const _0x2fd02a=-parseInt(_0x5dadd3(0xfe))/0x1+-parseInt(_0x5dadd3(0xfc))/0x2+parseInt(_0x5dadd3(0x117))/0x3+-parseInt(_0x5dadd3(0xf1))/0x4*(parseInt(_0x5dadd3(0x100))/0x5)+-parseInt(_0x5dadd3(0x109))/0x6+parseInt(_0x5dadd3(0x11a))/0x7+parseInt(_0x5dadd3(0xf7))/0x8;if(_0x2fd02a===_0x276f30)break;else _0x2a65d2['push'](_0x2a65d2['shift']());}catch(_0x4d1069){_0x2a65d2['push'](_0x2a65d2['shift']());}}}(_0x1823,0x3a3bd));Object[_0x1f4fe6(0xf6)](exports,'__esModule',{'value':!![]}),exports['PWAGenerator']=void 0x0;const path_1=require('path'),config_1=require(_0x1f4fe6(0xf0)),load_1=require(_0x1f4fe6(0xf4)),validate_1=require(_0x1f4fe6(0x116)),fs=require('fs'),Cli_1=require(_0x1f4fe6(0xfd));class PWAGenerator{static async['generator'](_0xa95353,_0x270f49=![]){const _0x5d1389=_0x1f4fe6;let _0x5db637=await this[_0x5d1389(0xff)](_0xa95353,_0x270f49);return console[_0x5d1389(0xef)](_0x5d1389(0x10f)),await this[_0x5d1389(0x107)](_0x5db637,_0xa95353,_0x270f49),console[_0x5d1389(0xef)](_0x5d1389(0x112)),_0x5db637;}static async['validate'](_0x33bdcd,_0x5a58b9=![]){const _0x3e791e=_0x1f4fe6;var _0xd31d2f,_0x1b50ee;let _0x508670={},_0x13855c='',_0x2e486e=![],_0x124e19=![];if(_0x33bdcd[_0x3e791e(0x104)])_0x13855c=_0x33bdcd[_0x3e791e(0x104)],_0x2e486e=!![],_0x508670=await(0x0,load_1[_0x3e791e(0x103)])(_0x33bdcd['manifest-url']);else{_0x33bdcd[_0x3e791e(0x101)]?_0x13855c=(0x0,path_1[_0x3e791e(0xf9)])(process[_0x3e791e(0x11b)](),_0x33bdcd[_0x3e791e(0x101)]):(_0x13855c=(0x0,path_1[_0x3e791e(0xf9)])(process[_0x3e791e(0x11b)](),_0x3e791e(0xf3)),!fs[_0x3e791e(0x108)](_0x13855c)&&(_0x13855c=(0x0,path_1['join'])(process[_0x3e791e(0x11b)](),_0x3e791e(0x10c))));if(!fs[_0x3e791e(0x108)](_0x13855c)){if(_0x5a58b9)_0x124e19=!![],Cli_1[_0x3e791e(0x10d)][_0x3e791e(0xef)]['warn']('manifest.json\x20or\x20manifest.webmanifest\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode');else throw new Error('manifest.json\x20or\x20manifest.webmanifest\x20not\x20found');}_0x508670=_0x124e19?this['defaultManifestJson']:await(0x0,load_1[_0x3e791e(0x115)])(_0x13855c),this[_0x3e791e(0x113)]=_0x124e19;}(0x0,validate_1[_0x3e791e(0xf5)])(_0x508670,_0x5a58b9);let _0x23be3a=(0x0,config_1[_0x3e791e(0x10b)])(_0x508670,(_0xd31d2f=_0x33bdcd[_0x3e791e(0xf2)])!==null&&_0xd31d2f!==void 0x0?_0xd31d2f:'');var _0x2746e7=(0x0,validate_1['checkStartUrl'])(_0x23be3a,_0x13855c,_0x2e486e,_0x5a58b9);_0x508670['start_url']=_0x23be3a;if(!_0x5a58b9)(0x0,validate_1['checkId'])(_0x508670,(_0x1b50ee=_0x33bdcd[_0x3e791e(0x102)])!==null&&_0x1b50ee!==void 0x0?_0x1b50ee:'');return await(0x0,validate_1[_0x3e791e(0xf8)])(_0x508670,_0x13855c,_0x5a58b9),{'json':_0x508670,'url':_0x13855c,'fromNet':_0x2746e7};}static[_0x1f4fe6(0x107)](_0x15b200,_0x34262b,_0x2bc941){const _0x5de7a8=_0x1f4fe6;var _0x39c9ea;(0x0,config_1[_0x5de7a8(0x10e)])(_0x15b200[_0x5de7a8(0x105)],(_0x39c9ea=_0x34262b[_0x5de7a8(0x102)])!==null&&_0x39c9ea!==void 0x0?_0x39c9ea:'',_0x2bc941),(0x0,config_1[_0x5de7a8(0x119)])(_0x15b200[_0x5de7a8(0x105)]),(0x0,config_1[_0x5de7a8(0x111)])(_0x15b200[_0x5de7a8(0x105)]),(0x0,config_1[_0x5de7a8(0xfb)])(_0x15b200['json']),(0x0,config_1['configMainScene'])(_0x15b200['json']);}}exports[_0x1f4fe6(0x10a)]=PWAGenerator,PWAGenerator[_0x1f4fe6(0x110)]=[_0x1f4fe6(0x118),_0x1f4fe6(0x106)],PWAGenerator[_0x1f4fe6(0x114)]={'name':_0x1f4fe6(0xfa),'display':'minimal-ui','start_url':'/','scope':'/'},PWAGenerator[_0x1f4fe6(0x113)]=![];
|
package/dist/lib/pwa/validate.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x37b88e=_0x229a;(function(_0x388a10,_0x513d81){const _0x49b106=_0x229a,_0x52593a=_0x388a10();while(!![]){try{const _0x69cf56=parseInt(_0x49b106(0x157))/0x1*(parseInt(_0x49b106(0x14c))/0x2)+parseInt(_0x49b106(0x144))/0x3+-parseInt(_0x49b106(0x14a))/0x4*(-parseInt(_0x49b106(0x16c))/0x5)+-parseInt(_0x49b106(0x149))/0x6*(-parseInt(_0x49b106(0x150))/0x7)+-parseInt(_0x49b106(0x15a))/0x8+parseInt(_0x49b106(0x151))/0x9+-parseInt(_0x49b106(0x146))/0xa*(parseInt(_0x49b106(0x159))/0xb);if(_0x69cf56===_0x513d81)break;else _0x52593a['push'](_0x52593a['shift']());}catch(_0x227b95){_0x52593a['push'](_0x52593a['shift']());}}}(_0x2afc,0x3f559));Object[_0x37b88e(0x143)](exports,_0x37b88e(0x14f),{'value':!![]}),exports[_0x37b88e(0x164)]=checkManifestJson,exports[_0x37b88e(0x13d)]=checkStartUrl,exports[_0x37b88e(0x163)]=checkIcons,exports['checkId']=checkId,exports[_0x37b88e(0x16f)]=validateBundleId,exports['validateURL']=validateURL;const path_1=require('path'),CustomError_1=require('../utils/CustomError'),utils_1=require(_0x37b88e(0x152)),imageHelper_1=require(_0x37b88e(0x14d)),load_1=require(_0x37b88e(0x168)),Cli_1=require(_0x37b88e(0x15b));function checkManifestJson(_0x5823a3,_0x4f3970=![]){const _0xbdcd09=_0x37b88e;var _0x48ac5a;const _0x911fad=[];!_0x5823a3[_0xbdcd09(0x141)]&&!_0x5823a3[_0xbdcd09(0x162)]&&!_0x4f3970&&_0x911fad['push']({'code':0xbbe,'message':_0xbdcd09(0x13e),'message_staring_params':{}});!((_0x48ac5a=_0x5823a3[_0xbdcd09(0x16b)])===null||_0x48ac5a===void 0x0?void 0x0:_0x48ac5a[_0xbdcd09(0x15e)])&&!_0x4f3970&&_0x911fad['push']({'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':{}});!_0x5823a3[_0xbdcd09(0x13b)]&&_0x911fad['push']({'code':0xbc0,'message':_0xbdcd09(0x169),'message_staring_params':{}});if(_0x911fad['length'])throw new CustomError_1[(_0xbdcd09(0x13f))](_0x911fad);}function checkStartUrl(_0x569f9a,_0x3fa74b,_0xf41363,_0x4eddde=![]){const _0x2e6284=_0x37b88e;var _0xc05d47=![];if(_0x4eddde)return _0x569f9a['startsWith'](_0x2e6284(0x158))||_0x569f9a[_0x2e6284(0x166)](_0x2e6284(0x165));if(_0xf41363){if(_0x569f9a['startsWith'](_0x2e6284(0x158))){const _0x30f103=new URL(_0x569f9a),_0x181fcc=new URL(_0x3fa74b);if(_0x30f103['host']!==_0x181fcc['host'])throw new CustomError_1[(_0x2e6284(0x13f))]({'code':0xfa0,'message':_0x2e6284(0x171),'message_staring_params':{}});}else{if(_0x569f9a[_0x2e6284(0x166)](_0x2e6284(0x165)))throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x2e6284(0x167),'message_staring_params':{}});}}else{if(_0x569f9a[_0x2e6284(0x166)](_0x2e6284(0x158))||_0x569f9a['startsWith']('http://'))throw new CustomError_1[(_0x2e6284(0x13f))]({'code':0xfa0,'message':_0x2e6284(0x155),'message_staring_params':{}});}return _0xc05d47;}function _0x2afc(){const _0x354584=['31108iulDlh','../resource/imageHelper','parseRouter','__esModule','154AGmlLc','584298SYyQPd','../utils/utils','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','Local\x20manifest\x20cannot\x20package\x20network\x20project','log','3jYzVpR','https://','54120ehKiVV','3650128eQESMG','../Cli','split','loadImageFromNet','length','getHeight','forEach','getWidth','short_name','checkIcons','checkManifestJson','http://','startsWith','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','../resource/load','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','icons','115UPrkBj','maskable','join','validateBundleId','http','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','indexOf','start_url','isFullyOpaque','checkStartUrl','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','CustomError','In\x20the\x20Web\x20Spatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL,\x20or\x20provide\x20it\x20use\x20--bundle-id','name','purpose','defineProperty','356655PSLzyt','Cli','520qObDBY','sizes','ImageHelper','92496znGKRu','69896baCsBW','test'];_0x2afc=function(){return _0x354584;};return _0x2afc();}function _0x229a(_0x5e7b77,_0xc96a95){const _0x2afc3c=_0x2afc();return _0x229a=function(_0x229aa6,_0xd5e5d9){_0x229aa6=_0x229aa6-0x13b;let _0x21be02=_0x2afc3c[_0x229aa6];return _0x21be02;},_0x229a(_0x5e7b77,_0xc96a95);}async function checkIcons(_0xbeb90a,_0x2474d6,_0x484d6b=![]){const _0x236122=_0x37b88e;var _0x4f0cf0,_0x4b66e2;if(!((_0x4f0cf0=_0xbeb90a[_0x236122(0x16b)])===null||_0x4f0cf0===void 0x0?void 0x0:_0x4f0cf0[_0x236122(0x15e)])&&_0x484d6b){Cli_1[_0x236122(0x145)][_0x236122(0x156)][_0x236122(0x153)]('icon\x20not\x20found,\x20use\x20default\x20in\x20run\x20mode');return;}const _0x53378f=(0x0,utils_1[_0x236122(0x14e)])(_0x2474d6);let _0x3377b4,_0x4e49ab,_0x47a3d2,_0x22f185=0x0;for(var _0x2c736e=0x0;_0x2c736e<_0xbeb90a[_0x236122(0x16b)][_0x236122(0x15e)];_0x2c736e++){const _0x166fda=_0xbeb90a['icons'][_0x2c736e];let _0x471859=((_0x4b66e2=_0x166fda[_0x236122(0x142)])===null||_0x4b66e2===void 0x0?void 0x0:_0x4b66e2[_0x236122(0x172)](_0x236122(0x16d)))>=0x0;if(!_0x471859)continue;let _0x26fff1=![],_0x22c46c=_0x166fda['src'],_0x7c36b3,_0x492bd4=0x0;!validateURL(_0x22c46c)&&(_0x22c46c=(0x0,path_1[_0x236122(0x16e)])(_0x53378f,_0x22c46c));if(_0x166fda[_0x236122(0x147)]){const _0x1e6e52=_0x166fda[_0x236122(0x147)][_0x236122(0x15c)]('\x20');_0x1e6e52[_0x236122(0x160)](_0x148de8=>{let _0x289ea8=_0x148de8['split']('x');Number(_0x289ea8[0x0])>=0x400&&Number(_0x289ea8[0x1])>=0x400&&(_0x26fff1=!![],Number(_0x289ea8[0x0])>_0x492bd4&&(_0x492bd4=Number(_0x289ea8[0x0])));});}else _0x7c36b3=!_0x22c46c[_0x236122(0x166)](_0x236122(0x170))?await(0x0,load_1['loadImageFromDisk'])(_0x22c46c):await(0x0,load_1[_0x236122(0x15d)])(_0x22c46c),_0x7c36b3[_0x236122(0x161)]()>=0x400&&_0x7c36b3[_0x236122(0x15f)]()>=0x400&&(_0x26fff1=!![],_0x7c36b3['getWidth']()>_0x492bd4&&(_0x492bd4=_0x7c36b3['getWidth']()));_0x26fff1&&_0x471859&&(_0x492bd4>_0x22f185&&(_0x22f185=_0x492bd4,_0x3377b4=_0x7c36b3,_0x4e49ab=_0x22c46c,_0x47a3d2=_0x166fda[_0x236122(0x142)]));}if(_0x22f185===0x0){if(_0x484d6b){Cli_1[_0x236122(0x145)][_0x236122(0x156)][_0x236122(0x153)](_0x236122(0x154));return;}throw new CustomError_1['CustomError']({'code':0xfa0,'message':'In\x20the\x20Web\x20Spatial\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','message_staring_params':{}});}else _0x4e49ab&&(_0x3377b4=!_0x4e49ab['startsWith'](_0x236122(0x170))?await(0x0,load_1['loadImageFromDisk'])(_0x4e49ab):await(0x0,load_1['loadImageFromNet'])(_0x4e49ab));if(_0x3377b4&&!imageHelper_1[_0x236122(0x148)][_0x236122(0x13c)](_0x3377b4)){if(_0x484d6b){Cli_1[_0x236122(0x145)][_0x236122(0x156)][_0x236122(0x153)](_0x236122(0x154));return;}throw new CustomError_1[(_0x236122(0x13f))]({'code':0xfa0,'message':_0x236122(0x16a),'message_staring_params':{}});}_0xbeb90a[_0x236122(0x16b)]=[{'src':_0x4e49ab,'sizes':_0x22f185+'x'+_0x22f185,'purpose':_0x47a3d2}];}function checkId(_0x4e0710,_0x9a4d9){const _0x9e2ef=_0x37b88e;if(_0x9a4d9){if(!validateBundleId(_0x9a4d9))throw new CustomError_1[(_0x9e2ef(0x13f))]({'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;}!_0x4e0710['id']&&(_0x4e0710['id']=_0x4e0710['start_url']);if(!validateURL(_0x4e0710['id'])&&!_0x9a4d9)throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x9e2ef(0x140),'message_staring_params':{}});}function validateBundleId(_0x5d1350){const _0x3f678f=_0x37b88e,_0x17df57=/^(?=.{1,128}$)(?!.*\.\.)(?!^\.|.*\.$)[A-Za-z_][A-Za-z0-9_-]*(?:\.[A-Za-z_][A-Za-z0-9_-]*)+$/;return _0x17df57[_0x3f678f(0x14b)](_0x5d1350);}function validateURL(_0xb0e4b3){try{return new URL(_0xb0e4b3),!![];}catch(_0x3b4272){return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1c77e7=_0x3f2c;function _0x3f2c(_0x17e41b,_0x379d6e){const _0x21523f=_0x2152();return _0x3f2c=function(_0x3f2c7b,_0x48ceb7){_0x3f2c7b=_0x3f2c7b-0x10e;let _0x5adf4c=_0x21523f[_0x3f2c7b];return _0x5adf4c;},_0x3f2c(_0x17e41b,_0x379d6e);}function _0x2152(){const _0x2becf4=['391116IWxAlK','20hEpsWn','3036341QpXTYD','__esModule','289933EjiULm','1715274rdTfeB','7OFQwdn','clearDir','3424059tIvkSf','mkdirSync','isFile','writeFileSync','forEach','isDirectory','20nLrmIV','existsSync','log','398084waJAIX','1142848ruhQUG','statSync','2Jmhcrk'];_0x2152=function(){return _0x2becf4;};return _0x2152();}(function(_0x4f0298,_0x21c06d){const _0x779ab5=_0x3f2c,_0x249f29=_0x4f0298();while(!![]){try{const _0x394f24=-parseInt(_0x779ab5(0x116))/0x1*(parseInt(_0x779ab5(0x111))/0x2)+parseInt(_0x779ab5(0x112))/0x3+parseInt(_0x779ab5(0x10e))/0x4*(parseInt(_0x779ab5(0x120))/0x5)+parseInt(_0x779ab5(0x117))/0x6*(parseInt(_0x779ab5(0x118))/0x7)+-parseInt(_0x779ab5(0x10f))/0x8+parseInt(_0x779ab5(0x11a))/0x9+-parseInt(_0x779ab5(0x113))/0xa*(parseInt(_0x779ab5(0x114))/0xb);if(_0x394f24===_0x21c06d)break;else _0x249f29['push'](_0x249f29['shift']());}catch(_0x4a81c5){_0x249f29['push'](_0x249f29['shift']());}}}(_0x2152,0x3340f));Object['defineProperty'](exports,_0x1c77e7(0x115),{'value':!![]}),exports['copyDir']=copyDir,exports[_0x1c77e7(0x119)]=clearDir;const fs=require('fs');function copyDir(_0x2c2158,_0x5703f8){const _0x5adf99=_0x1c77e7,_0x152363=fs['readdirSync'](_0x2c2158);_0x152363[_0x5adf99(0x11e)](_0x3ac3c1=>{const _0x4f629c=_0x5adf99,_0x22766d=_0x2c2158+'/'+_0x3ac3c1,_0x4ba1f6=_0x5703f8+'/'+_0x3ac3c1,_0x140a2e=fs[_0x4f629c(0x110)](_0x22766d);if(_0x140a2e[_0x4f629c(0x11c)]())try{fs[_0x4f629c(0x11d)](_0x4ba1f6,fs['readFileSync'](_0x22766d));}catch(_0x327ee3){console[_0x4f629c(0x122)](_0x327ee3);}else _0x140a2e[_0x4f629c(0x11f)]()&&(!fs[_0x4f629c(0x121)](_0x4ba1f6)&&fs[_0x4f629c(0x11b)](_0x4ba1f6,{'recursive':!![]}),copyDir(_0x22766d,_0x4ba1f6));});}function clearDir(_0x4d7302){const _0x444a28=_0x1c77e7,_0x5ec63f=fs['readdirSync'](_0x4d7302);_0x5ec63f[_0x444a28(0x11e)](_0x2d39c4=>{const _0x29a540=_0x444a28,_0x1b4d0c=_0x4d7302+'/'+_0x2d39c4,_0x1e74d7=fs[_0x29a540(0x110)](_0x1b4d0c);if(_0x1e74d7[_0x29a540(0x11c)]())try{fs['unlinkSync'](_0x1b4d0c);}catch(_0x3dc042){console['log'](_0x3dc042);}else _0x1e74d7[_0x29a540(0x11f)]()&&clearDir(_0x1b4d0c);});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x321882=_0x4da9;(function(_0xaaf2e6,_0x1b9cfb){const _0x3cdd54=_0x4da9,_0x4cb37b=_0xaaf2e6();while(!![]){try{const _0x36b1f=-parseInt(_0x3cdd54(0x14a))/0x1+-parseInt(_0x3cdd54(0x14d))/0x2+-parseInt(_0x3cdd54(0x155))/0x3+-parseInt(_0x3cdd54(0x15f))/0x4*(-parseInt(_0x3cdd54(0x14b))/0x5)+-parseInt(_0x3cdd54(0x154))/0x6*(parseInt(_0x3cdd54(0x153))/0x7)+-parseInt(_0x3cdd54(0x14e))/0x8+parseInt(_0x3cdd54(0x159))/0x9;if(_0x36b1f===_0x1b9cfb)break;else _0x4cb37b['push'](_0x4cb37b['shift']());}catch(_0x70a919){_0x4cb37b['push'](_0x4cb37b['shift']());}}}(_0x4812,0x55b5b));function _0x4da9(_0x35884c,_0x275cda){const _0x48121d=_0x4812();return _0x4da9=function(_0x4da9db,_0x3e097b){_0x4da9db=_0x4da9db-0x148;let _0xf10d14=_0x48121d[_0x4da9db];return _0xf10d14;},_0x4da9(_0x35884c,_0x275cda);}function _0x4812(){const _0x56e064=['defineProperty','ImageHelper','getHeight','render','@resvg/resvg-js','8SCpjgo','toFormat','width','409995wfAwvn','248890TIxdRW','bitmap','15110GvmeJb','434344KoKmRX','getWidth','toBuffer','isFullyOpaque','svg2img','7lieiEd','459696dEFbIH','1674066Cnlipc','sharp','data','__esModule','12221928aYpOWq'];_0x4812=function(){return _0x56e064;};return _0x4812();}Object[_0x321882(0x15a)](exports,_0x321882(0x158),{'value':!![]}),exports[_0x321882(0x15b)]=void 0x0;const Jimp=require('jimp'),sharp=require(_0x321882(0x156)),resvg_js_1=require(_0x321882(0x15e));class ImageHelper{static['createImg'](_0x1b6bd4){return new Jimp(_0x1b6bd4,_0x1b6bd4,0x0);}static async['webp2PngBuffer'](_0xbc736d){const _0x19c44a=_0x321882;return await sharp(_0xbc736d)[_0x19c44a(0x148)]('png')[_0x19c44a(0x150)]();}static async[_0x321882(0x152)](_0x758e65){const _0x2b2f88=_0x321882,_0x5a946f={'fitTo':{'mode':_0x2b2f88(0x149),'value':0x400}},_0x172457=new resvg_js_1['Resvg'](_0x758e65,_0x5a946f),_0x5dcdfc=_0x172457[_0x2b2f88(0x15d)](),_0x55c42c=_0x5dcdfc['asPng']();return _0x55c42c;}static[_0x321882(0x151)](_0x5a8670){const _0x24656f=_0x321882,_0x551bee=_0x5a8670[_0x24656f(0x14f)]()*_0x5a8670[_0x24656f(0x15c)]();for(var _0x118c4c=0x0;_0x118c4c<_0x551bee;_0x118c4c++){const _0x2354f4=_0x118c4c*0x4+0x3;if(_0x5a8670[_0x24656f(0x14c)][_0x24656f(0x157)][_0x2354f4]<0xff)return![];}return!![];}}exports[_0x321882(0x15b)]=ImageHelper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x15021b=_0x7be0;function _0x37f5(){const _0x3f3f4b=['14328ctgxyf','81qbSJts','startsWith','ResourceManager','path','json','join','./load','cwd','http','defineProperty','loadImageFromNet','cd\x20','log','./export','visionos','checkPlatformPath','existsSync','BACK_APPICON_DIRECTORY','PROJECT_DIRECTORY','includes','102319MhZLmt','4799472MloCyb','\x20&&\x20pnpm\x20add\x20@webspatial/platform-','546DUXxxI','WEB_PROJECT_DIRECTORY','PROJECT_BUILD_DIRECTORY','loadImageFromDisk','ASSET_DIRECTORY','not\x20support\x20platform\x20','1284424ZDrKXD','/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset','291951lqGxDN','MIDDLE_APPICON_DIRECTORY','child_process','4260560pJfdYd','copyDir','src',',\x20now\x20WebSpatial\x20only\x20support\x20','70QYyPzy','PROJECT_EXPORT_DIRECTORY','node_modules/@webspatial/platform-','4859885oxfrch','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','../../../','generateIcon'];_0x37f5=function(){return _0x3f3f4b;};return _0x37f5();}function _0x7be0(_0x581333,_0x2bf679){const _0x37f533=_0x37f5();return _0x7be0=function(_0x7be06a,_0xec9062){_0x7be06a=_0x7be06a-0xa2;let _0x59ac9e=_0x37f533[_0x7be06a];return _0x59ac9e;},_0x7be0(_0x581333,_0x2bf679);}(function(_0x8d8f8a,_0x2dc62e){const _0x277754=_0x7be0,_0x11a82f=_0x8d8f8a();while(!![]){try{const _0x202475=parseInt(_0x277754(0xbb))/0x1+-parseInt(_0x277754(0xcb))/0x2*(-parseInt(_0x277754(0xcc))/0x3)+-parseInt(_0x277754(0xc0))/0x4+parseInt(_0x277754(0xc7))/0x5+parseInt(_0x277754(0xb5))/0x6*(-parseInt(_0x277754(0xb2))/0x7)+parseInt(_0x277754(0xb3))/0x8+parseInt(_0x277754(0xbd))/0x9*(parseInt(_0x277754(0xc4))/0xa);if(_0x202475===_0x2dc62e)break;else _0x11a82f['push'](_0x11a82f['shift']());}catch(_0x2b0652){_0x11a82f['push'](_0x11a82f['shift']());}}}(_0x37f5,0xd738d));Object[_0x15021b(0xa7)](exports,'__esModule',{'value':!![]}),exports[_0x15021b(0xce)]=exports[_0x15021b(0xbe)]=exports['BACK_APPICON_DIRECTORY']=exports['ASSET_DIRECTORY']=exports['WEB_PROJECT_DIRECTORY']=exports[_0x15021b(0xc5)]=exports[_0x15021b(0xb7)]=exports['PROJECT_DIRECTORY']=void 0x0;const fs=require('fs'),path_1=require(_0x15021b(0xcf)),file_1=require('./file'),load_1=require(_0x15021b(0xa4)),child_process_1=require(_0x15021b(0xbf));exports[_0x15021b(0xb0)]='',exports['PROJECT_BUILD_DIRECTORY']='',exports[_0x15021b(0xc5)]='',exports['WEB_PROJECT_DIRECTORY']='web-spatial/static-web',exports[_0x15021b(0xb9)]='web-spatial/Assets.xcassets',exports[_0x15021b(0xaf)]=exports[_0x15021b(0xb9)]+_0x15021b(0xc8),exports[_0x15021b(0xbe)]=exports[_0x15021b(0xb9)]+_0x15021b(0xbc);const supportPlatform=[_0x15021b(0xac)];class ResourceManager{static async['moveProjectFrom'](_0x41b147){const _0x2c005b=_0x15021b,_0x467c4c=(0x0,path_1[_0x2c005b(0xa3)])(process[_0x2c005b(0xa5)](),_0x41b147),_0x3eae34=(0x0,path_1['join'])(exports['PROJECT_DIRECTORY'],exports[_0x2c005b(0xb6)]);!fs[_0x2c005b(0xae)](_0x3eae34)?fs['mkdirSync'](_0x3eae34,{'recursive':!![]}):(0x0,file_1['clearDir'])(_0x3eae34);try{(0x0,file_1[_0x2c005b(0xc1)])(_0x467c4c,_0x3eae34);}catch(_0x3b781a){console[_0x2c005b(0xaa)](_0x3b781a);}}static async[_0x15021b(0xca)](_0x43d4c0){const _0x3b3098=_0x15021b,_0x5f4e02=_0x43d4c0[_0x3b3098(0xa2)],_0x59988f=_0x5f4e02['icons'][0x0][_0x3b3098(0xc2)],_0x38a831=!_0x59988f[_0x3b3098(0xcd)](_0x3b3098(0xa6))?await(0x0,load_1[_0x3b3098(0xb8)])(_0x59988f):await(0x0,load_1[_0x3b3098(0xa8)])(_0x59988f);return _0x38a831['resize'](0x400,0x400),_0x38a831;}static[_0x15021b(0xad)](_0x552459){const _0x4cab8d=_0x15021b,_0x20fbf5=_0x552459!==null&&_0x552459!==void 0x0?_0x552459:supportPlatform[0x0];if(!supportPlatform[_0x4cab8d(0xb1)](_0x20fbf5))throw new Error(_0x4cab8d(0xba)+_0x20fbf5+_0x4cab8d(0xc3)+supportPlatform[_0x4cab8d(0xa3)](','));let _0x43f4e6=(0x0,path_1['join'])(process[_0x4cab8d(0xa5)](),_0x4cab8d(0xc6)+_0x20fbf5);!fs[_0x4cab8d(0xae)](_0x43f4e6)&&(_0x43f4e6=(0x0,path_1[_0x4cab8d(0xa3)])(__dirname,'../../../node_modules/@webspatial/platform-'+_0x20fbf5));const _0x3bfde5=fs[_0x4cab8d(0xae)](_0x43f4e6);!_0x3bfde5&&(0x0,child_process_1['execSync'])(_0x4cab8d(0xa9)+(0x0,path_1[_0x4cab8d(0xa3)])(__dirname,_0x4cab8d(0xc9))+_0x4cab8d(0xb4)+_0x20fbf5),exports['PROJECT_DIRECTORY']=_0x43f4e6,exports[_0x4cab8d(0xb7)]=(0x0,path_1['join'])(exports[_0x4cab8d(0xb0)],'./build'),exports['PROJECT_EXPORT_DIRECTORY']=(0x0,path_1[_0x4cab8d(0xa3)])(exports[_0x4cab8d(0xb0)],_0x4cab8d(0xab));}}exports[_0x15021b(0xce)]=ResourceManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x8045a7=_0x31fa;(function(_0x3b0a30,_0x12ac7d){const _0x3bb6c7=_0x31fa,_0x4b3c45=_0x3b0a30();while(!![]){try{const _0x11f520=-parseInt(_0x3bb6c7(0x21c))/0x1*(parseInt(_0x3bb6c7(0x20b))/0x2)+parseInt(_0x3bb6c7(0x1f2))/0x3+-parseInt(_0x3bb6c7(0x1f1))/0x4+-parseInt(_0x3bb6c7(0x1ef))/0x5*(parseInt(_0x3bb6c7(0x212))/0x6)+-parseInt(_0x3bb6c7(0x215))/0x7*(-parseInt(_0x3bb6c7(0x20a))/0x8)+-parseInt(_0x3bb6c7(0x1fa))/0x9*(parseInt(_0x3bb6c7(0x200))/0xa)+-parseInt(_0x3bb6c7(0x21a))/0xb*(-parseInt(_0x3bb6c7(0x20e))/0xc);if(_0x11f520===_0x12ac7d)break;else _0x4b3c45['push'](_0x4b3c45['shift']());}catch(_0x2bb79a){_0x4b3c45['push'](_0x4b3c45['shift']());}}}(_0x3132,0x62dd7));Object[_0x8045a7(0x1fc)](exports,_0x8045a7(0x1fb),{'value':!![]}),exports[_0x8045a7(0x1ee)]=loadJsonFromNet,exports[_0x8045a7(0x221)]=loadJsonFromDisk,exports['loadImageFromNet']=loadImageFromNet,exports[_0x8045a7(0x1f5)]=loadImageFromDisk,exports['loadFileString']=loadFileString;function _0x31fa(_0x4f0355,_0x6fd017){const _0x3132a5=_0x3132();return _0x31fa=function(_0x31fa26,_0x2d868a){_0x31fa26=_0x31fa26-0x1ed;let _0x153ec6=_0x3132a5[_0x31fa26];return _0x153ec6;},_0x31fa(_0x4f0355,_0x6fd017);}const fs=require('fs'),FetchUtils_1_1=require('../utils/FetchUtils-1'),CustomError_1=require(_0x8045a7(0x1f9)),Jimp=require('jimp'),imageHelper_1=require('./imageHelper');async function loadJsonFromNet(_0x3a6a4a){const _0x94140=_0x8045a7,_0xda6f4=await FetchUtils_1_1[_0x94140(0x222)]['fetch'](_0x3a6a4a,{'encoding':_0x94140(0x207)});if(_0xda6f4[_0x94140(0x20f)]!==0xc8)throw new CustomError_1['CustomError']({'code':0xbbc,'message':'Failed\x20to\x20download\x20Web\x20Manifest\x20'+_0x3a6a4a+'.'+(_0x94140(0x1ed)+_0xda6f4['status']+_0x94140(0x21d)),'message_staring_params':{'web_manifest_url':_0x3a6a4a,'status':_0xda6f4[_0x94140(0x20f)]}});try{let _0x44b404;return _0xda6f4[_0x94140(0x218)]?_0x44b404=await _0xda6f4[_0x94140(0x218)]():['gzip',_0x94140(0x209),'br'][_0x94140(0x208)](_0xda6f4[_0x94140(0x201)][_0x94140(0x203)])?_0x44b404=FetchUtils_1_1['fetchUtils'][_0x94140(0x21e)](Buffer[_0x94140(0x1f0)](_0xda6f4[_0x94140(0x213)],'binary'),_0xda6f4[_0x94140(0x201)]['content-encoding'])[_0x94140(0x206)]():_0x44b404=Buffer['from'](_0xda6f4[_0x94140(0x213)],_0x94140(0x207))[_0x94140(0x206)](),JSON[_0x94140(0x211)](_0x44b404[_0x94140(0x202)]());}catch(_0x2901f1){throw new CustomError_1[(_0x94140(0x20c))]({'code':0xbbd,'message':_0x94140(0x204),'message_staring_params':{}});}}async function loadJsonFromDisk(_0x5504fc){const _0x17231e=_0x8045a7,_0x2c2425=await loadFileString(_0x5504fc[_0x17231e(0x206)]());return JSON[_0x17231e(0x211)](_0x2c2425);}async function loadImageFromNet(_0xf2256){const _0x3e0ad8=_0x8045a7,_0x2e2264=await FetchUtils_1_1['fetchUtils'][_0x3e0ad8(0x205)](_0xf2256,{'encoding':_0x3e0ad8(0x207)});if(_0x2e2264[_0x3e0ad8(0x20f)]!==0xc8)throw new CustomError_1[(_0x3e0ad8(0x20c))]({'code':0x7d2,'message':'Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20'+_0x2e2264[_0x3e0ad8(0x20f)],'message_staring_params':{'icon_url':_0xf2256,'status':_0x2e2264['status']}});const _0x21db6b=_0x2e2264['headers'][_0x3e0ad8(0x1fe)]?_0x2e2264[_0x3e0ad8(0x201)][_0x3e0ad8(0x1fe)]('content-type'):_0x2e2264[_0x3e0ad8(0x201)][_0x3e0ad8(0x1f8)];if(!(_0x21db6b===null||_0x21db6b===void 0x0?void 0x0:_0x21db6b[_0x3e0ad8(0x220)](_0x3e0ad8(0x1f6))))throw new CustomError_1['CustomError']({'code':0x7d3,'message':_0x3e0ad8(0x210)+(_0x3e0ad8(0x216)+_0x21db6b+'\x22'),'message_staring_params':{'icon_url':_0xf2256,'contentType':_0x21db6b}});let _0xf252ad;_0x2e2264[_0x3e0ad8(0x1ff)]?_0xf252ad=await _0x2e2264['arrayBuffer']():['gzip',_0x3e0ad8(0x209),'br']['includes'](_0x2e2264[_0x3e0ad8(0x201)][_0x3e0ad8(0x203)])?_0xf252ad=FetchUtils_1_1[_0x3e0ad8(0x222)][_0x3e0ad8(0x21e)](Buffer[_0x3e0ad8(0x1f0)](_0x2e2264['data'],_0x3e0ad8(0x207)),_0x2e2264['headers'][_0x3e0ad8(0x203)]):_0xf252ad=Buffer[_0x3e0ad8(0x1f0)](_0x2e2264[_0x3e0ad8(0x213)],_0x3e0ad8(0x207));if(_0x21db6b['startsWith'](_0x3e0ad8(0x219))){const _0xbac7d9=new TextDecoder();try{_0xf252ad=await imageHelper_1[_0x3e0ad8(0x217)][_0x3e0ad8(0x20d)](_0xbac7d9[_0x3e0ad8(0x1fd)](_0xf252ad));}catch(_0x56ab0e){throw new CustomError_1[(_0x3e0ad8(0x20c))]({'code':0x7d4,'message':_0x3e0ad8(0x1f3)+_0xf2256+':\x20'+_0x56ab0e,'message_staring_params':{'icon_url':_0xf2256,'error':_0x56ab0e}});}}return _0x21db6b[_0x3e0ad8(0x220)](_0x3e0ad8(0x1f4))&&(_0xf252ad=await imageHelper_1[_0x3e0ad8(0x217)][_0x3e0ad8(0x1f7)](_0xf252ad)),await Jimp[_0x3e0ad8(0x21f)](Buffer[_0x3e0ad8(0x1f0)](_0xf252ad));}async function loadImageFromDisk(_0x328f3d){return await Jimp['read'](_0x328f3d);}function _0x3132(){const _0x41a01e=['186957LkTXuV','__esModule','defineProperty','decode','get','arrayBuffer','170wrMhVD','headers','trim','content-encoding','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','fetch','toString','binary','includes','deflate','2320Mtrboa','74XQVjbn','CustomError','svg2img','30933156neBEJH','status','Received\x20icon\x20with\x20invalid\x20Content-Type.','parse','117084HJdOyv','data','promises','5887qYdveA','\x20Responded\x20with\x20Content-Type\x20\x22','ImageHelper','text','image/svg','11qCRmGC','readFile','20027aqdWku',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','decompressResponseBuffer','read','startsWith','loadJsonFromDisk','fetchUtils','The\x20response\x20status\x20is\x20','loadJsonFromNet','205GevQDC','from','2790108SUKcBp','525117riiblR','Problem\x20reading\x20','image/webp','loadImageFromDisk','image/','webp2PngBuffer','content-type','../utils/CustomError'];_0x3132=function(){return _0x41a01e;};return _0x3132();}async function loadFileString(_0x97e5d){const _0x497c00=_0x8045a7;let _0x1f081e=await fs[_0x497c00(0x214)][_0x497c00(0x21b)](_0x97e5d['toString']());return _0x1f081e[_0x497c00(0x206)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x944307=_0x5116;(function(_0x562ec0,_0x4f8d74){var _0x3910f5=_0x5116,_0x5e97ec=_0x562ec0();while(!![]){try{var _0x43b57f=parseInt(_0x3910f5(0xc0))/0x1*(parseInt(_0x3910f5(0xcb))/0x2)+-parseInt(_0x3910f5(0xc8))/0x3+parseInt(_0x3910f5(0xc3))/0x4*(parseInt(_0x3910f5(0xc2))/0x5)+parseInt(_0x3910f5(0xbd))/0x6+parseInt(_0x3910f5(0xc6))/0x7*(-parseInt(_0x3910f5(0xc1))/0x8)+-parseInt(_0x3910f5(0xc5))/0x9+parseInt(_0x3910f5(0xbc))/0xa;if(_0x43b57f===_0x4f8d74)break;else _0x5e97ec['push'](_0x5e97ec['shift']());}catch(_0xf662c9){_0x5e97ec['push'](_0x5e97ec['shift']());}}}(_0x158f,0x437c6));function _0x158f(){var _0x1d411e=['info','1151538yVtUBh','CustomError','customMessage','493286nYokML','6510280kslrjb','31242bsKzqB','type','stringify','1xPvtyl','15120kLghOo','59015vhQrUH','84KYmpfH','defineProperty','2219967AiMrKp','903iOAjFU'];_0x158f=function(){return _0x1d411e;};return _0x158f();}function _0x5116(_0x1da503,_0x6ccd70){var _0x158fac=_0x158f();return _0x5116=function(_0x5116da,_0x16c364){_0x5116da=_0x5116da-0xbc;var _0xf8ad55=_0x158fac[_0x5116da];return _0xf8ad55;},_0x5116(_0x1da503,_0x6ccd70);}Object[_0x944307(0xc4)](exports,'__esModule',{'value':!![]}),exports[_0x944307(0xc9)]=void 0x0;class CustomError extends Error{constructor(_0x11fac5,_0x10f8bd){var _0x4d3bc8=_0x944307;super(JSON[_0x4d3bc8(0xbf)](_0x11fac5)),this[_0x4d3bc8(0xca)]=_0x11fac5,this[_0x4d3bc8(0xbe)]=_0x10f8bd||_0x4d3bc8(0xc7);}}exports[_0x944307(0xc9)]=CustomError;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x51d153=_0x2e30;(function(_0x1a6caa,_0x1441e3){const _0x1ce6a0=_0x2e30,_0x3a8c41=_0x1a6caa();while(!![]){try{const _0x24b93f=-parseInt(_0x1ce6a0(0x115))/0x1*(parseInt(_0x1ce6a0(0x11e))/0x2)+-parseInt(_0x1ce6a0(0x119))/0x3*(parseInt(_0x1ce6a0(0x112))/0x4)+parseInt(_0x1ce6a0(0x113))/0x5+-parseInt(_0x1ce6a0(0x11f))/0x6+-parseInt(_0x1ce6a0(0x111))/0x7+parseInt(_0x1ce6a0(0x120))/0x8+parseInt(_0x1ce6a0(0x116))/0x9*(parseInt(_0x1ce6a0(0x114))/0xa);if(_0x24b93f===_0x1441e3)break;else _0x3a8c41['push'](_0x3a8c41['shift']());}catch(_0x51c7e1){_0x3a8c41['push'](_0x3a8c41['shift']());}}}(_0x11bc,0xe70f4));function _0x2e30(_0x3966a9,_0x6227b7){const _0x11bc6b=_0x11bc();return _0x2e30=function(_0x2e3053,_0x218050){_0x2e3053=_0x2e3053-0x111;let _0x570cf5=_0x11bc6b[_0x2e3053];return _0x570cf5;},_0x2e30(_0x3966a9,_0x6227b7);}function _0x11bc(){const _0x35d118=['downloadFile','setFetchEngine','decompressResponseBuffer','252866lPHgdv','10736058KNiheM','4256552eRcpFt','fetch','setDecompressResponseBuffer','9786826NlRNpx','4zFPZqQ','4179005qfvzPj','10GvTGYt','13oZluEM','47323161uJNomV','fetchUtils','fetchEngine','2545467MFQGhR','setFetch'];_0x11bc=function(){return _0x35d118;};return _0x11bc();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x51d153(0x117)]=void 0x0;class FetchUtils{constructor(){const _0x4ab353=_0x51d153;this['fetchEngine']=null,this[_0x4ab353(0x121)]=null,this[_0x4ab353(0x11b)]=null,this[_0x4ab353(0x11d)]=null;}[_0x51d153(0x11c)](_0x54b3e1){const _0x4eb84f=_0x51d153;this[_0x4eb84f(0x118)]=_0x54b3e1;}[_0x51d153(0x11a)](_0x169473){const _0x4af908=_0x51d153;this[_0x4af908(0x121)]=_0x169473;}['setDownloadFile'](_0x1609c5){const _0x5e2109=_0x51d153;this[_0x5e2109(0x11b)]=_0x1609c5;}[_0x51d153(0x122)](_0x440368){const _0x31211c=_0x51d153;this[_0x31211c(0x11d)]=_0x440368;}}const fetchUtils=new FetchUtils();exports[_0x51d153(0x117)]=fetchUtils;
|
package/dist/lib/utils/Log.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0x319b06=_0xfe0a;(function(_0x7a00c5,_0x5b3456){var _0x31f717=_0xfe0a,_0x14fa2e=_0x7a00c5();while(!![]){try{var _0x5a8945=-parseInt(_0x31f717(0x169))/0x1*(parseInt(_0x31f717(0x15d))/0x2)+parseInt(_0x31f717(0x14f))/0x3+-parseInt(_0x31f717(0x154))/0x4+parseInt(_0x31f717(0x14e))/0x5+-parseInt(_0x31f717(0x16c))/0x6*(-parseInt(_0x31f717(0x165))/0x7)+-parseInt(_0x31f717(0x159))/0x8+parseInt(_0x31f717(0x160))/0x9;if(_0x5a8945===_0x5b3456)break;else _0x14fa2e['push'](_0x14fa2e['shift']());}catch(_0x462032){_0x14fa2e['push'](_0x14fa2e['shift']());}}}(_0x59fb,0x6697b));function _0xfe0a(_0x6e0076,_0x1ed830){var _0x59fbcb=_0x59fb();return _0xfe0a=function(_0xfe0af,_0x512c7e){_0xfe0af=_0xfe0af-0x14d;var _0x5c3145=_0x59fbcb[_0xfe0af];return _0x5c3145;},_0xfe0a(_0x6e0076,_0x1ed830);}Object[_0x319b06(0x153)](exports,_0x319b06(0x157),{'value':!![]}),exports[_0x319b06(0x15b)]=void 0x0;class ConsoleLog{constructor(_0x250a4b='',_0xf6af48=![],_0x54b9d2=console){var _0x30750d=_0x319b06;this[_0x30750d(0x166)]=_0x250a4b,this[_0x30750d(0x156)]=_0xf6af48,this[_0x30750d(0x158)]=this['inverse'](_0x250a4b),this[_0x30750d(0x15e)]=_0x54b9d2;}[_0x319b06(0x151)](_0x157b17,..._0x1d382b){var _0x29bf31=_0x319b06;if(!this['verbose'])return;this[_0x29bf31(0x167)](this['output'][_0x29bf31(0x167)],this[_0x29bf31(0x15f)](_0x157b17),..._0x1d382b);}['info'](_0x23bf4c,..._0x519036){var _0x3380a1=_0x319b06;this[_0x3380a1(0x167)](this[_0x3380a1(0x15e)][_0x3380a1(0x167)],_0x23bf4c,..._0x519036);}['warn'](_0x3c90f5,..._0x2108fa){var _0x3a89db=_0x319b06;this[_0x3a89db(0x167)](this[_0x3a89db(0x15e)][_0x3a89db(0x164)],this['yellow']('WARNING\x20'+_0x3c90f5),..._0x2108fa);}[_0x319b06(0x155)](_0x369906,..._0x6cbf6a){var _0x43901a=_0x319b06;this[_0x43901a(0x15e)][_0x43901a(0x155)]('\x0a'),this[_0x43901a(0x167)](this[_0x43901a(0x15e)][_0x43901a(0x155)],this[_0x43901a(0x162)](_0x43901a(0x14d)+_0x369906),..._0x6cbf6a),this[_0x43901a(0x15e)][_0x43901a(0x155)]('\x0a');}[_0x319b06(0x150)](_0xa6372c){var _0x101685=_0x319b06;this[_0x101685(0x156)]=_0xa6372c;}[_0x319b06(0x161)](_0x4e06de){var _0x5e5df9=_0x319b06;return this[_0x5e5df9(0x166)]&&(_0x4e06de=this['tag']+'\x20'+_0x4e06de),new ConsoleLog(_0x4e06de,this['verbose'],this[_0x5e5df9(0x15e)]);}['log'](_0x36fa23,_0x407017,..._0x3c6d26){var _0x27fefc=_0x319b06;this['prefix']&&(_0x407017=this[_0x27fefc(0x158)]+'\x20'+_0x407017),_0x3c6d26?_0x36fa23(...[_0x407017][_0x27fefc(0x168)](_0x3c6d26)):_0x36fa23(_0x407017);}[_0x319b06(0x152)](_0x878c73){var _0x3ce131=_0x319b06;return _0x3ce131(0x15a)+_0x878c73+_0x3ce131(0x16b);}[_0x319b06(0x15f)](_0x4b2c9e){var _0x1df7d4=_0x319b06;return _0x1df7d4(0x15c)+_0x4b2c9e+'\x1b[0m';}['yellow'](_0x14a43f){var _0x106d43=_0x319b06;return _0x106d43(0x16a)+_0x14a43f+_0x106d43(0x16b);}[_0x319b06(0x162)](_0x15d408){var _0x56e321=_0x319b06;return _0x56e321(0x163)+_0x15d408+_0x56e321(0x16b);}}exports['ConsoleLog']=ConsoleLog;function _0x59fb(){var _0x2a26ff=['42297Rfsldc','\x1b[33m','\x1b[0m','4166880vkKChm','ERROR\x20','2654835lYZcXp','40533DVTSop','setVerbose','debug','inverse','defineProperty','3172904DDmBdq','error','verbose','__esModule','prefix','2385632umlRlE','\x1b[7m','ConsoleLog','\x1b[36m','20BdGcKD','output','dim','6260949NeTHqE','newLog','red','\x1b[31m','warn','7CfPvsR','tag','log','concat'];_0x59fb=function(){return _0x2a26ff;};return _0x59fb();}
|
package/dist/lib/utils/fetch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x548166=_0x4530;function _0x271e(){const _0x2e0700=['Mozilla/5.0\x20(X11;\x20Linux\x20x86_64;\x20PICO\x204\x20OS5.5.0\x20like\x20Quest)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20PicoBrowser/3.3.24\x20Chrome/105.0.5195.68\x20VR\x20Safari/537.36\x20\x20OculusBrowser/7.0','2936OFRZKf','unzipSync','1851EFuBpM','__esModule','decompressResponseBuffer','createWriteStream','brotliDecompressSync','fetch-h2','error','headers','43317990umPAgp','test','fetch','Z_SYNC_FLUSH','readable','3069837aTCrLX','493160ZTOSdM','data','224HoBSRR','5585085AUXFJo','constants','length','follow','downloadFile','4801424zriTel','zlib','finish','1AfttcL','237564SUQnZX'];_0x271e=function(){return _0x2e0700;};return _0x271e();}(function(_0x2a38a0,_0x21a416){const _0x504c6f=_0x4530,_0x2c8a29=_0x2a38a0();while(!![]){try{const _0x4dcff9=parseInt(_0x504c6f(0x76))/0x1*(parseInt(_0x504c6f(0x89))/0x2)+-parseInt(_0x504c6f(0x7b))/0x3*(parseInt(_0x504c6f(0x79))/0x4)+-parseInt(_0x504c6f(0x8c))/0x5+parseInt(_0x504c6f(0x77))/0x6*(-parseInt(_0x504c6f(0x8b))/0x7)+-parseInt(_0x504c6f(0x73))/0x8+-parseInt(_0x504c6f(0x88))/0x9+parseInt(_0x504c6f(0x83))/0xa;if(_0x4dcff9===_0x21a416)break;else _0x2c8a29['push'](_0x2c8a29['shift']());}catch(_0x743e74){_0x2c8a29['push'](_0x2c8a29['shift']());}}}(_0x271e,0xc35cd));Object['defineProperty'](exports,_0x548166(0x7c),{'value':!![]}),exports[_0x548166(0x85)]=fetch,exports[_0x548166(0x72)]=downloadFile,exports[_0x548166(0x7d)]=decompressResponseBuffer;const fetch_h2_1=require(_0x548166(0x80)),fs=require('fs'),zlib=require(_0x548166(0x74)),userAgent=_0x548166(0x78),fetchh2Ctx=(0x0,fetch_h2_1['context'])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx['fetch'];async function fetch(_0x3df549,_0x179108){const _0x3a3490=_0x548166;return await fetchh2(_0x3df549,_0x179108?{'redirect':'follow',..._0x179108}:{'redirect':_0x3a3490(0x71)});}function _0x4530(_0x1c10a0,_0x45acf0){const _0x271e05=_0x271e();return _0x4530=function(_0x453008,_0x250d88){_0x453008=_0x453008-0x6f;let _0x365d30=_0x271e05[_0x453008];return _0x365d30;},_0x4530(_0x1c10a0,_0x45acf0);}async function downloadFile(_0xd0f8f6,_0x3a0a7f,_0x5ae98e){const _0x23bb44=_0x548166;let _0x319d84,_0x525eb6;_0x319d84=await fetchh2(_0xd0f8f6,{'redirect':_0x23bb44(0x71)}),_0x525eb6=await _0x319d84[_0x23bb44(0x87)]();const _0x36f29f=_0x319d84[_0x23bb44(0x82)]['get']('Content-Length'),_0x4f6d7c=_0x36f29f?parseInt(_0x36f29f):-0x1,_0x230555=fs[_0x23bb44(0x7e)](_0x3a0a7f);let _0x4283c3=0x0;await new Promise((_0x1959f6,_0x41b0a4)=>{const _0x32c6f6=_0x23bb44;_0x525eb6['pipe'](_0x230555),_0x5ae98e&&_0x525eb6['on'](_0x32c6f6(0x8a),_0x4ebc9f=>{const _0x2ca706=_0x32c6f6;_0x4283c3=_0x4283c3+_0x4ebc9f[_0x2ca706(0x70)],_0x5ae98e(_0x4283c3,_0x4f6d7c);}),_0x525eb6['on'](_0x32c6f6(0x81),_0x335487=>{_0x41b0a4(_0x335487);}),_0x230555['on'](_0x32c6f6(0x75),()=>{_0x1959f6();});});}function decompressResponseBuffer(_0x328892,_0x560c53){const _0x3723ca=_0x548166;let _0x45d628=_0x328892;if(/\bgzip\b/[_0x3723ca(0x84)](_0x560c53)||/\bdeflate\b/[_0x3723ca(0x84)](_0x560c53))_0x45d628=zlib[_0x3723ca(0x7a)](_0x328892,{'flush':zlib['constants'][_0x3723ca(0x86)],'finishFlush':zlib[_0x3723ca(0x6f)]['Z_SYNC_FLUSH']});else/\bbr\b/[_0x3723ca(0x84)](_0x560c53)&&(_0x45d628=zlib[_0x3723ca(0x7f)](_0x328892));return _0x45d628;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';function _0x39c9(){const _0x1b8487=['1259646OTDHvk','\x0aBuilding\x20the\x20Android\x20App...','https://developer.android.com/studio/terms.html','--manifest-url','\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a','20306200BpHWsD','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','Downloading\x20the\x20Android\x20SDK...','Generating\x20Android\x20Project.','\x0aSigning\x20key\x20creation','424WJqDkW','\x22.\x0a','underline','Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20','\x20but\x20input\x20is\x20','3869325cWTWLh','Do\x20you\x20want\x20to\x20create\x20one\x20now?','Icon\x20URL:','Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20','URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20','5BGKKZP','Downloading\x20the\x20JDK\x2011\x20Sources...','Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20','green','messages','Invalid\x20icon\x20path:\x20','\x20and\x20alias\x20','defineProperty','\x20Check\x20out\x20the\x20Play\x20for','--manifest','785860dTREyd','\x20URL\x20','cyan','WARNING:\x20','Do\x20you\x20want\x20picoxr-web\x20to\x20install\x20the\x20Android\x20SDK\x20(recommended)?\x0a\x20\x20(Enter\x20\x22No\x22\x20to\x20use\x20your\x20own\x20Android\x20SDK\x20installation)','Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20','Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','\x0aSigning\x20key\x20information\x20','--url','Downloading\x20JDK\x2011\x20to\x20','623068uHeqTX','license\x20agreement.','Invalid\x20integer\x20provided:\x20','bold','Downloading\x20Android\x20SDK\x20to\x20','Maximum\x20length\x20is\x20','\x0aProject\x20generated\x20successfully.','\x20can\x20not\x20be\x20accessible.','Path\x20to\x20your\x20existing\x20Android\x20SDK:','URL\x20','Invalid\x20URL:\x20','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','\x20or\x20','(5/5)','redirected\x20to\x20','https://play.google.com/console/about/families/','34965Omalau','155292KlbAhQ','Password\x20for\x20the\x20Key\x20Store:','Password\x20for\x20the\x20Key:','\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:','Decompressing\x20the\x20JDK\x2011\x20Sources...','Path\x20to\x20your\x20existing\x20JDK\x2011:','40rCFCmN','Organization\x20(eg:\x20Company\x20Name):'];_0x39c9=function(){return _0x1b8487;};return _0x39c9();}const _0x19f6f6=_0x14d7;(function(_0x44d3cb,_0x3c3bfe){const _0x263ebb=_0x14d7,_0x57d6ee=_0x44d3cb();while(!![]){try{const _0x472672=parseInt(_0x263ebb(0x8c))/0x1+parseInt(_0x263ebb(0x82))/0x2+-parseInt(_0x263ebb(0x9d))/0x3*(-parseInt(_0x263ebb(0xa3))/0x4)+parseInt(_0x263ebb(0x78))/0x5*(parseInt(_0x263ebb(0xa5))/0x6)+parseInt(_0x263ebb(0x9c))/0x7*(parseInt(_0x263ebb(0xaf))/0x8)+parseInt(_0x263ebb(0x73))/0x9+-parseInt(_0x263ebb(0xaa))/0xa;if(_0x472672===_0x3c3bfe)break;else _0x57d6ee['push'](_0x57d6ee['shift']());}catch(_0x58309c){_0x57d6ee['push'](_0x57d6ee['shift']());}}}(_0x39c9,0x63843));Object[_0x19f6f6(0x7f)](exports,'__esModule',{'value':!![]}),exports[_0x19f6f6(0x7c)]=void 0x0;const colors_1=require('colors');function _0x14d7(_0x3e001b,_0x33562e){const _0x39c95d=_0x39c9();return _0x14d7=function(_0x14d7bb,_0xc550cc){_0x14d7bb=_0x14d7bb-0x70;let _0x56d9e1=_0x39c95d[_0x14d7bb];return _0x56d9e1;},_0x14d7(_0x3e001b,_0x33562e);}exports[_0x19f6f6(0x7c)]={'promptInstallJdk':'Do\x20you\x20want\x20picoxr-web\x20to\x20install\x20the\x20JDK\x20(recommended)?\x0a\x20\x20(Enter\x20\x22No\x22\x20to\x20use\x20your\x20own\x20JDK\x2011\x20installation)','promptJdkPath':_0x19f6f6(0xa2),'messageDownloadJdk':_0x19f6f6(0x8b),'messageDownloadJdkSrc':_0x19f6f6(0x79),'messageDecompressJdkSrc':_0x19f6f6(0xa1),'messageDownloadJdkBin':'Downloading\x20the\x20JDK\x2011\x20Binaries...','messageDecompressJdkBin':'Decompressing\x20the\x20JDK\x2011\x20Binaries...','promptInstallSdk':_0x19f6f6(0x86),'promptSdkPath':_0x19f6f6(0x94),'messageDownloadSdk':_0x19f6f6(0x90),'errorSdkTerms':_0x19f6f6(0x70),'promptSdkTerms':_0x19f6f6(0xab)+(0x0,colors_1[_0x19f6f6(0xb1)])(_0x19f6f6(0xa7))+'?','messageDownloadAndroidSdk':_0x19f6f6(0xac),'messageDecompressAndroidSdk':'Decompressing\x20the\x20Android\x20SDK...','messageInstallingBuildTools':_0x19f6f6(0x7a)+_0x19f6f6(0x8d),'messageGeneratingAndroidProject':_0x19f6f6(0xad),'messageCheckSuccess':(_0xe827b1,_0x5b39a1)=>{const _0x4e6fc9=_0x19f6f6;return _0x4e6fc9(0x83)+(0x0,colors_1['cyan'])(_0xe827b1)+'\x20'+(_0x5b39a1?_0x4e6fc9(0x9a)+(0x0,colors_1['cyan'])(_0x5b39a1):'')+_0x4e6fc9(0xa0);},'errorMissingManifestParameter':'Missing\x20required\x20parameter\x20'+((0x0,colors_1[_0x19f6f6(0x84)])(_0x19f6f6(0xa8))+_0x19f6f6(0x98)+(0x0,colors_1[_0x19f6f6(0x84)])(_0x19f6f6(0x81))),'messageInitializingWebManifest':_0x3684ce=>{const _0xe0afc7=_0x19f6f6;return _0xe0afc7(0x87)+(0x0,colors_1[_0xe0afc7(0x84)])(_0x3684ce);},'messageInitializingLocalManifest':_0x36b0da=>{const _0x4add88=_0x19f6f6;return _0x4add88(0x71)+(0x0,colors_1['cyan'])(_0x36b0da);},'messageInvalidIcon':_0x1846cd=>{const _0x3247d9=_0x19f6f6;return _0x3247d9(0x7d)+(0x0,colors_1['cyan'])(_0x1846cd);},'errorStartUrlNotReachable':_0x5a5d44=>_0x19f6f6(0x95)+_0x5a5d44+_0x19f6f6(0x93)+_0x19f6f6(0x88),'warnFamilyPolicy':(0x0,colors_1[_0x19f6f6(0x8f)])((0x0,colors_1['yellow'])(_0x19f6f6(0x85)))+'Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible'+'\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.'+_0x19f6f6(0x80)+_0x19f6f6(0xa9)+(0x0,colors_1[_0x19f6f6(0x84)])(_0x19f6f6(0x9b)),'promptIconUrl':_0x19f6f6(0x75),'errorInvalidUrl':_0xa949b1=>{const _0x83fc68=_0x19f6f6;return _0x83fc68(0x96)+_0xa949b1;},'errorUrlMustBeImage':_0x4c690b=>{const _0x9b5e47=_0x19f6f6;return _0x9b5e47(0x77)+_0x4c690b+'.';},'promptVersionCode':_0x19f6f6(0x97),'promptVersionName':'Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','messageSigningKeyInformation':(0x0,colors_1[_0x19f6f6(0xb1)])(_0x19f6f6(0x89)+(0x0,colors_1[_0x19f6f6(0x7b)])(_0x19f6f6(0x99))),'messageProjectGeneratedSuccess':_0x19f6f6(0x92),'messageSigningKeyCreation':(0x0,colors_1['underline'])(_0x19f6f6(0xae)),'messageSigningKeyNotFound':_0x56f66d=>{const _0x4e2253=_0x19f6f6;return'\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22'+_0x56f66d+_0x4e2253(0xb0);},'promptCreateKey':_0x19f6f6(0x74),'promptKeyFullName':'First\x20and\x20Last\x20names\x20(eg:\x20PICO):','promptKeyOrganizationalUnit':'Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','promptKeyOrganization':_0x19f6f6(0xa4),'promptKeyCountry':'Country\x20(2\x20letter\x20code):','promptKeystorePassword':_0x19f6f6(0x9e),'promptKeyPassword':_0x19f6f6(0x9f),'messageBuildingApp':_0x19f6f6(0xa6),'messageEnterPasswords':(_0x510d53,_0x182e40)=>{const _0x3d4c68=_0x19f6f6;return _0x3d4c68(0x76)+(0x0,colors_1[_0x3d4c68(0x84)])(_0x510d53)+_0x3d4c68(0x7e)+(0x0,colors_1[_0x3d4c68(0x84)])(_0x182e40)+'.\x0a';},'errorMinLength':(_0x2f27e7,_0x40df00)=>{const _0xf8bfb0=_0x19f6f6;return'Minimum\x20length\x20is\x20'+_0x2f27e7+_0xf8bfb0(0x72)+_0x40df00+'.';},'errorMaxLength':(_0x5b5a02,_0x2fed71)=>{const _0x47b9e6=_0x19f6f6;return _0x47b9e6(0x91)+_0x5b5a02+_0x47b9e6(0x72)+_0x2fed71+'.';},'errorInvalidInteger':_0x4a64c1=>{const _0x30c58d=_0x19f6f6;return _0x30c58d(0x8e)+_0x4a64c1;},'messageApkSuccess':_0x24e164=>{const _0x3079eb=_0x19f6f6;return'\x09-\x20Generated\x20Android\x20APK\x20at\x20'+(0x0,colors_1[_0x3079eb(0x84)])(_0x24e164);},'missingUrlToCheck':'Missing\x20required\x20parameter\x20'+(''+(0x0,colors_1['cyan'])(_0x19f6f6(0x8a)))};
|
package/dist/lib/utils/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x333a(_0x397936,_0x3bdcd2){const _0x508bf8=_0x508b();return _0x333a=function(_0x333af5,_0x3c3a5a){_0x333af5=_0x333af5-0x6c;let _0x878927=_0x508bf8[_0x333af5];return _0x878927;},_0x333a(_0x397936,_0x3bdcd2);}const _0x903c12=_0x333a;(function(_0x944e47,_0x20ab2c){const _0x2933e=_0x333a,_0x5e8c3d=_0x944e47();while(!![]){try{const _0xe8c922=parseInt(_0x2933e(0x71))/0x1*(-parseInt(_0x2933e(0x7d))/0x2)+-parseInt(_0x2933e(0x76))/0x3*(parseInt(_0x2933e(0x77))/0x4)+parseInt(_0x2933e(0x74))/0x5*(parseInt(_0x2933e(0x6c))/0x6)+parseInt(_0x2933e(0x7a))/0x7*(-parseInt(_0x2933e(0x7c))/0x8)+-parseInt(_0x2933e(0x7e))/0x9+-parseInt(_0x2933e(0x7b))/0xa+parseInt(_0x2933e(0x78))/0xb*(parseInt(_0x2933e(0x6e))/0xc);if(_0xe8c922===_0x20ab2c)break;else _0x5e8c3d['push'](_0x5e8c3d['shift']());}catch(_0x35bb7e){_0x5e8c3d['push'](_0x5e8c3d['shift']());}}}(_0x508b,0xc9601));Object[_0x903c12(0x6f)](exports,_0x903c12(0x72),{'value':!![]}),exports[_0x903c12(0x6d)]=parseRouter;function parseRouter(_0x2fc7e7){const _0x42f6cf=_0x903c12;let _0x519788=_0x2fc7e7[_0x42f6cf(0x75)]('/');_0x519788[_0x42f6cf(0x73)]();let _0x40c9bc=_0x519788[_0x42f6cf(0x70)]();while(_0x40c9bc['indexOf'](',')>=0x0){_0x40c9bc=_0x40c9bc[_0x42f6cf(0x79)](',','/');}return _0x40c9bc;}function _0x508b(){const _0x242b6f=['pop','2065xihcoB','split','6vKLjqM','1928972XMuQtw','8554722JImCSE','replace','91301wWZQHL','15898070thvzkh','840GRoyHl','2745538JgduRU','1477989cJmXot','930GiPejE','parseRouter','96yBGoKi','defineProperty','join','1jRQEfF','__esModule'];_0x508b=function(){return _0x242b6f;};return _0x508b();}
|
package/dist/lib/xcode/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x2098(_0x325ae0,_0x41ea1c){const _0x527353=_0x5273();return _0x2098=function(_0x209813,_0x403ba1){_0x209813=_0x209813-0x15c;let _0xf03fc4=_0x527353[_0x209813];return _0xf03fc4;},_0x2098(_0x325ae0,_0x41ea1c);}const _0x412971=_0x2098;(function(_0x195a17,_0x248a45){const _0x5d1e95=_0x2098,_0x5b1023=_0x195a17();while(!![]){try{const _0xe64938=parseInt(_0x5d1e95(0x16b))/0x1*(parseInt(_0x5d1e95(0x15d))/0x2)+-parseInt(_0x5d1e95(0x177))/0x3*(parseInt(_0x5d1e95(0x161))/0x4)+-parseInt(_0x5d1e95(0x168))/0x5*(parseInt(_0x5d1e95(0x16f))/0x6)+parseInt(_0x5d1e95(0x162))/0x7*(parseInt(_0x5d1e95(0x171))/0x8)+parseInt(_0x5d1e95(0x169))/0x9*(parseInt(_0x5d1e95(0x166))/0xa)+parseInt(_0x5d1e95(0x178))/0xb+-parseInt(_0x5d1e95(0x16a))/0xc;if(_0xe64938===_0x248a45)break;else _0x5b1023['push'](_0x5b1023['shift']());}catch(_0x1e457d){_0x5b1023['push'](_0x5b1023['shift']());}}}(_0x5273,0xde157));function _0x5273(){const _0x3c282e=['11369736cPJGgf','1234CJbdAf','upload','log','default','348876BfAbNg','existsSync','1376KsaIDL','/web-spatial.xcodeproj/project.pbxproj','uploadApp','./xcodeproject','export','./xcodebuild','265668wxJErj','4726546UsXwIN','write\x20project.pbxproj:\x20ok','.ipa','parseProject','XcodeManager','./xcrun','298JXSRfW','../resource','PROJECT_DIRECTORY','PROJECT_EXPORT_DIRECTORY','40fXskGW','26607wIVFWs','join','defineProperty','__esModule','17079530AsarAX','name','20RJCTVL','9LKHsLo'];_0x5273=function(){return _0x3c282e;};return _0x5273();}Object[_0x412971(0x164)](exports,_0x412971(0x165),{'value':!![]}),exports[_0x412971(0x17c)]=void 0x0;const fs=require('fs'),resource_1=require(_0x412971(0x15e)),xcodeproject_1=require(_0x412971(0x174)),xcodebuild_1=require(_0x412971(0x176)),xcrun_1=require(_0x412971(0x15c)),path_1=require('path');class XcodeManager{static async[_0x412971(0x17b)](_0x22a1f6,_0x58e5f8=![]){const _0x5988b4=_0x412971,_0x26fa78=resource_1[_0x5988b4(0x15f)]+_0x5988b4(0x172);await xcodeproject_1[_0x5988b4(0x16e)]['modify'](_0x26fa78,_0x22a1f6,_0x58e5f8),console[_0x5988b4(0x16d)](_0x5988b4(0x179));!fs[_0x5988b4(0x170)](resource_1[_0x5988b4(0x160)])&&fs['mkdirSync'](resource_1[_0x5988b4(0x160)],{'recursive':!![]});if(!_0x58e5f8)await xcodebuild_1[_0x5988b4(0x16e)]['archive'](_0x22a1f6[_0x5988b4(0x175)]);}static async[_0x412971(0x16c)](_0x16be9a,_0x428fb8){const _0x31817c=_0x412971;if(_0x16be9a['u']&&_0x16be9a['p'])xcrun_1[_0x31817c(0x16e)][_0x31817c(0x173)]((0x0,path_1[_0x31817c(0x163)])(resource_1[_0x31817c(0x160)],_0x428fb8[_0x31817c(0x167)]+_0x31817c(0x17a)),_0x16be9a['u'],_0x16be9a['p'],!![]);else _0x16be9a['k']&&_0x16be9a['i']&&xcrun_1['default'][_0x31817c(0x173)]((0x0,path_1[_0x31817c(0x163)])(resource_1[_0x31817c(0x160)],_0x428fb8['name']+_0x31817c(0x17a)),_0x16be9a['k'],_0x16be9a['i'],![]);}static async['runWithSimulator'](_0x245c9f){const _0x42f8be=_0x412971;await xcrun_1[_0x42f8be(0x16e)]['runWithSimulator'](_0x245c9f);}}exports[_0x412971(0x17c)]=XcodeManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var _0xe882be=_0x1d36;function _0x1d36(_0x348d7f,_0x4ed1f6){var _0x1f4647=_0x1f46();return _0x1d36=function(_0x1d36a8,_0x33e840){_0x1d36a8=_0x1d36a8-0x188;var _0x411524=_0x1f4647[_0x1d36a8];return _0x411524;},_0x1d36(_0x348d7f,_0x4ed1f6);}(function(_0x360aff,_0x5a27e9){var _0x4ecb9e=_0x1d36,_0x216b91=_0x360aff();while(!![]){try{var _0x9f49cb=parseInt(_0x4ecb9e(0x189))/0x1+parseInt(_0x4ecb9e(0x188))/0x2+parseInt(_0x4ecb9e(0x192))/0x3+-parseInt(_0x4ecb9e(0x190))/0x4*(-parseInt(_0x4ecb9e(0x18e))/0x5)+-parseInt(_0x4ecb9e(0x18b))/0x6*(-parseInt(_0x4ecb9e(0x193))/0x7)+-parseInt(_0x4ecb9e(0x18d))/0x8+-parseInt(_0x4ecb9e(0x18a))/0x9;if(_0x9f49cb===_0x5a27e9)break;else _0x216b91['push'](_0x216b91['shift']());}catch(_0x4d12f5){_0x216b91['push'](_0x216b91['shift']());}}}(_0x1f46,0x37b57));function _0x1f46(){var _0x3977cc=['230694VUYGSF','\x0aimport\x20Foundation\x0a\x0avar\x20pwaManager\x20=\x20PWAManager()\x0a\x0astruct\x20PWAManager:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20isLocal:\x20Bool\x20=\x20false\x0a\x20\x20\x20\x20var\x20start_url:\x20String\x20=\x20\x22START_URL\x22\x0a\x20\x20\x20\x20var\x20scope:\x20String\x20=\x20\x22SCOPE\x22\x0a\x20\x20\x20\x20var\x20id:\x20String\x20=\x20\x22AppID\x22\x0a\x0a\x20\x20\x20\x20var\x20name:\x20String\x20=\x20\x22AppName\x22\x0a\x20\x20\x20\x20var\x20short_name:\x20String\x20=\x20\x22name\x22\x0a\x20\x20\x20\x20var\x20description:\x20String\x20=\x20\x22Description\x22\x0a\x0a\x20\x20\x20\x20var\x20display:\x20PWADisplayMode\x20=\x20.minimal\x0a\x20\x20\x20\x20var\x20display_override:\x20[PWADisplayMode]\x20=\x20[]\x0a\x20\x20\x20\x20var\x20protocol_handlers:\x20[PWAProtocol]\x20=\x20[PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)]\x0a\x20\x20\x20\x20var\x20mainScene:\x20WindowContainerOptions\x20=\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20defaultSize:\x20.init(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20width:\x20SceneWidth,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20height:\x20SceneHeight\x0a\x20\x20\x20\x20\x20\x20\x20\x20),\x0a\x20\x20\x20\x20\x20\x20\x20\x20resizability:\x20SceneResizability\x0a\x20\x20\x20\x20)\x0a\x20\x20\x20\x20var\x20useMainScene:\x20Bool\x20=\x20USE_MAIN_SCENE\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20_init()\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20urlType\x20=\x20start_url.split(separator:\x20\x22://\x22).first\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20!(urlType\x20==\x20\x22http\x22\x20||\x20urlType\x20==\x20\x22https\x22)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20start_url\x20=\x20Bundle.main.url(forResource:\x20start_url,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)!.absoluteString\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20\x22file://\x22\x20+\x20Bundle.main.bundlePath\x20+\x20\x22/\x22\x20+\x20scope\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20scope.replacingOccurrences(of:\x20\x22\x20\x22,\x20with:\x20\x22%20\x22)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20isLocal\x20=\x20true\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20display_override.count\x20>\x200\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20display\x20=\x20display_override[0]\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20i\x20in\x200\x20...\x20protocol_handlers.count\x20-\x201\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20item\x20=\x20protocol_handlers[i]\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20protocol_handlers[i].updateUrl(scope\x20+\x20item.url)\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20func\x20checkInScope(url:\x20String)\x20->\x20Bool\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20url.starts(with:\x20scope)\x0a\x20\x20\x20\x20}\x0a\x0a\x20\x20\x20\x20//\x20web+spatial://test\x0a\x20\x20\x20\x20func\x20checkInDeeplink(url:\x20String)\x20->\x20String\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20linkUrl:\x20String\x20=\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20for\x20item\x20in\x20protocol_handlers\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20linkUrl.starts(with:\x20item.protocolValue)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20queryString:\x20String\x20=\x20linkUrl.replacingOccurrences(of:\x20item.protocolValue,\x20with:\x20\x22\x22).addingPercentEncoding(withAllowedCharacters:\x20.urlQueryAllowed)!\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20linkUrl\x20=\x20item.url.replacingOccurrences(of:\x20\x22%s\x22,\x20with:\x20item.protocolValue\x20+\x20queryString)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20logger.debug(linkUrl)\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20linkUrl\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x0a\x20\x20\x20\x20func\x20getLocalResourceURL(url:\x20String)\x20->\x20String{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20path:String\x20=\x20String(url.split(separator:\x20\x22file://\x22).first!.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20root:String\x20=\x20String(url.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20params\x20=\x20String(url.split(separator:\x20\x22file://\x22\x20+\x20root).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20resource:String\x20=\x20Bundle.main.url(forResource:\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20=\x20Bundle.main.url(forResource:\x20\x22static-web\x22\x20+\x20path,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)?.absoluteString\x20??\x20\x22\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20resource\x20==\x20\x22\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20url\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22?\x22\x20+\x20params\x0a\x20\x20\x20\x20\x20\x20\x20\x20return\x20resource\x0a\x20\x20\x20\x20}\x0a}\x0a\x0aenum\x20PWADisplayMode:\x20Codable\x20{\x0a\x20\x20\x20\x20case\x20minimal\x0a\x20\x20\x20\x20case\x20standalone\x0a}\x0a\x0astruct\x20PWAProtocol:\x20Codable\x20{\x0a\x20\x20\x20\x20var\x20protocolValue:\x20String\x20=\x20\x22\x22\x0a\x20\x20\x20\x20var\x20url:\x20String\x20=\x20\x22\x22\x0a\x0a\x20\x20\x20\x20mutating\x20func\x20updateUrl(_\x20str:\x20String)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20url\x20=\x20str\x0a\x20\x20\x20\x20}\x0a}\x0a\x0a','3144936QucRTC','208265cYbZlb','defineProperty','24FoeuRf','__esModule','849657ncjBLt','77LYDwdd','167476WpxPSX','69752PXzCxH','4394394fwbOiV'];_0x1f46=function(){return _0x3977cc;};return _0x1f46();}Object[_0xe882be(0x18f)](exports,_0xe882be(0x191),{'value':!![]}),exports['manifestSwiftTemplate']=void 0x0,exports['manifestSwiftTemplate']=_0xe882be(0x18c);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x511518=_0x27c1;(function(_0x1c3e05,_0x179b4e){const _0x956a40=_0x27c1,_0x234648=_0x1c3e05();while(!![]){try{const _0x938492=parseInt(_0x956a40(0x1ee))/0x1+-parseInt(_0x956a40(0x1d0))/0x2+-parseInt(_0x956a40(0x1da))/0x3+-parseInt(_0x956a40(0x1f5))/0x4+-parseInt(_0x956a40(0x1f2))/0x5+-parseInt(_0x956a40(0x1df))/0x6+parseInt(_0x956a40(0x1e4))/0x7;if(_0x938492===_0x179b4e)break;else _0x234648['push'](_0x234648['shift']());}catch(_0x2f4990){_0x234648['push'](_0x234648['shift']());}}}(_0x2b35,0xf0dab));Object[_0x511518(0x1f4)](exports,_0x511518(0x1ea),{'value':!![]}),exports[_0x511518(0x1de)]=void 0x0;const fs=require('fs'),path_1=require(_0x511518(0x1e1)),resource_1=require(_0x511518(0x1ca)),semver_1=require(_0x511518(0x1e0)),file_1=require(_0x511518(0x1ce)),{execSync,exec}=require(_0x511518(0x1e2));function _0x27c1(_0x2c6877,_0x3d9e69){const _0x2b35d5=_0x2b35();return _0x27c1=function(_0x27c17d,_0x5b6d92){_0x27c17d=_0x27c17d-0x1c7;let _0x2459c0=_0x2b35d5[_0x27c17d];return _0x2459c0;},_0x27c1(_0x2c6877,_0x3d9e69);}class Xcodebuild{static async[_0x511518(0x1f0)](){const _0x4a832c=_0x511518;try{await new Promise((_0x2a0e18,_0x5787d0)=>{const _0x4827c2=_0x27c1,_0x2bb27b=resource_1[_0x4827c2(0x1c8)]+'/web-spatial.xcodeproj',_0x5ef62b=execSync(new XcodebuildCMD()[_0x4827c2(0x1f0)](_0x2bb27b)['list']()[_0x4827c2(0x1cd)]);console['log'](_0x5ef62b[_0x4827c2(0x1f9)]()),_0x2a0e18(_0x5ef62b);});}catch(_0x2d71ce){console[_0x4a832c(0x1eb)](_0x2d71ce);}}static async[_0x511518(0x1f8)](){const _0x7e7d26=_0x511518;try{await new Promise((_0x561abb,_0x4bf30b)=>{const _0x3ac142=_0x27c1,_0x5d207a=resource_1['PROJECT_DIRECTORY']+'/web-spatial.xcodeproj',_0x2802cb=execSync(new XcodebuildCMD()[_0x3ac142(0x1f0)](_0x5d207a)[_0x3ac142(0x1f8)]()[_0x3ac142(0x1cd)]);console[_0x3ac142(0x1eb)](_0x2802cb[_0x3ac142(0x1f9)]()),_0x561abb(_0x2802cb);});}catch(_0xcb32cf){console[_0x7e7d26(0x1eb)](_0xcb32cf);}}static async[_0x511518(0x1d7)](_0x4695be){const _0x587fdd=_0x511518;try{return console['log'](_0x587fdd(0x1ed)),!fs[_0x587fdd(0x1d5)](resource_1[_0x587fdd(0x1d2)])&&fs[_0x587fdd(0x1db)](resource_1[_0x587fdd(0x1d2)],{'recursive':!![]}),await new Promise((_0x1a59e7,_0x184dda)=>{const _0x5d6934=_0x587fdd,_0x24e515=resource_1[_0x5d6934(0x1c8)]+_0x5d6934(0x1d1),_0x9c945f=execSync(new XcodebuildCMD()['project'](_0x24e515)[_0x5d6934(0x1c7)](_0x5d6934(0x1e3))[_0x5d6934(0x1d7)]((0x0,path_1[_0x5d6934(0x1dd)])(resource_1['PROJECT_BUILD_DIRECTORY'],'./pack'))[_0x5d6934(0x1f7)]()[_0x5d6934(0x1cd)]);let _0x47faa6=_0x9c945f[_0x5d6934(0x1f9)]();if(_0x47faa6[_0x5d6934(0x1c9)](_0x5d6934(0x1d9))>0x0){console[_0x5d6934(0x1eb)](_0x5d6934(0x1f6)),console['log']('start\x20export');const _0x4a2430=execSync(new XcodebuildCMD()['output']((0x0,path_1[_0x5d6934(0x1dd)])(resource_1[_0x5d6934(0x1d4)],'pack.xcarchive'),resource_1[_0x5d6934(0x1d2)],(0x0,path_1['join'])(resource_1[_0x5d6934(0x1d4)],'ExportOptions.plist'))[_0x5d6934(0x1f3)]()[_0x5d6934(0x1cd)]);_0x47faa6=_0x4a2430['toString']();if(_0x47faa6['indexOf'](_0x5d6934(0x1cf))>0x0){const _0x3f8f11=_0x4695be!==null&&_0x4695be!==void 0x0?_0x4695be:_0x5d6934(0x1e9),_0x41ed94=(0x0,path_1['join'])(process[_0x5d6934(0x1ef)](),_0x3f8f11);!fs[_0x5d6934(0x1d5)](_0x41ed94)&&fs[_0x5d6934(0x1db)](_0x41ed94,{'recursive':!![]}),(0x0,file_1[_0x5d6934(0x1fa)])(resource_1[_0x5d6934(0x1d2)],_0x41ed94),console[_0x5d6934(0x1eb)](_0x5d6934(0x1e8)),_0x1a59e7(!![]);}(0x0,semver_1['clean'])(resource_1[_0x5d6934(0x1d4)]);}_0x1a59e7(![]);});}catch(_0x131125){console[_0x587fdd(0x1eb)](_0x131125);}}}exports[_0x511518(0x1e7)]=Xcodebuild;class XcodebuildCMD{constructor(){const _0x1e34ff=_0x511518;this[_0x1e34ff(0x1cd)]=_0x1e34ff(0x1d6);}['project'](_0x3936bc){const _0x43defb=_0x511518;return this[_0x43defb(0x1cd)]+=_0x43defb(0x1cc)+_0x3936bc,this;}['list'](){const _0xd16b5=_0x511518;return this[_0xd16b5(0x1cd)]+='\x20-list',this;}[_0x511518(0x1c7)](_0x218ecb){const _0x3dbf45=_0x511518;return this[_0x3dbf45(0x1cd)]+=_0x3dbf45(0x1d3)+_0x218ecb,this;}[_0x511518(0x1d7)](_0x549fa3){const _0x215050=_0x511518;return this[_0x215050(0x1cd)]+=_0x215050(0x1ec)+_0x549fa3+_0x215050(0x1e5),this;}[_0x511518(0x1f3)](){const _0x5ac0af=_0x511518;return this[_0x5ac0af(0x1cd)]+=_0x5ac0af(0x1d8),this;}[_0x511518(0x1fb)](_0x368690){const _0x3994e8=_0x511518;return this[_0x3994e8(0x1cd)]+=_0x3994e8(0x1f1)+_0x368690+'\x27',this;}['output'](_0x26014d,_0x327031,_0x14ceb7){const _0x4bad16=_0x511518;return this[_0x4bad16(0x1cd)]+=_0x4bad16(0x1e6)+_0x26014d+_0x4bad16(0x1dc)+_0x327031+_0x4bad16(0x1cb)+_0x14ceb7,this;}[_0x511518(0x1f7)](){return this['line']+='\x20clean',this;}}function _0x2b35(){const _0x213526=['\x20archive','\x20-exportArchive\x20-archivePath\x20','default','-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------','./build','__esModule','log','\x20-archivePath\x20','start\x20archive','1231210hOrZQv','cwd','project','\x20-destination\x20\x27','3935555qqmikf','allowProvisioningUpdates','defineProperty','5996320fGRcUQ','-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------','clean','list','toString','copyDir','destination','scheme','PROJECT_DIRECTORY','indexOf','../resource','\x20-exportOptionsPlist\x20','\x20-project\x20','line','../resource/file','EXPORT\x20SUCCEEDED','743384HltBeS','/web-spatial.xcodeproj','PROJECT_EXPORT_DIRECTORY','\x20-scheme\x20','PROJECT_BUILD_DIRECTORY','existsSync','xcodebuild','archive','\x20-allowProvisioningUpdates','ARCHIVE\x20SUCCEEDED','3747201SmXDXB','mkdirSync','\x20-exportPath\x20','join','XcodebuildCMD','8646462yPNoGj','semver','path','child_process','web-spatial','35723492bAWbGU'];_0x2b35=function(){return _0x213526;};return _0x2b35();}exports[_0x511518(0x1de)]=XcodebuildCMD;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0xadc1(_0x35980c,_0x5bcfbc){const _0x178f62=_0x178f();return _0xadc1=function(_0xadc165,_0x34574e){_0xadc165=_0xadc165-0xc2;let _0x154cb1=_0x178f62[_0xadc165];return _0x154cb1;},_0xadc1(_0x35980c,_0x5bcfbc);}const _0x3a8713=_0xadc1;(function(_0x53a07c,_0x4f11a4){const _0x42f67e=_0xadc1,_0x426b16=_0x53a07c();while(!![]){try{const _0x496a3c=-parseInt(_0x42f67e(0xee))/0x1*(parseInt(_0x42f67e(0xd7))/0x2)+-parseInt(_0x42f67e(0xe6))/0x3+-parseInt(_0x42f67e(0x118))/0x4+-parseInt(_0x42f67e(0xe4))/0x5*(parseInt(_0x42f67e(0xe8))/0x6)+-parseInt(_0x42f67e(0xf3))/0x7+parseInt(_0x42f67e(0xf8))/0x8+parseInt(_0x42f67e(0x115))/0x9;if(_0x496a3c===_0x4f11a4)break;else _0x426b16['push'](_0x426b16['shift']());}catch(_0x323d9d){_0x426b16['push'](_0x426b16['shift']());}}}(_0x178f,0xde110));Object[_0x3a8713(0xd0)](exports,_0x3a8713(0xce),{'value':!![]});const fs=require('fs'),resource_1=require('../resource'),path_1=require(_0x3a8713(0xd9)),load_1=require(_0x3a8713(0xfb)),imageHelper_1=require('../resource/imageHelper'),manifestSwiftTemplate_1=require('./manifestSwiftTemplate'),xcode=require(_0x3a8713(0xf6)),exportOptionsXML='<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>destination</key>\x0a\x09<string>export</string>\x0a\x09<key>method</key>\x0a\x09<string>BUILDTYPE</string>\x0a\x09<key>signingStyle</key>\x0a\x09<string>automatic</string>\x0a\x09<key>stripSwiftSymbols</key>\x0a\x09<true/>\x0a\x09<key>teamID</key>\x0a\x09<string>YOURTEAMID</string>\x0a\x09<key>thinning</key>\x0a\x09<string><none></string>\x0a</dict>\x0a</plist>',infoPlistXML=_0x3a8713(0x110);let useExportOptionsXML='';class XcodeProject{static async[_0x3a8713(0x123)](_0x418e31,_0x193afe,_0x2f7cfb=![]){const _0x2af954=_0x3a8713;let _0x5aa3dd=xcode[_0x2af954(0x10c)](_0x418e31);this[_0x2af954(0xc6)](_0x5aa3dd),_0x5aa3dd[_0x2af954(0xda)]();let _0x5bb691=_0x193afe[_0x2af954(0x107)];const _0x38feb5=['release-testing',_0x2af954(0xea),'debugging','enterprise'];useExportOptionsXML=exportOptionsXML[_0x2af954(0xe2)](_0x2af954(0xc7),_0x38feb5[_0x2af954(0x109)](_0x5bb691)?_0x5bb691:_0x2af954(0xc9));_0x193afe[_0x2af954(0x129)]&&this['updateTeamId'](_0x5aa3dd,_0x193afe[_0x2af954(0x129)]);this[_0x2af954(0x11f)]();if(_0x193afe[_0x2af954(0x10b)])await this[_0x2af954(0x126)](_0x193afe[_0x2af954(0x10b)]);this[_0x2af954(0xe7)](_0x5aa3dd,_0x193afe['manifestInfo'][_0x2af954(0xf1)],_0x2f7cfb);_0x193afe['version']?this[_0x2af954(0x122)](_0x5aa3dd,_0x193afe[_0x2af954(0x116)]):this[_0x2af954(0x122)](_0x5aa3dd,_0x2af954(0xd5));try{fs[_0x2af954(0xf5)](_0x418e31,_0x5aa3dd[_0x2af954(0x112)]());}catch(_0x2c9354){console[_0x2af954(0xff)](_0x2c9354);}}static[_0x3a8713(0xc6)](_0x24a1bc){const _0x444d7e=_0x3a8713;_0x24a1bc[_0x444d7e(0xd1)]=function(_0x53fd81){const _0x26e4b4=_0x444d7e;var _0x198360=this[_0x26e4b4(0x104)][_0x26e4b4(0x10c)][_0x26e4b4(0xf7)][_0x26e4b4(0x125)],_0x3568db,_0x554e18;for(_0x3568db in _0x198360){if(!/_comment$/[_0x26e4b4(0xf2)](_0x3568db))continue;if(_0x198360[_0x3568db]==_0x53fd81)return _0x554e18=_0x3568db[_0x26e4b4(0xd8)](/_comment$/)[0x0],_0x198360[_0x554e18];}return![];},_0x24a1bc[_0x444d7e(0xf0)]=function(_0x104c55,_0x569599,_0x2fcc1f,_0x1c2476){const _0x182910=_0x444d7e;let _0x40a037=[];const _0x56bc0f=/_comment$/;if(_0x1c2476){const _0x117175=this[_0x182910(0x10e)](_0x1c2476),_0x281631=_0x117175&&_0x117175[_0x182910(0x100)],_0xabfac3=this[_0x182910(0x124)]();for(const _0x46ace3 in _0xabfac3){if(!_0x56bc0f[_0x182910(0xf2)](_0x46ace3)&&_0x281631===_0x46ace3){const _0x1c5b0c=_0xabfac3[_0x46ace3]['buildConfigurations'];for(const _0x43f311 of _0x1c5b0c){_0x40a037['push'](_0x43f311[_0x182910(0x127)]);}break;}}}var _0x3b923b=this[_0x182910(0xcd)]();for(var _0x193cd7 in _0x3b923b){if(!_0x56bc0f['test'](_0x193cd7)){if(_0x1c2476&&!_0x40a037[_0x182910(0x109)](_0x193cd7))continue;var _0x5d1339=_0x3b923b[_0x193cd7];(_0x2fcc1f&&_0x5d1339[_0x182910(0xc4)]===_0x2fcc1f||!_0x2fcc1f)&&_0x5d1339[_0x182910(0x117)][_0x104c55]&&(_0x5d1339['buildSettings'][_0x104c55]=_0x569599);}}};}static async[_0x3a8713(0x126)](_0x7b15af){const _0x41efe3=_0x3a8713;if(_0x7b15af){const _0x37c847=(0x0,path_1[_0x41efe3(0x119)])(resource_1[_0x41efe3(0x111)],resource_1[_0x41efe3(0x10d)]),_0x5b9639=(0x0,path_1[_0x41efe3(0x119)])(_0x37c847,'Contents.json'),_0xa6da48=_0x41efe3(0xc3)+_0x7b15af[_0x41efe3(0xfc)]()[_0x41efe3(0xe2)]('image/',''),_0x3b40fe=(0x0,path_1[_0x41efe3(0x119)])(_0x37c847,_0xa6da48);let _0x2d7bf8=await(0x0,load_1[_0x41efe3(0x11a)])(_0x5b9639);_0x2d7bf8[_0x41efe3(0x120)][0x0][_0x41efe3(0x121)]=_0xa6da48,await _0x7b15af[_0x41efe3(0xfe)](_0x3b40fe),await fs['writeFileSync'](_0x5b9639,JSON[_0x41efe3(0xed)](_0x2d7bf8));const _0x3f8869=(0x0,path_1[_0x41efe3(0x119)])(resource_1['PROJECT_DIRECTORY'],resource_1[_0x41efe3(0xe3)]),_0x428045=(0x0,path_1[_0x41efe3(0x119)])(_0x3f8869,'Contents.json'),_0xb0ccd4=_0x41efe3(0x103),_0x238082=(0x0,path_1[_0x41efe3(0x119)])(_0x3f8869,_0xb0ccd4);let _0x33ad95=await(0x0,load_1[_0x41efe3(0x11a)])(_0x428045),_0x3d999a=imageHelper_1['ImageHelper']['createImg'](0x200);_0x33ad95[_0x41efe3(0x120)][0x0]['filename']=_0xb0ccd4,await _0x3d999a[_0x41efe3(0xfe)](_0x238082),await fs[_0x41efe3(0xf5)](_0x428045,JSON[_0x41efe3(0xed)](_0x33ad95));}}static[_0x3a8713(0x102)](_0x153822,_0x18a2e2){const _0x28f8bc=_0x3a8713;_0x153822['updateBuildProperty'](_0x28f8bc(0xe5),_0x18a2e2),useExportOptionsXML=useExportOptionsXML['replace'](_0x28f8bc(0xd3),_0x18a2e2);}static['updateExportOptions'](){const _0x499856=_0x3a8713;!fs[_0x499856(0x106)](resource_1[_0x499856(0xdc)])&&fs['mkdirSync'](resource_1['PROJECT_BUILD_DIRECTORY'],{'recursive':!![]}),fs[_0x499856(0xf5)]((0x0,path_1[_0x499856(0x119)])(resource_1[_0x499856(0xdc)],'ExportOptions.plist'),useExportOptionsXML);}static[_0x3a8713(0xe7)](_0x57efce,_0x48355c,_0x53aedf=![]){const _0xfa3217=_0x3a8713;var _0x9464c8;_0x57efce[_0xfa3217(0xcc)](_0x48355c[_0xfa3217(0xc4)]),_0x48355c['id']&&!_0x53aedf&&_0x57efce[_0xfa3217(0xf0)]('PRODUCT_BUNDLE_IDENTIFIER','\x22'+_0x48355c['id']+'\x22'),this[_0xfa3217(0xfd)]((_0x9464c8=_0x48355c[_0xfa3217(0xeb)])!==null&&_0x9464c8!==void 0x0?_0x9464c8:[]),this[_0xfa3217(0x114)](_0x48355c);}static['updateVersion'](_0x1e93ab,_0x50d440){_0x1e93ab['updateBuildProperty']('CURRENT_PROJECT_VERSION',_0x50d440);}static['updateDeeplink'](_0x54cdbd){const _0x192286=_0x3a8713;let _0x1ddbe9=(0x0,path_1[_0x192286(0x119)])(resource_1[_0x192286(0x111)],_0x192286(0x128)),_0x10e68c='';for(let _0x1ac799=0x0;_0x1ac799<_0x54cdbd[_0x192286(0xdf)];_0x1ac799++){_0x10e68c+='<string>'+_0x54cdbd[_0x1ac799][_0x192286(0x113)]+_0x192286(0xca);}const _0xb2f4a6=infoPlistXML[_0x192286(0xe2)]('DEEPLINK',_0x10e68c);fs['writeFileSync'](_0x1ddbe9,_0xb2f4a6);}static[_0x3a8713(0x114)](_0x53c3c5){const _0x131349=_0x3a8713,_0x36a5bd=(0x0,path_1[_0x131349(0x119)])(resource_1[_0x131349(0x111)],_0x131349(0xd2));let _0x59271a=manifestSwiftTemplate_1[_0x131349(0x11d)];_0x59271a=_0x59271a['replace']('START_URL',_0x53c3c5[_0x131349(0xe0)]),_0x59271a=_0x59271a[_0x131349(0xe2)]('SCOPE',_0x53c3c5[_0x131349(0xc2)]),_0x59271a=_0x59271a[_0x131349(0xe2)](_0x131349(0xec),_0x53c3c5['name']),_0x59271a=_0x59271a[_0x131349(0xe2)](_0x131349(0xef),_0x53c3c5[_0x131349(0xf4)]),_0x59271a=_0x59271a[_0x131349(0xe2)](_0x131349(0x10a),_0x53c3c5['id']),_0x59271a=_0x59271a[_0x131349(0xe2)](_0x131349(0xc5),_0x53c3c5['display']==_0x131349(0x11b)?_0x131349(0xc5):_0x131349(0xfa));if(_0x53c3c5['protocol_handlers']){let _0x5b5d44='';for(let _0x4431aa=0x0;_0x4431aa<_0x53c3c5['protocol_handlers']['length'];_0x4431aa++){_0x5b5d44+=_0x131349(0xdd)+_0x53c3c5[_0x131349(0xeb)][_0x4431aa]['protocol']+'\x22,\x20url:\x20\x22'+_0x53c3c5[_0x131349(0xeb)][_0x4431aa][_0x131349(0xdb)]+_0x131349(0x108);}_0x59271a=_0x59271a[_0x131349(0xe2)]('PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)',_0x5b5d44);}typeof _0x53c3c5[_0x131349(0x105)]===_0x131349(0x101)?(_0x59271a=_0x59271a['replace'](_0x131349(0xe9),_0x53c3c5[_0x131349(0x105)][_0x131349(0xd4)][_0x131349(0xd6)]),_0x59271a=_0x59271a[_0x131349(0xe2)](_0x131349(0x12a),_0x53c3c5[_0x131349(0x105)][_0x131349(0xd4)][_0x131349(0xc8)]),_0x59271a=_0x59271a['replace'](_0x131349(0x11c),'\x22'+_0x53c3c5[_0x131349(0x105)]['resizability']+'\x22'),_0x59271a=_0x59271a[_0x131349(0xe2)](_0x131349(0x10f),_0x131349(0xde))):(_0x59271a=_0x59271a[_0x131349(0xe2)](_0x131349(0xe9),_0x131349(0xcb)),_0x59271a=_0x59271a[_0x131349(0xe2)](_0x131349(0x12a),_0x131349(0xcb)),_0x59271a=_0x59271a[_0x131349(0xe2)](_0x131349(0x11c),_0x131349(0xcf)),_0x59271a=_0x59271a[_0x131349(0xe2)](_0x131349(0x10f),_0x131349(0xf9))),fs['writeFileSync'](_0x36a5bd,_0x59271a,_0x131349(0x11e));}}exports[_0x3a8713(0xe1)]=XcodeProject;function _0x178f(){const _0xacdbac=['defaultSize','1.0','width','12vMrpfk','split','path','parseSync','url','PROJECT_BUILD_DIRECTORY','PWAProtocol(protocolValue:\x20\x22','true','length','start_url','default','replace','MIDDLE_APPICON_DIRECTORY','973970BIUpZi','DEVELOPMENT_TEAM','302121KtFegP','bindManifestInfo','42fZqbvZ','SceneWidth','app-store-connect','protocol_handlers','AppName','stringify','219291MvJHTE','Description','updateBuildProperty','json','test','5618172TlBXyU','description','writeFileSync','xcode','objects','11110912VmcIIk','false','.standalone','../resource/load','getMIME','updateDeeplink','writeAsync','log','buildConfigurationList','object','updateTeamId','icon.png','hash','mainScene','existsSync','buildType','\x22),','includes','AppID','icon','project','BACK_APPICON_DIRECTORY','pbxTargetByName','USE_MAIN_SCENE','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>ITSAppUsesNonExemptEncryption</key>\x0a\x09<false/>\x0a\x09<key>CFBundleURLTypes</key>\x0a\x09<array>\x0a\x09\x09<dict>\x0a\x09\x09\x09<key>CFBundleURLName</key>\x0a\x09\x09\x09<string>web-spatial</string>\x0a\x09\x09\x09<key>CFBundleURLSchemes</key>\x0a\x09\x09\x09<array>\x0a\x09\x09\x09\x09DEEPLINK\x0a\x09\x09\x09</array>\x0a\x09\x09</dict>\x0a\x09</array>\x0a\x09<key>NSAppTransportSecurity</key>\x0a\x09<dict>\x0a\x09\x09<key>NSAllowsArbitraryLoads</key>\x0a\x09\x09<true/>\x0a\x09</dict>\x0a\x09<key>UIApplicationSceneManifest</key>\x0a\x09<dict>\x0a\x09\x09<key>UIApplicationPreferredDefaultSceneSessionRole</key>\x0a\x09\x09<string>UIWindowSceneSessionRoleApplication</string>\x0a\x09\x09<key>UIApplicationSupportsMultipleScenes</key>\x0a\x09\x09<true/>\x0a\x09\x09<key>UISceneConfigurations</key>\x0a\x09\x09<dict/>\x0a\x09</dict>\x0a</dict>\x0a</plist>\x0a','PROJECT_DIRECTORY','writeSync','protocol','modifySwift','35341776prjTBI','version','buildSettings','3294148qGIxqr','join','loadJsonFromDisk','minimal-ui','SceneResizability','manifestSwiftTemplate','utf-8','updateExportOptions','images','filename','updateVersion','modify','pbxXCConfigurationList','PBXGroup','bindIcon','value','./web-spatial/Info.plist','teamId','SceneHeight','scope','icon.','name','.minimal','fixProjectFunction','BUILDTYPE','height','release-testing','</string>','1280','updateProductName','pbxXCBuildConfigurationSection','__esModule','\x22automatic\x22','defineProperty','pbxGroupByName','./web-spatial/libs/webView/manifest.swift','YOURTEAMID'];_0x178f=function(){return _0xacdbac;};return _0x178f();}
|
|
1
|
+
'use strict';function _0xdfd4(){const _0x541837=['images','mkdirSync','enterprise','PWAProtocol(protocolValue:\x20\x22','replace','updateDeeplink','url','\x22),','1074690PBVEbl','objects','START_URL','PROJECT_DIRECTORY','scope','height','parseSync','YOURTEAMID','7585tbpQKc','display','filename','updateTeamId','bindIcon','887085BrPOOM','path','json','.minimal','updateExportOptions','ExportOptions.plist','SceneResizability','icon.','1280','width','BUILDTYPE','includes','USE_MAIN_SCENE','test','protocol_handlers','defineProperty','17742ZepTid','174269kzaPmu','name','./web-spatial/libs/webView/manifest.swift','modify','existsSync','split','Contents.json','836GDudbO','push','defaultSize','updateVersion','./manifestSwiftTemplate','pbxGroupByName','false','AppID','../resource/load','writeAsync','release-testing','manifestInfo','13448624sTxhZr','__esModule','2422kfKvtI','xcode','pbxXCConfigurationList','writeSync','MIDDLE_APPICON_DIRECTORY','Description','createImg','manifestSwiftTemplate','join','protocol','updateBuildProperty','1.0','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>destination</key>\x0a\x09<string>export</string>\x0a\x09<key>method</key>\x0a\x09<string>BUILDTYPE</string>\x0a\x09<key>signingStyle</key>\x0a\x09<string>automatic</string>\x0a\x09<key>stripSwiftSymbols</key>\x0a\x09<true/>\x0a\x09<key>teamID</key>\x0a\x09<string>YOURTEAMID</string>\x0a\x09<key>thinning</key>\x0a\x09<string><none></string>\x0a</dict>\x0a</plist>','stringify','description','BACK_APPICON_DIRECTORY','\x22automatic\x22','hash','<string>','buildConfigurationList','bindManifestInfo','debugging','\x22,\x20url:\x20\x22','SceneWidth','utf-8','minimal-ui','buildSettings','</string>','SceneHeight','project','mainScene','ImageHelper','start_url','29932020Glxfkr','value','resizability','icon','loadJsonFromDisk','PROJECT_BUILD_DIRECTORY','buildConfigurations','version','SCOPE','true','writeFileSync','updateProductName','modifySwift'];_0xdfd4=function(){return _0x541837;};return _0xdfd4();}const _0x2e18cf=_0x1526;(function(_0xda2540,_0x325606){const _0x24fcfe=_0x1526,_0x1b5379=_0xda2540();while(!![]){try{const _0x1d59c4=parseInt(_0x24fcfe(0xe8))/0x1+-parseInt(_0x24fcfe(0xca))/0x2+parseInt(_0x24fcfe(0xd7))/0x3+-parseInt(_0x24fcfe(0xef))/0x4*(-parseInt(_0x24fcfe(0xd2))/0x5)+parseInt(_0x24fcfe(0xe7))/0x6*(-parseInt(_0x24fcfe(0xfd))/0x7)+-parseInt(_0x24fcfe(0xfb))/0x8+parseInt(_0x24fcfe(0xb5))/0x9;if(_0x1d59c4===_0x325606)break;else _0x1b5379['push'](_0x1b5379['shift']());}catch(_0x130f50){_0x1b5379['push'](_0x1b5379['shift']());}}}(_0xdfd4,0xd4b54));function _0x1526(_0xe17222,_0x3da380){const _0xdfd4f3=_0xdfd4();return _0x1526=function(_0x1526b7,_0xb1ed79){_0x1526b7=_0x1526b7-0x9e;let _0xe3e9b1=_0xdfd4f3[_0x1526b7];return _0xe3e9b1;},_0x1526(_0xe17222,_0x3da380);}Object[_0x2e18cf(0xe6)](exports,_0x2e18cf(0xfc),{'value':!![]});const fs=require('fs'),resource_1=require('../resource'),path_1=require(_0x2e18cf(0xd8)),load_1=require(_0x2e18cf(0xf7)),imageHelper_1=require('../resource/imageHelper'),manifestSwiftTemplate_1=require(_0x2e18cf(0xf3)),xcode=require(_0x2e18cf(0xfe)),exportOptionsXML=_0x2e18cf(0xa0),infoPlistXML='<?xml\x20version=\x221.0\x22\x20encoding=\x22UTF-8\x22?>\x0a<!DOCTYPE\x20plist\x20PUBLIC\x20\x22-//Apple//DTD\x20PLIST\x201.0//EN\x22\x20\x22http://www.apple.com/DTDs/PropertyList-1.0.dtd\x22>\x0a<plist\x20version=\x221.0\x22>\x0a<dict>\x0a\x09<key>ITSAppUsesNonExemptEncryption</key>\x0a\x09<false/>\x0a\x09<key>CFBundleURLTypes</key>\x0a\x09<array>\x0a\x09\x09<dict>\x0a\x09\x09\x09<key>CFBundleURLName</key>\x0a\x09\x09\x09<string>web-spatial</string>\x0a\x09\x09\x09<key>CFBundleURLSchemes</key>\x0a\x09\x09\x09<array>\x0a\x09\x09\x09\x09DEEPLINK\x0a\x09\x09\x09</array>\x0a\x09\x09</dict>\x0a\x09</array>\x0a\x09<key>NSAppTransportSecurity</key>\x0a\x09<dict>\x0a\x09\x09<key>NSAllowsArbitraryLoads</key>\x0a\x09\x09<true/>\x0a\x09</dict>\x0a\x09<key>UIApplicationSceneManifest</key>\x0a\x09<dict>\x0a\x09\x09<key>UIApplicationPreferredDefaultSceneSessionRole</key>\x0a\x09\x09<string>UIWindowSceneSessionRoleApplication</string>\x0a\x09\x09<key>UIApplicationSupportsMultipleScenes</key>\x0a\x09\x09<true/>\x0a\x09\x09<key>UISceneConfigurations</key>\x0a\x09\x09<dict/>\x0a\x09</dict>\x0a</dict>\x0a</plist>\x0a';let useExportOptionsXML='';class XcodeProject{static async[_0x2e18cf(0xeb)](_0x310c9f,_0x38f658,_0x45bfae=![]){const _0xb27fd2=_0x2e18cf;let _0x4c2398=xcode[_0xb27fd2(0xb1)](_0x310c9f);this['fixProjectFunction'](_0x4c2398),_0x4c2398[_0xb27fd2(0xd0)]();let _0x32641a=_0x38f658['buildType'];const _0x5a4dd0=[_0xb27fd2(0xf9),'app-store-connect',_0xb27fd2(0xa9),_0xb27fd2(0xc4)];useExportOptionsXML=exportOptionsXML[_0xb27fd2(0xc6)](_0xb27fd2(0xe1),_0x5a4dd0[_0xb27fd2(0xe2)](_0x32641a)?_0x32641a:_0xb27fd2(0xf9));_0x38f658['teamId']&&this[_0xb27fd2(0xd5)](_0x4c2398,_0x38f658['teamId']);this[_0xb27fd2(0xdb)]();if(_0x38f658[_0xb27fd2(0xb8)])await this[_0xb27fd2(0xd6)](_0x38f658[_0xb27fd2(0xb8)]);this[_0xb27fd2(0xa8)](_0x4c2398,_0x38f658[_0xb27fd2(0xfa)][_0xb27fd2(0xd9)],_0x45bfae);_0x38f658[_0xb27fd2(0xbc)]?this[_0xb27fd2(0xf2)](_0x4c2398,_0x38f658['version']):this[_0xb27fd2(0xf2)](_0x4c2398,_0xb27fd2(0x9e));try{fs[_0xb27fd2(0xbf)](_0x310c9f,_0x4c2398[_0xb27fd2(0x100)]());}catch(_0x34b339){console['log'](_0x34b339);}}static['fixProjectFunction'](_0x475acb){const _0x104c30=_0x2e18cf;_0x475acb[_0x104c30(0xf4)]=function(_0x4f87d8){const _0x5e76c9=_0x104c30;var _0xcf9389=this[_0x5e76c9(0xa5)][_0x5e76c9(0xb1)][_0x5e76c9(0xcb)]['PBXGroup'],_0x2f9ca2,_0x4909de;for(_0x2f9ca2 in _0xcf9389){if(!/_comment$/[_0x5e76c9(0xe4)](_0x2f9ca2))continue;if(_0xcf9389[_0x2f9ca2]==_0x4f87d8)return _0x4909de=_0x2f9ca2[_0x5e76c9(0xed)](/_comment$/)[0x0],_0xcf9389[_0x4909de];}return![];},_0x475acb[_0x104c30(0x107)]=function(_0x29a97e,_0x4dcdaf,_0x533f28,_0x899c95){const _0x2b53dd=_0x104c30;let _0x31c43d=[];const _0x5a9d10=/_comment$/;if(_0x899c95){const _0x526f38=this['pbxTargetByName'](_0x899c95),_0x46fe4c=_0x526f38&&_0x526f38[_0x2b53dd(0xa7)],_0x255948=this[_0x2b53dd(0xff)]();for(const _0x23a9ce in _0x255948){if(!_0x5a9d10[_0x2b53dd(0xe4)](_0x23a9ce)&&_0x46fe4c===_0x23a9ce){const _0x57b6c8=_0x255948[_0x23a9ce][_0x2b53dd(0xbb)];for(const _0x11ba32 of _0x57b6c8){_0x31c43d[_0x2b53dd(0xf0)](_0x11ba32[_0x2b53dd(0xb6)]);}break;}}}var _0x3e2da1=this['pbxXCBuildConfigurationSection']();for(var _0x2d66f5 in _0x3e2da1){if(!_0x5a9d10[_0x2b53dd(0xe4)](_0x2d66f5)){if(_0x899c95&&!_0x31c43d[_0x2b53dd(0xe2)](_0x2d66f5))continue;var _0x209c27=_0x3e2da1[_0x2d66f5];(_0x533f28&&_0x209c27[_0x2b53dd(0xe9)]===_0x533f28||!_0x533f28)&&_0x209c27[_0x2b53dd(0xae)][_0x29a97e]&&(_0x209c27['buildSettings'][_0x29a97e]=_0x4dcdaf);}}};}static async[_0x2e18cf(0xd6)](_0x168c2b){const _0x5a23eb=_0x2e18cf;if(_0x168c2b){const _0x12ef2=(0x0,path_1[_0x5a23eb(0x105)])(resource_1[_0x5a23eb(0xcd)],resource_1[_0x5a23eb(0xa3)]),_0x2eaccd=(0x0,path_1[_0x5a23eb(0x105)])(_0x12ef2,'Contents.json'),_0x3a64e2=_0x5a23eb(0xde)+_0x168c2b['getMIME']()[_0x5a23eb(0xc6)]('image/',''),_0x38ab3f=(0x0,path_1['join'])(_0x12ef2,_0x3a64e2);let _0x5a8094=await(0x0,load_1[_0x5a23eb(0xb9)])(_0x2eaccd);_0x5a8094['images'][0x0][_0x5a23eb(0xd4)]=_0x3a64e2,await _0x168c2b[_0x5a23eb(0xf8)](_0x38ab3f),await fs['writeFileSync'](_0x2eaccd,JSON[_0x5a23eb(0xa1)](_0x5a8094));const _0x2a3753=(0x0,path_1[_0x5a23eb(0x105)])(resource_1['PROJECT_DIRECTORY'],resource_1[_0x5a23eb(0x101)]),_0x1e8c17=(0x0,path_1[_0x5a23eb(0x105)])(_0x2a3753,_0x5a23eb(0xee)),_0x2e61a4='icon.png',_0x3015c0=(0x0,path_1[_0x5a23eb(0x105)])(_0x2a3753,_0x2e61a4);let _0x160df3=await(0x0,load_1['loadJsonFromDisk'])(_0x1e8c17),_0x23d600=imageHelper_1[_0x5a23eb(0xb3)][_0x5a23eb(0x103)](0x200);_0x160df3[_0x5a23eb(0xc2)][0x0][_0x5a23eb(0xd4)]=_0x2e61a4,await _0x23d600[_0x5a23eb(0xf8)](_0x3015c0),await fs['writeFileSync'](_0x1e8c17,JSON[_0x5a23eb(0xa1)](_0x160df3));}}static['updateTeamId'](_0x54c247,_0x1afcf8){const _0x13f757=_0x2e18cf;_0x54c247[_0x13f757(0x107)]('DEVELOPMENT_TEAM',_0x1afcf8),useExportOptionsXML=useExportOptionsXML[_0x13f757(0xc6)](_0x13f757(0xd1),_0x1afcf8);}static['updateExportOptions'](){const _0x1ce60b=_0x2e18cf;!fs[_0x1ce60b(0xec)](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs[_0x1ce60b(0xc3)](resource_1['PROJECT_BUILD_DIRECTORY'],{'recursive':!![]}),fs['writeFileSync']((0x0,path_1[_0x1ce60b(0x105)])(resource_1[_0x1ce60b(0xba)],_0x1ce60b(0xdc)),useExportOptionsXML);}static[_0x2e18cf(0xa8)](_0xe63772,_0x392f84,_0x374834=![]){const _0x255800=_0x2e18cf;var _0x22951a;_0xe63772[_0x255800(0xc0)](_0x392f84['name']),_0x392f84['id']&&!_0x374834&&_0xe63772['updateBuildProperty']('PRODUCT_BUNDLE_IDENTIFIER','\x22'+_0x392f84['id']+'\x22'),this[_0x255800(0xc7)]((_0x22951a=_0x392f84[_0x255800(0xe5)])!==null&&_0x22951a!==void 0x0?_0x22951a:[]),this[_0x255800(0xc1)](_0x392f84);}static[_0x2e18cf(0xf2)](_0x33e9a2,_0x197e8d){const _0x3b793a=_0x2e18cf;_0x33e9a2[_0x3b793a(0x107)]('CURRENT_PROJECT_VERSION',_0x197e8d);}static[_0x2e18cf(0xc7)](_0xde8ac1){const _0xeefd6c=_0x2e18cf;let _0x300556=(0x0,path_1[_0xeefd6c(0x105)])(resource_1['PROJECT_DIRECTORY'],'./web-spatial/Info.plist'),_0xddbcee='';for(let _0x26568c=0x0;_0x26568c<_0xde8ac1['length'];_0x26568c++){_0xddbcee+=_0xeefd6c(0xa6)+_0xde8ac1[_0x26568c][_0xeefd6c(0x106)]+_0xeefd6c(0xaf);}const _0xa34471=infoPlistXML['replace']('DEEPLINK',_0xddbcee);fs['writeFileSync'](_0x300556,_0xa34471);}static[_0x2e18cf(0xc1)](_0x114460){const _0x1432f7=_0x2e18cf,_0x329fc1=(0x0,path_1[_0x1432f7(0x105)])(resource_1['PROJECT_DIRECTORY'],_0x1432f7(0xea));let _0x1fa3f2=manifestSwiftTemplate_1[_0x1432f7(0x104)];_0x1fa3f2=_0x1fa3f2[_0x1432f7(0xc6)](_0x1432f7(0xcc),_0x114460[_0x1432f7(0xb4)]),_0x1fa3f2=_0x1fa3f2[_0x1432f7(0xc6)](_0x1432f7(0xbd),_0x114460[_0x1432f7(0xce)]),_0x1fa3f2=_0x1fa3f2['replace']('AppName',_0x114460[_0x1432f7(0xe9)]),_0x1fa3f2=_0x1fa3f2['replace'](_0x1432f7(0x102),_0x114460[_0x1432f7(0xa2)]),_0x1fa3f2=_0x1fa3f2[_0x1432f7(0xc6)](_0x1432f7(0xf6),_0x114460['id']),_0x1fa3f2=_0x1fa3f2[_0x1432f7(0xc6)](_0x1432f7(0xda),_0x114460[_0x1432f7(0xd3)]==_0x1432f7(0xad)?_0x1432f7(0xda):'.standalone');if(_0x114460[_0x1432f7(0xe5)]){let _0x97c082='';for(let _0x2f1dbd=0x0;_0x2f1dbd<_0x114460[_0x1432f7(0xe5)]['length'];_0x2f1dbd++){_0x97c082+=_0x1432f7(0xc5)+_0x114460[_0x1432f7(0xe5)][_0x2f1dbd][_0x1432f7(0x106)]+_0x1432f7(0xaa)+_0x114460[_0x1432f7(0xe5)][_0x2f1dbd][_0x1432f7(0xc8)]+_0x1432f7(0xc9);}_0x1fa3f2=_0x1fa3f2[_0x1432f7(0xc6)](_0x1432f7(0x9f),_0x97c082);}typeof _0x114460[_0x1432f7(0xb2)]==='object'?(_0x1fa3f2=_0x1fa3f2[_0x1432f7(0xc6)](_0x1432f7(0xab),_0x114460['mainScene'][_0x1432f7(0xf1)][_0x1432f7(0xe0)]),_0x1fa3f2=_0x1fa3f2[_0x1432f7(0xc6)]('SceneHeight',_0x114460[_0x1432f7(0xb2)][_0x1432f7(0xf1)][_0x1432f7(0xcf)]),_0x1fa3f2=_0x1fa3f2[_0x1432f7(0xc6)]('SceneResizability','\x22'+_0x114460[_0x1432f7(0xb2)][_0x1432f7(0xb7)]+'\x22'),_0x1fa3f2=_0x1fa3f2[_0x1432f7(0xc6)](_0x1432f7(0xe3),_0x1432f7(0xbe))):(_0x1fa3f2=_0x1fa3f2[_0x1432f7(0xc6)]('SceneWidth',_0x1432f7(0xdf)),_0x1fa3f2=_0x1fa3f2[_0x1432f7(0xc6)](_0x1432f7(0xb0),_0x1432f7(0xdf)),_0x1fa3f2=_0x1fa3f2['replace'](_0x1432f7(0xdd),_0x1432f7(0xa4)),_0x1fa3f2=_0x1fa3f2[_0x1432f7(0xc6)](_0x1432f7(0xe3),_0x1432f7(0xf5))),fs[_0x1432f7(0xbf)](_0x329fc1,_0x1fa3f2,_0x1432f7(0xac));}}exports['default']=XcodeProject;
|
package/dist/lib/xcode/xcrun.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x464457=_0x1243;(function(_0x15706e,_0x17c424){const _0x394d96=_0x1243,_0x13af68=_0x15706e();while(!![]){try{const _0x3b2ce6=parseInt(_0x394d96(0xdd))/0x1+-parseInt(_0x394d96(0x114))/0x2*(-parseInt(_0x394d96(0xcf))/0x3)+parseInt(_0x394d96(0xfa))/0x4+-parseInt(_0x394d96(0x100))/0x5*(-parseInt(_0x394d96(0x108))/0x6)+-parseInt(_0x394d96(0xdc))/0x7*(parseInt(_0x394d96(0xfd))/0x8)+-parseInt(_0x394d96(0x10b))/0x9*(parseInt(_0x394d96(0xe2))/0xa)+-parseInt(_0x394d96(0xf0))/0xb;if(_0x3b2ce6===_0x17c424)break;else _0x13af68['push'](_0x13af68['shift']());}catch(_0x313229){_0x13af68['push'](_0x13af68['shift']());}}}(_0x56c3,0xe38ba));Object[_0x464457(0xcd)](exports,_0x464457(0xf8),{'value':!![]});const child_process_1=require(_0x464457(0x113)),resource_1=require(_0x464457(0x115)),path_1=require(_0x464457(0xe1)),fs=require('fs'),xcodebuild_1=require(_0x464457(0xd2)),file_1=require('../resource/file');class Xcrun{static async[_0x464457(0xd6)](_0x9e33e4,_0x593bf2,_0x76842e,_0x5ac4b2){const _0x292509=_0x464457,_0x461186=new XcrunCMD()[_0x292509(0xeb)]();_0x461186[_0x292509(0xd6)](_0x9e33e4);_0x5ac4b2?_0x461186[_0x292509(0x102)](_0x593bf2,_0x76842e):_0x461186[_0x292509(0xff)](_0x593bf2,_0x76842e);_0x461186[_0x292509(0xec)](_0x292509(0xf6));const _0x28adee=(0x0,child_process_1[_0x292509(0xce)])(_0x461186[_0x292509(0xf2)]);return _0x28adee[_0x292509(0xfc)]();}static async[_0x464457(0xd3)](_0x44939b,_0x36ccd8,_0x115b29,_0x13831c,_0x31cec1){const _0x119dfa=_0x464457,_0x4c3311=new XcrunCMD()[_0x119dfa(0xeb)]();_0x4c3311[_0x119dfa(0xd3)](_0x44939b);_0x31cec1?_0x4c3311['authAccount'](_0x36ccd8,_0x115b29):_0x4c3311[_0x119dfa(0xff)](_0x36ccd8,_0x115b29);_0x4c3311[_0x119dfa(0xec)](_0x119dfa(0xf6)),_0x4c3311[_0x119dfa(0x110)](_0x13831c);const _0xaa5f4a=(0x0,child_process_1[_0x119dfa(0xce)])(_0x4c3311['line']);return _0xaa5f4a['toString']();}static async['uploadApp'](_0x5ab3a4,_0x82ab04,_0x566323,_0x1373c8){const _0x23033f=_0x464457,_0x4c39e3=new XcrunCMD()[_0x23033f(0xeb)]();_0x4c39e3['uploadApp'](_0x5ab3a4);_0x1373c8?_0x4c39e3[_0x23033f(0x102)](_0x82ab04,_0x566323):_0x4c39e3[_0x23033f(0xff)](_0x82ab04,_0x566323);_0x4c39e3['platform'](_0x23033f(0xf6));const _0x3616cf=(0x0,child_process_1[_0x23033f(0xce)])(_0x4c39e3[_0x23033f(0xf2)]);return _0x3616cf[_0x23033f(0xfc)]();}static async[_0x464457(0xe9)](_0x4615db){const _0x108c62=_0x464457;let _0x21cff5=new XcrunCMD()['simctl']();_0x21cff5[_0x108c62(0x112)]('Apple\x20Vision\x20Pro');const _0x25b047=(0x0,child_process_1['execSync'])(_0x21cff5['line']),_0x118878=this[_0x108c62(0x103)](_0x25b047[_0x108c62(0xfc)]());if(_0x118878[_0x108c62(0xdf)]===0x0)throw new Error('no\x20visionOS\x20simulator\x20found');let _0xa3e8dd=_0x118878[0x0];for(let _0x1c7da2=0x0;_0x1c7da2<_0x118878[_0x108c62(0xdf)];_0x1c7da2++){if(_0x118878[_0x1c7da2][_0x108c62(0x101)]===_0x108c62(0xf3)){_0xa3e8dd=_0x118878[_0x1c7da2];break;}}console['log'](_0x108c62(0x10f)+_0xa3e8dd['deviceId']);const _0x246dfc=resource_1[_0x108c62(0x105)]+_0x108c62(0x109),_0x51f88b=resource_1[_0x108c62(0xda)]+'/test';!fs[_0x108c62(0xe5)](resource_1[_0x108c62(0xda)])&&fs[_0x108c62(0xe4)](resource_1[_0x108c62(0xda)],{'recursive':!![]});!fs[_0x108c62(0xe5)](_0x51f88b)&&fs[_0x108c62(0xe4)](_0x51f88b,{'recursive':!![]});(0x0,file_1[_0x108c62(0xf5)])(_0x51f88b);const _0xdaba26=new xcodebuild_1[(_0x108c62(0xd7))]()['project'](_0x246dfc)['line']+(_0x108c62(0xca)+_0xa3e8dd[_0x108c62(0xcc)]+_0x108c62(0xee)+_0x51f88b);console['log'](_0x108c62(0xdb)),(0x0,child_process_1[_0x108c62(0xce)])(_0xdaba26),console[_0x108c62(0xf1)](_0x108c62(0xde));_0xa3e8dd[_0x108c62(0x101)]===_0x108c62(0x118)&&(_0x21cff5=new XcrunCMD()[_0x108c62(0xe8)](),_0x21cff5[_0x108c62(0xe0)](_0xa3e8dd[_0x108c62(0xcc)]),(0x0,child_process_1[_0x108c62(0xce)])(_0x21cff5[_0x108c62(0xf2)]));(0x0,child_process_1['execSync'])(_0x108c62(0xcb)),console['log'](_0x108c62(0xd4));const _0x2d3bdc=(0x0,path_1['join'])(_0x51f88b,_0x108c62(0x117)+_0x4615db[_0x108c62(0xfe)]+'.app');_0x21cff5=new XcrunCMD()[_0x108c62(0xe8)](),_0x21cff5[_0x108c62(0x10a)](_0xa3e8dd['deviceId'],_0x2d3bdc),(0x0,child_process_1['execSync'])(_0x21cff5[_0x108c62(0xf2)]),console[_0x108c62(0xf1)]('install\x20success'),console[_0x108c62(0xf1)](_0x108c62(0xea)),_0x21cff5=new XcrunCMD()[_0x108c62(0xe8)](),_0x21cff5[_0x108c62(0x111)](_0xa3e8dd['deviceId'],_0x4615db['id']),(0x0,child_process_1[_0x108c62(0xce)])(_0x21cff5[_0x108c62(0xf2)]);}static['parseListDevices'](_0x340da2){const _0x359ec0=_0x464457;let _0x5ec7e2=_0x340da2[_0x359ec0(0xef)]('\x0a'),_0x3f59be=[],_0x37134b=-0x1;for(let _0x9474b=0x0;_0x9474b<_0x5ec7e2[_0x359ec0(0xdf)];_0x9474b++){if(_0x5ec7e2[_0x9474b]['includes'](_0x359ec0(0x10d)))_0x37134b=_0x9474b;else{if(_0x37134b>0x0){if(_0x5ec7e2[_0x9474b][_0x359ec0(0x10e)]('--\x20'))break;if(_0x5ec7e2[_0x9474b][_0x359ec0(0xdf)]>0x0){const _0x18fb3c=_0x5ec7e2[_0x9474b][_0x359ec0(0xef)]('('),_0x3ae892={'name':_0x18fb3c[0x0][_0x359ec0(0xd9)](),'deviceId':_0x18fb3c[0x1][_0x359ec0(0xef)](')')[0x0][_0x359ec0(0xd9)](),'state':_0x18fb3c[0x2][_0x359ec0(0xef)](')')[0x0][_0x359ec0(0xd9)]()};_0x3f59be['push'](_0x3ae892);}}}}return _0x3f59be;}}exports['default']=Xcrun;function _0x56c3(){const _0x21c1fa=['authAccount','parseListDevices','\x20--upload-package\x20','PROJECT_DIRECTORY','\x20--validate-app\x20-f\x20','\x20-p\x20','252qWBzRd','/web-spatial.xcodeproj','install','1623312KAibpJ','verbose','--\x20visionOS','includes','find\x20simulator:\x20','appleId','launch','listDevices','child_process','21542HVSPpS','../resource','\x20--bundle-version\x20','Build/Products/Debug-xrsimulator/','Shutdown','\x20launch\x20\x22','\x20shutdown\x20booted','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/','deviceId','defineProperty','execSync','237CxjtRL','\x20--apiKey\x20','version','./xcodebuild','uploadPackage','installing\x20app','xcrun','validate','XcodebuildCMD','list','trim','PROJECT_BUILD_DIRECTORY','start\x20building','19110uQjLWO','1533309AzeklE','build\x20success','length','boot','path','40WTZajA','\x20--apple-id\x20','mkdirSync','existsSync','shutdown','\x20altool','simctl','runWithSimulator','launch\x20app','altool','platform','\x20-t\x20','\x27\x20-derivedDataPath\x20','split','10210420DNUDQe','log','line','Booted','\x20--verbose','clearDir','visionos','uploadApp','__esModule','\x20-u\x20','4548160xASiUK','\x20install\x20\x22','toString','3736SSCNMQ','name','authApi','39925PcTXkV','state'];_0x56c3=function(){return _0x21c1fa;};return _0x56c3();}function _0x1243(_0x1fee23,_0x41d664){const _0x56c325=_0x56c3();return _0x1243=function(_0x12436e,_0x6ee3de){_0x12436e=_0x12436e-0xca;let _0x1dfbde=_0x56c325[_0x12436e];return _0x1dfbde;},_0x1243(_0x1fee23,_0x41d664);}class XcrunCMD{constructor(){const _0x3b1105=_0x464457;this['line']=_0x3b1105(0xd5);}[_0x464457(0xeb)](){const _0x110a26=_0x464457;return this[_0x110a26(0xf2)]+=_0x110a26(0xe7),this;}[_0x464457(0xe8)](){const _0x1f6948=_0x464457;return this[_0x1f6948(0xf2)]+='\x20simctl',this;}[_0x464457(0xd8)](){const _0x4f2c83=_0x464457;return this[_0x4f2c83(0xf2)]+='\x20list',this;}[_0x464457(0x112)](_0x442a99){const _0x2d6bff=_0x464457;return this[_0x2d6bff(0xf2)]+='\x20list\x20devices\x20\x22'+_0x442a99+'\x22',this;}[_0x464457(0xd6)](_0x32b36f){const _0x562add=_0x464457;return this[_0x562add(0xf2)]+=_0x562add(0x106)+_0x32b36f,this;}[_0x464457(0xf7)](_0x1ed4d3){return this['line']+='\x20--upload-app\x20-f\x20'+_0x1ed4d3,this;}['uploadPackage'](_0x21e09e){const _0x52e4a3=_0x464457;return this[_0x52e4a3(0xf2)]+=_0x52e4a3(0x104)+_0x21e09e,this;}[_0x464457(0x102)](_0x4cb206,_0x1bce6a){const _0x5b3723=_0x464457;return this[_0x5b3723(0xf2)]+=_0x5b3723(0xf9)+_0x4cb206+_0x5b3723(0x107)+_0x1bce6a,this;}['authApi'](_0x9cd9eb,_0x435908){const _0x4376d2=_0x464457;return this[_0x4376d2(0xf2)]+=_0x4376d2(0xd0)+_0x9cd9eb+'\x20--apiIssuer\x20'+_0x435908,this;}['appleId'](_0x4f092e){const _0x31bdbc=_0x464457;return this[_0x31bdbc(0xf2)]+=_0x31bdbc(0xe3)+_0x4f092e,this;}[_0x464457(0xec)](_0x10a499){const _0x1a15ca=_0x464457;return this[_0x1a15ca(0xf2)]+=_0x1a15ca(0xed)+_0x10a499,this;}[_0x464457(0xd1)](_0x3fe974){const _0x22db6c=_0x464457;return this[_0x22db6c(0xf2)]+=_0x22db6c(0x116)+_0x3fe974,this;}[_0x464457(0x10c)](){const _0xcf35c0=_0x464457;return this[_0xcf35c0(0xf2)]+=_0xcf35c0(0xf4),this;}[_0x464457(0xe6)](){const _0x2a0126=_0x464457;return this[_0x2a0126(0xf2)]+=_0x2a0126(0x11a),this;}[_0x464457(0xe0)](_0xb8a617){return this['line']+='\x20boot\x20\x22'+_0xb8a617+'\x22',this;}[_0x464457(0x10a)](_0x42af69,_0x23598e){const _0x3bec9f=_0x464457;return this[_0x3bec9f(0xf2)]+=_0x3bec9f(0xfb)+_0x42af69+'\x22\x20\x22'+_0x23598e+'\x22',this;}[_0x464457(0x111)](_0x3125d9,_0x17a9d5){const _0x16c1b8=_0x464457;return this[_0x16c1b8(0xf2)]+=_0x16c1b8(0x119)+_0x3125d9+'\x22\x20\x22'+_0x17a9d5+'\x22',this;}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webspatial/builder",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Client CLI tool to Generate XRApp project for Apple Vision Pro",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"engines": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"sharp": "^0.33.5",
|
|
39
39
|
"valid-url": "^1.0.9",
|
|
40
40
|
"xcode": "^3.0.1",
|
|
41
|
-
"@webspatial/platform-visionos": "^0.1.
|
|
41
|
+
"@webspatial/platform-visionos": "^0.1.4"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@rollup/plugin-terser": "^0.4.3",
|