@iclips/ui 1.0.47 → 1.0.49

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.
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { jsx as l, jsxs as b, Fragment as qe } from "react/jsx-runtime";
2
2
  import * as Ma from "@radix-ui/react-accordion";
3
- import { ChevronDownIcon as qs, Home as B4, Folder as H4, Users as U4, Calendar as hi, BarChart3 as F4, Settings as I1, Pin as T1, Plus as qn, LayoutGrid as J4, FileText as j1, Star as D1, MessageSquare as Gc, Download as _c, Sparkles as Y4, ChevronRight as en, Zap as Q4, PanelLeftClose as Ks, PanelLeft as V4, Bell as G4, CheckIcon as Xs, CircleIcon as Wc, ChevronRightIcon as ef, User as tf, HelpCircle as _4, LogOut as W4, ChevronDown as Za, MoreHorizontal as E1, ChevronLeft as nf, Printer as $4, Eye as A1, ArrowRight as z1, ArrowLeft as Z4, Check as O1, Smile as P1, Trash2 as R1, AlertCircle as vr, Paperclip as xa, X as Ca, Type as q4, Send as K4, Bold as B1, Italic as H1, Underline as U1, List as F1, ListOrdered as J1, Link as Y1, ChevronUpIcon as X4, Clock as ai, CalendarIcon as Zo, MoreVertical as ev, CheckSquare as tv, Activity as nv, TrendingUp as rv, TrendingDown as iv, XIcon as Q1, SearchIcon as av, Undo as ov, Redo as sv, Heading1 as fv, Heading2 as lv, Heading3 as cv, Strikethrough as dv, AlignLeft as uv, AlignCenter as hv, AlignRight as pv, Quote as mv, Image as gv, PanelLeftOpen as $c, Youtube as bv, Twitter as vv, Facebook as wv, Linkedin as yv, Instagram as Mv, GripVertical as xv, CheckCircle2 as Cv, Circle as V1, Edit as Gl, MinusIcon as Lv, ChevronUp as Nv, EyeOff as kv, Euro as Sv, DollarSign as Iv, Coins as Tv, MoreHorizontalIcon as jv, ChevronLeftIcon as Dv, GripVerticalIcon as Ev, PanelLeftIcon as Av, Github as zv, ChevronsLeft as Ov, ChevronsRight as Pv, Filter as G1, Search as _1, ArrowUpDown as Rv, Link2 as Bv, Pencil as Hv, RefreshCw as Uv, PlusCircle as Fv } from "lucide-react";
3
+ import { ChevronDownIcon as qs, Home as B4, Folder as H4, Users as U4, Calendar as hi, BarChart3 as F4, Settings as I1, Pin as T1, Plus as qn, LayoutGrid as J4, FileText as j1, Star as D1, MessageSquare as _c, Download as Gc, Sparkles as Y4, ChevronRight as en, Zap as Q4, PanelLeftClose as Ks, PanelLeft as V4, Bell as _4, CheckIcon as Xs, CircleIcon as Wc, ChevronRightIcon as ef, User as tf, HelpCircle as G4, LogOut as W4, ChevronDown as Za, MoreHorizontal as E1, ChevronLeft as nf, Printer as $4, Eye as A1, ArrowRight as z1, ArrowLeft as Z4, Check as O1, Smile as P1, Trash2 as R1, AlertCircle as vr, Paperclip as xa, X as Ca, Type as q4, Send as K4, Bold as B1, Italic as H1, Underline as U1, List as F1, ListOrdered as J1, Link as Y1, ChevronUpIcon as X4, Clock as ai, CalendarIcon as Zo, MoreVertical as ev, CheckSquare as tv, Activity as nv, TrendingUp as rv, TrendingDown as iv, XIcon as Q1, SearchIcon as av, Undo as ov, Redo as sv, Heading1 as fv, Heading2 as lv, Heading3 as cv, Strikethrough as dv, AlignLeft as uv, AlignCenter as hv, AlignRight as pv, Quote as mv, Image as gv, PanelLeftOpen as $c, Youtube as bv, Twitter as vv, Facebook as wv, Linkedin as yv, Instagram as Mv, GripVertical as xv, CheckCircle2 as Cv, Circle as V1, Edit as _l, MinusIcon as Lv, ChevronUp as Nv, EyeOff as kv, Euro as Sv, DollarSign as Iv, Coins as Tv, MoreHorizontalIcon as jv, ChevronLeftIcon as Dv, GripVerticalIcon as Ev, PanelLeftIcon as Av, Github as zv, ChevronsLeft as Ov, ChevronsRight as Pv, Filter as _1, Search as G1, ArrowUpDown as Rv, Link2 as Bv, Pencil as Hv, RefreshCw as Uv, PlusCircle as Fv } from "lucide-react";
4
4
  import { clsx as Jv } from "clsx";
5
5
  import { twMerge as Yv } from "tailwind-merge";
6
6
  import * as T from "react";
7
- import ut, { useState as ne, useRef as Ae, useDebugValue as W1, useEffect as ue, forwardRef as $1, useLayoutEffect as Zc, version as Iu, createContext as Ti, useContext as Xe, useImperativeHandle as Qv, createElement as O, memo as qc, createRef as dn, Fragment as Kc, useCallback as Ye, useMemo as ye, Suspense as Vv, Component as Gv, isValidElement as _v, cloneElement as Tu } from "react";
7
+ import ut, { useState as ne, useRef as ze, useDebugValue as W1, useEffect as ue, forwardRef as $1, useLayoutEffect as Zc, version as Iu, createContext as Ti, useContext as Xe, useImperativeHandle as Qv, createElement as O, memo as qc, createRef as dn, Fragment as Kc, useCallback as Ye, useMemo as we, Suspense as Vv, Component as _v, isValidElement as Gv, cloneElement as Tu } from "react";
8
8
  import * as sn from "@radix-ui/react-alert-dialog";
9
9
  import { Slot as In } from "@radix-ui/react-slot";
10
10
  import { cva as fn } from "class-variance-authority";
@@ -17,7 +17,7 @@ import Zv from "embla-carousel-react";
17
17
  import * as ed from "recharts";
18
18
  import * as ju from "@radix-ui/react-checkbox";
19
19
  import { HexColorPicker as qv } from "react-colorful";
20
- import * as Gn from "@radix-ui/react-popover";
20
+ import * as _n from "@radix-ui/react-popover";
21
21
  import * as Kv from "@radix-ui/react-label";
22
22
  import * as td from "@radix-ui/react-collapsible";
23
23
  import { format as oe, subDays as Du, startOfMonth as qo, endOfMonth as nd, subMonths as Ko, startOfWeek as Eu, endOfWeek as Au, eachDayOfInterval as Z1, isToday as rf, isSameDay as af, isSameMonth as Xv, setHours as ew, getHours as q1, getMinutes as K1, addMonths as X1, addDays as wo, addHours as ep, differenceInMinutes as tw, differenceInDays as ta, isWeekend as zu, formatDistanceToNow as nw } from "date-fns";
@@ -30,16 +30,16 @@ import * as ot from "@radix-ui/react-select";
30
30
  import * as Ou from "@radix-ui/react-progress";
31
31
  import { Command as zr } from "cmdk";
32
32
  import * as je from "@radix-ui/react-dialog";
33
- import * as Ge from "@radix-ui/react-context-menu";
33
+ import * as _e from "@radix-ui/react-context-menu";
34
34
  import * as sw from "@radix-ui/react-toggle";
35
35
  import { Drawer as Kn } from "vaul";
36
36
  import * as of from "@radix-ui/react-tabs";
37
37
  import { FormProvider as fw, Controller as lw, useFormContext as cw, useFormState as dw } from "react-hook-form";
38
38
  import * as Xo from "@radix-ui/react-hover-card";
39
39
  import { OTPInput as uw, OTPInputContext as hw } from "input-otp";
40
- import * as _e from "@radix-ui/react-menubar";
40
+ import * as Ge from "@radix-ui/react-menubar";
41
41
  import * as Or from "@radix-ui/react-navigation-menu";
42
- import * as _l from "@radix-ui/react-radio-group";
42
+ import * as Gl from "@radix-ui/react-radio-group";
43
43
  import * as rd from "react-resizable-panels";
44
44
  import * as yo from "@radix-ui/react-slider";
45
45
  import { useTheme as pw } from "next-themes";
@@ -240,7 +240,7 @@ function VA({
240
240
  }
241
241
  );
242
242
  }
243
- function GA({
243
+ function _A({
244
244
  className: t,
245
245
  ...e
246
246
  }) {
@@ -252,7 +252,7 @@ function GA({
252
252
  }
253
253
  );
254
254
  }
255
- function _A({
255
+ function GA({
256
256
  className: t,
257
257
  ...e
258
258
  }) {
@@ -393,7 +393,7 @@ const ww = fn(
393
393
  variant: "default"
394
394
  }
395
395
  }
396
- ), we = T.forwardRef(({ className: t, variant: e, asChild: n = !1, ...r }, i) => /* @__PURE__ */ l(
396
+ ), ve = T.forwardRef(({ className: t, variant: e, asChild: n = !1, ...r }, i) => /* @__PURE__ */ l(
397
397
  n ? In : "span",
398
398
  {
399
399
  ref: i,
@@ -402,7 +402,7 @@ const ww = fn(
402
402
  ...r
403
403
  }
404
404
  ));
405
- we.displayName = "Badge";
405
+ ve.displayName = "Badge";
406
406
  const Ru = {
407
407
  p395de780: "M0 1.88343C0 0.870644 0.847464 0 1.86025 0C2.89622 0 3.74369 0.871417 3.74369 1.88343C3.74369 2.89622 2.89622 3.74446 1.86025 3.74446C0.847464 3.74446 0 2.89622 0 1.88343Z",
408
408
  p9466600: "M14.366 0.0315111C9.86678 -0.373296 6.07442 3.17572 6.07442 7.59306V25.1303C6.07442 27.4664 7.74695 29.567 10.0661 29.8474C12.8287 30.1811 15.1857 28.0234 15.1857 25.3258V15.2102V14.0661C15.1857 13.1908 14.4757 12.4809 13.6004 12.4809H12.1488V15.2102V25.2161C12.1488 25.9847 11.5355 26.7689 10.7699 26.8384C9.86987 26.9195 9.11125 26.2095 9.11125 25.3258V7.78928C9.11125 5.45314 10.783 3.35263 13.1021 3.07142C15.8647 2.73692 18.2225 4.8946 18.2225 7.59306V21.0459C18.2225 21.0459 18.2225 21.0931 18.2225 21.1595C18.2225 21.9483 18.2225 25.3428 18.2225 25.3605C18.2024 29.7655 14.4124 33.2967 9.91931 32.8858C5.96936 32.525 3.03682 29.0355 3.03682 25.0693V15.1291V12.4816H1.58524C0.709959 12.4816 0 13.1916 0 14.0669V25.0152C0 30.6014 4.18017 35.4676 9.74781 35.9195C15.6461 36.3977 20.6529 32.029 21.2083 26.3725C21.2145 26.3053 21.2408 23.8325 21.2531 21.8216L21.2593 21.8231V7.85031C21.2601 3.87872 18.3206 0.386876 14.366 0.0315111Z"
@@ -501,8 +501,8 @@ const yw = [
501
501
  { label: "Todos os Projetos", icon: J4 },
502
502
  { label: "Documentos", icon: j1, badge: "3" },
503
503
  { label: "Favoritos", icon: D1, chevron: !0 },
504
- { label: "Comentários", icon: Gc, badge: "12", highlighted: !0 },
505
- { label: "Downloads", icon: _c },
504
+ { label: "Comentários", icon: _c, badge: "12", highlighted: !0 },
505
+ { label: "Downloads", icon: Gc },
506
506
  { label: "Recentes", icon: Y4, chevron: !0 }
507
507
  ];
508
508
  function qA({
@@ -594,7 +594,7 @@ function qA({
594
594
  /* @__PURE__ */ l(D, { className: "h-4 w-4 shrink-0" }),
595
595
  /* @__PURE__ */ l("span", { className: M("flex-1 text-left", S.highlighted && "font-medium"), children: S.label }),
596
596
  S.badge && /* @__PURE__ */ l(
597
- we,
597
+ ve,
598
598
  {
599
599
  variant: S.highlighted ? "default" : "secondary",
600
600
  className: "min-w-5 px-1.5 text-xs",
@@ -631,7 +631,7 @@ function qA({
631
631
  /* @__PURE__ */ l("h1", { className: "text-base font-semibold", children: e })
632
632
  ] }),
633
633
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
634
- /* @__PURE__ */ l(B, { variant: "ghost", size: "icon", className: "h-8 w-8 p-0", children: /* @__PURE__ */ l(G4, { className: "h-4 w-4" }) }),
634
+ /* @__PURE__ */ l(B, { variant: "ghost", size: "icon", className: "h-8 w-8 p-0", children: /* @__PURE__ */ l(_4, { className: "h-4 w-4" }) }),
635
635
  r && /* @__PURE__ */ l(
636
636
  B,
637
637
  {
@@ -915,7 +915,7 @@ const Lw = [
915
915
  },
916
916
  {
917
917
  label: "Ajuda",
918
- icon: _4,
918
+ icon: G4,
919
919
  onClick: () => console.log("Ajuda clicked")
920
920
  }
921
921
  ], Bu = {
@@ -1133,7 +1133,7 @@ function s8({
1133
1133
  ) }),
1134
1134
  /* @__PURE__ */ l("span", { className: M("flex-1 text-left"), children: y.label }),
1135
1135
  y.badge && /* @__PURE__ */ l(
1136
- we,
1136
+ ve,
1137
1137
  {
1138
1138
  variant: "secondary",
1139
1139
  className: M(
@@ -1560,7 +1560,7 @@ const Pw = {
1560
1560
  narrow: ["1", "2", "3", "4"],
1561
1561
  abbreviated: ["T1", "T2", "T3", "T4"],
1562
1562
  wide: ["1º trimestre", "2º trimestre", "3º trimestre", "4º trimestre"]
1563
- }, Gw = {
1563
+ }, _w = {
1564
1564
  narrow: ["j", "f", "m", "a", "m", "j", "j", "a", "s", "o", "n", "d"],
1565
1565
  abbreviated: [
1566
1566
  "jan",
@@ -1590,7 +1590,7 @@ const Pw = {
1590
1590
  "novembro",
1591
1591
  "dezembro"
1592
1592
  ]
1593
- }, _w = {
1593
+ }, Gw = {
1594
1594
  narrow: ["D", "S", "T", "Q", "Q", "S", "S"],
1595
1595
  short: ["dom", "seg", "ter", "qua", "qui", "sex", "sab"],
1596
1596
  abbreviated: [
@@ -1688,11 +1688,11 @@ const Pw = {
1688
1688
  argumentCallback: (t) => t - 1
1689
1689
  }),
1690
1690
  month: Ui({
1691
- values: Gw,
1691
+ values: _w,
1692
1692
  defaultWidth: "wide"
1693
1693
  }),
1694
1694
  day: Ui({
1695
- values: _w,
1695
+ values: Gw,
1696
1696
  defaultWidth: "wide"
1697
1697
  }),
1698
1698
  dayPeriod: Ui({
@@ -2649,7 +2649,7 @@ function u8({
2649
2649
  onClick: g,
2650
2650
  className: "gap-2",
2651
2651
  children: [
2652
- /* @__PURE__ */ l(_c, { className: "h-4 w-4" }),
2652
+ /* @__PURE__ */ l(Gc, { className: "h-4 w-4" }),
2653
2653
  "Download PDF"
2654
2654
  ]
2655
2655
  }
@@ -3132,12 +3132,12 @@ function wy({
3132
3132
  function dt({
3133
3133
  ...t
3134
3134
  }) {
3135
- return /* @__PURE__ */ l(Gn.Root, { "data-slot": "popover", ...t });
3135
+ return /* @__PURE__ */ l(_n.Root, { "data-slot": "popover", ...t });
3136
3136
  }
3137
- const it = T.forwardRef((t, e) => /* @__PURE__ */ l(Gn.Trigger, { ref: e, "data-slot": "popover-trigger", ...t }));
3138
- it.displayName = Gn.Trigger.displayName;
3139
- const at = T.forwardRef(({ className: t, align: e = "center", sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ l(Gn.Portal, { children: /* @__PURE__ */ l(
3140
- Gn.Content,
3137
+ const it = T.forwardRef((t, e) => /* @__PURE__ */ l(_n.Trigger, { ref: e, "data-slot": "popover-trigger", ...t }));
3138
+ it.displayName = _n.Trigger.displayName;
3139
+ const at = T.forwardRef(({ className: t, align: e = "center", sideOffset: n = 4, ...r }, i) => /* @__PURE__ */ l(_n.Portal, { children: /* @__PURE__ */ l(
3140
+ _n.Content,
3141
3141
  {
3142
3142
  ref: i,
3143
3143
  "data-slot": "popover-content",
@@ -3150,10 +3150,10 @@ const at = T.forwardRef(({ className: t, align: e = "center", sideOffset: n = 4,
3150
3150
  ...r
3151
3151
  }
3152
3152
  ) }));
3153
- at.displayName = Gn.Content.displayName;
3154
- const yy = T.forwardRef((t, e) => /* @__PURE__ */ l(Gn.Anchor, { ref: e, "data-slot": "popover-anchor", ...t }));
3155
- yy.displayName = Gn.Anchor.displayName;
3156
- function _n({ className: t, type: e, ...n }) {
3153
+ at.displayName = _n.Content.displayName;
3154
+ const yy = T.forwardRef((t, e) => /* @__PURE__ */ l(_n.Anchor, { ref: e, "data-slot": "popover-anchor", ...t }));
3155
+ yy.displayName = _n.Anchor.displayName;
3156
+ function Gn({ className: t, type: e, ...n }) {
3157
3157
  return /* @__PURE__ */ l(
3158
3158
  "input",
3159
3159
  {
@@ -3235,7 +3235,7 @@ function C8({
3235
3235
  /* @__PURE__ */ b("div", { className: "relative flex-1", children: [
3236
3236
  /* @__PURE__ */ l("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-sm text-muted-foreground", children: "#" }),
3237
3237
  /* @__PURE__ */ l(
3238
- _n,
3238
+ Gn,
3239
3239
  {
3240
3240
  value: a.replace("#", "").toUpperCase(),
3241
3241
  onChange: d,
@@ -3306,7 +3306,7 @@ function C8({
3306
3306
  /* @__PURE__ */ b("div", { className: "relative flex-1", children: [
3307
3307
  /* @__PURE__ */ l("span", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground", children: "#" }),
3308
3308
  /* @__PURE__ */ l(
3309
- _n,
3309
+ Gn,
3310
3310
  {
3311
3311
  value: a.replace("#", "").toUpperCase(),
3312
3312
  onChange: d,
@@ -5573,7 +5573,7 @@ class Jn {
5573
5573
  Parse a document from the content of a DOM node.
5574
5574
  */
5575
5575
  parse(e, n = {}) {
5576
- let r = new Gu(this, n, !1);
5576
+ let r = new _u(this, n, !1);
5577
5577
  return r.addAll(e, de.none, n.from, n.to), r.finish();
5578
5578
  }
5579
5579
  /**
@@ -5585,7 +5585,7 @@ class Jn {
5585
5585
  the left of the input and the end of nodes at the end.
5586
5586
  */
5587
5587
  parseSlice(e, n = {}) {
5588
- let r = new Gu(this, n, !0);
5588
+ let r = new _u(this, n, !0);
5589
5589
  return r.addAll(e, de.none, n.from, n.to), U.maxOpen(r.finish());
5590
5590
  }
5591
5591
  /**
@@ -5642,13 +5642,13 @@ class Jn {
5642
5642
  for (let i in e.marks) {
5643
5643
  let a = e.marks[i].spec.parseDOM;
5644
5644
  a && a.forEach((o) => {
5645
- r(o = _u(o)), o.mark || o.ignore || o.clearMark || (o.mark = i);
5645
+ r(o = Gu(o)), o.mark || o.ignore || o.clearMark || (o.mark = i);
5646
5646
  });
5647
5647
  }
5648
5648
  for (let i in e.nodes) {
5649
5649
  let a = e.nodes[i].spec.parseDOM;
5650
5650
  a && a.forEach((o) => {
5651
- r(o = _u(o)), o.node || o.ignore || o.mark || (o.node = i);
5651
+ r(o = Gu(o)), o.node || o.ignore || o.mark || (o.node = i);
5652
5652
  });
5653
5653
  }
5654
5654
  return n;
@@ -5739,7 +5739,7 @@ class xo {
5739
5739
  return this.type ? this.type.inlineContent : this.content.length ? this.content[0].isInline : e.parentNode && !Tp.hasOwnProperty(e.parentNode.nodeName.toLowerCase());
5740
5740
  }
5741
5741
  }
5742
- class Gu {
5742
+ class _u {
5743
5743
  constructor(e, n, r) {
5744
5744
  this.parser = e, this.options = n, this.isOpen = r, this.open = 0, this.localPreserveWS = !1;
5745
5745
  let i = n.topNode, a, o = Vu(null, n.preserveWhitespace, 0) | (r ? oa : 0);
@@ -6030,7 +6030,7 @@ function Yy(t) {
6030
6030
  function Qy(t, e) {
6031
6031
  return (t.matches || t.msMatchesSelector || t.webkitMatchesSelector || t.mozMatchesSelector).call(t, e);
6032
6032
  }
6033
- function _u(t) {
6033
+ function Gu(t) {
6034
6034
  let e = {};
6035
6035
  for (let n in t)
6036
6036
  e[n] = t[n];
@@ -6172,9 +6172,9 @@ function il(t) {
6172
6172
  const Zu = /* @__PURE__ */ new WeakMap();
6173
6173
  function Vy(t) {
6174
6174
  let e = Zu.get(t);
6175
- return e === void 0 && Zu.set(t, e = Gy(t)), e;
6175
+ return e === void 0 && Zu.set(t, e = _y(t)), e;
6176
6176
  }
6177
- function Gy(t) {
6177
+ function _y(t) {
6178
6178
  let e = null;
6179
6179
  function n(r) {
6180
6180
  if (r && typeof r == "object")
@@ -6231,7 +6231,7 @@ function Ho(t, e, n, r) {
6231
6231
  return { dom: f, contentDOM: s };
6232
6232
  }
6233
6233
  const Dp = 65535, Ep = Math.pow(2, 16);
6234
- function _y(t, e) {
6234
+ function Gy(t, e) {
6235
6235
  return t + e * Ep;
6236
6236
  }
6237
6237
  function qu(t) {
@@ -6317,7 +6317,7 @@ class gt {
6317
6317
  let p = c ? e == f ? -1 : e == u ? 1 : n : n, h = f + i + (p < 0 ? 0 : d);
6318
6318
  if (r)
6319
6319
  return h;
6320
- let m = e == (n < 0 ? f : u) ? null : _y(s / 3, e - f), g = e == f ? zp : e == u ? Ap : Uo;
6320
+ let m = e == (n < 0 ? f : u) ? null : Gy(s / 3, e - f), g = e == f ? zp : e == u ? Ap : Uo;
6321
6321
  return (n < 0 ? e != f : e != u) && (g |= Op), new Xl(h, g, m);
6322
6322
  }
6323
6323
  i += d - c;
@@ -6577,7 +6577,7 @@ class Hn extends et {
6577
6577
  return Te.fromReplace(e, this.from, this.to, a);
6578
6578
  }
6579
6579
  invert() {
6580
- return new _t(this.from, this.to, this.mark);
6580
+ return new Gt(this.from, this.to, this.mark);
6581
6581
  }
6582
6582
  map(e) {
6583
6583
  let n = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
@@ -6604,7 +6604,7 @@ class Hn extends et {
6604
6604
  }
6605
6605
  }
6606
6606
  et.jsonID("addMark", Hn);
6607
- class _t extends et {
6607
+ class Gt extends et {
6608
6608
  /**
6609
6609
  Create a mark-removing step.
6610
6610
  */
@@ -6620,10 +6620,10 @@ class _t extends et {
6620
6620
  }
6621
6621
  map(e) {
6622
6622
  let n = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
6623
- return n.deleted && r.deleted || n.pos >= r.pos ? null : new _t(n.pos, r.pos, this.mark);
6623
+ return n.deleted && r.deleted || n.pos >= r.pos ? null : new Gt(n.pos, r.pos, this.mark);
6624
6624
  }
6625
6625
  merge(e) {
6626
- return e instanceof _t && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new _t(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
6626
+ return e instanceof Gt && e.mark.eq(this.mark) && this.from <= e.to && this.to >= e.from ? new Gt(Math.min(this.from, e.from), Math.max(this.to, e.to), this.mark) : null;
6627
6627
  }
6628
6628
  toJSON() {
6629
6629
  return {
@@ -6639,10 +6639,10 @@ class _t extends et {
6639
6639
  static fromJSON(e, n) {
6640
6640
  if (typeof n.from != "number" || typeof n.to != "number")
6641
6641
  throw new RangeError("Invalid input for RemoveMarkStep.fromJSON");
6642
- return new _t(n.from, n.to, e.markFromJSON(n.mark));
6642
+ return new Gt(n.from, n.to, e.markFromJSON(n.mark));
6643
6643
  }
6644
6644
  }
6645
- et.jsonID("removeMark", _t);
6645
+ et.jsonID("removeMark", Gt);
6646
6646
  class Un extends et {
6647
6647
  /**
6648
6648
  Create a node mark step.
@@ -6722,7 +6722,7 @@ class Ir extends et {
6722
6722
  }
6723
6723
  }
6724
6724
  et.jsonID("removeNodeMark", Ir);
6725
- class Oe extends et {
6725
+ class Pe extends et {
6726
6726
  /**
6727
6727
  The given `slice` should fit the 'gap' between `from` and
6728
6728
  `to`—the depths must line up, and the surrounding nodes must be
@@ -6742,21 +6742,21 @@ class Oe extends et {
6742
6742
  return new gt([this.from, this.to - this.from, this.slice.size]);
6743
6743
  }
6744
6744
  invert(e) {
6745
- return new Oe(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
6745
+ return new Pe(this.from, this.from + this.slice.size, e.slice(this.from, this.to));
6746
6746
  }
6747
6747
  map(e) {
6748
6748
  let n = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1);
6749
- return n.deletedAcross && r.deletedAcross ? null : new Oe(n.pos, Math.max(n.pos, r.pos), this.slice, this.structure);
6749
+ return n.deletedAcross && r.deletedAcross ? null : new Pe(n.pos, Math.max(n.pos, r.pos), this.slice, this.structure);
6750
6750
  }
6751
6751
  merge(e) {
6752
- if (!(e instanceof Oe) || e.structure || this.structure)
6752
+ if (!(e instanceof Pe) || e.structure || this.structure)
6753
6753
  return null;
6754
6754
  if (this.from + this.slice.size == e.from && !this.slice.openEnd && !e.slice.openStart) {
6755
6755
  let n = this.slice.size + e.slice.size == 0 ? U.empty : new U(this.slice.content.append(e.slice.content), this.slice.openStart, e.slice.openEnd);
6756
- return new Oe(this.from, this.to + (e.to - e.from), n, this.structure);
6756
+ return new Pe(this.from, this.to + (e.to - e.from), n, this.structure);
6757
6757
  } else if (e.to == this.from && !this.slice.openStart && !e.slice.openEnd) {
6758
6758
  let n = this.slice.size + e.slice.size == 0 ? U.empty : new U(e.slice.content.append(this.slice.content), e.slice.openStart, this.slice.openEnd);
6759
- return new Oe(e.from, this.to, n, this.structure);
6759
+ return new Pe(e.from, this.to, n, this.structure);
6760
6760
  } else
6761
6761
  return null;
6762
6762
  }
@@ -6770,11 +6770,11 @@ class Oe extends et {
6770
6770
  static fromJSON(e, n) {
6771
6771
  if (typeof n.from != "number" || typeof n.to != "number")
6772
6772
  throw new RangeError("Invalid input for ReplaceStep.fromJSON");
6773
- return new Oe(n.from, n.to, U.fromJSON(e, n.slice), !!n.structure);
6773
+ return new Pe(n.from, n.to, U.fromJSON(e, n.slice), !!n.structure);
6774
6774
  }
6775
6775
  }
6776
- et.jsonID("replace", Oe);
6777
- class Re extends et {
6776
+ et.jsonID("replace", Pe);
6777
+ class Be extends et {
6778
6778
  /**
6779
6779
  Create a replace-around step with the given range and gap.
6780
6780
  `insert` should be the point in the slice into which the content
@@ -6805,11 +6805,11 @@ class Re extends et {
6805
6805
  }
6806
6806
  invert(e) {
6807
6807
  let n = this.gapTo - this.gapFrom;
6808
- return new Re(this.from, this.from + this.slice.size + n, this.from + this.insert, this.from + this.insert + n, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
6808
+ return new Be(this.from, this.from + this.slice.size + n, this.from + this.insert, this.from + this.insert + n, e.slice(this.from, this.to).removeBetween(this.gapFrom - this.from, this.gapTo - this.from), this.gapFrom - this.from, this.structure);
6809
6809
  }
6810
6810
  map(e) {
6811
6811
  let n = e.mapResult(this.from, 1), r = e.mapResult(this.to, -1), i = this.from == this.gapFrom ? n.pos : e.map(this.gapFrom, -1), a = this.to == this.gapTo ? r.pos : e.map(this.gapTo, 1);
6812
- return n.deletedAcross && r.deletedAcross || i < n.pos || a > r.pos ? null : new Re(n.pos, r.pos, i, a, this.slice, this.insert, this.structure);
6812
+ return n.deletedAcross && r.deletedAcross || i < n.pos || a > r.pos ? null : new Be(n.pos, r.pos, i, a, this.slice, this.insert, this.structure);
6813
6813
  }
6814
6814
  toJSON() {
6815
6815
  let e = {
@@ -6828,10 +6828,10 @@ class Re extends et {
6828
6828
  static fromJSON(e, n) {
6829
6829
  if (typeof n.from != "number" || typeof n.to != "number" || typeof n.gapFrom != "number" || typeof n.gapTo != "number" || typeof n.insert != "number")
6830
6830
  throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
6831
- return new Re(n.from, n.to, n.gapFrom, n.gapTo, U.fromJSON(e, n.slice), n.insert, !!n.structure);
6831
+ return new Be(n.from, n.to, n.gapFrom, n.gapTo, U.fromJSON(e, n.slice), n.insert, !!n.structure);
6832
6832
  }
6833
6833
  }
6834
- et.jsonID("replaceAround", Re);
6834
+ et.jsonID("replaceAround", Be);
6835
6835
  function ec(t, e, n) {
6836
6836
  let r = t.resolve(e), i = n - e, a = r.depth;
6837
6837
  for (; i > 0 && a > 0 && r.indexAfter(a) == r.node(a).childCount; )
@@ -6855,7 +6855,7 @@ function $y(t, e, n, r) {
6855
6855
  if (!r.isInSet(u) && d.type.allowsMarkType(r.type)) {
6856
6856
  let p = Math.max(c, e), h = Math.min(c + f.nodeSize, n), m = r.addToSet(u);
6857
6857
  for (let g = 0; g < u.length; g++)
6858
- u[g].isInSet(m) || (o && o.to == p && o.mark.eq(u[g]) ? o.to = h : i.push(o = new _t(p, h, u[g])));
6858
+ u[g].isInSet(m) || (o && o.to == p && o.mark.eq(u[g]) ? o.to = h : i.push(o = new Gt(p, h, u[g])));
6859
6859
  s && s.to == p ? s.to = h : a.push(s = new Hn(p, h, r));
6860
6860
  }
6861
6861
  }), i.forEach((f) => t.step(f)), a.forEach((f) => t.step(f));
@@ -6883,22 +6883,22 @@ function Zy(t, e, n, r) {
6883
6883
  p ? (p.to = c, p.step = a) : i.push({ style: u, from: Math.max(s, e), to: c, step: a });
6884
6884
  }
6885
6885
  }
6886
- }), i.forEach((o) => t.step(new _t(o.from, o.to, o.style)));
6886
+ }), i.forEach((o) => t.step(new Gt(o.from, o.to, o.style)));
6887
6887
  }
6888
6888
  function od(t, e, n, r = n.contentMatch, i = !0) {
6889
6889
  let a = t.doc.nodeAt(e), o = [], s = e + 1;
6890
6890
  for (let f = 0; f < a.childCount; f++) {
6891
6891
  let c = a.child(f), d = s + c.nodeSize, u = r.matchType(c.type);
6892
6892
  if (!u)
6893
- o.push(new Oe(s, d, U.empty));
6893
+ o.push(new Pe(s, d, U.empty));
6894
6894
  else {
6895
6895
  r = u;
6896
6896
  for (let p = 0; p < c.marks.length; p++)
6897
- n.allowsMarkType(c.marks[p].type) || t.step(new _t(s, d, c.marks[p]));
6897
+ n.allowsMarkType(c.marks[p].type) || t.step(new Gt(s, d, c.marks[p]));
6898
6898
  if (i && c.isText && n.whitespace != "pre") {
6899
6899
  let p, h = /\r?\n|\r/g, m;
6900
6900
  for (; p = h.exec(c.text); )
6901
- m || (m = new U(E.from(n.schema.text(" ", n.allowedMarks(c.marks))), 0, 0)), o.push(new Oe(s + p.index, s + p.index + p[0].length, m));
6901
+ m || (m = new U(E.from(n.schema.text(" ", n.allowedMarks(c.marks))), 0, 0)), o.push(new Pe(s + p.index, s + p.index + p[0].length, m));
6902
6902
  }
6903
6903
  }
6904
6904
  s = d;
@@ -6932,7 +6932,7 @@ function Ky(t, e, n) {
6932
6932
  let p = E.empty, h = 0;
6933
6933
  for (let m = a, g = !1; m > n; m--)
6934
6934
  g || i.after(m + 1) < i.end(m) ? (g = !0, p = E.from(i.node(m).copy(p)), h++) : c++;
6935
- t.step(new Re(f, c, o, s, new U(d.append(p), u, h), d.size - u, !0));
6935
+ t.step(new Be(f, c, o, s, new U(d.append(p), u, h), d.size - u, !0));
6936
6936
  }
6937
6937
  function sd(t, e, n = null, r = t) {
6938
6938
  let i = Xy(t, e), a = i && e3(r, e);
@@ -6968,7 +6968,7 @@ function t3(t, e, n) {
6968
6968
  r = E.from(n[o].type.create(n[o].attrs, r));
6969
6969
  }
6970
6970
  let i = e.start, a = e.end;
6971
- t.step(new Re(i, a, i, a, new U(r, 0, 0), n.length, !0));
6971
+ t.step(new Be(i, a, i, a, new U(r, 0, 0), n.length, !0));
6972
6972
  }
6973
6973
  function n3(t, e, n, r, i) {
6974
6974
  if (!r.isTextblock)
@@ -6984,7 +6984,7 @@ function n3(t, e, n, r, i) {
6984
6984
  }
6985
6985
  c === !1 && Rp(t, o, s, a), od(t, t.mapping.slice(a).map(s, 1), r, void 0, c === null);
6986
6986
  let d = t.mapping.slice(a), u = d.map(s, 1), p = d.map(s + o.nodeSize, 1);
6987
- return t.step(new Re(u, p, u + 1, p - 1, new U(E.from(r.create(f, null, o.marks)), 0, 0), 1, !0)), c === !0 && Pp(t, o, s, a), !1;
6987
+ return t.step(new Be(u, p, u + 1, p - 1, new U(E.from(r.create(f, null, o.marks)), 0, 0), 1, !0)), c === !0 && Pp(t, o, s, a), !1;
6988
6988
  }
6989
6989
  });
6990
6990
  }
@@ -7022,7 +7022,7 @@ function i3(t, e, n, r, i) {
7022
7022
  return t.replaceWith(e, e + a.nodeSize, o);
7023
7023
  if (!n.validContent(a.content))
7024
7024
  throw new RangeError("Invalid content for node type " + n.name);
7025
- t.step(new Re(e, e + a.nodeSize, e + 1, e + a.nodeSize - 1, new U(E.from(o), 0, 0), 1, !0));
7025
+ t.step(new Be(e, e + a.nodeSize, e + 1, e + a.nodeSize - 1, new U(E.from(o), 0, 0), 1, !0));
7026
7026
  }
7027
7027
  function Nn(t, e, n = 1, r) {
7028
7028
  let i = t.resolve(e), a = i.depth - n, o = r && r[r.length - 1] || i.parent;
@@ -7048,7 +7048,7 @@ function a3(t, e, n = 1, r) {
7048
7048
  let d = r && r[c];
7049
7049
  o = E.from(d ? d.type.create(d.attrs, o) : i.node(s).copy(o));
7050
7050
  }
7051
- t.step(new Oe(e, e, new U(a.append(o), n, n), !0));
7051
+ t.step(new Pe(e, e, new U(a.append(o), n, n), !0));
7052
7052
  }
7053
7053
  function Xn(t, e) {
7054
7054
  let n = t.resolve(e), r = n.index();
@@ -7091,7 +7091,7 @@ function s3(t, e, n) {
7091
7091
  }
7092
7092
  o.inlineContent && od(t, e + n - 1, o, a.node().contentMatchAt(a.index()), r == null);
7093
7093
  let f = t.mapping.slice(s), c = f.map(e - n);
7094
- if (t.step(new Oe(c, f.map(e + n, -1), U.empty, !0)), r === !0) {
7094
+ if (t.step(new Pe(c, f.map(e + n, -1), U.empty, !0)), r === !0) {
7095
7095
  let d = t.doc.resolve(c);
7096
7096
  Pp(t, d.node(), d.before(), t.steps.length);
7097
7097
  }
@@ -7144,7 +7144,7 @@ function hf(t, e, n = e, r = U.empty) {
7144
7144
  if (e == n && !r.size)
7145
7145
  return null;
7146
7146
  let i = t.resolve(e), a = t.resolve(n);
7147
- return Up(i, a, r) ? new Oe(e, n, r) : new l3(i, a, r).fit();
7147
+ return Up(i, a, r) ? new Pe(e, n, r) : new l3(i, a, r).fit();
7148
7148
  }
7149
7149
  function Up(t, e, n) {
7150
7150
  return !n.openStart && !n.openEnd && t.start() == e.start() && t.parent.canReplace(t.index(), e.index(), n.content);
@@ -7177,7 +7177,7 @@ class l3 {
7177
7177
  for (; o && s && a.childCount == 1; )
7178
7178
  a = a.firstChild.content, o--, s--;
7179
7179
  let f = new U(a, o, s);
7180
- return e > -1 ? new Re(r.pos, e, this.$to.pos, this.$to.end(), f, n) : f.size || r.pos != this.$to.pos ? new Oe(r.pos, i.pos, f) : null;
7180
+ return e > -1 ? new Be(r.pos, e, this.$to.pos, this.$to.end(), f, n) : f.size || r.pos != this.$to.pos ? new Pe(r.pos, i.pos, f) : null;
7181
7181
  }
7182
7182
  // Find a position on the start spine of `this.unplaced` that has
7183
7183
  // content that can be moved somewhere on the frontier. Returns two
@@ -7334,7 +7334,7 @@ function u3(t, e, n, r) {
7334
7334
  return t.deleteRange(e, n);
7335
7335
  let i = t.doc.resolve(e), a = t.doc.resolve(n);
7336
7336
  if (Up(i, a, r))
7337
- return t.step(new Oe(e, n, r));
7337
+ return t.step(new Pe(e, n, r));
7338
7338
  let o = Yp(i, a);
7339
7339
  o[o.length - 1] == 0 && o.pop();
7340
7340
  let s = -(i.depth + 1);
@@ -8112,7 +8112,7 @@ function t0(t, e, n) {
8112
8112
  if (r < e)
8113
8113
  return;
8114
8114
  let i = t.steps[r];
8115
- if (!(i instanceof Oe || i instanceof Re))
8115
+ if (!(i instanceof Pe || i instanceof Be))
8116
8116
  return;
8117
8117
  let a = t.mapping.maps[r], o;
8118
8118
  a.forEach((s, f, c, d) => {
@@ -8494,12 +8494,12 @@ function Vp(t, e, n) {
8494
8494
  }
8495
8495
  return n;
8496
8496
  }
8497
- class Me {
8497
+ class ye {
8498
8498
  /**
8499
8499
  Create a plugin.
8500
8500
  */
8501
8501
  constructor(e) {
8502
- this.spec = e, this.props = {}, e.props && Vp(e.props, this, this.props), this.key = e.key ? e.key.key : Gp("plugin");
8502
+ this.spec = e, this.props = {}, e.props && Vp(e.props, this, this.props), this.key = e.key ? e.key.key : _p("plugin");
8503
8503
  }
8504
8504
  /**
8505
8505
  Extract the plugin's state field from an editor state.
@@ -8509,7 +8509,7 @@ class Me {
8509
8509
  }
8510
8510
  }
8511
8511
  const cl = /* @__PURE__ */ Object.create(null);
8512
- function Gp(t) {
8512
+ function _p(t) {
8513
8513
  return t in cl ? t + "$" + ++cl[t] : (cl[t] = 0, t + "$");
8514
8514
  }
8515
8515
  class Se {
@@ -8517,7 +8517,7 @@ class Se {
8517
8517
  Create a plugin key.
8518
8518
  */
8519
8519
  constructor(e = "key") {
8520
- this.key = Gp(e);
8520
+ this.key = _p(e);
8521
8521
  }
8522
8522
  /**
8523
8523
  Get the active plugin with this key, if any, from an editor
@@ -8534,12 +8534,12 @@ class Se {
8534
8534
  }
8535
8535
  }
8536
8536
  const ld = (t, e) => t.selection.empty ? !1 : (e && e(t.tr.deleteSelection().scrollIntoView()), !0);
8537
- function _p(t, e) {
8537
+ function Gp(t, e) {
8538
8538
  let { $cursor: n } = t.selection;
8539
8539
  return !n || (e ? !e.endOfTextblock("backward", t) : n.parentOffset > 0) ? null : n;
8540
8540
  }
8541
8541
  const Wp = (t, e, n) => {
8542
- let r = _p(t, n);
8542
+ let r = Gp(t, n);
8543
8543
  if (!r)
8544
8544
  return !1;
8545
8545
  let i = cd(r);
@@ -8565,7 +8565,7 @@ const Wp = (t, e, n) => {
8565
8565
  }
8566
8566
  return a.isAtom && i.depth == r.depth - 1 ? (e && e(t.tr.delete(i.pos - a.nodeSize, i.pos).scrollIntoView()), !0) : !1;
8567
8567
  }, w3 = (t, e, n) => {
8568
- let r = _p(t, n);
8568
+ let r = Gp(t, n);
8569
8569
  if (!r)
8570
8570
  return !1;
8571
8571
  let i = cd(r);
@@ -8597,7 +8597,7 @@ function $p(t, e, n) {
8597
8597
  s = d;
8598
8598
  }
8599
8599
  let c = hf(t.doc, a, f, U.empty);
8600
- if (!c || c.from != a || c instanceof Oe && c.slice.size >= f - a)
8600
+ if (!c || c.from != a || c instanceof Pe && c.slice.size >= f - a)
8601
8601
  return !1;
8602
8602
  if (n) {
8603
8603
  let d = t.tr.step(c);
@@ -8806,7 +8806,7 @@ function rm(t, e, n, r) {
8806
8806
  for (let w = o.length - 1; w >= 0; w--)
8807
8807
  m = E.from(o[w].create(null, m));
8808
8808
  m = E.from(i.copy(m));
8809
- let g = t.tr.step(new Re(e.pos - 1, h, e.pos, h, new U(m, 1, 0), o.length, !0)), v = g.doc.resolve(h + 2 * o.length);
8809
+ let g = t.tr.step(new Be(e.pos - 1, h, e.pos, h, new U(m, 1, 0), o.length, !0)), v = g.doc.resolve(h + 2 * o.length);
8810
8810
  v.nodeAfter && v.nodeAfter.type == i.type && Xn(g.doc, v.pos) && g.join(v.pos), n(g.scrollIntoView());
8811
8811
  }
8812
8812
  return !0;
@@ -8826,7 +8826,7 @@ function rm(t, e, n, r) {
8826
8826
  let w = E.empty;
8827
8827
  for (let L = m.length - 1; L >= 0; L--)
8828
8828
  w = E.from(m[L].copy(w));
8829
- let x = t.tr.step(new Re(e.pos - m.length, e.pos + a.nodeSize, e.pos + v, e.pos + a.nodeSize - v, new U(w, m.length, 0), 0, !0));
8829
+ let x = t.tr.step(new Be(e.pos - m.length, e.pos + a.nodeSize, e.pos + v, e.pos + a.nodeSize - v, new U(w, m.length, 0), 0, !0));
8830
8830
  n(x.scrollIntoView());
8831
8831
  }
8832
8832
  return !0;
@@ -8918,7 +8918,7 @@ function z3(t, e, n, r, i) {
8918
8918
  let a = E.empty;
8919
8919
  for (let d = n.length - 1; d >= 0; d--)
8920
8920
  a = E.from(n[d].type.create(n[d].attrs, a));
8921
- t.step(new Re(e.start - (r ? 2 : 0), e.end, e.start, e.end, new U(a, 0, 0), n.length, !0));
8921
+ t.step(new Be(e.start - (r ? 2 : 0), e.end, e.start, e.end, new U(a, 0, 0), n.length, !0));
8922
8922
  let o = 0;
8923
8923
  for (let d = 0; d < n.length; d++)
8924
8924
  n[d].type == i && (o = d + 1);
@@ -8935,7 +8935,7 @@ function O3(t) {
8935
8935
  }
8936
8936
  function P3(t, e, n, r) {
8937
8937
  let i = t.tr, a = r.end, o = r.$to.end(r.depth);
8938
- a < o && (i.step(new Re(a - 1, o, a, o, new U(E.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new rs(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
8938
+ a < o && (i.step(new Be(a - 1, o, a, o, new U(E.from(n.create(null, r.parent.copy())), 1, 0), 1, !0)), r = new rs(i.doc.resolve(r.$from.pos), i.doc.resolve(o), r.depth));
8939
8939
  const s = ji(r);
8940
8940
  if (s == null)
8941
8941
  return !1;
@@ -8954,7 +8954,7 @@ function R3(t, e, n) {
8954
8954
  if (!c.canReplace(d + (s ? 0 : 1), d + 1, o.content.append(f ? E.empty : E.from(i))))
8955
8955
  return !1;
8956
8956
  let u = a.pos, p = u + o.nodeSize;
8957
- return r.step(new Re(u - (s ? 1 : 0), p + (f ? 1 : 0), u + 1, p - 1, new U((s ? E.empty : E.from(i.copy(E.empty))).append(f ? E.empty : E.from(i.copy(E.empty))), s ? 0 : 1, f ? 0 : 1), s ? 0 : 1)), e(r.scrollIntoView()), !0;
8957
+ return r.step(new Be(u - (s ? 1 : 0), p + (f ? 1 : 0), u + 1, p - 1, new U((s ? E.empty : E.from(i.copy(E.empty))).append(f ? E.empty : E.from(i.copy(E.empty))), s ? 0 : 1, f ? 0 : 1), s ? 0 : 1)), e(r.scrollIntoView()), !0;
8958
8958
  }
8959
8959
  function B3(t) {
8960
8960
  return function(e, n) {
@@ -8969,7 +8969,7 @@ function B3(t) {
8969
8969
  return !1;
8970
8970
  if (n) {
8971
8971
  let c = f.lastChild && f.lastChild.type == s.type, d = E.from(c ? t.create() : null), u = new U(E.from(t.create(null, E.from(s.type.create(null, d)))), c ? 3 : 1, 0), p = a.start, h = a.end;
8972
- n(e.tr.step(new Re(p - (c ? 3 : 1), h, p, h, u, 1, !0)).scrollIntoView());
8972
+ n(e.tr.step(new Be(p - (c ? 3 : 1), h, p, h, u, 1, !0)).scrollIntoView());
8973
8973
  }
8974
8974
  return !0;
8975
8975
  };
@@ -9089,8 +9089,8 @@ function V3(t, e, n) {
9089
9089
  }
9090
9090
  const rn = typeof navigator < "u" ? navigator : null, s0 = typeof document < "u" ? document : null, er = rn && rn.userAgent || "", nc = /Edge\/(\d+)/.exec(er), am = /MSIE \d/.exec(er), rc = /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(er), ht = !!(am || rc || nc), Yn = am ? document.documentMode : rc ? +rc[1] : nc ? +nc[1] : 0, Rt = !ht && /gecko\/(\d+)/i.test(er);
9091
9091
  Rt && +(/Firefox\/(\d+)/.exec(er) || [0, 0])[1];
9092
- const ic = !ht && /Chrome\/(\d+)/.exec(er), Pe = !!ic, om = ic ? +ic[1] : 0, Ke = !ht && !!rn && /Apple Computer/.test(rn.vendor), vi = Ke && (/Mobile\/\w+/.test(er) || !!rn && rn.maxTouchPoints > 2), Dt = vi || (rn ? /Mac/.test(rn.platform) : !1), sm = rn ? /Win/.test(rn.platform) : !1, Ln = /Android \d/.test(er), Ka = !!s0 && "webkitFontSmoothing" in s0.documentElement.style, G3 = Ka ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
9093
- function _3(t) {
9092
+ const ic = !ht && /Chrome\/(\d+)/.exec(er), Re = !!ic, om = ic ? +ic[1] : 0, Ke = !ht && !!rn && /Apple Computer/.test(rn.vendor), vi = Ke && (/Mobile\/\w+/.test(er) || !!rn && rn.maxTouchPoints > 2), Dt = vi || (rn ? /Mac/.test(rn.platform) : !1), sm = rn ? /Win/.test(rn.platform) : !1, Ln = /Android \d/.test(er), Ka = !!s0 && "webkitFontSmoothing" in s0.documentElement.style, _3 = Ka ? +(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent) || [0, 0])[1] : 0;
9093
+ function G3(t) {
9094
9094
  let e = t.defaultView && t.defaultView.visualViewport;
9095
9095
  return e ? {
9096
9096
  left: 0,
@@ -9123,7 +9123,7 @@ function f0(t, e, n) {
9123
9123
  o = bi(o);
9124
9124
  continue;
9125
9125
  }
9126
- let s = o, f = s == a.body, c = f ? _3(a) : W3(s), d = 0, u = 0;
9126
+ let s = o, f = s == a.body, c = f ? G3(a) : W3(s), d = 0, u = 0;
9127
9127
  if (e.top < c.top + pn(r, "top") ? u = -(c.top - e.top + pn(i, "top")) : e.bottom > c.bottom - pn(r, "bottom") && (u = e.bottom - e.top > c.bottom - c.top ? e.top + pn(i, "top") - c.top : e.bottom - c.bottom + pn(i, "bottom")), e.left < c.left + pn(r, "left") ? d = -(c.left - e.left + pn(i, "left")) : e.right > c.right - pn(r, "right") && (d = e.right - c.right + pn(i, "right")), d || u)
9128
9128
  if (f)
9129
9129
  a.defaultView.scrollBy(d, u);
@@ -9169,18 +9169,18 @@ function lm(t, e) {
9169
9169
  r.scrollTop != i + e && (r.scrollTop = i + e), r.scrollLeft != a && (r.scrollLeft = a);
9170
9170
  }
9171
9171
  }
9172
- let _r = null;
9172
+ let Gr = null;
9173
9173
  function q3(t) {
9174
9174
  if (t.setActive)
9175
9175
  return t.setActive();
9176
- if (_r)
9177
- return t.focus(_r);
9176
+ if (Gr)
9177
+ return t.focus(Gr);
9178
9178
  let e = fm(t);
9179
- t.focus(_r == null ? {
9179
+ t.focus(Gr == null ? {
9180
9180
  get preventScroll() {
9181
- return _r = { preventScroll: !0 }, !0;
9181
+ return Gr = { preventScroll: !0 }, !0;
9182
9182
  }
9183
- } : void 0), _r || (_r = !1, lm(e, 0));
9183
+ } : void 0), Gr || (Gr = !1, lm(e, 0));
9184
9184
  }
9185
9185
  function cm(t, e) {
9186
9186
  let n, r = 2e8, i, a = 0, o = e.top, s = e.top, f, c;
@@ -10313,7 +10313,7 @@ class dM {
10313
10313
  for (; e instanceof jr; )
10314
10314
  n = e, e = n.children[n.children.length - 1];
10315
10315
  (!e || // Empty textblock
10316
- !(e instanceof gf) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Ke || Pe) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
10316
+ !(e instanceof gf) || /\n$/.test(e.node.text) || this.view.requiresGeckoHackNode && /\s$/.test(e.node.text)) && ((Ke || Re) && e && e.dom.contentEditable == "false" && this.addHackNode("IMG", n), this.addHackNode("BR", this.top));
10317
10317
  }
10318
10318
  addHackNode(e, n) {
10319
10319
  if (n == this.top && this.index < n.children.length && n.children[this.index].matchesHack(e))
@@ -10489,7 +10489,7 @@ function wm(t) {
10489
10489
  function kn(t, e = !1) {
10490
10490
  let n = t.state.selection;
10491
10491
  if (ym(t, n), !!wm(t)) {
10492
- if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && Pe) {
10492
+ if (!e && t.input.mouseDown && t.input.mouseDown.allowDefault && Re) {
10493
10493
  let r = t.domSelectionRange(), i = t.domObserver.currentSelection;
10494
10494
  if (r.anchorNode && i.anchorNode && Tr(r.anchorNode, r.anchorOffset, i.anchorNode, i.anchorOffset)) {
10495
10495
  t.input.mouseDown.delayedSelectionSync = !0, t.domObserver.setCurSelection();
@@ -10505,7 +10505,7 @@ function kn(t, e = !1) {
10505
10505
  t.domObserver.setCurSelection(), t.domObserver.connectSelection();
10506
10506
  }
10507
10507
  }
10508
- const g0 = Ke || Pe && om < 63;
10508
+ const g0 = Ke || Re && om < 63;
10509
10509
  function b0(t, e) {
10510
10510
  let { node: n, offset: r } = t.docView.domFromPos(e, 0), i = r < n.childNodes.length ? n.childNodes[r] : null, a = r ? n.childNodes[r - 1] : null;
10511
10511
  if (Ke && i && i.contentEditable == "false")
@@ -10733,7 +10733,7 @@ function fc(t, e, n) {
10733
10733
  }
10734
10734
  function x0(t, e) {
10735
10735
  let n = t.state.doc.resolve(e);
10736
- if (!(Pe || sm) && n.parent.inlineContent) {
10736
+ if (!(Re || sm) && n.parent.inlineContent) {
10737
10737
  let i = t.coordsAtPos(e);
10738
10738
  if (e > n.start()) {
10739
10739
  let a = t.coordsAtPos(e - 1), o = (a.top + a.bottom) / 2;
@@ -10988,7 +10988,7 @@ function jM(t) {
10988
10988
  return n;
10989
10989
  }
10990
10990
  function DM(t) {
10991
- let e = t.querySelectorAll(Pe ? "span:not([class]):not([style])" : "span.Apple-converted-space");
10991
+ let e = t.querySelectorAll(Re ? "span:not([class]):not([style])" : "span.Apple-converted-space");
10992
10992
  for (let n = 0; n < e.length; n++) {
10993
10993
  let r = e[n];
10994
10994
  r.childNodes.length == 1 && r.textContent == " " && r.parentNode && r.parentNode.replaceChild(t.ownerDocument.createTextNode(" "), r);
@@ -11063,7 +11063,7 @@ function BM(t, e) {
11063
11063
  }
11064
11064
  ft.keydown = (t, e) => {
11065
11065
  let n = e;
11066
- if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !jm(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Ln && Pe && n.keyCode == 13)))
11066
+ if (t.input.shiftKey = n.keyCode == 16 || n.shiftKey, !jm(t, n) && (t.input.lastKeyCode = n.keyCode, t.input.lastKeyCodeTime = Date.now(), !(Ln && Re && n.keyCode == 13)))
11067
11067
  if (n.keyCode != 229 && t.domObserver.forceFlush(), vi && n.keyCode == 13 && !n.ctrlKey && !n.altKey && !n.metaKey) {
11068
11068
  let r = Date.now();
11069
11069
  t.input.lastIOSEnter = r, t.input.lastIOSEnterFallbackTimeout = setTimeout(() => {
@@ -11168,9 +11168,9 @@ st.mousedown = (t, e) => {
11168
11168
  let r = yd(t), i = Date.now(), a = "singleClick";
11169
11169
  i - t.input.lastClick.time < 500 && HM(n, t.input.lastClick) && !n[Tm] && t.input.lastClick.button == n.button && (t.input.lastClick.type == "singleClick" ? a = "doubleClick" : t.input.lastClick.type == "doubleClick" && (a = "tripleClick")), t.input.lastClick = { time: i, x: n.clientX, y: n.clientY, type: a, button: n.button };
11170
11170
  let o = t.posAtCoords(bf(n));
11171
- o && (a == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new GM(t, o, n, !!r)) : (a == "doubleClick" ? YM : QM)(t, o.pos, o.inside, n) ? n.preventDefault() : Fn(t, "pointer"));
11171
+ o && (a == "singleClick" ? (t.input.mouseDown && t.input.mouseDown.done(), t.input.mouseDown = new _M(t, o, n, !!r)) : (a == "doubleClick" ? YM : QM)(t, o.pos, o.inside, n) ? n.preventDefault() : Fn(t, "pointer"));
11172
11172
  };
11173
- class GM {
11173
+ class _M {
11174
11174
  constructor(e, n, r, i) {
11175
11175
  this.view = e, this.pos = n, this.event = r, this.flushed = i, this.delayedSelectionSync = !1, this.mightDrag = null, this.startDoc = e.state.doc, this.selectNode = !!r[Tm], this.allowDefault = r.shiftKey;
11176
11176
  let a, o;
@@ -11207,7 +11207,7 @@ class GM {
11207
11207
  // (hidden) cursor is doesn't change the selection, and
11208
11208
  // thus doesn't get a reaction from ProseMirror. This
11209
11209
  // works around that.
11210
- Pe && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (ci(this.view, ee.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : Fn(this.view, "pointer");
11210
+ Re && !this.view.state.selection.visible && Math.min(Math.abs(n.pos - this.view.state.selection.from), Math.abs(n.pos - this.view.state.selection.to)) <= 2) ? (ci(this.view, ee.near(this.view.state.doc.resolve(n.pos))), e.preventDefault()) : Fn(this.view, "pointer");
11211
11211
  }
11212
11212
  move(e) {
11213
11213
  this.updateAllowDefault(e), Fn(this.view, "pointer"), e.buttons == 0 && this.done();
@@ -11226,12 +11226,12 @@ st.contextmenu = (t) => yd(t);
11226
11226
  function jm(t, e) {
11227
11227
  return t.composing ? !0 : Ke && Math.abs(e.timeStamp - t.input.compositionEndedAt) < 500 ? (t.input.compositionEndedAt = -2e8, !0) : !1;
11228
11228
  }
11229
- const _M = Ln ? 5e3 : -1;
11229
+ const GM = Ln ? 5e3 : -1;
11230
11230
  ft.compositionstart = ft.compositionupdate = (t) => {
11231
11231
  if (!t.composing) {
11232
11232
  t.domObserver.flush();
11233
11233
  let { state: e } = t, n = e.selection.$to;
11234
- if (e.selection instanceof Z && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1) || Pe && sm && WM(t)))
11234
+ if (e.selection instanceof Z && (e.storedMarks || !n.textOffset && n.parentOffset && n.nodeBefore.marks.some((r) => r.type.spec.inclusive === !1) || Re && sm && WM(t)))
11235
11235
  t.markCursor = t.state.storedMarks || n.marks(), fs(t, !0), t.markCursor = null;
11236
11236
  else if (fs(t, !e.selection.empty), Rt && e.selection.empty && n.parentOffset && !n.textOffset && n.nodeBefore.marks.length) {
11237
11237
  let r = t.domSelectionRange();
@@ -11249,7 +11249,7 @@ ft.compositionstart = ft.compositionupdate = (t) => {
11249
11249
  }
11250
11250
  t.input.composing = !0;
11251
11251
  }
11252
- Dm(t, _M);
11252
+ Dm(t, GM);
11253
11253
  };
11254
11254
  function WM(t) {
11255
11255
  let { focusNode: e, focusOffset: n } = t.domSelectionRange();
@@ -11310,7 +11310,7 @@ function qM(t, e) {
11310
11310
  n.parentNode && n.parentNode.removeChild(n), t.focus();
11311
11311
  }, 50);
11312
11312
  }
11313
- const Ea = ht && Yn < 15 || vi && G3 < 604;
11313
+ const Ea = ht && Yn < 15 || vi && _3 < 604;
11314
11314
  st.copy = ft.cut = (t, e) => {
11315
11315
  let n = e, r = t.state.selection, i = n.type == "cut";
11316
11316
  if (r.empty)
@@ -11378,7 +11378,7 @@ st.dragstart = (t, e) => {
11378
11378
  }
11379
11379
  }
11380
11380
  let s = (o || t.state.selection).content(), { dom: f, text: c, slice: d } = bd(t, s);
11381
- (!n.dataTransfer.files.length || !Pe || om > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Ea ? "Text" : "text/html", f.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Ea || n.dataTransfer.setData("text/plain", c), t.dragging = new zm(d, Om(t, n), o);
11381
+ (!n.dataTransfer.files.length || !Re || om > 120) && n.dataTransfer.clearData(), n.dataTransfer.setData(Ea ? "Text" : "text/html", f.innerHTML), n.dataTransfer.effectAllowed = "copyMove", Ea || n.dataTransfer.setData("text/plain", c), t.dragging = new zm(d, Om(t, n), o);
11382
11382
  };
11383
11383
  st.dragend = (t) => {
11384
11384
  let e = t.dragging;
@@ -11441,7 +11441,7 @@ st.blur = (t, e) => {
11441
11441
  t.focused && (t.domObserver.stop(), t.dom.classList.remove("ProseMirror-focused"), t.domObserver.start(), n.relatedTarget && t.dom.contains(n.relatedTarget) && t.domObserver.currentSelection.clear(), t.focused = !1);
11442
11442
  };
11443
11443
  st.beforeinput = (t, e) => {
11444
- if (Pe && Ln && e.inputType == "deleteContentBackward") {
11444
+ if (Re && Ln && e.inputType == "deleteContentBackward") {
11445
11445
  t.domObserver.flushSoon();
11446
11446
  let { domChangeCount: r } = t.input;
11447
11447
  setTimeout(() => {
@@ -11596,7 +11596,7 @@ class Ze {
11596
11596
  }
11597
11597
  }
11598
11598
  const Xr = [], xr = {};
11599
- class ve {
11599
+ class be {
11600
11600
  /**
11601
11601
  @internal
11602
11602
  */
@@ -11650,7 +11650,7 @@ class ve {
11650
11650
  let f = this.local[s].map(e, r, i);
11651
11651
  f && f.type.valid(n, f) ? (o || (o = [])).push(f) : a.onRemove && a.onRemove(this.local[s].spec);
11652
11652
  }
11653
- return this.children.length ? nx(this.children, o || [], e, n, r, i, a) : o ? new ve(o.sort(Cr), Xr) : We;
11653
+ return this.children.length ? nx(this.children, o || [], e, n, r, i, a) : o ? new be(o.sort(Cr), Xr) : We;
11654
11654
  }
11655
11655
  /**
11656
11656
  Add the given array of decorations to the ones in the set,
@@ -11659,7 +11659,7 @@ class ve {
11659
11659
  structure.
11660
11660
  */
11661
11661
  add(e, n) {
11662
- return n.length ? this == We ? ve.create(e, n) : this.addInner(e, n, 0) : this;
11662
+ return n.length ? this == We ? be.create(e, n) : this.addInner(e, n, 0) : this;
11663
11663
  }
11664
11664
  addInner(e, n, r) {
11665
11665
  let i, a = 0;
@@ -11674,7 +11674,7 @@ class ve {
11674
11674
  let o = Pm(a ? Bm(n) : n, -r);
11675
11675
  for (let s = 0; s < o.length; s++)
11676
11676
  o[s].type.valid(e, o[s]) || o.splice(s--, 1);
11677
- return new ve(o.length ? this.local.concat(o).sort(Cr) : this.local, i || this.children);
11677
+ return new be(o.length ? this.local.concat(o).sort(Cr) : this.local, i || this.children);
11678
11678
  }
11679
11679
  /**
11680
11680
  Create a new set that contains the decorations in this set, minus
@@ -11701,13 +11701,13 @@ class ve {
11701
11701
  for (let s = 0; s < i.length; s++)
11702
11702
  i[s].eq(o, n) && (i == this.local && (i = this.local.slice()), i.splice(s--, 1));
11703
11703
  }
11704
- return r == this.children && i == this.local ? this : i.length || r.length ? new ve(i, r) : We;
11704
+ return r == this.children && i == this.local ? this : i.length || r.length ? new be(i, r) : We;
11705
11705
  }
11706
11706
  forChild(e, n) {
11707
11707
  if (this == We)
11708
11708
  return this;
11709
11709
  if (n.isLeaf)
11710
- return ve.empty;
11710
+ return be.empty;
11711
11711
  let r, i;
11712
11712
  for (let s = 0; s < this.children.length; s += 3)
11713
11713
  if (this.children[s] >= e) {
@@ -11723,7 +11723,7 @@ class ve {
11723
11723
  }
11724
11724
  }
11725
11725
  if (i) {
11726
- let s = new ve(i.sort(Cr), Xr);
11726
+ let s = new be(i.sort(Cr), Xr);
11727
11727
  return r ? new Rn([s, r]) : s;
11728
11728
  }
11729
11729
  return r || We;
@@ -11734,7 +11734,7 @@ class ve {
11734
11734
  eq(e) {
11735
11735
  if (this == e)
11736
11736
  return !0;
11737
- if (!(e instanceof ve) || this.local.length != e.local.length || this.children.length != e.children.length)
11737
+ if (!(e instanceof be) || this.local.length != e.local.length || this.children.length != e.children.length)
11738
11738
  return !1;
11739
11739
  for (let n = 0; n < this.local.length; n++)
11740
11740
  if (!this.local[n].eq(e.local[n]))
@@ -11767,9 +11767,9 @@ class ve {
11767
11767
  e(this);
11768
11768
  }
11769
11769
  }
11770
- ve.empty = new ve([], []);
11771
- ve.removeOverlap = xd;
11772
- const We = ve.empty;
11770
+ be.empty = new be([], []);
11771
+ be.removeOverlap = xd;
11772
+ const We = be.empty;
11773
11773
  class Rn {
11774
11774
  constructor(e) {
11775
11775
  this.members = e;
@@ -11780,7 +11780,7 @@ class Rn {
11780
11780
  }
11781
11781
  forChild(e, n) {
11782
11782
  if (n.isLeaf)
11783
- return ve.empty;
11783
+ return be.empty;
11784
11784
  let r = [];
11785
11785
  for (let i = 0; i < this.members.length; i++) {
11786
11786
  let a = this.members[i].forChild(e, n);
@@ -11820,7 +11820,7 @@ class Rn {
11820
11820
  case 1:
11821
11821
  return e[0];
11822
11822
  default:
11823
- return new Rn(e.every((n) => n instanceof ve) ? e : e.reduce((n, r) => n.concat(r instanceof ve ? r : r.members), []));
11823
+ return new Rn(e.every((n) => n instanceof be) ? e : e.reduce((n, r) => n.concat(r instanceof be ? r : r.members), []));
11824
11824
  }
11825
11825
  }
11826
11826
  forEachSet(e) {
@@ -11875,7 +11875,7 @@ function nx(t, e, n, r, i, a, o) {
11875
11875
  s.splice(p, 0, d.children[u], d.children[u + 1], d.children[u + 2]);
11876
11876
  }
11877
11877
  }
11878
- return new ve(e.sort(Cr), s);
11878
+ return new be(e.sort(Cr), s);
11879
11879
  }
11880
11880
  function Pm(t, e) {
11881
11881
  if (!e || !t.length)
@@ -11927,7 +11927,7 @@ function cs(t, e, n, r) {
11927
11927
  let o = Pm(a ? Bm(t) : t, -n).sort(Cr);
11928
11928
  for (let s = 0; s < o.length; s++)
11929
11929
  o[s].type.valid(e, o[s]) || (r.onRemove && r.onRemove(o[s].spec), o.splice(s--, 1));
11930
- return o.length || i.length ? new ve(o, i) : We;
11930
+ return o.length || i.length ? new be(o, i) : We;
11931
11931
  }
11932
11932
  function Cr(t, e) {
11933
11933
  return t.from - e.from || t.to - e.to;
@@ -11960,7 +11960,7 @@ function pl(t) {
11960
11960
  return t.someProp("decorations", (n) => {
11961
11961
  let r = n(t.state);
11962
11962
  r && r != We && e.push(r);
11963
- }), t.cursorWrapper && e.push(ve.create(t.state.doc, [t.cursorWrapper.deco])), Rn.from(e);
11963
+ }), t.cursorWrapper && e.push(be.create(t.state.doc, [t.cursorWrapper.deco])), Rn.from(e);
11964
11964
  }
11965
11965
  const ix = {
11966
11966
  childList: !0,
@@ -12089,7 +12089,7 @@ class sx {
12089
12089
  h && h.nodeName == "LI" && (!u || cx(e, u) != h) && p.remove();
12090
12090
  }
12091
12091
  }
12092
- } else if ((Pe || Ke) && f.some((d) => d.nodeName == "BR") && (e.input.lastKeyCode == 8 || e.input.lastKeyCode == 46)) {
12092
+ } else if ((Re || Ke) && f.some((d) => d.nodeName == "BR") && (e.input.lastKeyCode == 8 || e.input.lastKeyCode == 46)) {
12093
12093
  for (let d of f)
12094
12094
  if (d.nodeName == "BR" && d.parentNode) {
12095
12095
  let u = d.nextSibling;
@@ -12166,7 +12166,7 @@ function cx(t, e) {
12166
12166
  }
12167
12167
  function dx(t, e, n) {
12168
12168
  let { node: r, fromOffset: i, toOffset: a, from: o, to: s } = t.docView.parseRange(e, n), f = t.domSelectionRange(), c, d = f.anchorNode;
12169
- if (d && t.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c = [{ node: d, offset: f.anchorOffset }], mf(f) || c.push({ node: f.focusNode, offset: f.focusOffset })), Pe && t.input.lastKeyCode === 8)
12169
+ if (d && t.dom.contains(d.nodeType == 1 ? d : d.parentNode) && (c = [{ node: d, offset: f.anchorOffset }], mf(f) || c.push({ node: f.focusNode, offset: f.focusOffset })), Re && t.input.lastKeyCode === 8)
12170
12170
  for (let v = a; v > i; v--) {
12171
12171
  let w = r.childNodes[v - 1], x = w.pmViewDesc;
12172
12172
  if (w.nodeName == "BR" && !x) {
@@ -12213,7 +12213,7 @@ function px(t, e, n, r, i) {
12213
12213
  if (t.input.compositionPendingChanges = 0, e < 0) {
12214
12214
  let k = t.input.lastSelectionTime > Date.now() - 50 ? t.input.lastSelectionOrigin : null, S = md(t, k);
12215
12215
  if (S && !t.state.selection.eq(S)) {
12216
- if (Pe && Ln && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (D) => D(t, dr(13, "Enter"))))
12216
+ if (Re && Ln && t.input.lastKeyCode === 13 && Date.now() - 100 < t.input.lastKeyCodeTime && t.someProp("handleKeyDown", (D) => D(t, dr(13, "Enter"))))
12217
12217
  return;
12218
12218
  let I = t.state.tr.setSelection(S);
12219
12219
  k == "pointer" ? I.setMeta("pointer", !0) : k == "key" && I.scrollIntoView(), a && I.setMeta("composition", a), t.dispatch(I);
@@ -12249,10 +12249,10 @@ function px(t, e, n, r, i) {
12249
12249
  return;
12250
12250
  }
12251
12251
  if (t.state.selection.anchor > m.start && gx(d, m.start, m.endA, g, v) && t.someProp("handleKeyDown", (k) => k(t, dr(8, "Backspace")))) {
12252
- Ln && Pe && t.domObserver.suppressSelectionUpdates();
12252
+ Ln && Re && t.domObserver.suppressSelectionUpdates();
12253
12253
  return;
12254
12254
  }
12255
- Pe && m.endB == m.start && (t.input.lastChromeDelete = Date.now()), Ln && !x && g.start() != v.start() && v.parentOffset == 0 && g.depth == v.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == m.endA && (m.endB -= 2, v = c.doc.resolveNoCache(m.endB - c.from), setTimeout(() => {
12255
+ Re && m.endB == m.start && (t.input.lastChromeDelete = Date.now()), Ln && !x && g.start() != v.start() && v.parentOffset == 0 && g.depth == v.depth && c.sel && c.sel.anchor == c.sel.head && c.sel.head == m.endA && (m.endB -= 2, v = c.doc.resolveNoCache(m.endB - c.from), setTimeout(() => {
12256
12256
  t.someProp("handleKeyDown", function(k) {
12257
12257
  return k(t, dr(13, "Enter"));
12258
12258
  });
@@ -12261,7 +12261,7 @@ function px(t, e, n, r, i) {
12261
12261
  let S = k || t.state.tr.replace(L, y, c.doc.slice(m.start - c.from, m.endB - c.from));
12262
12262
  if (c.sel) {
12263
12263
  let I = E0(t, S.doc, c.sel);
12264
- I && !(Pe && t.composing && I.empty && (m.start != m.endB || t.input.lastChromeDelete < Date.now() - 100) && (I.head == L || I.head == S.mapping.map(y) - 1) || ht && I.empty && I.head == L) && S.setSelection(I);
12264
+ I && !(Re && t.composing && I.empty && (m.start != m.endB || t.input.lastChromeDelete < Date.now() - 100) && (I.head == L || I.head == S.mapping.map(y) - 1) || ht && I.empty && I.head == L) && S.setSelection(I);
12265
12265
  }
12266
12266
  return a && S.setMeta("composition", a), S.scrollIntoView();
12267
12267
  }, C;
@@ -12434,9 +12434,9 @@ class Hm {
12434
12434
  let p = d == "preserve" && o && this.dom.style.overflowAnchor == null && $3(this);
12435
12435
  if (o) {
12436
12436
  this.domObserver.stop();
12437
- let h = u && (ht || Pe) && !this.composing && !i.selection.empty && !e.selection.empty && vx(i.selection, e.selection);
12437
+ let h = u && (ht || Re) && !this.composing && !i.selection.empty && !e.selection.empty && vx(i.selection, e.selection);
12438
12438
  if (u) {
12439
- let m = Pe ? this.trackWrites = this.domSelectionRange().focusNode : null;
12439
+ let m = Re ? this.trackWrites = this.domSelectionRange().focusNode : null;
12440
12440
  this.composing && (this.input.compositionNode = $M(this)), (a || !this.docView.update(e.doc, c, f, this)) && (this.docView.updateOuterDeco(c), this.docView.destroy(), this.docView = p0(e.doc, c, f, this.dom, this)), m && !this.trackWrites && (h = !0);
12441
12441
  }
12442
12442
  h || !(this.input.mouseDown && this.domObserver.currentSelection.eq(this.domSelectionRange()) && wM(this)) ? kn(this, h) : (ym(this, e.selection), this.domObserver.setCurSelection()), this.domObserver.start();
@@ -12858,7 +12858,7 @@ function bl(t, e, n = !0) {
12858
12858
  return e.altKey && (t = "Alt-" + t), e.ctrlKey && (t = "Ctrl-" + t), e.metaKey && (t = "Meta-" + t), n && e.shiftKey && (t = "Shift-" + t), t;
12859
12859
  }
12860
12860
  function Sx(t) {
12861
- return new Me({ props: { handleKeyDown: Um(t) } });
12861
+ return new ye({ props: { handleKeyDown: Um(t) } });
12862
12862
  }
12863
12863
  function Um(t) {
12864
12864
  let e = kx(t);
@@ -12996,7 +12996,7 @@ Cd(Fm, {
12996
12996
  first: () => Jx,
12997
12997
  focus: () => Qx,
12998
12998
  forEach: () => Vx,
12999
- insertContent: () => Gx,
12999
+ insertContent: () => _x,
13000
13000
  insertContentAt: () => $x,
13001
13001
  joinBackward: () => Kx,
13002
13002
  joinDown: () => qx,
@@ -13028,8 +13028,8 @@ Cd(Fm, {
13028
13028
  setTextSelection: () => YC,
13029
13029
  sinkListItem: () => QC,
13030
13030
  splitBlock: () => VC,
13031
- splitListItem: () => GC,
13032
- toggleList: () => _C,
13031
+ splitListItem: () => _C,
13032
+ toggleList: () => GC,
13033
13033
  toggleMark: () => WC,
13034
13034
  toggleNode: () => $C,
13035
13035
  toggleWrap: () => ZC,
@@ -13203,7 +13203,7 @@ var Qx = (t = null, e = {}) => ({ editor: n, view: r, tr: i, dispatch: a }) => {
13203
13203
  return o(), !0;
13204
13204
  const s = Qm(i.doc, t) || n.state.selection, f = n.state.selection.eq(s);
13205
13205
  return a && (f || i.setSelection(s), f && i.storedMarks && i.setStoredMarks(i.storedMarks), o()), !0;
13206
- }, Vx = (t, e) => (n) => t.every((r, i) => e(r, { ...n, index: i })), Gx = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), Vm = (t) => {
13206
+ }, Vx = (t, e) => (n) => t.every((r, i) => e(r, { ...n, index: i })), _x = (t, e) => ({ tr: n, commands: r }) => r.insertContentAt({ from: n.selection.from, to: n.selection.to }, t, e), Vm = (t) => {
13207
13207
  const e = t.childNodes;
13208
13208
  for (let n = e.length - 1; n >= 0; n -= 1) {
13209
13209
  const r = e[n];
@@ -13268,12 +13268,12 @@ function Oa(t, e, n) {
13268
13268
  }
13269
13269
  return Oa("", e, n);
13270
13270
  }
13271
- function _x(t, e, n) {
13271
+ function Gx(t, e, n) {
13272
13272
  const r = t.steps.length - 1;
13273
13273
  if (r < e)
13274
13274
  return;
13275
13275
  const i = t.steps[r];
13276
- if (!(i instanceof Oe || i instanceof Re))
13276
+ if (!(i instanceof Pe || i instanceof Be))
13277
13277
  return;
13278
13278
  const a = t.mapping.maps[r];
13279
13279
  let o = 0;
@@ -13344,7 +13344,7 @@ var Wx = (t) => !("type" in t), $x = (t, e, n) => ({ tr: r, dispatch: i, editor:
13344
13344
  const v = r.doc.resolve(d), w = v.node(), x = v.parentOffset === 0, L = w.isText || w.isTextblock, y = w.content.size > 0;
13345
13345
  x && L && y && (d = Math.max(0, d - 1)), r.replaceWith(d, u, g);
13346
13346
  }
13347
- n.updateSelection && _x(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: d, text: g }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: d, text: g });
13347
+ n.updateSelection && Gx(r, r.steps.length - 1, -1), n.applyInputRules && r.setMeta("applyInputRules", { from: d, text: g }), n.applyPasteRules && r.setMeta("applyPasteRules", { from: d, text: g });
13348
13348
  }
13349
13349
  return !0;
13350
13350
  }, Zx = () => ({ state: t, dispatch: e }) => M3(t, e), qx = () => ({ state: t, dispatch: e }) => x3(t, e), Kx = () => ({ state: t, dispatch: e }) => Wp(t, e), Xx = () => ({ state: t, dispatch: e }) => Kp(t, e), eC = () => ({ state: t, dispatch: e, tr: n }) => {
@@ -13362,7 +13362,7 @@ var Wx = (t) => !("type" in t), $x = (t, e, n) => ({ tr: r, dispatch: i, editor:
13362
13362
  return !1;
13363
13363
  }
13364
13364
  }, nC = () => ({ state: t, dispatch: e }) => w3(t, e), rC = () => ({ state: t, dispatch: e }) => y3(t, e);
13365
- function Gm() {
13365
+ function _m() {
13366
13366
  return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
13367
13367
  }
13368
13368
  function iC(t) {
@@ -13381,7 +13381,7 @@ function iC(t) {
13381
13381
  else if (/^s(hift)?$/i.test(f))
13382
13382
  a = !0;
13383
13383
  else if (/^mod$/i.test(f))
13384
- kd() || Gm() ? o = !0 : i = !0;
13384
+ kd() || _m() ? o = !0 : i = !0;
13385
13385
  else
13386
13386
  throw new Error(`Unrecognized modifier name: ${f}`);
13387
13387
  }
@@ -13477,7 +13477,7 @@ var vC = (t, { errorOnInvalidContent: e, emitUpdate: n = !0, parseOptions: r = {
13477
13477
  errorOnInvalidContent: e ?? i.options.enableContentCheck
13478
13478
  });
13479
13479
  };
13480
- function _m(t, e) {
13480
+ function Gm(t, e) {
13481
13481
  const n = Tn(e, t.schema), { from: r, to: i, empty: a } = t.selection, o = [];
13482
13482
  a ? (t.storedMarks && o.push(...t.storedMarks), o.push(...t.selection.$head.marks())) : t.doc.nodesBetween(r, i, (f) => {
13483
13483
  o.push(...f.marks);
@@ -13830,7 +13830,7 @@ function eg(t, e) {
13830
13830
  typeof e == "string" ? e : e.name,
13831
13831
  t.schema
13832
13832
  );
13833
- return n === "node" ? SC(t, e) : n === "mark" ? _m(t, e) : {};
13833
+ return n === "node" ? SC(t, e) : n === "mark" ? Gm(t, e) : {};
13834
13834
  }
13835
13835
  function IC(t, e = JSON.stringify) {
13836
13836
  const n = {};
@@ -14066,7 +14066,7 @@ var BC = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
14066
14066
  const { selection: a } = n, { empty: o, ranges: s } = a, f = Tn(t, r.schema);
14067
14067
  if (i)
14068
14068
  if (o) {
14069
- const c = _m(r, f);
14069
+ const c = Gm(r, f);
14070
14070
  n.addStoredMark(
14071
14071
  f.create({
14072
14072
  ...c,
@@ -14120,7 +14120,7 @@ var BC = (t, e = {}) => ({ tr: n, state: r, dispatch: i }) => {
14120
14120
  const r = De(t, e.schema);
14121
14121
  return B3(r)(e, n);
14122
14122
  };
14123
- function G0(t, e) {
14123
+ function _0(t, e) {
14124
14124
  const n = t.storedMarks || t.selection.$to.parentOffset && t.selection.$from.marks();
14125
14125
  if (n) {
14126
14126
  const r = n.filter((i) => e == null ? void 0 : e.includes(i.type.name));
@@ -14130,7 +14130,7 @@ function G0(t, e) {
14130
14130
  var VC = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor: i }) => {
14131
14131
  const { selection: a, doc: o } = e, { $from: s, $to: f } = a, c = i.extensionManager.attributes, d = Fo(c, s.node().type.name, s.node().attrs);
14132
14132
  if (a instanceof V && a.node.isBlock)
14133
- return !s.parentOffset || !Nn(o, s.pos) ? !1 : (r && (t && G0(n, i.extensionManager.splittableMarks), e.split(s.pos).scrollIntoView()), !0);
14133
+ return !s.parentOffset || !Nn(o, s.pos) ? !1 : (r && (t && _0(n, i.extensionManager.splittableMarks), e.split(s.pos).scrollIntoView()), !0);
14134
14134
  if (!s.parent.isBlock)
14135
14135
  return !1;
14136
14136
  const u = f.parentOffset === f.parent.content.size, p = s.depth === 0 ? void 0 : wC(s.node(-1).contentMatchAt(s.indexAfter(-1)));
@@ -14150,10 +14150,10 @@ var VC = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
14150
14150
  const g = e.mapping.map(s.before()), v = e.doc.resolve(g);
14151
14151
  s.node(-1).canReplaceWith(v.index(), v.index() + 1, p) && e.setNodeMarkup(e.mapping.map(s.before()), p);
14152
14152
  }
14153
- t && G0(n, i.extensionManager.splittableMarks), e.scrollIntoView();
14153
+ t && _0(n, i.extensionManager.splittableMarks), e.scrollIntoView();
14154
14154
  }
14155
14155
  return m;
14156
- }, GC = (t, e = {}) => ({ tr: n, state: r, dispatch: i, editor: a }) => {
14156
+ }, _C = (t, e = {}) => ({ tr: n, state: r, dispatch: i, editor: a }) => {
14157
14157
  var o;
14158
14158
  const s = De(t, r.schema), { $from: f, $to: c } = r.selection, d = r.selection.node;
14159
14159
  if (d && d.isBlock || f.depth < 2 || !f.sameParent(c))
@@ -14229,7 +14229,7 @@ var VC = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: r, editor
14229
14229
  return !0;
14230
14230
  const i = t.doc.nodeAt(r);
14231
14231
  return n.node.type === (i == null ? void 0 : i.type) && Xn(t.doc, r) && t.join(r), !0;
14232
- }, _C = (t, e, n, r = {}) => ({ editor: i, tr: a, state: o, dispatch: s, chain: f, commands: c, can: d }) => {
14232
+ }, GC = (t, e, n, r = {}) => ({ editor: i, tr: a, state: o, dispatch: s, chain: f, commands: c, can: d }) => {
14233
14233
  const { extensions: u, splittableMarks: p } = i.extensionManager, h = De(t, o.schema), m = De(e, o.schema), { selection: g, storedMarks: v } = o, { $from: w, $to: x } = g, L = w.blockRange(x), y = v || g.$to.parentOffset && g.$from.marks();
14234
14234
  if (!L)
14235
14235
  return !1;
@@ -14437,7 +14437,7 @@ function No(t) {
14437
14437
  }), d;
14438
14438
  }
14439
14439
  function o6(t) {
14440
- const { editor: e, rules: n } = t, r = new Me({
14440
+ const { editor: e, rules: n } = t, r = new ye({
14441
14441
  state: {
14442
14442
  init() {
14443
14443
  return null;
@@ -14682,7 +14682,7 @@ function h6(t) {
14682
14682
  return o = typeof ClipboardEvent < "u" ? new ClipboardEvent("paste") : null, g;
14683
14683
  }
14684
14684
  };
14685
- return n.map((d) => new Me({
14685
+ return n.map((d) => new ye({
14686
14686
  // we register a global drag handler to track the current drag source element
14687
14687
  view(u) {
14688
14688
  const p = (m) => {
@@ -14976,7 +14976,7 @@ var ke = class sg extends Dd {
14976
14976
  },
14977
14977
  addProseMirrorPlugins() {
14978
14978
  return [
14979
- new Me({
14979
+ new ye({
14980
14980
  key: new Se("clipboardTextSerializer"),
14981
14981
  props: {
14982
14982
  clipboardTextSerializer: () => {
@@ -15028,7 +15028,7 @@ var ke = class sg extends Dd {
15028
15028
  const p = d.mapping;
15029
15029
  d.steps.forEach((h, m) => {
15030
15030
  var g, v;
15031
- if (h instanceof _t) {
15031
+ if (h instanceof Gt) {
15032
15032
  const w = p.slice(m).map(h.from, -1), x = p.slice(m).map(h.to), L = p.invert().map(w, -1), y = p.invert().map(x), N = (g = d.doc.nodeAt(w - 1)) == null ? void 0 : g.marks.some((k) => k.eq(h.mark)), C = (v = d.doc.nodeAt(x)) == null ? void 0 : v.marks.some((k) => k.eq(h.mark));
15033
15033
  this.editor.emit("delete", {
15034
15034
  type: "mark",
@@ -15057,7 +15057,7 @@ var ke = class sg extends Dd {
15057
15057
  name: "drop",
15058
15058
  addProseMirrorPlugins() {
15059
15059
  return [
15060
- new Me({
15060
+ new ye({
15061
15061
  key: new Se("tiptapDrop"),
15062
15062
  props: {
15063
15063
  handleDrop: (t, e, n, r) => {
@@ -15076,7 +15076,7 @@ var ke = class sg extends Dd {
15076
15076
  name: "editable",
15077
15077
  addProseMirrorPlugins() {
15078
15078
  return [
15079
- new Me({
15079
+ new ye({
15080
15080
  key: new Se("editable"),
15081
15081
  props: {
15082
15082
  editable: () => this.editor.options.editable
@@ -15089,7 +15089,7 @@ var ke = class sg extends Dd {
15089
15089
  addProseMirrorPlugins() {
15090
15090
  const { editor: t } = this;
15091
15091
  return [
15092
- new Me({
15092
+ new ye({
15093
15093
  key: hg,
15094
15094
  props: {
15095
15095
  handleDOMEvents: {
@@ -15153,7 +15153,7 @@ var ke = class sg extends Dd {
15153
15153
  "Ctrl-a": () => this.editor.commands.selectTextblockStart(),
15154
15154
  "Ctrl-e": () => this.editor.commands.selectTextblockEnd()
15155
15155
  };
15156
- return kd() || Gm() ? a : i;
15156
+ return kd() || _m() ? a : i;
15157
15157
  },
15158
15158
  addProseMirrorPlugins() {
15159
15159
  return [
@@ -15162,7 +15162,7 @@ var ke = class sg extends Dd {
15162
15162
  // to a paragraph if necessary.
15163
15163
  // This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
15164
15164
  // with many other commands.
15165
- new Me({
15165
+ new ye({
15166
15166
  key: new Se("clearDocument"),
15167
15167
  appendTransaction: (t, e, n) => {
15168
15168
  if (t.some((g) => g.getMeta("composition")))
@@ -15190,7 +15190,7 @@ var ke = class sg extends Dd {
15190
15190
  name: "paste",
15191
15191
  addProseMirrorPlugins() {
15192
15192
  return [
15193
- new Me({
15193
+ new ye({
15194
15194
  key: new Se("tiptapPaste"),
15195
15195
  props: {
15196
15196
  handlePaste: (t, e, n) => {
@@ -15208,7 +15208,7 @@ var ke = class sg extends Dd {
15208
15208
  name: "tabindex",
15209
15209
  addProseMirrorPlugins() {
15210
15210
  return [
15211
- new Me({
15211
+ new ye({
15212
15212
  key: new Se("tabindex"),
15213
15213
  props: {
15214
15214
  attributes: () => this.editor.isEditable ? { tabindex: "0" } : {}
@@ -15247,7 +15247,7 @@ var ke = class sg extends Dd {
15247
15247
  },
15248
15248
  addProseMirrorPlugins() {
15249
15249
  return [
15250
- new Me({
15250
+ new ye({
15251
15251
  key: new Se("textDirection"),
15252
15252
  props: {
15253
15253
  attributes: () => {
@@ -16653,7 +16653,7 @@ function Dr(t) {
16653
16653
  });
16654
16654
  }
16655
16655
  var T6 = Object.getOwnPropertyNames, j6 = Object.getOwnPropertySymbols, D6 = Object.prototype.hasOwnProperty;
16656
- function _0(t, e) {
16656
+ function G0(t, e) {
16657
16657
  return function(r, i, a) {
16658
16658
  return t(r, i, a) && e(r, i, a);
16659
16659
  };
@@ -16782,13 +16782,13 @@ function V6(t, e) {
16782
16782
  return !1;
16783
16783
  return !0;
16784
16784
  }
16785
- function G6(t, e) {
16785
+ function _6(t, e) {
16786
16786
  return t.hostname === e.hostname && t.pathname === e.pathname && t.protocol === e.protocol && t.port === e.port && t.hash === e.hash && t.username === e.username && t.password === e.password;
16787
16787
  }
16788
16788
  function xg(t, e, n, r) {
16789
16789
  return (r === P6 || r === O6 || r === z6) && (t.$$typeof || e.$$typeof) ? !0 : A6(e, r) && n.equals(t[r], e[r], r, r, t, e, n);
16790
16790
  }
16791
- var _6 = "[object Arguments]", W6 = "[object Boolean]", $6 = "[object Date]", Z6 = "[object Error]", q6 = "[object Map]", K6 = "[object Number]", X6 = "[object Object]", eL = "[object RegExp]", tL = "[object Set]", nL = "[object String]", rL = "[object URL]", iL = Array.isArray, X0 = typeof ArrayBuffer < "u" && typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView : null, eh = Object.assign, aL = Object.prototype.toString.call.bind(Object.prototype.toString);
16791
+ var G6 = "[object Arguments]", W6 = "[object Boolean]", $6 = "[object Date]", Z6 = "[object Error]", q6 = "[object Map]", K6 = "[object Number]", X6 = "[object Object]", eL = "[object RegExp]", tL = "[object Set]", nL = "[object String]", rL = "[object URL]", iL = Array.isArray, X0 = typeof ArrayBuffer < "u" && typeof ArrayBuffer.isView == "function" ? ArrayBuffer.isView : null, eh = Object.assign, aL = Object.prototype.toString.call.bind(Object.prototype.toString);
16792
16792
  function oL(t) {
16793
16793
  var e = t.areArraysEqual, n = t.areDatesEqual, r = t.areErrorsEqual, i = t.areFunctionsEqual, a = t.areMapsEqual, o = t.areNumbersEqual, s = t.areObjectsEqual, f = t.arePrimitiveWrappersEqual, c = t.areRegExpsEqual, d = t.areSetsEqual, u = t.areTypedArraysEqual, p = t.areUrlsEqual, h = t.unknownTagComparators;
16794
16794
  return function(g, v, w) {
@@ -16833,7 +16833,7 @@ function oL(t) {
16833
16833
  return p(g, v, w);
16834
16834
  if (y === Z6)
16835
16835
  return r(g, v, w);
16836
- if (y === _6)
16836
+ if (y === G6)
16837
16837
  return s(g, v, w);
16838
16838
  if (y === W6 || y === K6 || y === nL)
16839
16839
  return f(g, v, w);
@@ -16855,14 +16855,14 @@ function sL(t) {
16855
16855
  areDatesEqual: B6,
16856
16856
  areErrorsEqual: H6,
16857
16857
  areFunctionsEqual: U6,
16858
- areMapsEqual: r ? _0(q0, Yi) : q0,
16858
+ areMapsEqual: r ? G0(q0, Yi) : q0,
16859
16859
  areNumbersEqual: F6,
16860
16860
  areObjectsEqual: r ? Yi : J6,
16861
16861
  arePrimitiveWrappersEqual: Y6,
16862
16862
  areRegExpsEqual: Q6,
16863
- areSetsEqual: r ? _0(K0, Yi) : K0,
16863
+ areSetsEqual: r ? G0(K0, Yi) : K0,
16864
16864
  areTypedArraysEqual: r ? Yi : V6,
16865
- areUrlsEqual: G6,
16865
+ areUrlsEqual: _6,
16866
16866
  unknownTagComparators: void 0
16867
16867
  };
16868
16868
  if (n && (i = eh({}, i, n(i))), e) {
@@ -17271,7 +17271,7 @@ var th = process.env.NODE_ENV !== "production", mc = typeof window > "u", wL = m
17271
17271
  }
17272
17272
  };
17273
17273
  function Ng(t = {}, e = []) {
17274
- const n = Ae(t);
17274
+ const n = ze(t);
17275
17275
  n.current = t;
17276
17276
  const [r] = ne(() => new yL(n)), i = tp(
17277
17277
  r.subscribe,
@@ -17762,7 +17762,7 @@ ${n}
17762
17762
  return [
17763
17763
  // this plugin creates a code block for pasted content from VS Code
17764
17764
  // we can also detect the copied code language
17765
- new Me({
17765
+ new ye({
17766
17766
  key: new Se("codeBlockVSCodeHandler"),
17767
17767
  props: {
17768
17768
  handlePaste: (t, e) => {
@@ -17948,7 +17948,7 @@ ${n}
17948
17948
  })
17949
17949
  ];
17950
17950
  }
17951
- }), VL = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, GL = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, _L = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, WL = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, $L = Rr.create({
17951
+ }), VL = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))$/, _L = /(?:^|\s)(\*(?!\s+\*)((?:[^*]+))\*(?!\s+\*))/g, GL = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))$/, WL = /(?:^|\s)(_(?!\s+_)((?:[^_]+))_(?!\s+_))/g, $L = Rr.create({
17952
17952
  name: "italic",
17953
17953
  addOptions() {
17954
17954
  return {
@@ -17999,7 +17999,7 @@ ${n}
17999
17999
  type: this.type
18000
18000
  }),
18001
18001
  yi({
18002
- find: _L,
18002
+ find: GL,
18003
18003
  type: this.type
18004
18004
  })
18005
18005
  ];
@@ -18007,7 +18007,7 @@ ${n}
18007
18007
  addPasteRules() {
18008
18008
  return [
18009
18009
  Dr({
18010
- find: GL,
18010
+ find: _L,
18011
18011
  type: this.type
18012
18012
  }),
18013
18013
  Dr({
@@ -18629,10 +18629,10 @@ function sN({
18629
18629
  for (let J = 0; J < H.length; J++) {
18630
18630
  const [P, F] = H[J], A = z(N, P);
18631
18631
  z(C, P, A), z(A, F, N);
18632
- const G = St(Do);
18633
- X(A, e, G);
18632
+ const _ = St(Do);
18633
+ X(A, e, _);
18634
18634
  const q = St();
18635
- X(A, n), X(G, e, G), X(G, n, q), X(q, e, G), X(q, n, q), z(G, F, N), z(q, F, N);
18635
+ X(A, n), X(_, e, _), X(_, n, q), X(q, e, _), X(q, n, q), z(_, F, N), z(q, F, N);
18636
18636
  }
18637
18637
  return z(i, Pa, x), z(i, Pd, oN), {
18638
18638
  start: i,
@@ -18717,7 +18717,7 @@ function gN(t) {
18717
18717
  return t.length === 1 ? t[0].isLink : t.length === 3 && t[1].isLink ? ["()", "[]"].includes(t[0].value + t[2].value) : !1;
18718
18718
  }
18719
18719
  function bN(t) {
18720
- return new Me({
18720
+ return new ye({
18721
18721
  key: new Se("autolink"),
18722
18722
  appendTransaction: (e, n, r) => {
18723
18723
  const i = e.some((c) => c.docChanged) && !n.doc.eq(r.doc), a = e.some((c) => c.getMeta("preventAutolink"));
@@ -18770,7 +18770,7 @@ function bN(t) {
18770
18770
  });
18771
18771
  }
18772
18772
  function vN(t) {
18773
- return new Me({
18773
+ return new ye({
18774
18774
  key: new Se("handleClickLink"),
18775
18775
  props: {
18776
18776
  handleClick: (e, n, r) => {
@@ -18800,7 +18800,7 @@ function vN(t) {
18800
18800
  });
18801
18801
  }
18802
18802
  function wN(t) {
18803
- return new Me({
18803
+ return new ye({
18804
18804
  key: new Se("handlePasteLink"),
18805
18805
  props: {
18806
18806
  handlePaste: (e, n, r) => {
@@ -19811,7 +19811,7 @@ var AN = lt.create({
19811
19811
  text: t.text || ""
19812
19812
  }),
19813
19813
  renderMarkdown: (t) => t.text || ""
19814
- }), Gg = Rr.create({
19814
+ }), _g = Rr.create({
19815
19815
  name: "underline",
19816
19816
  addOptions() {
19817
19817
  return {
@@ -19871,9 +19871,9 @@ var AN = lt.create({
19871
19871
  "Mod-U": () => this.editor.commands.toggleUnderline()
19872
19872
  };
19873
19873
  }
19874
- }), BN = Gg;
19874
+ }), BN = _g;
19875
19875
  function HN(t = {}) {
19876
- return new Me({
19876
+ return new ye({
19877
19877
  view(e) {
19878
19878
  return new UN(e, t);
19879
19879
  }
@@ -20053,7 +20053,7 @@ class Vd {
20053
20053
  return Ne.valid(n) ? new Ne(n) : ee.near(n);
20054
20054
  }
20055
20055
  }
20056
- function _g(t) {
20056
+ function Gg(t) {
20057
20057
  return t.isAtom || t.spec.isolating || t.spec.createGapCursor;
20058
20058
  }
20059
20059
  function FN(t) {
@@ -20065,7 +20065,7 @@ function FN(t) {
20065
20065
  continue;
20066
20066
  }
20067
20067
  for (let i = r.child(n - 1); ; i = i.lastChild) {
20068
- if (i.childCount == 0 && !i.inlineContent || _g(i.type))
20068
+ if (i.childCount == 0 && !i.inlineContent || Gg(i.type))
20069
20069
  return !0;
20070
20070
  if (i.inlineContent)
20071
20071
  return !1;
@@ -20082,7 +20082,7 @@ function JN(t) {
20082
20082
  continue;
20083
20083
  }
20084
20084
  for (let i = r.child(n); ; i = i.firstChild) {
20085
- if (i.childCount == 0 && !i.inlineContent || _g(i.type))
20085
+ if (i.childCount == 0 && !i.inlineContent || Gg(i.type))
20086
20086
  return !0;
20087
20087
  if (i.inlineContent)
20088
20088
  return !1;
@@ -20091,15 +20091,15 @@ function JN(t) {
20091
20091
  return !0;
20092
20092
  }
20093
20093
  function YN() {
20094
- return new Me({
20094
+ return new ye({
20095
20095
  props: {
20096
- decorations: _N,
20096
+ decorations: GN,
20097
20097
  createSelectionBetween(t, e, n) {
20098
20098
  return e.pos == n.pos && Ne.valid(n) ? new Ne(n) : null;
20099
20099
  },
20100
20100
  handleClick: VN,
20101
20101
  handleKeyDown: QN,
20102
- handleDOMEvents: { beforeinput: GN }
20102
+ handleDOMEvents: { beforeinput: _N }
20103
20103
  }
20104
20104
  });
20105
20105
  }
@@ -20131,7 +20131,7 @@ function VN(t, e, n) {
20131
20131
  let i = t.posAtCoords({ left: n.clientX, top: n.clientY });
20132
20132
  return i && i.inside > -1 && V.isSelectable(t.state.doc.nodeAt(i.inside)) ? !1 : (t.dispatch(t.state.tr.setSelection(new Ne(r))), !0);
20133
20133
  }
20134
- function GN(t, e) {
20134
+ function _N(t, e) {
20135
20135
  if (e.inputType != "insertCompositionText" || !(t.state.selection instanceof Ne))
20136
20136
  return !1;
20137
20137
  let { $from: n } = t.state.selection, r = n.parent.contentMatchAt(n.index()).findWrapping(t.state.schema.nodes.text);
@@ -20143,42 +20143,42 @@ function GN(t, e) {
20143
20143
  let a = t.state.tr.replace(n.pos, n.pos, new U(i, 0, 0));
20144
20144
  return a.setSelection(Z.near(a.doc.resolve(n.pos + 1))), t.dispatch(a), !1;
20145
20145
  }
20146
- function _N(t) {
20146
+ function GN(t) {
20147
20147
  if (!(t.selection instanceof Ne))
20148
20148
  return null;
20149
20149
  let e = document.createElement("div");
20150
- return e.className = "ProseMirror-gapcursor", ve.create(t.doc, [Ze.widget(t.selection.head, e, { key: "gapcursor" })]);
20150
+ return e.className = "ProseMirror-gapcursor", be.create(t.doc, [Ze.widget(t.selection.head, e, { key: "gapcursor" })]);
20151
20151
  }
20152
- var Js = 200, Be = function() {
20152
+ var Js = 200, He = function() {
20153
20153
  };
20154
- Be.prototype.append = function(e) {
20155
- return e.length ? (e = Be.from(e), !this.length && e || e.length < Js && this.leafAppend(e) || this.length < Js && e.leafPrepend(this) || this.appendInner(e)) : this;
20154
+ He.prototype.append = function(e) {
20155
+ return e.length ? (e = He.from(e), !this.length && e || e.length < Js && this.leafAppend(e) || this.length < Js && e.leafPrepend(this) || this.appendInner(e)) : this;
20156
20156
  };
20157
- Be.prototype.prepend = function(e) {
20158
- return e.length ? Be.from(e).append(this) : this;
20157
+ He.prototype.prepend = function(e) {
20158
+ return e.length ? He.from(e).append(this) : this;
20159
20159
  };
20160
- Be.prototype.appendInner = function(e) {
20160
+ He.prototype.appendInner = function(e) {
20161
20161
  return new WN(this, e);
20162
20162
  };
20163
- Be.prototype.slice = function(e, n) {
20164
- return e === void 0 && (e = 0), n === void 0 && (n = this.length), e >= n ? Be.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, n));
20163
+ He.prototype.slice = function(e, n) {
20164
+ return e === void 0 && (e = 0), n === void 0 && (n = this.length), e >= n ? He.empty : this.sliceInner(Math.max(0, e), Math.min(this.length, n));
20165
20165
  };
20166
- Be.prototype.get = function(e) {
20166
+ He.prototype.get = function(e) {
20167
20167
  if (!(e < 0 || e >= this.length))
20168
20168
  return this.getInner(e);
20169
20169
  };
20170
- Be.prototype.forEach = function(e, n, r) {
20170
+ He.prototype.forEach = function(e, n, r) {
20171
20171
  n === void 0 && (n = 0), r === void 0 && (r = this.length), n <= r ? this.forEachInner(e, n, r, 0) : this.forEachInvertedInner(e, n, r, 0);
20172
20172
  };
20173
- Be.prototype.map = function(e, n, r) {
20173
+ He.prototype.map = function(e, n, r) {
20174
20174
  n === void 0 && (n = 0), r === void 0 && (r = this.length);
20175
20175
  var i = [];
20176
20176
  return this.forEach(function(a, o) {
20177
20177
  return i.push(e(a, o));
20178
20178
  }, n, r), i;
20179
20179
  };
20180
- Be.from = function(e) {
20181
- return e instanceof Be ? e : e && e.length ? new Wg(e) : Be.empty;
20180
+ He.from = function(e) {
20181
+ return e instanceof He ? e : e && e.length ? new Wg(e) : He.empty;
20182
20182
  };
20183
20183
  var Wg = /* @__PURE__ */ (function(t) {
20184
20184
  function e(r) {
@@ -20211,8 +20211,8 @@ var Wg = /* @__PURE__ */ (function(t) {
20211
20211
  }, n.depth.get = function() {
20212
20212
  return 0;
20213
20213
  }, Object.defineProperties(e.prototype, n), e;
20214
- })(Be);
20215
- Be.empty = new Wg([]);
20214
+ })(He);
20215
+ He.empty = new Wg([]);
20216
20216
  var WN = /* @__PURE__ */ (function(t) {
20217
20217
  function e(n, r) {
20218
20218
  t.call(this), this.left = n, this.right = r, this.length = n.length + r.length, this.depth = Math.max(n.depth, r.depth) + 1;
@@ -20245,9 +20245,9 @@ var WN = /* @__PURE__ */ (function(t) {
20245
20245
  }, e.prototype.appendInner = function(r) {
20246
20246
  return this.left.depth >= Math.max(this.right.depth, r.depth) + 1 ? new e(this.left, new e(this.right, r)) : new e(this, r);
20247
20247
  }, e;
20248
- })(Be);
20248
+ })(He);
20249
20249
  const $N = 500;
20250
- class Gt {
20250
+ class _t {
20251
20251
  constructor(e, n) {
20252
20252
  this.items = e, this.eventCount = n;
20253
20253
  }
@@ -20277,7 +20277,7 @@ class Gt {
20277
20277
  } else
20278
20278
  o.maybeStep(u.step);
20279
20279
  if (u.selection)
20280
- return s = i ? u.selection.map(i.slice(a)) : u.selection, f = new Gt(this.items.slice(0, r).append(d.reverse().concat(c)), this.eventCount - 1), !1;
20280
+ return s = i ? u.selection.map(i.slice(a)) : u.selection, f = new _t(this.items.slice(0, r).append(d.reverse().concat(c)), this.eventCount - 1), !1;
20281
20281
  }, this.items.length, 0), { remaining: f, transform: o, selection: s };
20282
20282
  }
20283
20283
  // Create a new branch with the given transform added.
@@ -20288,7 +20288,7 @@ class Gt {
20288
20288
  (h = f && f.merge(p)) && (p = h, d ? a.pop() : s = s.slice(0, s.length - 1)), a.push(p), n && (o++, n = void 0), i || (f = p);
20289
20289
  }
20290
20290
  let c = o - r.depth;
20291
- return c > qN && (s = ZN(s, c), o -= c), new Gt(s.append(a), o);
20291
+ return c > qN && (s = ZN(s, c), o -= c), new _t(s.append(a), o);
20292
20292
  }
20293
20293
  remapping(e, n) {
20294
20294
  let r = new ja();
@@ -20298,7 +20298,7 @@ class Gt {
20298
20298
  }, e, n), r;
20299
20299
  }
20300
20300
  addMaps(e) {
20301
- return this.eventCount == 0 ? this : new Gt(this.items.append(e.map((n) => new qt(n))), this.eventCount);
20301
+ return this.eventCount == 0 ? this : new _t(this.items.append(e.map((n) => new qt(n))), this.eventCount);
20302
20302
  }
20303
20303
  // When the collab module receives remote changes, the history has
20304
20304
  // to know about those, so that it can adjust the steps that were
@@ -20327,7 +20327,7 @@ class Gt {
20327
20327
  let c = [];
20328
20328
  for (let p = n; p < o; p++)
20329
20329
  c.push(new qt(a.maps[p]));
20330
- let d = this.items.slice(0, i).append(c).append(r), u = new Gt(d, s);
20330
+ let d = this.items.slice(0, i).append(c).append(r), u = new _t(d, s);
20331
20331
  return u.emptyItemCount() > $N && (u = u.compress(this.items.length - r.length)), u;
20332
20332
  }
20333
20333
  emptyItemCount() {
@@ -20356,10 +20356,10 @@ class Gt {
20356
20356
  (p = i.length && i[h].merge(u)) ? i[h] = p : i.push(u);
20357
20357
  }
20358
20358
  } else o.map && r--;
20359
- }, this.items.length, 0), new Gt(Be.from(i.reverse()), a);
20359
+ }, this.items.length, 0), new _t(He.from(i.reverse()), a);
20360
20360
  }
20361
20361
  }
20362
- Gt.empty = new Gt(Be.empty, 0);
20362
+ _t.empty = new _t(He.empty, 0);
20363
20363
  function ZN(t, e) {
20364
20364
  let n;
20365
20365
  return t.forEach((r, i) => {
@@ -20397,7 +20397,7 @@ function KN(t, e, n, r) {
20397
20397
  return o.getMeta(Lr).redo ? new Pn(t.done.addTransform(n, void 0, r, Yo(e)), t.undone, gh(n.mapping.maps), t.prevTime, t.prevComposition) : new Pn(t.done, t.undone.addTransform(n, void 0, r, Yo(e)), null, t.prevTime, t.prevComposition);
20398
20398
  if (n.getMeta("addToHistory") !== !1 && !(o && o.getMeta("addToHistory") === !1)) {
20399
20399
  let s = n.getMeta("composition"), f = t.prevTime == 0 || !o && t.prevComposition != s && (t.prevTime < (n.time || 0) - r.newGroupDelay || !XN(n, t.prevRanges)), c = o ? Il(t.prevRanges, n.mapping) : gh(n.mapping.maps);
20400
- return new Pn(t.done.addTransform(n, f ? e.selection.getBookmark() : void 0, r, Yo(e)), Gt.empty, c, n.time, s ?? t.prevComposition);
20400
+ return new Pn(t.done.addTransform(n, f ? e.selection.getBookmark() : void 0, r, Yo(e)), _t.empty, c, n.time, s ?? t.prevComposition);
20401
20401
  } else return (a = n.getMeta("rebased")) ? new Pn(t.done.rebased(n, a), t.undone.rebased(n, a), Il(t.prevRanges, n.mapping), t.prevTime, t.prevComposition) : new Pn(t.done.addMaps(n.mapping.maps), t.undone.addMaps(n.mapping.maps), Il(t.prevRanges, n.mapping), t.prevTime, t.prevComposition);
20402
20402
  }
20403
20403
  function XN(t, e) {
@@ -20452,11 +20452,11 @@ function nk(t = {}) {
20452
20452
  return t = {
20453
20453
  depth: t.depth || 100,
20454
20454
  newGroupDelay: t.newGroupDelay || 500
20455
- }, new Me({
20455
+ }, new ye({
20456
20456
  key: Lr,
20457
20457
  state: {
20458
20458
  init() {
20459
- return new Pn(Gt.empty, Gt.empty, null, 0, -1);
20459
+ return new Pn(_t.empty, _t.empty, null, 0, -1);
20460
20460
  },
20461
20461
  apply(e, n, r) {
20462
20462
  return KN(n, r, e, t);
@@ -20518,7 +20518,7 @@ ke.create({
20518
20518
  addProseMirrorPlugins() {
20519
20519
  let t = !1;
20520
20520
  return [
20521
- new Me({
20521
+ new ye({
20522
20522
  key: new Se("characterCount"),
20523
20523
  appendTransaction: (e, n, r) => {
20524
20524
  if (t)
@@ -20578,13 +20578,13 @@ ke.create({
20578
20578
  },
20579
20579
  addProseMirrorPlugins() {
20580
20580
  return [
20581
- new Me({
20581
+ new ye({
20582
20582
  key: new Se("focus"),
20583
20583
  props: {
20584
20584
  decorations: ({ doc: t, selection: e }) => {
20585
20585
  const { isEditable: n, isFocused: r } = this.editor, { anchor: i } = e, a = [];
20586
20586
  if (!n || !r)
20587
- return ve.create(t, []);
20587
+ return be.create(t, []);
20588
20588
  let o = 0;
20589
20589
  this.options.mode === "deepest" && t.descendants((f, c) => {
20590
20590
  if (f.isText)
@@ -20604,7 +20604,7 @@ ke.create({
20604
20604
  class: this.options.className
20605
20605
  })
20606
20606
  );
20607
- }), ve.create(t, a);
20607
+ }), be.create(t, a);
20608
20608
  }
20609
20609
  }
20610
20610
  })
@@ -20641,7 +20641,7 @@ var ik = ke.create({
20641
20641
  },
20642
20642
  addProseMirrorPlugins() {
20643
20643
  return [
20644
- new Me({
20644
+ new ye({
20645
20645
  key: new Se("placeholder"),
20646
20646
  props: {
20647
20647
  decorations: ({ doc: t, selection: e }) => {
@@ -20666,7 +20666,7 @@ var ik = ke.create({
20666
20666
  i.push(u);
20667
20667
  }
20668
20668
  return this.options.includeChildren;
20669
- }), ve.create(t, i);
20669
+ }), be.create(t, i);
20670
20670
  }
20671
20671
  }
20672
20672
  })
@@ -20683,11 +20683,11 @@ ke.create({
20683
20683
  addProseMirrorPlugins() {
20684
20684
  const { editor: t, options: e } = this;
20685
20685
  return [
20686
- new Me({
20686
+ new ye({
20687
20687
  key: new Se("selection"),
20688
20688
  props: {
20689
20689
  decorations(n) {
20690
- return n.selection.empty || t.isFocused || !t.isEditable || ng(n.selection) || t.view.dragging ? null : ve.create(n.doc, [
20690
+ return n.selection.empty || t.isFocused || !t.isEditable || ng(n.selection) || t.view.dragging ? null : be.create(n.doc, [
20691
20691
  Ze.inline(n.selection.from, n.selection.to, {
20692
20692
  class: e.className
20693
20693
  })
@@ -20713,7 +20713,7 @@ var ok = ke.create({
20713
20713
  var t;
20714
20714
  const e = new Se(this.name), n = this.options.node || ((t = this.editor.schema.topNodeType.contentMatch.defaultType) == null ? void 0 : t.name) || "paragraph", r = Object.entries(this.editor.schema.nodes).map(([, i]) => i).filter((i) => (this.options.notAfter || []).concat(n).includes(i.name));
20715
20715
  return [
20716
- new Me({
20716
+ new ye({
20717
20717
  key: e,
20718
20718
  appendTransaction: (i, a, o) => {
20719
20719
  const { doc: s, tr: f, schema: c } = o, d = e.getState(o), u = s.content.size, p = c.nodes[n];
@@ -20767,7 +20767,7 @@ var ok = ke.create({
20767
20767
  addExtensions() {
20768
20768
  var t, e, n, r;
20769
20769
  const i = [];
20770
- return this.options.bold !== !1 && i.push(zL.configure(this.options.bold)), this.options.blockquote !== !1 && i.push(TL.configure(this.options.blockquote)), this.options.bulletList !== !1 && i.push(Pg.configure(this.options.bulletList)), this.options.code !== !1 && i.push(RL.configure(this.options.code)), this.options.codeBlock !== !1 && i.push(UL.configure(this.options.codeBlock)), this.options.document !== !1 && i.push(FL.configure(this.options.document)), this.options.dropcursor !== !1 && i.push(rk.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && i.push(ik.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && i.push(JL.configure(this.options.hardBreak)), this.options.heading !== !1 && i.push(YL.configure(this.options.heading)), this.options.undoRedo !== !1 && i.push(sk.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && i.push(QL.configure(this.options.horizontalRule)), this.options.italic !== !1 && i.push($L.configure(this.options.italic)), this.options.listItem !== !1 && i.push(Rg.configure(this.options.listItem)), this.options.listKeymap !== !1 && i.push(Yg.configure((t = this.options) == null ? void 0 : t.listKeymap)), this.options.link !== !1 && i.push(Og.configure((e = this.options) == null ? void 0 : e.link)), this.options.orderedList !== !1 && i.push(Vg.configure(this.options.orderedList)), this.options.paragraph !== !1 && i.push(AN.configure(this.options.paragraph)), this.options.strike !== !1 && i.push(PN.configure(this.options.strike)), this.options.text !== !1 && i.push(RN.configure(this.options.text)), this.options.underline !== !1 && i.push(Gg.configure((n = this.options) == null ? void 0 : n.underline)), this.options.trailingNode !== !1 && i.push(ok.configure((r = this.options) == null ? void 0 : r.trailingNode)), i;
20770
+ return this.options.bold !== !1 && i.push(zL.configure(this.options.bold)), this.options.blockquote !== !1 && i.push(TL.configure(this.options.blockquote)), this.options.bulletList !== !1 && i.push(Pg.configure(this.options.bulletList)), this.options.code !== !1 && i.push(RL.configure(this.options.code)), this.options.codeBlock !== !1 && i.push(UL.configure(this.options.codeBlock)), this.options.document !== !1 && i.push(FL.configure(this.options.document)), this.options.dropcursor !== !1 && i.push(rk.configure(this.options.dropcursor)), this.options.gapcursor !== !1 && i.push(ik.configure(this.options.gapcursor)), this.options.hardBreak !== !1 && i.push(JL.configure(this.options.hardBreak)), this.options.heading !== !1 && i.push(YL.configure(this.options.heading)), this.options.undoRedo !== !1 && i.push(sk.configure(this.options.undoRedo)), this.options.horizontalRule !== !1 && i.push(QL.configure(this.options.horizontalRule)), this.options.italic !== !1 && i.push($L.configure(this.options.italic)), this.options.listItem !== !1 && i.push(Rg.configure(this.options.listItem)), this.options.listKeymap !== !1 && i.push(Yg.configure((t = this.options) == null ? void 0 : t.listKeymap)), this.options.link !== !1 && i.push(Og.configure((e = this.options) == null ? void 0 : e.link)), this.options.orderedList !== !1 && i.push(Vg.configure(this.options.orderedList)), this.options.paragraph !== !1 && i.push(AN.configure(this.options.paragraph)), this.options.strike !== !1 && i.push(PN.configure(this.options.strike)), this.options.text !== !1 && i.push(RN.configure(this.options.text)), this.options.underline !== !1 && i.push(_g.configure((n = this.options) == null ? void 0 : n.underline)), this.options.trailingNode !== !1 && i.push(ok.configure((r = this.options) == null ? void 0 : r.trailingNode)), i;
20771
20771
  }
20772
20772
  }), Kg = fk, lk = /(?:^|\s)(!\[(.+|:?)]\((\S+)(?:(?:\s+)["'](\S+)["'])?\))$/, ck = lt.create({
20773
20773
  name: "image",
@@ -20966,16 +20966,16 @@ function hk({
20966
20966
  const I = C.state.tr.setMeta(k, { exit: !0 });
20967
20967
  C.dispatch(I);
20968
20968
  }
20969
- const N = new Me({
20969
+ const N = new ye({
20970
20970
  key: t,
20971
20971
  view() {
20972
20972
  return {
20973
20973
  update: async (C, k) => {
20974
20974
  var S, I, D, H, J, P, F;
20975
- const A = (S = this.key) == null ? void 0 : S.getState(k), G = (I = this.key) == null ? void 0 : I.getState(C.state), q = A.active && G.active && A.range.from !== G.range.from, fe = !A.active && G.active, Ee = A.active && !G.active, _ = !fe && !Ee && A.query !== G.query, be = fe || q && _, he = _ || q, He = Ee || q && _;
20976
- if (!be && !he && !He)
20975
+ const A = (S = this.key) == null ? void 0 : S.getState(k), _ = (I = this.key) == null ? void 0 : I.getState(C.state), q = A.active && _.active && A.range.from !== _.range.from, fe = !A.active && _.active, Ee = A.active && !_.active, G = !fe && !Ee && A.query !== _.query, Ce = fe || q && G, he = G || q, Ae = Ee || q && G;
20976
+ if (!Ce && !he && !Ae)
20977
20977
  return;
20978
- const R = He && !be ? A : G, W = C.dom.querySelector(`[data-decoration-id="${R.decorationId}"]`);
20978
+ const R = Ae && !Ce ? A : _, W = C.dom.querySelector(`[data-decoration-id="${R.decorationId}"]`);
20979
20979
  v = {
20980
20980
  editor: e,
20981
20981
  range: R.range,
@@ -20989,10 +20989,10 @@ function hk({
20989
20989
  }),
20990
20990
  decorationNode: W,
20991
20991
  clientRect: L(C, W)
20992
- }, be && ((D = w == null ? void 0 : w.onBeforeStart) == null || D.call(w, v)), he && ((H = w == null ? void 0 : w.onBeforeUpdate) == null || H.call(w, v)), (he || be) && (v.items = await p({
20992
+ }, Ce && ((D = w == null ? void 0 : w.onBeforeStart) == null || D.call(w, v)), he && ((H = w == null ? void 0 : w.onBeforeUpdate) == null || H.call(w, v)), (he || Ce) && (v.items = await p({
20993
20993
  editor: e,
20994
20994
  query: R.query
20995
- })), He && ((J = w == null ? void 0 : w.onExit) == null || J.call(w, v)), he && ((P = w == null ? void 0 : w.onUpdate) == null || P.call(w, v)), be && ((F = w == null ? void 0 : w.onStart) == null || F.call(w, v));
20995
+ })), Ae && ((J = w == null ? void 0 : w.onExit) == null || J.call(w, v)), he && ((P = w == null ? void 0 : w.onUpdate) == null || P.call(w, v)), Ce && ((F = w == null ? void 0 : w.onStart) == null || F.call(w, v));
20996
20996
  },
20997
20997
  destroy: () => {
20998
20998
  var C;
@@ -21016,8 +21016,8 @@ function hk({
21016
21016
  },
21017
21017
  // Apply changes to the plugin state from a view transaction.
21018
21018
  apply(C, k, S, I) {
21019
- const { isEditable: D } = e, { composing: H } = e.view, { selection: J } = C, { empty: P, from: F } = J, A = { ...k }, G = C.getMeta(t);
21020
- if (G && G.exit)
21019
+ const { isEditable: D } = e, { composing: H } = e.view, { selection: J } = C, { empty: P, from: F } = J, A = { ...k }, _ = C.getMeta(t);
21020
+ if (_ && _.exit)
21021
21021
  return A.active = !1, A.decorationId = null, A.range = { from: 0, to: 0 }, A.query = null, A.text = null, A;
21022
21022
  if (A.composing = H, D && (P || e.view.composing)) {
21023
21023
  (F < k.range.from || F > k.range.to) && !H && !k.composing && (A.active = !1);
@@ -21048,7 +21048,7 @@ function hk({
21048
21048
  if (!J)
21049
21049
  return !1;
21050
21050
  if (k.key === "Escape" || k.key === "Esc") {
21051
- const A = N.getState(C.state), G = (S = v == null ? void 0 : v.decorationNode) != null ? S : null, q = G ?? (A != null && A.decorationId ? C.dom.querySelector(`[data-decoration-id="${A.decorationId}"]`) : null);
21051
+ const A = N.getState(C.state), _ = (S = v == null ? void 0 : v.decorationNode) != null ? S : null, q = _ ?? (A != null && A.decorationId ? C.dom.querySelector(`[data-decoration-id="${A.decorationId}"]`) : null);
21052
21052
  if (((I = w == null ? void 0 : w.onKeyDown) == null ? void 0 : I.call(w, { view: C, event: k, range: A.range })) || !1)
21053
21053
  return !0;
21054
21054
  const Ee = {
@@ -21057,7 +21057,7 @@ function hk({
21057
21057
  query: A.query,
21058
21058
  text: A.text,
21059
21059
  items: [],
21060
- command: (_) => u({ editor: e, range: A.range, props: _ }),
21060
+ command: (G) => u({ editor: e, range: A.range, props: G }),
21061
21061
  decorationNode: q,
21062
21062
  // If we have a cached decoration node, use it for the clientRect
21063
21063
  // to avoid another DOM lookup. If not, leave clientRect null and
@@ -21074,7 +21074,7 @@ function hk({
21074
21074
  if (!k)
21075
21075
  return null;
21076
21076
  const H = !(D != null && D.length), J = [f];
21077
- return H && J.push(d), ve.create(C.doc, [
21077
+ return H && J.push(d), be.create(C.doc, [
21078
21078
  Ze.inline(S.from, S.to, {
21079
21079
  nodeName: s,
21080
21080
  class: J.join(" "),
@@ -21265,9 +21265,9 @@ var mk = lt.create({
21265
21265
  addProseMirrorPlugins() {
21266
21266
  return e2(this).map(hk);
21267
21267
  }
21268
- }), gk = mk, pt = "top", Ut = "bottom", Ft = "right", mt = "left", Gd = "auto", to = [pt, Ut, Ft, mt], xi = "start", Ba = "end", bk = "clippingParents", t2 = "viewport", Vi = "popper", vk = "reference", yh = /* @__PURE__ */ to.reduce(function(t, e) {
21268
+ }), gk = mk, pt = "top", Ut = "bottom", Ft = "right", mt = "left", _d = "auto", to = [pt, Ut, Ft, mt], xi = "start", Ba = "end", bk = "clippingParents", t2 = "viewport", Vi = "popper", vk = "reference", yh = /* @__PURE__ */ to.reduce(function(t, e) {
21269
21269
  return t.concat([e + "-" + xi, e + "-" + Ba]);
21270
- }, []), n2 = /* @__PURE__ */ [].concat(to, [Gd]).reduce(function(t, e) {
21270
+ }, []), n2 = /* @__PURE__ */ [].concat(to, [_d]).reduce(function(t, e) {
21271
21271
  return t.concat([e, e + "-" + xi, e + "-" + Ba]);
21272
21272
  }, []), wk = "beforeRead", yk = "read", Mk = "afterRead", xk = "beforeMain", Ck = "main", Lk = "afterMain", Nk = "beforeWrite", kk = "write", Sk = "afterWrite", Ik = [wk, yk, Mk, xk, Ck, Lk, Nk, kk, Sk];
21273
21273
  function on(t) {
@@ -21290,7 +21290,7 @@ function Ht(t) {
21290
21290
  var e = Mt(t).HTMLElement;
21291
21291
  return t instanceof e || t instanceof HTMLElement;
21292
21292
  }
21293
- function _d(t) {
21293
+ function Gd(t) {
21294
21294
  if (typeof ShadowRoot > "u")
21295
21295
  return !1;
21296
21296
  var e = Mt(t).ShadowRoot;
@@ -21380,7 +21380,7 @@ function a2(t, e) {
21380
21380
  var n = e.getRootNode && e.getRootNode();
21381
21381
  if (t.contains(e))
21382
21382
  return !0;
21383
- if (n && _d(n)) {
21383
+ if (n && Gd(n)) {
21384
21384
  var r = e;
21385
21385
  do {
21386
21386
  if (r && t.isSameNode(r))
@@ -21409,7 +21409,7 @@ function kf(t) {
21409
21409
  // $FlowFixMe[prop-missing]
21410
21410
  t.assignedSlot || // step into the shadow DOM of the parent of a slotted node
21411
21411
  t.parentNode || // DOM Element detected
21412
- (_d(t) ? t.host : null) || // ShadowRoot detected
21412
+ (Gd(t) ? t.host : null) || // ShadowRoot detected
21413
21413
  // $FlowFixMe[incompatible-call]: HTMLElement is a Node
21414
21414
  nr(t)
21415
21415
  );
@@ -21426,7 +21426,7 @@ function Ek(t) {
21426
21426
  return null;
21427
21427
  }
21428
21428
  var i = kf(t);
21429
- for (_d(i) && (i = i.host); Ht(i) && ["html", "body"].indexOf(on(i)) < 0; ) {
21429
+ for (Gd(i) && (i = i.host); Ht(i) && ["html", "body"].indexOf(on(i)) < 0; ) {
21430
21430
  var a = Sn(i);
21431
21431
  if (a.transform !== "none" || a.perspective !== "none" || a.contain === "paint" || ["transform", "perspective"].indexOf(a.willChange) !== -1 || e && a.willChange === "filter" || e && a.filter && a.filter !== "none")
21432
21432
  return i;
@@ -21632,7 +21632,7 @@ function Zd(t) {
21632
21632
  function qd(t) {
21633
21633
  return Li(nr(t)).left + Zd(t).scrollLeft;
21634
21634
  }
21635
- function Gk(t, e) {
21635
+ function _k(t, e) {
21636
21636
  var n = Mt(t), r = nr(t), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, f = 0;
21637
21637
  if (i) {
21638
21638
  a = i.width, o = i.height;
@@ -21646,7 +21646,7 @@ function Gk(t, e) {
21646
21646
  y: f
21647
21647
  };
21648
21648
  }
21649
- function _k(t) {
21649
+ function Gk(t) {
21650
21650
  var e, n = nr(t), r = Zd(t), i = (e = t.ownerDocument) == null ? void 0 : e.body, a = Nr(n.scrollWidth, n.clientWidth, i ? i.scrollWidth : 0, i ? i.clientWidth : 0), o = Nr(n.scrollHeight, n.clientHeight, i ? i.scrollHeight : 0, i ? i.clientHeight : 0), s = -r.scrollLeft + qd(t), f = -r.scrollTop;
21651
21651
  return Sn(i || n).direction === "rtl" && (s += Nr(n.clientWidth, i ? i.clientWidth : 0) - a), {
21652
21652
  width: a,
@@ -21684,7 +21684,7 @@ function Wk(t, e) {
21684
21684
  return n.top = n.top + t.clientTop, n.left = n.left + t.clientLeft, n.bottom = n.top + t.clientHeight, n.right = n.left + t.clientWidth, n.width = t.clientWidth, n.height = t.clientHeight, n.x = n.left, n.y = n.top, n;
21685
21685
  }
21686
21686
  function Lh(t, e, n) {
21687
- return e === t2 ? Sc(Gk(t, n)) : Er(e) ? Wk(e, n) : Sc(_k(nr(t)));
21687
+ return e === t2 ? Sc(_k(t, n)) : Er(e) ? Wk(e, n) : Sc(Gk(nr(t)));
21688
21688
  }
21689
21689
  function $k(t) {
21690
21690
  var e = ga(kf(t)), n = ["absolute", "fixed"].indexOf(Sn(t).position) >= 0, r = n && Ht(t) ? no(t) : t;
@@ -21788,7 +21788,7 @@ function qk(t, e) {
21788
21788
  });
21789
21789
  }
21790
21790
  function Kk(t) {
21791
- if (Xt(t) === Gd)
21791
+ if (Xt(t) === _d)
21792
21792
  return [];
21793
21793
  var e = Qo(t);
21794
21794
  return [Ch(t), e, Ch(e)];
@@ -21797,7 +21797,7 @@ function Xk(t) {
21797
21797
  var e = t.state, n = t.options, r = t.name;
21798
21798
  if (!e.modifiersData[r]._skip) {
21799
21799
  for (var i = n.mainAxis, a = i === void 0 ? !0 : i, o = n.altAxis, s = o === void 0 ? !0 : o, f = n.fallbackPlacements, c = n.padding, d = n.boundary, u = n.rootBoundary, p = n.altBoundary, h = n.flipVariations, m = h === void 0 ? !0 : h, g = n.allowedAutoPlacements, v = e.options.placement, w = Xt(v), x = w === v, L = f || (x || !m ? [Qo(v)] : Kk(v)), y = [v].concat(L).reduce(function(R, W) {
21800
- return R.concat(Xt(W) === Gd ? qk(e, {
21800
+ return R.concat(Xt(W) === _d ? qk(e, {
21801
21801
  placement: W,
21802
21802
  boundary: d,
21803
21803
  rootBoundary: u,
@@ -21806,7 +21806,7 @@ function Xk(t) {
21806
21806
  allowedAutoPlacements: g
21807
21807
  }) : W);
21808
21808
  }, []), N = e.rects.reference, C = e.rects.popper, k = /* @__PURE__ */ new Map(), S = !0, I = y[0], D = 0; D < y.length; D++) {
21809
- var H = y[D], J = Xt(H), P = Ni(H) === xi, F = [pt, Ut].indexOf(J) >= 0, A = F ? "width" : "height", G = Ha(e, {
21809
+ var H = y[D], J = Xt(H), P = Ni(H) === xi, F = [pt, Ut].indexOf(J) >= 0, A = F ? "width" : "height", _ = Ha(e, {
21810
21810
  placement: H,
21811
21811
  boundary: d,
21812
21812
  rootBoundary: u,
@@ -21815,7 +21815,7 @@ function Xk(t) {
21815
21815
  }), q = F ? P ? Ft : mt : P ? Ut : pt;
21816
21816
  N[A] > C[A] && (q = Qo(q));
21817
21817
  var fe = Qo(q), Ee = [];
21818
- if (a && Ee.push(G[J] <= 0), s && Ee.push(G[q] <= 0, G[fe] <= 0), Ee.every(function(R) {
21818
+ if (a && Ee.push(_[J] <= 0), s && Ee.push(_[q] <= 0, _[fe] <= 0), Ee.every(function(R) {
21819
21819
  return R;
21820
21820
  })) {
21821
21821
  I = H, S = !1;
@@ -21824,7 +21824,7 @@ function Xk(t) {
21824
21824
  k.set(H, Ee);
21825
21825
  }
21826
21826
  if (S)
21827
- for (var _ = m ? 3 : 1, be = function(W) {
21827
+ for (var G = m ? 3 : 1, Ce = function(W) {
21828
21828
  var se = y.find(function(tt) {
21829
21829
  var Nt = k.get(tt);
21830
21830
  if (Nt)
@@ -21834,9 +21834,9 @@ function Xk(t) {
21834
21834
  });
21835
21835
  if (se)
21836
21836
  return I = se, "break";
21837
- }, he = _; he > 0; he--) {
21838
- var He = be(he);
21839
- if (He === "break") break;
21837
+ }, he = G; he > 0; he--) {
21838
+ var Ae = Ce(he);
21839
+ if (Ae === "break") break;
21840
21840
  }
21841
21841
  e.placement !== I && (e.modifiersData[r]._skip = !0, e.placement = I, e.reset = !0);
21842
21842
  }
@@ -21953,10 +21953,10 @@ function l9(t) {
21953
21953
  };
21954
21954
  if (C) {
21955
21955
  if (a) {
21956
- var P, F = y === "y" ? pt : mt, A = y === "y" ? Ut : Ft, G = y === "y" ? "height" : "width", q = C[y], fe = q + v[F], Ee = q - v[A], _ = h ? -S[G] / 2 : 0, be = x === xi ? k[G] : S[G], he = x === xi ? -S[G] : -k[G], He = e.elements.arrow, R = h && He ? Wd(He) : {
21956
+ var P, F = y === "y" ? pt : mt, A = y === "y" ? Ut : Ft, _ = y === "y" ? "height" : "width", q = C[y], fe = q + v[F], Ee = q - v[A], G = h ? -S[_] / 2 : 0, Ce = x === xi ? k[_] : S[_], he = x === xi ? -S[_] : -k[_], Ae = e.elements.arrow, R = h && Ae ? Wd(Ae) : {
21957
21957
  width: 0,
21958
21958
  height: 0
21959
- }, W = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : o2(), se = W[F], tt = W[A], Nt = ma(0, k[G], R[G]), ln = L ? k[G] / 2 - _ - Nt - se - D.mainAxis : be - Nt - se - D.mainAxis, ze = L ? -k[G] / 2 + _ + Nt + tt + D.mainAxis : he + Nt + tt + D.mainAxis, Yt = e.elements.arrow && no(e.elements.arrow), ar = Yt ? y === "y" ? Yt.clientTop || 0 : Yt.clientLeft || 0 : 0, or = (P = H == null ? void 0 : H[y]) != null ? P : 0, fo = q + ln - or - ar, lo = q + ze - or, Pi = ma(h ? Ys(fe, fo) : fe, q, h ? Nr(Ee, lo) : Ee);
21959
+ }, W = e.modifiersData["arrow#persistent"] ? e.modifiersData["arrow#persistent"].padding : o2(), se = W[F], tt = W[A], Nt = ma(0, k[_], R[_]), ln = L ? k[_] / 2 - G - Nt - se - D.mainAxis : Ce - Nt - se - D.mainAxis, Oe = L ? -k[_] / 2 + G + Nt + tt + D.mainAxis : he + Nt + tt + D.mainAxis, Yt = e.elements.arrow && no(e.elements.arrow), ar = Yt ? y === "y" ? Yt.clientTop || 0 : Yt.clientLeft || 0 : 0, or = (P = H == null ? void 0 : H[y]) != null ? P : 0, fo = q + ln - or - ar, lo = q + Oe - or, Pi = ma(h ? Ys(fe, fo) : fe, q, h ? Nr(Ee, lo) : Ee);
21960
21960
  C[y] = Pi, J[y] = Pi - q;
21961
21961
  }
21962
21962
  if (s) {
@@ -22442,7 +22442,7 @@ function w2(t) {
22442
22442
  }, {});
22443
22443
  return Object.assign({}, t, n);
22444
22444
  }
22445
- function G9(t, e) {
22445
+ function _9(t, e) {
22446
22446
  var n = e ? Object.keys(w2(Object.assign({}, bt, {
22447
22447
  plugins: e
22448
22448
  }))) : Q9, r = n.reduce(function(i, a) {
@@ -22464,7 +22464,7 @@ function G9(t, e) {
22464
22464
  function Ph(t, e) {
22465
22465
  var n = Object.assign({}, e, {
22466
22466
  content: m2(e.content, [t])
22467
- }, e.ignoreAttributes ? {} : G9(t, e.plugins));
22467
+ }, e.ignoreAttributes ? {} : _9(t, e.plugins));
22468
22468
  return n.aria = Object.assign({}, bt.aria, n.aria), n.aria = {
22469
22469
  expanded: n.aria.expanded === "auto" ? e.interactive : n.aria.expanded,
22470
22470
  content: n.aria.content === "auto" ? e.interactive ? null : "describedby" : n.aria.content
@@ -22483,11 +22483,11 @@ function y2(t, e) {
22483
22483
  `, "Plugins: https://atomiks.github.io/tippyjs/v6/plugins/"].join(" "));
22484
22484
  });
22485
22485
  }
22486
- var _9 = function() {
22486
+ var G9 = function() {
22487
22487
  return "innerHTML";
22488
22488
  };
22489
22489
  function Tc(t, e) {
22490
- t[_9()] = e;
22490
+ t[G9()] = e;
22491
22491
  }
22492
22492
  function Rh(t) {
22493
22493
  var e = ba();
@@ -22567,7 +22567,7 @@ function $9(t, e) {
22567
22567
  var S = x.map(function(j) {
22568
22568
  return j.fn(y);
22569
22569
  }), I = t.hasAttribute("aria-expanded");
22570
- return Yt(), _(), q(), fe("onCreate", [y]), n.showOnCreate && Bi(), C.addEventListener("mouseenter", function() {
22570
+ return Yt(), G(), q(), fe("onCreate", [y]), n.showOnCreate && Bi(), C.addEventListener("mouseenter", function() {
22571
22571
  y.props.interactive && y.state.isVisible && y.clearDelayTimeouts();
22572
22572
  }), C.addEventListener("mouseleave", function() {
22573
22573
  y.props.interactive && y.props.trigger.indexOf("mouseenter") >= 0 && F().addEventListener("mousemove", m);
@@ -22593,7 +22593,7 @@ function $9(t, e) {
22593
22593
  function A() {
22594
22594
  return jc(C);
22595
22595
  }
22596
- function G(j) {
22596
+ function _(j) {
22597
22597
  return y.state.isMounted && !y.state.isVisible || Kt.isTouch || d && d.type === "focus" ? 0 : jl(y.props.delay, j ? 0 : 1, bt.delay);
22598
22598
  }
22599
22599
  function q(j) {
@@ -22622,7 +22622,7 @@ function $9(t, e) {
22622
22622
  });
22623
22623
  }
22624
22624
  }
22625
- function _() {
22625
+ function G() {
22626
22626
  if (!(I || !y.props.aria.expanded)) {
22627
22627
  var j = ni(y.props.triggerTarget || t);
22628
22628
  j.forEach(function(Y) {
@@ -22630,7 +22630,7 @@ function $9(t, e) {
22630
22630
  });
22631
22631
  }
22632
22632
  }
22633
- function be() {
22633
+ function Ce() {
22634
22634
  F().removeEventListener("mousemove", m), zo = zo.filter(function(j) {
22635
22635
  return j !== m;
22636
22636
  });
@@ -22652,7 +22652,7 @@ function $9(t, e) {
22652
22652
  }
22653
22653
  }
22654
22654
  }
22655
- function He() {
22655
+ function Ae() {
22656
22656
  f = !0;
22657
22657
  }
22658
22658
  function R() {
@@ -22660,11 +22660,11 @@ function $9(t, e) {
22660
22660
  }
22661
22661
  function W() {
22662
22662
  var j = F();
22663
- j.addEventListener("mousedown", he, !0), j.addEventListener("touchend", he, cr), j.addEventListener("touchstart", R, cr), j.addEventListener("touchmove", He, cr);
22663
+ j.addEventListener("mousedown", he, !0), j.addEventListener("touchend", he, cr), j.addEventListener("touchstart", R, cr), j.addEventListener("touchmove", Ae, cr);
22664
22664
  }
22665
22665
  function se() {
22666
22666
  var j = F();
22667
- j.removeEventListener("mousedown", he, !0), j.removeEventListener("touchend", he, cr), j.removeEventListener("touchstart", R, cr), j.removeEventListener("touchmove", He, cr);
22667
+ j.removeEventListener("mousedown", he, !0), j.removeEventListener("touchend", he, cr), j.removeEventListener("touchstart", R, cr), j.removeEventListener("touchmove", Ae, cr);
22668
22668
  }
22669
22669
  function tt(j, Y) {
22670
22670
  ln(j, function() {
@@ -22683,7 +22683,7 @@ function $9(t, e) {
22683
22683
  return Y();
22684
22684
  El($, "remove", u), El($, "add", le), u = le;
22685
22685
  }
22686
- function ze(j, Y, $) {
22686
+ function Oe(j, Y, $) {
22687
22687
  $ === void 0 && ($ = !1);
22688
22688
  var le = ni(y.props.triggerTarget || t);
22689
22689
  le.forEach(function(ae) {
@@ -22696,21 +22696,21 @@ function $9(t, e) {
22696
22696
  });
22697
22697
  }
22698
22698
  function Yt() {
22699
- H() && (ze("touchstart", or, {
22699
+ H() && (Oe("touchstart", or, {
22700
22700
  passive: !0
22701
- }), ze("touchend", lo, {
22701
+ }), Oe("touchend", lo, {
22702
22702
  passive: !0
22703
22703
  })), k9(y.props.trigger).forEach(function(j) {
22704
22704
  if (j !== "manual")
22705
- switch (ze(j, or), j) {
22705
+ switch (Oe(j, or), j) {
22706
22706
  case "mouseenter":
22707
- ze("mouseleave", lo);
22707
+ Oe("mouseleave", lo);
22708
22708
  break;
22709
22709
  case "focus":
22710
- ze(H9 ? "focusout" : "blur", Pi);
22710
+ Oe(H9 ? "focusout" : "blur", Pi);
22711
22711
  break;
22712
22712
  case "focusin":
22713
- ze("focusout", Pi);
22713
+ Oe("focusout", Pi);
22714
22714
  break;
22715
22715
  }
22716
22716
  });
@@ -22725,7 +22725,7 @@ function $9(t, e) {
22725
22725
  var Y, $ = !1;
22726
22726
  if (!(!y.state.isEnabled || Ri(j) || s)) {
22727
22727
  var le = ((Y = d) == null ? void 0 : Y.type) === "focus";
22728
- d = j, g = j.currentTarget, _(), !y.state.isVisible && j9(j) && zo.forEach(function(ae) {
22728
+ d = j, g = j.currentTarget, G(), !y.state.isVisible && j9(j) && zo.forEach(function(ae) {
22729
22729
  return ae(j);
22730
22730
  }), j.type === "click" && (y.props.trigger.indexOf("mouseenter") < 0 || o) && y.props.hideOnClick !== !1 && y.state.isVisible ? $ = !0 : Bi(j), j.type === "click" && (o = !$), $ && !le && sr(j);
22731
22731
  }
@@ -22741,7 +22741,7 @@ function $9(t, e) {
22741
22741
  props: n
22742
22742
  } : null;
22743
22743
  }).filter(Boolean);
22744
- z9(le, j) && (be(), sr(j));
22744
+ z9(le, j) && (Ce(), sr(j));
22745
22745
  }
22746
22746
  }
22747
22747
  function lo(j) {
@@ -22771,12 +22771,12 @@ function $9(t, e) {
22771
22771
  phase: "beforeWrite",
22772
22772
  requires: ["computeStyles"],
22773
22773
  fn: function(bo) {
22774
- var Gr = bo.state;
22774
+ var _r = bo.state;
22775
22775
  if (J()) {
22776
22776
  var R4 = A(), tl = R4.box;
22777
22777
  ["placement", "reference-hidden", "escaped"].forEach(function(vo) {
22778
- vo === "placement" ? tl.setAttribute("data-placement", Gr.placement) : Gr.attributes.popper["data-popper-" + vo] ? tl.setAttribute("data-" + vo, "") : tl.removeAttribute("data-" + vo);
22779
- }), Gr.attributes.popper = {};
22778
+ vo === "placement" ? tl.setAttribute("data-placement", _r.placement) : _r.attributes.popper["data-popper-" + vo] ? tl.setAttribute("data-" + vo, "") : tl.removeAttribute("data-" + vo);
22779
+ }), _r.attributes.popper = {};
22780
22780
  }
22781
22781
  }
22782
22782
  }, fr = [{
@@ -22835,7 +22835,7 @@ function $9(t, e) {
22835
22835
  }
22836
22836
  function Bi(j) {
22837
22837
  y.clearDelayTimeouts(), j && fe("onTrigger", [y, j]), W();
22838
- var Y = G(!0), $ = D(), le = $[0], ae = $[1];
22838
+ var Y = _(!0), $ = D(), le = $[0], ae = $[1];
22839
22839
  Kt.isTouch && le === "hold" && ae && (Y = ae), Y ? r = setTimeout(function() {
22840
22840
  y.show();
22841
22841
  }, Y) : y.show();
@@ -22846,7 +22846,7 @@ function $9(t, e) {
22846
22846
  return;
22847
22847
  }
22848
22848
  if (!(y.props.trigger.indexOf("mouseenter") >= 0 && y.props.trigger.indexOf("click") >= 0 && ["mouseleave", "mousemove"].indexOf(j.type) >= 0 && o)) {
22849
- var Y = G(!1);
22849
+ var Y = _(!1);
22850
22850
  Y ? i = setTimeout(function() {
22851
22851
  y.state.isVisible && y.hide();
22852
22852
  }, Y) : a = requestAnimationFrame(function() {
@@ -22869,9 +22869,9 @@ function $9(t, e) {
22869
22869
  var Y = y.props, $ = Ph(t, Object.assign({}, Y, Dh(j), {
22870
22870
  ignoreAttributes: !0
22871
22871
  }));
22872
- y.props = $, Yt(), Y.interactiveDebounce !== $.interactiveDebounce && (be(), m = Th(fo, $.interactiveDebounce)), Y.triggerTarget && !$.triggerTarget ? ni(Y.triggerTarget).forEach(function(le) {
22872
+ y.props = $, Yt(), Y.interactiveDebounce !== $.interactiveDebounce && (Ce(), m = Th(fo, $.interactiveDebounce)), Y.triggerTarget && !$.triggerTarget ? ni(Y.triggerTarget).forEach(function(le) {
22873
22873
  le.removeAttribute("aria-expanded");
22874
- }) : $.triggerTarget && t.removeAttribute("aria-expanded"), _(), q(), k && k(Y, $), y.popperInstance && (co(), Dn().forEach(function(le) {
22874
+ }) : $.triggerTarget && t.removeAttribute("aria-expanded"), G(), q(), k && k(Y, $), y.popperInstance && (co(), Dn().forEach(function(le) {
22875
22875
  requestAnimationFrame(le._tippy.popperInstance.forceUpdate);
22876
22876
  })), fe("onAfterUpdate", [y, j]);
22877
22877
  }
@@ -22893,10 +22893,10 @@ function $9(t, e) {
22893
22893
  var fr;
22894
22894
  if (!(!y.state.isVisible || c)) {
22895
22895
  if (c = !0, C.offsetHeight, C.style.transition = y.props.moveTransition, J() && y.props.animation) {
22896
- var el = A(), bo = el.box, Gr = el.content;
22897
- Dl([bo, Gr], ae), Eh([bo, Gr], "visible");
22896
+ var el = A(), bo = el.box, _r = el.content;
22897
+ Dl([bo, _r], ae), Eh([bo, _r], "visible");
22898
22898
  }
22899
- Ee(), _(), jh(Al, y), (fr = y.popperInstance) == null || fr.forceUpdate(), fe("onMount", [y]), y.props.animation && J() && Nt(ae, function() {
22899
+ Ee(), G(), jh(Al, y), (fr = y.popperInstance) == null || fr.forceUpdate(), fe("onMount", [y]), y.props.animation && J() && Nt(ae, function() {
22900
22900
  y.state.isShown = !0, fe("onShown", [y]);
22901
22901
  });
22902
22902
  }
@@ -22907,11 +22907,11 @@ function $9(t, e) {
22907
22907
  process.env.NODE_ENV !== "production" && wn(y.state.isDestroyed, $r("hide"));
22908
22908
  var j = !y.state.isVisible, Y = y.state.isDestroyed, $ = !y.state.isEnabled, le = jl(y.props.duration, 1, bt.duration);
22909
22909
  if (!(j || Y || $) && (fe("onHide", [y], !1), y.props.onHide(y) !== !1)) {
22910
- if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, o = !1, J() && (C.style.visibility = "hidden"), be(), se(), q(!0), J()) {
22910
+ if (y.state.isVisible = !1, y.state.isShown = !1, c = !1, o = !1, J() && (C.style.visibility = "hidden"), Ce(), se(), q(!0), J()) {
22911
22911
  var ae = A(), nt = ae.box, kt = ae.content;
22912
22912
  y.props.animation && (Dl([nt, kt], le), Eh([nt, kt], "hidden"));
22913
22913
  }
22914
- Ee(), _(), y.props.animation ? J() && tt(le, y.unmount) : y.unmount();
22914
+ Ee(), G(), y.props.animation ? J() && tt(le, y.unmount) : y.unmount();
22915
22915
  }
22916
22916
  }
22917
22917
  function z4(j) {
@@ -23325,24 +23325,24 @@ function Jt() {
23325
23325
  return "." + r;
23326
23326
  }).join("");
23327
23327
  }
23328
- var xe = /* @__PURE__ */ rS("epr", null), Go = {
23328
+ var Me = /* @__PURE__ */ rS("epr", null), _o = {
23329
23329
  display: "none",
23330
23330
  opacity: "0",
23331
23331
  pointerEvents: "none",
23332
23332
  visibility: "hidden",
23333
23333
  overflow: "hidden"
23334
- }, nu = /* @__PURE__ */ xe.create({
23334
+ }, nu = /* @__PURE__ */ Me.create({
23335
23335
  hidden: /* @__PURE__ */ ge({
23336
23336
  ".": ie.hidden
23337
- }, Go)
23337
+ }, _o)
23338
23338
  }), lS = /* @__PURE__ */ qc(function() {
23339
23339
  return O("style", {
23340
23340
  suppressHydrationWarning: !0,
23341
23341
  dangerouslySetInnerHTML: {
23342
- __html: xe.getStyle()
23342
+ __html: Me.getStyle()
23343
23343
  }
23344
23344
  });
23345
- }), Hr = /* @__PURE__ */ xe.create({
23345
+ }), Hr = /* @__PURE__ */ Me.create({
23346
23346
  ".epr-main": {
23347
23347
  ":has(input:not(:placeholder-shown))": {
23348
23348
  categoryBtn: {
@@ -23353,10 +23353,10 @@ var xe = /* @__PURE__ */ rS("epr", null), Go = {
23353
23353
  },
23354
23354
  hiddenOnSearch: /* @__PURE__ */ ge({
23355
23355
  ".": ie.hiddenOnSearch
23356
- }, Go)
23356
+ }, _o)
23357
23357
  },
23358
23358
  ":has(input:placeholder-shown)": {
23359
- visibleOnSearchOnly: Go
23359
+ visibleOnSearchOnly: _o
23360
23360
  }
23361
23361
  },
23362
23362
  hiddenOnReactions: {
@@ -23384,7 +23384,7 @@ var xe = /* @__PURE__ */ rS("epr", null), Go = {
23384
23384
  },
23385
23385
  visibleOnSearchOnly: /* @__PURE__ */ ge({
23386
23386
  ".": "epr-visible-on-search-only"
23387
- }, Go)
23387
+ }, _o)
23388
23388
  }
23389
23389
  });
23390
23390
  function Zn(t, e) {
@@ -23424,7 +23424,7 @@ function O2(t) {
23424
23424
  }
23425
23425
  function Fh(t, e) {
23426
23426
  e === void 0 && (e = 0);
23427
- var n = ne(t), r = n[0], i = n[1], a = Ae(null);
23427
+ var n = ne(t), r = n[0], i = n[1], a = ze(null);
23428
23428
  function o(s) {
23429
23429
  return new Promise(function(f) {
23430
23430
  var c;
@@ -23442,8 +23442,8 @@ function dS() {
23442
23442
  };
23443
23443
  }
23444
23444
  function P2() {
23445
- var t = Ae({}), e = cI();
23446
- return ye(function() {
23445
+ var t = ze({}), e = cI();
23446
+ return we(function() {
23447
23447
  var n = parseFloat("" + e);
23448
23448
  return !e || Number.isNaN(n) ? t.current : Ef.reduce(function(r, i) {
23449
23449
  return hS(i, n) && (r[Qe(i)] = !0), r;
@@ -23490,7 +23490,7 @@ var ki;
23490
23490
  t.SEARCH = "SEARCH", t.PREVIEW = "PREVIEW";
23491
23491
  })(ki || (ki = {}));
23492
23492
  function mS(t) {
23493
- var e = t.children, n = P2(), r = XS(), i = lI(), a = Ae(va), o = Ae(!1), s = Ae(!1), f = Ae(n), c = Fh(Date.now(), 200), d = Fh("", 100), u = ne(!1), p = ne(r), h = ne(null), m = ne(/* @__PURE__ */ new Set()), g = ne(null), v = ne(i), w = ne(!1), x = w[0], L = w[1], y = ne([]), N = ne(null);
23493
+ var e = t.children, n = P2(), r = XS(), i = lI(), a = ze(va), o = ze(!1), s = ze(!1), f = ze(n), c = Fh(Date.now(), 200), d = Fh("", 100), u = ne(!1), p = ne(r), h = ne(null), m = ne(/* @__PURE__ */ new Set()), g = ne(null), v = ne(i), w = ne(!1), x = w[0], L = w[1], y = ne([]), N = ne(null);
23494
23494
  return pS(L), O(xt.Provider, {
23495
23495
  value: {
23496
23496
  activeCategoryState: h,
@@ -40459,7 +40459,7 @@ var NS = [], kS = [
40459
40459
  u: "1f3f4-e0067-e0062-e0077-e006c-e0073-e007f",
40460
40460
  a: "5.0"
40461
40461
  }
40462
- ], Gs = {
40462
+ ], _s = {
40463
40463
  custom: NS,
40464
40464
  smileys_people: kS,
40465
40465
  animals_nature: SS,
@@ -40469,10 +40469,10 @@ var NS = [], kS = [
40469
40469
  objects: DS,
40470
40470
  symbols: ES,
40471
40471
  flags: AS
40472
- }, _s = [Vt.NEUTRAL, Vt.LIGHT, Vt.MEDIUM_LIGHT, Vt.MEDIUM, Vt.MEDIUM_DARK, Vt.DARK], zS = /* @__PURE__ */ Object.entries(Vt).reduce(function(t, e) {
40472
+ }, Gs = [Vt.NEUTRAL, Vt.LIGHT, Vt.MEDIUM_LIGHT, Vt.MEDIUM, Vt.MEDIUM_DARK, Vt.DARK], zS = /* @__PURE__ */ Object.entries(Vt).reduce(function(t, e) {
40473
40473
  var n = e[0], r = e[1];
40474
40474
  return t[r] = n, t;
40475
- }, {}), OS = /* @__PURE__ */ _s.reduce(function(t, e) {
40475
+ }, {}), OS = /* @__PURE__ */ Gs.reduce(function(t, e) {
40476
40476
  var n;
40477
40477
  return Object.assign(t, (n = {}, n[e] = e, n));
40478
40478
  }, {}), Ot;
@@ -40542,10 +40542,10 @@ function V2() {
40542
40542
  );
40543
40543
  return function(a) {
40544
40544
  var o;
40545
- return a === te.SUGGESTED ? r : (o = Gs[a]) != null ? o : [];
40545
+ return a === te.SUGGESTED ? r : (o = _s[a]) != null ? o : [];
40546
40546
  };
40547
40547
  }
40548
- function G2(t, e) {
40548
+ function _2(t, e) {
40549
40549
  return "" + LS(e) + t + ".png";
40550
40550
  }
40551
40551
  function oo(t) {
@@ -40568,11 +40568,11 @@ function Si(t) {
40568
40568
  return di[e];
40569
40569
  }
40570
40570
  }
40571
- var Ef = /* @__PURE__ */ Object.values(Gs).flat();
40571
+ var Ef = /* @__PURE__ */ Object.values(_s).flat();
40572
40572
  function HS(t) {
40573
- Gs[te.CUSTOM].length = 0, t.forEach(function(e) {
40573
+ _s[te.CUSTOM].length = 0, t.forEach(function(e) {
40574
40574
  var n = US(e);
40575
- Gs[te.CUSTOM].push(n), !di[n[Ot.unified]] && (Ef.push(n), di[n[Ot.unified]] = n, O2(n));
40575
+ _s[te.CUSTOM].push(n), !di[n[Ot.unified]] && (Ef.push(n), di[n[Ot.unified]] = n, O2(n));
40576
40576
  });
40577
40577
  }
40578
40578
  function US(t) {
@@ -40591,9 +40591,9 @@ setTimeout(function() {
40591
40591
  });
40592
40592
  function FS(t) {
40593
40593
  var e = t.split("-"), n = e[1];
40594
- return _s.includes(n) ? n : null;
40594
+ return Gs.includes(n) ? n : null;
40595
40595
  }
40596
- var JS = ["2640-fe0f", "2642-fe0f", "2695-fe0f"], Ws = "Search", _2 = "Clear", YS = "No results found", W2 = " found. Use up and down arrow keys to navigate.", QS = "1 result" + W2, VS = "%n results" + W2;
40596
+ var JS = ["2640-fe0f", "2642-fe0f", "2695-fe0f"], Ws = "Search", G2 = "Clear", YS = "No results found", W2 = " found. Use up and down arrow keys to navigate.", QS = "1 result" + W2, VS = "%n results" + W2;
40597
40597
  function Yh(t) {
40598
40598
  var e, n;
40599
40599
  t === void 0 && (t = {});
@@ -40619,14 +40619,14 @@ function $2() {
40619
40619
  defaultSkinTone: Vt.NEUTRAL,
40620
40620
  emojiStyle: vt.APPLE,
40621
40621
  emojiVersion: null,
40622
- getEmojiUrl: G2,
40622
+ getEmojiUrl: _2,
40623
40623
  height: 450,
40624
40624
  lazyLoadEmojis: !1,
40625
- previewConfig: ge({}, GS),
40625
+ previewConfig: ge({}, _S),
40626
40626
  searchDisabled: !1,
40627
40627
  searchPlaceHolder: Ws,
40628
40628
  searchPlaceholder: Ws,
40629
- searchClearButtonLabel: _2,
40629
+ searchClearButtonLabel: G2,
40630
40630
  skinTonePickerLocation: ki.SEARCH,
40631
40631
  skinTonesDisabled: !1,
40632
40632
  style: {},
@@ -40641,13 +40641,13 @@ function $2() {
40641
40641
  hiddenEmojis: []
40642
40642
  };
40643
40643
  }
40644
- var GS = {
40644
+ var _S = {
40645
40645
  defaultEmoji: "1f60a",
40646
40646
  defaultCaption: "What's your mood?",
40647
40647
  showPreview: !0
40648
- }, _S = ["children"], Z2 = /* @__PURE__ */ Ti(/* @__PURE__ */ $2());
40648
+ }, GS = ["children"], Z2 = /* @__PURE__ */ Ti(/* @__PURE__ */ $2());
40649
40649
  function WS(t) {
40650
- var e = t.children, n = A2(t, _S), r = $S(n);
40650
+ var e = t.children, n = A2(t, GS), r = $S(n);
40651
40651
  return O(Z2.Provider, {
40652
40652
  value: r
40653
40653
  }, e);
@@ -40660,7 +40660,7 @@ function $S(t) {
40660
40660
  z2(r, t) || i(Yh(t));
40661
40661
  }, [(e = t.customEmojis) == null ? void 0 : e.length, t.open, t.emojiVersion, t.reactionsDefaultOpen, t.searchPlaceHolder, t.searchPlaceholder, t.searchClearButtonLabel, t.defaultSkinTone, t.skinTonesDisabled, t.autoFocusSearch, t.emojiStyle, t.theme, t.suggestedEmojisMode, t.lazyLoadEmojis, t.className, t.height, t.width, t.searchDisabled, t.skinTonePickerLocation, t.allowExpandReactions]), r;
40662
40662
  }
40663
- function Ce() {
40663
+ function xe() {
40664
40664
  return Xe(Z2);
40665
40665
  }
40666
40666
  var q2 = /* @__PURE__ */ ut.createContext({});
@@ -40687,45 +40687,45 @@ var Qa;
40687
40687
  t.REACTIONS = "reactions", t.PICKER = "picker";
40688
40688
  })(Qa || (Qa = {}));
40689
40689
  function qS() {
40690
- var t, e = Ce(), n = e.searchPlaceHolder, r = e.searchPlaceholder;
40690
+ var t, e = xe(), n = e.searchPlaceHolder, r = e.searchPlaceholder;
40691
40691
  return (t = [n, r].find(function(i) {
40692
40692
  return i !== Ws;
40693
40693
  })) != null ? t : Ws;
40694
40694
  }
40695
40695
  function KS() {
40696
- var t = Ce(), e = t.searchClearButtonLabel;
40697
- return e ?? _2;
40696
+ var t = xe(), e = t.searchClearButtonLabel;
40697
+ return e ?? G2;
40698
40698
  }
40699
40699
  function XS() {
40700
- var t = Ce(), e = t.defaultSkinTone;
40700
+ var t = xe(), e = t.defaultSkinTone;
40701
40701
  return e;
40702
40702
  }
40703
40703
  function X2() {
40704
- var t = Ce(), e = t.allowExpandReactions;
40704
+ var t = xe(), e = t.allowExpandReactions;
40705
40705
  return e;
40706
40706
  }
40707
40707
  function eb() {
40708
- var t = Ce(), e = t.skinTonesDisabled;
40708
+ var t = xe(), e = t.skinTonesDisabled;
40709
40709
  return e;
40710
40710
  }
40711
40711
  function Fr() {
40712
- var t = Ce(), e = t.emojiStyle;
40712
+ var t = xe(), e = t.emojiStyle;
40713
40713
  return e;
40714
40714
  }
40715
40715
  function eI() {
40716
- var t = Ce(), e = t.autoFocusSearch;
40716
+ var t = xe(), e = t.autoFocusSearch;
40717
40717
  return e;
40718
40718
  }
40719
40719
  function su() {
40720
- var t = Ce(), e = t.categories;
40720
+ var t = xe(), e = t.categories;
40721
40721
  return e;
40722
40722
  }
40723
40723
  function tI() {
40724
- var t = Ce(), e = t.customEmojis;
40724
+ var t = xe(), e = t.customEmojis;
40725
40725
  return e;
40726
40726
  }
40727
40727
  function nI() {
40728
- var t = Ce(), e = t.open;
40728
+ var t = xe(), e = t.open;
40729
40729
  return e;
40730
40730
  }
40731
40731
  function rI(t) {
@@ -40757,58 +40757,58 @@ function iI() {
40757
40757
  };
40758
40758
  }
40759
40759
  function tb() {
40760
- var t = Ce(), e = t.previewConfig;
40760
+ var t = xe(), e = t.previewConfig;
40761
40761
  return e;
40762
40762
  }
40763
40763
  function aI() {
40764
- var t = Ce(), e = t.theme;
40764
+ var t = xe(), e = t.theme;
40765
40765
  return e;
40766
40766
  }
40767
40767
  function oI() {
40768
- var t = Ce(), e = t.suggestedEmojisMode;
40768
+ var t = xe(), e = t.suggestedEmojisMode;
40769
40769
  return e;
40770
40770
  }
40771
40771
  function nb() {
40772
- var t = Ce(), e = t.lazyLoadEmojis;
40772
+ var t = xe(), e = t.lazyLoadEmojis;
40773
40773
  return e;
40774
40774
  }
40775
40775
  function sI() {
40776
- var t = Ce(), e = t.className;
40776
+ var t = xe(), e = t.className;
40777
40777
  return e;
40778
40778
  }
40779
40779
  function fI() {
40780
- var t = Ce(), e = t.height, n = t.width, r = t.style;
40780
+ var t = xe(), e = t.height, n = t.width, r = t.style;
40781
40781
  return ge({
40782
40782
  height: Qh(e),
40783
40783
  width: Qh(n)
40784
40784
  }, r);
40785
40785
  }
40786
40786
  function lI() {
40787
- var t = Ce(), e = t.reactionsDefaultOpen;
40787
+ var t = xe(), e = t.reactionsDefaultOpen;
40788
40788
  return e;
40789
40789
  }
40790
40790
  function cI() {
40791
- var t = Ce(), e = t.emojiVersion;
40791
+ var t = xe(), e = t.emojiVersion;
40792
40792
  return e;
40793
40793
  }
40794
40794
  function rb() {
40795
- var t = Ce(), e = t.searchDisabled;
40795
+ var t = xe(), e = t.searchDisabled;
40796
40796
  return e;
40797
40797
  }
40798
40798
  function ib() {
40799
- var t = Ce(), e = t.skinTonePickerLocation;
40799
+ var t = xe(), e = t.skinTonePickerLocation;
40800
40800
  return e;
40801
40801
  }
40802
40802
  function dI() {
40803
- var t = Ce(), e = t.unicodeToHide;
40803
+ var t = xe(), e = t.unicodeToHide;
40804
40804
  return e;
40805
40805
  }
40806
40806
  function uI() {
40807
- var t = Ce(), e = t.reactions;
40807
+ var t = xe(), e = t.reactions;
40808
40808
  return e;
40809
40809
  }
40810
40810
  function Jr() {
40811
- var t = Ce(), e = t.getEmojiUrl;
40811
+ var t = xe(), e = t.getEmojiUrl;
40812
40812
  return e;
40813
40813
  }
40814
40814
  function Qh(t) {
@@ -40849,7 +40849,7 @@ function Va() {
40849
40849
  return document.activeElement;
40850
40850
  }
40851
40851
  function pI(t) {
40852
- var e = t.children, n = Ae(null), r = Ae(null), i = Ae(null), a = Ae(null), o = Ae(null), s = Ae(null), f = Ae(null), c = Ae(null), d = Ae(null);
40852
+ var e = t.children, n = ze(null), r = ze(null), i = ze(null), a = ze(null), o = ze(null), s = ze(null), f = ze(null), c = ze(null), d = ze(null);
40853
40853
  return O(fb.Provider, {
40854
40854
  value: {
40855
40855
  AnchoredEmojiRef: r,
@@ -41195,7 +41195,7 @@ function HI() {
41195
41195
  UI(), FI(), JI(), YI(), QI();
41196
41196
  }
41197
41197
  function UI() {
41198
- var t = Ai(), e = gb(), n = vI(), r = rr(), i = Qr(), a = ub(), o = SI(), s = Yr(), f = ye(function() {
41198
+ var t = Ai(), e = gb(), n = vI(), r = rr(), i = Qr(), a = ub(), o = SI(), s = Yr(), f = we(function() {
41199
41199
  return function(d) {
41200
41200
  var u = d.key;
41201
41201
  switch (o(), u) {
@@ -41219,7 +41219,7 @@ function UI() {
41219
41219
  }, [t, r, n, f]);
41220
41220
  }
41221
41221
  function FI() {
41222
- var t = TI(), e = Ai(), n = Lt(), r = rr(), i = io(), a = i[1], o = wb(), s = du(), f = ye(function() {
41222
+ var t = TI(), e = Ai(), n = Lt(), r = rr(), i = io(), a = i[1], o = wb(), s = du(), f = we(function() {
41223
41223
  return function(d) {
41224
41224
  var u = d.key;
41225
41225
  switch (u) {
@@ -41246,7 +41246,7 @@ function FI() {
41246
41246
  }, [e, r, f]);
41247
41247
  }
41248
41248
  function JI() {
41249
- var t = fu(), e = Qr(), n = rr(), r = wb(), i = io(), a = i[0], o = i[1], s = vb(), f = du(), c = uu(), d = ye(function() {
41249
+ var t = fu(), e = Qr(), n = rr(), r = wb(), i = io(), a = i[0], o = i[1], s = vb(), f = du(), c = uu(), d = we(function() {
41250
41250
  return (
41251
41251
  // eslint-disable-next-line complexity
41252
41252
  (function(p) {
@@ -41256,12 +41256,12 @@ function JI() {
41256
41256
  case Ie.ArrowLeft:
41257
41257
  if (p.preventDefault(), !a)
41258
41258
  return e();
41259
- Gh(e);
41259
+ _h(e);
41260
41260
  break;
41261
41261
  case Ie.ArrowRight:
41262
41262
  if (p.preventDefault(), !a)
41263
41263
  return e();
41264
- _h();
41264
+ Gh();
41265
41265
  break;
41266
41266
  case Ie.ArrowDown:
41267
41267
  p.preventDefault(), a && o(!1), r();
@@ -41275,12 +41275,12 @@ function JI() {
41275
41275
  case Ie.ArrowUp:
41276
41276
  if (p.preventDefault(), !a)
41277
41277
  return e();
41278
- Gh(e);
41278
+ _h(e);
41279
41279
  break;
41280
41280
  case Ie.ArrowDown:
41281
41281
  if (p.preventDefault(), !a)
41282
41282
  return e();
41283
- _h();
41283
+ Gh();
41284
41284
  break;
41285
41285
  default:
41286
41286
  c(p);
@@ -41298,7 +41298,7 @@ function JI() {
41298
41298
  }, [t, n, a, d]);
41299
41299
  }
41300
41300
  function YI() {
41301
- var t = Qr(), e = lu(), n = Lt(), r = uu(), i = ye(function() {
41301
+ var t = Qr(), e = lu(), n = Lt(), r = uu(), i = we(function() {
41302
41302
  return function(o) {
41303
41303
  var s = o.key;
41304
41304
  switch (s) {
@@ -41329,7 +41329,7 @@ function YI() {
41329
41329
  }, [e, n, i]);
41330
41330
  }
41331
41331
  function QI() {
41332
- var t = Lt(), e = VI(), n = bb(), r = ub(), i = Yr(), a = uu(), o = ye(function() {
41332
+ var t = Lt(), e = VI(), n = bb(), r = ub(), i = Yr(), a = uu(), o = we(function() {
41333
41333
  return (
41334
41334
  // eslint-disable-next-line complexity
41335
41335
  (function(f) {
@@ -41385,11 +41385,11 @@ function VI() {
41385
41385
  return n ? t() : e();
41386
41386
  }, [t, n, e]);
41387
41387
  }
41388
- function Gh(t) {
41388
+ function _h(t) {
41389
41389
  var e = Va();
41390
41390
  e && (eT(e) || t(), ob(e));
41391
41391
  }
41392
- function _h() {
41392
+ function Gh() {
41393
41393
  var t = Va();
41394
41394
  t && ab(t);
41395
41395
  }
@@ -41397,14 +41397,14 @@ function uu() {
41397
41397
  var t = DI(), e = Qr(), n = rb(), r = Yr();
41398
41398
  return function(a) {
41399
41399
  var o = a.key;
41400
- GI(a) || n || o.match(/(^[a-zA-Z0-9]$){1}/) && (a.preventDefault(), r(), e(), t(o));
41400
+ _I(a) || n || o.match(/(^[a-zA-Z0-9]$){1}/) && (a.preventDefault(), r(), e(), t(o));
41401
41401
  };
41402
41402
  }
41403
- function GI(t) {
41403
+ function _I(t) {
41404
41404
  var e = t.metaKey, n = t.ctrlKey, r = t.altKey;
41405
41405
  return e || n || r;
41406
41406
  }
41407
- function _I(t, e, n, r, i, a, o, s) {
41407
+ function GI(t, e, n, r, i, a, o, s) {
41408
41408
  if (t && e !== vt.NATIVE) {
41409
41409
  var f = Qe(t);
41410
41410
  Oc.has(f) || !a || !o || setTimeout(function() {
@@ -41455,7 +41455,7 @@ function KI(t) {
41455
41455
  HI(), $I();
41456
41456
  var d = c || {}, u = d.width, p = d.height, h = A2(d, ZI);
41457
41457
  return O("aside", {
41458
- className: re(Gi.main, Gi.baseVariables, a === Ya.DARK && Gi.darkTheme, a === Ya.AUTO && Gi.autoThemeDark, (e = {}, e[ie.searchActive] = o, e), i && Gi.reactionsMenu, f),
41458
+ className: re(_i.main, _i.baseVariables, a === Ya.DARK && _i.darkTheme, a === Ya.AUTO && _i.autoThemeDark, (e = {}, e[ie.searchActive] = o, e), i && _i.reactionsMenu, f),
41459
41459
  ref: s,
41460
41460
  style: ge({}, h, !i && {
41461
41461
  height: p,
@@ -41481,7 +41481,7 @@ var Wh = {
41481
41481
  "--epr-skin-tone-picker-menu-color": "var(--epr-dark-skin-tone-picker-menu-color)",
41482
41482
  "--epr-skin-tone-outer-border-color": "var(--epr-dark-skin-tone-outer-border-color)",
41483
41483
  "--epr-skin-tone-inner-border-color": "var(--epr-dark-skin-tone-inner-border-color)"
41484
- }, Gi = /* @__PURE__ */ xe.create({
41484
+ }, _i = /* @__PURE__ */ Me.create({
41485
41485
  main: {
41486
41486
  ".": ["epr-main", ie.emojiPicker],
41487
41487
  position: "relative",
@@ -41634,10 +41634,10 @@ function xb(t) {
41634
41634
  }
41635
41635
  return Pc;
41636
41636
  }
41637
- var Ga = "button" + /* @__PURE__ */ Jt(ie.emoji), tT = /* @__PURE__ */ [Ga, Jt(ie.visible), ":not(" + Jt(ie.hidden) + ")"].join("");
41637
+ var _a = "button" + /* @__PURE__ */ Jt(ie.emoji), tT = /* @__PURE__ */ [_a, Jt(ie.visible), ":not(" + Jt(ie.hidden) + ")"].join("");
41638
41638
  function Wt(t) {
41639
41639
  var e;
41640
- return (e = t == null ? void 0 : t.closest(Ga)) != null ? e : null;
41640
+ return (e = t == null ? void 0 : t.closest(_a)) != null ? e : null;
41641
41641
  }
41642
41642
  function hu(t) {
41643
41643
  var e = Sb(t), n = mu(t);
@@ -41648,7 +41648,7 @@ function hu(t) {
41648
41648
  }
41649
41649
  function nT(t) {
41650
41650
  var e;
41651
- return !!(t != null && t.matches(Ga) || !(t == null || (e = t.parentElement) == null) && e.matches(Ga));
41651
+ return !!(t != null && t.matches(_a) || !(t == null || (e = t.parentElement) == null) && e.matches(_a));
41652
41652
  }
41653
41653
  function $h(t) {
41654
41654
  var e;
@@ -41778,7 +41778,7 @@ function zb(t) {
41778
41778
  return t.imgUrl !== void 0;
41779
41779
  }
41780
41780
  function Ob(t, e) {
41781
- var n = Ae(), r = bb(), i = gS(), a = Di(), o = a[1], s = Yr(), f = jf(), c = f[0], d = rI(e), u = H2(), p = u[1], h = Jr(), m = Fr(), g = Ye(function(L) {
41781
+ var n = ze(), r = bb(), i = gS(), a = Di(), o = a[1], s = Yr(), f = jf(), c = f[0], d = rI(e), u = H2(), p = u[1], h = Jr(), m = Fr(), g = Ye(function(L) {
41782
41782
  if (!i.current) {
41783
41783
  s();
41784
41784
  var y = Kh(L), N = y[0], C = y[1];
@@ -41856,7 +41856,7 @@ function so(t) {
41856
41856
  className: re(lT.button, t.className)
41857
41857
  }), t.children);
41858
41858
  }
41859
- var lT = /* @__PURE__ */ xe.create({
41859
+ var lT = /* @__PURE__ */ Me.create({
41860
41860
  button: {
41861
41861
  ".": "epr-btn",
41862
41862
  cursor: "pointer",
@@ -41879,7 +41879,7 @@ function dT(t) {
41879
41879
  var e;
41880
41880
  return t[0].match("flag-") && (e = t[1]) != null ? e : t[0];
41881
41881
  }
41882
- var zl = /* @__PURE__ */ xe.create({
41882
+ var zl = /* @__PURE__ */ Me.create({
41883
41883
  emoji: {
41884
41884
  ".": ie.emoji,
41885
41885
  position: "relative",
@@ -41932,7 +41932,7 @@ var zl = /* @__PURE__ */ xe.create({
41932
41932
  borderBottom: "4px solid var(--epr-emoji-variation-indicator-color-hover)"
41933
41933
  }
41934
41934
  }
41935
- }), $s = /* @__PURE__ */ xe.create({
41935
+ }), $s = /* @__PURE__ */ Me.create({
41936
41936
  external: {
41937
41937
  ".": ie.external,
41938
41938
  fontSize: "0"
@@ -41954,7 +41954,7 @@ function Xh(t) {
41954
41954
  style: n
41955
41955
  });
41956
41956
  }
41957
- var uT = /* @__PURE__ */ xe.create({
41957
+ var uT = /* @__PURE__ */ Me.create({
41958
41958
  emojiImag: {
41959
41959
  ".": "epr-emoji-img",
41960
41960
  maxWidth: "var(--epr-emoji-fullsize)",
@@ -41972,7 +41972,7 @@ function hT(t) {
41972
41972
  style: n
41973
41973
  }, Ab(e));
41974
41974
  }
41975
- var pT = /* @__PURE__ */ xe.create({
41975
+ var pT = /* @__PURE__ */ Me.create({
41976
41976
  nativeEmoji: {
41977
41977
  ".": "epr-emoji-native",
41978
41978
  fontFamily: '"Segoe UI Emoji", "Segoe UI Symbol", "Segoe UI", "Apple Color Emoji", "Twemoji Mozilla", "Noto Color Emoji", "EmojiOne Color", "Android Emoji"!important',
@@ -41987,7 +41987,7 @@ var pT = /* @__PURE__ */ xe.create({
41987
41987
  }
41988
41988
  });
41989
41989
  function Rc(t) {
41990
- var e = t.emoji, n = t.unified, r = t.emojiStyle, i = t.size, a = t.lazyLoad, o = t.getEmojiUrl, s = o === void 0 ? G2 : o, f = t.className, c = R2(), d = c[1], u = {};
41990
+ var e = t.emoji, n = t.unified, r = t.emojiStyle, i = t.size, a = t.lazyLoad, o = t.getEmojiUrl, s = o === void 0 ? _2 : o, f = t.className, c = R2(), d = c[1], u = {};
41991
41991
  i && (u.width = u.height = u.fontSize = i + "px");
41992
41992
  var p = e || Si(n);
41993
41993
  if (!p)
@@ -42055,7 +42055,7 @@ function gT() {
42055
42055
  }
42056
42056
  });
42057
42057
  }
42058
- var bT = /* @__PURE__ */ xe.create(/* @__PURE__ */ ge({
42058
+ var bT = /* @__PURE__ */ Me.create(/* @__PURE__ */ ge({
42059
42059
  plusSign: {
42060
42060
  fontSize: "20px",
42061
42061
  padding: "17px",
@@ -42123,7 +42123,7 @@ function vT() {
42123
42123
  }));
42124
42124
  }), a ? O("li", null, O(gT, null)) : null) : null;
42125
42125
  }
42126
- var e1 = /* @__PURE__ */ xe.create({
42126
+ var e1 = /* @__PURE__ */ Me.create({
42127
42127
  list: {
42128
42128
  listStyle: "none",
42129
42129
  margin: "0",
@@ -42179,10 +42179,10 @@ function MT(t, e) {
42179
42179
  }
42180
42180
  var xT = 40;
42181
42181
  function CT(t) {
42182
- var e = lb(), n = Ur(), r = n[0], i = Ai(), a = Ae(), o = au(), s = o[0], f = B2(), c = f[0], d = ne(), u = d[0], p = d[1], h = Ye(function() {
42182
+ var e = lb(), n = Ur(), r = n[0], i = Ai(), a = ze(), o = au(), s = o[0], f = B2(), c = f[0], d = ne(), u = d[0], p = d[1], h = Ye(function() {
42183
42183
  var m = e.current;
42184
42184
  if (m) {
42185
- var g = m.querySelector(Ga), v = g == null ? void 0 : g.clientHeight;
42185
+ var g = m.querySelector(_a), v = g == null ? void 0 : g.clientHeight;
42186
42186
  v && (a.current = v);
42187
42187
  var w = c || v || a.current || xT, x = m.clientWidth;
42188
42188
  if (!(x === 0 || w === 0)) {
@@ -42248,7 +42248,7 @@ function NT(t) {
42248
42248
  var k = Qe(N, d), S = MT(w, C);
42249
42249
  if (x(S)) {
42250
42250
  var I, D;
42251
- return g++, _I(N, f, i, (I = (D = m.current) == null ? void 0 : D.clientHeight) != null ? I : 0, n, S, w, p), y;
42251
+ return g++, GI(N, f, i, (I = (D = m.current) == null ? void 0 : D.clientHeight) != null ? I : 0, n, S, w, p), y;
42252
42252
  }
42253
42253
  return a ? (y.push(O(Hf, {
42254
42254
  showVariations: h,
@@ -42284,7 +42284,7 @@ function kT(t) {
42284
42284
  }
42285
42285
  }, n));
42286
42286
  }
42287
- var Ol = /* @__PURE__ */ xe.create({
42287
+ var Ol = /* @__PURE__ */ Me.create({
42288
42288
  category: {
42289
42289
  ".": ie.category,
42290
42290
  minHeight: "calc(var(--epr-emoji-fullsize) + var(--epr-category-label-height))",
@@ -42320,7 +42320,7 @@ var Ol = /* @__PURE__ */ xe.create({
42320
42320
  }
42321
42321
  });
42322
42322
  function ST() {
42323
- var t = su(), e = V2(), n = Fr(), r = Jr(), i = nb(), a = jf(), o = a[0], s = B2(), f = s[0], c = s[1], d = Ae(null);
42323
+ var t = su(), e = V2(), n = Fr(), r = Jr(), i = nb(), a = jf(), o = a[0], s = B2(), f = s[0], c = s[1], d = ze(null);
42324
42324
  if (Zc(function() {
42325
42325
  d.current && c(d.current.clientHeight);
42326
42326
  }), f)
@@ -42387,7 +42387,7 @@ function TT(t) {
42387
42387
  hidden: !d.length && c === 0
42388
42388
  }, d);
42389
42389
  }
42390
- var jT = /* @__PURE__ */ xe.create({
42390
+ var jT = /* @__PURE__ */ Me.create({
42391
42391
  emojiList: {
42392
42392
  ".": ie.emojiList,
42393
42393
  listStyle: "none",
@@ -42463,7 +42463,7 @@ function zT(t) {
42463
42463
  return o - s;
42464
42464
  }
42465
42465
  }
42466
- var Po = /* @__PURE__ */ xe.create(/* @__PURE__ */ ge({
42466
+ var Po = /* @__PURE__ */ Me.create(/* @__PURE__ */ ge({
42467
42467
  variationPicker: {
42468
42468
  ".": ie.variationPicker,
42469
42469
  position: "absolute",
@@ -42528,7 +42528,7 @@ function OT() {
42528
42528
  scrollTop: e
42529
42529
  }));
42530
42530
  }
42531
- var PT = /* @__PURE__ */ xe.create({
42531
+ var PT = /* @__PURE__ */ Me.create({
42532
42532
  body: {
42533
42533
  ".": ie.scrollBody,
42534
42534
  flex: "1",
@@ -42600,24 +42600,24 @@ function HT(t, e) {
42600
42600
  originalUnified: a
42601
42601
  }));
42602
42602
  }
42603
- var Ro, _a;
42603
+ var Ro, Ga;
42604
42604
  (function(t) {
42605
42605
  t.ROW = "FlexRow", t.COLUMN = "FlexColumn";
42606
- })(_a || (_a = {}));
42606
+ })(Ga || (Ga = {}));
42607
42607
  function Pb(t) {
42608
- var e = t.children, n = t.className, r = t.style, i = r === void 0 ? {} : r, a = t.direction, o = a === void 0 ? _a.ROW : a;
42608
+ var e = t.children, n = t.className, r = t.style, i = r === void 0 ? {} : r, a = t.direction, o = a === void 0 ? Ga.ROW : a;
42609
42609
  return O("div", {
42610
42610
  style: ge({}, i),
42611
42611
  className: re(t1.flex, n, t1[o])
42612
42612
  }, e);
42613
42613
  }
42614
- var t1 = /* @__PURE__ */ xe.create((Ro = {
42614
+ var t1 = /* @__PURE__ */ Me.create((Ro = {
42615
42615
  flex: {
42616
42616
  display: "flex"
42617
42617
  }
42618
- }, Ro[_a.ROW] = {
42618
+ }, Ro[Ga.ROW] = {
42619
42619
  flexDirection: "row"
42620
- }, Ro[_a.COLUMN] = {
42620
+ }, Ro[Ga.COLUMN] = {
42621
42621
  flexDirection: "column"
42622
42622
  }, Ro));
42623
42623
  function UT(t) {
@@ -42657,7 +42657,7 @@ function JT(t) {
42657
42657
  "aria-label": "Skin tone " + zS[i]
42658
42658
  });
42659
42659
  }
42660
- var Pl = /* @__PURE__ */ xe.create({
42660
+ var Pl = /* @__PURE__ */ Me.create({
42661
42661
  closedTone: {
42662
42662
  opacity: "0",
42663
42663
  zIndex: "0"
@@ -42724,9 +42724,9 @@ function Rb(t) {
42724
42724
  var e = t.direction, n = e === void 0 ? Wa.HORIZONTAL : e, r = fu(), i = eb(), a = io(), o = a[0], s = a[1], f = jf(), c = f[0], d = f[1], u = iI(), p = Yr(), h = Qr();
42725
42725
  if (i)
42726
42726
  return null;
42727
- var m = Ki * _s.length + "px", g = o ? m : Ki + "px", v = n === Wa.VERTICAL;
42727
+ var m = Ki * Gs.length + "px", g = o ? m : Ki + "px", v = n === Wa.VERTICAL;
42728
42728
  return O(Uf, {
42729
- className: re(_i.skinTones, v && _i.vertical, o && _i.open, v && o && _i.verticalShadow),
42729
+ className: re(Gi.skinTones, v && Gi.vertical, o && Gi.open, v && o && Gi.verticalShadow),
42730
42730
  style: v ? {
42731
42731
  flexBasis: g,
42732
42732
  height: g
@@ -42734,9 +42734,9 @@ function Rb(t) {
42734
42734
  flexBasis: g
42735
42735
  }
42736
42736
  }, O("div", {
42737
- className: re(_i.select),
42737
+ className: re(Gi.select),
42738
42738
  ref: r
42739
- }, _s.map(function(w, x) {
42739
+ }, Gs.map(function(w, x) {
42740
42740
  var L = w === c;
42741
42741
  return O(JT, {
42742
42742
  key: w,
@@ -42756,7 +42756,7 @@ var Wa;
42756
42756
  (function(t) {
42757
42757
  t.VERTICAL = "epr-vertical", t.HORIZONTAL = "epr-horizontal";
42758
42758
  })(Wa || (Wa = {}));
42759
- var _i = /* @__PURE__ */ xe.create({
42759
+ var Gi = /* @__PURE__ */ Me.create({
42760
42760
  skinTones: {
42761
42761
  ".": "epr-skin-tones",
42762
42762
  "--": {
@@ -42828,7 +42828,7 @@ function VT() {
42828
42828
  }, d ? zc(c) : h));
42829
42829
  }
42830
42830
  }
42831
- var wa = /* @__PURE__ */ xe.create({
42831
+ var wa = /* @__PURE__ */ Me.create({
42832
42832
  preview: {
42833
42833
  alignItems: "center",
42834
42834
  borderTop: "1px solid var(--epr-preview-border-color)",
@@ -42851,17 +42851,17 @@ var wa = /* @__PURE__ */ xe.create({
42851
42851
  transition: "opacity 0.5s ease-in-out"
42852
42852
  }
42853
42853
  });
42854
- function GT(t) {
42854
+ function _T(t) {
42855
42855
  var e;
42856
42856
  return (e = t == null ? void 0 : t.getAttribute("data-name")) != null ? e : null;
42857
42857
  }
42858
- function _T(t) {
42858
+ function GT(t) {
42859
42859
  var e = t.setActiveCategory, n = t.setVisibleCategories, r = Lt();
42860
42860
  ue(function() {
42861
42861
  var i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = r.current, s = new IntersectionObserver(function(f) {
42862
42862
  if (o) {
42863
42863
  for (var c = fS(f), d; !(d = c()).done; ) {
42864
- var u = d.value, p = GT(u.target);
42864
+ var u = d.value, p = _T(u.target);
42865
42865
  p && (i.set(p, u.intersectionRatio), a.set(p, u.isIntersecting));
42866
42866
  }
42867
42867
  var h = Array.from(i), m = h.filter(function(N) {
@@ -42935,7 +42935,7 @@ var n1 = {
42935
42935
  "&.epr-active": n1
42936
42936
  }
42937
42937
  }
42938
- }, XT = /* @__PURE__ */ xe.create(/* @__PURE__ */ ge({
42938
+ }, XT = /* @__PURE__ */ Me.create(/* @__PURE__ */ ge({
42939
42939
  catBtn: {
42940
42940
  ".": "epr-cat-btn",
42941
42941
  display: "inline-block",
@@ -42994,7 +42994,7 @@ var n1 = {
42994
42994
  }));
42995
42995
  function ej() {
42996
42996
  var t = ne(null), e = t[0], n = t[1], r = au(), i = r[1], a = WT();
42997
- _T({
42997
+ GT({
42998
42998
  setActiveCategory: n,
42999
42999
  setVisibleCategories: i
43000
43000
  });
@@ -43024,7 +43024,7 @@ function ej() {
43024
43024
  });
43025
43025
  }));
43026
43026
  }
43027
- var tj = /* @__PURE__ */ xe.create({
43027
+ var tj = /* @__PURE__ */ Me.create({
43028
43028
  nav: {
43029
43029
  ".": "epr-category-nav",
43030
43030
  display: "flex",
@@ -43064,7 +43064,7 @@ var rj = {
43064
43064
  backgroundPositionY: "-60px"
43065
43065
  }
43066
43066
  }
43067
- }, i1 = /* @__PURE__ */ xe.create(/* @__PURE__ */ ge({
43067
+ }, i1 = /* @__PURE__ */ Me.create(/* @__PURE__ */ ge({
43068
43068
  btnClearSearch: {
43069
43069
  ".": "epr-btn-clear-search",
43070
43070
  position: "absolute",
@@ -43108,7 +43108,7 @@ function aj() {
43108
43108
  className: re(oj.icnSearch)
43109
43109
  });
43110
43110
  }
43111
- var oj = /* @__PURE__ */ xe.create(/* @__PURE__ */ ge({
43111
+ var oj = /* @__PURE__ */ Me.create(/* @__PURE__ */ ge({
43112
43112
  icnSearch: {
43113
43113
  ".": "epr-icn-search",
43114
43114
  content: "",
@@ -43129,19 +43129,19 @@ var oj = /* @__PURE__ */ xe.create(/* @__PURE__ */ ge({
43129
43129
  function sj() {
43130
43130
  var t = rb(), e = du();
43131
43131
  return t ? null : O(Pb, {
43132
- className: re(_o.overlay)
43132
+ className: re(Go.overlay)
43133
43133
  }, O(fj, null), e ? O(Rb, null) : null);
43134
43134
  }
43135
43135
  function fj() {
43136
43136
  var t = Yr(), e = rr(), n = qS(), r = eI(), i = EI(), a = i.statusSearchResults, o = i.searchTerm, s = i.onChange, f = e == null ? void 0 : e.current, c = f == null ? void 0 : f.value;
43137
43137
  return O(Uf, {
43138
- className: re(_o.searchContainer)
43138
+ className: re(Go.searchContainer)
43139
43139
  }, O("input", {
43140
43140
  // eslint-disable-next-line jsx-a11y/no-autofocus
43141
43141
  autoFocus: r,
43142
43142
  "aria-label": "Type to search for an emoji",
43143
43143
  onFocus: t,
43144
- className: re(_o.search),
43144
+ className: re(Go.search),
43145
43145
  type: "text",
43146
43146
  "aria-controls": "epr-search-id",
43147
43147
  placeholder: n,
@@ -43152,13 +43152,13 @@ function fj() {
43152
43152
  ref: e
43153
43153
  }), o ? O("div", {
43154
43154
  role: "status",
43155
- className: re("epr-status-search-results", _o.visuallyHidden),
43155
+ className: re("epr-status-search-results", Go.visuallyHidden),
43156
43156
  "aria-live": "polite",
43157
43157
  id: "epr-search-id",
43158
43158
  "aria-atomic": "true"
43159
43159
  }, a) : null, O(aj, null), O(nj, null));
43160
43160
  }
43161
- var _o = /* @__PURE__ */ xe.create(/* @__PURE__ */ ge({
43161
+ var Go = /* @__PURE__ */ Me.create(/* @__PURE__ */ ge({
43162
43162
  overlay: {
43163
43163
  padding: "var(--epr-header-padding)",
43164
43164
  zIndex: "var(--epr-header-overlay-z-index)"
@@ -43277,7 +43277,7 @@ var hj = /* @__PURE__ */ qc(cj, z2), pj = /* @__PURE__ */ (function(t) {
43277
43277
  }, n.render = function() {
43278
43278
  return this.state.hasError ? null : this.props.children;
43279
43279
  }, e;
43280
- })(Gv);
43280
+ })(_v);
43281
43281
  function Bc(t) {
43282
43282
  var e = ZS({
43283
43283
  onEmojiClick: t.onEmojiClick,
@@ -43294,7 +43294,7 @@ const mj = ({ role: t }) => {
43294
43294
  client: { label: "Cliente", className: "bg-blue-500/10 text-blue-600 hover:bg-blue-500/20 border-blue-500/20" },
43295
43295
  freelancer: { label: "Freelancer", className: "bg-orange-500/10 text-orange-600 hover:bg-orange-500/20 border-orange-500/20" }
43296
43296
  }, { label: n, className: r } = e[t];
43297
- return /* @__PURE__ */ l(we, { variant: "outline", className: M("text-[10px] h-5 px-1.5 font-medium border-0", r), children: n });
43297
+ return /* @__PURE__ */ l(ve, { variant: "outline", className: M("text-[10px] h-5 px-1.5 font-medium border-0", r), children: n });
43298
43298
  }, gj = ({ editor: t, visible: e }) => !t || !e ? null : /* @__PURE__ */ b("div", { className: "flex items-center gap-1 border-b p-1 bg-muted/20 animate-in slide-in-from-bottom-2 duration-200", children: [
43299
43299
  /* @__PURE__ */ l(
43300
43300
  B,
@@ -43717,7 +43717,7 @@ const mj = ({ role: t }) => {
43717
43717
  return /* @__PURE__ */ b("div", { className: M("flex flex-col h-full", o), children: [
43718
43718
  /* @__PURE__ */ b("div", { className: "px-4 py-3 border-b flex items-center justify-between bg-card", children: [
43719
43719
  /* @__PURE__ */ l("h3", { className: "font-semibold text-base", children: "Comentários da Atividade" }),
43720
- /* @__PURE__ */ l(we, { variant: "secondary", className: "bg-muted text-muted-foreground hover:bg-muted", children: t.length })
43720
+ /* @__PURE__ */ l(ve, { variant: "secondary", className: "bg-muted text-muted-foreground hover:bg-muted", children: t.length })
43721
43721
  ] }),
43722
43722
  /* @__PURE__ */ l("div", { className: "flex-1 overflow-y-auto p-4 space-y-2 bg-muted/5", children: t.length === 0 ? /* @__PURE__ */ b("div", { className: "h-full flex flex-col items-center justify-center text-muted-foreground opacity-50 min-h-[200px]", children: [
43723
43723
  /* @__PURE__ */ l("div", { className: "bg-muted rounded-full p-3 mb-3", children: /* @__PURE__ */ l(E1, { className: "h-6 w-6" }) }),
@@ -43963,7 +43963,7 @@ function Zs({
43963
43963
  return /* @__PURE__ */ b("div", { className: M("relative", f), children: [
43964
43964
  c && /* @__PURE__ */ l(ai, { className: "absolute left-3 top-1/2 -translate-y-1/2 size-4 text-muted-foreground pointer-events-none" }),
43965
43965
  /* @__PURE__ */ l(
43966
- _n,
43966
+ Gn,
43967
43967
  {
43968
43968
  type: "text",
43969
43969
  value: t || "",
@@ -44252,20 +44252,20 @@ function Lj({
44252
44252
  e == null || e(P);
44253
44253
  }, I = (P) => {
44254
44254
  if (!(t != null && t.from)) return;
44255
- const F = new Date(t.from), [A, G] = P.split(":").map(Number);
44256
- F.setHours(A, G, 0, 0), e == null || e({ ...t, from: F });
44255
+ const F = new Date(t.from), [A, _] = P.split(":").map(Number);
44256
+ F.setHours(A, _, 0, 0), e == null || e({ ...t, from: F });
44257
44257
  }, D = (P) => {
44258
44258
  if (!(t != null && t.to)) return;
44259
- const F = new Date(t.to), [A, G] = P.split(":").map(Number);
44260
- F.setHours(A, G, 0, 0), e == null || e({ ...t, to: F });
44259
+ const F = new Date(t.to), [A, _] = P.split(":").map(Number);
44260
+ F.setHours(A, _, 0, 0), e == null || e({ ...t, to: F });
44261
44261
  }, H = (P) => {
44262
44262
  const F = {
44263
44263
  from: new Date(P.value.from),
44264
44264
  to: new Date(P.value.to)
44265
44265
  };
44266
44266
  if (u) {
44267
- const [A, G] = C.split(":").map(Number), [q, fe] = k.split(":").map(Number);
44268
- F.from.setHours(A, G, 0, 0), F.to.setHours(q, fe, 0, 0);
44267
+ const [A, _] = C.split(":").map(Number), [q, fe] = k.split(":").map(Number);
44268
+ F.from.setHours(A, _, 0, 0), F.to.setHours(q, fe, 0, 0);
44269
44269
  }
44270
44270
  e == null || e(F);
44271
44271
  }, J = T.useMemo(() => {
@@ -44479,7 +44479,7 @@ const kj = {
44479
44479
  }
44480
44480
  ),
44481
44481
  o && /* @__PURE__ */ l("div", { className: "absolute top-2 right-2", children: /* @__PURE__ */ b(
44482
- we,
44482
+ ve,
44483
44483
  {
44484
44484
  variant: "secondary",
44485
44485
  className: M("shadow-sm", C == null ? void 0 : C.bgColor),
@@ -44518,7 +44518,7 @@ const kj = {
44518
44518
  children: t
44519
44519
  }
44520
44520
  ),
44521
- p && h === "detailed" && /* @__PURE__ */ l(we, { variant: "outline", className: "mt-1 text-xs", children: p })
44521
+ p && h === "detailed" && /* @__PURE__ */ l(ve, { variant: "outline", className: "mt-1 text-xs", children: p })
44522
44522
  ] })
44523
44523
  ] }),
44524
44524
  e && h !== "compact" && /* @__PURE__ */ l(dy, { className: "mt-2 line-clamp-2 text-xs", children: e })
@@ -44549,7 +44549,7 @@ const kj = {
44549
44549
  ] }),
44550
44550
  i.length > 0 && /* @__PURE__ */ b("div", { className: "flex flex-wrap gap-1 mt-2", children: [
44551
44551
  i.slice(0, h === "compact" ? 2 : 3).map((I) => /* @__PURE__ */ l(
44552
- we,
44552
+ ve,
44553
44553
  {
44554
44554
  variant: "secondary",
44555
44555
  className: "text-xs",
@@ -44562,13 +44562,13 @@ const kj = {
44562
44562
  },
44563
44563
  I.id
44564
44564
  )),
44565
- i.length > (h === "compact" ? 2 : 3) && /* @__PURE__ */ b(we, { variant: "secondary", className: "text-xs", children: [
44565
+ i.length > (h === "compact" ? 2 : 3) && /* @__PURE__ */ b(ve, { variant: "secondary", className: "text-xs", children: [
44566
44566
  "+",
44567
44567
  i.length - (h === "compact" ? 2 : 3)
44568
44568
  ] })
44569
44569
  ] }),
44570
44570
  o && !n && h === "detailed" && /* @__PURE__ */ b(
44571
- we,
44571
+ ve,
44572
44572
  {
44573
44573
  variant: "secondary",
44574
44574
  className: M("mt-2 w-fit text-xs", C == null ? void 0 : C.bgColor),
@@ -44626,7 +44626,7 @@ const kj = {
44626
44626
  ] })
44627
44627
  ] }),
44628
44628
  f !== void 0 && f > 0 && /* @__PURE__ */ b("div", { className: "flex items-center gap-1", children: [
44629
- /* @__PURE__ */ l(Gc, { className: "h-3 w-3" }),
44629
+ /* @__PURE__ */ l(_c, { className: "h-3 w-3" }),
44630
44630
  /* @__PURE__ */ l("span", { children: f })
44631
44631
  ] }),
44632
44632
  c !== void 0 && c > 0 && /* @__PURE__ */ b("div", { className: "flex items-center gap-1", children: [
@@ -44705,7 +44705,7 @@ const Ij = T.forwardRef(
44705
44705
  /* @__PURE__ */ b("div", { className: "flex items-baseline flex-wrap gap-2", children: [
44706
44706
  /* @__PURE__ */ l("span", { className: "text-2xl font-bold", children: e }),
44707
44707
  r !== void 0 && /* @__PURE__ */ b(
44708
- we,
44708
+ ve,
44709
44709
  {
44710
44710
  variant: "secondary",
44711
44711
  className: M(
@@ -44983,33 +44983,33 @@ function B8({
44983
44983
  function H8({
44984
44984
  ...t
44985
44985
  }) {
44986
- return /* @__PURE__ */ l(Ge.Root, { "data-slot": "context-menu", ...t });
44986
+ return /* @__PURE__ */ l(_e.Root, { "data-slot": "context-menu", ...t });
44987
44987
  }
44988
44988
  function U8({
44989
44989
  ...t
44990
44990
  }) {
44991
- return /* @__PURE__ */ l(Ge.Trigger, { "data-slot": "context-menu-trigger", ...t });
44991
+ return /* @__PURE__ */ l(_e.Trigger, { "data-slot": "context-menu-trigger", ...t });
44992
44992
  }
44993
44993
  function F8({
44994
44994
  ...t
44995
44995
  }) {
44996
- return /* @__PURE__ */ l(Ge.Group, { "data-slot": "context-menu-group", ...t });
44996
+ return /* @__PURE__ */ l(_e.Group, { "data-slot": "context-menu-group", ...t });
44997
44997
  }
44998
44998
  function J8({
44999
44999
  ...t
45000
45000
  }) {
45001
- return /* @__PURE__ */ l(Ge.Portal, { "data-slot": "context-menu-portal", ...t });
45001
+ return /* @__PURE__ */ l(_e.Portal, { "data-slot": "context-menu-portal", ...t });
45002
45002
  }
45003
45003
  function Y8({
45004
45004
  ...t
45005
45005
  }) {
45006
- return /* @__PURE__ */ l(Ge.Sub, { "data-slot": "context-menu-sub", ...t });
45006
+ return /* @__PURE__ */ l(_e.Sub, { "data-slot": "context-menu-sub", ...t });
45007
45007
  }
45008
45008
  function Q8({
45009
45009
  ...t
45010
45010
  }) {
45011
45011
  return /* @__PURE__ */ l(
45012
- Ge.RadioGroup,
45012
+ _e.RadioGroup,
45013
45013
  {
45014
45014
  "data-slot": "context-menu-radio-group",
45015
45015
  ...t
@@ -45023,7 +45023,7 @@ function V8({
45023
45023
  ...r
45024
45024
  }) {
45025
45025
  return /* @__PURE__ */ b(
45026
- Ge.SubTrigger,
45026
+ _e.SubTrigger,
45027
45027
  {
45028
45028
  "data-slot": "context-menu-sub-trigger",
45029
45029
  "data-inset": e,
@@ -45039,12 +45039,12 @@ function V8({
45039
45039
  }
45040
45040
  );
45041
45041
  }
45042
- function G8({
45042
+ function _8({
45043
45043
  className: t,
45044
45044
  ...e
45045
45045
  }) {
45046
45046
  return /* @__PURE__ */ l(
45047
- Ge.SubContent,
45047
+ _e.SubContent,
45048
45048
  {
45049
45049
  "data-slot": "context-menu-sub-content",
45050
45050
  className: M(
@@ -45055,12 +45055,12 @@ function G8({
45055
45055
  }
45056
45056
  );
45057
45057
  }
45058
- function _8({
45058
+ function G8({
45059
45059
  className: t,
45060
45060
  ...e
45061
45061
  }) {
45062
- return /* @__PURE__ */ l(Ge.Portal, { children: /* @__PURE__ */ l(
45063
- Ge.Content,
45062
+ return /* @__PURE__ */ l(_e.Portal, { children: /* @__PURE__ */ l(
45063
+ _e.Content,
45064
45064
  {
45065
45065
  "data-slot": "context-menu-content",
45066
45066
  className: M(
@@ -45078,7 +45078,7 @@ function W8({
45078
45078
  ...r
45079
45079
  }) {
45080
45080
  return /* @__PURE__ */ l(
45081
- Ge.Item,
45081
+ _e.Item,
45082
45082
  {
45083
45083
  "data-slot": "context-menu-item",
45084
45084
  "data-inset": e,
@@ -45098,7 +45098,7 @@ function $8({
45098
45098
  ...r
45099
45099
  }) {
45100
45100
  return /* @__PURE__ */ b(
45101
- Ge.CheckboxItem,
45101
+ _e.CheckboxItem,
45102
45102
  {
45103
45103
  "data-slot": "context-menu-checkbox-item",
45104
45104
  className: M(
@@ -45108,7 +45108,7 @@ function $8({
45108
45108
  checked: n,
45109
45109
  ...r,
45110
45110
  children: [
45111
- /* @__PURE__ */ l("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(Ge.ItemIndicator, { children: /* @__PURE__ */ l(Xs, { className: "size-4" }) }) }),
45111
+ /* @__PURE__ */ l("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(_e.ItemIndicator, { children: /* @__PURE__ */ l(Xs, { className: "size-4" }) }) }),
45112
45112
  e
45113
45113
  ]
45114
45114
  }
@@ -45120,7 +45120,7 @@ function Z8({
45120
45120
  ...n
45121
45121
  }) {
45122
45122
  return /* @__PURE__ */ b(
45123
- Ge.RadioItem,
45123
+ _e.RadioItem,
45124
45124
  {
45125
45125
  "data-slot": "context-menu-radio-item",
45126
45126
  className: M(
@@ -45129,7 +45129,7 @@ function Z8({
45129
45129
  ),
45130
45130
  ...n,
45131
45131
  children: [
45132
- /* @__PURE__ */ l("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(Ge.ItemIndicator, { children: /* @__PURE__ */ l(Wc, { className: "size-2 fill-current" }) }) }),
45132
+ /* @__PURE__ */ l("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(_e.ItemIndicator, { children: /* @__PURE__ */ l(Wc, { className: "size-2 fill-current" }) }) }),
45133
45133
  e
45134
45134
  ]
45135
45135
  }
@@ -45141,7 +45141,7 @@ function q8({
45141
45141
  ...n
45142
45142
  }) {
45143
45143
  return /* @__PURE__ */ l(
45144
- Ge.Label,
45144
+ _e.Label,
45145
45145
  {
45146
45146
  "data-slot": "context-menu-label",
45147
45147
  "data-inset": e,
@@ -45158,7 +45158,7 @@ function K8({
45158
45158
  ...e
45159
45159
  }) {
45160
45160
  return /* @__PURE__ */ l(
45161
- Ge.Separator,
45161
+ _e.Separator,
45162
45162
  {
45163
45163
  "data-slot": "context-menu-separator",
45164
45164
  className: M("bg-border -mx-1 my-1 h-px", t),
@@ -45525,11 +45525,11 @@ function Jj({
45525
45525
  [t, d]
45526
45526
  ), H = T.useCallback(
45527
45527
  async (A) => {
45528
- const G = A ?? v;
45529
- if (G) {
45528
+ const _ = A ?? v;
45529
+ if (_) {
45530
45530
  k(!0);
45531
45531
  try {
45532
- await n(G), L(!1), w(null);
45532
+ await n(_), L(!1), w(null);
45533
45533
  } catch (q) {
45534
45534
  console.error("Error confirming value change:", q);
45535
45535
  } finally {
@@ -45544,10 +45544,10 @@ function Jj({
45544
45544
  S.icon,
45545
45545
  S.label
45546
45546
  ] }) : t, [p, t, S]), F = (S == null ? void 0 : S.variant) || a;
45547
- return i ? /* @__PURE__ */ l("div", { ref: g, className: M("inline-flex", h), ...m, children: /* @__PURE__ */ l(we, { variant: F, children: P() }) }) : /* @__PURE__ */ b(qe, { children: [
45547
+ return i ? /* @__PURE__ */ l("div", { ref: g, className: M("inline-flex", h), ...m, children: /* @__PURE__ */ l(ve, { variant: F, children: P() }) }) : /* @__PURE__ */ b(qe, { children: [
45548
45548
  /* @__PURE__ */ l("div", { ref: g, className: M("inline-flex", h), ...m, children: /* @__PURE__ */ b(sf, { open: y, onOpenChange: N, children: [
45549
45549
  /* @__PURE__ */ l(ff, { asChild: !0, disabled: u, children: /* @__PURE__ */ b(
45550
- we,
45550
+ ve,
45551
45551
  {
45552
45552
  variant: F,
45553
45553
  className: M(
@@ -45582,7 +45582,7 @@ function Jj({
45582
45582
  I && /* @__PURE__ */ b("div", { className: "flex items-center gap-3 py-4", children: [
45583
45583
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
45584
45584
  /* @__PURE__ */ l("span", { className: "text-sm text-muted-foreground", children: "De:" }),
45585
- /* @__PURE__ */ b(we, { variant: (S == null ? void 0 : S.variant) || a, children: [
45585
+ /* @__PURE__ */ b(ve, { variant: (S == null ? void 0 : S.variant) || a, children: [
45586
45586
  S == null ? void 0 : S.icon,
45587
45587
  (S == null ? void 0 : S.label) || t
45588
45588
  ] })
@@ -45590,7 +45590,7 @@ function Jj({
45590
45590
  /* @__PURE__ */ l("span", { className: "text-muted-foreground", children: "→" }),
45591
45591
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
45592
45592
  /* @__PURE__ */ l("span", { className: "text-sm text-muted-foreground", children: "Para:" }),
45593
- /* @__PURE__ */ b(we, { variant: I.variant || a, children: [
45593
+ /* @__PURE__ */ b(ve, { variant: I.variant || a, children: [
45594
45594
  I.icon,
45595
45595
  I.label
45596
45596
  ] })
@@ -45685,13 +45685,13 @@ var f1 = (function() {
45685
45685
  INIT: "@@redux/INIT" + l1(),
45686
45686
  REPLACE: "@@redux/REPLACE" + l1()
45687
45687
  };
45688
- function Gj(t) {
45688
+ function _j(t) {
45689
45689
  if (typeof t != "object" || t === null) return !1;
45690
45690
  for (var e = t; Object.getPrototypeOf(e) !== null; )
45691
45691
  e = Object.getPrototypeOf(e);
45692
45692
  return Object.getPrototypeOf(t) === e;
45693
45693
  }
45694
- function _j(t) {
45694
+ function Gj(t) {
45695
45695
  if (t === void 0) return "undefined";
45696
45696
  if (t === null) return "null";
45697
45697
  var e = typeof t;
@@ -45729,7 +45729,7 @@ function Zj(t) {
45729
45729
  }
45730
45730
  function Zr(t) {
45731
45731
  var e = typeof t;
45732
- return process.env.NODE_ENV !== "production" && (e = _j(t)), e;
45732
+ return process.env.NODE_ENV !== "production" && (e = Gj(t)), e;
45733
45733
  }
45734
45734
  function Qb(t, e, n) {
45735
45735
  var r;
@@ -45768,7 +45768,7 @@ function Qb(t, e, n) {
45768
45768
  };
45769
45769
  }
45770
45770
  function p(g) {
45771
- if (!Gj(g))
45771
+ if (!_j(g))
45772
45772
  throw new Error(process.env.NODE_ENV === "production" ? Tt(7) : "Actions must be plain objects. Instead, the actual type was: '" + Zr(g) + "'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");
45773
45773
  if (typeof g.type > "u")
45774
45774
  throw new Error(process.env.NODE_ENV === "production" ? Tt(8) : 'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');
@@ -45876,7 +45876,7 @@ function tD(t, e) {
45876
45876
  (n) => e.indexOf(n) > -1
45877
45877
  );
45878
45878
  }
45879
- const yu = "dnd-core/INIT_COORDS", Gf = "dnd-core/BEGIN_DRAG", Mu = "dnd-core/PUBLISH_DRAG_SOURCE", _f = "dnd-core/HOVER", Wf = "dnd-core/DROP", $f = "dnd-core/END_DRAG";
45879
+ const yu = "dnd-core/INIT_COORDS", _f = "dnd-core/BEGIN_DRAG", Mu = "dnd-core/PUBLISH_DRAG_SOURCE", Gf = "dnd-core/HOVER", Wf = "dnd-core/DROP", $f = "dnd-core/END_DRAG";
45880
45880
  function d1(t, e) {
45881
45881
  return {
45882
45882
  type: yu,
@@ -45917,7 +45917,7 @@ function rD(t) {
45917
45917
  oD(p), f.pinSource(c);
45918
45918
  const h = f.getSourceType(c);
45919
45919
  return {
45920
- type: Gf,
45920
+ type: _f,
45921
45921
  payload: {
45922
45922
  itemType: h,
45923
45923
  item: p,
@@ -46020,7 +46020,7 @@ function bD(t) {
46020
46020
  vD(n);
46021
46021
  const i = n.slice(0), a = t.getMonitor(), o = t.getRegistry(), s = a.getItemType();
46022
46022
  return yD(i, o, s), wD(i, a, o), MD(i, a, o), {
46023
- type: _f,
46023
+ type: Gf,
46024
46024
  payload: {
46025
46025
  targetIds: i,
46026
46026
  clientOffset: r || null
@@ -46111,7 +46111,7 @@ function ND(t, e) {
46111
46111
  y: t.y + e.y
46112
46112
  };
46113
46113
  }
46114
- function Gb(t, e) {
46114
+ function _b(t, e) {
46115
46115
  return {
46116
46116
  x: t.x - e.x,
46117
46117
  y: t.y - e.y
@@ -46119,11 +46119,11 @@ function Gb(t, e) {
46119
46119
  }
46120
46120
  function kD(t) {
46121
46121
  const { clientOffset: e, initialClientOffset: n, initialSourceClientOffset: r } = t;
46122
- return !e || !n || !r ? null : Gb(ND(e, r), n);
46122
+ return !e || !n || !r ? null : _b(ND(e, r), n);
46123
46123
  }
46124
46124
  function SD(t) {
46125
46125
  const { clientOffset: e, initialClientOffset: n } = t;
46126
- return !e || !n ? null : Gb(e, n);
46126
+ return !e || !n ? null : _b(e, n);
46127
46127
  }
46128
46128
  const ya = [], xu = [];
46129
46129
  ya.__IS_NONE__ = !0;
@@ -46239,7 +46239,7 @@ class TD {
46239
46239
  this.store = e, this.registry = n;
46240
46240
  }
46241
46241
  }
46242
- const u1 = typeof global < "u" ? global : self, _b = u1.MutationObserver || u1.WebKitMutationObserver;
46242
+ const u1 = typeof global < "u" ? global : self, Gb = u1.MutationObserver || u1.WebKitMutationObserver;
46243
46243
  function Wb(t) {
46244
46244
  return function() {
46245
46245
  const n = setTimeout(i, 0), r = setInterval(i, 50);
@@ -46250,14 +46250,14 @@ function Wb(t) {
46250
46250
  }
46251
46251
  function jD(t) {
46252
46252
  let e = 1;
46253
- const n = new _b(t), r = document.createTextNode("");
46253
+ const n = new Gb(t), r = document.createTextNode("");
46254
46254
  return n.observe(r, {
46255
46255
  characterData: !0
46256
46256
  }), function() {
46257
46257
  e = -e, r.data = e;
46258
46258
  };
46259
46259
  }
46260
- const DD = typeof _b == "function" ? (
46260
+ const DD = typeof Gb == "function" ? (
46261
46261
  // reliably everywhere they are implemented.
46262
46262
  // They are implemented in all modern browsers.
46263
46263
  //
@@ -46449,7 +46449,7 @@ function p1(t, e) {
46449
46449
  } while (!r);
46450
46450
  return !1;
46451
46451
  }
46452
- class GD {
46452
+ class _D {
46453
46453
  addSource(e, n) {
46454
46454
  Uc(e), FD(n);
46455
46455
  const r = this.addHandler(At.SOURCE, e, n);
@@ -46504,11 +46504,11 @@ class GD {
46504
46504
  this.types = /* @__PURE__ */ new Map(), this.dragSources = /* @__PURE__ */ new Map(), this.dropTargets = /* @__PURE__ */ new Map(), this.pinnedSourceId = null, this.pinnedSource = null, this.store = e;
46505
46505
  }
46506
46506
  }
46507
- const _D = (t, e) => t === e;
46507
+ const GD = (t, e) => t === e;
46508
46508
  function WD(t, e) {
46509
46509
  return !t && !e ? !0 : !t || !e ? !1 : t.x === e.x && t.y === e.y;
46510
46510
  }
46511
- function $D(t, e, n = _D) {
46511
+ function $D(t, e, n = GD) {
46512
46512
  if (t.length !== e.length)
46513
46513
  return !1;
46514
46514
  for (let r = 0; r < t.length; ++r)
@@ -46518,14 +46518,14 @@ function $D(t, e, n = _D) {
46518
46518
  }
46519
46519
  function ZD(t = ya, e) {
46520
46520
  switch (e.type) {
46521
- case _f:
46521
+ case Gf:
46522
46522
  break;
46523
46523
  case Cu:
46524
46524
  case Lu:
46525
46525
  case Zf:
46526
46526
  case Nu:
46527
46527
  return ya;
46528
- case Gf:
46528
+ case _f:
46529
46529
  case Mu:
46530
46530
  case $f:
46531
46531
  case Wf:
@@ -46566,13 +46566,13 @@ function XD(t = m1, e) {
46566
46566
  const { payload: n } = e;
46567
46567
  switch (e.type) {
46568
46568
  case yu:
46569
- case Gf:
46569
+ case _f:
46570
46570
  return {
46571
46571
  initialSourceClientOffset: n.sourceClientOffset,
46572
46572
  initialClientOffset: n.clientOffset,
46573
46573
  clientOffset: n.clientOffset
46574
46574
  };
46575
- case _f:
46575
+ case Gf:
46576
46576
  return WD(t.clientOffset, n.clientOffset) ? t : KD({}, t, {
46577
46577
  clientOffset: n.clientOffset
46578
46578
  });
@@ -46614,7 +46614,7 @@ const t5 = {
46614
46614
  function n5(t = t5, e) {
46615
46615
  const { payload: n } = e;
46616
46616
  switch (e.type) {
46617
- case Gf:
46617
+ case _f:
46618
46618
  return qr({}, t, {
46619
46619
  itemType: n.itemType,
46620
46620
  item: n.item,
@@ -46627,7 +46627,7 @@ function n5(t = t5, e) {
46627
46627
  return qr({}, t, {
46628
46628
  isSourcePublic: !0
46629
46629
  });
46630
- case _f:
46630
+ case Gf:
46631
46631
  return qr({}, t, {
46632
46632
  targetIds: n.targetIds
46633
46633
  });
@@ -46704,7 +46704,7 @@ function s5(t = {}, e) {
46704
46704
  };
46705
46705
  }
46706
46706
  function f5(t, e = void 0, n = {}, r = !1) {
46707
- const i = l5(r), a = new TD(i, new GD(i)), o = new LD(i, a), s = t(o, e, n);
46707
+ const i = l5(r), a = new TD(i, new _D(i)), o = new LD(i, a), s = t(o, e, n);
46708
46708
  return o.receiveBackend(s), o;
46709
46709
  }
46710
46710
  function l5(t) {
@@ -46848,10 +46848,10 @@ function Xb(t, e) {
46848
46848
  const n = [
46849
46849
  ...e || []
46850
46850
  ];
46851
- return e == null && typeof t != "function" && n.push(t), ye(() => typeof t == "function" ? t() : t, n);
46851
+ return e == null && typeof t != "function" && n.push(t), we(() => typeof t == "function" ? t() : t, n);
46852
46852
  }
46853
46853
  function y5(t) {
46854
- return ye(
46854
+ return we(
46855
46855
  () => t.hooks.dragSource(),
46856
46856
  [
46857
46857
  t
@@ -46859,7 +46859,7 @@ function y5(t) {
46859
46859
  );
46860
46860
  }
46861
46861
  function M5(t) {
46862
- return ye(
46862
+ return we(
46863
46863
  () => t.hooks.dragPreview(),
46864
46864
  [
46865
46865
  t
@@ -47055,7 +47055,7 @@ function k5(t) {
47055
47055
  }
47056
47056
  function S5(t) {
47057
47057
  return (e = null, n = null) => {
47058
- if (!_v(e)) {
47058
+ if (!Gv(e)) {
47059
47059
  const a = e;
47060
47060
  return t(a, n), a;
47061
47061
  }
@@ -47225,7 +47225,7 @@ function zi() {
47225
47225
  return K(t != null, "Expected drag drop context"), t;
47226
47226
  }
47227
47227
  function D5(t, e) {
47228
- const n = zi(), r = ye(
47228
+ const n = zi(), r = we(
47229
47229
  () => new T5(n.getBackend()),
47230
47230
  [
47231
47231
  n
@@ -47241,7 +47241,7 @@ function D5(t, e) {
47241
47241
  }
47242
47242
  function E5() {
47243
47243
  const t = zi();
47244
- return ye(
47244
+ return we(
47245
47245
  () => new x5(t),
47246
47246
  [
47247
47247
  t
@@ -47271,7 +47271,7 @@ class A5 {
47271
47271
  }
47272
47272
  }
47273
47273
  function z5(t, e, n) {
47274
- const r = ye(
47274
+ const r = we(
47275
47275
  () => new A5(t, e, n),
47276
47276
  [
47277
47277
  e,
@@ -47285,7 +47285,7 @@ function z5(t, e, n) {
47285
47285
  ]), r;
47286
47286
  }
47287
47287
  function O5(t) {
47288
- return ye(() => {
47288
+ return we(() => {
47289
47289
  const e = t.type;
47290
47290
  return K(e != null, "spec.type must be defined"), e;
47291
47291
  }, [
@@ -47318,7 +47318,7 @@ function R5(t, e) {
47318
47318
  ];
47319
47319
  }
47320
47320
  function B5(t) {
47321
- return ye(
47321
+ return we(
47322
47322
  () => t.hooks.dropTarget(),
47323
47323
  [
47324
47324
  t
@@ -47326,7 +47326,7 @@ function B5(t) {
47326
47326
  );
47327
47327
  }
47328
47328
  function H5(t) {
47329
- const e = zi(), n = ye(
47329
+ const e = zi(), n = we(
47330
47330
  () => new j5(e.getBackend()),
47331
47331
  [
47332
47332
  e
@@ -47338,7 +47338,7 @@ function H5(t) {
47338
47338
  }
47339
47339
  function U5() {
47340
47340
  const t = zi();
47341
- return ye(
47341
+ return we(
47342
47342
  () => new C5(t),
47343
47343
  [
47344
47344
  t
@@ -47347,7 +47347,7 @@ function U5() {
47347
47347
  }
47348
47348
  function F5(t) {
47349
47349
  const { accept: e } = t;
47350
- return ye(() => (K(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [
47350
+ return we(() => (K(t.accept != null, "accept must be defined"), Array.isArray(e) ? e : [
47351
47351
  e
47352
47352
  ]), [
47353
47353
  e
@@ -47372,7 +47372,7 @@ class J5 {
47372
47372
  }
47373
47373
  }
47374
47374
  function Y5(t, e) {
47375
- const n = ye(
47375
+ const n = we(
47376
47376
  () => new J5(t, e),
47377
47377
  [
47378
47378
  e
@@ -47415,7 +47415,7 @@ function V5(t, e) {
47415
47415
  (n) => n !== e
47416
47416
  );
47417
47417
  }
47418
- function G5(t, e) {
47418
+ function _5(t, e) {
47419
47419
  const n = /* @__PURE__ */ new Set(), r = (a) => n.add(a);
47420
47420
  t.forEach(r), e.forEach(r);
47421
47421
  const i = [];
@@ -47423,10 +47423,10 @@ function G5(t, e) {
47423
47423
  (a) => i.push(a)
47424
47424
  ), i;
47425
47425
  }
47426
- class _5 {
47426
+ class G5 {
47427
47427
  enter(e) {
47428
47428
  const n = this.entered.length, r = (i) => this.isNodeInDocument(i) && (!i.contains || i.contains(e));
47429
- return this.entered = G5(this.entered.filter(r), [
47429
+ return this.entered = _5(this.entered.filter(r), [
47430
47430
  e
47431
47431
  ]), n === 0 && this.entered.length > 0;
47432
47432
  }
@@ -47962,7 +47962,7 @@ class rE {
47962
47962
  }, this.handleSelectStart = (i) => {
47963
47963
  const a = i.target;
47964
47964
  typeof a.dragDrop == "function" && (a.tagName === "INPUT" || a.tagName === "SELECT" || a.tagName === "TEXTAREA" || a.isContentEditable || (i.preventDefault(), a.dragDrop()));
47965
- }, this.options = new tE(n, r), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new _5(this.isNodeInDocument);
47965
+ }, this.options = new tE(n, r), this.actions = e.getActions(), this.monitor = e.getMonitor(), this.registry = e.getRegistry(), this.enterLeaveCounter = new G5(this.isNodeInDocument);
47966
47966
  }
47967
47967
  }
47968
47968
  const f4 = function(e, n, r) {
@@ -48040,7 +48040,7 @@ function qf({
48040
48040
  /* @__PURE__ */ b("div", { className: "p-3", children: [
48041
48041
  /* @__PURE__ */ l("h4", { className: "text-sm font-medium text-gray-900 line-clamp-2 mb-2 leading-snug", children: t.title }),
48042
48042
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between", children: [
48043
- /* @__PURE__ */ l(we, { variant: "outline", className: M("px-1.5 py-0 text-[10px] h-5 font-normal uppercase tracking-wide", Qc[t.status]), children: t.status }),
48043
+ /* @__PURE__ */ l(ve, { variant: "outline", className: M("px-1.5 py-0 text-[10px] h-5 font-normal uppercase tracking-wide", Qc[t.status]), children: t.status }),
48044
48044
  t.assignees && t.assignees.length > 0 && /* @__PURE__ */ l("div", { className: "flex -space-x-2", children: t.assignees.slice(0, 2).map((h, m) => /* @__PURE__ */ b(tn, { className: "w-5 h-5 border border-white", children: [
48045
48045
  /* @__PURE__ */ l(kr, { src: h.avatar }),
48046
48046
  /* @__PURE__ */ l(nn, { className: "text-[8px]", children: h.name[0] })
@@ -48127,7 +48127,7 @@ function qf({
48127
48127
  n === "editorial" && /* @__PURE__ */ l(s, { size: 12, className: M(t.channel ? Ql[t.channel] : "text-gray-400") }),
48128
48128
  /* @__PURE__ */ l("span", { className: "truncate font-medium text-sm", children: t.title })
48129
48129
  ] }),
48130
- /* @__PURE__ */ l(we, { variant: "secondary", className: "text-[10px] h-4 px-1 py-0", children: t.status })
48130
+ /* @__PURE__ */ l(ve, { variant: "secondary", className: "text-[10px] h-4 px-1 py-0", children: t.status })
48131
48131
  ] })
48132
48132
  ]
48133
48133
  }
@@ -48422,7 +48422,7 @@ function d4({
48422
48422
  isNew: i = !1
48423
48423
  }) {
48424
48424
  const [a, o] = ne(n || {});
48425
- ye(() => {
48425
+ we(() => {
48426
48426
  o(n || {});
48427
48427
  }, [n]);
48428
48428
  const s = () => {
@@ -48529,7 +48529,7 @@ function u4({
48529
48529
  onTaskCreate: n,
48530
48530
  defaultView: r = "month"
48531
48531
  }) {
48532
- const [i, a] = ne(/* @__PURE__ */ new Date()), [o, s] = ne(r), [f, c] = ne(!0), [d, u] = ne(!1), [p, h] = ne(null), [m, g] = ne(!1), v = ye(() => {
48532
+ const [i, a] = ne(/* @__PURE__ */ new Date()), [o, s] = ne(r), [f, c] = ne(!0), [d, u] = ne(!1), [p, h] = ne(null), [m, g] = ne(!1), v = we(() => {
48533
48533
  let D, H;
48534
48534
  if (o === "month") {
48535
48535
  const J = qo(i), P = nd(J);
@@ -48563,8 +48563,8 @@ function u4({
48563
48563
  let F = new Date(H);
48564
48564
  if (o === "month" || J === "editorial")
48565
48565
  if (P.date) {
48566
- const G = new Date(P.date);
48567
- F.setHours(G.getHours(), G.getMinutes());
48566
+ const _ = new Date(P.date);
48567
+ F.setHours(_.getHours(), _.getMinutes());
48568
48568
  } else
48569
48569
  F.setHours(9, 0);
48570
48570
  const A = { ...P, date: F };
@@ -48592,7 +48592,7 @@ function h4({ isOpen: t, setIsOpen: e, tasks: n, onAddClick: r, onTaskClick: i,
48592
48592
  /* @__PURE__ */ b("div", { className: "p-4 border-b bg-white flex items-center justify-between", children: [
48593
48593
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
48594
48594
  /* @__PURE__ */ l("h3", { className: "font-semibold text-sm text-gray-900", children: "Backlog" }),
48595
- /* @__PURE__ */ l(we, { variant: "secondary", className: "bg-gray-100 text-xs", children: n.length })
48595
+ /* @__PURE__ */ l(ve, { variant: "secondary", className: "bg-gray-100 text-xs", children: n.length })
48596
48596
  ] }),
48597
48597
  /* @__PURE__ */ l(B, { variant: "ghost", size: "icon", className: "h-6 w-6", onClick: () => e(!1), children: /* @__PURE__ */ l(Ks, { size: 16 }) })
48598
48598
  ] }),
@@ -48622,7 +48622,7 @@ function h4({ isOpen: t, setIsOpen: e, tasks: n, onAddClick: r, onTaskClick: i,
48622
48622
  ] }) : /* @__PURE__ */ b("div", { className: "border-r bg-white flex flex-col items-center py-4 w-12 flex-shrink-0 cursor-pointer hover:bg-gray-50 transition-colors", onClick: () => e(!0), children: [
48623
48623
  /* @__PURE__ */ l($c, { className: "text-gray-500 mb-4", size: 20 }),
48624
48624
  /* @__PURE__ */ l("div", { className: "flex-1 flex items-center justify-center min-h-0", children: /* @__PURE__ */ l("div", { className: "whitespace-nowrap text-xs font-medium text-gray-400 -rotate-90 transform", children: "BACKLOG" }) }),
48625
- /* @__PURE__ */ l(we, { className: "mt-2 h-5 w-5 p-0 flex items-center justify-center rounded-full bg-[#7F26BF] text-[10px]", children: n.length })
48625
+ /* @__PURE__ */ l(ve, { className: "mt-2 h-5 w-5 p-0 flex items-center justify-center rounded-full bg-[#7F26BF] text-[10px]", children: n.length })
48626
48626
  ] });
48627
48627
  }
48628
48628
  function p4({ title: t, onPrev: e, onNext: n, onToday: r, onAdd: i, view: a, setView: o }) {
@@ -48986,7 +48986,7 @@ const w4 = T.memo(({
48986
48986
  u.stopPropagation(), o(t);
48987
48987
  },
48988
48988
  "aria-label": "Editar marco",
48989
- children: /* @__PURE__ */ l(Gl, { className: "size-3" })
48989
+ children: /* @__PURE__ */ l(_l, { className: "size-3" })
48990
48990
  }
48991
48991
  )
48992
48992
  ]
@@ -49040,7 +49040,7 @@ const w4 = T.memo(({
49040
49040
  u.stopPropagation(), o(t);
49041
49041
  },
49042
49042
  "aria-label": "Editar tarefa",
49043
- children: /* @__PURE__ */ l(Gl, { className: "size-3.5" })
49043
+ children: /* @__PURE__ */ l(_l, { className: "size-3.5" })
49044
49044
  }
49045
49045
  )
49046
49046
  ]
@@ -49074,7 +49074,7 @@ const w4 = T.memo(({
49074
49074
  ] })
49075
49075
  ] }),
49076
49076
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between pt-2 border-t", children: [
49077
- /* @__PURE__ */ b(we, { variant: c.variant, className: "gap-1", children: [
49077
+ /* @__PURE__ */ b(ve, { variant: c.variant, className: "gap-1", children: [
49078
49078
  /* @__PURE__ */ l(d, { className: "size-3" }),
49079
49079
  c.label
49080
49080
  ] }),
@@ -49248,7 +49248,7 @@ const cE = ["DOM", "SEG", "TER", "QUA", "QUI", "SEX", "SAB"], dE = T.forwardRef(
49248
49248
  /* @__PURE__ */ l("span", { className: "text-sm truncate flex-1", children: C.name }),
49249
49249
  o === "projects" && C.assignee && /* @__PURE__ */ l(tn, { className: "size-6 opacity-0 group-hover:opacity-100 transition-opacity", children: /* @__PURE__ */ l(nn, { className: "text-[10px]", children: C.assignee.initials || C.assignee.name.substring(0, 2).toUpperCase() }) }),
49250
49250
  r && /* @__PURE__ */ l(
49251
- Gl,
49251
+ _l,
49252
49252
  {
49253
49253
  className: "size-4 text-muted-foreground cursor-pointer hover:text-primary ml-2 opacity-0 group-hover:opacity-100",
49254
49254
  onClick: () => r(C)
@@ -49411,11 +49411,11 @@ const Vc = T.forwardRef(
49411
49411
  readOnly: m,
49412
49412
  ...g
49413
49413
  }, v) => {
49414
- const [w, x] = T.useState(n), [L, y] = T.useState(""), [N, C] = T.useState(!1), k = T.useRef(null), S = e !== void 0 ? e : w, I = T.useCallback((_) => f ? new Intl.NumberFormat(c, f).format(_) : _.toFixed(s), [f, c, s]), D = (_) => {
49415
- const he = _.replace(/[^\d,.-]/g, "").replace(",", "."), He = parseFloat(he);
49416
- return isNaN(He) ? 0 : He;
49417
- }, H = (_) => p ? Math.min(Math.max(_, i), a) : _, J = T.useCallback((_, be = !1) => {
49418
- const he = be ? H(_) : _;
49414
+ const [w, x] = T.useState(n), [L, y] = T.useState(""), [N, C] = T.useState(!1), k = T.useRef(null), S = e !== void 0 ? e : w, I = T.useCallback((G) => f ? new Intl.NumberFormat(c, f).format(G) : G.toFixed(s), [f, c, s]), D = (G) => {
49415
+ const he = G.replace(/[^\d,.-]/g, "").replace(",", "."), Ae = parseFloat(he);
49416
+ return isNaN(Ae) ? 0 : Ae;
49417
+ }, H = (G) => p ? Math.min(Math.max(G, i), a) : G, J = T.useCallback((G, Ce = !1) => {
49418
+ const he = Ce ? H(G) : G;
49419
49419
  e === void 0 && x(he), r && r(he);
49420
49420
  }, [e, r, H]);
49421
49421
  T.useEffect(() => {
@@ -49423,30 +49423,30 @@ const Vc = T.forwardRef(
49423
49423
  }, [S, I, N]);
49424
49424
  const P = () => {
49425
49425
  if (h || m) return;
49426
- const _ = S + o;
49427
- _ <= a && J(_);
49426
+ const G = S + o;
49427
+ G <= a && J(G);
49428
49428
  }, F = () => {
49429
49429
  if (h || m) return;
49430
- const _ = S - o;
49431
- _ >= i && J(_);
49432
- }, A = (_) => {
49433
- const be = _.target.value;
49434
- y(be);
49435
- const he = D(be);
49436
- J(he, !1);
49437
- }, G = (_) => {
49430
+ const G = S - o;
49431
+ G >= i && J(G);
49432
+ }, A = (G) => {
49433
+ const he = G.target.value.replace(/[^\d,.-]/g, "");
49434
+ y(he);
49435
+ const Ae = D(he);
49436
+ J(Ae, !1);
49437
+ }, _ = (G) => {
49438
49438
  if (C(!1), u) {
49439
- const be = H(S);
49440
- J(be, !1), y(I(be));
49439
+ const Ce = H(S);
49440
+ J(Ce, !1), y(I(Ce));
49441
49441
  } else
49442
49442
  y(I(S));
49443
- g.onBlur && g.onBlur(_);
49444
- }, q = (_) => {
49445
- C(!0), y(S.toString()), _.target.select(), g.onFocus && g.onFocus(_);
49446
- }, fe = (_) => {
49447
- h || m || (_.key === "ArrowUp" ? (_.preventDefault(), P()) : _.key === "ArrowDown" && (_.preventDefault(), F()), g.onKeyDown && g.onKeyDown(_));
49448
- }, Ee = (_) => {
49449
- !d || h || m || !N || (_.preventDefault(), _.deltaY < 0 ? P() : _.deltaY > 0 && F());
49443
+ g.onBlur && g.onBlur(G);
49444
+ }, q = (G) => {
49445
+ C(!0), y(S.toString()), G.target.select(), g.onFocus && g.onFocus(G);
49446
+ }, fe = (G) => {
49447
+ h || m || (G.key === "ArrowUp" ? (G.preventDefault(), P()) : G.key === "ArrowDown" && (G.preventDefault(), F()), g.onKeyDown && g.onKeyDown(G));
49448
+ }, Ee = (G) => {
49449
+ !d || h || m || !N || (G.preventDefault(), G.deltaY < 0 ? P() : G.deltaY > 0 && F());
49450
49450
  };
49451
49451
  return T.useImperativeHandle(v, () => k.current), /* @__PURE__ */ b("div", { className: "relative flex w-full items-center", children: [
49452
49452
  /* @__PURE__ */ l(
@@ -49465,7 +49465,7 @@ const Vc = T.forwardRef(
49465
49465
  ),
49466
49466
  value: L,
49467
49467
  onChange: A,
49468
- onBlur: G,
49468
+ onBlur: _,
49469
49469
  onFocus: q,
49470
49470
  onKeyDown: fe,
49471
49471
  onWheel: Ee,
@@ -49659,7 +49659,7 @@ function C7({
49659
49659
  ...e
49660
49660
  }) {
49661
49661
  return /* @__PURE__ */ l(
49662
- _n,
49662
+ Gn,
49663
49663
  {
49664
49664
  "data-slot": "input-group-control",
49665
49665
  className: M("cn-input-group-input flex-1", t),
@@ -49755,7 +49755,7 @@ function N7({
49755
49755
  ...e
49756
49756
  }) {
49757
49757
  return /* @__PURE__ */ l(
49758
- _e.Root,
49758
+ Ge.Root,
49759
49759
  {
49760
49760
  "data-slot": "menubar",
49761
49761
  className: M(
@@ -49769,29 +49769,29 @@ function N7({
49769
49769
  function k7({
49770
49770
  ...t
49771
49771
  }) {
49772
- return /* @__PURE__ */ l(_e.Menu, { "data-slot": "menubar-menu", ...t });
49772
+ return /* @__PURE__ */ l(Ge.Menu, { "data-slot": "menubar-menu", ...t });
49773
49773
  }
49774
49774
  function S7({
49775
49775
  ...t
49776
49776
  }) {
49777
- return /* @__PURE__ */ l(_e.Group, { "data-slot": "menubar-group", ...t });
49777
+ return /* @__PURE__ */ l(Ge.Group, { "data-slot": "menubar-group", ...t });
49778
49778
  }
49779
49779
  function wE({
49780
49780
  ...t
49781
49781
  }) {
49782
- return /* @__PURE__ */ l(_e.Portal, { "data-slot": "menubar-portal", ...t });
49782
+ return /* @__PURE__ */ l(Ge.Portal, { "data-slot": "menubar-portal", ...t });
49783
49783
  }
49784
49784
  function I7({
49785
49785
  ...t
49786
49786
  }) {
49787
- return /* @__PURE__ */ l(_e.RadioGroup, { "data-slot": "menubar-radio-group", ...t });
49787
+ return /* @__PURE__ */ l(Ge.RadioGroup, { "data-slot": "menubar-radio-group", ...t });
49788
49788
  }
49789
49789
  function T7({
49790
49790
  className: t,
49791
49791
  ...e
49792
49792
  }) {
49793
49793
  return /* @__PURE__ */ l(
49794
- _e.Trigger,
49794
+ Ge.Trigger,
49795
49795
  {
49796
49796
  "data-slot": "menubar-trigger",
49797
49797
  className: M(
@@ -49810,7 +49810,7 @@ function j7({
49810
49810
  ...i
49811
49811
  }) {
49812
49812
  return /* @__PURE__ */ l(wE, { children: /* @__PURE__ */ l(
49813
- _e.Content,
49813
+ Ge.Content,
49814
49814
  {
49815
49815
  "data-slot": "menubar-content",
49816
49816
  align: e,
@@ -49831,7 +49831,7 @@ function D7({
49831
49831
  ...r
49832
49832
  }) {
49833
49833
  return /* @__PURE__ */ l(
49834
- _e.Item,
49834
+ Ge.Item,
49835
49835
  {
49836
49836
  "data-slot": "menubar-item",
49837
49837
  "data-inset": e,
@@ -49851,7 +49851,7 @@ function E7({
49851
49851
  ...r
49852
49852
  }) {
49853
49853
  return /* @__PURE__ */ b(
49854
- _e.CheckboxItem,
49854
+ Ge.CheckboxItem,
49855
49855
  {
49856
49856
  "data-slot": "menubar-checkbox-item",
49857
49857
  className: M(
@@ -49861,7 +49861,7 @@ function E7({
49861
49861
  checked: n,
49862
49862
  ...r,
49863
49863
  children: [
49864
- /* @__PURE__ */ l("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(_e.ItemIndicator, { children: /* @__PURE__ */ l(Xs, { className: "size-4" }) }) }),
49864
+ /* @__PURE__ */ l("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(Ge.ItemIndicator, { children: /* @__PURE__ */ l(Xs, { className: "size-4" }) }) }),
49865
49865
  e
49866
49866
  ]
49867
49867
  }
@@ -49873,7 +49873,7 @@ function A7({
49873
49873
  ...n
49874
49874
  }) {
49875
49875
  return /* @__PURE__ */ b(
49876
- _e.RadioItem,
49876
+ Ge.RadioItem,
49877
49877
  {
49878
49878
  "data-slot": "menubar-radio-item",
49879
49879
  className: M(
@@ -49882,7 +49882,7 @@ function A7({
49882
49882
  ),
49883
49883
  ...n,
49884
49884
  children: [
49885
- /* @__PURE__ */ l("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(_e.ItemIndicator, { children: /* @__PURE__ */ l(Wc, { className: "size-2 fill-current" }) }) }),
49885
+ /* @__PURE__ */ l("span", { className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center", children: /* @__PURE__ */ l(Ge.ItemIndicator, { children: /* @__PURE__ */ l(Wc, { className: "size-2 fill-current" }) }) }),
49886
49886
  e
49887
49887
  ]
49888
49888
  }
@@ -49894,7 +49894,7 @@ function z7({
49894
49894
  ...n
49895
49895
  }) {
49896
49896
  return /* @__PURE__ */ l(
49897
- _e.Label,
49897
+ Ge.Label,
49898
49898
  {
49899
49899
  "data-slot": "menubar-label",
49900
49900
  "data-inset": e,
@@ -49911,7 +49911,7 @@ function O7({
49911
49911
  ...e
49912
49912
  }) {
49913
49913
  return /* @__PURE__ */ l(
49914
- _e.Separator,
49914
+ Ge.Separator,
49915
49915
  {
49916
49916
  "data-slot": "menubar-separator",
49917
49917
  className: M("bg-border -mx-1 my-1 h-px", t),
@@ -49938,7 +49938,7 @@ function P7({
49938
49938
  function R7({
49939
49939
  ...t
49940
49940
  }) {
49941
- return /* @__PURE__ */ l(_e.Sub, { "data-slot": "menubar-sub", ...t });
49941
+ return /* @__PURE__ */ l(Ge.Sub, { "data-slot": "menubar-sub", ...t });
49942
49942
  }
49943
49943
  function B7({
49944
49944
  className: t,
@@ -49947,7 +49947,7 @@ function B7({
49947
49947
  ...r
49948
49948
  }) {
49949
49949
  return /* @__PURE__ */ b(
49950
- _e.SubTrigger,
49950
+ Ge.SubTrigger,
49951
49951
  {
49952
49952
  "data-slot": "menubar-sub-trigger",
49953
49953
  "data-inset": e,
@@ -49968,7 +49968,7 @@ function H7({
49968
49968
  ...e
49969
49969
  }) {
49970
49970
  return /* @__PURE__ */ l(
49971
- _e.SubContent,
49971
+ Ge.SubContent,
49972
49972
  {
49973
49973
  "data-slot": "menubar-sub-content",
49974
49974
  className: M(
@@ -50116,7 +50116,7 @@ function V7({
50116
50116
  }
50117
50117
  );
50118
50118
  }
50119
- function G7({
50119
+ function _7({
50120
50120
  title: t,
50121
50121
  description: e,
50122
50122
  breadcrumbs: n,
@@ -50148,7 +50148,7 @@ function G7({
50148
50148
  e && /* @__PURE__ */ l("div", { className: "border-t px-6 py-3", children: /* @__PURE__ */ l("p", { className: "text-sm text-muted-foreground", children: e }) })
50149
50149
  ] });
50150
50150
  }
50151
- function _7({
50151
+ function G7({
50152
50152
  title: t,
50153
50153
  icon: e,
50154
50154
  badge: n,
@@ -50285,7 +50285,7 @@ function ez({
50285
50285
  ...e
50286
50286
  }) {
50287
50287
  return /* @__PURE__ */ l(
50288
- _l.Root,
50288
+ Gl.Root,
50289
50289
  {
50290
50290
  "data-slot": "radio-group",
50291
50291
  className: M("grid gap-3", t),
@@ -50298,7 +50298,7 @@ function tz({
50298
50298
  ...e
50299
50299
  }) {
50300
50300
  return /* @__PURE__ */ l(
50301
- _l.Item,
50301
+ Gl.Item,
50302
50302
  {
50303
50303
  "data-slot": "radio-group-item",
50304
50304
  className: M(
@@ -50307,7 +50307,7 @@ function tz({
50307
50307
  ),
50308
50308
  ...e,
50309
50309
  children: /* @__PURE__ */ l(
50310
- _l.Indicator,
50310
+ Gl.Indicator,
50311
50311
  {
50312
50312
  "data-slot": "radio-group-indicator",
50313
50313
  className: "flex items-center justify-center",
@@ -51146,22 +51146,32 @@ function JE({
51146
51146
  }
51147
51147
  );
51148
51148
  }
51149
- const jz = ({ ...t }) => {
51149
+ function jz(t) {
51150
51150
  const { theme: e = "system" } = pw();
51151
51151
  return /* @__PURE__ */ l(
51152
51152
  mw,
51153
51153
  {
51154
51154
  theme: e,
51155
51155
  className: "toaster group",
51156
- style: {
51157
- "--normal-bg": "var(--popover)",
51158
- "--normal-text": "var(--popover-foreground)",
51159
- "--normal-border": "var(--border)"
51156
+ toastOptions: {
51157
+ unstyled: !0,
51158
+ classNames: {
51159
+ toast: "w-full rounded-lg border px-4 py-3 shadow-lg flex items-start gap-3 bg-card text-card-foreground border-border",
51160
+ title: "font-medium text-sm",
51161
+ description: "text-sm mt-1",
51162
+ actionButton: "inline-flex items-center justify-center rounded-md text-sm font-medium bg-primary text-primary-foreground hover:bg-primary/90 h-8 px-3",
51163
+ cancelButton: "inline-flex items-center justify-center rounded-md text-sm font-medium bg-muted text-muted-foreground hover:bg-muted/90 h-8 px-3",
51164
+ closeButton: "absolute right-2 top-2 rounded-md p-1 text-foreground/50 hover:text-foreground",
51165
+ error: "!bg-red-50 dark:!bg-red-950/30 !text-red-700 dark:!text-red-400 !border-red-200 dark:!border-red-800 [&_[data-title]]:text-red-700 dark:[&_[data-title]]:text-red-400 [&_[data-description]]:text-red-700/90 dark:[&_[data-description]]:text-red-400/90",
51166
+ success: "!bg-green-50 dark:!bg-green-950/30 !text-green-700 dark:!text-green-400 !border-green-200 dark:!border-green-800 [&_[data-title]]:text-green-700 dark:[&_[data-title]]:text-green-400 [&_[data-description]]:text-green-700/90 dark:[&_[data-description]]:text-green-400/90",
51167
+ warning: "!bg-yellow-50 dark:!bg-yellow-950/30 !text-yellow-700 dark:!text-yellow-400 !border-yellow-200 dark:!border-yellow-800 [&_[data-title]]:text-yellow-700 dark:[&_[data-title]]:text-yellow-400 [&_[data-description]]:text-yellow-700/90 dark:[&_[data-description]]:text-yellow-400/90",
51168
+ info: "!bg-cyan-50 dark:!bg-cyan-950/30 !text-cyan-700 dark:!text-cyan-400 !border-cyan-200 dark:!border-cyan-800 [&_[data-title]]:text-cyan-700 dark:[&_[data-title]]:text-cyan-400 [&_[data-description]]:text-cyan-700/90 dark:[&_[data-description]]:text-cyan-400/90"
51169
+ }
51160
51170
  },
51161
51171
  ...t
51162
51172
  }
51163
51173
  );
51164
- };
51174
+ }
51165
51175
  function YE({
51166
51176
  className: t,
51167
51177
  ...e
@@ -51302,7 +51312,7 @@ const VE = T.forwardRef(
51302
51312
  )
51303
51313
  );
51304
51314
  VE.displayName = "TableCaption";
51305
- const GE = {
51315
+ const _E = {
51306
51316
  previous: "Anterior",
51307
51317
  next: "Próxima",
51308
51318
  first: "Primeira",
@@ -51312,7 +51322,7 @@ const GE = {
51312
51322
  results: "resultados",
51313
51323
  itemsPerPage: "Itens por página",
51314
51324
  page: "Página"
51315
- }, _E = [10, 20, 30, 50, 100];
51325
+ }, GE = [10, 20, 30, 50, 100];
51316
51326
  function WE(t, e, n = 5) {
51317
51327
  if (e <= n)
51318
51328
  return Array.from({ length: e }, (s, f) => f + 1);
@@ -51331,7 +51341,7 @@ function I4({
51331
51341
  totalItems: r,
51332
51342
  onPageChange: i,
51333
51343
  onPageSizeChange: a,
51334
- pageSizeOptions: o = _E,
51344
+ pageSizeOptions: o = GE,
51335
51345
  maxVisiblePages: s = 5,
51336
51346
  showInfo: f = !0,
51337
51347
  showPageNumbers: c = !0,
@@ -51340,7 +51350,7 @@ function I4({
51340
51350
  labels: p,
51341
51351
  className: h
51342
51352
  }) {
51343
- const m = { ...GE, ...p }, g = WE(t, e, s), v = (t - 1) * n + 1, w = Math.min(t * n, r), x = t > 1, L = t < e;
51353
+ const m = { ..._E, ...p }, g = WE(t, e, s), v = (t - 1) * n + 1, w = Math.min(t * n, r), x = t > 1, L = t < e;
51344
51354
  return e === 0 ? null : /* @__PURE__ */ b(
51345
51355
  "div",
51346
51356
  {
@@ -51484,10 +51494,10 @@ function ZE({
51484
51494
  serverSideTotalItems: r
51485
51495
  }) {
51486
51496
  const [i, a] = ne(1), [o, s] = ne(e), f = r !== void 0, c = f ? r : t.length;
51487
- ye(() => {
51497
+ we(() => {
51488
51498
  n && a(1);
51489
51499
  }, [t.length, n]);
51490
- const d = Math.ceil(c / o), u = Math.min(Math.max(1, i), Math.max(1, d)), p = (u - 1) * o, h = Math.min(p + o, c), m = ye(() => f ? t : t.slice(p, h), [t, p, h, f]), g = (N) => {
51500
+ const d = Math.ceil(c / o), u = Math.min(Math.max(1, i), Math.max(1, d)), p = (u - 1) * o, h = Math.min(p + o, c), m = we(() => f ? t : t.slice(p, h), [t, p, h, f]), g = (N) => {
51491
51501
  const C = Math.max(1, Math.min(N, d));
51492
51502
  a(C);
51493
51503
  }, v = () => {
@@ -51527,7 +51537,7 @@ function qE({
51527
51537
  serverCurrentPage: o,
51528
51538
  serverCurrentPageSize: s
51529
51539
  }) {
51530
- const [f, c] = ne(e), [d, u] = ne([]), p = ye(() => i || d.length === 0 ? t : t.filter((C) => d.every((k) => {
51540
+ const [f, c] = ne(e), [d, u] = ne([]), p = we(() => i || d.length === 0 ? t : t.filter((C) => d.every((k) => {
51531
51541
  const S = C[k.column];
51532
51542
  switch (k.operator) {
51533
51543
  case "equals":
@@ -51543,7 +51553,7 @@ function qE({
51543
51553
  default:
51544
51554
  return !0;
51545
51555
  }
51546
- })), [t, d, i]), h = ye(() => i || !f.column || !f.direction ? p : [...p].sort((C, k) => {
51556
+ })), [t, d, i]), h = we(() => i || !f.column || !f.direction ? p : [...p].sort((C, k) => {
51547
51557
  const S = C[f.column], I = k[f.column];
51548
51558
  return S < I ? f.direction === "asc" ? -1 : 1 : S > I ? f.direction === "asc" ? 1 : -1 : 0;
51549
51559
  }), [p, f, i]), m = i ? a ?? t.length : h.length, g = ZE({
@@ -51593,7 +51603,7 @@ function qE({
51593
51603
  }
51594
51604
  function KE({ label: t, value: e, onRemove: n, className: r }) {
51595
51605
  return /* @__PURE__ */ b(
51596
- we,
51606
+ ve,
51597
51607
  {
51598
51608
  variant: "secondary",
51599
51609
  className: M(
@@ -51640,7 +51650,7 @@ function XE({
51640
51650
  onClick: n,
51641
51651
  className: "gap-2",
51642
51652
  children: [
51643
- /* @__PURE__ */ l(G1, { className: "h-4 w-4" }),
51653
+ /* @__PURE__ */ l(_1, { className: "h-4 w-4" }),
51644
51654
  "Filtros",
51645
51655
  a && /* @__PURE__ */ l("span", { className: "ml-1 rounded-full bg-primary text-primary-foreground w-5 h-5 text-xs flex items-center justify-center", children: t.length })
51646
51656
  ]
@@ -51837,9 +51847,9 @@ function tA({
51837
51847
  /* @__PURE__ */ l(at, { className: "w-[240px] p-3", align: "start", children: /* @__PURE__ */ b("div", { className: "space-y-2", children: [
51838
51848
  /* @__PURE__ */ l($e, { className: "text-xs text-muted-foreground", children: s ? "Selecionar valores" : "Selecionar valor" }),
51839
51849
  /* @__PURE__ */ b("div", { className: "relative", children: [
51840
- /* @__PURE__ */ l(_1, { className: "absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" }),
51850
+ /* @__PURE__ */ l(G1, { className: "absolute left-2 top-2.5 h-4 w-4 text-muted-foreground" }),
51841
51851
  /* @__PURE__ */ l(
51842
- _n,
51852
+ Gn,
51843
51853
  {
51844
51854
  type: "text",
51845
51855
  placeholder: "Buscar...",
@@ -51929,7 +51939,7 @@ function tA({
51929
51939
  /* @__PURE__ */ l(at, { className: "w-[240px] p-3", align: "start", children: /* @__PURE__ */ b("div", { className: "space-y-2", children: [
51930
51940
  /* @__PURE__ */ l($e, { className: "text-xs text-muted-foreground", children: "Inserir valor" }),
51931
51941
  /* @__PURE__ */ l(
51932
- _n,
51942
+ Gn,
51933
51943
  {
51934
51944
  type: (a == null ? void 0 : a.type) === "number" ? "number" : "text",
51935
51945
  value: Array.isArray(t.value) ? "" : t.value,
@@ -51945,7 +51955,7 @@ function tA({
51945
51955
  var w, x;
51946
51956
  const v = ((x = (w = a == null ? void 0 : a.options) == null ? void 0 : w.find((L) => L.value === g)) == null ? void 0 : x.label) || g;
51947
51957
  return /* @__PURE__ */ b(
51948
- we,
51958
+ ve,
51949
51959
  {
51950
51960
  variant: "secondary",
51951
51961
  className: "gap-1 h-6 text-xs",
@@ -51999,7 +52009,7 @@ function nA({
51999
52009
  emptyMessage: h,
52000
52010
  className: m
52001
52011
  }) {
52002
- var he, He;
52012
+ var he, Ae;
52003
52013
  const g = !!u, {
52004
52014
  data: v,
52005
52015
  state: w,
@@ -52013,7 +52023,7 @@ function nA({
52013
52023
  totalItems: u == null ? void 0 : u.totalItems,
52014
52024
  serverCurrentPage: u == null ? void 0 : u.currentPage,
52015
52025
  serverCurrentPageSize: u == null ? void 0 : u.currentPageSize
52016
- }), [y, N] = ne(""), [C, k] = ne(!1), [S, I] = ne(s), D = r ? r[0] : ((he = e.find((R) => R.key === "nome" || R.key === "name" || R.key === "title" || R.key === "titulo")) == null ? void 0 : he.key) || ((He = e[0]) == null ? void 0 : He.key), H = (R) => {
52026
+ }), [y, N] = ne(""), [C, k] = ne(!1), [S, I] = ne(s), D = r ? r[0] : ((he = e.find((R) => R.key === "nome" || R.key === "name" || R.key === "title" || R.key === "titulo")) == null ? void 0 : he.key) || ((Ae = e[0]) == null ? void 0 : Ae.key), H = (R) => {
52017
52027
  switch (R) {
52018
52028
  case "is":
52019
52029
  return "equals";
@@ -52062,21 +52072,21 @@ function nA({
52062
52072
  return R;
52063
52073
  }, A = S.map((R) => {
52064
52074
  var Nt, ln;
52065
- const W = a.find((ze) => ze.value === R.field), se = R.operator === "is" ? "" : ` ${R.operator}`;
52075
+ const W = a.find((Oe) => Oe.value === R.field), se = R.operator === "is" ? "" : ` ${R.operator}`;
52066
52076
  let tt;
52067
- return Array.isArray(R.value) ? tt = R.value.map((ze) => {
52077
+ return Array.isArray(R.value) ? tt = R.value.map((Oe) => {
52068
52078
  var Yt, ar;
52069
- return ((ar = (Yt = W == null ? void 0 : W.options) == null ? void 0 : Yt.find((or) => or.value === ze)) == null ? void 0 : ar.label) || ze;
52070
- }).join(", ") : (W == null ? void 0 : W.type) === "date" ? tt = F(R.value) : tt = ((ln = (Nt = W == null ? void 0 : W.options) == null ? void 0 : Nt.find((ze) => ze.value === R.value)) == null ? void 0 : ln.label) || R.value, {
52079
+ return ((ar = (Yt = W == null ? void 0 : W.options) == null ? void 0 : Yt.find((or) => or.value === Oe)) == null ? void 0 : ar.label) || Oe;
52080
+ }).join(", ") : (W == null ? void 0 : W.type) === "date" ? tt = F(R.value) : tt = ((ln = (Nt = W == null ? void 0 : W.options) == null ? void 0 : Nt.find((Oe) => Oe.value === R.value)) == null ? void 0 : ln.label) || R.value, {
52071
52081
  id: R.id,
52072
52082
  label: (W == null ? void 0 : W.label) || R.field,
52073
52083
  value: `${se} ${tt}`.trim(),
52074
52084
  onRemove: () => {
52075
- const ze = S.filter((Yt) => Yt.id !== R.id);
52076
- I(ze), J(ze);
52085
+ const Oe = S.filter((Yt) => Yt.id !== R.id);
52086
+ I(Oe), J(Oe);
52077
52087
  }
52078
52088
  };
52079
- }), G = () => {
52089
+ }), _ = () => {
52080
52090
  J(S), k(!1);
52081
52091
  }, q = () => {
52082
52092
  I([]), g && (u != null && u.onFilterChange) ? u.onFilterChange([], y) : (x.clearFilters(), y && x.setFilter(D, y, "contains"));
@@ -52094,9 +52104,9 @@ function nA({
52094
52104
  x.onSort(R);
52095
52105
  }, [g, u, w.sort, x]), Ee = Ye(async (R) => {
52096
52106
  g && (u != null && u.onPageChange) ? await u.onPageChange(R, w.pagination.pageSize) : w.pagination.onPageChange && w.pagination.onPageChange(R);
52097
- }, [g, u, w.pagination]), _ = Ye(async (R) => {
52107
+ }, [g, u, w.pagination]), G = Ye(async (R) => {
52098
52108
  g && (u != null && u.onPageChange) ? await u.onPageChange(1, R) : w.pagination.onPageSizeChange && w.pagination.onPageSizeChange(R);
52099
- }, [g, u, w.pagination]), be = () => {
52109
+ }, [g, u, w.pagination]), Ce = () => {
52100
52110
  const R = S.length > 0, W = y.trim().length > 0;
52101
52111
  return R || W ? "Nenhum resultado encontrado para os filtros aplicados." : h || "Nenhum dado disponível.";
52102
52112
  };
@@ -52104,9 +52114,9 @@ function nA({
52104
52114
  /* @__PURE__ */ b("div", { className: "flex items-center justify-between gap-2", children: [
52105
52115
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2 flex-1", children: [
52106
52116
  i && /* @__PURE__ */ b("div", { className: "relative max-w-sm flex-1", children: [
52107
- /* @__PURE__ */ l(_1, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground pointer-events-none" }),
52117
+ /* @__PURE__ */ l(G1, { className: "absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground pointer-events-none" }),
52108
52118
  /* @__PURE__ */ l(
52109
- _n,
52119
+ Gn,
52110
52120
  {
52111
52121
  placeholder: n,
52112
52122
  value: y,
@@ -52120,7 +52130,7 @@ function nA({
52120
52130
  ] }),
52121
52131
  o && a.length > 0 && /* @__PURE__ */ b(dt, { open: C, onOpenChange: k, children: [
52122
52132
  /* @__PURE__ */ l(it, { asChild: !0, children: /* @__PURE__ */ b(B, { variant: "outline", size: "sm", className: "gap-2", children: [
52123
- /* @__PURE__ */ l(G1, { className: "h-4 w-4" }),
52133
+ /* @__PURE__ */ l(_1, { className: "h-4 w-4" }),
52124
52134
  "Filtros",
52125
52135
  S.length > 0 && /* @__PURE__ */ l("span", { className: "ml-1 rounded-full bg-primary text-primary-foreground w-5 h-5 text-xs flex items-center justify-center", children: S.length })
52126
52136
  ] }) }),
@@ -52151,7 +52161,7 @@ function nA({
52151
52161
  B,
52152
52162
  {
52153
52163
  size: "sm",
52154
- onClick: G,
52164
+ onClick: _,
52155
52165
  children: "Aplicar Filtros"
52156
52166
  }
52157
52167
  )
@@ -52207,7 +52217,7 @@ function nA({
52207
52217
  {
52208
52218
  colSpan: e.length,
52209
52219
  className: "h-24 text-center",
52210
- children: be()
52220
+ children: Ce()
52211
52221
  }
52212
52222
  ) })
52213
52223
  ) })
@@ -52220,7 +52230,7 @@ function nA({
52220
52230
  pageSize: w.pagination.pageSize,
52221
52231
  totalItems: w.pagination.totalItems,
52222
52232
  onPageChange: Ee,
52223
- onPageSizeChange: _,
52233
+ onPageSizeChange: G,
52224
52234
  pageSizeOptions: f
52225
52235
  }
52226
52236
  )
@@ -52292,7 +52302,7 @@ function Dz({
52292
52302
  const a = t.filter((s) => s.isFavorite), o = t.filter((s) => !s.isFavorite);
52293
52303
  return /* @__PURE__ */ b(sf, { children: [
52294
52304
  /* @__PURE__ */ l(ff, { asChild: !0, children: /* @__PURE__ */ b(B, { variant: "outline", size: "sm", className: M("gap-2", i), children: [
52295
- /* @__PURE__ */ l(_c, { className: "h-4 w-4" }),
52305
+ /* @__PURE__ */ l(Gc, { className: "h-4 w-4" }),
52296
52306
  "Filtros salvos",
52297
52307
  t.length > 0 && /* @__PURE__ */ b("span", { className: "text-xs text-muted-foreground", children: [
52298
52308
  "(",
@@ -52425,7 +52435,7 @@ function Ez({
52425
52435
  /* @__PURE__ */ b("div", { className: "space-y-2", children: [
52426
52436
  /* @__PURE__ */ l($e, { htmlFor: "task-name", children: "Nome da Tarefa *" }),
52427
52437
  /* @__PURE__ */ l(
52428
- _n,
52438
+ Gn,
52429
52439
  {
52430
52440
  id: "task-name",
52431
52441
  value: o.name,
@@ -52620,7 +52630,7 @@ function Ez({
52620
52630
  }
52621
52631
  ),
52622
52632
  /* @__PURE__ */ l("span", { className: "text-sm flex-1", children: x.name }),
52623
- x.assignee && /* @__PURE__ */ l(we, { variant: "outline", className: "text-xs", children: x.assignee.name })
52633
+ x.assignee && /* @__PURE__ */ l(ve, { variant: "outline", className: "text-xs", children: x.assignee.name })
52624
52634
  ]
52625
52635
  },
52626
52636
  x.id
@@ -52645,7 +52655,7 @@ const oA = (t) => {
52645
52655
  case "status_change":
52646
52656
  return /* @__PURE__ */ l(Uv, { className: "h-4 w-4 text-blue-600" });
52647
52657
  case "comment":
52648
- return /* @__PURE__ */ l(Gc, { className: "h-4 w-4 text-slate-500" });
52658
+ return /* @__PURE__ */ l(_c, { className: "h-4 w-4 text-slate-500" });
52649
52659
  case "upload":
52650
52660
  return /* @__PURE__ */ l(xa, { className: "h-4 w-4 text-orange-600" });
52651
52661
  case "assignment":
@@ -52696,7 +52706,7 @@ const oA = (t) => {
52696
52706
  ] }),
52697
52707
  a && /* @__PURE__ */ b(My, { open: r, onOpenChange: o, className: "mt-1", children: [
52698
52708
  /* @__PURE__ */ b("div", { className: "flex items-center gap-2", children: [
52699
- t.action === "upload" && ((d = t.metadata) == null ? void 0 : d.fileName) && /* @__PURE__ */ b(we, { variant: "outline", className: "gap-1 font-normal bg-muted/30 text-muted-foreground hover:bg-muted/50", children: [
52709
+ t.action === "upload" && ((d = t.metadata) == null ? void 0 : d.fileName) && /* @__PURE__ */ b(ve, { variant: "outline", className: "gap-1 font-normal bg-muted/30 text-muted-foreground hover:bg-muted/50", children: [
52700
52710
  /* @__PURE__ */ l(j1, { className: "h-3 w-3" }),
52701
52711
  t.metadata.fileName
52702
52712
  ] }),
@@ -53177,8 +53187,8 @@ export {
53177
53187
  WA as Alert,
53178
53188
  ZA as AlertDescription,
53179
53189
  HA as AlertDialog,
53180
- GA as AlertDialogAction,
53181
- _A as AlertDialogCancel,
53190
+ _A as AlertDialogAction,
53191
+ GA as AlertDialogCancel,
53182
53192
  FA as AlertDialogContent,
53183
53193
  VA as AlertDialogDescription,
53184
53194
  YA as AlertDialogFooter,
@@ -53195,7 +53205,7 @@ export {
53195
53205
  tn as Avatar,
53196
53206
  nn as AvatarFallback,
53197
53207
  kr as AvatarImage,
53198
- we as Badge,
53208
+ ve as Badge,
53199
53209
  La as BrandLogo,
53200
53210
  Sw as Breadcrumb,
53201
53211
  l8 as BreadcrumbEllipsis,
@@ -53238,10 +53248,10 @@ export {
53238
53248
  P8 as CommandSeparator,
53239
53249
  B8 as CommandShortcut,
53240
53250
  N8 as CommentSystem,
53241
- _7 as CompactPageHeader,
53251
+ G7 as CompactPageHeader,
53242
53252
  H8 as ContextMenu,
53243
53253
  $8 as ContextMenuCheckboxItem,
53244
- _8 as ContextMenuContent,
53254
+ G8 as ContextMenuContent,
53245
53255
  F8 as ContextMenuGroup,
53246
53256
  W8 as ContextMenuItem,
53247
53257
  q8 as ContextMenuLabel,
@@ -53251,7 +53261,7 @@ export {
53251
53261
  K8 as ContextMenuSeparator,
53252
53262
  X8 as ContextMenuShortcut,
53253
53263
  Y8 as ContextMenuSub,
53254
- G8 as ContextMenuSubContent,
53264
+ _8 as ContextMenuSubContent,
53255
53265
  V8 as ContextMenuSubTrigger,
53256
53266
  U8 as ContextMenuTrigger,
53257
53267
  u8 as ContractPrint,
@@ -53317,7 +53327,7 @@ export {
53317
53327
  m7 as HoverCardTrigger,
53318
53328
  Uz as Illustrations,
53319
53329
  py as ImageWithFallback,
53320
- _n as Input,
53330
+ Gn as Input,
53321
53331
  pE as InputGroup,
53322
53332
  N1 as InputGroupAddon,
53323
53333
  M7 as InputGroupButton,
@@ -53355,7 +53365,7 @@ export {
53355
53365
  F7 as NavigationMenuList,
53356
53366
  Y7 as NavigationMenuTrigger,
53357
53367
  Vc as NumberInput,
53358
- G7 as PageHeader,
53368
+ _7 as PageHeader,
53359
53369
  W7 as Pagination,
53360
53370
  $7 as PaginationContent,
53361
53371
  X7 as PaginationEllipsis,
@@ -53425,7 +53435,6 @@ export {
53425
53435
  br as Skeleton,
53426
53436
  JE as Slider,
53427
53437
  FE as SocialButton,
53428
- jz as Sonner,
53429
53438
  pA as SuccessStateIllustration,
53430
53439
  YE as Switch,
53431
53440
  L4 as Table,
@@ -53446,6 +53455,7 @@ export {
53446
53455
  y4 as Textarea,
53447
53456
  Zs as TimePicker,
53448
53457
  Az as Timeline,
53458
+ jz as Toaster,
53449
53459
  zj as Toggle,
53450
53460
  Bz as ToggleGroup,
53451
53461
  Hz as ToggleGroupItem,