@vanelsas/baredom 4.11.0 → 4.12.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.
Files changed (115) hide show
  1. package/CHANGELOG.md +44 -0
  2. package/README.md +11 -7
  3. package/dist/baremirror-alpha.d.ts +200 -0
  4. package/dist/baremirror-alpha.js +41 -38
  5. package/dist/base.js +460 -458
  6. package/dist/integrity.json +112 -112
  7. package/dist/x-alert.js +17 -17
  8. package/dist/x-avatar-group.js +10 -10
  9. package/dist/x-avatar.js +13 -13
  10. package/dist/x-badge.js +9 -9
  11. package/dist/x-bento-grid.js +6 -6
  12. package/dist/x-bento-item.js +4 -4
  13. package/dist/x-breadcrumbs.js +17 -17
  14. package/dist/x-button.js +1 -1
  15. package/dist/x-calendar.js +41 -41
  16. package/dist/x-cancel-dialogue.js +16 -16
  17. package/dist/x-card.js +7 -7
  18. package/dist/x-carousel.js +34 -34
  19. package/dist/x-chart.js +48 -48
  20. package/dist/x-checkbox.js +1 -1
  21. package/dist/x-chip.js +1 -1
  22. package/dist/x-code.js +29 -29
  23. package/dist/x-collapse.js +11 -11
  24. package/dist/x-color-picker.js +43 -43
  25. package/dist/x-combobox.js +34 -34
  26. package/dist/x-command-palette.js +30 -30
  27. package/dist/x-confetti.js +24 -24
  28. package/dist/x-container.js +6 -6
  29. package/dist/x-context-menu.js +19 -19
  30. package/dist/x-copy.js +1 -1
  31. package/dist/x-currency-field.js +23 -23
  32. package/dist/x-date-picker.js +44 -44
  33. package/dist/x-divider.js +7 -7
  34. package/dist/x-drag-panel.js +32 -32
  35. package/dist/x-drawer.js +12 -12
  36. package/dist/x-drop-zone.js +11 -11
  37. package/dist/x-dropdown.js +12 -12
  38. package/dist/x-fieldset.js +6 -6
  39. package/dist/x-file-download.js +14 -14
  40. package/dist/x-file-upload.js +26 -26
  41. package/dist/x-floating-panel.js +21 -21
  42. package/dist/x-form-field.js +17 -17
  43. package/dist/x-form.js +10 -10
  44. package/dist/x-gaussian-blur.js +13 -13
  45. package/dist/x-grid.js +8 -8
  46. package/dist/x-i18n-provider.js +7 -7
  47. package/dist/x-i18n.js +4 -4
  48. package/dist/x-icon.js +7 -7
  49. package/dist/x-image.js +18 -18
  50. package/dist/x-kbd.js +13 -13
  51. package/dist/x-kinetic-canvas.js +24 -24
  52. package/dist/x-kinetic-font.js +26 -26
  53. package/dist/x-kinetic-typography.js +33 -33
  54. package/dist/x-liquid-dock.js +29 -29
  55. package/dist/x-liquid-fill.js +36 -36
  56. package/dist/x-liquid-glass.js +27 -27
  57. package/dist/x-menu-item.js +9 -9
  58. package/dist/x-menu.js +10 -10
  59. package/dist/x-metaball-cursor.js +25 -25
  60. package/dist/x-modal.js +12 -12
  61. package/dist/x-morph-stack.js +37 -37
  62. package/dist/x-multi-combobox.js +41 -41
  63. package/dist/x-navbar.js +15 -15
  64. package/dist/x-neural-glow.js +28 -29
  65. package/dist/x-notification-center.js +9 -9
  66. package/dist/x-organic-divider.js +17 -17
  67. package/dist/x-organic-progress.js +33 -33
  68. package/dist/x-organic-shape.js +12 -12
  69. package/dist/x-otp-input.js +22 -22
  70. package/dist/x-pagination.js +18 -18
  71. package/dist/x-particle-button.js +51 -51
  72. package/dist/x-popover.js +26 -26
  73. package/dist/x-progress-circle.js +7 -7
  74. package/dist/x-progress.js +7 -7
  75. package/dist/x-proximity-list.js +20 -20
  76. package/dist/x-radio.js +13 -13
  77. package/dist/x-range-slider.js +29 -29
  78. package/dist/x-rating.js +23 -23
  79. package/dist/x-ripple-effect.js +9 -9
  80. package/dist/x-scroll-parallax.js +17 -17
  81. package/dist/x-scroll-stack.js +17 -17
  82. package/dist/x-scroll-story.js +33 -33
  83. package/dist/x-scroll-timeline.js +49 -49
  84. package/dist/x-scroll.js +37 -37
  85. package/dist/x-search-field.js +1 -1
  86. package/dist/x-select.js +1 -1
  87. package/dist/x-sidebar.js +16 -16
  88. package/dist/x-skeleton-group.js +14 -14
  89. package/dist/x-skeleton.js +1 -1
  90. package/dist/x-slider.js +17 -17
  91. package/dist/x-soft-body.js +16 -16
  92. package/dist/x-spacer.js +3 -3
  93. package/dist/x-spinner.js +4 -4
  94. package/dist/x-splash.js +13 -13
  95. package/dist/x-split-pane.js +14 -14
  96. package/dist/x-spotlight-card.js +12 -12
  97. package/dist/x-stat.js +10 -10
  98. package/dist/x-stepper.js +14 -14
  99. package/dist/x-switch.js +12 -12
  100. package/dist/x-tab.js +7 -7
  101. package/dist/x-table-cell.js +20 -20
  102. package/dist/x-table-row.js +8 -8
  103. package/dist/x-table.js +20 -20
  104. package/dist/x-tabs.js +12 -12
  105. package/dist/x-text-area.js +20 -20
  106. package/dist/x-theme.js +25 -25
  107. package/dist/x-timeline-item.js +20 -20
  108. package/dist/x-timeline.js +9 -9
  109. package/dist/x-toast.js +21 -21
  110. package/dist/x-toaster.js +6 -6
  111. package/dist/x-tooltip.js +14 -14
  112. package/dist/x-trace-history.js +115 -115
  113. package/dist/x-typography.js +6 -6
  114. package/dist/x-welcome-tour.js +63 -63
  115. package/package.json +3 -2
package/CHANGELOG.md CHANGED
@@ -2,6 +2,50 @@
2
2
 
3
3
  All notable changes to BareDOM will be documented in this file.
4
4
 
5
+ ## [4.12.0] - 2026-10-21
6
+
7
+ BareDOM 4.12 can be imported on a server, so a page that uses its components renders with a
8
+ server renderer such as Next.js. BareMirror's `listen` returns a function that stops it, a
9
+ template can make SVG, and the module ships TypeScript types. The adapters are not released
10
+ with it: they work with `@vanelsas/baredom` 4.0.0 or later, and a page that uses them renders
11
+ on a server with 4.12.0 or later.
12
+
13
+ ### Added
14
+
15
+ - **`listen` in BareMirror returns a function that removes its listeners.** `events/listen!`
16
+ returns the same function.
17
+ - **SVG in a BareMirror template.** An `svg` and the elements below it are made in the SVG
18
+ namespace, and the children of a `foreignObject` are HTML again. An element with an `xmlns`
19
+ attribute is in that namespace, so a template for a `circle` can make rows for an `svg` on
20
+ the page. `splitTemplate` refuses an `xmlns` hole.
21
+ - **Types for BareMirror.** `@vanelsas/baredom/baremirror-alpha` ships `baremirror-alpha.d.ts`.
22
+ The item of a split template follows from its holes, so `writeItem` refuses an item of
23
+ another type and a copy of a split template, and `makeNode` refuses a template with holes.
24
+
25
+ ### Fixed
26
+
27
+ - **`x-particle-button` reads a translucent colour the same each time, and `x-neural-glow` reads
28
+ every colour syntax.** `x-particle-button` painted a colour over the one it read before, so
29
+ `rgba(255, 0, 0, 0.5)` took on the colour read before it. `x-neural-glow` drew a colour in
30
+ `oklch`, `lab`, `color()` or `color-mix` as black. Both now read a cleared pixel.
31
+ - **BareDOM loads on a server.** A component module and its `init()` do nothing where there is
32
+ no DOM, so a page that uses the adapters renders on a server, as in a Next.js build.
33
+ `x-neural-glow`, `x-particle-button` and `x-trace-history` make their canvas or media query
34
+ on first use. CI loads each module in Node.
35
+ - **`nodeMaker` and `defineElement` in BareMirror can be called where there is no DOM.**
36
+ `nodeMaker` checks its template at once and makes its first node on its first call, and
37
+ `defineElement` defines nothing where there is no `customElements`. A module that calls them
38
+ when it loads can be imported on a server.
39
+ - **`listen` in BareMirror hears an event that does not bubble.** `focus`, `blur`,
40
+ `pointerenter`, `scroll` and a custom event with no `bubbles` reached no listener. They now
41
+ reach `listen` on their way down. An event that bubbles is handled as before.
42
+
43
+ ### Changed
44
+
45
+ - **The README states the bundle size and the runtime as they are.** `base.js` is about 72 KB
46
+ gzipped and holds the ClojureScript core and the shared components, and BareDOM is no longer
47
+ called zero runtime. The npm description says no dependencies instead.
48
+
5
49
  ## [4.11.0] - 2026-10-20
6
50
 
7
51
  BareDOM 4.11 lets a BareMirror template write the properties of a component, and a component
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
  </picture>
9
9
  </p>
10
10
 
11
- **Native web components. Zero runtime. No framework required.**
11
+ **Native web components. No framework runtime. No dependencies.**
12
12
 
13
13
  [![npm version](https://img.shields.io/npm/v/%40vanelsas%2Fbaredom.svg)](https://www.npmjs.com/package/@vanelsas/baredom)
14
14
  [![license](https://img.shields.io/npm/l/%40vanelsas%2Fbaredom.svg)](./LICENSE)
@@ -52,7 +52,7 @@ All components can be explored in the [live demo](https://avanelsas.github.io/ba
52
52
 
53
53
  **Stateless.** Every render is a pure function of attributes and properties — no hidden state, no signals, no virtual DOM. Inspect attributes in DevTools and you see the truth. (And when you need deeper traces, BareDOM ships a time-travel debugger — see below.)
54
54
 
55
- **Zero runtime, tree-shakeable.** Each component is a self-contained ES module compiled with Google Closure Advanced. The only JavaScript in your bundle is the components you import — no framework, no utility belt, no runtime library.
55
+ **No framework, no dependencies.** Each component is an ES module compiled with Google Closure Advanced. A page loads one shared `base.js`, with the ClojureScript core and what several components share, plus a small module for each component it uses. No framework, no virtual DOM, nothing to install beside BareDOM.
56
56
 
57
57
  **Predictable theming.** Every visual detail is exposed as a `--x-<component>-<property>` CSS custom property. Set it on the component, or wrap the page in [`<x-theme>`](./docs/x-theme.md) for coordinated palettes with built-in presets. Light/dark mode adapts automatically via `prefers-color-scheme`.
58
58
 
@@ -107,6 +107,8 @@ BareDOM components are native HTML elements — they work natively in any framew
107
107
 
108
108
  All adapters are auto-generated from the same Custom Elements Manifest, so adding a new BareDOM component updates every adapter in lockstep.
109
109
 
110
+ **Server rendering.** BareDOM can be imported on a server. A component module and its `init()` do nothing where there is no DOM, so a server renderer, as in a Next.js build, writes each component as its tag, attributes and children. The browser makes it a component when the page loads. The server does not render a component's shadow tree: to send a page with it, [prerender](./docs/PRERENDER.md) the page.
111
+
110
112
  ---
111
113
 
112
114
  ## Components
@@ -179,14 +181,16 @@ BareDOM compiles to lightweight ES modules. Sizes below are gzipped:
179
181
 
180
182
  | Module | Gzipped |
181
183
  |--------|---------|
182
- | `base.js` (shared runtime) | ~35 KB |
184
+ | `base.js` (shared runtime and shared components) | ~72 KB |
183
185
  | Median component | ~3 KB |
184
- | Smallest (`x-spacer`) | ~1 KB |
185
- | Largest (`x-chart`) | ~9 KB |
186
+ | Largest (`x-particle-button`) | ~11 KB |
186
187
 
187
- Each component loads `base.js` once plus its own module. A typical page using 5-10 components weighs **40-65 KB** gzipped total.
188
+ Each page loads `base.js` once, plus a module per component. `base.js` holds what several
189
+ modules share: the runtime, and the components that others are built from, such as
190
+ `x-button`, `x-checkbox`, `x-select` and `x-search-field`. Those add almost nothing on their
191
+ own. A page using 5–10 other components weighs about **85–105 KB** gzipped.
188
192
 
189
- > **ESM only.** BareDOM ships ES modules exclusively — there is no CommonJS or UMD build. This works natively in all modern browsers and with any bundler that supports ESM (webpack 5+, Vite, esbuild, Rollup, Parcel). TypeScript declarations (`.d.ts`) are included for every component. If you need server-side rendering, pre-render the HTML and hydrate with component registration on the client.
193
+ > **ESM only.** BareDOM ships ES modules exclusively — there is no CommonJS or UMD build. This works natively in all modern browsers and with any bundler that supports ESM (webpack 5+, Vite, esbuild, Rollup, Parcel). TypeScript declarations (`.d.ts`) are included for every component. For a server, see [Server rendering](#framework-adapters).
190
194
 
191
195
  ---
192
196
 
@@ -0,0 +1,200 @@
1
+ // baremirror-alpha.d.ts — the types of @vanelsas/baredom/baremirror-alpha. Written by hand.
2
+ // generate_types.bb copies this file into dist. test/types/baremirror.ts checks it.
3
+
4
+ import type { ForeignWrite } from "./foreign-writes";
5
+
6
+ // ── Templates ───────────────────────────────────────────────────────────────
7
+
8
+ /** What an attribute takes: text, a number or a boolean. `false`, `null` and `undefined` remove it. */
9
+ export type AttrValue = string | number | boolean | null | undefined;
10
+
11
+ /** A function of an item. It says where a value goes. */
12
+ export type Hole<Item> = (item: Item) => unknown;
13
+
14
+ /** A hole of an attribute. It gives what an attribute takes. */
15
+ export type AttrHole<Item> = (item: Item) => AttrValue;
16
+
17
+ /** Holes by name. */
18
+ export type Holes<Item> = Readonly<Record<string, Hole<Item>>>;
19
+
20
+ /** Attribute holes by name. */
21
+ export type AttrHoles<Item> = Readonly<Record<string, AttrHole<Item>>>;
22
+
23
+ /** A meaning, or a meaning and a function that gives the argument of the message. */
24
+ export type Meaning = string | readonly [meaning: string, argOf: (origin: Origin, e: Event) => unknown];
25
+
26
+ /** The attributes of an element of a template. */
27
+ export interface Attrs<Item> {
28
+ /** The namespace of the element and of the elements below it. Never a hole. */
29
+ xmlns?: string;
30
+ /** An event type to its meaning. */
31
+ on?: Readonly<Record<string, Meaning>>;
32
+ /** A property name to its hole. */
33
+ props?: Holes<Item>;
34
+ [attr: string]: AttrValue | AttrHole<Item> | Readonly<Record<string, unknown>>;
35
+ }
36
+
37
+ /** A tag, optional attributes, and children: templates, text, numbers, or one hole as the only child. */
38
+ export type Template<Item> =
39
+ readonly [tag: string, ...rest: (Attrs<Item> | Template<Item> | string | number | Hole<Item>)[]];
40
+
41
+ /** The attributes of a fixed template: no hole, no `on` and no `props`. */
42
+ export interface FixedAttrs {
43
+ on?: never;
44
+ props?: never;
45
+ [attr: string]: AttrValue;
46
+ }
47
+
48
+ /** A template with no hole and no `on` or `props` entry. */
49
+ export type FixedTemplate = readonly [tag: string, ...rest: (FixedAttrs | FixedTemplate | string | number)[]];
50
+
51
+ // ── Parts ───────────────────────────────────────────────────────────────────
52
+
53
+ /** The write of one part. */
54
+ export interface Write {
55
+ text?: unknown;
56
+ attrs?: Readonly<Record<string, AttrValue>>;
57
+ props?: Readonly<Record<string, unknown>>;
58
+ }
59
+
60
+ /** Writes by part name. */
61
+ export type Writes = Readonly<Record<string, Write>>;
62
+
63
+ /** Nodes by part name. */
64
+ export type Parts = Readonly<Record<string, Element>>;
65
+
66
+ /** The hole entry of one part. */
67
+ export interface HoleEntry<Item> {
68
+ readonly part: string;
69
+ readonly attrs?: AttrHoles<Item>;
70
+ readonly text?: Hole<Item>;
71
+ readonly props?: Holes<Item>;
72
+ }
73
+
74
+ /** An event type and a part name, with a meaning. */
75
+ export type EventEntry = readonly [readonly [eventType: string, part: string], Meaning];
76
+
77
+ /** What `splitTemplate` returns. Frozen. A copy of it is not a split template. */
78
+ export declare class SplitTemplate<Item> {
79
+ private constructor();
80
+ /** Ties the split template to the type of its item. */
81
+ private readonly item: Item;
82
+ readonly fixed: FixedTemplate;
83
+ readonly holes: readonly HoleEntry<Item>[];
84
+ readonly events: readonly EventEntry[];
85
+ /** The writes of `item`, by part name. */
86
+ writes(item: Item): Writes;
87
+ }
88
+
89
+ /** A hole of a split template that a component may also write. */
90
+ export interface SharedHole {
91
+ readonly part: string;
92
+ readonly tag: string;
93
+ readonly attr: string;
94
+ readonly writer: string;
95
+ readonly target: string;
96
+ }
97
+
98
+ export function splitTemplate<Item>(name: string, template: Template<Item>): SplitTemplate<Item>;
99
+ export function sharedHoles<Item>(
100
+ split: SplitTemplate<Item>,
101
+ foreignWrites: Readonly<Record<string, readonly ForeignWrite[]>>,
102
+ ): SharedHole[];
103
+ export function makeNode(fixed: FixedTemplate): Element;
104
+ export function nodeMaker(fixed: FixedTemplate): (...ignored: unknown[]) => Element;
105
+ export function readParts(node: Element): Parts;
106
+ export function writeParts(parts: Parts, writes: Writes): void;
107
+ export function writeItem<Item>(node: Element, split: SplitTemplate<Item>, item: Item): void;
108
+ export function setAttrs(el: Element, attrs: Readonly<Record<string, AttrValue>>): void;
109
+ export function setText(el: Element, text: unknown): void;
110
+ export function withOneRender<E extends Element>(el: E, work: (el: E) => unknown): void;
111
+
112
+ // ── Places ──────────────────────────────────────────────────────────────────
113
+
114
+ /** A parent with an optional anchor, the key of a node with an optional part, or a part alone. */
115
+ export type Container =
116
+ | { readonly parent: Element; readonly before?: Node | null }
117
+ | { readonly key: string; readonly part?: string }
118
+ | { readonly part: string };
119
+
120
+ /** Containers by name. */
121
+ export type Containers = Readonly<Record<string, Container>>;
122
+
123
+ /** The keys of each container, in order. */
124
+ export type Places = Readonly<Record<string, readonly string[]>>;
125
+
126
+ /** Nodes by key. */
127
+ export type Nodes = Readonly<Record<string, Element>>;
128
+
129
+ /** What `readPlaces` returns. Frozen. */
130
+ export interface Reading {
131
+ readonly containers: Containers;
132
+ readonly places: Places;
133
+ readonly nodes: Nodes;
134
+ }
135
+
136
+ /** One placement of a plan: a key, its container, and the key it goes before, or null. */
137
+ export interface Placement {
138
+ readonly key: string;
139
+ readonly in: string;
140
+ readonly before: string | null;
141
+ }
142
+
143
+ /** What `plan` returns. Frozen. */
144
+ export interface Plan {
145
+ readonly remove: readonly string[];
146
+ readonly place: readonly Placement[];
147
+ }
148
+
149
+ /** Makes the node of a new key. */
150
+ export type Make = (key: string) => Element;
151
+
152
+ export function plan(current: Places, wanted: Places): Plan;
153
+ export function readPlaces(containers: Containers): Reading;
154
+ export function perform(reading: Reading, plan: Plan, make: Make): Nodes;
155
+ export function syncPlaces(containers: Containers, wanted: Places, make: Make): Nodes;
156
+ export function release(node: Element): void;
157
+
158
+ // ── Events ──────────────────────────────────────────────────────────────────
159
+
160
+ /** The keys on the path of an event, outermost first, and its nearest part. */
161
+ export interface Origin {
162
+ readonly keyPath: readonly string[];
163
+ readonly part: string | null;
164
+ readonly node: Element | null;
165
+ }
166
+
167
+ /** What the application receives: a meaning and an optional argument. */
168
+ export type Message = readonly [meaning: string, arg?: unknown];
169
+
170
+ export interface ListenOptions {
171
+ dispatch: (message: Message) => unknown;
172
+ events: readonly EventEntry[];
173
+ requestedValues?: typeof import("./requests").requestedValues;
174
+ }
175
+
176
+ /** The state holder of `dispatcher`. */
177
+ export interface Store<State> {
178
+ value: State;
179
+ }
180
+
181
+ export function readOrigin(e: Event): Origin;
182
+ /** Returns a function that removes the listeners. */
183
+ export function listen(root: Node, options: ListenOptions): () => void;
184
+ export function dispatcher<State, View>(
185
+ store: Store<State>,
186
+ step: (state: State, message: Message) => State,
187
+ view: (state: State) => View,
188
+ render: (view: View) => unknown,
189
+ ): (message: Message) => State;
190
+
191
+ // ── Elements ────────────────────────────────────────────────────────────────
192
+
193
+ export interface ElementOptions<A extends string> {
194
+ /** The attributes the element shows. A hole gets them as an item, `null` when absent. */
195
+ attrs: readonly A[];
196
+ template: Template<Readonly<Record<A, string | null>>>;
197
+ css?: string;
198
+ }
199
+
200
+ export function defineElement<A extends string>(tag: string, options: ElementOptions<A>): void;
@@ -1,39 +1,42 @@
1
1
  import { $APP, shadow$provide } from "./base.js";
2
- var TDa=function(a,b){return new $APP.Gd(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.ac(d);else{c=d;break a}}c=void 0}return c},null)},VDa=function(a){var b=UDa;return function e(d){return new $APP.Gd(null,function(){return $APP.Ed(d,$APP.m($APP.Vc.i?$APP.Vc.i(d):$APP.Vc.call(null,d))?$APP.Ke(e,$APP.zc([b.i?b.i(d):b.call(null,d)])):null)},null)}(a)},l$=function(a){var b=$APP.q(a);a=$APP.t(b);b=$APP.u(b);return $APP.Tc($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)},m$=function(a){return a instanceof $APP.E||$APP.Ic(a)},WDa=function(a){return typeof a==="string"||typeof a==="number"||a===!0||a===!1||a==null},XDa=function(a){return $APP.Vc(a)||typeof a==="string"||typeof a==="number"},YDa=function(a){return $APP.me(function(b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.A.j("data-x-part",$APP.ah(c))?b:null},a)},ZDa=function(a){var b=$APP.G(a),
4
- c=$APP.C(b,$APP.Hr);a=$APP.C(b,$APP.en);b=$APP.C(b,$APP.eq);a=(c=$APP.q(c))?c:$APP.m(a)?a:$APP.q(b);return $APP.D(a)},$Da=function(a,b){var c=$APP.B(b,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)},aEa=function(a,b,c){var d=$APP.G(c);c=$APP.C(d,$APP.sr);var e=$APP.G(d),f=$APP.C(e,$APP.Hr),g=$APP.C(e,$APP.en);d=$APP.C(e,$APP.eq);ZDa(e)?(e=new $APP.J(null,1,[$APP.ik,b],null),f=$APP.q(f)?$APP.Mg.l(e,$APP.Rs,f):e,g=$APP.m(g)?$APP.Mg.l(f,
5
- $APP.en,g):f,d=$APP.q(d)?$APP.Mg.l(g,$APP.eq,d):g):d=null;a=$APP.di.O(a,$APP.Bs,$APP.Lf,$APP.He.i($APP.qe($Da,b)),c);return $APP.m(d)?$APP.di.J(a,$APP.Qs,$APP.Bd,d):a},bEa=function(a,b,c){var d=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.Vc(c)?(c=n$.l?n$.l(a,b,c):n$.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.Bd.j(d,a),c],null)):new $APP.H(null,2,5,$APP.I,[$APP.Bd.j(d,c),b],null)},n$=function(a,b,c){var d=l$(c);c=$APP.B(d,0,null);var e=$APP.B(d,1,null),
6
- f=$APP.B(d,2,null),g=$APP.wk.o(e,$APP.sr,$APP.zc([$APP.eq]));if($APP.p($APP.me(m$,f)))d=null;else{if($APP.u(f))throw $APP.Oh("A text hole must be the only child of its element.",new $APP.J(null,1,[$APP.Zt,c],null));d=$APP.t(f)}var k=$APP.sr.i(e);e=$APP.eq.i(e);if(!$APP.le(m$,$APP.Jg(e)))throw $APP.Oh("A value in :props is a hole.",new $APP.J(null,1,[$APP.Zt,c],null));var n=$APP.Lf.l($APP.ge,$APP.Ne($APP.Wj.j(m$,$APP.hf)),g);g=$APP.Lf.l($APP.ge,$APP.Le($APP.Wj.j(m$,$APP.hf)),g);if($APP.m(d))f=null;
7
- else if(!$APP.le(XDa,f))throw $APP.Oh("A child of a template is a template, text, a number or one hole.",new $APP.J(null,1,[$APP.Zt,c],null));d=new $APP.J(null,7,[$APP.Zt,c,$APP.sr,k,$APP.eq,e,$APP.pq,n,$APP.Hr,g,$APP.en,d,$APP.Gu,f],null);b=$APP.G(b);c=$APP.C(b,$APP.qv);d=$APP.G(d);k=$APP.C(d,$APP.pq);k=YDa(k);f=$APP.G(d);g=$APP.C(f,$APP.sr);$APP.D($APP.q(g)||ZDa(f))?$APP.m(k)?d=new $APP.H(null,2,5,$APP.I,[d,aEa(b,k,d)],null):(c=""+$APP.N.i(a)+"."+$APP.N.i(c),d=new $APP.H(null,2,5,$APP.I,[$APP.gp(d,
8
- new $APP.H(null,2,5,$APP.I,[$APP.pq,$APP.Ah.i("data-x-part")],null),c),aEa($APP.di.l(b,$APP.qv,$APP.hc),c,d)],null)):d=new $APP.H(null,2,5,$APP.I,[d,b],null);b=$APP.B(d,0,null);k=$APP.G(b);c=$APP.C(k,$APP.Zt);b=$APP.C(k,$APP.pq);k=$APP.C(k,$APP.Gu);d=$APP.B(d,1,null);d=$APP.wa($APP.qe(bEa,a),new $APP.H(null,2,5,$APP.I,[$APP.Pe,d],null),k);a=$APP.B(d,0,null);d=$APP.B(d,1,null);k=$APP.I;f=$APP.Lf.j;c=new $APP.H(null,1,5,$APP.I,[c],null);b=$APP.q(b)?$APP.Bd.j(c,b):c;return new $APP.H(null,2,5,k,[f.call($APP.Lf,
9
- b,a),d],null)},cEa=function(a,b){b=n$($APP.ah(a),new $APP.J(null,3,[$APP.qv,0,$APP.Qs,$APP.Pe,$APP.Bs,$APP.ge],null),b);a=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.J(null,3,[$APP.pq,a,$APP.Qs,$APP.Qs.i(b),$APP.Bs,$APP.Bs.i(b)],null)},o$=function(a,b){return b.i?b.i(a):b.call(null,a)},dEa=function(a,b){var c=$APP.G(b);b=$APP.C(c,$APP.ik);var d=$APP.C(c,$APP.Rs),e=$APP.C(c,$APP.en),f=$APP.C(c,$APP.eq);c=$APP.I;d=$APP.m(d)?$APP.Mg.l($APP.ge,$APP.Rs,$APP.Ph(d,$APP.qe(o$,a))):$APP.ge;e=$APP.m(e)?
10
- $APP.Mg.l(d,$APP.en,o$(a,e)):d;a=$APP.m(f)?$APP.Mg.l(e,$APP.eq,$APP.Ph(f,$APP.qe(o$,a))):e;return new $APP.H(null,2,5,c,[b,a],null)},p$=function(a,b){return $APP.Lf.l($APP.ge,$APP.He.i($APP.qe(dEa,b)),$APP.Qs.i(a))},UDa=function(a){return $APP.Me($APP.Vc,$APP.uc(l$(a),2))},eEa=function(a){var b=l$(a);a=$APP.B(b,0,null);b=$APP.B(b,1,null);b=YDa(b);return b==null?null:new $APP.H(null,2,5,$APP.I,[b,$APP.Th($APP.ah(a))],null)},fEa=function(a){return $APP.Lf.l($APP.ge,$APP.we(eEa),VDa(a))},q$=function(a){return(typeof a===
11
- "string"||a instanceof $APP.E)&&$APP.A.j("any",$APP.ah(a))},gEa=function(a,b,c){var d=$APP.G(c);c=$APP.C(d,$APP.nw);d=$APP.C(d,$APP.Iv);return(q$(c)||$APP.A.j($APP.ah(c),a))&&(q$(d)||$APP.ad($APP.Lf.l($APP.Ug,$APP.He.i($APP.ah),d),b))},hEa=function(a){a=$APP.G(a);a=$APP.C(a,$APP.nw);return q$(a)?1:0},iEa=function(a,b,c,d){var e=$APP.B(d,0,null);d=$APP.B(d,1,null);d=$APP.t($APP.hd(hEa,$APP.Me($APP.re(gEa,b,c),d)));return d==null?null:new $APP.J(null,5,[$APP.ik,a,$APP.Zt,b,$APP.ada,c,$APP.fda,e,$APP.nw,
12
- $APP.ah($APP.nw.i(d))],null)},jEa=function(a){return $APP.fd($APP.He.j($APP.Wj.j($APP.Th,$APP.ah),$APP.Hg(a)))},kEa=function(a,b){var c=fEa($APP.pq.i(a)),d=$APP.hd($APP.gf,b);return $APP.Lf.j($APP.Pe,function(){return function g(f){return new $APP.Gd(null,function(){for(var k=f;;){var n=$APP.q(k);if(n){var r=n,v=$APP.t(r),w=$APP.G(v),y=$APP.C(w,$APP.ik),z=$APP.C(w,$APP.Rs);if(n=$APP.q(function(F,M,P,T,S,da,oa,la,qa){return function rb(Va){return new $APP.Gd(null,function(Hb,Xb,ic,Rc,Pg,ni,oi,pi,td){return function(){for(var Qg=
13
- Va;;){var jf=$APP.q(Qg);if(jf){var Rg=jf,mj=$APP.t(Rg);if(jf=$APP.q(function(Pk,is,Nf,mm,nm,Qk,om,Rk,nj,oj,pj,Lo,qj){return function Sk(sh){return new $APP.Gd(null,function(js,pm,Tk,sj,Mo,No,tj,lg,ze,ks,Uk,Ae){return function(){for(var Of=sh;;)if(Of=$APP.q(Of)){if($APP.Wc(Of)){var uj=$APP.zb(Of),Oo=$APP.x(uj),Pf=$APP.Jd(Oo);a:{for(var Vk=0;;)if(Vk<Oo){var th=$APP.Ec(uj,Vk);th=iEa(lg,Ae.i?Ae.i(lg):Ae.call(null,lg),Tk,th);$APP.m(th)&&Pf.add(th);Vk+=1}else{uj=!0;break a}uj=void 0}return uj?$APP.Md(Pf.ea(),
14
- Sk($APP.Ab(Of))):$APP.Md(Pf.ea(),null)}Pf=$APP.t(Of);Pf=iEa(lg,Ae.i?Ae.i(lg):Ae.call(null,lg),Tk,Pf);if($APP.m(Pf))return $APP.Ed(Pf,Sk($APP.ac(Of)));Of=$APP.ac(Of)}else return null}}(Pk,is,Nf,mm,nm,Qk,om,Rk,nj,oj,pj,Lo,qj),null)}}(Qg,Hb,mj,Rg,jf,Xb,ic,Rc,Pg,ni,oi,pi,td)(td)))return $APP.Je.j(jf,rb($APP.ac(Qg)));Qg=$APP.ac(Qg)}else return null}}}(F,M,P,T,S,da,oa,la,qa),null)}}(k,v,w,y,z,r,n,c,d)(jEa(z))))return $APP.Je.j(n,g($APP.ac(k)));k=$APP.ac(k)}else return null}},null)}($APP.Qs.i(a))}())},lEa=
15
- function(a){var b=a.getAttribute("data-x-key");return b==null?null:new $APP.H(null,2,5,$APP.I,[b,a],null)},r$=function(a,b){var c=a[mEa];c==null?b.i?b.i(a):b.call(null,a):c.call(a,$APP.qe(b,a));return null},nEa=function(a){return a===!0?"":a===!1||a==null?null:a instanceof $APP.E?$APP.ah(a):""+$APP.N.i(a)},oEa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);c=$APP.ah(c);b=nEa(b);return $APP.K.j(b,a.getAttribute(c))?b!=null?a.setAttribute(c,b):a.removeAttribute(c):null},s$=function(a,b){return $APP.Ih($APP.qe(oEa,
16
- b),a)},pEa=function(a,b){b=""+$APP.N.i(b);var c=a.firstChild;c=c==null?null:$APP.A.j(Node.TEXT_NODE,c.nodeType)&&c.nextSibling==null?c:null;c==null?a.textContent=b:$APP.K.j(b,c.data)&&(c.data=b);return null},qEa=function(a,b,c){return b.append($APP.Vc(c)?t$.j?t$.j(a,c):t$.call(null,a,c):""+$APP.N.i(c))},t$=function(a,b){var c=l$(b);$APP.B(c,0,null);var d=$APP.B(c,1,null);c=$APP.B(c,2,null);if($APP.p($APP.me($APP.qe($APP.ad,d),new $APP.H(null,2,5,$APP.I,[$APP.sr,$APP.eq],null)))&&$APP.le(WDa,$APP.Jg(d))&&
17
- $APP.le(XDa,c))c=l$(b);else throw $APP.Oh("A node is made from a fixed template. split takes holes and :on out of one.",new $APP.J(null,1,[$APP.Zt,$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.ah(d));r$(d,$APP.qe(s$,b));$APP.Ih($APP.re(qEa,a,d),c);return d},rEa=function(a){var b=a.getAttribute("data-x-part");return b==null?null:new $APP.H(null,2,5,$APP.I,[b,a],null)},sEa=function(a,b){var c=rEa(b);if(c==null)return a;b=$APP.B(c,0,null);c=$APP.B(c,
18
- 1,null);return $APP.vb(a,b,c)},u$=function(a,b){for(b=b.firstElementChild;;)if(b!=null){var c=a;a=b;$APP.m(a.hasAttribute("data-x-key"))?a=c:(c=sEa(c,a),a=u$.j?u$.j(c,a):u$.call(null,c,a));b=b.nextElementSibling}else return a},v$=function(a){return $APP.Qd(u$(sEa($APP.sb($APP.ge),a),a))},tEa=function(a,b,c){var d=Object.hasOwn(b,c);return $APP.m(d)?(a=a[c],b=b[c],w$.j?w$.j(a,b):w$.call(null,a,b)):d},uEa=function(a,b){var c=Object.keys(a);return c.length===Object.keys(b).length&&$APP.le($APP.re(tEa,
19
- a,b),c)},w$=function(a,b){if(a===b)a=!0;else{var c=$APP.ma(a);c=$APP.m(c)?$APP.ma(b):c;a=$APP.m(c)?uEa(a,b):$APP.na(a)&&$APP.na(b)?uEa(a,b):$APP.A.j(a,b)}return a},wEa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);c=$APP.ah(c);var d=a[vEa];if($APP.ad(d,c)&&w$(b,$APP.C(d,c)))return null;a[c]=b;return a[vEa]=$APP.Mg.l(d,c,b)},xEa=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.Rs),e=$APP.C(b,$APP.eq);a=a.i?a.i(c):a.call(null,c);$APP.ad(b,$APP.en)&&pEa(a,
20
- $APP.en.i(b));$APP.m(d)&&r$(a,$APP.qe(s$,d));return $APP.Ih($APP.qe(wEa,a),e)},x$=function(a,b){var c=$APP.q($APP.Lf.l($APP.Pe,$APP.Ne(a),$APP.Hg(b)));if(c!=null)throw $APP.Oh("write-parts!: no node has these part names.",new $APP.J(null,1,[$APP.lk,$APP.kf(c)],null));return $APP.Ih($APP.qe(xEa,a),b)},yEa=function(a,b){return a.getAttribute(b)},zEa=function(a,b){var c=$APP.G(a);a=$APP.C(c,$APP.Rs);var d=$APP.C(c,$APP.bt);c=$APP.C(c,$APP.Uv);var e=$APP.pq.i(c),f=b.shadowRoot;$APP.m(f)?d=f:(f=document.createElement("style"),
21
- f.textContent=""+$APP.N.i(d),d=b.attachShadow({mode:"open"}),d.append(f,t$(document,e)));d=v$(d.lastElementChild);b=$APP.Lf.l($APP.ge,$APP.He.i($APP.mh($APP.Ah,$APP.qe(yEa,b))),a);return x$(d,p$(c,b))},AEa=function(a,b){var c=class extends HTMLElement{},d=c.prototype;c.observedAttributes=$APP.ya(a);d.connectedCallback=function(){return b.i?b.i(this):b.call(null,this)};d.connectedMoveCallback=function(){return null};d.attributeChangedCallback=function(){return b.i?b.i(this):b.call(null,this)};return c},
22
- BEa=function(a,b){a=$APP.oe(a);a=new $APP.H(null,2,5,$APP.I,[$APP.ch(a,b),TDa(a,b)],null);b=$APP.B(a,0,null);a=$APP.B(a,1,null);return $APP.Je.j(b,$APP.Fe(1,a))},CEa=function(a){return a instanceof Element},DEa=function(a){a=$APP.Me(CEa,BEa($APP.qe($APP.ka,a.currentTarget),$APP.Ac(a.composedPath())));var b=$APP.me(rEa,BEa(lEa,a)),c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.J(null,3,[y$,$APP.Lf.l($APP.Pe,$APP.we($APP.Wj.j($APP.t,lEa)),$APP.Cd(a)),$APP.ik,c,z$,b],null)},EEa=function(a,b,c,
23
- d){return function(e){e=$APP.fp.l(a,b,e);a:for(;;){var f=$APP.$a(a),g=c.i?c.i(f):c.call(null,f);d.i?d.i(g):d.call(null,g);if(f===$APP.$a(a))break a}return e}},FEa=function(a,b){return a.getAttribute(b)},GEa=function(a){return $APP.Mc(y$.i(a))},HEa=function(a,b){return typeof b==="string"?(a=a.detail,a==null?null:a[b]):b},KEa=function(a,b){var c=$APP.G(a);a=$APP.C(c,IEa);var d=$APP.C(c,$APP.Bs),e=$APP.C(c,JEa);c=DEa(b);var f=$APP.G(c),g=$APP.C(f,$APP.ik);c=$APP.C(f,z$);d=$APP.C(d,new $APP.H(null,2,
24
- 5,$APP.I,[b.type,g],null));if(d==null)return null;g=$APP.Vc(d)?d:new $APP.H(null,2,5,$APP.I,[d,GEa],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.Bd.j(d,f):d;d=$APP.C(e,b.type);d==null?b=a.i?a.i(f):a.call(null,f):(e=$APP.ei.j($APP.Wj.j(nEa,$APP.qe(HEa,b)),$APP.Jg(d)),a.i?a.i(f):a.call(null,f),a=$APP.K.j,f=$APP.Hg(d),c=$APP.ei.j($APP.qe(FEa,c),f),b=a.call($APP.K,e,c)?b.preventDefault():null);return b},LEa=function(a,
25
- b,c){return a.addEventListener(c,$APP.qe(KEa,b))},MEa=function(a,b){return new $APP.H(null,2,5,$APP.I,[b,a[b]],null)},A$=function(a){return a!=null?$APP.Lf.l($APP.ge,$APP.He.i($APP.qe(MEa,a)),Object.keys(a)):$APP.ge},NEa=function(a){return $APP.m($APP.ma(a))?$APP.kf(a):a},OEa=function(a,b){return $APP.Ic(b)?a.i?a.i(b):a.call(null,b):b},PEa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);switch(c){case "on":return new $APP.H(null,2,5,$APP.I,[$APP.sr,$APP.Ph(A$(b),NEa)],null);case "props":return new $APP.H(null,
26
- 2,5,$APP.I,[$APP.eq,$APP.Ph(A$(b),$APP.qe(OEa,a))],null);default:return new $APP.H(null,2,5,$APP.I,[c,OEa(a,b)],null)}},QEa=function(a,b){return $APP.m($APP.ma(b))?B$.j?B$.j(a,b):B$.call(null,a,b):$APP.Ic(b)?a.i?a.i(b):a.call(null,b):b},B$=function(a,b){b=$APP.q($APP.zc(b));var c=$APP.t(b);b=$APP.u(b);var d=$APP.na($APP.t(b))?$APP.t(b):null,e=$APP.Lf.l;c=new $APP.H(null,1,5,$APP.I,[c],null);c=$APP.m(d)?$APP.Bd.j(c,$APP.Lf.l($APP.ge,$APP.He.i($APP.qe(PEa,a)),A$(d))):c;return e.call($APP.Lf,c,$APP.He.i($APP.qe(QEa,
27
- a)),$APP.m(d)?$APP.ac(b):b)},C$=function(a,b,c){return Object.defineProperty(a,b,{value:c})},REa=function(a){a=A$(a);var b=$APP.ad(a,"text")?$APP.Mg.l($APP.ge,$APP.en,a.i?a.i("text"):a.call(null,"text")):$APP.ge;b=(a.i?a.i("attrs"):a.call(null,"attrs"))!=null?$APP.Mg.l(b,$APP.Rs,A$(a.i?a.i("attrs"):a.call(null,"attrs"))):b;return(a.i?a.i("props"):a.call(null,"props"))!=null?$APP.Mg.l(b,$APP.eq,A$(a.i?a.i("props"):a.call(null,"props"))):b},D$=function(a,b){var c=a===b;if(c)return c;if(c=a!=null&&Object.prototype===
28
- 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,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},TEa=function(a,b){var c=b==null?null:b[SEa];if($APP.m(c))return c;throw $APP.Oh(""+$APP.N.i(a)+": not a split template.",new $APP.J(null,
29
- 1,[E$,b],null));},UEa=function(a){var b;if(b=a!=null)if(b=typeof a.target==="string")b=(b=$APP.A.j("any",a.attributes))?b:$APP.ma(a.attributes);if(!$APP.m(b))throw $APP.Oh("sharedHoles: a foreign write has a target and attributes.",new $APP.J(null,1,[E$,a],null));return new $APP.J(null,2,[$APP.nw,a.target,$APP.Iv,$APP.m($APP.ma(a.attributes))?$APP.kf(a.attributes):a.attributes],null)},F$=function(a){return new $APP.J(null,4,[$APP.hk,a.parent,$APP.bk,a.before,$APP.gi,a.key,$APP.ik,a.part],null)},VEa=
30
- function(a){return new $APP.J(null,3,[$APP.gi,a.key,$APP.ak,a.in,$APP.bk,a.before],null)},WEa=function(a,b,c){a[b]=c;return a},G$=function(a){return $APP.qd(WEa,{},a)},XEa=function(a,b){a.push(b);return a},H$=function(a){return $APP.wa(XEa,[],a)},YEa=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.gi);var c=$APP.C(b,$APP.hk),d=$APP.C(b,$APP.bk);b=$APP.C(b,$APP.ik);return{parent:c,before:d,key:a,part:b}},ZEa=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.gi);var c=$APP.C(b,$APP.ak);b=$APP.C(b,$APP.bk);return{key:a,
31
- "in":c,before:b}},$Ea=function(a){var b=$APP.G(a);a=$APP.C(b,y$);var c=$APP.C(b,$APP.ik);b=$APP.C(b,z$);return{keyPath:$APP.jn(a),part:c,node:b}},aFa=function(a){return function(b,c){b=$Ea(b);return a.j?a.j(b,c):a.call(null,b,c)}},bFa=function(a){var b=$APP.I,c=$APP.kf(a[0]);a=NEa(a[1]);a=$APP.Vc(a)?$APP.di.l(a,1,aFa):a;return new $APP.H(null,2,5,b,[c,a],null)},cFa=function(a){return function(b){b=$APP.jn(b);return a.i?a.i(b):a.call(null,b)}},I$=function(a,b){this.store=a;this.Kc=b;this.B=425984;
32
- this.K=65536},dFa=function(a){return function(b){b=$APP.jn(b);return a.i?a.i(b):a.call(null,b)}},E$=new $APP.E(null,"given","given",716253602),z$=new $APP.E(null,"node","node",581201198),y$=new $APP.E(null,"key-path","key-path",878473308),JEa=new $APP.E(null,"requested-values","requested-values",3116167),IEa=new $APP.E(null,"dispatch!","dispatch!",-1927281664);var mEa=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.Wb(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 vEa=Symbol("baremirror.written-props"),eFa=Symbol("baremirror.last-written");var K$=function K$(a){var c=$APP.ma(a);$APP.m($APP.m(c)?c:$APP.na(a))&&($APP.Ih(K$,Object.values(a)),Object.freeze(a));return a},SEa=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.Za=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.gk($APP.Ph(A$(a),$APP.kf),$APP.Ph(A$(b),$APP.kf));a=$APP.G(a);b=$APP.C(a,$APP.ek);var c=$APP.C(a,$APP.fk);return K$(C$({remove:H$(b),place:H$($APP.He.j(ZEa,c))},L$,a))};export const syncPlaces=function(a,b,c){return G$($APP.yk($APP.Ph(A$(a),F$),$APP.Ph(A$(b),$APP.kf),c))};export const setText=function(a,b){return pEa(a,b)};export const readOrigin=function(a){return $Ea(DEa(a))};export const setAttrs=function(a,b){b=A$(b);return r$(a,$APP.qe(s$,b))};
33
- export const readPlaces=function(a){a=$APP.vk($APP.Ph(A$(a),F$));a=$APP.G(a);var b=$APP.C(a,$APP.uk),c=$APP.C(a,$APP.qk),d=$APP.C(a,$APP.rk);return K$(C$({containers:G$($APP.Ph(b,YEa)),places:G$($APP.Ph(c,H$)),nodes:G$(d)},L$,a))};export const withOneRender=function(a,b){return r$(a,b)};
34
- export const splitTemplate=function(a,b){var c=cEa(a,B$($APP.rd,b));return K$(C$({fixed:$APP.jn($APP.pq.i(c)),holes:$APP.jn($APP.Qs.i(c)),events:$APP.jn($APP.kf($APP.Bs.i(c))),writes:function(d){return $APP.jn(p$(c,d))}},SEa,c))};export const release=function(a){return a.removeAttribute("data-x-key")};export const makeNode=function(a){a=B$($APP.rd,a);return t$(document,a)};export const dispatcher=function(a,b,c,d){return EEa(new I$(a,$APP.ge),b,c,d)};
35
- export const nodeMaker=function(a){a=B$($APP.rd,a);return $APP.qe(J$,t$(document.createElement("template").content.ownerDocument,a))};export const sharedHoles=function(a,b){return $APP.jn(kEa(TEa("sharedHoles",a),$APP.Ph(A$(b),$APP.qe($APP.ei,UEa))))};
36
- export const perform=function(a,b,c){var d=a==null?null:a[L$];a=$APP.m(d)?d:new $APP.J(null,2,[$APP.uk,$APP.Ph(A$(a.containers),F$),$APP.rk,A$(a.nodes)],null);d=b==null?null:b[L$];b=$APP.m(d)?d:new $APP.J(null,2,[$APP.ek,$APP.kf(b.remove),$APP.fk,$APP.ei.j(VEa,b.place)],null);return G$($APP.xk(a,b,c))};
37
- export const listen=function(a,b){var c=cFa(b.dispatch);var d=b.events;d=$APP.Lf.l($APP.ge,$APP.He.i(bFa),$APP.zc(d));b=new $APP.J(null,3,[IEa,c,$APP.Bs,d,JEa,$APP.Ph(A$(b.requestedValues),A$)],null);b=$APP.G(b);c=$APP.C(b,$APP.Bs);return $APP.Ih($APP.re(LEa,a,b),$APP.Lf.l($APP.Ug,$APP.He.i($APP.t),$APP.Hg(c)))};export const readParts=function(a){return $APP.jn(v$(a))};export const writeParts=function(a,b){return x$(A$(a),$APP.Ph(A$(b),REa))};
38
- export const defineElement=function(a,b){b=new $APP.J(null,3,[$APP.Rs,$APP.kf(b.attrs),$APP.kw,B$(dFa,b.template),$APP.bt,b.css],null);var c=$APP.G(b),d=$APP.C(c,$APP.kw);b=$APP.C(c,$APP.Rs);c=$APP.C(c,$APP.bt);d=cEa(a,d);if(!$APP.Oc($APP.Bs.i(d)))throw $APP.Oh("define-element!: the template of an element takes no :on entry.",new $APP.J(null,1,[$APP.Zt,a],null));d=new $APP.J(null,3,[$APP.Rs,b,$APP.bt,c,$APP.Uv,d],null);return $APP.m(customElements.get(a))?null:customElements.define(a,AEa(b,$APP.qe(zEa,
39
- d)))};export const writeItem=function(a,b,c){b=TEa("writeItem",b);if(!($APP.Tc(b)&&$APP.ad(b,$APP.pq)&&$APP.ad(b,$APP.Qs)))throw $APP.Oh("write-item!: not a split template.",new $APP.J(null,1,[E$,b],null));var d=a[eFa];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$(v$(a),p$(b,c)),a[eFa]=new $APP.H(null,2,5,$APP.I,[b,c],null));return null};
2
+ var UDa=function(a,b){return new $APP.Gd(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.ac(d);else{c=d;break a}}c=void 0}return c},null)},WDa=function(a){var b=VDa;return function e(d){return new $APP.Gd(null,function(){return $APP.Ed(d,$APP.m($APP.Vc.i?$APP.Vc.i(d):$APP.Vc.call(null,d))?$APP.Ke(e,$APP.zc([b.i?b.i(d):b.call(null,d)])):null)},null)}(a)},XDa=function(){return function(a){var b=$APP.te($APP.Ug);return function(){function c(g,
3
+ k){if($APP.ad($APP.$a(b),k))return g;b.Gb(null,$APP.Bd.j(b.Ma(null),k));return a.j?a.j(g,k):a.call(null,g,k)}function d(g){return a.i?a.i(g):a.call(null,g)}function e(){return a.D?a.D():a.call(null)}var f=null;f=function(g,k){switch(arguments.length){case 0:return e.call(this);case 1:return d.call(this,g);case 2:return c.call(this,g,k)}throw Error("Invalid arity: "+arguments.length);};f.D=e;f.i=d;f.j=c;return f}()}},j$=function(a){var b=$APP.q(a);a=$APP.t(b);b=$APP.u(b);return $APP.Tc($APP.t(b))?
4
+ 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)},k$=function(a,b){return $APP.me(function(c){var d=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.A.j(b,$APP.ah(d))?c:null},a)},l$=function(a){return a instanceof $APP.E||$APP.Ic(a)},YDa=function(a){return typeof a==="string"||typeof a==="number"||a===!0||a===!1||a==null},ZDa=function(a){return $APP.Vc(a)||typeof a==="string"||typeof a==="number"},$Da=function(a){var b=j$(a);$APP.B(b,0,null);
5
+ a=$APP.B(b,1,null);b=$APP.B(b,2,null);return $APP.p($APP.me($APP.qe($APP.ad,a),new $APP.H(null,2,5,$APP.I,[$APP.vr,$APP.hq],null)))&&$APP.le(YDa,$APP.Jg(a))&&$APP.le(ZDa,b)},aEa=function(a){var b=$APP.G(a),c=$APP.C(b,$APP.Kr);a=$APP.C(b,$APP.fn);b=$APP.C(b,$APP.hq);a=(c=$APP.q(c))?c:$APP.m(a)?a:$APP.q(b);return $APP.D(a)},bEa=function(a,b){var c=$APP.B(b,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)},cEa=function(a,b,c){var d=$APP.G(c);
6
+ c=$APP.C(d,$APP.vr);var e=$APP.G(d),f=$APP.C(e,$APP.Kr),g=$APP.C(e,$APP.fn);d=$APP.C(e,$APP.hq);aEa(e)?(e=new $APP.J(null,1,[$APP.jk,b],null),f=$APP.q(f)?$APP.Mg.l(e,$APP.Us,f):e,g=$APP.m(g)?$APP.Mg.l(f,$APP.fn,g):f,d=$APP.q(d)?$APP.Mg.l(g,$APP.hq,d):g):d=null;a=$APP.ei.P(a,$APP.Es,$APP.Lf,$APP.He.i($APP.qe(bEa,b)),c);return $APP.m(d)?$APP.ei.J(a,$APP.Ts,$APP.Bd,d):a},dEa=function(a,b,c){var d=$APP.B(b,0,null);b=$APP.B(b,1,null);return $APP.Vc(c)?(c=m$.l?m$.l(a,b,c):m$.call(null,a,b,c),a=$APP.B(c,
7
+ 0,null),c=$APP.B(c,1,null),new $APP.H(null,2,5,$APP.I,[$APP.Bd.j(d,a),c],null)):new $APP.H(null,2,5,$APP.I,[$APP.Bd.j(d,c),b],null)},m$=function(a,b,c){var d=j$(c);c=$APP.B(d,0,null);var e=$APP.B(d,1,null),f=$APP.B(d,2,null),g=$APP.xk.o(e,$APP.vr,$APP.zc([$APP.hq]));if($APP.p($APP.me(l$,f)))d=null;else{if($APP.u(f))throw $APP.Ph("A text hole must be the only child of its element.",new $APP.J(null,1,[$APP.au,c],null));d=$APP.t(f)}var k=$APP.vr.i(e);e=$APP.hq.i(e);if(!$APP.le(l$,$APP.Jg(e)))throw $APP.Ph("A value in :props is a hole.",
8
+ new $APP.J(null,1,[$APP.au,c],null));var n=$APP.Lf.l($APP.ge,$APP.Ne($APP.Xj.j(l$,$APP.hf)),g);g=$APP.Lf.l($APP.ge,$APP.Le($APP.Xj.j(l$,$APP.hf)),g);if($APP.m(k$(g,"xmlns")))throw $APP.Ph("xmlns is a fixed value, never a hole.",new $APP.J(null,1,[$APP.au,c],null));if($APP.m(d))f=null;else if(!$APP.le(ZDa,f))throw $APP.Ph("A child of a template is a template, text, a number or one hole.",new $APP.J(null,1,[$APP.au,c],null));d=new $APP.J(null,7,[$APP.au,c,$APP.vr,k,$APP.hq,e,$APP.sq,n,$APP.Kr,g,$APP.fn,
9
+ d,$APP.Hu,f],null);b=$APP.G(b);c=$APP.C(b,$APP.rv);d=$APP.G(d);k=$APP.C(d,$APP.sq);k=k$(k,"data-x-part");f=$APP.G(d);g=$APP.C(f,$APP.vr);$APP.D($APP.q(g)||aEa(f))?$APP.m(k)?d=new $APP.H(null,2,5,$APP.I,[d,cEa(b,k,d)],null):(c=""+$APP.N.i(a)+"."+$APP.N.i(c),d=new $APP.H(null,2,5,$APP.I,[$APP.hp(d,new $APP.H(null,2,5,$APP.I,[$APP.sq,$APP.Ah.i("data-x-part")],null),c),cEa($APP.ei.l(b,$APP.rv,$APP.hc),c,d)],null)):d=new $APP.H(null,2,5,$APP.I,[d,b],null);b=$APP.B(d,0,null);k=$APP.G(b);c=$APP.C(k,$APP.au);
10
+ b=$APP.C(k,$APP.sq);k=$APP.C(k,$APP.Hu);d=$APP.B(d,1,null);d=$APP.wa($APP.qe(dEa,a),new $APP.H(null,2,5,$APP.I,[$APP.Pe,d],null),k);a=$APP.B(d,0,null);d=$APP.B(d,1,null);k=$APP.I;f=$APP.Lf.j;c=new $APP.H(null,1,5,$APP.I,[c],null);b=$APP.q(b)?$APP.Bd.j(c,b):c;return new $APP.H(null,2,5,k,[f.call($APP.Lf,b,a),d],null)},eEa=function(a,b){b=m$($APP.ah(a),new $APP.J(null,3,[$APP.rv,0,$APP.Ts,$APP.Pe,$APP.Es,$APP.ge],null),b);a=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.J(null,3,[$APP.sq,a,$APP.Ts,
11
+ $APP.Ts.i(b),$APP.Es,$APP.Es.i(b)],null)},n$=function(a,b){return b.i?b.i(a):b.call(null,a)},fEa=function(a,b){var c=$APP.G(b);b=$APP.C(c,$APP.jk);var d=$APP.C(c,$APP.Us),e=$APP.C(c,$APP.fn),f=$APP.C(c,$APP.hq);c=$APP.I;d=$APP.m(d)?$APP.Mg.l($APP.ge,$APP.Us,$APP.Qh(d,$APP.qe(n$,a))):$APP.ge;e=$APP.m(e)?$APP.Mg.l(d,$APP.fn,n$(a,e)):d;a=$APP.m(f)?$APP.Mg.l(e,$APP.hq,$APP.Qh(f,$APP.qe(n$,a))):e;return new $APP.H(null,2,5,c,[b,a],null)},o$=function(a,b){return $APP.Lf.l($APP.ge,$APP.He.i($APP.qe(fEa,
12
+ b)),$APP.Ts.i(a))},VDa=function(a){return $APP.Me($APP.Vc,$APP.uc(j$(a),2))},gEa=function(a){var b=j$(a);a=$APP.B(b,0,null);b=$APP.B(b,1,null);b=k$(b,"data-x-part");return b==null?null:new $APP.H(null,2,5,$APP.I,[b,$APP.Uh($APP.ah(a))],null)},hEa=function(a){return $APP.Lf.l($APP.ge,$APP.we(gEa),WDa(a))},p$=function(a){return(typeof a==="string"||a instanceof $APP.E)&&$APP.A.j("any",$APP.ah(a))},iEa=function(a,b,c){var d=$APP.G(c);c=$APP.C(d,$APP.ow);d=$APP.C(d,$APP.Jv);return(p$(c)||$APP.A.j($APP.ah(c),
13
+ a))&&(p$(d)||$APP.ad($APP.Lf.l($APP.Ug,$APP.He.i($APP.ah),d),b))},jEa=function(a){a=$APP.G(a);a=$APP.C(a,$APP.ow);return p$(a)?1:0},kEa=function(a,b,c,d){var e=$APP.B(d,0,null);d=$APP.B(d,1,null);d=$APP.t($APP.hd(jEa,$APP.Me($APP.re(iEa,b,c),d)));return d==null?null:new $APP.J(null,5,[$APP.jk,a,$APP.au,b,$APP.bda,c,$APP.gda,e,$APP.ow,$APP.ah($APP.ow.i(d))],null)},lEa=function(a){return $APP.fd($APP.He.j($APP.Xj.j($APP.Uh,$APP.ah),$APP.Hg(a)))},mEa=function(a,b){var c=hEa($APP.sq.i(a)),d=$APP.hd($APP.gf,
14
+ b);return $APP.Lf.j($APP.Pe,function(){return function g(f){return new $APP.Gd(null,function(){for(var k=f;;){var n=$APP.q(k);if(n){var r=n,v=$APP.t(r),w=$APP.G(v),y=$APP.C(w,$APP.jk),z=$APP.C(w,$APP.Us);if(n=$APP.q(function(F,M,P,T,S,da,oa,la,qa){return function rb(Va){return new $APP.Gd(null,function(Hb,Xb,jc,Rc,Pg,oi,pi,qi,td){return function(){for(var Qg=Va;;){var jf=$APP.q(Qg);if(jf){var Rg=jf,nj=$APP.t(Rg);if(jf=$APP.q(function(Pk,js,Nf,nm,om,Qk,pm,Rk,oj,pj,qj,Po,rj){return function Sk(sh){return new $APP.Gd(null,
15
+ function(ks,qm,Tk,tj,Qo,Ro,uj,lg,Be,ls,Uk,Ce){return function(){for(var Of=sh;;)if(Of=$APP.q(Of)){if($APP.Wc(Of)){var vj=$APP.zb(Of),So=$APP.x(vj),Pf=$APP.Jd(So);a:{for(var Vk=0;;)if(Vk<So){var th=$APP.Ec(vj,Vk);th=kEa(lg,Ce.i?Ce.i(lg):Ce.call(null,lg),Tk,th);$APP.m(th)&&Pf.add(th);Vk+=1}else{vj=!0;break a}vj=void 0}return vj?$APP.Md(Pf.ea(),Sk($APP.Ab(Of))):$APP.Md(Pf.ea(),null)}Pf=$APP.t(Of);Pf=kEa(lg,Ce.i?Ce.i(lg):Ce.call(null,lg),Tk,Pf);if($APP.m(Pf))return $APP.Ed(Pf,Sk($APP.ac(Of)));Of=$APP.ac(Of)}else return null}}(Pk,
16
+ js,Nf,nm,om,Qk,pm,Rk,oj,pj,qj,Po,rj),null)}}(Qg,Hb,nj,Rg,jf,Xb,jc,Rc,Pg,oi,pi,qi,td)(td)))return $APP.Je.j(jf,rb($APP.ac(Qg)));Qg=$APP.ac(Qg)}else return null}}}(F,M,P,T,S,da,oa,la,qa),null)}}(k,v,w,y,z,r,n,c,d)(lEa(z))))return $APP.Je.j(n,g($APP.ac(k)));k=$APP.ac(k)}else return null}},null)}($APP.Ts.i(a))}())},nEa=function(a){var b=a.getAttribute("data-x-key");return b==null?null:new $APP.H(null,2,5,$APP.I,[b,a],null)},q$=function(a,b){var c=a[oEa];c==null?b.i?b.i(a):b.call(null,a):c.call(a,$APP.qe(b,
17
+ a));return null},pEa=function(a){return a===!0?"":a===!1||a==null?null:a instanceof $APP.E?$APP.ah(a):""+$APP.N.i(a)},qEa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);c=$APP.ah(c);b=pEa(b);return $APP.K.j(b,a.getAttribute(c))?b!=null?a.setAttribute(c,b):a.removeAttribute(c):null},r$=function(a,b){return $APP.Jh($APP.qe(qEa,b),a)},rEa=function(a,b){b=""+$APP.N.i(b);var c=a.firstChild;c=c==null?null:$APP.A.j(Node.TEXT_NODE,c.nodeType)&&c.nextSibling==null?c:null;c==null?a.textContent=b:$APP.K.j(b,
18
+ c.data)&&(c.data=b);return null},sEa=function(a,b,c,d){return c.append($APP.Vc(d)?s$.l?s$.l(a,b,d):s$.call(null,a,b,d):""+$APP.N.i(d))},t$=function(a){var b=$APP.t($APP.Oe($Da,WDa(a)));if(b==null)return a;throw $APP.Ph("A node is made from a fixed template. split takes holes and :on out of one.",new $APP.J(null,1,[$APP.au,$APP.t(b)],null));},s$=function(a,b,c){var d=j$(c),e=$APP.B(d,0,null);c=$APP.B(d,1,null);d=$APP.B(d,2,null);e=$APP.ah(e);var f=k$(c,"xmlns");if($APP.m(f))b=f;else switch(e){case "svg":b=
19
+ "http://www.w3.org/2000/svg"}f=b;f=f!=null?a.createElementNS(f,e):a.createElement(e);q$(f,$APP.qe(r$,c));a:switch(e){case "foreignObject":c=null;break a;default:c=b}$APP.Jh($APP.se(sEa,a,c,f),d);return f},tEa=function(a){var b=t$(a);return $APP.qe(u$,new $APP.Hh(function(){return s$(document.createElement("template").content.ownerDocument,null,b)}))},uEa=function(a){var b=a.getAttribute("data-x-part");return b==null?null:new $APP.H(null,2,5,$APP.I,[b,a],null)},vEa=function(a,b){var c=uEa(b);if(c==
20
+ null)return a;b=$APP.B(c,0,null);c=$APP.B(c,1,null);return $APP.vb(a,b,c)},v$=function(a,b){for(b=b.firstElementChild;;)if(b!=null){var c=a;a=b;$APP.m(a.hasAttribute("data-x-key"))?a=c:(c=vEa(c,a),a=v$.j?v$.j(c,a):v$.call(null,c,a));b=b.nextElementSibling}else return a},w$=function(a){return $APP.Qd(v$(vEa($APP.sb($APP.ge),a),a))},wEa=function(a,b,c){var d=Object.hasOwn(b,c);return $APP.m(d)?(a=a[c],b=b[c],x$.j?x$.j(a,b):x$.call(null,a,b)):d},xEa=function(a,b){var c=Object.keys(a);return c.length===
21
+ Object.keys(b).length&&$APP.le($APP.re(wEa,a,b),c)},x$=function(a,b){if(a===b)a=!0;else{var c=$APP.ma(a);c=$APP.m(c)?$APP.ma(b):c;a=$APP.m(c)?xEa(a,b):$APP.na(a)&&$APP.na(b)?xEa(a,b):$APP.A.j(a,b)}return a},zEa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);c=$APP.ah(c);var d=a[yEa];if($APP.ad(d,c)&&x$(b,$APP.C(d,c)))return null;a[c]=b;return a[yEa]=$APP.Mg.l(d,c,b)},AEa=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.Us),e=$APP.C(b,$APP.hq);a=a.i?
22
+ a.i(c):a.call(null,c);$APP.ad(b,$APP.fn)&&rEa(a,$APP.fn.i(b));$APP.m(d)&&q$(a,$APP.qe(r$,d));return $APP.Jh($APP.qe(zEa,a),e)},y$=function(a,b){var c=$APP.q($APP.Lf.l($APP.Pe,$APP.Ne(a),$APP.Hg(b)));if(c!=null)throw $APP.Ph("write-parts!: no node has these part names.",new $APP.J(null,1,[$APP.mk,$APP.kf(c)],null));return $APP.Jh($APP.qe(AEa,a),b)},BEa=function(a,b){return a.getAttribute(b)},CEa=function(a,b){var c=$APP.G(a);a=$APP.C(c,$APP.Us);var d=$APP.C(c,$APP.et);c=$APP.C(c,$APP.Vv);var e=$APP.sq.i(c),
23
+ 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,s$(document,null,t$(e))));d=w$(d.lastElementChild);b=$APP.Lf.l($APP.ge,$APP.He.i($APP.mh($APP.Ah,$APP.qe(BEa,b))),a);return y$(d,o$(c,b))},DEa=function(a,b){var c=class extends HTMLElement{},d=c.prototype;c.observedAttributes=$APP.ya(a);d.connectedCallback=function(){return b.i?b.i(this):b.call(null,this)};d.connectedMoveCallback=function(){return null};d.attributeChangedCallback=
24
+ function(){return b.i?b.i(this):b.call(null,this)};return c},EEa=function(a,b){a=$APP.oe(a);a=new $APP.H(null,2,5,$APP.I,[$APP.ch(a,b),UDa(a,b)],null);b=$APP.B(a,0,null);a=$APP.B(a,1,null);return $APP.Je.j(b,$APP.Fe(1,a))},FEa=function(a){return a instanceof Element},GEa=function(a){a=$APP.Me(FEa,EEa($APP.qe($APP.ka,a.currentTarget),$APP.Ac(a.composedPath())));var b=$APP.me(uEa,EEa(nEa,a)),c=$APP.B(b,0,null);b=$APP.B(b,1,null);return new $APP.J(null,3,[z$,$APP.Lf.l($APP.Pe,$APP.we($APP.Xj.j($APP.t,
25
+ nEa)),$APP.Cd(a)),$APP.jk,c,A$,b],null)},HEa=function(a,b,c,d){return function(e){e=$APP.gp.l(a,b,e);a:for(;;){var f=$APP.$a(a),g=c.i?c.i(f):c.call(null,f);d.i?d.i(g):d.call(null,g);if(f===$APP.$a(a))break a}return e}},IEa=function(a,b){return a.getAttribute(b)},JEa=function(a){return $APP.Mc(z$.i(a))},KEa=function(a,b){return typeof b==="string"?(a=a.detail,a==null?null:a[b]):b},NEa=function(a,b){var c=$APP.G(a);a=$APP.C(c,LEa);var d=$APP.C(c,$APP.Es),e=$APP.C(c,MEa);c=GEa(b);var f=$APP.G(c),g=$APP.C(f,
26
+ $APP.jk);c=$APP.C(f,A$);d=$APP.C(d,new $APP.H(null,2,5,$APP.I,[b.type,g],null));if(d==null)return null;g=$APP.Vc(d)?d:new $APP.H(null,2,5,$APP.I,[d,JEa],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.Bd.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.Xj.j(pEa,$APP.qe(KEa,b)),$APP.Jg(d)),a.i?a.i(f):a.call(null,f),a=$APP.K.j,f=$APP.Hg(d),c=$APP.fi.j($APP.qe(IEa,c),f),b=a.call($APP.K,
27
+ e,c)?b.preventDefault():null);return b},OEa=function(a,b){return $APP.m(b.bubbles)?null:NEa(a,b)},PEa=function(a,b){return $APP.m(b.bubbles)?NEa(a,b):null},QEa=function(a,b){return new $APP.H(null,2,5,$APP.I,[new $APP.H(null,3,5,$APP.I,[b,$APP.qe(OEa,a),!0],null),new $APP.H(null,3,5,$APP.I,[b,$APP.qe(PEa,a),!1],null)],null)},REa=function(a,b){var c=$APP.B(b,0,null),d=$APP.B(b,1,null);b=$APP.B(b,2,null);return a.addEventListener(c,d,b)},SEa=function(a,b){var c=$APP.B(b,0,null),d=$APP.B(b,1,null);b=
28
+ $APP.B(b,2,null);return a.removeEventListener(c,d,b)},TEa=function(a,b){return new $APP.H(null,2,5,$APP.I,[b,a[b]],null)},B$=function(a){return a!=null?$APP.Lf.l($APP.ge,$APP.He.i($APP.qe(TEa,a)),Object.keys(a)):$APP.ge},UEa=function(a){return $APP.m($APP.ma(a))?$APP.kf(a):a},VEa=function(a,b){return $APP.Ic(b)?a.i?a.i(b):a.call(null,b):b},WEa=function(a,b){var c=$APP.B(b,0,null);b=$APP.B(b,1,null);switch(c){case "on":return new $APP.H(null,2,5,$APP.I,[$APP.vr,$APP.Qh(B$(b),UEa)],null);case "props":return new $APP.H(null,
29
+ 2,5,$APP.I,[$APP.hq,$APP.Qh(B$(b),$APP.qe(VEa,a))],null);default:return new $APP.H(null,2,5,$APP.I,[c,VEa(a,b)],null)}},XEa=function(a,b){return $APP.m($APP.ma(b))?C$.j?C$.j(a,b):C$.call(null,a,b):$APP.Ic(b)?a.i?a.i(b):a.call(null,b):b},C$=function(a,b){b=$APP.q($APP.zc(b));var c=$APP.t(b);b=$APP.u(b);var d=$APP.na($APP.t(b))?$APP.t(b):null,e=$APP.Lf.l;c=new $APP.H(null,1,5,$APP.I,[c],null);c=$APP.m(d)?$APP.Bd.j(c,$APP.Lf.l($APP.ge,$APP.He.i($APP.qe(WEa,a)),B$(d))):c;return e.call($APP.Lf,c,$APP.He.i($APP.qe(XEa,
30
+ a)),$APP.m(d)?$APP.ac(b):b)},D$=function(a,b,c){return Object.defineProperty(a,b,{value:c})},YEa=function(a){a=B$(a);var b=$APP.ad(a,"text")?$APP.Mg.l($APP.ge,$APP.fn,a.i?a.i("text"):a.call(null,"text")):$APP.ge;b=(a.i?a.i("attrs"):a.call(null,"attrs"))!=null?$APP.Mg.l(b,$APP.Us,B$(a.i?a.i("attrs"):a.call(null,"attrs"))):b;return(a.i?a.i("props"):a.call(null,"props"))!=null?$APP.Mg.l(b,$APP.hq,B$(a.i?a.i("props"):a.call(null,"props"))):b},E$=function(a,b){var c=a===b;if(c)return c;if(c=a!=null&&Object.prototype===
31
+ 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,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},$Ea=function(a,b){var c=b==null?null:b[ZEa];if($APP.m(c))return c;throw $APP.Ph(""+$APP.N.i(a)+": not a split template.",new $APP.J(null,
32
+ 1,[F$,b],null));},aFa=function(a){var b;if(b=a!=null)if(b=typeof a.target==="string")b=(b=$APP.A.j("any",a.attributes))?b:$APP.ma(a.attributes);if(!$APP.m(b))throw $APP.Ph("sharedHoles: a foreign write has a target and attributes.",new $APP.J(null,1,[F$,a],null));return new $APP.J(null,2,[$APP.ow,a.target,$APP.Jv,$APP.m($APP.ma(a.attributes))?$APP.kf(a.attributes):a.attributes],null)},G$=function(a){return new $APP.J(null,4,[$APP.ik,a.parent,$APP.ck,a.before,$APP.hi,a.key,$APP.jk,a.part],null)},bFa=
33
+ function(a){return new $APP.J(null,3,[$APP.hi,a.key,$APP.bk,a.in,$APP.ck,a.before],null)},cFa=function(a,b,c){a[b]=c;return a},H$=function(a){return $APP.qd(cFa,{},a)},dFa=function(a,b){a.push(b);return a},I$=function(a){return $APP.wa(dFa,[],a)},eFa=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.hi);var c=$APP.C(b,$APP.ik),d=$APP.C(b,$APP.ck);b=$APP.C(b,$APP.jk);return{parent:c,before:d,key:a,part:b}},fFa=function(a){var b=$APP.G(a);a=$APP.C(b,$APP.hi);var c=$APP.C(b,$APP.bk);b=$APP.C(b,$APP.ck);return{key:a,
34
+ "in":c,before:b}},gFa=function(a){var b=$APP.G(a);a=$APP.C(b,z$);var c=$APP.C(b,$APP.jk);b=$APP.C(b,A$);return{keyPath:$APP.kn(a),part:c,node:b}},hFa=function(a){return function(b,c){b=gFa(b);return a.j?a.j(b,c):a.call(null,b,c)}},iFa=function(a){var b=$APP.I,c=$APP.kf(a[0]);a=UEa(a[1]);a=$APP.Vc(a)?$APP.ei.l(a,1,hFa):a;return new $APP.H(null,2,5,b,[c,a],null)},jFa=function(a){return function(b){b=$APP.kn(b);return a.i?a.i(b):a.call(null,b)}},J$=function(a,b){this.store=a;this.Kc=b;this.B=425984;
35
+ this.K=65536},kFa=function(a){return function(b){b=$APP.kn(b);return a.i?a.i(b):a.call(null,b)}},F$=new $APP.E(null,"given","given",716253602),A$=new $APP.E(null,"node","node",581201198),z$=new $APP.E(null,"key-path","key-path",878473308),MEa=new $APP.E(null,"requested-values","requested-values",3116167),LEa=new $APP.E(null,"dispatch!","dispatch!",-1927281664);var oEa=Symbol["for"]("x-render-hold"),u$=function u$(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return u$.o(arguments[0],1<c.length?new $APP.Wb(c.slice(1),0,null):null)};u$.o=function(a){return $APP.$a(a).cloneNode(!0)};u$.M=1;u$.I=function(a){var b=$APP.t(a);a=$APP.u(a);return this.o(b,a)};var yEa=Symbol("baremirror.written-props"),lFa=Symbol("baremirror.last-written");var K$=function K$(a){var c=$APP.ma(a);$APP.m($APP.m(c)?c:$APP.na(a))&&($APP.Jh(K$,Object.values(a)),Object.freeze(a));return a},ZEa=Symbol("baremirror.split"),L$=Symbol("baremirror.value");J$.prototype.Y=function(a,b){return new J$(this.store,b)};J$.prototype.W=function(){return this.Kc};J$.prototype.Ma=function(){return this.store.value};J$.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.hk($APP.Qh(B$(a),$APP.kf),$APP.Qh(B$(b),$APP.kf));a=$APP.G(a);b=$APP.C(a,$APP.fk);var c=$APP.C(a,$APP.gk);return K$(D$({remove:I$(b),place:I$($APP.He.j(fFa,c))},L$,a))};export const syncPlaces=function(a,b,c){return H$($APP.zk($APP.Qh(B$(a),G$),$APP.Qh(B$(b),$APP.kf),c))};export const setText=function(a,b){return rEa(a,b)};export const readOrigin=function(a){return gFa(GEa(a))};export const setAttrs=function(a,b){b=B$(b);return q$(a,$APP.qe(r$,b))};
36
+ export const readPlaces=function(a){a=$APP.wk($APP.Qh(B$(a),G$));a=$APP.G(a);var b=$APP.C(a,$APP.vk),c=$APP.C(a,$APP.rk),d=$APP.C(a,$APP.sk);return K$(D$({containers:H$($APP.Qh(b,eFa)),places:H$($APP.Qh(c,I$)),nodes:H$(d)},L$,a))};export const withOneRender=function(a,b){return q$(a,b)};
37
+ export const splitTemplate=function(a,b){var c=eEa(a,C$($APP.rd,b));return K$(D$({fixed:$APP.kn($APP.sq.i(c)),holes:$APP.kn($APP.Ts.i(c)),events:$APP.kn($APP.kf($APP.Es.i(c))),writes:function(d){return $APP.kn(o$(c,d))}},ZEa,c))};export const release=function(a){return a.removeAttribute("data-x-key")};export const makeNode=function(a){a=C$($APP.rd,a);return s$(document,null,t$(a))};export const dispatcher=function(a,b,c,d){return HEa(new J$(a,$APP.ge),b,c,d)};
38
+ export const nodeMaker=function(a){return tEa(C$($APP.rd,a))};export const sharedHoles=function(a,b){return $APP.kn(mEa($Ea("sharedHoles",a),$APP.Qh(B$(b),$APP.qe($APP.fi,aFa))))};export const perform=function(a,b,c){var d=a==null?null:a[L$];a=$APP.m(d)?d:new $APP.J(null,2,[$APP.vk,$APP.Qh(B$(a.containers),G$),$APP.sk,B$(a.nodes)],null);d=b==null?null:b[L$];b=$APP.m(d)?d:new $APP.J(null,2,[$APP.fk,$APP.kf(b.remove),$APP.gk,$APP.fi.j(bFa,b.place)],null);return H$($APP.yk(a,b,c))};
39
+ export const listen=function(a,b){var c=jFa(b.dispatch);var d=b.events;d=$APP.Lf.l($APP.ge,$APP.He.i(iFa),$APP.zc(d));b=new $APP.J(null,3,[LEa,c,$APP.Es,d,MEa,$APP.Qh(B$(b.requestedValues),B$)],null);b=$APP.G(b);c=$APP.C(b,$APP.Es);b=$APP.Lf.l($APP.Pe,$APP.Xj.l($APP.He.i($APP.t),XDa(),$APP.Xj.j($APP.He.i($APP.qe(QEa,b)),$APP.Ih)),$APP.Hg(c));$APP.Jh($APP.qe(REa,a),b);return $APP.re($APP.Jh,$APP.qe(SEa,a),b)};export const readParts=function(a){return $APP.kn(w$(a))};
40
+ export const writeParts=function(a,b){return y$(B$(a),$APP.Qh(B$(b),YEa))};
41
+ export const defineElement=function(a,b){b=new $APP.J(null,3,[$APP.Us,$APP.kf(b.attrs),$APP.lw,C$(kFa,b.template),$APP.et,b.css],null);var c=$APP.G(b),d=$APP.C(c,$APP.lw);b=$APP.C(c,$APP.Us);c=$APP.C(c,$APP.et);d=eEa(a,d);if(!$APP.Oc($APP.Es.i(d)))throw $APP.Ph("define-element!: the template of an element takes no :on entry.",new $APP.J(null,1,[$APP.au,a],null));d=new $APP.J(null,3,[$APP.Us,b,$APP.et,c,$APP.Vv,d],null);return typeof customElements!=="undefined"&&$APP.p(customElements.get(a))?customElements.define(a,
42
+ DEa(b,$APP.qe(CEa,d))):null};export const writeItem=function(a,b,c){b=$Ea("writeItem",b);if(!($APP.Tc(b)&&$APP.ad(b,$APP.sq)&&$APP.ad(b,$APP.Ts)))throw $APP.Ph("write-item!: not a split template.",new $APP.J(null,1,[F$,b],null));var d=a[lFa];var e=$APP.B(d,0,null);d=$APP.B(d,1,null);e=(e=b===e)?E$.j?E$.j(c,d):E$.call(null,c,d):e;$APP.m(e)||(y$(w$(a),o$(b,c)),a[lFa]=new $APP.H(null,2,5,$APP.I,[b,c],null));return null};