@vanelsas/baredom 4.8.0 → 4.9.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 +40 -0
- package/dist/baremirror-alpha.js +35 -27
- package/dist/base.js +606 -606
- package/dist/foreign-writes.d.ts +8 -0
- package/dist/foreign-writes.js +63 -0
- package/dist/integrity.json +114 -113
- package/dist/requests.d.ts +2 -0
- package/dist/requests.js +99 -0
- package/dist/x-alert.js +17 -17
- package/dist/x-avatar-group.js +10 -10
- package/dist/x-avatar.js +13 -13
- 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 +17 -17
- 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 +31 -31
- package/dist/x-collapse.js +11 -11
- package/dist/x-color-picker.js +44 -44
- 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 -25
- package/dist/x-date-picker.js +46 -46
- package/dist/x-divider.js +8 -8
- package/dist/x-drag-panel.js +32 -32
- 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 +26 -26
- package/dist/x-floating-panel.js +21 -21
- package/dist/x-form-field.js +16 -17
- 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 +18 -18
- package/dist/x-kbd.js +13 -13
- package/dist/x-kinetic-canvas.js +24 -24
- package/dist/x-kinetic-font.js +26 -26
- package/dist/x-kinetic-typography.js +34 -34
- package/dist/x-liquid-dock.js +29 -29
- package/dist/x-liquid-fill.js +37 -37
- package/dist/x-liquid-glass.js +27 -27
- package/dist/x-menu-item.js +9 -9
- package/dist/x-menu.js +10 -10
- package/dist/x-metaball-cursor.js +25 -25
- package/dist/x-modal.js +13 -13
- package/dist/x-morph-stack.js +37 -37
- package/dist/x-multi-combobox.js +45 -44
- package/dist/x-navbar.js +15 -15
- package/dist/x-neural-glow.js +28 -28
- package/dist/x-notification-center.js +9 -9
- package/dist/x-organic-divider.js +18 -18
- package/dist/x-organic-progress.js +33 -33
- package/dist/x-organic-shape.js +12 -12
- package/dist/x-otp-input.js +22 -22
- package/dist/x-pagination.js +18 -18
- 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 +8 -8
- package/dist/x-proximity-list.js +20 -20
- package/dist/x-radio.js +14 -14
- package/dist/x-range-slider.js +30 -30
- package/dist/x-rating.js +21 -21
- 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 +33 -33
- package/dist/x-scroll-timeline.js +49 -49
- package/dist/x-scroll.js +37 -37
- package/dist/x-search-field.js +1 -1
- package/dist/x-select.js +1 -1
- package/dist/x-sidebar.js +16 -16
- package/dist/x-skeleton-group.js +14 -14
- 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 +14 -14
- 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 +7 -7
- package/dist/x-table-cell.js +20 -20
- package/dist/x-table-row.js +9 -9
- package/dist/x-table.js +13 -13
- package/dist/x-tabs.js +12 -12
- package/dist/x-text-area.js +20 -20
- package/dist/x-theme.js +26 -26
- package/dist/x-timeline-item.js +20 -20
- package/dist/x-timeline.js +9 -9
- package/dist/x-toast.js +21 -21
- package/dist/x-toaster.js +6 -6
- package/dist/x-tooltip.js +14 -14
- package/dist/x-trace-history.js +116 -116
- package/dist/x-typography.js +6 -6
- package/dist/x-welcome-tour.js +64 -64
- package/package.json +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,46 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to BareDOM will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [4.9.0] - 2026-10-19
|
|
6
|
+
|
|
7
|
+
BareDOM 4.9 lets each request event show what its handler leaves. BareMirror cancels a request
|
|
8
|
+
when the page does not show the value it asked for, and names the holes that a component may
|
|
9
|
+
also write. No adapter is released with it.
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **`requestedValues` in `@vanelsas/baredom/requests`,** and `requested-values` in
|
|
14
|
+
`baredom.requests`. It maps each request event to what it asks of each attribute: the name of
|
|
15
|
+
a detail field, or a fixed boolean.
|
|
16
|
+
- **`@vanelsas/baredom/foreign-writes`,** and `baredom.foreign-writes`. It maps each component
|
|
17
|
+
to the attributes it writes on nodes it does not own.
|
|
18
|
+
- **`sharedHoles` in BareMirror,** and `template/shared-holes`. It names each hole of a split
|
|
19
|
+
template that a component may also write. It only reports.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- **BareMirror `listen` takes `requestedValues`.** It cancels a request when its part does not
|
|
24
|
+
show the asked value after the dispatch, so a `step` that accepts another value refuses the
|
|
25
|
+
request. `listen` no longer takes `requests`. The `requests` map is still published.
|
|
26
|
+
- **The BareMirror functions for JavaScript read only the own fields of an object.**
|
|
27
|
+
- **A range click on `x-date-picker` asks for the range it gives.** The `start` and `end` of
|
|
28
|
+
`x-date-picker-change-request` hold that range, and an accepted request writes exactly it. A
|
|
29
|
+
picker given only `start` ends the range on the next later click.
|
|
30
|
+
- **A clear of `x-date-picker` holds `null` in `value`, `start` and `end`,** where it held `""`.
|
|
31
|
+
The component removes those attributes.
|
|
32
|
+
|
|
33
|
+
### Fixed
|
|
34
|
+
|
|
35
|
+
- **A refused change shows and submits the `value` attribute that the handler left,** in
|
|
36
|
+
`x-form-field`, `x-text-area`, `x-select` and `x-currency-field`.
|
|
37
|
+
- **A written `value` reaches the form** in `x-text-area`, `x-currency-field` and
|
|
38
|
+
`x-form-field`.
|
|
39
|
+
- **`x-multi-combobox` no longer throws when a handler writes its value during a removal
|
|
40
|
+
request,** and its panel shows every option left after an add that the handler wrote.
|
|
41
|
+
- **The input event of `x-text-area` reports what the textarea shows.**
|
|
42
|
+
- **`auto-swap` on `x-date-picker` swaps.** A click before the start gives the range from that
|
|
43
|
+
day to the start. Before, it started a new range.
|
|
44
|
+
|
|
5
45
|
## [4.8.0] - 2026-10-17
|
|
6
46
|
|
|
7
47
|
BareDOM 4.8 lets `x-multi-combobox` take values that hold a comma, and fixes two `x-date-picker`
|
package/dist/baremirror-alpha.js
CHANGED
|
@@ -1,28 +1,36 @@
|
|
|
1
1
|
import { $APP, shadow$provide } from "./base.js";
|
|
2
|
-
var
|
|
3
|
-
typeof a==="number"||a===!0||a===!1||a==null},
|
|
4
|
-
$APP.
|
|
5
|
-
$APP.I,[$APP.
|
|
6
|
-
new $APP.K(null,1,[$APP.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
b
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
b,c,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
a=$APP.C(
|
|
22
|
-
a.
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
2
|
+
var rDa=function(a,b){return new $APP.Hd(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.bc(d);else{c=d;break a}}c=void 0}return c},null)},tDa=function(a){var b=sDa;return function e(d){return new $APP.Hd(null,function(){return $APP.Fd(d,$APP.m($APP.Wc.i?$APP.Wc.i(d):$APP.Wc.call(null,d))?$APP.Le(e,$APP.Ac([b.i?b.i(d):b.call(null,d)])):null)},null)}(a)},o$=function(a){var b=$APP.q(a);a=$APP.t(b);b=$APP.u(b);return $APP.Uc($APP.t(b))?
|
|
3
|
+
new $APP.H(null,3,5,$APP.I,[a,$APP.t(b),$APP.u(b)],null):new $APP.H(null,3,5,$APP.I,[a,null,$APP.q(b)],null)},p$=function(a){return a instanceof $APP.F||$APP.Jc(a)},uDa=function(a){return typeof a==="string"||typeof a==="number"||a===!0||a===!1||a==null},vDa=function(a){return $APP.Wc(a)||typeof a==="string"||typeof a==="number"},wDa=function(a){return $APP.ne(function(b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.z.j("data-x-part",$APP.bh(c))?b:null},a)},xDa=function(a,b){var c=$APP.B(b,
|
|
4
|
+
0,null);b=$APP.B(b,1,null);return new $APP.H(null,2,5,$APP.I,[new $APP.H(null,2,5,$APP.I,[c,a],null),b],null)},yDa=function(a,b,c){var d=$APP.G(c);c=$APP.C(d,$APP.lr);var e=$APP.G(d);d=$APP.C(e,$APP.Ar);e=$APP.C(e,$APP.Zm);var f=$APP.q(d);$APP.m(f?f:e)?(f=new $APP.K(null,1,[$APP.hk,b],null),d=$APP.q(d)?$APP.Rg.l(f,$APP.Is,d):f,d=$APP.m(e)?$APP.Rg.l(d,$APP.Zm,e):d):d=null;a=$APP.ei.O(a,$APP.ts,$APP.Pf,$APP.Ie.i($APP.re(xDa,b)),c);return $APP.m(d)?$APP.ei.J(a,$APP.Hs,$APP.Cd,d):a},zDa=function(a,b,
|
|
5
|
+
c){var d=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.Wc(c)?(c=q$.l?q$.l(a,b,c):q$.call(null,a,b,c),a=$APP.B(c,0,null),c=$APP.B(c,1,null),new $APP.H(null,2,5,$APP.I,[$APP.Cd.j(d,a),c],null)):new $APP.H(null,2,5,$APP.I,[$APP.Cd.j(d,c),b],null)},q$=function(a,b,c){var d=o$(c);c=$APP.B(d,0,null);var e=$APP.B(d,1,null),f=$APP.B(d,2,null),g=$APP.vk.j(e,$APP.lr);if($APP.p($APP.ne(p$,f)))d=null;else{if($APP.u(f))throw $APP.Ph("A text hole must be the only child of its element.",new $APP.K(null,1,[$APP.Qt,
|
|
6
|
+
c],null));d=$APP.t(f)}e=$APP.lr.i(e);var k=$APP.Pf.l($APP.he,$APP.Oe($APP.Uj.j(p$,$APP.kf)),g);g=$APP.Pf.l($APP.he,$APP.Me($APP.Uj.j(p$,$APP.kf)),g);if($APP.m(d))f=null;else if(!$APP.me(vDa,f))throw $APP.Ph("A child of a template is a template, text, a number or one hole.",new $APP.K(null,1,[$APP.Qt,c],null));d=new $APP.K(null,6,[$APP.Qt,c,$APP.lr,e,$APP.iq,k,$APP.Ar,g,$APP.Zm,d,$APP.xu,f],null);b=$APP.G(b);c=$APP.C(b,$APP.hv);d=$APP.G(d);f=$APP.C(d,$APP.iq);f=wDa(f);k=$APP.G(d);g=$APP.C(k,$APP.lr);
|
|
7
|
+
e=$APP.C(k,$APP.Ar);k=$APP.C(k,$APP.Zm);e=(g=$APP.q(g))?g:(e=$APP.q(e))?e:k;$APP.D(e)?$APP.m(f)?d=new $APP.H(null,2,5,$APP.I,[d,yDa(b,f,d)],null):(c=""+$APP.N.i(a)+"."+$APP.N.i(c),d=new $APP.H(null,2,5,$APP.I,[$APP.ap(d,new $APP.H(null,2,5,$APP.I,[$APP.iq,$APP.Bh.i("data-x-part")],null),c),yDa($APP.ei.l(b,$APP.hv,$APP.jc),c,d)],null)):d=new $APP.H(null,2,5,$APP.I,[d,b],null);b=$APP.B(d,0,null);f=$APP.G(b);c=$APP.C(f,$APP.Qt);b=$APP.C(f,$APP.iq);f=$APP.C(f,$APP.xu);d=$APP.B(d,1,null);d=$APP.xa($APP.re(zDa,
|
|
8
|
+
a),new $APP.H(null,2,5,$APP.I,[$APP.Qe,d],null),f);a=$APP.B(d,0,null);d=$APP.B(d,1,null);f=$APP.I;e=$APP.Pf.j;c=new $APP.H(null,1,5,$APP.I,[c],null);b=$APP.q(b)?$APP.Cd.j(c,b):c;return new $APP.H(null,2,5,f,[e.call($APP.Pf,b,a),d],null)},ADa=function(a,b){b=q$($APP.bh(a),new $APP.K(null,3,[$APP.hv,0,$APP.Hs,$APP.Qe,$APP.ts,$APP.he],null),b);a=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.K(null,3,[$APP.iq,a,$APP.Hs,$APP.Hs.i(b),$APP.ts,$APP.ts.i(b)],null)},BDa=function(a,b){return b.i?b.i(a):
|
|
9
|
+
b.call(null,a)},CDa=function(a,b){var c=$APP.G(b);b=$APP.C(c,$APP.hk);var d=$APP.C(c,$APP.Is),e=$APP.C(c,$APP.Zm);c=$APP.I;d=$APP.m(d)?$APP.Rg.l($APP.he,$APP.Is,$APP.Qh(d,$APP.re(BDa,a))):$APP.he;a=$APP.m(e)?$APP.Rg.l(d,$APP.Zm,BDa(a,e)):d;return new $APP.H(null,2,5,c,[b,a],null)},r$=function(a,b){return $APP.Pf.l($APP.he,$APP.Ie.i($APP.re(CDa,b)),$APP.Hs.i(a))},sDa=function(a){return $APP.Ne($APP.Wc,$APP.vc(o$(a),2))},DDa=function(a){var b=o$(a);a=$APP.B(b,0,null);b=$APP.B(b,1,null);b=wDa(b);return b==
|
|
10
|
+
null?null:new $APP.H(null,2,5,$APP.I,[b,$APP.Uh($APP.bh(a))],null)},EDa=function(a){return $APP.Pf.l($APP.he,$APP.xe(DDa),tDa(a))},s$=function(a){return(typeof a==="string"||a instanceof $APP.F)&&$APP.z.j("any",$APP.bh(a))},FDa=function(a,b,c){var d=$APP.G(c);c=$APP.C(d,$APP.dw);d=$APP.C(d,$APP.zv);return(s$(c)||$APP.z.j($APP.bh(c),a))&&(s$(d)||$APP.bd($APP.Pf.l($APP.Vg,$APP.Ie.i($APP.bh),d),b))},GDa=function(a){a=$APP.G(a);a=$APP.C(a,$APP.dw);return s$(a)?1:0},HDa=function(a,b,c,d){var e=$APP.B(d,
|
|
11
|
+
0,null);d=$APP.B(d,1,null);d=$APP.t($APP.id(GDa,$APP.Ne($APP.se(FDa,b,c),d)));return d==null?null:new $APP.K(null,5,[$APP.hk,a,$APP.Qt,b,$APP.Tca,c,$APP.Yca,e,$APP.dw,$APP.bh($APP.dw.i(d))],null)},IDa=function(a){return $APP.gd($APP.Ie.j($APP.Uj.j($APP.Uh,$APP.bh),$APP.Ig(a)))},JDa=function(a,b){var c=EDa($APP.iq.i(a)),d=$APP.id($APP.jf,b);return $APP.Pf.j($APP.Qe,function(){return function g(f){return new $APP.Hd(null,function(){for(var k=f;;){var n=$APP.q(k);if(n){var r=n,v=$APP.t(r),w=$APP.G(v),
|
|
12
|
+
y=$APP.C(w,$APP.hk),A=$APP.C(w,$APP.Is);if(n=$APP.q(function(E,J,O,S,R,ca,na,ka,pa){return function rb(Ua){return new $APP.Hd(null,function(Fb,Vb,hc,Oc,Mg,ki,li,mi,sd){return function(){for(var Ng=Ua;;){var df=$APP.q(Ng);if(df){var Og=df,ij=$APP.t(Og);if(df=$APP.q(function(Kk,bs,Kf,hm,im,Lk,jm,Mk,jj,kj,lj,Ho,mj){return function Nk(nh){return new $APP.Hd(null,function(cs,km,Ok,oj,Io,Jo,pj,jg,ye,ds,Pk,ze){return function(){for(var Lf=nh;;)if(Lf=$APP.q(Lf)){if($APP.Xc(Lf)){var qj=$APP.Ab(Lf),Ko=$APP.x(qj),
|
|
13
|
+
Mf=$APP.Kd(Ko);a:{for(var Qk=0;;)if(Qk<Ko){var oh=$APP.Fc(qj,Qk);oh=HDa(jg,ze.i?ze.i(jg):ze.call(null,jg),Ok,oh);$APP.m(oh)&&Mf.add(oh);Qk+=1}else{qj=!0;break a}qj=void 0}return qj?$APP.Nd(Mf.ea(),Nk($APP.Bb(Lf))):$APP.Nd(Mf.ea(),null)}Mf=$APP.t(Lf);Mf=HDa(jg,ze.i?ze.i(jg):ze.call(null,jg),Ok,Mf);if($APP.m(Mf))return $APP.Fd(Mf,Nk($APP.bc(Lf)));Lf=$APP.bc(Lf)}else return null}}(Kk,bs,Kf,hm,im,Lk,jm,Mk,jj,kj,lj,Ho,mj),null)}}(Ng,Fb,ij,Og,df,Vb,hc,Oc,Mg,ki,li,mi,sd)(sd)))return $APP.Ke.j(df,rb($APP.bc(Ng)));
|
|
14
|
+
Ng=$APP.bc(Ng)}else return null}}}(E,J,O,S,R,ca,na,ka,pa),null)}}(k,v,w,y,A,r,n,c,d)(IDa(A))))return $APP.Ke.j(n,g($APP.bc(k)));k=$APP.bc(k)}else return null}},null)}($APP.Hs.i(a))}())},t$=function(a,b){var c=a[KDa];c==null?b.i?b.i(a):b.call(null,a):c.call(a,$APP.re(b,a));return null},LDa=function(a){return a===!0?"":a===!1||a==null?null:a instanceof $APP.F?$APP.bh(a):""+$APP.N.i(a)},MDa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);c=$APP.bh(c);b=LDa(b);return $APP.M.j(b,a.getAttribute(c))?
|
|
15
|
+
b!=null?a.setAttribute(c,b):a.removeAttribute(c):null},u$=function(a,b){return $APP.Jh($APP.re(MDa,b),a)},NDa=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},ODa=function(a,b,c){return b.append($APP.Wc(c)?v$.j?v$.j(a,c):v$.call(null,a,c):""+$APP.N.i(c))},v$=function(a,b){var c=o$(b);$APP.B(c,0,null);var d=$APP.B(c,1,null);c=$APP.B(c,2,null);if(!$APP.bd(d,
|
|
16
|
+
$APP.lr)&&$APP.me(uDa,$APP.Kg(d))&&$APP.me(vDa,c))c=o$(b);else throw $APP.Ph("A node is made from a fixed template. split takes holes and :on out of one.",new $APP.K(null,1,[$APP.Qt,$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.bh(d));t$(d,$APP.re(u$,b));$APP.Jh($APP.se(ODa,a,d),c);return d},PDa=function(a){var b=a.getAttribute("data-x-part");return b==null?null:new $APP.H(null,2,5,$APP.I,[b,a],null)},w$=function(a){return $APP.Pf.l($APP.he,$APP.xe(PDa),
|
|
17
|
+
$APP.Fd(a,$APP.Ac(a.querySelectorAll(QDa))))},RDa=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,$APP.Is);a=a.i?a.i(c):a.call(null,c);$APP.bd(b,$APP.Zm)&&NDa(a,$APP.Zm.i(b));return $APP.m(d)?t$(a,$APP.re(u$,d)):null},x$=function(a,b){var c=$APP.q($APP.Pf.l($APP.Qe,$APP.Oe(a),$APP.Ig(b)));if(c!=null)throw $APP.Ph("write-parts!: no node has these part names.",new $APP.K(null,1,[$APP.kk,$APP.lf(c)],null));return $APP.Jh($APP.re(RDa,a),b)},SDa=function(a,b){return a.getAttribute(b)},
|
|
18
|
+
TDa=function(a,b){var c=$APP.G(a);a=$APP.C(c,$APP.Is);var d=$APP.C(c,$APP.Ts);c=$APP.C(c,$APP.Lv);var e=$APP.iq.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,v$(document,e)));d=w$(d.lastElementChild);b=$APP.Pf.l($APP.he,$APP.Ie.i($APP.rh($APP.Bh,$APP.re(SDa,b))),a);return x$(d,r$(c,b))},UDa=function(a,b){var c=class extends HTMLElement{},d=c.prototype;c.observedAttributes=$APP.za(a);d.connectedCallback=
|
|
19
|
+
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},VDa=function(a,b){a=$APP.pe(a);a=new $APP.H(null,2,5,$APP.I,[$APP.dh(a,b),rDa(a,b)],null);b=$APP.B(a,0,null);a=$APP.B(a,1,null);return $APP.Ke.j(b,$APP.Ge(1,a))},WDa=function(a){return a instanceof Element},XDa=function(a){a=$APP.Ne(WDa,VDa($APP.re($APP.la,a.currentTarget),$APP.Bc(a.composedPath())));var b=$APP.ne(PDa,VDa($APP.fk,a)),c=$APP.B(b,0,null);b=$APP.B(b,
|
|
20
|
+
1,null);return new $APP.K(null,3,[y$,$APP.Pf.l($APP.Qe,$APP.xe($APP.Uj.j($APP.t,$APP.fk)),$APP.Dd(a)),$APP.hk,c,z$,b],null)},YDa=function(a,b,c,d){return function(e){e=$APP.$o.l(a,b,e);a:for(;;){var f=$APP.ab(a),g=c.i?c.i(f):c.call(null,f);d.i?d.i(g):d.call(null,g);if(f===$APP.ab(a))break a}return e}},ZDa=function(a,b){return a.getAttribute(b)},$Da=function(a){return $APP.Nc(y$.i(a))},aEa=function(a,b){return typeof b==="string"?(a=a.detail,a==null?null:a[b]):b},dEa=function(a,b){var c=$APP.G(a);
|
|
21
|
+
a=$APP.C(c,bEa);var d=$APP.C(c,$APP.ts),e=$APP.C(c,cEa);c=XDa(b);var f=$APP.G(c),g=$APP.C(f,$APP.hk);c=$APP.C(f,z$);d=$APP.C(d,new $APP.H(null,2,5,$APP.I,[b.type,g],null));if(d==null)return null;g=$APP.Wc(d)?d:new $APP.H(null,2,5,$APP.I,[d,$Da],null);d=$APP.B(g,0,null);g=$APP.B(g,1,null);f=g.j?g.j(f,b):g.call(null,f,b);d=new $APP.H(null,1,5,$APP.I,[d],null);f=f!=null?$APP.Cd.j(d,f):d;d=$APP.C(e,b.type);d==null?b=a.i?a.i(f):a.call(null,f):(e=$APP.fi.j($APP.Uj.j(LDa,$APP.re(aEa,b)),$APP.Kg(d)),a.i?
|
|
22
|
+
a.i(f):a.call(null,f),a=$APP.M.j,f=$APP.Ig(d),c=$APP.fi.j($APP.re(ZDa,c),f),b=a.call($APP.M,e,c)?b.preventDefault():null);return b},eEa=function(a,b,c){return a.addEventListener(c,$APP.re(dEa,b))},fEa=function(a,b){return new $APP.H(null,2,5,$APP.I,[b,a[b]],null)},A$=function(a){return a!=null?$APP.Pf.l($APP.he,$APP.Ie.i($APP.re(fEa,a)),Object.keys(a)):$APP.he},gEa=function(a){return $APP.m($APP.ma(a))?$APP.lf(a):a},hEa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.z.j("on",
|
|
23
|
+
c)?new $APP.H(null,2,5,$APP.I,[$APP.lr,$APP.Qh(A$(b),gEa)],null):$APP.Jc(b)?new $APP.H(null,2,5,$APP.I,[c,a.i?a.i(b):a.call(null,b)],null):new $APP.H(null,2,5,$APP.I,[c,b],null)},iEa=function(a,b){return $APP.m($APP.ma(b))?B$.j?B$.j(a,b):B$.call(null,a,b):$APP.Jc(b)?a.i?a.i(b):a.call(null,b):b},B$=function(a,b){b=$APP.q($APP.Ac(b));var c=$APP.t(b);b=$APP.u(b);var d=$APP.oa($APP.t(b))?$APP.t(b):null,e=$APP.Pf.l;c=new $APP.H(null,1,5,$APP.I,[c],null);c=$APP.m(d)?$APP.Cd.j(c,$APP.Pf.l($APP.he,$APP.Ie.i($APP.re(hEa,
|
|
24
|
+
a)),A$(d))):c;return e.call($APP.Pf,c,$APP.Ie.i($APP.re(iEa,a)),$APP.m(d)?$APP.bc(b):b)},C$=function(a,b,c){return Object.defineProperty(a,b,{value:c})},jEa=function(a){var b=$APP.m("text"in a)?$APP.Rg.l($APP.he,$APP.Zm,a.text):$APP.he;return a.attrs!=null?$APP.Rg.l(b,$APP.Is,A$(a.attrs)):b},D$=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;
|
|
25
|
+
if(d)a:{for(d=0;;){var e=d===c.length;if(e){a=e;break a}e=a;var f=b,g=c[d],k=Object.prototype.hasOwnProperty.call(f,g);e=$APP.m(k)?Object.is(e[g],f[g]):k;if($APP.m(e))d+=1;else{a=e;break a}}a=void 0}else a=d;return a}return c}return c},lEa=function(a,b){var c=b==null?null:b[kEa];if($APP.m(c))return c;throw $APP.Ph(""+$APP.N.i(a)+": not a split template.",new $APP.K(null,1,[E$,b],null));},mEa=function(a){var b;if(b=a!=null)if(b=typeof a.target==="string")b=(b=$APP.z.j("any",a.attributes))?b:$APP.ma(a.attributes);
|
|
26
|
+
if(!$APP.m(b))throw $APP.Ph("sharedHoles: a foreign write has a target and attributes.",new $APP.K(null,1,[E$,a],null));return new $APP.K(null,2,[$APP.dw,a.target,$APP.zv,$APP.m($APP.ma(a.attributes))?$APP.lf(a.attributes):a.attributes],null)},F$=function(a){return new $APP.K(null,4,[$APP.gk,a.parent,$APP.Zj,a.before,$APP.hi,a.key,$APP.hk,a.part],null)},nEa=function(a){return new $APP.K(null,3,[$APP.hi,a.key,$APP.Yj,a.in,$APP.Zj,a.before],null)},oEa=function(a,b,c){a[b]=c;return a},G$=function(a){return $APP.rd(oEa,
|
|
27
|
+
{},a)},pEa=function(a,b){a.push(b);return a},H$=function(a){return $APP.xa(pEa,[],a)},qEa=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.hi);var c=$APP.C(b,$APP.gk),d=$APP.C(b,$APP.Zj);b=$APP.C(b,$APP.hk);return{parent:c,before:d,key:a,part:b}},rEa=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.hi);var c=$APP.C(b,$APP.Yj);b=$APP.C(b,$APP.Zj);return{key:a,"in":c,before:b}},sEa=function(a){var b=$APP.G(a);a=$APP.C(b,y$);var c=$APP.C(b,$APP.hk);b=$APP.C(b,z$);return{keyPath:$APP.cn(a),part:c,node:b}},tEa=
|
|
28
|
+
function(a){return function(b,c){b=sEa(b);return a.j?a.j(b,c):a.call(null,b,c)}},uEa=function(a){var b=$APP.I,c=$APP.lf(a[0]);a=gEa(a[1]);a=$APP.Wc(a)?$APP.ei.l(a,1,tEa):a;return new $APP.H(null,2,5,b,[c,a],null)},vEa=function(a){return function(b){b=$APP.cn(b);return a.i?a.i(b):a.call(null,b)}},I$=function(a,b){this.store=a;this.Kc=b;this.B=425984;this.K=65536},wEa=function(a){return function(b){b=$APP.cn(b);return a.i?a.i(b):a.call(null,b)}},E$=new $APP.F(null,"given","given",716253602),z$=new $APP.F(null,
|
|
29
|
+
"node","node",581201198),y$=new $APP.F(null,"key-path","key-path",878473308),cEa=new $APP.F(null,"requested-values","requested-values",3116167),bEa=new $APP.F(null,"dispatch!","dispatch!",-1927281664);var KDa=Symbol["for"]("x-render-hold"),J$=function J$(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return J$.o(arguments[0],1<c.length?new $APP.Yb(c.slice(1),0,null):null)};J$.o=function(a){return a.cloneNode(!0)};J$.M=1;J$.I=function(a){var b=$APP.t(a);a=$APP.u(a);return this.o(b,a)};var QDa="["+$APP.N.i("data-x-part")+"]:not(:scope ["+$APP.N.i("data-x-key")+"], :scope ["+$APP.N.i("data-x-key")+"] *)",xEa=Symbol("baremirror.last-written");var K$=function K$(a){var c=$APP.ma(a);$APP.m($APP.m(c)?c:$APP.oa(a))&&($APP.Jh(K$,Object.values(a)),Object.freeze(a));return a},kEa=Symbol("baremirror.split"),L$=Symbol("baremirror.value");I$.prototype.Y=function(a,b){return new I$(this.store,b)};I$.prototype.W=function(){return this.Kc};I$.prototype.tb=function(){return this.store.value};I$.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.ek($APP.Qh(A$(a),$APP.lf),$APP.Qh(A$(b),$APP.lf));a=$APP.G(a);b=$APP.C(a,$APP.ck);var c=$APP.C(a,$APP.dk);return K$(C$({remove:H$(b),place:H$($APP.Ie.j(rEa,c))},L$,a))};export const syncPlaces=function(a,b,c){return G$($APP.xk($APP.Qh(A$(a),F$),$APP.Qh(A$(b),$APP.lf),c))};export const setText=function(a,b){return NDa(a,b)};export const readOrigin=function(a){return sEa(XDa(a))};export const setAttrs=function(a,b){b=A$(b);return t$(a,$APP.re(u$,b))};
|
|
30
|
+
export const readPlaces=function(a){a=$APP.uk($APP.Qh(A$(a),F$));a=$APP.G(a);var b=$APP.C(a,$APP.rk),c=$APP.C(a,$APP.sk),d=$APP.C(a,$APP.tk);return K$(C$({containers:G$($APP.Qh(b,qEa)),places:G$($APP.Qh(c,H$)),nodes:G$(d)},L$,a))};export const withOneRender=function(a,b){return t$(a,b)};
|
|
31
|
+
export const splitTemplate=function(a,b){var c=ADa(a,B$($APP.td,b));return K$(C$({fixed:$APP.cn($APP.iq.i(c)),holes:$APP.cn($APP.Hs.i(c)),events:$APP.cn($APP.lf($APP.ts.i(c))),writes:function(d){return $APP.cn(r$(c,d))}},kEa,c))};export const release=function(a){return a.removeAttribute("data-x-key")};export const makeNode=function(a){a=B$($APP.td,a);return v$(document,a)};export const dispatcher=function(a,b,c,d){return YDa(new I$(a,$APP.he),b,c,d)};
|
|
32
|
+
export const nodeMaker=function(a){a=B$($APP.td,a);return $APP.re(J$,v$(document.createElement("template").content.ownerDocument,a))};export const sharedHoles=function(a,b){return $APP.cn(JDa(lEa("sharedHoles",a),$APP.Qh(A$(b),$APP.re($APP.fi,mEa))))};
|
|
33
|
+
export const perform=function(a,b,c){var d=a==null?null:a[L$];a=$APP.m(d)?d:new $APP.K(null,2,[$APP.rk,$APP.Qh(A$(a.containers),F$),$APP.tk,A$(a.nodes)],null);d=b==null?null:b[L$];b=$APP.m(d)?d:new $APP.K(null,2,[$APP.ck,$APP.lf(b.remove),$APP.dk,$APP.fi.j(nEa,b.place)],null);return G$($APP.wk(a,b,c))};
|
|
34
|
+
export const listen=function(a,b){var c=vEa(b.dispatch);var d=b.events;d=$APP.Pf.l($APP.he,$APP.Ie.i(uEa),$APP.Ac(d));b=new $APP.K(null,3,[bEa,c,$APP.ts,d,cEa,$APP.Qh(A$(b.requestedValues),A$)],null);b=$APP.G(b);c=$APP.C(b,$APP.ts);return $APP.Jh($APP.se(eEa,a,b),$APP.Pf.l($APP.Vg,$APP.Ie.i($APP.t),$APP.Ig(c)))};export const readParts=function(a){return $APP.cn(w$(a))};export const writeParts=function(a,b){return x$(A$(a),$APP.Qh(A$(b),jEa))};
|
|
35
|
+
export const defineElement=function(a,b){b=new $APP.K(null,3,[$APP.Is,$APP.lf(b.attrs),$APP.aw,B$(wEa,b.template),$APP.Ts,b.css],null);var c=$APP.G(b),d=$APP.C(c,$APP.aw);b=$APP.C(c,$APP.Is);c=$APP.C(c,$APP.Ts);d=ADa(a,d);if(!$APP.Qc($APP.ts.i(d)))throw $APP.Ph("define-element!: the template of an element takes no :on entry.",new $APP.K(null,1,[$APP.Qt,a],null));d=new $APP.K(null,3,[$APP.Is,b,$APP.Ts,c,$APP.Lv,d],null);return $APP.m(customElements.get(a))?null:customElements.define(a,UDa(b,$APP.re(TDa,
|
|
36
|
+
d)))};export const writeItem=function(a,b,c){b=lEa("writeItem",b);if(!($APP.Uc(b)&&$APP.bd(b,$APP.iq)&&$APP.bd(b,$APP.Hs)))throw $APP.Ph("write-item!: not a split template.",new $APP.K(null,1,[E$,b],null));var d=a[xEa];var e=$APP.B(d,0,null);d=$APP.B(d,1,null);e=(e=b===e)?D$.j?D$.j(c,d):D$.call(null,c,d):e;$APP.m(e)||(x$(w$(a),r$(b,c)),a[xEa]=new $APP.H(null,2,5,$APP.I,[b,c],null));return null};
|