@paroicms/content-loading-plugin 0.1.2 → 0.3.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.
@@ -1,54 +1,54 @@
1
- const gt = (e, t) => e === t, ge = Symbol("solid-proxy"), Z = {
2
- equals: gt
1
+ const mt = (e, t) => e === t, me = Symbol("solid-proxy"), z = {
2
+ equals: mt
3
3
  };
4
- let Fe = He;
5
- const T = 1, z = 2, je = {
4
+ let je = Xe;
5
+ const T = 1, ee = 2, Be = {
6
6
  owned: null,
7
7
  cleanups: null,
8
8
  context: null,
9
9
  owner: null
10
10
  };
11
11
  var w = null;
12
- let ue = null, mt = null, b = null, R = null, k = null, re = 0;
13
- function Be(e, t) {
14
- const n = b, r = w, o = e.length === 0, i = t === void 0 ? r : t, a = o ? je : {
12
+ let fe = null, yt = null, b = null, R = null, k = null, se = 0;
13
+ function Me(e, t) {
14
+ const n = b, r = w, s = e.length === 0, i = t === void 0 ? r : t, a = s ? Be : {
15
15
  owned: null,
16
16
  cleanups: null,
17
17
  context: i ? i.context : null,
18
18
  owner: i
19
- }, s = o ? e : () => e(() => I(() => oe(a)));
19
+ }, o = s ? e : () => e(() => I(() => oe(a)));
20
20
  w = a, b = null;
21
21
  try {
22
- return N(s, !0);
22
+ return N(o, !0);
23
23
  } finally {
24
24
  b = n, w = r;
25
25
  }
26
26
  }
27
- function x(e, t) {
28
- t = t ? Object.assign({}, Z, t) : Z;
27
+ function P(e, t) {
28
+ t = t ? Object.assign({}, z, t) : z;
29
29
  const n = {
30
30
  value: e,
31
31
  observers: null,
32
32
  observerSlots: null,
33
33
  comparator: t.equals || void 0
34
- }, r = (o) => (typeof o == "function" && (o = o(n.value)), Ke(n, o));
35
- return [Ge.bind(n), r];
34
+ }, r = (s) => (typeof s == "function" && (s = s(n.value)), He(n, s));
35
+ return [Ke.bind(n), r];
36
36
  }
37
37
  function _(e, t, n) {
38
- const r = $e(e, t, !1, T);
39
- H(r);
38
+ const r = Ae(e, t, !1, T);
39
+ K(r);
40
40
  }
41
- function be(e, t, n) {
42
- Fe = St;
43
- const r = $e(e, t, !1, T);
44
- r.user = !0, k ? k.push(r) : H(r);
41
+ function Se(e, t, n) {
42
+ je = $t;
43
+ const r = Ae(e, t, !1, T);
44
+ r.user = !0, k ? k.push(r) : K(r);
45
45
  }
46
46
  function E(e, t, n) {
47
- n = n ? Object.assign({}, Z, n) : Z;
48
- const r = $e(e, t, !0, 0);
49
- return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, H(r), Ge.bind(r);
47
+ n = n ? Object.assign({}, z, n) : z;
48
+ const r = Ae(e, t, !0, 0);
49
+ return r.observers = null, r.observerSlots = null, r.comparator = n.equals || void 0, K(r), Ke.bind(r);
50
50
  }
51
- function yt(e) {
51
+ function wt(e) {
52
52
  return N(e, !1);
53
53
  }
54
54
  function I(e) {
@@ -61,39 +61,39 @@ function I(e) {
61
61
  b = t;
62
62
  }
63
63
  }
64
- function K(e, t, n) {
64
+ function G(e, t, n) {
65
65
  const r = Array.isArray(e);
66
- let o, i = n && n.defer;
66
+ let s, i = n && n.defer;
67
67
  return (a) => {
68
- let s;
68
+ let o;
69
69
  if (r) {
70
- s = Array(e.length);
71
- for (let l = 0; l < e.length; l++) s[l] = e[l]();
72
- } else s = e();
70
+ o = Array(e.length);
71
+ for (let l = 0; l < e.length; l++) o[l] = e[l]();
72
+ } else o = e();
73
73
  if (i)
74
74
  return i = !1, a;
75
- const c = I(() => t(s, o, a));
76
- return o = s, c;
75
+ const c = I(() => t(o, s, a));
76
+ return s = o, c;
77
77
  };
78
78
  }
79
- function Me(e) {
79
+ function De(e) {
80
80
  return w === null || (w.cleanups === null ? w.cleanups = [e] : w.cleanups.push(e)), e;
81
81
  }
82
- function De() {
82
+ function qe() {
83
83
  return w;
84
84
  }
85
- function qe(e, t) {
85
+ function Ve(e, t) {
86
86
  const n = w, r = b;
87
87
  w = e, b = null;
88
88
  try {
89
89
  return N(t, !0);
90
- } catch (o) {
91
- Ae(o);
90
+ } catch (s) {
91
+ Ee(s);
92
92
  } finally {
93
93
  w = n, b = r;
94
94
  }
95
95
  }
96
- function wt(e) {
96
+ function vt(e) {
97
97
  const t = b, n = w;
98
98
  return Promise.resolve().then(() => {
99
99
  b = t, w = n;
@@ -101,31 +101,31 @@ function wt(e) {
101
101
  return N(e, !1), b = w = null, r ? r.done : void 0;
102
102
  });
103
103
  }
104
- function Ve(e, t) {
104
+ function We(e, t) {
105
105
  const n = Symbol("context");
106
106
  return {
107
107
  id: n,
108
- Provider: At(n),
108
+ Provider: Et(n),
109
109
  defaultValue: e
110
110
  };
111
111
  }
112
- function We(e) {
112
+ function Ge(e) {
113
113
  let t;
114
114
  return w && w.context && (t = w.context[e.id]) !== void 0 ? t : e.defaultValue;
115
115
  }
116
- function Se(e) {
117
- const t = E(e), n = E(() => me(t()));
116
+ function $e(e) {
117
+ const t = E(e), n = E(() => ye(t()));
118
118
  return n.toArray = () => {
119
119
  const r = n();
120
120
  return Array.isArray(r) ? r : r != null ? [r] : [];
121
121
  }, n;
122
122
  }
123
- function Ge() {
123
+ function Ke() {
124
124
  if (this.sources && this.state)
125
- if (this.state === T) H(this);
125
+ if (this.state === T) K(this);
126
126
  else {
127
127
  const e = R;
128
- R = null, N(() => te(this), !1), R = e;
128
+ R = null, N(() => ne(this), !1), R = e;
129
129
  }
130
130
  if (b) {
131
131
  const e = this.observers ? this.observers.length : 0;
@@ -133,41 +133,41 @@ function Ge() {
133
133
  }
134
134
  return this.value;
135
135
  }
136
- function Ke(e, t, n) {
136
+ function He(e, t, n) {
137
137
  let r = e.value;
138
138
  return (!e.comparator || !e.comparator(r, t)) && (e.value = t, e.observers && e.observers.length && N(() => {
139
- for (let o = 0; o < e.observers.length; o += 1) {
140
- const i = e.observers[o], a = ue && ue.running;
141
- a && ue.disposed.has(i), (a ? !i.tState : !i.state) && (i.pure ? R.push(i) : k.push(i), i.observers && Xe(i)), a || (i.state = T);
139
+ for (let s = 0; s < e.observers.length; s += 1) {
140
+ const i = e.observers[s], a = fe && fe.running;
141
+ a && fe.disposed.has(i), (a ? !i.tState : !i.state) && (i.pure ? R.push(i) : k.push(i), i.observers && Qe(i)), a || (i.state = T);
142
142
  }
143
143
  if (R.length > 1e6)
144
144
  throw R = [], new Error();
145
145
  }, !1)), t;
146
146
  }
147
- function H(e) {
147
+ function K(e) {
148
148
  if (!e.fn) return;
149
149
  oe(e);
150
- const t = re;
151
- vt(
150
+ const t = se;
151
+ bt(
152
152
  e,
153
153
  e.value,
154
154
  t
155
155
  );
156
156
  }
157
- function vt(e, t, n) {
157
+ function bt(e, t, n) {
158
158
  let r;
159
- const o = w, i = b;
159
+ const s = w, i = b;
160
160
  b = w = e;
161
161
  try {
162
162
  r = e.fn(t);
163
163
  } catch (a) {
164
- return e.pure && (e.state = T, e.owned && e.owned.forEach(oe), e.owned = null), e.updatedAt = n + 1, Ae(a);
164
+ return e.pure && (e.state = T, e.owned && e.owned.forEach(oe), e.owned = null), e.updatedAt = n + 1, Ee(a);
165
165
  } finally {
166
- b = i, w = o;
166
+ b = i, w = s;
167
167
  }
168
- (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? Ke(e, r) : e.value = r, e.updatedAt = n);
168
+ (!e.updatedAt || e.updatedAt <= n) && (e.updatedAt != null && "observers" in e ? He(e, r) : e.value = r, e.updatedAt = n);
169
169
  }
170
- function $e(e, t, n, r = T, o) {
170
+ function Ae(e, t, n, r = T, s) {
171
171
  const i = {
172
172
  fn: e,
173
173
  state: r,
@@ -181,74 +181,74 @@ function $e(e, t, n, r = T, o) {
181
181
  context: w ? w.context : null,
182
182
  pure: n
183
183
  };
184
- return w === null || w !== je && (w.owned ? w.owned.push(i) : w.owned = [i]), i;
184
+ return w === null || w !== Be && (w.owned ? w.owned.push(i) : w.owned = [i]), i;
185
185
  }
186
- function ee(e) {
186
+ function te(e) {
187
187
  if (e.state === 0) return;
188
- if (e.state === z) return te(e);
188
+ if (e.state === ee) return ne(e);
189
189
  if (e.suspense && I(e.suspense.inFallback)) return e.suspense.effects.push(e);
190
190
  const t = [e];
191
- for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < re); )
191
+ for (; (e = e.owner) && (!e.updatedAt || e.updatedAt < se); )
192
192
  e.state && t.push(e);
193
193
  for (let n = t.length - 1; n >= 0; n--)
194
194
  if (e = t[n], e.state === T)
195
- H(e);
196
- else if (e.state === z) {
195
+ K(e);
196
+ else if (e.state === ee) {
197
197
  const r = R;
198
- R = null, N(() => te(e, t[0]), !1), R = r;
198
+ R = null, N(() => ne(e, t[0]), !1), R = r;
199
199
  }
200
200
  }
201
201
  function N(e, t) {
202
202
  if (R) return e();
203
203
  let n = !1;
204
- t || (R = []), k ? n = !0 : k = [], re++;
204
+ t || (R = []), k ? n = !0 : k = [], se++;
205
205
  try {
206
206
  const r = e();
207
- return bt(n), r;
207
+ return St(n), r;
208
208
  } catch (r) {
209
- n || (k = null), R = null, Ae(r);
209
+ n || (k = null), R = null, Ee(r);
210
210
  }
211
211
  }
212
- function bt(e) {
213
- if (R && (He(R), R = null), e) return;
212
+ function St(e) {
213
+ if (R && (Xe(R), R = null), e) return;
214
214
  const t = k;
215
- k = null, t.length && N(() => Fe(t), !1);
215
+ k = null, t.length && N(() => je(t), !1);
216
216
  }
217
- function He(e) {
218
- for (let t = 0; t < e.length; t++) ee(e[t]);
217
+ function Xe(e) {
218
+ for (let t = 0; t < e.length; t++) te(e[t]);
219
219
  }
220
- function St(e) {
220
+ function $t(e) {
221
221
  let t, n = 0;
222
222
  for (t = 0; t < e.length; t++) {
223
223
  const r = e[t];
224
- r.user ? e[n++] = r : ee(r);
224
+ r.user ? e[n++] = r : te(r);
225
225
  }
226
- for (t = 0; t < n; t++) ee(e[t]);
226
+ for (t = 0; t < n; t++) te(e[t]);
227
227
  }
228
- function te(e, t) {
228
+ function ne(e, t) {
229
229
  e.state = 0;
230
230
  for (let n = 0; n < e.sources.length; n += 1) {
231
231
  const r = e.sources[n];
232
232
  if (r.sources) {
233
- const o = r.state;
234
- o === T ? r !== t && (!r.updatedAt || r.updatedAt < re) && ee(r) : o === z && te(r, t);
233
+ const s = r.state;
234
+ s === T ? r !== t && (!r.updatedAt || r.updatedAt < se) && te(r) : s === ee && ne(r, t);
235
235
  }
236
236
  }
237
237
  }
238
- function Xe(e) {
238
+ function Qe(e) {
239
239
  for (let t = 0; t < e.observers.length; t += 1) {
240
240
  const n = e.observers[t];
241
- n.state || (n.state = z, n.pure ? R.push(n) : k.push(n), n.observers && Xe(n));
241
+ n.state || (n.state = ee, n.pure ? R.push(n) : k.push(n), n.observers && Qe(n));
242
242
  }
243
243
  }
244
244
  function oe(e) {
245
245
  let t;
246
246
  if (e.sources)
247
247
  for (; e.sources.length; ) {
248
- const n = e.sources.pop(), r = e.sourceSlots.pop(), o = n.observers;
249
- if (o && o.length) {
250
- const i = o.pop(), a = n.observerSlots.pop();
251
- r < o.length && (i.sourceSlots[a] = r, o[r] = i, n.observerSlots[r] = a);
248
+ const n = e.sources.pop(), r = e.sourceSlots.pop(), s = n.observers;
249
+ if (s && s.length) {
250
+ const i = s.pop(), a = n.observerSlots.pop();
251
+ r < s.length && (i.sourceSlots[a] = r, s[r] = i, n.observerSlots[r] = a);
252
252
  }
253
253
  }
254
254
  if (e.owned) {
@@ -261,36 +261,36 @@ function oe(e) {
261
261
  }
262
262
  e.state = 0;
263
263
  }
264
- function $t(e) {
264
+ function At(e) {
265
265
  return e instanceof Error ? e : new Error(typeof e == "string" ? e : "Unknown error", {
266
266
  cause: e
267
267
  });
268
268
  }
269
- function Ae(e, t = w) {
270
- throw $t(e);
269
+ function Ee(e, t = w) {
270
+ throw At(e);
271
271
  }
272
- function me(e) {
273
- if (typeof e == "function" && !e.length) return me(e());
272
+ function ye(e) {
273
+ if (typeof e == "function" && !e.length) return ye(e());
274
274
  if (Array.isArray(e)) {
275
275
  const t = [];
276
276
  for (let n = 0; n < e.length; n++) {
277
- const r = me(e[n]);
277
+ const r = ye(e[n]);
278
278
  Array.isArray(r) ? t.push.apply(t, r) : t.push(r);
279
279
  }
280
280
  return t;
281
281
  }
282
282
  return e;
283
283
  }
284
- function At(e, t) {
284
+ function Et(e, t) {
285
285
  return function(r) {
286
- let o;
286
+ let s;
287
287
  return _(
288
- () => o = I(() => (w.context = {
288
+ () => s = I(() => (w.context = {
289
289
  ...w.context,
290
290
  [e]: r.value
291
- }, Se(() => r.children))),
291
+ }, $e(() => r.children))),
292
292
  void 0
293
- ), o;
293
+ ), s;
294
294
  };
295
295
  }
296
296
  function A(e, t) {
@@ -299,12 +299,12 @@ function A(e, t) {
299
299
  function Q() {
300
300
  return !0;
301
301
  }
302
- const Et = {
302
+ const Rt = {
303
303
  get(e, t, n) {
304
- return t === ge ? n : e.get(t);
304
+ return t === me ? n : e.get(t);
305
305
  },
306
306
  has(e, t) {
307
- return t === ge ? !0 : e.has(t);
307
+ return t === me ? !0 : e.has(t);
308
308
  },
309
309
  set: Q,
310
310
  deleteProperty: Q,
@@ -323,10 +323,10 @@ const Et = {
323
323
  return e.keys();
324
324
  }
325
325
  };
326
- function fe(e) {
326
+ function he(e) {
327
327
  return (e = typeof e == "function" ? e() : e) ? e : {};
328
328
  }
329
- function Rt() {
329
+ function xt() {
330
330
  for (let e = 0, t = this.length; e < t; ++e) {
331
331
  const n = this[e]();
332
332
  if (n !== void 0) return n;
@@ -335,78 +335,78 @@ function Rt() {
335
335
  function Ct(...e) {
336
336
  let t = !1;
337
337
  for (let a = 0; a < e.length; a++) {
338
- const s = e[a];
339
- t = t || !!s && ge in s, e[a] = typeof s == "function" ? (t = !0, E(s)) : s;
338
+ const o = e[a];
339
+ t = t || !!o && me in o, e[a] = typeof o == "function" ? (t = !0, E(o)) : o;
340
340
  }
341
341
  if (t)
342
342
  return new Proxy(
343
343
  {
344
344
  get(a) {
345
- for (let s = e.length - 1; s >= 0; s--) {
346
- const c = fe(e[s])[a];
345
+ for (let o = e.length - 1; o >= 0; o--) {
346
+ const c = he(e[o])[a];
347
347
  if (c !== void 0) return c;
348
348
  }
349
349
  },
350
350
  has(a) {
351
- for (let s = e.length - 1; s >= 0; s--)
352
- if (a in fe(e[s])) return !0;
351
+ for (let o = e.length - 1; o >= 0; o--)
352
+ if (a in he(e[o])) return !0;
353
353
  return !1;
354
354
  },
355
355
  keys() {
356
356
  const a = [];
357
- for (let s = 0; s < e.length; s++)
358
- a.push(...Object.keys(fe(e[s])));
357
+ for (let o = 0; o < e.length; o++)
358
+ a.push(...Object.keys(he(e[o])));
359
359
  return [...new Set(a)];
360
360
  }
361
361
  },
362
- Et
362
+ Rt
363
363
  );
364
364
  const n = {}, r = /* @__PURE__ */ Object.create(null);
365
365
  for (let a = e.length - 1; a >= 0; a--) {
366
- const s = e[a];
367
- if (!s) continue;
368
- const c = Object.getOwnPropertyNames(s);
366
+ const o = e[a];
367
+ if (!o) continue;
368
+ const c = Object.getOwnPropertyNames(o);
369
369
  for (let l = c.length - 1; l >= 0; l--) {
370
370
  const u = c[l];
371
371
  if (u === "__proto__" || u === "constructor") continue;
372
- const h = Object.getOwnPropertyDescriptor(s, u);
372
+ const h = Object.getOwnPropertyDescriptor(o, u);
373
373
  if (!r[u])
374
374
  r[u] = h.get ? {
375
375
  enumerable: !0,
376
376
  configurable: !0,
377
- get: Rt.bind(n[u] = [h.get.bind(s)])
377
+ get: xt.bind(n[u] = [h.get.bind(o)])
378
378
  } : h.value !== void 0 ? h : void 0;
379
379
  else {
380
380
  const p = n[u];
381
- p && (h.get ? p.push(h.get.bind(s)) : h.value !== void 0 && p.push(() => h.value));
381
+ p && (h.get ? p.push(h.get.bind(o)) : h.value !== void 0 && p.push(() => h.value));
382
382
  }
383
383
  }
384
384
  }
385
- const o = {}, i = Object.keys(r);
385
+ const s = {}, i = Object.keys(r);
386
386
  for (let a = i.length - 1; a >= 0; a--) {
387
- const s = i[a], c = r[s];
388
- c && c.get ? Object.defineProperty(o, s, c) : o[s] = c ? c.value : void 0;
387
+ const o = i[a], c = r[o];
388
+ c && c.get ? Object.defineProperty(s, o, c) : s[o] = c ? c.value : void 0;
389
389
  }
390
- return o;
390
+ return s;
391
391
  }
392
392
  const Lt = (e) => `Stale read from <${e}>.`;
393
- function q(e) {
393
+ function D(e) {
394
394
  const t = e.keyed, n = E(() => e.when, void 0, {
395
- equals: (r, o) => t ? r === o : !r == !o
395
+ equals: (r, s) => t ? r === s : !r == !s
396
396
  });
397
397
  return E(
398
398
  () => {
399
399
  const r = n();
400
400
  if (r) {
401
- const o = e.children;
402
- return typeof o == "function" && o.length > 0 ? I(
403
- () => o(
401
+ const s = e.children;
402
+ return typeof s == "function" && s.length > 0 ? I(
403
+ () => s(
404
404
  t ? r : () => {
405
405
  if (!I(n)) throw Lt("Show");
406
406
  return e.when;
407
407
  }
408
408
  )
409
- ) : o;
409
+ ) : s;
410
410
  }
411
411
  return e.fallback;
412
412
  },
@@ -415,82 +415,82 @@ function q(e) {
415
415
  );
416
416
  }
417
417
  function Pt(e, t, n) {
418
- let r = n.length, o = t.length, i = r, a = 0, s = 0, c = t[o - 1].nextSibling, l = null;
419
- for (; a < o || s < i; ) {
420
- if (t[a] === n[s]) {
421
- a++, s++;
418
+ let r = n.length, s = t.length, i = r, a = 0, o = 0, c = t[s - 1].nextSibling, l = null;
419
+ for (; a < s || o < i; ) {
420
+ if (t[a] === n[o]) {
421
+ a++, o++;
422
422
  continue;
423
423
  }
424
- for (; t[o - 1] === n[i - 1]; )
425
- o--, i--;
426
- if (o === a) {
427
- const u = i < r ? s ? n[s - 1].nextSibling : n[i - s] : c;
428
- for (; s < i; ) e.insertBefore(n[s++], u);
429
- } else if (i === s)
430
- for (; a < o; )
424
+ for (; t[s - 1] === n[i - 1]; )
425
+ s--, i--;
426
+ if (s === a) {
427
+ const u = i < r ? o ? n[o - 1].nextSibling : n[i - o] : c;
428
+ for (; o < i; ) e.insertBefore(n[o++], u);
429
+ } else if (i === o)
430
+ for (; a < s; )
431
431
  (!l || !l.has(t[a])) && t[a].remove(), a++;
432
- else if (t[a] === n[i - 1] && n[s] === t[o - 1]) {
433
- const u = t[--o].nextSibling;
434
- e.insertBefore(n[s++], t[a++].nextSibling), e.insertBefore(n[--i], u), t[o] = n[i];
432
+ else if (t[a] === n[i - 1] && n[o] === t[s - 1]) {
433
+ const u = t[--s].nextSibling;
434
+ e.insertBefore(n[o++], t[a++].nextSibling), e.insertBefore(n[--i], u), t[s] = n[i];
435
435
  } else {
436
436
  if (!l) {
437
437
  l = /* @__PURE__ */ new Map();
438
- let h = s;
438
+ let h = o;
439
439
  for (; h < i; ) l.set(n[h], h++);
440
440
  }
441
441
  const u = l.get(t[a]);
442
442
  if (u != null)
443
- if (s < u && u < i) {
443
+ if (o < u && u < i) {
444
444
  let h = a, p = 1, m;
445
- for (; ++h < o && h < i && !((m = l.get(t[h])) == null || m !== u + p); )
445
+ for (; ++h < s && h < i && !((m = l.get(t[h])) == null || m !== u + p); )
446
446
  p++;
447
- if (p > u - s) {
447
+ if (p > u - o) {
448
448
  const y = t[a];
449
- for (; s < u; ) e.insertBefore(n[s++], y);
450
- } else e.replaceChild(n[s++], t[a++]);
449
+ for (; o < u; ) e.insertBefore(n[o++], y);
450
+ } else e.replaceChild(n[o++], t[a++]);
451
451
  } else a++;
452
452
  else t[a++].remove();
453
453
  }
454
454
  }
455
455
  }
456
- const xe = "_$DX_DELEGATE";
457
- function Ee(e, t, n, r = {}) {
458
- let o;
459
- return Be((i) => {
460
- o = i, t === document ? e() : P(t, e(), t.firstChild ? null : void 0, n);
456
+ const _e = "_$DX_DELEGATE";
457
+ function Re(e, t, n, r = {}) {
458
+ let s;
459
+ return Me((i) => {
460
+ s = i, t === document ? e() : L(t, e(), t.firstChild ? null : void 0, n);
461
461
  }, r.owner), () => {
462
- o(), t.textContent = "";
462
+ s(), t.textContent = "";
463
463
  };
464
464
  }
465
- function C(e, t, n) {
465
+ function x(e, t, n) {
466
466
  let r;
467
- const o = () => {
467
+ const s = () => {
468
468
  const a = document.createElement("template");
469
469
  return a.innerHTML = e, a.content.firstChild;
470
- }, i = () => (r || (r = o())).cloneNode(!0);
470
+ }, i = () => (r || (r = s())).cloneNode(!0);
471
471
  return i.cloneNode = i, i;
472
472
  }
473
- function se(e, t = window.document) {
474
- const n = t[xe] || (t[xe] = /* @__PURE__ */ new Set());
475
- for (let r = 0, o = e.length; r < o; r++) {
473
+ function ie(e, t = window.document) {
474
+ const n = t[_e] || (t[_e] = /* @__PURE__ */ new Set());
475
+ for (let r = 0, s = e.length; r < s; r++) {
476
476
  const i = e[r];
477
- n.has(i) || (n.add(i), t.addEventListener(i, Ot));
477
+ n.has(i) || (n.add(i), t.addEventListener(i, _t));
478
478
  }
479
479
  }
480
- function ie(e, t, n) {
480
+ function ae(e, t, n) {
481
481
  n == null ? e.removeAttribute(t) : e.setAttribute(t, n);
482
482
  }
483
- function Qe(e, t) {
483
+ function Je(e, t) {
484
484
  t == null ? e.removeAttribute("class") : e.className = t;
485
485
  }
486
- function xt(e, t, n) {
486
+ function Ot(e, t, n) {
487
487
  return I(() => e(t, n));
488
488
  }
489
- function P(e, t, n, r) {
490
- if (n !== void 0 && !r && (r = []), typeof t != "function") return ne(e, t, r, n);
491
- _((o) => ne(e, t(), o, n), r);
489
+ function L(e, t, n, r) {
490
+ if (n !== void 0 && !r && (r = []), typeof t != "function") return re(e, t, r, n);
491
+ _((s) => re(e, t(), s, n), r);
492
492
  }
493
- function Ot(e) {
493
+ function _t(e) {
494
494
  const t = `$$${e.type}`;
495
495
  let n = e.composedPath && e.composedPath()[0] || e.target;
496
496
  for (e.target !== n && Object.defineProperty(e, "target", {
@@ -504,13 +504,13 @@ function Ot(e) {
504
504
  }); n; ) {
505
505
  const r = n[t];
506
506
  if (r && !n.disabled) {
507
- const o = n[`${t}Data`];
508
- if (o !== void 0 ? r.call(n, o, e) : r.call(n, e), e.cancelBubble) return;
507
+ const s = n[`${t}Data`];
508
+ if (s !== void 0 ? r.call(n, s, e) : r.call(n, e), e.cancelBubble) return;
509
509
  }
510
510
  n = n._$host || n.parentNode || n.host;
511
511
  }
512
512
  }
513
- function ne(e, t, n, r, o) {
513
+ function re(e, t, n, r, s) {
514
514
  for (; typeof n == "function"; ) n = n();
515
515
  if (t === n) return n;
516
516
  const i = typeof t, a = r !== void 0;
@@ -518,264 +518,273 @@ function ne(e, t, n, r, o) {
518
518
  if (i === "number" && (t = t.toString(), t === n))
519
519
  return n;
520
520
  if (a) {
521
- let s = n[0];
522
- s && s.nodeType === 3 ? s.data !== t && (s.data = t) : s = document.createTextNode(t), n = D(e, n, r, s);
521
+ let o = n[0];
522
+ o && o.nodeType === 3 ? o.data !== t && (o.data = t) : o = document.createTextNode(t), n = M(e, n, r, o);
523
523
  } else
524
524
  n !== "" && typeof n == "string" ? n = e.firstChild.data = t : n = e.textContent = t;
525
525
  } else if (t == null || i === "boolean")
526
- n = D(e, n, r);
526
+ n = M(e, n, r);
527
527
  else {
528
528
  if (i === "function")
529
529
  return _(() => {
530
- let s = t();
531
- for (; typeof s == "function"; ) s = s();
532
- n = ne(e, s, n, r);
530
+ let o = t();
531
+ for (; typeof o == "function"; ) o = o();
532
+ n = re(e, o, n, r);
533
533
  }), () => n;
534
534
  if (Array.isArray(t)) {
535
- const s = [], c = n && Array.isArray(n);
536
- if (ye(s, t, n, o))
537
- return _(() => n = ne(e, s, n, r, !0)), () => n;
538
- if (s.length === 0) {
539
- if (n = D(e, n, r), a) return n;
540
- } else c ? n.length === 0 ? Oe(e, s, r) : Pt(e, n, s) : (n && D(e), Oe(e, s));
541
- n = s;
535
+ const o = [], c = n && Array.isArray(n);
536
+ if (we(o, t, n, s))
537
+ return _(() => n = re(e, o, n, r, !0)), () => n;
538
+ if (o.length === 0) {
539
+ if (n = M(e, n, r), a) return n;
540
+ } else c ? n.length === 0 ? Ie(e, o, r) : Pt(e, n, o) : (n && M(e), Ie(e, o));
541
+ n = o;
542
542
  } else if (t.nodeType) {
543
543
  if (Array.isArray(n)) {
544
- if (a) return n = D(e, n, r, t);
545
- D(e, n, null, t);
544
+ if (a) return n = M(e, n, r, t);
545
+ M(e, n, null, t);
546
546
  } else n == null || n === "" || !e.firstChild ? e.appendChild(t) : e.replaceChild(t, e.firstChild);
547
547
  n = t;
548
548
  }
549
549
  }
550
550
  return n;
551
551
  }
552
- function ye(e, t, n, r) {
553
- let o = !1;
552
+ function we(e, t, n, r) {
553
+ let s = !1;
554
554
  for (let i = 0, a = t.length; i < a; i++) {
555
- let s = t[i], c = n && n[e.length], l;
556
- if (!(s == null || s === !0 || s === !1)) if ((l = typeof s) == "object" && s.nodeType)
557
- e.push(s);
558
- else if (Array.isArray(s))
559
- o = ye(e, s, c) || o;
555
+ let o = t[i], c = n && n[e.length], l;
556
+ if (!(o == null || o === !0 || o === !1)) if ((l = typeof o) == "object" && o.nodeType)
557
+ e.push(o);
558
+ else if (Array.isArray(o))
559
+ s = we(e, o, c) || s;
560
560
  else if (l === "function")
561
561
  if (r) {
562
- for (; typeof s == "function"; ) s = s();
563
- o = ye(
562
+ for (; typeof o == "function"; ) o = o();
563
+ s = we(
564
564
  e,
565
- Array.isArray(s) ? s : [s],
565
+ Array.isArray(o) ? o : [o],
566
566
  Array.isArray(c) ? c : [c]
567
- ) || o;
567
+ ) || s;
568
568
  } else
569
- e.push(s), o = !0;
569
+ e.push(o), s = !0;
570
570
  else {
571
- const u = String(s);
571
+ const u = String(o);
572
572
  c && c.nodeType === 3 && c.data === u ? e.push(c) : e.push(document.createTextNode(u));
573
573
  }
574
574
  }
575
- return o;
575
+ return s;
576
576
  }
577
- function Oe(e, t, n = null) {
578
- for (let r = 0, o = t.length; r < o; r++) e.insertBefore(t[r], n);
577
+ function Ie(e, t, n = null) {
578
+ for (let r = 0, s = t.length; r < s; r++) e.insertBefore(t[r], n);
579
579
  }
580
- function D(e, t, n, r) {
580
+ function M(e, t, n, r) {
581
581
  if (n === void 0) return e.textContent = "";
582
- const o = r || document.createTextNode("");
582
+ const s = r || document.createTextNode("");
583
583
  if (t.length) {
584
584
  let i = !1;
585
585
  for (let a = t.length - 1; a >= 0; a--) {
586
- const s = t[a];
587
- if (o !== s) {
588
- const c = s.parentNode === e;
589
- !i && !a ? c ? e.replaceChild(o, s) : e.insertBefore(o, n) : c && s.remove();
586
+ const o = t[a];
587
+ if (s !== o) {
588
+ const c = o.parentNode === e;
589
+ !i && !a ? c ? e.replaceChild(s, o) : e.insertBefore(s, n) : c && o.remove();
590
590
  } else i = !0;
591
591
  }
592
- } else e.insertBefore(o, n);
593
- return [o];
592
+ } else e.insertBefore(s, n);
593
+ return [s];
594
594
  }
595
- const _t = !1;
596
- function we(e) {
595
+ const It = !1;
596
+ function ve(e) {
597
597
  return e.varName ? ` for '${e.varName}'` : "";
598
598
  }
599
- function It(e) {
599
+ function Ut(e) {
600
600
  return (
601
601
  // use type coercion to parse the _entirety_ of the string (`parseFloat` alone does not do this)...
602
602
  !isNaN(e) && !isNaN(parseFloat(e))
603
603
  );
604
604
  }
605
- function Ut(e, t = {}) {
605
+ function kt(e, t = {}) {
606
606
  if (e == null || e === "" && !t.allowEmpty)
607
- throw new Error(`Missing string value${we(t)}`);
607
+ throw new Error(`Missing string value${ve(t)}`);
608
608
  return typeof e == "string" ? e : e.toString();
609
609
  }
610
- function W(e, t = {}) {
611
- return e == null || e === "" && !t.allowEmpty ? void 0 : Ut(e, t);
610
+ function J(e, t = {}) {
611
+ return e == null || e === "" && !t.allowEmpty ? void 0 : kt(e, t);
612
612
  }
613
- function kt(e, t = {}) {
613
+ function Tt(e, t = {}) {
614
614
  if (typeof e == "number")
615
615
  return e;
616
616
  if (e == null)
617
- throw new Error(`Missing number value${we(t)}`);
618
- if (typeof e == "string" && It(e))
617
+ throw new Error(`Missing number value${ve(t)}`);
618
+ if (typeof e == "string" && Ut(e))
619
619
  return Number(e);
620
- throw new Error(`Cannot convert to number the value of type '${typeof e}'${we(t)}`);
620
+ throw new Error(`Cannot convert to number the value of type '${typeof e}'${ve(t)}`);
621
621
  }
622
- function J(e, t = {}) {
623
- return e == null ? void 0 : kt(e, t);
622
+ function Y(e, t = {}) {
623
+ return e == null ? void 0 : Tt(e, t);
624
624
  }
625
- const _e = W(void 0, { varName: "VITE_API_PORT" }), Je = _e ? `//${document.location.hostname}:${_e}/api/plugin/content-loading` : `//${document.location.host}/api/plugin/content-loading`, Ye = "/assets/plugin/content-loading/0.1.1";
626
- async function Tt(e) {
627
- const t = `${Je}${e}`, n = await fetch(t);
625
+ function Nt(e) {
626
+ let t = e;
627
+ const n = t.indexOf("?");
628
+ n !== -1 && (t = t.substring(0, n));
629
+ const r = t.indexOf("#");
630
+ r !== -1 && (t = t.substring(0, r));
631
+ const s = t.lastIndexOf("/");
632
+ return s === -1 ? void 0 : t.slice(0, s);
633
+ }
634
+ const Ye = "/api/plugin/content-loading", Ze = Nt(import.meta.url);
635
+ async function Ft(e) {
636
+ const t = `${Ye}${e}`, n = await fetch(t);
628
637
  if (n.status !== 200) throw new Error(`api error ${n.status}`);
629
638
  return await n.text();
630
639
  }
631
- var Ze = (e) => e != null && (e = Object.getPrototypeOf(e), e === Array.prototype || e === Object.prototype);
632
- function ze(e, t, n) {
633
- for (const [r, o] of Object.entries(t)) {
640
+ var ze = (e) => e != null && (e = Object.getPrototypeOf(e), e === Array.prototype || e === Object.prototype);
641
+ function et(e, t, n) {
642
+ for (const [r, s] of Object.entries(t)) {
634
643
  const i = `${n}.${r}`;
635
- e[i] = o, Ze(o) && ze(e, o, i);
644
+ e[i] = s, ze(s) && et(e, s, i);
636
645
  }
637
646
  }
638
- function Nt(e) {
647
+ function jt(e) {
639
648
  const t = { ...e };
640
649
  for (const [n, r] of Object.entries(e))
641
- Ze(r) && ze(t, r, n);
650
+ ze(r) && et(t, r, n);
642
651
  return t;
643
652
  }
644
- var Ft = (e, t) => {
653
+ var Bt = (e, t) => {
645
654
  if (t)
646
655
  for (const [n, r] of Object.entries(t))
647
656
  e = e.replace(new RegExp(`{{\\s*${n}\\s*}}`, "g"), r);
648
657
  return e;
649
- }, jt = (e) => e;
650
- function Bt(e, t = jt) {
658
+ }, Mt = (e) => e;
659
+ function Dt(e, t = Mt) {
651
660
  return (n, ...r) => {
652
661
  n[0] === "." && (n = n.slice(1));
653
- const o = e()?.[n];
654
- switch (typeof o) {
662
+ const s = e()?.[n];
663
+ switch (typeof s) {
655
664
  case "function":
656
- return o(...r);
665
+ return s(...r);
657
666
  case "string":
658
- return t(o, r[0]);
667
+ return t(s, r[0]);
659
668
  default:
660
- return o;
669
+ return s;
661
670
  }
662
671
  };
663
672
  }
664
- const Mt = {
673
+ const qt = {
665
674
  nothingGet: "No results found for",
666
675
  search: "Search"
667
- }, Dt = {
668
- loadMore: "Load more"
669
- }, qt = {
670
- searchApp: Mt,
671
- infiniteLoading: Dt
672
676
  }, Vt = {
677
+ loadMore: "Load more"
678
+ }, Wt = {
679
+ searchApp: qt,
680
+ infiniteLoading: Vt
681
+ }, Gt = {
673
682
  nothingGet: "Aucun résultat trouvé pour",
674
683
  search: "Rechercher"
675
- }, Wt = {
684
+ }, Kt = {
676
685
  loadMore: "Charger la suite"
677
- }, Gt = {
678
- searchApp: Vt,
679
- infiniteLoading: Wt
680
- }, Ie = { en: qt, fr: Gt };
681
- function ae(e) {
686
+ }, Ht = {
687
+ searchApp: Gt,
688
+ infiniteLoading: Kt
689
+ }, Ue = { en: Wt, fr: Ht };
690
+ function le(e) {
682
691
  const t = E(() => {
683
- const r = e in Ie ? e : "en";
684
- return Nt(Ie[r]);
692
+ const r = e in Ue ? e : "en";
693
+ return jt(Ue[r]);
685
694
  });
686
- return { t: Bt(t, Ft) };
695
+ return { t: Dt(t, Bt) };
687
696
  }
688
- var Kt = /* @__PURE__ */ C("<button class=InfiniteLoading-btn type=button>"), Ht = /* @__PURE__ */ C("<div class=InfiniteLoading-actionArea>"), Xt = /* @__PURE__ */ C("<img class=InfiniteLoading-spinner width=50 height=50 alt=…>");
689
- function Qt(e, {
697
+ var Xt = /* @__PURE__ */ x("<button class=InfiniteLoading-btn type=button>"), Qt = /* @__PURE__ */ x("<div class=InfiniteLoading-actionArea>"), Jt = /* @__PURE__ */ x("<img class=InfiniteLoading-spinner width=50 height=50 alt=…>");
698
+ function Yt(e, {
690
699
  language: t
691
700
  }) {
692
- const n = J(e.dataset.start), r = J(e.dataset.total), o = J(e.dataset.limit), i = W(e.dataset.parentId), a = W(e.dataset.template), s = W(e.dataset.labeledById);
693
- if (!(n === void 0 || r === void 0 || i === void 0 || o === void 0 || a === void 0)) {
701
+ const n = Y(e.dataset.start), r = Y(e.dataset.total), s = Y(e.dataset.limit), i = J(e.dataset.parentId), a = J(e.dataset.template), o = J(e.dataset.labeledById);
702
+ if (!(n === void 0 || r === void 0 || i === void 0 || s === void 0 || a === void 0)) {
694
703
  if (!t) throw new Error("Missing language");
695
- Jt({
704
+ Zt({
696
705
  language: t,
697
- limit: o,
706
+ limit: s,
698
707
  parentId: i,
699
708
  root: e,
700
709
  start: n,
701
710
  total: r,
702
711
  templateName: a,
703
- labeledById: s
712
+ labeledById: o
704
713
  });
705
714
  }
706
715
  }
707
- function Jt({
716
+ function Zt({
708
717
  language: e,
709
718
  limit: t,
710
719
  root: n,
711
720
  start: r,
712
- total: o,
721
+ total: s,
713
722
  parentId: i,
714
723
  templateName: a,
715
- labeledById: s
724
+ labeledById: o
716
725
  }) {
717
726
  const {
718
727
  t: c
719
- } = ae(e);
728
+ } = le(e);
720
729
  let l = r;
721
- if (l >= o) return;
730
+ if (l >= s) return;
722
731
  const u = (() => {
723
- var y = Kt();
724
- return y.$$click = m, P(y, () => c("infiniteLoading.loadMore")), y;
732
+ var y = Xt();
733
+ return y.$$click = m, L(y, () => c("infiniteLoading.loadMore")), y;
725
734
  })(), h = (() => {
726
- var y = Ht();
727
- return P(y, u), y;
735
+ var y = Qt();
736
+ return L(y, u), y;
728
737
  })(), p = (() => {
729
- var y = Xt();
730
- return ie(y, "src", `${Ye}/spinner.svg`), y;
738
+ var y = Jt();
739
+ return ae(y, "src", `${Ze}/spinner.svg`), y;
731
740
  })();
732
741
  n.appendChild(h);
733
742
  async function m() {
734
743
  n.appendChild(p);
735
- const y = await Yt({
744
+ const y = await zt({
736
745
  limit: t,
737
746
  newStart: l,
738
747
  parentId: i,
739
748
  templateName: a,
740
- labeledById: s
749
+ labeledById: o
741
750
  });
742
751
  for (const f of y)
743
752
  n.insertBefore(f, h);
744
- l += t, l >= o && h.remove(), p.remove();
753
+ l += t, l >= s && h.remove(), p.remove();
745
754
  }
746
755
  }
747
- async function Yt({
756
+ async function zt({
748
757
  limit: e,
749
758
  newStart: t,
750
759
  parentId: n,
751
760
  templateName: r,
752
- labeledById: o
761
+ labeledById: s
753
762
  }) {
754
- const i = o ? `?labeled=${encodeURIComponent(o)}` : "", a = `/partials?templateName=${encodeURIComponent(r)}&children-of=${encodeURIComponent(n)}&start=${encodeURIComponent(t)}&limit=${encodeURIComponent(e)}${i}`, s = await Tt(a), c = document.createElement("div");
755
- return c.innerHTML = s, [...c.children];
763
+ const i = s ? `?labeled=${encodeURIComponent(s)}` : "", a = `/partials?templateName=${encodeURIComponent(r)}&children-of=${encodeURIComponent(n)}&start=${encodeURIComponent(t)}&limit=${encodeURIComponent(e)}${i}`, o = await Ft(a), c = document.createElement("div");
764
+ return c.innerHTML = o, [...c.children];
756
765
  }
757
- se(["click"]);
758
- function et() {
766
+ ie(["click"]);
767
+ function tt() {
759
768
  let e = /* @__PURE__ */ new Set();
760
- function t(o) {
761
- return e.add(o), () => e.delete(o);
769
+ function t(s) {
770
+ return e.add(s), () => e.delete(s);
762
771
  }
763
772
  let n = !1;
764
- function r(o, i) {
773
+ function r(s, i) {
765
774
  if (n)
766
775
  return !(n = !1);
767
776
  const a = {
768
- to: o,
777
+ to: s,
769
778
  options: i,
770
779
  defaultPrevented: !1,
771
780
  preventDefault: () => a.defaultPrevented = !0
772
781
  };
773
- for (const s of e)
774
- s.listener({
782
+ for (const o of e)
783
+ o.listener({
775
784
  ...a,
776
- from: s.location,
785
+ from: o.location,
777
786
  retry: (c) => {
778
- c && (n = !0), s.navigate(o, { ...i, resolve: !1 });
787
+ c && (n = !0), o.navigate(s, { ...i, resolve: !1 });
779
788
  }
780
789
  });
781
790
  return !a.defaultPrevented;
@@ -785,61 +794,61 @@ function et() {
785
794
  confirm: r
786
795
  };
787
796
  }
788
- let ve;
789
- function Re() {
790
- (!window.history.state || window.history.state._depth == null) && window.history.replaceState({ ...window.history.state, _depth: window.history.length - 1 }, ""), ve = window.history.state._depth;
797
+ let be;
798
+ function xe() {
799
+ (!window.history.state || window.history.state._depth == null) && window.history.replaceState({ ...window.history.state, _depth: window.history.length - 1 }, ""), be = window.history.state._depth;
791
800
  }
792
- Re();
793
- function Zt(e) {
801
+ xe();
802
+ function en(e) {
794
803
  return {
795
804
  ...e,
796
805
  _depth: window.history.state && window.history.state._depth
797
806
  };
798
807
  }
799
- function zt(e, t) {
808
+ function tn(e, t) {
800
809
  let n = !1;
801
810
  return () => {
802
- const r = ve;
803
- Re();
804
- const o = r == null ? null : ve - r;
811
+ const r = be;
812
+ xe();
813
+ const s = r == null ? null : be - r;
805
814
  if (n) {
806
815
  n = !1;
807
816
  return;
808
817
  }
809
- o && t(o) ? (n = !0, window.history.go(-o)) : e();
818
+ s && t(s) ? (n = !0, window.history.go(-s)) : e();
810
819
  };
811
820
  }
812
- const en = /^(?:[a-z0-9]+:)?\/\//i, tn = /^\/+|(\/)\/+$/g, tt = "http://sr";
813
- function G(e, t = !1) {
814
- const n = e.replace(tn, "$1");
821
+ const nn = /^(?:[a-z0-9]+:)?\/\//i, rn = /^\/+|(\/)\/+$/g, nt = "http://sr";
822
+ function W(e, t = !1) {
823
+ const n = e.replace(rn, "$1");
815
824
  return n ? t || /^[?#]/.test(n) ? n : "/" + n : "";
816
825
  }
817
- function Y(e, t, n) {
818
- if (en.test(t))
826
+ function Z(e, t, n) {
827
+ if (nn.test(t))
819
828
  return;
820
- const r = G(e), o = n && G(n);
829
+ const r = W(e), s = n && W(n);
821
830
  let i = "";
822
- return !o || t.startsWith("/") ? i = r : o.toLowerCase().indexOf(r.toLowerCase()) !== 0 ? i = r + o : i = o, (i || "/") + G(t, !i);
831
+ return !s || t.startsWith("/") ? i = r : s.toLowerCase().indexOf(r.toLowerCase()) !== 0 ? i = r + s : i = s, (i || "/") + W(t, !i);
823
832
  }
824
- function nn(e, t) {
833
+ function sn(e, t) {
825
834
  if (e == null)
826
835
  throw new Error(t);
827
836
  return e;
828
837
  }
829
- function rn(e, t) {
830
- return G(e).replace(/\/*(\*.*)?$/g, "") + G(t);
838
+ function on(e, t) {
839
+ return W(e).replace(/\/*(\*.*)?$/g, "") + W(t);
831
840
  }
832
- function nt(e) {
841
+ function rt(e) {
833
842
  const t = {};
834
843
  return e.searchParams.forEach((n, r) => {
835
844
  t[r] = n;
836
845
  }), t;
837
846
  }
838
- function on(e, t, n) {
839
- const [r, o] = e.split("/*", 2), i = r.split("/").filter(Boolean), a = i.length;
840
- return (s) => {
841
- const c = s.split("/").filter(Boolean), l = c.length - a;
842
- if (l < 0 || l > 0 && o === void 0 && !t)
847
+ function an(e, t, n) {
848
+ const [r, s] = e.split("/*", 2), i = r.split("/").filter(Boolean), a = i.length;
849
+ return (o) => {
850
+ const c = o.split("/").filter(Boolean), l = c.length - a;
851
+ if (l < 0 || l > 0 && s === void 0 && !t)
843
852
  return null;
844
853
  const u = {
845
854
  path: a ? "" : "/",
@@ -847,35 +856,35 @@ function on(e, t, n) {
847
856
  }, h = (p) => n === void 0 ? void 0 : n[p];
848
857
  for (let p = 0; p < a; p++) {
849
858
  const m = i[p], y = c[p], f = m[0] === ":", d = f ? m.slice(1) : m;
850
- if (f && he(y, h(d)))
859
+ if (f && de(y, h(d)))
851
860
  u.params[d] = y;
852
- else if (f || !he(y, m))
861
+ else if (f || !de(y, m))
853
862
  return null;
854
863
  u.path += `/${y}`;
855
864
  }
856
- if (o) {
865
+ if (s) {
857
866
  const p = l ? c.slice(-l).join("/") : "";
858
- if (he(p, h(o)))
859
- u.params[o] = p;
867
+ if (de(p, h(s)))
868
+ u.params[s] = p;
860
869
  else
861
870
  return null;
862
871
  }
863
872
  return u;
864
873
  };
865
874
  }
866
- function he(e, t) {
875
+ function de(e, t) {
867
876
  const n = (r) => r.localeCompare(e, void 0, { sensitivity: "base" }) === 0;
868
877
  return t === void 0 ? !0 : typeof t == "string" ? n(t) : typeof t == "function" ? t(e) : Array.isArray(t) ? t.some(n) : t instanceof RegExp ? t.test(e) : !1;
869
878
  }
870
- function sn(e) {
879
+ function ln(e) {
871
880
  const [t, n] = e.pattern.split("/*", 2), r = t.split("/").filter(Boolean);
872
- return r.reduce((o, i) => o + (i.startsWith(":") ? 2 : 3), r.length - (n === void 0 ? 0 : 1));
881
+ return r.reduce((s, i) => s + (i.startsWith(":") ? 2 : 3), r.length - (n === void 0 ? 0 : 1));
873
882
  }
874
- function rt(e) {
875
- const t = /* @__PURE__ */ new Map(), n = De();
883
+ function st(e) {
884
+ const t = /* @__PURE__ */ new Map(), n = qe();
876
885
  return new Proxy({}, {
877
- get(r, o) {
878
- return t.has(o) || qe(n, () => t.set(o, E(() => e()[o]))), t.get(o)();
886
+ get(r, s) {
887
+ return t.has(s) || Ve(n, () => t.set(s, E(() => e()[s]))), t.get(s)();
879
888
  },
880
889
  getOwnPropertyDescriptor() {
881
890
  return {
@@ -893,41 +902,41 @@ function ot(e) {
893
902
  if (!t)
894
903
  return [e];
895
904
  let n = e.slice(0, t.index), r = e.slice(t.index + t[0].length);
896
- const o = [n, n += t[1]];
905
+ const s = [n, n += t[1]];
897
906
  for (; t = /^(\/\:[^\/]+)\?/.exec(r); )
898
- o.push(n += t[1]), r = r.slice(t[0].length);
899
- return ot(r).reduce((i, a) => [...i, ...o.map((s) => s + a)], []);
907
+ s.push(n += t[1]), r = r.slice(t[0].length);
908
+ return ot(r).reduce((i, a) => [...i, ...s.map((o) => o + a)], []);
900
909
  }
901
- const an = 100, st = Ve(), it = Ve(), Ce = () => nn(We(st), "<A> and 'use' router primitives can be only used inside a Route."), at = () => Ce().navigatorFactory(), ln = () => Ce().location, cn = () => Ce().params;
902
- function un(e, t = "") {
903
- const { component: n, preload: r, load: o, children: i, info: a } = e, s = !i || Array.isArray(i) && !i.length, c = {
910
+ const cn = 100, it = We(), at = We(), Ce = () => sn(Ge(it), "<A> and 'use' router primitives can be only used inside a Route."), lt = () => Ce().navigatorFactory(), un = () => Ce().location, fn = () => Ce().params;
911
+ function hn(e, t = "") {
912
+ const { component: n, preload: r, load: s, children: i, info: a } = e, o = !i || Array.isArray(i) && !i.length, c = {
904
913
  key: e,
905
914
  component: n,
906
- preload: r || o,
915
+ preload: r || s,
907
916
  info: a
908
917
  };
909
- return lt(e.path).reduce((l, u) => {
918
+ return ct(e.path).reduce((l, u) => {
910
919
  for (const h of ot(u)) {
911
- const p = rn(t, h);
912
- let m = s ? p : p.split("/*", 1)[0];
920
+ const p = on(t, h);
921
+ let m = o ? p : p.split("/*", 1)[0];
913
922
  m = m.split("/").map((y) => y.startsWith(":") || y.startsWith("*") ? y : encodeURIComponent(y)).join("/"), l.push({
914
923
  ...c,
915
924
  originalPath: u,
916
925
  pattern: m,
917
- matcher: on(m, !s, e.matchFilters)
926
+ matcher: an(m, !o, e.matchFilters)
918
927
  });
919
928
  }
920
929
  return l;
921
930
  }, []);
922
931
  }
923
- function fn(e, t = 0) {
932
+ function dn(e, t = 0) {
924
933
  return {
925
934
  routes: e,
926
- score: sn(e[e.length - 1]) * 1e4 - t,
935
+ score: ln(e[e.length - 1]) * 1e4 - t,
927
936
  matcher(n) {
928
937
  const r = [];
929
- for (let o = e.length - 1; o >= 0; o--) {
930
- const i = e[o], a = i.matcher(n);
938
+ for (let s = e.length - 1; s >= 0; s--) {
939
+ const i = e[s], a = i.matcher(n);
931
940
  if (!a)
932
941
  return null;
933
942
  r.unshift({
@@ -939,23 +948,23 @@ function fn(e, t = 0) {
939
948
  }
940
949
  };
941
950
  }
942
- function lt(e) {
951
+ function ct(e) {
943
952
  return Array.isArray(e) ? e : [e];
944
953
  }
945
- function ct(e, t = "", n = [], r = []) {
946
- const o = lt(e);
947
- for (let i = 0, a = o.length; i < a; i++) {
948
- const s = o[i];
949
- if (s && typeof s == "object") {
950
- s.hasOwnProperty("path") || (s.path = "");
951
- const c = un(s, t);
954
+ function ut(e, t = "", n = [], r = []) {
955
+ const s = ct(e);
956
+ for (let i = 0, a = s.length; i < a; i++) {
957
+ const o = s[i];
958
+ if (o && typeof o == "object") {
959
+ o.hasOwnProperty("path") || (o.path = "");
960
+ const c = hn(o, t);
952
961
  for (const l of c) {
953
962
  n.push(l);
954
- const u = Array.isArray(s.children) && s.children.length === 0;
955
- if (s.children && !u)
956
- ct(s.children, l.pattern, n, r);
963
+ const u = Array.isArray(o.children) && o.children.length === 0;
964
+ if (o.children && !u)
965
+ ut(o.children, l.pattern, n, r);
957
966
  else {
958
- const h = fn([...n], r.length);
967
+ const h = dn([...n], r.length);
959
968
  r.push(h);
960
969
  }
961
970
  n.pop();
@@ -964,16 +973,16 @@ function ct(e, t = "", n = [], r = []) {
964
973
  }
965
974
  return n.length ? r : r.sort((i, a) => a.score - i.score);
966
975
  }
967
- function de(e, t) {
976
+ function pe(e, t) {
968
977
  for (let n = 0, r = e.length; n < r; n++) {
969
- const o = e[n].matcher(t);
970
- if (o)
971
- return o;
978
+ const s = e[n].matcher(t);
979
+ if (s)
980
+ return s;
972
981
  }
973
982
  return [];
974
983
  }
975
- function hn(e, t) {
976
- const n = new URL(tt), r = E((c) => {
984
+ function pn(e, t) {
985
+ const n = new URL(nt), r = E((c) => {
977
986
  const l = e();
978
987
  try {
979
988
  return new URL(l, n);
@@ -982,10 +991,10 @@ function hn(e, t) {
982
991
  }
983
992
  }, n, {
984
993
  equals: (c, l) => c.href === l.href
985
- }), o = E(() => r().pathname), i = E(() => r().search, !0), a = E(() => r().hash), s = () => "";
994
+ }), s = E(() => r().pathname), i = E(() => r().search, !0), a = E(() => r().hash), o = () => "";
986
995
  return {
987
996
  get pathname() {
988
- return o();
997
+ return s();
989
998
  },
990
999
  get search() {
991
1000
  return i();
@@ -997,32 +1006,32 @@ function hn(e, t) {
997
1006
  return t();
998
1007
  },
999
1008
  get key() {
1000
- return s();
1009
+ return o();
1001
1010
  },
1002
- query: rt(K(i, () => nt(r())))
1011
+ query: st(G(i, () => rt(r())))
1003
1012
  };
1004
1013
  }
1005
- let B;
1006
- function dn() {
1007
- return B;
1014
+ let j;
1015
+ function gn() {
1016
+ return j;
1008
1017
  }
1009
- function pn(e, t, n, r = {}) {
1010
- const { signal: [o, i], utils: a = {} } = e, s = a.parsePath || ((v) => v), c = a.renderPath || ((v) => v), l = a.beforeLeave || et(), u = Y("", r.base || "");
1018
+ function mn(e, t, n, r = {}) {
1019
+ const { signal: [s, i], utils: a = {} } = e, o = a.parsePath || ((v) => v), c = a.renderPath || ((v) => v), l = a.beforeLeave || tt(), u = Z("", r.base || "");
1011
1020
  if (u === void 0)
1012
1021
  throw new Error(`${u} is not a valid base path`);
1013
- u && !o().value && i({ value: u, replace: !0, scroll: !1 });
1014
- const [h, p] = x(!1);
1022
+ u && !s().value && i({ value: u, replace: !0, scroll: !1 });
1023
+ const [h, p] = P(!1);
1015
1024
  let m;
1016
1025
  const y = (v, $) => {
1017
- $.value === f() && $.state === S() || (m === void 0 && p(!0), B = v, m = $, wt(() => {
1026
+ $.value === f() && $.state === S() || (m === void 0 && p(!0), j = v, m = $, vt(() => {
1018
1027
  m === $ && (d(m.value), g(m.state), F[1]([]));
1019
1028
  }).finally(() => {
1020
- m === $ && yt(() => {
1021
- B = void 0, v === "navigate" && dt(m), p(!1), m = void 0;
1029
+ m === $ && wt(() => {
1030
+ j = void 0, v === "navigate" && pt(m), p(!1), m = void 0;
1022
1031
  });
1023
1032
  }));
1024
- }, [f, d] = x(o().value), [S, g] = x(o().state), U = hn(f, S), L = [], F = x([]), V = E(() => typeof r.transformUrl == "function" ? de(t(), r.transformUrl(U.pathname)) : de(t(), U.pathname)), ut = rt(() => {
1025
- const v = V(), $ = {};
1033
+ }, [f, d] = P(s().value), [S, g] = P(s().state), U = pn(f, S), C = [], F = P([]), q = E(() => typeof r.transformUrl == "function" ? pe(t(), r.transformUrl(U.pathname)) : pe(t(), U.pathname)), ft = st(() => {
1034
+ const v = q(), $ = {};
1026
1035
  for (let O = 0; O < v.length; O++)
1027
1036
  Object.assign($, v[O].params);
1028
1037
  return $;
@@ -1031,87 +1040,89 @@ function pn(e, t, n, r = {}) {
1031
1040
  path: () => u,
1032
1041
  outlet: () => null,
1033
1042
  resolvePath(v) {
1034
- return Y(u, v);
1043
+ return Z(u, v);
1035
1044
  }
1036
1045
  };
1037
- return _(K(o, (v) => y("native", v), { defer: !0 })), {
1046
+ return _(G(s, (v) => y("native", v), { defer: !0 })), {
1038
1047
  base: Le,
1039
1048
  location: U,
1040
- params: ut,
1049
+ params: ft,
1041
1050
  isRouting: h,
1042
1051
  renderPath: c,
1043
- parsePath: s,
1044
- navigatorFactory: ht,
1045
- matches: V,
1052
+ parsePath: o,
1053
+ navigatorFactory: dt,
1054
+ matches: q,
1046
1055
  beforeLeave: l,
1047
- preloadRoute: pt,
1056
+ preloadRoute: gt,
1048
1057
  singleFlight: r.singleFlight === void 0 ? !0 : r.singleFlight,
1049
1058
  submissions: F
1050
1059
  };
1051
- function ft(v, $, O) {
1060
+ function ht(v, $, O) {
1052
1061
  I(() => {
1053
1062
  if (typeof $ == "number") {
1054
1063
  $ && (a.go ? a.go($) : console.warn("Router integration does not support relative routing"));
1055
1064
  return;
1056
1065
  }
1057
- const { replace: le, resolve: ce, scroll: M, state: X } = {
1066
+ const H = !$ || $[0] === "?", { replace: ce, resolve: B, scroll: ue, state: V } = {
1058
1067
  replace: !1,
1059
- resolve: !0,
1068
+ resolve: !H,
1060
1069
  scroll: !0,
1061
1070
  ...O
1062
- }, j = ce ? v.resolvePath($) : Y("", $);
1063
- if (j === void 0)
1071
+ };
1072
+ let Pe;
1073
+ const X = B ? v.resolvePath($) : Z(H && (Pe = s().value) && Pe.split("?")[0] || "", $);
1074
+ if (X === void 0)
1064
1075
  throw new Error(`Path '${$}' is not a routable path`);
1065
- if (L.length >= an)
1076
+ if (C.length >= cn)
1066
1077
  throw new Error("Too many redirects");
1067
- const Pe = f();
1068
- (j !== Pe || X !== S()) && (_t || l.confirm(j, O) && (L.push({ value: Pe, replace: le, scroll: M, state: S() }), y("navigate", {
1069
- value: j,
1070
- state: X
1078
+ const Oe = f();
1079
+ (X !== Oe || V !== S()) && (It || l.confirm(X, O) && (C.push({ value: Oe, replace: ce, scroll: ue, state: S() }), y("navigate", {
1080
+ value: X,
1081
+ state: V
1071
1082
  })));
1072
1083
  });
1073
1084
  }
1074
- function ht(v) {
1075
- return v = v || We(it) || Le, ($, O) => ft(v, $, O);
1076
- }
1077
1085
  function dt(v) {
1078
- const $ = L[0];
1086
+ return v = v || Ge(at) || Le, ($, O) => ht(v, $, O);
1087
+ }
1088
+ function pt(v) {
1089
+ const $ = C[0];
1079
1090
  $ && (i({
1080
1091
  ...v,
1081
1092
  replace: $.replace,
1082
1093
  scroll: $.scroll
1083
- }), L.length = 0);
1094
+ }), C.length = 0);
1084
1095
  }
1085
- function pt(v, $ = {}) {
1086
- const O = de(t(), v.pathname), le = B;
1087
- B = "preload";
1096
+ function gt(v, $ = {}) {
1097
+ const O = pe(t(), v.pathname), H = j;
1098
+ j = "preload";
1088
1099
  for (let ce in O) {
1089
- const { route: M, params: X } = O[ce];
1090
- M.component && M.component.preload && M.component.preload();
1091
- const { preload: j } = M;
1092
- $.preloadData && j && qe(n(), () => j({
1093
- params: X,
1100
+ const { route: B, params: ue } = O[ce];
1101
+ B.component && B.component.preload && B.component.preload();
1102
+ const { preload: V } = B;
1103
+ $.preloadData && V && Ve(n(), () => V({
1104
+ params: ue,
1094
1105
  location: {
1095
1106
  pathname: v.pathname,
1096
1107
  search: v.search,
1097
1108
  hash: v.hash,
1098
- query: nt(v),
1109
+ query: rt(v),
1099
1110
  state: null,
1100
1111
  key: ""
1101
1112
  },
1102
1113
  intent: "preload"
1103
1114
  }));
1104
1115
  }
1105
- B = le;
1116
+ j = H;
1106
1117
  }
1107
1118
  }
1108
- function gn(e, t, n, r) {
1109
- const { base: o, location: i, params: a } = e, { pattern: s, component: c, preload: l } = r().route, u = E(() => r().path);
1119
+ function yn(e, t, n, r) {
1120
+ const { base: s, location: i, params: a } = e, { pattern: o, component: c, preload: l } = r().route, u = E(() => r().path);
1110
1121
  c && c.preload && c.preload();
1111
- const h = l ? l({ params: a, location: i, intent: B || "initial" }) : void 0;
1122
+ const h = l ? l({ params: a, location: i, intent: j || "initial" }) : void 0;
1112
1123
  return {
1113
1124
  parent: t,
1114
- pattern: s,
1125
+ pattern: o,
1115
1126
  path: u,
1116
1127
  outlet: () => c ? A(c, {
1117
1128
  params: a,
@@ -1122,24 +1133,24 @@ function gn(e, t, n, r) {
1122
1133
  }
1123
1134
  }) : n(),
1124
1135
  resolvePath(m) {
1125
- return Y(o.path(), m, u());
1136
+ return Z(s.path(), m, u());
1126
1137
  }
1127
1138
  };
1128
1139
  }
1129
- const mn = (e) => (t) => {
1140
+ const wn = (e) => (t) => {
1130
1141
  const {
1131
1142
  base: n
1132
- } = t, r = Se(() => t.children), o = E(() => ct(r(), t.base || ""));
1143
+ } = t, r = $e(() => t.children), s = E(() => ut(r(), t.base || ""));
1133
1144
  let i;
1134
- const a = pn(e, o, () => i, {
1145
+ const a = mn(e, s, () => i, {
1135
1146
  base: n,
1136
1147
  singleFlight: t.singleFlight,
1137
1148
  transformUrl: t.transformUrl
1138
1149
  });
1139
- return e.create && e.create(a), A(st.Provider, {
1150
+ return e.create && e.create(a), A(it.Provider, {
1140
1151
  value: a,
1141
1152
  get children() {
1142
- return A(yn, {
1153
+ return A(vn, {
1143
1154
  routerState: a,
1144
1155
  get root() {
1145
1156
  return t.root;
@@ -1148,10 +1159,10 @@ const mn = (e) => (t) => {
1148
1159
  return t.rootPreload || t.rootLoad;
1149
1160
  },
1150
1161
  get children() {
1151
- return [E(() => (i = De()) && null), A(wn, {
1162
+ return [E(() => (i = qe()) && null), A(bn, {
1152
1163
  routerState: a,
1153
1164
  get branches() {
1154
- return o();
1165
+ return s();
1155
1166
  }
1156
1167
  })];
1157
1168
  }
@@ -1159,15 +1170,15 @@ const mn = (e) => (t) => {
1159
1170
  }
1160
1171
  });
1161
1172
  };
1162
- function yn(e) {
1173
+ function vn(e) {
1163
1174
  const t = e.routerState.location, n = e.routerState.params, r = E(() => e.preload && I(() => {
1164
1175
  e.preload({
1165
1176
  params: n,
1166
1177
  location: t,
1167
- intent: dn() || "initial"
1178
+ intent: gn() || "initial"
1168
1179
  });
1169
1180
  }));
1170
- return A(q, {
1181
+ return A(D, {
1171
1182
  get when() {
1172
1183
  return e.root;
1173
1184
  },
@@ -1175,7 +1186,7 @@ function yn(e) {
1175
1186
  get fallback() {
1176
1187
  return e.children;
1177
1188
  },
1178
- children: (o) => A(o, {
1189
+ children: (s) => A(s, {
1179
1190
  params: n,
1180
1191
  location: t,
1181
1192
  get data() {
@@ -1187,45 +1198,45 @@ function yn(e) {
1187
1198
  })
1188
1199
  });
1189
1200
  }
1190
- function wn(e) {
1201
+ function bn(e) {
1191
1202
  const t = [];
1192
1203
  let n;
1193
- const r = E(K(e.routerState.matches, (o, i, a) => {
1194
- let s = i && o.length === i.length;
1204
+ const r = E(G(e.routerState.matches, (s, i, a) => {
1205
+ let o = i && s.length === i.length;
1195
1206
  const c = [];
1196
- for (let l = 0, u = o.length; l < u; l++) {
1197
- const h = i && i[l], p = o[l];
1198
- a && h && p.route.key === h.route.key ? c[l] = a[l] : (s = !1, t[l] && t[l](), Be((m) => {
1199
- t[l] = m, c[l] = gn(e.routerState, c[l - 1] || e.routerState.base, Ue(() => r()[l + 1]), () => e.routerState.matches()[l]);
1207
+ for (let l = 0, u = s.length; l < u; l++) {
1208
+ const h = i && i[l], p = s[l];
1209
+ a && h && p.route.key === h.route.key ? c[l] = a[l] : (o = !1, t[l] && t[l](), Me((m) => {
1210
+ t[l] = m, c[l] = yn(e.routerState, c[l - 1] || e.routerState.base, ke(() => r()[l + 1]), () => e.routerState.matches()[l]);
1200
1211
  }));
1201
1212
  }
1202
- return t.splice(o.length).forEach((l) => l()), a && s ? a : (n = c[0], c);
1213
+ return t.splice(s.length).forEach((l) => l()), a && o ? a : (n = c[0], c);
1203
1214
  }));
1204
- return Ue(() => r() && n)();
1215
+ return ke(() => r() && n)();
1205
1216
  }
1206
- const Ue = (e) => () => A(q, {
1217
+ const ke = (e) => () => A(D, {
1207
1218
  get when() {
1208
1219
  return e();
1209
1220
  },
1210
1221
  keyed: !0,
1211
- children: (t) => A(it.Provider, {
1222
+ children: (t) => A(at.Provider, {
1212
1223
  value: t,
1213
1224
  get children() {
1214
1225
  return t.outlet();
1215
1226
  }
1216
1227
  })
1217
- }), pe = (e) => {
1218
- const t = Se(() => e.children);
1228
+ }), ge = (e) => {
1229
+ const t = $e(() => e.children);
1219
1230
  return Ct(e, {
1220
1231
  get children() {
1221
1232
  return t();
1222
1233
  }
1223
1234
  });
1224
1235
  };
1225
- function vn([e, t], n, r) {
1226
- return [e, r ? (o) => t(r(o)) : t];
1236
+ function Sn([e, t], n, r) {
1237
+ return [e, r ? (s) => t(r(s)) : t];
1227
1238
  }
1228
- function bn(e) {
1239
+ function $n(e) {
1229
1240
  if (e === "#")
1230
1241
  return null;
1231
1242
  try {
@@ -1234,45 +1245,45 @@ function bn(e) {
1234
1245
  return null;
1235
1246
  }
1236
1247
  }
1237
- function Sn(e) {
1248
+ function An(e) {
1238
1249
  let t = !1;
1239
- const n = (o) => typeof o == "string" ? { value: o } : o, r = vn(x(n(e.get()), {
1240
- equals: (o, i) => o.value === i.value && o.state === i.state
1241
- }), void 0, (o) => (!t && e.set(o), o));
1242
- return e.init && Me(e.init((o = e.get()) => {
1243
- t = !0, r[1](n(o)), t = !1;
1244
- })), mn({
1250
+ const n = (s) => typeof s == "string" ? { value: s } : s, r = Sn(P(n(e.get()), {
1251
+ equals: (s, i) => s.value === i.value && s.state === i.state
1252
+ }), void 0, (s) => (!t && e.set(s), s));
1253
+ return e.init && De(e.init((s = e.get()) => {
1254
+ t = !0, r[1](n(s)), t = !1;
1255
+ })), wn({
1245
1256
  signal: r,
1246
1257
  create: e.create,
1247
1258
  utils: e.utils
1248
1259
  });
1249
1260
  }
1250
- function $n(e, t, n) {
1261
+ function En(e, t, n) {
1251
1262
  return e.addEventListener(t, n), () => e.removeEventListener(t, n);
1252
1263
  }
1253
- function An(e, t) {
1254
- const n = bn(`#${e}`);
1264
+ function Rn(e, t) {
1265
+ const n = $n(`#${e}`);
1255
1266
  n ? n.scrollIntoView() : t && window.scrollTo(0, 0);
1256
1267
  }
1257
- const En = /* @__PURE__ */ new Map();
1258
- function Rn(e = !0, t = !1, n = "/_server", r) {
1259
- return (o) => {
1260
- const i = o.base.path(), a = o.navigatorFactory(o.base);
1261
- let s = {};
1268
+ const xn = /* @__PURE__ */ new Map();
1269
+ function Cn(e = !0, t = !1, n = "/_server", r) {
1270
+ return (s) => {
1271
+ const i = s.base.path(), a = s.navigatorFactory(s.base);
1272
+ let o = {};
1262
1273
  function c(f) {
1263
1274
  return f.namespaceURI === "http://www.w3.org/2000/svg";
1264
1275
  }
1265
1276
  function l(f) {
1266
1277
  if (f.defaultPrevented || f.button !== 0 || f.metaKey || f.altKey || f.ctrlKey || f.shiftKey)
1267
1278
  return;
1268
- const d = f.composedPath().find((V) => V instanceof Node && V.nodeName.toUpperCase() === "A");
1279
+ const d = f.composedPath().find((q) => q instanceof Node && q.nodeName.toUpperCase() === "A");
1269
1280
  if (!d || t && !d.hasAttribute("link"))
1270
1281
  return;
1271
1282
  const S = c(d), g = S ? d.href.baseVal : d.href;
1272
1283
  if ((S ? d.target.baseVal : d.target) || !g && !d.hasAttribute("state"))
1273
1284
  return;
1274
- const L = (d.getAttribute("rel") || "").split(/\s+/);
1275
- if (d.hasAttribute("download") || L && L.includes("external"))
1285
+ const C = (d.getAttribute("rel") || "").split(/\s+/);
1286
+ if (d.hasAttribute("download") || C && C.includes("external"))
1276
1287
  return;
1277
1288
  const F = S ? new URL(g, document.baseURI) : new URL(g);
1278
1289
  if (!(F.origin !== window.location.origin || i && F.pathname && !F.pathname.toLowerCase().startsWith(i.toLowerCase())))
@@ -1282,12 +1293,12 @@ function Rn(e = !0, t = !1, n = "/_server", r) {
1282
1293
  const d = l(f);
1283
1294
  if (!d)
1284
1295
  return;
1285
- const [S, g] = d, U = o.parsePath(g.pathname + g.search + g.hash), L = S.getAttribute("state");
1296
+ const [S, g] = d, U = s.parsePath(g.pathname + g.search + g.hash), C = S.getAttribute("state");
1286
1297
  f.preventDefault(), a(U, {
1287
1298
  resolve: !1,
1288
1299
  replace: S.hasAttribute("replace"),
1289
1300
  scroll: !S.hasAttribute("noscroll"),
1290
- state: L && JSON.parse(L)
1301
+ state: C && JSON.parse(C)
1291
1302
  });
1292
1303
  }
1293
1304
  function h(f) {
@@ -1295,15 +1306,15 @@ function Rn(e = !0, t = !1, n = "/_server", r) {
1295
1306
  if (!d)
1296
1307
  return;
1297
1308
  const [S, g] = d;
1298
- s[g.pathname] || o.preloadRoute(g, { preloadData: S.getAttribute("preload") !== "false" });
1309
+ o[g.pathname] || s.preloadRoute(g, { preloadData: S.getAttribute("preload") !== "false" });
1299
1310
  }
1300
1311
  function p(f) {
1301
1312
  const d = l(f);
1302
1313
  if (!d)
1303
1314
  return;
1304
1315
  const [S, g] = d;
1305
- s[g.pathname] || (s[g.pathname] = setTimeout(() => {
1306
- o.preloadRoute(g, { preloadData: S.getAttribute("preload") !== "false" }), delete s[g.pathname];
1316
+ o[g.pathname] || (o[g.pathname] = setTimeout(() => {
1317
+ s.preloadRoute(g, { preloadData: S.getAttribute("preload") !== "false" }), delete o[g.pathname];
1307
1318
  }, 200));
1308
1319
  }
1309
1320
  function m(f) {
@@ -1311,7 +1322,7 @@ function Rn(e = !0, t = !1, n = "/_server", r) {
1311
1322
  if (!d)
1312
1323
  return;
1313
1324
  const [, S] = d;
1314
- s[S.pathname] && (clearTimeout(s[S.pathname]), delete s[S.pathname]);
1325
+ o[S.pathname] && (clearTimeout(o[S.pathname]), delete o[S.pathname]);
1315
1326
  }
1316
1327
  function y(f) {
1317
1328
  if (f.defaultPrevented)
@@ -1320,25 +1331,25 @@ function Rn(e = !0, t = !1, n = "/_server", r) {
1320
1331
  if (!d)
1321
1332
  return;
1322
1333
  if (!d.startsWith("https://action/")) {
1323
- const g = new URL(d, tt);
1324
- if (d = o.parsePath(g.pathname + g.search), !d.startsWith(n))
1334
+ const g = new URL(d, nt);
1335
+ if (d = s.parsePath(g.pathname + g.search), !d.startsWith(n))
1325
1336
  return;
1326
1337
  }
1327
1338
  if (f.target.method.toUpperCase() !== "POST")
1328
1339
  throw new Error("Only POST forms are supported for Actions");
1329
- const S = En.get(d);
1340
+ const S = xn.get(d);
1330
1341
  if (S) {
1331
1342
  f.preventDefault();
1332
1343
  const g = new FormData(f.target, f.submitter);
1333
- S.call({ r: o, f: f.target }, f.target.enctype === "multipart/form-data" ? g : new URLSearchParams(g));
1344
+ S.call({ r: s, f: f.target }, f.target.enctype === "multipart/form-data" ? g : new URLSearchParams(g));
1334
1345
  }
1335
1346
  }
1336
- se(["click", "submit"]), document.addEventListener("click", u), e && (document.addEventListener("mouseover", p), document.addEventListener("mouseout", m), document.addEventListener("focusin", h), document.addEventListener("touchstart", h)), document.addEventListener("submit", y), Me(() => {
1347
+ ie(["click", "submit"]), document.addEventListener("click", u), e && (document.addEventListener("mouseover", p), document.addEventListener("mouseout", m), document.addEventListener("focusin", h), document.addEventListener("touchstart", h)), document.addEventListener("submit", y), De(() => {
1337
1348
  document.removeEventListener("click", u), e && (document.removeEventListener("mouseover", p), document.removeEventListener("mouseout", m), document.removeEventListener("focusin", h), document.removeEventListener("touchstart", h)), document.removeEventListener("submit", y);
1338
1349
  });
1339
1350
  };
1340
1351
  }
1341
- function Cn(e) {
1352
+ function Ln(e) {
1342
1353
  const t = e.replace(/^.*?#/, "");
1343
1354
  if (!t.startsWith("/")) {
1344
1355
  const [, n = "/"] = window.location.hash.split("#", 2);
@@ -1346,51 +1357,51 @@ function Cn(e) {
1346
1357
  }
1347
1358
  return t;
1348
1359
  }
1349
- function Ln(e) {
1350
- const t = () => window.location.hash.slice(1), n = et();
1351
- return Sn({
1360
+ function Pn(e) {
1361
+ const t = () => window.location.hash.slice(1), n = tt();
1362
+ return An({
1352
1363
  get: t,
1353
- set({ value: r, replace: o, scroll: i, state: a }) {
1354
- o ? window.history.replaceState(Zt(a), "", "#" + r) : window.history.pushState(a, "", "#" + r);
1355
- const s = r.indexOf("#"), c = s >= 0 ? r.slice(s + 1) : "";
1356
- An(c, i), Re();
1364
+ set({ value: r, replace: s, scroll: i, state: a }) {
1365
+ s ? window.history.replaceState(en(a), "", "#" + r) : window.history.pushState(a, "", "#" + r);
1366
+ const o = r.indexOf("#"), c = o >= 0 ? r.slice(o + 1) : "";
1367
+ Rn(c, i), xe();
1357
1368
  },
1358
- init: (r) => $n(window, "hashchange", zt(r, (o) => !n.confirm(o && o < 0 ? o : t()))),
1359
- create: Rn(e.preload, e.explicitLinks, e.actionBase),
1369
+ init: (r) => En(window, "hashchange", tn(r, (s) => !n.confirm(s && s < 0 ? s : t()))),
1370
+ create: Cn(e.preload, e.explicitLinks, e.actionBase),
1360
1371
  utils: {
1361
1372
  go: (r) => window.history.go(r),
1362
1373
  renderPath: (r) => `#${r}`,
1363
- parsePath: Cn,
1374
+ parsePath: Ln,
1364
1375
  beforeLeave: n
1365
1376
  }
1366
1377
  })(e);
1367
1378
  }
1368
- function Pn(e) {
1369
- const t = at(), n = ln(), {
1379
+ function On(e) {
1380
+ const t = lt(), n = un(), {
1370
1381
  href: r,
1371
- state: o
1382
+ state: s
1372
1383
  } = e, i = typeof r == "function" ? r({
1373
1384
  navigate: t,
1374
1385
  location: n
1375
1386
  }) : r;
1376
1387
  return t(i, {
1377
1388
  replace: !0,
1378
- state: o
1389
+ state: s
1379
1390
  }), null;
1380
1391
  }
1381
- const xn = {};
1382
- async function ke({
1392
+ const _n = {};
1393
+ async function Te({
1383
1394
  language: e,
1384
1395
  text: t,
1385
1396
  limit: n,
1386
1397
  start: r,
1387
- templateName: o
1398
+ templateName: s
1388
1399
  }) {
1389
- const i = `${Je}/search?language=${encodeURIComponent(
1400
+ const i = `${Ye}/search?language=${encodeURIComponent(
1390
1401
  e
1391
1402
  )}&q=${encodeURIComponent(t)}&limit=${encodeURIComponent(
1392
1403
  n
1393
- )}&start=${encodeURIComponent(r)}&tpl=${encodeURIComponent(o)}`, a = await fetch(i, {
1404
+ )}&start=${encodeURIComponent(r)}&tpl=${encodeURIComponent(s)}`, a = await fetch(i, {
1394
1405
  method: "GET"
1395
1406
  });
1396
1407
  if (a.status !== 200) {
@@ -1399,47 +1410,47 @@ async function ke({
1399
1410
  }
1400
1411
  return await a.json();
1401
1412
  }
1402
- const On = "_SearchForm_1a5n6_1", _n = {
1403
- SearchForm: On
1413
+ const In = "_SearchForm_1a5n6_1", Un = {
1414
+ SearchForm: In
1404
1415
  };
1405
- var In = /* @__PURE__ */ C("<form><input type=search><button type=submit>");
1406
- const Un = (e) => {
1407
- const t = at(), [n, r] = x(e.value ?? ""), {
1408
- t: o
1409
- } = ae(e.language);
1410
- be(K(() => e.value, () => r(e.value ?? "")));
1416
+ var kn = /* @__PURE__ */ x("<form><input type=search><button type=submit>");
1417
+ const Tn = (e) => {
1418
+ const t = lt(), [n, r] = P(e.value ?? ""), {
1419
+ t: s
1420
+ } = le(e.language);
1421
+ Se(G(() => e.value, () => r(e.value ?? "")));
1411
1422
  const i = async (a) => {
1412
1423
  a.preventDefault(), t(`/q/${encodeURIComponent(n())}`);
1413
1424
  };
1414
1425
  return (() => {
1415
- var a = In(), s = a.firstChild, c = s.nextSibling;
1416
- return a.addEventListener("submit", i), s.addEventListener("change", (l) => r(l.currentTarget.value)), P(c, () => o("searchApp.search")), _((l) => {
1417
- var u = _n.SearchForm, h = o("searchApp.search");
1418
- return u !== l.e && Qe(a, l.e = u), h !== l.t && ie(s, "placeholder", l.t = h), l;
1426
+ var a = kn(), o = a.firstChild, c = o.nextSibling;
1427
+ return a.addEventListener("submit", i), o.addEventListener("change", (l) => r(l.currentTarget.value)), L(c, () => s("searchApp.search")), _((l) => {
1428
+ var u = Un.SearchForm, h = s("searchApp.search");
1429
+ return u !== l.e && Je(a, l.e = u), h !== l.t && ae(o, "placeholder", l.t = h), l;
1419
1430
  }, {
1420
1431
  e: void 0,
1421
1432
  t: void 0
1422
- }), _(() => s.value = n()), a;
1433
+ }), _(() => o.value = n()), a;
1423
1434
  })();
1424
1435
  };
1425
- var kn = /* @__PURE__ */ C("<div class=SearchPageResponse>"), Te = /* @__PURE__ */ C("<div>"), Tn = /* @__PURE__ */ C("<img class=SearchPageResponse-spinner width=80 height=80 alt=…>"), Nn = /* @__PURE__ */ C("<button type=button>"), Fn = /* @__PURE__ */ C("<div class=SearchPageResponse-noResultMessage> <span>");
1426
- function Ne({
1436
+ var Nn = /* @__PURE__ */ x("<div class=SearchPageResponse>"), Ne = /* @__PURE__ */ x("<div>"), Fn = /* @__PURE__ */ x("<img class=SearchPageResponse-spinner width=80 height=80 alt=…>"), jn = /* @__PURE__ */ x("<button type=button>"), Bn = /* @__PURE__ */ x("<div class=SearchPageResponse-noResultMessage> <span>");
1437
+ function Fe({
1427
1438
  language: e,
1428
1439
  limit: t,
1429
1440
  templateName: n
1430
1441
  }) {
1431
1442
  const {
1432
1443
  t: r
1433
- } = ae(e), o = cn(), [i, a] = x(""), [s, c] = x(0), [l, u] = x(0), [h, p] = x(!1);
1434
- be(K(() => o.searchString, m));
1444
+ } = le(e), s = fn(), [i, a] = P(""), [o, c] = P(0), [l, u] = P(0), [h, p] = P(!1);
1445
+ Se(G(() => s.searchString, m));
1435
1446
  async function m() {
1436
- if (o.searchString) {
1447
+ if (s.searchString) {
1437
1448
  p(!0);
1438
1449
  try {
1439
1450
  a(""), u(0);
1440
- const f = await ke({
1451
+ const f = await Te({
1441
1452
  language: e,
1442
- text: decodeURIComponent(o.searchString),
1453
+ text: decodeURIComponent(s.searchString),
1443
1454
  limit: t,
1444
1455
  start: l(),
1445
1456
  templateName: n
@@ -1452,12 +1463,12 @@ function Ne({
1452
1463
  }
1453
1464
  }
1454
1465
  async function y() {
1455
- if (!o.searchString) return;
1456
- const f = s();
1466
+ if (!s.searchString) return;
1467
+ const f = o();
1457
1468
  if (f === void 0 || l() >= f) return;
1458
- const d = await ke({
1469
+ const d = await Te({
1459
1470
  language: e,
1460
- text: decodeURIComponent(o.searchString),
1471
+ text: decodeURIComponent(s.searchString),
1461
1472
  limit: t,
1462
1473
  start: l(),
1463
1474
  templateName: n
@@ -1465,77 +1476,77 @@ function Ne({
1465
1476
  d.html && (a(`${i()}${d.html}`), u(l() + t));
1466
1477
  }
1467
1478
  return (() => {
1468
- var f = Te();
1469
- return P(f, A(Un, {
1479
+ var f = Ne();
1480
+ return L(f, A(Tn, {
1470
1481
  language: e,
1471
1482
  get value() {
1472
- return E(() => !!o.searchString)() ? decodeURIComponent(o.searchString) : void 0;
1483
+ return E(() => !!s.searchString)() ? decodeURIComponent(s.searchString) : void 0;
1473
1484
  }
1474
- }), null), P(f, A(q, {
1485
+ }), null), L(f, A(D, {
1475
1486
  get when() {
1476
- return o.searchString;
1487
+ return s.searchString;
1477
1488
  },
1478
1489
  get children() {
1479
- var d = kn();
1480
- return P(d, (() => {
1490
+ var d = Nn();
1491
+ return L(d, (() => {
1481
1492
  var S = E(() => !!h());
1482
1493
  return () => S() ? (() => {
1483
- var g = Tn();
1484
- return ie(g, "src", `${Ye}/spinner.svg`), g;
1485
- })() : A(q, {
1494
+ var g = Fn();
1495
+ return ae(g, "src", `${Ze}/spinner.svg`), g;
1496
+ })() : A(D, {
1486
1497
  get when() {
1487
1498
  return i();
1488
1499
  },
1489
1500
  get fallback() {
1490
1501
  return (() => {
1491
- var g = Fn(), U = g.firstChild, L = U.nextSibling;
1492
- return P(g, () => r("searchApp.nothingGet"), U), P(L, () => o.searchString), g;
1502
+ var g = Bn(), U = g.firstChild, C = U.nextSibling;
1503
+ return L(g, () => r("searchApp.nothingGet"), U), L(C, () => s.searchString), g;
1493
1504
  })();
1494
1505
  },
1495
1506
  get children() {
1496
1507
  return [(() => {
1497
- var g = Te();
1508
+ var g = Ne();
1498
1509
  return _(() => g.innerHTML = i()), g;
1499
- })(), A(q, {
1510
+ })(), A(D, {
1500
1511
  get when() {
1501
- return l() < s();
1512
+ return l() < o();
1502
1513
  },
1503
1514
  get children() {
1504
- var g = Nn();
1505
- return g.$$click = y, P(g, () => r("infiniteLoading.loadMore")), g;
1515
+ var g = jn();
1516
+ return g.$$click = y, L(g, () => r("infiniteLoading.loadMore")), g;
1506
1517
  }
1507
1518
  })];
1508
1519
  }
1509
1520
  });
1510
1521
  })()), d;
1511
1522
  }
1512
- }), null), _(() => Qe(f, xn.SiteApp)), f;
1523
+ }), null), _(() => Je(f, _n.SiteApp)), f;
1513
1524
  })();
1514
1525
  }
1515
- se(["click"]);
1516
- function jn(e, {
1526
+ ie(["click"]);
1527
+ function Mn(e, {
1517
1528
  language: t
1518
1529
  }) {
1519
1530
  if (!t) throw new Error("Missing language");
1520
- const n = J(e.dataset.limit), r = W(e.dataset.template);
1521
- n === void 0 || r === void 0 || Ee(() => A(Ln, {
1531
+ const n = Y(e.dataset.limit), r = J(e.dataset.template);
1532
+ n === void 0 || r === void 0 || Re(() => A(Pn, {
1522
1533
  explicitLinks: !0,
1523
1534
  get children() {
1524
- return [A(pe, {
1535
+ return [A(ge, {
1525
1536
  path: "/",
1526
- component: () => A(Pn, {
1537
+ component: () => A(On, {
1527
1538
  href: "/q"
1528
1539
  })
1529
- }), A(pe, {
1540
+ }), A(ge, {
1530
1541
  path: "/q",
1531
- component: () => A(Ne, {
1542
+ component: () => A(Fe, {
1532
1543
  language: t,
1533
1544
  templateName: r,
1534
1545
  limit: n
1535
1546
  })
1536
- }), A(pe, {
1547
+ }), A(ge, {
1537
1548
  path: "/q/:searchString",
1538
- component: () => A(Ne, {
1549
+ component: () => A(Fe, {
1539
1550
  language: t,
1540
1551
  templateName: r,
1541
1552
  limit: n
@@ -1544,63 +1555,63 @@ function jn(e, {
1544
1555
  }
1545
1556
  }), e);
1546
1557
  }
1547
- var Bn = /* @__PURE__ */ C("<input class=SearchOpenerOverlay-input type=search required>"), Mn = /* @__PURE__ */ C("<div class=SearchOpenerOverlay><form class=SearchOpenerOverlay-form><button class=SearchOpenerOverlay-btn type=submit>");
1548
- function Dn({
1558
+ var Dn = /* @__PURE__ */ x("<input class=SearchOpenerOverlay-input type=search required>"), qn = /* @__PURE__ */ x("<div class=SearchOpenerOverlay><form class=SearchOpenerOverlay-form><button class=SearchOpenerOverlay-btn type=submit>");
1559
+ function Vn({
1549
1560
  searchURL: e,
1550
1561
  language: t,
1551
1562
  setSearchFormOverlayIsOpen: n
1552
1563
  }) {
1553
1564
  let r;
1554
- const [o, i] = x(""), {
1565
+ const [s, i] = P(""), {
1555
1566
  t: a
1556
- } = ae(t), s = (() => {
1557
- var l = Bn();
1558
- return l.addEventListener("change", (u) => i(u.currentTarget.value)), _(() => ie(l, "placeholder", a("searchApp.search"))), _(() => l.value = o()), l;
1567
+ } = le(t), o = (() => {
1568
+ var l = Dn();
1569
+ return l.addEventListener("change", (u) => i(u.currentTarget.value)), _(() => ae(l, "placeholder", a("searchApp.search"))), _(() => l.value = s()), l;
1559
1570
  })(), c = (l) => {
1560
- l.preventDefault(), window.location.href = `${e}#/q/${encodeURIComponent(o())}`, n(!1);
1571
+ l.preventDefault(), window.location.href = `${e}#/q/${encodeURIComponent(s())}`, n(!1);
1561
1572
  };
1562
- return be(() => {
1563
- s.focus();
1573
+ return Se(() => {
1574
+ o.focus();
1564
1575
  }), (() => {
1565
- var l = Mn(), u = l.firstChild, h = u.firstChild;
1576
+ var l = qn(), u = l.firstChild, h = u.firstChild;
1566
1577
  l.$$click = (m) => {
1567
1578
  m.target === r && n(!1);
1568
1579
  };
1569
1580
  var p = r;
1570
- return typeof p == "function" ? xt(p, l) : r = l, u.addEventListener("submit", c), P(u, s, h), P(h, () => a("searchApp.search")), l;
1581
+ return typeof p == "function" ? Ot(p, l) : r = l, u.addEventListener("submit", c), L(u, o, h), L(h, () => a("searchApp.search")), l;
1571
1582
  })();
1572
1583
  }
1573
- se(["click"]);
1574
- var qn = /* @__PURE__ */ C('<button type=button class=SearchOpenerBtn><svg class=SearchOpenerBtn-svg width=20 height=20 version=1.1 id=Capa_1 xmlns=http://www.w3.org/2000/svg viewBox="0 0 490.4 490.4"><title>Search Icon</title><g id=SVGRepo_bgCarrier stroke-width=0></g><g id=SVGRepo_tracerCarrier stroke-linecap=round stroke-linejoin=round></g><g id=SVGRepo_iconCarrier><g><path d="M484.1,454.796l-110.5-110.6c29.8-36.3,47.6-82.8,47.6-133.4c0-116.3-94.3-210.6-210.6-210.6S0,94.496,0,210.796 s94.3,210.6,210.6,210.6c50.8,0,97.4-18,133.8-48l110.5,110.5c12.9,11.8,25,4.2,29.2,0C492.5,475.596,492.5,463.096,484.1,454.796z M41.1,210.796c0-93.6,75.9-169.5,169.5-169.5s169.6,75.9,169.6,169.5s-75.9,169.5-169.5,169.5S41.1,304.396,41.1,210.796z"></path> '), Vn = /* @__PURE__ */ C("<div>");
1575
- function Wn({
1584
+ ie(["click"]);
1585
+ var Wn = /* @__PURE__ */ x('<button type=button class=SearchOpenerBtn><svg class=SearchOpenerBtn-svg width=20 height=20 version=1.1 id=Capa_1 xmlns=http://www.w3.org/2000/svg viewBox="0 0 490.4 490.4"><title>Search Icon</title><g id=SVGRepo_bgCarrier stroke-width=0></g><g id=SVGRepo_tracerCarrier stroke-linecap=round stroke-linejoin=round></g><g id=SVGRepo_iconCarrier><g><path d="M484.1,454.796l-110.5-110.6c29.8-36.3,47.6-82.8,47.6-133.4c0-116.3-94.3-210.6-210.6-210.6S0,94.496,0,210.796 s94.3,210.6,210.6,210.6c50.8,0,97.4-18,133.8-48l110.5,110.5c12.9,11.8,25,4.2,29.2,0C492.5,475.596,492.5,463.096,484.1,454.796z M41.1,210.796c0-93.6,75.9-169.5,169.5-169.5s169.6,75.9,169.6,169.5s-75.9,169.5-169.5,169.5S41.1,304.396,41.1,210.796z"></path> '), Gn = /* @__PURE__ */ x("<div>");
1586
+ function Kn({
1576
1587
  searchIconColor: e,
1577
1588
  language: t,
1578
1589
  searchURL: n
1579
1590
  }) {
1580
- const [r, o] = x(!1), i = (() => {
1581
- var s = qn(), c = s.firstChild;
1582
- return e != null ? c.style.setProperty("fill", e) : c.style.removeProperty("fill"), s;
1583
- })(), a = Vn();
1584
- return document.body.appendChild(a), i.addEventListener("click", () => o(!0)), Ee(() => A(q, {
1591
+ const [r, s] = P(!1), i = (() => {
1592
+ var o = Wn(), c = o.firstChild;
1593
+ return e != null ? c.style.setProperty("fill", e) : c.style.removeProperty("fill"), o;
1594
+ })(), a = Gn();
1595
+ return document.body.appendChild(a), i.addEventListener("click", () => s(!0)), Re(() => A(D, {
1585
1596
  get when() {
1586
1597
  return r();
1587
1598
  },
1588
1599
  get children() {
1589
- return A(Dn, {
1600
+ return A(Vn, {
1590
1601
  searchURL: n,
1591
1602
  language: t,
1592
- setSearchFormOverlayIsOpen: o
1603
+ setSearchFormOverlayIsOpen: s
1593
1604
  });
1594
1605
  }
1595
1606
  }), a), i;
1596
1607
  }
1597
- function Gn(e, {
1608
+ function Hn(e, {
1598
1609
  language: t
1599
1610
  }) {
1600
1611
  const n = e.dataset.searchUrl, r = e.dataset.iconColor;
1601
1612
  if (!t) throw new Error("Missing language");
1602
1613
  if (!n) throw new Error("Missing search url");
1603
- Ee(() => A(Wn, {
1614
+ Re(() => A(Kn, {
1604
1615
  language: t,
1605
1616
  searchURL: n,
1606
1617
  searchIconColor: r
@@ -1608,14 +1619,14 @@ function Gn(e, {
1608
1619
  }
1609
1620
  document.addEventListener("DOMContentLoaded", () => {
1610
1621
  const e = document.documentElement.lang, t = {
1611
- searchOpener: Gn,
1612
- searchForm: jn,
1613
- infiniteLoading: Qt
1622
+ searchOpener: Hn,
1623
+ searchForm: Mn,
1624
+ infiniteLoading: Yt
1614
1625
  }, n = document.querySelectorAll("[data-effect]");
1615
1626
  for (const r of n) {
1616
- const o = r.dataset.effect;
1617
- if (!o) continue;
1618
- const i = t[o];
1627
+ const s = r.dataset.effect;
1628
+ if (!s) continue;
1629
+ const i = t[s];
1619
1630
  i && i(r, {
1620
1631
  language: e
1621
1632
  });