aptechka 0.82.4 → 0.82.6

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 (134) hide show
  1. package/lib/{Animation-DxtCzFP3.js → Animation-BzTjZIE-.js} +2 -2
  2. package/lib/{Animation-jmvFcNfM.cjs → Animation-C39Ah-LM.cjs} +1 -1
  3. package/lib/{Composed-DtS09lSU.js → Composed-C-mnUGX6.js} +2 -2
  4. package/lib/{Composed-CSeUTRCg.cjs → Composed-RFcm2x5c.cjs} +1 -1
  5. package/lib/{Damped-DMnIOXpC.js → Damped-CRusiRIV.js} +2 -2
  6. package/lib/{Damped-77Urmi3q.cjs → Damped-Prr0iKu1.cjs} +1 -1
  7. package/lib/{DerivedArray-B8A0-8uT.cjs → DerivedArray-DdCR-Oy7.cjs} +1 -1
  8. package/lib/{DerivedArray-DG9iR0mf.js → DerivedArray-opbeygTL.js} +1 -1
  9. package/lib/{DragControls-BlL26P1V.cjs → DragControls-8rNZwQrs.cjs} +1 -1
  10. package/lib/{DragControls-DCC8iEOR.js → DragControls-DBNdMBA4.js} +4 -4
  11. package/lib/{LocalLinks-Bua7BGRF.cjs → LocalLinks-Baf0xWZ3.cjs} +1 -1
  12. package/lib/{LocalLinks-TQkTpAMx.js → LocalLinks-Z9pxKguG.js} +2 -2
  13. package/lib/{PageAnnouncerElement-sfh0_4vl.js → PageAnnouncerElement-0LxZjtVH.js} +1 -1
  14. package/lib/{PageAnnouncerElement-C4k2kDJ5.cjs → PageAnnouncerElement-AQ0Ja6HM.cjs} +1 -1
  15. package/lib/{PageScroll-cQ3B5-6N.js → PageScroll-0LxFblry.js} +1 -1
  16. package/lib/{PageScroll-C7QBpx0G.cjs → PageScroll-BXJUQwG7.cjs} +1 -1
  17. package/lib/{SourceElement-TzgPNQOd.cjs → SourceElement-BHqPFbna.cjs} +1 -1
  18. package/lib/{SourceElement-BQ7g2KWK.js → SourceElement-DjbHjynf.js} +2 -2
  19. package/lib/{Store-1JrMCgdX.cjs → Store-Blf4msDz.cjs} +1 -1
  20. package/lib/{Store-CgQ3ReoB.js → Store-ZThXYBQd.js} +1 -1
  21. package/lib/{Tweened-lT68VACv.js → Tweened-Bw1Cn1PJ.js} +2 -2
  22. package/lib/{Tweened-CXQrFQth.cjs → Tweened-DWtk9E-O.cjs} +1 -1
  23. package/lib/{Viewport-Cx50Hufs.cjs → Viewport-BxCr0GlB.cjs} +1 -1
  24. package/lib/{Viewport-DGnJ31b4.js → Viewport-Dt-d9DPi.js} +2 -2
  25. package/lib/accordion/index.cjs +1 -1
  26. package/lib/accordion/index.js +1 -1
  27. package/lib/animation/index.cjs +1 -1
  28. package/lib/animation/index.js +3 -3
  29. package/lib/attribute/index.cjs +1 -1
  30. package/lib/attribute/index.js +3 -3
  31. package/lib/billboard/index.cjs +1 -1
  32. package/lib/billboard/index.js +2 -2
  33. package/lib/canvas/index.cjs +1 -1
  34. package/lib/canvas/index.js +2 -2
  35. package/lib/controls/index.cjs +1 -1
  36. package/lib/controls/index.js +1 -1
  37. package/lib/css-property/index.cjs +1 -1
  38. package/lib/css-property/index.js +3 -3
  39. package/lib/css-value-parser/index.cjs +1 -1
  40. package/lib/css-value-parser/index.js +1 -1
  41. package/lib/dev/index.cjs +1 -1
  42. package/lib/dev/index.js +2 -2
  43. package/lib/device/index.cjs +1 -1
  44. package/lib/device/index.js +1 -1
  45. package/lib/dom-BETkVSSZ.js +82 -0
  46. package/lib/dom-CBLlqORw.cjs +1 -0
  47. package/lib/element-linked-store/index.cjs +1 -1
  48. package/lib/element-linked-store/index.js +2 -2
  49. package/lib/element-resizer/index.cjs +1 -1
  50. package/lib/element-resizer/index.js +2 -2
  51. package/lib/en3/index.cjs +1 -1
  52. package/lib/en3/index.js +2 -2
  53. package/lib/iframe/index.cjs +1 -1
  54. package/lib/iframe/index.js +3 -3
  55. package/lib/image/index.cjs +1 -1
  56. package/lib/image/index.js +4 -4
  57. package/lib/{index-CKTweR3M.cjs → index-OE2INULi.cjs} +1 -1
  58. package/lib/{index-LReFyN6i.js → index-e9eDuagL.js} +1 -1
  59. package/lib/intersector/index.cjs +1 -1
  60. package/lib/intersector/index.js +2 -2
  61. package/lib/jsx/index.cjs +1 -1
  62. package/lib/jsx/index.js +6 -6
  63. package/lib/ladder/index.cjs +1 -1
  64. package/lib/ladder/index.js +2 -2
  65. package/lib/layout-box/index.cjs +1 -1
  66. package/lib/layout-box/index.js +2 -2
  67. package/lib/loading/index.cjs +1 -1
  68. package/lib/loading/index.js +1 -1
  69. package/lib/local-links/index.cjs +1 -1
  70. package/lib/local-links/index.js +1 -1
  71. package/lib/masonry-layout/index.cjs +1 -1
  72. package/lib/masonry-layout/index.js +2 -2
  73. package/lib/media/index.cjs +1 -1
  74. package/lib/media/index.js +2 -2
  75. package/lib/morph/index.cjs +1 -1
  76. package/lib/morph/index.js +293 -300
  77. package/lib/{morph-BQErz7qP.js → morph-D_ybmXWR.js} +8 -8
  78. package/lib/need_redo_tweaker/index.cjs +1 -1
  79. package/lib/need_redo_tweaker/index.js +3 -3
  80. package/lib/page-announcer/index.cjs +1 -1
  81. package/lib/page-announcer/index.js +1 -1
  82. package/lib/page-scroll/index.cjs +1 -1
  83. package/lib/page-scroll/index.js +1 -1
  84. package/lib/pixel-perfect/index.cjs +1 -1
  85. package/lib/pixel-perfect/index.js +3 -3
  86. package/lib/pointer/index.cjs +1 -1
  87. package/lib/pointer/index.js +4 -4
  88. package/lib/popover/index.cjs +1 -1
  89. package/lib/popover/index.js +2 -2
  90. package/lib/radio/index.cjs +1 -1
  91. package/lib/radio/index.js +1 -1
  92. package/lib/render-1u700s93.js +212 -0
  93. package/lib/render-BIOfUddT.cjs +1 -0
  94. package/lib/router/Route.d.ts +9 -0
  95. package/lib/router/index.cjs +1 -1
  96. package/lib/router/index.js +154 -139
  97. package/lib/scroll/index.cjs +1 -1
  98. package/lib/scroll/index.js +8 -8
  99. package/lib/{scroll-DxcPU0vk.cjs → scroll-BA2WnUrb.cjs} +1 -1
  100. package/lib/{scroll-jcbHDexr.js → scroll-DY5senkF.js} +2 -2
  101. package/lib/scroll-entries/index.cjs +1 -1
  102. package/lib/scroll-entries/index.js +1 -1
  103. package/lib/scroll-kit/index.cjs +1 -1
  104. package/lib/scroll-kit/index.js +4 -4
  105. package/lib/sequence/index.cjs +1 -1
  106. package/lib/sequence/index.js +3 -3
  107. package/lib/size-element/index.cjs +1 -1
  108. package/lib/size-element/index.js +1 -1
  109. package/lib/slicer/index.cjs +1 -1
  110. package/lib/slicer/index.js +1 -1
  111. package/lib/source/index.cjs +1 -1
  112. package/lib/source/index.js +1 -1
  113. package/lib/spa/index.cjs +1 -1
  114. package/lib/spa/index.js +5 -5
  115. package/lib/store/index.cjs +1 -1
  116. package/lib/store/index.js +3 -3
  117. package/lib/{stylesheet-BcwbfhBp.cjs → stylesheet-5_o7PFzM.cjs} +1 -1
  118. package/lib/{stylesheet-DbHOxtjw.js → stylesheet-DdBzowZY.js} +1 -1
  119. package/lib/ticker/index.cjs +1 -1
  120. package/lib/ticker/index.js +2 -2
  121. package/lib/utils/dom.d.ts +3 -0
  122. package/lib/utils/index.cjs +1 -1
  123. package/lib/utils/index.js +129 -126
  124. package/lib/video/index.cjs +1 -1
  125. package/lib/video/index.js +3 -3
  126. package/lib/window-resizer/index.cjs +1 -1
  127. package/lib/window-resizer/index.js +1 -1
  128. package/lib/youtube/index.cjs +1 -1
  129. package/lib/youtube/index.js +3 -3
  130. package/package.json +1 -1
  131. package/lib/dom-BIeVMHfK.js +0 -57
  132. package/lib/dom-hTEdqeoj.cjs +0 -1
  133. package/lib/render-B3Hf-O7M.js +0 -205
  134. package/lib/render-BWjKu0M_.cjs +0 -1
@@ -229,14 +229,14 @@ export {
229
229
  R as a,
230
230
  P as b,
231
231
  M as c,
232
- D as d,
233
- v as e,
234
- L as f,
235
- V as g,
236
- S as h,
237
- Y as i,
238
- $ as j,
239
- p as k,
232
+ p as d,
233
+ D as e,
234
+ v as f,
235
+ L as g,
236
+ V as h,
237
+ S as i,
238
+ Y as j,
239
+ $ as k,
240
240
  w as m,
241
241
  O as p
242
242
  };
@@ -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-CKTweR3M.cjs");require("construct-style-sheets-polyfill");require("../ticker/index.cjs");const m=require("../Store-1JrMCgdX.cjs"),Yt=require("../file-DSpfWdd9.cjs"),Gt=require("../function-MthRj-GJ.cjs"),St=require("../gestures-C7gbKx11.cjs"),Ut=require("../connector/index.cjs"),pe=require("../string-DUXXtU8v.cjs"),bt=require("../object-baN9pgbU.cjs"),Xt=require("../Viewport-Cx50Hufs.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
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-OE2INULi.cjs");require("construct-style-sheets-polyfill");require("../ticker/index.cjs");const m=require("../Store-Blf4msDz.cjs"),Yt=require("../file-DSpfWdd9.cjs"),Gt=require("../function-MthRj-GJ.cjs"),St=require("../gestures-C7gbKx11.cjs"),Ut=require("../connector/index.cjs"),pe=require("../string-DUXXtU8v.cjs"),bt=require("../object-baN9pgbU.cjs"),Xt=require("../Viewport-BxCr0GlB.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"
@@ -3,17 +3,17 @@ var vt = (r) => {
3
3
  };
4
4
  var Xe = (r, s, e) => s.has(r) || vt("Cannot " + e);
5
5
  var t = (r, s, e) => (Xe(r, s, "read from private field"), e ? e.call(r) : s.get(r)), o = (r, s, e) => s.has(r) ? vt("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(r) : s.set(r, e), c = (r, s, e, i) => (Xe(r, s, "write to private field"), i ? i.call(r, e) : s.set(r, e), e), l = (r, s, e) => (Xe(r, s, "access private method"), e);
6
- import { i as p } from "../index-LReFyN6i.js";
6
+ import { i as p } from "../index-e9eDuagL.js";
7
7
  import "construct-style-sheets-polyfill";
8
8
  import "../ticker/index.js";
9
- import { S as $, s as K, a as j } from "../Store-CgQ3ReoB.js";
9
+ import { S as $, s as K, a as j } from "../Store-ZThXYBQd.js";
10
10
  import { c as Ut } from "../file-GHShUlue.js";
11
11
  import { d as Xt } from "../function-C10DGppn.js";
12
12
  import { s as Et } from "../gestures-CcXV6fCp.js";
13
13
  import { connector as Qt } from "../connector/index.js";
14
14
  import { c as Oe, u as jt } from "../string-BlMQbe8b.js";
15
15
  import { i as yt } from "../object-CcMK4y_r.js";
16
- import { a as es } from "../Viewport-DGnJ31b4.js";
16
+ import { a as es } from "../Viewport-Dt-d9DPi.js";
17
17
  import { c as ts } from "../math-BOBiC4TN.js";
18
18
  import { t as ss } from "../number-CumqY64S.js";
19
19
  import { n as St } from "../polyfills-DJrTJQky.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../PageAnnouncerElement-C4k2kDJ5.cjs");exports.PageAnnouncerElement=e.PageAnnouncerElement;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../PageAnnouncerElement-AQ0Ja6HM.cjs");exports.PageAnnouncerElement=e.PageAnnouncerElement;
@@ -1,4 +1,4 @@
1
- import { P as o } from "../PageAnnouncerElement-sfh0_4vl.js";
1
+ import { P as o } from "../PageAnnouncerElement-0LxZjtVH.js";
2
2
  export {
3
3
  o as PageAnnouncerElement
4
4
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../PageScroll-C7QBpx0G.cjs");exports.PageScroll=e.PageScroll;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../PageScroll-BXJUQwG7.cjs");exports.PageScroll=e.PageScroll;
@@ -1,4 +1,4 @@
1
- import { P as a } from "../PageScroll-cQ3B5-6N.js";
1
+ import { P as a } from "../PageScroll-0LxFblry.js";
2
2
  export {
3
3
  a as PageScroll
4
4
  };
@@ -1,4 +1,4 @@
1
- "use strict";var y=e=>{throw TypeError(e)};var f=(e,s,t)=>s.has(e)||y("Cannot "+t);var i=(e,s,t)=>(f(e,s,"read from private field"),t?t.call(e):s.get(e)),r=(e,s,t)=>s.has(e)?y("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),c=(e,s,t,l)=>(f(e,s,"write to private field"),l?l.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../dom-hTEdqeoj.cjs"),v=require("../stylesheet-BcwbfhBp.cjs");require("../index-CKTweR3M.cjs");const E=v.createStylesheet(`
1
+ "use strict";var y=e=>{throw TypeError(e)};var f=(e,s,t)=>s.has(e)||y("Cannot "+t);var i=(e,s,t)=>(f(e,s,"read from private field"),t?t.call(e):s.get(e)),r=(e,s,t)=>s.has(e)?y("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(e):s.set(e,t),c=(e,s,t,l)=>(f(e,s,"write to private field"),l?l.call(e,t):s.set(e,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const x=require("../dom-CBLlqORw.cjs"),v=require("../stylesheet-5_o7PFzM.cjs");require("../index-OE2INULi.cjs");const E=v.createStylesheet(`
2
2
  :host {
3
3
  position: fixed;
4
4
  top: 0;
@@ -3,9 +3,9 @@ var f = (e) => {
3
3
  };
4
4
  var y = (e, s, t) => s.has(e) || f("Cannot " + t);
5
5
  var i = (e, s, t) => (y(e, s, "read from private field"), t ? t.call(e) : s.get(e)), r = (e, s, t) => s.has(e) ? f("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), c = (e, s, t, l) => (y(e, s, "write to private field"), l ? l.call(e, t) : s.set(e, t), t);
6
- import { f as x } from "../dom-BIeVMHfK.js";
7
- import { c as g } from "../stylesheet-DbHOxtjw.js";
8
- import "../index-LReFyN6i.js";
6
+ import { f as x } from "../dom-BETkVSSZ.js";
7
+ import { c as g } from "../stylesheet-DdBzowZY.js";
8
+ import "../index-e9eDuagL.js";
9
9
  const v = g(
10
10
  /*css*/
11
11
  `
@@ -1 +1 @@
1
- "use strict";var I=Object.defineProperty;var B=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var j=i=>{throw TypeError(i)};var W=(i,s,t)=>s in i?I(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t,O=(i,s)=>{for(var t in s||(s={}))J.call(s,t)&&W(i,t,s[t]);if(B)for(var t of B(s))K.call(s,t)&&W(i,t,s[t]);return i};var _=(i,s,t)=>s.has(i)||j("Cannot "+t);var e=(i,s,t)=>(_(i,s,"read from private field"),t?t.call(i):s.get(i)),r=(i,s,t)=>s.has(i)?j("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,t),h=(i,s,t,l)=>(_(i,s,"write to private field"),l?l.call(i,t):s.set(i,t),t),H=(i,s,t)=>(_(i,s,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-1JrMCgdX.cjs");const M=require("../coordinates-D8Np3cPD.cjs"),N=require("../dom-hTEdqeoj.cjs"),X=require("../math-GDWEqu7y.cjs");require("construct-style-sheets-polyfill");const Q=require("../index-CKTweR3M.cjs");require("../ticker/index.cjs");const T=require("../Damped-77Urmi3q.cjs"),Y=require("../element-resizer/index.cjs"),A=require("../window-resizer/index.cjs"),C=require("../css-property/index.cjs");var c,u,a,f,m,d,g,y,p,S,z,E,q,b,L,k;class F{constructor(s){r(this,L);r(this,c);r(this,u);r(this,a);r(this,f);r(this,m);r(this,d);r(this,g,!1);r(this,y,0);r(this,p,0);r(this,S,!1);r(this,z,s=>{h(this,S,!0);const t=H(this,L,k).call(this,s);e(this,u).set(t.x,{equalize:!0}),e(this,a).set(t.y,{equalize:!0}),e(this,f).set(1)});r(this,E,s=>{h(this,S,!1),e(this,f).set(0)});r(this,q,s=>{e(this,S)||e(this,z).call(this,s);const t=H(this,L,k).call(this,s);e(this,u).set(t.x),e(this,a).set(t.y)});r(this,b,()=>{e(this,g)?(h(this,y,document.documentElement.clientWidth),h(this,p,innerHeight)):(h(this,y,this.element.clientWidth),h(this,p,this.element.clientHeight));let s=0,t=0,l=0,o=0;e(this,m)?e(this,d)?(s=-1,t=1,l=-1,o=1):(s=e(this,y)/2*-1,t=e(this,y)/2*1,l=e(this,p)/2*-1,o=e(this,p)/2*1):e(this,d)?(s=0,t=1,l=0,o=1):(s=0,t=e(this,y),l=0,o=e(this,p)),e(this,u).min=s,e(this,u).max=t,e(this,a).min=l,e(this,a).max=o});h(this,c,N.getElement(s.element)),h(this,u,new T.Damped(0,s.damped)),h(this,a,new T.Damped(0,s.damped)),h(this,f,new T.Damped(0,O({min:0,max:1},s.damped))),h(this,m,s.cartesian||!1),h(this,d,s.normalize||!1),h(this,g,s.fullScreen||!1)}get element(){return e(this,c)}get x(){return e(this,u)}get y(){return e(this,a)}get z(){return e(this,f)}get cartesian(){return e(this,m)}set cartesian(s){h(this,m,s),e(this,b).call(this)}get normalize(){return e(this,d)}set normalize(s){h(this,d,s),e(this,b).call(this)}connect(){e(this,c).addEventListener("pointerenter",e(this,z)),e(this,c).addEventListener("pointerleave",e(this,E)),e(this,c).addEventListener("pointermove",e(this,q)),Y.elementResizer.subscribe(e(this,c),e(this,b)),A.windowResizer.subscribe(e(this,b))}disconnect(){e(this,c).removeEventListener("pointerenter",e(this,z)),e(this,c).removeEventListener("pointerleave",e(this,E)),e(this,c).removeEventListener("pointermove",e(this,q)),Y.elementResizer.unsubscribe(e(this,b)),A.windowResizer.unsubscribe(e(this,b)),e(this,u).reset(),e(this,a).reset(),e(this,f).reset()}}c=new WeakMap,u=new WeakMap,a=new WeakMap,f=new WeakMap,m=new WeakMap,d=new WeakMap,g=new WeakMap,y=new WeakMap,p=new WeakMap,S=new WeakMap,z=new WeakMap,E=new WeakMap,q=new WeakMap,b=new WeakMap,L=new WeakSet,k=function(s){let t=null;e(this,g)?t={x:s.clientX,y:s.clientY}:t=M.getPointerPosition(s,e(this,c).getBoundingClientRect());const l={width:e(this,y),height:e(this,p)},o={x:t.x,y:t.y};if(e(this,m)){const x=M.screenToCartesian(o,l);o.x=x.x,o.y=x.y}if(e(this,d)){const x=M.normalize(o,l);e(this,m)?(o.x=X.clamp(x.x*2,-1,1),o.y=X.clamp(x.y*2,-1,1)):(o.x=x.x,o.y=x.y)}return o};var n,P,v,w,R,D;class G extends HTMLElement{constructor(){super();r(this,n);r(this,P,new C.CSSProperty(this,"--damping",20));r(this,v,new C.CSSProperty(this,"--mass",0));r(this,w,new C.CSSProperty(this,"--stiffness",0));r(this,R,new C.CSSProperty(this,"--cartesian",!1));r(this,D,new C.CSSProperty(this,"--normalize",!1));h(this,n,new F({element:this})),e(this,P).subscribe(t=>{e(this,n).x.damping=t.current,e(this,n).y.damping=t.current,e(this,n).z.damping=t.current}),e(this,R).subscribe(t=>{e(this,n).cartesian=t.current}),e(this,D).subscribe(t=>{e(this,n).normalize=t.current}),e(this,v).subscribe(t=>{e(this,n).x.mass=t.current,e(this,n).y.mass=t.current,e(this,n).z.mass=t.current}),e(this,w).subscribe(t=>{e(this,n).x.stiffness=t.current,e(this,n).y.stiffness=t.current,e(this,n).z.stiffness=t.current}),e(this,n).x.subscribe(t=>{this.style.setProperty("--x",t.current.toString())}),e(this,n).y.subscribe(t=>{this.style.setProperty("--y",t.current.toString())}),e(this,n).z.subscribe(t=>{this.style.setProperty("--z",t.current.toString())})}get pointer(){return e(this,n)}connectedCallback(){e(this,n).connect(),e(this,P).observe(),e(this,v).observe(),e(this,w).observe()}disconnectedCallback(){e(this,n).disconnect(),e(this,P).unobserve(),e(this,v).unobserve(),e(this,w).unobserve(),this.style.removeProperty("--x"),this.style.removeProperty("--y"),this.style.removeProperty("--z")}}n=new WeakMap,P=new WeakMap,v=new WeakMap,w=new WeakMap,R=new WeakMap,D=new WeakMap;Q.isBrowser&&!customElements.get("e-pointer")&&customElements.define("e-pointer",G);exports.Pointer=F;exports.PointerElement=G;
1
+ "use strict";var I=Object.defineProperty;var B=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable;var j=i=>{throw TypeError(i)};var W=(i,s,t)=>s in i?I(i,s,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[s]=t,O=(i,s)=>{for(var t in s||(s={}))J.call(s,t)&&W(i,t,s[t]);if(B)for(var t of B(s))K.call(s,t)&&W(i,t,s[t]);return i};var _=(i,s,t)=>s.has(i)||j("Cannot "+t);var e=(i,s,t)=>(_(i,s,"read from private field"),t?t.call(i):s.get(i)),r=(i,s,t)=>s.has(i)?j("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,t),h=(i,s,t,l)=>(_(i,s,"write to private field"),l?l.call(i,t):s.set(i,t),t),H=(i,s,t)=>(_(i,s,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../Store-Blf4msDz.cjs");const M=require("../coordinates-D8Np3cPD.cjs"),N=require("../dom-CBLlqORw.cjs"),X=require("../math-GDWEqu7y.cjs");require("construct-style-sheets-polyfill");const Q=require("../index-OE2INULi.cjs");require("../ticker/index.cjs");const T=require("../Damped-Prr0iKu1.cjs"),Y=require("../element-resizer/index.cjs"),A=require("../window-resizer/index.cjs"),C=require("../css-property/index.cjs");var c,u,a,f,m,d,g,y,p,S,z,E,q,b,L,k;class F{constructor(s){r(this,L);r(this,c);r(this,u);r(this,a);r(this,f);r(this,m);r(this,d);r(this,g,!1);r(this,y,0);r(this,p,0);r(this,S,!1);r(this,z,s=>{h(this,S,!0);const t=H(this,L,k).call(this,s);e(this,u).set(t.x,{equalize:!0}),e(this,a).set(t.y,{equalize:!0}),e(this,f).set(1)});r(this,E,s=>{h(this,S,!1),e(this,f).set(0)});r(this,q,s=>{e(this,S)||e(this,z).call(this,s);const t=H(this,L,k).call(this,s);e(this,u).set(t.x),e(this,a).set(t.y)});r(this,b,()=>{e(this,g)?(h(this,y,document.documentElement.clientWidth),h(this,p,innerHeight)):(h(this,y,this.element.clientWidth),h(this,p,this.element.clientHeight));let s=0,t=0,l=0,o=0;e(this,m)?e(this,d)?(s=-1,t=1,l=-1,o=1):(s=e(this,y)/2*-1,t=e(this,y)/2*1,l=e(this,p)/2*-1,o=e(this,p)/2*1):e(this,d)?(s=0,t=1,l=0,o=1):(s=0,t=e(this,y),l=0,o=e(this,p)),e(this,u).min=s,e(this,u).max=t,e(this,a).min=l,e(this,a).max=o});h(this,c,N.getElement(s.element)),h(this,u,new T.Damped(0,s.damped)),h(this,a,new T.Damped(0,s.damped)),h(this,f,new T.Damped(0,O({min:0,max:1},s.damped))),h(this,m,s.cartesian||!1),h(this,d,s.normalize||!1),h(this,g,s.fullScreen||!1)}get element(){return e(this,c)}get x(){return e(this,u)}get y(){return e(this,a)}get z(){return e(this,f)}get cartesian(){return e(this,m)}set cartesian(s){h(this,m,s),e(this,b).call(this)}get normalize(){return e(this,d)}set normalize(s){h(this,d,s),e(this,b).call(this)}connect(){e(this,c).addEventListener("pointerenter",e(this,z)),e(this,c).addEventListener("pointerleave",e(this,E)),e(this,c).addEventListener("pointermove",e(this,q)),Y.elementResizer.subscribe(e(this,c),e(this,b)),A.windowResizer.subscribe(e(this,b))}disconnect(){e(this,c).removeEventListener("pointerenter",e(this,z)),e(this,c).removeEventListener("pointerleave",e(this,E)),e(this,c).removeEventListener("pointermove",e(this,q)),Y.elementResizer.unsubscribe(e(this,b)),A.windowResizer.unsubscribe(e(this,b)),e(this,u).reset(),e(this,a).reset(),e(this,f).reset()}}c=new WeakMap,u=new WeakMap,a=new WeakMap,f=new WeakMap,m=new WeakMap,d=new WeakMap,g=new WeakMap,y=new WeakMap,p=new WeakMap,S=new WeakMap,z=new WeakMap,E=new WeakMap,q=new WeakMap,b=new WeakMap,L=new WeakSet,k=function(s){let t=null;e(this,g)?t={x:s.clientX,y:s.clientY}:t=M.getPointerPosition(s,e(this,c).getBoundingClientRect());const l={width:e(this,y),height:e(this,p)},o={x:t.x,y:t.y};if(e(this,m)){const x=M.screenToCartesian(o,l);o.x=x.x,o.y=x.y}if(e(this,d)){const x=M.normalize(o,l);e(this,m)?(o.x=X.clamp(x.x*2,-1,1),o.y=X.clamp(x.y*2,-1,1)):(o.x=x.x,o.y=x.y)}return o};var n,P,v,w,R,D;class G extends HTMLElement{constructor(){super();r(this,n);r(this,P,new C.CSSProperty(this,"--damping",20));r(this,v,new C.CSSProperty(this,"--mass",0));r(this,w,new C.CSSProperty(this,"--stiffness",0));r(this,R,new C.CSSProperty(this,"--cartesian",!1));r(this,D,new C.CSSProperty(this,"--normalize",!1));h(this,n,new F({element:this})),e(this,P).subscribe(t=>{e(this,n).x.damping=t.current,e(this,n).y.damping=t.current,e(this,n).z.damping=t.current}),e(this,R).subscribe(t=>{e(this,n).cartesian=t.current}),e(this,D).subscribe(t=>{e(this,n).normalize=t.current}),e(this,v).subscribe(t=>{e(this,n).x.mass=t.current,e(this,n).y.mass=t.current,e(this,n).z.mass=t.current}),e(this,w).subscribe(t=>{e(this,n).x.stiffness=t.current,e(this,n).y.stiffness=t.current,e(this,n).z.stiffness=t.current}),e(this,n).x.subscribe(t=>{this.style.setProperty("--x",t.current.toString())}),e(this,n).y.subscribe(t=>{this.style.setProperty("--y",t.current.toString())}),e(this,n).z.subscribe(t=>{this.style.setProperty("--z",t.current.toString())})}get pointer(){return e(this,n)}connectedCallback(){e(this,n).connect(),e(this,P).observe(),e(this,v).observe(),e(this,w).observe()}disconnectedCallback(){e(this,n).disconnect(),e(this,P).unobserve(),e(this,v).unobserve(),e(this,w).unobserve(),this.style.removeProperty("--x"),this.style.removeProperty("--y"),this.style.removeProperty("--z")}}n=new WeakMap,P=new WeakMap,v=new WeakMap,w=new WeakMap,R=new WeakMap,D=new WeakMap;Q.isBrowser&&!customElements.get("e-pointer")&&customElements.define("e-pointer",G);exports.Pointer=F;exports.PointerElement=G;
@@ -14,14 +14,14 @@ var W = (i, s, e) => s in i ? G(i, s, { enumerable: !0, configurable: !0, writab
14
14
  };
15
15
  var q = (i, s, e) => s.has(i) || X("Cannot " + e);
16
16
  var t = (i, s, e) => (q(i, s, "read from private field"), e ? e.call(i) : s.get(i)), r = (i, s, e) => s.has(i) ? X("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(i) : s.set(i, e), h = (i, s, e, m) => (q(i, s, "write to private field"), m ? m.call(i, e) : s.set(i, e), e), B = (i, s, e) => (q(i, s, "access private method"), e);
17
- import "../Store-CgQ3ReoB.js";
17
+ import "../Store-ZThXYBQd.js";
18
18
  import { g as K, s as N, n as O } from "../coordinates-CgdGoSYs.js";
19
- import { g as Q } from "../dom-BIeVMHfK.js";
19
+ import { g as Q } from "../dom-BETkVSSZ.js";
20
20
  import { c as j } from "../math-BOBiC4TN.js";
21
21
  import "construct-style-sheets-polyfill";
22
- import { i as U } from "../index-LReFyN6i.js";
22
+ import { i as U } from "../index-e9eDuagL.js";
23
23
  import "../ticker/index.js";
24
- import { D } from "../Damped-DMnIOXpC.js";
24
+ import { D } from "../Damped-CRusiRIV.js";
25
25
  import { elementResizer as A } from "../element-resizer/index.js";
26
26
  import { windowResizer as F } from "../window-resizer/index.js";
27
27
  import { CSSProperty as E } from "../css-property/index.js";
@@ -1 +1 @@
1
- "use strict";var he=c=>{throw TypeError(c)};var se=(c,n,t)=>n.has(c)||he("Cannot "+t);var e=(c,n,t)=>(se(c,n,"read from private field"),t?t.call(c):n.get(c)),r=(c,n,t)=>n.has(c)?he("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(c):n.set(c,t),o=(c,n,t,s)=>(se(c,n,"write to private field"),s?s.call(c,t):n.set(c,t),t),p=(c,n,t)=>(se(c,n,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../css-property/index.cjs"),Z=require("../Viewport-Cx50Hufs.cjs"),fe=require("../element-linked-store/index.cjs"),oe=require("../index-CKTweR3M.cjs"),W=require("../events-KVanG9sR.cjs"),ge=require("../function-MthRj-GJ.cjs"),le=require("../style-At6aDoqG.cjs");require("construct-style-sheets-polyfill");const ce=require("../url-CPgw9bd5.cjs"),ae=require("../window-resizer/index.cjs");var f,w,ee,te;class ve{constructor(){r(this,f,new Map);r(this,w,[]);r(this,ee,n=>{var s;const t=[...e(this,w)].reverse().find(i=>i.clickOutside.current);if(t){const i=n.composedPath();if(i.find(Q=>Q instanceof HTMLElement&&Q.hasAttribute("data-popover-content")))return;const l=i[0],d=l instanceof Node&&(t.contains(l)||((s=t.shadowRoot)==null?void 0:s.contains(l))),L=l instanceof HTMLElement&&l.hasAttribute("data-outside");(!d||L)&&t.close()}});r(this,te,n=>{if(n.code==="Escape"){const t=[...e(this,w)].reverse().find(s=>s.escape.current);t&&t.close()}});document.documentElement.addEventListener("click",e(this,ee)),addEventListener("keydown",e(this,te))}get groups(){return e(this,f)}get stack(){return e(this,w)}add(n,t){if(t.closeRest.current)e(this,f).forEach(i=>{i.forEach(l=>{l.close()})});else if(t.closeRestInGroup.current){let i=e(this,f).get(n);i==null||i.forEach(l=>{l.close()})}let s=e(this,f).get(n);s!=null&&s.length||(s=[],e(this,f).set(n,s)),e(this,w).push(t),s.push(t)}remove(n,t){if(setTimeout(()=>{o(this,w,e(this,w).filter(s=>s!==t))}),t.closeRest.current){let s=[];e(this,f).forEach(i=>{i.forEach(l=>s.push(l))}),e(this,f).clear(),s.forEach(i=>i.close())}else if(t.closeRestInGroup.current){const s=e(this,f).get(n);e(this,f).delete(n),s==null||s.forEach(i=>{i.close()})}else{let s=e(this,f).get(n);s&&(s=s.filter(i=>i!==t),e(this,f).set(n,s))}}}f=new WeakMap,w=new WeakMap,ee=new WeakMap,te=new WeakMap;var v,B,H,R,G,m,T,P,q,$,b,V,O,k,E,z,a,M,D,u,ue,S,_,F,A,I,X,U;const C=class C extends HTMLElement{constructor(){super();r(this,u);r(this,v);r(this,B);r(this,H);r(this,R);r(this,G);r(this,m);r(this,T);r(this,P);r(this,q);r(this,$);r(this,b);r(this,V);r(this,O);r(this,k);r(this,E);r(this,z);r(this,a);r(this,M);r(this,D);r(this,F);r(this,A);r(this,I);r(this,X);r(this,U);this.urlValue="",o(this,v,!1),o(this,m,new y.CSSProperty(this,"--history",!1)),o(this,T,new y.CSSProperty(this,"--restore",!1)),o(this,P,new y.CSSProperty(this,"--dispatch-resize",!1)),o(this,q,new y.CSSProperty(this,"--close-rest",!1)),o(this,$,new y.CSSProperty(this,"--close-rest-in-group",!1)),o(this,b,new y.CSSProperty(this,"--group","")),o(this,V,new y.CSSProperty(this,"--click-outside",!1)),o(this,O,new y.CSSProperty(this,"--escape",!1)),o(this,k,new y.CSSProperty(this,"--check-viewport-bounds",!1)),o(this,E,!0),o(this,a,new fe.ElementLinkedStore(this,{triggered:!1,beforeopen:!1,opened:!1,closing:!1,transitionend:!1})),o(this,M,[]),o(this,D,[]),o(this,F,()=>{o(this,E,!1),e(this,v)&&e(this,m).current&&!location.search.includes(this.id)?this.close():!e(this,v)&&e(this,m).current&&location.search.includes(this.id)&&this.open({trigger:this.idWithValue}),o(this,E,!0)}),o(this,A,()=>{this.style.setProperty("--content-width","initial"),this.style.setProperty("--content-height","initial"),this.style.setProperty("--viewport-offset-x","0px"),this.style.setProperty("--viewport-offset-y","0px"),e(this,I).call(this)}),o(this,I,ge.debounce(()=>{e(this,X).call(this)},10)),o(this,X,()=>{if(this.style.setProperty("--content-width",this.scrollWidth+"px"),this.style.setProperty("--content-height",this.scrollHeight+"px"),e(this,k).current){const t=this.getBoundingClientRect();let s=0,i=0;t.right>Z.viewport.width?s=Z.viewport.width-t.right:t.left<0&&(s=t.left*-1),t.bottom>Z.viewport.height?i=Z.viewport.height-t.bottom:t.top<0&&(i=t.top*-1),this.style.setProperty("--viewport-offset-x",s+"px"),this.style.setProperty("--viewport-offset-y",i+"px")}}),o(this,U,()=>{this.close()}),e(this,b).subscribe(t=>{t.previous&&(C.stack.remove(t.previous,this),t.current||(document.documentElement.classList.remove(`${this.group.previous}-closing`),document.documentElement.classList.remove(`${this.group.previous}-opened`)))}),e(this,a).subscribe(t=>{if(this.group.current){document.documentElement.classList.toggle(`${this.group.current}-closing`,t.current.closing);const s=C.stack.groups.get(this.group.current),i=s==null?void 0:s.find(l=>l.opened);document.documentElement.classList.toggle(`${this.group.current}-opened`,!!i)}})}get openClass(){return this.getAttribute("data-open-global-class")}get closingClass(){return this.getAttribute("data-closing-global-class")}get history(){return e(this,m)}get restore(){return e(this,T)}get dispatchResize(){return e(this,P)}get closeRest(){return e(this,q)}get closeRestInGroup(){return e(this,$)}get group(){return e(this,b)}get clickOutside(){return e(this,V)}get escape(){return e(this,O)}get opened(){return e(this,v)}get lastTrigger(){return e(this,z)}get idWithValue(){return`${this.id}${this.urlValue?"="+this.urlValue:""}`}updateUrlValue(t){this.urlValue=(t==null?void 0:t.toString())||"",e(this,v)&&ce.updateSearchParameter(this.id,t)}open(t){if(e(this,v))return;o(this,z,t==null?void 0:t.trigger),clearTimeout(e(this,B)),clearTimeout(e(this,H)),p(this,u,S).call(this,!1,this.closingClass),e(this,a).set("closing",!1),e(this,a).set("triggered",!0),W.dispatchEvent(this,"popoverTriggered",{custom:!0,detail:{trigger:e(this,z)}}),e(this,m).current&&e(this,E)&&history.pushState(history.state,"",e(this,u,ue)),e(this,a).set("beforeopen",!0),o(this,v,!0);const s=()=>{C.stack.add(e(this,b).current,this),e(this,D).forEach(i=>{i.scroll({top:0,left:0,behavior:"instant"})}),p(this,u,S).call(this,!0,this.openClass),e(this,a).set("opened",!0),e(this,P).current?W.dispatchEvent(window,"resize",{custom:!0}):e(this,A).call(this),W.dispatchEvent(this,"popoverOpened",{custom:!0,detail:{trigger:e(this,z)},bubbles:!0}),o(this,R,void 0),o(this,G,setTimeout(()=>{e(this,a).set("transitionend",!0),W.dispatchEvent(this,"popoverTransitionend")},le.getElementTransitionDurationMS(this)+10))};t!=null&&t.skipTransition?s():o(this,R,requestAnimationFrame(s))}close(){e(this,v)&&(o(this,v,!1),cancelAnimationFrame(e(this,R)),clearTimeout(e(this,G)),C.stack.remove(e(this,b).current,this),p(this,u,_).call(this),o(this,B,setTimeout(()=>{e(this,a).set("transitionend",!1),e(this,a).set("opened",!1),e(this,a).set("closing",!0),p(this,u,S).call(this,!1,this.openClass),p(this,u,S).call(this,!0,this.closingClass),W.dispatchEvent(this,"popoverClosing",{custom:!0,bubbles:!0}),o(this,H,setTimeout(()=>{e(this,a).set("triggered",!1),e(this,a).set("beforeopen",!1),e(this,a).set("closing",!1),p(this,u,S).call(this,!1,this.closingClass),W.dispatchEvent(this,"popoverClosed",{custom:!0,bubbles:!0})},le.getElementTransitionDurationMS(this)+10))},10)))}connectedCallback(){o(this,M,[...this.querySelectorAll(`[data-popover-close${this.id?`="${this.id}"`:""}]`)]),e(this,M).forEach(t=>{t.addEventListener("click",e(this,U))}),o(this,D,[...this.querySelectorAll(`[data-popover-reset-scroll${this.id?`="${this.id}"`:""}]`)]),e(this,m).observe(),e(this,T).observe(),e(this,P).observe(),e(this,q).observe(),e(this,$).observe(),e(this,b).observe(),e(this,V).observe(),e(this,O).observe(),e(this,k).observe(),this.setAttribute("role","dialog"),addEventListener("popstate",e(this,F)),setTimeout(()=>{e(this,T).current?(o(this,E,!1),this.urlValue=ce.parseSearchParameters(location.search)[this.id],location.search.includes(this.id)&&this.open({trigger:this.idWithValue}),o(this,E,!0)):(p(this,u,_).call(this),o(this,E,!0))},0),e(this,k).subscribe(()=>{e(this,A).call(this)}),ae.windowResizer.subscribe(e(this,A))}disconnectedCallback(){e(this,M).forEach(t=>{t.removeEventListener("click",e(this,U))}),C.stack.remove(e(this,b).current,this),ae.windowResizer.unsubscribe(e(this,A)),e(this,m).close(),e(this,T).close(),e(this,P).close(),e(this,q).close(),e(this,$).close(),e(this,b).close(),e(this,V).close(),e(this,O).close(),e(this,k).close(),this.removeAttribute("role"),p(this,u,S).call(this,!1,this.openClass),p(this,u,S).call(this,!1,this.closingClass),clearTimeout(e(this,B)),clearTimeout(e(this,H)),clearTimeout(e(this,R)),clearTimeout(e(this,G)),removeEventListener("popstate",e(this,F)),this.style.removeProperty("--content-width"),this.style.removeProperty("--content-height"),this.style.removeProperty("--viewport-offset-x"),this.style.removeProperty("--viewport-offset-y"),p(this,u,_).call(this)}};v=new WeakMap,B=new WeakMap,H=new WeakMap,R=new WeakMap,G=new WeakMap,m=new WeakMap,T=new WeakMap,P=new WeakMap,q=new WeakMap,$=new WeakMap,b=new WeakMap,V=new WeakMap,O=new WeakMap,k=new WeakMap,E=new WeakMap,z=new WeakMap,a=new WeakMap,M=new WeakMap,D=new WeakMap,u=new WeakSet,ue=function(){return`${location.pathname}${location.search?location.search+"&":"?"}${this.idWithValue}`},S=function(t,s){s&&s.split(" ").map(i=>{document.documentElement.classList.toggle(i.trim(),t)})},_=function(){if(e(this,m).current){const t=new URL(location.href);t.searchParams.delete(this.id),history.replaceState(history.state,"",t.href)}},F=new WeakMap,A=new WeakMap,I=new WeakMap,X=new WeakMap,U=new WeakMap,C.stack=new ve;let j=C;oe.isBrowser&&!customElements.get("e-popover")&&customElements.define("e-popover",j);var h,g,x,ie,Y,J,K,N,re;class pe extends HTMLElement{constructor(){super();r(this,x);r(this,h);r(this,g,new y.CSSProperty(this,"--type","open"));r(this,Y,t=>{t.target===e(this,h)&&e(this,g).current!=="close"&&this.classList.add("triggered")});r(this,J,t=>{t.target===e(this,h)&&e(this,g).current!=="close"&&(this.classList.add("opened"),this.setAttribute("aria-expanded","true"))});r(this,K,t=>{t.target===e(this,h)&&e(this,g).current!=="close"&&this.classList.remove("opened")});r(this,N,t=>{t.target===e(this,h)&&e(this,g).current!=="close"&&(this.classList.remove("triggered"),this.setAttribute("aria-expanded","false"))});oe.isBrowser&&(this.addEventListener("click",()=>{if(e(this,h)){const t=e(this,g).current;t==="open"||t==="toggle"&&!e(this,h).opened?e(this,h).open({trigger:this}):(t==="close"||t==="toggle"&&e(this,h).opened)&&e(this,h).close()}}),this.addEventListener("keydown",t=>{t.code==="Space"&&!this.hasAttribute("keydown-disabled")&&(t.preventDefault(),this.click())}))}get type(){return e(this,g)}get popoverElement(){return e(this,h)}changePopover(t){var s;if(p(this,x,ie).call(this),t){let i=null;if(t==="parent"){const l=this.closest("[data-popover]");if(l)i=l;else{const d=this.getRootNode();d instanceof ShadowRoot?i=d.host.closest("[data-popover]"):d instanceof HTMLElement&&(i=d.closest("[data-popover]"))}}else if(t==="sibling")i=(s=this.parentElement)==null?void 0:s.querySelector("[data-popover]");else if(t==="ancestor-child"){const l=d=>{if(!d)return null;let L=d.querySelector("[data-popover]");return!L&&(d!=null&&d.parentElement)&&(L=l(d.parentElement)),L};i=l(this.parentElement)||null}else{let l=t;if(isNaN(parseInt(l))&&(!t.startsWith(".")&&!t.startsWith("[")&&!t.startsWith("#")&&(l=`#${t}`),i=document.querySelector(l)||this.getRootNode().querySelector(l)),!i){const L=[...document.querySelectorAll("[data-popover-ids]")].find(Q=>{var ne;return(ne=Q.getAttribute("data-popover-ids"))==null?void 0:ne.split(",").find(de=>de.trim()===t)});L&&(i=L)}}i instanceof HTMLElement?(o(this,h,i),e(this,h).addEventListener("popoverTriggered",e(this,Y)),e(this,h).addEventListener("popoverOpened",e(this,J)),e(this,h).addEventListener("popoverClosing",e(this,K)),e(this,h).addEventListener("popoverClosed",e(this,N))):console.warn(this,`target ${t} not found`)}p(this,x,re).call(this,e(this,g).current)}connectedCallback(){e(this,g).subscribe(s=>{p(this,x,re).call(this,s.current)}),this.hasAttribute("tabindex")||(this.tabIndex=0),this.hasAttribute("role")||this.setAttribute("role","button");const t=this.getAttribute("target");t&&this.changePopover(t),this.isConnected&&e(this,g).observe()}disconnectedCallback(){e(this,g).unobserve(),this.removeAttribute("aria-haspopup"),this.removeAttribute("aria-expanded"),this.removeAttribute("aria-controls"),this.removeAttribute("role"),this.removeAttribute("tabindex"),p(this,x,ie).call(this)}}h=new WeakMap,g=new WeakMap,x=new WeakSet,ie=function(){e(this,h)&&(e(this,h).removeEventListener("popoverTriggered",e(this,Y)),e(this,h).removeEventListener("popoverOpened",e(this,J)),e(this,h).removeEventListener("popoverClosing",e(this,K)),e(this,h).removeEventListener("popoverClosed",e(this,N)))},Y=new WeakMap,J=new WeakMap,K=new WeakMap,N=new WeakMap,re=function(t){e(this,h)instanceof j&&(t!=="close"?(this.setAttribute("aria-haspopup","true"),this.setAttribute("aria-expanded",e(this,h).opened?"true":"false"),this.setAttribute("aria-controls",e(this,h).id||"")):(this.removeAttribute("aria-haspopup"),this.removeAttribute("aria-expanded"),this.removeAttribute("aria-controls")))};oe.isBrowser&&!customElements.get("e-popover-button")&&customElements.define("e-popover-button",pe);exports.PopoverButtonElement=pe;exports.PopoverElement=j;
1
+ "use strict";var he=c=>{throw TypeError(c)};var se=(c,n,t)=>n.has(c)||he("Cannot "+t);var e=(c,n,t)=>(se(c,n,"read from private field"),t?t.call(c):n.get(c)),r=(c,n,t)=>n.has(c)?he("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(c):n.set(c,t),o=(c,n,t,s)=>(se(c,n,"write to private field"),s?s.call(c,t):n.set(c,t),t),p=(c,n,t)=>(se(c,n,"access private method"),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("../css-property/index.cjs"),Z=require("../Viewport-BxCr0GlB.cjs"),fe=require("../element-linked-store/index.cjs"),oe=require("../index-OE2INULi.cjs"),W=require("../events-KVanG9sR.cjs"),ge=require("../function-MthRj-GJ.cjs"),le=require("../style-At6aDoqG.cjs");require("construct-style-sheets-polyfill");const ce=require("../url-CPgw9bd5.cjs"),ae=require("../window-resizer/index.cjs");var f,w,ee,te;class ve{constructor(){r(this,f,new Map);r(this,w,[]);r(this,ee,n=>{var s;const t=[...e(this,w)].reverse().find(i=>i.clickOutside.current);if(t){const i=n.composedPath();if(i.find(Q=>Q instanceof HTMLElement&&Q.hasAttribute("data-popover-content")))return;const l=i[0],d=l instanceof Node&&(t.contains(l)||((s=t.shadowRoot)==null?void 0:s.contains(l))),L=l instanceof HTMLElement&&l.hasAttribute("data-outside");(!d||L)&&t.close()}});r(this,te,n=>{if(n.code==="Escape"){const t=[...e(this,w)].reverse().find(s=>s.escape.current);t&&t.close()}});document.documentElement.addEventListener("click",e(this,ee)),addEventListener("keydown",e(this,te))}get groups(){return e(this,f)}get stack(){return e(this,w)}add(n,t){if(t.closeRest.current)e(this,f).forEach(i=>{i.forEach(l=>{l.close()})});else if(t.closeRestInGroup.current){let i=e(this,f).get(n);i==null||i.forEach(l=>{l.close()})}let s=e(this,f).get(n);s!=null&&s.length||(s=[],e(this,f).set(n,s)),e(this,w).push(t),s.push(t)}remove(n,t){if(setTimeout(()=>{o(this,w,e(this,w).filter(s=>s!==t))}),t.closeRest.current){let s=[];e(this,f).forEach(i=>{i.forEach(l=>s.push(l))}),e(this,f).clear(),s.forEach(i=>i.close())}else if(t.closeRestInGroup.current){const s=e(this,f).get(n);e(this,f).delete(n),s==null||s.forEach(i=>{i.close()})}else{let s=e(this,f).get(n);s&&(s=s.filter(i=>i!==t),e(this,f).set(n,s))}}}f=new WeakMap,w=new WeakMap,ee=new WeakMap,te=new WeakMap;var v,B,H,R,G,m,T,P,q,$,b,V,O,k,E,z,a,M,D,u,ue,S,_,F,A,I,X,U;const C=class C extends HTMLElement{constructor(){super();r(this,u);r(this,v);r(this,B);r(this,H);r(this,R);r(this,G);r(this,m);r(this,T);r(this,P);r(this,q);r(this,$);r(this,b);r(this,V);r(this,O);r(this,k);r(this,E);r(this,z);r(this,a);r(this,M);r(this,D);r(this,F);r(this,A);r(this,I);r(this,X);r(this,U);this.urlValue="",o(this,v,!1),o(this,m,new y.CSSProperty(this,"--history",!1)),o(this,T,new y.CSSProperty(this,"--restore",!1)),o(this,P,new y.CSSProperty(this,"--dispatch-resize",!1)),o(this,q,new y.CSSProperty(this,"--close-rest",!1)),o(this,$,new y.CSSProperty(this,"--close-rest-in-group",!1)),o(this,b,new y.CSSProperty(this,"--group","")),o(this,V,new y.CSSProperty(this,"--click-outside",!1)),o(this,O,new y.CSSProperty(this,"--escape",!1)),o(this,k,new y.CSSProperty(this,"--check-viewport-bounds",!1)),o(this,E,!0),o(this,a,new fe.ElementLinkedStore(this,{triggered:!1,beforeopen:!1,opened:!1,closing:!1,transitionend:!1})),o(this,M,[]),o(this,D,[]),o(this,F,()=>{o(this,E,!1),e(this,v)&&e(this,m).current&&!location.search.includes(this.id)?this.close():!e(this,v)&&e(this,m).current&&location.search.includes(this.id)&&this.open({trigger:this.idWithValue}),o(this,E,!0)}),o(this,A,()=>{this.style.setProperty("--content-width","initial"),this.style.setProperty("--content-height","initial"),this.style.setProperty("--viewport-offset-x","0px"),this.style.setProperty("--viewport-offset-y","0px"),e(this,I).call(this)}),o(this,I,ge.debounce(()=>{e(this,X).call(this)},10)),o(this,X,()=>{if(this.style.setProperty("--content-width",this.scrollWidth+"px"),this.style.setProperty("--content-height",this.scrollHeight+"px"),e(this,k).current){const t=this.getBoundingClientRect();let s=0,i=0;t.right>Z.viewport.width?s=Z.viewport.width-t.right:t.left<0&&(s=t.left*-1),t.bottom>Z.viewport.height?i=Z.viewport.height-t.bottom:t.top<0&&(i=t.top*-1),this.style.setProperty("--viewport-offset-x",s+"px"),this.style.setProperty("--viewport-offset-y",i+"px")}}),o(this,U,()=>{this.close()}),e(this,b).subscribe(t=>{t.previous&&(C.stack.remove(t.previous,this),t.current||(document.documentElement.classList.remove(`${this.group.previous}-closing`),document.documentElement.classList.remove(`${this.group.previous}-opened`)))}),e(this,a).subscribe(t=>{if(this.group.current){document.documentElement.classList.toggle(`${this.group.current}-closing`,t.current.closing);const s=C.stack.groups.get(this.group.current),i=s==null?void 0:s.find(l=>l.opened);document.documentElement.classList.toggle(`${this.group.current}-opened`,!!i)}})}get openClass(){return this.getAttribute("data-open-global-class")}get closingClass(){return this.getAttribute("data-closing-global-class")}get history(){return e(this,m)}get restore(){return e(this,T)}get dispatchResize(){return e(this,P)}get closeRest(){return e(this,q)}get closeRestInGroup(){return e(this,$)}get group(){return e(this,b)}get clickOutside(){return e(this,V)}get escape(){return e(this,O)}get opened(){return e(this,v)}get lastTrigger(){return e(this,z)}get idWithValue(){return`${this.id}${this.urlValue?"="+this.urlValue:""}`}updateUrlValue(t){this.urlValue=(t==null?void 0:t.toString())||"",e(this,v)&&ce.updateSearchParameter(this.id,t)}open(t){if(e(this,v))return;o(this,z,t==null?void 0:t.trigger),clearTimeout(e(this,B)),clearTimeout(e(this,H)),p(this,u,S).call(this,!1,this.closingClass),e(this,a).set("closing",!1),e(this,a).set("triggered",!0),W.dispatchEvent(this,"popoverTriggered",{custom:!0,detail:{trigger:e(this,z)}}),e(this,m).current&&e(this,E)&&history.pushState(history.state,"",e(this,u,ue)),e(this,a).set("beforeopen",!0),o(this,v,!0);const s=()=>{C.stack.add(e(this,b).current,this),e(this,D).forEach(i=>{i.scroll({top:0,left:0,behavior:"instant"})}),p(this,u,S).call(this,!0,this.openClass),e(this,a).set("opened",!0),e(this,P).current?W.dispatchEvent(window,"resize",{custom:!0}):e(this,A).call(this),W.dispatchEvent(this,"popoverOpened",{custom:!0,detail:{trigger:e(this,z)},bubbles:!0}),o(this,R,void 0),o(this,G,setTimeout(()=>{e(this,a).set("transitionend",!0),W.dispatchEvent(this,"popoverTransitionend")},le.getElementTransitionDurationMS(this)+10))};t!=null&&t.skipTransition?s():o(this,R,requestAnimationFrame(s))}close(){e(this,v)&&(o(this,v,!1),cancelAnimationFrame(e(this,R)),clearTimeout(e(this,G)),C.stack.remove(e(this,b).current,this),p(this,u,_).call(this),o(this,B,setTimeout(()=>{e(this,a).set("transitionend",!1),e(this,a).set("opened",!1),e(this,a).set("closing",!0),p(this,u,S).call(this,!1,this.openClass),p(this,u,S).call(this,!0,this.closingClass),W.dispatchEvent(this,"popoverClosing",{custom:!0,bubbles:!0}),o(this,H,setTimeout(()=>{e(this,a).set("triggered",!1),e(this,a).set("beforeopen",!1),e(this,a).set("closing",!1),p(this,u,S).call(this,!1,this.closingClass),W.dispatchEvent(this,"popoverClosed",{custom:!0,bubbles:!0})},le.getElementTransitionDurationMS(this)+10))},10)))}connectedCallback(){o(this,M,[...this.querySelectorAll(`[data-popover-close${this.id?`="${this.id}"`:""}]`)]),e(this,M).forEach(t=>{t.addEventListener("click",e(this,U))}),o(this,D,[...this.querySelectorAll(`[data-popover-reset-scroll${this.id?`="${this.id}"`:""}]`)]),e(this,m).observe(),e(this,T).observe(),e(this,P).observe(),e(this,q).observe(),e(this,$).observe(),e(this,b).observe(),e(this,V).observe(),e(this,O).observe(),e(this,k).observe(),this.setAttribute("role","dialog"),addEventListener("popstate",e(this,F)),setTimeout(()=>{e(this,T).current?(o(this,E,!1),this.urlValue=ce.parseSearchParameters(location.search)[this.id],location.search.includes(this.id)&&this.open({trigger:this.idWithValue}),o(this,E,!0)):(p(this,u,_).call(this),o(this,E,!0))},0),e(this,k).subscribe(()=>{e(this,A).call(this)}),ae.windowResizer.subscribe(e(this,A))}disconnectedCallback(){e(this,M).forEach(t=>{t.removeEventListener("click",e(this,U))}),C.stack.remove(e(this,b).current,this),ae.windowResizer.unsubscribe(e(this,A)),e(this,m).close(),e(this,T).close(),e(this,P).close(),e(this,q).close(),e(this,$).close(),e(this,b).close(),e(this,V).close(),e(this,O).close(),e(this,k).close(),this.removeAttribute("role"),p(this,u,S).call(this,!1,this.openClass),p(this,u,S).call(this,!1,this.closingClass),clearTimeout(e(this,B)),clearTimeout(e(this,H)),clearTimeout(e(this,R)),clearTimeout(e(this,G)),removeEventListener("popstate",e(this,F)),this.style.removeProperty("--content-width"),this.style.removeProperty("--content-height"),this.style.removeProperty("--viewport-offset-x"),this.style.removeProperty("--viewport-offset-y"),p(this,u,_).call(this)}};v=new WeakMap,B=new WeakMap,H=new WeakMap,R=new WeakMap,G=new WeakMap,m=new WeakMap,T=new WeakMap,P=new WeakMap,q=new WeakMap,$=new WeakMap,b=new WeakMap,V=new WeakMap,O=new WeakMap,k=new WeakMap,E=new WeakMap,z=new WeakMap,a=new WeakMap,M=new WeakMap,D=new WeakMap,u=new WeakSet,ue=function(){return`${location.pathname}${location.search?location.search+"&":"?"}${this.idWithValue}`},S=function(t,s){s&&s.split(" ").map(i=>{document.documentElement.classList.toggle(i.trim(),t)})},_=function(){if(e(this,m).current){const t=new URL(location.href);t.searchParams.delete(this.id),history.replaceState(history.state,"",t.href)}},F=new WeakMap,A=new WeakMap,I=new WeakMap,X=new WeakMap,U=new WeakMap,C.stack=new ve;let j=C;oe.isBrowser&&!customElements.get("e-popover")&&customElements.define("e-popover",j);var h,g,x,ie,Y,J,K,N,re;class pe extends HTMLElement{constructor(){super();r(this,x);r(this,h);r(this,g,new y.CSSProperty(this,"--type","open"));r(this,Y,t=>{t.target===e(this,h)&&e(this,g).current!=="close"&&this.classList.add("triggered")});r(this,J,t=>{t.target===e(this,h)&&e(this,g).current!=="close"&&(this.classList.add("opened"),this.setAttribute("aria-expanded","true"))});r(this,K,t=>{t.target===e(this,h)&&e(this,g).current!=="close"&&this.classList.remove("opened")});r(this,N,t=>{t.target===e(this,h)&&e(this,g).current!=="close"&&(this.classList.remove("triggered"),this.setAttribute("aria-expanded","false"))});oe.isBrowser&&(this.addEventListener("click",()=>{if(e(this,h)){const t=e(this,g).current;t==="open"||t==="toggle"&&!e(this,h).opened?e(this,h).open({trigger:this}):(t==="close"||t==="toggle"&&e(this,h).opened)&&e(this,h).close()}}),this.addEventListener("keydown",t=>{t.code==="Space"&&!this.hasAttribute("keydown-disabled")&&(t.preventDefault(),this.click())}))}get type(){return e(this,g)}get popoverElement(){return e(this,h)}changePopover(t){var s;if(p(this,x,ie).call(this),t){let i=null;if(t==="parent"){const l=this.closest("[data-popover]");if(l)i=l;else{const d=this.getRootNode();d instanceof ShadowRoot?i=d.host.closest("[data-popover]"):d instanceof HTMLElement&&(i=d.closest("[data-popover]"))}}else if(t==="sibling")i=(s=this.parentElement)==null?void 0:s.querySelector("[data-popover]");else if(t==="ancestor-child"){const l=d=>{if(!d)return null;let L=d.querySelector("[data-popover]");return!L&&(d!=null&&d.parentElement)&&(L=l(d.parentElement)),L};i=l(this.parentElement)||null}else{let l=t;if(isNaN(parseInt(l))&&(!t.startsWith(".")&&!t.startsWith("[")&&!t.startsWith("#")&&(l=`#${t}`),i=document.querySelector(l)||this.getRootNode().querySelector(l)),!i){const L=[...document.querySelectorAll("[data-popover-ids]")].find(Q=>{var ne;return(ne=Q.getAttribute("data-popover-ids"))==null?void 0:ne.split(",").find(de=>de.trim()===t)});L&&(i=L)}}i instanceof HTMLElement?(o(this,h,i),e(this,h).addEventListener("popoverTriggered",e(this,Y)),e(this,h).addEventListener("popoverOpened",e(this,J)),e(this,h).addEventListener("popoverClosing",e(this,K)),e(this,h).addEventListener("popoverClosed",e(this,N))):console.warn(this,`target ${t} not found`)}p(this,x,re).call(this,e(this,g).current)}connectedCallback(){e(this,g).subscribe(s=>{p(this,x,re).call(this,s.current)}),this.hasAttribute("tabindex")||(this.tabIndex=0),this.hasAttribute("role")||this.setAttribute("role","button");const t=this.getAttribute("target");t&&this.changePopover(t),this.isConnected&&e(this,g).observe()}disconnectedCallback(){e(this,g).unobserve(),this.removeAttribute("aria-haspopup"),this.removeAttribute("aria-expanded"),this.removeAttribute("aria-controls"),this.removeAttribute("role"),this.removeAttribute("tabindex"),p(this,x,ie).call(this)}}h=new WeakMap,g=new WeakMap,x=new WeakSet,ie=function(){e(this,h)&&(e(this,h).removeEventListener("popoverTriggered",e(this,Y)),e(this,h).removeEventListener("popoverOpened",e(this,J)),e(this,h).removeEventListener("popoverClosing",e(this,K)),e(this,h).removeEventListener("popoverClosed",e(this,N)))},Y=new WeakMap,J=new WeakMap,K=new WeakMap,N=new WeakMap,re=function(t){e(this,h)instanceof j&&(t!=="close"?(this.setAttribute("aria-haspopup","true"),this.setAttribute("aria-expanded",e(this,h).opened?"true":"false"),this.setAttribute("aria-controls",e(this,h).id||"")):(this.removeAttribute("aria-haspopup"),this.removeAttribute("aria-expanded"),this.removeAttribute("aria-controls")))};oe.isBrowser&&!customElements.get("e-popover-button")&&customElements.define("e-popover-button",pe);exports.PopoverButtonElement=pe;exports.PopoverElement=j;
@@ -4,9 +4,9 @@ var nt = (c) => {
4
4
  var st = (c, h, e) => h.has(c) || nt("Cannot " + e);
5
5
  var t = (c, h, e) => (st(c, h, "read from private field"), e ? e.call(c) : h.get(c)), r = (c, h, e) => h.has(c) ? nt("Cannot add the same private member more than once") : h instanceof WeakSet ? h.add(c) : h.set(c, e), o = (c, h, e, s) => (st(c, h, "write to private field"), s ? s.call(c, e) : h.set(c, e), e), p = (c, h, e) => (st(c, h, "access private method"), e);
6
6
  import { CSSProperty as E } from "../css-property/index.js";
7
- import { v as Q } from "../Viewport-DGnJ31b4.js";
7
+ import { v as Q } from "../Viewport-Dt-d9DPi.js";
8
8
  import { ElementLinkedStore as pt } from "../element-linked-store/index.js";
9
- import { i as ot } from "../index-LReFyN6i.js";
9
+ import { i as ot } from "../index-e9eDuagL.js";
10
10
  import { d as W } from "../events-CsVF98U6.js";
11
11
  import { d as dt } from "../function-C10DGppn.js";
12
12
  import { g as lt } from "../style-j2TwriJ_.js";
@@ -1 +1 @@
1
- "use strict";var f=i=>{throw TypeError(i)};var v=(i,a,t)=>a.has(i)||f("Cannot "+t);var e=(i,a,t)=>(v(i,a,"read from private field"),t?t.call(i):a.get(i)),r=(i,a,t)=>a.has(i)?f("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(i):a.set(i,t),d=(i,a,t,s)=>(v(i,a,"write to private field"),s?s.call(i,t):a.set(i,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../events-KVanG9sR.cjs");require("construct-style-sheets-polyfill");require("../index-CKTweR3M.cjs");var E,n,h,o,c,m,u,b;class g extends HTMLElement{constructor(){super(...arguments);r(this,E,[]);r(this,n,[]);r(this,h);r(this,o,null);r(this,c,!1);r(this,m,()=>{this.isConnected&&(document.documentElement.addEventListener("radioChange",e(this,b)),e(this,n).forEach(t=>{t.addEventListener("click",e(this,u)),t.hasAttribute("data-checked")&&this.setValue(t.getAttribute("data-value"))}))});r(this,u,t=>{if(!e(this,c)){const l=t.currentTarget.getAttribute("data-value");l&&this.setValue(l)}});r(this,b,t=>{const s=t.target;s!==this&&s.name===this.name&&this.setValue(t.detail)})}get value(){return e(this,h)}get name(){return this.getAttribute("name")}get currentButtonElement(){return e(this,o)}get disabled(){return e(this,c)}disable(){d(this,c,!0)}enable(){d(this,c,!1)}addButton(t){e(this,n).push(t),t.addEventListener("click",e(this,u))}removeButton(t){const s=e(this,n).find(l=>l===t);s&&(s.removeEventListener("click",e(this,u)),d(this,n,e(this,n).filter(l=>l!==t)))}setValue(t){t&&t!==e(this,h)&&(d(this,h,t),e(this,n).forEach(s=>{s.getAttribute("data-value")===e(this,h)?(s.setAttribute("data-checked",""),d(this,o,s)):s.removeAttribute("data-checked")}),e(this,o)&&e(this,E).forEach(s=>{s.innerHTML=e(this,o).getAttribute("data-name")||t}),L.dispatchEvent(this,"radioChange",{detail:e(this,h),bubbles:!0}))}connectedCallback(){d(this,E,[...this.querySelectorAll("[data-radio-listener]")]),d(this,n,[...this.querySelectorAll("[data-radio-button]")]),document.readyState==="complete"?e(this,m).call(this):addEventListener("load",e(this,m))}disconnectedCallback(){e(this,n).forEach(t=>{t.removeEventListener("click",e(this,u))}),removeEventListener("load",e(this,m)),document.documentElement.removeEventListener("radioChange",e(this,b))}}E=new WeakMap,n=new WeakMap,h=new WeakMap,o=new WeakMap,c=new WeakMap,m=new WeakMap,u=new WeakMap,b=new WeakMap;customElements.get("e-radio")||customElements.define("e-radio",g);exports.RadioElement=g;
1
+ "use strict";var f=i=>{throw TypeError(i)};var v=(i,a,t)=>a.has(i)||f("Cannot "+t);var e=(i,a,t)=>(v(i,a,"read from private field"),t?t.call(i):a.get(i)),r=(i,a,t)=>a.has(i)?f("Cannot add the same private member more than once"):a instanceof WeakSet?a.add(i):a.set(i,t),d=(i,a,t,s)=>(v(i,a,"write to private field"),s?s.call(i,t):a.set(i,t),t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("../events-KVanG9sR.cjs");require("construct-style-sheets-polyfill");require("../index-OE2INULi.cjs");var E,n,h,o,c,m,u,b;class g extends HTMLElement{constructor(){super(...arguments);r(this,E,[]);r(this,n,[]);r(this,h);r(this,o,null);r(this,c,!1);r(this,m,()=>{this.isConnected&&(document.documentElement.addEventListener("radioChange",e(this,b)),e(this,n).forEach(t=>{t.addEventListener("click",e(this,u)),t.hasAttribute("data-checked")&&this.setValue(t.getAttribute("data-value"))}))});r(this,u,t=>{if(!e(this,c)){const l=t.currentTarget.getAttribute("data-value");l&&this.setValue(l)}});r(this,b,t=>{const s=t.target;s!==this&&s.name===this.name&&this.setValue(t.detail)})}get value(){return e(this,h)}get name(){return this.getAttribute("name")}get currentButtonElement(){return e(this,o)}get disabled(){return e(this,c)}disable(){d(this,c,!0)}enable(){d(this,c,!1)}addButton(t){e(this,n).push(t),t.addEventListener("click",e(this,u))}removeButton(t){const s=e(this,n).find(l=>l===t);s&&(s.removeEventListener("click",e(this,u)),d(this,n,e(this,n).filter(l=>l!==t)))}setValue(t){t&&t!==e(this,h)&&(d(this,h,t),e(this,n).forEach(s=>{s.getAttribute("data-value")===e(this,h)?(s.setAttribute("data-checked",""),d(this,o,s)):s.removeAttribute("data-checked")}),e(this,o)&&e(this,E).forEach(s=>{s.innerHTML=e(this,o).getAttribute("data-name")||t}),L.dispatchEvent(this,"radioChange",{detail:e(this,h),bubbles:!0}))}connectedCallback(){d(this,E,[...this.querySelectorAll("[data-radio-listener]")]),d(this,n,[...this.querySelectorAll("[data-radio-button]")]),document.readyState==="complete"?e(this,m).call(this):addEventListener("load",e(this,m))}disconnectedCallback(){e(this,n).forEach(t=>{t.removeEventListener("click",e(this,u))}),removeEventListener("load",e(this,m)),document.documentElement.removeEventListener("radioChange",e(this,b))}}E=new WeakMap,n=new WeakMap,h=new WeakMap,o=new WeakMap,c=new WeakMap,m=new WeakMap,u=new WeakMap,b=new WeakMap;customElements.get("e-radio")||customElements.define("e-radio",g);exports.RadioElement=g;
@@ -5,7 +5,7 @@ var v = (i, a, t) => a.has(i) || b("Cannot " + t);
5
5
  var e = (i, a, t) => (v(i, a, "read from private field"), t ? t.call(i) : a.get(i)), r = (i, a, t) => a.has(i) ? b("Cannot add the same private member more than once") : a instanceof WeakSet ? a.add(i) : a.set(i, t), d = (i, a, t, s) => (v(i, a, "write to private field"), s ? s.call(i, t) : a.set(i, t), t);
6
6
  import { d as g } from "../events-CsVF98U6.js";
7
7
  import "construct-style-sheets-polyfill";
8
- import "../index-LReFyN6i.js";
8
+ import "../index-e9eDuagL.js";
9
9
  var E, n, h, o, c, m, l, f;
10
10
  class L extends HTMLElement {
11
11
  constructor() {
@@ -0,0 +1,212 @@
1
+ var O = Object.defineProperty, R = Object.defineProperties;
2
+ var q = Object.getOwnPropertyDescriptors;
3
+ var w = Object.getOwnPropertySymbols;
4
+ var B = Object.prototype.hasOwnProperty, K = Object.prototype.propertyIsEnumerable;
5
+ var N = (r) => {
6
+ throw TypeError(r);
7
+ };
8
+ var L = (r, s, t) => s in r ? O(r, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[s] = t, m = (r, s) => {
9
+ for (var t in s || (s = {}))
10
+ B.call(s, t) && L(r, t, s[t]);
11
+ if (w)
12
+ for (var t of w(s))
13
+ K.call(s, t) && L(r, t, s[t]);
14
+ return r;
15
+ }, D = (r, s) => R(r, q(s));
16
+ var F = (r, s, t) => s.has(r) || N("Cannot " + t);
17
+ var d = (r, s, t) => (F(r, s, "read from private field"), t ? t.call(r) : s.get(r)), g = (r, s, t) => s.has(r) ? N("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(r) : s.set(r, t), C = (r, s, t, e) => (F(r, s, "write to private field"), e ? e.call(r, t) : s.set(r, t), t);
18
+ import { S as l } from "./Store-ZThXYBQd.js";
19
+ import { c as M } from "./string-BlMQbe8b.js";
20
+ import { d as J, p as X } from "./morph-D_ybmXWR.js";
21
+ import "construct-style-sheets-polyfill";
22
+ import "./index-e9eDuagL.js";
23
+ import { connector as $ } from "./connector/index.js";
24
+ import { a as z } from "./DerivedArray-opbeygTL.js";
25
+ const Q = { current: null };
26
+ var b, u;
27
+ class U extends HTMLElement {
28
+ constructor() {
29
+ super();
30
+ g(this, b, []);
31
+ g(this, u, []);
32
+ Q.current = this;
33
+ }
34
+ addConnectCallback(t) {
35
+ d(this, b).push(t);
36
+ }
37
+ addDisconnectCallback(t) {
38
+ d(this, u).push(t);
39
+ }
40
+ connectedCallback() {
41
+ d(this, b).forEach((t) => {
42
+ const e = t(this);
43
+ e && d(this, u).push(e);
44
+ });
45
+ }
46
+ disconnectedCallback() {
47
+ d(this, u).forEach((t) => {
48
+ t(this);
49
+ }), C(this, b, []), C(this, u, []);
50
+ }
51
+ }
52
+ b = new WeakMap(), u = new WeakMap();
53
+ function E(r, s, t) {
54
+ const e = s.subscribe((c) => {
55
+ t(c);
56
+ });
57
+ $.subscribe(r, {
58
+ disconnectCallback: () => {
59
+ e();
60
+ },
61
+ maxWaitSec: 20,
62
+ unsubscribeAfterDisconnect: !0
63
+ });
64
+ }
65
+ function W(r, s) {
66
+ s && (s instanceof l ? E(r, s, (t) => {
67
+ t.previous && r.classList.remove(t.previous.toString()), t.current && r.classList.add(t.current.toString());
68
+ }) : typeof s == "object" && !Array.isArray(s) ? Object.entries(s).forEach(([t, e]) => {
69
+ e instanceof l ? E(r, e, (c) => {
70
+ r.classList.toggle(t, !!c.current);
71
+ }) : e && r.classList.add(t);
72
+ }) : Array.isArray(s) ? s.forEach((t) => {
73
+ typeof t == "string" ? r.classList.add(t) : W(r, t);
74
+ }) : s.toString().split(" ").map((t) => r.classList.add(t.trim())));
75
+ }
76
+ function V(r, s) {
77
+ s && (typeof s == "object" ? Object.entries(s).forEach(([t, e]) => {
78
+ e instanceof l ? E(r, e, (c) => {
79
+ var o;
80
+ r.style[t] = (o = c.current) == null ? void 0 : o.toString();
81
+ }) : (typeof e == "number" || typeof e == "string" || typeof e == "boolean") && (r.style[t] = e.toString());
82
+ }) : typeof s == "string" && (r.style = s));
83
+ }
84
+ function A(r, s, t) {
85
+ s === "ref" && t ? Array.isArray(t) ? t.forEach((e) => {
86
+ typeof e == "object" && "value" in e && (e.value = r);
87
+ }) : typeof t == "object" && "value" in t && (t.value = r) : s === "className" || s === "class" ? W(r, t) : s === "style" ? V(r, t) : typeof t == "number" ? s === "tabIndex" ? r.setAttribute("tabindex", t.toString()) : A(r, s, t.toString()) : typeof t == "string" ? s === "htmlFor" ? r.setAttribute("for", t) : r.setAttribute(s, t) : typeof t == "boolean" ? t ? r.setAttribute(s, "") : r.removeAttribute(s) : t instanceof l && E(r, t, (e) => {
88
+ s in r ? r[s] = e.current : A(r, s, e.current);
89
+ });
90
+ }
91
+ function Y(r, s) {
92
+ for (const [t, e] of Object.entries(s != null ? s : {}))
93
+ typeof e == "function" && t.startsWith("on") ? r.addEventListener(
94
+ t.replace("on", "").toLowerCase(),
95
+ e
96
+ ) : A(r, t, e);
97
+ }
98
+ function H(r) {
99
+ const s = [];
100
+ return r.forEach((t) => {
101
+ t != null && (typeof t == "number" ? s.push(t.toString()) : Array.isArray(t) ? t.forEach((e) => {
102
+ s.push(...H(e));
103
+ }) : s.push(t));
104
+ }), s;
105
+ }
106
+ function Z(r, s) {
107
+ const t = [...r.childNodes].filter((n) => n.__storeId === s.id), e = s.current, c = Array.isArray(e) ? e : [e], o = [];
108
+ if (c.forEach((n) => {
109
+ let i = null;
110
+ typeof n == "boolean" || typeof n == "number" || typeof n == "string" ? i = document.createTextNode(n.toString()) : n instanceof Node && (i = n), i && (i.__storeId = s.id, o.push(i));
111
+ }), s instanceof z) {
112
+ const n = [];
113
+ o.forEach((i, f) => {
114
+ const a = t.find(
115
+ (h) => h.__key === i.__key
116
+ );
117
+ a ? a.isEqualNode(i) ? n.push(a) : (a.replaceWith(i), n.push(i)) : (n.push(i), r.appendChild(i));
118
+ }), t.forEach((i) => {
119
+ n.includes(i) || i.remove();
120
+ });
121
+ } else
122
+ o.forEach((n, i) => {
123
+ var a;
124
+ const f = t[i];
125
+ if (f)
126
+ f.isEqualNode(n) || (f.replaceWith(n), t[i] = n);
127
+ else {
128
+ const h = t[t.length - 1];
129
+ h ? (a = h.parentNode) == null || a.insertBefore(
130
+ n,
131
+ h.nextSibling
132
+ ) : r.appendChild(n);
133
+ }
134
+ }), t.slice(o.length).forEach((n) => {
135
+ n.remove();
136
+ });
137
+ }
138
+ class _ {
139
+ constructor(s, t, e) {
140
+ this.tag = s, this.attributes = t, this.children = e;
141
+ }
142
+ }
143
+ class y extends _ {
144
+ }
145
+ class S extends _ {
146
+ }
147
+ class I extends _ {
148
+ }
149
+ function p(r, s, t, e = !1) {
150
+ const c = H(t);
151
+ Y(r, s), c.forEach((o) => {
152
+ if (o instanceof l)
153
+ E(r, o, () => {
154
+ Z(r, o);
155
+ });
156
+ else if (o instanceof y)
157
+ o.tag === "shadow" && r.shadowRoot ? p(
158
+ r.shadowRoot,
159
+ o.attributes,
160
+ o.children
161
+ ) : p(r, o.attributes, o.children);
162
+ else if (o instanceof S) {
163
+ let n = null;
164
+ o.tag === "svg" ? (n = document.createElementNS(
165
+ "http://www.w3.org/2000/svg",
166
+ "svg"
167
+ ), p(n, o.attributes, o.children, !0)) : n = e ? document.createElementNS("http://www.w3.org/2000/svg", o.tag) : document.createElement(o.tag), p(n, o.attributes, o.children, e), r.append(n);
168
+ } else if (o instanceof I) {
169
+ const n = document.createElement(o.tag);
170
+ p(n, o.attributes, o.children);
171
+ const i = J(document.head, n);
172
+ X(document.head, i);
173
+ } else
174
+ r.append(o);
175
+ });
176
+ }
177
+ function G(r, s, ...t) {
178
+ var e;
179
+ if (typeof r == "string")
180
+ return r === "component" ? new y(r, s, t) : r === "shadow" ? new y(r, s, t) : r === "head" ? new I(r, s, t) : new S(r, s, t);
181
+ {
182
+ if (r === P)
183
+ return P(t);
184
+ if (r.template)
185
+ return r(m({}, s));
186
+ const c = `e-${M(r.name)}`;
187
+ let o = customElements.get(c);
188
+ o || (o = (e = class extends U {
189
+ constructor() {
190
+ super();
191
+ }
192
+ }, e.formAssociated = r.formAssociated, e), customElements.define(c, o));
193
+ const n = new o(), i = D(m({}, s), {
194
+ children: t
195
+ }), f = r(i);
196
+ return __JSX_HMR_DEV__ && (n.__props__ = i), (f instanceof y || f instanceof S) && (f != null && f.children || f.attributes) && p(n, f.attributes, f.children), n;
197
+ }
198
+ }
199
+ function P(r) {
200
+ const s = document.createDocumentFragment();
201
+ return p(s, void 0, r), s;
202
+ }
203
+ function et(r, s, t) {
204
+ const e = /* @__PURE__ */ G(s, m({}, t));
205
+ return r.append(e), e;
206
+ }
207
+ export {
208
+ P as F,
209
+ Q as a,
210
+ G as h,
211
+ et as r
212
+ };
@@ -0,0 +1 @@
1
+ "use strict";var B=Object.defineProperty,K=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var q=Object.getOwnPropertySymbols;var J=Object.prototype.hasOwnProperty,X=Object.prototype.propertyIsEnumerable;var N=e=>{throw TypeError(e)};var L=(e,r,t)=>r in e?B(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,y=(e,r)=>{for(var t in r||(r={}))J.call(r,t)&&L(e,t,r[t]);if(q)for(var t of q(r))X.call(r,t)&&L(e,t,r[t]);return e},D=(e,r)=>K(e,M(r));var F=(e,r,t)=>r.has(e)||N("Cannot "+t);var d=(e,r,t)=>(F(e,r,"read from private field"),t?t.call(e):r.get(e)),S=(e,r,t)=>r.has(e)?N("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,t),C=(e,r,t,s)=>(F(e,r,"write to private field"),s?s.call(e,t):r.set(e,t),t);const l=require("./Store-Blf4msDz.cjs"),$=require("./string-DUXXtU8v.cjs"),P=require("./morph-B6sGhLCi.cjs");require("construct-style-sheets-polyfill");require("./index-OE2INULi.cjs");const z=require("./connector/index.cjs"),Q=require("./DerivedArray-DdCR-Oy7.cjs"),W={current:null};var b,p;class U extends HTMLElement{constructor(){super();S(this,b,[]);S(this,p,[]);W.current=this}addConnectCallback(t){d(this,b).push(t)}addDisconnectCallback(t){d(this,p).push(t)}connectedCallback(){d(this,b).forEach(t=>{const s=t(this);s&&d(this,p).push(s)})}disconnectedCallback(){d(this,p).forEach(t=>{t(this)}),C(this,b,[]),C(this,p,[])}}b=new WeakMap,p=new WeakMap;function E(e,r,t){const s=r.subscribe(f=>{t(f)});z.connector.subscribe(e,{disconnectCallback:()=>{s()},maxWaitSec:20,unsubscribeAfterDisconnect:!0})}function H(e,r){r&&(r instanceof l.Store?E(e,r,t=>{t.previous&&e.classList.remove(t.previous.toString()),t.current&&e.classList.add(t.current.toString())}):typeof r=="object"&&!Array.isArray(r)?Object.entries(r).forEach(([t,s])=>{s instanceof l.Store?E(e,s,f=>{e.classList.toggle(t,!!f.current)}):s&&e.classList.add(t)}):Array.isArray(r)?r.forEach(t=>{typeof t=="string"?e.classList.add(t):H(e,t)}):r.toString().split(" ").map(t=>e.classList.add(t.trim())))}function V(e,r){r&&(typeof r=="object"?Object.entries(r).forEach(([t,s])=>{s instanceof l.Store?E(e,s,f=>{var n;e.style[t]=(n=f.current)==null?void 0:n.toString()}):(typeof s=="number"||typeof s=="string"||typeof s=="boolean")&&(e.style[t]=s.toString())}):typeof r=="string"&&(e.style=r))}function A(e,r,t){r==="ref"&&t?Array.isArray(t)?t.forEach(s=>{typeof s=="object"&&"value"in s&&(s.value=e)}):typeof t=="object"&&"value"in t&&(t.value=e):r==="className"||r==="class"?H(e,t):r==="style"?V(e,t):typeof t=="number"?r==="tabIndex"?e.setAttribute("tabindex",t.toString()):A(e,r,t.toString()):typeof t=="string"?r==="htmlFor"?e.setAttribute("for",t):e.setAttribute(r,t):typeof t=="boolean"?t?e.setAttribute(r,""):e.removeAttribute(r):t instanceof l.Store&&E(e,t,s=>{r in e?e[r]=s.current:A(e,r,s.current)})}function Y(e,r){for(const[t,s]of Object.entries(r!=null?r:{}))typeof s=="function"&&t.startsWith("on")?e.addEventListener(t.replace("on","").toLowerCase(),s):A(e,t,s)}function I(e){const r=[];return e.forEach(t=>{t!=null&&(typeof t=="number"?r.push(t.toString()):Array.isArray(t)?t.forEach(s=>{r.push(...I(s))}):r.push(t))}),r}function Z(e,r){const t=[...e.childNodes].filter(o=>o.__storeId===r.id),s=r.current,f=Array.isArray(s)?s:[s],n=[];if(f.forEach(o=>{let i=null;typeof o=="boolean"||typeof o=="number"||typeof o=="string"?i=document.createTextNode(o.toString()):o instanceof Node&&(i=o),i&&(i.__storeId=r.id,n.push(i))}),r instanceof Q.DerivedKeyedArray){const o=[];n.forEach((i,c)=>{const a=t.find(h=>h.__key===i.__key);a?a.isEqualNode(i)?o.push(a):(a.replaceWith(i),o.push(i)):(o.push(i),e.appendChild(i))}),t.forEach(i=>{o.includes(i)||i.remove()})}else n.forEach((o,i)=>{var a;const c=t[i];if(c)c.isEqualNode(o)||(c.replaceWith(o),t[i]=o);else{const h=t[t.length-1];h?(a=h.parentNode)==null||a.insertBefore(o,h.nextSibling):e.appendChild(o)}}),t.slice(n.length).forEach(o=>{o.remove()})}class w{constructor(r,t,s){this.tag=r,this.attributes=t,this.children=s}}class g extends w{}class _ extends w{}class O extends w{}function u(e,r,t,s=!1){const f=I(t);Y(e,r),f.forEach(n=>{if(n instanceof l.Store)E(e,n,()=>{Z(e,n)});else if(n instanceof g)n.tag==="shadow"&&e.shadowRoot?u(e.shadowRoot,n.attributes,n.children):u(e,n.attributes,n.children);else if(n instanceof _){let o=null;n.tag==="svg"?(o=document.createElementNS("http://www.w3.org/2000/svg","svg"),u(o,n.attributes,n.children,!0)):o=s?document.createElementNS("http://www.w3.org/2000/svg",n.tag):document.createElement(n.tag),u(o,n.attributes,n.children,s),e.append(o)}else if(n instanceof O){const o=document.createElement(n.tag);u(o,n.attributes,n.children);const i=P.diff(document.head,o);P.patch(document.head,i)}else e.append(n)})}function R(e,r,...t){var s;if(typeof e=="string")return e==="component"?new g(e,r,t):e==="shadow"?new g(e,r,t):e==="head"?new O(e,r,t):new _(e,r,t);{if(e===m)return m(t);if(e.template)return e(y({},r));const f=`e-${$.camelToKebab(e.name)}`;let n=customElements.get(f);n||(n=(s=class extends U{constructor(){super()}},s.formAssociated=e.formAssociated,s),customElements.define(f,n));const o=new n,i=D(y({},r),{children:t}),c=e(i);return __JSX_HMR_DEV__&&(o.__props__=i),(c instanceof g||c instanceof _)&&(c!=null&&c.children||c.attributes)&&u(o,c.attributes,c.children),o}}function m(e){const r=document.createDocumentFragment();return u(r,void 0,e),r}function G(e,r,t){const s=R(r,y({},t));return e.append(s),s}exports.Fragment=m;exports.activeComponent=W;exports.h=R;exports.render=G;
@@ -6,6 +6,11 @@ export type HeadNode = HTMLStyleElement | HTMLScriptElement | HTMLLinkElement;
6
6
  export interface RouteParameters {
7
7
  urlPatternResult: URLPatternResult;
8
8
  }
9
+ export interface RouteEvents {
10
+ __hmrInstanceReplace: CustomEvent<{
11
+ element: HTMLElement;
12
+ }>;
13
+ }
9
14
  export declare class Route {
10
15
  #private;
11
16
  constructor(pattern: string, module: RouteModule);
@@ -17,3 +22,7 @@ export declare class Route {
17
22
  render(container: Element | ShadowRoot, url: URL): Promise<void>;
18
23
  close(): void;
19
24
  }
25
+ declare global {
26
+ interface HTMLElementEventMap extends RouteEvents {
27
+ }
28
+ }