@awesome-flow/noise 0.5.0 → 0.7.0

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 (59) hide show
  1. package/dist/abstract/index.cjs +701 -769
  2. package/dist/abstract/index.d.cts +6 -12
  3. package/dist/abstract/index.d.ts +6 -12
  4. package/dist/abstract/index.js +498 -568
  5. package/dist/{index-BungWYrh.d.cts → index-CfiOpOzX.d.cts} +1 -1
  6. package/dist/{index-DsQSjZC5.d.ts → index-mlK0X4O1.d.ts} +1 -1
  7. package/dist/modules/index.cjs +4 -30
  8. package/dist/modules/index.d.cts +2 -10
  9. package/dist/modules/index.d.ts +2 -10
  10. package/dist/modules/index.js +2 -17
  11. package/dist/{node-props-BbqbXDXn.d.cts → node-props-CAV2WNDN.d.cts} +3 -7
  12. package/dist/{node-props-BbqbXDXn.d.ts → node-props-CAV2WNDN.d.ts} +3 -7
  13. package/dist/nodes/generators/index.cjs +71 -114
  14. package/dist/nodes/generators/index.d.cts +3 -8
  15. package/dist/nodes/generators/index.d.ts +3 -8
  16. package/dist/nodes/generators/index.js +47 -79
  17. package/dist/nodes/index.cjs +642 -710
  18. package/dist/nodes/index.d.cts +3 -6
  19. package/dist/nodes/index.d.ts +3 -6
  20. package/dist/nodes/index.js +443 -512
  21. package/dist/nodes/modifiers/index.cjs +77 -89
  22. package/dist/nodes/modifiers/index.d.cts +2 -5
  23. package/dist/nodes/modifiers/index.d.ts +2 -5
  24. package/dist/nodes/modifiers/index.js +73 -85
  25. package/dist/nodes/output/index.cjs +239 -285
  26. package/dist/nodes/output/index.js +252 -290
  27. package/dist/nodes/selectors/index.cjs +230 -280
  28. package/dist/nodes/selectors/index.d.cts +2 -5
  29. package/dist/nodes/selectors/index.d.ts +2 -5
  30. package/dist/nodes/selectors/index.js +248 -290
  31. package/dist/nodes/transformers/index.cjs +10 -10
  32. package/dist/nodes/transformers/index.d.cts +2 -5
  33. package/dist/nodes/transformers/index.d.ts +2 -5
  34. package/dist/nodes/transformers/index.js +5 -5
  35. package/dist/templates/generators/index.cjs +201 -253
  36. package/dist/templates/generators/index.d.cts +3 -10
  37. package/dist/templates/generators/index.d.ts +3 -10
  38. package/dist/templates/generators/index.js +236 -279
  39. package/dist/templates/groups/index.cjs +201 -251
  40. package/dist/templates/groups/index.js +236 -278
  41. package/dist/templates/index.cjs +201 -253
  42. package/dist/templates/index.d.cts +4 -7
  43. package/dist/templates/index.d.ts +4 -7
  44. package/dist/templates/index.js +236 -279
  45. package/dist/templates/modifiers/index.cjs +201 -251
  46. package/dist/templates/modifiers/index.d.cts +2 -5
  47. package/dist/templates/modifiers/index.d.ts +2 -5
  48. package/dist/templates/modifiers/index.js +236 -278
  49. package/dist/templates/output/index.cjs +201 -251
  50. package/dist/templates/output/index.js +236 -278
  51. package/dist/templates/selectors/index.cjs +201 -251
  52. package/dist/templates/selectors/index.d.cts +2 -5
  53. package/dist/templates/selectors/index.d.ts +2 -5
  54. package/dist/templates/selectors/index.js +236 -278
  55. package/dist/templates/transformers/index.cjs +201 -251
  56. package/dist/templates/transformers/index.d.cts +3 -6
  57. package/dist/templates/transformers/index.d.ts +3 -6
  58. package/dist/templates/transformers/index.js +236 -278
  59. package/package.json +6 -4
@@ -29,43 +29,33 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
29
29
  ));
30
30
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
31
31
 
32
- // ../../node_modules/fast-deep-equal/index.js
32
+ // ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
33
33
  var require_fast_deep_equal = __commonJS({
34
- "../../node_modules/fast-deep-equal/index.js"(exports2, module2) {
34
+ "../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports2, module2) {
35
35
  "use strict";
36
36
  module2.exports = function equal(a, b) {
37
- if (a === b)
38
- return true;
37
+ if (a === b) return true;
39
38
  if (a && b && typeof a == "object" && typeof b == "object") {
40
- if (a.constructor !== b.constructor)
41
- return false;
39
+ if (a.constructor !== b.constructor) return false;
42
40
  var length, i, keys;
43
41
  if (Array.isArray(a)) {
44
42
  length = a.length;
45
- if (length != b.length)
46
- return false;
43
+ if (length != b.length) return false;
47
44
  for (i = length; i-- !== 0; )
48
- if (!equal(a[i], b[i]))
49
- return false;
45
+ if (!equal(a[i], b[i])) return false;
50
46
  return true;
51
47
  }
52
- if (a.constructor === RegExp)
53
- return a.source === b.source && a.flags === b.flags;
54
- if (a.valueOf !== Object.prototype.valueOf)
55
- return a.valueOf() === b.valueOf();
56
- if (a.toString !== Object.prototype.toString)
57
- return a.toString() === b.toString();
48
+ if (a.constructor === RegExp) return a.source === b.source && a.flags === b.flags;
49
+ if (a.valueOf !== Object.prototype.valueOf) return a.valueOf() === b.valueOf();
50
+ if (a.toString !== Object.prototype.toString) return a.toString() === b.toString();
58
51
  keys = Object.keys(a);
59
52
  length = keys.length;
60
- if (length !== Object.keys(b).length)
61
- return false;
53
+ if (length !== Object.keys(b).length) return false;
62
54
  for (i = length; i-- !== 0; )
63
- if (!Object.prototype.hasOwnProperty.call(b, keys[i]))
64
- return false;
55
+ if (!Object.prototype.hasOwnProperty.call(b, keys[i])) return false;
65
56
  for (i = length; i-- !== 0; ) {
66
57
  var key = keys[i];
67
- if (!equal(a[key], b[key]))
68
- return false;
58
+ if (!equal(a[key], b[key])) return false;
69
59
  }
70
60
  return true;
71
61
  }
@@ -100,7 +90,6 @@ __export(nodes_exports, {
100
90
  NoiseScaleBiasNode: () => noise_scale_bias_node_default,
101
91
  NoiseScalePointNode: () => noise_scale_point_node_default,
102
92
  NoiseSelectNode: () => noise_select_node_default,
103
- NoiseSimplexNode: () => noise_simplex_node_default,
104
93
  NoiseSpheresNode: () => noise_spheres_node_default,
105
94
  NoiseTerraceNode: () => noise_terrace_node_default,
106
95
  NoiseTranslatePointNode: () => noise_translate_point_node_default,
@@ -115,13 +104,13 @@ module.exports = __toCommonJS(nodes_exports);
115
104
  // src/nodes/generators/noise-billow-node.tsx
116
105
  var import_layout = require("@awesome-flow/core/layout");
117
106
  var import_react = require("react");
118
- var import_generator = require("libnoise-ts/module/generator");
107
+ var import_libnoise_simplex_ts = require("libnoise-simplex-ts");
119
108
  var import_hooks = require("@awesome-flow/core/hooks");
120
109
  var import_components = require("@awesome-flow/core/components");
121
110
  var import_jsx_runtime = require("react/jsx-runtime");
122
111
  function NoiseBillowNode({ id, selected, data, type }) {
123
112
  const updateComputedData = (0, import_hooks.useUpdateNodeComputedData)();
124
- const module2 = (0, import_react.useMemo)(() => new import_generator.Billow(), []);
113
+ const module2 = (0, import_react.useMemo)(() => new import_libnoise_simplex_ts.Billow(), []);
125
114
  const onPropertiesChange = (0, import_react.useCallback)(
126
115
  (properties) => {
127
116
  Object.keys(properties).forEach((k) => {
@@ -141,12 +130,12 @@ var noise_billow_node_default = NoiseBillowNode;
141
130
  // src/nodes/generators/noise-checkerboard-node.tsx
142
131
  var import_layout2 = require("@awesome-flow/core/layout");
143
132
  var import_react2 = require("react");
144
- var import_generator2 = require("libnoise-ts/module/generator");
133
+ var import_libnoise_simplex_ts2 = require("libnoise-simplex-ts");
145
134
  var import_hooks2 = require("@awesome-flow/core/hooks");
146
135
  var import_jsx_runtime2 = require("react/jsx-runtime");
147
136
  function NoiseCheckerboardNode({ id, selected, data, type }) {
148
137
  const updateComputedData = (0, import_hooks2.useUpdateNodeComputedData)();
149
- const module2 = (0, import_react2.useMemo)(() => new import_generator2.Checkerboard(), []);
138
+ const module2 = (0, import_react2.useMemo)(() => new import_libnoise_simplex_ts2.Checkerboard(), []);
150
139
  (0, import_react2.useEffect)(() => {
151
140
  updateComputedData(id, { module: module2 });
152
141
  }, [id, module2, updateComputedData]);
@@ -159,7 +148,7 @@ var import_layout3 = require("@awesome-flow/core/layout");
159
148
  var import_react3 = require("react");
160
149
  var import_core = require("@mantine/core");
161
150
  var import_hooks3 = require("@awesome-flow/core/hooks");
162
- var import_generator3 = require("libnoise-ts/module/generator");
151
+ var import_libnoise_simplex_ts3 = require("libnoise-simplex-ts");
163
152
  var import_jsx_runtime3 = require("react/jsx-runtime");
164
153
  function NoiseConstNode({ id, selected, data, type }) {
165
154
  const [min, setMin] = (0, import_react3.useState)(data.min);
@@ -167,7 +156,7 @@ function NoiseConstNode({ id, selected, data, type }) {
167
156
  const [noise, setNoise] = (0, import_react3.useState)(data.noise);
168
157
  const updateNodeData = (0, import_hooks3.useUpdateNodeData)();
169
158
  const updateComputedData = (0, import_hooks3.useUpdateNodeComputedData)();
170
- const module2 = (0, import_react3.useMemo)(() => new import_generator3.Const(), []);
159
+ const module2 = (0, import_react3.useMemo)(() => new import_libnoise_simplex_ts3.Const(), []);
171
160
  (0, import_react3.useEffect)(() => {
172
161
  module2.value = noise;
173
162
  updateNodeData(id, { noise, min, max });
@@ -199,13 +188,13 @@ var noise_const_node_default = NoiseConstNode;
199
188
  // src/nodes/generators/noise-cylinders-node.tsx
200
189
  var import_layout4 = require("@awesome-flow/core/layout");
201
190
  var import_react4 = require("react");
202
- var import_generator4 = require("libnoise-ts/module/generator");
191
+ var import_libnoise_simplex_ts4 = require("libnoise-simplex-ts");
203
192
  var import_hooks4 = require("@awesome-flow/core/hooks");
204
193
  var import_components2 = require("@awesome-flow/core/components");
205
194
  var import_jsx_runtime4 = require("react/jsx-runtime");
206
195
  function NoiseCylindersNode({ id, selected, data, type }) {
207
196
  const updateComputedData = (0, import_hooks4.useUpdateNodeComputedData)();
208
- const module2 = (0, import_react4.useMemo)(() => new import_generator4.Cylinders(), []);
197
+ const module2 = (0, import_react4.useMemo)(() => new import_libnoise_simplex_ts4.Cylinders(), []);
209
198
  const onPropertiesChange = (0, import_react4.useCallback)(
210
199
  (properties) => {
211
200
  Object.keys(properties).forEach((k) => {
@@ -225,13 +214,13 @@ var noise_cylinders_node_default = NoiseCylindersNode;
225
214
  // src/nodes/generators/noise-perlin-node.tsx
226
215
  var import_layout5 = require("@awesome-flow/core/layout");
227
216
  var import_react5 = require("react");
228
- var import_generator5 = require("libnoise-ts/module/generator");
217
+ var import_libnoise_simplex_ts5 = require("libnoise-simplex-ts");
229
218
  var import_hooks5 = require("@awesome-flow/core/hooks");
230
219
  var import_components3 = require("@awesome-flow/core/components");
231
220
  var import_jsx_runtime5 = require("react/jsx-runtime");
232
221
  function NoisePerlinNode({ id, selected, data, type }) {
233
222
  const updateComputedData = (0, import_hooks5.useUpdateNodeComputedData)();
234
- const module2 = (0, import_react5.useMemo)(() => new import_generator5.Perlin(), []);
223
+ const module2 = (0, import_react5.useMemo)(() => new import_libnoise_simplex_ts5.Perlin(), []);
235
224
  const onPropertiesChange = (0, import_react5.useCallback)(
236
225
  (properties) => {
237
226
  Object.keys(properties).forEach((k) => {
@@ -251,13 +240,13 @@ var noise_perlin_node_default = NoisePerlinNode;
251
240
  // src/nodes/generators/noise-ridgedmulti-node.tsx
252
241
  var import_layout6 = require("@awesome-flow/core/layout");
253
242
  var import_react6 = require("react");
254
- var import_generator6 = require("libnoise-ts/module/generator");
243
+ var import_libnoise_simplex_ts6 = require("libnoise-simplex-ts");
255
244
  var import_hooks6 = require("@awesome-flow/core/hooks");
256
245
  var import_components4 = require("@awesome-flow/core/components");
257
246
  var import_jsx_runtime6 = require("react/jsx-runtime");
258
247
  function NoiseRidgedMultiNode({ id, selected, data, type }) {
259
248
  const updateComputedData = (0, import_hooks6.useUpdateNodeComputedData)();
260
- const module2 = (0, import_react6.useMemo)(() => new import_generator6.RidgedMulti(), []);
249
+ const module2 = (0, import_react6.useMemo)(() => new import_libnoise_simplex_ts6.RidgedMulti(), []);
261
250
  const onPropertiesChange = (0, import_react6.useCallback)((properties) => {
262
251
  Object.keys(properties).forEach((k) => module2[k] = properties[k].value);
263
252
  updateComputedData(id, { module: module2 });
@@ -269,70 +258,39 @@ function NoiseRidgedMultiNode({ id, selected, data, type }) {
269
258
  }
270
259
  var noise_ridgedmulti_node_default = NoiseRidgedMultiNode;
271
260
 
272
- // src/nodes/generators/noise-simplex-node.tsx
261
+ // src/nodes/generators/noise-spheres-node.tsx
273
262
  var import_layout7 = require("@awesome-flow/core/layout");
274
263
  var import_react7 = require("react");
264
+ var import_libnoise_simplex_ts7 = require("libnoise-simplex-ts");
275
265
  var import_hooks7 = require("@awesome-flow/core/hooks");
276
-
277
- // src/modules/simplex-module.ts
278
- var import_Module = __toESM(require("libnoise-ts/module/Module"), 1);
279
- var import_simplex_noise = require("simplex-noise");
280
- var SimplexModule = class extends import_Module.default {
281
- noise;
282
- constructor(random) {
283
- super();
284
- this.noise = (0, import_simplex_noise.createNoise3D)(random);
285
- }
286
- getValue(x, y, z) {
287
- return this.noise(x, y, z);
288
- }
289
- };
290
-
291
- // src/nodes/generators/noise-simplex-node.tsx
292
- var import_jsx_runtime7 = require("react/jsx-runtime");
293
- function NoiseSimplexNode({ id, selected, data, type }) {
294
- const updateComputedData = (0, import_hooks7.useUpdateNodeComputedData)();
295
- const module2 = (0, import_react7.useMemo)(() => new SimplexModule(), []);
296
- (0, import_react7.useEffect)(() => {
297
- updateComputedData(id, { module: module2 });
298
- }, []);
299
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_layout7.NodeContainer, { id, selected, data, type });
300
- }
301
- var noise_simplex_node_default = NoiseSimplexNode;
302
-
303
- // src/nodes/generators/noise-spheres-node.tsx
304
- var import_layout8 = require("@awesome-flow/core/layout");
305
- var import_react8 = require("react");
306
- var import_generator7 = require("libnoise-ts/module/generator");
307
- var import_hooks8 = require("@awesome-flow/core/hooks");
308
266
  var import_components5 = require("@awesome-flow/core/components");
309
- var import_jsx_runtime8 = require("react/jsx-runtime");
267
+ var import_jsx_runtime7 = require("react/jsx-runtime");
310
268
  function NoiseSpheresNode({ id, selected, data, type }) {
311
- const updateComputedData = (0, import_hooks8.useUpdateNodeComputedData)();
312
- const module2 = (0, import_react8.useMemo)(() => new import_generator7.Spheres(), []);
313
- const onPropertiesChange = (0, import_react8.useCallback)((properties) => {
269
+ const updateComputedData = (0, import_hooks7.useUpdateNodeComputedData)();
270
+ const module2 = (0, import_react7.useMemo)(() => new import_libnoise_simplex_ts7.Spheres(), []);
271
+ const onPropertiesChange = (0, import_react7.useCallback)((properties) => {
314
272
  Object.keys(properties).forEach((k) => module2[k] = properties[k].value);
315
273
  updateComputedData(id, { module: module2 });
316
274
  }, []);
317
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_layout8.NodeContainer, { id, selected, data, type, children: [
318
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_components5.NodePropertyVariables, { data, nodeId: id, onPropertiesChange }),
319
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_layout8.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
275
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_layout7.NodeContainer, { id, selected, data, type, children: [
276
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_components5.NodePropertyVariables, { data, nodeId: id, onPropertiesChange }),
277
+ /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_layout7.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
320
278
  ] });
321
279
  }
322
280
  var noise_spheres_node_default = NoiseSpheresNode;
323
281
 
324
282
  // src/nodes/generators/noise-voronoi-node.tsx
325
- var import_layout9 = require("@awesome-flow/core/layout");
326
- var import_react9 = require("react");
327
- var import_generator8 = require("libnoise-ts/module/generator");
328
- var import_hooks9 = require("@awesome-flow/core/hooks");
283
+ var import_layout8 = require("@awesome-flow/core/layout");
284
+ var import_react8 = require("react");
285
+ var import_libnoise_simplex_ts8 = require("libnoise-simplex-ts");
286
+ var import_hooks8 = require("@awesome-flow/core/hooks");
329
287
  var import_components6 = require("@awesome-flow/core/components");
330
- var import_jsx_runtime9 = require("react/jsx-runtime");
288
+ var import_jsx_runtime8 = require("react/jsx-runtime");
331
289
  function NoiseVoronoiNode({ id, selected, data, type }) {
332
- const updateComputedData = (0, import_hooks9.useUpdateNodeComputedData)();
333
- const onPropertiesChange = (0, import_react9.useCallback)(
290
+ const updateComputedData = (0, import_hooks8.useUpdateNodeComputedData)();
291
+ const onPropertiesChange = (0, import_react8.useCallback)(
334
292
  (properties) => {
335
- const module2 = new import_generator8.Voronoi(
293
+ const module2 = new import_libnoise_simplex_ts8.Voronoi(
336
294
  properties.frequency.value,
337
295
  properties.displacement.value,
338
296
  properties.distance.value,
@@ -342,27 +300,27 @@ function NoiseVoronoiNode({ id, selected, data, type }) {
342
300
  },
343
301
  []
344
302
  );
345
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_layout9.NodeContainer, { id, selected, data, type, children: [
346
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_components6.NodePropertyVariables, { data, nodeId: id, onPropertiesChange }),
347
- /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_layout9.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
303
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_layout8.NodeContainer, { id, selected, data, type, children: [
304
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_components6.NodePropertyVariables, { data, nodeId: id, onPropertiesChange }),
305
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_layout8.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
348
306
  ] });
349
307
  }
350
308
  var noise_voronoi_node_default = NoiseVoronoiNode;
351
309
 
352
310
  // src/nodes/generators/position-const-node.tsx
353
- var import_layout10 = require("@awesome-flow/core/layout");
354
- var import_react10 = require("react");
311
+ var import_layout9 = require("@awesome-flow/core/layout");
312
+ var import_react9 = require("react");
355
313
  var import_core2 = require("@mantine/core");
356
- var import_hooks10 = require("@awesome-flow/core/hooks");
357
- var import_jsx_runtime10 = require("react/jsx-runtime");
314
+ var import_hooks9 = require("@awesome-flow/core/hooks");
315
+ var import_jsx_runtime9 = require("react/jsx-runtime");
358
316
  function PositionConstNode({ id, selected, data, type }) {
359
317
  const position = data.position ?? { x: 0, y: 0, z: 0 };
360
- const [x, setX] = (0, import_react10.useState)(position.x);
361
- const [y, setY] = (0, import_react10.useState)(position.y);
362
- const [z, setZ] = (0, import_react10.useState)(position.z);
363
- const updateNodeData = (0, import_hooks10.useUpdateNodeData)();
364
- const updateComputedData = (0, import_hooks10.useUpdateNodeComputedData)();
365
- (0, import_react10.useEffect)(() => {
318
+ const [x, setX] = (0, import_react9.useState)(position.x);
319
+ const [y, setY] = (0, import_react9.useState)(position.y);
320
+ const [z, setZ] = (0, import_react9.useState)(position.z);
321
+ const updateNodeData = (0, import_hooks9.useUpdateNodeData)();
322
+ const updateComputedData = (0, import_hooks9.useUpdateNodeComputedData)();
323
+ (0, import_react9.useEffect)(() => {
366
324
  const position2 = { x, y, z };
367
325
  updateNodeData(id, {
368
326
  position: position2
@@ -371,47 +329,47 @@ function PositionConstNode({ id, selected, data, type }) {
371
329
  positions: [position2]
372
330
  });
373
331
  }, [x, y, z]);
374
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_layout10.NodeContainer, { id, selected, data, type, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_core2.Stack, { children: [
375
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_core2.Group, { children: [
332
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_layout9.NodeContainer, { id, selected, data, type, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_core2.Stack, { children: [
333
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_core2.Group, { children: [
376
334
  "x: ",
377
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_core2.NumberInput, { size: "xs", w: 100, value: x, onChange: (e) => setX(Number(e)) })
335
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core2.NumberInput, { size: "xs", w: 100, value: x, onChange: (e) => setX(Number(e)) })
378
336
  ] }),
379
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_core2.Group, { children: [
337
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_core2.Group, { children: [
380
338
  "y: ",
381
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_core2.NumberInput, { size: "xs", w: 100, value: y, onChange: (e) => setY(Number(e)) })
339
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core2.NumberInput, { size: "xs", w: 100, value: y, onChange: (e) => setY(Number(e)) })
382
340
  ] }),
383
- /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_core2.Group, { children: [
341
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_core2.Group, { children: [
384
342
  "z: ",
385
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_core2.NumberInput, { size: "xs", w: 100, value: z, onChange: (e) => setZ(Number(e)) })
343
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_core2.NumberInput, { size: "xs", w: 100, value: z, onChange: (e) => setZ(Number(e)) })
386
344
  ] })
387
345
  ] }) });
388
346
  }
389
347
  var position_const_node_default = PositionConstNode;
390
348
 
391
349
  // src/nodes/generators/position-grid-node.tsx
392
- var import_layout11 = require("@awesome-flow/core/layout");
393
- var import_react11 = require("react");
350
+ var import_layout10 = require("@awesome-flow/core/layout");
351
+ var import_react10 = require("react");
394
352
  var import_core3 = require("@mantine/core");
395
- var import_hooks11 = require("@awesome-flow/core/hooks");
396
- var import_jsx_runtime11 = require("react/jsx-runtime");
353
+ var import_hooks10 = require("@awesome-flow/core/hooks");
354
+ var import_jsx_runtime10 = require("react/jsx-runtime");
397
355
  function PositionGridNode({ id, selected, data, type }) {
398
- const [x, setX] = (0, import_react11.useState)(data.center?.x);
399
- const [y, setY] = (0, import_react11.useState)(data.center?.y);
400
- const [z, setZ] = (0, import_react11.useState)(data.center?.z);
401
- const [radius, setRadius] = (0, import_react11.useState)(data.radius);
402
- const updateNodeData = (0, import_hooks11.useUpdateNodeData)();
403
- const updateComputedData = (0, import_hooks11.useUpdateNodeComputedData)();
404
- (0, import_react11.useEffect)(() => {
356
+ const [x, setX] = (0, import_react10.useState)(data.center?.x);
357
+ const [y, setY] = (0, import_react10.useState)(data.center?.y);
358
+ const [z, setZ] = (0, import_react10.useState)(data.center?.z);
359
+ const [radius, setRadius] = (0, import_react10.useState)(data.radius);
360
+ const updateNodeData = (0, import_hooks10.useUpdateNodeData)();
361
+ const updateComputedData = (0, import_hooks10.useUpdateNodeComputedData)();
362
+ (0, import_react10.useEffect)(() => {
405
363
  updateNodeData(id, {
406
364
  center: { x, y, z }
407
365
  });
408
366
  }, [x, y, z]);
409
- (0, import_react11.useEffect)(() => {
367
+ (0, import_react10.useEffect)(() => {
410
368
  updateNodeData(id, {
411
369
  radius
412
370
  });
413
371
  }, [radius]);
414
- (0, import_react11.useEffect)(() => {
372
+ (0, import_react10.useEffect)(() => {
415
373
  const positions = [];
416
374
  for (let i = -radius; i < radius; i++) {
417
375
  for (let j = -radius; j < radius; j++) {
@@ -422,35 +380,35 @@ function PositionGridNode({ id, selected, data, type }) {
422
380
  positions
423
381
  });
424
382
  }, [x, y, z, radius]);
425
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_layout11.NodeContainer, { id, selected, data, type, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_core3.Stack, { children: [
426
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_core3.Group, { children: [
383
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_layout10.NodeContainer, { id, selected, data, type, children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_core3.Stack, { children: [
384
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_core3.Group, { children: [
427
385
  "x: ",
428
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_core3.NumberInput, { size: "xs", w: 100, value: x, onChange: (e) => setX(Number(e)) })
386
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_core3.NumberInput, { size: "xs", w: 100, value: x, onChange: (e) => setX(Number(e)) })
429
387
  ] }),
430
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_core3.Group, { children: [
388
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_core3.Group, { children: [
431
389
  "y: ",
432
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_core3.NumberInput, { size: "xs", w: 100, value: y, onChange: (e) => setY(Number(e)) })
390
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_core3.NumberInput, { size: "xs", w: 100, value: y, onChange: (e) => setY(Number(e)) })
433
391
  ] }),
434
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_core3.Group, { children: [
392
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_core3.Group, { children: [
435
393
  "z: ",
436
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_core3.NumberInput, { size: "xs", w: 100, value: z, onChange: (e) => setZ(Number(e)) })
394
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_core3.NumberInput, { size: "xs", w: 100, value: z, onChange: (e) => setZ(Number(e)) })
437
395
  ] }),
438
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_core3.Group, { children: [
396
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_core3.Group, { children: [
439
397
  "r: ",
440
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_core3.NumberInput, { size: "xs", w: 100, value: radius, onChange: (e) => setRadius(Number(e)) })
398
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_core3.NumberInput, { size: "xs", w: 100, value: radius, onChange: (e) => setRadius(Number(e)) })
441
399
  ] })
442
400
  ] }) });
443
401
  }
444
402
  var position_grid_node_default = PositionGridNode;
445
403
 
446
404
  // src/nodes/groups/module-group-node.tsx
447
- var import_layout12 = require("@awesome-flow/core/layout");
448
- var import_react12 = require("@xyflow/react");
449
- var import_react13 = require("react");
405
+ var import_layout11 = require("@awesome-flow/core/layout");
406
+ var import_react11 = require("@xyflow/react");
407
+ var import_react12 = require("react");
450
408
  var import_shallow = require("zustand/shallow");
451
409
  var import_core4 = require("@mantine/core");
452
- var import_hooks12 = require("@awesome-flow/core/hooks");
453
- var import_jsx_runtime12 = require("react/jsx-runtime");
410
+ var import_hooks11 = require("@awesome-flow/core/hooks");
411
+ var import_jsx_runtime11 = require("react/jsx-runtime");
454
412
  function ModuleGroupNode({
455
413
  id,
456
414
  selected,
@@ -459,22 +417,22 @@ function ModuleGroupNode({
459
417
  width,
460
418
  height
461
419
  }) {
462
- const updateNodeInternals = (0, import_react12.useUpdateNodeInternals)();
463
- const triggerNodeChanges = (0, import_react12.useStore)((s) => s.triggerNodeChanges);
464
- const { groupNodes, setGroupCollapsed } = (0, import_hooks12.useFlowStore)(
465
- (0, import_react13.useCallback)(
420
+ const updateNodeInternals = (0, import_react11.useUpdateNodeInternals)();
421
+ const triggerNodeChanges = (0, import_react11.useStore)((s) => s.triggerNodeChanges);
422
+ const { groupNodes, setGroupCollapsed } = (0, import_hooks11.useFlowStore)(
423
+ (0, import_react12.useCallback)(
466
424
  (state) => ({ groupNodes: state.groups[id], setGroupCollapsed: state.setGroupCollapsed }),
467
425
  []
468
426
  )
469
427
  );
470
- const intersectingNode = (0, import_hooks12.useInteractiveStore)(
471
- (0, import_react13.useCallback)((state) => state.nodeIntersectionTargets[id], [id]),
428
+ const intersectingNode = (0, import_hooks11.useInteractiveStore)(
429
+ (0, import_react12.useCallback)((state) => state.nodeIntersectionTargets[id], [id]),
472
430
  import_shallow.shallow
473
431
  );
474
- (0, import_react13.useEffect)(() => {
432
+ (0, import_react12.useEffect)(() => {
475
433
  updateNodeInternals(id);
476
434
  }, [width, height]);
477
- (0, import_react13.useEffect)(() => {
435
+ (0, import_react12.useEffect)(() => {
478
436
  triggerNodeChanges([
479
437
  {
480
438
  id,
@@ -483,37 +441,37 @@ function ModuleGroupNode({
483
441
  }
484
442
  ]);
485
443
  }, [intersectingNode]);
486
- const onCollapsed = (0, import_react13.useCallback)((collapsed) => {
444
+ const onCollapsed = (0, import_react12.useCallback)((collapsed) => {
487
445
  setGroupCollapsed(id, collapsed);
488
446
  }, []);
489
- const size = (0, import_react13.useMemo)(() => {
447
+ const size = (0, import_react12.useMemo)(() => {
490
448
  return {
491
449
  width: data.initialSize?.width || 100,
492
450
  height: data.initialSize?.height || 50
493
451
  };
494
452
  }, [data.initialSize]);
495
- const incomingModules = (0, import_hooks12.useIncomingComputedData)(id);
496
- const updateComputedData = (0, import_hooks12.useUpdateNodeComputedData)();
497
- (0, import_react13.useEffect)(() => {
453
+ const incomingModules = (0, import_hooks11.useIncomingComputedData)(id);
454
+ const updateComputedData = (0, import_hooks11.useUpdateNodeComputedData)();
455
+ (0, import_react12.useEffect)(() => {
498
456
  if (incomingModules?.length) {
499
457
  const { module: module2 } = incomingModules[0];
500
458
  updateComputedData(id, { module: module2 });
501
459
  }
502
460
  }, [incomingModules]);
503
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(
504
- import_layout12.NodeContainer,
461
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(
462
+ import_layout11.NodeContainer,
505
463
  {
506
464
  id,
507
465
  selected,
508
466
  data,
509
- title: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_core4.Group, { justify: "space-between", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_core4.Group, { gap: "xs", children: [
510
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_core4.Badge, { size: "xs", variant: "outline", radius: "xs", color: "gray", children: groupNodes?.length || 0 }),
511
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_layout12.NodeCollapse, { nodeId: id, isCollapsed: data.isCollapsed, onCollapsed })
467
+ title: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_core4.Group, { justify: "space-between", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_core4.Group, { gap: "xs", children: [
468
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_core4.Badge, { size: "xs", variant: "outline", radius: "xs", color: "gray", children: groupNodes?.length || 0 }),
469
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_layout11.NodeCollapse, { nodeId: id, isCollapsed: data.isCollapsed, onCollapsed })
512
470
  ] }) }),
513
471
  type,
514
472
  children: [
515
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
516
- import_react12.NodeResizer,
473
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
474
+ import_react11.NodeResizer,
517
475
  {
518
476
  nodeId: id,
519
477
  minWidth: size.width,
@@ -521,7 +479,7 @@ function ModuleGroupNode({
521
479
  isVisible: selected && !data.isCollapsed
522
480
  }
523
481
  ),
524
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_layout12.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
482
+ /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_layout11.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
525
483
  ]
526
484
  }
527
485
  );
@@ -529,47 +487,47 @@ function ModuleGroupNode({
529
487
  var module_group_node_default = ModuleGroupNode;
530
488
 
531
489
  // src/nodes/modifiers/noise-abs-node.tsx
532
- var import_layout13 = require("@awesome-flow/core/layout");
533
- var import_react14 = require("react");
534
- var import_hooks13 = require("@awesome-flow/core/hooks");
535
- var import_modifier = require("libnoise-ts/module/modifier");
536
- var import_jsx_runtime13 = require("react/jsx-runtime");
490
+ var import_layout12 = require("@awesome-flow/core/layout");
491
+ var import_react13 = require("react");
492
+ var import_hooks12 = require("@awesome-flow/core/hooks");
493
+ var import_libnoise_simplex_ts9 = require("libnoise-simplex-ts");
494
+ var import_jsx_runtime12 = require("react/jsx-runtime");
537
495
  function NoiseAbsNode({ id, selected, data, type }) {
538
- const incoming = (0, import_hooks13.useIncomingComputedData)(id);
539
- const updateComputedData = (0, import_hooks13.useUpdateNodeComputedData)();
540
- (0, import_react14.useEffect)(() => {
496
+ const incoming = (0, import_hooks12.useIncomingComputedData)(id);
497
+ const updateComputedData = (0, import_hooks12.useUpdateNodeComputedData)();
498
+ (0, import_react13.useEffect)(() => {
541
499
  if (incoming?.length > 0) {
542
- const module2 = new import_modifier.Abs(incoming[0].module);
500
+ const module2 = new import_libnoise_simplex_ts9.Abs(incoming[0].module);
543
501
  updateComputedData(id, { module: module2 });
544
502
  }
545
503
  }, [incoming]);
546
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_layout13.NodeContainer, { id, selected, data, type, children: /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_layout13.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" }) });
504
+ return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_layout12.NodeContainer, { id, selected, data, type, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_layout12.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" }) });
547
505
  }
548
506
  var noise_abs_node_default = NoiseAbsNode;
549
507
 
550
508
  // src/nodes/modifiers/noise-clamp-node.tsx
551
- var import_layout14 = require("@awesome-flow/core/layout");
552
- var import_react15 = require("react");
509
+ var import_layout13 = require("@awesome-flow/core/layout");
510
+ var import_react14 = require("react");
553
511
  var import_core5 = require("@mantine/core");
554
- var import_hooks14 = require("@awesome-flow/core/hooks");
555
- var import_modifier2 = require("libnoise-ts/module/modifier");
556
- var import_jsx_runtime14 = require("react/jsx-runtime");
512
+ var import_hooks13 = require("@awesome-flow/core/hooks");
513
+ var import_libnoise_simplex_ts10 = require("libnoise-simplex-ts");
514
+ var import_jsx_runtime13 = require("react/jsx-runtime");
557
515
  function NoiseClampNode({ id, selected, data, type }) {
558
- const [lowerBound, setLowerBound] = (0, import_react15.useState)(data.lowerBound);
559
- const [upperBound, setUpperBound] = (0, import_react15.useState)(data.upperBound);
560
- const incoming = (0, import_hooks14.useIncomingComputedData)(id);
561
- const updateNodeData = (0, import_hooks14.useUpdateNodeData)();
562
- const updateComputedData = (0, import_hooks14.useUpdateNodeComputedData)();
563
- (0, import_react15.useEffect)(() => {
516
+ const [lowerBound, setLowerBound] = (0, import_react14.useState)(data.lowerBound);
517
+ const [upperBound, setUpperBound] = (0, import_react14.useState)(data.upperBound);
518
+ const incoming = (0, import_hooks13.useIncomingComputedData)(id);
519
+ const updateNodeData = (0, import_hooks13.useUpdateNodeData)();
520
+ const updateComputedData = (0, import_hooks13.useUpdateNodeComputedData)();
521
+ (0, import_react14.useEffect)(() => {
564
522
  if (incoming?.length) {
565
- const module2 = new import_modifier2.Clamp(incoming[0].module, lowerBound, upperBound);
523
+ const module2 = new import_libnoise_simplex_ts10.Clamp(incoming[0].module, lowerBound, upperBound);
566
524
  updateComputedData(id, { module: module2 });
567
525
  }
568
526
  updateNodeData(id, { lowerBound, upperBound });
569
527
  }, [incoming, lowerBound, upperBound]);
570
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_layout14.NodeContainer, { id, selected, data, type, children: [
571
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_core5.Stack, { children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_core5.Group, { children: [
572
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
528
+ return /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_layout13.NodeContainer, { id, selected, data, type, children: [
529
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_core5.Stack, { children: /* @__PURE__ */ (0, import_jsx_runtime13.jsxs)(import_core5.Group, { children: [
530
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
573
531
  import_core5.NumberInput,
574
532
  {
575
533
  size: "xs",
@@ -579,7 +537,7 @@ function NoiseClampNode({ id, selected, data, type }) {
579
537
  step: 0.1
580
538
  }
581
539
  ),
582
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
540
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(
583
541
  import_core5.NumberInput,
584
542
  {
585
543
  size: "xs",
@@ -590,67 +548,67 @@ function NoiseClampNode({ id, selected, data, type }) {
590
548
  }
591
549
  )
592
550
  ] }) }),
593
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_layout14.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
551
+ /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_layout13.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
594
552
  ] });
595
553
  }
596
554
  var noise_clamp_node_default = NoiseClampNode;
597
555
 
598
556
  // src/nodes/modifiers/noise-combine-node.tsx
599
- var import_layout15 = require("@awesome-flow/core/layout");
600
- var import_react16 = require("react");
601
- var import_hooks15 = require("@awesome-flow/core/hooks");
557
+ var import_layout14 = require("@awesome-flow/core/layout");
558
+ var import_react15 = require("react");
559
+ var import_hooks14 = require("@awesome-flow/core/hooks");
602
560
  var import_icons_react = require("@tabler/icons-react");
603
561
 
604
562
  // src/abstract/operations.ts
605
- var import_combiner = require("libnoise-ts/module/combiner");
563
+ var import_libnoise_simplex_ts11 = require("libnoise-simplex-ts");
606
564
  var noiseCombineModuleMap = {
607
- ["add" /* add */]: import_combiner.Add,
608
- ["max" /* max */]: import_combiner.Max,
609
- ["min" /* min */]: import_combiner.Min,
610
- ["multiply" /* multiply */]: import_combiner.Multiply,
611
- ["power" /* power */]: import_combiner.Power
565
+ ["add" /* add */]: import_libnoise_simplex_ts11.Add,
566
+ ["max" /* max */]: import_libnoise_simplex_ts11.Max,
567
+ ["min" /* min */]: import_libnoise_simplex_ts11.Min,
568
+ ["multiply" /* multiply */]: import_libnoise_simplex_ts11.Multiply,
569
+ ["power" /* power */]: import_libnoise_simplex_ts11.Power
612
570
  };
613
571
 
614
572
  // src/nodes/modifiers/noise-combine-node.tsx
615
- var import_jsx_runtime15 = require("react/jsx-runtime");
573
+ var import_jsx_runtime14 = require("react/jsx-runtime");
616
574
  var options = {
617
- add: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons_react.IconPlus, {}),
618
- min: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons_react.IconChevronLeft, {}),
619
- max: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons_react.IconChevronRight, {}),
620
- multiply: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons_react.IconAsterisk, {}),
621
- power: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons_react.IconChevronUp, {})
575
+ add: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_icons_react.IconPlus, {}),
576
+ min: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_icons_react.IconChevronLeft, {}),
577
+ max: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_icons_react.IconChevronRight, {}),
578
+ multiply: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_icons_react.IconAsterisk, {}),
579
+ power: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_icons_react.IconChevronUp, {})
622
580
  };
623
581
  function NoiseCombineNode({ id, selected, data, type }) {
624
- const updateNodeData = (0, import_hooks15.useUpdateNodeData)();
625
- const updateComputedData = (0, import_hooks15.useUpdateNodeComputedData)();
626
- const incoming = (0, import_hooks15.useIncomingComputedData)(id);
627
- (0, import_react16.useEffect)(() => {
582
+ const updateNodeData = (0, import_hooks14.useUpdateNodeData)();
583
+ const updateComputedData = (0, import_hooks14.useUpdateNodeComputedData)();
584
+ const incoming = (0, import_hooks14.useIncomingComputedData)(id);
585
+ (0, import_react15.useEffect)(() => {
628
586
  const ModuleFactory = noiseCombineModuleMap[data.operation];
629
587
  if (incoming?.length > 1) {
630
588
  const module2 = new ModuleFactory(incoming[0].module, incoming[1].module);
631
589
  updateComputedData(id, { module: module2 });
632
590
  }
633
591
  }, [data.operation, incoming]);
634
- const onChange = (0, import_react16.useCallback)((operation) => {
592
+ const onChange = (0, import_react15.useCallback)((operation) => {
635
593
  updateNodeData(id, { operation });
636
594
  }, []);
637
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_layout15.NodeContainer, { id, selected, data, type, children: [
638
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_layout15.NodeCombobox, { options, selected: data.operation, onChange, width: 150 }),
639
- /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_layout15.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
595
+ return /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(import_layout14.NodeContainer, { id, selected, data, type, children: [
596
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_layout14.NodeCombobox, { options, selected: data.operation, onChange, width: 150 }),
597
+ /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_layout14.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
640
598
  ] });
641
599
  }
642
600
  var noise_combine_node_default = NoiseCombineNode;
643
601
 
644
602
  // src/nodes/modifiers/noise-curve-node.tsx
645
- var import_layout16 = require("@awesome-flow/core/layout");
603
+ var import_layout15 = require("@awesome-flow/core/layout");
646
604
  var import_core6 = require("@mantine/core");
647
- var import_hooks16 = require("@awesome-flow/core/hooks");
605
+ var import_hooks15 = require("@awesome-flow/core/hooks");
648
606
 
649
- // ../../node_modules/@mantine/form/esm/use-form.mjs
650
- var import_react23 = require("react");
607
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/use-form.mjs
608
+ var import_react22 = require("react");
651
609
 
652
- // ../../node_modules/@mantine/form/esm/actions/actions.mjs
653
- var import_react17 = require("react");
610
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/actions/actions.mjs
611
+ var import_react16 = require("react");
654
612
  function validateFormName(name) {
655
613
  if (!/^[0-9a-zA-Z-]+$/.test(name)) {
656
614
  throw new Error(
@@ -658,7 +616,7 @@ function validateFormName(name) {
658
616
  );
659
617
  }
660
618
  }
661
- var useIsomorphicEffect = typeof window !== "undefined" ? import_react17.useLayoutEffect : import_react17.useEffect;
619
+ var useIsomorphicEffect = typeof window !== "undefined" ? import_react16.useLayoutEffect : import_react16.useEffect;
662
620
  function useFormEvent(eventKey, handler) {
663
621
  useIsomorphicEffect(() => {
664
622
  if (eventKey) {
@@ -730,7 +688,7 @@ function useFormActions(name, form) {
730
688
  useFormEvent(`mantine-form:${name}:reset-touched`, form.resetTouched);
731
689
  }
732
690
 
733
- // ../../node_modules/@mantine/form/esm/get-input-on-change/get-input-on-change.mjs
691
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/get-input-on-change/get-input-on-change.mjs
734
692
  function getInputOnChange(setValue) {
735
693
  return (val) => {
736
694
  if (!val) {
@@ -754,10 +712,10 @@ function getInputOnChange(setValue) {
754
712
  };
755
713
  }
756
714
 
757
- // ../../node_modules/@mantine/form/esm/hooks/use-form-errors/use-form-errors.mjs
758
- var import_react18 = require("react");
715
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-errors/use-form-errors.mjs
716
+ var import_react17 = require("react");
759
717
 
760
- // ../../node_modules/@mantine/form/esm/hooks/use-form-errors/filter-errors/filter-errors.mjs
718
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-errors/filter-errors/filter-errors.mjs
761
719
  function filterErrors(errors) {
762
720
  if (errors === null || typeof errors !== "object") {
763
721
  return {};
@@ -771,18 +729,21 @@ function filterErrors(errors) {
771
729
  }, {});
772
730
  }
773
731
 
774
- // ../../node_modules/@mantine/form/esm/hooks/use-form-errors/use-form-errors.mjs
732
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-errors/use-form-errors.mjs
775
733
  function useFormErrors(initialErrors) {
776
- const [errorsState, setErrorsState] = (0, import_react18.useState)(filterErrors(initialErrors));
777
- const setErrors = (0, import_react18.useCallback)((errors) => {
778
- setErrorsState(
779
- (current) => filterErrors(typeof errors === "function" ? errors(current) : errors)
780
- );
734
+ const [errorsState, setErrorsState] = (0, import_react17.useState)(filterErrors(initialErrors));
735
+ const errorsRef = (0, import_react17.useRef)(errorsState);
736
+ const setErrors = (0, import_react17.useCallback)((errors) => {
737
+ setErrorsState((current) => {
738
+ const newErrors = filterErrors(typeof errors === "function" ? errors(current) : errors);
739
+ errorsRef.current = newErrors;
740
+ return newErrors;
741
+ });
781
742
  }, []);
782
- const clearErrors = (0, import_react18.useCallback)(() => setErrorsState({}), []);
783
- const clearFieldError = (0, import_react18.useCallback)(
743
+ const clearErrors = (0, import_react17.useCallback)(() => setErrors({}), []);
744
+ const clearFieldError = (0, import_react17.useCallback)(
784
745
  (path) => {
785
- if (errorsState[path] === void 0) {
746
+ if (errorsRef.current[path] === void 0) {
786
747
  return;
787
748
  }
788
749
  setErrors((current) => {
@@ -793,11 +754,11 @@ function useFormErrors(initialErrors) {
793
754
  },
794
755
  [errorsState]
795
756
  );
796
- const setFieldError = (0, import_react18.useCallback)(
757
+ const setFieldError = (0, import_react17.useCallback)(
797
758
  (path, error) => {
798
759
  if (error == null || error === false) {
799
760
  clearFieldError(path);
800
- } else if (errorsState[path] !== error) {
761
+ } else if (errorsRef.current[path] !== error) {
801
762
  setErrors((current) => ({ ...current, [path]: error }));
802
763
  }
803
764
  },
@@ -812,10 +773,10 @@ function useFormErrors(initialErrors) {
812
773
  };
813
774
  }
814
775
 
815
- // ../../node_modules/@mantine/form/esm/hooks/use-form-list/use-form-list.mjs
816
- var import_react19 = require("react");
776
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-list/use-form-list.mjs
777
+ var import_react18 = require("react");
817
778
 
818
- // ../../node_modules/@mantine/form/esm/lists/clear-list-state.mjs
779
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/lists/clear-list-state.mjs
819
780
  function clearListState(field, state) {
820
781
  if (state === null || typeof state !== "object") {
821
782
  return {};
@@ -829,7 +790,7 @@ function clearListState(field, state) {
829
790
  return clone;
830
791
  }
831
792
 
832
- // ../../node_modules/@mantine/form/esm/lists/change-error-indices.mjs
793
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/lists/change-error-indices.mjs
833
794
  function getIndexFromKeyAfterPath(key, path) {
834
795
  const split = key.substring(path.length + 1).split(".")[0];
835
796
  return parseInt(split, 10);
@@ -869,7 +830,7 @@ function changeErrorIndices(path, index, errors, change) {
869
830
  return cloned;
870
831
  }
871
832
 
872
- // ../../node_modules/@mantine/form/esm/lists/reorder-errors.mjs
833
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/lists/reorder-errors.mjs
873
834
  function reorderErrors(path, { from, to }, errors) {
874
835
  const oldKeyStart = `${path}.${from}`;
875
836
  const newKeyStart = `${path}.${to}`;
@@ -897,18 +858,15 @@ function reorderErrors(path, { from, to }, errors) {
897
858
  return clone;
898
859
  }
899
860
 
900
- // ../../node_modules/klona/full/index.mjs
861
+ // ../../node_modules/.pnpm/klona@2.0.6/node_modules/klona/full/index.mjs
901
862
  function set(obj, key, val) {
902
- if (typeof val.value === "object")
903
- val.value = klona(val.value);
863
+ if (typeof val.value === "object") val.value = klona(val.value);
904
864
  if (!val.enumerable || val.get || val.set || !val.configurable || !val.writable || key === "__proto__") {
905
865
  Object.defineProperty(obj, key, val);
906
- } else
907
- obj[key] = val.value;
866
+ } else obj[key] = val.value;
908
867
  }
909
868
  function klona(x) {
910
- if (typeof x !== "object")
911
- return x;
869
+ if (typeof x !== "object") return x;
912
870
  var i = 0, k, list, tmp, str = Object.prototype.toString.call(x);
913
871
  if (str === "[object Object]") {
914
872
  tmp = Object.create(x.__proto__ || null);
@@ -940,15 +898,14 @@ function klona(x) {
940
898
  set(tmp, list[i], Object.getOwnPropertyDescriptor(x, list[i]));
941
899
  }
942
900
  for (i = 0, list = Object.getOwnPropertyNames(x); i < list.length; i++) {
943
- if (Object.hasOwnProperty.call(tmp, k = list[i]) && tmp[k] === x[k])
944
- continue;
901
+ if (Object.hasOwnProperty.call(tmp, k = list[i]) && tmp[k] === x[k]) continue;
945
902
  set(tmp, k, Object.getOwnPropertyDescriptor(x, k));
946
903
  }
947
904
  }
948
905
  return tmp || x;
949
906
  }
950
907
 
951
- // ../../node_modules/@mantine/form/esm/paths/get-splitted-path.mjs
908
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/get-splitted-path.mjs
952
909
  function getSplittedPath(path) {
953
910
  if (typeof path !== "string") {
954
911
  return [];
@@ -956,7 +913,7 @@ function getSplittedPath(path) {
956
913
  return path.split(".");
957
914
  }
958
915
 
959
- // ../../node_modules/@mantine/form/esm/paths/get-path.mjs
916
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/get-path.mjs
960
917
  function getPath(path, values) {
961
918
  const splittedPath = getSplittedPath(path);
962
919
  if (splittedPath.length === 0 || typeof values !== "object" || values === null) {
@@ -972,7 +929,7 @@ function getPath(path, values) {
972
929
  return value;
973
930
  }
974
931
 
975
- // ../../node_modules/@mantine/form/esm/paths/set-path.mjs
932
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/set-path.mjs
976
933
  function setPath(path, value, values) {
977
934
  const splittedPath = getSplittedPath(path);
978
935
  if (splittedPath.length === 0) {
@@ -994,7 +951,7 @@ function setPath(path, value, values) {
994
951
  return cloned;
995
952
  }
996
953
 
997
- // ../../node_modules/@mantine/form/esm/paths/reorder-path.mjs
954
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/reorder-path.mjs
998
955
  function reorderPath(path, { from, to }, values) {
999
956
  const currentValue = getPath(path, values);
1000
957
  if (!Array.isArray(currentValue)) {
@@ -1007,7 +964,7 @@ function reorderPath(path, { from, to }, values) {
1007
964
  return setPath(path, cloned, values);
1008
965
  }
1009
966
 
1010
- // ../../node_modules/@mantine/form/esm/paths/insert-path.mjs
967
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/insert-path.mjs
1011
968
  function insertPath(path, value, index, values) {
1012
969
  const currentValue = getPath(path, values);
1013
970
  if (!Array.isArray(currentValue)) {
@@ -1018,7 +975,7 @@ function insertPath(path, value, index, values) {
1018
975
  return setPath(path, cloned, values);
1019
976
  }
1020
977
 
1021
- // ../../node_modules/@mantine/form/esm/paths/remove-path.mjs
978
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/remove-path.mjs
1022
979
  function removePath(path, index, values) {
1023
980
  const currentValue = getPath(path, values);
1024
981
  if (!Array.isArray(currentValue)) {
@@ -1031,13 +988,13 @@ function removePath(path, index, values) {
1031
988
  );
1032
989
  }
1033
990
 
1034
- // ../../node_modules/@mantine/form/esm/hooks/use-form-list/use-form-list.mjs
991
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-list/use-form-list.mjs
1035
992
  function useFormList({
1036
993
  $values,
1037
994
  $errors,
1038
995
  $status
1039
996
  }) {
1040
- const reorderListItem = (0, import_react19.useCallback)((path, payload) => {
997
+ const reorderListItem = (0, import_react18.useCallback)((path, payload) => {
1041
998
  $status.clearFieldDirty(path);
1042
999
  $errors.setErrors((errs) => reorderErrors(path, payload, errs));
1043
1000
  $values.setValues({
@@ -1045,7 +1002,7 @@ function useFormList({
1045
1002
  updateState: true
1046
1003
  });
1047
1004
  }, []);
1048
- const removeListItem = (0, import_react19.useCallback)((path, index) => {
1005
+ const removeListItem = (0, import_react18.useCallback)((path, index) => {
1049
1006
  $status.clearFieldDirty(path);
1050
1007
  $errors.setErrors((errs) => changeErrorIndices(path, index, errs, -1));
1051
1008
  $values.setValues({
@@ -1053,7 +1010,7 @@ function useFormList({
1053
1010
  updateState: true
1054
1011
  });
1055
1012
  }, []);
1056
- const insertListItem = (0, import_react19.useCallback)((path, item, index) => {
1013
+ const insertListItem = (0, import_react18.useCallback)((path, item, index) => {
1057
1014
  $status.clearFieldDirty(path);
1058
1015
  $errors.setErrors((errs) => changeErrorIndices(path, index, errs, 1));
1059
1016
  $values.setValues({
@@ -1064,11 +1021,11 @@ function useFormList({
1064
1021
  return { reorderListItem, removeListItem, insertListItem };
1065
1022
  }
1066
1023
 
1067
- // ../../node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.mjs
1068
- var import_react20 = require("react");
1024
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.mjs
1025
+ var import_react19 = require("react");
1069
1026
  var import_fast_deep_equal = __toESM(require_fast_deep_equal(), 1);
1070
1027
 
1071
- // ../../node_modules/@mantine/form/esm/get-status/get-status.mjs
1028
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/get-status/get-status.mjs
1072
1029
  function getStatus(status, path) {
1073
1030
  const paths = Object.keys(status);
1074
1031
  if (typeof path === "string") {
@@ -1078,38 +1035,38 @@ function getStatus(status, path) {
1078
1035
  return paths.some((statusPath) => status[statusPath]);
1079
1036
  }
1080
1037
 
1081
- // ../../node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.mjs
1038
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-status/use-form-status.mjs
1082
1039
  function useFormStatus({
1083
1040
  initialDirty,
1084
1041
  initialTouched,
1085
1042
  mode,
1086
1043
  $values
1087
1044
  }) {
1088
- const [touchedState, setTouchedState] = (0, import_react20.useState)(initialTouched);
1089
- const [dirtyState, setDirtyState] = (0, import_react20.useState)(initialDirty);
1090
- const touchedRef = (0, import_react20.useRef)(initialTouched);
1091
- const dirtyRef = (0, import_react20.useRef)(initialDirty);
1092
- const setTouched = (0, import_react20.useCallback)((values) => {
1045
+ const [touchedState, setTouchedState] = (0, import_react19.useState)(initialTouched);
1046
+ const [dirtyState, setDirtyState] = (0, import_react19.useState)(initialDirty);
1047
+ const touchedRef = (0, import_react19.useRef)(initialTouched);
1048
+ const dirtyRef = (0, import_react19.useRef)(initialDirty);
1049
+ const setTouched = (0, import_react19.useCallback)((values) => {
1093
1050
  const resolvedValues = typeof values === "function" ? values(touchedRef.current) : values;
1094
1051
  touchedRef.current = resolvedValues;
1095
1052
  if (mode === "controlled") {
1096
1053
  setTouchedState(resolvedValues);
1097
1054
  }
1098
1055
  }, []);
1099
- const setDirty = (0, import_react20.useCallback)((values) => {
1056
+ const setDirty = (0, import_react19.useCallback)((values) => {
1100
1057
  const resolvedValues = typeof values === "function" ? values(dirtyRef.current) : values;
1101
1058
  dirtyRef.current = resolvedValues;
1102
1059
  if (mode === "controlled") {
1103
1060
  setDirtyState(resolvedValues);
1104
1061
  }
1105
1062
  }, []);
1106
- const resetTouched = (0, import_react20.useCallback)(() => setTouched({}), []);
1063
+ const resetTouched = (0, import_react19.useCallback)(() => setTouched({}), []);
1107
1064
  const resetDirty = (values) => {
1108
1065
  const newSnapshot = values ? { ...values, ...$values.refValues.current } : $values.refValues.current;
1109
1066
  $values.setValuesSnapshot(newSnapshot);
1110
1067
  setDirty({});
1111
1068
  };
1112
- const setFieldTouched = (0, import_react20.useCallback)((path, touched) => {
1069
+ const setFieldTouched = (0, import_react19.useCallback)((path, touched) => {
1113
1070
  setTouched((currentTouched) => {
1114
1071
  if (getStatus(currentTouched, path) === touched) {
1115
1072
  return currentTouched;
@@ -1117,7 +1074,7 @@ function useFormStatus({
1117
1074
  return { ...currentTouched, [path]: touched };
1118
1075
  });
1119
1076
  }, []);
1120
- const setFieldDirty = (0, import_react20.useCallback)((path, dirty) => {
1077
+ const setFieldDirty = (0, import_react19.useCallback)((path, dirty) => {
1121
1078
  setDirty((currentDirty) => {
1122
1079
  if (getStatus(currentDirty, path) === dirty) {
1123
1080
  return currentDirty;
@@ -1125,11 +1082,11 @@ function useFormStatus({
1125
1082
  return { ...currentDirty, [path]: dirty };
1126
1083
  });
1127
1084
  }, []);
1128
- const isTouched = (0, import_react20.useCallback)(
1085
+ const isTouched = (0, import_react19.useCallback)(
1129
1086
  (path) => getStatus(touchedRef.current, path),
1130
1087
  []
1131
1088
  );
1132
- const clearFieldDirty = (0, import_react20.useCallback)(
1089
+ const clearFieldDirty = (0, import_react19.useCallback)(
1133
1090
  (path) => setDirty((current) => {
1134
1091
  if (typeof path !== "string") {
1135
1092
  return current;
@@ -1143,7 +1100,7 @@ function useFormStatus({
1143
1100
  }),
1144
1101
  []
1145
1102
  );
1146
- const isDirty = (0, import_react20.useCallback)((path) => {
1103
+ const isDirty = (0, import_react19.useCallback)((path) => {
1147
1104
  if (path) {
1148
1105
  const overriddenValue = getPath(path, dirtyRef.current);
1149
1106
  if (typeof overriddenValue === "boolean") {
@@ -1159,8 +1116,8 @@ function useFormStatus({
1159
1116
  }
1160
1117
  return !(0, import_fast_deep_equal.default)($values.refValues.current, $values.valuesSnapshot.current);
1161
1118
  }, []);
1162
- const getDirty = (0, import_react20.useCallback)(() => dirtyRef.current, []);
1163
- const getTouched = (0, import_react20.useCallback)(() => touchedRef.current, []);
1119
+ const getDirty = (0, import_react19.useCallback)(() => dirtyRef.current, []);
1120
+ const getTouched = (0, import_react19.useCallback)(() => touchedRef.current, []);
1164
1121
  return {
1165
1122
  touchedState,
1166
1123
  dirtyState,
@@ -1182,18 +1139,18 @@ function useFormStatus({
1182
1139
  };
1183
1140
  }
1184
1141
 
1185
- // ../../node_modules/@mantine/form/esm/hooks/use-form-values/use-form-values.mjs
1186
- var import_react21 = require("react");
1142
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-values/use-form-values.mjs
1143
+ var import_react20 = require("react");
1187
1144
  function useFormValues({
1188
1145
  initialValues,
1189
1146
  onValuesChange,
1190
1147
  mode
1191
1148
  }) {
1192
- const initialized = (0, import_react21.useRef)(false);
1193
- const [stateValues, setStateValues] = (0, import_react21.useState)(initialValues || {});
1194
- const refValues = (0, import_react21.useRef)(stateValues);
1195
- const valuesSnapshot = (0, import_react21.useRef)(stateValues);
1196
- const setValues = (0, import_react21.useCallback)(
1149
+ const initialized = (0, import_react20.useRef)(false);
1150
+ const [stateValues, setStateValues] = (0, import_react20.useState)(initialValues || {});
1151
+ const refValues = (0, import_react20.useRef)(stateValues);
1152
+ const valuesSnapshot = (0, import_react20.useRef)(stateValues);
1153
+ const setValues = (0, import_react20.useCallback)(
1197
1154
  ({
1198
1155
  values,
1199
1156
  subscribers,
@@ -1210,7 +1167,7 @@ function useFormValues({
1210
1167
  },
1211
1168
  [onValuesChange]
1212
1169
  );
1213
- const setFieldValue = (0, import_react21.useCallback)((payload) => {
1170
+ const setFieldValue = (0, import_react20.useCallback)((payload) => {
1214
1171
  const currentValue = getPath(payload.path, refValues.current);
1215
1172
  const updatedValue = payload.value instanceof Function ? payload.value(currentValue) : payload.value;
1216
1173
  if (currentValue !== updatedValue) {
@@ -1222,10 +1179,10 @@ function useFormValues({
1222
1179
  );
1223
1180
  }
1224
1181
  }, []);
1225
- const setValuesSnapshot = (0, import_react21.useCallback)((payload) => {
1182
+ const setValuesSnapshot = (0, import_react20.useCallback)((payload) => {
1226
1183
  valuesSnapshot.current = payload;
1227
1184
  }, []);
1228
- const initialize = (0, import_react21.useCallback)((values, onInitialize) => {
1185
+ const initialize = (0, import_react20.useCallback)((values, onInitialize) => {
1229
1186
  if (!initialized.current) {
1230
1187
  initialized.current = true;
1231
1188
  setValues({ values, updateState: mode === "controlled" });
@@ -1233,14 +1190,14 @@ function useFormValues({
1233
1190
  onInitialize();
1234
1191
  }
1235
1192
  }, []);
1236
- const resetValues = (0, import_react21.useCallback)(() => {
1193
+ const resetValues = (0, import_react20.useCallback)(() => {
1237
1194
  setValues({
1238
1195
  values: valuesSnapshot.current,
1239
1196
  updateState: true,
1240
1197
  mergeWithPreviousValues: false
1241
1198
  });
1242
1199
  }, []);
1243
- const getValues = (0, import_react21.useCallback)(() => refValues.current, []);
1200
+ const getValues = (0, import_react20.useCallback)(() => refValues.current, []);
1244
1201
  return {
1245
1202
  initialized,
1246
1203
  stateValues,
@@ -1255,16 +1212,16 @@ function useFormValues({
1255
1212
  };
1256
1213
  }
1257
1214
 
1258
- // ../../node_modules/@mantine/form/esm/hooks/use-form-watch/use-form-watch.mjs
1259
- var import_react22 = require("react");
1215
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/hooks/use-form-watch/use-form-watch.mjs
1216
+ var import_react21 = require("react");
1260
1217
  function useFormWatch({
1261
1218
  $status
1262
1219
  }) {
1263
- const subscribers = (0, import_react22.useRef)(
1220
+ const subscribers = (0, import_react21.useRef)(
1264
1221
  {}
1265
1222
  );
1266
- const watch = (0, import_react22.useCallback)((path, callback) => {
1267
- (0, import_react22.useEffect)(() => {
1223
+ const watch = (0, import_react21.useCallback)((path, callback) => {
1224
+ (0, import_react21.useEffect)(() => {
1268
1225
  subscribers.current[path] = subscribers.current[path] || [];
1269
1226
  subscribers.current[path].push(callback);
1270
1227
  return () => {
@@ -1272,7 +1229,7 @@ function useFormWatch({
1272
1229
  };
1273
1230
  }, [callback]);
1274
1231
  }, []);
1275
- const getFieldSubscribers = (0, import_react22.useCallback)((path) => {
1232
+ const getFieldSubscribers = (0, import_react21.useCallback)((path) => {
1276
1233
  if (!subscribers.current[path]) {
1277
1234
  return [];
1278
1235
  }
@@ -1292,12 +1249,12 @@ function useFormWatch({
1292
1249
  };
1293
1250
  }
1294
1251
 
1295
- // ../../node_modules/@mantine/form/esm/paths/get-data-path.mjs
1252
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/paths/get-data-path.mjs
1296
1253
  function getDataPath(formName, fieldPath) {
1297
1254
  return formName ? `${formName}-${fieldPath.toString()}` : fieldPath.toString();
1298
1255
  }
1299
1256
 
1300
- // ../../node_modules/@mantine/form/esm/validate/validate-values.mjs
1257
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/validate/validate-values.mjs
1301
1258
  function getValidationResults(errors) {
1302
1259
  const filteredErrors = filterErrors(errors);
1303
1260
  return { hasErrors: Object.keys(filteredErrors).length > 0, errors: filteredErrors };
@@ -1335,7 +1292,7 @@ function validateValues(validate, values) {
1335
1292
  return getValidationResults(validateRulesRecord(validate, values));
1336
1293
  }
1337
1294
 
1338
- // ../../node_modules/@mantine/form/esm/validate/validate-field-value.mjs
1295
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/validate/validate-field-value.mjs
1339
1296
  function validateFieldValue(path, rules, values) {
1340
1297
  if (typeof path !== "string") {
1341
1298
  return { hasError: false, error: null };
@@ -1347,10 +1304,10 @@ function validateFieldValue(path, rules, values) {
1347
1304
  return { hasError: !!pathInError, error: pathInError ? results.errors[pathInError] : null };
1348
1305
  }
1349
1306
 
1350
- // ../../node_modules/@mantine/form/esm/form-index.mjs
1307
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/form-index.mjs
1351
1308
  var FORM_INDEX = "__MANTINE_FORM_INDEX__";
1352
1309
 
1353
- // ../../node_modules/@mantine/form/esm/validate/should-validate-on-change.mjs
1310
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/validate/should-validate-on-change.mjs
1354
1311
  function shouldValidateOnChange(path, validateInputOnChange) {
1355
1312
  if (!validateInputOnChange) {
1356
1313
  return false;
@@ -1364,7 +1321,7 @@ function shouldValidateOnChange(path, validateInputOnChange) {
1364
1321
  return false;
1365
1322
  }
1366
1323
 
1367
- // ../../node_modules/@mantine/form/esm/use-form.mjs
1324
+ // ../../node_modules/.pnpm/@mantine+form@7.10.1_react@18.3.1/node_modules/@mantine/form/esm/use-form.mjs
1368
1325
  function useForm({
1369
1326
  name,
1370
1327
  mode = "controlled",
@@ -1385,19 +1342,19 @@ function useForm({
1385
1342
  const $status = useFormStatus({ initialDirty, initialTouched, $values, mode });
1386
1343
  const $list = useFormList({ $values, $errors, $status });
1387
1344
  const $watch = useFormWatch({ $status });
1388
- const [formKey, setFormKey] = (0, import_react23.useState)(0);
1389
- const [fieldKeys, setFieldKeys] = (0, import_react23.useState)({});
1390
- const reset = (0, import_react23.useCallback)(() => {
1345
+ const [formKey, setFormKey] = (0, import_react22.useState)(0);
1346
+ const [fieldKeys, setFieldKeys] = (0, import_react22.useState)({});
1347
+ const reset = (0, import_react22.useCallback)(() => {
1391
1348
  $values.resetValues();
1392
1349
  $errors.clearErrors();
1393
1350
  $status.resetDirty();
1394
1351
  $status.resetTouched();
1395
1352
  mode === "uncontrolled" && setFormKey((key2) => key2 + 1);
1396
1353
  }, []);
1397
- const initialize = (0, import_react23.useCallback)((values) => {
1354
+ const initialize = (0, import_react22.useCallback)((values) => {
1398
1355
  $values.initialize(values, () => mode === "uncontrolled" && setFormKey((key2) => key2 + 1));
1399
1356
  }, []);
1400
- const setFieldValue = (0, import_react23.useCallback)(
1357
+ const setFieldValue = (0, import_react22.useCallback)(
1401
1358
  (path, value, options2) => {
1402
1359
  const shouldValidate = shouldValidateOnChange(path, validateInputOnChange);
1403
1360
  $status.clearFieldDirty(path);
@@ -1422,7 +1379,7 @@ function useForm({
1422
1379
  },
1423
1380
  [onValuesChange, rules]
1424
1381
  );
1425
- const setValues = (0, import_react23.useCallback)(
1382
+ const setValues = (0, import_react22.useCallback)(
1426
1383
  (values) => {
1427
1384
  const previousValues = $values.refValues.current;
1428
1385
  $values.setValues({ values, updateState: mode === "controlled" });
@@ -1438,12 +1395,12 @@ function useForm({
1438
1395
  },
1439
1396
  [onValuesChange, clearInputErrorOnChange]
1440
1397
  );
1441
- const validate = (0, import_react23.useCallback)(() => {
1398
+ const validate = (0, import_react22.useCallback)(() => {
1442
1399
  const results = validateValues(rules, $values.refValues.current);
1443
1400
  $errors.setErrors(results.errors);
1444
1401
  return results;
1445
1402
  }, [rules]);
1446
- const validateField = (0, import_react23.useCallback)(
1403
+ const validateField = (0, import_react22.useCallback)(
1447
1404
  (path) => {
1448
1405
  const results = validateFieldValue(path, rules, $values.refValues.current);
1449
1406
  results.hasError ? $errors.setFieldError(path, results.error) : $errors.clearFieldError(path);
@@ -1499,16 +1456,16 @@ function useForm({
1499
1456
  }
1500
1457
  };
1501
1458
  const getTransformedValues = (input) => transformValues(input || $values.refValues.current);
1502
- const onReset = (0, import_react23.useCallback)((event) => {
1459
+ const onReset = (0, import_react22.useCallback)((event) => {
1503
1460
  event.preventDefault();
1504
1461
  reset();
1505
1462
  }, []);
1506
- const isValid = (0, import_react23.useCallback)(
1463
+ const isValid = (0, import_react22.useCallback)(
1507
1464
  (path) => path ? !validateFieldValue(path, rules, $values.refValues.current).hasError : !validateValues(rules, $values.refValues.current).hasErrors,
1508
1465
  [rules]
1509
1466
  );
1510
1467
  const key = (path) => `${formKey}-${path}-${fieldKeys[path] || 0}`;
1511
- const getInputNode = (0, import_react23.useCallback)(
1468
+ const getInputNode = (0, import_react22.useCallback)(
1512
1469
  (path) => document.querySelector(`[data-path="${getDataPath(name, path)}"]`),
1513
1470
  []
1514
1471
  );
@@ -1553,18 +1510,17 @@ function useForm({
1553
1510
  }
1554
1511
 
1555
1512
  // src/nodes/modifiers/noise-curve-node.tsx
1556
- var import_react24 = require("react");
1557
- var import_modifier3 = require("libnoise-ts/module/modifier");
1558
- var import_util = require("libnoise-ts/util");
1513
+ var import_react23 = require("react");
1514
+ var import_libnoise_simplex_ts12 = require("libnoise-simplex-ts");
1559
1515
  var import_icons_react2 = require("@tabler/icons-react");
1560
- var import_hooks17 = require("@mantine/hooks");
1516
+ var import_hooks16 = require("@mantine/hooks");
1561
1517
  var import_abstract = require("@awesome-flow/core/abstract");
1562
- var import_jsx_runtime16 = require("react/jsx-runtime");
1518
+ var import_jsx_runtime15 = require("react/jsx-runtime");
1563
1519
  function NoiseCurveNode({ id, selected, data, type }) {
1564
- const incoming = (0, import_hooks16.useIncomingComputedData)(id);
1565
- const updateNodeData = (0, import_hooks16.useUpdateNodeData)();
1566
- const updateComputedData = (0, import_hooks16.useUpdateNodeComputedData)();
1567
- const [values, setValues] = (0, import_react24.useState)([]);
1520
+ const incoming = (0, import_hooks15.useIncomingComputedData)(id);
1521
+ const updateNodeData = (0, import_hooks15.useUpdateNodeData)();
1522
+ const updateComputedData = (0, import_hooks15.useUpdateNodeComputedData)();
1523
+ const [values, setValues] = (0, import_react23.useState)([]);
1568
1524
  const form = useForm({
1569
1525
  mode: "uncontrolled",
1570
1526
  initialValues: {
@@ -1583,7 +1539,7 @@ function NoiseCurveNode({ id, selected, data, type }) {
1583
1539
  }
1584
1540
  }
1585
1541
  },
1586
- onValuesChange: (0, import_react24.useCallback)((values2) => {
1542
+ onValuesChange: (0, import_react23.useCallback)((values2) => {
1587
1543
  if (form.isValid()) {
1588
1544
  const points = values2.points.map((v) => ({ input: v.input, output: v.output }));
1589
1545
  setValues(points);
@@ -1592,21 +1548,21 @@ function NoiseCurveNode({ id, selected, data, type }) {
1592
1548
  form.validate();
1593
1549
  }, [])
1594
1550
  });
1595
- (0, import_react24.useEffect)(() => {
1596
- const points = data.points?.length ? data.points.map((v) => ({ input: v.input, output: v.output, key: (0, import_hooks17.randomId)() })) : [1, 2, 3, 4].map(() => ({ input: 0, output: 0, key: (0, import_hooks17.randomId)() }));
1551
+ (0, import_react23.useEffect)(() => {
1552
+ const points = data.points?.length ? data.points.map((v) => ({ input: v.input, output: v.output, key: (0, import_hooks16.randomId)() })) : [1, 2, 3, 4].map(() => ({ input: 0, output: 0, key: (0, import_hooks16.randomId)() }));
1597
1553
  form.initialize({ points });
1598
1554
  }, []);
1599
- (0, import_react24.useEffect)(() => {
1555
+ (0, import_react23.useEffect)(() => {
1600
1556
  if (incoming?.length && values?.length >= 4) {
1601
- const module2 = new import_modifier3.Curve(
1557
+ const module2 = new import_libnoise_simplex_ts12.Curve(
1602
1558
  incoming[0].module,
1603
- values.map((p) => new import_util.Tuple(p.input, p.output))
1559
+ values.map((p) => new import_libnoise_simplex_ts12.Tuple(p.input, p.output))
1604
1560
  );
1605
1561
  updateComputedData(id, { module: module2 });
1606
1562
  }
1607
1563
  }, [values, incoming]);
1608
- const fields = form.getValues().points.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_core6.Group, { mt: "xs", children: [
1609
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1564
+ const fields = form.getValues().points.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_core6.Group, { mt: "xs", children: [
1565
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1610
1566
  import_core6.NumberInput,
1611
1567
  {
1612
1568
  size: "xs",
@@ -1617,7 +1573,7 @@ function NoiseCurveNode({ id, selected, data, type }) {
1617
1573
  },
1618
1574
  form.key(`points.${index}.input`)
1619
1575
  ),
1620
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1576
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1621
1577
  import_core6.NumberInput,
1622
1578
  {
1623
1579
  size: "xs",
@@ -1628,60 +1584,60 @@ function NoiseCurveNode({ id, selected, data, type }) {
1628
1584
  },
1629
1585
  form.key(`points.${index}.output`)
1630
1586
  ),
1631
- data.state === import_abstract.NodeState.edit && values.length > 4 && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1587
+ data.state === import_abstract.NodeState.edit && values.length > 4 && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1632
1588
  import_core6.ActionIcon,
1633
1589
  {
1634
1590
  color: "red",
1635
1591
  variant: "outline",
1636
1592
  size: "sm",
1637
1593
  onClick: () => form.removeListItem("points", index),
1638
- children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_icons_react2.IconX, { size: "1rem" })
1594
+ children: /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_icons_react2.IconX, { size: "1rem" })
1639
1595
  }
1640
1596
  )
1641
1597
  ] }, item.key));
1642
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_layout16.NodeContainer, { id, selected, type, data, children: [
1598
+ return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_layout15.NodeContainer, { id, selected, type, data, children: [
1643
1599
  fields,
1644
- data.state === import_abstract.NodeState.edit && /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_jsx_runtime16.Fragment, { children: [
1645
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_core6.Space, { h: 10 }),
1646
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1600
+ data.state === import_abstract.NodeState.edit && /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(import_jsx_runtime15.Fragment, { children: [
1601
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_core6.Space, { h: 10 }),
1602
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
1647
1603
  import_core6.Button,
1648
1604
  {
1649
1605
  variant: "outline",
1650
1606
  size: "xs",
1651
1607
  fullWidth: true,
1652
- onClick: () => form.insertListItem("points", { input: 0, output: 0, key: (0, import_hooks17.randomId)() }),
1608
+ onClick: () => form.insertListItem("points", { input: 0, output: 0, key: (0, import_hooks16.randomId)() }),
1653
1609
  children: "Add control point"
1654
1610
  }
1655
1611
  )
1656
1612
  ] }),
1657
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_layout16.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
1613
+ /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(import_layout15.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
1658
1614
  ] });
1659
1615
  }
1660
1616
  var noise_curve_node_default = NoiseCurveNode;
1661
1617
 
1662
1618
  // src/nodes/modifiers/noise-exponent-node.tsx
1663
- var import_layout17 = require("@awesome-flow/core/layout");
1664
- var import_react25 = require("react");
1619
+ var import_layout16 = require("@awesome-flow/core/layout");
1620
+ var import_react24 = require("react");
1665
1621
  var import_core7 = require("@mantine/core");
1666
- var import_hooks18 = require("@awesome-flow/core/hooks");
1667
- var import_modifier4 = require("libnoise-ts/module/modifier");
1668
- var import_jsx_runtime17 = require("react/jsx-runtime");
1622
+ var import_hooks17 = require("@awesome-flow/core/hooks");
1623
+ var import_libnoise_simplex_ts13 = require("libnoise-simplex-ts");
1624
+ var import_jsx_runtime16 = require("react/jsx-runtime");
1669
1625
  function NoiseExponentNode({ id, selected, data, type }) {
1670
- const [exponent, setExponent] = (0, import_react25.useState)(data.exponent);
1671
- const incoming = (0, import_hooks18.useIncomingComputedData)(id);
1672
- const updateNodeData = (0, import_hooks18.useUpdateNodeData)();
1673
- const updateComputedData = (0, import_hooks18.useUpdateNodeComputedData)();
1674
- (0, import_react25.useEffect)(() => {
1626
+ const [exponent, setExponent] = (0, import_react24.useState)(data.exponent);
1627
+ const incoming = (0, import_hooks17.useIncomingComputedData)(id);
1628
+ const updateNodeData = (0, import_hooks17.useUpdateNodeData)();
1629
+ const updateComputedData = (0, import_hooks17.useUpdateNodeComputedData)();
1630
+ (0, import_react24.useEffect)(() => {
1675
1631
  if (incoming?.length > 0) {
1676
- const module2 = new import_modifier4.Exponent(incoming[0].module, exponent);
1632
+ const module2 = new import_libnoise_simplex_ts13.Exponent(incoming[0].module, exponent);
1677
1633
  updateComputedData(id, { module: module2 });
1678
1634
  }
1679
1635
  updateNodeData(id, { exponent });
1680
1636
  }, [incoming, exponent]);
1681
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_layout17.NodeContainer, { id, selected, data, type, children: [
1682
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_core7.Stack, { children: /* @__PURE__ */ (0, import_jsx_runtime17.jsxs)(import_core7.Group, { children: [
1637
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_layout16.NodeContainer, { id, selected, data, type, children: [
1638
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_core7.Stack, { children: /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_core7.Group, { children: [
1683
1639
  "Exponent:",
1684
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
1640
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
1685
1641
  import_core7.NumberInput,
1686
1642
  {
1687
1643
  size: "xs",
@@ -1691,39 +1647,39 @@ function NoiseExponentNode({ id, selected, data, type }) {
1691
1647
  }
1692
1648
  )
1693
1649
  ] }) }),
1694
- /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_layout17.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
1650
+ /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_layout16.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
1695
1651
  ] });
1696
1652
  }
1697
1653
  var noise_exponent_node_default = NoiseExponentNode;
1698
1654
 
1699
1655
  // src/nodes/modifiers/noise-invert-node.tsx
1700
- var import_layout18 = require("@awesome-flow/core/layout");
1701
- var import_react26 = require("react");
1702
- var import_hooks19 = require("@awesome-flow/core/hooks");
1703
- var import_modifier5 = require("libnoise-ts/module/modifier");
1704
- var import_jsx_runtime18 = require("react/jsx-runtime");
1656
+ var import_layout17 = require("@awesome-flow/core/layout");
1657
+ var import_react25 = require("react");
1658
+ var import_hooks18 = require("@awesome-flow/core/hooks");
1659
+ var import_libnoise_simplex_ts14 = require("libnoise-simplex-ts");
1660
+ var import_jsx_runtime17 = require("react/jsx-runtime");
1705
1661
  function NoiseInvertNode({ id, selected, data, type }) {
1706
- const incoming = (0, import_hooks19.useIncomingComputedData)(id);
1707
- const updateComputedData = (0, import_hooks19.useUpdateNodeComputedData)();
1708
- (0, import_react26.useEffect)(() => {
1662
+ const incoming = (0, import_hooks18.useIncomingComputedData)(id);
1663
+ const updateComputedData = (0, import_hooks18.useUpdateNodeComputedData)();
1664
+ (0, import_react25.useEffect)(() => {
1709
1665
  if (incoming?.length > 0) {
1710
- const module2 = new import_modifier5.Invert(incoming[0].module);
1666
+ const module2 = new import_libnoise_simplex_ts14.Invert(incoming[0].module);
1711
1667
  updateComputedData(id, { module: module2 });
1712
1668
  }
1713
1669
  }, [incoming]);
1714
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_layout18.NodeContainer, { id, selected, data, type, children: /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_layout18.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" }) });
1670
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_layout17.NodeContainer, { id, selected, data, type, children: /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_layout17.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" }) });
1715
1671
  }
1716
1672
  var noise_invert_node_default = NoiseInvertNode;
1717
1673
 
1718
1674
  // src/nodes/modifiers/noise-normalize-node.tsx
1719
- var import_layout19 = require("@awesome-flow/core/layout");
1720
- var import_react27 = require("react");
1675
+ var import_layout18 = require("@awesome-flow/core/layout");
1676
+ var import_react26 = require("react");
1721
1677
  var import_core8 = require("@mantine/core");
1722
- var import_hooks20 = require("@awesome-flow/core/hooks");
1678
+ var import_hooks19 = require("@awesome-flow/core/hooks");
1723
1679
 
1724
1680
  // src/modules/normalize-noise-module.ts
1725
- var import_modifier6 = __toESM(require("libnoise-ts/module/modifier"), 1);
1726
- var NormalizeNoiseModule = class extends import_modifier6.default {
1681
+ var import_libnoise_simplex_ts15 = require("libnoise-simplex-ts");
1682
+ var NormalizeNoiseModule = class extends import_libnoise_simplex_ts15.ModifierModule {
1727
1683
  constructor(source, lowerBound, upperBound) {
1728
1684
  super(source);
1729
1685
  this.lowerBound = lowerBound;
@@ -1738,14 +1694,14 @@ function normalize(value, min, max) {
1738
1694
  }
1739
1695
 
1740
1696
  // src/nodes/modifiers/noise-normalize-node.tsx
1741
- var import_jsx_runtime19 = require("react/jsx-runtime");
1697
+ var import_jsx_runtime18 = require("react/jsx-runtime");
1742
1698
  function NoiseNormalizeNode({ id, selected, data, type }) {
1743
- const [intervalStart, setIntervalStart] = (0, import_react27.useState)(data.intervalStart);
1744
- const [intervalEnd, setIntervalEnd] = (0, import_react27.useState)(data.intervalEnd);
1745
- const incoming = (0, import_hooks20.useIncomingComputedData)(id);
1746
- const updateNodeData = (0, import_hooks20.useUpdateNodeData)();
1747
- const updateComputedData = (0, import_hooks20.useUpdateNodeComputedData)();
1748
- (0, import_react27.useEffect)(() => {
1699
+ const [intervalStart, setIntervalStart] = (0, import_react26.useState)(data.intervalStart);
1700
+ const [intervalEnd, setIntervalEnd] = (0, import_react26.useState)(data.intervalEnd);
1701
+ const incoming = (0, import_hooks19.useIncomingComputedData)(id);
1702
+ const updateNodeData = (0, import_hooks19.useUpdateNodeData)();
1703
+ const updateComputedData = (0, import_hooks19.useUpdateNodeComputedData)();
1704
+ (0, import_react26.useEffect)(() => {
1749
1705
  if (incoming?.length) {
1750
1706
  const source = incoming[0].module;
1751
1707
  const module2 = new NormalizeNoiseModule(source, intervalStart, intervalEnd);
@@ -1753,9 +1709,9 @@ function NoiseNormalizeNode({ id, selected, data, type }) {
1753
1709
  }
1754
1710
  updateNodeData(id, { intervalStart, intervalEnd });
1755
1711
  }, [incoming, intervalStart, intervalEnd]);
1756
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_layout19.NodeContainer, { id, selected, data, type, children: [
1757
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_core8.Stack, { children: /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_core8.Group, { children: [
1758
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1712
+ return /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_layout18.NodeContainer, { id, selected, data, type, children: [
1713
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_core8.Stack, { children: /* @__PURE__ */ (0, import_jsx_runtime18.jsxs)(import_core8.Group, { children: [
1714
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1759
1715
  import_core8.NumberInput,
1760
1716
  {
1761
1717
  size: "xs",
@@ -1764,7 +1720,7 @@ function NoiseNormalizeNode({ id, selected, data, type }) {
1764
1720
  onChange: (e) => setIntervalStart(Number(e))
1765
1721
  }
1766
1722
  ),
1767
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1723
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
1768
1724
  import_core8.NumberInput,
1769
1725
  {
1770
1726
  size: "xs",
@@ -1774,36 +1730,36 @@ function NoiseNormalizeNode({ id, selected, data, type }) {
1774
1730
  }
1775
1731
  )
1776
1732
  ] }) }),
1777
- /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_layout19.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
1733
+ /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(import_layout18.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
1778
1734
  ] });
1779
1735
  }
1780
1736
  var noise_normalize_node_default = NoiseNormalizeNode;
1781
1737
 
1782
1738
  // src/nodes/modifiers/noise-scale-bias-node.tsx
1783
- var import_layout20 = require("@awesome-flow/core/layout");
1784
- var import_react28 = require("react");
1739
+ var import_layout19 = require("@awesome-flow/core/layout");
1740
+ var import_react27 = require("react");
1785
1741
  var import_core9 = require("@mantine/core");
1786
- var import_hooks21 = require("@awesome-flow/core/hooks");
1787
- var import_modifier7 = require("libnoise-ts/module/modifier");
1788
- var import_jsx_runtime20 = require("react/jsx-runtime");
1742
+ var import_hooks20 = require("@awesome-flow/core/hooks");
1743
+ var import_libnoise_simplex_ts16 = require("libnoise-simplex-ts");
1744
+ var import_jsx_runtime19 = require("react/jsx-runtime");
1789
1745
  function NoiseScaleBiasNode({ id, selected, data, type }) {
1790
- const [scale, setScale] = (0, import_react28.useState)(data.scale);
1791
- const [bias, setBias] = (0, import_react28.useState)(data.bias);
1792
- const incoming = (0, import_hooks21.useIncomingComputedData)(id);
1793
- const updateNodeData = (0, import_hooks21.useUpdateNodeData)();
1794
- const updateComputedData = (0, import_hooks21.useUpdateNodeComputedData)();
1795
- (0, import_react28.useEffect)(() => {
1746
+ const [scale, setScale] = (0, import_react27.useState)(data.scale);
1747
+ const [bias, setBias] = (0, import_react27.useState)(data.bias);
1748
+ const incoming = (0, import_hooks20.useIncomingComputedData)(id);
1749
+ const updateNodeData = (0, import_hooks20.useUpdateNodeData)();
1750
+ const updateComputedData = (0, import_hooks20.useUpdateNodeComputedData)();
1751
+ (0, import_react27.useEffect)(() => {
1796
1752
  if (incoming?.length > 0) {
1797
- const module2 = new import_modifier7.ScaleBias(incoming[0].module, scale, bias);
1753
+ const module2 = new import_libnoise_simplex_ts16.ScaleBias(incoming[0].module, scale, bias);
1798
1754
  updateComputedData(id, { module: module2 });
1799
1755
  }
1800
1756
  updateNodeData(id, { scale, bias });
1801
1757
  }, [incoming, scale, bias]);
1802
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_layout20.NodeContainer, { id, selected, data, type, children: [
1803
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_core9.Stack, { children: [
1804
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_core9.Group, { children: [
1758
+ return /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_layout19.NodeContainer, { id, selected, data, type, children: [
1759
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_core9.Stack, { children: [
1760
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_core9.Group, { children: [
1805
1761
  "Scale:",
1806
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1762
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1807
1763
  import_core9.NumberInput,
1808
1764
  {
1809
1765
  size: "xs",
@@ -1814,9 +1770,9 @@ function NoiseScaleBiasNode({ id, selected, data, type }) {
1814
1770
  }
1815
1771
  )
1816
1772
  ] }),
1817
- /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_core9.Group, { children: [
1773
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsxs)(import_core9.Group, { children: [
1818
1774
  "Bias:",
1819
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1775
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
1820
1776
  import_core9.NumberInput,
1821
1777
  {
1822
1778
  size: "xs",
@@ -1828,26 +1784,26 @@ function NoiseScaleBiasNode({ id, selected, data, type }) {
1828
1784
  )
1829
1785
  ] })
1830
1786
  ] }),
1831
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_layout20.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
1787
+ /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(import_layout19.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
1832
1788
  ] });
1833
1789
  }
1834
1790
  var noise_scale_bias_node_default = NoiseScaleBiasNode;
1835
1791
 
1836
1792
  // src/nodes/modifiers/noise-terrace-node.tsx
1837
- var import_layout21 = require("@awesome-flow/core/layout");
1793
+ var import_layout20 = require("@awesome-flow/core/layout");
1838
1794
  var import_core10 = require("@mantine/core");
1839
- var import_hooks22 = require("@awesome-flow/core/hooks");
1840
- var import_react29 = require("react");
1841
- var import_modifier8 = require("libnoise-ts/module/modifier");
1795
+ var import_hooks21 = require("@awesome-flow/core/hooks");
1796
+ var import_react28 = require("react");
1797
+ var import_libnoise_simplex_ts17 = require("libnoise-simplex-ts");
1842
1798
  var import_icons_react3 = require("@tabler/icons-react");
1843
- var import_hooks23 = require("@mantine/hooks");
1799
+ var import_hooks22 = require("@mantine/hooks");
1844
1800
  var import_abstract2 = require("@awesome-flow/core/abstract");
1845
- var import_jsx_runtime21 = require("react/jsx-runtime");
1801
+ var import_jsx_runtime20 = require("react/jsx-runtime");
1846
1802
  function NoiseTerraceNode({ id, selected, data, type }) {
1847
- const incoming = (0, import_hooks22.useIncomingComputedData)(id);
1848
- const updateNodeData = (0, import_hooks22.useUpdateNodeData)();
1849
- const updateComputedData = (0, import_hooks22.useUpdateNodeComputedData)();
1850
- const [values, setValues] = (0, import_react29.useState)([]);
1803
+ const incoming = (0, import_hooks21.useIncomingComputedData)(id);
1804
+ const updateNodeData = (0, import_hooks21.useUpdateNodeData)();
1805
+ const updateComputedData = (0, import_hooks21.useUpdateNodeComputedData)();
1806
+ const [values, setValues] = (0, import_react28.useState)([]);
1851
1807
  const form = useForm({
1852
1808
  mode: "uncontrolled",
1853
1809
  initialValues: {
@@ -1855,7 +1811,7 @@ function NoiseTerraceNode({ id, selected, data, type }) {
1855
1811
  },
1856
1812
  validateInputOnChange: [`points.${FORM_INDEX}.input`],
1857
1813
  clearInputErrorOnChange: true,
1858
- onValuesChange: (0, import_react29.useCallback)((values2) => {
1814
+ onValuesChange: (0, import_react28.useCallback)((values2) => {
1859
1815
  if (form.isValid()) {
1860
1816
  const points = values2.points.map((v) => v.value);
1861
1817
  setValues(points);
@@ -1864,18 +1820,18 @@ function NoiseTerraceNode({ id, selected, data, type }) {
1864
1820
  form.validate();
1865
1821
  }, [])
1866
1822
  });
1867
- (0, import_react29.useEffect)(() => {
1868
- const points = data.points?.length ? data.points.map((v) => ({ value: v, key: (0, import_hooks23.randomId)() })) : [1, 2].map(() => ({ value: 0, key: (0, import_hooks23.randomId)() }));
1823
+ (0, import_react28.useEffect)(() => {
1824
+ const points = data.points?.length ? data.points.map((v) => ({ value: v, key: (0, import_hooks22.randomId)() })) : [1, 2].map(() => ({ value: 0, key: (0, import_hooks22.randomId)() }));
1869
1825
  form.initialize({ points });
1870
1826
  }, []);
1871
- (0, import_react29.useEffect)(() => {
1827
+ (0, import_react28.useEffect)(() => {
1872
1828
  if (incoming?.length && values?.length >= 2) {
1873
- const module2 = new import_modifier8.Terrace(incoming[0].module, values);
1829
+ const module2 = new import_libnoise_simplex_ts17.Terrace(incoming[0].module, values);
1874
1830
  updateComputedData(id, { module: module2 });
1875
1831
  }
1876
1832
  }, [values, incoming]);
1877
- const fields = form.getValues().points.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_core10.Group, { mt: "xs", children: [
1878
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1833
+ const fields = form.getValues().points.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_core10.Group, { mt: "xs", children: [
1834
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1879
1835
  import_core10.NumberInput,
1880
1836
  {
1881
1837
  size: "xs",
@@ -1885,53 +1841,53 @@ function NoiseTerraceNode({ id, selected, data, type }) {
1885
1841
  },
1886
1842
  form.key(`points.${index}.value`)
1887
1843
  ),
1888
- data.state === import_abstract2.NodeState.edit && values.length > 2 && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1844
+ data.state === import_abstract2.NodeState.edit && values.length > 2 && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1889
1845
  import_core10.ActionIcon,
1890
1846
  {
1891
1847
  color: "red",
1892
1848
  variant: "outline",
1893
1849
  size: "sm",
1894
1850
  onClick: () => form.removeListItem("points", index),
1895
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_icons_react3.IconX, { size: "1rem" })
1851
+ children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_icons_react3.IconX, { size: "1rem" })
1896
1852
  }
1897
1853
  )
1898
1854
  ] }, item.key));
1899
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_layout21.NodeContainer, { id, selected, type, data, children: [
1855
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_layout20.NodeContainer, { id, selected, type, data, children: [
1900
1856
  fields,
1901
- data.state === import_abstract2.NodeState.edit && /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
1902
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_core10.Space, { h: 10 }),
1903
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
1857
+ data.state === import_abstract2.NodeState.edit && /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_jsx_runtime20.Fragment, { children: [
1858
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_core10.Space, { h: 10 }),
1859
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1904
1860
  import_core10.Button,
1905
1861
  {
1906
1862
  variant: "outline",
1907
1863
  size: "xs",
1908
1864
  fullWidth: true,
1909
- onClick: () => form.insertListItem("points", { value: 0, key: (0, import_hooks23.randomId)() }),
1865
+ onClick: () => form.insertListItem("points", { value: 0, key: (0, import_hooks22.randomId)() }),
1910
1866
  children: "Add control point"
1911
1867
  }
1912
1868
  )
1913
1869
  ] }),
1914
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_layout21.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
1870
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_layout20.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
1915
1871
  ] });
1916
1872
  }
1917
1873
  var noise_terrace_node_default = NoiseTerraceNode;
1918
1874
 
1919
1875
  // src/nodes/output/noise-logger-node.tsx
1920
- var import_layout22 = require("@awesome-flow/core/layout");
1921
- var import_react30 = require("react");
1876
+ var import_layout21 = require("@awesome-flow/core/layout");
1877
+ var import_react29 = require("react");
1922
1878
  var import_core11 = require("@mantine/core");
1923
- var import_hooks24 = require("@awesome-flow/core/hooks");
1924
- var import_jsx_runtime22 = require("react/jsx-runtime");
1879
+ var import_hooks23 = require("@awesome-flow/core/hooks");
1880
+ var import_jsx_runtime21 = require("react/jsx-runtime");
1925
1881
  function NoiseLoggerNode({ id, selected, data, type }) {
1926
- const incoming = (0, import_hooks24.useIncomingComputedData)(id);
1927
- const noise = (0, import_react30.useMemo)(() => incoming?.map((p) => p.noise).flat(), [incoming]);
1928
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_layout22.NodeContainer, { id, selected, data, type, children: [
1929
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_core11.Text, { children: [
1882
+ const incoming = (0, import_hooks23.useIncomingComputedData)(id);
1883
+ const noise = (0, import_react29.useMemo)(() => incoming?.map((p) => p.noise).flat(), [incoming]);
1884
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_layout21.NodeContainer, { id, selected, data, type, children: [
1885
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_core11.Text, { children: [
1930
1886
  "Size: ",
1931
1887
  noise?.length || 0
1932
1888
  ] }),
1933
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_core11.Divider, { h: 5 }),
1934
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_core11.Stack, { children: noise?.map((v, i) => /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_core11.Text, { children: [
1889
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_core11.Divider, { h: 5 }),
1890
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_core11.Stack, { children: noise?.map((v, i) => /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_core11.Text, { children: [
1935
1891
  v.position?.x,
1936
1892
  ":",
1937
1893
  v.position?.y,
@@ -1940,31 +1896,31 @@ function NoiseLoggerNode({ id, selected, data, type }) {
1940
1896
  ": ",
1941
1897
  v.value
1942
1898
  ] }, i)) }),
1943
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_layout22.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
1899
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_layout21.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
1944
1900
  ] });
1945
1901
  }
1946
1902
  var noise_logger_node_default = NoiseLoggerNode;
1947
1903
 
1948
1904
  // src/nodes/output/noise-output-node.tsx
1949
- var import_layout32 = require("@awesome-flow/core/layout");
1950
- var import_react40 = require("react");
1951
- var import_hooks34 = require("@awesome-flow/core/hooks");
1905
+ var import_layout31 = require("@awesome-flow/core/layout");
1906
+ var import_react39 = require("react");
1907
+ var import_hooks33 = require("@awesome-flow/core/hooks");
1952
1908
  var import_components11 = require("@awesome-flow/core/components");
1953
1909
  var import_core18 = require("@mantine/core");
1954
1910
 
1955
1911
  // src/nodes/output/noise-raw-texture-node.tsx
1956
- var import_layout23 = require("@awesome-flow/core/layout");
1957
- var import_react31 = require("react");
1958
- var import_hooks25 = require("@awesome-flow/core/hooks");
1912
+ var import_layout22 = require("@awesome-flow/core/layout");
1913
+ var import_react30 = require("react");
1914
+ var import_hooks24 = require("@awesome-flow/core/hooks");
1959
1915
  var import_core12 = require("@mantine/core");
1960
- var import_jsx_runtime23 = require("react/jsx-runtime");
1916
+ var import_jsx_runtime22 = require("react/jsx-runtime");
1961
1917
  function NoiseRawTextureNode({ id, selected, data, type }) {
1962
- const updateComputedData = (0, import_hooks25.useUpdateNodeComputedData)();
1963
- const [dataLength, setDataLength] = (0, import_react31.useState)(0);
1964
- const [resolution, setResolution] = (0, import_react31.useState)(0);
1965
- const incoming = (0, import_hooks25.useIncomingComputedData)(id);
1966
- const noise = (0, import_react31.useMemo)(() => incoming?.map((p) => p.noise).flat(), [incoming]);
1967
- (0, import_react31.useEffect)(() => {
1918
+ const updateComputedData = (0, import_hooks24.useUpdateNodeComputedData)();
1919
+ const [dataLength, setDataLength] = (0, import_react30.useState)(0);
1920
+ const [resolution, setResolution] = (0, import_react30.useState)(0);
1921
+ const incoming = (0, import_hooks24.useIncomingComputedData)(id);
1922
+ const noise = (0, import_react30.useMemo)(() => incoming?.map((p) => p.noise).flat(), [incoming]);
1923
+ (0, import_react30.useEffect)(() => {
1968
1924
  if (noise?.length) {
1969
1925
  const size = Math.ceil(Math.sqrt(noise.length));
1970
1926
  const colors = noise.map((n) => [n.value * 255, n.value * 255, n.value * 255, 255]).flat();
@@ -1972,22 +1928,26 @@ function NoiseRawTextureNode({ id, selected, data, type }) {
1972
1928
  dataArray.set(colors);
1973
1929
  setResolution(size);
1974
1930
  setDataLength(dataArray.length);
1975
- updateComputedData(id, { textureData: dataArray, textureResolution: size });
1931
+ updateComputedData(id, {
1932
+ textureData: dataArray,
1933
+ textureResolutionX: size,
1934
+ textureResolutionY: size
1935
+ });
1976
1936
  }
1977
1937
  }, [noise]);
1978
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_layout23.NodeContainer, { id, selected, data, type, children: [
1979
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_core12.Stack, { children: [
1980
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_core12.Group, { children: [
1938
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_layout22.NodeContainer, { id, selected, data, type, children: [
1939
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_core12.Stack, { children: [
1940
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_core12.Group, { children: [
1981
1941
  "Resolution: ",
1982
1942
  resolution,
1983
1943
  "x",
1984
1944
  resolution
1985
1945
  ] }),
1986
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_core12.Group, { children: [
1946
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_core12.Group, { children: [
1987
1947
  "Input Length: ",
1988
1948
  noise?.length || 0
1989
1949
  ] }),
1990
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_core12.Group, { children: [
1950
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(import_core12.Group, { children: [
1991
1951
  "Output Length (",
1992
1952
  resolution,
1993
1953
  "*",
@@ -1996,55 +1956,55 @@ function NoiseRawTextureNode({ id, selected, data, type }) {
1996
1956
  dataLength
1997
1957
  ] })
1998
1958
  ] }),
1999
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_layout23.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
1959
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(import_layout22.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
2000
1960
  ] });
2001
1961
  }
2002
1962
  var noise_raw_texture_node_default = NoiseRawTextureNode;
2003
1963
 
2004
1964
  // src/nodes/output/positions-logger-node.tsx
2005
- var import_layout24 = require("@awesome-flow/core/layout");
2006
- var import_react32 = require("react");
1965
+ var import_layout23 = require("@awesome-flow/core/layout");
1966
+ var import_react31 = require("react");
2007
1967
  var import_core13 = require("@mantine/core");
2008
- var import_hooks26 = require("@awesome-flow/core/hooks");
2009
- var import_jsx_runtime24 = require("react/jsx-runtime");
1968
+ var import_hooks25 = require("@awesome-flow/core/hooks");
1969
+ var import_jsx_runtime23 = require("react/jsx-runtime");
2010
1970
  function PositionsLoggerNode({ id, selected, data, type }) {
2011
- const incoming = (0, import_hooks26.useIncomingComputedData)(id);
2012
- const positions = (0, import_react32.useMemo)(() => {
1971
+ const incoming = (0, import_hooks25.useIncomingComputedData)(id);
1972
+ const positions = (0, import_react31.useMemo)(() => {
2013
1973
  return incoming?.map((p) => p.positions).flat();
2014
1974
  }, [incoming]);
2015
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_layout24.NodeContainer, { id, selected, data, type, children: [
2016
- /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_core13.Text, { children: [
1975
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_layout23.NodeContainer, { id, selected, data, type, children: [
1976
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_core13.Text, { children: [
2017
1977
  "Size: ",
2018
1978
  positions?.length || 0
2019
1979
  ] }),
2020
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_core13.Divider, { h: 5 }),
2021
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_core13.Stack, { children: positions?.map((v, i) => /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_core13.Text, { children: [
1980
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_core13.Divider, { h: 5 }),
1981
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_core13.Stack, { children: positions?.map((v, i) => /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_core13.Text, { children: [
2022
1982
  v.x,
2023
1983
  ":",
2024
1984
  v.y,
2025
1985
  ":",
2026
1986
  v.z
2027
1987
  ] }, i)) }),
2028
- /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_layout24.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
1988
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_layout23.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
2029
1989
  ] });
2030
1990
  }
2031
1991
  var positions_logger_node_default = PositionsLoggerNode;
2032
1992
 
2033
1993
  // src/nodes/selectors/noise-blend-node.tsx
2034
- var import_layout25 = require("@awesome-flow/core/layout");
2035
- var import_react33 = require("react");
2036
- var import_hooks27 = require("@awesome-flow/core/hooks");
2037
- var import_selector = require("libnoise-ts/module/selector");
1994
+ var import_layout24 = require("@awesome-flow/core/layout");
1995
+ var import_react32 = require("react");
1996
+ var import_hooks26 = require("@awesome-flow/core/hooks");
1997
+ var import_libnoise_simplex_ts18 = require("libnoise-simplex-ts");
2038
1998
  var import_components7 = require("@awesome-flow/core/components");
2039
- var import_jsx_runtime25 = require("react/jsx-runtime");
1999
+ var import_jsx_runtime24 = require("react/jsx-runtime");
2040
2000
  function NoiseBlendNode({ id, selected, data, type }) {
2041
- const updateComputedData = (0, import_hooks27.useUpdateNodeComputedData)();
2042
- const onDataUpdated = (0, import_react33.useCallback)(
2001
+ const updateComputedData = (0, import_hooks26.useUpdateNodeComputedData)();
2002
+ const onDataUpdated = (0, import_react32.useCallback)(
2043
2003
  (incomingData) => {
2044
2004
  const incomingSources = incomingData["source" /* source */];
2045
2005
  const incomingControl = incomingData["control" /* control */];
2046
2006
  if (incomingSources?.length >= 2 && incomingControl?.length) {
2047
- const module2 = new import_selector.Blend(
2007
+ const module2 = new import_libnoise_simplex_ts18.Blend(
2048
2008
  incomingSources[0].module,
2049
2009
  incomingSources[1].module,
2050
2010
  incomingControl[0].module
@@ -2054,8 +2014,8 @@ function NoiseBlendNode({ id, selected, data, type }) {
2054
2014
  },
2055
2015
  []
2056
2016
  );
2057
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_layout25.NodeContainer, { id, selected, data, type, children: [
2058
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2017
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(import_layout24.NodeContainer, { id, selected, data, type, children: [
2018
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2059
2019
  import_components7.HandlesIncomingDataStatus,
2060
2020
  {
2061
2021
  nodeId: id,
@@ -2066,34 +2026,34 @@ function NoiseBlendNode({ id, selected, data, type }) {
2066
2026
  resetComputedData: true
2067
2027
  }
2068
2028
  ),
2069
- /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_layout25.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
2029
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(import_layout24.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
2070
2030
  ] });
2071
2031
  }
2072
2032
  var noise_blend_node_default = NoiseBlendNode;
2073
2033
 
2074
2034
  // src/nodes/selectors/noise-select-node.tsx
2075
- var import_layout26 = require("@awesome-flow/core/layout");
2076
- var import_react34 = require("react");
2077
- var import_hooks28 = require("@awesome-flow/core/hooks");
2078
- var import_selector2 = require("libnoise-ts/module/selector");
2035
+ var import_layout25 = require("@awesome-flow/core/layout");
2036
+ var import_react33 = require("react");
2037
+ var import_hooks27 = require("@awesome-flow/core/hooks");
2038
+ var import_libnoise_simplex_ts19 = require("libnoise-simplex-ts");
2079
2039
  var import_core14 = require("@mantine/core");
2080
2040
  var import_components8 = require("@awesome-flow/core/components");
2081
- var import_jsx_runtime26 = require("react/jsx-runtime");
2041
+ var import_jsx_runtime25 = require("react/jsx-runtime");
2082
2042
  function NoiseSelectNode({ id, selected, data, type }) {
2083
- const [edgeFalloff, setEdgeFalloff] = (0, import_react34.useState)(data.edgeFalloff);
2084
- const [lowerBound, setLowerBound] = (0, import_react34.useState)(data.lowerBound);
2085
- const [upperBound, setUpperBound] = (0, import_react34.useState)(data.upperBound);
2086
- const updateNodeData = (0, import_hooks28.useUpdateNodeData)();
2087
- const updateComputedData = (0, import_hooks28.useUpdateNodeComputedData)();
2088
- (0, import_react34.useEffect)(() => {
2043
+ const [edgeFalloff, setEdgeFalloff] = (0, import_react33.useState)(data.edgeFalloff);
2044
+ const [lowerBound, setLowerBound] = (0, import_react33.useState)(data.lowerBound);
2045
+ const [upperBound, setUpperBound] = (0, import_react33.useState)(data.upperBound);
2046
+ const updateNodeData = (0, import_hooks27.useUpdateNodeData)();
2047
+ const updateComputedData = (0, import_hooks27.useUpdateNodeComputedData)();
2048
+ (0, import_react33.useEffect)(() => {
2089
2049
  updateNodeData(id, { edgeFalloff, lowerBound, upperBound });
2090
2050
  }, [edgeFalloff, lowerBound, upperBound]);
2091
- const onDataUpdated = (0, import_react34.useCallback)(
2051
+ const onDataUpdated = (0, import_react33.useCallback)(
2092
2052
  (incomingData) => {
2093
2053
  const incomingSources = incomingData["source" /* source */];
2094
2054
  const incomingControl = incomingData["control" /* control */];
2095
2055
  if (incomingSources?.length >= 2 && incomingControl?.length) {
2096
- const module2 = new import_selector2.Select(
2056
+ const module2 = new import_libnoise_simplex_ts19.Select(
2097
2057
  incomingSources[0].module,
2098
2058
  incomingSources[1].module,
2099
2059
  incomingControl[0].module,
@@ -2106,11 +2066,11 @@ function NoiseSelectNode({ id, selected, data, type }) {
2106
2066
  },
2107
2067
  []
2108
2068
  );
2109
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_layout26.NodeContainer, { id, selected, data, type, children: [
2110
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_core14.Stack, { children: [
2111
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_core14.Group, { children: [
2069
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_layout25.NodeContainer, { id, selected, data, type, children: [
2070
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_core14.Stack, { children: [
2071
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_core14.Group, { children: [
2112
2072
  "Edge Falloff:",
2113
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2073
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2114
2074
  import_core14.NumberInput,
2115
2075
  {
2116
2076
  size: "xs",
@@ -2121,9 +2081,9 @@ function NoiseSelectNode({ id, selected, data, type }) {
2121
2081
  }
2122
2082
  )
2123
2083
  ] }),
2124
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_core14.Group, { children: [
2084
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_core14.Group, { children: [
2125
2085
  "Lower Bound:",
2126
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2086
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2127
2087
  import_core14.NumberInput,
2128
2088
  {
2129
2089
  size: "xs",
@@ -2134,9 +2094,9 @@ function NoiseSelectNode({ id, selected, data, type }) {
2134
2094
  }
2135
2095
  )
2136
2096
  ] }),
2137
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_core14.Group, { children: [
2097
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(import_core14.Group, { children: [
2138
2098
  "Upper Bound:",
2139
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2099
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2140
2100
  import_core14.NumberInput,
2141
2101
  {
2142
2102
  size: "xs",
@@ -2147,7 +2107,7 @@ function NoiseSelectNode({ id, selected, data, type }) {
2147
2107
  }
2148
2108
  )
2149
2109
  ] }),
2150
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2110
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
2151
2111
  import_components8.HandlesIncomingDataStatus,
2152
2112
  {
2153
2113
  nodeId: id,
@@ -2159,28 +2119,28 @@ function NoiseSelectNode({ id, selected, data, type }) {
2159
2119
  }
2160
2120
  )
2161
2121
  ] }),
2162
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_layout26.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
2122
+ /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_layout25.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
2163
2123
  ] });
2164
2124
  }
2165
2125
  var noise_select_node_default = NoiseSelectNode;
2166
2126
 
2167
2127
  // src/nodes/transformers/noise-displace-node.tsx
2168
- var import_layout27 = require("@awesome-flow/core/layout");
2169
- var import_react35 = require("react");
2170
- var import_hooks29 = require("@awesome-flow/core/hooks");
2171
- var import_transformer = require("libnoise-ts/module/transformer");
2128
+ var import_layout26 = require("@awesome-flow/core/layout");
2129
+ var import_react34 = require("react");
2130
+ var import_hooks28 = require("@awesome-flow/core/hooks");
2131
+ var import_libnoise_simplex_ts20 = require("libnoise-simplex-ts");
2172
2132
  var import_components9 = require("@awesome-flow/core/components");
2173
- var import_jsx_runtime27 = require("react/jsx-runtime");
2133
+ var import_jsx_runtime26 = require("react/jsx-runtime");
2174
2134
  function NoiseDisplaceNode({ id, selected, data, type }) {
2175
- const updateComputedData = (0, import_hooks29.useUpdateNodeComputedData)();
2176
- const onDataUpdated = (0, import_react35.useCallback)(
2135
+ const updateComputedData = (0, import_hooks28.useUpdateNodeComputedData)();
2136
+ const onDataUpdated = (0, import_react34.useCallback)(
2177
2137
  (handleData) => {
2178
2138
  const sourceModule = handleData["source" /* sourceModule */];
2179
2139
  const xModule = handleData["x-module" /* xModule */];
2180
2140
  const yModule = handleData["y-module" /* yModule */];
2181
2141
  const zModule = handleData["z-module" /* zModule */];
2182
2142
  if (sourceModule && xModule && yModule && zModule) {
2183
- const module2 = new import_transformer.Displace(
2143
+ const module2 = new import_libnoise_simplex_ts20.Displace(
2184
2144
  sourceModule[0].module,
2185
2145
  xModule[0].module,
2186
2146
  yModule[0].module,
@@ -2191,8 +2151,8 @@ function NoiseDisplaceNode({ id, selected, data, type }) {
2191
2151
  },
2192
2152
  []
2193
2153
  );
2194
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_layout27.NodeContainer, { id, selected, data, type, children: [
2195
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2154
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(import_layout26.NodeContainer, { id, selected, data, type, children: [
2155
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
2196
2156
  import_components9.HandlesIncomingDataStatus,
2197
2157
  {
2198
2158
  nodeId: id,
@@ -2203,42 +2163,42 @@ function NoiseDisplaceNode({ id, selected, data, type }) {
2203
2163
  resetComputedData: true
2204
2164
  }
2205
2165
  ),
2206
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_layout27.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
2166
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_layout26.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
2207
2167
  ] });
2208
2168
  }
2209
2169
  var noise_displace_node_default = NoiseDisplaceNode;
2210
2170
 
2211
2171
  // src/nodes/transformers/noise-rotate-point-node.tsx
2212
- var import_layout28 = require("@awesome-flow/core/layout");
2213
- var import_react36 = require("react");
2214
- var import_hooks30 = require("@awesome-flow/core/hooks");
2172
+ var import_layout27 = require("@awesome-flow/core/layout");
2173
+ var import_react35 = require("react");
2174
+ var import_hooks29 = require("@awesome-flow/core/hooks");
2215
2175
  var import_core15 = require("@mantine/core");
2216
- var import_transformer2 = require("libnoise-ts/module/transformer");
2217
- var import_jsx_runtime28 = require("react/jsx-runtime");
2176
+ var import_libnoise_simplex_ts21 = require("libnoise-simplex-ts");
2177
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2218
2178
  function NoiseRotatePointNode({
2219
2179
  id,
2220
2180
  selected,
2221
2181
  data,
2222
2182
  type
2223
2183
  }) {
2224
- const [xAngle, setXAngle] = (0, import_react36.useState)(data.xAngle);
2225
- const [yAngle, setYAngle] = (0, import_react36.useState)(data.yAngle);
2226
- const [zAngle, setZAngle] = (0, import_react36.useState)(data.zAngle);
2227
- const incoming = (0, import_hooks30.useIncomingComputedData)(id);
2228
- const updateNodeData = (0, import_hooks30.useUpdateNodeData)();
2229
- const updateComputedData = (0, import_hooks30.useUpdateNodeComputedData)();
2230
- (0, import_react36.useEffect)(() => {
2184
+ const [xAngle, setXAngle] = (0, import_react35.useState)(data.xAngle);
2185
+ const [yAngle, setYAngle] = (0, import_react35.useState)(data.yAngle);
2186
+ const [zAngle, setZAngle] = (0, import_react35.useState)(data.zAngle);
2187
+ const incoming = (0, import_hooks29.useIncomingComputedData)(id);
2188
+ const updateNodeData = (0, import_hooks29.useUpdateNodeData)();
2189
+ const updateComputedData = (0, import_hooks29.useUpdateNodeComputedData)();
2190
+ (0, import_react35.useEffect)(() => {
2231
2191
  if (incoming?.length) {
2232
- const module2 = new import_transformer2.RotatePoint(incoming[0].module, xAngle, yAngle, zAngle);
2192
+ const module2 = new import_libnoise_simplex_ts21.RotatePoint(incoming[0].module, xAngle, yAngle, zAngle);
2233
2193
  updateComputedData(id, { module: module2 });
2234
2194
  }
2235
2195
  updateNodeData(id, { xAngle, yAngle, zAngle });
2236
2196
  }, [id, updateComputedData, updateNodeData, incoming, xAngle, yAngle, zAngle]);
2237
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_layout28.NodeContainer, { id, selected, data, type, children: [
2238
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_core15.Stack, { children: [
2239
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_core15.Group, { children: [
2197
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_layout27.NodeContainer, { id, selected, data, type, children: [
2198
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_core15.Stack, { children: [
2199
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_core15.Group, { children: [
2240
2200
  "X Angle:",
2241
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2201
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2242
2202
  import_core15.NumberInput,
2243
2203
  {
2244
2204
  size: "xs",
@@ -2249,9 +2209,9 @@ function NoiseRotatePointNode({
2249
2209
  }
2250
2210
  )
2251
2211
  ] }),
2252
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_core15.Group, { children: [
2212
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_core15.Group, { children: [
2253
2213
  "Y Angle:",
2254
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2214
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2255
2215
  import_core15.NumberInput,
2256
2216
  {
2257
2217
  size: "xs",
@@ -2262,9 +2222,9 @@ function NoiseRotatePointNode({
2262
2222
  }
2263
2223
  )
2264
2224
  ] }),
2265
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_core15.Group, { children: [
2225
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_core15.Group, { children: [
2266
2226
  "Z Angle:",
2267
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2227
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2268
2228
  import_core15.NumberInput,
2269
2229
  {
2270
2230
  size: "xs",
@@ -2276,42 +2236,42 @@ function NoiseRotatePointNode({
2276
2236
  )
2277
2237
  ] })
2278
2238
  ] }),
2279
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_layout28.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
2239
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_layout27.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
2280
2240
  ] });
2281
2241
  }
2282
2242
  var noise_rotate_point_node_default = NoiseRotatePointNode;
2283
2243
 
2284
2244
  // src/nodes/transformers/noise-scale-point-node.tsx
2285
- var import_layout29 = require("@awesome-flow/core/layout");
2286
- var import_react37 = require("react");
2287
- var import_hooks31 = require("@awesome-flow/core/hooks");
2245
+ var import_layout28 = require("@awesome-flow/core/layout");
2246
+ var import_react36 = require("react");
2247
+ var import_hooks30 = require("@awesome-flow/core/hooks");
2288
2248
  var import_core16 = require("@mantine/core");
2289
- var import_transformer3 = require("libnoise-ts/module/transformer");
2290
- var import_jsx_runtime29 = require("react/jsx-runtime");
2249
+ var import_libnoise_simplex_ts22 = require("libnoise-simplex-ts");
2250
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2291
2251
  function NoiseScalePointNode({
2292
2252
  id,
2293
2253
  selected,
2294
2254
  data,
2295
2255
  type
2296
2256
  }) {
2297
- const [xScale, setXScale] = (0, import_react37.useState)(data.xScale);
2298
- const [yScale, setYScale] = (0, import_react37.useState)(data.yScale);
2299
- const [zScale, setZScale] = (0, import_react37.useState)(data.zScale);
2300
- const incoming = (0, import_hooks31.useIncomingComputedData)(id);
2301
- const updateNodeData = (0, import_hooks31.useUpdateNodeData)();
2302
- const updateComputedData = (0, import_hooks31.useUpdateNodeComputedData)();
2303
- (0, import_react37.useEffect)(() => {
2257
+ const [xScale, setXScale] = (0, import_react36.useState)(data.xScale);
2258
+ const [yScale, setYScale] = (0, import_react36.useState)(data.yScale);
2259
+ const [zScale, setZScale] = (0, import_react36.useState)(data.zScale);
2260
+ const incoming = (0, import_hooks30.useIncomingComputedData)(id);
2261
+ const updateNodeData = (0, import_hooks30.useUpdateNodeData)();
2262
+ const updateComputedData = (0, import_hooks30.useUpdateNodeComputedData)();
2263
+ (0, import_react36.useEffect)(() => {
2304
2264
  if (incoming?.length) {
2305
- const module2 = new import_transformer3.ScalePoint(incoming[0].module, xScale, yScale, zScale);
2265
+ const module2 = new import_libnoise_simplex_ts22.ScalePoint(incoming[0].module, xScale, yScale, zScale);
2306
2266
  updateComputedData(id, { module: module2 });
2307
2267
  }
2308
2268
  updateNodeData(id, { xScale, yScale, zScale });
2309
2269
  }, [id, incoming, updateComputedData, updateNodeData, xScale, yScale, zScale]);
2310
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_layout29.NodeContainer, { id, selected, data, type, children: [
2311
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_core16.Stack, { children: [
2312
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_core16.Group, { children: [
2270
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_layout28.NodeContainer, { id, selected, data, type, children: [
2271
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_core16.Stack, { children: [
2272
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_core16.Group, { children: [
2313
2273
  "X Scale:",
2314
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2274
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2315
2275
  import_core16.NumberInput,
2316
2276
  {
2317
2277
  size: "xs",
@@ -2322,9 +2282,9 @@ function NoiseScalePointNode({
2322
2282
  }
2323
2283
  )
2324
2284
  ] }),
2325
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_core16.Group, { children: [
2285
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_core16.Group, { children: [
2326
2286
  "Y Scale:",
2327
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2287
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2328
2288
  import_core16.NumberInput,
2329
2289
  {
2330
2290
  size: "xs",
@@ -2335,9 +2295,9 @@ function NoiseScalePointNode({
2335
2295
  }
2336
2296
  )
2337
2297
  ] }),
2338
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_core16.Group, { children: [
2298
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(import_core16.Group, { children: [
2339
2299
  "Z Scale:",
2340
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2300
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2341
2301
  import_core16.NumberInput,
2342
2302
  {
2343
2303
  size: "xs",
@@ -2349,42 +2309,42 @@ function NoiseScalePointNode({
2349
2309
  )
2350
2310
  ] })
2351
2311
  ] }),
2352
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_layout29.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
2312
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(import_layout28.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
2353
2313
  ] });
2354
2314
  }
2355
2315
  var noise_scale_point_node_default = NoiseScalePointNode;
2356
2316
 
2357
2317
  // src/nodes/transformers/noise-translate-point-node.tsx
2358
- var import_layout30 = require("@awesome-flow/core/layout");
2359
- var import_react38 = require("react");
2360
- var import_hooks32 = require("@awesome-flow/core/hooks");
2318
+ var import_layout29 = require("@awesome-flow/core/layout");
2319
+ var import_react37 = require("react");
2320
+ var import_hooks31 = require("@awesome-flow/core/hooks");
2361
2321
  var import_core17 = require("@mantine/core");
2362
- var import_transformer4 = require("libnoise-ts/module/transformer");
2363
- var import_jsx_runtime30 = require("react/jsx-runtime");
2322
+ var import_libnoise_simplex_ts23 = require("libnoise-simplex-ts");
2323
+ var import_jsx_runtime29 = require("react/jsx-runtime");
2364
2324
  function NoiseTranslatePointNode({
2365
2325
  id,
2366
2326
  selected,
2367
2327
  data,
2368
2328
  type
2369
2329
  }) {
2370
- const [translateX, setTranslateX] = (0, import_react38.useState)(data.translateX);
2371
- const [translateY, setTranslateY] = (0, import_react38.useState)(data.translateY);
2372
- const [translateZ, setTranslateZ] = (0, import_react38.useState)(data.translateZ);
2373
- const incoming = (0, import_hooks32.useIncomingComputedData)(id);
2374
- const updateNodeData = (0, import_hooks32.useUpdateNodeData)();
2375
- const updateComputedData = (0, import_hooks32.useUpdateNodeComputedData)();
2376
- (0, import_react38.useEffect)(() => {
2330
+ const [translateX, setTranslateX] = (0, import_react37.useState)(data.translateX);
2331
+ const [translateY, setTranslateY] = (0, import_react37.useState)(data.translateY);
2332
+ const [translateZ, setTranslateZ] = (0, import_react37.useState)(data.translateZ);
2333
+ const incoming = (0, import_hooks31.useIncomingComputedData)(id);
2334
+ const updateNodeData = (0, import_hooks31.useUpdateNodeData)();
2335
+ const updateComputedData = (0, import_hooks31.useUpdateNodeComputedData)();
2336
+ (0, import_react37.useEffect)(() => {
2377
2337
  if (incoming?.length) {
2378
- const module2 = new import_transformer4.TranslatePoint(incoming[0].module, translateX, translateY, translateZ);
2338
+ const module2 = new import_libnoise_simplex_ts23.TranslatePoint(incoming[0].module, translateX, translateY, translateZ);
2379
2339
  updateComputedData(id, { module: module2 });
2380
2340
  }
2381
2341
  updateNodeData(id, { translateX, translateY, translateZ });
2382
2342
  }, [id, incoming, translateX, translateY, translateZ, updateComputedData, updateNodeData]);
2383
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_layout30.NodeContainer, { id, selected, data, type, children: [
2384
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_core17.Stack, { children: [
2385
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_core17.Group, { children: [
2343
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_layout29.NodeContainer, { id, selected, data, type, children: [
2344
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_core17.Stack, { children: [
2345
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_core17.Group, { children: [
2386
2346
  "Translate X:",
2387
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2347
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2388
2348
  import_core17.NumberInput,
2389
2349
  {
2390
2350
  size: "xs",
@@ -2395,9 +2355,9 @@ function NoiseTranslatePointNode({
2395
2355
  }
2396
2356
  )
2397
2357
  ] }),
2398
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_core17.Group, { children: [
2358
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_core17.Group, { children: [
2399
2359
  "Translate Y:",
2400
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2360
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2401
2361
  import_core17.NumberInput,
2402
2362
  {
2403
2363
  size: "xs",
@@ -2408,9 +2368,9 @@ function NoiseTranslatePointNode({
2408
2368
  }
2409
2369
  )
2410
2370
  ] }),
2411
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_core17.Group, { children: [
2371
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(import_core17.Group, { children: [
2412
2372
  "Translate Z:",
2413
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2373
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2414
2374
  import_core17.NumberInput,
2415
2375
  {
2416
2376
  size: "xs",
@@ -2422,33 +2382,33 @@ function NoiseTranslatePointNode({
2422
2382
  )
2423
2383
  ] })
2424
2384
  ] }),
2425
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_layout30.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
2385
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_layout29.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
2426
2386
  ] });
2427
2387
  }
2428
2388
  var noise_translate_point_node_default = NoiseTranslatePointNode;
2429
2389
 
2430
2390
  // src/nodes/transformers/noise-turbulence-node .tsx
2431
- var import_layout31 = require("@awesome-flow/core/layout");
2432
- var import_react39 = require("react");
2433
- var import_hooks33 = require("@awesome-flow/core/hooks");
2434
- var import_transformer5 = require("libnoise-ts/module/transformer");
2391
+ var import_layout30 = require("@awesome-flow/core/layout");
2392
+ var import_react38 = require("react");
2393
+ var import_hooks32 = require("@awesome-flow/core/hooks");
2394
+ var import_libnoise_simplex_ts24 = require("libnoise-simplex-ts");
2435
2395
  var import_components10 = require("@awesome-flow/core/components");
2436
- var import_jsx_runtime31 = require("react/jsx-runtime");
2396
+ var import_jsx_runtime30 = require("react/jsx-runtime");
2437
2397
  function NoiseTurbulenceNode({
2438
2398
  id,
2439
2399
  selected,
2440
2400
  data,
2441
2401
  type
2442
2402
  }) {
2443
- const [properties, setProperties] = (0, import_react39.useState)(null);
2444
- const incoming = (0, import_hooks33.useIncomingComputedData)(id);
2445
- const updateComputedData = (0, import_hooks33.useUpdateNodeComputedData)();
2446
- const onPropertiesChange = (0, import_react39.useCallback)((props) => {
2403
+ const [properties, setProperties] = (0, import_react38.useState)(null);
2404
+ const incoming = (0, import_hooks32.useIncomingComputedData)(id);
2405
+ const updateComputedData = (0, import_hooks32.useUpdateNodeComputedData)();
2406
+ const onPropertiesChange = (0, import_react38.useCallback)((props) => {
2447
2407
  setProperties(props);
2448
2408
  }, []);
2449
- (0, import_react39.useEffect)(() => {
2409
+ (0, import_react38.useEffect)(() => {
2450
2410
  if (incoming?.length && properties) {
2451
- const module2 = new import_transformer5.Turbulence(
2411
+ const module2 = new import_libnoise_simplex_ts24.Turbulence(
2452
2412
  incoming[0].module,
2453
2413
  properties.frequency.value,
2454
2414
  properties.power.value,
@@ -2458,9 +2418,9 @@ function NoiseTurbulenceNode({
2458
2418
  updateComputedData(id, { module: module2 });
2459
2419
  }
2460
2420
  }, [id, incoming, properties]);
2461
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_layout31.NodeContainer, { id, selected, data, type, children: [
2462
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_components10.NodePropertyVariables, { data, nodeId: id, onPropertiesChange }),
2463
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_layout31.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
2421
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_layout30.NodeContainer, { id, selected, data, type, children: [
2422
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_components10.NodePropertyVariables, { data, nodeId: id, onPropertiesChange }),
2423
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_layout30.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
2464
2424
  ] });
2465
2425
  }
2466
2426
  var noise_turbulence_node_default = NoiseTurbulenceNode;
@@ -2593,34 +2553,9 @@ var NoiseRidgedMultiNodeTemplateFactory = class {
2593
2553
  };
2594
2554
  };
2595
2555
 
2596
- // src/templates/generators/noise-simplex-template.ts
2556
+ // src/templates/generators/noise-spheres-template.ts
2597
2557
  var import_abstract8 = require("@awesome-flow/core/abstract");
2598
2558
  var import_system6 = require("@xyflow/system");
2599
- var NoiseSimplexNodeTemplateFactory = class {
2600
- template = {
2601
- type: "noise-simplex" /* noiseSimplex */,
2602
- group: "Noise Generators" /* noiseGenerators */,
2603
- data: {
2604
- title: "Simplex Noise"
2605
- },
2606
- handles: [
2607
- {
2608
- position: import_system6.Position.Left,
2609
- dataType: import_abstract8.CoreHandleType.variableProperty,
2610
- connection: "target"
2611
- },
2612
- {
2613
- position: import_system6.Position.Right,
2614
- dataType: "module" /* module */,
2615
- connection: "source"
2616
- }
2617
- ]
2618
- };
2619
- };
2620
-
2621
- // src/templates/generators/noise-spheres-template.ts
2622
- var import_abstract9 = require("@awesome-flow/core/abstract");
2623
- var import_system7 = require("@xyflow/system");
2624
2559
  var NoiseSpheresNodeTemplateFactory = class {
2625
2560
  template = {
2626
2561
  type: "noise-spheres" /* noiseSpheres */,
@@ -2631,12 +2566,12 @@ var NoiseSpheresNodeTemplateFactory = class {
2631
2566
  },
2632
2567
  handles: [
2633
2568
  {
2634
- position: import_system7.Position.Left,
2635
- dataType: import_abstract9.CoreHandleType.variableProperty,
2569
+ position: import_system6.Position.Left,
2570
+ dataType: import_abstract8.CoreHandleType.variableProperty,
2636
2571
  connection: "target"
2637
2572
  },
2638
2573
  {
2639
- position: import_system7.Position.Right,
2574
+ position: import_system6.Position.Right,
2640
2575
  dataType: "module" /* module */,
2641
2576
  connection: "source"
2642
2577
  }
@@ -2645,8 +2580,8 @@ var NoiseSpheresNodeTemplateFactory = class {
2645
2580
  };
2646
2581
 
2647
2582
  // src/templates/generators/noise-voronoi-template.ts
2648
- var import_abstract10 = require("@awesome-flow/core/abstract");
2649
- var import_system8 = require("@xyflow/system");
2583
+ var import_abstract9 = require("@awesome-flow/core/abstract");
2584
+ var import_system7 = require("@xyflow/system");
2650
2585
  var NoiseVoronoiNodeTemplateFactory = class {
2651
2586
  template = {
2652
2587
  type: "noise-voronoi" /* noiseVoronoi */,
@@ -2660,12 +2595,12 @@ var NoiseVoronoiNodeTemplateFactory = class {
2660
2595
  },
2661
2596
  handles: [
2662
2597
  {
2663
- position: import_system8.Position.Left,
2664
- dataType: import_abstract10.CoreHandleType.variableProperty,
2598
+ position: import_system7.Position.Left,
2599
+ dataType: import_abstract9.CoreHandleType.variableProperty,
2665
2600
  connection: "target"
2666
2601
  },
2667
2602
  {
2668
- position: import_system8.Position.Right,
2603
+ position: import_system7.Position.Right,
2669
2604
  dataType: "module" /* module */,
2670
2605
  connection: "source"
2671
2606
  }
@@ -2674,7 +2609,7 @@ var NoiseVoronoiNodeTemplateFactory = class {
2674
2609
  };
2675
2610
 
2676
2611
  // src/templates/generators/position-const-template.ts
2677
- var import_system9 = require("@xyflow/system");
2612
+ var import_system8 = require("@xyflow/system");
2678
2613
  var PositionConstNodeTemplateFactory = class {
2679
2614
  template = {
2680
2615
  type: "position" /* position */,
@@ -2685,7 +2620,7 @@ var PositionConstNodeTemplateFactory = class {
2685
2620
  },
2686
2621
  handles: [
2687
2622
  {
2688
- position: import_system9.Position.Right,
2623
+ position: import_system8.Position.Right,
2689
2624
  dataType: "position" /* position */,
2690
2625
  connection: "source"
2691
2626
  }
@@ -2694,7 +2629,7 @@ var PositionConstNodeTemplateFactory = class {
2694
2629
  };
2695
2630
 
2696
2631
  // src/templates/generators/position-grid-template.ts
2697
- var import_system10 = require("@xyflow/system");
2632
+ var import_system9 = require("@xyflow/system");
2698
2633
  var PositionGridNodeTemplateFactory = class {
2699
2634
  template = {
2700
2635
  type: "grid" /* grid */,
@@ -2706,7 +2641,7 @@ var PositionGridNodeTemplateFactory = class {
2706
2641
  },
2707
2642
  handles: [
2708
2643
  {
2709
- position: import_system10.Position.Right,
2644
+ position: import_system9.Position.Right,
2710
2645
  dataType: "position" /* position */,
2711
2646
  connection: "source"
2712
2647
  }
@@ -2716,7 +2651,7 @@ var PositionGridNodeTemplateFactory = class {
2716
2651
 
2717
2652
  // src/templates/modifiers/noise-normalize-template.ts
2718
2653
  var import_utils = require("@awesome-flow/core/utils");
2719
- var import_system11 = require("@xyflow/system");
2654
+ var import_system10 = require("@xyflow/system");
2720
2655
  var NoiseNormalizeNodeTemplateFactory = class {
2721
2656
  template = {
2722
2657
  id: import_utils.IDGenerator.template(),
@@ -2729,13 +2664,13 @@ var NoiseNormalizeNodeTemplateFactory = class {
2729
2664
  },
2730
2665
  handles: [
2731
2666
  {
2732
- position: import_system11.Position.Left,
2667
+ position: import_system10.Position.Left,
2733
2668
  dataType: "module" /* module */,
2734
2669
  connection: "target",
2735
2670
  maxConnections: 1
2736
2671
  },
2737
2672
  {
2738
- position: import_system11.Position.Right,
2673
+ position: import_system10.Position.Right,
2739
2674
  dataType: "module" /* module */,
2740
2675
  connection: "source"
2741
2676
  }
@@ -2744,7 +2679,7 @@ var NoiseNormalizeNodeTemplateFactory = class {
2744
2679
  };
2745
2680
 
2746
2681
  // src/templates/output/noise-logger-template.ts
2747
- var import_system12 = require("@xyflow/system");
2682
+ var import_system11 = require("@xyflow/system");
2748
2683
  var NoiseLoggerNodeTemplateFactory = class {
2749
2684
  template = {
2750
2685
  type: "noise-logger" /* noiseLogger */,
@@ -2754,7 +2689,7 @@ var NoiseLoggerNodeTemplateFactory = class {
2754
2689
  },
2755
2690
  handles: [
2756
2691
  {
2757
- position: import_system12.Position.Left,
2692
+ position: import_system11.Position.Left,
2758
2693
  dataType: "noise" /* noise */,
2759
2694
  connection: "target"
2760
2695
  }
@@ -2763,7 +2698,7 @@ var NoiseLoggerNodeTemplateFactory = class {
2763
2698
  };
2764
2699
 
2765
2700
  // src/templates/output/noise-raw-texture-template.ts
2766
- var import_system13 = require("@xyflow/system");
2701
+ var import_system12 = require("@xyflow/system");
2767
2702
  var NoiseRawTextureTemplateFactory = class {
2768
2703
  template = {
2769
2704
  type: "texture-data" /* textureData */,
@@ -2773,13 +2708,13 @@ var NoiseRawTextureTemplateFactory = class {
2773
2708
  },
2774
2709
  handles: [
2775
2710
  {
2776
- position: import_system13.Position.Left,
2711
+ position: import_system12.Position.Left,
2777
2712
  dataType: "noise" /* noise */,
2778
2713
  connection: "target",
2779
2714
  maxConnections: 1
2780
2715
  },
2781
2716
  {
2782
- position: import_system13.Position.Right,
2717
+ position: import_system12.Position.Right,
2783
2718
  dataType: "texture" /* texture */,
2784
2719
  connection: "source"
2785
2720
  }
@@ -2788,7 +2723,7 @@ var NoiseRawTextureTemplateFactory = class {
2788
2723
  };
2789
2724
 
2790
2725
  // src/templates/output/position-logger-template.ts
2791
- var import_system14 = require("@xyflow/system");
2726
+ var import_system13 = require("@xyflow/system");
2792
2727
  var PositionLoggerNodeTemplateFactory = class {
2793
2728
  template = {
2794
2729
  type: "position-logger" /* positionLogger */,
@@ -2798,7 +2733,7 @@ var PositionLoggerNodeTemplateFactory = class {
2798
2733
  },
2799
2734
  handles: [
2800
2735
  {
2801
- position: import_system14.Position.Left,
2736
+ position: import_system13.Position.Left,
2802
2737
  dataType: "position" /* position */,
2803
2738
  connection: "target"
2804
2739
  }
@@ -2807,7 +2742,7 @@ var PositionLoggerNodeTemplateFactory = class {
2807
2742
  };
2808
2743
 
2809
2744
  // src/templates/modifiers/noise-combine-template.ts
2810
- var import_system15 = require("@xyflow/system");
2745
+ var import_system14 = require("@xyflow/system");
2811
2746
  var NoiseCombineNodeTemplateFactory = class {
2812
2747
  template = {
2813
2748
  type: "noise-combiner" /* noiseCombine */,
@@ -2818,13 +2753,13 @@ var NoiseCombineNodeTemplateFactory = class {
2818
2753
  },
2819
2754
  handles: [
2820
2755
  {
2821
- position: import_system15.Position.Left,
2756
+ position: import_system14.Position.Left,
2822
2757
  dataType: "module" /* module */,
2823
2758
  connection: "target",
2824
2759
  maxConnections: 2
2825
2760
  },
2826
2761
  {
2827
- position: import_system15.Position.Right,
2762
+ position: import_system14.Position.Right,
2828
2763
  dataType: "module" /* module */,
2829
2764
  connection: "source"
2830
2765
  }
@@ -2833,7 +2768,7 @@ var NoiseCombineNodeTemplateFactory = class {
2833
2768
  };
2834
2769
 
2835
2770
  // src/templates/modifiers/noise-clamp-template.ts
2836
- var import_system16 = require("@xyflow/system");
2771
+ var import_system15 = require("@xyflow/system");
2837
2772
  var NoiseClampNodeTemplateFactory = class {
2838
2773
  template = {
2839
2774
  type: "noise-clamp" /* noiseClamp */,
@@ -2845,13 +2780,13 @@ var NoiseClampNodeTemplateFactory = class {
2845
2780
  },
2846
2781
  handles: [
2847
2782
  {
2848
- position: import_system16.Position.Left,
2783
+ position: import_system15.Position.Left,
2849
2784
  dataType: "module" /* module */,
2850
2785
  connection: "target",
2851
2786
  maxConnections: 1
2852
2787
  },
2853
2788
  {
2854
- position: import_system16.Position.Right,
2789
+ position: import_system15.Position.Right,
2855
2790
  dataType: "module" /* module */,
2856
2791
  connection: "source"
2857
2792
  }
@@ -2860,7 +2795,7 @@ var NoiseClampNodeTemplateFactory = class {
2860
2795
  };
2861
2796
 
2862
2797
  // src/templates/modifiers/noise-abs-template.ts
2863
- var import_system17 = require("@xyflow/system");
2798
+ var import_system16 = require("@xyflow/system");
2864
2799
  var NoiseAbsNodeTemplateFactory = class {
2865
2800
  template = {
2866
2801
  type: "noise-abs" /* noiseAbs */,
@@ -2870,13 +2805,13 @@ var NoiseAbsNodeTemplateFactory = class {
2870
2805
  },
2871
2806
  handles: [
2872
2807
  {
2873
- position: import_system17.Position.Left,
2808
+ position: import_system16.Position.Left,
2874
2809
  dataType: "module" /* module */,
2875
2810
  connection: "target",
2876
2811
  maxConnections: 1
2877
2812
  },
2878
2813
  {
2879
- position: import_system17.Position.Right,
2814
+ position: import_system16.Position.Right,
2880
2815
  dataType: "module" /* module */,
2881
2816
  connection: "source"
2882
2817
  }
@@ -2885,7 +2820,7 @@ var NoiseAbsNodeTemplateFactory = class {
2885
2820
  };
2886
2821
 
2887
2822
  // src/templates/output/noise-output-template.ts
2888
- var import_system18 = require("@xyflow/system");
2823
+ var import_system17 = require("@xyflow/system");
2889
2824
  var NoiseOutputNodeTemplateFactory = class {
2890
2825
  template = {
2891
2826
  type: "noise-output" /* noiseOutput */,
@@ -2895,18 +2830,18 @@ var NoiseOutputNodeTemplateFactory = class {
2895
2830
  },
2896
2831
  handles: [
2897
2832
  {
2898
- position: import_system18.Position.Left,
2833
+ position: import_system17.Position.Left,
2899
2834
  dataType: "position" /* position */,
2900
2835
  connection: "target"
2901
2836
  },
2902
2837
  {
2903
- position: import_system18.Position.Left,
2838
+ position: import_system17.Position.Left,
2904
2839
  dataType: "module" /* module */,
2905
2840
  connection: "target",
2906
2841
  maxConnections: 1
2907
2842
  },
2908
2843
  {
2909
- position: import_system18.Position.Right,
2844
+ position: import_system17.Position.Right,
2910
2845
  dataType: "noise" /* noise */,
2911
2846
  connection: "source"
2912
2847
  }
@@ -2915,8 +2850,7 @@ var NoiseOutputNodeTemplateFactory = class {
2915
2850
  };
2916
2851
 
2917
2852
  // src/templates/modifiers/noise-curve-template.ts
2918
- var import_abstract19 = require("@awesome-flow/core/abstract");
2919
- var import_system19 = require("@xyflow/system");
2853
+ var import_system18 = require("@xyflow/system");
2920
2854
  var NoiseCurveNodeTemplateFactory = class {
2921
2855
  template = {
2922
2856
  type: "noise-curve" /* noiseCurve */,
@@ -2927,18 +2861,18 @@ var NoiseCurveNodeTemplateFactory = class {
2927
2861
  },
2928
2862
  handles: [
2929
2863
  {
2930
- position: import_system19.Position.Left,
2864
+ position: import_system18.Position.Left,
2931
2865
  dataType: "module" /* module */,
2932
2866
  connection: "target",
2933
2867
  maxConnections: 1
2934
2868
  },
2869
+ // {
2870
+ // position: Position.Left,
2871
+ // dataType: CoreHandleType.variableProperty,
2872
+ // connection: 'target',
2873
+ // },
2935
2874
  {
2936
- position: import_system19.Position.Left,
2937
- dataType: import_abstract19.CoreHandleType.variableProperty,
2938
- connection: "target"
2939
- },
2940
- {
2941
- position: import_system19.Position.Right,
2875
+ position: import_system18.Position.Right,
2942
2876
  dataType: "module" /* module */,
2943
2877
  connection: "source"
2944
2878
  }
@@ -2947,7 +2881,7 @@ var NoiseCurveNodeTemplateFactory = class {
2947
2881
  };
2948
2882
 
2949
2883
  // src/templates/modifiers/noise-exponent-template.ts
2950
- var import_system20 = require("@xyflow/system");
2884
+ var import_system19 = require("@xyflow/system");
2951
2885
  var NoiseExponentNodeTemplateFactory = class {
2952
2886
  template = {
2953
2887
  type: "noise-exponent" /* noiseExponent */,
@@ -2958,13 +2892,13 @@ var NoiseExponentNodeTemplateFactory = class {
2958
2892
  },
2959
2893
  handles: [
2960
2894
  {
2961
- position: import_system20.Position.Left,
2895
+ position: import_system19.Position.Left,
2962
2896
  dataType: "module" /* module */,
2963
2897
  connection: "target",
2964
2898
  maxConnections: 1
2965
2899
  },
2966
2900
  {
2967
- position: import_system20.Position.Right,
2901
+ position: import_system19.Position.Right,
2968
2902
  dataType: "module" /* module */,
2969
2903
  connection: "source"
2970
2904
  }
@@ -2973,7 +2907,7 @@ var NoiseExponentNodeTemplateFactory = class {
2973
2907
  };
2974
2908
 
2975
2909
  // src/templates/modifiers/noise-invert-template.ts
2976
- var import_system21 = require("@xyflow/system");
2910
+ var import_system20 = require("@xyflow/system");
2977
2911
  var NoiseInvertNodeTemplateFactory = class {
2978
2912
  template = {
2979
2913
  type: "noise-invert" /* noiseInvert */,
@@ -2983,13 +2917,13 @@ var NoiseInvertNodeTemplateFactory = class {
2983
2917
  },
2984
2918
  handles: [
2985
2919
  {
2986
- position: import_system21.Position.Left,
2920
+ position: import_system20.Position.Left,
2987
2921
  dataType: "module" /* module */,
2988
2922
  connection: "target",
2989
2923
  maxConnections: 1
2990
2924
  },
2991
2925
  {
2992
- position: import_system21.Position.Right,
2926
+ position: import_system20.Position.Right,
2993
2927
  dataType: "module" /* module */,
2994
2928
  connection: "source"
2995
2929
  }
@@ -2998,7 +2932,7 @@ var NoiseInvertNodeTemplateFactory = class {
2998
2932
  };
2999
2933
 
3000
2934
  // src/templates/modifiers/noise-scalebias-template.ts
3001
- var import_system22 = require("@xyflow/system");
2935
+ var import_system21 = require("@xyflow/system");
3002
2936
  var NoiseScaleBiasNodeTemplateFactory = class {
3003
2937
  template = {
3004
2938
  type: "noise-scale-bias" /* noiseScaleBias */,
@@ -3010,13 +2944,13 @@ var NoiseScaleBiasNodeTemplateFactory = class {
3010
2944
  },
3011
2945
  handles: [
3012
2946
  {
3013
- position: import_system22.Position.Left,
2947
+ position: import_system21.Position.Left,
3014
2948
  dataType: "module" /* module */,
3015
2949
  connection: "target",
3016
2950
  maxConnections: 1
3017
2951
  },
3018
2952
  {
3019
- position: import_system22.Position.Right,
2953
+ position: import_system21.Position.Right,
3020
2954
  dataType: "module" /* module */,
3021
2955
  connection: "source"
3022
2956
  }
@@ -3025,7 +2959,7 @@ var NoiseScaleBiasNodeTemplateFactory = class {
3025
2959
  };
3026
2960
 
3027
2961
  // src/templates/modifiers/noise-terrace-template.ts
3028
- var import_system23 = require("@xyflow/system");
2962
+ var import_system22 = require("@xyflow/system");
3029
2963
  var NoiseTerraceNodeTemplateFactory = class {
3030
2964
  template = {
3031
2965
  type: "noise-terrace" /* noiseTerrace */,
@@ -3036,13 +2970,13 @@ var NoiseTerraceNodeTemplateFactory = class {
3036
2970
  },
3037
2971
  handles: [
3038
2972
  {
3039
- position: import_system23.Position.Left,
2973
+ position: import_system22.Position.Left,
3040
2974
  dataType: "module" /* module */,
3041
2975
  connection: "target",
3042
2976
  maxConnections: 1
3043
2977
  },
3044
2978
  {
3045
- position: import_system23.Position.Right,
2979
+ position: import_system22.Position.Right,
3046
2980
  dataType: "module" /* module */,
3047
2981
  connection: "source"
3048
2982
  }
@@ -3051,7 +2985,7 @@ var NoiseTerraceNodeTemplateFactory = class {
3051
2985
  };
3052
2986
 
3053
2987
  // src/templates/selectors/noise-blend-template.ts
3054
- var import_system24 = require("@xyflow/system");
2988
+ var import_system23 = require("@xyflow/system");
3055
2989
  var NoiseBlendNodeTemplateFactory = class {
3056
2990
  template = {
3057
2991
  type: "noise-blend" /* noiseBlend */,
@@ -3061,7 +2995,7 @@ var NoiseBlendNodeTemplateFactory = class {
3061
2995
  },
3062
2996
  handles: [
3063
2997
  {
3064
- position: import_system24.Position.Left,
2998
+ position: import_system23.Position.Left,
3065
2999
  dataType: "module" /* module */,
3066
3000
  connection: "target",
3067
3001
  label: "Source Modules",
@@ -3070,7 +3004,7 @@ var NoiseBlendNodeTemplateFactory = class {
3070
3004
  minConnections: 2
3071
3005
  },
3072
3006
  {
3073
- position: import_system24.Position.Left,
3007
+ position: import_system23.Position.Left,
3074
3008
  dataType: "module" /* module */,
3075
3009
  dataId: "control" /* control */,
3076
3010
  connection: "target",
@@ -3078,7 +3012,7 @@ var NoiseBlendNodeTemplateFactory = class {
3078
3012
  maxConnections: 1
3079
3013
  },
3080
3014
  {
3081
- position: import_system24.Position.Right,
3015
+ position: import_system23.Position.Right,
3082
3016
  dataType: "module" /* module */,
3083
3017
  dataId: "output" /* output */,
3084
3018
  connection: "source"
@@ -3088,7 +3022,7 @@ var NoiseBlendNodeTemplateFactory = class {
3088
3022
  };
3089
3023
 
3090
3024
  // src/templates/selectors/noise-select-template.ts
3091
- var import_system25 = require("@xyflow/system");
3025
+ var import_system24 = require("@xyflow/system");
3092
3026
  var NoiseSelectNodeTemplateFactory = class {
3093
3027
  template = {
3094
3028
  type: "noise-select" /* noiseSelect */,
@@ -3101,7 +3035,7 @@ var NoiseSelectNodeTemplateFactory = class {
3101
3035
  },
3102
3036
  handles: [
3103
3037
  {
3104
- position: import_system25.Position.Left,
3038
+ position: import_system24.Position.Left,
3105
3039
  dataType: "module" /* module */,
3106
3040
  dataId: "source" /* source */,
3107
3041
  connection: "target",
@@ -3110,7 +3044,7 @@ var NoiseSelectNodeTemplateFactory = class {
3110
3044
  minConnections: 2
3111
3045
  },
3112
3046
  {
3113
- position: import_system25.Position.Left,
3047
+ position: import_system24.Position.Left,
3114
3048
  dataType: "module" /* module */,
3115
3049
  dataId: "control" /* control */,
3116
3050
  connection: "target",
@@ -3118,7 +3052,7 @@ var NoiseSelectNodeTemplateFactory = class {
3118
3052
  maxConnections: 1
3119
3053
  },
3120
3054
  {
3121
- position: import_system25.Position.Right,
3055
+ position: import_system24.Position.Right,
3122
3056
  dataType: "module" /* module */,
3123
3057
  dataId: "output" /* output */,
3124
3058
  connection: "source"
@@ -3128,7 +3062,7 @@ var NoiseSelectNodeTemplateFactory = class {
3128
3062
  };
3129
3063
 
3130
3064
  // src/templates/transformers/noise-displace-template.ts
3131
- var import_system26 = require("@xyflow/system");
3065
+ var import_system25 = require("@xyflow/system");
3132
3066
  var NoiseDisplaceNodeTemplateFactory = class {
3133
3067
  template = {
3134
3068
  type: "noise-displace" /* noiseDisplace */,
@@ -3138,7 +3072,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3138
3072
  },
3139
3073
  handles: [
3140
3074
  {
3141
- position: import_system26.Position.Left,
3075
+ position: import_system25.Position.Left,
3142
3076
  connection: "target",
3143
3077
  label: "Source Module",
3144
3078
  dataType: "module" /* module */,
@@ -3146,7 +3080,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3146
3080
  maxConnections: 1
3147
3081
  },
3148
3082
  {
3149
- position: import_system26.Position.Left,
3083
+ position: import_system25.Position.Left,
3150
3084
  connection: "target",
3151
3085
  label: "X Module",
3152
3086
  dataType: "module" /* module */,
@@ -3154,7 +3088,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3154
3088
  maxConnections: 1
3155
3089
  },
3156
3090
  {
3157
- position: import_system26.Position.Left,
3091
+ position: import_system25.Position.Left,
3158
3092
  connection: "target",
3159
3093
  label: "Y Module",
3160
3094
  dataType: "module" /* module */,
@@ -3162,7 +3096,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3162
3096
  maxConnections: 1
3163
3097
  },
3164
3098
  {
3165
- position: import_system26.Position.Left,
3099
+ position: import_system25.Position.Left,
3166
3100
  connection: "target",
3167
3101
  label: "Z Module",
3168
3102
  dataType: "module" /* module */,
@@ -3170,7 +3104,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3170
3104
  maxConnections: 1
3171
3105
  },
3172
3106
  {
3173
- position: import_system26.Position.Right,
3107
+ position: import_system25.Position.Right,
3174
3108
  dataType: "module" /* module */,
3175
3109
  dataId: "output" /* output */,
3176
3110
  connection: "source"
@@ -3180,7 +3114,7 @@ var NoiseDisplaceNodeTemplateFactory = class {
3180
3114
  };
3181
3115
 
3182
3116
  // src/templates/transformers/noise-rotate-point-template.ts
3183
- var import_system27 = require("@xyflow/system");
3117
+ var import_system26 = require("@xyflow/system");
3184
3118
  var NoiseRotatePointNodeTemplateFactory = class {
3185
3119
  template = {
3186
3120
  type: "noise-rotate-point" /* noiseRotatePoint */,
@@ -3193,14 +3127,14 @@ var NoiseRotatePointNodeTemplateFactory = class {
3193
3127
  },
3194
3128
  handles: [
3195
3129
  {
3196
- position: import_system27.Position.Left,
3130
+ position: import_system26.Position.Left,
3197
3131
  dataType: "module" /* module */,
3198
3132
  connection: "target",
3199
3133
  label: "Source Module",
3200
3134
  maxConnections: 1
3201
3135
  },
3202
3136
  {
3203
- position: import_system27.Position.Right,
3137
+ position: import_system26.Position.Right,
3204
3138
  dataType: "module" /* module */,
3205
3139
  connection: "source"
3206
3140
  }
@@ -3209,7 +3143,7 @@ var NoiseRotatePointNodeTemplateFactory = class {
3209
3143
  };
3210
3144
 
3211
3145
  // src/templates/transformers/noise-scale-point-template.ts
3212
- var import_system28 = require("@xyflow/system");
3146
+ var import_system27 = require("@xyflow/system");
3213
3147
  var NoiseScalePointNodeTemplateFactory = class {
3214
3148
  template = {
3215
3149
  type: "noise-scale-point" /* noiseScalePoint */,
@@ -3222,14 +3156,14 @@ var NoiseScalePointNodeTemplateFactory = class {
3222
3156
  },
3223
3157
  handles: [
3224
3158
  {
3225
- position: import_system28.Position.Left,
3159
+ position: import_system27.Position.Left,
3226
3160
  dataType: "module" /* module */,
3227
3161
  connection: "target",
3228
3162
  label: "Source Module",
3229
3163
  maxConnections: 1
3230
3164
  },
3231
3165
  {
3232
- position: import_system28.Position.Right,
3166
+ position: import_system27.Position.Right,
3233
3167
  dataType: "module" /* module */,
3234
3168
  connection: "source"
3235
3169
  }
@@ -3238,7 +3172,7 @@ var NoiseScalePointNodeTemplateFactory = class {
3238
3172
  };
3239
3173
 
3240
3174
  // src/templates/transformers/noise-translate-point-template.ts
3241
- var import_system29 = require("@xyflow/system");
3175
+ var import_system28 = require("@xyflow/system");
3242
3176
  var NoiseTranslatePointNodeTemplateFactory = class {
3243
3177
  template = {
3244
3178
  type: "noise-translate-point" /* noiseTranslatePoint */,
@@ -3251,14 +3185,14 @@ var NoiseTranslatePointNodeTemplateFactory = class {
3251
3185
  },
3252
3186
  handles: [
3253
3187
  {
3254
- position: import_system29.Position.Left,
3188
+ position: import_system28.Position.Left,
3255
3189
  dataType: "module" /* module */,
3256
3190
  connection: "target",
3257
3191
  label: "Source Module",
3258
3192
  maxConnections: 1
3259
3193
  },
3260
3194
  {
3261
- position: import_system29.Position.Right,
3195
+ position: import_system28.Position.Right,
3262
3196
  dataType: "module" /* module */,
3263
3197
  connection: "source"
3264
3198
  }
@@ -3267,8 +3201,8 @@ var NoiseTranslatePointNodeTemplateFactory = class {
3267
3201
  };
3268
3202
 
3269
3203
  // src/templates/transformers/noise-turbulence-template.ts
3270
- var import_abstract31 = require("@awesome-flow/core/abstract");
3271
- var import_system30 = require("@xyflow/system");
3204
+ var import_abstract29 = require("@awesome-flow/core/abstract");
3205
+ var import_system29 = require("@xyflow/system");
3272
3206
  var NoiseTurbulenceNodeTemplateFactory = class {
3273
3207
  template = {
3274
3208
  type: "noise-turbulence" /* noiseTurbulence */,
@@ -3282,20 +3216,20 @@ var NoiseTurbulenceNodeTemplateFactory = class {
3282
3216
  },
3283
3217
  handles: [
3284
3218
  {
3285
- position: import_system30.Position.Left,
3219
+ position: import_system29.Position.Left,
3286
3220
  dataType: "module" /* module */,
3287
3221
  connection: "target",
3288
3222
  label: "Source Module",
3289
3223
  maxConnections: 1
3290
3224
  },
3291
3225
  {
3292
- position: import_system30.Position.Left,
3293
- dataType: import_abstract31.CoreHandleType.variableProperty,
3226
+ position: import_system29.Position.Left,
3227
+ dataType: import_abstract29.CoreHandleType.variableProperty,
3294
3228
  label: "Variable Properties",
3295
3229
  connection: "target"
3296
3230
  },
3297
3231
  {
3298
- position: import_system30.Position.Right,
3232
+ position: import_system29.Position.Right,
3299
3233
  dataType: "module" /* module */,
3300
3234
  connection: "source"
3301
3235
  }
@@ -3304,9 +3238,9 @@ var NoiseTurbulenceNodeTemplateFactory = class {
3304
3238
  };
3305
3239
 
3306
3240
  // src/templates/generators/noise-billow-template.ts
3307
- var import_abstract33 = require("@awesome-flow/core/abstract");
3241
+ var import_abstract31 = require("@awesome-flow/core/abstract");
3308
3242
  var import_utils2 = require("@awesome-flow/core/utils");
3309
- var import_system31 = require("@xyflow/system");
3243
+ var import_system30 = require("@xyflow/system");
3310
3244
  var NoiseBillowNodeTemplateFactory = class {
3311
3245
  template = {
3312
3246
  id: import_utils2.IDGenerator.template(),
@@ -3322,12 +3256,12 @@ var NoiseBillowNodeTemplateFactory = class {
3322
3256
  },
3323
3257
  handles: [
3324
3258
  {
3325
- position: import_system31.Position.Left,
3326
- dataType: import_abstract33.CoreHandleType.variableProperty,
3259
+ position: import_system30.Position.Left,
3260
+ dataType: import_abstract31.CoreHandleType.variableProperty,
3327
3261
  connection: "target"
3328
3262
  },
3329
3263
  {
3330
- position: import_system31.Position.Right,
3264
+ position: import_system30.Position.Right,
3331
3265
  dataType: "module" /* module */,
3332
3266
  connection: "source"
3333
3267
  }
@@ -3336,14 +3270,14 @@ var NoiseBillowNodeTemplateFactory = class {
3336
3270
  };
3337
3271
 
3338
3272
  // src/templates/groups/module-group-template.ts
3339
- var import_abstract34 = require("@awesome-flow/core/abstract");
3273
+ var import_abstract32 = require("@awesome-flow/core/abstract");
3340
3274
  var import_utils3 = require("@awesome-flow/core/utils");
3341
- var import_system32 = require("@xyflow/system");
3275
+ var import_system31 = require("@xyflow/system");
3342
3276
  var ModuleGroupNodeTemplateFactory = class {
3343
3277
  template = {
3344
3278
  id: import_utils3.IDGenerator.template(),
3345
3279
  type: "group-module" /* groupModule */,
3346
- group: import_abstract34.CoreTemplateGroup.groups,
3280
+ group: import_abstract32.CoreTemplateGroup.groups,
3347
3281
  data: {
3348
3282
  title: "Modules Group",
3349
3283
  isGroup: true,
@@ -3358,14 +3292,14 @@ var ModuleGroupNodeTemplateFactory = class {
3358
3292
  },
3359
3293
  handles: [
3360
3294
  {
3361
- position: import_system32.Position.Bottom,
3295
+ position: import_system31.Position.Bottom,
3362
3296
  dataType: "module" /* module */,
3363
3297
  connection: "target",
3364
3298
  maxConnections: 1,
3365
3299
  hideOnCollapse: true
3366
3300
  },
3367
3301
  {
3368
- position: import_system32.Position.Right,
3302
+ position: import_system31.Position.Right,
3369
3303
  dataType: "module" /* module */,
3370
3304
  connection: "source"
3371
3305
  }
@@ -3376,7 +3310,6 @@ var ModuleGroupNodeTemplateFactory = class {
3376
3310
  // src/abstract/node-types.ts
3377
3311
  var noiseNodeTemplates = {
3378
3312
  ["noise-output" /* noiseOutput */]: new NoiseOutputNodeTemplateFactory(),
3379
- ["noise-simplex" /* noiseSimplex */]: new NoiseSimplexNodeTemplateFactory(),
3380
3313
  ["noise-billow" /* noiseBillow */]: new NoiseBillowNodeTemplateFactory(),
3381
3314
  ["noise-checkerboard" /* noiseCheckerboard */]: new NoiseCheckerboardNodeTemplateFactory(),
3382
3315
  ["noise-normalize" /* noiseNormalize */]: new NoiseNormalizeNodeTemplateFactory(),
@@ -3410,11 +3343,11 @@ var noiseNodeTemplates = {
3410
3343
  };
3411
3344
 
3412
3345
  // src/nodes/output/noise-output-node.tsx
3413
- var import_jsx_runtime32 = require("react/jsx-runtime");
3346
+ var import_jsx_runtime31 = require("react/jsx-runtime");
3414
3347
  function NoiseOutputNode({ id, selected, data, type }) {
3415
- const [size, setSize] = (0, import_react40.useState)(0);
3416
- const updateComputedData = (0, import_hooks34.useUpdateNodeComputedData)();
3417
- const onDataUpdated = (0, import_react40.useCallback)(
3348
+ const [size, setSize] = (0, import_react39.useState)(0);
3349
+ const updateComputedData = (0, import_hooks33.useUpdateNodeComputedData)();
3350
+ const onDataUpdated = (0, import_react39.useCallback)(
3418
3351
  (handleData) => {
3419
3352
  const incomingPositions = handleData["position" /* position */];
3420
3353
  const incomingModule = handleData["module" /* module */];
@@ -3436,8 +3369,8 @@ function NoiseOutputNode({ id, selected, data, type }) {
3436
3369
  },
3437
3370
  []
3438
3371
  );
3439
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_layout32.NodeContainer, { id, selected, data, type, children: [
3440
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
3372
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_layout31.NodeContainer, { id, selected, data, type, children: [
3373
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
3441
3374
  import_components11.HandlesIncomingDataStatus,
3442
3375
  {
3443
3376
  nodeId: id,
@@ -3448,11 +3381,11 @@ function NoiseOutputNode({ id, selected, data, type }) {
3448
3381
  resetComputedData: true
3449
3382
  }
3450
3383
  ),
3451
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)(import_core18.Text, { mt: 5, children: [
3384
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_core18.Text, { mt: 5, children: [
3452
3385
  "Noise points: ",
3453
3386
  size
3454
3387
  ] }),
3455
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_layout32.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
3388
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_layout31.NodeTrackConnections, { handles: data.handles, nodeId: id, type: "target" })
3456
3389
  ] });
3457
3390
  }
3458
3391
  var noise_output_node_default = NoiseOutputNode;
@@ -3481,7 +3414,6 @@ var noise_output_node_default = NoiseOutputNode;
3481
3414
  NoiseScaleBiasNode,
3482
3415
  NoiseScalePointNode,
3483
3416
  NoiseSelectNode,
3484
- NoiseSimplexNode,
3485
3417
  NoiseSpheresNode,
3486
3418
  NoiseTerraceNode,
3487
3419
  NoiseTranslatePointNode,