@luma.gl/graph 10.0.0-beta.2 → 10.0.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.cjs +22 -9
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.d.ts +11 -2
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.js +27 -10
- package/dist/arrow/gpu/arrow-gpu-analytics-adapters.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.cjs +24 -13
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.d.ts +9 -1
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.js +41 -14
- package/dist/arrow/gpu/arrow-gpu-analytics-readback.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-table-conversion.cjs +82 -23
- package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts +16 -1
- package/dist/arrow/gpu/arrow-gpu-table-conversion.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-table-conversion.js +98 -24
- package/dist/arrow/gpu/arrow-gpu-table-conversion.js.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.cjs +7 -0
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.d.ts +2 -0
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.d.ts.map +1 -1
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.js +14 -0
- package/dist/arrow/gpu/arrow-gpu-vector-conversion.js.map +1 -1
- package/dist/arrow/index.cjs +2 -0
- package/dist/arrow/index.cjs.map +3 -3
- package/dist/arrow/index.d.ts +1 -1
- package/dist/arrow/index.d.ts.map +1 -1
- package/dist/arrow/index.js +1 -1
- package/dist/arrow/index.js.map +1 -1
- package/dist/arrow/vectors/arrow-temporal-gpu-vector.cjs +1 -2
- package/dist/arrow/vectors/arrow-temporal-gpu-vector.js +2 -2
- package/dist/arrow/vectors/arrow-temporal-gpu-vector.js.map +1 -1
- package/dist/dist.dev.js +62 -27
- package/dist/dist.min.js +48 -47
- package/dist/gpu-core/gpu-bvh-bounds.cjs +63 -0
- package/dist/gpu-core/gpu-bvh-bounds.d.ts +32 -0
- package/dist/gpu-core/gpu-bvh-bounds.d.ts.map +1 -0
- package/dist/gpu-core/gpu-bvh-bounds.js +56 -0
- package/dist/gpu-core/gpu-bvh-bounds.js.map +1 -0
- package/dist/gpu-core/gpu-command-graph-budget-controller.cjs +10 -2
- package/dist/gpu-core/gpu-command-graph-budget-controller.d.ts +4 -0
- package/dist/gpu-core/gpu-command-graph-budget-controller.d.ts.map +1 -1
- package/dist/gpu-core/gpu-command-graph-budget-controller.js +10 -2
- package/dist/gpu-core/gpu-command-graph-budget-controller.js.map +1 -1
- package/dist/gpu-core/gpu-command-graph-submission-pacer.cjs +92 -0
- package/dist/gpu-core/gpu-command-graph-submission-pacer.d.ts +41 -0
- package/dist/gpu-core/gpu-command-graph-submission-pacer.d.ts.map +1 -0
- package/dist/gpu-core/gpu-command-graph-submission-pacer.js +85 -0
- package/dist/gpu-core/gpu-command-graph-submission-pacer.js.map +1 -0
- package/dist/gpu-core/gpu-group-aggregation.cjs +45 -21
- package/dist/gpu-core/gpu-group-aggregation.d.ts +4 -0
- package/dist/gpu-core/gpu-group-aggregation.d.ts.map +1 -1
- package/dist/gpu-core/gpu-group-aggregation.js +58 -24
- package/dist/gpu-core/gpu-group-aggregation.js.map +1 -1
- package/dist/gpu-core/index.cjs +6 -0
- package/dist/gpu-core/index.cjs.map +3 -3
- package/dist/gpu-core/index.d.ts +4 -0
- package/dist/gpu-core/index.d.ts.map +1 -1
- package/dist/gpu-core/index.js +2 -0
- package/dist/gpu-core/index.js.map +1 -1
- package/dist/gpu-dataframe/gpu-analytics-compiler-utils.cjs +6 -6
- package/dist/gpu-dataframe/gpu-analytics-compiler-utils.d.ts +1 -1
- package/dist/gpu-dataframe/gpu-analytics-compiler-utils.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-analytics-compiler-utils.js +6 -6
- package/dist/gpu-dataframe/gpu-analytics-compiler-utils.js.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame-query.cjs +55 -14
- package/dist/gpu-dataframe/gpu-data-frame-query.d.ts +13 -2
- package/dist/gpu-dataframe/gpu-data-frame-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame-query.js +58 -17
- package/dist/gpu-dataframe/gpu-data-frame-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame.cjs +1 -3
- package/dist/gpu-dataframe/gpu-data-frame.d.ts +10 -0
- package/dist/gpu-dataframe/gpu-data-frame.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-data-frame.js +1 -3
- package/dist/gpu-dataframe/gpu-data-frame.js.map +1 -1
- package/dist/gpu-dataframe/gpu-expression-shader.cjs +94 -44
- package/dist/gpu-dataframe/gpu-expression-shader.d.ts +8 -5
- package/dist/gpu-dataframe/gpu-expression-shader.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-expression-shader.js +110 -47
- package/dist/gpu-dataframe/gpu-expression-shader.js.map +1 -1
- package/dist/gpu-dataframe/gpu-expression.cjs +14 -8
- package/dist/gpu-dataframe/gpu-expression.d.ts +12 -1
- package/dist/gpu-dataframe/gpu-expression.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-expression.js +11 -6
- package/dist/gpu-dataframe/gpu-expression.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.cjs +8 -4
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.d.ts +2 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js +10 -4
- package/dist/gpu-dataframe/gpu-global-aggregation-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-query.cjs +2 -2
- package/dist/gpu-dataframe/gpu-global-aggregation-query.d.ts +5 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-aggregation-query.js +6 -2
- package/dist/gpu-dataframe/gpu-global-aggregation-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-global-sort-compiler.cjs +156 -124
- package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts +12 -2
- package/dist/gpu-dataframe/gpu-global-sort-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-global-sort-compiler.js +160 -128
- package/dist/gpu-dataframe/gpu-global-sort-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.cjs +366 -53
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.d.ts +26 -4
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js +378 -47
- package/dist/gpu-dataframe/gpu-group-aggregation-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-group-by-query.cjs +20 -9
- package/dist/gpu-dataframe/gpu-group-by-query.d.ts +15 -2
- package/dist/gpu-dataframe/gpu-group-by-query.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-group-by-query.js +22 -8
- package/dist/gpu-dataframe/gpu-group-by-query.js.map +1 -1
- package/dist/gpu-dataframe/gpu-join-compiler.cjs +61 -8
- package/dist/gpu-dataframe/gpu-join-compiler.d.ts +10 -2
- package/dist/gpu-dataframe/gpu-join-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-join-compiler.js +60 -7
- package/dist/gpu-dataframe/gpu-join-compiler.js.map +1 -1
- package/dist/gpu-dataframe/gpu-query-compiler.cjs +61 -11
- package/dist/gpu-dataframe/gpu-query-compiler.d.ts +5 -1
- package/dist/gpu-dataframe/gpu-query-compiler.d.ts.map +1 -1
- package/dist/gpu-dataframe/gpu-query-compiler.js +61 -10
- package/dist/gpu-dataframe/gpu-query-compiler.js.map +1 -1
- package/dist/gpu-dataframe/index.cjs +4 -2
- package/dist/gpu-dataframe/index.cjs.map +3 -3
- package/dist/gpu-dataframe/index.d.ts +1 -1
- package/dist/gpu-dataframe/index.d.ts.map +1 -1
- package/dist/gpu-dataframe/index.js +1 -1
- package/dist/gpu-dataframe/index.js.map +1 -1
- package/dist/gpu-graph/index.cjs.map +1 -1
- package/dist/gpu-graph-algorithms/benchmarks.cjs.map +2 -2
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.cjs +182 -62
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.d.ts +29 -2
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.d.ts.map +1 -1
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.js +200 -64
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.js.map +1 -1
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.cjs +135 -9
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.d.ts +55 -8
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.d.ts.map +1 -1
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.js +145 -14
- package/dist/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.js.map +1 -1
- package/dist/gpu-graph-algorithms/index.cjs.map +3 -3
- package/dist/gpu-physics/articulation-tree-shader.cjs +177 -0
- package/dist/gpu-physics/articulation-tree-shader.d.ts +3 -0
- package/dist/gpu-physics/articulation-tree-shader.d.ts.map +1 -0
- package/dist/gpu-physics/articulation-tree-shader.js +159 -0
- package/dist/gpu-physics/articulation-tree-shader.js.map +1 -0
- package/dist/gpu-physics/gpu-articulation-tree.cjs +203 -0
- package/dist/gpu-physics/gpu-articulation-tree.d.ts +81 -0
- package/dist/gpu-physics/gpu-articulation-tree.d.ts.map +1 -0
- package/dist/gpu-physics/gpu-articulation-tree.js +205 -0
- package/dist/gpu-physics/gpu-articulation-tree.js.map +1 -0
- package/dist/gpu-physics/gpu-physics-batch.cjs +11 -10
- package/dist/gpu-physics/gpu-physics-batch.d.ts +1 -0
- package/dist/gpu-physics/gpu-physics-batch.d.ts.map +1 -1
- package/dist/gpu-physics/gpu-physics-batch.js +14 -10
- package/dist/gpu-physics/gpu-physics-batch.js.map +1 -1
- package/dist/gpu-physics/gpu-physics-ensemble.cjs +9 -4
- package/dist/gpu-physics/gpu-physics-ensemble.d.ts +10 -1
- package/dist/gpu-physics/gpu-physics-ensemble.d.ts.map +1 -1
- package/dist/gpu-physics/gpu-physics-ensemble.js +11 -4
- package/dist/gpu-physics/gpu-physics-ensemble.js.map +1 -1
- package/dist/gpu-physics/gpu-rigid-body-world.cjs +323 -68
- package/dist/gpu-physics/gpu-rigid-body-world.d.ts +59 -2
- package/dist/gpu-physics/gpu-rigid-body-world.d.ts.map +1 -1
- package/dist/gpu-physics/gpu-rigid-body-world.js +400 -75
- package/dist/gpu-physics/gpu-rigid-body-world.js.map +1 -1
- package/dist/gpu-physics/index.cjs +3 -0
- package/dist/gpu-physics/index.cjs.map +3 -3
- package/dist/gpu-physics/index.d.ts +3 -1
- package/dist/gpu-physics/index.d.ts.map +1 -1
- package/dist/gpu-physics/index.js +1 -0
- package/dist/gpu-physics/index.js.map +1 -1
- package/dist/gpu-physics/rigid-body-cache-shaders.cjs +10 -6
- package/dist/gpu-physics/rigid-body-cache-shaders.d.ts +2 -1
- package/dist/gpu-physics/rigid-body-cache-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-cache-shaders.js +15 -6
- package/dist/gpu-physics/rigid-body-cache-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-capacity.cjs +15 -2
- package/dist/gpu-physics/rigid-body-capacity.d.ts +3 -1
- package/dist/gpu-physics/rigid-body-capacity.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-capacity.js +21 -2
- package/dist/gpu-physics/rigid-body-capacity.js.map +1 -1
- package/dist/gpu-physics/rigid-body-cast-index.cjs +192 -0
- package/dist/gpu-physics/rigid-body-cast-index.d.ts +44 -0
- package/dist/gpu-physics/rigid-body-cast-index.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-cast-index.js +194 -0
- package/dist/gpu-physics/rigid-body-cast-index.js.map +1 -0
- package/dist/gpu-physics/rigid-body-ensemble-layout.cjs +4 -2
- package/dist/gpu-physics/rigid-body-ensemble-layout.d.ts +2 -1
- package/dist/gpu-physics/rigid-body-ensemble-layout.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-layout.js +5 -2
- package/dist/gpu-physics/rigid-body-ensemble-layout.js.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-reset.cjs +11 -9
- package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-reset.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-reset.js +13 -9
- package/dist/gpu-physics/rigid-body-ensemble-reset.js.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-shaders.cjs +14 -7
- package/dist/gpu-physics/rigid-body-ensemble-shaders.d.ts +5 -0
- package/dist/gpu-physics/rigid-body-ensemble-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-shaders.js +17 -7
- package/dist/gpu-physics/rigid-body-ensemble-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.cjs +21 -11
- package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts +2 -2
- package/dist/gpu-physics/rigid-body-ensemble-transaction.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-ensemble-transaction.js +28 -12
- package/dist/gpu-physics/rigid-body-ensemble-transaction.js.map +1 -1
- package/dist/gpu-physics/rigid-body-event-compaction.cjs +184 -0
- package/dist/gpu-physics/rigid-body-event-compaction.d.ts +35 -0
- package/dist/gpu-physics/rigid-body-event-compaction.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-event-compaction.js +168 -0
- package/dist/gpu-physics/rigid-body-event-compaction.js.map +1 -0
- package/dist/gpu-physics/rigid-body-event-snapshot.cjs +51 -0
- package/dist/gpu-physics/rigid-body-event-snapshot.d.ts +33 -0
- package/dist/gpu-physics/rigid-body-event-snapshot.d.ts.map +1 -0
- package/dist/gpu-physics/rigid-body-event-snapshot.js +34 -0
- package/dist/gpu-physics/rigid-body-event-snapshot.js.map +1 -0
- package/dist/gpu-physics/rigid-body-events.cjs +57 -25
- package/dist/gpu-physics/rigid-body-events.d.ts +2 -1
- package/dist/gpu-physics/rigid-body-events.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-events.js +60 -25
- package/dist/gpu-physics/rigid-body-events.js.map +1 -1
- package/dist/gpu-physics/rigid-body-joints.cjs +8 -3
- package/dist/gpu-physics/rigid-body-joints.d.ts +2 -0
- package/dist/gpu-physics/rigid-body-joints.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-joints.js +10 -6
- package/dist/gpu-physics/rigid-body-joints.js.map +1 -1
- package/dist/gpu-physics/rigid-body-queries.cjs +159 -16
- package/dist/gpu-physics/rigid-body-queries.d.ts +24 -1
- package/dist/gpu-physics/rigid-body-queries.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-queries.js +166 -14
- package/dist/gpu-physics/rigid-body-queries.js.map +1 -1
- package/dist/gpu-physics/rigid-body-shaders.cjs +3 -3
- package/dist/gpu-physics/rigid-body-shaders.d.ts +1 -1
- package/dist/gpu-physics/rigid-body-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-shaders.js +3 -3
- package/dist/gpu-physics/rigid-body-shaders.js.map +1 -1
- package/dist/gpu-physics/rigid-body-triggers.cjs +53 -15
- package/dist/gpu-physics/rigid-body-triggers.d.ts +1 -0
- package/dist/gpu-physics/rigid-body-triggers.d.ts.map +1 -1
- package/dist/gpu-physics/rigid-body-triggers.js +55 -15
- package/dist/gpu-physics/rigid-body-triggers.js.map +1 -1
- package/dist/gpu-physics/sphere-world-shaders.cjs +48 -20
- package/dist/gpu-physics/sphere-world-shaders.d.ts.map +1 -1
- package/dist/gpu-physics/sphere-world-shaders.js +51 -21
- package/dist/gpu-physics/sphere-world-shaders.js.map +1 -1
- package/dist/gpu-project/benchmarks.cjs.map +2 -2
- package/dist/gpu-project/crs.cjs.map +2 -2
- package/dist/gpu-project/graph.cjs.map +2 -2
- package/dist/gpu-project/index.cjs.map +2 -2
- package/dist/gpu-project/projection-program.cjs +2 -9
- package/dist/gpu-project/projection-program.d.ts.map +1 -1
- package/dist/gpu-project/projection-program.js +1 -8
- package/dist/gpu-project/projection-program.js.map +1 -1
- package/dist/gpu-simple-graph/index.cjs.map +2 -2
- package/dist/gpu-sql/gpu-sql.cjs +345 -81
- package/dist/gpu-sql/gpu-sql.d.ts +42 -2
- package/dist/gpu-sql/gpu-sql.d.ts.map +1 -1
- package/dist/gpu-sql/gpu-sql.js +393 -90
- package/dist/gpu-sql/gpu-sql.js.map +1 -1
- package/dist/gpu-sql/index.cjs.map +3 -3
- package/dist/gpu-sql/index.d.ts +1 -1
- package/dist/gpu-sql/index.d.ts.map +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/utils/float32.cjs +35 -0
- package/dist/utils/float32.d.ts +3 -0
- package/dist/utils/float32.d.ts.map +1 -0
- package/dist/utils/float32.js +16 -0
- package/dist/utils/float32.js.map +1 -0
- package/package.json +8 -8
- package/src/arrow/gpu/arrow-gpu-analytics-adapters.ts +77 -25
- package/src/arrow/gpu/arrow-gpu-analytics-readback.ts +52 -16
- package/src/arrow/gpu/arrow-gpu-table-conversion.ts +130 -31
- package/src/arrow/gpu/arrow-gpu-vector-conversion.ts +19 -0
- package/src/arrow/index.ts +1 -0
- package/src/arrow/vectors/arrow-temporal-gpu-vector.ts +2 -2
- package/src/gpu-core/gpu-bvh-bounds.ts +84 -0
- package/src/gpu-core/gpu-command-graph-budget-controller.ts +22 -2
- package/src/gpu-core/gpu-command-graph-submission-pacer.ts +102 -0
- package/src/gpu-core/gpu-group-aggregation.ts +68 -30
- package/src/gpu-core/index.ts +5 -0
- package/src/gpu-dataframe/gpu-analytics-compiler-utils.ts +7 -10
- package/src/gpu-dataframe/gpu-data-frame-query.ts +106 -25
- package/src/gpu-dataframe/gpu-data-frame.ts +35 -2
- package/src/gpu-dataframe/gpu-expression-shader.ts +172 -58
- package/src/gpu-dataframe/gpu-expression.ts +62 -9
- package/src/gpu-dataframe/gpu-global-aggregation-compiler.ts +15 -4
- package/src/gpu-dataframe/gpu-global-aggregation-query.ts +12 -3
- package/src/gpu-dataframe/gpu-global-sort-compiler.ts +231 -156
- package/src/gpu-dataframe/gpu-group-aggregation-compiler.ts +645 -61
- package/src/gpu-dataframe/gpu-group-by-query.ts +51 -14
- package/src/gpu-dataframe/gpu-join-compiler.ts +87 -6
- package/src/gpu-dataframe/gpu-query-compiler.ts +100 -18
- package/src/gpu-dataframe/index.ts +1 -1
- package/src/gpu-graph-algorithms/README.md +4 -2
- package/src/gpu-graph-algorithms/gpu-graph-single-source-shortest-path-internals.ts +248 -66
- package/src/gpu-graph-algorithms/gpu-graph-single-source-shortest-path.ts +218 -20
- package/src/gpu-physics/articulation-tree-shader.ts +169 -0
- package/src/gpu-physics/gpu-articulation-tree.ts +279 -0
- package/src/gpu-physics/gpu-physics-batch.ts +19 -13
- package/src/gpu-physics/gpu-physics-ensemble.ts +20 -4
- package/src/gpu-physics/gpu-rigid-body-world.ts +510 -93
- package/src/gpu-physics/index.ts +16 -0
- package/src/gpu-physics/rigid-body-cache-shaders.ts +18 -6
- package/src/gpu-physics/rigid-body-capacity.ts +25 -4
- package/src/gpu-physics/rigid-body-cast-index.ts +277 -0
- package/src/gpu-physics/rigid-body-ensemble-layout.ts +6 -2
- package/src/gpu-physics/rigid-body-ensemble-reset.ts +21 -9
- package/src/gpu-physics/rigid-body-ensemble-shaders.ts +18 -7
- package/src/gpu-physics/rigid-body-ensemble-transaction.ts +31 -13
- package/src/gpu-physics/rigid-body-event-compaction.ts +252 -0
- package/src/gpu-physics/rigid-body-event-snapshot.ts +76 -0
- package/src/gpu-physics/rigid-body-events.ts +63 -25
- package/src/gpu-physics/rigid-body-joints.ts +11 -11
- package/src/gpu-physics/rigid-body-queries.ts +202 -14
- package/src/gpu-physics/rigid-body-shaders.ts +4 -3
- package/src/gpu-physics/rigid-body-triggers.ts +64 -20
- package/src/gpu-physics/sphere-world-shaders.ts +53 -21
- package/src/gpu-project/projection-program.ts +1 -9
- package/src/gpu-sql/gpu-sql.ts +629 -124
- package/src/gpu-sql/index.ts +1 -1
- package/src/utils/float32.ts +16 -0
|
@@ -18,7 +18,8 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
18
18
|
var gpu_group_aggregation_compiler_exports = {};
|
|
19
19
|
__export(gpu_group_aggregation_compiler_exports, {
|
|
20
20
|
CompiledGPUDataFrameGroupedAggregation: () => CompiledGPUDataFrameGroupedAggregation,
|
|
21
|
-
compileGPUDataFrameGroupedAggregation: () => compileGPUDataFrameGroupedAggregation
|
|
21
|
+
compileGPUDataFrameGroupedAggregation: () => compileGPUDataFrameGroupedAggregation,
|
|
22
|
+
compileGPUDataFrameObservedAggregation: () => compileGPUDataFrameObservedAggregation
|
|
22
23
|
});
|
|
23
24
|
module.exports = __toCommonJS(gpu_group_aggregation_compiler_exports);
|
|
24
25
|
var import_core = require("@luma.gl/core");
|
|
@@ -27,30 +28,54 @@ var import_gpu_tables = require("@luma.gl/graph/gpu-tables");
|
|
|
27
28
|
var import_gpu_core = require("@luma.gl/graph/gpu-core");
|
|
28
29
|
var import_gpu_core2 = require("@luma.gl/graph/gpu-core");
|
|
29
30
|
var import_gpu_core3 = require("@luma.gl/graph/gpu-core");
|
|
31
|
+
var import_gpu_core4 = require("@luma.gl/graph/gpu-core");
|
|
30
32
|
var import_gpu_analytics_compiler_utils = require("./gpu-analytics-compiler-utils.cjs");
|
|
33
|
+
var import_gpu_data_frame = require("./gpu-data-frame.cjs");
|
|
31
34
|
var import_gpu_query_compiler = require("./gpu-query-compiler.cjs");
|
|
35
|
+
var import_gpu_global_sort_compiler = require("./gpu-global-sort-compiler.cjs");
|
|
36
|
+
var import_gpu_join_compiler = require("./gpu-join-compiler.cjs");
|
|
32
37
|
const UINT32_BYTE_LENGTH = Uint32Array.BYTES_PER_ELEMENT;
|
|
33
38
|
const MAXIMUM_UINT32 = 4294967295;
|
|
34
39
|
class CompiledGPUDataFrameGroupedAggregation extends import_gpu_query_compiler.CompiledGPUDataFrameQuery {
|
|
35
|
-
/**
|
|
40
|
+
/** Result table capacity. Observed grouping publishes the actual count in selectedCounts. */
|
|
36
41
|
groupCount;
|
|
42
|
+
/** Group row indices in global ORDER BY order, when requested. */
|
|
43
|
+
globalRowIndices;
|
|
44
|
+
/** Number of groups left after applying the page, when ordered. */
|
|
45
|
+
globalSelectedCount;
|
|
37
46
|
/** @internal */
|
|
38
|
-
constructor(props, groupCount) {
|
|
47
|
+
constructor(props, groupCount, ordering) {
|
|
39
48
|
super(props);
|
|
40
49
|
this.groupCount = groupCount;
|
|
50
|
+
this.globalRowIndices = ordering == null ? void 0 : ordering.globalRowIndices;
|
|
51
|
+
this.globalSelectedCount = ordering == null ? void 0 : ordering.globalSelectedCount;
|
|
41
52
|
}
|
|
42
53
|
}
|
|
43
|
-
function
|
|
54
|
+
function compileGPUDataFrameObservedAggregation(source, predicates, selectedColumns, derivedColumns, keys, definitions, graph, columns, ordering, having, join, maxMeanScratchBytes) {
|
|
55
|
+
if (source.numRows > 0)
|
|
56
|
+
validateGPUGroupingCapacity(source, source.numRows, graph);
|
|
57
|
+
validateGPUGroupingSourceColumns(source, keys.map((key) => key.source), definitions);
|
|
58
|
+
return (0, import_gpu_query_compiler.compileGPUDataFrameQuery)(source, predicates, selectedColumns, graph, derivedColumns, {
|
|
59
|
+
prepare: (context) => {
|
|
60
|
+
const prepare = (input) => addGPUGroupedAggregationToGraph(input, keys, source.numRows, definitions, columns, true, ordering, having, maxMeanScratchBytes);
|
|
61
|
+
return join ? (0, import_gpu_join_compiler.prepareGPUJoinAggregation)(source, context, join, prepare) : prepare(context);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
function compileGPUDataFrameGroupedAggregation(source, predicates, selectedColumns, derivedColumns, key, groupCount, definitions, graph, projection, ordering, having, join, maxMeanScratchBytes) {
|
|
44
66
|
validateGPUGroupingCapacity(source, groupCount, graph);
|
|
45
|
-
validateGPUGroupingSourceColumns(source, key, definitions);
|
|
67
|
+
validateGPUGroupingSourceColumns(source, [key], definitions);
|
|
46
68
|
return (0, import_gpu_query_compiler.compileGPUDataFrameQuery)(source, predicates, selectedColumns, graph, derivedColumns, {
|
|
47
|
-
prepare: (context) =>
|
|
69
|
+
prepare: (context) => {
|
|
70
|
+
const prepare = (input) => addGPUGroupedAggregationToGraph(input, [{ source: key, output: (projection == null ? void 0 : projection.key) ?? key }], groupCount, definitions, projection == null ? void 0 : projection.columns, false, ordering, having, maxMeanScratchBytes);
|
|
71
|
+
return join ? (0, import_gpu_join_compiler.prepareGPUJoinAggregation)(source, context, join, prepare) : prepare(context);
|
|
72
|
+
}
|
|
48
73
|
});
|
|
49
74
|
}
|
|
50
|
-
function validateGPUGroupingSourceColumns(source,
|
|
75
|
+
function validateGPUGroupingSourceColumns(source, keys, definitions) {
|
|
51
76
|
const columnNames = /* @__PURE__ */ new Set([
|
|
52
|
-
|
|
53
|
-
...definitions.flatMap((definition) => definition.column ? [definition.column] : [])
|
|
77
|
+
...keys,
|
|
78
|
+
...definitions.flatMap((definition) => definition.operation !== "count" && definition.column ? [definition.column] : [])
|
|
54
79
|
]);
|
|
55
80
|
for (const name of columnNames) {
|
|
56
81
|
if (source.table.gpuConstants[name]) {
|
|
@@ -75,34 +100,68 @@ function validateGPUGroupingCapacity(source, groupCount, graph) {
|
|
|
75
100
|
throw new Error("GPUDataFrame group count exceeds the available GPU buffer capacity");
|
|
76
101
|
}
|
|
77
102
|
}
|
|
78
|
-
function addGPUGroupedAggregationToGraph(context,
|
|
103
|
+
function addGPUGroupedAggregationToGraph(context, groupingKeys, groupCount, definitions, columns, observed = false, orderBy, having, maxMeanScratchBytes) {
|
|
79
104
|
const graph = context.graph;
|
|
80
105
|
const prefix = `${context.queryId}-group`;
|
|
81
106
|
const ownedVectors = [];
|
|
82
107
|
let resultTable;
|
|
108
|
+
let projection;
|
|
83
109
|
try {
|
|
84
|
-
const
|
|
85
|
-
const keys = graph.importGPUVector(`${prefix}-keys`, sourceKeys);
|
|
86
|
-
const keyValidity = getGPUGroupingValidity(context, key, keys);
|
|
87
|
-
const baseMask = keyValidity ? combineGPUGroupingMasks(graph, `${prefix}-key-validity`, context.selectionMask, keyValidity) : context.selectionMask;
|
|
110
|
+
const inputs = groupingKeys.map(({ source }, index) => graph.importGPUVector(`${prefix}-key-${index}`, getGPUGroupingVector(context, source, observed ? getGPUGroupingFormat(context.table, source) : "uint32")));
|
|
88
111
|
const outputVectors = /* @__PURE__ */ new Map();
|
|
89
|
-
const
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
112
|
+
const outputs = groupingKeys.map(({ output }, index) => {
|
|
113
|
+
if (output === void 0)
|
|
114
|
+
return void 0;
|
|
115
|
+
const vector = createGPUGroupedOutputVector(graph.device, `${prefix}-output-key-${index}`, groupCount, inputs[index].format);
|
|
116
|
+
ownedVectors.push(vector);
|
|
117
|
+
outputVectors.set(output, vector);
|
|
118
|
+
return graph.importGPUVector(`${prefix}-output-key-view-${index}`, vector).data[0];
|
|
119
|
+
});
|
|
120
|
+
const keyValidity = observed ? void 0 : getGPUGroupingValidity(context, groupingKeys[0].source, inputs[0]);
|
|
121
|
+
const baseMask = keyValidity ? combineGPUGroupingMasks(graph, `${prefix}-key-validity`, context.selectionMask, keyValidity) : context.selectionMask;
|
|
95
122
|
const validity = {};
|
|
123
|
+
const nullableKeys = observed ? groupingKeys.map(({ source, output }, index) => {
|
|
124
|
+
const field = context.table.schema.fields.find((field2) => field2.name === source);
|
|
125
|
+
if (!(field == null ? void 0 : field.nullable))
|
|
126
|
+
return void 0;
|
|
127
|
+
const input = getGPUGroupingValidity(context, source, inputs[index]);
|
|
128
|
+
if (output === void 0)
|
|
129
|
+
return { input };
|
|
130
|
+
const mask = createGPUGroupedOutputVector(graph.device, prefix + "-key-mask-" + index, groupCount, "uint32");
|
|
131
|
+
ownedVectors.push(mask);
|
|
132
|
+
validity[output] = mask;
|
|
133
|
+
return {
|
|
134
|
+
input,
|
|
135
|
+
output: graph.importGPUVector(prefix + "-key-mask-view-" + index, mask).data[0]
|
|
136
|
+
};
|
|
137
|
+
}) : [];
|
|
138
|
+
let rowSelection = observed ? addGPUObservedGroups(context, prefix, inputs, outputs, nullableKeys, ownedVectors) : void 0;
|
|
139
|
+
const keys = (rowSelection == null ? void 0 : rowSelection.keys) ?? inputs[0];
|
|
140
|
+
if (!observed)
|
|
141
|
+
addGPUGroupIdentityPass(graph, `${prefix}-output-key-identity`, outputs[0]);
|
|
142
|
+
const metricStates = /* @__PURE__ */ new Map();
|
|
96
143
|
for (const [definitionIndex, definition] of definitions.entries()) {
|
|
97
144
|
const metricId = `${prefix}-metric-${definitionIndex}`;
|
|
145
|
+
if (groupCount === 0) {
|
|
146
|
+
const format = definition.operation === "count" ? "uint32" : "float32";
|
|
147
|
+
const output2 = createGPUGroupedOutputVector(graph.device, metricId, 0, format);
|
|
148
|
+
ownedVectors.push(output2);
|
|
149
|
+
outputVectors.set(definition.name, output2);
|
|
150
|
+
if (definition.operation !== "count") {
|
|
151
|
+
const mask = createGPUGroupedOutputVector(graph.device, `${metricId}-validity`, 0, "uint32");
|
|
152
|
+
ownedVectors.push(mask);
|
|
153
|
+
validity[definition.name] = mask;
|
|
154
|
+
}
|
|
155
|
+
continue;
|
|
156
|
+
}
|
|
98
157
|
if (definition.operation === "count") {
|
|
99
158
|
const output2 = createGPUGroupedOutputVector(graph.device, metricId, groupCount, "uint32");
|
|
100
159
|
ownedVectors.push(output2);
|
|
101
160
|
outputVectors.set(definition.name, output2);
|
|
102
|
-
graph.add(new
|
|
161
|
+
graph.add(new import_gpu_core2.GPUGroupAggregation({
|
|
103
162
|
id: metricId,
|
|
104
163
|
keys,
|
|
105
|
-
mask: baseMask,
|
|
164
|
+
mask: definition.column ? (0, import_gpu_analytics_compiler_utils.getGPUAnalyticsSelectionMask)(context, definition.column, metricId, baseMask) : baseMask,
|
|
106
165
|
output: graph.importGPUVector(`${metricId}-output`, output2).data[0],
|
|
107
166
|
operation: "count"
|
|
108
167
|
}));
|
|
@@ -121,27 +180,101 @@ function addGPUGroupedAggregationToGraph(context, key, groupCount, definitions)
|
|
|
121
180
|
ownedVectors.push(output);
|
|
122
181
|
outputVectors.set(definition.name, output);
|
|
123
182
|
validity[definition.name] = state.validity;
|
|
124
|
-
graph.add(new
|
|
183
|
+
graph.add(new import_gpu_core2.GPUGroupAggregation({
|
|
125
184
|
id: metricId,
|
|
126
185
|
keys,
|
|
127
186
|
values: state.values,
|
|
128
187
|
mask: state.mask,
|
|
129
188
|
output: graph.importGPUVector(`${metricId}-output`, output).data[0],
|
|
130
|
-
operation: definition.operation
|
|
189
|
+
operation: definition.operation,
|
|
190
|
+
maxMeanScratchBytes
|
|
131
191
|
}));
|
|
132
192
|
}
|
|
133
|
-
resultTable = createGPUGroupedResultTable(context.table,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
193
|
+
resultTable = createGPUGroupedResultTable(context.table, groupingKeys, definitions, outputVectors, columns && [
|
|
194
|
+
...columns,
|
|
195
|
+
...definitions.filter((definition) => !columns.includes(definition.name)).map((definition) => definition.name)
|
|
196
|
+
], observed);
|
|
197
|
+
const dictionaries = Object.freeze(Object.fromEntries(groupingKeys.flatMap(({ source, output }) => {
|
|
198
|
+
if (output === void 0)
|
|
199
|
+
return [];
|
|
200
|
+
const dictionary = context.dictionaries[source];
|
|
201
|
+
return dictionary ? [[output, dictionary]] : [];
|
|
202
|
+
})));
|
|
203
|
+
if ((orderBy || having) && !rowSelection) {
|
|
204
|
+
const mask = createGPUGroupedOutputVector(graph.device, prefix + "-dense-mask", groupCount, "uint32");
|
|
205
|
+
const rows = createGPUGroupedOutputVector(graph.device, prefix + "-dense-rows", groupCount, "uint32");
|
|
206
|
+
const count = createGPUGroupedOutputVector(graph.device, prefix + "-dense-count", 1, "uint32");
|
|
207
|
+
ownedVectors.push(mask, rows, count);
|
|
208
|
+
addGPUGroupingPass(graph, prefix + "-dense-selection", groupCount, {}, {
|
|
209
|
+
mask: graph.importGPUVector(prefix + "-dense-mask-init", mask).data[0],
|
|
210
|
+
rows: graph.importGPUVector(prefix + "-dense-rows-init", rows).data[0],
|
|
211
|
+
count: graph.importGPUVector(prefix + "-dense-count-init", count).data[0]
|
|
212
|
+
}, `mask[index] = 1u; rows[index] = index; if (index == 0u) { count[0] = ${groupCount}u; }`);
|
|
213
|
+
rowSelection = { keys, mask, rows, count };
|
|
214
|
+
}
|
|
215
|
+
if (having && rowSelection && groupCount > 0) {
|
|
216
|
+
const selectionMask = graph.importGPUVector(prefix + "-having-selection", rowSelection.mask);
|
|
217
|
+
const predicateMask = (0, import_gpu_core4.createTransientVectorView)(graph, prefix + "-having-mask", selectionMask);
|
|
218
|
+
const groupedFrame = new import_gpu_data_frame.GPUDataFrame({
|
|
219
|
+
table: resultTable,
|
|
220
|
+
validity,
|
|
221
|
+
dictionaries,
|
|
222
|
+
ownership: "borrowed"
|
|
223
|
+
});
|
|
224
|
+
try {
|
|
225
|
+
(0, import_gpu_query_compiler.addGPUDataFrameResultPredicate)(graph, prefix + "-having", groupedFrame, having, predicateMask);
|
|
226
|
+
} finally {
|
|
227
|
+
groupedFrame.destroy();
|
|
228
|
+
}
|
|
229
|
+
const mask = createGPUGroupedOutputVector(graph.device, prefix + "-having-result", groupCount, "uint32");
|
|
230
|
+
ownedVectors.push(mask);
|
|
231
|
+
graph.add(new import_gpu_core3.GPUVisibilityWorkflow({
|
|
232
|
+
id: prefix + "-having-filter",
|
|
233
|
+
predicates: [
|
|
234
|
+
{ kind: "selection", mask: selectionMask.data[0] },
|
|
235
|
+
{ kind: "selection", mask: predicateMask.data[0] }
|
|
236
|
+
],
|
|
237
|
+
outputMask: graph.importGPUVector(prefix + "-having-result-view", mask).data[0],
|
|
238
|
+
output: graph.importGPUVector(prefix + "-having-rows", rowSelection.rows).data[0],
|
|
239
|
+
count: graph.importGPUVector(prefix + "-having-count", rowSelection.count).data[0]
|
|
240
|
+
}));
|
|
241
|
+
rowSelection = { ...rowSelection, mask };
|
|
242
|
+
}
|
|
243
|
+
const ordering = orderBy && rowSelection ? (0, import_gpu_global_sort_compiler.addGPUGlobalOrdering)({
|
|
244
|
+
graph,
|
|
245
|
+
queryId: prefix + "-ordered",
|
|
137
246
|
table: resultTable,
|
|
138
|
-
validity
|
|
247
|
+
validity,
|
|
139
248
|
dictionaries,
|
|
140
|
-
|
|
249
|
+
selectionMask: graph.importGPUVector(prefix + "-ordered-mask", rowSelection.mask),
|
|
250
|
+
rowIndices: graph.importGPUVector(prefix + "-ordered-rows", rowSelection.rows),
|
|
251
|
+
selectedCounts: graph.importGPUVector(prefix + "-ordered-count", rowSelection.count)
|
|
252
|
+
}, orderBy, ownedVectors, prefix + "-ordered") : void 0;
|
|
253
|
+
const resultValidity = Object.freeze(validity);
|
|
254
|
+
if (columns && resultTable.schema.fields.length !== columns.length) {
|
|
255
|
+
projection = (0, import_gpu_query_compiler.projectGPUDataFrameQueryResult)({ table: resultTable, validity: resultValidity, dictionaries }, columns);
|
|
256
|
+
}
|
|
257
|
+
return {
|
|
258
|
+
table: (projection == null ? void 0 : projection.table) ?? resultTable,
|
|
259
|
+
validity: (projection == null ? void 0 : projection.validity) ?? resultValidity,
|
|
260
|
+
dictionaries: (projection == null ? void 0 : projection.dictionaries) ?? dictionaries,
|
|
261
|
+
ownedTables: projection ? [projection, resultTable] : [resultTable],
|
|
141
262
|
ownedVectors,
|
|
142
|
-
createCompiled: (props) => new CompiledGPUDataFrameGroupedAggregation(
|
|
263
|
+
createCompiled: (props) => new CompiledGPUDataFrameGroupedAggregation(rowSelection ? {
|
|
264
|
+
...props,
|
|
265
|
+
rowIndices: rowSelection.rows,
|
|
266
|
+
selectedCounts: rowSelection.count,
|
|
267
|
+
selectionMask: rowSelection.mask,
|
|
268
|
+
ownedVectors: [
|
|
269
|
+
...(props.ownedVectors ?? []).filter((vector) => vector !== rowSelection.rows && vector !== rowSelection.mask && vector !== rowSelection.count),
|
|
270
|
+
props.rowIndices,
|
|
271
|
+
props.selectedCounts,
|
|
272
|
+
props.selectionMask
|
|
273
|
+
]
|
|
274
|
+
} : props, groupCount, ordering)
|
|
143
275
|
};
|
|
144
276
|
} catch (error) {
|
|
277
|
+
projection == null ? void 0 : projection.destroy();
|
|
145
278
|
resultTable == null ? void 0 : resultTable.destroy();
|
|
146
279
|
for (const vector of ownedVectors) {
|
|
147
280
|
vector.destroy();
|
|
@@ -149,6 +282,179 @@ function addGPUGroupedAggregationToGraph(context, key, groupCount, definitions)
|
|
|
149
282
|
throw error;
|
|
150
283
|
}
|
|
151
284
|
}
|
|
285
|
+
function addGPUObservedGroups(context, prefix, inputs, outputs, nullableKeys, ownedVectors) {
|
|
286
|
+
var _a, _b, _c;
|
|
287
|
+
const { graph, selectionMask } = context;
|
|
288
|
+
const length = selectionMask.length;
|
|
289
|
+
const allocate = (name, size) => {
|
|
290
|
+
const vector = createGPUGroupedOutputVector(graph.device, prefix + name, size, "uint32");
|
|
291
|
+
ownedVectors.push(vector);
|
|
292
|
+
return vector;
|
|
293
|
+
};
|
|
294
|
+
const rows = allocate("-result-rows", length);
|
|
295
|
+
const mask = allocate("-result-mask", length);
|
|
296
|
+
const count = allocate("-result-count", 1);
|
|
297
|
+
const countView = graph.importGPUVector(prefix + "-count-view", count).data[0];
|
|
298
|
+
if (length === 0) {
|
|
299
|
+
addGPUGroupingPass(graph, prefix + "-empty", 1, {}, { count: countView }, "count[0] = 0u;");
|
|
300
|
+
return { keys: selectionMask, rows, count, mask };
|
|
301
|
+
}
|
|
302
|
+
const words = (view) => {
|
|
303
|
+
const packed = graph.createDataView(view.buffer, {
|
|
304
|
+
format: "uint32",
|
|
305
|
+
length: view.length,
|
|
306
|
+
byteOffset: view.byteOffset,
|
|
307
|
+
byteStride: view.byteStride
|
|
308
|
+
});
|
|
309
|
+
(0, import_gpu_core4.validatePackedUint32View)(packed, prefix + "-key");
|
|
310
|
+
return packed;
|
|
311
|
+
};
|
|
312
|
+
const scratch = (name) => (0, import_gpu_core2.createTransientView)(graph, prefix + name, "uint32", length);
|
|
313
|
+
const staged = inputs.map((input, index) => ({
|
|
314
|
+
input,
|
|
315
|
+
values: scratch("-values-" + index),
|
|
316
|
+
classes: scratch("-classes-" + index)
|
|
317
|
+
}));
|
|
318
|
+
const orders = [scratch("-order-a"), scratch("-order-b")];
|
|
319
|
+
const gathered = scratch("-gathered");
|
|
320
|
+
const sortedValues = scratch("-sorted-values");
|
|
321
|
+
const heads = scratch("-heads");
|
|
322
|
+
const ranks = scratch("-ranks");
|
|
323
|
+
const groupIds = scratch("-group-ids");
|
|
324
|
+
let offset = 0;
|
|
325
|
+
for (const [batchIndex, selection] of selectionMask.data.entries()) {
|
|
326
|
+
if (selection.length > 0) {
|
|
327
|
+
for (const [index, { input, values, classes }] of staged.entries()) {
|
|
328
|
+
const validity = (_b = (_a = nullableKeys[index]) == null ? void 0 : _a.input) == null ? void 0 : _b.data[batchIndex];
|
|
329
|
+
addGPUGroupingPass(graph, prefix + "-stage-" + batchIndex + "-" + index, selection.length, {
|
|
330
|
+
input: words(input.data[batchIndex]),
|
|
331
|
+
...index === 0 ? { selection } : {},
|
|
332
|
+
...validity ? { validity } : {}
|
|
333
|
+
}, { values, classes, ...index === 0 ? { ordinals: orders[0] } : {} }, `
|
|
334
|
+
let row = ${offset}u + index;
|
|
335
|
+
let raw = input[index];
|
|
336
|
+
let valid = ${validity ? "validity[index] != 0u" : "true"};
|
|
337
|
+
let category = ${index === 0 ? "select(2u, u32(!valid), selection[index] != 0u)" : "u32(!valid)"};
|
|
338
|
+
${input.format === "float32" ? `
|
|
339
|
+
let magnitude = raw & 0x7fffffffu;
|
|
340
|
+
let canonical = select(select(raw, 0u, magnitude == 0u), 0x7fc00000u, magnitude > 0x7f800000u);
|
|
341
|
+
` : "let canonical = raw;"}
|
|
342
|
+
values[row] = select(0u, canonical, valid);
|
|
343
|
+
classes[row] = category;
|
|
344
|
+
${index === 0 ? "ordinals[row] = row;" : ""}
|
|
345
|
+
`);
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
offset += selection.length;
|
|
349
|
+
}
|
|
350
|
+
let orderIndex = 0;
|
|
351
|
+
for (let index = staged.length - 1; index >= 0; index--) {
|
|
352
|
+
const { values, classes } = staged[index];
|
|
353
|
+
const sortKeys = index === 0 || nullableKeys[index] ? [values, classes] : [values];
|
|
354
|
+
for (const [passIndex, source] of sortKeys.entries()) {
|
|
355
|
+
const id = prefix + "-order-" + index + "-" + passIndex;
|
|
356
|
+
graph.add(new import_gpu_core2.GPUGather({ id: id + "-gather", source, indices: orders[orderIndex], output: gathered }));
|
|
357
|
+
graph.add(new import_gpu_core2.GPUSort({
|
|
358
|
+
id,
|
|
359
|
+
keys: gathered,
|
|
360
|
+
values: orders[orderIndex],
|
|
361
|
+
outputKeys: sortedValues,
|
|
362
|
+
outputValues: orders[1 - orderIndex]
|
|
363
|
+
}));
|
|
364
|
+
orderIndex = 1 - orderIndex;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
const order = orders[orderIndex];
|
|
368
|
+
const first = staged[0];
|
|
369
|
+
for (const [index, { values, classes }] of staged.entries()) {
|
|
370
|
+
const firstKey = index === 0;
|
|
371
|
+
addGPUGroupingPass(graph, prefix + "-heads-" + index, length, { order, values, classes, ...firstKey ? {} : { firstClasses: first.classes } }, { heads }, `
|
|
372
|
+
let row = order[index];
|
|
373
|
+
let previous = order[max(index, 1u) - 1u];
|
|
374
|
+
let changed = classes[row] != classes[previous] || values[row] != values[previous];
|
|
375
|
+
let selected = ${firstKey ? "classes" : "firstClasses"}[row] != 2u;
|
|
376
|
+
heads[index] = u32(selected && (${firstKey ? "index == 0u" : "heads[index] != 0u"} || changed));
|
|
377
|
+
`);
|
|
378
|
+
}
|
|
379
|
+
graph.add(new import_gpu_core2.GPUScan({ id: prefix + "-scan-heads", input: heads, output: ranks, mode: "inclusive" }));
|
|
380
|
+
graph.add(new import_gpu_core2.GPUReduction({
|
|
381
|
+
id: prefix + "-count-heads",
|
|
382
|
+
input: heads,
|
|
383
|
+
output: countView,
|
|
384
|
+
operation: "sum"
|
|
385
|
+
}));
|
|
386
|
+
addGPUGroupingPass(graph, prefix + "-scatter-ids", length, { order, classes: first.classes, ranks }, { groupIds }, `
|
|
387
|
+
let row = order[index];
|
|
388
|
+
groupIds[row] = select(0u, ranks[index] - 1u, classes[row] != 2u);
|
|
389
|
+
`);
|
|
390
|
+
for (const [index, { values, classes }] of staged.entries()) {
|
|
391
|
+
const output = outputs[index];
|
|
392
|
+
if (!output)
|
|
393
|
+
continue;
|
|
394
|
+
const validity = (_c = nullableKeys[index]) == null ? void 0 : _c.output;
|
|
395
|
+
addGPUGroupingPass(graph, prefix + "-publish-key-" + index, length, { order, heads, ranks, values, ...validity ? { classes } : {} }, { output: words(output), ...validity ? { validity } : {} }, `
|
|
396
|
+
if (heads[index] != 0u) {
|
|
397
|
+
let row = order[index];
|
|
398
|
+
let group = ranks[index] - 1u;
|
|
399
|
+
output[group] = values[row];
|
|
400
|
+
${validity ? "validity[group] = u32(classes[row] == 0u);" : ""}
|
|
401
|
+
}
|
|
402
|
+
`);
|
|
403
|
+
}
|
|
404
|
+
addGPUGroupingPass(graph, prefix + "-result-selection", length, { count: countView }, {
|
|
405
|
+
rows: graph.importGPUVector(prefix + "-rows-view", rows).data[0],
|
|
406
|
+
mask: graph.importGPUVector(prefix + "-mask-view", mask).data[0]
|
|
407
|
+
}, "rows[index] = index; mask[index] = u32(index < count[0]);");
|
|
408
|
+
let byteOffset = 0;
|
|
409
|
+
const data = selectionMask.data.map((chunk) => {
|
|
410
|
+
const view = graph.createDataView(groupIds.buffer, {
|
|
411
|
+
format: "uint32",
|
|
412
|
+
length: chunk.length,
|
|
413
|
+
byteOffset
|
|
414
|
+
});
|
|
415
|
+
byteOffset += chunk.length * UINT32_BYTE_LENGTH;
|
|
416
|
+
return view;
|
|
417
|
+
});
|
|
418
|
+
const keys = new import_gpu_core.GraphVectorView({ ...selectionMask, id: prefix + "-ids", data });
|
|
419
|
+
return { keys, rows, count, mask };
|
|
420
|
+
}
|
|
421
|
+
function addGPUGroupingPass(graph, id, length, reads, writes, body) {
|
|
422
|
+
const bindings = { ...reads, ...writes };
|
|
423
|
+
const resources = [];
|
|
424
|
+
const declarations = Object.entries(bindings).map(([name, view], binding) => {
|
|
425
|
+
const write = Object.hasOwn(writes, name);
|
|
426
|
+
resources.push({ buffer: view, usage: write ? "storage-write" : "storage-read" });
|
|
427
|
+
body = body.replaceAll(name + "[", name + "[" + (0, import_gpu_core4.getViewElementOffset)(view) + "u + ");
|
|
428
|
+
return `@group(0) @binding(${binding}) var<storage, ${write ? "read_write" : "read"}> ${name}: array<u32>;`;
|
|
429
|
+
});
|
|
430
|
+
(0, import_gpu_analytics_compiler_utils.addGPUAnalyticsComputePass)(graph, {
|
|
431
|
+
id,
|
|
432
|
+
bindings,
|
|
433
|
+
resources,
|
|
434
|
+
length,
|
|
435
|
+
source: (
|
|
436
|
+
/* wgsl */
|
|
437
|
+
`
|
|
438
|
+
${declarations.join("\n")}
|
|
439
|
+
@compute @workgroup_size(${import_gpu_analytics_compiler_utils.LU_ANALYTICS_WORKGROUP_SIZE})
|
|
440
|
+
fn main(@builtin(local_invocation_index) localInvocationIndex: u32,
|
|
441
|
+
@builtin(workgroup_id) workgroupId: vec3<u32>) {
|
|
442
|
+
${(0, import_gpu_analytics_compiler_utils.getGPUAnalyticsInvocationIndexSource)(graph, length)}
|
|
443
|
+
if (index >= ${length}u) { return; }
|
|
444
|
+
${body}
|
|
445
|
+
}
|
|
446
|
+
`
|
|
447
|
+
)
|
|
448
|
+
});
|
|
449
|
+
}
|
|
450
|
+
function getGPUGroupingFormat(table, name) {
|
|
451
|
+
var _a;
|
|
452
|
+
const format = (_a = table.schema.fields.find((field) => field.name === name)) == null ? void 0 : _a.format;
|
|
453
|
+
if (format !== "uint32" && format !== "sint32" && format !== "float32") {
|
|
454
|
+
throw new Error("GPUDataFrame grouping requires 32-bit numeric keys");
|
|
455
|
+
}
|
|
456
|
+
return format;
|
|
457
|
+
}
|
|
152
458
|
function getGPUGroupingVector(context, name, format) {
|
|
153
459
|
if (context.table.gpuConstants[name]) {
|
|
154
460
|
throw new Error(`GPUDataFrame grouping column "${name}" must contain GPU vector data`);
|
|
@@ -181,20 +487,20 @@ function getGPUGroupingValidity(context, name, template) {
|
|
|
181
487
|
return context.graph.importGPUVector(`${context.queryId}-group-validity-${name}`, validity);
|
|
182
488
|
}
|
|
183
489
|
function combineGPUGroupingMasks(graph, id, first, second) {
|
|
184
|
-
const output = (0,
|
|
185
|
-
graph.add(new
|
|
490
|
+
const output = (0, import_gpu_core4.createTransientVectorView)(graph, id, first);
|
|
491
|
+
graph.add(new import_gpu_core3.GPUMask({ id: `${id}-compose`, inputs: [first, second], output }));
|
|
186
492
|
return output;
|
|
187
493
|
}
|
|
188
494
|
function createGPUGroupedMetricState(context, keys, baseMask, name, groupCount, id, ownedVectors) {
|
|
189
495
|
const values = context.graph.importGPUVector(`${id}-input`, getGPUGroupingVector(context, name, "float32"));
|
|
190
496
|
const valueValidity = getGPUGroupingValidity(context, name, values);
|
|
191
497
|
const validRows = valueValidity ? combineGPUGroupingMasks(context.graph, `${id}-validity-mask`, baseMask, valueValidity) : baseMask;
|
|
192
|
-
const finiteRows = (0,
|
|
498
|
+
const finiteRows = (0, import_gpu_core4.createTransientVectorView)(context.graph, `${id}-finite-mask`, validRows);
|
|
193
499
|
addGPUGroupFiniteMaskPasses(context.graph, `${id}-finite`, values, validRows, finiteRows);
|
|
194
500
|
const validity = createGPUGroupedOutputVector(context.graph.device, `${id}-group-validity`, groupCount, "uint32");
|
|
195
501
|
ownedVectors.push(validity);
|
|
196
502
|
const output = context.graph.importGPUVector(`${id}-group-validity-vector`, validity).data[0];
|
|
197
|
-
context.graph.add(new
|
|
503
|
+
context.graph.add(new import_gpu_core2.GPUGroupAggregation({
|
|
198
504
|
id: `${id}-accepted-count`,
|
|
199
505
|
keys,
|
|
200
506
|
mask: finiteRows,
|
|
@@ -218,19 +524,24 @@ function createGPUGroupedOutputVector(device, name, length, format) {
|
|
|
218
524
|
throw error;
|
|
219
525
|
}
|
|
220
526
|
}
|
|
221
|
-
function createGPUGroupedResultTable(source,
|
|
527
|
+
function createGPUGroupedResultTable(source, keys, definitions, vectors, columns, observed = false) {
|
|
222
528
|
var _a;
|
|
223
|
-
const
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
529
|
+
const outputFields = [
|
|
530
|
+
...keys.flatMap(({ source: name, output }) => {
|
|
531
|
+
if (output === void 0)
|
|
532
|
+
return [];
|
|
533
|
+
const field = source.schema.fields.find((candidate) => candidate.name === name);
|
|
534
|
+
if (!field)
|
|
535
|
+
throw new Error("GPUDataFrame grouped result requires an existing key field");
|
|
536
|
+
return [
|
|
537
|
+
{
|
|
538
|
+
name: output,
|
|
539
|
+
format: observed ? getGPUGroupingFormat(source, name) : "uint32",
|
|
540
|
+
nullable: observed && field.nullable === true,
|
|
541
|
+
metadata: new Map(field.metadata)
|
|
542
|
+
}
|
|
543
|
+
];
|
|
544
|
+
}),
|
|
234
545
|
...definitions.map((definition) => ({
|
|
235
546
|
name: definition.name,
|
|
236
547
|
format: definition.operation === "count" ? "uint32" : "float32",
|
|
@@ -238,6 +549,7 @@ function createGPUGroupedResultTable(source, key, definitions, vectors) {
|
|
|
238
549
|
metadata: /* @__PURE__ */ new Map()
|
|
239
550
|
}))
|
|
240
551
|
];
|
|
552
|
+
const fields = columns ? columns.map((name) => outputFields.find((field) => field.name === name)) : outputFields;
|
|
241
553
|
const gpuData = {};
|
|
242
554
|
for (const field of fields) {
|
|
243
555
|
const sourceData = (_a = vectors.get(field.name)) == null ? void 0 : _a.data[0];
|
|
@@ -268,7 +580,7 @@ function addGPUGroupIdentityPass(graph, id, output) {
|
|
|
268
580
|
/* wgsl */
|
|
269
581
|
`
|
|
270
582
|
const ELEMENT_COUNT: u32 = ${output.length}u;
|
|
271
|
-
const OUTPUT_OFFSET: u32 = ${(0,
|
|
583
|
+
const OUTPUT_OFFSET: u32 = ${(0, import_gpu_core4.getViewElementOffset)(output)}u;
|
|
272
584
|
@group(0) @binding(0) var<storage, read_write> outputValues: array<u32>;
|
|
273
585
|
|
|
274
586
|
@compute @workgroup_size(${import_gpu_analytics_compiler_utils.LU_ANALYTICS_WORKGROUP_SIZE})
|
|
@@ -301,9 +613,9 @@ function addGPUGroupFiniteMaskPasses(graph, id, values, input, output) {
|
|
|
301
613
|
/* wgsl */
|
|
302
614
|
`
|
|
303
615
|
const ELEMENT_COUNT: u32 = ${mask.length}u;
|
|
304
|
-
const VALUE_OFFSET: u32 = ${(0,
|
|
305
|
-
const INPUT_OFFSET: u32 = ${(0,
|
|
306
|
-
const OUTPUT_OFFSET: u32 = ${(0,
|
|
616
|
+
const VALUE_OFFSET: u32 = ${(0, import_gpu_core4.getViewElementOffset)(value)}u;
|
|
617
|
+
const INPUT_OFFSET: u32 = ${(0, import_gpu_core4.getViewElementOffset)(sourceMask)}u;
|
|
618
|
+
const OUTPUT_OFFSET: u32 = ${(0, import_gpu_core4.getViewElementOffset)(mask)}u;
|
|
307
619
|
@group(0) @binding(0) var<storage, read> inputValues: array<f32>;
|
|
308
620
|
@group(0) @binding(1) var<storage, read> inputMask: array<u32>;
|
|
309
621
|
@group(0) @binding(2) var<storage, read_write> outputMask: array<u32>;
|
|
@@ -343,7 +655,7 @@ function addGPUNormalizeGroupValidityPass(graph, id, validity) {
|
|
|
343
655
|
/* wgsl */
|
|
344
656
|
`
|
|
345
657
|
const ELEMENT_COUNT: u32 = ${validity.length}u;
|
|
346
|
-
const OUTPUT_OFFSET: u32 = ${(0,
|
|
658
|
+
const OUTPUT_OFFSET: u32 = ${(0, import_gpu_core4.getViewElementOffset)(validity)}u;
|
|
347
659
|
@group(0) @binding(0) var<storage, read_write> outputValidity: array<u32>;
|
|
348
660
|
|
|
349
661
|
@compute @workgroup_size(${import_gpu_analytics_compiler_utils.LU_ANALYTICS_WORKGROUP_SIZE})
|
|
@@ -369,5 +681,6 @@ fn main(
|
|
|
369
681
|
// Annotate the CommonJS export names for ESM import in node:
|
|
370
682
|
0 && (module.exports = {
|
|
371
683
|
CompiledGPUDataFrameGroupedAggregation,
|
|
372
|
-
compileGPUDataFrameGroupedAggregation
|
|
684
|
+
compileGPUDataFrameGroupedAggregation,
|
|
685
|
+
compileGPUDataFrameObservedAggregation
|
|
373
686
|
});
|
|
@@ -1,17 +1,39 @@
|
|
|
1
|
+
import { GPUVector } from '@luma.gl/graph/gpu-data';
|
|
1
2
|
import { type GPUTypeMap } from '@luma.gl/graph/gpu-tables';
|
|
2
3
|
import { type GPUCommandGraph } from '@luma.gl/graph/gpu-core';
|
|
3
|
-
import
|
|
4
|
+
import { GPUDataFrame } from "./gpu-data-frame.js";
|
|
4
5
|
import type { GPUDataFrameDerivedColumn } from "./gpu-data-frame-query.js";
|
|
5
6
|
import type { GPUExpression } from "./gpu-expression.js";
|
|
6
7
|
import type { GPUDataFrameAggregationDefinition } from "./gpu-group-by-query.js";
|
|
7
8
|
import { CompiledGPUDataFrameQuery, type CompiledGPUDataFrameQueryProps, type GPUDataFrameQueryParameters } from "./gpu-query-compiler.js";
|
|
9
|
+
import { addGPUGlobalOrdering, type GPUGlobalSortKey } from "./gpu-global-sort-compiler.js";
|
|
10
|
+
import { type GPUAggregateJoin } from "./gpu-join-compiler.js";
|
|
8
11
|
/** Dense grouped GPU statistics retaining their original source selection and row identities. */
|
|
9
12
|
export declare class CompiledGPUDataFrameGroupedAggregation<T extends GPUTypeMap = GPUTypeMap> extends CompiledGPUDataFrameQuery<T> {
|
|
10
|
-
/**
|
|
13
|
+
/** Result table capacity. Observed grouping publishes the actual count in selectedCounts. */
|
|
11
14
|
readonly groupCount: number;
|
|
15
|
+
/** Group row indices in global ORDER BY order, when requested. */
|
|
16
|
+
readonly globalRowIndices?: GPUVector<'uint32'>;
|
|
17
|
+
/** Number of groups left after applying the page, when ordered. */
|
|
18
|
+
readonly globalSelectedCount?: GPUVector<'uint32'>;
|
|
12
19
|
/** @internal */
|
|
13
|
-
constructor(props: CompiledGPUDataFrameQueryProps<T>, groupCount: number);
|
|
20
|
+
constructor(props: CompiledGPUDataFrameQueryProps<T>, groupCount: number, ordering?: ReturnType<typeof addGPUGlobalOrdering>);
|
|
14
21
|
}
|
|
22
|
+
/** Output names and order for grouped SQL projections. @internal */
|
|
23
|
+
export type GPUGroupedOutputProjection = Readonly<{
|
|
24
|
+
/** Name of the grouped key in the output schema. */
|
|
25
|
+
key: string;
|
|
26
|
+
/** Output names in SELECT order. */
|
|
27
|
+
columns: readonly string[];
|
|
28
|
+
}>;
|
|
29
|
+
/** Ordered source keys and their corresponding output fields. */
|
|
30
|
+
type GPUGroupingKeys = readonly Readonly<{
|
|
31
|
+
source: string;
|
|
32
|
+
output?: string;
|
|
33
|
+
}>[];
|
|
34
|
+
/** Adds observed numeric and composite grouping bounded by the source row count. @internal */
|
|
35
|
+
export declare function compileGPUDataFrameObservedAggregation(source: GPUDataFrame, predicates: readonly GPUExpression<boolean, string>[], selectedColumns: readonly string[], derivedColumns: readonly GPUDataFrameDerivedColumn[], keys: GPUGroupingKeys, definitions: readonly GPUDataFrameAggregationDefinition[], graph: GPUCommandGraph<GPUDataFrameQueryParameters>, columns: readonly string[], ordering?: readonly GPUGlobalSortKey[], having?: GPUExpression<boolean, string>, join?: GPUAggregateJoin, maxMeanScratchBytes?: number): CompiledGPUDataFrameGroupedAggregation;
|
|
15
36
|
/** Adds dense categorical aggregation to source-row work before the shared graph is frozen. */
|
|
16
|
-
export declare function compileGPUDataFrameGroupedAggregation<Source extends GPUTypeMap, Selection extends GPUTypeMap, Result extends GPUTypeMap>(source: GPUDataFrame<Source>, predicates: readonly GPUExpression<boolean, string>[], selectedColumns: readonly (keyof Selection & string)[], derivedColumns: readonly GPUDataFrameDerivedColumn[], key: keyof Selection & string, groupCount: number, definitions: readonly GPUDataFrameAggregationDefinition[], graph: GPUCommandGraph<GPUDataFrameQueryParameters>): CompiledGPUDataFrameGroupedAggregation<Result>;
|
|
37
|
+
export declare function compileGPUDataFrameGroupedAggregation<Source extends GPUTypeMap, Selection extends GPUTypeMap, Result extends GPUTypeMap>(source: GPUDataFrame<Source>, predicates: readonly GPUExpression<boolean, string>[], selectedColumns: readonly (keyof Selection & string)[], derivedColumns: readonly GPUDataFrameDerivedColumn[], key: keyof Selection & string, groupCount: number, definitions: readonly GPUDataFrameAggregationDefinition[], graph: GPUCommandGraph<GPUDataFrameQueryParameters>, projection?: GPUGroupedOutputProjection, ordering?: readonly GPUGlobalSortKey<keyof Result & string>[], having?: GPUExpression<boolean, string>, join?: GPUAggregateJoin, maxMeanScratchBytes?: number): CompiledGPUDataFrameGroupedAggregation<Result>;
|
|
38
|
+
export {};
|
|
17
39
|
//# sourceMappingURL=gpu-group-aggregation-compiler.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gpu-group-aggregation-compiler.d.ts","sourceRoot":"","sources":["../../src/gpu-dataframe/gpu-group-aggregation-compiler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gpu-group-aggregation-compiler.d.ts","sourceRoot":"","sources":["../../src/gpu-dataframe/gpu-group-aggregation-compiler.ts"],"names":[],"mappings":"AAMA,OAAO,EAAU,SAAS,EAAC,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAA0C,KAAK,UAAU,EAAC,MAAM,2BAA2B,CAAC;AACnG,OAAO,EAEL,KAAK,eAAe,EAGrB,MAAM,yBAAyB,CAAC;AAuBjC,OAAO,EACL,YAAY,EAGb,4BAAyB;AAC1B,OAAO,KAAK,EAAC,yBAAyB,EAAC,kCAA+B;AACtE,OAAO,KAAK,EAAC,aAAa,EAAC,4BAAyB;AACpD,OAAO,KAAK,EAAC,iCAAiC,EAAC,gCAA6B;AAC5E,OAAO,EAEL,yBAAyB,EAGzB,KAAK,8BAA8B,EAGnC,KAAK,2BAA2B,EACjC,gCAA6B;AAE9B,OAAO,EAAC,oBAAoB,EAAE,KAAK,gBAAgB,EAAC,sCAAmC;AAEvF,OAAO,EAA4B,KAAK,gBAAgB,EAAC,+BAA4B;AAWrF,iGAAiG;AACjG,qBAAa,sCAAsC,CACjD,CAAC,SAAS,UAAU,GAAG,UAAU,CACjC,SAAQ,yBAAyB,CAAC,CAAC,CAAC;IACpC,6FAA6F;IAC7F,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAE5B,kEAAkE;IAClE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAChD,mEAAmE;IACnE,QAAQ,CAAC,mBAAmB,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAEnD,gBAAgB;gBAEd,KAAK,EAAE,8BAA8B,CAAC,CAAC,CAAC,EACxC,UAAU,EAAE,MAAM,EAClB,QAAQ,CAAC,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC;CAOrD;AAED,oEAAoE;AACpE,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAAC;IAChD,oDAAoD;IACpD,GAAG,EAAE,MAAM,CAAC;IACZ,oCAAoC;IACpC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5B,CAAC,CAAC;AAEH,iEAAiE;AACjE,KAAK,eAAe,GAAG,SAAS,QAAQ,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC,EAAE,CAAC;AAE9E,8FAA8F;AAC9F,wBAAgB,sCAAsC,CACpD,MAAM,EAAE,YAAY,EACpB,UAAU,EAAE,SAAS,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,EACrD,eAAe,EAAE,SAAS,MAAM,EAAE,EAClC,cAAc,EAAE,SAAS,yBAAyB,EAAE,EACpD,IAAI,EAAE,eAAe,EACrB,WAAW,EAAE,SAAS,iCAAiC,EAAE,EACzD,KAAK,EAAE,eAAe,CAAC,2BAA2B,CAAC,EACnD,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,QAAQ,CAAC,EAAE,SAAS,gBAAgB,EAAE,EACtC,MAAM,CAAC,EAAE,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,EACvC,IAAI,CAAC,EAAE,gBAAgB,EACvB,mBAAmB,CAAC,EAAE,MAAM,GAC3B,sCAAsC,CA6BxC;AAED,+FAA+F;AAC/F,wBAAgB,qCAAqC,CACnD,MAAM,SAAS,UAAU,EACzB,SAAS,SAAS,UAAU,EAC5B,MAAM,SAAS,UAAU,EAEzB,MAAM,EAAE,YAAY,CAAC,MAAM,CAAC,EAC5B,UAAU,EAAE,SAAS,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,EAAE,EACrD,eAAe,EAAE,SAAS,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,EAAE,EACtD,cAAc,EAAE,SAAS,yBAAyB,EAAE,EACpD,GAAG,EAAE,MAAM,SAAS,GAAG,MAAM,EAC7B,UAAU,EAAE,MAAM,EAClB,WAAW,EAAE,SAAS,iCAAiC,EAAE,EACzD,KAAK,EAAE,eAAe,CAAC,2BAA2B,CAAC,EACnD,UAAU,CAAC,EAAE,0BAA0B,EACvC,QAAQ,CAAC,EAAE,SAAS,gBAAgB,CAAC,MAAM,MAAM,GAAG,MAAM,CAAC,EAAE,EAC7D,MAAM,CAAC,EAAE,aAAa,CAAC,OAAO,EAAE,MAAM,CAAC,EACvC,IAAI,CAAC,EAAE,gBAAgB,EACvB,mBAAmB,CAAC,EAAE,MAAM,GAC3B,sCAAsC,CAAC,MAAM,CAAC,CAyBhD"}
|