nam-rich-text-editor 9.0.7 → 9.0.9

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.
@@ -326,12 +326,12 @@ function No(h) {
326
326
  let z = null;
327
327
  const N = document.createElement("button");
328
328
  N.textContent = "Insert", N.style.padding = "8px 16px", N.style.border = "none", N.style.borderRadius = "4px", N.style.backgroundColor = "#007bff", N.style.color = "#fff", N.style.cursor = "pointer", N.onclick = () => {
329
- const Y = C.value.trim();
330
- if (Y)
329
+ const V = C.value.trim();
330
+ if (V)
331
331
  if (z)
332
- z.setAttribute("href", Y), z.setAttribute("target", "_blank"), z.setAttribute("rel", "noopener noreferrer"), z.setAttribute("tabindex", "0");
332
+ z.setAttribute("href", V), z.setAttribute("target", "_blank"), z.setAttribute("rel", "noopener noreferrer"), z.setAttribute("tabindex", "0");
333
333
  else {
334
- Ne(), document.execCommand("createLink", !1, Y);
334
+ Ne(), document.execCommand("createLink", !1, V);
335
335
  const J = window.getSelection();
336
336
  if (J && J.rangeCount > 0) {
337
337
  let X = J.getRangeAt(0).startContainer;
@@ -349,15 +349,15 @@ function No(h) {
349
349
  }
350
350
  }
351
351
  f.style.display = "none", C.value = "", z = null;
352
- }, M.appendChild(k), M.appendChild(N), d.appendChild(y), d.appendChild(C), d.appendChild(M), f.appendChild(d), document.body.appendChild(f), C.onkeydown = (Y) => {
353
- Y.key === "Enter" ? N.click() : Y.key === "Escape" && k.click();
352
+ }, M.appendChild(k), M.appendChild(N), d.appendChild(y), d.appendChild(C), d.appendChild(M), f.appendChild(d), document.body.appendChild(f), C.onkeydown = (V) => {
353
+ V.key === "Enter" ? N.click() : V.key === "Escape" && k.click();
354
354
  };
355
355
  const _ = document.createElement("button"), ae = ye(ao, { width: 16, height: 16 });
356
356
  _.appendChild(ae), _.title = "Insert Hyperlink", _.style.border = "1px solid #e1e1e1", _.style.backgroundColor = "#ffffff", _.style.padding = "6px 10px", _.style.borderRadius = "3px", _.style.cursor = "pointer", _.style.color = "#000000", _.onmouseover = () => _.style.backgroundColor = "#f0f0f0", _.onmouseout = () => _.style.backgroundColor = "#ffffff", _.onmousedown = () => {
357
357
  z = null;
358
- const Y = window.getSelection();
359
- if (Y && Y.rangeCount > 0) {
360
- let X = Y.getRangeAt(0).startContainer;
358
+ const V = window.getSelection();
359
+ if (V && V.rangeCount > 0) {
360
+ let X = V.getRangeAt(0).startContainer;
361
361
  for (; X && X.nodeType !== Node.ELEMENT_NODE; )
362
362
  X = X.parentNode;
363
363
  let U = X;
@@ -374,10 +374,10 @@ function No(h) {
374
374
  f.style.display = "flex", C.focus();
375
375
  }, v.appendChild(_);
376
376
  const ee = h.querySelector(".editor");
377
- return ee && ee.addEventListener("click", (Y) => {
378
- const J = Y.target;
377
+ return ee && ee.addEventListener("click", (V) => {
378
+ const J = V.target;
379
379
  if (J.tagName === "A") {
380
- Y.preventDefault();
380
+ V.preventDefault();
381
381
  const X = J.getAttribute("href");
382
382
  X && window.open(X, "_blank");
383
383
  }
@@ -408,8 +408,8 @@ function zo() {
408
408
  ae.textContent = "Source URL", ae.className = "rte-label";
409
409
  const ee = document.createElement("input");
410
410
  ee.type = "url", ee.placeholder = "https://example.com", ee.className = "rte-input";
411
- const Y = document.createElement("div");
412
- Y.className = "rte-preview-label", Y.textContent = "Preview";
411
+ const V = document.createElement("div");
412
+ V.className = "rte-preview-label", V.textContent = "Preview";
413
413
  const J = document.createElement("div");
414
414
  J.className = "rte-modal-preview";
415
415
  const X = document.createElement("div");
@@ -417,7 +417,7 @@ function zo() {
417
417
  const U = document.createElement("div");
418
418
  U.className = "rte-blockquote-content";
419
419
  const te = document.createElement("div");
420
- te.className = "rte-blockquote-footer", J.appendChild(X), J.appendChild(U), J.appendChild(te), z.appendChild(N), z.appendChild(_), z.appendChild(ae), z.appendChild(ee), z.appendChild(Y), z.appendChild(J);
420
+ te.className = "rte-blockquote-footer", J.appendChild(X), J.appendChild(U), J.appendChild(te), z.appendChild(N), z.appendChild(_), z.appendChild(ae), z.appendChild(ee), z.appendChild(V), z.appendChild(J);
421
421
  const $ = document.createElement("div");
422
422
  $.className = "rte-modal-actions";
423
423
  const ne = document.createElement("button");
@@ -548,8 +548,8 @@ function jo(h) {
548
548
  ae.className = "rte-modal-preview";
549
549
  const ee = document.createElement("div");
550
550
  ee.className = "rte-form-left";
551
- const Y = document.createElement("div");
552
- Y.className = "rte-form-right";
551
+ const V = document.createElement("div");
552
+ V.className = "rte-form-right";
553
553
  const J = document.createElement("div");
554
554
  J.className = "rte-field", J.appendChild(z), J.appendChild(N);
555
555
  const X = document.createElement("div");
@@ -565,7 +565,7 @@ function jo(h) {
565
565
  const Q = document.createElement("label");
566
566
  Q.className = "rte-label", Q.textContent = "Height (px)";
567
567
  const se = document.createElement("input");
568
- se.type = "text", se.className = "rte-dim-input", se.placeholder = "e.g., 315", ne.appendChild(Q), ne.appendChild(se), X.appendChild(U), X.appendChild(ne), ee.appendChild(J), ee.appendChild(X), Y.appendChild(_), Y.appendChild(ae), k.appendChild(ee), k.appendChild(Y);
568
+ se.type = "text", se.className = "rte-dim-input", se.placeholder = "e.g., 315", ne.appendChild(Q), ne.appendChild(se), X.appendChild(U), X.appendChild(ne), ee.appendChild(J), ee.appendChild(X), V.appendChild(_), V.appendChild(ae), k.appendChild(ee), k.appendChild(V);
569
569
  const K = document.createElement("div");
570
570
  K.className = "rte-modal-actions";
571
571
  const g = document.createElement("button");
@@ -696,8 +696,8 @@ function Fo(h) {
696
696
  v.appendChild(ae);
697
697
  const ee = No(h);
698
698
  v.appendChild(ee);
699
- const Y = zo();
700
- v.appendChild(Y);
699
+ const V = zo();
700
+ v.appendChild(V);
701
701
  const J = Lo();
702
702
  v.appendChild(J);
703
703
  const X = jo(h);
@@ -707,7 +707,7 @@ function Fo(h) {
707
707
  }
708
708
  function Ho(h, v) {
709
709
  const f = document.createElement("div");
710
- return f.classList.add("editor"), f.contentEditable = "true", f.style.color = "#000000", f.style.border = "1px solid #e1e1e1", f.style.minHeight = "400px", f.style.padding = "15px", f.style.fontFamily = "Arial, sans-serif", f.style.fontSize = "14px", f.style.lineHeight = "1.5", f.style.outline = "none", f.style.backgroundColor = "#ffffff", f.style.borderRadius = "4px", f.style.boxShadow = "inset 0 1px 3px rgba(0,0,0,0.1)", f.style.direction = "ltr", f.style.textAlign = "left", f.innerHTML = "", f.addEventListener("dragover", (d) => {
710
+ return f.classList.add("editor"), f.contentEditable = "true", f.style.color = "#000000", f.style.border = "1px solid #e1e1e1", f.style.height = "400px", f.style.overflowY = "auto", f.style.padding = "15px", f.style.fontFamily = "Arial, sans-serif", f.style.fontSize = "14px", f.style.lineHeight = "1.5", f.style.outline = "none", f.style.backgroundColor = "#ffffff", f.style.borderRadius = "4px", f.style.boxShadow = "inset 0 1px 3px rgba(0,0,0,0.1)", f.style.direction = "ltr", f.style.textAlign = "left", f.innerHTML = "", f.addEventListener("dragover", (d) => {
711
711
  d.preventDefault(), d.stopPropagation();
712
712
  }), f.addEventListener("drop", (d) => {
713
713
  d.preventDefault(), d.stopPropagation();
@@ -746,7 +746,7 @@ function Bo(h) {
746
746
  return h && h.__esModule && Object.prototype.hasOwnProperty.call(h, "default") ? h.default : h;
747
747
  }
748
748
  var Ke = { exports: {} }, qo = Ke.exports, Pn;
749
- function Vo() {
749
+ function Yo() {
750
750
  return Pn || (Pn = 1, (function(h, v) {
751
751
  (function(f, d) {
752
752
  h.exports = d();
@@ -812,7 +812,7 @@ function Vo() {
812
812
  if (t === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
813
813
  return t;
814
814
  }
815
- function Y(t) {
815
+ function V(t) {
816
816
  var e = (function() {
817
817
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
818
818
  if (typeof Proxy == "function") return !0;
@@ -1079,7 +1079,7 @@ function Vo() {
1079
1079
  return g.number(t.pointerId) ? t.pointerId : t.identifier;
1080
1080
  }
1081
1081
  function Fn(t, e, n) {
1082
- var r = e.length > 1 ? Vt(e) : e[0];
1082
+ var r = e.length > 1 ? Yt(e) : e[0];
1083
1083
  qt(r, t.page), (function(o, i) {
1084
1084
  i = i || {}, G.isOperaMobile && Bt(o) ? rt("screen", o, i) : rt("client", o, i);
1085
1085
  })(r, t.client), t.timeStamp = n;
@@ -1088,7 +1088,7 @@ function Vo() {
1088
1088
  var e = [];
1089
1089
  return g.array(t) ? (e[0] = t[0], e[1] = t[1]) : t.type === "touchend" ? t.touches.length === 1 ? (e[0] = t.touches[0], e[1] = t.changedTouches[0]) : t.touches.length === 0 && (e[0] = t.changedTouches[0], e[1] = t.changedTouches[1]) : (e[0] = t.touches[0], e[1] = t.touches[1]), e;
1090
1090
  }
1091
- function Vt(t) {
1091
+ function Yt(t) {
1092
1092
  for (var e = { pageX: 0, pageY: 0, clientX: 0, clientY: 0, screenX: 0, screenY: 0 }, n = 0; n < t.length; n++) {
1093
1093
  var r = t[n];
1094
1094
  for (var o in e) e[o] += r[o];
@@ -1109,7 +1109,7 @@ function Vo() {
1109
1109
  var n = e + "X", r = e + "Y", o = mt(t), i = o[1][n] - o[0][n], a = o[1][r] - o[0][r];
1110
1110
  return 180 * Math.atan2(a, i) / Math.PI;
1111
1111
  }
1112
- function Yt(t) {
1112
+ function Vt(t) {
1113
1113
  return g.string(t.pointerType) ? t.pointerType : g.number(t.pointerType) ? [void 0, void 0, "touch", "pen", "mouse"][t.pointerType] : /touch/.test(t.type || "") || t instanceof F.Touch ? "touch" : "mouse";
1114
1114
  }
1115
1115
  function $t(t) {
@@ -1146,7 +1146,7 @@ function Vo() {
1146
1146
  return t[He(t, e)];
1147
1147
  }, Ae = (function(t) {
1148
1148
  N(n, t);
1149
- var e = Y(n);
1149
+ var e = V(n);
1150
1150
  function n(r, o, i) {
1151
1151
  var a;
1152
1152
  C(this, n), (a = e.call(this, o._interaction)).dropzone = void 0, a.dragEvent = void 0, a.relatedTarget = void 0, a.draggable = void 0, a.propagationStopped = !1, a.immediatePropagationStopped = !1;
@@ -1202,9 +1202,9 @@ function Vo() {
1202
1202
  a.push(w ? p : null);
1203
1203
  }
1204
1204
  var x = (function(E) {
1205
- for (var S, T, O, j = [], V = 0; V < E.length; V++) {
1206
- var I = E[V], B = E[S];
1207
- if (I && V !== S) if (B) {
1205
+ for (var S, T, O, j = [], Y = 0; Y < E.length; Y++) {
1206
+ var I = E[Y], B = E[S];
1207
+ if (I && Y !== S) if (B) {
1208
1208
  var ve = b(I), oe = b(B);
1209
1209
  if (ve !== I.ownerDocument) if (oe !== I.ownerDocument) if (ve !== oe) {
1210
1210
  j = j.length ? j : P(B);
@@ -1217,15 +1217,15 @@ function Vo() {
1217
1217
  var ft = [be[Te - 1], be[Te], j[Te]];
1218
1218
  if (ft[0]) for (var Ue = ft[0].lastChild; Ue; ) {
1219
1219
  if (Ue === ft[1]) {
1220
- S = V, j = be;
1220
+ S = Y, j = be;
1221
1221
  break;
1222
1222
  }
1223
1223
  if (Ue === ft[2]) break;
1224
1224
  Ue = Ue.previousSibling;
1225
1225
  }
1226
- } else O = B, (parseInt(Q(T = I).getComputedStyle(T).zIndex, 10) || 0) >= (parseInt(Q(O).getComputedStyle(O).zIndex, 10) || 0) && (S = V);
1227
- else S = V;
1228
- } else S = V;
1226
+ } else O = B, (parseInt(Q(T = I).getComputedStyle(T).zIndex, 10) || 0) >= (parseInt(Q(O).getComputedStyle(O).zIndex, 10) || 0) && (S = Y);
1227
+ else S = Y;
1228
+ } else S = Y;
1229
1229
  }
1230
1230
  return S;
1231
1231
  })(a);
@@ -1269,8 +1269,8 @@ function Vo() {
1269
1269
  if (!(T = T || p.getRect(S))) return !!p.options.drop.checker && p.options.drop.checker(m, w, O, p, S, x, E);
1270
1270
  var j = p.options.drop.overlap;
1271
1271
  if (j === "pointer") {
1272
- var V = Le(x, E, "drag"), I = qt(m);
1273
- I.x += V.x, I.y += V.y;
1272
+ var Y = Le(x, E, "drag"), I = qt(m);
1273
+ I.x += Y.x, I.y += Y.y;
1274
1274
  var B = I.x > T.left && I.x < T.right, ve = I.y > T.top && I.y < T.bottom;
1275
1275
  O = B && ve;
1276
1276
  }
@@ -1443,8 +1443,8 @@ function Vo() {
1443
1443
  return i;
1444
1444
  }, filterEventType: function(t) {
1445
1445
  return t.search("resize") === 0;
1446
- }, defaultMargin: null }, Vn = ke, Yn = { id: "actions", install: function(t) {
1447
- t.usePlugin(Bn), t.usePlugin(Vn), t.usePlugin(ce), t.usePlugin(Hn);
1446
+ }, defaultMargin: null }, Yn = ke, Vn = { id: "actions", install: function(t) {
1447
+ t.usePlugin(Bn), t.usePlugin(Yn), t.usePlugin(ce), t.usePlugin(Hn);
1448
1448
  } }, Zt = 0, Se = { request: function(t) {
1449
1449
  return Ce(t);
1450
1450
  }, cancel: function(t) {
@@ -1839,7 +1839,7 @@ function Vo() {
1839
1839
  };
1840
1840
  return e && typeof e == "string" && (o._defaults = n, o._methods = r), o;
1841
1841
  }
1842
- function Ve(t) {
1842
+ function Ye(t) {
1843
1843
  var e = t.iEvent, n = t.interaction.modification.result;
1844
1844
  n && (e.modifiers = n.eventProps);
1845
1845
  }
@@ -1857,7 +1857,7 @@ function Vo() {
1857
1857
  }, "interactions:before-action-end": function(t) {
1858
1858
  var e = t.interaction, n = e.modification, r = n.beforeEnd(t);
1859
1859
  return e.edges = n.startEdges, r;
1860
- }, "interactions:action-start": Ve, "interactions:action-move": Ve, "interactions:action-end": Ve, "interactions:after-action-start": function(t) {
1860
+ }, "interactions:action-start": Ye, "interactions:action-move": Ye, "interactions:action-end": Ye, "interactions:after-action-start": function(t) {
1861
1861
  return t.interaction.modification.restoreInteractionCoords(t);
1862
1862
  }, "interactions:after-action-move": function(t) {
1863
1863
  return t.interaction.modification.restoreInteractionCoords(t);
@@ -1865,7 +1865,7 @@ function Vo() {
1865
1865
  return t.interaction.modification.stop(t);
1866
1866
  } } }, cn = or, un = { base: { preventDefault: "auto", deltaSource: "page" }, perAction: { enabled: !1, origin: { x: 0, y: 0 } }, actions: {} }, Ot = (function(t) {
1867
1867
  N(n, t);
1868
- var e = Y(n);
1868
+ var e = V(n);
1869
1869
  function n(r, o, i, a, s, l, u) {
1870
1870
  var c;
1871
1871
  C(this, n), (c = e.call(this, r)).relatedTarget = null, c.screenX = void 0, c.screenY = void 0, c.button = void 0, c.buttons = void 0, c.ctrlKey = void 0, c.shiftKey = void 0, c.altKey = void 0, c.metaKey = void 0, c.page = void 0, c.client = void 0, c.delta = void 0, c.rect = void 0, c.x0 = void 0, c.y0 = void 0, c.t0 = void 0, c.dt = void 0, c.duration = void 0, c.clientX0 = void 0, c.clientY0 = void 0, c.velocity = void 0, c.speed = void 0, c.swipe = void 0, c.axes = void 0, c.preEnd = void 0, s = s || r.element;
@@ -2135,7 +2135,7 @@ function Vo() {
2135
2135
  e.stop(t), e.start(t, t.interaction.coords.cur.page), e.applyToInteraction(t);
2136
2136
  }, "interactions:before-action-inertiastart": function(t) {
2137
2137
  return t.interaction.modification.setAndApply(t);
2138
- }, "interactions:action-resume": Ve, "interactions:action-inertiastart": Ve, "interactions:after-action-inertiastart": function(t) {
2138
+ }, "interactions:action-resume": Ye, "interactions:action-inertiastart": Ye, "interactions:after-action-inertiastart": function(t) {
2139
2139
  return t.interaction.modification.restoreInteractionCoords(t);
2140
2140
  }, "interactions:after-action-resume": function(t) {
2141
2141
  return t.interaction.modification.restoreInteractionCoords(t);
@@ -2189,7 +2189,7 @@ function Vo() {
2189
2189
  this.originalEvent.stopImmediatePropagation();
2190
2190
  } }]), t;
2191
2191
  })();
2192
- function Ye(t) {
2192
+ function Ve(t) {
2193
2193
  return g.object(t) ? { capture: !!t.capture, passive: !!t.passive } : { capture: !!t, passive: !1 };
2194
2194
  }
2195
2195
  function ct(t, e) {
@@ -2197,7 +2197,7 @@ function Vo() {
2197
2197
  }
2198
2198
  var vr = { id: "events", install: function(t) {
2199
2199
  var e, n = [], r = {}, o = [], i = { add: a, remove: s, addDelegate: function(c, p, m, w, x) {
2200
- var E = Ye(x);
2200
+ var E = Ve(x);
2201
2201
  if (!r[m]) {
2202
2202
  r[m] = [];
2203
2203
  for (var S = 0; S < o.length; S++) {
@@ -2205,20 +2205,20 @@ function Vo() {
2205
2205
  a(T, m, l), a(T, m, u, !0);
2206
2206
  }
2207
2207
  }
2208
- var O = r[m], j = Be(O, (function(V) {
2209
- return V.selector === c && V.context === p;
2208
+ var O = r[m], j = Be(O, (function(Y) {
2209
+ return Y.selector === c && Y.context === p;
2210
2210
  }));
2211
2211
  j || (j = { selector: c, context: p, listeners: [] }, O.push(j)), j.listeners.push({ func: w, options: E });
2212
2212
  }, removeDelegate: function(c, p, m, w, x) {
2213
- var E, S = Ye(x), T = r[m], O = !1;
2213
+ var E, S = Ve(x), T = r[m], O = !1;
2214
2214
  if (T)
2215
2215
  for (E = T.length - 1; E >= 0; E--) {
2216
2216
  var j = T[E];
2217
2217
  if (j.selector === c && j.context === p) {
2218
- for (var V = j.listeners, I = V.length - 1; I >= 0; I--) {
2219
- var B = V[I];
2218
+ for (var Y = j.listeners, I = Y.length - 1; I >= 0; I--) {
2219
+ var B = Y[I];
2220
2220
  if (B.func === w && ct(B.options, S)) {
2221
- V.splice(I, 1), V.length || (T.splice(E, 1), s(p, m, l), s(p, m, u, !0)), O = !0;
2221
+ Y.splice(I, 1), Y.length || (T.splice(E, 1), s(p, m, l), s(p, m, u, !0)), O = !0;
2222
2222
  break;
2223
2223
  }
2224
2224
  }
@@ -2228,7 +2228,7 @@ function Vo() {
2228
2228
  }, delegateListener: l, delegateUseCapture: u, delegatedEvents: r, documents: o, targets: n, supportsOptions: !1, supportsPassive: !1 };
2229
2229
  function a(c, p, m, w) {
2230
2230
  if (c.addEventListener) {
2231
- var x = Ye(w), E = Be(n, (function(S) {
2231
+ var x = Ve(w), E = Be(n, (function(S) {
2232
2232
  return S.eventTarget === c;
2233
2233
  }));
2234
2234
  E || (E = { eventTarget: c, events: {} }, n.push(E)), E.events[p] || (E.events[p] = []), Be(E.events[p], (function(S) {
@@ -2251,10 +2251,10 @@ function Vo() {
2251
2251
  }
2252
2252
  return;
2253
2253
  }
2254
- for (var V = Ye(w), I = 0; I < T.length; I++) {
2254
+ for (var Y = Ve(w), I = 0; I < T.length; I++) {
2255
2255
  var B = T[I];
2256
- if (B.func === m && ct(B.options, V)) {
2257
- c.removeEventListener(p, m, i.supportsOptions ? V : V.capture), T.splice(I, 1), T.length === 0 && (delete E.events[p], S = !0);
2256
+ if (B.func === m && ct(B.options, Y)) {
2257
+ c.removeEventListener(p, m, i.supportsOptions ? Y : Y.capture), T.splice(I, 1), T.length === 0 && (delete E.events[p], S = !0);
2258
2258
  break;
2259
2259
  }
2260
2260
  }
@@ -2264,10 +2264,10 @@ function Vo() {
2264
2264
  }
2265
2265
  }
2266
2266
  function l(c, p) {
2267
- for (var m = Ye(p), w = new hr(c), x = r[c.type], E = $t(c)[0], S = E; g.element(S); ) {
2267
+ for (var m = Ve(p), w = new hr(c), x = r[c.type], E = $t(c)[0], S = E; g.element(S); ) {
2268
2268
  for (var T = 0; T < x.length; T++) {
2269
- var O = x[T], j = O.selector, V = O.context;
2270
- if (fe(S, j) && ie(V, E) && ie(V, S)) {
2269
+ var O = x[T], j = O.selector, Y = O.context;
2270
+ if (fe(S, j) && ie(Y, E) && ie(Y, S)) {
2271
2271
  var I = O.listeners;
2272
2272
  w.currentTarget = S;
2273
2273
  for (var B = 0; B < I.length; B++) {
@@ -2346,7 +2346,7 @@ function Vo() {
2346
2346
  var mr = It, At = ["pointerDown", "pointerMove", "pointerUp", "updatePointer", "removePointer", "windowBlur"];
2347
2347
  function xn(t, e) {
2348
2348
  return function(n) {
2349
- var r = e.interactions.list, o = Yt(n), i = $t(n), a = i[0], s = i[1], l = [];
2349
+ var r = e.interactions.list, o = Vt(n), i = $t(n), a = i[0], s = i[1], l = [];
2350
2350
  if (/^touch/.test(n.type)) {
2351
2351
  e.prevTouchTime = e.now();
2352
2352
  for (var u = 0, c = n.changedTouches; u < c.length; u++) {
@@ -2365,8 +2365,8 @@ function Vo() {
2365
2365
  }
2366
2366
  }
2367
2367
  for (var O = 0; O < l.length; O++) {
2368
- var j = l[O], V = j[0], I = j[1], B = j[2];
2369
- j[3][t](V, n, I, B);
2368
+ var j = l[O], Y = j[0], I = j[1], B = j[2];
2369
+ j[3][t](Y, n, I, B);
2370
2370
  }
2371
2371
  };
2372
2372
  }
@@ -2404,7 +2404,7 @@ function Vo() {
2404
2404
  u[l].documentBlur(s);
2405
2405
  } }), t.prevTouchTime = 0, t.Interaction = (function(s) {
2406
2406
  N(u, s);
2407
- var l = Y(u);
2407
+ var l = V(u);
2408
2408
  function u() {
2409
2409
  return C(this, u), l.apply(this, arguments);
2410
2410
  }
@@ -2549,7 +2549,7 @@ function Vo() {
2549
2549
  var l = r.interactables.getExisting(a, s);
2550
2550
  return l || ((l = r.interactables.new(a, s)).events.global = i.globalEvents), l;
2551
2551
  };
2552
- return o.getPointerAverage = Vt, o.getTouchBBox = gt, o.getTouchDistance = yt, o.getTouchAngle = bt, o.getElementRect = we, o.getElementClientRect = xe, o.matchesSelector = fe, o.closest = de, o.globalEvents = {}, o.version = "1.10.27", o.scope = r, o.use = function(i, a) {
2552
+ return o.getPointerAverage = Yt, o.getTouchBBox = gt, o.getTouchDistance = yt, o.getTouchAngle = bt, o.getElementRect = we, o.getElementClientRect = xe, o.matchesSelector = fe, o.closest = de, o.globalEvents = {}, o.version = "1.10.27", o.scope = r, o.use = function(i, a) {
2553
2553
  return this.scope.usePlugin(i, a), this;
2554
2554
  }, o.isSet = function(i, a) {
2555
2555
  return !!this.scope.interactables.get(i, a && a.context);
@@ -2602,7 +2602,7 @@ function Vo() {
2602
2602
  var n = this;
2603
2603
  this.Interactable = (function(r) {
2604
2604
  N(i, r);
2605
- var o = Y(i);
2605
+ var o = V(i);
2606
2606
  function i() {
2607
2607
  return C(this, i), o.apply(this, arguments);
2608
2608
  }
@@ -2793,8 +2793,8 @@ function Vo() {
2793
2793
  (T = g.func(S) ? S(m, w, e._proxy, p, x) : S) && l.push({ x: (g.number(T.x) ? T.x : m) + p.x, y: (g.number(T.y) ? T.y : w) + p.y, range: g.number(T.range) ? T.range : o.range, source: S, index: x, offset: p });
2794
2794
  }
2795
2795
  for (var O = { target: null, inRange: !1, distance: 0, range: 0, delta: { x: 0, y: 0 } }, j = 0; j < l.length; j++) {
2796
- var V = l[j], I = V.range, B = V.x - s.x, ve = V.y - s.y, oe = je(B, ve), ge = oe <= I;
2797
- I === 1 / 0 && O.inRange && O.range !== 1 / 0 && (ge = !1), O.target && !(ge ? O.inRange && I !== 1 / 0 ? oe / I < O.distance / O.range : I === 1 / 0 && O.range !== 1 / 0 || oe < O.distance : !O.inRange && oe < O.distance) || (O.target = V, O.distance = oe, O.range = I, O.inRange = ge, O.delta.x = B, O.delta.y = ve);
2796
+ var Y = l[j], I = Y.range, B = Y.x - s.x, ve = Y.y - s.y, oe = je(B, ve), ge = oe <= I;
2797
+ I === 1 / 0 && O.inRange && O.range !== 1 / 0 && (ge = !1), O.target && !(ge ? O.inRange && I !== 1 / 0 ? oe / I < O.distance / O.range : I === 1 / 0 && O.range !== 1 / 0 || oe < O.distance : !O.inRange && oe < O.distance) || (O.target = Y, O.distance = oe, O.range = I, O.inRange = ge, O.delta.x = B, O.delta.y = ve);
2798
2798
  }
2799
2799
  return O.inRange && (n.x = O.target.x, n.y = O.target.y), r.closest = O, O;
2800
2800
  }, defaults: { range: 1 / 0, targets: null, offset: null, offsetWithOrigin: !0, origin: null, relativePoints: null, endOnly: !1, enabled: !1 } }, Lr = _e(Nt, "snap"), pt = { start: function(t) {
@@ -2830,10 +2830,10 @@ function Vo() {
2830
2830
  }
2831
2831
  } }, Hr = Fr, Mn = (function(t) {
2832
2832
  N(n, t);
2833
- var e = Y(n);
2833
+ var e = V(n);
2834
2834
  function n(r, o, i, a, s, l) {
2835
2835
  var u;
2836
- if (C(this, n), tt(ee(u = e.call(this, s)), i), i !== o && tt(ee(u), o), u.timeStamp = l, u.originalEvent = i, u.type = r, u.pointerId = Fe(o), u.pointerType = Yt(o), u.target = a, u.currentTarget = null, r === "tap") {
2836
+ if (C(this, n), tt(ee(u = e.call(this, s)), i), i !== o && tt(ee(u), o), u.timeStamp = l, u.originalEvent = i, u.type = r, u.pointerId = Fe(o), u.pointerType = Vt(o), u.target = a, u.currentTarget = null, r === "tap") {
2837
2837
  var c = s.getPointerIndex(o);
2838
2838
  u.dt = u.timeStamp - s.pointers[c].downTime;
2839
2839
  var p = u.timeStamp - s.tapTime;
@@ -2921,7 +2921,7 @@ function Vo() {
2921
2921
  var e = t.interaction;
2922
2922
  e.holdIntervalHandle && (clearInterval(e.holdIntervalHandle), e.holdIntervalHandle = null);
2923
2923
  }
2924
- var Vr = { id: "pointer-events/holdRepeat", install: function(t) {
2924
+ var Yr = { id: "pointer-events/holdRepeat", install: function(t) {
2925
2925
  t.usePlugin(We);
2926
2926
  var e = t.pointerEvents;
2927
2927
  e.defaults.holdRepeatInterval = 0, e.types.holdrepeat = t.actions.phaselessTypes.holdrepeat = !0;
@@ -2938,7 +2938,7 @@ function Vo() {
2938
2938
  e.pointerEvents.fire({ interaction: n, eventTarget: o, type: "hold", pointer: r, event: r }, e);
2939
2939
  }), a));
2940
2940
  }
2941
- } }) }, Yr = Vr, $r = { id: "pointer-events/interactableTargets", install: function(t) {
2941
+ } }) }, Vr = Yr, $r = { id: "pointer-events/interactableTargets", install: function(t) {
2942
2942
  var e = t.Interactable;
2943
2943
  e.prototype.pointerEvents = function(r) {
2944
2944
  return R(this.events.options, r), this;
@@ -2963,7 +2963,7 @@ function Vo() {
2963
2963
  var n = t.interactable, r = t.options;
2964
2964
  R(n.events.options, e.pointerEvents.defaults), R(n.events.options, r.pointerEvents || {});
2965
2965
  } } }, Wr = $r, Ur = { id: "pointer-events", install: function(t) {
2966
- t.usePlugin(Br), t.usePlugin(Yr), t.usePlugin(Wr);
2966
+ t.usePlugin(Br), t.usePlugin(Vr), t.usePlugin(Wr);
2967
2967
  } }, Xr = Ur, Gr = { id: "reflow", install: function(t) {
2968
2968
  var e = t.Interactable;
2969
2969
  t.actions.phases.reflow = !0, e.prototype.reflow = function(n) {
@@ -3006,13 +3006,13 @@ function Vo() {
3006
3006
  }, preventDefault: function() {
3007
3007
  } };
3008
3008
  })({ page: { x: E.x, y: E.y }, client: { x: E.x, y: E.y }, timeStamp: i.now() });
3009
- w = (function(T, O, j, V, I) {
3009
+ w = (function(T, O, j, Y, I) {
3010
3010
  var B = T.interactions.new({ pointerType: "reflow" }), ve = { interaction: B, event: I, pointer: I, eventTarget: j, phase: "reflow" };
3011
- B.interactable = O, B.element = j, B.prevEvent = I, B.updatePointer(I, I, j, !0), Ht(B.coords.delta), Tt(B.prepared, V), B._doPhase(ve);
3011
+ B.interactable = O, B.element = j, B.prevEvent = I, B.updatePointer(I, I, j, !0), Ht(B.coords.delta), Tt(B.prepared, Y), B._doPhase(ve);
3012
3012
  var oe = T.window, ge = oe.Promise, be = ge ? new ge((function(Te) {
3013
3013
  B._reflowResolve = Te;
3014
3014
  })) : void 0;
3015
- return B._reflowPromise = be, B.start(V, O, j), B._interacting ? (B.move(ve), B.end(I)) : (B.stop(), B._reflowResolve()), B.removePointer(I, I), be;
3015
+ return B._reflowPromise = be, B.start(Y, O, j), B._interacting ? (B.move(ve), B.end(I)) : (B.stop(), B._reflowResolve()), B.removePointer(I, I), be;
3016
3016
  })(i, r, p, o, S);
3017
3017
  }
3018
3018
  l && l.push(w);
@@ -3028,7 +3028,7 @@ function Vo() {
3028
3028
  r.splice(r.indexOf(o), 1);
3029
3029
  })(e.interactions.list, n));
3030
3030
  } } }, Kr = Gr;
3031
- if (he.use(ln), he.use(hn), he.use(Xr), he.use(fr), he.use(Hr), he.use(tr), he.use(Yn), he.use(Wn), he.use(Kr), he.default = he, y(h) === "object" && h) try {
3031
+ if (he.use(ln), he.use(hn), he.use(Xr), he.use(fr), he.use(Hr), he.use(tr), he.use(Vn), he.use(Wn), he.use(Kr), he.default = he, y(h) === "object" && h) try {
3032
3032
  h.exports = he;
3033
3033
  } catch {
3034
3034
  }
@@ -3036,8 +3036,8 @@ function Vo() {
3036
3036
  }));
3037
3037
  })(Ke, Ke.exports)), Ke.exports;
3038
3038
  }
3039
- var Yo = /* @__PURE__ */ Vo();
3040
- const jt = /* @__PURE__ */ Bo(Yo);
3039
+ var Vo = /* @__PURE__ */ Yo();
3040
+ const jt = /* @__PURE__ */ Bo(Vo);
3041
3041
  function In(h) {
3042
3042
  const v = document.createElement("input");
3043
3043
  v.type = "file", v.accept = "image/*", v.onchange = (f) => {
@@ -3338,16 +3338,16 @@ React keys must be passed directly to JSX without using spread:
3338
3338
  function ee(b) {
3339
3339
  return typeof b == "object" && b !== null && b.$$typeof === J;
3340
3340
  }
3341
- var Y = Jr, J = Symbol.for("react.transitional.element"), X = Symbol.for("react.portal"), U = Symbol.for("react.fragment"), te = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), ne = Symbol.for("react.consumer"), Q = Symbol.for("react.context"), se = Symbol.for("react.forward_ref"), K = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), le = Symbol.for("react.activity"), ce = Symbol.for("react.client.reference"), q = Y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, F = Array.isArray, Z = console.createTask ? console.createTask : function() {
3341
+ var V = Jr, J = Symbol.for("react.transitional.element"), X = Symbol.for("react.portal"), U = Symbol.for("react.fragment"), te = Symbol.for("react.strict_mode"), $ = Symbol.for("react.profiler"), ne = Symbol.for("react.consumer"), Q = Symbol.for("react.context"), se = Symbol.for("react.forward_ref"), K = Symbol.for("react.suspense"), g = Symbol.for("react.suspense_list"), re = Symbol.for("react.memo"), L = Symbol.for("react.lazy"), le = Symbol.for("react.activity"), ce = Symbol.for("react.client.reference"), q = V.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, W = Object.prototype.hasOwnProperty, F = Array.isArray, Z = console.createTask ? console.createTask : function() {
3342
3342
  return null;
3343
3343
  };
3344
- Y = {
3344
+ V = {
3345
3345
  react_stack_bottom_frame: function(b) {
3346
3346
  return b();
3347
3347
  }
3348
3348
  };
3349
- var G, ie = {}, de = Y.react_stack_bottom_frame.bind(
3350
- Y,
3349
+ var G, ie = {}, de = V.react_stack_bottom_frame.bind(
3350
+ V,
3351
3351
  C
3352
3352
  )(), pe = Z(d(C)), fe = {};
3353
3353
  Ge.Fragment = U, Ge.jsx = function(b, P, A) {