likec4 1.1.0 → 1.1.1

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.
@@ -18,7 +18,7 @@ function getDefaultExportFromCjs(x2) {
18
18
  return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2.default : x2;
19
19
  }
20
20
  var jsxRuntime = { exports: {} }, reactJsxRuntime_production_min = {}, react = { exports: {} }, react_production_min = {};
21
- var l$2 = Symbol.for("react.element"), n$3 = Symbol.for("react.portal"), p$5 = Symbol.for("react.fragment"), q$4 = Symbol.for("react.strict_mode"), r$4 = Symbol.for("react.profiler"), t$2 = Symbol.for("react.provider"), u$3 = Symbol.for("react.context"), v$3 = Symbol.for("react.forward_ref"), w$2 = Symbol.for("react.suspense"), x$1 = Symbol.for("react.memo"), y$1 = Symbol.for("react.lazy"), z$2 = Symbol.iterator;
21
+ var l$2 = Symbol.for("react.element"), n$3 = Symbol.for("react.portal"), p$5 = Symbol.for("react.fragment"), q$4 = Symbol.for("react.strict_mode"), r$4 = Symbol.for("react.profiler"), t$2 = Symbol.for("react.provider"), u$3 = Symbol.for("react.context"), v$3 = Symbol.for("react.forward_ref"), w$2 = Symbol.for("react.suspense"), x$2 = Symbol.for("react.memo"), y$2 = Symbol.for("react.lazy"), z$2 = Symbol.iterator;
22
22
  function A$2(a) {
23
23
  return a === null || typeof a != "object" ? null : (a = z$2 && a[z$2] || a["@@iterator"], typeof a == "function" ? a : null);
24
24
  }
@@ -205,10 +205,10 @@ react_production_min.forwardRef = function(a) {
205
205
  };
206
206
  react_production_min.isValidElement = O$2;
207
207
  react_production_min.lazy = function(a) {
208
- return { $$typeof: y$1, _payload: { _status: -1, _result: a }, _init: T$2 };
208
+ return { $$typeof: y$2, _payload: { _status: -1, _result: a }, _init: T$2 };
209
209
  };
210
210
  react_production_min.memo = function(a, b2) {
211
- return { $$typeof: x$1, type: a, compare: b2 === void 0 ? null : b2 };
211
+ return { $$typeof: x$2, type: a, compare: b2 === void 0 ? null : b2 };
212
212
  };
213
213
  react_production_min.startTransition = function(a) {
214
214
  var b2 = V$2.transition;
@@ -3318,11 +3318,11 @@ function ni(a, b2, c2) {
3318
3318
  a.flags |= 16384, a = { getSnapshot: b2, value: c2 }, b2 = N$1.updateQueue, b2 === null ? (b2 = { lastEffect: null, stores: null }, N$1.updateQueue = b2, b2.stores = [a]) : (c2 = b2.stores, c2 === null ? b2.stores = [a] : c2.push(a));
3319
3319
  }
3320
3320
  function mi(a, b2, c2, d2) {
3321
- b2.value = c2, b2.getSnapshot = d2, oi(b2) && pi(a);
3321
+ b2.value = c2, b2.getSnapshot = d2, oi(b2) && pi$1(a);
3322
3322
  }
3323
3323
  function ki(a, b2, c2) {
3324
3324
  return c2(function() {
3325
- oi(b2) && pi(a);
3325
+ oi(b2) && pi$1(a);
3326
3326
  });
3327
3327
  }
3328
3328
  function oi(a) {
@@ -3335,7 +3335,7 @@ function oi(a) {
3335
3335
  return !0;
3336
3336
  }
3337
3337
  }
3338
- function pi(a) {
3338
+ function pi$1(a) {
3339
3339
  var b2 = Zg(a, 1);
3340
3340
  b2 !== null && mh(b2, a, 1, -1);
3341
3341
  }
@@ -6323,26 +6323,26 @@ function createHashHistory(opts) {
6323
6323
  function createMemoryHistory(opts = {
6324
6324
  initialEntries: ["/"]
6325
6325
  }) {
6326
- const entries = opts.initialEntries;
6327
- let index2 = opts.initialIndex ?? entries.length - 1, currentState = {
6326
+ const entries2 = opts.initialEntries;
6327
+ let index2 = opts.initialIndex ?? entries2.length - 1, currentState = {
6328
6328
  key: createRandomKey()
6329
6329
  };
6330
6330
  return createHistory({
6331
- getLocation: () => parseHref(entries[index2], currentState),
6331
+ getLocation: () => parseHref(entries2[index2], currentState),
6332
6332
  pushState: (path, state) => {
6333
- currentState = state, entries.push(path), index2 = Math.max(entries.length - 1, 0);
6333
+ currentState = state, entries2.push(path), index2 = Math.max(entries2.length - 1, 0);
6334
6334
  },
6335
6335
  replaceState: (path, state) => {
6336
- currentState = state, entries[index2] = path;
6336
+ currentState = state, entries2[index2] = path;
6337
6337
  },
6338
6338
  back: () => {
6339
6339
  currentState = assignKey(currentState), index2--;
6340
6340
  },
6341
6341
  forward: () => {
6342
- currentState = assignKey(currentState), index2 = Math.min(index2 + 1, entries.length - 1);
6342
+ currentState = assignKey(currentState), index2 = Math.min(index2 + 1, entries2.length - 1);
6343
6343
  },
6344
6344
  go: (n2) => {
6345
- currentState = assignKey(currentState), index2 = Math.min(Math.max(index2 + n2, 0), entries.length - 1);
6345
+ currentState = assignKey(currentState), index2 = Math.min(Math.max(index2 + n2, 0), entries2.length - 1);
6346
6346
  },
6347
6347
  createHref: (path) => path
6348
6348
  });
@@ -9175,6 +9175,9 @@ function useHovered() {
9175
9175
  const [hovered, setHovered] = reactExports.useState(-1);
9176
9176
  return [hovered, { setHovered, resetHovered: () => setHovered(-1) }];
9177
9177
  }
9178
+ function clamp$5(value, min2, max2) {
9179
+ return min2 === void 0 && max2 === void 0 ? value : min2 !== void 0 && max2 === void 0 ? Math.max(value, min2) : Math.min(min2 === void 0 && max2 !== void 0 ? value : Math.max(value, min2), max2);
9180
+ }
9178
9181
  function randomId() {
9179
9182
  return `mantine-${Math.random().toString(36).slice(2, 11)}`;
9180
9183
  }
@@ -9386,6 +9389,94 @@ function useId$1(staticId) {
9386
9389
  function useWindowEvent(type, listener, options) {
9387
9390
  reactExports.useEffect(() => (window.addEventListener(type, listener, options), () => window.removeEventListener(type, listener, options)), [type, listener]);
9388
9391
  }
9392
+ function serializeJSON(value, hookName = "use-local-storage") {
9393
+ try {
9394
+ return JSON.stringify(value);
9395
+ } catch {
9396
+ throw new Error(`@mantine/hooks ${hookName}: Failed to serialize the value`);
9397
+ }
9398
+ }
9399
+ function deserializeJSON(value) {
9400
+ try {
9401
+ return value && JSON.parse(value);
9402
+ } catch {
9403
+ return value;
9404
+ }
9405
+ }
9406
+ function createStorageHandler(type) {
9407
+ return { getItem: (key) => {
9408
+ try {
9409
+ return window[type].getItem(key);
9410
+ } catch {
9411
+ return console.warn("use-local-storage: Failed to get value from storage, localStorage is blocked"), null;
9412
+ }
9413
+ }, setItem: (key, value) => {
9414
+ try {
9415
+ window[type].setItem(key, value);
9416
+ } catch {
9417
+ console.warn("use-local-storage: Failed to set value to storage, localStorage is blocked");
9418
+ }
9419
+ }, removeItem: (key) => {
9420
+ try {
9421
+ window[type].removeItem(key);
9422
+ } catch {
9423
+ console.warn(
9424
+ "use-local-storage: Failed to remove value from storage, localStorage is blocked"
9425
+ );
9426
+ }
9427
+ } };
9428
+ }
9429
+ function createStorage(type, hookName) {
9430
+ const eventName = type === "localStorage" ? "mantine-local-storage" : "mantine-session-storage", { getItem, setItem, removeItem: removeItem2 } = createStorageHandler(type);
9431
+ return function({
9432
+ key,
9433
+ defaultValue,
9434
+ getInitialValueInEffect = !0,
9435
+ deserialize = deserializeJSON,
9436
+ serialize = (value) => serializeJSON(value, hookName)
9437
+ }) {
9438
+ const readStorageValue = reactExports.useCallback(
9439
+ (skipStorage) => {
9440
+ let storageBlockedOrSkipped;
9441
+ try {
9442
+ storageBlockedOrSkipped = typeof window > "u" || !(type in window) || window[type] === null || !!skipStorage;
9443
+ } catch {
9444
+ storageBlockedOrSkipped = !0;
9445
+ }
9446
+ if (storageBlockedOrSkipped)
9447
+ return defaultValue;
9448
+ const storageValue = getItem(key);
9449
+ return storageValue !== null ? deserialize(storageValue) : defaultValue;
9450
+ },
9451
+ [key, defaultValue]
9452
+ ), [value, setValue] = reactExports.useState(readStorageValue(getInitialValueInEffect)), setStorageValue = reactExports.useCallback(
9453
+ (val) => {
9454
+ val instanceof Function ? setValue((current) => {
9455
+ const result = val(current);
9456
+ return setItem(key, serialize(result)), window.dispatchEvent(
9457
+ new CustomEvent(eventName, { detail: { key, value: val(current) } })
9458
+ ), result;
9459
+ }) : (setItem(key, serialize(val)), window.dispatchEvent(new CustomEvent(eventName, { detail: { key, value: val } })), setValue(val));
9460
+ },
9461
+ [key]
9462
+ ), removeStorageValue = reactExports.useCallback(() => {
9463
+ removeItem2(key), window.dispatchEvent(new CustomEvent(eventName, { detail: { key, value: defaultValue } }));
9464
+ }, []);
9465
+ return useWindowEvent("storage", (event) => {
9466
+ event.storageArea === window[type] && event.key === key && setValue(deserialize(event.newValue ?? void 0));
9467
+ }), useWindowEvent(eventName, (event) => {
9468
+ event.detail.key === key && setValue(event.detail.value);
9469
+ }), reactExports.useEffect(() => {
9470
+ defaultValue !== void 0 && value === void 0 && setStorageValue(defaultValue);
9471
+ }, [defaultValue, value, setStorageValue]), reactExports.useEffect(() => {
9472
+ const val = readStorageValue();
9473
+ val !== void 0 && setStorageValue(val);
9474
+ }, []), [value === void 0 ? defaultValue : value, setStorageValue, removeStorageValue];
9475
+ };
9476
+ }
9477
+ function useLocalStorage(props) {
9478
+ return createStorage("localStorage", "use-local-storage")(props);
9479
+ }
9389
9480
  function assignRef(ref, value) {
9390
9481
  typeof ref == "function" ? ref(value) : typeof ref == "object" && ref !== null && "current" in ref && (ref.current = value);
9391
9482
  }
@@ -9397,6 +9488,47 @@ function mergeRefs(...refs) {
9397
9488
  function useMergedRef(...refs) {
9398
9489
  return reactExports.useCallback(mergeRefs(...refs), refs);
9399
9490
  }
9491
+ function useMove(onChange, handlers, dir = "ltr") {
9492
+ const ref = reactExports.useRef(null), mounted = reactExports.useRef(!1), isSliding = reactExports.useRef(!1), frame2 = reactExports.useRef(0), [active, setActive] = reactExports.useState(!1);
9493
+ return reactExports.useEffect(() => {
9494
+ mounted.current = !0;
9495
+ }, []), reactExports.useEffect(() => {
9496
+ const onScrub = ({ x: x2, y: y2 }) => {
9497
+ cancelAnimationFrame(frame2.current), frame2.current = requestAnimationFrame(() => {
9498
+ if (mounted.current && ref.current) {
9499
+ ref.current.style.userSelect = "none";
9500
+ const rect = ref.current.getBoundingClientRect();
9501
+ if (rect.width && rect.height) {
9502
+ const _x = clamp$5((x2 - rect.left) / rect.width, 0, 1);
9503
+ onChange({
9504
+ x: dir === "ltr" ? _x : 1 - _x,
9505
+ y: clamp$5((y2 - rect.top) / rect.height, 0, 1)
9506
+ });
9507
+ }
9508
+ }
9509
+ });
9510
+ }, bindEvents = () => {
9511
+ document.addEventListener("mousemove", onMouseMove), document.addEventListener("mouseup", stopScrubbing), document.addEventListener("touchmove", onTouchMove), document.addEventListener("touchend", stopScrubbing);
9512
+ }, unbindEvents = () => {
9513
+ document.removeEventListener("mousemove", onMouseMove), document.removeEventListener("mouseup", stopScrubbing), document.removeEventListener("touchmove", onTouchMove), document.removeEventListener("touchend", stopScrubbing);
9514
+ }, startScrubbing = () => {
9515
+ !isSliding.current && mounted.current && (isSliding.current = !0, typeof handlers?.onScrubStart == "function" && handlers.onScrubStart(), setActive(!0), bindEvents());
9516
+ }, stopScrubbing = () => {
9517
+ isSliding.current && mounted.current && (isSliding.current = !1, setActive(!1), unbindEvents(), setTimeout(() => {
9518
+ typeof handlers?.onScrubEnd == "function" && handlers.onScrubEnd();
9519
+ }, 0));
9520
+ }, onMouseDown = (event) => {
9521
+ startScrubbing(), event.preventDefault(), onMouseMove(event);
9522
+ }, onMouseMove = (event) => onScrub({ x: event.clientX, y: event.clientY }), onTouchStart = (event) => {
9523
+ event.cancelable && event.preventDefault(), startScrubbing(), onTouchMove(event);
9524
+ }, onTouchMove = (event) => {
9525
+ event.cancelable && event.preventDefault(), onScrub({ x: event.changedTouches[0].clientX, y: event.changedTouches[0].clientY });
9526
+ };
9527
+ return ref.current?.addEventListener("mousedown", onMouseDown), ref.current?.addEventListener("touchstart", onTouchStart, { passive: !1 }), () => {
9528
+ ref.current && (ref.current.removeEventListener("mousedown", onMouseDown), ref.current.removeEventListener("touchstart", onTouchStart));
9529
+ };
9530
+ }, [dir, onChange]), { ref, active };
9531
+ }
9400
9532
  function useUncontrolled({
9401
9533
  value,
9402
9534
  defaultValue,
@@ -9414,6 +9546,34 @@ function useUncontrolled({
9414
9546
  function useReducedMotion(initialValue, options) {
9415
9547
  return useMediaQuery("(prefers-reduced-motion: reduce)", initialValue, options);
9416
9548
  }
9549
+ const defaultState = {
9550
+ x: 0,
9551
+ y: 0,
9552
+ width: 0,
9553
+ height: 0,
9554
+ top: 0,
9555
+ left: 0,
9556
+ bottom: 0,
9557
+ right: 0
9558
+ };
9559
+ function useResizeObserver$2(options) {
9560
+ const frameID = reactExports.useRef(0), ref = reactExports.useRef(null), [rect, setRect] = reactExports.useState(defaultState), observer = reactExports.useMemo(
9561
+ () => typeof window < "u" ? new ResizeObserver((entries2) => {
9562
+ const entry = entries2[0];
9563
+ entry && (cancelAnimationFrame(frameID.current), frameID.current = requestAnimationFrame(() => {
9564
+ ref.current && setRect(entry.contentRect);
9565
+ }));
9566
+ }) : null,
9567
+ []
9568
+ );
9569
+ return reactExports.useEffect(() => (ref.current && observer?.observe(ref.current, options), () => {
9570
+ observer?.disconnect(), frameID.current && cancelAnimationFrame(frameID.current);
9571
+ }), [ref.current]), [ref, rect];
9572
+ }
9573
+ function useElementSize(options) {
9574
+ const [ref, { width, height }] = useResizeObserver$2(options);
9575
+ return { ref, width, height };
9576
+ }
9417
9577
  function useDisclosure(initialState2 = !1, callbacks) {
9418
9578
  const { onOpen, onClose } = callbacks || {}, [opened, setOpened] = reactExports.useState(initialState2), open = reactExports.useCallback(() => {
9419
9579
  setOpened((isOpened) => isOpened || (onOpen?.(), !0));
@@ -9424,6 +9584,35 @@ function useDisclosure(initialState2 = !1, callbacks) {
9424
9584
  }, [close, open, opened]);
9425
9585
  return [opened, { open, close, toggle }];
9426
9586
  }
9587
+ function useTimeout(callback, delay2, options = { autoInvoke: !1 }) {
9588
+ const timeoutRef = reactExports.useRef(null), start2 = reactExports.useCallback(
9589
+ (...callbackParams) => {
9590
+ timeoutRef.current || (timeoutRef.current = window.setTimeout(() => {
9591
+ callback(callbackParams), timeoutRef.current = null;
9592
+ }, delay2));
9593
+ },
9594
+ [delay2]
9595
+ ), clear = reactExports.useCallback(() => {
9596
+ timeoutRef.current && (window.clearTimeout(timeoutRef.current), timeoutRef.current = null);
9597
+ }, []);
9598
+ return reactExports.useEffect(() => (options.autoInvoke && start2(), clear), [clear, start2]), { start: start2, clear };
9599
+ }
9600
+ function useMutationObserver(callback, options, target) {
9601
+ const observer = reactExports.useRef(), ref = reactExports.useRef(null);
9602
+ return reactExports.useEffect(() => {
9603
+ const targetElement = typeof target == "function" ? target() : target;
9604
+ return (targetElement || ref.current) && (observer.current = new MutationObserver(callback), observer.current.observe(targetElement || ref.current, options)), () => {
9605
+ observer.current?.disconnect();
9606
+ };
9607
+ }, [callback, options]), ref;
9608
+ }
9609
+ function useMounted() {
9610
+ const [mounted, setMounted] = reactExports.useState(!1);
9611
+ return reactExports.useEffect(() => setMounted(!0), []), mounted;
9612
+ }
9613
+ function getEnv() {
9614
+ return typeof process < "u" && process.env ? "production" : "development";
9615
+ }
9427
9616
  function r$1(e2) {
9428
9617
  var t2, f2, n2 = "";
9429
9618
  if (typeof e2 == "string" || typeof e2 == "number")
@@ -11247,11 +11436,11 @@ const Corner = reactExports.forwardRef((props, ref) => {
11247
11436
  }), ScrollAreaCorner = reactExports.forwardRef((props, ref) => {
11248
11437
  const ctx = useScrollAreaContext(), hasBothScrollbarsVisible = !!(ctx.scrollbarX && ctx.scrollbarY);
11249
11438
  return ctx.type !== "scroll" && hasBothScrollbarsVisible ? /* @__PURE__ */ jsxRuntimeExports.jsx(Corner, { ...props, ref }) : null;
11250
- }), defaultProps$1h = {
11439
+ }), defaultProps$1l = {
11251
11440
  scrollHideDelay: 1e3,
11252
11441
  type: "hover"
11253
11442
  }, ScrollAreaRoot = reactExports.forwardRef((_props, ref) => {
11254
- const props = useProps("ScrollAreaRoot", defaultProps$1h, _props), { type, scrollHideDelay, scrollbars, ...others } = props, [scrollArea, setScrollArea] = reactExports.useState(null), [viewport, setViewport] = reactExports.useState(null), [content2, setContent] = reactExports.useState(null), [scrollbarX, setScrollbarX] = reactExports.useState(null), [scrollbarY, setScrollbarY] = reactExports.useState(null), [cornerWidth, setCornerWidth] = reactExports.useState(0), [cornerHeight, setCornerHeight] = reactExports.useState(0), [scrollbarXEnabled, setScrollbarXEnabled] = reactExports.useState(!1), [scrollbarYEnabled, setScrollbarYEnabled] = reactExports.useState(!1), rootRef = useMergedRef(ref, (node) => setScrollArea(node));
11443
+ const props = useProps("ScrollAreaRoot", defaultProps$1l, _props), { type, scrollHideDelay, scrollbars, ...others } = props, [scrollArea, setScrollArea] = reactExports.useState(null), [viewport, setViewport] = reactExports.useState(null), [content2, setContent] = reactExports.useState(null), [scrollbarX, setScrollbarX] = reactExports.useState(null), [scrollbarY, setScrollbarY] = reactExports.useState(null), [cornerWidth, setCornerWidth] = reactExports.useState(0), [cornerHeight, setCornerHeight] = reactExports.useState(0), [scrollbarXEnabled, setScrollbarXEnabled] = reactExports.useState(!1), [scrollbarYEnabled, setScrollbarYEnabled] = reactExports.useState(!1), rootRef = useMergedRef(ref, (node) => setScrollArea(node));
11255
11444
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
11256
11445
  ScrollAreaProvider,
11257
11446
  {
@@ -11602,7 +11791,7 @@ function addUnlinkedScrollListener(node, handler = () => {
11602
11791
  (isHorizontalScroll || isVerticalScroll) && handler(), prevPosition = position, rAF = window.requestAnimationFrame(loop);
11603
11792
  }(), () => window.cancelAnimationFrame(rAF);
11604
11793
  }
11605
- const Thumb = reactExports.forwardRef((props, forwardedRef) => {
11794
+ const Thumb$1 = reactExports.forwardRef((props, forwardedRef) => {
11606
11795
  const { style: style2, ...others } = props, scrollAreaContext = useScrollAreaContext(), scrollbarContext = useScrollbarContext(), { onThumbPositionChange } = scrollbarContext, composedRef = useMergedRef(forwardedRef, (node) => scrollbarContext.onThumbChange(node)), removeUnlinkedScrollListenerRef = reactExports.useRef(), debounceScrollEnd = useDebouncedCallback$1(() => {
11607
11796
  removeUnlinkedScrollListenerRef.current && (removeUnlinkedScrollListenerRef.current(), removeUnlinkedScrollListenerRef.current = void 0);
11608
11797
  }, 100);
@@ -11638,7 +11827,7 @@ const Thumb = reactExports.forwardRef((props, forwardedRef) => {
11638
11827
  }), ScrollAreaThumb = reactExports.forwardRef(
11639
11828
  (props, forwardedRef) => {
11640
11829
  const { forceMount, ...thumbProps } = props, scrollbarContext = useScrollbarContext();
11641
- return forceMount || scrollbarContext.hasThumb ? /* @__PURE__ */ jsxRuntimeExports.jsx(Thumb, { ref: forwardedRef, ...thumbProps }) : null;
11830
+ return forceMount || scrollbarContext.hasThumb ? /* @__PURE__ */ jsxRuntimeExports.jsx(Thumb$1, { ref: forwardedRef, ...thumbProps }) : null;
11642
11831
  }
11643
11832
  ), ScrollAreaViewport = reactExports.forwardRef(
11644
11833
  ({ children: children2, style: style2, ...others }, ref) => {
@@ -11659,17 +11848,17 @@ const Thumb = reactExports.forwardRef((props, forwardedRef) => {
11659
11848
  }
11660
11849
  );
11661
11850
  ScrollAreaViewport.displayName = "@mantine/core/ScrollAreaViewport";
11662
- var __default__$w = { root: "m_d57069b5", viewport: "m_c0783ff9", viewportInner: "m_f8f631dd", scrollbar: "m_c44ba933", thumb: "m_d8b5e363", corner: "m_21657268" };
11663
- const classes$u = __default__$w, defaultProps$1g = {
11851
+ var __default__$A = { root: "m_d57069b5", viewport: "m_c0783ff9", viewportInner: "m_f8f631dd", scrollbar: "m_c44ba933", thumb: "m_d8b5e363", corner: "m_21657268" };
11852
+ const classes$y = __default__$A, defaultProps$1k = {
11664
11853
  scrollHideDelay: 1e3,
11665
11854
  type: "hover",
11666
11855
  scrollbars: "xy"
11667
- }, varsResolver$x = (_2, { scrollbarSize }) => ({
11856
+ }, varsResolver$B = (_2, { scrollbarSize }) => ({
11668
11857
  root: {
11669
11858
  "--scrollarea-scrollbar-size": rem(scrollbarSize)
11670
11859
  }
11671
11860
  }), ScrollArea = factory((_props, ref) => {
11672
- const props = useProps("ScrollArea", defaultProps$1g, _props), {
11861
+ const props = useProps("ScrollArea", defaultProps$1k, _props), {
11673
11862
  classNames,
11674
11863
  className,
11675
11864
  style: style2,
@@ -11689,14 +11878,14 @@ const classes$u = __default__$w, defaultProps$1g = {
11689
11878
  } = props, [scrollbarHovered, setScrollbarHovered] = reactExports.useState(!1), getStyles2 = useStyles({
11690
11879
  name: "ScrollArea",
11691
11880
  props,
11692
- classes: classes$u,
11881
+ classes: classes$y,
11693
11882
  className,
11694
11883
  style: style2,
11695
11884
  classNames,
11696
11885
  styles,
11697
11886
  unstyled,
11698
11887
  vars,
11699
- varsResolver: varsResolver$x
11888
+ varsResolver: varsResolver$B
11700
11889
  });
11701
11890
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
11702
11891
  ScrollAreaRoot,
@@ -11778,7 +11967,7 @@ const ScrollAreaAutosize = factory((props, ref) => {
11778
11967
  style: style2,
11779
11968
  vars,
11780
11969
  ...others
11781
- } = useProps("ScrollAreaAutosize", defaultProps$1g, props);
11970
+ } = useProps("ScrollAreaAutosize", defaultProps$1k, props);
11782
11971
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { ...others, ref, style: [{ display: "flex", overflow: "auto" }, style2], children: /* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { style: { display: "flex", flexDirection: "column", flex: 1 }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
11783
11972
  ScrollArea,
11784
11973
  {
@@ -11800,16 +11989,16 @@ const ScrollAreaAutosize = factory((props, ref) => {
11800
11989
  }
11801
11990
  ) }) });
11802
11991
  });
11803
- ScrollArea.classes = classes$u;
11992
+ ScrollArea.classes = classes$y;
11804
11993
  ScrollAreaAutosize.displayName = "@mantine/core/ScrollAreaAutosize";
11805
- ScrollAreaAutosize.classes = classes$u;
11994
+ ScrollAreaAutosize.classes = classes$y;
11806
11995
  ScrollArea.Autosize = ScrollAreaAutosize;
11807
- var __default__$v = { root: "m_87cf2631" };
11808
- const classes$t = __default__$v, defaultProps$1f = {
11996
+ var __default__$z = { root: "m_87cf2631" };
11997
+ const classes$x = __default__$z, defaultProps$1j = {
11809
11998
  __staticSelector: "UnstyledButton"
11810
11999
  }, UnstyledButton = polymorphicFactory(
11811
12000
  (_props, ref) => {
11812
- const props = useProps("UnstyledButton", defaultProps$1f, _props), {
12001
+ const props = useProps("UnstyledButton", defaultProps$1j, _props), {
11813
12002
  className,
11814
12003
  component = "button",
11815
12004
  __staticSelector,
@@ -11821,7 +12010,7 @@ const classes$t = __default__$v, defaultProps$1f = {
11821
12010
  } = props, getStyles2 = useStyles({
11822
12011
  name: __staticSelector,
11823
12012
  props,
11824
- classes: classes$t,
12013
+ classes: classes$x,
11825
12014
  className,
11826
12015
  style: style2,
11827
12016
  classNames,
@@ -11840,13 +12029,13 @@ const classes$t = __default__$v, defaultProps$1f = {
11840
12029
  );
11841
12030
  }
11842
12031
  );
11843
- UnstyledButton.classes = classes$t;
12032
+ UnstyledButton.classes = classes$x;
11844
12033
  UnstyledButton.displayName = "@mantine/core/UnstyledButton";
11845
- var __default__$u = { root: "m_515a97f8" };
11846
- const classes$s = __default__$u, defaultProps$1e = {}, VisuallyHidden = factory((_props, ref) => {
11847
- const props = useProps("VisuallyHidden", defaultProps$1e, _props), { classNames, className, style: style2, styles, unstyled, vars, ...others } = props, getStyles2 = useStyles({
12034
+ var __default__$y = { root: "m_515a97f8" };
12035
+ const classes$w = __default__$y, defaultProps$1i = {}, VisuallyHidden = factory((_props, ref) => {
12036
+ const props = useProps("VisuallyHidden", defaultProps$1i, _props), { classNames, className, style: style2, styles, unstyled, vars, ...others } = props, getStyles2 = useStyles({
11848
12037
  name: "VisuallyHidden",
11849
- classes: classes$s,
12038
+ classes: classes$w,
11850
12039
  props,
11851
12040
  className,
11852
12041
  style: style2,
@@ -11856,16 +12045,16 @@ const classes$s = __default__$u, defaultProps$1e = {}, VisuallyHidden = factory(
11856
12045
  });
11857
12046
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { component: "span", ref, ...getStyles2("root"), ...others });
11858
12047
  });
11859
- VisuallyHidden.classes = classes$s;
12048
+ VisuallyHidden.classes = classes$w;
11860
12049
  VisuallyHidden.displayName = "@mantine/core/VisuallyHidden";
11861
- var __default__$t = { root: "m_1b7284a3" };
11862
- const classes$r = __default__$t, defaultProps$1d = {}, varsResolver$w = (_2, { radius, shadow }) => ({
12050
+ var __default__$x = { root: "m_1b7284a3" };
12051
+ const classes$v = __default__$x, defaultProps$1h = {}, varsResolver$A = (_2, { radius, shadow }) => ({
11863
12052
  root: {
11864
12053
  "--paper-radius": radius === void 0 ? void 0 : getRadius$1(radius),
11865
12054
  "--paper-shadow": getShadow(shadow)
11866
12055
  }
11867
12056
  }), Paper = polymorphicFactory((_props, ref) => {
11868
- const props = useProps("Paper", defaultProps$1d, _props), {
12057
+ const props = useProps("Paper", defaultProps$1h, _props), {
11869
12058
  classNames,
11870
12059
  className,
11871
12060
  style: style2,
@@ -11881,14 +12070,14 @@ const classes$r = __default__$t, defaultProps$1d = {}, varsResolver$w = (_2, { r
11881
12070
  } = props, getStyles2 = useStyles({
11882
12071
  name: "Paper",
11883
12072
  props,
11884
- classes: classes$r,
12073
+ classes: classes$v,
11885
12074
  className,
11886
12075
  style: style2,
11887
12076
  classNames,
11888
12077
  styles,
11889
12078
  unstyled,
11890
12079
  vars,
11891
- varsResolver: varsResolver$w
12080
+ varsResolver: varsResolver$A
11892
12081
  });
11893
12082
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
11894
12083
  Box$1,
@@ -11901,7 +12090,7 @@ const classes$r = __default__$t, defaultProps$1d = {}, varsResolver$w = (_2, { r
11901
12090
  }
11902
12091
  );
11903
12092
  });
11904
- Paper.classes = classes$r;
12093
+ Paper.classes = classes$v;
11905
12094
  Paper.displayName = "@mantine/core/Paper";
11906
12095
  function getNodeName(node) {
11907
12096
  return isNode$1(node) ? (node.nodeName || "").toLowerCase() : "#document";
@@ -12985,8 +13174,8 @@ function observeMove(element, onMove) {
12985
13174
  threshold: max(0, min(1, threshold)) || 1
12986
13175
  };
12987
13176
  let isFirstUpdate = !0;
12988
- function handleObserve(entries) {
12989
- const ratio = entries[0].intersectionRatio;
13177
+ function handleObserve(entries2) {
13178
+ const ratio = entries2[0].intersectionRatio;
12990
13179
  if (ratio !== threshold) {
12991
13180
  if (!isFirstUpdate)
12992
13181
  return refresh();
@@ -14085,8 +14274,8 @@ function createPortalNode(props) {
14085
14274
  const node = document.createElement("div");
14086
14275
  return node.setAttribute("data-portal", "true"), typeof props.className == "string" && node.classList.add(...props.className.split(" ").filter(Boolean)), typeof props.style == "object" && Object.assign(node.style, props.style), typeof props.id == "string" && node.setAttribute("id", props.id), node;
14087
14276
  }
14088
- const defaultProps$1c = {}, Portal = reactExports.forwardRef((props, ref) => {
14089
- const { children: children2, target, ...others } = useProps("Portal", defaultProps$1c, props), [mounted, setMounted] = reactExports.useState(!1), nodeRef = reactExports.useRef(null);
14277
+ const defaultProps$1g = {}, Portal = reactExports.forwardRef((props, ref) => {
14278
+ const { children: children2, target, ...others } = useProps("Portal", defaultProps$1g, props), [mounted, setMounted] = reactExports.useState(!1), nodeRef = reactExports.useRef(null);
14090
14279
  return useIsomorphicEffect(() => (setMounted(!0), nodeRef.current = target ? typeof target == "string" ? document.querySelector(target) : target : createPortalNode(others), assignRef(ref, nodeRef.current), !target && nodeRef.current && document.body.appendChild(nodeRef.current), () => {
14091
14280
  !target && nodeRef.current && document.body.removeChild(nodeRef.current);
14092
14281
  }), [target]), !mounted || !nodeRef.current ? null : reactDomExports.createPortal(/* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: children2 }), nodeRef.current);
@@ -14312,9 +14501,9 @@ function Transition$1({
14312
14501
  ) });
14313
14502
  }
14314
14503
  Transition$1.displayName = "@mantine/core/Transition";
14315
- var __default__$s = { dropdown: "m_38a85659", arrow: "m_a31dc6c1" };
14316
- const classes$q = __default__$s, defaultProps$1b = {}, PopoverDropdown = factory((_props, ref) => {
14317
- const props = useProps("PopoverDropdown", defaultProps$1b, _props), {
14504
+ var __default__$w = { dropdown: "m_38a85659", arrow: "m_a31dc6c1" };
14505
+ const classes$u = __default__$w, defaultProps$1f = {}, PopoverDropdown = factory((_props, ref) => {
14506
+ const props = useProps("PopoverDropdown", defaultProps$1f, _props), {
14318
14507
  className,
14319
14508
  style: style2,
14320
14509
  vars,
@@ -14398,15 +14587,15 @@ const classes$q = __default__$s, defaultProps$1b = {}, PopoverDropdown = factory
14398
14587
  }
14399
14588
  ) });
14400
14589
  });
14401
- PopoverDropdown.classes = classes$q;
14590
+ PopoverDropdown.classes = classes$u;
14402
14591
  PopoverDropdown.displayName = "@mantine/core/PopoverDropdown";
14403
- const defaultProps$1a = {
14592
+ const defaultProps$1e = {
14404
14593
  refProp: "ref",
14405
14594
  popupType: "dialog"
14406
14595
  }, PopoverTarget = factory((props, ref) => {
14407
14596
  const { children: children2, refProp, popupType, ...others } = useProps(
14408
14597
  "PopoverTarget",
14409
- defaultProps$1a,
14598
+ defaultProps$1e,
14410
14599
  props
14411
14600
  );
14412
14601
  if (!isElement$1(children2))
@@ -14518,7 +14707,7 @@ function usePopover(options) {
14518
14707
  onToggle
14519
14708
  };
14520
14709
  }
14521
- const defaultProps$19 = {
14710
+ const defaultProps$1d = {
14522
14711
  position: "bottom",
14523
14712
  offset: 8,
14524
14713
  positionDependencies: [],
@@ -14538,14 +14727,14 @@ const defaultProps$19 = {
14538
14727
  zIndex: getDefaultZIndex("popover"),
14539
14728
  __staticSelector: "Popover",
14540
14729
  width: "max-content"
14541
- }, varsResolver$v = (_2, { radius, shadow }) => ({
14730
+ }, varsResolver$z = (_2, { radius, shadow }) => ({
14542
14731
  dropdown: {
14543
14732
  "--popover-radius": radius === void 0 ? void 0 : getRadius$1(radius),
14544
14733
  "--popover-shadow": getShadow(shadow)
14545
14734
  }
14546
14735
  });
14547
14736
  function Popover(_props) {
14548
- const props = useProps("Popover", defaultProps$19, _props), {
14737
+ const props = useProps("Popover", defaultProps$1d, _props), {
14549
14738
  children: children2,
14550
14739
  position,
14551
14740
  offset: offset2,
@@ -14589,13 +14778,13 @@ function Popover(_props) {
14589
14778
  } = props, getStyles2 = useStyles({
14590
14779
  name: __staticSelector,
14591
14780
  props,
14592
- classes: classes$q,
14781
+ classes: classes$u,
14593
14782
  classNames,
14594
14783
  styles,
14595
14784
  unstyled,
14596
14785
  rootSelector: "dropdown",
14597
14786
  vars,
14598
- varsResolver: varsResolver$v
14787
+ varsResolver: varsResolver$z
14599
14788
  }), arrowRef = reactExports.useRef(null), [targetNode, setTargetNode] = reactExports.useState(null), [dropdownNode, setDropdownNode] = reactExports.useState(null), { dir } = useDirection(), uid = useId$1(id2), popover = usePopover({
14600
14789
  middlewares,
14601
14790
  width,
@@ -14679,29 +14868,29 @@ Popover.Target = PopoverTarget;
14679
14868
  Popover.Dropdown = PopoverDropdown;
14680
14869
  Popover.displayName = "@mantine/core/Popover";
14681
14870
  Popover.extend = (input) => input;
14682
- var __default__$r = { root: "m_5ae2e3c", barsLoader: "m_7a2bd4cd", bar: "m_870bb79", "bars-loader-animation": "m_5d2b3b9d", dotsLoader: "m_4e3f22d7", dot: "m_870c4af", "loader-dots-animation": "m_aac34a1", ovalLoader: "m_b34414df", "oval-loader-animation": "m_f8e89c4b" };
14683
- const classes$p = __default__$r, Bars = reactExports.forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Box$1, { component: "span", className: clsx$1(classes$p.barsLoader, className), ...others, ref, children: [
14684
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: classes$p.bar }),
14685
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: classes$p.bar }),
14686
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: classes$p.bar })
14687
- ] })), Dots = reactExports.forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Box$1, { component: "span", className: clsx$1(classes$p.dotsLoader, className), ...others, ref, children: [
14688
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: classes$p.dot }),
14689
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: classes$p.dot }),
14690
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: classes$p.dot })
14691
- ] })), Oval = reactExports.forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { component: "span", className: clsx$1(classes$p.ovalLoader, className), ...others, ref })), defaultLoaders = {
14871
+ var __default__$v = { root: "m_5ae2e3c", barsLoader: "m_7a2bd4cd", bar: "m_870bb79", "bars-loader-animation": "m_5d2b3b9d", dotsLoader: "m_4e3f22d7", dot: "m_870c4af", "loader-dots-animation": "m_aac34a1", ovalLoader: "m_b34414df", "oval-loader-animation": "m_f8e89c4b" };
14872
+ const classes$t = __default__$v, Bars = reactExports.forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Box$1, { component: "span", className: clsx$1(classes$t.barsLoader, className), ...others, ref, children: [
14873
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: classes$t.bar }),
14874
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: classes$t.bar }),
14875
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: classes$t.bar })
14876
+ ] })), Dots = reactExports.forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Box$1, { component: "span", className: clsx$1(classes$t.dotsLoader, className), ...others, ref, children: [
14877
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: classes$t.dot }),
14878
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: classes$t.dot }),
14879
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: classes$t.dot })
14880
+ ] })), Oval = reactExports.forwardRef(({ className, ...others }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { component: "span", className: clsx$1(classes$t.ovalLoader, className), ...others, ref })), defaultLoaders = {
14692
14881
  bars: Bars,
14693
14882
  oval: Oval,
14694
14883
  dots: Dots
14695
- }, defaultProps$18 = {
14884
+ }, defaultProps$1c = {
14696
14885
  loaders: defaultLoaders,
14697
14886
  type: "oval"
14698
- }, varsResolver$u = (theme2, { size: size2, color: color2 }) => ({
14887
+ }, varsResolver$y = (theme2, { size: size2, color: color2 }) => ({
14699
14888
  root: {
14700
14889
  "--loader-size": getSize(size2, "loader-size"),
14701
14890
  "--loader-color": color2 ? getThemeColor(color2, theme2) : void 0
14702
14891
  }
14703
14892
  }), Loader = factory((_props, ref) => {
14704
- const props = useProps("Loader", defaultProps$18, _props), {
14893
+ const props = useProps("Loader", defaultProps$1c, _props), {
14705
14894
  size: size2,
14706
14895
  color: color2,
14707
14896
  type,
@@ -14718,14 +14907,14 @@ const classes$p = __default__$r, Bars = reactExports.forwardRef(({ className, ..
14718
14907
  } = props, getStyles2 = useStyles({
14719
14908
  name: "Loader",
14720
14909
  props,
14721
- classes: classes$p,
14910
+ classes: classes$t,
14722
14911
  className,
14723
14912
  style: style2,
14724
14913
  classNames,
14725
14914
  styles,
14726
14915
  unstyled,
14727
14916
  vars,
14728
- varsResolver: varsResolver$u
14917
+ varsResolver: varsResolver$y
14729
14918
  });
14730
14919
  return children2 ? /* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { ...getStyles2("root"), ref, ...others, children: children2 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
14731
14920
  Box$1,
@@ -14740,15 +14929,15 @@ const classes$p = __default__$r, Bars = reactExports.forwardRef(({ className, ..
14740
14929
  );
14741
14930
  });
14742
14931
  Loader.defaultLoaders = defaultLoaders;
14743
- Loader.classes = classes$p;
14932
+ Loader.classes = classes$t;
14744
14933
  Loader.displayName = "@mantine/core/Loader";
14745
- var __default__$q = { root: "m_8d3f4000", icon: "m_8d3afb97", loader: "m_302b9fb1", group: "m_1a0f1b21" };
14746
- const classes$o = __default__$q, defaultProps$17 = {
14934
+ var __default__$u = { root: "m_8d3f4000", icon: "m_8d3afb97", loader: "m_302b9fb1", group: "m_1a0f1b21" };
14935
+ const classes$s = __default__$u, defaultProps$1b = {
14747
14936
  orientation: "horizontal"
14748
- }, varsResolver$t = (_2, { borderWidth }) => ({
14937
+ }, varsResolver$x = (_2, { borderWidth }) => ({
14749
14938
  group: { "--ai-border-width": rem(borderWidth) }
14750
14939
  }), ActionIconGroup = factory((_props, ref) => {
14751
- const props = useProps("ActionIconGroup", defaultProps$17, _props), {
14940
+ const props = useProps("ActionIconGroup", defaultProps$1b, _props), {
14752
14941
  className,
14753
14942
  style: style2,
14754
14943
  classNames,
@@ -14760,17 +14949,17 @@ const classes$o = __default__$q, defaultProps$17 = {
14760
14949
  variant,
14761
14950
  mod,
14762
14951
  ...others
14763
- } = useProps("ActionIconGroup", defaultProps$17, _props), getStyles2 = useStyles({
14952
+ } = useProps("ActionIconGroup", defaultProps$1b, _props), getStyles2 = useStyles({
14764
14953
  name: "ActionIconGroup",
14765
14954
  props,
14766
- classes: classes$o,
14955
+ classes: classes$s,
14767
14956
  className,
14768
14957
  style: style2,
14769
14958
  classNames,
14770
14959
  styles,
14771
14960
  unstyled,
14772
14961
  vars,
14773
- varsResolver: varsResolver$t,
14962
+ varsResolver: varsResolver$x,
14774
14963
  rootSelector: "group"
14775
14964
  });
14776
14965
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -14785,9 +14974,9 @@ const classes$o = __default__$q, defaultProps$17 = {
14785
14974
  }
14786
14975
  );
14787
14976
  });
14788
- ActionIconGroup.classes = classes$o;
14977
+ ActionIconGroup.classes = classes$s;
14789
14978
  ActionIconGroup.displayName = "@mantine/core/ActionIconGroup";
14790
- const defaultProps$16 = {}, varsResolver$s = (theme2, { size: size2, radius, variant, gradient, color: color2, autoContrast }) => {
14979
+ const defaultProps$1a = {}, varsResolver$w = (theme2, { size: size2, radius, variant, gradient, color: color2, autoContrast }) => {
14791
14980
  const colors2 = theme2.variantColorResolver({
14792
14981
  color: color2 || theme2.primaryColor,
14793
14982
  theme: theme2,
@@ -14807,7 +14996,7 @@ const defaultProps$16 = {}, varsResolver$s = (theme2, { size: size2, radius, var
14807
14996
  }
14808
14997
  };
14809
14998
  }, ActionIcon = polymorphicFactory((_props, ref) => {
14810
- const props = useProps("ActionIcon", defaultProps$16, _props), {
14999
+ const props = useProps("ActionIcon", defaultProps$1a, _props), {
14811
15000
  className,
14812
15001
  unstyled,
14813
15002
  variant,
@@ -14833,12 +15022,12 @@ const defaultProps$16 = {}, varsResolver$s = (theme2, { size: size2, radius, var
14833
15022
  props,
14834
15023
  className,
14835
15024
  style: style2,
14836
- classes: classes$o,
15025
+ classes: classes$s,
14837
15026
  classNames,
14838
15027
  styles,
14839
15028
  unstyled,
14840
15029
  vars,
14841
- varsResolver: varsResolver$s
15030
+ varsResolver: varsResolver$w
14842
15031
  });
14843
15032
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
14844
15033
  UnstyledButton,
@@ -14858,7 +15047,7 @@ const defaultProps$16 = {}, varsResolver$s = (theme2, { size: size2, radius, var
14858
15047
  }
14859
15048
  );
14860
15049
  });
14861
- ActionIcon.classes = classes$o;
15050
+ ActionIcon.classes = classes$s;
14862
15051
  ActionIcon.displayName = "@mantine/core/ActionIcon";
14863
15052
  ActionIcon.Group = ActionIconGroup;
14864
15053
  const CloseIcon = reactExports.forwardRef(
@@ -14884,17 +15073,17 @@ const CloseIcon = reactExports.forwardRef(
14884
15073
  )
14885
15074
  );
14886
15075
  CloseIcon.displayName = "@mantine/core/CloseIcon";
14887
- var __default__$p = { root: "m_86a44da5", "root--subtle": "m_220c80f2" };
14888
- const classes$n = __default__$p, defaultProps$15 = {
15076
+ var __default__$t = { root: "m_86a44da5", "root--subtle": "m_220c80f2" };
15077
+ const classes$r = __default__$t, defaultProps$19 = {
14889
15078
  variant: "subtle"
14890
- }, varsResolver$r = (_2, { size: size2, radius, iconSize }) => ({
15079
+ }, varsResolver$v = (_2, { size: size2, radius, iconSize }) => ({
14891
15080
  root: {
14892
15081
  "--cb-size": getSize(size2, "cb-size"),
14893
15082
  "--cb-radius": radius === void 0 ? void 0 : getRadius$1(radius),
14894
15083
  "--cb-icon-size": rem(iconSize)
14895
15084
  }
14896
15085
  }), CloseButton = polymorphicFactory((_props, ref) => {
14897
- const props = useProps("CloseButton", defaultProps$15, _props), {
15086
+ const props = useProps("CloseButton", defaultProps$19, _props), {
14898
15087
  iconSize,
14899
15088
  children: children2,
14900
15089
  vars,
@@ -14915,12 +15104,12 @@ const classes$n = __default__$p, defaultProps$15 = {
14915
15104
  props,
14916
15105
  className,
14917
15106
  style: style2,
14918
- classes: classes$n,
15107
+ classes: classes$r,
14919
15108
  classNames,
14920
15109
  styles,
14921
15110
  unstyled,
14922
15111
  vars,
14923
- varsResolver: varsResolver$r
15112
+ varsResolver: varsResolver$v
14924
15113
  });
14925
15114
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
14926
15115
  UnstyledButton,
@@ -14939,19 +15128,19 @@ const classes$n = __default__$p, defaultProps$15 = {
14939
15128
  }
14940
15129
  );
14941
15130
  });
14942
- CloseButton.classes = classes$n;
15131
+ CloseButton.classes = classes$r;
14943
15132
  CloseButton.displayName = "@mantine/core/CloseButton";
14944
15133
  function filterFalsyChildren(children2) {
14945
15134
  return reactExports.Children.toArray(children2).filter(Boolean);
14946
15135
  }
14947
- var __default__$o = { root: "m_4081bf90" };
14948
- const classes$m = __default__$o, defaultProps$14 = {
15136
+ var __default__$s = { root: "m_4081bf90" };
15137
+ const classes$q = __default__$s, defaultProps$18 = {
14949
15138
  preventGrowOverflow: !0,
14950
15139
  gap: "md",
14951
15140
  align: "center",
14952
15141
  justify: "flex-start",
14953
15142
  wrap: "wrap"
14954
- }, varsResolver$q = (_2, { grow, preventGrowOverflow, gap, align, justify, wrap }, { childWidth }) => ({
15143
+ }, varsResolver$u = (_2, { grow, preventGrowOverflow, gap, align, justify, wrap }, { childWidth }) => ({
14955
15144
  root: {
14956
15145
  "--group-child-width": grow && preventGrowOverflow ? childWidth : void 0,
14957
15146
  "--group-gap": getSpacing(gap),
@@ -14960,7 +15149,7 @@ const classes$m = __default__$o, defaultProps$14 = {
14960
15149
  "--group-wrap": wrap
14961
15150
  }
14962
15151
  }), Group = factory((_props, ref) => {
14963
- const props = useProps("Group", defaultProps$14, _props), {
15152
+ const props = useProps("Group", defaultProps$18, _props), {
14964
15153
  classNames,
14965
15154
  className,
14966
15155
  style: style2,
@@ -14984,12 +15173,12 @@ const classes$m = __default__$o, defaultProps$14 = {
14984
15173
  stylesCtx,
14985
15174
  className,
14986
15175
  style: style2,
14987
- classes: classes$m,
15176
+ classes: classes$q,
14988
15177
  classNames,
14989
15178
  styles,
14990
15179
  unstyled,
14991
15180
  vars,
14992
- varsResolver: varsResolver$q
15181
+ varsResolver: varsResolver$u
14993
15182
  });
14994
15183
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
14995
15184
  Box$1,
@@ -15004,12 +15193,12 @@ const classes$m = __default__$o, defaultProps$14 = {
15004
15193
  }
15005
15194
  );
15006
15195
  });
15007
- Group.classes = classes$m;
15196
+ Group.classes = classes$q;
15008
15197
  Group.displayName = "@mantine/core/Group";
15009
- var __default__$n = { root: "m_9814e45f" };
15010
- const classes$l = __default__$n, defaultProps$13 = {
15198
+ var __default__$r = { root: "m_9814e45f" };
15199
+ const classes$p = __default__$r, defaultProps$17 = {
15011
15200
  zIndex: getDefaultZIndex("modal")
15012
- }, varsResolver$p = (_2, { gradient, color: color2, backgroundOpacity, blur, radius, zIndex }) => ({
15201
+ }, varsResolver$t = (_2, { gradient, color: color2, backgroundOpacity, blur, radius, zIndex }) => ({
15013
15202
  root: {
15014
15203
  "--overlay-bg": gradient || (color2 !== void 0 || backgroundOpacity !== void 0) && rgba$2(color2 || "#000", backgroundOpacity ?? 0.6) || void 0,
15015
15204
  "--overlay-filter": blur ? `blur(${rem(blur)})` : void 0,
@@ -15017,7 +15206,7 @@ const classes$l = __default__$n, defaultProps$13 = {
15017
15206
  "--overlay-z-index": zIndex?.toString()
15018
15207
  }
15019
15208
  }), Overlay = polymorphicFactory((_props, ref) => {
15020
- const props = useProps("Overlay", defaultProps$13, _props), {
15209
+ const props = useProps("Overlay", defaultProps$17, _props), {
15021
15210
  classNames,
15022
15211
  className,
15023
15212
  style: style2,
@@ -15038,18 +15227,18 @@ const classes$l = __default__$n, defaultProps$13 = {
15038
15227
  } = props, getStyles2 = useStyles({
15039
15228
  name: "Overlay",
15040
15229
  props,
15041
- classes: classes$l,
15230
+ classes: classes$p,
15042
15231
  className,
15043
15232
  style: style2,
15044
15233
  classNames,
15045
15234
  styles,
15046
15235
  unstyled,
15047
15236
  vars,
15048
- varsResolver: varsResolver$p
15237
+ varsResolver: varsResolver$t
15049
15238
  });
15050
15239
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { ref, ...getStyles2("root"), mod: [{ center, fixed }, mod], ...others, children: children2 });
15051
15240
  });
15052
- Overlay.classes = classes$l;
15241
+ Overlay.classes = classes$p;
15053
15242
  Overlay.displayName = "@mantine/core/Overlay";
15054
15243
  const [ModalBaseProvider, useModalBaseContext] = createSafeContext(
15055
15244
  "ModalBase component was not found in tree"
@@ -15148,7 +15337,7 @@ function useModalBodyId() {
15148
15337
  const ctx = useModalBaseContext();
15149
15338
  return reactExports.useEffect(() => (ctx.setBodyMounted(!0), () => ctx.setBodyMounted(!1)), []), ctx.getBodyId();
15150
15339
  }
15151
- var __default__$m = { title: "m_615af6c9", header: "m_b5489c3c", inner: "m_60c222c7", content: "m_fd1ab0aa", close: "m_606cb269", body: "m_5df29311" };
15340
+ var __default__$q = { title: "m_615af6c9", header: "m_b5489c3c", inner: "m_60c222c7", content: "m_fd1ab0aa", close: "m_606cb269", body: "m_5df29311" };
15152
15341
  const ModalBaseBody = reactExports.forwardRef(
15153
15342
  ({ className, ...others }, ref) => {
15154
15343
  const bodyId = useModalBodyId(), ctx = useModalBaseContext();
@@ -15158,7 +15347,7 @@ const ModalBaseBody = reactExports.forwardRef(
15158
15347
  ref,
15159
15348
  ...others,
15160
15349
  id: bodyId,
15161
- className: clsx$1({ [__default__$m.body]: !ctx.unstyled }, className)
15350
+ className: clsx$1({ [__default__$q.body]: !ctx.unstyled }, className)
15162
15351
  }
15163
15352
  );
15164
15353
  }
@@ -15175,7 +15364,7 @@ const ModalBaseCloseButton = reactExports.forwardRef(
15175
15364
  onClick: (event) => {
15176
15365
  ctx.onClose(), onClick?.(event);
15177
15366
  },
15178
- className: clsx$1({ [__default__$m.close]: !ctx.unstyled }, className),
15367
+ className: clsx$1({ [__default__$q.close]: !ctx.unstyled }, className),
15179
15368
  unstyled: ctx.unstyled
15180
15369
  }
15181
15370
  );
@@ -15196,7 +15385,7 @@ const ModalBaseContent = reactExports.forwardRef(
15196
15385
  "div",
15197
15386
  {
15198
15387
  ...innerProps,
15199
- className: clsx$1({ [__default__$m.inner]: !ctx.unstyled }, innerProps.className),
15388
+ className: clsx$1({ [__default__$q.inner]: !ctx.unstyled }, innerProps.className),
15200
15389
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(FocusTrap, { active: ctx.opened && ctx.trapFocus, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
15201
15390
  Paper,
15202
15391
  {
@@ -15209,7 +15398,7 @@ const ModalBaseContent = reactExports.forwardRef(
15209
15398
  "aria-labelledby": ctx.titleMounted ? ctx.getTitleId() : void 0,
15210
15399
  ref,
15211
15400
  style: [style2, transitionStyles],
15212
- className: clsx$1({ [__default__$m.content]: !ctx.unstyled }, className),
15401
+ className: clsx$1({ [__default__$q.content]: !ctx.unstyled }, className),
15213
15402
  unstyled: ctx.unstyled,
15214
15403
  children: others.children
15215
15404
  }
@@ -15227,7 +15416,7 @@ const ModalBaseContent = reactExports.forwardRef(
15227
15416
  {
15228
15417
  component: "header",
15229
15418
  ref,
15230
- className: clsx$1({ [__default__$m.header]: !ctx.unstyled }, className),
15419
+ className: clsx$1({ [__default__$q.header]: !ctx.unstyled }, className),
15231
15420
  ...others
15232
15421
  }
15233
15422
  );
@@ -15275,7 +15464,7 @@ const ModalBaseTitle = reactExports.forwardRef(
15275
15464
  {
15276
15465
  component: "h2",
15277
15466
  ref,
15278
- className: clsx$1({ [__default__$m.title]: !ctx.unstyled }, className),
15467
+ className: clsx$1({ [__default__$q.title]: !ctx.unstyled }, className),
15279
15468
  ...others,
15280
15469
  id: id2
15281
15470
  }
@@ -15294,13 +15483,13 @@ const [InputWrapperProvider, useInputWrapperContext] = createOptionalContext({
15294
15483
  inputId: void 0,
15295
15484
  labelId: void 0
15296
15485
  });
15297
- var __default__$l = { wrapper: "m_6c018570", input: "m_8fb7ebe7", section: "m_82577fc2", placeholder: "m_88bacfd0", root: "m_46b77525", label: "m_8fdc1311", required: "m_78a94662", error: "m_8f816625", description: "m_fe47ce59" };
15298
- const classes$k = __default__$l, defaultProps$12 = {}, varsResolver$o = (_2, { size: size2 }) => ({
15486
+ var __default__$p = { wrapper: "m_6c018570", input: "m_8fb7ebe7", section: "m_82577fc2", placeholder: "m_88bacfd0", root: "m_46b77525", label: "m_8fdc1311", required: "m_78a94662", error: "m_8f816625", description: "m_fe47ce59" };
15487
+ const classes$o = __default__$p, defaultProps$16 = {}, varsResolver$s = (_2, { size: size2 }) => ({
15299
15488
  description: {
15300
15489
  "--input-description-size": size2 === void 0 ? void 0 : `calc(${getFontSize(size2)} - ${rem(2)})`
15301
15490
  }
15302
15491
  }), InputDescription = factory((_props, ref) => {
15303
- const props = useProps("InputDescription", defaultProps$12, _props), {
15492
+ const props = useProps("InputDescription", defaultProps$16, _props), {
15304
15493
  classNames,
15305
15494
  className,
15306
15495
  style: style2,
@@ -15312,10 +15501,10 @@ const classes$k = __default__$l, defaultProps$12 = {}, varsResolver$o = (_2, { s
15312
15501
  __inheritStyles = !0,
15313
15502
  variant,
15314
15503
  ...others
15315
- } = useProps("InputDescription", defaultProps$12, props), ctx = useInputWrapperContext(), _getStyles = useStyles({
15504
+ } = useProps("InputDescription", defaultProps$16, props), ctx = useInputWrapperContext(), _getStyles = useStyles({
15316
15505
  name: ["InputWrapper", __staticSelector],
15317
15506
  props,
15318
- classes: classes$k,
15507
+ classes: classes$o,
15319
15508
  className,
15320
15509
  style: style2,
15321
15510
  classNames,
@@ -15323,7 +15512,7 @@ const classes$k = __default__$l, defaultProps$12 = {}, varsResolver$o = (_2, { s
15323
15512
  unstyled,
15324
15513
  rootSelector: "description",
15325
15514
  vars,
15326
- varsResolver: varsResolver$o
15515
+ varsResolver: varsResolver$s
15327
15516
  }), getStyles2 = __inheritStyles && ctx?.getStyles || _getStyles;
15328
15517
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
15329
15518
  Box$1,
@@ -15337,14 +15526,14 @@ const classes$k = __default__$l, defaultProps$12 = {}, varsResolver$o = (_2, { s
15337
15526
  }
15338
15527
  );
15339
15528
  });
15340
- InputDescription.classes = classes$k;
15529
+ InputDescription.classes = classes$o;
15341
15530
  InputDescription.displayName = "@mantine/core/InputDescription";
15342
- const defaultProps$11 = {}, varsResolver$n = (_2, { size: size2 }) => ({
15531
+ const defaultProps$15 = {}, varsResolver$r = (_2, { size: size2 }) => ({
15343
15532
  error: {
15344
15533
  "--input-error-size": size2 === void 0 ? void 0 : `calc(${getFontSize(size2)} - ${rem(2)})`
15345
15534
  }
15346
15535
  }), InputError = factory((_props, ref) => {
15347
- const props = useProps("InputError", defaultProps$11, _props), {
15536
+ const props = useProps("InputError", defaultProps$15, _props), {
15348
15537
  classNames,
15349
15538
  className,
15350
15539
  style: style2,
@@ -15359,7 +15548,7 @@ const defaultProps$11 = {}, varsResolver$n = (_2, { size: size2 }) => ({
15359
15548
  } = props, _getStyles = useStyles({
15360
15549
  name: ["InputWrapper", __staticSelector],
15361
15550
  props,
15362
- classes: classes$k,
15551
+ classes: classes$o,
15363
15552
  className,
15364
15553
  style: style2,
15365
15554
  classNames,
@@ -15367,7 +15556,7 @@ const defaultProps$11 = {}, varsResolver$n = (_2, { size: size2 }) => ({
15367
15556
  unstyled,
15368
15557
  rootSelector: "error",
15369
15558
  vars,
15370
- varsResolver: varsResolver$n
15559
+ varsResolver: varsResolver$r
15371
15560
  }), ctx = useInputWrapperContext(), getStyles2 = __inheritStyles && ctx?.getStyles || _getStyles;
15372
15561
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
15373
15562
  Box$1,
@@ -15381,17 +15570,17 @@ const defaultProps$11 = {}, varsResolver$n = (_2, { size: size2 }) => ({
15381
15570
  }
15382
15571
  );
15383
15572
  });
15384
- InputError.classes = classes$k;
15573
+ InputError.classes = classes$o;
15385
15574
  InputError.displayName = "@mantine/core/InputError";
15386
- const defaultProps$10 = {
15575
+ const defaultProps$14 = {
15387
15576
  labelElement: "label"
15388
- }, varsResolver$m = (_2, { size: size2 }) => ({
15577
+ }, varsResolver$q = (_2, { size: size2 }) => ({
15389
15578
  label: {
15390
15579
  "--input-label-size": getFontSize(size2),
15391
15580
  "--input-asterisk-color": void 0
15392
15581
  }
15393
15582
  }), InputLabel = factory((_props, ref) => {
15394
- const props = useProps("InputLabel", defaultProps$10, _props), {
15583
+ const props = useProps("InputLabel", defaultProps$14, _props), {
15395
15584
  classNames,
15396
15585
  className,
15397
15586
  style: style2,
@@ -15408,10 +15597,10 @@ const defaultProps$10 = {
15408
15597
  variant,
15409
15598
  mod,
15410
15599
  ...others
15411
- } = useProps("InputLabel", defaultProps$10, props), _getStyles = useStyles({
15600
+ } = useProps("InputLabel", defaultProps$14, props), _getStyles = useStyles({
15412
15601
  name: ["InputWrapper", __staticSelector],
15413
15602
  props,
15414
- classes: classes$k,
15603
+ classes: classes$o,
15415
15604
  className,
15416
15605
  style: style2,
15417
15606
  classNames,
@@ -15419,7 +15608,7 @@ const defaultProps$10 = {
15419
15608
  unstyled,
15420
15609
  rootSelector: "label",
15421
15610
  vars,
15422
- varsResolver: varsResolver$m
15611
+ varsResolver: varsResolver$q
15423
15612
  }), ctx = useInputWrapperContext(), getStyles2 = ctx?.getStyles || _getStyles;
15424
15613
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
15425
15614
  Box$1,
@@ -15442,10 +15631,10 @@ const defaultProps$10 = {
15442
15631
  }
15443
15632
  );
15444
15633
  });
15445
- InputLabel.classes = classes$k;
15634
+ InputLabel.classes = classes$o;
15446
15635
  InputLabel.displayName = "@mantine/core/InputLabel";
15447
- const defaultProps$$ = {}, InputPlaceholder = factory((_props, ref) => {
15448
- const props = useProps("InputPlaceholder", defaultProps$$, _props), {
15636
+ const defaultProps$13 = {}, InputPlaceholder = factory((_props, ref) => {
15637
+ const props = useProps("InputPlaceholder", defaultProps$13, _props), {
15449
15638
  classNames,
15450
15639
  className,
15451
15640
  style: style2,
@@ -15457,10 +15646,10 @@ const defaultProps$$ = {}, InputPlaceholder = factory((_props, ref) => {
15457
15646
  error,
15458
15647
  mod,
15459
15648
  ...others
15460
- } = useProps("InputPlaceholder", defaultProps$$, props), getStyles2 = useStyles({
15649
+ } = useProps("InputPlaceholder", defaultProps$13, props), getStyles2 = useStyles({
15461
15650
  name: ["InputPlaceholder", __staticSelector],
15462
15651
  props,
15463
- classes: classes$k,
15652
+ classes: classes$o,
15464
15653
  className,
15465
15654
  style: style2,
15466
15655
  classNames,
@@ -15480,17 +15669,17 @@ const defaultProps$$ = {}, InputPlaceholder = factory((_props, ref) => {
15480
15669
  }
15481
15670
  );
15482
15671
  });
15483
- InputPlaceholder.classes = classes$k;
15672
+ InputPlaceholder.classes = classes$o;
15484
15673
  InputPlaceholder.displayName = "@mantine/core/InputPlaceholder";
15485
15674
  function getInputOffsets(inputWrapperOrder, { hasDescription, hasError }) {
15486
15675
  const inputIndex = inputWrapperOrder.findIndex((part) => part === "input"), aboveInput = inputWrapperOrder.slice(0, inputIndex), belowInput = inputWrapperOrder.slice(inputIndex + 1), offsetTop = hasDescription && aboveInput.includes("description") || hasError && aboveInput.includes("error");
15487
15676
  return { offsetBottom: hasDescription && belowInput.includes("description") || hasError && belowInput.includes("error"), offsetTop };
15488
15677
  }
15489
- const defaultProps$_ = {
15678
+ const defaultProps$12 = {
15490
15679
  labelElement: "label",
15491
15680
  inputContainer: (children2) => children2,
15492
15681
  inputWrapperOrder: ["label", "description", "input", "error"]
15493
- }, varsResolver$l = (_2, { size: size2 }) => ({
15682
+ }, varsResolver$p = (_2, { size: size2 }) => ({
15494
15683
  label: {
15495
15684
  "--input-label-size": getFontSize(size2),
15496
15685
  "--input-asterisk-color": void 0
@@ -15502,7 +15691,7 @@ const defaultProps$_ = {
15502
15691
  "--input-description-size": size2 === void 0 ? void 0 : `calc(${getFontSize(size2)} - ${rem(2)})`
15503
15692
  }
15504
15693
  }), InputWrapper = factory((_props, ref) => {
15505
- const props = useProps("InputWrapper", defaultProps$_, _props), {
15694
+ const props = useProps("InputWrapper", defaultProps$12, _props), {
15506
15695
  classNames,
15507
15696
  className,
15508
15697
  style: style2,
@@ -15531,14 +15720,14 @@ const defaultProps$_ = {
15531
15720
  } = props, getStyles2 = useStyles({
15532
15721
  name: ["InputWrapper", __staticSelector],
15533
15722
  props: __stylesApiProps || props,
15534
- classes: classes$k,
15723
+ classes: classes$o,
15535
15724
  className,
15536
15725
  style: style2,
15537
15726
  classNames,
15538
15727
  styles,
15539
15728
  unstyled,
15540
15729
  vars,
15541
- varsResolver: varsResolver$l
15730
+ varsResolver: varsResolver$p
15542
15731
  }), sharedProps = {
15543
15732
  size: size2,
15544
15733
  variant,
@@ -15614,15 +15803,15 @@ const defaultProps$_ = {
15614
15803
  }
15615
15804
  );
15616
15805
  });
15617
- InputWrapper.classes = classes$k;
15806
+ InputWrapper.classes = classes$o;
15618
15807
  InputWrapper.displayName = "@mantine/core/InputWrapper";
15619
- const defaultProps$Z = {
15808
+ const defaultProps$11 = {
15620
15809
  variant: "default",
15621
15810
  leftSectionPointerEvents: "none",
15622
15811
  rightSectionPointerEvents: "none",
15623
15812
  withAria: !0,
15624
15813
  withErrorStyles: !0
15625
- }, varsResolver$k = (_2, props, ctx) => ({
15814
+ }, varsResolver$o = (_2, props, ctx) => ({
15626
15815
  wrapper: {
15627
15816
  "--input-margin-top": ctx.offsetTop ? "calc(var(--mantine-spacing-xs) / 2)" : void 0,
15628
15817
  "--input-margin-bottom": ctx.offsetBottom ? "calc(var(--mantine-spacing-xs) / 2)" : void 0,
@@ -15636,7 +15825,7 @@ const defaultProps$Z = {
15636
15825
  "--input-right-section-pointer-events": props.rightSectionPointerEvents
15637
15826
  }
15638
15827
  }), Input = polymorphicFactory((_props, ref) => {
15639
- const props = useProps("Input", defaultProps$Z, _props), {
15828
+ const props = useProps("Input", defaultProps$11, _props), {
15640
15829
  classNames,
15641
15830
  className,
15642
15831
  style: style2,
@@ -15670,7 +15859,7 @@ const defaultProps$Z = {
15670
15859
  } = props, { styleProps, rest } = extractStyleProps(others), ctx = useInputWrapperContext(), stylesCtx = { offsetBottom: ctx?.offsetBottom, offsetTop: ctx?.offsetTop }, getStyles2 = useStyles({
15671
15860
  name: ["Input", __staticSelector],
15672
15861
  props: __stylesApiProps || props,
15673
- classes: classes$k,
15862
+ classes: classes$o,
15674
15863
  className,
15675
15864
  style: style2,
15676
15865
  classNames,
@@ -15679,7 +15868,7 @@ const defaultProps$Z = {
15679
15868
  stylesCtx,
15680
15869
  rootSelector: "wrapper",
15681
15870
  vars,
15682
- varsResolver: varsResolver$k
15871
+ varsResolver: varsResolver$o
15683
15872
  }), ariaAttributes = withAria ? {
15684
15873
  required,
15685
15874
  disabled,
@@ -15748,7 +15937,7 @@ const defaultProps$Z = {
15748
15937
  }
15749
15938
  );
15750
15939
  });
15751
- Input.classes = classes$k;
15940
+ Input.classes = classes$o;
15752
15941
  Input.Wrapper = InputWrapper;
15753
15942
  Input.Label = InputLabel;
15754
15943
  Input.Error = InputError;
@@ -15825,11 +16014,11 @@ function useInputProps(component, defaultProps2, _props) {
15825
16014
  }
15826
16015
  };
15827
16016
  }
15828
- const defaultProps$Y = {
16017
+ const defaultProps$10 = {
15829
16018
  __staticSelector: "InputBase",
15830
16019
  withAria: !0
15831
16020
  }, InputBase = polymorphicFactory((props, ref) => {
15832
- const { inputProps, wrapperProps, ...others } = useInputProps("InputBase", defaultProps$Y, props);
16021
+ const { inputProps, wrapperProps, ...others } = useInputProps("InputBase", defaultProps$10, props);
15833
16022
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Input.Wrapper, { ...wrapperProps, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Input, { ...inputProps, ...others, ref }) });
15834
16023
  });
15835
16024
  InputBase.classes = { ...Input.classes, ...Input.Wrapper.classes };
@@ -15843,9 +16032,9 @@ const FLEX_STYLE_PROPS_DATA = {
15843
16032
  wrap: { type: "identity", property: "flexWrap" },
15844
16033
  direction: { type: "identity", property: "flexDirection" }
15845
16034
  };
15846
- var __default__$k = { root: "m_8bffd616" };
15847
- const classes$j = __default__$k, defaultProps$X = {}, Flex$1 = polymorphicFactory((_props, ref) => {
15848
- const props = useProps("Flex", defaultProps$X, _props), {
16035
+ var __default__$o = { root: "m_8bffd616" };
16036
+ const classes$n = __default__$o, defaultProps$$ = {}, Flex$1 = polymorphicFactory((_props, ref) => {
16037
+ const props = useProps("Flex", defaultProps$$, _props), {
15849
16038
  classNames,
15850
16039
  className,
15851
16040
  style: style2,
@@ -15862,7 +16051,7 @@ const classes$j = __default__$k, defaultProps$X = {}, Flex$1 = polymorphicFactor
15862
16051
  ...others
15863
16052
  } = props, getStyles2 = useStyles({
15864
16053
  name: "Flex",
15865
- classes: classes$j,
16054
+ classes: classes$n,
15866
16055
  props,
15867
16056
  className,
15868
16057
  style: style2,
@@ -15897,10 +16086,114 @@ const classes$j = __default__$k, defaultProps$X = {}, Flex$1 = polymorphicFactor
15897
16086
  )
15898
16087
  ] });
15899
16088
  });
15900
- Flex$1.classes = classes$j;
16089
+ Flex$1.classes = classes$n;
15901
16090
  Flex$1.displayName = "@mantine/core/Flex";
15902
- var __default__$j = { root: "m_66836ed3", wrapper: "m_a5d60502", body: "m_667c2793", title: "m_6a03f287", label: "m_698f4f23", icon: "m_667f2a6a", message: "m_7fa78076", closeButton: "m_87f54839" };
15903
- const classes$i = __default__$j, defaultProps$W = {}, varsResolver$j = (theme2, { radius, color: color2, variant, autoContrast }) => {
16091
+ function isParent(parentElement, childElement) {
16092
+ if (!childElement || !parentElement)
16093
+ return !1;
16094
+ let parent = childElement.parentNode;
16095
+ for (; parent != null; ) {
16096
+ if (parent === parentElement)
16097
+ return !0;
16098
+ parent = parent.parentNode;
16099
+ }
16100
+ return !1;
16101
+ }
16102
+ function useFloatingIndicator({
16103
+ target,
16104
+ parent,
16105
+ ref,
16106
+ displayAfterTransitionEnd
16107
+ }) {
16108
+ const transitionTimeout = reactExports.useRef(), [initialized, setInitialized] = reactExports.useState(!1), [hidden2, setHidden] = reactExports.useState(
16109
+ typeof displayAfterTransitionEnd == "boolean" ? displayAfterTransitionEnd : !1
16110
+ ), updatePosition = () => {
16111
+ if (!target || !parent)
16112
+ return;
16113
+ const targetRect = target.getBoundingClientRect(), parentRect = parent.getBoundingClientRect(), position = {
16114
+ top: targetRect.top - parentRect.top,
16115
+ left: targetRect.left - parentRect.left,
16116
+ width: targetRect.width,
16117
+ height: targetRect.height
16118
+ };
16119
+ ref.current && (ref.current.style.transform = `translateY(${position.top}px) translateX(${position.left}px)`, ref.current.style.width = `${position.width}px`, ref.current.style.height = `${position.height}px`);
16120
+ }, updatePositionWithoutAnimation = () => {
16121
+ window.clearTimeout(transitionTimeout.current), ref.current && (ref.current.style.transitionDuration = "0ms"), updatePosition(), transitionTimeout.current = window.setTimeout(() => {
16122
+ ref.current && (ref.current.style.transitionDuration = "");
16123
+ }, 30);
16124
+ }, targetResizeObserver = reactExports.useRef(), parentResizeObserver = reactExports.useRef();
16125
+ return reactExports.useEffect(() => {
16126
+ if (updatePosition(), target)
16127
+ return targetResizeObserver.current = new ResizeObserver(updatePositionWithoutAnimation), targetResizeObserver.current.observe(target), parent && (parentResizeObserver.current = new ResizeObserver(updatePositionWithoutAnimation), parentResizeObserver.current.observe(parent)), () => {
16128
+ targetResizeObserver.current?.disconnect(), parentResizeObserver.current?.disconnect();
16129
+ };
16130
+ }, [parent, target]), reactExports.useEffect(() => {
16131
+ if (parent) {
16132
+ const handleTransitionEnd = (event) => {
16133
+ isParent(event.target, parent) && (updatePositionWithoutAnimation(), setHidden(!1));
16134
+ };
16135
+ return document.addEventListener("transitionend", handleTransitionEnd), () => {
16136
+ document.removeEventListener("transitionend", handleTransitionEnd);
16137
+ };
16138
+ }
16139
+ }, [parent]), useTimeout(
16140
+ () => {
16141
+ getEnv() !== "test" && setInitialized(!0);
16142
+ },
16143
+ 20,
16144
+ { autoInvoke: !0 }
16145
+ ), useMutationObserver(
16146
+ (mutations) => {
16147
+ mutations.forEach((mutation) => {
16148
+ mutation.type === "attributes" && mutation.attributeName === "dir" && updatePositionWithoutAnimation();
16149
+ });
16150
+ },
16151
+ { attributes: !0, attributeFilter: ["dir"] },
16152
+ () => document.documentElement
16153
+ ), { initialized, hidden: hidden2 };
16154
+ }
16155
+ var __default__$n = { root: "m_96b553a6" };
16156
+ const classes$m = __default__$n, defaultProps$_ = {}, varsResolver$n = (_theme, { transitionDuration }) => ({
16157
+ root: {
16158
+ "--transition-duration": typeof transitionDuration == "number" ? `${transitionDuration}ms` : transitionDuration
16159
+ }
16160
+ }), FloatingIndicator = factory((_props, ref) => {
16161
+ const props = useProps("FloatingIndicator", defaultProps$_, _props), {
16162
+ classNames,
16163
+ className,
16164
+ style: style2,
16165
+ styles,
16166
+ unstyled,
16167
+ vars,
16168
+ target,
16169
+ parent,
16170
+ transitionDuration,
16171
+ mod,
16172
+ displayAfterTransitionEnd,
16173
+ ...others
16174
+ } = props, getStyles2 = useStyles({
16175
+ name: "FloatingIndicator",
16176
+ classes: classes$m,
16177
+ props,
16178
+ className,
16179
+ style: style2,
16180
+ classNames,
16181
+ styles,
16182
+ unstyled,
16183
+ vars,
16184
+ varsResolver: varsResolver$n
16185
+ }), innerRef = reactExports.useRef(null), { initialized, hidden: hidden2 } = useFloatingIndicator({
16186
+ target,
16187
+ parent,
16188
+ ref: innerRef,
16189
+ displayAfterTransitionEnd
16190
+ }), mergedRef = useMergedRef(ref, innerRef);
16191
+ return !target || !parent ? null : /* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { ref: mergedRef, mod: [{ initialized, hidden: hidden2 }, mod], ...getStyles2("root"), ...others });
16192
+ });
16193
+ FloatingIndicator.displayName = "@mantine/core/FloatingIndicator";
16194
+ FloatingIndicator.classes = classes$m;
16195
+ var __default__$m = { root: "m_66836ed3", wrapper: "m_a5d60502", body: "m_667c2793", title: "m_6a03f287", label: "m_698f4f23", icon: "m_667f2a6a", message: "m_7fa78076", closeButton: "m_87f54839" };
16196
+ const classes$l = __default__$m, defaultProps$Z = {}, varsResolver$m = (theme2, { radius, color: color2, variant, autoContrast }) => {
15904
16197
  const colors2 = theme2.variantColorResolver({
15905
16198
  color: color2 || theme2.primaryColor,
15906
16199
  theme: theme2,
@@ -15916,7 +16209,7 @@ const classes$i = __default__$j, defaultProps$W = {}, varsResolver$j = (theme2,
15916
16209
  }
15917
16210
  };
15918
16211
  }, Alert = factory((_props, ref) => {
15919
- const props = useProps("Alert", defaultProps$W, _props), {
16212
+ const props = useProps("Alert", defaultProps$Z, _props), {
15920
16213
  classNames,
15921
16214
  className,
15922
16215
  style: style2,
@@ -15937,7 +16230,7 @@ const classes$i = __default__$j, defaultProps$W = {}, varsResolver$j = (theme2,
15937
16230
  ...others
15938
16231
  } = props, getStyles2 = useStyles({
15939
16232
  name: "Alert",
15940
- classes: classes$i,
16233
+ classes: classes$l,
15941
16234
  props,
15942
16235
  className,
15943
16236
  style: style2,
@@ -15945,7 +16238,7 @@ const classes$i = __default__$j, defaultProps$W = {}, varsResolver$j = (theme2,
15945
16238
  styles,
15946
16239
  unstyled,
15947
16240
  vars,
15948
- varsResolver: varsResolver$j
16241
+ varsResolver: varsResolver$m
15949
16242
  }), rootId = useId$1(id2), titleId = title2 && `${rootId}-title` || void 0, bodyId = `${rootId}-body`;
15950
16243
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
15951
16244
  Box$1,
@@ -15980,19 +16273,19 @@ const classes$i = __default__$j, defaultProps$W = {}, varsResolver$j = (theme2,
15980
16273
  }
15981
16274
  );
15982
16275
  });
15983
- Alert.classes = classes$i;
16276
+ Alert.classes = classes$l;
15984
16277
  Alert.displayName = "@mantine/core/Alert";
15985
- var __default__$i = { root: "m_b6d8b162" };
15986
- const classes$h = __default__$i;
16278
+ var __default__$l = { root: "m_b6d8b162" };
16279
+ const classes$k = __default__$l;
15987
16280
  function getTextTruncate(truncate) {
15988
16281
  if (truncate === "start")
15989
16282
  return "start";
15990
16283
  if (truncate === "end" || truncate)
15991
16284
  return "end";
15992
16285
  }
15993
- const defaultProps$V = {
16286
+ const defaultProps$Y = {
15994
16287
  inherit: !1
15995
- }, varsResolver$i = (theme2, { variant, lineClamp, gradient, size: size2, color: color2 }) => ({
16288
+ }, varsResolver$l = (theme2, { variant, lineClamp, gradient, size: size2, color: color2 }) => ({
15996
16289
  root: {
15997
16290
  "--text-fz": getFontSize(size2),
15998
16291
  "--text-lh": getLineHeight(size2),
@@ -16001,7 +16294,7 @@ const defaultProps$V = {
16001
16294
  "--text-color": color2 ? getThemeColor(color2, theme2) : void 0
16002
16295
  }
16003
16296
  }), Text$1 = polymorphicFactory((_props, ref) => {
16004
- const props = useProps("Text", defaultProps$V, _props), {
16297
+ const props = useProps("Text", defaultProps$Y, _props), {
16005
16298
  lineClamp,
16006
16299
  truncate,
16007
16300
  inline: inline2,
@@ -16022,14 +16315,14 @@ const defaultProps$V = {
16022
16315
  } = props, getStyles2 = useStyles({
16023
16316
  name: ["Text", __staticSelector],
16024
16317
  props,
16025
- classes: classes$h,
16318
+ classes: classes$k,
16026
16319
  className,
16027
16320
  style: style2,
16028
16321
  classNames,
16029
16322
  styles,
16030
16323
  unstyled,
16031
16324
  vars,
16032
- varsResolver: varsResolver$i
16325
+ varsResolver: varsResolver$l
16033
16326
  });
16034
16327
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
16035
16328
  Box$1,
@@ -16052,15 +16345,15 @@ const defaultProps$V = {
16052
16345
  }
16053
16346
  );
16054
16347
  });
16055
- Text$1.classes = classes$h;
16348
+ Text$1.classes = classes$k;
16056
16349
  Text$1.displayName = "@mantine/core/Text";
16057
- var __default__$h = { root: "m_849cf0da" };
16058
- const defaultProps$U = {
16350
+ var __default__$k = { root: "m_849cf0da" };
16351
+ const defaultProps$X = {
16059
16352
  underline: "hover"
16060
16353
  }, Anchor = polymorphicFactory((props, ref) => {
16061
16354
  const { underline, className, unstyled, mod, ...others } = useProps(
16062
16355
  "Anchor",
16063
- defaultProps$U,
16356
+ defaultProps$X,
16064
16357
  props
16065
16358
  );
16066
16359
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -16068,7 +16361,7 @@ const defaultProps$U = {
16068
16361
  {
16069
16362
  component: "a",
16070
16363
  ref,
16071
- className: clsx$1({ [__default__$h.root]: !unstyled }, className),
16364
+ className: clsx$1({ [__default__$k.root]: !unstyled }, className),
16072
16365
  ...others,
16073
16366
  mod: [{ underline }, mod],
16074
16367
  __staticSelector: "Anchor",
@@ -16076,7 +16369,7 @@ const defaultProps$U = {
16076
16369
  }
16077
16370
  );
16078
16371
  });
16079
- Anchor.classes = __default__$h;
16372
+ Anchor.classes = __default__$k;
16080
16373
  Anchor.displayName = "@mantine/core/Anchor";
16081
16374
  function parseItem(item) {
16082
16375
  return typeof item == "string" ? { value: item, label: item } : "value" in item && !("label" in item) ? { value: item.value, label: item.value, disabled: item.disabled } : typeof item == "number" ? { value: item.toString(), label: item.toString() } : "group" in item ? {
@@ -16090,17 +16383,17 @@ function getParsedComboboxData(data) {
16090
16383
  function getOptionsLockup(options) {
16091
16384
  return options.reduce((acc, item) => "group" in item ? { ...acc, ...getOptionsLockup(item.items) } : (acc[item.value] = item, acc), {});
16092
16385
  }
16093
- var __default__$g = { dropdown: "m_88b62a41", options: "m_b2821a6e", option: "m_92253aa5", search: "m_985517d8", empty: "m_2530cd1d", header: "m_858f94bd", footer: "m_82b967cb", group: "m_254f3e4f", groupLabel: "m_2bb2e9e5", chevron: "m_2943220b", optionsDropdownOption: "m_390b5f4", optionsDropdownCheckIcon: "m_8ee53fc2" };
16094
- const classes$g = __default__$g, defaultProps$T = {
16386
+ var __default__$j = { dropdown: "m_88b62a41", options: "m_b2821a6e", option: "m_92253aa5", search: "m_985517d8", empty: "m_2530cd1d", header: "m_858f94bd", footer: "m_82b967cb", group: "m_254f3e4f", groupLabel: "m_2bb2e9e5", chevron: "m_2943220b", optionsDropdownOption: "m_390b5f4", optionsDropdownCheckIcon: "m_8ee53fc2" };
16387
+ const classes$j = __default__$j, defaultProps$W = {
16095
16388
  error: null
16096
- }, varsResolver$h = (_2, { size: size2 }) => ({
16389
+ }, varsResolver$k = (_2, { size: size2 }) => ({
16097
16390
  chevron: {
16098
16391
  "--combobox-chevron-size": getSize(size2, "combobox-chevron-size")
16099
16392
  }
16100
16393
  }), ComboboxChevron = factory((_props, ref) => {
16101
- const props = useProps("ComboboxChevron", defaultProps$T, _props), { size: size2, error, style: style2, className, classNames, styles, unstyled, vars, mod, ...others } = props, getStyles2 = useStyles({
16394
+ const props = useProps("ComboboxChevron", defaultProps$W, _props), { size: size2, error, style: style2, className, classNames, styles, unstyled, vars, mod, ...others } = props, getStyles2 = useStyles({
16102
16395
  name: "ComboboxChevron",
16103
- classes: classes$g,
16396
+ classes: classes$j,
16104
16397
  props,
16105
16398
  style: style2,
16106
16399
  className,
@@ -16108,7 +16401,7 @@ const classes$g = __default__$g, defaultProps$T = {
16108
16401
  styles,
16109
16402
  unstyled,
16110
16403
  vars,
16111
- varsResolver: varsResolver$h,
16404
+ varsResolver: varsResolver$k,
16112
16405
  rootSelector: "chevron"
16113
16406
  });
16114
16407
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -16135,7 +16428,7 @@ const classes$g = __default__$g, defaultProps$T = {
16135
16428
  }
16136
16429
  );
16137
16430
  });
16138
- ComboboxChevron.classes = classes$g;
16431
+ ComboboxChevron.classes = classes$j;
16139
16432
  ComboboxChevron.displayName = "@mantine/core/ComboboxChevron";
16140
16433
  const [ComboboxProvider, useComboboxContext] = createSafeContext(
16141
16434
  "Combobox component was not found in tree"
@@ -16159,10 +16452,10 @@ const [ComboboxProvider, useComboboxContext] = createSafeContext(
16159
16452
  )
16160
16453
  );
16161
16454
  ComboboxClearButton.displayName = "@mantine/core/ComboboxClearButton";
16162
- const defaultProps$S = {}, ComboboxDropdown = factory((props, ref) => {
16455
+ const defaultProps$V = {}, ComboboxDropdown = factory((props, ref) => {
16163
16456
  const { classNames, styles, className, style: style2, hidden: hidden2, ...others } = useProps(
16164
16457
  "ComboboxDropdown",
16165
- defaultProps$S,
16458
+ defaultProps$V,
16166
16459
  props
16167
16460
  ), ctx = useComboboxContext();
16168
16461
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -16176,12 +16469,12 @@ const defaultProps$S = {}, ComboboxDropdown = factory((props, ref) => {
16176
16469
  }
16177
16470
  );
16178
16471
  });
16179
- ComboboxDropdown.classes = classes$g;
16472
+ ComboboxDropdown.classes = classes$j;
16180
16473
  ComboboxDropdown.displayName = "@mantine/core/ComboboxDropdown";
16181
- const defaultProps$R = {
16474
+ const defaultProps$U = {
16182
16475
  refProp: "ref"
16183
16476
  }, ComboboxDropdownTarget = factory((props, ref) => {
16184
- const { children: children2, refProp } = useProps("ComboboxDropdownTarget", defaultProps$R, props);
16477
+ const { children: children2, refProp } = useProps("ComboboxDropdownTarget", defaultProps$U, props);
16185
16478
  if (useComboboxContext(), !isElement$1(children2))
16186
16479
  throw new Error(
16187
16480
  "Combobox.DropdownTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
@@ -16189,10 +16482,10 @@ const defaultProps$R = {
16189
16482
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Popover.Target, { ref, refProp, children: children2 });
16190
16483
  });
16191
16484
  ComboboxDropdownTarget.displayName = "@mantine/core/ComboboxDropdownTarget";
16192
- const defaultProps$Q = {}, ComboboxEmpty = factory((props, ref) => {
16485
+ const defaultProps$T = {}, ComboboxEmpty = factory((props, ref) => {
16193
16486
  const { classNames, className, style: style2, styles, vars, ...others } = useProps(
16194
16487
  "ComboboxEmpty",
16195
- defaultProps$Q,
16488
+ defaultProps$T,
16196
16489
  props
16197
16490
  ), ctx = useComboboxContext();
16198
16491
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -16204,7 +16497,7 @@ const defaultProps$Q = {}, ComboboxEmpty = factory((props, ref) => {
16204
16497
  }
16205
16498
  );
16206
16499
  });
16207
- ComboboxEmpty.classes = classes$g;
16500
+ ComboboxEmpty.classes = classes$j;
16208
16501
  ComboboxEmpty.displayName = "@mantine/core/ComboboxEmpty";
16209
16502
  function useComboboxTargetProps({
16210
16503
  onKeyDown,
@@ -16240,7 +16533,7 @@ function useComboboxTargetProps({
16240
16533
  onKeyDown: handleKeyDown
16241
16534
  };
16242
16535
  }
16243
- const defaultProps$P = {
16536
+ const defaultProps$S = {
16244
16537
  refProp: "ref",
16245
16538
  targetType: "input",
16246
16539
  withKeyboardNavigation: !0,
@@ -16257,7 +16550,7 @@ const defaultProps$P = {
16257
16550
  targetType,
16258
16551
  autoComplete,
16259
16552
  ...others
16260
- } = useProps("ComboboxEventsTarget", defaultProps$P, props);
16553
+ } = useProps("ComboboxEventsTarget", defaultProps$S, props);
16261
16554
  if (!isElement$1(children2))
16262
16555
  throw new Error(
16263
16556
  "Combobox.EventsTarget component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
@@ -16277,10 +16570,10 @@ const defaultProps$P = {
16277
16570
  });
16278
16571
  });
16279
16572
  ComboboxEventsTarget.displayName = "@mantine/core/ComboboxEventsTarget";
16280
- const defaultProps$O = {}, ComboboxFooter = factory((props, ref) => {
16573
+ const defaultProps$R = {}, ComboboxFooter = factory((props, ref) => {
16281
16574
  const { classNames, className, style: style2, styles, vars, ...others } = useProps(
16282
16575
  "ComboboxFooter",
16283
- defaultProps$O,
16576
+ defaultProps$R,
16284
16577
  props
16285
16578
  ), ctx = useComboboxContext();
16286
16579
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -16292,12 +16585,12 @@ const defaultProps$O = {}, ComboboxFooter = factory((props, ref) => {
16292
16585
  }
16293
16586
  );
16294
16587
  });
16295
- ComboboxFooter.classes = classes$g;
16588
+ ComboboxFooter.classes = classes$j;
16296
16589
  ComboboxFooter.displayName = "@mantine/core/ComboboxFooter";
16297
- const defaultProps$N = {}, ComboboxGroup = factory((props, ref) => {
16590
+ const defaultProps$Q = {}, ComboboxGroup = factory((props, ref) => {
16298
16591
  const { classNames, className, style: style2, styles, vars, children: children2, label, ...others } = useProps(
16299
16592
  "ComboboxGroup",
16300
- defaultProps$N,
16593
+ defaultProps$Q,
16301
16594
  props
16302
16595
  ), ctx = useComboboxContext();
16303
16596
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
@@ -16313,12 +16606,12 @@ const defaultProps$N = {}, ComboboxGroup = factory((props, ref) => {
16313
16606
  }
16314
16607
  );
16315
16608
  });
16316
- ComboboxGroup.classes = classes$g;
16609
+ ComboboxGroup.classes = classes$j;
16317
16610
  ComboboxGroup.displayName = "@mantine/core/ComboboxGroup";
16318
- const defaultProps$M = {}, ComboboxHeader = factory((props, ref) => {
16611
+ const defaultProps$P = {}, ComboboxHeader = factory((props, ref) => {
16319
16612
  const { classNames, className, style: style2, styles, vars, ...others } = useProps(
16320
16613
  "ComboboxHeader",
16321
- defaultProps$M,
16614
+ defaultProps$P,
16322
16615
  props
16323
16616
  ), ctx = useComboboxContext();
16324
16617
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -16330,7 +16623,7 @@ const defaultProps$M = {}, ComboboxHeader = factory((props, ref) => {
16330
16623
  }
16331
16624
  );
16332
16625
  });
16333
- ComboboxHeader.classes = classes$g;
16626
+ ComboboxHeader.classes = classes$j;
16334
16627
  ComboboxHeader.displayName = "@mantine/core/ComboboxHeader";
16335
16628
  function ComboboxHiddenInput({
16336
16629
  value,
@@ -16347,8 +16640,8 @@ function ComboboxHiddenInput({
16347
16640
  );
16348
16641
  }
16349
16642
  ComboboxHiddenInput.displayName = "@mantine/core/ComboboxHiddenInput";
16350
- const defaultProps$L = {}, ComboboxOption = factory((_props, ref) => {
16351
- const props = useProps("ComboboxOption", defaultProps$L, _props), {
16643
+ const defaultProps$O = {}, ComboboxOption = factory((_props, ref) => {
16644
+ const props = useProps("ComboboxOption", defaultProps$O, _props), {
16352
16645
  classNames,
16353
16646
  className,
16354
16647
  style: style2,
@@ -16389,10 +16682,10 @@ const defaultProps$L = {}, ComboboxOption = factory((_props, ref) => {
16389
16682
  }
16390
16683
  );
16391
16684
  });
16392
- ComboboxOption.classes = classes$g;
16685
+ ComboboxOption.classes = classes$j;
16393
16686
  ComboboxOption.displayName = "@mantine/core/ComboboxOption";
16394
- const defaultProps$K = {}, ComboboxOptions = factory((_props, ref) => {
16395
- const props = useProps("ComboboxOptions", defaultProps$K, _props), { classNames, className, style: style2, styles, id: id2, onMouseDown, labelledBy, ...others } = props, ctx = useComboboxContext(), _id = useId$1(id2);
16687
+ const defaultProps$N = {}, ComboboxOptions = factory((_props, ref) => {
16688
+ const props = useProps("ComboboxOptions", defaultProps$N, _props), { classNames, className, style: style2, styles, id: id2, onMouseDown, labelledBy, ...others } = props, ctx = useComboboxContext(), _id = useId$1(id2);
16396
16689
  return reactExports.useEffect(() => {
16397
16690
  ctx.store.setListId(_id);
16398
16691
  }, [_id]), /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -16410,13 +16703,13 @@ const defaultProps$K = {}, ComboboxOptions = factory((_props, ref) => {
16410
16703
  }
16411
16704
  );
16412
16705
  });
16413
- ComboboxOptions.classes = classes$g;
16706
+ ComboboxOptions.classes = classes$j;
16414
16707
  ComboboxOptions.displayName = "@mantine/core/ComboboxOptions";
16415
- const defaultProps$J = {
16708
+ const defaultProps$M = {
16416
16709
  withAriaAttributes: !0,
16417
16710
  withKeyboardNavigation: !0
16418
16711
  }, ComboboxSearch = factory((_props, ref) => {
16419
- const props = useProps("ComboboxSearch", defaultProps$J, _props), {
16712
+ const props = useProps("ComboboxSearch", defaultProps$M, _props), {
16420
16713
  classNames,
16421
16714
  styles,
16422
16715
  unstyled,
@@ -16447,9 +16740,9 @@ const defaultProps$J = {
16447
16740
  }
16448
16741
  );
16449
16742
  });
16450
- ComboboxSearch.classes = classes$g;
16743
+ ComboboxSearch.classes = classes$j;
16451
16744
  ComboboxSearch.displayName = "@mantine/core/ComboboxSearch";
16452
- const defaultProps$I = {
16745
+ const defaultProps$L = {
16453
16746
  refProp: "ref",
16454
16747
  targetType: "input",
16455
16748
  withKeyboardNavigation: !0,
@@ -16466,7 +16759,7 @@ const defaultProps$I = {
16466
16759
  targetType,
16467
16760
  autoComplete,
16468
16761
  ...others
16469
- } = useProps("ComboboxTarget", defaultProps$I, props);
16762
+ } = useProps("ComboboxTarget", defaultProps$L, props);
16470
16763
  if (!isElement$1(children2))
16471
16764
  throw new Error(
16472
16765
  "Combobox.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
@@ -16643,13 +16936,13 @@ function useCombobox({
16643
16936
  focusTarget
16644
16937
  };
16645
16938
  }
16646
- const defaultProps$H = {
16939
+ const defaultProps$K = {
16647
16940
  keepMounted: !0,
16648
16941
  withinPortal: !0,
16649
16942
  resetSelectionOnOptionHover: !1,
16650
16943
  width: "target",
16651
16944
  transitionProps: { transition: "fade", duration: 0 }
16652
- }, varsResolver$g = (_2, { size: size2, dropdownPadding }) => ({
16945
+ }, varsResolver$j = (_2, { size: size2, dropdownPadding }) => ({
16653
16946
  options: {
16654
16947
  "--combobox-option-fz": getFontSize(size2),
16655
16948
  "--combobox-option-padding": getSize(size2, "combobox-option-padding")
@@ -16661,7 +16954,7 @@ const defaultProps$H = {
16661
16954
  }
16662
16955
  });
16663
16956
  function Combobox(_props) {
16664
- const props = useProps("Combobox", defaultProps$H, _props), {
16957
+ const props = useProps("Combobox", defaultProps$K, _props), {
16665
16958
  classNames,
16666
16959
  styles,
16667
16960
  unstyled,
@@ -16678,13 +16971,13 @@ function Combobox(_props) {
16678
16971
  ...others
16679
16972
  } = props, uncontrolledStore = useCombobox(), store = controlledStore || uncontrolledStore, getStyles2 = useStyles({
16680
16973
  name: __staticSelector || "Combobox",
16681
- classes: classes$g,
16974
+ classes: classes$j,
16682
16975
  props,
16683
16976
  classNames,
16684
16977
  styles,
16685
16978
  unstyled,
16686
16979
  vars,
16687
- varsResolver: varsResolver$g
16980
+ varsResolver: varsResolver$j
16688
16981
  }), onDropdownClose = () => {
16689
16982
  onClose?.(), store.closeDropdown();
16690
16983
  };
@@ -16715,7 +17008,7 @@ function Combobox(_props) {
16715
17008
  }
16716
17009
  const extendCombobox = (c2) => c2;
16717
17010
  Combobox.extend = extendCombobox;
16718
- Combobox.classes = classes$g;
17011
+ Combobox.classes = classes$j;
16719
17012
  Combobox.displayName = "@mantine/core/Combobox";
16720
17013
  Combobox.Target = ComboboxTarget;
16721
17014
  Combobox.Dropdown = ComboboxDropdown;
@@ -16817,7 +17110,7 @@ function Option({
16817
17110
  renderOption
16818
17111
  }) {
16819
17112
  if (!isOptionsGroup(data)) {
16820
- const checked = isValueChecked(value, data.value), check = withCheckIcon && checked && /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, { className: classes$g.optionsDropdownCheckIcon }), defaultContent = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
17113
+ const checked = isValueChecked(value, data.value), check = withCheckIcon && checked && /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, { className: classes$j.optionsDropdownCheckIcon }), defaultContent = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
16821
17114
  checkIconPosition === "left" && check,
16822
17115
  /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: data.label }),
16823
17116
  checkIconPosition === "right" && check
@@ -16827,7 +17120,7 @@ function Option({
16827
17120
  {
16828
17121
  value: data.value,
16829
17122
  disabled: data.disabled,
16830
- className: clsx$1({ [classes$g.optionsDropdownOption]: !unstyled }),
17123
+ className: clsx$1({ [classes$j.optionsDropdownOption]: !unstyled }),
16831
17124
  "data-reverse": checkIconPosition === "right" || void 0,
16832
17125
  "data-checked": checked || void 0,
16833
17126
  "aria-selected": checked,
@@ -16902,8 +17195,8 @@ function OptionsDropdown({
16902
17195
  isEmpty2 && nothingFoundMessage && /* @__PURE__ */ jsxRuntimeExports.jsx(Combobox.Empty, { children: nothingFoundMessage })
16903
17196
  ] }) });
16904
17197
  }
16905
- var __default__$f = { root: "m_347db0ec", "root--dot": "m_fbd81e3d", label: "m_5add502a", section: "m_91fdda9b" };
16906
- const classes$f = __default__$f, defaultProps$G = {}, varsResolver$f = (theme2, { radius, color: color2, gradient, variant, size: size2, autoContrast }) => {
17198
+ var __default__$i = { root: "m_347db0ec", "root--dot": "m_fbd81e3d", label: "m_5add502a", section: "m_91fdda9b" };
17199
+ const classes$i = __default__$i, defaultProps$J = {}, varsResolver$i = (theme2, { radius, color: color2, gradient, variant, size: size2, autoContrast }) => {
16907
17200
  const colors2 = theme2.variantColorResolver({
16908
17201
  color: color2 || theme2.primaryColor,
16909
17202
  theme: theme2,
@@ -16924,7 +17217,7 @@ const classes$f = __default__$f, defaultProps$G = {}, varsResolver$f = (theme2,
16924
17217
  }
16925
17218
  };
16926
17219
  }, Badge = polymorphicFactory((_props, ref) => {
16927
- const props = useProps("Badge", defaultProps$G, _props), {
17220
+ const props = useProps("Badge", defaultProps$J, _props), {
16928
17221
  classNames,
16929
17222
  className,
16930
17223
  style: style2,
@@ -16946,14 +17239,14 @@ const classes$f = __default__$f, defaultProps$G = {}, varsResolver$f = (theme2,
16946
17239
  } = props, getStyles2 = useStyles({
16947
17240
  name: "Badge",
16948
17241
  props,
16949
- classes: classes$f,
17242
+ classes: classes$i,
16950
17243
  className,
16951
17244
  style: style2,
16952
17245
  classNames,
16953
17246
  styles,
16954
17247
  unstyled,
16955
17248
  vars,
16956
- varsResolver: varsResolver$f
17249
+ varsResolver: varsResolver$i
16957
17250
  });
16958
17251
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
16959
17252
  Box$1,
@@ -16971,10 +17264,10 @@ const classes$f = __default__$f, defaultProps$G = {}, varsResolver$f = (theme2,
16971
17264
  }
16972
17265
  );
16973
17266
  });
16974
- Badge.classes = classes$f;
17267
+ Badge.classes = classes$i;
16975
17268
  Badge.displayName = "@mantine/core/Badge";
16976
- var __default__$e = { root: "m_fea6bf1a", burger: "m_d4fb9cad" };
16977
- const classes$e = __default__$e, defaultProps$F = {}, varsResolver$e = (theme2, { color: color2, size: size2, transitionDuration, transitionTimingFunction }) => ({
17269
+ var __default__$h = { root: "m_fea6bf1a", burger: "m_d4fb9cad" };
17270
+ const classes$h = __default__$h, defaultProps$I = {}, varsResolver$h = (theme2, { color: color2, size: size2, transitionDuration, transitionTimingFunction }) => ({
16978
17271
  root: {
16979
17272
  "--burger-color": color2 ? getThemeColor(color2, theme2) : void 0,
16980
17273
  "--burger-size": getSize(size2, "burger-size"),
@@ -16982,7 +17275,7 @@ const classes$e = __default__$e, defaultProps$F = {}, varsResolver$e = (theme2,
16982
17275
  "--burger-transition-timing-function": transitionTimingFunction
16983
17276
  }
16984
17277
  }), Burger = factory((_props, ref) => {
16985
- const props = useProps("Burger", defaultProps$F, _props), {
17278
+ const props = useProps("Burger", defaultProps$I, _props), {
16986
17279
  classNames,
16987
17280
  className,
16988
17281
  style: style2,
@@ -16996,7 +17289,7 @@ const classes$e = __default__$e, defaultProps$F = {}, varsResolver$e = (theme2,
16996
17289
  ...others
16997
17290
  } = props, getStyles2 = useStyles({
16998
17291
  name: "Burger",
16999
- classes: classes$e,
17292
+ classes: classes$h,
17000
17293
  props,
17001
17294
  className,
17002
17295
  style: style2,
@@ -17004,22 +17297,22 @@ const classes$e = __default__$e, defaultProps$F = {}, varsResolver$e = (theme2,
17004
17297
  styles,
17005
17298
  unstyled,
17006
17299
  vars,
17007
- varsResolver: varsResolver$e
17300
+ varsResolver: varsResolver$h
17008
17301
  });
17009
17302
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(UnstyledButton, { ...getStyles2("root"), ref, ...others, children: [
17010
17303
  /* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { mod: ["reduce-motion", { opened }], ...getStyles2("burger") }),
17011
17304
  children2
17012
17305
  ] });
17013
17306
  });
17014
- Burger.classes = classes$e;
17307
+ Burger.classes = classes$h;
17015
17308
  Burger.displayName = "@mantine/core/Burger";
17016
- var __default__$d = { root: "m_77c9d27d", inner: "m_80f1301b", label: "m_811560b9", section: "m_a74036a", loader: "m_a25b86ee", group: "m_80d6d844" };
17017
- const classes$d = __default__$d, defaultProps$E = {
17309
+ var __default__$g = { root: "m_77c9d27d", inner: "m_80f1301b", label: "m_811560b9", section: "m_a74036a", loader: "m_a25b86ee", group: "m_80d6d844" };
17310
+ const classes$g = __default__$g, defaultProps$H = {
17018
17311
  orientation: "horizontal"
17019
- }, varsResolver$d = (_2, { borderWidth }) => ({
17312
+ }, varsResolver$g = (_2, { borderWidth }) => ({
17020
17313
  group: { "--button-border-width": rem(borderWidth) }
17021
17314
  }), ButtonGroup = factory((_props, ref) => {
17022
- const props = useProps("ButtonGroup", defaultProps$E, _props), {
17315
+ const props = useProps("ButtonGroup", defaultProps$H, _props), {
17023
17316
  className,
17024
17317
  style: style2,
17025
17318
  classNames,
@@ -17031,17 +17324,17 @@ const classes$d = __default__$d, defaultProps$E = {
17031
17324
  variant,
17032
17325
  mod,
17033
17326
  ...others
17034
- } = useProps("ButtonGroup", defaultProps$E, _props), getStyles2 = useStyles({
17327
+ } = useProps("ButtonGroup", defaultProps$H, _props), getStyles2 = useStyles({
17035
17328
  name: "ButtonGroup",
17036
17329
  props,
17037
- classes: classes$d,
17330
+ classes: classes$g,
17038
17331
  className,
17039
17332
  style: style2,
17040
17333
  classNames,
17041
17334
  styles,
17042
17335
  unstyled,
17043
17336
  vars,
17044
- varsResolver: varsResolver$d,
17337
+ varsResolver: varsResolver$g,
17045
17338
  rootSelector: "group"
17046
17339
  });
17047
17340
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -17056,14 +17349,14 @@ const classes$d = __default__$d, defaultProps$E = {
17056
17349
  }
17057
17350
  );
17058
17351
  });
17059
- ButtonGroup.classes = classes$d;
17352
+ ButtonGroup.classes = classes$g;
17060
17353
  ButtonGroup.displayName = "@mantine/core/ButtonGroup";
17061
17354
  const loaderTransition = {
17062
17355
  in: { opacity: 1, transform: `translate(-50%, calc(-50% + ${rem(1)}))` },
17063
17356
  out: { opacity: 0, transform: "translate(-50%, -200%)" },
17064
17357
  common: { transformOrigin: "center" },
17065
17358
  transitionProperty: "transform, opacity"
17066
- }, defaultProps$D = {}, varsResolver$c = (theme2, { radius, color: color2, gradient, variant, size: size2, justify, autoContrast }) => {
17359
+ }, defaultProps$G = {}, varsResolver$f = (theme2, { radius, color: color2, gradient, variant, size: size2, justify, autoContrast }) => {
17067
17360
  const colors2 = theme2.variantColorResolver({
17068
17361
  color: color2 || theme2.primaryColor,
17069
17362
  theme: theme2,
@@ -17086,7 +17379,7 @@ const loaderTransition = {
17086
17379
  }
17087
17380
  };
17088
17381
  }, Button = polymorphicFactory((_props, ref) => {
17089
- const props = useProps("Button", defaultProps$D, _props), {
17382
+ const props = useProps("Button", defaultProps$G, _props), {
17090
17383
  style: style2,
17091
17384
  vars,
17092
17385
  className,
@@ -17111,14 +17404,14 @@ const loaderTransition = {
17111
17404
  } = props, getStyles2 = useStyles({
17112
17405
  name: "Button",
17113
17406
  props,
17114
- classes: classes$d,
17407
+ classes: classes$g,
17115
17408
  className,
17116
17409
  style: style2,
17117
17410
  classNames,
17118
17411
  styles,
17119
17412
  unstyled,
17120
17413
  vars,
17121
- varsResolver: varsResolver$c
17414
+ varsResolver: varsResolver$f
17122
17415
  }), hasLeftSection = !!leftSection, hasRightSection = !!rightSection;
17123
17416
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
17124
17417
  UnstyledButton,
@@ -17157,15 +17450,15 @@ const loaderTransition = {
17157
17450
  }
17158
17451
  );
17159
17452
  });
17160
- Button.classes = classes$d;
17453
+ Button.classes = classes$g;
17161
17454
  Button.displayName = "@mantine/core/Button";
17162
17455
  Button.Group = ButtonGroup;
17163
17456
  const [CardProvider, useCardContext] = createSafeContext(
17164
17457
  "Card component was not found in tree"
17165
17458
  );
17166
- var __default__$c = { root: "m_e615b15f", section: "m_599a2148" };
17167
- const classes$c = __default__$c, defaultProps$C = {}, CardSection = polymorphicFactory((_props, ref) => {
17168
- const props = useProps("CardSection", defaultProps$C, _props), { classNames, className, style: style2, styles, vars, withBorder, inheritPadding, mod, ...others } = props, ctx = useCardContext();
17459
+ var __default__$f = { root: "m_e615b15f", section: "m_599a2148" };
17460
+ const classes$f = __default__$f, defaultProps$F = {}, CardSection = polymorphicFactory((_props, ref) => {
17461
+ const props = useProps("CardSection", defaultProps$F, _props), { classNames, className, style: style2, styles, vars, withBorder, inheritPadding, mod, ...others } = props, ctx = useCardContext();
17169
17462
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
17170
17463
  Box$1,
17171
17464
  {
@@ -17176,39 +17469,39 @@ const classes$c = __default__$c, defaultProps$C = {}, CardSection = polymorphicF
17176
17469
  }
17177
17470
  );
17178
17471
  });
17179
- CardSection.classes = classes$c;
17472
+ CardSection.classes = classes$f;
17180
17473
  CardSection.displayName = "@mantine/core/CardSection";
17181
- const defaultProps$B = {}, varsResolver$b = (_2, { padding }) => ({
17474
+ const defaultProps$E = {}, varsResolver$e = (_2, { padding }) => ({
17182
17475
  root: {
17183
17476
  "--card-padding": getSpacing(padding)
17184
17477
  }
17185
17478
  }), Card$1 = polymorphicFactory((_props, ref) => {
17186
- const props = useProps("Card", defaultProps$B, _props), { classNames, className, style: style2, styles, unstyled, vars, children: children2, padding, ...others } = props, getStyles2 = useStyles({
17479
+ const props = useProps("Card", defaultProps$E, _props), { classNames, className, style: style2, styles, unstyled, vars, children: children2, padding, ...others } = props, getStyles2 = useStyles({
17187
17480
  name: "Card",
17188
17481
  props,
17189
- classes: classes$c,
17482
+ classes: classes$f,
17190
17483
  className,
17191
17484
  style: style2,
17192
17485
  classNames,
17193
17486
  styles,
17194
17487
  unstyled,
17195
17488
  vars,
17196
- varsResolver: varsResolver$b
17489
+ varsResolver: varsResolver$e
17197
17490
  }), _children = reactExports.Children.toArray(children2), content2 = _children.map((child, index2) => typeof child == "object" && child && "type" in child && child.type === CardSection ? reactExports.cloneElement(child, {
17198
17491
  "data-first-section": index2 === 0 || void 0,
17199
17492
  "data-last-section": index2 === _children.length - 1 || void 0
17200
17493
  }) : child);
17201
17494
  return /* @__PURE__ */ jsxRuntimeExports.jsx(CardProvider, { value: { getStyles: getStyles2 }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Paper, { ref, unstyled, ...getStyles2("root"), ...others, children: content2 }) });
17202
17495
  });
17203
- Card$1.classes = classes$c;
17496
+ Card$1.classes = classes$f;
17204
17497
  Card$1.displayName = "@mantine/core/Card";
17205
17498
  Card$1.Section = CardSection;
17206
- var __default__$b = { root: "m_4451eb3a" };
17207
- const classes$b = __default__$b, defaultProps$A = {}, Center = polymorphicFactory((_props, ref) => {
17208
- const props = useProps("Center", defaultProps$A, _props), { classNames, className, style: style2, styles, unstyled, vars, inline: inline2, mod, ...others } = props, getStyles2 = useStyles({
17499
+ var __default__$e = { root: "m_4451eb3a" };
17500
+ const classes$e = __default__$e, defaultProps$D = {}, Center = polymorphicFactory((_props, ref) => {
17501
+ const props = useProps("Center", defaultProps$D, _props), { classNames, className, style: style2, styles, unstyled, vars, inline: inline2, mod, ...others } = props, getStyles2 = useStyles({
17209
17502
  name: "Center",
17210
17503
  props,
17211
- classes: classes$b,
17504
+ classes: classes$e,
17212
17505
  className,
17213
17506
  style: style2,
17214
17507
  classNames,
@@ -17218,15 +17511,15 @@ const classes$b = __default__$b, defaultProps$A = {}, Center = polymorphicFactor
17218
17511
  });
17219
17512
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { ref, mod: [{ inline: inline2 }, mod], ...getStyles2("root"), ...others });
17220
17513
  });
17221
- Center.classes = classes$b;
17514
+ Center.classes = classes$e;
17222
17515
  Center.displayName = "@mantine/core/Center";
17223
- var __default__$a = { root: "m_b183c0a2" };
17224
- const classes$a = __default__$a, defaultProps$z = {}, varsResolver$a = (theme2, { color: color2 }) => ({
17516
+ var __default__$d = { root: "m_b183c0a2" };
17517
+ const classes$d = __default__$d, defaultProps$C = {}, varsResolver$d = (theme2, { color: color2 }) => ({
17225
17518
  root: {
17226
17519
  "--code-bg": color2 ? getThemeColor(color2, theme2) : void 0
17227
17520
  }
17228
17521
  }), Code = factory((_props, ref) => {
17229
- const props = useProps("Code", defaultProps$z, _props), {
17522
+ const props = useProps("Code", defaultProps$C, _props), {
17230
17523
  classNames,
17231
17524
  className,
17232
17525
  style: style2,
@@ -17241,14 +17534,14 @@ const classes$a = __default__$a, defaultProps$z = {}, varsResolver$a = (theme2,
17241
17534
  } = props, getStyles2 = useStyles({
17242
17535
  name: "Code",
17243
17536
  props,
17244
- classes: classes$a,
17537
+ classes: classes$d,
17245
17538
  className,
17246
17539
  style: style2,
17247
17540
  classNames,
17248
17541
  styles,
17249
17542
  unstyled,
17250
17543
  vars,
17251
- varsResolver: varsResolver$a
17544
+ varsResolver: varsResolver$d
17252
17545
  });
17253
17546
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
17254
17547
  Box$1,
@@ -17263,18 +17556,18 @@ const classes$a = __default__$a, defaultProps$z = {}, varsResolver$a = (theme2,
17263
17556
  }
17264
17557
  );
17265
17558
  });
17266
- Code.classes = classes$a;
17559
+ Code.classes = classes$d;
17267
17560
  Code.displayName = "@mantine/core/Code";
17268
- var __default__$9 = { root: "m_de3d2490", colorOverlay: "m_862f3d1b", shadowOverlay: "m_98ae7f22", alphaOverlay: "m_95709ac0", childrenOverlay: "m_93e74e3" };
17269
- const classes$9 = __default__$9, defaultProps$y = {
17561
+ var __default__$c = { root: "m_de3d2490", colorOverlay: "m_862f3d1b", shadowOverlay: "m_98ae7f22", alphaOverlay: "m_95709ac0", childrenOverlay: "m_93e74e3" };
17562
+ const classes$c = __default__$c, defaultProps$B = {
17270
17563
  withShadow: !0
17271
- }, varsResolver$9 = (_2, { radius, size: size2 }) => ({
17564
+ }, varsResolver$c = (_2, { radius, size: size2 }) => ({
17272
17565
  root: {
17273
17566
  "--cs-radius": radius === void 0 ? void 0 : getRadius$1(radius),
17274
17567
  "--cs-size": rem(size2)
17275
17568
  }
17276
17569
  }), ColorSwatch = polymorphicFactory((_props, ref) => {
17277
- const props = useProps("ColorSwatch", defaultProps$y, _props), {
17570
+ const props = useProps("ColorSwatch", defaultProps$B, _props), {
17278
17571
  classNames,
17279
17572
  className,
17280
17573
  style: style2,
@@ -17288,17 +17581,17 @@ const classes$9 = __default__$9, defaultProps$y = {
17288
17581
  children: children2,
17289
17582
  variant,
17290
17583
  ...others
17291
- } = useProps("ColorSwatch", defaultProps$y, props), getStyles2 = useStyles({
17584
+ } = useProps("ColorSwatch", defaultProps$B, props), getStyles2 = useStyles({
17292
17585
  name: "ColorSwatch",
17293
17586
  props,
17294
- classes: classes$9,
17587
+ classes: classes$c,
17295
17588
  className,
17296
17589
  style: style2,
17297
17590
  classNames,
17298
17591
  styles,
17299
17592
  unstyled,
17300
17593
  vars,
17301
- varsResolver: varsResolver$9
17594
+ varsResolver: varsResolver$c
17302
17595
  });
17303
17596
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
17304
17597
  Box$1,
@@ -17317,17 +17610,17 @@ const classes$9 = __default__$9, defaultProps$y = {
17317
17610
  }
17318
17611
  );
17319
17612
  });
17320
- ColorSwatch.classes = classes$9;
17613
+ ColorSwatch.classes = classes$c;
17321
17614
  ColorSwatch.displayName = "@mantine/core/ColorSwatch";
17322
- var __default__$8 = { root: "m_7485cace" };
17323
- const classes$8 = __default__$8, defaultProps$x = {}, varsResolver$8 = (_2, { size: size2, fluid }) => ({
17615
+ var __default__$b = { root: "m_7485cace" };
17616
+ const classes$b = __default__$b, defaultProps$A = {}, varsResolver$b = (_2, { size: size2, fluid }) => ({
17324
17617
  root: {
17325
17618
  "--container-size": fluid ? void 0 : getSize(size2, "container-size")
17326
17619
  }
17327
17620
  }), Container$1 = factory((_props, ref) => {
17328
- const props = useProps("Container", defaultProps$x, _props), { classNames, className, style: style2, styles, unstyled, vars, fluid, mod, ...others } = props, getStyles2 = useStyles({
17621
+ const props = useProps("Container", defaultProps$A, _props), { classNames, className, style: style2, styles, unstyled, vars, fluid, mod, ...others } = props, getStyles2 = useStyles({
17329
17622
  name: "Container",
17330
- classes: classes$8,
17623
+ classes: classes$b,
17331
17624
  props,
17332
17625
  className,
17333
17626
  style: style2,
@@ -17335,31 +17628,31 @@ const classes$8 = __default__$8, defaultProps$x = {}, varsResolver$8 = (_2, { si
17335
17628
  styles,
17336
17629
  unstyled,
17337
17630
  vars,
17338
- varsResolver: varsResolver$8
17631
+ varsResolver: varsResolver$b
17339
17632
  });
17340
17633
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { ref, mod: [{ fluid }, mod], ...getStyles2("root"), ...others });
17341
17634
  });
17342
- Container$1.classes = classes$8;
17635
+ Container$1.classes = classes$b;
17343
17636
  Container$1.displayName = "@mantine/core/Container";
17344
- const defaultProps$w = {
17637
+ const defaultProps$z = {
17345
17638
  timeout: 1e3
17346
17639
  };
17347
17640
  function CopyButton(props) {
17348
- const { children: children2, timeout: timeout2, value, ...others } = useProps("CopyButton", defaultProps$w, props), clipboard = useClipboard({ timeout: timeout2 }), copy = () => clipboard.copy(value);
17641
+ const { children: children2, timeout: timeout2, value, ...others } = useProps("CopyButton", defaultProps$z, props), clipboard = useClipboard({ timeout: timeout2 }), copy = () => clipboard.copy(value);
17349
17642
  return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: children2({ copy, copied: clipboard.copied, ...others }) });
17350
17643
  }
17351
17644
  CopyButton.displayName = "@mantine/core/CopyButton";
17352
- var __default__$7 = { root: "m_3eebeb36", label: "m_9e365f20" };
17353
- const classes$7 = __default__$7, defaultProps$v = {
17645
+ var __default__$a = { root: "m_3eebeb36", label: "m_9e365f20" };
17646
+ const classes$a = __default__$a, defaultProps$y = {
17354
17647
  orientation: "horizontal"
17355
- }, varsResolver$7 = (theme2, { color: color2, variant, size: size2 }) => ({
17648
+ }, varsResolver$a = (theme2, { color: color2, variant, size: size2 }) => ({
17356
17649
  root: {
17357
17650
  "--divider-color": color2 ? getThemeColor(color2, theme2) : void 0,
17358
17651
  "--divider-border-style": variant,
17359
17652
  "--divider-size": getSize(size2, "divider-size")
17360
17653
  }
17361
17654
  }), Divider = factory((_props, ref) => {
17362
- const props = useProps("Divider", defaultProps$v, _props), {
17655
+ const props = useProps("Divider", defaultProps$y, _props), {
17363
17656
  classNames,
17364
17657
  className,
17365
17658
  style: style2,
@@ -17374,7 +17667,7 @@ const classes$7 = __default__$7, defaultProps$v = {
17374
17667
  ...others
17375
17668
  } = props, getStyles2 = useStyles({
17376
17669
  name: "Divider",
17377
- classes: classes$7,
17670
+ classes: classes$a,
17378
17671
  props,
17379
17672
  className,
17380
17673
  style: style2,
@@ -17382,7 +17675,7 @@ const classes$7 = __default__$7, defaultProps$v = {
17382
17675
  styles,
17383
17676
  unstyled,
17384
17677
  vars,
17385
- varsResolver: varsResolver$7
17678
+ varsResolver: varsResolver$a
17386
17679
  });
17387
17680
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
17388
17681
  Box$1,
@@ -17396,14 +17689,14 @@ const classes$7 = __default__$7, defaultProps$v = {
17396
17689
  }
17397
17690
  );
17398
17691
  });
17399
- Divider.classes = classes$7;
17692
+ Divider.classes = classes$a;
17400
17693
  Divider.displayName = "@mantine/core/Divider";
17401
17694
  const [DrawerProvider, useDrawerContext] = createSafeContext(
17402
17695
  "Drawer component was not found in tree"
17403
17696
  );
17404
- var __default__$6 = { root: "m_f11b401e", header: "m_5a7c2c9", content: "m_b8a05bbd", inner: "m_31cd769a" };
17405
- const classes$6 = __default__$6, defaultProps$u = {}, DrawerBody = factory((_props, ref) => {
17406
- const props = useProps("DrawerBody", defaultProps$u, _props), { classNames, className, style: style2, styles, vars, ...others } = props, ctx = useDrawerContext();
17697
+ var __default__$9 = { root: "m_f11b401e", header: "m_5a7c2c9", content: "m_b8a05bbd", inner: "m_31cd769a" };
17698
+ const classes$9 = __default__$9, defaultProps$x = {}, DrawerBody = factory((_props, ref) => {
17699
+ const props = useProps("DrawerBody", defaultProps$x, _props), { classNames, className, style: style2, styles, vars, ...others } = props, ctx = useDrawerContext();
17407
17700
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
17408
17701
  ModalBaseBody,
17409
17702
  {
@@ -17413,10 +17706,10 @@ const classes$6 = __default__$6, defaultProps$u = {}, DrawerBody = factory((_pro
17413
17706
  }
17414
17707
  );
17415
17708
  });
17416
- DrawerBody.classes = classes$6;
17709
+ DrawerBody.classes = classes$9;
17417
17710
  DrawerBody.displayName = "@mantine/core/DrawerBody";
17418
- const defaultProps$t = {}, DrawerCloseButton = factory((_props, ref) => {
17419
- const props = useProps("DrawerCloseButton", defaultProps$t, _props), { classNames, className, style: style2, styles, vars, ...others } = props, ctx = useDrawerContext();
17711
+ const defaultProps$w = {}, DrawerCloseButton = factory((_props, ref) => {
17712
+ const props = useProps("DrawerCloseButton", defaultProps$w, _props), { classNames, className, style: style2, styles, vars, ...others } = props, ctx = useDrawerContext();
17420
17713
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
17421
17714
  ModalBaseCloseButton,
17422
17715
  {
@@ -17426,10 +17719,10 @@ const defaultProps$t = {}, DrawerCloseButton = factory((_props, ref) => {
17426
17719
  }
17427
17720
  );
17428
17721
  });
17429
- DrawerCloseButton.classes = classes$6;
17722
+ DrawerCloseButton.classes = classes$9;
17430
17723
  DrawerCloseButton.displayName = "@mantine/core/DrawerCloseButton";
17431
- const defaultProps$s = {}, DrawerContent = factory((_props, ref) => {
17432
- const props = useProps("DrawerContent", defaultProps$s, _props), { classNames, className, style: style2, styles, vars, children: children2, radius, ...others } = props, ctx = useDrawerContext(), Scroll = ctx.scrollAreaComponent || NativeScrollArea;
17724
+ const defaultProps$v = {}, DrawerContent = factory((_props, ref) => {
17725
+ const props = useProps("DrawerContent", defaultProps$v, _props), { classNames, className, style: style2, styles, vars, children: children2, radius, ...others } = props, ctx = useDrawerContext(), Scroll = ctx.scrollAreaComponent || NativeScrollArea;
17433
17726
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
17434
17727
  ModalBaseContent,
17435
17728
  {
@@ -17442,10 +17735,10 @@ const defaultProps$s = {}, DrawerContent = factory((_props, ref) => {
17442
17735
  }
17443
17736
  );
17444
17737
  });
17445
- DrawerContent.classes = classes$6;
17738
+ DrawerContent.classes = classes$9;
17446
17739
  DrawerContent.displayName = "@mantine/core/DrawerContent";
17447
- const defaultProps$r = {}, DrawerHeader = factory((_props, ref) => {
17448
- const props = useProps("DrawerHeader", defaultProps$r, _props), { classNames, className, style: style2, styles, vars, ...others } = props, ctx = useDrawerContext();
17740
+ const defaultProps$u = {}, DrawerHeader = factory((_props, ref) => {
17741
+ const props = useProps("DrawerHeader", defaultProps$u, _props), { classNames, className, style: style2, styles, vars, ...others } = props, ctx = useDrawerContext();
17449
17742
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
17450
17743
  ModalBaseHeader,
17451
17744
  {
@@ -17455,10 +17748,10 @@ const defaultProps$r = {}, DrawerHeader = factory((_props, ref) => {
17455
17748
  }
17456
17749
  );
17457
17750
  });
17458
- DrawerHeader.classes = classes$6;
17751
+ DrawerHeader.classes = classes$9;
17459
17752
  DrawerHeader.displayName = "@mantine/core/DrawerHeader";
17460
- const defaultProps$q = {}, DrawerOverlay = factory((_props, ref) => {
17461
- const props = useProps("DrawerOverlay", defaultProps$q, _props), { classNames, className, style: style2, styles, vars, ...others } = props, ctx = useDrawerContext();
17753
+ const defaultProps$t = {}, DrawerOverlay = factory((_props, ref) => {
17754
+ const props = useProps("DrawerOverlay", defaultProps$t, _props), { classNames, className, style: style2, styles, vars, ...others } = props, ctx = useDrawerContext();
17462
17755
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
17463
17756
  ModalBaseOverlay,
17464
17757
  {
@@ -17468,7 +17761,7 @@ const defaultProps$q = {}, DrawerOverlay = factory((_props, ref) => {
17468
17761
  }
17469
17762
  );
17470
17763
  });
17471
- DrawerOverlay.classes = classes$6;
17764
+ DrawerOverlay.classes = classes$9;
17472
17765
  DrawerOverlay.displayName = "@mantine/core/DrawerOverlay";
17473
17766
  function getDrawerAlign(position) {
17474
17767
  switch (position) {
@@ -17494,7 +17787,7 @@ const transitions = {
17494
17787
  bottom: "slide-up",
17495
17788
  right: "slide-right",
17496
17789
  left: "slide-left"
17497
- }, defaultProps$p = {
17790
+ }, defaultProps$s = {
17498
17791
  closeOnClickOutside: !0,
17499
17792
  withinPortal: !0,
17500
17793
  lockScroll: !0,
@@ -17504,7 +17797,7 @@ const transitions = {
17504
17797
  keepMounted: !1,
17505
17798
  zIndex: getDefaultZIndex("modal"),
17506
17799
  position: "left"
17507
- }, varsResolver$6 = (_2, { position, size: size2, offset: offset2 }) => ({
17800
+ }, varsResolver$9 = (_2, { position, size: size2, offset: offset2 }) => ({
17508
17801
  root: {
17509
17802
  "--drawer-size": getSize(size2, "drawer-size"),
17510
17803
  "--drawer-flex": getDrawerFlex(position),
@@ -17514,7 +17807,7 @@ const transitions = {
17514
17807
  "--drawer-offset": rem(offset2)
17515
17808
  }
17516
17809
  }), DrawerRoot = factory((_props, ref) => {
17517
- const props = useProps("DrawerRoot", defaultProps$p, _props), {
17810
+ const props = useProps("DrawerRoot", defaultProps$s, _props), {
17518
17811
  classNames,
17519
17812
  className,
17520
17813
  style: style2,
@@ -17528,7 +17821,7 @@ const transitions = {
17528
17821
  ...others
17529
17822
  } = props, { dir } = useDirection(), getStyles2 = useStyles({
17530
17823
  name: "Drawer",
17531
- classes: classes$6,
17824
+ classes: classes$9,
17532
17825
  props,
17533
17826
  className,
17534
17827
  style: style2,
@@ -17536,7 +17829,7 @@ const transitions = {
17536
17829
  styles,
17537
17830
  unstyled,
17538
17831
  vars,
17539
- varsResolver: varsResolver$6
17832
+ varsResolver: varsResolver$9
17540
17833
  }), drawerTransition = (dir === "rtl" ? rtlTransitions : transitions)[position];
17541
17834
  return /* @__PURE__ */ jsxRuntimeExports.jsx(DrawerProvider, { value: { scrollAreaComponent, getStyles: getStyles2, radius }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
17542
17835
  ModalBase,
@@ -17549,10 +17842,10 @@ const transitions = {
17549
17842
  }
17550
17843
  ) });
17551
17844
  });
17552
- DrawerRoot.classes = classes$6;
17845
+ DrawerRoot.classes = classes$9;
17553
17846
  DrawerRoot.displayName = "@mantine/core/DrawerRoot";
17554
- const defaultProps$o = {}, DrawerTitle = factory((_props, ref) => {
17555
- const props = useProps("DrawerTitle", defaultProps$o, _props), { classNames, className, style: style2, styles, vars, ...others } = props, ctx = useDrawerContext();
17847
+ const defaultProps$r = {}, DrawerTitle = factory((_props, ref) => {
17848
+ const props = useProps("DrawerTitle", defaultProps$r, _props), { classNames, className, style: style2, styles, vars, ...others } = props, ctx = useDrawerContext();
17556
17849
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
17557
17850
  ModalBaseTitle,
17558
17851
  {
@@ -17562,9 +17855,9 @@ const defaultProps$o = {}, DrawerTitle = factory((_props, ref) => {
17562
17855
  }
17563
17856
  );
17564
17857
  });
17565
- DrawerTitle.classes = classes$6;
17858
+ DrawerTitle.classes = classes$9;
17566
17859
  DrawerTitle.displayName = "@mantine/core/DrawerTitle";
17567
- const defaultProps$n = {
17860
+ const defaultProps$q = {
17568
17861
  closeOnClickOutside: !0,
17569
17862
  withinPortal: !0,
17570
17863
  lockScroll: !0,
@@ -17584,7 +17877,7 @@ const defaultProps$n = {
17584
17877
  closeButtonProps,
17585
17878
  children: children2,
17586
17879
  ...others
17587
- } = useProps("Drawer", defaultProps$n, _props), hasHeader = !!title2 || withCloseButton;
17880
+ } = useProps("Drawer", defaultProps$q, _props), hasHeader = !!title2 || withCloseButton;
17588
17881
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(DrawerRoot, { ref, ...others, children: [
17589
17882
  withOverlay && /* @__PURE__ */ jsxRuntimeExports.jsx(DrawerOverlay, { ...overlayProps }),
17590
17883
  /* @__PURE__ */ jsxRuntimeExports.jsxs(DrawerContent, { children: [
@@ -17596,7 +17889,7 @@ const defaultProps$n = {
17596
17889
  ] })
17597
17890
  ] });
17598
17891
  });
17599
- Drawer.classes = classes$6;
17892
+ Drawer.classes = classes$9;
17600
17893
  Drawer.displayName = "@mantine/core/Drawer";
17601
17894
  Drawer.Root = DrawerRoot;
17602
17895
  Drawer.Overlay = DrawerOverlay;
@@ -17617,22 +17910,22 @@ function useDelayedHover({ open, close, openDelay, closeDelay }) {
17617
17910
  }
17618
17911
  const [HoverCardContextProvider, useHoverCardContext] = createSafeContext(
17619
17912
  "HoverCard component was not found in the tree"
17620
- ), defaultProps$m = {};
17913
+ ), defaultProps$p = {};
17621
17914
  function HoverCardDropdown(props) {
17622
17915
  const { children: children2, onMouseEnter, onMouseLeave, ...others } = useProps(
17623
17916
  "HoverCardDropdown",
17624
- defaultProps$m,
17917
+ defaultProps$p,
17625
17918
  props
17626
17919
  ), ctx = useHoverCardContext(), handleMouseEnter = createEventHandler(onMouseEnter, ctx.openDropdown), handleMouseLeave = createEventHandler(onMouseLeave, ctx.closeDropdown);
17627
17920
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Popover.Dropdown, { onMouseEnter: handleMouseEnter, onMouseLeave: handleMouseLeave, ...others, children: children2 });
17628
17921
  }
17629
17922
  HoverCardDropdown.displayName = "@mantine/core/HoverCardDropdown";
17630
- const defaultProps$l = {
17923
+ const defaultProps$o = {
17631
17924
  refProp: "ref"
17632
17925
  }, HoverCardTarget = reactExports.forwardRef((props, ref) => {
17633
17926
  const { children: children2, refProp, eventPropsWrapperName, ...others } = useProps(
17634
17927
  "HoverCardTarget",
17635
- defaultProps$l,
17928
+ defaultProps$o,
17636
17929
  props
17637
17930
  );
17638
17931
  if (!isElement$1(children2))
@@ -17646,7 +17939,7 @@ const defaultProps$l = {
17646
17939
  ) });
17647
17940
  });
17648
17941
  HoverCardTarget.displayName = "@mantine/core/HoverCardTarget";
17649
- const defaultProps$k = {
17942
+ const defaultProps$n = {
17650
17943
  openDelay: 0,
17651
17944
  closeDelay: 150,
17652
17945
  initiallyOpened: !1
@@ -17654,7 +17947,7 @@ const defaultProps$k = {
17654
17947
  function HoverCard(props) {
17655
17948
  const { children: children2, onOpen, onClose, openDelay, closeDelay, initiallyOpened, ...others } = useProps(
17656
17949
  "HoverCard",
17657
- defaultProps$k,
17950
+ defaultProps$n,
17658
17951
  props
17659
17952
  ), [opened, { open, close }] = useDisclosure(initiallyOpened, { onClose, onOpen }), { openDropdown, closeDropdown } = useDelayedHover({ open, close, openDelay, closeDelay });
17660
17953
  return /* @__PURE__ */ jsxRuntimeExports.jsx(HoverCardContextProvider, { value: { openDropdown, closeDropdown }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Popover, { ...others, opened, __staticSelector: "HoverCard", children: children2 }) });
@@ -17676,11 +17969,11 @@ function _extends() {
17676
17969
  const [MenuContextProvider, useMenuContext] = createSafeContext(
17677
17970
  "Menu component was not found in the tree"
17678
17971
  );
17679
- var __default__$5 = { dropdown: "m_dc9b7c9f", label: "m_9bfac126", divider: "m_efdf90cb", item: "m_99ac2aa1", itemLabel: "m_5476e0d3", itemSection: "m_8b75e504" };
17680
- const classes$5 = __default__$5, defaultProps$j = {}, MenuDivider = factory((props, ref) => {
17972
+ var __default__$8 = { dropdown: "m_dc9b7c9f", label: "m_9bfac126", divider: "m_efdf90cb", item: "m_99ac2aa1", itemLabel: "m_5476e0d3", itemSection: "m_8b75e504" };
17973
+ const classes$8 = __default__$8, defaultProps$m = {}, MenuDivider = factory((props, ref) => {
17681
17974
  const { classNames, className, style: style2, styles, vars, ...others } = useProps(
17682
17975
  "MenuDivider",
17683
- defaultProps$j,
17976
+ defaultProps$m,
17684
17977
  props
17685
17978
  ), ctx = useMenuContext();
17686
17979
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -17692,9 +17985,9 @@ const classes$5 = __default__$5, defaultProps$j = {}, MenuDivider = factory((pro
17692
17985
  }
17693
17986
  );
17694
17987
  });
17695
- MenuDivider.classes = classes$5;
17988
+ MenuDivider.classes = classes$8;
17696
17989
  MenuDivider.displayName = "@mantine/core/MenuDivider";
17697
- const defaultProps$i = {}, MenuDropdown = factory((props, ref) => {
17990
+ const defaultProps$l = {}, MenuDropdown = factory((props, ref) => {
17698
17991
  const {
17699
17992
  classNames,
17700
17993
  className,
@@ -17705,7 +17998,7 @@ const defaultProps$i = {}, MenuDropdown = factory((props, ref) => {
17705
17998
  onMouseLeave,
17706
17999
  children: children2,
17707
18000
  ...others
17708
- } = useProps("MenuDropdown", defaultProps$i, props), wrapperRef = reactExports.useRef(null), ctx = useMenuContext(), handleKeyDown = (event) => {
18001
+ } = useProps("MenuDropdown", defaultProps$l, props), wrapperRef = reactExports.useRef(null), ctx = useMenuContext(), handleKeyDown = (event) => {
17709
18002
  (event.key === "ArrowUp" || event.key === "ArrowDown") && (event.preventDefault(), wrapperRef.current?.querySelectorAll("[data-menu-item]:not(:disabled)")[0]?.focus());
17710
18003
  }, handleMouseEnter = createEventHandler(
17711
18004
  onMouseEnter,
@@ -17740,9 +18033,9 @@ const defaultProps$i = {}, MenuDropdown = factory((props, ref) => {
17740
18033
  }
17741
18034
  );
17742
18035
  });
17743
- MenuDropdown.classes = classes$5;
18036
+ MenuDropdown.classes = classes$8;
17744
18037
  MenuDropdown.displayName = "@mantine/core/MenuDropdown";
17745
- const defaultProps$h = {}, MenuItem = polymorphicFactory((props, ref) => {
18038
+ const defaultProps$k = {}, MenuItem = polymorphicFactory((props, ref) => {
17746
18039
  const {
17747
18040
  classNames,
17748
18041
  className,
@@ -17756,7 +18049,7 @@ const defaultProps$h = {}, MenuItem = polymorphicFactory((props, ref) => {
17756
18049
  children: children2,
17757
18050
  disabled,
17758
18051
  ...others
17759
- } = useProps("MenuItem", defaultProps$h, props), ctx = useMenuContext(), theme2 = useMantineTheme(), { dir } = useDirection(), itemRef = reactExports.useRef(), itemIndex = ctx.getItemIndex(itemRef.current), _others = others, handleMouseLeave = createEventHandler(_others.onMouseLeave, () => ctx.setHovered(-1)), handleMouseEnter = createEventHandler(
18052
+ } = useProps("MenuItem", defaultProps$k, props), ctx = useMenuContext(), theme2 = useMantineTheme(), { dir } = useDirection(), itemRef = reactExports.useRef(), itemIndex = ctx.getItemIndex(itemRef.current), _others = others, handleMouseLeave = createEventHandler(_others.onMouseLeave, () => ctx.setHovered(-1)), handleMouseEnter = createEventHandler(
17760
18053
  _others.onMouseEnter,
17761
18054
  () => ctx.setHovered(ctx.getItemIndex(itemRef.current))
17762
18055
  ), handleClick = createEventHandler(_others.onClick, () => {
@@ -17803,12 +18096,12 @@ const defaultProps$h = {}, MenuItem = polymorphicFactory((props, ref) => {
17803
18096
  }
17804
18097
  );
17805
18098
  });
17806
- MenuItem.classes = classes$5;
18099
+ MenuItem.classes = classes$8;
17807
18100
  MenuItem.displayName = "@mantine/core/MenuItem";
17808
- const defaultProps$g = {}, MenuLabel = factory((props, ref) => {
18101
+ const defaultProps$j = {}, MenuLabel = factory((props, ref) => {
17809
18102
  const { classNames, className, style: style2, styles, vars, ...others } = useProps(
17810
18103
  "MenuLabel",
17811
- defaultProps$g,
18104
+ defaultProps$j,
17812
18105
  props
17813
18106
  ), ctx = useMenuContext();
17814
18107
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -17820,12 +18113,12 @@ const defaultProps$g = {}, MenuLabel = factory((props, ref) => {
17820
18113
  }
17821
18114
  );
17822
18115
  });
17823
- MenuLabel.classes = classes$5;
18116
+ MenuLabel.classes = classes$8;
17824
18117
  MenuLabel.displayName = "@mantine/core/MenuLabel";
17825
- const defaultProps$f = {
18118
+ const defaultProps$i = {
17826
18119
  refProp: "ref"
17827
18120
  }, MenuTarget = reactExports.forwardRef((props, ref) => {
17828
- const { children: children2, refProp, ...others } = useProps("MenuTarget", defaultProps$f, props);
18121
+ const { children: children2, refProp, ...others } = useProps("MenuTarget", defaultProps$i, props);
17829
18122
  if (!isElement$1(children2))
17830
18123
  throw new Error(
17831
18124
  "Menu.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported"
@@ -17846,7 +18139,7 @@ const defaultProps$f = {
17846
18139
  }) });
17847
18140
  });
17848
18141
  MenuTarget.displayName = "@mantine/core/MenuTarget";
17849
- const defaultProps$e = {
18142
+ const defaultProps$h = {
17850
18143
  trapFocus: !0,
17851
18144
  closeOnItemClick: !0,
17852
18145
  clickOutsideEvents: ["mousedown", "touchstart", "keydown"],
@@ -17857,7 +18150,7 @@ const defaultProps$e = {
17857
18150
  menuItemTabIndex: -1
17858
18151
  };
17859
18152
  function Menu(_props) {
17860
- const props = useProps("Menu", defaultProps$e, _props), {
18153
+ const props = useProps("Menu", defaultProps$h, _props), {
17861
18154
  children: children2,
17862
18155
  onOpen,
17863
18156
  onClose,
@@ -17881,7 +18174,7 @@ function Menu(_props) {
17881
18174
  ...others
17882
18175
  } = props, getStyles2 = useStyles({
17883
18176
  name: "Menu",
17884
- classes: classes$5,
18177
+ classes: classes$8,
17885
18178
  props,
17886
18179
  classNames,
17887
18180
  styles,
@@ -17947,7 +18240,7 @@ function Menu(_props) {
17947
18240
  );
17948
18241
  }
17949
18242
  Menu.extend = (input) => input;
17950
- Menu.classes = classes$5;
18243
+ Menu.classes = classes$8;
17951
18244
  Menu.displayName = "@mantine/core/Menu";
17952
18245
  Menu.Item = MenuItem;
17953
18246
  Menu.Label = MenuLabel;
@@ -17957,9 +18250,9 @@ Menu.Divider = MenuDivider;
17957
18250
  const [ModalProvider, useModalContext] = createSafeContext(
17958
18251
  "Modal component was not found in tree"
17959
18252
  );
17960
- var __default__$4 = { root: "m_9df02822", content: "m_54c44539", inner: "m_1f958f16", header: "m_d0e2b9cd" };
17961
- const classes$4 = __default__$4, defaultProps$d = {}, ModalBody = factory((_props, ref) => {
17962
- const props = useProps("ModalBody", defaultProps$d, _props), { classNames, className, style: style2, styles, vars, ...others } = props, ctx = useModalContext();
18253
+ var __default__$7 = { root: "m_9df02822", content: "m_54c44539", inner: "m_1f958f16", header: "m_d0e2b9cd" };
18254
+ const classes$7 = __default__$7, defaultProps$g = {}, ModalBody = factory((_props, ref) => {
18255
+ const props = useProps("ModalBody", defaultProps$g, _props), { classNames, className, style: style2, styles, vars, ...others } = props, ctx = useModalContext();
17963
18256
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
17964
18257
  ModalBaseBody,
17965
18258
  {
@@ -17969,10 +18262,10 @@ const classes$4 = __default__$4, defaultProps$d = {}, ModalBody = factory((_prop
17969
18262
  }
17970
18263
  );
17971
18264
  });
17972
- ModalBody.classes = classes$4;
18265
+ ModalBody.classes = classes$7;
17973
18266
  ModalBody.displayName = "@mantine/core/ModalBody";
17974
- const defaultProps$c = {}, ModalContent = factory((_props, ref) => {
17975
- const props = useProps("ModalContent", defaultProps$c, _props), { classNames, className, style: style2, styles, vars, children: children2, ...others } = props, ctx = useModalContext(), Scroll = ctx.scrollAreaComponent || NativeScrollArea;
18267
+ const defaultProps$f = {}, ModalContent = factory((_props, ref) => {
18268
+ const props = useProps("ModalContent", defaultProps$f, _props), { classNames, className, style: style2, styles, vars, children: children2, ...others } = props, ctx = useModalContext(), Scroll = ctx.scrollAreaComponent || NativeScrollArea;
17976
18269
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
17977
18270
  ModalBaseContent,
17978
18271
  {
@@ -17994,10 +18287,10 @@ const defaultProps$c = {}, ModalContent = factory((_props, ref) => {
17994
18287
  }
17995
18288
  );
17996
18289
  });
17997
- ModalContent.classes = classes$4;
18290
+ ModalContent.classes = classes$7;
17998
18291
  ModalContent.displayName = "@mantine/core/ModalContent";
17999
- const defaultProps$b = {}, ModalOverlay = factory((_props, ref) => {
18000
- const props = useProps("ModalOverlay", defaultProps$b, _props), { classNames, className, style: style2, styles, vars, ...others } = props, ctx = useModalContext();
18292
+ const defaultProps$e = {}, ModalOverlay = factory((_props, ref) => {
18293
+ const props = useProps("ModalOverlay", defaultProps$e, _props), { classNames, className, style: style2, styles, vars, ...others } = props, ctx = useModalContext();
18001
18294
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
18002
18295
  ModalBaseOverlay,
18003
18296
  {
@@ -18007,9 +18300,9 @@ const defaultProps$b = {}, ModalOverlay = factory((_props, ref) => {
18007
18300
  }
18008
18301
  );
18009
18302
  });
18010
- ModalOverlay.classes = classes$4;
18303
+ ModalOverlay.classes = classes$7;
18011
18304
  ModalOverlay.displayName = "@mantine/core/ModalOverlay";
18012
- const defaultProps$a = {
18305
+ const defaultProps$d = {
18013
18306
  __staticSelector: "Modal",
18014
18307
  closeOnClickOutside: !0,
18015
18308
  withinPortal: !0,
@@ -18021,7 +18314,7 @@ const defaultProps$a = {
18021
18314
  zIndex: getDefaultZIndex("modal"),
18022
18315
  transitionProps: { duration: 200, transition: "pop" },
18023
18316
  yOffset: "5dvh"
18024
- }, varsResolver$5 = (_2, { radius, size: size2, yOffset, xOffset }) => ({
18317
+ }, varsResolver$8 = (_2, { radius, size: size2, yOffset, xOffset }) => ({
18025
18318
  root: {
18026
18319
  "--modal-radius": radius === void 0 ? void 0 : getRadius$1(radius),
18027
18320
  "--modal-size": getSize(size2, "modal-size"),
@@ -18029,7 +18322,7 @@ const defaultProps$a = {
18029
18322
  "--modal-x-offset": rem(xOffset)
18030
18323
  }
18031
18324
  }), ModalRoot = factory((_props, ref) => {
18032
- const props = useProps("ModalRoot", defaultProps$a, _props), {
18325
+ const props = useProps("ModalRoot", defaultProps$d, _props), {
18033
18326
  classNames,
18034
18327
  className,
18035
18328
  style: style2,
@@ -18046,7 +18339,7 @@ const defaultProps$a = {
18046
18339
  ...others
18047
18340
  } = props, getStyles2 = useStyles({
18048
18341
  name: __staticSelector,
18049
- classes: classes$4,
18342
+ classes: classes$7,
18050
18343
  props,
18051
18344
  className,
18052
18345
  style: style2,
@@ -18054,7 +18347,7 @@ const defaultProps$a = {
18054
18347
  styles,
18055
18348
  unstyled,
18056
18349
  vars,
18057
- varsResolver: varsResolver$5
18350
+ varsResolver: varsResolver$8
18058
18351
  });
18059
18352
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ModalProvider, { value: { yOffset, scrollAreaComponent, getStyles: getStyles2, fullScreen }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
18060
18353
  ModalBase,
@@ -18068,7 +18361,7 @@ const defaultProps$a = {
18068
18361
  }
18069
18362
  ) });
18070
18363
  });
18071
- ModalRoot.classes = classes$4;
18364
+ ModalRoot.classes = classes$7;
18072
18365
  ModalRoot.displayName = "@mantine/core/ModalRoot";
18073
18366
  const defaultTransition = {
18074
18367
  duration: 100,
@@ -18124,21 +18417,21 @@ function useFloatingTooltip({
18124
18417
  }
18125
18418
  }, [elements.reference, refs.floating.current, update, handleMouseMove, opened]), { handleMouseMove, x: x2, y: y2, opened, setOpened, boundaryRef, floating: refs.setFloating };
18126
18419
  }
18127
- var __default__$3 = { tooltip: "m_1b3c8819", arrow: "m_f898399f" };
18128
- const classes$3 = __default__$3, defaultProps$9 = {
18420
+ var __default__$6 = { tooltip: "m_1b3c8819", arrow: "m_f898399f" };
18421
+ const classes$6 = __default__$6, defaultProps$c = {
18129
18422
  refProp: "ref",
18130
18423
  withinPortal: !0,
18131
18424
  offset: 10,
18132
18425
  position: "right",
18133
18426
  zIndex: getDefaultZIndex("popover")
18134
- }, varsResolver$4 = (theme2, { radius, color: color2 }) => ({
18427
+ }, varsResolver$7 = (theme2, { radius, color: color2 }) => ({
18135
18428
  tooltip: {
18136
18429
  "--tooltip-radius": radius === void 0 ? void 0 : getRadius$1(radius),
18137
18430
  "--tooltip-bg": color2 ? getThemeColor(color2, theme2) : void 0,
18138
18431
  "--tooltip-color": color2 ? "var(--mantine-color-white)" : void 0
18139
18432
  }
18140
18433
  }), TooltipFloating = factory((_props, ref) => {
18141
- const props = useProps("TooltipFloating", defaultProps$9, _props), {
18434
+ const props = useProps("TooltipFloating", defaultProps$c, _props), {
18142
18435
  children: children2,
18143
18436
  refProp,
18144
18437
  withinPortal,
@@ -18162,7 +18455,7 @@ const classes$3 = __default__$3, defaultProps$9 = {
18162
18455
  } = props, theme2 = useMantineTheme(), getStyles2 = useStyles({
18163
18456
  name: "TooltipFloating",
18164
18457
  props,
18165
- classes: classes$3,
18458
+ classes: classes$6,
18166
18459
  className,
18167
18460
  style: style2,
18168
18461
  classNames,
@@ -18170,7 +18463,7 @@ const classes$3 = __default__$3, defaultProps$9 = {
18170
18463
  unstyled,
18171
18464
  rootSelector: "tooltip",
18172
18465
  vars,
18173
- varsResolver: varsResolver$4
18466
+ varsResolver: varsResolver$7
18174
18467
  }), { handleMouseMove, x: x2, y: y2, opened, boundaryRef, floating, setOpened } = useFloatingTooltip({
18175
18468
  offset: offset2,
18176
18469
  position
@@ -18212,14 +18505,14 @@ const classes$3 = __default__$3, defaultProps$9 = {
18212
18505
  })
18213
18506
  ] });
18214
18507
  });
18215
- TooltipFloating.classes = classes$3;
18508
+ TooltipFloating.classes = classes$6;
18216
18509
  TooltipFloating.displayName = "@mantine/core/TooltipFloating";
18217
- const TooltipGroupContext = reactExports.createContext(!1), TooltipGroupProvider = TooltipGroupContext.Provider, useTooltipGroupContext = () => reactExports.useContext(TooltipGroupContext), defaultProps$8 = {
18510
+ const TooltipGroupContext = reactExports.createContext(!1), TooltipGroupProvider = TooltipGroupContext.Provider, useTooltipGroupContext = () => reactExports.useContext(TooltipGroupContext), defaultProps$b = {
18218
18511
  openDelay: 0,
18219
18512
  closeDelay: 0
18220
18513
  };
18221
18514
  function TooltipGroup(props) {
18222
- const { openDelay, closeDelay, children: children2 } = useProps("TooltipGroup", defaultProps$8, props);
18515
+ const { openDelay, closeDelay, children: children2 } = useProps("TooltipGroup", defaultProps$b, props);
18223
18516
  return /* @__PURE__ */ jsxRuntimeExports.jsx(TooltipGroupProvider, { value: !0, children: /* @__PURE__ */ jsxRuntimeExports.jsx(FloatingDelayGroup, { delay: { open: openDelay, close: closeDelay }, children: children2 }) });
18224
18517
  }
18225
18518
  TooltipGroup.displayName = "@mantine/core/TooltipGroup";
@@ -18284,7 +18577,7 @@ function useTooltip(settings) {
18284
18577
  placement
18285
18578
  };
18286
18579
  }
18287
- const defaultProps$7 = {
18580
+ const defaultProps$a = {
18288
18581
  position: "top",
18289
18582
  refProp: "ref",
18290
18583
  withinPortal: !0,
@@ -18298,14 +18591,14 @@ const defaultProps$7 = {
18298
18591
  events: { hover: !0, focus: !1, touch: !1 },
18299
18592
  zIndex: getDefaultZIndex("popover"),
18300
18593
  positionDependencies: []
18301
- }, varsResolver$3 = (theme2, { radius, color: color2 }) => ({
18594
+ }, varsResolver$6 = (theme2, { radius, color: color2 }) => ({
18302
18595
  tooltip: {
18303
18596
  "--tooltip-radius": radius === void 0 ? void 0 : getRadius$1(radius),
18304
18597
  "--tooltip-bg": color2 ? getThemeColor(color2, theme2) : void 0,
18305
18598
  "--tooltip-color": color2 ? "var(--mantine-color-white)" : void 0
18306
18599
  }
18307
18600
  }), Tooltip = factory((_props, ref) => {
18308
- const props = useProps("Tooltip", defaultProps$7, _props), {
18601
+ const props = useProps("Tooltip", defaultProps$a, _props), {
18309
18602
  children: children2,
18310
18603
  position,
18311
18604
  refProp,
@@ -18345,7 +18638,7 @@ const defaultProps$7 = {
18345
18638
  mod,
18346
18639
  floatingStrategy,
18347
18640
  ...others
18348
- } = useProps("Tooltip", defaultProps$7, props), { dir } = useDirection(), arrowRef = reactExports.useRef(null), tooltip = useTooltip({
18641
+ } = useProps("Tooltip", defaultProps$a, props), { dir } = useDirection(), arrowRef = reactExports.useRef(null), tooltip = useTooltip({
18349
18642
  position: getFloatingPosition(dir, position),
18350
18643
  closeDelay,
18351
18644
  openDelay,
@@ -18361,7 +18654,7 @@ const defaultProps$7 = {
18361
18654
  }), getStyles2 = useStyles({
18362
18655
  name: "Tooltip",
18363
18656
  props,
18364
- classes: classes$3,
18657
+ classes: classes$6,
18365
18658
  className,
18366
18659
  style: style2,
18367
18660
  classNames,
@@ -18369,7 +18662,7 @@ const defaultProps$7 = {
18369
18662
  unstyled,
18370
18663
  rootSelector: "tooltip",
18371
18664
  vars,
18372
- varsResolver: varsResolver$3
18665
+ varsResolver: varsResolver$6
18373
18666
  });
18374
18667
  if (!isElement$1(children2))
18375
18668
  throw new Error(
@@ -18439,17 +18732,153 @@ const defaultProps$7 = {
18439
18732
  )
18440
18733
  ] });
18441
18734
  });
18442
- Tooltip.classes = classes$3;
18735
+ Tooltip.classes = classes$6;
18443
18736
  Tooltip.displayName = "@mantine/core/Tooltip";
18444
18737
  Tooltip.Floating = TooltipFloating;
18445
18738
  Tooltip.Group = TooltipGroup;
18446
- const defaultProps$6 = {
18739
+ var __default__$5 = { root: "m_cf365364", indicator: "m_9e182ccd", label: "m_1738fcb2", input: "m_1714d588", control: "m_69686b9b", innerLabel: "m_78882f40" };
18740
+ const classes$5 = __default__$5, defaultProps$9 = {
18741
+ withItemsBorders: !0
18742
+ }, varsResolver$5 = (theme2, { radius, color: color2, transitionDuration, size: size2, transitionTimingFunction }) => ({
18743
+ root: {
18744
+ "--sc-radius": radius === void 0 ? void 0 : getRadius$1(radius),
18745
+ "--sc-color": color2 ? getThemeColor(color2, theme2) : void 0,
18746
+ "--sc-shadow": color2 ? void 0 : "var(--mantine-shadow-xs)",
18747
+ "--sc-transition-duration": transitionDuration === void 0 ? void 0 : `${transitionDuration}ms`,
18748
+ "--sc-transition-timing-function": transitionTimingFunction,
18749
+ "--sc-padding": getSize(size2, "sc-padding"),
18750
+ "--sc-font-size": getFontSize(size2)
18751
+ }
18752
+ }), SegmentedControl = factory((_props, ref) => {
18753
+ const props = useProps("SegmentedControl", defaultProps$9, _props), {
18754
+ classNames,
18755
+ className,
18756
+ style: style2,
18757
+ styles,
18758
+ unstyled,
18759
+ vars,
18760
+ data,
18761
+ value,
18762
+ defaultValue,
18763
+ onChange,
18764
+ size: size2,
18765
+ name,
18766
+ disabled,
18767
+ readOnly,
18768
+ fullWidth,
18769
+ orientation,
18770
+ radius,
18771
+ color: color2,
18772
+ transitionDuration,
18773
+ transitionTimingFunction,
18774
+ variant,
18775
+ autoContrast,
18776
+ withItemsBorders,
18777
+ mod,
18778
+ ...others
18779
+ } = props, getStyles2 = useStyles({
18780
+ name: "SegmentedControl",
18781
+ props,
18782
+ classes: classes$5,
18783
+ className,
18784
+ style: style2,
18785
+ classNames,
18786
+ styles,
18787
+ unstyled,
18788
+ vars,
18789
+ varsResolver: varsResolver$5
18790
+ }), theme2 = useMantineTheme(), _data = data.map(
18791
+ (item) => typeof item == "string" ? { label: item, value: item } : item
18792
+ ), initialized = useMounted(), [parent, setParent] = reactExports.useState(null), [refs, setRefs] = reactExports.useState({}), setElementRef = (element, val) => {
18793
+ refs[val] = element, setRefs(refs);
18794
+ }, [_value, handleValueChange] = useUncontrolled({
18795
+ value,
18796
+ defaultValue,
18797
+ finalValue: Array.isArray(data) ? _data.find((item) => !item.disabled)?.value ?? data[0]?.value ?? null : null,
18798
+ onChange
18799
+ }), uuid = useId$1(name), controls = _data.map((item) => /* @__PURE__ */ reactExports.createElement(
18800
+ Box$1,
18801
+ {
18802
+ ...getStyles2("control"),
18803
+ mod: { active: _value === item.value, orientation },
18804
+ key: item.value
18805
+ },
18806
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
18807
+ "input",
18808
+ {
18809
+ ...getStyles2("input"),
18810
+ disabled: disabled || item.disabled,
18811
+ type: "radio",
18812
+ name: uuid,
18813
+ value: item.value,
18814
+ id: `${uuid}-${item.value}`,
18815
+ checked: _value === item.value,
18816
+ onChange: () => !readOnly && handleValueChange(item.value),
18817
+ "data-focus-ring": theme2.focusRing
18818
+ }
18819
+ ),
18820
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
18821
+ Box$1,
18822
+ {
18823
+ component: "label",
18824
+ ...getStyles2("label"),
18825
+ mod: {
18826
+ active: _value === item.value && !(disabled || item.disabled),
18827
+ disabled: disabled || item.disabled,
18828
+ "read-only": readOnly
18829
+ },
18830
+ htmlFor: `${uuid}-${item.value}`,
18831
+ ref: (node) => setElementRef(node, item.value),
18832
+ __vars: {
18833
+ "--sc-label-color": color2 !== void 0 ? getContrastColor({ color: color2, theme: theme2, autoContrast }) : void 0
18834
+ },
18835
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { ...getStyles2("innerLabel"), children: item.label })
18836
+ }
18837
+ )
18838
+ )), mergedRef = useMergedRef(ref, (node) => setParent(node));
18839
+ return data.length === 0 ? null : /* @__PURE__ */ jsxRuntimeExports.jsxs(
18840
+ Box$1,
18841
+ {
18842
+ ...getStyles2("root"),
18843
+ variant,
18844
+ size: size2,
18845
+ ref: mergedRef,
18846
+ mod: [
18847
+ {
18848
+ "full-width": fullWidth,
18849
+ orientation,
18850
+ initialized,
18851
+ "with-items-borders": withItemsBorders
18852
+ },
18853
+ mod
18854
+ ],
18855
+ ...others,
18856
+ role: "radiogroup",
18857
+ children: [
18858
+ typeof _value == "string" && /* @__PURE__ */ jsxRuntimeExports.jsx(
18859
+ FloatingIndicator,
18860
+ {
18861
+ target: refs[_value],
18862
+ parent,
18863
+ component: "span",
18864
+ transitionDuration: "var(--sc-transition-duration)",
18865
+ ...getStyles2("indicator")
18866
+ }
18867
+ ),
18868
+ controls
18869
+ ]
18870
+ }
18871
+ );
18872
+ });
18873
+ SegmentedControl.classes = classes$5;
18874
+ SegmentedControl.displayName = "@mantine/core/SegmentedControl";
18875
+ const defaultProps$8 = {
18447
18876
  searchable: !1,
18448
18877
  withCheckIcon: !0,
18449
18878
  allowDeselect: !0,
18450
18879
  checkIconPosition: "left"
18451
18880
  }, Select = factory((_props, ref) => {
18452
- const props = useProps("Select", defaultProps$6, _props), {
18881
+ const props = useProps("Select", defaultProps$8, _props), {
18453
18882
  classNames,
18454
18883
  styles,
18455
18884
  unstyled,
@@ -18626,6 +19055,430 @@ const defaultProps$6 = {
18626
19055
  });
18627
19056
  Select.classes = { ...InputBase.classes, ...Combobox.classes };
18628
19057
  Select.displayName = "@mantine/core/Select";
19058
+ const [SliderProvider, useSliderContext] = createSafeContext(
19059
+ "SliderProvider was not found in tree"
19060
+ ), SliderRoot = reactExports.forwardRef(
19061
+ ({ size: size2, disabled, variant, color: color2, thumbSize, radius, ...others }, ref) => {
19062
+ const { getStyles: getStyles2 } = useSliderContext();
19063
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
19064
+ Box$1,
19065
+ {
19066
+ tabIndex: -1,
19067
+ variant,
19068
+ size: size2,
19069
+ ref,
19070
+ ...getStyles2("root"),
19071
+ ...others
19072
+ }
19073
+ );
19074
+ }
19075
+ );
19076
+ SliderRoot.displayName = "@mantine/core/SliderRoot";
19077
+ const Thumb = reactExports.forwardRef(
19078
+ ({
19079
+ max: max2,
19080
+ min: min2,
19081
+ value,
19082
+ position,
19083
+ label,
19084
+ dragging,
19085
+ onMouseDown,
19086
+ onKeyDownCapture,
19087
+ labelTransitionProps,
19088
+ labelAlwaysOn,
19089
+ thumbLabel,
19090
+ onFocus,
19091
+ onBlur,
19092
+ showLabelOnHover,
19093
+ isHovered,
19094
+ children: children2 = null,
19095
+ disabled
19096
+ }, ref) => {
19097
+ const { getStyles: getStyles2 } = useSliderContext(), [focused, setFocused] = reactExports.useState(!1), isVisible = labelAlwaysOn || dragging || focused || showLabelOnHover && isHovered;
19098
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
19099
+ Box$1,
19100
+ {
19101
+ tabIndex: 0,
19102
+ role: "slider",
19103
+ "aria-label": thumbLabel,
19104
+ "aria-valuemax": max2,
19105
+ "aria-valuemin": min2,
19106
+ "aria-valuenow": value,
19107
+ ref,
19108
+ __vars: { "--slider-thumb-offset": `${position}%` },
19109
+ ...getStyles2("thumb", { focusable: !0 }),
19110
+ mod: { dragging, disabled },
19111
+ onFocus: () => {
19112
+ setFocused(!0), typeof onFocus == "function" && onFocus();
19113
+ },
19114
+ onBlur: () => {
19115
+ setFocused(!1), typeof onBlur == "function" && onBlur();
19116
+ },
19117
+ onTouchStart: onMouseDown,
19118
+ onMouseDown,
19119
+ onKeyDownCapture,
19120
+ onClick: (event) => event.stopPropagation(),
19121
+ children: [
19122
+ children2,
19123
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
19124
+ Transition$1,
19125
+ {
19126
+ mounted: label != null && !!isVisible,
19127
+ transition: "fade",
19128
+ duration: 0,
19129
+ ...labelTransitionProps,
19130
+ children: (transitionStyles) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ...getStyles2("label", { style: transitionStyles }), children: label })
19131
+ }
19132
+ )
19133
+ ]
19134
+ }
19135
+ );
19136
+ }
19137
+ );
19138
+ Thumb.displayName = "@mantine/core/SliderThumb";
19139
+ function getPosition({ value, min: min2, max: max2 }) {
19140
+ const position = (value - min2) / (max2 - min2) * 100;
19141
+ return Math.min(Math.max(position, 0), 100);
19142
+ }
19143
+ function isMarkFilled({ mark, offset: offset2, value, inverted = !1 }) {
19144
+ return inverted ? typeof offset2 == "number" && mark.value <= offset2 || mark.value >= value : typeof offset2 == "number" ? mark.value >= offset2 && mark.value <= value : mark.value <= value;
19145
+ }
19146
+ function Marks({ marks, min: min2, max: max2, disabled, value, offset: offset2, inverted }) {
19147
+ const { getStyles: getStyles2 } = useSliderContext();
19148
+ if (!marks)
19149
+ return null;
19150
+ const items = marks.map((mark, index2) => /* @__PURE__ */ reactExports.createElement(
19151
+ Box$1,
19152
+ {
19153
+ ...getStyles2("markWrapper"),
19154
+ __vars: { "--mark-offset": `${getPosition({ value: mark.value, min: min2, max: max2 })}%` },
19155
+ key: index2
19156
+ },
19157
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
19158
+ Box$1,
19159
+ {
19160
+ ...getStyles2("mark"),
19161
+ mod: { filled: isMarkFilled({ mark, value, offset: offset2, inverted }), disabled }
19162
+ }
19163
+ ),
19164
+ mark.label && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ...getStyles2("markLabel"), children: mark.label })
19165
+ ));
19166
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: items });
19167
+ }
19168
+ Marks.displayName = "@mantine/core/SliderMarks";
19169
+ function Track({
19170
+ filled,
19171
+ children: children2,
19172
+ offset: offset2,
19173
+ disabled,
19174
+ marksOffset,
19175
+ inverted,
19176
+ containerProps,
19177
+ ...others
19178
+ }) {
19179
+ const { getStyles: getStyles2 } = useSliderContext();
19180
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { ...getStyles2("trackContainer"), mod: { disabled }, ...containerProps, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Box$1, { ...getStyles2("track"), mod: { inverted, disabled }, children: [
19181
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
19182
+ Box$1,
19183
+ {
19184
+ mod: { inverted, disabled },
19185
+ __vars: {
19186
+ "--slider-bar-width": `calc(${filled}% + var(--slider-size))`,
19187
+ "--slider-bar-offset": `calc(${offset2}% - var(--slider-size))`
19188
+ },
19189
+ ...getStyles2("bar")
19190
+ }
19191
+ ),
19192
+ children2,
19193
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Marks, { ...others, offset: marksOffset, disabled, inverted })
19194
+ ] }) }) });
19195
+ }
19196
+ Track.displayName = "@mantine/core/SliderTrack";
19197
+ function getChangeValue({
19198
+ value,
19199
+ containerWidth,
19200
+ min: min2,
19201
+ max: max2,
19202
+ step,
19203
+ precision
19204
+ }) {
19205
+ const dx = (containerWidth ? Math.min(Math.max(value, 0), containerWidth) / containerWidth : value) * (max2 - min2), nextValue = (dx !== 0 ? Math.round(dx / step) * step : 0) + min2, nextValueWithinStep = Math.max(nextValue, min2);
19206
+ return precision !== void 0 ? Number(nextValueWithinStep.toFixed(precision)) : nextValueWithinStep;
19207
+ }
19208
+ function getFloatingValue(value, precision) {
19209
+ return parseFloat(value.toFixed(precision));
19210
+ }
19211
+ function getPrecision(step) {
19212
+ if (!step)
19213
+ return 0;
19214
+ const split = step.toString().split(".");
19215
+ return split.length > 1 ? split[1].length : 0;
19216
+ }
19217
+ var __default__$4 = { root: "m_dd36362e", label: "m_c9357328", thumb: "m_c9a9a60a", trackContainer: "m_a8645c2", track: "m_c9ade57f", bar: "m_38aeed47", markWrapper: "m_b7b0423a", mark: "m_dd33bc19", markLabel: "m_68c77a5b" };
19218
+ const classes$4 = __default__$4, defaultProps$7 = {
19219
+ radius: "xl",
19220
+ min: 0,
19221
+ max: 100,
19222
+ step: 1,
19223
+ marks: [],
19224
+ label: (f2) => f2,
19225
+ labelTransitionProps: { transition: "fade", duration: 0 },
19226
+ labelAlwaysOn: !1,
19227
+ thumbLabel: "",
19228
+ showLabelOnHover: !0,
19229
+ disabled: !1,
19230
+ scale: (v2) => v2
19231
+ }, varsResolver$4 = (theme2, { size: size2, color: color2, thumbSize, radius }) => ({
19232
+ root: {
19233
+ "--slider-size": getSize(size2, "slider-size"),
19234
+ "--slider-color": color2 ? getThemeColor(color2, theme2) : void 0,
19235
+ "--slider-radius": radius === void 0 ? void 0 : getRadius$1(radius),
19236
+ "--slider-thumb-size": thumbSize !== void 0 ? rem(thumbSize) : "calc(var(--slider-size) * 2)"
19237
+ }
19238
+ }), Slider = factory((_props, ref) => {
19239
+ const props = useProps("Slider", defaultProps$7, _props), {
19240
+ classNames,
19241
+ styles,
19242
+ value,
19243
+ onChange,
19244
+ onChangeEnd,
19245
+ size: size2,
19246
+ min: min2,
19247
+ max: max2,
19248
+ step,
19249
+ precision: _precision,
19250
+ defaultValue,
19251
+ name,
19252
+ marks,
19253
+ label,
19254
+ labelTransitionProps,
19255
+ labelAlwaysOn,
19256
+ thumbLabel,
19257
+ showLabelOnHover,
19258
+ thumbChildren,
19259
+ disabled,
19260
+ unstyled,
19261
+ scale: scale2,
19262
+ inverted,
19263
+ className,
19264
+ style: style2,
19265
+ vars,
19266
+ hiddenInputProps,
19267
+ ...others
19268
+ } = props, getStyles2 = useStyles({
19269
+ name: "Slider",
19270
+ props,
19271
+ classes: classes$4,
19272
+ classNames,
19273
+ className,
19274
+ styles,
19275
+ style: style2,
19276
+ vars,
19277
+ varsResolver: varsResolver$4,
19278
+ unstyled
19279
+ }), { dir } = useDirection(), [hovered, setHovered] = reactExports.useState(!1), [_value, setValue] = useUncontrolled({
19280
+ value: typeof value == "number" ? clamp$5(value, min2, max2) : value,
19281
+ defaultValue: typeof defaultValue == "number" ? clamp$5(defaultValue, min2, max2) : defaultValue,
19282
+ finalValue: clamp$5(0, min2, max2),
19283
+ onChange
19284
+ }), valueRef = reactExports.useRef(_value), root2 = reactExports.useRef(), thumb = reactExports.useRef(), position = getPosition({ value: _value, min: min2, max: max2 }), scaledValue = scale2(_value), _label = typeof label == "function" ? label(scaledValue) : label, precision = _precision ?? getPrecision(step), handleChange = reactExports.useCallback(
19285
+ ({ x: x2 }) => {
19286
+ if (!disabled) {
19287
+ const nextValue = getChangeValue({
19288
+ value: x2,
19289
+ min: min2,
19290
+ max: max2,
19291
+ step,
19292
+ precision
19293
+ });
19294
+ setValue(nextValue), valueRef.current = nextValue;
19295
+ }
19296
+ },
19297
+ [disabled, min2, max2, step, precision, setValue]
19298
+ ), { ref: container2, active } = useMove(
19299
+ handleChange,
19300
+ { onScrubEnd: () => onChangeEnd?.(valueRef.current) },
19301
+ dir
19302
+ ), handleTrackKeydownCapture = (event) => {
19303
+ if (!disabled)
19304
+ switch (event.key) {
19305
+ case "ArrowUp": {
19306
+ event.preventDefault(), thumb.current?.focus();
19307
+ const nextValue = getFloatingValue(
19308
+ Math.min(Math.max(_value + step, min2), max2),
19309
+ precision
19310
+ );
19311
+ setValue(nextValue), onChangeEnd?.(nextValue);
19312
+ break;
19313
+ }
19314
+ case "ArrowRight": {
19315
+ event.preventDefault(), thumb.current?.focus();
19316
+ const nextValue = getFloatingValue(
19317
+ Math.min(Math.max(dir === "rtl" ? _value - step : _value + step, min2), max2),
19318
+ precision
19319
+ );
19320
+ setValue(nextValue), onChangeEnd?.(nextValue);
19321
+ break;
19322
+ }
19323
+ case "ArrowDown": {
19324
+ event.preventDefault(), thumb.current?.focus();
19325
+ const nextValue = getFloatingValue(
19326
+ Math.min(Math.max(_value - step, min2), max2),
19327
+ precision
19328
+ );
19329
+ setValue(nextValue), onChangeEnd?.(nextValue);
19330
+ break;
19331
+ }
19332
+ case "ArrowLeft": {
19333
+ event.preventDefault(), thumb.current?.focus();
19334
+ const nextValue = getFloatingValue(
19335
+ Math.min(Math.max(dir === "rtl" ? _value + step : _value - step, min2), max2),
19336
+ precision
19337
+ );
19338
+ setValue(nextValue), onChangeEnd?.(nextValue);
19339
+ break;
19340
+ }
19341
+ case "Home": {
19342
+ event.preventDefault(), thumb.current?.focus(), setValue(min2), onChangeEnd?.(min2);
19343
+ break;
19344
+ }
19345
+ case "End": {
19346
+ event.preventDefault(), thumb.current?.focus(), setValue(max2), onChangeEnd?.(max2);
19347
+ break;
19348
+ }
19349
+ }
19350
+ };
19351
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(SliderProvider, { value: { getStyles: getStyles2 }, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
19352
+ SliderRoot,
19353
+ {
19354
+ ...others,
19355
+ ref: useMergedRef(ref, root2),
19356
+ onKeyDownCapture: handleTrackKeydownCapture,
19357
+ onMouseDownCapture: () => root2.current?.focus(),
19358
+ size: size2,
19359
+ disabled,
19360
+ children: [
19361
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
19362
+ Track,
19363
+ {
19364
+ inverted,
19365
+ offset: 0,
19366
+ filled: position,
19367
+ marks,
19368
+ min: min2,
19369
+ max: max2,
19370
+ value: scaledValue,
19371
+ disabled,
19372
+ containerProps: {
19373
+ ref: container2,
19374
+ onMouseEnter: showLabelOnHover ? () => setHovered(!0) : void 0,
19375
+ onMouseLeave: showLabelOnHover ? () => setHovered(!1) : void 0
19376
+ },
19377
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
19378
+ Thumb,
19379
+ {
19380
+ max: max2,
19381
+ min: min2,
19382
+ value: scaledValue,
19383
+ position,
19384
+ dragging: active,
19385
+ label: _label,
19386
+ ref: thumb,
19387
+ labelTransitionProps,
19388
+ labelAlwaysOn,
19389
+ thumbLabel,
19390
+ showLabelOnHover,
19391
+ isHovered: hovered,
19392
+ disabled,
19393
+ children: thumbChildren
19394
+ }
19395
+ )
19396
+ }
19397
+ ),
19398
+ /* @__PURE__ */ jsxRuntimeExports.jsx("input", { type: "hidden", name, value: scaledValue, ...hiddenInputProps })
19399
+ ]
19400
+ }
19401
+ ) });
19402
+ });
19403
+ Slider.classes = classes$4;
19404
+ Slider.displayName = "@mantine/core/Slider";
19405
+ var __default__$3 = { root: "m_559cce2d", content: "m_b912df4e", control: "m_b9131032" };
19406
+ const classes$3 = __default__$3, defaultProps$6 = {
19407
+ maxHeight: 100,
19408
+ initialState: !1
19409
+ }, varsResolver$3 = (_2, { transitionDuration }) => ({
19410
+ root: {
19411
+ "--spoiler-transition-duration": transitionDuration !== void 0 ? `${transitionDuration}ms` : void 0
19412
+ }
19413
+ }), Spoiler = factory((_props, ref) => {
19414
+ const props = useProps("Spoiler", defaultProps$6, _props), {
19415
+ classNames,
19416
+ className,
19417
+ style: style2,
19418
+ styles,
19419
+ unstyled,
19420
+ vars,
19421
+ initialState: initialState2,
19422
+ maxHeight,
19423
+ hideLabel,
19424
+ showLabel,
19425
+ children: children2,
19426
+ controlRef,
19427
+ transitionDuration,
19428
+ id: id2,
19429
+ ...others
19430
+ } = props, getStyles2 = useStyles({
19431
+ name: "Spoiler",
19432
+ classes: classes$3,
19433
+ props,
19434
+ className,
19435
+ style: style2,
19436
+ classNames,
19437
+ styles,
19438
+ unstyled,
19439
+ vars,
19440
+ varsResolver: varsResolver$3
19441
+ }), _id = useId$1(id2), regionId = `${_id}-region`, [show, setShowState] = reactExports.useState(initialState2), { ref: contentRef, height } = useElementSize(), spoilerMoreContent = show ? hideLabel : showLabel, spoiler = spoilerMoreContent !== null && maxHeight < height;
19442
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
19443
+ Box$1,
19444
+ {
19445
+ ...getStyles2("root"),
19446
+ id: _id,
19447
+ ref,
19448
+ "data-has-spoiler": spoiler || void 0,
19449
+ ...others,
19450
+ children: [
19451
+ spoiler && /* @__PURE__ */ jsxRuntimeExports.jsx(
19452
+ Anchor,
19453
+ {
19454
+ component: "button",
19455
+ type: "button",
19456
+ ref: controlRef,
19457
+ onClick: () => setShowState((opened) => !opened),
19458
+ "aria-expanded": show,
19459
+ "aria-controls": regionId,
19460
+ ...getStyles2("control"),
19461
+ children: spoilerMoreContent
19462
+ }
19463
+ ),
19464
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
19465
+ "div",
19466
+ {
19467
+ ...getStyles2("content", {
19468
+ style: { maxHeight: show ? height ? rem(height) : void 0 : rem(maxHeight) }
19469
+ }),
19470
+ "data-reduce-motion": !0,
19471
+ role: "region",
19472
+ id: regionId,
19473
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { ref: contentRef, children: children2 })
19474
+ }
19475
+ )
19476
+ ]
19477
+ }
19478
+ );
19479
+ });
19480
+ Spoiler.classes = classes$3;
19481
+ Spoiler.displayName = "@mantine/core/Spoiler";
18629
19482
  var __default__$2 = { root: "m_6d731127" };
18630
19483
  const classes$2 = __default__$2, defaultProps$5 = {
18631
19484
  gap: "md",
@@ -18970,7 +19823,7 @@ const classes = __default__, defaultProps = {
18970
19823
  });
18971
19824
  Title.classes = classes;
18972
19825
  Title.displayName = "@mantine/core/Title";
18973
- var content = "_1u4wf800", image = "_1u4wf801", inner = "_1u4wf802", root$1 = "_1u4wf803", description$1 = "_1u4wf804", title$2 = "_1u4wf805";
19826
+ var content = "_1u4wf800", image = "_1u4wf801", inner = "_1u4wf802", root$1 = "_1u4wf803", description$2 = "_1u4wf804", title$3 = "_1u4wf805";
18974
19827
  function NotFound() {
18975
19828
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$1, { className: root$1, children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: inner, children: [
18976
19829
  /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 362 145", className: image, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -18981,8 +19834,8 @@ function NotFound() {
18981
19834
  }
18982
19835
  ) }),
18983
19836
  /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: content, children: [
18984
- /* @__PURE__ */ jsxRuntimeExports.jsx(Title, { className: title$2, children: "Nothing to see here" }),
18985
- /* @__PURE__ */ jsxRuntimeExports.jsx(Text$1, { c: "dimmed", size: "lg", ta: "center", className: description$1, children: "Page you are trying to open does not exist. You may have mistyped the address, or the page has been moved to another URL. If you think this is an error contact support." }),
19837
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Title, { className: title$3, children: "Nothing to see here" }),
19838
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Text$1, { c: "dimmed", size: "lg", ta: "center", className: description$2, children: "Page you are trying to open does not exist. You may have mistyped the address, or the page has been moved to another URL. If you think this is an error contact support." }),
18986
19839
  /* @__PURE__ */ jsxRuntimeExports.jsx(Group, { justify: "center", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { component: Link$1, to: "/", search: !0, startTransition: !0, size: "md", children: "Take me back to home page" }) })
18987
19840
  ] })
18988
19841
  ] }) });
@@ -19911,7 +20764,7 @@ function selection_select(select2) {
19911
20764
  (node = group[i2]) && (subnode = select2.call(node, node.__data__, i2, group)) && ("__data__" in node && (subnode.__data__ = node.__data__), subgroup[i2] = subnode);
19912
20765
  return new Selection$1(subgroups, this._parents);
19913
20766
  }
19914
- function array(x2) {
20767
+ function array$1(x2) {
19915
20768
  return x2 == null ? [] : Array.isArray(x2) ? x2 : Array.from(x2);
19916
20769
  }
19917
20770
  function empty() {
@@ -19924,7 +20777,7 @@ function selectorAll(selector2) {
19924
20777
  }
19925
20778
  function arrayAll(select2) {
19926
20779
  return function() {
19927
- return array(select2.apply(this, arguments));
20780
+ return array$1(select2.apply(this, arguments));
19928
20781
  };
19929
20782
  }
19930
20783
  function selection_selectAll(select2) {
@@ -19999,7 +20852,7 @@ EnterNode.prototype = {
19999
20852
  return this._parent.querySelectorAll(selector2);
20000
20853
  }
20001
20854
  };
20002
- function constant$3(x2) {
20855
+ function constant$4(x2) {
20003
20856
  return function() {
20004
20857
  return x2;
20005
20858
  };
@@ -20026,7 +20879,7 @@ function selection_data(value, key) {
20026
20879
  if (!arguments.length)
20027
20880
  return Array.from(this, datum);
20028
20881
  var bind = key ? bindKey : bindIndex, parents = this._parents, groups = this._groups;
20029
- typeof value != "function" && (value = constant$3(value));
20882
+ typeof value != "function" && (value = constant$4(value));
20030
20883
  for (var m2 = groups.length, update = new Array(m2), enter = new Array(m2), exit = new Array(m2), j2 = 0; j2 < m2; ++j2) {
20031
20884
  var parent = parents[j2], group = groups[j2], groupLength = group.length, data = arraylike(value.call(parent, parent && parent.__data__, j2, parents)), dataLength = data.length, enterGroup = enter[j2] = new Array(dataLength), updateGroup = update[j2] = new Array(dataLength), exitGroup = exit[j2] = new Array(groupLength);
20032
20885
  bind(parent, group, enterGroup, updateGroup, exitGroup, data, key);
@@ -20463,8 +21316,8 @@ function pointer(event, node) {
20463
21316
  if (event = sourceEvent(event), node === void 0 && (node = event.currentTarget), node) {
20464
21317
  var svg = node.ownerSVGElement || node;
20465
21318
  if (svg.createSVGPoint) {
20466
- var point = svg.createSVGPoint();
20467
- return point.x = event.clientX, point.y = event.clientY, point = point.matrixTransform(node.getScreenCTM().inverse()), [point.x, point.y];
21319
+ var point2 = svg.createSVGPoint();
21320
+ return point2.x = event.clientX, point2.y = event.clientY, point2 = point2.matrixTransform(node.getScreenCTM().inverse()), [point2.x, point2.y];
20468
21321
  }
20469
21322
  if (node.getBoundingClientRect) {
20470
21323
  var rect = node.getBoundingClientRect();
@@ -20490,7 +21343,7 @@ function yesdrag(view, noclick) {
20490
21343
  selection2.on("click.drag", null);
20491
21344
  }, 0)), "onselectstart" in root2 ? selection2.on("selectstart.drag", null) : (root2.style.MozUserSelect = root2.__noselect, delete root2.__noselect);
20492
21345
  }
20493
- const constant$2 = (x2) => () => x2;
21346
+ const constant$3 = (x2) => () => x2;
20494
21347
  function DragEvent(type, {
20495
21348
  sourceEvent: sourceEvent2,
20496
21349
  subject,
@@ -20618,13 +21471,13 @@ function drag$1() {
20618
21471
  };
20619
21472
  }
20620
21473
  return drag2.filter = function(_2) {
20621
- return arguments.length ? (filter2 = typeof _2 == "function" ? _2 : constant$2(!!_2), drag2) : filter2;
21474
+ return arguments.length ? (filter2 = typeof _2 == "function" ? _2 : constant$3(!!_2), drag2) : filter2;
20622
21475
  }, drag2.container = function(_2) {
20623
- return arguments.length ? (container2 = typeof _2 == "function" ? _2 : constant$2(_2), drag2) : container2;
21476
+ return arguments.length ? (container2 = typeof _2 == "function" ? _2 : constant$3(_2), drag2) : container2;
20624
21477
  }, drag2.subject = function(_2) {
20625
- return arguments.length ? (subject = typeof _2 == "function" ? _2 : constant$2(_2), drag2) : subject;
21478
+ return arguments.length ? (subject = typeof _2 == "function" ? _2 : constant$3(_2), drag2) : subject;
20626
21479
  }, drag2.touchable = function(_2) {
20627
- return arguments.length ? (touchable = typeof _2 == "function" ? _2 : constant$2(!!_2), drag2) : touchable;
21480
+ return arguments.length ? (touchable = typeof _2 == "function" ? _2 : constant$3(!!_2), drag2) : touchable;
20628
21481
  }, drag2.on = function() {
20629
21482
  var value = listeners.on.apply(listeners, arguments);
20630
21483
  return value === listeners ? drag2 : value;
@@ -20937,7 +21790,7 @@ function clampt(value) {
20937
21790
  function hsl2rgb(h2, m1, m2) {
20938
21791
  return (h2 < 60 ? m1 + (m2 - m1) * h2 / 60 : h2 < 180 ? m2 : h2 < 240 ? m1 + (m2 - m1) * (240 - h2) / 60 : m1) * 255;
20939
21792
  }
20940
- const constant$1 = (x2) => () => x2;
21793
+ const constant$2 = (x2) => () => x2;
20941
21794
  function linear(a, d2) {
20942
21795
  return function(t2) {
20943
21796
  return a + t2 * d2;
@@ -20950,12 +21803,12 @@ function exponential(a, b2, y2) {
20950
21803
  }
20951
21804
  function gamma(y2) {
20952
21805
  return (y2 = +y2) == 1 ? nogamma : function(a, b2) {
20953
- return b2 - a ? exponential(a, b2, y2) : constant$1(isNaN(a) ? b2 : a);
21806
+ return b2 - a ? exponential(a, b2, y2) : constant$2(isNaN(a) ? b2 : a);
20954
21807
  };
20955
21808
  }
20956
21809
  function nogamma(a, b2) {
20957
21810
  var d2 = b2 - a;
20958
- return d2 ? linear(a, d2) : constant$1(isNaN(a) ? b2 : a);
21811
+ return d2 ? linear(a, d2) : constant$2(isNaN(a) ? b2 : a);
20959
21812
  }
20960
21813
  const interpolateRgb = function rgbGamma(y2) {
20961
21814
  var color2 = gamma(y2);
@@ -21697,7 +22550,7 @@ function selection_transition(name) {
21697
22550
  }
21698
22551
  selection.prototype.interrupt = selection_interrupt;
21699
22552
  selection.prototype.transition = selection_transition;
21700
- const constant = (x2) => () => x2;
22553
+ const constant$1 = (x2) => () => x2;
21701
22554
  function ZoomEvent(type, {
21702
22555
  sourceEvent: sourceEvent2,
21703
22556
  target,
@@ -21723,8 +22576,8 @@ Transform.prototype = {
21723
22576
  translate: function(x2, y2) {
21724
22577
  return x2 === 0 & y2 === 0 ? this : new Transform(this.k, this.x + this.k * x2, this.y + this.k * y2);
21725
22578
  },
21726
- apply: function(point) {
21727
- return [point[0] * this.k + this.x, point[1] * this.k + this.y];
22579
+ apply: function(point2) {
22580
+ return [point2[0] * this.k + this.x, point2[1] * this.k + this.y];
21728
22581
  },
21729
22582
  applyX: function(x2) {
21730
22583
  return x2 * this.k + this.x;
@@ -21793,9 +22646,9 @@ function zoom() {
21793
22646
  function zoom2(selection2) {
21794
22647
  selection2.property("__zoom", defaultTransform).on("wheel.zoom", wheeled, { passive: !1 }).on("mousedown.zoom", mousedowned).on("dblclick.zoom", dblclicked).filter(touchable).on("touchstart.zoom", touchstarted).on("touchmove.zoom", touchmoved).on("touchend.zoom touchcancel.zoom", touchended).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
21795
22648
  }
21796
- zoom2.transform = function(collection, transform2, point, event) {
22649
+ zoom2.transform = function(collection, transform2, point2, event) {
21797
22650
  var selection2 = collection.selection ? collection.selection() : collection;
21798
- selection2.property("__zoom", defaultTransform), collection !== selection2 ? schedule2(collection, transform2, point, event) : selection2.interrupt().each(function() {
22651
+ selection2.property("__zoom", defaultTransform), collection !== selection2 ? schedule2(collection, transform2, point2, event) : selection2.interrupt().each(function() {
21799
22652
  gesture(this, arguments).event(event).start().zoom(null, typeof transform2 == "function" ? transform2.apply(this, arguments) : transform2).end();
21800
22653
  });
21801
22654
  }, zoom2.scaleBy = function(selection2, k2, p2, event) {
@@ -21834,13 +22687,13 @@ function zoom() {
21834
22687
  function centroid(extent2) {
21835
22688
  return [(+extent2[0][0] + +extent2[1][0]) / 2, (+extent2[0][1] + +extent2[1][1]) / 2];
21836
22689
  }
21837
- function schedule2(transition, transform2, point, event) {
22690
+ function schedule2(transition, transform2, point2, event) {
21838
22691
  transition.on("start.zoom", function() {
21839
22692
  gesture(this, arguments).event(event).start();
21840
22693
  }).on("interrupt.zoom end.zoom", function() {
21841
22694
  gesture(this, arguments).event(event).end();
21842
22695
  }).tween("zoom", function() {
21843
- var that = this, args = arguments, g2 = gesture(that, args).event(event), e2 = extent.apply(that, args), p2 = point == null ? centroid(e2) : typeof point == "function" ? point.apply(that, args) : point, w2 = Math.max(e2[1][0] - e2[0][0], e2[1][1] - e2[0][1]), a = that.__zoom, b2 = typeof transform2 == "function" ? transform2.apply(that, args) : transform2, i2 = interpolate2(a.invert(p2).concat(w2 / a.k), b2.invert(p2).concat(w2 / b2.k));
22696
+ var that = this, args = arguments, g2 = gesture(that, args).event(event), e2 = extent.apply(that, args), p2 = point2 == null ? centroid(e2) : typeof point2 == "function" ? point2.apply(that, args) : point2, w2 = Math.max(e2[1][0] - e2[0][0], e2[1][1] - e2[0][1]), a = that.__zoom, b2 = typeof transform2 == "function" ? transform2.apply(that, args) : transform2, i2 = interpolate2(a.invert(p2).concat(w2 / a.k), b2.invert(p2).concat(w2 / b2.k));
21844
22697
  return function(t2) {
21845
22698
  if (t2 === 1)
21846
22699
  t2 = b2;
@@ -21966,13 +22819,13 @@ function zoom() {
21966
22819
  }
21967
22820
  }
21968
22821
  return zoom2.wheelDelta = function(_2) {
21969
- return arguments.length ? (wheelDelta2 = typeof _2 == "function" ? _2 : constant(+_2), zoom2) : wheelDelta2;
22822
+ return arguments.length ? (wheelDelta2 = typeof _2 == "function" ? _2 : constant$1(+_2), zoom2) : wheelDelta2;
21970
22823
  }, zoom2.filter = function(_2) {
21971
- return arguments.length ? (filter2 = typeof _2 == "function" ? _2 : constant(!!_2), zoom2) : filter2;
22824
+ return arguments.length ? (filter2 = typeof _2 == "function" ? _2 : constant$1(!!_2), zoom2) : filter2;
21972
22825
  }, zoom2.touchable = function(_2) {
21973
- return arguments.length ? (touchable = typeof _2 == "function" ? _2 : constant(!!_2), zoom2) : touchable;
22826
+ return arguments.length ? (touchable = typeof _2 == "function" ? _2 : constant$1(!!_2), zoom2) : touchable;
21974
22827
  }, zoom2.extent = function(_2) {
21975
- return arguments.length ? (extent = typeof _2 == "function" ? _2 : constant([[+_2[0][0], +_2[0][1]], [+_2[1][0], +_2[1][1]]]), zoom2) : extent;
22828
+ return arguments.length ? (extent = typeof _2 == "function" ? _2 : constant$1([[+_2[0][0], +_2[0][1]], [+_2[1][0], +_2[1][1]]]), zoom2) : extent;
21976
22829
  }, zoom2.scaleExtent = function(_2) {
21977
22830
  return arguments.length ? (scaleExtent[0] = +_2[0], scaleExtent[1] = +_2[1], zoom2) : [scaleExtent[0], scaleExtent[1]];
21978
22831
  }, zoom2.translateExtent = function(_2) {
@@ -23040,8 +23893,8 @@ function createPanOnScrollHandler({ zoomPanValues, noWheelClassName, d3Selection
23040
23893
  event.preventDefault(), event.stopImmediatePropagation();
23041
23894
  const currentZoom = d3Selection.property("__zoom").k || 1;
23042
23895
  if (event.ctrlKey && zoomOnPinch) {
23043
- const point = pointer(event), pinchDelta = wheelDelta(event), zoom2 = currentZoom * Math.pow(2, pinchDelta);
23044
- d3Zoom.scaleTo(d3Selection, zoom2, point, event);
23896
+ const point2 = pointer(event), pinchDelta = wheelDelta(event), zoom2 = currentZoom * Math.pow(2, pinchDelta);
23897
+ d3Zoom.scaleTo(d3Selection, zoom2, point2, event);
23045
23898
  return;
23046
23899
  }
23047
23900
  const deltaNormalize = event.deltaMode === 1 ? 20 : 1;
@@ -24440,9 +25293,9 @@ function useVisibleNodeIds(onlyRenderVisible) {
24440
25293
  }
24441
25294
  const selector$e = (s2) => s2.updateNodeInternals;
24442
25295
  function useResizeObserver() {
24443
- const updateNodeInternals2 = useStore$1(selector$e), [resizeObserver] = reactExports.useState(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((entries) => {
25296
+ const updateNodeInternals2 = useStore$1(selector$e), [resizeObserver] = reactExports.useState(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((entries2) => {
24444
25297
  const updates = /* @__PURE__ */ new Map();
24445
- entries.forEach((entry) => {
25298
+ entries2.forEach((entry) => {
24446
25299
  const id2 = entry.target.getAttribute("data-id");
24447
25300
  updates.set(id2, {
24448
25301
  id: id2,
@@ -24468,12 +25321,12 @@ function useNodeObserver({ node, nodeType, hasDimensions, resizeObserver }) {
24468
25321
  }, [node.id, nodeType, node.sourcePosition, node.targetPosition]), nodeRef;
24469
25322
  }
24470
25323
  function NodeWrapper({ id: id2, onClick, onMouseEnter, onMouseMove, onMouseLeave, onContextMenu, onDoubleClick, nodesDraggable, elementsSelectable, nodesConnectable, nodesFocusable, resizeObserver, noDragClassName, noPanClassName, disableKeyboardA11y, rfId, nodeTypes: nodeTypes2, nodeExtent, nodeOrigin, onError }) {
24471
- const { node, internals, isParent } = useStore$1((s2) => {
24472
- const node2 = s2.nodeLookup.get(id2), isParent2 = s2.parentLookup.has(id2);
25324
+ const { node, internals, isParent: isParent2 } = useStore$1((s2) => {
25325
+ const node2 = s2.nodeLookup.get(id2), isParent22 = s2.parentLookup.has(id2);
24473
25326
  return {
24474
25327
  node: node2,
24475
25328
  internals: node2.internals,
24476
- isParent: isParent2
25329
+ isParent: isParent22
24477
25330
  };
24478
25331
  }, shallow$1);
24479
25332
  let nodeType = node.type || "default", NodeComponent = nodeTypes2?.[nodeType] || builtinNodeTypes[nodeType];
@@ -24528,7 +25381,7 @@ function NodeWrapper({ id: id2, onClick, onMouseEnter, onMouseMove, onMouseLeave
24528
25381
  {
24529
25382
  selected: node.selected,
24530
25383
  selectable: isSelectable,
24531
- parent: isParent,
25384
+ parent: isParent2,
24532
25385
  draggable: isDraggable,
24533
25386
  dragging
24534
25387
  }
@@ -25394,7 +26247,7 @@ function NodeComponentWrapperInner({ id: id2, nodeOrigin, nodeColorFunc, nodeStr
25394
26247
  }
25395
26248
  const NodeComponentWrapper = reactExports.memo(NodeComponentWrapperInner);
25396
26249
  var MiniMapNodes$1 = reactExports.memo(MiniMapNodes);
25397
- const defaultWidth = 200, defaultHeight = 150, selector$1 = (s2) => {
26250
+ const defaultWidth = 200, defaultHeight = 150, selector$1$1 = (s2) => {
25398
26251
  const viewBB = {
25399
26252
  x: -s2.transform[0] / s2.transform[2],
25400
26253
  y: -s2.transform[1] / s2.transform[2],
@@ -25437,7 +26290,7 @@ function MiniMapComponent({
25437
26290
  zoomStep = 10,
25438
26291
  offsetScale = 5
25439
26292
  }) {
25440
- const store = useStoreApi(), svg = reactExports.useRef(null), { boundingRect, viewBB, rfId, panZoom, translateExtent, flowWidth, flowHeight } = useStore$1(selector$1, shallow$1), elementWidth = style2?.width ?? defaultWidth, elementHeight = style2?.height ?? defaultHeight, scaledWidth = boundingRect.width / elementWidth, scaledHeight = boundingRect.height / elementHeight, viewScale = Math.max(scaledWidth, scaledHeight), viewWidth = viewScale * elementWidth, viewHeight = viewScale * elementHeight, offset2 = offsetScale * viewScale, x2 = boundingRect.x - (viewWidth - boundingRect.width) / 2 - offset2, y2 = boundingRect.y - (viewHeight - boundingRect.height) / 2 - offset2, width = viewWidth + offset2 * 2, height = viewHeight + offset2 * 2, labelledBy = `${ARIA_LABEL_KEY}-${rfId}`, viewScaleRef = reactExports.useRef(0), minimapInstance = reactExports.useRef();
26293
+ const store = useStoreApi(), svg = reactExports.useRef(null), { boundingRect, viewBB, rfId, panZoom, translateExtent, flowWidth, flowHeight } = useStore$1(selector$1$1, shallow$1), elementWidth = style2?.width ?? defaultWidth, elementHeight = style2?.height ?? defaultHeight, scaledWidth = boundingRect.width / elementWidth, scaledHeight = boundingRect.height / elementHeight, viewScale = Math.max(scaledWidth, scaledHeight), viewWidth = viewScale * elementWidth, viewHeight = viewScale * elementHeight, offset2 = offsetScale * viewScale, x2 = boundingRect.x - (viewWidth - boundingRect.width) / 2 - offset2, y2 = boundingRect.y - (viewHeight - boundingRect.height) / 2 - offset2, width = viewWidth + offset2 * 2, height = viewHeight + offset2 * 2, labelledBy = `${ARIA_LABEL_KEY}-${rfId}`, viewScaleRef = reactExports.useRef(0), minimapInstance = reactExports.useRef();
25441
26294
  viewScaleRef.current = viewScale, reactExports.useEffect(() => {
25442
26295
  if (svg.current && panZoom)
25443
26296
  return minimapInstance.current = XYMinimap({
@@ -26181,6 +27034,12 @@ function hasAtLeast() {
26181
27034
  var hasAtLeastImplementation = function(data, minimum) {
26182
27035
  return data.length >= minimum;
26183
27036
  };
27037
+ function entries() {
27038
+ return purry(Object.entries, arguments);
27039
+ }
27040
+ (function(entries2) {
27041
+ entries2.strict = entries2;
27042
+ })(entries || (entries = {}));
26184
27043
  function findLast() {
26185
27044
  return purry(_findLast(!1), arguments);
26186
27045
  }
@@ -27863,50 +28722,84 @@ function createDiagramStore(props) {
27863
28722
  setLastClickedEdge: (edgeId) => {
27864
28723
  edgeId !== get2().lastClickedEdgeId && set2({ lastClickedEdgeId: edgeId }, noReplace, edgeId ? "setLastClickedEdge" : "unsetLastClickedEdge");
27865
28724
  },
28725
+ resetLastClicked: () => {
28726
+ let {
28727
+ focusedNodeId,
28728
+ lastClickedNodeId,
28729
+ lastClickedEdgeId
28730
+ } = get2();
28731
+ (focusedNodeId || lastClickedNodeId || lastClickedEdgeId) && set2(
28732
+ {
28733
+ focusedNodeId: null,
28734
+ lastClickedNodeId: null,
28735
+ lastClickedEdgeId: null
28736
+ },
28737
+ noReplace,
28738
+ "resetLastClicked"
28739
+ );
28740
+ },
27866
28741
  getElement: (fqn) => {
27867
28742
  const { view } = get2();
27868
28743
  return view.nodes.find(({ id: id2 }) => id2 === fqn) ?? null;
27869
28744
  },
27870
28745
  triggerOnChange: (changes) => {
27871
- const newShapes = /* @__PURE__ */ new Map(), newColor = /* @__PURE__ */ new Map();
28746
+ const newShapes = /* @__PURE__ */ new Map(), newColor = /* @__PURE__ */ new Map(), newOpacity = /* @__PURE__ */ new Map(), newBorder = /* @__PURE__ */ new Map();
27872
28747
  for (const change of changes) {
27873
- if (change.op === "change-shape") {
27874
- for (const target of change.targets)
27875
- newShapes.set(target, change.shape);
27876
- continue;
27877
- }
27878
- if (change.op === "change-color") {
27879
- for (const target of change.targets)
27880
- newColor.set(target, change.color);
27881
- continue;
27882
- }
27883
- nonexhaustive(change);
28748
+ change.op !== "change-element-style" && nonexhaustive(change.op);
28749
+ for (const target of change.targets)
28750
+ for (const [key, value] of entries.strict(change.style))
28751
+ switch (key) {
28752
+ case "shape":
28753
+ newShapes.set(target, value);
28754
+ break;
28755
+ case "color":
28756
+ newColor.set(target, value);
28757
+ break;
28758
+ case "opacity":
28759
+ newOpacity.set(target, value);
28760
+ break;
28761
+ case "border":
28762
+ newBorder.set(target, value);
28763
+ break;
28764
+ default:
28765
+ nonexhaustive(key);
28766
+ }
27884
28767
  }
27885
28768
  get2().xyflow.setNodes(
27886
28769
  (nodes) => nodes.map((node) => {
27887
- let { data } = node;
27888
- const shape = newShapes.get(data.fqn);
27889
- shape && shape !== data.element.shape && (node = {
27890
- ...node,
27891
- data: {
27892
- ...data,
27893
- element: {
27894
- ...data.element,
27895
- shape
27896
- }
28770
+ let element = node.data.element;
28771
+ const shape = newShapes.get(element.id);
28772
+ shape && shape !== element.shape && (element = {
28773
+ ...element,
28774
+ shape
28775
+ });
28776
+ const color2 = newColor.get(element.id);
28777
+ color2 && color2 !== element.color && (element = {
28778
+ ...element,
28779
+ color: color2
28780
+ });
28781
+ const opacity = newOpacity.get(element.id);
28782
+ opacity && opacity !== element.style?.opacity && (element = {
28783
+ ...element,
28784
+ style: {
28785
+ ...element.style,
28786
+ opacity
28787
+ }
28788
+ });
28789
+ const border = newBorder.get(element.id);
28790
+ return border && border !== element.style?.border && (element = {
28791
+ ...element,
28792
+ style: {
28793
+ ...element.style,
28794
+ border
27897
28795
  }
27898
- }, data = node.data);
27899
- const color2 = newColor.get(data.fqn);
27900
- return color2 && color2 !== data.element.color && (node = {
28796
+ }), element === node.data.element ? node : {
27901
28797
  ...node,
27902
28798
  data: {
27903
- ...data,
27904
- element: {
27905
- ...data.element,
27906
- color: color2
27907
- }
28799
+ ...node.data,
28800
+ element
27908
28801
  }
27909
- }), node;
28802
+ };
27910
28803
  })
27911
28804
  ), get2().onChange?.({ changes });
27912
28805
  },
@@ -27942,7 +28835,7 @@ function createDiagramStore(props) {
27942
28835
  xyflow.fitView({
27943
28836
  includeHiddenNodes: !0,
27944
28837
  duration: centerNode && focusedNodeId ? 300 : 400,
27945
- padding: centerNode ? 0 : fitViewPadding,
28838
+ padding: fitViewPadding,
27946
28839
  minZoom: MinZoom,
27947
28840
  maxZoom: 1,
27948
28841
  ...centerNode && { nodes: [centerNode] }
@@ -27989,13 +28882,13 @@ class Queue {
27989
28882
  constructor() {
27990
28883
  this.order = [], this.scheduled = /* @__PURE__ */ new Set();
27991
28884
  }
27992
- add(process) {
27993
- if (!this.scheduled.has(process))
27994
- return this.scheduled.add(process), this.order.push(process), !0;
28885
+ add(process2) {
28886
+ if (!this.scheduled.has(process2))
28887
+ return this.scheduled.add(process2), this.order.push(process2), !0;
27995
28888
  }
27996
- remove(process) {
27997
- const index2 = this.order.indexOf(process);
27998
- index2 !== -1 && (this.order.splice(index2, 1), this.scheduled.delete(process));
28889
+ remove(process2) {
28890
+ const index2 = this.order.indexOf(process2);
28891
+ index2 !== -1 && (this.order.splice(index2, 1), this.scheduled.delete(process2));
27999
28892
  }
28000
28893
  clear() {
28001
28894
  this.order.length = 0, this.scheduled.clear();
@@ -28065,8 +28958,8 @@ function createRenderBatcher(scheduleNextBatch, allowKeepAlive) {
28065
28958
  };
28066
28959
  return { schedule: stepsOrder.reduce((acc, key) => {
28067
28960
  const step = steps2[key];
28068
- return acc[key] = (process, keepAlive = !1, immediate = !1) => (runNextFrame || wake2(), step.schedule(process, keepAlive, immediate)), acc;
28069
- }, {}), cancel: (process) => stepsOrder.forEach((key) => steps2[key].cancel(process)), state, steps: steps2 };
28961
+ return acc[key] = (process2, keepAlive = !1, immediate = !1) => (runNextFrame || wake2(), step.schedule(process2, keepAlive, immediate)), acc;
28962
+ }, {}), cancel: (process2) => stepsOrder.forEach((key) => steps2[key].cancel(process2)), state, steps: steps2 };
28070
28963
  }
28071
28964
  const { schedule: microtask, cancel: cancelMicrotask } = createRenderBatcher(queueMicrotask, !1);
28072
28965
  function useVisualElement(Component, visualState, props, createVisualElement) {
@@ -28206,19 +29099,19 @@ function useLayoutId({ layoutId }) {
28206
29099
  return layoutGroupId && layoutId !== void 0 ? layoutGroupId + "-" + layoutId : layoutId;
28207
29100
  }
28208
29101
  function createMotionProxy(createConfig) {
28209
- function custom(Component, customMotionComponentConfig = {}) {
29102
+ function custom5(Component, customMotionComponentConfig = {}) {
28210
29103
  return createMotionComponent(createConfig(Component, customMotionComponentConfig));
28211
29104
  }
28212
29105
  if (typeof Proxy > "u")
28213
- return custom;
29106
+ return custom5;
28214
29107
  const componentCache = /* @__PURE__ */ new Map();
28215
- return new Proxy(custom, {
29108
+ return new Proxy(custom5, {
28216
29109
  /**
28217
29110
  * Called when `motion` is referenced with a prop: `motion.div`, `motion.input` etc.
28218
29111
  * The prop name is passed through as `key` and we can use that to generate a `motion`
28219
29112
  * DOM component with that name.
28220
29113
  */
28221
- get: (_target, key) => (componentCache.has(key) || componentCache.set(key, custom(key)), componentCache.get(key))
29114
+ get: (_target, key) => (componentCache.has(key) || componentCache.set(key, custom5(key)), componentCache.get(key))
28222
29115
  });
28223
29116
  }
28224
29117
  const lowercaseSVGElements = [
@@ -28625,14 +29518,14 @@ function getValueState(visualElement) {
28625
29518
  state[0][key] = value.get(), state[1][key] = value.getVelocity();
28626
29519
  }), state;
28627
29520
  }
28628
- function resolveVariantFromProps(props, definition, custom, visualElement) {
29521
+ function resolveVariantFromProps(props, definition, custom5, visualElement) {
28629
29522
  if (typeof definition == "function") {
28630
29523
  const [current, velocity] = getValueState(visualElement);
28631
- definition = definition(custom !== void 0 ? custom : props.custom, current, velocity);
29524
+ definition = definition(custom5 !== void 0 ? custom5 : props.custom, current, velocity);
28632
29525
  }
28633
29526
  if (typeof definition == "string" && (definition = props.variants && props.variants[definition]), typeof definition == "function") {
28634
29527
  const [current, velocity] = getValueState(visualElement);
28635
- definition = definition(custom !== void 0 ? custom : props.custom, current, velocity);
29528
+ definition = definition(custom5 !== void 0 ? custom5 : props.custom, current, velocity);
28636
29529
  }
28637
29530
  return definition;
28638
29531
  }
@@ -28883,8 +29776,8 @@ class PressGesture extends Feature {
28883
29776
  const observerCallbacks = /* @__PURE__ */ new WeakMap(), observers = /* @__PURE__ */ new WeakMap(), fireObserverCallback = (entry) => {
28884
29777
  const callback = observerCallbacks.get(entry.target);
28885
29778
  callback && callback(entry);
28886
- }, fireAllObserverCallbacks = (entries) => {
28887
- entries.forEach(fireObserverCallback);
29779
+ }, fireAllObserverCallbacks = (entries2) => {
29780
+ entries2.forEach(fireObserverCallback);
28888
29781
  };
28889
29782
  function initIntersectionObserver({ root: root2, ...options }) {
28890
29783
  const lookupRoot = root2 || document;
@@ -28962,9 +29855,9 @@ function shallowCompare(next, prev) {
28962
29855
  return !1;
28963
29856
  return !0;
28964
29857
  }
28965
- function resolveVariant(visualElement, definition, custom) {
29858
+ function resolveVariant(visualElement, definition, custom5) {
28966
29859
  const props = visualElement.getProps();
28967
- return resolveVariantFromProps(props, definition, custom !== void 0 ? custom : props.custom, visualElement);
29860
+ return resolveVariantFromProps(props, definition, custom5 !== void 0 ? custom5 : props.custom, visualElement);
28968
29861
  }
28969
29862
  const secondsToMilliseconds = (seconds) => seconds * 1e3, millisecondsToSeconds = (milliseconds) => milliseconds / 1e3, underDampedSpring = {
28970
29863
  type: "spring",
@@ -30632,8 +31525,8 @@ class PanSession {
30632
31525
  const info2 = getPanInfo(this.lastMoveEventInfo, this.history), isPanStarted = this.startEvent !== null, isDistancePastThreshold = distance2D(info2.offset, { x: 0, y: 0 }) >= 3;
30633
31526
  if (!isPanStarted && !isDistancePastThreshold)
30634
31527
  return;
30635
- const { point: point2 } = info2, { timestamp: timestamp2 } = frameData;
30636
- this.history.push({ ...point2, timestamp: timestamp2 });
31528
+ const { point: point3 } = info2, { timestamp: timestamp2 } = frameData;
31529
+ this.history.push({ ...point3, timestamp: timestamp2 });
30637
31530
  const { onStart, onMove } = this.handlers;
30638
31531
  isPanStarted || (onStart && onStart(this.lastMoveEvent, info2), this.startEvent = this.lastMoveEvent), onMove && onMove(this.lastMoveEvent, info2);
30639
31532
  }, this.handlePointerMove = (event2, info2) => {
@@ -30648,8 +31541,8 @@ class PanSession {
30648
31541
  }, !isPrimaryPointer(event))
30649
31542
  return;
30650
31543
  this.dragSnapToOrigin = dragSnapToOrigin, this.handlers = handlers, this.transformPagePoint = transformPagePoint, this.contextWindow = contextWindow || window;
30651
- const info = extractEventInfo(event), initialInfo = transformPoint(info, this.transformPagePoint), { point } = initialInfo, { timestamp } = frameData;
30652
- this.history = [{ ...point, timestamp }];
31544
+ const info = extractEventInfo(event), initialInfo = transformPoint(info, this.transformPagePoint), { point: point2 } = initialInfo, { timestamp } = frameData;
31545
+ this.history = [{ ...point2, timestamp }];
30653
31546
  const { onSessionStart } = handlers;
30654
31547
  onSessionStart && onSessionStart(event, getPanInfo(initialInfo, this.history)), this.removeListeners = pipe(addPointerEvent(this.contextWindow, "pointermove", this.handlePointerMove), addPointerEvent(this.contextWindow, "pointerup", this.handlePointerUp), addPointerEvent(this.contextWindow, "pointercancel", this.handlePointerUp));
30655
31548
  }
@@ -30666,11 +31559,11 @@ function transformPoint(info, transformPagePoint) {
30666
31559
  function subtractPoint(a, b2) {
30667
31560
  return { x: a.x - b2.x, y: a.y - b2.y };
30668
31561
  }
30669
- function getPanInfo({ point }, history) {
31562
+ function getPanInfo({ point: point2 }, history) {
30670
31563
  return {
30671
- point,
30672
- delta: subtractPoint(point, lastDevicePoint(history)),
30673
- offset: subtractPoint(point, startDevicePoint(history)),
31564
+ point: point2,
31565
+ delta: subtractPoint(point2, lastDevicePoint(history)),
31566
+ offset: subtractPoint(point2, startDevicePoint(history)),
30674
31567
  velocity: getVelocity(history, 0.1)
30675
31568
  };
30676
31569
  }
@@ -30722,8 +31615,8 @@ function calcRelativeAxisPosition(target, layout2, parent) {
30722
31615
  function calcRelativePosition(target, layout2, parent) {
30723
31616
  calcRelativeAxisPosition(target.x, layout2.x, parent.x), calcRelativeAxisPosition(target.y, layout2.y, parent.y);
30724
31617
  }
30725
- function applyConstraints(point, { min: min2, max: max2 }, elastic) {
30726
- return min2 !== void 0 && point < min2 ? point = elastic ? mixNumber$1(min2, point, elastic.min) : Math.max(point, min2) : max2 !== void 0 && point > max2 && (point = elastic ? mixNumber$1(max2, point, elastic.max) : Math.min(point, max2)), point;
31618
+ function applyConstraints(point2, { min: min2, max: max2 }, elastic) {
31619
+ return min2 !== void 0 && point2 < min2 ? point2 = elastic ? mixNumber$1(min2, point2, elastic.min) : Math.max(point2, min2) : max2 !== void 0 && point2 > max2 && (point2 = elastic ? mixNumber$1(max2, point2, elastic.max) : Math.min(point2, max2)), point2;
30727
31620
  }
30728
31621
  function calcRelativeAxisConstraints(axis, min2, max2) {
30729
31622
  return {
@@ -30796,10 +31689,10 @@ function convertBoundingBoxToBox({ top, left, right, bottom }) {
30796
31689
  function convertBoxToBoundingBox({ x: x2, y: y2 }) {
30797
31690
  return { top: y2.min, right: x2.max, bottom: y2.max, left: x2.min };
30798
31691
  }
30799
- function transformBoxPoints(point, transformPoint2) {
31692
+ function transformBoxPoints(point2, transformPoint2) {
30800
31693
  if (!transformPoint2)
30801
- return point;
30802
- const topLeft = transformPoint2({ x: point.left, y: point.top }), bottomRight = transformPoint2({ x: point.right, y: point.bottom });
31694
+ return point2;
31695
+ const topLeft = transformPoint2({ x: point2.left, y: point2.top }), bottomRight = transformPoint2({ x: point2.right, y: point2.bottom });
30803
31696
  return {
30804
31697
  top: topLeft.y,
30805
31698
  left: topLeft.x,
@@ -30822,12 +31715,12 @@ function has2DTranslate(values2) {
30822
31715
  function is2DTranslate(value) {
30823
31716
  return value && value !== "0%";
30824
31717
  }
30825
- function scalePoint(point, scale2, originPoint) {
30826
- const distanceFromOrigin = point - originPoint, scaled = scale2 * distanceFromOrigin;
31718
+ function scalePoint(point2, scale2, originPoint) {
31719
+ const distanceFromOrigin = point2 - originPoint, scaled = scale2 * distanceFromOrigin;
30827
31720
  return originPoint + scaled;
30828
31721
  }
30829
- function applyPointDelta(point, translate, scale2, originPoint, boxScale) {
30830
- return boxScale !== void 0 && (point = scalePoint(point, boxScale, originPoint)), scalePoint(point, scale2, originPoint) + translate;
31722
+ function applyPointDelta(point2, translate, scale2, originPoint, boxScale) {
31723
+ return boxScale !== void 0 && (point2 = scalePoint(point2, boxScale, originPoint)), scalePoint(point2, scale2, originPoint) + translate;
30831
31724
  }
30832
31725
  function applyAxisDelta(axis, translate = 0, scale2 = 1, originPoint, boxScale) {
30833
31726
  axis.min = applyPointDelta(axis.min, translate, scale2, originPoint, boxScale), axis.max = applyPointDelta(axis.max, translate, scale2, originPoint, boxScale);
@@ -31021,7 +31914,7 @@ class VisualElementDragControls {
31021
31914
  const dragKey = `_drag${axis.toUpperCase()}`, props = this.visualElement.getProps(), externalMotionValue = props[dragKey];
31022
31915
  return externalMotionValue || this.visualElement.getValue(axis, (props.initial ? props.initial[axis] : void 0) || 0);
31023
31916
  }
31024
- snapToCursor(point) {
31917
+ snapToCursor(point2) {
31025
31918
  eachAxis((axis) => {
31026
31919
  const { drag: drag2 } = this.getProps();
31027
31920
  if (!shouldDrag(axis, drag2, this.currentDirection))
@@ -31029,7 +31922,7 @@ class VisualElementDragControls {
31029
31922
  const { projection } = this.visualElement, axisValue = this.getAxisMotionValue(axis);
31030
31923
  if (projection && projection.layout) {
31031
31924
  const { min: min2, max: max2 } = projection.layout.layoutBox[axis];
31032
- axisValue.set(point[axis] - mixNumber$1(min2, max2, 0.5));
31925
+ axisValue.set(point2[axis] - mixNumber$1(min2, max2, 0.5));
31033
31926
  }
31034
31927
  });
31035
31928
  }
@@ -31283,8 +32176,8 @@ function copyAxisInto(axis, originAxis) {
31283
32176
  function copyBoxInto(box, originBox) {
31284
32177
  copyAxisInto(box.x, originBox.x), copyAxisInto(box.y, originBox.y);
31285
32178
  }
31286
- function removePointDelta(point, translate, scale2, originPoint, boxScale) {
31287
- return point -= translate, point = scalePoint(point, 1 / scale2, originPoint), boxScale !== void 0 && (point = scalePoint(point, 1 / boxScale, originPoint)), point;
32179
+ function removePointDelta(point2, translate, scale2, originPoint, boxScale) {
32180
+ return point2 -= translate, point2 = scalePoint(point2, 1 / scale2, originPoint), boxScale !== void 0 && (point2 = scalePoint(point2, 1 / boxScale, originPoint)), point2;
31288
32181
  }
31289
32182
  function removeAxisDelta(axis, translate = 0, scale2 = 1, origin = 0.5, boxScale, originAxis = axis, sourceAxis = axis) {
31290
32183
  if (percent.test(translate) && (translate = parseFloat(translate), translate = mixNumber$1(sourceAxis.min, sourceAxis.max, translate / 100) - sourceAxis.min), typeof translate != "number")
@@ -32416,13 +33309,13 @@ function PopChild({ children: children2, isPresent }) {
32416
33309
  };
32417
33310
  }, [isPresent]), jsxRuntimeExports.jsx(PopChildMeasure, { isPresent, childRef: ref, sizeRef: size2, children: reactExports.cloneElement(children2, { ref }) });
32418
33311
  }
32419
- const PresenceChild = ({ children: children2, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode }) => {
33312
+ const PresenceChild = ({ children: children2, initial, isPresent, onExitComplete, custom: custom5, presenceAffectsLayout, mode }) => {
32420
33313
  const presenceChildren = useConstant(newChildrenMap), id2 = reactExports.useId(), context = reactExports.useMemo(
32421
33314
  () => ({
32422
33315
  id: id2,
32423
33316
  initial,
32424
33317
  isPresent,
32425
- custom,
33318
+ custom: custom5,
32426
33319
  onExitComplete: (childId) => {
32427
33320
  presenceChildren.set(childId, !0);
32428
33321
  for (const isComplete of presenceChildren.values())
@@ -32464,7 +33357,7 @@ function onlyElements(children2) {
32464
33357
  reactExports.isValidElement(child) && filtered.push(child);
32465
33358
  }), filtered;
32466
33359
  }
32467
- const AnimatePresence = ({ children: children2, custom, initial = !0, onExitComplete, exitBeforeEnter, presenceAffectsLayout = !0, mode = "sync" }) => {
33360
+ const AnimatePresence = ({ children: children2, custom: custom5, initial = !0, onExitComplete, exitBeforeEnter, presenceAffectsLayout = !0, mode = "sync" }) => {
32468
33361
  const forceRender = reactExports.useContext(LayoutGroupContext).forceRender || useForceUpdate()[0], isMounted = useIsMounted(), filteredChildren = onlyElements(children2);
32469
33362
  let childrenToRender = filteredChildren;
32470
33363
  const exitingChildren = reactExports.useRef(/* @__PURE__ */ new Map()).current, presentChildren = reactExports.useRef(childrenToRender), allChildren = reactExports.useRef(/* @__PURE__ */ new Map()).current, isInitialRender = reactExports.useRef(!0);
@@ -32505,14 +33398,155 @@ const AnimatePresence = ({ children: children2, custom, initial = !0, onExitComp
32505
33398
  forceRender(), onExitComplete && onExitComplete();
32506
33399
  }
32507
33400
  };
32508
- exitingComponent = jsxRuntimeExports.jsx(PresenceChild, { isPresent: !1, onExitComplete: onExit, custom, presenceAffectsLayout, mode, children: child }, getChildKey(child)), exitingChildren.set(key, exitingComponent);
33401
+ exitingComponent = jsxRuntimeExports.jsx(PresenceChild, { isPresent: !1, onExitComplete: onExit, custom: custom5, presenceAffectsLayout, mode, children: child }, getChildKey(child)), exitingChildren.set(key, exitingComponent);
32509
33402
  }
32510
33403
  childrenToRender.splice(insertionIndex, 0, exitingComponent);
32511
33404
  }), childrenToRender = childrenToRender.map((child) => {
32512
33405
  const key = child.key;
32513
33406
  return exitingChildren.has(key) ? child : jsxRuntimeExports.jsx(PresenceChild, { isPresent: !0, presenceAffectsLayout, mode, children: child }, getChildKey(child));
32514
33407
  }), jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: exitingChildren.size ? childrenToRender : childrenToRender.map((child) => reactExports.cloneElement(child)) });
32515
- }, {
33408
+ };
33409
+ var container$3 = "_19ci0hj0", paper = "_19ci0hj1", title$2 = "_19ci0hj2", description$1 = "_19ci0hj3";
33410
+ const selector$1 = (s2) => ({
33411
+ id: s2.view.id,
33412
+ title: s2.view.title ?? "untitled",
33413
+ description: s2.view.description,
33414
+ links: s2.view.links
33415
+ });
33416
+ function DiagramTitlePanel() {
33417
+ const { id: id2, title: title2, description: description2, links } = useDiagramState(selector$1), [isCollapsed, setCollapsed] = useLocalStorage({
33418
+ key: "diagram-title-panel-collapsed",
33419
+ defaultValue: !1
33420
+ }), toggle = () => setCollapsed((v2) => !v2);
33421
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(AnimatePresence, { mode: "wait", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
33422
+ motion.div,
33423
+ {
33424
+ initial: { opacity: 0.05, scale: 0.7 },
33425
+ animate: { opacity: 1, scale: 1 },
33426
+ exit: {
33427
+ opacity: 0.05,
33428
+ scale: 0.6
33429
+ },
33430
+ className: clsx("react-flow__panel", container$3),
33431
+ style: {
33432
+ transformOrigin: "left center"
33433
+ },
33434
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
33435
+ Paper,
33436
+ {
33437
+ radius: "sm",
33438
+ withBorder: !isCollapsed,
33439
+ className: paper,
33440
+ p: isCollapsed ? "sm" : "md",
33441
+ onDoubleClick: (e2) => e2.stopPropagation(),
33442
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Stack, { gap: "sm", justify: "stretch", align: "stretch", children: [
33443
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Group, { justify: "stretch", wrap: "nowrap", onClick: toggle, style: { cursor: "pointer" }, children: [
33444
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
33445
+ Text$1,
33446
+ {
33447
+ component: "div",
33448
+ flex: "1",
33449
+ size: isCollapsed ? "sm" : "lg",
33450
+ fw: 500,
33451
+ lh: 1.1,
33452
+ className: title$2,
33453
+ children: title2
33454
+ }
33455
+ ),
33456
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(
33457
+ Text$1,
33458
+ {
33459
+ hidden: isCollapsed,
33460
+ component: "div",
33461
+ flex: "0 0 auto",
33462
+ inline: !0,
33463
+ size: "xs",
33464
+ fz: 9,
33465
+ fw: 500,
33466
+ c: "dimmed",
33467
+ style: {
33468
+ userSelect: "all"
33469
+ },
33470
+ children: [
33471
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { style: { userSelect: "none" }, children: [
33472
+ "id:",
33473
+ " "
33474
+ ] }),
33475
+ id2
33476
+ ]
33477
+ }
33478
+ )
33479
+ ] }),
33480
+ !isCollapsed && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
33481
+ description2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
33482
+ Spoiler,
33483
+ {
33484
+ maxHeight: 42,
33485
+ showLabel: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { color: "gray", variant: "light", fz: "10", size: "compact-xs", children: "show more" }),
33486
+ hideLabel: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { color: "gray", variant: "light", fz: "10", size: "compact-xs", children: "hide" }),
33487
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
33488
+ Text$1,
33489
+ {
33490
+ component: "div",
33491
+ size: "sm",
33492
+ className: description$1,
33493
+ children: description2 || "no description"
33494
+ }
33495
+ )
33496
+ }
33497
+ ),
33498
+ !description2 && /* @__PURE__ */ jsxRuntimeExports.jsx(
33499
+ Text$1,
33500
+ {
33501
+ component: "div",
33502
+ size: "xs",
33503
+ c: "dimmed",
33504
+ children: "no description"
33505
+ }
33506
+ ),
33507
+ links && /* @__PURE__ */ jsxRuntimeExports.jsx(
33508
+ Stack,
33509
+ {
33510
+ gap: 3,
33511
+ justify: "stretch",
33512
+ align: "stretch",
33513
+ children: links.map((link) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Group, { wrap: "nowrap", align: "center", gap: "sm", children: [
33514
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { flex: "1", style: { overflow: "hidden" }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
33515
+ Anchor,
33516
+ {
33517
+ href: link,
33518
+ target: "_blank",
33519
+ fz: "xs",
33520
+ truncate: "end",
33521
+ display: "inline-block",
33522
+ w: "100%",
33523
+ children: link
33524
+ }
33525
+ ) }),
33526
+ /* @__PURE__ */ jsxRuntimeExports.jsx(CopyButton, { value: link, children: ({ copied, copy }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
33527
+ Button,
33528
+ {
33529
+ size: "compact-xs",
33530
+ fz: "10",
33531
+ variant: "light",
33532
+ onClick: copy,
33533
+ color: copied ? "teal" : "gray",
33534
+ children: copied ? "copied" : "copy"
33535
+ }
33536
+ ) })
33537
+ ] }, link))
33538
+ }
33539
+ )
33540
+ ] })
33541
+ ] })
33542
+ }
33543
+ )
33544
+ },
33545
+ id2
33546
+ ) });
33547
+ }
33548
+ var panel = "_12rmdgk0";
33549
+ const {
32516
33550
  primary,
32517
33551
  secondary,
32518
33552
  muted,
@@ -32529,7 +33563,16 @@ function NodeOptions({ selectedNodeIds }) {
32529
33563
  const diagramApi = useDiagramStoreApi(), nodes = useXYNodesData(selectedNodeIds);
32530
33564
  if (!hasAtLeast(nodes, 1))
32531
33565
  return null;
32532
- const showShapeOption = nodes.some((node) => node.type === "element"), [firstNode, ...rest] = nodes;
33566
+ if (nodes.length !== selectedNodeIds.length)
33567
+ throw new Error("NodeOptions: nodes and props.nodes should have the same length");
33568
+ const showShapeOption = nodes.some((node) => node.type === "element"), [firstNode, ...rest] = nodes, showOpacityOption = rest.length === 0 && firstNode.type === "compound", triggerChange = (style2) => {
33569
+ const targets = nodes.map((node) => node.data.element.id);
33570
+ invariant$1(hasAtLeast(targets, 1), "At least one target is required"), diagramApi.getState().triggerOnChange([{
33571
+ op: "change-element-style",
33572
+ style: style2,
33573
+ targets
33574
+ }]);
33575
+ };
32533
33576
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(Stack, { children: [
32534
33577
  /* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { maw: 200, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Text$1, { size: "xs", c: rest.length > 0 ? "dimmed" : "", truncate: !0, children: rest.length === 0 ? firstNode.data.element.title : "[ multiple ]" }) }),
32535
33578
  showShapeOption && /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -32537,14 +33580,7 @@ function NodeOptions({ selectedNodeIds }) {
32537
33580
  {
32538
33581
  nodes,
32539
33582
  onShapeChange: (shape) => {
32540
- const targets = [];
32541
- for (const nd2 of nodes)
32542
- nd2.data.element.shape !== shape && targets.push(nd2.data.element.id);
32543
- hasAtLeast(targets, 1) && diagramApi.getState().triggerOnChange([{
32544
- op: "change-shape",
32545
- shape,
32546
- targets
32547
- }]);
33583
+ triggerChange({ shape });
32548
33584
  }
32549
33585
  }
32550
33586
  ),
@@ -32553,18 +33589,32 @@ function NodeOptions({ selectedNodeIds }) {
32553
33589
  {
32554
33590
  nodes,
32555
33591
  onColorChange: (color2) => {
32556
- const targets = [];
32557
- for (const nd2 of nodes)
32558
- nd2.data.element.color !== color2 && targets.push(nd2.data.element.id);
32559
- hasAtLeast(targets, 1) && diagramApi.getState().triggerOnChange([{
32560
- op: "change-color",
32561
- color: color2,
32562
- targets
32563
- }]);
33592
+ triggerChange({ color: color2 });
32564
33593
  }
32565
33594
  }
32566
33595
  ),
32567
- /* @__PURE__ */ jsxRuntimeExports.jsx(NavigateToOption, { nodes })
33596
+ /* @__PURE__ */ jsxRuntimeExports.jsx(NavigateToOption, { nodes }),
33597
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { children: showOpacityOption && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
33598
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, { label: "opacity and border", labelPosition: "left" }),
33599
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
33600
+ OpacityOption,
33601
+ {
33602
+ node: firstNode,
33603
+ onOpacityChange: (opacity) => {
33604
+ triggerChange({ opacity });
33605
+ }
33606
+ }
33607
+ ),
33608
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
33609
+ BorderStyleOption,
33610
+ {
33611
+ node: firstNode,
33612
+ onChange: (border) => {
33613
+ triggerChange({ border });
33614
+ }
33615
+ }
33616
+ )
33617
+ ] }) }, firstNode.id)
32568
33618
  ] });
32569
33619
  }
32570
33620
  function Colors({
@@ -32670,8 +33720,54 @@ function NavigateToOption({
32670
33720
  )
32671
33721
  ] });
32672
33722
  }
32673
- var panel = "_12rmdgk0";
32674
- const OptionsPanelMemo = /* @__PURE__ */ reactExports.memo(function() {
33723
+ function OpacityOption({
33724
+ node,
33725
+ onOpacityChange
33726
+ }) {
33727
+ let selectedOpacity = node.data.element.style.opacity ?? 100;
33728
+ const [value, setValue] = reactExports.useState(selectedOpacity);
33729
+ return reactExports.useEffect(() => {
33730
+ setValue(selectedOpacity);
33731
+ }, [selectedOpacity]), /* @__PURE__ */ jsxRuntimeExports.jsx(
33732
+ Slider,
33733
+ {
33734
+ mt: "xs",
33735
+ size: "sm",
33736
+ color: "dark",
33737
+ value,
33738
+ onChange: setValue,
33739
+ onChangeEnd: onOpacityChange
33740
+ }
33741
+ );
33742
+ }
33743
+ function BorderStyleOption({
33744
+ node,
33745
+ onChange
33746
+ }) {
33747
+ let selecteBorderStyle = node.data.element.style.border ?? "dashed";
33748
+ const [value, setValue] = reactExports.useState(selecteBorderStyle);
33749
+ return reactExports.useEffect(() => {
33750
+ setValue(selecteBorderStyle);
33751
+ }, [selecteBorderStyle]), /* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { mt: "md", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
33752
+ SegmentedControl,
33753
+ {
33754
+ size: "xs",
33755
+ fullWidth: !0,
33756
+ withItemsBorders: !1,
33757
+ value,
33758
+ onChange: (v2) => {
33759
+ setValue(v2), onChange(v2);
33760
+ },
33761
+ data: [
33762
+ { label: "Solid", value: "solid" },
33763
+ { label: "Dashed", value: "dashed" },
33764
+ { label: "Dotted", value: "dotted" },
33765
+ { label: "None", value: "none" }
33766
+ ]
33767
+ }
33768
+ ) });
33769
+ }
33770
+ function OptionsPanel() {
32675
33771
  const [selectedNodes, setSelectedNodes] = reactExports.useState([]);
32676
33772
  return useOnSelectionChange({
32677
33773
  onChange: ({ nodes }) => {
@@ -32695,7 +33791,7 @@ const OptionsPanelMemo = /* @__PURE__ */ reactExports.memo(function() {
32695
33791
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(Card$1, { shadow: "sm", children: /* @__PURE__ */ jsxRuntimeExports.jsx(NodeOptions, { selectedNodeIds: selectedNodes }) })
32696
33792
  }
32697
33793
  ) });
32698
- }), OptionsPanel2 = OptionsPanelMemo;
33794
+ }
32699
33795
  function deriveEdgePoints(bezierSpline) {
32700
33796
  let [start2, ...bezierPoints] = bezierSpline;
32701
33797
  invariant$1(start2, "start should be defined");
@@ -32850,12 +33946,12 @@ function FitViewOnDiagramChanges() {
32850
33946
  (s2) => s2.viewportChanged,
32851
33947
  setViewportMoved
32852
33948
  ),
32853
- [diagramApi]
33949
+ [diagramApi, setViewportMoved]
32854
33950
  ), useRafEffect(
32855
33951
  () => {
32856
33952
  !isReady || processedChangeId === pendingChangeId || (diagramApi.getState().fitDiagram(), setProcessed(pendingChangeId));
32857
33953
  },
32858
- [isReady, processedChangeId, pendingChangeId]
33954
+ [isReady, processedChangeId, pendingChangeId, diagramApi]
32859
33955
  ), !viewportMoved && isReady ? /* @__PURE__ */ jsxRuntimeExports.jsx(FitViewOnViewportResize, { diagramApi }) : null;
32860
33956
  }
32861
33957
  const selectFitViewFlag = (s2) => s2.fitViewEnabled, FitViewOnDiagramChange = reactExports.memo(() => useDiagramState(selectFitViewFlag) ? /* @__PURE__ */ jsxRuntimeExports.jsx(FitViewOnDiagramChanges, {}) : null);
@@ -32871,13 +33967,19 @@ const isSameNode = (a) => (b2) => a.id === b2.id && a.type === b2.type && Object
32871
33967
  (state) => ({
32872
33968
  viewId: state.view.id,
32873
33969
  nodes: state.view.nodes,
32874
- edges: state.view.edges,
32875
- draggable: state.nodesDraggable,
32876
- selectable: state.nodesSelectable
33970
+ edges: state.view.edges
32877
33971
  }),
32878
33972
  // listener
32879
- ({ viewId, nodes, edges, ...opts }) => {
32880
- const { lastOnNavigate } = diagramStoreApi.getState(), updates = diagramViewToXYFlowData({ nodes, edges }, opts);
33973
+ ({ viewId, nodes, edges }) => {
33974
+ const {
33975
+ lastOnNavigate,
33976
+ nodesDraggable,
33977
+ nodesSelectable,
33978
+ focusedNodeId
33979
+ } = diagramStoreApi.getState(), updates = diagramViewToXYFlowData({ nodes, edges }, {
33980
+ draggable: nodesDraggable,
33981
+ selectable: nodesSelectable || focusedNodeId !== null
33982
+ });
32881
33983
  if (xyflowRef.current.setNodes(
32882
33984
  (prev) => updates.nodes.map((update) => {
32883
33985
  const existing = prev.find(isSameNode(update));
@@ -32980,7 +34082,373 @@ function assignInlineVars(varsOrContract, tokens) {
32980
34082
  writable: !1
32981
34083
  }), styles;
32982
34084
  }
32983
- var container$2 = "yi2p6v0", edgePathBg = "yi2p6v1", fillStrokeCtx = "yi2p6v2", cssEdgePath = "yi2p6v3", varLabelX = "var(--yi2p6v4)", varLabelY = "var(--yi2p6v5)", edgeLabel = "yi2p6v7", edgeLabelBody = "yi2p6v8";
34085
+ function constant(x2) {
34086
+ return function() {
34087
+ return x2;
34088
+ };
34089
+ }
34090
+ const epsilon$1 = 1e-12, pi = Math.PI, tau = 2 * pi, epsilon = 1e-6, tauEpsilon = tau - epsilon;
34091
+ function append(strings) {
34092
+ this._ += strings[0];
34093
+ for (let i2 = 1, n2 = strings.length; i2 < n2; ++i2)
34094
+ this._ += arguments[i2] + strings[i2];
34095
+ }
34096
+ function appendRound(digits) {
34097
+ let d2 = Math.floor(digits);
34098
+ if (!(d2 >= 0))
34099
+ throw new Error(`invalid digits: ${digits}`);
34100
+ if (d2 > 15)
34101
+ return append;
34102
+ const k2 = 10 ** d2;
34103
+ return function(strings) {
34104
+ this._ += strings[0];
34105
+ for (let i2 = 1, n2 = strings.length; i2 < n2; ++i2)
34106
+ this._ += Math.round(arguments[i2] * k2) / k2 + strings[i2];
34107
+ };
34108
+ }
34109
+ class Path {
34110
+ constructor(digits) {
34111
+ this._x0 = this._y0 = // start of current subpath
34112
+ this._x1 = this._y1 = null, this._ = "", this._append = digits == null ? append : appendRound(digits);
34113
+ }
34114
+ moveTo(x2, y2) {
34115
+ this._append`M${this._x0 = this._x1 = +x2},${this._y0 = this._y1 = +y2}`;
34116
+ }
34117
+ closePath() {
34118
+ this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
34119
+ }
34120
+ lineTo(x2, y2) {
34121
+ this._append`L${this._x1 = +x2},${this._y1 = +y2}`;
34122
+ }
34123
+ quadraticCurveTo(x1, y1, x2, y2) {
34124
+ this._append`Q${+x1},${+y1},${this._x1 = +x2},${this._y1 = +y2}`;
34125
+ }
34126
+ bezierCurveTo(x1, y1, x2, y2, x3, y3) {
34127
+ this._append`C${+x1},${+y1},${+x2},${+y2},${this._x1 = +x3},${this._y1 = +y3}`;
34128
+ }
34129
+ arcTo(x1, y1, x2, y2, r2) {
34130
+ if (x1 = +x1, y1 = +y1, x2 = +x2, y2 = +y2, r2 = +r2, r2 < 0)
34131
+ throw new Error(`negative radius: ${r2}`);
34132
+ let x0 = this._x1, y0 = this._y1, x21 = x2 - x1, y21 = y2 - y1, x01 = x0 - x1, y01 = y0 - y1, l01_2 = x01 * x01 + y01 * y01;
34133
+ if (this._x1 === null)
34134
+ this._append`M${this._x1 = x1},${this._y1 = y1}`;
34135
+ else if (l01_2 > epsilon)
34136
+ if (!(Math.abs(y01 * x21 - y21 * x01) > epsilon) || !r2)
34137
+ this._append`L${this._x1 = x1},${this._y1 = y1}`;
34138
+ else {
34139
+ let x20 = x2 - x0, y20 = y2 - y0, l21_2 = x21 * x21 + y21 * y21, l20_2 = x20 * x20 + y20 * y20, l21 = Math.sqrt(l21_2), l01 = Math.sqrt(l01_2), l2 = r2 * Math.tan((pi - Math.acos((l21_2 + l01_2 - l20_2) / (2 * l21 * l01))) / 2), t01 = l2 / l01, t21 = l2 / l21;
34140
+ Math.abs(t01 - 1) > epsilon && this._append`L${x1 + t01 * x01},${y1 + t01 * y01}`, this._append`A${r2},${r2},0,0,${+(y01 * x20 > x01 * y20)},${this._x1 = x1 + t21 * x21},${this._y1 = y1 + t21 * y21}`;
34141
+ }
34142
+ }
34143
+ arc(x2, y2, r2, a0, a1, ccw) {
34144
+ if (x2 = +x2, y2 = +y2, r2 = +r2, ccw = !!ccw, r2 < 0)
34145
+ throw new Error(`negative radius: ${r2}`);
34146
+ let dx = r2 * Math.cos(a0), dy = r2 * Math.sin(a0), x0 = x2 + dx, y0 = y2 + dy, cw = 1 ^ ccw, da2 = ccw ? a0 - a1 : a1 - a0;
34147
+ this._x1 === null ? this._append`M${x0},${y0}` : (Math.abs(this._x1 - x0) > epsilon || Math.abs(this._y1 - y0) > epsilon) && this._append`L${x0},${y0}`, r2 && (da2 < 0 && (da2 = da2 % tau + tau), da2 > tauEpsilon ? this._append`A${r2},${r2},0,1,${cw},${x2 - dx},${y2 - dy}A${r2},${r2},0,1,${cw},${this._x1 = x0},${this._y1 = y0}` : da2 > epsilon && this._append`A${r2},${r2},0,${+(da2 >= pi)},${cw},${this._x1 = x2 + r2 * Math.cos(a1)},${this._y1 = y2 + r2 * Math.sin(a1)}`);
34148
+ }
34149
+ rect(x2, y2, w2, h2) {
34150
+ this._append`M${this._x0 = this._x1 = +x2},${this._y0 = this._y1 = +y2}h${w2 = +w2}v${+h2}h${-w2}Z`;
34151
+ }
34152
+ toString() {
34153
+ return this._;
34154
+ }
34155
+ }
34156
+ function withPath(shape) {
34157
+ let digits = 3;
34158
+ return shape.digits = function(_2) {
34159
+ if (!arguments.length)
34160
+ return digits;
34161
+ if (_2 == null)
34162
+ digits = null;
34163
+ else {
34164
+ const d2 = Math.floor(_2);
34165
+ if (!(d2 >= 0))
34166
+ throw new RangeError(`invalid digits: ${_2}`);
34167
+ digits = d2;
34168
+ }
34169
+ return shape;
34170
+ }, () => new Path(digits);
34171
+ }
34172
+ function array(x2) {
34173
+ return typeof x2 == "object" && "length" in x2 ? x2 : Array.from(x2);
34174
+ }
34175
+ function Linear(context) {
34176
+ this._context = context;
34177
+ }
34178
+ Linear.prototype = {
34179
+ areaStart: function() {
34180
+ this._line = 0;
34181
+ },
34182
+ areaEnd: function() {
34183
+ this._line = NaN;
34184
+ },
34185
+ lineStart: function() {
34186
+ this._point = 0;
34187
+ },
34188
+ lineEnd: function() {
34189
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
34190
+ },
34191
+ point: function(x2, y2) {
34192
+ switch (x2 = +x2, y2 = +y2, this._point) {
34193
+ case 0:
34194
+ this._point = 1, this._line ? this._context.lineTo(x2, y2) : this._context.moveTo(x2, y2);
34195
+ break;
34196
+ case 1:
34197
+ this._point = 2;
34198
+ default:
34199
+ this._context.lineTo(x2, y2);
34200
+ break;
34201
+ }
34202
+ }
34203
+ };
34204
+ function curveLinear(context) {
34205
+ return new Linear(context);
34206
+ }
34207
+ function x$1(p2) {
34208
+ return p2[0];
34209
+ }
34210
+ function y$1(p2) {
34211
+ return p2[1];
34212
+ }
34213
+ function d3line(x2, y2) {
34214
+ var defined = constant(!0), context = null, curve2 = curveLinear, output = null, path = withPath(line);
34215
+ x2 = typeof x2 == "function" ? x2 : x2 === void 0 ? x$1 : constant(x2), y2 = typeof y2 == "function" ? y2 : y2 === void 0 ? y$1 : constant(y2);
34216
+ function line(data) {
34217
+ var i2, n2 = (data = array(data)).length, d2, defined0 = !1, buffer;
34218
+ for (context == null && (output = curve2(buffer = path())), i2 = 0; i2 <= n2; ++i2)
34219
+ !(i2 < n2 && defined(d2 = data[i2], i2, data)) === defined0 && ((defined0 = !defined0) ? output.lineStart() : output.lineEnd()), defined0 && output.point(+x2(d2, i2, data), +y2(d2, i2, data));
34220
+ if (buffer)
34221
+ return output = null, buffer + "" || null;
34222
+ }
34223
+ return line.x = function(_2) {
34224
+ return arguments.length ? (x2 = typeof _2 == "function" ? _2 : constant(+_2), line) : x2;
34225
+ }, line.y = function(_2) {
34226
+ return arguments.length ? (y2 = typeof _2 == "function" ? _2 : constant(+_2), line) : y2;
34227
+ }, line.defined = function(_2) {
34228
+ return arguments.length ? (defined = typeof _2 == "function" ? _2 : constant(!!_2), line) : defined;
34229
+ }, line.curve = function(_2) {
34230
+ return arguments.length ? (curve2 = _2, context != null && (output = curve2(context)), line) : curve2;
34231
+ }, line.context = function(_2) {
34232
+ return arguments.length ? (_2 == null ? context = output = null : output = curve2(context = _2), line) : context;
34233
+ }, line;
34234
+ }
34235
+ function point$1(that, x2, y2) {
34236
+ that._context.bezierCurveTo(
34237
+ that._x1 + that._k * (that._x2 - that._x0),
34238
+ that._y1 + that._k * (that._y2 - that._y0),
34239
+ that._x2 + that._k * (that._x1 - x2),
34240
+ that._y2 + that._k * (that._y1 - y2),
34241
+ that._x2,
34242
+ that._y2
34243
+ );
34244
+ }
34245
+ function Cardinal(context, tension) {
34246
+ this._context = context, this._k = (1 - tension) / 6;
34247
+ }
34248
+ Cardinal.prototype = {
34249
+ areaStart: function() {
34250
+ this._line = 0;
34251
+ },
34252
+ areaEnd: function() {
34253
+ this._line = NaN;
34254
+ },
34255
+ lineStart: function() {
34256
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
34257
+ },
34258
+ lineEnd: function() {
34259
+ switch (this._point) {
34260
+ case 2:
34261
+ this._context.lineTo(this._x2, this._y2);
34262
+ break;
34263
+ case 3:
34264
+ point$1(this, this._x1, this._y1);
34265
+ break;
34266
+ }
34267
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
34268
+ },
34269
+ point: function(x2, y2) {
34270
+ switch (x2 = +x2, y2 = +y2, this._point) {
34271
+ case 0:
34272
+ this._point = 1, this._line ? this._context.lineTo(x2, y2) : this._context.moveTo(x2, y2);
34273
+ break;
34274
+ case 1:
34275
+ this._point = 2, this._x1 = x2, this._y1 = y2;
34276
+ break;
34277
+ case 2:
34278
+ this._point = 3;
34279
+ default:
34280
+ point$1(this, x2, y2);
34281
+ break;
34282
+ }
34283
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = x2, this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2;
34284
+ }
34285
+ };
34286
+ (function custom(tension) {
34287
+ function cardinal(context) {
34288
+ return new Cardinal(context, tension);
34289
+ }
34290
+ return cardinal.tension = function(tension2) {
34291
+ return custom(+tension2);
34292
+ }, cardinal;
34293
+ })(0);
34294
+ function CardinalOpen(context, tension) {
34295
+ this._context = context, this._k = (1 - tension) / 6;
34296
+ }
34297
+ CardinalOpen.prototype = {
34298
+ areaStart: function() {
34299
+ this._line = 0;
34300
+ },
34301
+ areaEnd: function() {
34302
+ this._line = NaN;
34303
+ },
34304
+ lineStart: function() {
34305
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
34306
+ },
34307
+ lineEnd: function() {
34308
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
34309
+ },
34310
+ point: function(x2, y2) {
34311
+ switch (x2 = +x2, y2 = +y2, this._point) {
34312
+ case 0:
34313
+ this._point = 1;
34314
+ break;
34315
+ case 1:
34316
+ this._point = 2;
34317
+ break;
34318
+ case 2:
34319
+ this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
34320
+ break;
34321
+ case 3:
34322
+ this._point = 4;
34323
+ default:
34324
+ point$1(this, x2, y2);
34325
+ break;
34326
+ }
34327
+ this._x0 = this._x1, this._x1 = this._x2, this._x2 = x2, this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2;
34328
+ }
34329
+ };
34330
+ (function custom2(tension) {
34331
+ function cardinal(context) {
34332
+ return new CardinalOpen(context, tension);
34333
+ }
34334
+ return cardinal.tension = function(tension2) {
34335
+ return custom2(+tension2);
34336
+ }, cardinal;
34337
+ })(0);
34338
+ function point(that, x2, y2) {
34339
+ var x1 = that._x1, y1 = that._y1, x22 = that._x2, y22 = that._y2;
34340
+ if (that._l01_a > epsilon$1) {
34341
+ var a = 2 * that._l01_2a + 3 * that._l01_a * that._l12_a + that._l12_2a, n2 = 3 * that._l01_a * (that._l01_a + that._l12_a);
34342
+ x1 = (x1 * a - that._x0 * that._l12_2a + that._x2 * that._l01_2a) / n2, y1 = (y1 * a - that._y0 * that._l12_2a + that._y2 * that._l01_2a) / n2;
34343
+ }
34344
+ if (that._l23_a > epsilon$1) {
34345
+ var b2 = 2 * that._l23_2a + 3 * that._l23_a * that._l12_a + that._l12_2a, m2 = 3 * that._l23_a * (that._l23_a + that._l12_a);
34346
+ x22 = (x22 * b2 + that._x1 * that._l23_2a - x2 * that._l12_2a) / m2, y22 = (y22 * b2 + that._y1 * that._l23_2a - y2 * that._l12_2a) / m2;
34347
+ }
34348
+ that._context.bezierCurveTo(x1, y1, x22, y22, that._x2, that._y2);
34349
+ }
34350
+ function CatmullRom(context, alpha2) {
34351
+ this._context = context, this._alpha = alpha2;
34352
+ }
34353
+ CatmullRom.prototype = {
34354
+ areaStart: function() {
34355
+ this._line = 0;
34356
+ },
34357
+ areaEnd: function() {
34358
+ this._line = NaN;
34359
+ },
34360
+ lineStart: function() {
34361
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
34362
+ },
34363
+ lineEnd: function() {
34364
+ switch (this._point) {
34365
+ case 2:
34366
+ this._context.lineTo(this._x2, this._y2);
34367
+ break;
34368
+ case 3:
34369
+ this.point(this._x2, this._y2);
34370
+ break;
34371
+ }
34372
+ (this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
34373
+ },
34374
+ point: function(x2, y2) {
34375
+ if (x2 = +x2, y2 = +y2, this._point) {
34376
+ var x23 = this._x2 - x2, y23 = this._y2 - y2;
34377
+ this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
34378
+ }
34379
+ switch (this._point) {
34380
+ case 0:
34381
+ this._point = 1, this._line ? this._context.lineTo(x2, y2) : this._context.moveTo(x2, y2);
34382
+ break;
34383
+ case 1:
34384
+ this._point = 2;
34385
+ break;
34386
+ case 2:
34387
+ this._point = 3;
34388
+ default:
34389
+ point(this, x2, y2);
34390
+ break;
34391
+ }
34392
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = x2, this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2;
34393
+ }
34394
+ };
34395
+ (function custom3(alpha2) {
34396
+ function catmullRom(context) {
34397
+ return alpha2 ? new CatmullRom(context, alpha2) : new Cardinal(context, 0);
34398
+ }
34399
+ return catmullRom.alpha = function(alpha3) {
34400
+ return custom3(+alpha3);
34401
+ }, catmullRom;
34402
+ })(0.5);
34403
+ function CatmullRomOpen(context, alpha2) {
34404
+ this._context = context, this._alpha = alpha2;
34405
+ }
34406
+ CatmullRomOpen.prototype = {
34407
+ areaStart: function() {
34408
+ this._line = 0;
34409
+ },
34410
+ areaEnd: function() {
34411
+ this._line = NaN;
34412
+ },
34413
+ lineStart: function() {
34414
+ this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
34415
+ },
34416
+ lineEnd: function() {
34417
+ (this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
34418
+ },
34419
+ point: function(x2, y2) {
34420
+ if (x2 = +x2, y2 = +y2, this._point) {
34421
+ var x23 = this._x2 - x2, y23 = this._y2 - y2;
34422
+ this._l23_a = Math.sqrt(this._l23_2a = Math.pow(x23 * x23 + y23 * y23, this._alpha));
34423
+ }
34424
+ switch (this._point) {
34425
+ case 0:
34426
+ this._point = 1;
34427
+ break;
34428
+ case 1:
34429
+ this._point = 2;
34430
+ break;
34431
+ case 2:
34432
+ this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
34433
+ break;
34434
+ case 3:
34435
+ this._point = 4;
34436
+ default:
34437
+ point(this, x2, y2);
34438
+ break;
34439
+ }
34440
+ this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = x2, this._y0 = this._y1, this._y1 = this._y2, this._y2 = y2;
34441
+ }
34442
+ };
34443
+ const curveCatmullRomOpen = function custom4(alpha2) {
34444
+ function catmullRom(context) {
34445
+ return alpha2 ? new CatmullRomOpen(context, alpha2) : new CardinalOpen(context, 0);
34446
+ }
34447
+ return catmullRom.alpha = function(alpha3) {
34448
+ return custom4(+alpha3);
34449
+ }, catmullRom;
34450
+ }(0.5);
34451
+ var container$2 = "yi2p6v1", edgePathBg = "yi2p6v2", fillStrokeCtx = "yi2p6v3", cssEdgePath = "yi2p6v6", varLabelX = "var(--yi2p6v7)", varLabelY = "var(--yi2p6v8)", edgeLabel = "yi2p6va", edgeLabelBody = "yi2p6vb";
32984
34452
  function getNodeIntersection(intersectionNode, targetNode) {
32985
34453
  const {
32986
34454
  width: intersectionNodeWidth,
@@ -33042,27 +34510,22 @@ function bezierPath(bezierSpline) {
33042
34510
  }
33043
34511
  return invariant$1(points.length === 0, "all points should be consumed"), path;
33044
34512
  }
33045
- const isSamePoint = (a, b2) => Math.abs(a - b2) < 2.1, isSamePosition = (a, [bx, by]) => isSamePoint(a.x, bx) && isSamePoint(a.y, by), isEqualProps = (prev, next) => prev.id === next.id && prev.source === next.source && prev.target === next.target && isSamePoint(prev.sourceX, next.sourceX) && isSamePoint(prev.sourceY, next.sourceY) && isSamePoint(prev.targetX, next.targetX) && isSamePoint(prev.targetY, next.targetY) && deepEqual(prev.data, next.data), RelationshipEdge = /* @__PURE__ */ reactExports.memo(function({
34513
+ const isSamePoint = (a, b2) => Math.abs(a - b2) < 2.1, isSamePosition = (a, [bx, by]) => isSamePoint(a.x, bx) && isSamePoint(a.y, by), isEqualProps = (prev, next) => prev.id === next.id && prev.source === next.source && prev.target === next.target && deepEqual(prev.selected ?? !1, next.selected ?? !1) && isSamePoint(prev.sourceX, next.sourceX) && isSamePoint(prev.sourceY, next.sourceY) && isSamePoint(prev.targetX, next.targetX) && isSamePoint(prev.targetY, next.targetY) && deepEqual(prev.data, next.data), curve = d3line().curve(curveCatmullRomOpen.alpha(1)), RelationshipEdge = /* @__PURE__ */ reactExports.memo(function({
33046
34514
  id: id2,
33047
34515
  data,
33048
34516
  selected: _selected,
33049
- markerEnd: _markerEnd,
33050
34517
  style: style2,
33051
34518
  source,
33052
34519
  target,
33053
34520
  interactionWidth
33054
34521
  }) {
33055
- const { nodeLookup, edgeLookup } = useXYStoreApi().getState(), sourceNode = nonNullable(nodeLookup.get(source), `source node ${source} not found`), targetNode = nonNullable(nodeLookup.get(target), `target node ${target} not found`), isNotModified = isSamePosition(sourceNode.internals.positionAbsolute, sourceNode.data.element.position) && isSamePosition(targetNode.internals.positionAbsolute, targetNode.data.element.position);
33056
- invariant$1(data, "data is required");
33057
- const {
33058
- edge
33059
- } = data, color2 = edge.color ?? "gray", isHovered = useDiagramState((s2) => s2.hoveredEdgeId === id2), line = edge.line ?? "dashed", isDotted = line === "dotted", isDashed = isDotted || line === "dashed";
34522
+ const { nodeLookup, edgeLookup } = useXYStoreApi().getState(), sourceNode = nonNullable(nodeLookup.get(source), `source node ${source} not found`), targetNode = nonNullable(nodeLookup.get(target), `target node ${target} not found`), isNotModified = isSamePosition(sourceNode.internals.positionAbsolute, sourceNode.data.element.position) && isSamePosition(targetNode.internals.positionAbsolute, targetNode.data.element.position), { edge: diagramEdge, controlPoints } = data, color2 = diagramEdge.color ?? "gray", isHovered = useDiagramState((s2) => s2.hoveredEdgeId === id2), line = diagramEdge.line ?? "dashed", isDotted = line === "dotted", isDashed = isDotted || line === "dashed";
33060
34523
  let strokeDasharray;
33061
34524
  isDotted ? strokeDasharray = "1,8" : isDashed && (strokeDasharray = "8,10");
33062
34525
  const marker = `url(#arrow-${id2})`;
33063
34526
  let edgePath, labelX, labelY;
33064
34527
  if (isNotModified)
33065
- edgePath = bezierPath(edge.points), labelX = data.label?.bbox.x ?? 0, labelY = data.label?.bbox.y ?? 0;
34528
+ edgePath = bezierPath(diagramEdge.points), labelX = data.label?.bbox.x ?? 0, labelY = data.label?.bbox.y ?? 0;
33066
34529
  else {
33067
34530
  const { sx, sy, tx, ty, sourcePos, targetPos } = getEdgeParams(sourceNode, targetNode), [_edgePath, _labelX, _labelY] = getBezierPath({
33068
34531
  sourceX: sx,
@@ -33073,6 +34536,14 @@ const isSamePoint = (a, b2) => Math.abs(a - b2) < 2.1, isSamePosition = (a, [bx,
33073
34536
  targetY: ty
33074
34537
  });
33075
34538
  edgePath = _edgePath, labelX = _labelX, labelY = _labelY;
34539
+ const sourceCenterPos = getNodePositionWithOrigin(sourceNode, [-0.5, -0.5]), targetCenterPos = getNodePositionWithOrigin(targetNode, [-0.5, -0.5]);
34540
+ edgePath = curve([
34541
+ [sourceCenterPos.positionAbsolute.x, sourceCenterPos.positionAbsolute.y],
34542
+ [sx, sy],
34543
+ ...controlPoints,
34544
+ [tx, ty],
34545
+ [targetCenterPos.positionAbsolute.x, targetCenterPos.positionAbsolute.y]
34546
+ ]);
33076
34547
  }
33077
34548
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("g", { className: clsx(container$2), "data-likec4-color": color2, "data-edge-hovered": isHovered, children: [
33078
34549
  /* @__PURE__ */ jsxRuntimeExports.jsx("g", { className: clsx(fillStrokeCtx), children: /* @__PURE__ */ jsxRuntimeExports.jsx("defs", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
@@ -33096,8 +34567,8 @@ const isSamePoint = (a, b2) => Math.abs(a - b2) < 2.1, isSamePosition = (a, [bx,
33096
34567
  edgePath,
33097
34568
  interactionWidth: interactionWidth ?? 10,
33098
34569
  strokeDasharray,
33099
- markerStart: edge.tailArrow ? marker : void 0,
33100
- markerEnd: edge.headArrow ? marker : void 0,
34570
+ markerStart: diagramEdge.tailArrow ? marker : void 0,
34571
+ markerEnd: diagramEdge.headArrow ? marker : void 0,
33101
34572
  style: style2
33102
34573
  }
33103
34574
  ),
@@ -33121,7 +34592,7 @@ const isSamePoint = (a, b2) => Math.abs(a - b2) < 2.1, isSamePosition = (a, [bx,
33121
34592
  }
33122
34593
  ) })
33123
34594
  ] });
33124
- }, isEqualProps), RelationshipPath = reactExports.memo(({
34595
+ }, isEqualProps), RelationshipPath = ({
33125
34596
  edgePath,
33126
34597
  interactionWidth,
33127
34598
  strokeDasharray,
@@ -33160,7 +34631,7 @@ const isSamePoint = (a, b2) => Math.abs(a - b2) < 2.1, isSamePosition = (a, [bx,
33160
34631
  strokeWidth: interactionWidth
33161
34632
  }
33162
34633
  )
33163
- ] })), Link = reactExports.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
34634
+ ] }), Link = reactExports.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntimeExports.jsx(
33164
34635
  "svg",
33165
34636
  {
33166
34637
  ref,
@@ -33687,6 +35158,36 @@ function ElementNode({
33687
35158
  }
33688
35159
  );
33689
35160
  }
35161
+ function SelectEdgesOnNodeFocus() {
35162
+ const focusedNodeId = useDiagramState((s2) => s2.focusedNodeId), xyflowApi = useXYStoreApi();
35163
+ return useUpdateEffect(() => {
35164
+ const edgeChanges = [], nodeChanges = [], { edges, nodes, triggerNodeChanges, triggerEdgeChanges } = xyflowApi.getState();
35165
+ if (focusedNodeId) {
35166
+ for (const edge of edges)
35167
+ edge.source === focusedNodeId || edge.target === focusedNodeId ? edgeChanges.push({
35168
+ id: edge.id,
35169
+ type: "select",
35170
+ selected: !0
35171
+ }) : edge.selected && edgeChanges.push({
35172
+ id: edge.id,
35173
+ type: "select",
35174
+ selected: !1
35175
+ });
35176
+ for (const node of nodes)
35177
+ node.selected && node.id !== focusedNodeId && nodeChanges.push({
35178
+ id: node.id,
35179
+ type: "select",
35180
+ selected: !1
35181
+ });
35182
+ nodeChanges.push({
35183
+ id: focusedNodeId,
35184
+ type: "select",
35185
+ selected: !0
35186
+ }), edgeChanges.length > 0 && triggerEdgeChanges(edgeChanges), nodeChanges.length > 0 && triggerNodeChanges(nodeChanges);
35187
+ } else
35188
+ xyflowApi.getState().resetSelectedElements();
35189
+ }, [focusedNodeId]), null;
35190
+ }
33690
35191
  function literalToEnum(value) {
33691
35192
  switch (value) {
33692
35193
  case "dots":
@@ -33704,14 +35205,16 @@ const XYFlowBackground = reactExports.memo(({ background }) => {
33704
35205
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Background, { variant: literalToEnum(background) });
33705
35206
  const { variant, ...rest } = background;
33706
35207
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Background, { variant: literalToEnum(variant), ...rest });
33707
- }, deepEqual);
35208
+ }, deepEqual), viewportDomNode = (state) => state.domNode?.querySelector(".react-flow__viewport") ?? null;
33708
35209
  function useXYFlowEvents() {
33709
- const diagramApi = useDiagramStoreApi(), xyflowApi = useXYStoreApi(), dblclickTimeout = reactExports.useRef(), dbclickGuarg = () => dblclickTimeout.current !== void 0 ? !0 : (dblclickTimeout.current = window.setTimeout(() => {
35210
+ const diagramApi = useDiagramStoreApi(), xyflowApi = useXYStoreApi(), dblclickTimeout = reactExports.useRef(), viewportRef = reactExports.useRef(viewportDomNode(xyflowApi.getState())), dbclickGuarg = () => dblclickTimeout.current !== void 0 ? !0 : (dblclickTimeout.current = window.setTimeout(() => {
33710
35211
  dblclickTimeout.current = void 0;
33711
- }, 250), !1);
33712
- return reactExports.useMemo(() => ({
35212
+ }, 250), !1), transformRef = reactExports.useRef(""), cbRef = reactExports.useRef();
35213
+ return reactExports.useEffect(() => xyflowApi.subscribe((state, prev) => {
35214
+ (state.domNode !== prev.domNode || state.domNode && !viewportRef.current) && (viewportRef.current = viewportDomNode(state));
35215
+ }), [xyflowApi]), reactExports.useMemo(() => ({
33713
35216
  onDoubleClick: (event) => {
33714
- diagramApi.getState().setLastClickedNode(null), diagramApi.getState().setLastClickedEdge(null);
35217
+ diagramApi.getState().resetLastClicked();
33715
35218
  const diagramState = diagramApi.getState();
33716
35219
  if (diagramState.onCanvasDblClick) {
33717
35220
  diagramState.onCanvasDblClick(event);
@@ -33725,9 +35228,8 @@ function useXYFlowEvents() {
33725
35228
  onPaneClick: (event) => {
33726
35229
  if (dbclickGuarg())
33727
35230
  return;
33728
- diagramApi.getState().setLastClickedNode(null), diagramApi.getState().setLastClickedEdge(null);
33729
- const { focusedNodeId, fitDiagram, onCanvasClick } = diagramApi.getState();
33730
- if (onCanvasClick) {
35231
+ const { focusedNodeId, fitDiagram, onCanvasClick, resetLastClicked } = diagramApi.getState();
35232
+ if (resetLastClicked(), onCanvasClick) {
33731
35233
  onCanvasClick(event);
33732
35234
  return;
33733
35235
  }
@@ -33741,7 +35243,7 @@ function useXYFlowEvents() {
33741
35243
  });
33742
35244
  },
33743
35245
  onPaneContextMenu: (event) => {
33744
- diagramApi.getState().setLastClickedNode(null), diagramApi.getState().setLastClickedEdge(null), diagramApi.getState().onCanvasContextMenu?.(event);
35246
+ diagramApi.getState().resetLastClicked(), diagramApi.getState().onCanvasContextMenu?.(event);
33745
35247
  },
33746
35248
  onEdgeContextMenu: (event, xyedge) => {
33747
35249
  diagramApi.getState().setLastClickedEdge(xyedge.id), diagramApi.getState().onEdgeContextMenu?.({
@@ -33764,15 +35266,25 @@ function useXYFlowEvents() {
33764
35266
  focusedNodeId && focusedNodeId !== xynode.id && (fitDiagram(xynode), event.stopPropagation());
33765
35267
  },
33766
35268
  onNodeDoubleClick: (event, xynode) => {
33767
- const { zoomable, fitDiagram, onNodeClick } = diagramApi.getState();
33768
- onNodeClick || zoomable && (fitDiagram(xynode), event.stopPropagation());
35269
+ diagramApi.getState().setLastClickedNode(xynode.id);
35270
+ const { zoomable, fitViewEnabled, fitDiagram, onNodeClick } = diagramApi.getState();
35271
+ onNodeClick || zoomable && fitViewEnabled && (fitDiagram(xynode), event.stopPropagation());
33769
35272
  },
33770
35273
  onEdgeClick: (event, xyedge) => {
33771
- diagramApi.getState().setLastClickedEdge(xyedge.id), diagramApi.getState().onEdgeClick?.({
33772
- relation: xyedge.data.edge,
33773
- xyedge,
33774
- event
33775
- });
35274
+ diagramApi.getState().setLastClickedEdge(xyedge.id);
35275
+ const { focusedNodeId, fitDiagram, onEdgeClick, xyflow } = diagramApi.getState();
35276
+ if (onEdgeClick) {
35277
+ onEdgeClick({
35278
+ relation: xyedge.data.edge,
35279
+ xyedge,
35280
+ event
35281
+ });
35282
+ return;
35283
+ }
35284
+ if (focusedNodeId && (focusedNodeId === xyedge.source || focusedNodeId === xyedge.target)) {
35285
+ const nextFocus = focusedNodeId === xyedge.source ? xyedge.target : xyedge.source;
35286
+ fitDiagram(xyflow.getNode(nextFocus)), event.stopPropagation();
35287
+ }
33776
35288
  },
33777
35289
  onMoveEnd: (event, _viewport) => {
33778
35290
  const viewportChanged = !!event;
@@ -33789,6 +35301,19 @@ function useXYFlowEvents() {
33789
35301
  },
33790
35302
  onEdgeMouseLeave: (event, xyedge) => {
33791
35303
  diagramApi.getState().setHoveredEdge(null);
35304
+ },
35305
+ /**
35306
+ * WOKAROUND:
35307
+ * Viewport transform is not rounded to integers which results in blurry nodes on some resolution
35308
+ * https://github.com/xyflow/xyflow/issues/3282
35309
+ */
35310
+ onViewportChange: ({ x: x2, y: y2, zoom: zoom2 }) => {
35311
+ const scale2 = zoom2 != 1 ? zoom2.toFixed(6) : "1";
35312
+ transformRef.current = `translate(${Math.round(x2)}px, ${Math.round(y2)}px) scale(${scale2})`, cbRef.current ??= requestIdleCallback(() => {
35313
+ cbRef.current = void 0, viewportRef.current && viewportRef.current.style.transform !== transformRef.current && (viewportRef.current.style.transform = transformRef.current);
35314
+ }, {
35315
+ timeout: 1e3
35316
+ });
33792
35317
  }
33793
35318
  }), [diagramApi, xyflowApi]);
33794
35319
  }
@@ -33798,7 +35323,7 @@ const nodeTypes = {
33798
35323
  }, edgeTypes = {
33799
35324
  relationship: RelationshipEdge
33800
35325
  }, selector = (s2) => ({
33801
- nodesSelectable: s2.nodesSelectable,
35326
+ nodesSelectable: s2.nodesSelectable || s2.focusedNodeId !== null,
33802
35327
  nodesDraggable: s2.nodesDraggable,
33803
35328
  fitView: s2.fitViewEnabled,
33804
35329
  fitViewPadding: s2.fitViewPadding,
@@ -33884,6 +35409,7 @@ function XYFlowWrapper({
33884
35409
  onNodeClick: handlers.onNodeClick,
33885
35410
  onNodeDoubleClick: handlers.onNodeDoubleClick,
33886
35411
  onEdgeClick: handlers.onEdgeClick,
35412
+ onViewportChange: handlers.onViewportChange,
33887
35413
  onInit: () => {
33888
35414
  diagramApi.setState({ initialized: !0 }, !1, "initialized");
33889
35415
  },
@@ -33898,7 +35424,8 @@ function XYFlowWrapper({
33898
35424
  },
33899
35425
  children: [
33900
35426
  isBgWithPattern && /* @__PURE__ */ jsxRuntimeExports.jsx(XYFlowBackground, { background }),
33901
- controls && /* @__PURE__ */ jsxRuntimeExports.jsx(Controls, {}),
35427
+ controls && /* @__PURE__ */ jsxRuntimeExports.jsx(Controls, { position: "bottom-right" }),
35428
+ zoomable && !editor.hasOnNodeClick && /* @__PURE__ */ jsxRuntimeExports.jsx(SelectEdgesOnNodeFocus, {}),
33902
35429
  children2
33903
35430
  ]
33904
35431
  }
@@ -33918,6 +35445,7 @@ function LikeC4Diagram({
33918
35445
  background = "dots",
33919
35446
  controls = !1,
33920
35447
  showElementLinks = !0,
35448
+ showDiagramTitle = !0,
33921
35449
  initialWidth,
33922
35450
  initialHeight,
33923
35451
  keepAspectRatio = !1,
@@ -33978,7 +35506,7 @@ function LikeC4Diagram({
33978
35506
  enabled: keepAspectRatio,
33979
35507
  width: view.width,
33980
35508
  height: view.height,
33981
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
35509
+ children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
33982
35510
  XYFlow,
33983
35511
  {
33984
35512
  className: clsx(
@@ -33992,7 +35520,10 @@ function LikeC4Diagram({
33992
35520
  controls,
33993
35521
  defaultNodes: initialRef.current.defaultNodes,
33994
35522
  defaultEdges: initialRef.current.defaultEdges,
33995
- children: readonly !== !0 && /* @__PURE__ */ jsxRuntimeExports.jsx(OptionsPanel2, {})
35523
+ children: [
35524
+ readonly !== !0 && /* @__PURE__ */ jsxRuntimeExports.jsx(OptionsPanel, {}),
35525
+ showDiagramTitle === !0 && /* @__PURE__ */ jsxRuntimeExports.jsx(DiagramTitlePanel, {})
35526
+ ]
33996
35527
  }
33997
35528
  )
33998
35529
  }
@@ -34026,6 +35557,7 @@ function StaticLikeC4Diagram({
34026
35557
  controls: !1,
34027
35558
  background,
34028
35559
  showElementLinks: !0,
35560
+ showDiagramTitle: !1,
34029
35561
  nodesSelectable: !1,
34030
35562
  nodesDraggable: !1,
34031
35563
  ...rest
@@ -34232,7 +35764,7 @@ function useLikeC4View(id2) {
34232
35764
  keys: [id2]
34233
35765
  })[id2] ?? null;
34234
35766
  }
34235
- var previewBg = "_15b5f732", cssPreviewCardLink = "_1dn84dq0", svgContainer = "_1dn84dq1", cssViewOutlet = "_1dn84dq2", cssCaptureGesturesLayer = "_1dn84dq3", cssExportView = "_1dn84dq4", cssWebcomponentView = "_1dn84dq5", cssWebcomponentIframeContainer = "_1dn84dq6";
35767
+ var previewBg = "_15b5f732", cssPreviewCardLink = "_1dn84dq0", svgContainer = "_1dn84dq1", cssViewOutlet = "_1dn84dq2", cssCaptureGesturesLayer = "_1dn84dq3", cssExportView = "_1dn84dq4", cssExportBox = "_1dn84dq5", cssWebcomponentView = "_1dn84dq6", cssWebcomponentIframeContainer = "_1dn84dq7";
34236
35768
  const $viewGroups = batched($views, (views) => {
34237
35769
  const byPath = groupBy(values(views), (v2) => v2.relativePath ?? "");
34238
35770
  return Object.entries(byPath).map(([path, views2]) => ({
@@ -36082,7 +37614,11 @@ const Route$3 = createFileRoute("/export/$viewId")({
36082
37614
  });
36083
37615
  function ExportPage() {
36084
37616
  const { padding = 20 } = Route$3.useSearch(), { viewId } = Route$3.useParams(), diagram = useLikeC4View(viewId);
36085
- if (useTransparentBackground(), !diagram)
37617
+ if (useTransparentBackground(), reactExports.useEffect(() => {
37618
+ document.querySelectorAll(".react-flow__viewport").forEach((el2) => {
37619
+ el2.style.transform = "";
37620
+ });
37621
+ }), !diagram)
36086
37622
  throw notFound();
36087
37623
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
36088
37624
  Box$1,
@@ -36094,21 +37630,34 @@ function ExportPage() {
36094
37630
  padding
36095
37631
  },
36096
37632
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
36097
- LikeC4Diagram,
37633
+ Box$1,
36098
37634
  {
36099
- view: diagram,
36100
- readonly: !0,
36101
- fitView: !1,
36102
- fitViewPadding: 0,
36103
- pannable: !1,
36104
- zoomable: !1,
36105
- controls: !1,
36106
- background: "transparent",
36107
- showElementLinks: !1,
36108
- nodesSelectable: !1,
36109
- nodesDraggable: !1,
36110
- initialWidth: diagram.width,
36111
- initialHeight: diagram.height
37635
+ className: cssExportBox,
37636
+ style: {
37637
+ width: diagram.width,
37638
+ minWidth: diagram.width,
37639
+ height: diagram.height,
37640
+ minHeight: diagram.height
37641
+ },
37642
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(
37643
+ LikeC4Diagram,
37644
+ {
37645
+ view: diagram,
37646
+ readonly: !0,
37647
+ fitView: !1,
37648
+ fitViewPadding: 0,
37649
+ pannable: !1,
37650
+ zoomable: !1,
37651
+ controls: !1,
37652
+ background: "transparent",
37653
+ showElementLinks: !1,
37654
+ showDiagramTitle: !1,
37655
+ nodesSelectable: !1,
37656
+ nodesDraggable: !1,
37657
+ initialWidth: diagram.width,
37658
+ initialHeight: diagram.height
37659
+ }
37660
+ )
36112
37661
  }
36113
37662
  )
36114
37663
  }
@@ -36226,22 +37775,22 @@ const ViewViewIdReactLegacyLazyImport = createFileRoute(
36226
37775
  path: "/react-legacy",
36227
37776
  getParentRoute: () => ViewViewIdRoute
36228
37777
  }).lazy(
36229
- () => import("./view._viewId.react-legacy.lazy-DvQqUilU.js").then((d2) => d2.Route)
37778
+ () => import("./view._viewId.react-legacy.lazy-B2RpQXJ8.js").then((d2) => d2.Route)
36230
37779
  ), ViewViewIdMmdLazyRoute = ViewViewIdMmdLazyImport.update({
36231
37780
  path: "/mmd",
36232
37781
  getParentRoute: () => ViewViewIdRoute
36233
37782
  }).lazy(
36234
- () => import("./view._viewId.mmd.lazy-o20hkhat.js").then((d2) => d2.Route)
37783
+ () => import("./view._viewId.mmd.lazy-DUPqzS9E.js").then((d2) => d2.Route)
36235
37784
  ), ViewViewIdDotLazyRoute = ViewViewIdDotLazyImport.update({
36236
37785
  path: "/dot",
36237
37786
  getParentRoute: () => ViewViewIdRoute
36238
37787
  }).lazy(
36239
- () => import("./view._viewId.dot.lazy-_gnghLVA.js").then((d2) => d2.Route)
37788
+ () => import("./view._viewId.dot.lazy-BpPRcji5.js").then((d2) => d2.Route)
36240
37789
  ), ViewViewIdD2LazyRoute = ViewViewIdD2LazyImport.update({
36241
37790
  path: "/d2",
36242
37791
  getParentRoute: () => ViewViewIdRoute
36243
37792
  }).lazy(
36244
- () => import("./view._viewId.d2.lazy-BX8VfXLS.js").then((d2) => d2.Route)
37793
+ () => import("./view._viewId.d2.lazy-BeClYUla.js").then((d2) => d2.Route)
36245
37794
  ), ViewViewIdEditorRoute = Route2.update({
36246
37795
  path: "/editor",
36247
37796
  getParentRoute: () => ViewViewIdRoute