aptechka 0.81.0 → 0.82.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/{Animation-C4tLEBGM.js → Animation-DxtCzFP3.js} +2 -2
- package/lib/{Composed-BB1MtFiT.js → Composed-DtS09lSU.js} +2 -2
- package/lib/{Damped-DVG5nrYV.js → Damped-DMnIOXpC.js} +2 -2
- package/lib/{DerivedArray-D3scYQdp.js → DerivedArray-DG9iR0mf.js} +1 -1
- package/lib/{DragControls-Cm_88cLt.js → DragControls-DCC8iEOR.js} +4 -4
- package/lib/LocalLinks-Bua7BGRF.cjs +1 -0
- package/lib/LocalLinks-TQkTpAMx.js +62 -0
- package/lib/PageAnnouncerElement-C4k2kDJ5.cjs +1 -0
- package/lib/PageAnnouncerElement-sfh0_4vl.js +24 -0
- package/lib/PageScroll-C7QBpx0G.cjs +1 -0
- package/lib/PageScroll-cQ3B5-6N.js +62 -0
- package/lib/SourceElement-BQ7g2KWK.js +260 -0
- package/lib/SourceElement-TzgPNQOd.cjs +5 -0
- package/lib/{Store-BtVtCGLk.js → Store-CgQ3ReoB.js} +1 -1
- package/lib/{Tweened-C1lnK6n9.js → Tweened-lT68VACv.js} +2 -2
- package/lib/{Viewport-DbN_JWBM.js → Viewport-DGnJ31b4.js} +2 -2
- package/lib/accordion/index.js +1 -1
- package/lib/animation/index.js +3 -3
- package/lib/attribute/index.js +3 -3
- package/lib/billboard/index.js +2 -2
- package/lib/cache/Cache.d.ts +8 -0
- package/lib/cache/index.cjs +1 -0
- package/lib/cache/index.d.ts +1 -0
- package/lib/cache/index.js +37 -0
- package/lib/canvas/index.js +2 -2
- package/lib/controls/index.js +1 -1
- package/lib/css-property/index.js +3 -3
- package/lib/css-value-parser/index.js +1 -1
- package/lib/dev/index.js +2 -2
- package/lib/device/index.js +1 -1
- package/lib/{dom-fgxIeFxm.js → dom-BIeVMHfK.js} +2 -2
- package/lib/element-linked-store/index.js +2 -2
- package/lib/element-resizer/index.js +2 -2
- package/lib/en3/index.js +2 -2
- package/lib/history/History.d.ts +10 -0
- package/lib/history/index.cjs +1 -0
- package/lib/history/index.d.ts +1 -0
- package/lib/history/index.js +34 -0
- package/lib/iframe/index.cjs +1 -1
- package/lib/iframe/index.js +3 -3
- package/lib/image/index.cjs +1 -1
- package/lib/image/index.js +4 -4
- package/lib/{index-JqYHGoo6.js → index-LReFyN6i.js} +1 -1
- package/lib/intersector/index.js +2 -2
- package/lib/jsx/index.js +6 -6
- package/lib/ladder/index.js +2 -2
- package/lib/layout-box/index.js +2 -2
- package/lib/loading/index.js +1 -1
- package/lib/local-links/LocalLinks.d.ts +17 -0
- package/lib/local-links/index.cjs +1 -0
- package/lib/local-links/index.d.ts +1 -0
- package/lib/local-links/index.js +4 -0
- package/lib/masonry-layout/index.js +2 -2
- package/lib/media/index.js +2 -2
- package/lib/metadata-BcYZ5w3T.cjs +1 -0
- package/lib/metadata-jfowcCyz.js +12 -0
- package/lib/morph/index.cjs +1 -1
- package/lib/morph/index.js +141 -140
- package/lib/morph-B6sGhLCi.cjs +1 -0
- package/lib/morph-BQErz7qP.js +242 -0
- package/lib/need_redo_tweaker/index.cjs +1 -1
- package/lib/need_redo_tweaker/index.js +4 -4
- package/lib/{object-D6MVWB4l.js → object-CcMK4y_r.js} +12 -10
- package/lib/object-baN9pgbU.cjs +1 -0
- package/lib/page-announcer/PageAnnouncerElement.d.ts +10 -0
- package/lib/page-announcer/index.cjs +1 -0
- package/lib/page-announcer/index.d.ts +1 -0
- package/lib/page-announcer/index.js +4 -0
- package/lib/page-scroll/PageScroll.d.ts +23 -0
- package/lib/page-scroll/index.cjs +1 -0
- package/lib/page-scroll/index.d.ts +1 -0
- package/lib/page-scroll/index.js +4 -0
- package/lib/pixel-perfect/index.js +3 -3
- package/lib/pointer/index.js +4 -4
- package/lib/popover/index.cjs +1 -1
- package/lib/popover/index.js +3 -3
- package/lib/radio/index.js +1 -1
- package/lib/{render-CMQbWthg.js → render-CiA0mn5V.js} +3 -3
- package/lib/router/Route.d.ts +1 -2
- package/lib/router/Router.d.ts +18 -23
- package/lib/router/index.cjs +1 -1
- package/lib/router/index.d.ts +1 -1
- package/lib/router/index.js +183 -249
- package/lib/scroll/index.js +8 -8
- package/lib/scroll-entries/index.js +1 -1
- package/lib/{scroll-7JSxRKFK.js → scroll-jcbHDexr.js} +2 -2
- package/lib/scroll-kit/index.js +4 -4
- package/lib/sequence/index.cjs +1 -1
- package/lib/sequence/index.js +3 -3
- package/lib/size-element/index.js +1 -1
- package/lib/slicer/index.js +1 -1
- package/lib/source/SourceElement.d.ts +1 -1
- package/lib/source/index.cjs +1 -1
- package/lib/source/index.js +1 -1
- package/lib/spa/SPA.d.ts +29 -0
- package/lib/spa/index.cjs +1 -0
- package/lib/spa/index.d.ts +1 -0
- package/lib/spa/index.js +130 -0
- package/lib/store/index.js +3 -3
- package/lib/{stylesheet-JlRFfJIc.js → stylesheet-DbHOxtjw.js} +1 -1
- package/lib/ticker/index.js +2 -2
- package/lib/url-CPgw9bd5.cjs +1 -0
- package/lib/url-DAl-mgbC.js +97 -0
- package/lib/utils/index.cjs +1 -1
- package/lib/utils/index.d.ts +2 -0
- package/lib/utils/index.js +141 -120
- package/lib/utils/morph.d.ts +49 -0
- package/lib/utils/object.d.ts +1 -1
- package/lib/utils/url.d.ts +6 -0
- package/lib/video/index.cjs +1 -1
- package/lib/video/index.js +3 -3
- package/lib/window-resizer/index.js +1 -1
- package/lib/youtube/index.cjs +1 -1
- package/lib/youtube/index.js +3 -3
- package/package.json +49 -1
- package/lib/SourceElement-BBfaAgwe.cjs +0 -5
- package/lib/SourceElement-BiNNtaz9.js +0 -265
- package/lib/object-CCiXnER2.cjs +0 -1
- package/lib/router/Link.d.ts +0 -8
- package/lib/url-CoUSEREU.cjs +0 -1
- package/lib/url-IGj2LgDW.js +0 -66
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var l = (s) => {
|
|
2
|
+
throw TypeError(s);
|
|
3
|
+
};
|
|
4
|
+
var c = (s, t, e) => t.has(s) || l("Cannot " + e);
|
|
5
|
+
var n = (s, t, e) => (c(s, t, "read from private field"), e ? e.call(s) : t.get(s)), a = (s, t, e) => t.has(s) ? l("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, e);
|
|
6
|
+
var i;
|
|
7
|
+
class h {
|
|
8
|
+
constructor() {
|
|
9
|
+
a(this, i, /* @__PURE__ */ new Map());
|
|
10
|
+
}
|
|
11
|
+
get(t) {
|
|
12
|
+
const e = n(this, i).get(t);
|
|
13
|
+
return e ? (Date.now() - e.timestamp >= e.ttl && this.delete(t), e.result) : null;
|
|
14
|
+
}
|
|
15
|
+
set(t, e, r) {
|
|
16
|
+
n(this, i).set(t, {
|
|
17
|
+
timestamp: Date.now(),
|
|
18
|
+
result: e,
|
|
19
|
+
ttl: r ? r * 60 * 1e3 : 1 / 0
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
delete(t) {
|
|
23
|
+
n(this, i).delete(t);
|
|
24
|
+
}
|
|
25
|
+
cleanup() {
|
|
26
|
+
const t = Date.now();
|
|
27
|
+
for (const [e, r] of n(this, i).entries())
|
|
28
|
+
t - r.timestamp >= r.ttl && n(this, i).delete(e);
|
|
29
|
+
}
|
|
30
|
+
clear() {
|
|
31
|
+
n(this, i).clear();
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
i = new WeakMap();
|
|
35
|
+
export {
|
|
36
|
+
h as Cache
|
|
37
|
+
};
|
package/lib/canvas/index.js
CHANGED
|
@@ -6,9 +6,9 @@ var t = (i, s, e) => (x(i, s, "read from private field"), e ? e.call(i) : s.get(
|
|
|
6
6
|
import { CSSProperty as z } from "../css-property/index.js";
|
|
7
7
|
import { elementResizer as C } from "../element-resizer/index.js";
|
|
8
8
|
import { ticker as w } from "../ticker/index.js";
|
|
9
|
-
import { i as y } from "../index-
|
|
9
|
+
import { i as y } from "../index-LReFyN6i.js";
|
|
10
10
|
import { c as B } from "../math-BOBiC4TN.js";
|
|
11
|
-
import { c as F } from "../stylesheet-
|
|
11
|
+
import { c as F } from "../stylesheet-DbHOxtjw.js";
|
|
12
12
|
var o, r, d, m, l, u, b, f, n, R, k, g, v, E, P;
|
|
13
13
|
class L extends HTMLElement {
|
|
14
14
|
constructor() {
|
package/lib/controls/index.js
CHANGED
|
@@ -5,10 +5,10 @@ var S = (s, r, e) => r.has(s) || p("Cannot " + e);
|
|
|
5
5
|
var t = (s, r, e) => (S(s, r, "read from private field"), e ? e.call(s) : r.get(s)), c = (s, r, e) => r.has(s) ? p("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, e), u = (s, r, e, i) => (S(s, r, "write to private field"), i ? i.call(s, e) : r.set(s, e), e);
|
|
6
6
|
import { cssValueParser as w } from "../css-value-parser/index.js";
|
|
7
7
|
import { RESIZE_ORDER as R } from "../order/index.js";
|
|
8
|
-
import { S as V } from "../Store-
|
|
9
|
-
import { g as v } from "../dom-
|
|
8
|
+
import { S as V } from "../Store-CgQ3ReoB.js";
|
|
9
|
+
import { g as v } from "../dom-BIeVMHfK.js";
|
|
10
10
|
import "construct-style-sheets-polyfill";
|
|
11
|
-
import "../index-
|
|
11
|
+
import "../index-LReFyN6i.js";
|
|
12
12
|
import { windowResizer as g } from "../window-resizer/index.js";
|
|
13
13
|
var b, o, h, l, a, n;
|
|
14
14
|
class A extends V {
|
package/lib/dev/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CSSProperty as e } from "../css-property/index.js";
|
|
2
|
-
import { a as o } from "../Store-
|
|
2
|
+
import { a as o } from "../Store-CgQ3ReoB.js";
|
|
3
3
|
import "construct-style-sheets-polyfill";
|
|
4
|
-
import "../index-
|
|
4
|
+
import "../index-LReFyN6i.js";
|
|
5
5
|
import { ticker as i } from "../ticker/index.js";
|
|
6
6
|
function s() {
|
|
7
7
|
i.subscribe(() => {
|
package/lib/device/index.js
CHANGED
|
@@ -15,9 +15,9 @@ var E = (s, r, t) => r in s ? S(s, r, { enumerable: !0, configurable: !0, writab
|
|
|
15
15
|
}, L = (s, r) => P(s, g(r));
|
|
16
16
|
var f = (s, r, t) => r.has(s) || y("Cannot " + t);
|
|
17
17
|
var c = (s, r, t) => (f(s, r, "read from private field"), t ? t.call(s) : r.get(s)), a = (s, r, t) => r.has(s) ? y("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(s) : r.set(s, t), l = (s, r, t, i) => (f(s, r, "write to private field"), i ? i.call(s, t) : r.set(s, t), t), d = (s, r, t) => (f(s, r, "access private method"), t);
|
|
18
|
-
import { S as W } from "../Store-
|
|
18
|
+
import { S as W } from "../Store-CgQ3ReoB.js";
|
|
19
19
|
import "construct-style-sheets-polyfill";
|
|
20
|
-
import "../index-
|
|
20
|
+
import "../index-LReFyN6i.js";
|
|
21
21
|
var h, n, p;
|
|
22
22
|
class j extends W {
|
|
23
23
|
constructor(t, i) {
|
|
@@ -3,8 +3,8 @@ var h = (r) => {
|
|
|
3
3
|
};
|
|
4
4
|
var y = (r, t, s) => t.has(r) || h("Cannot " + s);
|
|
5
5
|
var n = (r, t, s) => (y(r, t, "read from private field"), s ? s.call(r) : t.get(r)), b = (r, t, s) => t.has(r) ? h("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, s), u = (r, t, s, e) => (y(r, t, "write to private field"), e ? e.call(r, s) : t.set(r, s), s);
|
|
6
|
-
import { i as p } from "../index-
|
|
7
|
-
import { g as w } from "../dom-
|
|
6
|
+
import { i as p } from "../index-LReFyN6i.js";
|
|
7
|
+
import { g as w } from "../dom-BIeVMHfK.js";
|
|
8
8
|
import "construct-style-sheets-polyfill";
|
|
9
9
|
var i, c, f;
|
|
10
10
|
class z {
|
package/lib/en3/index.js
CHANGED
|
@@ -17,9 +17,9 @@ var U = (r, e, s) => e.has(r) || B("Cannot " + s);
|
|
|
17
17
|
var t = (r, e, s) => (U(r, e, "read from private field"), s ? s.call(r) : e.get(r)), c = (r, e, s) => e.has(r) ? B("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(r) : e.set(r, s), n = (r, e, s, i) => (U(r, e, "write to private field"), i ? i.call(r, s) : e.set(r, s), s);
|
|
18
18
|
import { RESIZE_ORDER as he, TICK_ORDER as ae } from "../order/index.js";
|
|
19
19
|
import { ticker as Z } from "../ticker/index.js";
|
|
20
|
-
import { g as Y } from "../dom-
|
|
20
|
+
import { g as Y } from "../dom-BIeVMHfK.js";
|
|
21
21
|
import "construct-style-sheets-polyfill";
|
|
22
|
-
import "../index-
|
|
22
|
+
import "../index-LReFyN6i.js";
|
|
23
23
|
import { windowResizer as q } from "../window-resizer/index.js";
|
|
24
24
|
import { Mesh as $, OrthographicCamera as N, PerspectiveCamera as J, Scene as ne, REVISION as ce, WebGLRenderer as le, Vector3 as W } from "three";
|
|
25
25
|
import { LayoutBox as Q } from "../layout-box/index.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var d=e=>{throw TypeError(e)};var p=(e,t,o)=>t.has(e)||d("Cannot "+o);var i=(e,t,o)=>(p(e,t,"read from private field"),o?o.call(e):t.get(e)),a=(e,t,o)=>t.has(e)?d("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,o),h=(e,t,o,c)=>(p(e,t,"write to private field"),c?c.call(e,o):t.set(e,o),o);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var s,n,r;class w{constructor(t){a(this,s,!1);a(this,n);a(this,r,()=>{if(!window.location.hash)try{h(this,s,!0),i(this,n).onPop(new URL(window.location.toString())),h(this,s,!1)}catch(t){window.location.reload()}});window.addEventListener("popstate",i(this,r)),h(this,n,t)}get isBack(){return i(this,s)}push(t){history.pushState({},"",`${t}`)}destroy(){window.removeEventListener("popstate",i(this,r))}}s=new WeakMap,n=new WeakMap,r=new WeakMap;exports.History=w;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { History } from './History';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var w = (o) => {
|
|
2
|
+
throw TypeError(o);
|
|
3
|
+
};
|
|
4
|
+
var c = (o, t, s) => t.has(o) || w("Cannot " + s);
|
|
5
|
+
var i = (o, t, s) => (c(o, t, "read from private field"), s ? s.call(o) : t.get(o)), a = (o, t, s) => t.has(o) ? w("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(o) : t.set(o, s), h = (o, t, s, p) => (c(o, t, "write to private field"), p ? p.call(o, s) : t.set(o, s), s);
|
|
6
|
+
var e, n, r;
|
|
7
|
+
class l {
|
|
8
|
+
constructor(t) {
|
|
9
|
+
a(this, e, !1);
|
|
10
|
+
a(this, n);
|
|
11
|
+
a(this, r, () => {
|
|
12
|
+
if (!window.location.hash)
|
|
13
|
+
try {
|
|
14
|
+
h(this, e, !0), i(this, n).onPop(new URL(window.location.toString())), h(this, e, !1);
|
|
15
|
+
} catch (t) {
|
|
16
|
+
window.location.reload();
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
window.addEventListener("popstate", i(this, r)), h(this, n, t);
|
|
20
|
+
}
|
|
21
|
+
get isBack() {
|
|
22
|
+
return i(this, e);
|
|
23
|
+
}
|
|
24
|
+
push(t) {
|
|
25
|
+
history.pushState({}, "", `${t}`);
|
|
26
|
+
}
|
|
27
|
+
destroy() {
|
|
28
|
+
window.removeEventListener("popstate", i(this, r));
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
e = new WeakMap(), n = new WeakMap(), r = new WeakMap();
|
|
32
|
+
export {
|
|
33
|
+
l as History
|
|
34
|
+
};
|
package/lib/iframe/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var u=r=>{throw TypeError(r)};var a=(r,t,e)=>t.has(r)||u("Cannot "+e);var s=(r,t,e)=>(a(r,t,"read from private field"),e?e.call(r):t.get(r)),o=(r,t,e)=>t.has(r)?u("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),c=(r,t,e,i)=>(a(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../SourceElement-
|
|
1
|
+
"use strict";var u=r=>{throw TypeError(r)};var a=(r,t,e)=>t.has(r)||u("Cannot "+e);var s=(r,t,e)=>(a(r,t,"read from private field"),e?e.call(r):t.get(r)),o=(r,t,e)=>t.has(r)?u("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(r):t.set(r,e),c=(r,t,e,i)=>(a(r,t,"write to private field"),i?i.call(r,e):t.set(r,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("../SourceElement-TzgPNQOd.cjs");require("../window-resizer/index.cjs");require("../Store-1JrMCgdX.cjs");const f=require("../index-CKTweR3M.cjs");require("construct-style-sheets-polyfill");var n,l,m;class E extends h.SourceElement{constructor(){super({sourceSetOptions:{mediaBuckets:!1}});o(this,n,null);o(this,l,()=>{var e,i;(i=(e=this.consumerElement).onload)==null||i.call(e,new Event("load"))});o(this,m,()=>{var e,i;(i=(e=this.consumerElement).onload)==null||i.call(e,new Event("error"))})}createConsumer(){return document.createElement("div")}consumeSource(e){s(this,n)&&(s(this,n).onload=null,s(this,n).onerror=null),this.consumerElement.innerHTML=(e==null?void 0:e.replace(/\\u003C/g,"<").replace(/\\u003E/g,">").replace(/\\"/g,'"'))||"",c(this,n,this.consumerElement.querySelector("iframe")),s(this,n)&&(s(this,n).onload=s(this,l),s(this,n).onerror=s(this,m))}}n=new WeakMap,l=new WeakMap,m=new WeakMap;f.isBrowser&&!customElements.get("e-iframe")&&customElements.define("e-iframe",E);exports.IFrameElement=E;
|
package/lib/iframe/index.js
CHANGED
|
@@ -3,10 +3,10 @@ var a = (r) => {
|
|
|
3
3
|
};
|
|
4
4
|
var u = (r, t, e) => t.has(r) || a("Cannot " + e);
|
|
5
5
|
var s = (r, t, e) => (u(r, t, "read from private field"), e ? e.call(r) : t.get(r)), i = (r, t, e) => t.has(r) ? a("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(r) : t.set(r, e), c = (r, t, e, o) => (u(r, t, "write to private field"), o ? o.call(r, e) : t.set(r, e), e);
|
|
6
|
-
import { a as E } from "../SourceElement-
|
|
6
|
+
import { a as E } from "../SourceElement-BQ7g2KWK.js";
|
|
7
7
|
import "../window-resizer/index.js";
|
|
8
|
-
import "../Store-
|
|
9
|
-
import { i as f } from "../index-
|
|
8
|
+
import "../Store-CgQ3ReoB.js";
|
|
9
|
+
import { i as f } from "../index-LReFyN6i.js";
|
|
10
10
|
import "construct-style-sheets-polyfill";
|
|
11
11
|
var n, m, l;
|
|
12
12
|
class h extends E {
|
package/lib/image/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../Viewport-Cx50Hufs.cjs"),i=require("../SourceElement-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../Viewport-Cx50Hufs.cjs"),i=require("../SourceElement-TzgPNQOd.cjs");require("../window-resizer/index.cjs");require("../Store-1JrMCgdX.cjs");const n=require("../index-CKTweR3M.cjs");require("construct-style-sheets-polyfill");class t extends i.SourceElement{createConsumer(){return document.createElement("img")}consumeSource(e){if(e&&this.hasAttribute("webp")&&s.device.isWebp){const r=e.split(".").slice(0,-1).join(".")+".webp";this.consumerElement.src=r}else this.consumerElement.src=e||""}}n.isBrowser&&!customElements.get("e-image")&&customElements.define("e-image",t);exports.ImageElement=t;
|
package/lib/image/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { d as m } from "../Viewport-
|
|
2
|
-
import { a as s } from "../SourceElement-
|
|
1
|
+
import { d as m } from "../Viewport-DGnJ31b4.js";
|
|
2
|
+
import { a as s } from "../SourceElement-BQ7g2KWK.js";
|
|
3
3
|
import "../window-resizer/index.js";
|
|
4
|
-
import "../Store-
|
|
5
|
-
import { i } from "../index-
|
|
4
|
+
import "../Store-CgQ3ReoB.js";
|
|
5
|
+
import { i } from "../index-LReFyN6i.js";
|
|
6
6
|
import "construct-style-sheets-polyfill";
|
|
7
7
|
class r extends s {
|
|
8
8
|
createConsumer() {
|
|
@@ -3,7 +3,7 @@ var m = (s) => {
|
|
|
3
3
|
};
|
|
4
4
|
var y = (s, t, n) => t.has(s) || m("Cannot " + n);
|
|
5
5
|
var i = (s, t, n) => (y(s, t, "read from private field"), n ? n.call(s) : t.get(s)), u = (s, t, n) => t.has(s) ? m("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(s) : t.set(s, n), h = (s, t, n, e) => (y(s, t, "write to private field"), e ? e.call(s, n) : t.set(s, n), n);
|
|
6
|
-
import { g as d } from "./dom-
|
|
6
|
+
import { g as d } from "./dom-BIeVMHfK.js";
|
|
7
7
|
import "construct-style-sheets-polyfill";
|
|
8
8
|
const w = typeof window != "undefined" && typeof window.document != "undefined";
|
|
9
9
|
var r, f, b;
|
package/lib/intersector/index.js
CHANGED
package/lib/jsx/index.js
CHANGED
|
@@ -9,14 +9,14 @@ var d = (t, e, n) => e in t ? S(t, e, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
y.call(e, n) && d(t, n, e[n]);
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import { a as r } from "../render-
|
|
13
|
-
import { F as V, h as W, r as X } from "../render-
|
|
12
|
+
import { a as r } from "../render-CiA0mn5V.js";
|
|
13
|
+
import { F as V, h as W, r as X } from "../render-CiA0mn5V.js";
|
|
14
14
|
import { c as h } from "../string-BlMQbe8b.js";
|
|
15
15
|
import "construct-style-sheets-polyfill";
|
|
16
|
-
import "../index-
|
|
17
|
-
import { S as p } from "../Store-
|
|
18
|
-
import { C, D as w, R as D } from "../Composed-
|
|
19
|
-
import { D as R, a as x } from "../DerivedArray-
|
|
16
|
+
import "../index-LReFyN6i.js";
|
|
17
|
+
import { S as p } from "../Store-CgQ3ReoB.js";
|
|
18
|
+
import { C, D as w, R as D } from "../Composed-DtS09lSU.js";
|
|
19
|
+
import { D as R, a as x } from "../DerivedArray-DG9iR0mf.js";
|
|
20
20
|
function N() {
|
|
21
21
|
return { value: null };
|
|
22
22
|
}
|
package/lib/ladder/index.js
CHANGED
|
@@ -14,9 +14,9 @@ var S = (e, s, t) => s in e ? w(e, s, { enumerable: !0, configurable: !0, writab
|
|
|
14
14
|
};
|
|
15
15
|
var g = (e, s, t) => s.has(e) || m("Cannot " + t);
|
|
16
16
|
var r = (e, s, t) => (g(e, s, "read from private field"), t ? t.call(e) : s.get(e)), u = (e, s, t) => s.has(e) ? m("Cannot add the same private member more than once") : s instanceof WeakSet ? s.add(e) : s.set(e, t), d = (e, s, t, i) => (g(e, s, "write to private field"), i ? i.call(e, t) : s.set(e, t), t), b = (e, s, t) => (g(e, s, "access private method"), t);
|
|
17
|
-
import { S as M } from "../Store-
|
|
17
|
+
import { S as M } from "../Store-CgQ3ReoB.js";
|
|
18
18
|
import "construct-style-sheets-polyfill";
|
|
19
|
-
import "../index-
|
|
19
|
+
import "../index-LReFyN6i.js";
|
|
20
20
|
var f, h, a, p, y;
|
|
21
21
|
class L extends M {
|
|
22
22
|
constructor(t) {
|
package/lib/layout-box/index.js
CHANGED
|
@@ -8,8 +8,8 @@ import { Ladder as N } from "../ladder/index.js";
|
|
|
8
8
|
import { RESIZE_ORDER as St, TICK_ORDER as dt } from "../order/index.js";
|
|
9
9
|
import { scrollEntries as $ } from "../scroll-entries/index.js";
|
|
10
10
|
import { ticker as j } from "../ticker/index.js";
|
|
11
|
-
import { i as tt } from "../index-
|
|
12
|
-
import { g as et } from "../dom-
|
|
11
|
+
import { i as tt } from "../index-LReFyN6i.js";
|
|
12
|
+
import { g as et } from "../dom-BIeVMHfK.js";
|
|
13
13
|
import { g as F, a as G } from "../layout-BSMtwCga.js";
|
|
14
14
|
import "construct-style-sheets-polyfill";
|
|
15
15
|
import { elementResizer as st } from "../element-resizer/index.js";
|
package/lib/loading/index.js
CHANGED
|
@@ -6,7 +6,7 @@ var s = (i, t, e) => (z(i, t, "read from private field"), e ? e.call(i) : t.get(
|
|
|
6
6
|
import { d as p } from "../events-CsVF98U6.js";
|
|
7
7
|
import { d as w } from "../function-C10DGppn.js";
|
|
8
8
|
import "construct-style-sheets-polyfill";
|
|
9
|
-
import "../index-
|
|
9
|
+
import "../index-LReFyN6i.js";
|
|
10
10
|
var o, d, l, n, c, g, m;
|
|
11
11
|
class S {
|
|
12
12
|
constructor() {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface LocalLinksOptions {
|
|
2
|
+
base?: string;
|
|
3
|
+
trailingSlash?: boolean;
|
|
4
|
+
onClick?: (url: URL, options: LocalLinksLinkOptions) => void;
|
|
5
|
+
includeAnchor?: ((element: HTMLAnchorElement) => boolean) | undefined;
|
|
6
|
+
}
|
|
7
|
+
export interface LocalLinksLinkOptions {
|
|
8
|
+
keepScrollPosition?: boolean;
|
|
9
|
+
cache?: boolean;
|
|
10
|
+
revalidate?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare class LocalLinks {
|
|
13
|
+
#private;
|
|
14
|
+
constructor(options: Partial<LocalLinksOptions>);
|
|
15
|
+
destroy(): void;
|
|
16
|
+
update(): void;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../LocalLinks-Bua7BGRF.cjs");exports.LocalLinks=e.LocalLinks;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { LocalLinks, type LocalLinksLinkOptions, type LocalLinksOptions, } from './LocalLinks';
|
|
@@ -4,9 +4,9 @@ var w = (s) => {
|
|
|
4
4
|
var f = (s, e, t) => e.has(s) || w("Cannot " + t);
|
|
5
5
|
var o = (s, e, t) => (f(s, e, "read from private field"), t ? t.call(s) : e.get(s)), c = (s, e, t) => e.has(s) ? w("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, t), y = (s, e, t, i) => (f(s, e, "write to private field"), i ? i.call(s, t) : e.set(s, t), t), m = (s, e, t) => (f(s, e, "access private method"), t);
|
|
6
6
|
import { CSSProperty as v } from "../css-property/index.js";
|
|
7
|
-
import { i as M } from "../index-
|
|
7
|
+
import { i as M } from "../index-LReFyN6i.js";
|
|
8
8
|
import { d as C } from "../events-CsVF98U6.js";
|
|
9
|
-
import { c as R } from "../stylesheet-
|
|
9
|
+
import { c as R } from "../stylesheet-DbHOxtjw.js";
|
|
10
10
|
var l, a, h, u, b, d, p;
|
|
11
11
|
class x extends HTMLElement {
|
|
12
12
|
constructor() {
|
package/lib/media/index.js
CHANGED
|
@@ -5,9 +5,9 @@ var h = (s, e, r) => e.has(s) || u("Cannot " + r);
|
|
|
5
5
|
var c = (s, e, r) => (h(s, e, "read from private field"), r ? r.call(s) : e.get(s)), m = (s, e, r) => e.has(s) ? u("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, r), a = (s, e, r, t) => (h(s, e, "write to private field"), t ? t.call(s, r) : e.set(s, r), r);
|
|
6
6
|
import { RESIZE_ORDER as l } from "../order/index.js";
|
|
7
7
|
import { windowResizer as n } from "../window-resizer/index.js";
|
|
8
|
-
import { S as p } from "../Store-
|
|
8
|
+
import { S as p } from "../Store-CgQ3ReoB.js";
|
|
9
9
|
import "construct-style-sheets-polyfill";
|
|
10
|
-
import "../index-
|
|
10
|
+
import "../index-LReFyN6i.js";
|
|
11
11
|
var i, o;
|
|
12
12
|
class M extends p {
|
|
13
13
|
constructor(r) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function e(o){if(isNaN(o))return"0:00";const t=Math.floor(Math.max(0,o)),r=Math.floor(t/3600),a=Math.floor(t%3600/60),n=(t%60).toString().padStart(2,"0");if(r>0){const s=a.toString().padStart(2,"0");return`${r}:${s}:${n}`}else return`${a}:${n}`}exports.formatMediaDuration=e;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function c(o) {
|
|
2
|
+
if (isNaN(o)) return "0:00";
|
|
3
|
+
const t = Math.floor(Math.max(0, o)), r = Math.floor(t / 3600), a = Math.floor(t % 3600 / 60), n = (t % 60).toString().padStart(2, "0");
|
|
4
|
+
if (r > 0) {
|
|
5
|
+
const s = a.toString().padStart(2, "0");
|
|
6
|
+
return `${r}:${s}:${n}`;
|
|
7
|
+
} else
|
|
8
|
+
return `${a}:${n}`;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
c as f
|
|
12
|
+
};
|
package/lib/morph/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var Ee=Object.defineProperty,be=Object.defineProperties;var Le=Object.getOwnPropertyDescriptors;var ee=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable;var se=(h,e)=>(e=Symbol[h])?e:Symbol.for("Symbol."+h),ie=h=>{throw TypeError(h)};var ae=(h,e,s)=>e in h?Ee(h,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):h[e]=s,Tt=(h,e)=>{for(var s in e||(e={}))Se.call(e,s)&&ae(h,s,e[s]);if(ee)for(var s of ee(e))ye.call(e,s)&&ae(h,s,e[s]);return h},zt=(h,e)=>be(h,Le(e));var It=(h,e,s)=>e.has(h)||ie("Cannot "+s);var t=(h,e,s)=>(It(h,e,"read from private field"),s?s.call(h):e.get(h)),l=(h,e,s)=>e.has(h)?ie("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(h):e.set(h,s),o=(h,e,s,i)=>(It(h,e,"write to private field"),i?i.call(h,s):e.set(h,s),s),g=(h,e,s)=>(It(h,e,"access private method"),s);var J=(h,e,s)=>new Promise((i,n)=>{var E=c=>{try{u(s.next(c))}catch(b){n(b)}},f=c=>{try{u(s.throw(c))}catch(b){n(b)}},u=c=>c.done?i(c.value):Promise.resolve(c.value).then(E,f);u((s=s.apply(h,e)).next())});var ne=(h,e,s)=>(e=h[se("asyncIterator")])?e.call(h):(h=h[se("iterator")](),e={},s=(i,n)=>(n=h[i])&&(e[i]=E=>new Promise((f,u,c)=>(E=n.call(h,E),c=E.done,Promise.resolve(E.value).then(b=>f({value:b,done:c}),u)))),s("next"),s("return"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("../index-CKTweR3M.cjs"),I=require("../events-KVanG9sR.cjs"),re=require("../scroll-DxcPU0vk.cjs");require("construct-style-sheets-polyfill");const ft=require("../url-CoUSEREU.cjs"),Pe=require("../css-value-parser/index.cjs"),le=require("../string-DUXXtU8v.cjs"),Ae=require("../math-GDWEqu7y.cjs");class ce extends HTMLElement{connectedCallback(){const e={"aria-live":"assertive","aria-atomic":"true",style:"position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"};for(const[s,i]of Object.entries(e))this.setAttribute(s,i)}}he.isBrowser&&!customElements.get("morph-announcer")&&customElements.define("morph-announcer",ce);var R,a,x,nt,Ut,de,Et,rt;class Wt{constructor(e,s){l(this,x);l(this,R);l(this,a);l(this,Et,e=>{e.preventDefault(),g(this,x,de).call(this)});l(this,rt,()=>{const e=t(this,a).hasAttribute("data-revalidate");t(this,R).prefetch(t(this,x,nt),e),t(this,a).removeEventListener("pointerenter",t(this,rt))});o(this,R,s),o(this,a,e),t(this,a).addEventListener("click",t(this,Et)),this.checkCurrent(location.href.replace(location.origin,""));const i=g(this,x,Ut).call(this,t(this,a).getAttribute("data-pagination-set-link")||t(this,a).getAttribute("data-pagination-more-link")||t(this,a).getAttribute("data-pagination-next-link")||t(this,a).getAttribute("data-pagination-prev-link"));i&&this.updatePagination(i.currentPage,i.selector),t(this,a).hasAttribute("data-prefetch")&&t(this,a).addEventListener("pointerenter",t(this,rt))}get element(){return t(this,a)}checkCurrent(e){var b,st;const s=t(this,R).normalizePath(e),i=t(this,R).normalizePath(t(this,x,nt));t(this,a).hasAttribute("data-include")&&s.pathname.includes(i.pathname)?t(this,a).classList.add("current"):i.pathname===s.pathname?t(this,a).classList.add("current"):(b=t(this,a).getAttribute("data-associated-paths"))!=null&&b.split(",").find(k=>s.pathname.includes(k))?t(this,a).classList.add("current"):t(this,a).classList.remove("current"),s.path===i.path?t(this,a).classList.add("exact"):t(this,a).classList.remove("exact");const[n,E]=(st=t(this,x,nt).split("#")[0])==null?void 0:st.split("?"),f=new URLSearchParams(E),u=new URLSearchParams(location.search);let c=0;for(const[k]of u)f.has(k)&&u.get(k)===f.get(k)&&c++;c?(t(this,a).classList.toggle("all-params-matched",u.size===c),t(this,a).classList.toggle("some-params-matched",u.size!==c)):!u.size&&t(this,a).hasAttribute("data-match-no-params")?t(this,a).classList.add("all-params-matched"):(t(this,a).classList.remove("all-params-matched"),t(this,a).classList.remove("some-params-matched"));for(const k in t(this,a).dataset){const at=le.camelToKebab(k);if(at.startsWith("match-param-")){const z=at.split("match-param-")[1],L=t(this,a).dataset[k],w=`param-${z}-matched`;u.has(z)&&u.get(z)===L||!u.has(z)&&(L===""||L==="*"||L==="all"||L==="any"||L==="vse")?t(this,a).classList.add(w):t(this,a).classList.remove(w)}}}updatePagination(e,s){const i=g(this,x,Ut).call(this,s);if(i)if(i.element.setAttribute("data-current-page",e.toString()),t(this,a).hasAttribute("data-pagination-more-link"))if(e<i.totalPages){t(this,a).style.display="";const n=t(this,a).querySelector("[data-pagination-more-link-counter]");n&&(n.textContent=(i.totalPages-e).toString());const E=t(this,a).getAttribute("href"),f=new URL(E,window.location.origin);f.searchParams.set("page",(e+1).toString());const u=f.href.replace(f.origin,"").toString();t(this,a).setAttribute("href",u),this.checkCurrent(u)}else t(this,a).style.display="none";else if(t(this,a).hasAttribute("data-pagination-prev-link")||t(this,a).hasAttribute("data-pagination-next-link")){const n=t(this,a).hasAttribute("data-pagination-prev-link"),E=t(this,a).getAttribute("href"),f=new URL(E,window.location.origin),u=e+(n?-1:1);f.searchParams.set("page",Ae.clamp(u,1,i.totalPages).toString());const c=f.href.replace(f.origin,"").toString();t(this,a).setAttribute("href",c),n?u<1?(t(this,a).classList.add("pagination-disabled"),t(this,a).setAttribute("tabindex","-1")):(t(this,a).classList.remove("pagination-disabled"),t(this,a).removeAttribute("tabindex")):u>i.totalPages?(t(this,a).classList.add("pagination-disabled"),t(this,a).setAttribute("tabindex","-1")):(t(this,a).classList.remove("pagination-disabled"),t(this,a).removeAttribute("tabindex"))}else t(this,a).hasAttribute("data-pagination-set-link")&&(t(this,a).getAttribute("data-value")===e.toString()?t(this,a).classList.add("pagination-current"):t(this,a).classList.remove("pagination-current"))}destroy(){t(this,a).removeEventListener("click",t(this,Et)),t(this,a).removeEventListener("pointerenter",t(this,rt)),t(this,a).classList.remove("current","exact","pagination-current")}}R=new WeakMap,a=new WeakMap,x=new WeakSet,nt=function(){const e=new URL(t(this,a).href);return t(this,R).normalizePath(e.pathname+e.search+e.hash).path},Ut=function(e){if(!e)return;const s=document.querySelector(e);if(s){const i=parseInt(s.getAttribute("data-current-page")||"1"),n=parseInt(s.getAttribute("data-total-pages")||"1");return{element:s,currentPage:i,totalPages:n,selector:e}}},de=function(){var s;if(document.documentElement.classList.contains("click-disabled"))return;if(t(this,a).hasAttribute("data-back")&&t(this,R).previousURL)history.back();else{const i=t(this,a).getAttribute("data-history-action")||"push",n=t(this,a).hasAttribute("data-center-scroll"),E=getComputedStyle(t(this,a)).getPropertyValue("--offset-scroll").trim(),f=E?Pe.cssValueParser.parse(E):void 0,u=t(this,a).hasAttribute("data-revalidate")||t(this,a).hasAttribute("data-pagination-more-link")||t(this,a).hasAttribute("data-pagination-set-link")||t(this,a).hasAttribute("data-pagination-next-link")||t(this,a).hasAttribute("data-pagination-prev-link"),c=t(this,a).hasAttribute("data-keep-search-parameters"),b=t(this,a).hasAttribute("data-keep-scroll-position")||t(this,a).hasAttribute("data-pagination-more-link"),st=t(this,a).getAttribute("data-scroll-behaviour"),k=((s=t(this,a).getAttribute("data-submorph"))==null?void 0:s.split(",").map(w=>w.trim()))||t(this,a).hasAttribute("data-pagination-more-link")&&[t(this,a).getAttribute("data-pagination-more-link")]||t(this,a).hasAttribute("data-pagination-set-link")&&[t(this,a).getAttribute("data-pagination-set-link")]||t(this,a).hasAttribute("data-pagination-next-link")&&[t(this,a).getAttribute("data-pagination-next-link")]||t(this,a).hasAttribute("data-pagination-prev-link")&&[t(this,a).getAttribute("data-pagination-prev-link")]||void 0,at=t(this,a).hasAttribute("data-clear-state");let z=t(this,x,nt);if(t(this,a).hasAttribute("data-toggle-params")){const[w,Ct]=t(this,x,nt).split("?"),d=new URLSearchParams(Ct),B=new URLSearchParams(location.search),it=new URLSearchParams;for(const[H]of d)(!B.has(H)||B.has(H)&&B.get(H)!==d.get(H))&&it.append(H,d.get(H));if(t(this,a).hasAttribute("data-merge-params"))for(const[H]of B)d.has(H)||it.append(H,B.get(H));z=`${w}?${it.toString()}`}const L=g(this,x,Ut).call(this,t(this,a).getAttribute("data-pagination-set-link")||t(this,a).getAttribute("data-pagination-more-link")||t(this,a).getAttribute("data-pagination-next-link")||t(this,a).getAttribute("data-pagination-prev-link"));L&&(t(this,a).hasAttribute("data-pagination-set-link")?t(this,R).links.forEach(w=>{w.updatePagination(parseInt(t(this,a).getAttribute("data-value")||"1"),L.selector)}):t(this,a).hasAttribute("data-pagination-prev-link")?t(this,R).links.forEach(w=>{w.updatePagination(L.currentPage-1,L.selector)}):t(this,a).hasAttribute("data-pagination-next-link")?t(this,R).links.forEach(w=>{w.updatePagination(L.currentPage+1,L.selector)}):t(this,a).hasAttribute("data-pagination-more-link")&&t(this,R).links.forEach(w=>{w.updatePagination(L.currentPage+1,L.selector)})),t(this,R).navigate(z,{historyAction:i,centerScroll:n,offsetScroll:f,revalidate:u,keepSearchParameters:c,submorph:k,clearState:at,keepScrollPosition:b,scrollBehaviour:st,submorphAppend:t(this,a).hasAttribute("data-pagination-more-link"),mergeParams:!!L||t(this,a).hasAttribute("data-merge-params")&&!t(this,a).hasAttribute("data-toggle-params"),detail:t(this,a).getAttribute("data-detail"),removeParams:t(this,a).getAttribute("data-remove-params")||void 0})}},Et=new WeakMap,rt=new WeakMap;var T,ot,bt,Vt,Lt;class ke{constructor(e){l(this,bt);l(this,T);l(this,ot,[]);l(this,Lt,()=>{g(this,bt,Vt).call(this)});o(this,T,e);for(const s in t(this,T).dataset){const i=le.camelToKebab(s);if(i.startsWith("param-")){const n=i.split("param-")[1],E=t(this,T).dataset[s];t(this,ot).push({name:n,value:E})}}document.addEventListener("morphURLParametersChange",t(this,Lt)),g(this,bt,Vt).call(this)}destroy(){document.removeEventListener("morphURLParametersChange",t(this,Lt))}}T=new WeakMap,ot=new WeakMap,bt=new WeakSet,Vt=function(){const e=new URLSearchParams(location.search);let s=!!t(this,ot).find(n=>e.has(n.name)&&(e.get(n.name)===n.value||n.value==="*"||n.value==="all"||n.value==="any"||n.value==="vse"||e.get(n.name)==="*"||e.get(n.name)==="all"||e.get(n.name)==="any"||e.get(n.name)==="vse"));!s&&t(this,T).hasAttribute("data-match-no-params")&&(s=!t(this,ot).filter(n=>e.has(n.name)).length);const i=t(this,T).getAttribute("data-hide-class");s?i?t(this,T).classList.remove(i):t(this,T).style.display="":i?t(this,T).classList.add(i):t(this,T).style.display="none"},Lt=new WeakMap;const we=new DOMParser;var W,Q,U,V,Z,Y,ht,_,$,St,lt;class oe{constructor(e,s){l(this,W);l(this,Q);l(this,U,{x:0,y:0});l(this,V,null);l(this,Z,null);l(this,Y,null);l(this,ht,null);l(this,_,null);l(this,$,null);l(this,St);l(this,lt,!1);o(this,W,e),o(this,Q,s)}get pathname(){return t(this,Q)}get scrollState(){return t(this,U)}get document(){return t(this,Y)}needRavalidation(){o(this,lt,!0)}setHeaders(e){o(this,St,e)}setInitialDocument(e){o(this,V,e.cloneNode(!0))}abort(){var e;return(e=t(this,_))==null?void 0:e.abort(`[${t(this,Q)}] page loading cancelled`)}fetch(e,s,i){return J(this,null,function*(){var n;if(!i&&!t(this,lt)){const u=((n=t(this,V))==null?void 0:n.documentElement.getAttribute("data-cache"))&&s!==e,c=t(this,V)&&t(this,W).isPopstateNavigation;if(t(this,$)||u||c)return t(this,$)}return o(this,$,new Promise(E=>J(this,null,function*(){try{o(this,_,new AbortController);const u=yield(yield fetch(e,{signal:t(this,_).signal,headers:Tt({"X-MORPH":"true","X-MORPH-CURRENT-PATH":encodeURIComponent(s),"X-MORPH-NEW-PATH":encodeURIComponent(e)},t(this,St))})).text(),c=we.parseFromString(u,"text/html");this.setInitialDocument(c),o(this,lt,!1)}catch(f){console.warn(f)}finally{o(this,_,null),o(this,$,null),E()}}))),t(this,$)})}cloneDocument(){o(this,Y,(t(this,Z)||t(this,V)).cloneNode(!0))}get title(){let e="";if(t(this,Y).title)e=t(this,Y).title;else{const s=t(this,Y).querySelector("h1");e=(s==null?void 0:s.innerText)||(s==null?void 0:s.textContent)||t(this,Q)}return e}clearScrollState(){t(this,U).x=0,t(this,U).y=0}clearDocumentState(){o(this,Z,null)}saveScrollState(){t(this,V).documentElement.hasAttribute("data-no-scroll-restoration")?(t(this,U).x=0,t(this,U).y=0):(t(this,U).x=t(this,W).scrollValue.left,t(this,U).y=t(this,W).scrollValue.top)}restoreScrollPosition(){t(this,W).scrollElement.scroll({top:t(this,U).y,left:t(this,U).x,behavior:"instant"})}saveDocumentState(){t(this,V).documentElement.hasAttribute("data-no-page-restoration")?o(this,Z,null):o(this,Z,document.cloneNode(!0))}renewScrollPosition(){t(this,W).scrollElement.scroll({top:0,left:0,behavior:"instant"})}saveState(e){o(this,ht,e)}clearState(){const e=t(this,ht);return o(this,ht,null),e}}W=new WeakMap,Q=new WeakMap,U=new WeakMap,V=new WeakMap,Z=new WeakMap,Y=new WeakMap,ht=new WeakMap,_=new WeakMap,$=new WeakMap,St=new WeakMap,lt=new WeakMap;var D,ct,P,j,v,tt,O,G,N,yt,F,Pt,et,dt,ut,At,mt,kt,p,Ft,wt,gt,Bt,ue,Kt,Xt,Yt,$t,Mt,pt;const vt=class vt{constructor(e){l(this,p);l(this,D,null);l(this,ct,null);l(this,P,[]);l(this,j);l(this,v,null);l(this,tt);l(this,O,[]);l(this,G,!1);l(this,N,null);l(this,yt,!1);l(this,F,new Map);l(this,Pt,[]);l(this,et,null);l(this,dt,0);l(this,ut,0);l(this,At);l(this,mt);l(this,kt);l(this,wt,e=>{var s,i;return(((s=e.getAttribute("href"))==null?void 0:s.startsWith("/"))||((i=e.getAttribute("href"))==null?void 0:i.startsWith("?")))&&!e.hasAttribute("download")&&!e.hasAttribute("data-morph-skip")&&!e.closest("[data-morph-skip]")&&e.getAttribute("target")!=="_blank"});l(this,Mt,e=>J(this,null,function*(){e.preventDefault(),o(this,G,!0),yield this.navigate(location.href.replace(location.origin,""),{historyAction:"none",submorph:t(this,mt)?void 0:t(this,At),revalidate:t(this,mt),keepScrollPosition:t(this,kt)}),o(this,G,!1)}));l(this,pt,()=>{const{left:e,top:s}=this.scrollValue,i=s-t(this,ut),n=e-t(this,dt);o(this,ut,s),o(this,dt,e),document.documentElement.classList.toggle("scroll-y",s>0),document.documentElement.classList.toggle("scroll-x",e>0),document.documentElement.classList.toggle("scroll-y-forward",i>0),document.documentElement.classList.toggle("scroll-y-backward",i<0),document.documentElement.classList.toggle("scroll-x-forward",n>0),document.documentElement.classList.toggle("scroll-x-backward",n<0),I.dispatchEvent(document,"morphScroll",{detail:{left:e,top:s}})});if(he.isBrowser&&!vt.instance){vt.instance=this,o(this,D,{base:ft.normalizeBase(e==null?void 0:e.base),waitForHeadToLoad:(e==null?void 0:e.waitForHeadToLoad)!==!1,trailingSlash:(e==null?void 0:e.trailingSlash)||!1,scrollSelector:e==null?void 0:e.scrollSelector,morphInsideScrollContainer:(e==null?void 0:e.morphInsideScrollContainer)||!1}),o(this,ct,g(this,p,Bt).call(this,document.body));const s=this.normalizePath(location.pathname+location.search+location.hash);o(this,v,s);const i=new oe(this,t(this,v).pathname);i.setInitialDocument(document),t(this,F).set(t(this,v).pathname,i),document.documentElement.setAttribute("data-current-pathname",t(this,v).pathname),document.documentElement.setAttribute("data-current-leaf",s.leaf),this.findLinks(),this.findParamsDependent(),history.scrollRestoration="manual",addEventListener("popstate",t(this,Mt)),ft.changeHistory({action:"replace",pathname:s.pathname,searchParameters:s.parameters,hash:s.hash}),o(this,et,new ce),g(this,p,Yt).call(this,document)}}get currentURL(){return t(this,v)}get previousURL(){return t(this,tt)}get links(){return t(this,P)}get scrollElement(){return t(this,N)}get isPopstateNavigation(){return t(this,G)}get scrollValue(){let e=0,s=0;return t(this,yt)?(e=window.scrollY,s=window.scrollX):(e=t(this,N).scrollTop,s=t(this,N).scrollLeft),{top:e,left:s}}get isNavigating(){return!!t(this,O).length}saveState(e){const s=t(this,F).get(t(this,v).path);s&&s.saveState(e)}getState(){const e=t(this,F).get(t(this,v).path);return e==null?void 0:e.clearState()}normalizePath(e,s){return ft.splitPath(e,{base:t(this,D).base,trailingSlash:t(this,D).trailingSlash,mergeParams:s!=null&&s.mergeParams?location.search:"",removeParams:s==null?void 0:s.removeParams})}prefetch(e,s){return J(this,null,function*(){var n;if(t(this,O).length)return;e=((n=this.pathnameModifier)==null?void 0:n.call(this,e))||e;const i=g(this,p,gt).call(this,e);i==null||i.fetch(e,t(this,v).path,s)})}excludeHeadChild(e){return!1}setHeaders(e){}needRavalidation(e){const s=this.normalizePath(e),i=g(this,p,gt).call(this,s.path);i==null||i.needRavalidation()}navigate(w){return J(this,arguments,function*(e,{historyAction:s="push",centerScroll:i,offsetScroll:n,scrollBehaviour:E,revalidate:f,keepSearchParameters:u,submorph:c,submorphAppend:b,clearState:st,keepScrollPosition:k,mergeParams:at,removeParams:z,detail:L}={}){var B,it,H,jt;if(t(this,O).length)return;o(this,At,c),o(this,mt,f),o(this,kt,k);const Ct=((B=this.pathnameModifier)==null?void 0:B.call(this,e))||e,d=this.normalizePath(Ct,{mergeParams:at,removeParams:z});if(!f&&(((it=t(this,j))==null?void 0:it.pathname)===d.pathname||t(this,v).pathname===d.pathname)){k||g(this,p,$t).call(this,d.hash||0,{centerScroll:i,offsetScroll:n,behavior:"smooth"}),I.dispatchEvent(document,"morphSamePath",{detail:{detail:L}}),((H=t(this,v))==null?void 0:H.parameters)!==d.parameters&&(o(this,tt,t(this,v)),o(this,v,d),ft.changeHistory({action:((jt=t(this,v))==null?void 0:jt.hash)!==d.hash?"replace":s,pathname:d.pathname,searchParameters:d.parameters,hash:d.hash}),I.dispatchEvent(document,"morphURLParametersChange",{detail:{newURL:t(this,v),previousURL:t(this,tt),detail:L}})),t(this,P).forEach(K=>{K.checkCurrent(d.path)});return}else t(this,P).forEach(K=>{K.checkCurrent(d.path)});o(this,j,d);try{let K=!0;if(this.preprocessor)try{yield new Promise((r,A)=>{var M;(M=this.preprocessor)==null||M.call(this,{url:d,resolve:r,reject:A,submorph:c,detail:L})})}catch(r){r?console.error(r):console.log("Route change canceled"),K=!1}if(!K||t(this,j).pathname!==d.pathname){t(this,P).forEach(r=>{r.checkCurrent(t(this,v).path)});return}const Gt={url:d,submorph:c,detail:L};c?b||c.forEach(r=>{document.querySelectorAll(r).forEach(A=>{A.classList.add("out"),A.setAttribute("data-morph-out","")})}):t(this,ct).forEach(r=>{var A,M;(A=r.firstElementChild)==null||A.classList.add("out"),(M=r.firstElementChild)==null||M.setAttribute("data-morph-out","")}),I.dispatchEvent(document,"morphNavigation",{detail:Gt});const Nt=g(this,p,gt).call(this,t(this,v).pathname),y=g(this,p,gt).call(this,d.pathname);if(t(this,F).forEach(r=>{r.pathname!==d.pathname&&r.abort()}),yield y==null?void 0:y.fetch(Ct,t(this,v).path,f),t(this,j).pathname!==d.pathname){t(this,P).forEach(r=>{r.checkCurrent(t(this,v).path)});return}Nt.clearState(),Nt.saveScrollState(),Nt.saveDocumentState(),(!t(this,G)||f)&&(y.clearScrollState(),y.clearDocumentState()),st&&y.clearState(),y.cloneDocument(),t(this,et).textContent=y.title,document.body.appendChild(t(this,et));const Rt=zt(Tt({},Gt),{document:y.document});b||Rt.document.querySelectorAll("[data-morph-out]").forEach(r=>{r.classList.remove("out")}),I.dispatchEvent(document,"morphStart",{detail:Rt});const Jt=Array.from(document.head.children),Qt=Array.from(y.document.head.children),Zt=g(this,p,ue).call(this,Jt,Qt),me=g(this,p,Kt).call(this,Jt,Zt),xt=g(this,p,Kt).call(this,Qt,Zt).filter(r=>!this.excludeHeadChild(r));xt.forEach((r,A)=>{r.tagName==="SCRIPT"&&(xt[A]=g(this,p,Ft).call(this,r))}),xt.forEach(r=>{document.head.appendChild(r)});const qt=xt.filter(r=>{if(r.hasAttribute("data-no-waiting"))return!1;if(g(this,p,Xt).call(this,r))return!0});t(this,D).waitForHeadToLoad&&qt.length&&(yield new Promise(r=>J(this,null,function*(){let A=0;try{for(var M=ne(qt),fe,X,q;fe=!(X=yield M.next()).done;fe=!1){const Ht=X.value;Ht.onload=()=>{A++,A===qt.length&&r()}}}catch(X){q=[X]}finally{try{fe&&(X=M.return)&&(yield X.call(M))}finally{if(q)throw q[0]}}}))),yield re.wait(10);const _t=[];b||me.forEach(r=>{r.hasAttribute("data-permanent")||(g(this,p,Xt).call(this,r)?_t.push(r):r.remove())});const pe=g(this,p,Bt).call(this,y.document.body);!t(this,D).morphInsideScrollContainer&&!c&&g(this,p,Yt).call(this,y.document),document.documentElement.setAttribute("data-current-pathname",d.pathname),document.documentElement.setAttribute("data-current-leaf",d.leaf),ft.changeHistory({action:s,pathname:d.pathname,searchParameters:d.parameters||(u?location.search:""),hash:d.hash}),t(this,et).remove(),o(this,tt,t(this,v)),o(this,v,d);const Dt=[];t(this,ct).forEach((r,A)=>{const M=pe[A],fe=getComputedStyle(r).getPropertyValue("--morph-duration");let X=[],q=[];c?(c.forEach(m=>{const S=r.querySelector(m),C=M.querySelector(m);S&&C&&(q.push(S),X.push(C))}),q.forEach(m=>{m.parentElement&&Dt.push(m.parentElement)})):(X.push(...M.childNodes),q.push(...r.childNodes),Dt.push(r));const Ht=[];b||q.forEach(m=>{m instanceof HTMLElement&&(this.destroyOldLinks(m),m.classList.add("old"),m.querySelectorAll("[data-morph-transfer]").forEach(C=>{const ve=C.getAttribute("data-morph-transfer");Ht.push({element:C,selector:ve})}))}),X.forEach(m=>{m instanceof HTMLElement&&(Ht.forEach(S=>{const C=m.querySelector(S.selector);C&&C.replaceWith(y.document.importNode(S.element,!0))}),this.findNewLinks(m),m.classList.add("new"))}),c?b?X.forEach((m,S)=>{q[S]instanceof HTMLElement&&q[S].append(...m.childNodes)}):X.forEach((m,S)=>{var C;(C=q[S].parentElement)==null||C.insertBefore(m,q[S])}):r.prepend(...X),setTimeout(()=>{b||q.forEach(m=>{m instanceof HTMLElement&&m.classList.add("old-idle")}),X.forEach(m=>{var S;m instanceof HTMLElement&&((S=m.parentElement)==null||S.style.setProperty("--new-content-height",m.offsetHeight+"px"),m.classList.add("new-idle"))})},0);const te=zt(Tt({},Rt),{morphElement:r});I.dispatchEvent(document,"morphNewChildrenAdded",{detail:te});const ge=new Promise(m=>{setTimeout(()=>{b||q.forEach(S=>{S.remove()}),X.forEach(S=>{var C;S instanceof HTMLElement&&((C=S.parentElement)==null||C.style.removeProperty("--new-content-height"),S.classList.remove("new-idle","new"))}),b||I.dispatchEvent(document,"morphOldChildrenRemoved",{detail:te}),m()},(parseFloat(fe)||0)*1e3+10)});t(this,O).push(ge)}),this.isPopstateNavigation?document.documentElement.style.setProperty("--new-document-scroll-position",(this.scrollValue.top-y.scrollState.y)*1+"px"):document.documentElement.style.setProperty("--new-document-scroll-position",this.scrollValue.top+"px"),I.dispatchEvent(document,"morphBeforeNavigationScroll",{detail:y.scrollState}),d.hash?(y.clearScrollState(),g(this,p,$t).call(this,d.hash,{centerScroll:i,offsetScroll:n,behavior:E})):t(this,G)?y.restoreScrollPosition():k||y.renewScrollPosition(),yield Promise.all(t(this,O)),b||_t.forEach(r=>r.remove()),o(this,O,[]),Dt.forEach(r=>{r.querySelectorAll("script").forEach(M=>{M.replaceWith(g(this,p,Ft).call(this,M))})}),t(this,P).forEach(r=>{r.checkCurrent(t(this,v).path)}),this.findParamsDependent(),I.dispatchEvent(document,"morphComplete",{detail:Rt}),document.documentElement.style.removeProperty("--new-document-scroll-position"),window.dispatchEvent(new Event("resize"))}catch(K){console.error(K)}o(this,j,void 0)})}addLink(e){t(this,P).push(new Wt(e,this))}addLinks(e){e.forEach(s=>{this.addLink(s)})}removeLink(e){o(this,P,t(this,P).filter(s=>s.element===e?(s.destroy(),!1):!0))}destroyOldLinks(e){o(this,P,t(this,P).filter(s=>e.contains(s.element)?(s.destroy(),!1):!0))}findNewLinks(e){const s=[...e.querySelectorAll("a")].filter(t(this,wt));t(this,P).push(...s.map(i=>new Wt(i,this)))}findLinks(){const e=[...document.documentElement.querySelectorAll("a")].filter(t(this,wt));t(this,P).forEach(s=>s.destroy()),o(this,P,e.map(s=>new Wt(s,this)))}findParamsDependent(){const e=[...document.documentElement.querySelectorAll("[data-morph-params-dependent]")];t(this,Pt).forEach(s=>s.destroy()),o(this,Pt,e.map(s=>new ke(s)))}};D=new WeakMap,ct=new WeakMap,P=new WeakMap,j=new WeakMap,v=new WeakMap,tt=new WeakMap,O=new WeakMap,G=new WeakMap,N=new WeakMap,yt=new WeakMap,F=new WeakMap,Pt=new WeakMap,et=new WeakMap,dt=new WeakMap,ut=new WeakMap,At=new WeakMap,mt=new WeakMap,kt=new WeakMap,p=new WeakSet,Ft=function(e){const s=document.createElement("script");for(let i=0;i<e.attributes.length;i++){const n=e.attributes[i];s.setAttribute(n.name,n.value)}return e.hasAttribute("src")||(s.innerHTML=e.innerHTML),s},wt=new WeakMap,gt=function(e){const s=this.normalizePath(e);let i=t(this,F).get(s.pathname);return i||(i=new oe(this,s.pathname),t(this,F).set(s.pathname,i)),i},Bt=function(e){const s=[...e.querySelectorAll("[data-morph]")];return s.length?s:[e]},ue=function(e,s){return e.filter(i=>s.find(n=>n.outerHTML===i.outerHTML))},Kt=function(e,s){return e.filter(i=>!s.find(n=>n.outerHTML===i.outerHTML))},Xt=function(e){return e.tagName==="SCRIPT"||e.tagName==="STYLE"||e.tagName==="LINK"&&e.getAttribute("rel")==="stylesheet"},Yt=function(e){var s,i;(s=t(this,N))==null||s.removeEventListener("scroll",t(this,pt)),o(this,ut,0),o(this,dt,0),o(this,N,t(this,D).scrollSelector&&e.querySelector(t(this,D).scrollSelector)||window),o(this,yt,t(this,N)===window),(i=t(this,N))==null||i.addEventListener("scroll",t(this,pt)),t(this,pt).call(this)},$t=function(e,s){const i=typeof e=="string"?document.getElementById(e):e;(typeof i=="number"||i)&&re.scrollToElement(i,{scrollElement:t(this,N),behavior:(s==null?void 0:s.behavior)||"instant",center:s==null?void 0:s.centerScroll,offset:s==null?void 0:s.offsetScroll})},Mt=new WeakMap,pt=new WeakMap,vt.instance=null;let Ot=vt;exports.Morph=Ot;
|
|
1
|
+
"use strict";var Ee=Object.defineProperty,be=Object.defineProperties;var Le=Object.getOwnPropertyDescriptors;var ee=Object.getOwnPropertySymbols;var Se=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable;var se=(h,e)=>(e=Symbol[h])?e:Symbol.for("Symbol."+h),ie=h=>{throw TypeError(h)};var ae=(h,e,s)=>e in h?Ee(h,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):h[e]=s,Tt=(h,e)=>{for(var s in e||(e={}))Se.call(e,s)&&ae(h,s,e[s]);if(ee)for(var s of ee(e))Ae.call(e,s)&&ae(h,s,e[s]);return h},zt=(h,e)=>be(h,Le(e));var It=(h,e,s)=>e.has(h)||ie("Cannot "+s);var t=(h,e,s)=>(It(h,e,"read from private field"),s?s.call(h):e.get(h)),l=(h,e,s)=>e.has(h)?ie("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(h):e.set(h,s),o=(h,e,s,i)=>(It(h,e,"write to private field"),i?i.call(h,s):e.set(h,s),s),g=(h,e,s)=>(It(h,e,"access private method"),s);var J=(h,e,s)=>new Promise((i,n)=>{var E=c=>{try{u(s.next(c))}catch(b){n(b)}},f=c=>{try{u(s.throw(c))}catch(b){n(b)}},u=c=>c.done?i(c.value):Promise.resolve(c.value).then(E,f);u((s=s.apply(h,e)).next())});var ne=(h,e,s)=>(e=h[se("asyncIterator")])?e.call(h):(h=h[se("iterator")](),e={},s=(i,n)=>(n=h[i])&&(e[i]=E=>new Promise((f,u,c)=>(E=n.call(h,E),c=E.done,Promise.resolve(E.value).then(b=>f({value:b,done:c}),u)))),s("next"),s("return"),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const he=require("../index-CKTweR3M.cjs"),I=require("../events-KVanG9sR.cjs"),re=require("../scroll-DxcPU0vk.cjs");require("construct-style-sheets-polyfill");const ft=require("../url-CPgw9bd5.cjs"),ye=require("../css-value-parser/index.cjs"),le=require("../string-DUXXtU8v.cjs"),Pe=require("../math-GDWEqu7y.cjs");class ce extends HTMLElement{connectedCallback(){const e={"aria-live":"assertive","aria-atomic":"true",style:"position: absolute; left: 0; top: 0; clip: rect(0 0 0 0); clip-path: inset(50%); overflow: hidden; white-space: nowrap; width: 1px; height: 1px"};for(const[s,i]of Object.entries(e))this.setAttribute(s,i)}}he.isBrowser&&!customElements.get("morph-announcer")&&customElements.define("morph-announcer",ce);var C,a,x,nt,Mt,de,Et,rt;class Vt{constructor(e,s){l(this,x);l(this,C);l(this,a);l(this,Et,e=>{e.preventDefault(),g(this,x,de).call(this)});l(this,rt,()=>{const e=t(this,a).hasAttribute("data-revalidate");t(this,C).prefetch(t(this,x,nt),e),t(this,a).removeEventListener("pointerenter",t(this,rt))});o(this,C,s),o(this,a,e),t(this,a).addEventListener("click",t(this,Et)),this.checkCurrent(location.href.replace(location.origin,""));const i=g(this,x,Mt).call(this,t(this,a).getAttribute("data-pagination-set-link")||t(this,a).getAttribute("data-pagination-more-link")||t(this,a).getAttribute("data-pagination-next-link")||t(this,a).getAttribute("data-pagination-prev-link"));i&&this.updatePagination(i.currentPage,i.selector),t(this,a).hasAttribute("data-prefetch")&&t(this,a).addEventListener("pointerenter",t(this,rt))}get element(){return t(this,a)}checkCurrent(e){var b,st;const s=t(this,C).normalizePath(e),i=t(this,C).normalizePath(t(this,x,nt));t(this,a).hasAttribute("data-include")&&s.pathname.includes(i.pathname)?t(this,a).classList.add("current"):i.pathname===s.pathname?t(this,a).classList.add("current"):(b=t(this,a).getAttribute("data-associated-paths"))!=null&&b.split(",").find(k=>s.pathname.includes(k))?t(this,a).classList.add("current"):t(this,a).classList.remove("current"),s.path===i.path?t(this,a).classList.add("exact"):t(this,a).classList.remove("exact");const[n,E]=(st=t(this,x,nt).split("#")[0])==null?void 0:st.split("?"),f=new URLSearchParams(E),u=new URLSearchParams(location.search);let c=0;for(const[k]of u)f.has(k)&&u.get(k)===f.get(k)&&c++;c?(t(this,a).classList.toggle("all-params-matched",u.size===c),t(this,a).classList.toggle("some-params-matched",u.size!==c)):!u.size&&t(this,a).hasAttribute("data-match-no-params")?t(this,a).classList.add("all-params-matched"):(t(this,a).classList.remove("all-params-matched"),t(this,a).classList.remove("some-params-matched"));for(const k in t(this,a).dataset){const at=le.camelToKebab(k);if(at.startsWith("match-param-")){const z=at.split("match-param-")[1],L=t(this,a).dataset[k],w=`param-${z}-matched`;u.has(z)&&u.get(z)===L||!u.has(z)&&(L===""||L==="*"||L==="all"||L==="any"||L==="vse")?t(this,a).classList.add(w):t(this,a).classList.remove(w)}}}updatePagination(e,s){const i=g(this,x,Mt).call(this,s);if(i)if(i.element.setAttribute("data-current-page",e.toString()),t(this,a).hasAttribute("data-pagination-more-link"))if(e<i.totalPages){t(this,a).style.display="";const n=t(this,a).querySelector("[data-pagination-more-link-counter]");n&&(n.textContent=(i.totalPages-e).toString());const E=t(this,a).getAttribute("href"),f=new URL(E,window.location.origin);f.searchParams.set("page",(e+1).toString());const u=f.href.replace(f.origin,"").toString();t(this,a).setAttribute("href",u),this.checkCurrent(u)}else t(this,a).style.display="none";else if(t(this,a).hasAttribute("data-pagination-prev-link")||t(this,a).hasAttribute("data-pagination-next-link")){const n=t(this,a).hasAttribute("data-pagination-prev-link"),E=t(this,a).getAttribute("href"),f=new URL(E,window.location.origin),u=e+(n?-1:1);f.searchParams.set("page",Pe.clamp(u,1,i.totalPages).toString());const c=f.href.replace(f.origin,"").toString();t(this,a).setAttribute("href",c),n?u<1?(t(this,a).classList.add("pagination-disabled"),t(this,a).setAttribute("tabindex","-1")):(t(this,a).classList.remove("pagination-disabled"),t(this,a).removeAttribute("tabindex")):u>i.totalPages?(t(this,a).classList.add("pagination-disabled"),t(this,a).setAttribute("tabindex","-1")):(t(this,a).classList.remove("pagination-disabled"),t(this,a).removeAttribute("tabindex"))}else t(this,a).hasAttribute("data-pagination-set-link")&&(t(this,a).getAttribute("data-value")===e.toString()?t(this,a).classList.add("pagination-current"):t(this,a).classList.remove("pagination-current"))}destroy(){t(this,a).removeEventListener("click",t(this,Et)),t(this,a).removeEventListener("pointerenter",t(this,rt)),t(this,a).classList.remove("current","exact","pagination-current")}}C=new WeakMap,a=new WeakMap,x=new WeakSet,nt=function(){const e=new URL(t(this,a).href);return t(this,C).normalizePath(e.pathname+e.search+e.hash).path},Mt=function(e){if(!e)return;const s=document.querySelector(e);if(s){const i=parseInt(s.getAttribute("data-current-page")||"1"),n=parseInt(s.getAttribute("data-total-pages")||"1");return{element:s,currentPage:i,totalPages:n,selector:e}}},de=function(){var s;if(document.documentElement.classList.contains("click-disabled"))return;if(t(this,a).hasAttribute("data-back")&&t(this,C).previousURL)history.back();else{const i=t(this,a).getAttribute("data-history-action")||"push",n=t(this,a).hasAttribute("data-center-scroll"),E=getComputedStyle(t(this,a)).getPropertyValue("--offset-scroll").trim(),f=E?ye.cssValueParser.parse(E):void 0,u=t(this,a).hasAttribute("data-revalidate")||t(this,a).hasAttribute("data-pagination-more-link")||t(this,a).hasAttribute("data-pagination-set-link")||t(this,a).hasAttribute("data-pagination-next-link")||t(this,a).hasAttribute("data-pagination-prev-link"),c=t(this,a).hasAttribute("data-keep-search-parameters"),b=t(this,a).hasAttribute("data-keep-scroll-position")||t(this,a).hasAttribute("data-pagination-more-link"),st=t(this,a).getAttribute("data-scroll-behaviour"),k=((s=t(this,a).getAttribute("data-submorph"))==null?void 0:s.split(",").map(w=>w.trim()))||t(this,a).hasAttribute("data-pagination-more-link")&&[t(this,a).getAttribute("data-pagination-more-link")]||t(this,a).hasAttribute("data-pagination-set-link")&&[t(this,a).getAttribute("data-pagination-set-link")]||t(this,a).hasAttribute("data-pagination-next-link")&&[t(this,a).getAttribute("data-pagination-next-link")]||t(this,a).hasAttribute("data-pagination-prev-link")&&[t(this,a).getAttribute("data-pagination-prev-link")]||void 0,at=t(this,a).hasAttribute("data-clear-state");let z=t(this,x,nt);if(t(this,a).hasAttribute("data-toggle-params")){const[w,Rt]=t(this,x,nt).split("?"),d=new URLSearchParams(Rt),B=new URLSearchParams(location.search),it=new URLSearchParams;for(const[H]of d)(!B.has(H)||B.has(H)&&B.get(H)!==d.get(H))&&it.append(H,d.get(H));if(t(this,a).hasAttribute("data-merge-params"))for(const[H]of B)d.has(H)||it.append(H,B.get(H));z=`${w}?${it.toString()}`}const L=g(this,x,Mt).call(this,t(this,a).getAttribute("data-pagination-set-link")||t(this,a).getAttribute("data-pagination-more-link")||t(this,a).getAttribute("data-pagination-next-link")||t(this,a).getAttribute("data-pagination-prev-link"));L&&(t(this,a).hasAttribute("data-pagination-set-link")?t(this,C).links.forEach(w=>{w.updatePagination(parseInt(t(this,a).getAttribute("data-value")||"1"),L.selector)}):t(this,a).hasAttribute("data-pagination-prev-link")?t(this,C).links.forEach(w=>{w.updatePagination(L.currentPage-1,L.selector)}):t(this,a).hasAttribute("data-pagination-next-link")?t(this,C).links.forEach(w=>{w.updatePagination(L.currentPage+1,L.selector)}):t(this,a).hasAttribute("data-pagination-more-link")&&t(this,C).links.forEach(w=>{w.updatePagination(L.currentPage+1,L.selector)})),t(this,C).navigate(z,{historyAction:i,centerScroll:n,offsetScroll:f,revalidate:u,keepSearchParameters:c,submorph:k,clearState:at,keepScrollPosition:b,scrollBehaviour:st,submorphAppend:t(this,a).hasAttribute("data-pagination-more-link"),mergeParams:!!L||t(this,a).hasAttribute("data-merge-params")&&!t(this,a).hasAttribute("data-toggle-params"),detail:t(this,a).getAttribute("data-detail"),removeParams:t(this,a).getAttribute("data-remove-params")||void 0})}},Et=new WeakMap,rt=new WeakMap;var T,ot,bt,Wt,Lt;class ke{constructor(e){l(this,bt);l(this,T);l(this,ot,[]);l(this,Lt,()=>{g(this,bt,Wt).call(this)});o(this,T,e);for(const s in t(this,T).dataset){const i=le.camelToKebab(s);if(i.startsWith("param-")){const n=i.split("param-")[1],E=t(this,T).dataset[s];t(this,ot).push({name:n,value:E})}}document.addEventListener("morphURLParametersChange",t(this,Lt)),g(this,bt,Wt).call(this)}destroy(){document.removeEventListener("morphURLParametersChange",t(this,Lt))}}T=new WeakMap,ot=new WeakMap,bt=new WeakSet,Wt=function(){const e=new URLSearchParams(location.search);let s=!!t(this,ot).find(n=>e.has(n.name)&&(e.get(n.name)===n.value||n.value==="*"||n.value==="all"||n.value==="any"||n.value==="vse"||e.get(n.name)==="*"||e.get(n.name)==="all"||e.get(n.name)==="any"||e.get(n.name)==="vse"));!s&&t(this,T).hasAttribute("data-match-no-params")&&(s=!t(this,ot).filter(n=>e.has(n.name)).length);const i=t(this,T).getAttribute("data-hide-class");s?i?t(this,T).classList.remove(i):t(this,T).style.display="":i?t(this,T).classList.add(i):t(this,T).style.display="none"},Lt=new WeakMap;const we=new DOMParser;var V,Q,M,W,Z,Y,ht,_,$,St,lt;class oe{constructor(e,s){l(this,V);l(this,Q);l(this,M,{x:0,y:0});l(this,W,null);l(this,Z,null);l(this,Y,null);l(this,ht,null);l(this,_,null);l(this,$,null);l(this,St);l(this,lt,!1);o(this,V,e),o(this,Q,s)}get pathname(){return t(this,Q)}get scrollState(){return t(this,M)}get document(){return t(this,Y)}needRavalidation(){o(this,lt,!0)}setHeaders(e){o(this,St,e)}setInitialDocument(e){o(this,W,e.cloneNode(!0))}abort(){var e;return(e=t(this,_))==null?void 0:e.abort(`[${t(this,Q)}] page loading cancelled`)}fetch(e,s,i){return J(this,null,function*(){var n;if(!i&&!t(this,lt)){const u=((n=t(this,W))==null?void 0:n.documentElement.getAttribute("data-cache"))&&s!==e,c=t(this,W)&&t(this,V).isPopstateNavigation;if(t(this,$)||u||c)return t(this,$)}return o(this,$,new Promise(E=>J(this,null,function*(){try{o(this,_,new AbortController);const u=yield(yield fetch(e,{signal:t(this,_).signal,headers:Tt({"X-MORPH":"true","X-MORPH-RAVALIDATE":i?"true":"false","X-MORPH-CURRENT-PATH":encodeURIComponent(s),"X-MORPH-NEW-PATH":encodeURIComponent(e)},t(this,St))})).text(),c=we.parseFromString(u,"text/html");this.setInitialDocument(c),o(this,lt,!1)}catch(f){console.warn(f)}finally{o(this,_,null),o(this,$,null),E()}}))),t(this,$)})}cloneDocument(){o(this,Y,(t(this,Z)||t(this,W)).cloneNode(!0))}get title(){let e="";if(t(this,Y).title)e=t(this,Y).title;else{const s=t(this,Y).querySelector("h1");e=(s==null?void 0:s.innerText)||(s==null?void 0:s.textContent)||t(this,Q)}return e}clearScrollState(){t(this,M).x=0,t(this,M).y=0}clearDocumentState(){o(this,Z,null)}saveScrollState(){t(this,W).documentElement.hasAttribute("data-no-scroll-restoration")?(t(this,M).x=0,t(this,M).y=0):(t(this,M).x=t(this,V).scrollValue.left,t(this,M).y=t(this,V).scrollValue.top)}restoreScrollPosition(){t(this,V).scrollElement.scroll({top:t(this,M).y,left:t(this,M).x,behavior:"instant"})}saveDocumentState(){t(this,W).documentElement.hasAttribute("data-no-page-restoration")?o(this,Z,null):o(this,Z,document.cloneNode(!0))}renewScrollPosition(){t(this,V).scrollElement.scroll({top:0,left:0,behavior:"instant"})}saveState(e){o(this,ht,e)}clearState(){const e=t(this,ht);return o(this,ht,null),e}}V=new WeakMap,Q=new WeakMap,M=new WeakMap,W=new WeakMap,Z=new WeakMap,Y=new WeakMap,ht=new WeakMap,_=new WeakMap,$=new WeakMap,St=new WeakMap,lt=new WeakMap;var D,ct,y,j,v,tt,O,G,N,At,F,yt,et,dt,ut,Pt,mt,kt,p,Ft,wt,gt,Bt,ue,Xt,Kt,Yt,$t,Ut,pt;const vt=class vt{constructor(e){l(this,p);l(this,D,null);l(this,ct,null);l(this,y,[]);l(this,j);l(this,v,null);l(this,tt);l(this,O,[]);l(this,G,!1);l(this,N,null);l(this,At,!1);l(this,F,new Map);l(this,yt,[]);l(this,et,null);l(this,dt,0);l(this,ut,0);l(this,Pt);l(this,mt);l(this,kt);l(this,wt,e=>{var s,i;return(((s=e.getAttribute("href"))==null?void 0:s.startsWith("/"))||((i=e.getAttribute("href"))==null?void 0:i.startsWith("?")))&&!e.hasAttribute("download")&&!e.hasAttribute("data-morph-skip")&&!e.closest("[data-morph-skip]")&&e.getAttribute("target")!=="_blank"});l(this,Ut,e=>J(this,null,function*(){e.preventDefault(),o(this,G,!0),yield this.navigate(location.href.replace(location.origin,""),{historyAction:"none",submorph:t(this,mt)?void 0:t(this,Pt),revalidate:t(this,mt),keepScrollPosition:t(this,kt)}),o(this,G,!1)}));l(this,pt,()=>{const{left:e,top:s}=this.scrollValue,i=s-t(this,ut),n=e-t(this,dt);o(this,ut,s),o(this,dt,e),document.documentElement.classList.toggle("scroll-y",s>0),document.documentElement.classList.toggle("scroll-x",e>0),document.documentElement.classList.toggle("scroll-y-forward",i>0),document.documentElement.classList.toggle("scroll-y-backward",i<0),document.documentElement.classList.toggle("scroll-x-forward",n>0),document.documentElement.classList.toggle("scroll-x-backward",n<0),I.dispatchEvent(document,"morphScroll",{detail:{left:e,top:s}})});if(he.isBrowser&&!vt.instance){vt.instance=this,o(this,D,{base:ft.normalizeBase(e==null?void 0:e.base),waitForHeadToLoad:(e==null?void 0:e.waitForHeadToLoad)!==!1,trailingSlash:(e==null?void 0:e.trailingSlash)||!1,scrollSelector:e==null?void 0:e.scrollSelector,morphInsideScrollContainer:(e==null?void 0:e.morphInsideScrollContainer)||!1}),o(this,ct,g(this,p,Bt).call(this,document.body));const s=this.normalizePath(location.pathname+location.search+location.hash);o(this,v,s);const i=new oe(this,t(this,v).pathname);i.setInitialDocument(document),t(this,F).set(t(this,v).pathname,i),document.documentElement.setAttribute("data-current-pathname",t(this,v).pathname),document.documentElement.setAttribute("data-current-leaf",s.leaf),this.findLinks(),this.findParamsDependent(),history.scrollRestoration="manual",addEventListener("popstate",t(this,Ut)),ft.changeHistory({action:"replace",pathname:s.pathname,searchParameters:s.parameters,hash:s.hash}),o(this,et,new ce),g(this,p,Yt).call(this,document)}}get currentURL(){return t(this,v)}get previousURL(){return t(this,tt)}get links(){return t(this,y)}get scrollElement(){return t(this,N)}get isPopstateNavigation(){return t(this,G)}get scrollValue(){let e=0,s=0;return t(this,At)?(e=window.scrollY,s=window.scrollX):(e=t(this,N).scrollTop,s=t(this,N).scrollLeft),{top:e,left:s}}get isNavigating(){return!!t(this,O).length}saveState(e){const s=t(this,F).get(t(this,v).path);s&&s.saveState(e)}getState(){const e=t(this,F).get(t(this,v).path);return e==null?void 0:e.clearState()}normalizePath(e,s){return ft.splitPath(e,{base:t(this,D).base,trailingSlash:t(this,D).trailingSlash,mergeParams:s!=null&&s.mergeParams?location.search:"",removeParams:s==null?void 0:s.removeParams})}prefetch(e,s){return J(this,null,function*(){var n;if(t(this,O).length)return;e=((n=this.pathnameModifier)==null?void 0:n.call(this,e))||e;const i=g(this,p,gt).call(this,e);i==null||i.fetch(e,t(this,v).path,s)})}excludeHeadChild(e){return!1}setHeaders(e){}needRavalidation(e){const s=this.normalizePath(e),i=g(this,p,gt).call(this,s.path);i==null||i.needRavalidation()}navigate(w){return J(this,arguments,function*(e,{historyAction:s="push",centerScroll:i,offsetScroll:n,scrollBehaviour:E,revalidate:f,keepSearchParameters:u,submorph:c,submorphAppend:b,clearState:st,keepScrollPosition:k,mergeParams:at,removeParams:z,detail:L}={}){var B,it,H,jt;if(t(this,O).length)return;o(this,Pt,c),o(this,mt,f),o(this,kt,k);const Rt=((B=this.pathnameModifier)==null?void 0:B.call(this,e))||e,d=this.normalizePath(Rt,{mergeParams:at,removeParams:z});if(!f&&(((it=t(this,j))==null?void 0:it.pathname)===d.pathname||t(this,v).pathname===d.pathname)){k||g(this,p,$t).call(this,d.hash||0,{centerScroll:i,offsetScroll:n,behavior:"smooth"}),I.dispatchEvent(document,"morphSamePath",{detail:{detail:L}}),((H=t(this,v))==null?void 0:H.parameters)!==d.parameters&&(o(this,tt,t(this,v)),o(this,v,d),ft.changeHistory({action:((jt=t(this,v))==null?void 0:jt.hash)!==d.hash?"replace":s,pathname:d.pathname,searchParameters:d.parameters,hash:d.hash}),I.dispatchEvent(document,"morphURLParametersChange",{detail:{newURL:t(this,v),previousURL:t(this,tt),detail:L}})),t(this,y).forEach(X=>{X.checkCurrent(d.path)});return}else t(this,y).forEach(X=>{X.checkCurrent(d.path)});o(this,j,d);try{let X=!0;if(this.preprocessor)try{yield new Promise((r,P)=>{var U;(U=this.preprocessor)==null||U.call(this,{url:d,resolve:r,reject:P,submorph:c,detail:L})})}catch(r){r?console.error(r):console.log("Route change canceled"),X=!1}if(!X||t(this,j).pathname!==d.pathname){t(this,y).forEach(r=>{r.checkCurrent(t(this,v).path)});return}const Gt={url:d,submorph:c,detail:L};c?b||c.forEach(r=>{document.querySelectorAll(r).forEach(P=>{P.classList.add("out"),P.setAttribute("data-morph-out","")})}):t(this,ct).forEach(r=>{var P,U;(P=r.firstElementChild)==null||P.classList.add("out"),(U=r.firstElementChild)==null||U.setAttribute("data-morph-out","")}),I.dispatchEvent(document,"morphNavigation",{detail:Gt});const Nt=g(this,p,gt).call(this,t(this,v).pathname),A=g(this,p,gt).call(this,d.pathname);if(t(this,F).forEach(r=>{r.pathname!==d.pathname&&r.abort()}),yield A==null?void 0:A.fetch(Rt,t(this,v).path,f),t(this,j).pathname!==d.pathname){t(this,y).forEach(r=>{r.checkCurrent(t(this,v).path)});return}Nt.clearState(),Nt.saveScrollState(),Nt.saveDocumentState(),(!t(this,G)||f)&&(A.clearScrollState(),A.clearDocumentState()),st&&A.clearState(),A.cloneDocument(),t(this,et).textContent=A.title,document.body.appendChild(t(this,et));const Ct=zt(Tt({},Gt),{document:A.document});b||Ct.document.querySelectorAll("[data-morph-out]").forEach(r=>{r.classList.remove("out")}),I.dispatchEvent(document,"morphStart",{detail:Ct});const Jt=Array.from(document.head.children),Qt=Array.from(A.document.head.children),Zt=g(this,p,ue).call(this,Jt,Qt),me=g(this,p,Xt).call(this,Jt,Zt),xt=g(this,p,Xt).call(this,Qt,Zt).filter(r=>!this.excludeHeadChild(r));xt.forEach((r,P)=>{r.tagName==="SCRIPT"&&(xt[P]=g(this,p,Ft).call(this,r))}),xt.forEach(r=>{document.head.appendChild(r)});const qt=xt.filter(r=>{if(r.hasAttribute("data-no-waiting"))return!1;if(g(this,p,Kt).call(this,r))return!0});t(this,D).waitForHeadToLoad&&qt.length&&(yield new Promise(r=>J(this,null,function*(){let P=0;try{for(var U=ne(qt),fe,K,q;fe=!(K=yield U.next()).done;fe=!1){const Ht=K.value;Ht.onload=()=>{P++,P===qt.length&&r()}}}catch(K){q=[K]}finally{try{fe&&(K=U.return)&&(yield K.call(U))}finally{if(q)throw q[0]}}}))),yield re.wait(10);const _t=[];b||me.forEach(r=>{r.hasAttribute("data-permanent")||(g(this,p,Kt).call(this,r)?_t.push(r):r.remove())});const pe=g(this,p,Bt).call(this,A.document.body);!t(this,D).morphInsideScrollContainer&&!c&&g(this,p,Yt).call(this,A.document),document.documentElement.setAttribute("data-current-pathname",d.pathname),document.documentElement.setAttribute("data-current-leaf",d.leaf),ft.changeHistory({action:s,pathname:d.pathname,searchParameters:d.parameters||(u?location.search:""),hash:d.hash}),t(this,et).remove(),o(this,tt,t(this,v)),o(this,v,d);const Dt=[];t(this,ct).forEach((r,P)=>{const U=pe[P],fe=getComputedStyle(r).getPropertyValue("--morph-duration");let K=[],q=[];c?(c.forEach(m=>{const S=r.querySelector(m),R=U.querySelector(m);S&&R&&(q.push(S),K.push(R))}),q.forEach(m=>{m.parentElement&&Dt.push(m.parentElement)})):(K.push(...U.childNodes),q.push(...r.childNodes),Dt.push(r));const Ht=[];b||q.forEach(m=>{m instanceof HTMLElement&&(this.destroyOldLinks(m),m.classList.add("old"),m.querySelectorAll("[data-morph-transfer]").forEach(R=>{const ve=R.getAttribute("data-morph-transfer");Ht.push({element:R,selector:ve})}))}),K.forEach(m=>{m instanceof HTMLElement&&(Ht.forEach(S=>{const R=m.querySelector(S.selector);R&&R.replaceWith(A.document.importNode(S.element,!0))}),this.findNewLinks(m),m.classList.add("new"))}),c?b?K.forEach((m,S)=>{q[S]instanceof HTMLElement&&q[S].append(...m.childNodes)}):K.forEach((m,S)=>{var R;(R=q[S].parentElement)==null||R.insertBefore(m,q[S])}):r.prepend(...K),setTimeout(()=>{b||q.forEach(m=>{m instanceof HTMLElement&&m.classList.add("old-idle")}),K.forEach(m=>{var S;m instanceof HTMLElement&&((S=m.parentElement)==null||S.style.setProperty("--new-content-height",m.offsetHeight+"px"),m.classList.add("new-idle"))})},0);const te=zt(Tt({},Ct),{morphElement:r});I.dispatchEvent(document,"morphNewChildrenAdded",{detail:te});const ge=new Promise(m=>{setTimeout(()=>{b||q.forEach(S=>{S.remove()}),K.forEach(S=>{var R;S instanceof HTMLElement&&((R=S.parentElement)==null||R.style.removeProperty("--new-content-height"),S.classList.remove("new-idle","new"))}),b||I.dispatchEvent(document,"morphOldChildrenRemoved",{detail:te}),m()},(parseFloat(fe)||0)*1e3+10)});t(this,O).push(ge)}),this.isPopstateNavigation?document.documentElement.style.setProperty("--new-document-scroll-position",(this.scrollValue.top-A.scrollState.y)*1+"px"):document.documentElement.style.setProperty("--new-document-scroll-position",this.scrollValue.top+"px"),I.dispatchEvent(document,"morphBeforeNavigationScroll",{detail:A.scrollState}),d.hash?(A.clearScrollState(),g(this,p,$t).call(this,d.hash,{centerScroll:i,offsetScroll:n,behavior:E})):t(this,G)?A.restoreScrollPosition():k||A.renewScrollPosition(),yield Promise.all(t(this,O)),b||_t.forEach(r=>r.remove()),o(this,O,[]),Dt.forEach(r=>{r.querySelectorAll("script").forEach(U=>{U.replaceWith(g(this,p,Ft).call(this,U))})}),t(this,y).forEach(r=>{r.checkCurrent(t(this,v).path)}),this.findParamsDependent(),I.dispatchEvent(document,"morphComplete",{detail:Ct}),document.documentElement.style.removeProperty("--new-document-scroll-position"),window.dispatchEvent(new Event("resize"))}catch(X){console.error(X)}o(this,j,void 0)})}addLink(e){t(this,y).push(new Vt(e,this))}addLinks(e){e.forEach(s=>{this.addLink(s)})}removeLink(e){o(this,y,t(this,y).filter(s=>s.element===e?(s.destroy(),!1):!0))}destroyOldLinks(e){o(this,y,t(this,y).filter(s=>e.contains(s.element)?(s.destroy(),!1):!0))}findNewLinks(e){const s=[...e.querySelectorAll("a")].filter(t(this,wt));t(this,y).push(...s.map(i=>new Vt(i,this)))}findLinks(){const e=[...document.documentElement.querySelectorAll("a")].filter(t(this,wt));t(this,y).forEach(s=>s.destroy()),o(this,y,e.map(s=>new Vt(s,this)))}findParamsDependent(){const e=[...document.documentElement.querySelectorAll("[data-morph-params-dependent]")];t(this,yt).forEach(s=>s.destroy()),o(this,yt,e.map(s=>new ke(s)))}};D=new WeakMap,ct=new WeakMap,y=new WeakMap,j=new WeakMap,v=new WeakMap,tt=new WeakMap,O=new WeakMap,G=new WeakMap,N=new WeakMap,At=new WeakMap,F=new WeakMap,yt=new WeakMap,et=new WeakMap,dt=new WeakMap,ut=new WeakMap,Pt=new WeakMap,mt=new WeakMap,kt=new WeakMap,p=new WeakSet,Ft=function(e){const s=document.createElement("script");for(let i=0;i<e.attributes.length;i++){const n=e.attributes[i];s.setAttribute(n.name,n.value)}return e.hasAttribute("src")||(s.innerHTML=e.innerHTML),s},wt=new WeakMap,gt=function(e){const s=this.normalizePath(e);let i=t(this,F).get(s.pathname);return i||(i=new oe(this,s.pathname),t(this,F).set(s.pathname,i)),i},Bt=function(e){const s=[...e.querySelectorAll("[data-morph]")];return s.length?s:[e]},ue=function(e,s){return e.filter(i=>s.find(n=>n.outerHTML===i.outerHTML))},Xt=function(e,s){return e.filter(i=>!s.find(n=>n.outerHTML===i.outerHTML))},Kt=function(e){return e.tagName==="SCRIPT"||e.tagName==="STYLE"||e.tagName==="LINK"&&e.getAttribute("rel")==="stylesheet"},Yt=function(e){var s,i;(s=t(this,N))==null||s.removeEventListener("scroll",t(this,pt)),o(this,ut,0),o(this,dt,0),o(this,N,t(this,D).scrollSelector&&e.querySelector(t(this,D).scrollSelector)||window),o(this,At,t(this,N)===window),(i=t(this,N))==null||i.addEventListener("scroll",t(this,pt)),t(this,pt).call(this)},$t=function(e,s){const i=typeof e=="string"?document.getElementById(e):e;(typeof i=="number"||i)&&re.scrollToElement(i,{scrollElement:t(this,N),behavior:(s==null?void 0:s.behavior)||"instant",center:s==null?void 0:s.centerScroll,offset:s==null?void 0:s.offsetScroll})},Ut=new WeakMap,pt=new WeakMap,vt.instance=null;let Ot=vt;exports.Morph=Ot;
|