@esposter/shared 2.19.2 → 2.20.0

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +1211 -134
  2. package/dist/index.js +118 -216
  3. package/package.json +8 -6
package/dist/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { z } from "zod";
2
-
3
2
  //#region \0rolldown/runtime.js
4
3
  var __defProp = Object.defineProperty;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -9,33 +8,24 @@ var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
9
8
  var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
10
9
  var __exportAll = (all, no_symbols) => {
11
10
  let target = {};
12
- for (var name in all) {
13
- __defProp(target, name, {
14
- get: all[name],
15
- enumerable: true
16
- });
17
- }
18
- if (!no_symbols) {
19
- __defProp(target, Symbol.toStringTag, { value: "Module" });
20
- }
11
+ for (var name in all) __defProp(target, name, {
12
+ get: all[name],
13
+ enumerable: true
14
+ });
15
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
21
16
  return target;
22
17
  };
23
18
  var __copyProps = (to, from, except, desc) => {
24
- if (from && typeof from === "object" || typeof from === "function") {
25
- for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
26
- key = keys[i];
27
- if (!__hasOwnProp.call(to, key) && key !== except) {
28
- __defProp(to, key, {
29
- get: ((k) => from[k]).bind(null, key),
30
- enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
31
- });
32
- }
33
- }
19
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
20
+ key = keys[i];
21
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
22
+ get: ((k) => from[k]).bind(null, key),
23
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
24
+ });
34
25
  }
35
26
  return to;
36
27
  };
37
28
  var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
38
-
39
29
  //#endregion
40
30
  //#region src/test/constants.ts
41
31
  const AllSpecialValues = [
@@ -84,7 +74,6 @@ const AllSpecialValues = [
84
74
  value: /* @__PURE__ */ new RegExp("")
85
75
  }
86
76
  ];
87
-
88
77
  //#endregion
89
78
  //#region src/models/error/InvalidOperationError.ts
90
79
  var InvalidOperationError = class extends Error {
@@ -93,7 +82,6 @@ var InvalidOperationError = class extends Error {
93
82
  this.name = "InvalidOperationError";
94
83
  }
95
84
  };
96
-
97
85
  //#endregion
98
86
  //#region src/models/error/NotFoundError.ts
99
87
  var NotFoundError = class extends Error {
@@ -102,7 +90,6 @@ var NotFoundError = class extends Error {
102
90
  this.name = "NotFoundError";
103
91
  }
104
92
  };
105
-
106
93
  //#endregion
107
94
  //#region src/models/error/NotInitializedError.ts
108
95
  var NotInitializedError = class extends Error {
@@ -111,19 +98,15 @@ var NotInitializedError = class extends Error {
111
98
  this.name = "NotInitializedError";
112
99
  }
113
100
  };
114
-
115
101
  //#endregion
116
102
  //#region src/services/app/constants.ts
117
103
  const SITE_NAME = "Esposter";
118
-
119
104
  //#endregion
120
105
  //#region src/services/survey/constants.ts
121
106
  const SURVEY_DISPLAY_NAME = "Surveyer";
122
-
123
107
  //#endregion
124
108
  //#region src/util/text/uncapitalize.ts
125
109
  const uncapitalize = (string) => `${string.charAt(0).toLowerCase()}${string.slice(1)}`;
126
-
127
110
  //#endregion
128
111
  //#region src/models/router/RoutePath.ts
129
112
  const RoutePath = {
@@ -156,16 +139,13 @@ const RoutePath = {
156
139
  UserSettings: "/user/settings",
157
140
  WebpageEditor: "/webpage-editor"
158
141
  };
159
-
160
142
  //#endregion
161
143
  //#region src/util/object/getPropertyNames.ts
162
144
  const getPropertyNames = () => new Proxy({}, { get: (_target, property) => property });
163
-
164
145
  //#endregion
165
146
  //#region src/models/shared/ItemEntityType.ts
166
147
  const ItemEntityTypePropertyNames = getPropertyNames();
167
148
  const createItemEntityTypeSchema = (schema) => z.object({ type: schema });
168
-
169
149
  //#endregion
170
150
  //#region src/models/shared/ItemMetadata.ts
171
151
  var ItemMetadata = class {
@@ -179,7 +159,6 @@ const itemMetadataSchema = z.object({
179
159
  deletedAt: z.date().nullable(),
180
160
  updatedAt: z.date()
181
161
  });
182
-
183
162
  //#endregion
184
163
  //#region src/models/shared/Operation.ts
185
164
  let Operation = /* @__PURE__ */ function(Operation) {
@@ -191,11 +170,10 @@ let Operation = /* @__PURE__ */ function(Operation) {
191
170
  Operation["Update"] = "Update";
192
171
  return Operation;
193
172
  }({});
194
-
195
173
  //#endregion
196
- //#region ../../node_modules/.pnpm/@vue+shared@3.5.27/node_modules/@vue/shared/dist/shared.esm-bundler.js
174
+ //#region ../../node_modules/.pnpm/@vue+shared@3.5.31/node_modules/@vue/shared/dist/shared.esm-bundler.js
197
175
  /**
198
- * @vue/shared v3.5.27
176
+ * @vue/shared v3.5.31
199
177
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
200
178
  * @license MIT
201
179
  **/
@@ -206,7 +184,7 @@ function makeMap(str) {
206
184
  return (val) => val in map;
207
185
  }
208
186
  const EMPTY_OBJ = Object.freeze({});
209
- const EMPTY_ARR = Object.freeze([]);
187
+ Object.freeze([]);
210
188
  const NOOP = () => {};
211
189
  const NO = () => false;
212
190
  const extend = Object.assign;
@@ -240,11 +218,11 @@ const cacheStringFunction$1 = (fn) => {
240
218
  });
241
219
  };
242
220
  const camelizeRE$1 = /-\w/g;
243
- const camelize$1 = cacheStringFunction$1((str) => {
221
+ cacheStringFunction$1((str) => {
244
222
  return str.replace(camelizeRE$1, (c) => c.slice(1).toUpperCase());
245
223
  });
246
224
  const hyphenateRE$1 = /\B([A-Z])/g;
247
- const hyphenate$1 = cacheStringFunction$1((str) => str.replace(hyphenateRE$1, "-$1").toLowerCase());
225
+ cacheStringFunction$1((str) => str.replace(hyphenateRE$1, "-$1").toLowerCase());
248
226
  const capitalize$1 = cacheStringFunction$1((str) => {
249
227
  return str.charAt(0).toUpperCase() + str.slice(1);
250
228
  });
@@ -264,13 +242,10 @@ let _globalThis;
264
242
  const getGlobalThis = () => {
265
243
  return _globalThis || (_globalThis = typeof globalThis !== "undefined" ? globalThis : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : {});
266
244
  };
267
- const specialBooleanAttrs = `itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly`;
268
- const isBooleanAttr = /* @__PURE__ */ makeMap(specialBooleanAttrs + `,async,autofocus,autoplay,controls,default,defer,disabled,hidden,inert,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected`);
269
-
270
245
  //#endregion
271
- //#region ../../node_modules/.pnpm/@vue+reactivity@3.5.27/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
246
+ //#region ../../node_modules/.pnpm/@vue+reactivity@3.5.31/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js
272
247
  /**
273
- * @vue/reactivity v3.5.27
248
+ * @vue/reactivity v3.5.31
274
249
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
275
250
  * @license MIT
276
251
  **/
@@ -307,7 +282,6 @@ var ReactiveEffect = class {
307
282
  */
308
283
  this.cleanup = void 0;
309
284
  this.scheduler = void 0;
310
- if (activeEffectScope && activeEffectScope.active) activeEffectScope.effects.push(this);
311
285
  }
312
286
  pause() {
313
287
  this.flags |= 64;
@@ -835,16 +809,25 @@ function apply(self, method, fn, thisArg, wrappedRetFn, args) {
835
809
  }
836
810
  function reduce(self, method, fn, args) {
837
811
  const arr = shallowReadArray(self);
812
+ const needsWrap = arr !== self && !/* @__PURE__ */ isShallow(self);
838
813
  let wrappedFn = fn;
814
+ let wrapInitialAccumulator = false;
839
815
  if (arr !== self) {
840
- if (!/* @__PURE__ */ isShallow(self)) wrappedFn = function(acc, item, index) {
841
- return fn.call(this, acc, toWrapped(self, item), index, self);
842
- };
843
- else if (fn.length > 3) wrappedFn = function(acc, item, index) {
816
+ if (needsWrap) {
817
+ wrapInitialAccumulator = args.length === 0;
818
+ wrappedFn = function(acc, item, index) {
819
+ if (wrapInitialAccumulator) {
820
+ wrapInitialAccumulator = false;
821
+ acc = toWrapped(self, acc);
822
+ }
823
+ return fn.call(this, acc, toWrapped(self, item), index, self);
824
+ };
825
+ } else if (fn.length > 3) wrappedFn = function(acc, item, index) {
844
826
  return fn.call(this, acc, item, index, self);
845
827
  };
846
828
  }
847
- return arr[method](wrappedFn, ...args);
829
+ const result = arr[method](wrappedFn, ...args);
830
+ return wrapInitialAccumulator ? toWrapped(self, result) : result;
848
831
  }
849
832
  function searchProxy(self, method, args) {
850
833
  const arr = /* @__PURE__ */ toRaw(self);
@@ -1049,11 +1032,13 @@ function createInstrumentations(readonly, shallow) {
1049
1032
  clear: createReadonlyMethod("clear")
1050
1033
  } : {
1051
1034
  add(value) {
1052
- if (!shallow && !/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value)) value = /* @__PURE__ */ toRaw(value);
1053
1035
  const target = /* @__PURE__ */ toRaw(this);
1054
- if (!getProto(target).has.call(target, value)) {
1055
- target.add(value);
1056
- trigger(target, "add", value, value);
1036
+ const proto = getProto(target);
1037
+ const rawValue = /* @__PURE__ */ toRaw(value);
1038
+ const valueToAdd = !shallow && !/* @__PURE__ */ isShallow(value) && !/* @__PURE__ */ isReadonly(value) ? rawValue : value;
1039
+ if (!(proto.has.call(target, valueToAdd) || hasChanged(value, valueToAdd) && proto.has.call(target, value) || hasChanged(rawValue, valueToAdd) && proto.has.call(target, rawValue))) {
1040
+ target.add(valueToAdd);
1041
+ trigger(target, "add", valueToAdd, valueToAdd);
1057
1042
  }
1058
1043
  return this;
1059
1044
  },
@@ -1359,11 +1344,10 @@ function traverse(value, depth = Infinity, seen) {
1359
1344
  }
1360
1345
  return value;
1361
1346
  }
1362
-
1363
1347
  //#endregion
1364
- //#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.27/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
1348
+ //#region ../../node_modules/.pnpm/@vue+runtime-core@3.5.31/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js
1365
1349
  /**
1366
- * @vue/runtime-core v3.5.27
1350
+ * @vue/runtime-core v3.5.31
1367
1351
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
1368
1352
  * @license MIT
1369
1353
  **/
@@ -1449,8 +1433,8 @@ function formatProp(key, value, raw) {
1449
1433
  value = JSON.stringify(value);
1450
1434
  return raw ? value : [`${key}=${value}`];
1451
1435
  } else if (typeof value === "number" || typeof value === "boolean" || value == null) return raw ? value : [`${key}=${value}`];
1452
- else if (isRef(value)) {
1453
- value = formatProp(key, toRaw(value.value), true);
1436
+ else if (/* @__PURE__ */ isRef(value)) {
1437
+ value = formatProp(key, /* @__PURE__ */ toRaw(value.value), true);
1454
1438
  return raw ? value : [
1455
1439
  `${key}=Ref<`,
1456
1440
  value,
@@ -1458,7 +1442,7 @@ function formatProp(key, value, raw) {
1458
1442
  ];
1459
1443
  } else if (isFunction(value)) return [`${key}=fn${value.name ? `<${value.name}>` : ``}`];
1460
1444
  else {
1461
- value = toRaw(value);
1445
+ value = /* @__PURE__ */ toRaw(value);
1462
1446
  return raw ? value : [`${key}=`, value];
1463
1447
  }
1464
1448
  }
@@ -1658,7 +1642,6 @@ function checkRecursiveUpdates(seen, fn) {
1658
1642
  seen.set(fn, count + 1);
1659
1643
  return false;
1660
1644
  }
1661
- let isHmrUpdating = false;
1662
1645
  const hmrDirtyComponents = /* @__PURE__ */ new Map();
1663
1646
  getGlobalThis().__VUE_HMR_RUNTIME__ = {
1664
1647
  createRecord: tryWrap(createRecord),
@@ -1687,9 +1670,7 @@ function rerender(id, newRender) {
1687
1670
  normalizeClassComponent(instance.type).render = newRender;
1688
1671
  }
1689
1672
  instance.renderCache = [];
1690
- isHmrUpdating = true;
1691
1673
  if (!(instance.job.flags & 8)) instance.update();
1692
- isHmrUpdating = false;
1693
1674
  });
1694
1675
  }
1695
1676
  function reload(id, newComp) {
@@ -1716,9 +1697,7 @@ function reload(id, newComp) {
1716
1697
  dirtyInstances.delete(instance);
1717
1698
  } else if (instance.parent) queueJob(() => {
1718
1699
  if (!(instance.job.flags & 8)) {
1719
- isHmrUpdating = true;
1720
1700
  instance.parent.update();
1721
- isHmrUpdating = false;
1722
1701
  dirtyInstances.delete(instance);
1723
1702
  }
1724
1703
  });
@@ -1838,8 +1817,8 @@ function createPathGetter(ctx, path) {
1838
1817
  return cur;
1839
1818
  };
1840
1819
  }
1841
- const requestIdleCallback = getGlobalThis().requestIdleCallback || ((cb) => setTimeout(cb, 1));
1842
- const cancelIdleCallback = getGlobalThis().cancelIdleCallback || ((id) => clearTimeout(id));
1820
+ getGlobalThis().requestIdleCallback;
1821
+ getGlobalThis().cancelIdleCallback;
1843
1822
  function injectHook(type, hook, target = currentInstance, prepend = false) {
1844
1823
  if (target) {
1845
1824
  const hooks = target[type] || (target[type] = []);
@@ -1859,15 +1838,15 @@ function injectHook(type, hook, target = currentInstance, prepend = false) {
1859
1838
  const createHook = (lifecycle) => (hook, target = currentInstance) => {
1860
1839
  if (!isInSSRComponentSetup || lifecycle === "sp") injectHook(lifecycle, (...args) => hook(...args), target);
1861
1840
  };
1862
- const onBeforeMount = createHook("bm");
1863
- const onMounted = createHook("m");
1864
- const onBeforeUpdate = createHook("bu");
1865
- const onUpdated = createHook("u");
1866
- const onBeforeUnmount = createHook("bum");
1867
- const onUnmounted = createHook("um");
1868
- const onServerPrefetch = createHook("sp");
1869
- const onRenderTriggered = createHook("rtg");
1870
- const onRenderTracked = createHook("rtc");
1841
+ createHook("bm");
1842
+ createHook("m");
1843
+ createHook("bu");
1844
+ createHook("u");
1845
+ createHook("bum");
1846
+ createHook("um");
1847
+ createHook("sp");
1848
+ createHook("rtg");
1849
+ createHook("rtc");
1871
1850
  const getPublicInstance = (i) => {
1872
1851
  if (!i) return null;
1873
1852
  if (isStatefulComponent(i)) return getComponentPublicInstance(i);
@@ -1877,10 +1856,10 @@ const publicPropertiesMap = /* @__PURE__ */ extend(/* @__PURE__ */ Object.create
1877
1856
  $: (i) => i,
1878
1857
  $el: (i) => i.vnode.el,
1879
1858
  $data: (i) => i.data,
1880
- $props: (i) => shallowReadonly(i.props),
1881
- $attrs: (i) => shallowReadonly(i.attrs),
1882
- $slots: (i) => shallowReadonly(i.slots),
1883
- $refs: (i) => shallowReadonly(i.refs),
1859
+ $props: (i) => /* @__PURE__ */ shallowReadonly(i.props),
1860
+ $attrs: (i) => /* @__PURE__ */ shallowReadonly(i.attrs),
1861
+ $slots: (i) => /* @__PURE__ */ shallowReadonly(i.slots),
1862
+ $refs: (i) => /* @__PURE__ */ shallowReadonly(i.refs),
1884
1863
  $parent: (i) => getPublicInstance(i.parent),
1885
1864
  $root: (i) => getPublicInstance(i.root),
1886
1865
  $host: (i) => i.ce,
@@ -1892,7 +1871,6 @@ const publicPropertiesMap = /* @__PURE__ */ extend(/* @__PURE__ */ Object.create
1892
1871
  $nextTick: (i) => i.n || (i.n = nextTick.bind(i.proxy)),
1893
1872
  $watch: (i) => __VUE_OPTIONS_API__ ? instanceWatch.bind(i) : NOOP
1894
1873
  });
1895
- const isReservedPrefix = (key) => key === "_" || key === "$";
1896
1874
  const hasSetupBinding = (state, key) => state !== EMPTY_OBJ && !state.__isScriptSetup && hasOwn(state, key);
1897
1875
  const PublicInstanceProxyHandlers = {
1898
1876
  get({ _: instance }, key) {
@@ -1934,10 +1912,6 @@ const PublicInstanceProxyHandlers = {
1934
1912
  accessCache[key] = 4;
1935
1913
  return ctx[key];
1936
1914
  } else if (globalProperties = appContext.config.globalProperties, hasOwn(globalProperties, key)) return globalProperties[key];
1937
- else if (currentRenderingInstance && (!isString(key) || key.indexOf("__v") !== 0)) {
1938
- if (data !== EMPTY_OBJ && isReservedPrefix(key[0]) && hasOwn(data, key)) warn$1(`Property ${JSON.stringify(key)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`);
1939
- else if (instance === currentRenderingInstance) warn$1(`Property ${JSON.stringify(key)} was accessed during render but is not defined on instance.`);
1940
- }
1941
1915
  },
1942
1916
  set({ _: instance }, key, value) {
1943
1917
  const { data, setupState, ctx } = instance;
@@ -2095,21 +2069,17 @@ function createAppContext() {
2095
2069
  };
2096
2070
  }
2097
2071
  let currentApp = null;
2098
- let accessedAttrs = false;
2099
- function markAttrsAccessed() {
2100
- accessedAttrs = true;
2101
- }
2072
+ function markAttrsAccessed() {}
2102
2073
  const queuePostRenderEffect = queueEffectWithSuspense;
2103
2074
  function queueEffectWithSuspense(fn, suspense) {
2104
2075
  if (suspense && suspense.pendingBranch) if (isArray(fn)) suspense.effects.push(...fn);
2105
2076
  else suspense.effects.push(fn);
2106
2077
  else queuePostFlushCb(fn);
2107
2078
  }
2108
- const emptyAppContext = createAppContext();
2079
+ createAppContext();
2109
2080
  let currentInstance = null;
2110
2081
  const getCurrentInstance = () => currentInstance || currentRenderingInstance;
2111
2082
  let internalSetCurrentInstance;
2112
- let setInSSRSetupState;
2113
2083
  {
2114
2084
  const g = getGlobalThis();
2115
2085
  const registerGlobalSetter = (key, setter) => {
@@ -2122,7 +2092,7 @@ let setInSSRSetupState;
2122
2092
  };
2123
2093
  };
2124
2094
  internalSetCurrentInstance = registerGlobalSetter(`__VUE_INSTANCE_SETTERS__`, (v) => currentInstance = v);
2125
- setInSSRSetupState = registerGlobalSetter(`__VUE_SSR_SETTERS__`, (v) => isInSSRComponentSetup = v);
2095
+ registerGlobalSetter(`__VUE_SSR_SETTERS__`, (v) => isInSSRComponentSetup = v);
2126
2096
  }
2127
2097
  const setCurrentInstance = (instance) => {
2128
2098
  const prev = currentInstance;
@@ -2186,7 +2156,7 @@ function initCustomFormatter() {
2186
2156
  vueStyle,
2187
2157
  `VueInstance`
2188
2158
  ];
2189
- else if (isRef(obj)) {
2159
+ else if (/* @__PURE__ */ isRef(obj)) {
2190
2160
  pauseTracking();
2191
2161
  const value = obj.value;
2192
2162
  resetTracking();
@@ -2202,25 +2172,25 @@ function initCustomFormatter() {
2202
2172
  formatValue(value),
2203
2173
  `>`
2204
2174
  ];
2205
- } else if (isReactive(obj)) return [
2175
+ } else if (/* @__PURE__ */ isReactive(obj)) return [
2206
2176
  "div",
2207
2177
  {},
2208
2178
  [
2209
2179
  "span",
2210
2180
  vueStyle,
2211
- isShallow(obj) ? "ShallowReactive" : "Reactive"
2181
+ /* @__PURE__ */ isShallow(obj) ? "ShallowReactive" : "Reactive"
2212
2182
  ],
2213
2183
  "<",
2214
2184
  formatValue(obj),
2215
- `>${isReadonly(obj) ? ` (readonly)` : ``}`
2185
+ `>${/* @__PURE__ */ isReadonly(obj) ? ` (readonly)` : ``}`
2216
2186
  ];
2217
- else if (isReadonly(obj)) return [
2187
+ else if (/* @__PURE__ */ isReadonly(obj)) return [
2218
2188
  "div",
2219
2189
  {},
2220
2190
  [
2221
2191
  "span",
2222
2192
  vueStyle,
2223
- isShallow(obj) ? "ShallowReadonly" : "Readonly"
2193
+ /* @__PURE__ */ isShallow(obj) ? "ShallowReadonly" : "Readonly"
2224
2194
  ],
2225
2195
  "<",
2226
2196
  formatValue(obj),
@@ -2241,9 +2211,9 @@ function initCustomFormatter() {
2241
2211
  };
2242
2212
  function formatInstance(instance) {
2243
2213
  const blocks = [];
2244
- if (instance.type.props && instance.props) blocks.push(createInstanceBlock("props", toRaw(instance.props)));
2214
+ if (instance.type.props && instance.props) blocks.push(createInstanceBlock("props", /* @__PURE__ */ toRaw(instance.props)));
2245
2215
  if (instance.setupState !== EMPTY_OBJ) blocks.push(createInstanceBlock("setup", instance.setupState));
2246
- if (instance.data !== EMPTY_OBJ) blocks.push(createInstanceBlock("data", toRaw(instance.data)));
2216
+ if (instance.data !== EMPTY_OBJ) blocks.push(createInstanceBlock("data", /* @__PURE__ */ toRaw(instance.data)));
2247
2217
  const computed = extractKeys(instance, "computed");
2248
2218
  if (computed) blocks.push(createInstanceBlock("computed", computed));
2249
2219
  const injected = extractKeys(instance, "inject");
@@ -2305,7 +2275,7 @@ function initCustomFormatter() {
2305
2275
  keywordStyle,
2306
2276
  v
2307
2277
  ];
2308
- else if (isObject$1(v)) return ["object", { object: asRaw ? toRaw(v) : v }];
2278
+ else if (isObject$1(v)) return ["object", { object: asRaw ? /* @__PURE__ */ toRaw(v) : v }];
2309
2279
  else return [
2310
2280
  "span",
2311
2281
  stringStyle,
@@ -2326,18 +2296,17 @@ function initCustomFormatter() {
2326
2296
  if (Comp.mixins && Comp.mixins.some((m) => isKeyOfType(m, key, type))) return true;
2327
2297
  }
2328
2298
  function genRefFlag(v) {
2329
- if (isShallow(v)) return `ShallowRef`;
2299
+ if (/* @__PURE__ */ isShallow(v)) return `ShallowRef`;
2330
2300
  if (v.effect) return `ComputedRef`;
2331
2301
  return `Ref`;
2332
2302
  }
2333
2303
  if (window.devtoolsFormatters) window.devtoolsFormatters.push(formatter);
2334
2304
  else window.devtoolsFormatters = [formatter];
2335
2305
  }
2336
-
2337
2306
  //#endregion
2338
- //#region ../../node_modules/.pnpm/vue@3.5.27_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
2307
+ //#region ../../node_modules/.pnpm/vue@3.5.31_typescript@5.9.3/node_modules/vue/dist/vue.runtime.esm-bundler.js
2339
2308
  /**
2340
- * vue v3.5.27
2309
+ * vue v3.5.31
2341
2310
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
2342
2311
  * @license MIT
2343
2312
  **/
@@ -2345,14 +2314,10 @@ function initDev() {
2345
2314
  initCustomFormatter();
2346
2315
  }
2347
2316
  initDev();
2348
-
2349
2317
  //#endregion
2350
2318
  //#region src/util/reactivity/getRawData.ts
2351
- const getRawData = (data) => isReactive(data) ? toRaw(data) : data;
2352
-
2353
- //#endregion
2354
- //#region ../../node_modules/.pnpm/@vueuse+shared@14.2.0_vue@3.5.27_typescript@5.9.3_/node_modules/@vueuse/shared/dist/index.js
2355
- const isWorker = typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
2319
+ const getRawData = (data) => /* @__PURE__ */ isReactive(data) ? /* @__PURE__ */ toRaw(data) : data;
2320
+ typeof WorkerGlobalScope !== "undefined" && globalThis instanceof WorkerGlobalScope;
2356
2321
  const toString = Object.prototype.toString;
2357
2322
  const isObject = (val) => toString.call(val) === "[object Object]";
2358
2323
  function cacheStringFunction(fn) {
@@ -2362,12 +2327,11 @@ function cacheStringFunction(fn) {
2362
2327
  });
2363
2328
  }
2364
2329
  const hyphenateRE = /\B([A-Z])/g;
2365
- const hyphenate = cacheStringFunction((str) => str.replace(hyphenateRE, "-$1").toLowerCase());
2330
+ cacheStringFunction((str) => str.replace(hyphenateRE, "-$1").toLowerCase());
2366
2331
  const camelizeRE = /-(\w)/g;
2367
- const camelize = cacheStringFunction((str) => {
2332
+ cacheStringFunction((str) => {
2368
2333
  return str.replace(camelizeRE, (_, c) => c ? c.toUpperCase() : "");
2369
2334
  });
2370
-
2371
2335
  //#endregion
2372
2336
  //#region src/util/reactivity/toRawDeep.ts
2373
2337
  const toRawDeep = (data) => {
@@ -2379,22 +2343,19 @@ const toRawDeep = (data) => {
2379
2343
  }
2380
2344
  return rawData;
2381
2345
  };
2382
-
2383
2346
  //#endregion
2384
2347
  //#region src/models/shared/Serializable.ts
2385
2348
  var Serializable = class {
2386
2349
  toJSON() {
2387
- return JSON.stringify(structuredClone(toRawDeep(this)));
2350
+ return structuredClone(toRawDeep(this));
2388
2351
  }
2389
2352
  };
2390
-
2391
2353
  //#endregion
2392
2354
  //#region src/services/message/constants.ts
2393
2355
  const MENTION_ID_ATTRIBUTE = "data-id";
2394
2356
  const MENTION_LABEL_ATTRIBUTE = "data-label";
2395
2357
  const MENTION_TYPE_ATTRIBUTE = "data-type";
2396
2358
  const MENTION_TYPE = "mention";
2397
-
2398
2359
  //#endregion
2399
2360
  //#region ../../node_modules/.pnpm/he@1.2.0/node_modules/he/he.js
2400
2361
  var require_he = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -6481,9 +6442,8 @@ var require_he = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6481
6442
  else root.he = he;
6482
6443
  })(exports);
6483
6444
  }));
6484
-
6485
6445
  //#endregion
6486
- //#region ../../node_modules/.pnpm/node-html-parser@7.0.2/node_modules/node-html-parser/dist/nodes/node.js
6446
+ //#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/nodes/node.js
6487
6447
  var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
6488
6448
  Object.defineProperty(exports, "__esModule", { value: true });
6489
6449
  const he_1 = require_he();
@@ -6526,9 +6486,8 @@ var require_node$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
6526
6486
  };
6527
6487
  exports.default = Node;
6528
6488
  }));
6529
-
6530
6489
  //#endregion
6531
- //#region ../../node_modules/.pnpm/node-html-parser@7.0.2/node_modules/node-html-parser/dist/nodes/type.js
6490
+ //#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/nodes/type.js
6532
6491
  var require_type = /* @__PURE__ */ __commonJSMin(((exports) => {
6533
6492
  Object.defineProperty(exports, "__esModule", { value: true });
6534
6493
  var NodeType;
@@ -6539,9 +6498,8 @@ var require_type = /* @__PURE__ */ __commonJSMin(((exports) => {
6539
6498
  })(NodeType || (NodeType = {}));
6540
6499
  exports.default = NodeType;
6541
6500
  }));
6542
-
6543
6501
  //#endregion
6544
- //#region ../../node_modules/.pnpm/node-html-parser@7.0.2/node_modules/node-html-parser/dist/nodes/comment.js
6502
+ //#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/nodes/comment.js
6545
6503
  var require_comment = /* @__PURE__ */ __commonJSMin(((exports) => {
6546
6504
  var __importDefault = exports && exports.__importDefault || function(mod) {
6547
6505
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -6549,7 +6507,7 @@ var require_comment = /* @__PURE__ */ __commonJSMin(((exports) => {
6549
6507
  Object.defineProperty(exports, "__esModule", { value: true });
6550
6508
  const node_1 = __importDefault(require_node$1());
6551
6509
  const type_1 = __importDefault(require_type());
6552
- var CommentNode = class CommentNode extends node_1.default {
6510
+ exports.default = class CommentNode extends node_1.default {
6553
6511
  clone() {
6554
6512
  return new CommentNode(this.rawText, null, void 0, this.rawTagName);
6555
6513
  }
@@ -6574,9 +6532,7 @@ var require_comment = /* @__PURE__ */ __commonJSMin(((exports) => {
6574
6532
  return `<!--${this.rawText}-->`;
6575
6533
  }
6576
6534
  };
6577
- exports.default = CommentNode;
6578
6535
  }));
6579
-
6580
6536
  //#endregion
6581
6537
  //#region ../../node_modules/.pnpm/domelementtype@2.3.0/node_modules/domelementtype/lib/index.js
6582
6538
  var require_lib$6 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -6632,7 +6588,6 @@ var require_lib$6 = /* @__PURE__ */ __commonJSMin(((exports) => {
6632
6588
  /** Type for <!doctype ...> */
6633
6589
  exports.Doctype = ElementType.Doctype;
6634
6590
  }));
6635
-
6636
6591
  //#endregion
6637
6592
  //#region ../../node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/node.js
6638
6593
  var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7065,7 +7020,6 @@ var require_node = /* @__PURE__ */ __commonJSMin(((exports) => {
7065
7020
  return children;
7066
7021
  }
7067
7022
  }));
7068
-
7069
7023
  //#endregion
7070
7024
  //#region ../../node_modules/.pnpm/domhandler@5.0.3/node_modules/domhandler/lib/index.js
7071
7025
  var require_lib$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7218,7 +7172,6 @@ var require_lib$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
7218
7172
  exports.DomHandler = DomHandler;
7219
7173
  exports.default = DomHandler;
7220
7174
  }));
7221
-
7222
7175
  //#endregion
7223
7176
  //#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/generated/decode-data-html.js
7224
7177
  var require_decode_data_html = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7227,7 +7180,6 @@ var require_decode_data_html = /* @__PURE__ */ __commonJSMin(((exports) => {
7227
7180
  return c.charCodeAt(0);
7228
7181
  }));
7229
7182
  }));
7230
-
7231
7183
  //#endregion
7232
7184
  //#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/generated/decode-data-xml.js
7233
7185
  var require_decode_data_xml = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7236,7 +7188,6 @@ var require_decode_data_xml = /* @__PURE__ */ __commonJSMin(((exports) => {
7236
7188
  return c.charCodeAt(0);
7237
7189
  }));
7238
7190
  }));
7239
-
7240
7191
  //#endregion
7241
7192
  //#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/decode_codepoint.js
7242
7193
  var require_decode_codepoint = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7309,7 +7260,6 @@ var require_decode_codepoint = /* @__PURE__ */ __commonJSMin(((exports) => {
7309
7260
  }
7310
7261
  exports.default = decodeCodePoint;
7311
7262
  }));
7312
-
7313
7263
  //#endregion
7314
7264
  //#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/decode.js
7315
7265
  var require_decode = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -7771,7 +7721,6 @@ var require_decode = /* @__PURE__ */ __commonJSMin(((exports) => {
7771
7721
  }
7772
7722
  exports.decodeXML = decodeXML;
7773
7723
  }));
7774
-
7775
7724
  //#endregion
7776
7725
  //#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/generated/encode-html.js
7777
7726
  var require_encode_html = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9481,7 +9430,6 @@ var require_encode_html = /* @__PURE__ */ __commonJSMin(((exports) => {
9481
9430
  [0, "&ffllig;"]
9482
9431
  ]));
9483
9432
  }));
9484
-
9485
9433
  //#endregion
9486
9434
  //#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/escape.js
9487
9435
  var require_escape = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9591,7 +9539,6 @@ var require_escape = /* @__PURE__ */ __commonJSMin(((exports) => {
9591
9539
  [160, "&nbsp;"]
9592
9540
  ]));
9593
9541
  }));
9594
-
9595
9542
  //#endregion
9596
9543
  //#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/encode.js
9597
9544
  var require_encode = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9663,7 +9610,6 @@ var require_encode = /* @__PURE__ */ __commonJSMin(((exports) => {
9663
9610
  return ret + str.substr(lastIdx);
9664
9611
  }
9665
9612
  }));
9666
-
9667
9613
  //#endregion
9668
9614
  //#region ../../node_modules/.pnpm/entities@4.5.0/node_modules/entities/lib/index.js
9669
9615
  var require_lib$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9882,7 +9828,6 @@ var require_lib$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
9882
9828
  }
9883
9829
  });
9884
9830
  }));
9885
-
9886
9831
  //#endregion
9887
9832
  //#region ../../node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/foreignNames.js
9888
9833
  var require_foreignNames = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -9993,7 +9938,6 @@ var require_foreignNames = /* @__PURE__ */ __commonJSMin(((exports) => {
9993
9938
  return [val.toLowerCase(), val];
9994
9939
  }));
9995
9940
  }));
9996
-
9997
9941
  //#endregion
9998
9942
  //#region ../../node_modules/.pnpm/dom-serializer@2.0.0/node_modules/dom-serializer/lib/index.js
9999
9943
  var require_lib$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -10179,7 +10123,6 @@ var require_lib$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
10179
10123
  return "<!--".concat(elem.data, "-->");
10180
10124
  }
10181
10125
  }));
10182
-
10183
10126
  //#endregion
10184
10127
  //#region ../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/stringify.js
10185
10128
  var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -10261,7 +10204,6 @@ var require_stringify = /* @__PURE__ */ __commonJSMin(((exports) => {
10261
10204
  return "";
10262
10205
  }
10263
10206
  }));
10264
-
10265
10207
  //#endregion
10266
10208
  //#region ../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/traversal.js
10267
10209
  var require_traversal = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -10384,7 +10326,6 @@ var require_traversal = /* @__PURE__ */ __commonJSMin(((exports) => {
10384
10326
  return prev;
10385
10327
  }
10386
10328
  }));
10387
-
10388
10329
  //#endregion
10389
10330
  //#region ../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/manipulation.js
10390
10331
  var require_manipulation = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -10510,7 +10451,6 @@ var require_manipulation = /* @__PURE__ */ __commonJSMin(((exports) => {
10510
10451
  elem.prev = prev;
10511
10452
  }
10512
10453
  }));
10513
-
10514
10454
  //#endregion
10515
10455
  //#region ../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/querying.js
10516
10456
  var require_querying = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -10648,7 +10588,6 @@ var require_querying = /* @__PURE__ */ __commonJSMin(((exports) => {
10648
10588
  }
10649
10589
  }
10650
10590
  }));
10651
-
10652
10591
  //#endregion
10653
10592
  //#region ../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/legacy.js
10654
10593
  var require_legacy = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -10824,7 +10763,6 @@ var require_legacy = /* @__PURE__ */ __commonJSMin(((exports) => {
10824
10763
  return (0, querying_js_1.filter)(Checks["tag_type"](type), nodes, recurse, limit);
10825
10764
  }
10826
10765
  }));
10827
-
10828
10766
  //#endregion
10829
10767
  //#region ../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/helpers.js
10830
10768
  var require_helpers = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -10946,7 +10884,6 @@ var require_helpers = /* @__PURE__ */ __commonJSMin(((exports) => {
10946
10884
  return nodes;
10947
10885
  }
10948
10886
  }));
10949
-
10950
10887
  //#endregion
10951
10888
  //#region ../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/feeds.js
10952
10889
  var require_feeds = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -11119,7 +11056,6 @@ var require_feeds = /* @__PURE__ */ __commonJSMin(((exports) => {
11119
11056
  return value === "rss" || value === "feed" || value === "rdf:RDF";
11120
11057
  }
11121
11058
  }));
11122
-
11123
11059
  //#endregion
11124
11060
  //#region ../../node_modules/.pnpm/domutils@3.2.2/node_modules/domutils/lib/index.js
11125
11061
  var require_lib$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -11188,7 +11124,6 @@ var require_lib$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
11188
11124
  }
11189
11125
  });
11190
11126
  }));
11191
-
11192
11127
  //#endregion
11193
11128
  //#region ../../node_modules/.pnpm/boolbase@1.0.0/node_modules/boolbase/index.js
11194
11129
  var require_boolbase = /* @__PURE__ */ __commonJSMin(((exports, module) => {
@@ -11201,12 +11136,10 @@ var require_boolbase = /* @__PURE__ */ __commonJSMin(((exports, module) => {
11201
11136
  }
11202
11137
  };
11203
11138
  }));
11204
-
11205
11139
  //#endregion
11206
11140
  //#region ../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/types.js
11207
11141
  var SelectorType, IgnoreCaseMode, AttributeAction;
11208
11142
  var init_types = __esmMin((() => {
11209
- ;
11210
11143
  (function(SelectorType) {
11211
11144
  SelectorType["Attribute"] = "attribute";
11212
11145
  SelectorType["Pseudo"] = "pseudo";
@@ -11226,7 +11159,6 @@ var init_types = __esmMin((() => {
11226
11159
  IgnoreCase: true,
11227
11160
  CaseSensitive: false
11228
11161
  };
11229
- ;
11230
11162
  (function(AttributeAction) {
11231
11163
  AttributeAction["Any"] = "any";
11232
11164
  AttributeAction["Element"] = "element";
@@ -11238,7 +11170,6 @@ var init_types = __esmMin((() => {
11238
11170
  AttributeAction["Start"] = "start";
11239
11171
  })(AttributeAction || (AttributeAction = {}));
11240
11172
  }));
11241
-
11242
11173
  //#endregion
11243
11174
  //#region ../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/parse.js
11244
11175
  /**
@@ -11553,7 +11484,6 @@ var init_parse = __esmMin((() => {
11553
11484
  ]);
11554
11485
  stripQuotesFromPseudos = new Set(["contains", "icontains"]);
11555
11486
  }));
11556
-
11557
11487
  //#endregion
11558
11488
  //#region ../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/stringify.js
11559
11489
  /**
@@ -11639,7 +11569,6 @@ var init_stringify = __esmMin((() => {
11639
11569
  "."
11640
11570
  ].map((c) => c.charCodeAt(0)));
11641
11571
  }));
11642
-
11643
11572
  //#endregion
11644
11573
  //#region ../../node_modules/.pnpm/css-what@6.2.2/node_modules/css-what/lib/es/index.js
11645
11574
  var es_exports = /* @__PURE__ */ __exportAll({
@@ -11655,7 +11584,6 @@ var init_es = __esmMin((() => {
11655
11584
  init_parse();
11656
11585
  init_stringify();
11657
11586
  }));
11658
-
11659
11587
  //#endregion
11660
11588
  //#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/sort.js
11661
11589
  var require_sort = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -11720,7 +11648,6 @@ var require_sort = /* @__PURE__ */ __commonJSMin(((exports) => {
11720
11648
  return proc;
11721
11649
  }
11722
11650
  }));
11723
-
11724
11651
  //#endregion
11725
11652
  //#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/attributes.js
11726
11653
  var require_attributes = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -11922,7 +11849,6 @@ var require_attributes = /* @__PURE__ */ __commonJSMin(((exports) => {
11922
11849
  }
11923
11850
  };
11924
11851
  }));
11925
-
11926
11852
  //#endregion
11927
11853
  //#region ../../node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/parse.js
11928
11854
  var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -11987,7 +11913,6 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
11987
11913
  }
11988
11914
  exports.parse = parse;
11989
11915
  }));
11990
-
11991
11916
  //#endregion
11992
11917
  //#region ../../node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/compile.js
11993
11918
  var require_compile$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -12095,7 +12020,6 @@ var require_compile$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
12095
12020
  }
12096
12021
  exports.generate = generate;
12097
12022
  }));
12098
-
12099
12023
  //#endregion
12100
12024
  //#region ../../node_modules/.pnpm/nth-check@2.1.1/node_modules/nth-check/lib/index.js
12101
12025
  var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -12183,7 +12107,6 @@ var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
12183
12107
  }
12184
12108
  exports.sequence = sequence;
12185
12109
  }));
12186
-
12187
12110
  //#endregion
12188
12111
  //#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/pseudo-selectors/filters.js
12189
12112
  var require_filters = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -12313,7 +12236,6 @@ var require_filters = /* @__PURE__ */ __commonJSMin(((exports) => {
12313
12236
  };
12314
12237
  }
12315
12238
  }));
12316
-
12317
12239
  //#endregion
12318
12240
  //#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/pseudo-selectors/pseudos.js
12319
12241
  var require_pseudos = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -12386,7 +12308,6 @@ var require_pseudos = /* @__PURE__ */ __commonJSMin(((exports) => {
12386
12308
  }
12387
12309
  exports.verifyPseudoArgs = verifyPseudoArgs;
12388
12310
  }));
12389
-
12390
12311
  //#endregion
12391
12312
  //#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/pseudo-selectors/aliases.js
12392
12313
  var require_aliases = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -12418,7 +12339,6 @@ var require_aliases = /* @__PURE__ */ __commonJSMin(((exports) => {
12418
12339
  text: "input:is(:not([type!='']), [type=text])"
12419
12340
  };
12420
12341
  }));
12421
-
12422
12342
  //#endregion
12423
12343
  //#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/pseudo-selectors/subselects.js
12424
12344
  var require_subselects = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -12509,7 +12429,6 @@ var require_subselects = /* @__PURE__ */ __commonJSMin(((exports) => {
12509
12429
  }
12510
12430
  };
12511
12431
  }));
12512
-
12513
12432
  //#endregion
12514
12433
  //#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/pseudo-selectors/index.js
12515
12434
  var require_pseudo_selectors = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -12570,7 +12489,6 @@ var require_pseudo_selectors = /* @__PURE__ */ __commonJSMin(((exports) => {
12570
12489
  }
12571
12490
  exports.compilePseudoSelector = compilePseudoSelector;
12572
12491
  }));
12573
-
12574
12492
  //#endregion
12575
12493
  //#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/general.js
12576
12494
  var require_general = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -12663,7 +12581,6 @@ var require_general = /* @__PURE__ */ __commonJSMin(((exports) => {
12663
12581
  }
12664
12582
  exports.compileGeneralSelector = compileGeneralSelector;
12665
12583
  }));
12666
-
12667
12584
  //#endregion
12668
12585
  //#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/compile.js
12669
12586
  var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -12786,7 +12703,6 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
12786
12703
  };
12787
12704
  }
12788
12705
  }));
12789
-
12790
12706
  //#endregion
12791
12707
  //#region ../../node_modules/.pnpm/css-select@5.2.2/node_modules/css-select/lib/index.js
12792
12708
  var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
@@ -12945,9 +12861,8 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
12945
12861
  }
12946
12862
  });
12947
12863
  }));
12948
-
12949
12864
  //#endregion
12950
- //#region ../../node_modules/.pnpm/node-html-parser@7.0.2/node_modules/node-html-parser/dist/back.js
12865
+ //#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/back.js
12951
12866
  var require_back = /* @__PURE__ */ __commonJSMin(((exports) => {
12952
12867
  Object.defineProperty(exports, "__esModule", { value: true });
12953
12868
  function arr_back(arr) {
@@ -12955,9 +12870,8 @@ var require_back = /* @__PURE__ */ __commonJSMin(((exports) => {
12955
12870
  }
12956
12871
  exports.default = arr_back;
12957
12872
  }));
12958
-
12959
12873
  //#endregion
12960
- //#region ../../node_modules/.pnpm/node-html-parser@7.0.2/node_modules/node-html-parser/dist/matcher.js
12874
+ //#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/matcher.js
12961
12875
  var require_matcher = /* @__PURE__ */ __commonJSMin(((exports) => {
12962
12876
  var __importDefault = exports && exports.__importDefault || function(mod) {
12963
12877
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -13052,9 +12966,8 @@ var require_matcher = /* @__PURE__ */ __commonJSMin(((exports) => {
13052
12966
  findAll
13053
12967
  };
13054
12968
  }));
13055
-
13056
12969
  //#endregion
13057
- //#region ../../node_modules/.pnpm/node-html-parser@7.0.2/node_modules/node-html-parser/dist/void-tag.js
12970
+ //#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/void-tag.js
13058
12971
  var require_void_tag = /* @__PURE__ */ __commonJSMin(((exports) => {
13059
12972
  Object.defineProperty(exports, "__esModule", { value: true });
13060
12973
  var VoidTag = class {
@@ -13094,9 +13007,8 @@ var require_void_tag = /* @__PURE__ */ __commonJSMin(((exports) => {
13094
13007
  };
13095
13008
  exports.default = VoidTag;
13096
13009
  }));
13097
-
13098
13010
  //#endregion
13099
- //#region ../../node_modules/.pnpm/node-html-parser@7.0.2/node_modules/node-html-parser/dist/nodes/text.js
13011
+ //#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/nodes/text.js
13100
13012
  var require_text = /* @__PURE__ */ __commonJSMin(((exports) => {
13101
13013
  var __importDefault = exports && exports.__importDefault || function(mod) {
13102
13014
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -13105,11 +13017,7 @@ var require_text = /* @__PURE__ */ __commonJSMin(((exports) => {
13105
13017
  const he_1 = require_he();
13106
13018
  const node_1 = __importDefault(require_node$1());
13107
13019
  const type_1 = __importDefault(require_type());
13108
- /**
13109
- * TextNode to contain a text element in DOM tree.
13110
- * @param {string} value [description]
13111
- */
13112
- var TextNode = class TextNode extends node_1.default {
13020
+ exports.default = class TextNode extends node_1.default {
13113
13021
  clone() {
13114
13022
  return new TextNode(this._rawText, null);
13115
13023
  }
@@ -13168,7 +13076,6 @@ var require_text = /* @__PURE__ */ __commonJSMin(((exports) => {
13168
13076
  return this.rawText;
13169
13077
  }
13170
13078
  };
13171
- exports.default = TextNode;
13172
13079
  /**
13173
13080
  * Trim whitespace except single leading/trailing non-breaking space
13174
13081
  */
@@ -13194,9 +13101,8 @@ var require_text = /* @__PURE__ */ __commonJSMin(((exports) => {
13194
13101
  return (hasLeadingSpace ? " " : "") + text.slice(startPos, endPos + 1) + (hasTrailingSpace ? " " : "");
13195
13102
  }
13196
13103
  }));
13197
-
13198
13104
  //#endregion
13199
- //#region ../../node_modules/.pnpm/node-html-parser@7.0.2/node_modules/node-html-parser/dist/nodes/html.js
13105
+ //#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/nodes/html.js
13200
13106
  var require_html = /* @__PURE__ */ __commonJSMin(((exports) => {
13201
13107
  var __importDefault = exports && exports.__importDefault || function(mod) {
13202
13108
  return mod && mod.__esModule ? mod : { "default": mod };
@@ -13603,6 +13509,17 @@ var require_html = /* @__PURE__ */ __commonJSMin(((exports) => {
13603
13509
  });
13604
13510
  }
13605
13511
  /**
13512
+ * Tests whether the node matches a given CSS selector.
13513
+ * @param {string} selector Simplified CSS selector
13514
+ * @return {boolean}
13515
+ */
13516
+ matches(selector) {
13517
+ return (0, css_select_1.is)(this, selector, {
13518
+ xmlMode: true,
13519
+ adapter: matcher_1.default
13520
+ });
13521
+ }
13522
+ /**
13606
13523
  * find elements by their tagName
13607
13524
  * @param {string} tagName the tagName of the elements to select
13608
13525
  */
@@ -14202,7 +14119,7 @@ var require_html = /* @__PURE__ */ __commonJSMin(((exports) => {
14202
14119
  attrs[key.toLowerCase()] = isQuoted ? val.slice(1, val.length - 1) : val;
14203
14120
  }
14204
14121
  const parentTagName = currentParent.rawTagName;
14205
- if (!closingSlash && kElementsClosedByOpening[parentTagName]) {
14122
+ if (!closingSlash && !options.preserveTagNesting && kElementsClosedByOpening[parentTagName]) {
14206
14123
  if (kElementsClosedByOpening[parentTagName][tagName]) {
14207
14124
  stack.pop();
14208
14125
  currentParent = (0, back_1.default)(stack);
@@ -14263,6 +14180,18 @@ var require_html = /* @__PURE__ */ __commonJSMin(((exports) => {
14263
14180
  }
14264
14181
  }
14265
14182
  }
14183
+ if (options.closeAllByClosing === true) {
14184
+ let i;
14185
+ for (i = stack.length - 2; i >= 0; i--) if (stack[i].rawTagName === tagName) break;
14186
+ if (i >= 0) {
14187
+ while (stack.length > i) {
14188
+ currentParent.range[1] = createRange(-1, Math.max(lastTextPos, tagEndPos))[1];
14189
+ stack.pop();
14190
+ currentParent = (0, back_1.default)(stack);
14191
+ }
14192
+ continue;
14193
+ }
14194
+ }
14266
14195
  break;
14267
14196
  }
14268
14197
  }
@@ -14318,9 +14247,8 @@ var require_html = /* @__PURE__ */ __commonJSMin(((exports) => {
14318
14247
  });
14319
14248
  }
14320
14249
  }));
14321
-
14322
14250
  //#endregion
14323
- //#region ../../node_modules/.pnpm/node-html-parser@7.0.2/node_modules/node-html-parser/dist/parse.js
14251
+ //#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/parse.js
14324
14252
  var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
14325
14253
  Object.defineProperty(exports, "__esModule", { value: true });
14326
14254
  exports.default = void 0;
@@ -14332,9 +14260,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports) => {
14332
14260
  }
14333
14261
  });
14334
14262
  }));
14335
-
14336
14263
  //#endregion
14337
- //#region ../../node_modules/.pnpm/node-html-parser@7.0.2/node_modules/node-html-parser/dist/valid.js
14264
+ //#region ../../node_modules/.pnpm/node-html-parser@7.1.0/node_modules/node-html-parser/dist/valid.js
14338
14265
  var require_valid = /* @__PURE__ */ __commonJSMin(((exports) => {
14339
14266
  Object.defineProperty(exports, "__esModule", { value: true });
14340
14267
  const html_1 = require_html();
@@ -14348,10 +14275,9 @@ var require_valid = /* @__PURE__ */ __commonJSMin(((exports) => {
14348
14275
  }
14349
14276
  exports.default = valid;
14350
14277
  }));
14351
-
14352
14278
  //#endregion
14353
- //#region ../../node_modules/.pnpm/node-html-parser@7.0.2/node_modules/node-html-parser/dist/index.js
14354
- var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
14279
+ //#region src/services/message/getMentions.ts
14280
+ var import_dist = (/* @__PURE__ */ __commonJSMin(((exports) => {
14355
14281
  var __importDefault = exports && exports.__importDefault || function(mod) {
14356
14282
  return mod && mod.__esModule ? mod : { "default": mod };
14357
14283
  };
@@ -14381,21 +14307,14 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
14381
14307
  parse.Node = node_1.default;
14382
14308
  parse.TextNode = text_1.default;
14383
14309
  parse.NodeType = type_1.default;
14384
- }));
14385
-
14386
- //#endregion
14387
- //#region src/services/message/getMentions.ts
14388
- var import_dist = require_dist();
14310
+ })))();
14389
14311
  const getMentions = (message) => (0, import_dist.parse)(message).querySelectorAll(`span[${MENTION_TYPE_ATTRIBUTE}='${MENTION_TYPE}']`);
14390
-
14391
14312
  //#endregion
14392
14313
  //#region src/services/prettier/css.ts
14393
14314
  const css = String.raw;
14394
-
14395
14315
  //#endregion
14396
14316
  //#region src/services/prettier/html.ts
14397
14317
  const html = String.raw;
14398
-
14399
14318
  //#endregion
14400
14319
  //#region src/services/shared/applyItemMetadataMixin.ts
14401
14320
  const applyItemMetadataMixin = (Base) => class ItemWithMetadata extends Base {
@@ -14403,21 +14322,17 @@ const applyItemMetadataMixin = (Base) => class ItemWithMetadata extends Base {
14403
14322
  deletedAt = null;
14404
14323
  updatedAt = /* @__PURE__ */ new Date();
14405
14324
  };
14406
-
14407
14325
  //#endregion
14408
14326
  //#region src/util/array/takeOne.ts
14409
14327
  const takeOne = (values, index = 0) => {
14410
14328
  return values[index];
14411
14329
  };
14412
-
14413
14330
  //#endregion
14414
14331
  //#region src/util/environment/getIsServer.ts
14415
14332
  const getIsServer = () => typeof window === "undefined";
14416
-
14417
14333
  //#endregion
14418
14334
  //#region src/util/id/constants.ts
14419
14335
  const ID_SEPARATOR = "|";
14420
-
14421
14336
  //#endregion
14422
14337
  //#region src/util/object/isPlainObject.ts
14423
14338
  const isPlainObject = (data) => {
@@ -14425,7 +14340,6 @@ const isPlainObject = (data) => {
14425
14340
  const prototype = Object.getPrototypeOf(data);
14426
14341
  return prototype === null || prototype === Object.prototype;
14427
14342
  };
14428
-
14429
14343
  //#endregion
14430
14344
  //#region src/util/object/jsonDateParse.ts
14431
14345
  const reISO = /^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.{0,1}\d*))(?:Z|(\+|-)([\d|:]*))?$/;
@@ -14445,19 +14359,15 @@ const jsonDateParse = (text) => JSON.parse(text, (_key, value) => {
14445
14359
  }
14446
14360
  return parsedValue;
14447
14361
  });
14448
-
14449
14362
  //#endregion
14450
14363
  //#region src/util/object/mergeObjectsStrict.ts
14451
14364
  const mergeObjectsStrict = (...objects) => Object.assign({}, ...objects);
14452
-
14453
14365
  //#endregion
14454
14366
  //#region src/util/regex/escapeRegExp.ts
14455
14367
  const escapeRegExp = (string) => string.replaceAll(/[.*+?^${}()|[\]\\]/g, String.raw`\$&`);
14456
-
14457
14368
  //#endregion
14458
14369
  //#region src/util/text/capitalize.ts
14459
14370
  const capitalize = (string) => `${string.charAt(0).toUpperCase()}${string.slice(1)}`;
14460
-
14461
14371
  //#endregion
14462
14372
  //#region src/util/text/streamToText.ts
14463
14373
  const streamToText = async (readable) => {
@@ -14466,15 +14376,12 @@ const streamToText = async (readable) => {
14466
14376
  for await (const chunk of readable) data += chunk.toString();
14467
14377
  return data;
14468
14378
  };
14469
-
14470
14379
  //#endregion
14471
14380
  //#region src/util/text/toKebabCase.ts
14472
14381
  const toKebabCase = (string) => string.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)?.map((x) => x.toLowerCase()).join("-") ?? "";
14473
-
14474
14382
  //#endregion
14475
14383
  //#region src/util/text/truncate.ts
14476
14384
  const truncate = (string, length) => string.length > length ? `${string.slice(0, length)}..."` : string;
14477
-
14478
14385
  //#endregion
14479
14386
  //#region src/util/time/hrtime.ts
14480
14387
  const hrtime = (previousHrTime) => {
@@ -14492,7 +14399,6 @@ const hrtime = (previousHrTime) => {
14492
14399
  }
14493
14400
  return [seconds, nanoseconds];
14494
14401
  };
14495
-
14496
14402
  //#endregion
14497
14403
  //#region src/util/time/now.ts
14498
14404
  const loadNanoseconds = hrtime();
@@ -14501,21 +14407,17 @@ const now = () => {
14501
14407
  const [seconds, nanoseconds] = hrtime(loadNanoseconds);
14502
14408
  return (BigInt(loadMilliseconds) * 10n ** 6n + (BigInt(seconds) * 10n ** 9n + BigInt(nanoseconds))).toString();
14503
14409
  };
14504
-
14505
14410
  //#endregion
14506
14411
  //#region src/util/validation/exhaustiveGuard.ts
14507
14412
  const exhaustiveGuard = (value) => {
14508
14413
  throw new InvalidOperationError(Operation.Read, exhaustiveGuard.name, JSON.stringify(value));
14509
14414
  };
14510
-
14511
14415
  //#endregion
14512
14416
  //#region src/util/id/uuid/constants.ts
14513
14417
  const NIL = "00000000-0000-0000-0000-000000000000";
14514
14418
  const UUIDV4_REGEX = /^[0-9A-F]{8}-[0-9A-F]{4}-[4][0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i;
14515
-
14516
14419
  //#endregion
14517
14420
  //#region src/util/id/uuid/uuidValidateV4.ts
14518
14421
  const uuidValidateV4 = (uuid) => UUIDV4_REGEX.test(uuid);
14519
-
14520
14422
  //#endregion
14521
- export { AllSpecialValues, ID_SEPARATOR, InvalidOperationError, ItemEntityTypePropertyNames, ItemMetadata, ItemMetadataPropertyNames, MENTION_ID_ATTRIBUTE, MENTION_LABEL_ATTRIBUTE, MENTION_TYPE, MENTION_TYPE_ATTRIBUTE, NIL, NotFoundError, NotInitializedError, Operation, RoutePath, SITE_NAME, SURVEY_DISPLAY_NAME, Serializable, UUIDV4_REGEX, applyItemMetadataMixin, capitalize, createItemEntityTypeSchema, css, escapeRegExp, exhaustiveGuard, getIsServer, getMentions, getPropertyNames, getRawData, hrtime, html, isPlainObject, itemMetadataSchema, jsonDateParse, mergeObjectsStrict, now, streamToText, takeOne, toKebabCase, toRawDeep, truncate, uncapitalize, uuidValidateV4 };
14423
+ export { AllSpecialValues, ID_SEPARATOR, InvalidOperationError, ItemEntityTypePropertyNames, ItemMetadata, ItemMetadataPropertyNames, MENTION_ID_ATTRIBUTE, MENTION_LABEL_ATTRIBUTE, MENTION_TYPE, MENTION_TYPE_ATTRIBUTE, NIL, NotFoundError, NotInitializedError, Operation, RoutePath, SITE_NAME, SURVEY_DISPLAY_NAME, Serializable, UUIDV4_REGEX, applyItemMetadataMixin, capitalize, createItemEntityTypeSchema, css, escapeRegExp, exhaustiveGuard, getIsServer, getMentions, getPropertyNames, getRawData, hrtime, html, isPlainObject, itemMetadataSchema, jsonDateParse, mergeObjectsStrict, now, streamToText, takeOne, toKebabCase, toRawDeep, truncate, uncapitalize, uuidValidateV4 };