@vanelsas/baredom 4.1.0 → 4.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.
- package/CHANGELOG.md +73 -0
- package/README.md +1 -1
- package/dist/baremirror-alpha.js +28 -24
- package/dist/base.js +675 -684
- package/dist/integrity.json +112 -112
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +10 -10
- package/dist/x-avatar.js +14 -14
- package/dist/x-badge.js +9 -9
- package/dist/x-bento-grid.js +6 -6
- package/dist/x-bento-item.js +4 -4
- package/dist/x-breadcrumbs.js +16 -16
- package/dist/x-button.js +1 -1
- package/dist/x-calendar.js +41 -41
- package/dist/x-cancel-dialogue.js +16 -16
- package/dist/x-card.js +7 -7
- package/dist/x-carousel.js +34 -34
- package/dist/x-chart.js +48 -48
- package/dist/x-checkbox.js +1 -1
- package/dist/x-chip.js +1 -1
- package/dist/x-code.js +28 -28
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +45 -45
- package/dist/x-combobox.js +34 -34
- package/dist/x-command-palette.js +30 -30
- package/dist/x-confetti.js +24 -24
- package/dist/x-container.js +6 -6
- package/dist/x-context-menu.js +19 -19
- package/dist/x-copy.js +1 -1
- package/dist/x-currency-field.js +24 -24
- package/dist/x-date-picker.js +44 -44
- package/dist/x-divider.js +8 -8
- package/dist/x-drag-panel.js +33 -33
- package/dist/x-drawer.js +12 -12
- package/dist/x-drop-zone.js +11 -11
- package/dist/x-dropdown.js +12 -12
- package/dist/x-fieldset.js +6 -6
- package/dist/x-file-download.js +14 -14
- package/dist/x-file-upload.js +27 -27
- package/dist/x-floating-panel.js +22 -22
- package/dist/x-form-field.js +18 -18
- package/dist/x-form.js +10 -10
- package/dist/x-gaussian-blur.js +13 -13
- package/dist/x-grid.js +8 -8
- package/dist/x-i18n-provider.js +7 -7
- package/dist/x-i18n.js +4 -4
- package/dist/x-icon.js +7 -7
- package/dist/x-image.js +17 -17
- package/dist/x-kbd.js +13 -13
- package/dist/x-kinetic-canvas.js +25 -25
- package/dist/x-kinetic-font.js +26 -26
- package/dist/x-kinetic-typography.js +34 -34
- package/dist/x-liquid-dock.js +31 -31
- package/dist/x-liquid-fill.js +39 -39
- package/dist/x-liquid-glass.js +36 -36
- package/dist/x-menu-item.js +9 -9
- package/dist/x-menu.js +10 -10
- package/dist/x-metaball-cursor.js +26 -26
- package/dist/x-modal.js +13 -13
- package/dist/x-morph-stack.js +38 -38
- package/dist/x-multi-combobox.js +41 -41
- package/dist/x-navbar.js +15 -15
- package/dist/x-neural-glow.js +29 -29
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +18 -18
- package/dist/x-organic-progress.js +34 -34
- package/dist/x-organic-shape.js +12 -12
- package/dist/x-otp-input.js +22 -22
- package/dist/x-pagination.js +16 -16
- package/dist/x-particle-button.js +51 -51
- package/dist/x-popover.js +26 -26
- package/dist/x-progress-circle.js +7 -7
- package/dist/x-progress.js +7 -7
- package/dist/x-proximity-list.js +20 -20
- package/dist/x-radio.js +13 -13
- package/dist/x-range-slider.js +30 -30
- package/dist/x-rating.js +23 -23
- package/dist/x-ripple-effect.js +10 -10
- package/dist/x-scroll-parallax.js +17 -17
- package/dist/x-scroll-stack.js +17 -17
- package/dist/x-scroll-story.js +31 -31
- package/dist/x-scroll-timeline.js +46 -46
- package/dist/x-scroll.js +38 -38
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +17 -17
- package/dist/x-skeleton-group.js +13 -13
- package/dist/x-skeleton.js +1 -1
- package/dist/x-slider.js +17 -17
- package/dist/x-soft-body.js +17 -17
- package/dist/x-spacer.js +4 -4
- package/dist/x-spinner.js +4 -4
- package/dist/x-splash.js +13 -13
- package/dist/x-split-pane.js +15 -15
- package/dist/x-spotlight-card.js +12 -12
- package/dist/x-stat.js +10 -10
- package/dist/x-stepper.js +14 -14
- package/dist/x-switch.js +12 -12
- package/dist/x-tab.js +9 -9
- package/dist/x-table-cell.js +20 -20
- package/dist/x-table-row.js +9 -9
- package/dist/x-table.js +14 -14
- package/dist/x-tabs.js +11 -11
- package/dist/x-text-area.js +20 -20
- package/dist/x-theme.js +26 -26
- package/dist/x-timeline-item.js +21 -21
- package/dist/x-timeline.js +8 -8
- package/dist/x-toast.js +22 -22
- package/dist/x-toaster.js +6 -6
- package/dist/x-tooltip.js +13 -13
- package/dist/x-trace-history.js +117 -117
- package/dist/x-typography.js +6 -6
- package/dist/x-welcome-tour.js +62 -62
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,79 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to BareDOM will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [4.3.0] - 2026-10-11
|
|
6
|
+
|
|
7
|
+
BareDOM 4.3 makes BareMirror faster at many rows, and adds a function that makes a node by
|
|
8
|
+
copying one. No component changed. The adapters are not released again.
|
|
9
|
+
|
|
10
|
+
The times are for the task list of the demo with 1,000 rows, as medians in Chrome, for one whole
|
|
11
|
+
render through the JavaScript functions.
|
|
12
|
+
|
|
13
|
+
| Render | Before | After |
|
|
14
|
+
|---|---|---|
|
|
15
|
+
| The first one | 345 ms | 241 ms |
|
|
16
|
+
| Nothing changed | 5.2 ms | 1.0 ms |
|
|
17
|
+
| One row changed and moved to the other list | 6.3 ms | 2.5 ms |
|
|
18
|
+
| The first row moved to the end | 13.0 ms | 2.9 ms |
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- **`parts/node-maker`, and `nodeMaker` for JavaScript**, in the BareMirror alpha. It takes a
|
|
23
|
+
fixed template and returns a function that makes one detached element each time, by copying
|
|
24
|
+
one node. A custom element in a copy is a plain element until the copy is in the page, so the
|
|
25
|
+
first writes to it cost what an attribute costs. See [`docs/baremirror.md`](docs/baremirror.md).
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- **`plan/plan` is faster.** It finds the keys that stay with one pass and a binary search, and
|
|
30
|
+
in a browser it looks a key up in a map of the browser. The plan is the same.
|
|
31
|
+
- **`readPlaces`, `plan`, `perform` and `syncPlaces` are faster in JavaScript.** A reading and a
|
|
32
|
+
plan hold the value they were made from, so `perform` does not read them again.
|
|
33
|
+
- **In JavaScript, a reading and a plan are frozen.** `perform` still takes a plain object of
|
|
34
|
+
the same shape.
|
|
35
|
+
- **The error for a template that is not fixed no longer names `make-node!`**, since
|
|
36
|
+
`node-maker` gives it too.
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
|
|
40
|
+
- **In JavaScript, a copy of a split template is no longer taken as the template it was copied
|
|
41
|
+
from.** `{ ...row, holes: other }` kept the first template inside it, and `writeItem` wrote
|
|
42
|
+
with that. `writeItem` now refuses a copy.
|
|
43
|
+
- **`writeItem` compares two items faster.** The result is the same.
|
|
44
|
+
- **The demo of BareMirror, the task list and the examples of the doc make their rows with
|
|
45
|
+
`nodeMaker` and `node-maker`.**
|
|
46
|
+
|
|
47
|
+
## [4.2.0] - 2026-10-11
|
|
48
|
+
|
|
49
|
+
BareDOM 4.2 lets BareMirror skip a row whose item did not change, and adds a demo that shows the
|
|
50
|
+
functions beside plain DOM code. No component changed. The adapters are not released again.
|
|
51
|
+
|
|
52
|
+
### Added
|
|
53
|
+
|
|
54
|
+
- **`parts/write-item!`, and `writeItem` for JavaScript**, in the BareMirror alpha. It brings a
|
|
55
|
+
node to an item, and writes nothing when the item is the same as the one it last wrote to that
|
|
56
|
+
node. JavaScript compares the fields of two object literals, one level deep. See
|
|
57
|
+
[`docs/baremirror.md`](docs/baremirror.md).
|
|
58
|
+
- **`template/split?`**, for ClojureScript. It is true for a split template.
|
|
59
|
+
- **A demo of BareMirror.** One task list, rendered with a rebuild, with code by hand and with
|
|
60
|
+
the functions, side by side, with counts and times. It is
|
|
61
|
+
[on the demo site](https://avanelsas.github.io/baredom/bare-html/mirror.html), with
|
|
62
|
+
[a copy that shows with no script](https://avanelsas.github.io/baredom/bare-html/mirror.static.html).
|
|
63
|
+
- **`scripts/prerender.mjs` takes `--static`.** The output has no `script` element, and its
|
|
64
|
+
`html` element has `data-static`. The script also waits while the `html` element of the page
|
|
65
|
+
has `data-loading`. See [`docs/PRERENDER.md`](docs/PRERENDER.md).
|
|
66
|
+
|
|
67
|
+
### Changed
|
|
68
|
+
|
|
69
|
+
- **`parts/read-parts` and `readParts` are faster.** One selector finds the parts of a node. The
|
|
70
|
+
parts of 1,000 rows, read one by one, take 0.9 ms where they took 5.1 ms. The result is the
|
|
71
|
+
same.
|
|
72
|
+
|
|
73
|
+
### Fixed
|
|
74
|
+
|
|
75
|
+
- **A prerendered page keeps its `html` tag.** `scripts/prerender.mjs` left the tag out, so the
|
|
76
|
+
page lost its `lang` attribute.
|
|
77
|
+
|
|
5
78
|
## [4.1.0] - 2026-10-09
|
|
6
79
|
|
|
7
80
|
BareDOM 4.1 corrects how a form control follows its `fieldset`, and makes every component render
|
package/README.md
CHANGED
|
@@ -154,7 +154,7 @@ Register your own preset, override individual tokens via CSS, or nest themes for
|
|
|
154
154
|
|
|
155
155
|
## BareMirror (alpha)
|
|
156
156
|
|
|
157
|
-
A small set of functions for an application on top of the components: they place keyed nodes, write values into the parts of a template and turn events into messages, with no comparing of old and new. It ships inside this package as an alpha, for JavaScript and ClojureScript. See [`docs/baremirror.md`](./docs/baremirror.md).
|
|
157
|
+
A small set of functions for an application on top of the components: they place keyed nodes, write values into the parts of a template and turn events into messages, with no comparing of old and new in your code. It ships inside this package as an alpha, for JavaScript and ClojureScript. See [`docs/baremirror.md`](./docs/baremirror.md). The [demo](https://avanelsas.github.io/baredom/bare-html/mirror.html) renders one task list three ways, side by side.
|
|
158
158
|
|
|
159
159
|
---
|
|
160
160
|
|
package/dist/baremirror-alpha.js
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
$APP.
|
|
5
|
-
$APP.
|
|
6
|
-
1,[$APP.
|
|
7
|
-
$APP.
|
|
8
|
-
d],null),f);a=$APP.B(d,0,null);d=$APP.B(d,1,null);f=$APP.J;e=$APP.
|
|
9
|
-
|
|
10
|
-
$APP.
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
function(){return b.i?b.i(this):b.call(null,this)};d.attributeChangedCallback=function(){return b.i?b.i(this):b.call(null,this)};return c},
|
|
15
|
-
return new $APP.K(null,3,[
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
b){return $APP.m($APP.ra(b))?
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
export const
|
|
25
|
-
export const
|
|
2
|
+
var gCa=function(a,b){return a===b},q9=function(a,b){return new $APP.Nd(null,function(){var c=$APP.q(b);if(c){var d=$APP.t(c);d=a.i?a.i(d):a.call(null,d);c=$APP.m(d)?$APP.Kd($APP.t(c),q9(a,$APP.jc(c))):null}else c=null;return c},null)},hCa=function(a,b){return new $APP.Nd(null,function(){a:{var c=a;for(var d=b;;){d=$APP.q(d);var e;if(e=d)e=$APP.t(d),e=c.i?c.i(e):c.call(null,e);if($APP.m(e))d=$APP.jc(d);else{c=d;break a}}c=void 0}return c},null)},r9=function(a,b){return new $APP.Zh(a,b)},s9=function(a){var b=
|
|
3
|
+
$APP.q(a);a=$APP.t(b);b=$APP.u(b);return $APP.bd($APP.t(b))?new $APP.H(null,3,5,$APP.J,[a,$APP.t(b),$APP.u(b)],null):new $APP.H(null,3,5,$APP.J,[a,null,$APP.q(b)],null)},t9=function(a){return a instanceof $APP.F||$APP.Rc(a)},iCa=function(a){return typeof a==="string"||typeof a==="number"||a===!0||a===!1||a==null},u9=function(a){return $APP.dd(a)||typeof a==="string"||typeof a==="number"},jCa=function(a){return $APP.se(function(b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.z.j("data-x-part",
|
|
4
|
+
$APP.gh(c))?b:null},a)},kCa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.H(null,2,5,$APP.J,[new $APP.H(null,2,5,$APP.J,[c,a],null),b],null)},A9=function(a,b,c){var d=$APP.G(c);c=$APP.C(d,v9);var e=$APP.G(d);d=$APP.C(e,w9);e=$APP.C(e,$APP.Em);var f=$APP.q(d);$APP.m(f?f:e)?(f=new $APP.K(null,1,[x9,b],null),d=$APP.q(d)?$APP.Vg.l(f,y9,d):f,d=$APP.m(e)?$APP.Vg.l(d,$APP.Em,e):d):d=null;a=$APP.ni.O(a,$APP.Qr,$APP.Wf,$APP.Ne.i($APP.we(kCa,b)),c);return $APP.m(d)?$APP.ni.K(a,z9,
|
|
5
|
+
$APP.Gd,d):a},lCa=function(a,b,c){var d=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.dd(c)?(c=B9.l?B9.l(a,b,c):B9.call(null,a,b,c),a=$APP.B(c,0,null),c=$APP.B(c,1,null),new $APP.H(null,2,5,$APP.J,[$APP.Gd.j(d,a),c],null)):new $APP.H(null,2,5,$APP.J,[$APP.Gd.j(d,c),b],null)},B9=function(a,b,c){var d=s9(c);c=$APP.B(d,0,null);var e=$APP.B(d,1,null),f=$APP.B(d,2,null),h=$APP.bk.j(e,v9);if($APP.p($APP.se(t9,f)))d=null;else{if($APP.u(f))throw r9("A text hole must be the only child of its element.",new $APP.K(null,
|
|
6
|
+
1,[$APP.ht,c],null));d=$APP.t(f)}e=v9.i(e);var k=$APP.Wf.l($APP.ne,$APP.Ue($APP.Kj.j(t9,$APP.pf)),h);h=$APP.Wf.l($APP.ne,$APP.Se($APP.Kj.j(t9,$APP.pf)),h);if($APP.m(d))f=null;else if(!$APP.re(u9,f))throw r9("A child of a template is a template, text, a number or one hole.",new $APP.K(null,1,[$APP.ht,c],null));d=new $APP.K(null,6,[$APP.ht,c,v9,e,C9,k,w9,h,$APP.Em,d,$APP.Ot,f],null);b=$APP.G(b);c=$APP.C(b,$APP.xu);d=$APP.G(d);f=$APP.C(d,C9);f=jCa(f);k=$APP.G(d);h=$APP.C(k,v9);e=$APP.C(k,w9);k=$APP.C(k,
|
|
7
|
+
$APP.Em);e=(h=$APP.q(h))?h:(e=$APP.q(e))?e:k;$APP.D(e)?$APP.m(f)?d=new $APP.H(null,2,5,$APP.J,[d,A9(b,f,d)],null):(c=""+$APP.N.i(a)+"."+$APP.N.i(c),d=new $APP.H(null,2,5,$APP.J,[$APP.Eo(d,new $APP.H(null,2,5,$APP.J,[C9,$APP.Gh.i("data-x-part")],null),c),A9($APP.ni.l(b,$APP.xu,$APP.qc),c,d)],null)):d=new $APP.H(null,2,5,$APP.J,[d,b],null);b=$APP.B(d,0,null);f=$APP.G(b);c=$APP.C(f,$APP.ht);b=$APP.C(f,C9);f=$APP.C(f,$APP.Ot);d=$APP.B(d,1,null);d=$APP.Aa($APP.we(lCa,a),new $APP.H(null,2,5,$APP.J,[$APP.We,
|
|
8
|
+
d],null),f);a=$APP.B(d,0,null);d=$APP.B(d,1,null);f=$APP.J;e=$APP.Wf.j;c=new $APP.H(null,1,5,$APP.J,[c],null);b=$APP.q(b)?$APP.Gd.j(c,b):c;return new $APP.H(null,2,5,f,[e.call($APP.Wf,b,a),d],null)},D9=function(a,b){b=B9($APP.gh(a),new $APP.K(null,3,[$APP.xu,0,z9,$APP.We,$APP.Qr,$APP.ne],null),b);a=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.K(null,3,[C9,a,z9,z9.i(b),$APP.Qr,$APP.Qr.i(b)],null)},E9=function(a,b){return b.i?b.i(a):b.call(null,a)},mCa=function(a,b){var c=$APP.G(b);b=$APP.C(c,
|
|
9
|
+
x9);var d=$APP.C(c,y9),e=$APP.C(c,$APP.Em);c=$APP.J;d=$APP.m(d)?$APP.Vg.l($APP.ne,y9,$APP.$h(d,$APP.we(E9,a))):$APP.ne;a=$APP.m(e)?$APP.Vg.l(d,$APP.Em,E9(a,e)):d;return new $APP.H(null,2,5,c,[b,a],null)},F9=function(a,b){return $APP.Wf.l($APP.ne,$APP.Ne.i($APP.we(mCa,b)),z9.i(a))},G9=function(a,b){var c=a[nCa];c==null?b.i?b.i(a):b.call(null,a):c.call(a,$APP.we(b,a));return null},oCa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);c=$APP.gh(c);b=b===!0?"":b===!1||b==null?null:b instanceof $APP.F?
|
|
10
|
+
$APP.gh(b):""+$APP.N.i(b);return $APP.M.j(b,a.getAttribute(c))?b!=null?a.setAttribute(c,b):a.removeAttribute(c):null},H9=function(a,b){return $APP.Uh($APP.we(oCa,b),a)},I9=function(a,b){b=""+$APP.N.i(b);var c=a.firstChild;c=c==null?null:$APP.z.j(Node.TEXT_NODE,c.nodeType)&&c.nextSibling==null?c:null;c==null?a.textContent=b:$APP.M.j(b,c.data)&&(c.data=b);return null},pCa=function(a,b,c){return b.append($APP.dd(c)?J9.j?J9.j(a,c):J9.call(null,a,c):""+$APP.N.i(c))},J9=function(a,b){var c=s9(b);$APP.B(c,
|
|
11
|
+
0,null);var d=$APP.B(c,1,null);c=$APP.B(c,2,null);if(!$APP.jd(d,v9)&&$APP.re(iCa,$APP.Qg(d))&&$APP.re(u9,c))c=s9(b);else throw r9("A node is made from a fixed template. split takes holes and :on out of one.",new $APP.K(null,1,[$APP.ht,$APP.t(b)],null));d=$APP.B(c,0,null);b=$APP.B(c,1,null);c=$APP.B(c,2,null);d=a.createElement($APP.gh(d));G9(d,$APP.we(H9,b));$APP.Uh($APP.xe(pCa,a,d),c);return d},K9=function(a){var b=a.getAttribute("data-x-part");return b==null?null:new $APP.H(null,2,5,$APP.J,[b,a],
|
|
12
|
+
null)},L9=function(a){return $APP.Wf.l($APP.ne,$APP.Ee(K9),$APP.Kd(a,$APP.Hc(a.querySelectorAll(qCa))))},rCa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);b=$APP.G(b);var d=$APP.C(b,y9);a=a.i?a.i(c):a.call(null,c);$APP.jd(b,$APP.Em)&&I9(a,$APP.Em.i(b));return $APP.m(d)?G9(a,$APP.we(H9,d)):null},M9=function(a,b){var c=$APP.q($APP.Wf.l($APP.We,$APP.Ue(a),$APP.Og(b)));if(c!=null)throw r9("write-parts!: no node has these part names.",new $APP.K(null,1,[sCa,$APP.qf(c)],null));return $APP.Uh($APP.we(rCa,
|
|
13
|
+
a),b)},tCa=function(a,b){return a.getAttribute(b)},uCa=function(a,b){var c=$APP.G(a);a=$APP.C(c,y9);var d=$APP.C(c,$APP.ls);c=$APP.C(c,$APP.Yu);var e=C9.i(c),f=b.shadowRoot;$APP.m(f)?d=f:(f=document.createElement("style"),f.textContent=""+$APP.N.i(d),d=b.attachShadow({mode:"open"}),d.append(f,J9(document,e)));d=L9(d.lastElementChild);b=$APP.Wf.l($APP.ne,$APP.Ne.i($APP.sh($APP.Gh,$APP.we(tCa,b))),a);return M9(d,F9(c,b))},vCa=function(a,b){var c=class extends HTMLElement{},d=c.prototype;c.observedAttributes=
|
|
14
|
+
$APP.Ca(a);d.connectedCallback=function(){return b.i?b.i(this):b.call(null,this)};d.attributeChangedCallback=function(){return b.i?b.i(this):b.call(null,this)};return c},N9=function(a,b){a=$APP.ue(a);a=new $APP.H(null,2,5,$APP.J,[q9(a,b),hCa(a,b)],null);b=$APP.B(a,0,null);a=$APP.B(a,1,null);return $APP.Qe.j(b,$APP.Le(1,a))},wCa=function(a){return a instanceof Element},Q9=function(a){a=$APP.Te(wCa,N9($APP.we(gCa,a.currentTarget),$APP.Ic(a.composedPath())));var b=$APP.se(K9,N9($APP.Vj,a)),c=$APP.B(b,
|
|
15
|
+
0,null);b=$APP.B(b,1,null);return new $APP.K(null,3,[O9,$APP.Wf.l($APP.We,$APP.Ee($APP.Kj.j($APP.t,$APP.Vj)),$APP.Hd(a)),x9,c,P9,b],null)},xCa=function(a,b,c,d){return function(e){e=$APP.Do.l(a,b,e);a:for(;;){var f=$APP.fb(a),h=c.i?c.i(f):c.call(null,f);d.i?d.i(h):d.call(null,h);if(f===$APP.fb(a))break a}return e}},R9=function(a,b){return a.getAttribute(b)},yCa=function(a){return $APP.Wc(O9.i(a))},zCa=function(a,b){var c=$APP.G(a);a=$APP.C(c,S9);var d=$APP.C(c,$APP.Qr),e=$APP.C(c,$APP.ps);c=Q9(b);
|
|
16
|
+
var f=$APP.G(c),h=$APP.C(f,x9);c=$APP.C(f,P9);d=$APP.C(d,new $APP.H(null,2,5,$APP.J,[b.type,h],null));if(d==null)return null;h=$APP.dd(d)?d:new $APP.H(null,2,5,$APP.J,[d,yCa],null);d=$APP.B(h,0,null);h=$APP.B(h,1,null);f=h.j?h.j(f,b):h.call(null,f,b);d=new $APP.H(null,1,5,$APP.J,[d],null);f=f!=null?$APP.Gd.j(d,f):d;e=$APP.C(e,b.type);e==null?b=a.i?a.i(f):a.call(null,f):(d=$APP.oi.j($APP.we(R9,c),e),a.i?a.i(f):a.call(null,f),b=$APP.z.j(d,$APP.oi.j($APP.we(R9,c),e))?b.preventDefault():null);return b},
|
|
17
|
+
ACa=function(a,b,c){return a.addEventListener(c,$APP.we(zCa,b))},BCa=function(a,b){return new $APP.H(null,2,5,$APP.J,[b,a[b]],null)},T9=function(a){return a!=null?$APP.Wf.l($APP.ne,$APP.Ne.i($APP.we(BCa,a)),$APP.ia(a)):$APP.ne},U9=function(a){return $APP.m($APP.ra(a))?$APP.qf(a):a},CCa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.z.j("on",c)?new $APP.H(null,2,5,$APP.J,[v9,$APP.$h(T9(b),U9)],null):$APP.Rc(b)?new $APP.H(null,2,5,$APP.J,[c,a.i?a.i(b):a.call(null,b)],null):new $APP.H(null,
|
|
18
|
+
2,5,$APP.J,[c,b],null)},DCa=function(a,b){return $APP.m($APP.ra(b))?V9.j?V9.j(a,b):V9.call(null,a,b):$APP.Rc(b)?a.i?a.i(b):a.call(null,b):b},V9=function(a,b){b=$APP.q($APP.Hc(b));var c=$APP.t(b);b=$APP.u(b);var d=$APP.sa($APP.t(b))?$APP.t(b):null,e=$APP.Wf.l;c=new $APP.H(null,1,5,$APP.J,[c],null);c=$APP.m(d)?$APP.Gd.j(c,$APP.Wf.l($APP.ne,$APP.Ne.i($APP.we(CCa,a)),T9(d))):c;return e.call($APP.Wf,c,$APP.Ne.i($APP.we(DCa,a)),$APP.m(d)?$APP.jc(b):b)},W9=function(a,b,c){return Object.defineProperty(a,
|
|
19
|
+
b,{value:c})},ECa=function(a){var b=$APP.m("text"in a)?$APP.Vg.l($APP.ne,$APP.Em,a.text):$APP.ne;return a.attrs!=null?$APP.Vg.l(b,y9,T9(a.attrs)):b},X9=function(a,b){var c=a===b;if(c)return c;if(c=a!=null&&Object.prototype===Object.getPrototypeOf(a)){if(c=b!=null&&Object.prototype===Object.getPrototypeOf(b)){c=Object.keys(a);var d=c.length===Object.keys(b).length;if(d)a:{for(d=0;;){var e=d===c.length;if(e){a=e;break a}e=a;var f=b,h=c[d],k=Object.prototype.hasOwnProperty.call(f,h);e=$APP.m(k)?Object.is(e[h],
|
|
20
|
+
f[h]):k;if($APP.m(e))d+=1;else{a=e;break a}}a=void 0}else a=d;return a}return c}return c},Y9=function(a){return new $APP.K(null,2,[$APP.Wj,a.parent,$APP.Pj,a.before],null)},FCa=function(a){return new $APP.K(null,3,[$APP.qi,a.key,$APP.Oj,a.in,$APP.Pj,a.before],null)},GCa=function(a,b,c){a[b]=c;return a},Z9=function(a){return $APP.wd(GCa,{},a)},HCa=function(a,b){a.push(b);return a},$9=function(a){return $APP.Aa(HCa,[],a)},ICa=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.Wj);b=$APP.C(b,$APP.Pj);return{parent:a,
|
|
21
|
+
before:b}},JCa=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.qi);var c=$APP.C(b,$APP.Oj);b=$APP.C(b,$APP.Pj);return{key:a,"in":c,before:b}},a$=function(a){var b=$APP.G(a);a=$APP.C(b,O9);var c=$APP.C(b,x9);b=$APP.C(b,P9);return{keyPath:$APP.Im(a),part:c,node:b}},KCa=function(a){return function(b,c){b=a$(b);return a.j?a.j(b,c):a.call(null,b,c)}},LCa=function(a){var b=$APP.J,c=$APP.qf(a[0]);a=U9(a[1]);a=$APP.dd(a)?$APP.ni.l(a,1,KCa):a;return new $APP.H(null,2,5,b,[c,a],null)},MCa=function(a){return function(b){b=
|
|
22
|
+
$APP.Im(b);return a.i?a.i(b):a.call(null,b)}},b$=function(a,b){this.store=a;this.Kc=b;this.B=425984;this.J=65536},NCa=function(a){return function(b){b=$APP.Im(b);return a.i?a.i(b):a.call(null,b)}},C9=new $APP.F(null,"fixed","fixed",-562004358),c$=new $APP.F(null,"given","given",716253602),v9=new $APP.F(null,"on","on",173873944),w9=new $APP.F(null,"attr-holes","attr-holes",-1558532218),P9=new $APP.F(null,"node","node",581201198),z9=new $APP.F(null,"holes","holes",188002959),y9=new $APP.F(null,"attrs",
|
|
23
|
+
"attrs",-2090668713),O9=new $APP.F(null,"key-path","key-path",878473308),x9=new $APP.F(null,"part","part",77757738),S9=new $APP.F(null,"dispatch!","dispatch!",-1927281664),sCa=new $APP.F(null,"parts","parts",849007691);var nCa=Symbol["for"]("x-render-hold"),d$=function d$(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return d$.o(arguments[0],1<c.length?new $APP.fc(c.slice(1),0,null):null)};d$.o=function(a){return a.cloneNode(!0)};d$.M=1;d$.I=function(a){var b=$APP.t(a);a=$APP.u(a);return this.o(b,a)};var qCa="["+$APP.N.i("data-x-part")+"]:not(:scope ["+$APP.N.i("data-x-key")+"], :scope ["+$APP.N.i("data-x-key")+"] *)",e$=Symbol("baremirror.last-written");var f$=function f$(a){var c=$APP.ra(a);$APP.m($APP.m(c)?c:$APP.sa(a))&&($APP.Uh(f$,Object.values(a)),Object.freeze(a));return a},g$=Symbol("baremirror.split"),h$=Symbol("baremirror.value");b$.prototype.Y=function(a,b){return new b$(this.store,b)};b$.prototype.W=function(){return this.Kc};b$.prototype.tb=function(){return this.store.value};b$.prototype.nc=function(a,b,c){a=this.store;var d=this.store.value;b=b.j?b.j(d,c):b.call(null,d,c);return a.value=b};export const plan=function(a,b){a=$APP.Uj($APP.$h(T9(a),$APP.qf),$APP.$h(T9(b),$APP.qf));a=$APP.G(a);b=$APP.C(a,$APP.Sj);var c=$APP.C(a,$APP.Tj);return f$(W9({remove:$9(b),place:$9($APP.Ne.j(JCa,c))},h$,a))};export const syncPlaces=function(a,b,c){return Z9($APP.ok($APP.$h(T9(a),Y9),$APP.$h(T9(b),$APP.qf),c))};export const setText=function(a,b){return I9(a,b)};export const readOrigin=function(a){return a$(Q9(a))};export const setAttrs=function(a,b){b=T9(b);return G9(a,$APP.we(H9,b))};
|
|
24
|
+
export const readPlaces=function(a){a=$APP.ak($APP.$h(T9(a),Y9));a=$APP.G(a);var b=$APP.C(a,$APP.Xj),c=$APP.C(a,$APP.Yj),d=$APP.C(a,$APP.Zj);return f$(W9({containers:Z9($APP.$h(b,ICa)),places:Z9($APP.$h(c,$9)),nodes:Z9(d)},h$,a))};export const withOneRender=function(a,b){return G9(a,b)};
|
|
25
|
+
export const splitTemplate=function(a,b){var c=D9(a,V9($APP.xd,b));return f$(W9({fixed:$APP.Im(C9.i(c)),holes:$APP.Im(z9.i(c)),events:$APP.Im($APP.qf($APP.Qr.i(c))),writes:function(d){return $APP.Im(F9(c,d))}},g$,c))};export const release=function(a){return a.removeAttribute("data-x-key")};export const makeNode=function(a){a=V9($APP.xd,a);return J9(document,a)};export const dispatcher=function(a,b,c,d){return xCa(new b$(a,$APP.ne),b,c,d)};
|
|
26
|
+
export const nodeMaker=function(a){a=V9($APP.xd,a);return $APP.we(d$,J9(document.createElement("template").content.ownerDocument,a))};export const perform=function(a,b,c){var d=a==null?null:a[h$];a=$APP.m(d)?d:new $APP.K(null,2,[$APP.Xj,$APP.$h(T9(a.containers),Y9),$APP.Zj,T9(a.nodes)],null);d=b==null?null:b[h$];b=$APP.m(d)?d:new $APP.K(null,2,[$APP.Sj,$APP.qf(b.remove),$APP.Tj,$APP.oi.j(FCa,b.place)],null);return Z9($APP.ck(a,b,c))};
|
|
27
|
+
export const listen=function(a,b){var c=MCa(b.dispatch);var d=b.events;d=$APP.Wf.l($APP.ne,$APP.Ne.i(LCa),$APP.Hc(d));b=new $APP.K(null,3,[S9,c,$APP.Qr,d,$APP.ps,$APP.$h(T9(b.requests),$APP.qf)],null);b=$APP.G(b);c=$APP.C(b,$APP.Qr);return $APP.Uh($APP.xe(ACa,a,b),$APP.Wf.l($APP.Zg,$APP.Ne.i($APP.t),$APP.Og(c)))};export const readParts=function(a){return $APP.Im(L9(a))};export const writeParts=function(a,b){return M9(T9(a),$APP.$h(T9(b),ECa))};
|
|
28
|
+
export const defineElement=function(a,b){b=new $APP.K(null,3,[y9,$APP.qf(b.attrs),$APP.nv,V9(NCa,b.template),$APP.ls,b.css],null);var c=$APP.G(b),d=$APP.C(c,$APP.nv);b=$APP.C(c,y9);c=$APP.C(c,$APP.ls);d=D9(a,d);if(!$APP.Yc($APP.Qr.i(d)))throw r9("define-element!: the template of an element takes no :on entry.",new $APP.K(null,1,[$APP.ht,a],null));d=new $APP.K(null,3,[y9,b,$APP.ls,c,$APP.Yu,d],null);return $APP.m(customElements.get(a))?null:customElements.define(a,vCa(b,$APP.we(uCa,d)))};
|
|
29
|
+
export const writeItem=function(a,b,c){var d=b==null?null:b[g$];if(d==null)throw r9("writeItem: not a split template.",new $APP.K(null,1,[c$,b],null));if(!($APP.bd(d)&&$APP.jd(d,C9)&&$APP.jd(d,z9)))throw r9("write-item!: not a split template.",new $APP.K(null,1,[c$,d],null));var e=a[e$];b=$APP.B(e,0,null);e=$APP.B(e,1,null);b=(b=d===b)?X9.j?X9.j(c,e):X9.call(null,c,e):b;$APP.m(b)||(M9(L9(a),F9(d,c)),a[e$]=new $APP.H(null,2,5,$APP.J,[d,c],null));return null};
|