@webspatial/builder 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/cmds/build.d.ts +4 -4
  3. package/dist/lib/cmds/build.js +1 -1
  4. package/dist/lib/cmds/check.d.ts +2 -3
  5. package/dist/lib/cmds/check.js +1 -1
  6. package/dist/lib/cmds/help.js +1 -1
  7. package/dist/lib/cmds/launch.js +1 -1
  8. package/dist/lib/cmds/shutdown.js +1 -1
  9. package/dist/lib/cmds/version.d.ts +1 -2
  10. package/dist/lib/cmds/version.js +1 -1
  11. package/dist/lib/pwa/config.js +1 -1
  12. package/dist/lib/pwa/index.d.ts +4 -15
  13. package/dist/lib/pwa/index.js +1 -1
  14. package/dist/lib/pwa/validate.js +1 -1
  15. package/dist/lib/resource/file.js +1 -1
  16. package/dist/lib/resource/imageHelper.js +1 -1
  17. package/dist/lib/resource/index.d.ts +2 -1
  18. package/dist/lib/resource/index.js +1 -1
  19. package/dist/lib/resource/load.js +1 -1
  20. package/dist/lib/types.d.ts +27 -0
  21. package/dist/lib/types.js +1 -0
  22. package/dist/lib/utils/CustomError.js +1 -1
  23. package/dist/lib/utils/FetchUtils-1.js +1 -1
  24. package/dist/lib/utils/Log.js +1 -1
  25. package/dist/lib/utils/fetch.js +1 -1
  26. package/dist/lib/utils/history.d.ts +15 -0
  27. package/dist/lib/utils/history.js +1 -0
  28. package/dist/lib/utils/messages.js +1 -1
  29. package/dist/lib/utils/utils.d.ts +2 -0
  30. package/dist/lib/utils/utils.js +1 -1
  31. package/dist/lib/xcode/index.d.ts +3 -1
  32. package/dist/lib/xcode/index.js +1 -1
  33. package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
  34. package/dist/lib/xcode/xcodebuild.js +1 -1
  35. package/dist/lib/xcode/xcodeproject.js +1 -1
  36. package/dist/lib/xcode/xcrun.d.ts +38 -3
  37. package/dist/lib/xcode/xcrun.js +1 -1
  38. package/package.json +4 -3
  39. package/dist/lib/Cli.d.ts +0 -5
  40. package/dist/lib/Cli.js +0 -1
@@ -0,0 +1,27 @@
1
+ export interface PWAInitArgs {
2
+ 'manifest-url'?: string;
3
+ manifest?: string;
4
+ project?: string;
5
+ base: string;
6
+ 'bundle-id'?: string;
7
+ }
8
+ export interface ManifestInfo {
9
+ json: Record<string, any>;
10
+ url: string;
11
+ fromNet: boolean;
12
+ }
13
+ export interface HistoryInfo {
14
+ cmd: string;
15
+ manifest: Record<string, any>;
16
+ appInfo: BasicAppInfo;
17
+ simulator: string;
18
+ }
19
+ export interface SimulatorInfo {
20
+ name: string;
21
+ deviceId: string;
22
+ state: string;
23
+ }
24
+ export interface BasicAppInfo {
25
+ name: string;
26
+ id: string;
27
+ }
@@ -0,0 +1 @@
1
+ 'use strict';function _0x3fc6(_0x15c879,_0x12f96c){var _0x2b1c0e=_0x2b1c();return _0x3fc6=function(_0x3fc6a6,_0x3b1faf){_0x3fc6a6=_0x3fc6a6-0x178;var _0x216781=_0x2b1c0e[_0x3fc6a6];return _0x216781;},_0x3fc6(_0x15c879,_0x12f96c);}var _0x3afb37=_0x3fc6;(function(_0x4dd779,_0x537568){var _0x28766a=_0x3fc6,_0x116252=_0x4dd779();while(!![]){try{var _0x376dfa=-parseInt(_0x28766a(0x17e))/0x1+-parseInt(_0x28766a(0x183))/0x2+parseInt(_0x28766a(0x17b))/0x3*(parseInt(_0x28766a(0x179))/0x4)+parseInt(_0x28766a(0x181))/0x5*(parseInt(_0x28766a(0x17f))/0x6)+-parseInt(_0x28766a(0x17d))/0x7*(parseInt(_0x28766a(0x182))/0x8)+-parseInt(_0x28766a(0x180))/0x9*(-parseInt(_0x28766a(0x184))/0xa)+-parseInt(_0x28766a(0x178))/0xb*(-parseInt(_0x28766a(0x17a))/0xc);if(_0x376dfa===_0x537568)break;else _0x116252['push'](_0x116252['shift']());}catch(_0x3d685a){_0x116252['push'](_0x116252['shift']());}}}(_0x2b1c,0x1ef13));function _0x2b1c(){var _0x405a79=['330pYpXrt','22UDJATI','2740dJRiqI','1091148dydHlN','390NGQGXj','__esModule','986069bBmrle','136785LNTDnz','234DvdACD','44397XozypD','6130VrUIAr','8JsFpjh','154240cLuPnP'];_0x2b1c=function(){return _0x405a79;};return _0x2b1c();}Object['defineProperty'](exports,_0x3afb37(0x17c),{'value':!![]});
@@ -1 +1 @@
1
- 'use strict';var _0x3d3e4e=_0x2179;(function(_0x4a7bab,_0x17e70a){var _0x25c11a=_0x2179,_0x4c7b8c=_0x4a7bab();while(!![]){try{var _0x579af4=parseInt(_0x25c11a(0x1e6))/0x1+parseInt(_0x25c11a(0x1df))/0x2+parseInt(_0x25c11a(0x1ec))/0x3*(parseInt(_0x25c11a(0x1e0))/0x4)+-parseInt(_0x25c11a(0x1e1))/0x5+parseInt(_0x25c11a(0x1e2))/0x6+-parseInt(_0x25c11a(0x1e3))/0x7*(-parseInt(_0x25c11a(0x1e8))/0x8)+-parseInt(_0x25c11a(0x1e4))/0x9;if(_0x579af4===_0x17e70a)break;else _0x4c7b8c['push'](_0x4c7b8c['shift']());}catch(_0x5fd9f2){_0x4c7b8c['push'](_0x4c7b8c['shift']());}}}(_0x2693,0x5fb7e));function _0x2179(_0x210780,_0x21d4ce){var _0x269367=_0x2693();return _0x2179=function(_0x217976,_0x2f6bfc){_0x217976=_0x217976-0x1de;var _0x55f8aa=_0x269367[_0x217976];return _0x55f8aa;},_0x2179(_0x210780,_0x21d4ce);}Object[_0x3d3e4e(0x1e5)](exports,_0x3d3e4e(0x1ea),{'value':!![]}),exports['CustomError']=void 0x0;function _0x2693(){var _0x6487e2=['471qPpAGw','type','402080QMQeoH','3748cPyBVV','3343995AbfNMj','4500990TAMlan','3409LcRrav','10043055LVyNSr','defineProperty','441446pRlNfo','customMessage','10464gvWOkS','info','__esModule','CustomError'];_0x2693=function(){return _0x6487e2;};return _0x2693();}class CustomError extends Error{constructor(_0x4c63d0,_0x40b53d){var _0x391d8f=_0x3d3e4e;super(JSON['stringify'](_0x4c63d0)),this[_0x391d8f(0x1e7)]=_0x4c63d0,this[_0x391d8f(0x1de)]=_0x40b53d||_0x391d8f(0x1e9);}}exports[_0x3d3e4e(0x1eb)]=CustomError;
1
+ 'use strict';function _0x1c5a(){var _0x163165=['stringify','3694970VIRjak','9BhwWbF','__esModule','91tDqkCS','info','customMessage','18bXccmC','CustomError','175860HXGRUJ','1941104JGcwUb','12WMBSSu','431724jrFVmL','45COOoyf','182608KYtkMB','17508414QvjUXc','43268GCutoO'];_0x1c5a=function(){return _0x163165;};return _0x1c5a();}var _0x37a85d=_0x37c6;(function(_0x2a2589,_0xabbbe3){var _0x1bf1d8=_0x37c6,_0x1375be=_0x2a2589();while(!![]){try{var _0x5409f9=parseInt(_0x1bf1d8(0x69))/0x1*(-parseInt(_0x1bf1d8(0x75))/0x2)+-parseInt(_0x1bf1d8(0x74))/0x3*(parseInt(_0x1bf1d8(0x77))/0x4)+-parseInt(_0x1bf1d8(0x70))/0x5+parseInt(_0x1bf1d8(0x73))/0x6*(parseInt(_0x1bf1d8(0x6b))/0x7)+-parseInt(_0x1bf1d8(0x71))/0x8+-parseInt(_0x1bf1d8(0x6e))/0x9*(parseInt(_0x1bf1d8(0x79))/0xa)+parseInt(_0x1bf1d8(0x76))/0xb*(parseInt(_0x1bf1d8(0x72))/0xc);if(_0x5409f9===_0xabbbe3)break;else _0x1375be['push'](_0x1375be['shift']());}catch(_0x5bd76f){_0x1375be['push'](_0x1375be['shift']());}}}(_0x1c5a,0x807c9));function _0x37c6(_0x1ad943,_0x11d30f){var _0x1c5a7b=_0x1c5a();return _0x37c6=function(_0x37c632,_0x1018bf){_0x37c632=_0x37c632-0x69;var _0x8a4a12=_0x1c5a7b[_0x37c632];return _0x8a4a12;},_0x37c6(_0x1ad943,_0x11d30f);}Object['defineProperty'](exports,_0x37a85d(0x6a),{'value':!![]}),exports[_0x37a85d(0x6f)]=void 0x0;class CustomError extends Error{constructor(_0x2cc935,_0x1236ea){var _0x5ef2aa=_0x37a85d;super(JSON[_0x5ef2aa(0x78)](_0x2cc935)),this[_0x5ef2aa(0x6d)]=_0x2cc935,this['type']=_0x1236ea||_0x5ef2aa(0x6c);}}exports[_0x37a85d(0x6f)]=CustomError;
@@ -1 +1 @@
1
- 'use strict';const _0x12be3d=_0x1228;function _0x1228(_0x1394dd,_0x5e8ff7){const _0x1c5a46=_0x1c5a();return _0x1228=function(_0x122800,_0x162983){_0x122800=_0x122800-0xe3;let _0x551bde=_0x1c5a46[_0x122800];return _0x551bde;},_0x1228(_0x1394dd,_0x5e8ff7);}function _0x1c5a(){const _0x3f7b14=['41694fYUfTe','3422356xRWSwS','8136DccnYd','6055677njBzjw','722616VTwFQt','120WaNjeV','388975GrcgzY','__esModule','90PlmpQO','fetch','fetchUtils','setFetch','setDecompressResponseBuffer','setDownloadFile','35323629IWwgiE','10LKOGgn','defineProperty','7287xmiBWw','fetchEngine','decompressResponseBuffer','setFetchEngine','downloadFile'];_0x1c5a=function(){return _0x3f7b14;};return _0x1c5a();}(function(_0x79ea89,_0x292692){const _0xe5d0f0=_0x1228,_0x57c43c=_0x79ea89();while(!![]){try{const _0x321e60=parseInt(_0xe5d0f0(0xe8))/0x1+parseInt(_0xe5d0f0(0xe4))/0x2*(-parseInt(_0xe5d0f0(0xe9))/0x3)+-parseInt(_0xe5d0f0(0xe5))/0x4+-parseInt(_0xe5d0f0(0xea))/0x5*(parseInt(_0xe5d0f0(0xec))/0x6)+-parseInt(_0xe5d0f0(0xf5))/0x7*(parseInt(_0xe5d0f0(0xe6))/0x8)+parseInt(_0xe5d0f0(0xe7))/0x9*(parseInt(_0xe5d0f0(0xf3))/0xa)+parseInt(_0xe5d0f0(0xf2))/0xb;if(_0x321e60===_0x292692)break;else _0x57c43c['push'](_0x57c43c['shift']());}catch(_0x102f46){_0x57c43c['push'](_0x57c43c['shift']());}}}(_0x1c5a,0xa8da1));Object[_0x12be3d(0xf4)](exports,_0x12be3d(0xeb),{'value':!![]}),exports['fetchUtils']=void 0x0;class FetchUtils{constructor(){const _0xea7110=_0x12be3d;this[_0xea7110(0xf6)]=null,this[_0xea7110(0xed)]=null,this[_0xea7110(0xe3)]=null,this[_0xea7110(0xf7)]=null;}[_0x12be3d(0xf8)](_0x170517){const _0x26099f=_0x12be3d;this[_0x26099f(0xf6)]=_0x170517;}[_0x12be3d(0xef)](_0x44cd71){const _0x392b8e=_0x12be3d;this[_0x392b8e(0xed)]=_0x44cd71;}[_0x12be3d(0xf1)](_0x3e2fbf){const _0xe7a2fd=_0x12be3d;this[_0xe7a2fd(0xe3)]=_0x3e2fbf;}[_0x12be3d(0xf0)](_0x286e46){const _0x1e840f=_0x12be3d;this[_0x1e840f(0xf7)]=_0x286e46;}}const fetchUtils=new FetchUtils();exports[_0x12be3d(0xee)]=fetchUtils;
1
+ 'use strict';const _0x2ac1dc=_0x5171;(function(_0x10fc45,_0x17dbb1){const _0x273749=_0x5171,_0x2d9d8c=_0x10fc45();while(!![]){try{const _0x3aa1b1=parseInt(_0x273749(0x122))/0x1+parseInt(_0x273749(0x119))/0x2*(parseInt(_0x273749(0x118))/0x3)+-parseInt(_0x273749(0x11c))/0x4+parseInt(_0x273749(0x11f))/0x5+parseInt(_0x273749(0x11d))/0x6+-parseInt(_0x273749(0x11b))/0x7+parseInt(_0x273749(0x111))/0x8*(-parseInt(_0x273749(0x113))/0x9);if(_0x3aa1b1===_0x17dbb1)break;else _0x2d9d8c['push'](_0x2d9d8c['shift']());}catch(_0x28fdf2){_0x2d9d8c['push'](_0x2d9d8c['shift']());}}}(_0x6f35,0x93767));function _0x6f35(){const _0x1bb194=['15rUelkx','239566PmsvkO','downloadFile','7771015BIxWAD','1857492yvsoRf','2059062zKCgYS','setDownloadFile','5876315PoDGnW','fetchUtils','setFetch','988766eHHiqv','defineProperty','setFetchEngine','16OGuZwk','fetchEngine','4174182IWRDpc','setDecompressResponseBuffer','__esModule','decompressResponseBuffer','fetch'];_0x6f35=function(){return _0x1bb194;};return _0x6f35();}function _0x5171(_0x59894d,_0x5a2548){const _0x6f35c6=_0x6f35();return _0x5171=function(_0x51710d,_0x495f5f){_0x51710d=_0x51710d-0x110;let _0x1be1ec=_0x6f35c6[_0x51710d];return _0x1be1ec;},_0x5171(_0x59894d,_0x5a2548);}Object[_0x2ac1dc(0x123)](exports,_0x2ac1dc(0x115),{'value':!![]}),exports[_0x2ac1dc(0x120)]=void 0x0;class FetchUtils{constructor(){const _0x59b8bf=_0x2ac1dc;this[_0x59b8bf(0x112)]=null,this[_0x59b8bf(0x117)]=null,this[_0x59b8bf(0x11a)]=null,this['decompressResponseBuffer']=null;}[_0x2ac1dc(0x110)](_0xaf525b){const _0x20e170=_0x2ac1dc;this[_0x20e170(0x112)]=_0xaf525b;}[_0x2ac1dc(0x121)](_0x333e8e){const _0x1219a0=_0x2ac1dc;this[_0x1219a0(0x117)]=_0x333e8e;}[_0x2ac1dc(0x11e)](_0x5138be){const _0x18c572=_0x2ac1dc;this[_0x18c572(0x11a)]=_0x5138be;}[_0x2ac1dc(0x114)](_0x21f929){const _0x3cb79a=_0x2ac1dc;this[_0x3cb79a(0x116)]=_0x21f929;}}const fetchUtils=new FetchUtils();exports[_0x2ac1dc(0x120)]=fetchUtils;
@@ -1 +1 @@
1
- 'use strict';var _0x2fb5ce=_0x3e1e;(function(_0x285390,_0x326999){var _0x951757=_0x3e1e,_0x2ed2d4=_0x285390();while(!![]){try{var _0x13f464=-parseInt(_0x951757(0x1bd))/0x1*(-parseInt(_0x951757(0x1b1))/0x2)+-parseInt(_0x951757(0x1ab))/0x3+parseInt(_0x951757(0x1b6))/0x4+-parseInt(_0x951757(0x1b3))/0x5+parseInt(_0x951757(0x1b7))/0x6+-parseInt(_0x951757(0x1b2))/0x7*(parseInt(_0x951757(0x1a4))/0x8)+-parseInt(_0x951757(0x1a5))/0x9;if(_0x13f464===_0x326999)break;else _0x2ed2d4['push'](_0x2ed2d4['shift']());}catch(_0x10a050){_0x2ed2d4['push'](_0x2ed2d4['shift']());}}}(_0x5d5f,0xb9eba));function _0x5d5f(){var _0x26ab19=['523986RfaRMD','newLog','ConsoleLog','prefix','defineProperty','\x1b[31m','6521gcVflh','tag','debug','output','red','\x1b[7m','yellow','1424JOeJtx','706563ddxYmv','setVerbose','\x1b[36m','warn','error','dim','1123419lUcqOc','__esModule','\x1b[33m','verbose','concat','inverse','274KFXVNy','4235ZlSRBS','5477640BtKqHn','log','ERROR\x20','5748080AxrnSj'];_0x5d5f=function(){return _0x26ab19;};return _0x5d5f();}Object[_0x2fb5ce(0x1bb)](exports,_0x2fb5ce(0x1ac),{'value':!![]}),exports[_0x2fb5ce(0x1b9)]=void 0x0;function _0x3e1e(_0x4dec52,_0x3cdc6b){var _0x5d5fc1=_0x5d5f();return _0x3e1e=function(_0x3e1ea3,_0x1863d1){_0x3e1ea3=_0x3e1ea3-0x1a1;var _0xb2d74e=_0x5d5fc1[_0x3e1ea3];return _0xb2d74e;},_0x3e1e(_0x4dec52,_0x3cdc6b);}class ConsoleLog{constructor(_0x2e3709='',_0x3a12b5=![],_0x20bd09=console){var _0x41f373=_0x2fb5ce;this[_0x41f373(0x1be)]=_0x2e3709,this[_0x41f373(0x1ae)]=_0x3a12b5,this[_0x41f373(0x1ba)]=this['inverse'](_0x2e3709),this[_0x41f373(0x1c0)]=_0x20bd09;}[_0x2fb5ce(0x1bf)](_0x4ef9d5,..._0x4ef742){var _0x45e1b3=_0x2fb5ce;if(!this[_0x45e1b3(0x1ae)])return;this[_0x45e1b3(0x1b4)](this[_0x45e1b3(0x1c0)][_0x45e1b3(0x1b4)],this[_0x45e1b3(0x1aa)](_0x4ef9d5),..._0x4ef742);}['info'](_0xf1ed34,..._0x215ebe){var _0x436722=_0x2fb5ce;this[_0x436722(0x1b4)](this[_0x436722(0x1c0)][_0x436722(0x1b4)],_0xf1ed34,..._0x215ebe);}[_0x2fb5ce(0x1a8)](_0xa6e246,..._0x57b632){var _0x3cd1e2=_0x2fb5ce;this[_0x3cd1e2(0x1b4)](this[_0x3cd1e2(0x1c0)][_0x3cd1e2(0x1a8)],this[_0x3cd1e2(0x1a3)]('WARNING\x20'+_0xa6e246),..._0x57b632);}['error'](_0x582afb,..._0x4a39e2){var _0x214b68=_0x2fb5ce;this['output'][_0x214b68(0x1a9)]('\x0a'),this[_0x214b68(0x1b4)](this[_0x214b68(0x1c0)][_0x214b68(0x1a9)],this[_0x214b68(0x1a1)](_0x214b68(0x1b5)+_0x582afb),..._0x4a39e2),this[_0x214b68(0x1c0)][_0x214b68(0x1a9)]('\x0a');}[_0x2fb5ce(0x1a6)](_0x34ca6c){var _0x2552fe=_0x2fb5ce;this[_0x2552fe(0x1ae)]=_0x34ca6c;}[_0x2fb5ce(0x1b8)](_0xb41e33){var _0x296202=_0x2fb5ce;return this['tag']&&(_0xb41e33=this[_0x296202(0x1be)]+'\x20'+_0xb41e33),new ConsoleLog(_0xb41e33,this[_0x296202(0x1ae)],this['output']);}[_0x2fb5ce(0x1b4)](_0x501f4f,_0x3c0225,..._0x1deb45){var _0x18c7bd=_0x2fb5ce;this[_0x18c7bd(0x1ba)]&&(_0x3c0225=this[_0x18c7bd(0x1ba)]+'\x20'+_0x3c0225),_0x1deb45?_0x501f4f(...[_0x3c0225][_0x18c7bd(0x1af)](_0x1deb45)):_0x501f4f(_0x3c0225);}[_0x2fb5ce(0x1b0)](_0x1482e6){var _0x2cd0c2=_0x2fb5ce;return _0x2cd0c2(0x1a2)+_0x1482e6+'\x1b[0m';}[_0x2fb5ce(0x1aa)](_0x186d1a){var _0x43236f=_0x2fb5ce;return _0x43236f(0x1a7)+_0x186d1a+'\x1b[0m';}[_0x2fb5ce(0x1a3)](_0x36b362){var _0x54b2b2=_0x2fb5ce;return _0x54b2b2(0x1ad)+_0x36b362+'\x1b[0m';}[_0x2fb5ce(0x1a1)](_0x44cc06){var _0x5e447c=_0x2fb5ce;return _0x5e447c(0x1bc)+_0x44cc06+'\x1b[0m';}}exports[_0x2fb5ce(0x1b9)]=ConsoleLog;
1
+ 'use strict';function _0x57c7(){var _0x26e610=['3rzAWOU','yellow','tag','12tZPhqG','\x1b[0m','119131qKxiuH','concat','2840eVkUgV','warn','info','12dqLhOI','1352bTkFDi','17706247pDuJXN','27801gYKTQk','output','2256076ykfwNi','\x1b[31m','2022419izqtow','debug','\x1b[36m','setVerbose','1123860UVvRbm','2qvYwdM','verbose','WARNING\x20','\x1b[33m','log','error','671oCuOFr','ERROR\x20','inverse','dim','red','__esModule','prefix'];_0x57c7=function(){return _0x26e610;};return _0x57c7();}var _0x555314=_0x2f45;(function(_0x5177f3,_0x1696d3){var _0x53944f=_0x2f45,_0x262884=_0x5177f3();while(!![]){try{var _0x3381a1=-parseInt(_0x53944f(0xd0))/0x1*(parseInt(_0x53944f(0xe1))/0x2)+parseInt(_0x53944f(0xcb))/0x3*(parseInt(_0x53944f(0xda))/0x4)+-parseInt(_0x53944f(0xe0))/0x5*(-parseInt(_0x53944f(0xd5))/0x6)+parseInt(_0x53944f(0xdc))/0x7+parseInt(_0x53944f(0xd6))/0x8*(parseInt(_0x53944f(0xd8))/0x9)+parseInt(_0x53944f(0xd2))/0xa*(parseInt(_0x53944f(0xc4))/0xb)+-parseInt(_0x53944f(0xce))/0xc*(parseInt(_0x53944f(0xd7))/0xd);if(_0x3381a1===_0x1696d3)break;else _0x262884['push'](_0x262884['shift']());}catch(_0x5ef4bd){_0x262884['push'](_0x262884['shift']());}}}(_0x57c7,0x580f7));Object['defineProperty'](exports,_0x555314(0xc9),{'value':!![]}),exports['ConsoleLog']=void 0x0;class ConsoleLog{constructor(_0x702f18='',_0x500d8b=![],_0x14ae0f=console){var _0x4081ef=_0x555314;this[_0x4081ef(0xcd)]=_0x702f18,this[_0x4081ef(0xe2)]=_0x500d8b,this[_0x4081ef(0xca)]=this[_0x4081ef(0xc6)](_0x702f18),this[_0x4081ef(0xd9)]=_0x14ae0f;}[_0x555314(0xdd)](_0x18805c,..._0x454de1){var _0x2d3d66=_0x555314;if(!this[_0x2d3d66(0xe2)])return;this['log'](this['output'][_0x2d3d66(0xc2)],this[_0x2d3d66(0xc7)](_0x18805c),..._0x454de1);}[_0x555314(0xd4)](_0x2b2ebd,..._0x1af969){var _0x3a5bf0=_0x555314;this[_0x3a5bf0(0xc2)](this[_0x3a5bf0(0xd9)][_0x3a5bf0(0xc2)],_0x2b2ebd,..._0x1af969);}[_0x555314(0xd3)](_0x317fac,..._0x416691){var _0x9295de=_0x555314;this[_0x9295de(0xc2)](this['output'][_0x9295de(0xd3)],this[_0x9295de(0xcc)](_0x9295de(0xe3)+_0x317fac),..._0x416691);}[_0x555314(0xc3)](_0x56174f,..._0x63d89c){var _0x2e5299=_0x555314;this[_0x2e5299(0xd9)][_0x2e5299(0xc3)]('\x0a'),this[_0x2e5299(0xc2)](this[_0x2e5299(0xd9)][_0x2e5299(0xc3)],this[_0x2e5299(0xc8)](_0x2e5299(0xc5)+_0x56174f),..._0x63d89c),this['output'][_0x2e5299(0xc3)]('\x0a');}[_0x555314(0xdf)](_0xcf26ec){var _0x1e39ce=_0x555314;this[_0x1e39ce(0xe2)]=_0xcf26ec;}['newLog'](_0x1a6dec){var _0x2c5f98=_0x555314;return this[_0x2c5f98(0xcd)]&&(_0x1a6dec=this['tag']+'\x20'+_0x1a6dec),new ConsoleLog(_0x1a6dec,this[_0x2c5f98(0xe2)],this[_0x2c5f98(0xd9)]);}['log'](_0x2b8e94,_0x2128b8,..._0x3d81b1){var _0x4d82da=_0x555314;this[_0x4d82da(0xca)]&&(_0x2128b8=this[_0x4d82da(0xca)]+'\x20'+_0x2128b8),_0x3d81b1?_0x2b8e94(...[_0x2128b8][_0x4d82da(0xd1)](_0x3d81b1)):_0x2b8e94(_0x2128b8);}[_0x555314(0xc6)](_0x5bb97c){return'\x1b[7m'+_0x5bb97c+'\x1b[0m';}[_0x555314(0xc7)](_0xb6e61){var _0x45787c=_0x555314;return _0x45787c(0xde)+_0xb6e61+'\x1b[0m';}[_0x555314(0xcc)](_0x193bbe){var _0x3d8830=_0x555314;return _0x3d8830(0xe4)+_0x193bbe+_0x3d8830(0xcf);}['red'](_0x507956){var _0x16e50a=_0x555314;return _0x16e50a(0xdb)+_0x507956+_0x16e50a(0xcf);}}function _0x2f45(_0x34e8cc,_0x22aeea){var _0x57c797=_0x57c7();return _0x2f45=function(_0x2f451a,_0x1600b0){_0x2f451a=_0x2f451a-0xc2;var _0x51e0fc=_0x57c797[_0x2f451a];return _0x51e0fc;},_0x2f45(_0x34e8cc,_0x22aeea);}exports['ConsoleLog']=ConsoleLog;
@@ -1 +1 @@
1
- 'use strict';const _0x561328=_0x254b;(function(_0x2c01f3,_0x4d5d2c){const _0x51a701=_0x254b,_0x32bff1=_0x2c01f3();while(!![]){try{const _0x4691e9=parseInt(_0x51a701(0xea))/0x1*(parseInt(_0x51a701(0xec))/0x2)+-parseInt(_0x51a701(0xff))/0x3*(parseInt(_0x51a701(0x101))/0x4)+-parseInt(_0x51a701(0xee))/0x5+parseInt(_0x51a701(0xfc))/0x6*(-parseInt(_0x51a701(0xe7))/0x7)+-parseInt(_0x51a701(0xf2))/0x8+-parseInt(_0x51a701(0xed))/0x9+parseInt(_0x51a701(0xf0))/0xa;if(_0x4691e9===_0x4d5d2c)break;else _0x32bff1['push'](_0x32bff1['shift']());}catch(_0x3345f5){_0x32bff1['push'](_0x32bff1['shift']());}}}(_0x408e,0x53661));Object['defineProperty'](exports,_0x561328(0x102),{'value':!![]}),exports[_0x561328(0xf9)]=fetch,exports[_0x561328(0xe9)]=downloadFile,exports[_0x561328(0xfd)]=decompressResponseBuffer;const fetch_h2_1=require(_0x561328(0xfe)),fs=require('fs'),zlib=require('zlib'),userAgent=_0x561328(0xf8),fetchh2Ctx=(0x0,fetch_h2_1[_0x561328(0xfa)])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx[_0x561328(0xf9)];function _0x254b(_0x5ade32,_0x31f04b){const _0x408e16=_0x408e();return _0x254b=function(_0x254b2d,_0x5d4dcf){_0x254b2d=_0x254b2d-0xe7;let _0x44b1ed=_0x408e16[_0x254b2d];return _0x44b1ed;},_0x254b(_0x5ade32,_0x31f04b);}function _0x408e(){const _0x19f8b6=['finish','constants','test','createWriteStream','pipe','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','fetch','context','length','60mNSDZq','decompressResponseBuffer','fetch-h2','27093ZdPaxM','brotliDecompressSync','292dmvRSI','__esModule','120022QsBQYy','follow','downloadFile','16qVzkTw','data','1358NNbWFV','6054183XoVrCv','1229090VOILZz','headers','21789080FXsPmb','Z_SYNC_FLUSH','791544piLVwJ'];_0x408e=function(){return _0x19f8b6;};return _0x408e();}async function fetch(_0x199821,_0x5ab44c){const _0x20c666=_0x561328;return await fetchh2(_0x199821,_0x5ab44c?{'redirect':_0x20c666(0xe8),..._0x5ab44c}:{'redirect':'follow'});}async function downloadFile(_0x1ea710,_0x356922,_0x101cfe){const _0x376f53=_0x561328;let _0x1a91a4,_0x1de34c;_0x1a91a4=await fetchh2(_0x1ea710,{'redirect':_0x376f53(0xe8)}),_0x1de34c=await _0x1a91a4['readable']();const _0x549932=_0x1a91a4[_0x376f53(0xef)]['get']('Content-Length'),_0x3d90e2=_0x549932?parseInt(_0x549932):-0x1,_0x329353=fs[_0x376f53(0xf6)](_0x356922);let _0x2bcfce=0x0;await new Promise((_0x1136ed,_0x2b4b0d)=>{const _0x26bd26=_0x376f53;_0x1de34c[_0x26bd26(0xf7)](_0x329353),_0x101cfe&&_0x1de34c['on'](_0x26bd26(0xeb),_0x1e88be=>{const _0x19b6fa=_0x26bd26;_0x2bcfce=_0x2bcfce+_0x1e88be[_0x19b6fa(0xfb)],_0x101cfe(_0x2bcfce,_0x3d90e2);}),_0x1de34c['on']('error',_0x487b1d=>{_0x2b4b0d(_0x487b1d);}),_0x329353['on'](_0x26bd26(0xf3),()=>{_0x1136ed();});});}function decompressResponseBuffer(_0x445fe1,_0x274c9b){const _0x5266c4=_0x561328;let _0xb11327=_0x445fe1;if(/\bgzip\b/[_0x5266c4(0xf5)](_0x274c9b)||/\bdeflate\b/[_0x5266c4(0xf5)](_0x274c9b))_0xb11327=zlib['unzipSync'](_0x445fe1,{'flush':zlib[_0x5266c4(0xf4)][_0x5266c4(0xf1)],'finishFlush':zlib['constants'][_0x5266c4(0xf1)]});else/\bbr\b/[_0x5266c4(0xf5)](_0x274c9b)&&(_0xb11327=zlib[_0x5266c4(0x100)](_0x445fe1));return _0xb11327;}
1
+ 'use strict';const _0x265007=_0x2118;function _0x2118(_0x244931,_0xe3facf){const _0x418d82=_0x418d();return _0x2118=function(_0x21181b,_0x426578){_0x21181b=_0x21181b-0x12d;let _0x3f28bd=_0x418d82[_0x21181b];return _0x3f28bd;},_0x2118(_0x244931,_0xe3facf);}(function(_0x2b1815,_0x2f60fe){const _0x566ea9=_0x2118,_0x459b39=_0x2b1815();while(!![]){try{const _0x5d730c=parseInt(_0x566ea9(0x13b))/0x1+parseInt(_0x566ea9(0x13d))/0x2*(parseInt(_0x566ea9(0x147))/0x3)+-parseInt(_0x566ea9(0x142))/0x4+parseInt(_0x566ea9(0x135))/0x5*(-parseInt(_0x566ea9(0x137))/0x6)+parseInt(_0x566ea9(0x132))/0x7+-parseInt(_0x566ea9(0x12f))/0x8+-parseInt(_0x566ea9(0x12e))/0x9*(-parseInt(_0x566ea9(0x13e))/0xa);if(_0x5d730c===_0x2f60fe)break;else _0x459b39['push'](_0x459b39['shift']());}catch(_0x1356ae){_0x459b39['push'](_0x459b39['shift']());}}}(_0x418d,0xb56f0));Object[_0x265007(0x141)](exports,_0x265007(0x13a),{'value':!![]}),exports[_0x265007(0x143)]=fetch,exports['downloadFile']=downloadFile,exports[_0x265007(0x146)]=decompressResponseBuffer;const fetch_h2_1=require('fetch-h2'),fs=require('fs'),zlib=require(_0x265007(0x12d)),userAgent=_0x265007(0x144),fetchh2Ctx=(0x0,fetch_h2_1[_0x265007(0x13c)])({'userAgent':userAgent,'overwriteUserAgent':!![]}),fetchh2=fetchh2Ctx[_0x265007(0x143)];async function fetch(_0x1d701d,_0x162ab){const _0x35ffd6=_0x265007;return await fetchh2(_0x1d701d,_0x162ab?{'redirect':_0x35ffd6(0x131),..._0x162ab}:{'redirect':'follow'});}async function downloadFile(_0x96065,_0x3d0dd1,_0x363062){const _0x35bc1c=_0x265007;let _0x179d27,_0x47722e;_0x179d27=await fetchh2(_0x96065,{'redirect':_0x35bc1c(0x131)}),_0x47722e=await _0x179d27['readable']();const _0x39cb96=_0x179d27['headers']['get']('Content-Length'),_0x51a74f=_0x39cb96?parseInt(_0x39cb96):-0x1,_0x44e021=fs[_0x35bc1c(0x133)](_0x3d0dd1);let _0x4bbfa0=0x0;await new Promise((_0x5495fe,_0x2df550)=>{const _0x47600f=_0x35bc1c;_0x47722e[_0x47600f(0x139)](_0x44e021),_0x363062&&_0x47722e['on'](_0x47600f(0x13f),_0x5e11d8=>{_0x4bbfa0=_0x4bbfa0+_0x5e11d8['length'],_0x363062(_0x4bbfa0,_0x51a74f);}),_0x47722e['on']('error',_0x1a4e9f=>{_0x2df550(_0x1a4e9f);}),_0x44e021['on'](_0x47600f(0x138),()=>{_0x5495fe();});});}function decompressResponseBuffer(_0x12fa88,_0x5d8678){const _0x1242e8=_0x265007;let _0x2a56f7=_0x12fa88;if(/\bgzip\b/[_0x1242e8(0x145)](_0x5d8678)||/\bdeflate\b/[_0x1242e8(0x145)](_0x5d8678))_0x2a56f7=zlib[_0x1242e8(0x136)](_0x12fa88,{'flush':zlib[_0x1242e8(0x140)][_0x1242e8(0x134)],'finishFlush':zlib[_0x1242e8(0x140)][_0x1242e8(0x134)]});else/\bbr\b/[_0x1242e8(0x145)](_0x5d8678)&&(_0x2a56f7=zlib[_0x1242e8(0x130)](_0x12fa88));return _0x2a56f7;}function _0x418d(){const _0x161812=['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','test','decompressResponseBuffer','471qirHtl','zlib','160191oDbEca','6370744dWWhro','brotliDecompressSync','follow','1915410vScFUB','createWriteStream','Z_SYNC_FLUSH','15Xxordz','unzipSync','849582fhCWEa','finish','pipe','__esModule','486526CrJgZm','context','1538zkNWSO','780lIgLXS','data','constants','defineProperty','1219700cIJenj','fetch'];_0x418d=function(){return _0x161812;};return _0x418d();}
@@ -0,0 +1,15 @@
1
+ export default class CliHistory {
2
+ private static history;
3
+ private static defaultHistory;
4
+ private static record;
5
+ static init(cmd: string): void;
6
+ static getAppInfoRecord(): import("../types").BasicAppInfo;
7
+ static getSimulatorRecord(): string;
8
+ static getSimulatorHistory(): string;
9
+ static recordManifest(manifest: Record<string, any>): void;
10
+ static recordSimulator(simulator: string): void;
11
+ static checkManifest(manifest: Record<string, any>): boolean;
12
+ private static compareObjects;
13
+ static checkCommand(cmd: string): boolean;
14
+ static write(): void;
15
+ }
@@ -0,0 +1 @@
1
+ 'use strict';const _0x170edb=_0x3eae;(function(_0x1fa595,_0x238809){const _0x20cfc1=_0x3eae,_0x2905ff=_0x1fa595();while(!![]){try{const _0x106e38=-parseInt(_0x20cfc1(0x1a0))/0x1+-parseInt(_0x20cfc1(0x1b2))/0x2+parseInt(_0x20cfc1(0x1ab))/0x3+-parseInt(_0x20cfc1(0x19e))/0x4+parseInt(_0x20cfc1(0x1aa))/0x5+-parseInt(_0x20cfc1(0x1a9))/0x6*(-parseInt(_0x20cfc1(0x1b5))/0x7)+-parseInt(_0x20cfc1(0x1a8))/0x8*(-parseInt(_0x20cfc1(0x1bd))/0x9);if(_0x106e38===_0x238809)break;else _0x2905ff['push'](_0x2905ff['shift']());}catch(_0x564165){_0x2905ff['push'](_0x2905ff['shift']());}}}(_0x53e8,0x7db19));Object[_0x170edb(0x1a7)](exports,_0x170edb(0x1b8),{'value':!![]});const path_1=require(_0x170edb(0x1b0)),fs=require('fs'),utils_1=require(_0x170edb(0x197));function _0x3eae(_0x201da6,_0x3746a4){const _0x53e8ac=_0x53e8();return _0x3eae=function(_0x3eae3d,_0x3b300b){_0x3eae3d=_0x3eae3d-0x194;let _0x372a56=_0x53e8ac[_0x3eae3d];return _0x372a56;},_0x3eae(_0x201da6,_0x3746a4);}function _0x53e8(){const _0x348a3a=['utf-8','manifest','object','appInfo','36WuQfbU','history','cmd','record','No\x20historical\x20records\x20found','./utils','recordSimulator','readFileSync','compareObjects','simulator','warn','log','2212464oGrBHx','Historical\x20records\x20found','520418inCUcV','join','writeFileSync','stringify','getSimulatorRecord','length','defaultHistory','defineProperty','2275392nqDteM','30mTmrzK','826955mDEPtQ','792873PIcPdO','CliLog','keys','init','checkCommand','path','name','1086436msqpzi','getSimulatorHistory','../../run_history.txt','789901eZhnCE','getAppInfoRecord','recordManifest','__esModule'];_0x53e8=function(){return _0x348a3a;};return _0x53e8();}class CliHistory{static[_0x170edb(0x1ae)](_0x55fc8d){const _0x50fdd7=_0x170edb;let _0x66d263=(0x0,path_1[_0x50fdd7(0x1a1)])(__dirname,_0x50fdd7(0x1b4)),_0x31fe17=this[_0x50fdd7(0x1a6)];if(!fs['existsSync'](_0x66d263))fs['writeFileSync'](_0x66d263,'');else try{_0x31fe17=JSON['parse'](fs[_0x50fdd7(0x199)](_0x66d263,_0x50fdd7(0x1b9))),console[_0x50fdd7(0x19d)](_0x50fdd7(0x19f));}catch(_0x4ff4ef){utils_1[_0x50fdd7(0x1ac)][_0x50fdd7(0x19c)](_0x50fdd7(0x196));}this[_0x50fdd7(0x1be)]=_0x31fe17,this[_0x50fdd7(0x195)][_0x50fdd7(0x194)]=_0x55fc8d;}static[_0x170edb(0x1b6)](){const _0x290ae0=_0x170edb;return this[_0x290ae0(0x195)][_0x290ae0(0x1bc)];}static[_0x170edb(0x1a4)](){const _0x53c9c0=_0x170edb;return this[_0x53c9c0(0x195)]['simulator'];}static[_0x170edb(0x1b3)](){const _0x5568b4=_0x170edb;return this[_0x5568b4(0x1be)]['simulator'];}static[_0x170edb(0x1b7)](_0xa43461){const _0x218464=_0x170edb;this[_0x218464(0x195)][_0x218464(0x1ba)]=_0xa43461,this[_0x218464(0x195)]['appInfo']['name']=_0xa43461[_0x218464(0x1b1)],this['record'][_0x218464(0x1bc)]['id']=_0xa43461['id'];}static[_0x170edb(0x198)](_0x2c805a){const _0x4582c8=_0x170edb;this['record'][_0x4582c8(0x19b)]=_0x2c805a;}static['checkManifest'](_0xc4f869){const _0x3e256b=_0x170edb;return this['compareObjects'](this[_0x3e256b(0x1be)][_0x3e256b(0x1ba)],_0xc4f869);}static[_0x170edb(0x19a)](_0x269d2d,_0x28dfdc){const _0x1dd98e=_0x170edb,_0x30be6c=Object[_0x1dd98e(0x1ad)](_0x269d2d),_0x27b83e=Object[_0x1dd98e(0x1ad)](_0x28dfdc);if(_0x30be6c['length']!==_0x27b83e[_0x1dd98e(0x1a5)])return![];for(const _0x4a9c6a of _0x30be6c){const _0x41e631=_0x269d2d[_0x4a9c6a],_0x136d43=_0x28dfdc[_0x4a9c6a];if(_0x41e631===undefined||_0x136d43===undefined){if(_0x41e631!==_0x136d43)return![];continue;}if(typeof _0x41e631===_0x1dd98e(0x1bb)&&_0x41e631!==null){if(!this[_0x1dd98e(0x19a)](_0x41e631,_0x136d43))return![];continue;}if(_0x41e631!==_0x136d43)return console['log']('Mismatch\x20found\x20at\x20key:\x20'+_0x4a9c6a),![];}return!![];}static[_0x170edb(0x1af)](_0x95c321){const _0x1d89a3=_0x170edb;return this[_0x1d89a3(0x1be)][_0x1d89a3(0x194)]===_0x95c321;}static['write'](){const _0x567aaa=_0x170edb;let _0x3806fd=(0x0,path_1[_0x567aaa(0x1a1)])(__dirname,_0x567aaa(0x1b4));fs[_0x567aaa(0x1a2)](_0x3806fd,JSON[_0x567aaa(0x1a3)](this[_0x567aaa(0x195)]));}}CliHistory['defaultHistory']={'cmd':'','manifest':{},'appInfo':{'name':'','id':''},'simulator':''},CliHistory[_0x170edb(0x195)]={'cmd':'','manifest':{},'appInfo':{'name':'','id':''},'simulator':''},exports['default']=CliHistory;
@@ -1 +1 @@
1
- 'use strict';const _0xefa774=_0x374f;(function(_0x248cac,_0x2c21b9){const _0x56dde2=_0x374f,_0x4faad1=_0x248cac();while(!![]){try{const _0x471784=-parseInt(_0x56dde2(0x9f))/0x1*(-parseInt(_0x56dde2(0x86))/0x2)+-parseInt(_0x56dde2(0x94))/0x3+parseInt(_0x56dde2(0x90))/0x4+-parseInt(_0x56dde2(0x99))/0x5+parseInt(_0x56dde2(0xa9))/0x6+-parseInt(_0x56dde2(0xae))/0x7*(parseInt(_0x56dde2(0x7d))/0x8)+-parseInt(_0x56dde2(0x8c))/0x9;if(_0x471784===_0x2c21b9)break;else _0x4faad1['push'](_0x4faad1['shift']());}catch(_0x39c967){_0x4faad1['push'](_0x4faad1['shift']());}}}(_0xe8e6,0xf0b13));function _0x374f(_0x1b5a3c,_0xeb0f59){const _0xe8e68a=_0xe8e6();return _0x374f=function(_0x374fe0,_0x148049){_0x374fe0=_0x374fe0-0x79;let _0x223a9e=_0xe8e68a[_0x374fe0];return _0x223a9e;},_0x374f(_0x1b5a3c,_0xeb0f59);}Object['defineProperty'](exports,_0xefa774(0xac),{'value':!![]}),exports[_0xefa774(0xa4)]=void 0x0;const colors_1=require(_0xefa774(0xa1));exports[_0xefa774(0xa4)]={'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':_0xefa774(0x87),'messageDownloadJdk':_0xefa774(0xb2),'messageDownloadJdkSrc':'Downloading\x20the\x20JDK\x2011\x20Sources...','messageDecompressJdkSrc':_0xefa774(0xa3),'messageDownloadJdkBin':_0xefa774(0xaa),'messageDecompressJdkBin':_0xefa774(0x83),'promptInstallSdk':_0xefa774(0xa8),'promptSdkPath':_0xefa774(0x98),'messageDownloadSdk':_0xefa774(0x7b),'errorSdkTerms':'Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','promptSdkTerms':_0xefa774(0x81)+(0x0,colors_1[_0xefa774(0xb0)])('https://developer.android.com/studio/terms.html')+'?','messageDownloadAndroidSdk':'Downloading\x20the\x20Android\x20SDK...','messageDecompressAndroidSdk':'Decompressing\x20the\x20Android\x20SDK...','messageInstallingBuildTools':_0xefa774(0xa6)+'license\x20agreement.','messageGeneratingAndroidProject':'Generating\x20Android\x20Project.','messageCheckSuccess':(_0x1538bf,_0x10be06)=>{const _0x531528=_0xefa774;return'\x20URL\x20'+(0x0,colors_1[_0x531528(0x80)])(_0x1538bf)+'\x20'+(_0x10be06?_0x531528(0x7c)+(0x0,colors_1['cyan'])(_0x10be06):'')+'\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:';},'errorMissingManifestParameter':_0xefa774(0x8a)+((0x0,colors_1[_0xefa774(0x80)])(_0xefa774(0xa0))+_0xefa774(0x85)+(0x0,colors_1[_0xefa774(0x80)])(_0xefa774(0x7a))),'messageInitializingWebManifest':_0x22a8d9=>{const _0x2d7d7e=_0xefa774;return'Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20'+(0x0,colors_1[_0x2d7d7e(0x80)])(_0x22a8d9);},'messageInitializingLocalManifest':_0x5aa654=>{const _0x45b0af=_0xefa774;return _0x45b0af(0xa5)+(0x0,colors_1[_0x45b0af(0x80)])(_0x5aa654);},'messageInvalidIcon':_0x5a11a8=>{const _0x21d69b=_0xefa774;return _0x21d69b(0xb3)+(0x0,colors_1[_0x21d69b(0x80)])(_0x5a11a8);},'errorStartUrlNotReachable':_0x292da0=>_0xefa774(0x9d)+_0x292da0+_0xefa774(0xa7)+_0xefa774(0x7f),'warnFamilyPolicy':(0x0,colors_1[_0xefa774(0x8f)])((0x0,colors_1[_0xefa774(0x9a)])('WARNING:\x20'))+_0xefa774(0xa2)+_0xefa774(0xad)+_0xefa774(0x91)+_0xefa774(0xab)+(0x0,colors_1[_0xefa774(0x80)])('https://play.google.com/console/about/families/'),'promptIconUrl':_0xefa774(0x9e),'errorInvalidUrl':_0x449c98=>{const _0x10d0fd=_0xefa774;return _0x10d0fd(0x97)+_0x449c98;},'errorUrlMustBeImage':_0x12d435=>{const _0x565b32=_0xefa774;return _0x565b32(0x88)+_0x12d435+'.';},'promptVersionCode':_0xefa774(0x8d),'promptVersionName':'Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','messageSigningKeyInformation':(0x0,colors_1[_0xefa774(0xb0)])(_0xefa774(0x96)+(0x0,colors_1['green'])(_0xefa774(0x92))),'messageProjectGeneratedSuccess':'\x0aProject\x20generated\x20successfully.','messageSigningKeyCreation':(0x0,colors_1[_0xefa774(0xb0)])('\x0aSigning\x20key\x20creation'),'messageSigningKeyNotFound':_0x1d1043=>{const _0x1ac651=_0xefa774;return _0x1ac651(0x93)+_0x1d1043+_0x1ac651(0xaf);},'promptCreateKey':_0xefa774(0x8b),'promptKeyFullName':_0xefa774(0x9c),'promptKeyOrganizationalUnit':'Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','promptKeyOrganization':'Organization\x20(eg:\x20Company\x20Name):','promptKeyCountry':_0xefa774(0x8e),'promptKeystorePassword':_0xefa774(0xb4),'promptKeyPassword':_0xefa774(0x7e),'messageBuildingApp':'\x0aBuilding\x20the\x20Android\x20App...','messageEnterPasswords':(_0x27bf74,_0x4335ff)=>{const _0x5089b6=_0xefa774;return _0x5089b6(0x95)+(0x0,colors_1['cyan'])(_0x27bf74)+_0x5089b6(0x9b)+(0x0,colors_1[_0x5089b6(0x80)])(_0x4335ff)+'.\x0a';},'errorMinLength':(_0x2c3f1a,_0x44baba)=>{const _0x37a4ec=_0xefa774;return _0x37a4ec(0x84)+_0x2c3f1a+'\x20but\x20input\x20is\x20'+_0x44baba+'.';},'errorMaxLength':(_0x1593d2,_0x697afe)=>{const _0x2ba52e=_0xefa774;return _0x2ba52e(0x89)+_0x1593d2+'\x20but\x20input\x20is\x20'+_0x697afe+'.';},'errorInvalidInteger':_0x62a7ae=>{const _0x17b085=_0xefa774;return _0x17b085(0x82)+_0x62a7ae;},'messageApkSuccess':_0x2453df=>{const _0x10a992=_0xefa774;return _0x10a992(0xb1)+(0x0,colors_1['cyan'])(_0x2453df);},'missingUrlToCheck':_0xefa774(0x8a)+(''+(0x0,colors_1[_0xefa774(0x80)])(_0xefa774(0x79)))};function _0xe8e6(){const _0x1672ef=['URL\x20','Icon\x20URL:','7nglEby','--manifest-url','colors','Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible','Decompressing\x20the\x20JDK\x2011\x20Sources...','messages','Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20','Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20','\x20can\x20not\x20be\x20accessible.','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)','2357496BwLCFi','Downloading\x20the\x20JDK\x2011\x20Binaries...','\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a','__esModule','\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.','42KgnHKl','\x22.\x0a','underline','\x09-\x20Generated\x20Android\x20APK\x20at\x20','Downloading\x20JDK\x2011\x20to\x20','Invalid\x20icon\x20path:\x20','Password\x20for\x20the\x20Key\x20Store:','--url','--manifest','Downloading\x20Android\x20SDK\x20to\x20','redirected\x20to\x20','1037712iVXFpk','Password\x20for\x20the\x20Key:','Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','cyan','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','Invalid\x20integer\x20provided:\x20','Decompressing\x20the\x20JDK\x2011\x20Binaries...','Minimum\x20length\x20is\x20','\x20or\x20','548138rvbSWq','Path\x20to\x20your\x20existing\x20JDK\x2011:','URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20','Maximum\x20length\x20is\x20','Missing\x20required\x20parameter\x20','Do\x20you\x20want\x20to\x20create\x20one\x20now?','596943VZzwtb','Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','Country\x20(2\x20letter\x20code):','bold','7806112ErAFTK','\x20Check\x20out\x20the\x20Play\x20for','(5/5)','\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22','3279117xdXegy','Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20','\x0aSigning\x20key\x20information\x20','Invalid\x20URL:\x20','Path\x20to\x20your\x20existing\x20Android\x20SDK:','6697010zeKJPO','yellow','\x20and\x20alias\x20','First\x20and\x20Last\x20names\x20(eg:\x20PICO):'];_0xe8e6=function(){return _0x1672ef;};return _0xe8e6();}
1
+ 'use strict';const _0x51df3a=_0x1793;(function(_0x367342,_0x11b7d7){const _0x1c82c9=_0x1793,_0xb7778c=_0x367342();while(!![]){try{const _0x46f195=-parseInt(_0x1c82c9(0x9c))/0x1*(parseInt(_0x1c82c9(0x8c))/0x2)+parseInt(_0x1c82c9(0x7b))/0x3+parseInt(_0x1c82c9(0xb6))/0x4*(-parseInt(_0x1c82c9(0x8a))/0x5)+parseInt(_0x1c82c9(0x8f))/0x6+-parseInt(_0x1c82c9(0x93))/0x7+parseInt(_0x1c82c9(0x8b))/0x8+parseInt(_0x1c82c9(0x9b))/0x9*(-parseInt(_0x1c82c9(0x85))/0xa);if(_0x46f195===_0x11b7d7)break;else _0xb7778c['push'](_0xb7778c['shift']());}catch(_0xd50767){_0xb7778c['push'](_0xb7778c['shift']());}}}(_0x4754,0xef219));Object[_0x51df3a(0x8d)](exports,_0x51df3a(0x91),{'value':!![]}),exports[_0x51df3a(0xa3)]=void 0x0;function _0x1793(_0x387a25,_0x2841ed){const _0x475485=_0x4754();return _0x1793=function(_0x1793d3,_0x5e4433){_0x1793d3=_0x1793d3-0x78;let _0x311e74=_0x475485[_0x1793d3];return _0x311e74;},_0x1793(_0x387a25,_0x2841ed);}function _0x4754(){const _0x55f355=['6036656FNIRpF','6eEJpGd','defineProperty','URL\x20must\x20resolve\x20to\x20an\x20image/*\x20mime-type,\x20but\x20resolved\x20to\x20','10377486wCNTjt','--manifest-url','__esModule','Generating\x20Android\x20Project.','8312962YoTmQw','Decompressing\x20the\x20Android\x20SDK...','\x20Check\x20out\x20the\x20Play\x20for','Password\x20for\x20the\x20Key:','Decompressing\x20the\x20JDK\x2011\x20Binaries...','https://play.google.com/console/about/families/','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)','Initializing\x20application\x20from\x20Web\x20Manifest:\x0a\x09-\x20\x20','30330zXtaib','169018mCwigO','\x20and\x20alias\x20','underline','\x0aAn\x20existing\x20key\x20store\x20could\x20not\x20be\x20found\x20at\x20\x22','\x0aProject\x20generated\x20successfully.','Installing\x20Android\x20Build\x20Tools.\x20Please,\x20read\x20and\x20accept\x20the\x20','colors','messages','Downloading\x20Android\x20SDK\x20to\x20','Minimum\x20length\x20is\x20','\x0aBuilding\x20the\x20Android\x20App...','Do\x20you\x20agree\x20to\x20the\x20Android\x20SDK\x20terms\x20and\x20conditions\x20at\x20','https://developer.android.com/studio/terms.html','\x20but\x20input\x20is\x20','Missing\x20required\x20parameter\x20','Icon\x20URL:','redirected\x20to\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)','--manifest','\x20Families\x0apolicies\x20to\x20learn\x20more.\x0a','yellow','bold','\x20URL\x20','\x20validation\x20successful.Here\x20is\x20the\x20relevant\x20information:','\x20or\x20','Downloading\x20the\x20Android\x20SDK...','385052oiKQCa','Organization\x20(eg:\x20Company\x20Name):','Maximum\x20length\x20is\x20','(5/5)','Please\x20check\x20your\x20internet\x20connection\x20or\x20start_url\x20in\x20manifest\x20file.','4461687rVNHis','Initializing\x20application\x20from\x20Local\x20Manifest:\x0a\x09-\x20\x20','\x20with\x20applications\x0atargeting\x20children\x20under\x20the\x20age\x20of\x2013.','\x22.\x0a','Path\x20to\x20your\x20existing\x20Android\x20SDK:','license\x20agreement.','Path\x20to\x20your\x20existing\x20JDK\x2011:','\x0aSigning\x20key\x20creation','\x0aSigning\x20key\x20information\x20','Password\x20for\x20the\x20Key\x20Store:','1850MNWQBH','Downloading\x20the\x20JDK\x2011\x20Binaries...','cyan','Country\x20(2\x20letter\x20code):','Please,\x20enter\x20passwords\x20for\x20the\x20keystore\x20','35sxxcaS'];_0x4754=function(){return _0x55f355;};return _0x4754();}const colors_1=require(_0x51df3a(0xa2));exports[_0x51df3a(0xa3)]={'promptInstallJdk':_0x51df3a(0x99),'promptJdkPath':_0x51df3a(0x81),'messageDownloadJdk':'Downloading\x20JDK\x2011\x20to\x20','messageDownloadJdkSrc':'Downloading\x20the\x20JDK\x2011\x20Sources...','messageDecompressJdkSrc':'Decompressing\x20the\x20JDK\x2011\x20Sources...','messageDownloadJdkBin':_0x51df3a(0x86),'messageDecompressJdkBin':_0x51df3a(0x97),'promptInstallSdk':_0x51df3a(0xad),'promptSdkPath':_0x51df3a(0x7f),'messageDownloadSdk':_0x51df3a(0xa4),'errorSdkTerms':'Downloading\x20Android\x20SDK\x20failed\x20because\x20Terms\x20and\x20Conditions\x20was\x20not\x20signed.','promptSdkTerms':_0x51df3a(0xa7)+(0x0,colors_1[_0x51df3a(0x9e)])(_0x51df3a(0xa8))+'?','messageDownloadAndroidSdk':_0x51df3a(0xb5),'messageDecompressAndroidSdk':_0x51df3a(0x94),'messageInstallingBuildTools':_0x51df3a(0xa1)+_0x51df3a(0x80),'messageGeneratingAndroidProject':_0x51df3a(0x92),'messageCheckSuccess':(_0x3c09f5,_0x58f46e)=>{const _0x1afe52=_0x51df3a;return _0x1afe52(0xb2)+(0x0,colors_1[_0x1afe52(0x87)])(_0x3c09f5)+'\x20'+(_0x58f46e?_0x1afe52(0xac)+(0x0,colors_1[_0x1afe52(0x87)])(_0x58f46e):'')+_0x1afe52(0xb3);},'errorMissingManifestParameter':_0x51df3a(0xaa)+((0x0,colors_1[_0x51df3a(0x87)])(_0x51df3a(0x90))+_0x51df3a(0xb4)+(0x0,colors_1[_0x51df3a(0x87)])(_0x51df3a(0xae))),'messageInitializingWebManifest':_0x5c0a02=>{const _0x28111f=_0x51df3a;return _0x28111f(0x9a)+(0x0,colors_1[_0x28111f(0x87)])(_0x5c0a02);},'messageInitializingLocalManifest':_0x487f33=>{const _0x31568f=_0x51df3a;return _0x31568f(0x7c)+(0x0,colors_1[_0x31568f(0x87)])(_0x487f33);},'messageInvalidIcon':_0x7be14c=>{return'Invalid\x20icon\x20path:\x20'+(0x0,colors_1['cyan'])(_0x7be14c);},'errorStartUrlNotReachable':_0xc63e8a=>'URL\x20'+_0xc63e8a+'\x20can\x20not\x20be\x20accessible.'+_0x51df3a(0x7a),'warnFamilyPolicy':(0x0,colors_1[_0x51df3a(0xb1)])((0x0,colors_1[_0x51df3a(0xb0)])('WARNING:\x20'))+'Trusted\x20Web\x20Activities\x20are\x20currently\x20incompatible'+_0x51df3a(0x7d)+_0x51df3a(0x95)+_0x51df3a(0xaf)+(0x0,colors_1['cyan'])(_0x51df3a(0x98)),'promptIconUrl':_0x51df3a(0xab),'errorInvalidUrl':_0x30c4a8=>{return'Invalid\x20URL:\x20'+_0x30c4a8;},'errorUrlMustBeImage':_0x13f288=>{const _0x214fe0=_0x51df3a;return _0x214fe0(0x8e)+_0x13f288+'.';},'promptVersionCode':'Starting\x20version\x20code\x20for\x20the\x20new\x20app\x20version:','promptVersionName':'Starting\x20version\x20name\x20for\x20the\x20new\x20app\x20version:','messageSigningKeyInformation':(0x0,colors_1[_0x51df3a(0x9e)])(_0x51df3a(0x83)+(0x0,colors_1['green'])(_0x51df3a(0x79))),'messageProjectGeneratedSuccess':_0x51df3a(0xa0),'messageSigningKeyCreation':(0x0,colors_1[_0x51df3a(0x9e)])(_0x51df3a(0x82)),'messageSigningKeyNotFound':_0x183664=>{const _0x11140f=_0x51df3a;return _0x11140f(0x9f)+_0x183664+_0x11140f(0x7e);},'promptCreateKey':'Do\x20you\x20want\x20to\x20create\x20one\x20now?','promptKeyFullName':'First\x20and\x20Last\x20names\x20(eg:\x20PICO):','promptKeyOrganizationalUnit':'Organizational\x20Unit\x20(eg:\x20PICO\x20Dept):','promptKeyOrganization':_0x51df3a(0xb7),'promptKeyCountry':_0x51df3a(0x88),'promptKeystorePassword':_0x51df3a(0x84),'promptKeyPassword':_0x51df3a(0x96),'messageBuildingApp':_0x51df3a(0xa6),'messageEnterPasswords':(_0x9c7769,_0x1076d3)=>{const _0x4d4c93=_0x51df3a;return _0x4d4c93(0x89)+(0x0,colors_1['cyan'])(_0x9c7769)+_0x4d4c93(0x9d)+(0x0,colors_1[_0x4d4c93(0x87)])(_0x1076d3)+'.\x0a';},'errorMinLength':(_0x49dee7,_0x56963e)=>{const _0x4bad17=_0x51df3a;return _0x4bad17(0xa5)+_0x49dee7+_0x4bad17(0xa9)+_0x56963e+'.';},'errorMaxLength':(_0x4ef3c9,_0x1c7680)=>{const _0x29772f=_0x51df3a;return _0x29772f(0x78)+_0x4ef3c9+_0x29772f(0xa9)+_0x1c7680+'.';},'errorInvalidInteger':_0x18e38f=>{return'Invalid\x20integer\x20provided:\x20'+_0x18e38f;},'messageApkSuccess':_0x52dfdb=>{const _0x3ebb7a=_0x51df3a;return'\x09-\x20Generated\x20Android\x20APK\x20at\x20'+(0x0,colors_1[_0x3ebb7a(0x87)])(_0x52dfdb);},'missingUrlToCheck':_0x51df3a(0xaa)+(''+(0x0,colors_1[_0x51df3a(0x87)])('--url'))};
@@ -1 +1,3 @@
1
+ import { ConsoleLog } from './Log';
1
2
  export declare function parseRouter(url: string): string;
3
+ export declare const CliLog: ConsoleLog;
@@ -1 +1 @@
1
- 'use strict';const _0x58e2eb=_0x1599;function _0x1599(_0x315baa,_0x18904a){const _0x2db862=_0x2db8();return _0x1599=function(_0x15995c,_0x16578a){_0x15995c=_0x15995c-0x1b7;let _0x3398d4=_0x2db862[_0x15995c];return _0x3398d4;},_0x1599(_0x315baa,_0x18904a);}(function(_0x1319eb,_0x3e7d29){const _0x65e03e=_0x1599,_0x195fd9=_0x1319eb();while(!![]){try{const _0x7a4357=-parseInt(_0x65e03e(0x1bb))/0x1+-parseInt(_0x65e03e(0x1b9))/0x2*(-parseInt(_0x65e03e(0x1c6))/0x3)+parseInt(_0x65e03e(0x1c1))/0x4*(parseInt(_0x65e03e(0x1bd))/0x5)+-parseInt(_0x65e03e(0x1c3))/0x6+-parseInt(_0x65e03e(0x1bf))/0x7+parseInt(_0x65e03e(0x1b8))/0x8+-parseInt(_0x65e03e(0x1c4))/0x9*(-parseInt(_0x65e03e(0x1c0))/0xa);if(_0x7a4357===_0x3e7d29)break;else _0x195fd9['push'](_0x195fd9['shift']());}catch(_0x46d94e){_0x195fd9['push'](_0x195fd9['shift']());}}}(_0x2db8,0x97691));function _0x2db8(){const _0x31be23=['10ORFKLO','4GyaQvb','__esModule','7405554pNJSVV','5421825NNDwFl','indexOf','1218948BfThAr','parseRouter','join','7444312WgRbtN','4IzKHlZ','replace','449096cmwYBQ','split','5514270KNlWHY','defineProperty','8014426KuOOmC'];_0x2db8=function(){return _0x31be23;};return _0x2db8();}Object[_0x58e2eb(0x1be)](exports,_0x58e2eb(0x1c2),{'value':!![]}),exports[_0x58e2eb(0x1c7)]=parseRouter;function parseRouter(_0x7022be){const _0x54d534=_0x58e2eb;let _0x40379a=_0x7022be[_0x54d534(0x1bc)]('/');_0x40379a['pop']();let _0x103333=_0x40379a[_0x54d534(0x1b7)]();while(_0x103333[_0x54d534(0x1c5)](',')>=0x0){_0x103333=_0x103333[_0x54d534(0x1ba)](',','/');}return _0x103333;}
1
+ 'use strict';function _0x26c5(_0x2d479e,_0x3f9be0){const _0xdab17c=_0xdab1();return _0x26c5=function(_0x26c5a9,_0x2a544a){_0x26c5a9=_0x26c5a9-0xc1;let _0x3a06ee=_0xdab17c[_0x26c5a9];return _0x3a06ee;},_0x26c5(_0x2d479e,_0x3f9be0);}const _0x2d89fb=_0x26c5;(function(_0x3cbdce,_0x65a8d2){const _0x3da642=_0x26c5,_0x4ed260=_0x3cbdce();while(!![]){try{const _0x3a4f5e=parseInt(_0x3da642(0xc5))/0x1+-parseInt(_0x3da642(0xd1))/0x2*(parseInt(_0x3da642(0xcd))/0x3)+-parseInt(_0x3da642(0xcf))/0x4*(parseInt(_0x3da642(0xc2))/0x5)+-parseInt(_0x3da642(0xca))/0x6+parseInt(_0x3da642(0xd0))/0x7*(parseInt(_0x3da642(0xce))/0x8)+-parseInt(_0x3da642(0xc6))/0x9*(parseInt(_0x3da642(0xd4))/0xa)+parseInt(_0x3da642(0xc8))/0xb;if(_0x3a4f5e===_0x65a8d2)break;else _0x4ed260['push'](_0x4ed260['shift']());}catch(_0x2b01f3){_0x4ed260['push'](_0x4ed260['shift']());}}}(_0xdab1,0xd451c));Object[_0x2d89fb(0xc4)](exports,_0x2d89fb(0xc9),{'value':!![]}),exports['CliLog']=void 0x0,exports[_0x2d89fb(0xc1)]=parseRouter;const Log_1=require('./Log');function parseRouter(_0x1ecb29){const _0x45b1fc=_0x2d89fb;let _0x58c1f9=_0x1ecb29[_0x45b1fc(0xd3)]('/');_0x58c1f9['pop']();let _0x5be44b=_0x58c1f9[_0x45b1fc(0xcc)]();while(_0x5be44b['indexOf'](',')>=0x0){_0x5be44b=_0x5be44b[_0x45b1fc(0xc7)](',','/');}return _0x5be44b;}exports[_0x2d89fb(0xc3)]=new Log_1[(_0x2d89fb(0xd2))](_0x2d89fb(0xcb));function _0xdab1(){const _0x42ea40=['ConsoleLog','split','3081190XuSoSv','parseRouter','1328005zTWUCY','CliLog','defineProperty','608483jnvIQN','27VJZWPf','replace','27934566AQaciH','__esModule','6766776SpPejA','webspatial-builder','join','21iJdzDt','1256672MGhTut','8FvWGfA','14IfHiNO','2612GNvpws'];_0xdab1=function(){return _0x42ea40;};return _0xdab1();}
@@ -1,5 +1,7 @@
1
1
  export declare class XcodeManager {
2
2
  static parseProject(option: any, isDev?: boolean): Promise<void>;
3
+ static build(exportPath: string): Promise<void>;
3
4
  static upload(option: any, appInfo: any): Promise<void>;
4
- static runWithSimulator(appInfo: any): Promise<void>;
5
+ static runWithSimulator(): Promise<void>;
6
+ static runWithHistory(): Promise<void>;
5
7
  }
@@ -1 +1 @@
1
- 'use strict';const _0x191880=_0x2e14;(function(_0x4765a6,_0x16f76e){const _0x3fcf77=_0x2e14,_0x5b296a=_0x4765a6();while(!![]){try{const _0x520013=-parseInt(_0x3fcf77(0x69))/0x1*(parseInt(_0x3fcf77(0x82))/0x2)+-parseInt(_0x3fcf77(0x67))/0x3*(-parseInt(_0x3fcf77(0x85))/0x4)+parseInt(_0x3fcf77(0x77))/0x5*(-parseInt(_0x3fcf77(0x73))/0x6)+parseInt(_0x3fcf77(0x74))/0x7*(parseInt(_0x3fcf77(0x7a))/0x8)+-parseInt(_0x3fcf77(0x6f))/0x9+parseInt(_0x3fcf77(0x79))/0xa+parseInt(_0x3fcf77(0x80))/0xb;if(_0x520013===_0x16f76e)break;else _0x5b296a['push'](_0x5b296a['shift']());}catch(_0x6e79cf){_0x5b296a['push'](_0x5b296a['shift']());}}}(_0x41fb,0x6106e));function _0x41fb(){const _0x23b8d8=['path','modify','./xcodeproject','6243876nMmyaC','.ipa','write\x20project.pbxproj:\x20ok','PROJECT_EXPORT_DIRECTORY','60pmkXBu','21cBWCrc','../resource','log','300205LnauDS','PROJECT_DIRECTORY','3066620nDodoM','450888ptPoFg','export','upload','./xcodebuild','defineProperty','archive','14972364PxrQxY','parseProject','915468ucOXdA','default','uploadApp','4btoasN','937383TeyVgt','name','1WMAmrE','existsSync','XcodeManager'];_0x41fb=function(){return _0x23b8d8;};return _0x41fb();}Object[_0x191880(0x7e)](exports,'__esModule',{'value':!![]}),exports[_0x191880(0x6b)]=void 0x0;const fs=require('fs'),resource_1=require(_0x191880(0x75)),xcodeproject_1=require(_0x191880(0x6e)),xcodebuild_1=require(_0x191880(0x7d)),xcrun_1=require('./xcrun'),path_1=require(_0x191880(0x6c));function _0x2e14(_0x4d75e0,_0x5cf68c){const _0x41fbd7=_0x41fb();return _0x2e14=function(_0x2e14f0,_0x13c71e){_0x2e14f0=_0x2e14f0-0x67;let _0x1d2601=_0x41fbd7[_0x2e14f0];return _0x1d2601;},_0x2e14(_0x4d75e0,_0x5cf68c);}class XcodeManager{static async[_0x191880(0x81)](_0x35bc77,_0x3afd09=![]){const _0x2744ed=_0x191880,_0xa07612=resource_1[_0x2744ed(0x78)]+'/web-spatial.xcodeproj/project.pbxproj';await xcodeproject_1[_0x2744ed(0x83)][_0x2744ed(0x6d)](_0xa07612,_0x35bc77,_0x3afd09),console[_0x2744ed(0x76)](_0x2744ed(0x71));!fs[_0x2744ed(0x6a)](resource_1[_0x2744ed(0x72)])&&fs['mkdirSync'](resource_1[_0x2744ed(0x72)],{'recursive':!![]});if(!_0x3afd09)await xcodebuild_1[_0x2744ed(0x83)][_0x2744ed(0x7f)](_0x35bc77[_0x2744ed(0x7b)]);}static async[_0x191880(0x7c)](_0x2ce688,_0x3c02fc){const _0x3fb8e7=_0x191880;if(_0x2ce688['u']&&_0x2ce688['p'])xcrun_1[_0x3fb8e7(0x83)]['uploadApp']((0x0,path_1['join'])(resource_1[_0x3fb8e7(0x72)],_0x3c02fc[_0x3fb8e7(0x68)]+_0x3fb8e7(0x70)),_0x2ce688['u'],_0x2ce688['p'],!![]);else _0x2ce688['k']&&_0x2ce688['i']&&xcrun_1['default'][_0x3fb8e7(0x84)]((0x0,path_1['join'])(resource_1[_0x3fb8e7(0x72)],_0x3c02fc['name']+_0x3fb8e7(0x70)),_0x2ce688['k'],_0x2ce688['i'],![]);}static async['runWithSimulator'](_0x22f8ad){const _0x59cd99=_0x191880;await xcrun_1[_0x59cd99(0x83)]['runWithSimulator'](_0x22f8ad);}}exports[_0x191880(0x6b)]=XcodeManager;
1
+ 'use strict';function _0x435b(){const _0x13fd93=['8gJHZEZ','archive','./xcrun','log','2377215DVIRvk','upload','__esModule','7464456uOhsUm','uploadApp','28267635WRtXdO','existsSync','440170JdmVIk','name','path','mkdirSync','runWithHistory','./xcodebuild','defineProperty','join','../resource','.ipa','/web-spatial.xcodeproj/project.pbxproj','7bPSUVo','72mwdfSE','578169AGiLFt','4084926HVsNEv','2pyErsg','export','build','XcodeManager','default','694641UbFELp','runWithSimulator','PROJECT_EXPORT_DIRECTORY'];_0x435b=function(){return _0x13fd93;};return _0x435b();}const _0x2b4b88=_0x5a76;function _0x5a76(_0x36d109,_0x4f2788){const _0x435be0=_0x435b();return _0x5a76=function(_0x5a7663,_0xcd1f0){_0x5a7663=_0x5a7663-0xe6;let _0x25efc8=_0x435be0[_0x5a7663];return _0x25efc8;},_0x5a76(_0x36d109,_0x4f2788);}(function(_0x5e59ce,_0x51c229){const _0xc1db47=_0x5a76,_0x2aab5e=_0x5e59ce();while(!![]){try{const _0x54317a=-parseInt(_0xc1db47(0x104))/0x1*(parseInt(_0xc1db47(0xff))/0x2)+parseInt(_0xc1db47(0xfd))/0x3*(parseInt(_0xc1db47(0x107))/0x4)+-parseInt(_0xc1db47(0xe9))/0x5+-parseInt(_0xc1db47(0xfe))/0x6*(parseInt(_0xc1db47(0xfb))/0x7)+-parseInt(_0xc1db47(0xec))/0x8+parseInt(_0xc1db47(0xfc))/0x9*(parseInt(_0xc1db47(0xf0))/0xa)+parseInt(_0xc1db47(0xee))/0xb;if(_0x54317a===_0x51c229)break;else _0x2aab5e['push'](_0x2aab5e['shift']());}catch(_0xa99d09){_0x2aab5e['push'](_0x2aab5e['shift']());}}}(_0x435b,0x7fc8d));Object[_0x2b4b88(0xf6)](exports,_0x2b4b88(0xeb),{'value':!![]}),exports[_0x2b4b88(0x102)]=void 0x0;const fs=require('fs'),resource_1=require(_0x2b4b88(0xf8)),xcodeproject_1=require('./xcodeproject'),xcodebuild_1=require(_0x2b4b88(0xf5)),xcrun_1=require(_0x2b4b88(0xe7)),path_1=require(_0x2b4b88(0xf2));class XcodeManager{static async['parseProject'](_0xbb8227,_0x400cec=![]){const _0x2ba3b1=_0x2b4b88,_0x52b0a2=resource_1['PROJECT_DIRECTORY']+_0x2ba3b1(0xfa);await xcodeproject_1[_0x2ba3b1(0x103)]['modify'](_0x52b0a2,_0xbb8227,_0x400cec),console[_0x2ba3b1(0xe8)]('write\x20project.pbxproj:\x20ok');!fs[_0x2ba3b1(0xef)](resource_1['PROJECT_EXPORT_DIRECTORY'])&&fs[_0x2ba3b1(0xf3)](resource_1[_0x2ba3b1(0x106)],{'recursive':!![]});if(!_0x400cec)await xcodebuild_1[_0x2ba3b1(0x103)][_0x2ba3b1(0xe6)](_0xbb8227[_0x2ba3b1(0x100)]);}static async[_0x2b4b88(0x101)](_0x13ed5d){const _0x549855=_0x2b4b88;await xcodebuild_1[_0x549855(0x103)]['archive'](_0x13ed5d);}static async[_0x2b4b88(0xea)](_0x4de57c,_0x31f394){const _0x54b4ab=_0x2b4b88;if(_0x4de57c['u']&&_0x4de57c['p'])xcrun_1[_0x54b4ab(0x103)][_0x54b4ab(0xed)]((0x0,path_1['join'])(resource_1[_0x54b4ab(0x106)],_0x31f394[_0x54b4ab(0xf1)]+_0x54b4ab(0xf9)),_0x4de57c['u'],_0x4de57c['p'],!![]);else _0x4de57c['k']&&_0x4de57c['i']&&xcrun_1[_0x54b4ab(0x103)]['uploadApp']((0x0,path_1[_0x54b4ab(0xf7)])(resource_1[_0x54b4ab(0x106)],_0x31f394[_0x54b4ab(0xf1)]+'.ipa'),_0x4de57c['k'],_0x4de57c['i'],![]);}static async[_0x2b4b88(0x105)](){await xcrun_1['default']['runWithSimulator']();}static async[_0x2b4b88(0xf4)](){const _0x3beac5=_0x2b4b88;await xcrun_1[_0x3beac5(0x103)][_0x3beac5(0xf4)]();}}exports[_0x2b4b88(0x102)]=XcodeManager;
@@ -1 +1 @@
1
- 'use strict';var _0xcac515=_0x2496;function _0x2496(_0x3050f6,_0x1f5925){var _0x230429=_0x2304();return _0x2496=function(_0x2496d2,_0x5c3851){_0x2496d2=_0x2496d2-0xe9;var _0x3a38b1=_0x230429[_0x2496d2];return _0x3a38b1;},_0x2496(_0x3050f6,_0x1f5925);}(function(_0x188287,_0x211b26){var _0x57129b=_0x2496,_0x4629e8=_0x188287();while(!![]){try{var _0x5dc970=-parseInt(_0x57129b(0xea))/0x1+parseInt(_0x57129b(0xf1))/0x2+-parseInt(_0x57129b(0xeb))/0x3*(parseInt(_0x57129b(0xf0))/0x4)+parseInt(_0x57129b(0xf3))/0x5+-parseInt(_0x57129b(0xe9))/0x6*(-parseInt(_0x57129b(0xf2))/0x7)+parseInt(_0x57129b(0xf4))/0x8+-parseInt(_0x57129b(0xee))/0x9*(-parseInt(_0x57129b(0xef))/0xa);if(_0x5dc970===_0x211b26)break;else _0x4629e8['push'](_0x4629e8['shift']());}catch(_0x393b22){_0x4629e8['push'](_0x4629e8['shift']());}}}(_0x2304,0xe1382));function _0x2304(){var _0x746660=['153822EBNirg','1751105IpFylT','3123zAnAlS','\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\x20if\x20scope\x20==\x20\x22\x22\x20||\x20scope\x20==\x20\x22/\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20\x22./\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20startUrl\x20=\x20Bundle.main.url(forResource:\x20start_url,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20start_url\x20=\x20startUrl!.absoluteString\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20URL(string:\x20scope,\x20relativeTo:\x20startUrl)!.absoluteString\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\x0a\x20\x20\x20\x20func\x20getLocalResourceURL(url:\x20String)\x20->\x20String\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20path\x20=\x20String(url.split(separator:\x20\x22file://\x22).first!.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20newUrl\x20=\x20URL(string:\x20url)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20fileManager\x20=\x20FileManager.default\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20fileManager.fileExists(atPath:\x20newUrl!.path)\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\x20var\x20resource:\x20String\x20=\x20Bundle.main.url(forResource:\x20newUrl?.path,\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\x20if\x20newUrl?.query()\x20!=\x20nil\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22?\x22\x20+\x20(newUrl?.query())!\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20newUrl?.fragment()\x20!=\x20nil\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22#\x22\x20+\x20(newUrl?.fragment())!\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\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\x20\x20\x20\x20case\x20fullscreen\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','manifestSwiftTemplate','6606fUzEud','1340rmqcUx','1372liJEse','1903958lngmEe','434JyKSaD','864690KhjjlZ','1743192FueJSP'];_0x2304=function(){return _0x746660;};return _0x2304();}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0xcac515(0xed)]=void 0x0,exports[_0xcac515(0xed)]=_0xcac515(0xec);
1
+ 'use strict';function _0x8cdd(_0x1f68ac,_0x5982fc){var _0x5060f5=_0x5060();return _0x8cdd=function(_0x8cdd14,_0x505eff){_0x8cdd14=_0x8cdd14-0xc1;var _0x5ae25b=_0x5060f5[_0x8cdd14];return _0x5ae25b;},_0x8cdd(_0x1f68ac,_0x5982fc);}var _0x3ff87e=_0x8cdd;(function(_0x4c442f,_0x491d93){var _0x9222a7=_0x8cdd,_0x1d1497=_0x4c442f();while(!![]){try{var _0x130abc=parseInt(_0x9222a7(0xcd))/0x1+parseInt(_0x9222a7(0xc4))/0x2*(parseInt(_0x9222a7(0xc7))/0x3)+parseInt(_0x9222a7(0xca))/0x4+parseInt(_0x9222a7(0xcb))/0x5*(parseInt(_0x9222a7(0xc8))/0x6)+-parseInt(_0x9222a7(0xc3))/0x7+-parseInt(_0x9222a7(0xc6))/0x8*(parseInt(_0x9222a7(0xc9))/0x9)+parseInt(_0x9222a7(0xce))/0xa;if(_0x130abc===_0x491d93)break;else _0x1d1497['push'](_0x1d1497['shift']());}catch(_0xd81150){_0x1d1497['push'](_0x1d1497['shift']());}}}(_0x5060,0xae2cb));function _0x5060(){var _0x4ac21c=['51576PnRSpe','6198ZYhoYe','259764mTGYRv','1107rzrqyI','1853384iwHJoq','35jhluXT','\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\x20if\x20scope\x20==\x20\x22\x22\x20||\x20scope\x20==\x20\x22/\x22\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20\x22./\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20let\x20startUrl\x20=\x20Bundle.main.url(forResource:\x20start_url,\x20withExtension:\x20\x22\x22,\x20subdirectory:\x20\x22\x22)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20start_url\x20=\x20startUrl!.absoluteString\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20scope\x20=\x20URL(string:\x20scope,\x20relativeTo:\x20startUrl)!.absoluteString\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\x0a\x20\x20\x20\x20func\x20getLocalResourceURL(url:\x20String)\x20->\x20String\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20path\x20=\x20String(url.split(separator:\x20\x22file://\x22).first!.split(separator:\x20\x22?\x22).first!)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20newUrl\x20=\x20URL(string:\x20url)\x0a\x20\x20\x20\x20\x20\x20\x20\x20let\x20fileManager\x20=\x20FileManager.default\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20fileManager.fileExists(atPath:\x20newUrl!.path)\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\x20var\x20resource:\x20String\x20=\x20Bundle.main.url(forResource:\x20newUrl?.path,\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\x20if\x20newUrl?.query()\x20!=\x20nil\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22?\x22\x20+\x20(newUrl?.query())!\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20newUrl?.fragment()\x20!=\x20nil\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20resource\x20+=\x20\x22#\x22\x20+\x20(newUrl?.fragment())!\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\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\x20\x20\x20\x20case\x20fullscreen\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','399696UuuDZM','3900640lTerti','manifestSwiftTemplate','defineProperty','4209702GBMrZo','534MKTfJE','__esModule'];_0x5060=function(){return _0x4ac21c;};return _0x5060();}Object[_0x3ff87e(0xc2)](exports,_0x3ff87e(0xc5),{'value':!![]}),exports[_0x3ff87e(0xc1)]=void 0x0,exports[_0x3ff87e(0xc1)]=_0x3ff87e(0xcc);
@@ -1 +1 @@
1
- 'use strict';const _0x3afdca=_0xd3fe;function _0x1150(){const _0x2cdab9=['log','EXPORT\x20SUCCEEDED','scheme','start\x20archive','PROJECT_EXPORT_DIRECTORY','/web-spatial.xcodeproj','start\x20export','\x20-scheme\x20','clean','cwd','web-spatial','output','allowProvisioningUpdates','2426220NvhmwU','destination','PROJECT_BUILD_DIRECTORY','-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------','copyDir','-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------','4VEYXHV','path','archive','\x20-archivePath\x20','9330880TeTEoa','204UuKFQZ','\x20-allowProvisioningUpdates','existsSync','toString','2170755MXwaKv','7574cfOIUM','\x20-exportOptionsPlist\x20','XcodebuildCMD','child_process','528TmUzCG','indexOf','list','mkdirSync','16KnbbdH','\x20archive','1OtMlaC','defineProperty','6402395MepAHd','project','\x20-destination\x20\x27','__esModule','line','ExportOptions.plist','ARCHIVE\x20SUCCEEDED','PROJECT_DIRECTORY','100848AsoQZt','join','1442001FdqiBu'];_0x1150=function(){return _0x2cdab9;};return _0x1150();}(function(_0x1fe0dc,_0x33b756){const _0x2092c7=_0xd3fe,_0xbf5f56=_0x1fe0dc();while(!![]){try{const _0x5c04f0=-parseInt(_0x2092c7(0x1cb))/0x1*(-parseInt(_0x2092c7(0x1b1))/0x2)+parseInt(_0x2092c7(0x1d5))/0x3+parseInt(_0x2092c7(0x1b7))/0x4*(parseInt(_0x2092c7(0x1cd))/0x5)+-parseInt(_0x2092c7(0x1c5))/0x6*(parseInt(_0x2092c7(0x1c1))/0x7)+-parseInt(_0x2092c7(0x1c9))/0x8*(parseInt(_0x2092c7(0x1c0))/0x9)+parseInt(_0x2092c7(0x1bb))/0xa+parseInt(_0x2092c7(0x1d7))/0xb*(-parseInt(_0x2092c7(0x1bc))/0xc);if(_0x5c04f0===_0x33b756)break;else _0xbf5f56['push'](_0xbf5f56['shift']());}catch(_0x1b9042){_0xbf5f56['push'](_0xbf5f56['shift']());}}}(_0x1150,0x9fb3c));Object[_0x3afdca(0x1cc)](exports,_0x3afdca(0x1d0),{'value':!![]}),exports[_0x3afdca(0x1c3)]=void 0x0;const fs=require('fs'),path_1=require(_0x3afdca(0x1b8)),resource_1=require('../resource'),semver_1=require('semver'),file_1=require('../resource/file'),{execSync,exec}=require(_0x3afdca(0x1c4));function _0xd3fe(_0x27d439,_0x4b4c74){const _0x11508a=_0x1150();return _0xd3fe=function(_0xd3fecb,_0x4d5a6b){_0xd3fecb=_0xd3fecb-0x1b1;let _0x707c07=_0x11508a[_0xd3fecb];return _0x707c07;},_0xd3fe(_0x27d439,_0x4b4c74);}class Xcodebuild{static async[_0x3afdca(0x1ce)](){const _0x325c8b=_0x3afdca;try{await new Promise((_0x1f48b9,_0x534ba9)=>{const _0x575f30=_0xd3fe,_0x480b56=resource_1[_0x575f30(0x1d4)]+_0x575f30(0x1dd),_0x2bdc0e=execSync(new XcodebuildCMD()[_0x575f30(0x1ce)](_0x480b56)[_0x575f30(0x1c7)]()[_0x575f30(0x1d1)]);console[_0x575f30(0x1d8)](_0x2bdc0e['toString']()),_0x1f48b9(_0x2bdc0e);});}catch(_0x310ad1){console[_0x325c8b(0x1d8)](_0x310ad1);}}static async[_0x3afdca(0x1c7)](){const _0x83200e=_0x3afdca;try{await new Promise((_0x4d3473,_0x3e5eb8)=>{const _0xf0e5e0=_0xd3fe,_0x46ffc2=resource_1[_0xf0e5e0(0x1d4)]+_0xf0e5e0(0x1dd),_0x4b18f1=execSync(new XcodebuildCMD()[_0xf0e5e0(0x1ce)](_0x46ffc2)[_0xf0e5e0(0x1c7)]()[_0xf0e5e0(0x1d1)]);console[_0xf0e5e0(0x1d8)](_0x4b18f1[_0xf0e5e0(0x1bf)]()),_0x4d3473(_0x4b18f1);});}catch(_0x33cf1e){console[_0x83200e(0x1d8)](_0x33cf1e);}}static async[_0x3afdca(0x1b9)](_0x4988cc){const _0x48b1d9=_0x3afdca;try{return console[_0x48b1d9(0x1d8)](_0x48b1d9(0x1db)),!fs['existsSync'](resource_1[_0x48b1d9(0x1dc)])&&fs[_0x48b1d9(0x1c8)](resource_1['PROJECT_EXPORT_DIRECTORY'],{'recursive':!![]}),await new Promise((_0x34a090,_0x1d5f52)=>{const _0x43027a=_0x48b1d9,_0x32bfad=resource_1['PROJECT_DIRECTORY']+_0x43027a(0x1dd),_0x4337cf=execSync(new XcodebuildCMD()[_0x43027a(0x1ce)](_0x32bfad)['scheme'](_0x43027a(0x1e2))['archive']((0x0,path_1['join'])(resource_1['PROJECT_BUILD_DIRECTORY'],'./pack'))[_0x43027a(0x1e0)]()['line']);let _0x334e5d=_0x4337cf[_0x43027a(0x1bf)]();if(_0x334e5d[_0x43027a(0x1c6)](_0x43027a(0x1d3))>0x0){console['log'](_0x43027a(0x1b6)),console[_0x43027a(0x1d8)](_0x43027a(0x1de));const _0x356e8c=execSync(new XcodebuildCMD()[_0x43027a(0x1e3)]((0x0,path_1['join'])(resource_1[_0x43027a(0x1b3)],'pack.xcarchive'),resource_1[_0x43027a(0x1dc)],(0x0,path_1['join'])(resource_1['PROJECT_BUILD_DIRECTORY'],_0x43027a(0x1d2)))[_0x43027a(0x1e4)]()[_0x43027a(0x1d1)]);_0x334e5d=_0x356e8c[_0x43027a(0x1bf)]();if(_0x334e5d[_0x43027a(0x1c6)](_0x43027a(0x1d9))>0x0){const _0x4faa9f=_0x4988cc!==null&&_0x4988cc!==void 0x0?_0x4988cc:'./build',_0x2e2306=(0x0,path_1[_0x43027a(0x1d6)])(process[_0x43027a(0x1e1)](),_0x4faa9f);!fs[_0x43027a(0x1be)](_0x2e2306)&&fs[_0x43027a(0x1c8)](_0x2e2306,{'recursive':!![]}),(0x0,file_1[_0x43027a(0x1b5)])(resource_1[_0x43027a(0x1dc)],_0x2e2306),console[_0x43027a(0x1d8)](_0x43027a(0x1b4)),_0x34a090(!![]);}(0x0,semver_1['clean'])(resource_1[_0x43027a(0x1b3)]);}_0x34a090(![]);});}catch(_0x2099fe){console[_0x48b1d9(0x1d8)](_0x2099fe);}}}exports['default']=Xcodebuild;class XcodebuildCMD{constructor(){const _0x2890f0=_0x3afdca;this[_0x2890f0(0x1d1)]='xcodebuild';}[_0x3afdca(0x1ce)](_0x37480b){const _0x251474=_0x3afdca;return this[_0x251474(0x1d1)]+='\x20-project\x20'+_0x37480b,this;}['list'](){const _0x13df82=_0x3afdca;return this[_0x13df82(0x1d1)]+='\x20-list',this;}[_0x3afdca(0x1da)](_0x27bd21){const _0x5a1e11=_0x3afdca;return this['line']+=_0x5a1e11(0x1df)+_0x27bd21,this;}[_0x3afdca(0x1b9)](_0x1d6ae9){const _0x1cc39f=_0x3afdca;return this[_0x1cc39f(0x1d1)]+=_0x1cc39f(0x1ba)+_0x1d6ae9+_0x1cc39f(0x1ca),this;}[_0x3afdca(0x1e4)](){const _0x4d5616=_0x3afdca;return this[_0x4d5616(0x1d1)]+=_0x4d5616(0x1bd),this;}[_0x3afdca(0x1b2)](_0x36b7f2){const _0x5863c7=_0x3afdca;return this['line']+=_0x5863c7(0x1cf)+_0x36b7f2+'\x27',this;}[_0x3afdca(0x1e3)](_0x78020f,_0x3179ad,_0x479211){const _0x294519=_0x3afdca;return this[_0x294519(0x1d1)]+='\x20-exportArchive\x20-archivePath\x20'+_0x78020f+'\x20-exportPath\x20'+_0x3179ad+_0x294519(0x1c2)+_0x479211,this;}[_0x3afdca(0x1e0)](){const _0xf843ed=_0x3afdca;return this[_0xf843ed(0x1d1)]+='\x20clean',this;}}exports['XcodebuildCMD']=XcodebuildCMD;
1
+ 'use strict';const _0x11f08c=_0x1793;(function(_0xb0b857,_0x571251){const _0x500e8b=_0x1793,_0x266997=_0xb0b857();while(!![]){try{const _0x232913=-parseInt(_0x500e8b(0x114))/0x1+-parseInt(_0x500e8b(0x13f))/0x2+-parseInt(_0x500e8b(0x11a))/0x3*(-parseInt(_0x500e8b(0x140))/0x4)+parseInt(_0x500e8b(0x142))/0x5*(parseInt(_0x500e8b(0x131))/0x6)+-parseInt(_0x500e8b(0x13e))/0x7+-parseInt(_0x500e8b(0x117))/0x8*(parseInt(_0x500e8b(0x13d))/0x9)+-parseInt(_0x500e8b(0x11e))/0xa*(-parseInt(_0x500e8b(0x143))/0xb);if(_0x232913===_0x571251)break;else _0x266997['push'](_0x266997['shift']());}catch(_0x5b844d){_0x266997['push'](_0x266997['shift']());}}}(_0x1d9d,0xe0152));function _0x1793(_0x239846,_0x20c3e6){const _0x1d9d25=_0x1d9d();return _0x1793=function(_0x179356,_0x1ec145){_0x179356=_0x179356-0x113;let _0x24b315=_0x1d9d25[_0x179356];return _0x24b315;},_0x1793(_0x239846,_0x20c3e6);}Object['defineProperty'](exports,_0x11f08c(0x11c),{'value':!![]}),exports[_0x11f08c(0x13a)]=void 0x0;const fs=require('fs'),path_1=require(_0x11f08c(0x144)),resource_1=require(_0x11f08c(0x113)),semver_1=require('semver'),file_1=require(_0x11f08c(0x130)),{execSync,exec}=require(_0x11f08c(0x115));class Xcodebuild{static async['project'](){const _0x2ff5a4=_0x11f08c;try{await new Promise((_0x34bada,_0x5e5fcc)=>{const _0x5e1e2f=_0x1793,_0x1e4f11=resource_1[_0x5e1e2f(0x137)]+_0x5e1e2f(0x12e),_0xcf8fc=execSync(new XcodebuildCMD()[_0x5e1e2f(0x126)](_0x1e4f11)[_0x5e1e2f(0x148)]()['line']);console[_0x5e1e2f(0x123)](_0xcf8fc[_0x5e1e2f(0x125)]()),_0x34bada(_0xcf8fc);});}catch(_0x3f19d4){console[_0x2ff5a4(0x123)](_0x3f19d4);}}static async[_0x11f08c(0x148)](){const _0x771b97=_0x11f08c;try{await new Promise((_0x1c18ce,_0x1e1877)=>{const _0x337fc2=_0x1793,_0x983b00=resource_1[_0x337fc2(0x137)]+_0x337fc2(0x12e),_0x4ee472=execSync(new XcodebuildCMD()[_0x337fc2(0x126)](_0x983b00)[_0x337fc2(0x148)]()[_0x337fc2(0x132)]);console['log'](_0x4ee472[_0x337fc2(0x125)]()),_0x1c18ce(_0x4ee472);});}catch(_0x2939b3){console[_0x771b97(0x123)](_0x2939b3);}}static async[_0x11f08c(0x12a)](_0x3e5258){const _0x54bb4c=_0x11f08c;try{return console['log'](_0x54bb4c(0x122)),!fs[_0x54bb4c(0x121)](resource_1[_0x54bb4c(0x138)])&&fs[_0x54bb4c(0x13b)](resource_1['PROJECT_EXPORT_DIRECTORY'],{'recursive':!![]}),await new Promise((_0x5b175a,_0x15ba47)=>{const _0x1086f6=_0x54bb4c,_0x37afc9=resource_1[_0x1086f6(0x137)]+_0x1086f6(0x12e),_0x1ac927=execSync(new XcodebuildCMD()['project'](_0x37afc9)[_0x1086f6(0x147)](_0x1086f6(0x11b))['archive']((0x0,path_1[_0x1086f6(0x120)])(resource_1[_0x1086f6(0x11f)],'./pack'))[_0x1086f6(0x145)]()[_0x1086f6(0x132)]);let _0x227d7b=_0x1ac927[_0x1086f6(0x125)]();if(_0x227d7b[_0x1086f6(0x128)](_0x1086f6(0x133))>0x0){console[_0x1086f6(0x123)]('-------------------\x20ARCHIVE\x20SUCCEEDED\x20-------------------'),console['log'](_0x1086f6(0x119));const _0x5396d1=execSync(new XcodebuildCMD()[_0x1086f6(0x127)]((0x0,path_1[_0x1086f6(0x120)])(resource_1[_0x1086f6(0x11f)],_0x1086f6(0x12d)),resource_1[_0x1086f6(0x138)],(0x0,path_1[_0x1086f6(0x120)])(resource_1['PROJECT_BUILD_DIRECTORY'],_0x1086f6(0x118)))[_0x1086f6(0x136)]()[_0x1086f6(0x132)]);_0x227d7b=_0x5396d1[_0x1086f6(0x125)]();if(_0x227d7b['indexOf'](_0x1086f6(0x139))>0x0){const _0x3c20ed=_0x3e5258!==null&&_0x3e5258!==void 0x0?_0x3e5258:_0x1086f6(0x134),_0x54b698=(0x0,path_1[_0x1086f6(0x120)])(process[_0x1086f6(0x11d)](),_0x3c20ed);!fs[_0x1086f6(0x121)](_0x54b698)&&fs[_0x1086f6(0x13b)](_0x54b698,{'recursive':!![]}),(0x0,file_1[_0x1086f6(0x124)])(resource_1[_0x1086f6(0x138)],_0x54b698),console['log'](_0x1086f6(0x135)),_0x5b175a(!![]);}(0x0,semver_1[_0x1086f6(0x145)])(resource_1[_0x1086f6(0x11f)]);}_0x5b175a(![]);});}catch(_0x11ed31){console[_0x54bb4c(0x123)](_0x11ed31);}}}exports[_0x11f08c(0x12c)]=Xcodebuild;class XcodebuildCMD{constructor(){const _0x42f44e=_0x11f08c;this['line']=_0x42f44e(0x116);}['project'](_0x174bb7){const _0x20f49c=_0x11f08c;return this[_0x20f49c(0x132)]+='\x20-project\x20'+_0x174bb7,this;}['list'](){const _0x1fd7ba=_0x11f08c;return this[_0x1fd7ba(0x132)]+=_0x1fd7ba(0x12f),this;}['scheme'](_0xa33b85){const _0x4c0688=_0x11f08c;return this[_0x4c0688(0x132)]+='\x20-scheme\x20'+_0xa33b85,this;}[_0x11f08c(0x12a)](_0x29fb20){const _0x53e749=_0x11f08c;return this[_0x53e749(0x132)]+=_0x53e749(0x129)+_0x29fb20+_0x53e749(0x12b),this;}['allowProvisioningUpdates'](){const _0x6fb77d=_0x11f08c;return this[_0x6fb77d(0x132)]+=_0x6fb77d(0x141),this;}['destination'](_0x231422){const _0x3279ca=_0x11f08c;return this[_0x3279ca(0x132)]+=_0x3279ca(0x14a)+_0x231422+'\x27',this;}[_0x11f08c(0x127)](_0x43ef5a,_0x387126,_0x2ad305){const _0x5e167=_0x11f08c;return this[_0x5e167(0x132)]+=_0x5e167(0x146)+_0x43ef5a+_0x5e167(0x149)+_0x387126+'\x20-exportOptionsPlist\x20'+_0x2ad305,this;}[_0x11f08c(0x145)](){const _0x4981e0=_0x11f08c;return this[_0x4981e0(0x132)]+=_0x4981e0(0x13c),this;}}function _0x1d9d(){const _0x1164ed=['start\x20export','12BHXBJX','web-spatial','__esModule','cwd','14383210vQCXNl','PROJECT_BUILD_DIRECTORY','join','existsSync','start\x20archive','log','copyDir','toString','project','output','indexOf','\x20-archivePath\x20','archive','\x20archive','default','pack.xcarchive','/web-spatial.xcodeproj','\x20-list','../resource/file','174uQZYDj','line','ARCHIVE\x20SUCCEEDED','./build','-------------------\x20EXPORT\x20SUCCEEDED\x20-------------------','allowProvisioningUpdates','PROJECT_DIRECTORY','PROJECT_EXPORT_DIRECTORY','EXPORT\x20SUCCEEDED','XcodebuildCMD','mkdirSync','\x20clean','15296778zqVvwA','2418990bZPepT','2908894cDOSzY','1415712xlIKPg','\x20-allowProvisioningUpdates','231505yrCWCT','22mfSzcV','path','clean','\x20-exportArchive\x20-archivePath\x20','scheme','list','\x20-exportPath\x20','\x20-destination\x20\x27','../resource','1217582tRsUxn','child_process','xcodebuild','8TxWWXX','ExportOptions.plist'];_0x1d9d=function(){return _0x1164ed;};return _0x1d9d();}exports[_0x11f08c(0x13a)]=XcodebuildCMD;
@@ -1 +1 @@
1
- 'use strict';const _0x2ba80f=_0x57d6;(function(_0x3b2b96,_0x3a16fd){const _0x3d85f8=_0x57d6,_0xf5a9f3=_0x3b2b96();while(!![]){try{const _0x7b9245=parseInt(_0x3d85f8(0x1cc))/0x1+-parseInt(_0x3d85f8(0x1af))/0x2*(parseInt(_0x3d85f8(0x183))/0x3)+-parseInt(_0x3d85f8(0x179))/0x4*(-parseInt(_0x3d85f8(0x1d9))/0x5)+-parseInt(_0x3d85f8(0x178))/0x6+parseInt(_0x3d85f8(0x18c))/0x7+-parseInt(_0x3d85f8(0x1d2))/0x8+parseInt(_0x3d85f8(0x1c7))/0x9;if(_0x7b9245===_0x3a16fd)break;else _0xf5a9f3['push'](_0xf5a9f3['shift']());}catch(_0x14811d){_0xf5a9f3['push'](_0xf5a9f3['shift']());}}}(_0x3861,0xb0f34));function _0x3861(){const _0x4e7919=['name','169015jkArTU','1280','modifySwift','../resource/load','path','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','10150792vMmIrV','mkdirSync','images','PBXGroup','</string>','manifestSwiftTemplate','pbxXCConfigurationList','978130xZvVkz','stringify','value','<?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','writeFileSync','parseSync','buildConfigurations','start_url','START_URL','join','test','updateTeamId','icon.','7263192UCeLOi','20keYxFL','Contents.json','getMIME','mainScene','ImageHelper','PRODUCT_BUNDLE_IDENTIFIER','./manifestSwiftTemplate','updateDeeplink','minimal-ui','resizability','3UvSOtP','version','hash','SceneResizability','project','bindIcon','Description','existsSync','image/','3427907axijEt','object','../resource','<?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>&lt;none&gt;</string>\x0a</dict>\x0a</plist>','SCOPE','url','icon.png','updateExportOptions','pbxXCBuildConfigurationSection','log','fixProjectFunction','1.0','./web-spatial/libs/webView/manifest.swift','modify','PROJECT_DIRECTORY','<string>','AppID','display','xcode','SceneWidth','protocol_handlers','teamId','ExportOptions.plist','defineProperty','pbxGroupByName','USE_MAIN_SCENE','release-testing','json','buildSettings','PWAProtocol(protocolValue:\x20\x22','replace','includes','debugging','BACK_APPICON_DIRECTORY','\x22automatic\x22','394274fWlSms','DEEPLINK','\x22),','loadJsonFromDisk','buildType','PROJECT_BUILD_DIRECTORY','protocol','updateVersion','.minimal','manifestInfo','CURRENT_PROJECT_VERSION','updateBuildProperty','bindManifestInfo','AppName','writeAsync','push','split','BUILDTYPE','false','filename','\x22,\x20url:\x20\x22','width','icon','objects','15880140IMaBuN','SceneHeight','description','DEVELOPMENT_TEAM'];_0x3861=function(){return _0x4e7919;};return _0x3861();}function _0x57d6(_0x3321cf,_0x44d6ea){const _0x3861e2=_0x3861();return _0x57d6=function(_0x57d6c1,_0x265b9f){_0x57d6c1=_0x57d6c1-0x16d;let _0x1262db=_0x3861e2[_0x57d6c1];return _0x1262db;},_0x57d6(_0x3321cf,_0x44d6ea);}Object[_0x2ba80f(0x1a3)](exports,'__esModule',{'value':!![]});const fs=require('fs'),resource_1=require(_0x2ba80f(0x18e)),path_1=require(_0x2ba80f(0x1d0)),load_1=require(_0x2ba80f(0x1cf)),imageHelper_1=require('../resource/imageHelper'),manifestSwiftTemplate_1=require(_0x2ba80f(0x17f)),xcode=require(_0x2ba80f(0x19e)),exportOptionsXML=_0x2ba80f(0x18f),infoPlistXML=_0x2ba80f(0x16e);let useExportOptionsXML='';class XcodeProject{static async[_0x2ba80f(0x199)](_0x303ffa,_0x29bfd4,_0x132705=![]){const _0x4b189e=_0x2ba80f;let _0x4a5cb9=xcode['project'](_0x303ffa);this[_0x4b189e(0x196)](_0x4a5cb9),_0x4a5cb9[_0x4b189e(0x170)]();let _0x1eadbd=_0x29bfd4[_0x4b189e(0x1b3)];const _0x359318=[_0x4b189e(0x1a6),'app-store-connect',_0x4b189e(0x1ac),'enterprise'];useExportOptionsXML=exportOptionsXML['replace'](_0x4b189e(0x1c0),_0x359318['includes'](_0x1eadbd)?_0x1eadbd:'release-testing');_0x29bfd4[_0x4b189e(0x1a1)]&&this[_0x4b189e(0x176)](_0x4a5cb9,_0x29bfd4[_0x4b189e(0x1a1)]);this[_0x4b189e(0x193)]();if(_0x29bfd4[_0x4b189e(0x1c5)])await this[_0x4b189e(0x188)](_0x29bfd4[_0x4b189e(0x1c5)]);this[_0x4b189e(0x1bb)](_0x4a5cb9,_0x29bfd4[_0x4b189e(0x1b8)][_0x4b189e(0x1a7)],_0x132705);_0x29bfd4[_0x4b189e(0x184)]?this[_0x4b189e(0x1b6)](_0x4a5cb9,_0x29bfd4['version']):this[_0x4b189e(0x1b6)](_0x4a5cb9,_0x4b189e(0x197));try{fs[_0x4b189e(0x16f)](_0x303ffa,_0x4a5cb9['writeSync']());}catch(_0x1a7cd8){console[_0x4b189e(0x195)](_0x1a7cd8);}}static[_0x2ba80f(0x196)](_0x6bf598){const _0x2c5561=_0x2ba80f;_0x6bf598[_0x2c5561(0x1a4)]=function(_0x65af0e){const _0x3382ac=_0x2c5561;var _0x2986c1=this[_0x3382ac(0x185)][_0x3382ac(0x187)][_0x3382ac(0x1c6)][_0x3382ac(0x1d5)],_0x26c4d6,_0x5f250d;for(_0x26c4d6 in _0x2986c1){if(!/_comment$/[_0x3382ac(0x175)](_0x26c4d6))continue;if(_0x2986c1[_0x26c4d6]==_0x65af0e)return _0x5f250d=_0x26c4d6[_0x3382ac(0x1bf)](/_comment$/)[0x0],_0x2986c1[_0x5f250d];}return![];},_0x6bf598[_0x2c5561(0x1ba)]=function(_0x3bd1b6,_0x137402,_0x281a64,_0x469a1b){const _0x4dcbf1=_0x2c5561;let _0x36d564=[];const _0x5ad26a=/_comment$/;if(_0x469a1b){const _0x3489c8=this['pbxTargetByName'](_0x469a1b),_0x287deb=_0x3489c8&&_0x3489c8['buildConfigurationList'],_0x1340ed=this[_0x4dcbf1(0x1d8)]();for(const _0x4aedf2 in _0x1340ed){if(!_0x5ad26a[_0x4dcbf1(0x175)](_0x4aedf2)&&_0x287deb===_0x4aedf2){const _0xf80cbd=_0x1340ed[_0x4aedf2][_0x4dcbf1(0x171)];for(const _0xd8c2bb of _0xf80cbd){_0x36d564[_0x4dcbf1(0x1be)](_0xd8c2bb[_0x4dcbf1(0x16d)]);}break;}}}var _0x53a602=this[_0x4dcbf1(0x194)]();for(var _0x313ce5 in _0x53a602){if(!_0x5ad26a[_0x4dcbf1(0x175)](_0x313ce5)){if(_0x469a1b&&!_0x36d564[_0x4dcbf1(0x1ab)](_0x313ce5))continue;var _0x18a7c0=_0x53a602[_0x313ce5];(_0x281a64&&_0x18a7c0[_0x4dcbf1(0x1cb)]===_0x281a64||!_0x281a64)&&_0x18a7c0[_0x4dcbf1(0x1a8)][_0x3bd1b6]&&(_0x18a7c0[_0x4dcbf1(0x1a8)][_0x3bd1b6]=_0x137402);}}};}static async[_0x2ba80f(0x188)](_0x3698f3){const _0x122354=_0x2ba80f;if(_0x3698f3){const _0x4afb4c=(0x0,path_1[_0x122354(0x174)])(resource_1[_0x122354(0x19a)],resource_1[_0x122354(0x1ad)]),_0xaae7bd=(0x0,path_1['join'])(_0x4afb4c,_0x122354(0x17a)),_0x2ea9f7=_0x122354(0x177)+_0x3698f3[_0x122354(0x17b)]()[_0x122354(0x1aa)](_0x122354(0x18b),''),_0x2b6216=(0x0,path_1[_0x122354(0x174)])(_0x4afb4c,_0x2ea9f7);let _0x38b5ae=await(0x0,load_1['loadJsonFromDisk'])(_0xaae7bd);_0x38b5ae[_0x122354(0x1d4)][0x0][_0x122354(0x1c2)]=_0x2ea9f7,await _0x3698f3[_0x122354(0x1bd)](_0x2b6216),await fs['writeFileSync'](_0xaae7bd,JSON[_0x122354(0x1da)](_0x38b5ae));const _0x5295f9=(0x0,path_1[_0x122354(0x174)])(resource_1[_0x122354(0x19a)],resource_1['MIDDLE_APPICON_DIRECTORY']),_0x4db3c4=(0x0,path_1[_0x122354(0x174)])(_0x5295f9,'Contents.json'),_0x127b0c=_0x122354(0x192),_0x3290f1=(0x0,path_1[_0x122354(0x174)])(_0x5295f9,_0x127b0c);let _0x5a5e50=await(0x0,load_1[_0x122354(0x1b2)])(_0x4db3c4),_0x319a45=imageHelper_1[_0x122354(0x17d)]['createImg'](0x200);_0x5a5e50[_0x122354(0x1d4)][0x0][_0x122354(0x1c2)]=_0x127b0c,await _0x319a45[_0x122354(0x1bd)](_0x3290f1),await fs[_0x122354(0x16f)](_0x4db3c4,JSON[_0x122354(0x1da)](_0x5a5e50));}}static['updateTeamId'](_0x956cc8,_0xa558a7){const _0xef2033=_0x2ba80f;_0x956cc8['updateBuildProperty'](_0xef2033(0x1ca),_0xa558a7),useExportOptionsXML=useExportOptionsXML[_0xef2033(0x1aa)]('YOURTEAMID',_0xa558a7);}static[_0x2ba80f(0x193)](){const _0x54c0e6=_0x2ba80f;!fs[_0x54c0e6(0x18a)](resource_1[_0x54c0e6(0x1b4)])&&fs[_0x54c0e6(0x1d3)](resource_1['PROJECT_BUILD_DIRECTORY'],{'recursive':!![]}),fs[_0x54c0e6(0x16f)]((0x0,path_1[_0x54c0e6(0x174)])(resource_1[_0x54c0e6(0x1b4)],_0x54c0e6(0x1a2)),useExportOptionsXML);}static[_0x2ba80f(0x1bb)](_0x1cb7db,_0x3c7c7f,_0x402a75=![]){const _0x3d6833=_0x2ba80f;var _0x150e96;_0x1cb7db['updateProductName'](_0x3c7c7f[_0x3d6833(0x1cb)]),_0x3c7c7f['id']&&!_0x402a75&&_0x1cb7db[_0x3d6833(0x1ba)](_0x3d6833(0x17e),'\x22'+_0x3c7c7f['id']+'\x22'),this[_0x3d6833(0x180)]((_0x150e96=_0x3c7c7f['protocol_handlers'])!==null&&_0x150e96!==void 0x0?_0x150e96:[]),this[_0x3d6833(0x1ce)](_0x3c7c7f);}static['updateVersion'](_0x243cdf,_0x27bc77){const _0xe3afe8=_0x2ba80f;_0x243cdf['updateBuildProperty'](_0xe3afe8(0x1b9),_0x27bc77);}static['updateDeeplink'](_0x598477){const _0x4859ad=_0x2ba80f;let _0x3537e6=(0x0,path_1[_0x4859ad(0x174)])(resource_1[_0x4859ad(0x19a)],'./web-spatial/Info.plist'),_0x35569e='';for(let _0x14770a=0x0;_0x14770a<_0x598477['length'];_0x14770a++){_0x35569e+=_0x4859ad(0x19b)+_0x598477[_0x14770a]['protocol']+_0x4859ad(0x1d6);}const _0x491147=infoPlistXML[_0x4859ad(0x1aa)](_0x4859ad(0x1b0),_0x35569e);fs['writeFileSync'](_0x3537e6,_0x491147);}static['modifySwift'](_0x46ff73){const _0x10f881=_0x2ba80f,_0x431aa7=(0x0,path_1[_0x10f881(0x174)])(resource_1[_0x10f881(0x19a)],_0x10f881(0x198));let _0x4341d8=manifestSwiftTemplate_1[_0x10f881(0x1d7)];_0x4341d8=_0x4341d8['replace'](_0x10f881(0x173),_0x46ff73[_0x10f881(0x172)]),_0x4341d8=_0x4341d8['replace'](_0x10f881(0x190),_0x46ff73['scope']),_0x4341d8=_0x4341d8[_0x10f881(0x1aa)](_0x10f881(0x1bc),_0x46ff73['name']),_0x4341d8=_0x4341d8[_0x10f881(0x1aa)](_0x10f881(0x189),_0x46ff73[_0x10f881(0x1c9)]),_0x4341d8=_0x4341d8[_0x10f881(0x1aa)](_0x10f881(0x19c),_0x46ff73['id']),_0x4341d8=_0x4341d8['replace'](_0x10f881(0x1b7),_0x46ff73[_0x10f881(0x19d)]==_0x10f881(0x181)?_0x10f881(0x1b7):'.'+_0x46ff73[_0x10f881(0x19d)]);if(_0x46ff73[_0x10f881(0x1a0)]){let _0x414945='';for(let _0x499dad=0x0;_0x499dad<_0x46ff73['protocol_handlers']['length'];_0x499dad++){_0x414945+=_0x10f881(0x1a9)+_0x46ff73['protocol_handlers'][_0x499dad][_0x10f881(0x1b5)]+_0x10f881(0x1c3)+_0x46ff73[_0x10f881(0x1a0)][_0x499dad][_0x10f881(0x191)]+_0x10f881(0x1b1);}_0x4341d8=_0x4341d8[_0x10f881(0x1aa)](_0x10f881(0x1d1),_0x414945);}typeof _0x46ff73[_0x10f881(0x17c)]===_0x10f881(0x18d)?(_0x4341d8=_0x4341d8[_0x10f881(0x1aa)](_0x10f881(0x19f),_0x46ff73[_0x10f881(0x17c)]['defaultSize'][_0x10f881(0x1c4)]),_0x4341d8=_0x4341d8[_0x10f881(0x1aa)](_0x10f881(0x1c8),_0x46ff73['mainScene']['defaultSize']['height']),_0x4341d8=_0x4341d8[_0x10f881(0x1aa)](_0x10f881(0x186),'\x22'+_0x46ff73[_0x10f881(0x17c)][_0x10f881(0x182)]+'\x22'),_0x4341d8=_0x4341d8[_0x10f881(0x1aa)](_0x10f881(0x1a5),'true')):(_0x4341d8=_0x4341d8[_0x10f881(0x1aa)](_0x10f881(0x19f),_0x10f881(0x1cd)),_0x4341d8=_0x4341d8[_0x10f881(0x1aa)](_0x10f881(0x1c8),_0x10f881(0x1cd)),_0x4341d8=_0x4341d8['replace']('SceneResizability',_0x10f881(0x1ae)),_0x4341d8=_0x4341d8[_0x10f881(0x1aa)](_0x10f881(0x1a5),_0x10f881(0x1c1))),fs['writeFileSync'](_0x431aa7,_0x4341d8,'utf-8');}}exports['default']=XcodeProject;
1
+ 'use strict';function _0x49f8(){const _0x5a8e76=['writeAsync','buildSettings','parseSync','writeFileSync','split','<?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','YOURTEAMID','USE_MAIN_SCENE','BACK_APPICON_DIRECTORY','url','buildType','modify','length','updateTeamId','64930UTTATi','pbxGroupByName','585660wRqjAY','./web-spatial/libs/webView/manifest.swift','protocol_handlers','join','182005peVOyN','SceneWidth','false','defaultSize','PWAProtocol(protocolValue:\x20\x22\x22,\x20url:\x20\x22\x22)','manifestSwiftTemplate','PBXGroup','pbxXCConfigurationList','162gqeHtD','START_URL','.minimal','mkdirSync','MIDDLE_APPICON_DIRECTORY','value','width','PROJECT_BUILD_DIRECTORY','</string>','utf-8','mainScene','updateExportOptions','388940zXGYqq','description','pbxTargetByName','images','resizability','CURRENT_PROJECT_VERSION','enterprise','scope','minimal-ui','1581668RcNhCY','6TEoohf','updateBuildProperty','PROJECT_DIRECTORY','buildConfigurationList','206JjaTiK','ExportOptions.plist','updateDeeplink','json','../resource/load','bindManifestInfo','modifySwift','app-store-connect','filename','./manifestSwiftTemplate','debugging','icon.','default','AppName','<?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>&lt;none&gt;</string>\x0a</dict>\x0a</plist>','project','SceneResizability','writeSync','1486yzHykx','replace','21jEBdps','getMIME','objects','display','../resource/imageHelper','image/','<string>','stringify','ImageHelper','protocol','loadJsonFromDisk','name','xcode','start_url','__esModule','release-testing','DEEPLINK','object','includes','pbxXCBuildConfigurationSection','147912aYBBbJ','Contents.json','true','../resource','1280','bindIcon','\x22),','defineProperty','updateVersion','test','teamId','\x22,\x20url:\x20\x22','PRODUCT_BUNDLE_IDENTIFIER','Description','fixProjectFunction','SceneHeight'];_0x49f8=function(){return _0x5a8e76;};return _0x49f8();}const _0xb9c5d8=_0x36d3;(function(_0x352572,_0x5307f4){const _0x30f7b8=_0x36d3,_0x5c1857=_0x352572();while(!![]){try{const _0x217b76=-parseInt(_0x30f7b8(0x151))/0x1*(parseInt(_0x30f7b8(0x163))/0x2)+parseInt(_0x30f7b8(0x12b))/0x3+parseInt(_0x30f7b8(0x143))/0x4+-parseInt(_0x30f7b8(0x12f))/0x5*(-parseInt(_0x30f7b8(0x14d))/0x6)+parseInt(_0x30f7b8(0x165))/0x7*(-parseInt(_0x30f7b8(0x10b))/0x8)+-parseInt(_0x30f7b8(0x137))/0x9*(parseInt(_0x30f7b8(0x129))/0xa)+parseInt(_0x30f7b8(0x14c))/0xb;if(_0x217b76===_0x5307f4)break;else _0x5c1857['push'](_0x5c1857['shift']());}catch(_0x5190ef){_0x5c1857['push'](_0x5c1857['shift']());}}}(_0x49f8,0x23f2d));Object[_0xb9c5d8(0x112)](exports,_0xb9c5d8(0x105),{'value':!![]});function _0x36d3(_0x3b5b5b,_0x4de080){const _0x49f83f=_0x49f8();return _0x36d3=function(_0x36d325,_0x43d0a7){_0x36d325=_0x36d325-0xfb;let _0x2792b3=_0x49f83f[_0x36d325];return _0x2792b3;},_0x36d3(_0x3b5b5b,_0x4de080);}const fs=require('fs'),resource_1=require(_0xb9c5d8(0x10e)),path_1=require('path'),load_1=require(_0xb9c5d8(0x155)),imageHelper_1=require(_0xb9c5d8(0xfb)),manifestSwiftTemplate_1=require(_0xb9c5d8(0x15a)),xcode=require(_0xb9c5d8(0x103)),exportOptionsXML=_0xb9c5d8(0x15f),infoPlistXML=_0xb9c5d8(0x120);let useExportOptionsXML='';class XcodeProject{static async[_0xb9c5d8(0x126)](_0x41e7cd,_0x38df97,_0x340c9=![]){const _0x4a7e19=_0xb9c5d8;let _0x3d8094=xcode[_0x4a7e19(0x160)](_0x41e7cd);this[_0x4a7e19(0x119)](_0x3d8094),_0x3d8094[_0x4a7e19(0x11d)]();let _0x18b7f7=_0x38df97[_0x4a7e19(0x125)];const _0x4ba06a=[_0x4a7e19(0x106),_0x4a7e19(0x158),_0x4a7e19(0x15b),_0x4a7e19(0x149)];useExportOptionsXML=exportOptionsXML['replace']('BUILDTYPE',_0x4ba06a['includes'](_0x18b7f7)?_0x18b7f7:'release-testing');_0x38df97[_0x4a7e19(0x115)]&&this['updateTeamId'](_0x3d8094,_0x38df97[_0x4a7e19(0x115)]);this[_0x4a7e19(0x142)]();if(_0x38df97['icon'])await this[_0x4a7e19(0x110)](_0x38df97['icon']);this[_0x4a7e19(0x156)](_0x3d8094,_0x38df97['manifestInfo'][_0x4a7e19(0x154)],_0x340c9);_0x38df97['version']?this[_0x4a7e19(0x113)](_0x3d8094,_0x38df97['version']):this[_0x4a7e19(0x113)](_0x3d8094,'1.0');try{fs['writeFileSync'](_0x41e7cd,_0x3d8094[_0x4a7e19(0x162)]());}catch(_0x2ac6f2){console['log'](_0x2ac6f2);}}static[_0xb9c5d8(0x119)](_0x40fcf5){const _0x384206=_0xb9c5d8;_0x40fcf5[_0x384206(0x12a)]=function(_0x35a964){const _0xbcd6d=_0x384206;var _0x1c343c=this['hash']['project'][_0xbcd6d(0x167)][_0xbcd6d(0x135)],_0x4bc567,_0x1709e1;for(_0x4bc567 in _0x1c343c){if(!/_comment$/['test'](_0x4bc567))continue;if(_0x1c343c[_0x4bc567]==_0x35a964)return _0x1709e1=_0x4bc567[_0xbcd6d(0x11f)](/_comment$/)[0x0],_0x1c343c[_0x1709e1];}return![];},_0x40fcf5[_0x384206(0x14e)]=function(_0x26369d,_0x193d4f,_0x26273c,_0x3d91eb){const _0x357817=_0x384206;let _0x1e61e7=[];const _0x293100=/_comment$/;if(_0x3d91eb){const _0x4d4816=this[_0x357817(0x145)](_0x3d91eb),_0x398429=_0x4d4816&&_0x4d4816[_0x357817(0x150)],_0x3b050b=this[_0x357817(0x136)]();for(const _0x444724 in _0x3b050b){if(!_0x293100[_0x357817(0x114)](_0x444724)&&_0x398429===_0x444724){const _0x138c2b=_0x3b050b[_0x444724]['buildConfigurations'];for(const _0x1cfabe of _0x138c2b){_0x1e61e7['push'](_0x1cfabe[_0x357817(0x13c)]);}break;}}}var _0x506f55=this[_0x357817(0x10a)]();for(var _0xb0f070 in _0x506f55){if(!_0x293100[_0x357817(0x114)](_0xb0f070)){if(_0x3d91eb&&!_0x1e61e7[_0x357817(0x109)](_0xb0f070))continue;var _0x35b01b=_0x506f55[_0xb0f070];(_0x26273c&&_0x35b01b[_0x357817(0x102)]===_0x26273c||!_0x26273c)&&_0x35b01b[_0x357817(0x11c)][_0x26369d]&&(_0x35b01b[_0x357817(0x11c)][_0x26369d]=_0x193d4f);}}};}static async[_0xb9c5d8(0x110)](_0x18ba60){const _0x41f2ef=_0xb9c5d8;if(_0x18ba60){const _0x438838=(0x0,path_1[_0x41f2ef(0x12e)])(resource_1['PROJECT_DIRECTORY'],resource_1[_0x41f2ef(0x123)]),_0xa150a5=(0x0,path_1[_0x41f2ef(0x12e)])(_0x438838,_0x41f2ef(0x10c)),_0x3dd7f7=_0x41f2ef(0x15c)+_0x18ba60[_0x41f2ef(0x166)]()['replace'](_0x41f2ef(0xfc),''),_0x204552=(0x0,path_1['join'])(_0x438838,_0x3dd7f7);let _0x443af3=await(0x0,load_1[_0x41f2ef(0x101)])(_0xa150a5);_0x443af3[_0x41f2ef(0x146)][0x0][_0x41f2ef(0x159)]=_0x3dd7f7,await _0x18ba60[_0x41f2ef(0x11b)](_0x204552),await fs[_0x41f2ef(0x11e)](_0xa150a5,JSON[_0x41f2ef(0xfe)](_0x443af3));const _0x516901=(0x0,path_1['join'])(resource_1[_0x41f2ef(0x14f)],resource_1[_0x41f2ef(0x13b)]),_0x4f9433=(0x0,path_1[_0x41f2ef(0x12e)])(_0x516901,_0x41f2ef(0x10c)),_0x55336f='icon.png',_0x3021e1=(0x0,path_1[_0x41f2ef(0x12e)])(_0x516901,_0x55336f);let _0x2aa87d=await(0x0,load_1[_0x41f2ef(0x101)])(_0x4f9433),_0x565e9d=imageHelper_1[_0x41f2ef(0xff)]['createImg'](0x200);_0x2aa87d[_0x41f2ef(0x146)][0x0]['filename']=_0x55336f,await _0x565e9d[_0x41f2ef(0x11b)](_0x3021e1),await fs[_0x41f2ef(0x11e)](_0x4f9433,JSON[_0x41f2ef(0xfe)](_0x2aa87d));}}static[_0xb9c5d8(0x128)](_0x4725cb,_0x33a9b4){const _0x58d45c=_0xb9c5d8;_0x4725cb['updateBuildProperty']('DEVELOPMENT_TEAM',_0x33a9b4),useExportOptionsXML=useExportOptionsXML[_0x58d45c(0x164)](_0x58d45c(0x121),_0x33a9b4);}static['updateExportOptions'](){const _0x4a51b2=_0xb9c5d8;!fs['existsSync'](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs[_0x4a51b2(0x13a)](resource_1[_0x4a51b2(0x13e)],{'recursive':!![]}),fs['writeFileSync']((0x0,path_1['join'])(resource_1[_0x4a51b2(0x13e)],_0x4a51b2(0x152)),useExportOptionsXML);}static['bindManifestInfo'](_0xcbed67,_0x54cab9,_0x10db5b=![]){const _0x42918f=_0xb9c5d8;var _0x4bef20;_0xcbed67['updateProductName'](_0x54cab9[_0x42918f(0x102)]),_0x54cab9['id']&&!_0x10db5b&&_0xcbed67['updateBuildProperty'](_0x42918f(0x117),'\x22'+_0x54cab9['id']+'\x22'),this[_0x42918f(0x153)]((_0x4bef20=_0x54cab9['protocol_handlers'])!==null&&_0x4bef20!==void 0x0?_0x4bef20:[]),this[_0x42918f(0x157)](_0x54cab9);}static['updateVersion'](_0x112dad,_0x192c25){const _0x4b10e9=_0xb9c5d8;_0x112dad[_0x4b10e9(0x14e)](_0x4b10e9(0x148),_0x192c25);}static['updateDeeplink'](_0x3fb742){const _0x452fdb=_0xb9c5d8;let _0x1a402b=(0x0,path_1['join'])(resource_1[_0x452fdb(0x14f)],'./web-spatial/Info.plist'),_0x3e3814='';for(let _0xc62497=0x0;_0xc62497<_0x3fb742[_0x452fdb(0x127)];_0xc62497++){_0x3e3814+=_0x452fdb(0xfd)+_0x3fb742[_0xc62497][_0x452fdb(0x100)]+_0x452fdb(0x13f);}const _0x2bdd93=infoPlistXML[_0x452fdb(0x164)](_0x452fdb(0x107),_0x3e3814);fs[_0x452fdb(0x11e)](_0x1a402b,_0x2bdd93);}static['modifySwift'](_0x113014){const _0x3b3272=_0xb9c5d8,_0x44836d=(0x0,path_1[_0x3b3272(0x12e)])(resource_1[_0x3b3272(0x14f)],_0x3b3272(0x12c));let _0x4f0e54=manifestSwiftTemplate_1[_0x3b3272(0x134)];_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x138),_0x113014[_0x3b3272(0x104)]),_0x4f0e54=_0x4f0e54['replace']('SCOPE',_0x113014[_0x3b3272(0x14a)]),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x15e),_0x113014['name']),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x118),_0x113014[_0x3b3272(0x144)]),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)]('AppID',_0x113014['id']),_0x4f0e54=_0x4f0e54['replace']('.minimal',_0x113014[_0x3b3272(0x168)]==_0x3b3272(0x14b)?_0x3b3272(0x139):'.'+_0x113014['display']);if(_0x113014[_0x3b3272(0x12d)]){let _0x2b99b9='';for(let _0x2952cb=0x0;_0x2952cb<_0x113014[_0x3b3272(0x12d)]['length'];_0x2952cb++){_0x2b99b9+='PWAProtocol(protocolValue:\x20\x22'+_0x113014[_0x3b3272(0x12d)][_0x2952cb][_0x3b3272(0x100)]+_0x3b3272(0x116)+_0x113014[_0x3b3272(0x12d)][_0x2952cb][_0x3b3272(0x124)]+_0x3b3272(0x111);}_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x133),_0x2b99b9);}typeof _0x113014[_0x3b3272(0x141)]===_0x3b3272(0x108)?(_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)]('SceneWidth',_0x113014[_0x3b3272(0x141)][_0x3b3272(0x132)][_0x3b3272(0x13d)]),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x11a),_0x113014[_0x3b3272(0x141)]['defaultSize']['height']),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x161),'\x22'+_0x113014['mainScene'][_0x3b3272(0x147)]+'\x22'),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)]('USE_MAIN_SCENE',_0x3b3272(0x10d))):(_0x4f0e54=_0x4f0e54['replace'](_0x3b3272(0x130),_0x3b3272(0x10f)),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)]('SceneHeight',_0x3b3272(0x10f)),_0x4f0e54=_0x4f0e54['replace'](_0x3b3272(0x161),'\x22automatic\x22'),_0x4f0e54=_0x4f0e54[_0x3b3272(0x164)](_0x3b3272(0x122),_0x3b3272(0x131))),fs['writeFileSync'](_0x44836d,_0x4f0e54,_0x3b3272(0x140));}}exports[_0xb9c5d8(0x15d)]=XcodeProject;
@@ -1,13 +1,48 @@
1
+ import { BasicAppInfo, SimulatorInfo } from '../types';
1
2
  export default class Xcrun {
2
3
  static validate(path: string, key1: string, key2: string, useAccount: boolean): Promise<string>;
3
4
  static uploadPackage(path: string, key1: string, key2: string, appleId: string, useAccount: boolean): Promise<string>;
4
5
  static uploadApp(path: string, key1: string, key2: string, useAccount: boolean): Promise<string>;
5
- static runWithSimulator(appInfo: any): Promise<void>;
6
- static launchWithSimulator(bundleId: string): void;
6
+ /**
7
+ * @description
8
+ * Find suitable simulator device
9
+ * Attempt to build a testing app
10
+ * Try running the test app on the simulator
11
+ */
12
+ static runWithSimulator(): Promise<void>;
13
+ /**
14
+ * @description
15
+ * Attempt to launch the app using information from the history
16
+ */
17
+ static runWithHistory(): Promise<void>;
18
+ /**
19
+ * @description
20
+ * Find a simulator with the given deviceId
21
+ * If no deviceId is provided, find the first available simulator
22
+ * If no simulator is found, create a new simulator
23
+ * @param deviceId The deviceId of the simulator to find, defaulting to the first available simulator
24
+ * @param appInfo
25
+ * appInfo.name is used for installing applications
26
+ * appInfo.id is used to launch the application
27
+ * @returns The simulator device uuid
28
+ */
29
+ static launchWithSimulator(appInfo: BasicAppInfo, deviceId?: string, needInstall?: boolean, needFind?: boolean): string;
7
30
  static shutdownSimulator(): Promise<void>;
8
31
  private static launchSimulator;
32
+ private static buildTestApp;
9
33
  private static installApp;
10
34
  private static launchApp;
35
+ private static parseDestinationDevices;
36
+ private static parseSupportDevices;
37
+ private static parseSupportRuntimes;
11
38
  private static parseListDevices;
12
- private static findSimulator;
39
+ private static parseDeviceInfo;
40
+ static findSimulator(deviceId?: string): SimulatorInfo[];
41
+ private static searchSimulator;
42
+ static createSimulator(): {
43
+ name: string;
44
+ deviceId: string;
45
+ state: string;
46
+ };
47
+ private static listSimulator;
13
48
  }
@@ -1 +1 @@
1
- 'use strict';const _0x43ad7c=_0x3e45;(function(_0x5f1b2a,_0x333f4b){const _0x4b5a6c=_0x3e45,_0x41499d=_0x5f1b2a();while(!![]){try{const _0x55ae32=parseInt(_0x4b5a6c(0x150))/0x1*(parseInt(_0x4b5a6c(0x160))/0x2)+parseInt(_0x4b5a6c(0x180))/0x3*(parseInt(_0x4b5a6c(0x175))/0x4)+parseInt(_0x4b5a6c(0x196))/0x5+-parseInt(_0x4b5a6c(0x171))/0x6+-parseInt(_0x4b5a6c(0x187))/0x7+parseInt(_0x4b5a6c(0x15f))/0x8*(parseInt(_0x4b5a6c(0x166))/0x9)+-parseInt(_0x4b5a6c(0x17f))/0xa;if(_0x55ae32===_0x333f4b)break;else _0x41499d['push'](_0x41499d['shift']());}catch(_0x17deda){_0x41499d['push'](_0x41499d['shift']());}}}(_0x40f4,0x42d94));Object[_0x43ad7c(0x18a)](exports,_0x43ad7c(0x169),{'value':!![]});function _0x40f4(){const _0x34685c=['log','platform','7430790QtmUWN','21cMytdh','../resource','\x20install\x20\x22','shutdown','path','\x20list','launch','2965025lTbRwM','line','length','defineProperty','XcodebuildCMD','\x20--apple-id\x20','\x20--validate-app\x20-f\x20','listDevices','\x20-p\x20','\x20-t\x20','altool','start\x20building','open\x20/Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/','verbose','xcrun','1743135ZUHRIp','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','\x20-u\x20','\x22\x20\x22','visionos','clearDir','\x20--apiIssuer\x20','no\x20visionOS\x20simulator\x20found','toString','/test','Apple\x20Vision\x20Pro','../resource/file','uploadPackage','\x20altool','join','push','simctl','PROJECT_DIRECTORY','execSync','PROJECT_BUILD_DIRECTORY','3OUvjCo','findSimulator','parseListDevices','\x20--upload-package\x20','\x20list\x20devices\x20\x22','launchWithSimulator','uploadApp','list','install','build\x20success','includes','boot','name','deviceId','launchApp','846992jCfYTt','228602mcMdxA','\x20launch\x20\x22','runWithSimulator','Booted','mkdirSync','validate','45GJoPpP','state','shutdownSimulator','__esModule','split','launch\x20app','authAccount','child_process','launchSimulator','--\x20','Shutdown','275160xxOanL','\x27\x20-derivedDataPath\x20','existsSync','version','151672SMcxjs','\x20shutdown\x20\x22','installApp','install\x20success','trim','default','authApi','find\x20simulator:\x20'];_0x40f4=function(){return _0x34685c;};return _0x40f4();}const child_process_1=require(_0x43ad7c(0x16d)),resource_1=require(_0x43ad7c(0x181)),path_1=require(_0x43ad7c(0x184)),fs=require('fs'),xcodebuild_1=require('./xcodebuild'),file_1=require(_0x43ad7c(0x1a1));function _0x3e45(_0x2234bd,_0x25f888){const _0x40f4ed=_0x40f4();return _0x3e45=function(_0x3e456c,_0x45c7c){_0x3e456c=_0x3e456c-0x14c;let _0x19a04c=_0x40f4ed[_0x3e456c];return _0x19a04c;},_0x3e45(_0x2234bd,_0x25f888);}class Xcrun{static async['validate'](_0x555ac4,_0x2fd87d,_0x3570fe,_0x3ba2ea){const _0x4f4e69=_0x43ad7c,_0x57828e=new XcrunCMD()['altool']();_0x57828e[_0x4f4e69(0x165)](_0x555ac4);_0x3ba2ea?_0x57828e[_0x4f4e69(0x16c)](_0x2fd87d,_0x3570fe):_0x57828e['authApi'](_0x2fd87d,_0x3570fe);_0x57828e['platform'](_0x4f4e69(0x19a));const _0x126b10=(0x0,child_process_1['execSync'])(_0x57828e[_0x4f4e69(0x188)]);return _0x126b10[_0x4f4e69(0x19e)]();}static async[_0x43ad7c(0x1a2)](_0x4e2792,_0x214094,_0x21dc61,_0x56354b,_0x25d370){const _0x1c45ce=_0x43ad7c,_0x46dd73=new XcrunCMD()['altool']();_0x46dd73['uploadPackage'](_0x4e2792);_0x25d370?_0x46dd73[_0x1c45ce(0x16c)](_0x214094,_0x21dc61):_0x46dd73[_0x1c45ce(0x17b)](_0x214094,_0x21dc61);_0x46dd73['platform']('visionos'),_0x46dd73['appleId'](_0x56354b);const _0x1c9a6d=(0x0,child_process_1[_0x1c45ce(0x14e)])(_0x46dd73[_0x1c45ce(0x188)]);return _0x1c9a6d[_0x1c45ce(0x19e)]();}static async[_0x43ad7c(0x156)](_0x1f5a30,_0x33a198,_0x148f47,_0x3bd954){const _0x152efb=_0x43ad7c,_0x148327=new XcrunCMD()[_0x152efb(0x191)]();_0x148327[_0x152efb(0x156)](_0x1f5a30);_0x3bd954?_0x148327[_0x152efb(0x16c)](_0x33a198,_0x148f47):_0x148327[_0x152efb(0x17b)](_0x33a198,_0x148f47);_0x148327[_0x152efb(0x17e)](_0x152efb(0x19a));const _0x4672c9=(0x0,child_process_1[_0x152efb(0x14e)])(_0x148327[_0x152efb(0x188)]);return _0x4672c9[_0x152efb(0x19e)]();}static async[_0x43ad7c(0x162)](_0x586f5d){const _0x1f942a=_0x43ad7c;let _0x363c74=this[_0x1f942a(0x151)]();console[_0x1f942a(0x17d)](_0x1f942a(0x17c)+_0x363c74[_0x1f942a(0x15d)]);const _0x1dbfe8=resource_1[_0x1f942a(0x14d)]+'/web-spatial.xcodeproj',_0x4f949e=resource_1[_0x1f942a(0x14f)]+_0x1f942a(0x19f);!fs[_0x1f942a(0x173)](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs['mkdirSync'](resource_1[_0x1f942a(0x14f)],{'recursive':!![]});!fs[_0x1f942a(0x173)](_0x4f949e)&&fs[_0x1f942a(0x164)](_0x4f949e,{'recursive':!![]});(0x0,file_1[_0x1f942a(0x19b)])(_0x4f949e);const _0x41f221=new xcodebuild_1[(_0x1f942a(0x18b))]()['project'](_0x1dbfe8)[_0x1f942a(0x188)]+(_0x1f942a(0x197)+_0x363c74[_0x1f942a(0x15d)]+_0x1f942a(0x172)+_0x4f949e);console[_0x1f942a(0x17d)](_0x1f942a(0x192)),(0x0,child_process_1[_0x1f942a(0x14e)])(_0x41f221),console[_0x1f942a(0x17d)](_0x1f942a(0x159)),this[_0x1f942a(0x16e)](_0x363c74),console['log']('installing\x20app'),this[_0x1f942a(0x177)](_0x4f949e,_0x363c74['deviceId'],_0x586f5d[_0x1f942a(0x15c)]),console['log'](_0x1f942a(0x178)),console[_0x1f942a(0x17d)]('launch\x20app'),this[_0x1f942a(0x15e)](_0x363c74[_0x1f942a(0x15d)],_0x586f5d['id']);}static[_0x43ad7c(0x155)](_0xe87779){const _0x33fefb=_0x43ad7c;let _0x36ce5e=this[_0x33fefb(0x151)]();console['log'](_0x33fefb(0x17c)+_0x36ce5e[_0x33fefb(0x15d)]),this['launchSimulator'](_0x36ce5e),console['log'](_0x33fefb(0x16b)),this['launchApp'](_0x36ce5e['deviceId'],_0xe87779);}static async[_0x43ad7c(0x168)](){const _0x4c0863=_0x43ad7c;let _0x4c0aa3=this[_0x4c0863(0x151)]();console[_0x4c0863(0x17d)]('find\x20simulator:\x20'+_0x4c0aa3[_0x4c0863(0x15d)]);if(_0x4c0aa3[_0x4c0863(0x167)]!==_0x4c0863(0x170)){let _0x486972=new XcrunCMD()[_0x4c0863(0x14c)]();_0x486972[_0x4c0863(0x183)](_0x4c0aa3[_0x4c0863(0x15d)]),(0x0,child_process_1[_0x4c0863(0x14e)])(_0x486972[_0x4c0863(0x188)]);}else console['log']('simulator\x20is\x20already\x20shutdown');}static[_0x43ad7c(0x16e)](_0xbf64fa){const _0x1624db=_0x43ad7c;if(_0xbf64fa[_0x1624db(0x167)]===_0x1624db(0x170)){let _0x5efd8b=new XcrunCMD()[_0x1624db(0x14c)]();_0x5efd8b[_0x1624db(0x15b)](_0xbf64fa['deviceId']),(0x0,child_process_1['execSync'])(_0x5efd8b[_0x1624db(0x188)]);}(0x0,child_process_1[_0x1624db(0x14e)])(_0x1624db(0x193));}static['installApp'](_0x293a8b,_0x1fecbb,_0x5ca3ef){const _0x1ad2d8=_0x43ad7c,_0x5a1bbc=(0x0,path_1[_0x1ad2d8(0x1a4)])(_0x293a8b,'Build/Products/Debug-xrsimulator/'+_0x5ca3ef+'.app');let _0x4a1509=new XcrunCMD()[_0x1ad2d8(0x14c)]();_0x4a1509['install'](_0x1fecbb,_0x5a1bbc),(0x0,child_process_1[_0x1ad2d8(0x14e)])(_0x4a1509['line']);}static[_0x43ad7c(0x15e)](_0x3e1db1,_0x22f9fb){const _0x191e45=_0x43ad7c;let _0xd6bf6d=new XcrunCMD()['simctl']();_0xd6bf6d[_0x191e45(0x186)](_0x3e1db1,_0x22f9fb),(0x0,child_process_1[_0x191e45(0x14e)])(_0xd6bf6d['line']);}static[_0x43ad7c(0x152)](_0x5edc04){const _0x19a343=_0x43ad7c;let _0x278f82=_0x5edc04[_0x19a343(0x16a)]('\x0a'),_0x66d614=[],_0x3a0338=-0x1;for(let _0x31049d=0x0;_0x31049d<_0x278f82[_0x19a343(0x189)];_0x31049d++){if(_0x278f82[_0x31049d][_0x19a343(0x15a)]('--\x20visionOS'))_0x3a0338=_0x31049d;else{if(_0x3a0338>0x0){if(_0x278f82[_0x31049d][_0x19a343(0x15a)](_0x19a343(0x16f)))break;if(_0x278f82[_0x31049d][_0x19a343(0x189)]>0x0){const _0x3116bc=_0x278f82[_0x31049d][_0x19a343(0x16a)]('('),_0x2c6edc={'name':_0x3116bc[0x0][_0x19a343(0x179)](),'deviceId':_0x3116bc[0x1][_0x19a343(0x16a)](')')[0x0][_0x19a343(0x179)](),'state':_0x3116bc[0x2][_0x19a343(0x16a)](')')[0x0][_0x19a343(0x179)]()};_0x66d614[_0x19a343(0x1a5)](_0x2c6edc);}}}}return _0x66d614;}static[_0x43ad7c(0x151)](){const _0x5065ad=_0x43ad7c;let _0x44c1cf=new XcrunCMD()['simctl']();_0x44c1cf[_0x5065ad(0x18e)](_0x5065ad(0x1a0));const _0x3c251e=(0x0,child_process_1[_0x5065ad(0x14e)])(_0x44c1cf[_0x5065ad(0x188)]),_0x5a0724=this[_0x5065ad(0x152)](_0x3c251e[_0x5065ad(0x19e)]());if(_0x5a0724['length']===0x0)throw new Error(_0x5065ad(0x19d));for(let _0x3c9f14=0x0;_0x3c9f14<_0x5a0724['length'];_0x3c9f14++){if(_0x5a0724[_0x3c9f14][_0x5065ad(0x167)]===_0x5065ad(0x163))return _0x5a0724[_0x3c9f14];}return _0x5a0724[0x0];}}exports[_0x43ad7c(0x17a)]=Xcrun;class XcrunCMD{constructor(){const _0x2fb0df=_0x43ad7c;this[_0x2fb0df(0x188)]=_0x2fb0df(0x195);}[_0x43ad7c(0x191)](){const _0xed4491=_0x43ad7c;return this['line']+=_0xed4491(0x1a3),this;}[_0x43ad7c(0x14c)](){const _0x4cc18a=_0x43ad7c;return this[_0x4cc18a(0x188)]+='\x20simctl',this;}[_0x43ad7c(0x157)](){const _0x2bb9b4=_0x43ad7c;return this[_0x2bb9b4(0x188)]+=_0x2bb9b4(0x185),this;}[_0x43ad7c(0x18e)](_0x3fa412){const _0x22c7f4=_0x43ad7c;return this[_0x22c7f4(0x188)]+=_0x22c7f4(0x154)+_0x3fa412+'\x22',this;}['validate'](_0x22eec0){const _0x83d856=_0x43ad7c;return this[_0x83d856(0x188)]+=_0x83d856(0x18d)+_0x22eec0,this;}[_0x43ad7c(0x156)](_0x252989){const _0x28e201=_0x43ad7c;return this[_0x28e201(0x188)]+='\x20--upload-app\x20-f\x20'+_0x252989,this;}[_0x43ad7c(0x1a2)](_0x25a928){const _0x41fa95=_0x43ad7c;return this[_0x41fa95(0x188)]+=_0x41fa95(0x153)+_0x25a928,this;}[_0x43ad7c(0x16c)](_0xac86e8,_0x2469d7){const _0x2d5a9e=_0x43ad7c;return this[_0x2d5a9e(0x188)]+=_0x2d5a9e(0x198)+_0xac86e8+_0x2d5a9e(0x18f)+_0x2469d7,this;}[_0x43ad7c(0x17b)](_0x2793f1,_0x30a4e5){const _0x5752d7=_0x43ad7c;return this[_0x5752d7(0x188)]+='\x20--apiKey\x20'+_0x2793f1+_0x5752d7(0x19c)+_0x30a4e5,this;}['appleId'](_0x337572){const _0x262ae2=_0x43ad7c;return this[_0x262ae2(0x188)]+=_0x262ae2(0x18c)+_0x337572,this;}[_0x43ad7c(0x17e)](_0x2060d7){const _0x47aa12=_0x43ad7c;return this[_0x47aa12(0x188)]+=_0x47aa12(0x190)+_0x2060d7,this;}[_0x43ad7c(0x174)](_0x499477){const _0x594dee=_0x43ad7c;return this[_0x594dee(0x188)]+='\x20--bundle-version\x20'+_0x499477,this;}[_0x43ad7c(0x194)](){const _0x184fe9=_0x43ad7c;return this[_0x184fe9(0x188)]+='\x20--verbose',this;}[_0x43ad7c(0x183)](_0x3dcb7d){const _0x3a4796=_0x43ad7c;return this[_0x3a4796(0x188)]+=_0x3a4796(0x176)+_0x3dcb7d+'\x22',this;}[_0x43ad7c(0x15b)](_0x26a328){const _0x29e62d=_0x43ad7c;return this[_0x29e62d(0x188)]+='\x20boot\x20\x22'+_0x26a328+'\x22',this;}[_0x43ad7c(0x158)](_0x48a892,_0x3e865c){const _0x452cd9=_0x43ad7c;return this['line']+=_0x452cd9(0x182)+_0x48a892+_0x452cd9(0x199)+_0x3e865c+'\x22',this;}[_0x43ad7c(0x186)](_0xabb35b,_0x3692b8){const _0x4c5aa6=_0x43ad7c;return this[_0x4c5aa6(0x188)]+=_0x4c5aa6(0x161)+_0xabb35b+'\x22\x20\x22'+_0x3692b8+'\x22',this;}}
1
+ 'use strict';const _0xf1c517=_0x1511;(function(_0x119008,_0x1e3ec5){const _0x551256=_0x1511,_0x448a81=_0x119008();while(!![]){try{const _0x6ead40=-parseInt(_0x551256(0x1b4))/0x1+-parseInt(_0x551256(0x1c5))/0x2+parseInt(_0x551256(0x16e))/0x3*(-parseInt(_0x551256(0x198))/0x4)+parseInt(_0x551256(0x1bf))/0x5+parseInt(_0x551256(0x1bb))/0x6*(parseInt(_0x551256(0x171))/0x7)+parseInt(_0x551256(0x1c2))/0x8*(-parseInt(_0x551256(0x167))/0x9)+-parseInt(_0x551256(0x149))/0xa*(-parseInt(_0x551256(0x19e))/0xb);if(_0x6ead40===_0x1e3ec5)break;else _0x448a81['push'](_0x448a81['shift']());}catch(_0x576628){_0x448a81['push'](_0x448a81['shift']());}}}(_0x52e0,0xc37c1));function _0x52e0(){const _0x5c7ca1=['../utils/utils','listSimulator','no\x20visionOS\x20simulator\x20found','\x20--validate-app\x20-f\x20','launchWithSimulator','\x27\x20-derivedDataPath\x20','973350JKgMLD','shutdownSimulator','write','verbose','parseSupportRuntimes','\x20--apiKey\x20','listDeviceTypes','3030uLvTWV','listDevices','No\x20visionOS\x20rumtime\x20found!\x20Please\x20go\x20to\x20Xcode\x20to\x20download\x20the\x20Apple\x20Vision\x20Pro\x20simulator','replace','7860585WNXOBh','project','create\x20visionOS\x20simulator:\x20','24MZDxVQ','\x20and\x20','No\x20Apple\x20Vision\x20Pro\x20simulator\x20found!\x20Please\x20go\x20to\x20Xcode\x20to\x20download\x20the\x20Apple\x20Vision\x20Pro\x20simulator','1438258bljeDf','Shutdown','visionos','\x20&&\x20xcodebuild\x20-showdestinations\x20-scheme\x20web-spatial','\x20--verbose','state','terminate','listRuntimes','\x20--bundle-version\x20','\x20--apiIssuer\x20','validate','../utils/history','\x20simctl','buildTestApp','line','find\x20simulators:','\x20boot\x20\x22','shutdown','15009020aXqHTu','install','uploadApp','altool','no\x20simulator\x20available','execSync','../resource','mkdirSync','cd\x20','appleId',',\x20try\x20next\x20device','getSimulatorHistory','\x20build\x20-scheme\x20web-spatial\x20-destination\x20\x27platform=visionOS\x20Simulator,id=','runWithSimulator','createSimulator','xcrun','--\x20','findSimulator','__esModule','parseDeviceInfo','com','version','installApp','PROJECT_DIRECTORY','authApi','log','\x22\x20\x22','create','info','simctl','1106514atgaHU','**\x20BUILD\x20FAILED\x20**','error','runWithHistory','uploadPackage','split','indexOf','23367oWvjHa','\x20launch\x20\x22','PROJECT_BUILD_DIRECTORY','4417iDizCk','try\x20create\x20a\x20visionOS\x20simulator','\x20to\x20create\x20visionOS\x20simulator','\x20list\x20runtimes','installing\x20app','platform','includes','PROJECT_TEST_DIRECTORY','test','platform:visionOS\x20Simulator','join','----\x20build\x20start\x20on\x20','existsSync','trim','Build/Products/Debug-xrsimulator/','--\x20visionOS','install\x20success',',\x20name','launchApp','authAccount','toString','length','deviceId','default','launch','push','parseDestinationDevices','-------------------\x20build\x20end\x20-------------------','\x20list','visionOS','launchSimulator','id:','warn','../resource/file','find\x20simulator:\x20','getAppInfoRecord','parseListDevices','open\x20-a\x20Simulator\x20--args\x20-CurrentDeviceUDID\x20','\x20--apple-id\x20','272lKcAOl','\x20-p\x20','/web-spatial.xcodeproj','sleep\x2010','Apple\x20Vision\x20Pro','XcodebuildCMD','11NOmpUD','use\x20','\x20--upload-app\x20-f\x20','list','parseSupportDevices','CliLog','recordSimulator','simulator\x20is\x20already\x20shutdown','find\x20destination\x20device:\x20','.app','slice','use\x20simulator:\x20','boot','\x20----','./xcodebuild','name'];_0x52e0=function(){return _0x5c7ca1;};return _0x52e0();}Object['defineProperty'](exports,_0xf1c517(0x15b),{'value':!![]});const child_process_1=require('child_process'),resource_1=require(_0xf1c517(0x14f)),path_1=require('path'),fs=require('fs'),xcodebuild_1=require(_0xf1c517(0x1ac)),file_1=require(_0xf1c517(0x192)),utils_1=require(_0xf1c517(0x1ae)),history_1=require(_0xf1c517(0x1d0));function _0x1511(_0x135d46,_0x1f8d86){const _0x52e075=_0x52e0();return _0x1511=function(_0x1511a6,_0x2760ca){_0x1511a6=_0x1511a6-0x144;let _0x70a3d5=_0x52e075[_0x1511a6];return _0x70a3d5;},_0x1511(_0x135d46,_0x1f8d86);}class Xcrun{static async['validate'](_0x22c531,_0x1c4fb3,_0x7f3d71,_0x28616f){const _0x1650d1=_0xf1c517,_0x1f2519=new XcrunCMD()[_0x1650d1(0x14c)]();_0x1f2519[_0x1650d1(0x1cf)](_0x22c531);_0x28616f?_0x1f2519[_0x1650d1(0x184)](_0x1c4fb3,_0x7f3d71):_0x1f2519[_0x1650d1(0x161)](_0x1c4fb3,_0x7f3d71);_0x1f2519[_0x1650d1(0x176)](_0x1650d1(0x1c7));const _0x3af795=(0x0,child_process_1[_0x1650d1(0x14e)])(_0x1f2519[_0x1650d1(0x145)]);return _0x3af795['toString']();}static async[_0xf1c517(0x16b)](_0x5bd2f1,_0x3cc021,_0x5eb053,_0x5b5684,_0x394e42){const _0x2e5391=_0xf1c517,_0x59fcb7=new XcrunCMD()[_0x2e5391(0x14c)]();_0x59fcb7['uploadPackage'](_0x5bd2f1);_0x394e42?_0x59fcb7['authAccount'](_0x3cc021,_0x5eb053):_0x59fcb7[_0x2e5391(0x161)](_0x3cc021,_0x5eb053);_0x59fcb7['platform'](_0x2e5391(0x1c7)),_0x59fcb7['appleId'](_0x5b5684);const _0x2390a4=(0x0,child_process_1[_0x2e5391(0x14e)])(_0x59fcb7['line']);return _0x2390a4[_0x2e5391(0x185)]();}static async[_0xf1c517(0x14b)](_0x3aa21c,_0x4030b0,_0x42a358,_0x22f0f4){const _0xa311c9=_0xf1c517,_0x52ad94=new XcrunCMD()[_0xa311c9(0x14c)]();_0x52ad94[_0xa311c9(0x14b)](_0x3aa21c);_0x22f0f4?_0x52ad94[_0xa311c9(0x184)](_0x4030b0,_0x42a358):_0x52ad94[_0xa311c9(0x161)](_0x4030b0,_0x42a358);_0x52ad94[_0xa311c9(0x176)](_0xa311c9(0x1c7));const _0x160758=(0x0,child_process_1['execSync'])(_0x52ad94[_0xa311c9(0x145)]);return _0x160758[_0xa311c9(0x185)]();}static async[_0xf1c517(0x156)](){const _0x13b494=_0xf1c517;let _0x1d52e7=this['findSimulator']();!_0x1d52e7[0x0]&&(_0x1d52e7=[this[_0x13b494(0x157)]()]);const _0x9d4d04=history_1[_0x13b494(0x188)][_0x13b494(0x194)]();for(var _0x51488d=0x0;_0x51488d<_0x1d52e7[_0x13b494(0x186)];_0x51488d++){if(this[_0x13b494(0x144)](_0x1d52e7[_0x51488d][_0x13b494(0x187)])){const _0x260f04=this[_0x13b494(0x1b2)](_0x9d4d04,_0x1d52e7[_0x51488d][_0x13b494(0x187)],!![],![]);history_1[_0x13b494(0x188)][_0x13b494(0x1a4)](_0x260f04),history_1[_0x13b494(0x188)][_0x13b494(0x1b6)]();return;}else utils_1[_0x13b494(0x1a3)][_0x13b494(0x169)]('build\x20failed\x20on\x20'+_0x1d52e7[_0x51488d][_0x13b494(0x187)]+_0x13b494(0x153));}utils_1[_0x13b494(0x1a3)][_0x13b494(0x169)](_0x13b494(0x14d));}static async[_0xf1c517(0x16a)](){const _0x2b5e0d=_0xf1c517,_0x299a4a=history_1[_0x2b5e0d(0x188)][_0x2b5e0d(0x154)](),_0x1b03a4=history_1[_0x2b5e0d(0x188)][_0x2b5e0d(0x194)](),_0x3456ec=this['launchWithSimulator'](_0x1b03a4,_0x299a4a);history_1[_0x2b5e0d(0x188)][_0x2b5e0d(0x1a4)](_0x3456ec),history_1['default'][_0x2b5e0d(0x1b6)]();}static[_0xf1c517(0x1b2)](_0xb67382,_0x3512b5='',_0x556fe2=![],_0x12224f=!![]){const _0x41b0d2=_0xf1c517;let _0x104607,_0x1a11c0=![];return _0x12224f?_0x104607=this[_0x41b0d2(0x15a)](_0x3512b5)[0x0]:_0x104607=this['searchSimulator'](_0x3512b5),(!_0x104607||_0x104607[_0x41b0d2(0x187)]==='')&&(_0x104607=this[_0x41b0d2(0x157)](),_0x1a11c0=!![]),console[_0x41b0d2(0x162)](_0x41b0d2(0x1a9)+_0x104607[_0x41b0d2(0x187)]),this[_0x41b0d2(0x18f)](_0x104607),(_0x556fe2||_0x1a11c0)&&(console[_0x41b0d2(0x162)](_0x41b0d2(0x175)),this[_0x41b0d2(0x15f)](resource_1[_0x41b0d2(0x178)],_0x104607[_0x41b0d2(0x187)],_0xb67382[_0x41b0d2(0x1ad)]),console['log'](_0x41b0d2(0x181))),console[_0x41b0d2(0x162)]('launch\x20app'),this[_0x41b0d2(0x183)](_0x104607[_0x41b0d2(0x187)],_0xb67382['id']),_0x104607['deviceId'];}static async[_0xf1c517(0x1b5)](){const _0x33401f=_0xf1c517;let _0x43ec5c=this[_0x33401f(0x15a)]()[0x0];console[_0x33401f(0x162)](_0x33401f(0x193)+_0x43ec5c[_0x33401f(0x187)]);if(_0x43ec5c[_0x33401f(0x1ca)]!==_0x33401f(0x1c6)){let _0x3aa323=new XcrunCMD()[_0x33401f(0x166)]();_0x3aa323[_0x33401f(0x148)](_0x43ec5c[_0x33401f(0x187)]),(0x0,child_process_1['execSync'])(_0x3aa323[_0x33401f(0x145)]);}else console[_0x33401f(0x162)](_0x33401f(0x1a5));}static[_0xf1c517(0x18f)](_0x32adfe){const _0x19210=_0xf1c517;if(_0x32adfe[_0x19210(0x1ca)]===_0x19210(0x1c6)){let _0x269bbc=new XcrunCMD()[_0x19210(0x166)]();_0x269bbc[_0x19210(0x1aa)](_0x32adfe[_0x19210(0x187)]),(0x0,child_process_1[_0x19210(0x14e)])(_0x269bbc[_0x19210(0x145)]),(0x0,child_process_1[_0x19210(0x14e)])(_0x19210(0x19b));}(0x0,child_process_1[_0x19210(0x14e)])(_0x19210(0x196)+_0x32adfe['deviceId']);}static['buildTestApp'](_0x9d1286){const _0x51f320=_0xf1c517,_0xe49ee4=resource_1[_0x51f320(0x160)]+_0x51f320(0x19a);!fs[_0x51f320(0x17d)](resource_1['PROJECT_BUILD_DIRECTORY'])&&fs[_0x51f320(0x150)](resource_1[_0x51f320(0x170)],{'recursive':!![]});!fs[_0x51f320(0x17d)](resource_1['PROJECT_TEST_DIRECTORY'])&&fs[_0x51f320(0x150)](resource_1[_0x51f320(0x178)],{'recursive':!![]});(0x0,file_1['clearDir'])(resource_1[_0x51f320(0x178)]);const _0x234c57=new xcodebuild_1[(_0x51f320(0x19d))]()[_0x51f320(0x1c0)](_0xe49ee4)[_0x51f320(0x145)]+(_0x51f320(0x155)+_0x9d1286+_0x51f320(0x1b3)+resource_1['PROJECT_TEST_DIRECTORY']);console[_0x51f320(0x162)](_0x51f320(0x17c)+_0x9d1286+_0x51f320(0x1ab));try{const _0x5ad480=(0x0,child_process_1[_0x51f320(0x14e)])(_0x234c57);if(_0x5ad480['toString']()['includes'](_0x51f320(0x168)))return![];}catch(_0x4fc10e){}return console[_0x51f320(0x162)](_0x51f320(0x18c)),!![];}static[_0xf1c517(0x15f)](_0xe8043c,_0x46614a,_0x42d219){const _0x33179a=_0xf1c517,_0x26783c=(0x0,path_1[_0x33179a(0x17b)])(_0xe8043c,_0x33179a(0x17f)+_0x42d219+_0x33179a(0x1a7));let _0x1b644a=new XcrunCMD()[_0x33179a(0x166)]();_0x1b644a[_0x33179a(0x14a)](_0x46614a,_0x26783c),(0x0,child_process_1[_0x33179a(0x14e)])(_0x1b644a[_0x33179a(0x145)]);}static['launchApp'](_0x19c0af,_0x3ec0be){const _0x4774d4=_0xf1c517;try{(0x0,child_process_1[_0x4774d4(0x14e)])(new XcrunCMD()[_0x4774d4(0x166)]()[_0x4774d4(0x1cb)](_0x19c0af,_0x3ec0be)[_0x4774d4(0x145)]);}catch(_0x55d8b9){}(0x0,child_process_1[_0x4774d4(0x14e)])(new XcrunCMD()[_0x4774d4(0x166)]()[_0x4774d4(0x189)](_0x19c0af,_0x3ec0be)[_0x4774d4(0x145)]);}static[_0xf1c517(0x18b)](_0x172394){const _0x11be7b=_0xf1c517;let _0x2982f8=_0x172394['split']('\x0a');const _0x77cef=/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/;let _0x433108=[];for(let _0x426ae4=0x0;_0x426ae4<_0x2982f8[_0x11be7b(0x186)];_0x426ae4++){if(_0x2982f8[_0x426ae4][_0x11be7b(0x177)](_0x11be7b(0x17a))){const _0x489d68=_0x2982f8[_0x426ae4][_0x11be7b(0x1a8)](_0x2982f8[_0x426ae4][_0x11be7b(0x16d)](_0x11be7b(0x190))+0x3,_0x2982f8[_0x426ae4][_0x11be7b(0x16d)](_0x11be7b(0x182)));_0x77cef[_0x11be7b(0x179)](_0x489d68)&&(_0x433108['push'](_0x489d68),console[_0x11be7b(0x162)](_0x11be7b(0x1a6)+_0x2982f8[_0x426ae4]+')'));}}return _0x433108;}static[_0xf1c517(0x1a2)](_0x3104ca){const _0x31a8d0=_0xf1c517;let _0xb1d50e=_0x3104ca[_0x31a8d0(0x16c)]('\x0a');for(let _0x4b06a6=0x0;_0x4b06a6<_0xb1d50e[_0x31a8d0(0x186)];_0x4b06a6++){if(_0xb1d50e[_0x4b06a6][_0x31a8d0(0x177)](_0x31a8d0(0x19c)))return _0xb1d50e[_0x4b06a6]=_0xb1d50e[_0x4b06a6][_0x31a8d0(0x1be)](_0x31a8d0(0x19c),'')['trim'](),_0xb1d50e[_0x4b06a6]=_0xb1d50e[_0x4b06a6][_0x31a8d0(0x1be)]('(',''),_0xb1d50e[_0x4b06a6]=_0xb1d50e[_0x4b06a6][_0x31a8d0(0x1be)](')',''),_0xb1d50e[_0x4b06a6];}throw new Error(_0x31a8d0(0x1c4));}static['parseSupportRuntimes'](_0x5bb450){const _0x34b5d0=_0xf1c517;let _0x119094=_0x5bb450[_0x34b5d0(0x16c)]('\x0a');for(let _0x4e79d2=0x0;_0x4e79d2<_0x119094[_0x34b5d0(0x186)];_0x4e79d2++){if(_0x119094[_0x4e79d2][_0x34b5d0(0x177)](_0x34b5d0(0x18e)))return _0x119094[_0x4e79d2][_0x34b5d0(0x1a8)](_0x119094[_0x4e79d2]['indexOf'](_0x34b5d0(0x15d)))[_0x34b5d0(0x17e)]();}throw new Error(_0x34b5d0(0x1bd));}static[_0xf1c517(0x195)](_0x487406){const _0x3d4022=_0xf1c517;let _0x18cda3=_0x487406[_0x3d4022(0x16c)]('\x0a'),_0x44a587=[],_0x1c6eae=-0x1;for(let _0x10417b=0x0;_0x10417b<_0x18cda3[_0x3d4022(0x186)];_0x10417b++){if(_0x18cda3[_0x10417b][_0x3d4022(0x177)](_0x3d4022(0x180)))_0x1c6eae=_0x10417b;else{if(_0x1c6eae>0x0){if(_0x18cda3[_0x10417b][_0x3d4022(0x177)](_0x3d4022(0x159)))break;_0x18cda3[_0x10417b]['length']>0x0&&_0x44a587[_0x3d4022(0x18a)](this[_0x3d4022(0x15c)](_0x18cda3[_0x10417b]));}}}return _0x44a587;}static['parseDeviceInfo'](_0x2f1d78){const _0x5c23b7=_0xf1c517,_0x40ff26=_0x2f1d78[_0x5c23b7(0x16c)]('('),_0x2da8aa={'name':_0x40ff26[0x0]['trim'](),'deviceId':_0x40ff26[0x1]['split'](')')[0x0]['trim'](),'state':_0x40ff26[0x2][_0x5c23b7(0x16c)](')')[0x0]['trim']()};return _0x2da8aa;}static[_0xf1c517(0x15a)](_0x23cd3c){const _0x2fb24f=_0xf1c517;let _0x5c17fd=[_0x23cd3c!==null&&_0x23cd3c!==void 0x0?_0x23cd3c:''];const _0x56bb91=(0x0,child_process_1[_0x2fb24f(0x14e)])(_0x2fb24f(0x151)+resource_1[_0x2fb24f(0x160)]+_0x2fb24f(0x1c8)),_0x54cb70=this['parseDestinationDevices'](_0x56bb91[_0x2fb24f(0x185)]());_0x5c17fd=[..._0x5c17fd,..._0x54cb70];let _0x24dbba=this['listSimulator']();return _0x24dbba['sort']((_0x9c0a45,_0x54d16c)=>{const _0xfcf420=_0x2fb24f,_0x1a3432=_0x5c17fd['indexOf'](_0x9c0a45[_0xfcf420(0x187)]),_0x4f6829=_0x5c17fd[_0xfcf420(0x16d)](_0x54d16c[_0xfcf420(0x187)]);if(_0x1a3432!==-0x1&&_0x4f6829!==-0x1)return _0x1a3432-_0x4f6829;else{if(_0x1a3432!==-0x1)return-0x1;else{if(_0x4f6829!==-0x1)return 0x1;}}return 0x0;}),console[_0x2fb24f(0x162)](_0x2fb24f(0x146)),console[_0x2fb24f(0x162)](_0x24dbba),_0x24dbba;}static['searchSimulator'](_0x1eed75){const _0x3f78e2=_0xf1c517,_0x4d917a=new XcrunCMD()[_0x3f78e2(0x166)]()[_0x3f78e2(0x1bc)]('Apple\x20Vision\x20Pro')['line']+('\x20|\x20grep\x20'+_0x1eed75);console['log'](_0x4d917a);let _0x579921=(0x0,child_process_1['execSync'])(_0x4d917a);return console[_0x3f78e2(0x162)](_0x579921['toString']()),this[_0x3f78e2(0x15c)](_0x579921[_0x3f78e2(0x185)]());}static['createSimulator'](){const _0x340206=_0xf1c517;utils_1[_0x340206(0x1a3)][_0x340206(0x191)](_0x340206(0x1b0)),utils_1[_0x340206(0x1a3)]['warn'](_0x340206(0x172));let _0x444bb8=(0x0,child_process_1['execSync'])(new XcrunCMD()[_0x340206(0x166)]()['listDeviceTypes']()[_0x340206(0x145)]);const _0x3a599b=this[_0x340206(0x1a2)](_0x444bb8['toString']());_0x444bb8=(0x0,child_process_1['execSync'])(new XcrunCMD()[_0x340206(0x166)]()[_0x340206(0x1cc)]()[_0x340206(0x145)]);const _0x351dec=this[_0x340206(0x1b8)](_0x444bb8[_0x340206(0x185)]());utils_1[_0x340206(0x1a3)][_0x340206(0x165)](_0x340206(0x19f)+_0x3a599b+_0x340206(0x1c3)+_0x351dec+_0x340206(0x173)),_0x444bb8=(0x0,child_process_1[_0x340206(0x14e)])(new XcrunCMD()[_0x340206(0x166)]()[_0x340206(0x164)](_0x3a599b,_0x351dec)[_0x340206(0x145)]);const _0x221837=_0x444bb8[_0x340206(0x185)]()[_0x340206(0x17e)]();return console['log'](_0x340206(0x1c1)+_0x221837),{'name':'WebSpatial\x20Simulator','deviceId':_0x221837,'state':'Shutdown'};}static[_0xf1c517(0x1af)](){const _0x3f38ff=_0xf1c517;let _0x3540bb=(0x0,child_process_1[_0x3f38ff(0x14e)])(new XcrunCMD()[_0x3f38ff(0x166)]()[_0x3f38ff(0x1bc)](_0x3f38ff(0x19c))['line']);return this[_0x3f38ff(0x195)](_0x3540bb[_0x3f38ff(0x185)]());}}exports['default']=Xcrun;class XcrunCMD{constructor(){const _0x169df3=_0xf1c517;this[_0x169df3(0x145)]=_0x169df3(0x158);}[_0xf1c517(0x14c)](){const _0x29ebcb=_0xf1c517;return this[_0x29ebcb(0x145)]+='\x20altool',this;}[_0xf1c517(0x166)](){const _0x3be64a=_0xf1c517;return this[_0x3be64a(0x145)]+=_0x3be64a(0x1d1),this;}[_0xf1c517(0x1a1)](){const _0x3dd623=_0xf1c517;return this[_0x3dd623(0x145)]+=_0x3dd623(0x18d),this;}[_0xf1c517(0x1bc)](_0x10eef8){const _0x1eb56c=_0xf1c517;return this[_0x1eb56c(0x145)]+='\x20list\x20devices\x20\x22'+_0x10eef8+'\x22',this;}[_0xf1c517(0x1ba)](){return this['line']+='\x20list\x20devicetypes',this;}[_0xf1c517(0x1cc)](){const _0x15f3e3=_0xf1c517;return this[_0x15f3e3(0x145)]+=_0x15f3e3(0x174),this;}[_0xf1c517(0x1cf)](_0x519a56){const _0x186071=_0xf1c517;return this['line']+=_0x186071(0x1b1)+_0x519a56,this;}['uploadApp'](_0x4f7451){const _0x3c7512=_0xf1c517;return this[_0x3c7512(0x145)]+=_0x3c7512(0x1a0)+_0x4f7451,this;}['uploadPackage'](_0x2a9cb){const _0x128198=_0xf1c517;return this[_0x128198(0x145)]+='\x20--upload-package\x20'+_0x2a9cb,this;}[_0xf1c517(0x184)](_0x214381,_0x83a9f8){const _0x82c84a=_0xf1c517;return this[_0x82c84a(0x145)]+='\x20-u\x20'+_0x214381+_0x82c84a(0x199)+_0x83a9f8,this;}[_0xf1c517(0x161)](_0x1d5243,_0x457f73){const _0x4e6a2b=_0xf1c517;return this[_0x4e6a2b(0x145)]+=_0x4e6a2b(0x1b9)+_0x1d5243+_0x4e6a2b(0x1ce)+_0x457f73,this;}[_0xf1c517(0x152)](_0x420d1e){const _0x1dda06=_0xf1c517;return this[_0x1dda06(0x145)]+=_0x1dda06(0x197)+_0x420d1e,this;}[_0xf1c517(0x176)](_0x88dfc2){const _0x1a9dc7=_0xf1c517;return this[_0x1a9dc7(0x145)]+='\x20-t\x20'+_0x88dfc2,this;}[_0xf1c517(0x15e)](_0x35b3e7){const _0x1dc932=_0xf1c517;return this['line']+=_0x1dc932(0x1cd)+_0x35b3e7,this;}[_0xf1c517(0x1b7)](){const _0x4fcd47=_0xf1c517;return this['line']+=_0x4fcd47(0x1c9),this;}['create'](_0x2453b6,_0x155f69){const _0x1b5d5a=_0xf1c517;return this['line']+='\x20create\x20\x22WebSpatialSimulator\x22\x20\x22'+_0x2453b6+_0x1b5d5a(0x163)+_0x155f69+'\x22',this;}[_0xf1c517(0x148)](_0x5329e7){const _0xaa1361=_0xf1c517;return this[_0xaa1361(0x145)]+='\x20shutdown\x20\x22'+_0x5329e7+'\x22',this;}['boot'](_0x33e5ba){const _0x1aea0c=_0xf1c517;return this[_0x1aea0c(0x145)]+=_0x1aea0c(0x147)+_0x33e5ba+'\x22',this;}[_0xf1c517(0x14a)](_0xe30f1e,_0x5b91ca){const _0x5d2fb5=_0xf1c517;return this[_0x5d2fb5(0x145)]+='\x20install\x20\x22'+_0xe30f1e+_0x5d2fb5(0x163)+_0x5b91ca+'\x22',this;}['launch'](_0x595049,_0x51ed4b){const _0x4b9a1e=_0xf1c517;return this['line']+=_0x4b9a1e(0x16f)+_0x595049+_0x4b9a1e(0x163)+_0x51ed4b+'\x22',this;}[_0xf1c517(0x1cb)](_0x100995,_0x437d0a){const _0x1c23d7=_0xf1c517;return this[_0x1c23d7(0x145)]+='\x20terminate\x20\x22'+_0x100995+_0x1c23d7(0x163)+_0x437d0a+'\x22',this;}}