aptechka 0.16.0 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/animation/Animation.d.ts +34 -0
- package/lib/animation/Damped.d.ts +18 -0
- package/lib/animation/Tweened.d.ts +14 -0
- package/lib/animation/index.d.ts +3 -0
- package/lib/attribute/index.d.ts +14 -0
- package/lib/canvas/index.d.ts +34 -0
- package/lib/class-linked-status/index.d.ts +11 -0
- package/lib/connector/index.d.ts +15 -0
- package/lib/controls/AutoplayControls.d.ts +16 -0
- package/lib/controls/Controls.d.ts +8 -0
- package/lib/controls/DragControls.d.ts +15 -0
- package/lib/controls/KeyboardControls.d.ts +13 -0
- package/lib/controls/WheelControls.d.ts +18 -0
- package/lib/controls/index.d.ts +5 -0
- package/lib/css-property/index.d.ts +16 -0
- package/lib/css-unit-parser/index.d.ts +6 -0
- package/lib/css-value-parser/index.d.ts +6 -0
- package/lib/dev/index.d.ts +1 -0
- package/lib/device/Device.d.ts +18 -0
- package/lib/device/Viewport.d.ts +28 -0
- package/lib/device/index.d.ts +2 -0
- package/lib/element-resizer/index.d.ts +9 -0
- package/lib/image/index.d.ts +10 -0
- package/lib/intersector/index.d.ts +9 -0
- package/lib/ladder/index.d.ts +23 -0
- package/lib/layout-box/index.d.ts +95 -0
- package/lib/loading/index.d.ts +38 -0
- package/lib/media/index.d.ts +11 -0
- package/lib/need_redo_tweaker/CheckboxElement.d.ts +14 -0
- package/lib/need_redo_tweaker/TweakerBooleanManagerElement.d.ts +10 -0
- package/lib/need_redo_tweaker/TweakerColorManagerElement.d.ts +10 -0
- package/lib/need_redo_tweaker/TweakerElement.d.ts +17 -0
- package/lib/need_redo_tweaker/TweakerFieldElement.d.ts +19 -0
- package/lib/need_redo_tweaker/TweakerFolderElement.d.ts +23 -0
- package/lib/need_redo_tweaker/TweakerLinkManagerElement.d.ts +10 -0
- package/lib/need_redo_tweaker/TweakerNumberManagerElement.d.ts +13 -0
- package/lib/need_redo_tweaker/TweakerSelectManagerElement.d.ts +10 -0
- package/lib/need_redo_tweaker/TweakerStoreManagerElement.d.ts +9 -0
- package/lib/need_redo_tweaker/TweakerStringManagerElement.d.ts +10 -0
- package/lib/need_redo_tweaker/element-constructor/ElementConstructor.d.ts +74 -0
- package/lib/need_redo_tweaker/element-constructor/createStylesheet.d.ts +2 -0
- package/lib/need_redo_tweaker/element-constructor/createTheme.d.ts +12 -0
- package/lib/need_redo_tweaker/element-constructor/index.d.ts +4 -0
- package/lib/need_redo_tweaker/element-constructor/knownSvgTags.d.ts +1 -0
- package/lib/need_redo_tweaker/element-constructor/tags.d.ts +118 -0
- package/lib/need_redo_tweaker/index.cjs +4 -4
- package/lib/need_redo_tweaker/index.d.ts +1 -0
- package/lib/need_redo_tweaker/index.js +1 -2
- package/lib/need_redo_tweaker/select/SelectElement.d.ts +24 -0
- package/lib/need_redo_tweaker/select/SelectHeadElement.d.ts +12 -0
- package/lib/need_redo_tweaker/select/SelectOptionElement.d.ts +13 -0
- package/lib/need_redo_tweaker/select/SelectUserElement.d.ts +6 -0
- package/lib/need_redo_tweaker/select/index.d.ts +4 -0
- package/lib/need_redo_tweaker/theme/index.d.ts +35 -0
- package/lib/need_redo_tweaker/tweakerManagerConstructors.d.ts +14 -0
- package/lib/need_redo_tweaker/tweakerStorage.d.ts +23 -0
- package/lib/notifier/index.d.ts +8 -0
- package/lib/object-DOa0yKM9.js +114 -0
- package/lib/object-HBC5QlzO.cjs +1 -0
- package/lib/order/index.d.ts +22 -0
- package/lib/pointer/Pointer.d.ts +22 -0
- package/lib/pointer/PointerElement.d.ts +13 -0
- package/lib/pointer/index.d.ts +2 -0
- package/lib/popover/PopoverButtonElement.d.ts +14 -0
- package/lib/popover/PopoverElement.d.ts +25 -0
- package/lib/popover/index.d.ts +2 -0
- package/lib/scroll/ScrollBulletButtonsElement.d.ts +11 -0
- package/lib/scroll/ScrollButtonElement.d.ts +5 -0
- package/lib/scroll/ScrollElement.d.ts +81 -0
- package/lib/scroll/ScrollSection.d.ts +22 -0
- package/lib/scroll/ScrollSegmentElement.d.ts +62 -0
- package/lib/scroll/ScrollSetButtonElement.d.ts +9 -0
- package/lib/scroll/ScrollStepButtonElement.d.ts +9 -0
- package/lib/scroll/ScrollUserElement.d.ts +6 -0
- package/lib/scroll/ScrollbarElement.d.ts +13 -0
- package/lib/scroll/index.d.ts +6 -0
- package/lib/scroll-entries/index.d.ts +20 -0
- package/lib/sequence/index.d.ts +20 -0
- package/lib/slicer/Letter.d.ts +11 -0
- package/lib/slicer/SlicerElement.d.ts +20 -0
- package/lib/slicer/Word.d.ts +16 -0
- package/lib/slicer/index.d.ts +3 -0
- package/lib/source/SourceClass.d.ts +11 -0
- package/lib/source/SourceElement.d.ts +24 -0
- package/lib/source/SourceManager.d.ts +13 -0
- package/lib/source/SourceSet.d.ts +8 -0
- package/lib/source/index.d.ts +4 -0
- package/lib/store/Composed.d.ts +7 -0
- package/lib/store/Derived.d.ts +7 -0
- package/lib/store/DerivedArray.d.ts +7 -0
- package/lib/store/Resource.d.ts +11 -0
- package/lib/store/Store.d.ts +35 -0
- package/lib/store/StoreRegistry.d.ts +22 -0
- package/lib/store/index.d.ts +6 -0
- package/lib/test/starting-style/index.d.ts +1 -0
- package/lib/ticker/index.d.ts +21 -0
- package/lib/utils/array.d.ts +2 -0
- package/lib/utils/attributes.d.ts +2 -0
- package/lib/utils/browser.d.ts +1 -0
- package/lib/utils/bytes.d.ts +1 -0
- package/lib/utils/canvas.d.ts +7 -0
- package/lib/utils/collisions.d.ts +3 -0
- package/lib/utils/coordinates.d.ts +13 -0
- package/lib/utils/cssom.d.ts +5 -0
- package/lib/utils/decoding.d.ts +2 -0
- package/lib/utils/dom.d.ts +5 -0
- package/lib/utils/easings.d.ts +17 -0
- package/lib/utils/events.d.ts +8 -0
- package/lib/utils/file.d.ts +1 -0
- package/lib/utils/function.d.ts +2 -0
- package/lib/utils/gestures.d.ts +1 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +27 -0
- package/lib/utils/index.js +155 -140
- package/lib/utils/jss.d.ts +12 -0
- package/lib/utils/layout.d.ts +3 -0
- package/lib/utils/math.d.ts +11 -0
- package/lib/utils/number.d.ts +3 -0
- package/lib/utils/object.d.ts +9 -0
- package/lib/utils/polyfills.d.ts +1 -0
- package/lib/utils/promises.d.ts +1 -0
- package/lib/utils/string.d.ts +8 -0
- package/lib/utils/style.d.ts +2 -0
- package/lib/utils/ts-shape.d.ts +20 -0
- package/lib/utils/ts-utility.d.ts +26 -0
- package/lib/utils/url.d.ts +9 -0
- package/lib/video/index.d.ts +21 -0
- package/lib/window-resizer/index.d.ts +9 -0
- package/package.json +3 -47
- package/lib/en3/index.cjs +0 -8
- package/lib/en3/index.js +0 -374
- package/lib/file-BEr-o55N.js +0 -31
- package/lib/file-C9BbxzVU.cjs +0 -1
- package/lib/morph/index.cjs +0 -1
- package/lib/morph/index.js +0 -225
- package/lib/object-CCiXnER2.cjs +0 -1
- package/lib/object-D6MVWB4l.js +0 -85
- package/lib/router/index.cjs +0 -1
- package/lib/router/index.js +0 -266
- package/lib/url-C3dWnJQg.cjs +0 -1
- package/lib/url-DMNfW7uN.js +0 -22
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Store } from '../store/Store';
|
|
2
|
+
import { TweakerStoreManagerElement } from './TweakerStoreManagerElement';
|
|
3
|
+
export declare class TweakerNumberManagerElement extends TweakerStoreManagerElement<Store<Array<number> | number>> {
|
|
4
|
+
#private;
|
|
5
|
+
constructor(...stores: Array<Store<Array<number> | number>>);
|
|
6
|
+
protected connectedCallback(): void;
|
|
7
|
+
protected disconnectedCallback(): void;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
'e-tweaker-number-manager': TweakerNumberManagerElement;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Store } from '../store/Store';
|
|
2
|
+
import { TweakerStoreManagerElement } from './TweakerStoreManagerElement';
|
|
3
|
+
export declare class TweakerSelectManagerElement extends TweakerStoreManagerElement<Store<string>> {
|
|
4
|
+
constructor(...stores: Array<Store<string>>);
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
interface HTMLElementTagNameMap {
|
|
8
|
+
'e-tweaker-select-manager': TweakerSelectManagerElement;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Store } from '../store';
|
|
2
|
+
export declare class TweakerStoreManagerElement<S extends Store<any>> extends HTMLElement {
|
|
3
|
+
#private;
|
|
4
|
+
constructor(...stores: Array<S>);
|
|
5
|
+
addStore(store: S): void;
|
|
6
|
+
protected get firstStore(): S;
|
|
7
|
+
protected get stores(): S[];
|
|
8
|
+
protected updateStores(value: S['current']): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Store } from '../store/Store';
|
|
2
|
+
import { TweakerStoreManagerElement } from './TweakerStoreManagerElement';
|
|
3
|
+
export declare class TweakerStringManagerElement<S extends Store<any> = Store<string>> extends TweakerStoreManagerElement<S> {
|
|
4
|
+
constructor(...stores: Array<S>);
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
interface HTMLElementTagNameMap {
|
|
8
|
+
'e-tweaker-string-manager': TweakerStringManagerElement;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { Store } from '../../store';
|
|
2
|
+
import { SplitFirst } from '../../utils';
|
|
3
|
+
import { ConnectorConnectCallback, ConnectorDisconnectCallback } from '../../connector';
|
|
4
|
+
export type StoreOr<T> = T | Store<T>;
|
|
5
|
+
export type ElementConstructorTagNameMap = HTMLElementTagNameMap & SVGElementTagNameMap;
|
|
6
|
+
export type ElementConstructorTagNames = keyof ElementConstructorTagNameMap;
|
|
7
|
+
export type ElementConstructorStringStoreClass = Store<any> | Store<any>;
|
|
8
|
+
export type ElementConstructorStringArrayStoreClass = Store<Array<any>> | Store<Array<any>>;
|
|
9
|
+
export type ElementConstructorClass = string | Array<string | ElementConstructorStringStoreClass | ElementConstructorStringArrayStoreClass | null | undefined> | ElementConstructorStringStoreClass | ElementConstructorStringArrayStoreClass | {
|
|
10
|
+
[key: string]: boolean | Store<boolean>;
|
|
11
|
+
};
|
|
12
|
+
export type ElementConstructorStyleToken = Exclude<Extract<keyof CSSStyleDeclaration, string> | `--${string}` | `-${string}`, 'length' | 'parentRule'>;
|
|
13
|
+
export type ElementConstructorStyleValue = string | number | Store<any>;
|
|
14
|
+
export type ElementConstructorStyle = Partial<{
|
|
15
|
+
[K in ElementConstructorStyleToken]: ElementConstructorStyleValue;
|
|
16
|
+
}>;
|
|
17
|
+
export type ElementConstructorJSSWrapper = {
|
|
18
|
+
[key: string]: object | ElementConstructorStyle;
|
|
19
|
+
};
|
|
20
|
+
export type ElementConstructorJSS = ElementConstructorStyle | {
|
|
21
|
+
[key: string]: ElementConstructorJSSWrapper | ElementConstructorStyle;
|
|
22
|
+
};
|
|
23
|
+
export type ElementConstructorEventMap = HTMLElementEventMap & SVGElementEventMap;
|
|
24
|
+
export type ElementConstructorNativeAttribute<T extends ElementConstructorTagNames | Node = ElementConstructorTagNames, E = T extends ElementConstructorTagNames ? ElementConstructorTagNameMap[T] : Node> = {
|
|
25
|
+
[K in keyof E]: E[K] extends string | null ? K : never;
|
|
26
|
+
}[keyof E];
|
|
27
|
+
export type ElementConstructorNativeAttributes<T extends ElementConstructorTagNames | Node = ElementConstructorTagNames> = Partial<{
|
|
28
|
+
[K in ElementConstructorNativeAttribute<T>]: any;
|
|
29
|
+
}>;
|
|
30
|
+
export type ElementConstructorCustomAttributes = {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
};
|
|
33
|
+
export type ElementConstructorAttributes<T extends ElementConstructorTagNames | Node = ElementConstructorTagNames> = ElementConstructorNativeAttributes<T> | ElementConstructorCustomAttributes;
|
|
34
|
+
export type ElementConstructorParent = Node | ElementConstructor;
|
|
35
|
+
export type ElementConstructorRefCallback<T extends ElementConstructorTagNames | Node = ElementConstructorTagNames> = (element: T extends ElementConstructorTagNames ? ElementConstructorTagNameMap[T] : Node) => void;
|
|
36
|
+
export type ElementConstructorObjectRef<T extends ElementConstructorTagNames | Node = ElementConstructorTagNames> = {
|
|
37
|
+
current: T extends ElementConstructorTagNames ? ElementConstructorTagNameMap[T] : Node;
|
|
38
|
+
};
|
|
39
|
+
export type ElementConstructorRef<T extends ElementConstructorTagNames | Node = ElementConstructorTagNames> = ElementConstructorRefCallback<T> | ElementConstructorObjectRef<T>;
|
|
40
|
+
export type ElementConstructorEventValue<E extends Event> = {
|
|
41
|
+
callback: (event: E) => void;
|
|
42
|
+
options?: AddEventListenerOptions;
|
|
43
|
+
} | ((event: E) => void);
|
|
44
|
+
export type ElementConstructorEvents = Partial<{
|
|
45
|
+
[K in `on${Capitalize<keyof ElementConstructorEventMap>}`]: ElementConstructorEventValue<ElementConstructorEventMap[Extract<Uncapitalize<SplitFirst<K, 'on'>[1]>, keyof ElementConstructorEventMap>]>;
|
|
46
|
+
}>;
|
|
47
|
+
export type ElementConstructorChildrenChangeCallback = () => void;
|
|
48
|
+
export type ElementConstructorTagObject<T extends ElementConstructorTagNames | Node = ElementConstructorTagNames> = {
|
|
49
|
+
class?: ElementConstructorClass;
|
|
50
|
+
style?: T extends 'style' ? ElementConstructorJSS : ElementConstructorStyle;
|
|
51
|
+
children?: any;
|
|
52
|
+
ref?: ElementConstructorRef<T>;
|
|
53
|
+
forceSvg?: boolean;
|
|
54
|
+
lightChildren?: any;
|
|
55
|
+
onDisconnect?: ConnectorDisconnectCallback;
|
|
56
|
+
onConnect?: ConnectorConnectCallback;
|
|
57
|
+
connectedClass?: boolean | string;
|
|
58
|
+
} & ElementConstructorAttributes<T> & ElementConstructorEvents;
|
|
59
|
+
export declare class ElementConstructor<T extends ElementConstructorTagNames | Node = ElementConstructorTagNames, N = T extends ElementConstructorTagNames ? ElementConstructorTagNameMap[T] : Node> {
|
|
60
|
+
#private;
|
|
61
|
+
constructor(value: T, object?: ElementConstructorTagObject<T>);
|
|
62
|
+
constructor(value: string, object?: ElementConstructorTagObject<T>);
|
|
63
|
+
constructor(value: Node, object?: ElementConstructorTagObject<T>);
|
|
64
|
+
get node(): N;
|
|
65
|
+
set node(v: N);
|
|
66
|
+
}
|
|
67
|
+
declare global {
|
|
68
|
+
interface HTMLElementEventMap {
|
|
69
|
+
beforeChildrenChange: CustomEvent;
|
|
70
|
+
}
|
|
71
|
+
interface HTMLElementEventMap {
|
|
72
|
+
afterChildrenChange: CustomEvent;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { CamelToKebab } from '../../utils';
|
|
2
|
+
export interface CreateThemeOptions<P extends string = ''> {
|
|
3
|
+
prefix?: P;
|
|
4
|
+
}
|
|
5
|
+
export declare function createTheme<T extends {
|
|
6
|
+
[key: string]: string;
|
|
7
|
+
}, P extends string = ''>(object: T, options?: CreateThemeOptions<P>): { [K in Extract<keyof T, string>]: {
|
|
8
|
+
var: `var(--${P}${CamelToKebab<K>})`;
|
|
9
|
+
value: T[K];
|
|
10
|
+
}; } & {
|
|
11
|
+
style: { [K_1 in `--${P}${CamelToKebab<Extract<keyof T, string>>}`]: string; };
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const knownSvgTags: Set<string>;
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { ElementConstructorTagObject, ElementConstructor, ElementConstructorJSS, ElementConstructorTagNames } from './ElementConstructor';
|
|
2
|
+
export declare function element<T extends ElementConstructorTagNames | Node = ElementConstructorTagNames>(node: T, object: ElementConstructorTagObject<T>): ElementConstructor<T>;
|
|
3
|
+
export declare function element<T extends string = string>(node: T, object: ElementConstructorTagObject<Element>): ElementConstructor<Element>;
|
|
4
|
+
export declare function a(object?: ElementConstructorTagObject<'a'>): ElementConstructor<"a", HTMLAnchorElement & SVGAElement>;
|
|
5
|
+
export declare function abbr(object?: ElementConstructorTagObject<'abbr'>): ElementConstructor<"abbr", HTMLElement>;
|
|
6
|
+
export declare function address(object?: ElementConstructorTagObject<'address'>): ElementConstructor<"address", HTMLElement>;
|
|
7
|
+
export declare function area(object?: ElementConstructorTagObject<'area'>): ElementConstructor<"area", HTMLAreaElement>;
|
|
8
|
+
export declare function article(object?: ElementConstructorTagObject<'article'>): ElementConstructor<"article", HTMLElement>;
|
|
9
|
+
export declare function aside(object?: ElementConstructorTagObject<'aside'>): ElementConstructor<"aside", HTMLElement>;
|
|
10
|
+
export declare function audio(object?: ElementConstructorTagObject<'audio'>): ElementConstructor<"audio", HTMLAudioElement>;
|
|
11
|
+
export declare function b(object?: ElementConstructorTagObject<'b'>): ElementConstructor<"b", HTMLElement>;
|
|
12
|
+
export declare function base(object?: ElementConstructorTagObject<'base'>): ElementConstructor<"base", HTMLBaseElement>;
|
|
13
|
+
export declare function bdi(object?: ElementConstructorTagObject<'bdi'>): ElementConstructor<"bdi", HTMLElement>;
|
|
14
|
+
export declare function bdo(object?: ElementConstructorTagObject<'bdo'>): ElementConstructor<"bdo", HTMLElement>;
|
|
15
|
+
export declare function blockquote(object?: ElementConstructorTagObject<'blockquote'>): ElementConstructor<"blockquote", HTMLQuoteElement>;
|
|
16
|
+
export declare function body(object?: ElementConstructorTagObject<'body'>): ElementConstructor<"body", HTMLBodyElement>;
|
|
17
|
+
export declare function br(object?: ElementConstructorTagObject<'br'>): ElementConstructor<"br", HTMLBRElement>;
|
|
18
|
+
export declare function button(object?: ElementConstructorTagObject<'button'>): ElementConstructor<"button", HTMLButtonElement>;
|
|
19
|
+
export declare function canvas(object?: ElementConstructorTagObject<'canvas'>): ElementConstructor<"canvas", HTMLCanvasElement>;
|
|
20
|
+
export declare function caption(object?: ElementConstructorTagObject<'caption'>): ElementConstructor<"caption", HTMLTableCaptionElement>;
|
|
21
|
+
export declare function cite(object?: ElementConstructorTagObject<'cite'>): ElementConstructor<"cite", HTMLElement>;
|
|
22
|
+
export declare function code(object?: ElementConstructorTagObject<'code'>): ElementConstructor<"code", HTMLElement>;
|
|
23
|
+
export declare function col(object?: ElementConstructorTagObject<'col'>): ElementConstructor<"col", HTMLTableColElement>;
|
|
24
|
+
export declare function colgroup(object?: ElementConstructorTagObject<'colgroup'>): ElementConstructor<"colgroup", HTMLTableColElement>;
|
|
25
|
+
export declare function data(object?: ElementConstructorTagObject<'data'>): ElementConstructor<"data", HTMLDataElement>;
|
|
26
|
+
export declare function datalist(object?: ElementConstructorTagObject<'datalist'>): ElementConstructor<"datalist", HTMLDataListElement>;
|
|
27
|
+
export declare function dd(object?: ElementConstructorTagObject<'dd'>): ElementConstructor<"dd", HTMLElement>;
|
|
28
|
+
export declare function del(object?: ElementConstructorTagObject<'del'>): ElementConstructor<"del", HTMLModElement>;
|
|
29
|
+
export declare function details(object?: ElementConstructorTagObject<'details'>): ElementConstructor<"details", HTMLDetailsElement>;
|
|
30
|
+
export declare function dfn(object?: ElementConstructorTagObject<'dfn'>): ElementConstructor<"dfn", HTMLElement>;
|
|
31
|
+
export declare function dialog(object?: ElementConstructorTagObject<'dialog'>): ElementConstructor<"dialog", HTMLDialogElement>;
|
|
32
|
+
export declare function div(object?: ElementConstructorTagObject<'div'>): ElementConstructor<"div", HTMLDivElement>;
|
|
33
|
+
export declare function dl(object?: ElementConstructorTagObject<'dl'>): ElementConstructor<"dl", HTMLDListElement>;
|
|
34
|
+
export declare function dt(object?: ElementConstructorTagObject<'dt'>): ElementConstructor<"dt", HTMLElement>;
|
|
35
|
+
export declare function em(object?: ElementConstructorTagObject<'em'>): ElementConstructor<"em", HTMLElement>;
|
|
36
|
+
export declare function embed(object?: ElementConstructorTagObject<'embed'>): ElementConstructor<"embed", HTMLEmbedElement>;
|
|
37
|
+
export declare function fieldset(object?: ElementConstructorTagObject<'fieldset'>): ElementConstructor<"fieldset", HTMLFieldSetElement>;
|
|
38
|
+
export declare function figcaption(object?: ElementConstructorTagObject<'figcaption'>): ElementConstructor<"figcaption", HTMLElement>;
|
|
39
|
+
export declare function figure(object?: ElementConstructorTagObject<'figure'>): ElementConstructor<"figure", HTMLElement>;
|
|
40
|
+
export declare function footer(object?: ElementConstructorTagObject<'footer'>): ElementConstructor<"footer", HTMLElement>;
|
|
41
|
+
export declare function form(object?: ElementConstructorTagObject<'form'>): ElementConstructor<"form", HTMLFormElement>;
|
|
42
|
+
export declare function h1(object?: ElementConstructorTagObject<'h1'>): ElementConstructor<"h1", HTMLHeadingElement>;
|
|
43
|
+
export declare function h2(object?: ElementConstructorTagObject<'h2'>): ElementConstructor<"h2", HTMLHeadingElement>;
|
|
44
|
+
export declare function h3(object?: ElementConstructorTagObject<'h3'>): ElementConstructor<"h3", HTMLHeadingElement>;
|
|
45
|
+
export declare function h4(object?: ElementConstructorTagObject<'h4'>): ElementConstructor<"h4", HTMLHeadingElement>;
|
|
46
|
+
export declare function h5(object?: ElementConstructorTagObject<'h5'>): ElementConstructor<"h5", HTMLHeadingElement>;
|
|
47
|
+
export declare function h6(object?: ElementConstructorTagObject<'h6'>): ElementConstructor<"h6", HTMLHeadingElement>;
|
|
48
|
+
export declare function head(object?: ElementConstructorTagObject<'head'>): ElementConstructor<"head", HTMLHeadElement>;
|
|
49
|
+
export declare function header(object?: ElementConstructorTagObject<'header'>): ElementConstructor<"header", HTMLElement>;
|
|
50
|
+
export declare function hgroup(object?: ElementConstructorTagObject<'hgroup'>): ElementConstructor<"hgroup", HTMLElement>;
|
|
51
|
+
export declare function hr(object?: ElementConstructorTagObject<'hr'>): ElementConstructor<"hr", HTMLHRElement>;
|
|
52
|
+
export declare function html(object?: ElementConstructorTagObject<'html'>): ElementConstructor<"html", HTMLHtmlElement>;
|
|
53
|
+
export declare function i(object?: ElementConstructorTagObject<'i'>): ElementConstructor<"i", HTMLElement>;
|
|
54
|
+
export declare function iframe(object?: ElementConstructorTagObject<'iframe'>): ElementConstructor<"iframe", HTMLIFrameElement>;
|
|
55
|
+
export declare function img(object?: ElementConstructorTagObject<'img'>): ElementConstructor<"img", HTMLImageElement>;
|
|
56
|
+
export declare function input(object?: ElementConstructorTagObject<'input'>): ElementConstructor<"input", HTMLInputElement>;
|
|
57
|
+
export declare function ins(object?: ElementConstructorTagObject<'ins'>): ElementConstructor<"ins", HTMLModElement>;
|
|
58
|
+
export declare function kbd(object?: ElementConstructorTagObject<'kbd'>): ElementConstructor<"kbd", HTMLElement>;
|
|
59
|
+
export declare function label(object?: ElementConstructorTagObject<'label'>): ElementConstructor<"label", HTMLLabelElement>;
|
|
60
|
+
export declare function legend(object?: ElementConstructorTagObject<'legend'>): ElementConstructor<"legend", HTMLLegendElement>;
|
|
61
|
+
export declare function li(object?: ElementConstructorTagObject<'li'>): ElementConstructor<"li", HTMLLIElement>;
|
|
62
|
+
export declare function link(object?: ElementConstructorTagObject<'link'>): ElementConstructor<"link", HTMLLinkElement>;
|
|
63
|
+
export declare function main(object?: ElementConstructorTagObject<'main'>): ElementConstructor<"main", HTMLElement>;
|
|
64
|
+
export declare function map(object?: ElementConstructorTagObject<'map'>): ElementConstructor<"map", HTMLMapElement>;
|
|
65
|
+
export declare function mark(object?: ElementConstructorTagObject<'mark'>): ElementConstructor<"mark", HTMLElement>;
|
|
66
|
+
export declare function menu(object?: ElementConstructorTagObject<'menu'>): ElementConstructor<"menu", HTMLMenuElement>;
|
|
67
|
+
export declare function meta(object?: ElementConstructorTagObject<'meta'>): ElementConstructor<"meta", HTMLMetaElement>;
|
|
68
|
+
export declare function meter(object?: ElementConstructorTagObject<'meter'>): ElementConstructor<"meter", HTMLMeterElement>;
|
|
69
|
+
export declare function nav(object?: ElementConstructorTagObject<'nav'>): ElementConstructor<"nav", HTMLElement>;
|
|
70
|
+
export declare function noscript(object?: ElementConstructorTagObject<'noscript'>): ElementConstructor<"noscript", HTMLElement>;
|
|
71
|
+
export declare function object(object?: ElementConstructorTagObject<'object'>): ElementConstructor<"object", HTMLObjectElement>;
|
|
72
|
+
export declare function ol(object?: ElementConstructorTagObject<'ol'>): ElementConstructor<"ol", HTMLOListElement>;
|
|
73
|
+
export declare function optgroup(object?: ElementConstructorTagObject<'optgroup'>): ElementConstructor<"optgroup", HTMLOptGroupElement>;
|
|
74
|
+
export declare function option(object?: ElementConstructorTagObject<'option'>): ElementConstructor<"option", HTMLOptionElement>;
|
|
75
|
+
export declare function output(object?: ElementConstructorTagObject<'output'>): ElementConstructor<"output", HTMLOutputElement>;
|
|
76
|
+
export declare function p(object?: ElementConstructorTagObject<'p'>): ElementConstructor<"p", HTMLParagraphElement>;
|
|
77
|
+
export declare function picture(object?: ElementConstructorTagObject<'picture'>): ElementConstructor<"picture", HTMLPictureElement>;
|
|
78
|
+
export declare function pre(object?: ElementConstructorTagObject<'pre'>): ElementConstructor<"pre", HTMLPreElement>;
|
|
79
|
+
export declare function progress(object?: ElementConstructorTagObject<'progress'>): ElementConstructor<"progress", HTMLProgressElement>;
|
|
80
|
+
export declare function q(object?: ElementConstructorTagObject<'q'>): ElementConstructor<"q", HTMLQuoteElement>;
|
|
81
|
+
export declare function rp(object?: ElementConstructorTagObject<'rp'>): ElementConstructor<"rp", HTMLElement>;
|
|
82
|
+
export declare function rt(object?: ElementConstructorTagObject<'rt'>): ElementConstructor<"rt", HTMLElement>;
|
|
83
|
+
export declare function ruby(object?: ElementConstructorTagObject<'ruby'>): ElementConstructor<"ruby", HTMLElement>;
|
|
84
|
+
export declare function s(object?: ElementConstructorTagObject<'s'>): ElementConstructor<"s", HTMLElement>;
|
|
85
|
+
export declare function samp(object?: ElementConstructorTagObject<'samp'>): ElementConstructor<"samp", HTMLElement>;
|
|
86
|
+
export declare function script(object?: ElementConstructorTagObject<'script'>): ElementConstructor<"script", HTMLScriptElement & SVGScriptElement>;
|
|
87
|
+
export declare function search(object?: ElementConstructorTagObject<'search'>): ElementConstructor<"search", HTMLElement>;
|
|
88
|
+
export declare function section(object?: ElementConstructorTagObject<'section'>): ElementConstructor<"section", HTMLElement>;
|
|
89
|
+
export declare function select(object?: ElementConstructorTagObject<'select'>): ElementConstructor<"select", HTMLSelectElement>;
|
|
90
|
+
export declare function slot(object?: ElementConstructorTagObject<'slot'>): ElementConstructor<"slot", HTMLSlotElement>;
|
|
91
|
+
export declare function small(object?: ElementConstructorTagObject<'small'>): ElementConstructor<"small", HTMLElement>;
|
|
92
|
+
export declare function source(object?: ElementConstructorTagObject<'source'>): ElementConstructor<"source", HTMLSourceElement>;
|
|
93
|
+
export declare function span(object?: ElementConstructorTagObject<'span'>): ElementConstructor<"span", HTMLSpanElement>;
|
|
94
|
+
export declare function strong(object?: ElementConstructorTagObject<'strong'>): ElementConstructor<"strong", HTMLElement>;
|
|
95
|
+
export declare function style(object?: ElementConstructorJSS): ElementConstructor<"style", HTMLStyleElement & SVGStyleElement>;
|
|
96
|
+
export declare function sub(object?: ElementConstructorTagObject<'sub'>): ElementConstructor<"sub", HTMLElement>;
|
|
97
|
+
export declare function summary(object?: ElementConstructorTagObject<'summary'>): ElementConstructor<"summary", HTMLElement>;
|
|
98
|
+
export declare function sup(object?: ElementConstructorTagObject<'sup'>): ElementConstructor<"sup", HTMLElement>;
|
|
99
|
+
export declare function table(object?: ElementConstructorTagObject<'table'>): ElementConstructor<"table", HTMLTableElement>;
|
|
100
|
+
export declare function tbody(object?: ElementConstructorTagObject<'tbody'>): ElementConstructor<"tbody", HTMLTableSectionElement>;
|
|
101
|
+
export declare function td(object?: ElementConstructorTagObject<'td'>): ElementConstructor<"td", HTMLTableCellElement>;
|
|
102
|
+
export declare function template(object?: ElementConstructorTagObject<'template'>): ElementConstructor<"template", HTMLTemplateElement>;
|
|
103
|
+
export declare function textarea(object?: ElementConstructorTagObject<'textarea'>): ElementConstructor<"textarea", HTMLTextAreaElement>;
|
|
104
|
+
export declare function tfoot(object?: ElementConstructorTagObject<'tfoot'>): ElementConstructor<"tfoot", HTMLTableSectionElement>;
|
|
105
|
+
export declare function th(object?: ElementConstructorTagObject<'th'>): ElementConstructor<"th", HTMLTableCellElement>;
|
|
106
|
+
export declare function thead(object?: ElementConstructorTagObject<'thead'>): ElementConstructor<"thead", HTMLTableSectionElement>;
|
|
107
|
+
export declare function time(object?: ElementConstructorTagObject<'time'>): ElementConstructor<"time", HTMLTimeElement>;
|
|
108
|
+
export declare function title(object?: ElementConstructorTagObject<'title'>): ElementConstructor<"title", HTMLTitleElement & SVGTitleElement>;
|
|
109
|
+
export declare function tr(object?: ElementConstructorTagObject<'tr'>): ElementConstructor<"tr", HTMLTableRowElement>;
|
|
110
|
+
export declare function track(object?: ElementConstructorTagObject<'track'>): ElementConstructor<"track", HTMLTrackElement>;
|
|
111
|
+
export declare function u(object?: ElementConstructorTagObject<'u'>): ElementConstructor<"u", HTMLElement>;
|
|
112
|
+
export declare function ul(object?: ElementConstructorTagObject<'ul'>): ElementConstructor<"ul", HTMLUListElement>;
|
|
113
|
+
export declare function htmlVar(object?: ElementConstructorTagObject<'var'>): ElementConstructor<"var", HTMLElement>;
|
|
114
|
+
export declare function video(object?: ElementConstructorTagObject<'video'>): ElementConstructor<"video", HTMLVideoElement>;
|
|
115
|
+
export declare function wbr(object?: ElementConstructorTagObject<'wbr'>): ElementConstructor<"wbr", HTMLElement>;
|
|
116
|
+
export declare function fragment(object?: ElementConstructorTagObject<Node>): ElementConstructor<Node, Node>;
|
|
117
|
+
export declare function empty(object?: ElementConstructorTagObject<Node>): ElementConstructor<Node, Node>;
|
|
118
|
+
export declare function contents(object?: ElementConstructorTagObject<'div'>): ElementConstructor<"div", HTMLDivElement>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var vt=r=>{throw TypeError(r)};var Ue=(r,s,t)=>s.has(r)||vt("Cannot "+t);var e=(r,s,t)=>(Ue(r,s,"read from private field"),t?t.call(r):s.get(r)),o=(r,s,t)=>s.has(r)?vt("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,t),c=(r,s,t,i)=>(Ue(r,s,"write to private field"),i?i.call(r,t):s.set(r,t),t),l=(r,s,t)=>(Ue(r,s,"access private method"),t);const U=require("../browser-CpzFX2xg.cjs"),m=require("../Store-CDb6RMce.cjs"),_e=require("../file-C9BbxzVU.cjs"),Yt=require("../function-MthRj-GJ.cjs"),kt=require("../gestures-DHLrn6Q8.cjs");require("../ticker/index.cjs");const pe=require("../string-DhgS_iFl.cjs"),yt=require("../object-CCiXnER2.cjs"),Gt=require("../connector/index.cjs"),Ut=require("../Viewport-BDPsnAF4.cjs"),Xt=require("../math-GDWEqu7y.cjs"),Xe=require("../polyfills-CM4SCDTt.cjs"),St=require("../element-resizer/index.cjs"),Qt=require("../style-At6aDoqG.cjs"),jt=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view","use"]);var d,$,y,we,I,H,a,Et,xt,Ct,Qe,je,Tt,Lt,zt,Rt,et,tt,Mt,st,it,At,nt,qe,ot,rt,at,Oe,Ze;const We=class We{constructor(...s){o(this,a);o(this,d,null);o(this,$,new Set);o(this,y,new Set);o(this,we);o(this,I);o(this,H);o(this,Oe,s=>{e(this,$).forEach(t=>{t(s)}),e(this,$).clear()});o(this,Ze,(s,t)=>{e(this,y).forEach(i=>{i(s,t)}),e(this,y).clear(),l(this,a,it).call(this)});if(U.isBrowser){const t=s[0],i=s[1];c(this,d,l(this,a,Et).call(this,t,i==null?void 0:i.forceSvg)),l(this,a,Ct).call(this,i)}}get node(){return e(this,d)}set node(s){var t;l(this,a,it).call(this),c(this,d,s),(t=e(this,we))==null||t.call(this),e(this,d)instanceof Element&&c(this,I,[...e(this,d).querySelectorAll("store-root")]),l(this,a,st).call(this),l(this,a,Qe).call(this)}};d=new WeakMap,$=new WeakMap,y=new WeakMap,we=new WeakMap,I=new WeakMap,H=new WeakMap,a=new WeakSet,Et=function(s,t){let i=null;if(s instanceof Node)i=s;else if(typeof s=="string")if(!s.includes("<")&&s.includes("-"))i=new(customElements.get(s));else if(s.includes("<")){const n=document.createElement("div");n.innerHTML=s,i=n.firstElementChild}else jt.has(s)||t?i=document.createElementNS("http://www.w3.org/2000/svg",s):i=document.createElement(s);else i=document.createElement("div");return i},xt=function(s){return s instanceof HTMLElement||s instanceof SVGElement},Ct=function(s){if(!s)return;const t=l(this,a,xt).call(this,e(this,d)),i=s.ref;delete s.ref,s!=null&&s.onConnect&&(e(this,$).add(s.onConnect),delete s.onConnect),s!=null&&s.onDisconnect&&(e(this,y).add(s.onDisconnect),delete s.onDisconnect);let n,h;for(const u in s){const g=s[u];u==="class"&&t?l(this,a,je).call(this,g):u==="style"&&t?l(this,a,zt).call(this,g):u==="lightChildren"?l(this,a,qe).call(this,e(this,d),g):u==="children"?l(this,a,qe).call(this,e(this,d)instanceof Element?e(this,d).shadowRoot||e(this,d):e(this,d),g):u==="connectedClass"?e(this,$).add(()=>{requestAnimationFrame(()=>{e(this,d).classList.add(typeof g=="boolean"?"connected":g)})}):u.startsWith("on")?(h||(h={}),h[u]=g):(n||(n={}),n[u]=g)}l(this,a,At).call(this,n),l(this,a,Mt).call(this,h),i&&(typeof i=="function"?i(e(this,d)):i.current=e(this,d)),l(this,a,Qe).call(this)},Qe=function(){if(U.isBrowser&&(e(this,y).size||e(this,$).size)){const s=e(this,d)instanceof DocumentFragment?e(this,d).firstChild:e(this,d);c(this,we,Gt.connector.subscribe(s,{connectCallback:e(this,Oe),disconnectCallback:e(this,Ze),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},je=function(s){if(s){if(typeof s=="string")e(this,d).classList.add(s);else if(Array.isArray(s))s.forEach(t=>{t&&l(this,a,je).call(this,t)});else if(typeof s=="object")if(s instanceof m.Store)l(this,a,Tt).call(this,s);else for(const t in s){const i=s[t];i instanceof m.Store?l(this,a,Lt).call(this,t,i):i?e(this,d).classList.add(t):e(this,d).classList.remove(t)}}else return},Tt=function(s){e(this,y).add(s.subscribe(({current:t,previous:i})=>{i&&[i].flat().forEach(n=>{n&&e(this,d).classList.remove(n)}),t&&[t].flat().forEach(n=>{n&&e(this,d).classList.add(n)})}))},Lt=function(s,t){e(this,y).add(t.subscribe(({current:i})=>{i?e(this,d).classList.add(s):e(this,d).classList.remove(s)}))},zt=function(s){if(!s)return;e(this,d).tagName==="style"||e(this,d).tagName==="STYLE"?l(this,a,et).call(this,s):l(this,a,Rt).call(this,s)},Rt=function(s){for(const t in s){const i=t,n=s[i];n instanceof m.Store?e(this,y).add(n.subscribe(({current:h})=>{l(this,a,tt).call(this,i,h)})):l(this,a,tt).call(this,i,n)}},et=function(s){for(const t in s){const i=s[t];if(typeof i=="object"&&!(i instanceof m.Store))e(this,d).appendChild(document.createTextNode(`${t} {`)),l(this,a,et).call(this,i),e(this,d).appendChild(document.createTextNode("}"));else if(i instanceof m.Store){const n=document.createTextNode("");e(this,y).add(i.subscribe(h=>{h.current?n.nodeValue=`${pe.camelToKebab(t)}: ${h.current};`:n.nodeValue=""})),e(this,d).appendChild(n)}else e(this,d).appendChild(document.createTextNode(`${pe.camelToKebab(t)}: ${i};`))}},tt=function(s,t){s.includes("--")?t?e(this,d).style.setProperty(s,t.toString()):e(this,d).style.removeProperty(s):t?e(this,d).style[s]=t.toString():e(this,d).style[s]=""},Mt=function(s){if(s){e(this,H)||c(this,H,[]);for(const t in s){const i=t,n=pe.uncapitalize(i.split("on").slice(1).join("on")),h=s[i];typeof h=="object"?e(this,H).push({name:n,callback:h.callback,options:h.options}):typeof h=="function"&&e(this,H).push({name:n,callback:h})}l(this,a,st).call(this)}},st=function(){var s;(s=e(this,H))==null||s.forEach(t=>{e(this,d).addEventListener(t.name,t.callback,t.options)})},it=function(){var s;(s=e(this,H))==null||s.forEach(t=>{e(this,d).removeEventListener(t.name,t.callback,t.options)})},At=function(s){for(const t in s){const i=s[t];i instanceof m.Store?e(this,y).add(i.subscribe(({current:n})=>{l(this,a,nt).call(this,t,n)})):l(this,a,nt).call(this,t,i)}},nt=function(s,t){var n,h;const i=e(this,d);if(s in i&&!((h=(n=i.constructor)==null?void 0:n.observedAttributes)!=null&&h.includes(s)))t!=null&&(i[s]=t.toString());else if(t!=null){const u=t.toString();s.includes("xlink")?i.setAttributeNS("http://www.w3.org/1999/xlink",s,u):i.setAttribute(s,u)}},qe=function(s,t){t&&(t=[t].flat(),t.forEach(i=>{if(i instanceof m.Store){const n=document.createElement("div");n.style.display="contents",s.appendChild(n),e(this,I)||c(this,I,[]);const h=e(this,I).length;n.setAttribute("store-root",""),e(this,I).push(n),e(this,y).add(i.subscribe(({current:u,previous:g})=>{const k=e(this,I)[h];k.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const T=Array.from(k.childNodes),v=Array.isArray(u)?u:[u],ge=Array.isArray(g)?g:[g],Ve=[],x=[];T.length&&ge.forEach((N,P)=>{v.includes(N)?x.push(N):Ve.push(T[P])}),v.forEach((N,P)=>{if(x[P]!=null){if(N!==x[P]){const q=l(this,a,rt).call(this,N),O=T[P];q instanceof Node&&!O.isEqualNode(q)?k.replaceChild(q,O):k.removeChild(O)}}else{const q=l(this,a,rt).call(this,N);q instanceof Node&&n.appendChild(q)}}),Ve.forEach(N=>{k.removeChild(N)}),k.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(i instanceof We)l(this,a,ot).call(this,s,i.node);else if(i instanceof Function)l(this,a,qe).call(this,s,yt.isESClass(i)?new i:i());else{const n=l(this,a,at).call(this,i);n instanceof Node&&l(this,a,ot).call(this,s,n)}}))},ot=function(s,t){!(s instanceof ShadowRoot)&&t instanceof HTMLElement&&t.tagName==="STYLE"?(e(this,$).add(()=>{[...document.head.querySelectorAll("style")].find(n=>n.outerHTML===t.outerHTML)||document.head.appendChild(t)}),e(this,y).add(()=>{t.remove()})):s.appendChild(t)},rt=function(s){return s instanceof We?s.node:typeof s=="function"?yt.isESClass(s)?new s:s():l(this,a,at).call(this,s)},at=function(s){if(s instanceof Node)return s;if(s!=null){const t=String(s);if(t.trim().startsWith("<")&&t.trim().endsWith(">")){const i=document.createElement("div");return i.innerHTML=t,i.firstElementChild}else return document.createTextNode(t)}else return},Oe=new WeakMap,Ze=new WeakMap;let A=We;function p(...r){return new A(...r)}function es(r){return new A("a",r)}function Q(r){return new A("button",r)}function b(r){return new A("div",r)}function De(r){return new A("input",r)}function Nt(r){return new A("label",r)}function ue(r){return new A("slot",r)}function lt(r){return new A("span",r)}function Ft(r){return new A("style",{style:r})}function E(r){const s=new CSSStyleSheet;return s.replaceSync(Ft(r).node.innerHTML),s}function ts(r,s){const t=s==null?void 0:s.prefix,i={style:{}};for(const n in r)i[n]={var:`var(--${t}${pe.camelToKebab(n)})`,value:r[n]},i.style[`--${t}${pe.camelToKebab(n)}`]=r[n];return i}const f=ts({colorMain:"#1c1c1c",colorMainAux:"#282828",colorFont:"#ffffff",colorActive:"#00E5B0",borderRadius:"12px",borderRadiusSmall:"4px"},{prefix:"aptechka-"});if(U.isBrowser){const r=Ft({":root":f.style}).node;r.setAttribute("data-permanent",""),document.head.appendChild(r)}const Pt='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>',$t='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>',ss='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>',is='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>',It=`<svg
|
|
1
|
+
"use strict";var vt=r=>{throw TypeError(r)};var Ue=(r,s,t)=>s.has(r)||vt("Cannot "+t);var e=(r,s,t)=>(Ue(r,s,"read from private field"),t?t.call(r):s.get(r)),o=(r,s,t)=>s.has(r)?vt("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,t),c=(r,s,t,i)=>(Ue(r,s,"write to private field"),i?i.call(r,t):s.set(r,t),t),l=(r,s,t)=>(Ue(r,s,"access private method"),t);const U=require("../browser-CpzFX2xg.cjs"),m=require("../Store-CDb6RMce.cjs"),ue=require("../object-HBC5QlzO.cjs"),Jt=require("../function-MthRj-GJ.cjs"),St=require("../gestures-DHLrn6Q8.cjs");require("../ticker/index.cjs");const we=require("../string-DhgS_iFl.cjs"),Yt=require("../connector/index.cjs"),Gt=require("../Viewport-BDPsnAF4.cjs"),Ut=require("../math-GDWEqu7y.cjs"),Xe=require("../polyfills-CM4SCDTt.cjs"),yt=require("../element-resizer/index.cjs"),Xt=require("../style-At6aDoqG.cjs"),Qt=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view","use"]);var d,$,y,be,I,H,a,kt,Et,xt,Qe,je,Ct,Tt,Lt,zt,et,tt,Rt,st,it,Mt,nt,Be,ot,rt,at,Oe,Ze;const We=class We{constructor(...s){o(this,a);o(this,d,null);o(this,$,new Set);o(this,y,new Set);o(this,be);o(this,I);o(this,H);o(this,Oe,s=>{e(this,$).forEach(t=>{t(s)}),e(this,$).clear()});o(this,Ze,(s,t)=>{e(this,y).forEach(i=>{i(s,t)}),e(this,y).clear(),l(this,a,it).call(this)});if(U.isBrowser){const t=s[0],i=s[1];c(this,d,l(this,a,kt).call(this,t,i==null?void 0:i.forceSvg)),l(this,a,xt).call(this,i)}}get node(){return e(this,d)}set node(s){var t;l(this,a,it).call(this),c(this,d,s),(t=e(this,be))==null||t.call(this),e(this,d)instanceof Element&&c(this,I,[...e(this,d).querySelectorAll("store-root")]),l(this,a,st).call(this),l(this,a,Qe).call(this)}};d=new WeakMap,$=new WeakMap,y=new WeakMap,be=new WeakMap,I=new WeakMap,H=new WeakMap,a=new WeakSet,kt=function(s,t){let i=null;if(s instanceof Node)i=s;else if(typeof s=="string")if(!s.includes("<")&&s.includes("-"))i=new(customElements.get(s));else if(s.includes("<")){const n=document.createElement("div");n.innerHTML=s,i=n.firstElementChild}else Qt.has(s)||t?i=document.createElementNS("http://www.w3.org/2000/svg",s):i=document.createElement(s);else i=document.createElement("div");return i},Et=function(s){return s instanceof HTMLElement||s instanceof SVGElement},xt=function(s){if(!s)return;const t=l(this,a,Et).call(this,e(this,d)),i=s.ref;delete s.ref,s!=null&&s.onConnect&&(e(this,$).add(s.onConnect),delete s.onConnect),s!=null&&s.onDisconnect&&(e(this,y).add(s.onDisconnect),delete s.onDisconnect);let n,h;for(const u in s){const g=s[u];u==="class"&&t?l(this,a,je).call(this,g):u==="style"&&t?l(this,a,Lt).call(this,g):u==="lightChildren"?l(this,a,Be).call(this,e(this,d),g):u==="children"?l(this,a,Be).call(this,e(this,d)instanceof Element?e(this,d).shadowRoot||e(this,d):e(this,d),g):u==="connectedClass"?e(this,$).add(()=>{requestAnimationFrame(()=>{e(this,d).classList.add(typeof g=="boolean"?"connected":g)})}):u.startsWith("on")?(h||(h={}),h[u]=g):(n||(n={}),n[u]=g)}l(this,a,Mt).call(this,n),l(this,a,Rt).call(this,h),i&&(typeof i=="function"?i(e(this,d)):i.current=e(this,d)),l(this,a,Qe).call(this)},Qe=function(){if(U.isBrowser&&(e(this,y).size||e(this,$).size)){const s=e(this,d)instanceof DocumentFragment?e(this,d).firstChild:e(this,d);c(this,be,Yt.connector.subscribe(s,{connectCallback:e(this,Oe),disconnectCallback:e(this,Ze),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},je=function(s){if(s){if(typeof s=="string")e(this,d).classList.add(s);else if(Array.isArray(s))s.forEach(t=>{t&&l(this,a,je).call(this,t)});else if(typeof s=="object")if(s instanceof m.Store)l(this,a,Ct).call(this,s);else for(const t in s){const i=s[t];i instanceof m.Store?l(this,a,Tt).call(this,t,i):i?e(this,d).classList.add(t):e(this,d).classList.remove(t)}}else return},Ct=function(s){e(this,y).add(s.subscribe(({current:t,previous:i})=>{i&&[i].flat().forEach(n=>{n&&e(this,d).classList.remove(n)}),t&&[t].flat().forEach(n=>{n&&e(this,d).classList.add(n)})}))},Tt=function(s,t){e(this,y).add(t.subscribe(({current:i})=>{i?e(this,d).classList.add(s):e(this,d).classList.remove(s)}))},Lt=function(s){if(!s)return;e(this,d).tagName==="style"||e(this,d).tagName==="STYLE"?l(this,a,et).call(this,s):l(this,a,zt).call(this,s)},zt=function(s){for(const t in s){const i=t,n=s[i];n instanceof m.Store?e(this,y).add(n.subscribe(({current:h})=>{l(this,a,tt).call(this,i,h)})):l(this,a,tt).call(this,i,n)}},et=function(s){for(const t in s){const i=s[t];if(typeof i=="object"&&!(i instanceof m.Store))e(this,d).appendChild(document.createTextNode(`${t} {`)),l(this,a,et).call(this,i),e(this,d).appendChild(document.createTextNode("}"));else if(i instanceof m.Store){const n=document.createTextNode("");e(this,y).add(i.subscribe(h=>{h.current?n.nodeValue=`${we.camelToKebab(t)}: ${h.current};`:n.nodeValue=""})),e(this,d).appendChild(n)}else e(this,d).appendChild(document.createTextNode(`${we.camelToKebab(t)}: ${i};`))}},tt=function(s,t){s.includes("--")?t?e(this,d).style.setProperty(s,t.toString()):e(this,d).style.removeProperty(s):t?e(this,d).style[s]=t.toString():e(this,d).style[s]=""},Rt=function(s){if(s){e(this,H)||c(this,H,[]);for(const t in s){const i=t,n=we.uncapitalize(i.split("on").slice(1).join("on")),h=s[i];typeof h=="object"?e(this,H).push({name:n,callback:h.callback,options:h.options}):typeof h=="function"&&e(this,H).push({name:n,callback:h})}l(this,a,st).call(this)}},st=function(){var s;(s=e(this,H))==null||s.forEach(t=>{e(this,d).addEventListener(t.name,t.callback,t.options)})},it=function(){var s;(s=e(this,H))==null||s.forEach(t=>{e(this,d).removeEventListener(t.name,t.callback,t.options)})},Mt=function(s){for(const t in s){const i=s[t];i instanceof m.Store?e(this,y).add(i.subscribe(({current:n})=>{l(this,a,nt).call(this,t,n)})):l(this,a,nt).call(this,t,i)}},nt=function(s,t){var n,h;const i=e(this,d);if(s in i&&!((h=(n=i.constructor)==null?void 0:n.observedAttributes)!=null&&h.includes(s)))t!=null&&(i[s]=t.toString());else if(t!=null){const u=t.toString();s.includes("xlink")?i.setAttributeNS("http://www.w3.org/1999/xlink",s,u):i.setAttribute(s,u)}},Be=function(s,t){t&&(t=[t].flat(),t.forEach(i=>{if(i instanceof m.Store){const n=document.createElement("div");n.style.display="contents",s.appendChild(n),e(this,I)||c(this,I,[]);const h=e(this,I).length;n.setAttribute("store-root",""),e(this,I).push(n),e(this,y).add(i.subscribe(({current:u,previous:g})=>{const k=e(this,I)[h];k.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const T=Array.from(k.childNodes),v=Array.isArray(u)?u:[u],me=Array.isArray(g)?g:[g],qe=[],x=[];T.length&&me.forEach((N,P)=>{v.includes(N)?x.push(N):qe.push(T[P])}),v.forEach((N,P)=>{if(x[P]!=null){if(N!==x[P]){const q=l(this,a,rt).call(this,N),O=T[P];q instanceof Node&&!O.isEqualNode(q)?k.replaceChild(q,O):k.removeChild(O)}}else{const q=l(this,a,rt).call(this,N);q instanceof Node&&n.appendChild(q)}}),qe.forEach(N=>{k.removeChild(N)}),k.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(i instanceof We)l(this,a,ot).call(this,s,i.node);else if(i instanceof Function)l(this,a,Be).call(this,s,ue.isESClass(i)?new i:i());else{const n=l(this,a,at).call(this,i);n instanceof Node&&l(this,a,ot).call(this,s,n)}}))},ot=function(s,t){!(s instanceof ShadowRoot)&&t instanceof HTMLElement&&t.tagName==="STYLE"?(e(this,$).add(()=>{[...document.head.querySelectorAll("style")].find(n=>n.outerHTML===t.outerHTML)||document.head.appendChild(t)}),e(this,y).add(()=>{t.remove()})):s.appendChild(t)},rt=function(s){return s instanceof We?s.node:typeof s=="function"?ue.isESClass(s)?new s:s():l(this,a,at).call(this,s)},at=function(s){if(s instanceof Node)return s;if(s!=null){const t=String(s);if(t.trim().startsWith("<")&&t.trim().endsWith(">")){const i=document.createElement("div");return i.innerHTML=t,i.firstElementChild}else return document.createTextNode(t)}else return},Oe=new WeakMap,Ze=new WeakMap;let A=We;function p(...r){return new A(...r)}function jt(r){return new A("a",r)}function Q(r){return new A("button",r)}function b(r){return new A("div",r)}function Ve(r){return new A("input",r)}function At(r){return new A("label",r)}function fe(r){return new A("slot",r)}function lt(r){return new A("span",r)}function Nt(r){return new A("style",{style:r})}function E(r){const s=new CSSStyleSheet;return s.replaceSync(Nt(r).node.innerHTML),s}function es(r,s){const t=s==null?void 0:s.prefix,i={style:{}};for(const n in r)i[n]={var:`var(--${t}${we.camelToKebab(n)})`,value:r[n]},i.style[`--${t}${we.camelToKebab(n)}`]=r[n];return i}const f=es({colorMain:"#1c1c1c",colorMainAux:"#282828",colorFont:"#ffffff",colorActive:"#00E5B0",borderRadius:"12px",borderRadiusSmall:"4px"},{prefix:"aptechka-"});if(U.isBrowser){const r=Nt({":root":f.style}).node;r.setAttribute("data-permanent",""),document.head.appendChild(r)}const Ft='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>',Pt='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>',ts='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>',ss='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>',$t=`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="32"
|
|
4
4
|
height="32"
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
>
|
|
7
7
|
<path d="m12.37 15.835l6.43-6.63C19.201 8.79 18.958 8 18.43 8H5.57c-.528 0-.771.79-.37 1.205l6.43 6.63c.213.22.527.22.74 0Z" />
|
|
8
8
|
</svg>
|
|
9
|
-
`;var Z,L,D;class ns{constructor(){o(this,Z);o(this,L);o(this,D);this.scrollValue=0,c(this,Z,""),c(this,L,[]),c(this,D,{}),c(this,Z,m.storeRegistry.name+"-tweaker")}openPanel(s){e(this,L).includes(s)||e(this,L).push(s)}closePanel(s){c(this,L,e(this,L).filter(t=>t!==s))}isPanelOpened(s){return e(this,L).includes(s)}changedSizes(s){return e(this,D)[s]}changeSize(s,t){t?e(this,D)[s]=t:delete e(this,D)[s]}save(){const s={openedPanels:e(this,L),changedSizes:e(this,D),scrollValue:this.scrollValue};localStorage.setItem(e(this,Z),JSON.stringify(s)),m.storeRegistry.saveState()}load(){m.storeRegistry.loadState();const s=localStorage.getItem(e(this,Z));if(s)try{const t=JSON.parse(s);t.openedPanels&&c(this,L,t.openedPanels),t.changedSizes&&c(this,D,t.changedSizes),t.scrollValue&&(this.scrollValue=t.scrollValue)}catch(t){console.error(t)}}}Z=new WeakMap,L=new WeakMap,D=new WeakMap;const C=new ns,os='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>',rs=E({":host":{position:"relative",display:"inline-block",width:"30px",height:"30px",borderRadius:f.borderRadiusSmall.var,overflow:"hidden"},"label, .fake":{display:"block"},"label, .fake, .default":{width:"100%",height:"100%"},".real":{position:"absolute",top:"0",left:"0",width:"0px",height:"0px",visibility:"hidden",margin:"0"},".default":{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:f.colorMainAux.var},".default svg":{width:"60%",height:"60%",fill:f.colorFont.var,opacity:0,transition:"var(--duration-short)"},":host(.checked) .default svg":{opacity:1}});var B,j,W,me;const pt=class pt extends HTMLElement{constructor(){super();o(this,W);o(this,B,null);o(this,j);this.attachShadow({mode:"open"}).adoptedStyleSheets.push(rs),c(this,j,this.attachInternals()),p(this,{children:Nt({children:[lt({class:"fake",children:ue({children:[lt({class:"default",children:[os]})]})}),De({ref:i=>{c(this,B,i),i.required=this.hasAttribute("required"),i.value=this.getAttribute("value")||"",i.checked=this.hasAttribute("checked"),i.name=this.getAttribute("name")||"",l(this,W,me).call(this)},class:"real",type:"checkbox",onChange:()=>{l(this,W,me).call(this),this.dispatchEvent(new Event("change",{composed:!0}))}})]})})}get checked(){return e(this,B).checked}set checked(t){e(this,B).checked=t,l(this,W,me).call(this)}get value(){return e(this,B).value}set value(t){e(this,B).value=t,l(this,W,me).call(this)}};B=new WeakMap,j=new WeakMap,W=new WeakSet,me=function(){this.checked?e(this,j).setFormValue(this.value):e(this,j).setFormValue(null),this.classList.toggle("checked",this.checked)},pt.formAssociated=!0;let ht=pt;customElements.get("e-checkbox")||customElements.define("e-checkbox",ht);var _;class fe extends HTMLElement{constructor(...t){super();o(this,_);c(this,_,t)}addStore(t){e(this,_).push(t)}get firstStore(){return e(this,_)[0]}get stores(){return e(this,_)}updateStores(t){e(this,_).forEach(i=>{i.current=t})}}_=new WeakMap;const as=E({":host":{width:"100%",display:"inline-flex",height:"max-content"},"e-checkbox":{"--size":"calc(var(--height-input) * 0.8)",width:"var(--size)",height:"var(--size)",borderRadius:f.borderRadiusSmall.var}});class Ht extends fe{constructor(...s){super(...s),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(as),p(this,{children:[p("e-checkbox",{onChange:i=>{this.updateStores(i.currentTarget.checked)},ref:i=>{this.firstStore.subscribe(n=>{i.checked=n.current})}})]})}}customElements.get("e-tweaker-boolean-manager")||customElements.define("e-tweaker-boolean-manager",Ht);const ls=E({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{width:"100%",height:"var(--height-input)",padding:"0",background:"none",borderRadius:f.borderRadius.var,border:"none",blockSize:"unset"},"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper":{boxSizing:"border-box",padding:"0px",border:"none",borderRadius:f.borderRadius.var,height:"calc(var(--height-input) * 0.93)"}});class Dt extends fe{constructor(...s){super(...s),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(ls),p(this,{children:[De({type:"color",value:this.firstStore,onInput:i=>{this.updateStores(i.currentTarget.value)}})]})}}customElements.get("e-tweaker-color-manager")||customElements.define("e-tweaker-color-manager",Dt);const hs=E({a:{color:"inherit",fontSize:"var(--font-size-small)"}});class Vt extends fe{constructor(...s){var i;super(...s),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(hs),p(this,{children:[es({href:this.firstStore,target:(i=this.firstStore.__manager)!=null&&i.sameWindow?"_self":"_blank",children:this.firstStore})]})}}customElements.get("e-tweaker-link-manager")||customElements.define("e-tweaker-link-manager",Vt);const cs=E({":host":{width:"100%",display:"flex",alignItems:"center",gap:"var(--gap-small)"},".inputs-wrapper":{display:"grid",gap:"var(--gap-small)",width:"100%"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:"var(--font-size-small)",width:"100%",height:"var(--height-input)",margin:"0",padding:"0 var(--gap-small)",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:f.borderRadius.var},".drag":{position:"relative",width:"100%",height:"calc(var(--height-input) * 0.2)",display:"flex",alignItems:"center"},".drag::before":{content:'""',position:"absolute",left:"0",width:"100%",zIndex:"-1",height:"1px",borderBottom:`1px solid ${f.colorFont.var}`,transform:"translateY(-50%)",opacity:"0.3"},":host(.infinite) .drag::before":{borderBottom:`1px dashed ${f.colorFont.var}`},".drag-knob":{"--size":"calc(var(--height-input) * 0.4)",width:"var(--size)",height:"var(--size)"},".drag-knob-inner":{width:"100%",height:"100%",backgroundColor:f.colorFont.var,borderRadius:f.borderRadiusSmall.var,transition:"opacity var(--duration-short)"},":host(.infinite) .grabbing .drag-knob-inner":{opacity:.3}});var J,ee,te,V,K,be,ve,F,Y,ye,Se,w,X,ct,dt,Be,ke;class qt extends fe{constructor(...t){var n,h,u,g;super(...t);o(this,w);o(this,J,[]);o(this,ee,[]);o(this,te);o(this,V);o(this,K);o(this,be);o(this,ve);o(this,F);o(this,Y,!1);o(this,ye,t=>{const i=l(this,w,X).call(this,t);return i.map((n,h)=>{const u=typeof n=="string"?parseFloat(n)||e(this,V):n,g=Xt.clamp(u,e(this,V),e(this,K)),k=Xe.toStep(g,e(this,te));i[h]=k}),e(this,ve)==="number"?i[0]:i});o(this,Se,()=>{l(this,w,X).call(this).map((t,i)=>{const n=e(this,J)[i];n&&(n.value=(t||0).toString())}),l(this,w,ct).call(this)});o(this,ke,()=>{l(this,w,ct).call(this)});this.attachShadow({mode:"open"}).adoptedStyleSheets.push(cs),c(this,V,Xe.nullishCoalescing((n=this.firstStore.__manager)==null?void 0:n.min,-1/0)),c(this,K,Xe.nullishCoalescing((h=this.firstStore.__manager)==null?void 0:h.max,1/0)),c(this,te,((u=this.firstStore.__manager)==null?void 0:u.step)||.01),c(this,be,((g=this.firstStore.__manager)==null?void 0:g.ease)||1),c(this,ve,Array.isArray(this.firstStore.current)?"array":"number"),c(this,F,isFinite(e(this,K))&&isFinite(e(this,V))),p(this,{class:e(this,F)?"":"infinite",children:l(this,w,X).call(this).map((k,T)=>b({class:"inputs-wrapper",children:[De({type:"number",step:e(this,te),min:e(this,V),max:e(this,K),ref:v=>e(this,J).push(v),value:k,onChange:()=>{this.updateStores(e(this,J).map(v=>parseFloat(v.value)))}}),b({class:"drag",children:[b({class:"drag-knob",ref:v=>e(this,ee).push(v),onPointerdown:v=>{v.preventDefault(),c(this,Y,!0);const ge=l(this,w,X).call(this),Ve=ge[T],x=e(this,ee)[T],N=e(this,J)[T];if(x&&N){const P=x.parentElement,q=l(this,w,dt).call(this);P.classList.add("grabbing"),kt.setupDrag(O=>{const bt=O.x-v.x,Zt=e(this,F)?P.offsetWidth/(q||1):1,Wt=Ve+bt/Zt*e(this,be);if(ge[T]=Wt,!e(this,F)){const Jt=l(this,w,Be).call(this,x,0);x.style.transform=`translateX(${Jt+bt}px)`}this.updateStores([...ge])},()=>{if(c(this,Y,!1),!e(this,F)){const O=l(this,w,Be).call(this,x,0);x.style.transition="transform 0.1s",x.style.transform=`translateX(${O}px)`,P.classList.remove("grabbing"),setTimeout(()=>{x.style.transition=""},100)}})}},children:b({class:"drag-knob-inner"})})]})]}))})}connectedCallback(){this.firstStore.addMiddleware(e(this,ye)),this.firstStore.subscribe(e(this,Se)),St.elementResizer.subscribe(this,e(this,ke))}disconnectedCallback(){this.firstStore.removeMiddleware(e(this,ye)),this.firstStore.unsubscribe(e(this,Se)),St.elementResizer.unsubscribe(e(this,ke))}}J=new WeakMap,ee=new WeakMap,te=new WeakMap,V=new WeakMap,K=new WeakMap,be=new WeakMap,ve=new WeakMap,F=new WeakMap,Y=new WeakMap,ye=new WeakMap,Se=new WeakMap,w=new WeakSet,X=function(t=this.firstStore.current){return Array.isArray(t)?t:[t]},ct=function(){l(this,w,X).call(this).map((t,i)=>{const n=e(this,ee)[i];if(n&&(!e(this,Y)||e(this,Y)&&e(this,F))){const h=l(this,w,Be).call(this,n,t);n.style.transform=`translateX(${h}px)`}})},dt=function(){return e(this,F)?e(this,K)-e(this,V):0},Be=function(t,i){const n=t.parentElement,h=l(this,w,dt).call(this),u=h?i/h:.5;return(n.offsetWidth-t.offsetWidth)*u},ke=new WeakMap;customElements.get("e-tweaker-number-manager")||customElements.define("e-tweaker-number-manager",qt);const ds=E({":host":{position:"relative"},".head":{width:"100%",cursor:"default",background:"none",border:"none",color:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",textAlign:"start",padding:"0",margin:"0"},".body":{boxSizing:"border-box",position:"var(--position, unset)",top:"100%",left:"0",width:"100%",overflow:"hidden",transitionDuration:"var(--duration, var(--duration-short))",transitionProperty:"height",cursor:"default"},".body-inner":{display:"grid",gap:"var(--gap, 0px)",width:"100%",paddingTop:"var(--gap, 0px)"}});var se,ie,z,G,ne,oe,Je,Ee,ft;const wt=class wt extends HTMLElement{constructor(){super();o(this,Ee);o(this,se,null);o(this,ie,"");o(this,z,null);o(this,G,!1);o(this,ne);o(this,oe,null);o(this,Je,()=>{_e.dispatchSizeChangeEvent(this)});U.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(ds),c(this,se,this.attachInternals()),c(this,oe,new ResizeObserver(e(this,Je))),p(this,{children:[Q({class:"head",children:ue({name:"head"}),onClick:()=>{this.opened?this.close():this.open()}}),b({class:"body",style:{height:"0px"},children:b({class:"body-inner",children:ue()}),ref:i=>{c(this,z,i)}})]}))}get value(){return e(this,ie)}set value(t){c(this,ie,t),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),e(this,se).setFormValue(e(this,ie))}get internals(){return e(this,se)}get opened(){return e(this,G)}open(){clearTimeout(e(this,ne)),c(this,G,!0),e(this,z).style.display="grid",this.classList.add("triggered"),setTimeout(()=>{this.classList.add("opened"),e(this,z).style.height=e(this,z).scrollHeight+"px",l(this,Ee,ft).call(this)},0)}close(){c(this,G,!1),e(this,z).style.height="0px",this.classList.remove("opened"),l(this,Ee,ft).call(this),c(this,ne,setTimeout(()=>{this.classList.remove("triggered"),e(this,z).style.display="none"},Qt.getElementTransitionDurationMS(e(this,z))))}connectedCallback(){e(this,oe).observe(e(this,z))}disconnectedCallback(){clearTimeout(e(this,ne)),e(this,oe).disconnect()}};se=new WeakMap,ie=new WeakMap,z=new WeakMap,G=new WeakMap,ne=new WeakMap,oe=new WeakMap,Je=new WeakMap,Ee=new WeakSet,ft=function(){_e.dispatchBeforeSizeChangeEvent(this),this.dispatchEvent(new CustomEvent("selectToggle",{bubbles:!0,composed:!0,detail:{opened:e(this,G)}}))},wt.formAssociated=!0;let ut=wt;customElements.get("e-select")||customElements.define("e-select",ut);var xe;class Bt extends HTMLElement{constructor(){super(...arguments);o(this,xe,null)}get selectElement(){return e(this,xe)}connectedCallback(){var i,n;const t=(n=(i=this.assignedSlot)==null?void 0:i.getRootNode())==null?void 0:n.host;t?c(this,xe,t):console.log(this,"e-select not found")}}xe=new WeakMap;const us=E({":host":{width:"100%",height:"40px",display:"inline-flex",alignItems:"center"}});var re,Ce,gt;class fs extends Bt{constructor(){super();o(this,Ce);o(this,re,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""});U.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(us),p(this,{tabindex:0,onClick:()=>{l(this,Ce,gt).call(this)},onKeydown:i=>{i.code==="Space"&&l(this,Ce,gt).call(this)},children:ue()}))}get value(){return(this.hasAttribute("value")?this.getAttribute("value"):this.innerText)||""}connectedCallback(){super.connectedCallback(),this.hasAttribute("default")&&(this.selectElement.value||(this.selectElement.value=this.value)),this.selectElement.addEventListener("change",e(this,re)),setTimeout(()=>{e(this,re).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",e(this,re))}}re=new WeakMap,Ce=new WeakSet,gt=function(){this.selectElement.value=this.value,this.selectElement.close()};customElements.get("e-select-option")||customElements.define("e-select-option",fs);const gs=E({":host":{width:"100%",height:"40px",display:"inline-flex",alignItems:"center",justifyContent:"space-between"},".default-arrow":{flexShrink:"0",width:"var(--arrow-size, 1em)",height:"var(--arrow-size, 1em)",fill:`var(--arrow-color, ${f.colorMain.var})`,transitionProperty:"transform",transitionDuration:"var(--duration, var(--duration-short))"},":host(.opened) .default-arrow":{transform:"scaleY(-1)"}});var Te,ae,Le;class ms extends Bt{constructor(){super();o(this,Te,null);o(this,ae,()=>{const i=this.selectElement.shadowRoot.querySelector(".body slot").assignedElements().find(n=>n.value===this.selectElement.value);i&&(e(this,Te).innerHTML=i.innerHTML)});o(this,Le,()=>{this.classList.toggle("opened",this.selectElement.opened)});U.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(gs),p(this,{children:[ue(),ue({name:"arrow",children:p(It,{class:"default-arrow"})})]}),this.slot="head")}connectedCallback(){super.connectedCallback(),c(this,Te,this.querySelector("[data-value-holder]")||this),this.selectElement.addEventListener("change",e(this,ae)),e(this,ae).call(this),this.selectElement.addEventListener("selectToggle",e(this,Le))}disconnectedCallback(){this.selectElement.removeEventListener("change",e(this,ae)),this.selectElement.removeEventListener("selectToggle",e(this,Le))}}Te=new WeakMap,ae=new WeakMap,Le=new WeakMap;customElements.get("e-select-head")||customElements.define("e-select-head",ms);const ps=E({"e-select":{display:"block",width:"100%","--arrow-color":f.colorFont.var},"e-select-head":{width:"100%",height:"var(--height-input)",display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:"var(--font-size-small)"},"e-select-option":{height:"var(--height-input)",transitionDuration:"var(--duration-short)",transitionProperty:"color",fontSize:"var(--font-size-small)"},"e-select-option:hover":{color:f.colorActive.var},svg:{width:"16px",height:"16px",fill:f.colorFont.var,transitionProperty:"transform",transitionDuration:"var(--duration-short)"},".opened svg":{transform:"scaleY(-1)"}});class _t extends fe{constructor(...s){var n;super(...s),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(ps);const i=((n=this.firstStore.__manager)==null?void 0:n.variants)||[];p(this,{children:p("e-select",{value:this.firstStore,onChange:h=>{this.updateStores(h.currentTarget.value)},lightChildren:[p("e-select-head",{lightChildren:[lt({"data-value-holder":""})]}),...i.map((h,u)=>p("e-select-option",{lightChildren:h,default:u===0?!0:null}))]})})}}customElements.get("e-tweaker-select-manager")||customElements.define("e-tweaker-select-manager",_t);const ws=E({":host":{width:"100%",display:"flex",alignItems:"center"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:"var(--font-size-small)",height:"var(--height-input)",width:"100%",margin:"0",padding:"0 var(--gap-small)",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:f.borderRadius.var}});class Kt extends fe{constructor(...s){super(...s),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(ws),p(this,{children:[De({class:"text-input",type:"string",value:this.firstStore,onChange:i=>{this.updateStores(i.currentTarget.value)}})]})}}customElements.get("e-tweaker-string-manager")||customElements.define("e-tweaker-string-manager",Kt);const bs={boolean:Ht,color:Dt,link:Vt,number:qt,select:_t,string:Kt},vs=E({":host":{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"0.5fr 1fr",alignItems:"center",color:f.colorFont.var,gap:"var(--gap-medium)"},":host(.disabled)":{pointerEvents:"none",opacity:.5},".head":{fontSize:"var(--font-size-medium)",display:"flex",alignItems:"center",gap:"var(--gap-extra-small)"},".head-buttons":{display:"flex"},".head-button":{width:"14px",height:"14px",padding:"0",margin:"0",border:"none",background:"none",fill:f.colorFont.var,transitionDuration:"var(--duration-short)",transitionProperty:"fill, opacity",opacity:"0"},":host(:hover) .head-button":{opacity:"1"},".head-button:hover":{fill:f.colorActive.var},".head-button svg":{width:"100%",height:"100%"}});var R,le,he,ce,de,ze,Re;class mt extends HTMLElement{constructor(t){var h,u;super();o(this,R,[]);o(this,le);o(this,he);o(this,ce,!1);o(this,de);o(this,ze,()=>{m.activeStores.current.find(t=>e(this,R).includes(t))||this.remove()});o(this,Re,t=>{e(this,ce)&&((t.metaKey||t.ctrlKey)&&t.code==="KeyC"?navigator.clipboard.writeText(e(this,R)[0].current):(t.metaKey||t.ctrlKey)&&t.code==="KeyR"&&(e(this,R).forEach(i=>{i.reset()}),t.preventDefault()))});c(this,R,[t.store]),c(this,le,t.store.name),c(this,he,e(this,le).split(".").slice(-1).toString());const i=((h=t.store.__manager)==null?void 0:h.type)||"string";c(this,de,new bs[i](e(this,R)[0])),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(vs),p(this,{class:{disabled:((u=t.store.__manager)==null?void 0:u.disabled)||!1},onPointerleave:()=>{c(this,ce,!1)},onPointerenter:()=>{c(this,ce,!0)},children:[b({class:"head",children:[b({class:"name",children:e(this,he)+":"}),b({class:"head-buttons",children:[Q({class:"head-button",children:$t,onClick:()=>{navigator.clipboard.writeText(e(this,R)[0].current)}}),Q({class:"head-button",children:Pt,onClick:()=>{e(this,R).forEach(g=>{g.reset()})}})]})]}),e(this,de)]})}get key(){return e(this,le)}get name(){return e(this,he)}get stores(){return e(this,R)}addStore(t){e(this,de).addStore(t)}connectedCallback(){m.activeStores.subscribe(e(this,ze)),addEventListener("keydown",e(this,Re)),_e.dispatchSizeChangeEvent(this)}disconnectedCallback(){m.activeStores.unsubscribe(e(this,ze)),removeEventListener("keydown",e(this,Re))}}R=new WeakMap,le=new WeakMap,he=new WeakMap,ce=new WeakMap,de=new WeakMap,ze=new WeakMap,Re=new WeakMap;customElements.get("e-tweaker-field")||customElements.define("e-tweaker-field",mt);const ys=E({".wrapper":{boxSizing:"border-box",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:f.borderRadius.var},".head":{boxSizing:"border-box",width:"100%",height:"var(--tweaker-folder-height)",paddingLeft:"var(--gap-medium)",paddingRight:"var(--gap-medium)",display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:f.colorMainAux.var,borderRadius:f.borderRadius.var},".name":{fontSize:"var(--font-size-large)",color:f.colorFont.var},".body":{display:"none",overflow:"hidden","@supports (height: calc-size(auto))":{height:"0"}},":host(.transition-allowed) .body":{transition:"height var(--duration-short), display var(--duration-short) allow-discrete"},":host(.opened) .body":{height:"calc-size(auto)",display:"block","@starting-style":{height:"0"}},".body-content":{boxSizing:"border-box",padding:"var(--gap-large)",display:"grid",gap:"var(--gap-medium)"},".arrow":{width:"20px",height:"20px",fill:f.colorFont.var,transition:"transform var(--duration-short)"},".opened .arrow":{transform:"scaleY(-1)"}});var M,Me,S,Ae,Ne,Fe,Pe,Ye;const Ge=class Ge extends HTMLElement{constructor(t){super();o(this,M);o(this,Me,new m.Store(null));o(this,S,new m.Store([]));o(this,Ae);o(this,Ne,null);o(this,Fe,null);o(this,Pe,null);o(this,Ye,t=>{let i=[],n=[];t.forEach(h=>{i=[...i,...h.removedNodes],n=[...n,...h.addedNodes]}),e(this,S).current=e(this,S).current.filter(h=>!i.includes(h)),e(this,M)&&!e(this,S).current.length&&!n.length&&this.remove()});this.attachShadow({mode:"open"}).adoptedStyleSheets.push(ys),c(this,M,t.key),c(this,Ae,new MutationObserver(e(this,Ye))),p(this,{children:[b({class:"wrapper",children:[b({class:"head",onClick:n=>{this.classList.toggle("opened"),this.classList.contains("opened")?C.openPanel(e(this,M)):C.closePanel(e(this,M))},children:[e(this,M)?b({class:"name",children:[e(this,M).split(".").slice(-1).toString()]}):null,e(this,Me),p(It,{class:"arrow"})]}),b({class:"body",ref:n=>{c(this,Ne,n)},children:b({class:"body-content",children:e(this,S),ref:n=>{c(this,Fe,n),c(this,Pe,n.firstElementChild)}})})]})]}),t!=null&&t.storeBox&&this.handleStore(t.storeBox)}get key(){return e(this,M)}get head(){return e(this,Me)}get content(){return e(this,S)}get bodyElement(){return e(this,Ne)}get contentElement(){return e(this,Fe)}connectedCallback(){C.isPanelOpened(e(this,M))&&this.classList.add("opened"),setTimeout(()=>{this.classList.add("transition-allowed")}),e(this,Ae).observe(e(this,Pe),{childList:!0})}handleStore(t){if(t.remainingFolders.length){const n=t.store.name.split("."),h=n.slice(0,n.length-t.remainingFolders.length).join("."),u=e(this,S).current.find(g=>g.key===h);u instanceof Ge?u.handleStore({store:t.store,remainingFolders:t.remainingFolders.slice(1)}):e(this,S).current=[...e(this,S).current,new Ge({key:h,storeBox:{store:t.store,remainingFolders:t.remainingFolders.slice(1)}})]}else{const i=e(this,S).current.find(n=>n.key===t.store.name);i instanceof mt?i.addStore(t.store):e(this,S).current=[...e(this,S).current,new mt({store:t.store})]}}};M=new WeakMap,Me=new WeakMap,S=new WeakMap,Ae=new WeakMap,Ne=new WeakMap,Fe=new WeakMap,Pe=new WeakMap,Ye=new WeakMap;let Ke=Ge;customElements.get("e-tweaker-folder")||customElements.define("e-tweaker-folder",Ke);const Ss=E({":host":{"--tweaker-width":"550px","--tweaker-offset":"20px","--tweaker-folder-height":"35px","--height-input":"25px","--gap-large":"12px","--gap-medium":"10px","--gap-small":"8px","--gap-extra-small":"4px","--font-size-large":"16px","--font-size-medium":"14px","--font-size-small":"12px","--duration-short":"0.2s",fontFamily:"sans-serif",position:"absolute",top:"var(--tweaker-offset)",right:"var(--tweaker-offset)",width:"var(--tweaker-width)",backgroundColor:f.colorMain.var,borderRadius:f.borderRadius.var,transition:"opacity 0.1s",zIndex:"100",opacity:"0.1"},":host(:hover)":{opacity:"1 !important"},".resize":{position:"absolute",left:"0",top:"0",width:"calc(var(--tweaker-width) * 0.025)",height:"100%",zIndex:"1",cursor:"ew-resize"},".tweaker-buttons":{display:"flex",alignItems:"center",gap:"var(--gap-extra-small)"},".tweaker-button":{width:"18px",height:"18px",padding:"0",margin:"0",background:"none",border:"none",fill:f.colorFont.var,transitionProperty:"fill",transitionDuration:"var(--duration-short)"},".tweaker-button:hover":{fill:f.colorActive.var},".tweaker-button svg":{width:"100%",height:"100%"},":host .body-content":{maxHeight:`calc(
|
|
9
|
+
`;var Z,L,D;class is{constructor(){o(this,Z);o(this,L);o(this,D);this.scrollValue=0,c(this,Z,""),c(this,L,[]),c(this,D,{}),c(this,Z,m.storeRegistry.name+"-tweaker")}openPanel(s){e(this,L).includes(s)||e(this,L).push(s)}closePanel(s){c(this,L,e(this,L).filter(t=>t!==s))}isPanelOpened(s){return e(this,L).includes(s)}changedSizes(s){return e(this,D)[s]}changeSize(s,t){t?e(this,D)[s]=t:delete e(this,D)[s]}save(){const s={openedPanels:e(this,L),changedSizes:e(this,D),scrollValue:this.scrollValue};localStorage.setItem(e(this,Z),JSON.stringify(s)),m.storeRegistry.saveState()}load(){m.storeRegistry.loadState();const s=localStorage.getItem(e(this,Z));if(s)try{const t=JSON.parse(s);t.openedPanels&&c(this,L,t.openedPanels),t.changedSizes&&c(this,D,t.changedSizes),t.scrollValue&&(this.scrollValue=t.scrollValue)}catch(t){console.error(t)}}}Z=new WeakMap,L=new WeakMap,D=new WeakMap;const C=new is,ns='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 256 256"><path d="m243.33 90.91l-128.41 128.4a16 16 0 0 1-22.63 0l-71.62-72a16 16 0 0 1 0-22.61l24-24a16 16 0 0 1 22.57-.06l36.64 35.27l.11.11l92.73-91.37a16 16 0 0 1 22.58 0l24 23.56a16 16 0 0 1 .03 22.7Z"/></svg>',os=E({":host":{position:"relative",display:"inline-block",width:"30px",height:"30px",borderRadius:f.borderRadiusSmall.var,overflow:"hidden"},"label, .fake":{display:"block"},"label, .fake, .default":{width:"100%",height:"100%"},".real":{position:"absolute",top:"0",left:"0",width:"0px",height:"0px",visibility:"hidden",margin:"0"},".default":{display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:f.colorMainAux.var},".default svg":{width:"60%",height:"60%",fill:f.colorFont.var,opacity:0,transition:"var(--duration-short)"},":host(.checked) .default svg":{opacity:1}});var B,j,W,pe;const pt=class pt extends HTMLElement{constructor(){super();o(this,W);o(this,B,null);o(this,j);this.attachShadow({mode:"open"}).adoptedStyleSheets.push(os),c(this,j,this.attachInternals()),p(this,{children:At({children:[lt({class:"fake",children:fe({children:[lt({class:"default",children:[ns]})]})}),Ve({ref:i=>{c(this,B,i),i.required=this.hasAttribute("required"),i.value=this.getAttribute("value")||"",i.checked=this.hasAttribute("checked"),i.name=this.getAttribute("name")||"",l(this,W,pe).call(this)},class:"real",type:"checkbox",onChange:()=>{l(this,W,pe).call(this),this.dispatchEvent(new Event("change",{composed:!0}))}})]})})}get checked(){return e(this,B).checked}set checked(t){e(this,B).checked=t,l(this,W,pe).call(this)}get value(){return e(this,B).value}set value(t){e(this,B).value=t,l(this,W,pe).call(this)}};B=new WeakMap,j=new WeakMap,W=new WeakSet,pe=function(){this.checked?e(this,j).setFormValue(this.value):e(this,j).setFormValue(null),this.classList.toggle("checked",this.checked)},pt.formAssociated=!0;let ht=pt;customElements.get("e-checkbox")||customElements.define("e-checkbox",ht);var _;class ge extends HTMLElement{constructor(...t){super();o(this,_);c(this,_,t)}addStore(t){e(this,_).push(t)}get firstStore(){return e(this,_)[0]}get stores(){return e(this,_)}updateStores(t){e(this,_).forEach(i=>{i.current=t})}}_=new WeakMap;const rs=E({":host":{width:"100%",display:"inline-flex",height:"max-content"},"e-checkbox":{"--size":"calc(var(--height-input) * 0.8)",width:"var(--size)",height:"var(--size)",borderRadius:f.borderRadiusSmall.var}});class It extends ge{constructor(...s){super(...s),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(rs),p(this,{children:[p("e-checkbox",{onChange:i=>{this.updateStores(i.currentTarget.checked)},ref:i=>{this.firstStore.subscribe(n=>{i.checked=n.current})}})]})}}customElements.get("e-tweaker-boolean-manager")||customElements.define("e-tweaker-boolean-manager",It);const as=E({":host":{width:"100%",display:"inline-flex",height:"max-content"},input:{width:"100%",height:"var(--height-input)",padding:"0",background:"none",borderRadius:f.borderRadius.var,border:"none",blockSize:"unset"},"input::-webkit-color-swatch, input::-webkit-color-swatch-wrapper":{boxSizing:"border-box",padding:"0px",border:"none",borderRadius:f.borderRadius.var,height:"calc(var(--height-input) * 0.93)"}});class Ht extends ge{constructor(...s){super(...s),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(as),p(this,{children:[Ve({type:"color",value:this.firstStore,onInput:i=>{this.updateStores(i.currentTarget.value)}})]})}}customElements.get("e-tweaker-color-manager")||customElements.define("e-tweaker-color-manager",Ht);const ls=E({a:{color:"inherit",fontSize:"var(--font-size-small)"}});class Dt extends ge{constructor(...s){var i;super(...s),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(ls),p(this,{children:[jt({href:this.firstStore,target:(i=this.firstStore.__manager)!=null&&i.sameWindow?"_self":"_blank",children:this.firstStore})]})}}customElements.get("e-tweaker-link-manager")||customElements.define("e-tweaker-link-manager",Dt);const hs=E({":host":{width:"100%",display:"flex",alignItems:"center",gap:"var(--gap-small)"},".inputs-wrapper":{display:"grid",gap:"var(--gap-small)",width:"100%"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:"var(--font-size-small)",width:"100%",height:"var(--height-input)",margin:"0",padding:"0 var(--gap-small)",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:f.borderRadius.var},".drag":{position:"relative",width:"100%",height:"calc(var(--height-input) * 0.2)",display:"flex",alignItems:"center"},".drag::before":{content:'""',position:"absolute",left:"0",width:"100%",zIndex:"-1",height:"1px",borderBottom:`1px solid ${f.colorFont.var}`,transform:"translateY(-50%)",opacity:"0.3"},":host(.infinite) .drag::before":{borderBottom:`1px dashed ${f.colorFont.var}`},".drag-knob":{"--size":"calc(var(--height-input) * 0.4)",width:"var(--size)",height:"var(--size)"},".drag-knob-inner":{width:"100%",height:"100%",backgroundColor:f.colorFont.var,borderRadius:f.borderRadiusSmall.var,transition:"opacity var(--duration-short)"},":host(.infinite) .grabbing .drag-knob-inner":{opacity:.3}});var J,ee,te,V,K,ve,ye,F,Y,Se,ke,w,X,ct,dt,_e,Ee;class Vt extends ge{constructor(...t){var n,h,u,g;super(...t);o(this,w);o(this,J,[]);o(this,ee,[]);o(this,te);o(this,V);o(this,K);o(this,ve);o(this,ye);o(this,F);o(this,Y,!1);o(this,Se,t=>{const i=l(this,w,X).call(this,t);return i.map((n,h)=>{const u=typeof n=="string"?parseFloat(n)||e(this,V):n,g=Ut.clamp(u,e(this,V),e(this,K)),k=Xe.toStep(g,e(this,te));i[h]=k}),e(this,ye)==="number"?i[0]:i});o(this,ke,()=>{l(this,w,X).call(this).map((t,i)=>{const n=e(this,J)[i];n&&(n.value=(t||0).toString())}),l(this,w,ct).call(this)});o(this,Ee,()=>{l(this,w,ct).call(this)});this.attachShadow({mode:"open"}).adoptedStyleSheets.push(hs),c(this,V,Xe.nullishCoalescing((n=this.firstStore.__manager)==null?void 0:n.min,-1/0)),c(this,K,Xe.nullishCoalescing((h=this.firstStore.__manager)==null?void 0:h.max,1/0)),c(this,te,((u=this.firstStore.__manager)==null?void 0:u.step)||.01),c(this,ve,((g=this.firstStore.__manager)==null?void 0:g.ease)||1),c(this,ye,Array.isArray(this.firstStore.current)?"array":"number"),c(this,F,isFinite(e(this,K))&&isFinite(e(this,V))),p(this,{class:e(this,F)?"":"infinite",children:l(this,w,X).call(this).map((k,T)=>b({class:"inputs-wrapper",children:[Ve({type:"number",step:e(this,te),min:e(this,V),max:e(this,K),ref:v=>e(this,J).push(v),value:k,onChange:()=>{this.updateStores(e(this,J).map(v=>parseFloat(v.value)))}}),b({class:"drag",children:[b({class:"drag-knob",ref:v=>e(this,ee).push(v),onPointerdown:v=>{v.preventDefault(),c(this,Y,!0);const me=l(this,w,X).call(this),qe=me[T],x=e(this,ee)[T],N=e(this,J)[T];if(x&&N){const P=x.parentElement,q=l(this,w,dt).call(this);P.classList.add("grabbing"),St.setupDrag(O=>{const bt=O.x-v.x,Ot=e(this,F)?P.offsetWidth/(q||1):1,Zt=qe+bt/Ot*e(this,ve);if(me[T]=Zt,!e(this,F)){const Wt=l(this,w,_e).call(this,x,0);x.style.transform=`translateX(${Wt+bt}px)`}this.updateStores([...me])},()=>{if(c(this,Y,!1),!e(this,F)){const O=l(this,w,_e).call(this,x,0);x.style.transition="transform 0.1s",x.style.transform=`translateX(${O}px)`,P.classList.remove("grabbing"),setTimeout(()=>{x.style.transition=""},100)}})}},children:b({class:"drag-knob-inner"})})]})]}))})}connectedCallback(){this.firstStore.addMiddleware(e(this,Se)),this.firstStore.subscribe(e(this,ke)),yt.elementResizer.subscribe(this,e(this,Ee))}disconnectedCallback(){this.firstStore.removeMiddleware(e(this,Se)),this.firstStore.unsubscribe(e(this,ke)),yt.elementResizer.unsubscribe(e(this,Ee))}}J=new WeakMap,ee=new WeakMap,te=new WeakMap,V=new WeakMap,K=new WeakMap,ve=new WeakMap,ye=new WeakMap,F=new WeakMap,Y=new WeakMap,Se=new WeakMap,ke=new WeakMap,w=new WeakSet,X=function(t=this.firstStore.current){return Array.isArray(t)?t:[t]},ct=function(){l(this,w,X).call(this).map((t,i)=>{const n=e(this,ee)[i];if(n&&(!e(this,Y)||e(this,Y)&&e(this,F))){const h=l(this,w,_e).call(this,n,t);n.style.transform=`translateX(${h}px)`}})},dt=function(){return e(this,F)?e(this,K)-e(this,V):0},_e=function(t,i){const n=t.parentElement,h=l(this,w,dt).call(this),u=h?i/h:.5;return(n.offsetWidth-t.offsetWidth)*u},Ee=new WeakMap;customElements.get("e-tweaker-number-manager")||customElements.define("e-tweaker-number-manager",Vt);const cs=E({":host":{position:"relative"},".head":{width:"100%",cursor:"default",background:"none",border:"none",color:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",textAlign:"start",padding:"0",margin:"0"},".body":{boxSizing:"border-box",position:"var(--position, unset)",top:"100%",left:"0",width:"100%",overflow:"hidden",transitionDuration:"var(--duration, var(--duration-short))",transitionProperty:"height",cursor:"default"},".body-inner":{display:"grid",gap:"var(--gap, 0px)",width:"100%",paddingTop:"var(--gap, 0px)"}});var se,ie,z,G,ne,oe,Je,xe,ft;const wt=class wt extends HTMLElement{constructor(){super();o(this,xe);o(this,se,null);o(this,ie,"");o(this,z,null);o(this,G,!1);o(this,ne);o(this,oe,null);o(this,Je,()=>{ue.dispatchSizeChangeEvent(this)});U.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(cs),c(this,se,this.attachInternals()),c(this,oe,new ResizeObserver(e(this,Je))),p(this,{children:[Q({class:"head",children:fe({name:"head"}),onClick:()=>{this.opened?this.close():this.open()}}),b({class:"body",style:{height:"0px"},children:b({class:"body-inner",children:fe()}),ref:i=>{c(this,z,i)}})]}))}get value(){return e(this,ie)}set value(t){c(this,ie,t),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),e(this,se).setFormValue(e(this,ie))}get internals(){return e(this,se)}get opened(){return e(this,G)}open(){clearTimeout(e(this,ne)),c(this,G,!0),e(this,z).style.display="grid",this.classList.add("triggered"),setTimeout(()=>{this.classList.add("opened"),e(this,z).style.height=e(this,z).scrollHeight+"px",l(this,xe,ft).call(this)},0)}close(){c(this,G,!1),e(this,z).style.height="0px",this.classList.remove("opened"),l(this,xe,ft).call(this),c(this,ne,setTimeout(()=>{this.classList.remove("triggered"),e(this,z).style.display="none"},Xt.getElementTransitionDurationMS(e(this,z))))}connectedCallback(){e(this,oe).observe(e(this,z))}disconnectedCallback(){clearTimeout(e(this,ne)),e(this,oe).disconnect()}};se=new WeakMap,ie=new WeakMap,z=new WeakMap,G=new WeakMap,ne=new WeakMap,oe=new WeakMap,Je=new WeakMap,xe=new WeakSet,ft=function(){ue.dispatchBeforeSizeChangeEvent(this),this.dispatchEvent(new CustomEvent("selectToggle",{bubbles:!0,composed:!0,detail:{opened:e(this,G)}}))},wt.formAssociated=!0;let ut=wt;customElements.get("e-select")||customElements.define("e-select",ut);var Ce;class qt extends HTMLElement{constructor(){super(...arguments);o(this,Ce,null)}get selectElement(){return e(this,Ce)}connectedCallback(){var i,n;const t=(n=(i=this.assignedSlot)==null?void 0:i.getRootNode())==null?void 0:n.host;t?c(this,Ce,t):console.log(this,"e-select not found")}}Ce=new WeakMap;const ds=E({":host":{width:"100%",height:"40px",display:"inline-flex",alignItems:"center"}});var re,Te,gt;class us extends qt{constructor(){super();o(this,Te);o(this,re,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""});U.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(ds),p(this,{tabindex:0,onClick:()=>{l(this,Te,gt).call(this)},onKeydown:i=>{i.code==="Space"&&l(this,Te,gt).call(this)},children:fe()}))}get value(){return(this.hasAttribute("value")?this.getAttribute("value"):this.innerText)||""}connectedCallback(){super.connectedCallback(),this.hasAttribute("default")&&(this.selectElement.value||(this.selectElement.value=this.value)),this.selectElement.addEventListener("change",e(this,re)),setTimeout(()=>{e(this,re).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",e(this,re))}}re=new WeakMap,Te=new WeakSet,gt=function(){this.selectElement.value=this.value,this.selectElement.close()};customElements.get("e-select-option")||customElements.define("e-select-option",us);const fs=E({":host":{width:"100%",height:"40px",display:"inline-flex",alignItems:"center",justifyContent:"space-between"},".default-arrow":{flexShrink:"0",width:"var(--arrow-size, 1em)",height:"var(--arrow-size, 1em)",fill:`var(--arrow-color, ${f.colorMain.var})`,transitionProperty:"transform",transitionDuration:"var(--duration, var(--duration-short))"},":host(.opened) .default-arrow":{transform:"scaleY(-1)"}});var Le,ae,ze;class gs extends qt{constructor(){super();o(this,Le,null);o(this,ae,()=>{const i=this.selectElement.shadowRoot.querySelector(".body slot").assignedElements().find(n=>n.value===this.selectElement.value);i&&(e(this,Le).innerHTML=i.innerHTML)});o(this,ze,()=>{this.classList.toggle("opened",this.selectElement.opened)});U.isBrowser&&(this.attachShadow({mode:"open"}).adoptedStyleSheets.push(fs),p(this,{children:[fe(),fe({name:"arrow",children:p($t,{class:"default-arrow"})})]}),this.slot="head")}connectedCallback(){super.connectedCallback(),c(this,Le,this.querySelector("[data-value-holder]")||this),this.selectElement.addEventListener("change",e(this,ae)),e(this,ae).call(this),this.selectElement.addEventListener("selectToggle",e(this,ze))}disconnectedCallback(){this.selectElement.removeEventListener("change",e(this,ae)),this.selectElement.removeEventListener("selectToggle",e(this,ze))}}Le=new WeakMap,ae=new WeakMap,ze=new WeakMap;customElements.get("e-select-head")||customElements.define("e-select-head",gs);const ms=E({"e-select":{display:"block",width:"100%","--arrow-color":f.colorFont.var},"e-select-head":{width:"100%",height:"var(--height-input)",display:"flex",alignItems:"center",justifyContent:"space-between",fontSize:"var(--font-size-small)"},"e-select-option":{height:"var(--height-input)",transitionDuration:"var(--duration-short)",transitionProperty:"color",fontSize:"var(--font-size-small)"},"e-select-option:hover":{color:f.colorActive.var},svg:{width:"16px",height:"16px",fill:f.colorFont.var,transitionProperty:"transform",transitionDuration:"var(--duration-short)"},".opened svg":{transform:"scaleY(-1)"}});class Bt extends ge{constructor(...s){var n;super(...s),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(ms);const i=((n=this.firstStore.__manager)==null?void 0:n.variants)||[];p(this,{children:p("e-select",{value:this.firstStore,onChange:h=>{this.updateStores(h.currentTarget.value)},lightChildren:[p("e-select-head",{lightChildren:[lt({"data-value-holder":""})]}),...i.map((h,u)=>p("e-select-option",{lightChildren:h,default:u===0?!0:null}))]})})}}customElements.get("e-tweaker-select-manager")||customElements.define("e-tweaker-select-manager",Bt);const ps=E({":host":{width:"100%",display:"flex",alignItems:"center"},input:{boxSizing:"border-box",outline:"none",fontVariantNumeric:"tabular-nums",fontFamily:"inherit",color:"inherit",border:"none",fontSize:"var(--font-size-small)",height:"var(--height-input)",width:"100%",margin:"0",padding:"0 var(--gap-small)",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:f.borderRadius.var}});class _t extends ge{constructor(...s){super(...s),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(ps),p(this,{children:[Ve({class:"text-input",type:"string",value:this.firstStore,onChange:i=>{this.updateStores(i.currentTarget.value)}})]})}}customElements.get("e-tweaker-string-manager")||customElements.define("e-tweaker-string-manager",_t);const ws={boolean:It,color:Ht,link:Dt,number:Vt,select:Bt,string:_t},bs=E({":host":{display:"grid",gridAutoFlow:"column",gridTemplateColumns:"0.5fr 1fr",alignItems:"center",color:f.colorFont.var,gap:"var(--gap-medium)"},":host(.disabled)":{pointerEvents:"none",opacity:.5},".head":{fontSize:"var(--font-size-medium)",display:"flex",alignItems:"center",gap:"var(--gap-extra-small)"},".head-buttons":{display:"flex"},".head-button":{width:"14px",height:"14px",padding:"0",margin:"0",border:"none",background:"none",fill:f.colorFont.var,transitionDuration:"var(--duration-short)",transitionProperty:"fill, opacity",opacity:"0"},":host(:hover) .head-button":{opacity:"1"},".head-button:hover":{fill:f.colorActive.var},".head-button svg":{width:"100%",height:"100%"}});var R,le,he,ce,de,Re,Me;class mt extends HTMLElement{constructor(t){var h,u;super();o(this,R,[]);o(this,le);o(this,he);o(this,ce,!1);o(this,de);o(this,Re,()=>{m.activeStores.current.find(t=>e(this,R).includes(t))||this.remove()});o(this,Me,t=>{e(this,ce)&&((t.metaKey||t.ctrlKey)&&t.code==="KeyC"?navigator.clipboard.writeText(e(this,R)[0].current):(t.metaKey||t.ctrlKey)&&t.code==="KeyR"&&(e(this,R).forEach(i=>{i.reset()}),t.preventDefault()))});c(this,R,[t.store]),c(this,le,t.store.name),c(this,he,e(this,le).split(".").slice(-1).toString());const i=((h=t.store.__manager)==null?void 0:h.type)||"string";c(this,de,new ws[i](e(this,R)[0])),this.attachShadow({mode:"open"}).adoptedStyleSheets.push(bs),p(this,{class:{disabled:((u=t.store.__manager)==null?void 0:u.disabled)||!1},onPointerleave:()=>{c(this,ce,!1)},onPointerenter:()=>{c(this,ce,!0)},children:[b({class:"head",children:[b({class:"name",children:e(this,he)+":"}),b({class:"head-buttons",children:[Q({class:"head-button",children:Pt,onClick:()=>{navigator.clipboard.writeText(e(this,R)[0].current)}}),Q({class:"head-button",children:Ft,onClick:()=>{e(this,R).forEach(g=>{g.reset()})}})]})]}),e(this,de)]})}get key(){return e(this,le)}get name(){return e(this,he)}get stores(){return e(this,R)}addStore(t){e(this,de).addStore(t)}connectedCallback(){m.activeStores.subscribe(e(this,Re)),addEventListener("keydown",e(this,Me)),ue.dispatchSizeChangeEvent(this)}disconnectedCallback(){m.activeStores.unsubscribe(e(this,Re)),removeEventListener("keydown",e(this,Me))}}R=new WeakMap,le=new WeakMap,he=new WeakMap,ce=new WeakMap,de=new WeakMap,Re=new WeakMap,Me=new WeakMap;customElements.get("e-tweaker-field")||customElements.define("e-tweaker-field",mt);const vs=E({".wrapper":{boxSizing:"border-box",backgroundColor:"rgba(255, 255, 255, 0.1)",borderRadius:f.borderRadius.var},".head":{boxSizing:"border-box",width:"100%",height:"var(--tweaker-folder-height)",paddingLeft:"var(--gap-medium)",paddingRight:"var(--gap-medium)",display:"flex",alignItems:"center",justifyContent:"space-between",backgroundColor:f.colorMainAux.var,borderRadius:f.borderRadius.var},".name":{fontSize:"var(--font-size-large)",color:f.colorFont.var},".body":{display:"none",overflow:"hidden","@supports (height: calc-size(auto))":{height:"0"}},":host(.transition-allowed) .body":{transition:"height var(--duration-short), display var(--duration-short) allow-discrete"},":host(.opened) .body":{height:"calc-size(auto)",display:"block","@starting-style":{height:"0"}},".body-content":{boxSizing:"border-box",padding:"var(--gap-large)",display:"grid",gap:"var(--gap-medium)"},".arrow":{width:"20px",height:"20px",fill:f.colorFont.var,transition:"transform var(--duration-short)"},".opened .arrow":{transform:"scaleY(-1)"}});var M,Ae,S,Ne,Fe,Pe,$e,Ye;const Ge=class Ge extends HTMLElement{constructor(t){super();o(this,M);o(this,Ae,new m.Store(null));o(this,S,new m.Store([]));o(this,Ne);o(this,Fe,null);o(this,Pe,null);o(this,$e,null);o(this,Ye,t=>{let i=[],n=[];t.forEach(h=>{i=[...i,...h.removedNodes],n=[...n,...h.addedNodes]}),e(this,S).current=e(this,S).current.filter(h=>!i.includes(h)),e(this,M)&&!e(this,S).current.length&&!n.length&&this.remove()});this.attachShadow({mode:"open"}).adoptedStyleSheets.push(vs),c(this,M,t.key),c(this,Ne,new MutationObserver(e(this,Ye))),p(this,{children:[b({class:"wrapper",children:[b({class:"head",onClick:n=>{this.classList.toggle("opened"),this.classList.contains("opened")?C.openPanel(e(this,M)):C.closePanel(e(this,M))},children:[e(this,M)?b({class:"name",children:[e(this,M).split(".").slice(-1).toString()]}):null,e(this,Ae),p($t,{class:"arrow"})]}),b({class:"body",ref:n=>{c(this,Fe,n)},children:b({class:"body-content",children:e(this,S),ref:n=>{c(this,Pe,n),c(this,$e,n.firstElementChild)}})})]})]}),t!=null&&t.storeBox&&this.handleStore(t.storeBox)}get key(){return e(this,M)}get head(){return e(this,Ae)}get content(){return e(this,S)}get bodyElement(){return e(this,Fe)}get contentElement(){return e(this,Pe)}connectedCallback(){C.isPanelOpened(e(this,M))&&this.classList.add("opened"),setTimeout(()=>{this.classList.add("transition-allowed")}),e(this,Ne).observe(e(this,$e),{childList:!0})}handleStore(t){if(t.remainingFolders.length){const n=t.store.name.split("."),h=n.slice(0,n.length-t.remainingFolders.length).join("."),u=e(this,S).current.find(g=>g.key===h);u instanceof Ge?u.handleStore({store:t.store,remainingFolders:t.remainingFolders.slice(1)}):e(this,S).current=[...e(this,S).current,new Ge({key:h,storeBox:{store:t.store,remainingFolders:t.remainingFolders.slice(1)}})]}else{const i=e(this,S).current.find(n=>n.key===t.store.name);i instanceof mt?i.addStore(t.store):e(this,S).current=[...e(this,S).current,new mt({store:t.store})]}}};M=new WeakMap,Ae=new WeakMap,S=new WeakMap,Ne=new WeakMap,Fe=new WeakMap,Pe=new WeakMap,$e=new WeakMap,Ye=new WeakMap;let Ke=Ge;customElements.get("e-tweaker-folder")||customElements.define("e-tweaker-folder",Ke);const ys=E({":host":{"--tweaker-width":"550px","--tweaker-offset":"20px","--tweaker-folder-height":"35px","--height-input":"25px","--gap-large":"12px","--gap-medium":"10px","--gap-small":"8px","--gap-extra-small":"4px","--font-size-large":"16px","--font-size-medium":"14px","--font-size-small":"12px","--duration-short":"0.2s",fontFamily:"sans-serif",position:"absolute",top:"var(--tweaker-offset)",right:"var(--tweaker-offset)",width:"var(--tweaker-width)",backgroundColor:f.colorMain.var,borderRadius:f.borderRadius.var,transition:"opacity 0.1s",zIndex:"100",opacity:"0.1"},":host(:hover)":{opacity:"1 !important"},".resize":{position:"absolute",left:"0",top:"0",width:"calc(var(--tweaker-width) * 0.025)",height:"100%",zIndex:"1",cursor:"ew-resize"},".tweaker-buttons":{display:"flex",alignItems:"center",gap:"var(--gap-extra-small)"},".tweaker-button":{width:"18px",height:"18px",padding:"0",margin:"0",background:"none",border:"none",fill:f.colorFont.var,transitionProperty:"fill",transitionDuration:"var(--duration-short)"},".tweaker-button:hover":{fill:f.colorActive.var},".tweaker-button svg":{width:"100%",height:"100%"},":host .body-content":{maxHeight:`calc(
|
|
10
10
|
100dvh -
|
|
11
11
|
(
|
|
12
12
|
var(--tweaker-offset) * 2 +
|
|
13
13
|
var(--tweaker-folder-height)
|
|
14
14
|
)
|
|
15
|
-
)`,overflow:"hidden auto","-ms-overflow-style":"none","scrollbar-width":"none"},":host .body-content::-webkit-scrollbar":{display:"none"},[`@media ${
|
|
15
|
+
)`,overflow:"hidden auto","-ms-overflow-style":"none","scrollbar-width":"none"},":host .body-content::-webkit-scrollbar":{display:"none"},[`@media ${Gt.ViewportMediaRules["<=mobile"]}`]:{":host":{position:"absolute",top:"0",right:"0",width:"100% !important",borderTopLeftRadius:"0",borderTopRightRadius:"0"},":host .body-content":{maxHeight:`calc(
|
|
16
16
|
100dvh -
|
|
17
17
|
var(--tweaker-folder-height)
|
|
18
|
-
)`}}});var
|
|
18
|
+
)`}}});var Ie,He,De;class Kt extends Ke{constructor(){super({key:""});o(this,Ie,!1);o(this,He,()=>{C.save()});o(this,De,Jt.debounce(()=>{m.activeStores.current.forEach(t=>{if(t.name){const i=t.name.split(".");this.handleStore({store:t,remainingFolders:i.length>1?i.slice(0,-1):[]})}}),e(this,Ie)||(c(this,Ie,!0),this.contentElement.scroll({top:C.scrollValue}),this.contentElement.addEventListener("scroll",()=>{C.scrollValue=this.contentElement.scrollTop}))},10));C.load(),this.shadowRoot.adoptedStyleSheets.push(ys),this.head.current=[b({class:"tweaker-buttons",onClick:t=>{t.stopPropagation()},children:[Q({class:"tweaker-button",children:Ft,onClick:()=>{m.storeRegistry.resetState()}}),Q({class:["tweaker-button"],children:[Pt],onClick:()=>{navigator.clipboard.writeText(JSON.stringify(m.storeRegistry.getState()))}}),Q({class:"tweaker-button",children:ts,onClick:()=>{ue.createJSONAndSave(m.storeRegistry.name,m.storeRegistry.getState())}}),At({class:"tweaker-button",children:[ss,Ve({type:"file",style:{display:"none"},onChange:t=>{var h;const n=(h=t.currentTarget.files)==null?void 0:h[0];if(n){const u=new FileReader;u.onload=g=>{var T,v;const k=(v=(T=g.target)==null?void 0:T.result)==null?void 0:v.toString();k&&m.storeRegistry.loadState(k)},u.readAsText(n)}}})]})]})],p(this.bodyElement,{children:[b({class:"resize",onPointerdown:t=>{t.preventDefault();const i=this.getBoundingClientRect(),n=this.contentElement.scrollTop;St.setupDrag(h=>{const u=t.x-h.x,g=Math.max(400,i.width+u);this.style.width=g+"px",C.changeSize("tweaker",g)},()=>{setTimeout(()=>{this.contentElement.scroll({top:n})},10)})},onDblclick:()=>{this.style.width="",C.changeSize("tweaker",null)}})]})}connectedCallback(){super.connectedCallback(),window.addEventListener("beforeunload",e(this,He)),m.activeStores.subscribe(e(this,De)),C.changedSizes("tweaker")&&(this.style.width=C.changedSizes("tweaker")+"px")}disconnectedCallback(){window.removeEventListener("beforeunload",e(this,He)),C.save(),m.activeStores.unsubscribe(e(this,De))}}Ie=new WeakMap,He=new WeakMap,De=new WeakMap;customElements.get("e-tweaker")||customElements.define("e-tweaker",Kt);U.isBrowser&&document.body.appendChild(new Kt);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -5,12 +5,11 @@ var Xe = (r, s, t) => s.has(r) || vt("Cannot " + t);
|
|
|
5
5
|
var e = (r, s, t) => (Xe(r, s, "read from private field"), t ? t.call(r) : s.get(r)), o = (r, s, t) => s.has(r) ? vt("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(r) : s.set(r, t), c = (r, s, t, i) => (Xe(r, s, "write to private field"), i ? i.call(r, t) : s.set(r, t), t), l = (r, s, t) => (Xe(r, s, "access private method"), t);
|
|
6
6
|
import { i as X } from "../browser-0zX67oeU.js";
|
|
7
7
|
import { S as P, s as B, a as j } from "../Store-OTdcl6SX.js";
|
|
8
|
-
import { d as Et, a as Ut, c as Xt } from "../
|
|
8
|
+
import { g as yt, d as Et, a as Ut, c as Xt } from "../object-DOa0yKM9.js";
|
|
9
9
|
import { d as Qt } from "../function-C10DGppn.js";
|
|
10
10
|
import { s as xt } from "../gestures-D2Fdra_G.js";
|
|
11
11
|
import "../ticker/index.js";
|
|
12
12
|
import { c as Oe, u as jt } from "../string-f0Dnk0L1.js";
|
|
13
|
-
import { i as yt } from "../object-D6MVWB4l.js";
|
|
14
13
|
import { connector as es } from "../connector/index.js";
|
|
15
14
|
import { a as ts } from "../Viewport-taEXS8Uv.js";
|
|
16
15
|
import { c as ss } from "../math-BOBiC4TN.js";
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface SelectToggleDetail {
|
|
2
|
+
opened: boolean;
|
|
3
|
+
}
|
|
4
|
+
export declare class SelectElement extends HTMLElement {
|
|
5
|
+
#private;
|
|
6
|
+
static formAssociated: boolean;
|
|
7
|
+
constructor();
|
|
8
|
+
get value(): string;
|
|
9
|
+
set value(value: string);
|
|
10
|
+
get internals(): ElementInternals;
|
|
11
|
+
get opened(): boolean;
|
|
12
|
+
open(): void;
|
|
13
|
+
close(): void;
|
|
14
|
+
protected connectedCallback(): void;
|
|
15
|
+
protected disconnectedCallback(): void;
|
|
16
|
+
}
|
|
17
|
+
declare global {
|
|
18
|
+
interface HTMLElementTagNameMap {
|
|
19
|
+
'e-select': SelectElement;
|
|
20
|
+
}
|
|
21
|
+
interface HTMLElementEventMap {
|
|
22
|
+
selectToggle: CustomEvent<SelectToggleDetail>;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SelectUserElement } from './SelectUserElement';
|
|
2
|
+
export declare class SelectHeadElement extends SelectUserElement {
|
|
3
|
+
#private;
|
|
4
|
+
constructor();
|
|
5
|
+
protected connectedCallback(): void;
|
|
6
|
+
protected disconnectedCallback(): void;
|
|
7
|
+
}
|
|
8
|
+
declare global {
|
|
9
|
+
interface HTMLElementTagNameMap {
|
|
10
|
+
'e-select-head': SelectHeadElement;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SelectUserElement } from './SelectUserElement';
|
|
2
|
+
export declare class SelectOptionElement extends SelectUserElement {
|
|
3
|
+
#private;
|
|
4
|
+
constructor();
|
|
5
|
+
get value(): string;
|
|
6
|
+
protected connectedCallback(): void;
|
|
7
|
+
protected disconnectedCallback(): void;
|
|
8
|
+
}
|
|
9
|
+
declare global {
|
|
10
|
+
interface HTMLElementTagNameMap {
|
|
11
|
+
'e-select-option': SelectOptionElement;
|
|
12
|
+
}
|
|
13
|
+
}
|