@roudanio/awesome-comment 0.3.0 → 0.4.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.
@@ -4,7 +4,7 @@ function ao(e, t) {
4
4
  n[o[s]] = !0;
5
5
  return t ? (s) => !!n[s.toLowerCase()] : (s) => !!n[s];
6
6
  }
7
- const q = {}, bt = [], Ie = () => {
7
+ const G = {}, bt = [], Ie = () => {
8
8
  }, Di = () => !1, Wi = /^on[^a-z]/, hn = (e) => Wi.test(e), lo = (e) => e.startsWith("onUpdate:"), ce = Object.assign, uo = (e, t) => {
9
9
  const n = e.indexOf(t);
10
10
  n > -1 && e.splice(n, 1);
@@ -143,7 +143,7 @@ function Fs(e) {
143
143
  function er(e, t = ge) {
144
144
  t && t.active && t.effects.push(e);
145
145
  }
146
- function Ks() {
146
+ function $s() {
147
147
  return ge;
148
148
  }
149
149
  function tr(e) {
@@ -152,7 +152,7 @@ function tr(e) {
152
152
  const po = (e) => {
153
153
  const t = new Set(e);
154
154
  return t.w = 0, t.n = 0, t;
155
- }, $s = (e) => (e.w & Be) > 0, zs = (e) => (e.n & Be) > 0, nr = ({ deps: e }) => {
155
+ }, Ks = (e) => (e.w & Be) > 0, zs = (e) => (e.n & Be) > 0, nr = ({ deps: e }) => {
156
156
  if (e.length)
157
157
  for (let t = 0; t < e.length; t++)
158
158
  e[t].w |= Be;
@@ -162,7 +162,7 @@ const po = (e) => {
162
162
  let n = 0;
163
163
  for (let o = 0; o < t.length; o++) {
164
164
  const s = t[o];
165
- $s(s) && !zs(s) ? s.delete(e) : t[n++] = s, s.w &= ~Be, s.n &= ~Be;
165
+ Ks(s) && !zs(s) ? s.delete(e) : t[n++] = s, s.w &= ~Be, s.n &= ~Be;
166
166
  }
167
167
  t.length = n;
168
168
  }
@@ -221,9 +221,9 @@ function he(e, t, n) {
221
221
  }
222
222
  function Ds(e, t) {
223
223
  let n = !1;
224
- Et <= Xn ? zs(e) || (e.n |= Be, n = !$s(e)) : n = !e.has(ke), n && (e.add(ke), ke.deps.push(e));
224
+ Et <= Xn ? zs(e) || (e.n |= Be, n = !Ks(e)) : n = !e.has(ke), n && (e.add(ke), ke.deps.push(e));
225
225
  }
226
- function $e(e, t, n, o, s, i) {
226
+ function Ke(e, t, n, o, s, i) {
227
227
  const r = an.get(e);
228
228
  if (!r)
229
229
  return;
@@ -325,14 +325,14 @@ function Hs(e = !1) {
325
325
  if (!e && (!ln(s) && !wt(s) && (r = U(r), s = U(s)), !N(n) && ne(r) && !ne(s)))
326
326
  return r.value = s, !0;
327
327
  const c = N(n) && ho(o) ? Number(o) < n.length : z(n, o), a = Reflect.set(n, o, s, i);
328
- return n === U(i) && (c ? Ft(s, r) && $e(n, "set", o, s) : $e(n, "add", o, s)), a;
328
+ return n === U(i) && (c ? Ft(s, r) && Ke(n, "set", o, s) : Ke(n, "add", o, s)), a;
329
329
  };
330
330
  }
331
331
  function hr(e, t) {
332
332
  const n = z(e, t);
333
333
  e[t];
334
334
  const o = Reflect.deleteProperty(e, t);
335
- return o && n && $e(e, "delete", t, void 0), o;
335
+ return o && n && Ke(e, "delete", t, void 0), o;
336
336
  }
337
337
  function pr(e, t) {
338
338
  const n = Reflect.has(e, t);
@@ -367,7 +367,7 @@ function Xt(e, t, n = !1, o = !1) {
367
367
  e = e.__v_raw;
368
368
  const s = U(e), i = U(t);
369
369
  n || (t !== i && he(s, "get", t), he(s, "get", i));
370
- const { has: r } = yn(s), c = o ? bo : n ? wo : Kt;
370
+ const { has: r } = yn(s), c = o ? bo : n ? wo : $t;
371
371
  if (r.call(s, t))
372
372
  return c(e.get(t));
373
373
  if (r.call(s, i))
@@ -384,7 +384,7 @@ function Jt(e, t = !1) {
384
384
  function Ho(e) {
385
385
  e = U(e);
386
386
  const t = U(this);
387
- return yn(t).has.call(t, e) || (t.add(e), $e(t, "add", e, e)), this;
387
+ return yn(t).has.call(t, e) || (t.add(e), Ke(t, "add", e, e)), this;
388
388
  }
389
389
  function Zo(e, t) {
390
390
  t = U(t);
@@ -392,28 +392,28 @@ function Zo(e, t) {
392
392
  let i = o.call(n, e);
393
393
  i || (e = U(e), i = o.call(n, e));
394
394
  const r = s.call(n, e);
395
- return n.set(e, t), i ? Ft(t, r) && $e(n, "set", e, t) : $e(n, "add", e, t), this;
395
+ return n.set(e, t), i ? Ft(t, r) && Ke(n, "set", e, t) : Ke(n, "add", e, t), this;
396
396
  }
397
397
  function Vo(e) {
398
398
  const t = U(this), { has: n, get: o } = yn(t);
399
399
  let s = n.call(t, e);
400
400
  s || (e = U(e), s = n.call(t, e)), o && o.call(t, e);
401
401
  const i = t.delete(e);
402
- return s && $e(t, "delete", e, void 0), i;
402
+ return s && Ke(t, "delete", e, void 0), i;
403
403
  }
404
404
  function Xo() {
405
405
  const e = U(this), t = e.size !== 0, n = e.clear();
406
- return t && $e(e, "clear", void 0, void 0), n;
406
+ return t && Ke(e, "clear", void 0, void 0), n;
407
407
  }
408
408
  function Yt(e, t) {
409
409
  return function(o, s) {
410
- const i = this, r = i.__v_raw, c = U(r), a = t ? bo : e ? wo : Kt;
410
+ const i = this, r = i.__v_raw, c = U(r), a = t ? bo : e ? wo : $t;
411
411
  return !e && he(c, "iterate", it), r.forEach((l, f) => o.call(s, a(l), a(f), i));
412
412
  };
413
413
  }
414
414
  function qt(e, t, n) {
415
415
  return function(...o) {
416
- const s = this.__v_raw, i = U(s), r = _t(i), c = e === "entries" || e === Symbol.iterator && r, a = e === "keys" && r, l = s[e](...o), f = n ? bo : t ? wo : Kt;
416
+ const s = this.__v_raw, i = U(s), r = _t(i), c = e === "entries" || e === Symbol.iterator && r, a = e === "keys" && r, l = s[e](...o), f = n ? bo : t ? wo : $t;
417
417
  return !t && he(
418
418
  i,
419
419
  "iterate",
@@ -621,7 +621,7 @@ function U(e) {
621
621
  function vn(e) {
622
622
  return cn(e, "__v_skip", !0), e;
623
623
  }
624
- const Kt = (e) => ee(e) ? wn(e) : e, wo = (e) => ee(e) ? Js(e) : e;
624
+ const $t = (e) => ee(e) ? wn(e) : e, wo = (e) => ee(e) ? Js(e) : e;
625
625
  function qs(e) {
626
626
  Ze && ke && (e = U(e), Ds(e.dep || (e.dep = po())));
627
627
  }
@@ -641,14 +641,14 @@ function Er(e, t) {
641
641
  }
642
642
  class jr {
643
643
  constructor(t, n) {
644
- this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : U(t), this._value = n ? t : Kt(t);
644
+ this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : U(t), this._value = n ? t : $t(t);
645
645
  }
646
646
  get value() {
647
647
  return qs(this), this._value;
648
648
  }
649
649
  set value(t) {
650
650
  const n = this.__v_isShallow || ln(t) || wt(t);
651
- t = n ? t : U(t), Ft(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : Kt(t), Gs(this));
651
+ t = n ? t : U(t), Ft(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : $t(t), Gs(this));
652
652
  }
653
653
  }
654
654
  function Y(e) {
@@ -758,23 +758,23 @@ function kn(e, t, n, o = !0) {
758
758
  return;
759
759
  }
760
760
  }
761
- Kr(e, n, s, o);
761
+ $r(e, n, s, o);
762
762
  }
763
- function Kr(e, t, n, o = !0) {
763
+ function $r(e, t, n, o = !0) {
764
764
  console.error(e);
765
765
  }
766
- let $t = !1, Yn = !1;
766
+ let Kt = !1, Yn = !1;
767
767
  const le = [];
768
768
  let Ne = 0;
769
769
  const yt = [];
770
- let Ke = null, tt = 0;
770
+ let $e = null, tt = 0;
771
771
  const ei = /* @__PURE__ */ Promise.resolve();
772
772
  let vo = null;
773
773
  function ti(e) {
774
774
  const t = vo || ei;
775
775
  return e ? t.then(this ? e.bind(this) : e) : t;
776
776
  }
777
- function $r(e) {
777
+ function Kr(e) {
778
778
  let t = Ne + 1, n = le.length;
779
779
  for (; t < n; ) {
780
780
  const o = t + n >>> 1;
@@ -785,23 +785,23 @@ function $r(e) {
785
785
  function ko(e) {
786
786
  (!le.length || !le.includes(
787
787
  e,
788
- $t && e.allowRecurse ? Ne + 1 : Ne
789
- )) && (e.id == null ? le.push(e) : le.splice($r(e.id), 0, e), ni());
788
+ Kt && e.allowRecurse ? Ne + 1 : Ne
789
+ )) && (e.id == null ? le.push(e) : le.splice(Kr(e.id), 0, e), ni());
790
790
  }
791
791
  function ni() {
792
- !$t && !Yn && (Yn = !0, vo = ei.then(si));
792
+ !Kt && !Yn && (Yn = !0, vo = ei.then(si));
793
793
  }
794
794
  function zr(e) {
795
795
  const t = le.indexOf(e);
796
796
  t > Ne && le.splice(t, 1);
797
797
  }
798
798
  function Ur(e) {
799
- N(e) ? yt.push(...e) : (!Ke || !Ke.includes(
799
+ N(e) ? yt.push(...e) : (!$e || !$e.includes(
800
800
  e,
801
801
  e.allowRecurse ? tt + 1 : tt
802
802
  )) && yt.push(e), ni();
803
803
  }
804
- function Bo(e, t = $t ? Ne + 1 : 0) {
804
+ function Bo(e, t = Kt ? Ne + 1 : 0) {
805
805
  for (; t < le.length; t++) {
806
806
  const n = le[t];
807
807
  n && n.pre && (le.splice(t, 1), t--, n());
@@ -810,13 +810,13 @@ function Bo(e, t = $t ? Ne + 1 : 0) {
810
810
  function oi(e) {
811
811
  if (yt.length) {
812
812
  const t = [...new Set(yt)];
813
- if (yt.length = 0, Ke) {
814
- Ke.push(...t);
813
+ if (yt.length = 0, $e) {
814
+ $e.push(...t);
815
815
  return;
816
816
  }
817
- for (Ke = t, Ke.sort((n, o) => zt(n) - zt(o)), tt = 0; tt < Ke.length; tt++)
818
- Ke[tt]();
819
- Ke = null, tt = 0;
817
+ for ($e = t, $e.sort((n, o) => zt(n) - zt(o)), tt = 0; tt < $e.length; tt++)
818
+ $e[tt]();
819
+ $e = null, tt = 0;
820
820
  }
821
821
  }
822
822
  const zt = (e) => e.id == null ? 1 / 0 : e.id, Dr = (e, t) => {
@@ -830,7 +830,7 @@ const zt = (e) => e.id == null ? 1 / 0 : e.id, Dr = (e, t) => {
830
830
  return n;
831
831
  };
832
832
  function si(e) {
833
- Yn = !1, $t = !0, le.sort(Dr);
833
+ Yn = !1, Kt = !0, le.sort(Dr);
834
834
  const t = Ie;
835
835
  try {
836
836
  for (Ne = 0; Ne < le.length; Ne++) {
@@ -838,17 +838,17 @@ function si(e) {
838
838
  n && n.active !== !1 && Xe(n, null, 14);
839
839
  }
840
840
  } finally {
841
- Ne = 0, le.length = 0, oi(), $t = !1, vo = null, (le.length || yt.length) && si();
841
+ Ne = 0, le.length = 0, oi(), Kt = !1, vo = null, (le.length || yt.length) && si();
842
842
  }
843
843
  }
844
844
  function Wr(e, t, ...n) {
845
845
  if (e.isUnmounted)
846
846
  return;
847
- const o = e.vnode.props || q;
847
+ const o = e.vnode.props || G;
848
848
  let s = n;
849
849
  const i = t.startsWith("update:"), r = i && t.slice(7);
850
850
  if (r && r in o) {
851
- const f = `${r === "modelValue" ? "model" : r}Modifiers`, { number: d, trim: p } = o[f] || q;
851
+ const f = `${r === "modelValue" ? "model" : r}Modifiers`, { number: d, trim: p } = o[f] || G;
852
852
  p && (s = n.map((g) => ie(g) ? g.trim() : g)), d && (s = n.map(Zn));
853
853
  }
854
854
  let c, a = o[c = Ln(t)] || // also try camelCase event handler (#2249)
@@ -891,12 +891,12 @@ function ii(e, t, n = !1) {
891
891
  function xn(e, t) {
892
892
  return !e || !hn(t) ? !1 : (t = t.slice(2).replace(/Once$/, ""), z(e, t[0].toLowerCase() + t.slice(1)) || z(e, at(t)) || z(e, t));
893
893
  }
894
- let be = null, ri = null;
894
+ let _e = null, ri = null;
895
895
  function un(e) {
896
- const t = be;
897
- return be = e, ri = e && e.type.__scopeId || null, t;
896
+ const t = _e;
897
+ return _e = e, ri = e && e.type.__scopeId || null, t;
898
898
  }
899
- function Hr(e, t = be, n) {
899
+ function Hr(e, t = _e, n) {
900
900
  if (!t || e._n)
901
901
  return e;
902
902
  const o = (...s) => {
@@ -1027,9 +1027,9 @@ const Gt = {};
1027
1027
  function nn(e, t, n) {
1028
1028
  return ci(e, t, n);
1029
1029
  }
1030
- function ci(e, t, { immediate: n, deep: o, flush: s, onTrack: i, onTrigger: r } = q) {
1030
+ function ci(e, t, { immediate: n, deep: o, flush: s, onTrack: i, onTrigger: r } = G) {
1031
1031
  var c;
1032
- const a = Ks() === ((c = re) == null ? void 0 : c.scope) ? re : null;
1032
+ const a = $s() === ((c = re) == null ? void 0 : c.scope) ? re : null;
1033
1033
  let l, f = !1, d = !1;
1034
1034
  if (ne(e) ? (l = () => e.value, f = ln(e)) : Ve(e) ? (l = () => e, o = !0) : N(e) ? (d = !0, f = e.some((A) => Ve(A) || ln(A)), l = () => e.map((A) => {
1035
1035
  if (ne(A))
@@ -1130,12 +1130,12 @@ function ot(e, t) {
1130
1130
  return e;
1131
1131
  }
1132
1132
  function Gr(e, t) {
1133
- const n = be;
1133
+ const n = _e;
1134
1134
  if (n === null)
1135
1135
  return e;
1136
1136
  const o = Pn(n) || n.proxy, s = e.dirs || (e.dirs = []);
1137
1137
  for (let i = 0; i < t.length; i++) {
1138
- let [r, c, a, l = q] = t[i];
1138
+ let [r, c, a, l = G] = t[i];
1139
1139
  r && (F(r) && (r = {
1140
1140
  mounted: r,
1141
1141
  updated: r
@@ -1235,7 +1235,7 @@ function uc(e, t) {
1235
1235
  }
1236
1236
  const fc = Symbol.for("v-ndc");
1237
1237
  function dc(e, t, n = !0, o = !1) {
1238
- const s = be || re;
1238
+ const s = _e || re;
1239
1239
  if (s) {
1240
1240
  const i = s.type;
1241
1241
  if (e === hi) {
@@ -1307,7 +1307,7 @@ const qn = (e) => e ? Ci(e) ? Pn(e) || e.proxy : qn(e.parent) : null, Rt = (
1307
1307
  $nextTick: (e) => e.n || (e.n = ti.bind(e.proxy)),
1308
1308
  $watch: (e) => qr.bind(e)
1309
1309
  })
1310
- ), Fn = (e, t) => e !== q && !e.__isScriptSetup && z(e, t), hc = {
1310
+ ), Fn = (e, t) => e !== G && !e.__isScriptSetup && z(e, t), hc = {
1311
1311
  get({ _: e }, t) {
1312
1312
  const { ctx: n, setupState: o, data: s, props: i, accessCache: r, type: c, appContext: a } = e;
1313
1313
  let l;
@@ -1327,7 +1327,7 @@ const qn = (e) => e ? Ci(e) ? Pn(e) || e.proxy : qn(e.parent) : null, Rt = (
1327
1327
  else {
1328
1328
  if (Fn(o, t))
1329
1329
  return r[t] = 1, o[t];
1330
- if (s !== q && z(s, t))
1330
+ if (s !== G && z(s, t))
1331
1331
  return r[t] = 2, s[t];
1332
1332
  if (
1333
1333
  // only cache other properties when instance has declared (thus stable)
@@ -1335,7 +1335,7 @@ const qn = (e) => e ? Ci(e) ? Pn(e) || e.proxy : qn(e.parent) : null, Rt = (
1335
1335
  (l = e.propsOptions[0]) && z(l, t)
1336
1336
  )
1337
1337
  return r[t] = 3, i[t];
1338
- if (n !== q && z(n, t))
1338
+ if (n !== G && z(n, t))
1339
1339
  return r[t] = 4, n[t];
1340
1340
  Gn && (r[t] = 0);
1341
1341
  }
@@ -1349,7 +1349,7 @@ const qn = (e) => e ? Ci(e) ? Pn(e) || e.proxy : qn(e.parent) : null, Rt = (
1349
1349
  (d = c.__cssModules) && (d = d[t])
1350
1350
  )
1351
1351
  return d;
1352
- if (n !== q && z(n, t))
1352
+ if (n !== G && z(n, t))
1353
1353
  return r[t] = 4, n[t];
1354
1354
  if (
1355
1355
  // global properties
@@ -1359,13 +1359,13 @@ const qn = (e) => e ? Ci(e) ? Pn(e) || e.proxy : qn(e.parent) : null, Rt = (
1359
1359
  },
1360
1360
  set({ _: e }, t, n) {
1361
1361
  const { data: o, setupState: s, ctx: i } = e;
1362
- return Fn(s, t) ? (s[t] = n, !0) : o !== q && z(o, t) ? (o[t] = n, !0) : z(e.props, t) || t[0] === "$" && t.slice(1) in e ? !1 : (i[t] = n, !0);
1362
+ return Fn(s, t) ? (s[t] = n, !0) : o !== G && z(o, t) ? (o[t] = n, !0) : z(e.props, t) || t[0] === "$" && t.slice(1) in e ? !1 : (i[t] = n, !0);
1363
1363
  },
1364
1364
  has({
1365
1365
  _: { data: e, setupState: t, accessCache: n, ctx: o, appContext: s, propsOptions: i }
1366
1366
  }, r) {
1367
1367
  let c;
1368
- return !!n[r] || e !== q && z(e, r) || Fn(t, r) || (c = i[0]) && z(c, r) || z(o, r) || z(Rt, r) || z(s.config.globalProperties, r);
1368
+ return !!n[r] || e !== G && z(e, r) || Fn(t, r) || (c = i[0]) && z(c, r) || z(o, r) || z(Rt, r) || z(s.config.globalProperties, r);
1369
1369
  },
1370
1370
  defineProperty(e, t, n) {
1371
1371
  return n.get != null ? e._.accessCache[t] = 0 : z(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
@@ -1405,7 +1405,7 @@ function pc(e) {
1405
1405
  renderTracked: fe,
1406
1406
  renderTriggered: H,
1407
1407
  errorCaptured: L,
1408
- serverPrefetch: $,
1408
+ serverPrefetch: K,
1409
1409
  // public API
1410
1410
  expose: oe,
1411
1411
  inheritAttrs: pe,
@@ -1449,7 +1449,7 @@ function pc(e) {
1449
1449
  function Z(te, B) {
1450
1450
  N(B) ? B.forEach((Je) => te(Je.bind(n))) : B && te(B.bind(n));
1451
1451
  }
1452
- if (Z(nc, d), Z(fi, p), Z(oc, g), Z(sc, b), Z(Qr, w), Z(ec, I), Z(lc, L), Z(ac, fe), Z(cc, H), Z(ic, T), Z(di, A), Z(rc, $), N(oe))
1452
+ if (Z(nc, d), Z(fi, p), Z(oc, g), Z(sc, b), Z(Qr, w), Z(ec, I), Z(lc, L), Z(ac, fe), Z(cc, H), Z(ic, T), Z(di, A), Z(rc, K), N(oe))
1453
1453
  if (oe.length) {
1454
1454
  const te = e.exposed || (e.exposed = {});
1455
1455
  oe.forEach((B) => {
@@ -1687,7 +1687,7 @@ function vc(e, t) {
1687
1687
  }
1688
1688
  }
1689
1689
  function Te(e, t, n = !1) {
1690
- const o = re || be;
1690
+ const o = re || _e;
1691
1691
  if (o || Ut) {
1692
1692
  const s = o ? o.parent == null ? o.vnode.appContext && o.vnode.appContext.provides : o.parent.provides : Ut._context.provides;
1693
1693
  if (s && e in s)
@@ -1697,7 +1697,7 @@ function Te(e, t, n = !1) {
1697
1697
  }
1698
1698
  }
1699
1699
  function kc() {
1700
- return !!(re || be || Ut);
1700
+ return !!(re || _e || Ut);
1701
1701
  }
1702
1702
  function xc(e, t, n, o = !1) {
1703
1703
  const s = {}, i = {};
@@ -1767,7 +1767,7 @@ function Ic(e, t, n, o) {
1767
1767
  for (const d in i)
1768
1768
  (!t || !z(t, d)) && (delete i[d], l = !0);
1769
1769
  }
1770
- l && $e(e, "set", "$attrs");
1770
+ l && Ke(e, "set", "$attrs");
1771
1771
  }
1772
1772
  function bi(e, t, n, o) {
1773
1773
  const [s, i] = e.propsOptions;
@@ -1781,7 +1781,7 @@ function bi(e, t, n, o) {
1781
1781
  s && z(s, f = Me(a)) ? !i || !i.includes(f) ? n[f] = l : (c || (c = {}))[f] = l : xn(e.emitsOptions, a) || (!(a in o) || l !== o[a]) && (o[a] = l, r = !0);
1782
1782
  }
1783
1783
  if (i) {
1784
- const a = U(n), l = c || q;
1784
+ const a = U(n), l = c || G;
1785
1785
  for (let f = 0; f < i.length; f++) {
1786
1786
  const d = i[f];
1787
1787
  n[d] = eo(
@@ -1840,7 +1840,7 @@ function _i(e, t, n = !1) {
1840
1840
  if (N(i))
1841
1841
  for (let f = 0; f < i.length; f++) {
1842
1842
  const d = Me(i[f]);
1843
- ts(d) && (r[d] = q);
1843
+ ts(d) && (r[d] = G);
1844
1844
  }
1845
1845
  else if (i)
1846
1846
  for (const f in i) {
@@ -1908,7 +1908,7 @@ const yi = (e) => e[0] === "_" || e === "$stable", Io = (e) => N(e) ? e.map(Ae)
1908
1908
  cn(e.slots, On, 1);
1909
1909
  }, Oc = (e, t, n) => {
1910
1910
  const { vnode: o, slots: s } = e;
1911
- let i = !0, r = q;
1911
+ let i = !0, r = G;
1912
1912
  if (o.shapeFlag & 32) {
1913
1913
  const c = t._;
1914
1914
  c ? n && c === 1 ? i = !1 : (ce(s, t), !n && c === 1 && delete s._) : (i = !t.$stable, wi(t, s)), r = t;
@@ -1933,7 +1933,7 @@ function to(e, t, n, o, s = !1) {
1933
1933
  }
1934
1934
  if (on(o) && !s)
1935
1935
  return;
1936
- const i = o.shapeFlag & 4 ? Pn(o.component) || o.component.proxy : o.el, r = s ? null : i, { i: c, r: a } = e, l = t && t.r, f = c.refs === q ? c.refs = {} : c.refs, d = c.setupState;
1936
+ const i = o.shapeFlag & 4 ? Pn(o.component) || o.component.proxy : o.el, r = s ? null : i, { i: c, r: a } = e, l = t && t.r, f = c.refs === G ? c.refs = {} : c.refs, d = c.setupState;
1937
1937
  if (l != null && l !== a && (ie(l) ? (f[l] = null, z(d, l) && (d[l] = null)) : ne(l) && (l.value = null)), F(a))
1938
1938
  Xe(a, c, 12, [r, f]);
1939
1939
  else {
@@ -1982,10 +1982,10 @@ function Pc(e, t) {
1982
1982
  case ct:
1983
1983
  O(u, h, m, y);
1984
1984
  break;
1985
- case Kn:
1985
+ case $n:
1986
1986
  u == null && T(h, m, y, S);
1987
1987
  break;
1988
- case _e:
1988
+ case ye:
1989
1989
  Se(
1990
1990
  u,
1991
1991
  h,
@@ -2079,7 +2079,7 @@ function Pc(e, t) {
2079
2079
  S,
2080
2080
  k,
2081
2081
  C
2082
- ) : $(
2082
+ ) : K(
2083
2083
  u,
2084
2084
  h,
2085
2085
  _,
@@ -2090,7 +2090,7 @@ function Pc(e, t) {
2090
2090
  );
2091
2091
  }, fe = (u, h, m, y, _, x, S, k) => {
2092
2092
  let C, v;
2093
- const { type: E, props: P, shapeFlag: j, transition: M, dirs: K } = u;
2093
+ const { type: E, props: P, shapeFlag: j, transition: M, dirs: $ } = u;
2094
2094
  if (C = u.el = r(
2095
2095
  u.type,
2096
2096
  x,
@@ -2105,7 +2105,7 @@ function Pc(e, t) {
2105
2105
  x && E !== "foreignObject",
2106
2106
  S,
2107
2107
  k
2108
- ), K && qe(u, null, y, "created"), H(C, u, u.scopeId, S, y), P) {
2108
+ ), $ && qe(u, null, y, "created"), H(C, u, u.scopeId, S, y), P) {
2109
2109
  for (const V in P)
2110
2110
  V !== "value" && !en(V) && i(
2111
2111
  C,
@@ -2120,10 +2120,10 @@ function Pc(e, t) {
2120
2120
  );
2121
2121
  "value" in P && i(C, "value", null, P.value), (v = P.onVnodeBeforeMount) && je(v, y, u);
2122
2122
  }
2123
- K && qe(u, null, y, "beforeMount");
2123
+ $ && qe(u, null, y, "beforeMount");
2124
2124
  const J = (!_ || _ && !_.pendingBranch) && M && !M.persisted;
2125
- J && M.beforeEnter(C), o(C, h, m), ((v = P && P.onVnodeMounted) || J || K) && de(() => {
2126
- v && je(v, y, u), J && M.enter(C), K && qe(u, null, y, "mounted");
2125
+ J && M.beforeEnter(C), o(C, h, m), ((v = P && P.onVnodeMounted) || J || $) && de(() => {
2126
+ v && je(v, y, u), J && M.enter(C), $ && qe(u, null, y, "mounted");
2127
2127
  }, _);
2128
2128
  }, H = (u, h, m, y, _) => {
2129
2129
  if (m && g(u, m), y)
@@ -2157,21 +2157,21 @@ function Pc(e, t) {
2157
2157
  k
2158
2158
  );
2159
2159
  }
2160
- }, $ = (u, h, m, y, _, x, S) => {
2160
+ }, K = (u, h, m, y, _, x, S) => {
2161
2161
  const k = h.el = u.el;
2162
2162
  let { patchFlag: C, dynamicChildren: v, dirs: E } = h;
2163
2163
  C |= u.patchFlag & 16;
2164
- const P = u.props || q, j = h.props || q;
2164
+ const P = u.props || G, j = h.props || G;
2165
2165
  let M;
2166
2166
  m && Ge(m, !1), (M = j.onVnodeBeforeUpdate) && je(M, m, h, u), E && qe(h, u, m, "beforeUpdate"), m && Ge(m, !0);
2167
- const K = _ && h.type !== "foreignObject";
2167
+ const $ = _ && h.type !== "foreignObject";
2168
2168
  if (v ? oe(
2169
2169
  u.dynamicChildren,
2170
2170
  v,
2171
2171
  k,
2172
2172
  m,
2173
2173
  y,
2174
- K,
2174
+ $,
2175
2175
  x
2176
2176
  ) : S || B(
2177
2177
  u,
@@ -2180,7 +2180,7 @@ function Pc(e, t) {
2180
2180
  null,
2181
2181
  m,
2182
2182
  y,
2183
- K,
2183
+ $,
2184
2184
  x,
2185
2185
  !1
2186
2186
  ), C > 0) {
@@ -2232,7 +2232,7 @@ function Pc(e, t) {
2232
2232
  // which will not have a mounted element
2233
2233
  C.el && // - In the case of a Fragment, we need to provide the actual parent
2234
2234
  // of the Fragment itself so it can move its children.
2235
- (C.type === _e || // - In the case of different nodes, there is going to be a replacement
2235
+ (C.type === ye || // - In the case of different nodes, there is going to be a replacement
2236
2236
  // which also requires the correct parent container
2237
2237
  !Ot(C, v) || // - In the case of a component, it could contain anything.
2238
2238
  C.shapeFlag & 70) ? d(C.el) : (
@@ -2255,7 +2255,7 @@ function Pc(e, t) {
2255
2255
  }
2256
2256
  }, pe = (u, h, m, y, _, x, S) => {
2257
2257
  if (m !== y) {
2258
- if (m !== q)
2258
+ if (m !== G)
2259
2259
  for (const k in m)
2260
2260
  !en(k) && !(k in y) && i(
2261
2261
  u,
@@ -2345,7 +2345,7 @@ function Pc(e, t) {
2345
2345
  C
2346
2346
  ) : Ue(u, h, C);
2347
2347
  }, Ct = (u, h, m, y, _, x, S) => {
2348
- const k = u.component = $c(
2348
+ const k = u.component = Kc(
2349
2349
  u,
2350
2350
  y,
2351
2351
  _
@@ -2379,8 +2379,8 @@ function Pc(e, t) {
2379
2379
  }, Z = (u, h, m, y, _, x, S) => {
2380
2380
  const k = () => {
2381
2381
  if (u.isMounted) {
2382
- let { next: E, bu: P, u: j, parent: M, vnode: K } = u, J = E, V;
2383
- Ge(u, !1), E ? (E.el = K.el, te(u, E, S)) : E = K, P && tn(P), (V = E.props && E.props.onVnodeBeforeUpdate) && je(V, M, E, K), Ge(u, !0);
2382
+ let { next: E, bu: P, u: j, parent: M, vnode: $ } = u, J = E, V;
2383
+ Ge(u, !1), E ? (E.el = $.el, te(u, E, S)) : E = $, P && tn(P), (V = E.props && E.props.onVnodeBeforeUpdate) && je(V, M, E, $), Ge(u, !0);
2384
2384
  const se = Mn(u), we = u.subTree;
2385
2385
  u.subTree = se, w(
2386
2386
  we,
@@ -2393,12 +2393,12 @@ function Pc(e, t) {
2393
2393
  _,
2394
2394
  x
2395
2395
  ), E.el = se.el, J === null && Br(u, se.el), j && de(j, _), (V = E.props && E.props.onVnodeUpdated) && de(
2396
- () => je(V, M, E, K),
2396
+ () => je(V, M, E, $),
2397
2397
  _
2398
2398
  );
2399
2399
  } else {
2400
2400
  let E;
2401
- const { el: P, props: j } = h, { bm: M, m: K, parent: J } = u, V = on(h);
2401
+ const { el: P, props: j } = h, { bm: M, m: $, parent: J } = u, V = on(h);
2402
2402
  if (Ge(u, !1), M && tn(M), !V && (E = j && j.onVnodeBeforeMount) && je(E, J, h), Ge(u, !0), P && Nn) {
2403
2403
  const se = () => {
2404
2404
  u.subTree = Mn(u), Nn(
@@ -2428,7 +2428,7 @@ function Pc(e, t) {
2428
2428
  x
2429
2429
  ), h.el = se.el;
2430
2430
  }
2431
- if (K && de(K, _), !V && (E = j && j.onVnodeMounted)) {
2431
+ if ($ && de($, _), !V && (E = j && j.onVnodeMounted)) {
2432
2432
  const se = h;
2433
2433
  de(
2434
2434
  () => je(E, J, se),
@@ -2540,11 +2540,11 @@ function Pc(e, t) {
2540
2540
  const E = h.length;
2541
2541
  let P = u.length - 1, j = E - 1;
2542
2542
  for (; v <= P && v <= j; ) {
2543
- const M = u[v], K = h[v] = C ? He(h[v]) : Ae(h[v]);
2544
- if (Ot(M, K))
2543
+ const M = u[v], $ = h[v] = C ? He(h[v]) : Ae(h[v]);
2544
+ if (Ot(M, $))
2545
2545
  w(
2546
2546
  M,
2547
- K,
2547
+ $,
2548
2548
  m,
2549
2549
  null,
2550
2550
  _,
@@ -2558,11 +2558,11 @@ function Pc(e, t) {
2558
2558
  v++;
2559
2559
  }
2560
2560
  for (; v <= P && v <= j; ) {
2561
- const M = u[P], K = h[j] = C ? He(h[j]) : Ae(h[j]);
2562
- if (Ot(M, K))
2561
+ const M = u[P], $ = h[j] = C ? He(h[j]) : Ae(h[j]);
2562
+ if (Ot(M, $))
2563
2563
  w(
2564
2564
  M,
2565
- K,
2565
+ $,
2566
2566
  m,
2567
2567
  null,
2568
2568
  _,
@@ -2577,13 +2577,13 @@ function Pc(e, t) {
2577
2577
  }
2578
2578
  if (v > P) {
2579
2579
  if (v <= j) {
2580
- const M = j + 1, K = M < E ? h[M].el : y;
2580
+ const M = j + 1, $ = M < E ? h[M].el : y;
2581
2581
  for (; v <= j; )
2582
2582
  w(
2583
2583
  null,
2584
2584
  h[v] = C ? He(h[v]) : Ae(h[v]),
2585
2585
  m,
2586
- K,
2586
+ $,
2587
2587
  _,
2588
2588
  x,
2589
2589
  S,
@@ -2595,13 +2595,13 @@ function Pc(e, t) {
2595
2595
  for (; v <= P; )
2596
2596
  Pe(u[v], _, x, !0), v++;
2597
2597
  else {
2598
- const M = v, K = v, J = /* @__PURE__ */ new Map();
2599
- for (v = K; v <= j; v++) {
2598
+ const M = v, $ = v, J = /* @__PURE__ */ new Map();
2599
+ for (v = $; v <= j; v++) {
2600
2600
  const me = h[v] = C ? He(h[v]) : Ae(h[v]);
2601
2601
  me.key != null && J.set(me.key, v);
2602
2602
  }
2603
2603
  let V, se = 0;
2604
- const we = j - K + 1;
2604
+ const we = j - $ + 1;
2605
2605
  let ft = !1, Fo = 0;
2606
2606
  const Tt = new Array(we);
2607
2607
  for (v = 0; v < we; v++)
@@ -2616,12 +2616,12 @@ function Pc(e, t) {
2616
2616
  if (me.key != null)
2617
2617
  Ee = J.get(me.key);
2618
2618
  else
2619
- for (V = K; V <= j; V++)
2620
- if (Tt[V - K] === 0 && Ot(me, h[V])) {
2619
+ for (V = $; V <= j; V++)
2620
+ if (Tt[V - $] === 0 && Ot(me, h[V])) {
2621
2621
  Ee = V;
2622
2622
  break;
2623
2623
  }
2624
- Ee === void 0 ? Pe(me, _, x, !0) : (Tt[Ee - K] = v + 1, Ee >= Fo ? Fo = Ee : ft = !0, w(
2624
+ Ee === void 0 ? Pe(me, _, x, !0) : (Tt[Ee - $] = v + 1, Ee >= Fo ? Fo = Ee : ft = !0, w(
2625
2625
  me,
2626
2626
  h[Ee],
2627
2627
  m,
@@ -2633,20 +2633,20 @@ function Pc(e, t) {
2633
2633
  C
2634
2634
  ), se++);
2635
2635
  }
2636
- const Ko = ft ? Ec(Tt) : bt;
2637
- for (V = Ko.length - 1, v = we - 1; v >= 0; v--) {
2638
- const me = K + v, Ee = h[me], $o = me + 1 < E ? h[me + 1].el : y;
2636
+ const $o = ft ? Ec(Tt) : bt;
2637
+ for (V = $o.length - 1, v = we - 1; v >= 0; v--) {
2638
+ const me = $ + v, Ee = h[me], Ko = me + 1 < E ? h[me + 1].el : y;
2639
2639
  Tt[v] === 0 ? w(
2640
2640
  null,
2641
2641
  Ee,
2642
2642
  m,
2643
- $o,
2643
+ Ko,
2644
2644
  _,
2645
2645
  x,
2646
2646
  S,
2647
2647
  k,
2648
2648
  C
2649
- ) : ft && (V < 0 || v !== Ko[V] ? Ye(Ee, m, $o, 2) : V--);
2649
+ ) : ft && (V < 0 || v !== $o[V] ? Ye(Ee, m, Ko, 2) : V--);
2650
2650
  }
2651
2651
  }
2652
2652
  }, Ye = (u, h, m, y, _ = null) => {
@@ -2663,14 +2663,14 @@ function Pc(e, t) {
2663
2663
  S.move(u, h, m, ut);
2664
2664
  return;
2665
2665
  }
2666
- if (S === _e) {
2666
+ if (S === ye) {
2667
2667
  o(x, h, m);
2668
2668
  for (let P = 0; P < C.length; P++)
2669
2669
  Ye(C[P], h, m, y);
2670
2670
  o(u.anchor, h, m);
2671
2671
  return;
2672
2672
  }
2673
- if (S === Kn) {
2673
+ if (S === $n) {
2674
2674
  R(u, h, m);
2675
2675
  return;
2676
2676
  }
@@ -2678,12 +2678,12 @@ function Pc(e, t) {
2678
2678
  if (y === 0)
2679
2679
  k.beforeEnter(x), o(x, h, m), de(() => k.enter(x), _);
2680
2680
  else {
2681
- const { leave: P, delayLeave: j, afterLeave: M } = k, K = () => o(x, h, m), J = () => {
2681
+ const { leave: P, delayLeave: j, afterLeave: M } = k, $ = () => o(x, h, m), J = () => {
2682
2682
  P(x, () => {
2683
- K(), M && M();
2683
+ $(), M && M();
2684
2684
  });
2685
2685
  };
2686
- j ? j(x, K, J) : J();
2686
+ j ? j(x, $, J) : J();
2687
2687
  }
2688
2688
  else
2689
2689
  o(x, h, m);
@@ -2702,9 +2702,9 @@ function Pc(e, t) {
2702
2702
  h.ctx.deactivate(u);
2703
2703
  return;
2704
2704
  }
2705
- const M = E & 1 && j, K = !on(u);
2705
+ const M = E & 1 && j, $ = !on(u);
2706
2706
  let J;
2707
- if (K && (J = S && S.onVnodeBeforeUnmount) && je(J, h, u), E & 6)
2707
+ if ($ && (J = S && S.onVnodeBeforeUnmount) && je(J, h, u), E & 6)
2708
2708
  Ui(u.component, m, y);
2709
2709
  else {
2710
2710
  if (E & 128) {
@@ -2719,24 +2719,24 @@ function Pc(e, t) {
2719
2719
  ut,
2720
2720
  y
2721
2721
  ) : v && // #1153: fast path should not be taken for non-stable (v-for) fragments
2722
- (x !== _e || P > 0 && P & 64) ? Fe(
2722
+ (x !== ye || P > 0 && P & 64) ? Fe(
2723
2723
  v,
2724
2724
  h,
2725
2725
  m,
2726
2726
  !1,
2727
2727
  !0
2728
- ) : (x === _e && P & 384 || !_ && E & 16) && Fe(C, h, m), y && Lo(u);
2728
+ ) : (x === ye && P & 384 || !_ && E & 16) && Fe(C, h, m), y && Lo(u);
2729
2729
  }
2730
- (K && (J = S && S.onVnodeUnmounted) || M) && de(() => {
2730
+ ($ && (J = S && S.onVnodeUnmounted) || M) && de(() => {
2731
2731
  J && je(J, h, u), M && qe(u, null, h, "unmounted");
2732
2732
  }, m);
2733
2733
  }, Lo = (u) => {
2734
2734
  const { type: h, el: m, anchor: y, transition: _ } = u;
2735
- if (h === _e) {
2735
+ if (h === ye) {
2736
2736
  zi(m, y);
2737
2737
  return;
2738
2738
  }
2739
- if (h === Kn) {
2739
+ if (h === $n) {
2740
2740
  A(u);
2741
2741
  return;
2742
2742
  }
@@ -2816,7 +2816,7 @@ function Ec(e) {
2816
2816
  n[i] = r, r = t[r];
2817
2817
  return n;
2818
2818
  }
2819
- const jc = (e) => e.__isTeleport, _e = Symbol.for("v-fgt"), Tn = Symbol.for("v-txt"), ct = Symbol.for("v-cmt"), Kn = Symbol.for("v-stc"), Nt = [];
2819
+ const jc = (e) => e.__isTeleport, ye = Symbol.for("v-fgt"), Tn = Symbol.for("v-txt"), ct = Symbol.for("v-cmt"), $n = Symbol.for("v-stc"), Nt = [];
2820
2820
  let xe = null;
2821
2821
  function D(e = !1) {
2822
2822
  Nt.push(xe = e ? null : []);
@@ -2831,7 +2831,7 @@ function is(e) {
2831
2831
  function xi(e) {
2832
2832
  return e.dynamicChildren = Dt > 0 ? xe || bt : null, Ac(), Dt > 0 && xe && xe.push(e), e;
2833
2833
  }
2834
- function G(e, t, n, o, s, i) {
2834
+ function q(e, t, n, o, s, i) {
2835
2835
  return xi(
2836
2836
  X(
2837
2837
  e,
@@ -2868,8 +2868,8 @@ const On = "__vInternal", Ii = ({ key: e }) => e ?? null, sn = ({
2868
2868
  ref: e,
2869
2869
  ref_key: t,
2870
2870
  ref_for: n
2871
- }) => (typeof e == "number" && (e = "" + e), e != null ? ie(e) || ne(e) || F(e) ? { i: be, r: e, k: t, f: !!n } : e : null);
2872
- function X(e, t = null, n = null, o = 0, s = null, i = e === _e ? 0 : 1, r = !1, c = !1) {
2871
+ }) => (typeof e == "number" && (e = "" + e), e != null ? ie(e) || ne(e) || F(e) ? { i: _e, r: e, k: t, f: !!n } : e : null);
2872
+ function X(e, t = null, n = null, o = 0, s = null, i = e === ye ? 0 : 1, r = !1, c = !1) {
2873
2873
  const a = {
2874
2874
  __v_isVNode: !0,
2875
2875
  __v_skip: !0,
@@ -2896,7 +2896,7 @@ function X(e, t = null, n = null, o = 0, s = null, i = e === _e ? 0 : 1, r = !1,
2896
2896
  dynamicProps: s,
2897
2897
  dynamicChildren: null,
2898
2898
  appContext: null,
2899
- ctx: be
2899
+ ctx: _e
2900
2900
  };
2901
2901
  return c ? (Co(a, n), i & 128 && e.normalize(a)) : n && (a.shapeFlag |= ie(n) ? 8 : 16), Dt > 0 && // avoid a block node from tracking itself
2902
2902
  !r && // has current parent block
@@ -2964,7 +2964,7 @@ function vt(e, t, n = !1) {
2964
2964
  // existing patch flag to be reliable and need to add the FULL_PROPS flag.
2965
2965
  // note: preserve flag for fragments since they use the flag for children
2966
2966
  // fast paths only.
2967
- patchFlag: t && e.type !== _e ? i === -1 ? 16 : i | 16 : i,
2967
+ patchFlag: t && e.type !== ye ? i === -1 ? 16 : i | 16 : i,
2968
2968
  dynamicProps: e.dynamicProps,
2969
2969
  dynamicChildren: e.dynamicChildren,
2970
2970
  appContext: e.appContext,
@@ -2987,12 +2987,12 @@ function vt(e, t, n = !1) {
2987
2987
  function Sn(e = " ", t = 0) {
2988
2988
  return Oe(Tn, null, e, t);
2989
2989
  }
2990
- function ye(e = "", t = !1) {
2990
+ function be(e = "", t = !1) {
2991
2991
  return t ? (D(), Lt(ct, null, e)) : Oe(ct, null, e);
2992
2992
  }
2993
2993
  function Ae(e) {
2994
2994
  return e == null || typeof e == "boolean" ? Oe(ct) : N(e) ? Oe(
2995
- _e,
2995
+ ye,
2996
2996
  null,
2997
2997
  // #3666, avoid reference pollution when reusing vnode
2998
2998
  e.slice()
@@ -3016,10 +3016,10 @@ function Co(e, t) {
3016
3016
  } else {
3017
3017
  n = 32;
3018
3018
  const s = t._;
3019
- !s && !(On in t) ? t._ctx = be : s === 3 && be && (be.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
3019
+ !s && !(On in t) ? t._ctx = _e : s === 3 && _e && (_e.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
3020
3020
  }
3021
3021
  else
3022
- F(t) ? (t = { default: t, _ctx: be }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [Sn(t)]) : n = 8);
3022
+ F(t) ? (t = { default: t, _ctx: _e }, n = 32) : (t = String(t), o & 64 ? (n = 16, t = [Sn(t)]) : n = 8);
3023
3023
  e.children = t, e.shapeFlag |= n;
3024
3024
  }
3025
3025
  function Mc(...e) {
@@ -3046,10 +3046,10 @@ function je(e, t, n, o = null) {
3046
3046
  ]);
3047
3047
  }
3048
3048
  const Fc = gi();
3049
- let Kc = 0;
3050
- function $c(e, t, n) {
3049
+ let $c = 0;
3050
+ function Kc(e, t, n) {
3051
3051
  const o = e.type, s = (t ? t.appContext : e.appContext) || Fc, i = {
3052
- uid: Kc++,
3052
+ uid: $c++,
3053
3053
  vnode: e,
3054
3054
  type: o,
3055
3055
  parent: t,
@@ -3085,17 +3085,17 @@ function $c(e, t, n) {
3085
3085
  // to be set immediately
3086
3086
  emitted: null,
3087
3087
  // props default value
3088
- propsDefaults: q,
3088
+ propsDefaults: G,
3089
3089
  // inheritAttrs
3090
3090
  inheritAttrs: o.inheritAttrs,
3091
3091
  // state
3092
- ctx: q,
3093
- data: q,
3094
- props: q,
3095
- attrs: q,
3096
- slots: q,
3097
- refs: q,
3098
- setupState: q,
3092
+ ctx: G,
3093
+ data: G,
3094
+ props: G,
3095
+ attrs: G,
3096
+ slots: G,
3097
+ refs: G,
3098
+ setupState: G,
3099
3099
  setupContext: null,
3100
3100
  attrsProxy: null,
3101
3101
  slotsProxy: null,
@@ -3328,19 +3328,19 @@ function no(e, t, n) {
3328
3328
  ) : e[o] = n;
3329
3329
  }
3330
3330
  }
3331
- const fs = ["Webkit", "Moz", "ms"], $n = {};
3331
+ const fs = ["Webkit", "Moz", "ms"], Kn = {};
3332
3332
  function Qc(e, t) {
3333
- const n = $n[t];
3333
+ const n = Kn[t];
3334
3334
  if (n)
3335
3335
  return n;
3336
3336
  let o = Me(t);
3337
3337
  if (o !== "filter" && o in e)
3338
- return $n[t] = o;
3338
+ return Kn[t] = o;
3339
3339
  o = gn(o);
3340
3340
  for (let s = 0; s < fs.length; s++) {
3341
3341
  const i = fs[s] + o;
3342
3342
  if (i in e)
3343
- return $n[t] = i;
3343
+ return Kn[t] = i;
3344
3344
  }
3345
3345
  return t;
3346
3346
  }
@@ -3580,7 +3580,7 @@ function ys(e, t, n, o = Pi) {
3580
3580
  const i = e.indexOf(t);
3581
3581
  i > -1 && (e.splice(i, 1), o());
3582
3582
  };
3583
- return !n && Ks() && tr(s), s;
3583
+ return !n && $s() && tr(s), s;
3584
3584
  }
3585
3585
  function ht(e, ...t) {
3586
3586
  e.slice().forEach((n) => {
@@ -3634,12 +3634,12 @@ function Ei(e, t, n = {}, o, s, i) {
3634
3634
  !i && !b && (o.state.value[e] = {}), Q({});
3635
3635
  let w;
3636
3636
  function I(L) {
3637
- let $;
3638
- l = f = !1, typeof L == "function" ? (L(o.state.value[e]), $ = {
3637
+ let K;
3638
+ l = f = !1, typeof L == "function" ? (L(o.state.value[e]), K = {
3639
3639
  type: Mt.patchFunction,
3640
3640
  storeId: e,
3641
3641
  events: g
3642
- }) : (so(o.state.value[e], L), $ = {
3642
+ }) : (so(o.state.value[e], L), K = {
3643
3643
  type: Mt.patchObject,
3644
3644
  payload: L,
3645
3645
  storeId: e,
@@ -3648,10 +3648,10 @@ function Ei(e, t, n = {}, o, s, i) {
3648
3648
  const oe = w = Symbol();
3649
3649
  ti().then(() => {
3650
3650
  w === oe && (l = !0);
3651
- }), f = !0, ht(d, $, o.state.value[e]);
3651
+ }), f = !0, ht(d, K, o.state.value[e]);
3652
3652
  }
3653
3653
  const O = i ? function() {
3654
- const { state: $ } = n, oe = $ ? $() : {};
3654
+ const { state: K } = n, oe = K ? K() : {};
3655
3655
  this.$patch((pe) => {
3656
3656
  We(pe, oe);
3657
3657
  });
@@ -3662,7 +3662,7 @@ function Ei(e, t, n = {}, o, s, i) {
3662
3662
  function T() {
3663
3663
  r.stop(), d = [], p = [], o._s.delete(e);
3664
3664
  }
3665
- function R(L, $) {
3665
+ function R(L, K) {
3666
3666
  return function() {
3667
3667
  En(o);
3668
3668
  const oe = Array.from(arguments), pe = [], Se = [];
@@ -3681,7 +3681,7 @@ function Ei(e, t, n = {}, o, s, i) {
3681
3681
  });
3682
3682
  let Ue;
3683
3683
  try {
3684
- Ue = $.apply(this && this.$id === e ? this : W, oe);
3684
+ Ue = K.apply(this && this.$id === e ? this : W, oe);
3685
3685
  } catch (Z) {
3686
3686
  throw ht(Se, Z), Z;
3687
3687
  }
@@ -3695,14 +3695,14 @@ function Ei(e, t, n = {}, o, s, i) {
3695
3695
  $onAction: ys.bind(null, p),
3696
3696
  $patch: I,
3697
3697
  $reset: O,
3698
- $subscribe(L, $ = {}) {
3699
- const oe = ys(d, L, $.detached, () => pe()), pe = r.run(() => nn(() => o.state.value[e], (Se) => {
3700
- ($.flush === "sync" ? f : l) && L({
3698
+ $subscribe(L, K = {}) {
3699
+ const oe = ys(d, L, K.detached, () => pe()), pe = r.run(() => nn(() => o.state.value[e], (Se) => {
3700
+ (K.flush === "sync" ? f : l) && L({
3701
3701
  storeId: e,
3702
3702
  type: Mt.direct,
3703
3703
  events: g
3704
3704
  }, Se);
3705
- }, We({}, a, $)));
3705
+ }, We({}, a, K)));
3706
3706
  return oe;
3707
3707
  },
3708
3708
  $dispose: T
@@ -3710,19 +3710,19 @@ function Ei(e, t, n = {}, o, s, i) {
3710
3710
  o._s.set(e, W);
3711
3711
  const fe = o._a && o._a.runWithContext || xa, H = o._e.run(() => (r = Fs(), fe(() => r.run(t))));
3712
3712
  for (const L in H) {
3713
- const $ = H[L];
3714
- if (ne($) && !Ta($) || Ve($))
3715
- i || (b && Ca($) && (ne($) ? $.value = b[L] : so($, b[L])), o.state.value[e][L] = $);
3716
- else if (typeof $ == "function") {
3717
- const oe = R(L, $);
3718
- H[L] = oe, c.actions[L] = $;
3713
+ const K = H[L];
3714
+ if (ne(K) && !Ta(K) || Ve(K))
3715
+ i || (b && Ca(K) && (ne(K) ? K.value = b[L] : so(K, b[L])), o.state.value[e][L] = K);
3716
+ else if (typeof K == "function") {
3717
+ const oe = R(L, K);
3718
+ H[L] = oe, c.actions[L] = K;
3719
3719
  }
3720
3720
  }
3721
3721
  return We(W, H), We(U(W), H), Object.defineProperty(W, "$state", {
3722
3722
  get: () => o.state.value[e],
3723
3723
  set: (L) => {
3724
- I(($) => {
3725
- We($, L);
3724
+ I((K) => {
3725
+ We(K, L);
3726
3726
  });
3727
3727
  }
3728
3728
  }), o._p.forEach((L) => {
@@ -4096,8 +4096,8 @@ async function Ra(e, t) {
4096
4096
  try {
4097
4097
  O = await Aa(f, p, g, b, w, I, d), T = null;
4098
4098
  break;
4099
- } catch ($) {
4100
- T = $;
4099
+ } catch (K) {
4100
+ T = K;
4101
4101
  }
4102
4102
  if (T)
4103
4103
  throw T;
@@ -4292,9 +4292,9 @@ var st = Po(function(e, t) {
4292
4292
  };
4293
4293
  });
4294
4294
  So(st), st.encode, st.parse, st.getAll;
4295
- var Ka = st.get, Li = st.set, Mi = st.remove;
4295
+ var $a = st.get, Li = st.set, Mi = st.remove;
4296
4296
  const mt = { get(e) {
4297
- const t = Ka(e);
4297
+ const t = $a(e);
4298
4298
  if (t !== void 0)
4299
4299
  return JSON.parse(t);
4300
4300
  }, save(e, t, n) {
@@ -4303,7 +4303,7 @@ const mt = { get(e) {
4303
4303
  }, remove(e, t) {
4304
4304
  let n = {};
4305
4305
  t?.cookieDomain && (n.domain = t.cookieDomain), Mi(e, n);
4306
- } }, $a = { get: (e) => mt.get(e) || mt.get(`_legacy_${e}`), save(e, t, n) {
4306
+ } }, Ka = { get: (e) => mt.get(e) || mt.get(`_legacy_${e}`), save(e, t, n) {
4307
4307
  let o = {};
4308
4308
  window.location.protocol === "https:" && (o = { secure: !0 }), n?.daysUntilExpire && (o.expires = n.daysUntilExpire), n?.cookieDomain && (o.domain = n.cookieDomain), Li(`_legacy_${e}`, JSON.stringify(t), o), mt.save(e, t, n);
4309
4309
  }, remove(e, t) {
@@ -4384,7 +4384,7 @@ class Ha {
4384
4384
  throw new Error(`Invalid cache location "${n}"`);
4385
4385
  o = xs(n)();
4386
4386
  }
4387
- this.httpTimeoutMs = t.httpTimeoutInSeconds ? 1e3 * t.httpTimeoutInSeconds : 1e4, this.cookieStorage = t.legacySameSiteCookie === !1 ? mt : $a, this.orgHintCookieName = `auth0.${this.options.clientId}.organization_hint`, this.isAuthenticatedCookieName = ((r) => `auth0.${this.options.clientId}.is.authenticated`)(), this.sessionCheckExpiryDays = t.sessionCheckExpiryDays || 1;
4387
+ this.httpTimeoutMs = t.httpTimeoutInSeconds ? 1e3 * t.httpTimeoutInSeconds : 1e4, this.cookieStorage = t.legacySameSiteCookie === !1 ? mt : Ka, this.orgHintCookieName = `auth0.${this.options.clientId}.organization_hint`, this.isAuthenticatedCookieName = ((r) => `auth0.${this.options.clientId}.is.authenticated`)(), this.sessionCheckExpiryDays = t.sessionCheckExpiryDays || 1;
4388
4388
  const s = t.useCookiesForTransactions ? this.cookieStorage : za;
4389
4389
  var i;
4390
4390
  this.scope = Qt("openid", this.options.authorizationParams.scope, this.options.useRefreshTokens ? "offline_access" : ""), this.transactionManager = new Ma(s, this.options.clientId, this.options.cookieDomain), this.nowProvider = this.options.nowProvider || Ri, this.cacheManager = new La(o, o.allKeys ? void 0 : new Da(o, this.options.clientId), this.nowProvider), this.domainUrl = (i = this.options.domain, /^https?:\/\//.test(i) ? i : `https://${i}`), this.tokenIssuer = ((r, c) => r ? r.startsWith("https://") ? r : `https://${r}/` : `${c}/`)(this.options.issuer, this.domainUrl), typeof window < "u" && window.Worker && this.options.useRefreshTokens && n === "memory" && (this.worker = new Ua());
@@ -4756,17 +4756,16 @@ class Xa {
4756
4756
  function Fi(e, t) {
4757
4757
  return At(e), new Xa(e, t);
4758
4758
  }
4759
- function Ki() {
4759
+ function $i() {
4760
4760
  return Te(ji);
4761
4761
  }
4762
4762
  var No = /* @__PURE__ */ ((e) => (e[e.Pending = 0] = "Pending", e[e.Approved = 1] = "Approved", e[e.Rejected = 2] = "Rejected", e))(No || {});
4763
4763
  function Cs(e) {
4764
- const { user: t, created_at: n, ...o } = e;
4764
+ const { created_at: t, ...n } = e;
4765
4765
  return {
4766
- ...o,
4766
+ ...n,
4767
4767
  status: Number(e.status),
4768
- createdAt: new Date(n),
4769
- user: JSON.parse(e.user)
4768
+ createdAt: new Date(t)
4770
4769
  };
4771
4770
  }
4772
4771
  const An = Sa("store", () => {
@@ -4827,8 +4826,8 @@ const An = Sa("store", () => {
4827
4826
  if (I === O)
4828
4827
  L.children || (L.children = []), L.children.unshift(H);
4829
4828
  else {
4830
- const $ = L.children.findIndex((oe) => Number(oe.id) === O);
4831
- L.children.splice($ + 1, 0, H);
4829
+ const K = L.children.findIndex((oe) => Number(oe.id) === O);
4830
+ L.children.splice(K + 1, 0, H);
4832
4831
  }
4833
4832
  } else
4834
4833
  H.ancestorId = 0, H.parentId = 0, i.value = { [g]: H, ...i.value };
@@ -4854,7 +4853,7 @@ const An = Sa("store", () => {
4854
4853
  class: "text-xs text-neutral-400/40"
4855
4854
  }, el = {
4856
4855
  key: 1,
4857
- class: "ac-alert ac-alert-error mx-4"
4856
+ class: "ac-alert ac-alert-error mx-4 py-1"
4858
4857
  }, tl = ["disabled"], nl = {
4859
4858
  key: 0,
4860
4859
  class: "ac-loading ac-loading-spinner"
@@ -4869,7 +4868,7 @@ const An = Sa("store", () => {
4869
4868
  },
4870
4869
  emits: ["close"],
4871
4870
  setup(e, { emit: t }) {
4872
- const n = e, o = Ki(), s = An(), i = Te("ApiBaseUrl"), r = Te("Auth0Domain"), c = "0.3.0", a = Q(), l = Q(!1), f = Q(""), d = Q("");
4871
+ const n = e, o = $i(), s = An(), i = Te("ApiBaseUrl"), r = Te("Auth0Domain"), c = "0.4.0", a = Q(), l = Q(!1), f = Q(""), d = Q("");
4873
4872
  async function p(I) {
4874
4873
  if (!o.user.value)
4875
4874
  return g();
@@ -4889,10 +4888,9 @@ const An = Sa("store", () => {
4889
4888
  ancestorId: n.ancestorId ? Number(n.ancestorId) : void 0,
4890
4889
  parentId: n.parentId ? Number(n.parentId) : void 0
4891
4890
  })
4892
- });
4893
- if (!T.ok)
4894
- throw new Error("Failed to post comment");
4895
- const R = await T.json();
4891
+ }), R = await T.json();
4892
+ if (!T.ok || R.message)
4893
+ throw new Error("Failed to post comment: " + (R.message || "Unknown"));
4896
4894
  n.ancestorId || n.parentId ? s.addComment(R.data, f.value, o.user.value, Number(n.ancestorId), Number(n.parentId)) : s.addComment(R.data, f.value, o.user.value), f.value = "";
4897
4895
  } catch (O) {
4898
4896
  d.value = O.message || String(O);
@@ -4912,7 +4910,7 @@ const An = Sa("store", () => {
4912
4910
  }
4913
4911
  return fi(() => {
4914
4912
  a.value?.focus();
4915
- }), (I, O) => (D(), G("form", {
4913
+ }), (I, O) => (D(), q("form", {
4916
4914
  class: "mb-6",
4917
4915
  onSubmit: ma(p, ["prevent"])
4918
4916
  }, [
@@ -4935,15 +4933,13 @@ const An = Sa("store", () => {
4935
4933
  [da, f.value]
4936
4934
  ]),
4937
4935
  X("div", Ga, [
4938
- I.noVersion ? ye("", !0) : (D(), G("div", Qa, "v" + ve(Y(c)), 1)),
4939
- d.value ? (D(), G("div", el, [
4940
- X("p", null, ve(d.value), 1)
4941
- ])) : ye("", !0),
4936
+ I.noVersion ? be("", !0) : (D(), q("div", Qa, "v" + ve(Y(c)), 1)),
4937
+ d.value ? (D(), q("div", el, ve(d.value), 1)) : be("", !0),
4942
4938
  X("button", {
4943
4939
  class: "ac-btn ac-btn-primary ac-btn-sm ml-auto",
4944
4940
  disabled: l.value
4945
4941
  }, [
4946
- l.value ? (D(), G("span", nl)) : ye("", !0),
4942
+ l.value ? (D(), q("span", nl)) : be("", !0),
4947
4943
  Sn("Post comment")
4948
4944
  ], 8, tl)
4949
4945
  ])
@@ -5001,15 +4997,21 @@ function Ss(e) {
5001
4997
  }
5002
4998
  return n;
5003
4999
  }
5004
- const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-gray-900" }, al = { class: "flex justify-between items-center mb-2" }, ll = { class: "flex items-center text-sm text-base-content dark:text-white" }, ul = { class: "avatar mr-2" }, fl = ["src", "alt"], dl = { class: "text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6" }, hl = ["datetime", "title"], pl = ["href"], ml = /* @__PURE__ */ X("i", { class: "bi bi-reply-fill h-4 w-4" }, null, -1), gl = [
5005
- ml
5006
- ], bl = ["innerHTML"], _l = {
5000
+ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-gray-900" }, al = { class: "flex justify-between items-center mb-2" }, ll = { class: "flex items-center text-sm text-base-content dark:text-white" }, ul = { class: "avatar mr-2" }, fl = {
5001
+ key: 0,
5002
+ class: "w-6 h-6"
5003
+ }, dl = ["src", "alt"], hl = { class: "text-neutral-content mix-blend-color-dodge uppercase font-bold leading-6" }, pl = {
5004
+ key: 0,
5005
+ class: "bi bi-patch-check-fill text-success ml-2"
5006
+ }, ml = ["datetime", "title"], gl = ["href"], bl = /* @__PURE__ */ X("i", { class: "bi bi-reply-fill h-4 w-4" }, null, -1), _l = [
5007
+ bl
5008
+ ], yl = ["innerHTML"], wl = {
5007
5009
  key: 0,
5008
5010
  class: "italic mt-4 text-gray-500 mb-0 text-sm dark:text-gray-400"
5009
- }, yl = {
5011
+ }, vl = {
5010
5012
  name: "CommentItem"
5011
- }, wl = /* @__PURE__ */ In({
5012
- ...yl,
5013
+ }, kl = /* @__PURE__ */ In({
5014
+ ...vl,
5013
5015
  props: {
5014
5016
  comment: {},
5015
5017
  isFirstLevel: { type: Boolean },
@@ -5022,7 +5024,7 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
5022
5024
  }
5023
5025
  return (s, i) => {
5024
5026
  const r = uc("comment-item", !0);
5025
- return D(), G("div", {
5027
+ return D(), q("div", {
5026
5028
  class: _n(["comment-item rounded-lg my-4", { "animated flash": s.comment.isNew }]),
5027
5029
  id: "awcm-" + s.comment.id,
5028
5030
  onAnimationend: i[2] || (i[2] = (c) => s.comment.isNew = !1)
@@ -5031,43 +5033,45 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
5031
5033
  X("header", al, [
5032
5034
  X("div", ll, [
5033
5035
  X("div", ul, [
5034
- s.comment.user.avatar ? (D(), G("img", {
5035
- key: 0,
5036
- class: "w-6 h-6 rounded-full",
5037
- src: s.comment.user.avatar,
5038
- alt: s.comment.user.name
5039
- }, null, 8, fl)) : (D(), G("div", {
5036
+ s.comment.user.avatar ? (D(), q("div", fl, [
5037
+ X("img", {
5038
+ class: "rounded-full max-w-full max-h-full",
5039
+ src: s.comment.user.avatar,
5040
+ alt: s.comment.user.name
5041
+ }, null, 8, dl)
5042
+ ])) : (D(), q("div", {
5040
5043
  key: 1,
5041
- class: "avatar-char rounded-full w-6 h-6 mr-2 text-center",
5044
+ class: "avatar-char rounded-full w-6 h-6 text-center",
5042
5045
  style: bn({ "background-color": Y(il)(s.comment.user.name || "Anonymous") })
5043
5046
  }, [
5044
- X("span", dl, ve((s.comment.user.name || "Anonymous").substring(0, 1)), 1)
5047
+ X("span", hl, ve((s.comment.user.name || "Anonymous").substring(0, 1)), 1)
5045
5048
  ], 4))
5046
5049
  ]),
5047
5050
  Sn(ve(s.comment.user.name), 1),
5051
+ s.comment.isAdmin ? (D(), q("i", pl)) : be("", !0),
5048
5052
  X("time", {
5049
5053
  class: "text-xs text-gray-600 ml-4 dark:text-gray-400",
5050
5054
  pubdate: "",
5051
5055
  datetime: s.comment.createdAt,
5052
5056
  title: Y(Ss)(s.comment.createdAt)
5053
- }, ve(Y(Ss)(s.comment.createdAt)), 9, hl),
5054
- !s.isFirstLevel && s.comment.parent_id !== s.comment.ancestor_id ? (D(), G("a", {
5055
- key: 0,
5057
+ }, ve(Y(Ss)(s.comment.createdAt)), 9, ml),
5058
+ !s.isFirstLevel && s.comment.parent_id !== s.comment.ancestor_id ? (D(), q("a", {
5059
+ key: 1,
5056
5060
  class: "text-xs link link-hover ml-4",
5057
5061
  href: "#awcm-" + s.comment.parent_id
5058
- }, "reply to " + ve(o(s.comment.parent_id)) + "(#" + ve(s.comment.parent_id) + ")", 9, pl)) : ye("", !0)
5062
+ }, "reply to " + ve(o(s.comment.parent_id)) + "(#" + ve(s.comment.parent_id) + ")", 9, gl)) : be("", !0)
5059
5063
  ]),
5060
5064
  X("button", {
5061
5065
  class: "ac-btn ac-btn-sm ac-btn-circle border-0",
5062
5066
  type: "button",
5063
5067
  onClick: i[0] || (i[0] = (c) => s.comment.isReplying = !s.comment.isReplying)
5064
- }, gl)
5068
+ }, _l)
5065
5069
  ]),
5066
5070
  X("p", {
5067
5071
  class: "text-gray-500 dark:text-gray-400",
5068
5072
  innerHTML: Y(co)(s.comment.content)
5069
- }, null, 8, bl),
5070
- s.comment.status === Y(No).Pending ? (D(), G("p", _l, "comments normally got approved within 24 hours")) : ye("", !0)
5073
+ }, null, 8, yl),
5074
+ s.comment.status === Y(No).Pending ? (D(), q("p", wl, "comments normally got approved within 24 hours")) : be("", !0)
5071
5075
  ]),
5072
5076
  s.comment.isReplying && s.isFirstLevel ? (D(), Lt(ro, {
5073
5077
  key: 0,
@@ -5076,87 +5080,87 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
5076
5080
  "ancestor-id": Number(s.ancestorId),
5077
5081
  "parent-id": Number(s.comment.id),
5078
5082
  onClose: i[1] || (i[1] = (c) => s.comment.isReplying = !1)
5079
- }, null, 8, ["ancestor-id", "parent-id"])) : ye("", !0),
5080
- s.comment.children?.length ? (D(!0), G(_e, { key: 1 }, pi(s.comment.children, (c) => (D(), Lt(r, {
5083
+ }, null, 8, ["ancestor-id", "parent-id"])) : be("", !0),
5084
+ s.comment.children?.length ? (D(!0), q(ye, { key: 1 }, pi(s.comment.children, (c) => (D(), Lt(r, {
5081
5085
  class: "ml-12",
5082
5086
  key: c.id,
5083
5087
  comment: c,
5084
5088
  "ancestor-id": Number(s.ancestorId),
5085
5089
  "is-first-level": !1
5086
- }, null, 8, ["comment", "ancestor-id"]))), 128)) : ye("", !0),
5090
+ }, null, 8, ["comment", "ancestor-id"]))), 128)) : be("", !0),
5087
5091
  s.comment.isReplying && !s.isFirstLevel ? (D(), Lt(ro, {
5088
5092
  key: 2,
5089
5093
  class: "mt-3 ml-12",
5090
5094
  "ancestor-id": Number(s.ancestorId),
5091
5095
  "parent-id": Number(s.comment.id)
5092
- }, null, 8, ["ancestor-id", "parent-id"])) : ye("", !0)
5096
+ }, null, 8, ["ancestor-id", "parent-id"])) : be("", !0)
5093
5097
  ], 42, rl);
5094
5098
  };
5095
5099
  }
5096
- }), vl = {
5100
+ }), xl = {
5097
5101
  key: 0,
5098
5102
  class: "comments-wrapper"
5099
- }, kl = ["disabled"], xl = {
5103
+ }, Il = ["disabled"], Cl = {
5100
5104
  key: 0,
5101
5105
  class: "ac-loading ac-loading-xs ac-loading-spinner"
5102
- }, Il = {
5106
+ }, Tl = {
5103
5107
  key: 1,
5104
5108
  class: "pt-8 text-center"
5105
- }, Cl = /* @__PURE__ */ X("span", { class: "ac-loading ac-loading-spinner" }, null, -1), Tl = [
5106
- Cl
5107
- ], Ol = {
5109
+ }, Ol = /* @__PURE__ */ X("span", { class: "ac-loading ac-loading-spinner" }, null, -1), Sl = [
5110
+ Ol
5111
+ ], Pl = {
5108
5112
  name: "CommentSections"
5109
- }, Sl = /* @__PURE__ */ In({
5110
- ...Ol,
5113
+ }, El = /* @__PURE__ */ In({
5114
+ ...Pl,
5111
5115
  setup(e) {
5112
5116
  const t = An();
5113
5117
  t.loadComments();
5114
5118
  function n() {
5115
5119
  t.start += 20, t.loadComments();
5116
5120
  }
5117
- return (o, s) => Y(t).isLoaded ? (D(), G("div", vl, [
5118
- (D(!0), G(_e, null, pi(Object.values(Y(t).comments), (i) => (D(), Lt(wl, {
5121
+ return (o, s) => Y(t).isLoaded ? (D(), q("div", xl, [
5122
+ (D(!0), q(ye, null, pi(Object.values(Y(t).comments), (i) => (D(), Lt(kl, {
5119
5123
  key: i.id,
5120
5124
  comment: i,
5121
5125
  "ancestor-id": Number(i.id),
5122
5126
  "is-first-level": ""
5123
5127
  }, null, 8, ["comment", "ancestor-id"]))), 128)),
5124
- Y(t).hasMore ? (D(), G("button", {
5128
+ Y(t).hasMore ? (D(), q("button", {
5125
5129
  key: 0,
5126
5130
  class: "ac-btn ac-btn-neutral ac-btn-sm ac-btn-block",
5127
5131
  type: "button",
5128
5132
  onClick: n,
5129
5133
  disabled: Y(t).loadingMore
5130
5134
  }, [
5131
- Y(t).loadingMore ? (D(), G("span", xl)) : ye("", !0),
5135
+ Y(t).loadingMore ? (D(), q("span", Cl)) : be("", !0),
5132
5136
  Sn("Load More")
5133
- ], 8, kl)) : ye("", !0)
5134
- ])) : (D(), G("div", Il, Tl));
5137
+ ], 8, Il)) : be("", !0)
5138
+ ])) : (D(), q("div", Tl, Sl));
5135
5139
  }
5136
- }), Pl = { class: "awesome-comment" }, El = {
5140
+ }), jl = { class: "awesome-comment" }, Al = {
5137
5141
  key: 0,
5138
5142
  class: "ac-alert ac-alert-error mb-4"
5139
- }, jl = { class: "flex justify-between items-center py-2" }, Al = { class: "text-lg font-bold text-base-content my-0" }, Rl = {
5143
+ }, Rl = { class: "flex justify-between items-center py-2" }, Nl = { class: "text-lg font-bold text-base-content my-0" }, Ll = {
5140
5144
  key: 0,
5141
5145
  class: "ac-loading ac-loading-spinner"
5142
- }, Nl = {
5146
+ }, Ml = {
5143
5147
  key: 1,
5144
5148
  class: "ac-dropdown ac-dropdown-end"
5145
- }, Ll = {
5149
+ }, Fl = {
5146
5150
  key: 0,
5147
5151
  class: "ac-avatar flex",
5148
5152
  tabindex: "0"
5149
- }, Ml = { class: "w-6 h-6 rounded-full" }, Fl = ["alt", "src"], Kl = {
5153
+ }, $l = { class: "w-6 h-6 rounded-full" }, Kl = ["alt", "src"], zl = {
5150
5154
  key: 1,
5151
5155
  class: "ac-btn ac-btn-ghost",
5152
5156
  tabindex: "0"
5153
- }, $l = {
5157
+ }, Ul = {
5154
5158
  class: "ac-dropdown-content z-10 ac-menu p-2 shadow bg-base-100 rounded-box w-52",
5155
5159
  tabindex: "0"
5156
- }, zl = {
5160
+ }, Dl = {
5157
5161
  key: 0,
5158
5162
  class: "border-b border-neutral pb-2 mb-2 pointer-events-none"
5159
- }, Ul = { class: "text-base-content" }, Dl = ["disabled"], Wl = ["disabled"], Hl = /* @__PURE__ */ In({
5163
+ }, Wl = { class: "text-base-content" }, Hl = ["disabled"], Zl = ["disabled"], Vl = /* @__PURE__ */ In({
5160
5164
  __name: "App",
5161
5165
  setup(e) {
5162
5166
  const t = An(), {
@@ -5165,7 +5169,7 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
5165
5169
  user: s,
5166
5170
  loginWithPopup: i,
5167
5171
  logout: r
5168
- } = Ki(), c = Oo(() => {
5172
+ } = $i(), c = Oo(() => {
5169
5173
  const f = t.total > 20 || t.total === 20 && t.hasMore ? "20+" : t.total, d = new CustomEvent("AwesomeComment:total", {
5170
5174
  bubbles: !0,
5171
5175
  cancelable: !0,
@@ -5181,53 +5185,53 @@ const rl = ["id"], cl = { class: "p-6 text-base bg-base-200 rounded-lg dark:bg-g
5181
5185
  openUrl: !1
5182
5186
  });
5183
5187
  }
5184
- return (f, d) => (D(), G("div", Pl, [
5185
- Y(t).message ? (D(), G("div", El, [
5188
+ return (f, d) => (D(), q("div", jl, [
5189
+ Y(t).message ? (D(), q("div", Al, [
5186
5190
  X("p", null, ve(Y(t).message), 1)
5187
- ])) : ye("", !0),
5188
- X("header", jl, [
5189
- X("h2", Al, "Discussion (" + ve(c.value) + ")", 1),
5190
- Y(o) ? (D(), G("span", Rl)) : (D(), G("div", Nl, [
5191
- Y(n) && Y(s) ? (D(), G(_e, { key: 0 }, [
5192
- Y(s).picture ? (D(), G("label", Ll, [
5193
- X("div", Ml, [
5191
+ ])) : be("", !0),
5192
+ X("header", Rl, [
5193
+ X("h2", Nl, "Discussion (" + ve(c.value) + ")", 1),
5194
+ Y(o) ? (D(), q("span", Ll)) : (D(), q("div", Ml, [
5195
+ Y(n) && Y(s) ? (D(), q(ye, { key: 0 }, [
5196
+ Y(s).picture ? (D(), q("label", Fl, [
5197
+ X("div", $l, [
5194
5198
  X("img", {
5195
5199
  class: "w-full h-full block",
5196
5200
  alt: Y(s).name || Y(s).email,
5197
5201
  src: Y(s).picture
5198
- }, null, 8, Fl)
5202
+ }, null, 8, Kl)
5199
5203
  ])
5200
- ])) : (D(), G("label", Kl, ve(Y(s).email), 1)),
5201
- X("ul", $l, [
5202
- Y(s).picture ? (D(), G("li", zl, [
5203
- X("span", Ul, ve(Y(s).email), 1)
5204
- ])) : ye("", !0),
5204
+ ])) : (D(), q("label", zl, ve(Y(s).email), 1)),
5205
+ X("ul", Ul, [
5206
+ Y(s).picture ? (D(), q("li", Dl, [
5207
+ X("span", Wl, ve(Y(s).email), 1)
5208
+ ])) : be("", !0),
5205
5209
  X("li", null, [
5206
5210
  X("button", {
5207
5211
  class: "border-0 bg-base-100",
5208
5212
  type: "button",
5209
5213
  disabled: Y(o),
5210
5214
  onClick: l
5211
- }, "Logout", 8, Dl)
5215
+ }, "Logout", 8, Hl)
5212
5216
  ])
5213
5217
  ])
5214
- ], 64)) : (D(), G("button", {
5218
+ ], 64)) : (D(), q("button", {
5215
5219
  key: 1,
5216
5220
  class: "ac-btn ac-btn-secondary ac-btn-xs",
5217
5221
  type: "button",
5218
5222
  disabled: Y(o),
5219
5223
  onClick: a
5220
- }, "Login", 8, Wl))
5224
+ }, "Login", 8, Zl))
5221
5225
  ]))
5222
5226
  ]),
5223
5227
  Oe(ro),
5224
- Oe(Sl)
5228
+ Oe(El)
5225
5229
  ]));
5226
5230
  }
5227
5231
  }), Ps = [];
5228
- let $i = null;
5229
- function Zl(e, t) {
5230
- const n = ya(Hl), o = ka(), s = $i || Fi({
5232
+ let Ki = null;
5233
+ function Xl(e, t) {
5234
+ const n = ya(Vl), o = ka(), s = Ki || Fi({
5231
5235
  domain: e,
5232
5236
  clientId: t,
5233
5237
  authorizationParams: {
@@ -5236,18 +5240,18 @@ function Zl(e, t) {
5236
5240
  });
5237
5241
  return n.use(s), n.use(o), n;
5238
5242
  }
5239
- const Vl = {
5243
+ const Bl = {
5240
5244
  postId: "",
5241
5245
  apiUrl: "",
5242
5246
  domain: "",
5243
5247
  clientId: "",
5244
5248
  init(e, t, n, o, s) {
5245
5249
  t ??= this.postId, n ??= this.apiUrl, o ??= this.domain, s ??= this.clientId;
5246
- const i = Zl(o, s);
5250
+ const i = Xl(o, s);
5247
5251
  i.provide("ApiBaseUrl", n), i.provide("postId", t), i.provide("Auth0Domain", o), i.provide("comments", Ps), i.mount(e);
5248
5252
  },
5249
5253
  async preload(e, t, n, o) {
5250
- this.postId = e, this.apiUrl = t, this.domain = n, this.clientId = o, $i = Fi({
5254
+ this.postId = e, this.apiUrl = t, this.domain = n, this.clientId = o, Ki = Fi({
5251
5255
  domain: n,
5252
5256
  clientId: o,
5253
5257
  authorizationParams: {
@@ -5261,5 +5265,5 @@ const Vl = {
5261
5265
  }
5262
5266
  };
5263
5267
  export {
5264
- Vl as default
5268
+ Bl as default
5265
5269
  };