aptechka 0.4.10 → 0.4.12

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 (52) hide show
  1. package/lib/Damped-BdnkNOcb.cjs +1 -0
  2. package/lib/Damped-Ceg1a3X8.js +150 -0
  3. package/lib/{DragControls-CZhJHO0_.js → DragControls-BbznoEAb.js} +18 -18
  4. package/lib/DragControls-CdRWoO3y.cjs +1 -0
  5. package/lib/animation/Animation.d.ts +23 -0
  6. package/lib/animation/Damped.d.ts +15 -12
  7. package/lib/animation/Tweened.d.ts +9 -11
  8. package/lib/animation/index.cjs +1 -1
  9. package/lib/animation/index.d.ts +1 -1
  10. package/lib/animation/index.js +49 -75
  11. package/lib/canvas/index.cjs +1 -1
  12. package/lib/canvas/index.js +2 -2
  13. package/lib/checkbox/index.cjs +1 -1
  14. package/lib/checkbox/index.js +2 -2
  15. package/lib/controls/index.cjs +1 -1
  16. package/lib/controls/index.js +2 -2
  17. package/lib/{createStylesheet-W0b965g0.cjs → createStylesheet-CqHU9_qv.cjs} +1 -1
  18. package/lib/{createStylesheet-D6C3BPkl.js → createStylesheet-DBCEbDjI.js} +1 -1
  19. package/lib/element-constructor/index.cjs +1 -1
  20. package/lib/element-constructor/index.js +2 -2
  21. package/lib/{index-ilQWX_BM.js → index-BUOBDenR.js} +2 -2
  22. package/lib/{index-C_qv6rk4.cjs → index-Bv5vIuF-.cjs} +1 -1
  23. package/lib/layout-box/index.cjs +1 -1
  24. package/lib/layout-box/index.js +145 -137
  25. package/lib/modal/index.cjs +1 -1
  26. package/lib/modal/index.js +2 -2
  27. package/lib/{object-BZELAoVj.cjs → object-CCiXnER2.cjs} +1 -1
  28. package/lib/{object-R34VLqhp.js → object-D6MVWB4l.js} +8 -8
  29. package/lib/popover/index.cjs +1 -1
  30. package/lib/popover/index.js +2 -2
  31. package/lib/router/index.cjs +1 -1
  32. package/lib/router/index.js +1 -1
  33. package/lib/scroll/ScrollElement.d.ts +2 -0
  34. package/lib/scroll/index.cjs +1 -1
  35. package/lib/scroll/index.js +473 -453
  36. package/lib/scroll-entries/index.cjs +1 -1
  37. package/lib/scroll-entries/index.d.ts +3 -0
  38. package/lib/scroll-entries/index.js +18 -13
  39. package/lib/select/index.cjs +1 -1
  40. package/lib/select/index.js +1 -1
  41. package/lib/{tags-D0zt3vue.js → tags-CMPg9ETZ.js} +1 -1
  42. package/lib/{tags-CK7mk_EP.cjs → tags-Djb6mb1o.cjs} +1 -1
  43. package/lib/theme/index.cjs +1 -1
  44. package/lib/theme/index.js +1 -1
  45. package/lib/tweaker/index.cjs +1 -1
  46. package/lib/tweaker/index.js +3 -3
  47. package/lib/utils/index.cjs +1 -1
  48. package/lib/utils/index.js +1 -1
  49. package/package.json +1 -1
  50. package/lib/Damped-9h4qaGcS.cjs +0 -1
  51. package/lib/Damped-HhitpTP_.js +0 -132
  52. package/lib/DragControls-C7P6P5HO.cjs +0 -1
@@ -1 +1 @@
1
- "use strict";var a=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var n=(r,t,e)=>(a(r,t,"read from private field"),e?e.call(r):t.get(r)),l=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../DragControls-C7P6P5HO.cjs"),i=require("../ticker/index.cjs");var s;class c extends o.Controls{constructor(e){super();l(this,s,e=>{this.changeEvent.notify("linear",e.elapsed*this.speed)});this.speed=(e==null?void 0:e.speed)||1}connect(){i.ticker.subscribe(n(this,s))}disconnect(){i.ticker.unsubscribe(n(this,s))}}s=new WeakMap;exports.Controls=o.Controls;exports.DragControls=o.DragControls;exports.KeyboardControls=o.KeyboardControls;exports.WheelControls=o.WheelControls;exports.LinearControls=c;
1
+ "use strict";var a=(r,t,e)=>{if(!t.has(r))throw TypeError("Cannot "+e)};var n=(r,t,e)=>(a(r,t,"read from private field"),e?e.call(r):t.get(r)),l=(r,t,e)=>{if(t.has(r))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(r):t.set(r,e)};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../DragControls-CdRWoO3y.cjs"),i=require("../ticker/index.cjs");var s;class c extends o.Controls{constructor(e){super();l(this,s,e=>{this.changeEvent.notify("linear",e.elapsed*this.speed)});this.speed=(e==null?void 0:e.speed)||1}connect(){i.ticker.subscribe(n(this,s))}disconnect(){i.ticker.unsubscribe(n(this,s))}}s=new WeakMap;exports.Controls=o.Controls;exports.DragControls=o.DragControls;exports.KeyboardControls=o.KeyboardControls;exports.WheelControls=o.WheelControls;exports.LinearControls=c;
@@ -7,8 +7,8 @@ var a = (s, r, e) => (c(s, r, "read from private field"), e ? e.call(s) : r.get(
7
7
  throw TypeError("Cannot add the same private member more than once");
8
8
  r instanceof WeakSet ? r.add(s) : r.set(s, e);
9
9
  };
10
- import { C as i } from "../DragControls-CZhJHO0_.js";
11
- import { D as p, K as u, W as f } from "../DragControls-CZhJHO0_.js";
10
+ import { C as i } from "../DragControls-BbznoEAb.js";
11
+ import { D as p, K as u, W as f } from "../DragControls-BbznoEAb.js";
12
12
  import { ticker as n } from "../ticker/index.js";
13
13
  var t;
14
14
  class m extends i {
@@ -1 +1 @@
1
- "use strict";const n=require("./tags-CK7mk_EP.cjs");function r(t){const e=new CSSStyleSheet;return e.replaceSync(n.style(t).node.innerHTML),e}exports.createStylesheet=r;
1
+ "use strict";const n=require("./tags-Djb6mb1o.cjs");function r(t){const e=new CSSStyleSheet;return e.replaceSync(n.style(t).node.innerHTML),e}exports.createStylesheet=r;
@@ -1,4 +1,4 @@
1
- import { aD as n } from "./tags-D0zt3vue.js";
1
+ import { aD as n } from "./tags-CMPg9ETZ.js";
2
2
  function c(t) {
3
3
  const e = new CSSStyleSheet();
4
4
  return e.replaceSync(n(t).node.innerHTML), e;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../tags-CK7mk_EP.cjs"),t=require("../createStylesheet-W0b965g0.cjs"),a=require("../createTheme-Cfaw9UmV.cjs");exports.ElementConstructor=e.ElementConstructor;exports.a=e.a;exports.abbr=e.abbr;exports.address=e.address;exports.area=e.area;exports.article=e.article;exports.aside=e.aside;exports.audio=e.audio;exports.b=e.b;exports.base=e.base;exports.bdi=e.bdi;exports.bdo=e.bdo;exports.blockquote=e.blockquote;exports.body=e.body;exports.br=e.br;exports.button=e.button;exports.canvas=e.canvas;exports.caption=e.caption;exports.cite=e.cite;exports.code=e.code;exports.col=e.col;exports.colgroup=e.colgroup;exports.contents=e.contents;exports.data=e.data;exports.datalist=e.datalist;exports.dd=e.dd;exports.del=e.del;exports.details=e.details;exports.dfn=e.dfn;exports.dialog=e.dialog;exports.div=e.div;exports.dl=e.dl;exports.dt=e.dt;exports.element=e.element;exports.em=e.em;exports.embed=e.embed;exports.empty=e.empty;exports.fieldset=e.fieldset;exports.figcaption=e.figcaption;exports.figure=e.figure;exports.footer=e.footer;exports.form=e.form;exports.fragment=e.fragment;exports.h1=e.h1;exports.h2=e.h2;exports.h3=e.h3;exports.h4=e.h4;exports.h5=e.h5;exports.h6=e.h6;exports.head=e.head;exports.header=e.header;exports.hgroup=e.hgroup;exports.hr=e.hr;exports.html=e.html;exports.htmlVar=e.htmlVar;exports.i=e.i;exports.iframe=e.iframe;exports.img=e.img;exports.input=e.input;exports.ins=e.ins;exports.kbd=e.kbd;exports.label=e.label;exports.legend=e.legend;exports.li=e.li;exports.link=e.link;exports.main=e.main;exports.map=e.map;exports.mark=e.mark;exports.menu=e.menu;exports.meta=e.meta;exports.meter=e.meter;exports.nav=e.nav;exports.noscript=e.noscript;exports.object=e.object;exports.ol=e.ol;exports.optgroup=e.optgroup;exports.option=e.option;exports.output=e.output;exports.p=e.p;exports.picture=e.picture;exports.pre=e.pre;exports.progress=e.progress;exports.q=e.q;exports.rp=e.rp;exports.rt=e.rt;exports.ruby=e.ruby;exports.s=e.s;exports.samp=e.samp;exports.script=e.script;exports.search=e.search;exports.section=e.section;exports.select=e.select;exports.slot=e.slot;exports.small=e.small;exports.source=e.source;exports.span=e.span;exports.strong=e.strong;exports.style=e.style;exports.sub=e.sub;exports.summary=e.summary;exports.sup=e.sup;exports.table=e.table;exports.tbody=e.tbody;exports.td=e.td;exports.template=e.template;exports.textarea=e.textarea;exports.tfoot=e.tfoot;exports.th=e.th;exports.thead=e.thead;exports.time=e.time;exports.title=e.title;exports.tr=e.tr;exports.track=e.track;exports.u=e.u;exports.ul=e.ul;exports.video=e.video;exports.wbr=e.wbr;exports.createStylesheet=t.createStylesheet;exports.createTheme=a.createTheme;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../tags-Djb6mb1o.cjs"),t=require("../createStylesheet-CqHU9_qv.cjs"),a=require("../createTheme-Cfaw9UmV.cjs");exports.ElementConstructor=e.ElementConstructor;exports.a=e.a;exports.abbr=e.abbr;exports.address=e.address;exports.area=e.area;exports.article=e.article;exports.aside=e.aside;exports.audio=e.audio;exports.b=e.b;exports.base=e.base;exports.bdi=e.bdi;exports.bdo=e.bdo;exports.blockquote=e.blockquote;exports.body=e.body;exports.br=e.br;exports.button=e.button;exports.canvas=e.canvas;exports.caption=e.caption;exports.cite=e.cite;exports.code=e.code;exports.col=e.col;exports.colgroup=e.colgroup;exports.contents=e.contents;exports.data=e.data;exports.datalist=e.datalist;exports.dd=e.dd;exports.del=e.del;exports.details=e.details;exports.dfn=e.dfn;exports.dialog=e.dialog;exports.div=e.div;exports.dl=e.dl;exports.dt=e.dt;exports.element=e.element;exports.em=e.em;exports.embed=e.embed;exports.empty=e.empty;exports.fieldset=e.fieldset;exports.figcaption=e.figcaption;exports.figure=e.figure;exports.footer=e.footer;exports.form=e.form;exports.fragment=e.fragment;exports.h1=e.h1;exports.h2=e.h2;exports.h3=e.h3;exports.h4=e.h4;exports.h5=e.h5;exports.h6=e.h6;exports.head=e.head;exports.header=e.header;exports.hgroup=e.hgroup;exports.hr=e.hr;exports.html=e.html;exports.htmlVar=e.htmlVar;exports.i=e.i;exports.iframe=e.iframe;exports.img=e.img;exports.input=e.input;exports.ins=e.ins;exports.kbd=e.kbd;exports.label=e.label;exports.legend=e.legend;exports.li=e.li;exports.link=e.link;exports.main=e.main;exports.map=e.map;exports.mark=e.mark;exports.menu=e.menu;exports.meta=e.meta;exports.meter=e.meter;exports.nav=e.nav;exports.noscript=e.noscript;exports.object=e.object;exports.ol=e.ol;exports.optgroup=e.optgroup;exports.option=e.option;exports.output=e.output;exports.p=e.p;exports.picture=e.picture;exports.pre=e.pre;exports.progress=e.progress;exports.q=e.q;exports.rp=e.rp;exports.rt=e.rt;exports.ruby=e.ruby;exports.s=e.s;exports.samp=e.samp;exports.script=e.script;exports.search=e.search;exports.section=e.section;exports.select=e.select;exports.slot=e.slot;exports.small=e.small;exports.source=e.source;exports.span=e.span;exports.strong=e.strong;exports.style=e.style;exports.sub=e.sub;exports.summary=e.summary;exports.sup=e.sup;exports.table=e.table;exports.tbody=e.tbody;exports.td=e.td;exports.template=e.template;exports.textarea=e.textarea;exports.tfoot=e.tfoot;exports.th=e.th;exports.thead=e.thead;exports.time=e.time;exports.title=e.title;exports.tr=e.tr;exports.track=e.track;exports.u=e.u;exports.ul=e.ul;exports.video=e.video;exports.wbr=e.wbr;exports.createStylesheet=t.createStylesheet;exports.createTheme=a.createTheme;
@@ -1,5 +1,5 @@
1
- import { E as e, a as t, b as r, c as o, d as i, f as l, g as d, h as m, i as p, j as c, k as n, l as u, m as b, n as h, o as f, p as g, q as y, r as k, s as v, t as x, u as q, v as j, a_ as w, w as C, x as E, y as S, z as T, A as V, B as z, C as A, D as B, F as D, G as F, e as G, H, I, aZ as J, J as K, K as L, L as M, M as N, N as O, aY as P, O as Q, P as R, Q as U, R as W, S as X, T as Y, U as Z, V as _, W as $, X as aa, Y as sa, aV as ea, Z as ta, _ as ra, $ as oa, a0 as ia, a1 as la, a2 as da, a3 as ma, a4 as pa, a5 as ca, a6 as na, a7 as ua, a8 as ba, a9 as ha, aa as fa, ab as ga, ac as ya, ad as ka, ae as va, af as xa, ag as qa, ah as ja, ai as wa, aj as Ca, ak as Ea, al as Sa, am as Ta, an as Va, ao as za, ap as Aa, aq as Ba, ar as Da, as as Fa, at as Ga, au as Ha, av as Ia, aw as Ja, ax as Ka, ay as La, az as Ma, aA as Na, aB as Oa, aC as Pa, aD as Qa, aE as Ra, aF as Ua, aG as Wa, aH as Xa, aI as Ya, aJ as Za, aK as _a, aL as $a, aM as as, aN as ss, aO as es, aP as ts, aQ as rs, aR as os, aS as is, aT as ls, aU as ds, aW as ms, aX as ps } from "../tags-D0zt3vue.js";
2
- import { c as ns } from "../createStylesheet-D6C3BPkl.js";
1
+ import { E as e, a as t, b as r, c as o, d as i, f as l, g as d, h as m, i as p, j as c, k as n, l as u, m as b, n as h, o as f, p as g, q as y, r as k, s as v, t as x, u as q, v as j, a_ as w, w as C, x as E, y as S, z as T, A as V, B as z, C as A, D as B, F as D, G as F, e as G, H, I, aZ as J, J as K, K as L, L as M, M as N, N as O, aY as P, O as Q, P as R, Q as U, R as W, S as X, T as Y, U as Z, V as _, W as $, X as aa, Y as sa, aV as ea, Z as ta, _ as ra, $ as oa, a0 as ia, a1 as la, a2 as da, a3 as ma, a4 as pa, a5 as ca, a6 as na, a7 as ua, a8 as ba, a9 as ha, aa as fa, ab as ga, ac as ya, ad as ka, ae as va, af as xa, ag as qa, ah as ja, ai as wa, aj as Ca, ak as Ea, al as Sa, am as Ta, an as Va, ao as za, ap as Aa, aq as Ba, ar as Da, as as Fa, at as Ga, au as Ha, av as Ia, aw as Ja, ax as Ka, ay as La, az as Ma, aA as Na, aB as Oa, aC as Pa, aD as Qa, aE as Ra, aF as Ua, aG as Wa, aH as Xa, aI as Ya, aJ as Za, aK as _a, aL as $a, aM as as, aN as ss, aO as es, aP as ts, aQ as rs, aR as os, aS as is, aT as ls, aU as ds, aW as ms, aX as ps } from "../tags-CMPg9ETZ.js";
2
+ import { c as ns } from "../createStylesheet-DBCEbDjI.js";
3
3
  import { c as bs } from "../createTheme-CHnsCgAr.js";
4
4
  export {
5
5
  e as ElementConstructor,
@@ -12,8 +12,8 @@ import "./Store-BQXXikps.js";
12
12
  import { i as P } from "./browser-0zX67oeU.js";
13
13
  import { d as Q } from "./events-_C2CztxR.js";
14
14
  import { g as X } from "./style-j2TwriJ_.js";
15
- import { e as k, p as V, ay as E, D as R } from "./tags-D0zt3vue.js";
16
- import { c as D } from "./createStylesheet-D6C3BPkl.js";
15
+ import { e as k, p as V, ay as E, D as R } from "./tags-CMPg9ETZ.js";
16
+ import { c as D } from "./createStylesheet-DBCEbDjI.js";
17
17
  import { aptechkaTheme as w } from "./theme/index.js";
18
18
  var j = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, te = (t, e, s, i) => {
19
19
  for (var n = i > 1 ? void 0 : i ? ee(e, s) : e, r = t.length - 1, l; r >= 0; r--)
@@ -1,4 +1,4 @@
1
- "use strict";var D=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var z=(t,e,s)=>(D(t,e,"read from private field"),s?s.call(t):e.get(t)),A=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},H=(t,e,s,i)=>(D(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s);const S=require("./custom-element/index.cjs");require("./Store-C-1ruEIm.cjs");const W=require("./browser-CpzFX2xg.cjs"),N=require("./events-Crwi8fz6.cjs"),V=require("./style-At6aDoqG.cjs"),a=require("./tags-CK7mk_EP.cjs"),M=require("./createStylesheet-W0b965g0.cjs"),E=require("./theme/index.cjs");var Y=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,J=(t,e,s,i)=>{for(var n=i>1?void 0:i?Z(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&Y(e,s,n),n},P=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},r=(t,e,s)=>(P(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},d=(t,e,s,i)=>(P(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),I=(t,e,s)=>(P(t,e,"access private method"),s),u,f,o,v,m,g,$,C,b;const K=M.createStylesheet({":host":{position:"relative"},".head":{width:"100%",cursor:"default",background:"none",border:"none",color:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",textAlign:"start",padding:"0",margin:"0"},".body":{boxSizing:"border-box",position:"var(--position, unset)",top:"100%",left:"0",width:"100%",overflow:"hidden",transitionDuration:`var(--duration, ${E.aptechkaTheme.durationShort.var})`,transitionProperty:"height",cursor:"default"},".body-inner":{display:"grid",gap:"var(--gap, 0px)",width:"100%",paddingTop:"var(--gap, 0px)"}});exports.SelectElement=class extends S.CustomElement{constructor(){super(),c(this,C),c(this,u,null),c(this,f,""),c(this,o,null),c(this,v,!1),c(this,m,void 0),c(this,g,null),c(this,$,()=>{N.dispatchSizeChangeEvent(this)}),W.isBrowser&&(this.openShadow(K),d(this,u,this.attachInternals()),d(this,g,new ResizeObserver(r(this,$))),a.element(this,{children:[a.button({class:"head",children:a.slot({name:"head"}),onClick:()=>{this.opened?this.close():this.open()}}),a.div({class:"body",style:{height:"0px"},children:a.div({class:"body-inner",children:a.slot()}),ref:e=>{d(this,o,e)}})]}))}get value(){return r(this,f)}set value(e){d(this,f,e),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),r(this,u).setFormValue(r(this,f))}get internals(){return r(this,u)}get opened(){return r(this,v)}open(){clearTimeout(r(this,m)),d(this,v,!0),r(this,o).style.display="grid",this.classList.add("triggered"),setTimeout(()=>{this.classList.add("opened"),r(this,o).style.height=r(this,o).scrollHeight+"px",I(this,C,b).call(this)},0)}close(){d(this,v,!1),r(this,o).style.height="0px",this.classList.remove("opened"),I(this,C,b).call(this),d(this,m,setTimeout(()=>{this.classList.remove("triggered"),r(this,o).style.display="none"},V.getElementTransitionDurationMS(r(this,o))))}connectedCallback(){r(this,g).observe(r(this,o))}disconnectedCallback(){clearTimeout(r(this,m)),r(this,g).disconnect()}};u=new WeakMap;f=new WeakMap;o=new WeakMap;v=new WeakMap;m=new WeakMap;g=new WeakMap;$=new WeakMap;C=new WeakSet;b=function(){this.dispatchEvent(new CustomEvent("selectToggle",{bubbles:!0,composed:!0,detail:{opened:r(this,v)}}))};exports.SelectElement.formAssociated=!0;exports.SelectElement=J([S.define("e-select")],exports.SelectElement);var y;class q extends S.CustomElement{constructor(){super(...arguments);A(this,y,null)}get selectElement(){return z(this,y)}connectedCallback(){var i,n;const s=(n=(i=this.assignedSlot)==null?void 0:i.getRootNode())==null?void 0:n.host;s?H(this,y,s):console.log(this,"e-select not found")}}y=new WeakMap;var Q=Object.defineProperty,X=Object.getOwnPropertyDescriptor,j=(t,e,s,i)=>{for(var n=i>1?void 0:i?X(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&Q(e,s,n),n},G=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},x=(t,e,s)=>(G(t,e,"read from private field"),s?s.call(t):e.get(t)),B=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},ee=(t,e,s)=>(G(t,e,"access private method"),s),w,L,R;const te=M.createStylesheet({":host":{width:"100%",height:E.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center"},button:{all:"inherit"}});exports.SelectOptionElement=class extends q{constructor(){super(),B(this,L),B(this,w,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""}),W.isBrowser&&(this.openShadow(te),a.element(this,{children:[a.button({onClick:()=>{ee(this,L,R).call(this)},children:a.slot()})]}))}get value(){return(this.hasAttribute("value")?this.getAttribute("value"):this.innerText)||""}connectedCallback(){super.connectedCallback(),this.hasAttribute("default")&&(this.selectElement.value||(this.selectElement.value=this.value)),this.selectElement.addEventListener("change",x(this,w)),setTimeout(()=>{x(this,w).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",x(this,w))}};w=new WeakMap;L=new WeakSet;R=function(){this.selectElement.value=this.value,this.selectElement.close()};exports.SelectOptionElement=j([S.define("e-select-option")],exports.SelectOptionElement);const F=`<svg
1
+ "use strict";var D=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)};var z=(t,e,s)=>(D(t,e,"read from private field"),s?s.call(t):e.get(t)),A=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},H=(t,e,s,i)=>(D(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s);const S=require("./custom-element/index.cjs");require("./Store-C-1ruEIm.cjs");const W=require("./browser-CpzFX2xg.cjs"),N=require("./events-Crwi8fz6.cjs"),V=require("./style-At6aDoqG.cjs"),a=require("./tags-Djb6mb1o.cjs"),M=require("./createStylesheet-CqHU9_qv.cjs"),E=require("./theme/index.cjs");var Y=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,J=(t,e,s,i)=>{for(var n=i>1?void 0:i?Z(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&Y(e,s,n),n},P=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},r=(t,e,s)=>(P(t,e,"read from private field"),s?s.call(t):e.get(t)),c=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},d=(t,e,s,i)=>(P(t,e,"write to private field"),i?i.call(t,s):e.set(t,s),s),I=(t,e,s)=>(P(t,e,"access private method"),s),u,f,o,v,m,g,$,C,b;const K=M.createStylesheet({":host":{position:"relative"},".head":{width:"100%",cursor:"default",background:"none",border:"none",color:"inherit",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit",textAlign:"start",padding:"0",margin:"0"},".body":{boxSizing:"border-box",position:"var(--position, unset)",top:"100%",left:"0",width:"100%",overflow:"hidden",transitionDuration:`var(--duration, ${E.aptechkaTheme.durationShort.var})`,transitionProperty:"height",cursor:"default"},".body-inner":{display:"grid",gap:"var(--gap, 0px)",width:"100%",paddingTop:"var(--gap, 0px)"}});exports.SelectElement=class extends S.CustomElement{constructor(){super(),c(this,C),c(this,u,null),c(this,f,""),c(this,o,null),c(this,v,!1),c(this,m,void 0),c(this,g,null),c(this,$,()=>{N.dispatchSizeChangeEvent(this)}),W.isBrowser&&(this.openShadow(K),d(this,u,this.attachInternals()),d(this,g,new ResizeObserver(r(this,$))),a.element(this,{children:[a.button({class:"head",children:a.slot({name:"head"}),onClick:()=>{this.opened?this.close():this.open()}}),a.div({class:"body",style:{height:"0px"},children:a.div({class:"body-inner",children:a.slot()}),ref:e=>{d(this,o,e)}})]}))}get value(){return r(this,f)}set value(e){d(this,f,e),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),r(this,u).setFormValue(r(this,f))}get internals(){return r(this,u)}get opened(){return r(this,v)}open(){clearTimeout(r(this,m)),d(this,v,!0),r(this,o).style.display="grid",this.classList.add("triggered"),setTimeout(()=>{this.classList.add("opened"),r(this,o).style.height=r(this,o).scrollHeight+"px",I(this,C,b).call(this)},0)}close(){d(this,v,!1),r(this,o).style.height="0px",this.classList.remove("opened"),I(this,C,b).call(this),d(this,m,setTimeout(()=>{this.classList.remove("triggered"),r(this,o).style.display="none"},V.getElementTransitionDurationMS(r(this,o))))}connectedCallback(){r(this,g).observe(r(this,o))}disconnectedCallback(){clearTimeout(r(this,m)),r(this,g).disconnect()}};u=new WeakMap;f=new WeakMap;o=new WeakMap;v=new WeakMap;m=new WeakMap;g=new WeakMap;$=new WeakMap;C=new WeakSet;b=function(){this.dispatchEvent(new CustomEvent("selectToggle",{bubbles:!0,composed:!0,detail:{opened:r(this,v)}}))};exports.SelectElement.formAssociated=!0;exports.SelectElement=J([S.define("e-select")],exports.SelectElement);var y;class q extends S.CustomElement{constructor(){super(...arguments);A(this,y,null)}get selectElement(){return z(this,y)}connectedCallback(){var i,n;const s=(n=(i=this.assignedSlot)==null?void 0:i.getRootNode())==null?void 0:n.host;s?H(this,y,s):console.log(this,"e-select not found")}}y=new WeakMap;var Q=Object.defineProperty,X=Object.getOwnPropertyDescriptor,j=(t,e,s,i)=>{for(var n=i>1?void 0:i?X(e,s):e,l=t.length-1,h;l>=0;l--)(h=t[l])&&(n=(i?h(e,s,n):h(n))||n);return i&&n&&Q(e,s,n),n},G=(t,e,s)=>{if(!e.has(t))throw TypeError("Cannot "+s)},x=(t,e,s)=>(G(t,e,"read from private field"),s?s.call(t):e.get(t)),B=(t,e,s)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,s)},ee=(t,e,s)=>(G(t,e,"access private method"),s),w,L,R;const te=M.createStylesheet({":host":{width:"100%",height:E.aptechkaTheme.heightInput.var,display:"inline-flex",alignItems:"center"},button:{all:"inherit"}});exports.SelectOptionElement=class extends q{constructor(){super(),B(this,L),B(this,w,()=>{this.selectElement.value===this.value?this.style.display="none":this.style.display=""}),W.isBrowser&&(this.openShadow(te),a.element(this,{children:[a.button({onClick:()=>{ee(this,L,R).call(this)},children:a.slot()})]}))}get value(){return(this.hasAttribute("value")?this.getAttribute("value"):this.innerText)||""}connectedCallback(){super.connectedCallback(),this.hasAttribute("default")&&(this.selectElement.value||(this.selectElement.value=this.value)),this.selectElement.addEventListener("change",x(this,w)),setTimeout(()=>{x(this,w).call(this)})}disconnectedCallback(){this.selectElement.removeEventListener("change",x(this,w))}};w=new WeakMap;L=new WeakSet;R=function(){this.selectElement.value=this.value,this.selectElement.close()};exports.SelectOptionElement=j([S.define("e-select-option")],exports.SelectOptionElement);const F=`<svg
2
2
  xmlns="http://www.w3.org/2000/svg"
3
3
  width="32"
4
4
  height="32"
@@ -1 +1 @@
1
- "use strict";var I=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>(I(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},n=(i,e,s,o)=>(I(i,e,"write to private field"),o?o.call(i,s):e.set(i,s),s);var R=(i,e,s)=>(I(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ot=require("../css-unit-parser/index.cjs"),K=require("../ladder/index.cjs"),F=require("../order/index.cjs"),at=require("../scroll-entries/index.cjs"),G=require("../ticker/index.cjs"),J=require("../browser-CpzFX2xg.cjs"),N=require("../dom-JBOkFLTh.cjs"),L=require("../layout-8ryRAMGJ.cjs"),Q=require("../element-resizer/index.cjs"),j=require("../window-resizer/index.cjs");function tt(i){const e=Math.sqrt(i.m11*i.m11+i.m12*i.m12+i.m13*i.m13),s=Math.sqrt(i.m21*i.m21+i.m22*i.m22+i.m23*i.m23),o=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),X=Math.atan2(i.m32,i.m33),Y=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),V=Math.atan2(i.m21,i.m11),u=i.m41,C=i.m42*-1,O=i.m43;return{scaleX:e,scaleY:s,scaleZ:o,rotationX:X,rotationY:Y,rotationZ:V,translationX:u,translationY:C,translationZ:O}}var a,f,p,M,H,q,x,v,Z,y,_,E,d,S,b,P,T,B,z,g,m,c,r,l,A,$,k,et,D,st,U,it,w,W;class ct{constructor(e,s){h(this,A);h(this,k);h(this,D);h(this,U);h(this,a,null);h(this,f,null);h(this,p,[]);h(this,M,"auto");h(this,H,"top");h(this,q,!1);h(this,x,!0);h(this,v,!0);h(this,Z,!0);h(this,y,0);h(this,_,0);h(this,E,0);h(this,d,0);h(this,S,0);h(this,b,0);h(this,P,0);h(this,T,0);h(this,B,0);h(this,z,{x:0,y:0,z:0});h(this,g,{x:0,y:0,z:0});h(this,m,{x:1,y:1,z:1});h(this,c,new K.Ladder({x:0,y:0,z:0}));h(this,r,new K.Ladder({x:0,y:0,z:0}));h(this,l,new K.Ladder({x:0,y:0,z:0}));h(this,w,()=>{J.isBrowser&&R(this,D,st).call(this)});h(this,W,()=>{R(this,U,it).call(this),R(this,A,$).call(this)});J.isBrowser&&(n(this,a,N.getElement(e)||document.body),n(this,f,N.getElement(s==null?void 0:s.containerElement)||document.body),n(this,M,(s==null?void 0:s.scrollAxis)||"auto"),n(this,H,(s==null?void 0:s.frontSide)||"top"),n(this,q,(s==null?void 0:s.cartesian)||!1),n(this,x,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),n(this,v,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),n(this,Z,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),t(this,l).setStep("_size","+",{x:1,y:1,z:1}),t(this,r).setStep("_position","+",{x:0,y:0,z:0}),t(this,l).setStep("_scale","*",{x:1,y:1,z:1}),t(this,r).setStep("_translation","+",{x:0,y:0,z:0}),t(this,c).setStep("_rotation","+",{x:0,y:0,z:0}),addEventListener("DOMContentLoaded",()=>{at.scrollEntries.getAll(this.element).forEach(o=>{this.setScrollStep(()=>o)})}),G.ticker.subscribe(t(this,W),{order:F.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}),Q.elementResizer.subscribe(this.element,t(this,w)),j.windowResizer.subscribe(t(this,w),F.RESIZE_ORDER.LAYOUT_BOX))}get element(){return t(this,a)}get containerElement(){return t(this,f)}get position(){return t(this,r).current}get rotation(){return t(this,c).current}get scale(){return t(this,l).current}get left(){return t(this,S)}get top(){return t(this,d)}get front(){return t(this,b)}get width(){return t(this,y)}get height(){return t(this,_)}get depth(){return t(this,E)}bindObject(e){e.position&&t(this,r).bind(e.position),e.rotation&&t(this,c).bind(e.rotation),e.scale&&t(this,l).bind(e.scale)}unbindObject(e){e.position&&t(this,r).unbind(e.position),e.rotation&&t(this,c).unbind(e.rotation),e.scale&&t(this,l).unbind(e.scale)}setScrollStep(e){return t(this,p).includes(e)||t(this,p).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){n(this,p,t(this,p).filter(s=>s!==e))}destroy(){G.ticker.unsubscribe(t(this,W)),Q.elementResizer.unsubscribe(t(this,w)),j.windowResizer.unsubscribe(t(this,w)),t(this,r).close(),t(this,c).close(),t(this,l).close()}setPositionStep(...e){t(this,r).setStep(...e)}getPositionStep(...e){return t(this,r).getStepValue(...e)}setRotationStep(...e){t(this,c).setStep(...e)}getRotationStep(...e){return t(this,c).getStepValue(...e)}setScaleStep(...e){t(this,l).setStep(...e)}getScaleStep(...e){return t(this,l).getStepValue(...e)}deletePositionStep(...e){t(this,r).deleteStep(...e)}deleteRotationStep(...e){t(this,c).deleteStep(...e)}deleteScaleStep(...e){t(this,l).deleteStep(...e)}}a=new WeakMap,f=new WeakMap,p=new WeakMap,M=new WeakMap,H=new WeakMap,q=new WeakMap,x=new WeakMap,v=new WeakMap,Z=new WeakMap,y=new WeakMap,_=new WeakMap,E=new WeakMap,d=new WeakMap,S=new WeakMap,b=new WeakMap,P=new WeakMap,T=new WeakMap,B=new WeakMap,z=new WeakMap,g=new WeakMap,m=new WeakMap,c=new WeakMap,r=new WeakMap,l=new WeakMap,A=new WeakSet,$=function(){t(this,l).calculate(),t(this,r).calculate(),t(this,c).calculate()},k=new WeakSet,et=function(){t(this,l).setStep("_size","+",{x:t(this,x)?t(this,y):1,y:t(this,x)?t(this,_):1,z:t(this,x)?t(this,E):1});const e=t(this,v)?t(this,P):0,s=t(this,v)?t(this,T):0,o=t(this,v)?t(this,B):0;t(this,r).setStep("_position","+",{x:e,y:s,z:o}),t(this,Z)?(t(this,l).setStep("_scale","*",{x:t(this,m).x,y:t(this,m).y,z:t(this,m).z}),t(this,r).setStep("_translation","+",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,c).setStep("_rotation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z})):(t(this,l).setStep("_scale","*",{x:1,y:1,z:1}),t(this,r).setStep("_translation","+",{x:0,y:0,z:0}),t(this,c).setStep("_rotation","+",{x:0,y:0,z:0}))},D=new WeakSet,st=function(){const e=getComputedStyle(t(this,a));n(this,y,Math.max(t(this,a).clientWidth,1)),n(this,_,Math.max(t(this,a).clientHeight,1)),n(this,E,Math.max(ot.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=L.getCumulativeOffsetLeft(t(this,f)),o=L.getCumulativeOffsetTop(t(this,f)),X=t(this,f).clientWidth,Y=t(this,f).clientHeight;if(n(this,S,L.getCumulativeOffsetLeft(t(this,a))-s),n(this,d,L.getCumulativeOffsetTop(t(this,a))-o),t(this,M)==="z"){const C=t(this,S)/X,O=t(this,d)/Y;n(this,S,(C-Math.floor(C))*X),n(this,d,(O-Math.floor(O))*Y),t(this,H)==="left"?n(this,b,L.getCumulativeOffsetLeft(t(this,a))-s-t(this,S)):n(this,b,L.getCumulativeOffsetTop(t(this,a))-o-t(this,d))}if(n(this,S,t(this,S)+t(this,a).clientLeft),n(this,d,t(this,d)+t(this,a).clientTop),t(this,q)){const C=Math.round(X/2),O=Math.round(Y/2),ht=t(this,y)?Math.round(t(this,y)/2):0,nt=t(this,_)?Math.round(t(this,_)/2):0,rt=t(this,S)-C+ht,lt=(t(this,d)-O+nt)*-1;n(this,P,rt),n(this,T,lt)}else n(this,P,t(this,S)),n(this,T,t(this,d));n(this,B,t(this,b)*-1);const V=new WebKitCSSMatrix(e.transform),u=tt(V);t(this,z).x=u.translationX,t(this,z).y=u.translationY,t(this,z).z=u.translationZ,t(this,m).x=u.scaleX,t(this,m).y=u.scaleY,t(this,m).z=u.scaleZ,t(this,g).x=u.rotationX,t(this,g).y=u.rotationY,t(this,g).z=u.rotationZ,R(this,k,et).call(this),R(this,A,$).call(this)},U=new WeakSet,it=function(){for(let e=0;e<t(this,p).length;e++){const s=t(this,p)[e]();let o=s.axis;t(this,M)!=="auto"&&(o=t(this,M)),t(this,r).setStep(`_scroll_${e}`,"+",{[o]:s.value*(o==="x"?-1:t(this,q)?1:-1)})}},w=new WeakMap,W=new WeakMap;exports.LayoutBox=ct;exports.decomposeCSSMatrix=tt;
1
+ "use strict";var $=(i,e,s)=>{if(!e.has(i))throw TypeError("Cannot "+s)};var t=(i,e,s)=>($(i,e,"read from private field"),s?s.call(i):e.get(i)),h=(i,e,s)=>{if(e.has(i))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(i):e.set(i,s)},n=(i,e,s,r)=>($(i,e,"write to private field"),r?r.call(i,s):e.set(i,s),s);var O=(i,e,s)=>($(i,e,"access private method"),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ut=require("../css-unit-parser/index.cjs"),F=require("../ladder/index.cjs"),N=require("../order/index.cjs"),G=require("../scroll-entries/index.cjs"),Q=require("../ticker/index.cjs"),j=require("../browser-CpzFX2xg.cjs"),tt=require("../dom-JBOkFLTh.cjs"),q=require("../layout-8ryRAMGJ.cjs"),et=require("../element-resizer/index.cjs"),st=require("../window-resizer/index.cjs");function it(i){const e=Math.sqrt(i.m11*i.m11+i.m12*i.m12+i.m13*i.m13),s=Math.sqrt(i.m21*i.m21+i.m22*i.m22+i.m23*i.m23),r=Math.sqrt(i.m31*i.m31+i.m32*i.m32+i.m33*i.m33),Y=Math.atan2(i.m32,i.m33),H=Math.atan2(-i.m31,Math.sqrt(i.m32*i.m32+i.m33*i.m33)),K=Math.atan2(i.m21,i.m11),u=i.m41,C=i.m42*-1,R=i.m43;return{scaleX:e,scaleY:s,scaleZ:r,rotationX:Y,rotationY:H,rotationZ:K,translationX:u,translationY:C,translationZ:R}}var c,f,p,M,Z,L,x,w,B,y,_,P,S,d,v,T,X,A,z,g,m,a,l,o,b,W,J,V,ht,D,nt,I,rt,E,k,U;class St{constructor(e,s){h(this,W);h(this,V);h(this,D);h(this,I);h(this,c,null);h(this,f,null);h(this,p,[]);h(this,M,"auto");h(this,Z,"top");h(this,L,!1);h(this,x,!0);h(this,w,!0);h(this,B,!0);h(this,y,0);h(this,_,0);h(this,P,0);h(this,S,0);h(this,d,0);h(this,v,0);h(this,T,0);h(this,X,0);h(this,A,0);h(this,z,{x:0,y:0,z:0});h(this,g,{x:0,y:0,z:0});h(this,m,{x:1,y:1,z:1});h(this,a,new F.Ladder({x:0,y:0,z:0}));h(this,l,new F.Ladder({x:0,y:0,z:0}));h(this,o,new F.Ladder({x:0,y:0,z:0}));h(this,b,new Map);h(this,E,()=>{j.isBrowser&&O(this,D,nt).call(this)});h(this,k,()=>{O(this,I,rt).call(this),O(this,W,J).call(this)});h(this,U,()=>{const e=G.scrollEntries.getAll(this.element);t(this,b).forEach((s,r)=>{e.includes(r)||(this.deleteScrollStep(s),t(this,b).delete(r))}),e.forEach(s=>{if(!t(this,b).has(s)){const r=()=>s;t(this,b).set(s,r),this.setScrollStep(r)}})});j.isBrowser&&(n(this,c,tt.getElement(e)||document.body),n(this,f,tt.getElement(s==null?void 0:s.containerElement)||document.body),n(this,M,(s==null?void 0:s.scrollAxis)||"auto"),n(this,Z,(s==null?void 0:s.frontSide)||"top"),n(this,L,(s==null?void 0:s.cartesian)||!1),n(this,x,(s==null?void 0:s.sizeStep)!==void 0?s.sizeStep:!0),n(this,w,(s==null?void 0:s.positionStep)!==void 0?s.positionStep:!0),n(this,B,(s==null?void 0:s.transformStep)!==void 0?s.transformStep:!0),t(this,o).setStep("_size","+",{x:1,y:1,z:1}),t(this,l).setStep("_position","+",{x:0,y:0,z:0}),t(this,o).setStep("_scale","*",{x:1,y:1,z:1}),t(this,l).setStep("_translation","+",{x:0,y:0,z:0}),t(this,a).setStep("_rotation","+",{x:0,y:0,z:0}),G.scrollEntries.notifier.subscribe(t(this,U)),Q.ticker.subscribe(t(this,k),{order:N.TICK_ORDER.LAYOUT_BOX,culling:s!=null&&s.culling?this.element:void 0}),et.elementResizer.subscribe(this.element,t(this,E)),st.windowResizer.subscribe(t(this,E),N.RESIZE_ORDER.LAYOUT_BOX))}get element(){return t(this,c)}get containerElement(){return t(this,f)}get position(){return t(this,l).current}get rotation(){return t(this,a).current}get scale(){return t(this,o).current}get left(){return t(this,d)}get top(){return t(this,S)}get front(){return t(this,v)}get width(){return t(this,y)}get height(){return t(this,_)}get depth(){return t(this,P)}bindObject(e){e.position&&t(this,l).bind(e.position),e.rotation&&t(this,a).bind(e.rotation),e.scale&&t(this,o).bind(e.scale)}unbindObject(e){e.position&&t(this,l).unbind(e.position),e.rotation&&t(this,a).unbind(e.rotation),e.scale&&t(this,o).unbind(e.scale)}setScrollStep(e){return t(this,p).includes(e)||t(this,p).push(e),()=>this.deleteScrollStep(e)}deleteScrollStep(e){n(this,p,t(this,p).filter(s=>s!==e))}destroy(){Q.ticker.unsubscribe(t(this,k)),et.elementResizer.unsubscribe(t(this,E)),st.windowResizer.unsubscribe(t(this,E)),G.scrollEntries.notifier.unsubscribe(t(this,U)),t(this,b).clear(),t(this,l).close(),t(this,a).close(),t(this,o).close()}setPositionStep(...e){t(this,l).setStep(...e)}getPositionStep(...e){return t(this,l).getStepValue(...e)}setRotationStep(...e){t(this,a).setStep(...e)}getRotationStep(...e){return t(this,a).getStepValue(...e)}setScaleStep(...e){t(this,o).setStep(...e)}getScaleStep(...e){return t(this,o).getStepValue(...e)}deletePositionStep(...e){t(this,l).deleteStep(...e)}deleteRotationStep(...e){t(this,a).deleteStep(...e)}deleteScaleStep(...e){t(this,o).deleteStep(...e)}}c=new WeakMap,f=new WeakMap,p=new WeakMap,M=new WeakMap,Z=new WeakMap,L=new WeakMap,x=new WeakMap,w=new WeakMap,B=new WeakMap,y=new WeakMap,_=new WeakMap,P=new WeakMap,S=new WeakMap,d=new WeakMap,v=new WeakMap,T=new WeakMap,X=new WeakMap,A=new WeakMap,z=new WeakMap,g=new WeakMap,m=new WeakMap,a=new WeakMap,l=new WeakMap,o=new WeakMap,b=new WeakMap,W=new WeakSet,J=function(){t(this,o).calculate(),t(this,l).calculate(),t(this,a).calculate()},V=new WeakSet,ht=function(){t(this,o).setStep("_size","+",{x:t(this,x)?t(this,y):1,y:t(this,x)?t(this,_):1,z:t(this,x)?t(this,P):1});const e=t(this,w)?t(this,T):0,s=t(this,w)?t(this,X):0,r=t(this,w)?t(this,A):0;t(this,l).setStep("_position","+",{x:e,y:s,z:r}),t(this,B)?(t(this,o).setStep("_scale","*",{x:t(this,m).x,y:t(this,m).y,z:t(this,m).z}),t(this,l).setStep("_translation","+",{x:t(this,z).x,y:t(this,z).y,z:t(this,z).z}),t(this,a).setStep("_rotation","+",{x:t(this,g).x,y:t(this,g).y,z:t(this,g).z})):(t(this,o).setStep("_scale","*",{x:1,y:1,z:1}),t(this,l).setStep("_translation","+",{x:0,y:0,z:0}),t(this,a).setStep("_rotation","+",{x:0,y:0,z:0}))},D=new WeakSet,nt=function(){const e=getComputedStyle(t(this,c));n(this,y,Math.max(t(this,c).clientWidth,1)),n(this,_,Math.max(t(this,c).clientHeight,1)),n(this,P,Math.max(ut.cssUnitParser.parse(e.getPropertyValue("--depth")||"0px"),1));const s=q.getCumulativeOffsetLeft(t(this,f)),r=q.getCumulativeOffsetTop(t(this,f)),Y=t(this,f).clientWidth,H=t(this,f).clientHeight;if(n(this,d,q.getCumulativeOffsetLeft(t(this,c))-s),n(this,S,q.getCumulativeOffsetTop(t(this,c))-r),t(this,M)==="z"){const C=t(this,d)/Y,R=t(this,S)/H;n(this,d,(C-Math.floor(C))*Y),n(this,S,(R-Math.floor(R))*H),t(this,Z)==="left"?n(this,v,q.getCumulativeOffsetLeft(t(this,c))-s-t(this,d)):n(this,v,q.getCumulativeOffsetTop(t(this,c))-r-t(this,S))}if(n(this,d,t(this,d)+t(this,c).clientLeft),n(this,S,t(this,S)+t(this,c).clientTop),t(this,L)){const C=Math.round(Y/2),R=Math.round(H/2),lt=t(this,y)?Math.round(t(this,y)/2):0,ot=t(this,_)?Math.round(t(this,_)/2):0,ct=t(this,d)-C+lt,at=(t(this,S)-R+ot)*-1;n(this,T,ct),n(this,X,at)}else n(this,T,t(this,d)),n(this,X,t(this,S));n(this,A,t(this,v)*-1);const K=new WebKitCSSMatrix(e.transform),u=it(K);t(this,z).x=u.translationX,t(this,z).y=u.translationY,t(this,z).z=u.translationZ,t(this,m).x=u.scaleX,t(this,m).y=u.scaleY,t(this,m).z=u.scaleZ,t(this,g).x=u.rotationX,t(this,g).y=u.rotationY,t(this,g).z=u.rotationZ,O(this,V,ht).call(this),O(this,W,J).call(this)},I=new WeakSet,rt=function(){for(let e=0;e<t(this,p).length;e++){const s=t(this,p)[e]();let r=s.axis;t(this,M)!=="auto"&&(r=t(this,M)),t(this,l).setStep(`_scroll_${e}`,"+",{[r]:s.value*(r==="x"?-1:t(this,L)?1:-1)})}},E=new WeakMap,k=new WeakMap,U=new WeakMap;exports.LayoutBox=St;exports.decomposeCSSMatrix=it;
@@ -1,96 +1,108 @@
1
- var k = (i, e, s) => {
2
- if (!e.has(i))
3
- throw TypeError("Cannot " + s);
1
+ var K = (i, s, e) => {
2
+ if (!s.has(i))
3
+ throw TypeError("Cannot " + e);
4
4
  };
5
- var t = (i, e, s) => (k(i, e, "read from private field"), s ? s.call(i) : e.get(i)), h = (i, e, s) => {
6
- if (e.has(i))
5
+ var t = (i, s, e) => (K(i, s, "read from private field"), e ? e.call(i) : s.get(i)), h = (i, s, e) => {
6
+ if (s.has(i))
7
7
  throw TypeError("Cannot add the same private member more than once");
8
- e instanceof WeakSet ? e.add(i) : e.set(i, s);
9
- }, n = (i, e, s, o) => (k(i, e, "write to private field"), o ? o.call(i, s) : e.set(i, s), s);
10
- var E = (i, e, s) => (k(i, e, "access private method"), s);
11
- import { cssUnitParser as lt } from "../css-unit-parser/index.js";
12
- import { Ladder as I } from "../ladder/index.js";
13
- import { TICK_ORDER as ot, RESIZE_ORDER as at } from "../order/index.js";
14
- import { scrollEntries as ct } from "../scroll-entries/index.js";
15
- import { ticker as G } from "../ticker/index.js";
16
- import { i as J } from "../browser-0zX67oeU.js";
17
- import { g as N } from "../dom-0S_WDL4g.js";
18
- import { g as K, a as $ } from "../layout-HoBT_Da2.js";
19
- import { elementResizer as Q } from "../element-resizer/index.js";
20
- import { windowResizer as j } from "../window-resizer/index.js";
21
- function ut(i) {
22
- const e = Math.sqrt(
8
+ s instanceof WeakSet ? s.add(i) : s.set(i, e);
9
+ }, n = (i, s, e, r) => (K(i, s, "write to private field"), r ? r.call(i, e) : s.set(i, e), e);
10
+ var O = (i, s, e) => (K(i, s, "access private method"), e);
11
+ import { cssUnitParser as ct } from "../css-unit-parser/index.js";
12
+ import { Ladder as $ } from "../ladder/index.js";
13
+ import { TICK_ORDER as ut, RESIZE_ORDER as St } from "../order/index.js";
14
+ import { scrollEntries as F } from "../scroll-entries/index.js";
15
+ import { ticker as Q } from "../ticker/index.js";
16
+ import { i as j } from "../browser-0zX67oeU.js";
17
+ import { g as tt } from "../dom-0S_WDL4g.js";
18
+ import { g as G, a as J } from "../layout-HoBT_Da2.js";
19
+ import { elementResizer as st } from "../element-resizer/index.js";
20
+ import { windowResizer as et } from "../window-resizer/index.js";
21
+ function dt(i) {
22
+ const s = Math.sqrt(
23
23
  i.m11 * i.m11 + i.m12 * i.m12 + i.m13 * i.m13
24
- ), s = Math.sqrt(
24
+ ), e = Math.sqrt(
25
25
  i.m21 * i.m21 + i.m22 * i.m22 + i.m23 * i.m23
26
- ), o = Math.sqrt(
26
+ ), r = Math.sqrt(
27
27
  i.m31 * i.m31 + i.m32 * i.m32 + i.m33 * i.m33
28
- ), Y = Math.atan2(i.m32, i.m33), H = Math.atan2(
28
+ ), H = Math.atan2(i.m32, i.m33), T = Math.atan2(
29
29
  -i.m31,
30
30
  Math.sqrt(i.m32 * i.m32 + i.m33 * i.m33)
31
- ), U = Math.atan2(i.m21, i.m11), u = i.m41, C = i.m42 * -1, R = i.m43;
31
+ ), I = Math.atan2(i.m21, i.m11), u = i.m41, R = i.m42 * -1, C = i.m43;
32
32
  return {
33
- scaleX: e,
34
- scaleY: s,
35
- scaleZ: o,
36
- rotationX: Y,
37
- rotationY: H,
38
- rotationZ: U,
33
+ scaleX: s,
34
+ scaleY: e,
35
+ scaleZ: r,
36
+ rotationX: H,
37
+ rotationY: T,
38
+ rotationZ: I,
39
39
  translationX: u,
40
- translationY: C,
41
- translationZ: R
40
+ translationY: R,
41
+ translationZ: C
42
42
  };
43
43
  }
44
- var a, m, p, _, T, O, b, v, Z, y, M, L, S, d, x, P, X, A, f, z, g, c, r, l, W, F, B, tt, D, et, V, st, w, q;
44
+ var a, f, p, _, Z, P, x, E, A, y, M, L, S, d, v, X, Y, W, m, z, g, c, l, o, b, q, N, D, it, U, ht, k, nt, w, B, V;
45
45
  class vt {
46
- constructor(e, s) {
47
- h(this, W);
48
- h(this, B);
46
+ constructor(s, e) {
47
+ h(this, q);
49
48
  h(this, D);
50
- h(this, V);
49
+ h(this, U);
50
+ h(this, k);
51
51
  h(this, a, null);
52
- h(this, m, null);
52
+ h(this, f, null);
53
53
  h(this, p, []);
54
54
  h(this, _, "auto");
55
- h(this, T, "top");
56
- h(this, O, !1);
57
- h(this, b, !0);
58
- h(this, v, !0);
59
- h(this, Z, !0);
55
+ h(this, Z, "top");
56
+ h(this, P, !1);
57
+ h(this, x, !0);
58
+ h(this, E, !0);
59
+ h(this, A, !0);
60
60
  h(this, y, 0);
61
61
  h(this, M, 0);
62
62
  h(this, L, 0);
63
63
  h(this, S, 0);
64
64
  h(this, d, 0);
65
- h(this, x, 0);
66
- h(this, P, 0);
65
+ h(this, v, 0);
67
66
  h(this, X, 0);
68
- h(this, A, 0);
69
- h(this, f, { x: 0, y: 0, z: 0 });
67
+ h(this, Y, 0);
68
+ h(this, W, 0);
69
+ h(this, m, { x: 0, y: 0, z: 0 });
70
70
  h(this, z, { x: 0, y: 0, z: 0 });
71
71
  h(this, g, { x: 1, y: 1, z: 1 });
72
- h(this, c, new I({ x: 0, y: 0, z: 0 }));
73
- h(this, r, new I({ x: 0, y: 0, z: 0 }));
74
- h(this, l, new I({ x: 0, y: 0, z: 0 }));
72
+ h(this, c, new $({ x: 0, y: 0, z: 0 }));
73
+ h(this, l, new $({ x: 0, y: 0, z: 0 }));
74
+ h(this, o, new $({ x: 0, y: 0, z: 0 }));
75
+ h(this, b, /* @__PURE__ */ new Map());
75
76
  h(this, w, () => {
76
- J && E(this, D, et).call(this);
77
+ j && O(this, U, ht).call(this);
77
78
  });
78
- h(this, q, () => {
79
- E(this, V, st).call(this), E(this, W, F).call(this);
79
+ h(this, B, () => {
80
+ O(this, k, nt).call(this), O(this, q, N).call(this);
80
81
  });
81
- J && (n(this, a, N(e) || document.body), n(this, m, N(s == null ? void 0 : s.containerElement) || document.body), n(this, _, (s == null ? void 0 : s.scrollAxis) || "auto"), n(this, T, (s == null ? void 0 : s.frontSide) || "top"), n(this, O, (s == null ? void 0 : s.cartesian) || !1), n(this, b, (s == null ? void 0 : s.sizeStep) !== void 0 ? s.sizeStep : !0), n(this, v, (s == null ? void 0 : s.positionStep) !== void 0 ? s.positionStep : !0), n(this, Z, (s == null ? void 0 : s.transformStep) !== void 0 ? s.transformStep : !0), t(this, l).setStep("_size", "+", {
82
+ h(this, V, () => {
83
+ const s = F.getAll(this.element);
84
+ t(this, b).forEach((e, r) => {
85
+ s.includes(r) || (this.deleteScrollStep(e), t(this, b).delete(r));
86
+ }), s.forEach((e) => {
87
+ if (!t(this, b).has(e)) {
88
+ const r = () => e;
89
+ t(this, b).set(e, r), this.setScrollStep(r);
90
+ }
91
+ });
92
+ });
93
+ j && (n(this, a, tt(s) || document.body), n(this, f, tt(e == null ? void 0 : e.containerElement) || document.body), n(this, _, (e == null ? void 0 : e.scrollAxis) || "auto"), n(this, Z, (e == null ? void 0 : e.frontSide) || "top"), n(this, P, (e == null ? void 0 : e.cartesian) || !1), n(this, x, (e == null ? void 0 : e.sizeStep) !== void 0 ? e.sizeStep : !0), n(this, E, (e == null ? void 0 : e.positionStep) !== void 0 ? e.positionStep : !0), n(this, A, (e == null ? void 0 : e.transformStep) !== void 0 ? e.transformStep : !0), t(this, o).setStep("_size", "+", {
82
94
  x: 1,
83
95
  y: 1,
84
96
  z: 1
85
- }), t(this, r).setStep("_position", "+", {
97
+ }), t(this, l).setStep("_position", "+", {
86
98
  x: 0,
87
99
  y: 0,
88
100
  z: 0
89
- }), t(this, l).setStep("_scale", "*", {
101
+ }), t(this, o).setStep("_scale", "*", {
90
102
  x: 1,
91
103
  y: 1,
92
104
  z: 1
93
- }), t(this, r).setStep("_translation", "+", {
105
+ }), t(this, l).setStep("_translation", "+", {
94
106
  x: 0,
95
107
  y: 0,
96
108
  z: 0
@@ -98,29 +110,25 @@ class vt {
98
110
  x: 0,
99
111
  y: 0,
100
112
  z: 0
101
- }), addEventListener("DOMContentLoaded", () => {
102
- ct.getAll(this.element).forEach((o) => {
103
- this.setScrollStep(() => o);
104
- });
105
- }), G.subscribe(t(this, q), {
106
- order: ot.LAYOUT_BOX,
107
- culling: s != null && s.culling ? this.element : void 0
108
- }), Q.subscribe(this.element, t(this, w)), j.subscribe(t(this, w), at.LAYOUT_BOX));
113
+ }), F.notifier.subscribe(t(this, V)), Q.subscribe(t(this, B), {
114
+ order: ut.LAYOUT_BOX,
115
+ culling: e != null && e.culling ? this.element : void 0
116
+ }), st.subscribe(this.element, t(this, w)), et.subscribe(t(this, w), St.LAYOUT_BOX));
109
117
  }
110
118
  get element() {
111
119
  return t(this, a);
112
120
  }
113
121
  get containerElement() {
114
- return t(this, m);
122
+ return t(this, f);
115
123
  }
116
124
  get position() {
117
- return t(this, r).current;
125
+ return t(this, l).current;
118
126
  }
119
127
  get rotation() {
120
128
  return t(this, c).current;
121
129
  }
122
130
  get scale() {
123
- return t(this, l).current;
131
+ return t(this, o).current;
124
132
  }
125
133
  get left() {
126
134
  return t(this, d);
@@ -129,7 +137,7 @@ class vt {
129
137
  return t(this, S);
130
138
  }
131
139
  get front() {
132
- return t(this, x);
140
+ return t(this, v);
133
141
  }
134
142
  get width() {
135
143
  return t(this, y);
@@ -140,81 +148,81 @@ class vt {
140
148
  get depth() {
141
149
  return t(this, L);
142
150
  }
143
- bindObject(e) {
144
- e.position && t(this, r).bind(e.position), e.rotation && t(this, c).bind(e.rotation), e.scale && t(this, l).bind(e.scale);
151
+ bindObject(s) {
152
+ s.position && t(this, l).bind(s.position), s.rotation && t(this, c).bind(s.rotation), s.scale && t(this, o).bind(s.scale);
145
153
  }
146
- unbindObject(e) {
147
- e.position && t(this, r).unbind(e.position), e.rotation && t(this, c).unbind(e.rotation), e.scale && t(this, l).unbind(e.scale);
154
+ unbindObject(s) {
155
+ s.position && t(this, l).unbind(s.position), s.rotation && t(this, c).unbind(s.rotation), s.scale && t(this, o).unbind(s.scale);
148
156
  }
149
- setScrollStep(e) {
150
- return t(this, p).includes(e) || t(this, p).push(e), () => this.deleteScrollStep(e);
157
+ setScrollStep(s) {
158
+ return t(this, p).includes(s) || t(this, p).push(s), () => this.deleteScrollStep(s);
151
159
  }
152
- deleteScrollStep(e) {
160
+ deleteScrollStep(s) {
153
161
  n(this, p, t(this, p).filter(
154
- (s) => s !== e
162
+ (e) => e !== s
155
163
  ));
156
164
  }
157
165
  destroy() {
158
- G.unsubscribe(t(this, q)), Q.unsubscribe(t(this, w)), j.unsubscribe(t(this, w)), t(this, r).close(), t(this, c).close(), t(this, l).close();
166
+ Q.unsubscribe(t(this, B)), st.unsubscribe(t(this, w)), et.unsubscribe(t(this, w)), F.notifier.unsubscribe(t(this, V)), t(this, b).clear(), t(this, l).close(), t(this, c).close(), t(this, o).close();
159
167
  }
160
- setPositionStep(...e) {
161
- t(this, r).setStep(...e);
168
+ setPositionStep(...s) {
169
+ t(this, l).setStep(...s);
162
170
  }
163
- getPositionStep(...e) {
164
- return t(this, r).getStepValue(...e);
171
+ getPositionStep(...s) {
172
+ return t(this, l).getStepValue(...s);
165
173
  }
166
- setRotationStep(...e) {
167
- t(this, c).setStep(...e);
174
+ setRotationStep(...s) {
175
+ t(this, c).setStep(...s);
168
176
  }
169
- getRotationStep(...e) {
170
- return t(this, c).getStepValue(...e);
177
+ getRotationStep(...s) {
178
+ return t(this, c).getStepValue(...s);
171
179
  }
172
- setScaleStep(...e) {
173
- t(this, l).setStep(...e);
180
+ setScaleStep(...s) {
181
+ t(this, o).setStep(...s);
174
182
  }
175
- getScaleStep(...e) {
176
- return t(this, l).getStepValue(...e);
183
+ getScaleStep(...s) {
184
+ return t(this, o).getStepValue(...s);
177
185
  }
178
- deletePositionStep(...e) {
179
- t(this, r).deleteStep(...e);
186
+ deletePositionStep(...s) {
187
+ t(this, l).deleteStep(...s);
180
188
  }
181
- deleteRotationStep(...e) {
182
- t(this, c).deleteStep(...e);
189
+ deleteRotationStep(...s) {
190
+ t(this, c).deleteStep(...s);
183
191
  }
184
- deleteScaleStep(...e) {
185
- t(this, l).deleteStep(...e);
192
+ deleteScaleStep(...s) {
193
+ t(this, o).deleteStep(...s);
186
194
  }
187
195
  }
188
- a = new WeakMap(), m = new WeakMap(), p = new WeakMap(), _ = new WeakMap(), T = new WeakMap(), O = new WeakMap(), b = new WeakMap(), v = new WeakMap(), Z = new WeakMap(), y = new WeakMap(), M = new WeakMap(), L = new WeakMap(), S = new WeakMap(), d = new WeakMap(), x = new WeakMap(), P = new WeakMap(), X = new WeakMap(), A = new WeakMap(), f = new WeakMap(), z = new WeakMap(), g = new WeakMap(), c = new WeakMap(), r = new WeakMap(), l = new WeakMap(), W = new WeakSet(), F = function() {
189
- t(this, l).calculate(), t(this, r).calculate(), t(this, c).calculate();
190
- }, B = new WeakSet(), tt = function() {
191
- t(this, l).setStep("_size", "+", {
192
- x: t(this, b) ? t(this, y) : 1,
193
- y: t(this, b) ? t(this, M) : 1,
194
- z: t(this, b) ? t(this, L) : 1
196
+ a = new WeakMap(), f = new WeakMap(), p = new WeakMap(), _ = new WeakMap(), Z = new WeakMap(), P = new WeakMap(), x = new WeakMap(), E = new WeakMap(), A = new WeakMap(), y = new WeakMap(), M = new WeakMap(), L = new WeakMap(), S = new WeakMap(), d = new WeakMap(), v = new WeakMap(), X = new WeakMap(), Y = new WeakMap(), W = new WeakMap(), m = new WeakMap(), z = new WeakMap(), g = new WeakMap(), c = new WeakMap(), l = new WeakMap(), o = new WeakMap(), b = new WeakMap(), q = new WeakSet(), N = function() {
197
+ t(this, o).calculate(), t(this, l).calculate(), t(this, c).calculate();
198
+ }, D = new WeakSet(), it = function() {
199
+ t(this, o).setStep("_size", "+", {
200
+ x: t(this, x) ? t(this, y) : 1,
201
+ y: t(this, x) ? t(this, M) : 1,
202
+ z: t(this, x) ? t(this, L) : 1
195
203
  });
196
- const e = t(this, v) ? t(this, P) : 0, s = t(this, v) ? t(this, X) : 0, o = t(this, v) ? t(this, A) : 0;
197
- t(this, r).setStep("_position", "+", {
198
- x: e,
199
- y: s,
200
- z: o
201
- }), t(this, Z) ? (t(this, l).setStep("_scale", "*", {
204
+ const s = t(this, E) ? t(this, X) : 0, e = t(this, E) ? t(this, Y) : 0, r = t(this, E) ? t(this, W) : 0;
205
+ t(this, l).setStep("_position", "+", {
206
+ x: s,
207
+ y: e,
208
+ z: r
209
+ }), t(this, A) ? (t(this, o).setStep("_scale", "*", {
202
210
  x: t(this, g).x,
203
211
  y: t(this, g).y,
204
212
  z: t(this, g).z
205
- }), t(this, r).setStep("_translation", "+", {
206
- x: t(this, f).x,
207
- y: t(this, f).y,
208
- z: t(this, f).z
213
+ }), t(this, l).setStep("_translation", "+", {
214
+ x: t(this, m).x,
215
+ y: t(this, m).y,
216
+ z: t(this, m).z
209
217
  }), t(this, c).setStep("_rotation", "+", {
210
218
  x: t(this, z).x,
211
219
  y: t(this, z).y,
212
220
  z: t(this, z).z
213
- })) : (t(this, l).setStep("_scale", "*", {
221
+ })) : (t(this, o).setStep("_scale", "*", {
214
222
  x: 1,
215
223
  y: 1,
216
224
  z: 1
217
- }), t(this, r).setStep("_translation", "+", {
225
+ }), t(this, l).setStep("_translation", "+", {
218
226
  x: 0,
219
227
  y: 0,
220
228
  z: 0
@@ -223,35 +231,35 @@ a = new WeakMap(), m = new WeakMap(), p = new WeakMap(), _ = new WeakMap(), T =
223
231
  y: 0,
224
232
  z: 0
225
233
  }));
226
- }, D = new WeakSet(), et = function() {
227
- const e = getComputedStyle(t(this, a));
234
+ }, U = new WeakSet(), ht = function() {
235
+ const s = getComputedStyle(t(this, a));
228
236
  n(this, y, Math.max(t(this, a).clientWidth, 1)), n(this, M, Math.max(t(this, a).clientHeight, 1)), n(this, L, Math.max(
229
- lt.parse(e.getPropertyValue("--depth") || "0px"),
237
+ ct.parse(s.getPropertyValue("--depth") || "0px"),
230
238
  1
231
239
  ));
232
- const s = K(t(this, m)), o = $(t(this, m)), Y = t(this, m).clientWidth, H = t(this, m).clientHeight;
233
- if (n(this, d, K(t(this, a)) - s), n(this, S, $(t(this, a)) - o), t(this, _) === "z") {
234
- const C = t(this, d) / Y, R = t(this, S) / H;
235
- n(this, d, (C - Math.floor(C)) * Y), n(this, S, (R - Math.floor(R)) * H), t(this, T) === "left" ? n(this, x, K(t(this, a)) - s - t(this, d)) : n(this, x, $(t(this, a)) - o - t(this, S));
240
+ const e = G(t(this, f)), r = J(t(this, f)), H = t(this, f).clientWidth, T = t(this, f).clientHeight;
241
+ if (n(this, d, G(t(this, a)) - e), n(this, S, J(t(this, a)) - r), t(this, _) === "z") {
242
+ const R = t(this, d) / H, C = t(this, S) / T;
243
+ n(this, d, (R - Math.floor(R)) * H), n(this, S, (C - Math.floor(C)) * T), t(this, Z) === "left" ? n(this, v, G(t(this, a)) - e - t(this, d)) : n(this, v, J(t(this, a)) - r - t(this, S));
236
244
  }
237
- if (n(this, d, t(this, d) + t(this, a).clientLeft), n(this, S, t(this, S) + t(this, a).clientTop), t(this, O)) {
238
- const C = Math.round(Y / 2), R = Math.round(H / 2), it = t(this, y) ? Math.round(t(this, y) / 2) : 0, ht = t(this, M) ? Math.round(t(this, M) / 2) : 0, nt = t(this, d) - C + it, rt = (t(this, S) - R + ht) * -1;
239
- n(this, P, nt), n(this, X, rt);
245
+ if (n(this, d, t(this, d) + t(this, a).clientLeft), n(this, S, t(this, S) + t(this, a).clientTop), t(this, P)) {
246
+ const R = Math.round(H / 2), C = Math.round(T / 2), rt = t(this, y) ? Math.round(t(this, y) / 2) : 0, lt = t(this, M) ? Math.round(t(this, M) / 2) : 0, ot = t(this, d) - R + rt, at = (t(this, S) - C + lt) * -1;
247
+ n(this, X, ot), n(this, Y, at);
240
248
  } else
241
- n(this, P, t(this, d)), n(this, X, t(this, S));
242
- n(this, A, t(this, x) * -1);
243
- const U = new WebKitCSSMatrix(e.transform), u = ut(U);
244
- t(this, f).x = u.translationX, t(this, f).y = u.translationY, t(this, f).z = u.translationZ, t(this, g).x = u.scaleX, t(this, g).y = u.scaleY, t(this, g).z = u.scaleZ, t(this, z).x = u.rotationX, t(this, z).y = u.rotationY, t(this, z).z = u.rotationZ, E(this, B, tt).call(this), E(this, W, F).call(this);
245
- }, V = new WeakSet(), st = function() {
246
- for (let e = 0; e < t(this, p).length; e++) {
247
- const s = t(this, p)[e]();
248
- let o = s.axis;
249
- t(this, _) !== "auto" && (o = t(this, _)), t(this, r).setStep(`_scroll_${e}`, "+", {
250
- [o]: s.value * (o === "x" ? -1 : t(this, O) ? 1 : -1)
249
+ n(this, X, t(this, d)), n(this, Y, t(this, S));
250
+ n(this, W, t(this, v) * -1);
251
+ const I = new WebKitCSSMatrix(s.transform), u = dt(I);
252
+ t(this, m).x = u.translationX, t(this, m).y = u.translationY, t(this, m).z = u.translationZ, t(this, g).x = u.scaleX, t(this, g).y = u.scaleY, t(this, g).z = u.scaleZ, t(this, z).x = u.rotationX, t(this, z).y = u.rotationY, t(this, z).z = u.rotationZ, O(this, D, it).call(this), O(this, q, N).call(this);
253
+ }, k = new WeakSet(), nt = function() {
254
+ for (let s = 0; s < t(this, p).length; s++) {
255
+ const e = t(this, p)[s]();
256
+ let r = e.axis;
257
+ t(this, _) !== "auto" && (r = t(this, _)), t(this, l).setStep(`_scroll_${s}`, "+", {
258
+ [r]: e.value * (r === "x" ? -1 : t(this, P) ? 1 : -1)
251
259
  });
252
260
  }
253
- }, w = new WeakMap(), q = new WeakMap();
261
+ }, w = new WeakMap(), B = new WeakMap(), V = new WeakMap();
254
262
  export {
255
263
  vt as LayoutBox,
256
- ut as decomposeCSSMatrix
264
+ dt as decomposeCSSMatrix
257
265
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const b=require("../browser-CpzFX2xg.cjs"),s=require("../tags-CK7mk_EP.cjs"),m=require("../createStylesheet-W0b965g0.cjs"),g=require("../popover/index.cjs"),d=require("../theme/index.cjs");var w=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=(t,e,o,r)=>{for(var n=r>1?void 0:r?_(e,o):e,c=t.length-1,h;c>=0;c--)(h=t[c])&&(n=(r?h(e,o,n):h(n))||n);return r&&n&&w(e,o,n),n},p=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)},l=(t,e,o)=>(p(t,e,"read from private field"),o?o.call(t):e.get(t)),u=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)},f=(t,e,o,r)=>(p(t,e,"write to private field"),r?r.call(t,o):e.set(t,o),o),i,a;const C=m.createStylesheet({":host":{position:"fixed",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%",transitionProperty:"opacity",transitionDuration:d.aptechkaTheme.durationShort.var},":host::before":{content:'""',position:"fixed",top:"0",left:"0",zIndex:"-1",width:"100%",height:"100%",backgroundColor:"var(--backdrop, rgba(0, 0, 0, 0.8))"},".inner":{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden auto"},".overflow .inner":{alignItems:"flex-start"},".content":{position:"relative"},".close-button":{position:"absolute",zIndex:"1",top:"var(--close-button-top, 0.5em)",right:"var(--close-button-right, 0.5em)",background:"none",border:"none",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit"},".close-button-default":{width:"var(--close-button-size, 1.5em)",height:"var(--close-button-size, 1.5em)",display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"transform",transitionDuration:d.aptechkaTheme.durationShort.var,willChange:"transform"},".close-button:hover .close-button-default":{transform:"scale(0.9)"},".close-button:active .close-button-default":{transform:"scale(0.7)"},".close-button-default::before, .close-button-default::after":{content:'""',position:"absolute",width:"var(--close-button-thickness, 0.1em)",height:"100%",backgroundColor:`var(--close-button-color, ${d.aptechkaTheme.colorDark.var})`},".close-button-default::before":{transform:"rotate(-45deg)"},".close-button-default::after":{transform:"rotate(45deg)"}});exports.ModalElement=class extends g.PopoverElement{constructor(){super(),u(this,i,null),u(this,a,null),b.isBrowser&&(this.openShadow(C),s.element(this,{children:s.div({class:"inner",outside:!0,children:s.div({class:"content",children:[s.element("e-popover-button",{type:"close",target:this.id,class:"close-button",lightChildren:[s.slot({name:"close-button",children:s.span({class:"close-button-default"})})]}),s.slot()]}),ref:e=>f(this,a,e)})}),f(this,i,new ResizeObserver(()=>{l(this,a).scrollHeight>l(this,a).clientHeight?this.classList.add("overflow"):this.classList.remove("overflow")})))}connectedCallback(){super.connectedCallback(),l(this,i).observe(this)}disconnectedCallback(){super.disconnectedCallback(),l(this,i).disconnect()}};i=new WeakMap;a=new WeakMap;exports.ModalElement=y([v.define("e-modal")],exports.ModalElement);
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("../custom-element/index.cjs");require("../Store-C-1ruEIm.cjs");const b=require("../browser-CpzFX2xg.cjs"),s=require("../tags-Djb6mb1o.cjs"),m=require("../createStylesheet-CqHU9_qv.cjs"),g=require("../popover/index.cjs"),d=require("../theme/index.cjs");var w=Object.defineProperty,_=Object.getOwnPropertyDescriptor,y=(t,e,o,r)=>{for(var n=r>1?void 0:r?_(e,o):e,c=t.length-1,h;c>=0;c--)(h=t[c])&&(n=(r?h(e,o,n):h(n))||n);return r&&n&&w(e,o,n),n},p=(t,e,o)=>{if(!e.has(t))throw TypeError("Cannot "+o)},l=(t,e,o)=>(p(t,e,"read from private field"),o?o.call(t):e.get(t)),u=(t,e,o)=>{if(e.has(t))throw TypeError("Cannot add the same private member more than once");e instanceof WeakSet?e.add(t):e.set(t,o)},f=(t,e,o,r)=>(p(t,e,"write to private field"),r?r.call(t,o):e.set(t,o),o),i,a;const C=m.createStylesheet({":host":{position:"fixed",top:"0",left:"0",zIndex:"1",width:"100%",height:"100%",transitionProperty:"opacity",transitionDuration:d.aptechkaTheme.durationShort.var},":host::before":{content:'""',position:"fixed",top:"0",left:"0",zIndex:"-1",width:"100%",height:"100%",backgroundColor:"var(--backdrop, rgba(0, 0, 0, 0.8))"},".inner":{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden auto"},".overflow .inner":{alignItems:"flex-start"},".content":{position:"relative"},".close-button":{position:"absolute",zIndex:"1",top:"var(--close-button-top, 0.5em)",right:"var(--close-button-right, 0.5em)",background:"none",border:"none",fontFamily:"inherit",fontSize:"inherit",fontWeight:"inherit"},".close-button-default":{width:"var(--close-button-size, 1.5em)",height:"var(--close-button-size, 1.5em)",display:"flex",alignItems:"center",justifyContent:"center",transitionProperty:"transform",transitionDuration:d.aptechkaTheme.durationShort.var,willChange:"transform"},".close-button:hover .close-button-default":{transform:"scale(0.9)"},".close-button:active .close-button-default":{transform:"scale(0.7)"},".close-button-default::before, .close-button-default::after":{content:'""',position:"absolute",width:"var(--close-button-thickness, 0.1em)",height:"100%",backgroundColor:`var(--close-button-color, ${d.aptechkaTheme.colorDark.var})`},".close-button-default::before":{transform:"rotate(-45deg)"},".close-button-default::after":{transform:"rotate(45deg)"}});exports.ModalElement=class extends g.PopoverElement{constructor(){super(),u(this,i,null),u(this,a,null),b.isBrowser&&(this.openShadow(C),s.element(this,{children:s.div({class:"inner",outside:!0,children:s.div({class:"content",children:[s.element("e-popover-button",{type:"close",target:this.id,class:"close-button",lightChildren:[s.slot({name:"close-button",children:s.span({class:"close-button-default"})})]}),s.slot()]}),ref:e=>f(this,a,e)})}),f(this,i,new ResizeObserver(()=>{l(this,a).scrollHeight>l(this,a).clientHeight?this.classList.add("overflow"):this.classList.remove("overflow")})))}connectedCallback(){super.connectedCallback(),l(this,i).observe(this)}disconnectedCallback(){super.disconnectedCallback(),l(this,i).disconnect()}};i=new WeakMap;a=new WeakMap;exports.ModalElement=y([v.define("e-modal")],exports.ModalElement);
@@ -1,8 +1,8 @@
1
1
  import { define as g } from "../custom-element/index.js";
2
2
  import "../Store-BQXXikps.js";
3
3
  import { i as w } from "../browser-0zX67oeU.js";
4
- import { e as d, D as f, ay as u, aB as _ } from "../tags-D0zt3vue.js";
5
- import { c as y } from "../createStylesheet-D6C3BPkl.js";
4
+ import { e as d, D as f, ay as u, aB as _ } from "../tags-CMPg9ETZ.js";
5
+ import { c as y } from "../createStylesheet-DBCEbDjI.js";
6
6
  import { PopoverElement as C } from "../popover/index.js";
7
7
  import { aptechkaTheme as h } from "../theme/index.js";
8
8
  var k = Object.defineProperty, x = Object.getOwnPropertyDescriptor, z = (t, e, o, r) => {
@@ -1 +1 @@
1
- "use strict";function s(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function c(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Node)return e;const t=Array.isArray(e)?[]:{};for(const r in e)e.hasOwnProperty(r)&&(t[r]=c(e[r]));return t}function f(e,t,r=s){for(const n in t)r(t[n])?(e[n]||Object.assign(e,{[n]:{}}),f(e[n],t[n],r)):Object.assign(e,{[n]:t[n]});return e}function u(e){return e===null||typeof e=="undefined"}function i(e,t){if(typeof e!=typeof t)return!1;if([e,t].some(r=>u(r)))return e===t;if(Array.isArray(e)){const r=e.length>t.length?e:t,n=e.length>t.length?t:e;return r.every((o,p)=>i(o,n[p]))}if(typeof e!="object"||e instanceof Node||typeof e=="object"&&e.constructor.toString().startsWith("class"))return e===t;for(const r in e){if(!t.hasOwnProperty(r))return!1;if(typeof e[r]=="object"&&typeof t[r]=="object"){if(!i(e[r],t[r]))return!1}else if(e[r]!==t[r])return!1}return!0}function y(e,t){const r={};for(const n in e)t.includes(n)&&(r[n]=e[n]);return r}function l(e,t){const r={};for(const n in e)t.includes(n)||(r[n]=e[n]);return r}function a(e){var t;return typeof e=="function"&&((t=Object.getOwnPropertyDescriptor(e,"prototype"))==null?void 0:t.writable)===!1}function O(e,...t){t.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(n=>{console.log(n),Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(r.prototype,n)||Object.create(null))})})}exports.cloneDeep=c;exports.compareObjects=i;exports.isESClass=a;exports.isNullish=u;exports.isObject=s;exports.mergeDeep=f;exports.mixin=O;exports.omit=l;exports.pick=y;
1
+ "use strict";function s(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function f(e){if(e===null||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Node)return e;const t=Array.isArray(e)?[]:{};for(const r in e)e.hasOwnProperty(r)&&(t[r]=f(e[r]));return t}function c(e,t,r=s){for(const n in t)r(t[n])?(e[n]||Object.assign(e,{[n]:{}}),c(e[n],t[n],r)):Object.assign(e,{[n]:t[n]});return e}function u(e){return e===null||typeof e=="undefined"}function i(e,t){if(typeof e!=typeof t)return!1;if([e,t].some(r=>u(r)))return e===t;if(Array.isArray(e)){const r=e.length>t.length?e:t,n=e.length>t.length?t:e;return r.every((p,y)=>i(p,n[y]))}if(typeof e!="object"||e instanceof Node||typeof e=="object"&&e.constructor.toString().startsWith("class"))return e===t;for(const r in e){if(!t.hasOwnProperty(r))return!1;if(typeof e[r]=="object"&&typeof t[r]=="object"){if(!i(e[r],t[r]))return!1}else if(e[r]!==t[r])return!1}return!0}function l(e,t){const r={};for(const n in e)t.includes(n)&&(r[n]=e[n]);return r}function o(e,t){const r={};for(const n in e)t.includes(n)||(r[n]=e[n]);return r}function a(e){var t;return typeof e=="function"&&((t=Object.getOwnPropertyDescriptor(e,"prototype"))==null?void 0:t.writable)===!1}function O(e,...t){t.forEach(r=>{Object.getOwnPropertyNames(r.prototype).forEach(n=>{Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(r.prototype,n)||Object.create(null))})})}exports.cloneDeep=f;exports.compareObjects=i;exports.isESClass=a;exports.isNullish=u;exports.isObject=s;exports.mergeDeep=c;exports.mixin=O;exports.omit=o;exports.pick=l;