@manyducks.co/dolla 2.0.0-alpha.54 → 2.0.0-alpha.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/README.md +1 -12
  2. package/dist/core/context.d.ts +81 -42
  3. package/dist/core/env.d.ts +2 -8
  4. package/dist/core/index.d.ts +7 -9
  5. package/dist/core/logger.d.ts +3 -3
  6. package/dist/core/markup.d.ts +44 -43
  7. package/dist/core/mount.d.ts +11 -6
  8. package/dist/core/nodes/dom.d.ts +6 -6
  9. package/dist/core/nodes/dynamic.d.ts +15 -17
  10. package/dist/core/nodes/html.d.ts +11 -23
  11. package/dist/core/nodes/portal.d.ts +9 -13
  12. package/dist/core/nodes/repeat.d.ts +13 -18
  13. package/dist/core/nodes/view.d.ts +14 -95
  14. package/dist/core/ref.d.ts +2 -6
  15. package/dist/core/symbols.d.ts +1 -3
  16. package/dist/core/views/default-crash-view.d.ts +1 -1
  17. package/dist/core/views/fragment.d.ts +1 -2
  18. package/dist/fragment-BahD_BJA.js +7 -0
  19. package/dist/fragment-BahD_BJA.js.map +1 -0
  20. package/dist/http.js +1 -1
  21. package/dist/i18n.js +14 -14
  22. package/dist/i18n.js.map +1 -1
  23. package/dist/index.js +50 -64
  24. package/dist/index.js.map +1 -1
  25. package/dist/jsx-dev-runtime.d.ts +1 -1
  26. package/dist/jsx-dev-runtime.js +8 -8
  27. package/dist/jsx-dev-runtime.js.map +1 -1
  28. package/dist/jsx-runtime.d.ts +2 -2
  29. package/dist/jsx-runtime.js +9 -9
  30. package/dist/jsx-runtime.js.map +1 -1
  31. package/dist/{logger-CBfhf3fA.js → logger-sSxIw5od.js} +143 -142
  32. package/dist/logger-sSxIw5od.js.map +1 -0
  33. package/dist/markup-DS7yYBga.js +844 -0
  34. package/dist/markup-DS7yYBga.js.map +1 -0
  35. package/dist/router/index.d.ts +1 -1
  36. package/dist/router/router.d.ts +10 -7
  37. package/dist/router-D43DV_bv.js +489 -0
  38. package/dist/router-D43DV_bv.js.map +1 -0
  39. package/dist/router.js +1 -1
  40. package/dist/router.js.map +1 -1
  41. package/dist/{typeChecking-EAVNeFyB.js → typeChecking-BJ-ymQ2F.js} +7 -12
  42. package/dist/{typeChecking-EAVNeFyB.js.map → typeChecking-BJ-ymQ2F.js.map} +1 -1
  43. package/dist/types.d.ts +13 -14
  44. package/docs/mixins.md +1 -1
  45. package/docs/ref.md +93 -0
  46. package/notes/scratch.md +24 -0
  47. package/package.json +2 -2
  48. package/dist/core/mixin.d.ts +0 -62
  49. package/dist/core/nodes/fragment.d.ts +0 -19
  50. package/dist/core/nodes/outlet.d.ts +0 -20
  51. package/dist/core/store.d.ts +0 -57
  52. package/dist/core/views/passthrough.d.ts +0 -5
  53. package/dist/fragment-CmWsN-4Y.js +0 -8
  54. package/dist/fragment-CmWsN-4Y.js.map +0 -1
  55. package/dist/logger-CBfhf3fA.js.map +0 -1
  56. package/dist/router-BoJac1lD.js +0 -482
  57. package/dist/router-BoJac1lD.js.map +0 -1
  58. package/dist/view-BKpHFpWG.js +0 -1044
  59. package/dist/view-BKpHFpWG.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { c as T, t as q, i as B } from "./typeChecking-EAVNeFyB.js";
1
+ import { c as E, t as q, b as B } from "./typeChecking-BJ-ymQ2F.js";
2
2
  var v = /* @__PURE__ */ ((e) => (e[e.Computed = 1] = "Computed", e[e.Effect = 2] = "Effect", e[e.Tracking = 4] = "Tracking", e[e.Notified = 8] = "Notified", e[e.Recursed = 16] = "Recursed", e[e.Dirty = 32] = "Dirty", e[e.PendingComputed = 64] = "PendingComputed", e[e.PendingEffect = 128] = "PendingEffect", e[e.Propagated = 224] = "Propagated", e))(v || {});
3
3
  function _({
4
4
  updateComputed: e,
@@ -22,9 +22,9 @@ function _({
22
22
  s.depsTail = c;
23
23
  return;
24
24
  }
25
- const o = n.subsTail;
26
- if (!(o !== void 0 && o.sub === s && E(o, s)))
27
- return u(n, s, c, i);
25
+ const u = n.subsTail;
26
+ if (!(u !== void 0 && u.sub === s && T(u, s)))
27
+ return o(n, s, c, i);
28
28
  },
29
29
  /**
30
30
  * Traverses and marks subscribers starting from the provided link.
@@ -38,15 +38,15 @@ function _({
38
38
  propagate(n) {
39
39
  let s = 32, i = n, c = 0;
40
40
  e: do {
41
- const o = n.sub, a = o.flags;
42
- if (!(a & 244) && (o.flags = a | s | 8, !0) || a & 16 && !(a & 4) && (o.flags = a & -17 | s | 8, !0) || !(a & 224) && E(n, o) && (o.flags = a | 16 | s | 8, o.subs !== void 0)) {
43
- const g = o.subs;
41
+ const u = n.sub, a = u.flags;
42
+ if (!(a & 244) && (u.flags = a | s | 8, !0) || a & 16 && !(a & 4) && (u.flags = a & -17 | s | 8, !0) || !(a & 224) && T(n, u) && (u.flags = a | 16 | s | 8, u.subs !== void 0)) {
43
+ const g = u.subs;
44
44
  if (g !== void 0) {
45
45
  g.nextSub !== void 0 ? (g.prevSub = i, n = i = g, s = 64, ++c) : (n = g, s = a & 2 ? 128 : 64);
46
46
  continue;
47
47
  }
48
- a & 2 && (r !== void 0 ? r.depsTail.nextDep = o.deps : f = o, r = o);
49
- } else a & (4 | s) ? !(a & s) && a & 224 && E(n, o) && (o.flags = a | s) : (o.flags = a | s | 8, (a & 10) === 2 && (r !== void 0 ? r.depsTail.nextDep = o.deps : f = o, r = o));
48
+ a & 2 && (r !== void 0 ? r.depsTail.nextDep = u.deps : f = u, r = u);
49
+ } else a & (4 | s) ? !(a & s) && a & 224 && T(n, u) && (u.flags = a | s) : (u.flags = a | s | 8, (a & 10) === 2 && (r !== void 0 ? r.depsTail.nextDep = u.deps : f = u, r = u));
50
50
  if ((n = i.nextSub) !== void 0) {
51
51
  i = n, s = c ? 64 : 32;
52
52
  continue;
@@ -153,21 +153,21 @@ function _({
153
153
  }
154
154
  }
155
155
  };
156
- function u(n, s, i, c) {
157
- const o = {
156
+ function o(n, s, i, c) {
157
+ const u = {
158
158
  dep: n,
159
159
  sub: s,
160
160
  nextDep: i,
161
161
  prevSub: void 0,
162
162
  nextSub: void 0
163
163
  };
164
- if (c === void 0 ? s.deps = o : c.nextDep = o, n.subs === void 0)
165
- n.subs = o;
164
+ if (c === void 0 ? s.deps = u : c.nextDep = u, n.subs === void 0)
165
+ n.subs = u;
166
166
  else {
167
167
  const a = n.subsTail;
168
- o.prevSub = a, a.nextSub = o;
168
+ u.prevSub = a, a.nextSub = u;
169
169
  }
170
- return s.depsTail = o, n.subsTail = o, o;
170
+ return s.depsTail = u, n.subsTail = u, u;
171
171
  }
172
172
  function l(n) {
173
173
  let s = 0, i;
@@ -175,13 +175,13 @@ function _({
175
175
  i = !1;
176
176
  const c = n.dep;
177
177
  if ("flags" in c) {
178
- const o = c.flags;
179
- if ((o & 33) === 33) {
178
+ const u = c.flags;
179
+ if ((u & 33) === 33) {
180
180
  if (e(c)) {
181
181
  const a = c.subs;
182
182
  a.nextSub !== void 0 && d(a), i = !0;
183
183
  }
184
- } else if ((o & 65) === 65) {
184
+ } else if ((u & 65) === 65) {
185
185
  const a = c.subs;
186
186
  a.nextSub !== void 0 && (a.prevSub = n), n = c.deps, ++s;
187
187
  continue;
@@ -192,27 +192,27 @@ function _({
192
192
  continue;
193
193
  }
194
194
  if (s) {
195
- let o = n.sub;
195
+ let u = n.sub;
196
196
  do {
197
197
  --s;
198
- const a = o.subs;
198
+ const a = u.subs;
199
199
  if (i) {
200
- if (e(o)) {
201
- (n = a.prevSub) !== void 0 ? (a.prevSub = void 0, d(o.subs), o = n.sub) : o = a.sub;
200
+ if (e(u)) {
201
+ (n = a.prevSub) !== void 0 ? (a.prevSub = void 0, d(u.subs), u = n.sub) : u = a.sub;
202
202
  continue;
203
203
  }
204
204
  } else
205
- o.flags &= -65;
205
+ u.flags &= -65;
206
206
  if ((n = a.prevSub) !== void 0) {
207
207
  if (a.prevSub = void 0, n.nextDep !== void 0) {
208
208
  n = n.nextDep;
209
209
  continue e;
210
210
  }
211
- o = n.sub;
211
+ u = n.sub;
212
212
  } else {
213
213
  if ((n = a.nextDep) !== void 0)
214
214
  continue e;
215
- o = a.sub;
215
+ u = a.sub;
216
216
  }
217
217
  i = !1;
218
218
  } while (s);
@@ -226,7 +226,7 @@ function _({
226
226
  (i & 96) === 64 && (s.flags = i | 32 | 8, (i & 10) === 2 && (r !== void 0 ? r.depsTail.nextDep = s.deps : f = s, r = s)), n = n.nextSub;
227
227
  } while (n !== void 0);
228
228
  }
229
- function E(n, s) {
229
+ function T(n, s) {
230
230
  const i = s.depsTail;
231
231
  if (i !== void 0) {
232
232
  let c = s.deps;
@@ -242,8 +242,8 @@ function _({
242
242
  }
243
243
  function C(n) {
244
244
  do {
245
- const s = n.dep, i = n.nextDep, c = n.nextSub, o = n.prevSub;
246
- if (c !== void 0 ? c.prevSub = o : s.subsTail = o, o !== void 0 ? o.nextSub = c : s.subs = c, s.subs === void 0 && "deps" in s) {
245
+ const s = n.dep, i = n.nextDep, c = n.nextSub, u = n.prevSub;
246
+ if (c !== void 0 ? c.prevSub = u : s.subsTail = u, u !== void 0 ? u.nextSub = c : s.subs = c, s.subs === void 0 && "deps" in s) {
247
247
  const a = s.flags;
248
248
  a & 32 || (s.flags = a | 32);
249
249
  const g = s.deps;
@@ -257,13 +257,13 @@ function _({
257
257
  }
258
258
  }
259
259
  var {
260
- link: ce,
261
- propagate: ae,
260
+ link: ae,
261
+ propagate: le,
262
262
  updateDirtyFlag: X,
263
263
  startTracking: L,
264
264
  endTracking: A,
265
- processEffectNotifications: le,
266
- processComputedUpdate: de,
265
+ processEffectNotifications: de,
266
+ processComputedUpdate: pe,
267
267
  processPendingInnerEffects: I
268
268
  } = _({
269
269
  updateComputed(e) {
@@ -295,23 +295,23 @@ function K(e) {
295
295
  return e.flags & 128 ? (I(e, e.flags), !0) : !1;
296
296
  }
297
297
  const {
298
- link: O,
298
+ link: m,
299
299
  propagate: Q,
300
300
  updateDirtyFlag: Y,
301
- startTracking: b,
302
- endTracking: N,
301
+ startTracking: O,
302
+ endTracking: b,
303
303
  processEffectNotifications: Z,
304
304
  processComputedUpdate: F,
305
305
  processPendingInnerEffects: ee
306
306
  } = _({
307
307
  updateComputed(e) {
308
308
  const t = p;
309
- p = e, b(e);
309
+ p = e, O(e);
310
310
  try {
311
311
  const f = e.current, r = e.getter(f);
312
312
  return e.equals(f, r) ? !1 : (e.current = r, !0);
313
313
  } finally {
314
- p = t, N(e);
314
+ p = t, b(e);
315
315
  }
316
316
  },
317
317
  notifyEffect(e) {
@@ -319,29 +319,71 @@ const {
319
319
  return t & v.Dirty || t & v.PendingComputed && Y(e, t) ? V(e) : ee(e, e.flags), !0;
320
320
  }
321
321
  });
322
+ function $(e, t) {
323
+ const f = {
324
+ current: e,
325
+ subs: void 0,
326
+ subsTail: void 0
327
+ }, r = (t == null ? void 0 : t.equals) ?? Object.is, o = function() {
328
+ if (arguments.length > 0) {
329
+ let l = arguments[0];
330
+ if (typeof l == "function" && (l = l(f.current)), !r(f.current, l)) {
331
+ f.current = l;
332
+ const d = f.subs;
333
+ d !== void 0 && (Q(d), Z());
334
+ }
335
+ } else
336
+ return p !== void 0 && m(f, p), f.current;
337
+ };
338
+ return o._type = U, o;
339
+ }
340
+ function te(e, t) {
341
+ if (E(e) && e._type === j)
342
+ return e._type === U ? () => e() : e;
343
+ const f = {
344
+ current: void 0,
345
+ equals: (t == null ? void 0 : t.equals) ?? Object.is,
346
+ subs: void 0,
347
+ subsTail: void 0,
348
+ deps: void 0,
349
+ depsTail: void 0,
350
+ flags: v.Computed | v.Dirty,
351
+ getter: (o) => {
352
+ const l = e(o);
353
+ return N(l);
354
+ }
355
+ }, r = function() {
356
+ if (arguments.length > 0)
357
+ throw new Error("Signals cannot be set as their values are derived from the sources they depend on.");
358
+ p !== void 0 && m(f, p);
359
+ const o = f.flags;
360
+ return o & (v.Dirty | v.PendingComputed) && F(f, o), f.current;
361
+ };
362
+ return r._type = j, r;
363
+ }
322
364
  let p;
323
365
  const h = [];
324
- let S = !1;
325
- function te() {
326
- S || (S = !0, queueMicrotask(() => {
327
- S = !1;
366
+ let D = !1;
367
+ function ne() {
368
+ D || (D = !0, queueMicrotask(() => {
369
+ D = !1;
328
370
  for (let e = 0; e < h.length; e++) {
329
371
  const t = h[e], f = p;
330
- p = t, b(t);
372
+ p = t, O(t);
331
373
  try {
332
374
  t.cleanup && (z(), t.cleanup(), R()), t.cleanup = t.fn() ?? void 0;
333
375
  } finally {
334
- p = f, N(t);
376
+ p = f, b(t);
335
377
  }
336
378
  }
337
379
  h.length = 0;
338
380
  }));
339
381
  }
340
382
  function V(e) {
341
- h.push(e), te();
383
+ h.push(e), ne();
342
384
  }
343
- function ne() {
344
- b(this), N(this), queueMicrotask(() => {
385
+ function re() {
386
+ O(this), b(this), queueMicrotask(() => {
345
387
  h.splice(h.indexOf(this), 1), this.cleanup && this.cleanup();
346
388
  });
347
389
  }
@@ -352,13 +394,13 @@ function z() {
352
394
  function R() {
353
395
  p = k.pop();
354
396
  }
355
- const $ = Symbol("SIGNAL"), U = Symbol("SOURCE");
356
- function pe(e) {
397
+ const j = Symbol("SIGNAL"), U = Symbol("SOURCE");
398
+ function se(e) {
357
399
  let t;
358
- return z(), t = D(e), R(), t;
400
+ return z(), t = N(e), R(), t;
359
401
  }
360
- function D(e) {
361
- return T(e) ? e() : e;
402
+ function N(e) {
403
+ return E(e) ? e() : e;
362
404
  }
363
405
  function ge(e) {
364
406
  const t = {
@@ -369,58 +411,16 @@ function ge(e) {
369
411
  depsTail: void 0,
370
412
  flags: v.Effect
371
413
  };
372
- return p !== void 0 && O(t, p), V(t), ne.bind(t);
414
+ return p !== void 0 && m(t, p), V(t), re.bind(t);
373
415
  }
374
416
  function ve(e, t) {
375
- return T(e) ? re(e, t) : j(e === void 0 ? void 0 : e, t);
376
- }
377
- function j(e, t) {
378
- const f = {
379
- current: e,
380
- subs: void 0,
381
- subsTail: void 0
382
- }, r = (t == null ? void 0 : t.equals) ?? Object.is, u = function() {
383
- if (arguments.length > 0) {
384
- let l = arguments[0];
385
- if (typeof l == "function" && (l = l(f.current)), !r(f.current, l)) {
386
- f.current = l;
387
- const d = f.subs;
388
- d !== void 0 && (Q(d), Z());
389
- }
390
- } else
391
- return p !== void 0 && O(f, p), f.current;
392
- };
393
- return u._type = U, u;
394
- }
395
- function re(e, t) {
396
- if (T(e) && e._type === $)
397
- return e._type === U ? () => e() : e;
398
- const f = {
399
- current: void 0,
400
- equals: (t == null ? void 0 : t.equals) ?? Object.is,
401
- subs: void 0,
402
- subsTail: void 0,
403
- deps: void 0,
404
- depsTail: void 0,
405
- flags: v.Computed | v.Dirty,
406
- getter: (u) => {
407
- const l = e(u);
408
- return D(l);
409
- }
410
- }, r = function() {
411
- if (arguments.length > 0)
412
- throw new Error("Signals cannot be set as their values are derived from the sources they depend on.");
413
- p !== void 0 && O(f, p);
414
- const u = f.flags;
415
- return u & (v.Dirty | v.PendingComputed) && F(f, u), f.current;
416
- };
417
- return r._type = $, r;
417
+ return E(e) ? te(e, t) : $(e === void 0 ? void 0 : e, t);
418
418
  }
419
- const se = () => {
419
+ const fe = () => {
420
420
  };
421
- let w = 1;
421
+ let S = 1;
422
422
  function he() {
423
- return w = w % Number.MAX_SAFE_INTEGER + 1, w.toString(36) + Date.now().toString(36);
423
+ return S = S % Number.MAX_SAFE_INTEGER + 1, S.toString(36) + Date.now().toString(36);
424
424
  }
425
425
  function ye(e, t) {
426
426
  return Object.is(e, t);
@@ -433,44 +433,44 @@ function xe(e, t) {
433
433
  switch (f) {
434
434
  case "object":
435
435
  let r = 0;
436
- for (const u in e) {
437
- if (e[u] !== t[u]) return !1;
436
+ for (const o in e) {
437
+ if (e[o] !== t[o]) return !1;
438
438
  r++;
439
439
  }
440
440
  return Object.keys(t).length === r;
441
441
  case "array":
442
442
  if (e.length !== t.length) return !1;
443
- for (let u = 0; u < e.length; u++)
444
- if (e[u] !== t[u]) return !1;
443
+ for (let o = 0; o < e.length; o++)
444
+ if (e[o] !== t[o]) return !1;
445
445
  return !0;
446
446
  case "map":
447
447
  if (e.size !== t.size) return !1;
448
- for (const u of e.keys())
449
- if (e[u] !== t[u]) return !1;
448
+ for (const o of e.keys())
449
+ if (e[o] !== t[o]) return !1;
450
450
  return !0;
451
451
  case "set":
452
- if (T(e.symmetricDifference))
452
+ if (E(e.symmetricDifference))
453
453
  return e.symmetricDifference(t).size === 0;
454
- for (const u of e.keys())
455
- if (e[u] !== t.get(u)) return !1;
454
+ for (const o of e.keys())
455
+ if (e[o] !== t.get(o)) return !1;
456
456
  return !0;
457
457
  }
458
458
  return !1;
459
459
  }
460
- function m(e, t) {
460
+ function w(e, t) {
461
461
  if (e === t) return !0;
462
462
  if (e && t && typeof e == "object" && typeof t == "object") {
463
463
  if (e.constructor !== t.constructor) return !1;
464
- var f, r, u;
464
+ var f, r, o;
465
465
  if (Array.isArray(e)) {
466
466
  if (f = e.length, f != t.length) return !1;
467
- for (r = f; r-- !== 0; ) if (!m(e[r], t[r])) return !1;
467
+ for (r = f; r-- !== 0; ) if (!w(e[r], t[r])) return !1;
468
468
  return !0;
469
469
  }
470
470
  if (e instanceof Map && t instanceof Map) {
471
471
  if (e.size !== t.size) return !1;
472
472
  for (r of e.entries()) if (!t.has(r[0])) return !1;
473
- for (r of e.entries()) if (!m(r[1], t.get(r[0]))) return !1;
473
+ for (r of e.entries()) if (!w(r[1], t.get(r[0]))) return !1;
474
474
  return !0;
475
475
  }
476
476
  if (e instanceof Set && t instanceof Set) {
@@ -486,23 +486,23 @@ function m(e, t) {
486
486
  if (e.constructor === RegExp) return e.source === t.source && e.flags === t.flags;
487
487
  if (e.valueOf !== Object.prototype.valueOf) return e.valueOf() === t.valueOf();
488
488
  if (e.toString !== Object.prototype.toString) return e.toString() === t.toString();
489
- if (u = Object.keys(e), f = u.length, f !== Object.keys(t).length) return !1;
490
- for (r = f; r-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(t, u[r])) return !1;
489
+ if (o = Object.keys(e), f = o.length, f !== Object.keys(t).length) return !1;
490
+ for (r = f; r-- !== 0; ) if (!Object.prototype.hasOwnProperty.call(t, o[r])) return !1;
491
491
  for (r = f; r-- !== 0; ) {
492
- var l = u[r];
493
- if (!m(e[l], t[l])) return !1;
492
+ var l = o[r];
493
+ if (!w(e[l], t[l])) return !1;
494
494
  }
495
495
  return !0;
496
496
  }
497
497
  return e !== e && t !== t;
498
498
  }
499
- function De(e, t) {
499
+ function Ee(e, t) {
500
500
  const f = {};
501
501
  for (const r in t)
502
502
  e.includes(r) || (f[r] = t[r]);
503
503
  return f;
504
504
  }
505
- function fe(e) {
505
+ function ie(e) {
506
506
  let t = 0;
507
507
  for (let f = 0; f < e.length; f++)
508
508
  t = (t + e.charCodeAt(f) * 10) % 360;
@@ -516,22 +516,22 @@ function M(e) {
516
516
  negative: []
517
517
  }, f = e.split(",").map((r) => r.trim()).filter((r) => r !== "");
518
518
  for (let r of f) {
519
- let u = "positive";
520
- r.startsWith("-") && (u = "negative", r = r.slice(1)), r === "*" ? t[u].push(function() {
519
+ let o = "positive";
520
+ r.startsWith("-") && (o = "negative", r = r.slice(1)), r === "*" ? t[o].push(function() {
521
521
  return !0;
522
- }) : r.endsWith("*") ? t[u].push(function(l) {
522
+ }) : r.endsWith("*") ? t[o].push(function(l) {
523
523
  return l.startsWith(r.slice(0, r.length - 1));
524
- }) : t[u].push(function(l) {
524
+ }) : t[o].push(function(l) {
525
525
  return l === r;
526
526
  });
527
527
  }
528
528
  return function(r) {
529
- const { positive: u, negative: l } = t;
530
- return !(l.some((d) => d(r)) || u.length > 0 && !u.some((d) => d(r)));
529
+ const { positive: o, negative: l } = t;
530
+ return !(l.some((d) => d(r)) || o.length > 0 && !o.some((d) => d(r)));
531
531
  };
532
532
  }
533
533
  let G = "production";
534
- function ie() {
534
+ function ue() {
535
535
  return G;
536
536
  }
537
537
  function Te(e) {
@@ -542,23 +542,23 @@ let y = {
542
542
  log: "development",
543
543
  warn: "development",
544
544
  error: !0
545
- }, W = M("*,-Dolla.*"), x = [];
546
- function Ee(e) {
545
+ }, W = M("*,-dolla.*"), x = [];
546
+ function De(e) {
547
547
  return x.push(e), function() {
548
548
  x.splice(x.indexOf(e), 1);
549
549
  };
550
550
  }
551
551
  function Se(e, t) {
552
- const f = (t == null ? void 0 : t.console) ?? oe(), r = (u) => {
553
- let l = D(e);
554
- if (y[u] === !1 || B(y[u]) && y[u] !== ie() || !W(l))
555
- return se;
552
+ const f = (t == null ? void 0 : t.console) ?? oe(), r = (o) => {
553
+ let l = se(e);
554
+ if (y[o] === !1 || B(y[o]) && y[o] !== ue() || !W(l))
555
+ return fe;
556
556
  {
557
557
  let d = `%c${l}`;
558
- return t != null && t.tag ? t.tagName ? d += ` %c[${t.tagName}: %c${t.tag}%c]` : d += ` %c[%c${t.tag}%c]` : d += "%c%c%c", f[u].bind(
558
+ return t != null && t.tag ? t.tagName ? d += ` %c[${t.tagName}: %c${t.tag}%c]` : d += ` %c[%c${t.tag}%c]` : d += "%c%c%c", f[o].bind(
559
559
  f,
560
560
  d,
561
- `color:${fe(d)};font-weight:bold`,
561
+ `color:${ie(d)};font-weight:bold`,
562
562
  "color:#777",
563
563
  "color:#aaa",
564
564
  "color:#777"
@@ -578,15 +578,16 @@ function Se(e, t) {
578
578
  get error() {
579
579
  return r("error");
580
580
  },
581
- crash(u) {
581
+ crash(o) {
582
582
  const l = {
583
- error: u,
584
- loggerName: D(e),
583
+ error: o,
584
+ loggerName: N(e),
585
585
  tag: t == null ? void 0 : t.tag,
586
586
  tagName: t == null ? void 0 : t.tagName
587
587
  };
588
588
  for (const d of x)
589
589
  d(l);
590
+ return o;
590
591
  }
591
592
  };
592
593
  }
@@ -608,18 +609,18 @@ function oe() {
608
609
  export {
609
610
  ve as $,
610
611
  ye as a,
611
- ie as b,
612
+ ue as b,
612
613
  Te as c,
613
- m as d,
614
+ w as d,
614
615
  ge as e,
615
616
  Se as f,
616
- D as g,
617
+ N as g,
617
618
  we as h,
618
619
  me as i,
619
620
  he as j,
620
- De as k,
621
- Ee as o,
622
- pe as p,
621
+ Ee as k,
622
+ De as o,
623
+ se as p,
623
624
  xe as s
624
625
  };
625
- //# sourceMappingURL=logger-CBfhf3fA.js.map
626
+ //# sourceMappingURL=logger-sSxIw5od.js.map