@webspatial/builder 0.0.10 → 0.0.12

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 (93) hide show
  1. package/README.md +63 -0
  2. package/dist/index.js +1 -1
  3. package/dist/lib/Cli.js +1 -1
  4. package/dist/lib/cmds/build.d.ts +1 -1
  5. package/dist/lib/cmds/build.js +1 -1
  6. package/dist/lib/cmds/check.js +1 -1
  7. package/dist/lib/cmds/help.js +1 -1
  8. package/dist/lib/cmds/version.js +1 -1
  9. package/dist/lib/pwa/config.d.ts +1 -1
  10. package/dist/lib/pwa/config.js +1 -1
  11. package/dist/lib/pwa/index.d.ts +2 -1
  12. package/dist/lib/pwa/index.js +1 -1
  13. package/dist/lib/pwa/validate.js +1 -1
  14. package/dist/lib/resource/file.js +1 -1
  15. package/dist/lib/resource/imageHelper.js +1 -1
  16. package/dist/lib/resource/index.d.ts +10 -3
  17. package/dist/lib/resource/index.js +1 -1
  18. package/dist/lib/resource/load.js +1 -1
  19. package/dist/lib/utils/CustomError.js +1 -1
  20. package/dist/lib/utils/FetchUtils-1.js +1 -1
  21. package/dist/lib/utils/Log.js +1 -1
  22. package/dist/lib/utils/fetch.js +1 -1
  23. package/dist/lib/utils/messages.js +1 -1
  24. package/dist/lib/utils/utils.js +1 -1
  25. package/dist/lib/xcode/index.js +1 -1
  26. package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
  27. package/dist/lib/xcode/xcodebuild.js +1 -1
  28. package/dist/lib/xcode/xcodeproject.js +1 -1
  29. package/dist/lib/xcode/xcrun.js +1 -1
  30. package/package.json +3 -2
  31. package/template/visionOSApp/Packages/RealityKitContent/.build/workspace-state.json +0 -7
  32. package/template/visionOSApp/Packages/RealityKitContent/.swiftpm/xcode/xcuserdata/bytedance.xcuserdatad/xcschemes/xcschememanagement.plist +0 -14
  33. package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/ProjectData/main.json +0 -11
  34. package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/WorkspaceData/SceneMetadataList.json +0 -112
  35. package/template/visionOSApp/Packages/RealityKitContent/Package.realitycomposerpro/WorkspaceData/Settings.rcprojectdata +0 -17
  36. package/template/visionOSApp/Packages/RealityKitContent/Package.swift +0 -27
  37. package/template/visionOSApp/Packages/RealityKitContent/README.md +0 -3
  38. package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Immersive.usda +0 -50
  39. package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Materials/GridMaterial.usda +0 -216
  40. package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.rkassets/Scene.usda +0 -59
  41. package/template/visionOSApp/Packages/RealityKitContent/Sources/RealityKitContent/RealityKitContent.swift +0 -4
  42. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset/Contents.json +0 -12
  43. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Back.solidimagestacklayer/Contents.json +0 -6
  44. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Contents.json +0 -17
  45. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Content.imageset/Contents.json +0 -12
  46. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Front.solidimagestacklayer/Contents.json +0 -6
  47. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset/Contents.json +0 -12
  48. package/template/visionOSApp/web-spatial/Assets.xcassets/AppIcon.solidimagestack/Middle.solidimagestacklayer/Contents.json +0 -6
  49. package/template/visionOSApp/web-spatial/Assets.xcassets/Contents.json +0 -6
  50. package/template/visionOSApp/web-spatial/Info.plist +0 -33
  51. package/template/visionOSApp/web-spatial/Preview Content/Preview Assets.xcassets/Contents.json +0 -6
  52. package/template/visionOSApp/web-spatial/libs/EventEmitter.swift +0 -32
  53. package/template/visionOSApp/web-spatial/libs/SpatialComponent.swift +0 -31
  54. package/template/visionOSApp/web-spatial/libs/SpatialEntity.swift +0 -179
  55. package/template/visionOSApp/web-spatial/libs/SpatialInputComponent.swift +0 -26
  56. package/template/visionOSApp/web-spatial/libs/SpatialMeshResource.swift +0 -19
  57. package/template/visionOSApp/web-spatial/libs/SpatialModel3DComponent.swift +0 -51
  58. package/template/visionOSApp/web-spatial/libs/SpatialModelComponent.swift +0 -32
  59. package/template/visionOSApp/web-spatial/libs/SpatialObject.swift +0 -144
  60. package/template/visionOSApp/web-spatial/libs/SpatialPhysicallyBasedMaterial.swift +0 -19
  61. package/template/visionOSApp/web-spatial/libs/SpatialViewComponent.swift +0 -15
  62. package/template/visionOSApp/web-spatial/libs/SpatialWindowComponent.swift +0 -420
  63. package/template/visionOSApp/web-spatial/libs/SpatialWindowContainer.swift +0 -149
  64. package/template/visionOSApp/web-spatial/libs/Utils/CommandManager.swift +0 -800
  65. package/template/visionOSApp/web-spatial/libs/Utils/Logger.swift +0 -36
  66. package/template/visionOSApp/web-spatial/libs/Utils/SceneManager.swift +0 -108
  67. package/template/visionOSApp/web-spatial/libs/Utils/WindowContainerMgr.swift +0 -117
  68. package/template/visionOSApp/web-spatial/libs/json/JsonParser.swift +0 -52
  69. package/template/visionOSApp/web-spatial/libs/uiKitDelegate/Window.swift +0 -34
  70. package/template/visionOSApp/web-spatial/libs/webView/UpdateSystem.swift +0 -33
  71. package/template/visionOSApp/web-spatial/libs/webView/backend/NativeWebView.swift +0 -319
  72. package/template/visionOSApp/web-spatial/libs/webView/manifest.swift +0 -92
  73. package/template/visionOSApp/web-spatial/static-web/index.html +0 -9
  74. package/template/visionOSApp/web-spatial/views/HideViewModifier.swift +0 -17
  75. package/template/visionOSApp/web-spatial/views/ImmersiveView.swift +0 -24
  76. package/template/visionOSApp/web-spatial/views/LoadingView.swift +0 -29
  77. package/template/visionOSApp/web-spatial/views/MaterialWithBorderCornerModifier.swift +0 -82
  78. package/template/visionOSApp/web-spatial/views/OpenDismissHandlerUI.swift +0 -52
  79. package/template/visionOSApp/web-spatial/views/PlainWindowContainerView.swift +0 -84
  80. package/template/visionOSApp/web-spatial/views/SpatialModel3DView.swift +0 -193
  81. package/template/visionOSApp/web-spatial/views/SpatialViewUI.swift +0 -168
  82. package/template/visionOSApp/web-spatial/views/SpatialWebViewUI.swift +0 -186
  83. package/template/visionOSApp/web-spatial/views/VolumetricWindowContainerView.swift +0 -38
  84. package/template/visionOSApp/web-spatial/views/ui/NavView.swift +0 -125
  85. package/template/visionOSApp/web-spatial/web_spatialApp.swift +0 -158
  86. package/template/visionOSApp/web-spatial.xcodeproj/project.pbxproj +0 -686
  87. package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/contents.xcworkspacedata +0 -7
  88. package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +0 -8
  89. package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings +0 -5
  90. package/template/visionOSApp/web-spatial.xcodeproj/project.xcworkspace/xcuserdata/bytedance.xcuserdatad/WorkspaceSettings.xcsettings +0 -14
  91. package/template/visionOSApp/web-spatial.xcodeproj/xcshareddata/xcschemes/web-spatial.xcscheme +0 -115
  92. package/template/visionOSApp/web-spatial.xcodeproj/xcuserdata/bytedance.xcuserdatad/xcschemes/xcschememanagement.plist +0 -27
  93. package/template/visionOSApp/web-spatialTests/web_spatialTests.swift +0 -34
package/README.md ADDED
@@ -0,0 +1,63 @@
1
+ # **WebSpatial Builder documentation**
2
+
3
+ # **Introduction**
4
+
5
+ WebSpatial Builder is a client-side CLI tool used to generate cross platform XRApp projects.
6
+ Currently supporting the generation of XRApp for Apple Vision Pro.
7
+
8
+ # **How to use**
9
+ Ensure that you have installed Xcode and Apple Vision Pro simulator.
10
+ If you wish to package an IPA file or publish it to App Store Connect, you need to register an Apple developer account in advance and confirm that you have upload permissions.
11
+ ## **Install**
12
+ `pnpm i @webspatial/builder`
13
+
14
+ ## **Usage**
15
+ Build and run local WebSpatial project on Apple Vision Pro simulator.
16
+
17
+ `webspatial-builder run --manifest=public/manifest.json --project=dist --base-url=dist/webspatial/avp --platform=visionos`
18
+
19
+ - Default parameters
20
+ - --manifest=public/manifest.json
21
+ - --project=dist
22
+ - --platform=visionos
23
+ - Necessary parameters
24
+ - --base-url
25
+
26
+ > The --base-url is the root path to the project. It will be combined with start_url in the manifest.json file to generate the final URL.
27
+ >
28
+ >**For example:**
29
+ >```
30
+ >Example 1:
31
+ >start_url:./a/index.html
32
+ >--base-url:dist/webspatial/avp
33
+ >final url:dist/webspatial/avp/a/index.html
34
+ >
35
+ >Example 2:
36
+ >start_url:https://www.domain1.com/a/index.html
37
+ >--base-url:https://www.domain2.com/webspatial/avp
38
+ >final url:https://www.domain2.com/webspatial/avp/index.html
39
+ >
40
+ >Example 3:
41
+ >start_url:https://www.domain1.com/a/index.html
42
+ >--base-url:dist/webspatial/avp
43
+ >final url:dist/webspatial/avp/index.html
44
+ >```
45
+
46
+ Package an IPA file.
47
+
48
+ `webspatial-builder build --manifest=manifest.json --project=dist --base-url=dist/webspatial/avp --platform=visionos --teamId=yourTeamId`
49
+
50
+ - Necessary parameters
51
+ - --base-url
52
+ - --teamId
53
+
54
+
55
+ Publish to App Store Connect.
56
+ `webspatial-builder publish --manifest=manifest.json --project=dist --base-url=dist/webspatial/avp --platform=visionos --teamId=yourTeamId --version=projectVersion --u=yourAppleId --p=yourAppSpecificCode`
57
+
58
+ - Necessary parameters
59
+ - --base-url
60
+ - --teamId
61
+ - --version
62
+ - --u
63
+ - --p
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x1de7a3=_0x1ad2;function _0x1ad2(_0x31d094,_0x48f7f6){const _0x435474=_0x4354();return _0x1ad2=function(_0x1ad212,_0x38714d){_0x1ad212=_0x1ad212-0x144;let _0x23343e=_0x435474[_0x1ad212];return _0x23343e;},_0x1ad2(_0x31d094,_0x48f7f6);}function _0x4354(){const _0x1488df=['slice','2292834fhfywy','1615962ujglIX','CustomError','ConsoleLog','cli','1609128JQVpvF','./lib/utils/CustomError','customMessage','3camfGw','8RzbtsO','./lib/utils/Log','13273127HomLYF','842661nebbtG','error','code','__esModule','Cli','defineProperty','isArray','220pGlRHJ','forEach','exit','message','676950QFjUZA','1501424IKPNpb'];_0x4354=function(){return _0x1488df;};return _0x4354();}(function(_0x5e9c0d,_0x206ba2){const _0x3c62d0=_0x1ad2,_0x53c4f4=_0x5e9c0d();while(!![]){try{const _0x37a398=parseInt(_0x3c62d0(0x144))/0x1+-parseInt(_0x3c62d0(0x146))/0x2*(parseInt(_0x3c62d0(0x14e))/0x3)+parseInt(_0x3c62d0(0x14b))/0x4+parseInt(_0x3c62d0(0x15d))/0x5+parseInt(_0x3c62d0(0x147))/0x6+parseInt(_0x3c62d0(0x151))/0x7*(parseInt(_0x3c62d0(0x14f))/0x8)+-parseInt(_0x3c62d0(0x152))/0x9*(parseInt(_0x3c62d0(0x159))/0xa);if(_0x37a398===_0x206ba2)break;else _0x53c4f4['push'](_0x53c4f4['shift']());}catch(_0x59a2ef){_0x53c4f4['push'](_0x53c4f4['shift']());}}}(_0x4354,0xf3bb9));Object[_0x1de7a3(0x157)](exports,_0x1de7a3(0x155),{'value':!![]});const Cli_1=require('./lib/Cli'),Log_1=require(_0x1de7a3(0x150)),CustomError_1=require(_0x1de7a3(0x14c));module['exports']=async()=>{const _0x179532=_0x1de7a3,_0x4f0bd2=new Cli_1[(_0x179532(0x156))](),_0x5748f3=new Log_1[(_0x179532(0x149))](_0x179532(0x14a)),_0x506a34=process['argv'][_0x179532(0x145)](0x2);let _0x30eb01;try{_0x30eb01=await _0x4f0bd2['run'](_0x506a34);}catch(_0x29f333){if(_0x29f333 instanceof CustomError_1[_0x179532(0x148)]){const _0x2d436a=_0x29f333[_0x179532(0x14d)];Array[_0x179532(0x158)](_0x2d436a)?_0x2d436a[_0x179532(0x15a)](_0x3efd39=>{const _0x30c459=_0x179532;_0x5748f3[_0x30c459(0x153)](_0x3efd39[_0x30c459(0x154)]+':\x20'+_0x3efd39[_0x30c459(0x15c)]);}):_0x5748f3[_0x179532(0x153)](_0x2d436a['code']+':\x20'+_0x2d436a[_0x179532(0x15c)]);}else _0x5748f3[_0x179532(0x153)](_0x29f333[_0x179532(0x15c)]);_0x30eb01=![];}!_0x30eb01?process[_0x179532(0x15b)](0x1):process[_0x179532(0x15b)](0x0);};
1
+ 'use strict';const _0x503c86=_0x1d66;function _0x2407(){const _0x1c166b=['run','75128VMpLnU','Cli','136332Neqbth','argv','exit','cli','33yAMXzZ','ConsoleLog','./lib/utils/Log','2585682gmjDQF','code','slice','660672REhaTX','defineProperty','exports','116982FKtywP','555004npZQYO','isArray','forEach','454140bYmztY','56ehvmzy','error','./lib/Cli'];_0x2407=function(){return _0x1c166b;};return _0x2407();}(function(_0x204823,_0x3ea306){const _0x23ac66=_0x1d66,_0x33dc1b=_0x204823();while(!![]){try{const _0x1d3f78=-parseInt(_0x23ac66(0x13d))/0x1+-parseInt(_0x23ac66(0x132))/0x2*(-parseInt(_0x23ac66(0x141))/0x3)+-parseInt(_0x23ac66(0x133))/0x4+parseInt(_0x23ac66(0x136))/0x5+parseInt(_0x23ac66(0x12f))/0x6+-parseInt(_0x23ac66(0x137))/0x7*(-parseInt(_0x23ac66(0x13b))/0x8)+-parseInt(_0x23ac66(0x144))/0x9;if(_0x1d3f78===_0x3ea306)break;else _0x33dc1b['push'](_0x33dc1b['shift']());}catch(_0x377835){_0x33dc1b['push'](_0x33dc1b['shift']());}}}(_0x2407,0x572e0));function _0x1d66(_0x163225,_0x5279b0){const _0x240701=_0x2407();return _0x1d66=function(_0x1d661e,_0x37f18f){_0x1d661e=_0x1d661e-0x12d;let _0x369539=_0x240701[_0x1d661e];return _0x369539;},_0x1d66(_0x163225,_0x5279b0);}Object[_0x503c86(0x130)](exports,'__esModule',{'value':!![]});const Cli_1=require(_0x503c86(0x139)),Log_1=require(_0x503c86(0x143)),CustomError_1=require('./lib/utils/CustomError');module[_0x503c86(0x131)]=async()=>{const _0x2a650b=_0x503c86,_0x1b886f=new Cli_1[(_0x2a650b(0x13c))](),_0x46f3a7=new Log_1[(_0x2a650b(0x142))](_0x2a650b(0x140)),_0x1d8f68=process[_0x2a650b(0x13e)][_0x2a650b(0x12e)](0x2);let _0xef7bbb;try{_0xef7bbb=await _0x1b886f[_0x2a650b(0x13a)](_0x1d8f68);}catch(_0x5c12cc){if(_0x5c12cc instanceof CustomError_1['CustomError']){const _0x147b0e=_0x5c12cc['customMessage'];Array[_0x2a650b(0x134)](_0x147b0e)?_0x147b0e[_0x2a650b(0x135)](_0x48fb65=>{const _0x5b09ad=_0x2a650b;_0x46f3a7['error'](_0x48fb65[_0x5b09ad(0x12d)]+':\x20'+_0x48fb65['message']);}):_0x46f3a7[_0x2a650b(0x138)](_0x147b0e[_0x2a650b(0x12d)]+':\x20'+_0x147b0e['message']);}else _0x46f3a7['error'](_0x5c12cc['message']);_0xef7bbb=![];}!_0xef7bbb?process[_0x2a650b(0x13f)](0x1):process[_0x2a650b(0x13f)](0x0);};
package/dist/lib/Cli.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x1696(){const _0x24634e=['node','run','\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands','setDownloadFile','start','812782aAkxBm','19715427VEpEyz','downloadFile','Cli','fetch','fetchUtils','major','10raShvC','27180UIajSO','3565975nSJvvh','7932JLrqQI','setDecompressResponseBuffer','versions','2099644UXPlEb','5978688ABACTr','./utils/FetchUtils-1','store','help','semver','__esModule','1708zncnrM','dev','./cmds/build','build','Current\x20Node.js\x20version\x20is\x20','./cmds/version','decompressResponseBuffer','version','minimist','./cmds/help','2QZmtKH','length'];_0x1696=function(){return _0x24634e;};return _0x1696();}const _0x19f9b7=_0x2e0f;(function(_0x387793,_0x580e20){const _0x1f4021=_0x2e0f,_0x1b71b9=_0x387793();while(!![]){try{const _0x74462b=-parseInt(_0x1f4021(0x9d))/0x1*(parseInt(_0x1f4021(0xbb))/0x2)+parseInt(_0x1f4021(0xa5))/0x3+-parseInt(_0x1f4021(0xaa))/0x4+parseInt(_0x1f4021(0xa6))/0x5+parseInt(_0x1f4021(0xa7))/0x6*(-parseInt(_0x1f4021(0xb1))/0x7)+-parseInt(_0x1f4021(0xab))/0x8+parseInt(_0x1f4021(0x9e))/0x9*(parseInt(_0x1f4021(0xa4))/0xa);if(_0x74462b===_0x580e20)break;else _0x1b71b9['push'](_0x1b71b9['shift']());}catch(_0x365c87){_0x1b71b9['push'](_0x1b71b9['shift']());}}}(_0x1696,0x7b5ad));function _0x2e0f(_0x5e06e2,_0x4ff317){const _0x16967f=_0x1696();return _0x2e0f=function(_0x2e0f91,_0x456836){_0x2e0f91=_0x2e0f91-0x9a;let _0x5377c4=_0x16967f[_0x2e0f91];return _0x5377c4;},_0x2e0f(_0x5e06e2,_0x4ff317);}Object['defineProperty'](exports,_0x19f9b7(0xb0),{'value':!![]}),exports[_0x19f9b7(0xa0)]=void 0x0;const minimist=require(_0x19f9b7(0xb9)),semver_1=require(_0x19f9b7(0xaf)),FetchUtils_1_1=require(_0x19f9b7(0xac)),help_1=require(_0x19f9b7(0xba)),build_1=require(_0x19f9b7(0xb3)),version_1=require(_0x19f9b7(0xb6)),fetch_1=require('./utils/fetch');class Cli{async[_0x19f9b7(0xbe)](_0x3f36a6){const _0xdf578a=_0x19f9b7;if((0x0,semver_1[_0xdf578a(0xa3)])(process[_0xdf578a(0xa9)][_0xdf578a(0xbd)])<0xe)throw new Error(_0xdf578a(0xb5)+process['versions']['node']+'.'+'\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.');FetchUtils_1_1[_0xdf578a(0xa2)]['setFetch'](fetch_1[_0xdf578a(0xa1)]),FetchUtils_1_1['fetchUtils'][_0xdf578a(0x9b)](fetch_1[_0xdf578a(0x9f)]),FetchUtils_1_1[_0xdf578a(0xa2)][_0xdf578a(0xa8)](fetch_1[_0xdf578a(0xb7)]);const _0x11e7b9=minimist(_0x3f36a6);let _0x5d406d=undefined;if(_0x11e7b9['_'][_0xdf578a(0xbc)]===0x0){if(_0x11e7b9['version'])_0x5d406d=_0xdf578a(0xb8);else _0x11e7b9['help']&&(_0x5d406d=_0xdf578a(0xae));}else _0x5d406d=_0x11e7b9['_'][0x0];!_0x5d406d&&(_0x5d406d=_0xdf578a(0xae));switch(_0x5d406d){case'help':case'h':return await(0x0,help_1[_0xdf578a(0xae)])(_0x11e7b9);case _0xdf578a(0xb4):return await(0x0,build_1[_0xdf578a(0x9c)])(_0x11e7b9);case'publish':return await(0x0,build_1[_0xdf578a(0xad)])(_0x11e7b9);case'dev':return await(0x0,build_1[_0xdf578a(0xb2)])(_0x11e7b9);case _0xdf578a(0xb8):{return await(0x0,version_1['version'])();}default:throw new Error('\x22'+_0x5d406d+_0xdf578a(0x9a));}}}exports[_0x19f9b7(0xa0)]=Cli;
1
+ 'use strict';const _0x170f18=_0x3a63;(function(_0x4dbe87,_0x11aefa){const _0x3b0692=_0x3a63,_0x443ee4=_0x4dbe87();while(!![]){try{const _0x167376=-parseInt(_0x3b0692(0xc3))/0x1*(parseInt(_0x3b0692(0xb5))/0x2)+parseInt(_0x3b0692(0xd2))/0x3+-parseInt(_0x3b0692(0xcc))/0x4+-parseInt(_0x3b0692(0xcf))/0x5+parseInt(_0x3b0692(0xbc))/0x6+parseInt(_0x3b0692(0xba))/0x7+-parseInt(_0x3b0692(0xc4))/0x8*(-parseInt(_0x3b0692(0xd4))/0x9);if(_0x167376===_0x11aefa)break;else _0x443ee4['push'](_0x443ee4['shift']());}catch(_0x3ed998){_0x443ee4['push'](_0x443ee4['shift']());}}}(_0x5e4f,0x958d1));function _0x3a63(_0xf4e824,_0x13dfc2){const _0x5e4f43=_0x5e4f();return _0x3a63=function(_0x3a631f,_0x30f80e){_0x3a631f=_0x3a631f-0xb4;let _0x5e575c=_0x5e4f43[_0x3a631f];return _0x5e575c;},_0x3a63(_0xf4e824,_0x13dfc2);}Object[_0x170f18(0xbe)](exports,_0x170f18(0xc8),{'value':!![]}),exports['Cli']=void 0x0;const minimist=require(_0x170f18(0xc6)),semver_1=require('semver'),FetchUtils_1_1=require('./utils/FetchUtils-1'),help_1=require(_0x170f18(0xb8)),build_1=require(_0x170f18(0xb9)),version_1=require(_0x170f18(0xd0)),fetch_1=require('./utils/fetch');function _0x5e4f(){const _0x239d98=['./cmds/build','6871599MHpUzN','publish','1403778eHiWKN','fetchUtils','defineProperty','setDownloadFile','length','build','\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.','1238KkGFCN','185160cpchZq','help','minimist','decompressResponseBuffer','__esModule','\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands','fetch','setDecompressResponseBuffer','4893864hWkAkO','major','start','3204170POaLLW','./cmds/version','Cli','2427501msITqx','version','468KauhxJ','downloadFile','versions','setFetch','1214GFVquj','run','node','./cmds/help'];_0x5e4f=function(){return _0x239d98;};return _0x5e4f();}class Cli{async['run'](_0x228855){const _0x374085=_0x170f18;if((0x0,semver_1[_0x374085(0xcd)])(process[_0x374085(0xd6)][_0x374085(0xb7)])<0xe)throw new Error('Current\x20Node.js\x20version\x20is\x20'+process[_0x374085(0xd6)][_0x374085(0xb7)]+'.'+_0x374085(0xc2));FetchUtils_1_1[_0x374085(0xbd)][_0x374085(0xb4)](fetch_1[_0x374085(0xca)]),FetchUtils_1_1['fetchUtils'][_0x374085(0xbf)](fetch_1[_0x374085(0xd5)]),FetchUtils_1_1[_0x374085(0xbd)][_0x374085(0xcb)](fetch_1[_0x374085(0xc7)]);const _0x563532=minimist(_0x228855);let _0x376c8d=undefined;if(_0x563532['_'][_0x374085(0xc0)]===0x0){if(_0x563532[_0x374085(0xd3)])_0x376c8d='version';else _0x563532[_0x374085(0xc5)]&&(_0x376c8d=_0x374085(0xc5));}else _0x376c8d=_0x563532['_'][0x0];!_0x376c8d&&(_0x376c8d=_0x374085(0xc5));switch(_0x376c8d){case _0x374085(0xc5):case'h':return await(0x0,help_1[_0x374085(0xc5)])(_0x563532);case _0x374085(0xc1):return await(0x0,build_1[_0x374085(0xce)])(_0x563532);case _0x374085(0xbb):return await(0x0,build_1['store'])(_0x563532);case'run':return await(0x0,build_1[_0x374085(0xb6)])(_0x563532);case _0x374085(0xd3):{return await(0x0,version_1['version'])();}default:throw new Error('\x22'+_0x376c8d+_0x374085(0xc9));}}}exports[_0x170f18(0xd1)]=Cli;
@@ -1,4 +1,4 @@
1
1
  import { ParsedArgs } from 'minimist';
2
2
  export declare function start(args: ParsedArgs, isDev?: boolean): Promise<any>;
3
3
  export declare function store(args: ParsedArgs): Promise<boolean>;
4
- export declare function dev(args: ParsedArgs): Promise<boolean>;
4
+ export declare function run(args: ParsedArgs): Promise<boolean>;
@@ -1 +1 @@
1
- 'use strict';function _0x49f0(_0x5052e7,_0x1cb93f){const _0x4fee46=_0x4fee();return _0x49f0=function(_0x49f095,_0x7bb119){_0x49f095=_0x49f095-0xc7;let _0x288291=_0x4fee46[_0x49f095];return _0x288291;},_0x49f0(_0x5052e7,_0x1cb93f);}const _0x41c9b7=_0x49f0;(function(_0x4cbd64,_0x73452c){const _0x5ffb7e=_0x49f0,_0x2eeafb=_0x4cbd64();while(!![]){try{const _0x5a98c3=-parseInt(_0x5ffb7e(0xdd))/0x1*(-parseInt(_0x5ffb7e(0xe4))/0x2)+parseInt(_0x5ffb7e(0xde))/0x3+-parseInt(_0x5ffb7e(0xdb))/0x4+-parseInt(_0x5ffb7e(0xe5))/0x5*(-parseInt(_0x5ffb7e(0xe8))/0x6)+parseInt(_0x5ffb7e(0xd7))/0x7+parseInt(_0x5ffb7e(0xd2))/0x8*(parseInt(_0x5ffb7e(0xdf))/0x9)+-parseInt(_0x5ffb7e(0xe0))/0xa;if(_0x5a98c3===_0x73452c)break;else _0x2eeafb['push'](_0x2eeafb['shift']());}catch(_0x4b0732){_0x2eeafb['push'](_0x2eeafb['shift']());}}}(_0x4fee,0x96bde));Object['defineProperty'](exports,_0x41c9b7(0xc9),{'value':!![]}),exports[_0x41c9b7(0xcf)]=start,exports[_0x41c9b7(0xd0)]=store,exports[_0x41c9b7(0xce)]=dev;const pwa_1=require('../pwa'),resource_1=require(_0x41c9b7(0xd4)),xcode_1=require(_0x41c9b7(0xe3)),check_1=require(_0x41c9b7(0xd6));async function start(_0x55992c,_0x4c20cf=![]){const _0x57a263=_0x41c9b7;(0x0,check_1[_0x57a263(0xc7)])(_0x55992c,_0x4c20cf),console[_0x57a263(0xd3)](_0x57a263(0xcb));let _0x352ba5=await pwa_1[_0x57a263(0xeb)][_0x57a263(0xe2)](_0x55992c,_0x4c20cf);!_0x352ba5[_0x57a263(0xe9)]&&(await resource_1[_0x57a263(0xdc)][_0x57a263(0xc8)](_0x55992c[_0x57a263(0xed)]),console['log']('move\x20web\x20project:\x20ok'));const _0x1b9858=await resource_1[_0x57a263(0xdc)][_0x57a263(0xca)](_0x352ba5);return console[_0x57a263(0xd3)](_0x57a263(0xcd)),await xcode_1[_0x57a263(0xee)][_0x57a263(0xe6)]({'icon':_0x1b9858,'manifestInfo':_0x352ba5,'teamId':_0x55992c['teamId'],'version':_0x55992c[_0x57a263(0xec)],'buildType':_0x55992c['buildType'],'export':_0x55992c[_0x57a263(0xea)]},_0x4c20cf),console[_0x57a263(0xd3)](_0x57a263(0xe7)),_0x352ba5;}function _0x4fee(){const _0x5c6618=['store','upload','496LZbMEF','log','../resource','runWithSimulator','./check','3424687UUivnO','name','buildType','SpatialWebTest','3261248AqVnrJ','ResourceManager','71aebPwO','1016274qRZnSs','75186EwzPCc','6799980frkGnr','json','generator','../xcode','8182UJIaoo','85bbLgos','parseProject','-------------------\x20build\x20end\x20-------------------','168120RfPaou','fromNet','export','PWAGenerator','version','project','XcodeManager','checkBuildParams','moveProjectFrom','__esModule','generateIcon','-------------------\x20build\x20start\x20-------------------','app-store-connect','generate\x20icon:\x20ok','dev','start'];_0x4fee=function(){return _0x5c6618;};return _0x4fee();}async function store(_0x581081){const _0x8d769c=_0x41c9b7;(0x0,check_1['checkStoreParams'])(_0x581081);let _0x12f9c8={'name':_0x8d769c(0xda)};_0x581081[_0x8d769c(0xd9)]=_0x8d769c(0xcc);if(_0x581081['name'])_0x12f9c8['name']=_0x581081['name'];else{const _0x1585b1=await start(_0x581081);if(!_0x1585b1)return![];_0x12f9c8[_0x8d769c(0xd8)]=_0x1585b1[_0x8d769c(0xe1)][_0x8d769c(0xd8)];}return await xcode_1[_0x8d769c(0xee)][_0x8d769c(0xd1)](_0x581081,_0x12f9c8),!![];}async function dev(_0x185e8f){const _0x28a736=_0x41c9b7;let _0x206bfd={'name':_0x28a736(0xda),'id':'com.SpatialWeb.test'};const _0x51e261=await start(_0x185e8f,!![]);if(!_0x51e261)return![];return _0x206bfd[_0x28a736(0xd8)]=_0x51e261[_0x28a736(0xe1)][_0x28a736(0xd8)],_0x206bfd['id']=_0x51e261[_0x28a736(0xe1)]['id'],await xcode_1[_0x28a736(0xee)][_0x28a736(0xd5)](_0x206bfd),!![];}
1
+ 'use strict';const _0x3ebd5d=_0x147e;(function(_0x4008f6,_0x594e6b){const _0x300e24=_0x147e,_0x269462=_0x4008f6();while(!![]){try{const _0x33d063=-parseInt(_0x300e24(0xde))/0x1*(parseInt(_0x300e24(0xce))/0x2)+-parseInt(_0x300e24(0xc8))/0x3+parseInt(_0x300e24(0xe5))/0x4*(parseInt(_0x300e24(0xdb))/0x5)+parseInt(_0x300e24(0xda))/0x6*(parseInt(_0x300e24(0xec))/0x7)+parseInt(_0x300e24(0xdf))/0x8*(parseInt(_0x300e24(0xf1))/0x9)+parseInt(_0x300e24(0xe7))/0xa*(parseInt(_0x300e24(0xc9))/0xb)+parseInt(_0x300e24(0xcb))/0xc*(-parseInt(_0x300e24(0xeb))/0xd);if(_0x33d063===_0x594e6b)break;else _0x269462['push'](_0x269462['shift']());}catch(_0x4ffb05){_0x269462['push'](_0x269462['shift']());}}}(_0x2c61,0x434c9));Object[_0x3ebd5d(0xe2)](exports,'__esModule',{'value':!![]}),exports['start']=start,exports['store']=store,exports[_0x3ebd5d(0xcf)]=run;const pwa_1=require(_0x3ebd5d(0xef)),resource_1=require(_0x3ebd5d(0xed)),xcode_1=require(_0x3ebd5d(0xe4)),check_1=require(_0x3ebd5d(0xd3));async function start(_0x5e66df,_0x1c5651=![]){const _0xb9b085=_0x3ebd5d;var _0x405d18;resource_1[_0xb9b085(0xe3)][_0xb9b085(0xea)](_0x5e66df[_0xb9b085(0xd2)]),(0x0,check_1[_0xb9b085(0xdd)])(_0x5e66df,_0x1c5651),console[_0xb9b085(0xd8)](_0xb9b085(0xe9));let _0x7b2b09=await pwa_1['PWAGenerator'][_0xb9b085(0xd7)](_0x5e66df,_0x1c5651);!_0x7b2b09[_0xb9b085(0xcd)]&&(await resource_1['ResourceManager'][_0xb9b085(0xd4)]((_0x405d18=_0x5e66df[_0xb9b085(0xd5)])!==null&&_0x405d18!==void 0x0?_0x405d18:_0xb9b085(0xca)),console[_0xb9b085(0xd8)](_0xb9b085(0xd6)));const _0x498bdb=await resource_1[_0xb9b085(0xe3)][_0xb9b085(0xc6)](_0x7b2b09);return console['log'](_0xb9b085(0xcc)),await xcode_1['XcodeManager'][_0xb9b085(0xd0)]({'icon':_0x498bdb,'manifestInfo':_0x7b2b09,'teamId':_0x5e66df[_0xb9b085(0xe8)],'version':_0x5e66df[_0xb9b085(0xd1)],'buildType':_0x5e66df[_0xb9b085(0xe6)],'export':_0x5e66df['export']},_0x1c5651),console[_0xb9b085(0xd8)](_0xb9b085(0xf0)),_0x7b2b09;}function _0x147e(_0x25818e,_0x4a7e83){const _0x2c61d0=_0x2c61();return _0x147e=function(_0x147e50,_0x5726c2){_0x147e50=_0x147e50-0xc5;let _0x50388c=_0x2c61d0[_0x147e50];return _0x50388c;},_0x147e(_0x25818e,_0x4a7e83);}function _0x2c61(){const _0x2e795e=['checkBuildParams','5861sDFnkV','296kxkZfC','XcodeManager','SpatialWebTest','defineProperty','ResourceManager','../xcode','100DoazxD','buildType','1810jILNxa','teamId','-------------------\x20build\x20start\x20-------------------','checkPlatformPath','660244bmMgxG','133FlgMeM','../resource','checkStoreParams','../pwa','-------------------\x20build\x20end\x20-------------------','12069KHuVuZ','name','generateIcon','json','1612815sPTTSp','16203rAQCwz','dist','12XDxpWT','generate\x20icon:\x20ok','fromNet','28uvgKgw','run','parseProject','version','platform','./check','moveProjectFrom','project','move\x20web\x20project:\x20ok','generator','log','upload','85326zIDgMt','71935ytpMzE','app-store-connect'];_0x2c61=function(){return _0x2e795e;};return _0x2c61();}async function store(_0x19d32c){const _0x23e656=_0x3ebd5d;resource_1['ResourceManager']['checkPlatformPath'](_0x19d32c[_0x23e656(0xd2)]),(0x0,check_1[_0x23e656(0xee)])(_0x19d32c);let _0x4c64b7={'name':_0x23e656(0xe1)};_0x19d32c[_0x23e656(0xe6)]=_0x23e656(0xdc);if(_0x19d32c[_0x23e656(0xc5)])_0x4c64b7[_0x23e656(0xc5)]=_0x19d32c[_0x23e656(0xc5)];else{const _0xfd0e3e=await start(_0x19d32c);if(!_0xfd0e3e)return![];_0x4c64b7['name']=_0xfd0e3e['json'][_0x23e656(0xc5)];}return await xcode_1[_0x23e656(0xe0)][_0x23e656(0xd9)](_0x19d32c,_0x4c64b7),!![];}async function run(_0x5f5422){const _0x14da7c=_0x3ebd5d;resource_1['ResourceManager'][_0x14da7c(0xea)](_0x5f5422['platform']);let _0x14e58d={'name':_0x14da7c(0xe1),'id':'com.SpatialWeb.test'};const _0x306585=await start(_0x5f5422,!![]);if(!_0x306585)return![];return _0x14e58d[_0x14da7c(0xc5)]=_0x306585[_0x14da7c(0xc7)][_0x14da7c(0xc5)],_0x14e58d['id']=_0x306585[_0x14da7c(0xc7)]['id'],await xcode_1[_0x14da7c(0xe0)]['runWithSimulator'](_0x14e58d),!![];}
@@ -1 +1 @@
1
- 'use strict';var _0x4c8b42=_0x5714;(function(_0x4fc1e8,_0x23812d){var _0x3e9d3f=_0x5714,_0x502605=_0x4fc1e8();while(!![]){try{var _0x33c5cd=-parseInt(_0x3e9d3f(0x8c))/0x1+parseInt(_0x3e9d3f(0x8a))/0x2+-parseInt(_0x3e9d3f(0x90))/0x3+parseInt(_0x3e9d3f(0x93))/0x4*(-parseInt(_0x3e9d3f(0x82))/0x5)+parseInt(_0x3e9d3f(0x89))/0x6*(parseInt(_0x3e9d3f(0x88))/0x7)+parseInt(_0x3e9d3f(0x92))/0x8+parseInt(_0x3e9d3f(0x86))/0x9;if(_0x33c5cd===_0x23812d)break;else _0x502605['push'](_0x502605['shift']());}catch(_0x412fd4){_0x502605['push'](_0x502605['shift']());}}}(_0x4861,0xe0b1a));function _0x5714(_0x369066,_0x22c642){var _0x4861fe=_0x4861();return _0x5714=function(_0x571464,_0x3d2a6f){_0x571464=_0x571464-0x81;var _0x3f48e5=_0x4861fe[_0x571464];return _0x3f48e5;},_0x5714(_0x369066,_0x22c642);}Object[_0x4c8b42(0x8f)](exports,_0x4c8b42(0x81),{'value':!![]}),exports[_0x4c8b42(0x91)]=checkBuildParams,exports[_0x4c8b42(0x8b)]=checkStoreParams;function checkBuildParams(_0x38ca21,_0x4d2a21=![]){var _0x4d8386=_0x4c8b42;if(!_0x38ca21[_0x4d8386(0x8d)]&&!_0x38ca21[_0x4d8386(0x84)])throw new Error(_0x4d8386(0x83));if(_0x38ca21['manifest']&&_0x38ca21['manifest-url'])throw new Error(_0x4d8386(0x85));if(!_0x38ca21['teamId']&&!_0x4d2a21)throw new Error('teamId\x20is\x20required');}function checkStoreParams(_0x1bc7b2){var _0x487a58=_0x4c8b42;if(!(_0x1bc7b2['u']&&_0x1bc7b2['p'])&&!(_0x1bc7b2['k']&&_0x1bc7b2['i']))throw new Error(_0x487a58(0x8e));if(!_0x1bc7b2['version'])throw new Error(_0x487a58(0x87));}function _0x4861(){var _0x468e89=['version\x20is\x20required','6433ROLEie','7482nZaGfm','3275514SWTAAH','checkStoreParams','1093283hoOcOt','manifest','u\x20and\x20p\x20or\x20k\x20and\x20i\x20is\x20required','defineProperty','2936382sHqcSI','checkBuildParams','7315736wnfUIp','7225020XtQukJ','__esModule','5abCGtx','manifest\x20or\x20manifest-url\x20is\x20required','manifest-url','manifest\x20and\x20manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time','9904149QSfbzs'];_0x4861=function(){return _0x468e89;};return _0x4861();}
1
+ 'use strict';var _0x469a25=_0xa766;function _0xa766(_0x1cac87,_0x30081b){var _0x3453a8=_0x3453();return _0xa766=function(_0xa7667b,_0x2b5839){_0xa7667b=_0xa7667b-0x65;var _0x2106a7=_0x3453a8[_0xa7667b];return _0x2106a7;},_0xa766(_0x1cac87,_0x30081b);}(function(_0x344782,_0x545a85){var _0x1e96e2=_0xa766,_0x4e7b7e=_0x344782();while(!![]){try{var _0x413806=-parseInt(_0x1e96e2(0x69))/0x1+-parseInt(_0x1e96e2(0x6a))/0x2*(parseInt(_0x1e96e2(0x78))/0x3)+-parseInt(_0x1e96e2(0x7a))/0x4*(parseInt(_0x1e96e2(0x71))/0x5)+-parseInt(_0x1e96e2(0x72))/0x6+parseInt(_0x1e96e2(0x7b))/0x7*(parseInt(_0x1e96e2(0x6f))/0x8)+parseInt(_0x1e96e2(0x76))/0x9*(-parseInt(_0x1e96e2(0x6e))/0xa)+parseInt(_0x1e96e2(0x70))/0xb*(parseInt(_0x1e96e2(0x7c))/0xc);if(_0x413806===_0x545a85)break;else _0x4e7b7e['push'](_0x4e7b7e['shift']());}catch(_0x3191da){_0x4e7b7e['push'](_0x4e7b7e['shift']());}}}(_0x3453,0x4cf79));Object[_0x469a25(0x65)](exports,_0x469a25(0x75),{'value':!![]}),exports[_0x469a25(0x66)]=checkBuildParams,exports[_0x469a25(0x74)]=checkStoreParams;function _0x3453(){var _0x384c56=['99wKJzkt','base-url','18SLOJEB','manifest','52RylifK','203KfdpIM','16240428QfmEpW','version','defineProperty','checkBuildParams','teamId','manifest-url','529462rhfCnm','143876pXOjZh','--teamId\x20is\x20required','--base-url\x20is\x20required','version\x20is\x20required','527760nvIhqQ','165008vjGVGP','11BNclfP','25295WwrovM','173238lfTmrR','--u\x20and\x20--p\x20is\x20required','checkStoreParams','__esModule'];_0x3453=function(){return _0x384c56;};return _0x3453();}function checkBuildParams(_0x142054,_0x214fb8=![]){var _0x20bf04=_0x469a25;if(_0x142054[_0x20bf04(0x79)]&&_0x142054[_0x20bf04(0x68)])throw new Error('--manifest\x20and\x20--manifest-url\x20cannot\x20be\x20used\x20at\x20the\x20same\x20time');if(!_0x142054[_0x20bf04(0x67)]&&!_0x214fb8)throw new Error(_0x20bf04(0x6b));if(!_0x142054[_0x20bf04(0x77)])throw new Error(_0x20bf04(0x6c));}function checkStoreParams(_0x51f0b3){var _0x2e59b3=_0x469a25;if(!(_0x51f0b3['u']&&_0x51f0b3['p']))throw new Error(_0x2e59b3(0x73));if(!_0x51f0b3[_0x2e59b3(0x7d)])throw new Error(_0x2e59b3(0x6d));}
@@ -1 +1 @@
1
- 'use strict';const _0x49a55b=_0x3da6;(function(_0x193485,_0xef9eba){const _0xa54e61=_0x3da6,_0x2ea54b=_0x193485();while(!![]){try{const _0xb3cb42=-parseInt(_0xa54e61(0xb3))/0x1*(-parseInt(_0xa54e61(0xbc))/0x2)+-parseInt(_0xa54e61(0xc0))/0x3*(parseInt(_0xa54e61(0xab))/0x4)+-parseInt(_0xa54e61(0xa8))/0x5+-parseInt(_0xa54e61(0xb0))/0x6*(-parseInt(_0xa54e61(0xae))/0x7)+-parseInt(_0xa54e61(0xb6))/0x8*(parseInt(_0xa54e61(0xb9))/0x9)+-parseInt(_0xa54e61(0xba))/0xa*(-parseInt(_0xa54e61(0xb8))/0xb)+parseInt(_0xa54e61(0xaf))/0xc*(parseInt(_0xa54e61(0xc9))/0xd);if(_0xb3cb42===_0xef9eba)break;else _0x2ea54b['push'](_0x2ea54b['shift']());}catch(_0x5ba5a4){_0x2ea54b['push'](_0x2ea54b['shift']());}}}(_0x3336,0xd9792));function _0x3da6(_0x352e61,_0x32e2e3){const _0x33366c=_0x3336();return _0x3da6=function(_0x3da648,_0xb06615){_0x3da648=_0x3da648-0xa8;let _0x15fe9c=_0x33366c[_0x3da648];return _0x15fe9c;},_0x3da6(_0x352e61,_0x32e2e3);}Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[_0x49a55b(0xbe)]=help;const Log_1=require(_0x49a55b(0xb1)),HELP_MESSAGES=new Map([[_0x49a55b(0xbd),[_0x49a55b(0xcb),'','',_0x49a55b(0xaa),_0x49a55b(0xb4)+_0x49a55b(0xc6),_0x49a55b(0xc5),_0x49a55b(0xc7)][_0x49a55b(0xac)]('\x0a')],[_0x49a55b(0xc2),[_0x49a55b(0xca),'','',_0x49a55b(0xc8),'','',_0x49a55b(0xbf)][_0x49a55b(0xac)]('\x0a')],[_0x49a55b(0xa9),[_0x49a55b(0xca),'','',_0x49a55b(0xb5),'','',_0x49a55b(0xbb)][_0x49a55b(0xac)]('\x0a')],[_0x49a55b(0xc3),[_0x49a55b(0xca),'','',_0x49a55b(0xb7),'','','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','','',_0x49a55b(0xc1)]['join']('\x0a')]]);async function help(_0x235cd6,_0x348ef0=new Log_1[(_0x49a55b(0xad))](_0x49a55b(0xbe))){const _0x7d74f5=_0x49a55b,_0x3bba39=_0x235cd6['_'][0x1],_0x4f7b42=HELP_MESSAGES[_0x7d74f5(0xb2)](_0x3bba39)||HELP_MESSAGES[_0x7d74f5(0xb2)]('main');return _0x348ef0[_0x7d74f5(0xc4)](_0x4f7b42),!![];}function _0x3336(){const _0x396a16=['build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','5761016AMdSGx','webspatial\x20publish\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','11naIQxx','9gxyMXw','6431020VNkQGM','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','1239362ARQoyo','main','help','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','114teKVDw','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','build','publish','info','dev\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator','\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','78tHHkiN','Usage:','webspatial\x20[command]\x20<options>','281225REKxau','dev','help\x20................\x20shows\x20this\x20menu','160340wstdDF','join','ConsoleLog','7CxnQPM','618444Eyteyt','9710202YropSZ','../utils/Log','get','1ixDUKC'];_0x3336=function(){return _0x396a16;};return _0x3336();}
1
+ 'use strict';const _0x30a753=_0x5317;(function(_0x369f95,_0x7b98db){const _0x4ea494=_0x5317,_0x5239cc=_0x369f95();while(!![]){try{const _0xf596c8=-parseInt(_0x4ea494(0x1cd))/0x1+-parseInt(_0x4ea494(0x1c3))/0x2*(-parseInt(_0x4ea494(0x1c1))/0x3)+-parseInt(_0x4ea494(0x1d1))/0x4*(parseInt(_0x4ea494(0x1cc))/0x5)+parseInt(_0x4ea494(0x1d0))/0x6*(parseInt(_0x4ea494(0x1d4))/0x7)+-parseInt(_0x4ea494(0x1d2))/0x8*(parseInt(_0x4ea494(0x1ce))/0x9)+parseInt(_0x4ea494(0x1c2))/0xa*(parseInt(_0x4ea494(0x1c5))/0xb)+parseInt(_0x4ea494(0x1be))/0xc;if(_0xf596c8===_0x7b98db)break;else _0x5239cc['push'](_0x5239cc['shift']());}catch(_0x38a9dd){_0x5239cc['push'](_0x5239cc['shift']());}}}(_0xbf98,0x6f10d));function _0x5317(_0x25d53b,_0x2c94a0){const _0xbf98fa=_0xbf98();return _0x5317=function(_0x53171c,_0x215a37){_0x53171c=_0x53171c-0x1b9;let _0x283db1=_0xbf98fa[_0x53171c];return _0x283db1;},_0x5317(_0x25d53b,_0x2c94a0);}Object[_0x30a753(0x1cf)](exports,_0x30a753(0x1b9),{'value':!![]}),exports[_0x30a753(0x1c8)]=help;const Log_1=require(_0x30a753(0x1c7)),HELP_MESSAGES=new Map([['main',['webspatial\x20[command]\x20<options>','','',_0x30a753(0x1d6),_0x30a753(0x1c0)+_0x30a753(0x1c9),'run\x20................\x20build\x20and\x20run\x20WebSpatial\x20Project\x20on\x20Apple\x20Vision\x20Pro\x20simulator',_0x30a753(0x1ba)]['join']('\x0a')],[_0x30a753(0x1d5),[_0x30a753(0x1bb),'','','webspatial\x20build\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','','',_0x30a753(0x1d3)][_0x30a753(0x1c4)]('\x0a')],[_0x30a753(0x1bf),[_0x30a753(0x1bb),'','',_0x30a753(0x1d7),'','',_0x30a753(0x1cb)][_0x30a753(0x1c4)]('\x0a')],[_0x30a753(0x1da),[_0x30a753(0x1bb),'','',_0x30a753(0x1bd),'','',_0x30a753(0x1ca),'','',_0x30a753(0x1d9)]['join']('\x0a')]]);async function help(_0x4611d3,_0x59a760=new Log_1[(_0x30a753(0x1c6))](_0x30a753(0x1c8))){const _0x2306f4=_0x30a753,_0x189a91=_0x4611d3['_'][0x1],_0x5a3fb2=HELP_MESSAGES['get'](_0x189a91)||HELP_MESSAGES[_0x2306f4(0x1d8)]('main');return _0x59a760[_0x2306f4(0x1bc)](_0x5a3fb2),!![];}function _0xbf98(){const _0x4cfdcc=['3523128gaanBe','dev','build\x20................\x20initializes\x20a\x20new\x20WebSpatial\x20Project','4299fYECvM','20170NvMwrV','394izhNwF','join','2937yXDjLp','ConsoleLog','../utils/Log','help','\x20and\x20generates\x20an\x20Apple\x20Vision\x20Pro\x20App\x20from\x20a\x20WebSpatial\x20Project','webspatial\x20publish\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>','webspatial\x20dev\x20--manifest-url=<net-manifest-url>','65BHoecf','77276BIcgkq','1701378JvEQdt','defineProperty','4764AKejeQ','136596kVQEzP','16hdSCCZ','webspatial\x20build\x20--manifest-url=<net-manifest-url>\x20--teamId=<teamId>\x20[--version=version]\x20[--buildType=release-testing]','2114zmxmMe','build','help\x20................\x20shows\x20this\x20menu','webspatial\x20dev\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>','get','webspatial\x20publish\x20--name=<app-name>\x20--version=<version>\x20--u=<username>\x20--p=<password>','publish','__esModule','publish..............\x20upload\x20WebSpatial\x20Project\x20to\x20App\x20Store\x20Connect','Usage:','info','webspatial\x20publish\x20--manifest=<local-manifest-path>\x20--project=<local-web-project-path>\x20--teamId=<teamId>\x20--version=<version>\x20--u=<username>\x20--p=<password>'];_0xbf98=function(){return _0x4cfdcc;};return _0xbf98();}
@@ -1 +1 @@
1
- 'use strict';const _0x5a4b40=_0x5431;(function(_0x5f3e07,_0x17302a){const _0x340f6d=_0x5431,_0x8447d5=_0x5f3e07();while(!![]){try{const _0x3193c6=parseInt(_0x340f6d(0xb8))/0x1*(-parseInt(_0x340f6d(0xbd))/0x2)+-parseInt(_0x340f6d(0xbc))/0x3+parseInt(_0x340f6d(0xc3))/0x4*(parseInt(_0x340f6d(0xc2))/0x5)+-parseInt(_0x340f6d(0xb5))/0x6*(parseInt(_0x340f6d(0xbb))/0x7)+parseInt(_0x340f6d(0xb3))/0x8+parseInt(_0x340f6d(0xc1))/0x9*(-parseInt(_0x340f6d(0xb6))/0xa)+parseInt(_0x340f6d(0xc5))/0xb;if(_0x3193c6===_0x17302a)break;else _0x8447d5['push'](_0x8447d5['shift']());}catch(_0x5f43c1){_0x8447d5['push'](_0x8447d5['shift']());}}}(_0x209f,0x8776d));function _0x5431(_0x25c3f8,_0x4db86e){const _0x209f0f=_0x209f();return _0x5431=function(_0x5431bd,_0x351a41){_0x5431bd=_0x5431bd-0xb3;let _0xd14d95=_0x209f0f[_0x5431bd];return _0xd14d95;},_0x5431(_0x25c3f8,_0x4db86e);}function _0x209f(){const _0x23a8f8=['defineProperty','1329CuOGLt','readFile','version','203qcNGzG','692961GqwynD','1418yjSUJI','__esModule','../utils/Log','join','41778HznYnc','20fYEJtj','270416zRksbu','promises','26939649gtSBmC','4663496BvYpMU','../../../package.json','223914AehmmJ','1060AWlhHh'];_0x209f=function(){return _0x23a8f8;};return _0x209f();}Object[_0x5a4b40(0xb7)](exports,_0x5a4b40(0xbe),{'value':!![]}),exports[_0x5a4b40(0xba)]=version;const fs=require('fs'),path=require('path'),Log_1=require(_0x5a4b40(0xbf));async function version(_0x14fc7e=new Log_1['ConsoleLog']('version')){const _0x147809=_0x5a4b40,_0x346b33=path[_0x147809(0xc0)](__dirname,_0x147809(0xb4)),_0x2295cd=await(await fs[_0x147809(0xc4)][_0x147809(0xb9)](_0x346b33))['toString'](),_0x5437e5=JSON['parse'](_0x2295cd);return _0x14fc7e['info'](_0x5437e5['version']),!![];}
1
+ 'use strict';function _0x49a3(){const _0x17664b=['1455CXhysO','__esModule','1386TIcyVt','ConsoleLog','498WTRKOF','promises','1151548RKzVgc','join','279WNoYVt','version','312030PQHggw','readFile','1934002ssjfBn','272pJTBng','12204onSZIY','30065MKqOUn','info','defineProperty','1396cOmhff','10787fqWQEB','path','parse'];_0x49a3=function(){return _0x17664b;};return _0x49a3();}function _0x158b(_0x12043f,_0x4d22ee){const _0x49a325=_0x49a3();return _0x158b=function(_0x158b62,_0x30c801){_0x158b62=_0x158b62-0x117;let _0x45c169=_0x49a325[_0x158b62];return _0x45c169;},_0x158b(_0x12043f,_0x4d22ee);}const _0x4f0ab6=_0x158b;(function(_0x132fdc,_0x569afe){const _0x1c9e18=_0x158b,_0xb69be5=_0x132fdc();while(!![]){try{const _0x15a4a8=-parseInt(_0x1c9e18(0x123))/0x1+parseInt(_0x1c9e18(0x129))/0x2+-parseInt(_0x1c9e18(0x11d))/0x3*(-parseInt(_0x1c9e18(0x119))/0x4)+parseInt(_0x1c9e18(0x12c))/0x5*(-parseInt(_0x1c9e18(0x121))/0x6)+-parseInt(_0x1c9e18(0x11a))/0x7*(-parseInt(_0x1c9e18(0x12a))/0x8)+parseInt(_0x1c9e18(0x125))/0x9*(parseInt(_0x1c9e18(0x127))/0xa)+-parseInt(_0x1c9e18(0x11f))/0xb*(-parseInt(_0x1c9e18(0x12b))/0xc);if(_0x15a4a8===_0x569afe)break;else _0xb69be5['push'](_0xb69be5['shift']());}catch(_0x151e37){_0xb69be5['push'](_0xb69be5['shift']());}}}(_0x49a3,0x9aa7c));Object[_0x4f0ab6(0x118)](exports,_0x4f0ab6(0x11e),{'value':!![]}),exports['version']=version;const fs=require('fs'),path=require(_0x4f0ab6(0x11b)),Log_1=require('../utils/Log');async function version(_0x236e9d=new Log_1[(_0x4f0ab6(0x120))](_0x4f0ab6(0x126))){const _0x4216b5=_0x4f0ab6,_0xdd9934=path[_0x4216b5(0x124)](__dirname,'../../../package.json'),_0x8b33f5=await(await fs[_0x4216b5(0x122)][_0x4216b5(0x128)](_0xdd9934))['toString'](),_0x173807=JSON[_0x4216b5(0x11c)](_0x8b33f5);return _0x236e9d[_0x4216b5(0x117)](_0x173807[_0x4216b5(0x126)]),!![];}
@@ -1,5 +1,5 @@
1
1
  export declare function configId(manifestJson: Record<string, any>): void;
2
- export declare function configStartUrl(manifestJson: Record<string, any>, manifestUrl: string, fromNet: boolean): void;
2
+ export declare function configStartUrl(manifestJson: Record<string, any>, urlRoot: string): void;
3
3
  export declare function configScope(manifestJson: Record<string, any>, fromNet: boolean): void;
4
4
  export declare function configDisplay(manifestJson: Record<string, any>): void;
5
5
  export declare function configMainScene(manifestJson: Record<string, any>): void;
@@ -1 +1 @@
1
- 'use strict';const _0x25ece3=_0x5033;(function(_0x14c73c,_0x471c1c){const _0x585fd0=_0x5033,_0x5bd9b4=_0x14c73c();while(!![]){try{const _0x321f94=parseInt(_0x585fd0(0xc7))/0x1+-parseInt(_0x585fd0(0xc5))/0x2*(-parseInt(_0x585fd0(0xba))/0x3)+parseInt(_0x585fd0(0xbc))/0x4+-parseInt(_0x585fd0(0xd4))/0x5+parseInt(_0x585fd0(0xd0))/0x6*(-parseInt(_0x585fd0(0xe4))/0x7)+-parseInt(_0x585fd0(0xc0))/0x8*(parseInt(_0x585fd0(0xf9))/0x9)+-parseInt(_0x585fd0(0xf4))/0xa;if(_0x321f94===_0x471c1c)break;else _0x5bd9b4['push'](_0x5bd9b4['shift']());}catch(_0x2f86f4){_0x5bd9b4['push'](_0x5bd9b4['shift']());}}}(_0x127c,0x93744));function _0x5033(_0x3b4f81,_0x19ff86){const _0x127c69=_0x127c();return _0x5033=function(_0x50333a,_0x36a691){_0x50333a=_0x50333a-0xb4;let _0x2b61dc=_0x127c69[_0x50333a];return _0x2b61dc;},_0x5033(_0x3b4f81,_0x19ff86);}Object[_0x25ece3(0xcf)](exports,_0x25ece3(0xf2),{'value':!![]}),exports[_0x25ece3(0xcb)]=void 0x0,exports[_0x25ece3(0xeb)]=configId,exports[_0x25ece3(0xbe)]=configStartUrl,exports[_0x25ece3(0xdb)]=configScope,exports[_0x25ece3(0xdd)]=configDisplay,exports[_0x25ece3(0xf6)]=configMainScene,exports['configDeeplink']=configDeeplink;const utils_1=require(_0x25ece3(0xbd)),validate_1=require(_0x25ece3(0xc9)),path_1=require(_0x25ece3(0xb5));function configId(_0x427dcb){const _0x2ea946=_0x25ece3,_0x393e3c=new URL(_0x427dcb['id']);let _0x1b038b=_0x393e3c[_0x2ea946(0xe9)][_0x2ea946(0xe0)]('.')[_0x2ea946(0xe8)]();_0x427dcb['id']=_0x1b038b[_0x2ea946(0xd7)]('.');}function configStartUrl(_0x1f60ee,_0x26ac68,_0x163947){const _0x2a1ceb=_0x25ece3,_0x1dedc7=(0x0,validate_1[_0x2a1ceb(0xb8)])(_0x1f60ee[_0x2a1ceb(0xb7)]);let _0x5c5dbf=_0x1f60ee['start_url'];_0x163947?!_0x1dedc7&&(_0x5c5dbf=(0x0,path_1[_0x2a1ceb(0xd7)])((0x0,utils_1[_0x2a1ceb(0xd9)])(_0x26ac68),_0x1f60ee[_0x2a1ceb(0xb7)])):!_0x1dedc7&&(_0x5c5dbf=(0x0,path_1['join'])('./static-web',_0x1f60ee[_0x2a1ceb(0xb7)])),_0x1f60ee[_0x2a1ceb(0xb7)]=_0x5c5dbf;}function configScope(_0x2aaba4,_0x58a3f7){const _0x274c20=_0x25ece3;var _0x9189ac,_0x46fdd6,_0x5dc859;let _0x85bf8c='';const _0x5d3432=(0x0,validate_1[_0x274c20(0xb8)])(_0x2aaba4[_0x274c20(0xe3)]);if(_0x58a3f7&&_0x5d3432){const _0x176ac6=new URL((_0x9189ac=_0x2aaba4[_0x274c20(0xe3)])!==null&&_0x9189ac!==void 0x0?_0x9189ac:''),_0x25febd=new URL(_0x2aaba4[_0x274c20(0xb7)]);(_0x176ac6[_0x274c20(0xe9)]!==_0x25febd[_0x274c20(0xe9)]||_0x2aaba4[_0x274c20(0xb7)]['indexOf'](_0x85bf8c)!==0x0)&&(_0x85bf8c=(0x0,utils_1[_0x274c20(0xd9)])(_0x2aaba4[_0x274c20(0xb7)]));}else{if(_0x58a3f7&&!_0x5d3432){const _0x4a1aa7=_0x2aaba4[_0x274c20(0xb7)][_0x274c20(0xda)](_0x274c20(0xed))===0x0?_0x274c20(0xed):'https://';_0x85bf8c=(0x0,path_1[_0x274c20(0xd7)])(_0x2aaba4['start_url'][_0x274c20(0xd8)](_0x4a1aa7,''),(_0x46fdd6=_0x2aaba4[_0x274c20(0xe3)])!==null&&_0x46fdd6!==void 0x0?_0x46fdd6:''),_0x85bf8c=_0x4a1aa7+_0x85bf8c;}else _0x85bf8c=(0x0,path_1[_0x274c20(0xd7)])((0x0,utils_1[_0x274c20(0xd9)])(_0x2aaba4[_0x274c20(0xb7)]),(_0x5dc859=_0x2aaba4['scope'])!==null&&_0x5dc859!==void 0x0?_0x5dc859:'');}_0x2aaba4[_0x274c20(0xe3)]=_0x85bf8c;}function configDisplay(_0x514f06){const _0x3e2f23=_0x25ece3;let _0x3f6fb8=_0x514f06[_0x3e2f23(0xbb)];_0x3f6fb8!==_0x3e2f23(0xca)&&_0x3f6fb8!=='standalone'&&(_0x3f6fb8='standalone');if(_0x514f06['display_override']&&_0x514f06[_0x3e2f23(0xcc)][_0x3e2f23(0xe7)]>0x0){const _0x5604e2=_0x514f06[_0x3e2f23(0xcc)][_0x3e2f23(0xda)](_0x3e2f23(0xca)),_0x1bddcc=_0x514f06['display_override'][_0x3e2f23(0xda)](_0x3e2f23(0xdc));if(_0x5604e2>=0x0&&_0x1bddcc>=0x0)_0x3f6fb8=_0x1bddcc>_0x5604e2?_0x3e2f23(0xdc):_0x3e2f23(0xca);else{if(_0x5604e2>=0x0)_0x3f6fb8='minimal-ui';else _0x1bddcc>=0x0&&(_0x3f6fb8=_0x3e2f23(0xdc));}}}function configMainScene(_0x3c1aca){const _0x171625=_0x25ece3;var _0x3d983f,_0x5eadc9;const _0x3a3148=[_0x171625(0xc1),'contentMinSize',_0x171625(0xec)];let _0xe1e2bc={'defaultSize':{'width':0x500,'height':0x500},'resizability':'automatic'};if(_0x3c1aca['xr_main_scene']){if(typeof _0x3c1aca[_0x171625(0xf0)]===_0x171625(0xf3))_0xe1e2bc[_0x171625(0xcd)][_0x171625(0xb6)]=Number((_0x3d983f=_0x3c1aca['xr_main_scene'][_0x171625(0xf8)])===null||_0x3d983f===void 0x0?void 0x0:_0x3d983f[_0x171625(0xb6)])>0x0?_0x3c1aca[_0x171625(0xf0)]['default_size'][_0x171625(0xb6)]:0x500,_0xe1e2bc[_0x171625(0xcd)][_0x171625(0xe1)]=Number((_0x5eadc9=_0x3c1aca[_0x171625(0xf0)]['default_size'])===null||_0x5eadc9===void 0x0?void 0x0:_0x5eadc9[_0x171625(0xe1)])>0x0?_0x3c1aca[_0x171625(0xf0)][_0x171625(0xf8)]['height']:0x500,_0xe1e2bc[_0x171625(0xe5)]=_0x3a3148[_0x171625(0xc3)](_0x3c1aca[_0x171625(0xf0)][_0x171625(0xe5)])?_0x3c1aca[_0x171625(0xf0)][_0x171625(0xe5)]:_0x171625(0xc1),_0x3c1aca[_0x171625(0xe2)]=_0xe1e2bc;else typeof _0x3c1aca[_0x171625(0xf0)]===_0x171625(0xe6)&&(_0x3c1aca['mainScene']='dynamic');}}function _0x127c(){const _0x3f14c0=['defaultSize','magnet','defineProperty','100284YRTuuE','webcal','ftp','irc','509100HziQMs','protocol','news','join','replace','parseRouter','indexOf','configScope','standalone','configDisplay','mms','xmpp','split','height','mainScene','scope','119TobTgT','resizability','string','length','reverse','host','protocol_handlers','configId','contentSize','http://','splice','nntp','xr_main_scene','wtai','__esModule','object','10509040qfTsPN','web+','configMainScene','url','default_size','1441053awyABd','sftp','urn','tel','path','width','start_url','validateURL','openpgp4fpr','6ZRDbTX','display','2036272HDwpdH','../utils/utils','configStartUrl','matrix','32xGtlfi','automatic','ircs','includes','bitcoin','990792RDWgjj','geo','1181442MBwotd','mailto','./validate','minimal-ui','safelist','display_override'];_0x127c=function(){return _0x3f14c0;};return _0x127c();}function configDeeplink(_0x23f94f){const _0x41d2a1=_0x25ece3;if(_0x23f94f['protocol_handlers']&&_0x23f94f[_0x41d2a1(0xea)][_0x41d2a1(0xe7)]>0x0)for(var _0x368635=0x0;_0x368635<_0x23f94f['protocol_handlers'][_0x41d2a1(0xe7)];_0x368635++){const _0x2195a0=_0x23f94f[_0x41d2a1(0xea)][_0x368635];if(_0x2195a0[_0x41d2a1(0xd5)]&&(exports['safelist'][_0x41d2a1(0xc3)](_0x2195a0[_0x41d2a1(0xd5)])||_0x2195a0['protocol']['indexOf'](_0x41d2a1(0xf5))===0x0)){if(!((0x0,validate_1[_0x41d2a1(0xb8)])(_0x2195a0[_0x41d2a1(0xf7)])&&_0x2195a0[_0x41d2a1(0xf7)][_0x41d2a1(0xda)](_0x23f94f[_0x41d2a1(0xe3)])<0x0))continue;}_0x23f94f[_0x41d2a1(0xea)][_0x41d2a1(0xee)](_0x368635,0x1),_0x368635--;}}exports[_0x25ece3(0xcb)]=[_0x25ece3(0xc4),_0x25ece3(0xd2),'ftps',_0x25ece3(0xc6),'im',_0x25ece3(0xd3),_0x25ece3(0xc2),_0x25ece3(0xce),_0x25ece3(0xc8),_0x25ece3(0xbf),_0x25ece3(0xde),_0x25ece3(0xd6),_0x25ece3(0xef),_0x25ece3(0xb9),_0x25ece3(0xfa),'sip','sms','smsto','ssh',_0x25ece3(0xb4),_0x25ece3(0xfb),_0x25ece3(0xd1),_0x25ece3(0xf1),_0x25ece3(0xdf)];
1
+ 'use strict';const _0x59ba1d=_0x255a;(function(_0x1b4525,_0x2790d5){const _0x260c03=_0x255a,_0x48ff8d=_0x1b4525();while(!![]){try{const _0x6026a6=parseInt(_0x260c03(0x183))/0x1+-parseInt(_0x260c03(0x1aa))/0x2+-parseInt(_0x260c03(0x19e))/0x3*(-parseInt(_0x260c03(0x191))/0x4)+parseInt(_0x260c03(0x198))/0x5*(parseInt(_0x260c03(0x1bc))/0x6)+parseInt(_0x260c03(0x1af))/0x7+parseInt(_0x260c03(0x18a))/0x8*(-parseInt(_0x260c03(0x1ab))/0x9)+-parseInt(_0x260c03(0x193))/0xa;if(_0x6026a6===_0x2790d5)break;else _0x48ff8d['push'](_0x48ff8d['shift']());}catch(_0x3cf404){_0x48ff8d['push'](_0x48ff8d['shift']());}}}(_0xa4a5,0x259d2));Object[_0x59ba1d(0x1a5)](exports,_0x59ba1d(0x184),{'value':!![]}),exports[_0x59ba1d(0x1b0)]=void 0x0,exports[_0x59ba1d(0x1a7)]=configId,exports[_0x59ba1d(0x18c)]=configStartUrl,exports[_0x59ba1d(0x1be)]=configScope,exports[_0x59ba1d(0x1ad)]=configDisplay,exports[_0x59ba1d(0x19f)]=configMainScene,exports[_0x59ba1d(0x1a8)]=configDeeplink;const utils_1=require('../utils/utils'),validate_1=require('./validate'),path_1=require(_0x59ba1d(0x1b1));function configId(_0x1dd26f){const _0x2e24a1=_0x59ba1d,_0x7b4d1a=new URL(_0x1dd26f['id']);let _0x33a850=_0x7b4d1a[_0x2e24a1(0x1b6)][_0x2e24a1(0x1c2)]('.')[_0x2e24a1(0x194)]();_0x1dd26f['id']=_0x33a850['join']('.');}function configStartUrl(_0x5658a8,_0x4c28ef){const _0x22e17d=_0x59ba1d,_0x10ab71=(0x0,validate_1['validateURL'])(_0x5658a8[_0x22e17d(0x1b5)]),_0x5eb6f2=(0x0,validate_1[_0x22e17d(0x19c)])(_0x4c28ef);let _0x259e8a=_0x5658a8[_0x22e17d(0x1b5)];if(_0x10ab71){const _0x257f68=_0x259e8a['lastIndexOf']('/'),_0x569d9d=_0x259e8a[_0x22e17d(0x180)](_0x257f68,_0x259e8a['length']);_0x259e8a=_0x569d9d;}_0x5eb6f2?_0x259e8a=(0x0,path_1['join'])(_0x4c28ef,_0x259e8a):_0x259e8a=(0x0,path_1['join'])(_0x22e17d(0x1ac),_0x4c28ef,_0x259e8a),_0x5658a8[_0x22e17d(0x1b5)]=_0x259e8a;}function _0x255a(_0x2b508e,_0x3ac451){const _0xa4a5e4=_0xa4a5();return _0x255a=function(_0x255ada,_0x203559){_0x255ada=_0x255ada-0x17e;let _0x51e2ac=_0xa4a5e4[_0x255ada];return _0x51e2ac;},_0x255a(_0x2b508e,_0x3ac451);}function _0xa4a5(){const _0x10aca0=['protocol_handlers','string','split','default_size','ftps','scope','width','wtai','slice','minimal-ui','splice','16782OPEZGH','__esModule','nntp','https://','web+','sftp','object','72LRmson','urn','configStartUrl','protocol','dynamic','irc','replace','1132BxDdYL','sip','3321430KDGITB','reverse','contentSize','height','magnet','1377145HZIFze','join','url','indexOf','validateURL','display_override','2340KsQDmI','configMainScene','display','includes','news','resizability','standalone','defineProperty','automatic','configId','configDeeplink','contentMinSize','163756koGPJe','4527pfjTvw','./static-web','configDisplay','length','417641Wvrjpr','safelist','path','http://','mailto','defaultSize','start_url','host','parseRouter','smsto','xr_main_scene','xmpp','mainScene','6yLMkKK','geo','configScope','mms'];_0xa4a5=function(){return _0x10aca0;};return _0xa4a5();}function configScope(_0x1fbe80,_0x5eb365){const _0x1ae4db=_0x59ba1d;var _0x52229d,_0x1f077e,_0x29d953;let _0x501ed2='';const _0x2cb516=(0x0,validate_1[_0x1ae4db(0x19c)])(_0x1fbe80[_0x1ae4db(0x1c5)]);if(_0x5eb365&&_0x2cb516){const _0x28a284=new URL((_0x52229d=_0x1fbe80[_0x1ae4db(0x1c5)])!==null&&_0x52229d!==void 0x0?_0x52229d:''),_0x3b051d=new URL(_0x1fbe80['start_url']);(_0x28a284['host']!==_0x3b051d[_0x1ae4db(0x1b6)]||_0x1fbe80[_0x1ae4db(0x1b5)][_0x1ae4db(0x19b)](_0x501ed2)!==0x0)&&(_0x501ed2=(0x0,utils_1[_0x1ae4db(0x1b7)])(_0x1fbe80[_0x1ae4db(0x1b5)]));}else{if(_0x5eb365&&!_0x2cb516){const _0x4fe4d9=_0x1fbe80['start_url'][_0x1ae4db(0x19b)]('http://')===0x0?_0x1ae4db(0x1b2):_0x1ae4db(0x186);_0x501ed2=(0x0,path_1[_0x1ae4db(0x199)])(_0x1fbe80[_0x1ae4db(0x1b5)][_0x1ae4db(0x190)](_0x4fe4d9,''),(_0x1f077e=_0x1fbe80[_0x1ae4db(0x1c5)])!==null&&_0x1f077e!==void 0x0?_0x1f077e:''),_0x501ed2=_0x4fe4d9+_0x501ed2;}else _0x501ed2=(0x0,path_1[_0x1ae4db(0x199)])((0x0,utils_1[_0x1ae4db(0x1b7)])(_0x1fbe80[_0x1ae4db(0x1b5)]),(_0x29d953=_0x1fbe80['scope'])!==null&&_0x29d953!==void 0x0?_0x29d953:'');}_0x1fbe80[_0x1ae4db(0x1c5)]=_0x501ed2;}function configDisplay(_0x235f4a){const _0x18e834=_0x59ba1d;let _0xcf3f50=_0x235f4a[_0x18e834(0x1a0)];_0xcf3f50!==_0x18e834(0x181)&&_0xcf3f50!==_0x18e834(0x1a4)&&(_0xcf3f50=_0x18e834(0x1a4));if(_0x235f4a[_0x18e834(0x19d)]&&_0x235f4a[_0x18e834(0x19d)][_0x18e834(0x1ae)]>0x0){const _0x5d8fb9=_0x235f4a[_0x18e834(0x19d)][_0x18e834(0x19b)](_0x18e834(0x181)),_0x21136f=_0x235f4a[_0x18e834(0x19d)]['indexOf'](_0x18e834(0x1a4));if(_0x5d8fb9>=0x0&&_0x21136f>=0x0)_0xcf3f50=_0x21136f>_0x5d8fb9?'standalone':_0x18e834(0x181);else{if(_0x5d8fb9>=0x0)_0xcf3f50='minimal-ui';else _0x21136f>=0x0&&(_0xcf3f50=_0x18e834(0x1a4));}}}function configMainScene(_0x1444e4){const _0x49c5bf=_0x59ba1d;var _0x59224b,_0x112788;const _0x264a57=[_0x49c5bf(0x1a6),_0x49c5bf(0x1a9),_0x49c5bf(0x195)];let _0x2610e1={'defaultSize':{'width':0x500,'height':0x500},'resizability':'automatic'};if(_0x1444e4[_0x49c5bf(0x1b9)]){if(typeof _0x1444e4[_0x49c5bf(0x1b9)]===_0x49c5bf(0x189))_0x2610e1[_0x49c5bf(0x1b4)]['width']=Number((_0x59224b=_0x1444e4[_0x49c5bf(0x1b9)][_0x49c5bf(0x1c3)])===null||_0x59224b===void 0x0?void 0x0:_0x59224b[_0x49c5bf(0x17e)])>0x0?_0x1444e4[_0x49c5bf(0x1b9)][_0x49c5bf(0x1c3)][_0x49c5bf(0x17e)]:0x500,_0x2610e1[_0x49c5bf(0x1b4)][_0x49c5bf(0x196)]=Number((_0x112788=_0x1444e4['xr_main_scene']['default_size'])===null||_0x112788===void 0x0?void 0x0:_0x112788[_0x49c5bf(0x196)])>0x0?_0x1444e4[_0x49c5bf(0x1b9)][_0x49c5bf(0x1c3)]['height']:0x500,_0x2610e1['resizability']=_0x264a57['includes'](_0x1444e4[_0x49c5bf(0x1b9)][_0x49c5bf(0x1a3)])?_0x1444e4[_0x49c5bf(0x1b9)][_0x49c5bf(0x1a3)]:_0x49c5bf(0x1a6),_0x1444e4[_0x49c5bf(0x1bb)]=_0x2610e1;else typeof _0x1444e4[_0x49c5bf(0x1b9)]===_0x49c5bf(0x1c1)&&(_0x1444e4[_0x49c5bf(0x1bb)]=_0x49c5bf(0x18e));}}function configDeeplink(_0x124430){const _0x281d9c=_0x59ba1d;if(_0x124430[_0x281d9c(0x1c0)]&&_0x124430['protocol_handlers'][_0x281d9c(0x1ae)]>0x0)for(var _0x585384=0x0;_0x585384<_0x124430[_0x281d9c(0x1c0)][_0x281d9c(0x1ae)];_0x585384++){const _0x1076d8=_0x124430[_0x281d9c(0x1c0)][_0x585384];if(_0x1076d8[_0x281d9c(0x18d)]&&(exports[_0x281d9c(0x1b0)][_0x281d9c(0x1a1)](_0x1076d8[_0x281d9c(0x18d)])||_0x1076d8['protocol']['indexOf'](_0x281d9c(0x187))===0x0)){if(!((0x0,validate_1[_0x281d9c(0x19c)])(_0x1076d8[_0x281d9c(0x19a)])&&_0x1076d8[_0x281d9c(0x19a)][_0x281d9c(0x19b)](_0x124430[_0x281d9c(0x1c5)])<0x0))continue;}_0x124430[_0x281d9c(0x1c0)][_0x281d9c(0x182)](_0x585384,0x1),_0x585384--;}}exports['safelist']=['bitcoin','ftp',_0x59ba1d(0x1c4),_0x59ba1d(0x1bd),'im',_0x59ba1d(0x18f),'ircs',_0x59ba1d(0x197),_0x59ba1d(0x1b3),'matrix',_0x59ba1d(0x1bf),_0x59ba1d(0x1a2),_0x59ba1d(0x185),'openpgp4fpr',_0x59ba1d(0x188),_0x59ba1d(0x192),'sms',_0x59ba1d(0x1b8),'ssh','tel',_0x59ba1d(0x18b),'webcal',_0x59ba1d(0x17f),_0x59ba1d(0x1ba)];
@@ -2,6 +2,7 @@ export interface InitArgs {
2
2
  'manifest-url'?: string;
3
3
  manifest?: string;
4
4
  project?: string;
5
+ 'base-url': string;
5
6
  }
6
7
  export interface ManifestInfo {
7
8
  json: Record<string, any>;
@@ -12,5 +13,5 @@ export declare class PWAGenerator {
12
13
  static DisplayModes: string[];
13
14
  static generator(args: InitArgs, isDev?: boolean): Promise<ManifestInfo>;
14
15
  static validate(args: InitArgs, isDev?: boolean): Promise<ManifestInfo>;
15
- static config(manifestInfo: ManifestInfo, isDev: boolean): void;
16
+ static config(manifestInfo: ManifestInfo, urlRoot: string, isDev: boolean): void;
16
17
  }
@@ -1 +1 @@
1
- 'use strict';const _0x264a83=_0x4017;function _0x4017(_0x2d8f0f,_0x451f82){const _0x184133=_0x1841();return _0x4017=function(_0x4017ad,_0x30108e){_0x4017ad=_0x4017ad-0xe1;let _0x49ef6c=_0x184133[_0x4017ad];return _0x49ef6c;},_0x4017(_0x2d8f0f,_0x451f82);}(function(_0x4e6d66,_0x1a0c17){const _0x153bbb=_0x4017,_0x264c5e=_0x4e6d66();while(!![]){try{const _0x25cb28=-parseInt(_0x153bbb(0xe2))/0x1*(-parseInt(_0x153bbb(0xf7))/0x2)+parseInt(_0x153bbb(0xef))/0x3+parseInt(_0x153bbb(0xed))/0x4*(parseInt(_0x153bbb(0xfa))/0x5)+parseInt(_0x153bbb(0xe8))/0x6+-parseInt(_0x153bbb(0x108))/0x7+parseInt(_0x153bbb(0xe7))/0x8*(parseInt(_0x153bbb(0x103))/0x9)+-parseInt(_0x153bbb(0xf8))/0xa;if(_0x25cb28===_0x1a0c17)break;else _0x264c5e['push'](_0x264c5e['shift']());}catch(_0x2769d2){_0x264c5e['push'](_0x264c5e['shift']());}}}(_0x1841,0xc4f1e));Object[_0x264a83(0x107)](exports,_0x264a83(0x102),{'value':!![]}),exports[_0x264a83(0xe1)]=void 0x0;const path_1=require(_0x264a83(0xfe)),config_1=require('./config'),load_1=require(_0x264a83(0xfb)),validate_1=require('./validate');class PWAGenerator{static async[_0x264a83(0xf9)](_0x2fbc05,_0xdd7c55=![]){const _0x3dc376=_0x264a83;let _0x30b3e6=await this[_0x3dc376(0xf5)](_0x2fbc05,_0xdd7c55);return console[_0x3dc376(0xe4)](_0x3dc376(0xf6)),await this[_0x3dc376(0x106)](_0x30b3e6,_0xdd7c55),console['log'](_0x3dc376(0xf0)),_0x30b3e6;}static async['validate'](_0x45a7e7,_0x353893=![]){const _0x35ebcd=_0x264a83;let _0x56b37c={},_0x55e9ab='',_0x25285a=![];if(_0x45a7e7['manifest-url'])_0x55e9ab=_0x45a7e7[_0x35ebcd(0xe6)],_0x25285a=!![],_0x56b37c=await(0x0,load_1[_0x35ebcd(0x104)])(_0x45a7e7['manifest-url']);else _0x45a7e7[_0x35ebcd(0x100)]&&(_0x55e9ab=(0x0,path_1[_0x35ebcd(0xee)])(process[_0x35ebcd(0x105)](),_0x45a7e7[_0x35ebcd(0x100)]),_0x56b37c=await(0x0,load_1[_0x35ebcd(0x101)])(_0x45a7e7[_0x35ebcd(0x100)]));(0x0,validate_1[_0x35ebcd(0xea)])(_0x56b37c);var _0x3b9b56=(0x0,validate_1[_0x35ebcd(0xe9)])(_0x56b37c,_0x55e9ab,_0x25285a,_0x353893);if(!_0x353893)(0x0,validate_1[_0x35ebcd(0xf3)])(_0x56b37c);return await(0x0,validate_1['checkIcons'])(_0x56b37c,_0x55e9ab),{'json':_0x56b37c,'url':_0x55e9ab,'fromNet':_0x3b9b56};}static[_0x264a83(0x106)](_0xc84b29,_0x4b14c9){const _0x499794=_0x264a83;(0x0,config_1[_0x499794(0xf1)])(_0xc84b29[_0x499794(0xec)],_0xc84b29[_0x499794(0xfc)],_0xc84b29[_0x499794(0xeb)]);if(!_0x4b14c9)(0x0,config_1[_0x499794(0xf4)])(_0xc84b29[_0x499794(0xec)]);(0x0,config_1[_0x499794(0xe5)])(_0xc84b29['json'],_0xc84b29[_0x499794(0xeb)]),(0x0,config_1[_0x499794(0xf2)])(_0xc84b29[_0x499794(0xec)]),(0x0,config_1[_0x499794(0xff)])(_0xc84b29[_0x499794(0xec)]),(0x0,config_1['configMainScene'])(_0xc84b29[_0x499794(0xec)]);}}function _0x1841(){const _0x33b6db=['DisplayModes','path','configDeeplink','manifest','loadJsonFromDisk','__esModule','2627127YHIHYs','loadJsonFromNet','cwd','config','defineProperty','7690795DMwjxt','PWAGenerator','191339GOfTVC','standalone','log','configScope','manifest-url','24nqrnBA','9635202aeMdDA','checkStartUrl','checkManifestJson','fromNet','json','4iRSRwh','join','4072389buneRR','reset\x20manifest.json:\x20ok','configStartUrl','configDisplay','checkId','configId','validate','check\x20manifest.json:\x20ok','8WAxQHN','32503870BHSuqA','generator','2756815gRmoCV','../resource/load','url'];_0x1841=function(){return _0x33b6db;};return _0x1841();}exports[_0x264a83(0xe1)]=PWAGenerator,PWAGenerator[_0x264a83(0xfd)]=[_0x264a83(0xe3),'minimal-ui'];
1
+ 'use strict';const _0x3728c4=_0x3f73;(function(_0x27f5be,_0x2fd201){const _0xd304f7=_0x3f73,_0x4321c7=_0x27f5be();while(!![]){try{const _0x170e22=parseInt(_0xd304f7(0x71))/0x1*(parseInt(_0xd304f7(0x6e))/0x2)+parseInt(_0xd304f7(0x7b))/0x3+parseInt(_0xd304f7(0x75))/0x4+-parseInt(_0xd304f7(0x86))/0x5+-parseInt(_0xd304f7(0x84))/0x6*(parseInt(_0xd304f7(0x8e))/0x7)+-parseInt(_0xd304f7(0x7e))/0x8+parseInt(_0xd304f7(0x81))/0x9*(parseInt(_0xd304f7(0x7a))/0xa);if(_0x170e22===_0x2fd201)break;else _0x4321c7['push'](_0x4321c7['shift']());}catch(_0x276315){_0x4321c7['push'](_0x4321c7['shift']());}}}(_0x39d9,0x24dcb));Object['defineProperty'](exports,_0x3728c4(0x70),{'value':!![]}),exports[_0x3728c4(0x87)]=void 0x0;function _0x39d9(){const _0xb4ce29=['generator','configId','configMainScene','42lVCvgt','checkStartUrl','manifest-url','minimal-ui','DisplayModes','validate','configScope','35306lXKjyt','reset\x20manifest.json:\x20ok','__esModule','3epNcee','fromNet','./config','standalone','914792TkdcCq','cwd','loadJsonFromDisk','configDeeplink','config','90YcXDnr','22332BcschU','json','manifest','1656880rEFORt','path','base-url','246420bfiwZu','./validate','join','9408XfEkGH','checkId','840080UTrrvE','PWAGenerator','log','configDisplay','checkIcons'];_0x39d9=function(){return _0xb4ce29;};return _0x39d9();}const path_1=require(_0x3728c4(0x7f)),config_1=require(_0x3728c4(0x73)),load_1=require('../resource/load'),validate_1=require(_0x3728c4(0x82));function _0x3f73(_0x39caab,_0x4a58a8){const _0x39d9f3=_0x39d9();return _0x3f73=function(_0x3f73b3,_0x15d0da){_0x3f73b3=_0x3f73b3-0x6b;let _0x5adb7f=_0x39d9f3[_0x3f73b3];return _0x5adb7f;},_0x3f73(_0x39caab,_0x4a58a8);}class PWAGenerator{static async[_0x3728c4(0x8b)](_0x1d379e,_0x264f20=![]){const _0x5821d8=_0x3728c4;let _0x2c56b9=await this['validate'](_0x1d379e,_0x264f20);return console[_0x5821d8(0x88)]('check\x20manifest.json:\x20ok'),await this[_0x5821d8(0x79)](_0x2c56b9,_0x1d379e[_0x5821d8(0x80)],_0x264f20),console[_0x5821d8(0x88)](_0x5821d8(0x6f)),_0x2c56b9;}static async[_0x3728c4(0x6c)](_0x3a31da,_0x46ce41=![]){const _0x43000b=_0x3728c4;var _0x3b9ffd;let _0xcb3076={},_0xa1ce5b='',_0x493e36=![];_0x3a31da[_0x43000b(0x90)]?(_0xa1ce5b=_0x3a31da[_0x43000b(0x90)],_0x493e36=!![],_0xcb3076=await(0x0,load_1['loadJsonFromNet'])(_0x3a31da[_0x43000b(0x90)])):(_0xa1ce5b=(0x0,path_1[_0x43000b(0x83)])(process[_0x43000b(0x76)](),(_0x3b9ffd=_0x3a31da[_0x43000b(0x7d)])!==null&&_0x3b9ffd!==void 0x0?_0x3b9ffd:'public/manifest.json'),_0xcb3076=await(0x0,load_1[_0x43000b(0x77)])(_0xa1ce5b));(0x0,validate_1['checkManifestJson'])(_0xcb3076);var _0x1f6b40=(0x0,validate_1[_0x43000b(0x8f)])(_0xcb3076,_0xa1ce5b,_0x493e36,_0x46ce41);if(!_0x46ce41)(0x0,validate_1[_0x43000b(0x85)])(_0xcb3076);return await(0x0,validate_1[_0x43000b(0x8a)])(_0xcb3076,_0xa1ce5b),{'json':_0xcb3076,'url':_0xa1ce5b,'fromNet':_0x1f6b40};}static[_0x3728c4(0x79)](_0x4d4083,_0x3fb9c5,_0x59a9a3){const _0x306091=_0x3728c4;(0x0,config_1['configStartUrl'])(_0x4d4083[_0x306091(0x7c)],_0x3fb9c5);if(!_0x59a9a3)(0x0,config_1[_0x306091(0x8c)])(_0x4d4083[_0x306091(0x7c)]);(0x0,config_1[_0x306091(0x6d)])(_0x4d4083[_0x306091(0x7c)],_0x4d4083[_0x306091(0x72)]),(0x0,config_1[_0x306091(0x89)])(_0x4d4083['json']),(0x0,config_1[_0x306091(0x78)])(_0x4d4083[_0x306091(0x7c)]),(0x0,config_1[_0x306091(0x8d)])(_0x4d4083[_0x306091(0x7c)]);}}exports[_0x3728c4(0x87)]=PWAGenerator,PWAGenerator[_0x3728c4(0x6b)]=[_0x3728c4(0x74),_0x3728c4(0x91)];
@@ -1 +1 @@
1
- 'use strict';function _0x48ec(_0x3f189e,_0x3ec409){const _0x35c76d=_0x35c7();return _0x48ec=function(_0x48ec58,_0x9388fc){_0x48ec58=_0x48ec58-0xd0;let _0x2aae1d=_0x35c76d[_0x48ec58];return _0x2aae1d;},_0x48ec(_0x3f189e,_0x3ec409);}const _0x3974a8=_0x48ec;(function(_0x5a2495,_0x20818c){const _0x4f6ce8=_0x48ec,_0x19063f=_0x5a2495();while(!![]){try{const _0x19b18f=-parseInt(_0x4f6ce8(0xfa))/0x1+parseInt(_0x4f6ce8(0xd7))/0x2*(-parseInt(_0x4f6ce8(0xf7))/0x3)+parseInt(_0x4f6ce8(0x103))/0x4+parseInt(_0x4f6ce8(0xe7))/0x5*(-parseInt(_0x4f6ce8(0xd3))/0x6)+parseInt(_0x4f6ce8(0xf0))/0x7*(parseInt(_0x4f6ce8(0xeb))/0x8)+parseInt(_0x4f6ce8(0xed))/0x9*(parseInt(_0x4f6ce8(0x100))/0xa)+-parseInt(_0x4f6ce8(0xe9))/0xb*(-parseInt(_0x4f6ce8(0x107))/0xc);if(_0x19b18f===_0x20818c)break;else _0x19063f['push'](_0x19063f['shift']());}catch(_0x2576d9){_0x19063f['push'](_0x19063f['shift']());}}}(_0x35c7,0x81082));function _0x35c7(){const _0x26a398=['In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20display\x20property\x20must\x20be\x20provided,\x20and\x20its\x20value','3907491KFMToi','display','push','split','CustomError','Local\x20manifest\x20cannot\x20package\x20network\x20project','startsWith','3XHyCKd','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','indexOf','46680LAoGrH','validateURL','path','host','getHeight','isFullyOpaque','22620NrWQoG','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','join','1205800ayNcoB','https://','checkIcons','PWAGenerator','12zvKqjB','loadImageFromDisk','checkStartUrl','getWidth','18iNsdeG','maskable','In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','length','2019442WvGQxq','http://','parseRouter','icons','DisplayModes','src','start_url','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL','includes','loadImageFromNet','name','../utils/utils','sizes','defineProperty','__esModule','short_name','1315305cbUexm','purpose','12254671hwbAhs','\x20can\x20only\x20be\x20one\x20of\x20\x22minimal-ui\x22\x20or\x20\x22standalone\x22\x20(your\x20current\x20configuration\x20is\x20','8ndmElS','forEach','1593hMuiIH'];_0x35c7=function(){return _0x26a398;};return _0x35c7();}Object[_0x3974a8(0xe4)](exports,_0x3974a8(0xe5),{'value':!![]}),exports['checkManifestJson']=checkManifestJson,exports[_0x3974a8(0xd1)]=checkStartUrl,exports[_0x3974a8(0x105)]=checkIcons,exports['checkId']=checkId,exports[_0x3974a8(0xfb)]=validateURL;const path_1=require(_0x3974a8(0xfc)),_1=require('.'),CustomError_1=require('../utils/CustomError'),utils_1=require(_0x3974a8(0xe2)),imageHelper_1=require('../resource/imageHelper'),load_1=require('../resource/load');function checkManifestJson(_0x5ba452){const _0x44ed4e=_0x3974a8;var _0x30c528;const _0x37fa9b=[];!_0x5ba452[_0x44ed4e(0xe1)]&&!_0x5ba452[_0x44ed4e(0xe6)]&&_0x37fa9b['push']({'code':0xbbe,'message':'In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','message_staring_params':{}});!((_0x30c528=_0x5ba452['icons'])===null||_0x30c528===void 0x0?void 0x0:_0x30c528[_0x44ed4e(0xd6)])&&_0x37fa9b[_0x44ed4e(0xf2)]({'code':0xbbf,'message':_0x44ed4e(0xee),'message_staring_params':{}});!_0x5ba452['start_url']&&_0x37fa9b[_0x44ed4e(0xf2)]({'code':0xbc0,'message':_0x44ed4e(0x101),'message_staring_params':{}});!_1[_0x44ed4e(0x106)][_0x44ed4e(0xdb)][_0x44ed4e(0xdf)](_0x5ba452[_0x44ed4e(0xf1)])&&_0x37fa9b[_0x44ed4e(0xf2)]({'code':0xbc1,'message':_0x44ed4e(0xef)+(_0x44ed4e(0xea)+_0x5ba452[_0x44ed4e(0xf1)]+')'),'message_staring_params':{'display':_0x5ba452[_0x44ed4e(0xf1)]}});if(_0x37fa9b['length'])throw new CustomError_1[(_0x44ed4e(0xf4))](_0x37fa9b);}function checkStartUrl(_0x13dc91,_0x72ef46,_0xd990fb,_0x32176f=![]){const _0x1cd9ef=_0x3974a8;var _0x35c907=![];if(_0x32176f)return _0x35c907=_0x13dc91[_0x1cd9ef(0xdd)][_0x1cd9ef(0xf9)](_0x1cd9ef(0x104))===0x0||_0x13dc91[_0x1cd9ef(0xdd)][_0x1cd9ef(0xf9)](_0x1cd9ef(0xd8))===0x0,_0x35c907;if(_0xd990fb){if(_0x13dc91[_0x1cd9ef(0xdd)][_0x1cd9ef(0xf9)](_0x1cd9ef(0x104))==0x0){const _0x47e17a=new URL(_0x13dc91[_0x1cd9ef(0xdd)]),_0x17df35=new URL(_0x72ef46);if(_0x47e17a[_0x1cd9ef(0xfd)]!==_0x17df35[_0x1cd9ef(0xfd)])throw new CustomError_1[(_0x1cd9ef(0xf4))]({'code':0xfa0,'message':'In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','message_staring_params':{}});}else{if(_0x13dc91[_0x1cd9ef(0xdd)][_0x1cd9ef(0xf9)](_0x1cd9ef(0xd8))==0x0)throw new CustomError_1[(_0x1cd9ef(0xf4))]({'code':0xfa0,'message':_0x1cd9ef(0xf8),'message_staring_params':{}});}}else{if(_0x13dc91['start_url'][_0x1cd9ef(0xf9)](_0x1cd9ef(0x104))==0x0||_0x13dc91[_0x1cd9ef(0xdd)][_0x1cd9ef(0xf9)]('http://')==0x0)throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x1cd9ef(0xf5),'message_staring_params':{}});}return _0x35c907;}async function checkIcons(_0x444550,_0x426a36){const _0x1d1648=_0x3974a8;var _0x2fa346;const _0x2e00ee=(0x0,utils_1[_0x1d1648(0xd9)])(_0x426a36);let _0x2d3d07,_0x353eb1,_0x4f4d00,_0x130e3f=0x0;for(var _0x5def99=0x0;_0x5def99<_0x444550[_0x1d1648(0xda)][_0x1d1648(0xd6)];_0x5def99++){const _0x2dbf79=_0x444550['icons'][_0x5def99];let _0x1d21df=((_0x2fa346=_0x2dbf79[_0x1d1648(0xe8)])===null||_0x2fa346===void 0x0?void 0x0:_0x2fa346[_0x1d1648(0xf9)](_0x1d1648(0xd4)))>=0x0;if(!_0x1d21df)continue;let _0x376d05=![],_0x4cda09=_0x2dbf79[_0x1d1648(0xdc)],_0x22344d,_0x33095d=0x0;!validateURL(_0x4cda09)&&(_0x4cda09=(0x0,path_1[_0x1d1648(0x102)])(_0x2e00ee,_0x4cda09));if(_0x2dbf79[_0x1d1648(0xe3)]){const _0x27545c=_0x2dbf79[_0x1d1648(0xe3)]['split']('\x20');_0x27545c[_0x1d1648(0xec)](_0x8eb09d=>{const _0x918f41=_0x1d1648;let _0x95b6e1=_0x8eb09d[_0x918f41(0xf3)]('x');Number(_0x95b6e1[0x0])>=0x400&&Number(_0x95b6e1[0x1])>=0x400&&(_0x376d05=!![],Number(_0x95b6e1[0x0])>_0x33095d&&(_0x33095d=Number(_0x95b6e1[0x0])));});}else _0x22344d=!_0x4cda09[_0x1d1648(0xf6)]('http')?await(0x0,load_1[_0x1d1648(0xd0)])(_0x4cda09):await(0x0,load_1[_0x1d1648(0xe0)])(_0x4cda09),_0x22344d[_0x1d1648(0xd2)]()>=0x400&&_0x22344d[_0x1d1648(0xfe)]()>=0x400&&(_0x376d05=!![],_0x22344d[_0x1d1648(0xd2)]()>_0x33095d&&(_0x33095d=_0x22344d[_0x1d1648(0xd2)]()));_0x376d05&&_0x1d21df&&(_0x33095d>_0x130e3f&&(_0x130e3f=_0x33095d,_0x2d3d07=_0x22344d,_0x353eb1=_0x4cda09,_0x4f4d00=_0x2dbf79[_0x1d1648(0xe8)]));}if(_0x130e3f===0x0)throw new CustomError_1[(_0x1d1648(0xf4))]({'code':0xfa0,'message':'In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','message_staring_params':{}});else _0x353eb1&&(_0x2d3d07=!_0x353eb1[_0x1d1648(0xf6)]('http')?await(0x0,load_1['loadImageFromDisk'])(_0x353eb1):await(0x0,load_1[_0x1d1648(0xe0)])(_0x353eb1));if(_0x2d3d07&&!imageHelper_1['ImageHelper'][_0x1d1648(0xff)](_0x2d3d07))throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x1d1648(0xd5),'message_staring_params':{}});_0x444550[_0x1d1648(0xda)]=[{'src':_0x353eb1,'sizes':_0x130e3f+'x'+_0x130e3f,'purpose':_0x4f4d00}];}function checkId(_0x3e8900){const _0x1dbd10=_0x3974a8;!_0x3e8900['id']&&(_0x3e8900['id']=_0x3e8900[_0x1dbd10(0xdd)]);if(!validateURL(_0x3e8900['id']))throw new CustomError_1[(_0x1dbd10(0xf4))]({'code':0xfa0,'message':_0x1dbd10(0xde),'message_staring_params':{}});}function validateURL(_0x42648d){try{return new URL(_0x42648d),!![];}catch(_0x5ea37e){return![];}}
1
+ 'use strict';const _0x506509=_0x5c34;(function(_0x455e35,_0x21e17d){const _0x24c639=_0x5c34,_0x167099=_0x455e35();while(!![]){try{const _0x4390f3=parseInt(_0x24c639(0x205))/0x1*(-parseInt(_0x24c639(0x1e8))/0x2)+-parseInt(_0x24c639(0x20e))/0x3+parseInt(_0x24c639(0x1f1))/0x4*(parseInt(_0x24c639(0x1fd))/0x5)+-parseInt(_0x24c639(0x207))/0x6*(parseInt(_0x24c639(0x202))/0x7)+parseInt(_0x24c639(0x1ef))/0x8+parseInt(_0x24c639(0x1ec))/0x9+-parseInt(_0x24c639(0x1ed))/0xa*(-parseInt(_0x24c639(0x1f7))/0xb);if(_0x4390f3===_0x21e17d)break;else _0x167099['push'](_0x167099['shift']());}catch(_0x463139){_0x167099['push'](_0x167099['shift']());}}}(_0x82d6,0xd968e));Object[_0x506509(0x20f)](exports,_0x506509(0x1e9),{'value':!![]}),exports[_0x506509(0x214)]=checkManifestJson,exports[_0x506509(0x1f6)]=checkStartUrl,exports[_0x506509(0x213)]=checkIcons,exports[_0x506509(0x212)]=checkId,exports[_0x506509(0x20b)]=validateURL;const path_1=require(_0x506509(0x20a)),_1=require('.'),CustomError_1=require(_0x506509(0x201)),utils_1=require(_0x506509(0x203)),imageHelper_1=require('../resource/imageHelper'),load_1=require(_0x506509(0x21b));function checkManifestJson(_0x426bf7){const _0x220cd6=_0x506509;var _0x31dce5;const _0x487ddd=[];!_0x426bf7[_0x220cd6(0x1fe)]&&!_0x426bf7['short_name']&&_0x487ddd[_0x220cd6(0x1ee)]({'code':0xbbe,'message':'In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20it\x20is\x20necessary\x20to\x20provide\x20the\x20name\x20property\x20or\x20short_name\x20property\x20(preferably\x20both)','message_staring_params':{}});!((_0x31dce5=_0x426bf7[_0x220cd6(0x1eb)])===null||_0x31dce5===void 0x0?void 0x0:_0x31dce5[_0x220cd6(0x1fa)])&&_0x487ddd[_0x220cd6(0x1ee)]({'code':0xbbf,'message':_0x220cd6(0x21a),'message_staring_params':{}});!_0x426bf7[_0x220cd6(0x215)]&&_0x487ddd['push']({'code':0xbc0,'message':'In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20start_url\x20property\x20must\x20be\x20provided','message_staring_params':{}});!_1[_0x220cd6(0x20c)][_0x220cd6(0x204)][_0x220cd6(0x200)](_0x426bf7[_0x220cd6(0x206)])&&_0x487ddd[_0x220cd6(0x1ee)]({'code':0xbc1,'message':_0x220cd6(0x1f3)+('\x20can\x20only\x20be\x20one\x20of\x20\x22minimal-ui\x22\x20or\x20\x22standalone\x22\x20(your\x20current\x20configuration\x20is\x20'+_0x426bf7['display']+')'),'message_staring_params':{'display':_0x426bf7[_0x220cd6(0x206)]}});if(_0x487ddd[_0x220cd6(0x1fa)])throw new CustomError_1[(_0x220cd6(0x211))](_0x487ddd);}function checkStartUrl(_0x103f0d,_0x36797d,_0xecb407,_0x7c6315=![]){const _0x32c8ed=_0x506509;var _0x440958=![];if(_0x7c6315)return _0x440958=_0x103f0d[_0x32c8ed(0x215)][_0x32c8ed(0x1f9)](_0x32c8ed(0x1f0))===0x0||_0x103f0d[_0x32c8ed(0x215)][_0x32c8ed(0x1f9)](_0x32c8ed(0x20d))===0x0,_0x440958;if(_0xecb407){if(_0x103f0d[_0x32c8ed(0x215)][_0x32c8ed(0x1f9)](_0x32c8ed(0x1f0))==0x0){const _0x5a8597=new URL(_0x103f0d[_0x32c8ed(0x215)]),_0x439a5f=new URL(_0x36797d);if(_0x5a8597[_0x32c8ed(0x208)]!==_0x439a5f[_0x32c8ed(0x208)])throw new CustomError_1['CustomError']({'code':0xfa0,'message':_0x32c8ed(0x1f5),'message_staring_params':{}});}else{if(_0x103f0d[_0x32c8ed(0x215)][_0x32c8ed(0x1f9)](_0x32c8ed(0x20d))==0x0)throw new CustomError_1[(_0x32c8ed(0x211))]({'code':0xfa0,'message':_0x32c8ed(0x1f2),'message_staring_params':{}});}}else{if(_0x103f0d[_0x32c8ed(0x215)][_0x32c8ed(0x1f9)]('https://')==0x0||_0x103f0d[_0x32c8ed(0x215)][_0x32c8ed(0x1f9)](_0x32c8ed(0x20d))==0x0)throw new CustomError_1[(_0x32c8ed(0x211))]({'code':0xfa0,'message':_0x32c8ed(0x216),'message_staring_params':{}});}return _0x440958;}async function checkIcons(_0x4775d1,_0x497f5b){const _0x5ad35=_0x506509;var _0xe2f1d0;const _0x5d2187=(0x0,utils_1['parseRouter'])(_0x497f5b);let _0x3d3f00,_0x3f54a5,_0x201c63,_0x15e548=0x0;for(var _0x3c3886=0x0;_0x3c3886<_0x4775d1['icons'][_0x5ad35(0x1fa)];_0x3c3886++){const _0x37078f=_0x4775d1[_0x5ad35(0x1eb)][_0x3c3886];let _0x32bfcc=((_0xe2f1d0=_0x37078f[_0x5ad35(0x217)])===null||_0xe2f1d0===void 0x0?void 0x0:_0xe2f1d0[_0x5ad35(0x1f9)]('maskable'))>=0x0;if(!_0x32bfcc)continue;let _0x101b68=![],_0x4ffde0=_0x37078f['src'],_0x30ec81,_0x260cb7=0x0;!validateURL(_0x4ffde0)&&(_0x4ffde0=(0x0,path_1[_0x5ad35(0x219)])(_0x5d2187,_0x4ffde0));if(_0x37078f[_0x5ad35(0x1fc)]){const _0x43185c=_0x37078f[_0x5ad35(0x1fc)]['split']('\x20');_0x43185c['forEach'](_0x120732=>{let _0x86a258=_0x120732['split']('x');Number(_0x86a258[0x0])>=0x400&&Number(_0x86a258[0x1])>=0x400&&(_0x101b68=!![],Number(_0x86a258[0x0])>_0x260cb7&&(_0x260cb7=Number(_0x86a258[0x0])));});}else _0x30ec81=!_0x4ffde0['startsWith']('http')?await(0x0,load_1[_0x5ad35(0x210)])(_0x4ffde0):await(0x0,load_1['loadImageFromNet'])(_0x4ffde0),_0x30ec81[_0x5ad35(0x1ea)]()>=0x400&&_0x30ec81[_0x5ad35(0x1fb)]()>=0x400&&(_0x101b68=!![],_0x30ec81[_0x5ad35(0x1ea)]()>_0x260cb7&&(_0x260cb7=_0x30ec81['getWidth']()));_0x101b68&&_0x32bfcc&&(_0x260cb7>_0x15e548&&(_0x15e548=_0x260cb7,_0x3d3f00=_0x30ec81,_0x3f54a5=_0x4ffde0,_0x201c63=_0x37078f[_0x5ad35(0x217)]));}if(_0x15e548===0x0)throw new CustomError_1[(_0x5ad35(0x211))]({'code':0xfa0,'message':_0x5ad35(0x21c),'message_staring_params':{}});else _0x3f54a5&&(_0x3d3f00=!_0x3f54a5['startsWith'](_0x5ad35(0x1ff))?await(0x0,load_1[_0x5ad35(0x210)])(_0x3f54a5):await(0x0,load_1['loadImageFromNet'])(_0x3f54a5));if(_0x3d3f00&&!imageHelper_1[_0x5ad35(0x1f4)][_0x5ad35(0x218)](_0x3d3f00))throw new CustomError_1[(_0x5ad35(0x211))]({'code':0xfa0,'message':_0x5ad35(0x1f8),'message_staring_params':{}});_0x4775d1[_0x5ad35(0x1eb)]=[{'src':_0x3f54a5,'sizes':_0x15e548+'x'+_0x15e548,'purpose':_0x201c63}];}function _0x82d6(){const _0x29c50b=['validateURL','PWAGenerator','http://','4403049EaMBhX','defineProperty','loadImageFromDisk','CustomError','checkId','checkIcons','checkManifestJson','start_url','Local\x20manifest\x20cannot\x20package\x20network\x20project','purpose','isFullyOpaque','join','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20icons\x20property\x20must\x20be\x20provided\x20and\x20it\x20should\x20include\x20at\x20least\x20one\x20icon\x20object','../resource/load','In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20the\x20icon\x20must\x20be\x20greater\x20than\x20or\x20equal\x20to\x201024x1024,\x20and\x20the\x20purpose\x20parameter\x20must\x20include\x20maskable','748jqBdmp','__esModule','getWidth','icons','12475116QztYBv','61730MCnrHD','push','5842056aoKSFX','https://','152wPkyeY','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20use\x20https','In\x20the\x20Spatial\x20Web\x20App\x20Manifest,\x20the\x20display\x20property\x20must\x20be\x20provided,\x20and\x20its\x20value','ImageHelper','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20start_url\x20must\x20be\x20the\x20same\x20origin\x20with\x20manifest','checkStartUrl','4895QfYSFX','In\x20the\x20Spatial\x20Web\x20App\x20on\x20VisionPro,\x20must\x20be\x20a\x20fully\x20opaque\x20bitmap.','indexOf','length','getHeight','sizes','1465dLvRxK','name','http','includes','../utils/CustomError','564123PzvUWQ','../utils/utils','DisplayModes','2634eefEWq','display','114GViVjv','host','In\x20the\x20WebSpatial\x20App\x20Manifest,\x20the\x20id\x20or\x20start_url\x20must\x20be\x20a\x20valid\x20URL','path'];_0x82d6=function(){return _0x29c50b;};return _0x82d6();}function checkId(_0x33754f){const _0x1179e6=_0x506509;!_0x33754f['id']&&(_0x33754f['id']=_0x33754f[_0x1179e6(0x215)]);if(!validateURL(_0x33754f['id']))throw new CustomError_1[(_0x1179e6(0x211))]({'code':0xfa0,'message':_0x1179e6(0x209),'message_staring_params':{}});}function _0x5c34(_0x50d397,_0x474b5a){const _0x82d602=_0x82d6();return _0x5c34=function(_0x5c348e,_0x182c94){_0x5c348e=_0x5c348e-0x1e8;let _0x2e4423=_0x82d602[_0x5c348e];return _0x2e4423;},_0x5c34(_0x50d397,_0x474b5a);}function validateURL(_0x34bba8){try{return new URL(_0x34bba8),!![];}catch(_0x25f08d){return![];}}
@@ -1 +1 @@
1
- 'use strict';const _0x514343=_0x5640;(function(_0x37f255,_0x487370){const _0x29939f=_0x5640,_0x369349=_0x37f255();while(!![]){try{const _0x5e874a=parseInt(_0x29939f(0x14a))/0x1+-parseInt(_0x29939f(0x144))/0x2*(-parseInt(_0x29939f(0x143))/0x3)+-parseInt(_0x29939f(0x149))/0x4+-parseInt(_0x29939f(0x142))/0x5+-parseInt(_0x29939f(0x134))/0x6*(parseInt(_0x29939f(0x138))/0x7)+parseInt(_0x29939f(0x13a))/0x8*(-parseInt(_0x29939f(0x141))/0x9)+parseInt(_0x29939f(0x145))/0xa;if(_0x5e874a===_0x487370)break;else _0x369349['push'](_0x369349['shift']());}catch(_0x2c3b52){_0x369349['push'](_0x369349['shift']());}}}(_0x117a,0x8b2ea));function _0x117a(){const _0x2e9105=['copyDir','statSync','721vYevTg','forEach','56104Cqwquv','isFile','readdirSync','clearDir','mkdirSync','writeFileSync','log','927XlgNSX','1361665ZNizac','1671972wSrnyw','2tNrNNo','5798980PmfAZE','unlinkSync','defineProperty','readFileSync','2228268oxBNyB','1006340dIknaC','1266ciJEug','isDirectory'];_0x117a=function(){return _0x2e9105;};return _0x117a();}function _0x5640(_0x354bab,_0x2c8b81){const _0x117a6d=_0x117a();return _0x5640=function(_0x56403b,_0x39d370){_0x56403b=_0x56403b-0x134;let _0x11f57c=_0x117a6d[_0x56403b];return _0x11f57c;},_0x5640(_0x354bab,_0x2c8b81);}Object[_0x514343(0x147)](exports,'__esModule',{'value':!![]}),exports[_0x514343(0x136)]=copyDir,exports[_0x514343(0x13d)]=clearDir;const fs=require('fs');function copyDir(_0x60d955,_0x5c199b){const _0x30df60=_0x514343,_0x18a67a=fs[_0x30df60(0x13c)](_0x60d955);_0x18a67a['forEach'](_0x335e94=>{const _0x555e8d=_0x30df60,_0x1023b2=_0x60d955+'/'+_0x335e94,_0x53e23e=_0x5c199b+'/'+_0x335e94,_0x414b89=fs[_0x555e8d(0x137)](_0x1023b2);if(_0x414b89[_0x555e8d(0x13b)]())try{fs[_0x555e8d(0x13f)](_0x53e23e,fs[_0x555e8d(0x148)](_0x1023b2));}catch(_0x4e48d3){console[_0x555e8d(0x140)](_0x4e48d3);}else _0x414b89['isDirectory']()&&(!fs['existsSync'](_0x53e23e)&&fs[_0x555e8d(0x13e)](_0x53e23e,{'recursive':!![]}),copyDir(_0x1023b2,_0x53e23e));});}function clearDir(_0x3b9064){const _0x1853ec=_0x514343,_0x413a1c=fs[_0x1853ec(0x13c)](_0x3b9064);_0x413a1c[_0x1853ec(0x139)](_0x4fa47c=>{const _0x5e06b1=_0x1853ec,_0x436726=_0x3b9064+'/'+_0x4fa47c,_0x567fc8=fs[_0x5e06b1(0x137)](_0x436726);if(_0x567fc8['isFile']())try{fs[_0x5e06b1(0x146)](_0x436726);}catch(_0x3a9057){console[_0x5e06b1(0x140)](_0x3a9057);}else _0x567fc8[_0x5e06b1(0x135)]()&&clearDir(_0x436726);});}
1
+ 'use strict';const _0x38b304=_0x2656;(function(_0x3c3da4,_0x4d27b1){const _0x54b8af=_0x2656,_0xbbb561=_0x3c3da4();while(!![]){try{const _0x23d376=parseInt(_0x54b8af(0x86))/0x1+parseInt(_0x54b8af(0x8b))/0x2*(-parseInt(_0x54b8af(0x84))/0x3)+-parseInt(_0x54b8af(0x85))/0x4+-parseInt(_0x54b8af(0x88))/0x5*(parseInt(_0x54b8af(0x7b))/0x6)+parseInt(_0x54b8af(0x8a))/0x7*(parseInt(_0x54b8af(0x81))/0x8)+parseInt(_0x54b8af(0x82))/0x9*(parseInt(_0x54b8af(0x94))/0xa)+parseInt(_0x54b8af(0x7c))/0xb*(parseInt(_0x54b8af(0x93))/0xc);if(_0x23d376===_0x4d27b1)break;else _0xbbb561['push'](_0xbbb561['shift']());}catch(_0x22ae4b){_0xbbb561['push'](_0xbbb561['shift']());}}}(_0x22cd,0x8dc9c));Object[_0x38b304(0x89)](exports,_0x38b304(0x90),{'value':!![]}),exports[_0x38b304(0x8e)]=copyDir,exports[_0x38b304(0x87)]=clearDir;function _0x22cd(){const _0x2e1d8a=['forEach','copyDir','isDirectory','__esModule','writeFileSync','readFileSync','696BuUwvU','1112730ACJnCx','4036518uMxsGp','430903mRmgeD','log','unlinkSync','isFile','readdirSync','2784XHjnwH','9oJDalv','mkdirSync','22521ujICnG','2361664jFikdr','187517BWFtPN','clearDir','5fdsmhF','defineProperty','4858ZggYdw','258HdkaXa','statSync'];_0x22cd=function(){return _0x2e1d8a;};return _0x22cd();}function _0x2656(_0x408c58,_0x4471bf){const _0x22cdfe=_0x22cd();return _0x2656=function(_0x265607,_0x4126c5){_0x265607=_0x265607-0x7b;let _0xa347d9=_0x22cdfe[_0x265607];return _0xa347d9;},_0x2656(_0x408c58,_0x4471bf);}const fs=require('fs');function copyDir(_0x2244ef,_0x271d61){const _0x4440e3=_0x38b304,_0x28cafc=fs[_0x4440e3(0x80)](_0x2244ef);_0x28cafc['forEach'](_0x9187fb=>{const _0x48e77e=_0x4440e3,_0x330bca=_0x2244ef+'/'+_0x9187fb,_0x2fd31a=_0x271d61+'/'+_0x9187fb,_0x35d028=fs['statSync'](_0x330bca);if(_0x35d028[_0x48e77e(0x7f)]())try{fs[_0x48e77e(0x91)](_0x2fd31a,fs[_0x48e77e(0x92)](_0x330bca));}catch(_0x11e619){console[_0x48e77e(0x7d)](_0x11e619);}else _0x35d028[_0x48e77e(0x8f)]()&&(!fs['existsSync'](_0x2fd31a)&&fs[_0x48e77e(0x83)](_0x2fd31a,{'recursive':!![]}),copyDir(_0x330bca,_0x2fd31a));});}function clearDir(_0x1ffa50){const _0x242473=_0x38b304,_0x25d2b7=fs[_0x242473(0x80)](_0x1ffa50);_0x25d2b7[_0x242473(0x8d)](_0x362a97=>{const _0x88e788=_0x242473,_0x1a2faa=_0x1ffa50+'/'+_0x362a97,_0xd15935=fs[_0x88e788(0x8c)](_0x1a2faa);if(_0xd15935[_0x88e788(0x7f)]())try{fs[_0x88e788(0x7e)](_0x1a2faa);}catch(_0x46be93){console[_0x88e788(0x7d)](_0x46be93);}else _0xd15935[_0x88e788(0x8f)]()&&clearDir(_0x1a2faa);});}
@@ -1 +1 @@
1
- 'use strict';const _0x4e3eed=_0x2ee4;(function(_0xfb5901,_0x5cc4e2){const _0x53dc76=_0x2ee4,_0x4ada84=_0xfb5901();while(!![]){try{const _0x45d3c7=parseInt(_0x53dc76(0x1a4))/0x1+-parseInt(_0x53dc76(0x1ac))/0x2*(-parseInt(_0x53dc76(0x1b7))/0x3)+parseInt(_0x53dc76(0x1aa))/0x4*(-parseInt(_0x53dc76(0x1a5))/0x5)+parseInt(_0x53dc76(0x1a6))/0x6+-parseInt(_0x53dc76(0x1a7))/0x7*(parseInt(_0x53dc76(0x1a3))/0x8)+parseInt(_0x53dc76(0x1ab))/0x9*(parseInt(_0x53dc76(0x1a8))/0xa)+-parseInt(_0x53dc76(0x1b0))/0xb;if(_0x45d3c7===_0x5cc4e2)break;else _0x4ada84['push'](_0x4ada84['shift']());}catch(_0x3c809b){_0x4ada84['push'](_0x4ada84['shift']());}}}(_0x25c8,0xe0c9f));Object['defineProperty'](exports,_0x4e3eed(0x1b4),{'value':!![]}),exports[_0x4e3eed(0x1b3)]=void 0x0;const Jimp=require('jimp'),sharp=require('sharp'),resvg_js_1=require('@resvg/resvg-js');class ImageHelper{static['createImg'](_0x21783d){return new Jimp(_0x21783d,_0x21783d,0x0);}static async[_0x4e3eed(0x1ad)](_0x33096d){const _0x25da9d=_0x4e3eed;return await sharp(_0x33096d)['toFormat'](_0x25da9d(0x1b8))['toBuffer']();}static async['svg2img'](_0x3241d2){const _0x37498a=_0x4e3eed,_0x132de7={'fitTo':{'mode':_0x37498a(0x1af),'value':0x400}},_0x9a7bcb=new resvg_js_1[(_0x37498a(0x1b1))](_0x3241d2,_0x132de7),_0x2d8683=_0x9a7bcb[_0x37498a(0x1ae)](),_0x16bff0=_0x2d8683[_0x37498a(0x1b5)]();return _0x16bff0;}static['isFullyOpaque'](_0x293c03){const _0xdfe0df=_0x4e3eed,_0x394fdb=_0x293c03[_0xdfe0df(0x1b6)]()*_0x293c03[_0xdfe0df(0x1b2)]();for(var _0x8aa9fa=0x0;_0x8aa9fa<_0x394fdb;_0x8aa9fa++){const _0x156ae4=_0x8aa9fa*0x4+0x3;if(_0x293c03[_0xdfe0df(0x1b9)][_0xdfe0df(0x1a9)][_0x156ae4]<0xff)return![];}return!![];}}function _0x2ee4(_0x125cfc,_0x1e0ed5){const _0x25c8cb=_0x25c8();return _0x2ee4=function(_0x2ee474,_0x4577ac){_0x2ee474=_0x2ee474-0x1a3;let _0x1a944d=_0x25c8cb[_0x2ee474];return _0x1a944d;},_0x2ee4(_0x125cfc,_0x1e0ed5);}exports[_0x4e3eed(0x1b3)]=ImageHelper;function _0x25c8(){const _0x26bb45=['Resvg','getHeight','ImageHelper','__esModule','asPng','getWidth','6VhCrSV','png','bitmap','67656yJHCCH','1236985NGKEZz','1810955hxLtNL','8803170jFdnSw','175rRWaog','104830DBatHk','data','4dwKvsl','1215wLTyLV','1676326oQiivt','webp2PngBuffer','render','width','47314960WVKOkz'];_0x25c8=function(){return _0x26bb45;};return _0x25c8();}
1
+ 'use strict';const _0x4e4fb2=_0x4998;(function(_0x4b1bec,_0x14d8b6){const _0x4dd67c=_0x4998,_0x65222b=_0x4b1bec();while(!![]){try{const _0x1cd04d=parseInt(_0x4dd67c(0x19b))/0x1+parseInt(_0x4dd67c(0x19d))/0x2*(parseInt(_0x4dd67c(0x1b0))/0x3)+-parseInt(_0x4dd67c(0x1a6))/0x4+-parseInt(_0x4dd67c(0x1ac))/0x5+parseInt(_0x4dd67c(0x1a7))/0x6+parseInt(_0x4dd67c(0x1a5))/0x7*(parseInt(_0x4dd67c(0x1a2))/0x8)+-parseInt(_0x4dd67c(0x1af))/0x9*(-parseInt(_0x4dd67c(0x1a8))/0xa);if(_0x1cd04d===_0x14d8b6)break;else _0x65222b['push'](_0x65222b['shift']());}catch(_0x5047b4){_0x65222b['push'](_0x65222b['shift']());}}}(_0x1d29,0x8e369));function _0x4998(_0xf762b,_0xdf0565){const _0x1d2982=_0x1d29();return _0x4998=function(_0x49985d,_0x559cdd){_0x49985d=_0x49985d-0x199;let _0x29fa70=_0x1d2982[_0x49985d];return _0x29fa70;},_0x4998(_0xf762b,_0xdf0565);}Object['defineProperty'](exports,_0x4e4fb2(0x1a4),{'value':!![]}),exports[_0x4e4fb2(0x1ae)]=void 0x0;function _0x1d29(){const _0x4c3fdc=['toFormat','getHeight','543531FjhHqh','png','89626bXtifQ','asPng','getWidth','svg2img','data','8jyVKvK','render','__esModule','383320nbMkQO','2332056Fdlnan','1891032juuqpr','20TtSFKM','jimp','width','webp2PngBuffer','3765455yzCNYK','@resvg/resvg-js','ImageHelper','1901601TccFLt','39DYSkmw'];_0x1d29=function(){return _0x4c3fdc;};return _0x1d29();}const Jimp=require(_0x4e4fb2(0x1a9)),sharp=require('sharp'),resvg_js_1=require(_0x4e4fb2(0x1ad));class ImageHelper{static['createImg'](_0x3a7847){return new Jimp(_0x3a7847,_0x3a7847,0x0);}static async[_0x4e4fb2(0x1ab)](_0x2d9875){const _0x2b625=_0x4e4fb2;return await sharp(_0x2d9875)[_0x2b625(0x199)](_0x2b625(0x19c))['toBuffer']();}static async[_0x4e4fb2(0x1a0)](_0x39e818){const _0x17ed18=_0x4e4fb2,_0x174226={'fitTo':{'mode':_0x17ed18(0x1aa),'value':0x400}},_0x35aabb=new resvg_js_1['Resvg'](_0x39e818,_0x174226),_0xe854c=_0x35aabb[_0x17ed18(0x1a3)](),_0x2b0730=_0xe854c[_0x17ed18(0x19e)]();return _0x2b0730;}static['isFullyOpaque'](_0x2c37cc){const _0xeed4f4=_0x4e4fb2,_0x480001=_0x2c37cc[_0xeed4f4(0x19f)]()*_0x2c37cc[_0xeed4f4(0x19a)]();for(var _0x4fbef1=0x0;_0x4fbef1<_0x480001;_0x4fbef1++){const _0x5dd74f=_0x4fbef1*0x4+0x3;if(_0x2c37cc['bitmap'][_0xeed4f4(0x1a1)][_0x5dd74f]<0xff)return![];}return!![];}}exports['ImageHelper']=ImageHelper;
@@ -1,8 +1,8 @@
1
1
  import { ManifestInfo } from '../pwa';
2
2
  import * as Jimp from 'jimp';
3
- export declare const PROJECT_DIRECTORY: string;
4
- export declare const PROJECT_BUILD_DIRECTORY: string;
5
- export declare const PROJECT_EXPORT_DIRECTORY: string;
3
+ export declare let PROJECT_DIRECTORY: string;
4
+ export declare let PROJECT_BUILD_DIRECTORY: string;
5
+ export declare let PROJECT_EXPORT_DIRECTORY: string;
6
6
  export declare const WEB_PROJECT_DIRECTORY = "web-spatial/static-web";
7
7
  export declare const ASSET_DIRECTORY = "web-spatial/Assets.xcassets";
8
8
  export declare const BACK_APPICON_DIRECTORY: string;
@@ -10,4 +10,11 @@ export declare const MIDDLE_APPICON_DIRECTORY: string;
10
10
  export declare class ResourceManager {
11
11
  static moveProjectFrom(dir: string): Promise<void>;
12
12
  static generateIcon(info: ManifestInfo): Promise<Jimp>;
13
+ /**
14
+ * @description Check and set the platform path to ensure the existence of the specified platform module.
15
+ * If the module does not exist, it will be installed automatically.
16
+ * Also set the project directory, build directory, and export directory.
17
+ * @param platform The name of the platform to check, defaulting to 'visionos'
18
+ */
19
+ static checkPlatformPath(platform: string): void;
13
20
  }
@@ -1 +1 @@
1
- 'use strict';const _0x70313b=_0x9a8d;(function(_0x447fbb,_0x5ac1c9){const _0x51aad7=_0x9a8d,_0x3f3719=_0x447fbb();while(!![]){try{const _0x33df18=parseInt(_0x51aad7(0xcc))/0x1*(parseInt(_0x51aad7(0xca))/0x2)+parseInt(_0x51aad7(0xba))/0x3+parseInt(_0x51aad7(0xb3))/0x4*(parseInt(_0x51aad7(0xd4))/0x5)+-parseInt(_0x51aad7(0xc3))/0x6*(-parseInt(_0x51aad7(0xb0))/0x7)+-parseInt(_0x51aad7(0xbd))/0x8*(parseInt(_0x51aad7(0xce))/0x9)+-parseInt(_0x51aad7(0xad))/0xa*(parseInt(_0x51aad7(0xaa))/0xb)+-parseInt(_0x51aad7(0xb1))/0xc*(-parseInt(_0x51aad7(0xb6))/0xd);if(_0x33df18===_0x5ac1c9)break;else _0x3f3719['push'](_0x3f3719['shift']());}catch(_0x22e889){_0x3f3719['push'](_0x3f3719['shift']());}}}(_0xc516,0x52b5d));function _0x9a8d(_0x48077d,_0x1edaca){const _0xc5167b=_0xc516();return _0x9a8d=function(_0x9a8de7,_0x10c72d){_0x9a8de7=_0x9a8de7-0xaa;let _0x53509b=_0xc5167b[_0x9a8de7];return _0x53509b;},_0x9a8d(_0x48077d,_0x1edaca);}function _0xc516(){const _0x156b21=['generateIcon','__esModule','mkdirSync','5todAzQ','join','11kCRkRn','web-spatial/static-web','MIDDLE_APPICON_DIRECTORY','1163240kOrccB','PROJECT_EXPORT_DIRECTORY','ASSET_DIRECTORY','819KhHDGp','1500VFhWxa','ResourceManager','676868qnGgWl','moveProjectFrom','/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset','65533NunsLC','./export','defineProperty','WEB_PROJECT_DIRECTORY','202404tkzpcp','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','http','3112nkvypu','PROJECT_BUILD_DIRECTORY','./file','PROJECT_DIRECTORY','./load','json','234SRBQwg','startsWith','BACK_APPICON_DIRECTORY','log','path','resize','cwd','46198fbsUiy','src','5wokwKo','clearDir','12303OCzHtP','existsSync','../../../template/visionOSApp'];_0xc516=function(){return _0x156b21;};return _0xc516();}Object[_0x70313b(0xb8)](exports,_0x70313b(0xd2),{'value':!![]}),exports[_0x70313b(0xb2)]=exports[_0x70313b(0xac)]=exports[_0x70313b(0xc5)]=exports['ASSET_DIRECTORY']=exports[_0x70313b(0xb9)]=exports[_0x70313b(0xae)]=exports[_0x70313b(0xbe)]=exports[_0x70313b(0xc0)]=void 0x0;const fs=require('fs'),path_1=require(_0x70313b(0xc7)),file_1=require(_0x70313b(0xbf)),load_1=require(_0x70313b(0xc1));exports[_0x70313b(0xc0)]=(0x0,path_1[_0x70313b(0xd5)])(__dirname,_0x70313b(0xd0)),exports[_0x70313b(0xbe)]=(0x0,path_1[_0x70313b(0xd5)])(exports[_0x70313b(0xc0)],'./build'),exports[_0x70313b(0xae)]=(0x0,path_1[_0x70313b(0xd5)])(exports['PROJECT_DIRECTORY'],_0x70313b(0xb7)),exports[_0x70313b(0xb9)]=_0x70313b(0xab),exports[_0x70313b(0xaf)]='web-spatial/Assets.xcassets',exports['BACK_APPICON_DIRECTORY']=exports[_0x70313b(0xaf)]+_0x70313b(0xbb),exports[_0x70313b(0xac)]=exports[_0x70313b(0xaf)]+_0x70313b(0xb5);class ResourceManager{static async[_0x70313b(0xb4)](_0x1c62d3){const _0x53caca=_0x70313b,_0x467856=(0x0,path_1[_0x53caca(0xd5)])(process[_0x53caca(0xc9)](),_0x1c62d3),_0x299d63=(0x0,path_1[_0x53caca(0xd5)])(exports[_0x53caca(0xc0)],exports[_0x53caca(0xb9)]);!fs[_0x53caca(0xcf)](_0x299d63)?fs[_0x53caca(0xd3)](_0x299d63,{'recursive':!![]}):(0x0,file_1[_0x53caca(0xcd)])(_0x299d63);try{(0x0,file_1['copyDir'])(_0x467856,_0x299d63);}catch(_0xce2248){console[_0x53caca(0xc6)](_0xce2248);}}static async[_0x70313b(0xd1)](_0x5a1d16){const _0x33ef89=_0x70313b,_0x9a3e21=_0x5a1d16[_0x33ef89(0xc2)],_0x3c9964=_0x9a3e21['icons'][0x0][_0x33ef89(0xcb)],_0x309755=!_0x3c9964[_0x33ef89(0xc4)](_0x33ef89(0xbc))?await(0x0,load_1['loadImageFromDisk'])(_0x3c9964):await(0x0,load_1['loadImageFromNet'])(_0x3c9964);return _0x309755[_0x33ef89(0xc8)](0x400,0x400),_0x309755;}}exports[_0x70313b(0xb2)]=ResourceManager;
1
+ 'use strict';const _0x4eacdd=_0xcda2;(function(_0x11a86b,_0x2895f6){const _0x2e6837=_0xcda2,_0x320670=_0x11a86b();while(!![]){try{const _0x4788ef=-parseInt(_0x2e6837(0x1fa))/0x1*(-parseInt(_0x2e6837(0x1dd))/0x2)+parseInt(_0x2e6837(0x1f3))/0x3+-parseInt(_0x2e6837(0x202))/0x4*(parseInt(_0x2e6837(0x1f4))/0x5)+-parseInt(_0x2e6837(0x1d6))/0x6+-parseInt(_0x2e6837(0x1df))/0x7*(parseInt(_0x2e6837(0x1ed))/0x8)+-parseInt(_0x2e6837(0x1fd))/0x9*(-parseInt(_0x2e6837(0x1ea))/0xa)+parseInt(_0x2e6837(0x1f7))/0xb*(-parseInt(_0x2e6837(0x205))/0xc);if(_0x4788ef===_0x2895f6)break;else _0x320670['push'](_0x320670['shift']());}catch(_0x46adfa){_0x320670['push'](_0x320670['shift']());}}}(_0x3919,0x9d3e1));Object[_0x4eacdd(0x1f8)](exports,_0x4eacdd(0x204),{'value':!![]}),exports[_0x4eacdd(0x1f5)]=exports[_0x4eacdd(0x1e3)]=exports[_0x4eacdd(0x200)]=exports['ASSET_DIRECTORY']=exports[_0x4eacdd(0x1f9)]=exports['PROJECT_EXPORT_DIRECTORY']=exports[_0x4eacdd(0x1e2)]=exports['PROJECT_DIRECTORY']=void 0x0;const fs=require('fs'),path_1=require('path'),file_1=require(_0x4eacdd(0x1e9)),load_1=require(_0x4eacdd(0x1f0)),child_process_1=require(_0x4eacdd(0x1d9));exports[_0x4eacdd(0x1fb)]='',exports[_0x4eacdd(0x1e2)]='',exports[_0x4eacdd(0x1d3)]='',exports['WEB_PROJECT_DIRECTORY']=_0x4eacdd(0x1e4),exports[_0x4eacdd(0x1dc)]=_0x4eacdd(0x1de),exports[_0x4eacdd(0x200)]=exports[_0x4eacdd(0x1dc)]+_0x4eacdd(0x1ee),exports[_0x4eacdd(0x1e3)]=exports['ASSET_DIRECTORY']+_0x4eacdd(0x1da);function _0xcda2(_0x5bea95,_0x50466b){const _0x3919ed=_0x3919();return _0xcda2=function(_0xcda256,_0x23aad4){_0xcda256=_0xcda256-0x1d3;let _0x196d9e=_0x3919ed[_0xcda256];return _0x196d9e;},_0xcda2(_0x5bea95,_0x50466b);}const supportPlatform=[_0x4eacdd(0x1e0)];class ResourceManager{static async[_0x4eacdd(0x1e7)](_0x5cbcd5){const _0xab1a04=_0x4eacdd,_0x4c7dc2=(0x0,path_1[_0xab1a04(0x1e1)])(process[_0xab1a04(0x1fc)](),_0x5cbcd5),_0x5c86c1=(0x0,path_1[_0xab1a04(0x1e1)])(exports[_0xab1a04(0x1fb)],exports[_0xab1a04(0x1f9)]);!fs[_0xab1a04(0x1d8)](_0x5c86c1)?fs['mkdirSync'](_0x5c86c1,{'recursive':!![]}):(0x0,file_1[_0xab1a04(0x1d7)])(_0x5c86c1);try{(0x0,file_1[_0xab1a04(0x1d5)])(_0x4c7dc2,_0x5c86c1);}catch(_0x28c6e5){console[_0xab1a04(0x1fe)](_0x28c6e5);}}static async[_0x4eacdd(0x203)](_0x3cccdb){const _0x27e69f=_0x4eacdd,_0x3b4527=_0x3cccdb['json'],_0x206606=_0x3b4527[_0x27e69f(0x207)][0x0][_0x27e69f(0x1ff)],_0x3d24e5=!_0x206606['startsWith'](_0x27e69f(0x1f2))?await(0x0,load_1[_0x27e69f(0x1e5)])(_0x206606):await(0x0,load_1[_0x27e69f(0x206)])(_0x206606);return _0x3d24e5[_0x27e69f(0x1eb)](0x400,0x400),_0x3d24e5;}static[_0x4eacdd(0x1db)](_0x27c06d){const _0x35e17d=_0x4eacdd,_0x4ab037=_0x27c06d!==null&&_0x27c06d!==void 0x0?_0x27c06d:supportPlatform[0x0];if(!supportPlatform['includes'](_0x4ab037))throw new Error(_0x35e17d(0x201)+_0x4ab037+',\x20now\x20WebSpatial\x20only\x20support\x20'+supportPlatform['join'](','));let _0x4fc73c=(0x0,path_1['join'])(process['cwd'](),_0x35e17d(0x1f6)+_0x4ab037);!fs[_0x35e17d(0x1d8)](_0x4fc73c)&&(_0x4fc73c=(0x0,path_1['join'])(__dirname,_0x35e17d(0x1ef)+_0x4ab037));const _0x4e52f5=fs[_0x35e17d(0x1d8)](_0x4fc73c);!_0x4e52f5&&(0x0,child_process_1[_0x35e17d(0x1e6)])(_0x35e17d(0x1f1)+(0x0,path_1[_0x35e17d(0x1e1)])(__dirname,_0x35e17d(0x1d4))+_0x35e17d(0x1e8)+_0x4ab037),exports[_0x35e17d(0x1fb)]=_0x4fc73c,exports[_0x35e17d(0x1e2)]=(0x0,path_1[_0x35e17d(0x1e1)])(exports[_0x35e17d(0x1fb)],_0x35e17d(0x1ec)),exports[_0x35e17d(0x1d3)]=(0x0,path_1[_0x35e17d(0x1e1)])(exports['PROJECT_DIRECTORY'],'./export');}}exports[_0x4eacdd(0x1f5)]=ResourceManager;function _0x3919(){const _0x31116f=['PROJECT_DIRECTORY','cwd','156186uiDuhv','log','src','BACK_APPICON_DIRECTORY','not\x20support\x20platform\x20','8HyEVVa','generateIcon','__esModule','863976cwKNop','loadImageFromNet','icons','PROJECT_EXPORT_DIRECTORY','../../../','copyDir','694038ljJtmX','clearDir','existsSync','child_process','/AppIcon.solidimagestack/Middle.solidimagestacklayer/Content.imageset','checkPlatformPath','ASSET_DIRECTORY','59266PSCqwi','web-spatial/Assets.xcassets','12229bfsvHT','visionos','join','PROJECT_BUILD_DIRECTORY','MIDDLE_APPICON_DIRECTORY','web-spatial/static-web','loadImageFromDisk','execSync','moveProjectFrom','\x20&&\x20pnpm\x20add\x20@webspatial/platform-','./file','300ermxHc','resize','./build','4248khfQWJ','/AppIcon.solidimagestack/Back.solidimagestacklayer/Content.imageset','../../../node_modules/@webspatial/platform-','./load','cd\x20','http','2387451kYMxUo','458765VwpHPv','ResourceManager','node_modules/@webspatial/platform-','33YnWIIK','defineProperty','WEB_PROJECT_DIRECTORY','26CgqeJs'];_0x3919=function(){return _0x31116f;};return _0x3919();}
@@ -1 +1 @@
1
- 'use strict';const _0x9492bf=_0x4377;function _0x4377(_0x5cba0d,_0x27219f){const _0x2be667=_0x2be6();return _0x4377=function(_0x4377be,_0x54070e){_0x4377be=_0x4377be-0x1a4;let _0xf06f27=_0x2be667[_0x4377be];return _0xf06f27;},_0x4377(_0x5cba0d,_0x27219f);}(function(_0x16bacd,_0x22d912){const _0x4841a5=_0x4377,_0x74db71=_0x16bacd();while(!![]){try{const _0x3ef384=parseInt(_0x4841a5(0x1a4))/0x1+-parseInt(_0x4841a5(0x1b5))/0x2*(-parseInt(_0x4841a5(0x1ce))/0x3)+parseInt(_0x4841a5(0x1b0))/0x4+-parseInt(_0x4841a5(0x1d1))/0x5+-parseInt(_0x4841a5(0x1ae))/0x6*(-parseInt(_0x4841a5(0x1ac))/0x7)+parseInt(_0x4841a5(0x1bb))/0x8+parseInt(_0x4841a5(0x1b2))/0x9*(-parseInt(_0x4841a5(0x1bc))/0xa);if(_0x3ef384===_0x22d912)break;else _0x74db71['push'](_0x74db71['shift']());}catch(_0x34c2fe){_0x74db71['push'](_0x74db71['shift']());}}}(_0x2be6,0x75521));Object[_0x9492bf(0x1b7)](exports,_0x9492bf(0x1a5),{'value':!![]}),exports[_0x9492bf(0x1c3)]=loadJsonFromNet,exports[_0x9492bf(0x1c2)]=loadJsonFromDisk,exports[_0x9492bf(0x1a9)]=loadImageFromNet,exports[_0x9492bf(0x1cd)]=loadImageFromDisk,exports['loadFileString']=loadFileString;const fs=require('fs'),FetchUtils_1_1=require(_0x9492bf(0x1cf)),CustomError_1=require(_0x9492bf(0x1da)),Jimp=require(_0x9492bf(0x1b3)),imageHelper_1=require(_0x9492bf(0x1c7));async function loadJsonFromNet(_0x592811){const _0x517111=_0x9492bf,_0x535f9e=await FetchUtils_1_1[_0x517111(0x1d9)]['fetch'](_0x592811,{'encoding':'binary'});if(_0x535f9e['status']!==0xc8)throw new CustomError_1[(_0x517111(0x1a7))]({'code':0xbbc,'message':_0x517111(0x1bd)+_0x592811+'.'+('The\x20response\x20status\x20is\x20'+_0x535f9e['status']+_0x517111(0x1d7)),'message_staring_params':{'web_manifest_url':_0x592811,'status':_0x535f9e[_0x517111(0x1d6)]}});try{let _0x1c18af;return _0x535f9e[_0x517111(0x1d0)]?_0x1c18af=await _0x535f9e['text']():['gzip','deflate','br']['includes'](_0x535f9e[_0x517111(0x1b1)][_0x517111(0x1a6)])?_0x1c18af=FetchUtils_1_1[_0x517111(0x1d9)][_0x517111(0x1cb)](Buffer[_0x517111(0x1ba)](_0x535f9e[_0x517111(0x1ca)],_0x517111(0x1c8)),_0x535f9e[_0x517111(0x1b1)][_0x517111(0x1a6)])['toString']():_0x1c18af=Buffer[_0x517111(0x1ba)](_0x535f9e[_0x517111(0x1ca)],_0x517111(0x1c8))['toString'](),JSON['parse'](_0x1c18af[_0x517111(0x1bf)]());}catch(_0x220eea){throw new CustomError_1[(_0x517111(0x1a7))]({'code':0xbbd,'message':_0x517111(0x1ab),'message_staring_params':{}});}}async function loadJsonFromDisk(_0x109e3b){const _0xb77bc7=_0x9492bf,_0x36c6c7=await loadFileString(_0x109e3b['toString']());return JSON[_0xb77bc7(0x1ad)](_0x36c6c7);}async function loadImageFromNet(_0x51699f){const _0x2f388f=_0x9492bf,_0x1b3ca7=await FetchUtils_1_1['fetchUtils'][_0x2f388f(0x1c1)](_0x51699f,{'encoding':'binary'});if(_0x1b3ca7[_0x2f388f(0x1d6)]!==0xc8)throw new CustomError_1['CustomError']({'code':0x7d2,'message':_0x2f388f(0x1c0)+_0x1b3ca7[_0x2f388f(0x1d6)],'message_staring_params':{'icon_url':_0x51699f,'status':_0x1b3ca7['status']}});const _0x403c0c=_0x1b3ca7[_0x2f388f(0x1b1)][_0x2f388f(0x1c5)]?_0x1b3ca7[_0x2f388f(0x1b1)][_0x2f388f(0x1c5)](_0x2f388f(0x1d5)):_0x1b3ca7['headers'][_0x2f388f(0x1d5)];if(!(_0x403c0c===null||_0x403c0c===void 0x0?void 0x0:_0x403c0c[_0x2f388f(0x1b8)](_0x2f388f(0x1be))))throw new CustomError_1[(_0x2f388f(0x1a7))]({'code':0x7d3,'message':'Received\x20icon\x20with\x20invalid\x20Content-Type.'+(_0x2f388f(0x1cc)+_0x403c0c+'\x22'),'message_staring_params':{'icon_url':_0x51699f,'contentType':_0x403c0c}});let _0x205713;_0x1b3ca7[_0x2f388f(0x1d2)]?_0x205713=await _0x1b3ca7[_0x2f388f(0x1d2)]():[_0x2f388f(0x1aa),_0x2f388f(0x1b4),'br'][_0x2f388f(0x1d3)](_0x1b3ca7['headers'][_0x2f388f(0x1a6)])?_0x205713=FetchUtils_1_1[_0x2f388f(0x1d9)][_0x2f388f(0x1cb)](Buffer[_0x2f388f(0x1ba)](_0x1b3ca7['data'],_0x2f388f(0x1c8)),_0x1b3ca7['headers'][_0x2f388f(0x1a6)]):_0x205713=Buffer[_0x2f388f(0x1ba)](_0x1b3ca7[_0x2f388f(0x1ca)],_0x2f388f(0x1c8));if(_0x403c0c[_0x2f388f(0x1b8)](_0x2f388f(0x1b6))){const _0x2de919=new TextDecoder();try{_0x205713=await imageHelper_1['ImageHelper'][_0x2f388f(0x1b9)](_0x2de919['decode'](_0x205713));}catch(_0x27ee6b){throw new CustomError_1[(_0x2f388f(0x1a7))]({'code':0x7d4,'message':_0x2f388f(0x1af)+_0x51699f+':\x20'+_0x27ee6b,'message_staring_params':{'icon_url':_0x51699f,'error':_0x27ee6b}});}}return _0x403c0c[_0x2f388f(0x1b8)](_0x2f388f(0x1c9))&&(_0x205713=await imageHelper_1[_0x2f388f(0x1d4)]['webp2PngBuffer'](_0x205713)),await Jimp['read'](Buffer['from'](_0x205713));}function _0x2be6(){const _0x129181=['547778bjTQRc','__esModule','content-encoding','CustomError','read','loadImageFromNet','gzip','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','48643XgXfWJ','parse','318EgluPu','Problem\x20reading\x20','862756RhQwaf','headers','13680BSQDXM','jimp','deflate','62GCHVtp','image/svg','defineProperty','startsWith','svg2img','from','1262024gEwVpz','3460RbpFKq','Failed\x20to\x20download\x20Web\x20Manifest\x20','image/','trim','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','fetch','loadJsonFromDisk','loadJsonFromNet','readFile','get','promises','./imageHelper','binary','image/webp','data','decompressResponseBuffer','\x20Responded\x20with\x20Content-Type\x20\x22','loadImageFromDisk','33936ljsfqi','../utils/FetchUtils-1','text','3168620KBZrkt','arrayBuffer','includes','ImageHelper','content-type','status',',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address','toString','fetchUtils','../utils/CustomError'];_0x2be6=function(){return _0x129181;};return _0x2be6();}async function loadImageFromDisk(_0x59782b){const _0x2898be=_0x9492bf;return await Jimp[_0x2898be(0x1a8)](_0x59782b);}async function loadFileString(_0x392288){const _0x27589b=_0x9492bf;let _0x36236f=await fs[_0x27589b(0x1c6)][_0x27589b(0x1c4)](_0x392288['toString']());return _0x36236f[_0x27589b(0x1d8)]();}
1
+ 'use strict';const _0x45c7cb=_0xc8df;function _0xc8df(_0x26f194,_0x49e590){const _0x23f9ba=_0x23f9();return _0xc8df=function(_0xc8df9b,_0x316a4d){_0xc8df9b=_0xc8df9b-0x149;let _0x4ca68e=_0x23f9ba[_0xc8df9b];return _0x4ca68e;},_0xc8df(_0x26f194,_0x49e590);}function _0x23f9(){const _0x173b32=['decompressResponseBuffer','45418164QzPqul','1122VlkbFh','3636980AkJtZk','svg2img','456fCtWGt','59661OoEJwu','653178GiqEGU','read','text','content-encoding','trim','binary','./imageHelper','11XmtKpo','promises','Received\x20icon\x20with\x20invalid\x20Content-Type.','loadFileString','webp2PngBuffer','parse','ImageHelper','7581530Lkemgq','content-type','Failed\x20to\x20download\x20icon.\x20Responded\x20with\x20status\x20','Failed\x20to\x20download\x20Web\x20Manifest\x20','toString','get','loadImageFromDisk','Manifest\x20file\x20embedded\x20in\x20the\x20website\x20is\x20not\x20a\x20legal\x20JSON\x20file,\x20please\x20reconfigure','image/','deflate','loadJsonFromDisk','decode','startsWith','data','jimp','loadJsonFromNet','gzip','../utils/FetchUtils-1','image/svg','CustomError','headers','status','../utils/CustomError','image/webp','The\x20response\x20status\x20is\x20','153287lRRHQL','12fVyeII','fetch','39921ekmeLv','fetchUtils','includes','12szAcfY','arrayBuffer','defineProperty','from'];_0x23f9=function(){return _0x173b32;};return _0x23f9();}(function(_0x13bb69,_0x491ae0){const _0x157b82=_0xc8df,_0x230022=_0x13bb69();while(!![]){try{const _0x46dcf4=-parseInt(_0x157b82(0x180))/0x1*(parseInt(_0x157b82(0x149))/0x2)+parseInt(_0x157b82(0x159))/0x3*(-parseInt(_0x157b82(0x14e))/0x4)+parseInt(_0x157b82(0x155))/0x5+parseInt(_0x157b82(0x154))/0x6*(-parseInt(_0x157b82(0x14b))/0x7)+-parseInt(_0x157b82(0x157))/0x8*(parseInt(_0x157b82(0x158))/0x9)+-parseInt(_0x157b82(0x167))/0xa*(parseInt(_0x157b82(0x160))/0xb)+parseInt(_0x157b82(0x153))/0xc;if(_0x46dcf4===_0x491ae0)break;else _0x230022['push'](_0x230022['shift']());}catch(_0x547c1c){_0x230022['push'](_0x230022['shift']());}}}(_0x23f9,0xb3e6c));Object[_0x45c7cb(0x150)](exports,'__esModule',{'value':!![]}),exports[_0x45c7cb(0x176)]=loadJsonFromNet,exports[_0x45c7cb(0x171)]=loadJsonFromDisk,exports['loadImageFromNet']=loadImageFromNet,exports[_0x45c7cb(0x16d)]=loadImageFromDisk,exports[_0x45c7cb(0x163)]=loadFileString;const fs=require('fs'),FetchUtils_1_1=require(_0x45c7cb(0x178)),CustomError_1=require(_0x45c7cb(0x17d)),Jimp=require(_0x45c7cb(0x175)),imageHelper_1=require(_0x45c7cb(0x15f));async function loadJsonFromNet(_0x134b2b){const _0x45135f=_0x45c7cb,_0x2e41e5=await FetchUtils_1_1['fetchUtils'][_0x45135f(0x14a)](_0x134b2b,{'encoding':_0x45135f(0x15e)});if(_0x2e41e5[_0x45135f(0x17c)]!==0xc8)throw new CustomError_1['CustomError']({'code':0xbbc,'message':_0x45135f(0x16a)+_0x134b2b+'.'+(_0x45135f(0x17f)+_0x2e41e5[_0x45135f(0x17c)]+',\x20please\x20check\x20the\x20Web\x20Manifest\x20access\x20address'),'message_staring_params':{'web_manifest_url':_0x134b2b,'status':_0x2e41e5[_0x45135f(0x17c)]}});try{let _0x31204d;return _0x2e41e5[_0x45135f(0x15b)]?_0x31204d=await _0x2e41e5[_0x45135f(0x15b)]():[_0x45135f(0x177),_0x45135f(0x170),'br'][_0x45135f(0x14d)](_0x2e41e5['headers'][_0x45135f(0x15c)])?_0x31204d=FetchUtils_1_1[_0x45135f(0x14c)]['decompressResponseBuffer'](Buffer[_0x45135f(0x151)](_0x2e41e5['data'],_0x45135f(0x15e)),_0x2e41e5[_0x45135f(0x17b)][_0x45135f(0x15c)])['toString']():_0x31204d=Buffer[_0x45135f(0x151)](_0x2e41e5[_0x45135f(0x174)],_0x45135f(0x15e))[_0x45135f(0x16b)](),JSON[_0x45135f(0x165)](_0x31204d[_0x45135f(0x15d)]());}catch(_0x3a490c){throw new CustomError_1[(_0x45135f(0x17a))]({'code':0xbbd,'message':_0x45135f(0x16e),'message_staring_params':{}});}}async function loadJsonFromDisk(_0xd94128){const _0x4640ff=_0x45c7cb,_0x219d6f=await loadFileString(_0xd94128[_0x4640ff(0x16b)]());return JSON[_0x4640ff(0x165)](_0x219d6f);}async function loadImageFromNet(_0x2c91eb){const _0x2048ba=_0x45c7cb,_0x54c00b=await FetchUtils_1_1[_0x2048ba(0x14c)]['fetch'](_0x2c91eb,{'encoding':_0x2048ba(0x15e)});if(_0x54c00b[_0x2048ba(0x17c)]!==0xc8)throw new CustomError_1['CustomError']({'code':0x7d2,'message':_0x2048ba(0x169)+_0x54c00b['status'],'message_staring_params':{'icon_url':_0x2c91eb,'status':_0x54c00b[_0x2048ba(0x17c)]}});const _0x6d1830=_0x54c00b['headers']['get']?_0x54c00b[_0x2048ba(0x17b)][_0x2048ba(0x16c)]('content-type'):_0x54c00b[_0x2048ba(0x17b)][_0x2048ba(0x168)];if(!(_0x6d1830===null||_0x6d1830===void 0x0?void 0x0:_0x6d1830[_0x2048ba(0x173)](_0x2048ba(0x16f))))throw new CustomError_1[(_0x2048ba(0x17a))]({'code':0x7d3,'message':_0x2048ba(0x162)+('\x20Responded\x20with\x20Content-Type\x20\x22'+_0x6d1830+'\x22'),'message_staring_params':{'icon_url':_0x2c91eb,'contentType':_0x6d1830}});let _0x196659;_0x54c00b[_0x2048ba(0x14f)]?_0x196659=await _0x54c00b[_0x2048ba(0x14f)]():[_0x2048ba(0x177),_0x2048ba(0x170),'br'][_0x2048ba(0x14d)](_0x54c00b['headers']['content-encoding'])?_0x196659=FetchUtils_1_1[_0x2048ba(0x14c)][_0x2048ba(0x152)](Buffer[_0x2048ba(0x151)](_0x54c00b[_0x2048ba(0x174)],_0x2048ba(0x15e)),_0x54c00b[_0x2048ba(0x17b)][_0x2048ba(0x15c)]):_0x196659=Buffer[_0x2048ba(0x151)](_0x54c00b[_0x2048ba(0x174)],_0x2048ba(0x15e));if(_0x6d1830['startsWith'](_0x2048ba(0x179))){const _0x2d1ee7=new TextDecoder();try{_0x196659=await imageHelper_1[_0x2048ba(0x166)][_0x2048ba(0x156)](_0x2d1ee7[_0x2048ba(0x172)](_0x196659));}catch(_0x45eea){throw new CustomError_1[(_0x2048ba(0x17a))]({'code':0x7d4,'message':'Problem\x20reading\x20'+_0x2c91eb+':\x20'+_0x45eea,'message_staring_params':{'icon_url':_0x2c91eb,'error':_0x45eea}});}}return _0x6d1830[_0x2048ba(0x173)](_0x2048ba(0x17e))&&(_0x196659=await imageHelper_1[_0x2048ba(0x166)][_0x2048ba(0x164)](_0x196659)),await Jimp[_0x2048ba(0x15a)](Buffer[_0x2048ba(0x151)](_0x196659));}async function loadImageFromDisk(_0x5e4856){const _0x591479=_0x45c7cb;return await Jimp[_0x591479(0x15a)](_0x5e4856);}async function loadFileString(_0x30555e){const _0x12d013=_0x45c7cb;let _0x2ca469=await fs[_0x12d013(0x161)]['readFile'](_0x30555e[_0x12d013(0x16b)]());return _0x2ca469['toString']();}
@@ -1 +1 @@
1
- 'use strict';var _0x2dd52c=_0x43be;function _0x3284(){var _0x3e8533=['25VbzDyE','13539JiEpHK','300488udlxlw','7woXZzw','7443650LsZgWU','stringify','9LRaUAU','330785cgOrXo','customMessage','type','CustomError','__esModule','defineProperty','183232oAPtZU','info','764lkWqCj','608808QENIgI','12302576xvGAMH'];_0x3284=function(){return _0x3e8533;};return _0x3284();}(function(_0x12068f,_0x38c4c9){var _0x569070=_0x43be,_0x1056e2=_0x12068f();while(!![]){try{var _0x98fb1d=parseInt(_0x569070(0xc7))/0x1+parseInt(_0x569070(0xbb))/0x2+parseInt(_0x569070(0xc1))/0x3*(-parseInt(_0x569070(0xbd))/0x4)+parseInt(_0x569070(0xc0))/0x5*(parseInt(_0x569070(0xbe))/0x6)+-parseInt(_0x569070(0xc3))/0x7*(-parseInt(_0x569070(0xc2))/0x8)+-parseInt(_0x569070(0xc6))/0x9*(parseInt(_0x569070(0xc4))/0xa)+parseInt(_0x569070(0xbf))/0xb;if(_0x98fb1d===_0x38c4c9)break;else _0x1056e2['push'](_0x1056e2['shift']());}catch(_0x5439ca){_0x1056e2['push'](_0x1056e2['shift']());}}}(_0x3284,0x7508a));Object[_0x2dd52c(0xba)](exports,_0x2dd52c(0xb9),{'value':!![]}),exports[_0x2dd52c(0xb8)]=void 0x0;class CustomError extends Error{constructor(_0x256b1,_0xef797b){var _0x3c4d81=_0x2dd52c;super(JSON[_0x3c4d81(0xc5)](_0x256b1)),this[_0x3c4d81(0xb6)]=_0x256b1,this[_0x3c4d81(0xb7)]=_0xef797b||_0x3c4d81(0xbc);}}function _0x43be(_0x54c256,_0x63fa61){var _0x3284d7=_0x3284();return _0x43be=function(_0x43be02,_0x4b286c){_0x43be02=_0x43be02-0xb6;var _0xbcb5c3=_0x3284d7[_0x43be02];return _0xbcb5c3;},_0x43be(_0x54c256,_0x63fa61);}exports[_0x2dd52c(0xb8)]=CustomError;
1
+ 'use strict';function _0x5a34(_0x37b24b,_0xeb6e08){var _0x551c7f=_0x551c();return _0x5a34=function(_0x5a3439,_0x140141){_0x5a3439=_0x5a3439-0xa2;var _0x4950d4=_0x551c7f[_0x5a3439];return _0x4950d4;},_0x5a34(_0x37b24b,_0xeb6e08);}var _0x73a1e7=_0x5a34;(function(_0x1b92ac,_0x488c1f){var _0x532d03=_0x5a34,_0xb47fcb=_0x1b92ac();while(!![]){try{var _0x57b505=parseInt(_0x532d03(0xae))/0x1+-parseInt(_0x532d03(0xad))/0x2+-parseInt(_0x532d03(0xa2))/0x3*(-parseInt(_0x532d03(0xa8))/0x4)+-parseInt(_0x532d03(0xb1))/0x5*(-parseInt(_0x532d03(0xaf))/0x6)+-parseInt(_0x532d03(0xa5))/0x7+-parseInt(_0x532d03(0xa6))/0x8*(-parseInt(_0x532d03(0xa4))/0x9)+-parseInt(_0x532d03(0xab))/0xa;if(_0x57b505===_0x488c1f)break;else _0xb47fcb['push'](_0xb47fcb['shift']());}catch(_0x54f7dc){_0xb47fcb['push'](_0xb47fcb['shift']());}}}(_0x551c,0x4975e));function _0x551c(){var _0x390f10=['8asEPSt','customMessage','15548uJSliD','CustomError','info','2089270LsJbwW','__esModule','426770tmnrJh','471685cQYUgZ','114Rccmmz','defineProperty','35265fjYjUR','336fldQPi','stringify','1581291WYyNno','3454703aGxZeI'];_0x551c=function(){return _0x390f10;};return _0x551c();}Object[_0x73a1e7(0xb0)](exports,_0x73a1e7(0xac),{'value':!![]}),exports[_0x73a1e7(0xa9)]=void 0x0;class CustomError extends Error{constructor(_0x2d719a,_0x43219a){var _0x574640=_0x73a1e7;super(JSON[_0x574640(0xa3)](_0x2d719a)),this[_0x574640(0xa7)]=_0x2d719a,this['type']=_0x43219a||_0x574640(0xaa);}}exports['CustomError']=CustomError;