aptechka 0.1.19 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/lib/ElementConstructor-1bvPqYNa.js +313 -0
  2. package/lib/ElementConstructor-CdUaQS-S.cjs +1 -0
  3. package/lib/abstract-elements/index.cjs +1 -1
  4. package/lib/abstract-elements/index.js +1 -1
  5. package/lib/accordion/index.cjs +1 -1
  6. package/lib/accordion/index.js +9 -11
  7. package/lib/canvas/index.cjs +1 -1
  8. package/lib/canvas/index.js +2 -2
  9. package/lib/{createStylesheet-DTOK6fTn.cjs → createStylesheet-B5Nhxdpo.cjs} +1 -1
  10. package/lib/{createStylesheet-Zqf3lXhM.js → createStylesheet-DpGvTRP3.js} +1 -1
  11. package/lib/{createTheme-B_W5dUY9.cjs → createTheme-CLqJF9Pw.cjs} +1 -1
  12. package/lib/{createTheme-D0IoYkYN.js → createTheme-WJyOPh-q.js} +1 -1
  13. package/lib/element-constructor/index.cjs +1 -1
  14. package/lib/element-constructor/index.js +114 -113
  15. package/lib/getComponentElement-B0Qb2RbZ.js +145 -0
  16. package/lib/getComponentElement-BcreYwFe.cjs +1 -0
  17. package/lib/{index-B-ZmkQyB.cjs → index-BNZNGmrW.cjs} +1 -1
  18. package/lib/{index-Dizn7btU.js → index-DMIfOO2r.js} +2 -2
  19. package/lib/jsx/ComponentElement.d.ts +27 -0
  20. package/lib/jsx/getComponentElement.d.ts +2 -0
  21. package/lib/jsx/h.d.ts +3 -0
  22. package/lib/jsx/hooks/useConnect.d.ts +2 -0
  23. package/lib/jsx/hooks/useContext.d.ts +3 -0
  24. package/lib/jsx/hooks/useCreate.d.ts +2 -0
  25. package/lib/jsx/hooks/useDisconnect.d.ts +2 -0
  26. package/lib/jsx/hooks/useInternals.d.ts +1 -0
  27. package/lib/jsx/hooks/useShadow.d.ts +1 -0
  28. package/lib/jsx/hooks/useStore.d.ts +6 -0
  29. package/lib/jsx/hooks/useStylesheet.d.ts +2 -0
  30. package/lib/jsx/index.cjs +1 -0
  31. package/lib/jsx/index.d.ts +12 -0
  32. package/lib/jsx/index.js +99 -0
  33. package/lib/jsx/render.d.ts +1 -0
  34. package/lib/jsx/type.d.ts +184 -0
  35. package/lib/modal/index.cjs +1 -1
  36. package/lib/modal/index.js +2 -2
  37. package/lib/router/Route.d.ts +1 -1
  38. package/lib/router/index.cjs +1 -1
  39. package/lib/router/index.js +80 -78
  40. package/lib/scroll/index.cjs +1 -1
  41. package/lib/scroll/index.js +2 -2
  42. package/lib/select/index.cjs +1 -1
  43. package/lib/select/index.js +1 -1
  44. package/lib/store/index.cjs +1 -1
  45. package/lib/store/index.js +111 -48
  46. package/lib/string-Cgp_uJvP.cjs +1 -0
  47. package/lib/string-DCGBU6em.js +134 -0
  48. package/lib/studio/index.cjs +1 -1
  49. package/lib/studio/index.js +14 -14
  50. package/lib/tags-D0k7-iVY.js +485 -0
  51. package/lib/tags-DGIuh1Hi.cjs +1 -0
  52. package/lib/theme/index.cjs +1 -1
  53. package/lib/theme/index.js +2 -2
  54. package/lib/utils/dom.d.ts +1 -1
  55. package/lib/utils/index.cjs +1 -1
  56. package/lib/utils/index.js +27 -28
  57. package/package.json +15 -6
  58. package/lib/Composed-ClTo1f0b.js +0 -79
  59. package/lib/Composed-Mdr4ZFbI.cjs +0 -1
  60. package/lib/component/Component.d.ts +0 -26
  61. package/lib/component/hooks/animation.d.ts +0 -9
  62. package/lib/component/hooks/attributes.d.ts +0 -2
  63. package/lib/component/hooks/custom-element.d.ts +0 -2
  64. package/lib/component/hooks/intersection.d.ts +0 -4
  65. package/lib/component/hooks/resize.d.ts +0 -6
  66. package/lib/component/hooks/stores.d.ts +0 -6
  67. package/lib/component/hooks/style.d.ts +0 -2
  68. package/lib/component/index.cjs +0 -1
  69. package/lib/component/index.d.ts +0 -8
  70. package/lib/component/index.js +0 -219
  71. package/lib/object-BZELAoVj.cjs +0 -1
  72. package/lib/object-R34VLqhp.js +0 -85
  73. package/lib/string-3lAkpJJP.js +0 -51
  74. package/lib/string-vBu90jhV.cjs +0 -1
  75. package/lib/tags-75InVOh4.cjs +0 -1
  76. package/lib/tags-DgRVzazL.js +0 -795
@@ -0,0 +1,313 @@
1
+ var R = (c, e, s) => {
2
+ if (!e.has(c))
3
+ throw TypeError("Cannot " + s);
4
+ };
5
+ var n = (c, e, s) => (R(c, e, "read from private field"), s ? s.call(c) : e.get(c)), f = (c, e, s) => {
6
+ if (e.has(c))
7
+ throw TypeError("Cannot add the same private member more than once");
8
+ e instanceof WeakSet ? e.add(c) : e.set(c, s);
9
+ }, K = (c, e, s, t) => (R(c, e, "write to private field"), t ? t.call(c, s) : e.set(c, s), s);
10
+ var a = (c, e, s) => (R(c, e, "access private method"), s);
11
+ import { S as m } from "./Store-JOKrNVEr.js";
12
+ import { i as fe } from "./browser-0zX67oeU.js";
13
+ import { c as U, u as le, i as Q } from "./string-DCGBU6em.js";
14
+ import { connector as re } from "./connector/index.js";
15
+ const ce = /* @__PURE__ */ new Set([
16
+ // 'a', 'style', 'title', 'script',
17
+ "animate",
18
+ "animateMotion",
19
+ "animateTransform",
20
+ "circle",
21
+ "clipPath",
22
+ "defs",
23
+ "desc",
24
+ "ellipse",
25
+ "feBlend",
26
+ "feColorMatrix",
27
+ "feComponentTransfer",
28
+ "feComposite",
29
+ "feConvolveMatrix",
30
+ "feDiffuseLighting",
31
+ "feDisplacementMap",
32
+ "feDistantLight",
33
+ "feDropShadow",
34
+ "feFlood",
35
+ "feFuncA",
36
+ "feFuncB",
37
+ "feFuncG",
38
+ "feFuncR",
39
+ "feGaussianBlur",
40
+ "feImage",
41
+ "feMerge",
42
+ "feMergeNode",
43
+ "feMorphology",
44
+ "feOffset",
45
+ "fePointLight",
46
+ "feSpecularLighting",
47
+ "feSpotLight",
48
+ "feTile",
49
+ "feTurbulence",
50
+ "filter",
51
+ "foreignObject",
52
+ "g",
53
+ "image",
54
+ "line",
55
+ "linearGradient",
56
+ "listener",
57
+ "marker",
58
+ "mask",
59
+ "metadata",
60
+ "mpath",
61
+ "path",
62
+ "pattern",
63
+ "polygon",
64
+ "polyline",
65
+ "radialGradient",
66
+ "rect",
67
+ "set",
68
+ "solidColor",
69
+ "stop",
70
+ "svg",
71
+ "switch",
72
+ "symbol",
73
+ "text",
74
+ "textPath",
75
+ "title",
76
+ "tspan",
77
+ "view"
78
+ ]);
79
+ var l, d, h, N, Z, w, _, A, O, y, W, M, j, x, ee, v, te, D, se, S, q, p, z, k, ie, H, ne, E, J, g, T, b, V, F, oe, P, ae, L, Y, C, I, B, G;
80
+ const $ = class $ {
81
+ constructor(...e) {
82
+ f(this, N);
83
+ f(this, w);
84
+ f(this, A);
85
+ f(this, y);
86
+ f(this, M);
87
+ f(this, x);
88
+ f(this, v);
89
+ f(this, D);
90
+ f(this, S);
91
+ f(this, p);
92
+ f(this, k);
93
+ f(this, H);
94
+ f(this, E);
95
+ f(this, g);
96
+ f(this, b);
97
+ f(this, F);
98
+ f(this, P);
99
+ f(this, L);
100
+ f(this, C);
101
+ f(this, l, void 0);
102
+ f(this, d, /* @__PURE__ */ new Set());
103
+ f(this, h, /* @__PURE__ */ new Set());
104
+ f(this, B, () => {
105
+ n(this, d).forEach((e) => {
106
+ e();
107
+ }), n(this, d).clear();
108
+ });
109
+ f(this, G, (e) => {
110
+ n(this, h).forEach((s) => {
111
+ s(e);
112
+ }), n(this, h).clear();
113
+ });
114
+ const s = e[0], t = e[1];
115
+ K(this, l, a(this, N, Z).call(this, s, t == null ? void 0 : t.forceSvg)), a(this, A, O).call(this, t);
116
+ }
117
+ get node() {
118
+ return n(this, l);
119
+ }
120
+ };
121
+ l = new WeakMap(), d = new WeakMap(), h = new WeakMap(), N = new WeakSet(), Z = function(e, s) {
122
+ let t = null;
123
+ if (e instanceof Node)
124
+ t = e;
125
+ else if (typeof e == "string")
126
+ if (!e.includes("<") && e.includes("-"))
127
+ t = new (customElements.get(e))();
128
+ else if (e.includes("<")) {
129
+ const i = document.createElement("div");
130
+ i.innerHTML = e, t = i.firstElementChild;
131
+ } else
132
+ ce.has(e) || s ? t = document.createElementNS(
133
+ "http://www.w3.org/2000/svg",
134
+ e
135
+ ) : t = document.createElement(e);
136
+ else
137
+ t = document.createElement("div");
138
+ return t;
139
+ }, w = new WeakSet(), _ = function(e) {
140
+ return e instanceof HTMLElement || e instanceof SVGElement;
141
+ }, A = new WeakSet(), O = function(e) {
142
+ if (!e)
143
+ return;
144
+ const s = a(this, w, _).call(this, n(this, l)), t = e.ref;
145
+ delete e.ref, e != null && e.onConnect && (n(this, d).add(e.onConnect), delete e.onConnect), e != null && e.onDisconnect && (n(this, h).add(e.onDisconnect), delete e.onDisconnect);
146
+ let i, o;
147
+ for (const r in e) {
148
+ const u = e[r];
149
+ r === "class" && s ? a(this, y, W).call(this, u) : r === "style" && s ? a(this, v, te).call(this, u) : r === "lightChildren" ? a(this, g, T).call(this, n(this, l), u) : r === "children" ? a(this, g, T).call(this, n(this, l) instanceof Element ? n(this, l).shadowRoot || n(this, l) : n(this, l), u) : r.startsWith("on") ? (o || (o = {}), o[r] = u) : (i || (i = {}), i[r] = u);
150
+ }
151
+ if (a(this, H, ne).call(this, i), a(this, k, ie).call(this, o), t && (typeof t == "function" ? t(n(this, l)) : t.current = n(this, l)), fe && (n(this, h).size || n(this, d).size)) {
152
+ const r = n(this, l) instanceof DocumentFragment ? n(this, l).firstChild : n(this, l);
153
+ re.subscribe(r, {
154
+ connectCallback: n(this, B),
155
+ disconnectCallback: n(this, G),
156
+ unsubscribeAfterDisconnect: !0,
157
+ maxWaitSec: 20
158
+ });
159
+ }
160
+ }, y = new WeakSet(), W = function(e) {
161
+ const s = n(this, l);
162
+ if (e) {
163
+ if (typeof e == "string")
164
+ s.classList.add(e);
165
+ else if (Array.isArray(e))
166
+ e.forEach((t) => {
167
+ a(this, y, W).call(this, t);
168
+ });
169
+ else if (typeof e == "object")
170
+ if (e instanceof m)
171
+ a(this, M, j).call(this, e);
172
+ else
173
+ for (const t in e) {
174
+ const i = e[t];
175
+ i instanceof m ? a(this, x, ee).call(this, t, i) : i ? s.classList.add(t) : s.classList.remove(t);
176
+ }
177
+ } else
178
+ return;
179
+ }, M = new WeakSet(), j = function(e) {
180
+ const s = n(this, l);
181
+ n(this, h).add(
182
+ e.subscribe(({ current: t, previous: i }) => {
183
+ i && [i].flat().forEach((o) => {
184
+ o && s.classList.remove(o);
185
+ }), t && [t].flat().forEach((o) => {
186
+ o && s.classList.add(o);
187
+ });
188
+ })
189
+ );
190
+ }, x = new WeakSet(), ee = function(e, s) {
191
+ const t = n(this, l);
192
+ n(this, h).add(
193
+ s.subscribe(({ current: i }) => {
194
+ i ? t.classList.add(e) : t.classList.remove(e);
195
+ })
196
+ );
197
+ }, v = new WeakSet(), te = function(e) {
198
+ if (!e)
199
+ return;
200
+ const s = n(this, l);
201
+ s.tagName === "style" || s.tagName === "STYLE" ? a(this, S, q).call(this, e) : a(this, D, se).call(this, e);
202
+ }, D = new WeakSet(), se = function(e) {
203
+ for (const s in e) {
204
+ const t = s, i = e[t];
205
+ i instanceof m ? n(this, h).add(
206
+ i.subscribe(({ current: o }) => {
207
+ a(this, p, z).call(this, t, o);
208
+ })
209
+ ) : a(this, p, z).call(this, t, i);
210
+ }
211
+ }, S = new WeakSet(), q = function(e) {
212
+ const s = n(this, l);
213
+ for (const t in e) {
214
+ const i = e[t];
215
+ if (typeof i == "object" && !(i instanceof m))
216
+ s.appendChild(new Text(`${t} {`)), a(this, S, q).call(this, i), s.appendChild(new Text("}"));
217
+ else if (i instanceof m) {
218
+ const o = new Text();
219
+ n(this, h).add(
220
+ i.subscribe((r) => {
221
+ r.current ? o.nodeValue = `${U(t)}: ${r.current};` : o.nodeValue = "";
222
+ })
223
+ ), s.appendChild(o);
224
+ } else
225
+ s.appendChild(new Text(`${U(t)}: ${i};`));
226
+ }
227
+ }, p = new WeakSet(), z = function(e, s) {
228
+ const t = n(this, l);
229
+ e.includes("--") ? s ? t.style.setProperty(e, s) : t.style.removeProperty(e) : s ? t.style[e] = s : t.style[e] = "";
230
+ }, k = new WeakSet(), ie = function(e) {
231
+ if (!e)
232
+ return;
233
+ const s = n(this, l);
234
+ for (const t in e) {
235
+ const i = t, o = le(
236
+ i.split("on").slice(1).join("on")
237
+ ), r = e[i];
238
+ typeof r == "object" ? s.addEventListener(
239
+ o,
240
+ r.callback,
241
+ r.options
242
+ ) : typeof r == "function" && s.addEventListener(o, r);
243
+ }
244
+ }, H = new WeakSet(), ne = function(e) {
245
+ for (const s in e) {
246
+ const t = e[s];
247
+ t instanceof m ? n(this, h).add(
248
+ t.subscribe(({ current: i }) => {
249
+ a(this, E, J).call(this, s, i);
250
+ })
251
+ ) : a(this, E, J).call(this, s, t);
252
+ }
253
+ }, E = new WeakSet(), J = function(e, s) {
254
+ var i, o;
255
+ const t = n(this, l);
256
+ e in t && !((o = (i = t.constructor) == null ? void 0 : i.observedAttributes) != null && o.includes(e)) ? s != null && (t[e] = s.toString()) : s != null && t.setAttribute(e, s.toString());
257
+ }, g = new WeakSet(), T = function(e, s) {
258
+ s && (s = [s].flat(), s.forEach((t) => {
259
+ if (t instanceof m) {
260
+ const i = document.createElement("div");
261
+ i.style.display = "contents", e.appendChild(i), n(this, h).add(
262
+ t.subscribe(({ current: o }) => {
263
+ a(this, P, ae).call(this, i, a(this, F, oe).call(this, o), Array.from(i.childNodes));
264
+ })
265
+ );
266
+ } else if (t instanceof $)
267
+ a(this, b, V).call(this, e, t.node);
268
+ else if (t instanceof Function)
269
+ a(this, g, T).call(this, e, Q(t) ? new t() : t());
270
+ else {
271
+ const i = a(this, C, I).call(this, t);
272
+ i instanceof Node && a(this, b, V).call(this, e, i);
273
+ }
274
+ }));
275
+ }, b = new WeakSet(), V = function(e, s) {
276
+ !(e instanceof ShadowRoot) && s instanceof HTMLElement && s.tagName === "STYLE" ? (n(this, d).add(() => {
277
+ [...document.head.querySelectorAll("style")].find((i) => i.outerHTML === s.outerHTML) || document.head.appendChild(s);
278
+ }), n(this, h).add(() => {
279
+ s.remove();
280
+ })) : e.appendChild(s);
281
+ }, F = new WeakSet(), oe = function(e) {
282
+ return [e].flat().map((t) => t instanceof $ ? t.node : typeof t == "function" ? Q(t) ? new t() : t() : a(this, C, I).call(this, t)).flat().filter(Boolean);
283
+ }, P = new WeakSet(), ae = function(e, s, t) {
284
+ t.length > s.length && t.forEach((i) => {
285
+ s.find((o) => a(this, L, Y).call(this, i, o)) || (e.removeChild(i), t = t.filter((o) => o !== i));
286
+ }), t.forEach((i, o) => {
287
+ if (o < s.length) {
288
+ const r = s[o];
289
+ a(this, L, Y).call(this, i, r) || e.replaceChild(r, i);
290
+ } else
291
+ e.removeChild(i);
292
+ });
293
+ for (let i = t.length; i < s.length; i++)
294
+ e.appendChild(s[i]);
295
+ }, L = new WeakSet(), Y = function(e, s) {
296
+ return s ? s instanceof Node ? e.isEqualNode(s) : e.textContent === s.toString() : !1;
297
+ }, C = new WeakSet(), I = function(e) {
298
+ if (e instanceof Node)
299
+ return e;
300
+ if (e != null) {
301
+ const s = String(e);
302
+ if (s.trim().startsWith("<") && s.trim().endsWith(">")) {
303
+ const t = document.createElement("div");
304
+ return t.innerHTML = s, t.firstElementChild;
305
+ } else
306
+ return new Text(s);
307
+ } else
308
+ return;
309
+ }, B = new WeakMap(), G = new WeakMap();
310
+ let X = $;
311
+ export {
312
+ X as E
313
+ };
@@ -0,0 +1 @@
1
+ "use strict";var R=(l,e,s)=>{if(!e.has(l))throw TypeError("Cannot "+s)};var n=(l,e,s)=>(R(l,e,"read from private field"),s?s.call(l):e.get(l)),f=(l,e,s)=>{if(e.has(l))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(l):e.set(l,s)},Q=(l,e,s,t)=>(R(l,e,"write to private field"),t?t.call(l,s):e.set(l,s),s);var a=(l,e,s)=>(R(l,e,"access private method"),s);const m=require("./Store-D0_rDIsE.cjs"),ae=require("./browser-CpzFX2xg.cjs"),S=require("./string-Cgp_uJvP.cjs"),fe=require("./connector/index.cjs"),re=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"]);var r,h,d,w,X,A,Z,M,_,y,z,x,O,v,j,D,ee,k,te,E,J,b,V,H,se,q,ie,p,K,g,N,C,Y,F,ne,P,oe,L,I,T,U,B,G;const $=class ${constructor(...e){f(this,w);f(this,A);f(this,M);f(this,y);f(this,x);f(this,v);f(this,D);f(this,k);f(this,E);f(this,b);f(this,H);f(this,q);f(this,p);f(this,g);f(this,C);f(this,F);f(this,P);f(this,L);f(this,T);f(this,r,void 0);f(this,h,new Set);f(this,d,new Set);f(this,B,()=>{n(this,h).forEach(e=>{e()}),n(this,h).clear()});f(this,G,e=>{n(this,d).forEach(s=>{s(e)}),n(this,d).clear()});const s=e[0],t=e[1];Q(this,r,a(this,w,X).call(this,s,t==null?void 0:t.forceSvg)),a(this,M,_).call(this,t)}get node(){return n(this,r)}};r=new WeakMap,h=new WeakMap,d=new WeakMap,w=new WeakSet,X=function(e,s){let t=null;if(e instanceof Node)t=e;else if(typeof e=="string")if(!e.includes("<")&&e.includes("-"))t=new(customElements.get(e));else if(e.includes("<")){const i=document.createElement("div");i.innerHTML=e,t=i.firstElementChild}else re.has(e)||s?t=document.createElementNS("http://www.w3.org/2000/svg",e):t=document.createElement(e);else t=document.createElement("div");return t},A=new WeakSet,Z=function(e){return e instanceof HTMLElement||e instanceof SVGElement},M=new WeakSet,_=function(e){if(!e)return;const s=a(this,A,Z).call(this,n(this,r)),t=e.ref;delete e.ref,e!=null&&e.onConnect&&(n(this,h).add(e.onConnect),delete e.onConnect),e!=null&&e.onDisconnect&&(n(this,d).add(e.onDisconnect),delete e.onDisconnect);let i,o;for(const c in e){const u=e[c];c==="class"&&s?a(this,y,z).call(this,u):c==="style"&&s?a(this,D,ee).call(this,u):c==="lightChildren"?a(this,g,N).call(this,n(this,r),u):c==="children"?a(this,g,N).call(this,n(this,r)instanceof Element?n(this,r).shadowRoot||n(this,r):n(this,r),u):c.startsWith("on")?(o||(o={}),o[c]=u):(i||(i={}),i[c]=u)}if(a(this,q,ie).call(this,i),a(this,H,se).call(this,o),t&&(typeof t=="function"?t(n(this,r)):t.current=n(this,r)),ae.isBrowser&&(n(this,d).size||n(this,h).size)){const c=n(this,r)instanceof DocumentFragment?n(this,r).firstChild:n(this,r);fe.connector.subscribe(c,{connectCallback:n(this,B),disconnectCallback:n(this,G),unsubscribeAfterDisconnect:!0,maxWaitSec:20})}},y=new WeakSet,z=function(e){const s=n(this,r);if(e){if(typeof e=="string")s.classList.add(e);else if(Array.isArray(e))e.forEach(t=>{a(this,y,z).call(this,t)});else if(typeof e=="object")if(e instanceof m.Store)a(this,x,O).call(this,e);else for(const t in e){const i=e[t];i instanceof m.Store?a(this,v,j).call(this,t,i):i?s.classList.add(t):s.classList.remove(t)}}else return},x=new WeakSet,O=function(e){const s=n(this,r);n(this,d).add(e.subscribe(({current:t,previous:i})=>{i&&[i].flat().forEach(o=>{o&&s.classList.remove(o)}),t&&[t].flat().forEach(o=>{o&&s.classList.add(o)})}))},v=new WeakSet,j=function(e,s){const t=n(this,r);n(this,d).add(s.subscribe(({current:i})=>{i?t.classList.add(e):t.classList.remove(e)}))},D=new WeakSet,ee=function(e){if(!e)return;const s=n(this,r);s.tagName==="style"||s.tagName==="STYLE"?a(this,E,J).call(this,e):a(this,k,te).call(this,e)},k=new WeakSet,te=function(e){for(const s in e){const t=s,i=e[t];i instanceof m.Store?n(this,d).add(i.subscribe(({current:o})=>{a(this,b,V).call(this,t,o)})):a(this,b,V).call(this,t,i)}},E=new WeakSet,J=function(e){const s=n(this,r);for(const t in e){const i=e[t];if(typeof i=="object"&&!(i instanceof m.Store))s.appendChild(new Text(`${t} {`)),a(this,E,J).call(this,i),s.appendChild(new Text("}"));else if(i instanceof m.Store){const o=new Text;n(this,d).add(i.subscribe(c=>{c.current?o.nodeValue=`${S.camelToKebab(t)}: ${c.current};`:o.nodeValue=""})),s.appendChild(o)}else s.appendChild(new Text(`${S.camelToKebab(t)}: ${i};`))}},b=new WeakSet,V=function(e,s){const t=n(this,r);e.includes("--")?s?t.style.setProperty(e,s):t.style.removeProperty(e):s?t.style[e]=s:t.style[e]=""},H=new WeakSet,se=function(e){if(!e)return;const s=n(this,r);for(const t in e){const i=t,o=S.uncapitalize(i.split("on").slice(1).join("on")),c=e[i];typeof c=="object"?s.addEventListener(o,c.callback,c.options):typeof c=="function"&&s.addEventListener(o,c)}},q=new WeakSet,ie=function(e){for(const s in e){const t=e[s];t instanceof m.Store?n(this,d).add(t.subscribe(({current:i})=>{a(this,p,K).call(this,s,i)})):a(this,p,K).call(this,s,t)}},p=new WeakSet,K=function(e,s){var i,o;const t=n(this,r);e in t&&!((o=(i=t.constructor)==null?void 0:i.observedAttributes)!=null&&o.includes(e))?s!=null&&(t[e]=s.toString()):s!=null&&t.setAttribute(e,s.toString())},g=new WeakSet,N=function(e,s){s&&(s=[s].flat(),s.forEach(t=>{if(t instanceof m.Store){const i=document.createElement("div");i.style.display="contents",e.appendChild(i),n(this,d).add(t.subscribe(({current:o})=>{a(this,P,oe).call(this,i,a(this,F,ne).call(this,o),Array.from(i.childNodes))}))}else if(t instanceof $)a(this,C,Y).call(this,e,t.node);else if(t instanceof Function)a(this,g,N).call(this,e,S.isESClass(t)?new t:t());else{const i=a(this,T,U).call(this,t);i instanceof Node&&a(this,C,Y).call(this,e,i)}}))},C=new WeakSet,Y=function(e,s){!(e instanceof ShadowRoot)&&s instanceof HTMLElement&&s.tagName==="STYLE"?(n(this,h).add(()=>{[...document.head.querySelectorAll("style")].find(i=>i.outerHTML===s.outerHTML)||document.head.appendChild(s)}),n(this,d).add(()=>{s.remove()})):e.appendChild(s)},F=new WeakSet,ne=function(e){return[e].flat().map(t=>t instanceof $?t.node:typeof t=="function"?S.isESClass(t)?new t:t():a(this,T,U).call(this,t)).flat().filter(Boolean)},P=new WeakSet,oe=function(e,s,t){t.length>s.length&&t.forEach(i=>{s.find(o=>a(this,L,I).call(this,i,o))||(e.removeChild(i),t=t.filter(o=>o!==i))}),t.forEach((i,o)=>{if(o<s.length){const c=s[o];a(this,L,I).call(this,i,c)||e.replaceChild(c,i)}else e.removeChild(i)});for(let i=t.length;i<s.length;i++)e.appendChild(s[i])},L=new WeakSet,I=function(e,s){return s?s instanceof Node?e.isEqualNode(s):e.textContent===s.toString():!1},T=new WeakSet,U=function(e){if(e instanceof Node)return e;if(e!=null){const s=String(e);if(s.trim().startsWith("<")&&s.trim().endsWith(">")){const t=document.createElement("div");return t.innerHTML=s,t.firstElementChild}else return new Text(s)}else return},B=new WeakMap,G=new WeakMap;let W=$;exports.ElementConstructor=W;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const r=require("../browser-CpzFX2xg.cjs"),s=require("../tags-75InVOh4.cjs");class o extends t.CustomElement{constructor(){super(),r.isBrowser&&s.element(this,{style:{cursor:"default"},tabIndex:this.getAttribute("tabindex")||"0",role:"button",onKeydown:e=>{e.code==="Space"&&this.click()},onClick:()=>{this.click()}})}}exports.AbstractButtonElement=o;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const r=require("../browser-CpzFX2xg.cjs"),s=require("../tags-DGIuh1Hi.cjs");class o extends t.CustomElement{constructor(){super(),r.isBrowser&&s.element(this,{style:{cursor:"default"},tabIndex:this.getAttribute("tabindex")||"0",role:"button",onKeydown:e=>{e.code==="Space"&&this.click()},onClick:()=>{this.click()}})}}exports.AbstractButtonElement=o;
@@ -1,7 +1,7 @@
1
1
  import { CustomElement as e } from "../custom-element/index.js";
2
2
  import "../Store-JOKrNVEr.js";
3
3
  import { i as o } from "../browser-0zX67oeU.js";
4
- import { e as r } from "../tags-DgRVzazL.js";
4
+ import { e as r } from "../tags-D0k7-iVY.js";
5
5
  class l extends e {
6
6
  constructor() {
7
7
  super(), o && r(this, {
@@ -1 +1 @@
1
- "use strict";var I=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)};var t=(s,e,i)=>(I(s,e,"read from private field"),i?i.call(s):e.get(s)),h=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},d=(s,e,i,l)=>(I(s,e,"write to private field"),l?l.call(s,i):e.set(s,i),i);var a=(s,e,i)=>(I(s,e,"access private method"),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("../custom-element/index.cjs"),N=require("../attribute/index.cjs"),J=require("../browser-CpzFX2xg.cjs"),K=require("../events-Crwi8fz6.cjs"),Q=require("../style-At6aDoqG.cjs");var U=Object.defineProperty,V=Object.getOwnPropertyDescriptor,X=(s,e,i,l)=>{for(var E=l>1?void 0:l?V(e,i):e,O=s.length-1,S;O>=0;O--)(S=s[O])&&(E=(l?S(e,i,E):S(E))||E);return l&&E&&U(e,i,E),E},$=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)},o=(s,e,i)=>($(s,e,"read from private field"),i?i.call(s):e.get(s)),_=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},R=(s,e,i,l)=>($(s,e,"write to private field"),l?l.call(s,i):e.set(s,i),i),W,q,u,T,k,P,g,r,f,n,p,M,w,v,x,F,y,b,H,A,c,m,L,z,C,D;class B{constructor(e,i){h(this,x);h(this,c);h(this,L);h(this,C);h(this,g,null);h(this,r,null);h(this,f,null);h(this,n,null);h(this,p,null);h(this,M,!1);h(this,w,void 0);h(this,v,!1);h(this,y,()=>{t(this,v)?this.close():this.open()});h(this,b,()=>{t(this,v)&&(a(this,c,m).call(this,0,!0),a(this,c,m).call(this,t(this,n).scrollHeight))});h(this,H,()=>{a(this,L,z).call(this,"size-change")});h(this,A,()=>{t(this,v)&&(a(this,c,m).call(this,0,!0),a(this,c,m).call(this,t(this,n).scrollHeight))});i.firstElementChild instanceof HTMLElement&&i.lastElementChild instanceof HTMLElement?(d(this,g,e),d(this,r,i),d(this,f,i.firstElementChild),d(this,n,i.lastElementChild),t(this,f).style.cursor="default",t(this,n).style.height="0px",t(this,n).style.overflow="hidden",d(this,p,new ResizeObserver(t(this,H))),addEventListener("resize",t(this,b)),t(this,f).addEventListener("click",t(this,y)),t(this,r).addEventListener("sizeChange",t(this,A)),t(this,r).hasAttribute("data-opened")&&this.open({skipTransition:!0})):e.removeItem(t(this,r))}get element(){return t(this,r)}destroy(){t(this,f)&&(t(this,r).classList.remove("opened","triggered"),t(this,f).style.cursor="",a(this,c,m).call(this,void 0),t(this,p).disconnect(),removeEventListener("resize",t(this,b)),t(this,f).removeEventListener("click",t(this,y)),t(this,r).removeEventListener("sizeChange",t(this,A)),clearTimeout(t(this,w)))}open(e){e!=null&&e.skipTransition&&a(this,C,D).call(this),t(this,g).multipleAttribute.current||t(this,g).closeAll({exclude:t(this,r)}),t(this,M)||t(this,p).observe(t(this,n)),d(this,v,!0),clearTimeout(t(this,w)),t(this,r).classList.add("triggered"),a(this,c,m).call(this,t(this,n).scrollHeight),setTimeout(()=>{t(this,r).classList.add("opened")},0),a(this,L,z).call(this,"toggle")}close(e){e!=null&&e.skipTransition&&a(this,C,D).call(this),d(this,v,!1),t(this,r).classList.remove("opened"),a(this,c,m).call(this,0),d(this,w,setTimeout(()=>{t(this,r).classList.remove("triggered")},Q.getElementTransitionDurationMS(t(this,n)))),a(this,L,z).call(this,"toggle")}}g=new WeakMap,r=new WeakMap,f=new WeakMap,n=new WeakMap,p=new WeakMap,M=new WeakMap,w=new WeakMap,v=new WeakMap,x=new WeakSet,F=function(){return t(this,r).parentElement||t(this,r).getRootNode()},y=new WeakMap,b=new WeakMap,H=new WeakMap,A=new WeakMap,c=new WeakSet,m=function(e,i=!1){i&&(t(this,n).style.transition="all 0s",setTimeout(()=>{t(this,n).style.transition=""})),e!=null?t(this,n).style.height=`${e}px`:t(this,n).style.height=""},L=new WeakSet,z=function(e){e==="toggle"?t(this,r).dispatchEvent(new CustomEvent("accordionItemToggle",{bubbles:!0,composed:!0,detail:{opened:t(this,v)}})):e==="size-change"&&K.dispatchSizeChangeEvent(t(this,x,F))},C=new WeakSet,D=function(){t(this,n).style.transition="all 0s",setTimeout(()=>{t(this,n).style.transition=""},50)};exports.AccordionElement=class extends G.CustomElement{constructor(){super(),_(this,k),_(this,W,new N.Attribute(this,"axis","y")),_(this,q,new N.Attribute(this,"multiple",!1)),_(this,u,[]),_(this,T,null),J.isBrowser&&R(this,T,new MutationObserver(e=>{e.forEach(i=>{i.removedNodes.forEach(l=>{l instanceof HTMLElement&&this.removeItem(l)}),i.addedNodes.forEach(l=>{l instanceof HTMLElement&&this.createItem(l)})})}))}get axisAttribute(){return o(this,W)}get multipleAttribute(){return o(this,q)}createItem(e){o(this,u).find(i=>i.element===e)||o(this,u).push(new B(this,e))}removeItem(e){R(this,u,o(this,u).filter(i=>{if(i.element!==e)return!0;i.destroy()}))}closeAll(e){o(this,u).forEach(i=>{(e==null?void 0:e.exclude)!==i.element&&i.close(e)})}openAll(e){o(this,u).forEach(i=>{(e==null?void 0:e.exclude)!==i.element&&i.open(e)})}connectedCallback(){o(this,T).observe(o(this,k,P),{childList:!0}),R(this,u,[...o(this,k,P).children].map(e=>{if(e instanceof HTMLElement)return new B(this,e)}).filter(e=>!!e))}disconnectedCallback(){o(this,T).disconnect()}};W=new WeakMap;q=new WeakMap;u=new WeakMap;T=new WeakMap;k=new WeakSet;P=function(){return this.shadowRoot?this.shadowRoot:this};exports.AccordionElement=X([G.define("e-accordion")],exports.AccordionElement);addEventListener("click",s=>{});
1
+ "use strict";var I=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)};var t=(s,e,i)=>(I(s,e,"read from private field"),i?i.call(s):e.get(s)),h=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},d=(s,e,i,l)=>(I(s,e,"write to private field"),l?l.call(s,i):e.set(s,i),i);var a=(s,e,i)=>(I(s,e,"access private method"),i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const G=require("../custom-element/index.cjs"),N=require("../attribute/index.cjs"),J=require("../browser-CpzFX2xg.cjs"),K=require("../events-Crwi8fz6.cjs"),Q=require("../style-At6aDoqG.cjs");var U=Object.defineProperty,V=Object.getOwnPropertyDescriptor,X=(s,e,i,l)=>{for(var g=l>1?void 0:l?V(e,i):e,O=s.length-1,S;O>=0;O--)(S=s[O])&&(g=(l?S(e,i,g):S(g))||g);return l&&g&&U(e,i,g),g},$=(s,e,i)=>{if(!e.has(s))throw TypeError("Cannot "+i)},o=(s,e,i)=>($(s,e,"read from private field"),i?i.call(s):e.get(s)),L=(s,e,i)=>{if(e.has(s))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(s):e.set(s,i)},R=(s,e,i,l)=>($(s,e,"write to private field"),l?l.call(s,i):e.set(s,i),i),W,q,u,T,z,P,E,r,f,n,p,k,w,v,x,F,y,b,H,A,c,m,_,M,C,D;class B{constructor(e,i){h(this,x);h(this,c);h(this,_);h(this,C);h(this,E,null);h(this,r,null);h(this,f,null);h(this,n,null);h(this,p,null);h(this,k,!1);h(this,w,void 0);h(this,v,!1);h(this,y,()=>{t(this,v)?this.close():this.open()});h(this,b,()=>{t(this,v)&&(a(this,c,m).call(this,0,!0),a(this,c,m).call(this,t(this,n).scrollHeight))});h(this,H,()=>{a(this,_,M).call(this,"size-change")});h(this,A,()=>{t(this,v)&&(a(this,c,m).call(this,0,!0),a(this,c,m).call(this,t(this,n).scrollHeight))});i.firstElementChild instanceof HTMLElement&&i.lastElementChild instanceof HTMLElement?(d(this,E,e),d(this,r,i),d(this,f,i.firstElementChild),d(this,n,i.lastElementChild),t(this,f).style.cursor="default",t(this,n).style.height="0px",t(this,n).style.overflow="hidden",d(this,p,new ResizeObserver(t(this,H))),addEventListener("resize",t(this,b)),t(this,f).addEventListener("click",t(this,y)),t(this,r).addEventListener("sizeChange",t(this,A)),t(this,r).hasAttribute("data-opened")&&this.open({skipTransition:!0})):e.removeItem(t(this,r))}get element(){return t(this,r)}destroy(){t(this,f)&&(t(this,r).classList.remove("opened","triggered"),t(this,f).style.cursor="",a(this,c,m).call(this,void 0),t(this,p).disconnect(),removeEventListener("resize",t(this,b)),t(this,f).removeEventListener("click",t(this,y)),t(this,r).removeEventListener("sizeChange",t(this,A)),clearTimeout(t(this,w)))}open(e){e!=null&&e.skipTransition&&a(this,C,D).call(this),t(this,E).multipleAttribute.current||t(this,E).closeAll({exclude:t(this,r)}),t(this,k)||t(this,p).observe(t(this,n)),d(this,v,!0),clearTimeout(t(this,w)),t(this,r).classList.add("triggered"),a(this,c,m).call(this,t(this,n).scrollHeight),setTimeout(()=>{t(this,r).classList.add("opened")},0),a(this,_,M).call(this,"toggle")}close(e){e!=null&&e.skipTransition&&a(this,C,D).call(this),d(this,v,!1),t(this,r).classList.remove("opened"),a(this,c,m).call(this,0),d(this,w,setTimeout(()=>{t(this,r).classList.remove("triggered")},Q.getElementTransitionDurationMS(t(this,n)))),a(this,_,M).call(this,"toggle")}}E=new WeakMap,r=new WeakMap,f=new WeakMap,n=new WeakMap,p=new WeakMap,k=new WeakMap,w=new WeakMap,v=new WeakMap,x=new WeakSet,F=function(){return t(this,r).parentElement||t(this,r).getRootNode()},y=new WeakMap,b=new WeakMap,H=new WeakMap,A=new WeakMap,c=new WeakSet,m=function(e,i=!1){i&&(t(this,n).style.transition="all 0s",setTimeout(()=>{t(this,n).style.transition=""})),e!=null?t(this,n).style.height=`${e}px`:t(this,n).style.height=""},_=new WeakSet,M=function(e){e==="toggle"?t(this,r).dispatchEvent(new CustomEvent("accordionItemToggle",{bubbles:!0,composed:!0,detail:{opened:t(this,v)}})):e==="size-change"&&K.dispatchSizeChangeEvent(t(this,x,F))},C=new WeakSet,D=function(){t(this,n).style.transition="all 0s",setTimeout(()=>{t(this,n).style.transition=""},50)};exports.AccordionElement=class extends G.CustomElement{constructor(){super(),L(this,z),L(this,W,new N.Attribute(this,"axis","y")),L(this,q,new N.Attribute(this,"multiple",!1)),L(this,u,[]),L(this,T,null),J.isBrowser&&R(this,T,new MutationObserver(e=>{e.forEach(i=>{i.removedNodes.forEach(l=>{l instanceof HTMLElement&&this.removeItem(l)}),i.addedNodes.forEach(l=>{l instanceof HTMLElement&&this.createItem(l)})})}))}get axisAttribute(){return o(this,W)}get multipleAttribute(){return o(this,q)}createItem(e){o(this,u).find(i=>i.element===e)||o(this,u).push(new B(this,e))}removeItem(e){R(this,u,o(this,u).filter(i=>{if(i.element!==e)return!0;i.destroy()}))}closeAll(e){o(this,u).forEach(i=>{(e==null?void 0:e.exclude)!==i.element&&i.close(e)})}openAll(e){o(this,u).forEach(i=>{(e==null?void 0:e.exclude)!==i.element&&i.open(e)})}connectedCallback(){o(this,T).observe(o(this,z,P),{childList:!0}),R(this,u,[...o(this,z,P).children].map(e=>{if(e instanceof HTMLElement)return new B(this,e)}).filter(e=>!!e))}disconnectedCallback(){o(this,T).disconnect()}};W=new WeakMap;q=new WeakMap;u=new WeakMap;T=new WeakMap;z=new WeakSet;P=function(){return this.shadowRoot?this.shadowRoot:this};exports.AccordionElement=X([G.define("e-accordion")],exports.AccordionElement);
@@ -24,7 +24,7 @@ var X = Object.defineProperty, Y = Object.getOwnPropertyDescriptor, Z = (t, e, s
24
24
  if (e.has(t))
25
25
  throw TypeError("Cannot add the same private member more than once");
26
26
  e instanceof WeakSet ? e.add(t) : e.set(t, s);
27
- }, R = (t, e, s, o) => (q(t, e, "write to private field"), o ? o.call(t, s) : e.set(t, s), s), W, P, f, _, k, D, p, r, u, n, E, M, w, m, x, F, y, C, H, b, c, v, L, z, A, N;
27
+ }, R = (t, e, s, o) => (q(t, e, "write to private field"), o ? o.call(t, s) : e.set(t, s), s), W, P, f, _, z, D, p, r, u, n, E, M, w, m, x, F, y, C, H, b, c, v, L, k, A, N;
28
28
  class G {
29
29
  constructor(e, s) {
30
30
  h(this, x);
@@ -46,7 +46,7 @@ class G {
46
46
  i(this, m) && (l(this, c, v).call(this, 0, !0), l(this, c, v).call(this, i(this, n).scrollHeight));
47
47
  });
48
48
  h(this, H, () => {
49
- l(this, L, z).call(this, "size-change");
49
+ l(this, L, k).call(this, "size-change");
50
50
  });
51
51
  h(this, b, () => {
52
52
  i(this, m) && (l(this, c, v).call(this, 0, !0), l(this, c, v).call(this, i(this, n).scrollHeight));
@@ -68,12 +68,12 @@ class G {
68
68
  open(e) {
69
69
  e != null && e.skipTransition && l(this, A, N).call(this), i(this, p).multipleAttribute.current || i(this, p).closeAll({ exclude: i(this, r) }), i(this, M) || i(this, E).observe(i(this, n)), d(this, m, !0), clearTimeout(i(this, w)), i(this, r).classList.add("triggered"), l(this, c, v).call(this, i(this, n).scrollHeight), setTimeout(() => {
70
70
  i(this, r).classList.add("opened");
71
- }, 0), l(this, L, z).call(this, "toggle");
71
+ }, 0), l(this, L, k).call(this, "toggle");
72
72
  }
73
73
  close(e) {
74
74
  e != null && e.skipTransition && l(this, A, N).call(this), d(this, m, !1), i(this, r).classList.remove("opened"), l(this, c, v).call(this, 0), d(this, w, setTimeout(() => {
75
75
  i(this, r).classList.remove("triggered");
76
- }, V(i(this, n)))), l(this, L, z).call(this, "toggle");
76
+ }, V(i(this, n)))), l(this, L, k).call(this, "toggle");
77
77
  }
78
78
  }
79
79
  p = new WeakMap(), r = new WeakMap(), u = new WeakMap(), n = new WeakMap(), E = new WeakMap(), M = new WeakMap(), w = new WeakMap(), m = new WeakMap(), x = new WeakSet(), F = function() {
@@ -82,7 +82,7 @@ p = new WeakMap(), r = new WeakMap(), u = new WeakMap(), n = new WeakMap(), E =
82
82
  s && (i(this, n).style.transition = "all 0s", setTimeout(() => {
83
83
  i(this, n).style.transition = "";
84
84
  })), e != null ? i(this, n).style.height = `${e}px` : i(this, n).style.height = "";
85
- }, L = new WeakSet(), z = function(e) {
85
+ }, L = new WeakSet(), k = function(e) {
86
86
  e === "toggle" ? i(this, r).dispatchEvent(
87
87
  new CustomEvent("accordionItemToggle", {
88
88
  bubbles: !0,
@@ -99,7 +99,7 @@ p = new WeakMap(), r = new WeakMap(), u = new WeakMap(), n = new WeakMap(), E =
99
99
  };
100
100
  let $ = class extends J {
101
101
  constructor() {
102
- super(), T(this, k), T(this, W, new B(this, "axis", "y")), T(this, P, new B(this, "multiple", !1)), T(this, f, []), T(this, _, null), Q && R(this, _, new MutationObserver((t) => {
102
+ super(), T(this, z), T(this, W, new B(this, "axis", "y")), T(this, P, new B(this, "multiple", !1)), T(this, f, []), T(this, _, null), Q && R(this, _, new MutationObserver((t) => {
103
103
  t.forEach((e) => {
104
104
  e.removedNodes.forEach((s) => {
105
105
  s instanceof HTMLElement && this.removeItem(s);
@@ -136,9 +136,9 @@ let $ = class extends J {
136
136
  });
137
137
  }
138
138
  connectedCallback() {
139
- a(this, _).observe(a(this, k, D), {
139
+ a(this, _).observe(a(this, z, D), {
140
140
  childList: !0
141
- }), R(this, f, [...a(this, k, D).children].map((t) => {
141
+ }), R(this, f, [...a(this, z, D).children].map((t) => {
142
142
  if (t instanceof HTMLElement)
143
143
  return new G(this, t);
144
144
  }).filter((t) => !!t));
@@ -151,15 +151,13 @@ W = /* @__PURE__ */ new WeakMap();
151
151
  P = /* @__PURE__ */ new WeakMap();
152
152
  f = /* @__PURE__ */ new WeakMap();
153
153
  _ = /* @__PURE__ */ new WeakMap();
154
- k = /* @__PURE__ */ new WeakSet();
154
+ z = /* @__PURE__ */ new WeakSet();
155
155
  D = function() {
156
156
  return this.shadowRoot ? this.shadowRoot : this;
157
157
  };
158
158
  $ = Z([
159
159
  K("e-accordion")
160
160
  ], $);
161
- addEventListener("click", (t) => {
162
- });
163
161
  export {
164
162
  $ as AccordionElement
165
163
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const S=require("../math-GDWEqu7y.cjs"),E=require("../tags-75InVOh4.cjs"),b=require("../createStylesheet-DTOK6fTn.cjs"),k=require("../element-resizer/index.cjs"),C=require("../ticker/index.cjs");var y=Object.defineProperty,q=Object.getOwnPropertyDescriptor,P=(i,e,s,h)=>{for(var r=h>1?void 0:h?q(e,s):e,f=i.length-1,g;f>=0;f--)(g=i[f])&&(r=(h?g(e,s,r):g(r))||r);return h&&r&&y(e,s,r),r},R=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(R(i,e,"read from private field"),s?s.call(i):e.get(i)),a=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},c=(i,e,s,h)=>(R(i,e,"write to private field"),h?h.call(i,s):e.set(i,s),s),M=(i,e,s)=>(R(i,e,"access private method"),s),n,p,l,o,d,u,v,_,m,w,x;const O=b.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});exports.CanvasElement=class extends W.CustomElement{constructor(){super(),a(this,w),a(this,n,null),a(this,p,null),a(this,l,0),a(this,o,0),a(this,d,1),a(this,u,0),a(this,v,1),a(this,_,e=>{c(this,d,S.clamp(devicePixelRatio,1,2)),c(this,l,e.contentRect.width),c(this,o,e.contentRect.height),t(this,n).width=t(this,l)*this.pixelRatio,t(this,n).height=t(this,o)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),M(this,w,x).call(this)}),a(this,m,e=>{c(this,u,e.timestamp),c(this,v,e.elapsed),M(this,w,x).call(this)}),this.openShadow(O),E.element(this,{children:E.canvas({ref:e=>{c(this,n,e),c(this,p,e.getContext("2d"))}})})}get canvasElement(){return t(this,n)}get context(){return t(this,p)}get pixelRatio(){return t(this,d)}get width(){return t(this,l)}get height(){return t(this,o)}get detail(){return{width:t(this,l),height:t(this,o),element:this,canvasElement:t(this,n),pixelRatio:t(this,d),context:t(this,p),timestamp:t(this,u),elapsed:t(this,v)}}connectedCallback(){k.elementResizer.subscribe(this,t(this,_)),this.hasAttribute("static")||C.ticker.subscribe(t(this,m),{culling:this,maxFPS:this.hasAttribute("fps")?parseInt(this.getAttribute("fps")):void 0})}disconnectedCallback(){k.elementResizer.unsubscribe(t(this,_)),C.ticker.unsubscribe(t(this,m)),t(this,n).remove()}};n=new WeakMap;p=new WeakMap;l=new WeakMap;o=new WeakMap;d=new WeakMap;u=new WeakMap;v=new WeakMap;_=new WeakMap;m=new WeakMap;w=new WeakSet;x=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))};exports.CanvasElement=P([W.define("e-canvas")],exports.CanvasElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const W=require("../custom-element/index.cjs");require("../Store-D0_rDIsE.cjs");const S=require("../math-GDWEqu7y.cjs"),E=require("../tags-DGIuh1Hi.cjs"),b=require("../createStylesheet-B5Nhxdpo.cjs"),k=require("../element-resizer/index.cjs"),C=require("../ticker/index.cjs");var y=Object.defineProperty,q=Object.getOwnPropertyDescriptor,P=(i,e,s,h)=>{for(var r=h>1?void 0:h?q(e,s):e,f=i.length-1,g;f>=0;f--)(g=i[f])&&(r=(h?g(e,s,r):g(r))||r);return h&&r&&y(e,s,r),r},R=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)},t=(i,e,s)=>(R(i,e,"read from private field"),s?s.call(i):e.get(i)),a=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},c=(i,e,s,h)=>(R(i,e,"write to private field"),h?h.call(i,s):e.set(i,s),s),M=(i,e,s)=>(R(i,e,"access private method"),s),n,p,l,o,d,u,v,_,m,w,x;const O=b.createStylesheet({":host, canvas":{display:"block",width:"100%",height:"100%"}});exports.CanvasElement=class extends W.CustomElement{constructor(){super(),a(this,w),a(this,n,null),a(this,p,null),a(this,l,0),a(this,o,0),a(this,d,1),a(this,u,0),a(this,v,1),a(this,_,e=>{c(this,d,S.clamp(devicePixelRatio,1,2)),c(this,l,e.contentRect.width),c(this,o,e.contentRect.height),t(this,n).width=t(this,l)*this.pixelRatio,t(this,n).height=t(this,o)*this.pixelRatio,this.context.scale(this.pixelRatio,this.pixelRatio),M(this,w,x).call(this)}),a(this,m,e=>{c(this,u,e.timestamp),c(this,v,e.elapsed),M(this,w,x).call(this)}),this.openShadow(O),E.element(this,{children:E.canvas({ref:e=>{c(this,n,e),c(this,p,e.getContext("2d"))}})})}get canvasElement(){return t(this,n)}get context(){return t(this,p)}get pixelRatio(){return t(this,d)}get width(){return t(this,l)}get height(){return t(this,o)}get detail(){return{width:t(this,l),height:t(this,o),element:this,canvasElement:t(this,n),pixelRatio:t(this,d),context:t(this,p),timestamp:t(this,u),elapsed:t(this,v)}}connectedCallback(){k.elementResizer.subscribe(this,t(this,_)),this.hasAttribute("static")||C.ticker.subscribe(t(this,m),{culling:this,maxFPS:this.hasAttribute("fps")?parseInt(this.getAttribute("fps")):void 0})}disconnectedCallback(){k.elementResizer.unsubscribe(t(this,_)),C.ticker.unsubscribe(t(this,m)),t(this,n).remove()}};n=new WeakMap;p=new WeakMap;l=new WeakMap;o=new WeakMap;d=new WeakMap;u=new WeakMap;v=new WeakMap;_=new WeakMap;m=new WeakMap;w=new WeakSet;x=function(){this.dispatchEvent(new CustomEvent("canvasRender",{composed:!0,detail:this.detail}))};exports.CanvasElement=P([W.define("e-canvas")],exports.CanvasElement);
@@ -1,8 +1,8 @@
1
1
  import { CustomElement as M, define as b } from "../custom-element/index.js";
2
2
  import "../Store-JOKrNVEr.js";
3
3
  import { c as P } from "../math-BOBiC4TN.js";
4
- import { e as S, q as y } from "../tags-DgRVzazL.js";
5
- import { c as A } from "../createStylesheet-Zqf3lXhM.js";
4
+ import { e as S, q as y } from "../tags-D0k7-iVY.js";
5
+ import { c as A } from "../createStylesheet-DpGvTRP3.js";
6
6
  import { elementResizer as k } from "../element-resizer/index.js";
7
7
  import { ticker as E } from "../ticker/index.js";
8
8
  var O = Object.defineProperty, z = Object.getOwnPropertyDescriptor, D = (t, i, s, r) => {
@@ -1 +1 @@
1
- "use strict";const n=require("./tags-75InVOh4.cjs");function r(t){const e=new CSSStyleSheet;return e.replaceSync(n.style(t).node.innerHTML),e}exports.createStylesheet=r;
1
+ "use strict";const n=require("./tags-DGIuh1Hi.cjs");function r(t){const e=new CSSStyleSheet;return e.replaceSync(n.style(t).node.innerHTML),e}exports.createStylesheet=r;
@@ -1,4 +1,4 @@
1
- import { aD as n } from "./tags-DgRVzazL.js";
1
+ import { aC as n } from "./tags-D0k7-iVY.js";
2
2
  function c(t) {
3
3
  const e = new CSSStyleSheet();
4
4
  return e.replaceSync(n(t).node.innerHTML), e;
@@ -1 +1 @@
1
- "use strict";const l=require("./string-vBu90jhV.cjs");function s(r,a){const t=(a==null?void 0:a.prefix)||"",c={style:{}};for(const e in r)c[e]={var:`var(--${t}${l.camelToKebab(e)})`,value:r[e]},c.style[`--${t}${l.camelToKebab(e)}`]=r[e];return c}exports.createTheme=s;
1
+ "use strict";const l=require("./string-Cgp_uJvP.cjs");function s(r,a){const t=(a==null?void 0:a.prefix)||"",c={style:{}};for(const e in r)c[e]={var:`var(--${t}${l.camelToKebab(e)})`,value:r[e]},c.style[`--${t}${l.camelToKebab(e)}`]=r[e];return c}exports.createTheme=s;
@@ -1,4 +1,4 @@
1
- import { c as l } from "./string-3lAkpJJP.js";
1
+ import { c as l } from "./string-DCGBU6em.js";
2
2
  function m(r, a) {
3
3
  const f = (a == null ? void 0 : a.prefix) || "", c = {
4
4
  style: {}
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../tags-75InVOh4.cjs"),t=require("../createStylesheet-DTOK6fTn.cjs"),a=require("../createTheme-B_W5dUY9.cjs");exports.ElementConstructor=e.ElementConstructor;exports.a=e.a;exports.abbr=e.abbr;exports.address=e.address;exports.area=e.area;exports.article=e.article;exports.aside=e.aside;exports.audio=e.audio;exports.b=e.b;exports.base=e.base;exports.bdi=e.bdi;exports.bdo=e.bdo;exports.blockquote=e.blockquote;exports.body=e.body;exports.br=e.br;exports.button=e.button;exports.canvas=e.canvas;exports.caption=e.caption;exports.cite=e.cite;exports.code=e.code;exports.col=e.col;exports.colgroup=e.colgroup;exports.contents=e.contents;exports.data=e.data;exports.datalist=e.datalist;exports.dd=e.dd;exports.del=e.del;exports.details=e.details;exports.dfn=e.dfn;exports.dialog=e.dialog;exports.div=e.div;exports.dl=e.dl;exports.dt=e.dt;exports.element=e.element;exports.em=e.em;exports.embed=e.embed;exports.empty=e.empty;exports.fieldset=e.fieldset;exports.figcaption=e.figcaption;exports.figure=e.figure;exports.footer=e.footer;exports.form=e.form;exports.fragment=e.fragment;exports.h1=e.h1;exports.h2=e.h2;exports.h3=e.h3;exports.h4=e.h4;exports.h5=e.h5;exports.h6=e.h6;exports.head=e.head;exports.header=e.header;exports.hgroup=e.hgroup;exports.hr=e.hr;exports.html=e.html;exports.htmlVar=e.htmlVar;exports.i=e.i;exports.iframe=e.iframe;exports.img=e.img;exports.input=e.input;exports.ins=e.ins;exports.kbd=e.kbd;exports.label=e.label;exports.legend=e.legend;exports.li=e.li;exports.link=e.link;exports.main=e.main;exports.map=e.map;exports.mark=e.mark;exports.menu=e.menu;exports.meta=e.meta;exports.meter=e.meter;exports.nav=e.nav;exports.noscript=e.noscript;exports.object=e.object;exports.ol=e.ol;exports.optgroup=e.optgroup;exports.option=e.option;exports.output=e.output;exports.p=e.p;exports.picture=e.picture;exports.pre=e.pre;exports.progress=e.progress;exports.q=e.q;exports.rp=e.rp;exports.rt=e.rt;exports.ruby=e.ruby;exports.s=e.s;exports.samp=e.samp;exports.script=e.script;exports.search=e.search;exports.section=e.section;exports.select=e.select;exports.slot=e.slot;exports.small=e.small;exports.source=e.source;exports.span=e.span;exports.strong=e.strong;exports.style=e.style;exports.sub=e.sub;exports.summary=e.summary;exports.sup=e.sup;exports.table=e.table;exports.tbody=e.tbody;exports.td=e.td;exports.template=e.template;exports.textarea=e.textarea;exports.tfoot=e.tfoot;exports.th=e.th;exports.thead=e.thead;exports.time=e.time;exports.title=e.title;exports.tr=e.tr;exports.track=e.track;exports.u=e.u;exports.ul=e.ul;exports.video=e.video;exports.wbr=e.wbr;exports.createStylesheet=t.createStylesheet;exports.createTheme=a.createTheme;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../ElementConstructor-CdUaQS-S.cjs"),e=require("../tags-DGIuh1Hi.cjs"),r=require("../createStylesheet-B5Nhxdpo.cjs"),a=require("../createTheme-CLqJF9Pw.cjs");exports.ElementConstructor=t.ElementConstructor;exports.a=e.a;exports.abbr=e.abbr;exports.address=e.address;exports.area=e.area;exports.article=e.article;exports.aside=e.aside;exports.audio=e.audio;exports.b=e.b;exports.base=e.base;exports.bdi=e.bdi;exports.bdo=e.bdo;exports.blockquote=e.blockquote;exports.body=e.body;exports.br=e.br;exports.button=e.button;exports.canvas=e.canvas;exports.caption=e.caption;exports.cite=e.cite;exports.code=e.code;exports.col=e.col;exports.colgroup=e.colgroup;exports.contents=e.contents;exports.data=e.data;exports.datalist=e.datalist;exports.dd=e.dd;exports.del=e.del;exports.details=e.details;exports.dfn=e.dfn;exports.dialog=e.dialog;exports.div=e.div;exports.dl=e.dl;exports.dt=e.dt;exports.element=e.element;exports.em=e.em;exports.embed=e.embed;exports.empty=e.empty;exports.fieldset=e.fieldset;exports.figcaption=e.figcaption;exports.figure=e.figure;exports.footer=e.footer;exports.form=e.form;exports.fragment=e.fragment;exports.h1=e.h1;exports.h2=e.h2;exports.h3=e.h3;exports.h4=e.h4;exports.h5=e.h5;exports.h6=e.h6;exports.head=e.head;exports.header=e.header;exports.hgroup=e.hgroup;exports.hr=e.hr;exports.html=e.html;exports.htmlVar=e.htmlVar;exports.i=e.i;exports.iframe=e.iframe;exports.img=e.img;exports.input=e.input;exports.ins=e.ins;exports.kbd=e.kbd;exports.label=e.label;exports.legend=e.legend;exports.li=e.li;exports.link=e.link;exports.main=e.main;exports.map=e.map;exports.mark=e.mark;exports.menu=e.menu;exports.meta=e.meta;exports.meter=e.meter;exports.nav=e.nav;exports.noscript=e.noscript;exports.object=e.object;exports.ol=e.ol;exports.optgroup=e.optgroup;exports.option=e.option;exports.output=e.output;exports.p=e.p;exports.picture=e.picture;exports.pre=e.pre;exports.progress=e.progress;exports.q=e.q;exports.rp=e.rp;exports.rt=e.rt;exports.ruby=e.ruby;exports.s=e.s;exports.samp=e.samp;exports.script=e.script;exports.search=e.search;exports.section=e.section;exports.select=e.select;exports.slot=e.slot;exports.small=e.small;exports.source=e.source;exports.span=e.span;exports.strong=e.strong;exports.style=e.style;exports.sub=e.sub;exports.summary=e.summary;exports.sup=e.sup;exports.table=e.table;exports.tbody=e.tbody;exports.td=e.td;exports.template=e.template;exports.textarea=e.textarea;exports.tfoot=e.tfoot;exports.th=e.th;exports.thead=e.thead;exports.time=e.time;exports.title=e.title;exports.tr=e.tr;exports.track=e.track;exports.u=e.u;exports.ul=e.ul;exports.video=e.video;exports.wbr=e.wbr;exports.createStylesheet=r.createStylesheet;exports.createTheme=a.createTheme;