aptechka 0.79.0 → 0.80.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 (150) hide show
  1. package/lib/{Animation-BDEX44-i.js → Animation-C4tLEBGM.js} +2 -2
  2. package/lib/{Animation-hZcAchp_.cjs → Animation-jmvFcNfM.cjs} +1 -1
  3. package/lib/Composed-BB1MtFiT.js +70 -0
  4. package/lib/Composed-CSeUTRCg.cjs +1 -0
  5. package/lib/{Damped-z9Uaw2MJ.cjs → Damped-77Urmi3q.cjs} +1 -1
  6. package/lib/{Damped-CtQmJ52v.js → Damped-DVG5nrYV.js} +2 -2
  7. package/lib/DerivedArray-B8A0-8uT.cjs +1 -0
  8. package/lib/DerivedArray-D3scYQdp.js +59 -0
  9. package/lib/{DragControls-K67-diF5.cjs → DragControls-BlL26P1V.cjs} +1 -1
  10. package/lib/{DragControls-DyIrD3GV.js → DragControls-Cm_88cLt.js} +4 -4
  11. package/lib/{SourceElement-VVdVc1d-.cjs → SourceElement-BBfaAgwe.cjs} +1 -1
  12. package/lib/{SourceElement-BnMxiOqY.js → SourceElement-BiNNtaz9.js} +2 -2
  13. package/lib/Store-1JrMCgdX.cjs +1 -0
  14. package/lib/{Store-0BVty6AZ.js → Store-BtVtCGLk.js} +52 -35
  15. package/lib/{Tweened-BlZB0vl4.js → Tweened-C1lnK6n9.js} +2 -2
  16. package/lib/{Tweened-mvHucL4Y.cjs → Tweened-CXQrFQth.cjs} +1 -1
  17. package/lib/{Viewport-DB0qAZPJ.cjs → Viewport-Cx50Hufs.cjs} +1 -1
  18. package/lib/{Viewport-DA10iWAO.js → Viewport-DbN_JWBM.js} +2 -2
  19. package/lib/accordion/index.cjs +1 -1
  20. package/lib/accordion/index.js +1 -1
  21. package/lib/animation/index.cjs +1 -1
  22. package/lib/animation/index.js +3 -3
  23. package/lib/attribute/index.cjs +1 -1
  24. package/lib/attribute/index.js +3 -3
  25. package/lib/billboard/index.cjs +1 -1
  26. package/lib/billboard/index.js +2 -2
  27. package/lib/canvas/index.cjs +1 -1
  28. package/lib/canvas/index.js +2 -2
  29. package/lib/connector/index.cjs +1 -1
  30. package/lib/connector/index.js +2 -1
  31. package/lib/controls/index.cjs +1 -1
  32. package/lib/controls/index.js +1 -1
  33. package/lib/css-property/index.cjs +1 -1
  34. package/lib/css-property/index.js +3 -3
  35. package/lib/css-value-parser/index.cjs +1 -1
  36. package/lib/css-value-parser/index.js +1 -1
  37. package/lib/dev/index.cjs +1 -1
  38. package/lib/dev/index.js +2 -2
  39. package/lib/device/index.cjs +1 -1
  40. package/lib/device/index.js +1 -1
  41. package/lib/{dom-CVWzyXPH.js → dom-fgxIeFxm.js} +22 -7
  42. package/lib/dom-hTEdqeoj.cjs +1 -0
  43. package/lib/element-linked-store/index.cjs +1 -1
  44. package/lib/element-linked-store/index.js +2 -2
  45. package/lib/element-resizer/index.cjs +1 -1
  46. package/lib/element-resizer/index.js +2 -2
  47. package/lib/en3/index.cjs +1 -1
  48. package/lib/en3/index.js +2 -2
  49. package/lib/iframe/index.cjs +1 -1
  50. package/lib/iframe/index.js +3 -3
  51. package/lib/image/index.cjs +1 -1
  52. package/lib/image/index.js +4 -4
  53. package/lib/{index-DekP7OZe.cjs → index-CKTweR3M.cjs} +1 -1
  54. package/lib/{index-Bv9zgfdb.js → index-JqYHGoo6.js} +1 -1
  55. package/lib/intersector/index.cjs +1 -1
  56. package/lib/intersector/index.js +2 -2
  57. package/lib/jsx/ComponentElement.d.ts +13 -0
  58. package/lib/jsx/h.d.ts +3 -0
  59. package/lib/jsx/hooks/common.d.ts +1 -0
  60. package/lib/jsx/hooks/component/lifecycle.d.ts +4 -0
  61. package/lib/jsx/hooks/component/useInternals.d.ts +2 -0
  62. package/lib/jsx/hooks/component/useShadow.d.ts +2 -0
  63. package/lib/jsx/hooks/component/useStylesheet.d.ts +8 -0
  64. package/lib/jsx/hooks/store.d.ts +8 -0
  65. package/lib/jsx/index.cjs +1 -0
  66. package/lib/jsx/index.d.ts +9 -0
  67. package/lib/jsx/index.js +140 -0
  68. package/lib/jsx/render.d.ts +1 -0
  69. package/lib/jsx/type.d.ts +224 -0
  70. package/lib/jsx/utils/attributes/class.d.ts +5 -0
  71. package/lib/jsx/utils/attributes/setAttributes.d.ts +2 -0
  72. package/lib/jsx/utils/attributes/style.d.ts +6 -0
  73. package/lib/jsx/utils/children/filterChildren.d.ts +2 -0
  74. package/lib/jsx/utils/children/findTextNode.d.ts +1 -0
  75. package/lib/jsx/utils/children/removeChildren.d.ts +1 -0
  76. package/lib/jsx/utils/children/storeChildren.d.ts +2 -0
  77. package/lib/jsx/utils/elementStoreSubscription.d.ts +2 -0
  78. package/lib/ladder/index.cjs +1 -1
  79. package/lib/ladder/index.js +2 -2
  80. package/lib/layout-box/index.cjs +1 -1
  81. package/lib/layout-box/index.js +2 -2
  82. package/lib/loading/index.cjs +1 -1
  83. package/lib/loading/index.js +1 -1
  84. package/lib/masonry-layout/index.cjs +1 -1
  85. package/lib/masonry-layout/index.js +2 -2
  86. package/lib/media/index.cjs +1 -1
  87. package/lib/media/index.js +2 -2
  88. package/lib/morph/Morph.d.ts +3 -21
  89. package/lib/morph/index.cjs +1 -1
  90. package/lib/morph/index.js +3 -3
  91. package/lib/need_redo_tweaker/element-constructor/ElementConstructor.d.ts +1 -1
  92. package/lib/need_redo_tweaker/index.cjs +1 -1
  93. package/lib/need_redo_tweaker/index.js +8 -8
  94. package/lib/pixel-perfect/index.cjs +1 -1
  95. package/lib/pixel-perfect/index.js +3 -3
  96. package/lib/pointer/index.cjs +1 -1
  97. package/lib/pointer/index.js +4 -4
  98. package/lib/popover/index.cjs +1 -1
  99. package/lib/popover/index.js +3 -3
  100. package/lib/radio/index.cjs +1 -1
  101. package/lib/radio/index.js +1 -1
  102. package/lib/render-BCEBRfHS.js +196 -0
  103. package/lib/render-Rv0UMACs.cjs +1 -0
  104. package/lib/router/Link.d.ts +3 -1
  105. package/lib/router/Route.d.ts +9 -10
  106. package/lib/router/Router.d.ts +13 -13
  107. package/lib/router/index.cjs +1 -1
  108. package/lib/router/index.d.ts +2 -2
  109. package/lib/router/index.js +267 -216
  110. package/lib/scroll/index.cjs +1 -1
  111. package/lib/scroll/index.js +8 -8
  112. package/lib/{scroll-DNGJVxa2.js → scroll-7JSxRKFK.js} +2 -2
  113. package/lib/{scroll-CIdNtj3G.cjs → scroll-DxcPU0vk.cjs} +1 -1
  114. package/lib/scroll-entries/index.cjs +1 -1
  115. package/lib/scroll-entries/index.js +1 -1
  116. package/lib/scroll-kit/index.cjs +1 -1
  117. package/lib/scroll-kit/index.js +4 -4
  118. package/lib/sequence/index.cjs +1 -1
  119. package/lib/sequence/index.js +3 -3
  120. package/lib/size-element/index.cjs +1 -1
  121. package/lib/size-element/index.js +1 -1
  122. package/lib/slicer/SlicerElement.d.ts +1 -1
  123. package/lib/slicer/index.cjs +1 -1
  124. package/lib/slicer/index.js +13 -13
  125. package/lib/source/index.cjs +1 -1
  126. package/lib/source/index.js +1 -1
  127. package/lib/store/DerivedArray.d.ts +11 -1
  128. package/lib/store/Store.d.ts +5 -0
  129. package/lib/store/index.cjs +1 -1
  130. package/lib/store/index.js +10 -87
  131. package/lib/{stylesheet-HWF2a3nr.cjs → stylesheet-BcwbfhBp.cjs} +1 -1
  132. package/lib/{stylesheet-DpnWNVyD.js → stylesheet-JlRFfJIc.js} +1 -1
  133. package/lib/ticker/index.cjs +1 -1
  134. package/lib/ticker/index.js +2 -2
  135. package/lib/url-C2kASACG.cjs +1 -0
  136. package/lib/{url-Ddgqz4Q_.js → url-CGbjOTU4.js} +17 -17
  137. package/lib/utils/dom.d.ts +2 -0
  138. package/lib/utils/index.cjs +1 -1
  139. package/lib/utils/index.js +102 -100
  140. package/lib/utils/url.d.ts +3 -2
  141. package/lib/video/index.cjs +1 -1
  142. package/lib/video/index.js +3 -3
  143. package/lib/window-resizer/index.cjs +1 -1
  144. package/lib/window-resizer/index.js +1 -1
  145. package/lib/youtube/index.cjs +1 -1
  146. package/lib/youtube/index.js +3 -3
  147. package/package.json +21 -11
  148. package/lib/Store-Cd1GlEmZ.cjs +0 -1
  149. package/lib/dom-JBOkFLTh.cjs +0 -1
  150. package/lib/url-VIZgwj_h.cjs +0 -1
@@ -4,7 +4,7 @@ var O = (n) => {
4
4
  var F = (n, e, s) => e.has(n) || O("Cannot " + s);
5
5
  var t = (n, e, s) => (F(n, e, "read from private field"), s ? s.call(n) : e.get(n)), r = (n, e, s) => e.has(n) ? O("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(n) : e.set(n, s), o = (n, e, s, p) => (F(n, e, "write to private field"), p ? p.call(n, s) : e.set(n, s), s), T = (n, e, s) => (F(n, e, "access private method"), s);
6
6
  import { Media as $ } from "../media/index.js";
7
- import { i as S } from "../index-Bv9zgfdb.js";
7
+ import { i as S } from "../index-JqYHGoo6.js";
8
8
  import "construct-style-sheets-polyfill";
9
9
  var y, d;
10
10
  class _ {
@@ -21,14 +21,14 @@ class _ {
21
21
  }
22
22
  }
23
23
  y = new WeakMap(), d = new WeakMap();
24
- var A, c, g, E;
24
+ var L, c, g, E;
25
25
  class k {
26
26
  constructor(e) {
27
- r(this, A);
27
+ r(this, L);
28
28
  r(this, c);
29
29
  r(this, g);
30
30
  r(this, E);
31
- if (o(this, A, e.index), o(this, c, document.createElement("span")), o(this, g, []), o(this, E, e.text.endsWith("\\n")), t(this, E) && (e.text = e.text.replace("\\n", "")), e.letters && e.lettersAcc !== void 0) {
31
+ if (o(this, L, e.index), o(this, c, document.createElement("span")), o(this, g, []), o(this, E, e.text.endsWith("\\n")), t(this, E) && (e.text = e.text.replace("\\n", "")), e.letters && e.lettersAcc !== void 0) {
32
32
  let s = 0;
33
33
  const p = e.text.split("").map((h) => {
34
34
  if (h !== " ")
@@ -46,7 +46,7 @@ class k {
46
46
  t(this, c).classList.add("word");
47
47
  }
48
48
  get index() {
49
- return t(this, A);
49
+ return t(this, L);
50
50
  }
51
51
  get element() {
52
52
  return t(this, c);
@@ -58,7 +58,7 @@ class k {
58
58
  return t(this, E);
59
59
  }
60
60
  }
61
- A = new WeakMap(), c = new WeakMap(), g = new WeakMap(), E = new WeakMap();
61
+ L = new WeakMap(), c = new WeakMap(), g = new WeakMap(), E = new WeakMap();
62
62
  var m, a, x, N, u, H, b;
63
63
  class G extends HTMLElement {
64
64
  constructor() {
@@ -79,9 +79,9 @@ class G extends HTMLElement {
79
79
  return t(this, m);
80
80
  }
81
81
  connectedCallback() {
82
- o(this, m, this.innerHTML.trim()), this.hasAttribute("media") ? (o(this, N, new $(this.getAttribute("media"))), t(this, N).subscribe((s) => {
82
+ this.classList.contains("splitted") || (o(this, m, this.innerHTML.trim()), this.hasAttribute("media") ? (o(this, N, new $(this.getAttribute("media"))), t(this, N).subscribe((s) => {
83
83
  s.current ? T(this, u, H).call(this) : !s.current && s.previous && T(this, u, b).call(this);
84
- })) : T(this, u, H).call(this);
84
+ })) : T(this, u, H).call(this), this.classList.add("splitted"));
85
85
  }
86
86
  disconnectedCallback() {
87
87
  var s;
@@ -96,7 +96,7 @@ m = new WeakMap(), a = new WeakMap(), x = new WeakMap(), N = new WeakMap(), u =
96
96
  var f;
97
97
  const l = (f = i.textContent) == null ? void 0 : f.trim();
98
98
  if (!l) return document.createDocumentFragment();
99
- const L = document.createDocumentFragment();
99
+ const A = document.createDocumentFragment();
100
100
  return l.replace(
101
101
  /[\s\u00A0\u1680\u2000-\u200F\u2028\u2029\u202F\u205F\u3000\uFEFF]+/g,
102
102
  " "
@@ -109,15 +109,15 @@ m = new WeakMap(), a = new WeakMap(), x = new WeakMap(), N = new WeakMap(), u =
109
109
  lettersAcc: h,
110
110
  clone: this.hasAttribute("clone")
111
111
  });
112
- h += w.letters.length, p += 1, t(this, x).push(...w.letters), t(this, a).push(w), L.appendChild(w.element);
113
- }), L;
112
+ h += w.letters.length, p += 1, t(this, x).push(...w.letters), t(this, a).push(w), A.appendChild(w.element);
113
+ }), A;
114
114
  }, D = (i) => {
115
115
  if (i.nodeType === Node.TEXT_NODE)
116
116
  return P(i);
117
117
  if (i.nodeType === Node.ELEMENT_NODE) {
118
118
  const l = i.cloneNode(!1);
119
- return Array.from(i.childNodes).forEach((L) => {
120
- const f = D(L);
119
+ return Array.from(i.childNodes).forEach((A) => {
120
+ const f = D(A);
121
121
  f && (f.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? Array.from(f.childNodes).forEach((M, v, C) => {
122
122
  l.append(M), v !== C.length - 1 && l.append(new Text(" "));
123
123
  }) : l.appendChild(f));
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../SourceElement-VVdVc1d-.cjs");exports.Source=e.Source;exports.SourceElement=e.SourceElement;exports.SourceManager=e.SourceManager;exports.SourceSet=e.SourceSet;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../SourceElement-BBfaAgwe.cjs");exports.Source=e.Source;exports.SourceElement=e.SourceElement;exports.SourceManager=e.SourceManager;exports.SourceSet=e.SourceSet;
@@ -1,4 +1,4 @@
1
- import { S as r, a as o, c as S, b as c } from "../SourceElement-BnMxiOqY.js";
1
+ import { S as r, a as o, c as S, b as c } from "../SourceElement-BiNNtaz9.js";
2
2
  export {
3
3
  r as Source,
4
4
  o as SourceElement,
@@ -1,7 +1,17 @@
1
1
  import { Store, StoreOptions } from './Store';
2
2
  export type DerivedArrayCallback<Type, SourceType extends Array<any>, Return = Type> = (value: SourceType[number], index: number, arr: SourceType) => Return;
3
+ export interface DerivedArrayOptions<Type> extends StoreOptions<Array<Type>> {
4
+ revalidateAll?: boolean;
5
+ }
3
6
  export declare class DerivedArray<Type, SourceType extends Array<any>> extends Store<Array<Type>> {
4
7
  #private;
5
- constructor(store: Store<SourceType>, callback: DerivedArrayCallback<Type, SourceType>, parameters?: StoreOptions<Array<Type>>);
8
+ constructor(store: Store<SourceType>, callback: DerivedArrayCallback<Type, SourceType>, options?: DerivedArrayOptions<Type>);
9
+ close(): void;
10
+ }
11
+ export declare class DerivedKeyedArray<Type, SourceType extends Array<{
12
+ key: string;
13
+ } & object>> extends Store<Array<Type>> {
14
+ #private;
15
+ constructor(store: Store<SourceType>, callback: DerivedArrayCallback<Type, SourceType>, options?: DerivedArrayOptions<Type>);
6
16
  close(): void;
7
17
  }
@@ -19,11 +19,16 @@ export declare class Store<StoreType = unknown> {
19
19
  #private;
20
20
  __manager?: any;
21
21
  constructor(value: StoreType, options?: StoreOptions<StoreType>);
22
+ get id(): string;
22
23
  get name(): string | undefined;
23
24
  get initial(): StoreType;
24
25
  get previous(): StoreType | undefined;
25
26
  get current(): StoreType;
26
27
  set current(value: StoreType);
28
+ setCurrent(value: StoreType): void;
29
+ update(callback: (value: StoreType) => StoreType): void;
30
+ add<T extends StoreType extends Array<any> ? StoreType[number] : StoreType>(value: T): void;
31
+ filter<T extends StoreType extends Array<any> ? StoreType[number] : StoreType>(callback: (value: T) => void): void;
27
32
  get subscribers(): import('../notifier').NotifierSubscriber[];
28
33
  notify(): void;
29
34
  addMiddleware(middleware: StoreMiddleware<StoreType>): void;
@@ -1 +1 @@
1
- "use strict";var g=r=>{throw TypeError(r)};var v=(r,s,e)=>s.has(r)||g("Cannot "+e);var c=(r,s,e)=>(v(r,s,"read from private field"),e?e.call(r):s.get(r)),n=(r,s,e)=>s.has(r)?g("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,e),h=(r,s,e,t)=>(v(r,s,"write to private field"),t?t.call(r,e):s.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../Store-Cd1GlEmZ.cjs"),m=require("../function-MthRj-GJ.cjs");require("construct-style-sheets-polyfill");require("../index-DekP7OZe.cjs");var d;class q extends i.Store{constructor(e,t,u){super(null,u);n(this,d);h(this,d,e.subscribe(a=>{this.current=t(a.current)}))}close(){super.close(),c(this,d).call(this)}}d=new WeakMap;var b;class D extends i.Store{constructor(e,t,u){super(null,u);n(this,b);h(this,b,e.subscribe(a=>{this.current=a.current.map((p,x,y)=>t(p,x,y))}))}close(){super.close(),c(this,b).call(this)}}b=new WeakMap;var f,o,l;class R extends i.Store{constructor(e,t,u){super(e,u);n(this,f);n(this,o);n(this,l,0);h(this,o,new i.Store(!1)),h(this,f,t),u!=null&&u.manualControl||this.refetch()}get isPending(){return c(this,o)}refetch(){c(this,o).current=!0,h(this,l,c(this,l)+1);const e=c(this,l);c(this,f).call(this).then(t=>{e===c(this,l)&&(c(this,o).current=!1,this.current=t)})}}f=new WeakMap,o=new WeakMap,l=new WeakMap;var S;class C extends i.Store{constructor(e,t,u){super(null,u);n(this,S,[]);const a=m.debounce(()=>{this.current=t()},0);e.forEach(p=>{c(this,S).push(p.subscribe(()=>{a()}))})}close(){super.close(),c(this,S).forEach(e=>e())}}S=new WeakMap;exports.Store=i.Store;exports.activeStores=i.activeStores;exports.storeRegistry=i.storeRegistry;exports.Composed=C;exports.Derived=q;exports.DerivedArray=D;exports.Resource=R;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Store-1JrMCgdX.cjs"),r=require("../Composed-CSeUTRCg.cjs"),o=require("../DerivedArray-B8A0-8uT.cjs");exports.Store=e.Store;exports.activeStores=e.activeStores;exports.storeRegistry=e.storeRegistry;exports.Composed=r.Composed;exports.Derived=r.Derived;exports.Resource=r.Resource;exports.DerivedArray=o.DerivedArray;
@@ -1,89 +1,12 @@
1
- var x = (e) => {
2
- throw TypeError(e);
3
- };
4
- var g = (e, r, s) => r.has(e) || x("Cannot " + s);
5
- var c = (e, r, s) => (g(e, r, "read from private field"), s ? s.call(e) : r.get(e)), i = (e, r, s) => r.has(e) ? x("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, s), h = (e, r, s, t) => (g(e, r, "write to private field"), t ? t.call(e, s) : r.set(e, s), s);
6
- import { S as a } from "../Store-0BVty6AZ.js";
7
- import { a as z, s as B } from "../Store-0BVty6AZ.js";
8
- import { d as y } from "../function-C10DGppn.js";
9
- import "construct-style-sheets-polyfill";
10
- import "../index-Bv9zgfdb.js";
11
- var d;
12
- class R extends a {
13
- constructor(s, t, u) {
14
- super(null, u);
15
- i(this, d);
16
- h(this, d, s.subscribe((l) => {
17
- this.current = t(l.current);
18
- }));
19
- }
20
- close() {
21
- super.close(), c(this, d).call(this);
22
- }
23
- }
24
- d = new WeakMap();
25
- var f;
26
- class w extends a {
27
- constructor(s, t, u) {
28
- super(null, u);
29
- i(this, f);
30
- h(this, f, s.subscribe((l) => {
31
- this.current = l.current.map((m, v, S) => t(m, v, S));
32
- }));
33
- }
34
- close() {
35
- super.close(), c(this, f).call(this);
36
- }
37
- }
38
- f = new WeakMap();
39
- var b, n, o;
40
- class A extends a {
41
- constructor(s, t, u) {
42
- super(s, u);
43
- i(this, b);
44
- i(this, n);
45
- i(this, o, 0);
46
- h(this, n, new a(!1)), h(this, b, t), u != null && u.manualControl || this.refetch();
47
- }
48
- get isPending() {
49
- return c(this, n);
50
- }
51
- refetch() {
52
- c(this, n).current = !0, h(this, o, c(this, o) + 1);
53
- const s = c(this, o);
54
- c(this, b).call(this).then((t) => {
55
- s === c(this, o) && (c(this, n).current = !1, this.current = t);
56
- });
57
- }
58
- }
59
- b = new WeakMap(), n = new WeakMap(), o = new WeakMap();
60
- var p;
61
- class j extends a {
62
- constructor(s, t, u) {
63
- super(null, u);
64
- i(this, p, []);
65
- const l = y(() => {
66
- this.current = t();
67
- }, 0);
68
- s.forEach((m) => {
69
- c(this, p).push(
70
- m.subscribe(() => {
71
- l();
72
- })
73
- );
74
- });
75
- }
76
- close() {
77
- super.close(), c(this, p).forEach((s) => s());
78
- }
79
- }
80
- p = new WeakMap();
1
+ import { S as s, a as o, s as a } from "../Store-BtVtCGLk.js";
2
+ import { C as i, D as m, R as p } from "../Composed-BB1MtFiT.js";
3
+ import { D as d } from "../DerivedArray-D3scYQdp.js";
81
4
  export {
82
- j as Composed,
83
- R as Derived,
84
- w as DerivedArray,
85
- A as Resource,
86
- a as Store,
87
- z as activeStores,
88
- B as storeRegistry
5
+ i as Composed,
6
+ m as Derived,
7
+ d as DerivedArray,
8
+ p as Resource,
9
+ s as Store,
10
+ o as activeStores,
11
+ a as storeRegistry
89
12
  };
@@ -1 +1 @@
1
- "use strict";require("construct-style-sheets-polyfill");const i=require("./index-DekP7OZe.cjs"),o=require("./string-DUXXtU8v.cjs");function s(t){let e="";for(const r in t){const n=t[r];typeof n=="object"?(e+=`${r} {`,e+=s(n),e+="}"):e+=`${o.camelToKebab(r)}: ${n};`}return e}function c(t){if(i.isBrowser){const e=new CSSStyleSheet;return e.replaceSync(typeof t=="string"?t:s(t)),e}return null}exports.createStylesheet=c;exports.styleToString=s;
1
+ "use strict";require("construct-style-sheets-polyfill");const i=require("./index-CKTweR3M.cjs"),o=require("./string-DUXXtU8v.cjs");function s(t){let e="";for(const r in t){const n=t[r];typeof n=="object"?(e+=`${r} {`,e+=s(n),e+="}"):e+=`${o.camelToKebab(r)}: ${n};`}return e}function c(t){if(i.isBrowser){const e=new CSSStyleSheet;return e.replaceSync(typeof t=="string"?t:s(t)),e}return null}exports.createStylesheet=c;exports.styleToString=s;
@@ -1,5 +1,5 @@
1
1
  import "construct-style-sheets-polyfill";
2
- import { i as s } from "./index-Bv9zgfdb.js";
2
+ import { i as s } from "./index-JqYHGoo6.js";
3
3
  import { c as i } from "./string-BlMQbe8b.js";
4
4
  function n(t) {
5
5
  let e = "";
@@ -1 +1 @@
1
- "use strict";var I=h=>{throw TypeError(h)};var B=(h,e,s)=>e.has(h)||I("Cannot "+s);var i=(h,e,s)=>(B(h,e,"read from private field"),s?s.call(h):e.get(h)),r=(h,e,s)=>e.has(h)?I("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(h):e.set(h,s),t=(h,e,s,n)=>(B(h,e,"write to private field"),n?n.call(h,s):e.set(h,s),s),E=(h,e,s)=>(B(h,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../index-DekP7OZe.cjs"),j=require("../dom-JBOkFLTh.cjs");require("construct-style-sheets-polyfill");var g,u,v,k,b,m,w,l,d,y,A;class C{constructor(e,s){r(this,g);r(this,u);r(this,v);r(this,k,0);r(this,b,0);r(this,m,0);r(this,w,0);r(this,l,0);r(this,d,!1);r(this,y,null);r(this,A,e=>{const s=e[0];t(this,d,s.isIntersecting),i(this,d)&&t(this,w,i(this,k))});if(t(this,g,e),t(this,u,s==null?void 0:s.maxFPS),t(this,v,(s==null?void 0:s.order)||0),s!=null&&s.culling&&L.isBrowser){const n=j.getElement(s.culling);n&&(t(this,y,new IntersectionObserver(i(this,A))),i(this,y).observe(n))}else t(this,d,!0)}get callback(){return i(this,g)}get order(){return i(this,v)}sync(e){t(this,b,e-i(this,l))}tick(e){if(t(this,k,e),t(this,l,Math.max(0,e-i(this,b))),i(this,m)||t(this,m,e),i(this,u))if(i(this,l)>=1e3/i(this,u))t(this,b,e-i(this,l)%i(this,u));else return;else t(this,b,e);i(this,d)&&i(this,g).call(this,{timeBetweenFrames:i(this,l),timestamp:e,subscribeTimestamp:i(this,m),timeElapsedSinceSubscription:e-i(this,m),timeElapsedSinceIntersection:e-i(this,w)})}destroy(){var e;(e=i(this,y))==null||e.disconnect()}}g=new WeakMap,u=new WeakMap,v=new WeakMap,k=new WeakMap,b=new WeakMap,m=new WeakMap,w=new WeakMap,l=new WeakMap,d=new WeakMap,y=new WeakMap,A=new WeakMap;var T,f,a,F,c,o,P,x,S,q;class O{constructor(){r(this,o);r(this,T,0);r(this,f,0);r(this,a);r(this,F,!1);r(this,c,[]);r(this,S,e=>{if(i(this,F)){t(this,F,!1),t(this,T,e-i(this,f));for(const s of i(this,c))s.sync(i(this,f))}t(this,a,requestAnimationFrame(i(this,S))),t(this,f,e-i(this,T));for(const s of i(this,c))s.tick(i(this,f))});r(this,q,()=>{document.hidden&&t(this,F,!0)});L.isBrowser&&document.addEventListener("visibilitychange",i(this,q))}subscribe(e,s){if(!i(this,c).find(n=>n.callback===e)){const n=new C(e,s);n.sync(performance.now()),i(this,c).push(n),t(this,c,i(this,c).sort((M,V)=>M.order-V.order))}return E(this,o,P).call(this),()=>this.unsubscribe(e)}unsubscribe(e){const s=i(this,c).filter(n=>n.callback===e);s.length&&(s.forEach(n=>n.destroy()),t(this,c,i(this,c).filter(n=>n.callback!==e)),i(this,c).length||E(this,o,x).call(this))}destroy(){L.isBrowser&&(E(this,o,x).call(this),document.removeEventListener("visibilitychange",i(this,q)))}}T=new WeakMap,f=new WeakMap,a=new WeakMap,F=new WeakMap,c=new WeakMap,o=new WeakSet,P=function(){i(this,c).length&&!i(this,a)&&t(this,a,requestAnimationFrame(i(this,S)))},x=function(){i(this,a)&&(cancelAnimationFrame(i(this,a)),t(this,a,void 0))},S=new WeakMap,q=new WeakMap;const D=new O;exports.Ticker=O;exports.ticker=D;
1
+ "use strict";var I=h=>{throw TypeError(h)};var B=(h,e,s)=>e.has(h)||I("Cannot "+s);var i=(h,e,s)=>(B(h,e,"read from private field"),s?s.call(h):e.get(h)),r=(h,e,s)=>e.has(h)?I("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(h):e.set(h,s),t=(h,e,s,n)=>(B(h,e,"write to private field"),n?n.call(h,s):e.set(h,s),s),E=(h,e,s)=>(B(h,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../index-CKTweR3M.cjs"),j=require("../dom-hTEdqeoj.cjs");require("construct-style-sheets-polyfill");var g,u,v,k,b,m,w,l,d,y,A;class C{constructor(e,s){r(this,g);r(this,u);r(this,v);r(this,k,0);r(this,b,0);r(this,m,0);r(this,w,0);r(this,l,0);r(this,d,!1);r(this,y,null);r(this,A,e=>{const s=e[0];t(this,d,s.isIntersecting),i(this,d)&&t(this,w,i(this,k))});if(t(this,g,e),t(this,u,s==null?void 0:s.maxFPS),t(this,v,(s==null?void 0:s.order)||0),s!=null&&s.culling&&L.isBrowser){const n=j.getElement(s.culling);n&&(t(this,y,new IntersectionObserver(i(this,A))),i(this,y).observe(n))}else t(this,d,!0)}get callback(){return i(this,g)}get order(){return i(this,v)}sync(e){t(this,b,e-i(this,l))}tick(e){if(t(this,k,e),t(this,l,Math.max(0,e-i(this,b))),i(this,m)||t(this,m,e),i(this,u))if(i(this,l)>=1e3/i(this,u))t(this,b,e-i(this,l)%i(this,u));else return;else t(this,b,e);i(this,d)&&i(this,g).call(this,{timeBetweenFrames:i(this,l),timestamp:e,subscribeTimestamp:i(this,m),timeElapsedSinceSubscription:e-i(this,m),timeElapsedSinceIntersection:e-i(this,w)})}destroy(){var e;(e=i(this,y))==null||e.disconnect()}}g=new WeakMap,u=new WeakMap,v=new WeakMap,k=new WeakMap,b=new WeakMap,m=new WeakMap,w=new WeakMap,l=new WeakMap,d=new WeakMap,y=new WeakMap,A=new WeakMap;var T,f,a,F,c,o,P,x,S,q;class O{constructor(){r(this,o);r(this,T,0);r(this,f,0);r(this,a);r(this,F,!1);r(this,c,[]);r(this,S,e=>{if(i(this,F)){t(this,F,!1),t(this,T,e-i(this,f));for(const s of i(this,c))s.sync(i(this,f))}t(this,a,requestAnimationFrame(i(this,S))),t(this,f,e-i(this,T));for(const s of i(this,c))s.tick(i(this,f))});r(this,q,()=>{document.hidden&&t(this,F,!0)});L.isBrowser&&document.addEventListener("visibilitychange",i(this,q))}subscribe(e,s){if(!i(this,c).find(n=>n.callback===e)){const n=new C(e,s);n.sync(performance.now()),i(this,c).push(n),t(this,c,i(this,c).sort((M,V)=>M.order-V.order))}return E(this,o,P).call(this),()=>this.unsubscribe(e)}unsubscribe(e){const s=i(this,c).filter(n=>n.callback===e);s.length&&(s.forEach(n=>n.destroy()),t(this,c,i(this,c).filter(n=>n.callback!==e)),i(this,c).length||E(this,o,x).call(this))}destroy(){L.isBrowser&&(E(this,o,x).call(this),document.removeEventListener("visibilitychange",i(this,q)))}}T=new WeakMap,f=new WeakMap,a=new WeakMap,F=new WeakMap,c=new WeakMap,o=new WeakSet,P=function(){i(this,c).length&&!i(this,a)&&t(this,a,requestAnimationFrame(i(this,S)))},x=function(){i(this,a)&&(cancelAnimationFrame(i(this,a)),t(this,a,void 0))},S=new WeakMap,q=new WeakMap;const D=new O;exports.Ticker=O;exports.ticker=D;
@@ -3,8 +3,8 @@ var B = (h) => {
3
3
  };
4
4
  var x = (h, s, e) => s.has(h) || B("Cannot " + e);
5
5
  var i = (h, s, e) => (x(h, s, "read from private field"), e ? e.call(h) : s.get(h)), r = (h, s, e) => s.has(h) ? B("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(h) : s.set(h, e), t = (h, s, e, n) => (x(h, s, "write to private field"), n ? n.call(h, e) : s.set(h, e), e), A = (h, s, e) => (x(h, s, "access private method"), e);
6
- import { i as I } from "../index-Bv9zgfdb.js";
7
- import { g as C } from "../dom-CVWzyXPH.js";
6
+ import { i as I } from "../index-JqYHGoo6.js";
7
+ import { g as C } from "../dom-fgxIeFxm.js";
8
8
  import "construct-style-sheets-polyfill";
9
9
  var g, m, v, k, u, b, w, l, f, F, L;
10
10
  class D {
@@ -0,0 +1 @@
1
+ "use strict";var d=Object.defineProperty,$=Object.defineProperties;var g=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var w=Object.prototype.hasOwnProperty,L=Object.prototype.propertyIsEnumerable;var P=(t,s,e)=>s in t?d(t,s,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[s]=e,u=(t,s)=>{for(var e in s||(s={}))w.call(s,e)&&P(t,e,s[e]);if(m)for(var e of m(s))L.call(s,e)&&P(t,e,s[e]);return t},S=(t,s)=>$(t,g(s));function R(t,{base:s="",trailingSlash:e=!1,mergeParams:r}={}){s=s.endsWith("/")?s.slice(0,-1):s,t=t.replace(s,""),t.startsWith("/")&&(t=t.slice(1));const n=t.split("#"),h=n[0].split("?");let a=h[0].startsWith("/")?h[0]:"/"+h[0];e?a=!a.endsWith("/")&&a!=="/"?a+"/":a:a=a.endsWith("/")&&a!=="/"?a.slice(0,-1):a;let i=h[1]||"";if(r){const o=new URLSearchParams(i),W=new URLSearchParams(r);for(const[l,y]of W)o.has(l)||o.set(l,y);i=o.toString()}const f=s+a,c=n[1],p=`${f}${i?"?"+i:""}${c?"#"+c:""}`;return{leaf:a,pathname:f,parameters:i,hash:c,path:p}}function U(t="/"){return t.endsWith("/")||(t+="/"),t.startsWith("/")||(t+="/"),t}function k(t){if(t.action==="none")return;const s=t==null?void 0:t.searchParameters,e=t.hash?t.hash.startsWith("#")?t.hash:"#"+t.hash:"",r=s?s.startsWith("?")?s:"?"+s:"",n=`${t.pathname}${r}${e}`,h=S(u({},t.state),{path:n});t.action==="push"?history.pushState(h,"",n):t.action==="replace"&&history.replaceState(h,"",n)}function z(t){const s=new URLSearchParams(t),e={};for(const[r,n]of s)e[r]=n;return e}function B(t,s){const e=new URL(location.href),r=(s==null?void 0:s.toString())||"";e.searchParams.set(t,r),history.replaceState(history.state,"",e.href)}exports.changeHistory=k;exports.normalizeBase=U;exports.parseSearchParameters=z;exports.splitPath=R;exports.updateSearchParameter=B;
@@ -2,15 +2,15 @@ var $ = Object.defineProperty, d = Object.defineProperties;
2
2
  var g = Object.getOwnPropertyDescriptors;
3
3
  var m = Object.getOwnPropertySymbols;
4
4
  var w = Object.prototype.hasOwnProperty, L = Object.prototype.propertyIsEnumerable;
5
- var P = (t, s, a) => s in t ? $(t, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[s] = a, p = (t, s) => {
5
+ var u = (t, s, a) => s in t ? $(t, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[s] = a, P = (t, s) => {
6
6
  for (var a in s || (s = {}))
7
- w.call(s, a) && P(t, a, s[a]);
7
+ w.call(s, a) && u(t, a, s[a]);
8
8
  if (m)
9
9
  for (var a of m(s))
10
- L.call(s, a) && P(t, a, s[a]);
10
+ L.call(s, a) && u(t, a, s[a]);
11
11
  return t;
12
- }, S = (t, s) => d(t, g(s));
13
- function U(t, { base: s = "", trailingSlash: a = !1, mergeParams: e } = {}) {
12
+ }, p = (t, s) => d(t, g(s));
13
+ function k(t, { base: s = "", trailingSlash: a = !1, mergeParams: e } = {}) {
14
14
  s = s.endsWith("/") ? s.slice(0, -1) : s, t = t.replace(s, ""), t.startsWith("/") && (t = t.slice(1));
15
15
  const n = t.split("#"), h = n[0].split("?");
16
16
  let r = h[0].startsWith("/") ? h[0] : "/" + h[0];
@@ -22,38 +22,38 @@ function U(t, { base: s = "", trailingSlash: a = !1, mergeParams: e } = {}) {
22
22
  o.has(l) || o.set(l, y);
23
23
  i = o.toString();
24
24
  }
25
- const f = s + r, c = n[1], u = `${f}${i ? "?" + i : ""}${c ? "#" + c : ""}`;
25
+ const f = s + r, c = n[1], S = `${f}${i ? "?" + i : ""}${c ? "#" + c : ""}`;
26
26
  return {
27
27
  leaf: r,
28
28
  pathname: f,
29
29
  parameters: i,
30
30
  hash: c,
31
- path: u
31
+ path: S
32
32
  };
33
33
  }
34
- function k(t = "/") {
34
+ function x(t = "/") {
35
35
  return t.endsWith("/") || (t += "/"), t.startsWith("/") || (t += "/"), t;
36
36
  }
37
- function x(t) {
37
+ function j(t) {
38
38
  if (t.action === "none")
39
39
  return;
40
- const s = t == null ? void 0 : t.searchParameters, a = t.hash ? t.hash.startsWith("#") ? t.hash : "#" + t.hash : "", e = s ? s.startsWith("?") ? s : "?" + s : "", n = `${t.pathname}${e}${a}`, h = S(p({}, t.state), { path: n });
40
+ const s = t == null ? void 0 : t.searchParameters, a = t.hash ? t.hash.startsWith("#") ? t.hash : "#" + t.hash : "", e = s ? s.startsWith("?") ? s : "?" + s : "", n = `${t.pathname}${e}${a}`, h = p(P({}, t.state), { path: n });
41
41
  t.action === "push" ? history.pushState(h, "", n) : t.action === "replace" && history.replaceState(h, "", n);
42
42
  }
43
- function j(t) {
43
+ function z(t) {
44
44
  const s = new URLSearchParams(t), a = {};
45
45
  for (const [e, n] of s)
46
46
  a[e] = n;
47
47
  return a;
48
48
  }
49
- function z(t, s) {
49
+ function B(t, s) {
50
50
  const a = new URL(location.href), e = (s == null ? void 0 : s.toString()) || "";
51
51
  a.searchParams.set(t, e), history.replaceState(history.state, "", a.href);
52
52
  }
53
53
  export {
54
- x as c,
55
- k as n,
56
- j as p,
57
- U as s,
58
- z as u
54
+ j as c,
55
+ x as n,
56
+ z as p,
57
+ k as s,
58
+ B as u
59
59
  };
@@ -3,3 +3,5 @@ export type ElementOrSelector<T extends Element = Element> = string | T;
3
3
  export declare function getElement<T extends Element>(elementOrSelector: ElementOrSelector<T> | undefined, from?: Document): T | null | undefined;
4
4
  export declare function findScrollParentElement(node: Node | null, _initial?: Node | null): HTMLElement;
5
5
  export declare function getAllParentElements(node: Node): HTMLElement[];
6
+ export declare function traverseNodes(node: Node, callback: (node: Node) => void): void;
7
+ export declare function traverseShadowRoots(root: Element, callback: (element: Element) => void, includeShadowRoots?: boolean): void;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../attributes-Bf2svn4j.cjs"),E=require("../index-DekP7OZe.cjs"),b=require("../canvas-CU5Xjahf.cjs"),C=require("../coordinates-D8Np3cPD.cjs"),D=require("../custom-elements-Dh4TWRDJ.cjs"),g=require("../dom-JBOkFLTh.cjs"),s=require("../easings-GegIwET5.cjs"),Q=require("../element-yhcBhsho.cjs"),A=require("../events-KVanG9sR.cjs"),O=require("../file-DSpfWdd9.cjs"),T=require("../function-MthRj-GJ.cjs"),B=require("../gestures-C7gbKx11.cjs"),S=require("../stylesheet-HWF2a3nr.cjs"),h=require("../layout-Ctc2p3uz.cjs"),a=require("../math-GDWEqu7y.cjs"),m=require("../number-ChAm68cm.cjs"),c=require("../object-CCiXnER2.cjs"),v=require("../polyfills-Df4r-ETT.cjs"),P=require("../scroll-CIdNtj3G.cjs"),l=require("../string-DUXXtU8v.cjs"),q=require("../style-At6aDoqG.cjs"),f=require("../url-VIZgwj_h.cjs");function R(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function N(t,e){const n=t.length;e=e%n;const o=new Array(n);for(let r=0;r<n;r++){const i=(r+e)%n;o[i]=t[r]}return o}function z(t,e=2){if(!+t)return"0 Bytes";const n=1024,o=e<0?0:e,r=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,i)).toFixed(o))} ${r[i]}`}function j(t){if(navigator.clipboard)navigator.clipboard.writeText(t).then(()=>{console.log("Text copied to clipboard successfully!")}).catch(e=>{console.error("Failed to copy text to clipboard:",e)});else{const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.top="0",e.style.left="0",document.body.appendChild(e),e.select();try{document.execCommand("copy")?console.log("Text copied to clipboard successfully!"):console.error("Failed to copy text to clipboard.")}catch(n){console.error("Failed to copy text to clipboard:",n)}document.body.removeChild(e)}}function M(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function V(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function k(t,e){let n=!1;const{x:o,y:r}=t;for(let i=0,u=e.length-1;i<e.length;u=i++){const p=e[i].x,d=e[i].y,y=e[u].x,I=e[u].y;d>r!=I>r&&o<(y-p)*(r-d)/(I-d)+p&&(n=!n)}return n}function w(t,e){const n=t.style.getPropertyValue(e);if(n){const o=n.toString();return o.startsWith("var")?w(t,o.slice(4,-1)):o}}function F(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(o=>{o instanceof CSSStyleRule&&o.selectorText===":root"&&t.forEach(r=>{const i=w(o,r);i&&(e[r]=i)})})}),t.forEach(n=>{e[n]||console.warn(`variable named ${n} not found`)}),e}function $(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function H(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}const U=/^(\+?\d{1,3}[-.\s]?)?(\(?\d{3}\)?[-.\s]?)?\d{1,4}[-.\s]?\d{2,4}[-.\s]?\d{2,4}$/,K=/^[\w.-]+@[a-zA-Z\d.-]+\.[a-zA-Z]{2,}$/;function W(t){let e,n;return K.test(t)?(e=`mailto:${t.trim()}`,n="email"):U.test(t)&&(e=`tel:${t.replace(/[^0-9\\.\\+]+/g,"")}`,n="phone"),{href:e,type:n,contact:t}}function Z(t,e){if(t){const o=t.content.cloneNode(!0).firstElementChild;return o&&(e==null||e(o)),o}return null}function J(t,e,n,o){let r,i=!1,u=0;const p=()=>{clearInterval(r),o!=null&&o.restartCounter&&(u=0),i&&(r=setInterval(()=>{n(u++)},e))},d=E.intersector.subscribe(t,y=>{i=y.isIntersecting,p()});return()=>{d(),clearInterval(r)}}exports.parseAttribute=x.parseAttribute;exports.parseAttributeValue=x.parseAttributeValue;exports.isBrowser=E.isBrowser;exports.contain=b.contain;exports.cover=b.cover;exports.fixPosition=b.fixPosition;exports.measureText=b.measureText;exports.getPointerPosition=C.getPointerPosition;exports.normalize=C.normalize;exports.screenToCartesian=C.screenToCartesian;exports.whenDefined=D.whenDefined;exports.findParentElement=g.findParentElement;exports.findScrollParentElement=g.findScrollParentElement;exports.getAllParentElements=g.getAllParentElements;exports.getElement=g.getElement;exports.easeInCubic=s.easeInCubic;exports.easeInExpo=s.easeInExpo;exports.easeInOutCubic=s.easeInOutCubic;exports.easeInOutExpo=s.easeInOutExpo;exports.easeInOutQuad=s.easeInOutQuad;exports.easeInOutQuart=s.easeInOutQuart;exports.easeInOutQuint=s.easeInOutQuint;exports.easeInQuad=s.easeInQuad;exports.easeInQuart=s.easeInQuart;exports.easeInQuint=s.easeInQuint;exports.easeOutCubic=s.easeOutCubic;exports.easeOutExpo=s.easeOutExpo;exports.easeOutQuad=s.easeOutQuad;exports.easeOutQuart=s.easeOutQuart;exports.easeOutQuint=s.easeOutQuint;exports.linear=s.linear;exports.isElementVisible=Q.isElementVisible;exports.dispatchEvent=A.dispatchEvent;exports.createJSONAndSave=O.createJSONAndSave;exports.downloadURI=O.downloadURI;exports.debounce=T.debounce;exports.throttle=T.throttle;exports.setupDrag=B.setupDrag;exports.createStylesheet=S.createStylesheet;exports.styleToString=S.styleToString;exports.getCumulativeOffsetLeft=h.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=h.getCumulativeOffsetTop;exports.getCumulativePosition=h.getCumulativePosition;exports.getStickyOffset=h.getStickyOffset;exports.calculateDistance=a.calculateDistance;exports.calculateDistanceWithRadius=a.calculateDistanceWithRadius;exports.clamp=a.clamp;exports.damp=a.damp;exports.lerp=a.lerp;exports.mapRange=a.mapRange;exports.round=a.round;exports.smootherstep=a.smootherstep;exports.smoothstep=a.smoothstep;exports.step=a.step;exports.beautifyNumber=m.beautifyNumber;exports.loopNumber=m.loopNumber;exports.preciseNumber=m.preciseNumber;exports.roundNumberTo=m.roundNumberTo;exports.toStep=m.toStep;exports.cloneDeep=c.cloneDeep;exports.compareObjects=c.compareObjects;exports.isESClass=c.isESClass;exports.isNullish=c.isNullish;exports.isObject=c.isObject;exports.mergeDeep=c.mergeDeep;exports.mixin=c.mixin;exports.omit=c.omit;exports.pick=c.pick;exports.nullishCoalescing=v.nullishCoalescing;exports.requestIdleCallback=v.requestIdleCallback;exports.scrollToElement=P.scrollToElement;exports.wait=P.wait;exports.camelToKebab=l.camelToKebab;exports.capitalize=l.capitalize;exports.declension=l.declension;exports.decodeHtmlEntities=l.decodeHtmlEntities;exports.generateId=l.generateId;exports.isUppercase=l.isUppercase;exports.kebabToCamel=l.kebabToCamel;exports.snakeToDotted=l.snakeToDotted;exports.toPascalCase=l.toPascalCase;exports.uncapitalize=l.uncapitalize;exports.getElementTransitionDurationMS=q.getElementTransitionDurationMS;exports.getElementTransitionDurationS=q.getElementTransitionDurationS;exports.changeHistory=f.changeHistory;exports.normalizeBase=f.normalizeBase;exports.parseSearchParameters=f.parseSearchParameters;exports.splitPath=f.splitPath;exports.updateSearchParameter=f.updateSearchParameter;exports.cloneTemplateContent=Z;exports.copyTextToClipboard=j;exports.decode=H;exports.dotCircleCollision=V;exports.dotPolygonCollision=k;exports.dotRectCollision=M;exports.encode=$;exports.formatBytes=z;exports.getRootVariables=F;exports.insert=R;exports.setIntervalOnIntersection=J;exports.shiftArray=N;exports.tryCreateHrefFromContact=W;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../attributes-Bf2svn4j.cjs"),E=require("../index-CKTweR3M.cjs"),h=require("../canvas-CU5Xjahf.cjs"),C=require("../coordinates-D8Np3cPD.cjs"),D=require("../custom-elements-Dh4TWRDJ.cjs"),d=require("../dom-hTEdqeoj.cjs"),s=require("../easings-GegIwET5.cjs"),Q=require("../element-yhcBhsho.cjs"),R=require("../events-KVanG9sR.cjs"),O=require("../file-DSpfWdd9.cjs"),S=require("../function-MthRj-GJ.cjs"),A=require("../gestures-C7gbKx11.cjs"),v=require("../stylesheet-BcwbfhBp.cjs"),g=require("../layout-Ctc2p3uz.cjs"),a=require("../math-GDWEqu7y.cjs"),f=require("../number-ChAm68cm.cjs"),c=require("../object-CCiXnER2.cjs"),T=require("../polyfills-Df4r-ETT.cjs"),P=require("../scroll-DxcPU0vk.cjs"),l=require("../string-DUXXtU8v.cjs"),q=require("../style-At6aDoqG.cjs"),p=require("../url-C2kASACG.cjs");function B(t,e,...n){return[...t.slice(0,e),...n,...t.slice(e)]}function N(t,e){const n=t.length;e=e%n;const o=new Array(n);for(let r=0;r<n;r++){const i=(r+e)%n;o[i]=t[r]}return o}function z(t,e=2){if(!+t)return"0 Bytes";const n=1024,o=e<0?0:e,r=["Bytes","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],i=Math.floor(Math.log(t)/Math.log(n));return`${parseFloat((t/Math.pow(n,i)).toFixed(o))} ${r[i]}`}function j(t){if(navigator.clipboard)navigator.clipboard.writeText(t).then(()=>{console.log("Text copied to clipboard successfully!")}).catch(e=>{console.error("Failed to copy text to clipboard:",e)});else{const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.top="0",e.style.left="0",document.body.appendChild(e),e.select();try{document.execCommand("copy")?console.log("Text copied to clipboard successfully!"):console.error("Failed to copy text to clipboard.")}catch(n){console.error("Failed to copy text to clipboard:",n)}document.body.removeChild(e)}}function M(t,e){return t.x<e.x+e.width&&t.x>e.x&&t.y<e.y+e.height&&t.y>e.y}function V(t,e){return Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)<e.radius}function k(t,e){let n=!1;const{x:o,y:r}=t;for(let i=0,u=e.length-1;i<e.length;u=i++){const b=e[i].x,m=e[i].y,y=e[u].x,I=e[u].y;m>r!=I>r&&o<(y-b)*(r-m)/(I-m)+b&&(n=!n)}return n}function w(t,e){const n=t.style.getPropertyValue(e);if(n){const o=n.toString();return o.startsWith("var")?w(t,o.slice(4,-1)):o}}function F(...t){const e={};return Array.from(document.styleSheets).forEach(n=>{Array.from(n.cssRules).forEach(o=>{o instanceof CSSStyleRule&&o.selectorText===":root"&&t.forEach(r=>{const i=w(o,r);i&&(e[r]=i)})})}),t.forEach(n=>{e[n]||console.warn(`variable named ${n} not found`)}),e}function $(t){const e=window.atob(t);return decodeURIComponent(window.escape(e))}function H(t){const e=window.unescape(encodeURIComponent(t));return window.btoa(e)}const U=/^(\+?\d{1,3}[-.\s]?)?(\(?\d{3}\)?[-.\s]?)?\d{1,4}[-.\s]?\d{2,4}[-.\s]?\d{2,4}$/,K=/^[\w.-]+@[a-zA-Z\d.-]+\.[a-zA-Z]{2,}$/;function W(t){let e,n;return K.test(t)?(e=`mailto:${t.trim()}`,n="email"):U.test(t)&&(e=`tel:${t.replace(/[^0-9\\.\\+]+/g,"")}`,n="phone"),{href:e,type:n,contact:t}}function Z(t,e){if(t){const o=t.content.cloneNode(!0).firstElementChild;return o&&(e==null||e(o)),o}return null}function J(t,e,n,o){let r,i=!1,u=0;const b=()=>{clearInterval(r),o!=null&&o.restartCounter&&(u=0),i&&(r=setInterval(()=>{n(u++)},e))},m=E.intersector.subscribe(t,y=>{i=y.isIntersecting,b()});return()=>{m(),clearInterval(r)}}exports.parseAttribute=x.parseAttribute;exports.parseAttributeValue=x.parseAttributeValue;exports.isBrowser=E.isBrowser;exports.contain=h.contain;exports.cover=h.cover;exports.fixPosition=h.fixPosition;exports.measureText=h.measureText;exports.getPointerPosition=C.getPointerPosition;exports.normalize=C.normalize;exports.screenToCartesian=C.screenToCartesian;exports.whenDefined=D.whenDefined;exports.findParentElement=d.findParentElement;exports.findScrollParentElement=d.findScrollParentElement;exports.getAllParentElements=d.getAllParentElements;exports.getElement=d.getElement;exports.traverseNodes=d.traverseNodes;exports.traverseShadowRoots=d.traverseShadowRoots;exports.easeInCubic=s.easeInCubic;exports.easeInExpo=s.easeInExpo;exports.easeInOutCubic=s.easeInOutCubic;exports.easeInOutExpo=s.easeInOutExpo;exports.easeInOutQuad=s.easeInOutQuad;exports.easeInOutQuart=s.easeInOutQuart;exports.easeInOutQuint=s.easeInOutQuint;exports.easeInQuad=s.easeInQuad;exports.easeInQuart=s.easeInQuart;exports.easeInQuint=s.easeInQuint;exports.easeOutCubic=s.easeOutCubic;exports.easeOutExpo=s.easeOutExpo;exports.easeOutQuad=s.easeOutQuad;exports.easeOutQuart=s.easeOutQuart;exports.easeOutQuint=s.easeOutQuint;exports.linear=s.linear;exports.isElementVisible=Q.isElementVisible;exports.dispatchEvent=R.dispatchEvent;exports.createJSONAndSave=O.createJSONAndSave;exports.downloadURI=O.downloadURI;exports.debounce=S.debounce;exports.throttle=S.throttle;exports.setupDrag=A.setupDrag;exports.createStylesheet=v.createStylesheet;exports.styleToString=v.styleToString;exports.getCumulativeOffsetLeft=g.getCumulativeOffsetLeft;exports.getCumulativeOffsetTop=g.getCumulativeOffsetTop;exports.getCumulativePosition=g.getCumulativePosition;exports.getStickyOffset=g.getStickyOffset;exports.calculateDistance=a.calculateDistance;exports.calculateDistanceWithRadius=a.calculateDistanceWithRadius;exports.clamp=a.clamp;exports.damp=a.damp;exports.lerp=a.lerp;exports.mapRange=a.mapRange;exports.round=a.round;exports.smootherstep=a.smootherstep;exports.smoothstep=a.smoothstep;exports.step=a.step;exports.beautifyNumber=f.beautifyNumber;exports.loopNumber=f.loopNumber;exports.preciseNumber=f.preciseNumber;exports.roundNumberTo=f.roundNumberTo;exports.toStep=f.toStep;exports.cloneDeep=c.cloneDeep;exports.compareObjects=c.compareObjects;exports.isESClass=c.isESClass;exports.isNullish=c.isNullish;exports.isObject=c.isObject;exports.mergeDeep=c.mergeDeep;exports.mixin=c.mixin;exports.omit=c.omit;exports.pick=c.pick;exports.nullishCoalescing=T.nullishCoalescing;exports.requestIdleCallback=T.requestIdleCallback;exports.scrollToElement=P.scrollToElement;exports.wait=P.wait;exports.camelToKebab=l.camelToKebab;exports.capitalize=l.capitalize;exports.declension=l.declension;exports.decodeHtmlEntities=l.decodeHtmlEntities;exports.generateId=l.generateId;exports.isUppercase=l.isUppercase;exports.kebabToCamel=l.kebabToCamel;exports.snakeToDotted=l.snakeToDotted;exports.toPascalCase=l.toPascalCase;exports.uncapitalize=l.uncapitalize;exports.getElementTransitionDurationMS=q.getElementTransitionDurationMS;exports.getElementTransitionDurationS=q.getElementTransitionDurationS;exports.changeHistory=p.changeHistory;exports.normalizeBase=p.normalizeBase;exports.parseSearchParameters=p.parseSearchParameters;exports.splitPath=p.splitPath;exports.updateSearchParameter=p.updateSearchParameter;exports.cloneTemplateContent=Z;exports.copyTextToClipboard=j;exports.decode=H;exports.dotCircleCollision=V;exports.dotPolygonCollision=k;exports.dotRectCollision=M;exports.encode=$;exports.formatBytes=z;exports.getRootVariables=F;exports.insert=B;exports.setIntervalOnIntersection=J;exports.shiftArray=N;exports.tryCreateHrefFromContact=W;