jaxs 0.9.0 → 0.9.1

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.
package/dist/jaxs.js CHANGED
@@ -1,10 +1,12 @@
1
1
  const O = (e, t) => e.reduce((s, r) => (r !== t && s.push(r), s), []),
2
2
  M = (e, t) => e.reduce((s, r) => (t(r) || s.push(r), s), []),
3
3
  k = (e, t, s) => (e.splice(t, 0, s), e),
4
- at = {
4
+ $ = (e, t) => (e.includes(t) || e.push(t), e),
5
+ Ve = {
5
6
  remove: O,
6
7
  removeBy: M,
7
8
  insertAt: k,
9
+ appendIfUnique: $,
8
10
  }
9
11
  class ct {
10
12
  constructor(t) {
@@ -29,15 +31,23 @@ class ct {
29
31
  setFalse() {
30
32
  this.update(!1)
31
33
  }
34
+ isTrue() {
35
+ return this.value === !0
36
+ }
37
+ isFalse() {
38
+ return this.value === !1
39
+ }
32
40
  }
33
41
  const f = (e) => new ct(e),
34
- lt = {
42
+ Le = {
35
43
  toggle: (e) => f(e).toggle(),
36
44
  setTrue: (e) => f(e).setTrue(),
37
45
  setFalse: (e) => f(e).setFalse(),
38
46
  reset: (e) => f(e).reset(),
47
+ isTrue: (e) => f(e).isTrue(),
48
+ isFalse: (e) => f(e).isFalse(),
39
49
  }
40
- class ht {
50
+ class lt {
41
51
  constructor(t) {
42
52
  this.store = t
43
53
  }
@@ -84,9 +94,16 @@ class ht {
84
94
  const s = M(this.value, t)
85
95
  this.update(s)
86
96
  }
97
+ includes(t) {
98
+ return this.value.includes(t)
99
+ }
100
+ appendIfUnique(t) {
101
+ const s = this.value
102
+ $(s, t), this.update(s)
103
+ }
87
104
  }
88
- const m = (e) => new ht(e),
89
- dt = {
105
+ const m = (e) => new lt(e),
106
+ ze = {
90
107
  push: (e, t) => m(e).push(t),
91
108
  pop: (e) => m(e).pop(),
92
109
  unshift: (e, t) => m(e).unshift(t),
@@ -96,8 +113,10 @@ const m = (e) => new ht(e),
96
113
  remove: (e, t) => m(e).remove(t),
97
114
  removeBy: (e, t) => m(e).removeBy(t),
98
115
  reset: (e) => m(e).reset(),
116
+ includes: (e, t) => m(e).includes(t),
117
+ appendIfUnique: (e, t) => m(e).appendIfUnique(t),
99
118
  }
100
- class pt {
119
+ class ht {
101
120
  constructor(t) {
102
121
  this.store = t
103
122
  }
@@ -132,28 +151,32 @@ class pt {
132
151
  const s = { ...this.value, ...t }
133
152
  this.update(s)
134
153
  }
154
+ attributeTruthy(t) {
155
+ return !!this.value[t]
156
+ }
135
157
  }
136
- const b = (e) => new pt(e),
137
- mt = {
158
+ const b = (e) => new ht(e),
159
+ Ke = {
138
160
  reset: (e) => b(e).reset(),
139
161
  resetAttribute: (e, t) => b(e).resetAttribute(t),
140
162
  updateAttribute: (e, t, s) => b(e).updateAttribute(t, s),
141
163
  updateAttributes: (e, t) => b(e).updateAttributes(t),
164
+ attributeTruthy: (e, t) => b(e).attributeTruthy(t),
142
165
  },
143
- ft = (e) => typeof e == 'boolean',
144
- bt = (e) => typeof e == 'number',
145
- $ = (e) => typeof e == 'string',
166
+ dt = (e) => typeof e == 'boolean',
167
+ pt = (e) => typeof e == 'number',
168
+ D = (e) => typeof e == 'string',
146
169
  v = (e) => Array.isArray(e),
147
170
  y = (e) => e !== null && !v(e) && typeof e == 'object',
148
171
  Re = {
149
- boolean: ft,
150
- number: bt,
151
- string: $,
172
+ boolean: dt,
173
+ number: pt,
174
+ string: D,
152
175
  array: v,
153
176
  object: y,
154
177
  },
155
- vt = (e, t) => t.createElement(e),
156
- gt = (e, t) => {
178
+ mt = (e, t) => t.createElement(e),
179
+ ft = (e, t) => {
157
180
  for (const s in t) {
158
181
  if (s === '__self') continue
159
182
  const r = t[s].toString()
@@ -161,29 +184,29 @@ const b = (e) => new pt(e),
161
184
  const n = e
162
185
  n.value !== r && (n.value = r)
163
186
  } else
164
- $(r) && r.trim() === '' ? e.removeAttribute(s) : e.setAttribute(s, r)
187
+ D(r) && r.trim() === '' ? e.removeAttribute(s) : e.setAttribute(s, r)
165
188
  }
166
189
  },
167
- yt = (e, t, s) => {
190
+ bt = (e, t, s) => {
168
191
  const r = {}
169
192
  for (const n in t) {
170
- const o = t[n],
171
- a = (c) => s(o, c)
193
+ const i = t[n],
194
+ a = (c) => s(i, c)
172
195
  e.addEventListener(n, a),
173
196
  (r[n] = {
174
197
  domEvent: n,
175
- busEvent: o,
198
+ busEvent: i,
176
199
  listener: a,
177
200
  })
178
201
  }
179
202
  e.eventMaps = r
180
203
  },
181
- Et = (e, t, s, r) => {
182
- const n = vt(e, r.document)
183
- return gt(n, t), yt(n, s, r.publish), n
204
+ vt = (e, t, s, r) => {
205
+ const n = mt(e, r.document)
206
+ return ft(n, t), bt(n, s, r.publish), n
184
207
  },
185
208
  w = 'http://www.w3.org/2000/svg',
186
- At = {
209
+ gt = {
187
210
  animate: !0,
188
211
  animateMotion: !0,
189
212
  animateTransform: !0,
@@ -247,8 +270,8 @@ const b = (e) => new pt(e),
247
270
  use: !0,
248
271
  view: !0,
249
272
  },
250
- xt = (e, t) => !!(At[e] || (e === 'a' && t === w)),
251
- wt = (e, t, s) => {
273
+ yt = (e, t) => !!(gt[e] || (e === 'a' && t === w)),
274
+ Et = (e, t, s) => {
252
275
  const r = s.createElementNS(w, e)
253
276
  for (const n in t)
254
277
  n === '__self' ||
@@ -256,34 +279,34 @@ const b = (e) => new pt(e),
256
279
  r.setAttributeNS(null, n, t[n].toString())
257
280
  return r
258
281
  },
259
- Nt = (e) => e.namespaceURI === w,
260
- _t = (e, t) => t.createTextNode(e)
261
- class St {
282
+ At = (e) => e.namespaceURI === w,
283
+ xt = (e, t) => t.createTextNode(e)
284
+ class wt {
262
285
  constructor(t) {
263
286
  this.value = t.toString()
264
287
  }
265
288
  render(t) {
266
- const s = _t(this.value, t.document)
289
+ const s = xt(this.value, t.document)
267
290
  return (s.__jsx = 'TextNode'), [s]
268
291
  }
269
292
  }
270
- const Tt = (e) => typeof e == 'string' || typeof e == 'number',
271
- jt = (e) => new St(e),
272
- Ot = (e) => (Tt(e) ? jt(e) : e),
273
- D = (e) => Mt(e).map(Ot).flat(),
274
- Mt = (e) => (Array.isArray(e) ? e.flat() : e ? [e] : []),
275
- P = (e, t = {}) => D(e || t.children || []),
276
- kt = (e, t = '') => {
293
+ const Nt = (e) => typeof e == 'string' || typeof e == 'number',
294
+ _t = (e) => new wt(e),
295
+ St = (e) => (Nt(e) ? _t(e) : e),
296
+ P = (e) => Tt(e).map(St).flat(),
297
+ Tt = (e) => (Array.isArray(e) ? e.flat() : e ? [e] : []),
298
+ F = (e, t = {}) => P(e || t.children || []),
299
+ jt = (e, t = '') => {
277
300
  const s = {},
278
301
  r = {}
279
302
  for (const n in e) {
280
- const o = e[n]
303
+ const i = e[n]
281
304
  if (n.match(/^on.+/i)) {
282
305
  const a = n.slice(2).toLowerCase()
283
- r[a] = o ? o.toString() : ''
306
+ r[a] = i ? i.toString() : ''
284
307
  } else {
285
- if (o === !1) continue
286
- n === '__source' ? (s.__source = e.__source) : (s[n] = $t(n, o, t))
308
+ if (i === !1) continue
309
+ n === '__source' ? (s.__source = e.__source) : (s[n] = Ot(n, i, t))
287
310
  }
288
311
  }
289
312
  return {
@@ -291,14 +314,14 @@ const Tt = (e) => typeof e == 'string' || typeof e == 'number',
291
314
  events: r,
292
315
  }
293
316
  },
294
- $t = (e, t, s = '') => (t == null ? s : t.toString()),
295
- Dt = (e, t) => {
317
+ Ot = (e, t, s = '') => (t == null ? s : t.toString()),
318
+ Mt = (e, t) => {
296
319
  const s = e || {},
297
- r = P(t, s)
320
+ r = F(t, s)
298
321
  return (s.children = s.children || r), s
299
322
  },
300
- B = (e, t, s, r = []) => e.reduce(Pt(t, s), r).flat(),
301
- Pt = (e, t) => (s, r) =>
323
+ B = (e, t, s, r = []) => e.reduce(kt(t, s), r).flat(),
324
+ kt = (e, t) => (s, r) =>
302
325
  r
303
326
  ? Array.isArray(r)
304
327
  ? B(r, e, t, s)
@@ -306,7 +329,7 @@ const Tt = (e) => typeof e == 'string' || typeof e == 'number',
306
329
  : s
307
330
  class V {
308
331
  constructor(t) {
309
- this.collection = D(t)
332
+ this.collection = P(t)
310
333
  }
311
334
  render(t, s) {
312
335
  this.parentElement = s
@@ -322,7 +345,7 @@ class V {
322
345
  t.forEach((r) => s.appendChild(r))
323
346
  }
324
347
  }
325
- class Bt {
348
+ class $t {
326
349
  constructor(t, s) {
327
350
  ;(this.type = t), (this.attributes = s)
328
351
  }
@@ -348,13 +371,13 @@ class Bt {
348
371
  return `${this.type}${t}${s}${r}`
349
372
  }
350
373
  }
351
- class Vt {
374
+ class Dt {
352
375
  constructor(t, s, r = []) {
353
376
  this.type = t
354
- const { events: n, attributes: o } = kt(s)
377
+ const { events: n, attributes: i } = jt(s)
355
378
  ;(this.events = n),
356
- (this.attributes = o),
357
- (this.isSvg = xt(this.type, this.attributes.xmlns)),
379
+ (this.attributes = i),
380
+ (this.isSvg = yt(this.type, this.attributes.xmlns)),
358
381
  (this.children = new V(r))
359
382
  }
360
383
  render(t) {
@@ -365,24 +388,24 @@ class Vt {
365
388
  return this.isSvg ? this.generateSvgDom(t) : this.generateHtmlDom(t)
366
389
  }
367
390
  generateHtmlDom(t) {
368
- const s = Et(this.type, this.attributes, this.events, t)
391
+ const s = vt(this.type, this.attributes, this.events, t)
369
392
  return (s.__jsx = this.jsxKey()), s
370
393
  }
371
394
  generateSvgDom(t) {
372
- const s = wt(this.type, this.attributes, t.document)
395
+ const s = Et(this.type, this.attributes, t.document)
373
396
  return (s.__jsx = this.jsxKey()), s
374
397
  }
375
398
  jsxKey() {
376
- return new Bt(this.type, this.attributes).generate()
399
+ return new $t(this.type, this.attributes).generate()
377
400
  }
378
401
  }
379
- const Ft = (e, t, ...s) =>
380
- typeof e == 'string' ? new Vt(e, t, s) : e(Dt(t, s))
381
- Ft.fragment = (e, t) => {
382
- const s = P(t, e)
402
+ const Pt = (e, t, ...s) =>
403
+ typeof e == 'string' ? new Dt(e, t, s) : e(Mt(t, s))
404
+ Pt.fragment = (e, t) => {
405
+ const s = F(t, e)
383
406
  return new V(s)
384
407
  }
385
- class Lt {
408
+ class Ft {
386
409
  constructor(t, s, r) {
387
410
  ;(this.template = t),
388
411
  (this.selector = s),
@@ -407,49 +430,49 @@ class Lt {
407
430
  return this.renderKit.document.querySelector(this.selector)
408
431
  }
409
432
  }
410
- const zt = (e, t, s) => {
411
- const r = new Lt(e, t, s)
433
+ const Bt = (e, t, s) => {
434
+ const r = new Ft(e, t, s)
412
435
  return r.renderAndAttach(s), r
413
436
  },
414
- F = 'go-to-href',
415
- L = 'go-to',
437
+ L = 'go-to-href',
438
+ z = 'go-to',
416
439
  g = 'navigation:location-change',
417
- z = 'navigation:route-change',
418
- Kt = /* @__PURE__ */ Object.freeze(
440
+ K = 'navigation:route-change',
441
+ Vt = /* @__PURE__ */ Object.freeze(
419
442
  /* @__PURE__ */ Object.defineProperty(
420
443
  {
421
444
  __proto__: null,
422
- linkNavigationEvent: F,
445
+ linkNavigationEvent: L,
423
446
  locationChangeEvent: g,
424
- navigationEvent: L,
425
- routeChangeEvent: z,
447
+ navigationEvent: z,
448
+ routeChangeEvent: K,
426
449
  },
427
450
  Symbol.toStringTag,
428
451
  { value: 'Module' },
429
452
  ),
430
453
  ),
431
- K = (e) => {
454
+ R = (e) => {
432
455
  e.create('route', {
433
456
  host: '',
434
457
  path: '',
435
458
  query: {},
436
459
  })
437
460
  },
438
- R = (e) => {
461
+ U = (e) => {
439
462
  const t = e.closest('[href]')
440
463
  return (t && t.getAttribute('href')) || ''
441
464
  },
442
465
  N = ({ payload: e, publish: t, window: s }) => {
443
466
  s.history.pushState(null, '', e), t(g, null)
444
467
  },
445
- U = (e) => {
468
+ q = (e) => {
446
469
  const t = e.payload
447
470
  if (!t || !t.target) return
448
471
  t.preventDefault()
449
- const s = R(t.target)
472
+ const s = U(t.target)
450
473
  N({ ...e, payload: s })
451
474
  },
452
- C = (e) =>
475
+ I = (e) =>
453
476
  e
454
477
  .replace(/^\?/, '')
455
478
  .split('&')
@@ -458,55 +481,55 @@ const zt = (e, t, s) => {
458
481
  const r = s.split('=')
459
482
  return (t[r[0]] = r[1]), t
460
483
  }, {}),
461
- q = (e) => {
484
+ C = (e) => {
462
485
  const { state: t, publish: s, window: r } = e,
463
- { host: n, pathname: o, search: a } = r.location,
464
- c = o,
465
- u = C(a),
486
+ { host: n, pathname: i, search: a } = r.location,
487
+ c = i,
488
+ u = I(a),
466
489
  h = {
467
490
  host: n,
468
491
  path: c,
469
492
  query: u,
470
493
  }
471
- t.store('route').update(h), s(z, h)
494
+ t.store('route').update(h), s(K, h)
472
495
  },
473
- I = (e) => {
496
+ J = (e) => {
474
497
  const { subscribe: t } = e
475
- t(F, U),
476
- t(L, (s) => {
498
+ t(L, q),
499
+ t(z, (s) => {
477
500
  N(s)
478
501
  })
479
502
  },
480
- J = (e) => {
503
+ G = (e) => {
481
504
  const { publish: t, subscribe: s, state: r, window: n } = e
482
- K(r), n.addEventListener('popstate', () => t(g, null)), s(g, q)
505
+ R(r), n.addEventListener('popstate', () => t(g, null)), s(g, C)
483
506
  },
484
- G = (e) => {
507
+ H = (e) => {
485
508
  setTimeout(() => e.publish(g, null), 0)
486
509
  },
487
- H = (e) => {
488
- J(e), I(e), G(e)
510
+ Q = (e) => {
511
+ G(e), J(e), H(e)
489
512
  },
490
- Rt = /* @__PURE__ */ Object.freeze(
513
+ Lt = /* @__PURE__ */ Object.freeze(
491
514
  /* @__PURE__ */ Object.defineProperty(
492
515
  {
493
516
  __proto__: null,
494
- publishLocation: G,
495
- startNavigation: H,
496
- subscribeToHistoryChange: J,
497
- subscribeToNavigation: I,
517
+ publishLocation: H,
518
+ startNavigation: Q,
519
+ subscribeToHistoryChange: G,
520
+ subscribeToNavigation: J,
498
521
  },
499
522
  Symbol.toStringTag,
500
523
  { value: 'Module' },
501
524
  ),
502
525
  )
503
- class Q {
526
+ class W {
504
527
  constructor({
505
528
  window: t,
506
529
  document: s,
507
530
  publish: r,
508
531
  subscribe: n,
509
- bus: o,
532
+ bus: i,
510
533
  state: a,
511
534
  renderKit: c,
512
535
  }) {
@@ -514,30 +537,30 @@ class Q {
514
537
  (this.document = s),
515
538
  (this.publish = r),
516
539
  (this.subscribe = n),
517
- (this.bus = o),
540
+ (this.bus = i),
518
541
  (this.state = a),
519
542
  (this.renderKit = c),
520
543
  (this.roots = [])
521
544
  }
522
545
  render(t, s) {
523
- const r = zt(t, s, this.renderKit)
546
+ const r = Bt(t, s, this.renderKit)
524
547
  return this.roots.push(r), r
525
548
  }
526
549
  startNavigation() {
527
- H(this)
550
+ Q(this)
528
551
  }
529
552
  }
530
553
  const Ue = /* @__PURE__ */ Object.freeze(
531
554
  /* @__PURE__ */ Object.defineProperty(
532
555
  {
533
556
  __proto__: null,
534
- App: Q,
557
+ App: W,
535
558
  },
536
559
  Symbol.toStringTag,
537
560
  { value: 'Module' },
538
561
  ),
539
562
  )
540
- class W {
563
+ class X {
541
564
  constructor() {
542
565
  this.lookup = {}
543
566
  }
@@ -564,7 +587,7 @@ class W {
564
587
  this.lookup[t] || (this.lookup[t] = [])
565
588
  }
566
589
  }
567
- class X {
590
+ class Y {
568
591
  constructor() {
569
592
  this.lookup = []
570
593
  }
@@ -583,7 +606,7 @@ class X {
583
606
  return this.lookup.filter((s) => s.matcher.test(t))
584
607
  }
585
608
  }
586
- class Ut {
609
+ class zt {
587
610
  constructor({ publish: t, event: s, payload: r, timer: n }) {
588
611
  ;(this.setNewTimeout = () => {
589
612
  this.stopped ||
@@ -620,7 +643,7 @@ class Ut {
620
643
  ((this.callCount += 1), this.publish(this.event, this.payload))
621
644
  }
622
645
  }
623
- const Ct = (e) => {
646
+ const Kt = (e) => {
624
647
  const { offset: t, period: s } = e,
625
648
  r = ({ callCount: n }) => (t && n == 0 ? t : s)
626
649
  return {
@@ -630,16 +653,16 @@ const Ct = (e) => {
630
653
  timer: r,
631
654
  }
632
655
  },
633
- qt = (e) => {
656
+ Rt = (e) => {
634
657
  let t
635
- 'timer' in e ? (t = e) : (t = Ct(e))
636
- const s = new Ut(t)
658
+ 'timer' in e ? (t = e) : (t = Kt(e))
659
+ const s = new zt(t)
637
660
  return s.start(), s.stop
638
661
  }
639
- class Y {
662
+ class Z {
640
663
  constructor() {
641
- ;(this.exactSubscriptions = new W()),
642
- (this.fuzzySubscriptions = new X()),
664
+ ;(this.exactSubscriptions = new X()),
665
+ (this.fuzzySubscriptions = new Y()),
643
666
  (this.currentIndex = 0)
644
667
  }
645
668
  subscribe(t, s) {
@@ -657,7 +680,7 @@ class Y {
657
680
  ...this.exactSubscriptions.matches(t),
658
681
  ...this.fuzzySubscriptions.matches(t),
659
682
  ]
660
- .sort((n, o) => n.index - o.index)
683
+ .sort((n, i) => n.index - i.index)
661
684
  .forEach((n) => {
662
685
  n.listener(this.listenerOptions(t, s))
663
686
  })
@@ -674,49 +697,49 @@ class Y {
674
697
  }
675
698
  }
676
699
  }
677
- const Z = () => {
678
- const e = new Y()
700
+ const tt = () => {
701
+ const e = new Z()
679
702
  return {
680
703
  bus: e,
681
704
  publish: (r, n) => e.publish(r, n),
682
705
  subscribe: (r, n) => e.subscribe(r, n),
683
706
  }
684
707
  },
685
- Ce = /* @__PURE__ */ Object.freeze(
708
+ qe = /* @__PURE__ */ Object.freeze(
686
709
  /* @__PURE__ */ Object.defineProperty(
687
710
  {
688
711
  __proto__: null,
689
- ExactSubscriptions: W,
690
- FuzzySubscriptions: X,
691
- JaxsBus: Y,
692
- createBus: Z,
693
- publishPeriodically: qt,
712
+ ExactSubscriptions: X,
713
+ FuzzySubscriptions: Y,
714
+ JaxsBus: Z,
715
+ createBus: tt,
716
+ publishPeriodically: Rt,
694
717
  },
695
718
  Symbol.toStringTag,
696
719
  { value: 'Module' },
697
720
  ),
698
721
  ),
699
- It = (e, t) => e === t,
700
- Jt = (e, t) => Object.keys(e).length === Object.keys(t).length,
701
- tt = (e, t) =>
702
- !(y(e) && y(t)) || !Jt(e, t)
722
+ Ut = (e, t) => e === t,
723
+ qt = (e, t) => Object.keys(e).length === Object.keys(t).length,
724
+ et = (e, t) =>
725
+ !(y(e) && y(t)) || !qt(e, t)
703
726
  ? !1
704
727
  : Object.keys(e).every((s) => {
705
728
  const r = e[s],
706
729
  n = t[s]
707
730
  return E(r, n)
708
731
  }),
709
- et = (e, t) =>
732
+ st = (e, t) =>
710
733
  !(v(e) && v(t)) || e.length !== t.length
711
734
  ? !1
712
735
  : e.every((s, r) => {
713
736
  const n = t[r]
714
737
  return E(s, n)
715
738
  }),
716
- E = (e, t) => (y(e) ? tt(e, t) : v(e) ? et(e, t) : It(e, t)),
717
- qe = {
718
- objects: tt,
719
- arrays: et,
739
+ E = (e, t) => (y(e) ? et(e, t) : v(e) ? st(e, t) : Ut(e, t)),
740
+ Ie = {
741
+ objects: et,
742
+ arrays: st,
720
743
  equal: E,
721
744
  }
722
745
  class x {
@@ -748,13 +771,8 @@ class x {
748
771
  return t(this.value)
749
772
  }
750
773
  }
751
- const Gt = {
752
- object: b,
753
- list: m,
754
- boolean: f,
755
- },
756
- _ = 'state'
757
- class st {
774
+ const _ = 'state'
775
+ class rt {
758
776
  constructor(t) {
759
777
  ;(this.publisher = t),
760
778
  (this.stores = {}),
@@ -814,22 +832,21 @@ class st {
814
832
  return `${this.eventNamePrefix}:${t}`
815
833
  }
816
834
  }
817
- const rt = (e) => new st(e),
818
- Ie = /* @__PURE__ */ Object.freeze(
835
+ const nt = (e) => new rt(e),
836
+ Ce = /* @__PURE__ */ Object.freeze(
819
837
  /* @__PURE__ */ Object.defineProperty(
820
838
  {
821
839
  __proto__: null,
822
- State: st,
840
+ State: rt,
823
841
  Store: x,
824
- createState: rt,
842
+ createState: nt,
825
843
  eventName: _,
826
- updaters: Gt,
827
844
  },
828
845
  Symbol.toStringTag,
829
846
  { value: 'Module' },
830
847
  ),
831
848
  )
832
- class Ht {
849
+ class It {
833
850
  constructor(t) {
834
851
  this.setupDomEnvironment(t)
835
852
  }
@@ -839,7 +856,7 @@ class Ht {
839
856
  this.setupState(),
840
857
  this.addBusOptions(),
841
858
  this.setRenderKit(),
842
- new Q({
859
+ new W({
843
860
  window: this.window,
844
861
  document: this.document,
845
862
  publish: this.publish,
@@ -858,11 +875,11 @@ class Ht {
858
875
  : ((this.window = window), (this.document = document))
859
876
  }
860
877
  setupBus() {
861
- const { publish: t, subscribe: s, bus: r } = Z()
878
+ const { publish: t, subscribe: s, bus: r } = tt()
862
879
  ;(this.publish = t), (this.subscribe = s), (this.bus = r)
863
880
  }
864
881
  setupState() {
865
- this.state = rt(this.publish)
882
+ this.state = nt(this.publish)
866
883
  }
867
884
  addBusOptions() {
868
885
  this.bus.addListenerOptions({
@@ -882,10 +899,10 @@ class Ht {
882
899
  }
883
900
  }
884
901
  const Je = (e = {}) => {
885
- const s = new Ht(e).setup()
902
+ const s = new It(e).setup()
886
903
  return s.startNavigation(), s
887
904
  }
888
- var i = /* @__PURE__ */ ((e) => (
905
+ var o = /* @__PURE__ */ ((e) => (
889
906
  (e[(e.removeNode = 0)] = 'removeNode'),
890
907
  (e[(e.insertNode = 1)] = 'insertNode'),
891
908
  (e[(e.replaceNode = 2)] = 'replaceNode'),
@@ -898,88 +915,88 @@ var i = /* @__PURE__ */ ((e) => (
898
915
  (e[(e.changeValue = 9)] = 'changeValue'),
899
916
  (e[(e.changeText = 10)] = 'changeText'),
900
917
  e
901
- ))(i || {})
918
+ ))(o || {})
902
919
  const Ge = /* @__PURE__ */ Object.freeze(
903
920
  /* @__PURE__ */ Object.defineProperty(
904
921
  {
905
922
  __proto__: null,
906
- ChangeInstructionTypes: i,
923
+ ChangeInstructionTypes: o,
907
924
  },
908
925
  Symbol.toStringTag,
909
926
  { value: 'Module' },
910
927
  ),
911
928
  ),
912
- Qt = (e, t) => ({
929
+ Ct = (e, t) => ({
913
930
  source: e,
914
931
  target: t,
915
- type: i.changeText,
932
+ type: o.changeText,
916
933
  data: {},
917
934
  }),
918
- Wt = (e, t) => ({
935
+ Jt = (e, t) => ({
919
936
  source: e,
920
937
  target: t,
921
- type: i.replaceNode,
938
+ type: o.replaceNode,
922
939
  data: {},
923
940
  }),
924
- Xt = (e, t, s) => ({
941
+ Gt = (e, t, s) => ({
925
942
  source: e,
926
943
  target: t,
927
944
  data: s,
928
- type: i.removeAttribute,
945
+ type: o.removeAttribute,
929
946
  }),
930
- Yt = (e, t, s) => ({
947
+ Ht = (e, t, s) => ({
931
948
  source: e,
932
949
  target: t,
933
950
  data: s,
934
- type: i.addAttribute,
951
+ type: o.addAttribute,
935
952
  }),
936
- Zt = (e, t, s) => ({
953
+ Qt = (e, t, s) => ({
937
954
  source: e,
938
955
  target: t,
939
956
  data: s,
940
- type: i.updateAttribute,
957
+ type: o.updateAttribute,
941
958
  }),
942
- te = (e, t, s) => ({
959
+ Wt = (e, t, s) => ({
943
960
  source: e,
944
961
  target: t,
945
962
  data: s,
946
- type: i.removeEvent,
963
+ type: o.removeEvent,
947
964
  }),
948
- ee = (e, t, s) => ({
965
+ Xt = (e, t, s) => ({
949
966
  source: e,
950
967
  target: t,
951
968
  data: s,
952
- type: i.addEvent,
969
+ type: o.addEvent,
953
970
  }),
954
- se = (e, t, s) => ({
971
+ Yt = (e, t, s) => ({
955
972
  source: e,
956
973
  target: t,
957
974
  data: s,
958
- type: i.updateEvent,
975
+ type: o.updateEvent,
959
976
  }),
960
977
  S = (e) => ({
961
978
  source: e,
962
979
  target: e,
963
980
  // for type crap only
964
- type: i.removeNode,
981
+ type: o.removeNode,
965
982
  data: {},
966
983
  }),
967
984
  A = (e, t) => ({
968
985
  target: e,
969
986
  source: e,
970
987
  // for type crap only
971
- type: i.insertNode,
988
+ type: o.insertNode,
972
989
  data: t,
973
990
  }),
974
- re = (e, t, s) => ({
991
+ Zt = (e, t, s) => ({
975
992
  source: e,
976
993
  target: t,
977
- type: i.changeValue,
994
+ type: o.changeValue,
978
995
  data: s,
979
996
  }),
980
- ne = (e, t) => (e.type > t.type ? 1 : e.type < t.type ? -1 : 0),
997
+ te = (e, t) => (e.type > t.type ? 1 : e.type < t.type ? -1 : 0),
981
998
  T = { index: -1 }
982
- class oe {
999
+ class ee {
983
1000
  constructor() {
984
1001
  this.map = {}
985
1002
  }
@@ -1002,7 +1019,7 @@ class oe {
1002
1019
  const s = t && t.__jsx
1003
1020
  if (!(s && this.map[s] && this.map[s].length)) return
1004
1021
  const r = this.map[s]
1005
- this.map[s] = r.reduce((n, o) => (o.element !== t && n.push(o), n), [])
1022
+ this.map[s] = r.reduce((n, i) => (i.element !== t && n.push(i), n), [])
1006
1023
  }
1007
1024
  check(t) {
1008
1025
  const s = t && t.__jsx
@@ -1013,17 +1030,17 @@ class oe {
1013
1030
  }
1014
1031
  }
1015
1032
  const j = (e) => {
1016
- const t = new oe()
1033
+ const t = new ee()
1017
1034
  return t.populate(e), t
1018
1035
  },
1019
- nt = (e, t, s = !1) => {
1036
+ it = (e, t, s = !1) => {
1020
1037
  const r = [],
1021
1038
  n = e.attributes,
1022
- o = n.length,
1039
+ i = n.length,
1023
1040
  a = t.attributes,
1024
1041
  c = a.length
1025
1042
  let u, h, d
1026
- for (u = 0; u < o; u++) {
1043
+ for (u = 0; u < i; u++) {
1027
1044
  d = null
1028
1045
  const l = n.item(u)
1029
1046
  if (l) {
@@ -1037,20 +1054,20 @@ const j = (e) => {
1037
1054
  d
1038
1055
  ? l.value !== d.value &&
1039
1056
  r.push(
1040
- Zt(e, t, {
1057
+ Qt(e, t, {
1041
1058
  name: l.name,
1042
1059
  value: d.value,
1043
1060
  isSvg: s,
1044
1061
  }),
1045
1062
  )
1046
- : r.push(Xt(e, t, { name: l.name, isSvg: s }))
1063
+ : r.push(Gt(e, t, { name: l.name, isSvg: s }))
1047
1064
  }
1048
1065
  }
1049
1066
  for (u = 0; u < c; u++) {
1050
1067
  d = null
1051
1068
  const l = a.item(u)
1052
1069
  if (l) {
1053
- for (h = 0; h < o; h++) {
1070
+ for (h = 0; h < i; h++) {
1054
1071
  const p = n.item(h)
1055
1072
  if (p && p.name == l.name) {
1056
1073
  d = p
@@ -1059,7 +1076,7 @@ const j = (e) => {
1059
1076
  }
1060
1077
  d ||
1061
1078
  r.push(
1062
- Yt(e, t, {
1079
+ Ht(e, t, {
1063
1080
  name: l.name,
1064
1081
  value: l.value,
1065
1082
  isSvg: s,
@@ -1069,27 +1086,27 @@ const j = (e) => {
1069
1086
  }
1070
1087
  return r
1071
1088
  },
1072
- ie = (e, t) => {
1089
+ se = (e, t) => {
1073
1090
  const s = [],
1074
1091
  r = e.eventMaps,
1075
1092
  n = t.eventMaps,
1076
- o = Object.keys(r),
1093
+ i = Object.keys(r),
1077
1094
  a = Object.keys(n)
1078
1095
  return (
1079
- o.forEach((c) => {
1096
+ i.forEach((c) => {
1080
1097
  const u = r[c],
1081
1098
  h = n[c]
1082
1099
  h
1083
1100
  ? h.busEvent !== u.busEvent &&
1084
1101
  s.push(
1085
- se(e, t, {
1102
+ Yt(e, t, {
1086
1103
  name: c,
1087
1104
  targetValue: h.listener,
1088
1105
  sourceValue: u.listener,
1089
1106
  }),
1090
1107
  )
1091
1108
  : s.push(
1092
- te(e, t, {
1109
+ Wt(e, t, {
1093
1110
  name: u.domEvent,
1094
1111
  value: u.listener,
1095
1112
  }),
@@ -1100,7 +1117,7 @@ const j = (e) => {
1100
1117
  h = n[c]
1101
1118
  u ||
1102
1119
  s.push(
1103
- ee(e, t, {
1120
+ Xt(e, t, {
1104
1121
  name: h.domEvent,
1105
1122
  value: h.listener,
1106
1123
  }),
@@ -1109,43 +1126,43 @@ const j = (e) => {
1109
1126
  s
1110
1127
  )
1111
1128
  },
1112
- ue = (e) => e.tagName !== 'INPUT',
1113
- ae = (e, t) => e.value === t.value,
1114
- ce = (e, t) => {
1115
- if (ue(e) || ae(e, t)) return []
1129
+ re = (e) => e.tagName !== 'INPUT',
1130
+ ne = (e, t) => e.value === t.value,
1131
+ ie = (e, t) => {
1132
+ if (re(e) || ne(e, t)) return []
1116
1133
  const s = e,
1117
1134
  r = t
1118
- return [re(s, r, { name: 'value', value: r.value })]
1135
+ return [Zt(s, r, { name: 'value', value: r.value })]
1119
1136
  },
1120
- le = (e, t) => {
1121
- const s = nt(e, t),
1122
- r = ie(e, t),
1123
- n = ce(e, t)
1137
+ oe = (e, t) => {
1138
+ const s = it(e, t),
1139
+ r = se(e, t),
1140
+ n = ie(e, t)
1124
1141
  return s.concat(r).concat(n)
1125
1142
  },
1126
- he = (e, t) => nt(e, t, !0),
1127
- de = (e, t) => (e.textContent !== t.textContent ? [Qt(e, t)] : []),
1128
- pe = (e, t, s) => {
1143
+ ue = (e, t) => it(e, t, !0),
1144
+ ae = (e, t) => (e.textContent !== t.textContent ? [Ct(e, t)] : []),
1145
+ ce = (e, t, s) => {
1129
1146
  let r = []
1130
- if (e.nodeType === 1 && Nt(e)) {
1147
+ if (e.nodeType === 1 && At(e)) {
1131
1148
  const n = e,
1132
- o = t,
1133
- a = he(n, o),
1134
- c = s(n.childNodes, o.childNodes, n)
1149
+ i = t,
1150
+ a = ue(n, i),
1151
+ c = s(n.childNodes, i.childNodes, n)
1135
1152
  r = a.concat(c)
1136
1153
  } else if (e.nodeType === 1) {
1137
1154
  const n = e,
1138
- o = t,
1139
- a = le(n, o),
1140
- c = s(n.childNodes, o.childNodes, n)
1155
+ i = t,
1156
+ a = oe(n, i),
1157
+ c = s(n.childNodes, i.childNodes, n)
1141
1158
  r = a.concat(c)
1142
- } else e.nodeType === 3 && (r = de(e, t))
1159
+ } else e.nodeType === 3 && (r = ae(e, t))
1143
1160
  return r
1144
1161
  },
1145
1162
  ot = (e, t, s) => {
1146
1163
  const r = [],
1147
- n = me(e, t),
1148
- o = j(e),
1164
+ n = le(e, t),
1165
+ i = j(e),
1149
1166
  a = j(t),
1150
1167
  c = []
1151
1168
  let u = 0
@@ -1153,7 +1170,7 @@ const j = (e) => {
1153
1170
  const d = e[u],
1154
1171
  l = t[u]
1155
1172
  if (l && a.check(l)) {
1156
- const p = o.pullMatch(l)
1173
+ const p = i.pullMatch(l)
1157
1174
  a.clear(l),
1158
1175
  p.element
1159
1176
  ? (p.index !== u &&
@@ -1170,140 +1187,140 @@ const j = (e) => {
1170
1187
  : d
1171
1188
  ? a.check(d)
1172
1189
  ? r.push(A(l, { parent: s, index: u }))
1173
- : (o.clear(d), r.push(Wt(d, l)))
1190
+ : (i.clear(d), r.push(Jt(d, l)))
1174
1191
  : r.push(A(l, { parent: s, index: u }))
1175
- } else d && o.pullMatch(d).element && r.push(S(d))
1192
+ } else d && i.pullMatch(d).element && r.push(S(d))
1176
1193
  }
1177
- o.remaining().forEach(({ element: d }) => {
1194
+ i.remaining().forEach(({ element: d }) => {
1178
1195
  r.push(S(d))
1179
1196
  })
1180
1197
  const h = c.reduce(
1181
- (d, { source: l, target: p }) => d.concat(pe(l, p, ot)),
1198
+ (d, { source: l, target: p }) => d.concat(ce(l, p, ot)),
1182
1199
  [],
1183
1200
  )
1184
- return r.concat(h).sort(ne)
1201
+ return r.concat(h).sort(te)
1185
1202
  },
1186
- me = (e, t) => {
1203
+ le = (e, t) => {
1187
1204
  const s = e.length,
1188
1205
  r = t.length
1189
1206
  return s > r ? s : r
1190
1207
  },
1191
- fe = (e, t, s) => {
1208
+ he = (e, t, s) => {
1192
1209
  const r = ot(e, t, s)
1193
1210
  return (
1194
1211
  r.forEach((n) => {
1195
- be(n)
1212
+ de(n)
1196
1213
  }),
1197
1214
  r
1198
1215
  )
1199
1216
  },
1200
- be = (e) => {
1201
- ;(je[e.type] || ve)(e)
1217
+ de = (e) => {
1218
+ ;(Ne[e.type] || pe)(e)
1202
1219
  },
1203
- ve = (e) => {},
1204
- ge = (e) => {
1220
+ pe = (e) => {},
1221
+ me = (e) => {
1205
1222
  const { source: t, target: s } = e
1206
1223
  t.nodeValue = s.textContent
1207
1224
  },
1208
- ye = (e) => {
1225
+ fe = (e) => {
1209
1226
  const { source: t } = e
1210
1227
  t.remove()
1211
1228
  },
1212
- Ee = (e) => {
1229
+ be = (e) => {
1213
1230
  const { target: t, data: s } = e,
1214
1231
  { parent: r, index: n } = s,
1215
- o = r.childNodes[n]
1216
- o ? o && o !== t && r.insertBefore(t, o) : r.appendChild(t)
1232
+ i = r.childNodes[n]
1233
+ i ? i && i !== t && r.insertBefore(t, i) : r.appendChild(t)
1217
1234
  },
1218
- Ae = (e) => {
1235
+ ve = (e) => {
1219
1236
  const { source: t, target: s } = e
1220
1237
  t.replaceWith(s)
1221
1238
  },
1222
- xe = (e) => {
1239
+ ge = (e) => {
1223
1240
  const { source: t, data: s } = e,
1224
1241
  { name: r, isSvg: n } = s
1225
1242
  n ? t.removeAttributeNS(null, r) : t.removeAttribute(r)
1226
1243
  },
1227
- it = (e) => {
1244
+ ut = (e) => {
1228
1245
  const { source: t, data: s } = e,
1229
- { name: r, value: n, isSvg: o } = s
1230
- o ? t.setAttributeNS(null, r, n) : t.setAttribute(r, n)
1246
+ { name: r, value: n, isSvg: i } = s
1247
+ i ? t.setAttributeNS(null, r, n) : t.setAttribute(r, n)
1231
1248
  },
1232
- we = (e) => {
1233
- it(e)
1249
+ ye = (e) => {
1250
+ ut(e)
1234
1251
  },
1235
- Ne = (e) => {
1252
+ Ee = (e) => {
1236
1253
  const t = e.data,
1237
1254
  s = e.source,
1238
1255
  { name: r, value: n } = t
1239
1256
  s.removeEventListener(r, n)
1240
1257
  },
1241
- _e = (e) => {
1258
+ Ae = (e) => {
1242
1259
  const t = e.data,
1243
1260
  s = e.source,
1244
1261
  { name: r, value: n } = t
1245
1262
  s.addEventListener(r, n)
1246
1263
  },
1247
- Se = (e) => {
1264
+ xe = (e) => {
1248
1265
  const t = e.data,
1249
1266
  s = e.source,
1250
- { name: r, sourceValue: n, targetValue: o } = t
1251
- s.removeEventListener(r, n), s.addEventListener(r, o)
1267
+ { name: r, sourceValue: n, targetValue: i } = t
1268
+ s.removeEventListener(r, n), s.addEventListener(r, i)
1252
1269
  },
1253
- Te = (e) => {
1270
+ we = (e) => {
1254
1271
  const t = e.data,
1255
1272
  s = e.source,
1256
1273
  { value: r } = t
1257
1274
  s.value = r
1258
1275
  },
1259
- je = {
1260
- [i.changeText]: ge,
1261
- [i.removeNode]: ye,
1262
- [i.insertNode]: Ee,
1263
- [i.replaceNode]: Ae,
1264
- [i.removeAttribute]: xe,
1265
- [i.addAttribute]: it,
1266
- [i.updateAttribute]: we,
1267
- [i.removeEvent]: Ne,
1268
- [i.addEvent]: _e,
1269
- [i.updateEvent]: Se,
1270
- [i.changeValue]: Te,
1276
+ Ne = {
1277
+ [o.changeText]: me,
1278
+ [o.removeNode]: fe,
1279
+ [o.insertNode]: be,
1280
+ [o.replaceNode]: ve,
1281
+ [o.removeAttribute]: ge,
1282
+ [o.addAttribute]: ut,
1283
+ [o.updateAttribute]: ye,
1284
+ [o.removeEvent]: Ee,
1285
+ [o.addEvent]: Ae,
1286
+ [o.updateEvent]: xe,
1287
+ [o.changeValue]: we,
1271
1288
  },
1272
- Oe = (e, t, s) => {
1289
+ _e = (e, t, s) => {
1273
1290
  const r = [...t]
1274
1291
  return (
1275
1292
  e.forEach((n) => {
1276
- Me(n, r, s)
1293
+ Se(n, r, s)
1277
1294
  }),
1278
1295
  r
1279
1296
  )
1280
1297
  },
1281
- Me = (e, t, s) => {
1282
- const r = Pe[e.type]
1298
+ Se = (e, t, s) => {
1299
+ const r = Me[e.type]
1283
1300
  r && r(e, t, s)
1284
1301
  },
1285
- ke = (e, t) => {
1302
+ Te = (e, t) => {
1286
1303
  const { source: s } = e,
1287
1304
  r = t.indexOf(s)
1288
1305
  r >= 0 && t.splice(r, 1)
1289
1306
  },
1290
- $e = (e, t, s) => {
1307
+ je = (e, t, s) => {
1291
1308
  const { target: r } = e,
1292
1309
  n = e.data,
1293
- { index: o, parent: a } = n
1294
- s === a && t.splice(o, 0, r)
1310
+ { index: i, parent: a } = n
1311
+ s === a && t.splice(i, 0, r)
1295
1312
  },
1296
- De = (e, t) => {
1313
+ Oe = (e, t) => {
1297
1314
  const { target: s, source: r } = e,
1298
1315
  n = t.indexOf(r)
1299
1316
  n >= 0 && (t[n] = s)
1300
1317
  },
1301
- Pe = {
1302
- [i.removeNode]: ke,
1303
- [i.insertNode]: $e,
1304
- [i.replaceNode]: De,
1318
+ Me = {
1319
+ [o.removeNode]: Te,
1320
+ [o.insertNode]: je,
1321
+ [o.replaceNode]: Oe,
1305
1322
  }
1306
- class Be {
1323
+ class ke {
1307
1324
  constructor({ Template: t, subscriptions: s, attributes: r, viewModel: n }) {
1308
1325
  ;(this.Template = t),
1309
1326
  (this.viewModel = n),
@@ -1335,8 +1352,8 @@ class Be {
1335
1352
  this.parentElement = r
1336
1353
  }
1337
1354
  const t = this.generateDom(this.renderKit),
1338
- s = fe(this.dom, t, this.parentElement)
1339
- this.dom = Oe(s, this.dom, this.parentElement)
1355
+ s = he(this.dom, t, this.parentElement)
1356
+ this.dom = _e(s, this.dom, this.parentElement)
1340
1357
  }
1341
1358
  subscribeForRerender() {
1342
1359
  const { subscribe: t } = this.renderKit
@@ -1348,19 +1365,19 @@ class Be {
1348
1365
  return `${_}:${t}`
1349
1366
  }
1350
1367
  }
1351
- const Ve = (e) => e,
1352
- Fe = ({ Template: e, viewModel: t, subscriptions: s }) => (
1368
+ const $e = (e) => e,
1369
+ De = ({ Template: e, viewModel: t, subscriptions: s }) => (
1353
1370
  (s = s || []),
1354
- (t = t || Ve),
1371
+ (t = t || $e),
1355
1372
  (r) =>
1356
- new Be({ Template: e, viewModel: t, subscriptions: s, attributes: r })
1373
+ new ke({ Template: e, viewModel: t, subscriptions: s, attributes: r })
1357
1374
  ),
1358
- Le =
1375
+ Pe =
1359
1376
  (e) =>
1360
1377
  ({ path: t }) =>
1361
1378
  t === e,
1362
- ze = () => !0,
1363
- ut =
1379
+ Fe = () => !0,
1380
+ at =
1364
1381
  (e) =>
1365
1382
  ({ route: t }) => {
1366
1383
  const s = e.find((r) => r.match(t))
@@ -1370,21 +1387,21 @@ const Ve = (e) => e,
1370
1387
  /* @__PURE__ */ Object.defineProperty(
1371
1388
  {
1372
1389
  __proto__: null,
1373
- buildRouter: ut,
1374
- catchAll: ze,
1375
- exactPathMatch: Le,
1390
+ buildRouter: at,
1391
+ catchAll: Fe,
1392
+ exactPathMatch: Pe,
1376
1393
  },
1377
1394
  Symbol.toStringTag,
1378
1395
  { value: 'Module' },
1379
1396
  ),
1380
1397
  ),
1381
- Ke = () => ({
1398
+ Be = () => ({
1382
1399
  render: (e, t) => [],
1383
1400
  }),
1384
1401
  Qe = (e) => {
1385
- const t = ut(e)
1386
- return Fe({
1387
- Template: ({ route: r }) => (t({ route: r }) || Ke)(),
1402
+ const t = at(e)
1403
+ return De({
1404
+ Template: ({ route: r }) => (t({ route: r }) || Be)(),
1388
1405
  subscriptions: ['route'],
1389
1406
  })
1390
1407
  },
@@ -1392,37 +1409,34 @@ const Ve = (e) => e,
1392
1409
  /* @__PURE__ */ Object.defineProperty(
1393
1410
  {
1394
1411
  __proto__: null,
1395
- createRouteState: K,
1396
- events: Kt,
1397
- extractQueryParams: C,
1398
- findHref: R,
1412
+ createRouteState: R,
1413
+ events: Vt,
1414
+ extractQueryParams: I,
1415
+ findHref: U,
1399
1416
  navigate: N,
1400
- onLinkClick: U,
1401
- onLocationChange: q,
1402
- start: Rt,
1417
+ onLinkClick: q,
1418
+ onLocationChange: C,
1419
+ start: Lt,
1403
1420
  },
1404
1421
  Symbol.toStringTag,
1405
1422
  { value: 'Module' },
1406
1423
  ),
1407
- ),
1408
- Xe = {
1409
- RecordStore: mt,
1410
- BooleanStore: lt,
1411
- ListStore: dt,
1412
- ArrayModifiers: at,
1413
- }
1424
+ )
1414
1425
  export {
1415
- qe as Equality,
1426
+ Ve as ArrayModifiers,
1427
+ Le as BooleanStore,
1428
+ Ie as Equality,
1416
1429
  Re as Is,
1417
1430
  Ge as JaxsTypes,
1418
- Xe as Update,
1431
+ ze as ListStore,
1432
+ Ke as RecordStore,
1419
1433
  Ue as appBuilding,
1420
- Fe as bind,
1434
+ De as bind,
1421
1435
  Je as createApp,
1422
- Ft as jsx,
1423
- Ce as messageBus,
1436
+ Pt as jsx,
1437
+ qe as messageBus,
1424
1438
  We as navigation,
1425
1439
  Qe as routedView,
1426
1440
  He as routing,
1427
- Ie as state,
1441
+ Ce as state,
1428
1442
  }