@luma.gl/graph 0.0.0-stage → 10.0.0-alpha.6

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 (2671) hide show
  1. package/LICENSE +38 -0
  2. package/README.md +62 -2
  3. package/dist/arrow/dggs/dggs-gpu-polygons.cjs +667 -0
  4. package/dist/arrow/dggs/dggs-gpu-polygons.d.ts +75 -0
  5. package/dist/arrow/dggs/dggs-gpu-polygons.d.ts.map +1 -0
  6. package/dist/arrow/dggs/dggs-gpu-polygons.js +651 -0
  7. package/dist/arrow/dggs/dggs-gpu-polygons.js.map +1 -0
  8. package/dist/arrow/geoarrow/arrow-geoarrow-adapter.cjs +411 -0
  9. package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts +31 -0
  10. package/dist/arrow/geoarrow/arrow-geoarrow-adapter.d.ts.map +1 -0
  11. package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js +395 -0
  12. package/dist/arrow/geoarrow/arrow-geoarrow-adapter.js.map +1 -0
  13. package/dist/arrow/geoarrow/arrow-geoarrow-conversion.cjs +304 -0
  14. package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts +32 -0
  15. package/dist/arrow/geoarrow/arrow-geoarrow-conversion.d.ts.map +1 -0
  16. package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js +293 -0
  17. package/dist/arrow/geoarrow/arrow-geoarrow-conversion.js.map +1 -0
  18. package/dist/arrow/geoarrow/arrow-polygon-tessellation.cjs +232 -0
  19. package/dist/arrow/geoarrow/arrow-polygon-tessellation.d.ts +54 -0
  20. package/dist/arrow/geoarrow/arrow-polygon-tessellation.d.ts.map +1 -0
  21. package/dist/arrow/geoarrow/arrow-polygon-tessellation.js +222 -0
  22. package/dist/arrow/geoarrow/arrow-polygon-tessellation.js.map +1 -0
  23. package/dist/arrow/gpu/arrow-gpu-analytics-adapters.cjs +314 -0
  24. package/dist/arrow/gpu/arrow-gpu-analytics-adapters.d.ts +42 -0
  25. package/dist/arrow/gpu/arrow-gpu-analytics-adapters.d.ts.map +1 -0
  26. package/dist/arrow/gpu/arrow-gpu-analytics-adapters.js +318 -0
  27. package/dist/arrow/gpu/arrow-gpu-analytics-adapters.js.map +1 -0
  28. package/dist/arrow/gpu/arrow-gpu-analytics-readback.cjs +204 -0
  29. package/dist/arrow/gpu/arrow-gpu-analytics-readback.d.ts +30 -0
  30. package/dist/arrow/gpu/arrow-gpu-analytics-readback.d.ts.map +1 -0
  31. package/dist/arrow/gpu/arrow-gpu-analytics-readback.js +195 -0
  32. package/dist/arrow/gpu/arrow-gpu-analytics-readback.js.map +1 -0
  33. package/dist/arrow/gpu/arrow-gpu-table-adapters.cjs +257 -0
  34. package/dist/arrow/gpu/arrow-gpu-table-adapters.d.ts +45 -0
  35. package/dist/arrow/gpu/arrow-gpu-table-adapters.d.ts.map +1 -0
  36. package/dist/arrow/gpu/arrow-gpu-table-adapters.js +257 -0
  37. package/dist/arrow/gpu/arrow-gpu-table-adapters.js.map +1 -0
  38. package/dist/arrow/gpu/arrow-gpu-table-conversion.cjs +230 -0
  39. package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts +71 -0
  40. package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts.map +1 -0
  41. package/dist/arrow/gpu/arrow-gpu-table-conversion.js +215 -0
  42. package/dist/arrow/gpu/arrow-gpu-table-conversion.js.map +1 -0
  43. package/dist/arrow/gpu/arrow-input-schema.cjs +36 -0
  44. package/dist/arrow/gpu/arrow-input-schema.d.ts +41 -0
  45. package/dist/arrow/gpu/arrow-input-schema.d.ts.map +1 -0
  46. package/dist/arrow/gpu/arrow-input-schema.js +17 -0
  47. package/dist/arrow/gpu/arrow-input-schema.js.map +1 -0
  48. package/dist/arrow/index.cjs +90 -0
  49. package/dist/arrow/index.cjs.map +6 -0
  50. package/dist/arrow/index.d.ts +9 -0
  51. package/dist/arrow/index.d.ts.map +1 -0
  52. package/dist/arrow/index.js +12 -0
  53. package/dist/arrow/index.js.map +1 -0
  54. package/dist/arrow/internal.cjs +30 -0
  55. package/dist/arrow/internal.cjs.map +6 -0
  56. package/dist/arrow/internal.d.ts +19 -0
  57. package/dist/arrow/internal.d.ts.map +1 -0
  58. package/dist/arrow/internal.js +7 -0
  59. package/dist/arrow/internal.js.map +1 -0
  60. package/dist/dist.dev.js +9873 -0
  61. package/dist/dist.min.js +205 -0
  62. package/dist/experimental/index.cjs +23 -0
  63. package/dist/experimental/index.cjs.map +6 -0
  64. package/dist/experimental/index.d.ts +3 -0
  65. package/dist/experimental/index.d.ts.map +1 -0
  66. package/dist/experimental/index.js +6 -0
  67. package/dist/experimental/index.js.map +1 -0
  68. package/dist/experimental/models/index.cjs +42 -0
  69. package/dist/experimental/models/index.cjs.map +6 -0
  70. package/dist/experimental/models/index.d.ts +6 -0
  71. package/dist/experimental/models/index.d.ts.map +1 -0
  72. package/dist/experimental/models/index.js +8 -0
  73. package/dist/experimental/models/index.js.map +1 -0
  74. package/dist/experimental/models/path/gpu/gpu-path-expansion.cjs +238 -0
  75. package/dist/experimental/models/path/gpu/gpu-path-expansion.d.ts +70 -0
  76. package/dist/experimental/models/path/gpu/gpu-path-expansion.d.ts.map +1 -0
  77. package/dist/experimental/models/path/gpu/gpu-path-expansion.js +213 -0
  78. package/dist/experimental/models/path/gpu/gpu-path-expansion.js.map +1 -0
  79. package/dist/experimental/models/path/gpu/path-storage-gpu-inputs.cjs +166 -0
  80. package/dist/experimental/models/path/gpu/path-storage-gpu-inputs.d.ts +54 -0
  81. package/dist/experimental/models/path/gpu/path-storage-gpu-inputs.d.ts.map +1 -0
  82. package/dist/experimental/models/path/gpu/path-storage-gpu-inputs.js +152 -0
  83. package/dist/experimental/models/path/gpu/path-storage-gpu-inputs.js.map +1 -0
  84. package/dist/experimental/models/polygon/polygon-gpu-inputs.cjs +85 -0
  85. package/dist/experimental/models/polygon/polygon-gpu-inputs.d.ts +60 -0
  86. package/dist/experimental/models/polygon/polygon-gpu-inputs.d.ts.map +1 -0
  87. package/dist/experimental/models/polygon/polygon-gpu-inputs.js +64 -0
  88. package/dist/experimental/models/polygon/polygon-gpu-inputs.js.map +1 -0
  89. package/dist/experimental/simulation/flow-field-atlas.cjs +86 -0
  90. package/dist/experimental/simulation/flow-field-atlas.d.ts +33 -0
  91. package/dist/experimental/simulation/flow-field-atlas.d.ts.map +1 -0
  92. package/dist/experimental/simulation/flow-field-atlas.js +70 -0
  93. package/dist/experimental/simulation/flow-field-atlas.js.map +1 -0
  94. package/dist/experimental/simulation/flow-particle-field.cjs +41 -0
  95. package/dist/experimental/simulation/flow-particle-field.d.ts +18 -0
  96. package/dist/experimental/simulation/flow-particle-field.d.ts.map +1 -0
  97. package/dist/experimental/simulation/flow-particle-field.js +21 -0
  98. package/dist/experimental/simulation/flow-particle-field.js.map +1 -0
  99. package/dist/experimental/simulation/flow-particle-shaders.cjs +193 -0
  100. package/dist/experimental/simulation/flow-particle-shaders.d.ts +4 -0
  101. package/dist/experimental/simulation/flow-particle-shaders.d.ts.map +1 -0
  102. package/dist/experimental/simulation/flow-particle-shaders.js +158 -0
  103. package/dist/experimental/simulation/flow-particle-shaders.js.map +1 -0
  104. package/dist/experimental/simulation/flow-particle-simulation.cjs +236 -0
  105. package/dist/experimental/simulation/flow-particle-simulation.d.ts +66 -0
  106. package/dist/experimental/simulation/flow-particle-simulation.d.ts.map +1 -0
  107. package/dist/experimental/simulation/flow-particle-simulation.js +221 -0
  108. package/dist/experimental/simulation/flow-particle-simulation.js.map +1 -0
  109. package/dist/experimental/simulation/index.cjs +71 -0
  110. package/dist/experimental/simulation/index.cjs.map +6 -0
  111. package/dist/experimental/simulation/index.d.ts +14 -0
  112. package/dist/experimental/simulation/index.d.ts.map +1 -0
  113. package/dist/experimental/simulation/index.js +11 -0
  114. package/dist/experimental/simulation/index.js.map +1 -0
  115. package/dist/experimental/simulation/mls-mpm-fluid-simulation-shaders.cjs +418 -0
  116. package/dist/experimental/simulation/mls-mpm-fluid-simulation-shaders.d.ts +26 -0
  117. package/dist/experimental/simulation/mls-mpm-fluid-simulation-shaders.d.ts.map +1 -0
  118. package/dist/experimental/simulation/mls-mpm-fluid-simulation-shaders.js +350 -0
  119. package/dist/experimental/simulation/mls-mpm-fluid-simulation-shaders.js.map +1 -0
  120. package/dist/experimental/simulation/mls-mpm-fluid-simulation.cjs +713 -0
  121. package/dist/experimental/simulation/mls-mpm-fluid-simulation.d.ts +199 -0
  122. package/dist/experimental/simulation/mls-mpm-fluid-simulation.d.ts.map +1 -0
  123. package/dist/experimental/simulation/mls-mpm-fluid-simulation.js +703 -0
  124. package/dist/experimental/simulation/mls-mpm-fluid-simulation.js.map +1 -0
  125. package/dist/experimental/simulation/scientific-flow-compute.cjs +266 -0
  126. package/dist/experimental/simulation/scientific-flow-compute.d.ts +41 -0
  127. package/dist/experimental/simulation/scientific-flow-compute.d.ts.map +1 -0
  128. package/dist/experimental/simulation/scientific-flow-compute.js +262 -0
  129. package/dist/experimental/simulation/scientific-flow-compute.js.map +1 -0
  130. package/dist/experimental/simulation/scientific-flow-field.cjs +85 -0
  131. package/dist/experimental/simulation/scientific-flow-field.d.ts +39 -0
  132. package/dist/experimental/simulation/scientific-flow-field.d.ts.map +1 -0
  133. package/dist/experimental/simulation/scientific-flow-field.js +79 -0
  134. package/dist/experimental/simulation/scientific-flow-field.js.map +1 -0
  135. package/dist/experimental/simulation/scientific-flow-graph.cjs +184 -0
  136. package/dist/experimental/simulation/scientific-flow-graph.d.ts +50 -0
  137. package/dist/experimental/simulation/scientific-flow-graph.d.ts.map +1 -0
  138. package/dist/experimental/simulation/scientific-flow-graph.js +166 -0
  139. package/dist/experimental/simulation/scientific-flow-graph.js.map +1 -0
  140. package/dist/experimental/simulation/scientific-flow-rk45-shaders.cjs +158 -0
  141. package/dist/experimental/simulation/scientific-flow-rk45-shaders.d.ts +2 -0
  142. package/dist/experimental/simulation/scientific-flow-rk45-shaders.d.ts.map +1 -0
  143. package/dist/experimental/simulation/scientific-flow-rk45-shaders.js +137 -0
  144. package/dist/experimental/simulation/scientific-flow-rk45-shaders.js.map +1 -0
  145. package/dist/experimental/simulation/scientific-flow-sampling-shaders.cjs +68 -0
  146. package/dist/experimental/simulation/scientific-flow-sampling-shaders.d.ts +3 -0
  147. package/dist/experimental/simulation/scientific-flow-sampling-shaders.d.ts.map +1 -0
  148. package/dist/experimental/simulation/scientific-flow-sampling-shaders.js +44 -0
  149. package/dist/experimental/simulation/scientific-flow-sampling-shaders.js.map +1 -0
  150. package/dist/experimental/simulation/scientific-flow-tracer.cjs +398 -0
  151. package/dist/experimental/simulation/scientific-flow-tracer.d.ts +99 -0
  152. package/dist/experimental/simulation/scientific-flow-tracer.d.ts.map +1 -0
  153. package/dist/experimental/simulation/scientific-flow-tracer.js +397 -0
  154. package/dist/experimental/simulation/scientific-flow-tracer.js.map +1 -0
  155. package/dist/geospatial/geospatial-utils.cjs +449 -0
  156. package/dist/geospatial/geospatial-utils.d.ts +97 -0
  157. package/dist/geospatial/geospatial-utils.d.ts.map +1 -0
  158. package/dist/geospatial/geospatial-utils.js +449 -0
  159. package/dist/geospatial/geospatial-utils.js.map +1 -0
  160. package/dist/geospatial/gpu-haversine-distance.cjs +171 -0
  161. package/dist/geospatial/gpu-haversine-distance.d.ts +41 -0
  162. package/dist/geospatial/gpu-haversine-distance.d.ts.map +1 -0
  163. package/dist/geospatial/gpu-haversine-distance.js +155 -0
  164. package/dist/geospatial/gpu-haversine-distance.js.map +1 -0
  165. package/dist/geospatial/gpu-pairwise-point-distance.cjs +109 -0
  166. package/dist/geospatial/gpu-pairwise-point-distance.d.ts +35 -0
  167. package/dist/geospatial/gpu-pairwise-point-distance.d.ts.map +1 -0
  168. package/dist/geospatial/gpu-pairwise-point-distance.js +87 -0
  169. package/dist/geospatial/gpu-pairwise-point-distance.js.map +1 -0
  170. package/dist/geospatial/gpu-pairwise-point-in-polygon.cjs +441 -0
  171. package/dist/geospatial/gpu-pairwise-point-in-polygon.d.ts +63 -0
  172. package/dist/geospatial/gpu-pairwise-point-in-polygon.d.ts.map +1 -0
  173. package/dist/geospatial/gpu-pairwise-point-in-polygon.js +425 -0
  174. package/dist/geospatial/gpu-pairwise-point-in-polygon.js.map +1 -0
  175. package/dist/geospatial/gpu-pairwise-point-linestring-nearest.cjs +685 -0
  176. package/dist/geospatial/gpu-pairwise-point-linestring-nearest.d.ts +64 -0
  177. package/dist/geospatial/gpu-pairwise-point-linestring-nearest.d.ts.map +1 -0
  178. package/dist/geospatial/gpu-pairwise-point-linestring-nearest.js +684 -0
  179. package/dist/geospatial/gpu-pairwise-point-linestring-nearest.js.map +1 -0
  180. package/dist/geospatial/gpu-pairwise-point-segment-distance.cjs +201 -0
  181. package/dist/geospatial/gpu-pairwise-point-segment-distance.d.ts +40 -0
  182. package/dist/geospatial/gpu-pairwise-point-segment-distance.d.ts.map +1 -0
  183. package/dist/geospatial/gpu-pairwise-point-segment-distance.js +179 -0
  184. package/dist/geospatial/gpu-pairwise-point-segment-distance.js.map +1 -0
  185. package/dist/geospatial/gpu-point-spatial-query.cjs +783 -0
  186. package/dist/geospatial/gpu-point-spatial-query.d.ts +102 -0
  187. package/dist/geospatial/gpu-point-spatial-query.d.ts.map +1 -0
  188. package/dist/geospatial/gpu-point-spatial-query.js +871 -0
  189. package/dist/geospatial/gpu-point-spatial-query.js.map +1 -0
  190. package/dist/geospatial/gpu-sinusoidal-projection.cjs +113 -0
  191. package/dist/geospatial/gpu-sinusoidal-projection.d.ts +31 -0
  192. package/dist/geospatial/gpu-sinusoidal-projection.d.ts.map +1 -0
  193. package/dist/geospatial/gpu-sinusoidal-projection.js +103 -0
  194. package/dist/geospatial/gpu-sinusoidal-projection.js.map +1 -0
  195. package/dist/geospatial/gpu-spatial-query-types.cjs +15 -0
  196. package/dist/geospatial/gpu-spatial-query-types.d.ts +23 -0
  197. package/dist/geospatial/gpu-spatial-query-types.d.ts.map +1 -0
  198. package/dist/geospatial/gpu-spatial-query-types.js +6 -0
  199. package/dist/geospatial/gpu-spatial-query-types.js.map +1 -0
  200. package/dist/geospatial/index.cjs +50 -0
  201. package/dist/geospatial/index.cjs.map +6 -0
  202. package/dist/geospatial/index.d.ts +19 -0
  203. package/dist/geospatial/index.d.ts.map +1 -0
  204. package/dist/geospatial/index.js +13 -0
  205. package/dist/geospatial/index.js.map +1 -0
  206. package/dist/geospatial/types.cjs +15 -0
  207. package/dist/geospatial/types.d.ts +19 -0
  208. package/dist/geospatial/types.d.ts.map +1 -0
  209. package/dist/geospatial/types.js +6 -0
  210. package/dist/geospatial/types.js.map +1 -0
  211. package/dist/gpu-a5/gpu-a5-cell-projection.cjs +32 -0
  212. package/dist/gpu-a5/gpu-a5-cell-projection.d.ts +8 -0
  213. package/dist/gpu-a5/gpu-a5-cell-projection.d.ts.map +1 -0
  214. package/dist/gpu-a5/gpu-a5-cell-projection.js +11 -0
  215. package/dist/gpu-a5/gpu-a5-cell-projection.js.map +1 -0
  216. package/dist/gpu-a5/index.cjs +27 -0
  217. package/dist/gpu-a5/index.cjs.map +6 -0
  218. package/dist/gpu-a5/index.d.ts +4 -0
  219. package/dist/gpu-a5/index.d.ts.map +1 -0
  220. package/dist/gpu-a5/index.js +5 -0
  221. package/dist/gpu-a5/index.js.map +1 -0
  222. package/dist/gpu-core/dispatch-command-buffer.cjs +136 -0
  223. package/dist/gpu-core/dispatch-command-buffer.d.ts +49 -0
  224. package/dist/gpu-core/dispatch-command-buffer.d.ts.map +1 -0
  225. package/dist/gpu-core/dispatch-command-buffer.js +118 -0
  226. package/dist/gpu-core/dispatch-command-buffer.js.map +1 -0
  227. package/dist/gpu-core/draw-command-buffer.cjs +207 -0
  228. package/dist/gpu-core/draw-command-buffer.d.ts +97 -0
  229. package/dist/gpu-core/draw-command-buffer.d.ts.map +1 -0
  230. package/dist/gpu-core/draw-command-buffer.js +199 -0
  231. package/dist/gpu-core/draw-command-buffer.js.map +1 -0
  232. package/dist/gpu-core/gpu-adaptive-spmv.cjs +287 -0
  233. package/dist/gpu-core/gpu-adaptive-spmv.d.ts +33 -0
  234. package/dist/gpu-core/gpu-adaptive-spmv.d.ts.map +1 -0
  235. package/dist/gpu-core/gpu-adaptive-spmv.js +269 -0
  236. package/dist/gpu-core/gpu-adaptive-spmv.js.map +1 -0
  237. package/dist/gpu-core/gpu-ancestor-projection.cjs +302 -0
  238. package/dist/gpu-core/gpu-ancestor-projection.d.ts +46 -0
  239. package/dist/gpu-core/gpu-ancestor-projection.d.ts.map +1 -0
  240. package/dist/gpu-core/gpu-ancestor-projection.js +294 -0
  241. package/dist/gpu-core/gpu-ancestor-projection.js.map +1 -0
  242. package/dist/gpu-core/gpu-batch-hash-index.cjs +174 -0
  243. package/dist/gpu-core/gpu-batch-hash-index.d.ts +53 -0
  244. package/dist/gpu-core/gpu-batch-hash-index.d.ts.map +1 -0
  245. package/dist/gpu-core/gpu-batch-hash-index.js +166 -0
  246. package/dist/gpu-core/gpu-batch-hash-index.js.map +1 -0
  247. package/dist/gpu-core/gpu-batch-hash-join.cjs +209 -0
  248. package/dist/gpu-core/gpu-batch-hash-join.d.ts +66 -0
  249. package/dist/gpu-core/gpu-batch-hash-join.d.ts.map +1 -0
  250. package/dist/gpu-core/gpu-batch-hash-join.js +206 -0
  251. package/dist/gpu-core/gpu-batch-hash-join.js.map +1 -0
  252. package/dist/gpu-core/gpu-batch-sort.cjs +131 -0
  253. package/dist/gpu-core/gpu-batch-sort.d.ts +58 -0
  254. package/dist/gpu-core/gpu-batch-sort.d.ts.map +1 -0
  255. package/dist/gpu-core/gpu-batch-sort.js +121 -0
  256. package/dist/gpu-core/gpu-batch-sort.js.map +1 -0
  257. package/dist/gpu-core/gpu-bvh-query.cjs +447 -0
  258. package/dist/gpu-core/gpu-bvh-query.d.ts +61 -0
  259. package/dist/gpu-core/gpu-bvh-query.d.ts.map +1 -0
  260. package/dist/gpu-core/gpu-bvh-query.js +457 -0
  261. package/dist/gpu-core/gpu-bvh-query.js.map +1 -0
  262. package/dist/gpu-core/gpu-bvh.cjs +550 -0
  263. package/dist/gpu-core/gpu-bvh.d.ts +84 -0
  264. package/dist/gpu-core/gpu-bvh.d.ts.map +1 -0
  265. package/dist/gpu-core/gpu-bvh.js +534 -0
  266. package/dist/gpu-core/gpu-bvh.js.map +1 -0
  267. package/dist/gpu-core/gpu-byte-range-gather.cjs +263 -0
  268. package/dist/gpu-core/gpu-byte-range-gather.d.ts +22 -0
  269. package/dist/gpu-core/gpu-byte-range-gather.d.ts.map +1 -0
  270. package/dist/gpu-core/gpu-byte-range-gather.js +251 -0
  271. package/dist/gpu-core/gpu-byte-range-gather.js.map +1 -0
  272. package/dist/gpu-core/gpu-chunk-utils.cjs +172 -0
  273. package/dist/gpu-core/gpu-chunk-utils.d.ts +20 -0
  274. package/dist/gpu-core/gpu-chunk-utils.d.ts.map +1 -0
  275. package/dist/gpu-core/gpu-chunk-utils.js +164 -0
  276. package/dist/gpu-core/gpu-chunk-utils.js.map +1 -0
  277. package/dist/gpu-core/gpu-chunked-indexed-scatter.cjs +531 -0
  278. package/dist/gpu-core/gpu-chunked-indexed-scatter.d.ts +60 -0
  279. package/dist/gpu-core/gpu-chunked-indexed-scatter.d.ts.map +1 -0
  280. package/dist/gpu-core/gpu-chunked-indexed-scatter.js +513 -0
  281. package/dist/gpu-core/gpu-chunked-indexed-scatter.js.map +1 -0
  282. package/dist/gpu-core/gpu-command-dispatch-metadata.cjs +47 -0
  283. package/dist/gpu-core/gpu-command-dispatch-metadata.d.ts +11 -0
  284. package/dist/gpu-core/gpu-command-dispatch-metadata.d.ts.map +1 -0
  285. package/dist/gpu-core/gpu-command-dispatch-metadata.js +29 -0
  286. package/dist/gpu-core/gpu-command-dispatch-metadata.js.map +1 -0
  287. package/dist/gpu-core/gpu-command-graph-autotuner.cjs +237 -0
  288. package/dist/gpu-core/gpu-command-graph-autotuner.d.ts +110 -0
  289. package/dist/gpu-core/gpu-command-graph-autotuner.d.ts.map +1 -0
  290. package/dist/gpu-core/gpu-command-graph-autotuner.js +258 -0
  291. package/dist/gpu-core/gpu-command-graph-autotuner.js.map +1 -0
  292. package/dist/gpu-core/gpu-command-graph-budget-controller.cjs +161 -0
  293. package/dist/gpu-core/gpu-command-graph-budget-controller.d.ts +63 -0
  294. package/dist/gpu-core/gpu-command-graph-budget-controller.d.ts.map +1 -0
  295. package/dist/gpu-core/gpu-command-graph-budget-controller.js +157 -0
  296. package/dist/gpu-core/gpu-command-graph-budget-controller.js.map +1 -0
  297. package/dist/gpu-core/gpu-command-graph-compiler.cjs +579 -0
  298. package/dist/gpu-core/gpu-command-graph-compiler.d.ts +122 -0
  299. package/dist/gpu-core/gpu-command-graph-compiler.d.ts.map +1 -0
  300. package/dist/gpu-core/gpu-command-graph-compiler.js +669 -0
  301. package/dist/gpu-core/gpu-command-graph-compiler.js.map +1 -0
  302. package/dist/gpu-core/gpu-command-graph-inspector.cjs +333 -0
  303. package/dist/gpu-core/gpu-command-graph-inspector.d.ts +197 -0
  304. package/dist/gpu-core/gpu-command-graph-inspector.d.ts.map +1 -0
  305. package/dist/gpu-core/gpu-command-graph-inspector.js +321 -0
  306. package/dist/gpu-core/gpu-command-graph-inspector.js.map +1 -0
  307. package/dist/gpu-core/gpu-command-graph-lowering-scope.cjs +87 -0
  308. package/dist/gpu-core/gpu-command-graph-lowering-scope.d.ts +27 -0
  309. package/dist/gpu-core/gpu-command-graph-lowering-scope.d.ts.map +1 -0
  310. package/dist/gpu-core/gpu-command-graph-lowering-scope.js +75 -0
  311. package/dist/gpu-core/gpu-command-graph-lowering-scope.js.map +1 -0
  312. package/dist/gpu-core/gpu-command-graph-types.cjs +220 -0
  313. package/dist/gpu-core/gpu-command-graph-types.d.ts +690 -0
  314. package/dist/gpu-core/gpu-command-graph-types.d.ts.map +1 -0
  315. package/dist/gpu-core/gpu-command-graph-types.js +220 -0
  316. package/dist/gpu-core/gpu-command-graph-types.js.map +1 -0
  317. package/dist/gpu-core/gpu-command-graph.cjs +1702 -0
  318. package/dist/gpu-core/gpu-command-graph.d.ts +422 -0
  319. package/dist/gpu-core/gpu-command-graph.d.ts.map +1 -0
  320. package/dist/gpu-core/gpu-command-graph.js +1833 -0
  321. package/dist/gpu-core/gpu-command-graph.js.map +1 -0
  322. package/dist/gpu-core/gpu-command-node.cjs +66 -0
  323. package/dist/gpu-core/gpu-command-node.d.ts +23 -0
  324. package/dist/gpu-core/gpu-command-node.d.ts.map +1 -0
  325. package/dist/gpu-core/gpu-command-node.js +37 -0
  326. package/dist/gpu-core/gpu-command-node.js.map +1 -0
  327. package/dist/gpu-core/gpu-compaction.cjs +287 -0
  328. package/dist/gpu-core/gpu-compaction.d.ts +53 -0
  329. package/dist/gpu-core/gpu-compaction.d.ts.map +1 -0
  330. package/dist/gpu-core/gpu-compaction.js +295 -0
  331. package/dist/gpu-core/gpu-compaction.js.map +1 -0
  332. package/dist/gpu-core/gpu-conjugate-gradient-program.cjs +193 -0
  333. package/dist/gpu-core/gpu-conjugate-gradient-program.d.ts +23 -0
  334. package/dist/gpu-core/gpu-conjugate-gradient-program.d.ts.map +1 -0
  335. package/dist/gpu-core/gpu-conjugate-gradient-program.js +172 -0
  336. package/dist/gpu-core/gpu-conjugate-gradient-program.js.map +1 -0
  337. package/dist/gpu-core/gpu-control-flow-operation.cjs +65 -0
  338. package/dist/gpu-core/gpu-control-flow-operation.d.ts +40 -0
  339. package/dist/gpu-core/gpu-control-flow-operation.d.ts.map +1 -0
  340. package/dist/gpu-core/gpu-control-flow-operation.js +41 -0
  341. package/dist/gpu-core/gpu-control-flow-operation.js.map +1 -0
  342. package/dist/gpu-core/gpu-convolution-benchmark.cjs +278 -0
  343. package/dist/gpu-core/gpu-convolution-benchmark.d.ts +54 -0
  344. package/dist/gpu-core/gpu-convolution-benchmark.d.ts.map +1 -0
  345. package/dist/gpu-core/gpu-convolution-benchmark.js +275 -0
  346. package/dist/gpu-core/gpu-convolution-benchmark.js.map +1 -0
  347. package/dist/gpu-core/gpu-convolution.cjs +748 -0
  348. package/dist/gpu-core/gpu-convolution.d.ts +124 -0
  349. package/dist/gpu-core/gpu-convolution.d.ts.map +1 -0
  350. package/dist/gpu-core/gpu-convolution.js +756 -0
  351. package/dist/gpu-core/gpu-convolution.js.map +1 -0
  352. package/dist/gpu-core/gpu-coo-to-csr.cjs +114 -0
  353. package/dist/gpu-core/gpu-coo-to-csr.d.ts +20 -0
  354. package/dist/gpu-core/gpu-coo-to-csr.d.ts.map +1 -0
  355. package/dist/gpu-core/gpu-coo-to-csr.js +100 -0
  356. package/dist/gpu-core/gpu-coo-to-csr.js.map +1 -0
  357. package/dist/gpu-core/gpu-dense-utils.cjs +166 -0
  358. package/dist/gpu-core/gpu-dense-utils.d.ts +34 -0
  359. package/dist/gpu-core/gpu-dense-utils.d.ts.map +1 -0
  360. package/dist/gpu-core/gpu-dense-utils.js +144 -0
  361. package/dist/gpu-core/gpu-dense-utils.js.map +1 -0
  362. package/dist/gpu-core/gpu-dispatch-utils.cjs +60 -0
  363. package/dist/gpu-core/gpu-dispatch-utils.d.ts +11 -0
  364. package/dist/gpu-core/gpu-dispatch-utils.d.ts.map +1 -0
  365. package/dist/gpu-core/gpu-dispatch-utils.js +42 -0
  366. package/dist/gpu-core/gpu-dispatch-utils.js.map +1 -0
  367. package/dist/gpu-core/gpu-dot-product-scalar.cjs +82 -0
  368. package/dist/gpu-core/gpu-dot-product-scalar.d.ts +24 -0
  369. package/dist/gpu-core/gpu-dot-product-scalar.d.ts.map +1 -0
  370. package/dist/gpu-core/gpu-dot-product-scalar.js +67 -0
  371. package/dist/gpu-core/gpu-dot-product-scalar.js.map +1 -0
  372. package/dist/gpu-core/gpu-elementwise-scalar.cjs +163 -0
  373. package/dist/gpu-core/gpu-elementwise-scalar.d.ts +20 -0
  374. package/dist/gpu-core/gpu-elementwise-scalar.d.ts.map +1 -0
  375. package/dist/gpu-core/gpu-elementwise-scalar.js +150 -0
  376. package/dist/gpu-core/gpu-elementwise-scalar.js.map +1 -0
  377. package/dist/gpu-core/gpu-elementwise.cjs +225 -0
  378. package/dist/gpu-core/gpu-elementwise.d.ts +35 -0
  379. package/dist/gpu-core/gpu-elementwise.d.ts.map +1 -0
  380. package/dist/gpu-core/gpu-elementwise.js +220 -0
  381. package/dist/gpu-core/gpu-elementwise.js.map +1 -0
  382. package/dist/gpu-core/gpu-fft-utils.cjs +81 -0
  383. package/dist/gpu-core/gpu-fft-utils.d.ts +18 -0
  384. package/dist/gpu-core/gpu-fft-utils.d.ts.map +1 -0
  385. package/dist/gpu-core/gpu-fft-utils.js +53 -0
  386. package/dist/gpu-core/gpu-fft-utils.js.map +1 -0
  387. package/dist/gpu-core/gpu-fft1d-benchmark.cjs +175 -0
  388. package/dist/gpu-core/gpu-fft1d-benchmark.d.ts +40 -0
  389. package/dist/gpu-core/gpu-fft1d-benchmark.d.ts.map +1 -0
  390. package/dist/gpu-core/gpu-fft1d-benchmark.js +173 -0
  391. package/dist/gpu-core/gpu-fft1d-benchmark.js.map +1 -0
  392. package/dist/gpu-core/gpu-fft1d.cjs +465 -0
  393. package/dist/gpu-core/gpu-fft1d.d.ts +103 -0
  394. package/dist/gpu-core/gpu-fft1d.d.ts.map +1 -0
  395. package/dist/gpu-core/gpu-fft1d.js +473 -0
  396. package/dist/gpu-core/gpu-fft1d.js.map +1 -0
  397. package/dist/gpu-core/gpu-fft2d-shaders.cjs +109 -0
  398. package/dist/gpu-core/gpu-fft2d-shaders.d.ts +7 -0
  399. package/dist/gpu-core/gpu-fft2d-shaders.d.ts.map +1 -0
  400. package/dist/gpu-core/gpu-fft2d-shaders.js +84 -0
  401. package/dist/gpu-core/gpu-fft2d-shaders.js.map +1 -0
  402. package/dist/gpu-core/gpu-fft2d.cjs +332 -0
  403. package/dist/gpu-core/gpu-fft2d.d.ts +69 -0
  404. package/dist/gpu-core/gpu-fft2d.d.ts.map +1 -0
  405. package/dist/gpu-core/gpu-fft2d.js +330 -0
  406. package/dist/gpu-core/gpu-fft2d.js.map +1 -0
  407. package/dist/gpu-core/gpu-finite-difference-2d.cjs +203 -0
  408. package/dist/gpu-core/gpu-finite-difference-2d.d.ts +73 -0
  409. package/dist/gpu-core/gpu-finite-difference-2d.d.ts.map +1 -0
  410. package/dist/gpu-core/gpu-finite-difference-2d.js +197 -0
  411. package/dist/gpu-core/gpu-finite-difference-2d.js.map +1 -0
  412. package/dist/gpu-core/gpu-finite-difference-3d.cjs +224 -0
  413. package/dist/gpu-core/gpu-finite-difference-3d.d.ts +59 -0
  414. package/dist/gpu-core/gpu-finite-difference-3d.d.ts.map +1 -0
  415. package/dist/gpu-core/gpu-finite-difference-3d.js +206 -0
  416. package/dist/gpu-core/gpu-finite-difference-3d.js.map +1 -0
  417. package/dist/gpu-core/gpu-finite-difference-utils.cjs +225 -0
  418. package/dist/gpu-core/gpu-finite-difference-utils.d.ts +42 -0
  419. package/dist/gpu-core/gpu-finite-difference-utils.d.ts.map +1 -0
  420. package/dist/gpu-core/gpu-finite-difference-utils.js +219 -0
  421. package/dist/gpu-core/gpu-finite-difference-utils.js.map +1 -0
  422. package/dist/gpu-core/gpu-flag-offsets.cjs +163 -0
  423. package/dist/gpu-core/gpu-flag-offsets.d.ts +29 -0
  424. package/dist/gpu-core/gpu-flag-offsets.d.ts.map +1 -0
  425. package/dist/gpu-core/gpu-flag-offsets.js +152 -0
  426. package/dist/gpu-core/gpu-flag-offsets.js.map +1 -0
  427. package/dist/gpu-core/gpu-galloping-search-chunks.cjs +179 -0
  428. package/dist/gpu-core/gpu-galloping-search-chunks.d.ts +6 -0
  429. package/dist/gpu-core/gpu-galloping-search-chunks.d.ts.map +1 -0
  430. package/dist/gpu-core/gpu-galloping-search-chunks.js +162 -0
  431. package/dist/gpu-core/gpu-galloping-search-chunks.js.map +1 -0
  432. package/dist/gpu-core/gpu-galloping-search.cjs +374 -0
  433. package/dist/gpu-core/gpu-galloping-search.d.ts +73 -0
  434. package/dist/gpu-core/gpu-galloping-search.d.ts.map +1 -0
  435. package/dist/gpu-core/gpu-galloping-search.js +370 -0
  436. package/dist/gpu-core/gpu-galloping-search.js.map +1 -0
  437. package/dist/gpu-core/gpu-gather.cjs +222 -0
  438. package/dist/gpu-core/gpu-gather.d.ts +34 -0
  439. package/dist/gpu-core/gpu-gather.d.ts.map +1 -0
  440. package/dist/gpu-core/gpu-gather.js +225 -0
  441. package/dist/gpu-core/gpu-gather.js.map +1 -0
  442. package/dist/gpu-core/gpu-graph-compiler.cjs +426 -0
  443. package/dist/gpu-core/gpu-graph-compiler.d.ts +66 -0
  444. package/dist/gpu-core/gpu-graph-compiler.d.ts.map +1 -0
  445. package/dist/gpu-core/gpu-graph-compiler.js +422 -0
  446. package/dist/gpu-core/gpu-graph-compiler.js.map +1 -0
  447. package/dist/gpu-core/gpu-graph-inspector.cjs +44 -0
  448. package/dist/gpu-core/gpu-graph-inspector.d.ts +16 -0
  449. package/dist/gpu-core/gpu-graph-inspector.d.ts.map +1 -0
  450. package/dist/gpu-core/gpu-graph-inspector.js +23 -0
  451. package/dist/gpu-core/gpu-graph-inspector.js.map +1 -0
  452. package/dist/gpu-core/gpu-graph-lowering.cjs +40 -0
  453. package/dist/gpu-core/gpu-graph-lowering.d.ts +37 -0
  454. package/dist/gpu-core/gpu-graph-lowering.d.ts.map +1 -0
  455. package/dist/gpu-core/gpu-graph-lowering.js +18 -0
  456. package/dist/gpu-core/gpu-graph-lowering.js.map +1 -0
  457. package/dist/gpu-core/gpu-graph-traversal.cjs +602 -0
  458. package/dist/gpu-core/gpu-graph-traversal.d.ts +78 -0
  459. package/dist/gpu-core/gpu-graph-traversal.d.ts.map +1 -0
  460. package/dist/gpu-core/gpu-graph-traversal.js +597 -0
  461. package/dist/gpu-core/gpu-graph-traversal.js.map +1 -0
  462. package/dist/gpu-core/gpu-graph-validation.cjs +74 -0
  463. package/dist/gpu-core/gpu-graph-validation.d.ts +16 -0
  464. package/dist/gpu-core/gpu-graph-validation.d.ts.map +1 -0
  465. package/dist/gpu-core/gpu-graph-validation.js +52 -0
  466. package/dist/gpu-core/gpu-graph-validation.js.map +1 -0
  467. package/dist/gpu-core/gpu-graph-value.cjs +100 -0
  468. package/dist/gpu-core/gpu-graph-value.d.ts +61 -0
  469. package/dist/gpu-core/gpu-graph-value.d.ts.map +1 -0
  470. package/dist/gpu-core/gpu-graph-value.js +83 -0
  471. package/dist/gpu-core/gpu-graph-value.js.map +1 -0
  472. package/dist/gpu-core/gpu-graph.cjs +108 -0
  473. package/dist/gpu-core/gpu-graph.d.ts +35 -0
  474. package/dist/gpu-core/gpu-graph.d.ts.map +1 -0
  475. package/dist/gpu-core/gpu-graph.js +85 -0
  476. package/dist/gpu-core/gpu-graph.js.map +1 -0
  477. package/dist/gpu-core/gpu-grid-aggregation.cjs +396 -0
  478. package/dist/gpu-core/gpu-grid-aggregation.d.ts +66 -0
  479. package/dist/gpu-core/gpu-grid-aggregation.d.ts.map +1 -0
  480. package/dist/gpu-core/gpu-grid-aggregation.js +424 -0
  481. package/dist/gpu-core/gpu-grid-aggregation.js.map +1 -0
  482. package/dist/gpu-core/gpu-grid-binning.cjs +252 -0
  483. package/dist/gpu-core/gpu-grid-binning.d.ts +51 -0
  484. package/dist/gpu-core/gpu-grid-binning.d.ts.map +1 -0
  485. package/dist/gpu-core/gpu-grid-binning.js +257 -0
  486. package/dist/gpu-core/gpu-grid-binning.js.map +1 -0
  487. package/dist/gpu-core/gpu-grid-index-internals.cjs +249 -0
  488. package/dist/gpu-core/gpu-grid-index-internals.d.ts +11 -0
  489. package/dist/gpu-core/gpu-grid-index-internals.d.ts.map +1 -0
  490. package/dist/gpu-core/gpu-grid-index-internals.js +231 -0
  491. package/dist/gpu-core/gpu-grid-index-internals.js.map +1 -0
  492. package/dist/gpu-core/gpu-grid-index-query.cjs +381 -0
  493. package/dist/gpu-core/gpu-grid-index-query.d.ts +55 -0
  494. package/dist/gpu-core/gpu-grid-index-query.d.ts.map +1 -0
  495. package/dist/gpu-core/gpu-grid-index-query.js +399 -0
  496. package/dist/gpu-core/gpu-grid-index-query.js.map +1 -0
  497. package/dist/gpu-core/gpu-grid-index.cjs +135 -0
  498. package/dist/gpu-core/gpu-grid-index.d.ts +60 -0
  499. package/dist/gpu-core/gpu-grid-index.d.ts.map +1 -0
  500. package/dist/gpu-core/gpu-grid-index.js +123 -0
  501. package/dist/gpu-core/gpu-grid-index.js.map +1 -0
  502. package/dist/gpu-core/gpu-group-aggregation.cjs +540 -0
  503. package/dist/gpu-core/gpu-group-aggregation.d.ts +71 -0
  504. package/dist/gpu-core/gpu-group-aggregation.d.ts.map +1 -0
  505. package/dist/gpu-core/gpu-group-aggregation.js +578 -0
  506. package/dist/gpu-core/gpu-group-aggregation.js.map +1 -0
  507. package/dist/gpu-core/gpu-hash-index.cjs +634 -0
  508. package/dist/gpu-core/gpu-hash-index.d.ts +108 -0
  509. package/dist/gpu-core/gpu-hash-index.d.ts.map +1 -0
  510. package/dist/gpu-core/gpu-hash-index.js +618 -0
  511. package/dist/gpu-core/gpu-hash-index.js.map +1 -0
  512. package/dist/gpu-core/gpu-hash-join.cjs +439 -0
  513. package/dist/gpu-core/gpu-hash-join.d.ts +64 -0
  514. package/dist/gpu-core/gpu-hash-join.d.ts.map +1 -0
  515. package/dist/gpu-core/gpu-hash-join.js +429 -0
  516. package/dist/gpu-core/gpu-hash-join.js.map +1 -0
  517. package/dist/gpu-core/gpu-hierarchy-layout.cjs +257 -0
  518. package/dist/gpu-core/gpu-hierarchy-layout.d.ts +58 -0
  519. package/dist/gpu-core/gpu-hierarchy-layout.d.ts.map +1 -0
  520. package/dist/gpu-core/gpu-hierarchy-layout.js +246 -0
  521. package/dist/gpu-core/gpu-hierarchy-layout.js.map +1 -0
  522. package/dist/gpu-core/gpu-histogram.cjs +599 -0
  523. package/dist/gpu-core/gpu-histogram.d.ts +76 -0
  524. package/dist/gpu-core/gpu-histogram.d.ts.map +1 -0
  525. package/dist/gpu-core/gpu-histogram.js +655 -0
  526. package/dist/gpu-core/gpu-histogram.js.map +1 -0
  527. package/dist/gpu-core/gpu-incremental-execution.cjs +167 -0
  528. package/dist/gpu-core/gpu-incremental-execution.d.ts +67 -0
  529. package/dist/gpu-core/gpu-incremental-execution.d.ts.map +1 -0
  530. package/dist/gpu-core/gpu-incremental-execution.js +167 -0
  531. package/dist/gpu-core/gpu-incremental-execution.js.map +1 -0
  532. package/dist/gpu-core/gpu-index-picking-target.cjs +369 -0
  533. package/dist/gpu-core/gpu-index-picking-target.d.ts +113 -0
  534. package/dist/gpu-core/gpu-index-picking-target.d.ts.map +1 -0
  535. package/dist/gpu-core/gpu-index-picking-target.js +363 -0
  536. package/dist/gpu-core/gpu-index-picking-target.js.map +1 -0
  537. package/dist/gpu-core/gpu-indexed-range-compaction.cjs +868 -0
  538. package/dist/gpu-core/gpu-indexed-range-compaction.d.ts +136 -0
  539. package/dist/gpu-core/gpu-indexed-range-compaction.d.ts.map +1 -0
  540. package/dist/gpu-core/gpu-indexed-range-compaction.js +836 -0
  541. package/dist/gpu-core/gpu-indexed-range-compaction.js.map +1 -0
  542. package/dist/gpu-core/gpu-jacobi-preconditioner.cjs +108 -0
  543. package/dist/gpu-core/gpu-jacobi-preconditioner.d.ts +18 -0
  544. package/dist/gpu-core/gpu-jacobi-preconditioner.d.ts.map +1 -0
  545. package/dist/gpu-core/gpu-jacobi-preconditioner.js +92 -0
  546. package/dist/gpu-core/gpu-jacobi-preconditioner.js.map +1 -0
  547. package/dist/gpu-core/gpu-lz-byte-batch-decompressor.cjs +258 -0
  548. package/dist/gpu-core/gpu-lz-byte-batch-decompressor.d.ts +59 -0
  549. package/dist/gpu-core/gpu-lz-byte-batch-decompressor.d.ts.map +1 -0
  550. package/dist/gpu-core/gpu-lz-byte-batch-decompressor.js +250 -0
  551. package/dist/gpu-core/gpu-lz-byte-batch-decompressor.js.map +1 -0
  552. package/dist/gpu-core/gpu-lz-byte-decompressor.cjs +310 -0
  553. package/dist/gpu-core/gpu-lz-byte-decompressor.d.ts +55 -0
  554. package/dist/gpu-core/gpu-lz-byte-decompressor.d.ts.map +1 -0
  555. package/dist/gpu-core/gpu-lz-byte-decompressor.js +308 -0
  556. package/dist/gpu-core/gpu-lz-byte-decompressor.js.map +1 -0
  557. package/dist/gpu-core/gpu-mask.cjs +198 -0
  558. package/dist/gpu-core/gpu-mask.d.ts +43 -0
  559. package/dist/gpu-core/gpu-mask.d.ts.map +1 -0
  560. package/dist/gpu-core/gpu-mask.js +183 -0
  561. package/dist/gpu-core/gpu-mask.js.map +1 -0
  562. package/dist/gpu-core/gpu-matmul.cjs +137 -0
  563. package/dist/gpu-core/gpu-matmul.d.ts +28 -0
  564. package/dist/gpu-core/gpu-matmul.d.ts.map +1 -0
  565. package/dist/gpu-core/gpu-matmul.js +116 -0
  566. package/dist/gpu-core/gpu-matmul.js.map +1 -0
  567. package/dist/gpu-core/gpu-matvec.cjs +112 -0
  568. package/dist/gpu-core/gpu-matvec.d.ts +26 -0
  569. package/dist/gpu-core/gpu-matvec.d.ts.map +1 -0
  570. package/dist/gpu-core/gpu-matvec.js +91 -0
  571. package/dist/gpu-core/gpu-matvec.js.map +1 -0
  572. package/dist/gpu-core/gpu-operation.cjs +73 -0
  573. package/dist/gpu-core/gpu-operation.d.ts +58 -0
  574. package/dist/gpu-core/gpu-operation.d.ts.map +1 -0
  575. package/dist/gpu-core/gpu-operation.js +48 -0
  576. package/dist/gpu-core/gpu-operation.js.map +1 -0
  577. package/dist/gpu-core/gpu-pcg.cjs +256 -0
  578. package/dist/gpu-core/gpu-pcg.d.ts +37 -0
  579. package/dist/gpu-core/gpu-pcg.d.ts.map +1 -0
  580. package/dist/gpu-core/gpu-pcg.js +238 -0
  581. package/dist/gpu-core/gpu-pcg.js.map +1 -0
  582. package/dist/gpu-core/gpu-planning-heap.cjs +66 -0
  583. package/dist/gpu-core/gpu-planning-heap.d.ts +10 -0
  584. package/dist/gpu-core/gpu-planning-heap.d.ts.map +1 -0
  585. package/dist/gpu-core/gpu-planning-heap.js +46 -0
  586. package/dist/gpu-core/gpu-planning-heap.js.map +1 -0
  587. package/dist/gpu-core/gpu-point-spatial-filter.cjs +303 -0
  588. package/dist/gpu-core/gpu-point-spatial-filter.d.ts +52 -0
  589. package/dist/gpu-core/gpu-point-spatial-filter.d.ts.map +1 -0
  590. package/dist/gpu-core/gpu-point-spatial-filter.js +311 -0
  591. package/dist/gpu-core/gpu-point-spatial-filter.js.map +1 -0
  592. package/dist/gpu-core/gpu-predicate-conjunction.cjs +79 -0
  593. package/dist/gpu-core/gpu-predicate-conjunction.d.ts +19 -0
  594. package/dist/gpu-core/gpu-predicate-conjunction.d.ts.map +1 -0
  595. package/dist/gpu-core/gpu-predicate-conjunction.js +57 -0
  596. package/dist/gpu-core/gpu-predicate-conjunction.js.map +1 -0
  597. package/dist/gpu-core/gpu-readback-ring.cjs +213 -0
  598. package/dist/gpu-core/gpu-readback-ring.d.ts +84 -0
  599. package/dist/gpu-core/gpu-readback-ring.d.ts.map +1 -0
  600. package/dist/gpu-core/gpu-readback-ring.js +210 -0
  601. package/dist/gpu-core/gpu-readback-ring.js.map +1 -0
  602. package/dist/gpu-core/gpu-reduction-strategy.cjs +88 -0
  603. package/dist/gpu-core/gpu-reduction-strategy.d.ts +12 -0
  604. package/dist/gpu-core/gpu-reduction-strategy.d.ts.map +1 -0
  605. package/dist/gpu-core/gpu-reduction-strategy.js +65 -0
  606. package/dist/gpu-core/gpu-reduction-strategy.js.map +1 -0
  607. package/dist/gpu-core/gpu-reduction-substrate.cjs +189 -0
  608. package/dist/gpu-core/gpu-reduction-substrate.d.ts +15 -0
  609. package/dist/gpu-core/gpu-reduction-substrate.d.ts.map +1 -0
  610. package/dist/gpu-core/gpu-reduction-substrate.js +175 -0
  611. package/dist/gpu-core/gpu-reduction-substrate.js.map +1 -0
  612. package/dist/gpu-core/gpu-reduction.cjs +486 -0
  613. package/dist/gpu-core/gpu-reduction.d.ts +77 -0
  614. package/dist/gpu-core/gpu-reduction.d.ts.map +1 -0
  615. package/dist/gpu-core/gpu-reduction.js +526 -0
  616. package/dist/gpu-core/gpu-reduction.js.map +1 -0
  617. package/dist/gpu-core/gpu-resource-preview.cjs +83 -0
  618. package/dist/gpu-core/gpu-resource-preview.d.ts +12 -0
  619. package/dist/gpu-core/gpu-resource-preview.d.ts.map +1 -0
  620. package/dist/gpu-core/gpu-resource-preview.js +67 -0
  621. package/dist/gpu-core/gpu-resource-preview.js.map +1 -0
  622. package/dist/gpu-core/gpu-run-length-encode.cjs +187 -0
  623. package/dist/gpu-core/gpu-run-length-encode.d.ts +27 -0
  624. package/dist/gpu-core/gpu-run-length-encode.d.ts.map +1 -0
  625. package/dist/gpu-core/gpu-run-length-encode.js +171 -0
  626. package/dist/gpu-core/gpu-run-length-encode.js.map +1 -0
  627. package/dist/gpu-core/gpu-scalar-dispatch-gate.cjs +126 -0
  628. package/dist/gpu-core/gpu-scalar-dispatch-gate.d.ts +25 -0
  629. package/dist/gpu-core/gpu-scalar-dispatch-gate.d.ts.map +1 -0
  630. package/dist/gpu-core/gpu-scalar-dispatch-gate.js +106 -0
  631. package/dist/gpu-core/gpu-scalar-dispatch-gate.js.map +1 -0
  632. package/dist/gpu-core/gpu-scalar-literal.cjs +84 -0
  633. package/dist/gpu-core/gpu-scalar-literal.d.ts +20 -0
  634. package/dist/gpu-core/gpu-scalar-literal.d.ts.map +1 -0
  635. package/dist/gpu-core/gpu-scalar-literal.js +67 -0
  636. package/dist/gpu-core/gpu-scalar-literal.js.map +1 -0
  637. package/dist/gpu-core/gpu-scalar-operation.cjs +152 -0
  638. package/dist/gpu-core/gpu-scalar-operation.d.ts +24 -0
  639. package/dist/gpu-core/gpu-scalar-operation.d.ts.map +1 -0
  640. package/dist/gpu-core/gpu-scalar-operation.js +131 -0
  641. package/dist/gpu-core/gpu-scalar-operation.js.map +1 -0
  642. package/dist/gpu-core/gpu-scalar.cjs +102 -0
  643. package/dist/gpu-core/gpu-scalar.d.ts +33 -0
  644. package/dist/gpu-core/gpu-scalar.d.ts.map +1 -0
  645. package/dist/gpu-core/gpu-scalar.js +79 -0
  646. package/dist/gpu-core/gpu-scalar.js.map +1 -0
  647. package/dist/gpu-core/gpu-scan.cjs +630 -0
  648. package/dist/gpu-core/gpu-scan.d.ts +65 -0
  649. package/dist/gpu-core/gpu-scan.d.ts.map +1 -0
  650. package/dist/gpu-core/gpu-scan.js +692 -0
  651. package/dist/gpu-core/gpu-scan.js.map +1 -0
  652. package/dist/gpu-core/gpu-scatter.cjs +132 -0
  653. package/dist/gpu-core/gpu-scatter.d.ts +39 -0
  654. package/dist/gpu-core/gpu-scatter.d.ts.map +1 -0
  655. package/dist/gpu-core/gpu-scatter.js +125 -0
  656. package/dist/gpu-core/gpu-scatter.js.map +1 -0
  657. package/dist/gpu-core/gpu-scene-draw-generation.cjs +484 -0
  658. package/dist/gpu-core/gpu-scene-draw-generation.d.ts +52 -0
  659. package/dist/gpu-core/gpu-scene-draw-generation.d.ts.map +1 -0
  660. package/dist/gpu-core/gpu-scene-draw-generation.js +494 -0
  661. package/dist/gpu-core/gpu-scene-draw-generation.js.map +1 -0
  662. package/dist/gpu-core/gpu-scene-resource-groups.cjs +322 -0
  663. package/dist/gpu-core/gpu-scene-resource-groups.d.ts +66 -0
  664. package/dist/gpu-core/gpu-scene-resource-groups.d.ts.map +1 -0
  665. package/dist/gpu-core/gpu-scene-resource-groups.js +330 -0
  666. package/dist/gpu-core/gpu-scene-resource-groups.js.map +1 -0
  667. package/dist/gpu-core/gpu-scene.cjs +499 -0
  668. package/dist/gpu-core/gpu-scene.d.ts +172 -0
  669. package/dist/gpu-core/gpu-scene.d.ts.map +1 -0
  670. package/dist/gpu-core/gpu-scene.js +494 -0
  671. package/dist/gpu-core/gpu-scene.js.map +1 -0
  672. package/dist/gpu-core/gpu-segment-offsets.cjs +269 -0
  673. package/dist/gpu-core/gpu-segment-offsets.d.ts +34 -0
  674. package/dist/gpu-core/gpu-segment-offsets.d.ts.map +1 -0
  675. package/dist/gpu-core/gpu-segment-offsets.js +254 -0
  676. package/dist/gpu-core/gpu-segment-offsets.js.map +1 -0
  677. package/dist/gpu-core/gpu-segmented-bvh.cjs +391 -0
  678. package/dist/gpu-core/gpu-segmented-bvh.d.ts +84 -0
  679. package/dist/gpu-core/gpu-segmented-bvh.d.ts.map +1 -0
  680. package/dist/gpu-core/gpu-segmented-bvh.js +392 -0
  681. package/dist/gpu-core/gpu-segmented-bvh.js.map +1 -0
  682. package/dist/gpu-core/gpu-segmented-layout.cjs +322 -0
  683. package/dist/gpu-core/gpu-segmented-layout.d.ts +53 -0
  684. package/dist/gpu-core/gpu-segmented-layout.d.ts.map +1 -0
  685. package/dist/gpu-core/gpu-segmented-layout.js +321 -0
  686. package/dist/gpu-core/gpu-segmented-layout.js.map +1 -0
  687. package/dist/gpu-core/gpu-segmented-reduction.cjs +149 -0
  688. package/dist/gpu-core/gpu-segmented-reduction.d.ts +23 -0
  689. package/dist/gpu-core/gpu-segmented-reduction.d.ts.map +1 -0
  690. package/dist/gpu-core/gpu-segmented-reduction.js +151 -0
  691. package/dist/gpu-core/gpu-segmented-reduction.js.map +1 -0
  692. package/dist/gpu-core/gpu-segmented-scan.cjs +112 -0
  693. package/dist/gpu-core/gpu-segmented-scan.d.ts +24 -0
  694. package/dist/gpu-core/gpu-segmented-scan.d.ts.map +1 -0
  695. package/dist/gpu-core/gpu-segmented-scan.js +92 -0
  696. package/dist/gpu-core/gpu-segmented-scan.js.map +1 -0
  697. package/dist/gpu-core/gpu-segmented-sort.cjs +381 -0
  698. package/dist/gpu-core/gpu-segmented-sort.d.ts +70 -0
  699. package/dist/gpu-core/gpu-segmented-sort.d.ts.map +1 -0
  700. package/dist/gpu-core/gpu-segmented-sort.js +375 -0
  701. package/dist/gpu-core/gpu-segmented-sort.js.map +1 -0
  702. package/dist/gpu-core/gpu-semantic-scalar-operation.cjs +94 -0
  703. package/dist/gpu-core/gpu-semantic-scalar-operation.d.ts +35 -0
  704. package/dist/gpu-core/gpu-semantic-scalar-operation.d.ts.map +1 -0
  705. package/dist/gpu-core/gpu-semantic-scalar-operation.js +70 -0
  706. package/dist/gpu-core/gpu-semantic-scalar-operation.js.map +1 -0
  707. package/dist/gpu-core/gpu-semantic-spmv.cjs +71 -0
  708. package/dist/gpu-core/gpu-semantic-spmv.d.ts +45 -0
  709. package/dist/gpu-core/gpu-semantic-spmv.d.ts.map +1 -0
  710. package/dist/gpu-core/gpu-semantic-spmv.js +49 -0
  711. package/dist/gpu-core/gpu-semantic-spmv.js.map +1 -0
  712. package/dist/gpu-core/gpu-semantic-state-operation.cjs +39 -0
  713. package/dist/gpu-core/gpu-semantic-state-operation.d.ts +18 -0
  714. package/dist/gpu-core/gpu-semantic-state-operation.d.ts.map +1 -0
  715. package/dist/gpu-core/gpu-semantic-state-operation.js +18 -0
  716. package/dist/gpu-core/gpu-semantic-state-operation.js.map +1 -0
  717. package/dist/gpu-core/gpu-semantic-vector-operation.cjs +55 -0
  718. package/dist/gpu-core/gpu-semantic-vector-operation.d.ts +41 -0
  719. package/dist/gpu-core/gpu-semantic-vector-operation.d.ts.map +1 -0
  720. package/dist/gpu-core/gpu-semantic-vector-operation.js +33 -0
  721. package/dist/gpu-core/gpu-semantic-vector-operation.js.map +1 -0
  722. package/dist/gpu-core/gpu-sort-chunks.cjs +135 -0
  723. package/dist/gpu-core/gpu-sort-chunks.d.ts +6 -0
  724. package/dist/gpu-core/gpu-sort-chunks.d.ts.map +1 -0
  725. package/dist/gpu-core/gpu-sort-chunks.js +105 -0
  726. package/dist/gpu-core/gpu-sort-chunks.js.map +1 -0
  727. package/dist/gpu-core/gpu-sort.cjs +741 -0
  728. package/dist/gpu-core/gpu-sort.d.ts +70 -0
  729. package/dist/gpu-core/gpu-sort.d.ts.map +1 -0
  730. package/dist/gpu-core/gpu-sort.js +727 -0
  731. package/dist/gpu-core/gpu-sort.js.map +1 -0
  732. package/dist/gpu-core/gpu-spatial-query-benchmark.cjs +183 -0
  733. package/dist/gpu-core/gpu-spatial-query-benchmark.d.ts +82 -0
  734. package/dist/gpu-core/gpu-spatial-query-benchmark.d.ts.map +1 -0
  735. package/dist/gpu-core/gpu-spatial-query-benchmark.js +178 -0
  736. package/dist/gpu-core/gpu-spatial-query-benchmark.js.map +1 -0
  737. package/dist/gpu-core/gpu-spatial-utils.cjs +79 -0
  738. package/dist/gpu-core/gpu-spatial-utils.d.ts +14 -0
  739. package/dist/gpu-core/gpu-spatial-utils.d.ts.map +1 -0
  740. package/dist/gpu-core/gpu-spatial-utils.js +58 -0
  741. package/dist/gpu-core/gpu-spatial-utils.js.map +1 -0
  742. package/dist/gpu-core/gpu-spmv-strategy.cjs +87 -0
  743. package/dist/gpu-core/gpu-spmv-strategy.d.ts +22 -0
  744. package/dist/gpu-core/gpu-spmv-strategy.d.ts.map +1 -0
  745. package/dist/gpu-core/gpu-spmv-strategy.js +65 -0
  746. package/dist/gpu-core/gpu-spmv-strategy.js.map +1 -0
  747. package/dist/gpu-core/gpu-strategy.cjs +62 -0
  748. package/dist/gpu-core/gpu-strategy.d.ts +43 -0
  749. package/dist/gpu-core/gpu-strategy.d.ts.map +1 -0
  750. package/dist/gpu-core/gpu-strategy.js +43 -0
  751. package/dist/gpu-core/gpu-strategy.js.map +1 -0
  752. package/dist/gpu-core/gpu-subgroup-utils.cjs +84 -0
  753. package/dist/gpu-core/gpu-subgroup-utils.d.ts +24 -0
  754. package/dist/gpu-core/gpu-subgroup-utils.d.ts.map +1 -0
  755. package/dist/gpu-core/gpu-subgroup-utils.js +66 -0
  756. package/dist/gpu-core/gpu-subgroup-utils.js.map +1 -0
  757. package/dist/gpu-core/gpu-text-selection.cjs +282 -0
  758. package/dist/gpu-core/gpu-text-selection.d.ts +40 -0
  759. package/dist/gpu-core/gpu-text-selection.d.ts.map +1 -0
  760. package/dist/gpu-core/gpu-text-selection.js +264 -0
  761. package/dist/gpu-core/gpu-text-selection.js.map +1 -0
  762. package/dist/gpu-core/gpu-texture-history.cjs +92 -0
  763. package/dist/gpu-core/gpu-texture-history.d.ts +39 -0
  764. package/dist/gpu-core/gpu-texture-history.d.ts.map +1 -0
  765. package/dist/gpu-core/gpu-texture-history.js +79 -0
  766. package/dist/gpu-core/gpu-texture-history.js.map +1 -0
  767. package/dist/gpu-core/gpu-transient-lifetime-planner.cjs +83 -0
  768. package/dist/gpu-core/gpu-transient-lifetime-planner.d.ts +32 -0
  769. package/dist/gpu-core/gpu-transient-lifetime-planner.d.ts.map +1 -0
  770. package/dist/gpu-core/gpu-transient-lifetime-planner.js +72 -0
  771. package/dist/gpu-core/gpu-transient-lifetime-planner.js.map +1 -0
  772. package/dist/gpu-core/gpu-transpose-benchmark.cjs +229 -0
  773. package/dist/gpu-core/gpu-transpose-benchmark.d.ts +37 -0
  774. package/dist/gpu-core/gpu-transpose-benchmark.d.ts.map +1 -0
  775. package/dist/gpu-core/gpu-transpose-benchmark.js +226 -0
  776. package/dist/gpu-core/gpu-transpose-benchmark.js.map +1 -0
  777. package/dist/gpu-core/gpu-transpose.cjs +313 -0
  778. package/dist/gpu-core/gpu-transpose.d.ts +67 -0
  779. package/dist/gpu-core/gpu-transpose.d.ts.map +1 -0
  780. package/dist/gpu-core/gpu-transpose.js +302 -0
  781. package/dist/gpu-core/gpu-transpose.js.map +1 -0
  782. package/dist/gpu-core/gpu-uint32-gather.cjs +42 -0
  783. package/dist/gpu-core/gpu-uint32-gather.d.ts +13 -0
  784. package/dist/gpu-core/gpu-uint32-gather.d.ts.map +1 -0
  785. package/dist/gpu-core/gpu-uint32-gather.js +23 -0
  786. package/dist/gpu-core/gpu-uint32-gather.js.map +1 -0
  787. package/dist/gpu-core/gpu-uint64-scan.cjs +190 -0
  788. package/dist/gpu-core/gpu-uint64-scan.d.ts +19 -0
  789. package/dist/gpu-core/gpu-uint64-scan.d.ts.map +1 -0
  790. package/dist/gpu-core/gpu-uint64-scan.js +177 -0
  791. package/dist/gpu-core/gpu-uint64-scan.js.map +1 -0
  792. package/dist/gpu-core/gpu-value-arena-inspector.cjs +53 -0
  793. package/dist/gpu-core/gpu-value-arena-inspector.d.ts +22 -0
  794. package/dist/gpu-core/gpu-value-arena-inspector.d.ts.map +1 -0
  795. package/dist/gpu-core/gpu-value-arena-inspector.js +31 -0
  796. package/dist/gpu-core/gpu-value-arena-inspector.js.map +1 -0
  797. package/dist/gpu-core/gpu-value-arena.cjs +113 -0
  798. package/dist/gpu-core/gpu-value-arena.d.ts +30 -0
  799. package/dist/gpu-core/gpu-value-arena.d.ts.map +1 -0
  800. package/dist/gpu-core/gpu-value-arena.js +90 -0
  801. package/dist/gpu-core/gpu-value-arena.js.map +1 -0
  802. package/dist/gpu-core/gpu-virtual-geometry-selection.cjs +498 -0
  803. package/dist/gpu-core/gpu-virtual-geometry-selection.d.ts +96 -0
  804. package/dist/gpu-core/gpu-virtual-geometry-selection.d.ts.map +1 -0
  805. package/dist/gpu-core/gpu-virtual-geometry-selection.js +496 -0
  806. package/dist/gpu-core/gpu-virtual-geometry-selection.js.map +1 -0
  807. package/dist/gpu-core/gpu-visibility-workflow.cjs +227 -0
  808. package/dist/gpu-core/gpu-visibility-workflow.d.ts +62 -0
  809. package/dist/gpu-core/gpu-visibility-workflow.d.ts.map +1 -0
  810. package/dist/gpu-core/gpu-visibility-workflow.js +220 -0
  811. package/dist/gpu-core/gpu-visibility-workflow.js.map +1 -0
  812. package/dist/gpu-core/gpu-workgroup-reduction-benchmark.cjs +279 -0
  813. package/dist/gpu-core/gpu-workgroup-reduction-benchmark.d.ts +39 -0
  814. package/dist/gpu-core/gpu-workgroup-reduction-benchmark.d.ts.map +1 -0
  815. package/dist/gpu-core/gpu-workgroup-reduction-benchmark.js +264 -0
  816. package/dist/gpu-core/gpu-workgroup-reduction-benchmark.js.map +1 -0
  817. package/dist/gpu-core/gpu-workgroup-scan-benchmark.cjs +304 -0
  818. package/dist/gpu-core/gpu-workgroup-scan-benchmark.d.ts +54 -0
  819. package/dist/gpu-core/gpu-workgroup-scan-benchmark.d.ts.map +1 -0
  820. package/dist/gpu-core/gpu-workgroup-scan-benchmark.js +293 -0
  821. package/dist/gpu-core/gpu-workgroup-scan-benchmark.js.map +1 -0
  822. package/dist/gpu-core/graph-data-view-utils.cjs +165 -0
  823. package/dist/gpu-core/graph-data-view-utils.d.ts +49 -0
  824. package/dist/gpu-core/graph-data-view-utils.d.ts.map +1 -0
  825. package/dist/gpu-core/graph-data-view-utils.js +158 -0
  826. package/dist/gpu-core/graph-data-view-utils.js.map +1 -0
  827. package/dist/gpu-core/graph-vector-view-utils.cjs +71 -0
  828. package/dist/gpu-core/graph-vector-view-utils.d.ts +10 -0
  829. package/dist/gpu-core/graph-vector-view-utils.d.ts.map +1 -0
  830. package/dist/gpu-core/graph-vector-view-utils.js +53 -0
  831. package/dist/gpu-core/graph-vector-view-utils.js.map +1 -0
  832. package/dist/gpu-core/index.cjs +455 -0
  833. package/dist/gpu-core/index.cjs.map +6 -0
  834. package/dist/gpu-core/index.d.ts +165 -0
  835. package/dist/gpu-core/index.d.ts.map +1 -0
  836. package/dist/gpu-core/index.js +89 -0
  837. package/dist/gpu-core/index.js.map +1 -0
  838. package/dist/gpu-core/utils/bound-kernel.cjs +37 -0
  839. package/dist/gpu-core/utils/bound-kernel.d.ts +13 -0
  840. package/dist/gpu-core/utils/bound-kernel.d.ts.map +1 -0
  841. package/dist/gpu-core/utils/bound-kernel.js +13 -0
  842. package/dist/gpu-core/utils/bound-kernel.js.map +1 -0
  843. package/dist/gpu-crossfilter/gpu-crossfilter.cjs +372 -0
  844. package/dist/gpu-crossfilter/gpu-crossfilter.d.ts +152 -0
  845. package/dist/gpu-crossfilter/gpu-crossfilter.d.ts.map +1 -0
  846. package/dist/gpu-crossfilter/gpu-crossfilter.js +370 -0
  847. package/dist/gpu-crossfilter/gpu-crossfilter.js.map +1 -0
  848. package/dist/gpu-crossfilter/gpu-selection.cjs +342 -0
  849. package/dist/gpu-crossfilter/gpu-selection.d.ts +69 -0
  850. package/dist/gpu-crossfilter/gpu-selection.d.ts.map +1 -0
  851. package/dist/gpu-crossfilter/gpu-selection.js +352 -0
  852. package/dist/gpu-crossfilter/gpu-selection.js.map +1 -0
  853. package/dist/gpu-crossfilter/index.cjs +30 -0
  854. package/dist/gpu-crossfilter/index.cjs.map +6 -0
  855. package/dist/gpu-crossfilter/index.d.ts +5 -0
  856. package/dist/gpu-crossfilter/index.d.ts.map +1 -0
  857. package/dist/gpu-crossfilter/index.js +7 -0
  858. package/dist/gpu-crossfilter/index.js.map +1 -0
  859. package/dist/gpu-dataframe/gpu-analytics-compiler-utils.cjs +242 -0
  860. package/dist/gpu-dataframe/gpu-analytics-compiler-utils.d.ts +37 -0
  861. package/dist/gpu-dataframe/gpu-analytics-compiler-utils.d.ts.map +1 -0
  862. package/dist/gpu-dataframe/gpu-analytics-compiler-utils.js +225 -0
  863. package/dist/gpu-dataframe/gpu-analytics-compiler-utils.js.map +1 -0
  864. package/dist/gpu-dataframe/gpu-data-frame-query.cjs +238 -0
  865. package/dist/gpu-dataframe/gpu-data-frame-query.d.ts +83 -0
  866. package/dist/gpu-dataframe/gpu-data-frame-query.d.ts.map +1 -0
  867. package/dist/gpu-dataframe/gpu-data-frame-query.js +236 -0
  868. package/dist/gpu-dataframe/gpu-data-frame-query.js.map +1 -0
  869. package/dist/gpu-dataframe/gpu-data-frame.cjs +372 -0
  870. package/dist/gpu-dataframe/gpu-data-frame.d.ts +122 -0
  871. package/dist/gpu-dataframe/gpu-data-frame.d.ts.map +1 -0
  872. package/dist/gpu-dataframe/gpu-data-frame.js +373 -0
  873. package/dist/gpu-dataframe/gpu-data-frame.js.map +1 -0
  874. package/dist/gpu-dataframe/gpu-expression-shader.cjs +394 -0
  875. package/dist/gpu-dataframe/gpu-expression-shader.d.ts +46 -0
  876. package/dist/gpu-dataframe/gpu-expression-shader.d.ts.map +1 -0
  877. package/dist/gpu-dataframe/gpu-expression-shader.js +399 -0
  878. package/dist/gpu-dataframe/gpu-expression-shader.js.map +1 -0
  879. package/dist/gpu-dataframe/gpu-expression.cjs +198 -0
  880. package/dist/gpu-dataframe/gpu-expression.d.ts +88 -0
  881. package/dist/gpu-dataframe/gpu-expression.d.ts.map +1 -0
  882. package/dist/gpu-dataframe/gpu-expression.js +179 -0
  883. package/dist/gpu-dataframe/gpu-expression.js.map +1 -0
  884. package/dist/gpu-dataframe/gpu-global-aggregation-compiler.cjs +311 -0
  885. package/dist/gpu-dataframe/gpu-global-aggregation-compiler.d.ts +13 -0
  886. package/dist/gpu-dataframe/gpu-global-aggregation-compiler.d.ts.map +1 -0
  887. package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js +290 -0
  888. package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js.map +1 -0
  889. package/dist/gpu-dataframe/gpu-global-aggregation-query.cjs +93 -0
  890. package/dist/gpu-dataframe/gpu-global-aggregation-query.d.ts +58 -0
  891. package/dist/gpu-dataframe/gpu-global-aggregation-query.d.ts.map +1 -0
  892. package/dist/gpu-dataframe/gpu-global-aggregation-query.js +75 -0
  893. package/dist/gpu-dataframe/gpu-global-aggregation-query.js.map +1 -0
  894. package/dist/gpu-dataframe/gpu-global-sort-compiler.cjs +415 -0
  895. package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts +21 -0
  896. package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts.map +1 -0
  897. package/dist/gpu-dataframe/gpu-global-sort-compiler.js +409 -0
  898. package/dist/gpu-dataframe/gpu-global-sort-compiler.js.map +1 -0
  899. package/dist/gpu-dataframe/gpu-group-aggregation-compiler.cjs +374 -0
  900. package/dist/gpu-dataframe/gpu-group-aggregation-compiler.d.ts +17 -0
  901. package/dist/gpu-dataframe/gpu-group-aggregation-compiler.d.ts.map +1 -0
  902. package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js +365 -0
  903. package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js.map +1 -0
  904. package/dist/gpu-dataframe/gpu-group-by-query.cjs +141 -0
  905. package/dist/gpu-dataframe/gpu-group-by-query.d.ts +74 -0
  906. package/dist/gpu-dataframe/gpu-group-by-query.d.ts.map +1 -0
  907. package/dist/gpu-dataframe/gpu-group-by-query.js +130 -0
  908. package/dist/gpu-dataframe/gpu-group-by-query.js.map +1 -0
  909. package/dist/gpu-dataframe/gpu-histogram-compiler.cjs +132 -0
  910. package/dist/gpu-dataframe/gpu-histogram-compiler.d.ts +26 -0
  911. package/dist/gpu-dataframe/gpu-histogram-compiler.d.ts.map +1 -0
  912. package/dist/gpu-dataframe/gpu-histogram-compiler.js +113 -0
  913. package/dist/gpu-dataframe/gpu-histogram-compiler.js.map +1 -0
  914. package/dist/gpu-dataframe/gpu-histogram-query.cjs +114 -0
  915. package/dist/gpu-dataframe/gpu-histogram-query.d.ts +34 -0
  916. package/dist/gpu-dataframe/gpu-histogram-query.d.ts.map +1 -0
  917. package/dist/gpu-dataframe/gpu-histogram-query.js +103 -0
  918. package/dist/gpu-dataframe/gpu-histogram-query.js.map +1 -0
  919. package/dist/gpu-dataframe/gpu-join-compiler.cjs +682 -0
  920. package/dist/gpu-dataframe/gpu-join-compiler.d.ts +71 -0
  921. package/dist/gpu-dataframe/gpu-join-compiler.d.ts.map +1 -0
  922. package/dist/gpu-dataframe/gpu-join-compiler.js +678 -0
  923. package/dist/gpu-dataframe/gpu-join-compiler.js.map +1 -0
  924. package/dist/gpu-dataframe/gpu-join-query.cjs +161 -0
  925. package/dist/gpu-dataframe/gpu-join-query.d.ts +70 -0
  926. package/dist/gpu-dataframe/gpu-join-query.d.ts.map +1 -0
  927. package/dist/gpu-dataframe/gpu-join-query.js +153 -0
  928. package/dist/gpu-dataframe/gpu-join-query.js.map +1 -0
  929. package/dist/gpu-dataframe/gpu-query-compiler.cjs +530 -0
  930. package/dist/gpu-dataframe/gpu-query-compiler.d.ts +81 -0
  931. package/dist/gpu-dataframe/gpu-query-compiler.d.ts.map +1 -0
  932. package/dist/gpu-dataframe/gpu-query-compiler.js +541 -0
  933. package/dist/gpu-dataframe/gpu-query-compiler.js.map +1 -0
  934. package/dist/gpu-dataframe/gpu-sort-compiler.cjs +348 -0
  935. package/dist/gpu-dataframe/gpu-sort-compiler.d.ts +27 -0
  936. package/dist/gpu-dataframe/gpu-sort-compiler.d.ts.map +1 -0
  937. package/dist/gpu-dataframe/gpu-sort-compiler.js +347 -0
  938. package/dist/gpu-dataframe/gpu-sort-compiler.js.map +1 -0
  939. package/dist/gpu-dataframe/gpu-sort-query.cjs +105 -0
  940. package/dist/gpu-dataframe/gpu-sort-query.d.ts +60 -0
  941. package/dist/gpu-dataframe/gpu-sort-query.d.ts.map +1 -0
  942. package/dist/gpu-dataframe/gpu-sort-query.js +97 -0
  943. package/dist/gpu-dataframe/gpu-sort-query.js.map +1 -0
  944. package/dist/gpu-dataframe/index.cjs +89 -0
  945. package/dist/gpu-dataframe/index.cjs.map +6 -0
  946. package/dist/gpu-dataframe/index.d.ts +25 -0
  947. package/dist/gpu-dataframe/index.d.ts.map +1 -0
  948. package/dist/gpu-dataframe/index.js +20 -0
  949. package/dist/gpu-dataframe/index.js.map +1 -0
  950. package/dist/gpu-dggs/benchmarks.cjs +27 -0
  951. package/dist/gpu-dggs/benchmarks.cjs.map +6 -0
  952. package/dist/gpu-dggs/benchmarks.d.ts +3 -0
  953. package/dist/gpu-dggs/benchmarks.d.ts.map +1 -0
  954. package/dist/gpu-dggs/benchmarks.js +5 -0
  955. package/dist/gpu-dggs/benchmarks.js.map +1 -0
  956. package/dist/gpu-dggs/gpu-dggs-cell-projection-benchmark.cjs +229 -0
  957. package/dist/gpu-dggs/gpu-dggs-cell-projection-benchmark.d.ts +47 -0
  958. package/dist/gpu-dggs/gpu-dggs-cell-projection-benchmark.d.ts.map +1 -0
  959. package/dist/gpu-dggs/gpu-dggs-cell-projection-benchmark.js +229 -0
  960. package/dist/gpu-dggs/gpu-dggs-cell-projection-benchmark.js.map +1 -0
  961. package/dist/gpu-dggs/gpu-dggs-cell-projection.cjs +174 -0
  962. package/dist/gpu-dggs/gpu-dggs-cell-projection.d.ts +35 -0
  963. package/dist/gpu-dggs/gpu-dggs-cell-projection.d.ts.map +1 -0
  964. package/dist/gpu-dggs/gpu-dggs-cell-projection.js +166 -0
  965. package/dist/gpu-dggs/gpu-dggs-cell-projection.js.map +1 -0
  966. package/dist/gpu-dggs/index.cjs +27 -0
  967. package/dist/gpu-dggs/index.cjs.map +6 -0
  968. package/dist/gpu-dggs/index.d.ts +3 -0
  969. package/dist/gpu-dggs/index.d.ts.map +1 -0
  970. package/dist/gpu-dggs/index.js +5 -0
  971. package/dist/gpu-dggs/index.js.map +1 -0
  972. package/dist/gpu-effects/fft-bloom-shaders.cjs +327 -0
  973. package/dist/gpu-effects/fft-bloom-shaders.d.ts +10 -0
  974. package/dist/gpu-effects/fft-bloom-shaders.d.ts.map +1 -0
  975. package/dist/gpu-effects/fft-bloom-shaders.js +284 -0
  976. package/dist/gpu-effects/fft-bloom-shaders.js.map +1 -0
  977. package/dist/gpu-effects/fft-bloom.cjs +590 -0
  978. package/dist/gpu-effects/fft-bloom.d.ts +149 -0
  979. package/dist/gpu-effects/fft-bloom.d.ts.map +1 -0
  980. package/dist/gpu-effects/fft-bloom.js +593 -0
  981. package/dist/gpu-effects/fft-bloom.js.map +1 -0
  982. package/dist/gpu-effects/index.cjs +35 -0
  983. package/dist/gpu-effects/index.cjs.map +6 -0
  984. package/dist/gpu-effects/index.d.ts +3 -0
  985. package/dist/gpu-effects/index.d.ts.map +1 -0
  986. package/dist/gpu-effects/index.js +5 -0
  987. package/dist/gpu-effects/index.js.map +1 -0
  988. package/dist/gpu-geometry/gpu-mesh-normals.cjs +81 -0
  989. package/dist/gpu-geometry/gpu-mesh-normals.d.ts +34 -0
  990. package/dist/gpu-geometry/gpu-mesh-normals.d.ts.map +1 -0
  991. package/dist/gpu-geometry/gpu-mesh-normals.js +61 -0
  992. package/dist/gpu-geometry/gpu-mesh-normals.js.map +1 -0
  993. package/dist/gpu-geometry/gpu-mesh-smoothing.cjs +61 -0
  994. package/dist/gpu-geometry/gpu-mesh-smoothing.d.ts +21 -0
  995. package/dist/gpu-geometry/gpu-mesh-smoothing.d.ts.map +1 -0
  996. package/dist/gpu-geometry/gpu-mesh-smoothing.js +43 -0
  997. package/dist/gpu-geometry/gpu-mesh-smoothing.js.map +1 -0
  998. package/dist/gpu-geometry/index.cjs +32 -0
  999. package/dist/gpu-geometry/index.cjs.map +6 -0
  1000. package/dist/gpu-geometry/index.d.ts +5 -0
  1001. package/dist/gpu-geometry/index.d.ts.map +1 -0
  1002. package/dist/gpu-geometry/index.js +6 -0
  1003. package/dist/gpu-geometry/index.js.map +1 -0
  1004. package/dist/gpu-graph/index.cjs +73 -0
  1005. package/dist/gpu-graph/index.cjs.map +6 -0
  1006. package/dist/gpu-graph/index.d.ts +15 -0
  1007. package/dist/gpu-graph/index.d.ts.map +1 -0
  1008. package/dist/gpu-graph/index.js +12 -0
  1009. package/dist/gpu-graph/index.js.map +1 -0
  1010. package/dist/gpu-graph-algorithms/benchmarks.cjs +30 -0
  1011. package/dist/gpu-graph-algorithms/benchmarks.cjs.map +6 -0
  1012. package/dist/gpu-graph-algorithms/benchmarks.d.ts +4 -0
  1013. package/dist/gpu-graph-algorithms/benchmarks.d.ts.map +1 -0
  1014. package/dist/gpu-graph-algorithms/benchmarks.js +7 -0
  1015. package/dist/gpu-graph-algorithms/benchmarks.js.map +1 -0
  1016. package/dist/gpu-graph-algorithms/gpu-graph-benchmark-data.cjs +628 -0
  1017. package/dist/gpu-graph-algorithms/gpu-graph-benchmark-data.d.ts +131 -0
  1018. package/dist/gpu-graph-algorithms/gpu-graph-benchmark-data.d.ts.map +1 -0
  1019. package/dist/gpu-graph-algorithms/gpu-graph-benchmark-data.js +639 -0
  1020. package/dist/gpu-graph-algorithms/gpu-graph-benchmark-data.js.map +1 -0
  1021. package/dist/gpu-graph-algorithms/gpu-graph-benchmark.cjs +550 -0
  1022. package/dist/gpu-graph-algorithms/gpu-graph-benchmark.d.ts +12 -0
  1023. package/dist/gpu-graph-algorithms/gpu-graph-benchmark.d.ts.map +1 -0
  1024. package/dist/gpu-graph-algorithms/gpu-graph-benchmark.js +585 -0
  1025. package/dist/gpu-graph-algorithms/gpu-graph-benchmark.js.map +1 -0
  1026. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.cjs +289 -0
  1027. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.d.ts +8 -0
  1028. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.d.ts.map +1 -0
  1029. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.js +300 -0
  1030. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.js.map +1 -0
  1031. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search.cjs +169 -0
  1032. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search.d.ts +63 -0
  1033. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search.d.ts.map +1 -0
  1034. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search.js +183 -0
  1035. package/dist/gpu-graph-algorithms/gpu-graph-breadth-first-search.js.map +1 -0
  1036. package/dist/gpu-graph-algorithms/gpu-graph-connected-components-internals.cjs +276 -0
  1037. package/dist/gpu-graph-algorithms/gpu-graph-connected-components-internals.d.ts +8 -0
  1038. package/dist/gpu-graph-algorithms/gpu-graph-connected-components-internals.d.ts.map +1 -0
  1039. package/dist/gpu-graph-algorithms/gpu-graph-connected-components-internals.js +271 -0
  1040. package/dist/gpu-graph-algorithms/gpu-graph-connected-components-internals.js.map +1 -0
  1041. package/dist/gpu-graph-algorithms/gpu-graph-connected-components.cjs +117 -0
  1042. package/dist/gpu-graph-algorithms/gpu-graph-connected-components.d.ts +41 -0
  1043. package/dist/gpu-graph-algorithms/gpu-graph-connected-components.d.ts.map +1 -0
  1044. package/dist/gpu-graph-algorithms/gpu-graph-connected-components.js +124 -0
  1045. package/dist/gpu-graph-algorithms/gpu-graph-connected-components.js.map +1 -0
  1046. package/dist/gpu-graph-algorithms/gpu-graph-core-number-internals.cjs +415 -0
  1047. package/dist/gpu-graph-algorithms/gpu-graph-core-number-internals.d.ts +8 -0
  1048. package/dist/gpu-graph-algorithms/gpu-graph-core-number-internals.d.ts.map +1 -0
  1049. package/dist/gpu-graph-algorithms/gpu-graph-core-number-internals.js +412 -0
  1050. package/dist/gpu-graph-algorithms/gpu-graph-core-number-internals.js.map +1 -0
  1051. package/dist/gpu-graph-algorithms/gpu-graph-core-number.cjs +124 -0
  1052. package/dist/gpu-graph-algorithms/gpu-graph-core-number.d.ts +49 -0
  1053. package/dist/gpu-graph-algorithms/gpu-graph-core-number.d.ts.map +1 -0
  1054. package/dist/gpu-graph-algorithms/gpu-graph-core-number.js +136 -0
  1055. package/dist/gpu-graph-algorithms/gpu-graph-core-number.js.map +1 -0
  1056. package/dist/gpu-graph-algorithms/gpu-graph-degree-internals.cjs +102 -0
  1057. package/dist/gpu-graph-algorithms/gpu-graph-degree-internals.d.ts +8 -0
  1058. package/dist/gpu-graph-algorithms/gpu-graph-degree-internals.d.ts.map +1 -0
  1059. package/dist/gpu-graph-algorithms/gpu-graph-degree-internals.js +81 -0
  1060. package/dist/gpu-graph-algorithms/gpu-graph-degree-internals.js.map +1 -0
  1061. package/dist/gpu-graph-algorithms/gpu-graph-degree.cjs +100 -0
  1062. package/dist/gpu-graph-algorithms/gpu-graph-degree.d.ts +38 -0
  1063. package/dist/gpu-graph-algorithms/gpu-graph-degree.d.ts.map +1 -0
  1064. package/dist/gpu-graph-algorithms/gpu-graph-degree.js +104 -0
  1065. package/dist/gpu-graph-algorithms/gpu-graph-degree.js.map +1 -0
  1066. package/dist/gpu-graph-algorithms/gpu-graph-force-layout-internals.cjs +391 -0
  1067. package/dist/gpu-graph-algorithms/gpu-graph-force-layout-internals.d.ts +8 -0
  1068. package/dist/gpu-graph-algorithms/gpu-graph-force-layout-internals.d.ts.map +1 -0
  1069. package/dist/gpu-graph-algorithms/gpu-graph-force-layout-internals.js +396 -0
  1070. package/dist/gpu-graph-algorithms/gpu-graph-force-layout-internals.js.map +1 -0
  1071. package/dist/gpu-graph-algorithms/gpu-graph-force-layout.cjs +186 -0
  1072. package/dist/gpu-graph-algorithms/gpu-graph-force-layout.d.ts +80 -0
  1073. package/dist/gpu-graph-algorithms/gpu-graph-force-layout.d.ts.map +1 -0
  1074. package/dist/gpu-graph-algorithms/gpu-graph-force-layout.js +198 -0
  1075. package/dist/gpu-graph-algorithms/gpu-graph-force-layout.js.map +1 -0
  1076. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation-internals.cjs +344 -0
  1077. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation-internals.d.ts +8 -0
  1078. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation-internals.d.ts.map +1 -0
  1079. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation-internals.js +357 -0
  1080. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation-internals.js.map +1 -0
  1081. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation.cjs +120 -0
  1082. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation.d.ts +46 -0
  1083. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation.d.ts.map +1 -0
  1084. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation.js +132 -0
  1085. package/dist/gpu-graph-algorithms/gpu-graph-label-propagation.js.map +1 -0
  1086. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.cjs +243 -0
  1087. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.d.ts +8 -0
  1088. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.d.ts.map +1 -0
  1089. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.js +244 -0
  1090. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.js.map +1 -0
  1091. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.cjs +111 -0
  1092. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.d.ts +47 -0
  1093. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.d.ts.map +1 -0
  1094. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.js +126 -0
  1095. package/dist/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.js.map +1 -0
  1096. package/dist/gpu-graph-algorithms/gpu-graph-modularity-internals.cjs +387 -0
  1097. package/dist/gpu-graph-algorithms/gpu-graph-modularity-internals.d.ts +8 -0
  1098. package/dist/gpu-graph-algorithms/gpu-graph-modularity-internals.d.ts.map +1 -0
  1099. package/dist/gpu-graph-algorithms/gpu-graph-modularity-internals.js +387 -0
  1100. package/dist/gpu-graph-algorithms/gpu-graph-modularity-internals.js.map +1 -0
  1101. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.cjs +818 -0
  1102. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.d.ts +8 -0
  1103. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.d.ts.map +1 -0
  1104. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.js +824 -0
  1105. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.js.map +1 -0
  1106. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization.cjs +148 -0
  1107. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization.d.ts +72 -0
  1108. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization.d.ts.map +1 -0
  1109. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization.js +171 -0
  1110. package/dist/gpu-graph-algorithms/gpu-graph-modularity-optimization.js.map +1 -0
  1111. package/dist/gpu-graph-algorithms/gpu-graph-modularity.cjs +109 -0
  1112. package/dist/gpu-graph-algorithms/gpu-graph-modularity.d.ts +55 -0
  1113. package/dist/gpu-graph-algorithms/gpu-graph-modularity.d.ts.map +1 -0
  1114. package/dist/gpu-graph-algorithms/gpu-graph-modularity.js +124 -0
  1115. package/dist/gpu-graph-algorithms/gpu-graph-modularity.js.map +1 -0
  1116. package/dist/gpu-graph-algorithms/gpu-graph-page-rank-internals.cjs +437 -0
  1117. package/dist/gpu-graph-algorithms/gpu-graph-page-rank-internals.d.ts +8 -0
  1118. package/dist/gpu-graph-algorithms/gpu-graph-page-rank-internals.d.ts.map +1 -0
  1119. package/dist/gpu-graph-algorithms/gpu-graph-page-rank-internals.js +457 -0
  1120. package/dist/gpu-graph-algorithms/gpu-graph-page-rank-internals.js.map +1 -0
  1121. package/dist/gpu-graph-algorithms/gpu-graph-page-rank.cjs +127 -0
  1122. package/dist/gpu-graph-algorithms/gpu-graph-page-rank.d.ts +45 -0
  1123. package/dist/gpu-graph-algorithms/gpu-graph-page-rank.d.ts.map +1 -0
  1124. package/dist/gpu-graph-algorithms/gpu-graph-page-rank.js +134 -0
  1125. package/dist/gpu-graph-algorithms/gpu-graph-page-rank.js.map +1 -0
  1126. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.cjs +542 -0
  1127. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.d.ts +8 -0
  1128. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.d.ts.map +1 -0
  1129. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.js +545 -0
  1130. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.js.map +1 -0
  1131. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.cjs +141 -0
  1132. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.d.ts +59 -0
  1133. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.d.ts.map +1 -0
  1134. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.js +155 -0
  1135. package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.js.map +1 -0
  1136. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.cjs +593 -0
  1137. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.d.ts +8 -0
  1138. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.d.ts.map +1 -0
  1139. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js +594 -0
  1140. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.js.map +1 -0
  1141. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout.cjs +161 -0
  1142. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout.d.ts +71 -0
  1143. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout.d.ts.map +1 -0
  1144. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout.js +179 -0
  1145. package/dist/gpu-graph-algorithms/gpu-graph-spatial-force-layout.js.map +1 -0
  1146. package/dist/gpu-graph-algorithms/gpu-graph-topology-internals.cjs +512 -0
  1147. package/dist/gpu-graph-algorithms/gpu-graph-topology-internals.d.ts +8 -0
  1148. package/dist/gpu-graph-algorithms/gpu-graph-topology-internals.d.ts.map +1 -0
  1149. package/dist/gpu-graph-algorithms/gpu-graph-topology-internals.js +516 -0
  1150. package/dist/gpu-graph-algorithms/gpu-graph-topology-internals.js.map +1 -0
  1151. package/dist/gpu-graph-algorithms/gpu-graph-topology.cjs +149 -0
  1152. package/dist/gpu-graph-algorithms/gpu-graph-topology.d.ts +55 -0
  1153. package/dist/gpu-graph-algorithms/gpu-graph-topology.d.ts.map +1 -0
  1154. package/dist/gpu-graph-algorithms/gpu-graph-topology.js +160 -0
  1155. package/dist/gpu-graph-algorithms/gpu-graph-topology.js.map +1 -0
  1156. package/dist/gpu-graph-algorithms/gpu-graph.cjs +128 -0
  1157. package/dist/gpu-graph-algorithms/gpu-graph.d.ts +69 -0
  1158. package/dist/gpu-graph-algorithms/gpu-graph.d.ts.map +1 -0
  1159. package/dist/gpu-graph-algorithms/gpu-graph.js +132 -0
  1160. package/dist/gpu-graph-algorithms/gpu-graph.js.map +1 -0
  1161. package/dist/gpu-graph-algorithms/index.cjs +66 -0
  1162. package/dist/gpu-graph-algorithms/index.cjs.map +6 -0
  1163. package/dist/gpu-graph-algorithms/index.d.ts +29 -0
  1164. package/dist/gpu-graph-algorithms/index.d.ts.map +1 -0
  1165. package/dist/gpu-graph-algorithms/index.js +19 -0
  1166. package/dist/gpu-graph-algorithms/index.js.map +1 -0
  1167. package/dist/gpu-h3/gpu-h3-cell-projection.cjs +32 -0
  1168. package/dist/gpu-h3/gpu-h3-cell-projection.d.ts +14 -0
  1169. package/dist/gpu-h3/gpu-h3-cell-projection.d.ts.map +1 -0
  1170. package/dist/gpu-h3/gpu-h3-cell-projection.js +17 -0
  1171. package/dist/gpu-h3/gpu-h3-cell-projection.js.map +1 -0
  1172. package/dist/gpu-h3/index.cjs +27 -0
  1173. package/dist/gpu-h3/index.cjs.map +6 -0
  1174. package/dist/gpu-h3/index.d.ts +4 -0
  1175. package/dist/gpu-h3/index.d.ts.map +1 -0
  1176. package/dist/gpu-h3/index.js +5 -0
  1177. package/dist/gpu-h3/index.js.map +1 -0
  1178. package/dist/gpu-parse/compression/gpu-lz4-raw-decompressor.cjs +59 -0
  1179. package/dist/gpu-parse/compression/gpu-lz4-raw-decompressor.d.ts +23 -0
  1180. package/dist/gpu-parse/compression/gpu-lz4-raw-decompressor.d.ts.map +1 -0
  1181. package/dist/gpu-parse/compression/gpu-lz4-raw-decompressor.js +34 -0
  1182. package/dist/gpu-parse/compression/gpu-lz4-raw-decompressor.js.map +1 -0
  1183. package/dist/gpu-parse/compression/gpu-snappy-decompressor.cjs +50 -0
  1184. package/dist/gpu-parse/compression/gpu-snappy-decompressor.d.ts +19 -0
  1185. package/dist/gpu-parse/compression/gpu-snappy-decompressor.d.ts.map +1 -0
  1186. package/dist/gpu-parse/compression/gpu-snappy-decompressor.js +27 -0
  1187. package/dist/gpu-parse/compression/gpu-snappy-decompressor.js.map +1 -0
  1188. package/dist/gpu-parse/compression/lz4-raw-plan.cjs +100 -0
  1189. package/dist/gpu-parse/compression/lz4-raw-plan.d.ts +16 -0
  1190. package/dist/gpu-parse/compression/lz4-raw-plan.d.ts.map +1 -0
  1191. package/dist/gpu-parse/compression/lz4-raw-plan.js +77 -0
  1192. package/dist/gpu-parse/compression/lz4-raw-plan.js.map +1 -0
  1193. package/dist/gpu-parse/compression/snappy-plan.cjs +142 -0
  1194. package/dist/gpu-parse/compression/snappy-plan.d.ts +16 -0
  1195. package/dist/gpu-parse/compression/snappy-plan.d.ts.map +1 -0
  1196. package/dist/gpu-parse/compression/snappy-plan.js +119 -0
  1197. package/dist/gpu-parse/compression/snappy-plan.js.map +1 -0
  1198. package/dist/gpu-parse/index.cjs +188 -0
  1199. package/dist/gpu-parse/index.cjs.map +6 -0
  1200. package/dist/gpu-parse/index.d.ts +33 -0
  1201. package/dist/gpu-parse/index.d.ts.map +1 -0
  1202. package/dist/gpu-parse/index.js +36 -0
  1203. package/dist/gpu-parse/index.js.map +1 -0
  1204. package/dist/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.cjs +161 -0
  1205. package/dist/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.d.ts +22 -0
  1206. package/dist/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.d.ts.map +1 -0
  1207. package/dist/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.js +139 -0
  1208. package/dist/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.js.map +1 -0
  1209. package/dist/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.cjs +69 -0
  1210. package/dist/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.d.ts +21 -0
  1211. package/dist/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.d.ts.map +1 -0
  1212. package/dist/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.js +49 -0
  1213. package/dist/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.js.map +1 -0
  1214. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.cjs +204 -0
  1215. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.d.ts +53 -0
  1216. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.d.ts.map +1 -0
  1217. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.js +195 -0
  1218. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.js.map +1 -0
  1219. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.cjs +190 -0
  1220. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.d.ts +47 -0
  1221. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.d.ts.map +1 -0
  1222. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.js +174 -0
  1223. package/dist/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.js.map +1 -0
  1224. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.cjs +55 -0
  1225. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.d.ts +19 -0
  1226. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.d.ts.map +1 -0
  1227. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.js +34 -0
  1228. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.js.map +1 -0
  1229. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.cjs +54 -0
  1230. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.d.ts +21 -0
  1231. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.d.ts.map +1 -0
  1232. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.js +33 -0
  1233. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.js.map +1 -0
  1234. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.cjs +225 -0
  1235. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.d.ts +23 -0
  1236. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.d.ts.map +1 -0
  1237. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.js +210 -0
  1238. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.js.map +1 -0
  1239. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.cjs +227 -0
  1240. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.d.ts +27 -0
  1241. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.d.ts.map +1 -0
  1242. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.js +218 -0
  1243. package/dist/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.js.map +1 -0
  1244. package/dist/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.cjs +356 -0
  1245. package/dist/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.d.ts +32 -0
  1246. package/dist/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.d.ts.map +1 -0
  1247. package/dist/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.js +337 -0
  1248. package/dist/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.js.map +1 -0
  1249. package/dist/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.cjs +54 -0
  1250. package/dist/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.d.ts +20 -0
  1251. package/dist/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.d.ts.map +1 -0
  1252. package/dist/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.js +33 -0
  1253. package/dist/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.js.map +1 -0
  1254. package/dist/gpu-parse/parquet/gpu-parquet-dictionary-decoder.cjs +203 -0
  1255. package/dist/gpu-parse/parquet/gpu-parquet-dictionary-decoder.d.ts +33 -0
  1256. package/dist/gpu-parse/parquet/gpu-parquet-dictionary-decoder.d.ts.map +1 -0
  1257. package/dist/gpu-parse/parquet/gpu-parquet-dictionary-decoder.js +183 -0
  1258. package/dist/gpu-parse/parquet/gpu-parquet-dictionary-decoder.js.map +1 -0
  1259. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.cjs +276 -0
  1260. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.d.ts +147 -0
  1261. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.d.ts.map +1 -0
  1262. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.js +291 -0
  1263. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.js.map +1 -0
  1264. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch.cjs +472 -0
  1265. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch.d.ts +51 -0
  1266. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch.d.ts.map +1 -0
  1267. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch.js +479 -0
  1268. package/dist/gpu-parse/parquet/gpu-parquet-encoded-page-batch.js.map +1 -0
  1269. package/dist/gpu-parse/parquet/gpu-parquet-level-layout.cjs +191 -0
  1270. package/dist/gpu-parse/parquet/gpu-parquet-level-layout.d.ts +47 -0
  1271. package/dist/gpu-parse/parquet/gpu-parquet-level-layout.d.ts.map +1 -0
  1272. package/dist/gpu-parse/parquet/gpu-parquet-level-layout.js +179 -0
  1273. package/dist/gpu-parse/parquet/gpu-parquet-level-layout.js.map +1 -0
  1274. package/dist/gpu-parse/parquet/gpu-parquet-nested-column-layout.cjs +279 -0
  1275. package/dist/gpu-parse/parquet/gpu-parquet-nested-column-layout.d.ts +68 -0
  1276. package/dist/gpu-parse/parquet/gpu-parquet-nested-column-layout.d.ts.map +1 -0
  1277. package/dist/gpu-parse/parquet/gpu-parquet-nested-column-layout.js +278 -0
  1278. package/dist/gpu-parse/parquet/gpu-parquet-nested-column-layout.js.map +1 -0
  1279. package/dist/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.cjs +146 -0
  1280. package/dist/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.d.ts +19 -0
  1281. package/dist/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.d.ts.map +1 -0
  1282. package/dist/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.js +125 -0
  1283. package/dist/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.js.map +1 -0
  1284. package/dist/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.cjs +47 -0
  1285. package/dist/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.d.ts +19 -0
  1286. package/dist/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.d.ts.map +1 -0
  1287. package/dist/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.js +26 -0
  1288. package/dist/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.js.map +1 -0
  1289. package/dist/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.cjs +238 -0
  1290. package/dist/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.d.ts +34 -0
  1291. package/dist/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.d.ts.map +1 -0
  1292. package/dist/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.js +220 -0
  1293. package/dist/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.js.map +1 -0
  1294. package/dist/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.cjs +59 -0
  1295. package/dist/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.d.ts +22 -0
  1296. package/dist/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.d.ts.map +1 -0
  1297. package/dist/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.js +38 -0
  1298. package/dist/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.js.map +1 -0
  1299. package/dist/gpu-parse/parquet/parquet-column-decode-plan.cjs +76 -0
  1300. package/dist/gpu-parse/parquet/parquet-column-decode-plan.d.ts +34 -0
  1301. package/dist/gpu-parse/parquet/parquet-column-decode-plan.d.ts.map +1 -0
  1302. package/dist/gpu-parse/parquet/parquet-column-decode-plan.js +59 -0
  1303. package/dist/gpu-parse/parquet/parquet-column-decode-plan.js.map +1 -0
  1304. package/dist/gpu-parse/parquet/parquet-delta-binary-packed-int64.cjs +137 -0
  1305. package/dist/gpu-parse/parquet/parquet-delta-binary-packed-int64.d.ts +16 -0
  1306. package/dist/gpu-parse/parquet/parquet-delta-binary-packed-int64.d.ts.map +1 -0
  1307. package/dist/gpu-parse/parquet/parquet-delta-binary-packed-int64.js +114 -0
  1308. package/dist/gpu-parse/parquet/parquet-delta-binary-packed-int64.js.map +1 -0
  1309. package/dist/gpu-parse/parquet/parquet-delta-binary-packed.cjs +128 -0
  1310. package/dist/gpu-parse/parquet/parquet-delta-binary-packed.d.ts +15 -0
  1311. package/dist/gpu-parse/parquet/parquet-delta-binary-packed.d.ts.map +1 -0
  1312. package/dist/gpu-parse/parquet/parquet-delta-binary-packed.js +105 -0
  1313. package/dist/gpu-parse/parquet/parquet-delta-binary-packed.js.map +1 -0
  1314. package/dist/gpu-parse/parquet/parquet-delta-byte-array.cjs +56 -0
  1315. package/dist/gpu-parse/parquet/parquet-delta-byte-array.d.ts +11 -0
  1316. package/dist/gpu-parse/parquet/parquet-delta-byte-array.d.ts.map +1 -0
  1317. package/dist/gpu-parse/parquet/parquet-delta-byte-array.js +35 -0
  1318. package/dist/gpu-parse/parquet/parquet-delta-byte-array.js.map +1 -0
  1319. package/dist/gpu-parse/parquet/parquet-delta-length-byte-array.cjs +35 -0
  1320. package/dist/gpu-parse/parquet/parquet-delta-length-byte-array.d.ts +10 -0
  1321. package/dist/gpu-parse/parquet/parquet-delta-length-byte-array.d.ts.map +1 -0
  1322. package/dist/gpu-parse/parquet/parquet-delta-length-byte-array.js +14 -0
  1323. package/dist/gpu-parse/parquet/parquet-delta-length-byte-array.js.map +1 -0
  1324. package/dist/gpu-parse/parquet/parquet-encoded-page-batch.cjs +690 -0
  1325. package/dist/gpu-parse/parquet/parquet-encoded-page-batch.d.ts +248 -0
  1326. package/dist/gpu-parse/parquet/parquet-encoded-page-batch.d.ts.map +1 -0
  1327. package/dist/gpu-parse/parquet/parquet-encoded-page-batch.js +690 -0
  1328. package/dist/gpu-parse/parquet/parquet-encoded-page-batch.js.map +1 -0
  1329. package/dist/gpu-parse/parquet/parquet-plain-byte-array.cjs +65 -0
  1330. package/dist/gpu-parse/parquet/parquet-plain-byte-array.d.ts +12 -0
  1331. package/dist/gpu-parse/parquet/parquet-plain-byte-array.d.ts.map +1 -0
  1332. package/dist/gpu-parse/parquet/parquet-plain-byte-array.js +48 -0
  1333. package/dist/gpu-parse/parquet/parquet-plain-byte-array.js.map +1 -0
  1334. package/dist/gpu-parse/parquet/parquet-rle-bit-packed.cjs +87 -0
  1335. package/dist/gpu-parse/parquet/parquet-rle-bit-packed.d.ts +18 -0
  1336. package/dist/gpu-parse/parquet/parquet-rle-bit-packed.d.ts.map +1 -0
  1337. package/dist/gpu-parse/parquet/parquet-rle-bit-packed.js +71 -0
  1338. package/dist/gpu-parse/parquet/parquet-rle-bit-packed.js.map +1 -0
  1339. package/dist/gpu-parse/parquet/parquet-rle-framing.cjs +81 -0
  1340. package/dist/gpu-parse/parquet/parquet-rle-framing.d.ts +20 -0
  1341. package/dist/gpu-parse/parquet/parquet-rle-framing.d.ts.map +1 -0
  1342. package/dist/gpu-parse/parquet/parquet-rle-framing.js +62 -0
  1343. package/dist/gpu-parse/parquet/parquet-rle-framing.js.map +1 -0
  1344. package/dist/gpu-physics/gpu-physics-batch.cjs +287 -0
  1345. package/dist/gpu-physics/gpu-physics-batch.d.ts +89 -0
  1346. package/dist/gpu-physics/gpu-physics-batch.d.ts.map +1 -0
  1347. package/dist/gpu-physics/gpu-physics-batch.js +279 -0
  1348. package/dist/gpu-physics/gpu-physics-batch.js.map +1 -0
  1349. package/dist/gpu-physics/gpu-physics-ensemble.cjs +164 -0
  1350. package/dist/gpu-physics/gpu-physics-ensemble.d.ts +72 -0
  1351. package/dist/gpu-physics/gpu-physics-ensemble.d.ts.map +1 -0
  1352. package/dist/gpu-physics/gpu-physics-ensemble.js +164 -0
  1353. package/dist/gpu-physics/gpu-physics-ensemble.js.map +1 -0
  1354. package/dist/gpu-physics/gpu-rigid-body-world.cjs +1953 -0
  1355. package/dist/gpu-physics/gpu-rigid-body-world.d.ts +305 -0
  1356. package/dist/gpu-physics/gpu-rigid-body-world.d.ts.map +1 -0
  1357. package/dist/gpu-physics/gpu-rigid-body-world.js +2311 -0
  1358. package/dist/gpu-physics/gpu-rigid-body-world.js.map +1 -0
  1359. package/dist/gpu-physics/gpu-sphere-world.cjs +809 -0
  1360. package/dist/gpu-physics/gpu-sphere-world.d.ts +176 -0
  1361. package/dist/gpu-physics/gpu-sphere-world.d.ts.map +1 -0
  1362. package/dist/gpu-physics/gpu-sphere-world.js +845 -0
  1363. package/dist/gpu-physics/gpu-sphere-world.js.map +1 -0
  1364. package/dist/gpu-physics/index.cjs +93 -0
  1365. package/dist/gpu-physics/index.cjs.map +6 -0
  1366. package/dist/gpu-physics/index.d.ts +28 -0
  1367. package/dist/gpu-physics/index.d.ts.map +1 -0
  1368. package/dist/gpu-physics/index.js +21 -0
  1369. package/dist/gpu-physics/index.js.map +1 -0
  1370. package/dist/gpu-physics/joint-types.cjs +15 -0
  1371. package/dist/gpu-physics/joint-types.d.ts +19 -0
  1372. package/dist/gpu-physics/joint-types.d.ts.map +1 -0
  1373. package/dist/gpu-physics/joint-types.js +5 -0
  1374. package/dist/gpu-physics/joint-types.js.map +1 -0
  1375. package/dist/gpu-physics/rigid-body-bounds-shaders.cjs +79 -0
  1376. package/dist/gpu-physics/rigid-body-bounds-shaders.d.ts +3 -0
  1377. package/dist/gpu-physics/rigid-body-bounds-shaders.d.ts.map +1 -0
  1378. package/dist/gpu-physics/rigid-body-bounds-shaders.js +49 -0
  1379. package/dist/gpu-physics/rigid-body-bounds-shaders.js.map +1 -0
  1380. package/dist/gpu-physics/rigid-body-broad-phase.cjs +315 -0
  1381. package/dist/gpu-physics/rigid-body-broad-phase.d.ts +45 -0
  1382. package/dist/gpu-physics/rigid-body-broad-phase.d.ts.map +1 -0
  1383. package/dist/gpu-physics/rigid-body-broad-phase.js +333 -0
  1384. package/dist/gpu-physics/rigid-body-broad-phase.js.map +1 -0
  1385. package/dist/gpu-physics/rigid-body-cache-shaders.cjs +118 -0
  1386. package/dist/gpu-physics/rigid-body-cache-shaders.d.ts +7 -0
  1387. package/dist/gpu-physics/rigid-body-cache-shaders.d.ts.map +1 -0
  1388. package/dist/gpu-physics/rigid-body-cache-shaders.js +94 -0
  1389. package/dist/gpu-physics/rigid-body-cache-shaders.js.map +1 -0
  1390. package/dist/gpu-physics/rigid-body-capacity.cjs +102 -0
  1391. package/dist/gpu-physics/rigid-body-capacity.d.ts +27 -0
  1392. package/dist/gpu-physics/rigid-body-capacity.d.ts.map +1 -0
  1393. package/dist/gpu-physics/rigid-body-capacity.js +93 -0
  1394. package/dist/gpu-physics/rigid-body-capacity.js.map +1 -0
  1395. package/dist/gpu-physics/rigid-body-contact-features.cjs +83 -0
  1396. package/dist/gpu-physics/rigid-body-contact-features.d.ts +7 -0
  1397. package/dist/gpu-physics/rigid-body-contact-features.d.ts.map +1 -0
  1398. package/dist/gpu-physics/rigid-body-contact-features.js +65 -0
  1399. package/dist/gpu-physics/rigid-body-contact-features.js.map +1 -0
  1400. package/dist/gpu-physics/rigid-body-continuous.cjs +314 -0
  1401. package/dist/gpu-physics/rigid-body-continuous.d.ts +27 -0
  1402. package/dist/gpu-physics/rigid-body-continuous.d.ts.map +1 -0
  1403. package/dist/gpu-physics/rigid-body-continuous.js +311 -0
  1404. package/dist/gpu-physics/rigid-body-continuous.js.map +1 -0
  1405. package/dist/gpu-physics/rigid-body-convex-continuous-shader.cjs +550 -0
  1406. package/dist/gpu-physics/rigid-body-convex-continuous-shader.d.ts +3 -0
  1407. package/dist/gpu-physics/rigid-body-convex-continuous-shader.d.ts.map +1 -0
  1408. package/dist/gpu-physics/rigid-body-convex-continuous-shader.js +528 -0
  1409. package/dist/gpu-physics/rigid-body-convex-continuous-shader.js.map +1 -0
  1410. package/dist/gpu-physics/rigid-body-convex-shaders.cjs +242 -0
  1411. package/dist/gpu-physics/rigid-body-convex-shaders.d.ts +2 -0
  1412. package/dist/gpu-physics/rigid-body-convex-shaders.d.ts.map +1 -0
  1413. package/dist/gpu-physics/rigid-body-convex-shaders.js +217 -0
  1414. package/dist/gpu-physics/rigid-body-convex-shaders.js.map +1 -0
  1415. package/dist/gpu-physics/rigid-body-diagnostics.cjs +123 -0
  1416. package/dist/gpu-physics/rigid-body-diagnostics.d.ts +50 -0
  1417. package/dist/gpu-physics/rigid-body-diagnostics.d.ts.map +1 -0
  1418. package/dist/gpu-physics/rigid-body-diagnostics.js +98 -0
  1419. package/dist/gpu-physics/rigid-body-diagnostics.js.map +1 -0
  1420. package/dist/gpu-physics/rigid-body-ensemble-layout.cjs +55 -0
  1421. package/dist/gpu-physics/rigid-body-ensemble-layout.d.ts +17 -0
  1422. package/dist/gpu-physics/rigid-body-ensemble-layout.d.ts.map +1 -0
  1423. package/dist/gpu-physics/rigid-body-ensemble-layout.js +34 -0
  1424. package/dist/gpu-physics/rigid-body-ensemble-layout.js.map +1 -0
  1425. package/dist/gpu-physics/rigid-body-ensemble-reset.cjs +158 -0
  1426. package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts +8 -0
  1427. package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts.map +1 -0
  1428. package/dist/gpu-physics/rigid-body-ensemble-reset.js +135 -0
  1429. package/dist/gpu-physics/rigid-body-ensemble-reset.js.map +1 -0
  1430. package/dist/gpu-physics/rigid-body-ensemble-shaders.cjs +145 -0
  1431. package/dist/gpu-physics/rigid-body-ensemble-shaders.d.ts +20 -0
  1432. package/dist/gpu-physics/rigid-body-ensemble-shaders.d.ts.map +1 -0
  1433. package/dist/gpu-physics/rigid-body-ensemble-shaders.js +121 -0
  1434. package/dist/gpu-physics/rigid-body-ensemble-shaders.js.map +1 -0
  1435. package/dist/gpu-physics/rigid-body-ensemble-transaction.cjs +175 -0
  1436. package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts +19 -0
  1437. package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts.map +1 -0
  1438. package/dist/gpu-physics/rigid-body-ensemble-transaction.js +156 -0
  1439. package/dist/gpu-physics/rigid-body-ensemble-transaction.js.map +1 -0
  1440. package/dist/gpu-physics/rigid-body-events.cjs +93 -0
  1441. package/dist/gpu-physics/rigid-body-events.d.ts +22 -0
  1442. package/dist/gpu-physics/rigid-body-events.d.ts.map +1 -0
  1443. package/dist/gpu-physics/rigid-body-events.js +67 -0
  1444. package/dist/gpu-physics/rigid-body-events.js.map +1 -0
  1445. package/dist/gpu-physics/rigid-body-general-joints.cjs +142 -0
  1446. package/dist/gpu-physics/rigid-body-general-joints.d.ts +8 -0
  1447. package/dist/gpu-physics/rigid-body-general-joints.d.ts.map +1 -0
  1448. package/dist/gpu-physics/rigid-body-general-joints.js +120 -0
  1449. package/dist/gpu-physics/rigid-body-general-joints.js.map +1 -0
  1450. package/dist/gpu-physics/rigid-body-geometry.cjs +87 -0
  1451. package/dist/gpu-physics/rigid-body-geometry.d.ts +11 -0
  1452. package/dist/gpu-physics/rigid-body-geometry.d.ts.map +1 -0
  1453. package/dist/gpu-physics/rigid-body-geometry.js +68 -0
  1454. package/dist/gpu-physics/rigid-body-geometry.js.map +1 -0
  1455. package/dist/gpu-physics/rigid-body-joints.cjs +205 -0
  1456. package/dist/gpu-physics/rigid-body-joints.d.ts +50 -0
  1457. package/dist/gpu-physics/rigid-body-joints.d.ts.map +1 -0
  1458. package/dist/gpu-physics/rigid-body-joints.js +190 -0
  1459. package/dist/gpu-physics/rigid-body-joints.js.map +1 -0
  1460. package/dist/gpu-physics/rigid-body-journal.cjs +101 -0
  1461. package/dist/gpu-physics/rigid-body-journal.d.ts +62 -0
  1462. package/dist/gpu-physics/rigid-body-journal.d.ts.map +1 -0
  1463. package/dist/gpu-physics/rigid-body-journal.js +78 -0
  1464. package/dist/gpu-physics/rigid-body-journal.js.map +1 -0
  1465. package/dist/gpu-physics/rigid-body-mesh-query-shaders.cjs +122 -0
  1466. package/dist/gpu-physics/rigid-body-mesh-query-shaders.d.ts +3 -0
  1467. package/dist/gpu-physics/rigid-body-mesh-query-shaders.d.ts.map +1 -0
  1468. package/dist/gpu-physics/rigid-body-mesh-query-shaders.js +98 -0
  1469. package/dist/gpu-physics/rigid-body-mesh-query-shaders.js.map +1 -0
  1470. package/dist/gpu-physics/rigid-body-mesh.cjs +253 -0
  1471. package/dist/gpu-physics/rigid-body-mesh.d.ts +19 -0
  1472. package/dist/gpu-physics/rigid-body-mesh.d.ts.map +1 -0
  1473. package/dist/gpu-physics/rigid-body-mesh.js +254 -0
  1474. package/dist/gpu-physics/rigid-body-mesh.js.map +1 -0
  1475. package/dist/gpu-physics/rigid-body-orientation.cjs +53 -0
  1476. package/dist/gpu-physics/rigid-body-orientation.d.ts +3 -0
  1477. package/dist/gpu-physics/rigid-body-orientation.d.ts.map +1 -0
  1478. package/dist/gpu-physics/rigid-body-orientation.js +34 -0
  1479. package/dist/gpu-physics/rigid-body-orientation.js.map +1 -0
  1480. package/dist/gpu-physics/rigid-body-origin.cjs +85 -0
  1481. package/dist/gpu-physics/rigid-body-origin.d.ts +4 -0
  1482. package/dist/gpu-physics/rigid-body-origin.d.ts.map +1 -0
  1483. package/dist/gpu-physics/rigid-body-origin.js +63 -0
  1484. package/dist/gpu-physics/rigid-body-origin.js.map +1 -0
  1485. package/dist/gpu-physics/rigid-body-parallel-shaders.cjs +245 -0
  1486. package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts +3 -0
  1487. package/dist/gpu-physics/rigid-body-parallel-shaders.d.ts.map +1 -0
  1488. package/dist/gpu-physics/rigid-body-parallel-shaders.js +223 -0
  1489. package/dist/gpu-physics/rigid-body-parallel-shaders.js.map +1 -0
  1490. package/dist/gpu-physics/rigid-body-properties.cjs +106 -0
  1491. package/dist/gpu-physics/rigid-body-properties.d.ts +84 -0
  1492. package/dist/gpu-physics/rigid-body-properties.d.ts.map +1 -0
  1493. package/dist/gpu-physics/rigid-body-properties.js +89 -0
  1494. package/dist/gpu-physics/rigid-body-properties.js.map +1 -0
  1495. package/dist/gpu-physics/rigid-body-publication.cjs +117 -0
  1496. package/dist/gpu-physics/rigid-body-publication.d.ts +21 -0
  1497. package/dist/gpu-physics/rigid-body-publication.d.ts.map +1 -0
  1498. package/dist/gpu-physics/rigid-body-publication.js +98 -0
  1499. package/dist/gpu-physics/rigid-body-publication.js.map +1 -0
  1500. package/dist/gpu-physics/rigid-body-queries.cjs +84 -0
  1501. package/dist/gpu-physics/rigid-body-queries.d.ts +34 -0
  1502. package/dist/gpu-physics/rigid-body-queries.d.ts.map +1 -0
  1503. package/dist/gpu-physics/rigid-body-queries.js +59 -0
  1504. package/dist/gpu-physics/rigid-body-queries.js.map +1 -0
  1505. package/dist/gpu-physics/rigid-body-query-geometry.cjs +285 -0
  1506. package/dist/gpu-physics/rigid-body-query-geometry.d.ts +3 -0
  1507. package/dist/gpu-physics/rigid-body-query-geometry.d.ts.map +1 -0
  1508. package/dist/gpu-physics/rigid-body-query-geometry.js +261 -0
  1509. package/dist/gpu-physics/rigid-body-query-geometry.js.map +1 -0
  1510. package/dist/gpu-physics/rigid-body-recovery.cjs +207 -0
  1511. package/dist/gpu-physics/rigid-body-recovery.d.ts +55 -0
  1512. package/dist/gpu-physics/rigid-body-recovery.d.ts.map +1 -0
  1513. package/dist/gpu-physics/rigid-body-recovery.js +211 -0
  1514. package/dist/gpu-physics/rigid-body-recovery.js.map +1 -0
  1515. package/dist/gpu-physics/rigid-body-shaders.cjs +469 -0
  1516. package/dist/gpu-physics/rigid-body-shaders.d.ts +3 -0
  1517. package/dist/gpu-physics/rigid-body-shaders.d.ts.map +1 -0
  1518. package/dist/gpu-physics/rigid-body-shaders.js +451 -0
  1519. package/dist/gpu-physics/rigid-body-shaders.js.map +1 -0
  1520. package/dist/gpu-physics/rigid-body-shape-properties.cjs +92 -0
  1521. package/dist/gpu-physics/rigid-body-shape-properties.d.ts +9 -0
  1522. package/dist/gpu-physics/rigid-body-shape-properties.d.ts.map +1 -0
  1523. package/dist/gpu-physics/rigid-body-shape-properties.js +82 -0
  1524. package/dist/gpu-physics/rigid-body-shape-properties.js.map +1 -0
  1525. package/dist/gpu-physics/rigid-body-support-shaders.cjs +66 -0
  1526. package/dist/gpu-physics/rigid-body-support-shaders.d.ts +3 -0
  1527. package/dist/gpu-physics/rigid-body-support-shaders.d.ts.map +1 -0
  1528. package/dist/gpu-physics/rigid-body-support-shaders.js +42 -0
  1529. package/dist/gpu-physics/rigid-body-support-shaders.js.map +1 -0
  1530. package/dist/gpu-physics/rigid-body-transaction.cjs +187 -0
  1531. package/dist/gpu-physics/rigid-body-transaction.d.ts +19 -0
  1532. package/dist/gpu-physics/rigid-body-transaction.d.ts.map +1 -0
  1533. package/dist/gpu-physics/rigid-body-transaction.js +162 -0
  1534. package/dist/gpu-physics/rigid-body-transaction.js.map +1 -0
  1535. package/dist/gpu-physics/rigid-body-triggers.cjs +239 -0
  1536. package/dist/gpu-physics/rigid-body-triggers.d.ts +58 -0
  1537. package/dist/gpu-physics/rigid-body-triggers.d.ts.map +1 -0
  1538. package/dist/gpu-physics/rigid-body-triggers.js +229 -0
  1539. package/dist/gpu-physics/rigid-body-triggers.js.map +1 -0
  1540. package/dist/gpu-physics/scale-shape.cjs +65 -0
  1541. package/dist/gpu-physics/scale-shape.d.ts +4 -0
  1542. package/dist/gpu-physics/scale-shape.d.ts.map +1 -0
  1543. package/dist/gpu-physics/scale-shape.js +44 -0
  1544. package/dist/gpu-physics/scale-shape.js.map +1 -0
  1545. package/dist/gpu-physics/sphere-calibration.cjs +109 -0
  1546. package/dist/gpu-physics/sphere-calibration.d.ts +60 -0
  1547. package/dist/gpu-physics/sphere-calibration.d.ts.map +1 -0
  1548. package/dist/gpu-physics/sphere-calibration.js +98 -0
  1549. package/dist/gpu-physics/sphere-calibration.js.map +1 -0
  1550. package/dist/gpu-physics/sphere-events.cjs +57 -0
  1551. package/dist/gpu-physics/sphere-events.d.ts +29 -0
  1552. package/dist/gpu-physics/sphere-events.d.ts.map +1 -0
  1553. package/dist/gpu-physics/sphere-events.js +36 -0
  1554. package/dist/gpu-physics/sphere-events.js.map +1 -0
  1555. package/dist/gpu-physics/sphere-persistent-contacts.cjs +249 -0
  1556. package/dist/gpu-physics/sphere-persistent-contacts.d.ts +9 -0
  1557. package/dist/gpu-physics/sphere-persistent-contacts.d.ts.map +1 -0
  1558. package/dist/gpu-physics/sphere-persistent-contacts.js +211 -0
  1559. package/dist/gpu-physics/sphere-persistent-contacts.js.map +1 -0
  1560. package/dist/gpu-physics/sphere-shapes.cjs +69 -0
  1561. package/dist/gpu-physics/sphere-shapes.d.ts +18 -0
  1562. package/dist/gpu-physics/sphere-shapes.d.ts.map +1 -0
  1563. package/dist/gpu-physics/sphere-shapes.js +49 -0
  1564. package/dist/gpu-physics/sphere-shapes.js.map +1 -0
  1565. package/dist/gpu-physics/sphere-world-events.cjs +190 -0
  1566. package/dist/gpu-physics/sphere-world-events.d.ts +5 -0
  1567. package/dist/gpu-physics/sphere-world-events.d.ts.map +1 -0
  1568. package/dist/gpu-physics/sphere-world-events.js +163 -0
  1569. package/dist/gpu-physics/sphere-world-events.js.map +1 -0
  1570. package/dist/gpu-physics/sphere-world-shaders.cjs +418 -0
  1571. package/dist/gpu-physics/sphere-world-shaders.d.ts +10 -0
  1572. package/dist/gpu-physics/sphere-world-shaders.d.ts.map +1 -0
  1573. package/dist/gpu-physics/sphere-world-shaders.js +369 -0
  1574. package/dist/gpu-physics/sphere-world-shaders.js.map +1 -0
  1575. package/dist/gpu-pointcloud/gpu-pointcloud-octree.cjs +231 -0
  1576. package/dist/gpu-pointcloud/gpu-pointcloud-octree.d.ts +38 -0
  1577. package/dist/gpu-pointcloud/gpu-pointcloud-octree.d.ts.map +1 -0
  1578. package/dist/gpu-pointcloud/gpu-pointcloud-octree.js +220 -0
  1579. package/dist/gpu-pointcloud/gpu-pointcloud-octree.js.map +1 -0
  1580. package/dist/gpu-pointcloud/gpu-pointcloud-radius-filter.cjs +63 -0
  1581. package/dist/gpu-pointcloud/gpu-pointcloud-radius-filter.d.ts +20 -0
  1582. package/dist/gpu-pointcloud/gpu-pointcloud-radius-filter.d.ts.map +1 -0
  1583. package/dist/gpu-pointcloud/gpu-pointcloud-radius-filter.js +46 -0
  1584. package/dist/gpu-pointcloud/gpu-pointcloud-radius-filter.js.map +1 -0
  1585. package/dist/gpu-pointcloud/gpu-pointcloud-voxel-downsample.cjs +80 -0
  1586. package/dist/gpu-pointcloud/gpu-pointcloud-voxel-downsample.d.ts +22 -0
  1587. package/dist/gpu-pointcloud/gpu-pointcloud-voxel-downsample.d.ts.map +1 -0
  1588. package/dist/gpu-pointcloud/gpu-pointcloud-voxel-downsample.js +63 -0
  1589. package/dist/gpu-pointcloud/gpu-pointcloud-voxel-downsample.js.map +1 -0
  1590. package/dist/gpu-pointcloud/index.cjs +35 -0
  1591. package/dist/gpu-pointcloud/index.cjs.map +6 -0
  1592. package/dist/gpu-pointcloud/index.d.ts +7 -0
  1593. package/dist/gpu-pointcloud/index.d.ts.map +1 -0
  1594. package/dist/gpu-pointcloud/index.js +7 -0
  1595. package/dist/gpu-pointcloud/index.js.map +1 -0
  1596. package/dist/gpu-project/benchmarks.cjs +42 -0
  1597. package/dist/gpu-project/benchmarks.cjs.map +6 -0
  1598. package/dist/gpu-project/benchmarks.d.ts +13 -0
  1599. package/dist/gpu-project/benchmarks.d.ts.map +1 -0
  1600. package/dist/gpu-project/benchmarks.js +11 -0
  1601. package/dist/gpu-project/benchmarks.js.map +1 -0
  1602. package/dist/gpu-project/crs.cjs +195 -0
  1603. package/dist/gpu-project/crs.cjs.map +6 -0
  1604. package/dist/gpu-project/crs.d.ts +37 -0
  1605. package/dist/gpu-project/crs.d.ts.map +1 -0
  1606. package/dist/gpu-project/crs.js +177 -0
  1607. package/dist/gpu-project/crs.js.map +1 -0
  1608. package/dist/gpu-project/gpu-projection-benchmark.cjs +240 -0
  1609. package/dist/gpu-project/gpu-projection-benchmark.d.ts +49 -0
  1610. package/dist/gpu-project/gpu-projection-benchmark.d.ts.map +1 -0
  1611. package/dist/gpu-project/gpu-projection-benchmark.js +253 -0
  1612. package/dist/gpu-project/gpu-projection-benchmark.js.map +1 -0
  1613. package/dist/gpu-project/gpu-projection-program.cjs +163 -0
  1614. package/dist/gpu-project/gpu-projection-program.d.ts +29 -0
  1615. package/dist/gpu-project/gpu-projection-program.d.ts.map +1 -0
  1616. package/dist/gpu-project/gpu-projection-program.js +141 -0
  1617. package/dist/gpu-project/gpu-projection-program.js.map +1 -0
  1618. package/dist/gpu-project/gpu-projection-table.cjs +152 -0
  1619. package/dist/gpu-project/gpu-projection-table.d.ts +38 -0
  1620. package/dist/gpu-project/gpu-projection-table.d.ts.map +1 -0
  1621. package/dist/gpu-project/gpu-projection-table.js +158 -0
  1622. package/dist/gpu-project/gpu-projection-table.js.map +1 -0
  1623. package/dist/gpu-project/gpu-projection.cjs +257 -0
  1624. package/dist/gpu-project/gpu-projection.d.ts +87 -0
  1625. package/dist/gpu-project/gpu-projection.d.ts.map +1 -0
  1626. package/dist/gpu-project/gpu-projection.js +259 -0
  1627. package/dist/gpu-project/gpu-projection.js.map +1 -0
  1628. package/dist/gpu-project/index.cjs +81 -0
  1629. package/dist/gpu-project/index.cjs.map +6 -0
  1630. package/dist/gpu-project/index.d.ts +24 -0
  1631. package/dist/gpu-project/index.d.ts.map +1 -0
  1632. package/dist/gpu-project/index.js +16 -0
  1633. package/dist/gpu-project/index.js.map +1 -0
  1634. package/dist/gpu-project/projection-benchmark.cjs +146 -0
  1635. package/dist/gpu-project/projection-benchmark.d.ts +60 -0
  1636. package/dist/gpu-project/projection-benchmark.d.ts.map +1 -0
  1637. package/dist/gpu-project/projection-benchmark.js +130 -0
  1638. package/dist/gpu-project/projection-benchmark.js.map +1 -0
  1639. package/dist/gpu-project/projection-conic.cjs +204 -0
  1640. package/dist/gpu-project/projection-conic.d.ts +38 -0
  1641. package/dist/gpu-project/projection-conic.d.ts.map +1 -0
  1642. package/dist/gpu-project/projection-conic.js +237 -0
  1643. package/dist/gpu-project/projection-conic.js.map +1 -0
  1644. package/dist/gpu-project/projection-crs-benchmark.cjs +116 -0
  1645. package/dist/gpu-project/projection-crs-benchmark.d.ts +14 -0
  1646. package/dist/gpu-project/projection-crs-benchmark.d.ts.map +1 -0
  1647. package/dist/gpu-project/projection-crs-benchmark.js +115 -0
  1648. package/dist/gpu-project/projection-crs-benchmark.js.map +1 -0
  1649. package/dist/gpu-project/projection-crs-identifiers.cjs +34 -0
  1650. package/dist/gpu-project/projection-crs-identifiers.d.ts +12 -0
  1651. package/dist/gpu-project/projection-crs-identifiers.d.ts.map +1 -0
  1652. package/dist/gpu-project/projection-crs-identifiers.js +18 -0
  1653. package/dist/gpu-project/projection-crs-identifiers.js.map +1 -0
  1654. package/dist/gpu-project/projection-crs-input.cjs +161 -0
  1655. package/dist/gpu-project/projection-crs-input.d.ts +16 -0
  1656. package/dist/gpu-project/projection-crs-input.d.ts.map +1 -0
  1657. package/dist/gpu-project/projection-crs-input.js +154 -0
  1658. package/dist/gpu-project/projection-crs-input.js.map +1 -0
  1659. package/dist/gpu-project/projection-crs-lowering.cjs +391 -0
  1660. package/dist/gpu-project/projection-crs-lowering.d.ts +20 -0
  1661. package/dist/gpu-project/projection-crs-lowering.d.ts.map +1 -0
  1662. package/dist/gpu-project/projection-crs-lowering.js +459 -0
  1663. package/dist/gpu-project/projection-crs-lowering.js.map +1 -0
  1664. package/dist/gpu-project/projection-crs-provider.cjs +98 -0
  1665. package/dist/gpu-project/projection-crs-provider.d.ts +9 -0
  1666. package/dist/gpu-project/projection-crs-provider.d.ts.map +1 -0
  1667. package/dist/gpu-project/projection-crs-provider.js +92 -0
  1668. package/dist/gpu-project/projection-crs-provider.js.map +1 -0
  1669. package/dist/gpu-project/projection-engine.cjs +84 -0
  1670. package/dist/gpu-project/projection-engine.d.ts +31 -0
  1671. package/dist/gpu-project/projection-engine.d.ts.map +1 -0
  1672. package/dist/gpu-project/projection-engine.js +69 -0
  1673. package/dist/gpu-project/projection-engine.js.map +1 -0
  1674. package/dist/gpu-project/projection-execution.cjs +95 -0
  1675. package/dist/gpu-project/projection-execution.d.ts +37 -0
  1676. package/dist/gpu-project/projection-execution.d.ts.map +1 -0
  1677. package/dist/gpu-project/projection-execution.js +98 -0
  1678. package/dist/gpu-project/projection-execution.js.map +1 -0
  1679. package/dist/gpu-project/projection-longitude-wrap.cjs +82 -0
  1680. package/dist/gpu-project/projection-longitude-wrap.d.ts +20 -0
  1681. package/dist/gpu-project/projection-longitude-wrap.d.ts.map +1 -0
  1682. package/dist/gpu-project/projection-longitude-wrap.js +64 -0
  1683. package/dist/gpu-project/projection-longitude-wrap.js.map +1 -0
  1684. package/dist/gpu-project/projection-metadata.cjs +123 -0
  1685. package/dist/gpu-project/projection-metadata.d.ts +57 -0
  1686. package/dist/gpu-project/projection-metadata.d.ts.map +1 -0
  1687. package/dist/gpu-project/projection-metadata.js +130 -0
  1688. package/dist/gpu-project/projection-metadata.js.map +1 -0
  1689. package/dist/gpu-project/projection-partition.cjs +168 -0
  1690. package/dist/gpu-project/projection-partition.d.ts +50 -0
  1691. package/dist/gpu-project/projection-partition.d.ts.map +1 -0
  1692. package/dist/gpu-project/projection-partition.js +183 -0
  1693. package/dist/gpu-project/projection-partition.js.map +1 -0
  1694. package/dist/gpu-project/projection-pipeline.cjs +273 -0
  1695. package/dist/gpu-project/projection-pipeline.d.ts +11 -0
  1696. package/dist/gpu-project/projection-pipeline.d.ts.map +1 -0
  1697. package/dist/gpu-project/projection-pipeline.js +304 -0
  1698. package/dist/gpu-project/projection-pipeline.js.map +1 -0
  1699. package/dist/gpu-project/projection-plan.cjs +561 -0
  1700. package/dist/gpu-project/projection-plan.d.ts +40 -0
  1701. package/dist/gpu-project/projection-plan.d.ts.map +1 -0
  1702. package/dist/gpu-project/projection-plan.js +612 -0
  1703. package/dist/gpu-project/projection-plan.js.map +1 -0
  1704. package/dist/gpu-project/projection-planning.cjs +122 -0
  1705. package/dist/gpu-project/projection-planning.d.ts +64 -0
  1706. package/dist/gpu-project/projection-planning.d.ts.map +1 -0
  1707. package/dist/gpu-project/projection-planning.js +105 -0
  1708. package/dist/gpu-project/projection-planning.js.map +1 -0
  1709. package/dist/gpu-project/projection-program-benchmark.cjs +342 -0
  1710. package/dist/gpu-project/projection-program-benchmark.d.ts +117 -0
  1711. package/dist/gpu-project/projection-program-benchmark.d.ts.map +1 -0
  1712. package/dist/gpu-project/projection-program-benchmark.js +359 -0
  1713. package/dist/gpu-project/projection-program-benchmark.js.map +1 -0
  1714. package/dist/gpu-project/projection-program-cpu-benchmark.cjs +125 -0
  1715. package/dist/gpu-project/projection-program-cpu-benchmark.d.ts +53 -0
  1716. package/dist/gpu-project/projection-program-cpu-benchmark.d.ts.map +1 -0
  1717. package/dist/gpu-project/projection-program-cpu-benchmark.js +114 -0
  1718. package/dist/gpu-project/projection-program-cpu-benchmark.js.map +1 -0
  1719. package/dist/gpu-project/projection-program.cjs +335 -0
  1720. package/dist/gpu-project/projection-program.d.ts +81 -0
  1721. package/dist/gpu-project/projection-program.d.ts.map +1 -0
  1722. package/dist/gpu-project/projection-program.js +352 -0
  1723. package/dist/gpu-project/projection-program.js.map +1 -0
  1724. package/dist/gpu-project/projection-routing-benchmark.cjs +189 -0
  1725. package/dist/gpu-project/projection-routing-benchmark.d.ts +36 -0
  1726. package/dist/gpu-project/projection-routing-benchmark.d.ts.map +1 -0
  1727. package/dist/gpu-project/projection-routing-benchmark.js +183 -0
  1728. package/dist/gpu-project/projection-routing-benchmark.js.map +1 -0
  1729. package/dist/gpu-project/projection-routing.cjs +78 -0
  1730. package/dist/gpu-project/projection-routing.d.ts +20 -0
  1731. package/dist/gpu-project/projection-routing.d.ts.map +1 -0
  1732. package/dist/gpu-project/projection-routing.js +61 -0
  1733. package/dist/gpu-project/projection-routing.js.map +1 -0
  1734. package/dist/gpu-project/projection-shader.cjs +434 -0
  1735. package/dist/gpu-project/projection-shader.d.ts +27 -0
  1736. package/dist/gpu-project/projection-shader.d.ts.map +1 -0
  1737. package/dist/gpu-project/projection-shader.js +455 -0
  1738. package/dist/gpu-project/projection-shader.js.map +1 -0
  1739. package/dist/gpu-project/projection-table-benchmark.cjs +283 -0
  1740. package/dist/gpu-project/projection-table-benchmark.d.ts +72 -0
  1741. package/dist/gpu-project/projection-table-benchmark.d.ts.map +1 -0
  1742. package/dist/gpu-project/projection-table-benchmark.js +291 -0
  1743. package/dist/gpu-project/projection-table-benchmark.js.map +1 -0
  1744. package/dist/gpu-project/projection-table-transform.cjs +103 -0
  1745. package/dist/gpu-project/projection-table-transform.d.ts +50 -0
  1746. package/dist/gpu-project/projection-table-transform.d.ts.map +1 -0
  1747. package/dist/gpu-project/projection-table-transform.js +97 -0
  1748. package/dist/gpu-project/projection-table-transform.js.map +1 -0
  1749. package/dist/gpu-project/projection-transverse-mercator.cjs +222 -0
  1750. package/dist/gpu-project/projection-transverse-mercator.d.ts +23 -0
  1751. package/dist/gpu-project/projection-transverse-mercator.d.ts.map +1 -0
  1752. package/dist/gpu-project/projection-transverse-mercator.js +223 -0
  1753. package/dist/gpu-project/projection-transverse-mercator.js.map +1 -0
  1754. package/dist/gpu-project/projection-web-mercator.cjs +63 -0
  1755. package/dist/gpu-project/projection-web-mercator.d.ts +18 -0
  1756. package/dist/gpu-project/projection-web-mercator.d.ts.map +1 -0
  1757. package/dist/gpu-project/projection-web-mercator.js +52 -0
  1758. package/dist/gpu-project/projection-web-mercator.js.map +1 -0
  1759. package/dist/gpu-project/types.cjs +15 -0
  1760. package/dist/gpu-project/types.d.ts +93 -0
  1761. package/dist/gpu-project/types.d.ts.map +1 -0
  1762. package/dist/gpu-project/types.js +6 -0
  1763. package/dist/gpu-project/types.js.map +1 -0
  1764. package/dist/gpu-project/web-mercator.cjs +58 -0
  1765. package/dist/gpu-project/web-mercator.d.ts +13 -0
  1766. package/dist/gpu-project/web-mercator.d.ts.map +1 -0
  1767. package/dist/gpu-project/web-mercator.js +42 -0
  1768. package/dist/gpu-project/web-mercator.js.map +1 -0
  1769. package/dist/gpu-raster/gpu-raster-band-math.cjs +280 -0
  1770. package/dist/gpu-raster/gpu-raster-band-math.d.ts +44 -0
  1771. package/dist/gpu-raster/gpu-raster-band-math.d.ts.map +1 -0
  1772. package/dist/gpu-raster/gpu-raster-band-math.js +277 -0
  1773. package/dist/gpu-raster/gpu-raster-band-math.js.map +1 -0
  1774. package/dist/gpu-raster/gpu-raster-buffer-to-texture.cjs +212 -0
  1775. package/dist/gpu-raster/gpu-raster-buffer-to-texture.d.ts +35 -0
  1776. package/dist/gpu-raster/gpu-raster-buffer-to-texture.d.ts.map +1 -0
  1777. package/dist/gpu-raster/gpu-raster-buffer-to-texture.js +210 -0
  1778. package/dist/gpu-raster/gpu-raster-buffer-to-texture.js.map +1 -0
  1779. package/dist/gpu-raster/gpu-raster-connected-components.cjs +420 -0
  1780. package/dist/gpu-raster/gpu-raster-connected-components.d.ts +55 -0
  1781. package/dist/gpu-raster/gpu-raster-connected-components.d.ts.map +1 -0
  1782. package/dist/gpu-raster/gpu-raster-connected-components.js +412 -0
  1783. package/dist/gpu-raster/gpu-raster-connected-components.js.map +1 -0
  1784. package/dist/gpu-raster/gpu-raster-contours.cjs +604 -0
  1785. package/dist/gpu-raster/gpu-raster-contours.d.ts +95 -0
  1786. package/dist/gpu-raster/gpu-raster-contours.d.ts.map +1 -0
  1787. package/dist/gpu-raster/gpu-raster-contours.js +618 -0
  1788. package/dist/gpu-raster/gpu-raster-contours.js.map +1 -0
  1789. package/dist/gpu-raster/gpu-raster-contrast.cjs +411 -0
  1790. package/dist/gpu-raster/gpu-raster-contrast.d.ts +55 -0
  1791. package/dist/gpu-raster/gpu-raster-contrast.d.ts.map +1 -0
  1792. package/dist/gpu-raster/gpu-raster-contrast.js +418 -0
  1793. package/dist/gpu-raster/gpu-raster-contrast.js.map +1 -0
  1794. package/dist/gpu-raster/gpu-raster-convolution.cjs +182 -0
  1795. package/dist/gpu-raster/gpu-raster-convolution.d.ts +61 -0
  1796. package/dist/gpu-raster/gpu-raster-convolution.d.ts.map +1 -0
  1797. package/dist/gpu-raster/gpu-raster-convolution.js +175 -0
  1798. package/dist/gpu-raster/gpu-raster-convolution.js.map +1 -0
  1799. package/dist/gpu-raster/gpu-raster-cross-tile-components.cjs +1020 -0
  1800. package/dist/gpu-raster/gpu-raster-cross-tile-components.d.ts +85 -0
  1801. package/dist/gpu-raster/gpu-raster-cross-tile-components.d.ts.map +1 -0
  1802. package/dist/gpu-raster/gpu-raster-cross-tile-components.js +1002 -0
  1803. package/dist/gpu-raster/gpu-raster-cross-tile-components.js.map +1 -0
  1804. package/dist/gpu-raster/gpu-raster-dense-components.cjs +311 -0
  1805. package/dist/gpu-raster/gpu-raster-dense-components.d.ts +56 -0
  1806. package/dist/gpu-raster/gpu-raster-dense-components.d.ts.map +1 -0
  1807. package/dist/gpu-raster/gpu-raster-dense-components.js +297 -0
  1808. package/dist/gpu-raster/gpu-raster-dense-components.js.map +1 -0
  1809. package/dist/gpu-raster/gpu-raster-edges.cjs +297 -0
  1810. package/dist/gpu-raster/gpu-raster-edges.d.ts +88 -0
  1811. package/dist/gpu-raster/gpu-raster-edges.d.ts.map +1 -0
  1812. package/dist/gpu-raster/gpu-raster-edges.js +284 -0
  1813. package/dist/gpu-raster/gpu-raster-edges.js.map +1 -0
  1814. package/dist/gpu-raster/gpu-raster-global-statistics.cjs +510 -0
  1815. package/dist/gpu-raster/gpu-raster-global-statistics.d.ts +90 -0
  1816. package/dist/gpu-raster/gpu-raster-global-statistics.d.ts.map +1 -0
  1817. package/dist/gpu-raster/gpu-raster-global-statistics.js +484 -0
  1818. package/dist/gpu-raster/gpu-raster-global-statistics.js.map +1 -0
  1819. package/dist/gpu-raster/gpu-raster-histogram.cjs +212 -0
  1820. package/dist/gpu-raster/gpu-raster-histogram.d.ts +38 -0
  1821. package/dist/gpu-raster/gpu-raster-histogram.d.ts.map +1 -0
  1822. package/dist/gpu-raster/gpu-raster-histogram.js +212 -0
  1823. package/dist/gpu-raster/gpu-raster-histogram.js.map +1 -0
  1824. package/dist/gpu-raster/gpu-raster-morphology.cjs +487 -0
  1825. package/dist/gpu-raster/gpu-raster-morphology.d.ts +122 -0
  1826. package/dist/gpu-raster/gpu-raster-morphology.d.ts.map +1 -0
  1827. package/dist/gpu-raster/gpu-raster-morphology.js +478 -0
  1828. package/dist/gpu-raster/gpu-raster-morphology.js.map +1 -0
  1829. package/dist/gpu-raster/gpu-raster-ndvi.cjs +66 -0
  1830. package/dist/gpu-raster/gpu-raster-ndvi.d.ts +40 -0
  1831. package/dist/gpu-raster/gpu-raster-ndvi.d.ts.map +1 -0
  1832. package/dist/gpu-raster/gpu-raster-ndvi.js +50 -0
  1833. package/dist/gpu-raster/gpu-raster-ndvi.js.map +1 -0
  1834. package/dist/gpu-raster/gpu-raster-neighborhood.cjs +330 -0
  1835. package/dist/gpu-raster/gpu-raster-neighborhood.d.ts +62 -0
  1836. package/dist/gpu-raster/gpu-raster-neighborhood.d.ts.map +1 -0
  1837. package/dist/gpu-raster/gpu-raster-neighborhood.js +322 -0
  1838. package/dist/gpu-raster/gpu-raster-neighborhood.js.map +1 -0
  1839. package/dist/gpu-raster/gpu-raster-overview.cjs +488 -0
  1840. package/dist/gpu-raster/gpu-raster-overview.d.ts +115 -0
  1841. package/dist/gpu-raster/gpu-raster-overview.d.ts.map +1 -0
  1842. package/dist/gpu-raster/gpu-raster-overview.js +515 -0
  1843. package/dist/gpu-raster/gpu-raster-overview.js.map +1 -0
  1844. package/dist/gpu-raster/gpu-raster-region-measurements.cjs +464 -0
  1845. package/dist/gpu-raster/gpu-raster-region-measurements.d.ts +88 -0
  1846. package/dist/gpu-raster/gpu-raster-region-measurements.d.ts.map +1 -0
  1847. package/dist/gpu-raster/gpu-raster-region-measurements.js +450 -0
  1848. package/dist/gpu-raster/gpu-raster-region-measurements.js.map +1 -0
  1849. package/dist/gpu-raster/gpu-raster-statistics.cjs +262 -0
  1850. package/dist/gpu-raster/gpu-raster-statistics.d.ts +42 -0
  1851. package/dist/gpu-raster/gpu-raster-statistics.d.ts.map +1 -0
  1852. package/dist/gpu-raster/gpu-raster-statistics.js +246 -0
  1853. package/dist/gpu-raster/gpu-raster-statistics.js.map +1 -0
  1854. package/dist/gpu-raster/gpu-raster-texture-to-buffer.cjs +182 -0
  1855. package/dist/gpu-raster/gpu-raster-texture-to-buffer.d.ts +33 -0
  1856. package/dist/gpu-raster/gpu-raster-texture-to-buffer.d.ts.map +1 -0
  1857. package/dist/gpu-raster/gpu-raster-texture-to-buffer.js +176 -0
  1858. package/dist/gpu-raster/gpu-raster-texture-to-buffer.js.map +1 -0
  1859. package/dist/gpu-raster/gpu-raster-threshold.cjs +383 -0
  1860. package/dist/gpu-raster/gpu-raster-threshold.d.ts +72 -0
  1861. package/dist/gpu-raster/gpu-raster-threshold.d.ts.map +1 -0
  1862. package/dist/gpu-raster/gpu-raster-threshold.js +402 -0
  1863. package/dist/gpu-raster/gpu-raster-threshold.js.map +1 -0
  1864. package/dist/gpu-raster/gpu-raster-tile-cache.cjs +622 -0
  1865. package/dist/gpu-raster/gpu-raster-tile-cache.d.ts +151 -0
  1866. package/dist/gpu-raster/gpu-raster-tile-cache.d.ts.map +1 -0
  1867. package/dist/gpu-raster/gpu-raster-tile-cache.js +635 -0
  1868. package/dist/gpu-raster/gpu-raster-tile-cache.js.map +1 -0
  1869. package/dist/gpu-raster/gpu-raster-tile-halo.cjs +440 -0
  1870. package/dist/gpu-raster/gpu-raster-tile-halo.d.ts +121 -0
  1871. package/dist/gpu-raster/gpu-raster-tile-halo.d.ts.map +1 -0
  1872. package/dist/gpu-raster/gpu-raster-tile-halo.js +454 -0
  1873. package/dist/gpu-raster/gpu-raster-tile-halo.js.map +1 -0
  1874. package/dist/gpu-raster/gpu-raster-tile-source.cjs +387 -0
  1875. package/dist/gpu-raster/gpu-raster-tile-source.d.ts +99 -0
  1876. package/dist/gpu-raster/gpu-raster-tile-source.d.ts.map +1 -0
  1877. package/dist/gpu-raster/gpu-raster-tile-source.js +414 -0
  1878. package/dist/gpu-raster/gpu-raster-tile-source.js.map +1 -0
  1879. package/dist/gpu-raster/gpu-raster.cjs +97 -0
  1880. package/dist/gpu-raster/gpu-raster.d.ts +34 -0
  1881. package/dist/gpu-raster/gpu-raster.d.ts.map +1 -0
  1882. package/dist/gpu-raster/gpu-raster.js +86 -0
  1883. package/dist/gpu-raster/gpu-raster.js.map +1 -0
  1884. package/dist/gpu-raster/index.cjs +144 -0
  1885. package/dist/gpu-raster/index.cjs.map +6 -0
  1886. package/dist/gpu-raster/index.d.ts +50 -0
  1887. package/dist/gpu-raster/index.d.ts.map +1 -0
  1888. package/dist/gpu-raster/index.js +28 -0
  1889. package/dist/gpu-raster/index.js.map +1 -0
  1890. package/dist/gpu-raster/raster-device-limits.cjs +112 -0
  1891. package/dist/gpu-raster/raster-device-limits.d.ts +82 -0
  1892. package/dist/gpu-raster/raster-device-limits.d.ts.map +1 -0
  1893. package/dist/gpu-raster/raster-device-limits.js +106 -0
  1894. package/dist/gpu-raster/raster-device-limits.js.map +1 -0
  1895. package/dist/gpu-raster/raster-utils.cjs +253 -0
  1896. package/dist/gpu-raster/raster-utils.d.ts +37 -0
  1897. package/dist/gpu-raster/raster-utils.d.ts.map +1 -0
  1898. package/dist/gpu-raster/raster-utils.js +227 -0
  1899. package/dist/gpu-raster/raster-utils.js.map +1 -0
  1900. package/dist/gpu-raster/types.cjs +15 -0
  1901. package/dist/gpu-raster/types.d.ts +71 -0
  1902. package/dist/gpu-raster/types.d.ts.map +1 -0
  1903. package/dist/gpu-raster/types.js +5 -0
  1904. package/dist/gpu-raster/types.js.map +1 -0
  1905. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.cjs +178 -0
  1906. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts +25 -0
  1907. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.d.ts.map +1 -0
  1908. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js +182 -0
  1909. package/dist/gpu-simple-graph/gpu-simple-graph-lowering.js.map +1 -0
  1910. package/dist/gpu-simple-graph/gpu-simple-graph-operation.cjs +58 -0
  1911. package/dist/gpu-simple-graph/gpu-simple-graph-operation.d.ts +18 -0
  1912. package/dist/gpu-simple-graph/gpu-simple-graph-operation.d.ts.map +1 -0
  1913. package/dist/gpu-simple-graph/gpu-simple-graph-operation.js +36 -0
  1914. package/dist/gpu-simple-graph/gpu-simple-graph-operation.js.map +1 -0
  1915. package/dist/gpu-simple-graph/gpu-simple-graph-transfer.cjs +133 -0
  1916. package/dist/gpu-simple-graph/gpu-simple-graph-transfer.d.ts +40 -0
  1917. package/dist/gpu-simple-graph/gpu-simple-graph-transfer.d.ts.map +1 -0
  1918. package/dist/gpu-simple-graph/gpu-simple-graph-transfer.js +113 -0
  1919. package/dist/gpu-simple-graph/gpu-simple-graph-transfer.js.map +1 -0
  1920. package/dist/gpu-simple-graph/gpu-simple-graph-value.cjs +142 -0
  1921. package/dist/gpu-simple-graph/gpu-simple-graph-value.d.ts +87 -0
  1922. package/dist/gpu-simple-graph/gpu-simple-graph-value.d.ts.map +1 -0
  1923. package/dist/gpu-simple-graph/gpu-simple-graph-value.js +118 -0
  1924. package/dist/gpu-simple-graph/gpu-simple-graph-value.js.map +1 -0
  1925. package/dist/gpu-simple-graph/gpu-simple-graph.cjs +268 -0
  1926. package/dist/gpu-simple-graph/gpu-simple-graph.d.ts +80 -0
  1927. package/dist/gpu-simple-graph/gpu-simple-graph.d.ts.map +1 -0
  1928. package/dist/gpu-simple-graph/gpu-simple-graph.js +281 -0
  1929. package/dist/gpu-simple-graph/gpu-simple-graph.js.map +1 -0
  1930. package/dist/gpu-simple-graph/index.cjs +44 -0
  1931. package/dist/gpu-simple-graph/index.cjs.map +6 -0
  1932. package/dist/gpu-simple-graph/index.d.ts +9 -0
  1933. package/dist/gpu-simple-graph/index.d.ts.map +1 -0
  1934. package/dist/gpu-simple-graph/index.js +8 -0
  1935. package/dist/gpu-simple-graph/index.js.map +1 -0
  1936. package/dist/gpu-simulation/index.cjs +46 -0
  1937. package/dist/gpu-simulation/index.cjs.map +6 -0
  1938. package/dist/gpu-simulation/index.d.ts +5 -0
  1939. package/dist/gpu-simulation/index.d.ts.map +1 -0
  1940. package/dist/gpu-simulation/index.js +6 -0
  1941. package/dist/gpu-simulation/index.js.map +1 -0
  1942. package/dist/gpu-simulation/spectral-ocean-initial-spectrum.cjs +71 -0
  1943. package/dist/gpu-simulation/spectral-ocean-initial-spectrum.d.ts +12 -0
  1944. package/dist/gpu-simulation/spectral-ocean-initial-spectrum.d.ts.map +1 -0
  1945. package/dist/gpu-simulation/spectral-ocean-initial-spectrum.js +55 -0
  1946. package/dist/gpu-simulation/spectral-ocean-initial-spectrum.js.map +1 -0
  1947. package/dist/gpu-simulation/spectral-ocean-simulation-shaders.cjs +208 -0
  1948. package/dist/gpu-simulation/spectral-ocean-simulation-shaders.d.ts +9 -0
  1949. package/dist/gpu-simulation/spectral-ocean-simulation-shaders.d.ts.map +1 -0
  1950. package/dist/gpu-simulation/spectral-ocean-simulation-shaders.js +178 -0
  1951. package/dist/gpu-simulation/spectral-ocean-simulation-shaders.js.map +1 -0
  1952. package/dist/gpu-simulation/spectral-ocean-simulation.cjs +501 -0
  1953. package/dist/gpu-simulation/spectral-ocean-simulation.d.ts +120 -0
  1954. package/dist/gpu-simulation/spectral-ocean-simulation.d.ts.map +1 -0
  1955. package/dist/gpu-simulation/spectral-ocean-simulation.js +490 -0
  1956. package/dist/gpu-simulation/spectral-ocean-simulation.js.map +1 -0
  1957. package/dist/gpu-simulation/volumetric-fire-simulation-shaders.cjs +997 -0
  1958. package/dist/gpu-simulation/volumetric-fire-simulation-shaders.d.ts +46 -0
  1959. package/dist/gpu-simulation/volumetric-fire-simulation-shaders.d.ts.map +1 -0
  1960. package/dist/gpu-simulation/volumetric-fire-simulation-shaders.js +941 -0
  1961. package/dist/gpu-simulation/volumetric-fire-simulation-shaders.js.map +1 -0
  1962. package/dist/gpu-simulation/volumetric-fire-simulation.cjs +513 -0
  1963. package/dist/gpu-simulation/volumetric-fire-simulation.d.ts +121 -0
  1964. package/dist/gpu-simulation/volumetric-fire-simulation.d.ts.map +1 -0
  1965. package/dist/gpu-simulation/volumetric-fire-simulation.js +510 -0
  1966. package/dist/gpu-simulation/volumetric-fire-simulation.js.map +1 -0
  1967. package/dist/gpu-sql/index.cjs +29 -0
  1968. package/dist/gpu-sql/index.cjs.map +6 -0
  1969. package/dist/gpu-sql/index.d.ts +3 -0
  1970. package/dist/gpu-sql/index.d.ts.map +1 -0
  1971. package/dist/gpu-sql/index.js +5 -0
  1972. package/dist/gpu-sql/index.js.map +1 -0
  1973. package/dist/gpu-sql/lu-sql.cjs +499 -0
  1974. package/dist/gpu-sql/lu-sql.d.ts +36 -0
  1975. package/dist/gpu-sql/lu-sql.d.ts.map +1 -0
  1976. package/dist/gpu-sql/lu-sql.js +497 -0
  1977. package/dist/gpu-sql/lu-sql.js.map +1 -0
  1978. package/dist/gpu-tables/engine/gpu-input-schema.cjs +58 -0
  1979. package/dist/gpu-tables/engine/gpu-input-schema.d.ts +52 -0
  1980. package/dist/gpu-tables/engine/gpu-input-schema.d.ts.map +1 -0
  1981. package/dist/gpu-tables/engine/gpu-input-schema.js +43 -0
  1982. package/dist/gpu-tables/engine/gpu-input-schema.js.map +1 -0
  1983. package/dist/gpu-tables/engine/gpu-renderable.cjs +43 -0
  1984. package/dist/gpu-tables/engine/gpu-renderable.d.ts +16 -0
  1985. package/dist/gpu-tables/engine/gpu-renderable.d.ts.map +1 -0
  1986. package/dist/gpu-tables/engine/gpu-renderable.js +22 -0
  1987. package/dist/gpu-tables/engine/gpu-renderable.js.map +1 -0
  1988. package/dist/gpu-tables/engine/gpu-scene-adapters.cjs +220 -0
  1989. package/dist/gpu-tables/engine/gpu-scene-adapters.d.ts +80 -0
  1990. package/dist/gpu-tables/engine/gpu-scene-adapters.d.ts.map +1 -0
  1991. package/dist/gpu-tables/engine/gpu-scene-adapters.js +214 -0
  1992. package/dist/gpu-tables/engine/gpu-scene-adapters.js.map +1 -0
  1993. package/dist/gpu-tables/engine/gpu-table-computation.cjs +168 -0
  1994. package/dist/gpu-tables/engine/gpu-table-computation.d.ts +45 -0
  1995. package/dist/gpu-tables/engine/gpu-table-computation.d.ts.map +1 -0
  1996. package/dist/gpu-tables/engine/gpu-table-computation.js +158 -0
  1997. package/dist/gpu-tables/engine/gpu-table-computation.js.map +1 -0
  1998. package/dist/gpu-tables/engine/gpu-table-shader-bindings.cjs +374 -0
  1999. package/dist/gpu-tables/engine/gpu-table-shader-bindings.d.ts +47 -0
  2000. package/dist/gpu-tables/engine/gpu-table-shader-bindings.d.ts.map +1 -0
  2001. package/dist/gpu-tables/engine/gpu-table-shader-bindings.js +382 -0
  2002. package/dist/gpu-tables/engine/gpu-table-shader-bindings.js.map +1 -0
  2003. package/dist/gpu-tables/index.cjs +64 -0
  2004. package/dist/gpu-tables/index.cjs.map +6 -0
  2005. package/dist/gpu-tables/index.d.ts +11 -0
  2006. package/dist/gpu-tables/index.d.ts.map +1 -0
  2007. package/dist/gpu-tables/index.js +14 -0
  2008. package/dist/gpu-tables/index.js.map +1 -0
  2009. package/dist/gpu-tables/table/gpu-record-batch.cjs +140 -0
  2010. package/dist/gpu-tables/table/gpu-record-batch.d.ts +57 -0
  2011. package/dist/gpu-tables/table/gpu-record-batch.d.ts.map +1 -0
  2012. package/dist/gpu-tables/table/gpu-record-batch.js +122 -0
  2013. package/dist/gpu-tables/table/gpu-record-batch.js.map +1 -0
  2014. package/dist/gpu-tables/table/gpu-schema.cjs +32 -0
  2015. package/dist/gpu-tables/table/gpu-schema.d.ts +46 -0
  2016. package/dist/gpu-tables/table/gpu-schema.d.ts.map +1 -0
  2017. package/dist/gpu-tables/table/gpu-schema.js +10 -0
  2018. package/dist/gpu-tables/table/gpu-schema.js.map +1 -0
  2019. package/dist/gpu-tables/table/gpu-table.cjs +689 -0
  2020. package/dist/gpu-tables/table/gpu-table.d.ts +108 -0
  2021. package/dist/gpu-tables/table/gpu-table.d.ts.map +1 -0
  2022. package/dist/gpu-tables/table/gpu-table.js +712 -0
  2023. package/dist/gpu-tables/table/gpu-table.js.map +1 -0
  2024. package/dist/gpu-tables/utils/generated-buffer-batches.cjs +92 -0
  2025. package/dist/gpu-tables/utils/generated-buffer-batches.d.ts +39 -0
  2026. package/dist/gpu-tables/utils/generated-buffer-batches.d.ts.map +1 -0
  2027. package/dist/gpu-tables/utils/generated-buffer-batches.js +77 -0
  2028. package/dist/gpu-tables/utils/generated-buffer-batches.js.map +1 -0
  2029. package/dist/gpu-tables/utils/gpu-table-buffer-planner.cjs +322 -0
  2030. package/dist/gpu-tables/utils/gpu-table-buffer-planner.d.ts +208 -0
  2031. package/dist/gpu-tables/utils/gpu-table-buffer-planner.d.ts.map +1 -0
  2032. package/dist/gpu-tables/utils/gpu-table-buffer-planner.js +441 -0
  2033. package/dist/gpu-tables/utils/gpu-table-buffer-planner.js.map +1 -0
  2034. package/dist/gpu-timeseries/gpu-time-series-envelope.cjs +163 -0
  2035. package/dist/gpu-timeseries/gpu-time-series-envelope.d.ts +30 -0
  2036. package/dist/gpu-timeseries/gpu-time-series-envelope.d.ts.map +1 -0
  2037. package/dist/gpu-timeseries/gpu-time-series-envelope.js +152 -0
  2038. package/dist/gpu-timeseries/gpu-time-series-envelope.js.map +1 -0
  2039. package/dist/gpu-timeseries/gpu-time-series.cjs +60 -0
  2040. package/dist/gpu-timeseries/gpu-time-series.d.ts +23 -0
  2041. package/dist/gpu-timeseries/gpu-time-series.d.ts.map +1 -0
  2042. package/dist/gpu-timeseries/gpu-time-series.js +40 -0
  2043. package/dist/gpu-timeseries/gpu-time-series.js.map +1 -0
  2044. package/dist/gpu-timeseries/index.cjs +30 -0
  2045. package/dist/gpu-timeseries/index.cjs.map +6 -0
  2046. package/dist/gpu-timeseries/index.d.ts +5 -0
  2047. package/dist/gpu-timeseries/index.d.ts.map +1 -0
  2048. package/dist/gpu-timeseries/index.js +6 -0
  2049. package/dist/gpu-timeseries/index.js.map +1 -0
  2050. package/dist/gpu-trace/gpu-trace-aggregation.cjs +104 -0
  2051. package/dist/gpu-trace/gpu-trace-aggregation.d.ts +64 -0
  2052. package/dist/gpu-trace/gpu-trace-aggregation.d.ts.map +1 -0
  2053. package/dist/gpu-trace/gpu-trace-aggregation.js +91 -0
  2054. package/dist/gpu-trace/gpu-trace-aggregation.js.map +1 -0
  2055. package/dist/gpu-trace/gpu-trace-analytics-output.cjs +133 -0
  2056. package/dist/gpu-trace/gpu-trace-analytics-output.d.ts +51 -0
  2057. package/dist/gpu-trace/gpu-trace-analytics-output.d.ts.map +1 -0
  2058. package/dist/gpu-trace/gpu-trace-analytics-output.js +120 -0
  2059. package/dist/gpu-trace/gpu-trace-analytics-output.js.map +1 -0
  2060. package/dist/gpu-trace/gpu-trace-anomaly-scoring.cjs +474 -0
  2061. package/dist/gpu-trace/gpu-trace-anomaly-scoring.d.ts +68 -0
  2062. package/dist/gpu-trace/gpu-trace-anomaly-scoring.d.ts.map +1 -0
  2063. package/dist/gpu-trace/gpu-trace-anomaly-scoring.js +453 -0
  2064. package/dist/gpu-trace/gpu-trace-anomaly-scoring.js.map +1 -0
  2065. package/dist/gpu-trace/gpu-trace-comparison.cjs +474 -0
  2066. package/dist/gpu-trace/gpu-trace-comparison.d.ts +69 -0
  2067. package/dist/gpu-trace/gpu-trace-comparison.d.ts.map +1 -0
  2068. package/dist/gpu-trace/gpu-trace-comparison.js +440 -0
  2069. package/dist/gpu-trace/gpu-trace-comparison.js.map +1 -0
  2070. package/dist/gpu-trace/gpu-trace-critical-path.cjs +626 -0
  2071. package/dist/gpu-trace/gpu-trace-critical-path.d.ts +61 -0
  2072. package/dist/gpu-trace/gpu-trace-critical-path.d.ts.map +1 -0
  2073. package/dist/gpu-trace/gpu-trace-critical-path.js +596 -0
  2074. package/dist/gpu-trace/gpu-trace-critical-path.js.map +1 -0
  2075. package/dist/gpu-trace/gpu-trace-interaction.cjs +434 -0
  2076. package/dist/gpu-trace/gpu-trace-interaction.d.ts +194 -0
  2077. package/dist/gpu-trace/gpu-trace-interaction.d.ts.map +1 -0
  2078. package/dist/gpu-trace/gpu-trace-interaction.js +454 -0
  2079. package/dist/gpu-trace/gpu-trace-interaction.js.map +1 -0
  2080. package/dist/gpu-trace/gpu-trace-lane-index-builder.cjs +524 -0
  2081. package/dist/gpu-trace/gpu-trace-lane-index-builder.d.ts +66 -0
  2082. package/dist/gpu-trace/gpu-trace-lane-index-builder.d.ts.map +1 -0
  2083. package/dist/gpu-trace/gpu-trace-lane-index-builder.js +496 -0
  2084. package/dist/gpu-trace/gpu-trace-lane-index-builder.js.map +1 -0
  2085. package/dist/gpu-trace/gpu-trace-mipmap-boundaries.cjs +325 -0
  2086. package/dist/gpu-trace/gpu-trace-mipmap-boundaries.d.ts +61 -0
  2087. package/dist/gpu-trace/gpu-trace-mipmap-boundaries.d.ts.map +1 -0
  2088. package/dist/gpu-trace/gpu-trace-mipmap-boundaries.js +312 -0
  2089. package/dist/gpu-trace/gpu-trace-mipmap-boundaries.js.map +1 -0
  2090. package/dist/gpu-trace/gpu-trace-picking.cjs +63 -0
  2091. package/dist/gpu-trace/gpu-trace-picking.d.ts +30 -0
  2092. package/dist/gpu-trace/gpu-trace-picking.d.ts.map +1 -0
  2093. package/dist/gpu-trace/gpu-trace-picking.js +68 -0
  2094. package/dist/gpu-trace/gpu-trace-picking.js.map +1 -0
  2095. package/dist/gpu-trace/gpu-trace-pixel-mipmap.cjs +787 -0
  2096. package/dist/gpu-trace/gpu-trace-pixel-mipmap.d.ts +67 -0
  2097. package/dist/gpu-trace/gpu-trace-pixel-mipmap.d.ts.map +1 -0
  2098. package/dist/gpu-trace/gpu-trace-pixel-mipmap.js +802 -0
  2099. package/dist/gpu-trace/gpu-trace-pixel-mipmap.js.map +1 -0
  2100. package/dist/gpu-trace/gpu-trace-range-maximum-index.cjs +342 -0
  2101. package/dist/gpu-trace/gpu-trace-range-maximum-index.d.ts +50 -0
  2102. package/dist/gpu-trace/gpu-trace-range-maximum-index.d.ts.map +1 -0
  2103. package/dist/gpu-trace/gpu-trace-range-maximum-index.js +334 -0
  2104. package/dist/gpu-trace/gpu-trace-range-maximum-index.js.map +1 -0
  2105. package/dist/gpu-trace/gpu-trace-scene.cjs +320 -0
  2106. package/dist/gpu-trace/gpu-trace-scene.d.ts +233 -0
  2107. package/dist/gpu-trace/gpu-trace-scene.d.ts.map +1 -0
  2108. package/dist/gpu-trace/gpu-trace-scene.js +366 -0
  2109. package/dist/gpu-trace/gpu-trace-scene.js.map +1 -0
  2110. package/dist/gpu-trace/gpu-trace-temporal-index-builder.cjs +287 -0
  2111. package/dist/gpu-trace/gpu-trace-temporal-index-builder.d.ts +59 -0
  2112. package/dist/gpu-trace/gpu-trace-temporal-index-builder.d.ts.map +1 -0
  2113. package/dist/gpu-trace/gpu-trace-temporal-index-builder.js +281 -0
  2114. package/dist/gpu-trace/gpu-trace-temporal-index-builder.js.map +1 -0
  2115. package/dist/gpu-trace/gpu-trace-temporal-index.cjs +692 -0
  2116. package/dist/gpu-trace/gpu-trace-temporal-index.d.ts +97 -0
  2117. package/dist/gpu-trace/gpu-trace-temporal-index.d.ts.map +1 -0
  2118. package/dist/gpu-trace/gpu-trace-temporal-index.js +687 -0
  2119. package/dist/gpu-trace/gpu-trace-temporal-index.js.map +1 -0
  2120. package/dist/gpu-trace/gpu-trace-time-buckets.cjs +435 -0
  2121. package/dist/gpu-trace/gpu-trace-time-buckets.d.ts +67 -0
  2122. package/dist/gpu-trace/gpu-trace-time-buckets.d.ts.map +1 -0
  2123. package/dist/gpu-trace/gpu-trace-time-buckets.js +466 -0
  2124. package/dist/gpu-trace/gpu-trace-time-buckets.js.map +1 -0
  2125. package/dist/gpu-trace/index.cjs +111 -0
  2126. package/dist/gpu-trace/index.cjs.map +6 -0
  2127. package/dist/gpu-trace/index.d.ts +30 -0
  2128. package/dist/gpu-trace/index.d.ts.map +1 -0
  2129. package/dist/gpu-trace/index.js +19 -0
  2130. package/dist/gpu-trace/index.js.map +1 -0
  2131. package/dist/gpu-vector-search/embedding-matrix.cjs +192 -0
  2132. package/dist/gpu-vector-search/embedding-matrix.d.ts +72 -0
  2133. package/dist/gpu-vector-search/embedding-matrix.d.ts.map +1 -0
  2134. package/dist/gpu-vector-search/embedding-matrix.js +213 -0
  2135. package/dist/gpu-vector-search/embedding-matrix.js.map +1 -0
  2136. package/dist/gpu-vector-search/gpu-clustering-utils.cjs +218 -0
  2137. package/dist/gpu-vector-search/gpu-clustering-utils.d.ts +42 -0
  2138. package/dist/gpu-vector-search/gpu-clustering-utils.d.ts.map +1 -0
  2139. package/dist/gpu-vector-search/gpu-clustering-utils.js +211 -0
  2140. package/dist/gpu-vector-search/gpu-clustering-utils.js.map +1 -0
  2141. package/dist/gpu-vector-search/gpu-ivf-flat-index.cjs +1095 -0
  2142. package/dist/gpu-vector-search/gpu-ivf-flat-index.d.ts +95 -0
  2143. package/dist/gpu-vector-search/gpu-ivf-flat-index.d.ts.map +1 -0
  2144. package/dist/gpu-vector-search/gpu-ivf-flat-index.js +1159 -0
  2145. package/dist/gpu-vector-search/gpu-ivf-flat-index.js.map +1 -0
  2146. package/dist/gpu-vector-search/gpu-k-means.cjs +599 -0
  2147. package/dist/gpu-vector-search/gpu-k-means.d.ts +55 -0
  2148. package/dist/gpu-vector-search/gpu-k-means.d.ts.map +1 -0
  2149. package/dist/gpu-vector-search/gpu-k-means.js +601 -0
  2150. package/dist/gpu-vector-search/gpu-k-means.js.map +1 -0
  2151. package/dist/gpu-vector-search/gpu-similarity-search.cjs +781 -0
  2152. package/dist/gpu-vector-search/gpu-similarity-search.d.ts +54 -0
  2153. package/dist/gpu-vector-search/gpu-similarity-search.d.ts.map +1 -0
  2154. package/dist/gpu-vector-search/gpu-similarity-search.js +785 -0
  2155. package/dist/gpu-vector-search/gpu-similarity-search.js.map +1 -0
  2156. package/dist/gpu-vector-search/index.cjs +38 -0
  2157. package/dist/gpu-vector-search/index.cjs.map +6 -0
  2158. package/dist/gpu-vector-search/index.d.ts +8 -0
  2159. package/dist/gpu-vector-search/index.d.ts.map +1 -0
  2160. package/dist/gpu-vector-search/index.js +9 -0
  2161. package/dist/gpu-vector-search/index.js.map +1 -0
  2162. package/dist/gpu-vector-search/types.cjs +15 -0
  2163. package/dist/gpu-vector-search/types.d.ts +63 -0
  2164. package/dist/gpu-vector-search/types.d.ts.map +1 -0
  2165. package/dist/gpu-vector-search/types.js +6 -0
  2166. package/dist/gpu-vector-search/types.js.map +1 -0
  2167. package/dist/index.cjs +75 -0
  2168. package/dist/index.cjs.map +6 -0
  2169. package/dist/index.d.ts +5 -0
  2170. package/dist/index.d.ts.map +1 -0
  2171. package/dist/index.js +8 -0
  2172. package/dist/index.js.map +1 -0
  2173. package/dist/lucim/gpu-volume-connected-components.cjs +443 -0
  2174. package/dist/lucim/gpu-volume-connected-components.d.ts +55 -0
  2175. package/dist/lucim/gpu-volume-connected-components.d.ts.map +1 -0
  2176. package/dist/lucim/gpu-volume-connected-components.js +429 -0
  2177. package/dist/lucim/gpu-volume-connected-components.js.map +1 -0
  2178. package/dist/lucim/gpu-volume-morphology.cjs +503 -0
  2179. package/dist/lucim/gpu-volume-morphology.d.ts +121 -0
  2180. package/dist/lucim/gpu-volume-morphology.d.ts.map +1 -0
  2181. package/dist/lucim/gpu-volume-morphology.js +492 -0
  2182. package/dist/lucim/gpu-volume-morphology.js.map +1 -0
  2183. package/dist/lucim/gpu-volume-region-measurements.cjs +307 -0
  2184. package/dist/lucim/gpu-volume-region-measurements.d.ts +49 -0
  2185. package/dist/lucim/gpu-volume-region-measurements.d.ts.map +1 -0
  2186. package/dist/lucim/gpu-volume-region-measurements.js +286 -0
  2187. package/dist/lucim/gpu-volume-region-measurements.js.map +1 -0
  2188. package/dist/lucim/gpu-volume-threshold.cjs +218 -0
  2189. package/dist/lucim/gpu-volume-threshold.d.ts +45 -0
  2190. package/dist/lucim/gpu-volume-threshold.d.ts.map +1 -0
  2191. package/dist/lucim/gpu-volume-threshold.js +221 -0
  2192. package/dist/lucim/gpu-volume-threshold.js.map +1 -0
  2193. package/dist/lucim/gpu-volume.cjs +95 -0
  2194. package/dist/lucim/gpu-volume.d.ts +34 -0
  2195. package/dist/lucim/gpu-volume.d.ts.map +1 -0
  2196. package/dist/lucim/gpu-volume.js +96 -0
  2197. package/dist/lucim/gpu-volume.js.map +1 -0
  2198. package/dist/lucim/index.cjs +47 -0
  2199. package/dist/lucim/index.cjs.map +6 -0
  2200. package/dist/lucim/index.d.ts +12 -0
  2201. package/dist/lucim/index.d.ts.map +1 -0
  2202. package/dist/lucim/index.js +9 -0
  2203. package/dist/lucim/index.js.map +1 -0
  2204. package/dist/lucim/types.cjs +15 -0
  2205. package/dist/lucim/types.d.ts +35 -0
  2206. package/dist/lucim/types.d.ts.map +1 -0
  2207. package/dist/lucim/types.js +5 -0
  2208. package/dist/lucim/types.js.map +1 -0
  2209. package/dist/lucim/volume-utils.cjs +193 -0
  2210. package/dist/lucim/volume-utils.d.ts +30 -0
  2211. package/dist/lucim/volume-utils.d.ts.map +1 -0
  2212. package/dist/lucim/volume-utils.js +167 -0
  2213. package/dist/lucim/volume-utils.js.map +1 -0
  2214. package/dist/utils/assemble-compute-kernel.cjs +46 -0
  2215. package/dist/utils/assemble-compute-kernel.d.ts +11 -0
  2216. package/dist/utils/assemble-compute-kernel.d.ts.map +1 -0
  2217. package/dist/utils/assemble-compute-kernel.js +24 -0
  2218. package/dist/utils/assemble-compute-kernel.js.map +1 -0
  2219. package/dist/utils/gpu-spatial-operation.cjs +87 -0
  2220. package/dist/utils/gpu-spatial-operation.d.ts +13 -0
  2221. package/dist/utils/gpu-spatial-operation.d.ts.map +1 -0
  2222. package/dist/utils/gpu-spatial-operation.js +81 -0
  2223. package/dist/utils/gpu-spatial-operation.js.map +1 -0
  2224. package/package.json +222 -4
  2225. package/src/arrow/dggs/dggs-gpu-polygons.ts +820 -0
  2226. package/src/arrow/geoarrow/arrow-geoarrow-adapter.ts +519 -0
  2227. package/src/arrow/geoarrow/arrow-geoarrow-conversion.ts +415 -0
  2228. package/src/arrow/geoarrow/arrow-polygon-tessellation.ts +369 -0
  2229. package/src/arrow/gpu/arrow-gpu-analytics-adapters.ts +474 -0
  2230. package/src/arrow/gpu/arrow-gpu-analytics-readback.ts +294 -0
  2231. package/src/arrow/gpu/arrow-gpu-table-adapters.ts +378 -0
  2232. package/src/arrow/gpu/arrow-gpu-table-conversion.ts +324 -0
  2233. package/src/arrow/gpu/arrow-input-schema.ts +98 -0
  2234. package/src/arrow/index.ts +79 -0
  2235. package/src/arrow/internal.ts +23 -0
  2236. package/src/experimental/index.ts +6 -0
  2237. package/src/experimental/models/index.ts +31 -0
  2238. package/src/experimental/models/path/gpu/gpu-path-expansion.ts +321 -0
  2239. package/src/experimental/models/path/gpu/path-storage-gpu-inputs.ts +246 -0
  2240. package/src/experimental/models/polygon/polygon-gpu-inputs.ts +102 -0
  2241. package/src/experimental/simulation/PARCELS-LICENSE.txt +19 -0
  2242. package/src/experimental/simulation/README.md +99 -0
  2243. package/src/experimental/simulation/SCIENTIFIC-FLOW.md +120 -0
  2244. package/src/experimental/simulation/flow-field-atlas.ts +85 -0
  2245. package/src/experimental/simulation/flow-particle-field.ts +45 -0
  2246. package/src/experimental/simulation/flow-particle-shaders.ts +160 -0
  2247. package/src/experimental/simulation/flow-particle-simulation.ts +259 -0
  2248. package/src/experimental/simulation/index.ts +50 -0
  2249. package/src/experimental/simulation/mls-mpm-fluid-simulation-shaders.ts +365 -0
  2250. package/src/experimental/simulation/mls-mpm-fluid-simulation.ts +1077 -0
  2251. package/src/experimental/simulation/scientific-flow-compute.ts +289 -0
  2252. package/src/experimental/simulation/scientific-flow-field.ts +121 -0
  2253. package/src/experimental/simulation/scientific-flow-graph.ts +202 -0
  2254. package/src/experimental/simulation/scientific-flow-rk45-shaders.ts +137 -0
  2255. package/src/experimental/simulation/scientific-flow-sampling-shaders.ts +44 -0
  2256. package/src/experimental/simulation/scientific-flow-tracer.ts +482 -0
  2257. package/src/geospatial/geospatial-utils.ts +590 -0
  2258. package/src/geospatial/gpu-haversine-distance.ts +203 -0
  2259. package/src/geospatial/gpu-pairwise-point-distance.ts +140 -0
  2260. package/src/geospatial/gpu-pairwise-point-in-polygon.ts +499 -0
  2261. package/src/geospatial/gpu-pairwise-point-linestring-nearest.ts +788 -0
  2262. package/src/geospatial/gpu-pairwise-point-segment-distance.ts +254 -0
  2263. package/src/geospatial/gpu-point-spatial-query.ts +1046 -0
  2264. package/src/geospatial/gpu-sinusoidal-projection.ts +141 -0
  2265. package/src/geospatial/gpu-spatial-query-types.ts +28 -0
  2266. package/src/geospatial/index.ts +52 -0
  2267. package/src/geospatial/types.ts +29 -0
  2268. package/src/gpu-a5/gpu-a5-cell-projection.ts +18 -0
  2269. package/src/gpu-a5/index.ts +10 -0
  2270. package/src/gpu-core/dispatch-command-buffer.ts +155 -0
  2271. package/src/gpu-core/draw-command-buffer.ts +281 -0
  2272. package/src/gpu-core/gpu-adaptive-spmv.ts +359 -0
  2273. package/src/gpu-core/gpu-ancestor-projection.ts +374 -0
  2274. package/src/gpu-core/gpu-batch-hash-index.ts +229 -0
  2275. package/src/gpu-core/gpu-batch-hash-join.ts +290 -0
  2276. package/src/gpu-core/gpu-batch-sort.ts +161 -0
  2277. package/src/gpu-core/gpu-bvh-query.ts +580 -0
  2278. package/src/gpu-core/gpu-bvh.ts +666 -0
  2279. package/src/gpu-core/gpu-byte-range-gather.ts +323 -0
  2280. package/src/gpu-core/gpu-chunk-utils.ts +202 -0
  2281. package/src/gpu-core/gpu-chunked-indexed-scatter.ts +685 -0
  2282. package/src/gpu-core/gpu-command-dispatch-metadata.ts +45 -0
  2283. package/src/gpu-core/gpu-command-graph-autotuner.ts +417 -0
  2284. package/src/gpu-core/gpu-command-graph-budget-controller.ts +229 -0
  2285. package/src/gpu-core/gpu-command-graph-compiler.ts +992 -0
  2286. package/src/gpu-core/gpu-command-graph-inspector.ts +596 -0
  2287. package/src/gpu-core/gpu-command-graph-lowering-scope.ts +91 -0
  2288. package/src/gpu-core/gpu-command-graph-types.ts +873 -0
  2289. package/src/gpu-core/gpu-command-graph.ts +2526 -0
  2290. package/src/gpu-core/gpu-command-node.ts +78 -0
  2291. package/src/gpu-core/gpu-compaction.ts +431 -0
  2292. package/src/gpu-core/gpu-conjugate-gradient-program.ts +201 -0
  2293. package/src/gpu-core/gpu-control-flow-operation.ts +75 -0
  2294. package/src/gpu-core/gpu-convolution-benchmark.ts +448 -0
  2295. package/src/gpu-core/gpu-convolution.ts +1141 -0
  2296. package/src/gpu-core/gpu-coo-to-csr.ts +136 -0
  2297. package/src/gpu-core/gpu-dense-utils.ts +204 -0
  2298. package/src/gpu-core/gpu-dispatch-utils.ts +65 -0
  2299. package/src/gpu-core/gpu-dot-product-scalar.ts +89 -0
  2300. package/src/gpu-core/gpu-elementwise-scalar.ts +176 -0
  2301. package/src/gpu-core/gpu-elementwise.ts +309 -0
  2302. package/src/gpu-core/gpu-fft-utils.ts +69 -0
  2303. package/src/gpu-core/gpu-fft1d-benchmark.ts +269 -0
  2304. package/src/gpu-core/gpu-fft1d.ts +673 -0
  2305. package/src/gpu-core/gpu-fft2d-shaders.ts +87 -0
  2306. package/src/gpu-core/gpu-fft2d.ts +507 -0
  2307. package/src/gpu-core/gpu-finite-difference-2d.ts +282 -0
  2308. package/src/gpu-core/gpu-finite-difference-3d.ts +284 -0
  2309. package/src/gpu-core/gpu-finite-difference-utils.ts +341 -0
  2310. package/src/gpu-core/gpu-flag-offsets.ts +195 -0
  2311. package/src/gpu-core/gpu-galloping-search-chunks.ts +200 -0
  2312. package/src/gpu-core/gpu-galloping-search.ts +507 -0
  2313. package/src/gpu-core/gpu-gather.ts +307 -0
  2314. package/src/gpu-core/gpu-graph-compiler.ts +548 -0
  2315. package/src/gpu-core/gpu-graph-inspector.ts +43 -0
  2316. package/src/gpu-core/gpu-graph-lowering.ts +68 -0
  2317. package/src/gpu-core/gpu-graph-traversal.ts +912 -0
  2318. package/src/gpu-core/gpu-graph-validation.ts +66 -0
  2319. package/src/gpu-core/gpu-graph-value.ts +111 -0
  2320. package/src/gpu-core/gpu-graph.ts +115 -0
  2321. package/src/gpu-core/gpu-grid-aggregation.ts +574 -0
  2322. package/src/gpu-core/gpu-grid-binning.ts +365 -0
  2323. package/src/gpu-core/gpu-grid-index-internals.ts +305 -0
  2324. package/src/gpu-core/gpu-grid-index-query.ts +534 -0
  2325. package/src/gpu-core/gpu-grid-index.ts +208 -0
  2326. package/src/gpu-core/gpu-group-aggregation.ts +794 -0
  2327. package/src/gpu-core/gpu-hash-index.ts +828 -0
  2328. package/src/gpu-core/gpu-hash-join.ts +579 -0
  2329. package/src/gpu-core/gpu-hierarchy-layout.ts +330 -0
  2330. package/src/gpu-core/gpu-histogram.ts +855 -0
  2331. package/src/gpu-core/gpu-incremental-execution.ts +218 -0
  2332. package/src/gpu-core/gpu-index-picking-target.ts +452 -0
  2333. package/src/gpu-core/gpu-indexed-range-compaction.ts +1163 -0
  2334. package/src/gpu-core/gpu-jacobi-preconditioner.ts +120 -0
  2335. package/src/gpu-core/gpu-lz-byte-batch-decompressor.ts +308 -0
  2336. package/src/gpu-core/gpu-lz-byte-decompressor.ts +386 -0
  2337. package/src/gpu-core/gpu-mask.ts +266 -0
  2338. package/src/gpu-core/gpu-matmul.ts +178 -0
  2339. package/src/gpu-core/gpu-matvec.ts +134 -0
  2340. package/src/gpu-core/gpu-operation.ts +120 -0
  2341. package/src/gpu-core/gpu-pcg.ts +330 -0
  2342. package/src/gpu-core/gpu-planning-heap.ts +47 -0
  2343. package/src/gpu-core/gpu-point-spatial-filter.ts +420 -0
  2344. package/src/gpu-core/gpu-predicate-conjunction.ts +71 -0
  2345. package/src/gpu-core/gpu-readback-ring.ts +261 -0
  2346. package/src/gpu-core/gpu-reduction-strategy.ts +84 -0
  2347. package/src/gpu-core/gpu-reduction-substrate.ts +227 -0
  2348. package/src/gpu-core/gpu-reduction.ts +758 -0
  2349. package/src/gpu-core/gpu-resource-preview.ts +80 -0
  2350. package/src/gpu-core/gpu-run-length-encode.ts +211 -0
  2351. package/src/gpu-core/gpu-scalar-dispatch-gate.ts +125 -0
  2352. package/src/gpu-core/gpu-scalar-literal.ts +76 -0
  2353. package/src/gpu-core/gpu-scalar-operation.ts +169 -0
  2354. package/src/gpu-core/gpu-scalar.ts +108 -0
  2355. package/src/gpu-core/gpu-scan.ts +955 -0
  2356. package/src/gpu-core/gpu-scatter.ts +193 -0
  2357. package/src/gpu-core/gpu-scene-draw-generation.ts +640 -0
  2358. package/src/gpu-core/gpu-scene-resource-groups.ts +445 -0
  2359. package/src/gpu-core/gpu-scene.ts +710 -0
  2360. package/src/gpu-core/gpu-segment-offsets.ts +352 -0
  2361. package/src/gpu-core/gpu-segmented-bvh.ts +544 -0
  2362. package/src/gpu-core/gpu-segmented-layout.ts +468 -0
  2363. package/src/gpu-core/gpu-segmented-reduction.ts +187 -0
  2364. package/src/gpu-core/gpu-segmented-scan.ts +123 -0
  2365. package/src/gpu-core/gpu-segmented-sort.ts +508 -0
  2366. package/src/gpu-core/gpu-semantic-scalar-operation.ts +100 -0
  2367. package/src/gpu-core/gpu-semantic-spmv.ts +69 -0
  2368. package/src/gpu-core/gpu-semantic-state-operation.ts +20 -0
  2369. package/src/gpu-core/gpu-semantic-vector-operation.ts +48 -0
  2370. package/src/gpu-core/gpu-sort-chunks.ts +124 -0
  2371. package/src/gpu-core/gpu-sort.ts +1002 -0
  2372. package/src/gpu-core/gpu-spatial-query-benchmark.ts +310 -0
  2373. package/src/gpu-core/gpu-spatial-utils.ts +83 -0
  2374. package/src/gpu-core/gpu-spmv-strategy.ts +95 -0
  2375. package/src/gpu-core/gpu-strategy.ts +75 -0
  2376. package/src/gpu-core/gpu-subgroup-utils.ts +82 -0
  2377. package/src/gpu-core/gpu-text-selection.ts +336 -0
  2378. package/src/gpu-core/gpu-texture-history.ts +100 -0
  2379. package/src/gpu-core/gpu-transient-lifetime-planner.ts +95 -0
  2380. package/src/gpu-core/gpu-transpose-benchmark.ts +343 -0
  2381. package/src/gpu-core/gpu-transpose.ts +426 -0
  2382. package/src/gpu-core/gpu-uint32-gather.ts +35 -0
  2383. package/src/gpu-core/gpu-uint64-scan.ts +239 -0
  2384. package/src/gpu-core/gpu-value-arena-inspector.ts +53 -0
  2385. package/src/gpu-core/gpu-value-arena.ts +114 -0
  2386. package/src/gpu-core/gpu-virtual-geometry-selection.ts +677 -0
  2387. package/src/gpu-core/gpu-visibility-workflow.ts +354 -0
  2388. package/src/gpu-core/gpu-workgroup-reduction-benchmark.ts +363 -0
  2389. package/src/gpu-core/gpu-workgroup-scan-benchmark.ts +407 -0
  2390. package/src/gpu-core/graph-data-view-utils.ts +218 -0
  2391. package/src/gpu-core/graph-vector-view-utils.ts +69 -0
  2392. package/src/gpu-core/index.ts +655 -0
  2393. package/src/gpu-core/utils/bound-kernel.ts +23 -0
  2394. package/src/gpu-crossfilter/README.md +146 -0
  2395. package/src/gpu-crossfilter/gpu-crossfilter.ts +568 -0
  2396. package/src/gpu-crossfilter/gpu-selection.ts +470 -0
  2397. package/src/gpu-crossfilter/index.ts +25 -0
  2398. package/src/gpu-dataframe/gpu-analytics-compiler-utils.ts +321 -0
  2399. package/src/gpu-dataframe/gpu-data-frame-query.ts +461 -0
  2400. package/src/gpu-dataframe/gpu-data-frame.ts +663 -0
  2401. package/src/gpu-dataframe/gpu-expression-shader.ts +530 -0
  2402. package/src/gpu-dataframe/gpu-expression.ts +309 -0
  2403. package/src/gpu-dataframe/gpu-global-aggregation-compiler.ts +436 -0
  2404. package/src/gpu-dataframe/gpu-global-aggregation-query.ts +182 -0
  2405. package/src/gpu-dataframe/gpu-global-sort-compiler.ts +564 -0
  2406. package/src/gpu-dataframe/gpu-group-aggregation-compiler.ts +527 -0
  2407. package/src/gpu-dataframe/gpu-group-by-query.ts +267 -0
  2408. package/src/gpu-dataframe/gpu-histogram-compiler.ts +194 -0
  2409. package/src/gpu-dataframe/gpu-histogram-query.ts +151 -0
  2410. package/src/gpu-dataframe/gpu-join-compiler.ts +964 -0
  2411. package/src/gpu-dataframe/gpu-join-query.ts +312 -0
  2412. package/src/gpu-dataframe/gpu-query-compiler.ts +826 -0
  2413. package/src/gpu-dataframe/gpu-sort-compiler.ts +471 -0
  2414. package/src/gpu-dataframe/gpu-sort-query.ts +183 -0
  2415. package/src/gpu-dataframe/index.ts +65 -0
  2416. package/src/gpu-dggs/benchmarks.ts +10 -0
  2417. package/src/gpu-dggs/gpu-dggs-cell-projection-benchmark.ts +378 -0
  2418. package/src/gpu-dggs/gpu-dggs-cell-projection.ts +233 -0
  2419. package/src/gpu-dggs/index.ts +12 -0
  2420. package/src/gpu-effects/fft-bloom-shaders.ts +290 -0
  2421. package/src/gpu-effects/fft-bloom.ts +905 -0
  2422. package/src/gpu-effects/index.ts +21 -0
  2423. package/src/gpu-geometry/gpu-mesh-normals.ts +80 -0
  2424. package/src/gpu-geometry/gpu-mesh-smoothing.ts +58 -0
  2425. package/src/gpu-geometry/index.ts +8 -0
  2426. package/src/gpu-graph/index.ts +53 -0
  2427. package/src/gpu-graph-algorithms/README.md +158 -0
  2428. package/src/gpu-graph-algorithms/benchmarks.ts +16 -0
  2429. package/src/gpu-graph-algorithms/gpu-graph-benchmark-data.ts +944 -0
  2430. package/src/gpu-graph-algorithms/gpu-graph-benchmark.ts +850 -0
  2431. package/src/gpu-graph-algorithms/gpu-graph-breadth-first-search-internals.ts +418 -0
  2432. package/src/gpu-graph-algorithms/gpu-graph-breadth-first-search.ts +256 -0
  2433. package/src/gpu-graph-algorithms/gpu-graph-connected-components-internals.ts +370 -0
  2434. package/src/gpu-graph-algorithms/gpu-graph-connected-components.ts +165 -0
  2435. package/src/gpu-graph-algorithms/gpu-graph-core-number-internals.ts +543 -0
  2436. package/src/gpu-graph-algorithms/gpu-graph-core-number.ts +180 -0
  2437. package/src/gpu-graph-algorithms/gpu-graph-degree-internals.ts +120 -0
  2438. package/src/gpu-graph-algorithms/gpu-graph-degree.ts +147 -0
  2439. package/src/gpu-graph-algorithms/gpu-graph-force-layout-internals.ts +516 -0
  2440. package/src/gpu-graph-algorithms/gpu-graph-force-layout.ts +267 -0
  2441. package/src/gpu-graph-algorithms/gpu-graph-label-propagation-internals.ts +467 -0
  2442. package/src/gpu-graph-algorithms/gpu-graph-label-propagation.ts +174 -0
  2443. package/src/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient-internals.ts +319 -0
  2444. package/src/gpu-graph-algorithms/gpu-graph-local-clustering-coefficient.ts +180 -0
  2445. package/src/gpu-graph-algorithms/gpu-graph-modularity-internals.ts +534 -0
  2446. package/src/gpu-graph-algorithms/gpu-graph-modularity-optimization-internals.ts +1054 -0
  2447. package/src/gpu-graph-algorithms/gpu-graph-modularity-optimization.ts +238 -0
  2448. package/src/gpu-graph-algorithms/gpu-graph-modularity.ts +181 -0
  2449. package/src/gpu-graph-algorithms/gpu-graph-page-rank-internals.ts +619 -0
  2450. package/src/gpu-graph-algorithms/gpu-graph-page-rank.ts +178 -0
  2451. package/src/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.ts +723 -0
  2452. package/src/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.ts +234 -0
  2453. package/src/gpu-graph-algorithms/gpu-graph-spatial-force-layout-internals.ts +738 -0
  2454. package/src/gpu-graph-algorithms/gpu-graph-spatial-force-layout.ts +246 -0
  2455. package/src/gpu-graph-algorithms/gpu-graph-topology-internals.ts +727 -0
  2456. package/src/gpu-graph-algorithms/gpu-graph-topology.ts +229 -0
  2457. package/src/gpu-graph-algorithms/gpu-graph.ts +229 -0
  2458. package/src/gpu-graph-algorithms/index.ts +50 -0
  2459. package/src/gpu-h3/gpu-h3-cell-projection.ts +24 -0
  2460. package/src/gpu-h3/index.ts +10 -0
  2461. package/src/gpu-parse/README.md +38 -0
  2462. package/src/gpu-parse/compression/gpu-lz4-raw-decompressor.ts +66 -0
  2463. package/src/gpu-parse/compression/gpu-snappy-decompressor.ts +48 -0
  2464. package/src/gpu-parse/compression/lz4-raw-plan.ts +99 -0
  2465. package/src/gpu-parse/compression/snappy-plan.ts +162 -0
  2466. package/src/gpu-parse/index.ts +196 -0
  2467. package/src/gpu-parse/parquet/gpu-parquet-bit-packed-decoder.ts +182 -0
  2468. package/src/gpu-parse/parquet/gpu-parquet-byte-array-dictionary-decoder.ts +87 -0
  2469. package/src/gpu-parse/parquet/gpu-parquet-byte-stream-split-batch-decoder.ts +252 -0
  2470. package/src/gpu-parse/parquet/gpu-parquet-byte-stream-split-decoder.ts +243 -0
  2471. package/src/gpu-parse/parquet/gpu-parquet-delta-binary-packed-decoder.ts +55 -0
  2472. package/src/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-decoder.ts +61 -0
  2473. package/src/gpu-parse/parquet/gpu-parquet-delta-binary-packed-int64-unpacker.ts +262 -0
  2474. package/src/gpu-parse/parquet/gpu-parquet-delta-binary-packed-unpacker.ts +281 -0
  2475. package/src/gpu-parse/parquet/gpu-parquet-delta-byte-array-decoder.ts +443 -0
  2476. package/src/gpu-parse/parquet/gpu-parquet-delta-length-byte-array-decoder.ts +50 -0
  2477. package/src/gpu-parse/parquet/gpu-parquet-dictionary-decoder.ts +256 -0
  2478. package/src/gpu-parse/parquet/gpu-parquet-encoded-page-batch-stream.ts +406 -0
  2479. package/src/gpu-parse/parquet/gpu-parquet-encoded-page-batch.ts +709 -0
  2480. package/src/gpu-parse/parquet/gpu-parquet-level-layout.ts +268 -0
  2481. package/src/gpu-parse/parquet/gpu-parquet-nested-column-layout.ts +441 -0
  2482. package/src/gpu-parse/parquet/gpu-parquet-plain-boolean-decoder.ts +170 -0
  2483. package/src/gpu-parse/parquet/gpu-parquet-plain-byte-array-decoder.ts +42 -0
  2484. package/src/gpu-parse/parquet/gpu-parquet-rle-bit-packed-decoder.ts +279 -0
  2485. package/src/gpu-parse/parquet/gpu-parquet-rle-dictionary-decoder.ts +60 -0
  2486. package/src/gpu-parse/parquet/parquet-column-decode-plan.ts +101 -0
  2487. package/src/gpu-parse/parquet/parquet-delta-binary-packed-int64.ts +149 -0
  2488. package/src/gpu-parse/parquet/parquet-delta-binary-packed.ts +132 -0
  2489. package/src/gpu-parse/parquet/parquet-delta-byte-array.ts +59 -0
  2490. package/src/gpu-parse/parquet/parquet-delta-length-byte-array.ts +27 -0
  2491. package/src/gpu-parse/parquet/parquet-encoded-page-batch.ts +1320 -0
  2492. package/src/gpu-parse/parquet/parquet-plain-byte-array.ts +64 -0
  2493. package/src/gpu-parse/parquet/parquet-rle-bit-packed.ts +93 -0
  2494. package/src/gpu-parse/parquet/parquet-rle-framing.ts +112 -0
  2495. package/src/gpu-physics/README.md +42 -0
  2496. package/src/gpu-physics/gpu-physics-batch.ts +351 -0
  2497. package/src/gpu-physics/gpu-physics-ensemble.ts +208 -0
  2498. package/src/gpu-physics/gpu-rigid-body-world.ts +3040 -0
  2499. package/src/gpu-physics/gpu-sphere-world.ts +1255 -0
  2500. package/src/gpu-physics/index.ts +118 -0
  2501. package/src/gpu-physics/joint-types.ts +22 -0
  2502. package/src/gpu-physics/rigid-body-bounds-shaders.ts +50 -0
  2503. package/src/gpu-physics/rigid-body-broad-phase.ts +428 -0
  2504. package/src/gpu-physics/rigid-body-cache-shaders.ts +108 -0
  2505. package/src/gpu-physics/rigid-body-capacity.ts +125 -0
  2506. package/src/gpu-physics/rigid-body-contact-features.ts +72 -0
  2507. package/src/gpu-physics/rigid-body-continuous.ts +410 -0
  2508. package/src/gpu-physics/rigid-body-convex-continuous-shader.ts +535 -0
  2509. package/src/gpu-physics/rigid-body-convex-shaders.ts +218 -0
  2510. package/src/gpu-physics/rigid-body-diagnostics.ts +155 -0
  2511. package/src/gpu-physics/rigid-body-ensemble-layout.ts +38 -0
  2512. package/src/gpu-physics/rigid-body-ensemble-reset.ts +141 -0
  2513. package/src/gpu-physics/rigid-body-ensemble-shaders.ts +157 -0
  2514. package/src/gpu-physics/rigid-body-ensemble-transaction.ts +220 -0
  2515. package/src/gpu-physics/rigid-body-events.ts +94 -0
  2516. package/src/gpu-physics/rigid-body-general-joints.ts +132 -0
  2517. package/src/gpu-physics/rigid-body-geometry.ts +79 -0
  2518. package/src/gpu-physics/rigid-body-joints.ts +285 -0
  2519. package/src/gpu-physics/rigid-body-journal.ts +131 -0
  2520. package/src/gpu-physics/rigid-body-mesh-query-shaders.ts +98 -0
  2521. package/src/gpu-physics/rigid-body-mesh.ts +296 -0
  2522. package/src/gpu-physics/rigid-body-orientation.ts +39 -0
  2523. package/src/gpu-physics/rigid-body-origin.ts +74 -0
  2524. package/src/gpu-physics/rigid-body-parallel-shaders.ts +225 -0
  2525. package/src/gpu-physics/rigid-body-properties.ts +163 -0
  2526. package/src/gpu-physics/rigid-body-publication.ts +134 -0
  2527. package/src/gpu-physics/rigid-body-queries.ts +90 -0
  2528. package/src/gpu-physics/rigid-body-query-geometry.ts +261 -0
  2529. package/src/gpu-physics/rigid-body-recovery.ts +257 -0
  2530. package/src/gpu-physics/rigid-body-shaders.ts +481 -0
  2531. package/src/gpu-physics/rigid-body-shape-properties.ts +105 -0
  2532. package/src/gpu-physics/rigid-body-support-shaders.ts +42 -0
  2533. package/src/gpu-physics/rigid-body-transaction.ts +197 -0
  2534. package/src/gpu-physics/rigid-body-triggers.ts +333 -0
  2535. package/src/gpu-physics/scale-shape.ts +50 -0
  2536. package/src/gpu-physics/sphere-calibration.ts +188 -0
  2537. package/src/gpu-physics/sphere-events.ts +64 -0
  2538. package/src/gpu-physics/sphere-persistent-contacts.ts +221 -0
  2539. package/src/gpu-physics/sphere-shapes.ts +65 -0
  2540. package/src/gpu-physics/sphere-world-events.ts +168 -0
  2541. package/src/gpu-physics/sphere-world-shaders.ts +385 -0
  2542. package/src/gpu-pointcloud/gpu-pointcloud-octree.ts +356 -0
  2543. package/src/gpu-pointcloud/gpu-pointcloud-radius-filter.ts +62 -0
  2544. package/src/gpu-pointcloud/gpu-pointcloud-voxel-downsample.ts +83 -0
  2545. package/src/gpu-pointcloud/index.ts +10 -0
  2546. package/src/gpu-project/README.md +479 -0
  2547. package/src/gpu-project/benchmarks.ts +44 -0
  2548. package/src/gpu-project/crs.ts +282 -0
  2549. package/src/gpu-project/gpu-projection-benchmark.ts +404 -0
  2550. package/src/gpu-project/gpu-projection-program.ts +193 -0
  2551. package/src/gpu-project/gpu-projection-table.ts +197 -0
  2552. package/src/gpu-project/gpu-projection.ts +380 -0
  2553. package/src/gpu-project/index.ts +86 -0
  2554. package/src/gpu-project/projection-benchmark.ts +243 -0
  2555. package/src/gpu-project/projection-conic.ts +308 -0
  2556. package/src/gpu-project/projection-crs-benchmark.ts +127 -0
  2557. package/src/gpu-project/projection-crs-identifiers.ts +23 -0
  2558. package/src/gpu-project/projection-crs-input.ts +221 -0
  2559. package/src/gpu-project/projection-crs-lowering.ts +606 -0
  2560. package/src/gpu-project/projection-crs-provider.ts +125 -0
  2561. package/src/gpu-project/projection-engine.ts +113 -0
  2562. package/src/gpu-project/projection-execution.ts +143 -0
  2563. package/src/gpu-project/projection-longitude-wrap.ts +88 -0
  2564. package/src/gpu-project/projection-metadata.ts +190 -0
  2565. package/src/gpu-project/projection-partition.ts +259 -0
  2566. package/src/gpu-project/projection-pipeline.ts +429 -0
  2567. package/src/gpu-project/projection-plan.ts +985 -0
  2568. package/src/gpu-project/projection-planning.ts +221 -0
  2569. package/src/gpu-project/projection-program-benchmark.ts +582 -0
  2570. package/src/gpu-project/projection-program-cpu-benchmark.ts +179 -0
  2571. package/src/gpu-project/projection-program.ts +473 -0
  2572. package/src/gpu-project/projection-routing-benchmark.ts +249 -0
  2573. package/src/gpu-project/projection-routing.ts +82 -0
  2574. package/src/gpu-project/projection-shader.ts +499 -0
  2575. package/src/gpu-project/projection-table-benchmark.ts +407 -0
  2576. package/src/gpu-project/projection-table-transform.ts +134 -0
  2577. package/src/gpu-project/projection-transverse-mercator.ts +267 -0
  2578. package/src/gpu-project/projection-web-mercator.ts +74 -0
  2579. package/src/gpu-project/types.ts +107 -0
  2580. package/src/gpu-project/web-mercator.ts +49 -0
  2581. package/src/gpu-raster/gpu-raster-band-math.ts +342 -0
  2582. package/src/gpu-raster/gpu-raster-buffer-to-texture.ts +284 -0
  2583. package/src/gpu-raster/gpu-raster-connected-components.ts +552 -0
  2584. package/src/gpu-raster/gpu-raster-contours.ts +799 -0
  2585. package/src/gpu-raster/gpu-raster-contrast.ts +519 -0
  2586. package/src/gpu-raster/gpu-raster-convolution.ts +236 -0
  2587. package/src/gpu-raster/gpu-raster-cross-tile-components.ts +1443 -0
  2588. package/src/gpu-raster/gpu-raster-dense-components.ts +405 -0
  2589. package/src/gpu-raster/gpu-raster-edges.ts +386 -0
  2590. package/src/gpu-raster/gpu-raster-global-statistics.ts +651 -0
  2591. package/src/gpu-raster/gpu-raster-histogram.ts +292 -0
  2592. package/src/gpu-raster/gpu-raster-morphology.ts +650 -0
  2593. package/src/gpu-raster/gpu-raster-ndvi.ts +73 -0
  2594. package/src/gpu-raster/gpu-raster-neighborhood.ts +395 -0
  2595. package/src/gpu-raster/gpu-raster-overview.ts +674 -0
  2596. package/src/gpu-raster/gpu-raster-region-measurements.ts +653 -0
  2597. package/src/gpu-raster/gpu-raster-statistics.ts +321 -0
  2598. package/src/gpu-raster/gpu-raster-texture-to-buffer.ts +232 -0
  2599. package/src/gpu-raster/gpu-raster-threshold.ts +500 -0
  2600. package/src/gpu-raster/gpu-raster-tile-cache.ts +780 -0
  2601. package/src/gpu-raster/gpu-raster-tile-halo.ts +644 -0
  2602. package/src/gpu-raster/gpu-raster-tile-source.ts +612 -0
  2603. package/src/gpu-raster/gpu-raster.ts +115 -0
  2604. package/src/gpu-raster/index.ts +222 -0
  2605. package/src/gpu-raster/raster-device-limits.ts +215 -0
  2606. package/src/gpu-raster/raster-utils.ts +302 -0
  2607. package/src/gpu-raster/types.ts +91 -0
  2608. package/src/gpu-simple-graph/README.md +116 -0
  2609. package/src/gpu-simple-graph/gpu-simple-graph-lowering.ts +226 -0
  2610. package/src/gpu-simple-graph/gpu-simple-graph-operation.ts +47 -0
  2611. package/src/gpu-simple-graph/gpu-simple-graph-transfer.ts +134 -0
  2612. package/src/gpu-simple-graph/gpu-simple-graph-value.ts +186 -0
  2613. package/src/gpu-simple-graph/gpu-simple-graph.ts +364 -0
  2614. package/src/gpu-simple-graph/index.ts +26 -0
  2615. package/src/gpu-simulation/index.ts +31 -0
  2616. package/src/gpu-simulation/spectral-ocean-initial-spectrum.ts +79 -0
  2617. package/src/gpu-simulation/spectral-ocean-simulation-shaders.ts +182 -0
  2618. package/src/gpu-simulation/spectral-ocean-simulation.ts +722 -0
  2619. package/src/gpu-simulation/volumetric-fire-simulation-shaders.ts +961 -0
  2620. package/src/gpu-simulation/volumetric-fire-simulation.ts +816 -0
  2621. package/src/gpu-sql/index.ts +6 -0
  2622. package/src/gpu-sql/lu-sql.ts +599 -0
  2623. package/src/gpu-tables/engine/gpu-input-schema.ts +107 -0
  2624. package/src/gpu-tables/engine/gpu-renderable.ts +33 -0
  2625. package/src/gpu-tables/engine/gpu-scene-adapters.ts +322 -0
  2626. package/src/gpu-tables/engine/gpu-table-computation.ts +236 -0
  2627. package/src/gpu-tables/engine/gpu-table-shader-bindings.ts +562 -0
  2628. package/src/gpu-tables/index.ts +83 -0
  2629. package/src/gpu-tables/table/gpu-record-batch.ts +206 -0
  2630. package/src/gpu-tables/table/gpu-schema.ts +61 -0
  2631. package/src/gpu-tables/table/gpu-table.ts +1013 -0
  2632. package/src/gpu-tables/utils/generated-buffer-batches.ts +165 -0
  2633. package/src/gpu-tables/utils/gpu-table-buffer-planner.ts +754 -0
  2634. package/src/gpu-timeseries/gpu-time-series-envelope.ts +194 -0
  2635. package/src/gpu-timeseries/gpu-time-series.ts +62 -0
  2636. package/src/gpu-timeseries/index.ts +8 -0
  2637. package/src/gpu-trace/README.md +187 -0
  2638. package/src/gpu-trace/gpu-trace-aggregation.ts +163 -0
  2639. package/src/gpu-trace/gpu-trace-analytics-output.ts +176 -0
  2640. package/src/gpu-trace/gpu-trace-anomaly-scoring.ts +634 -0
  2641. package/src/gpu-trace/gpu-trace-comparison.ts +566 -0
  2642. package/src/gpu-trace/gpu-trace-critical-path.ts +780 -0
  2643. package/src/gpu-trace/gpu-trace-interaction.ts +597 -0
  2644. package/src/gpu-trace/gpu-trace-lane-index-builder.ts +672 -0
  2645. package/src/gpu-trace/gpu-trace-mipmap-boundaries.ts +419 -0
  2646. package/src/gpu-trace/gpu-trace-picking.ts +70 -0
  2647. package/src/gpu-trace/gpu-trace-pixel-mipmap.ts +956 -0
  2648. package/src/gpu-trace/gpu-trace-range-maximum-index.ts +424 -0
  2649. package/src/gpu-trace/gpu-trace-scene.ts +581 -0
  2650. package/src/gpu-trace/gpu-trace-temporal-index-builder.ts +384 -0
  2651. package/src/gpu-trace/gpu-trace-temporal-index.ts +934 -0
  2652. package/src/gpu-trace/gpu-trace-time-buckets.ts +609 -0
  2653. package/src/gpu-trace/index.ts +149 -0
  2654. package/src/gpu-vector-search/embedding-matrix.ts +381 -0
  2655. package/src/gpu-vector-search/gpu-clustering-utils.ts +329 -0
  2656. package/src/gpu-vector-search/gpu-ivf-flat-index.ts +1528 -0
  2657. package/src/gpu-vector-search/gpu-k-means.ts +799 -0
  2658. package/src/gpu-vector-search/gpu-similarity-search.ts +1148 -0
  2659. package/src/gpu-vector-search/index.ts +27 -0
  2660. package/src/gpu-vector-search/types.ts +72 -0
  2661. package/src/index.ts +8 -0
  2662. package/src/lucim/gpu-volume-connected-components.ts +580 -0
  2663. package/src/lucim/gpu-volume-morphology.ts +651 -0
  2664. package/src/lucim/gpu-volume-region-measurements.ts +398 -0
  2665. package/src/lucim/gpu-volume-threshold.ts +288 -0
  2666. package/src/lucim/gpu-volume.ts +126 -0
  2667. package/src/lucim/index.ts +50 -0
  2668. package/src/lucim/types.ts +44 -0
  2669. package/src/lucim/volume-utils.ts +216 -0
  2670. package/src/utils/assemble-compute-kernel.ts +34 -0
  2671. package/src/utils/gpu-spatial-operation.ts +109 -0
@@ -0,0 +1,205 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if (typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory();
4
+ else if (typeof define === 'function' && define.amd) define([], factory);
5
+ else if (typeof exports === 'object') exports['luma'] = factory();
6
+ else root['luma'] = factory();})(globalThis, function () {
7
+ "use strict";var __exports__=(()=>{var Ri=Object.create;var Gt=Object.defineProperty;var Mi=Object.getOwnPropertyDescriptor;var ki=Object.getOwnPropertyNames;var Oi=Object.getPrototypeOf,Fi=Object.prototype.hasOwnProperty;var y=(r,e,t)=>()=>{if(t)throw t[0];try{return r&&(e=r(r=0)),e}catch(o){throw t=[o],o}};var Vi=(r,e)=>()=>{try{return e||r((e={exports:{}}).exports,e),e.exports}catch(t){throw e=0,t}},Ni=(r,e)=>{for(var t in e)Gt(r,t,{get:e[t],enumerable:!0})},At=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ki(e))!Fi.call(r,n)&&n!==t&&Gt(r,n,{get:()=>e[n],enumerable:!(o=Mi(e,n))||o.enumerable});return r},It=(r,e,t)=>(At(r,e,"default"),t&&At(t,e,"default")),ee=(r,e,t)=>(t=r!=null?Ri(Oi(r)):{},At(e||!r||!r.__esModule?Gt(t,"default",{value:r,enumerable:!0}):t,r)),zi=r=>At(Gt({},"__esModule",{value:!0}),r);var K=Vi((Vs,Oo)=>{Oo.exports=globalThis.luma});var ot,Wi,$t,ji,Hi,Sr=y(()=>{ot=globalThis,Wi=globalThis.document||{},$t=globalThis.process||{},ji=globalThis.console,Hi=globalThis.navigator||{}});function Ut(r){if(typeof window<"u"&&window.process?.type==="renderer"||typeof process<"u"&&process.versions?.electron)return!0;let e=typeof navigator<"u"&&navigator.userAgent,t=r||e;return!!(t&&t.indexOf("Electron")>=0)}var _t=y(()=>{});function he(){return!(typeof process=="object"&&String(process)==="[object process]"&&!process?.browser)||Ut()}var Cr=y(()=>{_t()});var Vo=y(()=>{Cr();_t();Sr()});var No=y(()=>{});var Pr,Rt=y(()=>{Sr();Cr();Vo();_t();No();Pr="5.0.0"});function Fe(r,e){if(!r)throw new Error(e||"Assertion failed")}var Br=y(()=>{});function Mt(r){if(!r)return 0;let e;switch(typeof r){case"number":e=r;break;case"object":e=r.logLevel||r.priority||0;break;default:return 0}return Fe(Number.isFinite(e)&&e>=0),e}function Er(r){let{logLevel:e,message:t}=r;r.logLevel=Mt(e);let o=r.args?Array.from(r.args):[];for(;o.length&&o.shift()!==t;);switch(typeof e){case"string":case"function":t!==void 0&&o.unshift(t),r.message=e;break;case"object":Object.assign(r,e);break;default:}typeof r.message=="function"&&(r.message=r.message());let n=typeof r.message;return Fe(n==="string"||n==="object"),Object.assign(r,{args:o},r.opts)}var kt=y(()=>{Br()});var ge,Ee,nt=y(()=>{kt();ge=()=>{},Ee=class{constructor({level:e=0}={}){this.userData={},this._onceCache=new Set,this._level=e}set level(e){this.setLevel(e)}get level(){return this.getLevel()}setLevel(e){return this._level=e,this}getLevel(){return this._level}warn(e,...t){return this._log("warn",0,e,t,{once:!0})}error(e,...t){return this._log("error",0,e,t)}log(e,t,...o){return this._log("log",e,t,o)}info(e,t,...o){return this._log("info",e,t,o)}once(e,t,...o){return this._log("once",e,t,o,{once:!0})}_log(e,t,o,n,i={}){let a=Er({logLevel:t,message:o,args:this._buildArgs(t,o,n),opts:i});return this._createLogFunction(e,a,i)}_buildArgs(e,t,o){return[e,t,...o]}_createLogFunction(e,t,o){if(!this._shouldLog(t.logLevel))return ge;let n=this._getOnceTag(o.tag??t.tag??t.message);if((o.once||t.once)&&n!==void 0){if(this._onceCache.has(n))return ge;this._onceCache.add(n)}return this._emit(e,t)}_shouldLog(e){return this.getLevel()>=Mt(e)}_getOnceTag(e){if(e!==void 0)try{return typeof e=="string"?e:String(e)}catch{return}}}});function Yi(r){try{let e=window[r],t="__storage_test__";return e.setItem(t,t),e.removeItem(t),e}catch{return null}}var it,Lr=y(()=>{it=class{constructor(e,t,o="sessionStorage"){this.storage=Yi(o),this.id=e,this.config=t,this._loadConfiguration()}getConfiguration(){return this.config}setConfiguration(e){if(Object.assign(this.config,e),this.storage){let t=JSON.stringify(this.config);this.storage.setItem(this.id,t)}}_loadConfiguration(){let e={};if(this.storage){let t=this.storage.getItem(this.id);e=t?JSON.parse(t):{}}return Object.assign(this.config,e),this}}});function zo(r){let e;return r<10?e=`${r.toFixed(2)}ms`:r<100?e=`${r.toFixed(1)}ms`:r<1e3?e=`${r.toFixed(0)}ms`:e=`${(r/1e3).toFixed(2)}s`,e}function Dr(r,e=8){let t=Math.max(e-r.length,0);return`${" ".repeat(t)}${r}`}var Ar=y(()=>{});function Wo(r){return typeof r!="string"?r:(r=r.toUpperCase(),at[r]||at.WHITE)}function Gr(r,e,t){return!he&&typeof r=="string"&&(e&&(r=`\x1B[${Wo(e)}m${r}\x1B[39m`),t&&(r=`\x1B[${Wo(t)+Xi}m${r}\x1B[49m`)),r}var at,Xi,Ot=y(()=>{Rt();(function(r){r[r.BLACK=30]="BLACK",r[r.RED=31]="RED",r[r.GREEN=32]="GREEN",r[r.YELLOW=33]="YELLOW",r[r.BLUE=34]="BLUE",r[r.MAGENTA=35]="MAGENTA",r[r.CYAN=36]="CYAN",r[r.WHITE=37]="WHITE",r[r.BRIGHT_BLACK=90]="BRIGHT_BLACK",r[r.BRIGHT_RED=91]="BRIGHT_RED",r[r.BRIGHT_GREEN=92]="BRIGHT_GREEN",r[r.BRIGHT_YELLOW=93]="BRIGHT_YELLOW",r[r.BRIGHT_BLUE=94]="BRIGHT_BLUE",r[r.BRIGHT_MAGENTA=95]="BRIGHT_MAGENTA",r[r.BRIGHT_CYAN=96]="BRIGHT_CYAN",r[r.BRIGHT_WHITE=97]="BRIGHT_WHITE"})(at||(at={}));Xi=10});function Ir(r,e=["constructor"]){let t=Object.getPrototypeOf(r),o=Object.getOwnPropertyNames(t),n=r;for(let i of o){let a=n[i];typeof a=="function"&&(e.find(s=>i===s)||(n[i]=a.bind(r)))}}var $r=y(()=>{});var Ft,j,st=y(()=>{Rt();Ft=class{getHighResolutionTimer(){let e;if(he()&&ot.performance)e=ot?.performance?.now?.();else if("hrtime"in $t){let t=$t?.hrtime?.();e=t[0]*1e3+t[1]/1e6}else e=Date.now();return e}getMemoryUsageMB(){let t=ot?.performance?.memory?.usedJSHeapSize;return t==null?null:Math.trunc(t/1024/1024)}},j=new Ft;globalThis.Probe=Ft;globalThis.probe=j});function Ki(r,e,t){if(typeof e=="string"){let o=t.time?Dr(zo(t.total)):"";e=t.time?`${r}: ${o} ${e}`:`${r}: ${e}`,e=Gr(e,t.color,t.background)}return e}function Zi(r){for(let e in r)for(let t in r[e])return t||"untitled";return"empty"}var Ve,Ur,ae,_r=y(()=>{Rt();nt();Lr();Ar();Ot();$r();Br();st();kt();kt();Ve={debug:he()&&console.debug||console.log,log:console.log,info:console.info,warn:console.warn,error:console.error},Ur={enabled:!0,level:0},ae=class extends Ee{constructor({id:e}={id:""}){super({level:0}),this.VERSION=Pr,this._startTs=j.getHighResolutionTimer(),this._deltaTs=j.getHighResolutionTimer(),this.userData={},this.LOG_THROTTLE_TIMEOUT=0,this.id=e,this.userData={},this._storage=new it(`__probe-${this.id}__`,{[this.id]:Ur}),this.timeStamp(`${this.id} started`),Ir(this),Object.seal(this)}isEnabled(){return this._getConfiguration().enabled}getLevel(){return this._getConfiguration().level}getTotal(){return Number((j.getHighResolutionTimer()-this._startTs).toPrecision(10))}getDelta(){return Number((j.getHighResolutionTimer()-this._deltaTs).toPrecision(10))}set priority(e){this.level=e}get priority(){return this.level}getPriority(){return this.level}enable(e=!0){return this._updateConfiguration({enabled:e}),this}setLevel(e){return this._updateConfiguration({level:e}),this}get(e){return this._getConfiguration()[e]}set(e,t){this._updateConfiguration({[e]:t})}settings(){console.table?console.table(this._storage.config):console.log(this._storage.config)}assert(e,t){if(!e)throw new Error(t||"Assertion failed")}warn(e,...t){return this._log("warn",0,e,t,{method:Ve.warn,once:!0})}error(e,...t){return this._log("error",0,e,t,{method:Ve.error})}deprecated(e,t){return this.warn(`\`${e}\` is deprecated and will be removed in a later version. Use \`${t}\` instead`)}removed(e,t){return this.error(`\`${e}\` has been removed. Use \`${t}\` instead`)}probe(e,t,...o){let n=j.getMemoryUsageMB();if(n!==null){let i=`${n}MB `;typeof t=="function"?t=()=>`${i}${t()}`:typeof t=="string"&&(t=`${i}${t}`)}return this._log("log",e,t,o,{method:Ve.log,time:!0,once:!0})}log(e,t,...o){return this._log("log",e,t,o,{method:Ve.debug})}info(e,t,...o){return this._log("info",e,t,o,{method:console.info})}once(e,t,...o){return this._log("once",e,t,o,{method:Ve.debug||Ve.info,once:!0})}table(e,t,o){return t?this._log("table",e,t,o&&[o]||[],{method:console.table||ge,tag:Zi(t)}):ge}time(e,t){return this._log("time",e,t,[],{method:console.time?console.time:console.info})}timeEnd(e,t){return this._log("time",e,t,[],{method:console.timeEnd?console.timeEnd:console.info})}timeStamp(e,t){return this._log("time",e,t,[],{method:console.timeStamp||ge})}group(e,t,o={collapsed:!1}){let n=(o.collapsed?console.groupCollapsed:console.group)||console.info;return this._log("group",e,t,[],{method:n})}groupCollapsed(e,t,o={}){return this.group(e,t,Object.assign({},o,{collapsed:!0}))}groupEnd(e){return this._log("groupEnd",e,"",[],{method:console.groupEnd||ge})}withGroup(e,t,o){this.group(e,t)();try{o()}finally{this.groupEnd(e)()}}trace(){console.trace&&console.trace()}_shouldLog(e){return this.isEnabled()&&super._shouldLog(e)}_emit(e,t){let o=t.method;Fe(o),t.total=this.getTotal(),t.delta=this.getDelta(),this._deltaTs=j.getHighResolutionTimer();let n=Ki(this.id,t.message,t);return o.bind(console,n,...t.args)}_getConfiguration(){return this._storage.config[this.id]||this._updateConfiguration(Ur),this._storage.config[this.id]}_updateConfiguration(e){let t=this._storage.config[this.id]||{...Ur};this._storage.setConfiguration({[this.id]:{...t,...e}})}};ae.VERSION=Pr});var jo=y(()=>{nt()});var Ho=y(()=>{nt()});var qo=y(()=>{st()});var Yo=y(()=>{st();globalThis.probe||(globalThis.probe=j)});var Nu,Xo=y(()=>{_r();st();_r();jo();nt();Ho();Ot();Ot();Ar();$r();Lr();qo();Yo();Nu=new ae({id:"@probe.gl/log"})});var Z,Rr=y(()=>{"use strict";Xo();Z=new ae({id:"luma.gl"})});function Ne(r="id"){Mr[r]=Mr[r]||1;let e=Mr[r]++;return`${r}-${e}`}var Mr,Vt=y(()=>{"use strict";Mr={}});function oa(r,e){let t={...e};for(let o in r)r[o]!==void 0&&(t[o]=r[o]);return t}function tn(r,e){let t=r.stats,o=!1;for(let u of e)t[u]||(r.get(u),o=!0);let n=Object.keys(t).length,i=Jo.get(r);if(!o&&i?.orderedStatNames===e&&i.statCount===n)return;let a={},s=en.get(e);s||(s=new Set(e),en.set(e,s));for(let u of e)t[u]&&(a[u]=t[u]);for(let[u,c]of Object.entries(t))s.has(u)||(a[u]=c);for(let u of Object.keys(t))delete t[u];Object.assign(t,a),Jo.set(r,{orderedStatNames:e,statCount:n})}function rn(r){return r.type==="webgl"?ra:ta}function ut(r){let e=r.userData[Qi];return e?.enabled?e:null}function ye(){return globalThis.performance?.now?.()??Date.now()}function na(r,e){let t=ut(r);if(!(!t||!t.activeDefaultFramebufferAcquireDepth))switch(t.transientCanvasResourceCreates=(t.transientCanvasResourceCreates||0)+1,e){case"Texture":t.transientCanvasTextureCreates=(t.transientCanvasTextureCreates||0)+1;break;case"TextureView":t.transientCanvasTextureViewCreates=(t.transientCanvasTextureViewCreates||0)+1;break;case"Sampler":t.transientCanvasSamplerCreates=(t.transientCanvasSamplerCreates||0)+1;break;case"Framebuffer":t.transientCanvasFramebufferCreates=(t.transientCanvasFramebufferCreates||0)+1;break;default:break}}function ia(r){let e=Object.getPrototypeOf(r);for(;e;){let t=Object.getPrototypeOf(e);if(!t||t===H.prototype)return aa(e)||r[Symbol.toStringTag]||r.constructor.name;e=t}return r[Symbol.toStringTag]||r.constructor.name}function aa(r){let e=Object.getOwnPropertyDescriptor(r,Symbol.toStringTag);return typeof e?.get=="function"?e.get.call(r):typeof e?.value=="string"?e.value:null}var Qi,Ko,Zo,Qo,Ji,ea,ta,ra,Jo,en,H,Nt=y(()=>{"use strict";Vt();Qi="cpu-hotspot-profiler",Ko="GPU Resource Counts",Zo="Resource Counts",Qo="GPU Time and Memory",Ji=["Resources","Buffers","Textures","Samplers","TextureViews","Framebuffers","QuerySets","Shaders","RenderPipelines","ComputePipelines","PipelineLayouts","VertexArrays","RenderPasss","RenderBundleEncoders","RenderBundles","ComputePasss","CommandEncoders","CommandBuffers"],ea=["Resources","Buffers","Textures","Samplers","TextureViews","Framebuffers","QuerySets","Shaders","RenderPipelines","SharedRenderPipelines","ComputePipelines","PipelineLayouts","VertexArrays","RenderPasss","RenderBundleEncoders","RenderBundles","ComputePasss","CommandEncoders","CommandBuffers"],ta=Ji.flatMap(r=>[`${r} Created`,`${r} Active`]),ra=ea.flatMap(r=>[`${r} Created`,`${r} Active`]),Jo=new WeakMap,en=new WeakMap,H=class{static defaultProps={id:"undefined",handle:void 0,_isHandleBorrowed:!1,userData:void 0};toString(){return`${this[Symbol.toStringTag]||this.constructor.name}:"${this.id}"`}toJSON(){return this.toString()}id;props;userData={};_device;destroyed=!1;allocatedBytes=0;allocatedBytesName=null;_attachedResources=new Set;get ownsHandle(){return(this.props.handle===void 0||this.props.handle===null)&&!this.isHandleBorrowed}get isHandleBorrowed(){return!!this.props._isHandleBorrowed}constructor(e,t,o){if(!e)throw new Error("no device");this._device=e,this.props=oa(t,o);let n=this.props.id!=="undefined"?this.props.id:Ne(this[Symbol.toStringTag]);this.props.id=n,this.id=n,this.userData=this.props.userData||{},this.addStats()}destroy(){this.destroyed||this.destroyResource()}delete(){return this.destroy(),this}getProps(){return this.props}attachResource(e){this._attachedResources.add(e)}detachResource(e){this._attachedResources.delete(e)}destroyAttachedResource(e){this._attachedResources.delete(e)&&e.destroy()}destroyAttachedResources(){for(let e of this._attachedResources)e.destroy();this._attachedResources=new Set}destroyResource(){this.destroyed||(this.destroyAttachedResources(),this.removeStats(),this.destroyed=!0)}removeStats(){let e=ut(this._device),t=e?ye():0,o=[this._device.statsManager.getStats(Ko),this._device.statsManager.getStats(Zo)],n=rn(this._device);for(let a of o)tn(a,n);let i=this.getStatsName();for(let a of o)a.get("Resources Active").decrementCount(),a.get(`${i}s Active`).decrementCount();e&&(e.statsBookkeepingCalls=(e.statsBookkeepingCalls||0)+1,e.statsBookkeepingTimeMs=(e.statsBookkeepingTimeMs||0)+(ye()-t))}trackAllocatedMemory(e,t=this.getStatsName()){let o=ut(this._device),n=o?ye():0,i=this._device.statsManager.getStats(Qo);this.allocatedBytes>0&&this.allocatedBytesName&&(i.get("GPU Memory").subtractCount(this.allocatedBytes),i.get(`${this.allocatedBytesName} Memory`).subtractCount(this.allocatedBytes)),i.get("GPU Memory").addCount(e),i.get(`${t} Memory`).addCount(e),o&&(o.statsBookkeepingCalls=(o.statsBookkeepingCalls||0)+1,o.statsBookkeepingTimeMs=(o.statsBookkeepingTimeMs||0)+(ye()-n)),this.allocatedBytes=e,this.allocatedBytesName=t}trackReferencedMemory(e,t=this.getStatsName()){this.trackAllocatedMemory(e,`External ${t}`)}trackDeallocatedMemory(e=this.getStatsName()){if(this.allocatedBytes===0){this.allocatedBytesName=null;return}let t=ut(this._device),o=t?ye():0,n=this._device.statsManager.getStats(Qo);n.get("GPU Memory").subtractCount(this.allocatedBytes),n.get(`${this.allocatedBytesName||e} Memory`).subtractCount(this.allocatedBytes),t&&(t.statsBookkeepingCalls=(t.statsBookkeepingCalls||0)+1,t.statsBookkeepingTimeMs=(t.statsBookkeepingTimeMs||0)+(ye()-o)),this.allocatedBytes=0,this.allocatedBytesName=null}trackDeallocatedReferencedMemory(e=this.getStatsName()){this.trackDeallocatedMemory(`Referenced ${e}`)}addStats(){let e=this.getStatsName(),t=ut(this._device),o=t?ye():0,n=[this._device.statsManager.getStats(Ko),this._device.statsManager.getStats(Zo)],i=rn(this._device);for(let a of n)tn(a,i);for(let a of n)a.get("Resources Created").incrementCount(),a.get("Resources Active").incrementCount(),a.get(`${e}s Created`).incrementCount(),a.get(`${e}s Active`).incrementCount();t&&(t.statsBookkeepingCalls=(t.statsBookkeepingCalls||0)+1,t.statsBookkeepingTimeMs=(t.statsBookkeepingTimeMs||0)+(ye()-o)),na(this._device,e)}getStatsName(){return ia(this)}}});var te,on=y(()=>{"use strict";Nt();te=class r extends H{static INDEX=16;static VERTEX=32;static UNIFORM=64;static STORAGE=128;static INDIRECT=256;static QUERY_RESOLVE=512;static MAP_READ=1;static MAP_WRITE=2;static COPY_SRC=4;static COPY_DST=8;get[Symbol.toStringTag](){return"Buffer"}usage;indexType;updateTimestamp;constructor(e,t){let o={...t};(t.usage||0)&r.INDEX&&!t.indexType&&(t.data instanceof Uint32Array?o.indexType="uint32":t.data instanceof Uint16Array?o.indexType="uint16":t.data instanceof Uint8Array&&(o.indexType="uint8")),delete o.data,super(e,o,r.defaultProps),this.usage=o.usage||0,this.indexType=o.indexType,this.updateTimestamp=e.incrementTimestamp()}clone(e){return this.device.createBuffer({...this.props,...e})}static DEBUG_DATA_MAX_LENGTH=32;debugData=new ArrayBuffer(0);_setDebugData(e,t,o){if(!this.device.props.debug)return;let n=null,i;ArrayBuffer.isView(e)?(n=e,i=e.buffer):i=e;let a=Math.min(e?e.byteLength:o,r.DEBUG_DATA_MAX_LENGTH);if(i===null)this.debugData=new ArrayBuffer(a);else{let s=Math.min(n?.byteOffset||0,i.byteLength),u=Math.max(0,i.byteLength-s),c=Math.min(a,u);this.debugData=new Uint8Array(i,s,c).slice().buffer}}static defaultProps={...H.defaultProps,handle:void 0,usage:0,byteLength:0,byteOffset:0,data:null,indexType:"uint16",onMapped:void 0}}});function nn(){return kr??Uint16Array}function an(r){return!!(kr&&r===kr)}var kr,sn=y(()=>{"use strict";kr=globalThis.Float16Array});var un=y(()=>{"use strict"});var cn=y(()=>{"use strict"});function sa(r){let e=mn(r),t=fa[e];if(!t)throw new Error(`Unsupported variable shader type: ${r}`);return t}function ua(r){let e=dn(r),t=ma[e];if(!t)throw new Error(`Unsupported attribute shader type: ${r}`);let[o,n]=t,i=o==="i32"||o==="u32",a=o!=="u32",s=da[o]*n;return{primitiveType:o,components:n,byteLength:s,integer:i,signed:a}}function ca(r,e){return e===1?r:`vec${e}<${r}>`}function dn(r){return pa[r]||r}function mn(r){return la[r]||r}var Or,mc,da,ma,fa,pa,la,fn=y(()=>{"use strict";Or=class{getVariableShaderTypeInfo(e){return sa(e)}getAttributeShaderTypeInfo(e){return ua(e)}makeShaderAttributeType(e,t){return ca(e,t)}resolveAttributeShaderTypeAlias(e){return dn(e)}resolveVariableShaderTypeAlias(e){return mn(e)}};mc=new Or,da={f32:4,f16:2,i32:4,u32:4},ma={f32:["f32",1],"vec2<f32>":["f32",2],"vec3<f32>":["f32",3],"vec4<f32>":["f32",4],f16:["f16",1],"vec2<f16>":["f16",2],"vec3<f16>":["f16",3],"vec4<f16>":["f16",4],i32:["i32",1],"vec2<i32>":["i32",2],"vec3<i32>":["i32",3],"vec4<i32>":["i32",4],u32:["u32",1],"vec2<u32>":["u32",2],"vec3<u32>":["u32",3],"vec4<u32>":["u32",4]},fa={f32:{type:"f32",components:1},f16:{type:"f16",components:1},i32:{type:"i32",components:1},u32:{type:"u32",components:1},"vec2<f32>":{type:"f32",components:2},"vec3<f32>":{type:"f32",components:3},"vec4<f32>":{type:"f32",components:4},"vec2<f16>":{type:"f16",components:2},"vec3<f16>":{type:"f16",components:3},"vec4<f16>":{type:"f16",components:4},"vec2<i32>":{type:"i32",components:2},"vec3<i32>":{type:"i32",components:3},"vec4<i32>":{type:"i32",components:4},"vec2<u32>":{type:"u32",components:2},"vec3<u32>":{type:"u32",components:3},"vec4<u32>":{type:"u32",components:4},"mat2x2<f32>":{type:"f32",components:4},"mat2x3<f32>":{type:"f32",components:6},"mat2x4<f32>":{type:"f32",components:8},"mat3x2<f32>":{type:"f32",components:6},"mat3x3<f32>":{type:"f32",components:9},"mat3x4<f32>":{type:"f32",components:12},"mat4x2<f32>":{type:"f32",components:8},"mat4x3<f32>":{type:"f32",components:12},"mat4x4<f32>":{type:"f32",components:16},"mat2x2<f16>":{type:"f16",components:4},"mat2x3<f16>":{type:"f16",components:6},"mat2x4<f16>":{type:"f16",components:8},"mat3x2<f16>":{type:"f16",components:6},"mat3x3<f16>":{type:"f16",components:9},"mat3x4<f16>":{type:"f16",components:12},"mat4x2<f16>":{type:"f16",components:8},"mat4x3<f16>":{type:"f16",components:12},"mat4x4<f16>":{type:"f16",components:16},"mat2x2<i32>":{type:"i32",components:4},"mat2x3<i32>":{type:"i32",components:6},"mat2x4<i32>":{type:"i32",components:8},"mat3x2<i32>":{type:"i32",components:6},"mat3x3<i32>":{type:"i32",components:9},"mat3x4<i32>":{type:"i32",components:12},"mat4x2<i32>":{type:"i32",components:8},"mat4x3<i32>":{type:"i32",components:12},"mat4x4<i32>":{type:"i32",components:16},"mat2x2<u32>":{type:"u32",components:4},"mat2x3<u32>":{type:"u32",components:6},"mat2x4<u32>":{type:"u32",components:8},"mat3x2<u32>":{type:"u32",components:6},"mat3x3<u32>":{type:"u32",components:9},"mat3x4<u32>":{type:"u32",components:12},"mat4x2<u32>":{type:"u32",components:8},"mat4x3<u32>":{type:"u32",components:12},"mat4x4<u32>":{type:"u32",components:16}},pa={vec2i:"vec2<i32>",vec3i:"vec3<i32>",vec4i:"vec4<i32>",vec2u:"vec2<u32>",vec3u:"vec3<u32>",vec4u:"vec4<u32>",vec2f:"vec2<f32>",vec3f:"vec3<f32>",vec4f:"vec4<f32>",vec2h:"vec2<f16>",vec3h:"vec3<f16>",vec4h:"vec4<f16>"},la={vec2i:"vec2<i32>",vec3i:"vec3<i32>",vec4i:"vec4<i32>",vec2u:"vec2<u32>",vec3u:"vec3<u32>",vec4u:"vec4<u32>",vec2f:"vec2<f32>",vec3f:"vec3<f32>",vec4f:"vec4<f32>",vec2h:"vec2<f16>",vec3h:"vec3<f16>",vec4h:"vec4<f16>",mat2x2f:"mat2x2<f32>",mat2x3f:"mat2x3<f32>",mat2x4f:"mat2x4<f32>",mat3x2f:"mat3x2<f32>",mat3x3f:"mat3x3<f32>",mat3x4f:"mat3x4<f32>",mat4x2f:"mat4x2<f32>",mat4x3f:"mat4x3<f32>",mat4x4f:"mat4x4<f32>",mat2x2i:"mat2x2<i32>",mat2x3i:"mat2x3<i32>",mat2x4i:"mat2x4<i32>",mat3x2i:"mat3x2<i32>",mat3x3i:"mat3x3<i32>",mat3x4i:"mat3x4<i32>",mat4x2i:"mat4x2<i32>",mat4x3i:"mat4x3<i32>",mat4x4i:"mat4x4<i32>",mat2x2u:"mat2x2<u32>",mat2x3u:"mat2x3<u32>",mat2x4u:"mat2x4<u32>",mat3x2u:"mat3x2<u32>",mat3x3u:"mat3x3<u32>",mat3x4u:"mat3x4<u32>",mat4x2u:"mat4x2<u32>",mat4x3u:"mat4x3<u32>",mat4x4u:"mat4x4<u32>",mat2x2h:"mat2x2<f16>",mat2x3h:"mat2x3<f16>",mat2x4h:"mat2x4<f16>",mat3x2h:"mat3x2<f16>",mat3x3h:"mat3x3<f16>",mat3x4h:"mat3x4<f16>",mat4x2h:"mat4x2<f16>",mat4x3h:"mat4x3<f16>",mat4x4h:"mat4x4<f16>"}});function zt(r,e){switch(e){case 1:return r;case 2:return r+r%2;default:return r+(4-r%4)%4}}var pn=y(()=>{"use strict"});var ln=y(()=>{"use strict"});var hn=y(()=>{"use strict"});var gn=y(()=>{"use strict"});var yn=y(()=>{"use strict"});var xn=y(()=>{"use strict";un();cn();fn();ln();hn();gn();yn();pn()});function bn(r){let e=r.includes("norm"),t=!e&&!r.startsWith("float"),o=r.startsWith("s"),n=Fr[r],[i,a,s]=n||["uint8 ","i32",1];return{signedType:i,primitiveType:a,byteLength:s,normalized:e,integer:t,signed:o}}function wn(r){let e=r;switch(e){case"uint8":return"unorm8";case"sint8":return"snorm8";case"uint16":return"unorm16";case"sint16":return"snorm16";default:return e}}function ha(r){let e=ArrayBuffer.isView(r)?r.constructor:r;if(an(e))return"float16";if(e===Uint8ClampedArray)return"uint8";let t=Object.values(Fr).find(o=>e===o[4]);if(!t)throw new Error(e.name);return t[0]}function Tn(r){return ha(r)}function ga(r){if(r==="float16")return nn();let e=Fr[r];if(!e)throw new Error(r);let[,,,,t]=e;return t}function vn(r){return ga(r)}var Fr,Sn=y(()=>{"use strict";sn();xn();Fr={uint8:["uint8","u32",1,!1,Uint8Array],sint8:["sint8","i32",1,!1,Int8Array],unorm8:["uint8","f32",1,!0,Uint8Array],snorm8:["sint8","f32",1,!0,Int8Array],uint16:["uint16","u32",2,!1,Uint16Array],sint16:["sint16","i32",2,!1,Int16Array],unorm16:["uint16","u32",2,!0,Uint16Array],snorm16:["sint16","i32",2,!0,Int16Array],float16:["float16","f16",2,!1,Uint16Array],float32:["float32","f32",4,!1,Float32Array],uint32:["uint32","u32",4,!1,Uint32Array],sint32:["sint32","i32",4,!1,Int32Array]}});var Vr,Cn,Pn=y(()=>{"use strict";Sn();Vr=class{getDataTypeInfo(e){return bn(e)}getNormalizedDataType(e){return wn(e)}alignTo(e,t){return zt(e,t)}getDataType(e){return Tn(e)}getTypedArrayConstructor(e){return vn(e)}},Cn=new Vr});function Xt(r){let e=Ca[r];if(!e)throw new Error(`Unsupported texture format ${r}`);return e}var _,v,re,ya,Wt,Nr,jt,zr,xa,Wr,xe,jr,Hr,Ht,Bn,ct,dt,Xr,Kr,We,Yt,Ln,$,qt,se,oe,ba,Yr,En,wa,F,ze,Ta,qr,va,Sa,Ca,Dn=y(()=>{"use strict";_="texture-compression-bc",v="texture-compression-astc",re="texture-compression-etc2",ya="texture-compression-etc1-webgl",Wt="texture-compression-pvrtc-webgl",Nr="texture-compression-atc-webgl",jt="float32-renderable-webgl",zr="float16-renderable-webgl",xa="rgb9e5ufloat-renderable-webgl",Wr="snorm8-renderable-webgl",xe="norm16-webgl",jr="norm16-renderable-webgl",Hr="snorm16-renderable-webgl",Ht="float32-filterable",Bn="float16-filterable-webgl",ct=1,dt=2,Xr=4,Kr=8,We=16,Yt=5,Ln=10,$=ct|dt,qt=ct|Xr,se=ct|dt|Xr|Kr,oe=ct|dt|We,ba=ct|Xr|We,Yr=se|We,En=(dt|Kr|We)<<Yt,wa=(dt|Kr)<<Yt,F=We<<Yt,ze=Yr<<Yt,Ta=se<<Ln,qr=We<<Ln;va={r8unorm:{webgpu:se|F},rg8unorm:{webgpu:se|F},"rgb8unorm-webgl":{},rgba8unorm:{webgpu:Yr},"rgba8unorm-srgb":{webgpu:se},r8snorm:{render:Wr,webgpu:qt|En},rg8snorm:{render:Wr,webgpu:qt|En},"rgb8snorm-webgl":{},rgba8snorm:{render:Wr,webgpu:ba|wa},r8uint:{webgpu:$|F},rg8uint:{webgpu:$|F},rgba8uint:{webgpu:oe},r8sint:{webgpu:$|F},rg8sint:{webgpu:$|F},rgba8sint:{webgpu:oe},bgra8unorm:{webgpu:se},"bgra8unorm-srgb":{webgpu:Ta},r16unorm:{f:xe,render:jr,webgpu:ze},rg16unorm:{f:xe,render:jr,webgpu:ze},"rgb16unorm-webgl":{f:xe,render:!1},rgba16unorm:{f:xe,render:jr,webgpu:ze},r16snorm:{f:xe,render:Hr,webgpu:ze},rg16snorm:{f:xe,render:Hr,webgpu:ze},"rgb16snorm-webgl":{f:xe,render:!1},rgba16snorm:{f:xe,render:Hr,webgpu:ze},r16uint:{webgpu:$|F},rg16uint:{webgpu:$|F},rgba16uint:{webgpu:oe},r16sint:{webgpu:$|F},rg16sint:{webgpu:$|F},rgba16sint:{webgpu:oe},r16float:{render:zr,filter:"float16-filterable-webgl",webgpu:se|F},rg16float:{render:zr,filter:Bn,webgpu:se|F},rgba16float:{render:zr,filter:Bn,webgpu:Yr},r32uint:{webgpu:oe},rg32uint:{webgpu:$|qr},rgba32uint:{webgpu:oe},r32sint:{webgpu:oe},rg32sint:{webgpu:$|qr},rgba32sint:{webgpu:oe},r32float:{render:jt,filter:Ht,webgpu:oe},rg32float:{render:!1,filter:Ht,webgpu:$|qr},"rgb32float-webgl":{render:jt,filter:Ht},rgba32float:{render:jt,filter:Ht,webgpu:oe},"rgba4unorm-webgl":{channels:"rgba",bitsPerChannel:[4,4,4,4],packed:!0},"rgb565unorm-webgl":{channels:"rgb",bitsPerChannel:[5,6,5,0],packed:!0},"rgb5a1unorm-webgl":{channels:"rgba",bitsPerChannel:[5,5,5,1],packed:!0},rgb9e5ufloat:{channels:"rgb",packed:!0,render:xa,webgpu:qt},rg11b10ufloat:{channels:"rgb",bitsPerChannel:[11,11,10,0],packed:!0,p:1,render:jt,webgpu:qt|F},rgb10a2unorm:{channels:"rgba",bitsPerChannel:[10,10,10,2],packed:!0,p:1,webgpu:se|F},rgb10a2uint:{channels:"rgba",bitsPerChannel:[10,10,10,2],packed:!0,p:1,webgpu:$|F},stencil8:{attachment:"stencil",bitsPerChannel:[8,0,0,0],dataType:"uint8",webgpu:$},depth16unorm:{attachment:"depth",bitsPerChannel:[16,0,0,0],dataType:"uint16",webgpu:$},depth24plus:{attachment:"depth",bitsPerChannel:[24,0,0,0],dataType:"uint32",webgpu:$},depth32float:{attachment:"depth",bitsPerChannel:[32,0,0,0],dataType:"float32",webgpu:$},"depth24plus-stencil8":{attachment:"depth-stencil",bitsPerChannel:[24,8,0,0],packed:!0,webgpu:$},"depth32float-stencil8":{attachment:"depth-stencil",bitsPerChannel:[32,8,0,0],packed:!0,f:"depth32float-stencil8",webgpu:$}},Sa={"bc1-rgb-unorm-webgl":{f:_},"bc1-rgb-unorm-srgb-webgl":{f:_},"bc1-rgba-unorm":{f:_},"bc1-rgba-unorm-srgb":{f:_},"bc2-rgba-unorm":{f:_},"bc2-rgba-unorm-srgb":{f:_},"bc3-rgba-unorm":{f:_},"bc3-rgba-unorm-srgb":{f:_},"bc4-r-unorm":{f:_},"bc4-r-snorm":{f:_},"bc5-rg-unorm":{f:_},"bc5-rg-snorm":{f:_},"bc6h-rgb-ufloat":{f:_},"bc6h-rgb-float":{f:_},"bc7-rgba-unorm":{f:_},"bc7-rgba-unorm-srgb":{f:_},"etc2-rgb8unorm":{f:re},"etc2-rgb8unorm-srgb":{f:re},"etc2-rgb8a1unorm":{f:re},"etc2-rgb8a1unorm-srgb":{f:re},"etc2-rgba8unorm":{f:re},"etc2-rgba8unorm-srgb":{f:re},"eac-r11unorm":{f:re},"eac-r11snorm":{f:re},"eac-rg11unorm":{f:re},"eac-rg11snorm":{f:re},"astc-4x4-unorm":{f:v},"astc-4x4-unorm-srgb":{f:v},"astc-5x4-unorm":{f:v},"astc-5x4-unorm-srgb":{f:v},"astc-5x5-unorm":{f:v},"astc-5x5-unorm-srgb":{f:v},"astc-6x5-unorm":{f:v},"astc-6x5-unorm-srgb":{f:v},"astc-6x6-unorm":{f:v},"astc-6x6-unorm-srgb":{f:v},"astc-8x5-unorm":{f:v},"astc-8x5-unorm-srgb":{f:v},"astc-8x6-unorm":{f:v},"astc-8x6-unorm-srgb":{f:v},"astc-8x8-unorm":{f:v},"astc-8x8-unorm-srgb":{f:v},"astc-10x5-unorm":{f:v},"astc-10x5-unorm-srgb":{f:v},"astc-10x6-unorm":{f:v},"astc-10x6-unorm-srgb":{f:v},"astc-10x8-unorm":{f:v},"astc-10x8-unorm-srgb":{f:v},"astc-10x10-unorm":{f:v},"astc-10x10-unorm-srgb":{f:v},"astc-12x10-unorm":{f:v},"astc-12x10-unorm-srgb":{f:v},"astc-12x12-unorm":{f:v},"astc-12x12-unorm-srgb":{f:v},"pvrtc-rgb4unorm-webgl":{f:Wt},"pvrtc-rgba4unorm-webgl":{f:Wt},"pvrtc-rgb2unorm-webgl":{f:Wt},"pvrtc-rgba2unorm-webgl":{f:Wt},"etc1-rbg-unorm-webgl":{f:ya},"atc-rgb-unorm-webgl":{f:Nr},"atc-rgba-unorm-webgl":{f:Nr},"atc-rgbai-unorm-webgl":{f:Nr}},Ca={...va,...Sa}});function Aa({format:r,width:e,height:t,depth:o,byteAlignment:n}){let i=Le.getInfo(r),{bytesPerPixel:a,bytesPerBlock:s=a,blockWidth:u=1,blockHeight:c=1,compressed:d=!1}=i,m=d?Math.ceil(e/u):e,f=d?Math.ceil(t/c):t,p=m*s,h=Math.ceil(p/n)*n,x=f,w=h*x*o;return{bytesPerPixel:a,bytesPerRow:h,rowsPerImage:x,depthOrArrayLayers:o,bytesPerImage:h*x,byteLength:w}}function Ga(r){let e=Xt(r),t={format:r,create:e.f??!0,render:e.render??!0,filter:e.filter??!0,blend:e.blend??!0,store:e.store??!0},o=An(r),n=r.startsWith("depth")||r.startsWith("stencil"),i=o?.signed,a=o?.integer,s=o?.webgl,u=!!o?.compressed;return t.render&&=!n&&!u,t.filter&&=!n&&!i&&!a&&!s,t}function An(r){let e=Ia(r);if(Le.isCompressed(r)){e.channels="rgb",e.components=3,e.bytesPerPixel=1,e.srgb=!1,e.compressed=!0,e.bytesPerBlock=Ua(r);let o=$a(r);o&&(e.blockWidth=o.blockWidth,e.blockHeight=o.blockHeight)}let t=e.packed?null:Pa.exec(r);if(t){let[,o,n,i,a,s]=t,u=`${i}${n}`,c=Cn.getDataTypeInfo(u),d=c.byteLength*8,m=o?.length??1,f=[d,m>=2?d:0,m>=3?d:0,m>=4?d:0];e={format:r,attachment:e.attachment,dataType:c.signedType,components:m,channels:o,integer:c.integer,signed:c.signed,normalized:c.normalized,bitsPerChannel:f,bytesPerPixel:c.byteLength*m,packed:e.packed,srgb:e.srgb},s==="-webgl"&&(e.webgl=!0),a==="-srgb"&&(e.srgb=!0)}return r.endsWith("-webgl")&&(e.webgl=!0),r.endsWith("-srgb")&&(e.srgb=!0),e}function Ia(r){let e={...Xt(r)},t=e.bytesPerPixel||1,o=e.bitsPerChannel||[8,8,8,8];return delete e.bitsPerChannel,delete e.bytesPerPixel,delete e.f,delete e.render,delete e.filter,delete e.blend,delete e.store,delete e.webgpu,{...e,format:r,attachment:e.attachment||"color",channels:e.channels||"r",components:e.components||e.channels?.length||1,bytesPerPixel:t,bitsPerChannel:o,dataType:e.dataType||"uint8",srgb:e.srgb??!1,packed:e.packed??!1,webgl:e.webgl??!1,integer:e.integer??!1,signed:e.signed??!1,normalized:e.normalized??!1,compressed:e.compressed??!1}}function $a(r){let t=/.*-(\d+)x(\d+)-.*/.exec(r);if(t){let[,o,n]=t;return{blockWidth:Number(o),blockHeight:Number(n)}}return r.startsWith("bc")||r.startsWith("etc1")||r.startsWith("etc2")||r.startsWith("eac")||r.startsWith("atc")?{blockWidth:4,blockHeight:4}:r.startsWith("pvrtc-rgb4")||r.startsWith("pvrtc-rgba4")?{blockWidth:4,blockHeight:4}:r.startsWith("pvrtc-rgb2")||r.startsWith("pvrtc-rgba2")?{blockWidth:8,blockHeight:4}:null}function Ua(r){return r.startsWith("bc1")||r.startsWith("bc4")||r.startsWith("etc1")||r.startsWith("etc2-rgb8")||r.startsWith("etc2-rgb8a1")||r.startsWith("eac-r11")||r==="atc-rgb-unorm-webgl"?8:r.startsWith("bc2")||r.startsWith("bc3")||r.startsWith("bc5")||r.startsWith("bc6h")||r.startsWith("bc7")||r.startsWith("etc2-rgba8")||r.startsWith("eac-rg11")||r.startsWith("astc")||r==="atc-rgba-unorm-webgl"||r==="atc-rgbai-unorm-webgl"?16:r.startsWith("pvrtc")?8:16}var Pa,Ba,Ea,La,Da,Zr,Le,Gn=y(()=>{"use strict";Pn();Dn();Pa=/^(r|rg|rgb|rgba|bgra)([0-9]*)([a-z]*)(-srgb)?(-webgl)?$/,Ba=["rgb","rgba","bgra"],Ea=["depth","stencil"],La=5,Da=["bc1","bc2","bc3","bc4","bc5","bc6","bc7","etc1","etc2","eac","atc","astc","pvrtc"],Zr=class{isColor(e){return Ba.some(t=>e.startsWith(t))}isDepthStencil(e){return Ea.some(t=>e.startsWith(t))}isCompressed(e){return Da.some(t=>e.startsWith(t))}getInfo(e){return An(e)}getCapabilities(e){return Ga(e)}getWebGPUCapabilities(e){let t=Xt(e);return t.webgpu!==void 0?t.webgpu:this.isCompressed(e)&&!e.endsWith("-webgl")?La:0}computeMemoryLayout(e){return Aa(e)}},Le=new Zr});function mt(r){return typeof ImageData<"u"&&r instanceof ImageData||typeof ImageBitmap<"u"&&r instanceof ImageBitmap||typeof HTMLImageElement<"u"&&r instanceof HTMLImageElement||typeof HTMLVideoElement<"u"&&r instanceof HTMLVideoElement||typeof VideoFrame<"u"&&r instanceof VideoFrame||typeof HTMLCanvasElement<"u"&&r instanceof HTMLCanvasElement||typeof OffscreenCanvas<"u"&&r instanceof OffscreenCanvas}function Kt(r){if(typeof ImageData<"u"&&r instanceof ImageData||typeof ImageBitmap<"u"&&r instanceof ImageBitmap||typeof HTMLCanvasElement<"u"&&r instanceof HTMLCanvasElement||typeof OffscreenCanvas<"u"&&r instanceof OffscreenCanvas)return{width:r.width,height:r.height};if(typeof HTMLImageElement<"u"&&r instanceof HTMLImageElement)return{width:r.naturalWidth,height:r.naturalHeight};if(typeof HTMLVideoElement<"u"&&r instanceof HTMLVideoElement)return{width:r.videoWidth,height:r.videoHeight};if(typeof VideoFrame<"u"&&r instanceof VideoFrame)return{width:r.displayWidth,height:r.displayHeight};throw new Error("Unknown image type")}var In=y(()=>{"use strict"});var be,Qr=y(()=>{"use strict";Nt();be=class r extends H{static defaultProps={...H.defaultProps,type:"color-sampler",addressModeU:"clamp-to-edge",addressModeV:"clamp-to-edge",addressModeW:"clamp-to-edge",magFilter:"nearest",minFilter:"nearest",mipmapFilter:"none",lodMinClamp:0,lodMaxClamp:32,compare:"less-equal",maxAnisotropy:1};get[Symbol.toStringTag](){return"Sampler"}constructor(e,t){t=r.normalizeProps(e,t),super(e,t,r.defaultProps)}static normalizeProps(e,t){return t}}});var _a,R,$n=y(()=>{"use strict";Nt();Qr();Rr();Gn();_a={"1d":"1d","2d":"2d","2d-array":"2d",cube:"2d","cube-array":"2d","3d":"3d"},R=class r extends H{static SAMPLE=4;static STORAGE=8;static RENDER=16;static COPY_SRC=1;static COPY_DST=2;static TEXTURE=4;static RENDER_ATTACHMENT=16;dimension;baseDimension;format;width;height;depth;mipLevels;samples;byteAlignment;ready=Promise.resolve(this);isReady=!0;updateTimestamp;get[Symbol.toStringTag](){return"Texture"}toString(){return`Texture(${this.id},${this.format},${this.width}x${this.height})`}constructor(e,t,o){if(t=r.normalizeProps(e,t),super(e,t,r.defaultProps),this.dimension=this.props.dimension,this.baseDimension=_a[this.dimension],this.format=this.props.format,this.width=this.props.width,this.height=this.props.height,this.depth=this.props.depth,this.mipLevels=this.props.mipLevels,this.samples=this.props.samples||1,this.dimension==="cube"&&(this.depth=6),this.props.width===void 0||this.props.height===void 0)if(e.isExternalImage(t.data)){let n=e.getExternalImageSize(t.data);this.width=n?.width||1,this.height=n?.height||1}else this.width=1,this.height=1,(this.props.width===void 0||this.props.height===void 0)&&Z.warn(`${this} created with undefined width or height. This is deprecated. Use DynamicTexture instead.`)();this.byteAlignment=o?.byteAlignment||1,this.updateTimestamp=e.incrementTimestamp()}clone(e){return this.device.createTexture({...this.props,...e})}setSampler(e){this.sampler=e instanceof be?e:this.device.createSampler(e)}copyImageData(e){let{data:t,depth:o,...n}=e;this.writeData(t,{...n,depthOrArrayLayers:n.depthOrArrayLayers??o})}computeMemoryLayout(e={}){let t=this._normalizeTextureReadOptions(e),{width:o=this.width,height:n=this.height,depthOrArrayLayers:i=this.depth}=t,{format:a,byteAlignment:s}=this;return Le.computeMemoryLayout({format:a,width:o,height:n,depth:i,byteAlignment:s})}readBuffer(e,t){throw new Error("readBuffer not implemented")}readDataAsync(e){throw new Error("readBuffer not implemented")}writeBuffer(e,t){throw new Error("readBuffer not implemented")}writeData(e,t){throw new Error("readBuffer not implemented")}readDataSyncWebGL(e){throw new Error("readDataSyncWebGL not available")}generateMipmapsWebGL(){throw new Error("generateMipmapsWebGL not available")}static normalizeProps(e,t){let o={...t},{width:n,height:i}=o;return typeof n=="number"&&(o.width=Math.max(1,Math.ceil(n))),typeof i=="number"&&(o.height=Math.max(1,Math.ceil(i))),o}_initializeData(e){this.device.isExternalImage(e)?this.copyExternalImage({image:e,width:this.width,height:this.height,depth:this.depth,mipLevel:0,x:0,y:0,z:0,aspect:"all",colorSpace:"srgb",premultipliedAlpha:!1,flipY:!1}):e&&this.copyImageData({data:e,mipLevel:0,x:0,y:0,z:0,aspect:"all"})}_normalizeCopyImageDataOptions(e){let{data:t,depth:o,...n}=e,i=this._normalizeTextureWriteOptions({...n,depthOrArrayLayers:n.depthOrArrayLayers??o});return{data:t,depth:i.depthOrArrayLayers,...i}}_normalizeCopyExternalImageOptions(e){let t=r._omitUndefined(e),o=t.mipLevel??0,n=this._getMipLevelSize(o),i=this.device.getExternalImageSize(e.image),a={...r.defaultCopyExternalImageOptions,...n,...i,...t};return a.width=Math.min(a.width,n.width-a.x),a.height=Math.min(a.height,n.height-a.y),a.depth=Math.min(a.depth,n.depthOrArrayLayers-a.z),a}_normalizeCopyElementImageOptions(e){let t=r._omitUndefined(e),o=t.mipLevel??0,n=this._getMipLevelSize(o),i={...r.defaultCopyElementImageOptions,...n,...t};return i.width=Math.min(i.width,n.width-i.x),i.height=Math.min(i.height,n.height-i.y),i.depth=Math.min(i.depth,n.depthOrArrayLayers-i.z),i}_normalizeTextureReadOptions(e){let t=r._omitUndefined(e),o=t.mipLevel??0,n=this._getMipLevelSize(o),i={...r.defaultTextureReadOptions,...n,...t};return i.width=Math.min(i.width,n.width-i.x),i.height=Math.min(i.height,n.height-i.y),i.depthOrArrayLayers=Math.min(i.depthOrArrayLayers,n.depthOrArrayLayers-i.z),i}_getSupportedColorReadOptions(e){let t=this._normalizeTextureReadOptions(e),o=Le.getInfo(this.format);switch(this._validateColorReadAspect(t),this._validateColorReadFormat(o),this.dimension){case"2d":case"cube":case"cube-array":case"2d-array":case"3d":return t;default:throw new Error(`${this} color readback does not support ${this.dimension} textures`)}}_validateColorReadAspect(e){if(e.aspect!=="all")throw new Error(`${this} color readback only supports aspect 'all'`)}_validateColorReadFormat(e){if(e.compressed)throw new Error(`${this} color readback does not support compressed formats (${this.format})`);switch(e.attachment){case"color":return;case"depth":throw new Error(`${this} color readback does not support depth formats (${this.format})`);case"stencil":throw new Error(`${this} color readback does not support stencil formats (${this.format})`);case"depth-stencil":throw new Error(`${this} color readback does not support depth-stencil formats (${this.format})`);default:throw new Error(`${this} color readback does not support format ${this.format}`)}}_normalizeTextureWriteOptions(e){let t=r._omitUndefined(e),o=t.mipLevel??0,n=this._getMipLevelSize(o),i={...r.defaultTextureWriteOptions,...n,...t};i.width=Math.min(i.width,n.width-i.x),i.height=Math.min(i.height,n.height-i.y),i.depthOrArrayLayers=Math.min(i.depthOrArrayLayers,n.depthOrArrayLayers-i.z);let a=Le.computeMemoryLayout({format:this.format,width:i.width,height:i.height,depth:i.depthOrArrayLayers,byteAlignment:this.byteAlignment}),s=a.bytesPerPixel*i.width;if(i.bytesPerRow=t.bytesPerRow??a.bytesPerRow,i.rowsPerImage=t.rowsPerImage??i.height,i.bytesPerRow<s)throw new Error(`bytesPerRow (${i.bytesPerRow}) must be at least ${s} for ${this.format}`);if(i.rowsPerImage<i.height)throw new Error(`rowsPerImage (${i.rowsPerImage}) must be at least ${i.height} for ${this.format}`);let u=this.device.getTextureFormatInfo(this.format).bytesPerPixel;if(u&&i.bytesPerRow%u!==0)throw new Error(`bytesPerRow (${i.bytesPerRow}) must be a multiple of bytesPerPixel (${u}) for ${this.format}`);return i}_getMipLevelSize(e){let t=Math.max(1,this.width>>e),o=this.baseDimension==="1d"?1:Math.max(1,this.height>>e),n=this.dimension==="3d"?Math.max(1,this.depth>>e):this.depth;return{width:t,height:o,depthOrArrayLayers:n}}getAllocatedByteLength(){let e=0;for(let t=0;t<this.mipLevels;t++){let{width:o,height:n,depthOrArrayLayers:i}=this._getMipLevelSize(t);e+=Le.computeMemoryLayout({format:this.format,width:o,height:n,depth:i,byteAlignment:1}).byteLength}return e*this.samples}static _omitUndefined(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}static defaultProps={...H.defaultProps,data:null,dimension:"2d",format:"rgba8unorm",usage:r.SAMPLE|r.RENDER|r.COPY_DST,width:void 0,height:void 0,depth:1,mipLevels:1,samples:void 0,sampler:{},view:void 0};static defaultCopyDataOptions={data:void 0,byteOffset:0,bytesPerRow:void 0,rowsPerImage:void 0,width:void 0,height:void 0,depthOrArrayLayers:void 0,depth:1,mipLevel:0,x:0,y:0,z:0,aspect:"all"};static defaultCopyExternalImageOptions={image:void 0,sourceX:0,sourceY:0,width:void 0,height:void 0,depth:1,mipLevel:0,x:0,y:0,z:0,aspect:"all",colorSpace:"srgb",premultipliedAlpha:!1,flipY:!1};static defaultCopyElementImageOptions={element:void 0,width:void 0,height:void 0,sourceX:0,sourceY:0,sourceWidth:void 0,sourceHeight:void 0,depth:1,mipLevel:0,x:0,y:0,z:0,aspect:"all",colorSpace:"srgb",premultipliedAlpha:!1,flipY:!1};static defaultTextureReadOptions={x:0,y:0,z:0,width:void 0,height:void 0,depthOrArrayLayers:1,mipLevel:0,aspect:"all"};static defaultTextureWriteOptions={byteOffset:0,bytesPerRow:void 0,rowsPerImage:void 0,x:0,y:0,z:0,width:void 0,height:void 0,depthOrArrayLayers:1,mipLevel:0,aspect:"all"}}});var ft=y(()=>{"use strict";on();$n();Qr();Rr()});var Un=y(()=>{"use strict";In()});var Zt=y(()=>{"use strict";ft();ft();ft();Un();ft()});var Ra,De,_n=y(()=>{"use strict";Zt();Vt();Ra=te.DEBUG_DATA_MAX_LENGTH,De=class{device;id;ready;usage;props;isReady=!0;destroyed=!1;generation=0;updateTimestamp;debugData=new ArrayBuffer(0);_debugDataEnabled;_maxDebugDataByteLength;_ownsBuffer;_buffer;get buffer(){return this._buffer}get byteLength(){return this._buffer.byteLength}get[Symbol.toStringTag](){return"DynamicBuffer"}toString(){return`DynamicBuffer:"${this.id}":${this.byteLength}B`}toJSON(){return this.toString()}constructor(e,t){let{debugData:o=!1,buffer:n,ownsBuffer:i=!0,...a}=t;if(n&&n.device!==e)throw new Error("DynamicBuffer adopted buffers must belong to the supplied device");if(n&&(a.byteLength!==void 0||a.data!==void 0))throw new Error("DynamicBuffer cannot combine an adopted buffer with byteLength or data");let s=t.id||n?.id||Ne("dynamic-buffer"),u={...a,id:s,usage:a.usage??n?.usage,indexType:a.indexType??n?.indexType};(u.usage||0)&te.INDEX&&!u.indexType&&(a.data instanceof Uint32Array?u.indexType="uint32":a.data instanceof Uint16Array?u.indexType="uint16":a.data instanceof Uint8Array&&(u.indexType="uint8")),delete u.data,delete u.byteOffset,this.device=e,this.id=s,this.props=u,this.usage=u.usage||0,this._debugDataEnabled=!!o,this._maxDebugDataByteLength=typeof o=="object"&&o.maxByteLength!==void 0?o.maxByteLength:Ra,this._ownsBuffer=i,this._buffer=n??this.device.createBuffer({...a,id:s}),this.ready=Promise.resolve(this._buffer),this.updateTimestamp=this._buffer.updateTimestamp,this._resetDebugData(this._buffer.byteLength),a.data&&this._writeDebugData(a.data,a.byteOffset||0)}write(e,t=0){this._buffer.write(e,t),this._touch(),this._writeDebugData(e,t)}async mapAndWriteAsync(e,t=0,o=this.byteLength-t){let n=null;await this._buffer.mapAndWriteAsync(async(i,a)=>{await e(i,a),n=new Uint8Array(i.slice(0,o))},t,o),this._touch(),n&&this._writeDebugData(n,t)}async readAsync(e=0,t=this.byteLength-e){let o=await this._buffer.readAsync(e,t);return this._writeDebugData(o,e)&&this._touch(),o}async mapAndReadAsync(e,t=0,o=this.byteLength-t){let n=null,i=await this._buffer.mapAndReadAsync(async(a,s)=>(n=new Uint8Array(a.slice(0)),await e(a,s)),t,o);return n&&this._writeDebugData(n,t)&&this._touch(),i}resize(e){let{byteLength:t,preserveData:o=!1}=e;if(t===this.byteLength)return!1;let n=Math.min(e.copyByteLength??Math.min(this.byteLength,t),this.byteLength,t),i=this._buffer,a=this.debugData.slice(0),{data:s,byteOffset:u,...c}=this.props,d=this.device.createBuffer({...c,byteLength:t});return o&&n>0&&this._copyBufferContents(i,d,n),this._buffer=d,this._resetDebugData(t),o&&a.byteLength>0&&this._writeDebugData(a,0),this._ownsBuffer&&i.destroy(),this._ownsBuffer=!0,this.generation++,this._touch(),!0}ensureSize(e,t){return e<=this.byteLength?!1:this.resize({byteLength:e,preserveData:t?.preserveData})}getBinding(e){return e?.offset===void 0&&e?.size===void 0?this._buffer:{buffer:this._buffer,offset:e?.offset,size:e?.size}}destroy(){this.destroyed||(this._ownsBuffer&&this._buffer.destroy(),this.destroyed=!0,this.debugData=new ArrayBuffer(0))}_copyBufferContents(e,t,o){let n=this.device.type==="webgpu"?Math.ceil(o/4)*4:o,i=this.device.createCommandEncoder();i.copyBufferToBuffer({sourceBuffer:e,destinationBuffer:t,size:n}),this.device.submit(i.finish())}_touch(){this.updateTimestamp=this.device.incrementTimestamp()}_resetDebugData(e){if(!this._debugDataEnabled){this.debugData=new ArrayBuffer(0);return}this.debugData=new ArrayBuffer(Math.min(e,this._maxDebugDataByteLength))}_writeDebugData(e,t){if(!this._debugDataEnabled||this.debugData.byteLength===0||t>=this.debugData.byteLength)return!1;let o=ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):new Uint8Array(e),n=new Uint8Array(this.debugData),i=Math.min(o.byteLength,n.byteLength-t);return n.set(o.subarray(0,i),t),i>0}}});function pt(r){return r?Array.isArray(r)?r[0]??null:r:null}function Rn(r){let{dimension:e,data:t}=r;if(!t)return null;switch(e){case"1d":{let o=pt(t);if(!o)return null;let{width:n}=lt(o);return{width:n,height:1}}case"2d":{if(ArrayBuffer.isView(t))return null;let o=pt(t);return o?lt(o):null}case"3d":case"2d-array":{if(!Array.isArray(t)||t.length===0)return null;let o=pt(t[0]);return o?lt(o):null}case"cube":{let o=Object.keys(t)[0]??null;if(!o)return null;let n=t[o],i=pt(n);return i?lt(i):null}case"cube-array":{if(!Array.isArray(t)||t.length===0)return null;let o=t[0],n=Object.keys(o)[0]??null;if(!n)return null;let i=pt(o[n]);return i?lt(i):null}default:return null}}function lt(r){if(mt(r))return Kt(r);if(typeof r=="object"&&"width"in r&&"height"in r)return{width:r.width,height:r.height};throw new Error("Unsupported mip-level data")}function Ma(r){return typeof r=="object"&&r!==null&&"data"in r&&"width"in r&&"height"in r}function ka(r){return ArrayBuffer.isView(r)}function eo(r){let{textureFormat:e,format:t}=r;if(e&&t&&e!==t)throw new Error(`Conflicting texture formats "${e}" and "${t}" provided for the same mip level`);return e??t}function Mn(r){let e=Jr[r];if(e===void 0)throw new Error(`Invalid cube face: ${r}`);return e}function Oa(r,e){return 6*r+Mn(e)}function to(r){throw new Error("setTexture1DData not supported in WebGL.")}function Fa(r){return Array.isArray(r)?r:[r]}function Ae(r,e,t,o){let n=Fa(e),i=r,a=[];for(let s=0;s<n.length;s++){let u=n[s];if(mt(u))a.push({type:"external-image",image:u,z:i,mipLevel:s});else if(Ma(u))a.push({type:"texture-data",data:u,textureFormat:eo(u),z:i,mipLevel:s});else if(ka(u)&&t)a.push({type:"texture-data",data:{data:u,width:Math.max(1,t.width>>s),height:Math.max(1,t.height>>s),...o?{format:o}:{}},textureFormat:o,z:i,mipLevel:s});else throw new Error("Unsupported 2D mip-level payload")}return a}function ro(r){let e=[];for(let t=0;t<r.length;t++)e.push(...Ae(t,r[t]));return e}function oo(r){let e=[];for(let t=0;t<r.length;t++)e.push(...Ae(t,r[t]));return e}function no(r){let e=[];for(let[t,o]of Object.entries(r)){let n=Mn(t);e.push(...Ae(n,o))}return e}function io(r){let e=[];return r.forEach((t,o)=>{for(let[n,i]of Object.entries(t)){let a=Oa(o,n);e.push(...Ae(a,i))}}),e}var Jr,ao=y(()=>{"use strict";Zt();Jr={"+X":0,"-X":1,"+Y":2,"-Y":3,"+Z":4,"-Z":5}});function Va(r){if(!r.data)return[];let e=r.width&&r.height?{width:r.width,height:r.height}:void 0,t="format"in r?r.format:void 0;switch(r.dimension){case"1d":return to(r.data);case"2d":return Ae(0,r.data,e,t);case"3d":return ro(r.data);case"2d-array":return oo(r.data);case"cube":return no(r.data);case"cube-array":return io(r.data);default:throw new Error(`Unhandled dimension ${r.dimension}`)}}function Na(r,e,t,o){if(e.length===0)return{subresources:e,mipLevels:1,format:o.format,hasExplicitMipChain:!1};let n=new Map;for(let d of e){let m=n.get(d.z)??[];m.push(d),n.set(d.z,m)}let i=e.some(d=>d.mipLevel>0),a=o.format,s=Number.POSITIVE_INFINITY,u=[];for(let[d,m]of n){let f=[...m].sort((L,C)=>L.mipLevel-C.mipLevel),p=f[0];if(!p||p.mipLevel!==0)throw new Error(`DynamicTexture: slice ${d} is missing mip level 0`);let h=On(r,p);if(h.width!==t.width||h.height!==t.height)throw new Error(`DynamicTexture: slice ${d} base level dimensions ${h.width}x${h.height} do not match expected ${t.width}x${t.height}`);let x=kn(p);if(x){if(a&&a!==x)throw new Error(`DynamicTexture: slice ${d} base level format "${x}" does not match texture format "${a}"`);a=x}let w=a&&r.isTextureFormatCompressed(a)?za(r,h.width,h.height,a):r.getMipLevelCount(h.width,h.height),G=0;for(let L=0;L<f.length;L++){let C=f[L];if(!C||C.mipLevel!==L||L>=w)break;let W=On(r,C),g=Math.max(1,h.width>>L),l=Math.max(1,h.height>>L);if(W.width!==g||W.height!==l)break;let T=kn(C);if(T&&(a||(a=T),T!==a))break;G++,u.push(C)}s=Math.min(s,G)}let c=Number.isFinite(s)?Math.max(1,s):1;return{subresources:u.filter(d=>d.mipLevel<c),mipLevels:c,format:a,hasExplicitMipChain:i}}function kn(r){if(r.type==="texture-data")return r.textureFormat??eo(r.data)}function On(r,e){switch(e.type){case"external-image":return r.getExternalImageSize(e.image);case"texture-data":return{width:e.data.width,height:e.data.height};default:throw new Error("Unsupported texture subresource")}}function za(r,e,t,o){let{blockWidth:n=1,blockHeight:i=1}=r.getTextureFormatInfo(o),a=1;for(let s=1;;s++){let u=Math.max(1,e>>s),c=Math.max(1,t>>s);if(u<n||c<i)break;a++}return a}async function so(r){if(r=await r,Array.isArray(r))return await Promise.all(r.map(so));if(r&&typeof r=="object"&&r.constructor===Object){let e=r,t=await Promise.all(Object.values(e).map(so)),o=Object.keys(e),n={};for(let i=0;i<o.length;i++)n[o[i]]=t[i];return n}return r}var Qt,Fn=y(()=>{"use strict";Zt();Vt();ao();Qt=class r{device;id;props;_texture=null;_sampler=null;_view=null;ready;isReady=!1;destroyed=!1;generation=0;updateTimestamp;resolveReady=()=>{};rejectReady=()=>{};get texture(){if(!this._texture)throw new Error("Texture not initialized yet");return this._texture}get sampler(){if(!this._sampler)throw new Error("Sampler not initialized yet");return this._sampler}get view(){if(!this._view)throw new Error("View not initialized yet");return this._view}get[Symbol.toStringTag](){return"DynamicTexture"}toString(){let e=this._texture?.width??this.props.width??"?",t=this._texture?.height??this.props.height??"?";return`DynamicTexture:"${this.id}":${e}x${t}px:(${this.isReady?"ready":"loading..."})`}resolveTextureBinding(e){return this.isReady?this.texture:null}constructor(e,t){this.device=e;let o=Ne("dynamic-texture"),n=t;this.props={...r.defaultProps,id:o,...t,data:null},this.id=this.props.id,this.ready=new Promise((i,a)=>{this.resolveReady=i,this.rejectReady=a}),this.updateTimestamp=this.device.incrementTimestamp(),this.initAsync(n)}async initAsync(e){try{let t=await this._loadAllData(e);this._checkNotDestroyed();let o=t.data?Va({...t,width:e.width,height:e.height,format:e.format}):[],n="format"in e&&e.format!==void 0,i="usage"in e&&e.usage!==void 0,s=(()=>{if(this.props.width&&this.props.height)return{width:this.props.width,height:this.props.height};let x=Rn(t);return x||{width:this.props.width||1,height:this.props.height||1}})();if(!s||s.width<=0||s.height<=0)throw new Error(`${this} size could not be determined or was zero`);let u=Na(this.device,o,s,{format:n?e.format:void 0}),c=u.format??this.props.format,d={...this.props,...s,format:c,mipLevels:1,data:void 0};this.device.isTextureFormatCompressed(c)&&!i&&(d.usage=R.SAMPLE|R.COPY_DST);let m=this.props.mipmaps&&!u.hasExplicitMipChain&&!this.device.isTextureFormatCompressed(c);if(this.device.type==="webgpu"&&m){let x=this.props.dimension==="3d"?R.SAMPLE|R.STORAGE|R.COPY_DST|R.COPY_SRC:R.SAMPLE|R.RENDER|R.COPY_DST|R.COPY_SRC;d.usage|=x}let f=this.device.getMipLevelCount(d.width,d.height),p=u.hasExplicitMipChain?u.mipLevels:this.props.mipLevels==="auto"?f:Math.max(1,Math.min(f,this.props.mipLevels??1)),h={...d,mipLevels:p};this._texture=this.device.createTexture(h),this._sampler=this.texture.sampler,this._view=this.texture.view,this._touchGeneration(),u.subresources.length&&this._setTextureSubresources(u.subresources),this.props.mipmaps&&!u.hasExplicitMipChain&&!m&&Z.warn(`${this} skipping auto-generated mipmaps for compressed texture format`)(),m&&this.generateMipmaps(),this.isReady=!0,this.resolveReady(this.texture),Z.info(1,`${this} created`)()}catch(t){let o=t instanceof Error?t:new Error(String(t));this.rejectReady(o)}}destroy(){this._texture&&(this._texture.destroy(),this._texture=null,this._sampler=null,this._view=null),this.isReady=!1,this.destroyed=!0}generateMipmaps(){this.device.type==="webgl"?(this.texture.generateMipmapsWebGL(),this._touch()):this.device.type==="webgpu"?(this.device.generateMipmapsWebGPU(this.texture),this._touch()):Z.warn(`${this} mipmaps not supported on ${this.device.type}`)}setSampler(e={}){this._checkReady();let t=e instanceof be?e:this.device.createSampler(e);this.texture.setSampler(t),this._sampler=t,this._touchGeneration()}async readBuffer(e={}){this.isReady||await this.ready;let t=e.width??this.texture.width,o=e.height??this.texture.height,n=e.depthOrArrayLayers??this.texture.depth,i=this.texture.computeMemoryLayout({width:t,height:o,depthOrArrayLayers:n}),a=this.device.createBuffer({byteLength:i.byteLength,usage:te.COPY_DST|te.MAP_READ});this.texture.readBuffer({...e,width:t,height:o,depthOrArrayLayers:n},a);let s=this.device.createFence();return await s.signaled,s.destroy(),a}async readAsync(e={}){this.isReady||await this.ready;let t=e.width??this.texture.width,o=e.height??this.texture.height,n=e.depthOrArrayLayers??this.texture.depth,i=this.texture.computeMemoryLayout({width:t,height:o,depthOrArrayLayers:n}),a=await this.readBuffer(e),s=await a.readAsync(0,i.byteLength);return a.destroy(),s.buffer instanceof ArrayBuffer?s.buffer:s.slice().buffer}resize(e){if(this._checkReady(),e.width===this.texture.width&&e.height===this.texture.height)return!1;let t=this.texture;return this._texture=t.clone(e),this._sampler=this.texture.sampler,this._view=this.texture.view,t.destroy(),this._touchGeneration(),Z.info(`${this} resized`),!0}getCubeFaceIndex(e){let t=Jr[e];if(t===void 0)throw new Error(`Invalid cube face: ${e}`);return t}getCubeArrayFaceIndex(e,t){return 6*e+this.getCubeFaceIndex(t)}setTexture1DData(e){if(this._checkReady(),this.texture.props.dimension!=="1d")throw new Error(`${this} is not 1d`);let t=to(e);this._setTextureSubresources(t)}setTexture2DData(e,t=0){if(this._checkReady(),this.texture.props.dimension!=="2d")throw new Error(`${this} is not 2d`);let o=Ae(t,e);this._setTextureSubresources(o)}setTexture3DData(e){if(this.texture.props.dimension!=="3d")throw new Error(`${this} is not 3d`);let t=ro(e);this._setTextureSubresources(t)}setTextureArrayData(e){if(this.texture.props.dimension!=="2d-array")throw new Error(`${this} is not 2d-array`);let t=oo(e);this._setTextureSubresources(t)}setTextureCubeData(e){if(this.texture.props.dimension!=="cube")throw new Error(`${this} is not cube`);let t=no(e);this._setTextureSubresources(t)}setTextureCubeArrayData(e){if(this.texture.props.dimension!=="cube-array")throw new Error(`${this} is not cube-array`);let t=io(e);this._setTextureSubresources(t)}_setTextureSubresources(e){for(let t of e){let{z:o,mipLevel:n}=t;switch(t.type){case"external-image":let{image:i,flipY:a}=t;this.texture.copyExternalImage({image:i,z:o,mipLevel:n,flipY:a});break;case"texture-data":let{data:s,textureFormat:u}=t;if(u&&u!==this.texture.format)throw new Error(`${this} mip level ${n} uses format "${u}" but texture format is "${this.texture.format}"`);this.texture.writeData(s.data,{x:0,y:0,z:o,width:s.width,height:s.height,depthOrArrayLayers:1,mipLevel:n});break;default:throw new Error("Unsupported 2D mip-level payload")}}e.length>0&&this._touch()}async _loadAllData(e){let t=await so(e.data);return{dimension:e.dimension??"2d",data:t??null}}_checkNotDestroyed(){this.destroyed&&Z.warn(`${this} already destroyed`)}_checkReady(){this.isReady||Z.warn(`${this} Cannot perform this operation before ready`)}_touch(){this.updateTimestamp=this.device.incrementTimestamp()}_touchGeneration(){this.generation++,this._touch()}static defaultProps={...R.defaultProps,dimension:"2d",data:null,mipmaps:!1}}});var Vn=y(()=>{"use strict"});var Nn=y(()=>{"use strict";_n();Fn();ao();Vn()});function we(r){return zn.test(r)}function Te(r){return Wn.test(r)}function jn(r){let e=zn.exec(r),t=Wn.exec(r),n=Hn(r)?.elementFormat??e?.[1]??t?.[1]??r;try{ht.vertexFormatDecoder.getVertexFormatInfo(n)}catch{throw new Error(`Unsupported GPUVector format ${r}`)}return n}function V(r){let e=jn(r),t=we(r),o=Te(r),n=Hn(r),i=ht.vertexFormatDecoder.getVertexFormatInfo(e),a=i.byteLength*(n?.listSize??1);if(!Number.isSafeInteger(a))throw new Error(`Unsupported GPUVector format ${r}`);let s=i.type,u=i.normalized,c=ja(s,u);return{format:r,elementFormat:e,vertexList:t,valueList:o,fixedSizeList:!!n,...n?{listSize:n.listSize}:{},type:s,signedDataType:Ha(e,s),primitiveType:c,components:i.components,elementByteLength:i.byteLength,byteLength:a,integer:i.integer,signed:i.signed,normalized:u,...i.webglOnly?{webglOnly:!0}:{}}}function Hn(r){let e=Wa.exec(r);if(!e)return;let t=Number(e[2]);if(!Number.isSafeInteger(t))return;let o=e[1];try{let n=ht.vertexFormatDecoder.getVertexFormatInfo(o);if(!Number.isSafeInteger(t*n.components)||!Number.isSafeInteger(t*n.byteLength))return}catch{return}return{elementFormat:o,listSize:t}}function ja(r,e){if(e)return"f32";switch(r){case"float32":return"f32";case"float16":return"f16";case"uint8":case"uint16":case"uint32":return"u32";case"sint8":case"sint16":case"sint32":return"i32";default:throw new Error(`Unsupported GPUVector component type ${r}`)}}function Ha(r,e){if(r==="unorm10-10-10-2")return"uint32";switch(e){case"unorm8":return"uint8";case"snorm8":return"sint8";case"unorm16":return"uint16";case"snorm16":return"sint16";default:return e}}var ht,zn,Wn,Wa,qn=y(()=>{"use strict";ht=ee(K(),1),zn=/^vertex-list<([^<>]+)>$/,Wn=/^value-list<([^<>]+)>$/,Wa=/^fixed-size-list<([^<>,]+),([1-9][0-9]*)>$/});function Ge(r){let e=0;return Object.freeze(r.map(t=>{let o=Object.freeze({offset:e,length:t.length,data:t});return e+=t.length,o}))}var Yn=y(()=>{"use strict"});var uo,Ie=y(()=>{"use strict";qn();uo=ee(K(),1);Yn()});var me,I,xi=y(()=>{"use strict";me=ee(K(),1),I=class r{static async createAsync(e,t){let o=!me.PipelineFactory.getAsyncCompilation(e),n=o?me.PipelineFactory.beginAsyncCompilation(e):me.PipelineFactory.getAsyncCompilation(e),i;try{i=new r(e,t)}finally{o&&me.PipelineFactory.endAsyncCompilation(e,n)}try{return o?await Promise.all(n):await i._pipelineInitialization,i}catch(a){throw i.destroy(),a}}device;id;source;pipelineFactory;shaderFactory;shader;pipeline;_pipelineInitialization;_destroyed=!1;constructor(e,t){if(e.type!=="webgpu")throw new Error("Kernel is only supported in WebGPU");let{source:o,pipelineFactory:n,shaderFactory:i,debugShaders:a,...s}=t;this.device=e,this.id=t.id??"kernel",this.source=o,this.pipelineFactory=n??me.PipelineFactory.getDefaultPipelineFactory(e),this.shaderFactory=i??me.ShaderFactory.getDefaultShaderFactory(e),this.shader=this.shaderFactory.createShader({id:`${this.id}-compute`,stage:"compute",source:this.source,debugShaders:a});let u={...s,shader:this.shader},c=me.PipelineFactory.getAsyncCompilation(e);if(c){let d=this.pipelineFactory.createComputePipelineAsync(u);this._pipelineInitialization=d,c.push(d.then(m=>(this.pipeline=m,m)))}else this.pipeline=this.pipelineFactory.createComputePipeline(u)}dispatch(e,t){this._setPipeline(e,t.bindings),e.dispatch(t.x,t.y,t.z)}dispatchIndirect(e,t){this._setPipeline(e,t.bindings),e.dispatchIndirect(t.indirectBuffer,t.indirectOffset??0)}destroy(){this._destroyed||(this.pipeline&&this.pipelineFactory.release(this.pipeline),this.shaderFactory.release(this.shader),this._destroyed=!0)}_setPipeline(e,t={}){e.setPipeline(this.pipeline),e.setBindings(t)}}});var fe=y(()=>{"use strict";xi()});var Lt={};Ni(Lt,{CompiledGPUCommandGraph:()=>qe,GPUCommandGraph:()=>He,GPUCommandGraphAutotuner:()=>Do,GPUCommandGraphEncoding:()=>St,GPUCommandGraphExecution:()=>vt,GPUCommandGraphExecutionBudgetController:()=>Ao,GPUCommandGraphInspector:()=>Go,GPUGraph:()=>er,GPUGraphCompiler:()=>xr,GPUGraphScalar:()=>Ye,GPUGraphTexture:()=>Ke,GPUGraphTextureView:()=>de,GPUGraphVector:()=>Xe,GPUOperationLoweringRegistry:()=>rt,GraphBufferHandle:()=>Se,GraphDataView:()=>ce,GraphExternalTextureHandle:()=>Ue,GraphTextureHandle:()=>ne,GraphTextureView:()=>Ce,GraphVectorView:()=>B,composite:()=>hi,getGPUCommandGraphAdapterIdentity:()=>Gs,getGPUCommandGraphExecutionPlan:()=>xo,inspectGPUGraphCompilation:()=>Ei,validateGPUGraph:()=>yr});It(Lt,ee(K(),1));var Be=ee(K(),1);async function Fo(r,e){if(r.destroyed)throw new Error("Resource has been destroyed.");if(r instanceof Be.Buffer){if(!(r.usage&Be.Buffer.COPY_SRC))throw new Error("Preview requires COPY_SRC usage.");let c=e.byteOffset??0,d=Math.min(256,e.byteLength??r.byteLength-c);if(c<0||d<0||c+d>r.byteLength)throw new Error("Preview range is outside the buffer.");return{data:d?await r.readAsync(c,d):new Uint8Array,format:e.format}}let t=r.device.getTextureFormatInfo(r.format);if(t.packed)throw new Error("Packed texture previews are not supported.");if(r.device.type!=="webgpu")throw new Error("Texture previews require WebGPU.");if(!((r.props.usage??0)&Be.Texture.COPY_SRC))throw new Error("Preview requires COPY_SRC usage.");if(r.samples!==1||t.compressed||r.format.startsWith("depth")||r.format.startsWith("stencil"))throw new Error("Preview requires a single-sample, uncompressed color texture.");let o=e.baseMipLevel??0,n=Math.min(32,e.width??Math.max(1,r.width>>o)),i=Math.min(32,e.height??Math.max(1,r.height>>o)),a=r.computeMemoryLayout({width:n,height:i,depthOrArrayLayers:1}),s=r.device.createBuffer({byteLength:a.byteLength,usage:Be.Buffer.MAP_READ|Be.Buffer.COPY_DST}),u=r.device.createCommandEncoder();try{u.copyTextureToBuffer({sourceTexture:r,destinationBuffer:s,mipLevel:o,origin:[0,0,e.baseArrayLayer??0],width:n,height:i,depthOrArrayLayers:1,bytesPerRow:a.bytesPerRow}),r.device.submit(u.finish());let c=await s.readAsync(),d=n*t.bytesPerPixel,m=new Uint8Array(d*i);for(let f=0;f<i;f++)m.set(c.subarray(f*a.bytesPerRow,f*a.bytesPerRow+d),f*d);return{data:m,width:n,height:i,format:r.format}}finally{s.destroy(),u.destroy()}}var N=ee(K(),1);Nn();Ie();var gt=class{compare;values=[];constructor(e){this.compare=e}peek(){return this.values[0]}push(e){let t=this.values.length;for(this.values.push(e);t>0;){let o=Math.floor((t-1)/2);if(this.compare(this.values[o],e)<=0)break;this.values[t]=this.values[o],t=o}this.values[t]=e}pop(){let e=this.values[0],t=this.values.pop();if(this.values.length&&t!==void 0){let o=0;for(;o*2+1<this.values.length;){let n=o*2+1;if(n+1<this.values.length&&this.compare(this.values[n+1],this.values[n])<0&&n++,this.compare(t,this.values[n])<=0)break;this.values[o]=this.values[n],o=n}this.values[o]=t}return e}};var yt=ee(K(),1);function Jn(r){let e=oi(r.nodes),t=ni(e,r.buffers.values()),o=ii(e,r.textures.values()),n=new Map,i=new Map,a=[];try{for(let s of t){s.buffer=r.device.createBuffer({id:`${r.id}-transient-buffer-${t.indexOf(s)}`,byteLength:s.byteLength,usage:s.usage});for(let u of s.handles)n.set(u,s.buffer)}for(let s of o){s.texture=r.device.createTexture({...s.descriptor,id:`${r.id}-transient-texture-${o.indexOf(s)}`});for(let u of s.handles)i.set(u,s.texture)}for(let s of e)a.push({node:s,executable:s.compile({device:r.device})})}catch(s){for(let u of a)u.executable.destroy?.();for(let u of t)u.buffer?.destroy();for(let u of o)u.texture?.destroy();throw s}return ti(r,e,a,n,i,t,o)}async function ei(r){let e=oi(r.nodes),t=ni(e,r.buffers.values()),o=ii(e,r.textures.values()),n=new Map,i=new Map;try{for(let p of t){p.buffer=r.device.createBuffer({id:`${r.id}-transient-buffer-${t.indexOf(p)}`,byteLength:p.byteLength,usage:p.usage});for(let h of p.handles)n.set(h,p.buffer)}for(let p of o){p.texture=r.device.createTexture({...p.descriptor,id:`${r.id}-transient-texture-${o.indexOf(p)}`});for(let h of p.handles)i.set(h,p.texture)}let a=yt.PipelineFactory.beginAsyncCompilation(r.device),s=e.map(async p=>({node:p,executable:p.compileAsync?await p.compileAsync({device:r.device}):p.compile({device:r.device})}));yt.PipelineFactory.endAsyncCompilation(r.device,a);let[u,c]=await Promise.all([Promise.allSettled(s),Promise.allSettled(a)]),d=[],m=c.find(p=>p.status==="rejected"),f=m?.status==="rejected"?m.reason:void 0;for(let p of u)p.status==="fulfilled"?d.push(p.value):f??=p.reason;if(f){for(let p of d)p.executable.destroy?.();throw f}return ti(r,e,d,n,i,t,o)}catch(a){for(let s of t)s.buffer?.destroy();for(let s of o)s.texture?.destroy();throw a}}function ti(r,e,t,o,n,i,a){let s=Array.from(r.buffers.values()),u=s.filter(b=>!b.transient),c=s.filter(b=>b.transient),d=je(u.map(b=>b.byteLength),"imported buffer capacities"),m=je(c.map(b=>b.byteLength),"logical transient buffer capacities"),f=$e(d,m,"logical buffer capacities"),p=je(i.map(b=>b.byteLength),"physical transient buffer capacities"),h=Math.max(0,m-p),x=Array.from(r.textures.values()),w=x.filter(b=>!b.transient),G=x.filter(b=>b.transient),L=je(w.map(po),"imported texture estimates"),C=je(G.map(po),"logical transient texture estimates"),W=$e(L,C,"logical texture estimates"),g=je(a.map(b=>b.byteLength),"physical transient texture estimates"),l=Math.max(0,C-g),T={nodeOrder:e.map(b=>b.id),importedBufferCount:u.length,importedBufferBytes:d,logicalBufferCount:s.length,logicalBufferBytes:f,logicalTransientBufferCount:c.length,physicalTransientBufferCount:i.length,logicalTransientBytes:m,physicalTransientBytes:p,reusedTransientBytes:h,reusePercentage:m>0?h/m*100:0,importedTextureCount:w.length,importedTextureBytes:L,logicalTextureCount:x.length,logicalTextureBytes:W,logicalTransientTextureCount:G.length,physicalTransientTextureCount:a.length,logicalTransientTextureBytes:C,physicalTransientTextureBytes:g,reusedTransientTextureBytes:l,textureReusePercentage:C>0?l/C*100:0,logicalResourceBytes:$e(f,W,"logical resource estimates"),physicalTransientResourceBytes:$e(p,g,"physical transient resource estimates")},S=Ya(r.device,s,e);return{device:r.device,id:r.id,buffers:new Map(r.buffers),textures:new Map(r.textures),externalTextures:new Map(r.externalTextures),compiledNodes:t,transientBuffers:o,transientTextures:n,bufferTransientAllocations:i,textureTransientAllocations:a,stats:T,preflight:S}}function qa(r){if("buffer"in r){let t=r.buffer,o="buffer"in t?t:void 0;return Object.freeze({id:o?o.buffer.id:t.id,kind:"buffer",usage:r.usage,byteOffset:o?.byteOffset??0,byteLength:o?o.length===0?0:(o.length-1)*o.byteStride+o.rowByteLength:t.byteLength,...o?{format:o.format,length:o.length}:{}})}let e="texture"in r?r.texture:r.externalTexture;return Object.freeze({id:"texture"in e?e.texture.id:e.id,kind:"externalTexture"in r?"external-texture":"texture",usage:r.usage,width:e.width,height:e.height,..."texture"in e?{baseMipLevel:e.baseMipLevel,baseArrayLayer:e.baseArrayLayer,mipLevelCount:e.mipLevelCount,arrayLayerCount:e.arrayLayerCount,aspect:e.aspect}:{},..."format"in e?{format:e.format,depth:e.depth}:{}})}function Ya(r,e,t){let o=t.map(s=>{let u=s.workload??{};return Object.freeze({id:s.id,...s.description===void 0?{}:{description:s.description},type:s.type,resources:Object.freeze((s.resources??[]).map(qa)),...u.operation?{operation:u.operation}:{},...u.variant?{variant:u.variant}:{},...s.publication?{publication:Object.freeze({...s.publication})}:{},...s.condition?{condition:Object.freeze(s.condition.source==="cpu"?{id:s.condition.id,source:"cpu",mode:"skip"}:{id:s.condition.id,source:"gpu",mode:"indirect",bufferId:s.condition.buffer.id,byteOffset:s.condition.byteOffset??0})}:{},commandCount:u.commandCount??0,maximumWorkgroupCount:u.maximumWorkgroupCount??0,maximumInvocationCount:u.maximumInvocationCount??0,readByteLength:u.readByteLength??0,writeByteLength:u.writeByteLength??0})}),n=e.reduce((s,u)=>Math.max(s,u.byteLength),0),i=t.reduce((s,u)=>{for(let c of u.resources??[])ve(c)&&(c.usage==="storage-read"||c.usage==="storage-write"||c.usage==="storage-read-write")&&(s=Math.max(s,mo(c.buffer).size));return s},0),a=s=>o.reduce((u,c)=>{let d=c[s];return typeof d=="number"?$e(u,d,"workload estimates"):u},0);return Object.freeze({nodes:Object.freeze(o),annotatedNodeCount:t.filter(s=>s.workload!==void 0).length,conditionalNodeCount:t.filter(s=>s.condition!==void 0).length,commandCount:a("commandCount"),maximumWorkgroupCount:a("maximumWorkgroupCount"),maximumInvocationCount:a("maximumInvocationCount"),readByteLength:a("readByteLength"),writeByteLength:a("writeByteLength"),largestBufferByteLength:n,largestStorageBufferBindingByteLength:i,maxBufferByteLength:r.limits.maxBufferSize,maxStorageBufferBindingByteLength:r.limits.maxStorageBufferBindingSize,fitsDeviceLimits:n<=r.limits.maxBufferSize&&i<=r.limits.maxStorageBufferBindingSize})}function Q(r){return"buffer"in r?r.buffer:r}function ue(r){return"texture"in r?r.texture:r}function ve(r){return"buffer"in r}function xt(r){return"texture"in r}function ri(r){if(r.type==="copy")return;let e=(r.resources??[]).filter(t=>ve(t)&&(t.usage==="storage-read"||t.usage==="storage-write"||t.usage==="storage-read-write"));for(let t=0;t<e.length;t++){let o=e[t];for(let n=t+1;n<e.length;n++){let i=e[n];if(o.buffer===i.buffer||Q(o.buffer)!==Q(i.buffer)||!fo(o.usage)&&!fo(i.usage))continue;let a=mo(o.buffer),s=mo(i.buffer);if(a.offset<s.offset+s.size&&s.offset<a.offset+a.size){let u=Q(o.buffer);throw new Error(`GPUCommandGraph node "${r.id}" has overlapping writable storage bindings for buffer "${u.id}" (${Xn(a)} and ${Xn(s)}). Bind the shared range once or align the views to non-overlapping storage binding ranges.`)}}}}function mo(r){if(!("buffer"in r))return{offset:0,size:r.byteLength};let e=256,t=Math.floor(r.byteOffset/e)*e,o=r.byteOffset-t,n=r.length===0?r.rowByteLength:(r.length-1)*r.byteStride+r.rowByteLength;return{offset:t,size:o+Math.max(n,r.rowByteLength)}}function Xn(r){return`${r.offset}\u2013${r.offset+r.size} bytes`}function Xa(r){return r==="storage-read"||r==="storage-read-write"||r==="uniform"||r==="copy-source"||r==="indirect"||r==="vertex"||r==="index"}function fo(r){return r==="storage-write"||r==="storage-read-write"||r==="copy-destination"}function Kn(r){return r==="sampled"||r==="storage-read"||r==="storage-read-write"||r==="render-attachment"||r==="copy-source"}function co(r){return r==="storage-write"||r==="storage-read-write"||r==="render-attachment"||r==="copy-destination"}function oi(r){let e=new Map(r.map(m=>[m.id,m])),t=new Map,o=new Map,n=new Map,i=new Map;for(let m of r){let f=new Set(m.dependsOn??[]);for(let p of f)if(!e.has(p))throw new Error(`GPUCommandGraph node "${m.id}" depends on missing node "${p}"`);for(let p of m.resources??[])if(ve(p)){let h=Q(p.buffer);if(Xa(p.usage)){let x=o.get(h);x&&f.add(x);let w=n.get(h)??new Set;w.add(m.id),n.set(h,w)}if(fo(p.usage)){let x=o.get(h);x&&f.add(x);for(let w of n.get(h)??[])w!==m.id&&f.add(w);n.set(h,new Set),o.set(h,m.id)}}else if(xt(p)){let h=ue(p.texture),x=i.get(h)??[];for(let w of x)w.nodeId!==m.id&&Ka(w.resource,p)&&(Kn(p.usage)&&co(w.resource.usage)||co(p.usage)&&(Kn(w.resource.usage)||co(w.resource.usage)))&&f.add(w.nodeId);x.push({nodeId:m.id,resource:p}),i.set(h,x)}f.delete(m.id),t.set(m.id,f)}let a=r.map(()=>[]),s=new Map(r.map((m,f)=>[m.id,f])),u=r.map(m=>t.get(m.id).size);for(let[m,f]of r.entries())for(let p of t.get(f.id))a[s.get(p)].push(m);let c=u.flatMap((m,f)=>m===0?[f]:[]),d=[];for(;c.length;){let m=[];for(let f of c){d.push(r[f]);for(let p of a[f])--u[p]===0&&m.push(p)}c=m.sort((f,p)=>f-p)}if(d.length!==r.length)throw new Error("GPUCommandGraph contains a dependency cycle");return d}function Ka(r,e){let t=ue(r.texture),o=ue(e.texture);if(t!==o)return!1;let n=Zn(r.texture),i=Zn(e.texture);return Za(n.aspect,i.aspect)&&Qn(n.baseMipLevel,n.mipLevelCount,i.baseMipLevel,i.mipLevelCount)&&Qn(n.baseArrayLayer,n.arrayLayerCount,i.baseArrayLayer,i.arrayLayerCount)}function Zn(r){return"texture"in r?r:{aspect:"all",baseMipLevel:0,mipLevelCount:r.mipLevels,baseArrayLayer:0,arrayLayerCount:r.dimension==="3d"?1:r.depth}}function Za(r,e){return r==="all"||e==="all"||r===e}function Qn(r,e,t,o){return r<t+o&&t<r+e}function ni(r,e){let t=ai(r,s=>ve(s)?Q(s.buffer):null),o=[],n=Array.from(e).filter(s=>s.transient).map(s=>({buffer:s,lifetime:t.get(s)})).sort((s,u)=>(s.lifetime?.firstUse??Number.MAX_SAFE_INTEGER)-(u.lifetime?.firstUse??Number.MAX_SAFE_INTEGER)),i=new gt((s,u)=>s.allocation.lastUse-u.allocation.lastUse||s.index-u.index),a=new gt((s,u)=>s.allocation.byteLength-u.allocation.byteLength||s.index-u.index);for(let{buffer:s,lifetime:u}of n){if(!u)continue;for(;i.peek()&&i.peek().allocation.lastUse<u.firstUse;)a.push(i.pop());let c=a.pop();c||(c={allocation:{byteLength:0,usage:0,lastUse:-1,handles:[]},index:o.length},o.push(c.allocation));let{allocation:d}=c;d.byteLength=Math.max(d.byteLength,s.byteLength),d.usage|=s.usage,d.lastUse=u.lastUse,d.handles.push(s),i.push(c)}return o}function ii(r,e){let t=ai(r,i=>xt(i)?ue(i.texture):null),o=[],n=Array.from(e).filter(i=>i.transient).map(i=>({texture:i,lifetime:t.get(i)})).sort((i,a)=>(i.lifetime?.firstUse??Number.MAX_SAFE_INTEGER)-(a.lifetime?.firstUse??Number.MAX_SAFE_INTEGER));for(let{texture:i,lifetime:a}of n){if(!a)continue;let s=o.find(u=>u.lastUse<a.firstUse&&Ja(u.descriptor,i));s||(s={descriptor:Qa(i),byteLength:po(i),lastUse:-1,handles:[]},o.push(s)),s.descriptor.usage|=i.usage,s.lastUse=a.lastUse,s.handles.push(i)}return o}function ai(r,e){let t=new Map;return r.forEach((o,n)=>{for(let i of o.resources??[]){let a=e(i);if(!a||!("transient"in a)||!a.transient)continue;let s=t.get(a);s?s.lastUse=n:t.set(a,{firstUse:n,lastUse:n})}}),t}function Qa(r){return{id:r.id,format:r.format,width:r.width,height:r.height,usage:r.usage,dimension:r.dimension,depth:r.depth,mipLevels:r.mipLevels,samples:r.samples}}function Ja(r,e){return r.format===e.format&&r.width===e.width&&r.height===e.height&&r.dimension===e.dimension&&r.depth===e.depth&&r.mipLevels===e.mipLevels&&r.samples===e.samples}function po(r){let e=0;for(let o=0;o<r.mipLevels;o++)e=$e(e,yt.textureFormatDecoder.computeMemoryLayout({format:r.format,width:Math.max(1,r.width>>o),height:r.dimension==="1d"?1:Math.max(1,r.height>>o),depth:r.dimension==="3d"?Math.max(1,r.depth>>o):r.depth,byteAlignment:1}).byteLength,`texture "${r.id}" mip estimates`);let t=e*r.samples;if(!Number.isSafeInteger(t))throw new Error(`GPUCommandGraph texture "${r.id}" byte estimate exceeds safe integer range`);return t}function $e(r,e,t){let o=r+e;if(!Number.isSafeInteger(o))throw new Error(`GPUCommandGraph ${t} exceed safe integer range`);return o}function je(r,e){return r.reduce((t,o)=>$e(t,o,e),0)}Ie();var Se=class{id;byteLength;usage;transient;graph;defaultBuffer;constructor(e,t,o,n){this.graph=e,this.id=t.id,this.byteLength=t.byteLength,this.usage=t.usage,this.transient=o,this.defaultBuffer=n}},ce=class{buffer;format;length;byteOffset;byteStride;rowByteLength;constructor(e,t){this.buffer=e,this.format=t.format,this.length=t.length,this.byteOffset=t.byteOffset,this.byteStride=t.byteStride,this.rowByteLength=t.rowByteLength}},B=class{chunks;id;name;format;length;valueLength;stride;byteStride;rowByteLength;data;constructor(e){if(this.id=e.id,this.name=e.name,this.format=e.format,this.length=e.length,this.valueLength=e.valueLength,this.stride=e.stride,this.byteStride=e.byteStride,this.rowByteLength=e.rowByteLength,e.data.some(t=>t.format!==e.format)||e.data.reduce((t,o)=>t+o.length,0)!==e.length)throw new Error(`${e.id} length must equal its ordered source chunks, with matching formats`);this.data=Object.freeze([...e.data]),this.chunks=Ge(this.data)}},ne=class{id;format;width;height;usage;dimension;depth;mipLevels;samples;transient;frameScoped;graph;defaultTexture;constructor(e,t,o,n,i=!1){this.graph=e,this.id=t.id,this.format=t.format,this.width=t.width,this.height=t.height,this.usage=t.usage,this.dimension=t.dimension,this.depth=t.depth,this.mipLevels=t.mipLevels,this.samples=t.samples,this.transient=o,this.frameScoped=i,this.defaultTexture=n}},Ue=class{id;width;height;graph;constructor(e,t){this.graph=e,this.id=t.id,this.width=t.width,this.height=t.height}},Ce=class{texture;format;dimension;aspect;baseMipLevel;mipLevelCount;baseArrayLayer;arrayLayerCount;width;height;depth;constructor(e,t){this.texture=e,this.format=e.format,this.dimension=t.dimension,this.aspect=t.aspect,this.baseMipLevel=t.baseMipLevel,this.mipLevelCount=t.mipLevelCount,this.baseArrayLayer=t.baseArrayLayer,this.arrayLayerCount=t.arrayLayerCount,this.width=t.width,this.height=t.height,this.depth=t.depth}};function lo(r,e){switch(e.type){case"compute":{let{type:t,...o}=e;r.addComputePass(o);return}case"render":{let{type:t,...o}=e;r.addRenderPass(o);return}case"copy":{let{type:t,...o}=e;r.addCopyPass(o);return}}}function _e(r,e){for(let t of e)lo(r,t)}function M(r){return{...r,type:"compute"}}var es=4,vt=class{nodeCount;budget;plan;encodeNodeRange;nextStepIndex=0;currentPublishedProgress=0;constructor(e){fi(e.budget),this.plan=e.plan,this.nodeCount=e.plan.nodeCount,this.budget=Object.freeze({...e.budget}),this.encodeNodeRange=e.encodeNodeRange}get completed(){return this.nextStepIndex>=this.plan.stepCount}get progress(){return this.plan.stepCount===0?1:this.nextStepIndex/this.plan.stepCount}get publishedProgress(){return this.currentPublishedProgress}encodeNext(e,t){if(this.completed)throw new Error("GPUCommandGraph execution has already completed");let o=this.plan.steps[this.nextStepIndex],n=this.encodeNodeRange(e,t,o.firstNodeIndex,o.nextNodeIndex);return this.nextStepIndex++,o.publishable&&(this.currentPublishedProgress=this.progress),{...o,encoding:n,progress:this.progress,completed:this.completed,publishedProgress:this.publishedProgress}}};function xo(r,e,t={}){fi(e);let o=t.latencyPriority??"normal",n=t.publicationPolicy??"final";if(!["interactive","normal","background"].includes(o))throw new Error(`GPUCommandGraph execution latency priority "${o}" is invalid`);if(!["final","progressive"].includes(n))throw new Error(`GPUCommandGraph execution publication policy "${n}" is invalid`);let i=r.nodes,a=[],s=0;for(;s<i.length;){let c=s,d=si();for(;s<i.length;){let p=ui(d,i[s]);if(s>c&&ci(p,e)||(d=p,s++,n==="progressive"&&i[s-1].publication)||ts(d,e))break}let m=Object.freeze(n==="progressive"?i.slice(c,s).flatMap(p=>p.publication?[p.publication]:[]):[]),f=s===i.length;a.push(Object.freeze({stepIndex:a.length,firstNodeIndex:c,nextNodeIndex:s,...d,exceedsBudget:ci(d,e),latencyPriority:o,publications:m,publishable:f||m.length>0}))}let u=i.reduce((c,d)=>ui(c,d),si());return Object.freeze({...u,annotatedNodeCount:r.annotatedNodeCount,stepCount:a.length,oversizedStepCount:a.filter(c=>c.exceedsBudget).length,latencyPriority:o,publicationPolicy:n,publicationCount:a.reduce((c,d)=>c+d.publications.length,0),steps:Object.freeze(a)})}function si(){return{nodeCount:0,commandCount:0,maximumInvocationCount:0,readByteLength:0,writeByteLength:0,conditionalNodeCount:0}}function ui(r,e){return{nodeCount:r.nodeCount+1,commandCount:r.commandCount+e.commandCount,maximumInvocationCount:r.maximumInvocationCount+e.maximumInvocationCount,readByteLength:r.readByteLength+e.readByteLength,writeByteLength:r.writeByteLength+e.writeByteLength,conditionalNodeCount:r.conditionalNodeCount+(e.condition?1:0)}}function ci(r,e){return r.maximumInvocationCount>e.maximumInvocationCount||e.maximumNodeCount!==void 0&&r.nodeCount>e.maximumNodeCount||e.maximumCommandCount!==void 0&&r.commandCount>e.maximumCommandCount||e.maximumReadByteLength!==void 0&&r.readByteLength>e.maximumReadByteLength||e.maximumWriteByteLength!==void 0&&r.writeByteLength>e.maximumWriteByteLength}function ts(r,e){return r.maximumInvocationCount>=e.maximumInvocationCount||e.maximumNodeCount!==void 0&&r.nodeCount>=e.maximumNodeCount||e.maximumCommandCount!==void 0&&r.commandCount>=e.maximumCommandCount||e.maximumReadByteLength!==void 0&&r.readByteLength>=e.maximumReadByteLength||e.maximumWriteByteLength!==void 0&&r.writeByteLength>=e.maximumWriteByteLength}function fi(r){let e=[["maximumInvocationCount",r.maximumInvocationCount],["maximumNodeCount",r.maximumNodeCount],["maximumCommandCount",r.maximumCommandCount],["maximumReadByteLength",r.maximumReadByteLength],["maximumWriteByteLength",r.maximumWriteByteLength]];for(let[t,o]of e)if(o!==void 0&&(!Number.isSafeInteger(o)||o<=0))throw new Error(`GPUCommandGraph execution ${t} must be a positive safe integer`)}function rs(r,e,t,o){let n=0;return{computePass:new Proxy(r,{get(a,s){if(s==="dispatch")return()=>{if(n>0)throw new Error(`GPUCommandGraph GPU-conditional compute node "${o}" must encode exactly one dispatch`);n++,a.dispatchIndirect(e,t)};if(s==="dispatchIndirect")return()=>{throw new Error(`GPUCommandGraph GPU-conditional compute node "${o}" must use dispatch(); the graph supplies its indirect command`)};let u=Reflect.get(a,s,a);return typeof u=="function"?u.bind(a):u}}),assertDispatched:()=>{if(n!==1)throw new Error(`GPUCommandGraph GPU-conditional compute node "${o}" must encode exactly one dispatch`)}}}var St=class{readResource;stats;canReadGPUTimings;nodes;constructor(e,t,o=e.filter(s=>s.stats.type==="compute"&&s.stats.condition?.outcome!=="skipped").length,n,i,a){this.readResource=a,this.nodes=e,this.canReadGPUTimings=e.some(c=>c.timestamp!==void 0);let s=e.filter(c=>c.stats.condition?.outcome!=="skipped"),u=s.filter(c=>c.stats.type==="compute").length;this.stats={cpuEncodeTimeMilliseconds:t,cpuEncodeStartTimeMilliseconds:n,cpuEncodeEndTimeMilliseconds:i,nodeCount:s.length,skippedNodeCount:e.length-s.length,computePassCount:o,coalescedComputeNodeCount:u-o,timestampedNodeCount:e.filter(c=>c.timestamp!==void 0).length,nodes:e.map(c=>c.stats)}}async readTimings(){let e=await Promise.all(this.nodes.map(async({stats:a,timestamp:s})=>{if(!s)return{...a};let{querySet:u,snapshot:c,beginIndex:d,endIndex:m}=s;if(u.device.type!=="webgpu")return{...a,gpuTimeMilliseconds:await u.readTimestampDuration(d,m)};let f=await(c??u).readResults({firstQuery:d,queryCount:m-d+1}),p=f[0],h=f[f.length-1];return{...a,gpuStartTimeMilliseconds:Number(p)/1e6,gpuEndTimeMilliseconds:Number(h)/1e6,gpuTimeMilliseconds:Number(h-p)/1e6}})),t=e.filter(a=>a.gpuTimeMilliseconds!==void 0),o=e.filter(a=>a.gpuStartTimeMilliseconds!==void 0),i=this.nodes.flatMap(a=>a.timestamp?.snapshot?.clockCorrelation?[a.timestamp.snapshot.clockCorrelation]:[]).sort((a,s)=>a.uncertaintyMilliseconds-s.uncertaintyMilliseconds)[0];return{...i?{clockCorrelation:i}:{},cpuEncodeStartTimeMilliseconds:this.stats.cpuEncodeStartTimeMilliseconds,cpuEncodeEndTimeMilliseconds:this.stats.cpuEncodeEndTimeMilliseconds,...o.length>0?{gpuStartTimeMilliseconds:Math.min(...o.map(a=>a.gpuStartTimeMilliseconds)),gpuEndTimeMilliseconds:Math.max(...o.map(a=>a.gpuEndTimeMilliseconds))}:{},cpuEncodeTimeMilliseconds:this.stats.cpuEncodeTimeMilliseconds,...t.length>0?{gpuTimeMilliseconds:t.reduce((a,s)=>a+(s.gpuTimeMilliseconds??0),0)}:{},nodes:e}}},He=class{device;id;autotuner;buffers=new Map;textures=new Map;externalTextures=new Map;importedBufferHandles=new Map;dynamicBufferHandles=new Map;nodes=[];nodeIds=new Set;compiled=!1;constructor(e,t={}){if(e.type!=="webgpu")throw new Error("GPUCommandGraph requires a WebGPU device");Jt(e,"construction"),this.device=e,this.id=t.id??"gpu-command-graph",this.autotuner=t.autotuner}importBuffer(e,t){this.assertMutable(),mi(e,this.device),t&&pi(t,e,this.device);let o=this.addBuffer(new Se(this,e,!1,t));if(t){let n=Tt(t);this.importedBufferHandles.has(n)||this.importedBufferHandles.set(n,o),t instanceof De&&!this.dynamicBufferHandles.has(t)&&this.dynamicBufferHandles.set(t,o)}return o}createTransientBuffer(e){return this.assertMutable(),mi(e,this.device),this.addBuffer(new Se(this,e,!0))}createDataView(e,t){this.assertBuffer(e);let o=V(t.format),n=t.byteOffset??0,i=t.rowByteLength??o.byteLength,a=t.byteStride??i;return us(e,{length:t.length,byteOffset:n,byteStride:a,rowByteLength:i}),new ce(e,{format:t.format,length:t.length,byteOffset:n,byteStride:a,rowByteLength:i})}importGPUData(e,t){return this.importGPUDataView(e,t)}importGPUVector(e,t){if(t.bufferLayout)throw new Error(`GPUCommandGraph import "${e}" does not accept interleaved GPUVector data`);let o=t.format??t.data[0]?.format;if(!o)throw new Error(`GPUCommandGraph import "${e}" requires GPUVector.format`);if(we(o)||Te(o))throw new Error(`GPUCommandGraph import "${e}" requires a fixed-width GPUVector format`);let n=V(o),i=t.data.map((a,s)=>{if(a.format!==o)throw new Error(`GPUCommandGraph import "${e}" requires matching GPUVector chunk formats`);let u=t.data.length===1?e:`${e}-chunk-${s}`;return this.importGPUDataView(u,a)});return new B({id:e,name:t.name??e,format:o,length:t.length,valueLength:t.valueLength??t.data.reduce((a,s)=>a+s.valueLength,0),stride:t.stride??t.data[0]?.stride??n.components*(n.listSize??1),byteStride:t.byteStride??i[0]?.byteStride??n.byteLength,rowByteLength:t.rowByteLength??i[0]?.rowByteLength??n.byteLength,data:i})}importTexture(e,t){this.assertMutable();let o=ho(e,this.device);return t&&yo(t,o,this.device),this.addTexture(new ne(this,o,!1,t))}importFrameTexture(e){this.assertMutable();let t=ho(e,this.device);return this.addTexture(new ne(this,t,!1,void 0,!0))}importExternalTexture(e){return this.assertMutable(),as(e,this.device),this.addExternalTexture(new Ue(this,e))}createTransientTexture(e){this.assertMutable();let t=ho(e,this.device);return this.addTexture(new ne(this,t,!0))}createTextureView(e,t={}){this.assertTexture(e);let o=ss(e,t);return new Ce(e,o)}add(e){if(this.assertMutable(),"getNodes"in e)for(let t of e.getNodes())this.add(t);else if("getCommandNodes"in e)_e(this,e.getCommandNodes(this));else if("type"in e)lo(this,e);else for(let t of e)this.add(t)}addComputePass(e){this.addNode({...e,type:"compute"})}addRenderPass(e){e.attachments&&this.validateRenderAttachments(e.id,e.attachments);let t=e.attachments?[...e.attachments.colorAttachments.map(o=>({texture:o,usage:"render-attachment"})),...(e.attachments.resolveTargets??[]).filter(o=>o!==null).map(o=>({texture:o,usage:"render-attachment"})),...e.attachments.depthStencilAttachment?[{texture:e.attachments.depthStencilAttachment,usage:"render-attachment"}]:[]]:[];this.addNode({...e,resources:[...e.resources??[],...t],type:"render"})}addCopyPass(e){this.addNode({...e,type:"copy"})}compile(){return this.assertMutable(),Jt(this.device,"compilation"),this.compiled=!0,new qe(Jn({device:this.device,id:this.id,buffers:this.buffers,textures:this.textures,externalTextures:this.externalTextures,nodes:this.nodes}))}async compileAsync(){return this.assertMutable(),Jt(this.device,"compilation"),this.compiled=!0,new qe(await ei({device:this.device,id:this.id,buffers:this.buffers,textures:this.textures,externalTextures:this.externalTextures,nodes:this.nodes}))}addNode(e){if(this.assertMutable(),!e.id)throw new Error("GPUCommandGraph node id is required");if(this.nodeIds.has(e.id))throw new Error(`GPUCommandGraph node id "${e.id}" is already in use`);for(let[t,o]of Object.entries(e.workload??{}))if(t==="operation"||t==="variant"){if(typeof o!="string"||!o)throw new Error(`GPUCommandGraph node "${e.id}" workload ${t} must be nonempty`)}else if(typeof o!="number"||!Number.isSafeInteger(o)||o<0)throw new Error(`GPUCommandGraph node "${e.id}" workload ${t} must be a nonnegative safe integer`);if(e.condition){if(!e.condition.id)throw new Error(`GPUCommandGraph node "${e.id}" condition id is required`);if(e.condition.source==="cpu"){if(typeof e.condition.evaluate!="function")throw new Error(`GPUCommandGraph node "${e.id}" CPU condition requires an evaluate function`)}else{let t=e.condition;if(e.type!=="compute"||t.mode!=="indirect")throw new Error(`GPUCommandGraph node "${e.id}" GPU conditions require an indirect compute node`);if(!t.buffer)throw new Error(`GPUCommandGraph node "${e.id}" GPU condition requires an indirect command buffer`);this.assertBuffer(t.buffer);let o=t.byteOffset??0;if(!Number.isSafeInteger(o)||o<0||o%4!==0)throw new Error(`GPUCommandGraph node "${e.id}" GPU condition byteOffset must be a nonnegative multiple of 4`);if(o+3*es>t.buffer.byteLength)throw new Error(`GPUCommandGraph node "${e.id}" GPU condition indirect command exceeds buffer "${t.buffer.id}"`);(e.resources??[]).some(n=>ve(n)&&Q(n.buffer)===t.buffer&&n.usage==="indirect")||(e={...e,resources:[...e.resources??[],{buffer:t.buffer,usage:"indirect"}]})}}if(e.publication){if(e.condition)throw new Error(`GPUCommandGraph node "${e.id}" cannot combine conditional execution with a publication boundary`);if(!e.publication.id)throw new Error(`GPUCommandGraph node "${e.id}" publication id is required`);if(!["partial","complete"].includes(e.publication.completeness))throw new Error(`GPUCommandGraph node "${e.id}" publication completeness is invalid`)}for(let t of e.resources??[])if(ve(t)){let o=Q(t.buffer);this.assertBuffer(o),ds(o,t.usage)}else if(xt(t)){let o=ue(t.texture);this.assertTexture(o),ms(o,t.usage),fs(t.texture,t.usage)}else{if(this.assertExternalTexture(t.externalTexture),t.usage!=="sampled")throw new Error("GPUCommandGraph external textures support sampled access only");if(e.type!=="render")throw new Error("GPUCommandGraph external textures can be sampled only by render nodes")}ri(e),this.nodeIds.add(e.id),this.nodes.push(e)}addBuffer(e){if(this.buffers.has(e.id)||this.textures.has(e.id)||this.externalTextures.has(e.id))throw new Error(`GPUCommandGraph resource id "${e.id}" is already in use`);return this.buffers.set(e.id,e),e}addTexture(e){if(this.buffers.has(e.id)||this.textures.has(e.id)||this.externalTextures.has(e.id))throw new Error(`GPUCommandGraph resource id "${e.id}" is already in use`);return this.textures.set(e.id,e),e}addExternalTexture(e){if(this.buffers.has(e.id)||this.textures.has(e.id)||this.externalTextures.has(e.id))throw new Error(`GPUCommandGraph resource id "${e.id}" is already in use`);return this.externalTextures.set(e.id,e),e}importGPUDataView(e,t){if(!t.format)throw new Error(`GPUCommandGraph import "${e}" requires GPUData.format`);let o=Tt(t.buffer),n={byteLength:os(t),usage:o.usage},i=t.buffer instanceof De?this.getDynamicBufferHandle(t.buffer,n):this.getImportedBufferHandle(o,n);return i||(i=this.importBuffer({id:e,byteLength:o.byteLength,usage:o.usage},t.buffer),t.buffer instanceof De?this.dynamicBufferHandles.set(t.buffer,i):this.importedBufferHandles.set(o,i)),this.createDataView(i,{format:t.format,length:t.length,byteOffset:t.byteOffset,byteStride:t.byteStride,rowByteLength:t.rowByteLength})}getDynamicBufferHandle(e,t){let o=this.dynamicBufferHandles.get(e);if(o?.defaultBuffer===e&&bt(o,t))return o;this.dynamicBufferHandles.delete(e);for(let n of this.buffers.values())if(n.defaultBuffer===e&&bt(n,t))return this.dynamicBufferHandles.set(e,n),n}getImportedBufferHandle(e,t){let o=this.importedBufferHandles.get(e);if(o?.defaultBuffer&&Tt(o.defaultBuffer)===e&&bt(o,t))return o;this.importedBufferHandles.delete(e);for(let[n,i]of this.dynamicBufferHandles)if(n.buffer===e&&bt(i,t))return this.importedBufferHandles.set(e,i),i;for(let n of this.buffers.values())if(n.defaultBuffer===e&&bt(n,t))return this.importedBufferHandles.set(e,n),n}assertBuffer(e){if(e.graph!==this||this.buffers.get(e.id)!==e)throw new Error(`Graph buffer "${e.id}" does not belong to ${this.id}`)}assertTexture(e){if(e.graph!==this||this.textures.get(e.id)!==e)throw new Error(`Graph texture "${e.id}" does not belong to ${this.id}`)}assertExternalTexture(e){if(e.graph!==this||this.externalTextures.get(e.id)!==e)throw new Error(`Graph external texture "${e.id}" does not belong to ${this.id}`)}assertMutable(){if(this.compiled)throw new Error(`GPUCommandGraph "${this.id}" has already been compiled`)}validateRenderAttachments(e,t){if(t.colorAttachments.length===0&&!t.depthStencilAttachment)throw new Error(`GPUCommandGraph render node "${e}" requires at least one attachment`);let o=[...t.colorAttachments,...t.depthStencilAttachment?[t.depthStencilAttachment]:[]];for(let a of o)if(this.assertTexture(a.texture),a.dimension!=="2d"||a.mipLevelCount!==1||a.arrayLayerCount!==1)throw new Error(`GPUCommandGraph render node "${e}" attachments must be single-mip, single-layer 2d views`);let[n,...i]=o;for(let a of i)if(a.width!==n.width||a.height!==n.height||a.texture.samples!==n.texture.samples)throw new Error(`GPUCommandGraph render node "${e}" attachments must have matching extent and samples`);this.validateResolveTargets(e,t)}validateResolveTargets(e,t){let o=t.resolveTargets;if(o){if(this.device.type!=="webgpu")throw new Error(`GPUCommandGraph render node "${e}" resolve targets require WebGPU`);if(o.length!==t.colorAttachments.length)throw new Error(`GPUCommandGraph render node "${e}" requires one resolve entry per color attachment`);for(let n=0;n<o.length;n++){let i=o[n];if(!i)continue;let a=t.colorAttachments[n];if(this.assertTexture(i.texture),a.texture.samples<=1||i.texture.samples!==1||a.format!==i.format||a.width!==i.width||a.height!==i.height)throw new Error(`GPUCommandGraph render node "${e}" resolve target ${n} must match a multisampled source and be single-sampled`);if(i.dimension!=="2d"||i.aspect!=="all"||i.mipLevelCount!==1||i.arrayLayerCount!==1)throw new Error(`GPUCommandGraph render node "${e}" resolve targets must be single-mip, single-layer 2d color views`)}}}},qe=class{device;id;stats;preflight;capabilities;buffers;textures;externalTextures;compiledNodes;activeImportedBufferHandles=new Set;writableImportedBufferHandles=new Set;activeImportedTextureHandles=new Set;writableImportedTextureHandles=new Set;transientBuffers;transientTextures;bufferTransientAllocations;textureTransientAllocations;cachedTextureViews=[];cachedFramebuffers=[];lastFrameIds=new Map;lastExternalTextureFrameIds=new Map;consumedExternalTextures=new WeakSet;destroyed=!1;get[Symbol.toStringTag](){return"CompiledGPUCommandGraph"}toString(){let e=this.destroyed?"destroyed":"active";return`${this[Symbol.toStringTag]}:"${this.id}":${this.stats.nodeOrder.length} nodes:${this.stats.physicalTransientResourceBytes}B transient:${e}`}toJSON(){return this.toString()}constructor(e){this.device=e.device,this.id=e.id,this.buffers=e.buffers,this.textures=e.textures,this.externalTextures=e.externalTextures,this.compiledNodes=e.compiledNodes;for(let{node:t}of this.compiledNodes)for(let o of t.resources??[])if(ve(o)){let n=Q(o.buffer);n.transient||(this.activeImportedBufferHandles.add(n),(o.usage==="storage-write"||o.usage==="storage-read-write"||o.usage==="copy-destination")&&this.writableImportedBufferHandles.add(n))}else if(xt(o)){let n=ue(o.texture);n.transient||(this.activeImportedTextureHandles.add(n),(o.usage==="storage-write"||o.usage==="storage-read-write"||o.usage==="render-attachment"||o.usage==="copy-destination")&&this.writableImportedTextureHandles.add(n))}this.transientBuffers=e.transientBuffers,this.transientTextures=e.transientTextures,this.bufferTransientAllocations=e.bufferTransientAllocations,this.textureTransientAllocations=e.textureTransientAllocations,this.stats=e.stats,this.preflight=e.preflight,this.capabilities=is(this.device)}encode(e,t){return this.encodeNodeRange(e,t,0,this.compiledNodes.length)}getExecutionPlan(e,t={}){return xo(this.preflight,e,t)}createExecution(e,t={}){return new vt({plan:this.getExecutionPlan(e,t),budget:e,encodeNodeRange:(o,n,i,a)=>this.encodeNodeRange(o,n,i,a)})}encodeNodeRange(e,t,o,n){if(this.destroyed)throw new Error(`CompiledGPUCommandGraph "${this.id}" has been destroyed`);if(Jt(this.device,"encoding"),e.device!==this.device)throw new Error("GPUCommandGraph command encoder must belong to the graph device");let i=wt(),a=this.resolveImportedBuffers(t.buffers??{});ns(t.frameTextures??{},t.externalTextures??{});let s=this.resolveImportedTextures(t.textures??{},t.frameTextures??{}),u=this.resolveExternalTextures(t.externalTextures??{});for(let[g,l]of s.frameIds)this.lastFrameIds.set(g,l);for(let[g,l]of u.frameIds)this.lastExternalTextureFrameIds.set(g,l);for(let g of u.textures.values())this.consumedExternalTextures.add(g);let c=s.textures,d=g=>{let l=Q(g),T=l.transient?this.transientBuffers.get(l):a.get(l);if(!T)throw new Error(`GPUCommandGraph buffer "${l.id}" is not bound`);return T},m=g=>{let l=ue(g),T=l.transient?this.transientTextures.get(l):c.get(l);if(!T)throw new Error(`GPUCommandGraph texture "${l.id}" is not bound`);return T},f=g=>{let l=m(g);if(g instanceof ne||hs(g))return l.view;if(g.texture.frameScoped){let b=this.lastFrameIds.get(g.texture);for(let O=this.cachedTextureViews.length-1;O>=0;O--){let P=this.cachedTextureViews[O];P.logicalView===g&&P.frameId!==b&&(this.destroyFramebuffersUsingView(P.view),P.view.destroy(),this.cachedTextureViews.splice(O,1))}}let T=this.cachedTextureViews.find(b=>b.logicalView===g&&b.texture===l&&(!g.texture.frameScoped||b.frameId===this.lastFrameIds.get(g.texture)));if(T)return T.view;let S=l.createView({format:g.format,dimension:g.dimension,aspect:g.aspect,baseMipLevel:g.baseMipLevel,mipLevelCount:g.mipLevelCount,baseArrayLayer:g.baseArrayLayer,arrayLayerCount:g.arrayLayerCount});return this.cachedTextureViews.push({logicalView:g,texture:l,view:S,...g.texture.frameScoped?{frameId:this.lastFrameIds.get(g.texture)}:{}}),S},p=g=>{let l=u.textures.get(g);if(!l)throw new Error(`GPUCommandGraph external texture "${g.id}" is not bound`);return l},h={commandEncoder:e,parameters:t.parameters,getBuffer:d,getTexture:m,getTextureView:f,getExternalTexture:p},x=[],w,G=0,L=t.coalesceComputePasses!==!1&&e.getTimeProfilingQuerySet()===null,C=()=>{let g=w;w=void 0,g?.end()};try{for(let g=o;g<n;g++){let{node:l,executable:T}=this.compiledNodes[g],S=wt();if(l.condition?.source==="cpu"){let P=!1;try{P=l.condition.evaluate(t.parameters)}catch(D){let U=D instanceof Error?D.message:String(D);throw new Error(`GPUCommandGraph CPU condition "${l.condition.id}" failed for node "${l.id}": ${U}`)}if(!P){let D=wt();x.push({stats:{id:l.id,description:l.description,resources:this.preflight.nodes[g].resources,operation:l.workload?.operation,type:l.type,cpuEncodeStartTimeMilliseconds:S,cpuEncodeEndTimeMilliseconds:D,cpuEncodeTimeMilliseconds:D-S,hasGPUTimestamps:!1,condition:{id:l.condition.id,source:"cpu",outcome:"skipped"}}});continue}}let b;switch(l.type){case"compute":{w||(w=e.beginComputePass({id:l.id}),G++);let P=w;b=di(P,e),b&&(L=!1),P.pushDebugGroup(l.id);try{let D=l.condition?.source==="gpu"?l.condition:void 0,U=D?rs(P,d(D.buffer),D.byteOffset??0,l.id):void 0;T.encode({...h,computePass:U?.computePass??P}),U?.assertDispatched()}finally{P.popDebugGroup()}L||C();break}case"render":{C();let P=T,D=P.getRenderPassProps?.(h)??{id:l.id};if(l.attachments&&D.framebuffer!==void 0)throw new Error(`GPUCommandGraph render node "${l.id}" cannot supply framebuffer with graph attachments`);if(l.attachments?.resolveTargets&&D.resolveTargets!==void 0)throw new Error(`GPUCommandGraph render node "${l.id}" cannot supply resolveTargets with graph attachments`);let U=l.attachments?this.getFramebuffer(l.id,l.attachments,f):void 0,X=l.attachments?.resolveTargets?.map(le=>le?f(le):null),ie=e.beginRenderPass({...D,...U?{framebuffer:U}:{},...X?{resolveTargets:X}:{}});b=di(ie,e),ie.pushDebugGroup(l.id);try{P.encode({...h,renderPass:ie})}finally{ie.popDebugGroup(),ie.end()}break}case"copy":C(),T.encode(h);break}let O=wt();x.push({stats:{id:l.id,description:l.description,resources:this.preflight.nodes[g].resources,operation:l.workload?.operation,type:l.type,cpuEncodeStartTimeMilliseconds:S,cpuEncodeEndTimeMilliseconds:O,cpuEncodeTimeMilliseconds:O-S,hasGPUTimestamps:b!==void 0,...l.condition?{condition:{id:l.condition.id,source:l.condition.source,outcome:l.condition.source==="gpu"?"gpu-resolved":"executed"}}:{}},timestamp:b})}}finally{C()}let W=wt();return new St(x,W-i,G,i,W,async(g,l)=>{if(this.destroyed)throw new Error("Graph has been destroyed.");let T=this.compiledNodes.findIndex(({node:U})=>U.id===g),S=this.compiledNodes[T]?.node.resources?.[l],b=this.preflight.nodes[T]?.resources?.[l];if(!S||!b)throw new Error("Resource is unavailable.");if("externalTexture"in S)throw new Error("External images cannot be read back.");let O="buffer"in S?Q(S.buffer):ue(S.texture);if("frameScoped"in O&&O.frameScoped)throw new Error("Frame textures expire after presentation.");let P="buffer"in S?d(S.buffer):m(S.texture),D=P instanceof N.Buffer?this.transientBuffers:this.transientTextures;if(O.transient&&[...D].some(([U,X])=>U!==O&&X===P))throw new Error("Transient allocation is reused; logical contents are no longer available.");return Fo(P,b)})}destroy(){if(!this.destroyed){for(let{executable:e}of this.compiledNodes)e.destroy?.();for(let e of this.cachedFramebuffers)e.framebuffer.destroy();for(let e of this.cachedTextureViews)e.view.destroy();for(let e of this.bufferTransientAllocations)e.buffer?.destroy();for(let e of this.textureTransientAllocations)e.texture?.destroy();this.destroyed=!0}}resolveImportedBuffers(e){let t=new Map,o=new Map;for(let[n,i]of this.buffers){if(i.transient)continue;let a=e[n]??i.defaultBuffer;if(!a)throw new Error(`GPUCommandGraph imported buffer "${n}" is required`);pi(a,i,this.device);let s=Tt(a);if(this.activeImportedBufferHandles.has(i)){let u=s.handle,c=typeof u=="object"&&u!==null||typeof u=="function"?u:s,d=o.get(c);if(d&&(this.writableImportedBufferHandles.has(d)||this.writableImportedBufferHandles.has(i)))throw new Error(`GPUCommandGraph imported buffers "${d.id}" and "${n}" resolve to the same physical buffer`);d||o.set(c,i)}t.set(i,s)}for(let n of Object.keys(e)){let i=this.buffers.get(n);if(!i||i.transient)throw new Error(`GPUCommandGraph has no imported buffer named "${n}"`)}return t}resolveImportedTextures(e,t){let o=new Map,n=new Map;for(let[a,s]of this.textures){if(s.transient)continue;if(s.frameScoped){let c=t[a];if(!c)throw new Error(`GPUCommandGraph frame texture "${a}" is required`);let d=this.lastFrameIds.get(s);if(d!==void 0&&c.frameId<=d)throw new Error(`GPUCommandGraph frame texture "${a}" frameId ${c.frameId} is stale; expected greater than ${d}`);yo(c.texture,s,this.device),o.set(s,go(c.texture)),n.set(s,c.frameId);continue}let u=e[a]??s.defaultTexture;if(!u)throw new Error(`GPUCommandGraph imported texture "${a}" is required`);yo(u,s,this.device),o.set(s,go(u))}for(let a of Object.keys(e)){let s=this.textures.get(a);if(!s||s.transient||s.frameScoped)throw new Error(`GPUCommandGraph has no imported texture named "${a}"`)}for(let a of Object.keys(t))if(!this.textures.get(a)?.frameScoped)throw new Error(`GPUCommandGraph has no frame texture named "${a}"`);let i=new Map;for(let[a,s]of o){if(!this.activeImportedTextureHandles.has(a))continue;let u=s.handle,c=typeof u=="object"&&u!==null||typeof u=="function"?u:s,d=i.get(c);if(d&&(this.writableImportedTextureHandles.has(d)||this.writableImportedTextureHandles.has(a)))throw new Error(`GPUCommandGraph imported textures "${d.id}" and "${a.id}" resolve to the same physical texture`);d||i.set(c,a)}return{textures:o,frameIds:n}}resolveExternalTextures(e){let t=new Map,o=new Map;for(let[n,i]of this.externalTextures){let a=e[n];if(!a)throw new Error(`GPUCommandGraph external texture "${n}" is required`);let s=this.lastExternalTextureFrameIds.get(i);if(s!==void 0&&a.frameId<=s)throw new Error(`GPUCommandGraph external texture "${n}" frameId ${a.frameId} is stale; expected greater than ${s}`);if(this.consumedExternalTextures.has(a.texture))throw new Error(`GPUCommandGraph external texture "${n}" requires a fresh binding for each frame`);cs(a.texture,i,this.device),t.set(i,a.texture),o.set(i,a.frameId)}for(let n of Object.keys(e))if(!this.externalTextures.has(n))throw new Error(`GPUCommandGraph has no external texture named "${n}"`);return{textures:t,frameIds:o}}getFramebuffer(e,t,o){let n=t.colorAttachments.map(o),i=t.depthStencilAttachment?o(t.depthStencilAttachment):void 0,a=this.cachedFramebuffers.find(c=>c.nodeId===e&&c.depthStencilAttachment===i&&c.colorAttachments.length===n.length&&c.colorAttachments.every((d,m)=>d===n[m]));if(a)return a.framebuffer;let s=t.colorAttachments[0]??t.depthStencilAttachment,u=this.device.createFramebuffer({id:`${this.id}-${e}-framebuffer-${this.cachedFramebuffers.length}`,width:s.width,height:s.height,colorAttachments:n,depthStencilAttachment:i??null});return this.cachedFramebuffers.push({nodeId:e,colorAttachments:n,depthStencilAttachment:i,framebuffer:u}),u}destroyFramebuffersUsingView(e){for(let t=this.cachedFramebuffers.length-1;t>=0;t--){let o=this.cachedFramebuffers[t];(o.depthStencilAttachment===e||o.colorAttachments.some(n=>n===e))&&(o.framebuffer.destroy(),this.cachedFramebuffers.splice(t,1))}}};function Tt(r){return r instanceof De?r.buffer:r}function os(r){let e=r.length===0?0:(r.length-1)*r.byteStride+r.rowByteLength;return r.byteOffset+e}function bt(r,e){return r.byteLength>=e.byteLength&&(r.usage&e.usage)===e.usage}function go(r){if(r instanceof Qt){if(!r.isReady)throw new Error(`GPUCommandGraph dynamic texture "${r.id}" is not ready`);return r.texture}return r}function ns(r,e){let t;for(let[o,n]of[...Object.entries(r),...Object.entries(e)]){if(!Number.isSafeInteger(n.frameId)||n.frameId<0)throw new Error(`GPUCommandGraph frame resource "${o}" requires a valid frameId`);if(t!==void 0&&n.frameId!==t)throw new Error("GPUCommandGraph frame resources must share one frameId per encoding");t=n.frameId}}function di(r,e){let{timestampQuerySet:t,beginTimestampIndex:o,endTimestampIndex:n}=r.props;return t&&Number.isSafeInteger(o)&&Number.isSafeInteger(n)&&o>=0&&n>o?{querySet:t,snapshot:t.device.type==="webgpu"?e.captureTimestampQuerySet?.(t):void 0,beginIndex:o,endIndex:n}:void 0}function is(r){return Object.freeze({timestampQueries:r.features.has("timestamp-query"),subgroups:r.features.has("subgroups"),subgroupId:r.wgslLanguageFeatures.has("subgroup_id"),subgroupMinSize:r.info.subgroupMinSize,subgroupMaxSize:r.info.subgroupMaxSize,softwareAdapter:r.info.gpu==="software"||r.info.gpuType==="cpu"||!!r.info.fallback,maxBufferByteLength:r.limits.maxBufferSize,maxStorageBufferBindingByteLength:r.limits.maxStorageBufferBindingSize,maxComputeInvocationsPerWorkgroup:r.limits.maxComputeInvocationsPerWorkgroup,maxComputeWorkgroupsPerDimension:r.limits.maxComputeWorkgroupsPerDimension})}function Jt(r,e){if(r.isLost)throw new Error(`GPUCommandGraph cannot perform ${e} after device loss`)}function wt(){return globalThis.performance?.now()??Date.now()}function mi(r,e){if(!r.id)throw new Error("GPUCommandGraph buffer id is required");if(!Number.isSafeInteger(r.byteLength)||r.byteLength<0)throw new Error(`GPUCommandGraph buffer "${r.id}" requires a valid byteLength`);if(r.byteLength>e.limits.maxBufferSize)throw new Error(`GPUCommandGraph buffer "${r.id}" exceeds the device buffer limit`);if(!Number.isSafeInteger(r.usage)||r.usage<=0)throw new Error(`GPUCommandGraph buffer "${r.id}" requires buffer usage flags`)}function as(r,e){if(!r.id)throw new Error("GPUCommandGraph external texture id is required");for(let[t,o]of Object.entries({width:r.width,height:r.height}))if(!Number.isSafeInteger(o)||o<=0)throw new Error(`GPUCommandGraph external texture "${r.id}" ${t} must be a positive safe integer`);if(r.width>e.limits.maxTextureDimension2D||r.height>e.limits.maxTextureDimension2D)throw new Error(`GPUCommandGraph external texture "${r.id}" exceeds device dimension limits`)}function ho(r,e){if(!r.id)throw new Error("GPUCommandGraph texture id is required");let t=r.dimension??"2d",o=t==="cube"?6:r.depth??1,n=r.mipLevels??1,i=r.samples??1;for(let[c,d]of Object.entries({width:r.width,height:r.height,depth:o,mipLevels:n,samples:i}))if(!Number.isSafeInteger(d)||d<=0)throw new Error(`GPUCommandGraph texture "${r.id}" ${c} must be a positive safe integer`);if(!Number.isSafeInteger(r.usage)||r.usage<=0)throw new Error(`GPUCommandGraph texture "${r.id}" requires texture usage flags`);if(!e.isTextureFormatSupported(r.format))throw new Error(`GPUCommandGraph texture "${r.id}" format ${r.format} is unsupported`);if(t==="1d"&&(r.height!==1||o!==1))throw new Error(`GPUCommandGraph 1d texture "${r.id}" requires height and depth 1`);if(t==="cube"&&r.width!==r.height)throw new Error(`GPUCommandGraph cube texture "${r.id}" must be square`);if(t==="cube-array"&&(r.width!==r.height||o%6!==0))throw new Error(`GPUCommandGraph cube-array texture "${r.id}" must be square with depth divisible by 6`);if(n>e.getMipLevelCount(r.width,r.height,t==="3d"?o:1))throw new Error(`GPUCommandGraph texture "${r.id}" declares too many mip levels`);let a=t==="1d"?e.limits.maxTextureDimension1D:t==="3d"?e.limits.maxTextureDimension3D:e.limits.maxTextureDimension2D,s=t==="3d"?e.limits.maxTextureDimension3D:e.limits.maxTextureDimension2D,u=t==="3d"?e.limits.maxTextureDimension3D:e.limits.maxTextureArrayLayers;if(r.width>a||r.height>s||o>u)throw new Error(`GPUCommandGraph texture "${r.id}" exceeds device dimension limits`);return{id:r.id,format:r.format,width:r.width,height:r.height,usage:r.usage,dimension:t,depth:o,mipLevels:n,samples:i}}function ss(r,e){let t=e.dimension??r.dimension,o=e.aspect??"all",n=e.baseMipLevel??0,i=e.mipLevelCount??r.mipLevels-n,a=e.baseArrayLayer??0,s=r.dimension==="3d"?1:r.depth,u=e.arrayLayerCount??s-a;for(let[f,p]of Object.entries({baseMipLevel:n,mipLevelCount:i,baseArrayLayer:a,arrayLayerCount:u}))if(!Number.isSafeInteger(p)||p<0)throw new Error(`Graph texture view ${f} must be a non-negative safe integer`);if(i===0||n+i>r.mipLevels)throw new Error(`Graph texture view exceeds texture "${r.id}" mip levels`);if(u===0||a+u>s||r.dimension==="3d"&&(a!==0||u!==1))throw new Error(`Graph texture view exceeds texture "${r.id}" array layers`);let c=Math.max(1,r.width>>n),d=r.dimension==="1d"?1:Math.max(1,r.height>>n),m=r.dimension==="3d"?Math.max(1,r.depth>>n):u;return{dimension:t,aspect:o,baseMipLevel:n,mipLevelCount:i,baseArrayLayer:a,arrayLayerCount:u,width:c,height:d,depth:m}}function us(r,e){for(let[n,i]of Object.entries(e))if(!Number.isSafeInteger(i)||i<0)throw new Error(`Graph data view ${n} must be a non-negative safe integer`);if(e.length>1&&e.byteStride===0)throw new Error("Graph data view byteStride must be positive for multiple rows");if(e.rowByteLength>e.byteStride&&e.length>1)throw new Error("Graph data view rowByteLength cannot exceed byteStride");let t=e.length===0?0:(e.length-1)*e.byteStride+e.rowByteLength,o=e.byteOffset+t;if(!Number.isSafeInteger(t)||!Number.isSafeInteger(o))throw new Error("Graph data view byte range exceeds safe integer precision");if(o>r.byteLength)throw new Error(`Graph data view exceeds buffer "${r.id}" byte length`)}function pi(r,e,t){let o=Tt(r);if(o.device!==t)throw new Error(`GPUCommandGraph buffer "${e.id}" belongs to another device`);if(o.byteLength<e.byteLength)throw new Error(`GPUCommandGraph buffer "${e.id}" is smaller than compiled capacity`);if((o.usage&e.usage)!==e.usage)throw new Error(`GPUCommandGraph buffer "${e.id}" has incompatible usage flags`)}function yo(r,e,t){let o=go(r);if(o.device!==t)throw new Error(`GPUCommandGraph texture "${e.id}" belongs to another device`);for(let[n,i,a]of[["format",e.format,o.format],["dimension",e.dimension,o.dimension],["width",e.width,o.width],["height",e.height,o.height],["depth",e.depth,o.depth],["mipLevels",e.mipLevels,o.mipLevels],["samples",e.samples,o.samples]])if(a!==i)throw new Error(`GPUCommandGraph texture "${e.id}" has incompatible ${n} (${a} !== ${i})`);if((o.props.usage&e.usage)!==e.usage)throw new Error(`GPUCommandGraph texture "${e.id}" has incompatible usage flags`)}function cs(r,e,t){if(r.device!==t)throw new Error(`GPUCommandGraph external texture "${e.id}" belongs to another device`);if(r.destroyed)throw new Error(`GPUCommandGraph external texture "${e.id}" has been destroyed`);if(r.width!==e.width||r.height!==e.height)throw new Error(`GPUCommandGraph external texture "${e.id}" has incompatible dimensions (${r.width}x${r.height} !== ${e.width}x${e.height})`)}function ds(r,e){let t=ps(e);if((r.usage&t)!==t)throw new Error(`GPUCommandGraph buffer "${r.id}" does not declare usage required by ${e}`)}function ms(r,e){let t=ls(e);if((r.usage&t)!==t)throw new Error(`GPUCommandGraph texture "${r.id}" does not declare usage required by ${e}`)}function fs(r,e){if(r instanceof Ce&&e.startsWith("storage-")&&r.mipLevelCount!==1)throw new Error("GPUCommandGraph storage texture views must contain exactly one mip level")}function ps(r){switch(r){case"storage-read":case"storage-write":case"storage-read-write":return N.Buffer.STORAGE;case"uniform":return N.Buffer.UNIFORM;case"copy-source":return N.Buffer.COPY_SRC;case"copy-destination":return N.Buffer.COPY_DST;case"indirect":return N.Buffer.INDIRECT;case"vertex":return N.Buffer.VERTEX;case"index":return N.Buffer.INDEX}}function ls(r){switch(r){case"sampled":return N.Texture.SAMPLE;case"storage-read":case"storage-write":case"storage-read-write":return N.Texture.STORAGE;case"render-attachment":return N.Texture.RENDER;case"copy-source":return N.Texture.COPY_SRC;case"copy-destination":return N.Texture.COPY_DST}}function hs(r){let e=r.texture;return r.dimension===e.dimension&&r.aspect==="all"&&r.baseMipLevel===0&&r.mipLevelCount===e.mipLevels&&r.baseArrayLayer===0&&r.arrayLayerCount===(e.dimension==="3d"?1:e.depth)}var q=class{id;type="composite";operations;metadata;constructor(e){let t=Array.isArray(e)?{operations:e}:e;this.id=t.id??"gpu-composite-operation",this.operations=Object.freeze([...t.operations]),this.metadata=t.metadata}};function bo(r){let e=r;return typeof e.id=="string"&&typeof e.type=="string"}function wo(r){return r instanceof q?Object.freeze({id:r.id,type:r.type,...r.metadata?{metadata:r.metadata}:{},children:Object.freeze(r.operations.map(wo))}):bo(r)?Object.freeze({id:r.id,type:r.type,...r.metadata?{metadata:r.metadata}:{}}):Object.freeze({id:r.constructor?.name??"gpu-command-node-producer",type:"command-node-producer"})}function li(r){return typeof r.getCommandNodes=="function"}var Ye=class{id;format;constructor(e,t){if(!e)throw new Error("GPUGraphScalar id is required");this.id=e,this.format=t}},Xe=class{id;format;length;external;chunkLengths;constructor(e){if(!e.id)throw new Error("GPUGraphVector id is required");if(!Number.isSafeInteger(e.length)||e.length<0)throw new Error(`${e.id} vector length must be a non-negative safe integer`);if(this.id=e.id,this.format=e.format,this.length=e.length,this.external=e.external??!1,e.chunkLengths){if(e.chunkLengths.some(t=>!Number.isSafeInteger(t)||t<0)||e.chunkLengths.reduce((t,o)=>t+o,0)!==e.length)throw new Error(`${e.id} chunk lengths must partition its logical length`);this.chunkLengths=Object.freeze([...e.chunkLengths])}}},Ke=class{id;format;width;height;usage;dimension;depth;mipLevels;samples;external;constructor(e){this.id=e.id,this.format=e.format,this.width=e.width,this.height=e.height,this.usage=e.usage,this.dimension=e.dimension,this.depth=e.depth,this.mipLevels=e.mipLevels,this.samples=e.samples,this.external=e.external??!1}},de=class{texture;props;constructor(e,t={}){this.texture=e,this.props=Object.freeze({...t})}};var er=class{id;programOperations=[];programScalars=new Map;programVectors=new Map;programTextures=new Map;constructor(e={}){this.id=e.id??"gpu-program"}add(e){return this.assertOperationLike(e),this.addOperationLike(e),this}scalar(e,t){this.assertValueId(e);let o=new Ye(e,t);return this.programScalars.set(e,o),o}vector(e,t,o,n={}){this.assertValueId(e);let i=new Xe({id:e,format:t,length:o,...n});return this.programVectors.set(e,i),i}texture(e,t){this.assertValueId(e);let o=new Ke({...t,id:e});return this.programTextures.set(e,o),o}textureView(e,t={}){if(this.programTextures.get(e.id)!==e)throw new Error(`Undeclared program texture "${e.id}"`);return new de(e,t)}get textures(){return Object.freeze([...this.programTextures.values()])}get scalars(){return Object.freeze([...this.programScalars.values()])}get vectors(){return Object.freeze([...this.programVectors.values()])}get operations(){return Object.freeze([...this.programOperations])}get operationTree(){return Object.freeze(this.programOperations.map(wo))}assertValueId(e){if(this.programScalars.has(e)||this.programVectors.has(e)||this.programTextures.has(e))throw new Error(`${this.id} value "${e}" already exists`)}addOperationLike(e){if(Array.isArray(e)){for(let t of e)this.addOperationLike(t);return}this.programOperations.push(e)}assertOperationLike(e){if(Array.isArray(e)){for(let t of e)this.assertOperationLike(t);return}if(!e||typeof e!="object")throw new Error(`${this.id} accepts GPU operations only`)}};function hi(r,e={}){return new q({id:e.id,operations:r})}var tr=class extends He{computeLowerings=[];loweringsSuspended=0;otherLowerings=[];addRenderPass(e){let t={...e,type:"render"},o=this.otherLowerings.at(-1);o&&(t=o(t)),super.addRenderPass(t)}addCopyPass(e){let t={...e,type:"copy"},o=this.otherLowerings.at(-1);o&&(t=o(t)),super.addCopyPass(t)}withOtherLowering(e,t){this.otherLowerings.push(e);try{return t()}finally{this.otherLowerings.pop()}}constructor(e,t={}){super(e,t)}addComputePass(e){let t=e;if(this.loweringsSuspended===0)for(let o=this.computeLowerings.length-1;o>=0;o--)t=this.computeLowerings[o](t);super.addComputePass(t)}withComputeLowering(e,t){this.computeLowerings.push(e);try{return t()}finally{this.computeLowerings.pop()}}withoutComputeLowering(e){this.loweringsSuspended++;try{return e()}finally{this.loweringsSuspended--}}};var To=ee(K(),1);Ie();var vo=Uint32Array.BYTES_PER_ELEMENT,So=256;function Re(r,e,t){let o=V(r.format);if(!e.includes(r.format)||r.byteStride!==o.byteLength||r.rowByteLength!==o.byteLength||r.byteOffset%vo!==0)throw new Error(`${t} must be packed, uint32-aligned ${e.join(" or ")} GPU data`)}function gi(r,e){Re(r,["uint32"],e)}function z(r,e){let t=Ct(r),o={buffer:e(r),...t};if(o.offset+o.size>r.buffer.byteLength)throw new Error("GraphDataView storage binding exceeds its logical buffer");return o}function Ct(r){let e=Math.floor(r.byteOffset/So)*So,t=r.byteOffset-e,o=r.length===0?r.rowByteLength:(r.length-1)*r.byteStride+r.rowByteLength;return{offset:e,size:t+Math.max(o,r.rowByteLength)}}function E(r){if(r.byteOffset%vo!==0)throw new Error("GraphDataView storage binding must be uint32-aligned");return r.byteOffset%So/vo}function Me(r,e,t,o,n=To.Buffer.STORAGE){if(!Number.isSafeInteger(o)||o<0)throw new Error("Transient GraphDataView length must be a non-negative safe integer");if((n&To.Buffer.STORAGE)===0)throw new Error("Transient GraphDataView usage must include Buffer.STORAGE");if(we(t)||Te(t))throw new Error("Transient GraphDataView requires a fixed-width GPUVector format");let i=V(t),a=r.createTransientBuffer({id:e,byteLength:Math.max(o,1)*i.byteLength,usage:n});return r.createDataView(a,{format:t,length:o})}function yi(r,e,t){if(!Number.isSafeInteger(t)||t<0||t>e.length)throw new Error("Graph prefix must fit within the input");if(t===e.length)return e;let o=e instanceof B?e.data:[e],n=t,i=[];for(let a of o){let s=Math.min(n,a.length);if(i.push(s===a.length?a:r.createDataView(a.buffer,{format:a.format,length:s,byteOffset:a.byteOffset,byteStride:a.byteStride,rowByteLength:a.rowByteLength})),n-=s,n===0)break}return e instanceof B?new B({...e,length:t,valueLength:t*(V(e.format).listSize??1),data:i}):i[0]}var nr=ee(K(),1);fe();function k(r,e){let[t,o,n]=e;for(let[i,a]of[["x",t],["y",o],["z",n]])if(!Number.isSafeInteger(a)||a<0)throw new Error(`compute dispatch ${i} workgroup count must be a non-negative safe integer`);return{...r,dispatchWorkgroups:Object.freeze([t,o,n])}}function rr(r){return r.dispatchWorkgroups}var or=ee(K(),1);var gs=16*1024,bi=new WeakMap;function wi(r){let e=r,t=bi.get(e);return t||(t=new Co(r),bi.set(e,t)),t}var Co=class{id;graph;buffer;capacityByteLength;nextByteOffset=0;slots=new Map;views=new Map;constructor(e,t="gpu-value-arena",o=gs){if(this.id=t,this.graph=e,!Number.isSafeInteger(o)||o<=0||o%4!==0)throw new Error(`${this.id} capacityByteLength must be a positive multiple of 4`);this.capacityByteLength=o,this.buffer=e.createTransientBuffer({id:`${this.id}-buffer`,byteLength:o,usage:or.Buffer.STORAGE|or.Buffer.COPY_SRC|or.Buffer.COPY_DST})}allocate(e,t){if(!e)throw new Error(`${this.id} slot id must not be empty`);if(this.slots.has(e))throw new Error(`${this.id} slot "${e}" already exists`);if(!["float32","uint32","sint32"].includes(t))throw new Error(`${this.id} unsupported slot format ${t}`);if(this.nextByteOffset+4>this.capacityByteLength)throw new Error(`${this.id} capacity exceeded while allocating "${e}"`);let o=Object.freeze({id:e,format:t,byteOffset:this.nextByteOffset});return this.nextByteOffset+=4,this.slots.set(e,o),this.views.set(e,new ce(this.buffer,{format:t,length:1,byteOffset:o.byteOffset,byteStride:4,rowByteLength:4})),o}get(e){return this.slots.get(e)}getSlots(){return Object.freeze([...this.slots.values()])}getView(e){let t=this.views.get(e.id);if(!t)throw new Error(`${this.id} does not contain slot "${e.id}"`);return t}get byteLength(){return this.nextByteOffset}get size(){return this.slots.size}get availableByteLength(){return this.capacityByteLength-this.nextByteOffset}};var Po=class{id;format;arena;slot;constructor(e,t){this.id=t.id,this.format=t.format,this.arena=e,this.slot=t}get byteOffset(){return this.slot.byteOffset}get wordOffset(){return this.slot.byteOffset>>>2}get view(){return this.arena.getView(this.slot)}};function Bo(r,e,t){let o=wi(r);return new Po(o,o.allocate(e,t))}function J(r,e="gpuValues"){let t=`${e}[${r.wordOffset}u]`;switch(r.format){case"float32":return`bitcast<f32>(${t})`;case"uint32":return t;case"sint32":return`bitcast<i32>(${t})`}}function Pe(r,e,t="gpuValues"){let o=`${t}[${r.wordOffset}u]`;switch(r.format){case"float32":return`${o} = bitcast<u32>(${e});`;case"uint32":return`${o} = ${e};`;case"sint32":return`${o} = bitcast<u32>(${e});`}}function Y(r,e,t="gpuValues"){return`@group(${r}) @binding(${e}) var<storage, read_write> ${t}: array<u32>;`}var Pt=class{id;active;workgroups;dispatchBuffer;constructor(e,t){if(this.id=t.id,this.active=t.active,this.workgroups=t.workgroups,t.active.arena.graph!==e)throw new Error(`${this.id} active scalar must belong to target graph`);this.dispatchBuffer=e.createTransientBuffer({id:`${this.id}-dispatch`,byteLength:12,usage:nr.Buffer.STORAGE|nr.Buffer.INDIRECT|nr.Buffer.COPY_SRC})}getUpdateCommandNodes(e,t=`${this.id}-update`){if(this.active.arena.graph!==e)throw new Error(`${this.id} active scalar must belong to target graph`);let o=this.active.arena.buffer,[n,i,a]=this.workgroups,s=`${Y(0,0)}
8
+ @group(0) @binding(1) var<storage, read_write> dispatch: array<u32>;
9
+ @compute @workgroup_size(1)
10
+ fn main() {
11
+ let enabled = ${J(this.active)} != 0u;
12
+ dispatch[0] = select(0u, ${n}u, enabled);
13
+ dispatch[1] = ${i}u;
14
+ dispatch[2] = ${a}u;
15
+ }`;return[M({id:t,workload:{operation:"GPUScalarDispatchGate",commandCount:1,maximumWorkgroupCount:1,maximumInvocationCount:1,readByteLength:4,writeByteLength:12},resources:[{buffer:o,usage:"storage-read"},{buffer:this.dispatchBuffer,usage:"storage-write"}],compile:({device:u})=>{let c=new I(u,{id:t,source:s,shaderLayout:{bindings:[{name:"gpuValues",type:"read-only-storage",group:0,location:0},{name:"dispatch",type:"storage",group:0,location:1}]}});return{encode:({computePass:d,getBuffer:m})=>{let f={gpuValues:m(o),dispatch:m(this.dispatchBuffer)};c.dispatch(d,{bindings:f,x:1,y:1,z:1})},destroy:()=>c.destroy()}}})]}get condition(){return{id:`${this.id}-active`,source:"gpu",mode:"indirect",buffer:this.dispatchBuffer}}};function ir(r,e,t){return e.flatMap(o=>{let n=rr(o);if(o.type!=="compute"||o.condition||!n)throw new Error("Gated primitives must expose unconditional compute nodes with exact dispatch geometry");let i=new Pt(r,{id:`${o.id}-gate`,active:t,workgroups:n});return[...i.getUpdateCommandNodes(r).map(a=>k(a,[1,1,1])),{...o,condition:i.condition}]})}fe();var ar=class{id;operation;left;right;output;constructor(e){this.id=e.id??`gpu-scalar-${e.operation}`,this.operation=e.operation,this.left=e.left,this.right=e.right,this.output=e.output,ys(this)}getCommandNodes(e){let t=this.left.arena;if(this.right&&this.right.arena!==t)throw new Error(`${this.id} operands must belong to the same GPUValueArena`);if(this.output.arena!==t)throw new Error(`${this.id} output must belong to the same GPUValueArena`);if(t.graph!==e)throw new Error(`${this.id} scalars must belong to the target graph`);let o=t.buffer,n=xs(this);return[k(M({id:this.id,workload:{operation:"GPUScalarCompute",commandCount:1,maximumWorkgroupCount:1,maximumInvocationCount:1,readByteLength:this.right?8:4,writeByteLength:4},resources:[{buffer:o,usage:"storage-write"}],compile:({device:i})=>{let a=new I(i,{id:this.id,source:n,shaderLayout:{bindings:[{name:"gpuValues",type:"storage",group:0,location:0}]}});return{encode:({computePass:s,getBuffer:u})=>{let c={gpuValues:u(o)};a.dispatch(s,{bindings:c,x:1,y:1,z:1})},destroy:()=>a.destroy()}}}),[1,1,1])]}};function ys(r){let e=r.operation==="copy"||r.operation==="sqrt",t=ws(r.operation);if(!e&&!r.right)throw new Error(`${r.id} ${r.operation} requires a right operand`);if(e&&r.right)throw new Error(`${r.id} ${r.operation} does not accept a right operand`);if(r.right&&r.right.format!==r.left.format)throw new Error(`${r.id} input scalar formats must match`);if(r.operation==="sqrt"&&r.left.format!=="float32")throw new Error(`${r.id} sqrt currently requires float32 input`);if(t){if(r.output.format!=="uint32")throw new Error(`${r.id} comparison output must be uint32`)}else if(r.output.format!==r.left.format)throw new Error(`${r.id} arithmetic output format must match input format`)}function xs(r){let e=J(r.left),t=r.right?J(r.right):void 0,o=bs(r.operation,e,t);return`${Y(0,0)}
16
+ @compute @workgroup_size(1) fn main(){${Pe(r.output,o)}}`}function bs(r,e,t){switch(r){case"copy":return e;case"add":return`(${e} + ${t})`;case"subtract":return`(${e} - ${t})`;case"multiply":return`(${e} * ${t})`;case"divide":return`(${e} / ${t})`;case"sqrt":return`sqrt(${e})`;case"min":return`min(${e}, ${t})`;case"max":return`max(${e}, ${t})`;case"equal":return`select(0u,1u,${e} == ${t})`;case"not-equal":return`select(0u,1u,${e} != ${t})`;case"less-than":return`select(0u,1u,${e} < ${t})`;case"less-than-or-equal":return`select(0u,1u,${e} <= ${t})`;case"greater-than":return`select(0u,1u,${e} > ${t})`;case"greater-than-or-equal":return`select(0u,1u,${e} >= ${t})`}}function ws(r){return["equal","not-equal","less-than","less-than-or-equal","greater-than","greater-than-or-equal"].includes(r)}fe();var Ze=class{props;id;constructor(e){this.props=e,this.id=e.id??`${e.output.id}-literal`}getCommandNodes(e){let{output:t,value:o}=this.props;if(t.arena.graph!==e)throw new Error(`${this.id} output must belong to target graph`);let n=t.format==="float32"?`f32(${o})`:t.format==="uint32"?`${o}u`:`${o}i`,i=`
17
+ ${Y(0,0)}
18
+
19
+ @compute @workgroup_size(1)
20
+ fn main() {
21
+ ${Pe(t,n)}
22
+ }
23
+ `,a=t.arena.buffer;return[k(M({id:this.id,workload:{operation:"GPUScalarLiteral",commandCount:1,maximumWorkgroupCount:1,maximumInvocationCount:1,readByteLength:0,writeByteLength:4},resources:[{buffer:a,usage:"storage-write"}],compile:({device:s})=>{let u=new I(s,{id:this.id,source:i,shaderLayout:{bindings:[{name:"gpuValues",type:"storage",group:0,location:0}]}});return{encode:({computePass:c,getBuffer:d})=>{let m={gpuValues:d(a)};u.dispatch(c,{bindings:m,x:1,y:1,z:1})},destroy:()=>u.destroy()}}}),[1,1,1])]}};fe();function sr(r,e,t,o){if(!Number.isSafeInteger(e)||e<0||e>4294967295)throw new Error(`${r} element count must be a non-negative uint32`);Ti(r,t);let n=Math.floor(o);if(!Number.isSafeInteger(n)||n<1)throw new Error("maxComputeWorkgroupsPerDimension must be a positive integer");let i=Math.max(1,Math.ceil(e/t)),a=Math.min(i,n),s=Math.min(Math.ceil(i/a),n),u=Math.ceil(i/a/s);if(u>n)throw new Error(`${r} requires ${i} workgroups, exceeding the 3D dispatch limit of ${n} per dimension`);return{x:a,y:s,z:u}}function ke(r,e){Ti("GPU dispatch",e);let t=Math.floor(4294967295/e)+1;return`let workgroupIndex = (workgroupId.z * ${r.y}u + workgroupId.y) * ${r.x}u + workgroupId.x;
24
+ if (workgroupIndex >= ${t}u) { return; }
25
+ let index = workgroupIndex * ${e}u + localInvocationIndex;`}function Ti(r,e){if(!Number.isSafeInteger(e)||e<2||e>4294967295||4294967296%e!==0)throw new Error(`${r} workgroup size must be a power of two greater than one`)}function A(r){return r instanceof B?r.data:[r]}function pe(r,e){let t=e[0]?.length??0;if(e.some(u=>u.length!==t))throw new Error("Aligned vectors must have equal logical lengths");let o=e.map(A),n=e.map(()=>0),i=e.map(()=>0),a=[],s=0;for(;s<t;){for(let m=0;m<o.length;m++)for(;o[m][n[m]]?.length===i[m];)n[m]++,i[m]=0;let u=o.map((m,f)=>m[n[f]]),c=Math.min(...u.map((m,f)=>m.length-i[f])),d=[];for(let m=0;m<u.length;m++){let f=u[m],p=u.findIndex((h,x)=>x<m&&h===f&&i[x]===i[m]);d.push(p>=0?d[p]:i[m]===0&&c===f.length?f:r.createDataView(f.buffer,{format:f.format,length:c,byteOffset:f.byteOffset+i[m]*f.byteStride,byteStride:f.byteStride,rowByteLength:f.rowByteLength}))}a.push(d);for(let m=0;m<i.length;m++)i[m]+=c;s+=c}return a}var ur=256,cr=class r{props;id;constructor(e){this.props=e,this.id=e.id??"gpu-vector-scalar-madd";for(let[t,o]of Object.entries({input:e.input,addend:e.addend,output:e.output}))for(let n of A(o))Re(n,["float32"],`${this.id} ${t}`);if(e.input.length!==e.addend.length||e.input.length!==e.output.length)throw new Error(`${this.id} vector lengths must match`)}getCommandNodes(e){let{input:t,scale:o,addend:n,output:i,gate:a}=this.props;if(t instanceof B||n instanceof B||i instanceof B)return pe(e,[t,n,i]).flatMap(([p,h,x],w)=>new r({id:`${this.id}-chunk-${w}`,input:p,addend:h,output:x,scale:o,gate:a}).getCommandNodes(e));if([t,n,i].some(p=>p.buffer.graph!==e)||o.arena.graph!==e)throw new Error(`${this.id} resources must belong to target graph`);if(i.length===0)return[];let s=o.arena.buffer,u=sr("GPUVectorScalarMADD",i.length,ur,e.device.limits.maxComputeWorkgroupsPerDimension),c=t===i?"outputValues":"inputValues",d=n===i?"outputValues":"addendValues",m=`
26
+ const LENGTH: u32 = ${i.length}u;
27
+ const I: u32 = ${E(t)}u;
28
+ const A: u32 = ${E(n)}u;
29
+ const O: u32 = ${E(i)}u;
30
+
31
+ ${t===i?"":"@group(0) @binding(0) var<storage, read> inputValues: array<f32>;"}
32
+ ${n===i?"":"@group(0) @binding(1) var<storage, read> addendValues: array<f32>;"}
33
+ @group(0) @binding(2) var<storage, read_write> outputValues: array<f32>;
34
+ ${Y(0,3)}
35
+
36
+ @compute @workgroup_size(${ur})
37
+ fn main(
38
+ @builtin(workgroup_id) workgroupId: vec3u,
39
+ @builtin(local_invocation_index) localInvocationIndex: u32
40
+ ) {
41
+ ${ke(u,ur)}
42
+ if (index >= LENGTH) {
43
+ return;
44
+ }
45
+
46
+ let x = ${c}[I + index];
47
+ let y = ${d}[A + index];
48
+ outputValues[O + index] = ${J(o)} * x + y;
49
+ }
50
+ `,f=[k(M({id:this.id,workload:{operation:"GPUVectorScalarMADD",commandCount:1,maximumWorkgroupCount:u.x*u.y*u.z,maximumInvocationCount:u.x*u.y*u.z*ur,readByteLength:t.length*8+4,writeByteLength:i.length*4},resources:[...t===i?[]:[{buffer:t,usage:"storage-read"}],...n===i?[]:[{buffer:n,usage:"storage-read"}],{buffer:i,usage:t===i||n===i?"storage-read-write":"storage-write"},{buffer:s,usage:"storage-read"}],compile:({device:p})=>{let h=new I(p,{id:this.id,source:m,shaderLayout:{bindings:[...t===i?[]:[{name:"inputValues",type:"read-only-storage",group:0,location:0}],...n===i?[]:[{name:"addendValues",type:"read-only-storage",group:0,location:1}],{name:"outputValues",type:"storage",group:0,location:2},{name:"gpuValues",type:"read-only-storage",group:0,location:3}]}});return{encode:({computePass:x,getBuffer:w})=>{let G={...t===i?{}:{inputValues:z(t,w)},...n===i?{}:{addendValues:z(n,w)},outputValues:z(i,w),gpuValues:w(s)};h.dispatch(x,{bindings:G,x:u.x,y:u.y,z:u.z})},destroy:()=>h.destroy()}}}),[u.x,u.y,u.z])];return a?ir(e,f,a.active):f}};fe();function dr(r,e={}){let t=r.features?.has("subgroups"),o=!e.requiresSubgroupId||r.wgslLanguageFeatures?.has("subgroup_id");return t&&o?"subgroups":"portable"}fe();Ie();function Eo(r,e,t,o){if(!Number.isSafeInteger(t)||!Number.isSafeInteger(o)||t<0||o<0||t+o>e.length)throw new Error("Graph range must fit the source");let n=[],i=e instanceof B?e.chunks:[{offset:0,length:e.length,data:e}],a=0,s=i.length;for(;a<s;){let u=Math.floor((a+s)/2);i[u].offset+i[u].length<=t?a=u+1:s=u}for(let u=a;u<i.length&&i[u].offset<t+o;u++){let{data:c,offset:d}=i[u],m=Math.max(t,d),f=Math.min(t+o,d+c.length);m<f&&n.push(m===d&&f===d+c.length?c:r.createDataView(c.buffer,{format:c.format,length:f-m,byteOffset:c.byteOffset+(m-d)*c.byteStride,byteStride:c.byteStride,rowByteLength:c.rowByteLength}))}return new B({id:`graph-range-${t}-${o}`,name:`graph-range-${t}-${o}`,stride:e instanceof B?e.stride:V(e.format).components*(V(e.format).listSize??1),format:e.format,length:o,valueLength:o*(V(e.format).listSize??1),byteStride:e.byteStride,rowByteLength:e.rowByteLength,data:n})}function vi(r,e,t){if([...e,...t].some(s=>s.length>4294967295))throw new Error("Logical lengths must fit uint32 addressing");let o=e.flatMap(A),n=t.flatMap(A);for(let s of[...o,...n])if(s.buffer.graph!==r)throw new Error("Views must belong to the target graph");let i=new Set(o.map(s=>s.buffer)),a=new Map;for(let s of n){if(i.has(s.buffer))throw new Error("Outputs must use separate buffers from inputs");if(!s.length)continue;let u=a.get(s.buffer)??[];u.push(s),a.set(s.buffer,u)}for(let s of a.values()){s.sort((c,d)=>c.byteOffset-d.byteOffset);let u=0;for(let c of s){if(c.byteOffset<u)throw new Error("Writable chunks must not overlap");u=c.byteOffset+(c.length-1)*c.byteStride+c.rowByteLength}}}function Qe(r,e){if(!Number.isSafeInteger(r)||r<1||r>4294967295||!Number.isSafeInteger(e)||e<1)throw new Error("Invalid chunk dispatch");let t=Math.min(r,e),o=Math.min(Math.ceil(r/t),e),n=Math.ceil(r/t/o);if(n>e)throw new Error("Chunk operation exceeds the 3D dispatch limit");return{x:t,y:o,z:n}}function mr(r,e){let t=[...Object.entries(e.inputs??{}),...Object.entries(e.outputs)];for(let[,n]of t)if(Ct(n).size>r.device.limits.maxStorageBufferBindingSize)throw new Error("Active chunks must fit a storage binding");let o=e.dispatch.x*e.dispatch.y*e.dispatch.z;return k(M({id:e.id,workload:{commandCount:1,maximumWorkgroupCount:o,maximumInvocationCount:o*(e.workgroupSize??256)},resources:[...Object.values(e.inputs??{}).map(n=>({buffer:n,usage:"storage-read"})),...Object.values(e.outputs).map(n=>({buffer:n,usage:"storage-read-write"}))],compile:({device:n})=>{let i=new I(n,{id:e.id,source:e.source,shaderLayout:{bindings:t.map(([a],s)=>({name:a,group:0,location:s,type:s<Object.keys(e.inputs??{}).length?"read-only-storage":"storage"}))}});return{encode:({computePass:a,getBuffer:s})=>{let u={};for(let[c,d]of t)u[c]=z(d,s);i.dispatch(a,{bindings:u,x:e.dispatch.x,y:e.dispatch.y,z:e.dispatch.z})},destroy:()=>i.destroy()}}}),[e.dispatch.x,e.dispatch.y,e.dispatch.z])}var Oe=256;function Ts(r){if(!Number.isSafeInteger(r)||r<1)throw new Error("reduction length must be positive");let e=[];do r=Math.ceil(r/Oe),e.push(r);while(r>1);return e}function Si(r,e){let t=[],o=e.input,n=e.inputB===o?void 0:e.inputB,i=e.inputB===o;for(let[a,s]of Ts(o.length).entries()){let u=s>1?Me(r,`${e.id}-partials-${a}`,"float32",s):void 0;t.push(vs(r,{id:`${e.id}-level-${a}`,input:o,inputB:n,square:i,output:u,finalScalar:u?void 0:e.output,accumulate:e.accumulate})),u&&(o=u),n=void 0,i=!1}return t}function vs(r,e){let t=e.output?.length??1,o=Qe(t,r.device.limits.maxComputeWorkgroupsPerDimension),n=e.finalScalar?.arena.buffer,i=e.inputB?2:1,a=dr(r.device,{requiresSubgroupId:!0})==="subgroups",s=Ss(e,o,a);return k(M({id:e.id,workload:{operation:"GPUDotProductScalar",commandCount:1,maximumWorkgroupCount:o.x*o.y*o.z,maximumInvocationCount:o.x*o.y*o.z*Oe,readByteLength:e.input.length*4*(e.inputB?2:1),writeByteLength:t*4},resources:[{buffer:e.input,usage:"storage-read"},...e.inputB?[{buffer:e.inputB,usage:"storage-read"}]:[],...e.output?[{buffer:e.output,usage:"storage-write"}]:[],...n?[{buffer:n,usage:"storage-read-write"}]:[]],compile:({device:u})=>{let c=new I(u,{id:e.id,source:s,shaderLayout:{bindings:[{name:"inputValues",type:"read-only-storage",group:0,location:0},...e.inputB?[{name:"inputBValues",type:"read-only-storage",group:0,location:1}]:[],{name:e.output?"outputValues":"gpuValues",type:"storage",group:0,location:i}]}});return{encode:({computePass:d,getBuffer:m})=>{let f={inputValues:z(e.input,m)};e.inputB&&(f.inputBValues=z(e.inputB,m)),e.output&&(f.outputValues=z(e.output,m)),n&&(f.gpuValues=m(n)),c.dispatch(d,{bindings:f,...o})},destroy:()=>c.destroy()}}}),[o.x,o.y,o.z])}function Ss(r,e,t){let o=r.inputB?2:1,n=`inputValues[${E(r.input)}u + index]`,i=r.inputB?`${n} * inputBValues[${E(r.inputB)}u + index]`:r.square?`${n} * ${n}`:n,a=r.output?`outputValues[${E(r.output)}u + groupIndex] = total;`:Pe(r.finalScalar,r.accumulate?`${J(r.finalScalar)} + total`:"total");return`${t?`enable subgroups;
51
+ requires subgroup_id;
52
+ `:""}
53
+ @group(0) @binding(0) var<storage, read> inputValues: array<f32>;
54
+ ${r.inputB?"@group(0) @binding(1) var<storage, read> inputBValues: array<f32>;":""}
55
+ ${r.output?`@group(0) @binding(${o}) var<storage, read_write> outputValues: array<f32>;`:Y(0,o)}
56
+ ${t?Ps:Cs}
57
+ @compute @workgroup_size(${Oe})
58
+ fn main(
59
+ @builtin(local_invocation_index) lane: u32,
60
+ @builtin(workgroup_id) workgroupId: vec3u${t?`,
61
+ @builtin(subgroup_invocation_id) subgroupInvocationId: u32,
62
+ @builtin(subgroup_size) subgroupSize: u32,
63
+ @builtin(subgroup_id) subgroupId: u32`:""}
64
+ ) {
65
+ let groupIndex = workgroupId.x + ${e.x}u * (workgroupId.y + ${e.y}u * workgroupId.z);
66
+ if (groupIndex >= ${r.output?.length??1}u) { return; }
67
+ let index = groupIndex * ${Oe}u + lane;
68
+ var value = 0.0;
69
+ if (index < ${r.input.length}u) { value = ${i}; }
70
+ let total = reduceValue(value, lane${t?", subgroupInvocationId, subgroupSize, subgroupId":""});
71
+ if (lane == 0u) { ${a} }
72
+ }`}var Cs=`
73
+ var<workgroup> reductionScratch: array<f32, ${Oe}>;
74
+ fn reduceValue(value: f32, lane: u32) -> f32 {
75
+ reductionScratch[lane] = value;
76
+ workgroupBarrier();
77
+ for (var stride = ${Oe/2}u; stride > 0u; stride /= 2u) {
78
+ if (lane < stride) { reductionScratch[lane] += reductionScratch[lane + stride]; }
79
+ workgroupBarrier();
80
+ }
81
+ return reductionScratch[0];
82
+ }`,Ps=`
83
+ var<workgroup> subgroupTotals: array<f32, 64>;
84
+ fn reduceValue(value: f32, lane: u32, subgroupInvocationId: u32, subgroupSize: u32, subgroupId: u32) -> f32 {
85
+ let subtotal = subgroupAdd(value);
86
+ if (subgroupInvocationId == 0u) { subgroupTotals[subgroupId] = subtotal; }
87
+ workgroupBarrier();
88
+ let subgroupCount = ${Oe}u / subgroupSize;
89
+ for (var stride = subgroupCount / 2u; stride > 0u; stride /= 2u) {
90
+ if (lane < stride) { subgroupTotals[lane] += subgroupTotals[lane + stride]; }
91
+ workgroupBarrier();
92
+ }
93
+ return subgroupTotals[0];
94
+ }`;var fr=class{props;id;constructor(e){this.props=e,this.id=e.id??"gpu-dot-product-scalar";for(let t of[e.left,e.right])for(let o of A(t))Re(o,["float32"],this.id);if(e.left.length!==e.right.length||e.left.length>4294967295)throw new Error(`${this.id} inputs must have equal uint32-addressable lengths`)}getCommandNodes(e){let{left:t,right:o,output:n,gate:i}=this.props;if(n.arena.graph!==e||i&&i.active.arena.graph!==e||[t,o].flatMap(A).some(u=>u.buffer.graph!==e))throw new Error(`${this.id} resources must belong to target graph`);let a=[],s=0;for(let u of pe(e,[t,o]))for(let c=0;c<u[0].length;){let d=Math.min(u[0].length-c,...u.map(p=>Math.floor((e.device.limits.maxStorageBufferBindingSize-(p.byteOffset+c*4)%256)/4)));if(d<1)throw new Error("Dot product span must fit a storage binding");let m=e.createDataView(u[0].buffer,{format:"float32",byteOffset:u[0].byteOffset+c*4,length:d}),f=u[1]===u[0]?m:e.createDataView(u[1].buffer,{format:"float32",byteOffset:u[1].byteOffset+c*4,length:d});a.push(...Si(e,{id:`${this.id}-chunk-${s}`,input:m,inputB:f,output:n,accumulate:s>0})),s++,c+=d}return s||a.push(...new Ze({id:this.id,output:n,value:0}).getCommandNodes(e)),i?ir(e,a,i.active):a}};Ie();fe();Ie();var pr=256,Je=Uint32Array.BYTES_PER_ELEMENT,lr=class{id;source;indices;output;wordsPerRow;constructor(e){this.id=e.id??"gpu-gather",this.source=e.source,this.indices=e.indices,this.output=e.output;for(let o of A(this.indices))gi(o,`${this.id} indices`);for(let o of[this.source,this.output])for(let n of A(o))Es(n,this.id,o===this.output);if(this.source.format!==this.output.format)throw new Error(`${this.id} source and output must use the same format`);if(this.output.length<this.indices.length)throw new Error(`${this.id} output must contain at least indices.length rows`);let t=new Set([...A(this.source).map(o=>o.buffer),...A(this.indices).map(o=>o.buffer)]);if(A(this.output).some(o=>t.has(o.buffer)))throw new Error(`${this.id} output must use a separate buffer`);this.wordsPerRow=V(this.source.format).byteLength/Je}getCommandNodes(e){return Bs(e,this)}};function Bs(r,e,t=0,o="GPUGather"){let n=[];for(let c of[e.source,e.indices,e.output])for(let d of A(c))if(d.buffer.graph!==r)throw new Error(`${e.id} views must belong to the target graph`);if(e.indices.length===0)return n;let i=yi(r,e.output,e.indices.length),a=pe(r,[e.indices,i]),s=Ge(A(e.source)).filter(c=>c.length),u=s.length?s:[void 0];for(let[c,[d,m]]of a.entries()){let f=sr(o,d.length,pr,r.device.limits.maxComputeWorkgroupsPerDimension);for(let[p,h]of u.entries()){let x=h?.data;for(let L of[m,...x?[x,d]:[]])if(Ct(L).size>r.device.limits.maxStorageBufferBindingSize)throw new Error("Active chunks must fit a storage binding");let w=a.length===1&&u.length===1?e.id:`${e.id}-span-${c}-source-${p}`,G=Ls({source:x,sourceOffset:h?.offset??0,indices:d,output:m,wordsPerRow:e.wordsPerRow,initialize:p===0,invalidValue:t,dispatchLayout:f});n.push(k(M({id:w,workload:{operation:o,commandCount:1,maximumWorkgroupCount:f.x*f.y*f.z,maximumInvocationCount:f.x*f.y*f.z*pr,readByteLength:x?d.length*(Je+x.rowByteLength):0,writeByteLength:d.length*m.rowByteLength},resources:[...x?[{buffer:x,usage:"storage-read"},{buffer:d,usage:"storage-read"}]:[],{buffer:m,usage:"storage-write"}],compile:({device:L})=>{let C=new I(L,{id:w,source:G,shaderLayout:{bindings:[{name:"outputWords",type:"storage",group:0,location:0},...x?[{name:"sourceWords",type:"read-only-storage",group:0,location:1},{name:"indices",type:"read-only-storage",group:0,location:2}]:[]]}});return{encode:({computePass:W,getBuffer:g})=>{let l={outputWords:z(m,g)};x&&(l.sourceWords=z(x,g),l.indices=z(d,g)),C.dispatch(W,{bindings:l,x:f.x,y:f.y,z:f.z})},destroy:()=>C.destroy()}}}),[f.x,f.y,f.z]))}}return n}function Es(r,e,t){if(we(r.format)||Te(r.format))throw new Error(`${e} must use a fixed-width GPU data format`);let o=V(r.format);if((t?r.byteStride!==o.byteLength:r.byteStride<o.byteLength||r.byteStride%Je!==0)||r.rowByteLength!==o.byteLength||r.byteOffset%Je!==0||r.rowByteLength%Je!==0)throw new Error(`${e} must be packed, uint32-aligned GPU data with 32-bit-word rows`)}function Ls(r){let{source:e,indices:t,output:o,wordsPerRow:n,initialize:i,invalidValue:a,dispatchLayout:s}=r;return`const INDEX_COUNT: u32 = ${t.length}u;
95
+ const WORDS_PER_ROW: u32 = ${n}u;
96
+ const OUTPUT_OFFSET: u32 = ${E(o)}u;
97
+ @group(0) @binding(0) var<storage, read_write> outputWords: array<u32>;
98
+ ${e?`
99
+ const SOURCE_LENGTH: u32 = ${e.length}u;
100
+ const SOURCE_ROW_OFFSET: u32 = ${r.sourceOffset}u;
101
+ const SOURCE_OFFSET: u32 = ${E(e)}u;
102
+ const INDEX_OFFSET: u32 = ${E(t)}u;
103
+ @group(0) @binding(1) var<storage, read> sourceWords: array<u32>;
104
+ @group(0) @binding(2) var<storage, read> indices: array<u32>;
105
+ `:""}
106
+ @compute @workgroup_size(${pr})
107
+ fn main(
108
+ @builtin(workgroup_id) workgroupId: vec3u,
109
+ @builtin(local_invocation_index) localInvocationIndex: u32
110
+ ) {
111
+ ${ke(s,pr)}
112
+ if (index >= INDEX_COUNT) { return; }
113
+ let outputBase = OUTPUT_OFFSET + index * WORDS_PER_ROW;
114
+ ${e?`
115
+ let sourceIndex = indices[INDEX_OFFSET + index];
116
+ if (sourceIndex >= SOURCE_ROW_OFFSET && sourceIndex - SOURCE_ROW_OFFSET < SOURCE_LENGTH) {
117
+ let sourceBase = SOURCE_OFFSET + (sourceIndex - SOURCE_ROW_OFFSET) * ${e.byteStride/Je}u;
118
+ for (var word = 0u; word < WORDS_PER_ROW; word++) {
119
+ outputWords[outputBase + word] = sourceWords[sourceBase + word];
120
+ }
121
+ return;
122
+ }
123
+ `:""}
124
+ ${i?`
125
+ for (var word = 0u; word < WORDS_PER_ROW; word++) {
126
+ outputWords[outputBase + word] = ${a}u;
127
+ }
128
+ `:""}
129
+ }`}function Pi(r){if(r.candidates.length===0)throw new Error("GPU strategy candidate list must not be empty");let e={device:r.device,workload:r.workload},t=r.candidates.filter(i=>i.isSupported?.(e)??!0);if(t.length===0)throw new Error("no supported GPU strategy candidate");if(r.preferredId){let i=t.find(a=>a.id===r.preferredId);if(!i)throw new Error(`preferred GPU strategy "${r.preferredId}" is not supported`);return Ci(i,e)}let o=t[0],n=o.score(e);for(let i=1;i<t.length;i++){let a=t[i],s=a.score(e);s>n&&(o=a,n=s)}return Ci(o,e,n)}function Ci(r,e,t=r.score(e)){return Object.freeze({id:r.id,score:t,reason:r.reason(e),details:Object.freeze(r.createDetails(e))})}function Bi(r,e,t){if(!Number.isSafeInteger(e.rows)||e.rows<0)throw new Error("SpMV rows must be non-negative");if(!Number.isSafeInteger(e.nonZeros)||e.nonZeros<0)throw new Error("SpMV nonZeros must be non-negative");let o=e.nonZeros/Math.max(1,e.rows),n=e.statistics?.maxNonZerosPerRow,i=e.statistics?.shortRowFraction,a=dr(r,{requiresSubgroupId:!0})==="subgroups";return Pi({device:r,workload:e,preferredId:t,candidates:[{id:"scalar-row",score:()=>o<=8?100:o<=16?60:10,reason:()=>`average row length ${o.toFixed(1)} favors one invocation per row`,createDetails:()=>({rowsPerWorkgroup:64,workgroupSize:64,workgroupsPerLongRow:1})},{id:"subgroup-row",isSupported:()=>a,score:()=>o<=64&&(i===void 0||i<.9)?110:35,reason:()=>"subgroups available; medium CSR rows can reduce within a subgroup",createDetails:()=>({rowsPerWorkgroup:1,workgroupSize:128,workgroupsPerLongRow:1})},{id:"workgroup-row",score:()=>o>32&&(n===void 0||n<=2048)?100:50,reason:()=>`average row length ${o.toFixed(1)} favors cooperative row reduction`,createDetails:()=>({rowsPerWorkgroup:1,workgroupSize:256,workgroupsPerLongRow:1})},{id:"long-row",score:()=>n!==void 0&&n>2048||o>1024?140:0,reason:()=>"very long rows favor multi-workgroup partial reduction",createDetails:()=>({rowsPerWorkgroup:1,workgroupSize:256,workgroupsPerLongRow:4})}]})}var hr=class{id;props;constructor(e){this.id=e.id??"gpu-adaptive-spmv",this.props=e;for(let[t,o]of Object.entries({rowOffsets:e.rowOffsets,columnIndices:e.columnIndices,values:e.values,vector:e.vector,output:e.output})){for(let n of A(o))Re(n,[t==="rowOffsets"||t==="columnIndices"?"uint32":"float32"],`${this.id} ${t}`);if(o.length>4294967295)throw new Error("SpMV logical lengths must fit in uint32")}if(e.rowOffsets.length!==e.output.length+1)throw new Error(`${this.id} rowOffsets length must equal output.length + 1`);if(e.columnIndices.length!==e.values.length)throw new Error(`${this.id} columnIndices and values must have equal length`);if(!Number.isSafeInteger(e.columns)||e.columns<0)throw new Error(`${this.id} columns must be a non-negative integer`);if(e.vector.length!==e.columns)throw new Error(`${this.id} vector length must equal columns`)}getStrategy(e){return Bi(e.device,{rows:this.props.output.length,nonZeros:this.props.values.length,statistics:this.props.statistics},this.props.strategy)}explain(e){let t=this.getStrategy(e);return Object.freeze({operation:"GPUSpMV",strategy:t.id,score:t.score,reason:t.reason,...t.details})}getCommandNodes(e){let{rowOffsets:t,columnIndices:o,values:n,vector:i,output:a}=this.props;if(vi(e,[t,o,n,i],[a]),!a.length)return[];let s=[],u=this.getStrategy(e),c=u.id,d=u.details.workgroupSize,m=c==="long-row"?u.details.workgroupsPerLongRow:1,f=pe(e,[Eo(e,t,0,a.length),Eo(e,t,1,a.length),a]),p=pe(e,[o,n]),h=Ge(A(i)).filter(l=>l.length),x=e.device.limits.maxComputeWorkgroupsPerDimension,w=Math.min(4096,Math.floor(e.device.limits.maxStorageBufferBindingSize/(m*4)));if(w<1)throw new Error("SpMV count scratch must fit a storage binding");let G=[];for(let l of f)for(let T=0;T<l[0].length;T+=w){let S=Math.min(w,l[0].length-T);G.push(l.map(b=>e.createDataView(b.buffer,{format:b.format,length:S,byteOffset:b.byteOffset+T*4})))}let L=G.map(([l],T)=>c==="long-row"?Me(e,`${this.id}-rows-${T}-partials`,"float32",l.length*m):void 0),C=h.length>1&&G.length*h.length>h.length+G.length,W=0,g=[];for(let[l,[T,S]]of p.entries()){let b;if(C){b=Me(e,`${this.id}-gather-${l}`,"float32",T.length);let D=new lr({id:`${this.id}-gather-${l}`,source:i,indices:T,output:b}).getCommandNodes(e);for(let[U,X]of D.entries())s.push(U===0?{...X,dependsOn:[...X.dependsOn??[],...g]}:X)}let O=b?[{data:b,offset:0}]:h,P=[];for(let[D,[U,X,ie]]of G.entries()){let le=U.length,Dt=L[D];for(let[$o,vr]of O.entries()){let Uo=l===0&&$o===0,_o=`${this.id}-rows-${D}-nonzeros-${l}-vector-${$o}-${c}`,_i=c==="scalar-row"?Math.ceil(le/d):le*m,Ro=Qe(_i,x),Mo=Dt??ie;if(s.push(mr(e,{id:_o,source:Ds({strategy:c,workgroupSize:d,parts:m,length:le,begins:U,ends:X,indices:T,matrixValues:S,vector:vr.data,output:Mo,nonzeroStart:W,vectorStart:vr.offset,initialize:Uo,dispatch:Ro,gathered:!!b,columns:this.props.columns}),inputs:{rowBegins:U,rowEnds:X,columnIndices:T,matrixValues:S,vectorValues:vr.data},outputs:{[Dt?"rowPartials":"outputValues"]:Mo},dispatch:Ro,workgroupSize:d})),Dt){let ko=Qe(Math.ceil(le/64),x);s.push(mr(e,{id:`${_o}-finalize`,inputs:{rowPartials:Dt},outputs:{outputValues:ie},dispatch:ko,workgroupSize:64,source:`
130
+ @group(0) @binding(0) var<storage, read> rowPartials: array<f32>;
131
+ @group(0) @binding(1) var<storage, read_write> outputValues: array<f32>;
132
+ @compute @workgroup_size(64)
133
+ fn main(@builtin(workgroup_id) workgroupId: vec3u, @builtin(local_invocation_index) localInvocationIndex: u32) {
134
+ ${ke(ko,64)}
135
+ if (index >= ${le}u) { return; }
136
+ var sum = 0.0;
137
+ for (var part = 0u; part < ${m}u; part++) {
138
+ sum += rowPartials[index * ${m}u + part];
139
+ }
140
+ outputValues[${E(ie)}u + index] ${Uo?"=":"+="} sum;
141
+ }`}))}}O.length&&P.push(s[s.length-1].id)}g=P,W+=T.length}if(!p.length||!h.length)for(let[l,[T,,S]]of G.entries()){let b=Qe(Math.ceil(T.length/256),x);s.push(mr(e,{id:`${this.id}-rows-${l}-clear`,outputs:{outputValues:S},dispatch:b,source:`
142
+ @group(0) @binding(0) var<storage, read_write> outputValues: array<f32>;
143
+ @compute @workgroup_size(256)
144
+ fn main(@builtin(workgroup_id) workgroupId: vec3u, @builtin(local_invocation_index) localInvocationIndex: u32) {
145
+ ${ke(b,256)}
146
+ if (index < ${T.length}u) {
147
+ outputValues[${E(S)}u + index] = 0.0;
148
+ }
149
+ }`}))}return s}};function Ds(r){let{strategy:e,workgroupSize:t,parts:o,length:n,dispatch:i}=r,a=e==="subgroup-row",s=e==="workgroup-row"||e==="long-row",u=e==="long-row",c=u?"rowPartials":"outputValues";return`
150
+ ${a?`enable subgroups;
151
+ requires subgroup_id;`:""}
152
+ @group(0) @binding(0) var<storage, read> rowBegins: array<u32>;
153
+ @group(0) @binding(1) var<storage, read> rowEnds: array<u32>;
154
+ @group(0) @binding(2) var<storage, read> columnIndices: array<u32>;
155
+ @group(0) @binding(3) var<storage, read> matrixValues: array<f32>;
156
+ @group(0) @binding(4) var<storage, read> vectorValues: array<f32>;
157
+ @group(0) @binding(5) var<storage, read_write> ${c}: array<f32>;
158
+ ${s?`var<workgroup> scratch: array<f32, ${t}>;`:""}
159
+ @compute @workgroup_size(${t}) fn main(
160
+ @builtin(workgroup_id) workgroupId: vec3u,
161
+ @builtin(local_invocation_index) localInvocationIndex: u32${a?`,
162
+ @builtin(subgroup_id) subgroupId: u32,
163
+ @builtin(subgroup_invocation_id) subgroupLane: u32,
164
+ @builtin(subgroup_size) subgroupSize: u32`:""}
165
+ ) {
166
+ let workgroupIndex = (workgroupId.z * ${i.y}u + workgroupId.y) * ${i.x}u + workgroupId.x;
167
+ ${e==="scalar-row"?`let row = workgroupIndex * ${t}u + localInvocationIndex;`:`let row = workgroupIndex / ${o}u;`}
168
+ if (row >= ${n}u) { return; }
169
+ ${a?"if (subgroupId != 0u) { return; }":""}
170
+ let begin = max(rowBegins[${E(r.begins)}u + row], ${r.nonzeroStart}u);
171
+ let end = min(rowEnds[${E(r.ends)}u + row], ${r.nonzeroStart+r.indices.length}u);
172
+ let part = workgroupIndex % ${o}u;
173
+ let lane = ${a?"subgroupLane":s?"localInvocationIndex":"0u"};
174
+ let stride = ${a?"subgroupSize":`${s?t*o:1}u`};
175
+ var sum = 0.0;
176
+ // Test the lane offset before addition so an empty or final uint32 range cannot wrap.
177
+ var localIndex = part * ${t}u + lane;
178
+ loop {
179
+ if (begin >= end || localIndex >= end - begin) { break; }
180
+ let nonzero = begin - ${r.nonzeroStart}u + localIndex;
181
+ let column = columnIndices[${E(r.indices)}u + nonzero];
182
+ ${r.gathered?`if (column < ${r.columns}u) {
183
+ sum += matrixValues[${E(r.matrixValues)}u + nonzero] * vectorValues[${E(r.vector)}u + nonzero];
184
+ }`:`if (column >= ${r.vectorStart}u && column - ${r.vectorStart}u < ${r.vector.length}u) {
185
+ sum += matrixValues[${E(r.matrixValues)}u + nonzero] * vectorValues[${E(r.vector)}u + column - ${r.vectorStart}u];
186
+ }`}
187
+
188
+ if (end - begin - localIndex <= stride) { break; }
189
+ localIndex += stride;
190
+ }
191
+ ${a?"sum = subgroupAdd(sum);":""}
192
+ ${s?`scratch[lane] = sum;
193
+ workgroupBarrier();
194
+ for (var reductionStride = ${t/2}u; reductionStride > 0u; reductionStride /= 2u) {
195
+ if (lane < reductionStride) { scratch[lane] += scratch[lane + reductionStride]; }
196
+ workgroupBarrier();
197
+ }
198
+ sum = scratch[0];`:""}
199
+ if (lane == 0u) {
200
+ ${c}[${E(r.output)}u + row * ${o}u + ${u?"part":"0u"}] ${u||r.initialize?"=":"+="} sum;
201
+ }
202
+ }`}fe();var gr=class{props;id;constructor(e){if(this.props=e,this.id=e.id??"gpu-predicate-conjunction",e.inputs.length<2)throw new Error(`${this.id} requires at least two predicates`);let t=e.output.arena;if(e.inputs.some(o=>o.arena!==t))throw new Error(`${this.id} predicates must share one GPUValueArena`)}getCommandNodes(e){let{inputs:t,output:o}=this.props;if(o.arena.graph!==e)throw new Error(`${this.id} predicates must belong to target graph`);let n=o.arena.buffer,i=t.map(s=>`(${J(s)} != 0u)`).join(" && "),a=`${Y(0,0)}
203
+ @compute @workgroup_size(1)fn main(){${Pe(o,`select(0u,1u,${i})`)}}`;return[M({id:this.id,workload:{operation:"GPUPredicateConjunction",commandCount:1,maximumWorkgroupCount:1,maximumInvocationCount:1,readByteLength:t.length*4,writeByteLength:4},resources:[{buffer:n,usage:"storage-write"}],compile:({device:s})=>{let u=new I(s,{id:this.id,source:a,shaderLayout:{bindings:[{name:"gpuValues",type:"storage",group:0,location:0}]}});return{encode:({computePass:c,getBuffer:d})=>{let m={gpuValues:d(n)};u.dispatch(c,{bindings:m,x:1,y:1,z:1})},destroy:()=>u.destroy()}}})]}};var et=class extends q{type="conditional";predicate;lowering;constructor(e){let t=Array.isArray(e.body)?e.body:[e.body];super({id:e.id??"gpu-conditional-operation",operations:t,metadata:e.metadata}),this.predicate=Object.freeze({...e.predicate}),this.lowering=e.lowering??"auto"}},tt=class extends q{type="loop";predicate;maximumIterations;minimumIterations;lowering;constructor(e){let t=Array.isArray(e.body)?e.body:[e.body];if(super({id:e.id??"gpu-loop-operation",operations:t,metadata:e.metadata}),!Number.isSafeInteger(e.maximumIterations)||e.maximumIterations<1)throw new Error(`${this.id} maximumIterations must be a positive safe integer`);let o=e.minimumIterations??0;if(!Number.isSafeInteger(o)||o<0||o>e.maximumIterations)throw new Error(`${this.id} minimumIterations must be between zero and maximumIterations`);this.predicate=e.predicate?Object.freeze({...e.predicate}):void 0,this.maximumIterations=e.maximumIterations,this.minimumIterations=o,this.lowering=e.lowering??"auto"}};var rt=class{lowerers=new Map;register(e,t){if(!e)throw new Error("GPU operation lowering type is required");if(this.lowerers.has(e))throw new Error(`GPU operation lowering for "${e}" is already registered`);return this.lowerers.set(e,t),this}get(e){return this.lowerers.get(e)}};function yr(r,e={}){let t=[],o=new Set(r.scalars.map(i=>i.id));for(let i of r.vectors)i.external&&!e.vectors?.[i.id]&&t.push({level:"error",code:"missing-external-vector",valueId:i.id,message:`External vector "${i.id}" has no WebGPU binding`});let n=i=>{let a="id"in i&&typeof i.id=="string"?i.id:void 0;if(i instanceof et||i instanceof tt){let s=i.predicate;s?.source==="gpu"&&(s.value.format!=="uint32"&&t.push({level:"error",code:"invalid-predicate-format",operationId:a,valueId:s.value.id,message:`GPU predicate "${s.id}" must use uint32 state`}),o.has(s.value.id)||t.push({level:"error",code:"missing-predicate-scalar",operationId:a,valueId:s.value.id,message:`GPU predicate "${s.id}" references undeclared scalar "${s.value.id}"`}))}if(i instanceof q)for(let s of i.operations)n(s)};for(let i of r.operations)n(i);return Object.freeze({valid:!t.some(i=>i.level==="error"),issues:Object.freeze(t.map(i=>Object.freeze({...i})))})}var xr=class{device;capabilities;lowerings=new rt;constructor(e){this.device=e,this.capabilities=Object.freeze({backend:"webgpu",gpuConditionals:!0,nativeLoops:!1,childGraphs:!1}),this.registerCoreLowerings()}compile(e,t={}){let o=yr(e,t);if(!o.valid)throw new Error(`GPUGraph "${e.id}" validation failed: ${o.issues.filter(c=>c.level==="error").map(c=>c.message).join("; ")}`);let n=new tr(this.device,{id:`${e.id}-commands`}),i=new Map;for(let c of e.scalars)i.set(c.id,Bo(n,c.id,c.format));let a=new Map;for(let c of e.vectors){let d;if(c.external){let m=t.vectors[c.id],f="data"in m?m:{format:c.format,length:c.length,data:"buffer"in m?[m]:m};if(d=n.importGPUVector(c.id,f),d.format!==c.format||d.length!==c.length)throw new Error(`${c.id} binding format and length must match its logical vector`);if(c.chunkLengths&&(c.chunkLengths.length!==d.data.length||c.chunkLengths.some((p,h)=>p!==d.data[h].length)))throw new Error(`${c.id} binding must preserve its declared chunk topology`)}else{let m=c.chunkLengths??As(c.length,this.device),f=m.map((p,h)=>Me(n,m.length===1?c.id:`${c.id}-chunk-${h}`,c.format,p));d=new B({id:c.id,name:c.id,format:c.format,length:c.length,valueLength:c.length,stride:1,byteStride:4,rowByteLength:4,data:f})}a.set(c.id,d)}let s=new Map;for(let c of e.textures){let d=c.external?n.importTexture(c,t.textures?.[c.id]):n.createTransientTexture(c);s.set(c.id,d)}let u={path:[],nodes:[],decisions:[],predicates:[],scalars:i,vectors:a,textures:s,textureValues:e.textures,predicateConjunctions:new Map,commandNodeIds:new Set};for(let c of e.operations)this.lower(n,c,u);return Object.freeze({program:e,graph:n,scalars:i,vectors:a,textures:s,validation:o,lowering:Object.freeze({operations:e.operationTree,nodes:Object.freeze(u.nodes.map(c=>Object.freeze({...c,operationPath:Object.freeze([...c.operationPath])}))),decisions:Object.freeze(u.decisions.map(c=>Object.freeze({...c})))})})}registerCoreLowerings(){this.lowerings.register("scalar-literal",(e,t)=>{let o=new Ze({id:e.id,output:t.resolveScalar(e.props.output),value:e.props.value});this.emitProducer(t.graph,o,[[1,1,1]]),t.recordDecision({operationId:e.id,operationType:e.type,lowering:"webgpu-scalar-literal",reason:"host-known literal lowers to one compute command node"})}),this.lowerings.register("scalar-operation",(e,t)=>{let o=new ar({id:e.id,operation:e.operation,left:t.resolveScalar(e.left),right:e.right?t.resolveScalar(e.right):void 0,output:t.resolveScalar(e.output)});this.emitProducer(t.graph,o,[[1,1,1]]),t.recordDecision({operationId:e.id,operationType:e.type,lowering:"webgpu-scalar-kernel",reason:"scalar operation lowers to one compute command node"})}),this.lowerings.register("vector-madd",(e,t)=>{let o=e.props,n=new cr({id:e.id,input:t.resolveVector(o.input),scale:t.resolveScalar(o.scale),addend:t.resolveVector(o.addend),output:t.resolveVector(o.output)});this.emitProducer(t.graph,n),t.recordDecision({operationId:e.id,operationType:e.type,lowering:"webgpu-vector-madd",reason:"dense float32 MADD lowers through explicit command nodes"})}),this.lowerings.register("dot-product",(e,t)=>{let o=e.props,n=new fr({id:e.id,left:t.resolveVector(o.left),right:t.resolveVector(o.right),output:t.resolveScalar(o.output)});this.emitProducer(t.graph,n),t.recordDecision({operationId:e.id,operationType:e.type,lowering:"webgpu-hierarchical-dot",reason:"chunk dot products use bounded hierarchical reductions into the scalar arena"})}),this.lowerings.register("spmv",(e,t)=>{let o=e.props,n=o.matrix,i=new hr({id:e.id,rowOffsets:t.resolveVector(n.rowOffsets),columnIndices:t.resolveVector(n.columnIndices),values:t.resolveVector(n.values),vector:t.resolveVector(o.vector),output:t.resolveVector(o.output),columns:n.columns,statistics:n.statistics,strategy:o.strategy}),a=i.getStrategy(t.graph);this.emitProducer(t.graph,i),t.recordDecision({operationId:e.id,operationType:e.type,lowering:`webgpu-spmv:${a.id}`,reason:a.reason})}),this.lowerings.register("conditional",(e,t)=>{t.recordDecision({operationId:e.id,operationType:e.type,lowering:"gpu-indirect-gate",reason:"WebGPU realizes runtime predicates with zero/nonzero indirect dispatch"});for(let o of e.operations)t.lowerConditional(e.predicate,o)}),this.lowerings.register("loop",(e,t)=>{if(!e.predicate||e.lowering==="unroll"){t.recordDecision({operationId:e.id,operationType:e.type,lowering:"bounded-unroll",reason:e.predicate?"explicit unroll preference":"loop has no runtime predicate"});for(let o=0;o<e.maximumIterations;o++)for(let n of e.operations)t.lower(n);return}t.recordDecision({operationId:e.id,operationType:e.type,lowering:"gpu-gated-bounded-sequence",reason:"WebGPU has indirect dispatch but no native graph loop"});for(let o=0;o<e.maximumIterations;o++){let n=o>=e.minimumIterations;for(let i of e.operations)n?t.lowerConditional(e.predicate,i):t.lower(i)}})}lower(e,t,o){let n="id"in t&&typeof t.id=="string"?t.id:t.constructor?.name??"command-node-producer";o.path.push(n);try{if(t instanceof q&&t.type==="composite"){o.decisions.push({operationId:t.id,operationType:t.type,lowering:"flatten",reason:"WebGPU has no executable child-graph primitive"});for(let i of t.operations)this.lower(e,i,o);return}if(bo(t)){let i=this.lowerings.get(t.type);if(i){let a=()=>i(t,{graph:e,capabilities:this.capabilities,lower:s=>this.lower(e,s,o),lowerConditional:(s,u)=>{o.predicates.push(s);try{this.lower(e,u,o)}finally{o.predicates.pop()}},resolveScalar:s=>this.resolveScalar(s,o),resolveVector:s=>this.resolveVector(s,o),resolveTexture:s=>this.resolveTexture(s,o),resolveTextureView:s=>{let u=s instanceof de?s.texture:s,c=s instanceof de?s.props:{};return e.createTextureView(this.resolveTexture(u,o),c)},recordDecision:s=>o.decisions.push(s)});t instanceof et||t instanceof tt?a():this.withNodeDecoration(e,o,a);return}}if("getNodes"in t||li(t)){o.decisions.push({operationId:n,operationType:"command-node-producer",lowering:"explicit-command-nodes",reason:"execution primitive constructs explicit command nodes"}),this.withNodeDecoration(e,o,()=>e.add(t));return}throw new Error(`GPUGraph operation "${n}" has no WebGPU lowering`)}finally{o.path.pop()}}emitProducer(e,t,o){let n=t.getCommandNodes(e);if(!o){_e(e,n);return}if(n.length!==o.length)throw new Error(`lowering produced ${n.length} command nodes but declared ${o.length} dispatches`);let i=n.map((a,s)=>this.attachDispatch(a,o[s]));_e(e,i)}attachDispatch(e,t){if(e.type!=="compute")throw new Error(`dispatch geometry can only be attached to compute command nodes; got ${e.type} node "${e.id}"`);return k(e,t)}withNodeDecoration(e,t,o){return e.withComputeLowering(n=>this.decorateComputeNode(e,n,t),()=>e.withOtherLowering(n=>{if(t.predicates.length)throw new Error(`GPU predicates do not support ${n.type} node "${n.id}"`);let i=this.makeCommandNodeIdUnique(n,t);return t.nodes.push({nodeId:i.id,nodeType:i.type,operationPath:[...t.path]}),i},o))}decorateComputeNode(e,t,o){if(t=this.makeCommandNodeIdUnique(t,o),o.path.length&&o.nodes.push({nodeId:t.id,nodeType:"compute",operationPath:[...o.path]}),!o.predicates.length)return t;if(t.condition)throw new Error(`compute node "${t.id}" already has condition`);let n=rr(t);if(!n)throw new Error(`compute node "${t.id}" under runtime predicate must declare exact dispatch geometry`);let i;if(o.predicates.length===1)i=o.scalars.get(o.predicates[0].value.id);else{let u=o.predicates.map(f=>f.value.id).join("&&"),c=o.predicateConjunctions.get(u);c||(c=Bo(e,`predicate-and-${o.predicateConjunctions.size}`,"uint32"),o.predicateConjunctions.set(u,c));let d=o.predicates.map(f=>o.scalars.get(f.value.id)),m=new gr({id:`${t.id}-predicate-and`,inputs:d,output:c}).getCommandNodes(e).map(f=>this.attachDispatch(f,[1,1,1]));e.withoutComputeLowering(()=>_e(e,m)),i=c}if(!i)throw new Error(`runtime predicate for "${t.id}" could not be resolved`);let a=new Pt(e,{id:`${t.id}-predicate`,active:i,workgroups:n}),s=a.getUpdateCommandNodes(e,`${t.id}-predicate-update`).map(u=>this.attachDispatch(u,[1,1,1]));return e.withoutComputeLowering(()=>_e(e,s)),{...t,condition:a.condition}}makeCommandNodeIdUnique(e,t){if(!t.commandNodeIds.has(e.id))return t.commandNodeIds.add(e.id),e;let o=1,n=`${e.id}-iteration-${o}`;for(;t.commandNodeIds.has(n);)o++,n=`${e.id}-iteration-${o}`;return t.commandNodeIds.add(n),{...e,id:n}}resolveTexture(e,t){if(!t.textureValues.includes(e))throw new Error(`Undeclared program texture "${e.id}"`);return t.textures.get(e.id)}resolveScalar(e,t){let o=t.scalars.get(e.id);if(!o||o.format!==e.format)throw new Error(`GPUGraph scalar "${e.id}" is not part of compilation`);return o}resolveVector(e,t){let o=t.vectors.get(e.id);if(!o||o.format!==e.format||o.length!==e.length)throw new Error(`GPUGraph vector "${e.id}" is not part of compilation`);return o}};function As(r,e){let t=Math.floor(e.limits.maxStorageBufferBindingSize/4);if(t<1||r<=t)return[r];let o=[];for(let n=0;n<r;n+=t)o.push(Math.min(t,r-n));return o}function Ei(r){let e=r.lowering.decisions.map(t=>`${t.operationId}: ${t.lowering} \u2014 ${t.reason}`);return Object.freeze({programId:r.program.id,semanticOperationCount:Li(r.program.operationTree),loweredNodeCount:r.lowering.nodes.length,loweringDecisionCount:r.lowering.decisions.length,scalarCount:r.program.scalars.length,vectorCount:r.program.vectors.length,externalVectorCount:r.program.vectors.filter(t=>t.external).length,cpuReadbackCount:0,backend:"webgpu",decisions:Object.freeze(e)})}function Li(r){return r.reduce((e,t)=>e+1+Li(t.children??[]),0)}var Do=class{adapter;minimumSampleCount;explorationEnabled;calibrations=new Map;constructor(e){if(!Number.isSafeInteger(e.minimumSampleCount??1)||(e.minimumSampleCount??1)<=0)throw new Error("GPUCommandGraph autotuner minimumSampleCount must be a positive safe integer");if(this.adapter=Is(e.adapter),this.minimumSampleCount=e.minimumSampleCount??1,this.explorationEnabled=e.explorationEnabled??!0,e.profile?.adapter.key===this.adapter.key&&e.profile.version===1)for(let t of e.profile.calibrations)this.importCalibration(t)}selectKernel(e){br(e.operation,"operation"),Gi(e.workloadSize);let t=e.candidates.filter(s=>s.supported!==!1);if(t.length===0)throw new Error(`GPUCommandGraph autotuner operation "${e.operation}" has no supported variants`);for(let s of t)br(s.id,"variant");let o=Ai(e.workloadSize),n=t.map(s=>{let u=this.findNearestCalibration(e.operation,s.id,o);return{candidate:s,calibration:u,sampleCount:u?.workloadBucket===o?u.sampleCount:0,estimatedDurationMilliseconds:u?$s(u,e.workloadSize):void 0}});if(this.explorationEnabled){let s=n.find(u=>u.sampleCount<this.minimumSampleCount);if(s)return Object.freeze({operation:e.operation,variant:s.candidate.id,workloadSize:e.workloadSize,workloadBucket:o,reason:"exploration",sampleCount:s.sampleCount,...s.estimatedDurationMilliseconds===void 0?{}:{estimatedDurationMilliseconds:s.estimatedDurationMilliseconds}})}let i=n.filter(s=>s.estimatedDurationMilliseconds!==void 0).sort((s,u)=>(s.estimatedDurationMilliseconds??Number.POSITIVE_INFINITY)-(u.estimatedDurationMilliseconds??Number.POSITIVE_INFINITY))[0],a=i??n[0];return Object.freeze({operation:e.operation,variant:a.candidate.id,workloadSize:e.workloadSize,workloadBucket:o,reason:i?"calibrated":"fallback",sampleCount:a.calibration?.sampleCount??0,...a.estimatedDurationMilliseconds===void 0?{}:{estimatedDurationMilliseconds:a.estimatedDurationMilliseconds}})}observeKernel(e){if(br(e.operation,"operation"),br(e.variant,"variant"),Gi(e.workloadSize),!Number.isFinite(e.durationMilliseconds)||e.durationMilliseconds<0)throw new Error("GPUCommandGraph autotuner durationMilliseconds must be nonnegative");let t=Ai(e.workloadSize),o=Lo(e.operation,e.variant,t),n=this.calibrations.get(o)??{operation:e.operation,variant:e.variant,workloadBucket:t,sampleCount:0,meanWorkloadSize:0,meanDurationMilliseconds:0,durationSquaredDifferenceSum:0};n.sampleCount++,n.meanWorkloadSize+=(e.workloadSize-n.meanWorkloadSize)/n.sampleCount;let i=e.durationMilliseconds-n.meanDurationMilliseconds;return n.meanDurationMilliseconds+=i/n.sampleCount,n.durationSquaredDifferenceSum+=i*(e.durationMilliseconds-n.meanDurationMilliseconds),this.calibrations.set(o,n),Di(n)}observeTimingReport(e,t){let o=new Map(t.nodes.map(i=>[i.id,i])),n=0;for(let i of e.nodes){let a=o.get(i.id);i.gpuTimeMilliseconds===void 0||!a?.operation||!a.variant||(this.observeKernel({operation:a.operation,variant:a.variant,workloadSize:Math.max(a.maximumInvocationCount,1),durationMilliseconds:i.gpuTimeMilliseconds}),n++)}return n}exportProfile(){let e=[...this.calibrations.values()].sort((t,o)=>t.operation.localeCompare(o.operation)||t.variant.localeCompare(o.variant)||t.workloadBucket-o.workloadBucket).map(Di);return Object.freeze({version:1,adapter:this.adapter,calibrations:Object.freeze(e)})}reset(){this.calibrations.clear()}importCalibration(e){!e.operation||!e.variant||!Number.isSafeInteger(e.workloadBucket)||!Number.isSafeInteger(e.sampleCount)||e.sampleCount<=0||!Number.isFinite(e.meanWorkloadSize)||e.meanWorkloadSize<=0||!Number.isFinite(e.meanDurationMilliseconds)||e.meanDurationMilliseconds<0||this.calibrations.set(Lo(e.operation,e.variant,e.workloadBucket),{operation:e.operation,variant:e.variant,workloadBucket:e.workloadBucket,sampleCount:e.sampleCount,meanWorkloadSize:e.meanWorkloadSize,meanDurationMilliseconds:e.meanDurationMilliseconds,durationSquaredDifferenceSum:e.sampleCount>1?e.durationStandardDeviationMilliseconds**2*(e.sampleCount-1):0})}findNearestCalibration(e,t,o){let n=this.calibrations.get(Lo(e,t,o));if(n)return n;let i;for(let a of this.calibrations.values())a.operation!==e||a.variant!==t||(!i||Math.abs(a.workloadBucket-o)<Math.abs(i.workloadBucket-o))&&(i=a);return i}};function Gs(r){let e=[...r.features].sort(),t={type:r.info.type,vendor:r.info.vendor,renderer:r.info.renderer,version:r.info.version,gpu:r.info.gpu,gpuType:r.info.gpuType,...r.info.gpuArchitecture?{gpuArchitecture:r.info.gpuArchitecture}:{},...r.info.gpuBackend?{gpuBackend:r.info.gpuBackend}:{},...r.info.featureLevel?{featureLevel:r.info.featureLevel}:{},features:Object.freeze(e),...r.info.subgroupMinSize===void 0?{}:{subgroupMinSize:r.info.subgroupMinSize},...r.info.subgroupMaxSize===void 0?{}:{subgroupMaxSize:r.info.subgroupMaxSize},maxComputeInvocationsPerWorkgroup:r.limits.maxComputeInvocationsPerWorkgroup,maxComputeWorkgroupsPerDimension:r.limits.maxComputeWorkgroupsPerDimension};return Object.freeze({key:JSON.stringify(t),...t})}function Is(r){return Object.freeze({...r,features:Object.freeze([...r.features])})}function Di(r){return Object.freeze({operation:r.operation,variant:r.variant,workloadBucket:r.workloadBucket,sampleCount:r.sampleCount,meanWorkloadSize:r.meanWorkloadSize,meanDurationMilliseconds:r.meanDurationMilliseconds,durationStandardDeviationMilliseconds:r.sampleCount>1?Math.sqrt(r.durationSquaredDifferenceSum/(r.sampleCount-1)):0})}function $s(r,e){return r.meanDurationMilliseconds*(e/Math.max(r.meanWorkloadSize,1))}function Ai(r){return Math.floor(Math.log2(Math.max(r,1)))}function Lo(r,e,t){return`${r}\0${e}\0${t}`}function br(r,e){if(!r)throw new Error(`GPUCommandGraph autotuner ${e} is required`)}function Gi(r){if(!Number.isSafeInteger(r)||r<=0)throw new Error("GPUCommandGraph autotuner workloadSize must be a positive safe integer")}var Us={interactive:4,normal:8,background:16},Ao=class{targetStepMilliseconds;latencyPriority;minimumScale;maximumScale;responsiveness;maximumAdjustmentFactor;initialBudget;currentBudget;currentScale=1;currentSampleCount=0;constructor(e){Ii(e.initialBudget);let t=e.latencyPriority??"normal",o=e.targetStepMilliseconds??Us[t];Et(o,"targetStepMilliseconds");let n=e.minimumScale??.125,i=e.maximumScale??4,a=e.responsiveness??.25,s=e.maximumAdjustmentFactor??2;if(Et(n,"minimumScale"),Et(i,"maximumScale"),Et(s,"maximumAdjustmentFactor"),n>1||i<1)throw new Error("GPUCommandGraph budget scale range must contain the initial scale 1");if(!Number.isFinite(a)||a<=0||a>1)throw new Error("GPUCommandGraph budget responsiveness must be in the interval (0, 1]");if(s<1)throw new Error("GPUCommandGraph budget maximumAdjustmentFactor must be at least 1");this.initialBudget=Ui(e.initialBudget),this.currentBudget=this.initialBudget,this.latencyPriority=t,this.targetStepMilliseconds=o,this.minimumScale=n,this.maximumScale=i,this.responsiveness=a,this.maximumAdjustmentFactor=s}get budget(){return this.currentBudget}get sampleCount(){return this.currentSampleCount}reset(){this.currentBudget=this.initialBudget,this.currentScale=1,this.currentSampleCount=0}observeStep(e,t,o=this.currentBudget){Et(t,"durationMilliseconds"),Ii(o);let n=_s(e,o);if(n>0){let i=this.targetStepMilliseconds*Math.min(n,1)/t,s=1+($i(i,1/this.maximumAdjustmentFactor,this.maximumAdjustmentFactor)-1)*this.responsiveness;this.currentScale=$i(this.currentScale*s,this.minimumScale,this.maximumScale),this.currentBudget=Rs(this.initialBudget,this.currentScale)}return this.currentSampleCount++,Object.freeze({sampleCount:this.currentSampleCount,durationMilliseconds:t,targetStepMilliseconds:this.targetStepMilliseconds,latencyPriority:this.latencyPriority,saturation:n,scale:this.currentScale,budget:this.currentBudget})}};function _s(r,e){let t=[r.maximumInvocationCount/e.maximumInvocationCount];return e.maximumNodeCount!==void 0&&t.push(r.nodeCount/e.maximumNodeCount),e.maximumCommandCount!==void 0&&t.push(r.commandCount/e.maximumCommandCount),e.maximumReadByteLength!==void 0&&t.push(r.readByteLength/e.maximumReadByteLength),e.maximumWriteByteLength!==void 0&&t.push(r.writeByteLength/e.maximumWriteByteLength),Math.max(...t)}function Rs(r,e){return Ui({maximumInvocationCount:Bt(r.maximumInvocationCount,e),...r.maximumNodeCount===void 0?{}:{maximumNodeCount:Bt(r.maximumNodeCount,e)},...r.maximumCommandCount===void 0?{}:{maximumCommandCount:Bt(r.maximumCommandCount,e)},...r.maximumReadByteLength===void 0?{}:{maximumReadByteLength:Bt(r.maximumReadByteLength,e)},...r.maximumWriteByteLength===void 0?{}:{maximumWriteByteLength:Bt(r.maximumWriteByteLength,e)}})}function Bt(r,e){return Math.max(1,Math.min(Number.MAX_SAFE_INTEGER,Math.round(r*e)))}function Ui(r){return Object.freeze({...r})}function Et(r,e){if(!Number.isFinite(r)||r<=0)throw new Error(`GPUCommandGraph budget ${e} must be positive`)}function Ii(r){for(let[e,t]of[["maximumInvocationCount",r.maximumInvocationCount],["maximumNodeCount",r.maximumNodeCount],["maximumCommandCount",r.maximumCommandCount],["maximumReadByteLength",r.maximumReadByteLength],["maximumWriteByteLength",r.maximumWriteByteLength]])if(t!==void 0&&(!Number.isSafeInteger(t)||t<=0))throw new Error(`GPUCommandGraph budget ${e} must be a positive safe integer`)}function $i(r,e,t){return Math.max(e,Math.min(t,r))}var Go=class{maxSamples;getNodeGroup;graphs=new Map;encodingGraphs=new WeakMap;constructor(e={}){let t=e.maxSamples??120;if(!Number.isSafeInteger(t)||t<=0)throw new Error("GPUCommandGraphInspector maxSamples must be a positive safe integer");this.maxSamples=t,this.getNodeGroup=e.getNodeGroup}registerGraph(e){this.graphs.set(e.id,{id:e.id,stats:Ms(e.stats),capabilities:Object.freeze({...e.capabilities}),...e.preflight?{preflight:ks(e.preflight)}:{},encodingCount:0,timingReadFailureCount:0,cpuSamples:[],gpuSamples:[],counters:new Map,nodes:new Map});let t=this.getGraph(e.id);for(let o of e.preflight?.nodes??[])this.getNode(t,o)}observeGraph(e){this.registerGraph(e);let t=this.getGraph(e.id),o=new WeakMap,n=!0,i=()=>n&&this.graphs.get(e.id)===t;return Object.freeze({graph:e,encode:(a,s)=>{let u=e.encode(a,s);return i()&&this.recordGraphEncoding(t,u),u},recordGPUTimings:async a=>{let s=o.get(a);if(s)return await s;if(i()&&this.encodingGraphs.get(a)===t){let u=this.recordGraphGPUTimings(e.id,t,a);return o.set(a,u),await u}},recordCounters:a=>{i()&&this.recordGraphCounters(t,a)},detach:()=>{n&&(n=!1,this.graphs.get(e.id)===t&&this.graphs.delete(e.id))}})}clear(){this.graphs.clear()}recordEncoding(e,t){let o=this.getGraph(e);this.recordGraphEncoding(o,t)}async readResource(e,t,o){let n=this.getGraph(e);if(!n.encoding?.readResource)throw new Error("No live resource readback is available.");let i=await n.encoding.readResource(t,o);if(this.graphs.get(e)!==n)throw new Error("Graph registration changed during readback.");return i}recordCounters(e,t){this.recordGraphCounters(this.getGraph(e),t)}recordGraphEncoding(e,t){e.encoding=t,this.encodingGraphs.set(t,e);let{stats:o}=t;e.encodingCount++,this.addSample(e.cpuSamples,o.cpuEncodeTimeMilliseconds);for(let n of o.nodes){let i=this.getNode(e,n);this.addSample(i.cpuSamples,n.cpuEncodeTimeMilliseconds)}}recordGraphCounters(e,t){let o=Object.entries(t);for(let[n,i]of o)if(!n||!Number.isFinite(i)||i<0)throw new Error("GPUCommandGraphInspector counters require an ID and a finite, non-negative value");for(let[n,i]of o){let a=e.counters.get(n);a||(a=[],e.counters.set(n,a)),this.addSample(a,i)}}async recordGPUTimings(e,t){let n=this.encodingGraphs.get(t)??this.getGraph(e);return await this.recordGraphGPUTimings(e,n,t)}async recordGraphGPUTimings(e,t,o){if(this.graphs.get(e)!==t)return;let n;try{n=await o.readTimings()}catch{this.graphs.get(e)===t&&t.timingReadFailureCount++;return}if(this.graphs.get(e)===t){n.gpuTimeMilliseconds!==void 0&&this.addSample(t.gpuSamples,n.gpuTimeMilliseconds);for(let i of n.nodes)if(i.gpuTimeMilliseconds!==void 0){let a=this.getNode(t,i);this.addSample(a.gpuSamples,i.gpuTimeMilliseconds)}return n}}getSnapshot(){let e=Array.from(this.graphs.values(),t=>this.getGraphSnapshot(t));return Object.freeze({graphs:Object.freeze(e)})}getGraph(e){let t=this.graphs.get(e);if(!t)throw new Error(`GPUCommandGraphInspector graph "${e}" is not registered`);return t}getNode(e,t){let o=e.nodes.get(t.id);if(o)return t.description!==void 0&&(o.description=t.description),t.resources!==void 0&&(o.resources=Io(t.resources)),o;let n=Io(t.resources),i=this.getNodeGroup?.({graphId:e.id,id:t.id,type:t.type,description:t.description,resources:n}),a={id:t.id,resources:n,...t.description===void 0?{}:{description:t.description},type:t.type,...i===void 0?{}:{group:i},cpuSamples:[],gpuSamples:[]};return e.nodes.set(a.id,a),a}addSample(e,t){e.push(t),e.length>this.maxSamples&&e.splice(0,e.length-this.maxSamples)}getGraphSnapshot(e){let t=[],o=new Set;for(let a of e.stats.nodeOrder){let s=e.nodes.get(a);s&&(t.push(s),o.add(a))}for(let a of e.nodes.values())o.has(a.id)||t.push(a);let n=t.map(a=>Object.freeze({id:a.id,resources:a.resources,...a.description===void 0?{}:{description:a.description},type:a.type,...a.group===void 0?{}:{group:a.group},cpu:wr(a.cpuSamples),gpu:wr(a.gpuSamples)})),i=Array.from(e.counters,([a,s])=>Os(a,s));return Object.freeze({id:e.id,stats:e.stats,capabilities:e.capabilities,...e.preflight?{preflight:e.preflight}:{},encodingCount:e.encodingCount,timingReadFailureCount:e.timingReadFailureCount,totals:Object.freeze({cpu:wr(e.cpuSamples),gpu:wr(e.gpuSamples)}),counters:Object.freeze(i),nodes:Object.freeze(n)})}};function Ms(r){return Object.freeze({...r,nodeOrder:Object.freeze([...r.nodeOrder])})}function ks(r){return Object.freeze({...r,nodes:Object.freeze(r.nodes.map(e=>Object.freeze({...e,resources:Io(e.resources)})))})}function wr(r){if(r.length===0)return Object.freeze({sampleCount:0});let e=[...r].sort((t,o)=>t-o);return Object.freeze({sampleCount:r.length,latestMilliseconds:r[r.length-1],p50Milliseconds:Tr(e,.5),p95Milliseconds:Tr(e,.95)})}function Os(r,e){let t=[...e].sort((o,n)=>o-n);return Object.freeze({id:r,sampleCount:e.length,latestValue:e[e.length-1],p50Value:Tr(t,.5),p95Value:Tr(t,.95)})}function Tr(r,e){return r[Math.ceil(e*r.length)-1]}function Io(r){return r&&Object.freeze(r.map(e=>Object.freeze({...e})))}return zi(Lt);})();
204
+ return __exports__;
205
+ });