@zag-js/splitter 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,624 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/splitter.machine.ts
21
+ var splitter_machine_exports = {};
22
+ __export(splitter_machine_exports, {
23
+ machine: () => machine
24
+ });
25
+ module.exports = __toCommonJS(splitter_machine_exports);
26
+ var import_core = require("@zag-js/core");
27
+
28
+ // ../../utilities/core/src/functions.ts
29
+ var runIfFn = (v, ...a) => {
30
+ const res = typeof v === "function" ? v(...a) : v;
31
+ return res != null ? res : void 0;
32
+ };
33
+ var callAll = (...fns) => (...a) => {
34
+ fns.forEach(function(fn) {
35
+ fn == null ? void 0 : fn(...a);
36
+ });
37
+ };
38
+
39
+ // ../../utilities/core/src/guard.ts
40
+ var isArray = (v) => Array.isArray(v);
41
+ var isObject = (v) => !(v == null || typeof v !== "object" || isArray(v));
42
+ var hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
43
+
44
+ // ../../utilities/core/src/object.ts
45
+ function compact(obj) {
46
+ if (obj === void 0)
47
+ return obj;
48
+ return Object.fromEntries(
49
+ Object.entries(obj).filter(([, value]) => value !== void 0).map(([key, value]) => [key, isObject(value) ? compact(value) : value])
50
+ );
51
+ }
52
+
53
+ // ../../utilities/dom/src/platform.ts
54
+ var isDom = () => typeof window !== "undefined";
55
+ function getPlatform() {
56
+ var _a;
57
+ const agent = navigator.userAgentData;
58
+ return (_a = agent == null ? void 0 : agent.platform) != null ? _a : navigator.platform;
59
+ }
60
+ var pt = (v) => isDom() && v.test(getPlatform());
61
+ var isTouchDevice = () => isDom() && !!navigator.maxTouchPoints;
62
+ var isMac = () => pt(/^Mac/) && !isTouchDevice;
63
+ var isApple = () => pt(/mac|iphone|ipad|ipod/i);
64
+ var isIos = () => isApple() && !isMac();
65
+
66
+ // ../../utilities/dom/src/query.ts
67
+ function isDocument(el) {
68
+ return el.nodeType === Node.DOCUMENT_NODE;
69
+ }
70
+ function isWindow(value) {
71
+ return (value == null ? void 0 : value.toString()) === "[object Window]";
72
+ }
73
+ function getDocument(el) {
74
+ var _a;
75
+ if (isWindow(el))
76
+ return el.document;
77
+ if (isDocument(el))
78
+ return el;
79
+ return (_a = el == null ? void 0 : el.ownerDocument) != null ? _a : document;
80
+ }
81
+ function defineDomHelpers(helpers) {
82
+ const dom2 = {
83
+ getRootNode: (ctx) => {
84
+ var _a, _b;
85
+ return (_b = (_a = ctx.getRootNode) == null ? void 0 : _a.call(ctx)) != null ? _b : document;
86
+ },
87
+ getDoc: (ctx) => getDocument(dom2.getRootNode(ctx)),
88
+ getWin: (ctx) => {
89
+ var _a;
90
+ return (_a = dom2.getDoc(ctx).defaultView) != null ? _a : window;
91
+ },
92
+ getActiveElement: (ctx) => dom2.getDoc(ctx).activeElement,
93
+ getById: (ctx, id) => dom2.getRootNode(ctx).getElementById(id),
94
+ createEmitter: (ctx, target) => {
95
+ const win = dom2.getWin(ctx);
96
+ return function emit(evt, detail, options) {
97
+ const { bubbles = true, cancelable, composed = true } = options != null ? options : {};
98
+ const eventName = `zag:${evt}`;
99
+ const init = { bubbles, cancelable, composed, detail };
100
+ const event = new win.CustomEvent(eventName, init);
101
+ target.dispatchEvent(event);
102
+ };
103
+ },
104
+ createListener: (target) => {
105
+ return function listen(evt, handler) {
106
+ const eventName = `zag:${evt}`;
107
+ const listener = (e) => handler(e);
108
+ target.addEventListener(eventName, listener);
109
+ return () => target.removeEventListener(eventName, listener);
110
+ };
111
+ }
112
+ };
113
+ return {
114
+ ...dom2,
115
+ ...helpers
116
+ };
117
+ }
118
+
119
+ // ../../utilities/dom/src/event.ts
120
+ var supportsPointerEvent = () => isDom() && window.onpointerdown === null;
121
+ var supportsTouchEvent = () => isDom() && window.ontouchstart === null;
122
+ var supportsMouseEvent = () => isDom() && window.onmousedown === null;
123
+ var isMouseEvent = (v) => isObject(v) && hasProp(v, "button");
124
+ var isTouchEvent = (v) => isObject(v) && hasProp(v, "touches");
125
+ var isLeftClick = (v) => v.button === 0;
126
+
127
+ // ../../utilities/dom/src/get-element-offset.ts
128
+ function getElementOffset(element) {
129
+ let left = 0;
130
+ let top = 0;
131
+ let el = element;
132
+ if (el.parentNode) {
133
+ do {
134
+ left += el.offsetLeft;
135
+ top += el.offsetTop;
136
+ } while ((el = el.offsetParent) && el.nodeType < 9);
137
+ el = element;
138
+ do {
139
+ left -= el.scrollLeft;
140
+ top -= el.scrollTop;
141
+ } while ((el = el.parentNode) && !/body/i.test(el.nodeName));
142
+ }
143
+ return {
144
+ top,
145
+ right: innerWidth - left - element.offsetWidth,
146
+ bottom: innerHeight - top - element.offsetHeight,
147
+ left
148
+ };
149
+ }
150
+
151
+ // ../../utilities/dom/src/get-point-relative-to-element.ts
152
+ function getPointRelativeToNode(point, element) {
153
+ const offset = getElementOffset(element);
154
+ const x = point.x - offset.left;
155
+ const y = point.y - offset.top;
156
+ return { x, y };
157
+ }
158
+
159
+ // ../../utilities/dom/src/listener.ts
160
+ var isRef = (v) => hasProp(v, "current");
161
+ var fallback = { pageX: 0, pageY: 0, clientX: 0, clientY: 0 };
162
+ function extractInfo(event, type = "page") {
163
+ const point = isTouchEvent(event) ? event.touches[0] || event.changedTouches[0] || fallback : event;
164
+ return {
165
+ point: {
166
+ x: point[`${type}X`],
167
+ y: point[`${type}Y`]
168
+ }
169
+ };
170
+ }
171
+ function addDomEvent(target, eventName, handler, options) {
172
+ const node = isRef(target) ? target.current : runIfFn(target);
173
+ node == null ? void 0 : node.addEventListener(eventName, handler, options);
174
+ return () => {
175
+ node == null ? void 0 : node.removeEventListener(eventName, handler, options);
176
+ };
177
+ }
178
+ function addPointerEvent(target, event, listener, options) {
179
+ var _a;
180
+ const type = (_a = getEventName(event)) != null ? _a : event;
181
+ return addDomEvent(target, type, wrapHandler(listener, event === "pointerdown"), options);
182
+ }
183
+ function wrapHandler(fn, filter = false) {
184
+ const listener = (event) => {
185
+ fn(event, extractInfo(event));
186
+ };
187
+ return filter ? filterPrimaryPointer(listener) : listener;
188
+ }
189
+ function filterPrimaryPointer(fn) {
190
+ return (event) => {
191
+ var _a;
192
+ const win = (_a = event.view) != null ? _a : window;
193
+ const isMouseEvent2 = event instanceof win.MouseEvent;
194
+ const isPrimary = !isMouseEvent2 || isMouseEvent2 && event.button === 0;
195
+ if (isPrimary)
196
+ fn(event);
197
+ };
198
+ }
199
+ var mouseEventNames = {
200
+ pointerdown: "mousedown",
201
+ pointermove: "mousemove",
202
+ pointerup: "mouseup",
203
+ pointercancel: "mousecancel",
204
+ pointerover: "mouseover",
205
+ pointerout: "mouseout",
206
+ pointerenter: "mouseenter",
207
+ pointerleave: "mouseleave"
208
+ };
209
+ var touchEventNames = {
210
+ pointerdown: "touchstart",
211
+ pointermove: "touchmove",
212
+ pointerup: "touchend",
213
+ pointercancel: "touchcancel"
214
+ };
215
+ function getEventName(evt) {
216
+ if (supportsPointerEvent())
217
+ return evt;
218
+ if (supportsTouchEvent())
219
+ return touchEventNames[evt];
220
+ if (supportsMouseEvent())
221
+ return mouseEventNames[evt];
222
+ return evt;
223
+ }
224
+
225
+ // ../../utilities/dom/src/next-tick.ts
226
+ function nextTick(fn) {
227
+ const set = /* @__PURE__ */ new Set();
228
+ function raf2(fn2) {
229
+ const id = globalThis.requestAnimationFrame(fn2);
230
+ set.add(() => globalThis.cancelAnimationFrame(id));
231
+ }
232
+ raf2(() => raf2(fn));
233
+ return function cleanup() {
234
+ set.forEach(function(fn2) {
235
+ fn2();
236
+ });
237
+ };
238
+ }
239
+ function raf(fn) {
240
+ const id = globalThis.requestAnimationFrame(fn);
241
+ return function cleanup() {
242
+ globalThis.cancelAnimationFrame(id);
243
+ };
244
+ }
245
+
246
+ // ../../utilities/dom/src/text-selection.ts
247
+ var state = "default";
248
+ var savedUserSelect = "";
249
+ var modifiedElementMap = /* @__PURE__ */ new WeakMap();
250
+ function disableTextSelection({ target, doc } = {}) {
251
+ const _document = doc != null ? doc : document;
252
+ if (isIos()) {
253
+ if (state === "default") {
254
+ savedUserSelect = _document.documentElement.style.webkitUserSelect;
255
+ _document.documentElement.style.webkitUserSelect = "none";
256
+ }
257
+ state = "disabled";
258
+ } else if (target) {
259
+ modifiedElementMap.set(target, target.style.userSelect);
260
+ target.style.userSelect = "none";
261
+ }
262
+ return () => restoreTextSelection({ target, doc: _document });
263
+ }
264
+ function restoreTextSelection({ target, doc } = {}) {
265
+ const _document = doc != null ? doc : document;
266
+ if (isIos()) {
267
+ if (state !== "disabled")
268
+ return;
269
+ state = "restoring";
270
+ setTimeout(() => {
271
+ nextTick(() => {
272
+ if (state === "restoring") {
273
+ if (_document.documentElement.style.webkitUserSelect === "none") {
274
+ _document.documentElement.style.webkitUserSelect = savedUserSelect || "";
275
+ }
276
+ savedUserSelect = "";
277
+ state = "default";
278
+ }
279
+ });
280
+ }, 300);
281
+ } else {
282
+ if (target && modifiedElementMap.has(target)) {
283
+ let targetOldUserSelect = modifiedElementMap.get(target);
284
+ if (target.style.userSelect === "none") {
285
+ target.style.userSelect = targetOldUserSelect != null ? targetOldUserSelect : "";
286
+ }
287
+ if (target.getAttribute("style") === "") {
288
+ target.removeAttribute("style");
289
+ }
290
+ modifiedElementMap.delete(target);
291
+ }
292
+ }
293
+ }
294
+
295
+ // ../../utilities/dom/src/pointer-event.ts
296
+ var THRESHOLD = 5;
297
+ function trackPointerMove(doc, opts) {
298
+ const { onPointerMove, onPointerUp } = opts;
299
+ const handlePointerMove = (event, info) => {
300
+ const { point: p } = info;
301
+ const distance = Math.sqrt(p.x ** 2 + p.y ** 2);
302
+ if (distance < THRESHOLD)
303
+ return;
304
+ if (isMouseEvent(event) && isLeftClick(event)) {
305
+ onPointerUp();
306
+ return;
307
+ }
308
+ onPointerMove(info, event);
309
+ };
310
+ return callAll(
311
+ addPointerEvent(doc, "pointermove", handlePointerMove, false),
312
+ addPointerEvent(doc, "pointerup", onPointerUp, false),
313
+ addPointerEvent(doc, "pointercancel", onPointerUp, false),
314
+ addPointerEvent(doc, "contextmenu", onPointerUp, false),
315
+ disableTextSelection({ doc })
316
+ );
317
+ }
318
+
319
+ // ../../utilities/number/src/number.ts
320
+ function round(v, t) {
321
+ let num = valueOf(v);
322
+ const p = 10 ** (t != null ? t : 10);
323
+ num = Math.round(num * p) / p;
324
+ return t ? num.toFixed(t) : v.toString();
325
+ }
326
+ function clamp(v, o) {
327
+ return Math.min(Math.max(valueOf(v), o.min), o.max);
328
+ }
329
+ function countDecimals(value) {
330
+ if (!Number.isFinite(value))
331
+ return 0;
332
+ let e = 1, p = 0;
333
+ while (Math.round(value * e) / e !== value) {
334
+ e *= 10;
335
+ p += 1;
336
+ }
337
+ return p;
338
+ }
339
+ var increment = (v, s) => decimalOperation(valueOf(v), "+", s);
340
+ var decrement = (v, s) => decimalOperation(valueOf(v), "-", s);
341
+ function snapToStep(value, step) {
342
+ const num = valueOf(value);
343
+ const p = countDecimals(step);
344
+ const v = Math.round(num / step) * step;
345
+ return round(v, p);
346
+ }
347
+ function valueOf(v) {
348
+ if (typeof v === "number")
349
+ return v;
350
+ const num = parseFloat(v.toString().replace(/[^\w.-]+/g, ""));
351
+ return !Number.isNaN(num) ? num : 0;
352
+ }
353
+ function decimalOperation(a, op, b) {
354
+ let result = op === "+" ? a + b : a - b;
355
+ if (a % 1 !== 0 || b % 1 !== 0) {
356
+ const multiplier = 10 ** Math.max(countDecimals(a), countDecimals(b));
357
+ a = Math.round(a * multiplier);
358
+ b = Math.round(b * multiplier);
359
+ result = op === "+" ? a + b : a - b;
360
+ result /= multiplier;
361
+ }
362
+ return result;
363
+ }
364
+
365
+ // src/splitter.dom.ts
366
+ var dom = defineDomHelpers({
367
+ getRootId: (ctx) => {
368
+ var _a, _b;
369
+ return (_b = (_a = ctx.ids) == null ? void 0 : _a.root) != null ? _b : `splitter:${ctx.id}`;
370
+ },
371
+ getSplitterId: (ctx) => {
372
+ var _a, _b;
373
+ return (_b = (_a = ctx.ids) == null ? void 0 : _a.splitter) != null ? _b : `splitter:${ctx.id}:splitter`;
374
+ },
375
+ getToggleButtonId: (ctx) => {
376
+ var _a, _b;
377
+ return (_b = (_a = ctx.ids) == null ? void 0 : _a.toggleBtn) != null ? _b : `splitter:${ctx.id}:toggle-btn`;
378
+ },
379
+ getLabelId: (ctx) => {
380
+ var _a, _b;
381
+ return (_b = (_a = ctx.ids) == null ? void 0 : _a.label) != null ? _b : `splitter:${ctx.id}:label`;
382
+ },
383
+ getPrimaryPaneId: (ctx) => {
384
+ var _a, _b;
385
+ return (_b = (_a = ctx.ids) == null ? void 0 : _a.primaryPane) != null ? _b : `splitter:${ctx.id}:primary`;
386
+ },
387
+ getSecondaryPaneId: (ctx) => {
388
+ var _a, _b;
389
+ return (_b = (_a = ctx.ids) == null ? void 0 : _a.secondaryPane) != null ? _b : `splitter:${ctx.id}:secondary`;
390
+ },
391
+ getSplitterEl: (ctx) => dom.getById(ctx, dom.getSplitterId(ctx)),
392
+ getPrimaryPaneEl: (ctx) => dom.getById(ctx, dom.getPrimaryPaneId(ctx)),
393
+ getCursor(ctx) {
394
+ if (ctx.disabled || ctx.fixed)
395
+ return "default";
396
+ const x = ctx.isHorizontal;
397
+ let cursor = x ? "col-resize" : "row-resize";
398
+ if (ctx.isAtMin)
399
+ cursor = x ? "e-resize" : "s-resize";
400
+ if (ctx.isAtMax)
401
+ cursor = x ? "w-resize" : "n-resize";
402
+ return cursor;
403
+ }
404
+ });
405
+
406
+ // src/splitter.machine.ts
407
+ var { not } = import_core.guards;
408
+ function machine(userContext) {
409
+ const ctx = compact(userContext);
410
+ return (0, import_core.createMachine)(
411
+ {
412
+ id: "splitter",
413
+ initial: "unknown",
414
+ context: {
415
+ orientation: "horizontal",
416
+ min: 224,
417
+ max: 340,
418
+ step: 1,
419
+ value: 256,
420
+ snapOffset: 0,
421
+ ...ctx
422
+ },
423
+ computed: {
424
+ isHorizontal: (ctx2) => ctx2.orientation === "horizontal",
425
+ isAtMin: (ctx2) => ctx2.value === ctx2.min,
426
+ isAtMax: (ctx2) => ctx2.value === ctx2.max
427
+ },
428
+ on: {
429
+ COLLAPSE: {
430
+ actions: "setToMin"
431
+ },
432
+ EXPAND: {
433
+ actions: "setToMax"
434
+ },
435
+ TOGGLE: [
436
+ {
437
+ guard: "isCollapsed",
438
+ actions: "setToMax"
439
+ },
440
+ {
441
+ actions: "setToMin"
442
+ }
443
+ ]
444
+ },
445
+ states: {
446
+ unknown: {
447
+ on: {
448
+ SETUP: "idle"
449
+ }
450
+ },
451
+ idle: {
452
+ on: {
453
+ POINTER_OVER: {
454
+ guard: not("isFixed"),
455
+ target: "hover:temp"
456
+ },
457
+ POINTER_LEAVE: "idle",
458
+ FOCUS: "focused"
459
+ }
460
+ },
461
+ "hover:temp": {
462
+ after: {
463
+ HOVER_DELAY: "hover"
464
+ },
465
+ on: {
466
+ POINTER_DOWN: {
467
+ target: "dragging",
468
+ actions: ["invokeOnChangeStart"]
469
+ },
470
+ POINTER_LEAVE: "idle"
471
+ }
472
+ },
473
+ hover: {
474
+ tags: ["focus"],
475
+ on: {
476
+ POINTER_DOWN: {
477
+ target: "dragging",
478
+ actions: ["invokeOnChangeStart"]
479
+ },
480
+ POINTER_LEAVE: "idle"
481
+ }
482
+ },
483
+ focused: {
484
+ tags: ["focus"],
485
+ on: {
486
+ BLUR: "idle",
487
+ POINTER_DOWN: {
488
+ target: "dragging",
489
+ actions: ["invokeOnChangeStart"]
490
+ },
491
+ ARROW_LEFT: {
492
+ guard: "isHorizontal",
493
+ actions: "decrement"
494
+ },
495
+ ARROW_RIGHT: {
496
+ guard: "isHorizontal",
497
+ actions: "increment"
498
+ },
499
+ ARROW_UP: {
500
+ guard: "isVertical",
501
+ actions: "increment"
502
+ },
503
+ ARROW_DOWN: {
504
+ guard: "isVertical",
505
+ actions: "decrement"
506
+ },
507
+ ENTER: [
508
+ {
509
+ guard: "isCollapsed",
510
+ actions: "setToMin"
511
+ },
512
+ { actions: "setToMin" }
513
+ ],
514
+ HOME: {
515
+ actions: "setToMin"
516
+ },
517
+ END: {
518
+ actions: "setToMax"
519
+ },
520
+ DOUBLE_CLICK: [
521
+ {
522
+ guard: "isCollapsed",
523
+ actions: "setToMax"
524
+ },
525
+ { actions: "setToMin" }
526
+ ]
527
+ }
528
+ },
529
+ dragging: {
530
+ tags: ["focus"],
531
+ entry: "focusSplitter",
532
+ activities: "trackPointerMove",
533
+ on: {
534
+ POINTER_UP: {
535
+ target: "focused",
536
+ actions: ["invokeOnChangeEnd"]
537
+ },
538
+ POINTER_MOVE: {
539
+ actions: "setPointerValue"
540
+ }
541
+ }
542
+ }
543
+ }
544
+ },
545
+ {
546
+ activities: {
547
+ trackPointerMove: (ctx2, _evt, { send }) => {
548
+ const doc = dom.getDoc(ctx2);
549
+ return trackPointerMove(doc, {
550
+ onPointerMove(info) {
551
+ send({ type: "POINTER_MOVE", point: info.point });
552
+ doc.documentElement.style.cursor = dom.getCursor(ctx2);
553
+ },
554
+ onPointerUp() {
555
+ send("POINTER_UP");
556
+ doc.documentElement.style.cursor = "";
557
+ }
558
+ });
559
+ }
560
+ },
561
+ guards: {
562
+ isCollapsed: (ctx2) => ctx2.isAtMin,
563
+ isHorizontal: (ctx2) => ctx2.isHorizontal,
564
+ isVertical: (ctx2) => !ctx2.isHorizontal,
565
+ isFixed: (ctx2) => !!ctx2.fixed
566
+ },
567
+ delays: {
568
+ HOVER_DELAY: 250
569
+ },
570
+ actions: {
571
+ invokeOnChange(ctx2, evt) {
572
+ var _a;
573
+ if (evt.type !== "SETUP") {
574
+ (_a = ctx2.onChange) == null ? void 0 : _a.call(ctx2, { value: ctx2.value });
575
+ }
576
+ },
577
+ invokeOnChangeStart(ctx2) {
578
+ var _a;
579
+ (_a = ctx2.onChangeStart) == null ? void 0 : _a.call(ctx2, { value: ctx2.value });
580
+ },
581
+ invokeOnChangeEnd(ctx2) {
582
+ var _a;
583
+ (_a = ctx2.onChangeEnd) == null ? void 0 : _a.call(ctx2, { value: ctx2.value });
584
+ },
585
+ setToMin(ctx2) {
586
+ ctx2.value = ctx2.min;
587
+ },
588
+ setToMax(ctx2) {
589
+ ctx2.value = ctx2.max;
590
+ },
591
+ increment(ctx2, evt) {
592
+ ctx2.value = clamp(increment(ctx2.value, evt.step), ctx2);
593
+ },
594
+ decrement(ctx2, evt) {
595
+ ctx2.value = clamp(decrement(ctx2.value, evt.step), ctx2);
596
+ },
597
+ focusSplitter(ctx2) {
598
+ raf(() => {
599
+ var _a;
600
+ return (_a = dom.getSplitterEl(ctx2)) == null ? void 0 : _a.focus();
601
+ });
602
+ },
603
+ setPointerValue(ctx2, evt) {
604
+ const el = dom.getPrimaryPaneEl(ctx2);
605
+ if (!el)
606
+ return;
607
+ const relativePoint = getPointRelativeToNode(evt.point, el);
608
+ let currentPoint = ctx2.isHorizontal ? relativePoint.x : relativePoint.y;
609
+ let value = parseFloat(snapToStep(clamp(currentPoint, ctx2), ctx2.step));
610
+ if (Math.abs(value - ctx2.min) <= ctx2.snapOffset) {
611
+ value = ctx2.min;
612
+ } else if (Math.abs(value - ctx2.max) <= ctx2.snapOffset) {
613
+ value = ctx2.max;
614
+ }
615
+ ctx2.value = value;
616
+ }
617
+ }
618
+ }
619
+ );
620
+ }
621
+ // Annotate the CommonJS export names for ESM import in node:
622
+ 0 && (module.exports = {
623
+ machine
624
+ });
@@ -0,0 +1,7 @@
1
+ import {
2
+ machine
3
+ } from "./chunk-F2ZDEPE3.mjs";
4
+ import "./chunk-A3GF7W2N.mjs";
5
+ export {
6
+ machine
7
+ };