@holoscript/core 8.0.5 → 8.0.7

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 (248) hide show
  1. package/README.md +34 -34
  2. package/bin/holoscript.cjs +1 -1
  3. package/dist/GLTFPipeline-3EJLL3TS.cjs +38 -0
  4. package/dist/GLTFPipeline-3OWJV2VK.js +17 -0
  5. package/dist/{HoloScriptPlusParser-A2W7OCN2.cjs → HoloScriptPlusParser-ADWRY5OS.cjs} +15 -15
  6. package/dist/{HoloScriptPlusParser-7FBIFUFC.js → HoloScriptPlusParser-JLJDXHSC.js} +4 -4
  7. package/dist/HoloScriptPlusParser-QCGFPWIL.cjs +27 -0
  8. package/dist/{HoloScriptPlusParser-F2Z56FJR.js → HoloScriptPlusParser-WENAFEFV.js} +5 -5
  9. package/dist/HoloScriptRuntime-GGRVEU4T.cjs +19 -0
  10. package/dist/HoloScriptRuntime-GJK6VJPH.js +10 -0
  11. package/dist/{USDZExporter-3FWJ25JI.cjs → USDZExporter-AUHZODOF.cjs} +15 -4
  12. package/dist/{USDZExporter-D2HQLQYK.js → USDZExporter-GXB4AUSG.js} +15 -4
  13. package/dist/{chunk-V6MKC2FZ.js → chunk-22Q5A6RV.js} +3 -3
  14. package/dist/{chunk-IUDGEUDO.cjs → chunk-2BZHWUSR.cjs} +27 -15
  15. package/dist/{chunk-XJAN7CZG.cjs → chunk-2GCNOI2U.cjs} +2 -2
  16. package/dist/{chunk-CCATWPXM.js → chunk-2OWDB4FB.js} +13 -25
  17. package/dist/{chunk-N75IH2HY.js → chunk-2Y3V22SG.js} +5 -14
  18. package/dist/{chunk-MXFUTKCO.js → chunk-33YHE7HX.js} +3 -7
  19. package/dist/{chunk-GYZE55MO.js → chunk-3GWWJT7L.js} +4 -4
  20. package/dist/{chunk-CMT5NMMS.js → chunk-3NGDZZR4.js} +4 -4
  21. package/dist/{chunk-WRLUBRKS.cjs → chunk-3SKLAUDD.cjs} +2 -2
  22. package/dist/{chunk-KKFZ3B6J.cjs → chunk-3VBO3IYQ.cjs} +2 -2
  23. package/dist/{chunk-YF2I3MV3.js → chunk-47RUFYKR.js} +2 -2
  24. package/dist/{chunk-LHAXPADA.js → chunk-4JGRWHZJ.js} +7 -5
  25. package/dist/{chunk-ROHLEP2W.cjs → chunk-4W5G5QVL.cjs} +26 -26
  26. package/dist/{chunk-GQHQOPXZ.cjs → chunk-4YNYPHH3.cjs} +186 -17
  27. package/dist/{chunk-ZMCVKFXI.cjs → chunk-56VOWURB.cjs} +154 -47
  28. package/dist/{chunk-FXKAW7ZO.cjs → chunk-5A4TCHOC.cjs} +3 -3
  29. package/dist/{chunk-M56JSP4A.js → chunk-5EDVCNRT.js} +2 -2
  30. package/dist/{chunk-UJXISJBN.js → chunk-5ET6L4NS.js} +3 -3
  31. package/dist/{chunk-5NWINHR5.cjs → chunk-63ZGNR2T.cjs} +43 -39
  32. package/dist/{chunk-NG77ATEW.cjs → chunk-6PRZIHGL.cjs} +6 -6
  33. package/dist/{chunk-3WZEJHUQ.cjs → chunk-7DMMMBCY.cjs} +7 -7
  34. package/dist/{chunk-FHP6LXJS.js → chunk-7E7GCQCK.js} +2 -2
  35. package/dist/{chunk-YN2YWTXW.js → chunk-7VMGP2FW.js} +44 -28
  36. package/dist/{chunk-OJXHYNXN.js → chunk-7X5PNIQJ.js} +3 -3
  37. package/dist/{chunk-FYSPZT4V.cjs → chunk-7ZHYEITD.cjs} +11 -11
  38. package/dist/{chunk-KPJL34Y7.cjs → chunk-ACVWFGBI.cjs} +2 -2
  39. package/dist/{chunk-UWXE23BT.cjs → chunk-AWB7QYY6.cjs} +6 -6
  40. package/dist/{chunk-UO4WPSGQ.js → chunk-B4EKV6HQ.js} +154 -48
  41. package/dist/{chunk-2X7NGX3M.js → chunk-BRNUPDHJ.js} +5 -5
  42. package/dist/{chunk-D3STJ56J.js → chunk-BTKZGHAV.js} +23 -11
  43. package/dist/{chunk-I5CDNPPE.cjs → chunk-C4GSLCHE.cjs} +331 -125
  44. package/dist/{chunk-QPSKHBJP.js → chunk-C7ZBSV2Q.js} +13 -7
  45. package/dist/{chunk-YN6V7R3L.cjs → chunk-CCPSNT6B.cjs} +12 -7
  46. package/dist/{chunk-NW5G5FBQ.js → chunk-DD2JQ7TS.js} +4 -3
  47. package/dist/{chunk-JD7CIZ33.js → chunk-DUCB6LGL.js} +8 -10
  48. package/dist/{chunk-ANXZFVY2.js → chunk-DY72BMU5.js} +3 -3
  49. package/dist/{chunk-AIA52I7T.cjs → chunk-EBS32AJI.cjs} +6 -4
  50. package/dist/{chunk-6DO5IZ5N.cjs → chunk-EDPYCLRC.cjs} +85 -65
  51. package/dist/{chunk-WQKJSGVS.js → chunk-F2G6CWFT.js} +271 -66
  52. package/dist/{chunk-AVJHHUC5.cjs → chunk-F5LKJ6F5.cjs} +43 -31
  53. package/dist/{chunk-ZU7NIRT6.js → chunk-FGMDMJM7.js} +10 -5
  54. package/dist/{chunk-YVD3CSO3.js → chunk-FHQFPYV4.js} +4 -4
  55. package/dist/{chunk-YIMN575O.js → chunk-FNHJRI32.js} +8 -5
  56. package/dist/{chunk-EXUP2BUM.cjs → chunk-FT6TDR2O.cjs} +27 -27
  57. package/dist/{chunk-BRQJKJGT.cjs → chunk-FWVYAMNW.cjs} +4 -4
  58. package/dist/{chunk-PGANYCAG.cjs → chunk-G25QVBA5.cjs} +4 -3
  59. package/dist/{chunk-XB274MW5.cjs → chunk-G6PNEASF.cjs} +13 -13
  60. package/dist/{chunk-2BSMSUCE.js → chunk-GASCWJK5.js} +2 -2
  61. package/dist/{chunk-HKEXJUWS.cjs → chunk-GH6C2QGW.cjs} +12 -21
  62. package/dist/{chunk-WRKUDAZJ.js → chunk-GSOUNWEL.js} +35 -27
  63. package/dist/{chunk-QPOQ7VPI.js → chunk-GTA4Q3A3.js} +2 -2
  64. package/dist/{chunk-JIYN45TV.cjs → chunk-GVFJ6T4S.cjs} +3 -7
  65. package/dist/{chunk-IVY74O6C.js → chunk-GVOKJNUN.js} +50 -11
  66. package/dist/{chunk-GZG4KA4E.js → chunk-GW3LKD5C.js} +6 -4
  67. package/dist/{chunk-NCWCUZNS.cjs → chunk-HFSVMKM3.cjs} +14 -14
  68. package/dist/{chunk-IUTY5WQ2.cjs → chunk-HLFDZ35S.cjs} +5 -5
  69. package/dist/{chunk-IWC5DM2M.cjs → chunk-I76GIKN7.cjs} +20 -16
  70. package/dist/{chunk-ON5QSY35.cjs → chunk-KAIVDEIG.cjs} +175 -59
  71. package/dist/{chunk-R24NNAEG.js → chunk-KCPHASCO.js} +18 -6
  72. package/dist/{chunk-T5J7ZKP3.cjs → chunk-KOUAQL2B.cjs} +16 -13
  73. package/dist/{chunk-GMP623FG.cjs → chunk-KQU64CIX.cjs} +2 -2
  74. package/dist/{chunk-MVPBWHAC.js → chunk-L5U4W6JC.js} +4 -4
  75. package/dist/{chunk-2IWC4FP7.cjs → chunk-LMJ5EBV7.cjs} +10 -10
  76. package/dist/{chunk-KKP7JKN4.cjs → chunk-LODTHGST.cjs} +18 -12
  77. package/dist/{chunk-4V2E7U7Q.cjs → chunk-LPS5AMQD.cjs} +8 -8
  78. package/dist/{chunk-PY37LNDP.js → chunk-LWUOUCYL.js} +9 -5
  79. package/dist/{chunk-6CTRH7HT.cjs → chunk-LYJJI7ZK.cjs} +12 -14
  80. package/dist/{chunk-GTU2Z2WW.cjs → chunk-M7K4LE66.cjs} +5 -14
  81. package/dist/{chunk-URG2SJLK.js → chunk-MDR235RZ.js} +3 -7
  82. package/dist/{chunk-E4M5OAYO.js → chunk-MSYSQ2AJ.js} +132 -16
  83. package/dist/{chunk-TWUXUCEW.cjs → chunk-NGBXXZLL.cjs} +50 -62
  84. package/dist/{chunk-FFAOS5HQ.js → chunk-NHJLP37F.js} +6 -6
  85. package/dist/{chunk-S3MDHNKB.cjs → chunk-NHYRRAGI.cjs} +5 -5
  86. package/dist/{chunk-U44IKGG7.cjs → chunk-O3MGZDCT.cjs} +89 -52
  87. package/dist/{chunk-GIOYPNTH.js → chunk-OABEO6HH.js} +185 -16
  88. package/dist/{chunk-KQCN6AKJ.cjs → chunk-OS533P33.cjs} +37 -29
  89. package/dist/{chunk-DAJXW4KX.js → chunk-PABONWKI.js} +24 -11
  90. package/dist/{chunk-QACVP4PM.js → chunk-PXNZ6TME.js} +77 -59
  91. package/dist/{chunk-OMXII44L.js → chunk-Q2Q34NF3.js} +63 -26
  92. package/dist/{chunk-OH2FAIVU.js → chunk-QBWNJXNR.js} +10 -6
  93. package/dist/{chunk-XKTPFXGA.js → chunk-QFU53KRH.js} +4 -4
  94. package/dist/{chunk-CR4FMIWL.cjs → chunk-QGMUTVVH.cjs} +17 -17
  95. package/dist/{chunk-MYY4PMWX.cjs → chunk-RUVBFAF7.cjs} +50 -11
  96. package/dist/{chunk-QD32ADK6.js → chunk-S762UEV5.js} +5 -5
  97. package/dist/{chunk-HNDK4IQU.cjs → chunk-SH5PPVK7.cjs} +61 -45
  98. package/dist/{chunk-JC5YBPSF.cjs → chunk-SKZPC5AG.cjs} +5 -5
  99. package/dist/{chunk-TJHVSBP2.js → chunk-SLHLXUMO.js} +10 -4
  100. package/dist/{chunk-5KVXXUD4.js → chunk-SSSN7VAM.js} +3 -3
  101. package/dist/{chunk-KMC6CQH3.js → chunk-SXOSDZD6.js} +6 -6
  102. package/dist/{chunk-J32ZJZJH.js → chunk-SYTRBGDS.js} +2 -2
  103. package/dist/{chunk-CIWWXYHZ.cjs → chunk-T6W3Z3SH.cjs} +2 -2
  104. package/dist/{chunk-QXH7QDSZ.js → chunk-TEVX443G.js} +44 -51
  105. package/dist/{chunk-UFZZ7TSN.cjs → chunk-TQ377OLB.cjs} +23 -21
  106. package/dist/{chunk-PJGFU5DN.cjs → chunk-TRCGG42I.cjs} +195 -152
  107. package/dist/{chunk-H652NHX5.js → chunk-TVANHNJ7.js} +30 -23
  108. package/dist/{chunk-EKBKLK7P.js → chunk-UDE4OZMR.js} +3 -3
  109. package/dist/{chunk-LKWQNUE6.cjs → chunk-UGXHYIWT.cjs} +5 -5
  110. package/dist/{chunk-JBNDTXXV.cjs → chunk-ULMSSHCJ.cjs} +21 -21
  111. package/dist/{chunk-YWOBW2PV.cjs → chunk-UOL6Y5TD.cjs} +18 -18
  112. package/dist/{chunk-5S7RKFGR.cjs → chunk-UVFI7XIR.cjs} +10 -4
  113. package/dist/{chunk-7M3PNU2M.cjs → chunk-V7AKE5VT.cjs} +10 -10
  114. package/dist/{chunk-J7XZV333.js → chunk-VEPGBETF.js} +6 -6
  115. package/dist/{chunk-UWJHCOH2.js → chunk-VF257YKO.js} +4 -4
  116. package/dist/{chunk-4N4SXXWF.js → chunk-VSACG2AR.js} +3 -3
  117. package/dist/{chunk-ZDSYWBIE.cjs → chunk-VW5CRJBE.cjs} +3 -7
  118. package/dist/{chunk-YT5L3B57.cjs → chunk-WFKVS2K4.cjs} +65 -27
  119. package/dist/{chunk-J6M4FPK5.js → chunk-WXQ57LAO.js} +3 -3
  120. package/dist/{chunk-5H2G27PK.cjs → chunk-X27QRG4C.cjs} +38 -38
  121. package/dist/{chunk-TVHSPJ4N.cjs → chunk-X2AVEAZM.cjs} +30 -23
  122. package/dist/{chunk-DHO2YRIM.js → chunk-XQ5MWMP2.js} +4 -4
  123. package/dist/{chunk-XIVIE43A.cjs → chunk-XW6IXEQH.cjs} +26 -13
  124. package/dist/{chunk-YIVFJNYV.js → chunk-Y3ZFVUUU.js} +2 -2
  125. package/dist/{chunk-7H33U5SM.cjs → chunk-Y57W2CT5.cjs} +2 -2
  126. package/dist/{chunk-OBIYPYYS.cjs → chunk-YCM6QQRT.cjs} +46 -53
  127. package/dist/{chunk-MBOOR7X4.js → chunk-YFVQWSNJ.js} +3 -3
  128. package/dist/{chunk-ADADVMXY.js → chunk-YFWRJW4B.js} +2 -2
  129. package/dist/{chunk-ONDAWTW4.js → chunk-YN6IETRZ.js} +179 -136
  130. package/dist/{chunk-4SDKXQ4C.js → chunk-YRRAUB35.js} +4 -4
  131. package/dist/{chunk-OBP5REIV.js → chunk-Z6PMDS4G.js} +62 -24
  132. package/dist/{chunk-BOVPWH4H.js → chunk-ZA34AN3R.js} +8 -17
  133. package/dist/{chunk-EKYL4PE3.cjs → chunk-ZLF4YF3U.cjs} +2 -2
  134. package/dist/{chunk-6FH72EB2.cjs → chunk-ZPZAVHXL.cjs} +20 -20
  135. package/dist/cli/holoscript-runner.cjs +39 -22
  136. package/dist/cli/holoscript-runner.js +32 -15
  137. package/dist/compiler/GasOptimizationAnalyzer.d.ts +73 -0
  138. package/dist/compiler/NFTMarketplaceCompiler.d.ts +23 -0
  139. package/dist/compiler/agent-inference.cjs +7 -7
  140. package/dist/compiler/agent-inference.js +3 -3
  141. package/dist/compiler/android-xr.cjs +8 -8
  142. package/dist/compiler/android-xr.js +6 -6
  143. package/dist/compiler/android.cjs +6 -6
  144. package/dist/compiler/android.js +4 -4
  145. package/dist/compiler/ar.cjs +6 -6
  146. package/dist/compiler/ar.js +4 -4
  147. package/dist/compiler/babylon.cjs +8 -8
  148. package/dist/compiler/babylon.js +7 -7
  149. package/dist/compiler/business-quest.cjs +9 -9
  150. package/dist/compiler/business-quest.js +1 -1
  151. package/dist/compiler/context.cjs +6 -6
  152. package/dist/compiler/context.js +3 -3
  153. package/dist/compiler/domain-block-utils.cjs +153 -153
  154. package/dist/compiler/domain-block-utils.js +4 -4
  155. package/dist/compiler/dtdl.cjs +7 -7
  156. package/dist/compiler/dtdl.js +4 -4
  157. package/dist/compiler/gltf-pipeline.cjs +8 -8
  158. package/dist/compiler/gltf-pipeline.js +1 -1
  159. package/dist/compiler/godot.cjs +6 -6
  160. package/dist/compiler/godot.js +5 -5
  161. package/dist/compiler/incremental.cjs +8 -8
  162. package/dist/compiler/incremental.js +3 -3
  163. package/dist/compiler/index.cjs +530 -355
  164. package/dist/compiler/index.d.ts +20 -0
  165. package/dist/compiler/index.js +374 -210
  166. package/dist/compiler/ios.cjs +6 -6
  167. package/dist/compiler/ios.js +4 -4
  168. package/dist/compiler/llm-provider-capabilities.cjs +6 -6
  169. package/dist/compiler/llm-provider-capabilities.js +3 -3
  170. package/dist/compiler/multi-layer.cjs +10 -10
  171. package/dist/compiler/multi-layer.js +9 -9
  172. package/dist/compiler/openxr.cjs +7 -7
  173. package/dist/compiler/openxr.js +6 -6
  174. package/dist/compiler/playcanvas.cjs +6 -6
  175. package/dist/compiler/playcanvas.js +5 -5
  176. package/dist/compiler/r3f.cjs +13 -13
  177. package/dist/compiler/r3f.js +8 -8
  178. package/dist/compiler/sdf.cjs +7 -7
  179. package/dist/compiler/sdf.js +5 -5
  180. package/dist/compiler/state.cjs +6 -6
  181. package/dist/compiler/state.js +4 -4
  182. package/dist/compiler/trait-composition.cjs +8 -8
  183. package/dist/compiler/trait-composition.js +4 -4
  184. package/dist/compiler/unity.cjs +7 -7
  185. package/dist/compiler/unity.js +6 -6
  186. package/dist/compiler/unreal.cjs +8 -8
  187. package/dist/compiler/unreal.js +6 -6
  188. package/dist/compiler/urdf.cjs +14 -14
  189. package/dist/compiler/urdf.js +5 -5
  190. package/dist/compiler/usd-physics.cjs +7 -7
  191. package/dist/compiler/usd-physics.js +4 -4
  192. package/dist/compiler/visionos.cjs +7 -7
  193. package/dist/compiler/visionos.js +6 -6
  194. package/dist/compiler/vrchat.cjs +7 -7
  195. package/dist/compiler/vrchat.js +5 -5
  196. package/dist/compiler/vrr.cjs +7 -7
  197. package/dist/compiler/vrr.js +5 -5
  198. package/dist/compiler/wasm.cjs +10 -10
  199. package/dist/compiler/wasm.js +5 -5
  200. package/dist/compiler/webgpu.cjs +6 -6
  201. package/dist/compiler/webgpu.js +5 -5
  202. package/dist/coordinators/index.cjs +27 -10
  203. package/dist/coordinators/index.js +27 -10
  204. package/dist/debugger.cjs +6 -6
  205. package/dist/debugger.js +4 -4
  206. package/dist/entries/scripting.cjs +6 -6
  207. package/dist/entries/scripting.js +2 -2
  208. package/dist/hololand/index.cjs +36 -36
  209. package/dist/hololand/index.js +2 -2
  210. package/dist/index.cjs +1080 -2190
  211. package/dist/index.js +467 -1577
  212. package/dist/math/tropical-spmv.cjs +10 -10
  213. package/dist/math/tropical-spmv.js +1 -1
  214. package/dist/math/vec3.cjs +13 -13
  215. package/dist/math/vec3.js +1 -1
  216. package/dist/parser/NFTMarketplaceTypes.d.ts +191 -0
  217. package/dist/parser.cjs +16 -16
  218. package/dist/parser.js +5 -5
  219. package/dist/reconstruction/index.cjs +37 -37
  220. package/dist/reconstruction/index.js +4 -4
  221. package/dist/runtime.cjs +280 -74
  222. package/dist/runtime.d.ts +10 -1
  223. package/dist/runtime.js +268 -70
  224. package/dist/self-improvement/index.cjs +12 -4
  225. package/dist/self-improvement/index.js +12 -4
  226. package/dist/{src-HCCCSYP7.js → src-J6CM4AUR.js} +91 -33
  227. package/dist/{src-4ROC227P.cjs → src-PT2FERDV.cjs} +93 -35
  228. package/dist/testing.cjs +5 -5
  229. package/dist/testing.js +1 -1
  230. package/dist/traits/botanical-lotus.cjs +52 -48
  231. package/dist/traits/botanical-lotus.js +2 -2
  232. package/dist/traits/engines/index.cjs +39 -39
  233. package/dist/traits/engines/index.d.ts +279 -0
  234. package/dist/traits/engines/index.js +4 -4
  235. package/dist/traits/index.cjs +889 -773
  236. package/dist/traits/index.js +371 -259
  237. package/dist/world/index.cjs +21 -18
  238. package/dist/world/index.js +21 -18
  239. package/dist/world-model/index.cjs +11 -5
  240. package/dist/world-model/index.d.ts +8 -0
  241. package/dist/world-model/index.js +11 -5
  242. package/package.json +75 -69
  243. package/LICENSE +0 -21
  244. package/dist/GLTFPipeline-37FPRVPH.js +0 -17
  245. package/dist/GLTFPipeline-EK3LFJKW.cjs +0 -38
  246. package/dist/HoloScriptPlusParser-WKHRIH6T.cjs +0 -27
  247. package/dist/HoloScriptRuntime-ACDFKVVH.js +0 -10
  248. package/dist/HoloScriptRuntime-ON2OQVEF.cjs +0 -19
@@ -1,4 +1,4 @@
1
- import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
1
+ import { init_CompilerBase, CompilerBase } from './chunk-C7ZBSV2Q.js';
2
2
 
3
3
  // src/compiler/QuantumCircuitCompiler.ts
4
4
  init_CompilerBase();
@@ -86,7 +86,9 @@ function generateVQECircuit(atoms, moleculeName, ansatzLayers, initialParams) {
86
86
  }
87
87
  let paramIdx = 0;
88
88
  for (let layer = 0; layer < ansatzLayers; layer++) {
89
- lines.push(`// Layer ${layer}: Ry rotations ( - [${paramIdx}..${paramIdx + n - 1}] optimised by VQE)`);
89
+ lines.push(
90
+ `// Layer ${layer}: Ry rotations ( - [${paramIdx}..${paramIdx + n - 1}] optimised by VQE)`
91
+ );
90
92
  for (let i = 0; i < n; i++) {
91
93
  lines.push(`ry(theta_${paramIdx}) q[${i}];`);
92
94
  paramIdx++;
@@ -275,7 +277,10 @@ var QuantumCircuitCompiler = class extends CompilerBase {
275
277
  /** Build a {@link QASMOutput} for a VQE circuit. */
276
278
  buildVQEOutput(atoms, cfg) {
277
279
  const moleculeName = (extractNumber(cfg, "moleculeName") !== void 0 ? void 0 : cfg["moleculeName"]?.value) ?? atoms.map((a) => a.symbol).join("") ?? "molecule";
278
- const ansatzLayers = Math.max(1, Math.round(extractNumber(cfg, "ansatzLayers") ?? extractNumber(cfg, "ansatz_layers") ?? 2));
280
+ const ansatzLayers = Math.max(
281
+ 1,
282
+ Math.round(extractNumber(cfg, "ansatzLayers") ?? extractNumber(cfg, "ansatz_layers") ?? 2)
283
+ );
279
284
  const initialParams = cfg["initialParams"]?.value ?? cfg["initial_params"]?.value ?? void 0;
280
285
  const { qasm, numQubits, estimatedDepth, warnings, paramNames } = generateVQECircuit(
281
286
  atoms,
@@ -321,5 +326,5 @@ var QuantumCircuitCompiler = class extends CompilerBase {
321
326
  };
322
327
 
323
328
  export { QuantumCircuitCompiler };
324
- //# sourceMappingURL=chunk-ZU7NIRT6.js.map
325
- //# sourceMappingURL=chunk-ZU7NIRT6.js.map
329
+ //# sourceMappingURL=chunk-FGMDMJM7.js.map
330
+ //# sourceMappingURL=chunk-FGMDMJM7.js.map
@@ -1,5 +1,5 @@
1
- import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock } from './chunk-BOVPWH4H.js';
2
- import { createTestCompilerToken, init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
1
+ import { init_DomainBlockCompilerMixin, compileDomainBlocks, compileMaterialBlock } from './chunk-ZA34AN3R.js';
2
+ import { createTestCompilerToken, init_CompilerBase, CompilerBase } from './chunk-C7ZBSV2Q.js';
3
3
  import { __export, __esm } from './chunk-OL46QLBJ.js';
4
4
  import { ANSCapabilityPath } from '@holoscript/core-types/ans';
5
5
 
@@ -1179,5 +1179,5 @@ var init_WASMCompiler = __esm({
1179
1179
  });
1180
1180
 
1181
1181
  export { WASMCompiler, WASMCompiler_default, WASMCompiler_exports, compileASTToWASM, compileToWASM, createWASMCompiler, init_WASMCompiler };
1182
- //# sourceMappingURL=chunk-YVD3CSO3.js.map
1183
- //# sourceMappingURL=chunk-YVD3CSO3.js.map
1182
+ //# sourceMappingURL=chunk-FHQFPYV4.js.map
1183
+ //# sourceMappingURL=chunk-FHQFPYV4.js.map
@@ -1,5 +1,5 @@
1
- import { ErrorRecovery, generateQuickFixes, enrichErrorWithSuggestions, LIFECYCLE_HOOKS, STRUCTURAL_DIRECTIVES } from './chunk-4N4SXXWF.js';
2
- import { VR_TRAITS } from './chunk-2BSMSUCE.js';
1
+ import { ErrorRecovery, generateQuickFixes, enrichErrorWithSuggestions, LIFECYCLE_HOOKS, STRUCTURAL_DIRECTIVES } from './chunk-VSACG2AR.js';
2
+ import { VR_TRAITS } from './chunk-GASCWJK5.js';
3
3
  import * as crypto from 'crypto';
4
4
 
5
5
  // src/parser/HybridChunker.ts
@@ -1898,7 +1898,10 @@ var HoloScriptPlusParser = class {
1898
1898
  directives: [],
1899
1899
  children: [incrementalResult.ast],
1900
1900
  traits: /* @__PURE__ */ new Map(),
1901
- loc: incrementalResult.ast.loc || { start: { line: 1, column: 1 }, end: { line: 1, column: 1 } },
1901
+ loc: incrementalResult.ast.loc || {
1902
+ start: { line: 1, column: 1 },
1903
+ end: { line: 1, column: 1 }
1904
+ },
1902
1905
  body: [incrementalResult.ast]
1903
1906
  };
1904
1907
  if (root.type === "fragment" && root.loc) {
@@ -4843,5 +4846,5 @@ function parse(source, options) {
4843
4846
  }
4844
4847
 
4845
4848
  export { ChunkBasedIncrementalParser, HSPLUS_ERROR_CODES, HoloScriptPlusParser, ParseCache, createKeywordError, createParser, createRichError, createTraitError, findSimilarKeyword, findSimilarTrait, formatRichError, formatRichErrors, getErrorCodeDocumentation, getSourceContext, globalParseCache, parse, parseIncrementalChunks };
4846
- //# sourceMappingURL=chunk-YIMN575O.js.map
4847
- //# sourceMappingURL=chunk-YIMN575O.js.map
4849
+ //# sourceMappingURL=chunk-FNHJRI32.js.map
4850
+ //# sourceMappingURL=chunk-FNHJRI32.js.map
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var chunkZDSYWBIE_cjs = require('./chunk-ZDSYWBIE.cjs');
3
+ var chunkVW5CRJBE_cjs = require('./chunk-VW5CRJBE.cjs');
4
4
 
5
5
  // src/compiler/ProceduralGeometry.ts
6
6
  var LOD_PRESETS = {
@@ -313,36 +313,36 @@ function generateSplineGeometry(points, radii, radialSegments = 32, lengthSteps
313
313
  const v = ring / (totalRings - 1);
314
314
  let tangent;
315
315
  if (ring === 0) {
316
- tangent = chunkZDSYWBIE_cjs.vec3SubArray(pathPoints[1], pathPoints[0]);
316
+ tangent = chunkVW5CRJBE_cjs.vec3SubArray(pathPoints[1], pathPoints[0]);
317
317
  } else if (ring === totalRings - 1) {
318
- tangent = chunkZDSYWBIE_cjs.vec3SubArray(pathPoints[totalRings - 1], pathPoints[totalRings - 2]);
318
+ tangent = chunkVW5CRJBE_cjs.vec3SubArray(pathPoints[totalRings - 1], pathPoints[totalRings - 2]);
319
319
  } else {
320
- tangent = chunkZDSYWBIE_cjs.vec3SubArray(pathPoints[ring + 1], pathPoints[ring - 1]);
320
+ tangent = chunkVW5CRJBE_cjs.vec3SubArray(pathPoints[ring + 1], pathPoints[ring - 1]);
321
321
  }
322
- chunkZDSYWBIE_cjs.vec3NormalizeInPlace(tangent);
322
+ chunkVW5CRJBE_cjs.vec3NormalizeInPlace(tangent);
323
323
  let normal;
324
324
  let binormal;
325
325
  if (ring === 0) {
326
326
  if (Math.abs(tangent[0]) < 0.9) {
327
- normal = chunkZDSYWBIE_cjs.vec3CrossArray(tangent, [1, 0, 0]);
327
+ normal = chunkVW5CRJBE_cjs.vec3CrossArray(tangent, [1, 0, 0]);
328
328
  } else {
329
- normal = chunkZDSYWBIE_cjs.vec3CrossArray(tangent, [0, 1, 0]);
329
+ normal = chunkVW5CRJBE_cjs.vec3CrossArray(tangent, [0, 1, 0]);
330
330
  }
331
- chunkZDSYWBIE_cjs.vec3NormalizeInPlace(normal);
332
- binormal = chunkZDSYWBIE_cjs.vec3CrossArray(tangent, normal);
333
- chunkZDSYWBIE_cjs.vec3NormalizeInPlace(binormal);
331
+ chunkVW5CRJBE_cjs.vec3NormalizeInPlace(normal);
332
+ binormal = chunkVW5CRJBE_cjs.vec3CrossArray(tangent, normal);
333
+ chunkVW5CRJBE_cjs.vec3NormalizeInPlace(binormal);
334
334
  } else {
335
- normal = chunkZDSYWBIE_cjs.vec3SubArray(
335
+ normal = chunkVW5CRJBE_cjs.vec3SubArray(
336
336
  prevNormal,
337
- chunkZDSYWBIE_cjs.vec3ScaleArray(
337
+ chunkVW5CRJBE_cjs.vec3ScaleArray(
338
338
  tangent,
339
339
  prevNormal[0] * tangent[0] + prevNormal[1] * tangent[1] + prevNormal[2] * tangent[2]
340
340
  )
341
341
  );
342
- const nLen = chunkZDSYWBIE_cjs.vec3NormalizeInPlace(normal);
342
+ const nLen = chunkVW5CRJBE_cjs.vec3NormalizeInPlace(normal);
343
343
  if (nLen < 1e-6) normal = [...prevNormal];
344
- binormal = chunkZDSYWBIE_cjs.vec3CrossArray(tangent, normal);
345
- chunkZDSYWBIE_cjs.vec3NormalizeInPlace(binormal);
344
+ binormal = chunkVW5CRJBE_cjs.vec3CrossArray(tangent, normal);
345
+ chunkVW5CRJBE_cjs.vec3NormalizeInPlace(binormal);
346
346
  }
347
347
  prevNormal = normal;
348
348
  for (let i = 0; i <= radialSegments; i++) {
@@ -369,8 +369,8 @@ function generateSplineGeometry(points, radii, radialSegments = 32, lengthSteps
369
369
  }
370
370
  const startCenter = positions.length / 3;
371
371
  const sp = pathPoints[0];
372
- const startTangent = chunkZDSYWBIE_cjs.vec3SubArray(pathPoints[1], pathPoints[0]);
373
- chunkZDSYWBIE_cjs.vec3NormalizeInPlace(startTangent);
372
+ const startTangent = chunkVW5CRJBE_cjs.vec3SubArray(pathPoints[1], pathPoints[0]);
373
+ chunkVW5CRJBE_cjs.vec3NormalizeInPlace(startTangent);
374
374
  positions.push(sp[0], sp[1], sp[2]);
375
375
  normals.push(-startTangent[0], -startTangent[1], -startTangent[2]);
376
376
  uvs.push(0.5, 0);
@@ -379,8 +379,8 @@ function generateSplineGeometry(points, radii, radialSegments = 32, lengthSteps
379
379
  }
380
380
  const endCenter = positions.length / 3;
381
381
  const ep = pathPoints[totalRings - 1];
382
- const endTangent = chunkZDSYWBIE_cjs.vec3SubArray(pathPoints[totalRings - 1], pathPoints[totalRings - 2]);
383
- chunkZDSYWBIE_cjs.vec3NormalizeInPlace(endTangent);
382
+ const endTangent = chunkVW5CRJBE_cjs.vec3SubArray(pathPoints[totalRings - 1], pathPoints[totalRings - 2]);
383
+ chunkVW5CRJBE_cjs.vec3NormalizeInPlace(endTangent);
384
384
  positions.push(ep[0], ep[1], ep[2]);
385
385
  normals.push(endTangent[0], endTangent[1], endTangent[2]);
386
386
  uvs.push(0.5, 1);
@@ -981,7 +981,7 @@ function generateHullGeometry(blobs, resolution = 24, threshold = 1, lod) {
981
981
  const gradEps = Math.min(dx, dy, dz) * 0.5;
982
982
  const grad = evalGradient(x, y, z, gradEps);
983
983
  const n = [-grad[0], -grad[1], -grad[2]];
984
- chunkZDSYWBIE_cjs.vec3NormalizeInPlace(n);
984
+ chunkVW5CRJBE_cjs.vec3NormalizeInPlace(n);
985
985
  const vertIdx = positions.length / 3;
986
986
  positions.push(x, y, z);
987
987
  normals.push(n[0], n[1], n[2]);
@@ -1094,14 +1094,14 @@ function generateMembraneGeometry(anchors, subdivisions = 8, bulge = 0.15, lod)
1094
1094
  for (let i = 0; i < anchors.length; i++) {
1095
1095
  const a = anchors[i];
1096
1096
  const b = anchors[(i + 1) % anchors.length];
1097
- const ca = chunkZDSYWBIE_cjs.vec3SubArray(a, center);
1098
- const cb = chunkZDSYWBIE_cjs.vec3SubArray(b, center);
1099
- const cross = chunkZDSYWBIE_cjs.vec3CrossArray(ca, cb);
1097
+ const ca = chunkVW5CRJBE_cjs.vec3SubArray(a, center);
1098
+ const cb = chunkVW5CRJBE_cjs.vec3SubArray(b, center);
1099
+ const cross = chunkVW5CRJBE_cjs.vec3CrossArray(ca, cb);
1100
1100
  memNormal[0] += cross[0];
1101
1101
  memNormal[1] += cross[1];
1102
1102
  memNormal[2] += cross[2];
1103
1103
  }
1104
- chunkZDSYWBIE_cjs.vec3NormalizeInPlace(memNormal);
1104
+ chunkVW5CRJBE_cjs.vec3NormalizeInPlace(memNormal);
1105
1105
  const numAnchors = anchors.length;
1106
1106
  const centerIdx = 0;
1107
1107
  positions.push(
@@ -1133,7 +1133,7 @@ function generateMembraneGeometry(anchors, subdivisions = 8, bulge = 0.15, lod)
1133
1133
  memNormal[1] + dy * bulge * 0.5,
1134
1134
  memNormal[2] + dz * bulge * 0.5
1135
1135
  ];
1136
- chunkZDSYWBIE_cjs.vec3NormalizeInPlace(n);
1136
+ chunkVW5CRJBE_cjs.vec3NormalizeInPlace(n);
1137
1137
  normals.push(n[0], n[1], n[2]);
1138
1138
  const angle = seg / numAnchors * Math.PI * 2;
1139
1139
  uvs.push(0.5 + t * 0.5 * Math.cos(angle), 0.5 + t * 0.5 * Math.sin(angle));
@@ -1169,5 +1169,5 @@ function generateMembraneGeometry(anchors, subdivisions = 8, bulge = 0.15, lod)
1169
1169
  exports.generateHullGeometry = generateHullGeometry;
1170
1170
  exports.generateMembraneGeometry = generateMembraneGeometry;
1171
1171
  exports.generateSplineGeometry = generateSplineGeometry;
1172
- //# sourceMappingURL=chunk-EXUP2BUM.cjs.map
1173
- //# sourceMappingURL=chunk-EXUP2BUM.cjs.map
1172
+ //# sourceMappingURL=chunk-FT6TDR2O.cjs.map
1173
+ //# sourceMappingURL=chunk-FT6TDR2O.cjs.map
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
- var chunkCIWWXYHZ_cjs = require('./chunk-CIWWXYHZ.cjs');
3
+ var chunkT6W3Z3SH_cjs = require('./chunk-T6W3Z3SH.cjs');
4
4
 
5
5
  // src/reconstruction/simulationContractBinding.ts
6
6
  function assertHoloMapManifestContract(m) {
7
7
  if (m.version !== "1.0.0") {
8
8
  throw new Error(`HoloMap manifest version ${m.version} is not v1.0 contract`);
9
9
  }
10
- if (m.simulationContract.kind !== chunkCIWWXYHZ_cjs.HOLOMAP_SIMULATION_CONTRACT_KIND) {
10
+ if (m.simulationContract.kind !== chunkT6W3Z3SH_cjs.HOLOMAP_SIMULATION_CONTRACT_KIND) {
11
11
  throw new Error(`Unexpected SimulationContract kind: ${m.simulationContract.kind}`);
12
12
  }
13
13
  if (!m.simulationContract.replayFingerprint || m.simulationContract.replayFingerprint.length < 8) {
@@ -16,5 +16,5 @@ function assertHoloMapManifestContract(m) {
16
16
  }
17
17
 
18
18
  exports.assertHoloMapManifestContract = assertHoloMapManifestContract;
19
- //# sourceMappingURL=chunk-BRQJKJGT.cjs.map
20
- //# sourceMappingURL=chunk-BRQJKJGT.cjs.map
19
+ //# sourceMappingURL=chunk-FWVYAMNW.cjs.map
20
+ //# sourceMappingURL=chunk-FWVYAMNW.cjs.map
@@ -203,7 +203,8 @@ function describeEnvironment(env) {
203
203
  if (env.browser?.browser) parts.push(env.browser.browser);
204
204
  if (env.browser?.os) parts.push(env.browser.os);
205
205
  if (env.node) parts.push(`node ${env.node.version} ${env.node.platform}/${env.node.arch}`);
206
- if (env.gpu?.vendor) parts.push(`gpu:${env.gpu.vendor}${env.gpu.architecture ? "/" + env.gpu.architecture : ""}`);
206
+ if (env.gpu?.vendor)
207
+ parts.push(`gpu:${env.gpu.vendor}${env.gpu.architecture ? "/" + env.gpu.architecture : ""}`);
207
208
  if (env.annotations) {
208
209
  for (const [k, v] of Object.entries(env.annotations)) {
209
210
  parts.push(`${k}=${v}`);
@@ -216,5 +217,5 @@ exports.DeterminismHarness = DeterminismHarness;
216
217
  exports.captureEnvironment = captureEnvironment;
217
218
  exports.describeEnvironment = describeEnvironment;
218
219
  exports.hashBytes = hashBytes;
219
- //# sourceMappingURL=chunk-PGANYCAG.cjs.map
220
- //# sourceMappingURL=chunk-PGANYCAG.cjs.map
220
+ //# sourceMappingURL=chunk-G25QVBA5.cjs.map
221
+ //# sourceMappingURL=chunk-G25QVBA5.cjs.map
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- var chunkHKEXJUWS_cjs = require('./chunk-HKEXJUWS.cjs');
4
- var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
3
+ var chunkGH6C2QGW_cjs = require('./chunk-GH6C2QGW.cjs');
4
+ var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
5
5
  var chunkE7JP3BS3_cjs = require('./chunk-E7JP3BS3.cjs');
6
6
  var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
7
7
  var ans = require('@holoscript/core-types/ans');
@@ -15,9 +15,9 @@ chunkHCCQLAA4_cjs.__export(VRRCompiler_exports, {
15
15
  var VRRTraitDefs; exports.VRRCompiler = void 0; exports.VRRCompiler_default = void 0;
16
16
  var init_VRRCompiler = chunkHCCQLAA4_cjs.__esm({
17
17
  "src/compiler/VRRCompiler.ts"() {
18
- chunkKKP7JKN4_cjs.init_CompilerBase();
18
+ chunkLODTHGST_cjs.init_CompilerBase();
19
19
  chunkE7JP3BS3_cjs.init_safeJsonParse();
20
- chunkHKEXJUWS_cjs.init_DomainBlockCompilerMixin();
20
+ chunkGH6C2QGW_cjs.init_DomainBlockCompilerMixin();
21
21
  VRRTraitDefs = {
22
22
  vrr_twin: { validator: (p) => !!p.mirror },
23
23
  reality_mirror: { validator: (p) => Array.isArray(p.sync) && p.sync.length > 0 },
@@ -43,7 +43,7 @@ var init_VRRCompiler = chunkHCCQLAA4_cjs.__esm({
43
43
  },
44
44
  geo_sync: { validator: (p) => !!p.center && Number(p.radius || 0) >= 0 }
45
45
  };
46
- exports.VRRCompiler = class extends chunkKKP7JKN4_cjs.CompilerBase {
46
+ exports.VRRCompiler = class extends chunkLODTHGST_cjs.CompilerBase {
47
47
  constructor(options) {
48
48
  super();
49
49
  this.compilerName = "VRRCompiler";
@@ -619,28 +619,28 @@ var init_VRRCompiler = chunkHCCQLAA4_cjs.__esm({
619
619
  const domainBlocks = Array.isArray(comp.domainBlocks) ? comp.domainBlocks : [];
620
620
  if (domainBlocks.length > 0) {
621
621
  this.generatedCode.push("\n// === v4.2 Domain Blocks ===");
622
- const compiled = chunkHKEXJUWS_cjs.compileDomainBlocks(
622
+ const compiled = chunkGH6C2QGW_cjs.compileDomainBlocks(
623
623
  // @ts-expect-error During migration
624
624
  domainBlocks,
625
625
  {
626
626
  material: (block) => {
627
- const m = chunkHKEXJUWS_cjs.compileMaterialBlock(block);
627
+ const m = chunkGH6C2QGW_cjs.compileMaterialBlock(block);
628
628
  return `// VRR Material: "${this.escapeStringValue(m.name, "TypeScript")}" type=${m.type} baseColor=${m.baseColor || "none"}`;
629
629
  },
630
630
  physics: (block) => {
631
- const p = chunkHKEXJUWS_cjs.compilePhysicsBlock(block);
631
+ const p = chunkGH6C2QGW_cjs.compilePhysicsBlock(block);
632
632
  return `// VRR Physics: ${p.keyword} "${p.name || ""}" colliders=${p.colliders?.length || 0}`;
633
633
  },
634
634
  vfx: (block) => {
635
- const ps = chunkHKEXJUWS_cjs.compileParticleBlock(block);
635
+ const ps = chunkGH6C2QGW_cjs.compileParticleBlock(block);
636
636
  return `// VRR Particles: "${this.escapeStringValue(ps.name, "TypeScript")}" rate=${ps.properties.rate || "default"}`;
637
637
  },
638
638
  audio: (block) => {
639
- const a = chunkHKEXJUWS_cjs.compileAudioSourceBlock(block);
639
+ const a = chunkGH6C2QGW_cjs.compileAudioSourceBlock(block);
640
640
  return `// VRR Audio: "${this.escapeStringValue(a.name, "TypeScript")}" clip=${a.properties.clip || "none"}`;
641
641
  },
642
642
  weather: (block) => {
643
- const w = chunkHKEXJUWS_cjs.compileWeatherBlock(block);
643
+ const w = chunkGH6C2QGW_cjs.compileWeatherBlock(block);
644
644
  return `// VRR Weather: ${w.keyword} layers=[${w.layers.map((l) => l.type).join(", ")}]`;
645
645
  }
646
646
  },
@@ -810,5 +810,5 @@ const ${twinName} = new THREE.Group();`);
810
810
 
811
811
  exports.VRRCompiler_exports = VRRCompiler_exports;
812
812
  exports.init_VRRCompiler = init_VRRCompiler;
813
- //# sourceMappingURL=chunk-XB274MW5.cjs.map
814
- //# sourceMappingURL=chunk-XB274MW5.cjs.map
813
+ //# sourceMappingURL=chunk-G6PNEASF.cjs.map
814
+ //# sourceMappingURL=chunk-G6PNEASF.cjs.map
@@ -1937,5 +1937,5 @@ var init_constants = __esm({
1937
1937
  });
1938
1938
 
1939
1939
  export { CONNECTOR_ENV_REQUIREMENTS, CONNECTOR_PACKAGES, KNOWN_CONNECTORS, SPATIAL_AUDIO_EXTENSION_TRAITS, VFX_AUDIO_TRAITS, VFX_PARTICLE_TRAITS, VR_TRAITS, init_constants };
1940
- //# sourceMappingURL=chunk-2BSMSUCE.js.map
1941
- //# sourceMappingURL=chunk-2BSMSUCE.js.map
1940
+ //# sourceMappingURL=chunk-GASCWJK5.js.map
1941
+ //# sourceMappingURL=chunk-GASCWJK5.js.map
@@ -1,11 +1,11 @@
1
1
  'use strict';
2
2
 
3
- var chunkKKP7JKN4_cjs = require('./chunk-KKP7JKN4.cjs');
3
+ var chunkLODTHGST_cjs = require('./chunk-LODTHGST.cjs');
4
4
  var chunkHCCQLAA4_cjs = require('./chunk-HCCQLAA4.cjs');
5
5
 
6
6
  // src/compiler/DomainBlockCompilerMixin.ts
7
7
  function esc(value, target) {
8
- return chunkKKP7JKN4_cjs.escapeStringValue(value, target);
8
+ return chunkLODTHGST_cjs.escapeStringValue(value, target);
9
9
  }
10
10
  function isPhysicalMaterial(mat) {
11
11
  return PHYSICAL_MATERIAL_KEYS.some((k) => mat[k] !== void 0);
@@ -2731,18 +2731,10 @@ function compileDataVizBlock(block) {
2731
2731
  const props = block.properties || {};
2732
2732
  let axes;
2733
2733
  if (props.x_axis || props.y_axis || props.z_axis) {
2734
- axes = [
2735
- String(props.x_axis ?? ""),
2736
- String(props.y_axis ?? ""),
2737
- String(props.z_axis ?? "")
2738
- ];
2734
+ axes = [String(props.x_axis ?? ""), String(props.y_axis ?? ""), String(props.z_axis ?? "")];
2739
2735
  } else if (props.axes && typeof props.axes === "object") {
2740
2736
  const a = props.axes;
2741
- axes = [
2742
- String(a[0] ?? ""),
2743
- String(a[1] ?? ""),
2744
- String(a[2] ?? "")
2745
- ];
2737
+ axes = [String(a[0] ?? ""), String(a[1] ?? ""), String(a[2] ?? "")];
2746
2738
  }
2747
2739
  let dimensions;
2748
2740
  if (props.width != null || props.height != null) {
@@ -3715,7 +3707,8 @@ function parseSimulationEnvironment(block) {
3715
3707
  const cp = c.properties || {};
3716
3708
  if (kw === "skybox" || kw === "environment_sky" || kw === "hdri") {
3717
3709
  if (typeof cp.preset === "string" && cp.preset.trim()) env.skyboxPreset = cp.preset.trim();
3718
- if (cp.color != null && String(cp.color).trim() !== "") env.skyboxColor = String(cp.color).trim();
3710
+ if (cp.color != null && String(cp.color).trim() !== "")
3711
+ env.skyboxColor = String(cp.color).trim();
3719
3712
  }
3720
3713
  if (kw === "gravity" || kw === "world_gravity") {
3721
3714
  const g = parseGravityVector(cp);
@@ -3770,9 +3763,7 @@ function simulationEnvironmentToR3FChunks(env) {
3770
3763
  visualLines.push(`<color attach="background" args={['${hex}']} />`);
3771
3764
  }
3772
3765
  if (env.skyboxPreset) {
3773
- visualLines.push(
3774
- `<Environment preset={${JSON.stringify(env.skyboxPreset)}} background />`
3775
- );
3766
+ visualLines.push(`<Environment preset={${JSON.stringify(env.skyboxPreset)}} background />`);
3776
3767
  }
3777
3768
  const meta = {};
3778
3769
  if (env.gravity) meta.gravity = env.gravity;
@@ -3830,13 +3821,13 @@ function hexToRGBA(hex, alpha) {
3830
3821
  ];
3831
3822
  }
3832
3823
  function getRequiredCapability() {
3833
- return chunkKKP7JKN4_cjs.ANSCapabilityPath.DOMAIN_BLOCK;
3824
+ return chunkLODTHGST_cjs.ANSCapabilityPath.DOMAIN_BLOCK;
3834
3825
  }
3835
3826
  var PHYSICAL_MATERIAL_KEYS; exports.DOMAIN_BLOCK_COMPILER_MIXIN_CAPABILITY = void 0;
3836
3827
  var init_DomainBlockCompilerMixin = chunkHCCQLAA4_cjs.__esm({
3837
3828
  "src/compiler/DomainBlockCompilerMixin.ts"() {
3838
- chunkKKP7JKN4_cjs.init_CompilerBase();
3839
- chunkKKP7JKN4_cjs.init_ANSNamespace();
3829
+ chunkLODTHGST_cjs.init_CompilerBase();
3830
+ chunkLODTHGST_cjs.init_ANSNamespace();
3840
3831
  PHYSICAL_MATERIAL_KEYS = [
3841
3832
  "clearcoat",
3842
3833
  "clearcoatRoughness",
@@ -4003,5 +3994,5 @@ exports.web3ToR3F = web3ToR3F;
4003
3994
  exports.web3ToUSDA = web3ToUSDA;
4004
3995
  exports.web3ToUnity = web3ToUnity;
4005
3996
  exports.web3ToVRChat = web3ToVRChat;
4006
- //# sourceMappingURL=chunk-HKEXJUWS.cjs.map
4007
- //# sourceMappingURL=chunk-HKEXJUWS.cjs.map
3997
+ //# sourceMappingURL=chunk-GH6C2QGW.cjs.map
3998
+ //# sourceMappingURL=chunk-GH6C2QGW.cjs.map
@@ -1,5 +1,5 @@
1
1
  import { init_AndroidKotlinHelpers, sanitizeNameCapitalized, getSceneformGeometry, findObjProp, toKotlinType, toKotlinValue, toAndroidColor, compositionHasTrait } from './chunk-FDSGHPAK.js';
2
- import { init_CompilerBase, CompilerBase } from './chunk-QPSKHBJP.js';
2
+ import { init_CompilerBase, CompilerBase } from './chunk-C7ZBSV2Q.js';
3
3
  import { init_geospatial, init_depth_scanner, init_spatial_authoring, init_haptic_feedback, init_nearby_connections, init_foldable_display, init_samsung_dex, init_google_lens, init_webxr, SPATIAL_AUTHORING_TRAITS, SPATIAL_AUTHORING_DEFAULTS, HAPTIC_FEEDBACK_TRAITS, NEARBY_CONNECTIONS_TRAITS, FOLDABLE_DISPLAY_TRAITS, SAMSUNG_DEX_TRAITS, GOOGLE_LENS_TRAITS, WEBXR_TRAITS, DEPTH_SCANNER_TRAITS, GEOSPATIAL_DEFAULTS, DEPTH_SCANNER_DEFAULTS } from './chunk-WKX5AMOY.js';
4
4
  import { init_portal_ar, init_camera_hand_tracking, init_npu_scene, NPU_SCENE_TRAITS, NPU_SCENE_DEFAULTS, CAMERA_HAND_TRACKING_TRAITS, PORTAL_AR_TRAITS } from './chunk-CBJY23VL.js';
5
5
  import { __esm, __export } from './chunk-OL46QLBJ.js';
@@ -261,7 +261,9 @@ function emitGeospatialVPSSetup(compiler, composition) {
261
261
  compiler.emit("node.setParent(anchorNode)");
262
262
  compiler.emit("node.renderable = renderable");
263
263
  compiler.emit("placedNodes[name] = node");
264
- compiler.emit('android.util.Log.d("HoloScript", "Geospatial anchor: $name at ($lat, $lng, $alt)")');
264
+ compiler.emit(
265
+ 'android.util.Log.d("HoloScript", "Geospatial anchor: $name at ($lat, $lng, $alt)")'
266
+ );
265
267
  compiler.indentLevel--;
266
268
  compiler.emit("}");
267
269
  compiler.indentLevel--;
@@ -276,13 +278,9 @@ function emitGeospatialVPSSetup(compiler, composition) {
276
278
  compiler.emit("if (earthRef.trackingState != TrackingState.TRACKING) return");
277
279
  compiler.emit("");
278
280
  compiler.emit("val qx = 0f");
279
- compiler.emit(
280
- "val qy = Math.sin(Math.toRadians(heading.toDouble() / 2)).toFloat()"
281
- );
281
+ compiler.emit("val qy = Math.sin(Math.toRadians(heading.toDouble() / 2)).toFloat()");
282
282
  compiler.emit("val qz = 0f");
283
- compiler.emit(
284
- "val qw = Math.cos(Math.toRadians(heading.toDouble() / 2)).toFloat()"
285
- );
283
+ compiler.emit("val qw = Math.cos(Math.toRadians(heading.toDouble() / 2)).toFloat()");
286
284
  compiler.emit("");
287
285
  compiler.emit(
288
286
  "earthRef.resolveAnchorOnTerrainAsync(lat, lng, altOffset, qx, qy, qz, qw) { anchor, state ->"
@@ -322,13 +320,9 @@ function emitGeospatialVPSSetup(compiler, composition) {
322
320
  compiler.emit("if (earthRef.trackingState != TrackingState.TRACKING) return");
323
321
  compiler.emit("");
324
322
  compiler.emit("val qx = 0f");
325
- compiler.emit(
326
- "val qy = Math.sin(Math.toRadians(heading.toDouble() / 2)).toFloat()"
327
- );
323
+ compiler.emit("val qy = Math.sin(Math.toRadians(heading.toDouble() / 2)).toFloat()");
328
324
  compiler.emit("val qz = 0f");
329
- compiler.emit(
330
- "val qw = Math.cos(Math.toRadians(heading.toDouble() / 2)).toFloat()"
331
- );
325
+ compiler.emit("val qw = Math.cos(Math.toRadians(heading.toDouble() / 2)).toFloat()");
332
326
  compiler.emit("");
333
327
  compiler.emit(
334
328
  "earthRef.resolveAnchorOnRooftopAsync(lat, lng, altOffset, qx, qy, qz, qw) { anchor, state ->"
@@ -624,7 +618,9 @@ function emitDepthScanSetup(compiler, composition) {
624
618
  compiler.emit("} else {");
625
619
  compiler.indentLevel++;
626
620
  compiler.emit("// GLB export: binary glTF format");
627
- compiler.emit('android.util.Log.d("HoloScript", "GLB export requires glTF serializer library")');
621
+ compiler.emit(
622
+ 'android.util.Log.d("HoloScript", "GLB export requires glTF serializer library")'
623
+ );
628
624
  compiler.indentLevel--;
629
625
  compiler.emit("}");
630
626
  compiler.emit("");
@@ -766,7 +762,9 @@ function emitPortalARSetup(compiler, composition) {
766
762
  compiler.indentLevel++;
767
763
  compiler.emit("val frame = arFragment.arSceneView.arFrame ?: return@addOnUpdateListener");
768
764
  compiler.emit("val lightEstimate = frame.lightEstimate");
769
- compiler.emit("if (lightEstimate != null && lightEstimate.state == LightEstimate.State.VALID) {");
765
+ compiler.emit(
766
+ "if (lightEstimate != null && lightEstimate.state == LightEstimate.State.VALID) {"
767
+ );
770
768
  compiler.indentLevel++;
771
769
  compiler.emit("val intensity = lightEstimate.pixelIntensity");
772
770
  compiler.emit("val colorCorrection = FloatArray(4)");
@@ -927,9 +925,7 @@ function emitHandTrackingSetup(compiler, composition) {
927
925
  if (hasPinch) {
928
926
  compiler.emit("// Pinch gesture: thumb tip close to index tip");
929
927
  compiler.emit("val pinchDist = Math.sqrt(");
930
- compiler.emit(
931
- " Math.pow((thumbTip[0] - indexTip[0]).toDouble(), 2.0) +"
932
- );
928
+ compiler.emit(" Math.pow((thumbTip[0] - indexTip[0]).toDouble(), 2.0) +");
933
929
  compiler.emit(" Math.pow((thumbTip[1] - indexTip[1]).toDouble(), 2.0)");
934
930
  compiler.emit(").toFloat()");
935
931
  compiler.emit("if (pinchDist < 0.05f) {");
@@ -1844,7 +1840,9 @@ function generateNodeFactoryFile(compiler, composition) {
1844
1840
  compiler.indentLevel = 0;
1845
1841
  const pkg = compiler.options.packageName;
1846
1842
  compiler.emit("// Auto-generated by HoloScript AndroidCompiler");
1847
- compiler.emit(`// Node Factory: ${compiler.escapeStringValue(composition.name, "Kotlin")}`);
1843
+ compiler.emit(
1844
+ `// Node Factory: ${compiler.escapeStringValue(composition.name, "Kotlin")}`
1845
+ );
1848
1846
  compiler.emit("");
1849
1847
  compiler.emit(`package ${pkg}`);
1850
1848
  compiler.emit("");
@@ -1878,7 +1876,9 @@ function generateNodeFactoryFile(compiler, composition) {
1878
1876
  compiler.indentLevel--;
1879
1877
  compiler.emit("}");
1880
1878
  } else {
1881
- compiler.emit("MaterialFactory.makeOpaqueWithColor(context, Color(android.graphics.Color.BLUE))");
1879
+ compiler.emit(
1880
+ "MaterialFactory.makeOpaqueWithColor(context, Color(android.graphics.Color.BLUE))"
1881
+ );
1882
1882
  compiler.emit(" .thenCompose { material ->");
1883
1883
  compiler.emit(
1884
1884
  " ShapeFactory.makeCube(Vector3(0.1f, 0.1f, 0.1f), Vector3.zero(), material)"
@@ -2127,7 +2127,9 @@ function emitHapticSetup(compiler, composition) {
2127
2127
  compiler.emit("");
2128
2128
  }
2129
2129
  if (compiler.compositionHasTrait(composition, "haptic_intensity")) {
2130
- compiler.emit("fun setIntensity(value: Float) { intensityMultiplier = value.coerceIn(0f, 1f) }");
2130
+ compiler.emit(
2131
+ "fun setIntensity(value: Float) { intensityMultiplier = value.coerceIn(0f, 1f) }"
2132
+ );
2131
2133
  compiler.emit("");
2132
2134
  }
2133
2135
  compiler.emit("fun onTouch() { vibrate(VibrationEffect.EFFECT_CLICK) }");
@@ -2143,7 +2145,9 @@ function emitHapticSetup(compiler, composition) {
2143
2145
  compiler.emit(
2144
2146
  "val amplitude = ((1.0f - distance.coerceIn(0f, 1f)) * 255 * intensityMultiplier).toInt()"
2145
2147
  );
2146
- compiler.emit("vibrator.vibrate(VibrationEffect.createOneShot(50, amplitude.coerceIn(1, 255)))");
2148
+ compiler.emit(
2149
+ "vibrator.vibrate(VibrationEffect.createOneShot(50, amplitude.coerceIn(1, 255)))"
2150
+ );
2147
2151
  compiler.indentLevel--;
2148
2152
  compiler.emit("}");
2149
2153
  compiler.emit("");
@@ -2206,7 +2210,9 @@ function emitNearbySetup(compiler, composition) {
2206
2210
  compiler.indentLevel++;
2207
2211
  compiler.emit("override fun onConnectionInitiated(endpointId: String, info: ConnectionInfo) {");
2208
2212
  compiler.indentLevel++;
2209
- compiler.emit("Nearby.getConnectionsClient(context).acceptConnection(endpointId, payloadCallback)");
2213
+ compiler.emit(
2214
+ "Nearby.getConnectionsClient(context).acceptConnection(endpointId, payloadCallback)"
2215
+ );
2210
2216
  compiler.indentLevel--;
2211
2217
  compiler.emit("}");
2212
2218
  compiler.emit(
@@ -2258,7 +2264,9 @@ function emitNearbySetup(compiler, composition) {
2258
2264
  "Nearby.getConnectionsClient(context).startDiscovery(SERVICE_ID, object : EndpointDiscoveryCallback() {"
2259
2265
  );
2260
2266
  compiler.indentLevel++;
2261
- compiler.emit("override fun onEndpointFound(endpointId: String, info: DiscoveredEndpointInfo) {");
2267
+ compiler.emit(
2268
+ "override fun onEndpointFound(endpointId: String, info: DiscoveredEndpointInfo) {"
2269
+ );
2262
2270
  compiler.indentLevel++;
2263
2271
  compiler.emit(
2264
2272
  'Nearby.getConnectionsClient(context).requestConnection("HoloDevice", endpointId, connectionCallback)'
@@ -3034,5 +3042,5 @@ var init_AndroidCompiler = __esm({
3034
3042
  });
3035
3043
 
3036
3044
  export { AndroidCompiler, AndroidCompiler_exports, compileToAndroid, init_AndroidCompiler };
3037
- //# sourceMappingURL=chunk-WRKUDAZJ.js.map
3038
- //# sourceMappingURL=chunk-WRKUDAZJ.js.map
3045
+ //# sourceMappingURL=chunk-GSOUNWEL.js.map
3046
+ //# sourceMappingURL=chunk-GSOUNWEL.js.map
@@ -1487,5 +1487,5 @@ var shaderHandler = {
1487
1487
  };
1488
1488
 
1489
1489
  export { LIGHTING_PRESETS, LightingTrait, MATERIAL_PRESETS, MaterialTrait, RenderingTrait, SHADER_CHUNKS, SHADER_PRESETS, ShaderTrait, createLightingTrait, createMaterialTrait, createRenderingTrait, createShaderTrait, lightingHandler, materialHandler, renderingHandler, shaderHandler };
1490
- //# sourceMappingURL=chunk-QPOQ7VPI.js.map
1491
- //# sourceMappingURL=chunk-QPOQ7VPI.js.map
1490
+ //# sourceMappingURL=chunk-GTA4Q3A3.js.map
1491
+ //# sourceMappingURL=chunk-GTA4Q3A3.js.map
@@ -2283,11 +2283,7 @@ var HoloScriptCodeParser = class {
2283
2283
  */
2284
2284
  parsePosition(value) {
2285
2285
  if (Array.isArray(value)) {
2286
- return [
2287
- Number(value[0]) || 0,
2288
- Number(value[1]) || 0,
2289
- Number(value[2]) || 0
2290
- ];
2286
+ return [Number(value[0]) || 0, Number(value[1]) || 0, Number(value[2]) || 0];
2291
2287
  }
2292
2288
  if (typeof value === "object" && value !== null) {
2293
2289
  const v = value;
@@ -2521,5 +2517,5 @@ var HoloScriptCodeParser = class {
2521
2517
  exports.ERROR_CODES = ERROR_CODES;
2522
2518
  exports.HoloScriptCodeParser = HoloScriptCodeParser;
2523
2519
  exports.ParserPools = ParserPools;
2524
- //# sourceMappingURL=chunk-JIYN45TV.cjs.map
2525
- //# sourceMappingURL=chunk-JIYN45TV.cjs.map
2520
+ //# sourceMappingURL=chunk-GVFJ6T4S.cjs.map
2521
+ //# sourceMappingURL=chunk-GVFJ6T4S.cjs.map