mol_dump_lib 0.0.1020 → 0.0.1021

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/web.d.ts CHANGED
@@ -1,3 +1,1420 @@
1
+ declare let _$_: {
2
+ new (): {};
3
+ } & typeof globalThis;
4
+ declare class $ extends _$_ {
5
+ }
6
+ declare namespace $ {
7
+ export type $ = typeof $$;
8
+ export class $$ extends $ {
9
+ static $: $;
10
+ }
11
+ namespace $$ {
12
+ type $$ = $;
13
+ }
14
+ export {};
15
+ }
16
+
17
+ declare namespace $ {
18
+ var $mol_dom_context: typeof globalThis;
19
+ }
20
+
21
+ declare namespace $ {
22
+ }
23
+
24
+ declare namespace $ {
25
+ var $mol_dom: typeof globalThis;
26
+ }
27
+
28
+ declare namespace $ {
29
+ function $mol_style_attach(id: string, text: string): HTMLStyleElement | null;
30
+ }
31
+
32
+ declare namespace $ {
33
+ class $mol_promise<Result = void> extends Promise<Result> {
34
+ done: (value: Result | PromiseLike<Result>) => void;
35
+ fail: (reason?: any) => void;
36
+ constructor(executor?: (done: (value: Result | PromiseLike<Result>) => void, fail: (reason?: any) => void) => void);
37
+ }
38
+ }
39
+
40
+ declare namespace $ {
41
+ class $mol_promise_blocker<Result> extends $mol_promise<Result> {
42
+ static [Symbol.toStringTag]: string;
43
+ }
44
+ }
45
+
46
+ declare namespace $ {
47
+ class $mol_decor<Value> {
48
+ readonly value: Value;
49
+ constructor(value: Value);
50
+ prefix(): string;
51
+ valueOf(): Value;
52
+ postfix(): string;
53
+ toString(): string;
54
+ }
55
+ }
56
+
57
+ declare namespace $ {
58
+ type $mol_style_unit_length = '%' | 'px' | 'cm' | 'mm' | 'Q' | 'in' | 'pc' | 'pt' | 'cap' | 'ch' | 'em' | 'rem' | 'ex' | 'ic' | 'lh' | 'rlh' | 'vh' | 'vw' | 'vi' | 'vb' | 'vmin' | 'vmax';
59
+ type $mol_style_unit_angle = 'deg' | 'rad' | 'grad' | 'turn';
60
+ type $mol_style_unit_time = 's' | 'ms';
61
+ type $mol_style_unit_any = $mol_style_unit_length | $mol_style_unit_angle | $mol_style_unit_time;
62
+ type $mol_style_unit_str<Quanity extends $mol_style_unit_any = $mol_style_unit_any> = `${number}${Quanity}`;
63
+ class $mol_style_unit<Literal extends $mol_style_unit_any> extends $mol_decor<number> {
64
+ readonly literal: Literal;
65
+ constructor(value: number, literal: Literal);
66
+ postfix(): Literal;
67
+ static per(value: number): `${number}%`;
68
+ static px(value: number): `${number}px`;
69
+ static mm(value: number): `${number}mm`;
70
+ static cm(value: number): `${number}cm`;
71
+ static Q(value: number): `${number}Q`;
72
+ static in(value: number): `${number}in`;
73
+ static pc(value: number): `${number}pc`;
74
+ static pt(value: number): `${number}pt`;
75
+ static cap(value: number): `${number}cap`;
76
+ static ch(value: number): `${number}ch`;
77
+ static em(value: number): `${number}em`;
78
+ static rem(value: number): `${number}rem`;
79
+ static ex(value: number): `${number}ex`;
80
+ static ic(value: number): `${number}ic`;
81
+ static lh(value: number): `${number}lh`;
82
+ static rlh(value: number): `${number}rlh`;
83
+ static vh(value: number): `${number}vh`;
84
+ static vw(value: number): `${number}vw`;
85
+ static vi(value: number): `${number}vi`;
86
+ static vb(value: number): `${number}vb`;
87
+ static vmin(value: number): `${number}vmin`;
88
+ static vmax(value: number): `${number}vmax`;
89
+ static deg(value: number): `${number}deg`;
90
+ static rad(value: number): `${number}rad`;
91
+ static grad(value: number): `${number}grad`;
92
+ static turn(value: number): `${number}turn`;
93
+ static s(value: number): `${number}s`;
94
+ static ms(value: number): `${number}ms`;
95
+ }
96
+ }
97
+
98
+ declare namespace $ {
99
+ type $mol_style_func_name = 'calc' | 'hsla' | 'rgba' | 'var' | 'clamp' | 'scale' | 'cubic-bezier' | 'linear' | 'steps' | $mol_style_func_image | $mol_style_func_filter;
100
+ type $mol_style_func_image = 'url' | 'linear-gradient' | 'radial-gradient' | 'conic-gradient';
101
+ type $mol_style_func_filter = 'blur' | 'brightness' | 'contrast' | 'drop-shadow' | 'grayscale' | 'hue-rotate' | 'invert' | 'opacity' | 'sepia' | 'saturate';
102
+ class $mol_style_func<Name extends $mol_style_func_name, Value = unknown> extends $mol_decor<Value> {
103
+ readonly name: Name;
104
+ constructor(name: Name, value: Value);
105
+ prefix(): string;
106
+ postfix(): string;
107
+ static linear_gradient<Value>(value: Value): $mol_style_func<"linear-gradient", Value>;
108
+ static radial_gradient<Value>(value: Value): $mol_style_func<"radial-gradient", Value>;
109
+ static calc<Value>(value: Value): $mol_style_func<"calc", Value>;
110
+ static vary<Name extends string, Value extends string>(name: Name, defaultValue?: Value): $mol_style_func<"var", Name | (Name | Value)[]>;
111
+ static url<Href extends string>(href: Href): $mol_style_func<"url", string>;
112
+ static hsla(hue: number | $mol_style_func<'var'>, saturation: number, lightness: number, alpha: number): $mol_style_func<"hsla", (number | `${number}%` | $mol_style_func<"var", unknown>)[]>;
113
+ static clamp(min: $mol_style_unit_str<any>, mid: $mol_style_unit_str<any>, max: $mol_style_unit_str<any>): $mol_style_func<"clamp", `${number}${any}`[]>;
114
+ static rgba(red: number | $mol_style_func<'var'>, green: number | $mol_style_func<'var'>, blue: number | $mol_style_func<'var'>, alpha: number | $mol_style_func<'var'>): $mol_style_func<"rgba", (number | $mol_style_func<"var", unknown>)[]>;
115
+ static scale(zoom: number): $mol_style_func<"scale", number[]>;
116
+ static linear(...breakpoints: Array<number | [number, number | $mol_style_unit_str<'%'>]>): $mol_style_func<"linear", string[]>;
117
+ static cubic_bezier(x1: number, y1: number, x2: number, y2: number): $mol_style_func<"cubic-bezier", number[]>;
118
+ static steps(value: number, step_position: 'jump-start' | 'jump-end' | 'jump-none' | 'jump-both' | 'start' | 'end'): $mol_style_func<"steps", (number | "end" | "start" | "jump-start" | "jump-end" | "jump-none" | "jump-both")[]>;
119
+ static blur(value?: $mol_style_unit_str<$mol_style_unit_length>): $mol_style_func<"blur", string>;
120
+ static brightness(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"brightness", string | number>;
121
+ static contrast(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"contrast", string | number>;
122
+ static drop_shadow(color: $mol_style_properties_color, x_offset: $mol_style_unit_str<$mol_style_unit_length>, y_offset: $mol_style_unit_str<$mol_style_unit_length>, blur_radius?: $mol_style_unit_str<$mol_style_unit_length>): $mol_style_func<"drop-shadow", readonly [$mol_style_properties_color, `${number}%` | `${number}px` | `${number}mm` | `${number}cm` | `${number}Q` | `${number}in` | `${number}pc` | `${number}pt` | `${number}cap` | `${number}ch` | `${number}em` | `${number}rem` | `${number}ex` | `${number}ic` | `${number}lh` | `${number}rlh` | `${number}vh` | `${number}vw` | `${number}vi` | `${number}vb` | `${number}vmin` | `${number}vmax`, `${number}%` | `${number}px` | `${number}mm` | `${number}cm` | `${number}Q` | `${number}in` | `${number}pc` | `${number}pt` | `${number}cap` | `${number}ch` | `${number}em` | `${number}rem` | `${number}ex` | `${number}ic` | `${number}lh` | `${number}rlh` | `${number}vh` | `${number}vw` | `${number}vi` | `${number}vb` | `${number}vmin` | `${number}vmax`, `${number}%` | `${number}px` | `${number}mm` | `${number}cm` | `${number}Q` | `${number}in` | `${number}pc` | `${number}pt` | `${number}cap` | `${number}ch` | `${number}em` | `${number}rem` | `${number}ex` | `${number}ic` | `${number}lh` | `${number}rlh` | `${number}vh` | `${number}vw` | `${number}vi` | `${number}vb` | `${number}vmin` | `${number}vmax`] | readonly [$mol_style_properties_color, `${number}%` | `${number}px` | `${number}mm` | `${number}cm` | `${number}Q` | `${number}in` | `${number}pc` | `${number}pt` | `${number}cap` | `${number}ch` | `${number}em` | `${number}rem` | `${number}ex` | `${number}ic` | `${number}lh` | `${number}rlh` | `${number}vh` | `${number}vw` | `${number}vi` | `${number}vb` | `${number}vmin` | `${number}vmax`, `${number}%` | `${number}px` | `${number}mm` | `${number}cm` | `${number}Q` | `${number}in` | `${number}pc` | `${number}pt` | `${number}cap` | `${number}ch` | `${number}em` | `${number}rem` | `${number}ex` | `${number}ic` | `${number}lh` | `${number}rlh` | `${number}vh` | `${number}vw` | `${number}vi` | `${number}vb` | `${number}vmin` | `${number}vmax`]>;
123
+ static grayscale(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"grayscale", string | number>;
124
+ static hue_rotate(value?: 0 | $mol_style_unit_str<$mol_style_unit_angle>): $mol_style_func<"hue-rotate", string | 0>;
125
+ static invert(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"invert", string | number>;
126
+ static opacity(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"opacity", string | number>;
127
+ static sepia(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"sepia", string | number>;
128
+ static saturate(value?: number | $mol_style_unit_str<'%'>): $mol_style_func<"saturate", string | number>;
129
+ }
130
+ }
131
+
132
+ declare namespace $ {
133
+ type $mol_type_override<Base, Over> = Omit<Base, keyof Over> & Over;
134
+ }
135
+
136
+ declare namespace $ {
137
+ export type $mol_style_properties = Partial<$mol_type_override<CSSStyleDeclaration, Overrides>>;
138
+ type Common = 'inherit' | 'initial' | 'unset' | 'revert' | 'revert-layer' | 'none' | $mol_style_func<'var'>;
139
+ type Portion = `${number}${'%'}` | number;
140
+ type Space = '' | ' ';
141
+ type Var = `var(--${string})`;
142
+ type Calc = `calc(${string})`;
143
+ type Angle = number | `${number}${'deg' | 'turn'}` | Var | Calc | 'none';
144
+ export type $mol_style_properties_color = 'aliceblue' | 'antiquewhite' | 'aqua' | 'aquamarine' | 'azure' | 'beige' | 'bisque' | 'black' | 'blanchedalmond' | 'blue' | 'blueviolet' | 'brown' | 'burlywood' | 'cadetblue' | 'chartreuse' | 'chocolate' | 'coral' | 'cornflowerblue' | 'cornsilk' | 'crimson' | 'cyan' | 'darkblue' | 'darkcyan' | 'darkgoldenrod' | 'darkgray' | 'darkgreen' | 'darkgrey' | 'darkkhaki' | 'darkmagenta' | 'darkolivegreen' | 'darkorange' | 'darkorchid' | 'darkred' | 'darksalmon' | 'darkseagreen' | 'darkslateblue' | 'darkslategrey' | 'darkturquoise' | 'darkviolet' | 'deeppink' | 'deepskyblue' | 'dimgray' | 'dimgrey' | 'dodgerblue' | 'firebrick' | 'floralwhite' | 'forestgreen' | 'fuchsia' | 'gainsboro' | 'ghostwhite' | 'gold' | 'goldenrod' | 'gray' | 'green' | 'greenyellow' | 'grey' | 'honeydew' | 'hotpink' | 'indianred' | 'indigo' | 'ivory' | 'khaki' | 'lavender' | 'lavenderblush' | 'lawngreen' | 'lemonchiffon' | 'lightblue' | 'lightcoral' | 'lightcyan' | 'lightgoldenrodyellow' | 'lightgray' | 'lightgreen' | 'lightgrey' | 'lightpink' | 'lightsalmon' | 'lightseagreen' | 'lightskyblue' | 'lightslategray' | 'lightslategrey' | 'lightsteelblue' | 'lightyellow' | 'lime' | 'limegreen' | 'linen' | 'magenta' | 'maroon' | 'mediumaquamarine' | 'mediumblue' | 'mediumorchid' | 'mediumpurple' | 'mediumseagreen' | 'mediumslateblue' | 'mediumspringgreen' | 'mediumturquoise' | 'mediumvioletred' | 'midnightblue' | 'mintcream' | 'mistyrose' | 'moccasin' | 'navajowhite' | 'navy' | 'oldlace' | 'olive' | 'olivedrab' | 'orange' | 'orangered' | 'orchid' | 'palegoldenrod' | 'palegreen' | 'paleturquoise' | 'palevioletred' | 'papayawhip' | 'peachpuff' | 'peru' | 'pink' | 'plum' | 'powderblue' | 'purple' | 'rebeccapurple' | 'red' | 'rosybrown' | 'royalblue' | 'saddlebrown' | 'salmon' | 'sandybrown' | 'seagreen' | 'seashell' | 'sienna' | 'silver' | 'skyblue' | 'slateblue' | 'slategray' | 'slategrey' | 'snow' | 'springgreen' | 'steelblue' | 'tan' | 'teal' | 'thistle' | 'tomato' | 'turquoise' | 'violet' | 'wheat' | 'white' | 'whitesmoke' | 'yellow' | 'yellowgreen' | 'transparent' | 'currentcolor' | $mol_style_func<'hsla' | 'rgba' | 'var'> | `#${string}` | `hsl(${Space}${Angle} ${Portion} ${Portion}${'' | `${Space}/${Space}${Portion}`}${Space})`;
145
+ type Length = 0 | `${number}${$mol_style_unit_length}` | $mol_style_func<'calc' | 'var' | 'clamp'>;
146
+ type Size = 'auto' | 'max-content' | 'min-content' | 'fit-content' | Length | Common;
147
+ type Directions<Value> = Value | readonly [Value, Value] | {
148
+ top?: Value;
149
+ right?: Value;
150
+ bottom?: Value;
151
+ left?: Value;
152
+ };
153
+ type Single_animation_composition = 'replace' | 'add' | 'accumulate';
154
+ type Single_animation_direction = 'normal' | 'reverse' | 'alternate' | 'alternate-reverse';
155
+ type Single_animation_fill_mode = 'none' | 'forwards' | 'backwards' | 'both';
156
+ type Single_animation_iteration_count = 'infinite' | number;
157
+ type Single_animation_play_state = 'running' | 'paused';
158
+ type Easing_function = Linear_easing_function | Cubic_bezier_easing_function | Step_easing_function;
159
+ type Linear_easing_function = 'linear' | $mol_style_func<'linear'>;
160
+ type Cubic_bezier_easing_function = 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | $mol_style_func<'cubic-bezier'>;
161
+ type Step_easing_function = 'step-start' | 'step-end' | $mol_style_func<'steps'>;
162
+ type Compat_auto = 'searchfield' | 'textarea' | 'push-button' | 'slider-horizontal' | 'checkbox' | 'radio' | 'menulist' | 'listbox' | 'meter' | 'progress-bar' | 'button';
163
+ type Compat_special = 'textfield' | 'menulist-button';
164
+ type Mix_blend_mode = Blend_mode | 'plus-darker' | 'plus-lighter';
165
+ type Blend_mode = 'normal' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'color-dodge' | 'color-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion' | 'hue' | 'saturation' | 'color' | 'luminosity';
166
+ type Box = 'border-box' | 'padding-box' | 'content-box';
167
+ type Baseline_position = 'baseline' | `${'first' | 'last'} baseline`;
168
+ type Content_distribution = 'space-between' | 'space-around' | 'space-evenly' | 'stretch';
169
+ type Self_position = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end';
170
+ type Content_position = 'center' | 'start' | 'end' | 'flex-start' | 'flex-end';
171
+ type Span_align = 'none' | 'start' | 'end' | 'center' | $mol_style_func<'var'>;
172
+ type Snap_axis = 'x' | 'y' | 'block' | 'inline' | 'both' | $mol_style_func<'var'>;
173
+ type Overflow = 'visible' | 'hidden' | 'clip' | 'scroll' | 'auto' | 'overlay' | Common;
174
+ type Overflow_position = 'unsafe' | 'safe';
175
+ type ContainRule = 'size' | 'layout' | 'style' | 'paint' | $mol_style_func<'var'>;
176
+ type Repeat = 'repeat-x' | 'repeat-y' | 'repeat' | 'space' | 'round' | 'no-repeat' | $mol_style_func<'var'>;
177
+ type BG_size = Length | 'auto' | 'contain' | 'cover';
178
+ interface Overrides {
179
+ accentColor?: $mol_style_properties_color | Common;
180
+ align?: {
181
+ content?: 'normal' | Baseline_position | Content_distribution | Content_position | `${Overflow_position} ${Content_position}` | Common;
182
+ items?: 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
183
+ self?: 'auto' | 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
184
+ };
185
+ justify?: {
186
+ content?: 'normal' | Baseline_position | Content_distribution | Content_position | `${Overflow_position} ${Content_position}` | Common;
187
+ items?: 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
188
+ self?: 'auto' | 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
189
+ };
190
+ all?: Common;
191
+ animation?: {
192
+ composition?: Single_animation_composition | Single_animation_composition[][] | Common;
193
+ delay?: $mol_style_unit_str<$mol_style_unit_time> | $mol_style_unit_str<$mol_style_unit_time>[][] | Common;
194
+ direction?: Single_animation_direction | Single_animation_direction[][] | Common;
195
+ duration?: $mol_style_unit_str<$mol_style_unit_time> | $mol_style_unit_str<$mol_style_unit_time>[][] | Common;
196
+ fillMode?: Single_animation_fill_mode | Single_animation_fill_mode[][] | Common;
197
+ iterationCount?: Single_animation_iteration_count | Single_animation_iteration_count[][] | Common;
198
+ name?: 'none' | string & {} | ('none' | string & {})[][] | Common;
199
+ playState?: Single_animation_play_state | Single_animation_play_state[][] | Common;
200
+ timingFunction?: Easing_function | Easing_function[][] | Common;
201
+ };
202
+ appearance?: 'none' | 'auto' | Compat_auto | Compat_special | Common;
203
+ aspectRatio?: 'auto' | number | `${number} / ${number}`;
204
+ backdropFilter: $mol_style_func<$mol_style_func_filter> | $mol_style_func<'url'> | ($mol_style_func<$mol_style_func_filter> | $mol_style_func<'url'>)[][] | 'none' | Common;
205
+ backfaceVisibility: 'visible' | 'hidden' | Common;
206
+ justifyContent?: 'start' | 'end' | 'flex-start' | 'flex-end' | 'left' | 'right' | 'space-between' | 'space-around' | 'space-evenly' | 'normal' | 'stretch' | 'center' | Common;
207
+ gap?: Length | readonly [Length, Length] | Common;
208
+ background?: 'none' | {
209
+ attachment?: 'scroll' | 'fixed' | 'local' | ('scroll' | 'fixed' | 'local')[][] | Common;
210
+ blendMode?: Mix_blend_mode | Mix_blend_mode[][] | Common;
211
+ clip?: Box | Box[][] | Common;
212
+ color?: $mol_style_properties_color | Common;
213
+ image?: readonly (readonly [$mol_style_func<$mol_style_func_image> | string & {}])[] | 'none' | Common;
214
+ repeat?: Repeat | [Repeat, Repeat] | Common;
215
+ position?: 'left' | 'right' | 'top' | 'bottom' | 'center' | Common;
216
+ size?: (BG_size | [BG_size] | [BG_size, BG_size])[];
217
+ };
218
+ box?: {
219
+ shadow?: readonly ([
220
+ ...[inset: 'inset'] | [],
221
+ x: Length,
222
+ y: Length,
223
+ blur: Length,
224
+ spread: Length,
225
+ color: $mol_style_properties_color
226
+ ] | {
227
+ inset?: boolean;
228
+ x: Length;
229
+ y: Length;
230
+ blur: Length;
231
+ spread: Length;
232
+ color: $mol_style_properties_color;
233
+ })[] | 'none' | Common;
234
+ };
235
+ rx?: Length | Common;
236
+ ry?: Length | Common;
237
+ font?: {
238
+ style?: 'normal' | 'italic' | Common;
239
+ weight?: 'normal' | 'bold' | 'lighter' | 'bolder' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | Common;
240
+ size?: 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large' | 'smaller' | 'larger' | Length | Common;
241
+ family?: string & {} | 'serif' | 'sans-serif' | 'monospace' | 'cursive' | 'fantasy' | 'system-ui' | 'ui-serif' | 'ui-sans-serif' | 'ui-monospace' | 'ui-rounded' | 'emoji' | 'math' | 'fangsong' | Common;
242
+ };
243
+ color?: $mol_style_properties_color | Common;
244
+ display?: 'block' | 'inline' | 'run-in' | 'list-item' | 'none' | 'flow' | 'flow-root' | 'table' | 'flex' | 'grid' | 'contents' | 'table-row-group' | 'table-header-group' | 'table-footer-group' | 'table-column-group' | 'table-row' | 'table-cell' | 'table-column' | 'table-caption' | 'inline-block' | 'inline-table' | 'inline-flex' | 'inline-grid' | 'ruby' | 'ruby-base' | 'ruby-text' | 'ruby-base-container' | 'ruby-text-container' | Common;
245
+ overflow?: Overflow | {
246
+ x?: Overflow | Common;
247
+ y?: Overflow | Common;
248
+ anchor?: 'auto' | 'none' | Common;
249
+ };
250
+ contain?: 'none' | 'strict' | 'content' | ContainRule | readonly ContainRule[] | Common;
251
+ whiteSpace?: 'normal' | 'nowrap' | 'break-spaces' | 'pre' | 'pre-wrap' | 'pre-line' | Common;
252
+ webkitOverflowScrolling?: 'auto' | 'touch' | Common;
253
+ scrollbar?: {
254
+ color?: readonly [$mol_style_properties_color, $mol_style_properties_color] | 'auto' | Common;
255
+ width?: 'auto' | 'thin' | 'none' | Common;
256
+ };
257
+ scroll?: {
258
+ snap?: {
259
+ type: 'none' | Snap_axis | readonly [Snap_axis, 'mandatory' | 'proximity'] | Common;
260
+ stop: 'normal' | 'always' | Common;
261
+ align: Span_align | readonly [Span_align, Span_align] | Common;
262
+ };
263
+ padding?: Directions<Length | 'auto'>;
264
+ };
265
+ width?: Size;
266
+ minWidth?: Size;
267
+ maxWidth?: Size;
268
+ height?: Size;
269
+ minHeight?: Size;
270
+ maxHeight?: Size;
271
+ margin?: Directions<Length | 'auto'>;
272
+ padding?: Directions<Length | 'auto'>;
273
+ position?: 'static' | 'relative' | 'absolute' | 'sticky' | 'fixed' | Common;
274
+ top?: Length | 'auto' | Common;
275
+ right?: Length | 'auto' | Common;
276
+ bottom?: Length | 'auto' | Common;
277
+ left?: Length | 'auto' | Common;
278
+ border?: Directions<{
279
+ radius?: Length | [Length, Length];
280
+ style?: 'none' | 'hidden' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | Common;
281
+ color?: $mol_style_properties_color | Common;
282
+ width?: Length | Common;
283
+ }>;
284
+ flex?: 'none' | 'auto' | {
285
+ grow?: number | Common;
286
+ shrink?: number | Common;
287
+ basis?: Size | Common;
288
+ direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse' | Common;
289
+ wrap?: 'wrap' | 'nowrap' | 'wrap-reverse' | Common;
290
+ };
291
+ container?: {
292
+ name?: string;
293
+ type?: Container_type | readonly Container_type[];
294
+ };
295
+ zIndex: number | Common;
296
+ opacity: number | Common;
297
+ }
298
+ type Container_type = 'normal' | 'size' | 'inline-size' | 'scroll-state' | 'anchored';
299
+ export {};
300
+ }
301
+
302
+ declare namespace $ {
303
+ function $mol_style_prop<Keys extends string[]>(prefix: string, keys: Keys): Record<Keys[number], $mol_style_func<"var", unknown>>;
304
+ }
305
+
306
+ declare namespace $ {
307
+ const $mol_theme: Record<"image" | "line" | "text" | "hue" | "back" | "hover" | "card" | "current" | "special" | "control" | "shade" | "focus" | "field" | "spirit" | "hue_spread", $mol_style_func<"var", unknown>>;
308
+ }
309
+
310
+ declare namespace $ {
311
+ }
312
+
313
+ declare namespace $ {
314
+ let $mol_gap: Record<"text" | "blur" | "page" | "block" | "space" | "round" | "emoji", $mol_style_func<"var", unknown>>;
315
+ }
316
+
317
+ declare namespace $ {
318
+ }
319
+
320
+ declare namespace $ {
321
+ function $mol_fail(error: any): never;
322
+ }
323
+
324
+ declare namespace $ {
325
+ function $mol_func_name(this: $, func: Function): string;
326
+ function $mol_func_name_from<Target extends Function>(target: Target, source: Function): Target;
327
+ }
328
+
329
+ declare namespace $ {
330
+ function $mol_dom_render_children(el: Element | DocumentFragment, childNodes: NodeList | Array<Node | string | null>): void;
331
+ }
332
+
333
+ declare namespace $ {
334
+ type $mol_type_partial_deep<Val> = Val extends object ? Val extends Function ? Val : {
335
+ [field in keyof Val]?: $mol_type_partial_deep<Val[field]> | undefined;
336
+ } : Val;
337
+ }
338
+
339
+ declare namespace $ {
340
+ let $mol_jsx_prefix: string;
341
+ let $mol_jsx_crumbs: string;
342
+ let $mol_jsx_booked: null | Set<string>;
343
+ let $mol_jsx_document: $mol_jsx.JSX.ElementClass['ownerDocument'];
344
+ const $mol_jsx_frag = "";
345
+ function $mol_jsx<Props extends $mol_jsx.JSX.IntrinsicAttributes, Children extends Array<Node | string>>(Elem: string | ((props: Props, ...children: Children) => Element), props: Props, ...childNodes: Children): Element | DocumentFragment;
346
+ namespace $mol_jsx.JSX {
347
+ interface Element extends HTMLElement {
348
+ class?: string;
349
+ }
350
+ interface ElementClass {
351
+ attributes: {};
352
+ ownerDocument: Pick<Document, 'getElementById' | 'createElementNS' | 'createDocumentFragment'>;
353
+ childNodes: Array<Node | string>;
354
+ valueOf(): Element;
355
+ }
356
+ type OrString<Dict> = {
357
+ [key in keyof Dict]: Dict[key] | string;
358
+ };
359
+ type IntrinsicElements = {
360
+ [key in keyof ElementTagNameMap]?: $.$mol_type_partial_deep<OrString<Element & IntrinsicAttributes & ElementTagNameMap[key]>>;
361
+ };
362
+ interface IntrinsicAttributes {
363
+ id?: string;
364
+ xmlns?: string;
365
+ }
366
+ interface ElementAttributesProperty {
367
+ attributes: {};
368
+ }
369
+ interface ElementChildrenAttribute {
370
+ }
371
+ }
372
+ }
373
+
374
+ declare namespace $ {
375
+ const $mol_ambient_ref: unique symbol;
376
+ type $mol_ambient_context = $;
377
+ function $mol_ambient(this: $ | void, overrides: Partial<$>): $;
378
+ }
379
+
380
+ declare namespace $ {
381
+ function $mol_delegate<Value extends object>(proto: Value, target: () => Value): Value;
382
+ }
383
+
384
+ declare namespace $ {
385
+ const $mol_owning_map: WeakMap<any, any>;
386
+ function $mol_owning_allow<Having>(having: Having): having is Having & {
387
+ destructor(): void;
388
+ };
389
+ function $mol_owning_get<Having, Owner extends object>(having: Having, Owner?: {
390
+ new (): Owner;
391
+ }): Owner | null;
392
+ function $mol_owning_check<Owner, Having>(owner: Owner, having: Having): having is Having & {
393
+ destructor(): void;
394
+ };
395
+ function $mol_owning_catch<Owner, Having>(owner: Owner, having: Having): boolean;
396
+ }
397
+
398
+ declare namespace $ {
399
+ function $mol_fail_hidden(error: any): never;
400
+ }
401
+
402
+ declare namespace $ {
403
+ type $mol_type_writable<T> = {
404
+ -readonly [P in keyof T]: T[P];
405
+ };
406
+ }
407
+
408
+ declare namespace $ {
409
+ const $mol_key_handle: unique symbol;
410
+ const $mol_key_store: WeakMap<object, string>;
411
+ }
412
+
413
+ declare namespace $ {
414
+ class $mol_object2 {
415
+ static $: $;
416
+ [Symbol.toStringTag]: string;
417
+ [$mol_ambient_ref]: $;
418
+ get $(): $;
419
+ set $(next: $);
420
+ static create<Instance>(this: new (init?: (instance: any) => void) => Instance, init?: (instance: $mol_type_writable<Instance>) => void): Instance;
421
+ static [Symbol.toPrimitive](): any;
422
+ static toString(): any;
423
+ static toJSON(): any;
424
+ static [$mol_key_handle](): any;
425
+ destructor(): void;
426
+ static destructor(): void;
427
+ [Symbol.dispose](): void;
428
+ toString(): string;
429
+ }
430
+ }
431
+
432
+ declare namespace $ {
433
+ namespace $$ { }
434
+ const $mol_object_field: unique symbol;
435
+ class $mol_object extends $mol_object2 {
436
+ static make<This extends typeof $mol_object>(this: This, config: Partial<InstanceType<This>>): InstanceType<This>;
437
+ }
438
+ }
439
+
440
+ declare namespace $ {
441
+ function $mol_guid(length?: number, exists?: (id: string) => boolean): string;
442
+ }
443
+
444
+ declare namespace $ {
445
+ enum $mol_wire_cursor {
446
+ stale = -1,
447
+ doubt = -2,
448
+ fresh = -3,
449
+ final = -4
450
+ }
451
+ }
452
+
453
+ declare namespace $ {
454
+ class $mol_wire_pub extends Object {
455
+ constructor(id?: string);
456
+ [Symbol.toStringTag]: string;
457
+ data: unknown[];
458
+ static get [Symbol.species](): ArrayConstructor;
459
+ protected sub_from: number;
460
+ get sub_list(): readonly $mol_wire_sub[];
461
+ get sub_empty(): boolean;
462
+ sub_on(sub: $mol_wire_pub, pub_pos: number): number;
463
+ sub_off(sub_pos: number): void;
464
+ reap(): void;
465
+ promote(): void;
466
+ fresh(): void;
467
+ complete(): void;
468
+ get incompleted(): boolean;
469
+ emit(quant?: $mol_wire_cursor): void;
470
+ peer_move(from_pos: number, to_pos: number): void;
471
+ peer_repos(peer_pos: number, self_pos: number): void;
472
+ }
473
+ }
474
+
475
+ declare namespace $ {
476
+ interface $mol_wire_sub extends $mol_wire_pub {
477
+ temp: boolean;
478
+ pub_list: $mol_wire_pub[];
479
+ track_on(): $mol_wire_sub | null;
480
+ track_next(pub?: $mol_wire_pub): $mol_wire_pub | null;
481
+ pub_off(pub_pos: number): void;
482
+ track_cut(sub: $mol_wire_pub | null): void;
483
+ track_off(sub: $mol_wire_pub | null): void;
484
+ absorb(quant: $mol_wire_cursor, pos: number): void;
485
+ destructor(): void;
486
+ }
487
+ }
488
+
489
+ declare namespace $ {
490
+ let $mol_wire_auto_sub: $mol_wire_sub | null;
491
+ function $mol_wire_auto(next?: $mol_wire_sub | null): $mol_wire_sub | null;
492
+ const $mol_wire_affected: ($mol_wire_sub | number)[];
493
+ }
494
+
495
+ declare namespace $ {
496
+ function $mol_dev_format_register(config: {
497
+ header: (val: any, config: any) => any;
498
+ hasBody: (val: any, config: any) => false;
499
+ } | {
500
+ header: (val: any, config: any) => any;
501
+ hasBody: (val: any, config: any) => boolean;
502
+ body: (val: any, config: any) => any;
503
+ }): void;
504
+ const $mol_dev_format_head: unique symbol;
505
+ const $mol_dev_format_body: unique symbol;
506
+ function $mol_dev_format_native(obj: any): any[];
507
+ function $mol_dev_format_auto(obj: any): any[];
508
+ function $mol_dev_format_element(element: string, style: object, ...content: any[]): any[];
509
+ let $mol_dev_format_span: (style: object, ...content: any[]) => any[];
510
+ let $mol_dev_format_div: (style: object, ...content: any[]) => any[];
511
+ let $mol_dev_format_ol: (style: object, ...content: any[]) => any[];
512
+ let $mol_dev_format_li: (style: object, ...content: any[]) => any[];
513
+ let $mol_dev_format_table: (style: object, ...content: any[]) => any[];
514
+ let $mol_dev_format_tr: (style: object, ...content: any[]) => any[];
515
+ let $mol_dev_format_td: (style: object, ...content: any[]) => any[];
516
+ let $mol_dev_format_accent: (...args: any[]) => any[];
517
+ let $mol_dev_format_strong: (...args: any[]) => any[];
518
+ let $mol_dev_format_string: (...args: any[]) => any[];
519
+ let $mol_dev_format_shade: (...args: any[]) => any[];
520
+ let $mol_dev_format_indent: (...args: any[]) => any[];
521
+ }
522
+
523
+ declare namespace $ {
524
+ class $mol_wire_pub_sub extends $mol_wire_pub implements $mol_wire_sub {
525
+ protected pub_from: number;
526
+ protected cursor: $mol_wire_cursor;
527
+ get temp(): boolean;
528
+ get pub_list(): $mol_wire_pub[];
529
+ track_on(): $mol_wire_sub | null;
530
+ promote(): void;
531
+ track_next(pub?: $mol_wire_pub): $mol_wire_pub | null;
532
+ track_off(sub: $mol_wire_sub | null): void;
533
+ pub_off(sub_pos: number): void;
534
+ destructor(): void;
535
+ track_cut(): void;
536
+ complete(): void;
537
+ complete_pubs(): void;
538
+ absorb(quant?: $mol_wire_cursor, pos?: number): void;
539
+ [$mol_dev_format_head](): any[];
540
+ get pub_empty(): boolean;
541
+ }
542
+ }
543
+
544
+ declare namespace $ {
545
+ class $mol_after_tick extends $mol_object2 {
546
+ task: () => void;
547
+ static promise: Promise<void> | null;
548
+ cancelled: boolean;
549
+ constructor(task: () => void);
550
+ destructor(): void;
551
+ }
552
+ }
553
+
554
+ declare namespace $ {
555
+ function $mol_promise_like(val: any): val is Promise<any>;
556
+ }
557
+
558
+ declare namespace $ {
559
+ abstract class $mol_wire_fiber<Host, Args extends readonly unknown[], Result> extends $mol_wire_pub_sub {
560
+ readonly task: (this: Host, ...args: Args) => Result;
561
+ readonly host?: Host | undefined;
562
+ static warm: boolean;
563
+ static planning: Set<$mol_wire_fiber<any, any, any>>;
564
+ static reaping: Set<$mol_wire_fiber<any, any, any>>;
565
+ static plan_task: $mol_after_tick | null;
566
+ static plan(): void;
567
+ static sync(): void;
568
+ cache: Result | Error | Promise<Result | Error>;
569
+ get args(): Args;
570
+ result(): Result | undefined;
571
+ get incompleted(): boolean;
572
+ field(): string;
573
+ constructor(id: string, task: (this: Host, ...args: Args) => Result, host?: Host | undefined, args?: Args);
574
+ plan(): this;
575
+ reap(): void;
576
+ toString(): string;
577
+ toJSON(): string;
578
+ [$mol_dev_format_head](): any[];
579
+ [$mol_dev_format_body](): null;
580
+ get $(): any;
581
+ emit(quant?: $mol_wire_cursor): void;
582
+ fresh(): this | undefined;
583
+ refresh(): void;
584
+ abstract put(next: Result | Error | Promise<Result | Error>): Result | Error | Promise<Result | Error>;
585
+ sync(): Awaited<Result>;
586
+ async_raw(): Promise<Result>;
587
+ async(): Promise<Result> & {
588
+ destructor(): void;
589
+ };
590
+ step(): Promise<null>;
591
+ destructor(): void;
592
+ }
593
+ }
594
+
595
+ declare namespace $ {
596
+ function $mol_key<Value>(value: Value): string;
597
+ }
598
+
599
+ declare namespace $ {
600
+ class $mol_after_frame extends $mol_object2 {
601
+ task: () => void;
602
+ static _promise: Promise<void> | null;
603
+ static get promise(): Promise<void>;
604
+ cancelled: boolean;
605
+ promise: Promise<void>;
606
+ constructor(task: () => void);
607
+ destructor(): void;
608
+ }
609
+ }
610
+
611
+ declare namespace $ {
612
+ let $mol_compare_deep_cache: WeakMap<any, WeakMap<any, boolean>>;
613
+ function $mol_compare_deep<Value>(left: Value, right: Value): boolean;
614
+ }
615
+
616
+ declare namespace $ {
617
+ type $mol_log3_event<Fields> = {
618
+ [key in string]: unknown;
619
+ } & {
620
+ time?: string;
621
+ place: unknown;
622
+ message: string;
623
+ } & Fields;
624
+ type $mol_log3_logger<Fields, Res = void> = (this: $, event: $mol_log3_event<Fields>) => Res;
625
+ let $mol_log3_come: $mol_log3_logger<{}>;
626
+ let $mol_log3_done: $mol_log3_logger<{}>;
627
+ let $mol_log3_fail: $mol_log3_logger<{}>;
628
+ let $mol_log3_warn: $mol_log3_logger<{
629
+ hint: string;
630
+ }>;
631
+ let $mol_log3_rise: $mol_log3_logger<{}>;
632
+ let $mol_log3_area: $mol_log3_logger<{}, () => void>;
633
+ function $mol_log3_area_lazy(this: $, event: $mol_log3_event<{}>): () => void;
634
+ let $mol_log3_stack: (() => void)[];
635
+ }
636
+
637
+ declare namespace $ {
638
+ type $mol_type_keys_extract<Input, Upper, Lower = never> = {
639
+ [Field in keyof Input]: unknown extends Input[Field] ? never : Input[Field] extends never ? never : Input[Field] extends Upper ? [
640
+ Lower
641
+ ] extends [Input[Field]] ? Field : never : never;
642
+ }[keyof Input];
643
+ }
644
+
645
+ declare namespace $ {
646
+ function $mol_log3_web_make(level: $mol_type_keys_extract<Console, Function>, color: string): (this: $, event: $mol_log3_event<{}>) => () => void;
647
+ }
648
+
649
+ declare namespace $ {
650
+ class $mol_wire_task<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
651
+ static getter<Host, Args extends readonly unknown[], Result>(task: (this: Host, ...args: Args) => Result): (host: Host, args: Args) => $mol_wire_task<Host, Args, Result>;
652
+ get temp(): boolean;
653
+ complete(): void;
654
+ put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
655
+ destructor(): void;
656
+ }
657
+ }
658
+
659
+ declare namespace $ {
660
+ function $mol_wire_method<Host extends object, Args extends readonly any[]>(host: Host, field: PropertyKey, descr?: TypedPropertyDescriptor<(...args: Args) => any>): {
661
+ value: (this: Host, ...args: Args) => any;
662
+ enumerable?: boolean;
663
+ configurable?: boolean;
664
+ writable?: boolean;
665
+ get?: (() => (...args: Args) => any) | undefined;
666
+ set?: ((value: (...args: Args) => any) => void) | undefined;
667
+ };
668
+ }
669
+
670
+ declare namespace $ {
671
+ type $mol_type_tail<Tuple extends readonly any[]> = ((...tail: Tuple) => any) extends ((head: any, ...tail: infer Tail) => any) ? Tail : never;
672
+ }
673
+
674
+ declare namespace $ {
675
+ type $mol_type_foot<Tuple extends readonly any[]> = Tuple['length'] extends 0 ? never : Tuple[$mol_type_tail<Tuple>['length']];
676
+ }
677
+
678
+ declare namespace $ {
679
+ function $mol_fail_catch(error: unknown): boolean;
680
+ }
681
+
682
+ declare namespace $ {
683
+ function $mol_try<Result>(handler: () => Result): Result | Error;
684
+ }
685
+
686
+ declare namespace $ {
687
+ function $mol_try_web<Result>(handler2: () => Result): Result | Error;
688
+ }
689
+
690
+ declare namespace $ {
691
+ function $mol_fail_log(error: unknown): boolean;
692
+ }
693
+
694
+ declare namespace $ {
695
+ class $mol_wire_atom<Host, Args extends readonly unknown[], Result> extends $mol_wire_fiber<Host, Args, Result> {
696
+ static solo<Host, Args extends readonly unknown[], Result>(host: Host, task: (this: Host, ...args: Args) => Result): $mol_wire_atom<Host, Args, Result>;
697
+ static plex<Host, Args extends readonly unknown[], Result>(host: Host, task: (this: Host, ...args: Args) => Result, key: Args[0]): $mol_wire_atom<Host, Args, Result>;
698
+ static watching: Set<$mol_wire_atom<any, any, any>>;
699
+ static watcher: $mol_after_frame | null;
700
+ static watch(): void;
701
+ watch(): void;
702
+ resync(args: Args): Error | Result | Promise<Error | Result>;
703
+ once(): Awaited<Result>;
704
+ channel(): ((next?: $mol_type_foot<Args>) => Awaited<Result>) & {
705
+ atom: $mol_wire_atom<Host, Args, Result>;
706
+ };
707
+ destructor(): void;
708
+ put(next: Result | Error | Promise<Result | Error>): Error | Result | Promise<Error | Result>;
709
+ }
710
+ }
711
+
712
+ declare namespace $ {
713
+ export function $mol_wire_solo<Args extends any[]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): TypedPropertyDescriptor<(...args: First_optional<Args>) => any>;
714
+ type First_optional<Args extends any[]> = Args extends [] ? [] : [Args[0] | undefined, ...$mol_type_tail<Args>];
715
+ export {};
716
+ }
717
+
718
+ declare namespace $ {
719
+ function $mol_wire_plex<Args extends [any, ...any[]]>(host: object, field: string, descr?: TypedPropertyDescriptor<(...args: Args) => any>): {
720
+ value: (this: typeof host, ...args: Args) => any;
721
+ enumerable?: boolean;
722
+ configurable?: boolean;
723
+ writable?: boolean;
724
+ get?: (() => (...args: Args) => any) | undefined;
725
+ set?: ((value: (...args: Args) => any) => void) | undefined;
726
+ };
727
+ }
728
+
729
+ declare namespace $ {
730
+ let $mol_mem: typeof $mol_wire_solo;
731
+ let $mol_mem_key: typeof $mol_wire_plex;
732
+ }
733
+
734
+ declare namespace $ {
735
+ class $mol_window extends $mol_object {
736
+ static size(): {
737
+ width: number;
738
+ height: number;
739
+ };
740
+ static resizes(next?: Event): Event | undefined;
741
+ }
742
+ }
743
+
744
+ declare namespace $ {
745
+ function $mol_guard_defined<T>(value: T): value is NonNullable<T>;
746
+ }
747
+
748
+ declare namespace $ {
749
+ class $mol_view_selection extends $mol_object {
750
+ static focused(next?: Element[], notify?: 'notify'): Element[];
751
+ }
752
+ }
753
+
754
+ declare namespace $ {
755
+ function $mol_maybe<Value>(value: Value | null | undefined): Value[];
756
+ }
757
+
758
+ declare namespace $ {
759
+ enum $mol_keyboard_code {
760
+ backspace = 8,
761
+ tab = 9,
762
+ enter = 13,
763
+ shift = 16,
764
+ ctrl = 17,
765
+ alt = 18,
766
+ pause = 19,
767
+ capsLock = 20,
768
+ escape = 27,
769
+ space = 32,
770
+ pageUp = 33,
771
+ pageDown = 34,
772
+ end = 35,
773
+ home = 36,
774
+ left = 37,
775
+ up = 38,
776
+ right = 39,
777
+ down = 40,
778
+ insert = 45,
779
+ delete = 46,
780
+ key0 = 48,
781
+ key1 = 49,
782
+ key2 = 50,
783
+ key3 = 51,
784
+ key4 = 52,
785
+ key5 = 53,
786
+ key6 = 54,
787
+ key7 = 55,
788
+ key8 = 56,
789
+ key9 = 57,
790
+ A = 65,
791
+ B = 66,
792
+ C = 67,
793
+ D = 68,
794
+ E = 69,
795
+ F = 70,
796
+ G = 71,
797
+ H = 72,
798
+ I = 73,
799
+ J = 74,
800
+ K = 75,
801
+ L = 76,
802
+ M = 77,
803
+ N = 78,
804
+ O = 79,
805
+ P = 80,
806
+ Q = 81,
807
+ R = 82,
808
+ S = 83,
809
+ T = 84,
810
+ U = 85,
811
+ V = 86,
812
+ W = 87,
813
+ X = 88,
814
+ Y = 89,
815
+ Z = 90,
816
+ metaLeft = 91,
817
+ metaRight = 92,
818
+ select = 93,
819
+ numpad0 = 96,
820
+ numpad1 = 97,
821
+ numpad2 = 98,
822
+ numpad3 = 99,
823
+ numpad4 = 100,
824
+ numpad5 = 101,
825
+ numpad6 = 102,
826
+ numpad7 = 103,
827
+ numpad8 = 104,
828
+ numpad9 = 105,
829
+ multiply = 106,
830
+ add = 107,
831
+ subtract = 109,
832
+ decimal = 110,
833
+ divide = 111,
834
+ F1 = 112,
835
+ F2 = 113,
836
+ F3 = 114,
837
+ F4 = 115,
838
+ F5 = 116,
839
+ F6 = 117,
840
+ F7 = 118,
841
+ F8 = 119,
842
+ F9 = 120,
843
+ F10 = 121,
844
+ F11 = 122,
845
+ F12 = 123,
846
+ numLock = 144,
847
+ scrollLock = 145,
848
+ semicolon = 186,
849
+ equals = 187,
850
+ comma = 188,
851
+ dash = 189,
852
+ period = 190,
853
+ forwardSlash = 191,
854
+ graveAccent = 192,
855
+ bracketOpen = 219,
856
+ slashBack = 220,
857
+ slashBackLeft = 226,
858
+ bracketClose = 221,
859
+ quoteSingle = 222
860
+ }
861
+ }
862
+
863
+ declare namespace $ {
864
+ }
865
+
866
+ declare namespace $ {
867
+ class $mol_wrapper extends $mol_object2 {
868
+ static wrap: (task: (...ags: any[]) => any) => (...ags: any[]) => any;
869
+ static run<Result>(task: () => Result): Result;
870
+ static func<Args extends any[], Result, Host = void>(func: (this: Host, ...args: Args) => Result): (this: Host, ...args: Args) => Result;
871
+ static get class(): <Class extends new (...args: any[]) => any>(Class: Class) => Class;
872
+ static get method(): (obj: object, name: PropertyKey, descr?: TypedPropertyDescriptor<any>) => TypedPropertyDescriptor<any>;
873
+ static get field(): <Host extends object, Field extends keyof Host, Args extends any[], Result>(obj: Host, name: Field, descr?: TypedPropertyDescriptor<Result>) => TypedPropertyDescriptor<Result>;
874
+ }
875
+ }
876
+
877
+ declare namespace $ {
878
+ class $mol_memo extends $mol_wrapper {
879
+ static wrap<This extends object, Value>(task: (this: This, next?: Value) => Value): (this: This, next?: Value) => Value | undefined;
880
+ }
881
+ }
882
+
883
+ declare namespace $ {
884
+ function $mol_dom_qname(name: string): string;
885
+ }
886
+
887
+ declare namespace $ {
888
+ function $mol_wire_probe<Value>(task: () => Value, def?: Value): Value | undefined;
889
+ }
890
+
891
+ declare namespace $ {
892
+ function $mol_wire_watch(): void;
893
+ }
894
+
895
+ declare namespace $ {
896
+ function $mol_const<Value>(value: Value): {
897
+ (): Value;
898
+ '()': Value;
899
+ };
900
+ }
901
+
902
+ declare namespace $ {
903
+ function $mol_wire_solid(): void;
904
+ }
905
+
906
+ declare namespace $ {
907
+ function $mol_dom_render_attributes(el: Element, attrs: {
908
+ [key: string]: string | number | boolean | null;
909
+ }): void;
910
+ }
911
+
912
+ declare namespace $ {
913
+ function $mol_dom_render_events(el: Element, events: {
914
+ [key: string]: (event: Event) => any;
915
+ }, passive?: boolean): void;
916
+ }
917
+
918
+ declare namespace $ {
919
+ function $mol_error_message(this: $, error: unknown): string;
920
+ }
921
+
922
+ declare namespace $ {
923
+ function $mol_dom_render_styles(el: Element, styles: {
924
+ [key: string]: string | number;
925
+ }): void;
926
+ }
927
+
928
+ declare namespace $ {
929
+ function $mol_dom_render_fields(el: Element, fields: {
930
+ [key: string]: any;
931
+ }): void;
932
+ }
933
+
934
+ declare namespace $ {
935
+ export function $mol_wire_async<Host extends object>(obj: Host): ObjectOrFunctionResultPromisify<Host>;
936
+ type FunctionResultPromisify<Some> = Some extends (...args: infer Args) => infer Res ? Res extends PromiseLike<unknown> ? Some : (...args: Args) => Promise<Res> : Some;
937
+ type MethodsResultPromisify<Host extends Object> = {
938
+ [K in keyof Host]: FunctionResultPromisify<Host[K]>;
939
+ };
940
+ type ObjectOrFunctionResultPromisify<Some> = (Some extends (...args: any) => unknown ? FunctionResultPromisify<Some> : {}) & (Some extends Object ? MethodsResultPromisify<Some> : Some);
941
+ export {};
942
+ }
943
+
944
+ declare namespace $ {
945
+ class $mol_after_timeout extends $mol_object2 {
946
+ delay: number;
947
+ task: () => void;
948
+ id: any;
949
+ constructor(delay: number, task: () => void);
950
+ destructor(): void;
951
+ }
952
+ }
953
+
954
+ declare namespace $ {
955
+ type $mol_type_pick<Input, Upper> = Pick<Input, $mol_type_keys_extract<Input, Upper>>;
956
+ }
957
+
958
+ declare namespace $ {
959
+ }
960
+
961
+ declare namespace $ {
962
+ type $mol_view_content = $mol_view | Node | string | number | boolean | null;
963
+ function $mol_view_visible_width(): number;
964
+ function $mol_view_visible_height(): number;
965
+ function $mol_view_state_key(suffix: string): string;
966
+ class $mol_view extends $mol_object {
967
+ static Root<This extends typeof $mol_view>(this: This, id: number): InstanceType<This>;
968
+ static roots(): $mol_view[];
969
+ static auto(): void;
970
+ title(): string;
971
+ hint(): string;
972
+ focused(next?: boolean): boolean;
973
+ state_key(suffix?: string): string;
974
+ dom_name(): string;
975
+ dom_name_space(): string;
976
+ sub(): readonly $mol_view_content[];
977
+ sub_visible(): readonly $mol_view_content[];
978
+ minimal_width(): number;
979
+ maximal_width(): number;
980
+ minimal_height(): number;
981
+ static watchers: Set<$mol_view>;
982
+ view_rect(): {
983
+ width: number;
984
+ height: number;
985
+ left: number;
986
+ right: number;
987
+ top: number;
988
+ bottom: number;
989
+ } | null;
990
+ dom_id(): string;
991
+ dom_node_external(next?: Element): Element;
992
+ dom_node(next?: Element): Element;
993
+ dom_final(): Element | undefined;
994
+ dom_tree(next?: Element): Element;
995
+ dom_node_actual(): Element;
996
+ auto(): any;
997
+ render(): void;
998
+ static view_classes(): (typeof $mol_view)[];
999
+ static _view_names?: Map<string, string[]>;
1000
+ static view_names(suffix: string): string[];
1001
+ view_names_owned(): string[];
1002
+ view_names(): Set<string>;
1003
+ theme(next?: string | null): string | null | undefined;
1004
+ attr_static(): {
1005
+ [key: string]: string | number | boolean | null;
1006
+ };
1007
+ attr(): {};
1008
+ style(): {
1009
+ [key: string]: string | number;
1010
+ };
1011
+ field(): {
1012
+ [key: string]: any;
1013
+ };
1014
+ event(): {
1015
+ [key: string]: (event: Event) => void;
1016
+ };
1017
+ event_async(): {
1018
+ [x: string]: (event: Event) => Promise<void>;
1019
+ };
1020
+ plugins(): readonly $mol_view[];
1021
+ [$mol_dev_format_head](): any[];
1022
+ view_find(check: (path: $mol_view, text?: string) => boolean, path?: $mol_view[]): Generator<$mol_view[]>;
1023
+ force_render(path: Set<$mol_view>): void;
1024
+ ensure_visible(view: $mol_view, align?: ScrollLogicalPosition): void;
1025
+ bring(): void;
1026
+ destructor(): void;
1027
+ }
1028
+ type $mol_view_all = $mol_type_pick<$, typeof $mol_view>;
1029
+ }
1030
+
1031
+ interface Window {
1032
+ cordova: any;
1033
+ }
1034
+ declare namespace $ {
1035
+ }
1036
+
1037
+ declare namespace $ {
1038
+ class $mol_plugin extends $mol_view {
1039
+ dom_node_external(next?: Element): Element;
1040
+ render(): void;
1041
+ }
1042
+ }
1043
+
1044
+ declare namespace $ {
1045
+ function $mol_view_component(View: typeof $mol_view): {
1046
+ new (): {
1047
+ view: $mol_view;
1048
+ root?: $mol_wire_sub | null;
1049
+ connectedCallback(): void;
1050
+ disconnectedCallback(): void;
1051
+ attributeChangedCallback(name: string, prev: string, next: string): void;
1052
+ toString(): string;
1053
+ accessKey: string;
1054
+ readonly accessKeyLabel: string;
1055
+ autocapitalize: string;
1056
+ autocorrect: boolean;
1057
+ dir: string;
1058
+ draggable: boolean;
1059
+ hidden: boolean | "until-found";
1060
+ inert: boolean;
1061
+ innerText: string;
1062
+ lang: string;
1063
+ readonly offsetHeight: number;
1064
+ readonly offsetLeft: number;
1065
+ readonly offsetParent: Element | null;
1066
+ readonly offsetTop: number;
1067
+ readonly offsetWidth: number;
1068
+ outerText: string;
1069
+ popover: string | null;
1070
+ spellcheck: boolean;
1071
+ title: string;
1072
+ translate: boolean;
1073
+ writingSuggestions: string;
1074
+ attachInternals(): ElementInternals;
1075
+ click(): void;
1076
+ hidePopover(): void;
1077
+ showPopover(options?: ShowPopoverOptions): void;
1078
+ togglePopover(options?: TogglePopoverOptions | boolean): boolean;
1079
+ addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
1080
+ addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
1081
+ removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
1082
+ removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
1083
+ readonly attributes: NamedNodeMap;
1084
+ get classList(): DOMTokenList;
1085
+ set classList(value: string);
1086
+ className: string;
1087
+ readonly clientHeight: number;
1088
+ readonly clientLeft: number;
1089
+ readonly clientTop: number;
1090
+ readonly clientWidth: number;
1091
+ readonly currentCSSZoom: number;
1092
+ readonly customElementRegistry: CustomElementRegistry | null;
1093
+ id: string;
1094
+ innerHTML: string;
1095
+ readonly localName: string;
1096
+ readonly namespaceURI: string | null;
1097
+ onfullscreenchange: ((this: Element, ev: Event) => any) | null;
1098
+ onfullscreenerror: ((this: Element, ev: Event) => any) | null;
1099
+ outerHTML: string;
1100
+ readonly ownerDocument: Document;
1101
+ get part(): DOMTokenList;
1102
+ set part(value: string);
1103
+ readonly prefix: string | null;
1104
+ readonly scrollHeight: number;
1105
+ scrollLeft: number;
1106
+ scrollTop: number;
1107
+ readonly scrollWidth: number;
1108
+ readonly shadowRoot: ShadowRoot | null;
1109
+ slot: string;
1110
+ readonly tagName: string;
1111
+ attachShadow(init: ShadowRootInit): ShadowRoot;
1112
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
1113
+ closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K] | null;
1114
+ closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K] | null;
1115
+ closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K] | null;
1116
+ closest<E extends Element = Element>(selectors: string): E | null;
1117
+ computedStyleMap(): StylePropertyMapReadOnly;
1118
+ getAttribute(qualifiedName: string): string | null;
1119
+ getAttributeNS(namespace: string | null, localName: string): string | null;
1120
+ getAttributeNames(): string[];
1121
+ getAttributeNode(qualifiedName: string): Attr | null;
1122
+ getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
1123
+ getBoundingClientRect(): DOMRect;
1124
+ getClientRects(): DOMRectList;
1125
+ getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
1126
+ getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
1127
+ getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
1128
+ getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
1129
+ getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
1130
+ getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
1131
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
1132
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
1133
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
1134
+ getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
1135
+ getHTML(options?: GetHTMLOptions): string;
1136
+ hasAttribute(qualifiedName: string): boolean;
1137
+ hasAttributeNS(namespace: string | null, localName: string): boolean;
1138
+ hasAttributes(): boolean;
1139
+ hasPointerCapture(pointerId: number): boolean;
1140
+ insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
1141
+ insertAdjacentHTML(position: InsertPosition, string: string): void;
1142
+ insertAdjacentText(where: InsertPosition, data: string): void;
1143
+ matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
1144
+ matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
1145
+ matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
1146
+ matches(selectors: string): boolean;
1147
+ releasePointerCapture(pointerId: number): void;
1148
+ removeAttribute(qualifiedName: string): void;
1149
+ removeAttributeNS(namespace: string | null, localName: string): void;
1150
+ removeAttributeNode(attr: Attr): Attr;
1151
+ requestFullscreen(options?: FullscreenOptions): Promise<void>;
1152
+ requestPointerLock(options?: PointerLockOptions): Promise<void>;
1153
+ scroll(options?: ScrollToOptions): void;
1154
+ scroll(x: number, y: number): void;
1155
+ scrollBy(options?: ScrollToOptions): void;
1156
+ scrollBy(x: number, y: number): void;
1157
+ scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
1158
+ scrollTo(options?: ScrollToOptions): void;
1159
+ scrollTo(x: number, y: number): void;
1160
+ setAttribute(qualifiedName: string, value: string): void;
1161
+ setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
1162
+ setAttributeNode(attr: Attr): Attr | null;
1163
+ setAttributeNodeNS(attr: Attr): Attr | null;
1164
+ setHTMLUnsafe(html: string): void;
1165
+ setPointerCapture(pointerId: number): void;
1166
+ toggleAttribute(qualifiedName: string, force?: boolean): boolean;
1167
+ webkitMatchesSelector(selectors: string): boolean;
1168
+ get textContent(): string;
1169
+ set textContent(value: string | null);
1170
+ readonly baseURI: string;
1171
+ readonly childNodes: NodeListOf<ChildNode>;
1172
+ readonly firstChild: ChildNode | null;
1173
+ readonly isConnected: boolean;
1174
+ readonly lastChild: ChildNode | null;
1175
+ readonly nextSibling: ChildNode | null;
1176
+ readonly nodeName: string;
1177
+ readonly nodeType: number;
1178
+ nodeValue: string | null;
1179
+ readonly parentElement: HTMLElement | null;
1180
+ readonly parentNode: ParentNode | null;
1181
+ readonly previousSibling: ChildNode | null;
1182
+ appendChild<T extends Node>(node: T): T;
1183
+ cloneNode(subtree?: boolean): Node;
1184
+ compareDocumentPosition(other: Node): number;
1185
+ contains(other: Node | null): boolean;
1186
+ getRootNode(options?: GetRootNodeOptions): Node;
1187
+ hasChildNodes(): boolean;
1188
+ insertBefore<T extends Node>(node: T, child: Node | null): T;
1189
+ isDefaultNamespace(namespace: string | null): boolean;
1190
+ isEqualNode(otherNode: Node | null): boolean;
1191
+ isSameNode(otherNode: Node | null): boolean;
1192
+ lookupNamespaceURI(prefix: string | null): string | null;
1193
+ lookupPrefix(namespace: string | null): string | null;
1194
+ normalize(): void;
1195
+ removeChild<T extends Node>(child: T): T;
1196
+ replaceChild<T extends Node>(node: Node, child: T): T;
1197
+ readonly ELEMENT_NODE: 1;
1198
+ readonly ATTRIBUTE_NODE: 2;
1199
+ readonly TEXT_NODE: 3;
1200
+ readonly CDATA_SECTION_NODE: 4;
1201
+ readonly ENTITY_REFERENCE_NODE: 5;
1202
+ readonly ENTITY_NODE: 6;
1203
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
1204
+ readonly COMMENT_NODE: 8;
1205
+ readonly DOCUMENT_NODE: 9;
1206
+ readonly DOCUMENT_TYPE_NODE: 10;
1207
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
1208
+ readonly NOTATION_NODE: 12;
1209
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
1210
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
1211
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
1212
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
1213
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
1214
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
1215
+ dispatchEvent(event: Event): boolean;
1216
+ ariaActiveDescendantElement: Element | null;
1217
+ ariaAtomic: string | null;
1218
+ ariaAutoComplete: string | null;
1219
+ ariaBrailleLabel: string | null;
1220
+ ariaBrailleRoleDescription: string | null;
1221
+ ariaBusy: string | null;
1222
+ ariaChecked: string | null;
1223
+ ariaColCount: string | null;
1224
+ ariaColIndex: string | null;
1225
+ ariaColIndexText: string | null;
1226
+ ariaColSpan: string | null;
1227
+ ariaControlsElements: ReadonlyArray<Element> | null;
1228
+ ariaCurrent: string | null;
1229
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
1230
+ ariaDescription: string | null;
1231
+ ariaDetailsElements: ReadonlyArray<Element> | null;
1232
+ ariaDisabled: string | null;
1233
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
1234
+ ariaExpanded: string | null;
1235
+ ariaFlowToElements: ReadonlyArray<Element> | null;
1236
+ ariaHasPopup: string | null;
1237
+ ariaHidden: string | null;
1238
+ ariaInvalid: string | null;
1239
+ ariaKeyShortcuts: string | null;
1240
+ ariaLabel: string | null;
1241
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
1242
+ ariaLevel: string | null;
1243
+ ariaLive: string | null;
1244
+ ariaModal: string | null;
1245
+ ariaMultiLine: string | null;
1246
+ ariaMultiSelectable: string | null;
1247
+ ariaOrientation: string | null;
1248
+ ariaOwnsElements: ReadonlyArray<Element> | null;
1249
+ ariaPlaceholder: string | null;
1250
+ ariaPosInSet: string | null;
1251
+ ariaPressed: string | null;
1252
+ ariaReadOnly: string | null;
1253
+ ariaRelevant: string | null;
1254
+ ariaRequired: string | null;
1255
+ ariaRoleDescription: string | null;
1256
+ ariaRowCount: string | null;
1257
+ ariaRowIndex: string | null;
1258
+ ariaRowIndexText: string | null;
1259
+ ariaRowSpan: string | null;
1260
+ ariaSelected: string | null;
1261
+ ariaSetSize: string | null;
1262
+ ariaSort: string | null;
1263
+ ariaValueMax: string | null;
1264
+ ariaValueMin: string | null;
1265
+ ariaValueNow: string | null;
1266
+ ariaValueText: string | null;
1267
+ role: string | null;
1268
+ animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
1269
+ getAnimations(options?: GetAnimationsOptions): Animation[];
1270
+ after(...nodes: (Node | string)[]): void;
1271
+ before(...nodes: (Node | string)[]): void;
1272
+ remove(): void;
1273
+ replaceWith(...nodes: (Node | string)[]): void;
1274
+ readonly nextElementSibling: Element | null;
1275
+ readonly previousElementSibling: Element | null;
1276
+ readonly childElementCount: number;
1277
+ readonly children: HTMLCollection;
1278
+ readonly firstElementChild: Element | null;
1279
+ readonly lastElementChild: Element | null;
1280
+ append(...nodes: (Node | string)[]): void;
1281
+ moveBefore(node: Node, child: Node | null): void;
1282
+ prepend(...nodes: (Node | string)[]): void;
1283
+ querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
1284
+ querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
1285
+ querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
1286
+ querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
1287
+ querySelector<E extends Element = Element>(selectors: string): E | null;
1288
+ querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
1289
+ querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
1290
+ querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
1291
+ querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
1292
+ querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
1293
+ replaceChildren(...nodes: (Node | string)[]): void;
1294
+ readonly assignedSlot: HTMLSlotElement | null;
1295
+ readonly attributeStyleMap: StylePropertyMap;
1296
+ get style(): CSSStyleDeclaration;
1297
+ set style(cssText: string);
1298
+ contentEditable: string;
1299
+ enterKeyHint: string;
1300
+ inputMode: string;
1301
+ readonly isContentEditable: boolean;
1302
+ onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
1303
+ onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
1304
+ onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
1305
+ onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
1306
+ onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
1307
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1308
+ onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
1309
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1310
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
1311
+ onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
1312
+ oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1313
+ oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1314
+ oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1315
+ onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1316
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1317
+ onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1318
+ oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1319
+ oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1320
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1321
+ oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1322
+ oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
1323
+ oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1324
+ oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
1325
+ ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1326
+ ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1327
+ ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1328
+ ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1329
+ ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1330
+ ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1331
+ ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1332
+ ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
1333
+ ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1334
+ onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1335
+ onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1336
+ onerror: OnErrorEventHandler;
1337
+ onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
1338
+ onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
1339
+ ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1340
+ oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
1341
+ oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1342
+ onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
1343
+ onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
1344
+ onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
1345
+ onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1346
+ onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1347
+ onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1348
+ onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1349
+ onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1350
+ onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1351
+ onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1352
+ onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1353
+ onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1354
+ onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1355
+ onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1356
+ onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
1357
+ onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
1358
+ onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1359
+ onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1360
+ onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1361
+ onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1362
+ onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1363
+ onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1364
+ onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1365
+ onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1366
+ onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1367
+ onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1368
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1369
+ onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
1370
+ onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
1371
+ onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1372
+ onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1373
+ onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
1374
+ onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1375
+ onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1376
+ onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
1377
+ onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1378
+ onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1379
+ onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1380
+ onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1381
+ onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1382
+ onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1383
+ onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1384
+ onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
1385
+ onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1386
+ ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1387
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
1388
+ ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
1389
+ ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
1390
+ ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
1391
+ ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
1392
+ ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1393
+ ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1394
+ ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1395
+ ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
1396
+ onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1397
+ onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1398
+ onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1399
+ onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1400
+ onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1401
+ onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1402
+ onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1403
+ autofocus: boolean;
1404
+ readonly dataset: DOMStringMap;
1405
+ nonce: string;
1406
+ tabIndex: number;
1407
+ blur(): void;
1408
+ focus(options?: FocusOptions): void;
1409
+ };
1410
+ tag: string;
1411
+ observedAttributes: Set<string>;
1412
+ } | undefined;
1413
+ }
1414
+
1415
+ declare namespace $ {
1416
+ }
1417
+
1
1418
  declare namespace $ {
2
1419
 
3
1420
  export class $mol_stack extends $mol_view {
@@ -19,6 +1436,131 @@ declare namespace $ {
19
1436
  }
20
1437
 
21
1438
  //# sourceMappingURL=paragraph.view.tree.d.ts.map
1439
+ declare namespace $.$$ {
1440
+ class $mol_paragraph extends $.$mol_paragraph {
1441
+ maximal_width(): number;
1442
+ width_limit(): number;
1443
+ minimal_width(): number;
1444
+ row_width(): number;
1445
+ minimal_height(): number;
1446
+ }
1447
+ }
1448
+
1449
+ declare namespace $ {
1450
+ }
1451
+
1452
+ declare namespace $ {
1453
+ type $mol_type_equals<A, B> = (<X>() => X extends A ? 1 : 2) extends (<X>() => X extends B ? 1 : 2) ? unknown : never;
1454
+ }
1455
+
1456
+ declare namespace $ {
1457
+ type $mol_type_merge<Intersection> = Intersection extends (...a: any[]) => any ? Intersection : Intersection extends new (...a: any[]) => any ? Intersection : Intersection extends object ? $mol_type_merge_object<Intersection> extends Intersection ? unknown extends $mol_type_equals<{
1458
+ [Key in keyof Intersection]: Intersection[Key];
1459
+ }, Intersection> ? Intersection : {
1460
+ [Key in keyof Intersection]: $mol_type_merge<Intersection[Key]>;
1461
+ } : Intersection : Intersection;
1462
+ type $mol_type_merge_object<Intersection> = {
1463
+ [Key in keyof Intersection]: Intersection[Key];
1464
+ };
1465
+ }
1466
+
1467
+ declare namespace $ {
1468
+ type $mol_type_intersect<Union> = (Union extends any ? (_: Union) => void : never) extends ((_: infer Intersection) => void) ? Intersection : never;
1469
+ }
1470
+
1471
+ declare namespace $ {
1472
+ type $mol_unicode_category = [$mol_unicode_category_binary] | ['General_Category', $mol_char_category_general] | ['Script', $mol_unicode_category_script] | ['Script_Extensions', $mol_unicode_category_script];
1473
+ type $mol_unicode_category_binary = 'ASCII' | 'ASCII_Hex_Digit' | 'Alphabetic' | 'Any' | 'Assigned' | 'Bidi_Control' | 'Bidi_Mirrored' | 'Case_Ignorable' | 'Cased' | 'Changes_When_Casefolded' | 'Changes_When_Casemapped' | 'Changes_When_Lowercased' | 'Changes_When_NFKC_Casefolded' | 'Changes_When_Titlecased' | 'Changes_When_Uppercased' | 'Dash' | 'Default_Ignorable_Code_Point' | 'Deprecated' | 'Diacritic' | 'Emoji' | 'Emoji_Component' | 'Emoji_Modifier' | 'Emoji_Modifier_Base' | 'Emoji_Presentation' | 'Extended_Pictographic' | 'Extender' | 'Grapheme_Base' | 'Grapheme_Extend' | 'Hex_Digit' | 'IDS_Binary_Operator' | 'IDS_Trinary_Operator' | 'ID_Continue' | 'ID_Start' | 'Ideographic' | 'Join_Control' | 'Logical_Order_Exception' | 'Lowercase' | 'Math' | 'Noncharacter_Code_Point' | 'Pattern_Syntax' | 'Pattern_White_Space' | 'Quotation_Mark' | 'Radical' | 'Regional_Indicator' | 'Sentence_Terminal' | 'Soft_Dotted' | 'Terminal_Punctuation' | 'Unified_Ideograph' | 'Uppercase' | 'Variation_Selector' | 'White_Space' | 'XID_Continue' | 'XID_Start';
1474
+ type $mol_char_category_general = 'Cased_Letter' | 'Close_Punctuation' | 'Connector_Punctuation' | 'Control' | 'Currency_Symbol' | 'Dash_Punctuation' | 'Decimal_Number' | 'Enclosing_Mark' | 'Final_Punctuation' | 'Format' | 'Initial_Punctuation' | 'Letter' | 'Letter_Number' | 'Line_Separator' | 'Lowercase_Letter' | 'Mark' | 'Math_Symbol' | 'Modifier_Letter' | 'Modifier_Symbol' | 'Nonspacing_Mark' | 'Number' | 'Open_Punctuation' | 'Other' | 'Other_Letter' | 'Other_Number' | 'Other_Punctuation' | 'Other_Symbol' | 'Paragraph_Separator' | 'Private_Use' | 'Punctuation' | 'Separator' | 'Space_Separator' | 'Spacing_Mark' | 'Surrogate' | 'Symbol' | 'Titlecase_Letter' | 'Unassigned' | 'Uppercase_Letter';
1475
+ type $mol_unicode_category_script = 'Adlam' | 'Ahom' | 'Anatolian_Hieroglyphs' | 'Arabic' | 'Armenian' | 'Avestan' | 'Balinese' | 'Bamum' | 'Bassa_Vah' | 'Batak' | 'Bengali' | 'Bhaiksuki' | 'Bopomofo' | 'Brahmi' | 'Braille' | 'Buginese' | 'Buhid' | 'Canadian_Aboriginal' | 'Carian' | 'Caucasian_Albanian' | 'Chakma' | 'Cham' | 'Chorasmian' | 'Cherokee' | 'Common' | 'Coptic' | 'Cuneiform' | 'Cypriot' | 'Cyrillic' | 'Deseret' | 'Devanagari' | 'Dives_Akuru' | 'Dogra' | 'Duployan' | 'Egyptian_Hieroglyphs' | 'Elbasan' | 'Elymaic' | 'Ethiopic' | 'Georgian' | 'Glagolitic' | 'Gothic' | 'Grantha' | 'Greek' | 'Gujarati' | 'Gunjala_Gondi' | 'Gurmukhi' | 'Han' | 'Hangul' | 'Hanifi_Rohingya' | 'Hanunoo' | 'Hatran' | 'Hebrew' | 'Hiragana' | 'Imperial_Aramaic' | 'Inherited' | 'Inscriptional_Pahlavi' | 'Inscriptional_Parthian' | 'Javanese' | 'Kaithi' | 'Kannada' | 'Katakana' | 'Kayah_Li' | 'Kharoshthi' | 'Khitan_Small_Script' | 'Khmer' | 'Khojki' | 'Khudawadi' | 'Lao' | 'Latin' | 'Lepcha' | 'Limbu' | 'Linear_A' | 'Linear_B' | 'Lisu' | 'Lycian' | 'Lydian' | 'Mahajani' | 'Makasar' | 'Malayalam' | 'Mandaic' | 'Manichaean' | 'Marchen' | 'Medefaidrin' | 'Masaram_Gondi' | 'Meetei_Mayek' | 'Mende_Kikakui' | 'Meroitic_Cursive' | 'Meroitic_Hieroglyphs' | 'Miao' | 'Modi' | 'Mongolian' | 'Mro' | 'Multani' | 'Myanmar' | 'Nabataean' | 'Nandinagari' | 'New_Tai_Lue' | 'Newa' | 'Nko' | 'Nushu' | 'Nyiakeng_Puachue_Hmong' | 'Ogham' | 'Ol_Chiki' | 'Old_Hungarian' | 'Old_Italic' | 'Old_North_Arabian' | 'Old_Permic' | 'Old_Persian' | 'Old_Sogdian' | 'Old_South_Arabian' | 'Old_Turkic' | 'Oriya' | 'Osage' | 'Osmanya' | 'Pahawh_Hmong' | 'Palmyrene' | 'Pau_Cin_Hau' | 'Phags_Pa' | 'Phoenician' | 'Psalter_Pahlavi' | 'Rejang' | 'Runic' | 'Samaritan' | 'Saurashtra' | 'Sharada' | 'Shavian' | 'Siddham' | 'SignWriting' | 'Sinhala' | 'Sogdian' | 'Sora_Sompeng' | 'Soyombo' | 'Sundanese' | 'Syloti_Nagri' | 'Syriac' | 'Tagalog' | 'Tagbanwa' | 'Tai_Le' | 'Tai_Tham' | 'Tai_Viet' | 'Takri' | 'Tamil' | 'Tangut' | 'Telugu' | 'Thaana' | 'Thai' | 'Tibetan' | 'Tifinagh' | 'Tirhuta' | 'Ugaritic' | 'Vai' | 'Wancho' | 'Warang_Citi' | 'Yezidi' | 'Yi' | 'Zanabazar_Square';
1476
+ }
1477
+
1478
+ interface String {
1479
+ match<RE extends RegExp>(regexp: RE): ReturnType<RE[typeof Symbol.match]>;
1480
+ matchAll<RE extends RegExp>(regexp: RE): ReturnType<RE[typeof Symbol.matchAll]>;
1481
+ }
1482
+ declare namespace $ {
1483
+ type Groups_to_params<T> = {
1484
+ [P in keyof T]?: T[P] | boolean | undefined;
1485
+ };
1486
+ export type $mol_regexp_source = number | string | RegExp | {
1487
+ [key in string]: $mol_regexp_source;
1488
+ } | readonly [$mol_regexp_source, ...$mol_regexp_source[]];
1489
+ export type $mol_regexp_groups<Source extends $mol_regexp_source> = Source extends number ? {} : Source extends string ? {} : Source extends $mol_regexp_source[] ? $mol_type_merge<$mol_type_intersect<{
1490
+ [key in Extract<keyof Source, number>]: $mol_regexp_groups<Source[key]>;
1491
+ }[Extract<keyof Source, number>]>> : Source extends RegExp ? Record<string, string> extends NonNullable<NonNullable<ReturnType<Source['exec']>>['groups']> ? {} : NonNullable<NonNullable<ReturnType<Source['exec']>>['groups']> : Source extends {
1492
+ readonly [key in string]: $mol_regexp_source;
1493
+ } ? $mol_type_merge<$mol_type_intersect<{
1494
+ [key in keyof Source]: $mol_type_merge<$mol_type_override<{
1495
+ readonly [k in Extract<keyof Source, string>]: string;
1496
+ }, {
1497
+ readonly [k in key]: Source[key] extends string ? Source[key] : string;
1498
+ }> & $mol_regexp_groups<Source[key]>>;
1499
+ }[keyof Source]>> : never;
1500
+ export class $mol_regexp<Groups extends Record<string, string>> extends RegExp {
1501
+ readonly groups: (Extract<keyof Groups, string>)[];
1502
+ constructor(source: string, flags?: string, groups?: (Extract<keyof Groups, string>)[]);
1503
+ [Symbol.matchAll](str: string): RegExpStringIterator<RegExpExecArray & $mol_type_override<RegExpExecArray, {
1504
+ groups?: {
1505
+ [key in keyof Groups]: string;
1506
+ };
1507
+ }>>;
1508
+ [Symbol.match](str: string): null | RegExpMatchArray;
1509
+ [Symbol.split](str: string): string[];
1510
+ test(str: string): boolean;
1511
+ exec(str: string): RegExpExecArray & $mol_type_override<RegExpExecArray, {
1512
+ groups?: {
1513
+ [key in keyof Groups]: string;
1514
+ };
1515
+ }> | null;
1516
+ generate(params: Groups_to_params<Groups>): string | null;
1517
+ get native(): RegExp;
1518
+ static separated<Chunk extends $mol_regexp_source, Sep extends $mol_regexp_source>(chunk: Chunk, sep: Sep): $mol_regexp<[$mol_regexp<[[Chunk], Sep] extends infer T ? T extends [[Chunk], Sep] ? T extends $mol_regexp_source[] ? $mol_type_merge<$mol_type_intersect<{ [key in Extract<keyof T, number>]: $mol_regexp_groups<T[key]>; }[Extract<keyof T, number>]>> : T extends RegExp ? Record<string, string> extends NonNullable<NonNullable<ReturnType<T["exec"]>>["groups"]> ? {} : NonNullable<NonNullable<ReturnType<T["exec"]>>["groups"]> : T extends {
1519
+ readonly [x: string]: $mol_regexp_source;
1520
+ } ? $mol_type_merge<$mol_type_intersect<{ [key_1 in keyof T]: $mol_type_merge<Omit<{ readonly [k in Extract<keyof T, string>]: string; }, key_1> & { readonly [k_1 in key_1]: T[key_1] extends string ? T[key_1] : string; } & $mol_regexp_groups<T[key_1]>>; }[keyof T]>> : never : never : never>, Chunk] extends infer T_1 ? T_1 extends [$mol_regexp<[[Chunk], Sep] extends infer T_2 ? T_2 extends [[Chunk], Sep] ? T_2 extends $mol_regexp_source[] ? $mol_type_merge<$mol_type_intersect<{ [key_4 in Extract<keyof T_2, number>]: $mol_regexp_groups<T_2[key_4]>; }[Extract<keyof T_2, number>]>> : T_2 extends RegExp ? Record<string, string> extends NonNullable<NonNullable<ReturnType<T_2["exec"]>>["groups"]> ? {} : NonNullable<NonNullable<ReturnType<T_2["exec"]>>["groups"]> : T_2 extends {
1521
+ readonly [x: string]: $mol_regexp_source;
1522
+ } ? $mol_type_merge<$mol_type_intersect<{ [key_5 in keyof T_2]: $mol_type_merge<Omit<{ readonly [k in Extract<keyof T_2, string>]: string; }, key_5> & { readonly [k_1 in key_5]: T_2[key_5] extends string ? T_2[key_5] : string; } & $mol_regexp_groups<T_2[key_5]>>; }[keyof T_2]>> : never : never : never>, Chunk] ? T_1 extends $mol_regexp_source[] ? $mol_type_merge<$mol_type_intersect<{ [key_2 in Extract<keyof T_1, number>]: $mol_regexp_groups<T_1[key_2]>; }[Extract<keyof T_1, number>]>> : T_1 extends RegExp ? Record<string, string> extends NonNullable<NonNullable<ReturnType<T_1["exec"]>>["groups"]> ? {} : NonNullable<NonNullable<ReturnType<T_1["exec"]>>["groups"]> : T_1 extends {
1523
+ readonly [x: string]: $mol_regexp_source;
1524
+ } ? $mol_type_merge<$mol_type_intersect<{ [key_3 in keyof T_1]: $mol_type_merge<Omit<{ readonly [k in Extract<keyof T_1, string>]: string; }, key_3> & { readonly [k_1 in key_3]: T_1[key_3] extends string ? T_1[key_3] : string; } & $mol_regexp_groups<T_1[key_3]>>; }[keyof T_1]>> : never : never : never>;
1525
+ static repeat<Source extends $mol_regexp_source>(source: Source, min?: number, max?: number): $mol_regexp<$mol_regexp_groups<Source>>;
1526
+ static repeat_greedy<Source extends $mol_regexp_source>(source: Source, min?: number, max?: number): $mol_regexp<$mol_regexp_groups<Source>>;
1527
+ static vary<Sources extends readonly $mol_regexp_source[]>(sources: Sources, flags?: string): $mol_regexp<$mol_regexp_groups<Sources[number]>>;
1528
+ static optional<Source extends $mol_regexp_source>(source: Source): $mol_regexp<$mol_regexp_groups<Source>>;
1529
+ static force_after(source: $mol_regexp_source): $mol_regexp<Record<string, string>>;
1530
+ static forbid_after(source: $mol_regexp_source): $mol_regexp<Record<string, string>>;
1531
+ static from<Source extends $mol_regexp_source>(source: Source, { ignoreCase, multiline }?: Partial<Pick<RegExp, 'ignoreCase' | 'multiline'>>): $mol_regexp<$mol_regexp_groups<Source>>;
1532
+ static unicode_only(...category: $mol_unicode_category): $mol_regexp<Record<string, string>>;
1533
+ static unicode_except(...category: $mol_unicode_category): $mol_regexp<Record<string, string>>;
1534
+ static char_range(from: number, to: number): $mol_regexp<{}>;
1535
+ static char_only(...allowed: readonly [$mol_regexp_source, ...$mol_regexp_source[]]): $mol_regexp<{}>;
1536
+ static char_except(...forbidden: readonly [$mol_regexp_source, ...$mol_regexp_source[]]): $mol_regexp<{}>;
1537
+ static decimal_only: $mol_regexp<{}>;
1538
+ static decimal_except: $mol_regexp<{}>;
1539
+ static latin_only: $mol_regexp<{}>;
1540
+ static latin_except: $mol_regexp<{}>;
1541
+ static space_only: $mol_regexp<{}>;
1542
+ static space_except: $mol_regexp<{}>;
1543
+ static word_break_only: $mol_regexp<{}>;
1544
+ static word_break_except: $mol_regexp<{}>;
1545
+ static tab: $mol_regexp<{}>;
1546
+ static slash_back: $mol_regexp<{}>;
1547
+ static nul: $mol_regexp<{}>;
1548
+ static char_any: $mol_regexp<{}>;
1549
+ static begin: $mol_regexp<{}>;
1550
+ static end: $mol_regexp<{}>;
1551
+ static or: $mol_regexp<{}>;
1552
+ static line_end: $mol_regexp<{
1553
+ readonly win_end: string;
1554
+ readonly mac_end: string;
1555
+ }>;
1556
+ }
1557
+ export {};
1558
+ }
1559
+
1560
+ declare namespace $ {
1561
+ type $mol_type_enforce<Actual extends Expected, Expected> = Actual;
1562
+ }
1563
+
22
1564
  declare namespace $ {
23
1565
 
24
1566
  type $mol_paragraph__sub_mol_dimmer_1 = $mol_type_enforce<
@@ -44,6 +1586,62 @@ declare namespace $ {
44
1586
  }
45
1587
 
46
1588
  //# sourceMappingURL=dimmer.view.tree.d.ts.map
1589
+ declare namespace $.$$ {
1590
+ class $mol_dimmer extends $.$mol_dimmer {
1591
+ parts(): any[];
1592
+ strings(): string[];
1593
+ string(index: number): string;
1594
+ view_find(check: (path: $mol_view, text?: string) => boolean, path?: $mol_view[]): Generator<$mol_view[]>;
1595
+ }
1596
+ }
1597
+
1598
+ declare namespace $ {
1599
+ }
1600
+
1601
+ declare namespace $ {
1602
+ type $mol_style_pseudo_class = ':active' | ':any' | ':any-link' | ':checked' | ':default' | ':defined' | ':dir(rtl)' | ':dir(ltr)' | ':disabled' | ':empty' | ':enabled' | ':first' | ':first-child' | ':first-of-type' | ':fullscreen' | ':focus' | ':focus-visible' | ':focus-within' | ':hover' | ':indeterminate' | ':in-range' | ':invalid' | ':last-child' | ':last-of-type' | ':left' | ':link' | `:not(${string})` | `:nth-child(${string})` | `:nth-last-child(${string})` | `:nth-of-type(${string})` | `:nth-last-of-type(${string})` | ':only-child' | ':only-of-type' | ':optional' | ':out-of-range' | ':placeholder-shown' | ':read-only' | ':read-write' | ':required' | ':right' | ':root' | ':scope' | ':target' | ':valid' | ':visited';
1603
+ }
1604
+
1605
+ declare namespace $ {
1606
+ type $mol_style_pseudo_element = '::after' | '::before' | '::cue' | '::first-letter' | '::first-line' | '::selection' | '::slotted' | '::backdrop' | '::placeholder' | '::marker' | '::spelling-error' | '::grammar-error' | '::-webkit-calendar-picker-indicator' | '::-webkit-color-swatch' | '::-webkit-color-swatch-wrapper' | '::-webkit-details-marker' | '::-webkit-file-upload-button' | '::-webkit-image-inner-element' | '::-webkit-inner-spin-button' | '::-webkit-input-placeholder' | '::-webkit-input-speech-button' | '::-webkit-keygen-select' | '::-webkit-media-controls-panel' | '::-webkit-media-controls-timeline-container' | '::-webkit-media-slider-container' | '::-webkit-meter-bar' | '::-webkit-meter-even-less-good-value' | '::-webkit-meter-optimum-value' | '::-webkit-meter-suboptimal-value' | '::-webkit-progress-bar' | '::-webkit-progress-value' | '::-webkit-resizer' | '::-webkit-resizer:window-inactive' | '::-webkit-scrollbar' | '::-webkit-scrollbar-button' | '::-webkit-scrollbar-button:disabled' | '::-webkit-scrollbar-button:double-button:horizontal:end:decrement' | '::-webkit-scrollbar-button:double-button:horizontal:end:increment' | '::-webkit-scrollbar-button:double-button:horizontal:end:increment:corner-present' | '::-webkit-scrollbar-button:double-button:horizontal:start:decrement' | '::-webkit-scrollbar-button:double-button:horizontal:start:increment' | '::-webkit-scrollbar-button:double-button:vertical:end:decrement' | '::-webkit-scrollbar-button:double-button:vertical:end:increment' | '::-webkit-scrollbar-button:double-button:vertical:end:increment:corner-present' | '::-webkit-scrollbar-button:double-button:vertical:start:decrement' | '::-webkit-scrollbar-button:double-button:vertical:start:increment' | '::-webkit-scrollbar-button:end' | '::-webkit-scrollbar-button:end:decrement' | '::-webkit-scrollbar-button:end:increment' | '::-webkit-scrollbar-button:horizontal' | '::-webkit-scrollbar-button:horizontal:decrement' | '::-webkit-scrollbar-button:horizontal:decrement:active' | '::-webkit-scrollbar-button:horizontal:decrement:hover' | '::-webkit-scrollbar-button:horizontal:decrement:window-inactive' | '::-webkit-scrollbar-button:horizontal:end' | '::-webkit-scrollbar-button:horizontal:end:decrement' | '::-webkit-scrollbar-button:horizontal:end:increment' | '::-webkit-scrollbar-button:horizontal:end:increment:corner-present' | '::-webkit-scrollbar-button:horizontal:increment' | '::-webkit-scrollbar-button:horizontal:increment:active' | '::-webkit-scrollbar-button:horizontal:increment:hover' | '::-webkit-scrollbar-button:horizontal:increment:window-inactive' | '::-webkit-scrollbar-button:horizontal:start' | '::-webkit-scrollbar-button:horizontal:start:decrement' | '::-webkit-scrollbar-button:horizontal:start:increment' | '::-webkit-scrollbar-button:start' | '::-webkit-scrollbar-button:start:decrement' | '::-webkit-scrollbar-button:start:increment' | '::-webkit-scrollbar-button:vertical' | '::-webkit-scrollbar-button:vertical:decrement' | '::-webkit-scrollbar-button:vertical:decrement:active' | '::-webkit-scrollbar-button:vertical:decrement:hover' | '::-webkit-scrollbar-button:vertical:decrement:window-inactive' | '::-webkit-scrollbar-button:vertical:end' | '::-webkit-scrollbar-button:vertical:end:decrement' | '::-webkit-scrollbar-button:vertical:end:increment' | '::-webkit-scrollbar-button:vertical:end:increment:corner-present' | '::-webkit-scrollbar-button:vertical:increment' | '::-webkit-scrollbar-button:vertical:increment:active' | '::-webkit-scrollbar-button:vertical:increment:hover' | '::-webkit-scrollbar-button:vertical:increment:window-inactive' | '::-webkit-scrollbar-button:vertical:start' | '::-webkit-scrollbar-button:vertical:start:decrement' | '::-webkit-scrollbar-button:vertical:start:increment' | '::-webkit-scrollbar-corner' | '::-webkit-scrollbar-corner:window-inactive' | '::-webkit-scrollbar-thumb' | '::-webkit-scrollbar-thumb:horizontal' | '::-webkit-scrollbar-thumb:horizontal:active' | '::-webkit-scrollbar-thumb:horizontal:hover' | '::-webkit-scrollbar-thumb:horizontal:window-inactive' | '::-webkit-scrollbar-thumb:vertical' | '::-webkit-scrollbar-thumb:vertical:active' | '::-webkit-scrollbar-thumb:vertical:hover' | '::-webkit-scrollbar-thumb:vertical:window-inactive' | '::-webkit-scrollbar-track' | '::-webkit-scrollbar-track-piece' | '::-webkit-scrollbar-track-piece:disabled' | '::-webkit-scrollbar-track-piece:end' | '::-webkit-scrollbar-track-piece:horizontal:decrement' | '::-webkit-scrollbar-track-piece:horizontal:decrement:active' | '::-webkit-scrollbar-track-piece:horizontal:decrement:hover' | '::-webkit-scrollbar-track-piece:horizontal:end' | '::-webkit-scrollbar-track-piece:horizontal:end:corner-present' | '::-webkit-scrollbar-track-piece:horizontal:end:double-button' | '::-webkit-scrollbar-track-piece:horizontal:end:no-button' | '::-webkit-scrollbar-track-piece:horizontal:end:no-button:corner-present' | '::-webkit-scrollbar-track-piece:horizontal:end:single-button' | '::-webkit-scrollbar-track-piece:horizontal:increment' | '::-webkit-scrollbar-track-piece:horizontal:increment:active' | '::-webkit-scrollbar-track-piece:horizontal:increment:hover' | '::-webkit-scrollbar-track-piece:horizontal:start' | '::-webkit-scrollbar-track-piece:horizontal:start:double-button' | '::-webkit-scrollbar-track-piece:horizontal:start:no-button' | '::-webkit-scrollbar-track-piece:horizontal:start:single-button' | '::-webkit-scrollbar-track-piece:start' | '::-webkit-scrollbar-track-piece:vertical:decrement' | '::-webkit-scrollbar-track-piece:vertical:decrement:active' | '::-webkit-scrollbar-track-piece:vertical:decrement:hover' | '::-webkit-scrollbar-track-piece:vertical:end' | '::-webkit-scrollbar-track-piece:vertical:end:corner-present' | '::-webkit-scrollbar-track-piece:vertical:end:double-button' | '::-webkit-scrollbar-track-piece:vertical:end:no-button' | '::-webkit-scrollbar-track-piece:vertical:end:no-button:corner-present' | '::-webkit-scrollbar-track-piece:vertical:end:single-button' | '::-webkit-scrollbar-track-piece:vertical:increment' | '::-webkit-scrollbar-track-piece:vertical:increment:active' | '::-webkit-scrollbar-track-piece:vertical:increment:hover' | '::-webkit-scrollbar-track-piece:vertical:start' | '::-webkit-scrollbar-track-piece:vertical:start:double-button' | '::-webkit-scrollbar-track-piece:vertical:start:no-button' | '::-webkit-scrollbar-track-piece:vertical:start:single-button' | '::-webkit-scrollbar-track:disabled' | '::-webkit-scrollbar-track:horizontal' | '::-webkit-scrollbar-track:horizontal:disabled' | '::-webkit-scrollbar-track:horizontal:disabled:corner-present' | '::-webkit-scrollbar-track:vertical:disabled' | '::-webkit-scrollbar-track:vertical:disabled:corner-present' | '::-webkit-scrollbar:horizontal' | '::-webkit-scrollbar:horizontal:corner-present' | '::-webkit-scrollbar:horizontal:window-inactive' | '::-webkit-scrollbar:vertical' | '::-webkit-scrollbar:vertical:corner-present' | '::-webkit-scrollbar:vertical:window-inactive' | '::-webkit-search-cancel-button' | '::-webkit-search-decoration' | '::-webkit-search-results-button' | '::-webkit-search-results-decoration' | '::-webkit-slider-container' | '::-webkit-slider-runnable-track' | '::-webkit-slider-thumb' | '::-webkit-slider-thumb:disabled' | '::-webkit-slider-thumb:hover' | '::-webkit-textfield-decoration-container' | '::-webkit-validation-bubble' | '::-webkit-validation-bubble-arrow' | '::-webkit-validation-bubble-arrow-clipper' | '::-webkit-validation-bubble-heading' | '::-webkit-validation-bubble-message' | '::-webkit-validation-bubble-text-block';
1607
+ }
1608
+
1609
+ declare namespace $ {
1610
+ type $mol_type_error<Message, Info = {}> = Message & {
1611
+ $mol_type_error: Info;
1612
+ };
1613
+ }
1614
+
1615
+ declare namespace $ {
1616
+ type Attrs<View extends $mol_view, Config, Attrs = ReturnType<View['attr']>> = {
1617
+ [name in keyof Attrs]?: {
1618
+ [val in keyof Config[Extract<name, keyof Config>]]: $mol_style_guard<View, Config[Extract<name, keyof Config>][val]>;
1619
+ };
1620
+ };
1621
+ type Medias<View extends $mol_view, Config> = {
1622
+ [query in keyof Config]: $mol_style_guard<View, Config[query]>;
1623
+ };
1624
+ type Keys<View extends $mol_view> = '>' | '@' | keyof $mol_style_properties | $mol_style_pseudo_element | $mol_style_pseudo_class | $mol_type_keys_extract<View, () => $mol_view> | `$${string}`;
1625
+ export type $mol_style_guard<View extends $mol_view, Config> = {
1626
+ [key in Keys<View>]?: unknown;
1627
+ } & $mol_style_properties & {
1628
+ [key in keyof Config]: key extends keyof $mol_style_properties ? $mol_style_properties[key] : key extends '>' | $mol_style_pseudo_class | $mol_style_pseudo_element ? $mol_style_guard<View, Config[key]> : key extends '@' ? Attrs<View, Config[key]> : key extends ('@media' | '@container') ? Medias<View, Config[key]> : key extends '@starting-style' ? $mol_style_guard<View, Config[key]> : key extends `[${string}]` ? {
1629
+ [val in keyof Config[key]]: $mol_style_guard<View, Config[key][val]>;
1630
+ } : key extends `--${string}` ? any : key extends keyof $ ? $mol_style_guard<InstanceType<Extract<$[key], typeof $mol_view>>, Config[key]> : key extends keyof View ? View[key] extends (id?: any) => infer Sub ? Sub extends $mol_view ? $mol_style_guard<Sub, Config[key]> : $mol_type_error<'Property returns non $mol_view', {
1631
+ Returns: Sub;
1632
+ }> : $mol_type_error<'Field is not a Property'> : key extends `$${string}` ? $mol_type_error<'Unknown View Class'> : $mol_type_error<'Unknown CSS Property'>;
1633
+ };
1634
+ export {};
1635
+ }
1636
+
1637
+ declare namespace $ {
1638
+ function $mol_style_sheet<Component extends $mol_view, Config extends $mol_style_guard<Component, Config>>(Component: new () => Component, config0: Config): string;
1639
+ }
1640
+
1641
+ declare namespace $ {
1642
+ function $mol_style_define<Component extends $mol_view, Config extends $mol_style_guard<Component, Config>>(Component: new () => Component, config: Config): HTMLStyleElement | null;
1643
+ }
1644
+
47
1645
  declare namespace $ {
48
1646
 
49
1647
  export class $mol_text_code_token extends $mol_dimmer {
@@ -66,6 +1664,73 @@ declare namespace $ {
66
1664
  }
67
1665
 
68
1666
  //# sourceMappingURL=token.view.tree.d.ts.map
1667
+ declare namespace $.$$ {
1668
+ }
1669
+
1670
+ declare namespace $ {
1671
+ class $mol_syntax2<Lexems extends {
1672
+ [name: string]: RegExp;
1673
+ } = {}> {
1674
+ lexems: Lexems;
1675
+ constructor(lexems: Lexems);
1676
+ rules: Array<{
1677
+ regExp: RegExp;
1678
+ name: string;
1679
+ size: number;
1680
+ }>;
1681
+ regexp: RegExp;
1682
+ tokenize(text: string, handle: (name: string, found: string, chunks: string[], offset: number) => void): void;
1683
+ parse(text: string, handlers: {
1684
+ [key in keyof Lexems | '']: (found: string, chunks: string[], offset: number) => void;
1685
+ }): void;
1686
+ }
1687
+ }
1688
+
1689
+ declare namespace $ {
1690
+ var $mol_syntax2_md_flow: $mol_syntax2<{
1691
+ quote: RegExp;
1692
+ spoiler: RegExp;
1693
+ header: RegExp;
1694
+ list: RegExp;
1695
+ code: RegExp;
1696
+ 'code-indent': RegExp;
1697
+ table: RegExp;
1698
+ grid: RegExp;
1699
+ cut: RegExp;
1700
+ block: RegExp;
1701
+ }>;
1702
+ var $mol_syntax2_md_line: $mol_syntax2<{
1703
+ strong: RegExp;
1704
+ emphasis: RegExp;
1705
+ code: RegExp;
1706
+ insert: RegExp;
1707
+ delete: RegExp;
1708
+ embed: RegExp;
1709
+ link: RegExp;
1710
+ 'image-link': RegExp;
1711
+ 'text-link': RegExp;
1712
+ 'text-link-http': RegExp;
1713
+ }>;
1714
+ const $mol_syntax2_md_code: $mol_syntax2<{
1715
+ 'code-indent': RegExp;
1716
+ 'code-docs': RegExp;
1717
+ 'code-comment-block': RegExp;
1718
+ 'code-link': RegExp;
1719
+ 'code-comment-inline': RegExp;
1720
+ 'code-string': RegExp;
1721
+ 'code-number': RegExp;
1722
+ 'code-call': RegExp;
1723
+ 'code-sexpr': RegExp;
1724
+ 'code-field': RegExp;
1725
+ 'code-keyword': RegExp;
1726
+ 'code-global': RegExp;
1727
+ 'code-word': RegExp;
1728
+ 'code-decorator': RegExp;
1729
+ 'code-tag': RegExp;
1730
+ 'code-punctuation': RegExp;
1731
+ }>;
1732
+ }
1733
+
69
1734
  declare namespace $ {
70
1735
 
71
1736
  type $mol_view__sub_mol_text_code_line_1 = $mol_type_enforce<
@@ -123,6 +1788,85 @@ declare namespace $ {
123
1788
  }
124
1789
 
125
1790
  //# sourceMappingURL=line.view.tree.d.ts.map
1791
+ declare namespace $.$$ {
1792
+ class $mol_text_code_line extends $.$mol_text_code_line {
1793
+ maximal_width(): number;
1794
+ syntax(): $mol_syntax2<{
1795
+ 'code-indent': RegExp;
1796
+ 'code-docs': RegExp;
1797
+ 'code-comment-block': RegExp;
1798
+ 'code-link': RegExp;
1799
+ 'code-comment-inline': RegExp;
1800
+ 'code-string': RegExp;
1801
+ 'code-number': RegExp;
1802
+ 'code-call': RegExp;
1803
+ 'code-sexpr': RegExp;
1804
+ 'code-field': RegExp;
1805
+ 'code-keyword': RegExp;
1806
+ 'code-global': RegExp;
1807
+ 'code-word': RegExp;
1808
+ 'code-decorator': RegExp;
1809
+ 'code-tag': RegExp;
1810
+ 'code-punctuation': RegExp;
1811
+ }>;
1812
+ tokens(path: number[]): Readonly<{
1813
+ name: string;
1814
+ found: string;
1815
+ chunks: string[];
1816
+ }[]>;
1817
+ sub(): (string | $mol_view)[];
1818
+ row_content(path: number[]): string[] | $mol_text_code_token[];
1819
+ Token(path: number[]): $mol_text_code_token;
1820
+ token_type(path: number[]): string;
1821
+ token_content(path: number[]): (string | $mol_text_code_token)[];
1822
+ token_text(path: number[]): string;
1823
+ token_uri(path: number[]): string;
1824
+ view_find(check: (path: $mol_view, text?: string) => boolean, path?: $mol_view[]): Generator<$mol_view[]>;
1825
+ find_pos(offset: number): {
1826
+ token: $mol_text_code_token;
1827
+ offset: number;
1828
+ } | null;
1829
+ find_token_pos([offset, ...path]: number[]): {
1830
+ token: $mol_text_code_token;
1831
+ offset: number;
1832
+ } | null;
1833
+ }
1834
+ }
1835
+
1836
+ declare namespace $.$$ {
1837
+ }
1838
+
1839
+ declare namespace $ {
1840
+ let $mol_mem_cached: typeof $mol_wire_probe;
1841
+ }
1842
+
1843
+ declare namespace $ {
1844
+ function $mol_support_css_overflow_anchor(this: $): boolean;
1845
+ }
1846
+
1847
+ declare namespace $ {
1848
+ class $mol_dom_listener extends $mol_object {
1849
+ _node: any;
1850
+ _event: string;
1851
+ _handler: (event: any) => any;
1852
+ _config: boolean | {
1853
+ passive: boolean;
1854
+ };
1855
+ constructor(_node: any, _event: string, _handler: (event: any) => any, _config?: boolean | {
1856
+ passive: boolean;
1857
+ });
1858
+ destructor(): void;
1859
+ }
1860
+ }
1861
+
1862
+ declare namespace $ {
1863
+ class $mol_print extends $mol_object {
1864
+ static before(): $mol_dom_listener;
1865
+ static after(): $mol_dom_listener;
1866
+ static active(next?: boolean): boolean;
1867
+ }
1868
+ }
1869
+
126
1870
  declare namespace $ {
127
1871
 
128
1872
  type $mol_view__style_mol_list_1 = $mol_type_enforce<
@@ -158,6 +1902,35 @@ declare namespace $ {
158
1902
  }
159
1903
 
160
1904
  //# sourceMappingURL=list.view.tree.d.ts.map
1905
+ declare namespace $.$$ {
1906
+ class $mol_list extends $.$mol_list {
1907
+ sub(): readonly $mol_view[];
1908
+ render_visible_only(): boolean;
1909
+ view_window(next?: [number, number]): [number, number];
1910
+ item_height_min(index: number): number;
1911
+ row_width_min(index: number): number;
1912
+ gap_before(): number;
1913
+ gap_after(): number;
1914
+ sub_visible(): $mol_view[];
1915
+ minimal_height(): number;
1916
+ minimal_width(): number;
1917
+ force_render(path: Set<$mol_view>): void;
1918
+ }
1919
+ }
1920
+
1921
+ declare namespace $ {
1922
+ }
1923
+
1924
+ declare namespace $ {
1925
+ let $mol_layer: Record<"float" | "hover" | "focus" | "speck" | "popup", $mol_style_func<"var", unknown>>;
1926
+ }
1927
+
1928
+ declare namespace $ {
1929
+ }
1930
+
1931
+ declare namespace $ {
1932
+ }
1933
+
161
1934
  declare namespace $ {
162
1935
 
163
1936
  export class $mol_speck extends $mol_view {
@@ -209,6 +1982,24 @@ declare namespace $ {
209
1982
  }
210
1983
 
211
1984
  //# sourceMappingURL=button.view.tree.d.ts.map
1985
+ declare namespace $.$$ {
1986
+ class $mol_button extends $.$mol_button {
1987
+ disabled(): boolean;
1988
+ event_activate(next: Event): void;
1989
+ event_key_press(event: KeyboardEvent): any;
1990
+ tab_index(): number;
1991
+ error(): string;
1992
+ hint_safe(): string;
1993
+ sub_visible(): ($mol_view_content | $mol_speck)[];
1994
+ }
1995
+ }
1996
+
1997
+ declare namespace $ {
1998
+ }
1999
+
2000
+ declare namespace $ {
2001
+ }
2002
+
212
2003
  declare namespace $ {
213
2004
 
214
2005
  export class $mol_button_typed extends $mol_button {
@@ -219,6 +2010,9 @@ declare namespace $ {
219
2010
  }
220
2011
 
221
2012
  //# sourceMappingURL=typed.view.tree.d.ts.map
2013
+ declare namespace $ {
2014
+ }
2015
+
222
2016
  declare namespace $ {
223
2017
 
224
2018
  export class $mol_button_minor extends $mol_button_typed {
@@ -227,6 +2021,23 @@ declare namespace $ {
227
2021
  }
228
2022
 
229
2023
  //# sourceMappingURL=minor.view.tree.d.ts.map
2024
+ declare var $node: any;
2025
+
2026
+ declare namespace $ {
2027
+ type $mol_blob = Blob;
2028
+ let $mol_blob: {
2029
+ prototype: Blob;
2030
+ new (blobParts?: readonly BlobPart[], options?: BlobPropertyBag): Blob;
2031
+ };
2032
+ }
2033
+
2034
+ declare namespace $ {
2035
+ class $mol_state_time extends $mol_object {
2036
+ static task(precision: number, reset?: null): $mol_after_timeout | $mol_after_frame;
2037
+ static now(precision: number): number;
2038
+ }
2039
+ }
2040
+
230
2041
  declare namespace $ {
231
2042
 
232
2043
  export class $mol_svg extends $mol_view {
@@ -240,6 +2051,17 @@ declare namespace $ {
240
2051
  }
241
2052
 
242
2053
  //# sourceMappingURL=svg.view.tree.d.ts.map
2054
+ declare namespace $.$$ {
2055
+ class $mol_svg extends $.$mol_svg {
2056
+ computed_style(): Record<string, any>;
2057
+ font_size(): number;
2058
+ font_family(): any;
2059
+ }
2060
+ }
2061
+
2062
+ declare namespace $ {
2063
+ }
2064
+
243
2065
  declare namespace $ {
244
2066
 
245
2067
  export class $mol_svg_root extends $mol_svg {
@@ -268,6 +2090,9 @@ declare namespace $ {
268
2090
  }
269
2091
 
270
2092
  //# sourceMappingURL=path.view.tree.d.ts.map
2093
+ declare namespace $ {
2094
+ }
2095
+
271
2096
  declare namespace $ {
272
2097
 
273
2098
  type $mol_svg_path__geometry_mol_icon_1 = $mol_type_enforce<
@@ -305,6 +2130,21 @@ declare namespace $ {
305
2130
  }
306
2131
 
307
2132
  //# sourceMappingURL=outline.view.tree.d.ts.map
2133
+ declare namespace $ {
2134
+ function $mol_html_encode(text: string): string;
2135
+ }
2136
+
2137
+ declare namespace $ {
2138
+ export function $mol_wire_sync<Host extends object>(obj: Host): ObjectOrFunctionResultAwaited<Host>;
2139
+ type FunctionResultAwaited<Some> = Some extends (...args: infer Args) => infer Res ? (...args: Args) => Awaited<Res> : Some;
2140
+ type ConstructorResultAwaited<Some> = Some extends new (...args: infer Args) => infer Res ? new (...args: Args) => Res : {};
2141
+ type MethodsResultAwaited<Host extends Object> = {
2142
+ [K in keyof Host]: FunctionResultAwaited<Host[K]>;
2143
+ };
2144
+ type ObjectOrFunctionResultAwaited<Some> = (Some extends (...args: any) => unknown ? FunctionResultAwaited<Some> : {}) & (Some extends Object ? MethodsResultAwaited<Some> & ConstructorResultAwaited<Some> : Some);
2145
+ export {};
2146
+ }
2147
+
308
2148
  declare namespace $ {
309
2149
 
310
2150
  type $mol_blob__mol_button_copy_1 = $mol_type_enforce<
@@ -336,6 +2176,356 @@ declare namespace $ {
336
2176
  }
337
2177
 
338
2178
  //# sourceMappingURL=copy.view.tree.d.ts.map
2179
+ declare namespace $.$$ {
2180
+ class $mol_button_copy extends $.$mol_button_copy {
2181
+ data(): {
2182
+ [k: string]: Blob;
2183
+ };
2184
+ html(): string;
2185
+ attachments(): ClipboardItem[];
2186
+ click(event?: Event): void;
2187
+ }
2188
+ }
2189
+
2190
+ declare namespace $ {
2191
+ let $mol_mem_persist: typeof $mol_wire_solid;
2192
+ }
2193
+
2194
+ declare namespace $ {
2195
+ function $mol_wait_user_async(this: $): Promise<unknown>;
2196
+ function $mol_wait_user(this: $): unknown;
2197
+ }
2198
+
2199
+ declare namespace $ {
2200
+ class $mol_storage extends $mol_object2 {
2201
+ static native(): StorageManager;
2202
+ static persisted(next?: boolean, cache?: 'cache'): boolean;
2203
+ static estimate(): StorageEstimate;
2204
+ static dir(): FileSystemDirectoryHandle;
2205
+ }
2206
+ }
2207
+
2208
+ declare namespace $ {
2209
+ class $mol_state_local<Value> extends $mol_object {
2210
+ static 'native()': Pick<Storage, 'getItem' | 'setItem' | 'removeItem'>;
2211
+ static native(): Storage | {
2212
+ getItem(key: string): any;
2213
+ setItem(key: string, value: string): void;
2214
+ removeItem(key: string): void;
2215
+ };
2216
+ static changes(next?: StorageEvent): StorageEvent | undefined;
2217
+ static value<Value>(key: string, next?: Value | null): Value | null;
2218
+ prefix(): string;
2219
+ value(key: string, next?: Value): Value | null;
2220
+ }
2221
+ }
2222
+
2223
+ declare namespace $ {
2224
+ }
2225
+
2226
+ declare namespace $ {
2227
+ let $mol_action: typeof $mol_wire_method;
2228
+ }
2229
+
2230
+ declare namespace $ {
2231
+ class $mol_lock extends $mol_object {
2232
+ protected promise: null | Promise<void>;
2233
+ wait(): Promise<() => void>;
2234
+ grab(): () => void;
2235
+ }
2236
+ }
2237
+
2238
+ declare namespace $ {
2239
+ function $mol_compare_array<Value extends ArrayLike<unknown>>(a: Value, b: Value): boolean;
2240
+ }
2241
+
2242
+ declare namespace $ {
2243
+ type $mol_charset_encoding = 'utf8' | 'utf-16le' | 'utf-16be' | 'ibm866' | 'iso-8859-2' | 'iso-8859-3' | 'iso-8859-4' | 'iso-8859-5' | 'iso-8859-6' | 'iso-8859-7' | 'iso-8859-8' | 'iso-8859-8i' | 'iso-8859-10' | 'iso-8859-13' | 'iso-8859-14' | 'iso-8859-15' | 'iso-8859-16' | 'koi8-r' | 'koi8-u' | 'koi8-r' | 'macintosh' | 'windows-874' | 'windows-1250' | 'windows-1251' | 'windows-1252' | 'windows-1253' | 'windows-1254' | 'windows-1255' | 'windows-1256' | 'windows-1257' | 'windows-1258' | 'x-mac-cyrillic' | 'gbk' | 'gb18030' | 'hz-gb-2312' | 'big5' | 'euc-jp' | 'iso-2022-jp' | 'shift-jis' | 'euc-kr' | 'iso-2022-kr';
2244
+ }
2245
+
2246
+ declare namespace $ {
2247
+ function $mol_charset_decode(buffer: AllowSharedBufferSource, encoding?: $mol_charset_encoding): string;
2248
+ }
2249
+
2250
+ declare namespace $ {
2251
+ function $mol_charset_buffer(size: number): Uint8Array<ArrayBuffer>;
2252
+ }
2253
+
2254
+ declare namespace $ {
2255
+ function $mol_charset_encode(str: string): Uint8Array<ArrayBuffer>;
2256
+ function $mol_charset_encode_to(str: string, buf: Uint8Array<ArrayBuffer>, from?: number): number;
2257
+ function $mol_charset_encode_size(str: string): number;
2258
+ }
2259
+
2260
+ declare namespace $ {
2261
+ type $mol_file_transaction_mode = 'create' | 'exists_truncate' | 'exists_fail' | 'read_only' | 'write_only' | 'read_write' | 'append';
2262
+ type $mol_file_transaction_buffer = ArrayBufferView;
2263
+ class $mol_file_transaction extends $mol_object {
2264
+ path(): string;
2265
+ modes(): readonly $mol_file_transaction_mode[];
2266
+ write(options: {
2267
+ buffer: ArrayBufferView | string | readonly ArrayBufferView[];
2268
+ offset?: number | null;
2269
+ length?: number | null;
2270
+ position?: number | null;
2271
+ }): number;
2272
+ read(): Uint8Array<ArrayBuffer>;
2273
+ truncate(size: number): void;
2274
+ flush(): void;
2275
+ close(): void;
2276
+ destructor(): void;
2277
+ }
2278
+ }
2279
+
2280
+ declare namespace $ {
2281
+ class $mol_file_base extends $mol_object {
2282
+ static absolute<This extends typeof $mol_file_base>(this: This, path: string): InstanceType<This>;
2283
+ static relative<This extends typeof $mol_file_base>(this: This, path: string): InstanceType<This>;
2284
+ static base: string;
2285
+ path(): string;
2286
+ parent(): this;
2287
+ exists_cut(): boolean;
2288
+ protected root(): boolean;
2289
+ protected stat(next?: $mol_file_stat | null, virt?: 'virt'): $mol_file_stat | null;
2290
+ protected static changed: Set<$mol_file_base>;
2291
+ protected static frame: null | $mol_after_timeout;
2292
+ protected static changed_add(type: 'change' | 'rename', path: string): void;
2293
+ static watch_debounce(): number;
2294
+ static flush(): void;
2295
+ protected static watching: boolean;
2296
+ protected static lock: $mol_lock;
2297
+ protected static watch_off(path: string): void;
2298
+ static unwatched<Result>(side_effect: () => Result, affected_dir: string): Result;
2299
+ reset(): void;
2300
+ modified(): Date | null;
2301
+ version(): string;
2302
+ protected info(path: string): null | $mol_file_stat;
2303
+ protected ensure(): void;
2304
+ protected drop(): void;
2305
+ protected copy(to: string): void;
2306
+ protected read(): Uint8Array<ArrayBuffer>;
2307
+ protected write(buffer: Uint8Array<ArrayBuffer>): void;
2308
+ protected kids(): readonly this[];
2309
+ readable(opts: {
2310
+ start?: number;
2311
+ end?: number;
2312
+ }): ReadableStream<Uint8Array<ArrayBuffer>>;
2313
+ writable(opts: {
2314
+ start?: number;
2315
+ }): WritableStream<Uint8Array<ArrayBuffer>>;
2316
+ buffer(next?: Uint8Array<ArrayBuffer>): Uint8Array<ArrayBuffer>;
2317
+ stat_make(size: number): {
2318
+ readonly type: "file";
2319
+ readonly size: number;
2320
+ readonly atime: Date;
2321
+ readonly mtime: Date;
2322
+ readonly ctime: Date;
2323
+ };
2324
+ clone(to: string): this | null;
2325
+ watcher(): {
2326
+ destructor(): void;
2327
+ };
2328
+ exists(next?: boolean): boolean;
2329
+ type(): "" | $mol_file_type;
2330
+ name(): string;
2331
+ ext(): string;
2332
+ text(next?: string, virt?: 'virt'): string;
2333
+ text_int(next?: string, virt?: 'virt'): string;
2334
+ sub(reset?: null): this[];
2335
+ resolve(path: string): this;
2336
+ relate(base?: $mol_file_base): string;
2337
+ find(include?: RegExp, exclude?: RegExp): this[];
2338
+ size(): number;
2339
+ toJSON(): string;
2340
+ open(...modes: readonly $mol_file_transaction_mode[]): $mol_file_transaction;
2341
+ }
2342
+ }
2343
+
2344
+ declare namespace $ {
2345
+ type $mol_file_type = 'file' | 'dir' | 'link';
2346
+ interface $mol_file_stat {
2347
+ type: $mol_file_type;
2348
+ size: number;
2349
+ atime: Date;
2350
+ mtime: Date;
2351
+ ctime: Date;
2352
+ }
2353
+ class $mol_file extends $mol_file_base {
2354
+ }
2355
+ }
2356
+
2357
+ declare namespace $ {
2358
+ enum $mol_rest_code {
2359
+ 'Continue' = 100,
2360
+ 'Switching protocols' = 101,
2361
+ 'Processing' = 102,
2362
+ 'OK' = 200,
2363
+ 'Created' = 201,
2364
+ 'Accepted' = 202,
2365
+ 'Non-Authoritative Information' = 203,
2366
+ 'No Content' = 204,
2367
+ 'Reset Content' = 205,
2368
+ 'Partial Content' = 206,
2369
+ 'Multi Status' = 207,
2370
+ 'Already Reported' = 208,
2371
+ 'IM Used' = 226,
2372
+ 'Multiple Choices' = 300,
2373
+ 'Moved Permanently' = 301,
2374
+ 'Found' = 302,
2375
+ 'See Other' = 303,
2376
+ 'Not Modified' = 304,
2377
+ 'Use Proxy' = 305,
2378
+ 'Temporary Redirect' = 307,
2379
+ 'Bad Request' = 400,
2380
+ 'Unauthorized' = 401,
2381
+ 'Payment Required' = 402,
2382
+ 'Forbidden' = 403,
2383
+ 'Not Found' = 404,
2384
+ 'Method Not Allowed' = 405,
2385
+ 'Not Acceptable' = 406,
2386
+ 'Proxy Authentication Required' = 407,
2387
+ 'Request Timeout' = 408,
2388
+ 'Conflict' = 409,
2389
+ 'Gone' = 410,
2390
+ 'Length Required' = 411,
2391
+ 'Precondition Failed' = 412,
2392
+ 'Request Entity Too Large' = 413,
2393
+ 'Request URI Too Long' = 414,
2394
+ 'Unsupported Media Type' = 415,
2395
+ 'Requested Range Not Satisfiable' = 416,
2396
+ 'Expectation Failed' = 417,
2397
+ 'Teapot' = 418,
2398
+ 'Unprocessable Entity' = 422,
2399
+ 'Locked' = 423,
2400
+ 'Failed Dependency' = 424,
2401
+ 'Upgrade Required' = 426,
2402
+ 'Precondition Required' = 428,
2403
+ 'Too Many Requests' = 429,
2404
+ 'Request Header Fields Too Large' = 431,
2405
+ 'Unavailable For Legal Reasons' = 451,
2406
+ 'Internal Server Error' = 500,
2407
+ 'Not Implemented' = 501,
2408
+ 'Bad Gateway' = 502,
2409
+ 'Service Unavailable' = 503,
2410
+ 'Gateway Timeout' = 504,
2411
+ 'HTTP Version Not Supported' = 505,
2412
+ 'Insufficient Storage' = 507,
2413
+ 'Loop Detected' = 508,
2414
+ 'Not Extended' = 510,
2415
+ 'Network Authentication Required' = 511,
2416
+ 'Network Read Timeout Error' = 598,
2417
+ 'Network Connect Timeout Error' = 599
2418
+ }
2419
+ }
2420
+
2421
+ declare namespace $ {
2422
+ class $mol_error_mix<Cause extends {} = {}> extends AggregateError {
2423
+ readonly cause: Cause;
2424
+ name: string;
2425
+ constructor(message: string, cause?: Cause, ...errors: readonly Error[]);
2426
+ static [Symbol.toPrimitive](): string;
2427
+ static toString(): string;
2428
+ static make(...params: ConstructorParameters<typeof $mol_error_mix>): $mol_error_mix<{}>;
2429
+ }
2430
+ }
2431
+
2432
+ declare namespace $ {
2433
+ function $mol_error_fence<Data>(task: () => Data, fallback: (parent: Error) => Error | Data | PromiseLike<Data>, loading?: (parent: PromiseLike<Data>) => Error | Data | PromiseLike<Data>): Data;
2434
+ }
2435
+
2436
+ declare namespace $ {
2437
+ function $mol_error_enriched<V>(cause: {}, cb: () => V): V;
2438
+ }
2439
+
2440
+ declare namespace $ {
2441
+ function $mol_dom_parse(text: string, type?: DOMParserSupportedType): Document;
2442
+ }
2443
+
2444
+ declare namespace $ {
2445
+ class $mol_fetch_response extends $mol_object {
2446
+ readonly native: Response;
2447
+ readonly request: $mol_fetch_request;
2448
+ status(): "success" | "unknown" | "inform" | "redirect" | "wrong" | "failed";
2449
+ code(): number;
2450
+ ok(): boolean;
2451
+ message(): string;
2452
+ headers(): Headers;
2453
+ mime(): string | null;
2454
+ stream(): ReadableStream<Uint8Array<ArrayBuffer>> | null;
2455
+ text(): string;
2456
+ json(): unknown;
2457
+ blob(): Blob;
2458
+ buffer(): ArrayBuffer;
2459
+ xml(): Document;
2460
+ xhtml(): Document;
2461
+ html(): Document;
2462
+ }
2463
+ class $mol_fetch_request extends $mol_object {
2464
+ readonly native: Request;
2465
+ response_async(): Promise<Response> & {
2466
+ destructor: () => void;
2467
+ };
2468
+ response(): $mol_fetch_response;
2469
+ success(): $mol_fetch_response;
2470
+ }
2471
+ class $mol_fetch extends $mol_object {
2472
+ static request(input: RequestInfo, init?: RequestInit): $mol_fetch_request;
2473
+ static response(input: RequestInfo, init?: RequestInit): $mol_fetch_response;
2474
+ static success(input: RequestInfo, init?: RequestInit): $mol_fetch_response;
2475
+ static stream(input: RequestInfo, init?: RequestInit): ReadableStream<Uint8Array<ArrayBuffer>> | null;
2476
+ static text(input: RequestInfo, init?: RequestInit): string;
2477
+ static json(input: RequestInfo, init?: RequestInit): unknown;
2478
+ static blob(input: RequestInfo, init?: RequestInit): Blob;
2479
+ static buffer(input: RequestInfo, init?: RequestInit): ArrayBuffer;
2480
+ static xml(input: RequestInfo, init?: RequestInit): Document;
2481
+ static xhtml(input: RequestInfo, init?: RequestInit): Document;
2482
+ static html(input: RequestInfo, init?: RequestInit): Document;
2483
+ }
2484
+ }
2485
+
2486
+ declare namespace $ {
2487
+ class $mol_file_webdav extends $mol_file_base {
2488
+ static relative<This extends typeof $mol_file>(this: This, path: string): InstanceType<This>;
2489
+ resolve(path: string): this;
2490
+ static headers(): Record<string, string>;
2491
+ headers(): Record<string, string>;
2492
+ protected fetch(init: RequestInit): $mol_fetch_response;
2493
+ protected read(): Uint8Array<ArrayBuffer>;
2494
+ protected write(body: Uint8Array<ArrayBuffer>): void;
2495
+ protected ensure(): void;
2496
+ protected drop(): void;
2497
+ protected copy(to: string): void;
2498
+ protected kids(): this[];
2499
+ readable(opts: {
2500
+ start?: number;
2501
+ end?: number;
2502
+ }): ReadableStream<Uint8Array<ArrayBuffer>>;
2503
+ protected info(): $mol_file_stat | null;
2504
+ }
2505
+ }
2506
+
2507
+ declare namespace $ {
2508
+ class $mol_file_web extends $mol_file_webdav {
2509
+ static base: string;
2510
+ version(): string;
2511
+ protected info(): $mol_file_stat | null;
2512
+ }
2513
+ }
2514
+
2515
+ declare namespace $ {
2516
+ interface $mol_locale_dict {
2517
+ [key: string]: string;
2518
+ }
2519
+ class $mol_locale extends $mol_object {
2520
+ static lang_default(): string;
2521
+ static lang(next?: string): string;
2522
+ static source(lang: string): any;
2523
+ static texts(lang: string, next?: $mol_locale_dict): $mol_locale_dict;
2524
+ static text(key: string): string;
2525
+ static warn(key: string): null;
2526
+ }
2527
+ }
2528
+
339
2529
  declare namespace $ {
340
2530
 
341
2531
  type $mol_text_code_line__numb_showed_mol_text_code_1 = $mol_type_enforce<
@@ -421,6 +2611,55 @@ declare namespace $ {
421
2611
  }
422
2612
 
423
2613
  //# sourceMappingURL=code.view.tree.d.ts.map
2614
+ declare namespace $.$$ {
2615
+ class $mol_text_code extends $.$mol_text_code {
2616
+ render_visible_only(): boolean;
2617
+ text_lines(): readonly string[];
2618
+ rows(): $.$mol_text_code_line[];
2619
+ row_text(index: number): string;
2620
+ row_numb(index: number): number;
2621
+ find_pos(offset: number): any;
2622
+ sub(): ($.$mol_list | $.$mol_button_copy)[];
2623
+ syntax(): $mol_syntax2<{
2624
+ 'code-indent': RegExp;
2625
+ 'code-docs': RegExp;
2626
+ 'code-comment-block': RegExp;
2627
+ 'code-link': RegExp;
2628
+ 'code-comment-inline': RegExp;
2629
+ 'code-string': RegExp;
2630
+ 'code-number': RegExp;
2631
+ 'code-call': RegExp;
2632
+ 'code-sexpr': RegExp;
2633
+ 'code-field': RegExp;
2634
+ 'code-keyword': RegExp;
2635
+ 'code-global': RegExp;
2636
+ 'code-word': RegExp;
2637
+ 'code-decorator': RegExp;
2638
+ 'code-tag': RegExp;
2639
+ 'code-punctuation': RegExp;
2640
+ }>;
2641
+ uri_base(): string;
2642
+ uri_resolve(uri: string): string;
2643
+ text_export(): string;
2644
+ row_theme(row: number): string;
2645
+ }
2646
+ }
2647
+
2648
+ declare namespace $.$$ {
2649
+ }
2650
+
2651
+ declare namespace $ {
2652
+ class $mol_dom_event<EventType extends Event> extends $mol_object {
2653
+ readonly native: EventType;
2654
+ constructor(native: EventType);
2655
+ prevented(next?: boolean): boolean;
2656
+ static wrap<EventType extends Event>(event: EventType): $mol_dom_event<EventType>;
2657
+ }
2658
+ }
2659
+
2660
+ declare namespace $ {
2661
+ }
2662
+
424
2663
  declare namespace $ {
425
2664
 
426
2665
  type $mol_view__sub_mol_check_1 = $mol_type_enforce<
@@ -447,6 +2686,15 @@ declare namespace $ {
447
2686
  }
448
2687
 
449
2688
  //# sourceMappingURL=check.view.tree.d.ts.map
2689
+ declare namespace $.$$ {
2690
+ class $mol_check extends $.$mol_check {
2691
+ click(next?: Event): void;
2692
+ sub(): readonly $mol_view_content[];
2693
+ label(): readonly any[];
2694
+ aria_checked(): string;
2695
+ }
2696
+ }
2697
+
450
2698
  declare namespace $ {
451
2699
 
452
2700
  export class $mol_icon_chevron extends $mol_icon {
@@ -474,6 +2722,16 @@ declare namespace $ {
474
2722
  }
475
2723
 
476
2724
  //# sourceMappingURL=expand.view.tree.d.ts.map
2725
+ declare namespace $.$$ {
2726
+ class $mol_check_expand extends $.$mol_check_expand {
2727
+ level_style(): string;
2728
+ expandable(): boolean;
2729
+ }
2730
+ }
2731
+
2732
+ declare namespace $ {
2733
+ }
2734
+
477
2735
  declare namespace $ {
478
2736
 
479
2737
  type $mol_dump_value__value_mol_dump_list_1 = $mol_type_enforce<
@@ -509,6 +2767,17 @@ declare namespace $ {
509
2767
  }
510
2768
 
511
2769
  //# sourceMappingURL=list.view.tree.d.ts.map
2770
+ declare namespace $.$$ {
2771
+ class $mol_dump_list extends $.$mol_dump_list {
2772
+ sub(): $.$mol_dump_value[];
2773
+ dump_value(index: number): any;
2774
+ expand_all(event?: Event): void;
2775
+ }
2776
+ }
2777
+
2778
+ declare namespace $ {
2779
+ }
2780
+
512
2781
  declare namespace $ {
513
2782
 
514
2783
  type $mol_check_expand__checked_mol_expander_1 = $mol_type_enforce<
@@ -551,6 +2820,16 @@ declare namespace $ {
551
2820
  }
552
2821
 
553
2822
  //# sourceMappingURL=expander.view.tree.d.ts.map
2823
+ declare namespace $.$$ {
2824
+ class $mol_expander extends $.$mol_expander {
2825
+ rows(): $mol_view[];
2826
+ expandable(): boolean;
2827
+ }
2828
+ }
2829
+
2830
+ declare namespace $ {
2831
+ }
2832
+
554
2833
  declare namespace $ {
555
2834
 
556
2835
  type $mol_text_code__text_mol_dump_value_1 = $mol_type_enforce<
@@ -664,5 +2943,22 @@ declare namespace $ {
664
2943
  }
665
2944
 
666
2945
  //# sourceMappingURL=value.view.tree.d.ts.map
2946
+ declare namespace $.$$ {
2947
+ class $mol_dump_value extends $.$mol_dump_value {
2948
+ sub(): $.$mol_text_code[] | $.$mol_expander[];
2949
+ simple(): string;
2950
+ expand_title(): any;
2951
+ rows_values(): any[][];
2952
+ preview_dom(): Element | null;
2953
+ expand_content(): ($mol_view | $.$mol_dump_list)[];
2954
+ expandable(): boolean;
2955
+ row_values(index: number): any[];
2956
+ expand_all(event?: Event): void;
2957
+ }
2958
+ }
2959
+
2960
+ declare namespace $ {
2961
+ }
2962
+
667
2963
  export = $;
668
2964
  //# sourceMappingURL=web.d.ts.map