import { Droppable as Yn, DragDropManager as Un, descriptor as Bn, Sensor as Ae, Plugin as ae, CorePlugin as Gt, Draggable as Hn, configurator as Qe } from "../../../../@dnd-kit_abstract@0.1.21/node_modules/@dnd-kit/abstract/index.js";
import { DOMRectangle as H, generateUniqueId as Ne, isSafari as jn, scheduler as Pe, Listeners as Jt, isElement as Me, isHTMLElement as Qt, getFrameTransform as De, getDocument as Z, scrollIntoViewIfNeeded as Vn, canScroll as qn, detectScrollIntent as Gn, isKeyboardEvent as Ze, isTextInput as Jn, getScrollableAncestors as Tt, ScrollDirection as X, getComputedStyles as Ct, parseTranslate as It, Styles as Qn, supportsPopover as Mt, showPopover as ue, getWindow as Zn, supportsStyle as Lt, getFinalKeyframe as er, animateTransform as tr, getElementFromPoint as nr, isPointerEvent as rr, PositionObserver as ir, getFrameElement as Wt, cloneElement as sr, ProxiedElements as Rt } from "./utilities.js";
import { computed as Ye, deepEqual as or, effects as ar, reactive as V } from "../../../../@dnd-kit_state@0.1.21/node_modules/@dnd-kit/state/dist/index.js";
import { exceedsDistance as Fe, Axes as Zt, Rectangle as zt, Point as lr } from "../../../../@dnd-kit_geometry@0.1.21/node_modules/@dnd-kit/geometry/dist/index.js";
import { defaultCollisionDetection as cr } from "../../../../@dnd-kit_collision@0.1.21/node_modules/@dnd-kit/collision/dist/index.js";
import { untracked as j, effect as ne, signal as en, batch as dr } from "../../../../@preact_signals-core@1.12.0/node_modules/@preact/signals-core/dist/signals-core.module.js";
var ur = Object.create, et = Object.defineProperty, hr = Object.defineProperties, fr = Object.getOwnPropertyDescriptor, pr = Object.getOwnPropertyDescriptors, Oe = Object.getOwnPropertySymbols, tn = Object.prototype.hasOwnProperty, nn = Object.prototype.propertyIsEnumerable, rn = (t, e) => (e = Symbol[t]) ? e : Symbol.for("Symbol." + t), le = (t) => {
  throw TypeError(t);
}, Ue = (t, e, n) => e in t ? et(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, ve = (t, e) => {
  for (var n in e || (e = {}))
    tn.call(e, n) && Ue(t, n, e[n]);
  if (Oe)
    for (var n of Oe(e))
      nn.call(e, n) && Ue(t, n, e[n]);
  return t;
}, tt = (t, e) => hr(t, pr(e)), Ft = (t, e) => et(t, "name", { value: e, configurable: !0 }), sn = (t, e) => {
  var n = {};
  for (var r in t)
    tn.call(t, r) && e.indexOf(r) < 0 && (n[r] = t[r]);
  if (t != null && Oe)
    for (var r of Oe(t))
      e.indexOf(r) < 0 && nn.call(t, r) && (n[r] = t[r]);
  return n;
}, xe = (t) => {
  var e;
  return [, , , ur((e = t?.[rn("metadata")]) != null ? e : null)];
}, on = ["class", "method", "getter", "setter", "accessor", "field", "value", "get", "set"], he = (t) => t !== void 0 && typeof t != "function" ? le("Function expected") : t, mr = (t, e, n, r, i) => ({ kind: on[t], name: e, metadata: r, addInitializer: (s) => n._ ? le("Already initialized") : i.push(he(s || null)) }), ce = (t, e) => Ue(e, rn("metadata"), t[3]), k = (t, e, n, r) => {
  for (var i = 0, s = t[e >> 1], o = s && s.length; i < o; i++) e & 1 ? s[i].call(n) : r = s[i].call(n, r);
  return r;
}, q = (t, e, n, r, i, s) => {
  var o, a, u, f, l, d = e & 7, h = !!(e & 8), c = !!(e & 16), p = d > 3 ? t.length + 1 : d ? h ? 1 : 2 : 0, E = on[d + 5], S = d > 3 && (t[p - 1] = []), M = t[p] || (t[p] = []), x = d && (!c && !h && (i = i.prototype), d < 5 && (d > 3 || !c) && fr(d < 4 ? i : { get [n]() {
    return P(this, s);
  }, set [n](g) {
    return K(this, s, g);
  } }, n));
  d ? c && d < 4 && Ft(s, (d > 2 ? "set " : d > 1 ? "get " : "") + n) : Ft(i, n);
  for (var b = r.length - 1; b >= 0; b--)
    f = mr(d, n, u = {}, t[3], M), d && (f.static = h, f.private = c, l = f.access = { has: c ? (g) => vr(i, g) : (g) => n in g }, d ^ 3 && (l.get = c ? (g) => (d ^ 1 ? P : Be)(g, i, d ^ 4 ? s : x.get) : (g) => g[n]), d > 2 && (l.set = c ? (g, v) => K(g, i, v, d ^ 4 ? s : x.set) : (g, v) => g[n] = v)), a = (0, r[b])(d ? d < 4 ? c ? s : x[E] : d > 4 ? void 0 : { get: x.get, set: x.set } : i, f), u._ = 1, d ^ 4 || a === void 0 ? he(a) && (d > 4 ? S.unshift(a) : d ? c ? s = a : x[E] = a : i = a) : typeof a != "object" || a === null ? le("Object expected") : (he(o = a.get) && (x.get = o), he(o = a.set) && (x.set = o), he(o = a.init) && S.unshift(o));
  return d || ce(t, i), x && et(i, n, x), c ? d ^ 4 ? s : x : i;
}, nt = (t, e, n) => e.has(t) || le("Cannot " + n), vr = (t, e) => Object(e) !== e ? le('Cannot use the "in" operator on this value') : t.has(e), P = (t, e, n) => (nt(t, e, "read from private field"), n ? n.call(t) : e.get(t)), D = (t, e, n) => e.has(t) ? le("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(t) : e.set(t, n), K = (t, e, n, r) => (nt(t, e, "write to private field"), r ? r.call(t, n) : e.set(t, n), n), Be = (t, e, n) => (nt(t, e, "access private method"), n), Xt = {
  role: "button",
  roleDescription: "draggable"
}, gr = "dnd-kit-description", br = "dnd-kit-announcement", yr = {
  draggable: "To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."
}, _r = {
  dragstart({ operation: { source: t } }) {
    if (t)
      return `Picked up draggable item ${t.id}.`;
  },
  dragover({ operation: { source: t, target: e } }) {
    if (!(!t || t.id === e?.id))
      return e ? `Draggable item ${t.id} was moved over droppable target ${e.id}.` : `Draggable item ${t.id} is no longer over a droppable target.`;
  },
  dragend({ operation: { source: t, target: e }, canceled: n }) {
    if (t)
      return n ? `Dragging was cancelled. Draggable item ${t.id} was dropped.` : e ? `Draggable item ${t.id} was dropped over droppable target ${e.id}` : `Draggable item ${t.id} was dropped.`;
  }
};
function xr(t) {
  const e = t.tagName.toLowerCase();
  return ["input", "select", "textarea", "a", "button"].includes(e);
}
function wr(t, e) {
  const n = document.createElement("div");
  return n.id = t, n.style.setProperty("display", "none"), n.textContent = e, n;
}
function Sr(t) {
  const e = document.createElement("div");
  return e.id = t, e.setAttribute("role", "status"), e.setAttribute("aria-live", "polite"), e.setAttribute("aria-atomic", "true"), e.style.setProperty("position", "fixed"), e.style.setProperty("width", "1px"), e.style.setProperty("height", "1px"), e.style.setProperty("margin", "-1px"), e.style.setProperty("border", "0"), e.style.setProperty("padding", "0"), e.style.setProperty("overflow", "hidden"), e.style.setProperty("clip", "rect(0 0 0 0)"), e.style.setProperty("clip-path", "inset(100%)"), e.style.setProperty("white-space", "nowrap"), e;
}
var Er = ["dragover", "dragmove"], kr = class extends ae {
  constructor(t, e) {
    super(t);
    const {
      id: n,
      idPrefix: {
        description: r = gr,
        announcement: i = br
      } = {},
      announcements: s = _r,
      screenReaderInstructions: o = yr,
      debounce: a = 500
    } = e ?? {}, u = n ? `${r}-${n}` : Ne(r), f = n ? `${i}-${n}` : Ne(i);
    let l, d, h, c;
    const p = (v = c) => {
      !h || !v || h?.nodeValue !== v && (h.nodeValue = v);
    }, E = () => Pe.schedule(p), S = Ar(
      E,
      a
    ), M = Object.entries(s).map(
      ([v, C]) => this.manager.monitor.addEventListener(
        v,
        (y, B) => {
          const W = h;
          if (!W) return;
          const R = C?.(y, B);
          R && W.nodeValue !== R && (c = R, Er.includes(v) ? S() : (E(), S.cancel()));
        }
      )
    ), x = () => {
      let v = [];
      l?.isConnected || (l = wr(
        u,
        o.draggable
      ), v.push(l)), d?.isConnected || (d = Sr(f), h = document.createTextNode(""), d.appendChild(h), v.push(d)), v.length > 0 && document.body.append(...v);
    }, b = /* @__PURE__ */ new Set();
    function g() {
      for (const v of b)
        v();
    }
    this.registerEffect(() => {
      var v;
      b.clear();
      for (const C of this.manager.registry.draggables.value) {
        const y = (v = C.handle) != null ? v : C.element;
        if (y) {
          (!l || !d) && b.add(x), (!xr(y) || jn()) && !y.hasAttribute("tabindex") && b.add(() => y.setAttribute("tabindex", "0")), !y.hasAttribute("role") && y.tagName.toLowerCase() !== "button" && b.add(
            () => y.setAttribute("role", Xt.role)
          ), y.hasAttribute("aria-roledescription") || b.add(
            () => y.setAttribute(
              "aria-roledescription",
              Xt.roleDescription
            )
          ), y.hasAttribute("aria-describedby") || b.add(
            () => y.setAttribute("aria-describedby", u)
          );
          for (const W of ["aria-pressed", "aria-grabbed"]) {
            const R = String(C.isDragging);
            y.getAttribute(W) !== R && b.add(() => y.setAttribute(W, R));
          }
          const B = String(C.disabled);
          y.getAttribute("aria-disabled") !== B && b.add(
            () => y.setAttribute("aria-disabled", B)
          );
        }
      }
      b.size > 0 && Pe.schedule(g);
    }), this.destroy = () => {
      super.destroy(), l?.remove(), d?.remove(), M.forEach((v) => v());
    };
  }
};
function Ar(t, e) {
  let n;
  const r = () => {
    clearTimeout(n), n = setTimeout(t, e);
  };
  return r.cancel = () => clearTimeout(n), r;
}
var Pr = class extends ae {
  constructor(t, e) {
    super(t, e), this.manager = t;
    const n = Ye(
      () => {
        var r;
        return Z((r = this.manager.dragOperation.source) == null ? void 0 : r.element);
      }
    );
    this.destroy = ne(() => {
      var r;
      const { dragOperation: i } = this.manager, { cursor: s = "grabbing", nonce: o } = (r = this.options) != null ? r : {};
      if (i.status.initialized) {
        const a = n.value, u = a.createElement("style");
        return o && u.setAttribute("nonce", o), u.textContent = `* { cursor: ${s} !important; }`, a.head.appendChild(u), () => u.remove();
      }
    });
  }
}, we = "data-dnd-", He = `${we}dropping`, $ = "--dnd-", U = `${we}dragging`, $e = `${we}placeholder`, Dr = [
  U,
  $e,
  "popover",
  "aria-pressed",
  "aria-grabbing"
], Or = ["view-transition-name"], $r = `
  :root [${U}] {
    position: fixed !important;
    pointer-events: none !important;
    touch-action: none;
    z-index: calc(infinity);
    will-change: translate;
    top: var(${$}top, 0px) !important;
    left: var(${$}left, 0px) !important;
    right: unset !important;
    bottom: unset !important;
    width: var(${$}width, auto);
    max-width: var(${$}width, auto);
    height: var(${$}height, auto);
    max-height: var(${$}height, auto);
    transition: var(${$}transition) !important;
  }

  :root [${$e}] {
    transition: none;
  }

  :root [${$e}='hidden'] {
    visibility: hidden;
  }

  [${U}] * {
    pointer-events: none !important;
  }

  [${U}]:not([${He}]) {
    translate: var(${$}translate) !important;
  }

  [${U}][style*='${$}scale'] {
    scale: var(${$}scale) !important;
    transform-origin: var(${$}transform-origin) !important;
  }

  @layer {
    :where([${U}][popover]) {
      overflow: visible;
      background: unset;
      border: unset;
      margin: unset;
      padding: unset;
      color: inherit;

      &:is(input, button) {
        border: revert;
        background: revert;
      }
    }
  }
  [${U}]::backdrop, [${we}overlay]:not([${U}]) {
    display: none;
    visibility: hidden;
  }
`.replace(/\n+/g, " ").replace(/\s+/g, " ").trim();
function Tr(t, e = "hidden") {
  return j(() => {
    const { element: n, manager: r } = t;
    if (!n || !r) return;
    const i = Cr(
      n,
      r.registry.droppables
    ), s = [], o = sr(n), { remove: a } = o;
    return Ir(i, o, s), Mr(o, e), o.remove = () => {
      s.forEach((u) => u()), a.call(o);
    }, o;
  });
}
function Cr(t, e) {
  const n = /* @__PURE__ */ new Map();
  for (const r of e)
    if (r.element && (t === r.element || t.contains(r.element))) {
      const i = `${we}${Ne("dom-id")}`;
      r.element.setAttribute(i, ""), n.set(r, i);
    }
  return n;
}
function Ir(t, e, n) {
  for (const [r, i] of t) {
    if (!r.element) continue;
    const s = `[${i}]`, o = e.matches(s) ? e : e.querySelector(s);
    if (r.element.removeAttribute(i), !o) continue;
    const a = r.element;
    r.proxy = o, o.removeAttribute(i), Rt.set(a, o), n.push(() => {
      Rt.delete(a), r.proxy = void 0;
    });
  }
}
function Mr(t, e = "hidden") {
  t.setAttribute("inert", "true"), t.setAttribute("tab-index", "-1"), t.setAttribute("aria-hidden", "true"), t.setAttribute($e, e);
}
function Kt(t, e) {
  return t === e ? !0 : Wt(t) === Wt(e);
}
function Nt(t) {
  const { target: e } = t;
  "newState" in t && t.newState === "closed" && Me(e) && e.hasAttribute("popover") && requestAnimationFrame(() => ue(e));
}
function Yt(t) {
  return t.tagName === "TR";
}
var Te = /* @__PURE__ */ new Map(), an, je, ge, rt, ke, ln, cn, be = class extends (je = ae, an = [V], je) {
  constructor(e, n) {
    super(e, n), D(this, ke), D(this, rt, k(ge, 8, this)), k(ge, 11, this), this.state = {
      initial: {},
      current: {}
    }, this.registerEffect(Be(this, ke, cn)), this.registerEffect(Be(this, ke, ln));
  }
  destroy() {
    super.destroy();
    for (const [e, n] of Te.entries())
      n.instances.has(this) && (n.instances.delete(this), n.instances.size === 0 && (n.cleanup(), Te.delete(e)));
  }
};
ge = xe(je);
rt = /* @__PURE__ */ new WeakMap();
ke = /* @__PURE__ */ new WeakSet();
ln = function() {
  var t, e, n;
  const { state: r, manager: i, options: s } = this, { dragOperation: o } = i, { position: a, source: u, status: f } = o;
  if (f.idle) {
    r.current = {}, r.initial = {};
    return;
  }
  if (!u) return;
  const { element: l, feedback: d } = u;
  if (!l || d === "none" || !f.initialized || f.initializing)
    return;
  const { initial: h } = r, c = (t = this.overlay) != null ? t : l, p = De(c), E = De(l), S = !Kt(l, c), M = new H(l, {
    frameTransform: S ? E : null,
    ignoreTransforms: !S
  }), x = {
    x: E.scaleX / p.scaleX,
    y: E.scaleY / p.scaleY
  };
  let { width: b, height: g, top: v, left: C } = M;
  S && (b = b / x.x, g = g / x.y);
  let y, B;
  const W = new Qn(c), {
    transition: R,
    translate: ht,
    boxSizing: kn,
    paddingBlockStart: An,
    paddingBlockEnd: Pn,
    paddingInlineStart: Dn,
    paddingInlineEnd: On,
    borderInlineStartWidth: $n,
    borderInlineEndWidth: Tn,
    borderBlockStartWidth: Cn,
    borderBlockEndWidth: In
  } = Ct(l), ft = d === "clone", pt = kn === "content-box", mt = pt ? parseInt(Dn) + parseInt(On) + parseInt($n) + parseInt(Tn) : 0, vt = pt ? parseInt(An) + parseInt(Pn) + parseInt(Cn) + parseInt(In) : 0, _ = d !== "move" && !this.overlay ? Tr(u, ft ? "clone" : "hidden") : null, Re = j(
    () => Ze(i.dragOperation.activatorEvent)
  );
  if (ht !== "none") {
    const m = It(ht);
    m && !h.translate && (h.translate = m);
  }
  if (!h.transformOrigin) {
    const m = j(() => a.current);
    h.transformOrigin = {
      x: (m.x - C * p.scaleX - p.x) / (b * p.scaleX),
      y: (m.y - v * p.scaleY - p.y) / (g * p.scaleY)
    };
  }
  const { transformOrigin: ee } = h, gt = v * p.scaleY + p.y, bt = C * p.scaleX + p.x;
  if (!h.coordinates && (h.coordinates = {
    x: bt,
    y: gt
  }, x.x !== 1 || x.y !== 1)) {
    const { scaleX: m, scaleY: w } = E, { x: A, y: O } = ee;
    h.coordinates.x += (b * m - b) * A, h.coordinates.y += (g * w - g) * O;
  }
  h.dimensions || (h.dimensions = { width: b, height: g }), h.frameTransform || (h.frameTransform = p);
  const yt = {
    x: h.coordinates.x - bt,
    y: h.coordinates.y - gt
  }, _t = {
    width: (h.dimensions.width * h.frameTransform.scaleX - b * p.scaleX) * ee.x,
    height: (h.dimensions.height * h.frameTransform.scaleY - g * p.scaleY) * ee.y
  }, Se = {
    x: yt.x / p.scaleX + _t.width,
    y: yt.y / p.scaleY + _t.height
  }, xt = {
    left: C + Se.x,
    top: v + Se.y
  };
  c.setAttribute(U, "true");
  const wt = j(() => o.transform), St = (e = h.translate) != null ? e : { x: 0, y: 0 }, Mn = wt.x * p.scaleX + St.x, Ln = wt.y * p.scaleY + St.y, Wn = `${Mn}px ${Ln}px 0`, Rn = R ? `${R}, translate 0ms linear` : "";
  W.set(
    {
      width: b - mt,
      height: g - vt,
      top: xt.top,
      left: xt.left,
      translate: Wn,
      transition: Rn,
      scale: S ? `${x.x} ${x.y}` : "",
      "transform-origin": `${ee.x * 100}% ${ee.y * 100}%`
    },
    $
  ), _ && (l.insertAdjacentElement("afterend", _), s?.rootElement && (typeof s.rootElement == "function" ? s.rootElement(u) : s.rootElement).appendChild(l)), Mt(c) && (c.hasAttribute("popover") || c.setAttribute("popover", "manual"), ue(c), c.addEventListener("beforetoggle", Nt));
  const Et = new ResizeObserver(() => {
    if (!_) return;
    const m = new H(_, {
      frameTransform: p,
      ignoreTransforms: !0
    }), w = ee ?? { x: 1, y: 1 }, A = (b - m.width) * w.x + Se.x, O = (g - m.height) * w.y + Se.y;
    if (W.set(
      {
        width: m.width - mt,
        height: m.height - vt,
        top: v + O,
        left: C + A
      },
      $
    ), y?.takeRecords(), Yt(l) && Yt(_)) {
      const L = Array.from(l.cells), I = Array.from(_.cells);
      for (const [T, N] of L.entries()) {
        const z = I[T];
        N.style.width = `${z.offsetWidth}px`;
      }
    }
    o.shape = new H(c);
  }), kt = new H(c);
  j(() => o.shape = kt);
  const At = Zn(c), Pt = (m) => {
    this.manager.actions.stop({ event: m });
  };
  Re && At.addEventListener("resize", Pt), j(() => u.status) === "idle" && requestAnimationFrame(() => u.status = "dragging"), _ && (Et.observe(_), y = new MutationObserver((m) => {
    let w = !1;
    for (const A of m) {
      if (A.target !== l) {
        w = !0;
        continue;
      }
      if (A.type !== "attributes")
        continue;
      const O = A.attributeName;
      if (O.startsWith("aria-") || Dr.includes(O))
        continue;
      const L = l.getAttribute(O);
      if (O === "style") {
        if (Lt(l) && Lt(_)) {
          const I = l.style;
          for (const T of Array.from(_.style))
            I.getPropertyValue(T) === "" && _.style.removeProperty(T);
          for (const T of Array.from(I)) {
            if (Or.includes(T) || T.startsWith($))
              continue;
            const N = I.getPropertyValue(T);
            _.style.setProperty(T, N);
          }
        }
      } else L !== null ? _.setAttribute(O, L) : _.removeAttribute(O);
    }
    w && ft && (_.innerHTML = l.innerHTML);
  }), y.observe(l, {
    attributes: !0,
    subtree: !0,
    childList: !0
  }), B = new MutationObserver((m) => {
    for (const w of m)
      if (w.addedNodes.length !== 0)
        for (const A of Array.from(w.addedNodes)) {
          if (A.contains(l) && l.nextElementSibling !== _) {
            l.insertAdjacentElement("afterend", _), ue(c);
            return;
          }
          if (A.contains(_) && _.previousElementSibling !== l) {
            _.insertAdjacentElement("beforebegin", l), ue(c);
            return;
          }
        }
  }), B.observe(l.ownerDocument.body, {
    childList: !0,
    subtree: !0
  }));
  const Dt = (n = i.dragOperation.source) == null ? void 0 : n.id, zn = () => {
    var m;
    if (!Re || Dt == null)
      return;
    const w = i.registry.draggables.get(Dt), A = (m = w?.handle) != null ? m : w?.element;
    Qt(A) && A.focus();
  }, ze = () => {
    y?.disconnect(), B?.disconnect(), Et.disconnect(), At.removeEventListener("resize", Pt), Mt(c) && (c.removeEventListener(
      "beforetoggle",
      Nt
    ), c.removeAttribute("popover")), c.removeAttribute(U), W.reset(), u.status = "idle";
    const m = r.current.translate != null;
    _ && (m || _.parentElement !== c.parentElement) && c.isConnected && _.replaceWith(c), _?.remove();
  }, Fn = ar(
    // Update transform on move
    () => {
      var m;
      const { transform: w, status: A } = o;
      if (!(!w.x && !w.y && !r.current.translate) && A.dragging) {
        const O = (m = h.translate) != null ? m : { x: 0, y: 0 }, L = {
          x: w.x / p.scaleX + O.x,
          y: w.y / p.scaleY + O.y
        }, I = r.current.translate, T = j(() => o.modifiers), N = j(() => {
          var Y;
          return (Y = o.shape) == null ? void 0 : Y.current;
        }), z = Re ? "250ms cubic-bezier(0.25, 1, 0.5, 1)" : "0ms linear";
        if (W.set(
          {
            transition: `${R}, translate ${z}`,
            translate: `${L.x}px ${L.y}px 0`
          },
          $
        ), y?.takeRecords(), N && N !== kt && I && !T.length) {
          const Y = lr.delta(L, I);
          o.shape = zt.from(
            N.boundingRectangle
          ).translate(
            // Need to take into account frame transform when optimistically updating shape
            Y.x * p.scaleX,
            Y.y * p.scaleY
          );
        } else
          o.shape = new H(c);
        r.current.translate = L;
      }
    },
    // Drop animation
    function() {
      if (o.status.dropped) {
        this.dispose(), u.status = "dropping";
        let m = r.current.translate;
        const w = m != null;
        if (!m && l !== c && (m = {
          x: 0,
          y: 0
        }), !m) {
          ze();
          return;
        }
        const A = () => {
          var O, L;
          {
            ue(c);
            const [, I] = (O = er(
              c,
              (Nn) => "translate" in Nn
            )) != null ? O : [];
            I?.pause();
            const T = _ ?? l, N = {
              frameTransform: Kt(c, T) ? null : void 0
            }, z = new H(c, N), Y = (L = It(Ct(c).translate)) != null ? L : m, te = new H(T, N), Ot = zt.delta(z, te, u.alignment), $t = {
              x: Y.x - Ot.x,
              y: Y.y - Ot.y
            }, Xn = Math.round(z.intrinsicHeight) !== Math.round(te.intrinsicHeight) ? {
              minHeight: [
                `${z.intrinsicHeight}px`,
                `${te.intrinsicHeight}px`
              ],
              maxHeight: [
                `${z.intrinsicHeight}px`,
                `${te.intrinsicHeight}px`
              ]
            } : {}, Kn = Math.round(z.intrinsicWidth) !== Math.round(te.intrinsicWidth) ? {
              minWidth: [
                `${z.intrinsicWidth}px`,
                `${te.intrinsicWidth}px`
              ],
              maxWidth: [
                `${z.intrinsicWidth}px`,
                `${te.intrinsicWidth}px`
              ]
            } : {};
            W.set({ transition: R }, $), c.setAttribute(He, ""), y?.takeRecords(), tr({
              element: c,
              keyframes: tt(ve(ve({}, Xn), Kn), {
                translate: [
                  `${Y.x}px ${Y.y}px 0`,
                  `${$t.x}px ${$t.y}px 0`
                ]
              }),
              options: {
                duration: w || c !== l ? 250 : 0,
                easing: "ease"
              }
            }).then(() => {
              c.removeAttribute(He), I?.finish(), ze(), requestAnimationFrame(zn);
            });
          }
        };
        i.renderer.rendering.then(A);
      }
    }
  );
  return () => {
    ze(), Fn();
  };
};
cn = function() {
  var t, e, n;
  const { status: r, source: i, target: s } = this.manager.dragOperation, { nonce: o } = (t = this.options) != null ? t : {};
  if (r.initializing) {
    const a = Z((e = i?.element) != null ? e : null), u = Z((n = s?.element) != null ? n : null), f = /* @__PURE__ */ new Set([a, u]);
    for (const l of f) {
      let d = Te.get(l);
      if (!d) {
        const h = document.createElement("style");
        h.textContent = $r, o && h.setAttribute("nonce", o), l.head.prepend(h);
        const c = new MutationObserver((p) => {
          for (const E of p)
            if (E.type === "childList") {
              const S = Array.from(E.removedNodes);
              S.length > 0 && S.includes(h) && l.head.prepend(h);
            }
        });
        c.observe(l.head, { childList: !0 }), d = {
          cleanup: () => {
            c.disconnect(), h.remove();
          },
          instances: /* @__PURE__ */ new Set()
        }, Te.set(l, d);
      }
      d.instances.add(this);
    }
  }
};
q(ge, 4, "overlay", an, be, rt);
ce(ge, be);
be.configure = Qe(be);
var Lr = be, de = !0, Wr = !1, dn, un, hn, fn, J, it, st;
fn = (hn = [V], X.Forward), un = (dn = [V], X.Reverse);
var ye = class {
  constructor() {
    D(this, it, k(J, 8, this, de)), k(J, 11, this), D(this, st, k(J, 12, this, de)), k(J, 15, this);
  }
  isLocked(t) {
    return t === X.Idle ? !1 : t == null ? this[X.Forward] === de && this[X.Reverse] === de : this[t] === de;
  }
  unlock(t) {
    t !== X.Idle && (this[t] = Wr);
  }
};
J = xe(null);
it = /* @__PURE__ */ new WeakMap();
st = /* @__PURE__ */ new WeakMap();
q(J, 4, fn, hn, ye, it);
q(J, 4, un, dn, ye, st);
ce(J, ye);
var Rr = [X.Forward, X.Reverse], Ut = class {
  constructor() {
    this.x = new ye(), this.y = new ye();
  }
  isLocked() {
    return this.x.isLocked() && this.y.isLocked();
  }
}, zr = class extends ae {
  constructor(t) {
    super(t);
    const e = en(new Ut());
    let n = null;
    this.signal = e, ne(() => {
      const { status: r } = t.dragOperation;
      if (!r.initialized) {
        n = null, e.value = new Ut();
        return;
      }
      const { delta: i } = t.dragOperation.position;
      if (n) {
        const s = {
          x: Bt(i.x, n.x),
          y: Bt(i.y, n.y)
        }, o = e.peek();
        dr(() => {
          for (const a of Zt)
            for (const u of Rr)
              s[a] === u && o[a].unlock(u);
          e.value = o;
        });
      }
      n = i;
    });
  }
  get current() {
    return this.signal.peek();
  }
};
function Bt(t, e) {
  return Math.sign(t - e);
}
var pn, Ve, _e, ot, G, qe, Le = class extends (Ve = Gt, pn = [V], Ve) {
  constructor(t) {
    super(t), D(this, ot, k(_e, 8, this, !1)), k(_e, 11, this), D(this, G), D(this, qe, () => {
      if (!P(this, G))
        return;
      const { element: s, by: o } = P(this, G);
      o.y && (s.scrollTop += o.y), o.x && (s.scrollLeft += o.x);
    }), this.scroll = (s) => {
      var o;
      if (this.disabled)
        return !1;
      const a = this.getScrollableElements();
      if (!a)
        return K(this, G, void 0), !1;
      const { position: u } = this.manager.dragOperation, f = u?.current;
      if (f) {
        const { by: l } = s ?? {}, d = l ? {
          x: Ht(l.x),
          y: Ht(l.y)
        } : void 0, h = d ? void 0 : this.scrollIntentTracker.current;
        if (h?.isLocked())
          return !1;
        for (const c of a) {
          const p = qn(c, l);
          if (p.x || p.y) {
            const { speed: E, direction: S } = Gn(
              c,
              f,
              d
            );
            if (h)
              for (const M of Zt)
                h[M].isLocked(S[M]) && (E[M] = 0, S[M] = 0);
            if (S.x || S.y) {
              const { x: M, y: x } = l ?? S, b = M * E.x, g = x * E.y;
              if (b || g) {
                const v = (o = P(this, G)) == null ? void 0 : o.by;
                if (this.autoScrolling && v && (v.x && !b || v.y && !g))
                  continue;
                return K(this, G, {
                  element: c,
                  by: {
                    x: b,
                    y: g
                  }
                }), Pe.schedule(P(this, qe)), !0;
              }
            }
          }
        }
      }
      return K(this, G, void 0), !1;
    };
    let e = null, n = null;
    const r = Ye(() => {
      const { position: s, source: o } = t.dragOperation;
      if (!s)
        return null;
      const a = nr(
        Z(o?.element),
        s.current
      );
      return a && (e = a), a ?? e;
    }), i = Ye(() => {
      const s = r.value, { documentElement: o } = Z(s);
      if (!s || s === o) {
        const { target: a } = t.dragOperation, u = a?.element;
        if (u) {
          const f = Tt(u, {
            excludeElement: !1
          });
          return n = f, f;
        }
      }
      if (s) {
        const a = Tt(s, {
          excludeElement: !1
        });
        return this.autoScrolling && n && a.size < n?.size ? n : (n = a, a);
      }
      return n = null, null;
    }, or);
    this.getScrollableElements = () => i.value, this.scrollIntentTracker = new zr(t), this.destroy = t.monitor.addEventListener("dragmove", (s) => {
      this.disabled || s.defaultPrevented || !Ze(t.dragOperation.activatorEvent) || !s.by || this.scroll({ by: s.by }) && s.preventDefault();
    });
  }
};
_e = xe(Ve);
ot = /* @__PURE__ */ new WeakMap();
G = /* @__PURE__ */ new WeakMap();
qe = /* @__PURE__ */ new WeakMap();
q(_e, 4, "autoScrolling", pn, Le, ot);
ce(_e, Le);
function Ht(t) {
  return t > 0 ? X.Forward : t < 0 ? X.Reverse : X.Idle;
}
var Fr = class {
  constructor(t) {
    this.scheduler = t, this.pending = !1, this.tasks = /* @__PURE__ */ new Set(), this.resolvers = /* @__PURE__ */ new Set(), this.flush = () => {
      const { tasks: e, resolvers: n } = this;
      this.pending = !1, this.tasks = /* @__PURE__ */ new Set(), this.resolvers = /* @__PURE__ */ new Set();
      for (const r of e)
        r();
      for (const r of n)
        r();
    };
  }
  schedule(t) {
    return this.tasks.add(t), this.pending || (this.pending = !0, this.scheduler(this.flush)), new Promise((e) => this.resolvers.add(e));
  }
}, Xr = new Fr((t) => {
  typeof requestAnimationFrame == "function" ? requestAnimationFrame(t) : t();
}), Kr = 10, mn = class extends ae {
  constructor(t, e) {
    super(t);
    const n = t.registry.plugins.get(Le);
    if (!n)
      throw new Error("AutoScroller plugin depends on Scroller plugin");
    this.destroy = ne(() => {
      if (this.disabled)
        return;
      const { position: r, status: i } = t.dragOperation;
      if (i.dragging)
        if (n.scroll()) {
          n.autoScrolling = !0;
          const o = setInterval(
            () => Xr.schedule(n.scroll),
            Kr
          );
          return () => {
            clearInterval(o);
          };
        } else
          n.autoScrolling = !1;
    });
  }
}, jt = {
  capture: !0,
  passive: !0
}, fe, Nr = class extends Gt {
  constructor(t) {
    super(t), D(this, fe), this.handleScroll = () => {
      P(this, fe) == null && K(this, fe, setTimeout(() => {
        this.manager.collisionObserver.forceUpdate(!1), K(this, fe, void 0);
      }, 50));
    };
    const { dragOperation: e } = this.manager;
    this.destroy = ne(() => {
      var n, r, i;
      if (e.status.dragging) {
        const o = (i = (r = (n = e.source) == null ? void 0 : n.element) == null ? void 0 : r.ownerDocument) != null ? i : document;
        return o.addEventListener("scroll", this.handleScroll, jt), () => {
          o.removeEventListener(
            "scroll",
            this.handleScroll,
            jt
          );
        };
      }
    });
  }
};
fe = /* @__PURE__ */ new WeakMap();
var Yr = class extends ae {
  constructor(t, e) {
    super(t, e), this.manager = t, this.destroy = ne(() => {
      var n;
      const { dragOperation: r } = this.manager, { nonce: i } = (n = this.options) != null ? n : {};
      if (r.status.initialized) {
        const s = document.createElement("style");
        return i && s.setAttribute("nonce", i), s.textContent = "* { user-select: none !important; -webkit-user-select: none !important; }", document.head.appendChild(s), Xe(), document.addEventListener("selectionchange", Xe, {
          capture: !0
        }), () => {
          document.removeEventListener("selectionchange", Xe, {
            capture: !0
          }), s.remove();
        };
      }
    });
  }
};
function Xe() {
  var t;
  (t = document.getSelection()) == null || t.removeAllRanges();
}
var pe = Object.freeze({
  offset: 10,
  keyboardCodes: {
    start: ["Space", "Enter"],
    cancel: ["Escape"],
    end: ["Space", "Enter", "Tab"],
    up: ["ArrowUp"],
    down: ["ArrowDown"],
    left: ["ArrowLeft"],
    right: ["ArrowRight"]
  },
  shouldActivate(t) {
    var e;
    const { event: n, source: r } = t, i = (e = r.handle) != null ? e : r.element;
    return n.target === i;
  }
}), ie, Ce = class extends Ae {
  constructor(e, n) {
    super(e), this.manager = e, this.options = n, D(this, ie, []), this.listeners = new Jt(), this.handleSourceKeyDown = (r, i, s) => {
      if (this.disabled || r.defaultPrevented || !Me(r.target) || i.disabled)
        return;
      const {
        keyboardCodes: o = pe.keyboardCodes,
        shouldActivate: a = pe.shouldActivate
      } = s ?? {};
      o.start.includes(r.code) && this.manager.dragOperation.status.idle && a({ event: r, source: i, manager: this.manager }) && this.handleStart(r, i, s);
    };
  }
  bind(e, n = this.options) {
    return ne(() => {
      var i;
      const s = (i = e.handle) != null ? i : e.element, o = (a) => {
        Ze(a) && this.handleSourceKeyDown(a, e, n);
      };
      if (s)
        return s.addEventListener("keydown", o), () => {
          s.removeEventListener("keydown", o);
        };
    });
  }
  handleStart(e, n, r) {
    const { element: i } = n;
    if (!i)
      throw new Error("Source draggable does not have an associated element");
    e.preventDefault(), e.stopImmediatePropagation(), Vn(i);
    const { center: s } = new H(i);
    if (this.manager.actions.start({
      event: e,
      coordinates: {
        x: s.x,
        y: s.y
      },
      source: n
    }).signal.aborted) return this.cleanup();
    this.sideEffects();
    const a = Z(i), u = [
      this.listeners.bind(a, [
        {
          type: "keydown",
          listener: (f) => this.handleKeyDown(f, n, r),
          options: { capture: !0 }
        }
      ])
    ];
    P(this, ie).push(...u);
  }
  handleKeyDown(e, n, r) {
    const { keyboardCodes: i = pe.keyboardCodes } = r ?? {};
    if (re(e, [...i.end, ...i.cancel])) {
      e.preventDefault();
      const s = re(e, i.cancel);
      this.handleEnd(e, s);
      return;
    }
    re(e, i.up) ? this.handleMove("up", e) : re(e, i.down) && this.handleMove("down", e), re(e, i.left) ? this.handleMove("left", e) : re(e, i.right) && this.handleMove("right", e);
  }
  handleEnd(e, n) {
    this.manager.actions.stop({
      event: e,
      canceled: n
    }), this.cleanup();
  }
  handleMove(e, n) {
    var r, i;
    const { shape: s } = this.manager.dragOperation, o = n.shiftKey ? 5 : 1;
    let a = {
      x: 0,
      y: 0
    }, u = (i = (r = this.options) == null ? void 0 : r.offset) != null ? i : pe.offset;
    if (typeof u == "number" && (u = { x: u, y: u }), !!s) {
      switch (e) {
        case "up":
          a = { x: 0, y: -u.y * o };
          break;
        case "down":
          a = { x: 0, y: u.y * o };
          break;
        case "left":
          a = { x: -u.x * o, y: 0 };
          break;
        case "right":
          a = { x: u.x * o, y: 0 };
          break;
      }
      (a.x || a.y) && (n.preventDefault(), this.manager.actions.move({
        event: n,
        by: a
      }));
    }
  }
  sideEffects() {
    const e = this.manager.registry.plugins.get(mn);
    e?.disabled === !1 && (e.disable(), P(this, ie).push(() => {
      e.enable();
    }));
  }
  cleanup() {
    P(this, ie).forEach((e) => e()), K(this, ie, []);
  }
  destroy() {
    this.cleanup(), this.listeners.clear();
  }
};
ie = /* @__PURE__ */ new WeakMap();
Ce.configure = Qe(Ce);
Ce.defaults = pe;
var Ur = Ce;
function re(t, e) {
  return e.includes(t.code);
}
var vn = Object.freeze({
  activationConstraints(t, e) {
    var n;
    const { pointerType: r, target: i } = t;
    if (!(r === "mouse" && Me(i) && (e.handle === i || (n = e.handle) != null && n.contains(i))))
      return r === "touch" ? {
        delay: { value: 250, tolerance: 5 }
      } : Jn(i) && !t.defaultPrevented ? {
        delay: { value: 200, tolerance: 0 }
      } : {
        delay: { value: 200, tolerance: 10 },
        distance: { value: 5 }
      };
  }
}), se, oe, Ie = class extends Ae {
  constructor(e, n) {
    super(e), this.manager = e, this.options = n, D(this, se, /* @__PURE__ */ new Set()), D(this, oe), this.listeners = new Jt(), this.latest = {
      event: void 0,
      coordinates: void 0
    }, this.handleMove = () => {
      const { event: r, coordinates: i } = this.latest;
      !r || !i || this.manager.actions.move({ event: r, to: i });
    }, this.handleCancel = this.handleCancel.bind(this), this.handlePointerUp = this.handlePointerUp.bind(this), this.handleKeyDown = this.handleKeyDown.bind(this);
  }
  activationConstraints(e, n) {
    var r;
    const { activationConstraints: i = vn.activationConstraints } = (r = this.options) != null ? r : {};
    return typeof i == "function" ? i(e, n) : i;
  }
  bind(e, n = this.options) {
    return ne(() => {
      var i;
      const s = new AbortController(), { signal: o } = s, a = (f) => {
        rr(f) && this.handlePointerDown(f, e, n);
      };
      let u = [(i = e.handle) != null ? i : e.element];
      n?.activatorElements && (Array.isArray(n.activatorElements) ? u = n.activatorElements : u = n.activatorElements(e));
      for (const f of u)
        f && (Vr(f.ownerDocument.defaultView), f.addEventListener("pointerdown", a, { signal: o }));
      return () => s.abort();
    });
  }
  handlePointerDown(e, n, r = {}) {
    if (this.disabled || !e.isPrimary || e.button !== 0 || !Me(e.target) || n.disabled || Hr(e) || !this.manager.dragOperation.status.idle)
      return;
    const { target: i } = e, s = Qt(i) && i.draggable && i.getAttribute("draggable") === "true", o = De(n.element);
    this.initialCoordinates = {
      x: e.clientX * o.scaleX + o.x,
      y: e.clientY * o.scaleY + o.y
    };
    const a = this.activationConstraints(e, n);
    if (e.sensor = this, !a?.delay && !a?.distance)
      this.handleStart(n, e);
    else {
      const { delay: d } = a;
      if (d) {
        const h = setTimeout(
          () => this.handleStart(n, e),
          d.value
        );
        K(this, oe, () => {
          clearTimeout(h), K(this, oe, void 0);
        });
      }
    }
    const u = Z(e.target), f = this.listeners.bind(u, [
      {
        type: "pointermove",
        listener: (d) => this.handlePointerMove(d, n)
      },
      {
        type: "pointerup",
        listener: this.handlePointerUp,
        options: {
          capture: !0
        }
      },
      {
        // Cancel activation if there is a competing Drag and Drop interaction
        type: "dragstart",
        listener: s ? this.handleCancel : Ee,
        options: {
          capture: !0
        }
      }
    ]), l = () => {
      var d;
      f(), (d = P(this, oe)) == null || d.call(this), this.initialCoordinates = void 0;
    };
    P(this, se).add(l);
  }
  handlePointerMove(e, n) {
    const r = {
      x: e.clientX,
      y: e.clientY
    }, i = De(n.element);
    if (r.x = r.x * i.scaleX + i.x, r.y = r.y * i.scaleY + i.y, this.manager.dragOperation.status.dragging) {
      e.preventDefault(), e.stopPropagation(), this.latest.event = e, this.latest.coordinates = r, Pe.schedule(this.handleMove);
      return;
    }
    if (!this.initialCoordinates)
      return;
    const s = {
      x: r.x - this.initialCoordinates.x,
      y: r.y - this.initialCoordinates.y
    }, o = this.activationConstraints(e, n), { distance: a, delay: u } = o ?? {};
    if (a) {
      if (a.tolerance != null && Fe(s, a.tolerance))
        return this.handleCancel(e);
      if (Fe(s, a.value))
        return this.handleStart(n, e);
    }
    if (u && Fe(s, u.tolerance))
      return this.handleCancel(e);
  }
  handlePointerUp(e) {
    const { status: n } = this.manager.dragOperation;
    if (!n.idle) {
      e.preventDefault(), e.stopPropagation();
      const r = !n.initialized;
      this.manager.actions.stop({ event: e, canceled: r });
    }
    this.cleanup();
  }
  handleKeyDown(e) {
    e.key === "Escape" && (e.preventDefault(), this.handleCancel(e));
  }
  handleStart(e, n) {
    var r;
    const { manager: i, initialCoordinates: s } = this;
    if ((r = P(this, oe)) == null || r.call(this), !s || !i.dragOperation.status.idle || n.defaultPrevented)
      return;
    if (i.actions.start({
      coordinates: s,
      event: n,
      source: e
    }).signal.aborted) return this.cleanup();
    n.preventDefault();
    const a = Z(n.target), u = a.body;
    u.setPointerCapture(n.pointerId);
    const f = this.listeners.bind(a, [
      {
        // Prevent scrolling on touch devices
        type: "touchmove",
        listener: Ee,
        options: {
          passive: !1
        }
      },
      {
        // Prevent click events
        type: "click",
        listener: Ee
      },
      {
        type: "contextmenu",
        listener: Ee
      },
      {
        type: "keydown",
        listener: this.handleKeyDown
      },
      {
        type: "lostpointercapture",
        listener: (l) => {
          l.target === u && this.handlePointerUp(l);
        }
      }
    ]);
    P(this, se).add(f);
  }
  handleCancel(e) {
    const { dragOperation: n } = this.manager;
    n.status.initialized && this.manager.actions.stop({ event: e, canceled: !0 }), this.cleanup();
  }
  cleanup() {
    this.latest = {
      event: void 0,
      coordinates: void 0
    }, P(this, se).forEach((e) => e()), P(this, se).clear();
  }
  destroy() {
    this.cleanup(), this.listeners.clear();
  }
};
se = /* @__PURE__ */ new WeakMap();
oe = /* @__PURE__ */ new WeakMap();
Ie.configure = Qe(Ie);
Ie.defaults = vn;
var Br = Ie;
function Hr(t) {
  return "sensor" in t;
}
function Ee(t) {
  t.preventDefault();
}
function jr() {
}
var Vt = /* @__PURE__ */ new WeakSet();
function Vr(t) {
  !t || Vt.has(t) || (t.addEventListener("touchmove", jr, {
    capture: !1,
    passive: !1
  }), Vt.add(t));
}
var qt = {
  modifiers: [],
  plugins: [kr, mn, Pr, Lr, Yr],
  sensors: [Br, Ur]
}, ii = class extends Un {
  constructor(t = {}) {
    const {
      plugins: e = qt.plugins,
      sensors: n = qt.sensors,
      modifiers: r = []
    } = t;
    super(tt(ve({}, t), {
      plugins: [Nr, Le, ...e],
      sensors: n,
      modifiers: r
    }));
  }
}, gn, bn, yn, Ge, F, at, lt, ct, We = class extends (Ge = Hn, yn = [V], bn = [V], gn = [V], Ge) {
  constructor(t, e) {
    var n = t, {
      element: r,
      effects: i = () => [],
      handle: s,
      feedback: o = "default"
    } = n, a = sn(n, [
      "element",
      "effects",
      "handle",
      "feedback"
    ]);
    super(
      ve({
        effects: () => [
          ...i(),
          () => {
            var u, f;
            const { manager: l } = this;
            if (!l) return;
            const h = ((f = (u = this.sensors) == null ? void 0 : u.map(Bn)) != null ? f : [
              ...l.sensors
            ]).map((c) => {
              const p = c instanceof Ae ? c : l.registry.register(c.plugin), E = c instanceof Ae ? void 0 : c.options;
              return p.bind(this, E);
            });
            return function() {
              h.forEach((p) => p());
            };
          }
        ]
      }, a),
      e
    ), D(this, at, k(F, 8, this)), k(F, 11, this), D(this, lt, k(F, 12, this)), k(F, 15, this), D(this, ct, k(F, 16, this)), k(F, 19, this), this.element = r, this.handle = s, this.feedback = o;
  }
};
F = xe(Ge);
at = /* @__PURE__ */ new WeakMap();
lt = /* @__PURE__ */ new WeakMap();
ct = /* @__PURE__ */ new WeakMap();
q(F, 4, "handle", yn, We, at);
q(F, 4, "element", bn, We, lt);
q(F, 4, "feedback", gn, We, ct);
ce(F, We);
var _n, xn, Je, Q, dt, Ke, wn, Sn, me, ut, En = class extends (Je = Yn, xn = [V], _n = [V], Je) {
  constructor(t, e) {
    var n = t, { element: r, effects: i = () => [] } = n, s = sn(n, ["element", "effects"]);
    const { collisionDetector: o = cr } = s, a = (f) => {
      const { manager: l, element: d } = this;
      if (!d || f === null) {
        this.shape = void 0;
        return;
      }
      if (!l) return;
      const h = new H(d), c = j(() => this.shape);
      return h && c?.equals(h) ? c : (this.shape = h, h);
    }, u = en(!1);
    super(
      tt(ve({}, s), {
        collisionDetector: o,
        effects: () => [
          ...i(),
          () => {
            const { element: f, manager: l } = this;
            if (!l) return;
            const { dragOperation: d } = l, { source: h } = d;
            u.value = !!(h && d.status.initialized && f && !this.disabled && this.accepts(h));
          },
          () => {
            const { element: f } = this;
            if (u.value && f) {
              const l = new ir(
                f,
                a
              );
              return () => {
                l.disconnect(), this.shape = void 0;
              };
            }
          },
          () => {
            var f;
            if ((f = this.manager) != null && f.dragOperation.status.initialized)
              return () => {
                this.shape = void 0;
              };
          }
        ]
      }),
      e
    ), D(this, me), D(this, dt, k(Q, 8, this)), k(Q, 11, this), D(this, ut, k(Q, 12, this)), k(Q, 15, this), this.element = r, this.refreshShape = () => a();
  }
  set element(t) {
    K(this, me, t, Sn);
  }
  get element() {
    var t;
    return (t = this.proxy) != null ? t : P(this, me, wn);
  }
};
Q = xe(Je);
dt = /* @__PURE__ */ new WeakMap();
me = /* @__PURE__ */ new WeakSet();
ut = /* @__PURE__ */ new WeakMap();
Ke = q(Q, 20, "#element", xn, me, dt), wn = Ke.get, Sn = Ke.set;
q(Q, 4, "proxy", _n, En, ut);
ce(Q, En);
export {
  kr as Accessibility,
  mn as AutoScroller,
  Pr as Cursor,
  ii as DragDropManager,
  We as Draggable,
  En as Droppable,
  Lr as Feedback,
  Ur as KeyboardSensor,
  Br as PointerSensor,
  Yr as PreventSelection,
  Nr as ScrollListener,
  Le as Scroller,
  qt as defaultPreset
};
//# sourceMappingURL=index.js.map
