@tryghost/koenig-lexical 0.0.27 → 0.0.28

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.
@@ -1,140 +1,140 @@
1
1
  var nc = Object.defineProperty;
2
2
  var rc = (t, e, n) => e in t ? nc(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var be = (t, e, n) => (rc(t, typeof e != "symbol" ? e + "" : e, n), n);
4
- import * as v from "react";
3
+ var Le = (t, e, n) => (rc(t, typeof e != "symbol" ? e + "" : e, n), n);
4
+ import * as _ from "react";
5
5
  import R, { useState as to, useEffect as Qn } from "react";
6
6
  import ic, { createPortal as oc } from "react-dom";
7
- const cl = (t) => /* @__PURE__ */ v.createElement("svg", {
7
+ const cl = (t) => /* @__PURE__ */ _.createElement("svg", {
8
8
  width: 16,
9
9
  height: 16,
10
10
  viewBox: "0 0 16 16",
11
11
  xmlns: "http://www.w3.org/2000/svg",
12
12
  role: "img",
13
13
  ...t
14
- }, /* @__PURE__ */ v.createElement("path", {
14
+ }, /* @__PURE__ */ _.createElement("path", {
15
15
  d: "M7.412 6.217h1.176c1.276 0 2.236-.773 2.236-1.608 0-.835-.96-1.609-2.236-1.609H5.765v3.217h1.647zM5.765 13H9.47C10.875 13 12 11.92 12 10.609s-1.124-2.392-2.53-2.392H5.766V13zm-2 0V3H3c-.552 0-1-.448-1-1s.448-1 1-1h5.588c2.297 0 4.236 1.563 4.236 3.609 0 .877-.357 1.666-.945 2.28C13.15 7.665 14 9.037 14 10.61 14 13.043 11.963 15 9.47 15H3c-.552 0-1-.448-1-1s.448-1 1-1h.765z",
16
16
  fillRule: "nonzero"
17
- })), ul = (t) => /* @__PURE__ */ v.createElement("svg", {
17
+ })), ul = (t) => /* @__PURE__ */ _.createElement("svg", {
18
18
  width: 16,
19
19
  height: 16,
20
20
  viewBox: "0 0 16 16",
21
21
  xmlns: "http://www.w3.org/2000/svg",
22
22
  role: "img",
23
23
  ...t
24
- }, /* @__PURE__ */ v.createElement("path", {
24
+ }, /* @__PURE__ */ _.createElement("path", {
25
25
  d: "M12.15 3L6.104 13h.811c.552 0 1 .448 1 1s-.448 1-1 1H2c-.552 0-1-.448-1-1s.448-1 1-1h1.767L9.813 3H9c-.552 0-1-.448-1-1s.448-1 1-1h4.915c.552 0 1 .448 1 1s-.448 1-1 1H12.15z",
26
26
  fillRule: "nonzero"
27
- })), dl = (t) => /* @__PURE__ */ v.createElement("svg", {
27
+ })), dl = (t) => /* @__PURE__ */ _.createElement("svg", {
28
28
  width: 16,
29
29
  height: 16,
30
30
  viewBox: "0 0 16 16",
31
31
  xmlns: "http://www.w3.org/2000/svg",
32
32
  role: "img",
33
33
  ...t
34
- }, /* @__PURE__ */ v.createElement("path", {
34
+ }, /* @__PURE__ */ _.createElement("path", {
35
35
  d: "M4 7h8V2c0-.552.448-1 1-1s1 .448 1 1v5.897c.003.034.005.068.005.103 0 .035-.002.07-.005.103V14c0 .552-.448 1-1 1s-1-.448-1-1V9H4v5c0 .552-.448 1-1 1s-1-.448-1-1V2c0-.552.448-1 1-1s1 .448 1 1v5z",
36
36
  fillRule: "nonzero"
37
- })), gl = (t) => /* @__PURE__ */ v.createElement("svg", {
37
+ })), gl = (t) => /* @__PURE__ */ _.createElement("svg", {
38
38
  width: 16,
39
39
  height: 16,
40
40
  viewBox: "0 0 16 16",
41
41
  xmlns: "http://www.w3.org/2000/svg",
42
42
  role: "img",
43
43
  ...t
44
- }, /* @__PURE__ */ v.createElement("path", {
44
+ }, /* @__PURE__ */ _.createElement("path", {
45
45
  d: "M6 8h4V5.483c0-.552.448-1 1-1s1 .448 1 1V13c0 .552-.448 1-1 1s-1-.448-1-1v-3H6v3c0 .552-.448 1-1 1s-1-.448-1-1V5.483c0-.552.448-1 1-1s1 .448 1 1V8z",
46
46
  fillRule: "nonzero"
47
- })), Zr = (t) => /* @__PURE__ */ v.createElement("svg", {
47
+ })), Zr = (t) => /* @__PURE__ */ _.createElement("svg", {
48
48
  width: 16,
49
49
  height: 16,
50
50
  viewBox: "0 0 16 16",
51
51
  xmlns: "http://www.w3.org/2000/svg",
52
52
  role: "img",
53
53
  ...t
54
- }, /* @__PURE__ */ v.createElement("path", {
54
+ }, /* @__PURE__ */ _.createElement("path", {
55
55
  d: "M6.4 11.688c.4-.382 1.032-.369 1.415.03.382.399.368 1.032-.03 1.414l-1.055 1.01c-1.209 1.21-3.17 1.21-4.38 0l-.494-.494c-1.208-1.209-1.208-3.17.001-4.377L5.07 6.058c1.21-1.21 3.17-1.21 4.38 0 .39.39.39 1.024 0 1.414-.391.39-1.024.39-1.415 0-.428-.428-1.122-.428-1.551 0l-3.213 3.213c-.427.427-.427 1.122 0 1.55l.494.494c.428.428 1.123.428 1.566-.015l1.07-1.026zm3.037-7.212c-.398.383-1.03.372-1.414-.025-.384-.398-.373-1.03.025-1.414l1.222-1.18c1.21-1.209 3.169-1.209 4.379 0l.493.494c1.21 1.209 1.21 3.17.013 4.366l-3.237 3.357c-1.21 1.21-3.17 1.21-4.38 0-.39-.391-.389-1.025.002-1.415.39-.39 1.024-.39 1.414.001.428.429 1.121.429 1.537.013l3.238-3.358c.428-.427.428-1.121 0-1.55l-.494-.493c-.429-.429-1.123-.429-1.563.012L9.437 4.476z",
56
56
  fillRule: "nonzero"
57
- })), fl = (t) => /* @__PURE__ */ v.createElement("svg", {
57
+ })), fl = (t) => /* @__PURE__ */ _.createElement("svg", {
58
58
  width: 16,
59
59
  height: 16,
60
60
  viewBox: "0 0 16 16",
61
61
  xmlns: "http://www.w3.org/2000/svg",
62
62
  role: "img",
63
63
  ...t
64
- }, /* @__PURE__ */ v.createElement("path", {
64
+ }, /* @__PURE__ */ _.createElement("path", {
65
65
  d: "M4 8h2c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H3c-.552 0-1-.448-1-1V5.082c0-1.176.906-2.12 2.538-2.969.49-.255 1.094-.065 1.349.425.255.49.065 1.094-.425 1.349-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8zm9 0c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1h-3c-.552 0-1-.448-1-1V5.082c0-1.176.906-2.12 2.538-2.969.49-.255 1.094-.065 1.349.425.255.49.065 1.094-.425 1.349-.578.3-.993.589-1.24.847-.168.174-.222.286-.222.348V8h2z",
66
66
  fillRule: "nonzero"
67
- })), hl = (t) => /* @__PURE__ */ v.createElement("svg", {
67
+ })), hl = (t) => /* @__PURE__ */ _.createElement("svg", {
68
68
  width: 16,
69
69
  height: 16,
70
70
  viewBox: "0 0 16 16",
71
71
  xmlns: "http://www.w3.org/2000/svg",
72
72
  role: "img",
73
73
  ...t
74
- }, /* @__PURE__ */ v.createElement("g", {
74
+ }, /* @__PURE__ */ _.createElement("g", {
75
75
  fillRule: "evenodd"
76
- }, /* @__PURE__ */ v.createElement("path", {
76
+ }, /* @__PURE__ */ _.createElement("path", {
77
77
  d: "M2 3c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1H2zM2 15c-.552 0-1-.448-1-1s.448-1 1-1h12c.552 0 1 .448 1 1s-.448 1-1 1H2z",
78
78
  fillRule: "nonzero",
79
79
  opacity: 0.6
80
- }), /* @__PURE__ */ v.createElement("path", {
80
+ }), /* @__PURE__ */ _.createElement("path", {
81
81
  d: "M2 5h12c.552 0 1 .448 1 1v4.001c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1z",
82
82
  fillRule: "nonzero"
83
- }))), pl = (t) => /* @__PURE__ */ v.createElement("svg", {
83
+ }))), pl = (t) => /* @__PURE__ */ _.createElement("svg", {
84
84
  width: 16,
85
85
  height: 16,
86
86
  viewBox: "0 0 16 16",
87
87
  xmlns: "http://www.w3.org/2000/svg",
88
88
  role: "img",
89
89
  ...t
90
- }, /* @__PURE__ */ v.createElement("g", {
90
+ }, /* @__PURE__ */ _.createElement("g", {
91
91
  fillRule: "evenodd"
92
- }, /* @__PURE__ */ v.createElement("path", {
92
+ }, /* @__PURE__ */ _.createElement("path", {
93
93
  d: "M6 3c-.552 0-1-.448-1-1s.448-1 1-1h4c.552 0 1 .448 1 1s-.448 1-1 1H6zM6 15c-.552 0-1-.448-1-1s.448-1 1-1h4c.552 0 1 .448 1 1s-.448 1-1 1H6z",
94
94
  fillRule: "nonzero",
95
95
  opacity: 0.6
96
- }), /* @__PURE__ */ v.createElement("path", {
96
+ }), /* @__PURE__ */ _.createElement("path", {
97
97
  d: "M2 5h12c.552 0 1 .448 1 1v4.001c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1V6c0-.552.448-1 1-1z",
98
98
  fillRule: "nonzero"
99
- }))), ml = (t) => /* @__PURE__ */ v.createElement("svg", {
99
+ }))), ml = (t) => /* @__PURE__ */ _.createElement("svg", {
100
100
  width: 16,
101
101
  height: 16,
102
102
  viewBox: "0 0 16 16",
103
103
  xmlns: "http://www.w3.org/2000/svg",
104
104
  role: "img",
105
105
  ...t
106
- }, /* @__PURE__ */ v.createElement("g", {
106
+ }, /* @__PURE__ */ _.createElement("g", {
107
107
  fillRule: "evenodd"
108
- }, /* @__PURE__ */ v.createElement("path", {
108
+ }, /* @__PURE__ */ _.createElement("path", {
109
109
  d: "M0 2c0-.552.448-1 1-1s1 .448 1 1v12c0 .552-.448 1-1 1s-1-.448-1-1V2zM14 2c0-.552.448-1 1-1s1 .448 1 1v12c0 .552-.448 1-1 1s-1-.448-1-1V2z",
110
110
  fillRule: "nonzero",
111
111
  opacity: 0.6
112
- }), /* @__PURE__ */ v.createElement("path", {
112
+ }), /* @__PURE__ */ _.createElement("path", {
113
113
  d: "M10.626 7L9.312 5.691c-.391-.39-.393-1.023-.003-1.414s1.023-.392 1.414-.003l3.029 3.017c.39.389.392 1.02.005 1.412l-3.029 3.059c-.388.392-1.022.395-1.414.007-.392-.389-.396-1.022-.007-1.414L10.648 9H5.415l1.342 1.355c.388.392.385 1.025-.007 1.414-.393.388-1.026.385-1.415-.007L2.307 8.703c-.388-.392-.386-1.023.005-1.412L5.34 4.274c.391-.39 1.025-.388 1.414.003.39.391.389 1.025-.002 1.414L5.438 7h5.188z",
114
114
  fillRule: "nonzero"
115
- }))), _l = (t) => /* @__PURE__ */ v.createElement("svg", {
115
+ }))), _l = (t) => /* @__PURE__ */ _.createElement("svg", {
116
116
  width: 16,
117
117
  height: 16,
118
118
  viewBox: "0 0 16 16",
119
119
  xmlns: "http://www.w3.org/2000/svg",
120
120
  role: "img",
121
121
  ...t
122
- }, /* @__PURE__ */ v.createElement("g", {
122
+ }, /* @__PURE__ */ _.createElement("g", {
123
123
  fillRule: "evenodd"
124
- }, /* @__PURE__ */ v.createElement("path", {
124
+ }, /* @__PURE__ */ _.createElement("path", {
125
125
  d: "M2 9h5c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H2c-.552 0-1-.448-1-1v-4c0-.552.448-1 1-1zM9 1h5c.552 0 1 .448 1 1v4c0 .552-.448 1-1 1H9c-.552 0-1-.448-1-1V2c0-.552.448-1 1-1zM4.5 5.772l1.15-1.175c.192-.198.509-.201.706-.008.198.193.201.51.008.707L4.382 7.322c-.091.109-.229.178-.382.178-.13 0-.26-.05-.357-.148L1.61 5.298c-.194-.196-.193-.513.004-.707.196-.194.512-.193.707.004L3.5 5.785V3c0-.828.672-1.5 1.5-1.5h1c.276 0 .5.224.5.5s-.224.5-.5.5H5c-.276 0-.5.224-.5.5v2.772zm7 4.456l-1.15 1.175c-.192.198-.509.201-.706.008-.198-.193-.201-.51-.008-.707l1.982-2.026c.091-.109.229-.178.382-.178.13 0 .26.05.357.148l2.032 2.054c.194.196.193.513-.004.707-.196.194-.512.193-.707-.004l-1.178-1.19V13c0 .828-.672 1.5-1.5 1.5h-1c-.276 0-.5-.224-.5-.5s.224-.5.5-.5h1c.276 0 .5-.224.5-.5v-2.772z",
126
126
  fillRule: "nonzero"
127
- }))), vl = (t) => /* @__PURE__ */ v.createElement("svg", {
127
+ }))), vl = (t) => /* @__PURE__ */ _.createElement("svg", {
128
128
  width: 16,
129
129
  height: 16,
130
130
  viewBox: "0 0 16 16",
131
131
  xmlns: "http://www.w3.org/2000/svg",
132
132
  role: "img",
133
133
  ...t
134
- }, /* @__PURE__ */ v.createElement("path", {
134
+ }, /* @__PURE__ */ _.createElement("path", {
135
135
  d: "M9 7h5c.552 0 1 .448 1 1s-.448 1-1 1H9v5c0 .552-.448 1-1 1s-1-.448-1-1V9H2c-.552 0-1-.448-1-1s.448-1 1-1h5V2c0-.552.448-1 1-1s1 .448 1 1v5z",
136
136
  fillRule: "nonzero"
137
- })), Wn = (t) => /* @__PURE__ */ v.createElement("svg", {
137
+ })), Wn = (t) => /* @__PURE__ */ _.createElement("svg", {
138
138
  width: 16,
139
139
  height: 16,
140
140
  viewBox: "0 0 16 16",
@@ -142,229 +142,229 @@ const cl = (t) => /* @__PURE__ */ v.createElement("svg", {
142
142
  xmlns: "http://www.w3.org/2000/svg",
143
143
  role: "img",
144
144
  ...t
145
- }, /* @__PURE__ */ v.createElement("path", {
145
+ }, /* @__PURE__ */ _.createElement("path", {
146
146
  fillRule: "evenodd",
147
147
  clipRule: "evenodd",
148
148
  d: "M3 3V13H8.78579L13 8.78579V3H3ZM1.52721 1.52721C1.86477 1.18964 2.32261 1 2.8 1H13.2C13.6774 1 14.1352 1.18964 14.4728 1.52721C14.8104 1.86477 15 2.32261 15 2.8V8.8688C14.9999 9.34585 14.8104 9.80357 14.4732 10.141L10.1412 14.473C9.8038 14.8102 9.34607 14.9999 8.86901 15H2.8C2.32261 15 1.86477 14.8104 1.52721 14.4728C1.18964 14.1352 1 13.6774 1 13.2V2.8C1 2.32261 1.18964 1.86477 1.52721 1.52721Z"
149
- }), /* @__PURE__ */ v.createElement("path", {
149
+ }), /* @__PURE__ */ _.createElement("path", {
150
150
  fillRule: "evenodd",
151
151
  clipRule: "evenodd",
152
152
  d: "M10 10H14C14.5523 10 15 9.55228 15 9C15 8.44772 14.5523 8 14 8H9.84602C9.35643 8 8.88688 8.19449 8.54069 8.54069C8.19449 8.88688 8 9.35643 8 9.84602V14C8 14.5523 8.44772 15 9 15C9.55228 15 10 14.5523 10 14V10Z"
153
- })), Cl = (t) => /* @__PURE__ */ v.createElement("svg", {
153
+ })), Cl = (t) => /* @__PURE__ */ _.createElement("svg", {
154
154
  width: 24,
155
155
  height: 24,
156
156
  viewBox: "0 0 24 24",
157
157
  xmlns: "http://www.w3.org/2000/svg",
158
158
  role: "img",
159
159
  ...t
160
- }, /* @__PURE__ */ v.createElement("g", {
160
+ }, /* @__PURE__ */ _.createElement("g", {
161
161
  fill: "none",
162
162
  fillRule: "evenodd"
163
- }, /* @__PURE__ */ v.createElement("path", {
163
+ }, /* @__PURE__ */ _.createElement("path", {
164
164
  d: "M12 1.5v21M1.5 12h21",
165
165
  strokeLinecap: "round",
166
166
  strokeLinejoin: "round"
167
- }))), yl = (t) => /* @__PURE__ */ v.createElement("svg", {
167
+ }))), yl = (t) => /* @__PURE__ */ _.createElement("svg", {
168
168
  width: 32,
169
169
  height: 32,
170
170
  viewBox: "0 0 32 32",
171
171
  xmlns: "http://www.w3.org/2000/svg",
172
172
  role: "img",
173
173
  ...t
174
- }, /* @__PURE__ */ v.createElement("g", {
174
+ }, /* @__PURE__ */ _.createElement("g", {
175
175
  fill: "none",
176
176
  fillRule: "evenodd"
177
- }, /* @__PURE__ */ v.createElement("path", {
177
+ }, /* @__PURE__ */ _.createElement("path", {
178
178
  d: "M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",
179
179
  fill: "#30cf43"
180
- }), /* @__PURE__ */ v.createElement("path", {
180
+ }), /* @__PURE__ */ _.createElement("path", {
181
181
  d: "M23.778 12.111c0 3.111-1.556 4.667-4.667 4.667-3.111 0-4.667-1.556-4.667-4.667C14.444 9 16 7.444 19.111 7.444c3.111 0 4.667 1.556 4.667 4.667zM19.111 5.5c.778 0 1.167-.389 1.167-1.167v-.777c0-.45-.195-.786-.584-1.01-.388-.225-.777-.225-1.166 0-.39.224-.584.56-.584 1.01v.777c0 .778.39 1.167 1.167 1.167zM12.788 7.435c.55.552 1.1.554 1.653.004.552-.55.553-1.1.003-1.653l-.549-.55c-.55-.552-1.101-.554-1.653-.004-.553.55-.554 1.101-.005 1.654l.55.55zM10.556 13.278h.777c.778 0 1.167-.39 1.167-1.167 0-.778-.389-1.167-1.167-1.167h-.777c-.778 0-1.167.39-1.167 1.167 0 .778.389 1.167 1.167 1.167zM25.434 16.787c-.549-.512-1.089-.502-1.62.029-.53.53-.54 1.07-.028 1.62l.549.55c.55.55 1.1.55 1.65 0 .55-.55.55-1.1 0-1.65l-.55-.549zM25.722 12.111c0 .778.39 1.167 1.167 1.167h.778c.777 0 1.166-.39 1.166-1.167 0-.778-.389-1.167-1.166-1.167h-.778c-.322 0-.597.114-.825.342-.228.228-.342.503-.342.825zM24.61 7.779c.323 0 .598-.114.824-.344l.551-.549c.55-.55.55-1.1 0-1.65-.55-.55-1.1-.55-1.65 0l-.55.55c-.366.368-.45.792-.251 1.271.198.48.557.72 1.076.722zM21.911 22.356c-.771 0-1.522.12-2.254.364-.127.042-.21.126-.25.254-.039.127-.018.244.063.35 1.283 1.689 2.07 3.583 2.362 5.684.02.142.103.214.247.214h4.906c.836 0 1.492-.343 1.967-1.031-.737-3.89-3.084-5.835-7.042-5.835h.001zM9.644 19.968c-2.518-.004-4.758.783-6.72 2.362-.1.08-.149.183-.146.31v4.2c.004 1.588.8 2.382 2.388 2.382H19.83c.122 0 .222-.046.3-.14.077-.093.105-.2.082-.319-1.083-5.863-4.606-8.795-10.568-8.795z",
182
182
  fill: "#FFF"
183
- }))), lc = (t) => /* @__PURE__ */ v.createElement("svg", {
183
+ }))), lc = (t) => /* @__PURE__ */ _.createElement("svg", {
184
184
  width: 32,
185
185
  height: 32,
186
186
  viewBox: "0 0 32 32",
187
187
  xmlns: "http://www.w3.org/2000/svg",
188
188
  role: "img",
189
189
  ...t
190
- }, /* @__PURE__ */ v.createElement("g", {
190
+ }, /* @__PURE__ */ _.createElement("g", {
191
191
  fill: "none",
192
192
  fillRule: "evenodd"
193
- }, /* @__PURE__ */ v.createElement("path", {
193
+ }, /* @__PURE__ */ _.createElement("path", {
194
194
  d: "M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",
195
195
  fill: "#fb2d8d",
196
196
  fillRule: "nonzero"
197
- }), /* @__PURE__ */ v.createElement("path", {
197
+ }), /* @__PURE__ */ _.createElement("path", {
198
198
  stroke: "#FFF",
199
199
  strokeWidth: 2,
200
200
  strokeLinecap: "round",
201
201
  strokeLinejoin: "round",
202
202
  d: "M8 20v-8l4 4 4-4v8M22 12.07v7.916M19.5 17.5l2.48 2.525L24.5 17.5"
203
- }))), sc = (t) => /* @__PURE__ */ v.createElement("svg", {
203
+ }))), sc = (t) => /* @__PURE__ */ _.createElement("svg", {
204
204
  width: 32,
205
205
  height: 32,
206
206
  viewBox: "0 0 32 32",
207
207
  xmlns: "http://www.w3.org/2000/svg",
208
208
  role: "img",
209
209
  ...t
210
- }, /* @__PURE__ */ v.createElement("g", {
210
+ }, /* @__PURE__ */ _.createElement("g", {
211
211
  fill: "none",
212
212
  fillRule: "evenodd"
213
- }, /* @__PURE__ */ v.createElement("path", {
213
+ }, /* @__PURE__ */ _.createElement("path", {
214
214
  fill: "#FFF",
215
215
  d: "M2 4h28v24H2z"
216
- }), /* @__PURE__ */ v.createElement("path", {
216
+ }), /* @__PURE__ */ _.createElement("path", {
217
217
  d: "M32 6c0-2.667-1.333-4-4-4H4c-1.105 0-2.047.39-2.828 1.172C.39 3.952 0 4.895 0 6v20c0 2.667 1.333 4 4 4h24c2.667 0 4-1.333 4-4V6zM4 6.667c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C4.444 8 4 7.556 4 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C8.444 8 8 7.556 8 6.667zm4 0c0-.594.274-1.005.823-1.232.549-.227 1.033-.131 1.453.289.42.42.516.904.29 1.453-.228.549-.639.823-1.233.823C12.444 8 12 7.556 12 6.667zM29.333 26c0 .889-.444 1.333-1.333 1.333H4c-.889 0-1.333-.444-1.333-1.333V12c0-.184.065-.341.195-.471.13-.13.287-.196.471-.196h25.334c.444 0 .666.223.666.667v14z",
218
218
  fill: "#14b8ff"
219
- }), /* @__PURE__ */ v.createElement("path", {
219
+ }), /* @__PURE__ */ _.createElement("path", {
220
220
  d: "M10.333 16c0 .667.334 1 1 1 .223 0 .334.111.334.333v5.334c0 .666.333 1 1 1 .666 0 1-.334 1-1v-5.334c0-.092.032-.17.097-.235.065-.065.144-.098.236-.098.667 0 1-.333 1-1s-.333-1-1-1h-2.667c-.276 0-.512.098-.707.293-.195.195-.293.43-.293.707zM5.333 23.667c.667 0 1-.334 1-1v-1.334c0-.128.056-.224.167-.288.111-.064.222-.064.333 0 .111.064.167.16.167.288v1.334c0 .666.333 1 1 1s1-.334 1-1V16c0-.385-.167-.674-.5-.866-.333-.192-.667-.192-1 0-.333.192-.5.481-.5.866v2.667c0 .222-.111.333-.333.333-.223 0-.334-.111-.334-.333V16c0-.385-.166-.674-.5-.866-.333-.192-.666-.192-1 0-.333.192-.5.481-.5.866v6.667c0 .666.334 1 1 1zM23.667 21.333c.001 1.554.78 2.332 2.333 2.334h1.333c.667 0 1-.334 1-1 0-.667-.333-1-1-1H26c-.222 0-.333-.111-.333-.334V16c0-.385-.167-.674-.5-.866-.334-.192-.667-.192-1 0-.334.192-.5.481-.5.866v5.333zM17.333 23.667c.667 0 1-.334 1-1v-2.78c0-.039.02-.063.056-.073.037-.01.066 0 .086.034.207.301.493.452.858.452.366 0 .652-.15.859-.452.02-.033.048-.045.085-.034.038.01.056.034.056.073v2.78c0 .666.334 1 1 1 .667 0 1-.334 1-1V16c-.001-.506-.246-.827-.734-.962s-.863.014-1.124.447l-.856 1.428c-.065.108-.16.161-.286.161-.125 0-.22-.053-.285-.16l-.856-1.429c-.262-.433-.636-.582-1.125-.447-.488.135-.732.456-.734.962v6.667c0 .666.334 1 1 1z",
221
221
  fill: "#14b8ff"
222
- }))), ac = (t) => /* @__PURE__ */ v.createElement("svg", {
222
+ }))), ac = (t) => /* @__PURE__ */ _.createElement("svg", {
223
223
  width: 32,
224
224
  height: 32,
225
225
  viewBox: "0 0 32 32",
226
226
  xmlns: "http://www.w3.org/2000/svg",
227
227
  role: "img",
228
228
  ...t
229
- }, /* @__PURE__ */ v.createElement("g", {
229
+ }, /* @__PURE__ */ _.createElement("g", {
230
230
  fill: "none",
231
231
  fillRule: "evenodd"
232
- }, /* @__PURE__ */ v.createElement("path", {
232
+ }, /* @__PURE__ */ _.createElement("path", {
233
233
  fill: "#FFF",
234
234
  fillRule: "nonzero",
235
235
  d: "M1 2h25v24H1z"
236
- }), /* @__PURE__ */ v.createElement("path", {
236
+ }), /* @__PURE__ */ _.createElement("path", {
237
237
  d: "M27.333 24.667v-22C27.333.889 26.444 0 24.667 0h-22C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v22c0 1.777.889 2.666 2.667 2.666h22c1.777 0 2.666-.889 2.666-2.666z",
238
238
  fill: "#ffb41f"
239
- }), /* @__PURE__ */ v.createElement("path", {
239
+ }), /* @__PURE__ */ _.createElement("path", {
240
240
  d: "M19.113 12.933c-.126-.603-.497-.911-1.112-.925-.616-.014-1 .277-1.154.873l-2.123 4.667c-.051.112-.137.176-.26.192-.121.017-.221-.023-.3-.117l-1.467-1.752c-.34-.462-.796-.67-1.368-.625-.571.044-.99.32-1.254.829L6.76 21.6c-.133.222-.136.446-.008.671.128.226.321.338.58.338H22c.236 0 .42-.097.552-.293.132-.195.154-.402.067-.621l-3.506-8.762zM10.667 8c0 1.778-.89 2.667-2.667 2.667-1.778 0-2.667-.89-2.667-2.667 0-1.778.89-2.667 2.667-2.667 1.778 0 2.667.89 2.667 2.667z",
241
241
  fill: "#FFF"
242
- }), /* @__PURE__ */ v.createElement("path", {
242
+ }), /* @__PURE__ */ _.createElement("path", {
243
243
  d: "M30.667 8c-.369 0-.683.13-.943.39-.26.26-.39.575-.39.943v19.334c0 .444-.223.666-.667.666H9.333c-.889 0-1.333.445-1.333 1.334S8.444 32 9.333 32h20C31.111 32 32 31.111 32 29.333v-20C32 8.444 31.556 8 30.667 8z",
244
244
  fill: "#ffb41f"
245
- }))), xl = (t) => /* @__PURE__ */ v.createElement("svg", {
245
+ }))), xl = (t) => /* @__PURE__ */ _.createElement("svg", {
246
246
  width: 32,
247
247
  height: 32,
248
248
  viewBox: "0 0 32 32",
249
249
  xmlns: "http://www.w3.org/2000/svg",
250
250
  role: "img",
251
251
  ...t
252
- }, /* @__PURE__ */ v.createElement("g", {
252
+ }, /* @__PURE__ */ _.createElement("g", {
253
253
  fill: "none",
254
254
  fillRule: "evenodd"
255
- }, /* @__PURE__ */ v.createElement("rect", {
255
+ }, /* @__PURE__ */ _.createElement("rect", {
256
256
  fill: "#30cf43",
257
257
  width: 32,
258
258
  height: 32,
259
259
  rx: 2.5
260
- }), /* @__PURE__ */ v.createElement("rect", {
260
+ }), /* @__PURE__ */ _.createElement("rect", {
261
261
  fill: "#FFF",
262
262
  x: 3,
263
263
  y: 15,
264
264
  width: 26,
265
265
  height: 2,
266
266
  rx: 1
267
- }), /* @__PURE__ */ v.createElement("rect", {
267
+ }), /* @__PURE__ */ _.createElement("rect", {
268
268
  fill: "#FFF",
269
269
  x: 3,
270
270
  y: 3,
271
271
  width: 26,
272
272
  height: 7,
273
273
  rx: 1.5
274
- }), /* @__PURE__ */ v.createElement("rect", {
274
+ }), /* @__PURE__ */ _.createElement("rect", {
275
275
  fill: "#FFF",
276
276
  x: 3,
277
277
  y: 22,
278
278
  width: 26,
279
279
  height: 7,
280
280
  rx: 1.5
281
- }))), cc = (t) => /* @__PURE__ */ v.createElement("svg", {
281
+ }))), cc = (t) => /* @__PURE__ */ _.createElement("svg", {
282
282
  width: 32,
283
283
  height: 32,
284
284
  fill: "none",
285
285
  xmlns: "http://www.w3.org/2000/svg",
286
286
  role: "img",
287
287
  ...t
288
- }, /* @__PURE__ */ v.createElement("path", {
288
+ }, /* @__PURE__ */ _.createElement("path", {
289
289
  d: "M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667Z",
290
290
  fill: "#FB2D8D"
291
- }), /* @__PURE__ */ v.createElement("path", {
291
+ }), /* @__PURE__ */ _.createElement("path", {
292
292
  d: "M15.998-.01v18.674c-.054.558.175.951.687 1.18.525.2.965.084 1.322-.35l2.689-2.683a.404.404 0 0 1 .294-.122c.116 0 .214.041.295.122l2.69 2.684c.245.274.552.417.92.428.139 0 .273-.026.401-.078.512-.23.741-.623.687-1.18V-.062l-9.985.05v.002Z",
293
293
  fill: "#fff"
294
- })), uc = (t) => /* @__PURE__ */ v.createElement("svg", {
294
+ })), uc = (t) => /* @__PURE__ */ _.createElement("svg", {
295
295
  width: 32,
296
296
  height: 32,
297
297
  viewBox: "0 0 32 32",
298
298
  xmlns: "http://www.w3.org/2000/svg",
299
299
  role: "img",
300
300
  ...t
301
- }, /* @__PURE__ */ v.createElement("g", {
301
+ }, /* @__PURE__ */ _.createElement("g", {
302
302
  fillRule: "nonzero",
303
303
  fill: "none"
304
- }, /* @__PURE__ */ v.createElement("path", {
304
+ }, /* @__PURE__ */ _.createElement("path", {
305
305
  d: "M32 2.667C32 .889 31.111 0 29.333 0H2.667C1.93 0 1.302.26.78.781.261 1.301 0 1.931 0 2.667v26.666C0 31.111.889 32 2.667 32h26.666C31.111 32 32 31.111 32 29.333V2.667z",
306
306
  fill: "#14b8ff"
307
- }), /* @__PURE__ */ v.createElement("path", {
307
+ }), /* @__PURE__ */ _.createElement("path", {
308
308
  d: "M23.312 9.5H8.687c-1.233 0-2 .767-2 2v9c0 1.233.767 2 2 2h14.625c1.234 0 2-.767 2-2v-9c0-1.233-.766-2-2-2zM8.56 11.25h14.882c.1.004.118.022.121.122v9.256c-.004.116-.029.122-.178.122H8.56c-.1-.004-.118-.022-.121-.122v-9.256c.003-.1.022-.118.121-.122z",
309
309
  fill: "#FFF"
310
- }), /* @__PURE__ */ v.createElement("path", {
310
+ }), /* @__PURE__ */ _.createElement("path", {
311
311
  d: "M18.123 13.887c.3-.325.79-.37 1.144-.123l.092.075 2.86 2.643c.355.329.377.882.049 1.237-.301.325-.791.37-1.144.123l-.093-.074-2.86-2.644c-.355-.328-.376-.882-.048-1.237zM12.64 13.839c.356-.328.91-.307 1.237.048.301.326.308.818.033 1.15l-.081.087-2.86 2.644c-.355.328-.908.306-1.237-.049-.3-.325-.307-.818-.033-1.15l.082-.087 2.86-2.643z",
312
312
  fill: "#FFF"
313
- }), /* @__PURE__ */ v.createElement("path", {
313
+ }), /* @__PURE__ */ _.createElement("path", {
314
314
  d: "M23.663 10.04c.398-.274.943-.174 1.217.224.252.364.189.853-.13 1.143l-.093.074-7.135 4.92c-.925.638-1.935.676-2.87.112l-.174-.112-7.135-4.92c-.398-.275-.498-.82-.223-1.217.251-.365.73-.48 1.114-.285l.103.061 7.135 4.92c.346.24.613.263.944.072l.113-.072 7.134-4.92z",
315
315
  fill: "#FFF"
316
- }))), dc = (t) => /* @__PURE__ */ v.createElement("svg", {
316
+ }))), dc = (t) => /* @__PURE__ */ _.createElement("svg", {
317
317
  width: 32,
318
318
  height: 32,
319
319
  fill: "none",
320
320
  xmlns: "http://www.w3.org/2000/svg",
321
321
  role: "img",
322
322
  ...t
323
- }, /* @__PURE__ */ v.createElement("rect", {
323
+ }, /* @__PURE__ */ _.createElement("rect", {
324
324
  width: 32,
325
325
  height: 32,
326
326
  rx: 3,
327
327
  fill: "#FFB41F"
328
- }), /* @__PURE__ */ v.createElement("g", {
328
+ }), /* @__PURE__ */ _.createElement("g", {
329
329
  clipPath: "url(#clip0)",
330
330
  fill: "#fff"
331
- }, /* @__PURE__ */ v.createElement("path", {
331
+ }, /* @__PURE__ */ _.createElement("path", {
332
332
  d: "M14.536 15.568l2.68 8.931a.83.83 0 001.382.349l1.365-1.365 3.522 3.522a.83.83 0 001.174 0l2.348-2.348a.83.83 0 000-1.174l-3.522-3.522L24.85 18.6a.829.829 0 00-.348-1.382l-8.932-2.68a.83.83 0 00-1.034 1.03z"
333
- }), /* @__PURE__ */ v.createElement("path", {
333
+ }), /* @__PURE__ */ _.createElement("path", {
334
334
  fillRule: "evenodd",
335
335
  clipRule: "evenodd",
336
336
  d: "M12.86 4.255A11.25 11.25 0 0126.47 14.447a.75.75 0 01-1.496.106 9.75 9.75 0 10-10.421 10.42.75.75 0 01-.107 1.496 11.25 11.25 0 01-1.588-22.214z"
337
- }), /* @__PURE__ */ v.createElement("path", {
337
+ }), /* @__PURE__ */ _.createElement("path", {
338
338
  fillRule: "evenodd",
339
339
  clipRule: "evenodd",
340
340
  d: "M13.305 8.785a6.75 6.75 0 018.203 3.934.75.75 0 11-1.39.562 5.25 5.25 0 10-6.837 6.835.75.75 0 11-.562 1.39 6.75 6.75 0 01.586-12.72z"
341
- })), /* @__PURE__ */ v.createElement("clipPath", {
341
+ })), /* @__PURE__ */ _.createElement("clipPath", {
342
342
  id: "clip0"
343
- }, /* @__PURE__ */ v.createElement("path", {
343
+ }, /* @__PURE__ */ _.createElement("path", {
344
344
  fill: "#fff",
345
345
  transform: "translate(4 4)",
346
346
  d: "M0 0h24v24H0z"
347
- }))), gc = (t) => /* @__PURE__ */ v.createElement("svg", {
347
+ }))), gc = (t) => /* @__PURE__ */ _.createElement("svg", {
348
348
  width: 32,
349
349
  height: 32,
350
350
  fill: "none",
351
351
  xmlns: "http://www.w3.org/2000/svg",
352
352
  role: "img",
353
353
  ...t
354
- }, /* @__PURE__ */ v.createElement("path", {
354
+ }, /* @__PURE__ */ _.createElement("path", {
355
355
  d: "M30 0H2a2 2 0 00-2 2v28a2 2 0 002 2h28a2 2 0 002-2V2a2 2 0 00-2-2z",
356
356
  fill: "#30CF43"
357
- }), /* @__PURE__ */ v.createElement("path", {
357
+ }), /* @__PURE__ */ _.createElement("path", {
358
358
  fillRule: "evenodd",
359
359
  clipRule: "evenodd",
360
360
  d: "M15.999 9.001c4.007-.06 7.962 2.737 10.366 5.425l.004.004a2.517 2.517 0 010 3.337l-.003.004c-2.349 2.628-6.294 5.49-10.367 5.428-4.073.061-8.018-2.8-10.365-5.429l-.003-.003a2.517 2.517 0 010-3.337l.003-.004C8.036 11.738 11.991 8.94 16 9.001h-.001zm-8.872 6.756a.517.517 0 000 .683c2.208 2.472 5.645 4.814 8.855 4.759h.034c3.209.055 6.647-2.287 8.857-4.759a.518.518 0 000-.683c-2.257-2.522-5.705-4.81-8.857-4.756h-.034c-3.152-.054-6.6 2.234-8.855 4.756z",
361
361
  fill: "#fff"
362
- }), /* @__PURE__ */ v.createElement("path", {
362
+ }), /* @__PURE__ */ _.createElement("path", {
363
363
  fillRule: "evenodd",
364
364
  clipRule: "evenodd",
365
365
  d: "M16 18a2 2 0 100-4 2 2 0 000 4zm0 2a4 4 0 100-8 4 4 0 000 8z",
366
366
  fill: "#fff"
367
- })), fc = (t) => /* @__PURE__ */ v.createElement("svg", {
367
+ })), fc = (t) => /* @__PURE__ */ _.createElement("svg", {
368
368
  width: 32,
369
369
  height: 32,
370
370
  viewBox: "0 0 32 32",
@@ -372,38 +372,38 @@ const cl = (t) => /* @__PURE__ */ v.createElement("svg", {
372
372
  xmlns: "http://www.w3.org/2000/svg",
373
373
  role: "img",
374
374
  ...t
375
- }, /* @__PURE__ */ v.createElement("path", {
375
+ }, /* @__PURE__ */ _.createElement("path", {
376
376
  d: "M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z",
377
377
  fill: "#FB2D8D"
378
- }), /* @__PURE__ */ v.createElement("path", {
378
+ }), /* @__PURE__ */ _.createElement("path", {
379
379
  d: "M13.5361 15.568L16.2161 24.499C16.2573 24.6366 16.3335 24.7612 16.4372 24.8605C16.541 24.9599 16.6688 25.0306 16.808 25.0658C16.9473 25.101 17.0933 25.0994 17.2318 25.0612C17.3703 25.023 17.4965 24.9496 17.5981 24.848L18.9631 23.483L22.4851 27.005C22.5622 27.0821 22.6537 27.1433 22.7544 27.185C22.8551 27.2267 22.9631 27.2482 23.0721 27.2482C23.1811 27.2482 23.2891 27.2267 23.3898 27.185C23.4905 27.1433 23.582 27.0821 23.6591 27.005L26.0071 24.657C26.0842 24.5799 26.1454 24.4884 26.1871 24.3877C26.2288 24.287 26.2503 24.179 26.2503 24.07C26.2503 23.961 26.2288 23.853 26.1871 23.7523C26.1454 23.6516 26.0842 23.5601 26.0071 23.483L22.4851 19.961L23.8501 18.6C23.952 18.4986 24.0257 18.3725 24.0641 18.234C24.1025 18.0955 24.1043 17.9494 24.0692 17.81C24.0341 17.6707 23.9634 17.5428 23.8639 17.439C23.7645 17.3352 23.6398 17.2591 23.5021 17.218L14.5701 14.538C14.4269 14.4952 14.2748 14.4918 14.1298 14.5282C13.9848 14.5647 13.8524 14.6396 13.7464 14.7451C13.6405 14.8506 13.5651 14.9828 13.5281 15.1276C13.491 15.2725 13.4938 15.4246 13.5361 15.568Z",
380
380
  fill: "white"
381
- }), /* @__PURE__ */ v.createElement("path", {
381
+ }), /* @__PURE__ */ _.createElement("path", {
382
382
  d: "M12.2871 23.75C12.7013 23.75 13.0371 23.4142 13.0371 23C13.0371 22.5858 12.7013 22.25 12.2871 22.25V23.75ZM25.75 17.2496C25.75 17.6638 26.0858 17.9996 26.5 17.9996C26.9142 17.9996 27.25 17.6638 27.25 17.2496H25.75ZM8.5 9.75H23.5V8.25H8.5V9.75ZM6.25 20V12H4.75V20H6.25ZM12.2871 22.25H10.75V23.75H12.2871V22.25ZM10.75 22.25H8.5V23.75H10.75V22.25ZM25.75 12V16H27.25V12H25.75ZM25.75 16V17.2496H27.25V16H25.75ZM4.75 20C4.75 22.0711 6.42893 23.75 8.5 23.75V22.25C7.25736 22.25 6.25 21.2426 6.25 20H4.75ZM23.5 9.75C24.7426 9.75 25.75 10.7574 25.75 12H27.25C27.25 9.92893 25.5711 8.25 23.5 8.25V9.75ZM8.5 8.25C6.42893 8.25 4.75 9.92893 4.75 12H6.25C6.25 10.7574 7.25736 9.75 8.5 9.75V8.25Z",
383
383
  fill: "white"
384
- })), hc = (t) => /* @__PURE__ */ v.createElement("svg", {
384
+ })), hc = (t) => /* @__PURE__ */ _.createElement("svg", {
385
385
  width: 28,
386
386
  height: 28,
387
387
  fill: "none",
388
388
  xmlns: "http://www.w3.org/2000/svg",
389
389
  role: "img",
390
390
  ...t
391
- }, /* @__PURE__ */ v.createElement("rect", {
391
+ }, /* @__PURE__ */ _.createElement("rect", {
392
392
  width: 28,
393
393
  height: 28,
394
394
  rx: 3,
395
395
  fill: "#14B8FF"
396
- }), /* @__PURE__ */ v.createElement("g", {
396
+ }), /* @__PURE__ */ _.createElement("g", {
397
397
  fill: "#fff"
398
- }, /* @__PURE__ */ v.createElement("path", {
398
+ }, /* @__PURE__ */ _.createElement("path", {
399
399
  d: "M20 11.75a2.242 2.242 0 0 0-1.993-2.225 9.414 9.414 0 0 0-.257 2.225c-.003.749.083 1.496.257 2.224A2.243 2.243 0 0 0 20 11.75ZM13.75 18.433 9.41 17.05l1.973 4.856a1.746 1.746 0 0 0 3.367-.636c.003-.23-.04-.457-.126-.67l-.874-2.167Z"
400
- }), /* @__PURE__ */ v.createElement("path", {
400
+ }), /* @__PURE__ */ _.createElement("path", {
401
401
  d: "M19.25 5c-.27 0-.537.048-.79.139L7.046 8.778A2.864 2.864 0 0 0 5 11.75a2.857 2.857 0 0 0 2.025 2.965l11.437 3.646c.253.091.52.138.788.139 2.138 0 3.75-2.902 3.75-6.75S21.388 5 19.25 5Zm0 12C18.188 17 17 14.755 17 11.75s1.188-5.25 2.25-5.25 2.25 2.245 2.25 5.25S20.312 17 19.25 17Z"
402
- })), /* @__PURE__ */ v.createElement("clipPath", null, /* @__PURE__ */ v.createElement("path", {
402
+ })), /* @__PURE__ */ _.createElement("clipPath", null, /* @__PURE__ */ _.createElement("path", {
403
403
  fill: "#fff",
404
404
  transform: "translate(5 5)",
405
405
  d: "M0 0h18v18H0z"
406
- }))), pc = (t) => /* @__PURE__ */ v.createElement("svg", {
406
+ }))), pc = (t) => /* @__PURE__ */ _.createElement("svg", {
407
407
  width: 32,
408
408
  height: 32,
409
409
  viewBox: "0 0 32 32",
@@ -411,46 +411,46 @@ const cl = (t) => /* @__PURE__ */ v.createElement("svg", {
411
411
  xmlns: "http://www.w3.org/2000/svg",
412
412
  role: "img",
413
413
  ...t
414
- }, /* @__PURE__ */ v.createElement("path", {
414
+ }, /* @__PURE__ */ _.createElement("path", {
415
415
  d: "M29 0H3C1.34315 0 0 1.34315 0 3V29C0 30.6569 1.34315 32 3 32H29C30.6569 32 32 30.6569 32 29V3C32 1.34315 30.6569 0 29 0Z",
416
416
  fill: "#FFB41F"
417
- }), /* @__PURE__ */ v.createElement("path", {
417
+ }), /* @__PURE__ */ _.createElement("path", {
418
418
  d: "M5.5 7.75H26.5",
419
419
  stroke: "white",
420
420
  strokeWidth: 1.5,
421
421
  strokeLinecap: "round",
422
422
  strokeLinejoin: "round"
423
- }), /* @__PURE__ */ v.createElement("path", {
423
+ }), /* @__PURE__ */ _.createElement("path", {
424
424
  d: "M5.5 24.25H26.5",
425
425
  stroke: "white",
426
426
  strokeWidth: 1.5,
427
427
  strokeLinecap: "round",
428
428
  strokeLinejoin: "round"
429
- }), /* @__PURE__ */ v.createElement("path", {
429
+ }), /* @__PURE__ */ _.createElement("path", {
430
430
  d: "M19 19.75V13.75C19 13.3522 19.158 12.9706 19.4393 12.6893C19.7206 12.408 20.1022 12.25 20.5 12.25H22",
431
431
  stroke: "white",
432
432
  strokeWidth: 1.5,
433
433
  strokeLinecap: "round",
434
434
  strokeLinejoin: "round"
435
- }), /* @__PURE__ */ v.createElement("path", {
435
+ }), /* @__PURE__ */ _.createElement("path", {
436
436
  d: "M19 16.75H21.25",
437
437
  stroke: "white",
438
438
  strokeWidth: 1.5,
439
439
  strokeLinecap: "round",
440
440
  strokeLinejoin: "round"
441
- }), /* @__PURE__ */ v.createElement("path", {
441
+ }), /* @__PURE__ */ _.createElement("path", {
442
442
  d: "M16 19.75V12.25",
443
443
  stroke: "white",
444
444
  strokeWidth: 1.5,
445
445
  strokeLinecap: "round",
446
446
  strokeLinejoin: "round"
447
- }), /* @__PURE__ */ v.createElement("path", {
447
+ }), /* @__PURE__ */ _.createElement("path", {
448
448
  d: "M12.25 16.75H13V18.25C13 18.6478 12.842 19.0294 12.5607 19.3107C12.2794 19.592 11.8978 19.75 11.5 19.75C11.1022 19.75 10.7206 19.592 10.4393 19.3107C10.158 19.0294 10 18.6478 10 18.25V13.75C10 13.3522 10.158 12.9706 10.4393 12.6893C10.7206 12.408 11.1022 12.25 11.5 12.25H13",
449
449
  stroke: "white",
450
450
  strokeWidth: 1.5,
451
451
  strokeLinecap: "round",
452
452
  strokeLinejoin: "round"
453
- })), mc = (t) => /* @__PURE__ */ v.createElement("svg", {
453
+ })), mc = (t) => /* @__PURE__ */ _.createElement("svg", {
454
454
  width: 28,
455
455
  height: 28,
456
456
  viewBox: "0 0 28 28",
@@ -458,127 +458,127 @@ const cl = (t) => /* @__PURE__ */ v.createElement("svg", {
458
458
  xmlns: "http://www.w3.org/2000/svg",
459
459
  role: "img",
460
460
  ...t
461
- }, /* @__PURE__ */ v.createElement("rect", {
461
+ }, /* @__PURE__ */ _.createElement("rect", {
462
462
  width: 28,
463
463
  height: 28,
464
464
  rx: 3,
465
465
  fill: "#ffb41f"
466
- }), /* @__PURE__ */ v.createElement("rect", {
466
+ }), /* @__PURE__ */ _.createElement("rect", {
467
467
  x: 2,
468
468
  y: 8,
469
469
  width: 15,
470
470
  height: 4,
471
471
  rx: 1.5,
472
472
  fill: "white"
473
- }), /* @__PURE__ */ v.createElement("rect", {
473
+ }), /* @__PURE__ */ _.createElement("rect", {
474
474
  x: 2,
475
475
  y: 15,
476
476
  width: 24,
477
477
  height: 2,
478
478
  rx: 1,
479
479
  fill: "white"
480
- }), /* @__PURE__ */ v.createElement("rect", {
480
+ }), /* @__PURE__ */ _.createElement("rect", {
481
481
  x: 2,
482
482
  y: 19,
483
483
  width: 24,
484
484
  height: 2,
485
485
  rx: 1,
486
486
  fill: "white"
487
- }), /* @__PURE__ */ v.createElement("path", {
487
+ }), /* @__PURE__ */ _.createElement("path", {
488
488
  d: "M20 9L22.5 11.5L25 9",
489
489
  stroke: "white",
490
490
  strokeWidth: 2,
491
491
  strokeLinecap: "round",
492
492
  strokeLinejoin: "round"
493
- })), _c = (t) => /* @__PURE__ */ v.createElement("svg", {
493
+ })), _c = (t) => /* @__PURE__ */ _.createElement("svg", {
494
494
  width: 28,
495
495
  height: 28,
496
496
  fill: "none",
497
497
  xmlns: "http://www.w3.org/2000/svg",
498
498
  role: "img",
499
499
  ...t
500
- }, /* @__PURE__ */ v.createElement("rect", {
500
+ }, /* @__PURE__ */ _.createElement("rect", {
501
501
  width: 28,
502
502
  height: 28,
503
503
  rx: 3,
504
504
  fill: "#30CF43"
505
- }), /* @__PURE__ */ v.createElement("path", {
505
+ }), /* @__PURE__ */ _.createElement("path", {
506
506
  d: "M12.07 20.77a.998.998 0 0 1-1.445-.894v-6.752a.999.999 0 0 1 1.444-.894l6.754 3.377a.997.997 0 0 1 0 1.785L12.07 20.77Z",
507
507
  fill: "#fff",
508
508
  stroke: "#fff",
509
509
  strokeLinecap: "round",
510
510
  strokeLinejoin: "round"
511
- }), /* @__PURE__ */ v.createElement("rect", {
511
+ }), /* @__PURE__ */ _.createElement("rect", {
512
512
  x: 3,
513
513
  y: 2,
514
514
  width: 4,
515
515
  height: 4,
516
516
  rx: 1,
517
517
  fill: "#fff"
518
- }), /* @__PURE__ */ v.createElement("rect", {
518
+ }), /* @__PURE__ */ _.createElement("rect", {
519
519
  x: 9,
520
520
  y: 2,
521
521
  width: 4,
522
522
  height: 4,
523
523
  rx: 1,
524
524
  fill: "#fff"
525
- }), /* @__PURE__ */ v.createElement("rect", {
525
+ }), /* @__PURE__ */ _.createElement("rect", {
526
526
  x: 15,
527
527
  y: 2,
528
528
  width: 4,
529
529
  height: 4,
530
530
  rx: 1,
531
531
  fill: "#fff"
532
- }), /* @__PURE__ */ v.createElement("rect", {
532
+ }), /* @__PURE__ */ _.createElement("rect", {
533
533
  x: 21,
534
534
  y: 2,
535
535
  width: 4,
536
536
  height: 4,
537
537
  rx: 1,
538
538
  fill: "#fff"
539
- })), vc = (t) => /* @__PURE__ */ v.createElement("svg", {
539
+ })), vc = (t) => /* @__PURE__ */ _.createElement("svg", {
540
540
  width: 28,
541
541
  height: 28,
542
542
  fill: "none",
543
543
  xmlns: "http://www.w3.org/2000/svg",
544
544
  role: "img",
545
545
  ...t
546
- }, /* @__PURE__ */ v.createElement("rect", {
546
+ }, /* @__PURE__ */ _.createElement("rect", {
547
547
  width: 28,
548
548
  height: 28,
549
549
  rx: 3,
550
550
  fill: "#FB2D8D"
551
- }), /* @__PURE__ */ v.createElement("path", {
551
+ }), /* @__PURE__ */ _.createElement("path", {
552
552
  d: "M9 21c1.105 0 2-.933 2-2.084s-.895-2.084-2-2.084-2 .933-2 2.084C7 20.066 7.895 21 9 21ZM19 18.916c1.105 0 2-.933 2-2.084s-.895-2.084-2-2.084-2 .933-2 2.084c0 1.15.895 2.084 2 2.084Z",
553
553
  fill: "#fff",
554
554
  stroke: "#fff",
555
555
  strokeWidth: 1.4,
556
556
  strokeLinecap: "round",
557
557
  strokeLinejoin: "round"
558
- }), /* @__PURE__ */ v.createElement("path", {
558
+ }), /* @__PURE__ */ _.createElement("path", {
559
559
  d: "M21 16.834v-7.75c0-.317-.07-.63-.203-.914a2.07 2.07 0 0 0-.566-.729 1.965 1.965 0 0 0-.816-.396 1.922 1.922 0 0 0-.9.017l-6 1.042a1.995 1.995 0 0 0-1.091.74A2.14 2.14 0 0 0 11 10.124v8.792",
560
560
  stroke: "#fff",
561
561
  strokeWidth: 1.4,
562
562
  strokeLinecap: "round",
563
563
  strokeLinejoin: "round"
564
- })), Cc = (t) => /* @__PURE__ */ v.createElement("svg", {
564
+ })), Cc = (t) => /* @__PURE__ */ _.createElement("svg", {
565
565
  width: 28,
566
566
  height: 28,
567
567
  fill: "none",
568
568
  xmlns: "http://www.w3.org/2000/svg",
569
569
  role: "img",
570
570
  ...t
571
- }, /* @__PURE__ */ v.createElement("rect", {
571
+ }, /* @__PURE__ */ _.createElement("rect", {
572
572
  width: 28,
573
573
  height: 28,
574
574
  rx: 3,
575
575
  fill: "#14B8FF"
576
- }), /* @__PURE__ */ v.createElement("path", {
576
+ }), /* @__PURE__ */ _.createElement("path", {
577
577
  fillRule: "evenodd",
578
578
  clipRule: "evenodd",
579
579
  d: "M17.229 6.653a2.625 2.625 0 0 0-2.882.605l-.01.01-6.761 6.761a4.312 4.312 0 1 0 6.098 6.099l8.233-8.234a.75.75 0 1 1 1.06 1.06l-8.232 8.234a5.812 5.812 0 1 1-8.22-8.22l6.758-6.757a4.124 4.124 0 1 1 5.833 5.833l-6.767 6.77a2.437 2.437 0 0 1-3.447-3.446l.01-.01 6.761-6.764a.75.75 0 1 1 1.061 1.06l-6.757 6.76a.937.937 0 0 0 1.326 1.325l6.765-6.769a2.626 2.626 0 0 0-.83-4.317Z",
580
580
  fill: "#fff"
581
- })), yc = (t) => /* @__PURE__ */ v.createElement("svg", {
581
+ })), yc = (t) => /* @__PURE__ */ _.createElement("svg", {
582
582
  width: 28,
583
583
  height: 28,
584
584
  viewBox: "0 0 28 28",
@@ -586,24 +586,24 @@ const cl = (t) => /* @__PURE__ */ v.createElement("svg", {
586
586
  xmlns: "http://www.w3.org/2000/svg",
587
587
  role: "img",
588
588
  ...t
589
- }, /* @__PURE__ */ v.createElement("rect", {
589
+ }, /* @__PURE__ */ _.createElement("rect", {
590
590
  width: 28,
591
591
  height: 28,
592
592
  rx: 3,
593
593
  fill: "#3BCD4C"
594
- }), /* @__PURE__ */ v.createElement("path", {
594
+ }), /* @__PURE__ */ _.createElement("path", {
595
595
  d: "M17.0141 11.3454C17.0775 11.3165 17.1182 11.2532 17.1182 11.1835C17.1182 11.1137 17.0775 11.0504 17.0141 11.0215L10.0678 7.85488C9.9758 7.814 9.87078 7.814 9.77877 7.85488L7.06135 9.03382C6.99572 9.06178 6.95312 9.12623 6.95312 9.19757C6.95312 9.2689 6.99572 9.33335 7.06135 9.36131L14.3871 12.414C14.4784 12.4523 14.5816 12.4508 14.6718 12.4098L17.0141 11.3454Z",
596
596
  fill: "white"
597
- }), /* @__PURE__ */ v.createElement("path", {
597
+ }), /* @__PURE__ */ _.createElement("path", {
598
598
  d: "M21.3502 9.37202C21.4141 9.34329 21.4552 9.27975 21.4552 9.2097C21.4552 9.13965 21.4141 9.07612 21.3502 9.04738L14.4716 6.05943C14.29 5.98019 14.0837 5.98019 13.9021 6.05943L11.6097 7.05613C11.5454 7.08468 11.5039 7.14844 11.5039 7.2188C11.5039 7.28917 11.5454 7.35293 11.6097 7.38148L18.5153 10.5296C18.609 10.5722 18.7165 10.5722 18.8101 10.5296L21.3502 9.37202Z",
599
599
  fill: "white"
600
- }), /* @__PURE__ */ v.createElement("path", {
600
+ }), /* @__PURE__ */ _.createElement("path", {
601
601
  d: "M6.24633 10.1777C6.19138 10.1549 6.12865 10.161 6.07916 10.194C6.02966 10.2271 5.99996 10.2827 6 10.3422V18.2773C5.99998 18.5646 6.17266 18.8238 6.43783 18.9344L13.76 21.9864C13.8149 22.0093 13.8777 22.0031 13.9271 21.9701C13.9766 21.937 14.0063 21.8815 14.0063 21.8219V13.5309C14.0062 13.459 13.963 13.3942 13.8967 13.3664L6.24633 10.1777Z",
602
602
  fill: "white"
603
- }), /* @__PURE__ */ v.createElement("path", {
603
+ }), /* @__PURE__ */ _.createElement("path", {
604
604
  d: "M15.0781 21.7899C15.0784 21.8502 15.1092 21.9063 15.1599 21.939C15.2105 21.9718 15.2743 21.9767 15.3294 21.9522L21.9582 18.9394C22.2122 18.8238 22.3753 18.5705 22.3754 18.2915V10.3578C22.3754 10.2973 22.3447 10.241 22.2939 10.2082C22.2431 10.1753 22.1791 10.1706 22.124 10.1955L15.1849 13.3507C15.1211 13.3792 15.0801 13.4425 15.0803 13.5124L15.0781 21.7899Z",
605
605
  fill: "white"
606
- })), xc = (t) => /* @__PURE__ */ v.createElement("svg", {
606
+ })), xc = (t) => /* @__PURE__ */ _.createElement("svg", {
607
607
  width: 32,
608
608
  height: 32,
609
609
  viewBox: "0 0 32 32",
@@ -611,98 +611,98 @@ const cl = (t) => /* @__PURE__ */ v.createElement("svg", {
611
611
  xmlns: "http://www.w3.org/2000/svg",
612
612
  role: "img",
613
613
  ...t
614
- }, /* @__PURE__ */ v.createElement("path", {
614
+ }, /* @__PURE__ */ _.createElement("path", {
615
615
  d: "M29.5 0H2.5C1.11929 0 0 1.11929 0 2.5V29.5C0 30.8807 1.11929 32 2.5 32H29.5C30.8807 32 32 30.8807 32 29.5V2.5C32 1.11929 30.8807 0 29.5 0Z",
616
616
  fill: "#FB2D8D"
617
- }), /* @__PURE__ */ v.createElement("path", {
617
+ }), /* @__PURE__ */ _.createElement("path", {
618
618
  fillRule: "evenodd",
619
619
  clipRule: "evenodd",
620
620
  d: "M6 10C6 8.89543 6.89543 8 8 8H24C25.1046 8 26 8.89543 26 10V15C26 16.1046 25.1046 17 24 17H8C6.89543 17 6 16.1046 6 15V10ZM6 24C6 23.4477 6.44772 23 7 23H25C25.5523 23 26 23.4477 26 24C26 24.5523 25.5523 25 25 25H7C6.44772 25 6 24.5523 6 24ZM7 19C6.44772 19 6 19.4477 6 20C6 20.5523 6.44772 21 7 21H25C25.5523 21 26 20.5523 26 20C26 19.4477 25.5523 19 25 19H7Z",
621
621
  fill: "white"
622
- })), Ec = (t) => /* @__PURE__ */ v.createElement("svg", {
622
+ })), Ec = (t) => /* @__PURE__ */ _.createElement("svg", {
623
623
  width: 32,
624
624
  height: 32,
625
625
  viewBox: "0 0 32 32",
626
626
  xmlns: "http://www.w3.org/2000/svg",
627
627
  role: "img",
628
628
  ...t
629
- }, /* @__PURE__ */ v.createElement("g", {
629
+ }, /* @__PURE__ */ _.createElement("g", {
630
630
  fill: "none",
631
631
  fillRule: "evenodd"
632
- }, /* @__PURE__ */ v.createElement("path", {
632
+ }, /* @__PURE__ */ _.createElement("path", {
633
633
  d: "M31.252 8.488c-.366-1.37-1.448-2.452-2.824-2.823C25.941 5 15.958 5 15.958 5s-9.977 0-12.47.665c-1.37.366-2.452 1.447-2.823 2.823C0 10.976 0 16.17 0 16.17s0 5.194.665 7.682c.366 1.372 1.447 2.453 2.823 2.823 2.493.666 12.47.666 12.47.666s9.983 0 12.47-.666c1.372-.365 2.453-1.447 2.824-2.823.665-2.488.665-7.682.665-7.682s0-5.194-.665-7.682",
634
634
  fill: "#D9252A"
635
- }), /* @__PURE__ */ v.createElement("path", {
635
+ }), /* @__PURE__ */ _.createElement("path", {
636
636
  fill: "#FFFFFE",
637
637
  d: "M12.77 20.958l8.291-4.788-8.291-4.788v9.576"
638
- }))), Nc = (t) => /* @__PURE__ */ v.createElement("svg", {
638
+ }))), Nc = (t) => /* @__PURE__ */ _.createElement("svg", {
639
639
  width: 32,
640
640
  height: 32,
641
641
  viewBox: "0 0 32 32",
642
642
  xmlns: "http://www.w3.org/2000/svg",
643
643
  role: "img",
644
644
  ...t
645
- }, /* @__PURE__ */ v.createElement("path", {
645
+ }, /* @__PURE__ */ _.createElement("path", {
646
646
  d: "M10.063 29.002c12.076 0 18.68-10.005 18.68-18.68 0-.285 0-.567-.019-.85C30.01 8.545 31.12 7.393 32 6.076c-1.198.53-2.47.879-3.77 1.032 1.37-.82 2.395-2.11 2.886-3.63-1.29.764-2.7 1.303-4.17 1.593-2.035-2.164-5.268-2.694-7.887-1.292-2.62 1.401-3.973 4.386-3.3 7.28-5.28-.265-10.198-2.758-13.532-6.86-1.742 3-.852 6.838 2.033 8.764-1.045-.03-2.067-.313-2.98-.822v.084c0 3.125 2.204 5.817 5.267 6.435-.966.264-1.98.303-2.964.113.86 2.675 3.325 4.507 6.133 4.56-2.324 1.827-5.196 2.818-8.153 2.815-.522 0-1.044-.032-1.563-.094 3.002 1.927 6.496 2.949 10.063 2.944",
647
647
  fill: "#1DA1F2",
648
648
  fillRule: "nonzero"
649
- })), Tc = (t) => /* @__PURE__ */ v.createElement("svg", {
649
+ })), Tc = (t) => /* @__PURE__ */ _.createElement("svg", {
650
650
  xmlns: "http://www.w3.org/2000/svg",
651
651
  viewBox: "0 0 122.43 122.41",
652
652
  role: "img",
653
653
  ...t
654
- }, /* @__PURE__ */ v.createElement("path", {
654
+ }, /* @__PURE__ */ _.createElement("path", {
655
655
  d: "M83.86 54.15v34.13H38.57V54.15H0v68.26h122.43V54.15H83.86zM38.57 0h45.3v34.13h-45.3z"
656
- })), Sc = (t) => /* @__PURE__ */ v.createElement("svg", {
656
+ })), Sc = (t) => /* @__PURE__ */ _.createElement("svg", {
657
657
  width: 32,
658
658
  height: 32,
659
659
  viewBox: "0 0 32 32",
660
660
  xmlns: "http://www.w3.org/2000/svg",
661
661
  role: "img",
662
662
  ...t
663
- }, /* @__PURE__ */ v.createElement("g", {
663
+ }, /* @__PURE__ */ _.createElement("g", {
664
664
  fill: "none",
665
665
  fillRule: "evenodd"
666
- }, /* @__PURE__ */ v.createElement("path", {
666
+ }, /* @__PURE__ */ _.createElement("path", {
667
667
  d: "M31.886 25.508c0 3.522-2.855 6.377-6.377 6.377H6.377C2.857 31.885 0 29.03 0 25.508V6.378C0 2.854 2.857 0 6.377 0H25.51c3.522 0 6.377 2.855 6.377 6.377v19.131",
668
668
  fill: "#0FB7FF"
669
- }), /* @__PURE__ */ v.createElement("path", {
669
+ }), /* @__PURE__ */ _.createElement("path", {
670
670
  d: "M25.998 10.58c.175-.982.17-1.992-.436-2.755-.846-1.07-2.646-1.11-3.88-.921-1.003.153-4.397 1.651-5.552 5.236 2.046-.156 3.118.148 2.921 2.4-.082.943-.558 1.976-1.09 2.966-.614 1.141-1.765 3.382-3.274 1.767-1.36-1.454-1.257-4.235-1.568-6.086-.173-1.04-.356-2.334-.697-3.402-.293-.92-.966-2.027-1.788-2.267-.884-.26-1.976.146-2.618.523-2.042 1.2-3.598 2.908-5.365 4.317v.132c.35.335.444.884.96.959 1.216.179 2.375-1.134 3.184.232.492.834.645 1.749.96 2.648.42 1.198.746 2.503 1.09 3.88.583 2.334 1.299 5.82 3.316 6.675 1.029.437 2.575-.148 3.358-.612 2.122-1.255 3.775-3.075 5.19-4.927 3.234-4.382 5.019-9.347 5.289-10.765",
671
671
  fill: "#FFFFFE"
672
- }))), wc = (t) => /* @__PURE__ */ v.createElement("svg", {
672
+ }))), wc = (t) => /* @__PURE__ */ _.createElement("svg", {
673
673
  width: 32,
674
674
  height: 32,
675
675
  viewBox: "0 0 32 32",
676
676
  xmlns: "http://www.w3.org/2000/svg",
677
677
  role: "img",
678
678
  ...t
679
- }, /* @__PURE__ */ v.createElement("path", {
679
+ }, /* @__PURE__ */ _.createElement("path", {
680
680
  d: "M31.976 10.886c-.007-.039-.014-.078-.024-.116l-.022-.066c-.01-.034-.022-.068-.035-.1l-.03-.067c-.015-.031-.03-.062-.048-.092-.012-.022-.026-.042-.039-.063-.018-.029-.037-.057-.058-.084-.015-.02-.03-.04-.047-.059-.022-.026-.045-.05-.068-.075l-.055-.053c-.025-.023-.051-.045-.078-.065-.021-.016-.041-.033-.063-.047-.008-.006-.014-.013-.023-.018L16.762.231c-.461-.308-1.063-.308-1.525 0L.612 9.981l-.022.017c-.022.015-.042.031-.063.047-.027.021-.053.043-.078.065-.019.017-.037.035-.055.054-.024.024-.046.048-.068.074-.017.02-.032.039-.047.06-.02.028-.04.055-.058.084l-.04.064c-.017.03-.032.06-.046.09-.01.022-.022.045-.03.067-.014.033-.026.067-.036.1l-.022.065c-.01.038-.017.076-.024.115-.004.02-.008.04-.01.06-.009.06-.013.119-.013.18v9.751c0 .06.004.121.013.18.003.022.009.039.013.06.007.038.013.077.026.116l.021.067c.011.034.022.069.035.1.009.022.021.043.03.065.014.03.03.06.047.092.012.021.026.043.04.062.018.03.038.056.06.082.014.022.03.04.047.06.022.026.043.051.069.074.017.018.034.04.056.052l.077.066c.021.017.043.03.06.046.009.005.014.013.022.017l14.621 9.755c.231.155.496.233.763.232.267-.002.532-.078.763-.232l14.625-9.75.022-.016c.022-.015.042-.031.063-.047.027-.021.053-.043.078-.066l.055-.053c.024-.024.047-.049.068-.075.017-.02.032-.039.047-.06.02-.026.04-.054.058-.083.014-.02.027-.042.04-.063.017-.03.032-.06.047-.092l.03-.066c.014-.033.025-.067.035-.1.008-.023.016-.045.022-.067.01-.038.017-.077.024-.116.004-.02.009-.039.01-.06.009-.059.013-.118.013-.179v-9.75c0-.06-.005-.12-.012-.18-.004-.02-.01-.038-.014-.06h.002zM16 19.253L11.137 16 16 12.747 20.863 16 16 19.253zm-1.375-8.895l-5.962 3.988-4.812-3.22 10.774-7.182v6.414zM6.19 16l-3.44 2.3V13.7l3.44 2.3zm2.473 1.655l5.962 3.987v6.414L3.85 20.873l4.812-3.219v.001zm8.712 3.986l5.961-3.987 4.813 3.22-10.774 7.181v-6.414zm8.434-5.64l3.44-2.302v4.602L25.81 16zm-2.473-1.655l-5.961-3.987V3.944l10.774 7.183-4.813 3.219z",
681
681
  fill: "#000",
682
682
  fillRule: "nonzero"
683
- })), Rc = (t) => /* @__PURE__ */ v.createElement("svg", {
683
+ })), Rc = (t) => /* @__PURE__ */ _.createElement("svg", {
684
684
  width: 32,
685
685
  height: 32,
686
686
  viewBox: "0 0 32 32",
687
687
  xmlns: "http://www.w3.org/2000/svg",
688
688
  role: "img",
689
689
  ...t
690
- }, /* @__PURE__ */ v.createElement("path", {
690
+ }, /* @__PURE__ */ _.createElement("path", {
691
691
  d: "M16 .053C7.19.053.047 7.194.047 16.003c0 8.81 7.142 15.951 15.951 15.951 8.81 0 15.951-7.14 15.951-15.95C31.95 7.194 24.81.054 16 .054V.053zm7.314 23.005c-.285.469-.899.618-1.367.33-3.745-2.288-8.46-2.806-14.013-1.537-.535.122-1.068-.213-1.19-.749-.122-.535.212-1.068.748-1.19 6.076-1.389 11.288-.79 15.493 1.779.468.287.617.899.33 1.367zm1.953-4.343c-.36.585-1.126.77-1.71.41-4.288-2.636-10.824-3.4-15.896-1.86-.657.199-1.352-.172-1.552-.828-.198-.658.173-1.351.83-1.551 5.793-1.758 12.994-.907 17.918 2.12.585.36.77 1.125.41 1.709zm.167-4.523c-5.14-3.054-13.623-3.334-18.531-1.845-.788.24-1.622-.205-1.86-.994-.24-.788.205-1.621.994-1.86 5.634-1.711 15.001-1.38 20.92 2.133.71.42.943 1.336.522 2.044-.42.71-1.337.943-2.044.522z",
692
692
  fill: "#1ED760",
693
693
  fillRule: "nonzero"
694
- })), Oc = (t) => /* @__PURE__ */ v.createElement("svg", {
694
+ })), Oc = (t) => /* @__PURE__ */ _.createElement("svg", {
695
695
  width: 32,
696
696
  height: 32,
697
697
  viewBox: "0 0 32 32",
698
698
  xmlns: "http://www.w3.org/2000/svg",
699
699
  role: "img",
700
700
  ...t
701
- }, /* @__PURE__ */ v.createElement("path", {
701
+ }, /* @__PURE__ */ _.createElement("path", {
702
702
  d: "M15.924 9.922c-.236 0-.43.194-.434.433l-.177 8.866.178 3.218c.003.235.197.43.433.43s.43-.195.433-.433v.004l.193-3.219-.193-8.867c-.003-.238-.197-.432-.433-.432zm12.14 5.102c-.54 0-1.054.11-1.522.306C26.228 11.783 23.254 9 19.625 9c-.887 0-1.753.175-2.517.47-.298.115-.377.234-.38.463v12.492c.004.242.19.442.426.466l10.91.006c2.174 0 3.936-1.762 3.936-3.936s-1.762-3.937-3.936-3.937zM10.886 22.56v-.002l.226-3.338-.226-7.276c-.006-.181-.148-.323-.325-.323-.176 0-.319.142-.324.323l-.202 7.276.202 3.34c.005.178.148.32.324.32.177 0 .318-.142.325-.321v.001zm-2.952.32c.144 0 .262-.117.27-.267l.264-3.394-.265-6.497c-.007-.15-.125-.267-.27-.267-.144 0-.263.117-.269.267l-.234 6.497.234 3.395c.006.149.125.266.27.266zm5.297-10.868c-.209 0-.375.166-.38.377l-.169 6.832.17 3.287c.004.21.17.375.379.375.207 0 .373-.166.378-.377v.002l.19-3.287-.19-6.832c-.005-.211-.17-.377-.378-.377zM2.802 22.657c.083 0 .15-.066.16-.156l.34-3.286-.34-3.41c-.01-.091-.077-.157-.16-.157-.084 0-.152.066-.16.157l-.299 3.41.299 3.285c.008.091.076.157.16.157zm2.546.188c.113 0 .206-.092.214-.212l.302-3.418-.302-3.25c-.008-.12-.1-.211-.214-.211-.116 0-.208.09-.216.212l-.266 3.25.266 3.417c.008.12.1.212.216.212zm6.543.03c.191 0 .346-.154.351-.35v.003l.209-3.309-.209-7.09c-.005-.196-.16-.35-.351-.35-.193 0-.348.154-.352.35l-.185 7.09.185 3.308c.004.194.159.348.352.348zm2.69.013c.22 0 .401-.181.405-.404v.002-.002l.172-3.263-.172-8.13c-.004-.223-.186-.405-.406-.405-.22 0-.403.182-.406.405l-.153 8.127.153 3.268c.003.22.186.402.406.402zm-5.338-.016c.16 0 .29-.129.296-.294l.246-3.36-.246-7.039c-.006-.165-.137-.294-.296-.294-.162 0-.292.13-.297.295l-.218 7.038.218 3.361c.005.164.135.293.297.293zM4.07 15.527c-.1 0-.18.08-.188.185L3.6 19.215l.282 3.39c.008.104.089.184.188.184.098 0 .178-.08.187-.184l.32-3.39-.32-3.504c-.009-.104-.09-.184-.187-.184zm2.565-1.837c-.129 0-.235.105-.242.24l-.25 5.287.25 3.417c.007.133.113.239.242.239s.235-.106.243-.24v.001l.283-3.417-.283-5.288c-.008-.134-.114-.24-.243-.24zm-4.957 2.65c-.01-.076-.066-.129-.133-.129-.068 0-.124.055-.133.13l-.315 2.873.315 2.81c.01.076.065.13.133.13.067 0 .122-.053.133-.129l.358-2.81-.358-2.874zm-1.316.972c-.067 0-.12.052-.128.125L0 19.214l.234 1.747c.009.074.061.125.128.125.065 0 .117-.05.128-.124l.277-1.748-.277-1.778c-.01-.073-.063-.124-.128-.124z",
703
703
  fill: "#EE7C25",
704
704
  fillRule: "evenodd"
705
- })), $c = (t) => /* @__PURE__ */ v.createElement("svg", {
705
+ })), $c = (t) => /* @__PURE__ */ _.createElement("svg", {
706
706
  width: 32,
707
707
  height: 32,
708
708
  viewBox: "0 0 32 32",
@@ -710,45 +710,45 @@ const cl = (t) => /* @__PURE__ */ v.createElement("svg", {
710
710
  xmlns: "http://www.w3.org/2000/svg",
711
711
  role: "img",
712
712
  ...t
713
- }, /* @__PURE__ */ v.createElement("path", {
713
+ }, /* @__PURE__ */ _.createElement("path", {
714
714
  d: "M32 16C32 24.8361 24.8361 32 16 32C7.16394 32 0 24.8361 0 16C0 7.16394 7.16394 0 16 0C24.8379 0 32 7.16394 32 16Z",
715
715
  fill: "#2081E2"
716
- }), /* @__PURE__ */ v.createElement("path", {
716
+ }), /* @__PURE__ */ _.createElement("path", {
717
717
  d: "M7.89371 16.5376L7.96274 16.4291L12.125 9.91784C12.1858 9.82251 12.3288 9.83236 12.3748 9.93592C13.0702 11.4943 13.6702 13.4324 13.3891 14.639C13.2691 15.1354 12.9403 15.8078 12.5704 16.4291C12.5228 16.5196 12.4702 16.6083 12.4143 16.6938C12.388 16.7333 12.3436 16.7563 12.2959 16.7563H8.01534C7.90027 16.7563 7.83288 16.6313 7.89371 16.5376Z",
718
718
  fill: "white"
719
- }), /* @__PURE__ */ v.createElement("path", {
719
+ }), /* @__PURE__ */ _.createElement("path", {
720
720
  d: "M26.4461 17.7475V18.7782C26.4461 18.8374 26.4099 18.89 26.3573 18.913C26.0351 19.0511 24.9321 19.5574 24.4734 20.1952C23.303 21.8242 22.4088 24.1536 20.4098 24.1536H12.0706C9.11495 24.1536 6.71985 21.7503 6.71985 18.7848V18.6894C6.71985 18.6105 6.78394 18.5464 6.86286 18.5464H11.5117C11.6037 18.5464 11.6711 18.6319 11.6629 18.7223C11.63 19.0248 11.6859 19.3338 11.8289 19.6149C12.1051 20.1755 12.6772 20.5256 13.2952 20.5256H15.5966V18.7289H13.3215C13.2048 18.7289 13.1358 18.5941 13.2032 18.4987C13.2278 18.4609 13.2558 18.4215 13.2854 18.3771C13.5007 18.0714 13.8081 17.5963 14.1139 17.0555C14.3227 16.6905 14.5248 16.3009 14.6876 15.9097C14.7205 15.839 14.7468 15.7666 14.7731 15.696C14.8174 15.571 14.8635 15.4543 14.8964 15.3376C14.9293 15.239 14.9555 15.1354 14.9818 15.0384C15.0591 14.7064 15.092 14.3546 15.092 13.9897C15.092 13.8467 15.0854 13.697 15.0723 13.554C15.0657 13.3979 15.046 13.2417 15.0262 13.0855C15.0131 12.9474 14.9884 12.811 14.9621 12.668C14.9293 12.4592 14.8832 12.2521 14.8306 12.0433L14.8125 11.9644C14.7731 11.8214 14.7402 11.685 14.6942 11.542C14.5643 11.0932 14.4147 10.6559 14.2569 10.2466C14.1994 10.0839 14.1336 9.92771 14.0678 9.77155C13.9709 9.53647 13.8722 9.32278 13.7818 9.12057C13.7358 9.02851 13.6964 8.94467 13.6569 8.85919C13.6125 8.7622 13.5665 8.66521 13.5205 8.57318C13.4876 8.50249 13.4498 8.43673 13.4235 8.37097L13.1424 7.85151C13.1029 7.78083 13.1687 7.69699 13.2459 7.71836L15.0049 8.19507H15.0098C15.0131 8.19507 15.0147 8.19673 15.0164 8.19673L15.2481 8.26083L15.503 8.33318L15.5966 8.35945V7.31398C15.5966 6.80931 16.001 6.39999 16.5008 6.39999C16.7506 6.39999 16.9775 6.50191 17.1402 6.66793C17.303 6.83398 17.4049 7.06083 17.4049 7.31398V8.86579L17.5923 8.91836C17.6071 8.92332 17.6219 8.92988 17.635 8.93974C17.6811 8.97427 17.7468 9.02521 17.8306 9.08771C17.8964 9.14028 17.9671 9.20441 18.0526 9.27017C18.2219 9.40659 18.4241 9.58249 18.646 9.7847C18.7052 9.83564 18.7627 9.88825 18.8153 9.94086C19.1014 10.2072 19.4219 10.5195 19.7277 10.8647C19.8131 10.9617 19.897 11.0603 19.9824 11.1639C20.0679 11.2691 20.1583 11.3726 20.2372 11.4762C20.3408 11.6143 20.4526 11.7573 20.5496 11.9069C20.5956 11.9776 20.6482 12.0499 20.6926 12.1206C20.8175 12.3096 20.9277 12.5053 21.0329 12.7009C21.0773 12.7913 21.1233 12.8899 21.1627 12.9869C21.2794 13.2483 21.3715 13.5146 21.4307 13.7809C21.4487 13.8384 21.4619 13.9009 21.4685 13.9568V13.9699C21.4882 14.0488 21.4948 14.1327 21.5014 14.2181C21.5277 14.491 21.5145 14.7639 21.4553 15.0384C21.4307 15.1552 21.3978 15.2653 21.3583 15.382C21.3189 15.4938 21.2794 15.6105 21.2285 15.7206C21.1299 15.9491 21.0131 16.1776 20.875 16.3913C20.8307 16.4702 20.7781 16.5541 20.7254 16.633C20.6679 16.7168 20.6087 16.7957 20.5561 16.873C20.4838 16.9716 20.4066 17.0752 20.3277 17.1672C20.257 17.2642 20.1846 17.3612 20.1057 17.4467C19.9956 17.5765 19.8904 17.6998 19.7802 17.8182C19.7145 17.8954 19.6438 17.9744 19.5715 18.045C19.5008 18.1239 19.4285 18.1946 19.3627 18.2604C19.2526 18.3705 19.1605 18.456 19.0832 18.5267L18.9024 18.6927C18.8761 18.7157 18.8416 18.7289 18.8054 18.7289H17.4049V20.5256H19.1671C19.5616 20.5256 19.9364 20.3859 20.2389 20.1294C20.3424 20.039 20.7945 19.6478 21.3287 19.0577C21.3468 19.0379 21.3699 19.0231 21.3962 19.0166L26.2636 17.6094C26.354 17.5831 26.4461 17.6522 26.4461 17.7475Z",
721
721
  fill: "white"
722
- })), Ac = (t) => /* @__PURE__ */ v.createElement("svg", {
722
+ })), Ac = (t) => /* @__PURE__ */ _.createElement("svg", {
723
723
  width: 32,
724
724
  height: 32,
725
725
  viewBox: "0 0 32 32",
726
726
  xmlns: "http://www.w3.org/2000/svg",
727
727
  role: "img",
728
728
  ...t
729
- }, /* @__PURE__ */ v.createElement("g", {
729
+ }, /* @__PURE__ */ _.createElement("g", {
730
730
  fill: "none",
731
731
  fillRule: "evenodd"
732
- }, /* @__PURE__ */ v.createElement("rect", {
732
+ }, /* @__PURE__ */ _.createElement("rect", {
733
733
  fill: "#fb2d8d",
734
734
  width: 32,
735
735
  height: 32,
736
736
  rx: 2.5
737
- }), /* @__PURE__ */ v.createElement("path", {
737
+ }), /* @__PURE__ */ _.createElement("path", {
738
738
  d: "M12 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zM18 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2zM24 16c0 1.333-.667 2-2 2s-2-.667-2-2 .667-2 2-2 2 .667 2 2z",
739
739
  fill: "#FFF"
740
- }))), Mc = (t) => /* @__PURE__ */ v.createElement("svg", {
740
+ }))), Mc = (t) => /* @__PURE__ */ _.createElement("svg", {
741
741
  width: 24,
742
742
  height: 24,
743
743
  fill: "none",
744
744
  xmlns: "http://www.w3.org/2000/svg",
745
745
  role: "img",
746
746
  ...t
747
- }, /* @__PURE__ */ v.createElement("path", {
747
+ }, /* @__PURE__ */ _.createElement("path", {
748
748
  "data-selector": "bg",
749
749
  d: "M2 24h13l9-9V2a2 2 0 00-2-2H2a2 2 0 00-2 2v20a2 2 0 002 2z",
750
750
  fill: "#F0F6F9"
751
- }), /* @__PURE__ */ v.createElement("rect", {
751
+ }), /* @__PURE__ */ _.createElement("rect", {
752
752
  "data-selector": "block",
753
753
  x: 5.25,
754
754
  y: 4.5,
@@ -756,11 +756,11 @@ const cl = (t) => /* @__PURE__ */ v.createElement("svg", {
756
756
  height: 4.5,
757
757
  rx: 1,
758
758
  fill: "#738A94"
759
- }), /* @__PURE__ */ v.createElement("path", {
759
+ }), /* @__PURE__ */ _.createElement("path", {
760
760
  "data-selector": "fold",
761
761
  d: "M15 16v8l9-9h-8a1 1 0 00-1 1z",
762
762
  fill: "#DAE8F1"
763
- }), /* @__PURE__ */ v.createElement("rect", {
763
+ }), /* @__PURE__ */ _.createElement("rect", {
764
764
  "data-selector": "line",
765
765
  x: 5.25,
766
766
  y: 11.25,
@@ -768,44 +768,44 @@ const cl = (t) => /* @__PURE__ */ v.createElement("svg", {
768
768
  height: 1.5,
769
769
  rx: 0.75,
770
770
  fill: "#738A94"
771
- })), Jr = (t) => /* @__PURE__ */ v.createElement("svg", {
771
+ })), Jr = (t) => /* @__PURE__ */ _.createElement("svg", {
772
772
  xmlns: "http://www.w3.org/2000/svg",
773
773
  viewBox: "0 0 48 48",
774
774
  role: "img",
775
775
  ...t
776
- }, /* @__PURE__ */ v.createElement("g", {
776
+ }, /* @__PURE__ */ _.createElement("g", {
777
777
  strokeLinecap: "round",
778
778
  strokeWidth: 2,
779
779
  fill: "none",
780
780
  stroke: "currentColor",
781
781
  strokeLinejoin: "round",
782
782
  className: "nc-icon-wrapper"
783
- }, /* @__PURE__ */ v.createElement("circle", {
783
+ }, /* @__PURE__ */ _.createElement("circle", {
784
784
  cx: 18,
785
785
  cy: 16,
786
786
  r: 4
787
- }), /* @__PURE__ */ v.createElement("path", {
787
+ }), /* @__PURE__ */ _.createElement("path", {
788
788
  "data-cap": "butt",
789
789
  d: "M20.849 33.164 33 20l13 13M2 38l12-11 10 9"
790
- }), /* @__PURE__ */ v.createElement("path", {
790
+ }), /* @__PURE__ */ _.createElement("path", {
791
791
  d: "M2 6h44v36H2z"
792
- }))), Dc = (t) => /* @__PURE__ */ v.createElement("svg", {
792
+ }))), Dc = (t) => /* @__PURE__ */ _.createElement("svg", {
793
793
  xmlns: "http://www.w3.org/2000/svg",
794
794
  viewBox: "0 0 48 48",
795
795
  role: "img",
796
796
  ...t
797
- }, /* @__PURE__ */ v.createElement("g", {
797
+ }, /* @__PURE__ */ _.createElement("g", {
798
798
  strokeLinecap: "round",
799
799
  strokeWidth: 2,
800
800
  fill: "none",
801
801
  stroke: "currentColor",
802
802
  strokeLinejoin: "round",
803
803
  className: "nc-icon-wrapper"
804
- }, /* @__PURE__ */ v.createElement("path", {
804
+ }, /* @__PURE__ */ _.createElement("path", {
805
805
  d: "M3 9h42v36H3zm7-6h28"
806
- }), /* @__PURE__ */ v.createElement("path", {
806
+ }), /* @__PURE__ */ _.createElement("path", {
807
807
  d: "m10 38 7-10 5 4 8-11 9 17H10z"
808
- }), /* @__PURE__ */ v.createElement("circle", {
808
+ }), /* @__PURE__ */ _.createElement("circle", {
809
809
  cx: 17,
810
810
  cy: 19,
811
811
  r: 3
@@ -854,7 +854,7 @@ const Ei = hr.exports.Fragment, f = hr.exports.jsx, Y = hr.exports.jsxs, Mg = ()
854
854
  label: "Divider card"
855
855
  }), /* @__PURE__ */ f("div", {
856
856
  className: "relative max-w-[740px]",
857
- children: /* @__PURE__ */ f(u, {})
857
+ children: /* @__PURE__ */ f(d, {})
858
858
  }), /* @__PURE__ */ f(t, {
859
859
  label: "Code block"
860
860
  }), /* @__PURE__ */ f("div", {
@@ -873,11 +873,11 @@ const Ei = hr.exports.Fragment, f = hr.exports.jsx, Y = hr.exports.jsxs, Mg = ()
873
873
  })]
874
874
  });
875
875
  function t({
876
- label: N
876
+ label: w
877
877
  }) {
878
878
  return /* @__PURE__ */ f("h3", {
879
879
  className: "mb-4 mt-20 text-xl font-bold first-of-type:mt-8",
880
- children: N
880
+ children: w
881
881
  });
882
882
  }
883
883
  function e() {
@@ -953,13 +953,13 @@ const Ei = hr.exports.Fragment, f = hr.exports.jsx, Y = hr.exports.jsxs, Mg = ()
953
953
  });
954
954
  }
955
955
  function i({
956
- label: N,
956
+ label: w,
957
957
  Icon: p,
958
- ..._
958
+ ...C
959
959
  }) {
960
960
  return /* @__PURE__ */ f("li", {
961
961
  className: "m-0 flex p-0 first:m-0",
962
- ..._,
962
+ ...C,
963
963
  children: /* @__PURE__ */ f("div", {
964
964
  type: "button",
965
965
  className: "flex h-9 w-9 items-center justify-center",
@@ -1101,14 +1101,14 @@ const Ei = hr.exports.Fragment, f = hr.exports.jsx, Y = hr.exports.jsxs, Mg = ()
1101
1101
  Icon: Ac
1102
1102
  }), /* @__PURE__ */ f(a, {
1103
1103
  label: "Snippets"
1104
- }), /* @__PURE__ */ f(d, {
1104
+ }), /* @__PURE__ */ f(u, {
1105
1105
  label: "A random snippet",
1106
1106
  Icon: Mc
1107
1107
  })]
1108
1108
  });
1109
1109
  }
1110
1110
  function a({
1111
- label: N,
1111
+ label: w,
1112
1112
  ...p
1113
1113
  }) {
1114
1114
  return /* @__PURE__ */ f("div", {
@@ -1117,28 +1117,28 @@ const Ei = hr.exports.Fragment, f = hr.exports.jsx, Y = hr.exports.jsxs, Mg = ()
1117
1117
  minWidth: "calc(100% - 3.2rem)"
1118
1118
  },
1119
1119
  ...p,
1120
- children: N
1120
+ children: w
1121
1121
  });
1122
1122
  }
1123
1123
  function c({
1124
- label: N,
1124
+ label: w,
1125
1125
  desc: p,
1126
- Icon: _,
1127
- ...w
1126
+ Icon: C,
1127
+ ...x
1128
1128
  }) {
1129
1129
  return /* @__PURE__ */ Y("div", {
1130
1130
  className: "flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",
1131
- ...w,
1131
+ ...x,
1132
1132
  children: [/* @__PURE__ */ f("div", {
1133
1133
  className: "flex items-center",
1134
- children: /* @__PURE__ */ f(_, {
1134
+ children: /* @__PURE__ */ f(C, {
1135
1135
  className: "h-7 w-7"
1136
1136
  })
1137
1137
  }), /* @__PURE__ */ Y("div", {
1138
1138
  className: "flex flex-col",
1139
1139
  children: [/* @__PURE__ */ f("div", {
1140
1140
  className: "m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",
1141
- children: N
1141
+ children: w
1142
1142
  }), /* @__PURE__ */ f("div", {
1143
1143
  className: "m-0 ml-4 truncate text-xs font-normal leading-[1.333em] tracking-[.02rem] text-grey",
1144
1144
  children: p
@@ -1146,14 +1146,14 @@ const Ei = hr.exports.Fragment, f = hr.exports.jsx, Y = hr.exports.jsxs, Mg = ()
1146
1146
  })]
1147
1147
  });
1148
1148
  }
1149
- function d({
1150
- label: N,
1149
+ function u({
1150
+ label: w,
1151
1151
  Icon: p,
1152
- ..._
1152
+ ...C
1153
1153
  }) {
1154
1154
  return /* @__PURE__ */ Y("div", {
1155
1155
  className: "flex cursor-pointer flex-row items-center border border-transparent px-4 py-2 text-grey-800 hover:bg-grey-100",
1156
- ..._,
1156
+ ...C,
1157
1157
  children: [/* @__PURE__ */ f("div", {
1158
1158
  className: "flex items-center",
1159
1159
  children: /* @__PURE__ */ f(p, {
@@ -1163,12 +1163,12 @@ const Ei = hr.exports.Fragment, f = hr.exports.jsx, Y = hr.exports.jsxs, Mg = ()
1163
1163
  className: "flex flex-col",
1164
1164
  children: /* @__PURE__ */ f("div", {
1165
1165
  className: "m-0 ml-4 truncate text-[1.3rem] font-normal leading-[1.333em] tracking-[.02rem] text-grey-900",
1166
- children: N
1166
+ children: w
1167
1167
  })
1168
1168
  })]
1169
1169
  });
1170
1170
  }
1171
- function u() {
1171
+ function d() {
1172
1172
  return /* @__PURE__ */ f("div", {
1173
1173
  children: /* @__PURE__ */ f("hr", {
1174
1174
  className: "block h-[1px] border-0 border-t border-grey-300"
@@ -1183,32 +1183,32 @@ const Ei = hr.exports.Fragment, f = hr.exports.jsx, Y = hr.exports.jsxs, Mg = ()
1183
1183
  children: /* @__PURE__ */ f("textarea", {
1184
1184
  className: "w-full resize-none bg-grey-50 font-mono text-[1.7rem]"
1185
1185
  })
1186
- }), /* @__PURE__ */ f(C, {
1186
+ }), /* @__PURE__ */ f(v, {
1187
1187
  placeholder: "Type caption for code block (optional)"
1188
1188
  })]
1189
1189
  });
1190
1190
  }
1191
1191
  function m() {
1192
- const [N, p] = to(!1), [_, w] = to(!1), E = () => {
1193
- p(!N);
1192
+ const [w, p] = to(!1), [C, x] = to(!1), E = () => {
1193
+ p(!w);
1194
1194
  }, S = ($) => {
1195
- $.stopPropagation(), w(!_);
1195
+ $.stopPropagation(), x(!C);
1196
1196
  };
1197
- return N ? /* @__PURE__ */ Y("div", {
1198
- className: `border border-transparent ${N ? "shadow-[0_0_0_2px_#30cf43]" : "hover:shadow-[0_0_0_1px_#30cf43]"}`,
1197
+ return w ? /* @__PURE__ */ Y("div", {
1198
+ className: `border border-transparent ${w ? "shadow-[0_0_0_2px_#30cf43]" : "hover:shadow-[0_0_0_1px_#30cf43]"}`,
1199
1199
  onClick: E,
1200
1200
  children: [/* @__PURE__ */ f(h, {
1201
1201
  desc: "Click to select an image",
1202
1202
  Icon: Jr
1203
- }), /* @__PURE__ */ f(C, {
1203
+ }), /* @__PURE__ */ f(v, {
1204
1204
  placeholder: "Type caption for image (optional)"
1205
1205
  }), /* @__PURE__ */ f("button", {
1206
- className: `absolute bottom-0 right-0 m-3 cursor-pointer rounded border px-1 text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${_ ? "border-green bg-green text-white" : "border-grey text-grey"} `,
1206
+ className: `absolute bottom-0 right-0 m-3 cursor-pointer rounded border px-1 text-[1.3rem] font-normal leading-7 tracking-wide transition-all duration-100 ${C ? "border-green bg-green text-white" : "border-grey text-grey"} `,
1207
1207
  onClick: ($) => S($),
1208
1208
  children: "Alt"
1209
1209
  })]
1210
1210
  }) : /* @__PURE__ */ f("div", {
1211
- className: `border border-transparent ${N ? "shadow-[0_0_0_2px_#30cf43]" : "hover:shadow-[0_0_0_1px_#30cf43]"}`,
1211
+ className: `border border-transparent ${w ? "shadow-[0_0_0_2px_#30cf43]" : "hover:shadow-[0_0_0_1px_#30cf43]"}`,
1212
1212
  onClick: E,
1213
1213
  children: /* @__PURE__ */ f(h, {
1214
1214
  desc: "Click to select an image",
@@ -1217,15 +1217,15 @@ const Ei = hr.exports.Fragment, f = hr.exports.jsx, Y = hr.exports.jsxs, Mg = ()
1217
1217
  });
1218
1218
  }
1219
1219
  function h({
1220
- desc: N,
1220
+ desc: w,
1221
1221
  Icon: p,
1222
- ..._
1222
+ ...C
1223
1223
  }) {
1224
1224
  return /* @__PURE__ */ Y("div", {
1225
1225
  className: "relative",
1226
1226
  children: [/* @__PURE__ */ f("figure", {
1227
1227
  className: "cursor-pointer border border-transparent",
1228
- ..._,
1228
+ ...C,
1229
1229
  children: /* @__PURE__ */ f("div", {
1230
1230
  className: "h-100 relative flex items-center justify-center border border-grey-100 bg-grey-50 before:pb-[62.5%]",
1231
1231
  children: /* @__PURE__ */ Y("button", {
@@ -1234,7 +1234,7 @@ const Ei = hr.exports.Fragment, f = hr.exports.jsx, Y = hr.exports.jsxs, Mg = ()
1234
1234
  className: "h-32 w-32 opacity-80 transition-all ease-linear group-hover:scale-105 group-hover:opacity-100"
1235
1235
  }), /* @__PURE__ */ f("p", {
1236
1236
  className: "mt-4 text-sm font-normal text-grey-700 group-hover:text-grey-800",
1237
- children: N
1237
+ children: w
1238
1238
  })]
1239
1239
  })
1240
1240
  })
@@ -1248,12 +1248,12 @@ const Ei = hr.exports.Fragment, f = hr.exports.jsx, Y = hr.exports.jsxs, Mg = ()
1248
1248
  })]
1249
1249
  });
1250
1250
  }
1251
- function C({
1252
- placeholder: N
1251
+ function v({
1252
+ placeholder: w
1253
1253
  }) {
1254
1254
  return /* @__PURE__ */ f("input", {
1255
1255
  className: "not-kg-prose w-full p-2 text-center font-sans text-sm font-normal tracking-wide text-grey-900",
1256
- placeholder: N
1256
+ placeholder: w
1257
1257
  });
1258
1258
  }
1259
1259
  function T() {
@@ -1262,7 +1262,7 @@ const Ei = hr.exports.Fragment, f = hr.exports.jsx, Y = hr.exports.jsxs, Mg = ()
1262
1262
  children: [/* @__PURE__ */ f(h, {
1263
1263
  desc: "Click to select up to 9 images",
1264
1264
  Icon: Dc
1265
- }), /* @__PURE__ */ f(C, {
1265
+ }), /* @__PURE__ */ f(v, {
1266
1266
  placeholder: "Type caption for gallery (optional)"
1267
1267
  })]
1268
1268
  });
@@ -1313,49 +1313,49 @@ function Yl(t, e, n) {
1313
1313
  let i = J() || Jc(t);
1314
1314
  var o = /* @__PURE__ */ new Map(), l = t.getRootElement(), s = t._editorState;
1315
1315
  let a = !1, c = "";
1316
- for (var d = 0; d < e.length; d++) {
1317
- var u = e[d], g = u.type, m = u.target, h = Nn(m, s);
1316
+ for (var u = 0; u < e.length; u++) {
1317
+ var d = e[u], g = d.type, m = d.target, h = Nn(m, s);
1318
1318
  if (!ne(h)) {
1319
1319
  if (g === "characterData") {
1320
- if (u = r && k(h))
1320
+ if (d = r && k(h))
1321
1321
  e: {
1322
- u = i, g = m;
1323
- var C = h;
1324
- if (z(u)) {
1325
- var T = u.anchor.getNode();
1326
- if (T.is(C) && u.format !== T.getFormat()) {
1327
- u = !1;
1322
+ d = i, g = m;
1323
+ var v = h;
1324
+ if (z(d)) {
1325
+ var T = d.anchor.getNode();
1326
+ if (T.is(v) && d.format !== T.getFormat()) {
1327
+ d = !1;
1328
1328
  break e;
1329
1329
  }
1330
1330
  }
1331
- u = g.nodeType === 3 && C.isAttached();
1331
+ d = g.nodeType === 3 && v.isAttached();
1332
1332
  }
1333
- u && (C = window.getSelection(), g = u = null, C !== null && C.anchorNode === m && (u = C.anchorOffset, g = C.focusOffset), m = m.nodeValue, m !== null && Ai(h, m, u, g, !1));
1333
+ d && (v = window.getSelection(), g = d = null, v !== null && v.anchorNode === m && (d = v.anchorOffset, g = v.focusOffset), m = m.nodeValue, m !== null && Ai(h, m, d, g, !1));
1334
1334
  } else if (g === "childList") {
1335
- for (a = !0, g = u.addedNodes, C = 0; C < g.length; C++) {
1336
- T = g[C];
1337
- var N = Ql(T), p = T.parentNode;
1338
- p == null || N !== null || T.nodeName === "BR" && Pr(T, p, t) || (ht && (N = T.innerText || T.nodeValue) && (c += N), p.removeChild(T));
1335
+ for (a = !0, g = d.addedNodes, v = 0; v < g.length; v++) {
1336
+ T = g[v];
1337
+ var w = Ql(T), p = T.parentNode;
1338
+ p == null || w !== null || T.nodeName === "BR" && Pr(T, p, t) || (ht && (w = T.innerText || T.nodeValue) && (c += w), p.removeChild(T));
1339
1339
  }
1340
- if (u = u.removedNodes, g = u.length, 0 < g) {
1341
- for (C = 0, T = 0; T < g; T++)
1342
- p = u[T], p.nodeName === "BR" && Pr(p, m, t) && (m.appendChild(p), C++);
1343
- g !== C && (m === l && (h = s._nodeMap.get("root")), o.set(m, h));
1340
+ if (d = d.removedNodes, g = d.length, 0 < g) {
1341
+ for (v = 0, T = 0; T < g; T++)
1342
+ p = d[T], p.nodeName === "BR" && Pr(p, m, t) && (m.appendChild(p), v++);
1343
+ g !== v && (m === l && (h = s._nodeMap.get("root")), o.set(m, h));
1344
1344
  }
1345
1345
  }
1346
1346
  }
1347
1347
  }
1348
1348
  if (0 < o.size)
1349
- for (let [_, w] of o)
1350
- if (A(w))
1351
- for (o = w.__children, l = _.firstChild, s = 0; s < o.length; s++)
1352
- d = t.getElementByKey(o[s]), d !== null && (l == null ? (_.appendChild(d), l = d) : l !== d && _.replaceChild(d, l), l = l.nextSibling);
1349
+ for (let [C, x] of o)
1350
+ if (A(x))
1351
+ for (o = x.__children, l = C.firstChild, s = 0; s < o.length; s++)
1352
+ u = t.getElementByKey(o[s]), u !== null && (l == null ? (C.appendChild(u), l = u) : l !== u && C.replaceChild(u, l), l = l.nextSibling);
1353
1353
  else
1354
- k(w) && w.markDirty();
1354
+ k(x) && x.markDirty();
1355
1355
  if (o = n.takeRecords(), 0 < o.length) {
1356
1356
  for (l = 0; l < o.length; l++)
1357
- for (d = o[l], s = d.addedNodes, d = d.target, h = 0; h < s.length; h++)
1358
- m = s[h], u = m.parentNode, u == null || m.nodeName !== "BR" || Pr(m, d, t) || u.removeChild(m);
1357
+ for (u = o[l], s = u.addedNodes, u = u.target, h = 0; h < s.length; h++)
1358
+ m = s[h], d = m.parentNode, d == null || m.nodeName !== "BR" || Pr(m, u, t) || d.removeChild(m);
1359
1359
  n.takeRecords();
1360
1360
  }
1361
1361
  i !== null && (a && (i.dirty = !0, bt(i)), ht && os(t) && i.insertRawText(c));
@@ -1771,33 +1771,33 @@ function Xt(t, e) {
1771
1771
  ue = "";
1772
1772
  var a = l.length, c = s.length;
1773
1773
  if (a === 1 && c === 1) {
1774
- var d = l[0];
1775
- if (s = s[0], d === s)
1776
- Xt(d, o);
1774
+ var u = l[0];
1775
+ if (s = s[0], u === s)
1776
+ Xt(u, o);
1777
1777
  else {
1778
- var u = ai(d);
1779
- s = jn(s, null, null), o.replaceChild(s, u), Gn(d, null);
1778
+ var d = ai(u);
1779
+ s = jn(s, null, null), o.replaceChild(s, d), Gn(u, null);
1780
1780
  }
1781
1781
  } else if (a === 0)
1782
1782
  c !== 0 && si(s, 0, c - 1, o, null);
1783
1783
  else if (c === 0)
1784
- a !== 0 && (d = o.__lexicalLineBreak == null, li(l, 0, a - 1, d ? null : o), d && (o.textContent = ""));
1784
+ a !== 0 && (u = o.__lexicalLineBreak == null, li(l, 0, a - 1, u ? null : o), u && (o.textContent = ""));
1785
1785
  else {
1786
1786
  let h = a - 1;
1787
1787
  a = c - 1;
1788
- let C = o.firstChild, T = 0;
1788
+ let v = o.firstChild, T = 0;
1789
1789
  for (c = 0; T <= h && c <= a; ) {
1790
1790
  var g = l[T];
1791
- let N = s[c];
1792
- if (g === N)
1793
- C = Xt(N, o).nextSibling, T++, c++;
1791
+ let w = s[c];
1792
+ if (g === w)
1793
+ v = Xt(w, o).nextSibling, T++, c++;
1794
1794
  else {
1795
- d === void 0 && (d = new Set(l)), u === void 0 && (u = new Set(s));
1796
- let p = u.has(g), _ = d.has(N);
1797
- p ? (_ ? (g = tr(Ne, N), g === C ? C = Xt(N, o).nextSibling : (C != null ? o.insertBefore(g, C) : o.appendChild(g), Xt(N, o)), T++) : jn(N, o, C), c++) : (C = ai(g).nextSibling, Gn(g, o), T++);
1795
+ u === void 0 && (u = new Set(l)), d === void 0 && (d = new Set(s));
1796
+ let p = d.has(g), C = u.has(w);
1797
+ p ? (C ? (g = tr(Ne, w), g === v ? v = Xt(w, o).nextSibling : (v != null ? o.insertBefore(g, v) : o.appendChild(g), Xt(w, o)), T++) : jn(w, o, v), c++) : (v = ai(g).nextSibling, Gn(g, o), T++);
1798
1798
  }
1799
1799
  }
1800
- d = T > h, u = c > a, d && !u ? (d = s[a + 1], d = d === void 0 ? null : Ne.getElementByKey(d), si(s, c, a, o, d)) : u && !d && li(l, T, h, o);
1800
+ u = T > h, d = c > a, u && !d ? (u = s[a + 1], u = u === void 0 ? null : Ne.getElementByKey(u), si(s, c, a, o, u)) : d && !u && li(l, T, h, o);
1801
1801
  }
1802
1802
  ti(i) && (ue += `
1803
1803
 
@@ -1844,15 +1844,15 @@ function go(t, e, n) {
1844
1844
  var a = s.anchor, c = a.getNode();
1845
1845
  if (s.isCollapsed()) {
1846
1846
  t.type === "Range" && t.anchorNode === t.focusNode && (s.dirty = !0);
1847
- var d = xr(e).event;
1848
- d = d ? d.timeStamp : performance.now();
1849
- let [u, g, m, h] = ps;
1850
- d < h + 200 && a.offset === g && a.key === m ? s.format = u : a.type === "text" ? s.format = c.getFormat() : a.type === "element" && (s.format = 0);
1847
+ var u = xr(e).event;
1848
+ u = u ? u.timeStamp : performance.now();
1849
+ let [d, g, m, h] = ps;
1850
+ u < h + 200 && a.offset === g && a.key === m ? s.format = d : a.type === "text" ? s.format = c.getFormat() : a.type === "element" && (s.format = 0);
1851
1851
  } else {
1852
- a = 127, c = !1, d = s.getNodes();
1853
- let u = d.length;
1854
- for (let g = 0; g < u; g++) {
1855
- let m = d[g];
1852
+ a = 127, c = !1, u = s.getNodes();
1853
+ let d = u.length;
1854
+ for (let g = 0; g < d; g++) {
1855
+ let m = u[g];
1856
1856
  if (k(m) && (c = !0, a &= m.getFormat(), a === 0))
1857
1857
  break;
1858
1858
  }
@@ -2287,11 +2287,11 @@ class Tr {
2287
2287
  for (let c = r; c <= o; c++) {
2288
2288
  var s = l[c];
2289
2289
  e.add(s), Ds(s) || I(24), s = s.getChildren();
2290
- for (let d = n; d <= i; d++) {
2291
- var a = s[d];
2290
+ for (let u = n; u <= i; u++) {
2291
+ var a = s[u];
2292
2292
  for (Os(a) || I(25), e.add(a), a = a.getChildren(); 0 < a.length; ) {
2293
- let u = a.shift();
2294
- e.add(u), A(u) && a.unshift(...u.getChildren());
2293
+ let d = a.shift();
2294
+ e.add(d), A(d) && a.unshift(...d.getChildren());
2295
2295
  }
2296
2296
  }
2297
2297
  }
@@ -2338,15 +2338,15 @@ class Ft {
2338
2338
  return "";
2339
2339
  let n = e[0], r = e[e.length - 1], i = this.anchor.isBefore(this.focus), [o, l] = Zn(this), s = "", a = !0;
2340
2340
  for (let c = 0; c < e.length; c++) {
2341
- let d = e[c];
2342
- if (A(d) && !d.isInline())
2341
+ let u = e[c];
2342
+ if (A(u) && !u.isInline())
2343
2343
  a || (s += `
2344
- `), a = !d.isEmpty();
2345
- else if (a = !1, k(d)) {
2346
- let u = d.getTextContent();
2347
- d === n ? u = d === r ? o < l ? u.slice(o, l) : u.slice(l, o) : i ? u.slice(o) : u.slice(l) : d === r && (u = i ? u.slice(0, l) : u.slice(0, o)), s += u;
2344
+ `), a = !u.isEmpty();
2345
+ else if (a = !1, k(u)) {
2346
+ let d = u.getTextContent();
2347
+ u === n ? d = u === r ? o < l ? d.slice(o, l) : d.slice(l, o) : i ? d.slice(o) : d.slice(l) : u === r && (d = i ? d.slice(0, l) : d.slice(0, o)), s += d;
2348
2348
  } else
2349
- !ne(d) && !Cn(d) || d === r && this.isCollapsed() || (s += d.getTextContent());
2349
+ !ne(u) && !Cn(u) || u === r && this.isCollapsed() || (s += u.getTextContent());
2350
2350
  }
2351
2351
  return s;
2352
2352
  }
@@ -2393,21 +2393,21 @@ class Ft {
2393
2393
  r = (i ? n : r).offset;
2394
2394
  var c = a.offset;
2395
2395
  n = l[0], k(n) || I(26), i = n.getTextContent().length;
2396
- var d = n.getParentOrThrow(), u = l[s - 1];
2397
- if (this.isCollapsed() && r === i && (n.isSegmented() || n.isToken() || !n.canInsertTextAfter() || !d.canInsertTextAfter() && n.getNextSibling() === null)) {
2396
+ var u = n.getParentOrThrow(), d = l[s - 1];
2397
+ if (this.isCollapsed() && r === i && (n.isSegmented() || n.isToken() || !n.canInsertTextAfter() || !u.canInsertTextAfter() && n.getNextSibling() === null)) {
2398
2398
  var g = n.getNextSibling();
2399
- if ((!k(g) || ei(g)) && (g = xe(), g.setFormat(o), d.canInsertTextAfter() ? n.insertAfter(g) : d.insertAfter(g)), g.select(0, 0), n = g, e !== "") {
2399
+ if ((!k(g) || ei(g)) && (g = xe(), g.setFormat(o), u.canInsertTextAfter() ? n.insertAfter(g) : u.insertAfter(g)), g.select(0, 0), n = g, e !== "") {
2400
2400
  this.insertText(e);
2401
2401
  return;
2402
2402
  }
2403
- } else if (this.isCollapsed() && r === 0 && (n.isSegmented() || n.isToken() || !n.canInsertTextBefore() || !d.canInsertTextBefore() && n.getPreviousSibling() === null)) {
2404
- if (g = n.getPreviousSibling(), (!k(g) || ei(g)) && (g = xe(), g.setFormat(o), d.canInsertTextBefore() ? n.insertBefore(g) : d.insertBefore(g)), g.select(), n = g, e !== "") {
2403
+ } else if (this.isCollapsed() && r === 0 && (n.isSegmented() || n.isToken() || !n.canInsertTextBefore() || !u.canInsertTextBefore() && n.getPreviousSibling() === null)) {
2404
+ if (g = n.getPreviousSibling(), (!k(g) || ei(g)) && (g = xe(), g.setFormat(o), u.canInsertTextBefore() ? n.insertBefore(g) : u.insertBefore(g)), g.select(), n = g, e !== "") {
2405
2405
  this.insertText(e);
2406
2406
  return;
2407
2407
  }
2408
2408
  } else if (n.isSegmented() && r !== i)
2409
- d = xe(n.getTextContent()), d.setFormat(o), n.replace(d), n = d;
2410
- else if (!(this.isCollapsed() || e === "" || (g = u.getParent(), d.canInsertTextBefore() && d.canInsertTextAfter() && (!A(g) || g.canInsertTextBefore() && g.canInsertTextAfter())))) {
2409
+ u = xe(n.getTextContent()), u.setFormat(o), n.replace(u), n = u;
2410
+ else if (!(this.isCollapsed() || e === "" || (g = d.getParent(), u.canInsertTextBefore() && u.canInsertTextAfter() && (!A(g) || g.canInsertTextBefore() && g.canInsertTextAfter())))) {
2411
2411
  this.insertText(""), vs(this.anchor, this.focus, null), this.insertText(e);
2412
2412
  return;
2413
2413
  }
@@ -2425,22 +2425,22 @@ class Ft {
2425
2425
  n = n.spliceText(r, c - r, e, !0), n.getTextContent() === "" ? n.remove() : this.anchor.type === "text" && (n.isComposing() ? this.anchor.offset -= e.length : this.format = l);
2426
2426
  }
2427
2427
  else {
2428
- o = /* @__PURE__ */ new Set([...n.getParentKeys(), ...u.getParentKeys()]);
2428
+ o = /* @__PURE__ */ new Set([...n.getParentKeys(), ...d.getParentKeys()]);
2429
2429
  var m = A(n) ? n : n.getParentOrThrow();
2430
- if (d = A(u) ? u : u.getParentOrThrow(), g = u, !m.is(d) && d.isInline())
2430
+ if (u = A(d) ? d : d.getParentOrThrow(), g = d, !m.is(u) && u.isInline())
2431
2431
  do
2432
- g = d, d = d.getParentOrThrow();
2433
- while (d.isInline());
2434
- a.type === "text" && (c !== 0 || u.getTextContent() === "") || a.type === "element" && u.getIndexWithinParent() < c ? k(u) && !u.isToken() && c !== u.getTextContentSize() ? (u.isSegmented() && (a = xe(u.getTextContent()), u.replace(a), u = a), u = u.spliceText(0, c, ""), o.add(u.__key)) : (a = u.getParentOrThrow(), a.canBeEmpty() || a.getChildrenSize() !== 1 ? u.remove() : a.remove()) : o.add(u.__key), a = d.getChildren(), c = new Set(l), u = m.is(d), m = m.isInline() && n.getNextSibling() === null ? m : n;
2432
+ g = u, u = u.getParentOrThrow();
2433
+ while (u.isInline());
2434
+ a.type === "text" && (c !== 0 || d.getTextContent() === "") || a.type === "element" && d.getIndexWithinParent() < c ? k(d) && !d.isToken() && c !== d.getTextContentSize() ? (d.isSegmented() && (a = xe(d.getTextContent()), d.replace(a), d = a), d = d.spliceText(0, c, ""), o.add(d.__key)) : (a = d.getParentOrThrow(), a.canBeEmpty() || a.getChildrenSize() !== 1 ? d.remove() : a.remove()) : o.add(d.__key), a = u.getChildren(), c = new Set(l), d = m.is(u), m = m.isInline() && n.getNextSibling() === null ? m : n;
2435
2435
  for (let h = a.length - 1; 0 <= h; h--) {
2436
- let C = a[h];
2437
- if (C.is(n) || A(C) && C.isParentOf(n))
2436
+ let v = a[h];
2437
+ if (v.is(n) || A(v) && v.isParentOf(n))
2438
2438
  break;
2439
- C.isAttached() && (!c.has(C) || C.is(g) ? u || m.insertAfter(C) : C.remove());
2439
+ v.isAttached() && (!c.has(v) || v.is(g) ? d || m.insertAfter(v) : v.remove());
2440
2440
  }
2441
- if (!u)
2442
- for (a = d, c = null; a !== null; )
2443
- u = a.getChildren(), d = u.length, (d === 0 || u[d - 1].is(c)) && (o.delete(a.__key), c = a), a = a.getParent();
2441
+ if (!d)
2442
+ for (a = u, c = null; a !== null; )
2443
+ d = a.getChildren(), u = d.length, (u === 0 || d[u - 1].is(c)) && (o.delete(a.__key), c = a), a = a.getParent();
2444
2444
  for (n.isToken() ? r === i ? n.select() : (e = xe(e), e.select(), n.replace(e)) : (n = n.spliceText(r, i - r, e, !0), n.getTextContent() === "" ? n.remove() : n.isComposing() && this.anchor.type === "text" && (this.anchor.offset -= e.length)), e = 1; e < s; e++)
2445
2445
  n = l[e], o.has(n.__key) || n.remove();
2446
2446
  }
@@ -2465,8 +2465,8 @@ class Ft {
2465
2465
  var a = 0, c = r[0];
2466
2466
  if (l = n.type === "element" ? 0 : n.offset, n.type === "text" && l === c.getTextContentSize() && (a = 1, c = r[1], l = 0), c != null) {
2467
2467
  s = c.getFormatFlags(e, null);
2468
- var d = o - 1, u = r[d];
2469
- if (o = i.type === "text" ? i.offset : u.getTextContentSize(), c.is(u))
2468
+ var u = o - 1, d = r[u];
2469
+ if (o = i.type === "text" ? i.offset : d.getTextContentSize(), c.is(d))
2470
2470
  l !== o && (l === 0 && o === c.getTextContentSize() ? c.setFormat(s) : (e = c.splitText(l, o), e = l === 0 ? e[0] : e[1], e.setFormat(s), n.type === "text" && n.set(
2471
2471
  e.__key,
2472
2472
  0,
@@ -2474,15 +2474,15 @@ class Ft {
2474
2474
  ), i.type === "text" && i.set(e.__key, o - l, "text")), this.format = s);
2475
2475
  else {
2476
2476
  l !== 0 && ([, c] = c.splitText(l), l = 0), c.setFormat(s);
2477
- var g = u.getFormatFlags(e, s);
2478
- for (0 < o && (o !== u.getTextContentSize() && ([u] = u.splitText(o)), u.setFormat(g)), a += 1; a < d; a++) {
2477
+ var g = d.getFormatFlags(e, s);
2478
+ for (0 < o && (o !== d.getTextContentSize() && ([d] = d.splitText(o)), d.setFormat(g)), a += 1; a < u; a++) {
2479
2479
  let m = r[a];
2480
2480
  if (!m.isToken()) {
2481
2481
  let h = m.getFormatFlags(e, g);
2482
2482
  m.setFormat(h);
2483
2483
  }
2484
2484
  }
2485
- n.type === "text" && n.set(c.__key, l, "text"), i.type === "text" && i.set(u.__key, o, "text"), this.format = s | g;
2485
+ n.type === "text" && n.set(c.__key, l, "text"), i.type === "text" && i.set(d.__key, o, "text"), this.format = s | g;
2486
2486
  }
2487
2487
  }
2488
2488
  }
@@ -2504,38 +2504,38 @@ class Ft {
2504
2504
  [l, o] = o.splitText(i), r.push(o);
2505
2505
  }
2506
2506
  o = l, r.push(...s), s = e[0];
2507
- var c = !1, d = null;
2507
+ var c = !1, u = null;
2508
2508
  for (let h = 0; h < e.length; h++) {
2509
- var u = e[h];
2510
- if (A(u) && !u.isInline()) {
2511
- if (u.is(s)) {
2512
- if (A(l) && l.isEmpty() && l.canReplaceWith(u)) {
2513
- l.replace(u), l = u, c = !0;
2509
+ var d = e[h];
2510
+ if (A(d) && !d.isInline()) {
2511
+ if (d.is(s)) {
2512
+ if (A(l) && l.isEmpty() && l.canReplaceWith(d)) {
2513
+ l.replace(d), l = d, c = !0;
2514
2514
  continue;
2515
2515
  }
2516
- var g = u.getFirstDescendant();
2516
+ var g = d.getFirstDescendant();
2517
2517
  if (Xl(g)) {
2518
2518
  for (g = g.getParentOrThrow(); g.isInline(); )
2519
2519
  g = g.getParentOrThrow();
2520
- if (d = g.getChildren(), c = d.length, A(l))
2520
+ if (u = g.getChildren(), c = u.length, A(l))
2521
2521
  for (var m = 0; m < c; m++)
2522
- l.append(d[m]);
2522
+ l.append(u[m]);
2523
2523
  else {
2524
2524
  for (m = c - 1; 0 <= m; m--)
2525
- l.insertAfter(d[m]);
2525
+ l.insertAfter(u[m]);
2526
2526
  l = l.getParentOrThrow();
2527
2527
  }
2528
- if (d = d[c - 1], g.remove(), c = !0, g.is(u))
2528
+ if (u = u[c - 1], g.remove(), c = !0, g.is(d))
2529
2529
  continue;
2530
2530
  }
2531
2531
  }
2532
2532
  k(l) && (a === null && I(27), l = a);
2533
2533
  } else
2534
- c && !ne(u) && Xe(l.getParent()) && I(28);
2535
- c = !1, A(l) && !l.isInline() ? (d = u, ne(u) && !u.isInline() ? l = l.insertAfter(u) : A(u) ? (u.canBeEmpty() || !u.isEmpty()) && (Xe(l) ? (g = l.getChildAtIndex(i), g !== null ? g.insertBefore(u) : l.append(u), l = u) : l = l.insertAfter(u)) : (g = l.getFirstChild(), g !== null ? g.insertBefore(u) : l.append(u), l = u)) : !A(u) || A(u) && u.isInline() || ne(l) && !l.isInline() ? (d = u, l = l.insertAfter(u)) : (u = l.getParentOrThrow(), Cn(l) && l.remove(), l = u, h--);
2534
+ c && !ne(d) && Xe(l.getParent()) && I(28);
2535
+ c = !1, A(l) && !l.isInline() ? (u = d, ne(d) && !d.isInline() ? l = l.insertAfter(d) : A(d) ? (d.canBeEmpty() || !d.isEmpty()) && (Xe(l) ? (g = l.getChildAtIndex(i), g !== null ? g.insertBefore(d) : l.append(d), l = d) : l = l.insertAfter(d)) : (g = l.getFirstChild(), g !== null ? g.insertBefore(d) : l.append(d), l = d)) : !A(d) || A(d) && d.isInline() || ne(l) && !l.isInline() ? (u = d, l = l.insertAfter(d)) : (d = l.getParentOrThrow(), Cn(l) && l.remove(), l = d, h--);
2536
2536
  }
2537
2537
  if (n && (k(o) ? o.select() : (e = l.getPreviousSibling(), k(e) ? e.select() : (e = l.getIndexWithinParent(), l.getParentOrThrow().select(e, e)))), A(l)) {
2538
- if (e = k(d) ? d : A(d) && d.isInline() ? d.getLastDescendant() : l.getLastDescendant(), n || (e === null ? l.select() : k(e) ? e.select() : e.selectNext()), r.length !== 0)
2538
+ if (e = k(u) ? u : A(u) && u.isInline() ? u.getLastDescendant() : l.getLastDescendant(), n || (e === null ? l.select() : k(e) ? e.select() : e.selectNext()), r.length !== 0)
2539
2539
  for (n = l, e = r.length - 1; 0 <= e; e--)
2540
2540
  i = r[e], a = i.getParentOrThrow(), !A(l) || Co(i) || ne(i) && !i.isInline() ? A(l) || Co(i) ? A(i) && !i.canInsertAfter(l) ? (o = a.constructor.clone(a), A(o) || I(29), o.append(i), l.insertAfter(o)) : l.insertAfter(i) : (l.insertBefore(i), l = i) : (n === l ? l.append(i) : l.insertBefore(i), l = i), a.isEmpty() && !a.canBeEmpty() && a.remove();
2541
2541
  } else
@@ -2790,16 +2790,16 @@ function mu(t, e) {
2790
2790
  for (var a = r, c = a.size; 0 < s || 0 < c; ) {
2791
2791
  if (0 < s) {
2792
2792
  e._dirtyLeaves = /* @__PURE__ */ new Set();
2793
- for (let d of l)
2794
- l = t.get(d), k(l) && l.isAttached() && l.isSimpleText() && !l.isUnmergeable() && ss(l), l !== void 0 && l !== void 0 && l.__key !== i && l.isAttached() && Eo(e, l, o), n.add(d);
2793
+ for (let u of l)
2794
+ l = t.get(u), k(l) && l.isAttached() && l.isSimpleText() && !l.isUnmergeable() && ss(l), l !== void 0 && l !== void 0 && l.__key !== i && l.isAttached() && Eo(e, l, o), n.add(u);
2795
2795
  if (l = e._dirtyLeaves, s = l.size, 0 < s) {
2796
2796
  _n++;
2797
2797
  continue;
2798
2798
  }
2799
2799
  }
2800
2800
  e._dirtyLeaves = /* @__PURE__ */ new Set(), e._dirtyElements = /* @__PURE__ */ new Map();
2801
- for (let d of a)
2802
- a = d[0], c = d[1], (a === "root" || c) && (l = t.get(a), l !== void 0 && l !== void 0 && l.__key !== i && l.isAttached() && Eo(e, l, o), r.set(a, c));
2801
+ for (let u of a)
2802
+ a = u[0], c = u[1], (a === "root" || c) && (l = t.get(a), l !== void 0 && l !== void 0 && l.__key !== i && l.isAttached() && Eo(e, l, o), r.set(a, c));
2803
2803
  l = e._dirtyLeaves, s = l.size, a = e._dirtyElements, c = a.size, _n++;
2804
2804
  }
2805
2805
  e._dirtyLeaves = n, e._dirtyElements = r;
@@ -2825,27 +2825,27 @@ function No(t, e) {
2825
2825
  function dt(t) {
2826
2826
  var e = t._pendingEditorState, n = t._rootElement, r = t._headless;
2827
2827
  if ((n !== null || r) && e !== null) {
2828
- var i = t._editorState, o = i._selection, l = e._selection, s = t._dirtyType !== 0, a = ye, c = le, d = de, u = t._updating, g = t._observer, m = null;
2828
+ var i = t._editorState, o = i._selection, l = e._selection, s = t._dirtyType !== 0, a = ye, c = le, u = de, d = t._updating, g = t._observer, m = null;
2829
2829
  if (t._pendingEditorState = null, t._editorState = e, !r && s && g !== null) {
2830
2830
  de = t, ye = e, le = !1, t._updating = !0;
2831
2831
  try {
2832
- var h = t._dirtyType, C = t._dirtyElements, T = t._dirtyLeaves;
2833
- g.disconnect(), Ee = Ue = ue = "", as = h === 2, Yn = null, Ne = t, pt = t._config, fn = t._nodes, Er = Ne._listeners.mutation, ri = C, ii = T, hn = i._nodeMap, kt = e._nodeMap, Di = e._readOnly, oi = new Map(t._keyToDOMMap);
2834
- var N = /* @__PURE__ */ new Map();
2835
- pn = N, Xt("root", null), pn = oi = pt = kt = hn = ii = ri = fn = Ne = void 0, m = N;
2832
+ var h = t._dirtyType, v = t._dirtyElements, T = t._dirtyLeaves;
2833
+ g.disconnect(), Ee = Ue = ue = "", as = h === 2, Yn = null, Ne = t, pt = t._config, fn = t._nodes, Er = Ne._listeners.mutation, ri = v, ii = T, hn = i._nodeMap, kt = e._nodeMap, Di = e._readOnly, oi = new Map(t._keyToDOMMap);
2834
+ var w = /* @__PURE__ */ new Map();
2835
+ pn = w, Xt("root", null), pn = oi = pt = kt = hn = ii = ri = fn = Ne = void 0, m = w;
2836
2836
  } catch (q) {
2837
2837
  if (q instanceof Error && t._onError(q), Fr)
2838
2838
  throw q;
2839
2839
  ws(t, null, n, e), jl(t), t._dirtyType = 2, Fr = !0, dt(t), Fr = !1;
2840
2840
  return;
2841
2841
  } finally {
2842
- g.observe(n, { characterData: !0, childList: !0, subtree: !0 }), t._updating = u, ye = a, le = c, de = d;
2842
+ g.observe(n, { characterData: !0, childList: !0, subtree: !0 }), t._updating = d, ye = a, le = c, de = u;
2843
2843
  }
2844
2844
  }
2845
- e._readOnly || (e._readOnly = !0), u = t._dirtyLeaves, g = t._dirtyElements, N = t._normalizedNodes, h = t._updateTags, c = t._deferred, s && (t._dirtyType = 0, t._cloneNotNeeded.clear(), t._dirtyLeaves = /* @__PURE__ */ new Set(), t._dirtyElements = /* @__PURE__ */ new Map(), t._normalizedNodes = /* @__PURE__ */ new Set(), t._updateTags = /* @__PURE__ */ new Set()), T = t._decorators, C = t._pendingDecorators || T;
2845
+ e._readOnly || (e._readOnly = !0), d = t._dirtyLeaves, g = t._dirtyElements, w = t._normalizedNodes, h = t._updateTags, c = t._deferred, s && (t._dirtyType = 0, t._cloneNotNeeded.clear(), t._dirtyLeaves = /* @__PURE__ */ new Set(), t._dirtyElements = /* @__PURE__ */ new Map(), t._normalizedNodes = /* @__PURE__ */ new Set(), t._updateTags = /* @__PURE__ */ new Set()), T = t._decorators, v = t._pendingDecorators || T;
2846
2846
  var p = e._nodeMap;
2847
- for (ee in C)
2848
- p.has(ee) || (C === T && (C = ql(t)), delete C[ee]);
2847
+ for (ee in v)
2848
+ p.has(ee) || (v === T && (v = ql(t)), delete v[ee]);
2849
2849
  if (r = r ? null : window.getSelection(), t._editable && r !== null && (s || l === null || l.dirty)) {
2850
2850
  de = t, ye = e;
2851
2851
  try {
@@ -2853,21 +2853,21 @@ function dt(t) {
2853
2853
  let q = r.anchorNode, re = r.focusNode, Et = r.anchorOffset, te = r.focusOffset, ie = document.activeElement;
2854
2854
  if (!h.has("collaboration") || ie === n)
2855
2855
  if (z(l)) {
2856
- var _ = l.anchor, w = l.focus, E = _.key, S = w.key, $ = tr(t, E), L = tr(t, S), M = _.offset, W = w.offset, b = l.format, H = l.isCollapsed();
2856
+ var C = l.anchor, x = l.focus, E = C.key, S = x.key, $ = tr(t, E), L = tr(t, S), M = C.offset, W = x.offset, b = l.format, H = l.isCollapsed();
2857
2857
  s = $, S = L;
2858
2858
  var ee = !1;
2859
- if (_.type === "text" && (s = er($), ee = _.getNode().getFormat() !== b), w.type === "text" && (S = er(L)), s !== null && S !== null) {
2859
+ if (C.type === "text" && (s = er($), ee = C.getNode().getFormat() !== b), x.type === "text" && (S = er(L)), s !== null && S !== null) {
2860
2860
  if (H && (o === null || ee || z(o) && o.format !== b)) {
2861
2861
  var Q = performance.now();
2862
2862
  ps = [b, M, E, Q];
2863
2863
  }
2864
- if (Et === M && te === W && q === s && re === S && (r.type !== "Range" || !H) && (n === null || ie !== null && n.contains(ie) || n.focus({ preventScroll: !0 }), !vr && !_r || _.type !== "element"))
2864
+ if (Et === M && te === W && q === s && re === S && (r.type !== "Range" || !H) && (n === null || ie !== null && n.contains(ie) || n.focus({ preventScroll: !0 }), !vr && !_r || C.type !== "element"))
2865
2865
  break e;
2866
2866
  try {
2867
2867
  if (r.setBaseAndExtent(s, M, S, W), l.isCollapsed() && n !== null && n === ie) {
2868
- let ve = _.getNode();
2868
+ let ve = C.getNode();
2869
2869
  if (A(ve)) {
2870
- let oe = ve.getDescendantByIndex(_.offset);
2870
+ let oe = ve.getDescendantByIndex(C.offset);
2871
2871
  oe !== null && (ve = oe);
2872
2872
  }
2873
2873
  let De = t.getElementByKey(ve.__key);
@@ -2892,15 +2892,15 @@ function dt(t) {
2892
2892
  o !== null && yr(t, q, re) && r.removeAllRanges();
2893
2893
  }
2894
2894
  } finally {
2895
- de = d, ye = a;
2895
+ de = u, ye = a;
2896
2896
  }
2897
2897
  }
2898
2898
  if (m !== null)
2899
2899
  for (n = m, o = Array.from(t._listeners.mutation), l = o.length, a = 0; a < l; a++) {
2900
2900
  let [q, re] = o[a];
2901
- d = n.get(re), d !== void 0 && q(d, { dirtyLeaves: u, updateTags: h });
2901
+ u = n.get(re), u !== void 0 && q(u, { dirtyLeaves: d, updateTags: h });
2902
2902
  }
2903
- if (n = t._pendingDecorators, n !== null && (t._decorators = n, t._pendingDecorators = null, on("decorator", t, !0, n)), n = io(i), o = io(e), n !== o && on("textcontent", t, !0, o), on("update", t, !0, { dirtyElements: g, dirtyLeaves: u, editorState: e, normalizedNodes: N, prevEditorState: i, tags: h }), t._deferred = [], c.length !== 0) {
2903
+ if (n = t._pendingDecorators, n !== null && (t._decorators = n, t._pendingDecorators = null, on("decorator", t, !0, n)), n = io(i), o = io(e), n !== o && on("textcontent", t, !0, o), on("update", t, !0, { dirtyElements: g, dirtyLeaves: d, editorState: e, normalizedNodes: w, prevEditorState: i, tags: h }), t._deferred = [], c.length !== 0) {
2904
2904
  e = t._updating, t._updating = !0;
2905
2905
  try {
2906
2906
  for (i = 0; i < c.length; i++)
@@ -2968,23 +2968,23 @@ function Ns(t, e, n) {
2968
2968
  o && t._deferred.push(o), n = t._editorState, o = t._pendingEditorState;
2969
2969
  let l = !1;
2970
2970
  (o === null || o._readOnly) && (o = t._pendingEditorState = new wr(new Map(n._nodeMap)), l = !0);
2971
- let s = ye, a = le, c = de, d = t._updating;
2971
+ let s = ye, a = le, c = de, u = t._updating;
2972
2972
  ye = o, le = !1, t._updating = !0, de = t;
2973
2973
  try {
2974
2974
  l && !t._headless && (o._selection = fu(t));
2975
- let u = t._compositionKey;
2976
- e(), i = To(t, i), hu(o, t), t._dirtyType !== 0 && (i ? pu(o, t) : mu(o, t), To(t), nu(n, o, t._dirtyLeaves, t._dirtyElements)), u !== t._compositionKey && (o._flushSync = !0);
2975
+ let d = t._compositionKey;
2976
+ e(), i = To(t, i), hu(o, t), t._dirtyType !== 0 && (i ? pu(o, t) : mu(o, t), To(t), nu(n, o, t._dirtyLeaves, t._dirtyElements)), d !== t._compositionKey && (o._flushSync = !0);
2977
2977
  let g = o._selection;
2978
2978
  if (z(g)) {
2979
2979
  let m = o._nodeMap, h = g.focus.key;
2980
2980
  m.get(g.anchor.key) !== void 0 && m.get(h) !== void 0 || I(19);
2981
2981
  } else
2982
2982
  Tn(g) && g._nodes.size === 0 && (o._selection = null);
2983
- } catch (u) {
2984
- u instanceof Error && t._onError(u), t._pendingEditorState = n, t._dirtyType = 2, t._cloneNotNeeded.clear(), t._dirtyLeaves = /* @__PURE__ */ new Set(), t._dirtyElements.clear(), dt(t);
2983
+ } catch (d) {
2984
+ d instanceof Error && t._onError(d), t._pendingEditorState = n, t._dirtyType = 2, t._cloneNotNeeded.clear(), t._dirtyLeaves = /* @__PURE__ */ new Set(), t._dirtyElements.clear(), dt(t);
2985
2985
  return;
2986
2986
  } finally {
2987
- ye = s, le = a, de = c, t._updating = d, _n = 0;
2987
+ ye = s, le = a, de = c, t._updating = u, _n = 0;
2988
2988
  }
2989
2989
  t._dirtyType !== 0 || _u(o, t) ? o._flushSync ? (o._flushSync = !1, dt(t)) : l && Qc(() => {
2990
2990
  dt(t);
@@ -3450,26 +3450,26 @@ class xt extends Sr {
3450
3450
  let l = i.__children, s = r.length;
3451
3451
  var a = [];
3452
3452
  for (let c = 0; c < s; c++) {
3453
- let d = r[c], u = d.getWritable();
3454
- d.__key === o && I(76), Un(u), u.__parent = o, a.push(u.__key);
3453
+ let u = r[c], d = u.getWritable();
3454
+ u.__key === o && I(76), Un(d), d.__parent = o, a.push(d.__key);
3455
3455
  }
3456
3456
  if ((r = this.getChildAtIndex(e - 1)) && Lt(r), (o = this.getChildAtIndex(e + n)) && Lt(o), e === l.length ? (l.push(...a), e = []) : e = l.splice(
3457
3457
  e,
3458
3458
  n,
3459
3459
  ...a
3460
3460
  ), e.length && (n = J(), z(n))) {
3461
- let c = new Set(e), d = new Set(a);
3461
+ let c = new Set(e), u = new Set(a);
3462
3462
  a = (m) => {
3463
3463
  for (m = m.getNode(); m; ) {
3464
3464
  const h = m.__key;
3465
- if (c.has(h) && !d.has(h))
3465
+ if (c.has(h) && !u.has(h))
3466
3466
  return !0;
3467
3467
  m = m.getParent();
3468
3468
  }
3469
3469
  return !1;
3470
3470
  };
3471
- let { anchor: u, focus: g } = n;
3472
- for (a(u) && rr(u, u.getNode(), this, r, o), a(g) && rr(g, g.getNode(), this, r, o), a = e.length, n = 0; n < a; n++)
3471
+ let { anchor: d, focus: g } = n;
3472
+ for (a(d) && rr(d, d.getNode(), this, r, o), a(g) && rr(g, g.getNode(), this, r, o), a = e.length, n = 0; n < a; n++)
3473
3473
  r = Z(e[n]), r != null && (r.getWritable().__parent = null);
3474
3474
  l.length !== 0 || this.canBeEmpty() || Xe(this) || this.remove();
3475
3475
  }
@@ -3760,8 +3760,8 @@ class Ht extends Sr {
3760
3760
  var o = e.__format, l = this.__format, s = Br(this, o);
3761
3761
  let a = Br(this, l);
3762
3762
  var c = zr(this, o);
3763
- let d = zr(this, l);
3764
- return (s === null ? c : s) !== (a === null ? d : a) ? !0 : s === a && c !== d ? (o = n.firstChild, o == null && I(48), e = s = document.createElement(d), Kr(i, e, this), r = r.theme.text, r !== void 0 && Hr(d, 0, l, e, r), n.replaceChild(s, o), !1) : (c = n, a !== null && s !== null && (c = n.firstChild, c == null && I(49)), Kr(i, c, this), r = r.theme.text, r !== void 0 && o !== l && Hr(d, o, l, c, r), l = this.__style, e.__style !== l && (n.style.cssText = l), !1);
3763
+ let u = zr(this, l);
3764
+ return (s === null ? c : s) !== (a === null ? u : a) ? !0 : s === a && c !== u ? (o = n.firstChild, o == null && I(48), e = s = document.createElement(u), Kr(i, e, this), r = r.theme.text, r !== void 0 && Hr(u, 0, l, e, r), n.replaceChild(s, o), !1) : (c = n, a !== null && s !== null && (c = n.firstChild, c == null && I(49)), Kr(i, c, this), r = r.theme.text, r !== void 0 && o !== l && Hr(u, o, l, c, r), l = this.__style, e.__style !== l && (n.style.cssText = l), !1);
3765
3765
  }
3766
3766
  static importDOM() {
3767
3767
  return { "#text": () => ({ conversion: xu, priority: 0 }), b: () => ({ conversion: yu, priority: 0 }), code: () => ({ conversion: Zt, priority: 0 }), em: () => ({ conversion: Zt, priority: 0 }), i: () => ({ conversion: Zt, priority: 0 }), span: () => ({ conversion: Cu, priority: 0 }), strong: () => ({ conversion: Zt, priority: 0 }), u: () => ({ conversion: Zt, priority: 0 }) };
@@ -3840,19 +3840,19 @@ class Ht extends Sr {
3840
3840
  return [];
3841
3841
  if (e[0] === r)
3842
3842
  return [n];
3843
- var d = e[0];
3843
+ var u = e[0];
3844
3844
  r = n.getParentOrThrow(), c = r.__key;
3845
- let u = n.getFormat(), g = n.getStyle(), m = n.__detail;
3846
- s = !1, n.isSegmented() ? (a = xe(d), a.__parent = c, a.__format = u, a.__style = g, a.__detail = m, s = !0) : (a = n.getWritable(), a.__text = d), n = J(), a = [a], d = d.length;
3845
+ let d = n.getFormat(), g = n.getStyle(), m = n.__detail;
3846
+ s = !1, n.isSegmented() ? (a = xe(u), a.__parent = c, a.__format = d, a.__style = g, a.__detail = m, s = !0) : (a = n.getWritable(), a.__text = u), n = J(), a = [a], u = u.length;
3847
3847
  for (let T = 1; T < l; T++) {
3848
- var h = e[T], C = h.length;
3849
- h = xe(h).getWritable(), h.__format = u, h.__style = g, h.__detail = m;
3850
- let N = h.__key;
3851
- if (C = d + C, z(n)) {
3852
- let p = n.anchor, _ = n.focus;
3853
- p.key === i && p.type === "text" && p.offset > d && p.offset <= C && (p.key = N, p.offset -= d, n.dirty = !0), _.key === i && _.type === "text" && _.offset > d && _.offset <= C && (_.key = N, _.offset -= d, n.dirty = !0);
3848
+ var h = e[T], v = h.length;
3849
+ h = xe(h).getWritable(), h.__format = d, h.__style = g, h.__detail = m;
3850
+ let w = h.__key;
3851
+ if (v = u + v, z(n)) {
3852
+ let p = n.anchor, C = n.focus;
3853
+ p.key === i && p.type === "text" && p.offset > u && p.offset <= v && (p.key = w, p.offset -= u, n.dirty = !0), C.key === i && C.type === "text" && C.offset > u && C.offset <= v && (C.key = w, C.offset -= u, n.dirty = !0);
3854
3854
  }
3855
- o === i && ge(N), d = C, h.__parent = c, a.push(h);
3855
+ o === i && ge(w), u = v, h.__parent = c, a.push(h);
3856
3856
  }
3857
3857
  return $t(this), o = r.getWritable().__children, i = o.indexOf(i), e = a.map((T) => T.__key), s ? (o.splice(i, 0, ...e), this.remove()) : o.splice(i, 1, ...e), z(n) && nr(n, r, i, l - 1), a;
3858
3858
  }
@@ -4081,7 +4081,7 @@ class Su {
4081
4081
  }
4082
4082
  parseEditorState(e, n) {
4083
4083
  e = typeof e == "string" ? JSON.parse(e) : e;
4084
- let r = Ii(), i = ye, o = le, l = de, s = this._dirtyElements, a = this._dirtyLeaves, c = this._cloneNotNeeded, d = this._dirtyType;
4084
+ let r = Ii(), i = ye, o = le, l = de, s = this._dirtyElements, a = this._dirtyLeaves, c = this._cloneNotNeeded, u = this._dirtyType;
4085
4085
  this._dirtyElements = /* @__PURE__ */ new Map(), this._dirtyLeaves = /* @__PURE__ */ new Set(), this._cloneNotNeeded = /* @__PURE__ */ new Set(), this._dirtyType = 0, ye = r, le = !1, de = this;
4086
4086
  try {
4087
4087
  ki(
@@ -4089,7 +4089,7 @@ class Su {
4089
4089
  this._nodes
4090
4090
  ), n && n(), r._readOnly = !0;
4091
4091
  } finally {
4092
- this._dirtyElements = s, this._dirtyLeaves = a, this._cloneNotNeeded = c, this._dirtyType = d, ye = i, le = o, de = l;
4092
+ this._dirtyElements = s, this._dirtyLeaves = a, this._cloneNotNeeded = c, this._dirtyType = u, ye = i, le = o, de = l;
4093
4093
  }
4094
4094
  return r;
4095
4095
  }
@@ -4260,15 +4260,15 @@ O.createCommand = function() {
4260
4260
  };
4261
4261
  O.createEditor = function(t) {
4262
4262
  var e = t || {}, n = de, r = e.theme || {};
4263
- let i = t === void 0 ? n : e.parentEditor || null, o = e.disableEvents || !1, l = Ii(), s = e.namespace || (i !== null ? i._config.namespace : ts()), a = e.editorState, c = [Bt, Ht, zt, Kt, ...e.nodes || []], d = e.onError;
4263
+ let i = t === void 0 ? n : e.parentEditor || null, o = e.disableEvents || !1, l = Ii(), s = e.namespace || (i !== null ? i._config.namespace : ts()), a = e.editorState, c = [Bt, Ht, zt, Kt, ...e.nodes || []], u = e.onError;
4264
4264
  if (e = e.editable !== void 0 ? e.editable : !0, t === void 0 && n !== null)
4265
4265
  t = n._nodes;
4266
4266
  else
4267
4267
  for (t = /* @__PURE__ */ new Map(), n = 0; n < c.length; n++) {
4268
- let u = c[n], g = u.getType();
4269
- t.set(g, { klass: u, transforms: /* @__PURE__ */ new Set() });
4268
+ let d = c[n], g = d.getType();
4269
+ t.set(g, { klass: d, transforms: /* @__PURE__ */ new Set() });
4270
4270
  }
4271
- return r = new Su(l, i, t, { disableEvents: o, namespace: s, theme: r }, d || console.error, Tu(t), e), a !== void 0 && (r._pendingEditorState = a, r._dirtyType = 2), r;
4271
+ return r = new Su(l, i, t, { disableEvents: o, namespace: s, theme: r }, u || console.error, Tu(t), e), a !== void 0 && (r._pendingEditorState = a, r._dirtyType = 2), r;
4272
4272
  };
4273
4273
  const wu = O;
4274
4274
  var y = wu, wo = pe, qt = y, ir = R, Ru = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? ir.useLayoutEffect : ir.useEffect;
@@ -4302,12 +4302,12 @@ function Ou(t, e) {
4302
4302
  Nl.LexicalComposer = function({ initialConfig: t, children: e }) {
4303
4303
  let n = ir.useMemo(() => {
4304
4304
  const { theme: r, namespace: i, editor__DEPRECATED: o, nodes: l, onError: s, editorState: a } = t, c = wo.createLexicalComposerContext(null, r);
4305
- let d = o || null;
4306
- if (d === null) {
4307
- const u = qt.createEditor({ editable: !1, namespace: i, nodes: l, onError: (g) => s(g, u), theme: r });
4308
- Ou(u, a), d = u;
4305
+ let u = o || null;
4306
+ if (u === null) {
4307
+ const d = qt.createEditor({ editable: !1, namespace: i, nodes: l, onError: (g) => s(g, d), theme: r });
4308
+ Ou(d, a), u = d;
4309
4309
  }
4310
- return [d, c];
4310
+ return [u, c];
4311
4311
  }, []);
4312
4312
  return Ru(() => {
4313
4313
  let r = t.editable, [i] = n;
@@ -4835,11 +4835,11 @@ function Mo(t, e, n) {
4835
4835
  e = bs(n) - 1;
4836
4836
  let a = e % s.length;
4837
4837
  var l = s[a];
4838
- let c = o[n.__tag], d;
4839
- if (o = o.nested, o !== void 0 && o.list && (d = o.list), c !== void 0 && r.push(c), l !== void 0)
4838
+ let c = o[n.__tag], u;
4839
+ if (o = o.nested, o !== void 0 && o.list && (u = o.list), c !== void 0 && r.push(c), l !== void 0)
4840
4840
  for (l = l.split(" "), r.push(...l), l = 0; l < s.length; l++)
4841
4841
  l !== a && i.push(n.__tag + l);
4842
- d !== void 0 && (n = d.split(" "), 1 < e ? r.push(...n) : i.push(...n));
4842
+ u !== void 0 && (n = u.split(" "), 1 < e ? r.push(...n) : i.push(...n));
4843
4843
  }
4844
4844
  0 < i.length && yn.removeClassNamesFromElement(t, ...i), 0 < r.length && yn.addClassNamesToElement(t, ...r);
4845
4845
  }
@@ -4990,25 +4990,25 @@ function Hu(t) {
4990
4990
  let [a, c] = t.getCharacterOffsets();
4991
4991
  if (t = t.getNodes(), t.length === 0)
4992
4992
  return { nodeMap: [], range: [] };
4993
- let d = t.length;
4993
+ let u = t.length;
4994
4994
  var r = t[0], i = r.getParent();
4995
4995
  if (i !== null && (!i.canBeEmpty() || F.$isRootNode(i))) {
4996
4996
  var o = i.__children;
4997
- if (o.length === d) {
4997
+ if (o.length === u) {
4998
4998
  for (var l = !0, s = 0; s < o.length; s++)
4999
4999
  if (o[s] !== t[s].__key) {
5000
5000
  l = !1;
5001
5001
  break;
5002
5002
  }
5003
- l && (d++, t.push(i));
5003
+ l && (u++, t.push(i));
5004
5004
  }
5005
5005
  }
5006
- for (i = t[d - 1], e = e.isBefore(n), n = /* @__PURE__ */ new Map(), o = [], l = F.$isTextNode(r) && d === 1, ko(r, e ? a : c, l ? e ? c : a : void 0, !0, o, n), r = 0; r < d; r++) {
5006
+ for (i = t[u - 1], e = e.isBefore(n), n = /* @__PURE__ */ new Map(), o = [], l = F.$isTextNode(r) && u === 1, ko(r, e ? a : c, l ? e ? c : a : void 0, !0, o, n), r = 0; r < u; r++) {
5007
5007
  s = t[r];
5008
- let u = s.getKey();
5009
- if (!(n.has(u) || F.$isElementNode(s) && s.excludeFromCopy("clone"))) {
5008
+ let d = s.getKey();
5009
+ if (!(n.has(d) || F.$isElementNode(s) && s.excludeFromCopy("clone"))) {
5010
5010
  let g = lr(s);
5011
- F.$isRootNode(s.getParent()) && o.push(s.getKey()), u !== "root" && n.set(u, g);
5011
+ F.$isRootNode(s.getParent()) && o.push(s.getKey()), d !== "root" && n.set(d, g);
5012
5012
  }
5013
5013
  }
5014
5014
  return ko(i, l ? void 0 : e ? c : a, void 0, !1, o, n), { nodeMap: Array.from(n.entries()), range: o };
@@ -5068,23 +5068,23 @@ function Jn(t, e, n, r, i = null) {
5068
5068
  break;
5069
5069
  }
5070
5070
  c = /* @__PURE__ */ new Set();
5071
- for (var d = 0; d < n; d++) {
5072
- var u = e[d];
5073
- F.$isElementNode(u) && u.getChildrenSize() === 0 && c.add(u.getKey());
5071
+ for (var u = 0; u < n; u++) {
5072
+ var d = e[u];
5073
+ F.$isElementNode(d) && d.getChildrenSize() === 0 && c.add(d.getKey());
5074
5074
  }
5075
5075
  var g = /* @__PURE__ */ new Set();
5076
- for (d = 0; d < n; d++) {
5077
- u = e[d];
5078
- var m = u.getParent();
5079
- if (m !== null && m.isInline() && (m = m.getParent()), m !== null && F.$isLeafNode(u) && !g.has(u.getKey())) {
5080
- if (u = m.getKey(), l.get(u) === void 0) {
5076
+ for (u = 0; u < n; u++) {
5077
+ d = e[u];
5078
+ var m = d.getParent();
5079
+ if (m !== null && m.isInline() && (m = m.getParent()), m !== null && F.$isLeafNode(d) && !g.has(d.getKey())) {
5080
+ if (d = m.getKey(), l.get(d) === void 0) {
5081
5081
  let h = r();
5082
- h.setFormat(m.getFormatType()), h.setIndent(m.getIndent()), s.push(h), l.set(u, h), m.getChildren().forEach((C) => {
5083
- h.append(C), g.add(C.getKey());
5082
+ h.setFormat(m.getFormatType()), h.setIndent(m.getIndent()), s.push(h), l.set(d, h), m.getChildren().forEach((v) => {
5083
+ h.append(v), g.add(v.getKey());
5084
5084
  }), Ku(m);
5085
5085
  }
5086
5086
  } else
5087
- c.has(u.getKey()) && (m = r(), m.setFormat(u.getFormatType()), m.setIndent(u.getIndent()), s.push(m), u.remove(!0));
5087
+ c.has(d.getKey()) && (m = r(), m.setFormat(d.getFormatType()), m.setIndent(d.getIndent()), s.push(m), d.remove(!0));
5088
5088
  }
5089
5089
  if (i !== null)
5090
5090
  for (e = 0; e < s.length; e++)
@@ -5173,8 +5173,8 @@ ae.$patchStyleText = function(t, e) {
5173
5173
  t = i.getTextContent().length;
5174
5174
  var a = s.offset, c = l.offset;
5175
5175
  if (l = (s = l.isBefore(s)) ? c : a, s = s ? a : c, l === i.getTextContentSize()) {
5176
- let d = i.getNextSibling();
5177
- F.$isTextNode(d) && (l = c = 0, i = d);
5176
+ let u = i.getNextSibling();
5177
+ F.$isTextNode(u) && (l = c = 0, i = u);
5178
5178
  }
5179
5179
  if (i.is(o))
5180
5180
  F.$isTextNode(i) && (l = c > a ? a : c, s = c > a ? c : a, l !== s && (l === 0 && s === t ? (Jt(i, e), i.select(l, s)) : (n = i.splitText(l, s), n = l === 0 ? n[0] : n[1], Jt(n, e), n.select(0, s - l))));
@@ -5285,11 +5285,11 @@ ae.trimTextContentFromAnchor = function(t, e, n) {
5285
5285
  if (!F.$isTextNode(r) || n >= i)
5286
5286
  s = r.getParent(), r.remove(), s != null && s.getChildrenSize() === 0 && s.remove(), n -= i + l, r = o;
5287
5287
  else {
5288
- let d = r.getKey();
5288
+ let u = r.getKey();
5289
5289
  o = t.getEditorState().read(() => {
5290
- const u = F.$getNodeByKey(d);
5291
- return F.$isTextNode(u) && u.isSimpleText() ? u.getTextContent() : null;
5292
- }), o !== null && o !== a ? (n = F.$getPreviousSelection(), i = r, r.isSimpleText() ? r.setTextContent(o) : (i = F.$createTextNode(o), r.replace(i)), F.$isRangeSelection(n) && n.isCollapsed() && (n = n.anchor.offset, i.select(n, n))) : r.isSimpleText() ? (o = e.key === d, l = e.offset, l < n && (l = i), n = o ? l - n : 0, i = o ? l : s, o && n === 0 ? ([n] = r.splitText(n, i), n.remove()) : ([, n] = r.splitText(n, i), n.remove())) : (n = F.$createTextNode(c), r.replace(n)), n = 0;
5290
+ const d = F.$getNodeByKey(u);
5291
+ return F.$isTextNode(d) && d.isSimpleText() ? d.getTextContent() : null;
5292
+ }), o !== null && o !== a ? (n = F.$getPreviousSelection(), i = r, r.isSimpleText() ? r.setTextContent(o) : (i = F.$createTextNode(o), r.replace(i)), F.$isRangeSelection(n) && n.isCollapsed() && (n = n.anchor.offset, i.select(n, n))) : r.isSimpleText() ? (o = e.key === u, l = e.offset, l < n && (l = i), n = o ? l - n : 0, i = o ? l : s, o && n === 0 ? ([n] = r.splitText(n, i), n.remove()) : ([, n] = r.splitText(n, i), n.remove())) : (n = F.$createTextNode(c), r.replace(n)), n = 0;
5293
5293
  }
5294
5294
  }
5295
5295
  };
@@ -5302,15 +5302,15 @@ function Ys(t, e, n, r = null) {
5302
5302
  let s = Rt.$isElementNode(l) ? l.getChildren() : [], { element: a, after: c } = l.exportDOM(t);
5303
5303
  if (!a)
5304
5304
  return !1;
5305
- let d = new DocumentFragment();
5306
- for (let u = 0; u < s.length; u++) {
5307
- let g = s[u], m = Ys(t, g, d, r);
5305
+ let u = new DocumentFragment();
5306
+ for (let d = 0; d < s.length; d++) {
5307
+ let g = s[d], m = Ys(t, g, u, r);
5308
5308
  !i && Rt.$isElementNode(e) && m && e.extractWithChild(g, r, "html") && (i = !0);
5309
5309
  }
5310
- return i && !o ? (a.append(d), n.append(a), c && (t = c.call(
5310
+ return i && !o ? (a.append(u), n.append(a), c && (t = c.call(
5311
5311
  l,
5312
5312
  a
5313
- )) && a.replaceWith(t)) : n.append(d), i;
5313
+ )) && a.replaceWith(t)) : n.append(u), i;
5314
5314
  }
5315
5315
  let Gs = /* @__PURE__ */ new Set(["STYLE"]);
5316
5316
  function js(t, e, n = /* @__PURE__ */ new Map(), r, i = !1) {
@@ -5325,16 +5325,16 @@ function js(t, e, n = /* @__PURE__ */ new Map(), r, i = !1) {
5325
5325
  var c = (c = s !== null ? s.conversion : null) ? c(t, void 0, i) : null;
5326
5326
  if (s = null, c !== null) {
5327
5327
  if (s = c.after, l = c.node, l !== null) {
5328
- for (var [, d] of n)
5329
- if (l = d(l, r), !l)
5328
+ for (var [, u] of n)
5329
+ if (l = u(l, r), !l)
5330
5330
  break;
5331
5331
  l && o.push(l);
5332
5332
  }
5333
5333
  c.forChild != null && n.set(t.nodeName, c.forChild);
5334
5334
  }
5335
- for (t = t.childNodes, r = [], d = 0; d < t.length; d++)
5335
+ for (t = t.childNodes, r = [], u = 0; u < t.length; u++)
5336
5336
  r.push(...js(
5337
- t[d],
5337
+ t[u],
5338
5338
  e,
5339
5339
  new Map(n),
5340
5340
  l,
@@ -5384,26 +5384,26 @@ function Gu(t, e, n, r) {
5384
5384
  e = (i = l && ln.$findMatchingParent(l, (m) => B.DEPRECATED_$isGridRowNode(m))) && ln.$findMatchingParent(i, (m) => B.DEPRECATED_$isGridNode(m)), B.DEPRECATED_$isGridCellNode(l) && B.DEPRECATED_$isGridRowNode(i) && B.DEPRECATED_$isGridNode(e) || Ve(43);
5385
5385
  var s = i.getIndexWithinParent(), a = Math.min(e.getChildrenSize() - 1, s + o - 1);
5386
5386
  o = l.getIndexWithinParent(), l = Math.min(i.getChildrenSize() - 1, o + n - 1), n = Math.min(o, l), i = Math.min(s, a), o = Math.max(o, l), s = Math.max(s, a), a = e.getChildren(), l = 0;
5387
- let c, d;
5387
+ let c, u;
5388
5388
  for (let m = i; m <= s; m++) {
5389
- var u = a[m];
5390
- B.DEPRECATED_$isGridRowNode(u) || Ve(24);
5389
+ var d = a[m];
5390
+ B.DEPRECATED_$isGridRowNode(d) || Ve(24);
5391
5391
  var g = t[l];
5392
- B.DEPRECATED_$isGridRowNode(g) || Ve(24), u = u.getChildren(), g = g.getChildren();
5392
+ B.DEPRECATED_$isGridRowNode(g) || Ve(24), d = d.getChildren(), g = g.getChildren();
5393
5393
  let h = 0;
5394
- for (let C = n; C <= o; C++) {
5395
- let T = u[C];
5394
+ for (let v = n; v <= o; v++) {
5395
+ let T = d[v];
5396
5396
  B.DEPRECATED_$isGridCellNode(T) || Ve(25);
5397
- let N = g[h];
5398
- B.DEPRECATED_$isGridCellNode(N) || Ve(25), m === i && C === n ? c = T.getKey() : m === s && C === o && (d = T.getKey());
5397
+ let w = g[h];
5398
+ B.DEPRECATED_$isGridCellNode(w) || Ve(25), m === i && v === n ? c = T.getKey() : m === s && v === o && (u = T.getKey());
5399
5399
  let p = T.getChildren();
5400
- N.getChildren().forEach((_) => {
5401
- B.$isTextNode(_) && B.$createParagraphNode().append(_), T.append(_);
5402
- }), p.forEach((_) => _.remove()), h++;
5400
+ w.getChildren().forEach((C) => {
5401
+ B.$isTextNode(C) && B.$createParagraphNode().append(C), T.append(C);
5402
+ }), p.forEach((C) => C.remove()), h++;
5403
5403
  }
5404
5404
  l++;
5405
5405
  }
5406
- c && d && (t = B.DEPRECATED_$createGridSelection(), t.set(e.getKey(), c, d), B.$setSelection(t), r.dispatchCommand(B.SELECTION_CHANGE_COMMAND, void 0));
5406
+ c && u && (t = B.DEPRECATED_$createGridSelection(), t.set(e.getKey(), c, u), B.$setSelection(t), r.dispatchCommand(B.SELECTION_CHANGE_COMMAND, void 0));
5407
5407
  }
5408
5408
  function Js(t, e, n, r = []) {
5409
5409
  let i = e != null ? n.isSelected() : !0, o = B.$isElementNode(n) && n.excludeFromCopy("html");
@@ -5415,9 +5415,9 @@ function Js(t, e, n, r = []) {
5415
5415
  let a = B.$isElementNode(l) ? l.getChildren() : [];
5416
5416
  var c = l;
5417
5417
  s = c.exportJSON(), s.type !== c.constructor.getType() && Ve(58);
5418
- var d = s.children;
5419
- for (B.$isElementNode(c) && (Array.isArray(d) || Ve(59)), B.$isTextNode(l) && (s.text = l.__text), l = 0; l < a.length; l++)
5420
- c = a[l], d = Js(t, e, c, s.children), !i && B.$isElementNode(n) && d && n.extractWithChild(c, e, "clone") && (i = !0);
5418
+ var u = s.children;
5419
+ for (B.$isElementNode(c) && (Array.isArray(u) || Ve(59)), B.$isTextNode(l) && (s.text = l.__text), l = 0; l < a.length; l++)
5420
+ c = a[l], u = Js(t, e, c, s.children), !i && B.$isElementNode(n) && u && n.extractWithChild(c, e, "clone") && (i = !0);
5421
5421
  if (i && !o)
5422
5422
  r.push(s);
5423
5423
  else if (Array.isArray(s.children))
@@ -5483,12 +5483,12 @@ ot.$insertDataTransferForRichText = function(t, e, n) {
5483
5483
  };
5484
5484
  ot.$insertGeneratedNodes = mi;
5485
5485
  const ju = ot;
5486
- var Zu = ju, sr = Zu, Bn = Fe, Mt = _e, x = y;
5486
+ var Zu = ju, sr = Zu, Bn = Fe, Mt = _e, N = y;
5487
5487
  let Wt = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Ju = Wt && "documentMode" in document ? document.documentMode : null;
5488
5488
  Wt && /Mac|iPod|iPhone|iPad/.test(navigator.platform);
5489
5489
  Wt && /^(?!.*Seamonkey)(?=.*Firefox).*/i.test(navigator.userAgent);
5490
5490
  let Xu = Wt && "InputEvent" in window && !Ju ? "getTargetRanges" in new window.InputEvent("input") : !1, Qu = Wt && /Version\/[\d.]+.*Safari/.test(navigator.userAgent), qu = Wt && /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
5491
- class On extends x.ElementNode {
5491
+ class On extends N.ElementNode {
5492
5492
  static getType() {
5493
5493
  return "quote";
5494
5494
  }
@@ -5516,18 +5516,18 @@ class On extends x.ElementNode {
5516
5516
  return { ...super.exportJSON(), type: "quote" };
5517
5517
  }
5518
5518
  insertNewAfter() {
5519
- let e = x.$createParagraphNode(), n = this.getDirection();
5519
+ let e = N.$createParagraphNode(), n = this.getDirection();
5520
5520
  return e.setDirection(n), this.insertAfter(e), e;
5521
5521
  }
5522
5522
  collapseAtStart() {
5523
- let e = x.$createParagraphNode();
5523
+ let e = N.$createParagraphNode();
5524
5524
  return this.getChildren().forEach((n) => e.append(n)), this.replace(e), !0;
5525
5525
  }
5526
5526
  }
5527
5527
  function Fi() {
5528
5528
  return new On();
5529
5529
  }
5530
- class $n extends x.ElementNode {
5530
+ class $n extends N.ElementNode {
5531
5531
  static getType() {
5532
5532
  return "heading";
5533
5533
  }
@@ -5561,11 +5561,11 @@ class $n extends x.ElementNode {
5561
5561
  return { ...super.exportJSON(), tag: this.getTag(), type: "heading", version: 1 };
5562
5562
  }
5563
5563
  insertNewAfter() {
5564
- let e = x.$createParagraphNode(), n = this.getDirection();
5564
+ let e = N.$createParagraphNode(), n = this.getDirection();
5565
5565
  return e.setDirection(n), this.insertAfter(e), e;
5566
5566
  }
5567
5567
  collapseAtStart() {
5568
- let e = x.$createParagraphNode();
5568
+ let e = N.$createParagraphNode();
5569
5569
  return this.getChildren().forEach((n) => e.append(n)), this.replace(e), !0;
5570
5570
  }
5571
5571
  extractWithChild() {
@@ -5588,12 +5588,12 @@ function ar(t) {
5588
5588
  }
5589
5589
  function td(t, e) {
5590
5590
  t.preventDefault(), e.update(() => {
5591
- let n = x.$getSelection(), r = t instanceof InputEvent || t instanceof KeyboardEvent ? null : t.clipboardData;
5592
- r != null && (x.$isRangeSelection(n) || x.DEPRECATED_$isGridSelection(n)) && sr.$insertDataTransferForRichText(r, n, e);
5591
+ let n = N.$getSelection(), r = t instanceof InputEvent || t instanceof KeyboardEvent ? null : t.clipboardData;
5592
+ r != null && (N.$isRangeSelection(n) || N.DEPRECATED_$isGridSelection(n)) && sr.$insertDataTransferForRichText(r, n, e);
5593
5593
  }, { tag: "paste" });
5594
5594
  }
5595
5595
  function qs(t, e) {
5596
- var n = x.$getSelection();
5596
+ var n = N.$getSelection();
5597
5597
  if (n !== null) {
5598
5598
  t.preventDefault(), t = t instanceof KeyboardEvent ? null : t.clipboardData;
5599
5599
  let r = sr.$getHtmlContent(e);
@@ -5601,11 +5601,11 @@ function qs(t, e) {
5601
5601
  }
5602
5602
  }
5603
5603
  function nd(t, e) {
5604
- qs(t, e), t = x.$getSelection(), x.$isRangeSelection(t) ? t.removeText() : x.$isNodeSelection(t) && t.getNodes().forEach((n) => n.remove());
5604
+ qs(t, e), t = N.$getSelection(), N.$isRangeSelection(t) ? t.removeText() : N.$isNodeSelection(t) && t.getNodes().forEach((n) => n.remove());
5605
5605
  }
5606
5606
  function zo(t, e) {
5607
- var n = x.$getSelection();
5608
- if (x.$isRangeSelection(n)) {
5607
+ var n = N.$getSelection();
5608
+ if (N.$isRangeSelection(n)) {
5609
5609
  var r = /* @__PURE__ */ new Set();
5610
5610
  n = n.getNodes();
5611
5611
  for (let o = 0; o < n.length; o++) {
@@ -5616,7 +5616,7 @@ function zo(t, e) {
5616
5616
  }
5617
5617
  }
5618
5618
  function zn(t) {
5619
- return t = x.$getNearestNodeFromDOMNode(t), x.$isDecoratorNode(t);
5619
+ return t = N.$getNearestNodeFromDOMNode(t), N.$isDecoratorNode(t);
5620
5620
  }
5621
5621
  it.$createHeadingNode = ar;
5622
5622
  it.$createQuoteNode = Fi;
@@ -5630,158 +5630,158 @@ it.HeadingNode = $n;
5630
5630
  it.QuoteNode = On;
5631
5631
  it.registerRichText = function(t) {
5632
5632
  return Mt.mergeRegister(
5633
- t.registerCommand(x.CLICK_COMMAND, () => {
5634
- const e = x.$getSelection();
5635
- return x.$isNodeSelection(e) ? (e.clear(), !0) : !1;
5633
+ t.registerCommand(N.CLICK_COMMAND, () => {
5634
+ const e = N.$getSelection();
5635
+ return N.$isNodeSelection(e) ? (e.clear(), !0) : !1;
5636
5636
  }, 0),
5637
- t.registerCommand(x.DELETE_CHARACTER_COMMAND, (e) => {
5638
- const n = x.$getSelection();
5639
- return x.$isRangeSelection(n) ? (n.deleteCharacter(e), !0) : !1;
5640
- }, x.COMMAND_PRIORITY_EDITOR),
5641
- t.registerCommand(x.DELETE_WORD_COMMAND, (e) => {
5642
- const n = x.$getSelection();
5643
- return x.$isRangeSelection(n) ? (n.deleteWord(e), !0) : !1;
5644
- }, x.COMMAND_PRIORITY_EDITOR),
5645
- t.registerCommand(x.DELETE_LINE_COMMAND, (e) => {
5646
- const n = x.$getSelection();
5647
- return x.$isRangeSelection(n) ? (n.deleteLine(e), !0) : !1;
5648
- }, x.COMMAND_PRIORITY_EDITOR),
5649
- t.registerCommand(x.CONTROLLED_TEXT_INSERTION_COMMAND, (e) => {
5650
- const n = x.$getSelection();
5637
+ t.registerCommand(N.DELETE_CHARACTER_COMMAND, (e) => {
5638
+ const n = N.$getSelection();
5639
+ return N.$isRangeSelection(n) ? (n.deleteCharacter(e), !0) : !1;
5640
+ }, N.COMMAND_PRIORITY_EDITOR),
5641
+ t.registerCommand(N.DELETE_WORD_COMMAND, (e) => {
5642
+ const n = N.$getSelection();
5643
+ return N.$isRangeSelection(n) ? (n.deleteWord(e), !0) : !1;
5644
+ }, N.COMMAND_PRIORITY_EDITOR),
5645
+ t.registerCommand(N.DELETE_LINE_COMMAND, (e) => {
5646
+ const n = N.$getSelection();
5647
+ return N.$isRangeSelection(n) ? (n.deleteLine(e), !0) : !1;
5648
+ }, N.COMMAND_PRIORITY_EDITOR),
5649
+ t.registerCommand(N.CONTROLLED_TEXT_INSERTION_COMMAND, (e) => {
5650
+ const n = N.$getSelection();
5651
5651
  if (typeof e == "string")
5652
- x.$isRangeSelection(n) ? n.insertText(e) : x.DEPRECATED_$isGridSelection(n);
5652
+ N.$isRangeSelection(n) ? n.insertText(e) : N.DEPRECATED_$isGridSelection(n);
5653
5653
  else {
5654
- if (!x.$isRangeSelection(n) && !x.DEPRECATED_$isGridSelection(n))
5654
+ if (!N.$isRangeSelection(n) && !N.DEPRECATED_$isGridSelection(n))
5655
5655
  return !1;
5656
5656
  const r = e.dataTransfer;
5657
- r != null ? sr.$insertDataTransferForRichText(r, n, t) : x.$isRangeSelection(n) && (e = e.data) && n.insertText(e);
5657
+ r != null ? sr.$insertDataTransferForRichText(r, n, t) : N.$isRangeSelection(n) && (e = e.data) && n.insertText(e);
5658
5658
  }
5659
5659
  return !0;
5660
- }, x.COMMAND_PRIORITY_EDITOR),
5661
- t.registerCommand(x.REMOVE_TEXT_COMMAND, () => {
5662
- const e = x.$getSelection();
5663
- return x.$isRangeSelection(e) ? (e.removeText(), !0) : !1;
5664
- }, x.COMMAND_PRIORITY_EDITOR),
5665
- t.registerCommand(x.FORMAT_TEXT_COMMAND, (e) => {
5666
- const n = x.$getSelection();
5667
- return x.$isRangeSelection(n) ? (n.formatText(e), !0) : !1;
5668
- }, x.COMMAND_PRIORITY_EDITOR),
5669
- t.registerCommand(x.FORMAT_ELEMENT_COMMAND, (e) => {
5670
- var n = x.$getSelection();
5671
- if (!x.$isRangeSelection(n) && !x.$isNodeSelection(n))
5660
+ }, N.COMMAND_PRIORITY_EDITOR),
5661
+ t.registerCommand(N.REMOVE_TEXT_COMMAND, () => {
5662
+ const e = N.$getSelection();
5663
+ return N.$isRangeSelection(e) ? (e.removeText(), !0) : !1;
5664
+ }, N.COMMAND_PRIORITY_EDITOR),
5665
+ t.registerCommand(N.FORMAT_TEXT_COMMAND, (e) => {
5666
+ const n = N.$getSelection();
5667
+ return N.$isRangeSelection(n) ? (n.formatText(e), !0) : !1;
5668
+ }, N.COMMAND_PRIORITY_EDITOR),
5669
+ t.registerCommand(N.FORMAT_ELEMENT_COMMAND, (e) => {
5670
+ var n = N.$getSelection();
5671
+ if (!N.$isRangeSelection(n) && !N.$isNodeSelection(n))
5672
5672
  return !1;
5673
5673
  n = n.getNodes();
5674
5674
  for (const r of n)
5675
5675
  Mt.$getNearestBlockElementAncestorOrThrow(r).setFormat(e);
5676
5676
  return !0;
5677
- }, x.COMMAND_PRIORITY_EDITOR),
5678
- t.registerCommand(x.INSERT_LINE_BREAK_COMMAND, (e) => {
5679
- const n = x.$getSelection();
5680
- return x.$isRangeSelection(n) ? (n.insertLineBreak(e), !0) : !1;
5681
- }, x.COMMAND_PRIORITY_EDITOR),
5682
- t.registerCommand(x.INSERT_PARAGRAPH_COMMAND, () => {
5683
- const e = x.$getSelection();
5684
- return x.$isRangeSelection(e) ? (e.insertParagraph(), !0) : !1;
5685
- }, x.COMMAND_PRIORITY_EDITOR),
5677
+ }, N.COMMAND_PRIORITY_EDITOR),
5678
+ t.registerCommand(N.INSERT_LINE_BREAK_COMMAND, (e) => {
5679
+ const n = N.$getSelection();
5680
+ return N.$isRangeSelection(n) ? (n.insertLineBreak(e), !0) : !1;
5681
+ }, N.COMMAND_PRIORITY_EDITOR),
5682
+ t.registerCommand(N.INSERT_PARAGRAPH_COMMAND, () => {
5683
+ const e = N.$getSelection();
5684
+ return N.$isRangeSelection(e) ? (e.insertParagraph(), !0) : !1;
5685
+ }, N.COMMAND_PRIORITY_EDITOR),
5686
5686
  t.registerCommand(
5687
- x.INDENT_CONTENT_COMMAND,
5687
+ N.INDENT_CONTENT_COMMAND,
5688
5688
  () => (zo(() => {
5689
- t.dispatchCommand(x.CONTROLLED_TEXT_INSERTION_COMMAND, " ");
5689
+ t.dispatchCommand(N.CONTROLLED_TEXT_INSERTION_COMMAND, " ");
5690
5690
  }, (e) => {
5691
5691
  const n = e.getIndent();
5692
5692
  n !== 10 && e.setIndent(n + 1);
5693
5693
  }), !0),
5694
- x.COMMAND_PRIORITY_EDITOR
5694
+ N.COMMAND_PRIORITY_EDITOR
5695
5695
  ),
5696
- t.registerCommand(x.OUTDENT_CONTENT_COMMAND, () => (zo((e) => {
5697
- x.$isTextNode(e) && (e = e.getTextContent(), e[e.length - 1] === " " && t.dispatchCommand(x.DELETE_CHARACTER_COMMAND, !0));
5696
+ t.registerCommand(N.OUTDENT_CONTENT_COMMAND, () => (zo((e) => {
5697
+ N.$isTextNode(e) && (e = e.getTextContent(), e[e.length - 1] === " " && t.dispatchCommand(N.DELETE_CHARACTER_COMMAND, !0));
5698
5698
  }, (e) => {
5699
5699
  const n = e.getIndent();
5700
5700
  n !== 0 && e.setIndent(n - 1);
5701
- }), !0), x.COMMAND_PRIORITY_EDITOR),
5702
- t.registerCommand(x.KEY_ARROW_UP_COMMAND, (e) => {
5703
- const n = x.$getSelection();
5704
- return x.$isNodeSelection(n) && !zn(e.target) && (e = n.getNodes(), 0 < e.length) ? (e[0].selectPrevious(), !0) : !1;
5705
- }, x.COMMAND_PRIORITY_EDITOR),
5706
- t.registerCommand(x.KEY_ARROW_DOWN_COMMAND, () => {
5707
- var e = x.$getSelection();
5708
- return x.$isNodeSelection(e) && (e = e.getNodes(), 0 < e.length) ? (e[0].selectNext(0, 0), !0) : !1;
5709
- }, x.COMMAND_PRIORITY_EDITOR),
5710
- t.registerCommand(x.KEY_ARROW_LEFT_COMMAND, (e) => {
5711
- const n = x.$getSelection();
5712
- if (x.$isNodeSelection(n)) {
5701
+ }), !0), N.COMMAND_PRIORITY_EDITOR),
5702
+ t.registerCommand(N.KEY_ARROW_UP_COMMAND, (e) => {
5703
+ const n = N.$getSelection();
5704
+ return N.$isNodeSelection(n) && !zn(e.target) && (e = n.getNodes(), 0 < e.length) ? (e[0].selectPrevious(), !0) : !1;
5705
+ }, N.COMMAND_PRIORITY_EDITOR),
5706
+ t.registerCommand(N.KEY_ARROW_DOWN_COMMAND, () => {
5707
+ var e = N.$getSelection();
5708
+ return N.$isNodeSelection(e) && (e = e.getNodes(), 0 < e.length) ? (e[0].selectNext(0, 0), !0) : !1;
5709
+ }, N.COMMAND_PRIORITY_EDITOR),
5710
+ t.registerCommand(N.KEY_ARROW_LEFT_COMMAND, (e) => {
5711
+ const n = N.$getSelection();
5712
+ if (N.$isNodeSelection(n)) {
5713
5713
  var r = n.getNodes();
5714
5714
  if (0 < r.length)
5715
5715
  return e.preventDefault(), r[0].selectPrevious(), !0;
5716
5716
  }
5717
- return x.$isRangeSelection(n) && Bn.$shouldOverrideDefaultCharacterSelection(
5717
+ return N.$isRangeSelection(n) && Bn.$shouldOverrideDefaultCharacterSelection(
5718
5718
  n,
5719
5719
  !0
5720
5720
  ) ? (r = e.shiftKey, e.preventDefault(), Bn.$moveCharacter(n, r, !0), !0) : !1;
5721
- }, x.COMMAND_PRIORITY_EDITOR),
5722
- t.registerCommand(x.KEY_ARROW_RIGHT_COMMAND, (e) => {
5723
- const n = x.$getSelection();
5724
- if (x.$isNodeSelection(n) && !zn(e.target)) {
5721
+ }, N.COMMAND_PRIORITY_EDITOR),
5722
+ t.registerCommand(N.KEY_ARROW_RIGHT_COMMAND, (e) => {
5723
+ const n = N.$getSelection();
5724
+ if (N.$isNodeSelection(n) && !zn(e.target)) {
5725
5725
  var r = n.getNodes();
5726
5726
  if (0 < r.length)
5727
5727
  return e.preventDefault(), r[0].selectNext(0, 0), !0;
5728
5728
  }
5729
- return x.$isRangeSelection(n) ? (r = e.shiftKey, Bn.$shouldOverrideDefaultCharacterSelection(n, !1) ? (e.preventDefault(), Bn.$moveCharacter(n, r, !1), !0) : !1) : !1;
5730
- }, x.COMMAND_PRIORITY_EDITOR),
5729
+ return N.$isRangeSelection(n) ? (r = e.shiftKey, Bn.$shouldOverrideDefaultCharacterSelection(n, !1) ? (e.preventDefault(), Bn.$moveCharacter(n, r, !1), !0) : !1) : !1;
5730
+ }, N.COMMAND_PRIORITY_EDITOR),
5731
5731
  t.registerCommand(
5732
- x.KEY_BACKSPACE_COMMAND,
5732
+ N.KEY_BACKSPACE_COMMAND,
5733
5733
  (e) => {
5734
5734
  if (zn(e.target))
5735
5735
  return !1;
5736
- const n = x.$getSelection();
5737
- if (!x.$isRangeSelection(n))
5736
+ const n = N.$getSelection();
5737
+ if (!N.$isRangeSelection(n))
5738
5738
  return !1;
5739
5739
  e.preventDefault(), { anchor: e } = n;
5740
5740
  const r = e.getNode();
5741
- return n.isCollapsed() && e.offset === 0 && !x.$isRootNode(r) && 0 < Mt.$getNearestBlockElementAncestorOrThrow(r).getIndent() ? t.dispatchCommand(x.OUTDENT_CONTENT_COMMAND, void 0) : t.dispatchCommand(x.DELETE_CHARACTER_COMMAND, !0);
5741
+ return n.isCollapsed() && e.offset === 0 && !N.$isRootNode(r) && 0 < Mt.$getNearestBlockElementAncestorOrThrow(r).getIndent() ? t.dispatchCommand(N.OUTDENT_CONTENT_COMMAND, void 0) : t.dispatchCommand(N.DELETE_CHARACTER_COMMAND, !0);
5742
5742
  },
5743
- x.COMMAND_PRIORITY_EDITOR
5743
+ N.COMMAND_PRIORITY_EDITOR
5744
5744
  ),
5745
- t.registerCommand(x.KEY_DELETE_COMMAND, (e) => {
5745
+ t.registerCommand(N.KEY_DELETE_COMMAND, (e) => {
5746
5746
  if (zn(e.target))
5747
5747
  return !1;
5748
- const n = x.$getSelection();
5749
- return x.$isRangeSelection(n) ? (e.preventDefault(), t.dispatchCommand(x.DELETE_CHARACTER_COMMAND, !1)) : !1;
5750
- }, x.COMMAND_PRIORITY_EDITOR),
5751
- t.registerCommand(x.KEY_ENTER_COMMAND, (e) => {
5752
- const n = x.$getSelection();
5753
- if (!x.$isRangeSelection(n))
5748
+ const n = N.$getSelection();
5749
+ return N.$isRangeSelection(n) ? (e.preventDefault(), t.dispatchCommand(N.DELETE_CHARACTER_COMMAND, !1)) : !1;
5750
+ }, N.COMMAND_PRIORITY_EDITOR),
5751
+ t.registerCommand(N.KEY_ENTER_COMMAND, (e) => {
5752
+ const n = N.$getSelection();
5753
+ if (!N.$isRangeSelection(n))
5754
5754
  return !1;
5755
5755
  if (e !== null) {
5756
5756
  if ((qu || Qu) && Xu)
5757
5757
  return !1;
5758
5758
  if (e.preventDefault(), e.shiftKey)
5759
- return t.dispatchCommand(x.INSERT_LINE_BREAK_COMMAND, !1);
5760
- }
5761
- return t.dispatchCommand(x.INSERT_PARAGRAPH_COMMAND, void 0);
5762
- }, x.COMMAND_PRIORITY_EDITOR),
5763
- t.registerCommand(x.KEY_TAB_COMMAND, (e) => {
5764
- const n = x.$getSelection();
5765
- return x.$isRangeSelection(n) ? (e.preventDefault(), t.dispatchCommand(e.shiftKey ? x.OUTDENT_CONTENT_COMMAND : x.INDENT_CONTENT_COMMAND, void 0)) : !1;
5766
- }, x.COMMAND_PRIORITY_EDITOR),
5767
- t.registerCommand(x.KEY_ESCAPE_COMMAND, () => {
5768
- const e = x.$getSelection();
5769
- return x.$isRangeSelection(e) ? (t.blur(), !0) : !1;
5770
- }, x.COMMAND_PRIORITY_EDITOR),
5771
- t.registerCommand(x.DROP_COMMAND, (e) => {
5772
- const n = x.$getSelection();
5773
- return x.$isRangeSelection(n) ? (e.preventDefault(), !0) : !1;
5774
- }, x.COMMAND_PRIORITY_EDITOR),
5775
- t.registerCommand(x.DRAGSTART_COMMAND, (e) => {
5776
- const n = x.$getSelection();
5777
- return x.$isRangeSelection(n) ? (e.preventDefault(), !0) : !1;
5778
- }, x.COMMAND_PRIORITY_EDITOR),
5779
- t.registerCommand(x.COPY_COMMAND, (e) => (qs(e, t), !0), x.COMMAND_PRIORITY_EDITOR),
5780
- t.registerCommand(x.CUT_COMMAND, (e) => (nd(e, t), !0), x.COMMAND_PRIORITY_EDITOR),
5781
- t.registerCommand(x.PASTE_COMMAND, (e) => {
5782
- const n = x.$getSelection();
5783
- return x.$isRangeSelection(n) || x.DEPRECATED_$isGridSelection(n) ? (td(e, t), !0) : !1;
5784
- }, x.COMMAND_PRIORITY_EDITOR)
5759
+ return t.dispatchCommand(N.INSERT_LINE_BREAK_COMMAND, !1);
5760
+ }
5761
+ return t.dispatchCommand(N.INSERT_PARAGRAPH_COMMAND, void 0);
5762
+ }, N.COMMAND_PRIORITY_EDITOR),
5763
+ t.registerCommand(N.KEY_TAB_COMMAND, (e) => {
5764
+ const n = N.$getSelection();
5765
+ return N.$isRangeSelection(n) ? (e.preventDefault(), t.dispatchCommand(e.shiftKey ? N.OUTDENT_CONTENT_COMMAND : N.INDENT_CONTENT_COMMAND, void 0)) : !1;
5766
+ }, N.COMMAND_PRIORITY_EDITOR),
5767
+ t.registerCommand(N.KEY_ESCAPE_COMMAND, () => {
5768
+ const e = N.$getSelection();
5769
+ return N.$isRangeSelection(e) ? (t.blur(), !0) : !1;
5770
+ }, N.COMMAND_PRIORITY_EDITOR),
5771
+ t.registerCommand(N.DROP_COMMAND, (e) => {
5772
+ const n = N.$getSelection();
5773
+ return N.$isRangeSelection(n) ? (e.preventDefault(), !0) : !1;
5774
+ }, N.COMMAND_PRIORITY_EDITOR),
5775
+ t.registerCommand(N.DRAGSTART_COMMAND, (e) => {
5776
+ const n = N.$getSelection();
5777
+ return N.$isRangeSelection(n) ? (e.preventDefault(), !0) : !1;
5778
+ }, N.COMMAND_PRIORITY_EDITOR),
5779
+ t.registerCommand(N.COPY_COMMAND, (e) => (qs(e, t), !0), N.COMMAND_PRIORITY_EDITOR),
5780
+ t.registerCommand(N.CUT_COMMAND, (e) => (nd(e, t), !0), N.COMMAND_PRIORITY_EDITOR),
5781
+ t.registerCommand(N.PASTE_COMMAND, (e) => {
5782
+ const n = N.$getSelection();
5783
+ return N.$isRangeSelection(n) || N.DEPRECATED_$isGridSelection(n) ? (td(e, t), !0) : !1;
5784
+ }, N.COMMAND_PRIORITY_EDITOR)
5785
5785
  );
5786
5786
  };
5787
5787
  const rd = it;
@@ -6034,7 +6034,7 @@ ta.useLexicalNodeSelection = function(t) {
6034
6034
  const gd = ta;
6035
6035
  var na = gd;
6036
6036
  const ra = R.createContext({});
6037
- var Ie = { exports: {} }, fd = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", hd = fd, pd = hd;
6037
+ var Pe = { exports: {} }, fd = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED", hd = fd, pd = hd;
6038
6038
  function ia() {
6039
6039
  }
6040
6040
  function oa() {
@@ -6078,10 +6078,10 @@ var md = function() {
6078
6078
  };
6079
6079
  return n.PropTypes = n, n;
6080
6080
  };
6081
- Ie.exports = md();
6081
+ Pe.exports = md();
6082
6082
  const zi = R.forwardRef(({
6083
6083
  isSelected: t,
6084
- breakout: e,
6084
+ cardWidth: e,
6085
6085
  cardType: n,
6086
6086
  children: r,
6087
6087
  ...i
@@ -6094,94 +6094,97 @@ const zi = R.forwardRef(({
6094
6094
  children: r
6095
6095
  }));
6096
6096
  zi.propTypes = {
6097
- isSelected: Ie.exports.bool,
6098
- breakout: Ie.exports.oneOf(["regular", "wide", "full"])
6097
+ isSelected: Pe.exports.bool,
6098
+ cardWidth: Pe.exports.oneOf(["regular", "wide", "full"])
6099
6099
  };
6100
6100
  zi.defaultProps = {
6101
- breakout: "regular"
6101
+ cardWidth: "regular"
6102
6102
  };
6103
6103
  const Hi = ({
6104
6104
  nodeKey: t,
6105
6105
  children: e
6106
6106
  }) => {
6107
- const [n] = pe.useLexicalComposerContext(), [r, i, o] = na.useLexicalNodeSelection(t), [l, s] = R.useState(null), [a, c] = R.useState(null), d = R.useRef(null);
6107
+ const [n] = pe.useLexicalComposerContext(), [r, i, o] = na.useLexicalNodeSelection(t), [l, s] = R.useState(null), [a, c] = R.useState(null), [u, d] = R.useState("regular"), g = R.useRef(null);
6108
6108
  return R.useLayoutEffect(() => {
6109
6109
  n.getEditorState().read(() => {
6110
- const u = y.$getNodeByKey(t);
6111
- c(u.getType());
6110
+ const m = y.$getNodeByKey(t);
6111
+ c(m.getType());
6112
6112
  });
6113
6113
  }, []), R.useEffect(() => _e.mergeRegister(n.registerUpdateListener(({
6114
- editorState: u
6114
+ editorState: m
6115
6115
  }) => {
6116
- s(u.read(() => y.$getSelection()));
6117
- }), n.registerCommand(y.CLICK_COMMAND, (u) => (d.current.contains(u.target) ? (o(), i(!0)) : r && i(!1), !1), y.COMMAND_PRIORITY_LOW), n.registerCommand(y.KEY_ENTER_COMMAND, (u) => {
6118
- const g = y.$getSelection();
6119
- if (r && y.$isNodeSelection(g) && g.getNodes().length === 1) {
6120
- u.preventDefault();
6121
- const m = y.$getNodeByKey(t), h = y.$createParagraphNode();
6122
- return m.getTopLevelElementOrThrow().insertAfter(h), h.select(), !0;
6116
+ s(m.read(() => y.$getSelection()));
6117
+ }), n.registerCommand(y.CLICK_COMMAND, (m) => (g.current.contains(m.target) ? (o(), i(!0)) : r && i(!1), !1), y.COMMAND_PRIORITY_LOW), n.registerCommand(y.KEY_ENTER_COMMAND, (m) => {
6118
+ const h = y.$getSelection();
6119
+ if (r && y.$isNodeSelection(h) && h.getNodes().length === 1) {
6120
+ m.preventDefault();
6121
+ const v = y.$getNodeByKey(t), T = y.$createParagraphNode();
6122
+ return v.getTopLevelElementOrThrow().insertAfter(T), T.select(), !0;
6123
6123
  }
6124
6124
  return !1;
6125
- }, y.COMMAND_PRIORITY_EDITOR), n.registerCommand(y.KEY_BACKSPACE_COMMAND, (u) => {
6126
- const g = y.$getSelection();
6127
- if (r && y.$isNodeSelection(g) && g.getNodes().length === 1) {
6128
- u.preventDefault();
6129
- const m = y.$getNodeByKey(t);
6130
- if (m.getType() === "image" && u.target.matches("input"))
6125
+ }, y.COMMAND_PRIORITY_EDITOR), n.registerCommand(y.KEY_BACKSPACE_COMMAND, (m) => {
6126
+ const h = y.$getSelection();
6127
+ if (r && y.$isNodeSelection(h) && h.getNodes().length === 1) {
6128
+ m.preventDefault();
6129
+ const v = y.$getNodeByKey(t);
6130
+ if (v.getType() === "image" && m.target.matches("input"))
6131
6131
  return n.update(() => {
6132
- const T = m.getCaption();
6133
- m.setCaption(T.slice(0, -1));
6132
+ const p = v.getCaption();
6133
+ v.setCaption(p.slice(0, -1));
6134
6134
  }), !1;
6135
- const h = m.getPreviousSibling(), C = m.getNextSibling();
6136
- if (h)
6137
- if (h.selectEnd)
6138
- h.selectEnd();
6139
- else if (y.$isDecoratorNode(h)) {
6140
- const T = y.$createNodeSelection();
6141
- T.add(h.getKey()), y.$setSelection(T);
6135
+ const T = v.getPreviousSibling(), w = v.getNextSibling();
6136
+ if (T)
6137
+ if (T.selectEnd)
6138
+ T.selectEnd();
6139
+ else if (y.$isDecoratorNode(T)) {
6140
+ const p = y.$createNodeSelection();
6141
+ p.add(T.getKey()), y.$setSelection(p);
6142
6142
  } else
6143
- m.selectPrevious();
6144
- else if (C)
6145
- if (C.selectStart)
6146
- C.selectStart();
6147
- else if (y.$isDecoratorNode(C)) {
6148
- const T = y.$createNodeSelection();
6149
- T.add(C.getKey()), y.$setSelection(T);
6143
+ v.selectPrevious();
6144
+ else if (w)
6145
+ if (w.selectStart)
6146
+ w.selectStart();
6147
+ else if (y.$isDecoratorNode(w)) {
6148
+ const p = y.$createNodeSelection();
6149
+ p.add(w.getKey()), y.$setSelection(p);
6150
6150
  } else
6151
- m.selectNext();
6152
- return m.remove(), !0;
6151
+ v.selectNext();
6152
+ return v.remove(), !0;
6153
6153
  }
6154
6154
  return !1;
6155
- }, y.COMMAND_PRIORITY_EDITOR), n.registerCommand(y.KEY_DELETE_COMMAND, (u) => {
6156
- const g = y.$getSelection();
6157
- if (r && y.$isNodeSelection(g) && g.getNodes().length === 1) {
6158
- u.preventDefault();
6159
- const m = y.$getNodeByKey(t), h = m.getNextSibling();
6160
- if (h)
6161
- if (h.selectStart)
6162
- h.selectStart();
6163
- else if (y.$isDecoratorNode(h)) {
6164
- const C = y.$createNodeSelection();
6165
- C.add(h.getKey()), y.$setSelection(C);
6155
+ }, y.COMMAND_PRIORITY_EDITOR), n.registerCommand(y.KEY_DELETE_COMMAND, (m) => {
6156
+ const h = y.$getSelection();
6157
+ if (r && y.$isNodeSelection(h) && h.getNodes().length === 1) {
6158
+ m.preventDefault();
6159
+ const v = y.$getNodeByKey(t), T = v.getNextSibling();
6160
+ if (T)
6161
+ if (T.selectStart)
6162
+ T.selectStart();
6163
+ else if (y.$isDecoratorNode(T)) {
6164
+ const w = y.$createNodeSelection();
6165
+ w.add(T.getKey()), y.$setSelection(w);
6166
6166
  } else
6167
- m.selectNext();
6167
+ v.selectNext();
6168
6168
  else {
6169
- const C = y.$createParagraphNode();
6170
- m.getTopLevelElementOrThrow().insertAfter(C), C.select();
6169
+ const w = y.$createParagraphNode();
6170
+ v.getTopLevelElementOrThrow().insertAfter(w), w.select();
6171
6171
  }
6172
- return m.remove(), !0;
6172
+ return v.remove(), !0;
6173
6173
  }
6174
6174
  return !1;
6175
6175
  }, y.COMMAND_PRIORITY_EDITOR)), [n, r, i, o, t]), /* @__PURE__ */ f(ra.Provider, {
6176
6176
  value: {
6177
6177
  isSelected: r,
6178
+ cardWidth: u,
6179
+ setCardWidth: d,
6178
6180
  selection: l,
6179
- cardContainerRef: d
6181
+ cardContainerRef: g
6180
6182
  },
6181
6183
  children: /* @__PURE__ */ f(zi, {
6182
6184
  isSelected: r,
6183
6185
  cardType: a,
6184
- ref: d,
6186
+ ref: g,
6187
+ cardWidth: u,
6185
6188
  children: e
6186
6189
  })
6187
6190
  });
@@ -6229,7 +6232,7 @@ const la = y.createCommand(), Qi = class extends y.DecoratorNode {
6229
6232
  }
6230
6233
  };
6231
6234
  let gt = Qi;
6232
- be(gt, "kgMenu", {
6235
+ Le(gt, "kgMenu", {
6233
6236
  label: "Divider",
6234
6237
  desc: "Insert a dividing line",
6235
6238
  Icon: xl,
@@ -6277,7 +6280,7 @@ function sa({
6277
6280
  });
6278
6281
  }
6279
6282
  sa.propTypes = {
6280
- code: Ie.exports.string
6283
+ code: Pe.exports.string
6281
6284
  };
6282
6285
  y.createCommand();
6283
6286
  function yd({
@@ -6304,8 +6307,8 @@ function yd({
6304
6307
  class Vt extends y.DecoratorNode {
6305
6308
  constructor(n, r, i) {
6306
6309
  super(i);
6307
- be(this, "__code", "");
6308
- be(this, "__language", "");
6310
+ Le(this, "__code", "");
6311
+ Le(this, "__language", "");
6309
6312
  this.__language = n, this.__code = r;
6310
6313
  }
6311
6314
  static getType() {
@@ -6418,8 +6421,8 @@ function Sd({
6418
6421
  setCaption: o,
6419
6422
  isSelected: l
6420
6423
  }) {
6421
- const [s, a] = R.useState(!1), c = (d) => {
6422
- d.stopPropagation(), a(!s);
6424
+ const [s, a] = R.useState(!1), c = (u) => {
6425
+ u.stopPropagation(), a(!s);
6423
6426
  };
6424
6427
  if (R.useEffect(() => {
6425
6428
  l || a(!1);
@@ -6549,26 +6552,28 @@ function ua({
6549
6552
  setFigureRef: s,
6550
6553
  fileInputRef: a,
6551
6554
  handleDrag: c,
6552
- handleDrop: d,
6553
- isDraggedOver: u
6555
+ handleDrop: u,
6556
+ isDraggedOver: d,
6557
+ cardWidth: g
6554
6558
  }) {
6555
- const g = R.useRef(null);
6559
+ const m = R.useRef(null);
6556
6560
  return R.useEffect(() => {
6557
- s && s(g);
6558
- }, [g, s]), /* @__PURE__ */ f(Ei, {
6561
+ s && s(m);
6562
+ }, [m, s]), /* @__PURE__ */ f(Ei, {
6559
6563
  children: /* @__PURE__ */ Y("figure", {
6560
- ref: g,
6564
+ "data-kg-card-width": g,
6565
+ ref: m,
6561
6566
  children: [e ? /* @__PURE__ */ f(Od, {
6562
6567
  src: e,
6563
6568
  alt: o
6564
6569
  }) : /* @__PURE__ */ f($d, {
6565
6570
  handleDrag: c,
6566
6571
  onFileChange: n,
6567
- setFileInputRef: (h) => {
6568
- a && (a.current = h.current);
6572
+ setFileInputRef: (v) => {
6573
+ a && (a.current = v.current);
6569
6574
  },
6570
- handleDrop: d,
6571
- isDraggedOver: u
6575
+ handleDrop: u,
6576
+ isDraggedOver: d
6572
6577
  }), /* @__PURE__ */ f(Sd, {
6573
6578
  altText: o || "",
6574
6579
  setAltText: l,
@@ -6582,26 +6587,26 @@ function ua({
6582
6587
  });
6583
6588
  }
6584
6589
  ua.propTypes = {
6585
- isSelected: Ie.exports.bool,
6586
- setAltText: Ie.exports.func,
6587
- caption: Ie.exports.string,
6588
- altText: Ie.exports.string,
6589
- setCaption: Ie.exports.func,
6590
- src: Ie.exports.string,
6591
- isDraggedOver: Ie.exports.bool
6590
+ isSelected: Pe.exports.bool,
6591
+ setAltText: Pe.exports.func,
6592
+ caption: Pe.exports.string,
6593
+ altText: Pe.exports.string,
6594
+ setCaption: Pe.exports.func,
6595
+ src: Pe.exports.string,
6596
+ isDraggedOver: Pe.exports.bool
6592
6597
  };
6593
- const Ad = (t) => /* @__PURE__ */ v.createElement("svg", {
6598
+ const Ad = (t) => /* @__PURE__ */ _.createElement("svg", {
6594
6599
  width: 16,
6595
6600
  height: 16,
6596
6601
  viewBox: "0 0 16 16",
6597
6602
  xmlns: "http://www.w3.org/2000/svg",
6598
6603
  role: "img",
6599
6604
  ...t
6600
- }, /* @__PURE__ */ v.createElement("path", {
6605
+ }, /* @__PURE__ */ _.createElement("path", {
6601
6606
  fillRule: "evenodd",
6602
6607
  clipRule: "evenodd",
6603
6608
  d: "M4 8.00011H6C6.26522 8.00011 6.51957 8.10546 6.70711 8.293C6.89464 8.48054 7 8.73489 7 9.00011V13.0001C7 13.2653 6.89464 13.5197 6.70711 13.7072C6.51957 13.8947 6.26522 14.0001 6 14.0001H3C2.73478 14.0001 2.48043 13.8947 2.29289 13.7072C2.10536 13.5197 2 13.2653 2 13.0001V5.08211C2 3.90611 2.906 2.96211 4.538 2.11311C4.65448 2.05244 4.78177 2.0153 4.91261 2.00383C5.04344 1.99235 5.17525 2.00675 5.30052 2.04622C5.42579 2.08568 5.54205 2.14944 5.64268 2.23383C5.74331 2.31823 5.82633 2.42162 5.887 2.53811C5.94767 2.65459 5.9848 2.78188 5.99628 2.91271C6.00776 3.04355 5.99335 3.17536 5.95389 3.30063C5.91442 3.42589 5.85067 3.54216 5.76627 3.64279C5.68187 3.74342 5.57848 3.82644 5.462 3.88711C4.884 4.18711 4.469 4.47611 4.222 4.73411C4.054 4.90811 4 5.02011 4 5.08211V8.00011ZM13 8.00011C13.2652 8.00011 13.5196 8.10546 13.7071 8.293C13.8946 8.48054 14 8.73489 14 9.00011V9.5366C13.6143 9.60243 13.2536 9.7523 12.937 9.9445L12.9298 9.9489L12.4315 10.2608C11.9856 10.5357 11.5 11.0479 11.5 11.8252C11.5 12.5688 11.9611 13.2015 12.6323 13.4311V14.0001H10C9.73478 14.0001 9.48043 13.8947 9.29289 13.7072C9.10536 13.5197 9 13.2653 9 13.0001V5.08211C9 3.90611 9.906 2.96211 11.538 2.11311C11.6545 2.05244 11.7818 2.0153 11.9126 2.00383C12.0434 1.99235 12.1753 2.00675 12.3005 2.04622C12.4258 2.08568 12.5421 2.14944 12.6427 2.23383C12.7433 2.31823 12.8263 2.42162 12.887 2.53811C12.9477 2.65459 12.9848 2.78188 12.9963 2.91271C13.0078 3.04355 12.9934 3.17536 12.9539 3.30063C12.9144 3.42589 12.8507 3.54216 12.7663 3.64279C12.6819 3.74342 12.5785 3.82644 12.462 3.88711C11.884 4.18711 11.469 4.47611 11.222 4.73411C11.054 4.90811 11 5.02011 11 5.08211V8.00011H13ZM14.5428 15.4344C14.1182 15.4344 13.8823 15.1783 13.8823 14.7267V11.96H13.8722L13.6397 12.1082C13.4274 12.2329 13.3229 12.2734 13.1948 12.2734C12.9354 12.2734 12.75 12.0846 12.75 11.8252C12.75 11.6297 12.8646 11.4612 13.0904 11.323L13.5858 11.013C13.8688 10.8411 14.1587 10.7501 14.4249 10.7501C14.8933 10.7501 15.2 11.0635 15.2 11.5488V14.7267C15.2 15.1817 14.9641 15.4344 14.5428 15.4344Z"
6604
- })), Md = (t) => /* @__PURE__ */ v.createElement("svg", {
6609
+ })), Md = (t) => /* @__PURE__ */ _.createElement("svg", {
6605
6610
  width: 16,
6606
6611
  height: 16,
6607
6612
  viewBox: "0 0 16 16",
@@ -6609,16 +6614,16 @@ const Ad = (t) => /* @__PURE__ */ v.createElement("svg", {
6609
6614
  xmlns: "http://www.w3.org/2000/svg",
6610
6615
  role: "img",
6611
6616
  ...t
6612
- }, /* @__PURE__ */ v.createElement("path", {
6617
+ }, /* @__PURE__ */ _.createElement("path", {
6613
6618
  fillRule: "evenodd",
6614
6619
  clipRule: "evenodd",
6615
6620
  d: "M4 8.00015H6C6.26522 8.00015 6.51957 8.1055 6.70711 8.29304C6.89464 8.48058 7 8.73493 7 9.00015V13.0001C7 13.2654 6.89464 13.5197 6.70711 13.7073C6.51957 13.8948 6.26522 14.0001 6 14.0001H3C2.73478 14.0001 2.48043 13.8948 2.29289 13.7073C2.10536 13.5197 2 13.2654 2 13.0001V5.08215C2 3.90615 2.906 2.96215 4.538 2.11315C4.65448 2.05248 4.78177 2.01534 4.91261 2.00387C5.04344 1.99239 5.17525 2.00679 5.30052 2.04626C5.42579 2.08572 5.54205 2.14948 5.64268 2.23387C5.74331 2.31827 5.82633 2.42166 5.887 2.53815C5.94767 2.65463 5.9848 2.78192 5.99628 2.91275C6.00776 3.04359 5.99335 3.1754 5.95389 3.30067C5.91442 3.42593 5.85067 3.5422 5.76627 3.64283C5.68187 3.74346 5.57848 3.82648 5.462 3.88715C4.884 4.18715 4.469 4.47615 4.222 4.73415C4.054 4.90815 4 5.02015 4 5.08215V8.00015ZM13 8.00015C13.2652 8.00015 13.5196 8.1055 13.7071 8.29304C13.8946 8.48058 14 8.73493 14 9.00015V9.51812C13.4378 9.57694 12.9087 9.77735 12.4803 10.0918C11.9785 10.4601 11.5 11.0848 11.5 11.9043C11.5 12.3632 11.6772 12.8135 12.0264 13.1451C12.0604 13.1774 12.0955 13.208 12.1312 13.2369C11.9419 13.4409 11.7509 13.6922 11.6323 14.0001H10C9.73478 14.0001 9.48043 13.8948 9.29289 13.7073C9.10536 13.5197 9 13.2654 9 13.0001V5.08215C9 3.90615 9.906 2.96215 11.538 2.11315C11.6545 2.05248 11.7818 2.01534 11.9126 2.00387C12.0434 1.99239 12.1753 2.00679 12.3005 2.04626C12.4258 2.08572 12.5421 2.14948 12.6427 2.23387C12.7433 2.31827 12.8263 2.42166 12.887 2.53815C12.9477 2.65463 12.9848 2.78192 12.9963 2.91275C13.0078 3.04359 12.9934 3.1754 12.9539 3.30067C12.9144 3.42593 12.8507 3.5422 12.7663 3.64283C12.6819 3.74346 12.5785 3.82648 12.462 3.88715C11.884 4.18715 11.469 4.47615 11.222 4.73415C11.054 4.90815 11 5.02015 11 5.08215V8.00015H13ZM13.2256 15.1428C12.8903 15.1428 12.6626 14.9404 12.6626 14.6432C12.6626 14.4218 12.7891 14.2257 13.1591 13.8779L14.1616 12.907C14.4937 12.5876 14.6391 12.3789 14.6391 12.1607C14.6391 11.9045 14.4526 11.7337 14.1806 11.7337C13.9687 11.7337 13.8169 11.8255 13.6556 12.0532C13.4785 12.2872 13.3457 12.3694 13.1402 12.3694C12.8524 12.3694 12.65 12.1765 12.65 11.9045C12.65 11.2973 13.371 10.7502 14.247 10.7502C15.1546 10.7502 15.825 11.2973 15.825 12.0373C15.825 12.4959 15.5879 12.926 15.0787 13.3908L14.2881 14.1245V14.172H15.4203C15.765 14.172 15.98 14.3585 15.98 14.6621C15.98 14.9626 15.7713 15.1428 15.4203 15.1428H13.2256Z"
6616
- })), Dd = (t) => /* @__PURE__ */ v.createElement("svg", {
6621
+ })), Dd = (t) => /* @__PURE__ */ _.createElement("svg", {
6617
6622
  xmlns: "http://www.w3.org/2000/svg",
6618
6623
  viewBox: "0 0 24 24",
6619
6624
  role: "img",
6620
6625
  ...t
6621
- }, /* @__PURE__ */ v.createElement("path", {
6626
+ }, /* @__PURE__ */ _.createElement("path", {
6622
6627
  d: "M16.19 3.51a.51.51 0 0 0-.71 0L4.07 14.92a.5.5 0 0 0 0 .71l4.28 4.28a.48.48 0 0 0 .7 0L20.47 8.5a.51.51 0 0 0 0-.71ZM3 16.71a.51.51 0 0 0-.47-.13.48.48 0 0 0-.36.33L0 23.33a.49.49 0 0 0 .12.51.5.5 0 0 0 .54.16l6.42-2.14a.52.52 0 0 0 .33-.36.49.49 0 0 0-.14-.5ZM23 1a3.6 3.6 0 0 0-5 0l-.71.71a.5.5 0 0 0 0 .71l4.28 4.28a.51.51 0 0 0 .7 0L23 6a3.53 3.53 0 0 0 0-5Z"
6623
6628
  })), Ld = {
6624
6629
  bold: cl,
@@ -6647,7 +6652,7 @@ function da({
6647
6652
  children: t
6648
6653
  });
6649
6654
  }
6650
- function Pe({
6655
+ function be({
6651
6656
  label: t,
6652
6657
  isActive: e,
6653
6658
  onClick: n,
@@ -6694,7 +6699,7 @@ function kd({
6694
6699
  right: s.right
6695
6700
  });
6696
6701
  }
6697
- }, [t]);
6702
+ }, [t, n == null ? void 0 : n.cardWidth]);
6698
6703
  const l = {
6699
6704
  position: "absolute",
6700
6705
  left: ((i == null ? void 0 : i.right) - (i == null ? void 0 : i.left)) / 2,
@@ -6721,87 +6726,100 @@ function Id({
6721
6726
  const [o] = pe.useLexicalComposerContext(), [l, s] = R.useState(!1), {
6722
6727
  imageUploader: a
6723
6728
  } = R.useContext(Or), {
6724
- isSelected: c
6725
- } = R.useContext(ra), d = R.useRef(), u = R.useRef(), g = async (N) => {
6726
- const p = N.target.files, _ = await a.imageUploader(p);
6727
- _ && o.update(() => {
6728
- y.$getNodeByKey(t).setSrc(_.src);
6729
+ isSelected: c,
6730
+ cardWidth: u,
6731
+ setCardWidth: d
6732
+ } = R.useContext(ra), g = R.useRef(), m = R.useRef(), h = async (x) => {
6733
+ const E = x.target.files, S = await a.imageUploader(E);
6734
+ S && o.update(() => {
6735
+ y.$getNodeByKey(t).setSrc(S.src);
6729
6736
  });
6730
- }, m = (N) => {
6737
+ }, v = (x) => {
6731
6738
  o.update(() => {
6732
- y.$getNodeByKey(t).setCaption(N);
6739
+ y.$getNodeByKey(t).setCaption(x);
6733
6740
  });
6734
- }, h = (N) => {
6741
+ }, T = (x) => {
6735
6742
  o.update(() => {
6736
- y.$getNodeByKey(t).setAltText(N);
6743
+ y.$getNodeByKey(t).setAltText(x);
6737
6744
  });
6738
6745
  };
6739
- return R.useEffect(() => {
6746
+ R.useEffect(() => {
6740
6747
  if (!i)
6741
6748
  return;
6742
- const N = setTimeout(() => {
6749
+ const x = setTimeout(() => {
6743
6750
  cr({
6744
- fileInputRef: d
6751
+ fileInputRef: g
6745
6752
  }), o.update(() => {
6746
6753
  y.$getNodeByKey(t).setTriggerFileDialog(!1);
6747
6754
  });
6748
6755
  });
6749
6756
  return () => {
6750
- clearTimeout(N);
6757
+ clearTimeout(x);
6751
6758
  };
6752
- }), /* @__PURE__ */ Y(Ei, {
6759
+ });
6760
+ const w = (x) => {
6761
+ o.update(() => {
6762
+ y.$getNodeByKey(t).setCardWidth(x), d(x);
6763
+ });
6764
+ };
6765
+ return /* @__PURE__ */ Y(Ei, {
6753
6766
  children: [/* @__PURE__ */ f(ua, {
6754
6767
  isSelected: c,
6755
- fileInputRef: d,
6756
- onFileChange: g,
6768
+ fileInputRef: g,
6769
+ onFileChange: h,
6757
6770
  src: e,
6758
6771
  altText: n,
6759
- setAltText: h,
6772
+ setAltText: T,
6760
6773
  caption: r,
6761
- setCaption: m,
6762
- handleDrag: (N) => {
6763
- N.preventDefault(), N.stopPropagation(), N.type === "dragenter" || N.type === "dragover" ? s(!0) : N.type === "dragleave" && s(!1);
6774
+ setCaption: v,
6775
+ handleDrag: (x) => {
6776
+ x.preventDefault(), x.stopPropagation(), x.type === "dragenter" || x.type === "dragover" ? s(!0) : x.type === "dragleave" && s(!1);
6764
6777
  },
6765
- handleDrop: async (N) => {
6766
- if (N.preventDefault(), N.stopPropagation(), N.dataTransfer.files && N.dataTransfer.files[0]) {
6767
- const p = await a.imageUploader(N.dataTransfer.files);
6768
- p && (o.update(() => {
6769
- y.$getNodeByKey(t).setSrc(p.src);
6778
+ handleDrop: async (x) => {
6779
+ if (x.preventDefault(), x.stopPropagation(), x.dataTransfer.files && x.dataTransfer.files[0]) {
6780
+ const E = await a.imageUploader(x.dataTransfer.files);
6781
+ E && (o.update(() => {
6782
+ y.$getNodeByKey(t).setSrc(E.src);
6770
6783
  }), s(!1));
6771
6784
  }
6772
6785
  },
6773
- isDraggedOver: l
6786
+ isDraggedOver: l,
6787
+ cardWidth: u
6774
6788
  }), /* @__PURE__ */ Y(kd, {
6775
6789
  isVisible: e && c,
6776
6790
  "data-kg-card-toolbar": "image",
6791
+ cardWidth: u,
6777
6792
  children: [/* @__PURE__ */ f(ca, {
6778
- onFileChange: g,
6779
- fileInputRef: u
6793
+ onFileChange: h,
6794
+ fileInputRef: m
6780
6795
  }), /* @__PURE__ */ Y(da, {
6781
- children: [/* @__PURE__ */ f(Pe, {
6796
+ children: [/* @__PURE__ */ f(be, {
6782
6797
  label: "Regular",
6783
6798
  icon: "imageRegular",
6784
- isActive: !0
6785
- }), /* @__PURE__ */ f(Pe, {
6799
+ isActive: u === "regular",
6800
+ onClick: () => w("regular")
6801
+ }), /* @__PURE__ */ f(be, {
6786
6802
  label: "Wide",
6787
6803
  icon: "imageWide",
6788
- isActive: !1
6789
- }), /* @__PURE__ */ f(Pe, {
6804
+ isActive: u === "wide",
6805
+ onClick: () => w("wide")
6806
+ }), /* @__PURE__ */ f(be, {
6790
6807
  label: "Full",
6791
6808
  icon: "imageFull",
6792
- isActive: !1
6793
- }), /* @__PURE__ */ f(vi, {}), /* @__PURE__ */ f(Pe, {
6809
+ isActive: u === "full",
6810
+ onClick: () => w("full")
6811
+ }), /* @__PURE__ */ f(vi, {}), /* @__PURE__ */ f(be, {
6794
6812
  label: "Link",
6795
6813
  icon: "link",
6796
6814
  isActive: !1
6797
- }), /* @__PURE__ */ f(Pe, {
6815
+ }), /* @__PURE__ */ f(be, {
6798
6816
  label: "Replace",
6799
6817
  icon: "imageReplace",
6800
6818
  isActive: !1,
6801
6819
  onClick: () => cr({
6802
- fileInputRef: u
6820
+ fileInputRef: m
6803
6821
  })
6804
- }), /* @__PURE__ */ f(vi, {}), /* @__PURE__ */ f(Pe, {
6822
+ }), /* @__PURE__ */ f(vi, {}), /* @__PURE__ */ f(be, {
6805
6823
  label: "Snippet",
6806
6824
  icon: "snippet",
6807
6825
  isActive: !1
@@ -6831,16 +6849,18 @@ const qi = class extends y.DecoratorNode {
6831
6849
  src: n,
6832
6850
  caption: r,
6833
6851
  altText: i,
6834
- uploadProgress: o,
6835
- triggerFileDialog: l
6836
- } = {}, s) {
6837
- super(s);
6838
- be(this, "__src");
6839
- be(this, "__caption");
6840
- be(this, "__altText");
6841
- be(this, "__uploadProgress");
6842
- be(this, "__triggerFileDialog", !1);
6843
- this.__caption = r || "", this.__altText = i || "", this.__src = n || "", this.__uploadProgress = o, this.__triggerFileDialog = l || !1;
6852
+ cardWidth: o,
6853
+ uploadProgress: l,
6854
+ triggerFileDialog: s
6855
+ } = {}, a) {
6856
+ super(a);
6857
+ Le(this, "__src");
6858
+ Le(this, "__caption");
6859
+ Le(this, "__altText");
6860
+ Le(this, "__cardWidth");
6861
+ Le(this, "__uploadProgress");
6862
+ Le(this, "__triggerFileDialog", !1);
6863
+ this.__caption = r || "", this.__altText = i || "", this.__src = n || "", this.__cardWidth = o || "regular", this.__uploadProgress = l, this.__triggerFileDialog = s || !1;
6844
6864
  }
6845
6865
  static getType() {
6846
6866
  return "image";
@@ -6850,6 +6870,7 @@ const qi = class extends y.DecoratorNode {
6850
6870
  src: n.__src,
6851
6871
  caption: n.__caption,
6852
6872
  altText: n.__altText,
6873
+ cardWidth: n.__cardWidth,
6853
6874
  uploadProgress: n.__uploadProgress
6854
6875
  }, n.__key);
6855
6876
  }
@@ -6857,12 +6878,14 @@ const qi = class extends y.DecoratorNode {
6857
6878
  const {
6858
6879
  caption: r,
6859
6880
  altText: i,
6860
- src: o
6881
+ src: o,
6882
+ cardWidth: l
6861
6883
  } = n;
6862
6884
  return $r({
6863
6885
  altText: i,
6864
6886
  caption: r,
6865
- src: o
6887
+ src: o,
6888
+ cardWidth: l
6866
6889
  });
6867
6890
  }
6868
6891
  exportDOM() {
@@ -6885,7 +6908,8 @@ const qi = class extends y.DecoratorNode {
6885
6908
  altText: this.getAltText(),
6886
6909
  caption: this.getCaption(),
6887
6910
  src: r ? "<base64String>" : this.getSrc(),
6888
- type: "image"
6911
+ type: "image",
6912
+ cardWidth: this.__cardWidth
6889
6913
  };
6890
6914
  }
6891
6915
  createDOM() {
@@ -6904,6 +6928,13 @@ const qi = class extends y.DecoratorNode {
6904
6928
  const r = this.getWritable();
6905
6929
  return r.__src = n;
6906
6930
  }
6931
+ setCardWidth(n) {
6932
+ const r = this.getWritable();
6933
+ return r.__cardWidth = n;
6934
+ }
6935
+ getCardWidth() {
6936
+ return this.__cardWidth;
6937
+ }
6907
6938
  getCaption() {
6908
6939
  return this.__caption;
6909
6940
  }
@@ -6944,7 +6975,7 @@ const qi = class extends y.DecoratorNode {
6944
6975
  }
6945
6976
  };
6946
6977
  let et = qi;
6947
- be(et, "kgMenu", {
6978
+ Le(et, "kgMenu", {
6948
6979
  label: "Image",
6949
6980
  desc: "Upload, or embed with /image [url]",
6950
6981
  Icon: yl,
@@ -7105,29 +7136,29 @@ lt.registerLexicalTextEntity = function(t, e, n, r) {
7105
7136
  if (l.isSimpleText()) {
7106
7137
  var s = l.getPreviousSibling(), a = l.getTextContent(), c = l;
7107
7138
  if (Se.$isTextNode(s)) {
7108
- var d = s.getTextContent(), u = e(d + a);
7139
+ var u = s.getTextContent(), d = e(u + a);
7109
7140
  if (s instanceof n) {
7110
- if (u === null || s.getLatest().__mode !== 0) {
7141
+ if (d === null || s.getLatest().__mode !== 0) {
7111
7142
  i(s);
7112
7143
  return;
7113
7144
  }
7114
- if (u = u.end - d.length, 0 < u) {
7115
- c = a.slice(0, u), c = d + c, s.select(), s.setTextContent(c), u === a.length ? l.remove() : (s = a.slice(u), l.setTextContent(s));
7145
+ if (d = d.end - u.length, 0 < d) {
7146
+ c = a.slice(0, d), c = u + c, s.select(), s.setTextContent(c), d === a.length ? l.remove() : (s = a.slice(d), l.setTextContent(s));
7116
7147
  return;
7117
7148
  }
7118
- } else if (u === null || u.start < d.length)
7149
+ } else if (d === null || d.start < u.length)
7119
7150
  return;
7120
7151
  }
7121
7152
  for (; ; ) {
7122
- if (l = e(a), a = u = l === null ? "" : a.slice(l.end), u === "") {
7123
- if (d = c.getNextSibling(), Se.$isTextNode(d)) {
7124
- if (u = c.getTextContent() + d.getTextContent(), u = e(u), u === null) {
7125
- d instanceof n ? i(d) : d.markDirty();
7153
+ if (l = e(a), a = d = l === null ? "" : a.slice(l.end), d === "") {
7154
+ if (u = c.getNextSibling(), Se.$isTextNode(u)) {
7155
+ if (d = c.getTextContent() + u.getTextContent(), d = e(d), d === null) {
7156
+ u instanceof n ? i(u) : u.markDirty();
7126
7157
  break;
7127
- } else if (u.start !== 0)
7158
+ } else if (d.start !== 0)
7128
7159
  break;
7129
7160
  }
7130
- } else if (d = e(u), d !== null && d.start === 0)
7161
+ } else if (u = e(d), u !== null && u.start === 0)
7131
7162
  break;
7132
7163
  if (l === null)
7133
7164
  break;
@@ -7159,11 +7190,11 @@ pa.registerDragonSupport = function(t) {
7159
7190
  if (i && i.protocol === "nuanria_messaging" && i.type === "request" && (i = i.payload) && i.functionId === "makeChanges" && (i = i.args)) {
7160
7191
  const [o, l, s, a, c] = i;
7161
7192
  t.update(() => {
7162
- const d = Kn.$getSelection();
7163
- if (Kn.$isRangeSelection(d)) {
7164
- var u = d.anchor;
7165
- let g = u.getNode(), m = 0, h = 0;
7166
- Kn.$isTextNode(g) && 0 <= o && 0 <= l && (m = o, h = o + l, d.setTextNodeRange(g, m, g, h)), (m !== h || s !== "") && (d.insertRawText(s), g = u.getNode()), Kn.$isTextNode(g) && (m = a, h = a + c, u = g.getTextContentSize(), m = m > u ? u : m, h = h > u ? u : h, d.setTextNodeRange(g, m, g, h)), n.stopImmediatePropagation();
7193
+ const u = Kn.$getSelection();
7194
+ if (Kn.$isRangeSelection(u)) {
7195
+ var d = u.anchor;
7196
+ let g = d.getNode(), m = 0, h = 0;
7197
+ Kn.$isTextNode(g) && 0 <= o && 0 <= l && (m = o, h = o + l, u.setTextNodeRange(g, m, g, h)), (m !== h || s !== "") && (u.insertRawText(s), g = d.getNode()), Kn.$isTextNode(g) && (m = a, h = a + c, d = g.getTextContentSize(), m = m > d ? d : m, h = h > d ? d : h, u.setTextNodeRange(g, m, g, h)), n.stopImmediatePropagation();
7167
7198
  }
7168
7199
  });
7169
7200
  }
@@ -7219,16 +7250,16 @@ ga.RichTextPlugin = function({ contentEditable: t, placeholder: e }) {
7219
7250
  };
7220
7251
  const qd = ga;
7221
7252
  var e1 = qd, _a = {}, t1 = pe, sn = R, n1 = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u" ? sn.useLayoutEffect : sn.useEffect;
7222
- _a.ContentEditable = function({ ariaActiveDescendantID: t, ariaAutoComplete: e, ariaControls: n, ariaDescribedBy: r, ariaExpanded: i, ariaLabel: o, ariaLabelledBy: l, ariaMultiline: s, ariaOwneeID: a, ariaRequired: c, autoCapitalize: d, autoComplete: u, autoCorrect: g, className: m, id: h, role: C = "textbox", spellCheck: T = !0, style: N, tabIndex: p, testid: _ }) {
7223
- let [w] = t1.useLexicalComposerContext(), [E, S] = sn.useState(!1), $ = sn.useCallback((L) => {
7224
- w.setRootElement(L);
7225
- }, [w]);
7253
+ _a.ContentEditable = function({ ariaActiveDescendantID: t, ariaAutoComplete: e, ariaControls: n, ariaDescribedBy: r, ariaExpanded: i, ariaLabel: o, ariaLabelledBy: l, ariaMultiline: s, ariaOwneeID: a, ariaRequired: c, autoCapitalize: u, autoComplete: d, autoCorrect: g, className: m, id: h, role: v = "textbox", spellCheck: T = !0, style: w, tabIndex: p, testid: C }) {
7254
+ let [x] = t1.useLexicalComposerContext(), [E, S] = sn.useState(!1), $ = sn.useCallback((L) => {
7255
+ x.setRootElement(L);
7256
+ }, [x]);
7226
7257
  return n1(
7227
- () => (S(w.isEditable()), w.registerEditableListener((L) => {
7258
+ () => (S(x.isEditable()), x.registerEditableListener((L) => {
7228
7259
  S(L);
7229
7260
  })),
7230
- [w]
7231
- ), sn.createElement("div", { "aria-activedescendant": E ? t : null, "aria-autocomplete": E ? e : null, "aria-controls": E ? n : null, "aria-describedby": r, "aria-expanded": E && C === "combobox" ? !!i : null, "aria-label": o, "aria-labelledby": l, "aria-multiline": s, "aria-owns": E ? a : null, "aria-required": c, autoCapitalize: d !== void 0 ? String(d) : void 0, autoComplete: u, autoCorrect: g !== void 0 ? String(g) : void 0, className: m, contentEditable: E, "data-testid": _, id: h, ref: $, role: E ? C : void 0, spellCheck: T, style: N, tabIndex: p });
7261
+ [x]
7262
+ ), sn.createElement("div", { "aria-activedescendant": E ? t : null, "aria-autocomplete": E ? e : null, "aria-controls": E ? n : null, "aria-describedby": r, "aria-expanded": E && v === "combobox" ? !!i : null, "aria-label": o, "aria-labelledby": l, "aria-multiline": s, "aria-owns": E ? a : null, "aria-required": c, autoCapitalize: u !== void 0 ? String(u) : void 0, autoComplete: d, autoCorrect: g !== void 0 ? String(g) : void 0, className: m, contentEditable: E, "data-testid": C, id: h, ref: $, role: E ? v : void 0, spellCheck: T, style: w, tabIndex: p });
7232
7263
  };
7233
7264
  const r1 = _a;
7234
7265
  var i1 = r1, Yi = {}, Gi = {}, o1 = _e, G = y;
@@ -7251,19 +7282,19 @@ function l1(t, e, n, r, i) {
7251
7282
  function s1(t, e) {
7252
7283
  let n = Date.now(), r = 0;
7253
7284
  return (i, o, l, s, a, c) => {
7254
- let d = Date.now();
7285
+ let u = Date.now();
7255
7286
  if (c.has("historic"))
7256
- return r = 0, n = d, 2;
7257
- let u = l1(i, o, s, a, t.isComposing()), g = (() => {
7287
+ return r = 0, n = u, 2;
7288
+ let d = l1(i, o, s, a, t.isComposing()), g = (() => {
7258
7289
  var m = l === null || l.editor === t, h = c.has("history-push");
7259
7290
  if (!h && m && c.has("history-merge"))
7260
7291
  return 0;
7261
7292
  if (i === null)
7262
7293
  return 1;
7263
- const C = o._selection, T = i._selection;
7264
- return 0 < s.size || 0 < a.size ? h === !1 && u !== 0 && u === r && d < n + e && m || s.size === 1 && (h = Array.from(s)[0], m = i._nodeMap.get(h), h = o._nodeMap.get(h), m = G.$isTextNode(m) && G.$isTextNode(h) ? m.__type === h.__type && m.__text === h.__text && m.__mode === h.__mode && m.__detail === h.__detail && m.__style === h.__style && m.__format === h.__format && m.__parent === h.__parent : !1, m) ? 0 : 1 : T === null && C !== null ? 0 : 2;
7294
+ const v = o._selection, T = i._selection;
7295
+ return 0 < s.size || 0 < a.size ? h === !1 && d !== 0 && d === r && u < n + e && m || s.size === 1 && (h = Array.from(s)[0], m = i._nodeMap.get(h), h = o._nodeMap.get(h), m = G.$isTextNode(m) && G.$isTextNode(h) ? m.__type === h.__type && m.__text === h.__text && m.__mode === h.__mode && m.__detail === h.__detail && m.__style === h.__style && m.__format === h.__format && m.__parent === h.__parent : !1, m) ? 0 : 1 : T === null && v !== null ? 0 : 2;
7265
7296
  })();
7266
- return n = d, r = u, g;
7297
+ return n = u, r = d, g;
7267
7298
  };
7268
7299
  }
7269
7300
  Gi.createEmptyHistoryState = function() {
@@ -7271,11 +7302,11 @@ Gi.createEmptyHistoryState = function() {
7271
7302
  };
7272
7303
  Gi.registerHistory = function(t, e, n) {
7273
7304
  let r = s1(t, n);
7274
- n = ({ editorState: l, prevEditorState: s, dirtyLeaves: a, dirtyElements: c, tags: d }) => {
7275
- const u = e.current, g = e.redoStack, m = e.undoStack, h = u === null ? null : u.editorState;
7276
- if (u === null || l !== h) {
7277
- if (a = r(s, l, u, a, c, d), a === 1)
7278
- g.length !== 0 && (e.redoStack = []), u !== null && (m.push({ ...u, undoSelection: s.read(G.$getSelection) }), t.dispatchCommand(G.CAN_UNDO_COMMAND, !0));
7305
+ n = ({ editorState: l, prevEditorState: s, dirtyLeaves: a, dirtyElements: c, tags: u }) => {
7306
+ const d = e.current, g = e.redoStack, m = e.undoStack, h = d === null ? null : d.editorState;
7307
+ if (d === null || l !== h) {
7308
+ if (a = r(s, l, d, a, c, u), a === 1)
7309
+ g.length !== 0 && (e.redoStack = []), d !== null && (m.push({ ...d, undoSelection: s.read(G.$getSelection) }), t.dispatchCommand(G.CAN_UNDO_COMMAND, !0));
7279
7310
  else if (a === 2)
7280
7311
  return;
7281
7312
  e.current = { editor: t, editorState: l };
@@ -7334,18 +7365,18 @@ va.OnChangePlugin = function({ ignoreHistoryMergeTagChange: t = !0, ignoreSelect
7334
7365
  }, [r, t, e, n]), null;
7335
7366
  };
7336
7367
  const m1 = va;
7337
- var _1 = m1, Ca = {}, Le = vt, v1 = pe, ya = R, C1 = _e, We = y;
7368
+ var _1 = m1, Ca = {}, ke = vt, v1 = pe, ya = R, C1 = _e, We = y;
7338
7369
  function y1(t) {
7339
- ya.useEffect(() => C1.mergeRegister(t.registerCommand(We.INDENT_CONTENT_COMMAND, () => (Le.indentList(), !1), We.COMMAND_PRIORITY_LOW), t.registerCommand(We.OUTDENT_CONTENT_COMMAND, () => (Le.outdentList(), !1), We.COMMAND_PRIORITY_LOW), t.registerCommand(Le.INSERT_ORDERED_LIST_COMMAND, () => (Le.insertList(t, "number"), !0), We.COMMAND_PRIORITY_LOW), t.registerCommand(Le.INSERT_UNORDERED_LIST_COMMAND, () => (Le.insertList(t, "bullet"), !0), We.COMMAND_PRIORITY_LOW), t.registerCommand(
7340
- Le.REMOVE_LIST_COMMAND,
7341
- () => (Le.removeList(t), !0),
7370
+ ya.useEffect(() => C1.mergeRegister(t.registerCommand(We.INDENT_CONTENT_COMMAND, () => (ke.indentList(), !1), We.COMMAND_PRIORITY_LOW), t.registerCommand(We.OUTDENT_CONTENT_COMMAND, () => (ke.outdentList(), !1), We.COMMAND_PRIORITY_LOW), t.registerCommand(ke.INSERT_ORDERED_LIST_COMMAND, () => (ke.insertList(t, "number"), !0), We.COMMAND_PRIORITY_LOW), t.registerCommand(ke.INSERT_UNORDERED_LIST_COMMAND, () => (ke.insertList(t, "bullet"), !0), We.COMMAND_PRIORITY_LOW), t.registerCommand(
7371
+ ke.REMOVE_LIST_COMMAND,
7372
+ () => (ke.removeList(t), !0),
7342
7373
  We.COMMAND_PRIORITY_LOW
7343
- ), t.registerCommand(We.INSERT_PARAGRAPH_COMMAND, () => !!Le.$handleListInsertParagraph(), We.COMMAND_PRIORITY_LOW)), [t]);
7374
+ ), t.registerCommand(We.INSERT_PARAGRAPH_COMMAND, () => !!ke.$handleListInsertParagraph(), We.COMMAND_PRIORITY_LOW)), [t]);
7344
7375
  }
7345
7376
  Ca.ListPlugin = function() {
7346
7377
  let [t] = v1.useLexicalComposerContext();
7347
7378
  return ya.useEffect(() => {
7348
- if (!t.hasNodes([Le.ListNode, Le.ListItemNode]))
7379
+ if (!t.hasNodes([ke.ListNode, ke.ListItemNode]))
7349
7380
  throw Error("ListPlugin: ListNode and/or ListItemNode not registered on editor");
7350
7381
  }, [t]), y1(t), null;
7351
7382
  };
@@ -7393,8 +7424,8 @@ function N1({
7393
7424
  } else {
7394
7425
  const a = i.getRangeAt(0).cloneRange().getClientRects();
7395
7426
  if (a.length > 0) {
7396
- const c = a[1] || a[0], u = Go(i.anchorNode).getBoundingClientRect();
7397
- if (Math.abs(c.top - u.top) <= Yo) {
7427
+ const c = a[1] || a[0], d = Go(i.anchorNode).getBoundingClientRect();
7428
+ if (Math.abs(c.top - d.top) <= Yo) {
7398
7429
  const m = r.getPreviousSibling();
7399
7430
  if (y.$isDecoratorNode(m))
7400
7431
  return Tt(m), !0;
@@ -7419,8 +7450,8 @@ function N1({
7419
7450
  } else {
7420
7451
  const c = i.getRangeAt(0).cloneRange().getClientRects();
7421
7452
  if (c.length > 0) {
7422
- const d = c[0], u = o.getBoundingClientRect();
7423
- if (Math.abs(d.bottom - u.bottom) < Yo) {
7453
+ const u = c[0], d = o.getBoundingClientRect();
7454
+ if (Math.abs(u.bottom - d.bottom) < Yo) {
7424
7455
  const g = r.getNextSibling();
7425
7456
  if (y.$isDecoratorNode(g))
7426
7457
  return Tt(g), !0;
@@ -7456,8 +7487,8 @@ var X = {}, ce = {}, xa = { exports: {} };
7456
7487
  manual: r.Prism && r.Prism.manual,
7457
7488
  disableWorkerMessageHandler: r.Prism && r.Prism.disableWorkerMessageHandler,
7458
7489
  util: {
7459
- encode: function p(_) {
7460
- return _ instanceof a ? new a(_.type, p(_.content), _.alias) : Array.isArray(_) ? _.map(p) : _.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
7490
+ encode: function p(C) {
7491
+ return C instanceof a ? new a(C.type, p(C.content), C.alias) : Array.isArray(C) ? C.map(p) : C.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/\u00a0/g, " ");
7461
7492
  },
7462
7493
  type: function(p) {
7463
7494
  return Object.prototype.toString.call(p).slice(8, -1);
@@ -7465,36 +7496,36 @@ var X = {}, ce = {}, xa = { exports: {} };
7465
7496
  objId: function(p) {
7466
7497
  return p.__id || Object.defineProperty(p, "__id", { value: ++o }), p.__id;
7467
7498
  },
7468
- clone: function p(_, w) {
7469
- w = w || {};
7499
+ clone: function p(C, x) {
7500
+ x = x || {};
7470
7501
  var E, S;
7471
- switch (s.util.type(_)) {
7502
+ switch (s.util.type(C)) {
7472
7503
  case "Object":
7473
- if (S = s.util.objId(_), w[S])
7474
- return w[S];
7475
- E = {}, w[S] = E;
7476
- for (var $ in _)
7477
- _.hasOwnProperty($) && (E[$] = p(_[$], w));
7504
+ if (S = s.util.objId(C), x[S])
7505
+ return x[S];
7506
+ E = {}, x[S] = E;
7507
+ for (var $ in C)
7508
+ C.hasOwnProperty($) && (E[$] = p(C[$], x));
7478
7509
  return E;
7479
7510
  case "Array":
7480
- return S = s.util.objId(_), w[S] ? w[S] : (E = [], w[S] = E, _.forEach(function(L, M) {
7481
- E[M] = p(L, w);
7511
+ return S = s.util.objId(C), x[S] ? x[S] : (E = [], x[S] = E, C.forEach(function(L, M) {
7512
+ E[M] = p(L, x);
7482
7513
  }), E);
7483
7514
  default:
7484
- return _;
7515
+ return C;
7485
7516
  }
7486
7517
  },
7487
7518
  getLanguage: function(p) {
7488
7519
  for (; p; ) {
7489
- var _ = i.exec(p.className);
7490
- if (_)
7491
- return _[1].toLowerCase();
7520
+ var C = i.exec(p.className);
7521
+ if (C)
7522
+ return C[1].toLowerCase();
7492
7523
  p = p.parentElement;
7493
7524
  }
7494
7525
  return "none";
7495
7526
  },
7496
- setLanguage: function(p, _) {
7497
- p.className = p.className.replace(RegExp(i, "gi"), ""), p.classList.add("language-" + _);
7527
+ setLanguage: function(p, C) {
7528
+ p.className = p.className.replace(RegExp(i, "gi"), ""), p.classList.add("language-" + C);
7498
7529
  },
7499
7530
  currentScript: function() {
7500
7531
  if (typeof document > "u")
@@ -7506,24 +7537,24 @@ var X = {}, ce = {}, xa = { exports: {} };
7506
7537
  } catch (E) {
7507
7538
  var p = (/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack) || [])[1];
7508
7539
  if (p) {
7509
- var _ = document.getElementsByTagName("script");
7510
- for (var w in _)
7511
- if (_[w].src == p)
7512
- return _[w];
7540
+ var C = document.getElementsByTagName("script");
7541
+ for (var x in C)
7542
+ if (C[x].src == p)
7543
+ return C[x];
7513
7544
  }
7514
7545
  return null;
7515
7546
  }
7516
7547
  },
7517
- isActive: function(p, _, w) {
7518
- for (var E = "no-" + _; p; ) {
7548
+ isActive: function(p, C, x) {
7549
+ for (var E = "no-" + C; p; ) {
7519
7550
  var S = p.classList;
7520
- if (S.contains(_))
7551
+ if (S.contains(C))
7521
7552
  return !0;
7522
7553
  if (S.contains(E))
7523
7554
  return !1;
7524
7555
  p = p.parentElement;
7525
7556
  }
7526
- return !!w;
7557
+ return !!x;
7527
7558
  }
7528
7559
  },
7529
7560
  languages: {
@@ -7531,53 +7562,53 @@ var X = {}, ce = {}, xa = { exports: {} };
7531
7562
  plaintext: l,
7532
7563
  text: l,
7533
7564
  txt: l,
7534
- extend: function(p, _) {
7535
- var w = s.util.clone(s.languages[p]);
7536
- for (var E in _)
7537
- w[E] = _[E];
7538
- return w;
7565
+ extend: function(p, C) {
7566
+ var x = s.util.clone(s.languages[p]);
7567
+ for (var E in C)
7568
+ x[E] = C[E];
7569
+ return x;
7539
7570
  },
7540
- insertBefore: function(p, _, w, E) {
7571
+ insertBefore: function(p, C, x, E) {
7541
7572
  E = E || s.languages;
7542
7573
  var S = E[p], $ = {};
7543
7574
  for (var L in S)
7544
7575
  if (S.hasOwnProperty(L)) {
7545
- if (L == _)
7546
- for (var M in w)
7547
- w.hasOwnProperty(M) && ($[M] = w[M]);
7548
- w.hasOwnProperty(L) || ($[L] = S[L]);
7576
+ if (L == C)
7577
+ for (var M in x)
7578
+ x.hasOwnProperty(M) && ($[M] = x[M]);
7579
+ x.hasOwnProperty(L) || ($[L] = S[L]);
7549
7580
  }
7550
7581
  var W = E[p];
7551
7582
  return E[p] = $, s.languages.DFS(s.languages, function(b, H) {
7552
7583
  H === W && b != p && (this[b] = $);
7553
7584
  }), $;
7554
7585
  },
7555
- DFS: function p(_, w, E, S) {
7586
+ DFS: function p(C, x, E, S) {
7556
7587
  S = S || {};
7557
7588
  var $ = s.util.objId;
7558
- for (var L in _)
7559
- if (_.hasOwnProperty(L)) {
7560
- w.call(_, L, _[L], E || L);
7561
- var M = _[L], W = s.util.type(M);
7562
- W === "Object" && !S[$(M)] ? (S[$(M)] = !0, p(M, w, null, S)) : W === "Array" && !S[$(M)] && (S[$(M)] = !0, p(M, w, L, S));
7589
+ for (var L in C)
7590
+ if (C.hasOwnProperty(L)) {
7591
+ x.call(C, L, C[L], E || L);
7592
+ var M = C[L], W = s.util.type(M);
7593
+ W === "Object" && !S[$(M)] ? (S[$(M)] = !0, p(M, x, null, S)) : W === "Array" && !S[$(M)] && (S[$(M)] = !0, p(M, x, L, S));
7563
7594
  }
7564
7595
  }
7565
7596
  },
7566
7597
  plugins: {},
7567
- highlightAll: function(p, _) {
7568
- s.highlightAllUnder(document, p, _);
7598
+ highlightAll: function(p, C) {
7599
+ s.highlightAllUnder(document, p, C);
7569
7600
  },
7570
- highlightAllUnder: function(p, _, w) {
7601
+ highlightAllUnder: function(p, C, x) {
7571
7602
  var E = {
7572
- callback: w,
7603
+ callback: x,
7573
7604
  container: p,
7574
7605
  selector: 'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'
7575
7606
  };
7576
7607
  s.hooks.run("before-highlightall", E), E.elements = Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)), s.hooks.run("before-all-elements-highlight", E);
7577
7608
  for (var S = 0, $; $ = E.elements[S++]; )
7578
- s.highlightElement($, _ === !0, E.callback);
7609
+ s.highlightElement($, C === !0, E.callback);
7579
7610
  },
7580
- highlightElement: function(p, _, w) {
7611
+ highlightElement: function(p, C, x) {
7581
7612
  var E = s.util.getLanguage(p), S = s.languages[E];
7582
7613
  s.util.setLanguage(p, E);
7583
7614
  var $ = p.parentElement;
@@ -7589,17 +7620,17 @@ var X = {}, ce = {}, xa = { exports: {} };
7589
7620
  code: L
7590
7621
  };
7591
7622
  function W(H) {
7592
- M.highlightedCode = H, s.hooks.run("before-insert", M), M.element.innerHTML = M.highlightedCode, s.hooks.run("after-highlight", M), s.hooks.run("complete", M), w && w.call(M.element);
7623
+ M.highlightedCode = H, s.hooks.run("before-insert", M), M.element.innerHTML = M.highlightedCode, s.hooks.run("after-highlight", M), s.hooks.run("complete", M), x && x.call(M.element);
7593
7624
  }
7594
7625
  if (s.hooks.run("before-sanity-check", M), $ = M.element.parentElement, $ && $.nodeName.toLowerCase() === "pre" && !$.hasAttribute("tabindex") && $.setAttribute("tabindex", "0"), !M.code) {
7595
- s.hooks.run("complete", M), w && w.call(M.element);
7626
+ s.hooks.run("complete", M), x && x.call(M.element);
7596
7627
  return;
7597
7628
  }
7598
7629
  if (s.hooks.run("before-highlight", M), !M.grammar) {
7599
7630
  W(s.util.encode(M.code));
7600
7631
  return;
7601
7632
  }
7602
- if (_ && r.Worker) {
7633
+ if (C && r.Worker) {
7603
7634
  var b = new Worker(s.filename);
7604
7635
  b.onmessage = function(H) {
7605
7636
  W(H.data);
@@ -7611,81 +7642,81 @@ var X = {}, ce = {}, xa = { exports: {} };
7611
7642
  } else
7612
7643
  W(s.highlight(M.code, M.grammar, M.language));
7613
7644
  },
7614
- highlight: function(p, _, w) {
7645
+ highlight: function(p, C, x) {
7615
7646
  var E = {
7616
7647
  code: p,
7617
- grammar: _,
7618
- language: w
7648
+ grammar: C,
7649
+ language: x
7619
7650
  };
7620
7651
  if (s.hooks.run("before-tokenize", E), !E.grammar)
7621
7652
  throw new Error('The language "' + E.language + '" has no grammar.');
7622
7653
  return E.tokens = s.tokenize(E.code, E.grammar), s.hooks.run("after-tokenize", E), a.stringify(s.util.encode(E.tokens), E.language);
7623
7654
  },
7624
- tokenize: function(p, _) {
7625
- var w = _.rest;
7626
- if (w) {
7627
- for (var E in w)
7628
- _[E] = w[E];
7629
- delete _.rest;
7655
+ tokenize: function(p, C) {
7656
+ var x = C.rest;
7657
+ if (x) {
7658
+ for (var E in x)
7659
+ C[E] = x[E];
7660
+ delete C.rest;
7630
7661
  }
7631
- var S = new u();
7632
- return g(S, S.head, p), d(p, S, _, S.head, 0), h(S);
7662
+ var S = new d();
7663
+ return g(S, S.head, p), u(p, S, C, S.head, 0), h(S);
7633
7664
  },
7634
7665
  hooks: {
7635
7666
  all: {},
7636
- add: function(p, _) {
7637
- var w = s.hooks.all;
7638
- w[p] = w[p] || [], w[p].push(_);
7667
+ add: function(p, C) {
7668
+ var x = s.hooks.all;
7669
+ x[p] = x[p] || [], x[p].push(C);
7639
7670
  },
7640
- run: function(p, _) {
7641
- var w = s.hooks.all[p];
7642
- if (!(!w || !w.length))
7643
- for (var E = 0, S; S = w[E++]; )
7644
- S(_);
7671
+ run: function(p, C) {
7672
+ var x = s.hooks.all[p];
7673
+ if (!(!x || !x.length))
7674
+ for (var E = 0, S; S = x[E++]; )
7675
+ S(C);
7645
7676
  }
7646
7677
  },
7647
7678
  Token: a
7648
7679
  };
7649
7680
  r.Prism = s;
7650
- function a(p, _, w, E) {
7651
- this.type = p, this.content = _, this.alias = w, this.length = (E || "").length | 0;
7681
+ function a(p, C, x, E) {
7682
+ this.type = p, this.content = C, this.alias = x, this.length = (E || "").length | 0;
7652
7683
  }
7653
- a.stringify = function p(_, w) {
7654
- if (typeof _ == "string")
7655
- return _;
7656
- if (Array.isArray(_)) {
7684
+ a.stringify = function p(C, x) {
7685
+ if (typeof C == "string")
7686
+ return C;
7687
+ if (Array.isArray(C)) {
7657
7688
  var E = "";
7658
- return _.forEach(function(W) {
7659
- E += p(W, w);
7689
+ return C.forEach(function(W) {
7690
+ E += p(W, x);
7660
7691
  }), E;
7661
7692
  }
7662
7693
  var S = {
7663
- type: _.type,
7664
- content: p(_.content, w),
7694
+ type: C.type,
7695
+ content: p(C.content, x),
7665
7696
  tag: "span",
7666
- classes: ["token", _.type],
7697
+ classes: ["token", C.type],
7667
7698
  attributes: {},
7668
- language: w
7669
- }, $ = _.alias;
7699
+ language: x
7700
+ }, $ = C.alias;
7670
7701
  $ && (Array.isArray($) ? Array.prototype.push.apply(S.classes, $) : S.classes.push($)), s.hooks.run("wrap", S);
7671
7702
  var L = "";
7672
7703
  for (var M in S.attributes)
7673
7704
  L += " " + M + '="' + (S.attributes[M] || "").replace(/"/g, "&quot;") + '"';
7674
7705
  return "<" + S.tag + ' class="' + S.classes.join(" ") + '"' + L + ">" + S.content + "</" + S.tag + ">";
7675
7706
  };
7676
- function c(p, _, w, E) {
7677
- p.lastIndex = _;
7678
- var S = p.exec(w);
7707
+ function c(p, C, x, E) {
7708
+ p.lastIndex = C;
7709
+ var S = p.exec(x);
7679
7710
  if (S && E && S[1]) {
7680
7711
  var $ = S[1].length;
7681
7712
  S.index += $, S[0] = S[0].slice($);
7682
7713
  }
7683
7714
  return S;
7684
7715
  }
7685
- function d(p, _, w, E, S, $) {
7686
- for (var L in w)
7687
- if (!(!w.hasOwnProperty(L) || !w[L])) {
7688
- var M = w[L];
7716
+ function u(p, C, x, E, S, $) {
7717
+ for (var L in x)
7718
+ if (!(!x.hasOwnProperty(L) || !x[L])) {
7719
+ var M = x[L];
7689
7720
  M = Array.isArray(M) ? M : [M];
7690
7721
  for (var W = 0; W < M.length; ++W) {
7691
7722
  if ($ && $.cause == L + "," + W)
@@ -7695,9 +7726,9 @@ var X = {}, ce = {}, xa = { exports: {} };
7695
7726
  var re = b.pattern.toString().match(/[imsuy]*$/)[0];
7696
7727
  b.pattern = RegExp(b.pattern.source, re + "g");
7697
7728
  }
7698
- for (var Et = b.pattern || b, te = E.next, ie = S; te !== _.tail && !($ && ie >= $.reach); ie += te.value.length, te = te.next) {
7729
+ for (var Et = b.pattern || b, te = E.next, ie = S; te !== C.tail && !($ && ie >= $.reach); ie += te.value.length, te = te.next) {
7699
7730
  var ve = te.value;
7700
- if (_.length > p.length)
7731
+ if (C.length > p.length)
7701
7732
  return;
7702
7733
  if (!(ve instanceof a)) {
7703
7734
  var De = 1, oe;
@@ -7709,7 +7740,7 @@ var X = {}, ce = {}, xa = { exports: {} };
7709
7740
  te = te.next, Ge += te.value.length;
7710
7741
  if (Ge -= te.value.length, ie = Ge, te.value instanceof a)
7711
7742
  continue;
7712
- for (var Gt = te; Gt !== _.tail && (Ge < kn || typeof Gt.value == "string"); Gt = Gt.next)
7743
+ for (var Gt = te; Gt !== C.tail && (Ge < kn || typeof Gt.value == "string"); Gt = Gt.next)
7713
7744
  De++, Ge += Gt.value.length;
7714
7745
  De--, ve = p.slice(ie, Ge), oe.index -= ie;
7715
7746
  } else if (oe = c(Et, 0, ve, ee), !oe)
@@ -7717,51 +7748,51 @@ var X = {}, ce = {}, xa = { exports: {} };
7717
7748
  var In = oe.index, Pn = oe[0], Lr = ve.slice(0, In), eo = ve.slice(In + Pn.length), kr = ie + ve.length;
7718
7749
  $ && kr > $.reach && ($.reach = kr);
7719
7750
  var bn = te.prev;
7720
- Lr && (bn = g(_, bn, Lr), ie += Lr.length), m(_, bn, De);
7751
+ Lr && (bn = g(C, bn, Lr), ie += Lr.length), m(C, bn, De);
7721
7752
  var tc = new a(L, H ? s.tokenize(Pn, H) : Pn, q, Pn);
7722
- if (te = g(_, bn, tc), eo && g(_, te, eo), De > 1) {
7753
+ if (te = g(C, bn, tc), eo && g(C, te, eo), De > 1) {
7723
7754
  var Ir = {
7724
7755
  cause: L + "," + W,
7725
7756
  reach: kr
7726
7757
  };
7727
- d(p, _, w, te.prev, ie, Ir), $ && Ir.reach > $.reach && ($.reach = Ir.reach);
7758
+ u(p, C, x, te.prev, ie, Ir), $ && Ir.reach > $.reach && ($.reach = Ir.reach);
7728
7759
  }
7729
7760
  }
7730
7761
  }
7731
7762
  }
7732
7763
  }
7733
7764
  }
7734
- function u() {
7735
- var p = { value: null, prev: null, next: null }, _ = { value: null, prev: p, next: null };
7736
- p.next = _, this.head = p, this.tail = _, this.length = 0;
7765
+ function d() {
7766
+ var p = { value: null, prev: null, next: null }, C = { value: null, prev: p, next: null };
7767
+ p.next = C, this.head = p, this.tail = C, this.length = 0;
7737
7768
  }
7738
- function g(p, _, w) {
7739
- var E = _.next, S = { value: w, prev: _, next: E };
7740
- return _.next = S, E.prev = S, p.length++, S;
7769
+ function g(p, C, x) {
7770
+ var E = C.next, S = { value: x, prev: C, next: E };
7771
+ return C.next = S, E.prev = S, p.length++, S;
7741
7772
  }
7742
- function m(p, _, w) {
7743
- for (var E = _.next, S = 0; S < w && E !== p.tail; S++)
7773
+ function m(p, C, x) {
7774
+ for (var E = C.next, S = 0; S < x && E !== p.tail; S++)
7744
7775
  E = E.next;
7745
- _.next = E, E.prev = _, p.length -= S;
7776
+ C.next = E, E.prev = C, p.length -= S;
7746
7777
  }
7747
7778
  function h(p) {
7748
- for (var _ = [], w = p.head.next; w !== p.tail; )
7749
- _.push(w.value), w = w.next;
7750
- return _;
7779
+ for (var C = [], x = p.head.next; x !== p.tail; )
7780
+ C.push(x.value), x = x.next;
7781
+ return C;
7751
7782
  }
7752
7783
  if (!r.document)
7753
7784
  return r.addEventListener && (s.disableWorkerMessageHandler || r.addEventListener("message", function(p) {
7754
- var _ = JSON.parse(p.data), w = _.language, E = _.code, S = _.immediateClose;
7755
- r.postMessage(s.highlight(E, s.languages[w], w)), S && r.close();
7785
+ var C = JSON.parse(p.data), x = C.language, E = C.code, S = C.immediateClose;
7786
+ r.postMessage(s.highlight(E, s.languages[x], x)), S && r.close();
7756
7787
  }, !1)), s;
7757
- var C = s.util.currentScript();
7758
- C && (s.filename = C.src, C.hasAttribute("data-manual") && (s.manual = !0));
7788
+ var v = s.util.currentScript();
7789
+ v && (s.filename = v.src, v.hasAttribute("data-manual") && (s.manual = !0));
7759
7790
  function T() {
7760
7791
  s.manual || s.highlightAll();
7761
7792
  }
7762
7793
  if (!s.manual) {
7763
- var N = document.readyState;
7764
- N === "loading" || N === "interactive" && C && C.defer ? document.addEventListener("DOMContentLoaded", T) : window.requestAnimationFrame ? window.requestAnimationFrame(T) : window.setTimeout(T, 16);
7794
+ var w = document.readyState;
7795
+ w === "loading" || w === "interactive" && v && v.defer ? document.addEventListener("DOMContentLoaded", T) : window.requestAnimationFrame ? window.requestAnimationFrame(T) : window.setTimeout(T, 16);
7765
7796
  }
7766
7797
  return s;
7767
7798
  }(e);
@@ -8101,8 +8132,8 @@ var X = {}, ce = {}, xa = { exports: {} };
8101
8132
  if (typeof n > "u" || typeof document > "u")
8102
8133
  return;
8103
8134
  Element.prototype.matches || (Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector);
8104
- var r = "Loading\u2026", i = function(C, T) {
8105
- return "\u2716 Error " + C + " while fetching file: " + T;
8135
+ var r = "Loading\u2026", i = function(v, T) {
8136
+ return "\u2716 Error " + v + " while fetching file: " + T;
8106
8137
  }, o = "\u2716 Error: File does not exist or is empty", l = {
8107
8138
  js: "javascript",
8108
8139
  py: "python",
@@ -8113,36 +8144,36 @@ var X = {}, ce = {}, xa = { exports: {} };
8113
8144
  bat: "batch",
8114
8145
  h: "c",
8115
8146
  tex: "latex"
8116
- }, s = "data-src-status", a = "loading", c = "loaded", d = "failed", u = "pre[data-src]:not([" + s + '="' + c + '"]):not([' + s + '="' + a + '"])';
8117
- function g(C, T, N) {
8147
+ }, s = "data-src-status", a = "loading", c = "loaded", u = "failed", d = "pre[data-src]:not([" + s + '="' + c + '"]):not([' + s + '="' + a + '"])';
8148
+ function g(v, T, w) {
8118
8149
  var p = new XMLHttpRequest();
8119
- p.open("GET", C, !0), p.onreadystatechange = function() {
8120
- p.readyState == 4 && (p.status < 400 && p.responseText ? T(p.responseText) : p.status >= 400 ? N(i(p.status, p.statusText)) : N(o));
8150
+ p.open("GET", v, !0), p.onreadystatechange = function() {
8151
+ p.readyState == 4 && (p.status < 400 && p.responseText ? T(p.responseText) : p.status >= 400 ? w(i(p.status, p.statusText)) : w(o));
8121
8152
  }, p.send(null);
8122
8153
  }
8123
- function m(C) {
8124
- var T = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(C || "");
8154
+ function m(v) {
8155
+ var T = /^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(v || "");
8125
8156
  if (T) {
8126
- var N = Number(T[1]), p = T[2], _ = T[3];
8127
- return p ? _ ? [N, Number(_)] : [N, void 0] : [N, N];
8128
- }
8129
- }
8130
- n.hooks.add("before-highlightall", function(C) {
8131
- C.selector += ", " + u;
8132
- }), n.hooks.add("before-sanity-check", function(C) {
8133
- var T = C.element;
8134
- if (T.matches(u)) {
8135
- C.code = "", T.setAttribute(s, a);
8136
- var N = T.appendChild(document.createElement("CODE"));
8137
- N.textContent = r;
8138
- var p = T.getAttribute("data-src"), _ = C.language;
8139
- if (_ === "none") {
8140
- var w = (/\.(\w+)$/.exec(p) || [, "none"])[1];
8141
- _ = l[w] || w;
8157
+ var w = Number(T[1]), p = T[2], C = T[3];
8158
+ return p ? C ? [w, Number(C)] : [w, void 0] : [w, w];
8159
+ }
8160
+ }
8161
+ n.hooks.add("before-highlightall", function(v) {
8162
+ v.selector += ", " + d;
8163
+ }), n.hooks.add("before-sanity-check", function(v) {
8164
+ var T = v.element;
8165
+ if (T.matches(d)) {
8166
+ v.code = "", T.setAttribute(s, a);
8167
+ var w = T.appendChild(document.createElement("CODE"));
8168
+ w.textContent = r;
8169
+ var p = T.getAttribute("data-src"), C = v.language;
8170
+ if (C === "none") {
8171
+ var x = (/\.(\w+)$/.exec(p) || [, "none"])[1];
8172
+ C = l[x] || x;
8142
8173
  }
8143
- n.util.setLanguage(N, _), n.util.setLanguage(T, _);
8174
+ n.util.setLanguage(w, C), n.util.setLanguage(T, C);
8144
8175
  var E = n.plugins.autoloader;
8145
- E && E.loadLanguages(_), g(
8176
+ E && E.loadLanguages(C), g(
8146
8177
  p,
8147
8178
  function(S) {
8148
8179
  T.setAttribute(s, c);
@@ -8152,17 +8183,17 @@ var X = {}, ce = {}, xa = { exports: {} };
8152
8183
  M < 0 && (M += L.length), M = Math.max(0, Math.min(M - 1, L.length)), W < 0 && (W += L.length), W = Math.max(0, Math.min(W, L.length)), S = L.slice(M, W).join(`
8153
8184
  `), T.hasAttribute("data-start") || T.setAttribute("data-start", String(M + 1));
8154
8185
  }
8155
- N.textContent = S, n.highlightElement(N);
8186
+ w.textContent = S, n.highlightElement(w);
8156
8187
  },
8157
8188
  function(S) {
8158
- T.setAttribute(s, d), N.textContent = S;
8189
+ T.setAttribute(s, u), w.textContent = S;
8159
8190
  }
8160
8191
  );
8161
8192
  }
8162
8193
  }), n.plugins.fileHighlight = {
8163
8194
  highlight: function(T) {
8164
- for (var N = (T || document).querySelectorAll(u), p = 0, _; _ = N[p++]; )
8165
- n.highlightElement(_);
8195
+ for (var w = (T || document).querySelectorAll(d), p = 0, C; C = w[p++]; )
8196
+ n.highlightElement(C);
8166
8197
  }
8167
8198
  };
8168
8199
  var h = !1;
@@ -8474,10 +8505,10 @@ Prism.languages.atom = Prism.languages.xml;
8474
8505
  Prism.languages.rss = Prism.languages.xml;
8475
8506
  (function(t) {
8476
8507
  var e = /(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;
8477
- function n(d) {
8478
- return d = d.replace(/<inner>/g, function() {
8508
+ function n(u) {
8509
+ return u = u.replace(/<inner>/g, function() {
8479
8510
  return e;
8480
- }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + d + ")");
8511
+ }), RegExp(/((?:^|[^\\])(?:\\{2})*)/.source + "(?:" + u + ")");
8481
8512
  }
8482
8513
  var r = /(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source, i = /\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g, function() {
8483
8514
  return r;
@@ -8665,48 +8696,48 @@ Prism.languages.rss = Prism.languages.xml;
8665
8696
  }
8666
8697
  }
8667
8698
  }
8668
- }), ["url", "bold", "italic", "strike"].forEach(function(d) {
8669
- ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(u) {
8670
- d !== u && (t.languages.markdown[d].inside.content.inside[u] = t.languages.markdown[u]);
8699
+ }), ["url", "bold", "italic", "strike"].forEach(function(u) {
8700
+ ["url", "bold", "italic", "strike", "code-snippet"].forEach(function(d) {
8701
+ u !== d && (t.languages.markdown[u].inside.content.inside[d] = t.languages.markdown[d]);
8671
8702
  });
8672
- }), t.hooks.add("after-tokenize", function(d) {
8673
- if (d.language !== "markdown" && d.language !== "md")
8703
+ }), t.hooks.add("after-tokenize", function(u) {
8704
+ if (u.language !== "markdown" && u.language !== "md")
8674
8705
  return;
8675
- function u(g) {
8706
+ function d(g) {
8676
8707
  if (!(!g || typeof g == "string"))
8677
8708
  for (var m = 0, h = g.length; m < h; m++) {
8678
- var C = g[m];
8679
- if (C.type !== "code") {
8680
- u(C.content);
8709
+ var v = g[m];
8710
+ if (v.type !== "code") {
8711
+ d(v.content);
8681
8712
  continue;
8682
8713
  }
8683
- var T = C.content[1], N = C.content[3];
8684
- if (T && N && T.type === "code-language" && N.type === "code-block" && typeof T.content == "string") {
8714
+ var T = v.content[1], w = v.content[3];
8715
+ if (T && w && T.type === "code-language" && w.type === "code-block" && typeof T.content == "string") {
8685
8716
  var p = T.content.replace(/\b#/g, "sharp").replace(/\b\+\+/g, "pp");
8686
8717
  p = (/[a-z][\w-]*/i.exec(p) || [""])[0].toLowerCase();
8687
- var _ = "language-" + p;
8688
- N.alias ? typeof N.alias == "string" ? N.alias = [N.alias, _] : N.alias.push(_) : N.alias = [_];
8718
+ var C = "language-" + p;
8719
+ w.alias ? typeof w.alias == "string" ? w.alias = [w.alias, C] : w.alias.push(C) : w.alias = [C];
8689
8720
  }
8690
8721
  }
8691
8722
  }
8692
- u(d.tokens);
8693
- }), t.hooks.add("wrap", function(d) {
8694
- if (d.type === "code-block") {
8695
- for (var u = "", g = 0, m = d.classes.length; g < m; g++) {
8696
- var h = d.classes[g], C = /language-(.+)/.exec(h);
8697
- if (C) {
8698
- u = C[1];
8723
+ d(u.tokens);
8724
+ }), t.hooks.add("wrap", function(u) {
8725
+ if (u.type === "code-block") {
8726
+ for (var d = "", g = 0, m = u.classes.length; g < m; g++) {
8727
+ var h = u.classes[g], v = /language-(.+)/.exec(h);
8728
+ if (v) {
8729
+ d = v[1];
8699
8730
  break;
8700
8731
  }
8701
8732
  }
8702
- var T = t.languages[u];
8733
+ var T = t.languages[d];
8703
8734
  if (T)
8704
- d.content = t.highlight(c(d.content), T, u);
8705
- else if (u && u !== "none" && t.plugins.autoloader) {
8706
- var N = "md-" + new Date().valueOf() + "-" + Math.floor(Math.random() * 1e16);
8707
- d.attributes.id = N, t.plugins.autoloader.loadLanguages(u, function() {
8708
- var p = document.getElementById(N);
8709
- p && (p.innerHTML = t.highlight(p.textContent, t.languages[u], u));
8735
+ u.content = t.highlight(c(u.content), T, d);
8736
+ else if (d && d !== "none" && t.plugins.autoloader) {
8737
+ var w = "md-" + new Date().valueOf() + "-" + Math.floor(Math.random() * 1e16);
8738
+ u.attributes.id = w, t.plugins.autoloader.loadLanguages(d, function() {
8739
+ var p = document.getElementById(w);
8740
+ p && (p.innerHTML = t.highlight(p.textContent, t.languages[d], d));
8710
8741
  });
8711
8742
  }
8712
8743
  }
@@ -8717,17 +8748,17 @@ Prism.languages.rss = Prism.languages.xml;
8717
8748
  gt: ">",
8718
8749
  quot: '"'
8719
8750
  }, a = String.fromCodePoint || String.fromCharCode;
8720
- function c(d) {
8721
- var u = d.replace(l, "");
8722
- return u = u.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(g, m) {
8751
+ function c(u) {
8752
+ var d = u.replace(l, "");
8753
+ return d = d.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi, function(g, m) {
8723
8754
  if (m = m.toLowerCase(), m[0] === "#") {
8724
8755
  var h;
8725
8756
  return m[1] === "x" ? h = parseInt(m.slice(2), 16) : h = Number(m.slice(1)), a(h);
8726
8757
  } else {
8727
- var C = s[m];
8728
- return C || g;
8758
+ var v = s[m];
8759
+ return v || g;
8729
8760
  }
8730
- }), u;
8761
+ }), d;
8731
8762
  }
8732
8763
  t.languages.md = t.languages.markdown;
8733
8764
  })(Prism);
@@ -9413,8 +9444,8 @@ function Ra(t, e) {
9413
9444
  break;
9414
9445
  }
9415
9446
  o = r, l -= c, i = i.slice(r, s - c);
9416
- let { from: d, to: u, nodesForReplacement: g } = { from: o, nodesForReplacement: i, to: l };
9417
- return d !== u || g.length ? (t.splice(d, u - d, g), !0) : !1;
9447
+ let { from: u, to: d, nodesForReplacement: g } = { from: o, nodesForReplacement: i, to: l };
9448
+ return u !== d || g.length ? (t.splice(u, d - u, g), !0) : !1;
9418
9449
  });
9419
9450
  }, { onUpdate: () => {
9420
9451
  Vr = !1;
@@ -9497,20 +9528,20 @@ function tl(t, e) {
9497
9528
  }
9498
9529
  return !1;
9499
9530
  }
9500
- var d = En(s);
9501
- let u = yi(a);
9502
- if (d == null || u == null)
9531
+ var u = En(s);
9532
+ let d = yi(a);
9533
+ if (u == null || d == null)
9503
9534
  return !1;
9504
- let g = d.getNodesBetween(u);
9535
+ let g = u.getNodesBetween(d);
9505
9536
  for (let h = 0; h < g.length; h++) {
9506
- let C = g[h];
9507
- if (!fe(C) && !P.$isLineBreakNode(C))
9537
+ let v = g[h];
9538
+ if (!fe(v) && !P.$isLineBreakNode(v))
9508
9539
  return !1;
9509
9540
  }
9510
- if (e.preventDefault(), e.stopPropagation(), e = c ? d.getPreviousSibling() : u.getNextSibling(), !P.$isLineBreakNode(e) || (d = c ? e.getPreviousSibling() : e.getNextSibling(), d == null))
9541
+ if (e.preventDefault(), e.stopPropagation(), e = c ? u.getPreviousSibling() : d.getNextSibling(), !P.$isLineBreakNode(e) || (u = c ? e.getPreviousSibling() : e.getNextSibling(), u == null))
9511
9542
  return !0;
9512
- c = c ? En(d) : yi(d);
9513
- let m = c != null ? c : d;
9543
+ c = c ? En(u) : yi(u);
9544
+ let m = c != null ? c : u;
9514
9545
  return e.remove(), g.forEach((h) => h.remove()), t === P.KEY_ARROW_UP_COMMAND ? (g.forEach((h) => m.insertBefore(h)), m.insertBefore(e)) : (m.insertAfter(e), m = e, g.forEach((h) => {
9515
9546
  m.insertAfter(h), m = h;
9516
9547
  })), n.setTextNodeRange(s, o, a, l), !0;
@@ -9668,30 +9699,30 @@ function P1(t) {
9668
9699
  for (let h = 0; h < o; h++) {
9669
9700
  var l = i[h];
9670
9701
  e: {
9671
- var s = i, a = h, c = r, d = s[a].match(sl);
9672
- if (d) {
9673
- for (var u = a, g = s.length; ++u < g; )
9674
- if (s[u].match(sl)) {
9675
- d = cn.$createCodeNode(d[1]), s = U.$createTextNode(s.slice(a + 1, u).join(`
9676
- `)), d.append(s), c.append(d), c = [d, u];
9702
+ var s = i, a = h, c = r, u = s[a].match(sl);
9703
+ if (u) {
9704
+ for (var d = a, g = s.length; ++d < g; )
9705
+ if (s[d].match(sl)) {
9706
+ u = cn.$createCodeNode(u[1]), s = U.$createTextNode(s.slice(a + 1, d).join(`
9707
+ `)), u.append(s), c.append(u), c = [u, d];
9677
9708
  break e;
9678
9709
  }
9679
9710
  }
9680
9711
  c = [null, a];
9681
9712
  }
9682
- let [C, T] = c;
9683
- if (C != null)
9713
+ let [v, T] = c;
9714
+ if (v != null)
9684
9715
  h = T;
9685
9716
  else {
9686
9717
  c = l, g = r;
9687
9718
  var m = e.element;
9688
- u = n, s = e.textMatch, a = c.trim(), d = U.$createTextNode(a), l = U.$createParagraphNode(), l.append(d), g.append(l);
9689
- for (let { regExp: N, replace: p } of m)
9690
- if (g = c.match(N)) {
9691
- d.setTextContent(c.slice(g[0].length)), p(l, [d], g, !0);
9719
+ d = n, s = e.textMatch, a = c.trim(), u = U.$createTextNode(a), l = U.$createParagraphNode(), l.append(u), g.append(l);
9720
+ for (let { regExp: w, replace: p } of m)
9721
+ if (g = c.match(w)) {
9722
+ u.setTextContent(c.slice(g[0].length)), p(l, [u], g, !0);
9692
9723
  break;
9693
9724
  }
9694
- Xn(d, u, s), l.isAttached() && 0 < a.length && (c = l.getPreviousSibling(), U.$isParagraphNode(c) || Qe.$isQuoteNode(c) || he.$isListNode(c)) && (u = c, he.$isListNode(c) && (c = c.getLastDescendant(), u = c == null ? null : M1.$findMatchingParent(c, he.$isListItemNode)), u != null && 0 < u.getTextContentSize() && (u.splice(u.getChildrenSize(), 0, [U.$createLineBreakNode(), ...l.getChildren()]), l.remove()));
9725
+ Xn(u, d, s), l.isAttached() && 0 < a.length && (c = l.getPreviousSibling(), U.$isParagraphNode(c) || Qe.$isQuoteNode(c) || he.$isListNode(c)) && (d = c, he.$isListNode(c) && (c = c.getLastDescendant(), d = c == null ? null : M1.$findMatchingParent(c, he.$isListItemNode)), d != null && 0 < d.getTextContentSize() && (d.splice(d.getChildrenSize(), 0, [U.$createLineBreakNode(), ...l.getChildren()]), l.remove()));
9695
9726
  }
9696
9727
  }
9697
9728
  i = r.getChildren();
@@ -9710,8 +9741,8 @@ function Xn(t, e, n) {
9710
9741
  l === 0 ? [o, a] = t.splitText(s) : [c, o, a] = t.splitText(l, s);
9711
9742
  }
9712
9743
  if (o.setTextContent(i[2]), l = e.transformersByTag[i[1]])
9713
- for (let d of l.format)
9714
- o.hasFormat(d) || o.toggleFormat(d);
9744
+ for (let u of l.format)
9745
+ o.hasFormat(u) || o.toggleFormat(u);
9715
9746
  o.hasFormat("code") || Xn(o, e, n), c && Xn(c, e, n), a && Xn(a, e, n);
9716
9747
  } else
9717
9748
  e:
@@ -9874,23 +9905,23 @@ X.registerMarkdownShortcuts = function(t, e = Dr) {
9874
9905
  var c = s.read(U.$getSelection);
9875
9906
  if (o = a.read(U.$getSelection), U.$isRangeSelection(o) && U.$isRangeSelection(c) && c.isCollapsed()) {
9876
9907
  a = c.anchor.key;
9877
- var d = c.anchor.offset, u = s._nodeMap.get(a);
9878
- U.$isTextNode(u) && l.has(a) && (d === 1 || d === o.anchor.offset + 1) && t.update(() => {
9879
- if (!u.hasFormat("code")) {
9880
- var g = u.getParent();
9908
+ var u = c.anchor.offset, d = s._nodeMap.get(a);
9909
+ U.$isTextNode(d) && l.has(a) && (u === 1 || u === o.anchor.offset + 1) && t.update(() => {
9910
+ if (!d.hasFormat("code")) {
9911
+ var g = d.getParent();
9881
9912
  if (g !== null && !cn.$isCodeNode(g)) {
9882
9913
  var m = c.anchor.offset;
9883
9914
  e: {
9884
- var h = n.element, C = g.getParent();
9885
- if (U.$isRootOrShadowRoot(C) && g.getFirstChild() === u && (C = u.getTextContent(), C[m - 1] === " ")) {
9915
+ var h = n.element, v = g.getParent();
9916
+ if (U.$isRootOrShadowRoot(v) && g.getFirstChild() === d && (v = d.getTextContent(), v[m - 1] === " ")) {
9886
9917
  for (let {
9887
9918
  regExp: E,
9888
9919
  replace: S
9889
9920
  } of h)
9890
- if ((h = C.match(E)) && h[0].length === m) {
9891
- C = u.getNextSiblings();
9892
- let [$, L] = u.splitText(m);
9893
- $.remove(), C = L ? [L, ...C] : C, S(g, C, h, !1), g = !0;
9921
+ if ((h = v.match(E)) && h[0].length === m) {
9922
+ v = d.getNextSiblings();
9923
+ let [$, L] = d.splitText(m);
9924
+ $.remove(), v = L ? [L, ...v] : v, S(g, v, h, !1), g = !0;
9894
9925
  break e;
9895
9926
  }
9896
9927
  }
@@ -9898,40 +9929,40 @@ X.registerMarkdownShortcuts = function(t, e = Dr) {
9898
9929
  }
9899
9930
  if (!g) {
9900
9931
  e: {
9901
- if (h = u.getTextContent(), g = i[h[m - 1]], g != null) {
9932
+ if (h = d.getTextContent(), g = i[h[m - 1]], g != null) {
9902
9933
  m < h.length && (h = h.slice(0, m));
9903
- for (N of g)
9904
- if (g = h.match(N.regExp), g !== null) {
9905
- h = g.index || 0, C = h + g[0].length;
9934
+ for (w of g)
9935
+ if (g = h.match(w.regExp), g !== null) {
9936
+ h = g.index || 0, v = h + g[0].length;
9906
9937
  var T = void 0;
9907
- h === 0 ? [T] = u.splitText(C) : [, T] = u.splitText(h, C), T.selectNext(0, 0), N.replace(T, g);
9908
- var N = !0;
9938
+ h === 0 ? [T] = d.splitText(v) : [, T] = d.splitText(h, v), T.selectNext(0, 0), w.replace(T, g);
9939
+ var w = !0;
9909
9940
  break e;
9910
9941
  }
9911
9942
  }
9912
- N = !1;
9943
+ w = !1;
9913
9944
  }
9914
- if (!N)
9945
+ if (!w)
9915
9946
  e: {
9916
- C = u.getTextContent(), --m;
9917
- var p = C[m];
9918
- if (N = r[p])
9919
- for (let E of N) {
9920
- var { tag: _ } = E;
9921
- N = _.length;
9922
- let S = m - N + 1;
9923
- if (!(1 < N && !$a(C, S, _, 0, N) || C[S - 1] === " ") && (T = C[m + 1], E.intraword !== !1 || !T || dr.test(T))) {
9924
- g = T = u, h = al(C, S, _);
9925
- for (var w = g; 0 > h && (w = w.getPreviousSibling()) && !U.$isLineBreakNode(w); )
9926
- U.$isTextNode(w) && (h = w.getTextContent(), g = w, h = al(h, h.length, _));
9927
- if (!(0 > h || g === T && h + N === S || (_ = g.getTextContent(), 0 < h && _[h - 1] === p || (w = _[h - 1], E.intraword === !1 && w && !dr.test(w))))) {
9928
- C = T.getTextContent(), C = C.slice(0, S) + C.slice(m + 1), T.setTextContent(C), C = g === T ? C : _, g.setTextContent(C.slice(0, h) + C.slice(h + N)), C = U.$getSelection(), p = U.$createRangeSelection(), U.$setSelection(p), m = m - N * (g === T ? 2 : 1) + 1, p.anchor.set(g.__key, h, "text"), p.focus.set(T.__key, m, "text");
9947
+ v = d.getTextContent(), --m;
9948
+ var p = v[m];
9949
+ if (w = r[p])
9950
+ for (let E of w) {
9951
+ var { tag: C } = E;
9952
+ w = C.length;
9953
+ let S = m - w + 1;
9954
+ if (!(1 < w && !$a(v, S, C, 0, w) || v[S - 1] === " ") && (T = v[m + 1], E.intraword !== !1 || !T || dr.test(T))) {
9955
+ g = T = d, h = al(v, S, C);
9956
+ for (var x = g; 0 > h && (x = x.getPreviousSibling()) && !U.$isLineBreakNode(x); )
9957
+ U.$isTextNode(x) && (h = x.getTextContent(), g = x, h = al(h, h.length, C));
9958
+ if (!(0 > h || g === T && h + w === S || (C = g.getTextContent(), 0 < h && C[h - 1] === p || (x = C[h - 1], E.intraword === !1 && x && !dr.test(x))))) {
9959
+ v = T.getTextContent(), v = v.slice(0, S) + v.slice(m + 1), T.setTextContent(v), v = g === T ? v : C, g.setTextContent(v.slice(0, h) + v.slice(h + w)), v = U.$getSelection(), p = U.$createRangeSelection(), U.$setSelection(p), m = m - w * (g === T ? 2 : 1) + 1, p.anchor.set(g.__key, h, "text"), p.focus.set(T.__key, m, "text");
9929
9960
  for (let $ of E.format)
9930
9961
  p.hasFormat($) || p.formatText($);
9931
9962
  p.anchor.set(p.focus.key, p.focus.offset, p.focus.type);
9932
9963
  for (let $ of E.format)
9933
9964
  p.hasFormat($) && p.toggleFormat($);
9934
- U.$isRangeSelection(C) && (p.format = C.format);
9965
+ U.$isRangeSelection(v) && (p.format = v.format);
9935
9966
  break e;
9936
9967
  }
9937
9968
  }
@@ -9946,17 +9977,17 @@ X.registerMarkdownShortcuts = function(t, e = Dr) {
9946
9977
  });
9947
9978
  };
9948
9979
  const z1 = X;
9949
- var ct = z1, Ji = {}, Dn = {}, H1 = pe, K1 = na, W1 = _e, ke = y, en = R;
9950
- let U1 = ke.createCommand();
9980
+ var ct = z1, Ji = {}, Dn = {}, H1 = pe, K1 = na, W1 = _e, Ie = y, en = R;
9981
+ let U1 = Ie.createCommand();
9951
9982
  function V1({ nodeKey: t }) {
9952
- let [e] = H1.useLexicalComposerContext(), n = en.useRef(null), [r, i, o] = K1.useLexicalNodeSelection(t), l = en.useCallback((s) => (r && ke.$isNodeSelection(ke.$getSelection()) && (s.preventDefault(), s = ke.$getNodeByKey(t), ja(s) && s.remove(), i(!1)), !1), [r, t, i]);
9953
- return en.useEffect(() => W1.mergeRegister(e.registerCommand(ke.CLICK_COMMAND, (s) => s.target === n.current ? (s.shiftKey || o(), i(!r), !0) : !1, ke.COMMAND_PRIORITY_LOW), e.registerCommand(ke.KEY_DELETE_COMMAND, l, ke.COMMAND_PRIORITY_LOW), e.registerCommand(
9954
- ke.KEY_BACKSPACE_COMMAND,
9983
+ let [e] = H1.useLexicalComposerContext(), n = en.useRef(null), [r, i, o] = K1.useLexicalNodeSelection(t), l = en.useCallback((s) => (r && Ie.$isNodeSelection(Ie.$getSelection()) && (s.preventDefault(), s = Ie.$getNodeByKey(t), ja(s) && s.remove(), i(!1)), !1), [r, t, i]);
9984
+ return en.useEffect(() => W1.mergeRegister(e.registerCommand(Ie.CLICK_COMMAND, (s) => s.target === n.current ? (s.shiftKey || o(), i(!r), !0) : !1, Ie.COMMAND_PRIORITY_LOW), e.registerCommand(Ie.KEY_DELETE_COMMAND, l, Ie.COMMAND_PRIORITY_LOW), e.registerCommand(
9985
+ Ie.KEY_BACKSPACE_COMMAND,
9955
9986
  l,
9956
- ke.COMMAND_PRIORITY_LOW
9987
+ Ie.COMMAND_PRIORITY_LOW
9957
9988
  )), [o, e, r, l, i]), en.createElement("hr", { ref: n, className: r ? "selected" : void 0 });
9958
9989
  }
9959
- class Ln extends ke.DecoratorNode {
9990
+ class Ln extends Ie.DecoratorNode {
9960
9991
  static getType() {
9961
9992
  return "horizontalrule";
9962
9993
  }
@@ -10192,8 +10223,8 @@ const sg = ({
10192
10223
  for (const [o, l] of t) {
10193
10224
  const s = [];
10194
10225
  l.forEach((a) => {
10195
- const c = i === n, d = (u) => {
10196
- u.preventDefault(), e == null || e(a.insertCommand, {
10226
+ const c = i === n, u = (d) => {
10227
+ d.preventDefault(), e == null || e(a.insertCommand, {
10197
10228
  insertParams: a.insertParams,
10198
10229
  queryParams: a.queryParams
10199
10230
  });
@@ -10203,13 +10234,13 @@ const sg = ({
10203
10234
  desc: a.desc,
10204
10235
  Icon: a.Icon,
10205
10236
  isSelected: c,
10206
- onClick: d,
10237
+ onClick: u,
10207
10238
  "data-kg-cardmenu-idx": i
10208
10239
  }, i)) : a.type === "snippet" && s.push(/* @__PURE__ */ f(cg, {
10209
10240
  label: a.label,
10210
10241
  Icon: a.Icon,
10211
10242
  isSelected: c,
10212
- onClick: d,
10243
+ onClick: u,
10213
10244
  "data-kg-cardmenu-idx": i
10214
10245
  }, i)), i = i + 1;
10215
10246
  }), r.push(/* @__PURE__ */ f(sg, {
@@ -10245,7 +10276,7 @@ function qa(t, { query: e } = {}) {
10245
10276
  }
10246
10277
  function ug(t) {
10247
10278
  var W;
10248
- const [e, n] = R.useState(!1), [r, i] = R.useState(!1), [o, l] = R.useState(0), [s, a] = R.useState(null), [c, d] = R.useState({}), u = R.useRef(null);
10279
+ const [e, n] = R.useState(!1), [r, i] = R.useState(!1), [o, l] = R.useState(0), [s, a] = R.useState(null), [c, u] = R.useState({}), d = R.useRef(null);
10249
10280
  function g(b) {
10250
10281
  const H = b.getBoundingClientRect(), ee = b.parentNode.getBoundingClientRect();
10251
10282
  return H.top - ee.top;
@@ -10256,18 +10287,18 @@ function ug(t) {
10256
10287
  }
10257
10288
  const h = R.useCallback(() => {
10258
10289
  !s || (document.getSelection().removeAllRanges(), document.getSelection().addRange(s));
10259
- }, [s]), C = R.useCallback((b) => {
10290
+ }, [s]), v = R.useCallback((b) => {
10260
10291
  const H = m(b);
10261
10292
  a(H), n(!0);
10262
10293
  }, [n, a]), T = R.useCallback(() => {
10263
10294
  n(!1), i(!1), a(null);
10264
- }, [n, i, a]), N = R.useCallback((b) => {
10295
+ }, [n, i, a]), w = R.useCallback((b) => {
10265
10296
  b == null || b.preventDefault(), h(), i(!0);
10266
10297
  }, [h, i]), p = R.useCallback(({
10267
10298
  resetCursor: b = !1
10268
10299
  } = {}) => {
10269
10300
  b && h(), i(!1);
10270
- }, [h, i]), _ = R.useCallback(() => {
10301
+ }, [h, i]), C = R.useCallback(() => {
10271
10302
  t.getEditorState().read(() => {
10272
10303
  if (t.isComposing())
10273
10304
  return;
@@ -10286,9 +10317,9 @@ function ug(t) {
10286
10317
  T();
10287
10318
  return;
10288
10319
  }
10289
- l(g(Q)), C(Q);
10320
+ l(g(Q)), v(Q);
10290
10321
  });
10291
- }, [t, C, T]), w = R.useCallback((b, {
10322
+ }, [t, v, T]), x = R.useCallback((b, {
10292
10323
  insertParams: H = {}
10293
10324
  } = {}) => {
10294
10325
  const ee = {
@@ -10297,13 +10328,13 @@ function ug(t) {
10297
10328
  t.dispatchCommand(b, ee), p();
10298
10329
  }, [t, p]);
10299
10330
  R.useEffect(() => t.registerUpdateListener(() => {
10300
- _();
10301
- }, [t, _]));
10331
+ C();
10332
+ }, [t, C]));
10302
10333
  const E = R.useCallback(() => {
10303
10334
  var b;
10304
10335
  if (e) {
10305
10336
  const H = window.getSelection();
10306
- if (r && ((b = u.current) == null ? void 0 : b.contains(H.anchorNode)))
10337
+ if (r && ((b = d.current) == null ? void 0 : b.contains(H.anchorNode)))
10307
10338
  return;
10308
10339
  t.getRootElement().contains(H.anchorNode) || T();
10309
10340
  }
@@ -10321,14 +10352,14 @@ function ug(t) {
10321
10352
  } = b, q = H.getBoundingClientRect();
10322
10353
  ee < q.left && (ee = ee + 40);
10323
10354
  const re = document.elementFromPoint(ee, Q);
10324
- H.contains(re) && ((re == null ? void 0 : re.tagName) === "P" && re.textContent === "" ? (l(g(re)), C(re)) : _());
10325
- }, [t, r, l, C, _]);
10355
+ H.contains(re) && ((re == null ? void 0 : re.tagName) === "P" && re.textContent === "" ? (l(g(re)), v(re)) : C());
10356
+ }, [t, r, l, v, C]);
10326
10357
  R.useEffect(() => (window.addEventListener("mousemove", S), () => {
10327
10358
  window.removeEventListener("mousemove", S);
10328
10359
  }), [S]);
10329
10360
  const $ = R.useCallback((b) => {
10330
10361
  var H;
10331
- if (r && !((H = u.current) != null && H.contains(b.target)))
10362
+ if (r && !((H = d.current) != null && H.contains(b.target)))
10332
10363
  return p();
10333
10364
  }, [r, p]);
10334
10365
  R.useEffect(() => (window.addEventListener("mousedown", $), () => {
@@ -10349,24 +10380,24 @@ function ug(t) {
10349
10380
  window.removeEventListener("keydown", L);
10350
10381
  })), R.useEffect(() => {
10351
10382
  const b = Qa(t);
10352
- d(qa(b, {
10353
- insert: w
10383
+ u(qa(b, {
10384
+ insert: x
10354
10385
  }));
10355
- }, [t, w, d]);
10386
+ }, [t, x, u]);
10356
10387
  const M = {
10357
10388
  top: `${o}px`
10358
10389
  };
10359
10390
  return ((W = c.menu) == null ? void 0 : W.size) === 0 ? null : e ? /* @__PURE__ */ Y("div", {
10360
10391
  className: "absolute",
10361
10392
  style: M,
10362
- ref: u,
10393
+ ref: d,
10363
10394
  "data-kg-plus-container": !0,
10364
10395
  children: [e && /* @__PURE__ */ f(og, {
10365
- onClick: N
10396
+ onClick: w
10366
10397
  }), r && /* @__PURE__ */ f(lg, {
10367
10398
  children: /* @__PURE__ */ f(Xa, {
10368
10399
  menu: c.menu,
10369
- insert: w
10400
+ insert: x
10370
10401
  })
10371
10402
  })]
10372
10403
  }) : null;
@@ -10384,22 +10415,22 @@ function gg({
10384
10415
  });
10385
10416
  }
10386
10417
  function fg(t) {
10387
- var w;
10388
- const [e, n] = R.useState(!1), [r, i] = R.useState(0), [o, l] = R.useState(""), [s, a] = R.useState([]), [c, d] = R.useState({}), [u, g] = R.useState(0), m = R.useRef(null), h = R.useRef(null);
10389
- function C(E) {
10418
+ var x;
10419
+ const [e, n] = R.useState(!1), [r, i] = R.useState(0), [o, l] = R.useState(""), [s, a] = R.useState([]), [c, u] = R.useState({}), [d, g] = R.useState(0), m = R.useRef(null), h = R.useRef(null);
10420
+ function v(E) {
10390
10421
  const S = E.getBoundingClientRect(), $ = E.parentNode.getBoundingClientRect();
10391
10422
  return S.bottom - $.top;
10392
10423
  }
10393
10424
  function T() {
10394
10425
  !m.current || (document.getSelection().removeAllRanges(), document.getSelection().addRange(m.current));
10395
10426
  }
10396
- const N = R.useCallback(() => {
10427
+ const w = R.useCallback(() => {
10397
10428
  n(!0);
10398
10429
  }, [n]), p = R.useCallback(({
10399
10430
  resetCursor: E = !1
10400
10431
  } = {}) => {
10401
10432
  E && T(), n(!1), l(""), a([]), m.current = null;
10402
- }, [n]), _ = R.useCallback((E, {
10433
+ }, [n]), C = R.useCallback((E, {
10403
10434
  insertParams: S = {},
10404
10435
  queryParams: $ = {}
10405
10436
  } = {}) => {
@@ -10459,14 +10490,14 @@ function fg(t) {
10459
10490
  if (Et || te) {
10460
10491
  const ie = window.getSelection();
10461
10492
  let ve;
10462
- ie.anchorNode.nodeType === Node.TEXT_NODE ? ve = ie.anchorNode.parentNode.closest("p") : ve = ie.anchorNode, i(C(ve)), N();
10493
+ ie.anchorNode.nodeType === Node.TEXT_NODE ? ve = ie.anchorNode.parentNode.closest("p") : ve = ie.anchorNode, i(v(ve)), w();
10463
10494
  }
10464
10495
  });
10465
10496
  };
10466
10497
  return window.addEventListener("keypress", E), () => {
10467
10498
  window.removeEventListener("keypress", E);
10468
10499
  };
10469
- }, [t, e, i, N]), R.useEffect(() => {
10500
+ }, [t, e, i, w]), R.useEffect(() => {
10470
10501
  if (!e)
10471
10502
  return;
10472
10503
  const E = (S) => {
@@ -10493,18 +10524,18 @@ function fg(t) {
10493
10524
  }, [e, p]), R.useEffect(() => {
10494
10525
  if (!e)
10495
10526
  return;
10496
- const E = (L) => (g(u === 0 ? c.maxItemIndex : u - 1), L.preventDefault(), !0), S = (L) => (u === c.maxItemIndex ? g(0) : g(u + 1), L.preventDefault(), !0), $ = (L) => {
10527
+ const E = (L) => (g(d === 0 ? c.maxItemIndex : d - 1), L.preventDefault(), !0), S = (L) => (d === c.maxItemIndex ? g(0) : g(d + 1), L.preventDefault(), !0), $ = (L) => {
10497
10528
  var M;
10498
- return (M = document.querySelector(`[data-kg-slash-menu] [data-kg-cardmenu-idx="${u}"]`)) == null || M.click(), L.preventDefault(), !0;
10529
+ return (M = document.querySelector(`[data-kg-slash-menu] [data-kg-cardmenu-idx="${d}"]`)) == null || M.click(), L.preventDefault(), !0;
10499
10530
  };
10500
10531
  return _e.mergeRegister(t.registerCommand(y.KEY_ARROW_DOWN_COMMAND, S, y.COMMAND_PRIORITY_HIGH), t.registerCommand(y.KEY_ARROW_UP_COMMAND, E, y.COMMAND_PRIORITY_HIGH), t.registerCommand(y.KEY_ARROW_RIGHT_COMMAND, S, y.COMMAND_PRIORITY_HIGH), t.registerCommand(y.KEY_ARROW_LEFT_COMMAND, E, y.COMMAND_PRIORITY_HIGH), t.registerCommand(y.KEY_ENTER_COMMAND, $, y.COMMAND_PRIORITY_HIGH));
10501
- }, [t, e, c, u]), R.useEffect(() => {
10532
+ }, [t, e, c, d]), R.useEffect(() => {
10502
10533
  const E = Qa(t);
10503
- d(qa(E, {
10504
- insert: _,
10534
+ u(qa(E, {
10535
+ insert: C,
10505
10536
  query: o
10506
10537
  })), g(0);
10507
- }, [t, o, _, d, g]), ((w = c.menu) == null ? void 0 : w.size) === 0 ? null : e ? /* @__PURE__ */ f("div", {
10538
+ }, [t, o, C, u, g]), ((x = c.menu) == null ? void 0 : x.size) === 0 ? null : e ? /* @__PURE__ */ f("div", {
10508
10539
  className: "absolute",
10509
10540
  style: {
10510
10541
  top: `${r}px`
@@ -10514,8 +10545,8 @@ function fg(t) {
10514
10545
  children: /* @__PURE__ */ f(gg, {
10515
10546
  children: /* @__PURE__ */ f(Xa, {
10516
10547
  menu: c.menu,
10517
- selectedItemIndex: u,
10518
- insert: _
10548
+ selectedItemIndex: d,
10549
+ insert: C
10519
10550
  })
10520
10551
  })
10521
10552
  }) : null;
@@ -10588,12 +10619,12 @@ function Cg({
10588
10619
  const h = y.$getSelection();
10589
10620
  y.$isRangeSelection(h) && Fe.$wrapNodes(h, () => y.$createParagraphNode());
10590
10621
  });
10591
- }, d = (h) => {
10622
+ }, u = (h) => {
10592
10623
  r !== h && e.update(() => {
10593
- const C = y.$getSelection();
10594
- y.$isRangeSelection(C) && Fe.$wrapNodes(C, () => Ct.$createHeadingNode(h));
10624
+ const v = y.$getSelection();
10625
+ y.$isRangeSelection(v) && Fe.$wrapNodes(v, () => Ct.$createHeadingNode(h));
10595
10626
  });
10596
- }, u = () => {
10627
+ }, d = () => {
10597
10628
  e.update(() => {
10598
10629
  const h = y.$getSelection();
10599
10630
  y.$isRangeSelection(h) && (r === "quote" ? Fe.$wrapNodes(h, () => Bi()) : r === "aside" ? Fe.$wrapNodes(h, () => y.$createParagraphNode()) : Fe.$wrapNodes(h, () => Ct.$createQuoteNode()));
@@ -10602,9 +10633,9 @@ function Cg({
10602
10633
  const h = a.current;
10603
10634
  if (!h)
10604
10635
  return;
10605
- const C = y.$getSelection(), T = window.getSelection(), N = e.getRootElement();
10606
- if (C !== null && T !== null && !T.isCollapsed && N !== null && N.contains(T.anchorNode)) {
10607
- const p = _g(T, N);
10636
+ const v = y.$getSelection(), T = window.getSelection(), w = e.getRootElement();
10637
+ if (v !== null && T !== null && !T.isCollapsed && w !== null && w.contains(T.anchorNode)) {
10638
+ const p = _g(T, w);
10608
10639
  l || mg(p, h, n);
10609
10640
  }
10610
10641
  }, [e, n, l]), m = R.useCallback(() => {
@@ -10618,20 +10649,20 @@ function Cg({
10618
10649
  e.getEditorState().read(() => {
10619
10650
  g();
10620
10651
  });
10621
- const h = (C) => {
10622
- C.key === "Shift" && m();
10652
+ const h = (v) => {
10653
+ v.key === "Shift" && m();
10623
10654
  };
10624
10655
  return document.addEventListener("keyup", h), () => {
10625
10656
  document.removeEventListener("keyup", h);
10626
10657
  };
10627
10658
  }, [m, e, g]), R.useEffect(() => {
10628
- const h = ec(n), C = () => {
10659
+ const h = ec(n), v = () => {
10629
10660
  e.getEditorState().read(() => {
10630
10661
  g();
10631
10662
  });
10632
10663
  };
10633
- return window.addEventListener("resize", C), h && h.addEventListener("scroll", C), () => {
10634
- window.removeEventListener("resize", C), h && h.removeEventListener("scroll", C);
10664
+ return window.addEventListener("resize", v), h && h.addEventListener("scroll", v), () => {
10665
+ window.removeEventListener("resize", v), h && h.removeEventListener("scroll", v);
10635
10666
  };
10636
10667
  }, [e, g, n]), R.useEffect(() => (e.getEditorState().read(() => {
10637
10668
  g();
@@ -10649,7 +10680,7 @@ function Cg({
10649
10680
  opacity: 0
10650
10681
  },
10651
10682
  children: /* @__PURE__ */ Y(da, {
10652
- children: [/* @__PURE__ */ f(Pe, {
10683
+ children: [/* @__PURE__ */ f(be, {
10653
10684
  label: "Format text as bold",
10654
10685
  isActive: i,
10655
10686
  icon: "bold",
@@ -10657,7 +10688,7 @@ function Cg({
10657
10688
  s(!0), e.dispatchCommand(y.FORMAT_TEXT_COMMAND, "bold");
10658
10689
  },
10659
10690
  "data-kg-toolbar-button": "bold"
10660
- }), /* @__PURE__ */ f(Pe, {
10691
+ }), /* @__PURE__ */ f(be, {
10661
10692
  label: "Format text as italics",
10662
10693
  isActive: o,
10663
10694
  icon: "italic",
@@ -10665,28 +10696,28 @@ function Cg({
10665
10696
  s(!0), e.dispatchCommand(y.FORMAT_TEXT_COMMAND, "italic");
10666
10697
  },
10667
10698
  "data-kg-toolbar-button": "italic"
10668
- }), /* @__PURE__ */ f(Pe, {
10699
+ }), /* @__PURE__ */ f(be, {
10669
10700
  label: "Toggle heading 1",
10670
10701
  isActive: r === "h2",
10671
10702
  icon: "headingOne",
10672
10703
  onClick: () => {
10673
- r === "h2" ? c() : d("h2"), s(!0);
10704
+ r === "h2" ? c() : u("h2"), s(!0);
10674
10705
  },
10675
10706
  "data-kg-toolbar-button": "h2"
10676
- }), /* @__PURE__ */ f(Pe, {
10707
+ }), /* @__PURE__ */ f(be, {
10677
10708
  label: "Toggle heading 2",
10678
10709
  isActive: r === "h3",
10679
10710
  icon: "headingTwo",
10680
10711
  onClick: () => {
10681
- r === "h3" ? c() : d("h3"), s(!0);
10712
+ r === "h3" ? c() : u("h3"), s(!0);
10682
10713
  },
10683
10714
  "data-kg-toolbar-button": "h3"
10684
- }), /* @__PURE__ */ f(vi, {}), /* @__PURE__ */ f(Pe, {
10715
+ }), /* @__PURE__ */ f(vi, {}), /* @__PURE__ */ f(be, {
10685
10716
  label: "Toggle blockquote",
10686
10717
  isActive: r === "quote" || r === "aside",
10687
10718
  icon: r === "aside" ? "quoteOne" : "quoteTwo",
10688
10719
  onClick: () => {
10689
- u(), s(!0);
10720
+ d(), s(!0);
10690
10721
  },
10691
10722
  "data-kg-toolbar-button": "quote"
10692
10723
  })]
@@ -10694,34 +10725,34 @@ function Cg({
10694
10725
  });
10695
10726
  }
10696
10727
  function yg(t, e) {
10697
- const [n, r] = R.useState(!1), [i, o] = R.useState(!1), [l, s] = R.useState(!1), [a, c] = R.useState("paragraph"), d = R.useCallback(() => {
10728
+ const [n, r] = R.useState(!1), [i, o] = R.useState(!1), [l, s] = R.useState(!1), [a, c] = R.useState("paragraph"), u = R.useCallback(() => {
10698
10729
  t.getEditorState().read(() => {
10699
10730
  if (t.isComposing())
10700
10731
  return;
10701
- const u = y.$getSelection(), g = window.getSelection(), m = t.getRootElement();
10702
- if (g !== null && (!y.$isRangeSelection(u) || m === null || !m.contains(g.anchorNode))) {
10732
+ const d = y.$getSelection(), g = window.getSelection(), m = t.getRootElement();
10733
+ if (g !== null && (!y.$isRangeSelection(d) || m === null || !m.contains(g.anchorNode))) {
10703
10734
  r(!1);
10704
10735
  return;
10705
10736
  }
10706
- if (!y.$isRangeSelection(u))
10737
+ if (!y.$isRangeSelection(d))
10707
10738
  return;
10708
- const h = fr(u), C = h.getKey() === "root" ? h : h.getTopLevelElementOrThrow(), T = C.getKey(), N = t.getElementByKey(T);
10709
- if (o(u.hasFormat("bold")), s(u.hasFormat("italic")), N !== null)
10710
- if (vt.$isListNode(C)) {
10711
- const p = _e.$getNearestNodeOfType(h, vt.ListNode), _ = p ? p.getListType() : C.getListType();
10712
- c(_);
10739
+ const h = fr(d), v = h.getKey() === "root" ? h : h.getTopLevelElementOrThrow(), T = v.getKey(), w = t.getElementByKey(T);
10740
+ if (o(d.hasFormat("bold")), s(d.hasFormat("italic")), w !== null)
10741
+ if (vt.$isListNode(v)) {
10742
+ const p = _e.$getNearestNodeOfType(h, vt.ListNode), C = p ? p.getListType() : v.getListType();
10743
+ c(C);
10713
10744
  } else {
10714
- const p = Ct.$isHeadingNode(C) ? C.getTag() : C.getType();
10745
+ const p = Ct.$isHeadingNode(v) ? v.getTag() : v.getType();
10715
10746
  p in vg && c(p);
10716
10747
  }
10717
- u.getTextContent() !== "" ? r(y.$isTextNode(h)) : r(!1);
10748
+ d.getTextContent() !== "" ? r(y.$isTextNode(h)) : r(!1);
10718
10749
  });
10719
10750
  }, [t]);
10720
- if (Qn(() => (document.addEventListener("selectionchange", d), () => {
10721
- document.removeEventListener("selectionchange", d);
10722
- }), [d]), Qn(() => t.registerUpdateListener(() => {
10723
- d();
10724
- }), [t, d]), !!n)
10751
+ if (Qn(() => (document.addEventListener("selectionchange", u), () => {
10752
+ document.removeEventListener("selectionchange", u);
10753
+ }), [u]), Qn(() => t.registerUpdateListener(() => {
10754
+ u();
10755
+ }), [t, u]), !!n)
10725
10756
  return oc(/* @__PURE__ */ f(Cg, {
10726
10757
  isText: n,
10727
10758
  editor: t,