aptechka 0.65.5 → 0.65.7

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 (43) hide show
  1. package/lib/{Animation-D29tc5VS.js → Animation-BDEX44-i.js} +1 -1
  2. package/lib/{Animation-BRqj4VfN.cjs → Animation-hZcAchp_.cjs} +1 -1
  3. package/lib/{Damped-YrqW5V4w.js → Damped-CtQmJ52v.js} +2 -2
  4. package/lib/{Damped-BD1OQ1fH.cjs → Damped-z9Uaw2MJ.cjs} +1 -1
  5. package/lib/DragControls-CfE2oPAi.cjs +1 -0
  6. package/lib/{DragControls-DGDUw6bM.js → DragControls-CkhCt-4W.js} +21 -21
  7. package/lib/{Tweened-_pF0zXXN.js → Tweened-BlZB0vl4.js} +2 -2
  8. package/lib/{Tweened-B-AHx93m.cjs → Tweened-mvHucL4Y.cjs} +1 -1
  9. package/lib/animation/index.cjs +1 -1
  10. package/lib/animation/index.js +3 -3
  11. package/lib/billboard/index.cjs +1 -1
  12. package/lib/billboard/index.js +20 -18
  13. package/lib/controls/index.cjs +1 -1
  14. package/lib/controls/index.js +1 -1
  15. package/lib/{layout-BSMtwCga.js → layout-DpZo-I0y.js} +2 -2
  16. package/lib/layout-box/index.js +1 -1
  17. package/lib/morph/index.js +1 -1
  18. package/lib/need_redo_tweaker/index.cjs +1 -1
  19. package/lib/need_redo_tweaker/index.js +1 -1
  20. package/lib/number-ChAm68cm.cjs +1 -0
  21. package/lib/number-CumqY64S.js +40 -0
  22. package/lib/pointer/index.cjs +1 -1
  23. package/lib/pointer/index.js +1 -1
  24. package/lib/scroll/ScrollSegmentElement.d.ts +63 -2
  25. package/lib/scroll/index.cjs +1 -1
  26. package/lib/scroll/index.js +935 -556
  27. package/lib/{scroll-DNGJVxa2.js → scroll-DPkCFTxg.js} +1 -1
  28. package/lib/ticker/index.cjs +1 -1
  29. package/lib/ticker/index.d.ts +1 -0
  30. package/lib/ticker/index.js +85 -82
  31. package/lib/utils/index.cjs +1 -1
  32. package/lib/utils/index.js +3 -3
  33. package/package.json +1 -9
  34. package/lib/DragControls-D8BXtKVu.cjs +0 -1
  35. package/lib/ScrollSegmentElement-B6gp1q_z.js +0 -459
  36. package/lib/ScrollSegmentElement-DtMMAirz.cjs +0 -1
  37. package/lib/number-CbdpfO3u.js +0 -39
  38. package/lib/number-DyefJ5a1.cjs +0 -1
  39. package/lib/scroll-segment/ScrollSegmentDefaultContainer.d.ts +0 -11
  40. package/lib/scroll-segment/ScrollSegmentElement.d.ts +0 -81
  41. package/lib/scroll-segment/index.cjs +0 -1
  42. package/lib/scroll-segment/index.d.ts +0 -2
  43. package/lib/scroll-segment/index.js +0 -5
@@ -5,7 +5,7 @@ var S = (r, h, t) => h.has(r) || q("Cannot " + t);
5
5
  var e = (r, h, t) => (S(r, h, "read from private field"), t ? t.call(r) : h.get(r)), a = (r, h, t) => h.has(r) ? q("Cannot add the same private member more than once") : h instanceof WeakSet ? h.add(r) : h.set(r, t), i = (r, h, t, u) => (S(r, h, "write to private field"), u ? u.call(r, t) : h.set(r, t), t), z = (r, h, t) => (S(r, h, "access private method"), t);
6
6
  import { S as I } from "./Store-0BVty6AZ.js";
7
7
  import { c as R } from "./math-BOBiC4TN.js";
8
- import { p as P } from "./number-CbdpfO3u.js";
8
+ import { p as P } from "./number-CumqY64S.js";
9
9
  import { n as A } from "./polyfills-DJrTJQky.js";
10
10
  import "construct-style-sheets-polyfill";
11
11
  import "./index-Bv9zgfdb.js";
@@ -1 +1 @@
1
- "use strict";var C=i=>{throw TypeError(i)};var S=(i,h,e)=>h.has(i)||C("Cannot "+e);var t=(i,h,e)=>(S(i,h,"read from private field"),e?e.call(i):h.get(i)),u=(i,h,e)=>h.has(i)?C("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(i):h.set(i,e),r=(i,h,e,a)=>(S(i,h,"write to private field"),a?a.call(i,e):h.set(i,e),e),M=(i,h,e)=>(S(i,h,"access private method"),e);const y=require("./Store-Cd1GlEmZ.cjs"),N=require("./math-GDWEqu7y.cjs"),z=require("./number-DyefJ5a1.cjs"),q=require("./polyfills-Df4r-ETT.cjs");require("construct-style-sheets-polyfill");require("./index-DekP7OZe.cjs");const I=require("./ticker/index.cjs"),O=require("./order/index.cjs");var d,f,b,m,A,s,l,c,n,g,x,P,F;class R extends y.Store{constructor(e,a){super(e||0,a);u(this,x);u(this,d);u(this,f,O.TICK_ORDER.ANIMATION);u(this,b);u(this,m,new y.Store(!1));u(this,A,0);u(this,s,0);u(this,l,-1/0);u(this,c,1/0);u(this,n,0);u(this,g,null);u(this,F,e=>{this.handleAnimationFrame(e)});r(this,s,this.current)}get direction(){return t(this,A)}get target(){return t(this,s)}get min(){return t(this,l)}set min(e){r(this,l,e),this.set(t(this,s),{equalize:!0})}get max(){return t(this,c)}set max(e){r(this,c,e),this.set(t(this,s),{equalize:!0})}get from(){return t(this,n)}get isRunning(){return t(this,m)}get delta(){return Math.abs(t(this,s)-t(this,n))}get deltaProgress(){return this.delta?z.preciseNumber(Math.abs(this.current-t(this,n))/this.delta,6):0}get distance(){return Math.abs(t(this,c)-t(this,l))}get distanceProgress(){return this.distance?z.preciseNumber(Math.abs(this.current-t(this,l))/this.distance,6):0}set(e,a){(t(this,s)!==e||a!=null&&a.restart)&&(r(this,g,e),this.updateOptions(a),r(this,g,null),t(this,s)!==this.current&&this.start())}shift(e,a){this.set(t(this,s)+e,a)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){t(this,m).current||(t(this,m).current=!0,I.ticker.subscribe(t(this,F),{maxFPS:t(this,d),order:t(this,f),culling:t(this,b)}))}unlistenAnimationFrame(){t(this,m).current&&(t(this,m).current=!1,I.ticker.unsubscribe(t(this,F)))}updateOptions(e){r(this,d,q.nullishCoalescing(e==null?void 0:e.maxFPS,t(this,d))),r(this,f,q.nullishCoalescing(e==null?void 0:e.order,t(this,f))),r(this,b,q.nullishCoalescing(e==null?void 0:e.culling,t(this,b))),r(this,l,q.nullishCoalescing(e==null?void 0:e.min,t(this,l))),r(this,c,q.nullishCoalescing(e==null?void 0:e.max,t(this,c))),M(this,x,P).call(this,typeof t(this,g)=="number"?t(this,g):t(this,s)),e!=null&&e.equalize&&!(e!=null&&e.restart)&&(this.unlistenAnimationFrame(),this.current=r(this,n,t(this,s))),e!=null&&e.restart&&(this.unlistenAnimationFrame(),this.current=r(this,n,this.initial),e!=null&&e.equalize&&(this.current=r(this,n,t(this,s)))),typeof(e==null?void 0:e.current)=="number"&&r(this,n,this.current=e.current)}start(){this.listenAnimationFrame()}}d=new WeakMap,f=new WeakMap,b=new WeakMap,m=new WeakMap,A=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,n=new WeakMap,g=new WeakMap,x=new WeakSet,P=function(e){r(this,A,Math.sign(e-t(this,s))),r(this,s,N.clamp(e,t(this,l),t(this,c))),r(this,n,this.current)},F=new WeakMap;exports.Animation=R;
1
+ "use strict";var C=i=>{throw TypeError(i)};var S=(i,h,e)=>h.has(i)||C("Cannot "+e);var t=(i,h,e)=>(S(i,h,"read from private field"),e?e.call(i):h.get(i)),u=(i,h,e)=>h.has(i)?C("Cannot add the same private member more than once"):h instanceof WeakSet?h.add(i):h.set(i,e),r=(i,h,e,a)=>(S(i,h,"write to private field"),a?a.call(i,e):h.set(i,e),e),M=(i,h,e)=>(S(i,h,"access private method"),e);const y=require("./Store-Cd1GlEmZ.cjs"),N=require("./math-GDWEqu7y.cjs"),z=require("./number-ChAm68cm.cjs"),q=require("./polyfills-Df4r-ETT.cjs");require("construct-style-sheets-polyfill");require("./index-DekP7OZe.cjs");const I=require("./ticker/index.cjs"),O=require("./order/index.cjs");var d,f,b,m,A,s,l,c,n,g,x,P,F;class R extends y.Store{constructor(e,a){super(e||0,a);u(this,x);u(this,d);u(this,f,O.TICK_ORDER.ANIMATION);u(this,b);u(this,m,new y.Store(!1));u(this,A,0);u(this,s,0);u(this,l,-1/0);u(this,c,1/0);u(this,n,0);u(this,g,null);u(this,F,e=>{this.handleAnimationFrame(e)});r(this,s,this.current)}get direction(){return t(this,A)}get target(){return t(this,s)}get min(){return t(this,l)}set min(e){r(this,l,e),this.set(t(this,s),{equalize:!0})}get max(){return t(this,c)}set max(e){r(this,c,e),this.set(t(this,s),{equalize:!0})}get from(){return t(this,n)}get isRunning(){return t(this,m)}get delta(){return Math.abs(t(this,s)-t(this,n))}get deltaProgress(){return this.delta?z.preciseNumber(Math.abs(this.current-t(this,n))/this.delta,6):0}get distance(){return Math.abs(t(this,c)-t(this,l))}get distanceProgress(){return this.distance?z.preciseNumber(Math.abs(this.current-t(this,l))/this.distance,6):0}set(e,a){(t(this,s)!==e||a!=null&&a.restart)&&(r(this,g,e),this.updateOptions(a),r(this,g,null),t(this,s)!==this.current&&this.start())}shift(e,a){this.set(t(this,s)+e,a)}reset(){super.reset(),this.set(this.initial,{equalize:!0})}close(){super.close(),this.reset(),this.unlistenAnimationFrame()}listenAnimationFrame(){t(this,m).current||(t(this,m).current=!0,I.ticker.subscribe(t(this,F),{maxFPS:t(this,d),order:t(this,f),culling:t(this,b)}))}unlistenAnimationFrame(){t(this,m).current&&(t(this,m).current=!1,I.ticker.unsubscribe(t(this,F)))}updateOptions(e){r(this,d,q.nullishCoalescing(e==null?void 0:e.maxFPS,t(this,d))),r(this,f,q.nullishCoalescing(e==null?void 0:e.order,t(this,f))),r(this,b,q.nullishCoalescing(e==null?void 0:e.culling,t(this,b))),r(this,l,q.nullishCoalescing(e==null?void 0:e.min,t(this,l))),r(this,c,q.nullishCoalescing(e==null?void 0:e.max,t(this,c))),M(this,x,P).call(this,typeof t(this,g)=="number"?t(this,g):t(this,s)),e!=null&&e.equalize&&!(e!=null&&e.restart)&&(this.unlistenAnimationFrame(),this.current=r(this,n,t(this,s))),e!=null&&e.restart&&(this.unlistenAnimationFrame(),this.current=r(this,n,this.initial),e!=null&&e.equalize&&(this.current=r(this,n,t(this,s)))),typeof(e==null?void 0:e.current)=="number"&&r(this,n,this.current=e.current)}start(){this.listenAnimationFrame()}}d=new WeakMap,f=new WeakMap,b=new WeakMap,m=new WeakMap,A=new WeakMap,s=new WeakMap,l=new WeakMap,c=new WeakMap,n=new WeakMap,g=new WeakMap,x=new WeakSet,P=function(e){r(this,A,Math.sign(e-t(this,s))),r(this,s,N.clamp(e,t(this,l),t(this,c))),r(this,n,this.current)},F=new WeakMap;exports.Animation=R;
@@ -16,11 +16,11 @@ var f = (s, e, t) => e in s ? v(s, e, { enumerable: !0, configurable: !0, writab
16
16
  var A = (s, e, t) => e.has(s) || g("Cannot " + t);
17
17
  var a = (s, e, t) => (A(s, e, "read from private field"), t ? t.call(s) : e.get(s)), c = (s, e, t) => e.has(s) ? g("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, t), m = (s, e, t, r) => (A(s, e, "write to private field"), r ? r.call(s, t) : e.set(s, t), t);
18
18
  import { d as D } from "./math-BOBiC4TN.js";
19
- import { p as F } from "./number-CbdpfO3u.js";
19
+ import { p as F } from "./number-CumqY64S.js";
20
20
  import { n as u } from "./polyfills-DJrTJQky.js";
21
21
  import "construct-style-sheets-polyfill";
22
22
  import "./index-Bv9zgfdb.js";
23
- import { A as q } from "./Animation-D29tc5VS.js";
23
+ import { A as q } from "./Animation-BDEX44-i.js";
24
24
  var i, h;
25
25
  class G extends q {
26
26
  constructor(t, r) {
@@ -1 +1 @@
1
- "use strict";var y=Object.defineProperty,C=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var g=t=>{throw TypeError(t)};var d=(t,e,s)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,f=(t,e)=>{for(var s in e||(e={}))v.call(e,s)&&d(t,s,e[s]);if(l)for(var s of l(e))w.call(e,s)&&d(t,s,e[s]);return t},q=(t,e)=>C(t,O(e));var p=(t,e,s)=>e.has(t)||g("Cannot "+s);var a=(t,e,s)=>(p(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>e.has(t)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),n=(t,e,s,r)=>(p(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s);const B=require("./math-GDWEqu7y.cjs"),b=require("./number-DyefJ5a1.cjs"),m=require("./polyfills-Df4r-ETT.cjs");require("construct-style-sheets-polyfill");require("./index-DekP7OZe.cjs");const D=require("./Animation-BRqj4VfN.cjs");var i,h;class N extends D.Animation{constructor(s,r){super(s,r);c(this,i);c(this,h);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(q(f({},r),{equalize:!0}))}get velocity(){return a(this,i)}get speed(){return a(this,h)}updateOptions(s){this.damping=m.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=m.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=m.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){b.preciseNumber(this.current,6)===b.preciseNumber(this.target,6)&&(this.unlistenAnimationFrame(),this.current=this.target);const r=this.current,A=Math.abs(r-this.target);n(this,h,A/s.timeBetweenFrames);const u=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const F=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+F/this.mass*u),this.current+=a(this,i)*u}else this.current=B.damp(this.current,this.target,this.damping,u)}}i=new WeakMap,h=new WeakMap;exports.Damped=N;
1
+ "use strict";var y=Object.defineProperty,C=Object.defineProperties;var O=Object.getOwnPropertyDescriptors;var l=Object.getOwnPropertySymbols;var v=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var g=t=>{throw TypeError(t)};var d=(t,e,s)=>e in t?y(t,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):t[e]=s,f=(t,e)=>{for(var s in e||(e={}))v.call(e,s)&&d(t,s,e[s]);if(l)for(var s of l(e))w.call(e,s)&&d(t,s,e[s]);return t},q=(t,e)=>C(t,O(e));var p=(t,e,s)=>e.has(t)||g("Cannot "+s);var a=(t,e,s)=>(p(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>e.has(t)?g("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,s),n=(t,e,s,r)=>(p(t,e,"write to private field"),r?r.call(t,s):e.set(t,s),s);const B=require("./math-GDWEqu7y.cjs"),b=require("./number-ChAm68cm.cjs"),m=require("./polyfills-Df4r-ETT.cjs");require("construct-style-sheets-polyfill");require("./index-DekP7OZe.cjs");const D=require("./Animation-hZcAchp_.cjs");var i,h;class N extends D.Animation{constructor(s,r){super(s,r);c(this,i);c(this,h);this.damping=20,this.stiffness=0,this.mass=0,n(this,i,0),n(this,h,0),this.updateOptions(q(f({},r),{equalize:!0}))}get velocity(){return a(this,i)}get speed(){return a(this,h)}updateOptions(s){this.damping=m.nullishCoalescing(s==null?void 0:s.damping,this.damping),this.mass=m.nullishCoalescing(s==null?void 0:s.mass,this.mass),this.stiffness=m.nullishCoalescing(s==null?void 0:s.stiffness,this.stiffness),super.updateOptions(s)}handleAnimationFrame(s){b.preciseNumber(this.current,6)===b.preciseNumber(this.target,6)&&(this.unlistenAnimationFrame(),this.current=this.target);const r=this.current,A=Math.abs(r-this.target);n(this,h,A/s.timeBetweenFrames);const u=s.timeBetweenFrames/1e3;if(this.mass||this.stiffness){const F=(this.target-this.current)*this.stiffness-a(this,i)*this.damping;n(this,i,a(this,i)+F/this.mass*u),this.current+=a(this,i)*u}else this.current=B.damp(this.current,this.target,this.damping,u)}}i=new WeakMap,h=new WeakMap;exports.Damped=N;
@@ -0,0 +1 @@
1
+ "use strict";var p=r=>{throw TypeError(r)};var G=(r,a,e)=>a.has(r)||p("Cannot "+e);var t=(r,a,e)=>(G(r,a,"read from private field"),e?e.call(r):a.get(r)),s=(r,a,e)=>a.has(r)?p("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(r):a.set(r,e),i=(r,a,e,h)=>(G(r,a,"write to private field"),h?h.call(r,e):a.set(r,e),e),T=(r,a,e)=>(G(r,a,"access private method"),e);const w=require("./index-DekP7OZe.cjs"),_=require("./dom-JBOkFLTh.cjs");require("construct-style-sheets-polyfill");const B=require("./ticker/index.cjs");require("./Store-Cd1GlEmZ.cjs");const ee=require("./easings-GegIwET5.cjs"),te=require("./Tweened-mvHucL4Y.cjs"),ie=require("./gestures-C7gbKx11.cjs"),se=require("./number-ChAm68cm.cjs"),he=require("./order/index.cjs"),re=require("./notifier/index.cjs");var j;class F{constructor(){s(this,j,new re.Notifier)}get changeEvent(){return t(this,j)}}j=new WeakMap;var y,c,u,R;class ne extends F{constructor(e){super();s(this,y,null);s(this,c,null);s(this,u,"offsetHeight");s(this,R,e=>{const h=e.shiftKey?-1:1;let n;e.code==="Space"?n=h*t(this,c)[t(this,u)]*.4:e.code==="ArrowLeft"?n=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowRight"?n=1*t(this,c)[t(this,u)]*.2:e.code==="ArrowUp"?n=-1*t(this,c)[t(this,u)]*.2:e.code==="ArrowDown"?n=1*t(this,c)[t(this,u)]*.2:e.code==="PageUp"?n=-1*t(this,c)[t(this,u)]:e.code==="PageDown"?n=1*t(this,c)[t(this,u)]:e.code==="Home"?n=0:e.code==="End"&&(n=t(this,u)==="offsetWidth"?t(this,c).scrollWidth:t(this,c).scrollHeight),n&&(e.stopPropagation(),this.changeEvent.notify("keyboard",n,e))});w.isBrowser&&(i(this,y,e!=null&&e.element&&_.getElement(e.element)||window),i(this,c,t(this,y)instanceof HTMLElement?t(this,y):document.documentElement),this.dimension=e==null?void 0:e.dimension)}set dimension(e){i(this,u,e==="width"?"offsetWidth":"offsetHeight")}connect(){w.isBrowser&&t(this,y).addEventListener("keydown",t(this,R))}disconnect(){w.isBrowser&&t(this,y).removeEventListener("keydown",t(this,R))}}y=new WeakMap,c=new WeakMap,u=new WeakMap,R=new WeakMap;var x,k,X,Y,d,A,m,b,V,J,D,O,I;class ae extends F{constructor(e){super();s(this,b);s(this,x);s(this,k);s(this,X);s(this,Y);s(this,d);s(this,A);s(this,m);s(this,D);s(this,O);s(this,I);this.direction=1,i(this,d,new te.Tweened(0,{easing:ee.easeInQuad})),i(this,m,!1),i(this,D,h=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",h.timeBetweenFrames*t(this,x)*this.direction*(1-t(this,d).current),h)}),i(this,O,()=>{t(this,d).current!==1&&this.changeEvent.notify("autoplay",Math.sign(t(this,x))*this.direction*(1-t(this,d).current),null)}),i(this,I,()=>{t(this,k)&&(document.hidden?t(this,d).set(1,{equalize:!0}):t(this,d).set(0,{equalize:!0}))}),i(this,x,(e==null?void 0:e.speed)||1),i(this,k,(e==null?void 0:e.interval)||!1),i(this,X,e)}set interval(e){i(this,k,e),t(this,m)&&T(this,b,V).call(this)}set speed(e){i(this,x,e),t(this,m)&&T(this,b,V).call(this)}connect(){t(this,m)||(i(this,m,!0),T(this,b,V).call(this))}disconnect(){t(this,m)&&(i(this,m,!1),T(this,b,J).call(this))}pauseAndContinue(e,h){t(this,m)&&e&&(clearTimeout(t(this,A)),t(this,d).set(1,{duration:Math.min(e,1e3),equalize:h}),i(this,A,setTimeout(()=>{t(this,d).set(0,{duration:Math.min(e,5e3),equalize:h})},e)))}}x=new WeakMap,k=new WeakMap,X=new WeakMap,Y=new WeakMap,d=new WeakMap,A=new WeakMap,m=new WeakMap,b=new WeakSet,V=function(){T(this,b,J).call(this),t(this,k)?i(this,Y,setInterval(t(this,O),Math.abs(t(this,x)))):B.ticker.subscribe(t(this,D),t(this,X)),document.addEventListener("visibilitychange",t(this,I))},J=function(){clearInterval(t(this,Y)),B.ticker.unsubscribe(t(this,D)),clearTimeout(t(this,A)),t(this,d).close(),document.removeEventListener("visibilitychange",t(this,I))},D=new WeakMap,O=new WeakMap,I=new WeakMap;var H,M,z,S;class le extends F{constructor(e){super();s(this,H,null);s(this,M);s(this,z);s(this,S,e=>{let h=0;const n=Math.abs(e.deltaY),g=Math.abs(e.deltaX);if(!(this.axis==="x"&&n>g||this.axis==="y"&&g>n)&&(e.preventDefault(),!(this.debounce&&this.axis==="x"&&g<5||this.debounce&&this.axis==="y"&&n<5)))if(h=(this.axis==="max"?g>n?e.deltaX:e.deltaY:this.axis==="x"?e.deltaX:e.deltaY)*this.speed,e.stopPropagation(),this.debounce){const N=Date.now();if(N-t(this,z)>40&&(h=100*Math.sign(h)),i(this,z,N),Math.abs(h)<100||t(this,M))return;this.changeEvent.notify("wheel",h,e),i(this,M,setTimeout(()=>{i(this,M,void 0)},80))}else this.changeEvent.notify("wheel",h,e)});this.axis=(e==null?void 0:e.axis)||"y",this.speed=(e==null?void 0:e.speed)||1,this.debounce=(e==null?void 0:e.debounce)||!1,i(this,z,Date.now()),w.isBrowser&&i(this,H,e!=null&&e.element&&_.getElement(e.element)||window)}connect(){w.isBrowser&&t(this,H).addEventListener("wheel",t(this,S),{passive:!1})}disconnect(){w.isBrowser&&(t(this,H).removeEventListener("wheel",t(this,S)),clearTimeout(t(this,M)))}}H=new WeakMap,M=new WeakMap,z=new WeakMap,S=new WeakMap;var q,P,o,l,C,E,W,K,L;const v=class v extends F{constructor(e){super();s(this,P);s(this,o);s(this,l);s(this,C);s(this,E);s(this,W);s(this,K);s(this,L);this.inertion=1,i(this,P,null),i(this,o,null),i(this,l,0),i(this,C,[]),i(this,E,0),i(this,W,h=>{Math.abs(t(this,E))>2&&h.preventDefault()}),i(this,K,h=>{if(i(this,E,0),i(this,l,0),h.button!==0||h.composedPath().find(f=>f instanceof HTMLElement&&f.hasAttribute("drag-dead-zone")))return;this.swipe||B.ticker.unsubscribe(t(this,L));let n=h,g=!1;document.documentElement.classList.add("grabbing");let N=0,$=0,U=0,Q=0;ie.setupDrag(f=>{t(v,q)&&t(v,q)!==t(this,o)||(N=n.x-f.x,$=n.y-f.y,U=f.x-h.x,Q=f.y-h.y,this.axis==="x"?(i(this,E,U),i(this,l,N)):(i(this,E,Q),i(this,l,$)),n=f,g=this.axis==="x"&&Math.abs(U)>Math.abs(Q)||this.axis==="y"&&Math.abs(Q)>Math.abs(U),g&&(document.documentElement.classList.add("dragging"),i(v,q,t(this,o)),this.changeEvent.notify("drag",t(this,l),f)))},f=>{i(v,q,null),g&&(!this.swipe&&this.inertion?(i(this,l,t(this,l)*this.inertion),B.ticker.subscribe(t(this,L),{order:he.TICK_ORDER.CONTROLS-1})):this.swipe&&this.changeEvent.notify("drag-end",t(this,l),f)),document.documentElement.classList.remove("grabbing"),document.documentElement.classList.remove("dragging")})}),i(this,L,()=>{Math.floor(Math.abs(t(this,l)))||B.ticker.unsubscribe(t(this,L)),i(this,l,t(this,l)*.95),i(this,l,se.preciseNumber(t(this,l),3)),this.changeEvent.notify("drag",t(this,l),null)}),this.axis=(e==null?void 0:e.axis)||"y",this.swipe=(e==null?void 0:e.swipe)||!1,w.isBrowser&&(i(this,o,e!=null&&e.element&&_.getElement(e.element)||document.documentElement),i(this,P,(e==null?void 0:e.rootElement)||t(this,o)))}connect(){w.isBrowser&&(i(this,C,[...t(this,P).querySelectorAll("a")]),t(this,C).forEach(e=>{e.addEventListener("click",t(this,W))}),t(this,o).addEventListener("pointerdown",t(this,K)))}disconnect(){w.isBrowser&&(t(this,C).forEach(e=>{e.removeEventListener("click",t(this,W))}),t(this,o).removeEventListener("pointerdown",t(this,K)),B.ticker.unsubscribe(t(this,L)))}};q=new WeakMap,P=new WeakMap,o=new WeakMap,l=new WeakMap,C=new WeakMap,E=new WeakMap,W=new WeakMap,K=new WeakMap,L=new WeakMap,s(v,q,null);let Z=v;exports.AutoplayControls=ae;exports.Controls=F;exports.DragControls=Z;exports.KeyboardControls=ne;exports.WheelControls=le;
@@ -3,15 +3,15 @@ var _ = (n) => {
3
3
  };
4
4
  var G = (n, r, e) => r.has(n) || _("Cannot " + e);
5
5
  var t = (n, r, e) => (G(n, r, "read from private field"), e ? e.call(n) : r.get(n)), s = (n, r, e) => r.has(n) ? _("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(n) : r.set(n, e), i = (n, r, e, h) => (G(n, r, "write to private field"), h ? h.call(n, e) : r.set(n, e), e), A = (n, r, e) => (G(n, r, "access private method"), e);
6
- import { i as w } from "./index-Bv9zgfdb.js";
6
+ import { i as b } from "./index-Bv9zgfdb.js";
7
7
  import { g as Z } from "./dom-CVWzyXPH.js";
8
8
  import "construct-style-sheets-polyfill";
9
9
  import { ticker as D } from "./ticker/index.js";
10
10
  import "./Store-0BVty6AZ.js";
11
11
  import { a as ee } from "./easings-BEmRlrDd.js";
12
- import { T as te } from "./Tweened-_pF0zXXN.js";
12
+ import { T as te } from "./Tweened-BlZB0vl4.js";
13
13
  import { s as ie } from "./gestures-CcXV6fCp.js";
14
- import { p as se } from "./number-CbdpfO3u.js";
14
+ import { p as se } from "./number-CumqY64S.js";
15
15
  import { TICK_ORDER as he } from "./order/index.js";
16
16
  import { Notifier as ne } from "./notifier/index.js";
17
17
  var V;
@@ -36,30 +36,30 @@ class ye extends j {
36
36
  let a;
37
37
  e.code === "Space" ? a = h * t(this, c)[t(this, u)] * 0.4 : e.code === "ArrowLeft" ? a = -1 * t(this, c)[t(this, u)] * 0.2 : e.code === "ArrowRight" ? a = 1 * t(this, c)[t(this, u)] * 0.2 : e.code === "ArrowUp" ? a = -1 * t(this, c)[t(this, u)] * 0.2 : e.code === "ArrowDown" ? a = 1 * t(this, c)[t(this, u)] * 0.2 : e.code === "PageUp" ? a = -1 * t(this, c)[t(this, u)] : e.code === "PageDown" ? a = 1 * t(this, c)[t(this, u)] : e.code === "Home" ? a = 0 : e.code === "End" && (a = t(this, u) === "offsetWidth" ? t(this, c).scrollWidth : t(this, c).scrollHeight), a && (e.stopPropagation(), this.changeEvent.notify("keyboard", a, e));
38
38
  });
39
- w && (i(this, y, e != null && e.element && Z(e.element) || window), i(this, c, t(this, y) instanceof HTMLElement ? t(this, y) : document.documentElement), this.dimension = e == null ? void 0 : e.dimension);
39
+ b && (i(this, y, e != null && e.element && Z(e.element) || window), i(this, c, t(this, y) instanceof HTMLElement ? t(this, y) : document.documentElement), this.dimension = e == null ? void 0 : e.dimension);
40
40
  }
41
41
  set dimension(e) {
42
42
  i(this, u, e === "width" ? "offsetWidth" : "offsetHeight");
43
43
  }
44
44
  connect() {
45
- w && t(this, y).addEventListener(
45
+ b && t(this, y).addEventListener(
46
46
  "keydown",
47
47
  t(this, X)
48
48
  );
49
49
  }
50
50
  disconnect() {
51
- w && t(this, y).removeEventListener(
51
+ b && t(this, y).removeEventListener(
52
52
  "keydown",
53
53
  t(this, X)
54
54
  );
55
55
  }
56
56
  }
57
57
  y = new WeakMap(), c = new WeakMap(), u = new WeakMap(), X = new WeakMap();
58
- var E, M, Y, O, d, I, m, b, Q, J, H, S, q;
58
+ var E, M, Y, O, d, I, m, w, Q, J, H, S, q;
59
59
  class Ee extends j {
60
60
  constructor(e) {
61
61
  super();
62
- s(this, b);
62
+ s(this, w);
63
63
  s(this, E);
64
64
  s(this, M);
65
65
  s(this, Y);
@@ -87,16 +87,16 @@ class Ee extends j {
87
87
  }), i(this, E, (e == null ? void 0 : e.speed) || 1), i(this, M, (e == null ? void 0 : e.interval) || !1), i(this, Y, e);
88
88
  }
89
89
  set interval(e) {
90
- i(this, M, e), t(this, m) && A(this, b, Q).call(this);
90
+ i(this, M, e), t(this, m) && A(this, w, Q).call(this);
91
91
  }
92
92
  set speed(e) {
93
- i(this, E, e), t(this, m) && A(this, b, Q).call(this);
93
+ i(this, E, e), t(this, m) && A(this, w, Q).call(this);
94
94
  }
95
95
  connect() {
96
- t(this, m) || (i(this, m, !0), A(this, b, Q).call(this));
96
+ t(this, m) || (i(this, m, !0), A(this, w, Q).call(this));
97
97
  }
98
98
  disconnect() {
99
- t(this, m) && (i(this, m, !1), A(this, b, J).call(this));
99
+ t(this, m) && (i(this, m, !1), A(this, w, J).call(this));
100
100
  }
101
101
  pauseAndContinue(e, h) {
102
102
  t(this, m) && e && (clearTimeout(t(this, I)), t(this, d).set(1, {
@@ -110,8 +110,8 @@ class Ee extends j {
110
110
  }, e)));
111
111
  }
112
112
  }
113
- E = new WeakMap(), M = new WeakMap(), Y = new WeakMap(), O = new WeakMap(), d = new WeakMap(), I = new WeakMap(), m = new WeakMap(), b = new WeakSet(), Q = function() {
114
- A(this, b, J).call(this), t(this, M) ? i(this, O, setInterval(
113
+ E = new WeakMap(), M = new WeakMap(), Y = new WeakMap(), O = new WeakMap(), d = new WeakMap(), I = new WeakMap(), m = new WeakMap(), w = new WeakSet(), Q = function() {
114
+ A(this, w, J).call(this), t(this, M) ? i(this, O, setInterval(
115
115
  t(this, S),
116
116
  Math.abs(t(this, E))
117
117
  )) : D.subscribe(t(this, H), t(this, Y)), document.addEventListener(
@@ -134,7 +134,7 @@ class xe extends j {
134
134
  s(this, B, (e) => {
135
135
  let h = 0;
136
136
  const a = Math.abs(e.deltaY), g = Math.abs(e.deltaX);
137
- if (!(this.axis === "x" && a > g || this.axis === "y" && g > a) && (e.preventDefault(), !(this.debounce && this.axis === "x" && g < 5 || this.axis === "y" && a < 5)))
137
+ if (!(this.axis === "x" && a > g || this.axis === "y" && g > a) && (e.preventDefault(), !(this.debounce && this.axis === "x" && g < 5 || this.debounce && this.axis === "y" && a < 5)))
138
138
  if (h = (this.axis === "max" ? g > a ? e.deltaX : e.deltaY : this.axis === "x" ? e.deltaX : e.deltaY) * this.speed, e.stopPropagation(), this.debounce) {
139
139
  const R = Date.now();
140
140
  if (R - t(this, P) > 40 && (h = 100 * Math.sign(h)), i(this, P, R), Math.abs(h) < 100 || t(this, k))
@@ -145,10 +145,10 @@ class xe extends j {
145
145
  } else
146
146
  this.changeEvent.notify("wheel", h, e);
147
147
  });
148
- this.axis = (e == null ? void 0 : e.axis) || "y", this.speed = (e == null ? void 0 : e.speed) || 1, this.debounce = (e == null ? void 0 : e.debounce) || !1, i(this, P, Date.now()), w && i(this, z, e != null && e.element && Z(e.element) || window);
148
+ this.axis = (e == null ? void 0 : e.axis) || "y", this.speed = (e == null ? void 0 : e.speed) || 1, this.debounce = (e == null ? void 0 : e.debounce) || !1, i(this, P, Date.now()), b && i(this, z, e != null && e.element && Z(e.element) || window);
149
149
  }
150
150
  connect() {
151
- w && t(this, z).addEventListener(
151
+ b && t(this, z).addEventListener(
152
152
  "wheel",
153
153
  t(this, B),
154
154
  {
@@ -157,7 +157,7 @@ class xe extends j {
157
157
  );
158
158
  }
159
159
  disconnect() {
160
- w && (t(this, z).removeEventListener(
160
+ b && (t(this, z).removeEventListener(
161
161
  "wheel",
162
162
  t(this, B)
163
163
  ), clearTimeout(t(this, k)));
@@ -199,15 +199,15 @@ const v = class v extends j {
199
199
  );
200
200
  }), i(this, L, () => {
201
201
  Math.floor(Math.abs(t(this, l))) || D.unsubscribe(t(this, L)), i(this, l, t(this, l) * 0.95), i(this, l, se(t(this, l), 3)), this.changeEvent.notify("drag", t(this, l), null);
202
- }), this.axis = (e == null ? void 0 : e.axis) || "y", this.swipe = (e == null ? void 0 : e.swipe) || !1, w && (i(this, o, e != null && e.element && Z(e.element) || document.documentElement), i(this, W, (e == null ? void 0 : e.rootElement) || t(this, o)));
202
+ }), this.axis = (e == null ? void 0 : e.axis) || "y", this.swipe = (e == null ? void 0 : e.swipe) || !1, b && (i(this, o, e != null && e.element && Z(e.element) || document.documentElement), i(this, W, (e == null ? void 0 : e.rootElement) || t(this, o)));
203
203
  }
204
204
  connect() {
205
- w && (i(this, C, [...t(this, W).querySelectorAll("a")]), t(this, C).forEach((e) => {
205
+ b && (i(this, C, [...t(this, W).querySelectorAll("a")]), t(this, C).forEach((e) => {
206
206
  e.addEventListener("click", t(this, K));
207
207
  }), t(this, o).addEventListener("pointerdown", t(this, N)));
208
208
  }
209
209
  disconnect() {
210
- w && (t(this, C).forEach((e) => {
210
+ b && (t(this, C).forEach((e) => {
211
211
  e.removeEventListener("click", t(this, K));
212
212
  }), t(this, o).removeEventListener(
213
213
  "pointerdown",
@@ -17,11 +17,11 @@ var A = (a, r, e) => r.has(a) || f("Cannot " + e);
17
17
  var s = (a, r, e) => (A(a, r, "read from private field"), e ? e.call(a) : r.get(a)), n = (a, r, e) => r.has(a) ? f("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(a) : r.set(a, e), u = (a, r, e, i) => (A(a, r, "write to private field"), i ? i.call(a, e) : r.set(a, e), e);
18
18
  import { l as h, e as T } from "./easings-BEmRlrDd.js";
19
19
  import { c as q } from "./math-BOBiC4TN.js";
20
- import { p as w } from "./number-CbdpfO3u.js";
20
+ import { p as w } from "./number-CumqY64S.js";
21
21
  import { n as z } from "./polyfills-DJrTJQky.js";
22
22
  import "construct-style-sheets-polyfill";
23
23
  import "./index-Bv9zgfdb.js";
24
- import { A as C } from "./Animation-D29tc5VS.js";
24
+ import { A as C } from "./Animation-BDEX44-i.js";
25
25
  var m, t;
26
26
  class G extends C {
27
27
  constructor(e, i) {
@@ -1 +1 @@
1
- "use strict";var F=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var d=i=>{throw TypeError(i)};var h=(i,r,e)=>r in i?F(i,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[r]=e,g=(i,r)=>{for(var e in r||(r={}))O.call(r,e)&&h(i,e,r[e]);if(m)for(var e of m(r))w.call(r,e)&&h(i,e,r[e]);return i},f=(i,r)=>b(i,y(r));var q=(i,r,e)=>r.has(i)||d("Cannot "+e);var s=(i,r,e)=>(q(i,r,"read from private field"),e?e.call(i):r.get(i)),c=(i,r,e)=>r.has(i)?d("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,e),l=(i,r,e,a)=>(q(i,r,"write to private field"),a?a.call(i,e):r.set(i,e),e);const u=require("./easings-GegIwET5.cjs"),S=require("./math-GDWEqu7y.cjs"),T=require("./number-DyefJ5a1.cjs"),x=require("./polyfills-Df4r-ETT.cjs");require("construct-style-sheets-polyfill");require("./index-DekP7OZe.cjs");const z=require("./Animation-BRqj4VfN.cjs");var n,t;class C extends z.Animation{constructor(e,a){super(e||0,a);c(this,n,u.linear);c(this,t,1e3);this.updateOptions(f(g({},a),{equalize:!0}))}updateOptions(e){super.updateOptions(e),l(this,n,typeof(e==null?void 0:e.easing)=="function"?e.easing:typeof(e==null?void 0:e.easing)=="string"&&u.easings[e.easing]||u.linear),l(this,t,(e==null?void 0:e.duration)===!1?0:x.nullishCoalescing(e==null?void 0:e.duration,s(this,t)))}handleAnimationFrame(e){const a=e.timeElapsedSinceSubscription/1e3/(s(this,t)/1e3)||0,A=s(this,n).call(this,S.clamp(a,0,1));this.current=T.preciseNumber(this.from+(this.target-this.from)*A,6),a>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,t=new WeakMap;exports.Tweened=C;
1
+ "use strict";var F=Object.defineProperty,b=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var m=Object.getOwnPropertySymbols;var O=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var d=i=>{throw TypeError(i)};var h=(i,r,e)=>r in i?F(i,r,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[r]=e,g=(i,r)=>{for(var e in r||(r={}))O.call(r,e)&&h(i,e,r[e]);if(m)for(var e of m(r))w.call(r,e)&&h(i,e,r[e]);return i},f=(i,r)=>b(i,y(r));var q=(i,r,e)=>r.has(i)||d("Cannot "+e);var s=(i,r,e)=>(q(i,r,"read from private field"),e?e.call(i):r.get(i)),c=(i,r,e)=>r.has(i)?d("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(i):r.set(i,e),l=(i,r,e,a)=>(q(i,r,"write to private field"),a?a.call(i,e):r.set(i,e),e);const u=require("./easings-GegIwET5.cjs"),S=require("./math-GDWEqu7y.cjs"),T=require("./number-ChAm68cm.cjs"),x=require("./polyfills-Df4r-ETT.cjs");require("construct-style-sheets-polyfill");require("./index-DekP7OZe.cjs");const z=require("./Animation-hZcAchp_.cjs");var n,t;class C extends z.Animation{constructor(e,a){super(e||0,a);c(this,n,u.linear);c(this,t,1e3);this.updateOptions(f(g({},a),{equalize:!0}))}updateOptions(e){super.updateOptions(e),l(this,n,typeof(e==null?void 0:e.easing)=="function"?e.easing:typeof(e==null?void 0:e.easing)=="string"&&u.easings[e.easing]||u.linear),l(this,t,(e==null?void 0:e.duration)===!1?0:x.nullishCoalescing(e==null?void 0:e.duration,s(this,t)))}handleAnimationFrame(e){const a=e.timeElapsedSinceSubscription/1e3/(s(this,t)/1e3)||0,A=s(this,n).call(this,S.clamp(a,0,1));this.current=T.preciseNumber(this.from+(this.target-this.from)*A,6),a>1&&this.unlistenAnimationFrame()}start(){this.unlistenAnimationFrame(),this.listenAnimationFrame()}}n=new WeakMap,t=new WeakMap;exports.Tweened=C;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-BRqj4VfN.cjs"),n=require("../Damped-BD1OQ1fH.cjs"),i=require("../Tweened-B-AHx93m.cjs");exports.Animation=e.Animation;exports.Damped=n.Damped;exports.Tweened=i.Tweened;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../Animation-hZcAchp_.cjs"),n=require("../Damped-z9Uaw2MJ.cjs"),i=require("../Tweened-mvHucL4Y.cjs");exports.Animation=e.Animation;exports.Damped=n.Damped;exports.Tweened=i.Tweened;
@@ -1,6 +1,6 @@
1
- import { A as r } from "../Animation-D29tc5VS.js";
2
- import { D as m } from "../Damped-YrqW5V4w.js";
3
- import { T as t } from "../Tweened-_pF0zXXN.js";
1
+ import { A as r } from "../Animation-BDEX44-i.js";
2
+ import { D as m } from "../Damped-CtQmJ52v.js";
3
+ import { T as t } from "../Tweened-BlZB0vl4.js";
4
4
  export {
5
5
  r as Animation,
6
6
  m as Damped,
@@ -1 +1 @@
1
- "use strict";var W=n=>{throw TypeError(n)};var Q=(n,l,e)=>l.has(n)||W("Cannot "+e);var t=(n,l,e)=>(Q(n,l,"read from private field"),e?e.call(n):l.get(n)),i=(n,l,e)=>l.has(n)?W("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(n):l.set(n,e),c=(n,l,e,s)=>(Q(n,l,"write to private field"),s?s.call(n,e):l.set(n,e),e),d=(n,l,e)=>(Q(n,l,"access private method"),e);var F=(n,l,e)=>new Promise((s,r)=>{var o=v=>{try{x(e.next(v))}catch(z){r(z)}},f=v=>{try{x(e.throw(v))}catch(z){r(z)}},x=v=>v.done?s(v.value):Promise.resolve(v.value).then(o,f);x((e=e.apply(n,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("../index-DekP7OZe.cjs"),et=require("../custom-elements-Dh4TWRDJ.cjs"),V=require("../dom-JBOkFLTh.cjs");require("construct-style-sheets-polyfill");const P=require("../css-property/index.cjs"),st=require("../events-KVanG9sR.cjs"),it=require("../gestures-C7gbKx11.cjs"),rt=require("../math-GDWEqu7y.cjs"),X=require("../number-DyefJ5a1.cjs");var T,A,E,L,C,B,N,m,h,b,a,R,G,q,O,U,M,J,K;class j extends HTMLElement{constructor(){super(...arguments);i(this,a);i(this,T,new P.CSSProperty(this,"--resize",!0));i(this,A,new P.CSSProperty(this,"--loop",!0));i(this,E,new P.CSSProperty(this,"--autoplay",!1));i(this,L,new P.CSSProperty(this,"--swipe","x"));i(this,C);i(this,B,!1);i(this,N,[]);i(this,m,new Map);i(this,h,0);i(this,b,0);i(this,q,e=>{c(this,B,e.isIntersecting),t(this,B)?d(this,a,G).call(this):clearInterval(t(this,C))});i(this,O,()=>{clearInterval(t(this,C)),t(this,B)&&c(this,C,setInterval(t(this,J),this.autoplayDuration))});i(this,J,()=>{d(this,a,M).call(this,t(this,h)+1)});i(this,K,e=>{if(!t(this,L).current)return;let s=0;it.setupDrag(r=>{const o=e.x-r.x,f=e.y-r.y;t(this,L).current==="x"?Math.abs(o)>Math.abs(f)&&Math.abs(o)>10&&(s=Math.sign(o)):t(this,L).current==="y"&&Math.abs(f)>Math.abs(o)&&Math.abs(f)>10&&(s=Math.sign(f))},()=>{s&&this.shift(s)})})}get counter(){return t(this,h)}get loop(){return t(this,A)}get autoplay(){return t(this,E)}get autoplayDuration(){return parseFloat(t(this,E).current||"0")*1e3}get swipe(){return t(this,L)}get itemElements(){return t(this,N)}get groups(){return t(this,m)}get length(){return t(this,b)}addItem(e){d(this,a,R).call(this,e),d(this,a,M).call(this)}set(e){(!this.handleSet||this.handleSet(e))&&(d(this,a,M).call(this,e),d(this,a,G).call(this))}shift(e){this.set(t(this,h)+e)}connectedCallback(){[...this.querySelectorAll(`[data-billboard-item${this.id?`="${this.id}"`:""}]`)].forEach(s=>{d(this,a,R).call(this,s)}),t(this,m).forEach(s=>{var r;(r=s[0])==null||r.classList.add("current")}),t(this,E).subscribe(s=>{s.current?(I.intersector.subscribe(this,t(this,q)),d(this,a,G).call(this)):(c(this,B,!0),I.intersector.unsubscribe(t(this,q)),clearInterval(t(this,C)),d(this,a,M).call(this,0))}),t(this,E).observe(),t(this,L).observe(),t(this,A).observe(),t(this,T).observe(),d(this,a,M).call(this,0),this.addEventListener("pointerdown",t(this,K))}disconnectedCallback(){t(this,E).unobserve(),t(this,L).unobserve(),t(this,A).unobserve(),t(this,T).unobserve(),t(this,m).clear(),I.intersector.unsubscribe(t(this,q)),clearInterval(t(this,C))}}T=new WeakMap,A=new WeakMap,E=new WeakMap,L=new WeakMap,C=new WeakMap,B=new WeakMap,N=new WeakMap,m=new WeakMap,h=new WeakMap,b=new WeakMap,a=new WeakSet,R=function(e){t(this,N).push(e);const s=e.getAttribute("data-billboard-item-group")||"default";let r=t(this,m).get(s);r||(r=[],t(this,m).set(s,r)),r.push(e),c(this,b,0),t(this,m).forEach(o=>{o.length>t(this,b)&&c(this,b,o.length)})},G=function(){t(this,E).current!==!1&&t(this,O).call(this)},q=new WeakMap,O=new WeakMap,U=function(e,s){e.classList.remove("current","previous","next","previous-sibling","next-sibling"),s===t(this,h)?e.classList.add("current"):s<t(this,h)?e.classList.add("previous"):s>t(this,h)&&e.classList.add("next"),s===X.loopNumber(t(this,h)-1,this.length)?e.classList.add("previous-sibling"):s===(t(this,h)+1)%this.length&&e.classList.add("next-sibling")},M=function(){return F(this,arguments,function*(e=t(this,h)){const s=t(this,h);t(this,A).current?c(this,h,X.loopNumber(e,t(this,b))):c(this,h,rt.clamp(e,0,t(this,b)-1)),this.classList.remove("forward","backward"),t(this,h)-s>=0?this.classList.add("forward"):t(this,h)-s<0&&this.classList.add("backward");let r=[];t(this,m).forEach(o=>{o.forEach((f,x)=>{const v=f.classList.contains("visited");x===t(this,h)&&!v?(f.classList.add("visited"),r.push(new Promise(z=>{setTimeout(()=>{d(this,a,U).call(this,f,x),z()},10)}))):d(this,a,U).call(this,f,x)})}),r.length&&(yield Promise.all(r)),this.classList.toggle("has-length",t(this,b)>1),this.classList.toggle("start",t(this,h)===0),this.classList.toggle("end",t(this,h)===t(this,b)-1),this.style.setProperty("--counter",t(this,h).toString()),this.style.setProperty("--sections",t(this,b).toString()),t(this,h)!==s&&(st.dispatchEvent(this,"billboardChange",{detail:{counter:t(this,h)}}),t(this,T).current&&setTimeout(()=>{window.dispatchEvent(new Event("resize"))},0))})},J=new WeakMap,K=new WeakMap;customElements.get("e-billboard")||customElements.define("e-billboard",j);var p,D,g,_,H;class Y extends HTMLElement{constructor(){super(...arguments);i(this,p,null);i(this,D,null);i(this,g,[]);i(this,_,e=>{const s=e.currentTarget,r=t(this,g).findIndex(o=>o===s);r>=0&&t(this,p).set(r)});i(this,H,()=>{t(this,g).forEach((e,s)=>{s===t(this,p).counter?e.classList.add("current"):e.classList.remove("current")})})}get buttonElements(){return t(this,g)}connectedCallback(){return F(this,null,function*(){var e;if(yield et.whenDefined("e-billboard"),c(this,p,V.findParentElement(this,j)),t(this,p)&&this.isConnected){this.innerHTML="";const s=t(this,p).length;c(this,D,document.createElement("div"));for(let r=0;r<s;r++){const o=document.createElement("button");o.setAttribute("aria-label",`Go to item ${r+1}`),t(this,g).push(o),t(this,D).appendChild(o)}this.appendChild(t(this,D)),t(this,g).forEach(r=>{r.addEventListener("click",t(this,_))}),(e=t(this,p))==null||e.addEventListener("billboardChange",t(this,H)),t(this,H).call(this)}})}disconnectedCallback(){var e;t(this,g).forEach(s=>{s.removeEventListener("click",t(this,_))}),(e=t(this,p))==null||e.removeEventListener("billboardChange",t(this,H)),this.innerHTML="",c(this,g,[])}}p=new WeakMap,D=new WeakMap,g=new WeakMap,_=new WeakMap,H=new WeakMap;I.isBrowser&&!customElements.get("e-billboard-bullets")&&customElements.define("e-billboard-bullets",Y);var w,y,k;class Z extends HTMLElement{constructor(){super();i(this,w,new P.CSSProperty(this,"--index",0));i(this,y,null);i(this,k,()=>{var e;t(this,w).current===((e=t(this,y))==null?void 0:e.counter)?this.classList.add("current"):this.classList.remove("current")});this.addEventListener("click",e=>{t(this,y)&&(!this.handleClick||this.handleClick(e))&&t(this,y).set(t(this,w).current)}),this.addEventListener("keydown",e=>{e.code==="Space"&&!this.hasAttribute("keydown-disabled")&&(e.preventDefault(),this.click())})}connectedCallback(){var e;this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button"),c(this,y,V.findParentElement(this,j)),(e=t(this,y))==null||e.addEventListener("billboardChange",t(this,k)),customElements.whenDefined("e-billboard").then(()=>{this.isConnected&&t(this,k).call(this)}),t(this,w).subscribe(t(this,k)),t(this,w).observe()}disconnectedCallback(){var e;this.removeAttribute("tabindex"),this.removeAttribute("role"),t(this,w).unsubscribe(t(this,k)),t(this,w).unobserve(),(e=t(this,y))==null||e.removeEventListener("billboardChange",t(this,k))}}w=new WeakMap,y=new WeakMap,k=new WeakMap;I.isBrowser&&!customElements.get("e-billboard-set-button")&&customElements.define("e-billboard-set-button",Z);var S,u,$;class tt extends HTMLElement{constructor(){super();i(this,S,new P.CSSProperty(this,"--step",1));i(this,u,null);i(this,$,()=>{t(this,u)&&(!t(this,u).loop.current&&(t(this,u).counter===0&&t(this,S).current<=0||t(this,u).counter===t(this,u).length-1&&t(this,S).current>=0)?this.setAttribute("disabled",""):this.removeAttribute("disabled"))});this.addEventListener("click",e=>{t(this,u)&&(!this.handleClick||this.handleClick(e))&&t(this,u).shift(t(this,S).current)}),this.addEventListener("keydown",e=>{e.code==="Space"&&!this.hasAttribute("keydown-disabled")&&(e.preventDefault(),this.click())})}connectedCallback(){return F(this,null,function*(){var e;yield customElements.whenDefined("e-billboard"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button"),t(this,S).observe(),this.tabIndex=0,c(this,u,V.findParentElement(this,j)),(e=t(this,u))==null||e.addEventListener("billboardChange",t(this,$)),setTimeout(()=>{t(this,$).call(this)},0)})}disconnectedCallback(){var e;this.removeAttribute("tabindex"),this.removeAttribute("role"),t(this,S).unobserve(),(e=t(this,u))==null||e.removeEventListener("billboardChange",t(this,$))}}S=new WeakMap,u=new WeakMap,$=new WeakMap;I.isBrowser&&!customElements.get("e-billboard-step-button")&&customElements.define("e-billboard-step-button",tt);exports.BillboardBulletsElement=Y;exports.BillboardElement=j;exports.BillboardSetButtonElement=Z;exports.BillboardStepButtonElement=tt;
1
+ "use strict";var W=n=>{throw TypeError(n)};var Q=(n,l,e)=>l.has(n)||W("Cannot "+e);var t=(n,l,e)=>(Q(n,l,"read from private field"),e?e.call(n):l.get(n)),i=(n,l,e)=>l.has(n)?W("Cannot add the same private member more than once"):l instanceof WeakSet?l.add(n):l.set(n,e),c=(n,l,e,s)=>(Q(n,l,"write to private field"),s?s.call(n,e):l.set(n,e),e),d=(n,l,e)=>(Q(n,l,"access private method"),e);var F=(n,l,e)=>new Promise((s,r)=>{var o=v=>{try{x(e.next(v))}catch(z){r(z)}},f=v=>{try{x(e.throw(v))}catch(z){r(z)}},x=v=>v.done?s(v.value):Promise.resolve(v.value).then(o,f);x((e=e.apply(n,l)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const I=require("../index-DekP7OZe.cjs"),et=require("../custom-elements-Dh4TWRDJ.cjs"),V=require("../dom-JBOkFLTh.cjs");require("construct-style-sheets-polyfill");const P=require("../css-property/index.cjs"),st=require("../events-KVanG9sR.cjs"),it=require("../gestures-C7gbKx11.cjs"),rt=require("../math-GDWEqu7y.cjs"),X=require("../number-ChAm68cm.cjs");var T,A,E,L,C,B,N,m,h,b,a,R,G,q,O,U,M,J,K;class j extends HTMLElement{constructor(){super(...arguments);i(this,a);i(this,T,new P.CSSProperty(this,"--resize",!0));i(this,A,new P.CSSProperty(this,"--loop",!0));i(this,E,new P.CSSProperty(this,"--autoplay",!1));i(this,L,new P.CSSProperty(this,"--swipe","x"));i(this,C);i(this,B,!1);i(this,N,[]);i(this,m,new Map);i(this,h,0);i(this,b,0);i(this,q,e=>{c(this,B,e.isIntersecting),t(this,B)?d(this,a,G).call(this):clearInterval(t(this,C))});i(this,O,()=>{clearInterval(t(this,C)),t(this,B)&&c(this,C,setInterval(t(this,J),this.autoplayDuration))});i(this,J,()=>{d(this,a,M).call(this,t(this,h)+1)});i(this,K,e=>{if(!t(this,L).current)return;let s=0;it.setupDrag(r=>{const o=e.x-r.x,f=e.y-r.y;t(this,L).current==="x"?Math.abs(o)>Math.abs(f)&&Math.abs(o)>10&&(s=Math.sign(o)):t(this,L).current==="y"&&Math.abs(f)>Math.abs(o)&&Math.abs(f)>10&&(s=Math.sign(f))},()=>{s&&this.shift(s)})})}get counter(){return t(this,h)}get loop(){return t(this,A)}get autoplay(){return t(this,E)}get autoplayDuration(){return parseFloat(t(this,E).current||"0")*1e3}get swipe(){return t(this,L)}get itemElements(){return t(this,N)}get groups(){return t(this,m)}get length(){return t(this,b)}addItem(e){d(this,a,R).call(this,e),d(this,a,M).call(this)}set(e){(!this.handleSet||this.handleSet(e))&&(d(this,a,M).call(this,e),d(this,a,G).call(this))}shift(e){this.set(t(this,h)+e)}connectedCallback(){[...this.querySelectorAll(`[data-billboard-item${this.id?`="${this.id}"`:""}]`)].forEach(s=>{d(this,a,R).call(this,s)}),t(this,m).forEach(s=>{var r;(r=s[0])==null||r.classList.add("current")}),t(this,E).subscribe(s=>{s.current?(I.intersector.subscribe(this,t(this,q)),d(this,a,G).call(this)):(c(this,B,!0),I.intersector.unsubscribe(t(this,q)),clearInterval(t(this,C)),d(this,a,M).call(this,0))}),t(this,E).observe(),t(this,L).observe(),t(this,A).observe(),t(this,T).observe(),d(this,a,M).call(this,0),this.addEventListener("pointerdown",t(this,K))}disconnectedCallback(){t(this,E).unobserve(),t(this,L).unobserve(),t(this,A).unobserve(),t(this,T).unobserve(),t(this,m).clear(),I.intersector.unsubscribe(t(this,q)),clearInterval(t(this,C))}}T=new WeakMap,A=new WeakMap,E=new WeakMap,L=new WeakMap,C=new WeakMap,B=new WeakMap,N=new WeakMap,m=new WeakMap,h=new WeakMap,b=new WeakMap,a=new WeakSet,R=function(e){t(this,N).push(e);const s=e.getAttribute("data-billboard-item-group")||"default";let r=t(this,m).get(s);r||(r=[],t(this,m).set(s,r)),r.push(e),c(this,b,0),t(this,m).forEach(o=>{o.length>t(this,b)&&c(this,b,o.length)})},G=function(){t(this,E).current!==!1&&t(this,O).call(this)},q=new WeakMap,O=new WeakMap,U=function(e,s){e.classList.remove("current","previous","next","previous-sibling","next-sibling"),s===t(this,h)?e.classList.add("current"):s<t(this,h)?e.classList.add("previous"):s>t(this,h)&&e.classList.add("next"),s===X.loopNumber(t(this,h)-1,this.length)?e.classList.add("previous-sibling"):s===(t(this,h)+1)%this.length&&e.classList.add("next-sibling")},M=function(){return F(this,arguments,function*(e=t(this,h)){const s=t(this,h);t(this,A).current?c(this,h,X.loopNumber(e,t(this,b))):c(this,h,rt.clamp(e,0,t(this,b)-1)),this.classList.remove("forward","backward","next-round","prev-round"),t(this,h)-s>=0?this.classList.add("forward"):t(this,h)-s<0&&this.classList.add("backward");let r=[];t(this,m).forEach(o=>{o.forEach((f,x)=>{const v=f.classList.contains("visited");x===t(this,h)&&!v?(f.classList.add("visited"),r.push(new Promise(z=>{setTimeout(()=>{d(this,a,U).call(this,f,x),z()},10)}))):d(this,a,U).call(this,f,x)})}),r.length&&(yield Promise.all(r)),this.classList.toggle("has-length",t(this,b)>1),this.classList.toggle("start",t(this,h)===0),this.classList.toggle("end",t(this,h)===t(this,b)-1),this.style.setProperty("--counter",t(this,h).toString()),this.style.setProperty("--sections",t(this,b).toString()),t(this,h)!==s&&(st.dispatchEvent(this,"billboardChange",{detail:{counter:t(this,h)}}),t(this,T).current&&setTimeout(()=>{window.dispatchEvent(new Event("resize"))},0)),setTimeout(()=>{this.classList.remove("next-round","prev-round")},10)})},J=new WeakMap,K=new WeakMap;customElements.get("e-billboard")||customElements.define("e-billboard",j);var p,D,g,_,H;class Y extends HTMLElement{constructor(){super(...arguments);i(this,p,null);i(this,D,null);i(this,g,[]);i(this,_,e=>{const s=e.currentTarget,r=t(this,g).findIndex(o=>o===s);r>=0&&t(this,p).set(r)});i(this,H,()=>{t(this,g).forEach((e,s)=>{s===t(this,p).counter?e.classList.add("current"):e.classList.remove("current")})})}get buttonElements(){return t(this,g)}connectedCallback(){return F(this,null,function*(){var e;if(yield et.whenDefined("e-billboard"),c(this,p,V.findParentElement(this,j)),t(this,p)&&this.isConnected){this.innerHTML="";const s=t(this,p).length;c(this,D,document.createElement("div"));for(let r=0;r<s;r++){const o=document.createElement("button");o.setAttribute("aria-label",`Go to item ${r+1}`),t(this,g).push(o),t(this,D).appendChild(o)}this.appendChild(t(this,D)),t(this,g).forEach(r=>{r.addEventListener("click",t(this,_))}),(e=t(this,p))==null||e.addEventListener("billboardChange",t(this,H)),t(this,H).call(this)}})}disconnectedCallback(){var e;t(this,g).forEach(s=>{s.removeEventListener("click",t(this,_))}),(e=t(this,p))==null||e.removeEventListener("billboardChange",t(this,H)),this.innerHTML="",c(this,g,[])}}p=new WeakMap,D=new WeakMap,g=new WeakMap,_=new WeakMap,H=new WeakMap;I.isBrowser&&!customElements.get("e-billboard-bullets")&&customElements.define("e-billboard-bullets",Y);var w,y,k;class Z extends HTMLElement{constructor(){super();i(this,w,new P.CSSProperty(this,"--index",0));i(this,y,null);i(this,k,()=>{var e;t(this,w).current===((e=t(this,y))==null?void 0:e.counter)?this.classList.add("current"):this.classList.remove("current")});this.addEventListener("click",e=>{t(this,y)&&(!this.handleClick||this.handleClick(e))&&t(this,y).set(t(this,w).current)}),this.addEventListener("keydown",e=>{e.code==="Space"&&!this.hasAttribute("keydown-disabled")&&(e.preventDefault(),this.click())})}connectedCallback(){var e;this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button"),c(this,y,V.findParentElement(this,j)),(e=t(this,y))==null||e.addEventListener("billboardChange",t(this,k)),customElements.whenDefined("e-billboard").then(()=>{this.isConnected&&t(this,k).call(this)}),t(this,w).subscribe(t(this,k)),t(this,w).observe()}disconnectedCallback(){var e;this.removeAttribute("tabindex"),this.removeAttribute("role"),t(this,w).unsubscribe(t(this,k)),t(this,w).unobserve(),(e=t(this,y))==null||e.removeEventListener("billboardChange",t(this,k))}}w=new WeakMap,y=new WeakMap,k=new WeakMap;I.isBrowser&&!customElements.get("e-billboard-set-button")&&customElements.define("e-billboard-set-button",Z);var S,u,$;class tt extends HTMLElement{constructor(){super();i(this,S,new P.CSSProperty(this,"--step",1));i(this,u,null);i(this,$,()=>{t(this,u)&&(!t(this,u).loop.current&&(t(this,u).counter===0&&t(this,S).current<=0||t(this,u).counter===t(this,u).length-1&&t(this,S).current>=0)?this.setAttribute("disabled",""):this.removeAttribute("disabled"))});this.addEventListener("click",e=>{t(this,u)&&(!this.handleClick||this.handleClick(e))&&t(this,u).shift(t(this,S).current)}),this.addEventListener("keydown",e=>{e.code==="Space"&&!this.hasAttribute("keydown-disabled")&&(e.preventDefault(),this.click())})}connectedCallback(){return F(this,null,function*(){var e;yield customElements.whenDefined("e-billboard"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0"),this.hasAttribute("role")||this.setAttribute("role","button"),t(this,S).observe(),this.tabIndex=0,c(this,u,V.findParentElement(this,j)),(e=t(this,u))==null||e.addEventListener("billboardChange",t(this,$)),setTimeout(()=>{t(this,$).call(this)},0)})}disconnectedCallback(){var e;this.removeAttribute("tabindex"),this.removeAttribute("role"),t(this,S).unobserve(),(e=t(this,u))==null||e.removeEventListener("billboardChange",t(this,$))}}S=new WeakMap,u=new WeakMap,$=new WeakMap;I.isBrowser&&!customElements.get("e-billboard-step-button")&&customElements.define("e-billboard-step-button",tt);exports.BillboardBulletsElement=Y;exports.BillboardElement=j;exports.BillboardSetButtonElement=Z;exports.BillboardStepButtonElement=tt;
@@ -27,7 +27,7 @@ import { CSSProperty as T } from "../css-property/index.js";
27
27
  import { d as tt } from "../events-CsVF98U6.js";
28
28
  import { s as et } from "../gestures-CcXV6fCp.js";
29
29
  import { c as st } from "../math-BOBiC4TN.js";
30
- import { l as Z } from "../number-CbdpfO3u.js";
30
+ import { l as Z } from "../number-CumqY64S.js";
31
31
  var D, M, E, L, C, I, N, m, h, b, a, U, G, B, j, V, S, J, K;
32
32
  class O extends HTMLElement {
33
33
  constructor() {
@@ -138,7 +138,7 @@ D = new WeakMap(), M = new WeakMap(), E = new WeakMap(), L = new WeakMap(), C =
138
138
  }, S = function() {
139
139
  return F(this, arguments, function* (e = t(this, h)) {
140
140
  const s = t(this, h);
141
- t(this, M).current ? c(this, h, Z(e, t(this, b))) : c(this, h, st(e, 0, t(this, b) - 1)), this.classList.remove("forward", "backward"), t(this, h) - s >= 0 ? this.classList.add("forward") : t(this, h) - s < 0 && this.classList.add("backward");
141
+ t(this, M).current ? c(this, h, Z(e, t(this, b))) : c(this, h, st(e, 0, t(this, b) - 1)), this.classList.remove("forward", "backward", "next-round", "prev-round"), t(this, h) - s >= 0 ? this.classList.add("forward") : t(this, h) - s < 0 && this.classList.add("backward");
142
142
  let r = [];
143
143
  t(this, m).forEach((o) => {
144
144
  o.forEach((f, A) => {
@@ -157,7 +157,9 @@ D = new WeakMap(), M = new WeakMap(), E = new WeakMap(), L = new WeakMap(), C =
157
157
  }
158
158
  }), t(this, D).current && setTimeout(() => {
159
159
  window.dispatchEvent(new Event("resize"));
160
- }, 0));
160
+ }, 0)), setTimeout(() => {
161
+ this.classList.remove("next-round", "prev-round");
162
+ }, 10);
161
163
  });
162
164
  }, J = new WeakMap(), K = new WeakMap();
163
165
  customElements.get("e-billboard") || customElements.define("e-billboard", O);
@@ -213,13 +215,13 @@ class it extends HTMLElement {
213
215
  }
214
216
  p = new WeakMap(), H = new WeakMap(), g = new WeakMap(), q = new WeakMap(), P = new WeakMap();
215
217
  W && !customElements.get("e-billboard-bullets") && customElements.define("e-billboard-bullets", it);
216
- var w, k, y;
218
+ var w, k, x;
217
219
  class rt extends HTMLElement {
218
220
  constructor() {
219
221
  super();
220
222
  i(this, w, new T(this, "--index", 0));
221
223
  i(this, k, null);
222
- i(this, y, () => {
224
+ i(this, x, () => {
223
225
  var e;
224
226
  t(this, w).current === ((e = t(this, k)) == null ? void 0 : e.counter) ? this.classList.add("current") : this.classList.remove("current");
225
227
  });
@@ -233,32 +235,32 @@ class rt extends HTMLElement {
233
235
  var e;
234
236
  this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.hasAttribute("role") || this.setAttribute("role", "button"), c(this, k, X(this, O)), (e = t(this, k)) == null || e.addEventListener(
235
237
  "billboardChange",
236
- t(this, y)
238
+ t(this, x)
237
239
  ), customElements.whenDefined("e-billboard").then(() => {
238
- this.isConnected && t(this, y).call(this);
239
- }), t(this, w).subscribe(t(this, y)), t(this, w).observe();
240
+ this.isConnected && t(this, x).call(this);
241
+ }), t(this, w).subscribe(t(this, x)), t(this, w).observe();
240
242
  }
241
243
  disconnectedCallback() {
242
244
  var e;
243
- this.removeAttribute("tabindex"), this.removeAttribute("role"), t(this, w).unsubscribe(t(this, y)), t(this, w).unobserve(), (e = t(this, k)) == null || e.removeEventListener(
245
+ this.removeAttribute("tabindex"), this.removeAttribute("role"), t(this, w).unsubscribe(t(this, x)), t(this, w).unobserve(), (e = t(this, k)) == null || e.removeEventListener(
244
246
  "billboardChange",
245
- t(this, y)
247
+ t(this, x)
246
248
  );
247
249
  }
248
250
  }
249
- w = new WeakMap(), k = new WeakMap(), y = new WeakMap();
251
+ w = new WeakMap(), k = new WeakMap(), x = new WeakMap();
250
252
  W && !customElements.get("e-billboard-set-button") && customElements.define("e-billboard-set-button", rt);
251
- var x, u, z;
253
+ var y, u, z;
252
254
  class nt extends HTMLElement {
253
255
  constructor() {
254
256
  super();
255
- i(this, x, new T(this, "--step", 1));
257
+ i(this, y, new T(this, "--step", 1));
256
258
  i(this, u, null);
257
259
  i(this, z, () => {
258
- t(this, u) && (!t(this, u).loop.current && (t(this, u).counter === 0 && t(this, x).current <= 0 || t(this, u).counter === t(this, u).length - 1 && t(this, x).current >= 0) ? this.setAttribute("disabled", "") : this.removeAttribute("disabled"));
260
+ t(this, u) && (!t(this, u).loop.current && (t(this, u).counter === 0 && t(this, y).current <= 0 || t(this, u).counter === t(this, u).length - 1 && t(this, y).current >= 0) ? this.setAttribute("disabled", "") : this.removeAttribute("disabled"));
259
261
  });
260
262
  this.addEventListener("click", (e) => {
261
- t(this, u) && (!this.handleClick || this.handleClick(e)) && t(this, u).shift(t(this, x).current);
263
+ t(this, u) && (!this.handleClick || this.handleClick(e)) && t(this, u).shift(t(this, y).current);
262
264
  }), this.addEventListener("keydown", (e) => {
263
265
  e.code === "Space" && !this.hasAttribute("keydown-disabled") && (e.preventDefault(), this.click());
264
266
  });
@@ -266,7 +268,7 @@ class nt extends HTMLElement {
266
268
  connectedCallback() {
267
269
  return F(this, null, function* () {
268
270
  var e;
269
- yield customElements.whenDefined("e-billboard"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.hasAttribute("role") || this.setAttribute("role", "button"), t(this, x).observe(), this.tabIndex = 0, c(this, u, X(this, O)), (e = t(this, u)) == null || e.addEventListener(
271
+ yield customElements.whenDefined("e-billboard"), this.hasAttribute("tabindex") || this.setAttribute("tabindex", "0"), this.hasAttribute("role") || this.setAttribute("role", "button"), t(this, y).observe(), this.tabIndex = 0, c(this, u, X(this, O)), (e = t(this, u)) == null || e.addEventListener(
270
272
  "billboardChange",
271
273
  t(this, z)
272
274
  ), setTimeout(() => {
@@ -276,13 +278,13 @@ class nt extends HTMLElement {
276
278
  }
277
279
  disconnectedCallback() {
278
280
  var e;
279
- this.removeAttribute("tabindex"), this.removeAttribute("role"), t(this, x).unobserve(), (e = t(this, u)) == null || e.removeEventListener(
281
+ this.removeAttribute("tabindex"), this.removeAttribute("role"), t(this, y).unobserve(), (e = t(this, u)) == null || e.removeEventListener(
280
282
  "billboardChange",
281
283
  t(this, z)
282
284
  );
283
285
  }
284
286
  }
285
- x = new WeakMap(), u = new WeakMap(), z = new WeakMap();
287
+ y = new WeakMap(), u = new WeakMap(), z = new WeakMap();
286
288
  W && !customElements.get("e-billboard-step-button") && customElements.define("e-billboard-step-button", nt);
287
289
  export {
288
290
  it as BillboardBulletsElement,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../DragControls-D8BXtKVu.cjs");exports.AutoplayControls=o.AutoplayControls;exports.Controls=o.Controls;exports.DragControls=o.DragControls;exports.KeyboardControls=o.KeyboardControls;exports.WheelControls=o.WheelControls;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../DragControls-CfE2oPAi.cjs");exports.AutoplayControls=o.AutoplayControls;exports.Controls=o.Controls;exports.DragControls=o.DragControls;exports.KeyboardControls=o.KeyboardControls;exports.WheelControls=o.WheelControls;
@@ -1,4 +1,4 @@
1
- import { A as r, C as a, D as l, K as t, W as C } from "../DragControls-DGDUw6bM.js";
1
+ import { A as r, C as a, D as l, K as t, W as C } from "../DragControls-CkhCt-4W.js";
2
2
  export {
3
3
  r as AutoplayControls,
4
4
  a as Controls,
@@ -23,7 +23,7 @@ function p(t, f) {
23
23
  }
24
24
  export {
25
25
  l as a,
26
- p as b,
27
- i as c,
26
+ i as b,
27
+ p as c,
28
28
  c as g
29
29
  };
@@ -10,7 +10,7 @@ import { scrollEntries as $ } from "../scroll-entries/index.js";
10
10
  import { ticker as j } from "../ticker/index.js";
11
11
  import { i as tt } from "../index-Bv9zgfdb.js";
12
12
  import { g as et } from "../dom-CVWzyXPH.js";
13
- import { g as F, a as G } from "../layout-BSMtwCga.js";
13
+ import { g as F, a as G } from "../layout-DpZo-I0y.js";
14
14
  import "construct-style-sheets-polyfill";
15
15
  import { elementResizer as st } from "../element-resizer/index.js";
16
16
  import { windowResizer as it } from "../window-resizer/index.js";
@@ -23,7 +23,7 @@ var xt = (a, t, s) => (t = a[Ct("asyncIterator")]) ? t.call(a) : (a = a[Ct("iter
23
23
  import { i as Dt } from "../index-Bv9zgfdb.js";
24
24
  import { d as I } from "../events-CsVF98U6.js";
25
25
  import { r as Wt } from "../polyfills-DJrTJQky.js";
26
- import { w as Bt, s as Yt } from "../scroll-DNGJVxa2.js";
26
+ import { w as Bt, s as Yt } from "../scroll-DPkCFTxg.js";
27
27
  import "construct-style-sheets-polyfill";
28
28
  import { n as Xt, c as Mt, s as Ut } from "../url-Cc-RVfii.js";
29
29
  import { cssValueParser as $t } from "../css-value-parser/index.js";
@@ -1,4 +1,4 @@
1
- "use strict";var wt=r=>{throw TypeError(r)};var Ge=(r,s,e)=>s.has(r)||wt("Cannot "+e);var t=(r,s,e)=>(Ge(r,s,"read from private field"),e?e.call(r):s.get(r)),o=(r,s,e)=>s.has(r)?wt("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,e),c=(r,s,e,i)=>(Ge(r,s,"write to private field"),i?i.call(r,e):s.set(r,e),e),l=(r,s,e)=>(Ge(r,s,"access private method"),e);const p=require("../index-DekP7OZe.cjs");require("construct-style-sheets-polyfill");const m=require("../Store-Cd1GlEmZ.cjs"),Yt=require("../file-DSpfWdd9.cjs"),Gt=require("../function-MthRj-GJ.cjs"),St=require("../gestures-C7gbKx11.cjs");require("../ticker/index.cjs");const pe=require("../string-DUXXtU8v.cjs"),bt=require("../object-CCiXnER2.cjs"),Ut=require("../connector/index.cjs"),Xt=require("../Viewport-DB0qAZPJ.cjs"),Qt=require("../math-GDWEqu7y.cjs"),jt=require("../number-DyefJ5a1.cjs"),vt=require("../polyfills-Df4r-ETT.cjs"),yt=require("../element-resizer/index.cjs"),es=require("../style-At6aDoqG.cjs"),ts=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view","use"]);var d,B,S,we,I,H,a,kt,Et,xt,Ue,Xe,Ct,Tt,Lt,zt,Qe,je,Rt,et,tt,Mt,st,qe,it,nt,ot,Ke,Oe;const Ze=class Ze{constructor(...s){o(this,a);o(this,d,null);o(this,B,new Set);o(this,S,new Set);o(this,we);o(this,I);o(this,H);o(this,Ke,s=>{t(this,B).forEach(e=>{e(s)}),t(this,B).clear()});o(this,Oe,(s,e)=>{t(this,S).forEach(i=>{i(s,e)}),t(this,S).clear(),l(this,a,tt).call(this)});if(p.isBrowser){const e=s[0],i=s[1];c(this,d,l(this,a,kt).call(this,e,i==null?void 0:i.forceSvg)),l(this,a,xt).call(this,i)}}get node(){return t(this,d)}set node(s){var e;l(this,a,tt).call(this),c(this,d,s),(e=t(this,we))==null||e.call(this),t(this,d)instanceof Element&&c(this,I,[...t(this,d).querySelectorAll("store-root")]),l(this,a,et).call(this),l(this,a,Ue).call(this)}};d=new WeakMap,B=new WeakMap,S=new WeakMap,we=new WeakMap,I=new WeakMap,H=new WeakMap,a=new WeakSet,kt=function(s,e){let i=null;if(s instanceof Node)i=s;else if(typeof s=="string")if(!s.includes("<")&&s.includes("-"))i=new(customElements.get(s));else if(s.includes("<")){const n=document.createElement("div");n.innerHTML=s,i=n.firstElementChild}else ts.has(s)||e?i=document.createElementNS("http://www.w3.org/2000/svg",s):i=document.createElement(s);else i=document.createElement("div");return i},Et=function(s){return s instanceof HTMLElement||s instanceof SVGElement},xt=function(s){if(!s)return;const e=l(this,a,Et).call(this,t(this,d)),i=s.ref;delete s.ref,s!=null&&s.onConnect&&(t(this,B).add(s.onConnect),delete s.onConnect),s!=null&&s.onDisconnect&&(t(this,S).add(s.onDisconnect),delete s.onDisconnect);let n,h;for(const u in s){const g=s[u];u==="class"&&e?l(this,a,Xe).call(this,g):u==="style"&&e?l(this,a,Lt).call(this,g):u==="lightChildren"?l(this,a,qe).call(this,t(this,d),g):u==="children"?l(this,a,qe).call(this,t(this,d)instanceof Element?t(this,d).shadowRoot||t(this,d):t(this,d),g):u==="connectedClass"?t(this,B).add(()=>{requestAnimationFrame(()=>{t(this,d).classList.add(typeof g=="boolean"?"connected":g)})}):u.startsWith("on")?(h||(h={}),h[u]=g):(n||(n={}),n[u]=g)}l(this,a,Mt).call(this,n),l(this,a,Rt).call(this,h),i&&(typeof i=="function"?i(t(this,d)):i.current=t(this,d)),l(this,a,Ue).call(this)},Ue=function(){if(p.isBrowser&&(t(this,S).size||t(this,B).size)){const s=t(this,d)instanceof DocumentFragment?t(this,d).firstChild:t(this,d);c(this,we,Ut.connector.subscribe(s,{connectCallback:t(this,Ke),disconnectCallback:t(this,Oe),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},Xe=function(s){if(s){if(typeof s=="string")t(this,d).classList.add(s);else if(Array.isArray(s))s.forEach(e=>{e&&l(this,a,Xe).call(this,e)});else if(typeof s=="object")if(s instanceof m.Store)l(this,a,Ct).call(this,s);else for(const e in s){const i=s[e];i instanceof m.Store?l(this,a,Tt).call(this,e,i):i?t(this,d).classList.add(e):t(this,d).classList.remove(e)}}else return},Ct=function(s){t(this,S).add(s.subscribe(({current:e,previous:i})=>{i&&[i].flat().forEach(n=>{n&&t(this,d).classList.remove(n)}),e&&[e].flat().forEach(n=>{n&&t(this,d).classList.add(n)})}))},Tt=function(s,e){t(this,S).add(e.subscribe(({current:i})=>{i?t(this,d).classList.add(s):t(this,d).classList.remove(s)}))},Lt=function(s){if(!s)return;t(this,d).tagName==="style"||t(this,d).tagName==="STYLE"?l(this,a,Qe).call(this,s):l(this,a,zt).call(this,s)},zt=function(s){for(const e in s){const i=e,n=s[i];n instanceof m.Store?t(this,S).add(n.subscribe(({current:h})=>{l(this,a,je).call(this,i,h)})):l(this,a,je).call(this,i,n)}},Qe=function(s){for(const e in s){const i=s[e];if(typeof i=="object"&&!(i instanceof m.Store))t(this,d).appendChild(document.createTextNode(`${e} {`)),l(this,a,Qe).call(this,i),t(this,d).appendChild(document.createTextNode("}"));else if(i instanceof m.Store){const n=document.createTextNode("");t(this,S).add(i.subscribe(h=>{h.current?n.nodeValue=`${pe.camelToKebab(e)}: ${h.current};`:n.nodeValue=""})),t(this,d).appendChild(n)}else t(this,d).appendChild(document.createTextNode(`${pe.camelToKebab(e)}: ${i};`))}},je=function(s,e){s.includes("--")?e?t(this,d).style.setProperty(s,e.toString()):t(this,d).style.removeProperty(s):e?t(this,d).style[s]=e.toString():t(this,d).style[s]=""},Rt=function(s){if(s){t(this,H)||c(this,H,[]);for(const e in s){const i=e,n=pe.uncapitalize(i.split("on").slice(1).join("on")),h=s[i];typeof h=="object"?t(this,H).push({name:n,callback:h.callback,options:h.options}):typeof h=="function"&&t(this,H).push({name:n,callback:h})}l(this,a,et).call(this)}},et=function(){var s;(s=t(this,H))==null||s.forEach(e=>{t(this,d).addEventListener(e.name,e.callback,e.options)})},tt=function(){var s;(s=t(this,H))==null||s.forEach(e=>{t(this,d).removeEventListener(e.name,e.callback,e.options)})},Mt=function(s){for(const e in s){const i=s[e];i instanceof m.Store?t(this,S).add(i.subscribe(({current:n})=>{l(this,a,st).call(this,e,n)})):l(this,a,st).call(this,e,i)}},st=function(s,e){var n,h;const i=t(this,d);if(s in i&&!((h=(n=i.constructor)==null?void 0:n.observedAttributes)!=null&&h.includes(s)))e!=null&&(i[s]=e.toString());else if(e!=null){const u=e.toString();s.includes("xlink")?i.setAttributeNS("http://www.w3.org/1999/xlink",s,u):i.setAttribute(s,u)}},qe=function(s,e){e&&(e=[e].flat(),e.forEach(i=>{if(i instanceof m.Store){const n=document.createElement("div");n.style.display="contents",s.appendChild(n),t(this,I)||c(this,I,[]);const h=t(this,I).length;n.setAttribute("store-root",""),t(this,I).push(n),t(this,S).add(i.subscribe(({current:u,previous:g})=>{const E=t(this,I)[h];E.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const L=Array.from(E.childNodes),y=Array.isArray(u)?u:[u],ge=Array.isArray(g)?g:[g],De=[],C=[];L.length&&ge.forEach((F,P)=>{y.includes(F)?C.push(F):De.push(L[P])}),y.forEach((F,P)=>{if(C[P]!=null){if(F!==C[P]){const V=l(this,a,nt).call(this,F),Z=L[P];V instanceof Node&&!Z.isEqualNode(V)?E.replaceChild(V,Z):E.removeChild(Z)}}else{const V=l(this,a,nt).call(this,F);V instanceof Node&&n.appendChild(V)}}),De.forEach(F=>{E.removeChild(F)}),E.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(i instanceof Ze)l(this,a,it).call(this,s,i.node);else if(i instanceof Function)l(this,a,qe).call(this,s,bt.isESClass(i)?new i:i());else{const n=l(this,a,ot).call(this,i);n instanceof Node&&l(this,a,it).call(this,s,n)}}))},it=function(s,e){!(s instanceof ShadowRoot)&&e instanceof HTMLElement&&e.tagName==="STYLE"?(t(this,B).add(()=>{[...document.head.querySelectorAll("style")].find(n=>n.outerHTML===e.outerHTML)||document.head.appendChild(e)}),t(this,S).add(()=>{e.remove()})):s.appendChild(e)},nt=function(s){return s instanceof Ze?s.node:typeof s=="function"?bt.isESClass(s)?new s:s():l(this,a,ot).call(this,s)},ot=function(s){if(s instanceof Node)return s;if(s!=null){const e=String(s);if(e.trim().startsWith("<")&&e.trim().endsWith(">")){const i=document.createElement("div");return i.innerHTML=e,i.firstElementChild}else return document.createTextNode(e)}else return},Ke=new WeakMap,Oe=new WeakMap;let N=Ze;function w(...r){return new N(...r)}function ss(r){return new N("a",r)}function Q(r){return new N("button",r)}function v(r){return new N("div",r)}function He(r){return new N("input",r)}function At(r){return new N("label",r)}function ue(r){return new N("slot",r)}function rt(r){return new N("span",r)}function Nt(r){return new N("style",{style:r})}function x(r){const s=new CSSStyleSheet;return s.replaceSync(Nt(r).node.innerHTML),s}function is(r,s){const e=s==null?void 0:s.prefix,i={style:{}};for(const n in r)i[n]={var:`var(--${e}${pe.camelToKebab(n)})`,value:r[n]},i.style[`--${e}${pe.camelToKebab(n)}`]=r[n];return i}const f=is({colorMain:"#1c1c1c",colorMainAux:"#282828",colorFont:"#ffffff",colorActive:"#00E5B0",borderRadius:"12px",borderRadiusSmall:"4px"},{prefix:"aptechka-"});if(p.isBrowser){const r=Nt({":root":f.style}).node;r.setAttribute("data-permanent",""),document.head.appendChild(r)}const Ft='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>',$t='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>',ns='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>',os='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>',Pt=`<svg
1
+ "use strict";var wt=r=>{throw TypeError(r)};var Ge=(r,s,e)=>s.has(r)||wt("Cannot "+e);var t=(r,s,e)=>(Ge(r,s,"read from private field"),e?e.call(r):s.get(r)),o=(r,s,e)=>s.has(r)?wt("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(r):s.set(r,e),c=(r,s,e,i)=>(Ge(r,s,"write to private field"),i?i.call(r,e):s.set(r,e),e),l=(r,s,e)=>(Ge(r,s,"access private method"),e);const p=require("../index-DekP7OZe.cjs");require("construct-style-sheets-polyfill");const m=require("../Store-Cd1GlEmZ.cjs"),Yt=require("../file-DSpfWdd9.cjs"),Gt=require("../function-MthRj-GJ.cjs"),St=require("../gestures-C7gbKx11.cjs");require("../ticker/index.cjs");const pe=require("../string-DUXXtU8v.cjs"),bt=require("../object-CCiXnER2.cjs"),Ut=require("../connector/index.cjs"),Xt=require("../Viewport-DB0qAZPJ.cjs"),Qt=require("../math-GDWEqu7y.cjs"),jt=require("../number-ChAm68cm.cjs"),vt=require("../polyfills-Df4r-ETT.cjs"),yt=require("../element-resizer/index.cjs"),es=require("../style-At6aDoqG.cjs"),ts=new Set(["animate","animateMotion","animateTransform","circle","clipPath","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","foreignObject","g","image","line","linearGradient","listener","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidColor","stop","svg","switch","symbol","text","textPath","title","tspan","view","use"]);var d,B,S,we,I,H,a,kt,Et,xt,Ue,Xe,Ct,Tt,Lt,zt,Qe,je,Rt,et,tt,Mt,st,qe,it,nt,ot,Ke,Oe;const Ze=class Ze{constructor(...s){o(this,a);o(this,d,null);o(this,B,new Set);o(this,S,new Set);o(this,we);o(this,I);o(this,H);o(this,Ke,s=>{t(this,B).forEach(e=>{e(s)}),t(this,B).clear()});o(this,Oe,(s,e)=>{t(this,S).forEach(i=>{i(s,e)}),t(this,S).clear(),l(this,a,tt).call(this)});if(p.isBrowser){const e=s[0],i=s[1];c(this,d,l(this,a,kt).call(this,e,i==null?void 0:i.forceSvg)),l(this,a,xt).call(this,i)}}get node(){return t(this,d)}set node(s){var e;l(this,a,tt).call(this),c(this,d,s),(e=t(this,we))==null||e.call(this),t(this,d)instanceof Element&&c(this,I,[...t(this,d).querySelectorAll("store-root")]),l(this,a,et).call(this),l(this,a,Ue).call(this)}};d=new WeakMap,B=new WeakMap,S=new WeakMap,we=new WeakMap,I=new WeakMap,H=new WeakMap,a=new WeakSet,kt=function(s,e){let i=null;if(s instanceof Node)i=s;else if(typeof s=="string")if(!s.includes("<")&&s.includes("-"))i=new(customElements.get(s));else if(s.includes("<")){const n=document.createElement("div");n.innerHTML=s,i=n.firstElementChild}else ts.has(s)||e?i=document.createElementNS("http://www.w3.org/2000/svg",s):i=document.createElement(s);else i=document.createElement("div");return i},Et=function(s){return s instanceof HTMLElement||s instanceof SVGElement},xt=function(s){if(!s)return;const e=l(this,a,Et).call(this,t(this,d)),i=s.ref;delete s.ref,s!=null&&s.onConnect&&(t(this,B).add(s.onConnect),delete s.onConnect),s!=null&&s.onDisconnect&&(t(this,S).add(s.onDisconnect),delete s.onDisconnect);let n,h;for(const u in s){const g=s[u];u==="class"&&e?l(this,a,Xe).call(this,g):u==="style"&&e?l(this,a,Lt).call(this,g):u==="lightChildren"?l(this,a,qe).call(this,t(this,d),g):u==="children"?l(this,a,qe).call(this,t(this,d)instanceof Element?t(this,d).shadowRoot||t(this,d):t(this,d),g):u==="connectedClass"?t(this,B).add(()=>{requestAnimationFrame(()=>{t(this,d).classList.add(typeof g=="boolean"?"connected":g)})}):u.startsWith("on")?(h||(h={}),h[u]=g):(n||(n={}),n[u]=g)}l(this,a,Mt).call(this,n),l(this,a,Rt).call(this,h),i&&(typeof i=="function"?i(t(this,d)):i.current=t(this,d)),l(this,a,Ue).call(this)},Ue=function(){if(p.isBrowser&&(t(this,S).size||t(this,B).size)){const s=t(this,d)instanceof DocumentFragment?t(this,d).firstChild:t(this,d);c(this,we,Ut.connector.subscribe(s,{connectCallback:t(this,Ke),disconnectCallback:t(this,Oe),unsubscribeAfterDisconnect:!0,maxWaitSec:20}))}},Xe=function(s){if(s){if(typeof s=="string")t(this,d).classList.add(s);else if(Array.isArray(s))s.forEach(e=>{e&&l(this,a,Xe).call(this,e)});else if(typeof s=="object")if(s instanceof m.Store)l(this,a,Ct).call(this,s);else for(const e in s){const i=s[e];i instanceof m.Store?l(this,a,Tt).call(this,e,i):i?t(this,d).classList.add(e):t(this,d).classList.remove(e)}}else return},Ct=function(s){t(this,S).add(s.subscribe(({current:e,previous:i})=>{i&&[i].flat().forEach(n=>{n&&t(this,d).classList.remove(n)}),e&&[e].flat().forEach(n=>{n&&t(this,d).classList.add(n)})}))},Tt=function(s,e){t(this,S).add(e.subscribe(({current:i})=>{i?t(this,d).classList.add(s):t(this,d).classList.remove(s)}))},Lt=function(s){if(!s)return;t(this,d).tagName==="style"||t(this,d).tagName==="STYLE"?l(this,a,Qe).call(this,s):l(this,a,zt).call(this,s)},zt=function(s){for(const e in s){const i=e,n=s[i];n instanceof m.Store?t(this,S).add(n.subscribe(({current:h})=>{l(this,a,je).call(this,i,h)})):l(this,a,je).call(this,i,n)}},Qe=function(s){for(const e in s){const i=s[e];if(typeof i=="object"&&!(i instanceof m.Store))t(this,d).appendChild(document.createTextNode(`${e} {`)),l(this,a,Qe).call(this,i),t(this,d).appendChild(document.createTextNode("}"));else if(i instanceof m.Store){const n=document.createTextNode("");t(this,S).add(i.subscribe(h=>{h.current?n.nodeValue=`${pe.camelToKebab(e)}: ${h.current};`:n.nodeValue=""})),t(this,d).appendChild(n)}else t(this,d).appendChild(document.createTextNode(`${pe.camelToKebab(e)}: ${i};`))}},je=function(s,e){s.includes("--")?e?t(this,d).style.setProperty(s,e.toString()):t(this,d).style.removeProperty(s):e?t(this,d).style[s]=e.toString():t(this,d).style[s]=""},Rt=function(s){if(s){t(this,H)||c(this,H,[]);for(const e in s){const i=e,n=pe.uncapitalize(i.split("on").slice(1).join("on")),h=s[i];typeof h=="object"?t(this,H).push({name:n,callback:h.callback,options:h.options}):typeof h=="function"&&t(this,H).push({name:n,callback:h})}l(this,a,et).call(this)}},et=function(){var s;(s=t(this,H))==null||s.forEach(e=>{t(this,d).addEventListener(e.name,e.callback,e.options)})},tt=function(){var s;(s=t(this,H))==null||s.forEach(e=>{t(this,d).removeEventListener(e.name,e.callback,e.options)})},Mt=function(s){for(const e in s){const i=s[e];i instanceof m.Store?t(this,S).add(i.subscribe(({current:n})=>{l(this,a,st).call(this,e,n)})):l(this,a,st).call(this,e,i)}},st=function(s,e){var n,h;const i=t(this,d);if(s in i&&!((h=(n=i.constructor)==null?void 0:n.observedAttributes)!=null&&h.includes(s)))e!=null&&(i[s]=e.toString());else if(e!=null){const u=e.toString();s.includes("xlink")?i.setAttributeNS("http://www.w3.org/1999/xlink",s,u):i.setAttribute(s,u)}},qe=function(s,e){e&&(e=[e].flat(),e.forEach(i=>{if(i instanceof m.Store){const n=document.createElement("div");n.style.display="contents",s.appendChild(n),t(this,I)||c(this,I,[]);const h=t(this,I).length;n.setAttribute("store-root",""),t(this,I).push(n),t(this,S).add(i.subscribe(({current:u,previous:g})=>{const E=t(this,I)[h];E.dispatchEvent(new CustomEvent("beforeChildrenChange",{bubbles:!0,composed:!0}));const L=Array.from(E.childNodes),y=Array.isArray(u)?u:[u],ge=Array.isArray(g)?g:[g],De=[],C=[];L.length&&ge.forEach((F,P)=>{y.includes(F)?C.push(F):De.push(L[P])}),y.forEach((F,P)=>{if(C[P]!=null){if(F!==C[P]){const V=l(this,a,nt).call(this,F),Z=L[P];V instanceof Node&&!Z.isEqualNode(V)?E.replaceChild(V,Z):E.removeChild(Z)}}else{const V=l(this,a,nt).call(this,F);V instanceof Node&&n.appendChild(V)}}),De.forEach(F=>{E.removeChild(F)}),E.dispatchEvent(new CustomEvent("afterChildrenChange",{bubbles:!0,composed:!0}))}))}else if(i instanceof Ze)l(this,a,it).call(this,s,i.node);else if(i instanceof Function)l(this,a,qe).call(this,s,bt.isESClass(i)?new i:i());else{const n=l(this,a,ot).call(this,i);n instanceof Node&&l(this,a,it).call(this,s,n)}}))},it=function(s,e){!(s instanceof ShadowRoot)&&e instanceof HTMLElement&&e.tagName==="STYLE"?(t(this,B).add(()=>{[...document.head.querySelectorAll("style")].find(n=>n.outerHTML===e.outerHTML)||document.head.appendChild(e)}),t(this,S).add(()=>{e.remove()})):s.appendChild(e)},nt=function(s){return s instanceof Ze?s.node:typeof s=="function"?bt.isESClass(s)?new s:s():l(this,a,ot).call(this,s)},ot=function(s){if(s instanceof Node)return s;if(s!=null){const e=String(s);if(e.trim().startsWith("<")&&e.trim().endsWith(">")){const i=document.createElement("div");return i.innerHTML=e,i.firstElementChild}else return document.createTextNode(e)}else return},Ke=new WeakMap,Oe=new WeakMap;let N=Ze;function w(...r){return new N(...r)}function ss(r){return new N("a",r)}function Q(r){return new N("button",r)}function v(r){return new N("div",r)}function He(r){return new N("input",r)}function At(r){return new N("label",r)}function ue(r){return new N("slot",r)}function rt(r){return new N("span",r)}function Nt(r){return new N("style",{style:r})}function x(r){const s=new CSSStyleSheet;return s.replaceSync(Nt(r).node.innerHTML),s}function is(r,s){const e=s==null?void 0:s.prefix,i={style:{}};for(const n in r)i[n]={var:`var(--${e}${pe.camelToKebab(n)})`,value:r[n]},i.style[`--${e}${pe.camelToKebab(n)}`]=r[n];return i}const f=is({colorMain:"#1c1c1c",colorMainAux:"#282828",colorFont:"#ffffff",colorActive:"#00E5B0",borderRadius:"12px",borderRadiusSmall:"4px"},{prefix:"aptechka-"});if(p.isBrowser){const r=Nt({":root":f.style}).node;r.setAttribute("data-permanent",""),document.head.appendChild(r)}const Ft='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M20.536 3.464C19.07 2 16.714 2 12 2C7.286 2 4.929 2 3.464 3.464C2 4.93 2 7.286 2 12c0 4.714 0 7.071 1.464 8.535C4.93 22 7.286 22 12 22c4.714 0 7.071 0 8.535-1.465C22 19.072 22 16.714 22 12s0-7.071-1.465-8.536M16.75 12a.75.75 0 0 1-.75.75H9.81l1.72 1.72a.75.75 0 1 1-1.06 1.06l-3-3a.75.75 0 0 1 0-1.06l3-3a.75.75 0 1 1 1.06 1.06l-1.72 1.72H16a.75.75 0 0 1 .75.75" clip-rule="evenodd"/></svg>',$t='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path d="M15.24 2h-3.894c-1.764 0-3.162 0-4.255.148c-1.126.152-2.037.472-2.755 1.193c-.719.721-1.038 1.636-1.189 2.766C3 7.205 3 8.608 3 10.379v5.838c0 1.508.92 2.8 2.227 3.342c-.067-.91-.067-2.185-.067-3.247v-5.01c0-1.281 0-2.386.118-3.27c.127-.948.413-1.856 1.147-2.593c.734-.737 1.639-1.024 2.583-1.152c.88-.118 1.98-.118 3.257-.118h3.07c1.276 0 2.374 0 3.255.118A3.601 3.601 0 0 0 15.24 2Z"/><path d="M6.6 11.397c0-2.726 0-4.089.844-4.936c.843-.847 2.2-.847 4.916-.847h2.88c2.715 0 4.073 0 4.917.847c.843.847.843 2.21.843 4.936v4.82c0 2.726 0 4.089-.843 4.936c-.844.847-2.202.847-4.917.847h-2.88c-2.715 0-4.073 0-4.916-.847c-.844-.847-.844-2.21-.844-4.936v-4.82Z"/></svg>',ns='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10-5.75a.75.75 0 0 1 .75.75v5.19l1.72-1.72a.75.75 0 1 1 1.06 1.06l-3 3a.75.75 0 0 1-1.06 0l-3-3a.75.75 0 1 1 1.06-1.06l1.72 1.72V7a.75.75 0 0 1 .75-.75Zm-4 10a.75.75 0 0 0 0 1.5h8a.75.75 0 0 0 0-1.5H8Z" clip-rule="evenodd"/></svg>',os='<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><path fill-rule="evenodd" d="M2 12c0-4.714 0-7.071 1.464-8.536C4.93 2 7.286 2 12 2c4.714 0 7.071 0 8.535 1.464C22 4.93 22 7.286 22 12c0 4.714 0 7.071-1.465 8.535C19.072 22 16.714 22 12 22s-7.071 0-8.536-1.465C2 19.072 2 16.714 2 12Zm10 5.75a.75.75 0 0 0 .75-.75v-5.19l1.72 1.72a.75.75 0 1 0 1.06-1.06l-3-3a.75.75 0 0 0-1.06 0l-3 3a.75.75 0 1 0 1.06 1.06l1.72-1.72V17c0 .414.336.75.75.75Zm-4-10a.75.75 0 0 1 0-1.5h8a.75.75 0 0 1 0 1.5H8Z" clip-rule="evenodd"/></svg>',Pt=`<svg
2
2
  xmlns="http://www.w3.org/2000/svg"
3
3
  width="32"
4
4
  height="32"
@@ -15,7 +15,7 @@ import { i as yt } from "../object-D6MVWB4l.js";
15
15
  import { connector as jt } from "../connector/index.js";
16
16
  import { a as es } from "../Viewport-DA10iWAO.js";
17
17
  import { c as ts } from "../math-BOBiC4TN.js";
18
- import { t as ss } from "../number-CbdpfO3u.js";
18
+ import { t as ss } from "../number-CumqY64S.js";
19
19
  import { n as St } from "../polyfills-DJrTJQky.js";
20
20
  import { elementResizer as kt } from "../element-resizer/index.js";
21
21
  import { g as is } from "../style-j2TwriJ_.js";
@@ -0,0 +1 @@
1
+ "use strict";const c=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10];function l(t,e=5){return Math.round(t*c[e])/c[e]}function r(t,e){return Math.round(t/e)*e}function n(t,e){var s;const i=((s=e.toString().split(".")[1])==null?void 0:s.length)||0;return i?+t.toFixed(i):Math.ceil(t)}function o(t,e){return t=t%e,t=t<0?e+t:t,t}function $(t){t=t.toString().replace(/\s/g,""),t=Math.ceil(+t),t=t.toString();const e=t.trim();let i="";return e.length===4?i=`${e.slice(0,1)} ${e.slice(1)}`:e.length===5?i=`${e.slice(0,2)} ${e.slice(2)}`:e.length===6?i=`${e.slice(0,3)} ${e.slice(3)}`:e.length===7?i=`${e.slice(0,1)} ${e.slice(1,4)} ${e.slice(4)}`:e.length===8?i=`${e.slice(0,2)} ${e.slice(2,5)} ${e.slice(5)}`:e.length===9?i=`${e.slice(0,3)} ${e.slice(3,6)} ${e.slice(6)}`:i=e,i}exports.beautifyNumber=$;exports.loopNumber=o;exports.preciseNumber=l;exports.roundNumberTo=r;exports.toStep=n;
@@ -0,0 +1,40 @@
1
+ const l = [
2
+ 1,
3
+ 10,
4
+ 100,
5
+ 1e3,
6
+ 1e4,
7
+ 1e5,
8
+ 1e6,
9
+ 1e7,
10
+ 1e8,
11
+ 1e9,
12
+ 1e10
13
+ ];
14
+ function c(t, e = 5) {
15
+ return Math.round(t * l[e]) / l[e];
16
+ }
17
+ function n(t, e) {
18
+ return Math.round(t / e) * e;
19
+ }
20
+ function r(t, e) {
21
+ var s;
22
+ const i = ((s = e.toString().split(".")[1]) == null ? void 0 : s.length) || 0;
23
+ return i ? +t.toFixed(i) : Math.ceil(t);
24
+ }
25
+ function o(t, e) {
26
+ return t = t % e, t = t < 0 ? e + t : t, t;
27
+ }
28
+ function $(t) {
29
+ t = t.toString().replace(/\s/g, ""), t = Math.ceil(+t), t = t.toString();
30
+ const e = t.trim();
31
+ let i = "";
32
+ return e.length === 4 ? i = `${e.slice(0, 1)} ${e.slice(1)}` : e.length === 5 ? i = `${e.slice(0, 2)} ${e.slice(2)}` : e.length === 6 ? i = `${e.slice(0, 3)} ${e.slice(3)}` : e.length === 7 ? i = `${e.slice(0, 1)} ${e.slice(1, 4)} ${e.slice(4)}` : e.length === 8 ? i = `${e.slice(0, 2)} ${e.slice(2, 5)} ${e.slice(5)}` : e.length === 9 ? i = `${e.slice(0, 3)} ${e.slice(3, 6)} ${e.slice(6)}` : i = e, i;
33
+ }
34
+ export {
35
+ $ as b,
36
+ o as l,
37
+ c as p,
38
+ n as r,
39
+ r as t
40
+ };